@builder.io/sdk-vue 0.5.0 → 0.5.2
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/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.982735c2.js → block-styles.59ab7031.js} +5 -5
- package/packages/_vue2/dist/{block-styles.6a14fec4.cjs → block-styles.e65d44f5.cjs} +1 -1
- package/packages/_vue2/dist/{block-wrapper.701626ff.cjs → block-wrapper.9745ba6c.cjs} +1 -1
- package/packages/_vue2/dist/{block-wrapper.fbaeab1b.js → block-wrapper.cce236ce.js} +5 -5
- package/packages/_vue2/dist/{block.a18a495f.cjs → block.01a27eab.cjs} +2 -2
- package/packages/_vue2/dist/{block.e9484073.js → block.63da4044.js} +7 -7
- package/packages/_vue2/dist/{blocks-wrapper.4afaccc5.js → blocks-wrapper.2b797dc9.js} +1 -1
- package/packages/_vue2/dist/{blocks-wrapper.e0086c60.cjs → blocks-wrapper.ba2cd603.cjs} +1 -1
- package/packages/_vue2/dist/{component-ref.8772e5f7.cjs → component-ref.2f39178c.cjs} +1 -1
- package/packages/_vue2/dist/{component-ref.ad8ecffe.js → component-ref.4f7cf332.js} +6 -6
- package/packages/_vue2/dist/{content.697b2fbd.js → content.6382aeb4.js} +66 -58
- package/packages/_vue2/dist/{content.fb93079e.cjs → content.7c8b076b.cjs} +1 -1
- package/packages/_vue2/dist/{css.daac46ac.cjs → css.2e7fbfd1.cjs} +1 -1
- package/packages/_vue2/dist/{css.1aff1efe.js → css.8dff19fe.js} +1 -1
- package/packages/_vue2/dist/enable-editor.23d6d28b.cjs +1 -0
- package/packages/_vue2/dist/{enable-editor.8d1c24b0.js → enable-editor.e9efcd2b.js} +9 -10
- package/packages/_vue2/dist/{evaluate.b0496c3f.js → evaluate.df5fb75e.js} +1 -1
- package/packages/_vue2/dist/{evaluate.d1bef2c5.cjs → evaluate.f450642c.cjs} +1 -1
- package/packages/_vue2/dist/{get-block-actions.a39f0f6b.js → get-block-actions.19a0ecef.js} +2 -2
- package/packages/_vue2/dist/get-block-actions.6ca6c225.cjs +1 -0
- package/packages/_vue2/dist/{get-block-properties.3ab4b67f.cjs → get-block-properties.88fdcf9e.cjs} +1 -1
- package/packages/_vue2/dist/{get-block-properties.316bbdf9.js → get-block-properties.d589f252.js} +2 -2
- package/packages/_vue2/dist/{get-processed-block.2c6787e1.js → get-processed-block.23166082.js} +2 -2
- package/packages/_vue2/dist/get-processed-block.5831b148.cjs +1 -0
- package/packages/_vue2/dist/index.d33db46c.cjs +32 -0
- package/packages/_vue2/dist/{index.8352d880.js → index.e6fc80c7.js} +234 -211
- package/packages/_vue2/dist/{inlined-script.874c7b5a.cjs → inlined-script.b449adc4.cjs} +1 -1
- package/packages/_vue2/dist/{inlined-script.b4595308.js → inlined-script.ed4af994.js} +1 -1
- package/packages/_vue2/dist/{inlined-styles.d8b2af39.cjs → inlined-styles.73a58431.cjs} +1 -1
- package/packages/_vue2/dist/{inlined-styles.dd4a079a.js → inlined-styles.e3020f6b.js} +1 -1
- package/packages/_vue2/dist/interactive-element.165bdd65.cjs +1 -0
- package/packages/_vue2/dist/{interactive-element.e2f7ca88.js → interactive-element.6bd49ec9.js} +5 -5
- package/packages/_vue2/dist/{repeated-block.c74334c2.js → repeated-block.0f2faa8d.js} +4 -5
- package/packages/_vue2/dist/repeated-block.1c865156.cjs +1 -0
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +6 -6
- package/packages/_vue2/dist/src/components/blocks/blocks.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue2/dist/src/context/components.context.d.ts +7 -0
- package/packages/_vue2/dist/{styles.367c17da.js → styles.06e1be5f.js} +2 -2
- package/packages/_vue2/dist/{styles.716893e3.cjs → styles.ab30731d.cjs} +3 -3
- package/packages/_vue3/dist/{block-wrapper.caa27b4d.cjs → block-wrapper.8543e3fe.cjs} +1 -1
- package/packages/_vue3/dist/{block-wrapper.0590efed.js → block-wrapper.fa25d8d3.js} +2 -2
- package/packages/_vue3/dist/{component-ref.7c88b254.cjs → component-ref.448dc8fb.cjs} +1 -1
- package/packages/_vue3/dist/{component-ref.9039745a.js → component-ref.72eb813f.js} +2 -2
- package/packages/_vue3/dist/{get-block-actions.cc5999ea.js → get-block-actions.27d7ef56.js} +1 -1
- package/packages/_vue3/dist/{get-block-actions.a8cbb712.cjs → get-block-actions.f8f272df.cjs} +1 -1
- package/packages/_vue3/dist/{index.52e5e57e.js → index.4a0c8828.js} +584 -569
- package/packages/_vue3/dist/{index.a789f147.cjs → index.95dacfa2.cjs} +26 -26
- package/packages/_vue3/dist/{repeated-block.1eba0fc4.js → repeated-block.11b2de7c.js} +2 -2
- package/packages/_vue3/dist/{repeated-block.e0f9db51.cjs → repeated-block.f55959d7.cjs} +1 -1
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +3 -3
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +3 -3
- package/packages/_vue3/dist/src/components/blocks/blocks.vue.d.ts +2 -2
- package/packages/_vue3/dist/src/constants/sdk-version.d.ts +1 -1
- package/packages/_vue3/dist/src/context/components.context.d.ts +7 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/builder.context.29ec27bd.js +0 -18
- package/packages/_vue2/dist/builder.context.e22f06a0.cjs +0 -1
- package/packages/_vue2/dist/enable-editor.12c3716b.cjs +0 -1
- package/packages/_vue2/dist/get-block-actions.88b6dbbf.cjs +0 -1
- package/packages/_vue2/dist/get-processed-block.deb6b33a.cjs +0 -1
- package/packages/_vue2/dist/index.051a3d7b.cjs +0 -32
- package/packages/_vue2/dist/interactive-element.12db10c4.cjs +0 -1
- package/packages/_vue2/dist/repeated-block.0343c63e.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, openBlock as b, createElementBlock as C, mergeProps as U, toHandlers as pe, toDisplayString as
|
|
1
|
+
import { defineComponent as N, openBlock as b, createElementBlock as C, mergeProps as U, toHandlers as pe, toDisplayString as it, h as St, resolveComponent as P, createBlock as A, createCommentVNode as L, defineAsyncComponent as ve, Fragment as W, renderList as ne, withCtx as We, createVNode as se, normalizeProps as rt, guardReactiveProps as Ii, renderSlot as ae, createElementVNode as nt, normalizeStyle as st, normalizeClass as _t, markRaw as Ai } from "vue";
|
|
2
2
|
function Ce(e = {}, t, i) {
|
|
3
3
|
const r = {};
|
|
4
4
|
for (const n in e) {
|
|
@@ -9,7 +9,7 @@ function Ce(e = {}, t, i) {
|
|
|
9
9
|
}
|
|
10
10
|
return r;
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const Li = N({
|
|
13
13
|
name: "builder-button",
|
|
14
14
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
15
15
|
data() {
|
|
@@ -32,20 +32,20 @@ const O = (e, t) => {
|
|
|
32
32
|
for (const [r, n] of t)
|
|
33
33
|
i[r] = n;
|
|
34
34
|
return i;
|
|
35
|
-
},
|
|
36
|
-
function
|
|
35
|
+
}, Vi = ["href", "target"];
|
|
36
|
+
function Bi(e, t, i, r, n, s) {
|
|
37
37
|
return e.link ? (b(), C("a", U({
|
|
38
38
|
key: 0,
|
|
39
39
|
role: "button",
|
|
40
40
|
href: e.link,
|
|
41
41
|
target: e.openLinkInNewTab ? "_blank" : void 0
|
|
42
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)),
|
|
42
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), it(e.text), 17, Vi)) : (b(), C("button", U({
|
|
43
43
|
key: 1,
|
|
44
44
|
style: e.attributes.style,
|
|
45
45
|
class: e._classStringToObject(e.attributes.class + " button-2btisl9m7v3")
|
|
46
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)),
|
|
46
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), it(e.text), 17));
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const Fi = /* @__PURE__ */ O(Li, [["render", Bi], ["__scopeId", "data-v-f2ef3d85"]]), we = (e) => JSON.parse(JSON.stringify(e)), Rt = {
|
|
49
49
|
small: {
|
|
50
50
|
min: 320,
|
|
51
51
|
default: 321,
|
|
@@ -61,7 +61,7 @@ const Bi = /* @__PURE__ */ O(Ai, [["render", Vi], ["__scopeId", "data-v-f2ef3d85
|
|
|
61
61
|
default: 991,
|
|
62
62
|
max: 1200
|
|
63
63
|
}
|
|
64
|
-
},
|
|
64
|
+
}, at = (e, t = Rt) => `@media (max-width: ${t[e].max}px)`, Ct = ({
|
|
65
65
|
small: e,
|
|
66
66
|
medium: t
|
|
67
67
|
}) => {
|
|
@@ -95,13 +95,13 @@ const Bi = /* @__PURE__ */ O(Ai, [["render", Vi], ["__scopeId", "data-v-f2ef3d85
|
|
|
95
95
|
function V() {
|
|
96
96
|
return typeof window < "u" && typeof document < "u";
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Mi() {
|
|
99
99
|
return V() && window.self !== window.top;
|
|
100
100
|
}
|
|
101
101
|
function X() {
|
|
102
|
-
return
|
|
102
|
+
return Mi() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ui() {
|
|
105
105
|
const e = () => {
|
|
106
106
|
var t;
|
|
107
107
|
return typeof process < "u" && ((t = process == null ? void 0 : process.versions) == null ? void 0 : t.node);
|
|
@@ -114,17 +114,17 @@ const wt = (e, t, i) => {
|
|
|
114
114
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
115
115
|
return r.slice(0, -1).reduce((n, s, a) => Object(n[s]) === n[s] ? n[s] : n[s] = Math.abs(Number(r[a + 1])) >> 0 === +r[a + 1] ? [] : {}, e)[r[r.length - 1]] = i, e;
|
|
116
116
|
};
|
|
117
|
-
var
|
|
117
|
+
var Di = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], kt = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191], $i = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\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\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F", Nt = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\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\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\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\u0AF9\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-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\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-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\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", Ie = {
|
|
118
118
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
119
119
|
5: "class enum extends super const export import",
|
|
120
120
|
6: "enum",
|
|
121
121
|
strict: "implements interface let package private protected public static yield",
|
|
122
122
|
strictBind: "eval arguments"
|
|
123
|
-
}, Ae = "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",
|
|
123
|
+
}, Ae = "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", ji = {
|
|
124
124
|
5: Ae,
|
|
125
125
|
"5module": Ae + " export import",
|
|
126
126
|
6: Ae + " const class extends export import super"
|
|
127
|
-
},
|
|
127
|
+
}, Gi = /^in(stanceof)?$/, Wi = new RegExp("[" + Nt + "]"), Hi = new RegExp("[" + Nt + $i + "]");
|
|
128
128
|
function Fe(e, t) {
|
|
129
129
|
for (var i = 65536, r = 0; r < t.length; r += 2) {
|
|
130
130
|
if (i += t[r], i > e)
|
|
@@ -135,10 +135,10 @@ function Fe(e, t) {
|
|
|
135
135
|
return !1;
|
|
136
136
|
}
|
|
137
137
|
function Q(e, t) {
|
|
138
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 &&
|
|
138
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Wi.test(String.fromCharCode(e)) : t === !1 ? !1 : Fe(e, kt);
|
|
139
139
|
}
|
|
140
140
|
function oe(e, t) {
|
|
141
|
-
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 &&
|
|
141
|
+
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Hi.test(String.fromCharCode(e)) : t === !1 ? !1 : Fe(e, kt) || Fe(e, Di);
|
|
142
142
|
}
|
|
143
143
|
var R = function(t, i) {
|
|
144
144
|
i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
|
|
@@ -146,9 +146,9 @@ var R = function(t, i) {
|
|
|
146
146
|
function $(e, t) {
|
|
147
147
|
return new R(e, { beforeExpr: !0, binop: t });
|
|
148
148
|
}
|
|
149
|
-
var j = { beforeExpr: !0 }, M = { startsExpr: !0 },
|
|
149
|
+
var j = { beforeExpr: !0 }, M = { startsExpr: !0 }, He = {};
|
|
150
150
|
function _(e, t) {
|
|
151
|
-
return t === void 0 && (t = {}), t.keyword = e,
|
|
151
|
+
return t === void 0 && (t = {}), t.keyword = e, He[e] = new R(e, t);
|
|
152
152
|
}
|
|
153
153
|
var c = {
|
|
154
154
|
num: new R("num", M),
|
|
@@ -228,7 +228,7 @@ var c = {
|
|
|
228
228
|
_typeof: _("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
229
229
|
_void: _("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
230
230
|
_delete: _("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
231
|
-
}, H = /\r\n?|\n|\u2028|\u2029/,
|
|
231
|
+
}, H = /\r\n?|\n|\u2028|\u2029/, Yi = new RegExp(H.source, "g");
|
|
232
232
|
function ue(e) {
|
|
233
233
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
234
234
|
}
|
|
@@ -241,10 +241,10 @@ function Pt(e, t, i) {
|
|
|
241
241
|
}
|
|
242
242
|
return -1;
|
|
243
243
|
}
|
|
244
|
-
var Tt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, G = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Ot = Object.prototype,
|
|
245
|
-
return
|
|
246
|
-
},
|
|
247
|
-
return
|
|
244
|
+
var Tt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, G = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Ot = Object.prototype, qi = Ot.hasOwnProperty, zi = Ot.toString, me = Object.hasOwn || function(e, t) {
|
|
245
|
+
return qi.call(e, t);
|
|
246
|
+
}, ot = Array.isArray || function(e) {
|
|
247
|
+
return zi.call(e) === "[object Array]";
|
|
248
248
|
};
|
|
249
249
|
function re(e) {
|
|
250
250
|
return new RegExp("^(?:" + e.replace(/ /g, "|") + ")$");
|
|
@@ -252,7 +252,7 @@ function re(e) {
|
|
|
252
252
|
function te(e) {
|
|
253
253
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
254
254
|
}
|
|
255
|
-
var
|
|
255
|
+
var Ki = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, fe = function(t, i) {
|
|
256
256
|
this.line = t, this.column = i;
|
|
257
257
|
};
|
|
258
258
|
fe.prototype.offset = function(t) {
|
|
@@ -288,21 +288,21 @@ var Me = {
|
|
|
288
288
|
sourceFile: null,
|
|
289
289
|
directSourceFile: null,
|
|
290
290
|
preserveParens: !1
|
|
291
|
-
},
|
|
292
|
-
function
|
|
291
|
+
}, ut = !1;
|
|
292
|
+
function Xi(e) {
|
|
293
293
|
var t = {};
|
|
294
294
|
for (var i in Me)
|
|
295
295
|
t[i] = e && me(e, i) ? e[i] : Me[i];
|
|
296
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
297
|
-
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14),
|
|
296
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!ut && typeof console == "object" && console.warn && (ut = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
297
|
+
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), ot(t.onToken)) {
|
|
298
298
|
var r = t.onToken;
|
|
299
299
|
t.onToken = function(n) {
|
|
300
300
|
return r.push(n);
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
return
|
|
303
|
+
return ot(t.onComment) && (t.onComment = Ji(t, t.onComment)), t;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function Ji(e, t) {
|
|
306
306
|
return function(i, r, n, s, a, u) {
|
|
307
307
|
var l = {
|
|
308
308
|
type: i ? "Block" : "Line",
|
|
@@ -313,12 +313,12 @@ function Xi(e, t) {
|
|
|
313
313
|
e.locations && (l.loc = new ke(this, a, u)), e.ranges && (l.range = [n, s]), t.push(l);
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
|
-
var de = 1, ce = 2,
|
|
317
|
-
function
|
|
318
|
-
return ce | (e ?
|
|
316
|
+
var de = 1, ce = 2, Ye = 4, At = 8, Lt = 16, Vt = 32, qe = 64, Bt = 128, ge = 256, ze = de | ce | ge;
|
|
317
|
+
function Ke(e, t) {
|
|
318
|
+
return ce | (e ? Ye : 0) | (t ? At : 0);
|
|
319
319
|
}
|
|
320
|
-
var xe = 0,
|
|
321
|
-
this.options = t =
|
|
320
|
+
var xe = 0, Xe = 1, J = 2, Ft = 3, Mt = 4, Ut = 5, T = function(t, i, r) {
|
|
321
|
+
this.options = t = Xi(t), this.sourceFile = t.sourceFile, this.keywords = re(ji[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
322
322
|
var n = "";
|
|
323
323
|
t.allowReserved !== !0 && (n = Ie[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (n += " await")), this.reservedWords = re(n);
|
|
324
324
|
var s = (n ? n + " " : "") + Ie.strict;
|
|
@@ -336,7 +336,7 @@ K.inGenerator.get = function() {
|
|
|
336
336
|
return (this.currentVarScope().flags & At) > 0 && !this.currentVarScope().inClassFieldInit;
|
|
337
337
|
};
|
|
338
338
|
K.inAsync.get = function() {
|
|
339
|
-
return (this.currentVarScope().flags &
|
|
339
|
+
return (this.currentVarScope().flags & Ye) > 0 && !this.currentVarScope().inClassFieldInit;
|
|
340
340
|
};
|
|
341
341
|
K.canAwait.get = function() {
|
|
342
342
|
for (var e = this.scopeStack.length - 1; e >= 0; e--) {
|
|
@@ -344,13 +344,13 @@ K.canAwait.get = function() {
|
|
|
344
344
|
if (t.inClassFieldInit || t.flags & ge)
|
|
345
345
|
return !1;
|
|
346
346
|
if (t.flags & ce)
|
|
347
|
-
return (t.flags &
|
|
347
|
+
return (t.flags & Ye) > 0;
|
|
348
348
|
}
|
|
349
349
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
350
350
|
};
|
|
351
351
|
K.allowSuper.get = function() {
|
|
352
352
|
var e = this.currentThisScope(), t = e.flags, i = e.inClassFieldInit;
|
|
353
|
-
return (t &
|
|
353
|
+
return (t & qe) > 0 || i || this.options.allowSuperOutsideMethod;
|
|
354
354
|
};
|
|
355
355
|
K.allowDirectSuper.get = function() {
|
|
356
356
|
return (this.currentThisScope().flags & Bt) > 0;
|
|
@@ -383,13 +383,13 @@ T.tokenizer = function(t, i) {
|
|
|
383
383
|
return new this(i, t);
|
|
384
384
|
};
|
|
385
385
|
Object.defineProperties(T.prototype, K);
|
|
386
|
-
var F = T.prototype,
|
|
386
|
+
var F = T.prototype, Qi = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;
|
|
387
387
|
F.strictDirective = function(e) {
|
|
388
388
|
if (this.options.ecmaVersion < 5)
|
|
389
389
|
return !1;
|
|
390
390
|
for (; ; ) {
|
|
391
391
|
G.lastIndex = e, e += G.exec(this.input)[0].length;
|
|
392
|
-
var t =
|
|
392
|
+
var t = Qi.exec(this.input.slice(e));
|
|
393
393
|
if (!t)
|
|
394
394
|
return !1;
|
|
395
395
|
if ((t[1] || t[2]) === "use strict") {
|
|
@@ -456,8 +456,8 @@ F.checkYieldAwaitInDefaultParams = function() {
|
|
|
456
456
|
F.isSimpleAssignTarget = function(e) {
|
|
457
457
|
return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
|
|
458
458
|
};
|
|
459
|
-
var
|
|
460
|
-
|
|
459
|
+
var v = T.prototype;
|
|
460
|
+
v.parseTopLevel = function(e) {
|
|
461
461
|
var t = /* @__PURE__ */ Object.create(null);
|
|
462
462
|
for (e.body || (e.body = []); this.type !== c.eof; ) {
|
|
463
463
|
var i = this.parseStatement(null, !0, t);
|
|
@@ -470,8 +470,8 @@ y.parseTopLevel = function(e) {
|
|
|
470
470
|
}
|
|
471
471
|
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
|
|
472
472
|
};
|
|
473
|
-
var
|
|
474
|
-
|
|
473
|
+
var Je = { kind: "loop" }, Zi = { kind: "switch" };
|
|
474
|
+
v.isLet = function(e) {
|
|
475
475
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let"))
|
|
476
476
|
return !1;
|
|
477
477
|
G.lastIndex = this.pos;
|
|
@@ -488,19 +488,19 @@ y.isLet = function(e) {
|
|
|
488
488
|
if (r === 92 || r > 55295 && r < 56320)
|
|
489
489
|
return !0;
|
|
490
490
|
var s = this.input.slice(i, n);
|
|
491
|
-
if (!
|
|
491
|
+
if (!Gi.test(s))
|
|
492
492
|
return !0;
|
|
493
493
|
}
|
|
494
494
|
return !1;
|
|
495
495
|
};
|
|
496
|
-
|
|
496
|
+
v.isAsyncFunction = function() {
|
|
497
497
|
if (this.options.ecmaVersion < 8 || !this.isContextual("async"))
|
|
498
498
|
return !1;
|
|
499
499
|
G.lastIndex = this.pos;
|
|
500
500
|
var e = G.exec(this.input), t = this.pos + e[0].length, i;
|
|
501
501
|
return !H.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(oe(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
|
|
502
502
|
};
|
|
503
|
-
|
|
503
|
+
v.parseStatement = function(e, t, i) {
|
|
504
504
|
var r = this.type, n = this.startNode(), s;
|
|
505
505
|
switch (this.isLet(e) && (r = c._var, s = "let"), r) {
|
|
506
506
|
case c._break:
|
|
@@ -553,7 +553,7 @@ y.parseStatement = function(e, t, i) {
|
|
|
553
553
|
return r === c.name && p.type === "Identifier" && this.eat(c.colon) ? this.parseLabeledStatement(n, h, p, e) : this.parseExpressionStatement(n, p);
|
|
554
554
|
}
|
|
555
555
|
};
|
|
556
|
-
|
|
556
|
+
v.parseBreakContinueStatement = function(e, t) {
|
|
557
557
|
var i = t === "break";
|
|
558
558
|
this.next(), this.eat(c.semi) || this.insertSemicolon() ? e.label = null : this.type !== c.name ? this.unexpected() : (e.label = this.parseIdent(), this.semicolon());
|
|
559
559
|
for (var r = 0; r < this.labels.length; ++r) {
|
|
@@ -563,16 +563,16 @@ y.parseBreakContinueStatement = function(e, t) {
|
|
|
563
563
|
}
|
|
564
564
|
return r === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, i ? "BreakStatement" : "ContinueStatement");
|
|
565
565
|
};
|
|
566
|
-
|
|
566
|
+
v.parseDebuggerStatement = function(e) {
|
|
567
567
|
return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
|
|
568
568
|
};
|
|
569
|
-
|
|
570
|
-
return this.next(), this.labels.push(
|
|
569
|
+
v.parseDoStatement = function(e) {
|
|
570
|
+
return this.next(), this.labels.push(Je), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(c._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(c.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
|
|
571
571
|
};
|
|
572
|
-
|
|
572
|
+
v.parseForStatement = function(e) {
|
|
573
573
|
this.next();
|
|
574
574
|
var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
|
|
575
|
-
if (this.labels.push(
|
|
575
|
+
if (this.labels.push(Je), this.enterScope(0), this.expect(c.parenL), this.type === c.semi)
|
|
576
576
|
return t > -1 && this.unexpected(t), this.parseFor(e, null);
|
|
577
577
|
var i = this.isLet();
|
|
578
578
|
if (this.type === c._var || this.type === c._const || i) {
|
|
@@ -582,17 +582,17 @@ y.parseForStatement = function(e) {
|
|
|
582
582
|
var s = this.isContextual("let"), a = !1, u = new Ne(), l = this.parseExpression(t > -1 ? "await" : !0, u);
|
|
583
583
|
return this.type === c._in || (a = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (this.options.ecmaVersion >= 9 && (this.type === c._in ? t > -1 && this.unexpected(t) : e.await = t > -1), s && a && this.raise(l.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(l, !1, u), this.checkLValPattern(l), this.parseForIn(e, l)) : (this.checkExpressionErrors(u, !0), t > -1 && this.unexpected(t), this.parseFor(e, l));
|
|
584
584
|
};
|
|
585
|
-
|
|
585
|
+
v.parseFunctionStatement = function(e, t, i) {
|
|
586
586
|
return this.next(), this.parseFunction(e, he | (i ? 0 : Ue), !1, t);
|
|
587
587
|
};
|
|
588
|
-
|
|
588
|
+
v.parseIfStatement = function(e) {
|
|
589
589
|
return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(c._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
|
|
590
590
|
};
|
|
591
|
-
|
|
591
|
+
v.parseReturnStatement = function(e) {
|
|
592
592
|
return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(c.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
|
|
593
593
|
};
|
|
594
|
-
|
|
595
|
-
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(c.braceL), this.labels.push(
|
|
594
|
+
v.parseSwitchStatement = function(e) {
|
|
595
|
+
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(c.braceL), this.labels.push(Zi), this.enterScope(0);
|
|
596
596
|
for (var t, i = !1; this.type !== c.braceR; )
|
|
597
597
|
if (this.type === c._case || this.type === c._default) {
|
|
598
598
|
var r = this.type === c._case;
|
|
@@ -601,11 +601,11 @@ y.parseSwitchStatement = function(e) {
|
|
|
601
601
|
t || this.unexpected(), t.consequent.push(this.parseStatement(null));
|
|
602
602
|
return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
|
|
603
603
|
};
|
|
604
|
-
|
|
604
|
+
v.parseThrowStatement = function(e) {
|
|
605
605
|
return this.next(), H.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
|
|
606
606
|
};
|
|
607
|
-
var
|
|
608
|
-
|
|
607
|
+
var er = [];
|
|
608
|
+
v.parseTryStatement = function(e) {
|
|
609
609
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === c._catch) {
|
|
610
610
|
var t = this.startNode();
|
|
611
611
|
if (this.next(), this.eat(c.parenL)) {
|
|
@@ -618,19 +618,19 @@ y.parseTryStatement = function(e) {
|
|
|
618
618
|
}
|
|
619
619
|
return e.finalizer = this.eat(c._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
|
|
620
620
|
};
|
|
621
|
-
|
|
621
|
+
v.parseVarStatement = function(e, t) {
|
|
622
622
|
return this.next(), this.parseVar(e, !1, t), this.semicolon(), this.finishNode(e, "VariableDeclaration");
|
|
623
623
|
};
|
|
624
|
-
|
|
625
|
-
return this.next(), e.test = this.parseParenExpression(), this.labels.push(
|
|
624
|
+
v.parseWhileStatement = function(e) {
|
|
625
|
+
return this.next(), e.test = this.parseParenExpression(), this.labels.push(Je), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
|
|
626
626
|
};
|
|
627
|
-
|
|
627
|
+
v.parseWithStatement = function(e) {
|
|
628
628
|
return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
|
|
629
629
|
};
|
|
630
|
-
|
|
630
|
+
v.parseEmptyStatement = function(e) {
|
|
631
631
|
return this.next(), this.finishNode(e, "EmptyStatement");
|
|
632
632
|
};
|
|
633
|
-
|
|
633
|
+
v.parseLabeledStatement = function(e, t, i, r) {
|
|
634
634
|
for (var n = 0, s = this.labels; n < s.length; n += 1) {
|
|
635
635
|
var a = s[n];
|
|
636
636
|
a.name === t && this.raise(i.start, "Label '" + t + "' is already declared");
|
|
@@ -644,27 +644,27 @@ y.parseLabeledStatement = function(e, t, i, r) {
|
|
|
644
644
|
}
|
|
645
645
|
return this.labels.push({ name: t, kind: u, statementStart: this.start }), e.body = this.parseStatement(r ? r.indexOf("label") === -1 ? r + "label" : r : "label"), this.labels.pop(), e.label = i, this.finishNode(e, "LabeledStatement");
|
|
646
646
|
};
|
|
647
|
-
|
|
647
|
+
v.parseExpressionStatement = function(e, t) {
|
|
648
648
|
return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
|
|
649
649
|
};
|
|
650
|
-
|
|
650
|
+
v.parseBlock = function(e, t, i) {
|
|
651
651
|
for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(c.braceL), e && this.enterScope(0); this.type !== c.braceR; ) {
|
|
652
652
|
var r = this.parseStatement(null);
|
|
653
653
|
t.body.push(r);
|
|
654
654
|
}
|
|
655
655
|
return i && (this.strict = !1), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
|
|
656
656
|
};
|
|
657
|
-
|
|
657
|
+
v.parseFor = function(e, t) {
|
|
658
658
|
return e.init = t, this.expect(c.semi), e.test = this.type === c.semi ? null : this.parseExpression(), this.expect(c.semi), e.update = this.type === c.parenR ? null : this.parseExpression(), this.expect(c.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
|
|
659
659
|
};
|
|
660
|
-
|
|
660
|
+
v.parseForIn = function(e, t) {
|
|
661
661
|
var i = this.type === c._in;
|
|
662
662
|
return this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!i || this.options.ecmaVersion < 8 || this.strict || t.kind !== "var" || t.declarations[0].id.type !== "Identifier") && this.raise(
|
|
663
663
|
t.start,
|
|
664
664
|
(i ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"
|
|
665
665
|
), e.left = t, e.right = i ? this.parseExpression() : this.parseMaybeAssign(), this.expect(c.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, i ? "ForInStatement" : "ForOfStatement");
|
|
666
666
|
};
|
|
667
|
-
|
|
667
|
+
v.parseVar = function(e, t, i) {
|
|
668
668
|
for (e.declarations = [], e.kind = i; ; ) {
|
|
669
669
|
var r = this.startNode();
|
|
670
670
|
if (this.parseVarId(r, i), this.eat(c.eq) ? r.init = this.parseMaybeAssign(t) : i === "const" && !(this.type === c._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : r.id.type !== "Identifier" && !(t && (this.type === c._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : r.init = null, e.declarations.push(this.finishNode(r, "VariableDeclarator")), !this.eat(c.comma))
|
|
@@ -672,30 +672,30 @@ y.parseVar = function(e, t, i) {
|
|
|
672
672
|
}
|
|
673
673
|
return e;
|
|
674
674
|
};
|
|
675
|
-
|
|
676
|
-
e.id = this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ?
|
|
675
|
+
v.parseVarId = function(e, t) {
|
|
676
|
+
e.id = this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Xe : J, !1);
|
|
677
677
|
};
|
|
678
678
|
var he = 1, Ue = 2, Dt = 4;
|
|
679
|
-
|
|
680
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === c.star && t & Ue && this.unexpected(), e.generator = this.eat(c.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & he && (e.id = t & Dt && this.type !== c.name ? null : this.parseIdent(), e.id && !(t & Ue) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ?
|
|
679
|
+
v.parseFunction = function(e, t, i, r, n) {
|
|
680
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === c.star && t & Ue && this.unexpected(), e.generator = this.eat(c.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & he && (e.id = t & Dt && this.type !== c.name ? null : this.parseIdent(), e.id && !(t & Ue) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Xe : J : Ft));
|
|
681
681
|
var s = this.yieldPos, a = this.awaitPos, u = this.awaitIdentPos;
|
|
682
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
682
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ke(e.async, e.generator)), t & he || (e.id = this.type === c.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, n), this.yieldPos = s, this.awaitPos = a, this.awaitIdentPos = u, this.finishNode(e, t & he ? "FunctionDeclaration" : "FunctionExpression");
|
|
683
683
|
};
|
|
684
|
-
|
|
684
|
+
v.parseFunctionParams = function(e) {
|
|
685
685
|
this.expect(c.parenL), e.params = this.parseBindingList(c.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
686
686
|
};
|
|
687
|
-
|
|
687
|
+
v.parseClass = function(e, t) {
|
|
688
688
|
this.next();
|
|
689
689
|
var i = this.strict;
|
|
690
690
|
this.strict = !0, this.parseClassId(e, t), this.parseClassSuper(e);
|
|
691
691
|
var r = this.enterClassBody(), n = this.startNode(), s = !1;
|
|
692
692
|
for (n.body = [], this.expect(c.braceL); this.type !== c.braceR; ) {
|
|
693
693
|
var a = this.parseClassElement(e.superClass !== null);
|
|
694
|
-
a && (n.body.push(a), a.type === "MethodDefinition" && a.kind === "constructor" ? (s && this.raise(a.start, "Duplicate constructor in the same class"), s = !0) : a.key && a.key.type === "PrivateIdentifier" &&
|
|
694
|
+
a && (n.body.push(a), a.type === "MethodDefinition" && a.kind === "constructor" ? (s && this.raise(a.start, "Duplicate constructor in the same class"), s = !0) : a.key && a.key.type === "PrivateIdentifier" && tr(r, a) && this.raiseRecoverable(a.key.start, "Identifier '#" + a.key.name + "' has already been declared"));
|
|
695
695
|
}
|
|
696
696
|
return this.strict = i, this.next(), e.body = this.finishNode(n, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
|
|
697
697
|
};
|
|
698
|
-
|
|
698
|
+
v.parseClassElement = function(e) {
|
|
699
699
|
if (this.eat(c.semi))
|
|
700
700
|
return null;
|
|
701
701
|
var t = this.options.ecmaVersion, i = this.startNode(), r = "", n = !1, s = !1, a = "method", u = !1;
|
|
@@ -715,19 +715,19 @@ y.parseClassElement = function(e) {
|
|
|
715
715
|
this.parseClassField(i);
|
|
716
716
|
return i;
|
|
717
717
|
};
|
|
718
|
-
|
|
718
|
+
v.isClassElementNameStart = function() {
|
|
719
719
|
return this.type === c.name || this.type === c.privateId || this.type === c.num || this.type === c.string || this.type === c.bracketL || this.type.keyword;
|
|
720
720
|
};
|
|
721
|
-
|
|
721
|
+
v.parseClassElementName = function(e) {
|
|
722
722
|
this.type === c.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), e.computed = !1, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
|
|
723
723
|
};
|
|
724
|
-
|
|
724
|
+
v.parseClassMethod = function(e, t, i, r) {
|
|
725
725
|
var n = e.key;
|
|
726
726
|
e.kind === "constructor" ? (t && this.raise(n.start, "Constructor can't be a generator"), i && this.raise(n.start, "Constructor can't be an async method")) : e.static && Se(e, "prototype") && this.raise(n.start, "Classes may not have a static property named prototype");
|
|
727
727
|
var s = e.value = this.parseMethod(t, i, r);
|
|
728
728
|
return e.kind === "get" && s.params.length !== 0 && this.raiseRecoverable(s.start, "getter should have no params"), e.kind === "set" && s.params.length !== 1 && this.raiseRecoverable(s.start, "setter should have exactly one param"), e.kind === "set" && s.params[0].type === "RestElement" && this.raiseRecoverable(s.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
|
|
729
729
|
};
|
|
730
|
-
|
|
730
|
+
v.parseClassField = function(e) {
|
|
731
731
|
if (Se(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && Se(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(c.eq)) {
|
|
732
732
|
var t = this.currentThisScope(), i = t.inClassFieldInit;
|
|
733
733
|
t.inClassFieldInit = !0, e.value = this.parseMaybeAssign(), t.inClassFieldInit = i;
|
|
@@ -735,32 +735,32 @@ y.parseClassField = function(e) {
|
|
|
735
735
|
e.value = null;
|
|
736
736
|
return this.semicolon(), this.finishNode(e, "PropertyDefinition");
|
|
737
737
|
};
|
|
738
|
-
|
|
738
|
+
v.parseClassStaticBlock = function(e) {
|
|
739
739
|
e.body = [];
|
|
740
740
|
var t = this.labels;
|
|
741
|
-
for (this.labels = [], this.enterScope(ge |
|
|
741
|
+
for (this.labels = [], this.enterScope(ge | qe); this.type !== c.braceR; ) {
|
|
742
742
|
var i = this.parseStatement(null);
|
|
743
743
|
e.body.push(i);
|
|
744
744
|
}
|
|
745
745
|
return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
|
|
746
746
|
};
|
|
747
|
-
|
|
747
|
+
v.parseClassId = function(e, t) {
|
|
748
748
|
this.type === c.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, J, !1)) : (t === !0 && this.unexpected(), e.id = null);
|
|
749
749
|
};
|
|
750
|
-
|
|
750
|
+
v.parseClassSuper = function(e) {
|
|
751
751
|
e.superClass = this.eat(c._extends) ? this.parseExprSubscripts(null, !1) : null;
|
|
752
752
|
};
|
|
753
|
-
|
|
753
|
+
v.enterClassBody = function() {
|
|
754
754
|
var e = { declared: /* @__PURE__ */ Object.create(null), used: [] };
|
|
755
755
|
return this.privateNameStack.push(e), e.declared;
|
|
756
756
|
};
|
|
757
|
-
|
|
757
|
+
v.exitClassBody = function() {
|
|
758
758
|
for (var e = this.privateNameStack.pop(), t = e.declared, i = e.used, r = this.privateNameStack.length, n = r === 0 ? null : this.privateNameStack[r - 1], s = 0; s < i.length; ++s) {
|
|
759
759
|
var a = i[s];
|
|
760
760
|
me(t, a.name) || (n ? n.used.push(a) : this.raiseRecoverable(a.start, "Private field '#" + a.name + "' must be declared in an enclosing class"));
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
|
-
function
|
|
763
|
+
function tr(e, t) {
|
|
764
764
|
var i = t.key.name, r = e[i], n = "true";
|
|
765
765
|
return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (n = (t.static ? "s" : "i") + t.kind), r === "iget" && n === "iset" || r === "iset" && n === "iget" || r === "sget" && n === "sset" || r === "sset" && n === "sget" ? (e[i] = "true", !1) : r ? !0 : (e[i] = n, !1);
|
|
766
766
|
}
|
|
@@ -768,7 +768,7 @@ function Se(e, t) {
|
|
|
768
768
|
var i = e.computed, r = e.key;
|
|
769
769
|
return !i && (r.type === "Identifier" && r.name === t || r.type === "Literal" && r.value === t);
|
|
770
770
|
}
|
|
771
|
-
|
|
771
|
+
v.parseExport = function(e, t) {
|
|
772
772
|
if (this.next(), this.eat(c.star))
|
|
773
773
|
return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (e.exported = this.parseModuleExportName(), this.checkExport(t, e.exported, this.lastTokStart)) : e.exported = null), this.expectContextual("from"), this.type !== c.string && this.unexpected(), e.source = this.parseExprAtom(), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
|
|
774
774
|
if (this.eat(c._default)) {
|
|
@@ -800,10 +800,10 @@ y.parseExport = function(e, t) {
|
|
|
800
800
|
}
|
|
801
801
|
return this.finishNode(e, "ExportNamedDeclaration");
|
|
802
802
|
};
|
|
803
|
-
|
|
803
|
+
v.checkExport = function(e, t, i) {
|
|
804
804
|
!e || (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), me(e, t) && this.raiseRecoverable(i, "Duplicate export '" + t + "'"), e[t] = !0);
|
|
805
805
|
};
|
|
806
|
-
|
|
806
|
+
v.checkPatternExport = function(e, t) {
|
|
807
807
|
var i = t.type;
|
|
808
808
|
if (i === "Identifier")
|
|
809
809
|
this.checkExport(e, t, t.start);
|
|
@@ -820,17 +820,17 @@ y.checkPatternExport = function(e, t) {
|
|
|
820
820
|
else
|
|
821
821
|
i === "Property" ? this.checkPatternExport(e, t.value) : i === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : i === "RestElement" ? this.checkPatternExport(e, t.argument) : i === "ParenthesizedExpression" && this.checkPatternExport(e, t.expression);
|
|
822
822
|
};
|
|
823
|
-
|
|
823
|
+
v.checkVariableExport = function(e, t) {
|
|
824
824
|
if (!!e)
|
|
825
825
|
for (var i = 0, r = t; i < r.length; i += 1) {
|
|
826
826
|
var n = r[i];
|
|
827
827
|
this.checkPatternExport(e, n.id);
|
|
828
828
|
}
|
|
829
829
|
};
|
|
830
|
-
|
|
830
|
+
v.shouldParseExportStatement = function() {
|
|
831
831
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
832
832
|
};
|
|
833
|
-
|
|
833
|
+
v.parseExportSpecifiers = function(e) {
|
|
834
834
|
var t = [], i = !0;
|
|
835
835
|
for (this.expect(c.braceL); !this.eat(c.braceR); ) {
|
|
836
836
|
if (i)
|
|
@@ -846,10 +846,10 @@ y.parseExportSpecifiers = function(e) {
|
|
|
846
846
|
}
|
|
847
847
|
return t;
|
|
848
848
|
};
|
|
849
|
-
|
|
850
|
-
return this.next(), this.type === c.string ? (e.specifiers =
|
|
849
|
+
v.parseImport = function(e) {
|
|
850
|
+
return this.next(), this.type === c.string ? (e.specifiers = er, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === c.string ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
|
|
851
851
|
};
|
|
852
|
-
|
|
852
|
+
v.parseImportSpecifiers = function() {
|
|
853
853
|
var e = [], t = !0;
|
|
854
854
|
if (this.type === c.name) {
|
|
855
855
|
var i = this.startNode();
|
|
@@ -870,18 +870,18 @@ y.parseImportSpecifiers = function() {
|
|
|
870
870
|
}
|
|
871
871
|
return e;
|
|
872
872
|
};
|
|
873
|
-
|
|
873
|
+
v.parseModuleExportName = function() {
|
|
874
874
|
if (this.options.ecmaVersion >= 13 && this.type === c.string) {
|
|
875
875
|
var e = this.parseLiteral(this.value);
|
|
876
|
-
return
|
|
876
|
+
return Ki.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
|
|
877
877
|
}
|
|
878
878
|
return this.parseIdent(!0);
|
|
879
879
|
};
|
|
880
|
-
|
|
880
|
+
v.adaptDirectivePrologue = function(e) {
|
|
881
881
|
for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t)
|
|
882
882
|
e[t].directive = e[t].expression.raw.slice(1, -1);
|
|
883
883
|
};
|
|
884
|
-
|
|
884
|
+
v.isDirectiveCandidate = function(e) {
|
|
885
885
|
return this.options.ecmaVersion >= 5 && e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && (this.input[e.start] === '"' || this.input[e.start] === "'");
|
|
886
886
|
};
|
|
887
887
|
var q = T.prototype;
|
|
@@ -1397,7 +1397,7 @@ E.parseParenItem = function(e) {
|
|
|
1397
1397
|
E.parseParenArrowList = function(e, t, i, r) {
|
|
1398
1398
|
return this.parseArrowExpression(this.startNodeAt(e, t), i, !1, r);
|
|
1399
1399
|
};
|
|
1400
|
-
var
|
|
1400
|
+
var ir = [];
|
|
1401
1401
|
E.parseNew = function() {
|
|
1402
1402
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
1403
1403
|
var e = this.startNode(), t = this.parseIdent(!0);
|
|
@@ -1407,7 +1407,7 @@ E.parseNew = function() {
|
|
|
1407
1407
|
return e.property = this.parseIdent(!0), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), i && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
|
|
1408
1408
|
}
|
|
1409
1409
|
var r = this.start, n = this.startLoc, s = this.type === c._import;
|
|
1410
|
-
return e.callee = this.parseSubscripts(this.parseExprAtom(), r, n, !0, !1), s && e.callee.type === "ImportExpression" && this.raise(r, "Cannot use new with import()"), this.eat(c.parenL) ? e.arguments = this.parseExprList(c.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments =
|
|
1410
|
+
return e.callee = this.parseSubscripts(this.parseExprAtom(), r, n, !0, !1), s && e.callee.type === "ImportExpression" && this.raise(r, "Cannot use new with import()"), this.eat(c.parenL) ? e.arguments = this.parseExprList(c.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = ir, this.finishNode(e, "NewExpression");
|
|
1411
1411
|
};
|
|
1412
1412
|
E.parseTemplateElement = function(e) {
|
|
1413
1413
|
var t = e.isTagged, i = this.startNode();
|
|
@@ -1483,11 +1483,11 @@ E.initFunction = function(e) {
|
|
|
1483
1483
|
};
|
|
1484
1484
|
E.parseMethod = function(e, t, i) {
|
|
1485
1485
|
var r = this.startNode(), n = this.yieldPos, s = this.awaitPos, a = this.awaitIdentPos;
|
|
1486
|
-
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
1486
|
+
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ke(t, r.generator) | qe | (i ? Bt : 0)), this.expect(c.parenL), r.params = this.parseBindingList(c.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(r, !1, !0, !1), this.yieldPos = n, this.awaitPos = s, this.awaitIdentPos = a, this.finishNode(r, "FunctionExpression");
|
|
1487
1487
|
};
|
|
1488
1488
|
E.parseArrowExpression = function(e, t, i, r) {
|
|
1489
1489
|
var n = this.yieldPos, s = this.awaitPos, a = this.awaitIdentPos;
|
|
1490
|
-
return this.enterScope(
|
|
1490
|
+
return this.enterScope(Ke(i, !1) | Lt), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, r), this.yieldPos = n, this.awaitPos = s, this.awaitIdentPos = a, this.finishNode(e, "ArrowFunctionExpression");
|
|
1491
1491
|
};
|
|
1492
1492
|
E.parseFunctionBody = function(e, t, i, r) {
|
|
1493
1493
|
var n = t && this.type !== c.braceL, s = this.strict, a = !1;
|
|
@@ -1512,7 +1512,7 @@ E.isSimpleParamList = function(e) {
|
|
|
1512
1512
|
E.checkParams = function(e, t) {
|
|
1513
1513
|
for (var i = /* @__PURE__ */ Object.create(null), r = 0, n = e.params; r < n.length; r += 1) {
|
|
1514
1514
|
var s = n[r];
|
|
1515
|
-
this.checkLValInnerPattern(s,
|
|
1515
|
+
this.checkLValInnerPattern(s, Xe, t ? null : i);
|
|
1516
1516
|
}
|
|
1517
1517
|
};
|
|
1518
1518
|
E.parseExprList = function(e, t, i, r) {
|
|
@@ -1563,11 +1563,11 @@ _e.curPosition = function() {
|
|
|
1563
1563
|
if (this.options.locations)
|
|
1564
1564
|
return new fe(this.curLine, this.pos - this.lineStart);
|
|
1565
1565
|
};
|
|
1566
|
-
var ie = T.prototype,
|
|
1566
|
+
var ie = T.prototype, rr = function(t) {
|
|
1567
1567
|
this.flags = t, this.var = [], this.lexical = [], this.functions = [], this.inClassFieldInit = !1;
|
|
1568
1568
|
};
|
|
1569
1569
|
ie.enterScope = function(e) {
|
|
1570
|
-
this.scopeStack.push(new
|
|
1570
|
+
this.scopeStack.push(new rr(e));
|
|
1571
1571
|
};
|
|
1572
1572
|
ie.exitScope = function() {
|
|
1573
1573
|
this.scopeStack.pop();
|
|
@@ -1593,7 +1593,7 @@ ie.declareName = function(e, t, i) {
|
|
|
1593
1593
|
r = !0;
|
|
1594
1594
|
break;
|
|
1595
1595
|
}
|
|
1596
|
-
if (l.var.push(e), this.inModule && l.flags & de && delete this.undefinedExports[e], l.flags &
|
|
1596
|
+
if (l.var.push(e), this.inModule && l.flags & de && delete this.undefinedExports[e], l.flags & ze)
|
|
1597
1597
|
break;
|
|
1598
1598
|
}
|
|
1599
1599
|
r && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
|
|
@@ -1607,71 +1607,71 @@ ie.currentScope = function() {
|
|
|
1607
1607
|
ie.currentVarScope = function() {
|
|
1608
1608
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
1609
1609
|
var t = this.scopeStack[e];
|
|
1610
|
-
if (t.flags &
|
|
1610
|
+
if (t.flags & ze)
|
|
1611
1611
|
return t;
|
|
1612
1612
|
}
|
|
1613
1613
|
};
|
|
1614
1614
|
ie.currentThisScope = function() {
|
|
1615
1615
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
1616
1616
|
var t = this.scopeStack[e];
|
|
1617
|
-
if (t.flags &
|
|
1617
|
+
if (t.flags & ze && !(t.flags & Lt))
|
|
1618
1618
|
return t;
|
|
1619
1619
|
}
|
|
1620
1620
|
};
|
|
1621
1621
|
var Pe = function(t, i, r) {
|
|
1622
1622
|
this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new ke(t, r)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
|
|
1623
|
-
},
|
|
1624
|
-
|
|
1623
|
+
}, ye = T.prototype;
|
|
1624
|
+
ye.startNode = function() {
|
|
1625
1625
|
return new Pe(this, this.start, this.startLoc);
|
|
1626
1626
|
};
|
|
1627
|
-
|
|
1627
|
+
ye.startNodeAt = function(e, t) {
|
|
1628
1628
|
return new Pe(this, e, t);
|
|
1629
1629
|
};
|
|
1630
1630
|
function jt(e, t, i, r) {
|
|
1631
1631
|
return e.type = t, e.end = i, this.options.locations && (e.loc.end = r), this.options.ranges && (e.range[1] = i), e;
|
|
1632
1632
|
}
|
|
1633
|
-
|
|
1633
|
+
ye.finishNode = function(e, t) {
|
|
1634
1634
|
return jt.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
1635
1635
|
};
|
|
1636
|
-
|
|
1636
|
+
ye.finishNodeAt = function(e, t, i, r) {
|
|
1637
1637
|
return jt.call(this, e, t, i, r);
|
|
1638
1638
|
};
|
|
1639
|
-
|
|
1639
|
+
ye.copyNode = function(e) {
|
|
1640
1640
|
var t = new Pe(this, e.start, this.startLoc);
|
|
1641
1641
|
for (var i in e)
|
|
1642
1642
|
t[i] = e[i];
|
|
1643
1643
|
return t;
|
|
1644
1644
|
};
|
|
1645
|
-
var Gt = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Wt = Gt + " Extended_Pictographic", Ht = Wt, Yt = Ht + " EBase EComp EMod EPres ExtPict", qt = Yt,
|
|
1645
|
+
var Gt = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Wt = Gt + " Extended_Pictographic", Ht = Wt, Yt = Ht + " EBase EComp EMod EPres ExtPict", qt = Yt, nr = qt, sr = {
|
|
1646
1646
|
9: Gt,
|
|
1647
1647
|
10: Wt,
|
|
1648
1648
|
11: Ht,
|
|
1649
1649
|
12: Yt,
|
|
1650
1650
|
13: qt,
|
|
1651
|
-
14:
|
|
1652
|
-
},
|
|
1651
|
+
14: nr
|
|
1652
|
+
}, ct = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", zt = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Kt = zt + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Xt = Kt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Jt = Xt + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Qt = Jt + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", ar = Qt + " Kawi Nag_Mundari Nagm", or = {
|
|
1653
1653
|
9: zt,
|
|
1654
1654
|
10: Kt,
|
|
1655
1655
|
11: Xt,
|
|
1656
1656
|
12: Jt,
|
|
1657
1657
|
13: Qt,
|
|
1658
|
-
14:
|
|
1658
|
+
14: ar
|
|
1659
1659
|
}, Zt = {};
|
|
1660
|
-
function
|
|
1660
|
+
function ur(e) {
|
|
1661
1661
|
var t = Zt[e] = {
|
|
1662
|
-
binary: re(
|
|
1662
|
+
binary: re(sr[e] + " " + ct),
|
|
1663
1663
|
nonBinary: {
|
|
1664
|
-
General_Category: re(
|
|
1665
|
-
Script: re(
|
|
1664
|
+
General_Category: re(ct),
|
|
1665
|
+
Script: re(or[e])
|
|
1666
1666
|
}
|
|
1667
1667
|
};
|
|
1668
1668
|
t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
|
|
1669
1669
|
}
|
|
1670
|
-
for (var Le = 0,
|
|
1671
|
-
var
|
|
1672
|
-
|
|
1670
|
+
for (var Le = 0, lt = [9, 10, 11, 12, 13, 14]; Le < lt.length; Le += 1) {
|
|
1671
|
+
var cr = lt[Le];
|
|
1672
|
+
ur(cr);
|
|
1673
1673
|
}
|
|
1674
|
-
var
|
|
1674
|
+
var y = T.prototype, ee = function(t) {
|
|
1675
1675
|
this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : ""), this.unicodeProperties = Zt[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = [], this.backReferenceNames = [];
|
|
1676
1676
|
};
|
|
1677
1677
|
ee.prototype.reset = function(t, i, r) {
|
|
@@ -1712,35 +1712,35 @@ ee.prototype.advance = function(t) {
|
|
|
1712
1712
|
ee.prototype.eat = function(t, i) {
|
|
1713
1713
|
return i === void 0 && (i = !1), this.current(i) === t ? (this.advance(i), !0) : !1;
|
|
1714
1714
|
};
|
|
1715
|
-
|
|
1715
|
+
y.validateRegExpFlags = function(e) {
|
|
1716
1716
|
for (var t = e.validFlags, i = e.flags, r = 0; r < i.length; r++) {
|
|
1717
1717
|
var n = i.charAt(r);
|
|
1718
1718
|
t.indexOf(n) === -1 && this.raise(e.start, "Invalid regular expression flag"), i.indexOf(n, r + 1) > -1 && this.raise(e.start, "Duplicate regular expression flag");
|
|
1719
1719
|
}
|
|
1720
1720
|
};
|
|
1721
|
-
|
|
1721
|
+
y.validateRegExpPattern = function(e) {
|
|
1722
1722
|
this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && e.groupNames.length > 0 && (e.switchN = !0, this.regexp_pattern(e));
|
|
1723
1723
|
};
|
|
1724
|
-
|
|
1724
|
+
y.regexp_pattern = function(e) {
|
|
1725
1725
|
e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames.length = 0, e.backReferenceNames.length = 0, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(41) && e.raise("Unmatched ')'"), (e.eat(93) || e.eat(125)) && e.raise("Lone quantifier brackets")), e.maxBackReference > e.numCapturingParens && e.raise("Invalid escape");
|
|
1726
1726
|
for (var t = 0, i = e.backReferenceNames; t < i.length; t += 1) {
|
|
1727
1727
|
var r = i[t];
|
|
1728
1728
|
e.groupNames.indexOf(r) === -1 && e.raise("Invalid named capture referenced");
|
|
1729
1729
|
}
|
|
1730
1730
|
};
|
|
1731
|
-
|
|
1731
|
+
y.regexp_disjunction = function(e) {
|
|
1732
1732
|
for (this.regexp_alternative(e); e.eat(124); )
|
|
1733
1733
|
this.regexp_alternative(e);
|
|
1734
1734
|
this.regexp_eatQuantifier(e, !0) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets");
|
|
1735
1735
|
};
|
|
1736
|
-
|
|
1736
|
+
y.regexp_alternative = function(e) {
|
|
1737
1737
|
for (; e.pos < e.source.length && this.regexp_eatTerm(e); )
|
|
1738
1738
|
;
|
|
1739
1739
|
};
|
|
1740
|
-
|
|
1740
|
+
y.regexp_eatTerm = function(e) {
|
|
1741
1741
|
return this.regexp_eatAssertion(e) ? (e.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(e) && e.switchU && e.raise("Invalid quantifier"), !0) : (e.switchU ? this.regexp_eatAtom(e) : this.regexp_eatExtendedAtom(e)) ? (this.regexp_eatQuantifier(e), !0) : !1;
|
|
1742
1742
|
};
|
|
1743
|
-
|
|
1743
|
+
y.regexp_eatAssertion = function(e) {
|
|
1744
1744
|
var t = e.pos;
|
|
1745
1745
|
if (e.lastAssertionIsQuantifiable = !1, e.eat(94) || e.eat(36))
|
|
1746
1746
|
return !0;
|
|
@@ -1756,13 +1756,13 @@ v.regexp_eatAssertion = function(e) {
|
|
|
1756
1756
|
}
|
|
1757
1757
|
return e.pos = t, !1;
|
|
1758
1758
|
};
|
|
1759
|
-
|
|
1759
|
+
y.regexp_eatQuantifier = function(e, t) {
|
|
1760
1760
|
return t === void 0 && (t = !1), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(63), !0) : !1;
|
|
1761
1761
|
};
|
|
1762
|
-
|
|
1762
|
+
y.regexp_eatQuantifierPrefix = function(e, t) {
|
|
1763
1763
|
return e.eat(42) || e.eat(43) || e.eat(63) || this.regexp_eatBracedQuantifier(e, t);
|
|
1764
1764
|
};
|
|
1765
|
-
|
|
1765
|
+
y.regexp_eatBracedQuantifier = function(e, t) {
|
|
1766
1766
|
var i = e.pos;
|
|
1767
1767
|
if (e.eat(123)) {
|
|
1768
1768
|
var r = 0, n = -1;
|
|
@@ -1772,10 +1772,10 @@ v.regexp_eatBracedQuantifier = function(e, t) {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
return !1;
|
|
1774
1774
|
};
|
|
1775
|
-
|
|
1775
|
+
y.regexp_eatAtom = function(e) {
|
|
1776
1776
|
return this.regexp_eatPatternCharacters(e) || e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e);
|
|
1777
1777
|
};
|
|
1778
|
-
|
|
1778
|
+
y.regexp_eatReverseSolidusAtomEscape = function(e) {
|
|
1779
1779
|
var t = e.pos;
|
|
1780
1780
|
if (e.eat(92)) {
|
|
1781
1781
|
if (this.regexp_eatAtomEscape(e))
|
|
@@ -1784,7 +1784,7 @@ v.regexp_eatReverseSolidusAtomEscape = function(e) {
|
|
|
1784
1784
|
}
|
|
1785
1785
|
return !1;
|
|
1786
1786
|
};
|
|
1787
|
-
|
|
1787
|
+
y.regexp_eatUncapturingGroup = function(e) {
|
|
1788
1788
|
var t = e.pos;
|
|
1789
1789
|
if (e.eat(40)) {
|
|
1790
1790
|
if (e.eat(63) && e.eat(58)) {
|
|
@@ -1796,7 +1796,7 @@ v.regexp_eatUncapturingGroup = function(e) {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
return !1;
|
|
1798
1798
|
};
|
|
1799
|
-
|
|
1799
|
+
y.regexp_eatCapturingGroup = function(e) {
|
|
1800
1800
|
if (e.eat(40)) {
|
|
1801
1801
|
if (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(e) : e.current() === 63 && e.raise("Invalid group"), this.regexp_disjunction(e), e.eat(41))
|
|
1802
1802
|
return e.numCapturingParens += 1, !0;
|
|
@@ -1804,29 +1804,29 @@ v.regexp_eatCapturingGroup = function(e) {
|
|
|
1804
1804
|
}
|
|
1805
1805
|
return !1;
|
|
1806
1806
|
};
|
|
1807
|
-
|
|
1807
|
+
y.regexp_eatExtendedAtom = function(e) {
|
|
1808
1808
|
return e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e) || this.regexp_eatInvalidBracedQuantifier(e) || this.regexp_eatExtendedPatternCharacter(e);
|
|
1809
1809
|
};
|
|
1810
|
-
|
|
1810
|
+
y.regexp_eatInvalidBracedQuantifier = function(e) {
|
|
1811
1811
|
return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
|
|
1812
1812
|
};
|
|
1813
|
-
|
|
1813
|
+
y.regexp_eatSyntaxCharacter = function(e) {
|
|
1814
1814
|
var t = e.current();
|
|
1815
1815
|
return ei(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
1816
1816
|
};
|
|
1817
1817
|
function ei(e) {
|
|
1818
1818
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
1819
1819
|
}
|
|
1820
|
-
|
|
1820
|
+
y.regexp_eatPatternCharacters = function(e) {
|
|
1821
1821
|
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !ei(i); )
|
|
1822
1822
|
e.advance();
|
|
1823
1823
|
return e.pos !== t;
|
|
1824
1824
|
};
|
|
1825
|
-
|
|
1825
|
+
y.regexp_eatExtendedPatternCharacter = function(e) {
|
|
1826
1826
|
var t = e.current();
|
|
1827
1827
|
return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), !0) : !1;
|
|
1828
1828
|
};
|
|
1829
|
-
|
|
1829
|
+
y.regexp_groupSpecifier = function(e) {
|
|
1830
1830
|
if (e.eat(63)) {
|
|
1831
1831
|
if (this.regexp_eatGroupName(e)) {
|
|
1832
1832
|
e.groupNames.indexOf(e.lastStringValue) !== -1 && e.raise("Duplicate capture group name"), e.groupNames.push(e.lastStringValue);
|
|
@@ -1835,7 +1835,7 @@ v.regexp_groupSpecifier = function(e) {
|
|
|
1835
1835
|
e.raise("Invalid group");
|
|
1836
1836
|
}
|
|
1837
1837
|
};
|
|
1838
|
-
|
|
1838
|
+
y.regexp_eatGroupName = function(e) {
|
|
1839
1839
|
if (e.lastStringValue = "", e.eat(60)) {
|
|
1840
1840
|
if (this.regexp_eatRegExpIdentifierName(e) && e.eat(62))
|
|
1841
1841
|
return !0;
|
|
@@ -1843,7 +1843,7 @@ v.regexp_eatGroupName = function(e) {
|
|
|
1843
1843
|
}
|
|
1844
1844
|
return !1;
|
|
1845
1845
|
};
|
|
1846
|
-
|
|
1846
|
+
y.regexp_eatRegExpIdentifierName = function(e) {
|
|
1847
1847
|
if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
|
|
1848
1848
|
for (e.lastStringValue += te(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); )
|
|
1849
1849
|
e.lastStringValue += te(e.lastIntValue);
|
|
@@ -1851,24 +1851,24 @@ v.regexp_eatRegExpIdentifierName = function(e) {
|
|
|
1851
1851
|
}
|
|
1852
1852
|
return !1;
|
|
1853
1853
|
};
|
|
1854
|
-
|
|
1854
|
+
y.regexp_eatRegExpIdentifierStart = function(e) {
|
|
1855
1855
|
var t = e.pos, i = this.options.ecmaVersion >= 11, r = e.current(i);
|
|
1856
|
-
return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue),
|
|
1856
|
+
return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue), lr(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
|
|
1857
1857
|
};
|
|
1858
|
-
function
|
|
1858
|
+
function lr(e) {
|
|
1859
1859
|
return Q(e, !0) || e === 36 || e === 95;
|
|
1860
1860
|
}
|
|
1861
|
-
|
|
1861
|
+
y.regexp_eatRegExpIdentifierPart = function(e) {
|
|
1862
1862
|
var t = e.pos, i = this.options.ecmaVersion >= 11, r = e.current(i);
|
|
1863
|
-
return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue),
|
|
1863
|
+
return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue), hr(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
|
|
1864
1864
|
};
|
|
1865
|
-
function
|
|
1865
|
+
function hr(e) {
|
|
1866
1866
|
return oe(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
1867
1867
|
}
|
|
1868
|
-
|
|
1868
|
+
y.regexp_eatAtomEscape = function(e) {
|
|
1869
1869
|
return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
|
|
1870
1870
|
};
|
|
1871
|
-
|
|
1871
|
+
y.regexp_eatBackReference = function(e) {
|
|
1872
1872
|
var t = e.pos;
|
|
1873
1873
|
if (this.regexp_eatDecimalEscape(e)) {
|
|
1874
1874
|
var i = e.lastIntValue;
|
|
@@ -1880,7 +1880,7 @@ v.regexp_eatBackReference = function(e) {
|
|
|
1880
1880
|
}
|
|
1881
1881
|
return !1;
|
|
1882
1882
|
};
|
|
1883
|
-
|
|
1883
|
+
y.regexp_eatKGroupName = function(e) {
|
|
1884
1884
|
if (e.eat(107)) {
|
|
1885
1885
|
if (this.regexp_eatGroupName(e))
|
|
1886
1886
|
return e.backReferenceNames.push(e.lastStringValue), !0;
|
|
@@ -1888,10 +1888,10 @@ v.regexp_eatKGroupName = function(e) {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
return !1;
|
|
1890
1890
|
};
|
|
1891
|
-
|
|
1891
|
+
y.regexp_eatCharacterEscape = function(e) {
|
|
1892
1892
|
return this.regexp_eatControlEscape(e) || this.regexp_eatCControlLetter(e) || this.regexp_eatZero(e) || this.regexp_eatHexEscapeSequence(e) || this.regexp_eatRegExpUnicodeEscapeSequence(e, !1) || !e.switchU && this.regexp_eatLegacyOctalEscapeSequence(e) || this.regexp_eatIdentityEscape(e);
|
|
1893
1893
|
};
|
|
1894
|
-
|
|
1894
|
+
y.regexp_eatCControlLetter = function(e) {
|
|
1895
1895
|
var t = e.pos;
|
|
1896
1896
|
if (e.eat(99)) {
|
|
1897
1897
|
if (this.regexp_eatControlLetter(e))
|
|
@@ -1900,21 +1900,21 @@ v.regexp_eatCControlLetter = function(e) {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
return !1;
|
|
1902
1902
|
};
|
|
1903
|
-
|
|
1903
|
+
y.regexp_eatZero = function(e) {
|
|
1904
1904
|
return e.current() === 48 && !Te(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
|
|
1905
1905
|
};
|
|
1906
|
-
|
|
1906
|
+
y.regexp_eatControlEscape = function(e) {
|
|
1907
1907
|
var t = e.current();
|
|
1908
1908
|
return t === 116 ? (e.lastIntValue = 9, e.advance(), !0) : t === 110 ? (e.lastIntValue = 10, e.advance(), !0) : t === 118 ? (e.lastIntValue = 11, e.advance(), !0) : t === 102 ? (e.lastIntValue = 12, e.advance(), !0) : t === 114 ? (e.lastIntValue = 13, e.advance(), !0) : !1;
|
|
1909
1909
|
};
|
|
1910
|
-
|
|
1910
|
+
y.regexp_eatControlLetter = function(e) {
|
|
1911
1911
|
var t = e.current();
|
|
1912
1912
|
return ti(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
1913
1913
|
};
|
|
1914
1914
|
function ti(e) {
|
|
1915
1915
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
1916
1916
|
}
|
|
1917
|
-
|
|
1917
|
+
y.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
1918
1918
|
t === void 0 && (t = !1);
|
|
1919
1919
|
var i = e.pos, r = t || e.switchU;
|
|
1920
1920
|
if (e.eat(117)) {
|
|
@@ -1931,22 +1931,22 @@ v.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
|
1931
1931
|
}
|
|
1932
1932
|
return !0;
|
|
1933
1933
|
}
|
|
1934
|
-
if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) &&
|
|
1934
|
+
if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && pr(e.lastIntValue))
|
|
1935
1935
|
return !0;
|
|
1936
1936
|
r && e.raise("Invalid unicode escape"), e.pos = i;
|
|
1937
1937
|
}
|
|
1938
1938
|
return !1;
|
|
1939
1939
|
};
|
|
1940
|
-
function
|
|
1940
|
+
function pr(e) {
|
|
1941
1941
|
return e >= 0 && e <= 1114111;
|
|
1942
1942
|
}
|
|
1943
|
-
|
|
1943
|
+
y.regexp_eatIdentityEscape = function(e) {
|
|
1944
1944
|
if (e.switchU)
|
|
1945
1945
|
return this.regexp_eatSyntaxCharacter(e) ? !0 : e.eat(47) ? (e.lastIntValue = 47, !0) : !1;
|
|
1946
1946
|
var t = e.current();
|
|
1947
1947
|
return t !== 99 && (!e.switchN || t !== 107) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
1948
1948
|
};
|
|
1949
|
-
|
|
1949
|
+
y.regexp_eatDecimalEscape = function(e) {
|
|
1950
1950
|
e.lastIntValue = 0;
|
|
1951
1951
|
var t = e.current();
|
|
1952
1952
|
if (t >= 49 && t <= 57) {
|
|
@@ -1957,9 +1957,9 @@ v.regexp_eatDecimalEscape = function(e) {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
return !1;
|
|
1959
1959
|
};
|
|
1960
|
-
|
|
1960
|
+
y.regexp_eatCharacterClassEscape = function(e) {
|
|
1961
1961
|
var t = e.current();
|
|
1962
|
-
if (
|
|
1962
|
+
if (fr(t))
|
|
1963
1963
|
return e.lastIntValue = -1, e.advance(), !0;
|
|
1964
1964
|
if (e.switchU && this.options.ecmaVersion >= 9 && (t === 80 || t === 112)) {
|
|
1965
1965
|
if (e.lastIntValue = -1, e.advance(), e.eat(123) && this.regexp_eatUnicodePropertyValueExpression(e) && e.eat(125))
|
|
@@ -1968,10 +1968,10 @@ v.regexp_eatCharacterClassEscape = function(e) {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
return !1;
|
|
1970
1970
|
};
|
|
1971
|
-
function
|
|
1971
|
+
function fr(e) {
|
|
1972
1972
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
1973
1973
|
}
|
|
1974
|
-
|
|
1974
|
+
y.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
1975
1975
|
var t = e.pos;
|
|
1976
1976
|
if (this.regexp_eatUnicodePropertyName(e) && e.eat(61)) {
|
|
1977
1977
|
var i = e.lastStringValue;
|
|
@@ -1986,13 +1986,13 @@ v.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
1986
1986
|
}
|
|
1987
1987
|
return !1;
|
|
1988
1988
|
};
|
|
1989
|
-
|
|
1989
|
+
y.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
|
|
1990
1990
|
me(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
|
|
1991
1991
|
};
|
|
1992
|
-
|
|
1992
|
+
y.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
1993
1993
|
e.unicodeProperties.binary.test(t) || e.raise("Invalid property name");
|
|
1994
1994
|
};
|
|
1995
|
-
|
|
1995
|
+
y.regexp_eatUnicodePropertyName = function(e) {
|
|
1996
1996
|
var t = 0;
|
|
1997
1997
|
for (e.lastStringValue = ""; ii(t = e.current()); )
|
|
1998
1998
|
e.lastStringValue += te(t), e.advance();
|
|
@@ -2001,19 +2001,19 @@ v.regexp_eatUnicodePropertyName = function(e) {
|
|
|
2001
2001
|
function ii(e) {
|
|
2002
2002
|
return ti(e) || e === 95;
|
|
2003
2003
|
}
|
|
2004
|
-
|
|
2004
|
+
y.regexp_eatUnicodePropertyValue = function(e) {
|
|
2005
2005
|
var t = 0;
|
|
2006
|
-
for (e.lastStringValue = "";
|
|
2006
|
+
for (e.lastStringValue = ""; dr(t = e.current()); )
|
|
2007
2007
|
e.lastStringValue += te(t), e.advance();
|
|
2008
2008
|
return e.lastStringValue !== "";
|
|
2009
2009
|
};
|
|
2010
|
-
function
|
|
2010
|
+
function dr(e) {
|
|
2011
2011
|
return ii(e) || Te(e);
|
|
2012
2012
|
}
|
|
2013
|
-
|
|
2013
|
+
y.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
2014
2014
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
2015
2015
|
};
|
|
2016
|
-
|
|
2016
|
+
y.regexp_eatCharacterClass = function(e) {
|
|
2017
2017
|
if (e.eat(91)) {
|
|
2018
2018
|
if (e.eat(94), this.regexp_classRanges(e), e.eat(93))
|
|
2019
2019
|
return !0;
|
|
@@ -2021,7 +2021,7 @@ v.regexp_eatCharacterClass = function(e) {
|
|
|
2021
2021
|
}
|
|
2022
2022
|
return !1;
|
|
2023
2023
|
};
|
|
2024
|
-
|
|
2024
|
+
y.regexp_classRanges = function(e) {
|
|
2025
2025
|
for (; this.regexp_eatClassAtom(e); ) {
|
|
2026
2026
|
var t = e.lastIntValue;
|
|
2027
2027
|
if (e.eat(45) && this.regexp_eatClassAtom(e)) {
|
|
@@ -2030,7 +2030,7 @@ v.regexp_classRanges = function(e) {
|
|
|
2030
2030
|
}
|
|
2031
2031
|
}
|
|
2032
2032
|
};
|
|
2033
|
-
|
|
2033
|
+
y.regexp_eatClassAtom = function(e) {
|
|
2034
2034
|
var t = e.pos;
|
|
2035
2035
|
if (e.eat(92)) {
|
|
2036
2036
|
if (this.regexp_eatClassEscape(e))
|
|
@@ -2044,7 +2044,7 @@ v.regexp_eatClassAtom = function(e) {
|
|
|
2044
2044
|
var r = e.current();
|
|
2045
2045
|
return r !== 93 ? (e.lastIntValue = r, e.advance(), !0) : !1;
|
|
2046
2046
|
};
|
|
2047
|
-
|
|
2047
|
+
y.regexp_eatClassEscape = function(e) {
|
|
2048
2048
|
var t = e.pos;
|
|
2049
2049
|
if (e.eat(98))
|
|
2050
2050
|
return e.lastIntValue = 8, !0;
|
|
@@ -2057,11 +2057,11 @@ v.regexp_eatClassEscape = function(e) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
|
|
2059
2059
|
};
|
|
2060
|
-
|
|
2060
|
+
y.regexp_eatClassControlLetter = function(e) {
|
|
2061
2061
|
var t = e.current();
|
|
2062
2062
|
return Te(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
2063
2063
|
};
|
|
2064
|
-
|
|
2064
|
+
y.regexp_eatHexEscapeSequence = function(e) {
|
|
2065
2065
|
var t = e.pos;
|
|
2066
2066
|
if (e.eat(120)) {
|
|
2067
2067
|
if (this.regexp_eatFixedHexDigits(e, 2))
|
|
@@ -2070,7 +2070,7 @@ v.regexp_eatHexEscapeSequence = function(e) {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
return !1;
|
|
2072
2072
|
};
|
|
2073
|
-
|
|
2073
|
+
y.regexp_eatDecimalDigits = function(e) {
|
|
2074
2074
|
var t = e.pos, i = 0;
|
|
2075
2075
|
for (e.lastIntValue = 0; Te(i = e.current()); )
|
|
2076
2076
|
e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
|
|
@@ -2079,7 +2079,7 @@ v.regexp_eatDecimalDigits = function(e) {
|
|
|
2079
2079
|
function Te(e) {
|
|
2080
2080
|
return e >= 48 && e <= 57;
|
|
2081
2081
|
}
|
|
2082
|
-
|
|
2082
|
+
y.regexp_eatHexDigits = function(e) {
|
|
2083
2083
|
var t = e.pos, i = 0;
|
|
2084
2084
|
for (e.lastIntValue = 0; ri(i = e.current()); )
|
|
2085
2085
|
e.lastIntValue = 16 * e.lastIntValue + ni(i), e.advance();
|
|
@@ -2091,7 +2091,7 @@ function ri(e) {
|
|
|
2091
2091
|
function ni(e) {
|
|
2092
2092
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
2093
2093
|
}
|
|
2094
|
-
|
|
2094
|
+
y.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
2095
2095
|
if (this.regexp_eatOctalDigit(e)) {
|
|
2096
2096
|
var t = e.lastIntValue;
|
|
2097
2097
|
if (this.regexp_eatOctalDigit(e)) {
|
|
@@ -2103,14 +2103,14 @@ v.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
return !1;
|
|
2105
2105
|
};
|
|
2106
|
-
|
|
2106
|
+
y.regexp_eatOctalDigit = function(e) {
|
|
2107
2107
|
var t = e.current();
|
|
2108
2108
|
return si(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
2109
2109
|
};
|
|
2110
2110
|
function si(e) {
|
|
2111
2111
|
return e >= 48 && e <= 55;
|
|
2112
2112
|
}
|
|
2113
|
-
|
|
2113
|
+
y.regexp_eatFixedHexDigits = function(e, t) {
|
|
2114
2114
|
var i = e.pos;
|
|
2115
2115
|
e.lastIntValue = 0;
|
|
2116
2116
|
for (var r = 0; r < t; ++r) {
|
|
@@ -2121,14 +2121,14 @@ v.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
return !0;
|
|
2123
2123
|
};
|
|
2124
|
-
var
|
|
2124
|
+
var Qe = function(t) {
|
|
2125
2125
|
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new ke(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
|
|
2126
2126
|
}, x = T.prototype;
|
|
2127
2127
|
x.next = function(e) {
|
|
2128
|
-
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new
|
|
2128
|
+
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Qe(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
2129
2129
|
};
|
|
2130
2130
|
x.getToken = function() {
|
|
2131
|
-
return this.next(), new
|
|
2131
|
+
return this.next(), new Qe(this);
|
|
2132
2132
|
};
|
|
2133
2133
|
typeof Symbol < "u" && (x[Symbol.iterator] = function() {
|
|
2134
2134
|
var e = this;
|
|
@@ -2420,7 +2420,7 @@ x.readInt = function(e, t, i) {
|
|
|
2420
2420
|
}
|
|
2421
2421
|
return r && u === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === s || t != null && this.pos - s !== t ? null : a;
|
|
2422
2422
|
};
|
|
2423
|
-
function
|
|
2423
|
+
function mr(e, t) {
|
|
2424
2424
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
2425
2425
|
}
|
|
2426
2426
|
function ai(e) {
|
|
@@ -2443,7 +2443,7 @@ x.readNumber = function(e) {
|
|
|
2443
2443
|
return ++this.pos, Q(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(c.num, n);
|
|
2444
2444
|
}
|
|
2445
2445
|
i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), r === 46 && !i && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !i && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), Q(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
2446
|
-
var s =
|
|
2446
|
+
var s = mr(this.input.slice(t, this.pos), i);
|
|
2447
2447
|
return this.finishToken(c.num, s);
|
|
2448
2448
|
};
|
|
2449
2449
|
x.readCodePoint = function() {
|
|
@@ -2594,12 +2594,12 @@ x.readWord1 = function() {
|
|
|
2594
2594
|
};
|
|
2595
2595
|
x.readWord = function() {
|
|
2596
2596
|
var e = this.readWord1(), t = c.name;
|
|
2597
|
-
return this.keywords.test(e) && (t =
|
|
2597
|
+
return this.keywords.test(e) && (t = He[e]), this.finishToken(t, e);
|
|
2598
2598
|
};
|
|
2599
|
-
var
|
|
2599
|
+
var gr = "8.8.2";
|
|
2600
2600
|
T.acorn = {
|
|
2601
2601
|
Parser: T,
|
|
2602
|
-
version:
|
|
2602
|
+
version: gr,
|
|
2603
2603
|
defaultOptions: Me,
|
|
2604
2604
|
Position: fe,
|
|
2605
2605
|
SourceLocation: ke,
|
|
@@ -2607,18 +2607,18 @@ T.acorn = {
|
|
|
2607
2607
|
Node: Pe,
|
|
2608
2608
|
TokenType: R,
|
|
2609
2609
|
tokTypes: c,
|
|
2610
|
-
keywordTypes:
|
|
2610
|
+
keywordTypes: He,
|
|
2611
2611
|
TokContext: Y,
|
|
2612
2612
|
tokContexts: k,
|
|
2613
2613
|
isIdentifierChar: oe,
|
|
2614
2614
|
isIdentifierStart: Q,
|
|
2615
|
-
Token:
|
|
2615
|
+
Token: Qe,
|
|
2616
2616
|
isNewLine: ue,
|
|
2617
2617
|
lineBreak: H,
|
|
2618
|
-
lineBreakG:
|
|
2618
|
+
lineBreakG: Yi,
|
|
2619
2619
|
nonASCIIwhitespace: Tt
|
|
2620
2620
|
};
|
|
2621
|
-
function
|
|
2621
|
+
function yr(e, t) {
|
|
2622
2622
|
return T.parse(e, t);
|
|
2623
2623
|
}
|
|
2624
2624
|
/**
|
|
@@ -4523,8 +4523,8 @@ o.prototype.stepCallExpression = function(e, t, i) {
|
|
|
4523
4523
|
else {
|
|
4524
4524
|
try {
|
|
4525
4525
|
var g = this.parse_(String(d), "eval" + this.evalCodeNumber_++);
|
|
4526
|
-
} catch (
|
|
4527
|
-
this.throwException(this.SYNTAX_ERROR, "Invalid code: " +
|
|
4526
|
+
} catch (Oi) {
|
|
4527
|
+
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + Oi.message);
|
|
4528
4528
|
}
|
|
4529
4529
|
var m = this.newNode();
|
|
4530
4530
|
m.type = "EvalProgram_", m.body = g.body, o.stripLocations_(m, i.start, i.end);
|
|
@@ -4534,8 +4534,8 @@ o.prototype.stepCallExpression = function(e, t, i) {
|
|
|
4534
4534
|
} else if (n.nativeFunc)
|
|
4535
4535
|
t.scope.strict || (t.funcThis_ = this.boxThis_(t.funcThis_)), t.value = n.nativeFunc.apply(t.funcThis_, t.arguments_);
|
|
4536
4536
|
else if (n.asyncFunc) {
|
|
4537
|
-
var S = this, w = function(
|
|
4538
|
-
t.value =
|
|
4537
|
+
var S = this, w = function(Ti) {
|
|
4538
|
+
t.value = Ti, S.paused_ = !1;
|
|
4539
4539
|
}, I = n.asyncFunc.length - 1, B = t.arguments_.concat(new Array(I)).slice(0, I);
|
|
4540
4540
|
B.push(w), this.paused_ = !0, t.scope.strict || (t.funcThis_ = this.boxThis_(t.funcThis_)), n.asyncFunc.apply(t.funcThis_, B);
|
|
4541
4541
|
return;
|
|
@@ -4943,7 +4943,7 @@ o.prototype.getGlobalScope = o.prototype.getGlobalScope;
|
|
|
4943
4943
|
o.prototype.getStateStack = o.prototype.getStateStack;
|
|
4944
4944
|
o.prototype.setStateStack = o.prototype.setStateStack;
|
|
4945
4945
|
o.VALUE_IN_DESCRIPTOR = o.VALUE_IN_DESCRIPTOR;
|
|
4946
|
-
o.nativeGlobal.acornParse =
|
|
4946
|
+
o.nativeGlobal.acornParse = yr;
|
|
4947
4947
|
const vr = (e) => e.split(`
|
|
4948
4948
|
`).map((t) => {
|
|
4949
4949
|
const i = t.trim();
|
|
@@ -4957,7 +4957,7 @@ const vr = (e) => e.split(`
|
|
|
4957
4957
|
${u}
|
|
4958
4958
|
`;
|
|
4959
4959
|
}).filter(Boolean).join(`
|
|
4960
|
-
`),
|
|
4960
|
+
`), ht = (e) => e + "JSON", br = ({
|
|
4961
4961
|
builder: e,
|
|
4962
4962
|
context: t,
|
|
4963
4963
|
event: i,
|
|
@@ -4975,7 +4975,7 @@ const vr = (e) => e.split(`
|
|
|
4975
4975
|
builder: e,
|
|
4976
4976
|
context: t,
|
|
4977
4977
|
event: i
|
|
4978
|
-
}, h = Object.keys(l).map((m) => `var ${m} = JSON.parse(${
|
|
4978
|
+
}, h = Object.keys(l).map((m) => `var ${m} = JSON.parse(${ht(m)});`).join(`
|
|
4979
4979
|
`), p = vr(a);
|
|
4980
4980
|
if (p === "") {
|
|
4981
4981
|
D.warn("Skipping evaluation of empty code block.");
|
|
@@ -4994,7 +4994,7 @@ theFunction();
|
|
|
4994
4994
|
}, g = function(m, S) {
|
|
4995
4995
|
Object.keys(l).forEach((w) => {
|
|
4996
4996
|
const I = l[w] || {}, B = JSON.stringify(I);
|
|
4997
|
-
m.setProperty(S,
|
|
4997
|
+
m.setProperty(S, ht(w), B);
|
|
4998
4998
|
}), m.setProperty(S, "setRootState", m.createNativeFunction(d));
|
|
4999
4999
|
};
|
|
5000
5000
|
try {
|
|
@@ -5033,7 +5033,7 @@ function Re({
|
|
|
5033
5033
|
rootState: r,
|
|
5034
5034
|
localState: i
|
|
5035
5035
|
};
|
|
5036
|
-
return V() ? ui(p) :
|
|
5036
|
+
return V() ? ui(p) : Ui() ? br(p) : Er(p);
|
|
5037
5037
|
}
|
|
5038
5038
|
const ui = ({
|
|
5039
5039
|
useCode: e,
|
|
@@ -5044,7 +5044,7 @@ const ui = ({
|
|
|
5044
5044
|
rootSetState: s,
|
|
5045
5045
|
rootState: a
|
|
5046
5046
|
}) => {
|
|
5047
|
-
const u =
|
|
5047
|
+
const u = xr(a, n, s);
|
|
5048
5048
|
try {
|
|
5049
5049
|
return new Function("builder", "Builder", "state", "context", "event", e)(t, t, u, i, r);
|
|
5050
5050
|
} catch (l) {
|
|
@@ -5053,8 +5053,8 @@ const ui = ({
|
|
|
5053
5053
|
`, e, `
|
|
5054
5054
|
`, l);
|
|
5055
5055
|
}
|
|
5056
|
-
},
|
|
5057
|
-
function
|
|
5056
|
+
}, Er = (e) => ui(e);
|
|
5057
|
+
function xr(e, t, i) {
|
|
5058
5058
|
if (e === t)
|
|
5059
5059
|
throw new Error("rootState === localState");
|
|
5060
5060
|
return new Proxy(e, {
|
|
@@ -5066,7 +5066,7 @@ function Er(e, t, i) {
|
|
|
5066
5066
|
}
|
|
5067
5067
|
});
|
|
5068
5068
|
}
|
|
5069
|
-
const
|
|
5069
|
+
const Sr = ({
|
|
5070
5070
|
block: e,
|
|
5071
5071
|
context: t,
|
|
5072
5072
|
localState: i,
|
|
@@ -5096,7 +5096,7 @@ const xr = ({
|
|
|
5096
5096
|
}
|
|
5097
5097
|
return a;
|
|
5098
5098
|
};
|
|
5099
|
-
function
|
|
5099
|
+
function Ze({
|
|
5100
5100
|
block: e,
|
|
5101
5101
|
context: t,
|
|
5102
5102
|
shouldEvaluateBindings: i,
|
|
@@ -5105,7 +5105,7 @@ function Qe({
|
|
|
5105
5105
|
rootSetState: s
|
|
5106
5106
|
}) {
|
|
5107
5107
|
const a = e;
|
|
5108
|
-
return i ?
|
|
5108
|
+
return i ? Sr({
|
|
5109
5109
|
block: a,
|
|
5110
5110
|
localState: r,
|
|
5111
5111
|
rootState: n,
|
|
@@ -5113,17 +5113,17 @@ function Qe({
|
|
|
5113
5113
|
context: t
|
|
5114
5114
|
}) : a;
|
|
5115
5115
|
}
|
|
5116
|
-
const
|
|
5116
|
+
const _r = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), z = (e) => e != null, Rr = (e) => Object.entries(e).map(([i, r]) => {
|
|
5117
5117
|
if (typeof r == "string")
|
|
5118
|
-
return `${
|
|
5119
|
-
}).filter(z),
|
|
5118
|
+
return `${_r(i)}: ${r};`;
|
|
5119
|
+
}).filter(z), Cr = (e) => Rr(e).join(`
|
|
5120
5120
|
`), Ve = ({
|
|
5121
5121
|
mediaQuery: e,
|
|
5122
5122
|
className: t,
|
|
5123
5123
|
styles: i
|
|
5124
5124
|
}) => {
|
|
5125
5125
|
const r = `.${t} {
|
|
5126
|
-
${
|
|
5126
|
+
${Cr(i)}
|
|
5127
5127
|
}`;
|
|
5128
5128
|
return e ? `${e} {
|
|
5129
5129
|
${r}
|
|
@@ -5134,13 +5134,13 @@ const Sr = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
|
|
|
5134
5134
|
},
|
|
5135
5135
|
name: "inlined-styles",
|
|
5136
5136
|
props: ["styles", "id"]
|
|
5137
|
-
}),
|
|
5137
|
+
}), wr = N({
|
|
5138
5138
|
name: "block-styles",
|
|
5139
5139
|
components: { InlinedStyles: Oe },
|
|
5140
5140
|
props: ["block", "context"],
|
|
5141
5141
|
data() {
|
|
5142
5142
|
return {
|
|
5143
|
-
processedBlock:
|
|
5143
|
+
processedBlock: Ze({
|
|
5144
5144
|
block: this.block,
|
|
5145
5145
|
localState: this.context.localState,
|
|
5146
5146
|
rootState: this.context.rootState,
|
|
@@ -5168,14 +5168,14 @@ const Sr = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
|
|
|
5168
5168
|
}) : "", l = n ? Ve({
|
|
5169
5169
|
className: a,
|
|
5170
5170
|
styles: n,
|
|
5171
|
-
mediaQuery:
|
|
5171
|
+
mediaQuery: at(
|
|
5172
5172
|
"medium",
|
|
5173
5173
|
i
|
|
5174
5174
|
)
|
|
5175
5175
|
}) : "", h = s ? Ve({
|
|
5176
5176
|
className: a,
|
|
5177
5177
|
styles: s,
|
|
5178
|
-
mediaQuery:
|
|
5178
|
+
mediaQuery: at(
|
|
5179
5179
|
"small",
|
|
5180
5180
|
i
|
|
5181
5181
|
)
|
|
@@ -5184,18 +5184,18 @@ const Sr = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
|
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
5186
|
});
|
|
5187
|
-
function
|
|
5187
|
+
function kr(e, t, i, r, n, s) {
|
|
5188
5188
|
const a = P("inlined-styles");
|
|
5189
5189
|
return e.TARGET !== "reactNative" && e.css && e.canShowBlock ? (b(), A(a, {
|
|
5190
5190
|
key: 0,
|
|
5191
5191
|
styles: e.css
|
|
5192
5192
|
}, null, 8, ["styles"])) : L("", !0);
|
|
5193
5193
|
}
|
|
5194
|
-
const ci = /* @__PURE__ */ O(
|
|
5194
|
+
const ci = /* @__PURE__ */ O(wr, [["render", kr]]), Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5195
5195
|
__proto__: null,
|
|
5196
5196
|
default: ci
|
|
5197
5197
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5198
|
-
function
|
|
5198
|
+
function Pr(e) {
|
|
5199
5199
|
var t;
|
|
5200
5200
|
return {
|
|
5201
5201
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -5203,13 +5203,13 @@ function Nr(e) {
|
|
|
5203
5203
|
builderBlock: e
|
|
5204
5204
|
};
|
|
5205
5205
|
}
|
|
5206
|
-
const
|
|
5206
|
+
const Tr = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Or = (e) => typeof e == "string" && Tr.includes(e.toLowerCase()), Ir = ({
|
|
5207
5207
|
block: e,
|
|
5208
5208
|
context: t,
|
|
5209
5209
|
registeredComponents: i
|
|
5210
5210
|
}) => {
|
|
5211
5211
|
var s;
|
|
5212
|
-
const r = (s =
|
|
5212
|
+
const r = (s = Ze({
|
|
5213
5213
|
block: e,
|
|
5214
5214
|
localState: t.localState,
|
|
5215
5215
|
rootState: t.rootState,
|
|
@@ -5225,7 +5225,7 @@ const Pr = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
5225
5225
|
console.warn(`
|
|
5226
5226
|
Could not find a registered component named "${r}".
|
|
5227
5227
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
5228
|
-
},
|
|
5228
|
+
}, Ar = ({
|
|
5229
5229
|
block: e,
|
|
5230
5230
|
context: t
|
|
5231
5231
|
}) => {
|
|
@@ -5258,54 +5258,54 @@ const Pr = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
5258
5258
|
},
|
|
5259
5259
|
block: r
|
|
5260
5260
|
}));
|
|
5261
|
-
},
|
|
5261
|
+
}, Lr = () => Promise.resolve().then(() => Nr).then((e) => e.default).catch((e) => {
|
|
5262
5262
|
throw console.error(
|
|
5263
5263
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
5264
5264
|
e
|
|
5265
5265
|
), e;
|
|
5266
|
-
}),
|
|
5266
|
+
}), Vr = () => import("./repeated-block.11b2de7c.js").then((e) => e.default).catch((e) => {
|
|
5267
5267
|
throw console.error(
|
|
5268
5268
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
5269
5269
|
e
|
|
5270
5270
|
), e;
|
|
5271
|
-
}),
|
|
5271
|
+
}), Br = () => import("./component-ref.72eb813f.js").then((e) => e.default).catch((e) => {
|
|
5272
5272
|
throw console.error(
|
|
5273
5273
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
5274
5274
|
e
|
|
5275
5275
|
), e;
|
|
5276
|
-
}),
|
|
5276
|
+
}), Fr = () => import("./block-wrapper.fa25d8d3.js").then((e) => e.default).catch((e) => {
|
|
5277
5277
|
throw console.error(
|
|
5278
5278
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
5279
5279
|
e
|
|
5280
5280
|
), e;
|
|
5281
|
-
}),
|
|
5281
|
+
}), Mr = N({
|
|
5282
5282
|
name: "block",
|
|
5283
5283
|
components: {
|
|
5284
|
-
ComponentRef:
|
|
5285
|
-
BlockWrapper:
|
|
5286
|
-
RepeatedBlock:
|
|
5287
|
-
BlockStyles:
|
|
5284
|
+
ComponentRef: ve(Br),
|
|
5285
|
+
BlockWrapper: ve(Fr),
|
|
5286
|
+
RepeatedBlock: ve(Vr),
|
|
5287
|
+
BlockStyles: ve(Lr)
|
|
5288
5288
|
},
|
|
5289
5289
|
props: ["block", "context", "registeredComponents"],
|
|
5290
5290
|
data() {
|
|
5291
|
-
return { childrenContext: this.context, isEmptyHtmlElement:
|
|
5291
|
+
return { childrenContext: this.context, isEmptyHtmlElement: Or };
|
|
5292
5292
|
},
|
|
5293
5293
|
computed: {
|
|
5294
5294
|
blockComponent() {
|
|
5295
|
-
return
|
|
5295
|
+
return Ir({
|
|
5296
5296
|
block: this.block,
|
|
5297
5297
|
context: this.context,
|
|
5298
5298
|
registeredComponents: this.registeredComponents
|
|
5299
5299
|
});
|
|
5300
5300
|
},
|
|
5301
5301
|
repeatItem() {
|
|
5302
|
-
return
|
|
5302
|
+
return Ar({
|
|
5303
5303
|
block: this.block,
|
|
5304
5304
|
context: this.context
|
|
5305
5305
|
});
|
|
5306
5306
|
},
|
|
5307
5307
|
processedBlock() {
|
|
5308
|
-
return this.repeatItem ? this.block :
|
|
5308
|
+
return this.repeatItem ? this.block : Ze({
|
|
5309
5309
|
block: this.block,
|
|
5310
5310
|
localState: this.context.localState,
|
|
5311
5311
|
rootState: this.context.rootState,
|
|
@@ -5330,7 +5330,7 @@ const Pr = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
5330
5330
|
blockChildren: (e = this.processedBlock.children) != null ? e : [],
|
|
5331
5331
|
componentRef: (t = this.blockComponent) == null ? void 0 : t.component,
|
|
5332
5332
|
componentOptions: {
|
|
5333
|
-
...
|
|
5333
|
+
...Pr(this.processedBlock),
|
|
5334
5334
|
builderContext: this.context,
|
|
5335
5335
|
...((i = this.blockComponent) == null ? void 0 : i.name) === "Symbol" || ((r = this.blockComponent) == null ? void 0 : r.name) === "Columns" ? {
|
|
5336
5336
|
builderComponents: this.registeredComponents
|
|
@@ -5345,11 +5345,11 @@ const Pr = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
5345
5345
|
}
|
|
5346
5346
|
}
|
|
5347
5347
|
});
|
|
5348
|
-
function
|
|
5348
|
+
function Ur(e, t, i, r, n, s) {
|
|
5349
5349
|
var f;
|
|
5350
5350
|
const a = P("block-wrapper"), u = P("repeated-block"), l = P("component-ref"), h = P("block", !0), p = P("block-styles");
|
|
5351
5351
|
return e.canShowBlock ? (b(), C(W, { key: 0 }, [
|
|
5352
|
-
(f = e.blockComponent) != null && f.noWrap ? (b(), A(l,
|
|
5352
|
+
(f = e.blockComponent) != null && f.noWrap ? (b(), A(l, rt(U({ key: 1 }, e.componentRefProps)), null, 16)) : (b(), C(W, { key: 0 }, [
|
|
5353
5353
|
e.isEmptyHtmlElement(e.Tag) ? (b(), A(a, {
|
|
5354
5354
|
key: 0,
|
|
5355
5355
|
Wrapper: e.Tag,
|
|
@@ -5370,8 +5370,8 @@ function Mr(e, t, i, r, n, s) {
|
|
|
5370
5370
|
context: e.context,
|
|
5371
5371
|
hasChildren: !0
|
|
5372
5372
|
}, {
|
|
5373
|
-
default:
|
|
5374
|
-
se(l,
|
|
5373
|
+
default: We(() => [
|
|
5374
|
+
se(l, rt(Ii(e.componentRefProps)), null, 16),
|
|
5375
5375
|
(b(!0), C(W, null, ne(e.childrenWithoutParentComponent, (d, g) => (b(), A(h, {
|
|
5376
5376
|
key: "block-" + d.id,
|
|
5377
5377
|
block: d,
|
|
@@ -5389,10 +5389,10 @@ function Mr(e, t, i, r, n, s) {
|
|
|
5389
5389
|
], 64))
|
|
5390
5390
|
], 64)) : L("", !0);
|
|
5391
5391
|
}
|
|
5392
|
-
const li = /* @__PURE__ */ O(
|
|
5392
|
+
const li = /* @__PURE__ */ O(Mr, [["render", Ur]]), ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5393
5393
|
__proto__: null,
|
|
5394
5394
|
default: li
|
|
5395
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5395
|
+
}, Symbol.toStringTag, { value: "Module" })), Dr = N({
|
|
5396
5396
|
name: "builder-blocks-wrapper",
|
|
5397
5397
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
5398
5398
|
computed: {
|
|
@@ -5439,10 +5439,10 @@ const li = /* @__PURE__ */ O(Fr, [["render", Mr]]), fa = /* @__PURE__ */ Object.
|
|
|
5439
5439
|
}
|
|
5440
5440
|
}
|
|
5441
5441
|
});
|
|
5442
|
-
const
|
|
5443
|
-
function
|
|
5442
|
+
const $r = ["builder-path", "builder-parent-id"];
|
|
5443
|
+
function jr(e, t, i, r, n, s) {
|
|
5444
5444
|
return b(), C("div", U({
|
|
5445
|
-
class: e._classStringToObject(e.className + " div-
|
|
5445
|
+
class: e._classStringToObject(e.className + " div-3r2aeezxrt8"),
|
|
5446
5446
|
"builder-path": e.path,
|
|
5447
5447
|
"builder-parent-id": e.parent,
|
|
5448
5448
|
style: e.styleProp,
|
|
@@ -5451,12 +5451,29 @@ function $r(e, t, i, r, n, s) {
|
|
|
5451
5451
|
onKeypress: t[2] || (t[2] = (a) => e.onClick())
|
|
5452
5452
|
}, {}), [
|
|
5453
5453
|
ae(e.$slots, "default", {}, void 0, !0)
|
|
5454
|
-
], 16,
|
|
5454
|
+
], 16, $r);
|
|
5455
5455
|
}
|
|
5456
|
-
const
|
|
5456
|
+
const Gr = /* @__PURE__ */ O(Dr, [["render", jr], ["__scopeId", "data-v-e3cb0645"]]), Wr = Symbol(), De = {
|
|
5457
|
+
Builder: {
|
|
5458
|
+
content: null,
|
|
5459
|
+
context: {},
|
|
5460
|
+
localState: void 0,
|
|
5461
|
+
rootSetState() {
|
|
5462
|
+
},
|
|
5463
|
+
rootState: {},
|
|
5464
|
+
apiKey: null,
|
|
5465
|
+
apiVersion: void 0,
|
|
5466
|
+
componentInfos: {},
|
|
5467
|
+
inheritedStyles: {}
|
|
5468
|
+
},
|
|
5469
|
+
key: Wr
|
|
5470
|
+
}, Hr = Symbol(), hi = {
|
|
5471
|
+
Components: { registeredComponents: {} },
|
|
5472
|
+
key: Hr
|
|
5473
|
+
}, Yr = N({
|
|
5457
5474
|
name: "builder-blocks",
|
|
5458
5475
|
components: {
|
|
5459
|
-
BlocksWrapper:
|
|
5476
|
+
BlocksWrapper: Gr,
|
|
5460
5477
|
Block: li,
|
|
5461
5478
|
BlockStyles: ci
|
|
5462
5479
|
},
|
|
@@ -5467,9 +5484,13 @@ const jr = /* @__PURE__ */ O(Ur, [["render", $r], ["__scopeId", "data-v-ac4c9020
|
|
|
5467
5484
|
"styleProp",
|
|
5468
5485
|
"context",
|
|
5469
5486
|
"registeredComponents"
|
|
5470
|
-
]
|
|
5487
|
+
],
|
|
5488
|
+
inject: {
|
|
5489
|
+
builderContext: De.key,
|
|
5490
|
+
componentsContext: hi.key
|
|
5491
|
+
}
|
|
5471
5492
|
});
|
|
5472
|
-
function
|
|
5493
|
+
function qr(e, t, i, r, n, s) {
|
|
5473
5494
|
const a = P("block"), u = P("block-styles"), l = P("blocks-wrapper");
|
|
5474
5495
|
return b(), A(l, {
|
|
5475
5496
|
blocks: e.blocks,
|
|
@@ -5477,25 +5498,25 @@ function Wr(e, t, i, r, n, s) {
|
|
|
5477
5498
|
path: e.path,
|
|
5478
5499
|
styleProp: e.styleProp
|
|
5479
5500
|
}, {
|
|
5480
|
-
default:
|
|
5501
|
+
default: We(() => [
|
|
5481
5502
|
e.blocks ? (b(!0), C(W, { key: 0 }, ne(e.blocks, (h, p) => (b(), A(a, {
|
|
5482
5503
|
key: "render-block-" + h.id,
|
|
5483
5504
|
block: h,
|
|
5484
|
-
context: e.context,
|
|
5485
|
-
registeredComponents: e.registeredComponents
|
|
5505
|
+
context: e.context || e.builderContext,
|
|
5506
|
+
registeredComponents: e.registeredComponents || e.componentsContext.registeredComponents
|
|
5486
5507
|
}, null, 8, ["block", "context", "registeredComponents"]))), 128)) : L("", !0),
|
|
5487
5508
|
e.blocks ? (b(!0), C(W, { key: 1 }, ne(e.blocks, (h, p) => (b(), A(u, {
|
|
5488
5509
|
key: "block-style-" + h.id,
|
|
5489
5510
|
block: h,
|
|
5490
|
-
context: e.context
|
|
5511
|
+
context: e.context || e.builderContext
|
|
5491
5512
|
}, null, 8, ["block", "context"]))), 128)) : L("", !0)
|
|
5492
5513
|
]),
|
|
5493
5514
|
_: 1
|
|
5494
5515
|
}, 8, ["blocks", "parent", "path", "styleProp"]);
|
|
5495
5516
|
}
|
|
5496
|
-
const
|
|
5517
|
+
const pi = /* @__PURE__ */ O(Yr, [["render", qr]]), zr = N({
|
|
5497
5518
|
name: "builder-columns",
|
|
5498
|
-
components: { InlinedStyles: Oe, Blocks:
|
|
5519
|
+
components: { InlinedStyles: Oe, Blocks: pi },
|
|
5499
5520
|
props: [
|
|
5500
5521
|
"js",
|
|
5501
5522
|
"space",
|
|
@@ -5614,7 +5635,7 @@ const hi = /* @__PURE__ */ O(Gr, [["render", Wr]]), Hr = N({
|
|
|
5614
5635
|
}
|
|
5615
5636
|
}
|
|
5616
5637
|
});
|
|
5617
|
-
function
|
|
5638
|
+
function Kr(e, t, i, r, n, s) {
|
|
5618
5639
|
const a = P("inlined-styles"), u = P("blocks");
|
|
5619
5640
|
return b(), C("div", U({
|
|
5620
5641
|
class: e._classStringToObject(
|
|
@@ -5644,32 +5665,32 @@ function Yr(e, t, i, r, n, s) {
|
|
|
5644
5665
|
], 16))), 128))
|
|
5645
5666
|
], 16);
|
|
5646
5667
|
}
|
|
5647
|
-
const
|
|
5668
|
+
const Xr = /* @__PURE__ */ O(zr, [["render", Kr], ["__scopeId", "data-v-23ad84c1"]]), Jr = N({
|
|
5648
5669
|
name: "builder-fragment-component",
|
|
5649
5670
|
props: []
|
|
5650
5671
|
});
|
|
5651
|
-
function
|
|
5672
|
+
function Qr(e, t, i, r, n, s) {
|
|
5652
5673
|
return b(), C("span", null, [
|
|
5653
5674
|
ae(e.$slots, "default")
|
|
5654
5675
|
]);
|
|
5655
5676
|
}
|
|
5656
|
-
const
|
|
5657
|
-
function
|
|
5677
|
+
const Zr = /* @__PURE__ */ O(Jr, [["render", Qr]]);
|
|
5678
|
+
function pt(e) {
|
|
5658
5679
|
return e.replace(/http(s)?:/, "");
|
|
5659
5680
|
}
|
|
5660
|
-
function
|
|
5681
|
+
function en(e = "", t, i) {
|
|
5661
5682
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), n = e.indexOf("?") !== -1 ? "&" : "?";
|
|
5662
5683
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(i) + "$2") : e + n + t + "=" + encodeURIComponent(i);
|
|
5663
5684
|
}
|
|
5664
|
-
function
|
|
5685
|
+
function tn(e, t) {
|
|
5665
5686
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
5666
5687
|
return e;
|
|
5667
5688
|
if (t === "master")
|
|
5668
|
-
return
|
|
5689
|
+
return pt(e);
|
|
5669
5690
|
const i = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
5670
5691
|
if (i) {
|
|
5671
5692
|
const r = e.split(i[0]), n = i[3], s = t.match("x") ? t : `${t}x`;
|
|
5672
|
-
return
|
|
5693
|
+
return pt(`${r[0]}_${s}${n}`);
|
|
5673
5694
|
}
|
|
5674
5695
|
return null;
|
|
5675
5696
|
}
|
|
@@ -5680,11 +5701,11 @@ function Be(e) {
|
|
|
5680
5701
|
if (e.match(/builder\.io/)) {
|
|
5681
5702
|
let i = e;
|
|
5682
5703
|
const r = Number(e.split("?width=")[1]);
|
|
5683
|
-
return isNaN(r) || (i = `${i} ${r}w`), t.filter((n) => n !== r).map((n) => `${
|
|
5704
|
+
return isNaN(r) || (i = `${i} ${r}w`), t.filter((n) => n !== r).map((n) => `${en(e, "width", n)} ${n}w`).concat([i]).join(", ");
|
|
5684
5705
|
}
|
|
5685
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((i) => [
|
|
5706
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((i) => [tn(e, `${i}x${i}`), i]).filter(([i]) => !!i).map(([i, r]) => `${i} ${r}w`).concat([e]).join(", ") : e;
|
|
5686
5707
|
}
|
|
5687
|
-
const
|
|
5708
|
+
const rn = N({
|
|
5688
5709
|
name: "builder-image",
|
|
5689
5710
|
props: [
|
|
5690
5711
|
"image",
|
|
@@ -5740,24 +5761,24 @@ const Zr = N({
|
|
|
5740
5761
|
}
|
|
5741
5762
|
}
|
|
5742
5763
|
});
|
|
5743
|
-
const
|
|
5764
|
+
const nn = ["srcset"], sn = ["alt", "role", "src", "srcset", "sizes"], an = {
|
|
5744
5765
|
key: 2,
|
|
5745
5766
|
class: "div-2oob28krk0a-2"
|
|
5746
5767
|
};
|
|
5747
|
-
function
|
|
5768
|
+
function on(e, t, i, r, n, s) {
|
|
5748
5769
|
var a, u, l, h;
|
|
5749
5770
|
return b(), C(W, null, [
|
|
5750
|
-
|
|
5771
|
+
nt("picture", null, [
|
|
5751
5772
|
e.webpSrcSet ? (b(), C("source", {
|
|
5752
5773
|
key: 0,
|
|
5753
5774
|
type: "image/webp",
|
|
5754
5775
|
srcset: e.webpSrcSet
|
|
5755
|
-
}, null, 8,
|
|
5756
|
-
|
|
5776
|
+
}, null, 8, nn)) : L("", !0),
|
|
5777
|
+
nt("img", {
|
|
5757
5778
|
loading: "lazy",
|
|
5758
5779
|
alt: e.altText,
|
|
5759
5780
|
role: e.altText ? "presentation" : void 0,
|
|
5760
|
-
style:
|
|
5781
|
+
style: st({
|
|
5761
5782
|
objectPosition: e.backgroundPosition || "center",
|
|
5762
5783
|
objectFit: e.backgroundSize || "cover",
|
|
5763
5784
|
...e.aspectRatioCss
|
|
@@ -5770,29 +5791,29 @@ function nn(e, t, i, r, n, s) {
|
|
|
5770
5791
|
src: e.image,
|
|
5771
5792
|
srcset: e.srcSetToUse,
|
|
5772
5793
|
sizes: e.sizes
|
|
5773
|
-
}, null, 14,
|
|
5794
|
+
}, null, 14, sn)
|
|
5774
5795
|
]),
|
|
5775
5796
|
e.aspectRatio && !(((u = (a = e.builderBlock) == null ? void 0 : a.children) == null ? void 0 : u.length) && e.fitContent) ? (b(), C("div", {
|
|
5776
5797
|
key: 0,
|
|
5777
5798
|
class: "builder-image-sizer div-2oob28krk0a",
|
|
5778
|
-
style:
|
|
5799
|
+
style: st({
|
|
5779
5800
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
5780
5801
|
})
|
|
5781
5802
|
}, null, 4)) : L("", !0),
|
|
5782
5803
|
((h = (l = e.builderBlock) == null ? void 0 : l.children) == null ? void 0 : h.length) && e.fitContent ? ae(e.$slots, "default", { key: 1 }, void 0, !0) : L("", !0),
|
|
5783
|
-
!e.fitContent && e.$slots.default ? (b(), C("div",
|
|
5804
|
+
!e.fitContent && e.$slots.default ? (b(), C("div", an, [
|
|
5784
5805
|
ae(e.$slots, "default", {}, void 0, !0)
|
|
5785
5806
|
])) : L("", !0)
|
|
5786
5807
|
], 64);
|
|
5787
5808
|
}
|
|
5788
|
-
const
|
|
5809
|
+
const un = /* @__PURE__ */ O(rn, [["render", on], ["__scopeId", "data-v-a7ebd355"]]), cn = N({
|
|
5789
5810
|
name: "builder-section-component",
|
|
5790
5811
|
props: ["attributes", "maxWidth"],
|
|
5791
5812
|
data() {
|
|
5792
5813
|
return { filterAttrs: Ce };
|
|
5793
5814
|
}
|
|
5794
5815
|
});
|
|
5795
|
-
function
|
|
5816
|
+
function ln(e, t, i, r, n, s) {
|
|
5796
5817
|
return b(), C("section", U({
|
|
5797
5818
|
style: {
|
|
5798
5819
|
width: "100%",
|
|
@@ -5810,15 +5831,15 @@ function on(e, t, i, r, n, s) {
|
|
|
5810
5831
|
ae(e.$slots, "default")
|
|
5811
5832
|
], 16);
|
|
5812
5833
|
}
|
|
5813
|
-
const
|
|
5834
|
+
const hn = /* @__PURE__ */ O(cn, [["render", ln]]), Ee = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
5814
5835
|
...t,
|
|
5815
5836
|
testVariationId: t.id,
|
|
5816
5837
|
id: e == null ? void 0 : e.id
|
|
5817
|
-
})),
|
|
5838
|
+
})), pn = ({
|
|
5818
5839
|
canTrack: e,
|
|
5819
5840
|
content: t
|
|
5820
5841
|
}) => !(!(Ee(t).length > 0) || !e);
|
|
5821
|
-
function
|
|
5842
|
+
function fn(e, t, i) {
|
|
5822
5843
|
var a;
|
|
5823
5844
|
function r() {
|
|
5824
5845
|
function u(m, S, w) {
|
|
@@ -5865,7 +5886,7 @@ function ln(e, t, i) {
|
|
|
5865
5886
|
s.innerHTML = u;
|
|
5866
5887
|
}
|
|
5867
5888
|
}
|
|
5868
|
-
function
|
|
5889
|
+
function dn(e, t, i) {
|
|
5869
5890
|
var l;
|
|
5870
5891
|
if (!navigator.cookieEnabled)
|
|
5871
5892
|
return;
|
|
@@ -5890,18 +5911,18 @@ function hn(e, t, i) {
|
|
|
5890
5911
|
return;
|
|
5891
5912
|
}
|
|
5892
5913
|
}
|
|
5893
|
-
const
|
|
5894
|
-
const e =
|
|
5914
|
+
const mn = (e) => e === "react" || e === "reactNative", fi = mn(Z), di = "builderIoAbTest", mi = "builderIoRenderContent", gn = () => {
|
|
5915
|
+
const e = fn.toString().replace(/\s+/g, " "), t = dn.toString().replace(/\s+/g, " ");
|
|
5895
5916
|
return `
|
|
5896
|
-
window.${
|
|
5897
|
-
window.${
|
|
5917
|
+
window.${di} = ${e}
|
|
5918
|
+
window.${mi} = ${t}
|
|
5898
5919
|
`;
|
|
5899
|
-
},
|
|
5900
|
-
window.${
|
|
5920
|
+
}, yn = (e, t) => `
|
|
5921
|
+
window.${di}("${t}",${JSON.stringify(e)}, ${fi})`, vn = ({
|
|
5901
5922
|
contentId: e,
|
|
5902
5923
|
variationId: t
|
|
5903
5924
|
}) => `
|
|
5904
|
-
window.${
|
|
5925
|
+
window.${mi}("${t}", "${e}", ${fi})`, bn = {
|
|
5905
5926
|
name: "Core:Button",
|
|
5906
5927
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
5907
5928
|
defaultStyles: {
|
|
@@ -5933,7 +5954,7 @@ const pn = (e) => e === "react" || e === "reactNative", pi = pn(Z), fi = "builde
|
|
|
5933
5954
|
}],
|
|
5934
5955
|
static: !0,
|
|
5935
5956
|
noWrap: !0
|
|
5936
|
-
},
|
|
5957
|
+
}, En = {
|
|
5937
5958
|
name: "Columns",
|
|
5938
5959
|
isRSC: !0,
|
|
5939
5960
|
inputs: [{
|
|
@@ -6133,13 +6154,13 @@ const pn = (e) => e === "react" || e === "reactNative", pi = pn(Z), fi = "builde
|
|
|
6133
6154
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
6134
6155
|
advanced: !0
|
|
6135
6156
|
}]
|
|
6136
|
-
},
|
|
6157
|
+
}, xn = {
|
|
6137
6158
|
name: "Fragment",
|
|
6138
6159
|
static: !0,
|
|
6139
6160
|
hidden: !0,
|
|
6140
6161
|
canHaveChildren: !0,
|
|
6141
6162
|
noWrap: !0
|
|
6142
|
-
},
|
|
6163
|
+
}, Sn = {
|
|
6143
6164
|
name: "Image",
|
|
6144
6165
|
static: !0,
|
|
6145
6166
|
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",
|
|
@@ -6239,7 +6260,7 @@ const pn = (e) => e === "react" || e === "reactNative", pi = pn(Z), fi = "builde
|
|
|
6239
6260
|
advanced: !0,
|
|
6240
6261
|
defaultValue: 0.7041
|
|
6241
6262
|
}]
|
|
6242
|
-
},
|
|
6263
|
+
}, _n = {
|
|
6243
6264
|
name: "Core:Section",
|
|
6244
6265
|
static: !0,
|
|
6245
6266
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -6278,7 +6299,7 @@ const pn = (e) => e === "react" || e === "reactNative", pi = pn(Z), fi = "builde
|
|
|
6278
6299
|
}
|
|
6279
6300
|
}
|
|
6280
6301
|
}]
|
|
6281
|
-
},
|
|
6302
|
+
}, Rn = {
|
|
6282
6303
|
name: "Symbol",
|
|
6283
6304
|
noWrap: !0,
|
|
6284
6305
|
static: !0,
|
|
@@ -6311,7 +6332,7 @@ const pn = (e) => e === "react" || e === "reactNative", pi = pn(Z), fi = "builde
|
|
|
6311
6332
|
hideFromUI: !0,
|
|
6312
6333
|
type: "boolean"
|
|
6313
6334
|
}]
|
|
6314
|
-
},
|
|
6335
|
+
}, Cn = {
|
|
6315
6336
|
name: "Text",
|
|
6316
6337
|
static: !0,
|
|
6317
6338
|
isRSC: !0,
|
|
@@ -6329,11 +6350,11 @@ const pn = (e) => e === "react" || e === "reactNative", pi = pn(Z), fi = "builde
|
|
|
6329
6350
|
height: "auto",
|
|
6330
6351
|
textAlign: "center"
|
|
6331
6352
|
}
|
|
6332
|
-
},
|
|
6353
|
+
}, wn = N({
|
|
6333
6354
|
name: "builder-text",
|
|
6334
6355
|
props: ["text"]
|
|
6335
|
-
}),
|
|
6336
|
-
function
|
|
6356
|
+
}), kn = ["innerHTML"];
|
|
6357
|
+
function Nn(e, t, i, r, n, s) {
|
|
6337
6358
|
var a;
|
|
6338
6359
|
return b(), C("span", {
|
|
6339
6360
|
class: "builder-text",
|
|
@@ -6341,9 +6362,9 @@ function Cn(e, t, i, r, n, s) {
|
|
|
6341
6362
|
style: {
|
|
6342
6363
|
outline: "none"
|
|
6343
6364
|
}
|
|
6344
|
-
}, null, 8,
|
|
6365
|
+
}, null, 8, kn);
|
|
6345
6366
|
}
|
|
6346
|
-
const
|
|
6367
|
+
const Pn = /* @__PURE__ */ O(wn, [["render", Nn]]), Tn = {
|
|
6347
6368
|
name: "Video",
|
|
6348
6369
|
canHaveChildren: !0,
|
|
6349
6370
|
defaultStyles: {
|
|
@@ -6424,7 +6445,7 @@ const wn = /* @__PURE__ */ O(_n, [["render", Cn]]), kn = {
|
|
|
6424
6445
|
defaultValue: !0,
|
|
6425
6446
|
advanced: !0
|
|
6426
6447
|
}]
|
|
6427
|
-
},
|
|
6448
|
+
}, On = N({
|
|
6428
6449
|
name: "builder-video",
|
|
6429
6450
|
props: [
|
|
6430
6451
|
"autoPlay",
|
|
@@ -6466,8 +6487,8 @@ const wn = /* @__PURE__ */ O(_n, [["render", Cn]]), kn = {
|
|
|
6466
6487
|
};
|
|
6467
6488
|
}
|
|
6468
6489
|
}
|
|
6469
|
-
}),
|
|
6470
|
-
function
|
|
6490
|
+
}), In = ["preload", "src", "poster"];
|
|
6491
|
+
function An(e, t, i, r, n, s) {
|
|
6471
6492
|
var a;
|
|
6472
6493
|
return b(), C("video", U({
|
|
6473
6494
|
preload: e.preload || "metadata",
|
|
@@ -6481,9 +6502,9 @@ function Tn(e, t, i, r, n, s) {
|
|
|
6481
6502
|
},
|
|
6482
6503
|
src: e.video || "no-src",
|
|
6483
6504
|
poster: e.posterImage
|
|
6484
|
-
}, e.spreadProps), null, 16,
|
|
6505
|
+
}, e.spreadProps), null, 16, In);
|
|
6485
6506
|
}
|
|
6486
|
-
const
|
|
6507
|
+
const Ln = /* @__PURE__ */ O(On, [["render", An]]), Vn = {
|
|
6487
6508
|
name: "Embed",
|
|
6488
6509
|
static: !0,
|
|
6489
6510
|
inputs: [{
|
|
@@ -6508,7 +6529,7 @@ const On = /* @__PURE__ */ O(Nn, [["render", Tn]]), In = {
|
|
|
6508
6529
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
6509
6530
|
hideFromUI: !0
|
|
6510
6531
|
}]
|
|
6511
|
-
},
|
|
6532
|
+
}, Bn = ["text/javascript", "application/javascript", "application/ecmascript"], Fn = (e) => Bn.includes(e.type), Mn = N({
|
|
6512
6533
|
name: "builder-embed",
|
|
6513
6534
|
props: ["content"],
|
|
6514
6535
|
data() {
|
|
@@ -6541,7 +6562,7 @@ const On = /* @__PURE__ */ O(Nn, [["render", Tn]]), In = {
|
|
|
6541
6562
|
this.scriptsInserted.push(i.src);
|
|
6542
6563
|
const r = document.createElement("script");
|
|
6543
6564
|
r.async = !0, r.src = i.src, document.head.appendChild(r);
|
|
6544
|
-
} else if (
|
|
6565
|
+
} else if (Fn(i) && !this.scriptsRun.includes(i.innerText))
|
|
6545
6566
|
try {
|
|
6546
6567
|
this.scriptsRun.push(i.innerText), new Function(i.innerText)();
|
|
6547
6568
|
} catch (r) {
|
|
@@ -6550,15 +6571,15 @@ const On = /* @__PURE__ */ O(Nn, [["render", Tn]]), In = {
|
|
|
6550
6571
|
}
|
|
6551
6572
|
}
|
|
6552
6573
|
}
|
|
6553
|
-
}),
|
|
6554
|
-
function
|
|
6574
|
+
}), Un = ["innerHTML"];
|
|
6575
|
+
function Dn(e, t, i, r, n, s) {
|
|
6555
6576
|
return b(), C("div", {
|
|
6556
6577
|
class: "builder-embed",
|
|
6557
6578
|
ref: "elem",
|
|
6558
6579
|
innerHTML: e.content
|
|
6559
|
-
}, null, 8,
|
|
6580
|
+
}, null, 8, Un);
|
|
6560
6581
|
}
|
|
6561
|
-
const
|
|
6582
|
+
const $n = /* @__PURE__ */ O(Mn, [["render", Dn]]), jn = N({
|
|
6562
6583
|
name: "builder-img-component",
|
|
6563
6584
|
props: [
|
|
6564
6585
|
"backgroundSize",
|
|
@@ -6571,8 +6592,8 @@ const Mn = /* @__PURE__ */ O(Vn, [["render", Fn]]), Un = N({
|
|
|
6571
6592
|
data() {
|
|
6572
6593
|
return { isEditing: X, filterAttrs: Ce };
|
|
6573
6594
|
}
|
|
6574
|
-
}),
|
|
6575
|
-
function
|
|
6595
|
+
}), Gn = ["alt", "src"];
|
|
6596
|
+
function Wn(e, t, i, r, n, s) {
|
|
6576
6597
|
return b(), C("img", U({
|
|
6577
6598
|
style: {
|
|
6578
6599
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -6581,9 +6602,9 @@ function $n(e, t, i, r, n, s) {
|
|
|
6581
6602
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
6582
6603
|
alt: e.altText,
|
|
6583
6604
|
src: e.imgSrc || e.image
|
|
6584
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
6605
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Gn);
|
|
6585
6606
|
}
|
|
6586
|
-
const
|
|
6607
|
+
const Hn = /* @__PURE__ */ O(jn, [["render", Wn]]), Yn = {
|
|
6587
6608
|
name: "Raw:Img",
|
|
6588
6609
|
hideFromInsertMenu: !0,
|
|
6589
6610
|
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",
|
|
@@ -6596,7 +6617,7 @@ const jn = /* @__PURE__ */ O(Un, [["render", $n]]), Gn = {
|
|
|
6596
6617
|
}],
|
|
6597
6618
|
noWrap: !0,
|
|
6598
6619
|
static: !0
|
|
6599
|
-
},
|
|
6620
|
+
}, qn = N({
|
|
6600
6621
|
name: "builder-custom-code",
|
|
6601
6622
|
props: ["replaceNodes", "code"],
|
|
6602
6623
|
data() {
|
|
@@ -6643,8 +6664,8 @@ const jn = /* @__PURE__ */ O(Un, [["render", $n]]), Gn = {
|
|
|
6643
6664
|
return t;
|
|
6644
6665
|
}
|
|
6645
6666
|
}
|
|
6646
|
-
}),
|
|
6647
|
-
function
|
|
6667
|
+
}), zn = ["innerHTML"];
|
|
6668
|
+
function Kn(e, t, i, r, n, s) {
|
|
6648
6669
|
return b(), C("div", {
|
|
6649
6670
|
ref: "elem",
|
|
6650
6671
|
class: _t(
|
|
@@ -6653,9 +6674,9 @@ function Yn(e, t, i, r, n, s) {
|
|
|
6653
6674
|
)
|
|
6654
6675
|
),
|
|
6655
6676
|
innerHTML: e.code
|
|
6656
|
-
}, null, 10,
|
|
6677
|
+
}, null, 10, zn);
|
|
6657
6678
|
}
|
|
6658
|
-
const
|
|
6679
|
+
const Xn = /* @__PURE__ */ O(qn, [["render", Kn]]), Jn = {
|
|
6659
6680
|
name: "Custom Code",
|
|
6660
6681
|
static: !0,
|
|
6661
6682
|
requiredPermissions: ["editCode"],
|
|
@@ -6677,55 +6698,55 @@ const qn = /* @__PURE__ */ O(Wn, [["render", Yn]]), zn = {
|
|
|
6677
6698
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
6678
6699
|
advanced: !0
|
|
6679
6700
|
}]
|
|
6680
|
-
},
|
|
6681
|
-
component:
|
|
6682
|
-
...
|
|
6701
|
+
}, ft = () => [{
|
|
6702
|
+
component: Fi,
|
|
6703
|
+
...bn
|
|
6683
6704
|
}, {
|
|
6684
|
-
component:
|
|
6685
|
-
...
|
|
6705
|
+
component: Xr,
|
|
6706
|
+
...En
|
|
6686
6707
|
}, {
|
|
6687
|
-
component:
|
|
6688
|
-
...
|
|
6708
|
+
component: Xn,
|
|
6709
|
+
...Jn
|
|
6689
6710
|
}, {
|
|
6690
|
-
component:
|
|
6691
|
-
...
|
|
6711
|
+
component: $n,
|
|
6712
|
+
...Vn
|
|
6692
6713
|
}, {
|
|
6693
|
-
component:
|
|
6694
|
-
...
|
|
6714
|
+
component: Zr,
|
|
6715
|
+
...xn
|
|
6695
6716
|
}, {
|
|
6696
|
-
component:
|
|
6697
|
-
...
|
|
6717
|
+
component: un,
|
|
6718
|
+
...Sn
|
|
6698
6719
|
}, {
|
|
6699
|
-
component:
|
|
6700
|
-
...
|
|
6720
|
+
component: Hn,
|
|
6721
|
+
...Yn
|
|
6701
6722
|
}, {
|
|
6702
|
-
component:
|
|
6703
|
-
...
|
|
6723
|
+
component: hn,
|
|
6724
|
+
..._n
|
|
6704
6725
|
}, {
|
|
6705
|
-
component:
|
|
6706
|
-
...
|
|
6726
|
+
component: fa,
|
|
6727
|
+
...Rn
|
|
6707
6728
|
}, {
|
|
6708
|
-
component:
|
|
6709
|
-
...
|
|
6729
|
+
component: Pn,
|
|
6730
|
+
...Cn
|
|
6710
6731
|
}, {
|
|
6711
|
-
component:
|
|
6712
|
-
...
|
|
6713
|
-
}],
|
|
6732
|
+
component: Ln,
|
|
6733
|
+
...Tn
|
|
6734
|
+
}], dt = [], Qn = (e) => ({
|
|
6714
6735
|
type: "builder.registerComponent",
|
|
6715
6736
|
data: e
|
|
6716
|
-
}),
|
|
6737
|
+
}), Zn = (e) => {
|
|
6717
6738
|
const t = e.toString().trim();
|
|
6718
6739
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
6719
|
-
},
|
|
6740
|
+
}, es = (e) => typeof e == "function" ? Zn(e) : we(e), mt = ({
|
|
6720
6741
|
inputs: e,
|
|
6721
6742
|
...t
|
|
6722
6743
|
}) => ({
|
|
6723
6744
|
...we(t),
|
|
6724
6745
|
inputs: e == null ? void 0 : e.map((i) => Object.entries(i).reduce((r, [n, s]) => ({
|
|
6725
6746
|
...r,
|
|
6726
|
-
[n]:
|
|
6747
|
+
[n]: es(s)
|
|
6727
6748
|
}), {}))
|
|
6728
|
-
}),
|
|
6749
|
+
}), ts = (e) => {
|
|
6729
6750
|
var s, a;
|
|
6730
6751
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), i = t.split(",")[0], r = (a = e.fileUrl) != null ? a : (s = e == null ? void 0 : e.files) == null ? void 0 : s.regular;
|
|
6731
6752
|
let n = "";
|
|
@@ -6751,26 +6772,26 @@ font-weight: ${u};
|
|
|
6751
6772
|
`.trim());
|
|
6752
6773
|
}
|
|
6753
6774
|
return n;
|
|
6754
|
-
},
|
|
6775
|
+
}, is = ({
|
|
6755
6776
|
customFonts: e
|
|
6756
6777
|
}) => {
|
|
6757
6778
|
var t;
|
|
6758
|
-
return ((t = e == null ? void 0 : e.map((i) =>
|
|
6759
|
-
},
|
|
6779
|
+
return ((t = e == null ? void 0 : e.map((i) => ts(i))) == null ? void 0 : t.join(" ")) || "";
|
|
6780
|
+
}, rs = ({
|
|
6760
6781
|
cssCode: e,
|
|
6761
6782
|
contentId: t
|
|
6762
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
6783
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ns = N({
|
|
6763
6784
|
name: "content-styles",
|
|
6764
6785
|
components: { InlinedStyles: Oe },
|
|
6765
6786
|
props: ["cssCode", "contentId", "customFonts"],
|
|
6766
6787
|
data() {
|
|
6767
6788
|
return {
|
|
6768
6789
|
injectedStyles: `
|
|
6769
|
-
${
|
|
6790
|
+
${rs({
|
|
6770
6791
|
cssCode: this.cssCode,
|
|
6771
6792
|
contentId: this.contentId
|
|
6772
6793
|
})}
|
|
6773
|
-
${
|
|
6794
|
+
${is({
|
|
6774
6795
|
customFonts: this.customFonts
|
|
6775
6796
|
})}
|
|
6776
6797
|
|
|
@@ -6790,11 +6811,11 @@ ${Zn({
|
|
|
6790
6811
|
};
|
|
6791
6812
|
}
|
|
6792
6813
|
});
|
|
6793
|
-
function
|
|
6814
|
+
function ss(e, t, i, r, n, s) {
|
|
6794
6815
|
const a = P("inlined-styles");
|
|
6795
6816
|
return b(), A(a, { styles: e.injectedStyles }, null, 8, ["styles"]);
|
|
6796
6817
|
}
|
|
6797
|
-
const
|
|
6818
|
+
const as = /* @__PURE__ */ O(ns, [["render", ss]]), os = ({
|
|
6798
6819
|
content: e,
|
|
6799
6820
|
data: t,
|
|
6800
6821
|
locale: i
|
|
@@ -6816,7 +6837,7 @@ const rs = /* @__PURE__ */ O(ts, [["render", is]]), ns = ({
|
|
|
6816
6837
|
...r,
|
|
6817
6838
|
...n
|
|
6818
6839
|
};
|
|
6819
|
-
},
|
|
6840
|
+
}, us = ({
|
|
6820
6841
|
content: e,
|
|
6821
6842
|
data: t
|
|
6822
6843
|
}) => e ? {
|
|
@@ -6827,22 +6848,22 @@ const rs = /* @__PURE__ */ O(ts, [["render", is]]), ns = ({
|
|
|
6827
6848
|
},
|
|
6828
6849
|
meta: e == null ? void 0 : e.meta
|
|
6829
6850
|
} : void 0;
|
|
6830
|
-
function
|
|
6851
|
+
function cs() {
|
|
6831
6852
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
6832
6853
|
}
|
|
6833
|
-
function
|
|
6834
|
-
const e =
|
|
6854
|
+
function ls() {
|
|
6855
|
+
const e = cs().fetch;
|
|
6835
6856
|
if (typeof e > "u")
|
|
6836
6857
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
6837
6858
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
6838
6859
|
return e;
|
|
6839
6860
|
}
|
|
6840
|
-
const
|
|
6861
|
+
const gi = ls(), hs = (e) => {
|
|
6841
6862
|
if (e === "localhost" || e === "127.0.0.1")
|
|
6842
6863
|
return e;
|
|
6843
6864
|
const t = e.split(".");
|
|
6844
6865
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
6845
|
-
},
|
|
6866
|
+
}, yi = ({
|
|
6846
6867
|
name: e,
|
|
6847
6868
|
canTrack: t
|
|
6848
6869
|
}) => {
|
|
@@ -6853,14 +6874,14 @@ const mi = os(), us = (e) => {
|
|
|
6853
6874
|
D.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
6854
6875
|
return;
|
|
6855
6876
|
}
|
|
6856
|
-
}, vi = async (e) =>
|
|
6877
|
+
}, vi = async (e) => yi(e), ps = (e) => e.map(([t, i]) => i ? `${t}=${i}` : t).filter(z).join("; "), fs = [["secure", ""], ["SameSite", "None"]], ds = ({
|
|
6857
6878
|
name: e,
|
|
6858
6879
|
value: t,
|
|
6859
6880
|
expires: i
|
|
6860
6881
|
}) => {
|
|
6861
|
-
const n = (V() ? location.protocol === "https:" : !0) ?
|
|
6862
|
-
return
|
|
6863
|
-
},
|
|
6882
|
+
const n = (V() ? location.protocol === "https:" : !0) ? fs : [[]], s = i ? [["expires", i.toUTCString()]] : [[]], a = [[e, t], ...s, ["path", "/"], ["domain", hs(window.location.hostname)], ...n];
|
|
6883
|
+
return ps(a);
|
|
6884
|
+
}, bi = async ({
|
|
6864
6885
|
name: e,
|
|
6865
6886
|
value: t,
|
|
6866
6887
|
expires: i,
|
|
@@ -6869,7 +6890,7 @@ const mi = os(), us = (e) => {
|
|
|
6869
6890
|
try {
|
|
6870
6891
|
if (!r)
|
|
6871
6892
|
return;
|
|
6872
|
-
const n =
|
|
6893
|
+
const n = ds({
|
|
6873
6894
|
name: e,
|
|
6874
6895
|
value: t,
|
|
6875
6896
|
expires: i
|
|
@@ -6879,95 +6900,95 @@ const mi = os(), us = (e) => {
|
|
|
6879
6900
|
D.warn("[COOKIE] SET error: ", (n == null ? void 0 : n.message) || n);
|
|
6880
6901
|
}
|
|
6881
6902
|
};
|
|
6882
|
-
function
|
|
6903
|
+
function ms() {
|
|
6883
6904
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
6884
6905
|
const t = Math.random() * 16 | 0;
|
|
6885
6906
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
6886
6907
|
});
|
|
6887
6908
|
}
|
|
6888
|
-
function
|
|
6889
|
-
return
|
|
6909
|
+
function Ei() {
|
|
6910
|
+
return ms().replace(/-/g, "");
|
|
6890
6911
|
}
|
|
6891
|
-
const
|
|
6912
|
+
const xi = "builderSessionId", gs = async ({
|
|
6892
6913
|
canTrack: e
|
|
6893
6914
|
}) => {
|
|
6894
6915
|
if (!e)
|
|
6895
6916
|
return;
|
|
6896
6917
|
const t = await vi({
|
|
6897
|
-
name:
|
|
6918
|
+
name: xi,
|
|
6898
6919
|
canTrack: e
|
|
6899
6920
|
});
|
|
6900
6921
|
if (z(t))
|
|
6901
6922
|
return t;
|
|
6902
6923
|
{
|
|
6903
|
-
const i =
|
|
6904
|
-
return
|
|
6924
|
+
const i = ys();
|
|
6925
|
+
return vs({
|
|
6905
6926
|
id: i,
|
|
6906
6927
|
canTrack: e
|
|
6907
6928
|
}), i;
|
|
6908
6929
|
}
|
|
6909
|
-
},
|
|
6930
|
+
}, ys = () => Ei(), vs = ({
|
|
6910
6931
|
id: e,
|
|
6911
6932
|
canTrack: t
|
|
6912
|
-
}) =>
|
|
6913
|
-
name:
|
|
6933
|
+
}) => bi({
|
|
6934
|
+
name: xi,
|
|
6914
6935
|
value: e,
|
|
6915
6936
|
canTrack: t
|
|
6916
|
-
}),
|
|
6937
|
+
}), Si = () => V() && typeof localStorage < "u" ? localStorage : void 0, bs = ({
|
|
6917
6938
|
key: e,
|
|
6918
6939
|
canTrack: t
|
|
6919
6940
|
}) => {
|
|
6920
6941
|
var i;
|
|
6921
6942
|
try {
|
|
6922
|
-
return t ? (i =
|
|
6943
|
+
return t ? (i = Si()) == null ? void 0 : i.getItem(e) : void 0;
|
|
6923
6944
|
} catch (r) {
|
|
6924
6945
|
console.debug("[LocalStorage] GET error: ", r);
|
|
6925
6946
|
return;
|
|
6926
6947
|
}
|
|
6927
|
-
},
|
|
6948
|
+
}, Es = ({
|
|
6928
6949
|
key: e,
|
|
6929
6950
|
canTrack: t,
|
|
6930
6951
|
value: i
|
|
6931
6952
|
}) => {
|
|
6932
6953
|
var r;
|
|
6933
6954
|
try {
|
|
6934
|
-
t && ((r =
|
|
6955
|
+
t && ((r = Si()) == null || r.setItem(e, i));
|
|
6935
6956
|
} catch (n) {
|
|
6936
6957
|
console.debug("[LocalStorage] SET error: ", n);
|
|
6937
6958
|
}
|
|
6938
|
-
},
|
|
6959
|
+
}, _i = "builderVisitorId", xs = ({
|
|
6939
6960
|
canTrack: e
|
|
6940
6961
|
}) => {
|
|
6941
6962
|
if (!e)
|
|
6942
6963
|
return;
|
|
6943
|
-
const t =
|
|
6944
|
-
key:
|
|
6964
|
+
const t = bs({
|
|
6965
|
+
key: _i,
|
|
6945
6966
|
canTrack: e
|
|
6946
6967
|
});
|
|
6947
6968
|
if (z(t))
|
|
6948
6969
|
return t;
|
|
6949
6970
|
{
|
|
6950
|
-
const i =
|
|
6951
|
-
return
|
|
6971
|
+
const i = Ss();
|
|
6972
|
+
return _s({
|
|
6952
6973
|
id: i,
|
|
6953
6974
|
canTrack: e
|
|
6954
6975
|
}), i;
|
|
6955
6976
|
}
|
|
6956
|
-
},
|
|
6977
|
+
}, Ss = () => Ei(), _s = ({
|
|
6957
6978
|
id: e,
|
|
6958
6979
|
canTrack: t
|
|
6959
|
-
}) =>
|
|
6960
|
-
key:
|
|
6980
|
+
}) => Es({
|
|
6981
|
+
key: _i,
|
|
6961
6982
|
value: e,
|
|
6962
6983
|
canTrack: t
|
|
6963
|
-
}),
|
|
6984
|
+
}), Rs = () => {
|
|
6964
6985
|
if (V()) {
|
|
6965
6986
|
const e = new URL(location.href);
|
|
6966
6987
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
6967
6988
|
} else
|
|
6968
6989
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
6969
|
-
},
|
|
6970
|
-
const e =
|
|
6990
|
+
}, Cs = () => typeof navigator == "object" && navigator.userAgent || "", ws = () => {
|
|
6991
|
+
const e = Cs(), t = {
|
|
6971
6992
|
Android() {
|
|
6972
6993
|
return e.match(/Android/i);
|
|
6973
6994
|
},
|
|
@@ -6986,13 +7007,13 @@ const Ei = "builderSessionId", fs = async ({
|
|
|
6986
7007
|
any() {
|
|
6987
7008
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || Z === "reactNative";
|
|
6988
7009
|
}
|
|
6989
|
-
}, i = e.match(/Tablet|iPad/i), r =
|
|
7010
|
+
}, i = e.match(/Tablet|iPad/i), r = Rs();
|
|
6990
7011
|
return {
|
|
6991
7012
|
urlPath: r == null ? void 0 : r.pathname,
|
|
6992
7013
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
6993
7014
|
device: i ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
6994
7015
|
};
|
|
6995
|
-
},
|
|
7016
|
+
}, ks = async ({
|
|
6996
7017
|
canTrack: e
|
|
6997
7018
|
}) => {
|
|
6998
7019
|
if (!e)
|
|
@@ -7000,16 +7021,16 @@ const Ei = "builderSessionId", fs = async ({
|
|
|
7000
7021
|
visitorId: void 0,
|
|
7001
7022
|
sessionId: void 0
|
|
7002
7023
|
};
|
|
7003
|
-
const t = await
|
|
7024
|
+
const t = await gs({
|
|
7004
7025
|
canTrack: e
|
|
7005
|
-
}), i =
|
|
7026
|
+
}), i = xs({
|
|
7006
7027
|
canTrack: e
|
|
7007
7028
|
});
|
|
7008
7029
|
return {
|
|
7009
7030
|
sessionId: t,
|
|
7010
7031
|
visitorId: i
|
|
7011
7032
|
};
|
|
7012
|
-
},
|
|
7033
|
+
}, Ns = async ({
|
|
7013
7034
|
type: e,
|
|
7014
7035
|
canTrack: t,
|
|
7015
7036
|
apiKey: i,
|
|
@@ -7023,14 +7044,14 @@ const Ei = "builderSessionId", fs = async ({
|
|
|
7023
7044
|
url: location.href,
|
|
7024
7045
|
...r
|
|
7025
7046
|
},
|
|
7026
|
-
...await
|
|
7047
|
+
...await ks({
|
|
7027
7048
|
canTrack: t
|
|
7028
7049
|
}),
|
|
7029
|
-
userAttributes:
|
|
7050
|
+
userAttributes: ws(),
|
|
7030
7051
|
ownerId: i
|
|
7031
7052
|
}
|
|
7032
7053
|
});
|
|
7033
|
-
async function
|
|
7054
|
+
async function $e(e) {
|
|
7034
7055
|
if (!e.apiKey) {
|
|
7035
7056
|
D.error("Missing API key for track call. Please provide your API key.");
|
|
7036
7057
|
return;
|
|
@@ -7039,7 +7060,7 @@ async function De(e) {
|
|
|
7039
7060
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
7040
7061
|
method: "POST",
|
|
7041
7062
|
body: JSON.stringify({
|
|
7042
|
-
events: [await
|
|
7063
|
+
events: [await Ns(e)]
|
|
7043
7064
|
}),
|
|
7044
7065
|
headers: {
|
|
7045
7066
|
"content-type": "application/json"
|
|
@@ -7049,25 +7070,11 @@ async function De(e) {
|
|
|
7049
7070
|
console.error("Failed to track: ", t);
|
|
7050
7071
|
});
|
|
7051
7072
|
}
|
|
7052
|
-
const
|
|
7073
|
+
const ga = (e) => $e({
|
|
7053
7074
|
...e,
|
|
7054
7075
|
canTrack: !0
|
|
7055
|
-
}),
|
|
7056
|
-
|
|
7057
|
-
content: null,
|
|
7058
|
-
context: {},
|
|
7059
|
-
localState: void 0,
|
|
7060
|
-
rootSetState() {
|
|
7061
|
-
},
|
|
7062
|
-
rootState: {},
|
|
7063
|
-
apiKey: null,
|
|
7064
|
-
apiVersion: void 0,
|
|
7065
|
-
componentInfos: {},
|
|
7066
|
-
inheritedStyles: {}
|
|
7067
|
-
},
|
|
7068
|
-
key: ws
|
|
7069
|
-
}, ks = "0.5.0", gt = {};
|
|
7070
|
-
function Ns(e, t) {
|
|
7076
|
+
}), Ps = "0.5.2", gt = {};
|
|
7077
|
+
function Ts(e, t) {
|
|
7071
7078
|
let i = gt[e];
|
|
7072
7079
|
if (i || (i = gt[e] = []), i.push(t), V()) {
|
|
7073
7080
|
const r = {
|
|
@@ -7084,8 +7091,8 @@ function Ns(e, t) {
|
|
|
7084
7091
|
}
|
|
7085
7092
|
}
|
|
7086
7093
|
}
|
|
7087
|
-
const
|
|
7088
|
-
|
|
7094
|
+
const Os = () => {
|
|
7095
|
+
Ts("insertMenu", {
|
|
7089
7096
|
name: "_default",
|
|
7090
7097
|
default: !0,
|
|
7091
7098
|
items: [{
|
|
@@ -7107,14 +7114,14 @@ const Ps = () => {
|
|
|
7107
7114
|
}]
|
|
7108
7115
|
});
|
|
7109
7116
|
};
|
|
7110
|
-
let
|
|
7111
|
-
const
|
|
7117
|
+
let yt = !1;
|
|
7118
|
+
const Is = (e = {}) => {
|
|
7112
7119
|
var t, i;
|
|
7113
|
-
|
|
7120
|
+
yt || (yt = !0, V() && ((t = window.parent) == null || t.postMessage({
|
|
7114
7121
|
type: "builder.sdkInfo",
|
|
7115
7122
|
data: {
|
|
7116
7123
|
target: Z,
|
|
7117
|
-
version:
|
|
7124
|
+
version: Ps,
|
|
7118
7125
|
supportsPatchUpdates: !1,
|
|
7119
7126
|
supportsAddBlockScoping: !0,
|
|
7120
7127
|
supportsCustomBreakpoints: !0
|
|
@@ -7165,10 +7172,10 @@ const Ts = (e = {}) => {
|
|
|
7165
7172
|
}
|
|
7166
7173
|
})));
|
|
7167
7174
|
};
|
|
7168
|
-
function
|
|
7175
|
+
function vt(e) {
|
|
7169
7176
|
return Math.round(e * 1e3) / 1e3;
|
|
7170
7177
|
}
|
|
7171
|
-
const
|
|
7178
|
+
const As = (e, t, i = !0) => {
|
|
7172
7179
|
if (!(e instanceof HTMLElement))
|
|
7173
7180
|
return null;
|
|
7174
7181
|
let r = i ? e : e.parentElement;
|
|
@@ -7179,20 +7186,20 @@ const Os = (e, t, i = !0) => {
|
|
|
7179
7186
|
return r;
|
|
7180
7187
|
} while (r = r.parentElement);
|
|
7181
7188
|
return null;
|
|
7182
|
-
},
|
|
7189
|
+
}, Ls = (e) => As(e, (t) => {
|
|
7183
7190
|
const i = t.getAttribute("builder-id") || t.id;
|
|
7184
7191
|
return Boolean((i == null ? void 0 : i.indexOf("builder-")) === 0);
|
|
7185
7192
|
}), bt = ({
|
|
7186
7193
|
event: e,
|
|
7187
7194
|
target: t
|
|
7188
7195
|
}) => {
|
|
7189
|
-
const i = t.getBoundingClientRect(), r = e.clientX - i.left, n = e.clientY - i.top, s =
|
|
7196
|
+
const i = t.getBoundingClientRect(), r = e.clientX - i.left, n = e.clientY - i.top, s = vt(r / i.width), a = vt(n / i.height);
|
|
7190
7197
|
return {
|
|
7191
7198
|
x: s,
|
|
7192
7199
|
y: a
|
|
7193
7200
|
};
|
|
7194
|
-
},
|
|
7195
|
-
const t = e.target, i = t &&
|
|
7201
|
+
}, Vs = (e) => {
|
|
7202
|
+
const t = e.target, i = t && Ls(t), r = (i == null ? void 0 : i.getAttribute("builder-id")) || (i == null ? void 0 : i.id);
|
|
7196
7203
|
return {
|
|
7197
7204
|
targetBuilderElement: r || void 0,
|
|
7198
7205
|
metadata: {
|
|
@@ -7207,24 +7214,24 @@ const Os = (e, t, i = !0) => {
|
|
|
7207
7214
|
builderElementIndex: i && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(i) : void 0
|
|
7208
7215
|
}
|
|
7209
7216
|
};
|
|
7210
|
-
},
|
|
7217
|
+
}, Bs = "builder.tests", et = (e) => `${Bs}.${e}`, Fs = ({
|
|
7211
7218
|
contentId: e
|
|
7212
7219
|
}) => vi({
|
|
7213
|
-
name:
|
|
7220
|
+
name: et(e),
|
|
7214
7221
|
canTrack: !0
|
|
7215
|
-
}),
|
|
7222
|
+
}), Ms = ({
|
|
7216
7223
|
contentId: e
|
|
7217
|
-
}) =>
|
|
7218
|
-
name:
|
|
7224
|
+
}) => yi({
|
|
7225
|
+
name: et(e),
|
|
7219
7226
|
canTrack: !0
|
|
7220
|
-
}),
|
|
7227
|
+
}), Us = ({
|
|
7221
7228
|
contentId: e,
|
|
7222
7229
|
value: t
|
|
7223
|
-
}) =>
|
|
7224
|
-
name:
|
|
7230
|
+
}) => bi({
|
|
7231
|
+
name: et(e),
|
|
7225
7232
|
value: t,
|
|
7226
7233
|
canTrack: !0
|
|
7227
|
-
}),
|
|
7234
|
+
}), Ri = (e) => z(e.id) && z(e.variations) && Object.keys(e.variations).length > 0, Ds = ({
|
|
7228
7235
|
id: e,
|
|
7229
7236
|
variations: t
|
|
7230
7237
|
}) => {
|
|
@@ -7237,15 +7244,15 @@ const Os = (e, t, i = !0) => {
|
|
|
7237
7244
|
return s;
|
|
7238
7245
|
}
|
|
7239
7246
|
return e;
|
|
7240
|
-
},
|
|
7241
|
-
const t =
|
|
7242
|
-
return
|
|
7247
|
+
}, Ci = (e) => {
|
|
7248
|
+
const t = Ds(e);
|
|
7249
|
+
return Us({
|
|
7243
7250
|
contentId: e.id,
|
|
7244
7251
|
value: t
|
|
7245
7252
|
}).catch((i) => {
|
|
7246
7253
|
D.error("could not store A/B test variation: ", i);
|
|
7247
7254
|
}), t;
|
|
7248
|
-
},
|
|
7255
|
+
}, wi = ({
|
|
7249
7256
|
item: e,
|
|
7250
7257
|
testGroupId: t
|
|
7251
7258
|
}) => {
|
|
@@ -7258,7 +7265,7 @@ const Os = (e, t, i = !0) => {
|
|
|
7258
7265
|
testVariationId: i.id,
|
|
7259
7266
|
testVariationName: i.name || (i.id === e.id ? "Default" : "")
|
|
7260
7267
|
};
|
|
7261
|
-
},
|
|
7268
|
+
}, $s = ({
|
|
7262
7269
|
item: e,
|
|
7263
7270
|
canTrack: t
|
|
7264
7271
|
}) => {
|
|
@@ -7266,14 +7273,14 @@ const Os = (e, t, i = !0) => {
|
|
|
7266
7273
|
return e;
|
|
7267
7274
|
if (!e)
|
|
7268
7275
|
return;
|
|
7269
|
-
if (!
|
|
7276
|
+
if (!Ri(e))
|
|
7270
7277
|
return e;
|
|
7271
|
-
const i =
|
|
7278
|
+
const i = Ms({
|
|
7272
7279
|
contentId: e.id
|
|
7273
|
-
}) ||
|
|
7280
|
+
}) || Ci({
|
|
7274
7281
|
variations: e.variations,
|
|
7275
7282
|
id: e.id
|
|
7276
|
-
}), r =
|
|
7283
|
+
}), r = wi({
|
|
7277
7284
|
item: e,
|
|
7278
7285
|
testGroupId: i
|
|
7279
7286
|
});
|
|
@@ -7281,18 +7288,18 @@ const Os = (e, t, i = !0) => {
|
|
|
7281
7288
|
...e,
|
|
7282
7289
|
...r
|
|
7283
7290
|
};
|
|
7284
|
-
},
|
|
7291
|
+
}, js = async ({
|
|
7285
7292
|
item: e,
|
|
7286
7293
|
canTrack: t
|
|
7287
7294
|
}) => {
|
|
7288
|
-
if (!t || !
|
|
7295
|
+
if (!t || !Ri(e))
|
|
7289
7296
|
return e;
|
|
7290
|
-
const r = await
|
|
7297
|
+
const r = await Fs({
|
|
7291
7298
|
contentId: e.id
|
|
7292
|
-
}) ||
|
|
7299
|
+
}) || Ci({
|
|
7293
7300
|
variations: e.variations,
|
|
7294
7301
|
id: e.id
|
|
7295
|
-
}), n =
|
|
7302
|
+
}), n = wi({
|
|
7296
7303
|
item: e,
|
|
7297
7304
|
testGroupId: r
|
|
7298
7305
|
});
|
|
@@ -7300,40 +7307,40 @@ const Os = (e, t, i = !0) => {
|
|
|
7300
7307
|
...e,
|
|
7301
7308
|
...n
|
|
7302
7309
|
};
|
|
7303
|
-
},
|
|
7304
|
-
function
|
|
7310
|
+
}, je = (e) => z(e) ? e : !0;
|
|
7311
|
+
function Ge(e, t = null, i = ".") {
|
|
7305
7312
|
return Object.keys(e).reduce((r, n) => {
|
|
7306
7313
|
const s = e[n], a = [t, n].filter(Boolean).join(i);
|
|
7307
7314
|
return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
|
|
7308
7315
|
...r,
|
|
7309
|
-
...
|
|
7316
|
+
...Ge(s, a, i)
|
|
7310
7317
|
} : {
|
|
7311
7318
|
...r,
|
|
7312
7319
|
[a]: s
|
|
7313
7320
|
};
|
|
7314
7321
|
}, {});
|
|
7315
7322
|
}
|
|
7316
|
-
const Et = "builder.",
|
|
7323
|
+
const Et = "builder.", Gs = "options.", Ws = (e) => {
|
|
7317
7324
|
const t = {};
|
|
7318
7325
|
return e.forEach((i, r) => {
|
|
7319
7326
|
t[r] = i;
|
|
7320
7327
|
}), t;
|
|
7321
|
-
},
|
|
7328
|
+
}, Hs = (e) => {
|
|
7322
7329
|
if (!e)
|
|
7323
7330
|
return {};
|
|
7324
|
-
const t =
|
|
7331
|
+
const t = ki(e), i = {};
|
|
7325
7332
|
return Object.keys(t).forEach((r) => {
|
|
7326
7333
|
if (r.startsWith(Et)) {
|
|
7327
|
-
const n = r.replace(Et, "").replace(
|
|
7334
|
+
const n = r.replace(Et, "").replace(Gs, "");
|
|
7328
7335
|
i[n] = t[r];
|
|
7329
7336
|
}
|
|
7330
7337
|
}), i;
|
|
7331
|
-
},
|
|
7338
|
+
}, Ys = () => {
|
|
7332
7339
|
if (!V())
|
|
7333
7340
|
return {};
|
|
7334
7341
|
const e = new URLSearchParams(window.location.search);
|
|
7335
|
-
return
|
|
7336
|
-
},
|
|
7342
|
+
return Hs(e);
|
|
7343
|
+
}, ki = (e) => e instanceof URLSearchParams ? Ws(e) : e, qs = "v3", tt = (e) => {
|
|
7337
7344
|
const {
|
|
7338
7345
|
limit: t = 30,
|
|
7339
7346
|
userAttributes: i,
|
|
@@ -7344,45 +7351,45 @@ const Et = "builder.", $s = "options.", js = (e) => {
|
|
|
7344
7351
|
includeRefs: u = !0,
|
|
7345
7352
|
enrich: l,
|
|
7346
7353
|
locale: h,
|
|
7347
|
-
apiVersion: p =
|
|
7354
|
+
apiVersion: p = qs
|
|
7348
7355
|
} = e;
|
|
7349
7356
|
if (!a)
|
|
7350
7357
|
throw new Error("Missing API key");
|
|
7351
7358
|
if (!["v2", "v3"].includes(p))
|
|
7352
7359
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${p}'`);
|
|
7353
7360
|
const f = new URL(`https://cdn.builder.io/api/${p}/content/${s}?apiKey=${a}&limit=${t}&noTraverse=${n}&includeRefs=${u}${h ? `&locale=${h}` : ""}${l ? `&enrich=${l}` : ""}`), d = {
|
|
7354
|
-
...
|
|
7355
|
-
...
|
|
7356
|
-
}, g =
|
|
7361
|
+
...Ys(),
|
|
7362
|
+
...ki(e.options || {})
|
|
7363
|
+
}, g = Ge(d);
|
|
7357
7364
|
for (const m in g)
|
|
7358
7365
|
f.searchParams.set(m, String(g[m]));
|
|
7359
7366
|
if (i && f.searchParams.set("userAttributes", JSON.stringify(i)), r) {
|
|
7360
|
-
const m =
|
|
7367
|
+
const m = Ge({
|
|
7361
7368
|
query: r
|
|
7362
7369
|
});
|
|
7363
7370
|
for (const S in m)
|
|
7364
7371
|
f.searchParams.set(S, JSON.stringify(m[S]));
|
|
7365
7372
|
}
|
|
7366
7373
|
return f;
|
|
7367
|
-
},
|
|
7368
|
-
async function
|
|
7369
|
-
const t = await
|
|
7374
|
+
}, zs = (e) => "results" in e;
|
|
7375
|
+
async function Ni(e) {
|
|
7376
|
+
const t = await Js({
|
|
7370
7377
|
...e,
|
|
7371
7378
|
limit: 1
|
|
7372
7379
|
});
|
|
7373
7380
|
return t && t.results[0] || null;
|
|
7374
7381
|
}
|
|
7375
|
-
const
|
|
7376
|
-
const t =
|
|
7377
|
-
return await (await
|
|
7378
|
-
},
|
|
7379
|
-
const r =
|
|
7382
|
+
const Ks = async (e) => {
|
|
7383
|
+
const t = tt(e);
|
|
7384
|
+
return await (await gi(t.href)).json();
|
|
7385
|
+
}, Xs = async (e, t, i = tt(e)) => {
|
|
7386
|
+
const r = je(e.canTrack);
|
|
7380
7387
|
if (i.search.includes("preview="), !r || !(V() || Z === "reactNative"))
|
|
7381
7388
|
return t;
|
|
7382
7389
|
try {
|
|
7383
7390
|
const n = [];
|
|
7384
7391
|
for (const s of t.results)
|
|
7385
|
-
n.push(await
|
|
7392
|
+
n.push(await js({
|
|
7386
7393
|
item: s,
|
|
7387
7394
|
canTrack: r
|
|
7388
7395
|
}));
|
|
@@ -7392,10 +7399,10 @@ const qs = async (e) => {
|
|
|
7392
7399
|
}
|
|
7393
7400
|
return t;
|
|
7394
7401
|
};
|
|
7395
|
-
async function
|
|
7402
|
+
async function Js(e) {
|
|
7396
7403
|
try {
|
|
7397
|
-
const t =
|
|
7398
|
-
return
|
|
7404
|
+
const t = tt(e), i = await Ks(e);
|
|
7405
|
+
return zs(i) ? Xs(e, i) : (D.error("Error fetching data. ", {
|
|
7399
7406
|
url: t,
|
|
7400
7407
|
content: i,
|
|
7401
7408
|
options: e
|
|
@@ -7404,10 +7411,10 @@ async function Ks(e) {
|
|
|
7404
7411
|
return D.error("Error fetching data. ", t), null;
|
|
7405
7412
|
}
|
|
7406
7413
|
}
|
|
7407
|
-
function
|
|
7414
|
+
function Qs() {
|
|
7408
7415
|
return !V() || X() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
7409
7416
|
}
|
|
7410
|
-
const
|
|
7417
|
+
const Zs = N({
|
|
7411
7418
|
name: "enable-editor",
|
|
7412
7419
|
props: [
|
|
7413
7420
|
"canTrack",
|
|
@@ -7430,13 +7437,13 @@ const Js = N({
|
|
|
7430
7437
|
shouldSendResetCookie: !1,
|
|
7431
7438
|
httpReqsData: {},
|
|
7432
7439
|
clicked: !1,
|
|
7433
|
-
builderContext:
|
|
7440
|
+
builderContext: De
|
|
7434
7441
|
};
|
|
7435
7442
|
},
|
|
7436
7443
|
provide() {
|
|
7437
7444
|
const e = this;
|
|
7438
7445
|
return {
|
|
7439
|
-
[
|
|
7446
|
+
[De.key]: e.builderContextSignal
|
|
7440
7447
|
};
|
|
7441
7448
|
},
|
|
7442
7449
|
mounted() {
|
|
@@ -7444,7 +7451,7 @@ const Js = N({
|
|
|
7444
7451
|
if (this.apiKey || D.error(
|
|
7445
7452
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
7446
7453
|
), V()) {
|
|
7447
|
-
if (X() && (this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage),
|
|
7454
|
+
if (X() && (this.forceReRenderCount = this.forceReRenderCount + 1, window.addEventListener("message", this.processMessage), Os(), Is({
|
|
7448
7455
|
...this.locale ? {
|
|
7449
7456
|
locale: this.locale
|
|
7450
7457
|
} : {},
|
|
@@ -7458,14 +7465,14 @@ const Js = N({
|
|
|
7458
7465
|
this.builderContextSignal.componentInfos
|
|
7459
7466
|
).forEach((i) => {
|
|
7460
7467
|
var n;
|
|
7461
|
-
const r =
|
|
7468
|
+
const r = Qn(i);
|
|
7462
7469
|
(n = window.parent) == null || n.postMessage(r, "*");
|
|
7463
7470
|
}), window.addEventListener(
|
|
7464
7471
|
"builder:component:stateChangeListenerActivated",
|
|
7465
7472
|
this.emitStateUpdate
|
|
7466
7473
|
)), this.builderContextSignal.content) {
|
|
7467
7474
|
const i = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id;
|
|
7468
|
-
|
|
7475
|
+
$e({
|
|
7469
7476
|
type: "impression",
|
|
7470
7477
|
canTrack: this.canTrackToUse,
|
|
7471
7478
|
contentId: r,
|
|
@@ -7473,11 +7480,11 @@ const Js = N({
|
|
|
7473
7480
|
variationId: i !== r ? i : void 0
|
|
7474
7481
|
});
|
|
7475
7482
|
}
|
|
7476
|
-
if (
|
|
7483
|
+
if (Qs()) {
|
|
7477
7484
|
const i = new URL(location.href).searchParams, r = i.get("builder.preview"), n = i.get(
|
|
7478
7485
|
`builder.preview.${r}`
|
|
7479
7486
|
), s = i.get("apiKey") || i.get("builder.space");
|
|
7480
|
-
r === this.model && s === this.apiKey && (!this.content || n === this.content.id) &&
|
|
7487
|
+
r === this.model && s === this.apiKey && (!this.content || n === this.content.id) && Ni({
|
|
7481
7488
|
model: this.model,
|
|
7482
7489
|
apiKey: this.apiKey,
|
|
7483
7490
|
apiVersion: this.builderContextSignal.apiVersion
|
|
@@ -7608,13 +7615,13 @@ const Js = N({
|
|
|
7608
7615
|
var t, i;
|
|
7609
7616
|
if (this.builderContextSignal.content) {
|
|
7610
7617
|
const r = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, n = (i = this.builderContextSignal.content) == null ? void 0 : i.id;
|
|
7611
|
-
|
|
7618
|
+
$e({
|
|
7612
7619
|
type: "click",
|
|
7613
7620
|
canTrack: this.canTrackToUse,
|
|
7614
7621
|
contentId: n,
|
|
7615
7622
|
apiKey: this.apiKey,
|
|
7616
7623
|
variationId: r !== n ? r : void 0,
|
|
7617
|
-
...
|
|
7624
|
+
...Vs(e),
|
|
7618
7625
|
unique: !this.clicked
|
|
7619
7626
|
});
|
|
7620
7627
|
}
|
|
@@ -7633,7 +7640,7 @@ const Js = N({
|
|
|
7633
7640
|
);
|
|
7634
7641
|
},
|
|
7635
7642
|
handleRequest({ url: e, key: t }) {
|
|
7636
|
-
|
|
7643
|
+
gi(e).then((i) => i.json()).then((i) => {
|
|
7637
7644
|
var n, s;
|
|
7638
7645
|
const r = {
|
|
7639
7646
|
...this.builderContextSignal.rootState,
|
|
@@ -7682,8 +7689,8 @@ const Js = N({
|
|
|
7682
7689
|
return t;
|
|
7683
7690
|
}
|
|
7684
7691
|
}
|
|
7685
|
-
}),
|
|
7686
|
-
function
|
|
7692
|
+
}), ea = ["builder-content-id", "builder-model"];
|
|
7693
|
+
function ta(e, t, i, r, n, s) {
|
|
7687
7694
|
var a;
|
|
7688
7695
|
return e.builderContextSignal.content ? (b(), C("div", U({
|
|
7689
7696
|
key: e.forceReRenderCount,
|
|
@@ -7699,21 +7706,21 @@ function Zs(e, t, i, r, n, s) {
|
|
|
7699
7706
|
}
|
|
7700
7707
|
}), [
|
|
7701
7708
|
ae(e.$slots, "default")
|
|
7702
|
-
], 16,
|
|
7709
|
+
], 16, ea)) : L("", !0);
|
|
7703
7710
|
}
|
|
7704
|
-
const
|
|
7711
|
+
const ia = /* @__PURE__ */ O(Zs, [["render", ta]]), Pi = N({
|
|
7705
7712
|
render() {
|
|
7706
7713
|
return St("script", { id: this.id, innerHTML: this.scriptStr });
|
|
7707
7714
|
},
|
|
7708
7715
|
name: "inlined-script",
|
|
7709
7716
|
props: ["scriptStr", "id"]
|
|
7710
|
-
}),
|
|
7717
|
+
}), ra = Ai, na = N({
|
|
7711
7718
|
name: "content-component",
|
|
7712
7719
|
components: {
|
|
7713
|
-
EnableEditor:
|
|
7714
|
-
InlinedScript:
|
|
7715
|
-
ContentStyles:
|
|
7716
|
-
Blocks:
|
|
7720
|
+
EnableEditor: ia,
|
|
7721
|
+
InlinedScript: Pi,
|
|
7722
|
+
ContentStyles: as,
|
|
7723
|
+
Blocks: pi
|
|
7717
7724
|
},
|
|
7718
7725
|
props: [
|
|
7719
7726
|
"content",
|
|
@@ -7734,31 +7741,31 @@ const ea = /* @__PURE__ */ O(Js, [["render", Zs]]), Ni = N({
|
|
|
7734
7741
|
data() {
|
|
7735
7742
|
var e, t;
|
|
7736
7743
|
return {
|
|
7737
|
-
scriptStr:
|
|
7744
|
+
scriptStr: vn({
|
|
7738
7745
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
7739
7746
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
7740
7747
|
}),
|
|
7741
7748
|
registeredComponents: [
|
|
7742
|
-
...
|
|
7743
|
-
...
|
|
7749
|
+
...ft(),
|
|
7750
|
+
...dt,
|
|
7744
7751
|
...this.customComponents || []
|
|
7745
7752
|
].reduce(
|
|
7746
7753
|
(i, { component: r, ...n }) => ({
|
|
7747
7754
|
...i,
|
|
7748
7755
|
[n.name]: {
|
|
7749
|
-
component:
|
|
7750
|
-
...
|
|
7756
|
+
component: ra(r),
|
|
7757
|
+
...mt(n)
|
|
7751
7758
|
}
|
|
7752
7759
|
}),
|
|
7753
7760
|
{}
|
|
7754
7761
|
),
|
|
7755
7762
|
builderContextSignal: {
|
|
7756
|
-
content:
|
|
7763
|
+
content: us({
|
|
7757
7764
|
content: this.content,
|
|
7758
7765
|
data: this.data
|
|
7759
7766
|
}),
|
|
7760
7767
|
localState: void 0,
|
|
7761
|
-
rootState:
|
|
7768
|
+
rootState: os({
|
|
7762
7769
|
content: this.content,
|
|
7763
7770
|
data: this.data,
|
|
7764
7771
|
locale: this.locale
|
|
@@ -7768,13 +7775,13 @@ const ea = /* @__PURE__ */ O(Js, [["render", Zs]]), Ni = N({
|
|
|
7768
7775
|
apiKey: this.apiKey,
|
|
7769
7776
|
apiVersion: this.apiVersion,
|
|
7770
7777
|
componentInfos: [
|
|
7771
|
-
...
|
|
7772
|
-
...
|
|
7778
|
+
...ft(),
|
|
7779
|
+
...dt,
|
|
7773
7780
|
...this.customComponents || []
|
|
7774
7781
|
].reduce(
|
|
7775
7782
|
(i, { component: r, ...n }) => ({
|
|
7776
7783
|
...i,
|
|
7777
|
-
[n.name]:
|
|
7784
|
+
[n.name]: mt(n)
|
|
7778
7785
|
}),
|
|
7779
7786
|
{}
|
|
7780
7787
|
),
|
|
@@ -7783,13 +7790,21 @@ const ea = /* @__PURE__ */ O(Js, [["render", Zs]]), Ni = N({
|
|
|
7783
7790
|
TARGET: Z
|
|
7784
7791
|
};
|
|
7785
7792
|
},
|
|
7793
|
+
provide() {
|
|
7794
|
+
const e = this;
|
|
7795
|
+
return {
|
|
7796
|
+
[hi.key]: {
|
|
7797
|
+
registeredComponents: e.registeredComponents
|
|
7798
|
+
}
|
|
7799
|
+
};
|
|
7800
|
+
},
|
|
7786
7801
|
methods: {
|
|
7787
7802
|
contentSetState(e) {
|
|
7788
7803
|
this.builderContextSignal.rootState = e;
|
|
7789
7804
|
}
|
|
7790
7805
|
}
|
|
7791
7806
|
});
|
|
7792
|
-
function
|
|
7807
|
+
function sa(e, t, i, r, n, s) {
|
|
7793
7808
|
const a = P("inlined-script"), u = P("content-styles"), l = P("blocks"), h = P("enable-editor");
|
|
7794
7809
|
return b(), A(h, U({
|
|
7795
7810
|
content: e.content,
|
|
@@ -7804,7 +7819,7 @@ function ra(e, t, i, r, n, s) {
|
|
|
7804
7819
|
showContent: e.showContent,
|
|
7805
7820
|
builderContextSignal: e.builderContextSignal
|
|
7806
7821
|
}, {}), {
|
|
7807
|
-
default:
|
|
7822
|
+
default: We(() => {
|
|
7808
7823
|
var p, f, d, g, m, S, w;
|
|
7809
7824
|
return [
|
|
7810
7825
|
e.isSsrAbTest ? (b(), A(a, {
|
|
@@ -7827,12 +7842,12 @@ function ra(e, t, i, r, n, s) {
|
|
|
7827
7842
|
_: 1
|
|
7828
7843
|
}, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "classNameProp", "showContent", "builderContextSignal"]);
|
|
7829
7844
|
}
|
|
7830
|
-
const
|
|
7845
|
+
const aa = /* @__PURE__ */ O(na, [["render", sa]]), oa = N({
|
|
7831
7846
|
name: "content-variants",
|
|
7832
7847
|
components: {
|
|
7833
|
-
InlinedScript:
|
|
7848
|
+
InlinedScript: Pi,
|
|
7834
7849
|
InlinedStyles: Oe,
|
|
7835
|
-
ContentComponent:
|
|
7850
|
+
ContentComponent: aa
|
|
7836
7851
|
},
|
|
7837
7852
|
props: [
|
|
7838
7853
|
"canTrack",
|
|
@@ -7850,14 +7865,14 @@ const na = /* @__PURE__ */ O(ia, [["render", ra]]), sa = N({
|
|
|
7850
7865
|
],
|
|
7851
7866
|
data() {
|
|
7852
7867
|
return {
|
|
7853
|
-
shouldRenderVariants:
|
|
7854
|
-
canTrack:
|
|
7868
|
+
shouldRenderVariants: pn({
|
|
7869
|
+
canTrack: je(this.canTrack),
|
|
7855
7870
|
content: this.content
|
|
7856
7871
|
}),
|
|
7857
|
-
getScriptString:
|
|
7872
|
+
getScriptString: gn,
|
|
7858
7873
|
getVariants: Ee,
|
|
7859
|
-
getDefaultCanTrack:
|
|
7860
|
-
handleABTestingSync:
|
|
7874
|
+
getDefaultCanTrack: je,
|
|
7875
|
+
handleABTestingSync: $s,
|
|
7861
7876
|
TARGET: Z
|
|
7862
7877
|
};
|
|
7863
7878
|
},
|
|
@@ -7867,7 +7882,7 @@ const na = /* @__PURE__ */ O(ia, [["render", ra]]), sa = N({
|
|
|
7867
7882
|
computed: {
|
|
7868
7883
|
variantScriptStr() {
|
|
7869
7884
|
var e;
|
|
7870
|
-
return
|
|
7885
|
+
return yn(
|
|
7871
7886
|
Ee(this.content).map((t) => ({
|
|
7872
7887
|
id: t.testVariationId,
|
|
7873
7888
|
testRatio: t.testRatio
|
|
@@ -7880,7 +7895,7 @@ const na = /* @__PURE__ */ O(ia, [["render", ra]]), sa = N({
|
|
|
7880
7895
|
}
|
|
7881
7896
|
}
|
|
7882
7897
|
});
|
|
7883
|
-
function
|
|
7898
|
+
function ua(e, t, i, r, n, s) {
|
|
7884
7899
|
var h, p;
|
|
7885
7900
|
const a = P("inlined-script"), u = P("inlined-styles"), l = P("content-component");
|
|
7886
7901
|
return b(), C(W, null, [
|
|
@@ -7935,12 +7950,12 @@ function aa(e, t, i, r, n, s) {
|
|
|
7935
7950
|
}), null, 16, ["content", "classNameProp", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest"])
|
|
7936
7951
|
], 64);
|
|
7937
7952
|
}
|
|
7938
|
-
const
|
|
7953
|
+
const ca = /* @__PURE__ */ O(oa, [["render", ua]]), la = async ({
|
|
7939
7954
|
builderContextValue: e,
|
|
7940
7955
|
symbol: t
|
|
7941
7956
|
}) => {
|
|
7942
7957
|
if ((t == null ? void 0 : t.model) && (e == null ? void 0 : e.apiKey))
|
|
7943
|
-
return
|
|
7958
|
+
return Ni({
|
|
7944
7959
|
model: t.model,
|
|
7945
7960
|
apiKey: e.apiKey,
|
|
7946
7961
|
apiVersion: e.apiVersion,
|
|
@@ -7952,9 +7967,9 @@ const oa = /* @__PURE__ */ O(sa, [["render", aa]]), ua = async ({
|
|
|
7952
7967
|
}).catch((i) => {
|
|
7953
7968
|
D.error("Could not fetch symbol content: ", i);
|
|
7954
7969
|
});
|
|
7955
|
-
},
|
|
7970
|
+
}, ha = N({
|
|
7956
7971
|
name: "builder-symbol",
|
|
7957
|
-
components: { ContentVariants:
|
|
7972
|
+
components: { ContentVariants: ca },
|
|
7958
7973
|
props: [
|
|
7959
7974
|
"js",
|
|
7960
7975
|
"attributes",
|
|
@@ -7996,7 +8011,7 @@ const oa = /* @__PURE__ */ O(sa, [["render", aa]]), ua = async ({
|
|
|
7996
8011
|
},
|
|
7997
8012
|
methods: {
|
|
7998
8013
|
setContent() {
|
|
7999
|
-
this.contentToUse ||
|
|
8014
|
+
this.contentToUse || la({
|
|
8000
8015
|
symbol: this.symbol,
|
|
8001
8016
|
builderContextValue: this.builderContext
|
|
8002
8017
|
}).then((e) => {
|
|
@@ -8014,7 +8029,7 @@ const oa = /* @__PURE__ */ O(sa, [["render", aa]]), ua = async ({
|
|
|
8014
8029
|
}
|
|
8015
8030
|
}
|
|
8016
8031
|
});
|
|
8017
|
-
function
|
|
8032
|
+
function pa(e, t, i, r, n, s) {
|
|
8018
8033
|
var u, l, h, p;
|
|
8019
8034
|
const a = P("content-variants");
|
|
8020
8035
|
return b(), C("div", U({
|
|
@@ -8036,8 +8051,8 @@ function la(e, t, i, r, n, s) {
|
|
|
8036
8051
|
}, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content"])
|
|
8037
8052
|
], 16);
|
|
8038
8053
|
}
|
|
8039
|
-
const
|
|
8040
|
-
function
|
|
8054
|
+
const fa = /* @__PURE__ */ O(ha, [["render", pa]]), xt = {};
|
|
8055
|
+
function ya(e) {
|
|
8041
8056
|
if (V()) {
|
|
8042
8057
|
Object.assign(xt, e);
|
|
8043
8058
|
const t = {
|
|
@@ -8048,32 +8063,32 @@ function ma(e) {
|
|
|
8048
8063
|
}
|
|
8049
8064
|
}
|
|
8050
8065
|
export {
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8066
|
+
De as B,
|
|
8067
|
+
Xr as C,
|
|
8068
|
+
Zr as F,
|
|
8069
|
+
un as I,
|
|
8070
|
+
hn as S,
|
|
8056
8071
|
Z as T,
|
|
8057
|
-
|
|
8072
|
+
Ln as V,
|
|
8058
8073
|
O as _,
|
|
8059
8074
|
li as a,
|
|
8060
8075
|
ci as b,
|
|
8061
|
-
|
|
8062
|
-
|
|
8076
|
+
Rr as c,
|
|
8077
|
+
Qs as d,
|
|
8063
8078
|
Re as e,
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8079
|
+
Qn as f,
|
|
8080
|
+
Js as g,
|
|
8081
|
+
Ni as h,
|
|
8067
8082
|
X as i,
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8083
|
+
Hs as j,
|
|
8084
|
+
Fi as k,
|
|
8085
|
+
pi as l,
|
|
8086
|
+
fa as m,
|
|
8087
|
+
Pn as n,
|
|
8088
|
+
ca as o,
|
|
8089
|
+
Xs as p,
|
|
8090
|
+
ma as q,
|
|
8091
|
+
Ts as r,
|
|
8092
|
+
ya as s,
|
|
8093
|
+
ga as t
|
|
8079
8094
|
};
|