@builder.io/sdk-vue 0.12.7 → 0.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{block-styles.f11c5ffe.cjs → block-styles.748d9f88.cjs} +1 -1
- package/lib/browser/{block-styles.ac6656ce.js → block-styles.d74f6617.js} +1 -1
- package/lib/browser/{block-wrapper.ad0103e8.js → block-wrapper.710f6ead.js} +3 -3
- package/lib/browser/{block-wrapper.6d69d80f.cjs → block-wrapper.e2fce73e.cjs} +1 -1
- package/lib/browser/{component-ref.e7f5419f.js → component-ref.03363e96.js} +2 -2
- package/lib/browser/{component-ref.dcfd64fd.cjs → component-ref.c86dec27.cjs} +1 -1
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +1 -1
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -3
- package/lib/browser/components/content/content.vue.d.ts +4 -4
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +5 -5
- package/lib/browser/components/content-variants/helpers.d.ts +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties.36d49987.cjs → get-block-properties.659e3684.cjs} +1 -1
- package/lib/browser/{get-block-properties.ed7e1592.js → get-block-properties.f1b877f0.js} +1 -1
- package/lib/browser/helpers/subscribe-to-editor.d.ts +35 -0
- package/lib/browser/index-helpers/blocks-exports.d.ts +5 -5
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/{index.5c75e9ce.cjs → index.d054dcd5.cjs} +18 -18
- package/lib/browser/{index.9fcd8cf7.js → index.e4b6c92c.js} +485 -444
- package/lib/browser/index.js +13 -12
- package/lib/browser/{repeated-block.4e2f22cc.js → repeated-block.a638bc5f.js} +2 -2
- package/lib/browser/{repeated-block.281d449f.cjs → repeated-block.ed6cc0b7.cjs} +1 -1
- package/lib/browser/server-index.d.ts +18 -3
- package/lib/edge/{block-styles.bafed14d.js → block-styles.61d3fabd.js} +1 -1
- package/lib/edge/{block-styles.601b26cb.cjs → block-styles.d0f18b3e.cjs} +1 -1
- package/lib/edge/{block-wrapper.799a2e02.cjs → block-wrapper.36466e9a.cjs} +1 -1
- package/lib/edge/{block-wrapper.66bb2c57.js → block-wrapper.73ff32a9.js} +3 -3
- package/lib/edge/{component-ref.541b3d51.cjs → component-ref.2fdda034.cjs} +1 -1
- package/lib/edge/{component-ref.78a1379d.js → component-ref.b7f29f71.js} +2 -2
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +1 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -3
- package/lib/edge/components/content/content.vue.d.ts +4 -4
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +5 -5
- package/lib/edge/components/content-variants/helpers.d.ts +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties.c85014fd.js → get-block-properties.71135a67.js} +1 -1
- package/lib/edge/{get-block-properties.b1bc93ca.cjs → get-block-properties.c88bf8e7.cjs} +1 -1
- package/lib/edge/helpers/subscribe-to-editor.d.ts +35 -0
- package/lib/edge/index-helpers/blocks-exports.d.ts +5 -5
- package/lib/edge/{index.86c101e6.js → index.838cffcb.js} +516 -475
- package/lib/edge/{index.df2b3d03.cjs → index.cc82eed5.cjs} +26 -26
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.js +14 -13
- package/lib/edge/{repeated-block.b8b6a27d.js → repeated-block.11ed9527.js} +2 -2
- package/lib/edge/{repeated-block.86b489a0.cjs → repeated-block.850eec15.cjs} +1 -1
- package/lib/edge/server-index.d.ts +18 -3
- package/lib/node/{block-styles.effd674a.js → block-styles.275c13cf.js} +1 -1
- package/lib/node/{block-styles.fea2564c.cjs → block-styles.2d4c1228.cjs} +1 -1
- package/lib/node/{block-wrapper.80b8925e.js → block-wrapper.7e4f14f2.js} +3 -3
- package/lib/node/{block-wrapper.a1458c25.cjs → block-wrapper.bafed25f.cjs} +1 -1
- package/lib/node/{component-ref.e6bc0eb4.cjs → component-ref.61bcfba9.cjs} +1 -1
- package/lib/node/{component-ref.aec34fe0.js → component-ref.a6d8f1e9.js} +2 -2
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +1 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +3 -3
- package/lib/node/components/content/content.vue.d.ts +4 -4
- package/lib/node/components/content-variants/content-variants.vue.d.ts +5 -5
- package/lib/node/components/content-variants/helpers.d.ts +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties.3b20c5e6.cjs → get-block-properties.717d980a.cjs} +1 -1
- package/lib/node/{get-block-properties.363f9151.js → get-block-properties.efe4d642.js} +1 -1
- package/lib/node/helpers/subscribe-to-editor.d.ts +35 -0
- package/lib/node/index-helpers/blocks-exports.d.ts +5 -5
- package/lib/node/{index.8723c72d.js → index.b08b1bee.js} +85 -44
- package/lib/node/{index.89bf7bc3.cjs → index.b3293495.cjs} +4 -4
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.js +13 -12
- package/lib/node/{repeated-block.54e347dd.cjs → repeated-block.007258b4.cjs} +1 -1
- package/lib/node/{repeated-block.d6e97a4f.js → repeated-block.f4c14578.js} +2 -2
- package/lib/node/server-index.d.ts +18 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as P, openBlock as k, createElementBlock as R, Fragment as se, createBlock as W, resolveDynamicComponent as ot, mergeProps as te, toHandlers as Me, withCtx as Ae, renderSlot as le, resolveComponent as U, createTextVNode as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as P, openBlock as k, createElementBlock as R, Fragment as se, createBlock as W, resolveDynamicComponent as ot, mergeProps as te, toHandlers as Me, withCtx as Ae, renderSlot as le, resolveComponent as U, createTextVNode as Bo, toDisplayString as Do, defineAsyncComponent as kt, createVNode as ye, renderList as ut, createCommentVNode as J, h as Sr, createElementVNode as rn, normalizeStyle as on, normalizeClass as Fr, markRaw as Io } from "vue";
|
|
2
|
+
const xo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), To = (e) => typeof e == "string" && xo.has(e.toLowerCase());
|
|
3
3
|
function Bt(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
5
5
|
for (const o in e) {
|
|
@@ -10,11 +10,11 @@ function Bt(e = {}, t, n) {
|
|
|
10
10
|
}
|
|
11
11
|
return r;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Ro = P({
|
|
14
14
|
name: "dynamic-renderer",
|
|
15
15
|
props: ["attributes", "actionAttributes", "TagName"],
|
|
16
16
|
data() {
|
|
17
|
-
return { isEmptyElement:
|
|
17
|
+
return { isEmptyElement: To };
|
|
18
18
|
}
|
|
19
19
|
}), N = (e, t) => {
|
|
20
20
|
const n = e.__vccOpts || e;
|
|
@@ -22,7 +22,7 @@ const xo = P({
|
|
|
22
22
|
n[r] = o;
|
|
23
23
|
return n;
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function jo(e, t, n, r, o, i) {
|
|
26
26
|
return e.isEmptyElement(e.TagName) ? (k(), W(ot(e.TagName), te({ key: 1 }, e.attributes, Me(e.actionAttributes)), null, 16)) : (k(), R(se, { key: 0 }, [
|
|
27
27
|
typeof e.TagName == "string" ? (k(), W(ot(e.TagName), te({ key: 0 }, e.attributes, Me(e.actionAttributes)), {
|
|
28
28
|
default: Ae(() => [
|
|
@@ -37,7 +37,7 @@ function To(e, t, n, r, o, i) {
|
|
|
37
37
|
}, 16))
|
|
38
38
|
], 64));
|
|
39
39
|
}
|
|
40
|
-
const dn = /* @__PURE__ */ N(
|
|
40
|
+
const dn = /* @__PURE__ */ N(Ro, [["render", jo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/dynamic-renderer/dynamic-renderer.vue"]]), ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
42
|
default: dn
|
|
43
43
|
}, Symbol.toStringTag, { value: "Module" })), ue = "vue", hn = () => {
|
|
@@ -52,7 +52,7 @@ const dn = /* @__PURE__ */ N(xo, [["render", To], ["__file", "/home/runner/work/
|
|
|
52
52
|
case "qwik":
|
|
53
53
|
return "class";
|
|
54
54
|
}
|
|
55
|
-
},
|
|
55
|
+
}, $o = P({
|
|
56
56
|
name: "builder-button",
|
|
57
57
|
components: { DynamicRenderer: dn },
|
|
58
58
|
props: [
|
|
@@ -66,7 +66,7 @@ const dn = /* @__PURE__ */ N(xo, [["render", To], ["__file", "/home/runner/work/
|
|
|
66
66
|
return { getClassPropName: hn, filterAttrs: Bt };
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
function
|
|
69
|
+
function Oo(e, t, n, r, o, i) {
|
|
70
70
|
const u = U("dynamic-renderer");
|
|
71
71
|
return k(), W(u, {
|
|
72
72
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -84,12 +84,12 @@ function jo(e, t, n, r, o, i) {
|
|
|
84
84
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
85
85
|
}, {
|
|
86
86
|
default: Ae(() => [
|
|
87
|
-
|
|
87
|
+
Bo(Do(e.text), 1)
|
|
88
88
|
]),
|
|
89
89
|
_: 1
|
|
90
90
|
}, 8, ["TagName", "attributes", "actionAttributes"]);
|
|
91
91
|
}
|
|
92
|
-
const
|
|
92
|
+
const Po = /* @__PURE__ */ N($o, [["render", Oo], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/button/button.vue"]]), No = Symbol(), sn = {
|
|
93
93
|
Builder: {
|
|
94
94
|
content: null,
|
|
95
95
|
context: {},
|
|
@@ -104,12 +104,12 @@ const $o = /* @__PURE__ */ N(Ro, [["render", jo], ["__file", "/home/runner/work/
|
|
|
104
104
|
BlocksWrapper: "div",
|
|
105
105
|
BlocksWrapperProps: {}
|
|
106
106
|
},
|
|
107
|
-
key:
|
|
108
|
-
},
|
|
107
|
+
key: No
|
|
108
|
+
}, Uo = Symbol(), wr = {
|
|
109
109
|
Components: { registeredComponents: {} },
|
|
110
|
-
key:
|
|
110
|
+
key: Uo
|
|
111
111
|
};
|
|
112
|
-
function
|
|
112
|
+
function Mo(e) {
|
|
113
113
|
var t;
|
|
114
114
|
return {
|
|
115
115
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -117,29 +117,29 @@ function No(e) {
|
|
|
117
117
|
builderBlock: e
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
-
const Et = "[Builder.io]: ",
|
|
120
|
+
const Et = "[Builder.io]: ", Y = {
|
|
121
121
|
log: (...e) => console.log(Et, ...e),
|
|
122
122
|
error: (...e) => console.error(Et, ...e),
|
|
123
123
|
warn: (...e) => console.warn(Et, ...e),
|
|
124
124
|
debug: (...e) => console.debug(Et, ...e)
|
|
125
125
|
};
|
|
126
|
-
function
|
|
126
|
+
function z() {
|
|
127
127
|
return typeof window < "u" && typeof document < "u";
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function _o() {
|
|
130
|
+
return z() && window.self !== window.top;
|
|
131
131
|
}
|
|
132
132
|
function ve() {
|
|
133
|
-
return
|
|
133
|
+
return _o() && (ue === "reactNative" || window.location.search.indexOf("builder.frameEditing=") !== -1);
|
|
134
134
|
}
|
|
135
|
-
const
|
|
136
|
-
if (
|
|
135
|
+
const Vo = () => {
|
|
136
|
+
if (z()) {
|
|
137
137
|
const e = new URL(location.href);
|
|
138
138
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
139
139
|
} else
|
|
140
140
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
141
|
-
},
|
|
142
|
-
const e =
|
|
141
|
+
}, Wo = () => typeof navigator == "object" && navigator.userAgent || "", Br = () => {
|
|
142
|
+
const e = Wo(), t = {
|
|
143
143
|
Android() {
|
|
144
144
|
return e.match(/Android/i);
|
|
145
145
|
},
|
|
@@ -158,7 +158,7 @@ const Mo = () => {
|
|
|
158
158
|
any() {
|
|
159
159
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || ue === "reactNative";
|
|
160
160
|
}
|
|
161
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
161
|
+
}, n = e.match(/Tablet|iPad/i), r = Vo();
|
|
162
162
|
return {
|
|
163
163
|
urlPath: r == null ? void 0 : r.pathname,
|
|
164
164
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
@@ -175,14 +175,14 @@ const Mo = () => {
|
|
|
175
175
|
builder: e,
|
|
176
176
|
context: t,
|
|
177
177
|
event: n
|
|
178
|
-
}),
|
|
178
|
+
}), Lo = () => ({
|
|
179
179
|
isEditing: ve(),
|
|
180
|
-
isBrowser:
|
|
181
|
-
isServer: !
|
|
180
|
+
isBrowser: z(),
|
|
181
|
+
isServer: !z(),
|
|
182
182
|
getUserAttributes: () => Br()
|
|
183
|
-
}),
|
|
183
|
+
}), Ho = (e, {
|
|
184
184
|
isExpression: t = !0
|
|
185
|
-
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
185
|
+
}) => t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, Ko = ({
|
|
186
186
|
code: e,
|
|
187
187
|
builder: t,
|
|
188
188
|
context: n,
|
|
@@ -234,9 +234,9 @@ const xr = (e, t, n) => {
|
|
|
234
234
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
235
235
|
return r.slice(0, -1).reduce((o, i, u) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[u + 1])) >> 0 === +r[u + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
236
236
|
};
|
|
237
|
-
var x,
|
|
237
|
+
var x, Go = function(e) {
|
|
238
238
|
function t(s) {
|
|
239
|
-
return 48 > s ? s === 36 : 58 > s ? !0 : 65 > s ? !1 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s &&
|
|
239
|
+
return 48 > s ? s === 36 : 58 > s ? !0 : 65 > s ? !1 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && Fo.test(String.fromCharCode(s));
|
|
240
240
|
}
|
|
241
241
|
function n(s) {
|
|
242
242
|
return 65 > s ? s === 36 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && ur.test(String.fromCharCode(s));
|
|
@@ -299,7 +299,7 @@ var x, Ho = function(e) {
|
|
|
299
299
|
break;
|
|
300
300
|
else if (s === 160)
|
|
301
301
|
++p;
|
|
302
|
-
else if (5760 <= s &&
|
|
302
|
+
else if (5760 <= s && So.test(String.fromCharCode(s)))
|
|
303
303
|
++p;
|
|
304
304
|
else
|
|
305
305
|
break;
|
|
@@ -412,26 +412,26 @@ var x, Ho = function(e) {
|
|
|
412
412
|
return;
|
|
413
413
|
case 37:
|
|
414
414
|
case 42:
|
|
415
|
-
y.charCodeAt(p + 1) === 61 ? C(xe, 2) : C(
|
|
415
|
+
y.charCodeAt(p + 1) === 61 ? C(xe, 2) : C(bo, 1);
|
|
416
416
|
return;
|
|
417
417
|
case 124:
|
|
418
418
|
case 38:
|
|
419
|
-
a = y.charCodeAt(p + 1), a === s ? C(s === 124 ? or : ir, 2) : a === 61 ? C(xe, 2) : C(s === 124 ?
|
|
419
|
+
a = y.charCodeAt(p + 1), a === s ? C(s === 124 ? or : ir, 2) : a === 61 ? C(xe, 2) : C(s === 124 ? fo : go, 1);
|
|
420
420
|
return;
|
|
421
421
|
case 94:
|
|
422
|
-
y.charCodeAt(p + 1) === 61 ? C(xe, 2) : C(
|
|
422
|
+
y.charCodeAt(p + 1) === 61 ? C(xe, 2) : C(mo, 1);
|
|
423
423
|
return;
|
|
424
424
|
case 43:
|
|
425
425
|
case 45:
|
|
426
|
-
a = y.charCodeAt(p + 1), a === s ? a === 45 && y.charCodeAt(p + 2) === 62 && At.test(y.slice(Ee, p)) ? (p += 3, c(), d(), g()) : C(
|
|
426
|
+
a = y.charCodeAt(p + 1), a === s ? a === 45 && y.charCodeAt(p + 2) === 62 && At.test(y.slice(Ee, p)) ? (p += 3, c(), d(), g()) : C(ho, 2) : a === 61 ? C(xe, 2) : C(Ao, 1);
|
|
427
427
|
return;
|
|
428
428
|
case 60:
|
|
429
429
|
case 62:
|
|
430
|
-
a = y.charCodeAt(p + 1), l = 1, a === s ? (l = s === 62 && y.charCodeAt(p + 2) === 62 ? 3 : 2, y.charCodeAt(p + l) === 61 ? C(xe, l + 1) : C(
|
|
430
|
+
a = y.charCodeAt(p + 1), l = 1, a === s ? (l = s === 62 && y.charCodeAt(p + 2) === 62 ? 3 : 2, y.charCodeAt(p + l) === 61 ? C(xe, l + 1) : C(Co, l)) : a === 33 && s === 60 && y.charCodeAt(p + 2) === 45 && y.charCodeAt(p + 3) === 45 ? (p += 4, c(), d(), g()) : (a === 61 && (l = y.charCodeAt(p + 2) === 61 ? 3 : 2), C(vo, l));
|
|
431
431
|
return;
|
|
432
432
|
case 61:
|
|
433
433
|
case 33:
|
|
434
|
-
y.charCodeAt(p + 1) === 61 ? C(
|
|
434
|
+
y.charCodeAt(p + 1) === 61 ? C(yo, y.charCodeAt(p + 2) === 61 ? 3 : 2) : C(s === 61 ? nr : rr, 1);
|
|
435
435
|
return;
|
|
436
436
|
case 126:
|
|
437
437
|
return C(rr, 1);
|
|
@@ -482,10 +482,10 @@ var x, Ho = function(e) {
|
|
|
482
482
|
}
|
|
483
483
|
function O(s, a) {
|
|
484
484
|
for (var l = p, h = 0, F = a === void 0 ? 1 / 0 : a, H = 0; H < F; ++H) {
|
|
485
|
-
var
|
|
486
|
-
if (
|
|
485
|
+
var q = y.charCodeAt(p);
|
|
486
|
+
if (q = 97 <= q ? q - 97 + 10 : 65 <= q ? q - 65 + 10 : 48 <= q && 57 >= q ? q - 48 : 1 / 0, q >= s)
|
|
487
487
|
break;
|
|
488
|
-
++p, h = h * s +
|
|
488
|
+
++p, h = h * s + q;
|
|
489
489
|
}
|
|
490
490
|
return p === l || a !== void 0 && p - l !== a ? null : h;
|
|
491
491
|
}
|
|
@@ -516,7 +516,7 @@ var x, Ho = function(e) {
|
|
|
516
516
|
}
|
|
517
517
|
function Be() {
|
|
518
518
|
var s = ne(), a = $e;
|
|
519
|
-
!Pe &&
|
|
519
|
+
!Pe && Eo(s) && (a = po[s]), u(a, s);
|
|
520
520
|
}
|
|
521
521
|
function E() {
|
|
522
522
|
Wt = L, Ee = je, Lt = Vt, g();
|
|
@@ -586,19 +586,19 @@ var x, Ho = function(e) {
|
|
|
586
586
|
case Mn:
|
|
587
587
|
return E(), V.push(Qt), a.body = ie(), V.pop(), _(Yt), a.test = Ke(), De(), w(a, "DoWhileStatement");
|
|
588
588
|
case Wn:
|
|
589
|
-
return E(), V.push(Qt), _(he), S === fe ? jt(a, null) : S === Jt ? (s = j(), E(), Rn(s, !0), w(s, "VariableDeclaration"), s.fa.length === 1 && $(vt) ? Tn(a, s) : jt(a, s)) : (s =
|
|
589
|
+
return E(), V.push(Qt), _(he), S === fe ? jt(a, null) : S === Jt ? (s = j(), E(), Rn(s, !0), w(s, "VariableDeclaration"), s.fa.length === 1 && $(vt) ? Tn(a, s) : jt(a, s)) : (s = X(!1, !0), $(vt) ? (mt(s), Tn(a, s)) : jt(a, s));
|
|
590
590
|
case zt:
|
|
591
591
|
return E(), Nt(a, !0);
|
|
592
592
|
case Ln:
|
|
593
593
|
return E(), a.test = Ke(), a.da = ie(), a.alternate = $(_n) ? ie() : null, w(a, "IfStatement");
|
|
594
594
|
case Hn:
|
|
595
|
-
return Je || B.Ib || r(L, "'return' outside of function"), E(), $(fe) || ft() ? a.K = null : (a.K =
|
|
595
|
+
return Je || B.Ib || r(L, "'return' outside of function"), E(), $(fe) || ft() ? a.K = null : (a.K = X(), De()), w(a, "ReturnStatement");
|
|
596
596
|
case Xt:
|
|
597
|
-
for (E(), a.Qb = Ke(), a.tb = [], _(qe), V.push(
|
|
598
|
-
S === Gt || S === Un ? (s = S === Gt, h && w(h, "SwitchCase"), a.tb.push(h = j()), h.da = [], E(), s ? h.test =
|
|
597
|
+
for (E(), a.Qb = Ke(), a.tb = [], _(qe), V.push(wo); S !== Oe; )
|
|
598
|
+
S === Gt || S === Un ? (s = S === Gt, h && w(h, "SwitchCase"), a.tb.push(h = j()), h.da = [], E(), s ? h.test = X() : (l && r(Wt, "Multiple default clauses"), l = !0, h.test = null), _(Ze)) : (h || ce(), h.da.push(ie()));
|
|
599
599
|
return h && w(h, "SwitchCase"), E(), V.pop(), w(a, "SwitchStatement");
|
|
600
600
|
case Kn:
|
|
601
|
-
return E(), At.test(y.slice(Ee, L)) && r(Ee, "Illegal newline after throw"), a.K =
|
|
601
|
+
return E(), At.test(y.slice(Ee, L)) && r(Ee, "Illegal newline after throw"), a.K = X(), De(), w(a, "ThrowStatement");
|
|
602
602
|
case Gn:
|
|
603
603
|
return E(), a.block = Ge(), a.Ea = null, S === On && (s = j(), E(), _(he), s.Ua = pe(), ee && Ct(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), _(ae), s.body = Ge(), a.Ea = w(s, "CatchClause")), a.fb = $(Vn) ? Ge() : null, a.Ea || a.fb || r(a.start, "Missing catch or finally clause"), w(a, "TryStatement");
|
|
604
604
|
case Jt:
|
|
@@ -612,7 +612,7 @@ var x, Ho = function(e) {
|
|
|
612
612
|
case fe:
|
|
613
613
|
return E(), w(a, "EmptyStatement");
|
|
614
614
|
default:
|
|
615
|
-
if (l = re, F =
|
|
615
|
+
if (l = re, F = X(), s === $e && F.type === "Identifier" && $(Ze)) {
|
|
616
616
|
for (h = 0; h < V.length; ++h)
|
|
617
617
|
V[h].name === l && r(F.start, "Label '" + l + "' is already declared");
|
|
618
618
|
return V.push({
|
|
@@ -625,7 +625,7 @@ var x, Ho = function(e) {
|
|
|
625
625
|
}
|
|
626
626
|
function Ke() {
|
|
627
627
|
_(he);
|
|
628
|
-
var s =
|
|
628
|
+
var s = X();
|
|
629
629
|
return _(ae), s;
|
|
630
630
|
}
|
|
631
631
|
function Ge(s) {
|
|
@@ -641,19 +641,19 @@ var x, Ho = function(e) {
|
|
|
641
641
|
return h && !H && Le(!1), w(a, "BlockStatement");
|
|
642
642
|
}
|
|
643
643
|
function jt(s, a) {
|
|
644
|
-
return s.ua = a, _(fe), s.test = S === fe ? null :
|
|
644
|
+
return s.ua = a, _(fe), s.test = S === fe ? null : X(), _(fe), s.update = S === ae ? null : X(), _(ae), s.body = ie(), V.pop(), w(s, "ForStatement");
|
|
645
645
|
}
|
|
646
646
|
function Tn(s, a) {
|
|
647
|
-
return s.left = a, s.right =
|
|
647
|
+
return s.left = a, s.right = X(), _(ae), s.body = ie(), V.pop(), w(s, "ForInStatement");
|
|
648
648
|
}
|
|
649
649
|
function Rn(s, a) {
|
|
650
650
|
for (s.fa = [], s.kind = "var"; ; ) {
|
|
651
651
|
var l = j();
|
|
652
|
-
if (l.id = pe(), ee && Ct(l.id.name) && r(l.id.start, "Binding " + l.id.name + " in strict mode"), l.ua = $(nr) ?
|
|
652
|
+
if (l.id = pe(), ee && Ct(l.id.name) && r(l.id.start, "Binding " + l.id.name + " in strict mode"), l.ua = $(nr) ? X(!0, a) : null, s.fa.push(w(l, "VariableDeclarator")), !$(Se))
|
|
653
653
|
break;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function X(s, a) {
|
|
657
657
|
var l = $t(a);
|
|
658
658
|
if (!s && S === Se) {
|
|
659
659
|
for (s = ke(l), s.xb = [l]; $(Se); )
|
|
@@ -666,7 +666,7 @@ var x, Ho = function(e) {
|
|
|
666
666
|
var a = Ot(Pt(), -1, s);
|
|
667
667
|
if ($(er)) {
|
|
668
668
|
var l = ke(a);
|
|
669
|
-
l.test = a, l.da =
|
|
669
|
+
l.test = a, l.da = X(!0), _(Ze), l.alternate = X(!0, s), a = w(l, "ConditionalExpression");
|
|
670
670
|
}
|
|
671
671
|
return S.Cb ? (l = ke(a), l.operator = re, l.left = a, E(), l.right = $t(s), mt(a), w(l, "AssignmentExpression")) : a;
|
|
672
672
|
}
|
|
@@ -692,7 +692,7 @@ var x, Ho = function(e) {
|
|
|
692
692
|
var l = ke(s);
|
|
693
693
|
return l.object = s, l.Wa = pe(!0), l.bb = !1, ze(w(l, "MemberExpression"), a);
|
|
694
694
|
}
|
|
695
|
-
return $(qt) ? (l = ke(s), l.object = s, l.Wa =
|
|
695
|
+
return $(qt) ? (l = ke(s), l.object = s, l.Wa = X(), l.bb = !0, _(Zt), ze(w(l, "MemberExpression"), a)) : !a && $(he) ? (l = ke(s), l.callee = s, l.arguments = Ut(ae, !1), ze(w(l, "CallExpression"), a)) : s;
|
|
696
696
|
}
|
|
697
697
|
function gt() {
|
|
698
698
|
switch (S) {
|
|
@@ -713,7 +713,7 @@ var x, Ho = function(e) {
|
|
|
713
713
|
s = _t;
|
|
714
714
|
var a = L;
|
|
715
715
|
E();
|
|
716
|
-
var l =
|
|
716
|
+
var l = X();
|
|
717
717
|
return l.start = a, l.end = je, B.C && (l.X.start = s, l.X.end = Vt), B.Xa && (l.j = [a, je]), _(ae), l;
|
|
718
718
|
case qt:
|
|
719
719
|
return s = j(), E(), s.elements = Ut(Zt, !0, !0), w(s, "ArrayExpression");
|
|
@@ -727,13 +727,13 @@ var x, Ho = function(e) {
|
|
|
727
727
|
key: S === Ye || S === yt ? gt() : pe(!0)
|
|
728
728
|
}, F = !1;
|
|
729
729
|
if ($(Ze)) {
|
|
730
|
-
h.value =
|
|
730
|
+
h.value = X(!0);
|
|
731
731
|
var H = h.kind = "init";
|
|
732
732
|
} else
|
|
733
733
|
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? ce() : (F = l = !0, H = h.kind = h.key.name, h.key = S === Ye || S === yt ? gt() : pe(!0), S !== he && ce(), h.value = Nt(j(), !1));
|
|
734
734
|
if (h.key.type === "Identifier" && (ee || l))
|
|
735
|
-
for (var
|
|
736
|
-
var Ne = s.h[
|
|
735
|
+
for (var q = 0; q < s.h.length; ++q) {
|
|
736
|
+
var Ne = s.h[q];
|
|
737
737
|
if (Ne.key.name === h.key.name) {
|
|
738
738
|
var en = H === Ne.kind || F && Ne.kind === "init" || H === "init" && (Ne.kind === "get" || Ne.kind === "set");
|
|
739
739
|
en && !ee && H === "init" && Ne.kind === "init" && (en = !1), en && r(h.key.start, "Redefinition of property");
|
|
@@ -745,7 +745,7 @@ var x, Ho = function(e) {
|
|
|
745
745
|
case zt:
|
|
746
746
|
return s = j(), E(), Nt(s, !1);
|
|
747
747
|
case Xn:
|
|
748
|
-
return s = j(), E(), s.callee = ze(gt(), !0), s.arguments = $(he) ? Ut(ae, !1) :
|
|
748
|
+
return s = j(), E(), s.callee = ze(gt(), !0), s.arguments = $(he) ? Ut(ae, !1) : co, w(s, "NewExpression");
|
|
749
749
|
}
|
|
750
750
|
ce();
|
|
751
751
|
}
|
|
@@ -770,13 +770,13 @@ var x, Ho = function(e) {
|
|
|
770
770
|
F = !1;
|
|
771
771
|
else if (_(Se), a && B.sb && $(s))
|
|
772
772
|
break;
|
|
773
|
-
h.push(l && S === Se ? null :
|
|
773
|
+
h.push(l && S === Se ? null : X(!0));
|
|
774
774
|
}
|
|
775
775
|
return h;
|
|
776
776
|
}
|
|
777
777
|
function pe(s) {
|
|
778
778
|
var a = j();
|
|
779
|
-
return s && B.yb === "everywhere" && (s = !1), S === $e ? (!s && (B.yb &&
|
|
779
|
+
return s && B.yb === "everywhere" && (s = !1), S === $e ? (!s && (B.yb && ko(re) || ee && sr(re)) && y.slice(L, je).indexOf("\\") === -1 && r(L, "The keyword '" + re + "' is reserved"), a.name = re) : s && S.l ? a.name = S.l : ce(), Xe = !1, E(), w(a, "Identifier");
|
|
780
780
|
}
|
|
781
781
|
e.version = "0.5.0";
|
|
782
782
|
var B, y = "", Re, Mt;
|
|
@@ -799,7 +799,7 @@ var x, Ho = function(e) {
|
|
|
799
799
|
dc: null,
|
|
800
800
|
sourceFile: null,
|
|
801
801
|
vb: null
|
|
802
|
-
}, p = 0, L = 0, je = 0, _t, Vt, S, re, Xe, Ie, de, Wt = 0, Ee = 0, Lt, Je, V, ee,
|
|
802
|
+
}, p = 0, L = 0, je = 0, _t, Vt, S, re, Xe, Ie, de, Wt = 0, Ee = 0, Lt, Je, V, ee, co = [], Ye = {
|
|
803
803
|
type: "num"
|
|
804
804
|
}, $n = {
|
|
805
805
|
type: "regexp"
|
|
@@ -872,7 +872,7 @@ var x, Ho = function(e) {
|
|
|
872
872
|
l: "in",
|
|
873
873
|
L: 7,
|
|
874
874
|
m: !0
|
|
875
|
-
},
|
|
875
|
+
}, po = {
|
|
876
876
|
break: Kt,
|
|
877
877
|
case: Gt,
|
|
878
878
|
catch: On,
|
|
@@ -956,7 +956,7 @@ var x, Ho = function(e) {
|
|
|
956
956
|
}, xe = {
|
|
957
957
|
Cb: !0,
|
|
958
958
|
m: !0
|
|
959
|
-
},
|
|
959
|
+
}, ho = {
|
|
960
960
|
cc: !0,
|
|
961
961
|
prefix: !0,
|
|
962
962
|
$b: !0
|
|
@@ -969,38 +969,38 @@ var x, Ho = function(e) {
|
|
|
969
969
|
}, ir = {
|
|
970
970
|
L: 2,
|
|
971
971
|
m: !0
|
|
972
|
-
},
|
|
972
|
+
}, fo = {
|
|
973
973
|
L: 3,
|
|
974
974
|
m: !0
|
|
975
|
-
},
|
|
975
|
+
}, mo = {
|
|
976
976
|
L: 4,
|
|
977
977
|
m: !0
|
|
978
|
-
},
|
|
978
|
+
}, go = {
|
|
979
979
|
L: 5,
|
|
980
980
|
m: !0
|
|
981
|
-
},
|
|
981
|
+
}, yo = {
|
|
982
982
|
L: 6,
|
|
983
983
|
m: !0
|
|
984
|
-
},
|
|
984
|
+
}, vo = {
|
|
985
985
|
L: 7,
|
|
986
986
|
m: !0
|
|
987
|
-
},
|
|
987
|
+
}, Co = {
|
|
988
988
|
L: 8,
|
|
989
989
|
m: !0
|
|
990
|
-
},
|
|
990
|
+
}, Ao = {
|
|
991
991
|
L: 9,
|
|
992
992
|
prefix: !0,
|
|
993
993
|
m: !0
|
|
994
|
-
},
|
|
994
|
+
}, bo = {
|
|
995
995
|
L: 10,
|
|
996
996
|
m: !0
|
|
997
|
-
}, Ao = o("class enum extends super const export import"), sr = o("implements interface let package private protected public static yield"), Ct = o("eval arguments"), bo = 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"), ko = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, ur = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]"), Eo = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u0620-\u0649\u0672-\u06D3\u06E7-\u06E8\u06FB-\u06FC\u0730-\u074A\u0800-\u0814\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0840-\u0857\u08E4-\u08FE\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09D7\u09DF-\u09E0\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5F-\u0B60\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D46-\u0D48\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E34-\u0E3A\u0E40-\u0E45\u0E50-\u0E59\u0EB4-\u0EB9\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F41-\u0F47\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1029\u1040-\u1049\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u170E-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17B2\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1920-\u192B\u1930-\u193B\u1951-\u196D\u19B0-\u19C0\u19C8-\u19C9\u19D0-\u19D9\u1A00-\u1A15\u1A20-\u1A53\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1B46-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C00-\u1C22\u1C40-\u1C49\u1C5B-\u1C7D\u1CD0-\u1CD2\u1D00-\u1DBE\u1E01-\u1F15\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2D81-\u2D96\u2DE0-\u2DFF\u3021-\u3028\u3099\u309A\uA640-\uA66D\uA674-\uA67D\uA69F\uA6F0-\uA6F1\uA7F8-\uA800\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8F3-\uA8F7\uA900-\uA909\uA926-\uA92D\uA930-\uA945\uA980-\uA983\uA9B3-\uA9C0\uAA00-\uAA27\uAA40-\uAA41\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B\uAAE0-\uAAE9\uAAF2-\uAAF3\uABC0-\uABE1\uABEC\uABED\uABF0-\uABF9\uFB20-\uFB28\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]"), At = /[\n\r\u2028\u2029]/, bt = /\r\n|[\n\r\u2028\u2029]/g, Pe, Qt = {
|
|
997
|
+
}, ko = o("class enum extends super const export import"), sr = o("implements interface let package private protected public static yield"), Ct = o("eval arguments"), Eo = 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"), So = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, ur = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]"), Fo = RegExp("[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u0620-\u0649\u0672-\u06D3\u06E7-\u06E8\u06FB-\u06FC\u0730-\u074A\u0800-\u0814\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0840-\u0857\u08E4-\u08FE\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962-\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09D7\u09DF-\u09E0\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5F-\u0B60\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D46-\u0D48\u0D57\u0D62-\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E34-\u0E3A\u0E40-\u0E45\u0E50-\u0E59\u0EB4-\u0EB9\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F41-\u0F47\u0F71-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1029\u1040-\u1049\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u170E-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17B2\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1920-\u192B\u1930-\u193B\u1951-\u196D\u19B0-\u19C0\u19C8-\u19C9\u19D0-\u19D9\u1A00-\u1A15\u1A20-\u1A53\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1B46-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C00-\u1C22\u1C40-\u1C49\u1C5B-\u1C7D\u1CD0-\u1CD2\u1D00-\u1DBE\u1E01-\u1F15\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2D81-\u2D96\u2DE0-\u2DFF\u3021-\u3028\u3099\u309A\uA640-\uA66D\uA674-\uA67D\uA69F\uA6F0-\uA6F1\uA7F8-\uA800\uA806\uA80B\uA823-\uA827\uA880-\uA881\uA8B4-\uA8C4\uA8D0-\uA8D9\uA8F3-\uA8F7\uA900-\uA909\uA926-\uA92D\uA930-\uA945\uA980-\uA983\uA9B3-\uA9C0\uAA00-\uAA27\uAA40-\uAA41\uAA4C-\uAA4D\uAA50-\uAA59\uAA7B\uAAE0-\uAAE9\uAAF2-\uAAF3\uABC0-\uABE1\uABEC\uABED\uABF0-\uABF9\uFB20-\uFB28\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]"), At = /[\n\r\u2028\u2029]/, bt = /\r\n|[\n\r\u2028\u2029]/g, Pe, Qt = {
|
|
998
998
|
kind: "loop"
|
|
999
|
-
},
|
|
999
|
+
}, wo = {
|
|
1000
1000
|
kind: "switch"
|
|
1001
1001
|
};
|
|
1002
1002
|
}, un = un = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1003
|
-
|
|
1003
|
+
Go(un.j || (un.j = {}));
|
|
1004
1004
|
function f(e, t) {
|
|
1005
1005
|
typeof e == "string" && (e = _e(e, "code"));
|
|
1006
1006
|
var n = e.constructor;
|
|
@@ -1030,7 +1030,7 @@ var ar = {
|
|
|
1030
1030
|
configurable: !0,
|
|
1031
1031
|
enumerable: !1,
|
|
1032
1032
|
writable: !0
|
|
1033
|
-
},
|
|
1033
|
+
}, Q = {
|
|
1034
1034
|
configurable: !0,
|
|
1035
1035
|
enumerable: !1,
|
|
1036
1036
|
writable: !1
|
|
@@ -1050,7 +1050,7 @@ var ar = {
|
|
|
1050
1050
|
VALUE_IN_DESCRIPTOR: !0
|
|
1051
1051
|
}, Ue = {
|
|
1052
1052
|
REGEXP_TIMEOUT: !0
|
|
1053
|
-
}, cr = [], ge = null, it = null, Fe = typeof globalThis > "u" ? void 0 : globalThis,
|
|
1053
|
+
}, cr = [], ge = null, it = null, Fe = typeof globalThis > "u" ? void 0 : globalThis, zo = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
1054
1054
|
function mn(e) {
|
|
1055
1055
|
var t = e >>> 0;
|
|
1056
1056
|
return t === Number(e) ? t : NaN;
|
|
@@ -1132,8 +1132,8 @@ x.Eb = function() {
|
|
|
1132
1132
|
;
|
|
1133
1133
|
return this.za;
|
|
1134
1134
|
};
|
|
1135
|
-
function
|
|
1136
|
-
e.g(t, "NaN", NaN, Qe), e.g(t, "Infinity", 1 / 0, Qe), e.g(t, "undefined", void 0, Qe), e.g(t, "window", t, fn), e.g(t, "this", t, Qe), e.g(t, "self", t), e.M = new D(null), e.Z = new D(e.M),
|
|
1135
|
+
function Xo(e, t) {
|
|
1136
|
+
e.g(t, "NaN", NaN, Qe), e.g(t, "Infinity", 1 / 0, Qe), e.g(t, "undefined", void 0, Qe), e.g(t, "window", t, fn), e.g(t, "this", t, Qe), e.g(t, "self", t), e.M = new D(null), e.Z = new D(e.M), Jo(e, t), Yo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), qo(e, t), Zo(e, t), Qo(e, t), ei(e, t), ti(e, t), ni(e, t), ri(e, t), oi(e, t), ii(e, t);
|
|
1137
1137
|
var n = e.i(function() {
|
|
1138
1138
|
throw EvalError("Can't happen");
|
|
1139
1139
|
}, !1);
|
|
@@ -1159,7 +1159,7 @@ function Go(e, t) {
|
|
|
1159
1159
|
}, e.g(t, "clearInterval", e.i(n, !1), v), 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);
|
|
1160
1160
|
}
|
|
1161
1161
|
x.Wb = 0;
|
|
1162
|
-
function
|
|
1162
|
+
function Jo(e, t) {
|
|
1163
1163
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1164
1164
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", u = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1165
1165
|
if (u) {
|
|
@@ -1178,7 +1178,7 @@ function zo(e, t) {
|
|
|
1178
1178
|
return m.body.length !== 1 && b(e, e.T, "Invalid code in function body"), vn(e, m.body[0].la, e.N, "anonymous");
|
|
1179
1179
|
};
|
|
1180
1180
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, v), e.g(e.O, "prototype", e.Z, v), e.g(e.Z, "constructor", e.O, v), e.Z.Ta = function() {
|
|
1181
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1181
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, Q), e.Z.H = "Function", r = function(o, i) {
|
|
1182
1182
|
var u = e.o[e.o.length - 1];
|
|
1183
1183
|
u.U = this, u.B = o, u.F = [], i != null && (i instanceof D ? u.F = Rr(e, i) : b(e, e.j, "CreateListFromArrayLike called on non-object")), u.eb = !1;
|
|
1184
1184
|
}, K(e, e.O, "apply", r), r = function(o) {
|
|
@@ -1193,7 +1193,7 @@ function zo(e, t) {
|
|
|
1193
1193
|
return this.valueOf();
|
|
1194
1194
|
}, K(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function Yo(e, t) {
|
|
1197
1197
|
function n(o) {
|
|
1198
1198
|
o != null || b(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1199
1199
|
}
|
|
@@ -1238,7 +1238,7 @@ function Xo(e, t) {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
}, K(e, e.v, "isPrototypeOf", r);
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function qo(e, t) {
|
|
1242
1242
|
var n = function(r) {
|
|
1243
1243
|
var o = be(e) ? this : Ve(e), i = arguments[0];
|
|
1244
1244
|
if (arguments.length === 1 && typeof i == "number")
|
|
@@ -1258,7 +1258,7 @@ function Jo(e, t) {
|
|
|
1258
1258
|
writable: !0
|
|
1259
1259
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function Zo(e, t) {
|
|
1262
1262
|
var n = function(r) {
|
|
1263
1263
|
return r = arguments.length ? Fe.String(r) : "", be(e) ? (this.data = r, this) : r;
|
|
1264
1264
|
};
|
|
@@ -1341,12 +1341,12 @@ function Yo(e, t) {
|
|
|
1341
1341
|
i(u.replace(r, o));
|
|
1342
1342
|
}, rt(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function Qo(e, t) {
|
|
1345
1345
|
e.mb = e.i(function(n) {
|
|
1346
1346
|
return n = Fe.Boolean(n), be(e) ? (this.data = n, this) : n;
|
|
1347
1347
|
}, !0), e.g(t, "Boolean", e.mb, v);
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function ei(e, t) {
|
|
1350
1350
|
var n = function(r) {
|
|
1351
1351
|
return r = arguments.length ? Fe.Number(r) : 0, be(e) ? (this.data = r, this) : r;
|
|
1352
1352
|
};
|
|
@@ -1385,7 +1385,7 @@ function Zo(e, t) {
|
|
|
1385
1385
|
}
|
|
1386
1386
|
}, K(e, e.aa, "toLocaleString", n);
|
|
1387
1387
|
}
|
|
1388
|
-
function
|
|
1388
|
+
function ti(e, t) {
|
|
1389
1389
|
var n = function(o, i) {
|
|
1390
1390
|
if (!be(e))
|
|
1391
1391
|
return Fe.Date();
|
|
@@ -1404,7 +1404,7 @@ function Qo(e, t) {
|
|
|
1404
1404
|
};
|
|
1405
1405
|
}(t[r]), K(e, e.$, t[r], n);
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function ni(e, t) {
|
|
1408
1408
|
var n = function(r, o) {
|
|
1409
1409
|
if (be(e))
|
|
1410
1410
|
var i = this;
|
|
@@ -1421,7 +1421,7 @@ function ei(e, t) {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
return gn(e, i, u), i;
|
|
1423
1423
|
};
|
|
1424
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, v), e.g(e.I.h.prototype, "global", void 0,
|
|
1424
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, v), e.g(e.I.h.prototype, "global", void 0, Q), e.g(e.I.h.prototype, "ignoreCase", void 0, Q), e.g(e.I.h.prototype, "multiline", void 0, Q), e.g(e.I.h.prototype, "source", "(?:)", Q), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1425
1425
|
function i(g) {
|
|
1426
1426
|
if (g) {
|
|
1427
1427
|
var C = me(e, g);
|
|
@@ -1446,7 +1446,7 @@ function ei(e, t) {
|
|
|
1446
1446
|
r = u.exec(r), e.g(this, "lastIndex", u.lastIndex), o(i(r));
|
|
1447
1447
|
}, rt(e, e.I, "exec", n);
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function ri(e, t) {
|
|
1450
1450
|
function n(r) {
|
|
1451
1451
|
var o = e.i(function(i) {
|
|
1452
1452
|
var u = be(e) ? this : e.Aa(o);
|
|
@@ -1459,16 +1459,16 @@ function ti(e, t) {
|
|
|
1459
1459
|
return an(e, o, r), o;
|
|
1460
1460
|
}, !0), e.g(t, "Error", e.D, v), e.g(e.D.h.prototype, "message", "", v), e.g(e.D.h.prototype, "name", "Error", v), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function oi(e, t) {
|
|
1463
1463
|
var n = e.s(e.M);
|
|
1464
1464
|
e.g(t, "Math", n, v);
|
|
1465
1465
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1466
1466
|
for (t = 0; t < r.length; t++)
|
|
1467
|
-
e.g(n, r[t], Math[r[t]],
|
|
1467
|
+
e.g(n, r[t], Math[r[t]], Q);
|
|
1468
1468
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1469
1469
|
e.g(n, r[t], e.i(Math[r[t]], !1), v);
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1471
|
+
function ii(e, t) {
|
|
1472
1472
|
var n = e.s(e.M);
|
|
1473
1473
|
e.g(t, "JSON", n, v), t = function(r) {
|
|
1474
1474
|
try {
|
|
@@ -1502,7 +1502,7 @@ function G(e, t, n) {
|
|
|
1502
1502
|
return !1;
|
|
1503
1503
|
}
|
|
1504
1504
|
function gn(e, t, n) {
|
|
1505
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, v), e.g(t, "source", n.source,
|
|
1505
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, v), e.g(t, "source", n.source, Q), e.g(t, "global", n.global, Q), e.g(t, "ignoreCase", n.ignoreCase, Q), e.g(t, "multiline", n.multiline, Q);
|
|
1506
1506
|
}
|
|
1507
1507
|
function an(e, t, n) {
|
|
1508
1508
|
n && e.g(t, "message", String(n), v), n = [];
|
|
@@ -1523,7 +1523,7 @@ function an(e, t, n) {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
x.ha = function() {
|
|
1525
1525
|
var e = this.ha.Mb;
|
|
1526
|
-
return e || (e = new Blob([
|
|
1526
|
+
return e || (e = new Blob([zo.join(`
|
|
1527
1527
|
`)], {
|
|
1528
1528
|
type: "application/javascript"
|
|
1529
1529
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1585,18 +1585,18 @@ function Ve(e) {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
function yn(e, t, n) {
|
|
1587
1587
|
var r = e.s(e.Z);
|
|
1588
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n, v), e.g(n, "constructor", r, v)) : r.Ab = !0, e.g(r, "length", t,
|
|
1588
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, v), e.g(n, "constructor", r, v)) : r.Ab = !0, e.g(r, "length", t, Q), r.H = "Function", r;
|
|
1589
1589
|
}
|
|
1590
1590
|
function vn(e, t, n, r) {
|
|
1591
1591
|
var o = yn(e, t.oa.length, !0);
|
|
1592
|
-
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "",
|
|
1592
|
+
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", Q), o;
|
|
1593
1593
|
}
|
|
1594
1594
|
x.i = function(e, t) {
|
|
1595
|
-
return t = yn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1595
|
+
return t = yn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, Q), t;
|
|
1596
1596
|
};
|
|
1597
1597
|
x.ub = function(e) {
|
|
1598
1598
|
var t = yn(this, e.length, !0);
|
|
1599
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1599
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, Q), t;
|
|
1600
1600
|
};
|
|
1601
1601
|
x.Ia = function(e) {
|
|
1602
1602
|
if (e instanceof D)
|
|
@@ -1802,7 +1802,7 @@ function ln(e, t, n) {
|
|
|
1802
1802
|
var o = t.body && t.body[0];
|
|
1803
1803
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1804
1804
|
}
|
|
1805
|
-
return o = e.s(null), r = new Or(n, r, o), n ||
|
|
1805
|
+
return o = e.s(null), r = new Or(n, r, o), n || Xo(e, r.object), lt(e, t, r), r;
|
|
1806
1806
|
}
|
|
1807
1807
|
function An(e, t, n) {
|
|
1808
1808
|
if (!t)
|
|
@@ -1941,34 +1941,34 @@ function pt(e, t, n, r) {
|
|
|
1941
1941
|
URIError
|
|
1942
1942
|
}, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1944
|
+
function Z(e, t) {
|
|
1945
1945
|
switch (t.type) {
|
|
1946
1946
|
case "ArrayExpression":
|
|
1947
1947
|
return "[...]";
|
|
1948
1948
|
case "BinaryExpression":
|
|
1949
1949
|
case "LogicalExpression":
|
|
1950
|
-
return
|
|
1950
|
+
return Z(e, t.left) + " " + t.operator + " " + Z(e, t.right);
|
|
1951
1951
|
case "CallExpression":
|
|
1952
|
-
return
|
|
1952
|
+
return Z(e, t.callee) + "(...)";
|
|
1953
1953
|
case "ConditionalExpression":
|
|
1954
|
-
return
|
|
1954
|
+
return Z(e, t.test) + " ? " + Z(e, t.da) + " : " + Z(e, t.alternate);
|
|
1955
1955
|
case "Identifier":
|
|
1956
1956
|
return t.name;
|
|
1957
1957
|
case "Literal":
|
|
1958
1958
|
return t.raw;
|
|
1959
1959
|
case "MemberExpression":
|
|
1960
|
-
var n =
|
|
1961
|
-
return e =
|
|
1960
|
+
var n = Z(e, t.object);
|
|
1961
|
+
return e = Z(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1962
1962
|
case "NewExpression":
|
|
1963
|
-
return "new " +
|
|
1963
|
+
return "new " + Z(e, t.callee) + "(...)";
|
|
1964
1964
|
case "ObjectExpression":
|
|
1965
1965
|
return "{...}";
|
|
1966
1966
|
case "ThisExpression":
|
|
1967
1967
|
return "this";
|
|
1968
1968
|
case "UnaryExpression":
|
|
1969
|
-
return t.operator + " " +
|
|
1969
|
+
return t.operator + " " + Z(e, t.K);
|
|
1970
1970
|
case "UpdateExpression":
|
|
1971
|
-
return n =
|
|
1971
|
+
return n = Z(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1972
1972
|
}
|
|
1973
1973
|
return "???";
|
|
1974
1974
|
}
|
|
@@ -1987,7 +1987,7 @@ function pr(e, t, n) {
|
|
|
1987
1987
|
}
|
|
1988
1988
|
u.type = "EvalProgram_", u.body = d.body, r = r.node.arguments[0], Dt(u, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1989
1989
|
}
|
|
1990
|
-
return t = new
|
|
1990
|
+
return t = new si(c, o, r, u, t ? n : -1), $r(e, t, n), t.Db;
|
|
1991
1991
|
}
|
|
1992
1992
|
function $r(e, t, n) {
|
|
1993
1993
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
@@ -2091,10 +2091,10 @@ x.toString = function() {
|
|
|
2091
2091
|
x.valueOf = function() {
|
|
2092
2092
|
return !it || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2093
2093
|
};
|
|
2094
|
-
function
|
|
2095
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
2094
|
+
function si(e, t, n, r, o) {
|
|
2095
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++ui, this.time = 0;
|
|
2096
2096
|
}
|
|
2097
|
-
var
|
|
2097
|
+
var ui = 0;
|
|
2098
2098
|
f.prototype.stepArrayExpression = function(e, t, n) {
|
|
2099
2099
|
n = n.elements;
|
|
2100
2100
|
var r = t.A || 0;
|
|
@@ -2265,7 +2265,7 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2265
2265
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2266
2266
|
return new A(n.arguments[t.A++], t.scope);
|
|
2267
2267
|
if (n.type === "NewExpression") {
|
|
2268
|
-
if (o instanceof D && !o.Ab || b(this, this.j,
|
|
2268
|
+
if (o instanceof D && !o.Ab || b(this, this.j, Z(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2269
2269
|
t.B = Ve(this);
|
|
2270
2270
|
else {
|
|
2271
2271
|
var i = o.h.prototype;
|
|
@@ -2278,7 +2278,7 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2278
2278
|
if (t.eb)
|
|
2279
2279
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2280
2280
|
else {
|
|
2281
|
-
if (t.eb = !0, o instanceof D || b(this, this.j,
|
|
2281
|
+
if (t.eb = !0, o instanceof D || b(this, this.j, Z(this, n.callee) + " is not a function"), e = o.node) {
|
|
2282
2282
|
for (n = ln(this, e.body, o.Va), r = Ve(this), o = 0; o < t.F.length; o++)
|
|
2283
2283
|
this.g(r, o, t.F[o]);
|
|
2284
2284
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
@@ -2304,7 +2304,7 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2304
2304
|
t.value = c, u.za = !1;
|
|
2305
2305
|
}), this.za = !0, t.scope.S || (t.B = tn(this, t.B)), o.Za.apply(t.B, r);
|
|
2306
2306
|
} else
|
|
2307
|
-
b(this, this.j,
|
|
2307
|
+
b(this, this.j, Z(this, n.callee) + " is not callable");
|
|
2308
2308
|
}
|
|
2309
2309
|
};
|
|
2310
2310
|
f.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2642,7 +2642,7 @@ f.prototype.getGlobalScope = f.prototype.Xb;
|
|
|
2642
2642
|
f.prototype.getStateStack = f.prototype.Yb;
|
|
2643
2643
|
f.prototype.setStateStack = f.prototype.ec;
|
|
2644
2644
|
f.VALUE_IN_DESCRIPTOR = at;
|
|
2645
|
-
const
|
|
2645
|
+
const ai = (e) => e.split(`
|
|
2646
2646
|
`).map((t) => {
|
|
2647
2647
|
const n = t.trim();
|
|
2648
2648
|
if (t.includes("__awaiter"))
|
|
@@ -2655,7 +2655,7 @@ const si = (e) => e.split(`
|
|
|
2655
2655
|
${c}
|
|
2656
2656
|
`;
|
|
2657
2657
|
}).filter(Boolean).join(`
|
|
2658
|
-
`), hr = (e) => e + "JSON",
|
|
2658
|
+
`), hr = (e) => e + "JSON", li = ({
|
|
2659
2659
|
builder: e,
|
|
2660
2660
|
context: t,
|
|
2661
2661
|
event: n,
|
|
@@ -2676,9 +2676,9 @@ const si = (e) => e.split(`
|
|
|
2676
2676
|
const M = hr(I);
|
|
2677
2677
|
return `var ${I} = ${M} === undefined ? undefined : JSON.parse(${M});`;
|
|
2678
2678
|
}).join(`
|
|
2679
|
-
`), g =
|
|
2679
|
+
`), g = ai(u);
|
|
2680
2680
|
if (g === "") {
|
|
2681
|
-
|
|
2681
|
+
Y.warn("Skipping evaluation of empty code block.");
|
|
2682
2682
|
return;
|
|
2683
2683
|
}
|
|
2684
2684
|
const C = `
|
|
@@ -2701,23 +2701,23 @@ theFunction();
|
|
|
2701
2701
|
const I = new f(C, O);
|
|
2702
2702
|
return I.run(), I.pseudoToNative(I.value);
|
|
2703
2703
|
} catch (I) {
|
|
2704
|
-
|
|
2704
|
+
Y.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2705
2705
|
e: I
|
|
2706
2706
|
});
|
|
2707
2707
|
return;
|
|
2708
2708
|
}
|
|
2709
2709
|
}, we = (e) => e != null;
|
|
2710
|
-
function
|
|
2710
|
+
function ci() {
|
|
2711
2711
|
var e;
|
|
2712
2712
|
return typeof process < "u" && we((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2713
2713
|
}
|
|
2714
|
-
const
|
|
2714
|
+
const pi = () => {
|
|
2715
2715
|
var r;
|
|
2716
|
-
if (!
|
|
2716
|
+
if (!ci())
|
|
2717
2717
|
return !1;
|
|
2718
2718
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2719
|
-
return e && t && !n ? (
|
|
2720
|
-
},
|
|
2719
|
+
return e && t && !n ? (Y.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2720
|
+
}, di = (e) => z() || pi() ? Ko(e) : li(e);
|
|
2721
2721
|
function wt({
|
|
2722
2722
|
code: e,
|
|
2723
2723
|
context: t,
|
|
@@ -2728,14 +2728,14 @@ function wt({
|
|
|
2728
2728
|
isExpression: u = !0
|
|
2729
2729
|
}) {
|
|
2730
2730
|
if (e === "") {
|
|
2731
|
-
|
|
2731
|
+
Y.warn("Skipping evaluation of empty code block.");
|
|
2732
2732
|
return;
|
|
2733
2733
|
}
|
|
2734
2734
|
const c = {
|
|
2735
|
-
code:
|
|
2735
|
+
code: Ho(e, {
|
|
2736
2736
|
isExpression: u
|
|
2737
2737
|
}),
|
|
2738
|
-
builder:
|
|
2738
|
+
builder: Lo(),
|
|
2739
2739
|
context: t,
|
|
2740
2740
|
event: i,
|
|
2741
2741
|
rootSetState: o,
|
|
@@ -2743,16 +2743,16 @@ function wt({
|
|
|
2743
2743
|
localState: n
|
|
2744
2744
|
};
|
|
2745
2745
|
try {
|
|
2746
|
-
return
|
|
2746
|
+
return di(c);
|
|
2747
2747
|
} catch (d) {
|
|
2748
|
-
|
|
2748
|
+
Y.error("Failed code evaluation: " + d.message, {
|
|
2749
2749
|
code: e
|
|
2750
2750
|
});
|
|
2751
2751
|
return;
|
|
2752
2752
|
}
|
|
2753
2753
|
}
|
|
2754
2754
|
const ht = (e) => JSON.parse(JSON.stringify(e));
|
|
2755
|
-
const
|
|
2755
|
+
const hi = ({
|
|
2756
2756
|
block: e,
|
|
2757
2757
|
context: t,
|
|
2758
2758
|
localState: n,
|
|
@@ -2791,7 +2791,7 @@ function Pr({
|
|
|
2791
2791
|
rootSetState: i
|
|
2792
2792
|
}) {
|
|
2793
2793
|
const u = e;
|
|
2794
|
-
return n ?
|
|
2794
|
+
return n ? hi({
|
|
2795
2795
|
block: u,
|
|
2796
2796
|
localState: r,
|
|
2797
2797
|
rootState: o,
|
|
@@ -2799,31 +2799,31 @@ function Pr({
|
|
|
2799
2799
|
context: t
|
|
2800
2800
|
}) : u;
|
|
2801
2801
|
}
|
|
2802
|
-
const
|
|
2802
|
+
const fi = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Nr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2803
2803
|
if (typeof r == "string")
|
|
2804
|
-
return `${
|
|
2805
|
-
}).filter(we),
|
|
2806
|
-
`),
|
|
2804
|
+
return `${fi(n)}: ${r};`;
|
|
2805
|
+
}).filter(we), mi = (e) => Nr(e).join(`
|
|
2806
|
+
`), sa = ({
|
|
2807
2807
|
mediaQuery: e,
|
|
2808
2808
|
className: t,
|
|
2809
2809
|
styles: n
|
|
2810
2810
|
}) => {
|
|
2811
2811
|
const r = `.${t} {
|
|
2812
|
-
${
|
|
2812
|
+
${mi(n)}
|
|
2813
2813
|
}`;
|
|
2814
2814
|
return e ? `${e} {
|
|
2815
2815
|
${r}
|
|
2816
2816
|
}` : r;
|
|
2817
2817
|
};
|
|
2818
|
-
function
|
|
2818
|
+
function gi({
|
|
2819
2819
|
style: e
|
|
2820
2820
|
}) {
|
|
2821
2821
|
return e;
|
|
2822
2822
|
}
|
|
2823
|
-
const
|
|
2823
|
+
const ua = ({
|
|
2824
2824
|
block: e,
|
|
2825
2825
|
context: t
|
|
2826
|
-
}) => Ur(
|
|
2826
|
+
}) => Ur(gi({
|
|
2827
2827
|
style: e.style || {},
|
|
2828
2828
|
context: t,
|
|
2829
2829
|
block: e
|
|
@@ -2841,7 +2841,7 @@ function Ur(e) {
|
|
|
2841
2841
|
return e;
|
|
2842
2842
|
}
|
|
2843
2843
|
}
|
|
2844
|
-
function
|
|
2844
|
+
function yi(e, t, n = {}) {
|
|
2845
2845
|
let r, o, i, u = null, c = 0;
|
|
2846
2846
|
const d = function() {
|
|
2847
2847
|
c = n.leading === !1 ? 0 : Date.now(), u = null, i = e.apply(r, o), u || (r = o = null);
|
|
@@ -2864,17 +2864,17 @@ function Te(e, ...t) {
|
|
|
2864
2864
|
return n;
|
|
2865
2865
|
}
|
|
2866
2866
|
const Fn = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
2867
|
-
function
|
|
2867
|
+
function vi(e) {
|
|
2868
2868
|
for (const t of e)
|
|
2869
2869
|
switch (t.trigger) {
|
|
2870
2870
|
case "pageLoad":
|
|
2871
2871
|
Mr(t);
|
|
2872
2872
|
break;
|
|
2873
2873
|
case "hover":
|
|
2874
|
-
|
|
2874
|
+
Ai(t);
|
|
2875
2875
|
break;
|
|
2876
2876
|
case "scrollInView":
|
|
2877
|
-
|
|
2877
|
+
bi(t);
|
|
2878
2878
|
break;
|
|
2879
2879
|
}
|
|
2880
2880
|
}
|
|
@@ -2882,12 +2882,12 @@ function wn(e) {
|
|
|
2882
2882
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2883
2883
|
}
|
|
2884
2884
|
function Bn(e, t) {
|
|
2885
|
-
const n =
|
|
2885
|
+
const n = Ci(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, u = [o, i];
|
|
2886
2886
|
for (const c of u)
|
|
2887
2887
|
for (const d of n)
|
|
2888
2888
|
d in c || (c[d] = r[d]);
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function Ci(e) {
|
|
2891
2891
|
const t = [];
|
|
2892
2892
|
for (const n of e.steps)
|
|
2893
2893
|
for (const r in n.styles)
|
|
@@ -2908,7 +2908,7 @@ function Mr(e) {
|
|
|
2908
2908
|
});
|
|
2909
2909
|
});
|
|
2910
2910
|
}
|
|
2911
|
-
function
|
|
2911
|
+
function Ai(e) {
|
|
2912
2912
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2913
2913
|
if (!t.length) {
|
|
2914
2914
|
wn(e.elementId || e.id || "");
|
|
@@ -2928,7 +2928,7 @@ function vi(e) {
|
|
|
2928
2928
|
});
|
|
2929
2929
|
});
|
|
2930
2930
|
}
|
|
2931
|
-
function
|
|
2931
|
+
function bi(e) {
|
|
2932
2932
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2933
2933
|
if (!t.length) {
|
|
2934
2934
|
wn(e.elementId || e.id || "");
|
|
@@ -2944,7 +2944,7 @@ function Ci(e) {
|
|
|
2944
2944
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2945
2945
|
})) : e.repeat && r && !o && !c(n) && (r = !1, Te(n.style, e.steps[0].styles));
|
|
2946
2946
|
}
|
|
2947
|
-
const u =
|
|
2947
|
+
const u = yi(i, 200, {
|
|
2948
2948
|
leading: !1
|
|
2949
2949
|
});
|
|
2950
2950
|
function c(g) {
|
|
@@ -2963,7 +2963,7 @@ function Ci(e) {
|
|
|
2963
2963
|
}), i();
|
|
2964
2964
|
});
|
|
2965
2965
|
}
|
|
2966
|
-
const
|
|
2966
|
+
const ki = ({
|
|
2967
2967
|
block: e,
|
|
2968
2968
|
context: t,
|
|
2969
2969
|
registeredComponents: n
|
|
@@ -2985,7 +2985,7 @@ const Ai = ({
|
|
|
2985
2985
|
console.warn(`
|
|
2986
2986
|
Could not find a registered component named "${r}".
|
|
2987
2987
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2988
|
-
},
|
|
2988
|
+
}, Ei = ({
|
|
2989
2989
|
block: e,
|
|
2990
2990
|
context: t
|
|
2991
2991
|
}) => {
|
|
@@ -3018,33 +3018,33 @@ const Ai = ({
|
|
|
3018
3018
|
},
|
|
3019
3019
|
block: r
|
|
3020
3020
|
}));
|
|
3021
|
-
},
|
|
3021
|
+
}, Si = () => import("./block-styles.61d3fabd.js").then((e) => e.default).catch((e) => {
|
|
3022
3022
|
throw console.error(
|
|
3023
3023
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3024
3024
|
e
|
|
3025
3025
|
), e;
|
|
3026
|
-
}),
|
|
3026
|
+
}), Fi = () => import("./block-wrapper.73ff32a9.js").then((e) => e.default).catch((e) => {
|
|
3027
3027
|
throw console.error(
|
|
3028
3028
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3029
3029
|
e
|
|
3030
3030
|
), e;
|
|
3031
|
-
}),
|
|
3031
|
+
}), wi = () => import("./component-ref.b7f29f71.js").then((e) => e.default).catch((e) => {
|
|
3032
3032
|
throw console.error(
|
|
3033
3033
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3034
3034
|
e
|
|
3035
3035
|
), e;
|
|
3036
|
-
}),
|
|
3036
|
+
}), Bi = () => import("./repeated-block.11ed9527.js").then((e) => e.default).catch((e) => {
|
|
3037
3037
|
throw console.error(
|
|
3038
3038
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3039
3039
|
e
|
|
3040
3040
|
), e;
|
|
3041
|
-
}),
|
|
3041
|
+
}), Di = P({
|
|
3042
3042
|
name: "block",
|
|
3043
3043
|
components: {
|
|
3044
|
-
BlockStyles: kt(
|
|
3045
|
-
ComponentRef: kt(
|
|
3046
|
-
RepeatedBlock: kt(
|
|
3047
|
-
BlockWrapper: kt(
|
|
3044
|
+
BlockStyles: kt(Si),
|
|
3045
|
+
ComponentRef: kt(wi),
|
|
3046
|
+
RepeatedBlock: kt(Bi),
|
|
3047
|
+
BlockWrapper: kt(Fi)
|
|
3048
3048
|
},
|
|
3049
3049
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
3050
3050
|
data() {
|
|
@@ -3052,7 +3052,7 @@ const Ai = ({
|
|
|
3052
3052
|
},
|
|
3053
3053
|
mounted() {
|
|
3054
3054
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
3055
|
-
t && e &&
|
|
3055
|
+
t && e && vi(
|
|
3056
3056
|
t.filter((n) => n.trigger !== "hover").map((n) => ({
|
|
3057
3057
|
...n,
|
|
3058
3058
|
elementId: e
|
|
@@ -3061,14 +3061,14 @@ const Ai = ({
|
|
|
3061
3061
|
},
|
|
3062
3062
|
computed: {
|
|
3063
3063
|
blockComponent() {
|
|
3064
|
-
return
|
|
3064
|
+
return ki({
|
|
3065
3065
|
block: this.block,
|
|
3066
3066
|
context: this.context,
|
|
3067
3067
|
registeredComponents: this.registeredComponents
|
|
3068
3068
|
});
|
|
3069
3069
|
},
|
|
3070
3070
|
repeatItem() {
|
|
3071
|
-
return
|
|
3071
|
+
return Ei({
|
|
3072
3072
|
block: this.block,
|
|
3073
3073
|
context: this.context
|
|
3074
3074
|
});
|
|
@@ -3105,7 +3105,7 @@ const Ai = ({
|
|
|
3105
3105
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
3106
3106
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
3107
3107
|
componentOptions: {
|
|
3108
|
-
...
|
|
3108
|
+
...Mo(this.processedBlock),
|
|
3109
3109
|
builderContext: this.context,
|
|
3110
3110
|
...((n = this.blockComponent) == null ? void 0 : n.name) === "Core:Button" || ((r = this.blockComponent) == null ? void 0 : r.name) === "Symbol" || ((o = this.blockComponent) == null ? void 0 : o.name) === "Columns" ? {
|
|
3111
3111
|
builderLinkComponent: this.linkComponent
|
|
@@ -3124,7 +3124,7 @@ const Ai = ({
|
|
|
3124
3124
|
}
|
|
3125
3125
|
}
|
|
3126
3126
|
});
|
|
3127
|
-
function
|
|
3127
|
+
function Ii(e, t, n, r, o, i) {
|
|
3128
3128
|
var C;
|
|
3129
3129
|
const u = U("block-styles"), c = U("component-ref"), d = U("block", !0), m = U("block-wrapper"), g = U("repeated-block");
|
|
3130
3130
|
return e.canShowBlock ? (k(), R(se, { key: 0 }, [
|
|
@@ -3180,12 +3180,12 @@ function Bi(e, t, n, r, o, i) {
|
|
|
3180
3180
|
_: 1
|
|
3181
3181
|
}, 8, ["Wrapper", "block", "context", "linkComponent"]))
|
|
3182
3182
|
], 64))
|
|
3183
|
-
], 64)) :
|
|
3183
|
+
], 64)) : J("v-if", !0);
|
|
3184
3184
|
}
|
|
3185
|
-
const _r = /* @__PURE__ */ N(
|
|
3185
|
+
const _r = /* @__PURE__ */ N(Di, [["render", Ii], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/block/block.vue"]]), aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3186
3186
|
__proto__: null,
|
|
3187
3187
|
default: _r
|
|
3188
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3188
|
+
}, Symbol.toStringTag, { value: "Module" })), xi = P({
|
|
3189
3189
|
name: "builder-blocks-wrapper",
|
|
3190
3190
|
props: [
|
|
3191
3191
|
"BlocksWrapper",
|
|
@@ -3230,7 +3230,7 @@ const _r = /* @__PURE__ */ N(wi, [["render", Bi], ["__file", "/home/runner/work/
|
|
|
3230
3230
|
}
|
|
3231
3231
|
}
|
|
3232
3232
|
});
|
|
3233
|
-
function
|
|
3233
|
+
function Ti(e, t, n, r, o, i) {
|
|
3234
3234
|
return k(), W(ot(e.BlocksWrapper), te({
|
|
3235
3235
|
class: e.className + " component-1k2igrjdg3x",
|
|
3236
3236
|
"builder-path": e.path,
|
|
@@ -3246,9 +3246,9 @@ function Ii(e, t, n, r, o, i) {
|
|
|
3246
3246
|
_: 3
|
|
3247
3247
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
3248
3248
|
}
|
|
3249
|
-
const
|
|
3249
|
+
const Ri = /* @__PURE__ */ N(xi, [["render", Ti], ["__scopeId", "data-v-1f8aab9f"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks-wrapper.vue"]]), ji = P({
|
|
3250
3250
|
name: "builder-blocks",
|
|
3251
|
-
components: { BlocksWrapper:
|
|
3251
|
+
components: { BlocksWrapper: Ri, Block: _r },
|
|
3252
3252
|
props: [
|
|
3253
3253
|
"blocks",
|
|
3254
3254
|
"parent",
|
|
@@ -3263,7 +3263,7 @@ const xi = /* @__PURE__ */ N(Di, [["render", Ii], ["__scopeId", "data-v-1f8aab9f
|
|
|
3263
3263
|
componentsContext: wr.key
|
|
3264
3264
|
}
|
|
3265
3265
|
});
|
|
3266
|
-
function
|
|
3266
|
+
function $i(e, t, n, r, o, i) {
|
|
3267
3267
|
var d, m;
|
|
3268
3268
|
const u = U("block"), c = U("blocks-wrapper");
|
|
3269
3269
|
return k(), W(c, {
|
|
@@ -3281,18 +3281,18 @@ function Ri(e, t, n, r, o, i) {
|
|
|
3281
3281
|
linkComponent: e.linkComponent,
|
|
3282
3282
|
context: e.context || e.builderContext,
|
|
3283
3283
|
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
3284
|
-
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) :
|
|
3284
|
+
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]))), 128)) : J("v-if", !0)
|
|
3285
3285
|
]),
|
|
3286
3286
|
_: 1
|
|
3287
3287
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
3288
3288
|
}
|
|
3289
|
-
const xt = /* @__PURE__ */ N(
|
|
3289
|
+
const xt = /* @__PURE__ */ N(ji, [["render", $i], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/blocks/blocks.vue"]]), Oi = P({
|
|
3290
3290
|
render() {
|
|
3291
3291
|
return Sr("style", { id: this.id, innerHTML: this.styles });
|
|
3292
3292
|
},
|
|
3293
3293
|
name: "inlined-styles",
|
|
3294
3294
|
props: ["styles", "id"]
|
|
3295
|
-
}), Dn = /* @__PURE__ */ N(
|
|
3295
|
+
}), Dn = /* @__PURE__ */ N(Oi, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-styles.vue"]]), Vr = {
|
|
3296
3296
|
small: {
|
|
3297
3297
|
min: 320,
|
|
3298
3298
|
default: 321,
|
|
@@ -3308,7 +3308,7 @@ const xt = /* @__PURE__ */ N(Ti, [["render", Ri], ["__file", "/home/runner/work/
|
|
|
3308
3308
|
default: 991,
|
|
3309
3309
|
max: 1200
|
|
3310
3310
|
}
|
|
3311
|
-
},
|
|
3311
|
+
}, la = (e, t = Vr) => `@media (max-width: ${t[e].max}px)`, Pi = ({
|
|
3312
3312
|
small: e,
|
|
3313
3313
|
medium: t
|
|
3314
3314
|
}) => {
|
|
@@ -3333,7 +3333,7 @@ const xt = /* @__PURE__ */ N(Ti, [["render", Ri], ["__file", "/home/runner/work/
|
|
|
3333
3333
|
min: i,
|
|
3334
3334
|
default: i + 1
|
|
3335
3335
|
}, n;
|
|
3336
|
-
},
|
|
3336
|
+
}, Ni = P({
|
|
3337
3337
|
name: "builder-columns",
|
|
3338
3338
|
components: {
|
|
3339
3339
|
InlinedStyles: Dn,
|
|
@@ -3451,13 +3451,13 @@ const xt = /* @__PURE__ */ N(Ti, [["render", Ri], ["__file", "/home/runner/work/
|
|
|
3451
3451
|
},
|
|
3452
3452
|
getWidthForBreakpointSize(e) {
|
|
3453
3453
|
var n, r;
|
|
3454
|
-
return
|
|
3454
|
+
return Pi(
|
|
3455
3455
|
((r = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : r.breakpoints) || {}
|
|
3456
3456
|
)[e].max;
|
|
3457
3457
|
}
|
|
3458
3458
|
}
|
|
3459
3459
|
});
|
|
3460
|
-
function
|
|
3460
|
+
function Ui(e, t, n, r, o, i) {
|
|
3461
3461
|
const u = U("inlined-styles"), c = U("blocks"), d = U("dynamic-renderer");
|
|
3462
3462
|
return k(), R("div", te({
|
|
3463
3463
|
class: `builder-columns ${e.builderBlock.id}-breakpoints div-16nol0lwi20`,
|
|
@@ -3466,7 +3466,7 @@ function Pi(e, t, n, r, o, i) {
|
|
|
3466
3466
|
e.TARGET !== "reactNative" ? (k(), W(u, {
|
|
3467
3467
|
key: 0,
|
|
3468
3468
|
styles: e.columnsStyles
|
|
3469
|
-
}, null, 8, ["styles"])) :
|
|
3469
|
+
}, null, 8, ["styles"])) : J("v-if", !0),
|
|
3470
3470
|
(k(!0), R(se, null, ut(e.columns, (m, g) => (k(), W(d, {
|
|
3471
3471
|
key: g,
|
|
3472
3472
|
TagName: m.link ? e.builderLinkComponent || "a" : "div",
|
|
@@ -3496,24 +3496,24 @@ function Pi(e, t, n, r, o, i) {
|
|
|
3496
3496
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
3497
3497
|
], 16);
|
|
3498
3498
|
}
|
|
3499
|
-
const
|
|
3499
|
+
const Mi = /* @__PURE__ */ N(Ni, [["render", Ui], ["__scopeId", "data-v-7be099dc"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/columns/columns.vue"]]), _i = P({
|
|
3500
3500
|
name: "builder-fragment-component",
|
|
3501
3501
|
props: []
|
|
3502
3502
|
});
|
|
3503
|
-
function
|
|
3503
|
+
function Vi(e, t, n, r, o, i) {
|
|
3504
3504
|
return k(), R("span", null, [
|
|
3505
3505
|
le(e.$slots, "default")
|
|
3506
3506
|
]);
|
|
3507
3507
|
}
|
|
3508
|
-
const
|
|
3508
|
+
const Wi = /* @__PURE__ */ N(_i, [["render", Vi], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/fragment/fragment.vue"]]);
|
|
3509
3509
|
function fr(e) {
|
|
3510
3510
|
return e.replace(/http(s)?:/, "");
|
|
3511
3511
|
}
|
|
3512
|
-
function
|
|
3512
|
+
function Li(e = "", t, n) {
|
|
3513
3513
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3514
3514
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3515
3515
|
}
|
|
3516
|
-
function
|
|
3516
|
+
function Hi(e, t) {
|
|
3517
3517
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3518
3518
|
return e;
|
|
3519
3519
|
if (t === "master")
|
|
@@ -3532,11 +3532,11 @@ function nn(e) {
|
|
|
3532
3532
|
if (e.match(/builder\.io/)) {
|
|
3533
3533
|
let n = e;
|
|
3534
3534
|
const r = Number(e.split("?width=")[1]);
|
|
3535
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3535
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${Li(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3536
3536
|
}
|
|
3537
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3537
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Hi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3538
3538
|
}
|
|
3539
|
-
const
|
|
3539
|
+
const Ki = P({
|
|
3540
3540
|
name: "builder-image",
|
|
3541
3541
|
props: [
|
|
3542
3542
|
"image",
|
|
@@ -3581,11 +3581,11 @@ const Li = P({
|
|
|
3581
3581
|
}
|
|
3582
3582
|
}
|
|
3583
3583
|
});
|
|
3584
|
-
const
|
|
3584
|
+
const Gi = ["srcset"], zi = ["alt", "role", "src", "srcset", "sizes"], Xi = {
|
|
3585
3585
|
key: 2,
|
|
3586
3586
|
class: "div-1be3j8m9ewb-2"
|
|
3587
3587
|
};
|
|
3588
|
-
function
|
|
3588
|
+
function Ji(e, t, n, r, o, i) {
|
|
3589
3589
|
var u, c, d, m;
|
|
3590
3590
|
return k(), R(se, null, [
|
|
3591
3591
|
rn("picture", null, [
|
|
@@ -3593,7 +3593,7 @@ function zi(e, t, n, r, o, i) {
|
|
|
3593
3593
|
key: 0,
|
|
3594
3594
|
type: "image/webp",
|
|
3595
3595
|
srcset: e.webpSrcSet
|
|
3596
|
-
}, null, 8,
|
|
3596
|
+
}, null, 8, Gi)) : J("v-if", !0),
|
|
3597
3597
|
rn("img", {
|
|
3598
3598
|
loading: "lazy",
|
|
3599
3599
|
alt: e.altText,
|
|
@@ -3609,7 +3609,7 @@ function zi(e, t, n, r, o, i) {
|
|
|
3609
3609
|
src: e.image,
|
|
3610
3610
|
srcset: e.srcSetToUse,
|
|
3611
3611
|
sizes: e.sizes
|
|
3612
|
-
}, null, 14,
|
|
3612
|
+
}, null, 14, zi)
|
|
3613
3613
|
]),
|
|
3614
3614
|
e.aspectRatio && !(((c = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : c.length) && e.fitContent) ? (k(), R("div", {
|
|
3615
3615
|
key: 0,
|
|
@@ -3617,21 +3617,21 @@ function zi(e, t, n, r, o, i) {
|
|
|
3617
3617
|
style: on({
|
|
3618
3618
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3619
3619
|
})
|
|
3620
|
-
}, null, 4)) :
|
|
3621
|
-
((m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.length) && e.fitContent ? le(e.$slots, "default", { key: 1 }, void 0, !0) :
|
|
3622
|
-
!e.fitContent && e.$slots.default ? (k(), R("div",
|
|
3620
|
+
}, null, 4)) : J("v-if", !0),
|
|
3621
|
+
((m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.length) && e.fitContent ? le(e.$slots, "default", { key: 1 }, void 0, !0) : J("v-if", !0),
|
|
3622
|
+
!e.fitContent && e.$slots.default ? (k(), R("div", Xi, [
|
|
3623
3623
|
le(e.$slots, "default", {}, void 0, !0)
|
|
3624
|
-
])) :
|
|
3624
|
+
])) : J("v-if", !0)
|
|
3625
3625
|
], 64);
|
|
3626
3626
|
}
|
|
3627
|
-
const
|
|
3627
|
+
const Yi = /* @__PURE__ */ N(Ki, [["render", Ji], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/image/image.vue"]]), qi = P({
|
|
3628
3628
|
name: "builder-section-component",
|
|
3629
3629
|
props: ["attributes", "maxWidth"],
|
|
3630
3630
|
data() {
|
|
3631
3631
|
return { filterAttrs: Bt };
|
|
3632
3632
|
}
|
|
3633
3633
|
});
|
|
3634
|
-
function
|
|
3634
|
+
function Zi(e, t, n, r, o, i) {
|
|
3635
3635
|
return k(), R("section", te({
|
|
3636
3636
|
style: {
|
|
3637
3637
|
width: "100%",
|
|
@@ -3649,7 +3649,7 @@ function Yi(e, t, n, r, o, i) {
|
|
|
3649
3649
|
le(e.$slots, "default")
|
|
3650
3650
|
], 16);
|
|
3651
3651
|
}
|
|
3652
|
-
const
|
|
3652
|
+
const Qi = /* @__PURE__ */ N(qi, [["render", Zi], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/section/section.vue"]]), es = (e) => {
|
|
3653
3653
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3654
3654
|
return e;
|
|
3655
3655
|
const t = e.split(".");
|
|
@@ -3662,16 +3662,16 @@ const qi = /* @__PURE__ */ N(Ji, [["render", Yi], ["__file", "/home/runner/work/
|
|
|
3662
3662
|
try {
|
|
3663
3663
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
3664
3664
|
} catch (r) {
|
|
3665
|
-
|
|
3665
|
+
Y.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3666
3666
|
return;
|
|
3667
3667
|
}
|
|
3668
|
-
}, Lr = async (e) => Wr(e),
|
|
3668
|
+
}, Lr = async (e) => Wr(e), ts = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(we).join("; "), ns = [["secure", ""], ["SameSite", "None"]], rs = ({
|
|
3669
3669
|
name: e,
|
|
3670
3670
|
value: t,
|
|
3671
3671
|
expires: n
|
|
3672
3672
|
}) => {
|
|
3673
|
-
const o = (
|
|
3674
|
-
return
|
|
3673
|
+
const o = (z() ? location.protocol === "https:" : !0) ? ns : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], u = [[e, t], ...i, ["path", "/"], ["domain", es(window.location.hostname)], ...o];
|
|
3674
|
+
return ts(u);
|
|
3675
3675
|
}, Hr = async ({
|
|
3676
3676
|
name: e,
|
|
3677
3677
|
value: t,
|
|
@@ -3681,33 +3681,33 @@ const qi = /* @__PURE__ */ N(Ji, [["render", Yi], ["__file", "/home/runner/work/
|
|
|
3681
3681
|
try {
|
|
3682
3682
|
if (!r)
|
|
3683
3683
|
return;
|
|
3684
|
-
const o =
|
|
3684
|
+
const o = rs({
|
|
3685
3685
|
name: e,
|
|
3686
3686
|
value: t,
|
|
3687
3687
|
expires: n
|
|
3688
3688
|
});
|
|
3689
3689
|
document.cookie = o;
|
|
3690
3690
|
} catch (o) {
|
|
3691
|
-
|
|
3691
|
+
Y.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3692
3692
|
}
|
|
3693
|
-
},
|
|
3693
|
+
}, os = "builder.tests", In = (e) => `${os}.${e}`, is = ({
|
|
3694
3694
|
contentId: e
|
|
3695
3695
|
}) => Lr({
|
|
3696
3696
|
name: In(e),
|
|
3697
3697
|
canTrack: !0
|
|
3698
|
-
}),
|
|
3698
|
+
}), ss = ({
|
|
3699
3699
|
contentId: e
|
|
3700
3700
|
}) => Wr({
|
|
3701
3701
|
name: In(e),
|
|
3702
3702
|
canTrack: !0
|
|
3703
|
-
}),
|
|
3703
|
+
}), us = ({
|
|
3704
3704
|
contentId: e,
|
|
3705
3705
|
value: t
|
|
3706
3706
|
}) => Hr({
|
|
3707
3707
|
name: In(e),
|
|
3708
3708
|
value: t,
|
|
3709
3709
|
canTrack: !0
|
|
3710
|
-
}), Kr = (e) => we(e.id) && we(e.variations) && Object.keys(e.variations).length > 0,
|
|
3710
|
+
}), Kr = (e) => we(e.id) && we(e.variations) && Object.keys(e.variations).length > 0, as = ({
|
|
3711
3711
|
id: e,
|
|
3712
3712
|
variations: t
|
|
3713
3713
|
}) => {
|
|
@@ -3721,12 +3721,12 @@ const qi = /* @__PURE__ */ N(Ji, [["render", Yi], ["__file", "/home/runner/work/
|
|
|
3721
3721
|
}
|
|
3722
3722
|
return e;
|
|
3723
3723
|
}, Gr = (e) => {
|
|
3724
|
-
const t =
|
|
3725
|
-
return
|
|
3724
|
+
const t = as(e);
|
|
3725
|
+
return us({
|
|
3726
3726
|
contentId: e.id,
|
|
3727
3727
|
value: t
|
|
3728
3728
|
}).catch((n) => {
|
|
3729
|
-
|
|
3729
|
+
Y.error("could not store A/B test variation: ", n);
|
|
3730
3730
|
}), t;
|
|
3731
3731
|
}, zr = ({
|
|
3732
3732
|
item: e,
|
|
@@ -3741,7 +3741,7 @@ const qi = /* @__PURE__ */ N(Ji, [["render", Yi], ["__file", "/home/runner/work/
|
|
|
3741
3741
|
testVariationId: n.id,
|
|
3742
3742
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3743
3743
|
};
|
|
3744
|
-
},
|
|
3744
|
+
}, ls = ({
|
|
3745
3745
|
item: e,
|
|
3746
3746
|
canTrack: t
|
|
3747
3747
|
}) => {
|
|
@@ -3751,7 +3751,7 @@ const qi = /* @__PURE__ */ N(Ji, [["render", Yi], ["__file", "/home/runner/work/
|
|
|
3751
3751
|
return;
|
|
3752
3752
|
if (!Kr(e))
|
|
3753
3753
|
return e;
|
|
3754
|
-
const n =
|
|
3754
|
+
const n = ss({
|
|
3755
3755
|
contentId: e.id
|
|
3756
3756
|
}) || Gr({
|
|
3757
3757
|
variations: e.variations,
|
|
@@ -3764,13 +3764,13 @@ const qi = /* @__PURE__ */ N(Ji, [["render", Yi], ["__file", "/home/runner/work/
|
|
|
3764
3764
|
...e,
|
|
3765
3765
|
...r
|
|
3766
3766
|
};
|
|
3767
|
-
},
|
|
3767
|
+
}, cs = async ({
|
|
3768
3768
|
item: e,
|
|
3769
3769
|
canTrack: t
|
|
3770
3770
|
}) => {
|
|
3771
3771
|
if (!t || !Kr(e))
|
|
3772
3772
|
return e;
|
|
3773
|
-
const r = await
|
|
3773
|
+
const r = await is({
|
|
3774
3774
|
contentId: e.id
|
|
3775
3775
|
}) || Gr({
|
|
3776
3776
|
variations: e.variations,
|
|
@@ -3783,7 +3783,7 @@ const qi = /* @__PURE__ */ N(Ji, [["render", Yi], ["__file", "/home/runner/work/
|
|
|
3783
3783
|
...e,
|
|
3784
3784
|
...o
|
|
3785
3785
|
};
|
|
3786
|
-
}, ct = (e) => we(e) ? e : !0,
|
|
3786
|
+
}, ct = (e) => we(e) ? e : !0, ps = {
|
|
3787
3787
|
name: "Core:Button",
|
|
3788
3788
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3789
3789
|
defaultStyles: {
|
|
@@ -3815,7 +3815,7 @@ const qi = /* @__PURE__ */ N(Ji, [["render", Yi], ["__file", "/home/runner/work/
|
|
|
3815
3815
|
}],
|
|
3816
3816
|
static: !0,
|
|
3817
3817
|
noWrap: !0
|
|
3818
|
-
},
|
|
3818
|
+
}, ds = {
|
|
3819
3819
|
name: "Columns",
|
|
3820
3820
|
isRSC: !0,
|
|
3821
3821
|
inputs: [{
|
|
@@ -4015,7 +4015,7 @@ const qi = /* @__PURE__ */ N(Ji, [["render", Yi], ["__file", "/home/runner/work/
|
|
|
4015
4015
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
4016
4016
|
advanced: !0
|
|
4017
4017
|
}]
|
|
4018
|
-
},
|
|
4018
|
+
}, hs = {
|
|
4019
4019
|
name: "Custom Code",
|
|
4020
4020
|
static: !0,
|
|
4021
4021
|
requiredPermissions: ["editCode"],
|
|
@@ -4037,7 +4037,7 @@ const qi = /* @__PURE__ */ N(Ji, [["render", Yi], ["__file", "/home/runner/work/
|
|
|
4037
4037
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4038
4038
|
advanced: !0
|
|
4039
4039
|
}]
|
|
4040
|
-
},
|
|
4040
|
+
}, fs = P({
|
|
4041
4041
|
name: "builder-custom-code",
|
|
4042
4042
|
props: ["replaceNodes", "code"],
|
|
4043
4043
|
data() {
|
|
@@ -4071,15 +4071,15 @@ const qi = /* @__PURE__ */ N(Ji, [["render", Yi], ["__file", "/home/runner/work/
|
|
|
4071
4071
|
}
|
|
4072
4072
|
}
|
|
4073
4073
|
}
|
|
4074
|
-
}),
|
|
4075
|
-
function
|
|
4074
|
+
}), ms = ["innerHTML"];
|
|
4075
|
+
function gs(e, t, n, r, o, i) {
|
|
4076
4076
|
return k(), R("div", {
|
|
4077
4077
|
ref: "elementRef",
|
|
4078
4078
|
class: Fr("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
4079
4079
|
innerHTML: e.code
|
|
4080
|
-
}, null, 10,
|
|
4080
|
+
}, null, 10, ms);
|
|
4081
4081
|
}
|
|
4082
|
-
const
|
|
4082
|
+
const ys = /* @__PURE__ */ N(fs, [["render", gs], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/custom-code/custom-code.vue"]]), vs = {
|
|
4083
4083
|
name: "Embed",
|
|
4084
4084
|
static: !0,
|
|
4085
4085
|
inputs: [{
|
|
@@ -4104,7 +4104,7 @@ const ms = /* @__PURE__ */ N(ds, [["render", fs], ["__file", "/home/runner/work/
|
|
|
4104
4104
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4105
4105
|
hideFromUI: !0
|
|
4106
4106
|
}]
|
|
4107
|
-
},
|
|
4107
|
+
}, Cs = ["text/javascript", "application/javascript", "application/ecmascript"], As = (e) => Cs.includes(e.type), bs = P({
|
|
4108
4108
|
name: "builder-embed",
|
|
4109
4109
|
props: ["content"],
|
|
4110
4110
|
data() {
|
|
@@ -4137,7 +4137,7 @@ const ms = /* @__PURE__ */ N(ds, [["render", fs], ["__file", "/home/runner/work/
|
|
|
4137
4137
|
this.scriptsInserted.push(n.src);
|
|
4138
4138
|
const r = document.createElement("script");
|
|
4139
4139
|
r.async = !0, r.src = n.src, document.head.appendChild(r);
|
|
4140
|
-
} else if (
|
|
4140
|
+
} else if (As(n) && !this.scriptsRun.includes(n.innerText))
|
|
4141
4141
|
try {
|
|
4142
4142
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
4143
4143
|
} catch (r) {
|
|
@@ -4146,21 +4146,21 @@ const ms = /* @__PURE__ */ N(ds, [["render", fs], ["__file", "/home/runner/work/
|
|
|
4146
4146
|
}
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
4149
|
-
}),
|
|
4150
|
-
function
|
|
4149
|
+
}), ks = ["innerHTML"];
|
|
4150
|
+
function Es(e, t, n, r, o, i) {
|
|
4151
4151
|
return k(), R("div", {
|
|
4152
4152
|
class: "builder-embed",
|
|
4153
4153
|
ref: "elem",
|
|
4154
4154
|
innerHTML: e.content
|
|
4155
|
-
}, null, 8,
|
|
4155
|
+
}, null, 8, ks);
|
|
4156
4156
|
}
|
|
4157
|
-
const
|
|
4157
|
+
const Ss = /* @__PURE__ */ N(bs, [["render", Es], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/embed/embed.vue"]]), Fs = {
|
|
4158
4158
|
name: "Fragment",
|
|
4159
4159
|
static: !0,
|
|
4160
4160
|
hidden: !0,
|
|
4161
4161
|
canHaveChildren: !0,
|
|
4162
4162
|
noWrap: !0
|
|
4163
|
-
},
|
|
4163
|
+
}, ws = {
|
|
4164
4164
|
name: "Image",
|
|
4165
4165
|
static: !0,
|
|
4166
4166
|
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",
|
|
@@ -4260,7 +4260,7 @@ const ks = /* @__PURE__ */ N(Cs, [["render", bs], ["__file", "/home/runner/work/
|
|
|
4260
4260
|
advanced: !0,
|
|
4261
4261
|
defaultValue: 0.7041
|
|
4262
4262
|
}]
|
|
4263
|
-
},
|
|
4263
|
+
}, Bs = {
|
|
4264
4264
|
name: "Raw:Img",
|
|
4265
4265
|
hideFromInsertMenu: !0,
|
|
4266
4266
|
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",
|
|
@@ -4273,7 +4273,7 @@ const ks = /* @__PURE__ */ N(Cs, [["render", bs], ["__file", "/home/runner/work/
|
|
|
4273
4273
|
}],
|
|
4274
4274
|
noWrap: !0,
|
|
4275
4275
|
static: !0
|
|
4276
|
-
},
|
|
4276
|
+
}, Ds = P({
|
|
4277
4277
|
name: "builder-img-component",
|
|
4278
4278
|
props: [
|
|
4279
4279
|
"backgroundSize",
|
|
@@ -4286,8 +4286,8 @@ const ks = /* @__PURE__ */ N(Cs, [["render", bs], ["__file", "/home/runner/work/
|
|
|
4286
4286
|
data() {
|
|
4287
4287
|
return { isEditing: ve, filterAttrs: Bt };
|
|
4288
4288
|
}
|
|
4289
|
-
}),
|
|
4290
|
-
function
|
|
4289
|
+
}), Is = ["alt", "src"];
|
|
4290
|
+
function xs(e, t, n, r, o, i) {
|
|
4291
4291
|
return k(), R("img", te({
|
|
4292
4292
|
style: {
|
|
4293
4293
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -4296,9 +4296,9 @@ function Ds(e, t, n, r, o, i) {
|
|
|
4296
4296
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4297
4297
|
alt: e.altText,
|
|
4298
4298
|
src: e.imgSrc || e.image
|
|
4299
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), Me(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
4299
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), Me(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Is);
|
|
4300
4300
|
}
|
|
4301
|
-
const
|
|
4301
|
+
const Ts = /* @__PURE__ */ N(Ds, [["render", xs], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/img/img.vue"]]), Rs = {
|
|
4302
4302
|
name: "Core:Section",
|
|
4303
4303
|
static: !0,
|
|
4304
4304
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4337,7 +4337,7 @@ const Is = /* @__PURE__ */ N(ws, [["render", Ds], ["__file", "/home/runner/work/
|
|
|
4337
4337
|
}
|
|
4338
4338
|
}
|
|
4339
4339
|
}]
|
|
4340
|
-
},
|
|
4340
|
+
}, js = {
|
|
4341
4341
|
name: "Slot",
|
|
4342
4342
|
isRSC: !0,
|
|
4343
4343
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4349,12 +4349,12 @@ const Is = /* @__PURE__ */ N(ws, [["render", Ds], ["__file", "/home/runner/work/
|
|
|
4349
4349
|
required: !0,
|
|
4350
4350
|
defaultValue: "children"
|
|
4351
4351
|
}]
|
|
4352
|
-
},
|
|
4352
|
+
}, $s = P({
|
|
4353
4353
|
name: "builder-slot",
|
|
4354
4354
|
components: { Blocks: xt },
|
|
4355
4355
|
props: ["builderContext", "name"]
|
|
4356
4356
|
});
|
|
4357
|
-
function
|
|
4357
|
+
function Os(e, t, n, r, o, i) {
|
|
4358
4358
|
var c, d, m;
|
|
4359
4359
|
const u = U("blocks");
|
|
4360
4360
|
return k(), R("div", te(
|
|
@@ -4373,7 +4373,7 @@ function js(e, t, n, r, o, i) {
|
|
|
4373
4373
|
}, null, 8, ["parent", "path", "context", "blocks"])
|
|
4374
4374
|
], 16);
|
|
4375
4375
|
}
|
|
4376
|
-
const
|
|
4376
|
+
const Ps = /* @__PURE__ */ N($s, [["render", Os], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/slot/slot.vue"]]), Ns = {
|
|
4377
4377
|
name: "Symbol",
|
|
4378
4378
|
noWrap: !0,
|
|
4379
4379
|
static: !0,
|
|
@@ -4406,7 +4406,7 @@ const $s = /* @__PURE__ */ N(Rs, [["render", js], ["__file", "/home/runner/work/
|
|
|
4406
4406
|
hideFromUI: !0,
|
|
4407
4407
|
type: "boolean"
|
|
4408
4408
|
}]
|
|
4409
|
-
},
|
|
4409
|
+
}, Us = {
|
|
4410
4410
|
name: "Text",
|
|
4411
4411
|
static: !0,
|
|
4412
4412
|
isRSC: !0,
|
|
@@ -4424,11 +4424,11 @@ const $s = /* @__PURE__ */ N(Rs, [["render", js], ["__file", "/home/runner/work/
|
|
|
4424
4424
|
height: "auto",
|
|
4425
4425
|
textAlign: "center"
|
|
4426
4426
|
}
|
|
4427
|
-
},
|
|
4427
|
+
}, Ms = P({
|
|
4428
4428
|
name: "builder-text",
|
|
4429
4429
|
props: ["text"]
|
|
4430
|
-
}),
|
|
4431
|
-
function
|
|
4430
|
+
}), _s = ["innerHTML"];
|
|
4431
|
+
function Vs(e, t, n, r, o, i) {
|
|
4432
4432
|
var u;
|
|
4433
4433
|
return k(), R("div", {
|
|
4434
4434
|
class: "builder-text",
|
|
@@ -4436,9 +4436,9 @@ function Ms(e, t, n, r, o, i) {
|
|
|
4436
4436
|
style: {
|
|
4437
4437
|
outline: "none"
|
|
4438
4438
|
}
|
|
4439
|
-
}, null, 8,
|
|
4439
|
+
}, null, 8, _s);
|
|
4440
4440
|
}
|
|
4441
|
-
const
|
|
4441
|
+
const Ws = /* @__PURE__ */ N(Ms, [["render", Vs], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/text/text.vue"]]), Ls = {
|
|
4442
4442
|
name: "Video",
|
|
4443
4443
|
canHaveChildren: !0,
|
|
4444
4444
|
defaultStyles: {
|
|
@@ -4519,7 +4519,7 @@ const _s = /* @__PURE__ */ N(Ns, [["render", Ms], ["__file", "/home/runner/work/
|
|
|
4519
4519
|
defaultValue: !0,
|
|
4520
4520
|
advanced: !0
|
|
4521
4521
|
}]
|
|
4522
|
-
},
|
|
4522
|
+
}, Hs = P({
|
|
4523
4523
|
name: "builder-video",
|
|
4524
4524
|
props: [
|
|
4525
4525
|
"autoPlay",
|
|
@@ -4564,16 +4564,16 @@ const _s = /* @__PURE__ */ N(Ns, [["render", Ms], ["__file", "/home/runner/work/
|
|
|
4564
4564
|
};
|
|
4565
4565
|
}
|
|
4566
4566
|
}
|
|
4567
|
-
}),
|
|
4567
|
+
}), Ks = { style: {
|
|
4568
4568
|
position: "relative"
|
|
4569
|
-
} },
|
|
4569
|
+
} }, Gs = ["preload", "src", "poster"], zs = ["src"], Xs = {
|
|
4570
4570
|
key: 1,
|
|
4571
4571
|
style: {
|
|
4572
4572
|
display: "flex",
|
|
4573
4573
|
flexDirection: "column",
|
|
4574
4574
|
alignItems: "stretch"
|
|
4575
4575
|
}
|
|
4576
|
-
},
|
|
4576
|
+
}, Js = {
|
|
4577
4577
|
key: 2,
|
|
4578
4578
|
style: {
|
|
4579
4579
|
pointerEvents: "none",
|
|
@@ -4587,9 +4587,9 @@ const _s = /* @__PURE__ */ N(Ns, [["render", Ms], ["__file", "/home/runner/work/
|
|
|
4587
4587
|
height: "100%"
|
|
4588
4588
|
}
|
|
4589
4589
|
};
|
|
4590
|
-
function
|
|
4590
|
+
function Ys(e, t, n, r, o, i) {
|
|
4591
4591
|
var u, c, d, m, g, C, T;
|
|
4592
|
-
return k(), R("div",
|
|
4592
|
+
return k(), R("div", Ks, [
|
|
4593
4593
|
rn("video", te({
|
|
4594
4594
|
class: "builder-video",
|
|
4595
4595
|
preload: e.preload || "metadata",
|
|
@@ -4608,12 +4608,12 @@ function Xs(e, t, n, r, o, i) {
|
|
|
4608
4608
|
src: e.video || "no-src",
|
|
4609
4609
|
poster: e.posterImage
|
|
4610
4610
|
}, e.spreadProps), [
|
|
4611
|
-
e.lazyLoad ?
|
|
4611
|
+
e.lazyLoad ? J("v-if", !0) : (k(), R("source", {
|
|
4612
4612
|
key: 0,
|
|
4613
4613
|
type: "video/mp4",
|
|
4614
4614
|
src: e.video
|
|
4615
|
-
}, null, 8,
|
|
4616
|
-
], 16,
|
|
4615
|
+
}, null, 8, zs))
|
|
4616
|
+
], 16, Gs),
|
|
4617
4617
|
e.aspectRatio && !(e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) == null ? void 0 : d.length)) ? (k(), R("div", {
|
|
4618
4618
|
key: 0,
|
|
4619
4619
|
style: on({
|
|
@@ -4622,67 +4622,67 @@ function Xs(e, t, n, r, o, i) {
|
|
|
4622
4622
|
pointerEvents: "none",
|
|
4623
4623
|
fontSize: "0px"
|
|
4624
4624
|
})
|
|
4625
|
-
}, null, 4)) :
|
|
4626
|
-
((g = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : g.length) && e.fitContent ? (k(), R("div",
|
|
4625
|
+
}, null, 4)) : J("v-if", !0),
|
|
4626
|
+
((g = (m = e.builderBlock) == null ? void 0 : m.children) == null ? void 0 : g.length) && e.fitContent ? (k(), R("div", Xs, [
|
|
4627
4627
|
le(e.$slots, "default")
|
|
4628
|
-
])) :
|
|
4629
|
-
((T = (C = e.builderBlock) == null ? void 0 : C.children) == null ? void 0 : T.length) && !e.fitContent ? (k(), R("div",
|
|
4628
|
+
])) : J("v-if", !0),
|
|
4629
|
+
((T = (C = e.builderBlock) == null ? void 0 : C.children) == null ? void 0 : T.length) && !e.fitContent ? (k(), R("div", Js, [
|
|
4630
4630
|
le(e.$slots, "default")
|
|
4631
|
-
])) :
|
|
4631
|
+
])) : J("v-if", !0)
|
|
4632
4632
|
]);
|
|
4633
4633
|
}
|
|
4634
|
-
const
|
|
4635
|
-
component:
|
|
4636
|
-
...ls
|
|
4637
|
-
}, {
|
|
4638
|
-
component: Ni,
|
|
4639
|
-
...cs
|
|
4640
|
-
}, {
|
|
4641
|
-
component: ms,
|
|
4634
|
+
const qs = /* @__PURE__ */ N(Hs, [["render", Ys], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/video/video.vue"]]), mr = () => [{
|
|
4635
|
+
component: Po,
|
|
4642
4636
|
...ps
|
|
4643
4637
|
}, {
|
|
4644
|
-
component:
|
|
4645
|
-
...
|
|
4638
|
+
component: Mi,
|
|
4639
|
+
...ds
|
|
4646
4640
|
}, {
|
|
4647
|
-
component:
|
|
4648
|
-
...
|
|
4641
|
+
component: ys,
|
|
4642
|
+
...hs
|
|
4649
4643
|
}, {
|
|
4650
|
-
component:
|
|
4651
|
-
...
|
|
4644
|
+
component: Ss,
|
|
4645
|
+
...vs
|
|
4652
4646
|
}, {
|
|
4653
|
-
component:
|
|
4647
|
+
component: Wi,
|
|
4654
4648
|
...Fs
|
|
4655
4649
|
}, {
|
|
4656
|
-
component:
|
|
4657
|
-
...
|
|
4650
|
+
component: Yi,
|
|
4651
|
+
...ws
|
|
4652
|
+
}, {
|
|
4653
|
+
component: Ts,
|
|
4654
|
+
...Bs
|
|
4658
4655
|
}, {
|
|
4659
|
-
component:
|
|
4660
|
-
...
|
|
4656
|
+
component: Qi,
|
|
4657
|
+
...Rs
|
|
4661
4658
|
}, {
|
|
4662
|
-
component:
|
|
4663
|
-
...
|
|
4659
|
+
component: ra,
|
|
4660
|
+
...Ns
|
|
4664
4661
|
}, {
|
|
4665
|
-
component:
|
|
4666
|
-
...
|
|
4662
|
+
component: Ws,
|
|
4663
|
+
...Us
|
|
4667
4664
|
}, {
|
|
4668
|
-
component:
|
|
4669
|
-
...
|
|
4670
|
-
}
|
|
4665
|
+
component: qs,
|
|
4666
|
+
...Ls
|
|
4667
|
+
}, {
|
|
4668
|
+
component: Ps,
|
|
4669
|
+
...js
|
|
4670
|
+
}], gr = [], Zs = (e) => ({
|
|
4671
4671
|
type: "builder.registerComponent",
|
|
4672
4672
|
data: cn(e)
|
|
4673
|
-
}),
|
|
4673
|
+
}), Qs = (e) => {
|
|
4674
4674
|
const t = e.toString().trim();
|
|
4675
4675
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4676
|
-
},
|
|
4676
|
+
}, eu = (e) => typeof e == "function" ? Qs(e) : ht(e), cn = ({
|
|
4677
4677
|
inputs: e,
|
|
4678
4678
|
...t
|
|
4679
4679
|
}) => ({
|
|
4680
4680
|
...ht(t),
|
|
4681
4681
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4682
4682
|
...r,
|
|
4683
|
-
[o]:
|
|
4683
|
+
[o]: eu(i)
|
|
4684
4684
|
}), {}))
|
|
4685
|
-
}),
|
|
4685
|
+
}), tu = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4686
4686
|
function getAndSetVariantId() {
|
|
4687
4687
|
function setCookie(name, value, days) {
|
|
4688
4688
|
let expires = '';
|
|
@@ -4738,7 +4738,7 @@ const Js = /* @__PURE__ */ N(Ws, [["render", Xs], ["__file", "/home/runner/work/
|
|
|
4738
4738
|
}).join('');
|
|
4739
4739
|
styleEl.innerHTML = newStyleStr;
|
|
4740
4740
|
}
|
|
4741
|
-
}`,
|
|
4741
|
+
}`, nu = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4742
4742
|
if (!navigator.cookieEnabled) {
|
|
4743
4743
|
return;
|
|
4744
4744
|
}
|
|
@@ -4776,38 +4776,38 @@ const Js = /* @__PURE__ */ N(Ws, [["render", Xs], ["__file", "/home/runner/work/
|
|
|
4776
4776
|
...t,
|
|
4777
4777
|
testVariationId: t.id,
|
|
4778
4778
|
id: e == null ? void 0 : e.id
|
|
4779
|
-
})),
|
|
4779
|
+
})), ru = ({
|
|
4780
4780
|
canTrack: e,
|
|
4781
4781
|
content: t
|
|
4782
|
-
}) => !(!(St(t).length > 0) || !e),
|
|
4783
|
-
window.${Xr} = ${
|
|
4784
|
-
window.${Jr} = ${
|
|
4785
|
-
`,
|
|
4782
|
+
}) => !(!(St(t).length > 0) || !e), ou = (e) => e === "react" || e === "reactNative", Yr = ou(ue), iu = () => `
|
|
4783
|
+
window.${Xr} = ${tu}
|
|
4784
|
+
window.${Jr} = ${nu}
|
|
4785
|
+
`, su = (e, t) => `
|
|
4786
4786
|
window.${Xr}(
|
|
4787
4787
|
"${t}",${JSON.stringify(e)}, ${Yr}
|
|
4788
|
-
)`,
|
|
4788
|
+
)`, uu = ({
|
|
4789
4789
|
contentId: e,
|
|
4790
4790
|
variationId: t
|
|
4791
4791
|
}) => `window.${Jr}(
|
|
4792
4792
|
"${t}", "${e}", ${Yr}
|
|
4793
|
-
)`,
|
|
4793
|
+
)`, au = P({
|
|
4794
4794
|
render() {
|
|
4795
4795
|
return Sr("script", { id: this.id, innerHTML: this.scriptStr });
|
|
4796
4796
|
},
|
|
4797
4797
|
name: "inlined-script",
|
|
4798
4798
|
props: ["scriptStr", "id"]
|
|
4799
|
-
}), qr = /* @__PURE__ */ N(
|
|
4800
|
-
function
|
|
4799
|
+
}), qr = /* @__PURE__ */ N(au, [["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/inlined-script.vue"]]);
|
|
4800
|
+
function lu() {
|
|
4801
4801
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4802
4802
|
}
|
|
4803
|
-
function
|
|
4804
|
-
const e =
|
|
4803
|
+
function cu() {
|
|
4804
|
+
const e = lu().fetch;
|
|
4805
4805
|
if (typeof e > "u")
|
|
4806
4806
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4807
4807
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4808
4808
|
return e;
|
|
4809
4809
|
}
|
|
4810
|
-
const Zr =
|
|
4810
|
+
const Zr = cu();
|
|
4811
4811
|
function Ft(e, t = null, n = ".") {
|
|
4812
4812
|
return Object.keys(e).reduce((r, o) => {
|
|
4813
4813
|
const i = e[o], u = [t, o].filter(Boolean).join(n);
|
|
@@ -4820,7 +4820,7 @@ function Ft(e, t = null, n = ".") {
|
|
|
4820
4820
|
};
|
|
4821
4821
|
}, {});
|
|
4822
4822
|
}
|
|
4823
|
-
const
|
|
4823
|
+
const pu = "v3", yr = "builder.", du = "options.", hu = (e) => {
|
|
4824
4824
|
const t = {};
|
|
4825
4825
|
return e.forEach((n, r) => {
|
|
4826
4826
|
t[r] = n;
|
|
@@ -4831,16 +4831,16 @@ const lu = "v3", yr = "builder.", cu = "options.", pu = (e) => {
|
|
|
4831
4831
|
const t = eo(e), n = {};
|
|
4832
4832
|
return Object.keys(t).forEach((r) => {
|
|
4833
4833
|
if (r.startsWith(yr)) {
|
|
4834
|
-
const o = r.replace(yr, "").replace(
|
|
4834
|
+
const o = r.replace(yr, "").replace(du, "");
|
|
4835
4835
|
n[o] = t[r];
|
|
4836
4836
|
}
|
|
4837
4837
|
}), n;
|
|
4838
|
-
},
|
|
4839
|
-
if (!
|
|
4838
|
+
}, fu = () => {
|
|
4839
|
+
if (!z())
|
|
4840
4840
|
return {};
|
|
4841
4841
|
const e = new URLSearchParams(window.location.search);
|
|
4842
4842
|
return Qr(e);
|
|
4843
|
-
}, eo = (e) => e instanceof URLSearchParams ?
|
|
4843
|
+
}, eo = (e) => e instanceof URLSearchParams ? hu(e) : e, vr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, xn = (e) => {
|
|
4844
4844
|
let {
|
|
4845
4845
|
noTraverse: t = !1
|
|
4846
4846
|
} = e;
|
|
@@ -4853,7 +4853,7 @@ const lu = "v3", yr = "builder.", cu = "options.", pu = (e) => {
|
|
|
4853
4853
|
includeRefs: c = !0,
|
|
4854
4854
|
enrich: d,
|
|
4855
4855
|
locale: m,
|
|
4856
|
-
apiVersion: g =
|
|
4856
|
+
apiVersion: g = pu,
|
|
4857
4857
|
fields: C,
|
|
4858
4858
|
omit: T,
|
|
4859
4859
|
offset: O,
|
|
@@ -4876,7 +4876,7 @@ const lu = "v3", yr = "builder.", cu = "options.", pu = (e) => {
|
|
|
4876
4876
|
E.searchParams.set(j, JSON.stringify(oe[j]));
|
|
4877
4877
|
}
|
|
4878
4878
|
const Le = {
|
|
4879
|
-
...
|
|
4879
|
+
...fu(),
|
|
4880
4880
|
...eo(e.options || {})
|
|
4881
4881
|
}, He = Ft(Le);
|
|
4882
4882
|
for (const oe in He)
|
|
@@ -4889,7 +4889,7 @@ const lu = "v3", yr = "builder.", cu = "options.", pu = (e) => {
|
|
|
4889
4889
|
E.searchParams.set(j, JSON.stringify(oe[j]));
|
|
4890
4890
|
}
|
|
4891
4891
|
return E;
|
|
4892
|
-
},
|
|
4892
|
+
}, mu = (e) => "results" in e;
|
|
4893
4893
|
async function Tt(e) {
|
|
4894
4894
|
const t = await to({
|
|
4895
4895
|
...e,
|
|
@@ -4897,128 +4897,124 @@ async function Tt(e) {
|
|
|
4897
4897
|
});
|
|
4898
4898
|
return t && t[0] || null;
|
|
4899
4899
|
}
|
|
4900
|
-
const
|
|
4900
|
+
const ca = Tt, gu = async (e) => {
|
|
4901
4901
|
const t = xn(e);
|
|
4902
4902
|
return await (await Zr(t.href)).json();
|
|
4903
|
-
},
|
|
4903
|
+
}, yu = async (e, t, n = xn(e)) => {
|
|
4904
4904
|
const r = ct(e.canTrack);
|
|
4905
|
-
if (n.search.includes("preview="), !r || !(
|
|
4905
|
+
if (n.search.includes("preview="), !r || !(z() || ue === "reactNative"))
|
|
4906
4906
|
return t.results;
|
|
4907
4907
|
try {
|
|
4908
4908
|
const o = [];
|
|
4909
4909
|
for (const i of t.results)
|
|
4910
|
-
o.push(await
|
|
4910
|
+
o.push(await cs({
|
|
4911
4911
|
item: i,
|
|
4912
4912
|
canTrack: r
|
|
4913
4913
|
}));
|
|
4914
4914
|
t.results = o;
|
|
4915
4915
|
} catch (o) {
|
|
4916
|
-
|
|
4916
|
+
Y.error("Could not process A/B tests. ", o);
|
|
4917
4917
|
}
|
|
4918
4918
|
return t.results;
|
|
4919
4919
|
};
|
|
4920
4920
|
async function to(e) {
|
|
4921
4921
|
try {
|
|
4922
|
-
const t = xn(e), n = await
|
|
4923
|
-
return
|
|
4922
|
+
const t = xn(e), n = await gu(e);
|
|
4923
|
+
return mu(n) ? yu(e, n) : (Y.error("Error fetching data. ", {
|
|
4924
4924
|
url: t,
|
|
4925
4925
|
content: n,
|
|
4926
4926
|
options: e
|
|
4927
4927
|
}), null);
|
|
4928
4928
|
} catch (t) {
|
|
4929
|
-
return
|
|
4929
|
+
return Y.error("Error fetching data. ", t), null;
|
|
4930
4930
|
}
|
|
4931
4931
|
}
|
|
4932
|
-
const
|
|
4933
|
-
function no(e, t) {
|
|
4934
|
-
const n = new URL(t.origin), r = n.hostname;
|
|
4935
|
-
return (e || gu).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4936
|
-
}
|
|
4937
|
-
function yu() {
|
|
4938
|
-
return !J() || ve() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
4939
|
-
}
|
|
4932
|
+
const pa = to;
|
|
4940
4933
|
function vu() {
|
|
4934
|
+
return !z() || ve() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
4935
|
+
}
|
|
4936
|
+
function Cu() {
|
|
4941
4937
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4942
4938
|
const t = Math.random() * 16 | 0;
|
|
4943
4939
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4944
4940
|
});
|
|
4945
4941
|
}
|
|
4946
|
-
function
|
|
4947
|
-
return
|
|
4942
|
+
function no() {
|
|
4943
|
+
return Cu().replace(/-/g, "");
|
|
4948
4944
|
}
|
|
4949
|
-
const
|
|
4945
|
+
const ro = "builderSessionId", Au = async ({
|
|
4950
4946
|
canTrack: e
|
|
4951
4947
|
}) => {
|
|
4952
4948
|
if (!e)
|
|
4953
4949
|
return;
|
|
4954
4950
|
const t = await Lr({
|
|
4955
|
-
name:
|
|
4951
|
+
name: ro,
|
|
4956
4952
|
canTrack: e
|
|
4957
4953
|
});
|
|
4958
4954
|
if (we(t))
|
|
4959
4955
|
return t;
|
|
4960
4956
|
{
|
|
4961
|
-
const n =
|
|
4962
|
-
return
|
|
4957
|
+
const n = bu();
|
|
4958
|
+
return ku({
|
|
4963
4959
|
id: n,
|
|
4964
4960
|
canTrack: e
|
|
4965
4961
|
}), n;
|
|
4966
4962
|
}
|
|
4967
|
-
},
|
|
4963
|
+
}, bu = () => no(), ku = ({
|
|
4968
4964
|
id: e,
|
|
4969
4965
|
canTrack: t
|
|
4970
4966
|
}) => Hr({
|
|
4971
|
-
name:
|
|
4967
|
+
name: ro,
|
|
4972
4968
|
value: e,
|
|
4973
4969
|
canTrack: t
|
|
4974
|
-
}),
|
|
4970
|
+
}), oo = () => z() && typeof localStorage < "u" ? localStorage : void 0, Eu = ({
|
|
4975
4971
|
key: e,
|
|
4976
4972
|
canTrack: t
|
|
4977
4973
|
}) => {
|
|
4978
4974
|
var n;
|
|
4979
4975
|
try {
|
|
4980
|
-
return t ? (n =
|
|
4976
|
+
return t ? (n = oo()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4981
4977
|
} catch (r) {
|
|
4982
4978
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4983
4979
|
return;
|
|
4984
4980
|
}
|
|
4985
|
-
},
|
|
4981
|
+
}, Su = ({
|
|
4986
4982
|
key: e,
|
|
4987
4983
|
canTrack: t,
|
|
4988
4984
|
value: n
|
|
4989
4985
|
}) => {
|
|
4990
4986
|
var r;
|
|
4991
4987
|
try {
|
|
4992
|
-
t && ((r =
|
|
4988
|
+
t && ((r = oo()) == null || r.setItem(e, n));
|
|
4993
4989
|
} catch (o) {
|
|
4994
4990
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4995
4991
|
}
|
|
4996
|
-
},
|
|
4992
|
+
}, io = "builderVisitorId", Fu = ({
|
|
4997
4993
|
canTrack: e
|
|
4998
4994
|
}) => {
|
|
4999
4995
|
if (!e)
|
|
5000
4996
|
return;
|
|
5001
|
-
const t =
|
|
5002
|
-
key:
|
|
4997
|
+
const t = Eu({
|
|
4998
|
+
key: io,
|
|
5003
4999
|
canTrack: e
|
|
5004
5000
|
});
|
|
5005
5001
|
if (we(t))
|
|
5006
5002
|
return t;
|
|
5007
5003
|
{
|
|
5008
|
-
const n =
|
|
5009
|
-
return
|
|
5004
|
+
const n = wu();
|
|
5005
|
+
return Bu({
|
|
5010
5006
|
id: n,
|
|
5011
5007
|
canTrack: e
|
|
5012
5008
|
}), n;
|
|
5013
5009
|
}
|
|
5014
|
-
},
|
|
5010
|
+
}, wu = () => no(), Bu = ({
|
|
5015
5011
|
id: e,
|
|
5016
5012
|
canTrack: t
|
|
5017
|
-
}) =>
|
|
5018
|
-
key:
|
|
5013
|
+
}) => Su({
|
|
5014
|
+
key: io,
|
|
5019
5015
|
value: e,
|
|
5020
5016
|
canTrack: t
|
|
5021
|
-
}),
|
|
5017
|
+
}), Du = async ({
|
|
5022
5018
|
canTrack: e
|
|
5023
5019
|
}) => {
|
|
5024
5020
|
if (!e)
|
|
@@ -5026,16 +5022,16 @@ const oo = "builderSessionId", Cu = async ({
|
|
|
5026
5022
|
visitorId: void 0,
|
|
5027
5023
|
sessionId: void 0
|
|
5028
5024
|
};
|
|
5029
|
-
const t = await
|
|
5025
|
+
const t = await Au({
|
|
5030
5026
|
canTrack: e
|
|
5031
|
-
}), n =
|
|
5027
|
+
}), n = Fu({
|
|
5032
5028
|
canTrack: e
|
|
5033
5029
|
});
|
|
5034
5030
|
return {
|
|
5035
5031
|
sessionId: t,
|
|
5036
5032
|
visitorId: n
|
|
5037
5033
|
};
|
|
5038
|
-
},
|
|
5034
|
+
}, Iu = async ({
|
|
5039
5035
|
type: e,
|
|
5040
5036
|
canTrack: t,
|
|
5041
5037
|
apiKey: n,
|
|
@@ -5049,7 +5045,7 @@ const oo = "builderSessionId", Cu = async ({
|
|
|
5049
5045
|
url: location.href,
|
|
5050
5046
|
...r
|
|
5051
5047
|
},
|
|
5052
|
-
...await
|
|
5048
|
+
...await Du({
|
|
5053
5049
|
canTrack: t
|
|
5054
5050
|
}),
|
|
5055
5051
|
userAttributes: Br(),
|
|
@@ -5058,14 +5054,14 @@ const oo = "builderSessionId", Cu = async ({
|
|
|
5058
5054
|
});
|
|
5059
5055
|
async function pn(e) {
|
|
5060
5056
|
if (!e.apiKey) {
|
|
5061
|
-
|
|
5057
|
+
Y.error("Missing API key for track call. Please provide your API key.");
|
|
5062
5058
|
return;
|
|
5063
5059
|
}
|
|
5064
|
-
if (!!e.canTrack && !ve() && !!(
|
|
5060
|
+
if (!!e.canTrack && !ve() && !!(z() || ue === "reactNative"))
|
|
5065
5061
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
5066
5062
|
method: "POST",
|
|
5067
5063
|
body: JSON.stringify({
|
|
5068
|
-
events: [await
|
|
5064
|
+
events: [await Iu(e)]
|
|
5069
5065
|
}),
|
|
5070
5066
|
headers: {
|
|
5071
5067
|
"content-type": "application/json"
|
|
@@ -5075,14 +5071,14 @@ async function pn(e) {
|
|
|
5075
5071
|
console.error("Failed to track: ", t);
|
|
5076
5072
|
});
|
|
5077
5073
|
}
|
|
5078
|
-
const
|
|
5074
|
+
const da = (e) => pn({
|
|
5079
5075
|
...e,
|
|
5080
5076
|
canTrack: !0
|
|
5081
5077
|
});
|
|
5082
5078
|
function Cr(e) {
|
|
5083
5079
|
return Math.round(e * 1e3) / 1e3;
|
|
5084
5080
|
}
|
|
5085
|
-
const
|
|
5081
|
+
const xu = (e, t, n = !0) => {
|
|
5086
5082
|
if (!(e instanceof HTMLElement))
|
|
5087
5083
|
return null;
|
|
5088
5084
|
let r = n ? e : e.parentElement;
|
|
@@ -5093,7 +5089,7 @@ const Iu = (e, t, n = !0) => {
|
|
|
5093
5089
|
return r;
|
|
5094
5090
|
} while (r = r.parentElement);
|
|
5095
5091
|
return null;
|
|
5096
|
-
},
|
|
5092
|
+
}, Tu = (e) => xu(e, (t) => {
|
|
5097
5093
|
const n = t.getAttribute("builder-id") || t.id;
|
|
5098
5094
|
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
5099
5095
|
}), Ar = ({
|
|
@@ -5105,8 +5101,8 @@ const Iu = (e, t, n = !0) => {
|
|
|
5105
5101
|
x: i,
|
|
5106
5102
|
y: u
|
|
5107
5103
|
};
|
|
5108
|
-
},
|
|
5109
|
-
const t = e.target, n = t &&
|
|
5104
|
+
}, Ru = (e) => {
|
|
5105
|
+
const t = e.target, n = t && Tu(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
5110
5106
|
return {
|
|
5111
5107
|
targetBuilderElement: r || void 0,
|
|
5112
5108
|
metadata: {
|
|
@@ -5121,10 +5117,15 @@ const Iu = (e, t, n = !0) => {
|
|
|
5121
5117
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
5122
5118
|
}
|
|
5123
5119
|
};
|
|
5124
|
-
},
|
|
5125
|
-
function
|
|
5120
|
+
}, ju = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
5121
|
+
function so(e, t) {
|
|
5122
|
+
const n = new URL(t.origin), r = n.hostname;
|
|
5123
|
+
return (e || ju).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
5124
|
+
}
|
|
5125
|
+
const $u = "0.12.8", br = {};
|
|
5126
|
+
function Ou(e, t) {
|
|
5126
5127
|
let n = br[e];
|
|
5127
|
-
if (n || (n = br[e] = []), n.push(t),
|
|
5128
|
+
if (n || (n = br[e] = []), n.push(t), z()) {
|
|
5128
5129
|
const r = {
|
|
5129
5130
|
type: "builder.register",
|
|
5130
5131
|
data: {
|
|
@@ -5139,8 +5140,8 @@ function ju(e, t) {
|
|
|
5139
5140
|
}
|
|
5140
5141
|
}
|
|
5141
5142
|
}
|
|
5142
|
-
const
|
|
5143
|
-
|
|
5143
|
+
const Pu = () => {
|
|
5144
|
+
Ou("insertMenu", {
|
|
5144
5145
|
name: "_default",
|
|
5145
5146
|
default: !0,
|
|
5146
5147
|
items: [{
|
|
@@ -5163,13 +5164,13 @@ const $u = () => {
|
|
|
5163
5164
|
});
|
|
5164
5165
|
};
|
|
5165
5166
|
let kr = !1;
|
|
5166
|
-
const
|
|
5167
|
+
const uo = (e = {}) => {
|
|
5167
5168
|
var t, n;
|
|
5168
|
-
kr || (kr = !0,
|
|
5169
|
+
kr || (kr = !0, z() && ((t = window.parent) == null || t.postMessage({
|
|
5169
5170
|
type: "builder.sdkInfo",
|
|
5170
5171
|
data: {
|
|
5171
5172
|
target: ue,
|
|
5172
|
-
version:
|
|
5173
|
+
version: $u,
|
|
5173
5174
|
supportsPatchUpdates: !1,
|
|
5174
5175
|
supportsAddBlockScoping: !0,
|
|
5175
5176
|
supportsCustomBreakpoints: !0
|
|
@@ -5181,7 +5182,7 @@ const Ou = (e = {}) => {
|
|
|
5181
5182
|
}
|
|
5182
5183
|
}, "*"), window.addEventListener("message", (r) => {
|
|
5183
5184
|
var i, u;
|
|
5184
|
-
if (!
|
|
5185
|
+
if (!so(e.trustedHosts, r))
|
|
5185
5186
|
return;
|
|
5186
5187
|
const {
|
|
5187
5188
|
data: o
|
|
@@ -5222,13 +5223,58 @@ const Ou = (e = {}) => {
|
|
|
5222
5223
|
}
|
|
5223
5224
|
}
|
|
5224
5225
|
})));
|
|
5225
|
-
},
|
|
5226
|
+
}, ao = ({
|
|
5227
|
+
model: e,
|
|
5228
|
+
trustedHosts: t,
|
|
5229
|
+
callbacks: n
|
|
5230
|
+
}) => (r) => {
|
|
5231
|
+
if (!so(t, r))
|
|
5232
|
+
return;
|
|
5233
|
+
const {
|
|
5234
|
+
data: o
|
|
5235
|
+
} = r;
|
|
5236
|
+
if (o)
|
|
5237
|
+
switch (o.type) {
|
|
5238
|
+
case "builder.configureSdk": {
|
|
5239
|
+
n.configureSdk(o.data);
|
|
5240
|
+
break;
|
|
5241
|
+
}
|
|
5242
|
+
case "builder.triggerAnimation": {
|
|
5243
|
+
n.animation(o.data);
|
|
5244
|
+
break;
|
|
5245
|
+
}
|
|
5246
|
+
case "builder.contentUpdate": {
|
|
5247
|
+
const i = o.data, u = i.key || i.alias || i.entry || i.modelName, c = i.data;
|
|
5248
|
+
u === e && n.contentUpdate(c);
|
|
5249
|
+
break;
|
|
5250
|
+
}
|
|
5251
|
+
}
|
|
5252
|
+
}, ha = (e, t, n) => {
|
|
5253
|
+
if (!z)
|
|
5254
|
+
return Y.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
5255
|
+
};
|
|
5256
|
+
uo();
|
|
5257
|
+
const r = ao({
|
|
5258
|
+
callbacks: {
|
|
5259
|
+
contentUpdate: t,
|
|
5260
|
+
animation: () => {
|
|
5261
|
+
},
|
|
5262
|
+
configureSdk: () => {
|
|
5263
|
+
}
|
|
5264
|
+
},
|
|
5265
|
+
model: e,
|
|
5266
|
+
trustedHosts: n == null ? void 0 : n.trustedHosts
|
|
5267
|
+
});
|
|
5268
|
+
return window.addEventListener("message", r), () => {
|
|
5269
|
+
window.removeEventListener("message", r);
|
|
5270
|
+
};
|
|
5271
|
+
}, Nu = P({
|
|
5226
5272
|
name: "enable-editor",
|
|
5227
5273
|
props: [
|
|
5228
5274
|
"builderContextSignal",
|
|
5229
5275
|
"contentWrapper",
|
|
5230
|
-
"trustedHosts",
|
|
5231
5276
|
"model",
|
|
5277
|
+
"trustedHosts",
|
|
5232
5278
|
"context",
|
|
5233
5279
|
"canTrack",
|
|
5234
5280
|
"apiKey",
|
|
@@ -5261,7 +5307,7 @@ const Ou = (e = {}) => {
|
|
|
5261
5307
|
mounted() {
|
|
5262
5308
|
(() => {
|
|
5263
5309
|
var n, r;
|
|
5264
|
-
if (
|
|
5310
|
+
if (z()) {
|
|
5265
5311
|
if (ve() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5266
5312
|
new CustomEvent("initeditingbldr")
|
|
5267
5313
|
), this.builderContextSignal.content && ct(this.canTrack)) {
|
|
@@ -5274,12 +5320,12 @@ const Ou = (e = {}) => {
|
|
|
5274
5320
|
variationId: i !== u ? i : void 0
|
|
5275
5321
|
});
|
|
5276
5322
|
}
|
|
5277
|
-
|
|
5323
|
+
vu() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5278
5324
|
new CustomEvent("initpreviewingbldr")
|
|
5279
5325
|
);
|
|
5280
5326
|
}
|
|
5281
5327
|
})(), (() => {
|
|
5282
|
-
this.apiKey ||
|
|
5328
|
+
this.apiKey || Y.error(
|
|
5283
5329
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5284
5330
|
), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
5285
5331
|
})();
|
|
@@ -5327,7 +5373,7 @@ const Ou = (e = {}) => {
|
|
|
5327
5373
|
}
|
|
5328
5374
|
},
|
|
5329
5375
|
unmounted() {
|
|
5330
|
-
|
|
5376
|
+
z() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
5331
5377
|
"builder:component:stateChangeListenerActivated",
|
|
5332
5378
|
this.emitStateUpdate
|
|
5333
5379
|
));
|
|
@@ -5398,33 +5444,27 @@ const Ou = (e = {}) => {
|
|
|
5398
5444
|
this.builderContextSignal.content = t;
|
|
5399
5445
|
},
|
|
5400
5446
|
processMessage(e) {
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
if (!i || i !== ((n = this.builderContextSignal.content) == null ? void 0 : n.id))
|
|
5410
|
-
return;
|
|
5411
|
-
o && this.mergeNewContent({
|
|
5447
|
+
return ao({
|
|
5448
|
+
model: this.model,
|
|
5449
|
+
trustedHosts: this.trustedHosts,
|
|
5450
|
+
callbacks: {
|
|
5451
|
+
configureSdk: (t) => {
|
|
5452
|
+
var o;
|
|
5453
|
+
const { breakpoints: n, contentId: r } = t;
|
|
5454
|
+
!r || r !== ((o = this.builderContextSignal.content) == null ? void 0 : o.id) || n && (this.mergeNewContent({
|
|
5412
5455
|
meta: {
|
|
5413
|
-
breakpoints:
|
|
5456
|
+
breakpoints: n
|
|
5414
5457
|
}
|
|
5415
|
-
}), this.forceReRenderCount = this.forceReRenderCount + 1;
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
case "builder.contentUpdate": {
|
|
5423
|
-
const r = t.data, o = r.key || r.alias || r.entry || r.modelName, i = r.data;
|
|
5424
|
-
o === this.model && (this.mergeNewContent(i), this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
5425
|
-
break;
|
|
5458
|
+
}), this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
5459
|
+
},
|
|
5460
|
+
animation: (t) => {
|
|
5461
|
+
Mr(t);
|
|
5462
|
+
},
|
|
5463
|
+
contentUpdate: (t) => {
|
|
5464
|
+
this.mergeNewContent(t), this.forceReRenderCount = this.forceReRenderCount + 1;
|
|
5426
5465
|
}
|
|
5427
5466
|
}
|
|
5467
|
+
})(e);
|
|
5428
5468
|
},
|
|
5429
5469
|
evaluateJsCode() {
|
|
5430
5470
|
var t, n;
|
|
@@ -5447,7 +5487,7 @@ const Ou = (e = {}) => {
|
|
|
5447
5487
|
contentId: o,
|
|
5448
5488
|
apiKey: this.apiKey,
|
|
5449
5489
|
variationId: r !== o ? r : void 0,
|
|
5450
|
-
...
|
|
5490
|
+
...Ru(e),
|
|
5451
5491
|
unique: !this.clicked
|
|
5452
5492
|
});
|
|
5453
5493
|
}
|
|
@@ -5506,7 +5546,7 @@ const Ou = (e = {}) => {
|
|
|
5506
5546
|
);
|
|
5507
5547
|
},
|
|
5508
5548
|
elementRef_onIniteditingbldr(e) {
|
|
5509
|
-
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage),
|
|
5549
|
+
this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), Pu(), uo({
|
|
5510
5550
|
...this.locale ? {
|
|
5511
5551
|
locale: this.locale
|
|
5512
5552
|
} : {},
|
|
@@ -5523,7 +5563,7 @@ const Ou = (e = {}) => {
|
|
|
5523
5563
|
this.builderContextSignal.componentInfos
|
|
5524
5564
|
).forEach((t) => {
|
|
5525
5565
|
var r;
|
|
5526
|
-
const n =
|
|
5566
|
+
const n = Zs(t);
|
|
5527
5567
|
(r = window.parent) == null || r.postMessage(n, "*");
|
|
5528
5568
|
}), window.addEventListener(
|
|
5529
5569
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -5544,7 +5584,7 @@ const Ou = (e = {}) => {
|
|
|
5544
5584
|
}
|
|
5545
5585
|
}
|
|
5546
5586
|
});
|
|
5547
|
-
function
|
|
5587
|
+
function Uu(e, t, n, r, o, i) {
|
|
5548
5588
|
var u, c, d;
|
|
5549
5589
|
return e.builderContextSignal.content ? (k(), W(ot(e.ContentWrapper), te({
|
|
5550
5590
|
key: e.forceReRenderCount,
|
|
@@ -5566,9 +5606,9 @@ function Nu(e, t, n, r, o, i) {
|
|
|
5566
5606
|
le(e.$slots, "default")
|
|
5567
5607
|
]),
|
|
5568
5608
|
_: 3
|
|
5569
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
5609
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : J("v-if", !0);
|
|
5570
5610
|
}
|
|
5571
|
-
const
|
|
5611
|
+
const Mu = /* @__PURE__ */ N(Nu, [["render", Uu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/enable-editor.vue"]]), _u = (e) => {
|
|
5572
5612
|
var i, u;
|
|
5573
5613
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = (u = e.fileUrl) != null ? u : (i = e == null ? void 0 : e.files) == null ? void 0 : i.regular;
|
|
5574
5614
|
let o = "";
|
|
@@ -5594,26 +5634,26 @@ font-weight: ${c};
|
|
|
5594
5634
|
`.trim());
|
|
5595
5635
|
}
|
|
5596
5636
|
return o;
|
|
5597
|
-
},
|
|
5637
|
+
}, Vu = ({
|
|
5598
5638
|
customFonts: e
|
|
5599
5639
|
}) => {
|
|
5600
5640
|
var t;
|
|
5601
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
5602
|
-
},
|
|
5641
|
+
return ((t = e == null ? void 0 : e.map((n) => _u(n))) == null ? void 0 : t.join(" ")) || "";
|
|
5642
|
+
}, Wu = ({
|
|
5603
5643
|
cssCode: e,
|
|
5604
5644
|
contentId: t
|
|
5605
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
5645
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Lu = P({
|
|
5606
5646
|
name: "content-styles",
|
|
5607
5647
|
components: { InlinedStyles: Dn },
|
|
5608
5648
|
props: ["cssCode", "contentId", "customFonts"],
|
|
5609
5649
|
data() {
|
|
5610
5650
|
return {
|
|
5611
5651
|
injectedStyles: `
|
|
5612
|
-
${
|
|
5652
|
+
${Wu({
|
|
5613
5653
|
cssCode: this.cssCode,
|
|
5614
5654
|
contentId: this.contentId
|
|
5615
5655
|
})}
|
|
5616
|
-
${
|
|
5656
|
+
${Vu({
|
|
5617
5657
|
customFonts: this.customFonts
|
|
5618
5658
|
})}
|
|
5619
5659
|
|
|
@@ -5637,11 +5677,11 @@ ${_u({
|
|
|
5637
5677
|
};
|
|
5638
5678
|
}
|
|
5639
5679
|
});
|
|
5640
|
-
function
|
|
5680
|
+
function Hu(e, t, n, r, o, i) {
|
|
5641
5681
|
const u = U("inlined-styles");
|
|
5642
5682
|
return k(), W(u, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
5643
5683
|
}
|
|
5644
|
-
const
|
|
5684
|
+
const Ku = /* @__PURE__ */ N(Lu, [["render", Hu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/components/styles.vue"]]), Gu = ({
|
|
5645
5685
|
content: e,
|
|
5646
5686
|
data: t,
|
|
5647
5687
|
locale: n
|
|
@@ -5658,7 +5698,7 @@ const Hu = /* @__PURE__ */ N(Wu, [["render", Lu], ["__file", "/home/runner/work/
|
|
|
5658
5698
|
locale: n
|
|
5659
5699
|
} : {}
|
|
5660
5700
|
};
|
|
5661
|
-
},
|
|
5701
|
+
}, zu = ({
|
|
5662
5702
|
content: e,
|
|
5663
5703
|
data: t
|
|
5664
5704
|
}) => e ? {
|
|
@@ -5668,12 +5708,12 @@ const Hu = /* @__PURE__ */ N(Wu, [["render", Lu], ["__file", "/home/runner/work/
|
|
|
5668
5708
|
...t
|
|
5669
5709
|
},
|
|
5670
5710
|
meta: e == null ? void 0 : e.meta
|
|
5671
|
-
} : void 0,
|
|
5711
|
+
} : void 0, Xu = Io, Ju = P({
|
|
5672
5712
|
name: "content-component",
|
|
5673
5713
|
components: {
|
|
5674
|
-
EnableEditor:
|
|
5714
|
+
EnableEditor: Mu,
|
|
5675
5715
|
InlinedScript: qr,
|
|
5676
|
-
ContentStyles:
|
|
5716
|
+
ContentStyles: Ku,
|
|
5677
5717
|
Blocks: xt
|
|
5678
5718
|
},
|
|
5679
5719
|
props: [
|
|
@@ -5700,7 +5740,7 @@ const Hu = /* @__PURE__ */ N(Wu, [["render", Lu], ["__file", "/home/runner/work/
|
|
|
5700
5740
|
data() {
|
|
5701
5741
|
var e, t;
|
|
5702
5742
|
return {
|
|
5703
|
-
scriptStr:
|
|
5743
|
+
scriptStr: uu({
|
|
5704
5744
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5705
5745
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5706
5746
|
}),
|
|
@@ -5712,19 +5752,19 @@ const Hu = /* @__PURE__ */ N(Wu, [["render", Lu], ["__file", "/home/runner/work/
|
|
|
5712
5752
|
(n, { component: r, ...o }) => ({
|
|
5713
5753
|
...n,
|
|
5714
5754
|
[o.name]: {
|
|
5715
|
-
component:
|
|
5755
|
+
component: Xu(r),
|
|
5716
5756
|
...cn(o)
|
|
5717
5757
|
}
|
|
5718
5758
|
}),
|
|
5719
5759
|
{}
|
|
5720
5760
|
),
|
|
5721
5761
|
builderContextSignal: {
|
|
5722
|
-
content:
|
|
5762
|
+
content: zu({
|
|
5723
5763
|
content: this.content,
|
|
5724
5764
|
data: this.data
|
|
5725
5765
|
}),
|
|
5726
5766
|
localState: void 0,
|
|
5727
|
-
rootState:
|
|
5767
|
+
rootState: Gu({
|
|
5728
5768
|
content: this.content,
|
|
5729
5769
|
data: this.data,
|
|
5730
5770
|
locale: this.locale
|
|
@@ -5765,7 +5805,7 @@ const Hu = /* @__PURE__ */ N(Wu, [["render", Lu], ["__file", "/home/runner/work/
|
|
|
5765
5805
|
}
|
|
5766
5806
|
}
|
|
5767
5807
|
});
|
|
5768
|
-
function
|
|
5808
|
+
function Yu(e, t, n, r, o, i) {
|
|
5769
5809
|
const u = U("inlined-script"), c = U("content-styles"), d = U("blocks"), m = U("enable-editor");
|
|
5770
5810
|
return k(), W(m, te({
|
|
5771
5811
|
content: e.content,
|
|
@@ -5790,13 +5830,13 @@ function Ju(e, t, n, r, o, i) {
|
|
|
5790
5830
|
e.isSsrAbTest ? (k(), W(u, {
|
|
5791
5831
|
key: 0,
|
|
5792
5832
|
scriptStr: e.scriptStr
|
|
5793
|
-
}, null, 8, ["scriptStr"])) :
|
|
5833
|
+
}, null, 8, ["scriptStr"])) : J("v-if", !0),
|
|
5794
5834
|
e.TARGET !== "reactNative" ? (k(), W(c, {
|
|
5795
5835
|
key: 1,
|
|
5796
5836
|
contentId: (g = e.builderContextSignal.content) == null ? void 0 : g.id,
|
|
5797
5837
|
cssCode: (T = (C = e.builderContextSignal.content) == null ? void 0 : C.data) == null ? void 0 : T.cssCode,
|
|
5798
5838
|
customFonts: (I = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : I.customFonts
|
|
5799
|
-
}, null, 8, ["contentId", "cssCode", "customFonts"])) :
|
|
5839
|
+
}, null, 8, ["contentId", "cssCode", "customFonts"])) : J("v-if", !0),
|
|
5800
5840
|
ye(d, {
|
|
5801
5841
|
blocks: (ne = (M = e.builderContextSignal.content) == null ? void 0 : M.data) == null ? void 0 : ne.blocks,
|
|
5802
5842
|
context: e.builderContextSignal,
|
|
@@ -5808,12 +5848,12 @@ function Ju(e, t, n, r, o, i) {
|
|
|
5808
5848
|
_: 1
|
|
5809
5849
|
}, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
|
|
5810
5850
|
}
|
|
5811
|
-
const
|
|
5851
|
+
const qu = /* @__PURE__ */ N(Ju, [["render", Yu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/content.vue"]]), Zu = P({
|
|
5812
5852
|
name: "content-variants",
|
|
5813
5853
|
components: {
|
|
5814
5854
|
InlinedScript: qr,
|
|
5815
5855
|
InlinedStyles: Dn,
|
|
5816
|
-
ContentComponent:
|
|
5856
|
+
ContentComponent: qu
|
|
5817
5857
|
},
|
|
5818
5858
|
props: [
|
|
5819
5859
|
"canTrack",
|
|
@@ -5837,12 +5877,12 @@ const Yu = /* @__PURE__ */ N(Xu, [["render", Ju], ["__file", "/home/runner/work/
|
|
|
5837
5877
|
],
|
|
5838
5878
|
data() {
|
|
5839
5879
|
return {
|
|
5840
|
-
shouldRenderVariants:
|
|
5880
|
+
shouldRenderVariants: ru({
|
|
5841
5881
|
canTrack: ct(this.canTrack),
|
|
5842
5882
|
content: this.content
|
|
5843
5883
|
}),
|
|
5844
5884
|
TARGET: ue,
|
|
5845
|
-
getScriptString:
|
|
5885
|
+
getScriptString: iu,
|
|
5846
5886
|
getVariants: St
|
|
5847
5887
|
};
|
|
5848
5888
|
},
|
|
@@ -5852,7 +5892,7 @@ const Yu = /* @__PURE__ */ N(Xu, [["render", Ju], ["__file", "/home/runner/work/
|
|
|
5852
5892
|
computed: {
|
|
5853
5893
|
updateCookieAndStylesScriptStr() {
|
|
5854
5894
|
var e;
|
|
5855
|
-
return
|
|
5895
|
+
return su(
|
|
5856
5896
|
St(this.content).map((t) => ({
|
|
5857
5897
|
id: t.testVariationId,
|
|
5858
5898
|
testRatio: t.testRatio
|
|
@@ -5868,21 +5908,21 @@ const Yu = /* @__PURE__ */ N(Xu, [["render", Ju], ["__file", "/home/runner/work/
|
|
|
5868
5908
|
return this.shouldRenderVariants ? {
|
|
5869
5909
|
...this.content,
|
|
5870
5910
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5871
|
-
} :
|
|
5911
|
+
} : ls({
|
|
5872
5912
|
item: this.content,
|
|
5873
5913
|
canTrack: ct(this.canTrack)
|
|
5874
5914
|
});
|
|
5875
5915
|
}
|
|
5876
5916
|
}
|
|
5877
5917
|
});
|
|
5878
|
-
function
|
|
5918
|
+
function Qu(e, t, n, r, o, i) {
|
|
5879
5919
|
var m;
|
|
5880
5920
|
const u = U("inlined-script"), c = U("inlined-styles"), d = U("content-component");
|
|
5881
5921
|
return k(), R(se, null, [
|
|
5882
5922
|
!e.__isNestedRender && e.TARGET !== "reactNative" ? (k(), W(u, {
|
|
5883
5923
|
key: 0,
|
|
5884
5924
|
scriptStr: e.getScriptString()
|
|
5885
|
-
}, null, 8, ["scriptStr"])) :
|
|
5925
|
+
}, null, 8, ["scriptStr"])) : J("v-if", !0),
|
|
5886
5926
|
e.shouldRenderVariants ? (k(), R(se, { key: 1 }, [
|
|
5887
5927
|
ye(c, {
|
|
5888
5928
|
id: `variants-styles-${(m = e.content) == null ? void 0 : m.id}`,
|
|
@@ -5911,7 +5951,7 @@ function Zu(e, t, n, r, o, i) {
|
|
|
5911
5951
|
contentWrapperProps: e.contentWrapperProps,
|
|
5912
5952
|
trustedHosts: e.trustedHosts
|
|
5913
5953
|
}, null, 8, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5914
|
-
], 64)) :
|
|
5954
|
+
], 64)) : J("v-if", !0),
|
|
5915
5955
|
ye(d, te({
|
|
5916
5956
|
content: e.defaultContent,
|
|
5917
5957
|
showContent: !0,
|
|
@@ -5937,7 +5977,7 @@ function Zu(e, t, n, r, o, i) {
|
|
|
5937
5977
|
}), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5938
5978
|
], 64);
|
|
5939
5979
|
}
|
|
5940
|
-
const
|
|
5980
|
+
const lo = /* @__PURE__ */ N(Zu, [["render", Qu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content-variants/content-variants.vue"]]), ea = async ({
|
|
5941
5981
|
builderContextValue: e,
|
|
5942
5982
|
symbol: t
|
|
5943
5983
|
}) => {
|
|
@@ -5952,11 +5992,11 @@ const uo = /* @__PURE__ */ N(qu, [["render", Zu], ["__file", "/home/runner/work/
|
|
|
5952
5992
|
}
|
|
5953
5993
|
}
|
|
5954
5994
|
}).catch((n) => {
|
|
5955
|
-
|
|
5995
|
+
Y.error("Could not fetch symbol content: ", n);
|
|
5956
5996
|
});
|
|
5957
|
-
},
|
|
5997
|
+
}, ta = P({
|
|
5958
5998
|
name: "builder-symbol",
|
|
5959
|
-
components: { ContentVariants:
|
|
5999
|
+
components: { ContentVariants: lo },
|
|
5960
6000
|
props: [
|
|
5961
6001
|
"js",
|
|
5962
6002
|
"attributes",
|
|
@@ -6000,7 +6040,7 @@ const uo = /* @__PURE__ */ N(qu, [["render", Zu], ["__file", "/home/runner/work/
|
|
|
6000
6040
|
},
|
|
6001
6041
|
methods: {
|
|
6002
6042
|
setContent() {
|
|
6003
|
-
this.contentToUse ||
|
|
6043
|
+
this.contentToUse || ea({
|
|
6004
6044
|
symbol: this.symbol,
|
|
6005
6045
|
builderContextValue: this.builderContext
|
|
6006
6046
|
}).then((e) => {
|
|
@@ -6009,7 +6049,7 @@ const uo = /* @__PURE__ */ N(qu, [["render", Zu], ["__file", "/home/runner/work/
|
|
|
6009
6049
|
}
|
|
6010
6050
|
}
|
|
6011
6051
|
});
|
|
6012
|
-
function
|
|
6052
|
+
function na(e, t, n, r, o, i) {
|
|
6013
6053
|
var c, d, m, g, C;
|
|
6014
6054
|
const u = U("content-variants");
|
|
6015
6055
|
return k(), R("div", te({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, Me(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
@@ -6033,9 +6073,9 @@ function ta(e, t, n, r, o, i) {
|
|
|
6033
6073
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
|
|
6034
6074
|
], 16);
|
|
6035
6075
|
}
|
|
6036
|
-
const
|
|
6037
|
-
function
|
|
6038
|
-
if (
|
|
6076
|
+
const ra = /* @__PURE__ */ N(ta, [["render", na], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/symbol/symbol.vue"]]), fa = xt, ma = lo, Er = {};
|
|
6077
|
+
function ga(e) {
|
|
6078
|
+
if (z()) {
|
|
6039
6079
|
Object.assign(Er, e);
|
|
6040
6080
|
const t = {
|
|
6041
6081
|
type: "builder.settingsChange",
|
|
@@ -6044,7 +6084,7 @@ function fa(e) {
|
|
|
6044
6084
|
parent.postMessage(t, "*");
|
|
6045
6085
|
}
|
|
6046
6086
|
}
|
|
6047
|
-
const
|
|
6087
|
+
const ya = async (e) => {
|
|
6048
6088
|
var r, o, i;
|
|
6049
6089
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
6050
6090
|
...e,
|
|
@@ -6065,45 +6105,46 @@ const ma = async (e) => {
|
|
|
6065
6105
|
};
|
|
6066
6106
|
};
|
|
6067
6107
|
export {
|
|
6068
|
-
|
|
6108
|
+
yu as A,
|
|
6069
6109
|
_r as B,
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6110
|
+
lo as C,
|
|
6111
|
+
to as D,
|
|
6112
|
+
Tt as E,
|
|
6113
|
+
Wi as F,
|
|
6114
|
+
pa as G,
|
|
6115
|
+
ca as H,
|
|
6076
6116
|
Dn as I,
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6117
|
+
ia as J,
|
|
6118
|
+
aa as K,
|
|
6119
|
+
fa as R,
|
|
6120
|
+
Qi as S,
|
|
6080
6121
|
ue as T,
|
|
6081
|
-
|
|
6122
|
+
qs as V,
|
|
6082
6123
|
N as _,
|
|
6083
|
-
|
|
6084
|
-
|
|
6124
|
+
Pi as a,
|
|
6125
|
+
sa as b,
|
|
6085
6126
|
we as c,
|
|
6086
|
-
|
|
6127
|
+
la as d,
|
|
6087
6128
|
wt as e,
|
|
6088
|
-
|
|
6129
|
+
ua as f,
|
|
6089
6130
|
Pr as g,
|
|
6090
6131
|
hn as h,
|
|
6091
6132
|
sn as i,
|
|
6092
6133
|
xt as j,
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6134
|
+
ma as k,
|
|
6135
|
+
Po as l,
|
|
6136
|
+
Mi as m,
|
|
6137
|
+
Yi as n,
|
|
6138
|
+
ra as o,
|
|
6139
|
+
Ws as p,
|
|
6099
6140
|
ve as q,
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6141
|
+
vu as r,
|
|
6142
|
+
Zs as s,
|
|
6143
|
+
Ou as t,
|
|
6144
|
+
ga as u,
|
|
6145
|
+
Qr as v,
|
|
6146
|
+
Xu as w,
|
|
6147
|
+
da as x,
|
|
6148
|
+
ha as y,
|
|
6149
|
+
ya as z
|
|
6109
6150
|
};
|