@builder.io/sdk-vue 5.2.3 → 5.2.4
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-0ES-HtKy.cjs → awaiter-4bKOAzti.cjs} +1 -1
- package/lib/browser/{awaiter-TGpflqNO.js → awaiter-q_DSjMVD.js} +1 -1
- package/lib/browser/{block-wrapper-6JBj9wlj.cjs → block-wrapper-Q-de2c75.cjs} +1 -1
- package/lib/browser/{block-wrapper-M2woB-L4.js → block-wrapper-YNVEwJsu.js} +3 -3
- package/lib/browser/{component-ref-TmVziQMC.cjs → component-ref-YeF1fWsm.cjs} +1 -1
- package/lib/browser/{component-ref-7xUvXH6j.js → component-ref-watkJI0h.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-DvyFZA6k.js} +1 -1
- package/lib/browser/{get-block-properties-2RZMZvVf.cjs → get-block-properties-Q4RE1NYS.cjs} +1 -1
- package/lib/browser/{index-bHeXSwpO.js → index-DfB3iR8x.js} +208 -200
- package/lib/browser/{index-yGDaT-4c.cjs → index-U5K993_E.cjs} +32 -24
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-ncQFzx-S.js → live-edit-9dPB7jWd.js} +1 -1
- package/lib/browser/{live-edit-zea3UB3U.cjs → live-edit-naKnBygx.cjs} +1 -1
- package/lib/browser/{repeated-block-Mk8O3Rpy.js → repeated-block-B84MBN4t.js} +2 -2
- package/lib/browser/{repeated-block-6Car73NY.cjs → repeated-block-BQB7dngl.cjs} +1 -1
- package/lib/browser/{style-wrapper-r-s-if-A.js → style-wrapper-1pU2q-Nj.js} +1 -1
- package/lib/browser/{style-wrapper-5rtVLsI3.cjs → style-wrapper-dtKxKeZ0.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-S6rT9Vve.cjs → awaiter-HFBt_OAF.cjs} +1 -1
- package/lib/edge/{awaiter-rfhkeWZf.js → awaiter-n-gIbP8r.js} +1 -1
- package/lib/{node/block-wrapper-1Y-CVNTM.cjs → edge/block-wrapper-Bu7g5EV_.cjs} +1 -1
- package/lib/edge/{block-wrapper-C8-WoYjv.js → block-wrapper-fPMgU7lR.js} +3 -3
- package/lib/edge/{component-ref-Gc_mK-yZ.cjs → component-ref-4wKEKXCt.cjs} +1 -1
- package/lib/edge/{component-ref-u0-6ifHM.js → component-ref-JHSTjcJx.js} +4 -4
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-YVTdp4N_.cjs → get-block-properties--14I0FqA.cjs} +1 -1
- package/lib/edge/{get-block-properties-HX4IkuJ7.js → get-block-properties-5Wxv-oHg.js} +1 -1
- package/lib/edge/{index-Ep-06GOr.cjs → index-78yK7PsD.cjs} +33 -25
- package/lib/edge/{index-z9siWBN1.js → index-_fUTINXy.js} +366 -358
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-k8OIvz20.js → edge/live-edit-9xqNMwhC.js} +1 -1
- package/lib/{node/live-edit-YzqrW2ZO.cjs → edge/live-edit-nbVPESOp.cjs} +1 -1
- package/lib/edge/{repeated-block-e-bO_PW3.js → repeated-block-F75iqpVr.js} +2 -2
- package/lib/edge/{repeated-block-QAF0iXDX.cjs → repeated-block-nCuqUDP7.cjs} +1 -1
- package/lib/edge/{style-wrapper-IpBgNlUT.cjs → style-wrapper-rVAWy7o_.cjs} +1 -1
- package/lib/edge/{style-wrapper-UVIpB1x8.js → style-wrapper-w933365M.js} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-o04icQ1E.cjs → awaiter-MgDlcUHI.cjs} +1 -1
- package/lib/node/{awaiter-iuox8UDW.js → awaiter-aepEb5fm.js} +1 -1
- package/lib/{edge/block-wrapper-SyvaobbZ.cjs → node/block-wrapper-3kiJne4m.cjs} +1 -1
- package/lib/node/{block-wrapper-Lg6Dv_gm.js → block-wrapper-sEviqhU3.js} +3 -3
- package/lib/node/{component-ref-k5AyvYBo.cjs → component-ref-6kTApMRL.cjs} +1 -1
- package/lib/node/{component-ref-MVFxzC_h.js → component-ref-TyXWBWEx.js} +5 -5
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-Kb0sj2FV.cjs → get-block-properties-3uCiF9Qm.cjs} +1 -1
- package/lib/node/{get-block-properties-Rq2VRXzM.js → get-block-properties-NjyNQiag.js} +2 -2
- package/lib/node/{index-yxMSSBrC.cjs → index-9WZ86cun.cjs} +27 -19
- package/lib/node/{index-9hkAOr_P.js → index-YYQAkk5S.js} +208 -200
- 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-nkpalAUa.cjs → node/live-edit-267vHpIq.cjs} +1 -1
- package/lib/{edge/live-edit-XsT9ZiMs.js → node/live-edit-U9pCBdly.js} +1 -1
- package/lib/node/{repeated-block-0laikCiE.cjs → repeated-block-BfYZqoE0.cjs} +1 -1
- package/lib/node/{repeated-block-km0tNI0j.js → repeated-block-f2s-IUoM.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-o843UKK7.js → should-force-browser-runtime-in-node-HsyT-bd2.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-HK08_EA6.cjs → should-force-browser-runtime-in-node-yK_d4v-W.cjs} +1 -1
- package/lib/node/{style-wrapper-tc5B1slA.js → style-wrapper-MJzB79lB.js} +2 -2
- package/lib/node/{style-wrapper-O4HZcJNK.cjs → style-wrapper-vHL9MNhi.cjs} +1 -1
- package/lib/node/style.css +1 -1
- 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.4", 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,22 @@ 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
|
|
3212
|
+
function ho(e, t) {
|
|
3213
3213
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
3214
3214
|
return !1;
|
|
3215
3215
|
const n = new URL(t.origin), r = n.hostname;
|
|
3216
3216
|
return (e || hs).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
3217
3217
|
}
|
|
3218
|
-
let
|
|
3219
|
-
const
|
|
3218
|
+
let Dr = !1;
|
|
3219
|
+
const mo = (e) => {
|
|
3220
3220
|
var t, n;
|
|
3221
|
-
|
|
3221
|
+
Dr || (Dr = !0, M() && ((t = window.parent) == null || t.postMessage({
|
|
3222
3222
|
type: "builder.sdkInfo",
|
|
3223
3223
|
data: {
|
|
3224
3224
|
target: G,
|
|
3225
|
-
version:
|
|
3225
|
+
version: Yr,
|
|
3226
3226
|
supportsPatchUpdates: !1,
|
|
3227
3227
|
// Supports builder-model="..." attribute which is needed to
|
|
3228
3228
|
// scope our '+ add block' button styling
|
|
@@ -3240,7 +3240,7 @@ const po = (e) => {
|
|
|
3240
3240
|
}
|
|
3241
3241
|
}, "*"), window.addEventListener("message", (r) => {
|
|
3242
3242
|
var i, s;
|
|
3243
|
-
if (!
|
|
3243
|
+
if (!ho(e.trustedHosts, r))
|
|
3244
3244
|
return;
|
|
3245
3245
|
const {
|
|
3246
3246
|
data: o
|
|
@@ -3281,12 +3281,12 @@ const po = (e) => {
|
|
|
3281
3281
|
}
|
|
3282
3282
|
}
|
|
3283
3283
|
})));
|
|
3284
|
-
},
|
|
3284
|
+
}, go = ({
|
|
3285
3285
|
model: e,
|
|
3286
3286
|
trustedHosts: t,
|
|
3287
3287
|
callbacks: n
|
|
3288
3288
|
}) => (r) => {
|
|
3289
|
-
if (!
|
|
3289
|
+
if (!ho(t, r))
|
|
3290
3290
|
return;
|
|
3291
3291
|
const {
|
|
3292
3292
|
data: o
|
|
@@ -3321,11 +3321,11 @@ const po = (e) => {
|
|
|
3321
3321
|
if (!M)
|
|
3322
3322
|
return ue.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3323
3323
|
};
|
|
3324
|
-
|
|
3324
|
+
mo({
|
|
3325
3325
|
modelName: e,
|
|
3326
3326
|
apiKey: t
|
|
3327
3327
|
});
|
|
3328
|
-
const o =
|
|
3328
|
+
const o = go({
|
|
3329
3329
|
callbacks: {
|
|
3330
3330
|
contentUpdate: n,
|
|
3331
3331
|
animation: () => {
|
|
@@ -3341,24 +3341,24 @@ const po = (e) => {
|
|
|
3341
3341
|
return window.addEventListener("message", o), () => {
|
|
3342
3342
|
window.removeEventListener("message", o);
|
|
3343
3343
|
};
|
|
3344
|
-
}, ms = "builder.tests",
|
|
3344
|
+
}, ms = "builder.tests", Kn = (e) => `${ms}.${e}`, gs = ({
|
|
3345
3345
|
contentId: e
|
|
3346
|
-
}) =>
|
|
3347
|
-
name:
|
|
3346
|
+
}) => Zr({
|
|
3347
|
+
name: Kn(e),
|
|
3348
3348
|
canTrack: !0
|
|
3349
3349
|
}), ys = ({
|
|
3350
3350
|
contentId: e
|
|
3351
3351
|
}) => Lt({
|
|
3352
|
-
name:
|
|
3352
|
+
name: Kn(e),
|
|
3353
3353
|
canTrack: !0
|
|
3354
3354
|
}), vs = ({
|
|
3355
3355
|
contentId: e,
|
|
3356
3356
|
value: t
|
|
3357
|
-
}) =>
|
|
3358
|
-
name:
|
|
3357
|
+
}) => An({
|
|
3358
|
+
name: Kn(e),
|
|
3359
3359
|
value: t,
|
|
3360
3360
|
canTrack: !0
|
|
3361
|
-
}),
|
|
3361
|
+
}), yo = (e) => Ne(e.id) && Ne(e.variations) && Object.keys(e.variations).length > 0, bs = ({
|
|
3362
3362
|
id: e,
|
|
3363
3363
|
variations: t
|
|
3364
3364
|
}) => {
|
|
@@ -3371,7 +3371,7 @@ const po = (e) => {
|
|
|
3371
3371
|
return i;
|
|
3372
3372
|
}
|
|
3373
3373
|
return e;
|
|
3374
|
-
},
|
|
3374
|
+
}, vo = (e) => {
|
|
3375
3375
|
const t = bs(e);
|
|
3376
3376
|
return vs({
|
|
3377
3377
|
contentId: e.id,
|
|
@@ -3379,7 +3379,7 @@ const po = (e) => {
|
|
|
3379
3379
|
}).catch((n) => {
|
|
3380
3380
|
ue.error("could not store A/B test variation: ", n);
|
|
3381
3381
|
}), t;
|
|
3382
|
-
},
|
|
3382
|
+
}, bo = ({
|
|
3383
3383
|
item: e,
|
|
3384
3384
|
testGroupId: t
|
|
3385
3385
|
}) => {
|
|
@@ -3401,14 +3401,14 @@ const po = (e) => {
|
|
|
3401
3401
|
return e;
|
|
3402
3402
|
if (!e)
|
|
3403
3403
|
return;
|
|
3404
|
-
if (!
|
|
3404
|
+
if (!yo(e))
|
|
3405
3405
|
return e;
|
|
3406
3406
|
const n = ys({
|
|
3407
3407
|
contentId: e.id
|
|
3408
|
-
}) ||
|
|
3408
|
+
}) || vo({
|
|
3409
3409
|
variations: e.variations,
|
|
3410
3410
|
id: e.id
|
|
3411
|
-
}), r =
|
|
3411
|
+
}), r = bo({
|
|
3412
3412
|
item: e,
|
|
3413
3413
|
testGroupId: n
|
|
3414
3414
|
});
|
|
@@ -3420,14 +3420,14 @@ const po = (e) => {
|
|
|
3420
3420
|
item: e,
|
|
3421
3421
|
canTrack: t
|
|
3422
3422
|
}) => {
|
|
3423
|
-
if (!t || !
|
|
3423
|
+
if (!t || !yo(e))
|
|
3424
3424
|
return e;
|
|
3425
3425
|
const r = await gs({
|
|
3426
3426
|
contentId: e.id
|
|
3427
|
-
}) ||
|
|
3427
|
+
}) || vo({
|
|
3428
3428
|
variations: e.variations,
|
|
3429
3429
|
id: e.id
|
|
3430
|
-
}), o =
|
|
3430
|
+
}), o = bo({
|
|
3431
3431
|
item: e,
|
|
3432
3432
|
testGroupId: r
|
|
3433
3433
|
});
|
|
@@ -3436,8 +3436,8 @@ const po = (e) => {
|
|
|
3436
3436
|
...o
|
|
3437
3437
|
};
|
|
3438
3438
|
};
|
|
3439
|
-
const
|
|
3440
|
-
function
|
|
3439
|
+
const Ur = "builder.userAttributes";
|
|
3440
|
+
function Wr() {
|
|
3441
3441
|
let e = !0;
|
|
3442
3442
|
const t = /* @__PURE__ */ new Set();
|
|
3443
3443
|
return {
|
|
@@ -3448,15 +3448,15 @@ function Vr() {
|
|
|
3448
3448
|
...this.getUserAttributes(),
|
|
3449
3449
|
...n
|
|
3450
3450
|
};
|
|
3451
|
-
|
|
3452
|
-
name:
|
|
3451
|
+
An({
|
|
3452
|
+
name: Ur,
|
|
3453
3453
|
value: JSON.stringify(r),
|
|
3454
3454
|
canTrack: e
|
|
3455
3455
|
}), t.forEach((o) => o(r));
|
|
3456
3456
|
},
|
|
3457
3457
|
getUserAttributes() {
|
|
3458
3458
|
return M() ? JSON.parse(Lt({
|
|
3459
|
-
name:
|
|
3459
|
+
name: Ur,
|
|
3460
3460
|
canTrack: e
|
|
3461
3461
|
}) || "{}") : {};
|
|
3462
3462
|
},
|
|
@@ -3473,7 +3473,7 @@ function Vr() {
|
|
|
3473
3473
|
};
|
|
3474
3474
|
}
|
|
3475
3475
|
let wn;
|
|
3476
|
-
M() && G === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
3476
|
+
M() && G === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Wr()), wn = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : wn = Wr();
|
|
3477
3477
|
const Ut = wn, ic = (e) => {
|
|
3478
3478
|
Ut.setUserAttributes(e);
|
|
3479
3479
|
}, Xe = (e) => {
|
|
@@ -3503,10 +3503,10 @@ function Tn(e, t = null, n = ".") {
|
|
|
3503
3503
|
};
|
|
3504
3504
|
}, {});
|
|
3505
3505
|
}
|
|
3506
|
-
function
|
|
3506
|
+
function So(e, t, n = {}) {
|
|
3507
3507
|
for (const r in e) {
|
|
3508
3508
|
const o = e[r], i = t ? t + "." + r : r;
|
|
3509
|
-
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((s) => s.startsWith("$")) ?
|
|
3509
|
+
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((s) => s.startsWith("$")) ? So(o, i, n) : n[i] = o;
|
|
3510
3510
|
}
|
|
3511
3511
|
return n;
|
|
3512
3512
|
}
|
|
@@ -3522,7 +3522,7 @@ function Es(e) {
|
|
|
3522
3522
|
}
|
|
3523
3523
|
return t;
|
|
3524
3524
|
}
|
|
3525
|
-
const Is = "v3",
|
|
3525
|
+
const Is = "v3", Lr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, zn = (e) => {
|
|
3526
3526
|
const {
|
|
3527
3527
|
limit: t = 30,
|
|
3528
3528
|
userAttributes: n,
|
|
@@ -3548,7 +3548,7 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3548
3548
|
const te = t !== 1, E = H || "https://cdn.builder.io", D = new URL(`${E}/api/${c}/content/${o}`);
|
|
3549
3549
|
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
3550
|
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 &&
|
|
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 && Lr(h) && D.searchParams.set("cacheSeconds", String(h)), S && Lr(S) && D.searchParams.set("staleCacheSeconds", String(S)), A) {
|
|
3552
3552
|
const _ = Tn({
|
|
3553
3553
|
sort: A
|
|
3554
3554
|
});
|
|
@@ -3557,7 +3557,7 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3557
3557
|
}
|
|
3558
3558
|
const Ae = {
|
|
3559
3559
|
...fs(),
|
|
3560
|
-
...
|
|
3560
|
+
..._r(e.options || {})
|
|
3561
3561
|
};
|
|
3562
3562
|
ie = {
|
|
3563
3563
|
...ie,
|
|
@@ -3567,7 +3567,7 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3567
3567
|
for (const _ in K)
|
|
3568
3568
|
D.searchParams.set(_, String(K[_]));
|
|
3569
3569
|
if (Object.keys(ie).length > 0 && D.searchParams.set("userAttributes", JSON.stringify(ie)), r) {
|
|
3570
|
-
const _ =
|
|
3570
|
+
const _ = So({
|
|
3571
3571
|
query: r
|
|
3572
3572
|
});
|
|
3573
3573
|
for (const R in _)
|
|
@@ -3589,7 +3589,7 @@ const Is = "v3", Dr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Hn = (
|
|
|
3589
3589
|
}
|
|
3590
3590
|
return {};
|
|
3591
3591
|
}, $s = (e) => "results" in e;
|
|
3592
|
-
async function
|
|
3592
|
+
async function qn(e) {
|
|
3593
3593
|
var r;
|
|
3594
3594
|
const t = e.locale || ((r = e.userAttributes) == null ? void 0 : r.locale);
|
|
3595
3595
|
t && (e.locale = t, e.userAttributes = {
|
|
@@ -3604,15 +3604,15 @@ async function Kn(e) {
|
|
|
3604
3604
|
}
|
|
3605
3605
|
const xs = async (e) => {
|
|
3606
3606
|
var s;
|
|
3607
|
-
const t =
|
|
3607
|
+
const t = zn(e), n = e.fetch ?? Ts, r = {
|
|
3608
3608
|
...e.fetchOptions,
|
|
3609
3609
|
headers: {
|
|
3610
3610
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
3611
|
-
...
|
|
3611
|
+
...Qr()
|
|
3612
3612
|
}
|
|
3613
3613
|
};
|
|
3614
3614
|
return await (await n(t.href, r)).json();
|
|
3615
|
-
}, Ps = async (e, t, n =
|
|
3615
|
+
}, Ps = async (e, t, n = zn(e)) => {
|
|
3616
3616
|
const r = Xe(e.canTrack);
|
|
3617
3617
|
if (n.search.includes("preview="), !r || !(M() || G === "reactNative"))
|
|
3618
3618
|
return t.results;
|
|
@@ -3630,7 +3630,7 @@ const xs = async (e) => {
|
|
|
3630
3630
|
return t.results;
|
|
3631
3631
|
};
|
|
3632
3632
|
async function Os(e) {
|
|
3633
|
-
const t =
|
|
3633
|
+
const t = zn(e), n = await xs(e);
|
|
3634
3634
|
if (!$s(n))
|
|
3635
3635
|
throw ue.error("Error fetching data. ", {
|
|
3636
3636
|
url: t,
|
|
@@ -3651,14 +3651,14 @@ const sc = async (e) => {
|
|
|
3651
3651
|
urlPath: t
|
|
3652
3652
|
} : {}
|
|
3653
3653
|
},
|
|
3654
|
-
options:
|
|
3654
|
+
options: fo(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
3655
3655
|
};
|
|
3656
3656
|
return {
|
|
3657
3657
|
apiKey: n.apiKey,
|
|
3658
3658
|
model: n.model,
|
|
3659
|
-
content: await
|
|
3659
|
+
content: await qn(n)
|
|
3660
3660
|
};
|
|
3661
|
-
},
|
|
3661
|
+
}, Gn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
3662
3662
|
function Ns(e, t, n = {}) {
|
|
3663
3663
|
let r, o, i, s = null, u = 0;
|
|
3664
3664
|
const c = function() {
|
|
@@ -3685,17 +3685,17 @@ function Bs(e) {
|
|
|
3685
3685
|
for (const t of e)
|
|
3686
3686
|
switch (t.trigger) {
|
|
3687
3687
|
case "pageLoad":
|
|
3688
|
-
|
|
3688
|
+
wo(t);
|
|
3689
3689
|
break;
|
|
3690
3690
|
case "scrollInView":
|
|
3691
3691
|
Vs(t);
|
|
3692
3692
|
break;
|
|
3693
3693
|
}
|
|
3694
3694
|
}
|
|
3695
|
-
function
|
|
3695
|
+
function ko(e) {
|
|
3696
3696
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
3697
3697
|
}
|
|
3698
|
-
function
|
|
3698
|
+
function Co(e, t) {
|
|
3699
3699
|
const n = js(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
3700
3700
|
for (const u of s)
|
|
3701
3701
|
for (const c of n)
|
|
@@ -3708,15 +3708,15 @@ function js(e) {
|
|
|
3708
3708
|
t.indexOf(r) === -1 && t.push(r);
|
|
3709
3709
|
return t;
|
|
3710
3710
|
}
|
|
3711
|
-
function
|
|
3711
|
+
function wo(e) {
|
|
3712
3712
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
3713
3713
|
if (!t.length) {
|
|
3714
|
-
|
|
3714
|
+
ko(e.elementId || e.id || "");
|
|
3715
3715
|
return;
|
|
3716
3716
|
}
|
|
3717
3717
|
Array.from(t).forEach((n) => {
|
|
3718
|
-
|
|
3719
|
-
n.style.transition = `all ${e.duration}s ${
|
|
3718
|
+
Co(e, n), n.style.transition = "none", n.style.transitionDelay = "0", mt(n.style, e.steps[0].styles), setTimeout(() => {
|
|
3719
|
+
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
3720
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
3721
3721
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
3722
3722
|
});
|
|
@@ -3725,11 +3725,11 @@ function So(e) {
|
|
|
3725
3725
|
function Vs(e) {
|
|
3726
3726
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
3727
3727
|
if (!t.length) {
|
|
3728
|
-
|
|
3728
|
+
ko(e.elementId || e.id || "");
|
|
3729
3729
|
return;
|
|
3730
3730
|
}
|
|
3731
3731
|
Array.from(t).forEach((n) => {
|
|
3732
|
-
|
|
3732
|
+
Co(e, n);
|
|
3733
3733
|
let r = !1, o = !1;
|
|
3734
3734
|
function i() {
|
|
3735
3735
|
!r && u(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
@@ -3750,17 +3750,17 @@ function Vs(e) {
|
|
|
3750
3750
|
mt(n.style, c);
|
|
3751
3751
|
}
|
|
3752
3752
|
m(), setTimeout(() => {
|
|
3753
|
-
n.style.transition = `all ${e.duration}s ${
|
|
3753
|
+
n.style.transition = `all ${e.duration}s ${Gn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
3754
3754
|
}), document.addEventListener("scroll", s, {
|
|
3755
3755
|
capture: !0,
|
|
3756
3756
|
passive: !0
|
|
3757
3757
|
}), i();
|
|
3758
3758
|
});
|
|
3759
3759
|
}
|
|
3760
|
-
const
|
|
3760
|
+
const To = (e) => Object.entries(e).map(([n, r]) => {
|
|
3761
3761
|
if (typeof r == "string")
|
|
3762
|
-
return `${
|
|
3763
|
-
}).filter(Ne), Ds = (e) =>
|
|
3762
|
+
return `${Gn(n)}: ${r};`;
|
|
3763
|
+
}).filter(Ne), Ds = (e) => To(e).join(`
|
|
3764
3764
|
`), ac = ({
|
|
3765
3765
|
mediaQuery: e,
|
|
3766
3766
|
className: t,
|
|
@@ -3781,18 +3781,18 @@ function Us({
|
|
|
3781
3781
|
const lc = ({
|
|
3782
3782
|
block: e,
|
|
3783
3783
|
context: t
|
|
3784
|
-
}) =>
|
|
3784
|
+
}) => Eo(Us({
|
|
3785
3785
|
style: e.style || {},
|
|
3786
3786
|
context: t,
|
|
3787
3787
|
block: e
|
|
3788
3788
|
}));
|
|
3789
|
-
function
|
|
3789
|
+
function Eo(e) {
|
|
3790
3790
|
switch (G) {
|
|
3791
3791
|
case "svelte":
|
|
3792
3792
|
case "vue":
|
|
3793
3793
|
case "solid":
|
|
3794
3794
|
case "angular":
|
|
3795
|
-
return
|
|
3795
|
+
return To(e).join(" ");
|
|
3796
3796
|
case "qwik":
|
|
3797
3797
|
case "reactNative":
|
|
3798
3798
|
case "react":
|
|
@@ -3800,7 +3800,7 @@ function Co(e) {
|
|
|
3800
3800
|
return e;
|
|
3801
3801
|
}
|
|
3802
3802
|
}
|
|
3803
|
-
const
|
|
3803
|
+
const Io = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Ws = ({
|
|
3804
3804
|
block: e,
|
|
3805
3805
|
registeredComponents: t,
|
|
3806
3806
|
model: n
|
|
@@ -3810,7 +3810,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3810
3810
|
if (!r)
|
|
3811
3811
|
return null;
|
|
3812
3812
|
const o = t[r];
|
|
3813
|
-
if (!o ||
|
|
3813
|
+
if (!o || Io(o, n)) {
|
|
3814
3814
|
console.warn(`
|
|
3815
3815
|
Could not find a registered component named "${r}".
|
|
3816
3816
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
@@ -3858,7 +3858,7 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3858
3858
|
}, Ms = (e, t, n) => {
|
|
3859
3859
|
var r;
|
|
3860
3860
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderComponents ? {
|
|
3861
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
3861
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !Io(s, n)))
|
|
3862
3862
|
} : {};
|
|
3863
3863
|
}, Hs = (e, t) => {
|
|
3864
3864
|
var n;
|
|
@@ -3875,22 +3875,22 @@ const wo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3875
3875
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3876
3876
|
e
|
|
3877
3877
|
), e;
|
|
3878
|
-
}), Gs = () => import("./block-wrapper-
|
|
3878
|
+
}), Gs = () => import("./block-wrapper-fPMgU7lR.js").then((e) => e.default).catch((e) => {
|
|
3879
3879
|
throw console.error(
|
|
3880
3880
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3881
3881
|
e
|
|
3882
3882
|
), e;
|
|
3883
|
-
}), _s = () => import("./component-ref-
|
|
3883
|
+
}), _s = () => import("./component-ref-JHSTjcJx.js").then((e) => e.default).catch((e) => {
|
|
3884
3884
|
throw console.error(
|
|
3885
3885
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3886
3886
|
e
|
|
3887
3887
|
), e;
|
|
3888
|
-
}), Js = () => import("./repeated-block-
|
|
3888
|
+
}), Js = () => import("./repeated-block-F75iqpVr.js").then((e) => e.default).catch((e) => {
|
|
3889
3889
|
throw console.error(
|
|
3890
3890
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3891
3891
|
e
|
|
3892
3892
|
), e;
|
|
3893
|
-
}), Xs = () => import("./style-wrapper-
|
|
3893
|
+
}), Xs = () => import("./style-wrapper-w933365M.js").then((e) => e.default).catch((e) => {
|
|
3894
3894
|
throw console.error(
|
|
3895
3895
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
3896
3896
|
e
|
|
@@ -4056,9 +4056,9 @@ function Qs(e, t, n, r, o, i) {
|
|
|
4056
4056
|
], 64))
|
|
4057
4057
|
], 64)) : F("", !0);
|
|
4058
4058
|
}
|
|
4059
|
-
const
|
|
4059
|
+
const Ro = /* @__PURE__ */ j(Ys, [["render", Qs]]), uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4060
4060
|
__proto__: null,
|
|
4061
|
-
default:
|
|
4061
|
+
default: Ro
|
|
4062
4062
|
}, Symbol.toStringTag, { value: "Module" })), Zs = B({
|
|
4063
4063
|
name: "builder-blocks-wrapper",
|
|
4064
4064
|
props: [
|
|
@@ -4148,7 +4148,7 @@ function ea(e, t, n, r, o, i) {
|
|
|
4148
4148
|
}
|
|
4149
4149
|
const ta = /* @__PURE__ */ j(Zs, [["render", ea], ["__scopeId", "data-v-82fc93d6"]]), na = B({
|
|
4150
4150
|
name: "builder-blocks",
|
|
4151
|
-
components: { BlocksWrapper: ta, Block:
|
|
4151
|
+
components: { BlocksWrapper: ta, Block: Ro },
|
|
4152
4152
|
props: [
|
|
4153
4153
|
"blocks",
|
|
4154
4154
|
"parent",
|
|
@@ -4162,7 +4162,7 @@ const ta = /* @__PURE__ */ j(Zs, [["render", ea], ["__scopeId", "data-v-82fc93d6
|
|
|
4162
4162
|
],
|
|
4163
4163
|
inject: {
|
|
4164
4164
|
builderContext: vn.key,
|
|
4165
|
-
componentsContext:
|
|
4165
|
+
componentsContext: qr.key
|
|
4166
4166
|
}
|
|
4167
4167
|
});
|
|
4168
4168
|
function ra(e, t, n, r, o, i) {
|
|
@@ -4207,7 +4207,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4207
4207
|
default: Ct
|
|
4208
4208
|
}, Symbol.toStringTag, { value: "Module" })), Ht = B({
|
|
4209
4209
|
render() {
|
|
4210
|
-
return
|
|
4210
|
+
return zr("style", {
|
|
4211
4211
|
innerHTML: this.styles,
|
|
4212
4212
|
"data-id": this.id,
|
|
4213
4213
|
nonce: this.nonce
|
|
@@ -4215,7 +4215,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4215
4215
|
},
|
|
4216
4216
|
name: "inlined-styles",
|
|
4217
4217
|
props: ["styles", "id", "nonce"]
|
|
4218
|
-
}),
|
|
4218
|
+
}), Ao = {
|
|
4219
4219
|
xsmall: {
|
|
4220
4220
|
min: 0,
|
|
4221
4221
|
default: 160,
|
|
@@ -4236,8 +4236,8 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4236
4236
|
default: 991,
|
|
4237
4237
|
max: 1200
|
|
4238
4238
|
}
|
|
4239
|
-
}, cc = (e, t =
|
|
4240
|
-
const t =
|
|
4239
|
+
}, cc = (e, t = Ao) => `@media (max-width: ${t[e].max}px)`, aa = (e) => {
|
|
4240
|
+
const t = Mn(Ao);
|
|
4241
4241
|
if (!e)
|
|
4242
4242
|
return t;
|
|
4243
4243
|
const {
|
|
@@ -4278,7 +4278,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4278
4278
|
name: "builder-columns",
|
|
4279
4279
|
components: {
|
|
4280
4280
|
InlinedStyles: Ht,
|
|
4281
|
-
DynamicRenderer:
|
|
4281
|
+
DynamicRenderer: Rn,
|
|
4282
4282
|
Blocks: Ue,
|
|
4283
4283
|
DynamicDiv: Ct
|
|
4284
4284
|
},
|
|
@@ -4410,7 +4410,7 @@ const Ct = /* @__PURE__ */ j(oa, [["render", ia]]), sa = /* @__PURE__ */ Object.
|
|
|
4410
4410
|
href: e.link
|
|
4411
4411
|
} : {},
|
|
4412
4412
|
[Oe()]: "builder-column",
|
|
4413
|
-
style:
|
|
4413
|
+
style: Eo(this.columnCssVars(t))
|
|
4414
4414
|
};
|
|
4415
4415
|
}
|
|
4416
4416
|
}
|
|
@@ -4461,7 +4461,7 @@ function fa(e, t, n, r, o, i) {
|
|
|
4461
4461
|
]);
|
|
4462
4462
|
}
|
|
4463
4463
|
const ha = /* @__PURE__ */ j(da, [["render", fa]]);
|
|
4464
|
-
function
|
|
4464
|
+
function Fr(e) {
|
|
4465
4465
|
return e.replace(/http(s)?:/, "");
|
|
4466
4466
|
}
|
|
4467
4467
|
function ma(e = "", t, n) {
|
|
@@ -4472,11 +4472,11 @@ function ga(e, t) {
|
|
|
4472
4472
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
4473
4473
|
return e;
|
|
4474
4474
|
if (t === "master")
|
|
4475
|
-
return
|
|
4475
|
+
return Fr(e);
|
|
4476
4476
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
4477
4477
|
if (n) {
|
|
4478
4478
|
const r = e.split(n[0]), o = n[3], i = t.match("x") ? t : `${t}x`;
|
|
4479
|
-
return
|
|
4479
|
+
return Fr(`${r[0]}_${i}${o}`);
|
|
4480
4480
|
}
|
|
4481
4481
|
return null;
|
|
4482
4482
|
}
|
|
@@ -4831,9 +4831,9 @@ const Ra = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4831
4831
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
4832
4832
|
}
|
|
4833
4833
|
}
|
|
4834
|
-
}`, Nt = "default", xa = "filterWithCustomTargeting",
|
|
4834
|
+
}`, Nt = "default", xa = "filterWithCustomTargeting", $o = "builderIoPersonalization", xo = "updateVisibilityStylesScript", Po = ["react", "vue", "svelte", "qwik"], Oo = ["vue", "svelte", "qwik"];
|
|
4835
4835
|
function Pa(e, t) {
|
|
4836
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
4836
|
+
return !(e && e.length > 0) || !t ? !1 : Oo.includes(G) ? !0 : !M();
|
|
4837
4837
|
}
|
|
4838
4838
|
function Oa({
|
|
4839
4839
|
variants: e,
|
|
@@ -4875,9 +4875,9 @@ function Oa({
|
|
|
4875
4875
|
}
|
|
4876
4876
|
const Na = () => `
|
|
4877
4877
|
window.${xa} = ${Aa}
|
|
4878
|
-
window.${
|
|
4879
|
-
window.${
|
|
4880
|
-
`,
|
|
4878
|
+
window.${$o} = ${Ra}
|
|
4879
|
+
window.${xo} = ${$a}
|
|
4880
|
+
`, 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
4881
|
"@type": "@builder.io/sdk:Element",
|
|
4882
4882
|
layerName: "Accordion item title",
|
|
4883
4883
|
responsiveStyles: {
|
|
@@ -5391,7 +5391,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5391
5391
|
hidden: !0,
|
|
5392
5392
|
canHaveChildren: !0,
|
|
5393
5393
|
noWrap: !0
|
|
5394
|
-
},
|
|
5394
|
+
}, _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
5395
|
name: "Image",
|
|
5396
5396
|
static: !0,
|
|
5397
5397
|
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 +5406,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5406
5406
|
name: "image",
|
|
5407
5407
|
type: "file",
|
|
5408
5408
|
bubble: !0,
|
|
5409
|
-
allowedFileTypes:
|
|
5409
|
+
allowedFileTypes: _n,
|
|
5410
5410
|
required: !0,
|
|
5411
5411
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
5412
5412
|
onChange: (e) => {
|
|
@@ -5539,9 +5539,9 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5539
5539
|
defaultValue: []
|
|
5540
5540
|
}]
|
|
5541
5541
|
}]
|
|
5542
|
-
},
|
|
5542
|
+
}, Jn = B({
|
|
5543
5543
|
render() {
|
|
5544
|
-
return
|
|
5544
|
+
return zr("script", {
|
|
5545
5545
|
innerHTML: this.scriptStr,
|
|
5546
5546
|
"data-id": this.id,
|
|
5547
5547
|
nonce: this.nonce
|
|
@@ -5554,7 +5554,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5554
5554
|
components: {
|
|
5555
5555
|
Blocks: Ue,
|
|
5556
5556
|
InlinedStyles: Ht,
|
|
5557
|
-
InlinedScript:
|
|
5557
|
+
InlinedScript: Jn
|
|
5558
5558
|
},
|
|
5559
5559
|
props: [
|
|
5560
5560
|
"builderContext",
|
|
@@ -5586,7 +5586,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5586
5586
|
shouldResetVariants: !1,
|
|
5587
5587
|
TARGET: G,
|
|
5588
5588
|
DEFAULT_INDEX: Nt,
|
|
5589
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
5589
|
+
SDKS_REQUIRING_RESET_APPROACH: Oo
|
|
5590
5590
|
};
|
|
5591
5591
|
},
|
|
5592
5592
|
mounted() {
|
|
@@ -5600,7 +5600,7 @@ const Fa = /* @__PURE__ */ j(Ua, [["render", La]]), Ma = {
|
|
|
5600
5600
|
fireImmediately: G === "qwik"
|
|
5601
5601
|
}
|
|
5602
5602
|
);
|
|
5603
|
-
if (!(oe() ||
|
|
5603
|
+
if (!(oe() || Hn())) {
|
|
5604
5604
|
const n = this.filteredVariants[0];
|
|
5605
5605
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
5606
5606
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -6608,7 +6608,7 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6608
6608
|
else {
|
|
6609
6609
|
const h = {};
|
|
6610
6610
|
Array.from(u).forEach(({ value: S, key: A }) => {
|
|
6611
|
-
|
|
6611
|
+
po(h, A, S);
|
|
6612
6612
|
}), i = JSON.stringify(h);
|
|
6613
6613
|
}
|
|
6614
6614
|
c && c !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (o["content-type"] = c));
|
|
@@ -6629,7 +6629,7 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6629
6629
|
const y = `${Al() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
6630
6630
|
this.sendSubmissionsToEmail || ""
|
|
6631
6631
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? y : this.action;
|
|
6632
|
-
|
|
6632
|
+
$n(b), fetch(b, {
|
|
6633
6633
|
body: i,
|
|
6634
6634
|
headers: o,
|
|
6635
6635
|
method: this.method || "post"
|
|
@@ -6650,7 +6650,7 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6650
6650
|
), te.defaultPrevented))
|
|
6651
6651
|
return;
|
|
6652
6652
|
this.responseData = S, this.formState = "error";
|
|
6653
|
-
let E = this.errorMessagePath ?
|
|
6653
|
+
let E = this.errorMessagePath ? Gr(S, this.errorMessagePath) : S.message || S.error || S;
|
|
6654
6654
|
typeof E != "string" && (E = JSON.stringify(E)), this.formErrorMessage = E, this.mergeNewRootState({
|
|
6655
6655
|
formErrorMessage: E
|
|
6656
6656
|
});
|
|
@@ -6694,7 +6694,7 @@ const El = /* @__PURE__ */ j(Cl, [["render", Tl]]), Il = {
|
|
|
6694
6694
|
}
|
|
6695
6695
|
}), xl = ["validate", "action", "method", "name"], Pl = {
|
|
6696
6696
|
key: 2,
|
|
6697
|
-
class: "builder-form-error-text pre-
|
|
6697
|
+
class: "builder-form-error-text pre-1hjwvu3r5mj"
|
|
6698
6698
|
};
|
|
6699
6699
|
function Ol(e, t, n, r, o, i) {
|
|
6700
6700
|
const s = W("Blocks");
|
|
@@ -6728,7 +6728,7 @@ function Ol(e, t, n, r, o, i) {
|
|
|
6728
6728
|
}, null, 8, ["blocks", "context"])) : F("", !0)
|
|
6729
6729
|
], 16, xl);
|
|
6730
6730
|
}
|
|
6731
|
-
const Nl = /* @__PURE__ */ j($l, [["render", Ol], ["__scopeId", "data-v-
|
|
6731
|
+
const Nl = /* @__PURE__ */ j($l, [["render", Ol], ["__scopeId", "data-v-3c8c685f"]]), Bl = {
|
|
6732
6732
|
name: "Form:Input",
|
|
6733
6733
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
6734
6734
|
inputs: [
|
|
@@ -6970,7 +6970,7 @@ const Zl = /* @__PURE__ */ j(Xl, [["render", Ql]]), eu = {
|
|
|
6970
6970
|
name: "image",
|
|
6971
6971
|
bubble: !0,
|
|
6972
6972
|
type: "file",
|
|
6973
|
-
allowedFileTypes:
|
|
6973
|
+
allowedFileTypes: _n,
|
|
6974
6974
|
required: !0
|
|
6975
6975
|
}, {
|
|
6976
6976
|
name: "backgroundSize",
|
|
@@ -7071,7 +7071,7 @@ const ou = /* @__PURE__ */ j(tu, [["render", ru]]), iu = {
|
|
|
7071
7071
|
}, {
|
|
7072
7072
|
name: "posterImage",
|
|
7073
7073
|
type: "file",
|
|
7074
|
-
allowedFileTypes:
|
|
7074
|
+
allowedFileTypes: _n,
|
|
7075
7075
|
helperText: "Image to show before the video plays"
|
|
7076
7076
|
}, {
|
|
7077
7077
|
name: "autoPlay",
|
|
@@ -7308,7 +7308,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7308
7308
|
}, {
|
|
7309
7309
|
component: du,
|
|
7310
7310
|
...iu
|
|
7311
|
-
}],
|
|
7311
|
+
}], Mr = () => [{
|
|
7312
7312
|
component: oi,
|
|
7313
7313
|
...Ma
|
|
7314
7314
|
}, {
|
|
@@ -7332,7 +7332,7 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7332
7332
|
}, {
|
|
7333
7333
|
component: fl,
|
|
7334
7334
|
...ul
|
|
7335
|
-
}, ...
|
|
7335
|
+
}, ...Po.includes(G) ? [{
|
|
7336
7336
|
component: Xa,
|
|
7337
7337
|
...Ga
|
|
7338
7338
|
}] : [], {
|
|
@@ -7434,26 +7434,34 @@ const du = /* @__PURE__ */ j(su, [["render", pu]]), fu = () => [{
|
|
|
7434
7434
|
thisScriptEl?.remove();
|
|
7435
7435
|
}
|
|
7436
7436
|
return;
|
|
7437
|
-
}`,
|
|
7437
|
+
}`, En = "builderIoAbTest", In = "builderIoRenderContent", Bt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
7438
7438
|
...t,
|
|
7439
7439
|
testVariationId: t.id,
|
|
7440
7440
|
id: e == null ? void 0 : e.id
|
|
7441
7441
|
})), gu = ({
|
|
7442
7442
|
canTrack: e,
|
|
7443
7443
|
content: t
|
|
7444
|
-
}) => !(!(Bt(t).length > 0) || !e), yu = (e) => e === "react" || e === "reactNative", vu = G === "angular",
|
|
7445
|
-
|
|
7446
|
-
|
|
7444
|
+
}) => !(!(Bt(t).length > 0) || !e), yu = (e) => e === "react" || e === "reactNative", vu = G === "angular", Xn = yu(G), bu = () => `
|
|
7445
|
+
(function() {
|
|
7446
|
+
if (!window.${En}) {
|
|
7447
|
+
window.${En} = ${hu};
|
|
7448
|
+
}
|
|
7449
|
+
if (!window.${In}) {
|
|
7450
|
+
window.${In} = ${mu};
|
|
7451
|
+
}${Xn ? `
|
|
7452
|
+
var thisScriptEl = document.currentScript;
|
|
7453
|
+
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
7454
|
+
})();
|
|
7447
7455
|
`, Su = (e, t) => `
|
|
7448
|
-
window.${
|
|
7449
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
7456
|
+
window.${En}(
|
|
7457
|
+
"${t}",${JSON.stringify(e)}, ${Xn}, ${vu}
|
|
7450
7458
|
)`, ku = ({
|
|
7451
7459
|
contentId: e,
|
|
7452
7460
|
variationId: t
|
|
7453
|
-
}) => `window.${
|
|
7454
|
-
"${t}", "${e}", ${
|
|
7461
|
+
}) => `window.${In}(
|
|
7462
|
+
"${t}", "${e}", ${Xn}
|
|
7455
7463
|
)`;
|
|
7456
|
-
function
|
|
7464
|
+
function Hr(e) {
|
|
7457
7465
|
return Math.round(e * 1e3) / 1e3;
|
|
7458
7466
|
}
|
|
7459
7467
|
const Cu = (e, t, n = !0) => {
|
|
@@ -7470,11 +7478,11 @@ const Cu = (e, t, n = !0) => {
|
|
|
7470
7478
|
}, wu = (e) => Cu(e, (t) => {
|
|
7471
7479
|
const n = t.getAttribute("builder-id") || t.id;
|
|
7472
7480
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
7473
|
-
}),
|
|
7481
|
+
}), Kr = ({
|
|
7474
7482
|
event: e,
|
|
7475
7483
|
target: t
|
|
7476
7484
|
}) => {
|
|
7477
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i =
|
|
7485
|
+
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
7486
|
return {
|
|
7479
7487
|
x: i,
|
|
7480
7488
|
y: s
|
|
@@ -7484,18 +7492,18 @@ const Cu = (e, t, n = !0) => {
|
|
|
7484
7492
|
return {
|
|
7485
7493
|
targetBuilderElement: r || void 0,
|
|
7486
7494
|
metadata: {
|
|
7487
|
-
targetOffset: t ?
|
|
7495
|
+
targetOffset: t ? Kr({
|
|
7488
7496
|
event: e,
|
|
7489
7497
|
target: t
|
|
7490
7498
|
}) : void 0,
|
|
7491
|
-
builderTargetOffset: n ?
|
|
7499
|
+
builderTargetOffset: n ? Kr({
|
|
7492
7500
|
event: e,
|
|
7493
7501
|
target: n
|
|
7494
7502
|
}) : void 0,
|
|
7495
7503
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
7496
7504
|
}
|
|
7497
7505
|
};
|
|
7498
|
-
}, Eu = ["svelte", "qwik", "vue"], Iu = () => Eu.includes(G) && (oe() ||
|
|
7506
|
+
}, Eu = ["svelte", "qwik", "vue"], Iu = () => Eu.includes(G) && (oe() || Hn()), Ru = (e) => {
|
|
7499
7507
|
var i;
|
|
7500
7508
|
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
7509
|
let o = "";
|
|
@@ -7611,7 +7619,7 @@ font-weight: ${s};
|
|
|
7611
7619
|
variationId: o !== s ? o : void 0
|
|
7612
7620
|
});
|
|
7613
7621
|
}
|
|
7614
|
-
|
|
7622
|
+
Hn() && !oe() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
7615
7623
|
new CustomEvent("initpreviewingbldr")
|
|
7616
7624
|
);
|
|
7617
7625
|
}
|
|
@@ -7713,7 +7721,7 @@ font-weight: ${s};
|
|
|
7713
7721
|
this.builderContextSignal.content = n;
|
|
7714
7722
|
},
|
|
7715
7723
|
processMessage(e) {
|
|
7716
|
-
return
|
|
7724
|
+
return go({
|
|
7717
7725
|
model: this.model,
|
|
7718
7726
|
trustedHosts: this.trustedHosts,
|
|
7719
7727
|
callbacks: {
|
|
@@ -7727,7 +7735,7 @@ font-weight: ${s};
|
|
|
7727
7735
|
});
|
|
7728
7736
|
},
|
|
7729
7737
|
animation: (t) => {
|
|
7730
|
-
|
|
7738
|
+
wo(t);
|
|
7731
7739
|
},
|
|
7732
7740
|
contentUpdate: (t, n) => {
|
|
7733
7741
|
this.mergeNewContent(t, n);
|
|
@@ -7787,7 +7795,7 @@ font-weight: ${s};
|
|
|
7787
7795
|
url: u,
|
|
7788
7796
|
method: "GET"
|
|
7789
7797
|
};
|
|
7790
|
-
|
|
7798
|
+
$n(JSON.stringify(c));
|
|
7791
7799
|
const m = {
|
|
7792
7800
|
method: c.method,
|
|
7793
7801
|
headers: c.headers,
|
|
@@ -7815,7 +7823,7 @@ font-weight: ${s};
|
|
|
7815
7823
|
"builder:component:stateChange",
|
|
7816
7824
|
{
|
|
7817
7825
|
detail: {
|
|
7818
|
-
state:
|
|
7826
|
+
state: Mn(this.builderContextSignal.rootState),
|
|
7819
7827
|
ref: {
|
|
7820
7828
|
name: this.model
|
|
7821
7829
|
}
|
|
@@ -7825,7 +7833,7 @@ font-weight: ${s};
|
|
|
7825
7833
|
);
|
|
7826
7834
|
},
|
|
7827
7835
|
elementRef_onIniteditingbldr(e) {
|
|
7828
|
-
window.addEventListener("message", this.processMessage),
|
|
7836
|
+
window.addEventListener("message", this.processMessage), mo({
|
|
7829
7837
|
...this.locale ? {
|
|
7830
7838
|
locale: this.locale
|
|
7831
7839
|
} : {},
|
|
@@ -7855,7 +7863,7 @@ font-weight: ${s};
|
|
|
7855
7863
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), r = t.get(
|
|
7856
7864
|
`builder.overrides.${n}`
|
|
7857
7865
|
), o = t.get("apiKey") || t.get("builder.space");
|
|
7858
|
-
(n === "BUILDER_STUDIO" || n === this.model && o === this.apiKey && (!this.content || r === this.content.id)) &&
|
|
7866
|
+
(n === "BUILDER_STUDIO" || n === this.model && o === this.apiKey && (!this.content || r === this.content.id)) && qn({
|
|
7859
7867
|
model: this.model,
|
|
7860
7868
|
apiKey: this.apiKey,
|
|
7861
7869
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -7949,7 +7957,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
7949
7957
|
name: "content-component",
|
|
7950
7958
|
components: {
|
|
7951
7959
|
EnableEditor: ju,
|
|
7952
|
-
InlinedScript:
|
|
7960
|
+
InlinedScript: Jn,
|
|
7953
7961
|
ContentStyles: Uu,
|
|
7954
7962
|
Blocks: Ue,
|
|
7955
7963
|
DynamicDiv: Ct
|
|
@@ -7987,7 +7995,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
7987
7995
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
7988
7996
|
}),
|
|
7989
7997
|
registeredComponents: [
|
|
7990
|
-
...
|
|
7998
|
+
...Mr(),
|
|
7991
7999
|
...this.customComponents || []
|
|
7992
8000
|
].reduce(
|
|
7993
8001
|
(n, { component: r, ...o }) => ({
|
|
@@ -8016,7 +8024,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
8016
8024
|
apiKey: this.apiKey,
|
|
8017
8025
|
apiVersion: this.apiVersion,
|
|
8018
8026
|
componentInfos: [
|
|
8019
|
-
...
|
|
8027
|
+
...Mr(),
|
|
8020
8028
|
...this.customComponents || []
|
|
8021
8029
|
].reduce(
|
|
8022
8030
|
(n, { component: r, ...o }) => ({
|
|
@@ -8037,7 +8045,7 @@ const Uu = /* @__PURE__ */ j(Vu, [["render", Du]]), Wu = ({
|
|
|
8037
8045
|
provide() {
|
|
8038
8046
|
const e = this;
|
|
8039
8047
|
return {
|
|
8040
|
-
[
|
|
8048
|
+
[qr.key]: {
|
|
8041
8049
|
registeredComponents: e.registeredComponents
|
|
8042
8050
|
}
|
|
8043
8051
|
};
|
|
@@ -8132,7 +8140,7 @@ function Hu(e, t, n, r, o, i) {
|
|
|
8132
8140
|
const Ku = /* @__PURE__ */ j(Mu, [["render", Hu]]), zu = B({
|
|
8133
8141
|
name: "content-variants",
|
|
8134
8142
|
components: {
|
|
8135
|
-
InlinedScript:
|
|
8143
|
+
InlinedScript: Jn,
|
|
8136
8144
|
InlinedStyles: Ht,
|
|
8137
8145
|
ContentComponent: Ku
|
|
8138
8146
|
},
|
|
@@ -8163,7 +8171,7 @@ const Ku = /* @__PURE__ */ j(Mu, [["render", Hu]]), zu = B({
|
|
|
8163
8171
|
canTrack: Xe(this.canTrack),
|
|
8164
8172
|
content: this.content
|
|
8165
8173
|
}),
|
|
8166
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
8174
|
+
SDKS_SUPPORTING_PERSONALIZATION: Po,
|
|
8167
8175
|
getInitPersonalizationVariantsFnsScriptString: Na,
|
|
8168
8176
|
TARGET: G,
|
|
8169
8177
|
getInitVariantsFnsScriptString: bu,
|
|
@@ -8202,11 +8210,6 @@ function qu(e, t, n, r, o, i) {
|
|
|
8202
8210
|
const s = W("InlinedScript"), u = W("InlinedStyles"), c = W("ContentComponent");
|
|
8203
8211
|
return v(), w(z, null, [
|
|
8204
8212
|
!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
8213
|
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (v(), U(s, {
|
|
8211
8214
|
key: 0,
|
|
8212
8215
|
id: "builderio-init-personalization-variants-fns",
|
|
@@ -8215,6 +8218,11 @@ function qu(e, t, n, r, o, i) {
|
|
|
8215
8218
|
}, null, 8, ["nonce", "scriptStr"])) : F("", !0)
|
|
8216
8219
|
], 64)) : F("", !0),
|
|
8217
8220
|
e.shouldRenderVariants ? (v(), w(z, { key: 1 }, [
|
|
8221
|
+
ee(s, {
|
|
8222
|
+
id: "builderio-init-variants-fns",
|
|
8223
|
+
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
8224
|
+
nonce: e.nonce || ""
|
|
8225
|
+
}, null, 8, ["scriptStr", "nonce"]),
|
|
8218
8226
|
ee(u, {
|
|
8219
8227
|
id: "builderio-variants",
|
|
8220
8228
|
styles: e.hideVariantsStyleString,
|
|
@@ -8283,7 +8291,7 @@ const Gu = /* @__PURE__ */ j(zu, [["render", qu]]), _u = async ({
|
|
|
8283
8291
|
}) => {
|
|
8284
8292
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
8285
8293
|
(e != null && e.apiKey))
|
|
8286
|
-
return
|
|
8294
|
+
return qn({
|
|
8287
8295
|
model: t.model,
|
|
8288
8296
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
8289
8297
|
apiVersion: e.apiVersion,
|
|
@@ -8395,13 +8403,13 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8395
8403
|
const Yu = /* @__PURE__ */ j(Ju, [["render", Xu]]);
|
|
8396
8404
|
export {
|
|
8397
8405
|
oc as A,
|
|
8398
|
-
|
|
8406
|
+
Ro as B,
|
|
8399
8407
|
pa as C,
|
|
8400
8408
|
sc as D,
|
|
8401
8409
|
Ps as E,
|
|
8402
8410
|
ha as F,
|
|
8403
8411
|
Os as G,
|
|
8404
|
-
|
|
8412
|
+
qn as H,
|
|
8405
8413
|
Ca as I,
|
|
8406
8414
|
Zu as J,
|
|
8407
8415
|
uc as K,
|
|
@@ -8419,20 +8427,20 @@ export {
|
|
|
8419
8427
|
ac as h,
|
|
8420
8428
|
oe as i,
|
|
8421
8429
|
cc as j,
|
|
8422
|
-
|
|
8430
|
+
Gn as k,
|
|
8423
8431
|
us as l,
|
|
8424
8432
|
oi as m,
|
|
8425
8433
|
Yu as n,
|
|
8426
8434
|
fl as o,
|
|
8427
8435
|
Ue as p,
|
|
8428
8436
|
Gu as q,
|
|
8429
|
-
|
|
8437
|
+
Hn as r,
|
|
8430
8438
|
ic as s,
|
|
8431
8439
|
cs as t,
|
|
8432
8440
|
tc as u,
|
|
8433
8441
|
nc as v,
|
|
8434
8442
|
Fu as w,
|
|
8435
8443
|
rc as x,
|
|
8436
|
-
|
|
8444
|
+
fo as y,
|
|
8437
8445
|
ec as z
|
|
8438
8446
|
};
|