@builder.io/sdk-react-nextjs 0.12.3 → 0.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{node/USE_CLIENT_BUNDLE-98a4fbf4.js → browser/USE_CLIENT_BUNDLE-e6d429be.js} +188 -187
- package/lib/browser/{USE_CLIENT_BUNDLE-64b6ec10.cjs → USE_CLIENT_BUNDLE-e9e1ee85.cjs} +3 -3
- package/lib/{edge/USE_SERVER_BUNDLE-4e9af8f5.js → browser/USE_SERVER_BUNDLE-44c49b1e.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-e79e6b55.cjs → browser/USE_SERVER_BUNDLE-9bcc0ad4.cjs} +1 -1
- package/lib/browser/bundle-0e5cec1c.cjs +168 -0
- package/lib/browser/{bundle-f3e8cd29.js → bundle-bab67847.js} +573 -516
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +14 -14
- package/lib/{browser/USE_CLIENT_BUNDLE-e89d3175.js → edge/USE_CLIENT_BUNDLE-8d251b8b.js} +188 -187
- package/lib/{node/USE_CLIENT_BUNDLE-990b655a.cjs → edge/USE_CLIENT_BUNDLE-d87c391a.cjs} +3 -3
- package/lib/{node/USE_SERVER_BUNDLE-c86a1fb8.cjs → edge/USE_SERVER_BUNDLE-816ab6e4.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-b231d861.js → edge/USE_SERVER_BUNDLE-c0911af0.js} +1 -1
- package/lib/edge/{bundle-cb191300.js → bundle-28d9d04c.js} +1018 -961
- package/lib/edge/{bundle-d4f509a3.cjs → bundle-e64fe0fd.cjs} +33 -37
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +14 -14
- package/lib/{edge/USE_CLIENT_BUNDLE-a3258a60.js → node/USE_CLIENT_BUNDLE-75f921e2.js} +188 -187
- package/lib/{edge/USE_CLIENT_BUNDLE-2aed408a.cjs → node/USE_CLIENT_BUNDLE-ee5a9d6f.cjs} +3 -3
- package/lib/{browser/USE_SERVER_BUNDLE-f34c0814.cjs → node/USE_SERVER_BUNDLE-793c12c9.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-d6bec4ec.js → node/USE_SERVER_BUNDLE-86d90afe.js} +1 -1
- package/lib/node/{bundle-11daeaca.js → bundle-031e3608.js} +348 -291
- package/lib/node/{bundle-b2d68b60.cjs → bundle-72df28b3.cjs} +6 -10
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +14 -14
- package/package.json +1 -1
- package/types/cjs/blocks/button/button.types.d.ts +2 -1
- package/types/cjs/blocks/columns/columns.types.d.ts +3 -3
- package/types/cjs/blocks/symbol/symbol.types.d.ts +2 -2
- package/types/cjs/components/block/block.d.ts +1 -0
- package/types/cjs/components/block/components/block-wrapper.d.ts +1 -0
- package/types/cjs/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
- package/types/cjs/components/block/components/repeated-block.d.ts +3 -5
- package/types/cjs/components/blocks/blocks.types.d.ts +1 -0
- package/types/cjs/components/content-variants/content-variants.types.d.ts +6 -2
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/get-block-properties.d.ts +5 -1
- package/types/cjs/functions/get-class-prop-name.d.ts +1 -0
- package/types/cjs/functions/get-style.d.ts +12 -0
- package/types/cjs/functions/transform-block-properties.d.ts +7 -5
- package/types/cjs/functions/transform-style-property.d.ts +7 -0
- package/types/cjs/types/builder-block.d.ts +1 -0
- package/types/cjs/types/builder-props.d.ts +3 -0
- package/types/esm/blocks/button/button.types.d.ts +2 -1
- package/types/esm/blocks/columns/columns.types.d.ts +3 -3
- package/types/esm/blocks/symbol/symbol.types.d.ts +2 -2
- package/types/esm/components/block/block.d.ts +1 -0
- package/types/esm/components/block/components/block-wrapper.d.ts +1 -0
- package/types/esm/components/block/components/component-ref/component-ref.helpers.d.ts +8 -1
- package/types/esm/components/block/components/repeated-block.d.ts +3 -5
- package/types/esm/components/blocks/blocks.types.d.ts +1 -0
- package/types/esm/components/content-variants/content-variants.types.d.ts +6 -2
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/get-block-properties.d.ts +5 -1
- package/types/esm/functions/get-class-prop-name.d.ts +1 -0
- package/types/esm/functions/get-style.d.ts +12 -0
- package/types/esm/functions/transform-block-properties.d.ts +7 -5
- package/types/esm/functions/transform-style-property.d.ts +7 -0
- package/types/esm/types/builder-block.d.ts +1 -0
- package/types/esm/types/builder-props.d.ts +3 -0
- package/lib/browser/bundle-50ff23eb.cjs +0 -172
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import { LRUCache as
|
|
2
|
-
import { jsx as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { LRUCache as Zr } from "lru-cache";
|
|
2
|
+
import { jsx as C, Fragment as L, jsxs as xe } from "react/jsx-runtime";
|
|
3
|
+
import { I as Qr, B as eo, a as to, D as no, b as ro, C as oo, E as io, F as ao, c as so, d as lo, S as co, V as uo, e as fo } from "./USE_CLIENT_BUNDLE-8d251b8b.js";
|
|
4
|
+
import "react";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
|
|
6
|
+
const po = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ra = (e) => typeof e == "string" && po.has(e.toLowerCase()), he = "rsc", Xt = () => {
|
|
7
|
+
switch (he) {
|
|
8
|
+
case "react":
|
|
9
|
+
case "reactNative":
|
|
10
|
+
case "rsc":
|
|
11
|
+
return "className";
|
|
12
|
+
case "svelte":
|
|
13
|
+
case "vue":
|
|
14
|
+
case "solid":
|
|
15
|
+
case "qwik":
|
|
16
|
+
return "class";
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
function ho(e) {
|
|
7
20
|
var t;
|
|
8
21
|
return {
|
|
9
22
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -23,21 +36,20 @@ const at = "[Builder.io]: ", q = {
|
|
|
23
36
|
function G() {
|
|
24
37
|
return typeof window < "u" && typeof document < "u";
|
|
25
38
|
}
|
|
26
|
-
|
|
27
|
-
function fo() {
|
|
39
|
+
function mo() {
|
|
28
40
|
return G() && window.self !== window.top;
|
|
29
41
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
42
|
+
function Yt() {
|
|
43
|
+
return mo() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
32
44
|
}
|
|
33
|
-
const
|
|
45
|
+
const go = () => {
|
|
34
46
|
if (G()) {
|
|
35
47
|
const e = new URL(location.href);
|
|
36
48
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
37
49
|
} else
|
|
38
50
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
39
|
-
},
|
|
40
|
-
const e =
|
|
51
|
+
}, yo = () => typeof navigator == "object" && navigator.userAgent || "", sr = () => {
|
|
52
|
+
const e = yo(), t = {
|
|
41
53
|
Android() {
|
|
42
54
|
return e.match(/Android/i);
|
|
43
55
|
},
|
|
@@ -54,15 +66,15 @@ const po = () => {
|
|
|
54
66
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
55
67
|
},
|
|
56
68
|
any() {
|
|
57
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
69
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || he === "reactNative";
|
|
58
70
|
}
|
|
59
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
71
|
+
}, n = e.match(/Tablet|iPad/i), r = go();
|
|
60
72
|
return {
|
|
61
73
|
urlPath: r == null ? void 0 : r.pathname,
|
|
62
74
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
63
75
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
64
76
|
};
|
|
65
|
-
},
|
|
77
|
+
}, lr = ({
|
|
66
78
|
builder: e,
|
|
67
79
|
context: t,
|
|
68
80
|
event: n,
|
|
@@ -74,14 +86,14 @@ const po = () => {
|
|
|
74
86
|
builder: e,
|
|
75
87
|
context: t,
|
|
76
88
|
event: n
|
|
77
|
-
}),
|
|
78
|
-
isEditing:
|
|
89
|
+
}), vo = () => ({
|
|
90
|
+
isEditing: Yt(),
|
|
79
91
|
isBrowser: G(),
|
|
80
92
|
isServer: !G(),
|
|
81
|
-
getUserAttributes: () =>
|
|
82
|
-
}),
|
|
93
|
+
getUserAttributes: () => sr()
|
|
94
|
+
}), bo = (e, {
|
|
83
95
|
isExpression: t = !0
|
|
84
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
96
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, So = ({
|
|
85
97
|
code: e,
|
|
86
98
|
builder: t,
|
|
87
99
|
context: n,
|
|
@@ -90,15 +102,15 @@ const po = () => {
|
|
|
90
102
|
rootSetState: a,
|
|
91
103
|
rootState: s
|
|
92
104
|
}) => {
|
|
93
|
-
const u =
|
|
105
|
+
const u = lr({
|
|
94
106
|
builder: t,
|
|
95
107
|
context: n,
|
|
96
108
|
event: r,
|
|
97
|
-
state:
|
|
109
|
+
state: wo(s, o, a)
|
|
98
110
|
});
|
|
99
111
|
return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
|
|
100
112
|
};
|
|
101
|
-
function
|
|
113
|
+
function wo(e, t, n) {
|
|
102
114
|
if (e === t)
|
|
103
115
|
throw new Error("rootState === localState");
|
|
104
116
|
return new Proxy(e, {
|
|
@@ -110,25 +122,25 @@ function vo(e, t, n) {
|
|
|
110
122
|
}
|
|
111
123
|
});
|
|
112
124
|
}
|
|
113
|
-
const
|
|
125
|
+
const cr = (e, t, n) => {
|
|
114
126
|
if (Object(e) !== e)
|
|
115
127
|
return e;
|
|
116
128
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
117
129
|
return r.slice(0, -1).reduce((o, a, s) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
118
130
|
};
|
|
119
|
-
var N,
|
|
131
|
+
var N, xo = function(e) {
|
|
120
132
|
function t(i) {
|
|
121
|
-
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i &&
|
|
133
|
+
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && zr.test(String.fromCharCode(i));
|
|
122
134
|
}
|
|
123
135
|
function n(i) {
|
|
124
|
-
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i &&
|
|
136
|
+
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Ln.test(String.fromCharCode(i));
|
|
125
137
|
}
|
|
126
138
|
function r(i, l) {
|
|
127
|
-
for (var c =
|
|
139
|
+
for (var c = g, p = 1, T = 0; ; ) {
|
|
128
140
|
it.lastIndex = T;
|
|
129
|
-
var
|
|
130
|
-
if (
|
|
131
|
-
++p, T =
|
|
141
|
+
var _ = it.exec(c);
|
|
142
|
+
if (_ && _.index < i)
|
|
143
|
+
++p, T = _.index + _[0].length;
|
|
132
144
|
else
|
|
133
145
|
break;
|
|
134
146
|
}
|
|
@@ -146,75 +158,75 @@ var N, bo = function(e) {
|
|
|
146
158
|
};
|
|
147
159
|
}
|
|
148
160
|
function a() {
|
|
149
|
-
this.line =
|
|
161
|
+
this.line = Se, this.ab = f - ae;
|
|
150
162
|
}
|
|
151
163
|
function s(i, l) {
|
|
152
164
|
Ce = f, O.C && (Et = new a()), I = i, d(), Q = l, Ue = i.m;
|
|
153
165
|
}
|
|
154
166
|
function u() {
|
|
155
|
-
for (var i = f, l = O.va && O.C && new a(), c =
|
|
156
|
-
++f, c =
|
|
157
|
-
O.va && O.va(!1,
|
|
167
|
+
for (var i = f, l = O.va && O.C && new a(), c = g.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
168
|
+
++f, c = g.charCodeAt(f);
|
|
169
|
+
O.va && O.va(!1, g.slice(i + 2, f), i, f, l, O.C && new a());
|
|
158
170
|
}
|
|
159
171
|
function d() {
|
|
160
172
|
for (; f < ke; ) {
|
|
161
|
-
var i =
|
|
173
|
+
var i = g.charCodeAt(f);
|
|
162
174
|
if (i === 32)
|
|
163
175
|
++f;
|
|
164
176
|
else if (i === 13)
|
|
165
|
-
++f, i =
|
|
177
|
+
++f, i = g.charCodeAt(f), i === 10 && ++f, O.C && (++Se, ae = f);
|
|
166
178
|
else if (i === 10 || i === 8232 || i === 8233)
|
|
167
|
-
++f, O.C && (++
|
|
179
|
+
++f, O.C && (++Se, ae = f);
|
|
168
180
|
else if (8 < i && 14 > i)
|
|
169
181
|
++f;
|
|
170
182
|
else if (i === 47)
|
|
171
|
-
if (i =
|
|
183
|
+
if (i = g.charCodeAt(f + 1), i === 42) {
|
|
172
184
|
i = void 0;
|
|
173
|
-
var l = O.va && O.C && new a(), c = f, p =
|
|
185
|
+
var l = O.va && O.C && new a(), c = f, p = g.indexOf("*/", f += 2);
|
|
174
186
|
if (p === -1 && r(f - 2, "Unterminated comment"), f = p + 2, O.C)
|
|
175
|
-
for (it.lastIndex = c; (i = it.exec(
|
|
176
|
-
++
|
|
177
|
-
O.va && O.va(!0,
|
|
187
|
+
for (it.lastIndex = c; (i = it.exec(g)) && i.index < f; )
|
|
188
|
+
++Se, ae = i.index + i[0].length;
|
|
189
|
+
O.va && O.va(!0, g.slice(c + 2, p), c, f, l, O.C && new a());
|
|
178
190
|
} else if (i === 47)
|
|
179
191
|
u();
|
|
180
192
|
else
|
|
181
193
|
break;
|
|
182
194
|
else if (i === 160)
|
|
183
195
|
++f;
|
|
184
|
-
else if (5760 <= i &&
|
|
196
|
+
else if (5760 <= i && Jr.test(String.fromCharCode(i)))
|
|
185
197
|
++f;
|
|
186
198
|
else
|
|
187
199
|
break;
|
|
188
200
|
}
|
|
189
201
|
}
|
|
190
|
-
function
|
|
202
|
+
function k(i) {
|
|
191
203
|
switch (i) {
|
|
192
204
|
case 46:
|
|
193
|
-
i =
|
|
205
|
+
i = g.charCodeAt(f + 1), 48 <= i && 57 >= i ? v(!0) : (++f, s(Nn));
|
|
194
206
|
return;
|
|
195
207
|
case 40:
|
|
196
|
-
return ++f, s(
|
|
208
|
+
return ++f, s(se);
|
|
197
209
|
case 41:
|
|
198
|
-
return ++f, s(
|
|
210
|
+
return ++f, s(re);
|
|
199
211
|
case 59:
|
|
200
|
-
return ++f, s(
|
|
212
|
+
return ++f, s(le);
|
|
201
213
|
case 44:
|
|
202
|
-
return ++f, s(
|
|
214
|
+
return ++f, s(ye);
|
|
203
215
|
case 91:
|
|
204
216
|
return ++f, s(Mt);
|
|
205
217
|
case 93:
|
|
206
218
|
return ++f, s(Ut);
|
|
207
219
|
case 123:
|
|
208
|
-
return ++f, s(
|
|
220
|
+
return ++f, s(De);
|
|
209
221
|
case 125:
|
|
210
222
|
return ++f, s(Ie);
|
|
211
223
|
case 58:
|
|
212
|
-
return ++f, s(
|
|
224
|
+
return ++f, s(_e);
|
|
213
225
|
case 63:
|
|
214
|
-
return ++f, s(
|
|
226
|
+
return ++f, s(Bn);
|
|
215
227
|
case 48:
|
|
216
|
-
if (i =
|
|
217
|
-
f += 2, i = j(16), i === null && r(
|
|
228
|
+
if (i = g.charCodeAt(f + 1), i === 120 || i === 88) {
|
|
229
|
+
f += 2, i = j(16), i === null && r(D + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(Ve, i);
|
|
218
230
|
return;
|
|
219
231
|
}
|
|
220
232
|
case 49:
|
|
@@ -226,20 +238,20 @@ var N, bo = function(e) {
|
|
|
226
238
|
case 55:
|
|
227
239
|
case 56:
|
|
228
240
|
case 57:
|
|
229
|
-
return
|
|
241
|
+
return v(!1);
|
|
230
242
|
case 34:
|
|
231
243
|
case 39:
|
|
232
244
|
f++;
|
|
233
245
|
for (var l = ""; ; ) {
|
|
234
|
-
f >= ke && r(
|
|
235
|
-
var c =
|
|
246
|
+
f >= ke && r(D, "Unterminated string constant");
|
|
247
|
+
var c = g.charCodeAt(f);
|
|
236
248
|
if (c === i) {
|
|
237
249
|
++f, s(tt, l);
|
|
238
250
|
break;
|
|
239
251
|
}
|
|
240
252
|
if (c === 92) {
|
|
241
|
-
c =
|
|
242
|
-
var p = /^[0-7]+/.exec(
|
|
253
|
+
c = g.charCodeAt(++f);
|
|
254
|
+
var p = /^[0-7]+/.exec(g.slice(f, f + 3));
|
|
243
255
|
for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
|
|
244
256
|
p = p.slice(0, -1);
|
|
245
257
|
if (p === "0" && (p = null), ++f, p)
|
|
@@ -278,69 +290,69 @@ var N, bo = function(e) {
|
|
|
278
290
|
l += "\0";
|
|
279
291
|
break;
|
|
280
292
|
case 13:
|
|
281
|
-
|
|
293
|
+
g.charCodeAt(f) === 10 && ++f;
|
|
282
294
|
case 10:
|
|
283
|
-
O.C && (
|
|
295
|
+
O.C && (ae = f, ++Se);
|
|
284
296
|
break;
|
|
285
297
|
default:
|
|
286
298
|
l += String.fromCharCode(c);
|
|
287
299
|
}
|
|
288
300
|
} else
|
|
289
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
301
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(D, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
|
|
290
302
|
}
|
|
291
303
|
return;
|
|
292
304
|
case 47:
|
|
293
|
-
i =
|
|
305
|
+
i = g.charCodeAt(f + 1), Ue ? (++f, P()) : i === 61 ? S(we, 2) : S(Mn, 1);
|
|
294
306
|
return;
|
|
295
307
|
case 37:
|
|
296
308
|
case 42:
|
|
297
|
-
|
|
309
|
+
g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(Gr, 1);
|
|
298
310
|
return;
|
|
299
311
|
case 124:
|
|
300
312
|
case 38:
|
|
301
|
-
l =
|
|
313
|
+
l = g.charCodeAt(f + 1), l === i ? S(i === 124 ? Vn : Dn, 2) : l === 61 ? S(we, 2) : S(i === 124 ? Dr : Lr, 1);
|
|
302
314
|
return;
|
|
303
315
|
case 94:
|
|
304
|
-
|
|
316
|
+
g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(_r, 1);
|
|
305
317
|
return;
|
|
306
318
|
case 43:
|
|
307
319
|
case 45:
|
|
308
|
-
l =
|
|
320
|
+
l = g.charCodeAt(f + 1), l === i ? l === 45 && g.charCodeAt(f + 2) === 62 && ot.test(g.slice(ge, f)) ? (f += 3, u(), d(), E()) : S(Vr, 2) : l === 61 ? S(we, 2) : S(Kr, 1);
|
|
309
321
|
return;
|
|
310
322
|
case 60:
|
|
311
323
|
case 62:
|
|
312
|
-
l =
|
|
324
|
+
l = g.charCodeAt(f + 1), c = 1, l === i ? (c = i === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? S(we, c + 1) : S(Hr, c)) : l === 33 && i === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), E()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), S($r, c));
|
|
313
325
|
return;
|
|
314
326
|
case 61:
|
|
315
327
|
case 33:
|
|
316
|
-
|
|
328
|
+
g.charCodeAt(f + 1) === 61 ? S(Wr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : S(i === 61 ? Un : Fn, 1);
|
|
317
329
|
return;
|
|
318
330
|
case 126:
|
|
319
|
-
return
|
|
331
|
+
return S(Fn, 1);
|
|
320
332
|
}
|
|
321
333
|
return !1;
|
|
322
334
|
}
|
|
323
|
-
function
|
|
324
|
-
if (i ? f =
|
|
335
|
+
function E(i) {
|
|
336
|
+
if (i ? f = D + 1 : D = f, O.C && (Ct = new a()), i)
|
|
325
337
|
return P();
|
|
326
338
|
if (f >= ke)
|
|
327
339
|
return s(At);
|
|
328
|
-
if (i =
|
|
340
|
+
if (i = g.charCodeAt(f), n(i) || i === 92)
|
|
329
341
|
return $();
|
|
330
|
-
if (
|
|
331
|
-
if (i = String.fromCharCode(i), i === "\\" ||
|
|
342
|
+
if (k(i) === !1) {
|
|
343
|
+
if (i = String.fromCharCode(i), i === "\\" || Ln.test(i))
|
|
332
344
|
return $();
|
|
333
345
|
r(f, "Unexpected character '" + i + "'");
|
|
334
346
|
}
|
|
335
347
|
}
|
|
336
|
-
function
|
|
337
|
-
var c =
|
|
348
|
+
function S(i, l) {
|
|
349
|
+
var c = g.slice(f, f + l);
|
|
338
350
|
f += l, s(i, c);
|
|
339
351
|
}
|
|
340
352
|
function P() {
|
|
341
353
|
for (var i, l, c = f; ; ) {
|
|
342
354
|
f >= ke && r(c, "Unterminated regexp");
|
|
343
|
-
var p =
|
|
355
|
+
var p = g.charAt(f);
|
|
344
356
|
if (ot.test(p) && r(c, "Unterminated regexp"), i)
|
|
345
357
|
i = !1;
|
|
346
358
|
else {
|
|
@@ -354,288 +366,288 @@ var N, bo = function(e) {
|
|
|
354
366
|
}
|
|
355
367
|
++f;
|
|
356
368
|
}
|
|
357
|
-
i =
|
|
369
|
+
i = g.slice(c, f), ++f, (l = B()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
358
370
|
try {
|
|
359
371
|
var T = new RegExp(i, l);
|
|
360
|
-
} catch (
|
|
361
|
-
throw
|
|
372
|
+
} catch (_) {
|
|
373
|
+
throw _ instanceof SyntaxError && r(c, _.message), _;
|
|
362
374
|
}
|
|
363
|
-
s(
|
|
375
|
+
s(hn, T);
|
|
364
376
|
}
|
|
365
377
|
function j(i, l) {
|
|
366
|
-
for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l,
|
|
367
|
-
var X =
|
|
378
|
+
for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l, _ = 0; _ < T; ++_) {
|
|
379
|
+
var X = g.charCodeAt(f);
|
|
368
380
|
if (X = 97 <= X ? X - 97 + 10 : 65 <= X ? X - 65 + 10 : 48 <= X && 57 >= X ? X - 48 : 1 / 0, X >= i)
|
|
369
381
|
break;
|
|
370
382
|
++f, p = p * i + X;
|
|
371
383
|
}
|
|
372
384
|
return f === c || l !== void 0 && f - c !== l ? null : p;
|
|
373
385
|
}
|
|
374
|
-
function
|
|
375
|
-
var l = f, c = !1, p =
|
|
376
|
-
i || j(10) !== null || r(l, "Invalid number"),
|
|
386
|
+
function v(i) {
|
|
387
|
+
var l = f, c = !1, p = g.charCodeAt(f) === 48;
|
|
388
|
+
i || j(10) !== null || r(l, "Invalid number"), g.charCodeAt(f) === 46 && (++f, j(10), c = !0), i = g.charCodeAt(f), (i === 69 || i === 101) && (i = g.charCodeAt(++f), i !== 43 && i !== 45 || ++f, j(10) === null && r(l, "Invalid number"), c = !0), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), i = g.slice(l, f);
|
|
377
389
|
var T;
|
|
378
390
|
c ? T = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || z ? r(l, "Invalid number") : T = parseInt(i, 8) : T = parseInt(i, 10), s(Ve, T);
|
|
379
391
|
}
|
|
380
392
|
function x(i) {
|
|
381
|
-
return i = j(16, i), i === null && r(
|
|
393
|
+
return i = j(16, i), i === null && r(D, "Bad character escape sequence"), i;
|
|
382
394
|
}
|
|
383
395
|
function B() {
|
|
384
396
|
Te = !1;
|
|
385
397
|
for (var i, l = !0, c = f; ; ) {
|
|
386
|
-
var p =
|
|
398
|
+
var p = g.charCodeAt(f);
|
|
387
399
|
if (t(p))
|
|
388
|
-
Te && (i +=
|
|
400
|
+
Te && (i += g.charAt(f)), ++f;
|
|
389
401
|
else if (p === 92) {
|
|
390
|
-
Te || (i =
|
|
402
|
+
Te || (i = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, p = x(4);
|
|
391
403
|
var T = String.fromCharCode(p);
|
|
392
404
|
T || r(f - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(f - 4, "Invalid Unicode escape"), i += T;
|
|
393
405
|
} else
|
|
394
406
|
break;
|
|
395
407
|
l = !1;
|
|
396
408
|
}
|
|
397
|
-
return Te ? i :
|
|
409
|
+
return Te ? i : g.slice(c, f);
|
|
398
410
|
}
|
|
399
411
|
function $() {
|
|
400
412
|
var i = B(), l = Ee;
|
|
401
|
-
!Te &&
|
|
413
|
+
!Te && Yr(i) && (l = Fr[i]), s(l, i);
|
|
402
414
|
}
|
|
403
|
-
function
|
|
404
|
-
It =
|
|
415
|
+
function m() {
|
|
416
|
+
It = D, ge = Ce, Tt = Et, E();
|
|
405
417
|
}
|
|
406
|
-
function
|
|
407
|
-
if (z = i, f =
|
|
408
|
-
for (; f <
|
|
409
|
-
|
|
410
|
-
`,
|
|
411
|
-
d(),
|
|
418
|
+
function ee(i) {
|
|
419
|
+
if (z = i, f = D, O.C)
|
|
420
|
+
for (; f < ae; )
|
|
421
|
+
ae = g.lastIndexOf(`
|
|
422
|
+
`, ae - 2) + 1, --Se;
|
|
423
|
+
d(), E();
|
|
412
424
|
}
|
|
413
|
-
function
|
|
414
|
-
this.type = null, this.start =
|
|
425
|
+
function te() {
|
|
426
|
+
this.type = null, this.start = D, this.end = null;
|
|
415
427
|
}
|
|
416
428
|
function Z() {
|
|
417
429
|
this.start = Ct, this.end = null, kt && (this.source = kt);
|
|
418
430
|
}
|
|
419
431
|
function M() {
|
|
420
|
-
var i = new
|
|
421
|
-
return O.C && (i.X = new Z()), O.vb && (i.sourceFile = O.vb), O.Xa && (i.j = [
|
|
432
|
+
var i = new te();
|
|
433
|
+
return O.C && (i.X = new Z()), O.vb && (i.sourceFile = O.vb), O.Xa && (i.j = [D, 0]), i;
|
|
422
434
|
}
|
|
423
|
-
function
|
|
424
|
-
var l = new
|
|
435
|
+
function me(i) {
|
|
436
|
+
var l = new te();
|
|
425
437
|
return l.start = i.start, O.C && (l.X = new Z(), l.X.start = i.X.start), O.Xa && (l.j = [i.j[0], 0]), l;
|
|
426
438
|
}
|
|
427
439
|
function A(i, l) {
|
|
428
|
-
return i.type = l, i.end =
|
|
440
|
+
return i.type = l, i.end = ge, O.C && (i.X.end = Tt), O.Xa && (i.j[1] = ge), i;
|
|
429
441
|
}
|
|
430
442
|
function gt(i) {
|
|
431
443
|
return i.type === "ExpressionStatement" && i.la.type === "Literal" && i.la.value === "use strict";
|
|
432
444
|
}
|
|
433
445
|
function U(i) {
|
|
434
|
-
return I === i ? (
|
|
446
|
+
return I === i ? (m(), !0) : !1;
|
|
435
447
|
}
|
|
436
448
|
function Ze() {
|
|
437
|
-
return !O.fc && (I === At || I === Ie || ot.test(
|
|
449
|
+
return !O.fc && (I === At || I === Ie || ot.test(g.slice(ge, D)));
|
|
438
450
|
}
|
|
439
451
|
function be() {
|
|
440
|
-
U(
|
|
452
|
+
U(le) || Ze() || oe();
|
|
441
453
|
}
|
|
442
454
|
function F(i) {
|
|
443
|
-
I === i ?
|
|
455
|
+
I === i ? m() : oe();
|
|
444
456
|
}
|
|
445
|
-
function
|
|
446
|
-
r(
|
|
457
|
+
function oe() {
|
|
458
|
+
r(D, "Unexpected token");
|
|
447
459
|
}
|
|
448
460
|
function Qe(i) {
|
|
449
461
|
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), z && i.type === "Identifier" && rt(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
|
|
450
462
|
}
|
|
451
|
-
function
|
|
452
|
-
(I ===
|
|
463
|
+
function ne() {
|
|
464
|
+
(I === Mn || I === we && Q === "/=") && E(!0);
|
|
453
465
|
var i = I, l = M();
|
|
454
466
|
switch (i) {
|
|
455
467
|
case Ot:
|
|
456
|
-
case
|
|
457
|
-
|
|
468
|
+
case gn:
|
|
469
|
+
m();
|
|
458
470
|
var c = i === Ot;
|
|
459
|
-
U(
|
|
471
|
+
U(le) || Ze() ? l.label = null : I !== Ee ? oe() : (l.label = ie(), be());
|
|
460
472
|
for (var p = 0; p < V.length; ++p) {
|
|
461
473
|
var T = V[p];
|
|
462
474
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
463
475
|
break;
|
|
464
476
|
}
|
|
465
477
|
return p === V.length && r(l.start, "Unsyntactic " + i.l), A(l, c ? "BreakStatement" : "ContinueStatement");
|
|
466
|
-
case
|
|
467
|
-
return
|
|
468
|
-
case
|
|
469
|
-
return
|
|
478
|
+
case yn:
|
|
479
|
+
return m(), be(), A(l, "DebuggerStatement");
|
|
480
|
+
case bn:
|
|
481
|
+
return m(), V.push(Ft), l.body = ne(), V.pop(), F(Bt), l.test = Ne(), be(), A(l, "DoWhileStatement");
|
|
470
482
|
case xn:
|
|
471
|
-
return
|
|
483
|
+
return m(), V.push(Ft), F(se), I === le ? yt(l, null) : I === Nt ? (i = M(), m(), pn(i, !0), A(i, "VariableDeclaration"), i.fa.length === 1 && U(nt) ? fn(l, i) : yt(l, i)) : (i = K(!1, !0), U(nt) ? (Qe(i), fn(l, i)) : yt(l, i));
|
|
472
484
|
case Rt:
|
|
473
|
-
return
|
|
474
|
-
case Sn:
|
|
475
|
-
return g(), l.test = Ne(), l.da = ee(), l.alternate = U(bn) ? ee() : null, A(l, "IfStatement");
|
|
485
|
+
return m(), wt(l, !0);
|
|
476
486
|
case kn:
|
|
477
|
-
return
|
|
478
|
-
case Pt:
|
|
479
|
-
for (g(), l.Qb = Ne(), l.tb = [], F(_e), V.push(Jr); I !== Ie; )
|
|
480
|
-
I === jt || I === yn ? (i = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = M()), p.da = [], g(), i ? p.test = K() : (c && r(It, "Multiple default clauses"), c = !0, p.test = null), F(De)) : (p || ne(), p.da.push(ee()));
|
|
481
|
-
return p && A(p, "SwitchCase"), g(), V.pop(), A(l, "SwitchStatement");
|
|
487
|
+
return m(), l.test = Ne(), l.da = ne(), l.alternate = U(Sn) ? ne() : null, A(l, "IfStatement");
|
|
482
488
|
case Cn:
|
|
483
|
-
return
|
|
489
|
+
return Fe || O.Ib || r(D, "'return' outside of function"), m(), U(le) || Ze() ? l.K = null : (l.K = K(), be()), A(l, "ReturnStatement");
|
|
490
|
+
case Pt:
|
|
491
|
+
for (m(), l.Qb = Ne(), l.tb = [], F(De), V.push(qr); I !== Ie; )
|
|
492
|
+
I === jt || I === vn ? (i = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = M()), p.da = [], m(), i ? p.test = K() : (c && r(It, "Multiple default clauses"), c = !0, p.test = null), F(_e)) : (p || oe(), p.da.push(ne()));
|
|
493
|
+
return p && A(p, "SwitchCase"), m(), V.pop(), A(l, "SwitchStatement");
|
|
484
494
|
case En:
|
|
485
|
-
return
|
|
495
|
+
return m(), ot.test(g.slice(ge, D)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), A(l, "ThrowStatement");
|
|
496
|
+
case In:
|
|
497
|
+
return m(), l.block = Be(), l.Ea = null, I === mn && (i = M(), m(), F(se), i.Ua = ie(), z && rt(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), F(re), i.body = Be(), l.Ea = A(i, "CatchClause")), l.fb = U(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
|
|
486
498
|
case Nt:
|
|
487
|
-
return
|
|
499
|
+
return m(), pn(l), be(), A(l, "VariableDeclaration");
|
|
488
500
|
case Bt:
|
|
489
|
-
return
|
|
490
|
-
case
|
|
491
|
-
return z && r(
|
|
492
|
-
case
|
|
501
|
+
return m(), l.test = Ne(), V.push(Ft), l.body = ne(), V.pop(), A(l, "WhileStatement");
|
|
502
|
+
case Tn:
|
|
503
|
+
return z && r(D, "'with' in strict mode"), m(), l.object = Ne(), l.body = ne(), A(l, "WithStatement");
|
|
504
|
+
case De:
|
|
493
505
|
return Be();
|
|
494
|
-
case
|
|
495
|
-
return
|
|
506
|
+
case le:
|
|
507
|
+
return m(), A(l, "EmptyStatement");
|
|
496
508
|
default:
|
|
497
|
-
if (c = Q, T = K(), i === Ee && T.type === "Identifier" && U(
|
|
509
|
+
if (c = Q, T = K(), i === Ee && T.type === "Identifier" && U(_e)) {
|
|
498
510
|
for (p = 0; p < V.length; ++p)
|
|
499
511
|
V[p].name === c && r(T.start, "Label '" + c + "' is already declared");
|
|
500
512
|
return V.push({
|
|
501
513
|
name: c,
|
|
502
514
|
kind: I.W ? "loop" : I === Pt ? "switch" : null
|
|
503
|
-
}), l.body =
|
|
515
|
+
}), l.body = ne(), V.pop(), l.label = T, A(l, "LabeledStatement");
|
|
504
516
|
}
|
|
505
517
|
return l.la = T, be(), A(l, "ExpressionStatement");
|
|
506
518
|
}
|
|
507
519
|
}
|
|
508
520
|
function Ne() {
|
|
509
|
-
F(
|
|
521
|
+
F(se);
|
|
510
522
|
var i = K();
|
|
511
|
-
return F(
|
|
523
|
+
return F(re), i;
|
|
512
524
|
}
|
|
513
525
|
function Be(i) {
|
|
514
526
|
var l = M(), c = !0, p = !1;
|
|
515
|
-
for (l.body = [], F(
|
|
516
|
-
var T =
|
|
527
|
+
for (l.body = [], F(De); !U(Ie); ) {
|
|
528
|
+
var T = ne();
|
|
517
529
|
if (l.body.push(T), c && i && gt(T)) {
|
|
518
|
-
var
|
|
519
|
-
|
|
530
|
+
var _ = p;
|
|
531
|
+
ee(p = !0);
|
|
520
532
|
}
|
|
521
533
|
c = !1;
|
|
522
534
|
}
|
|
523
|
-
return p && !
|
|
535
|
+
return p && !_ && ee(!1), A(l, "BlockStatement");
|
|
524
536
|
}
|
|
525
537
|
function yt(i, l) {
|
|
526
|
-
return i.ua = l, F(
|
|
527
|
-
}
|
|
528
|
-
function un(i, l) {
|
|
529
|
-
return i.left = l, i.right = K(), F(te), i.body = ee(), V.pop(), A(i, "ForInStatement");
|
|
538
|
+
return i.ua = l, F(le), i.test = I === le ? null : K(), F(le), i.update = I === re ? null : K(), F(re), i.body = ne(), V.pop(), A(i, "ForStatement");
|
|
530
539
|
}
|
|
531
540
|
function fn(i, l) {
|
|
541
|
+
return i.left = l, i.right = K(), F(re), i.body = ne(), V.pop(), A(i, "ForInStatement");
|
|
542
|
+
}
|
|
543
|
+
function pn(i, l) {
|
|
532
544
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
533
545
|
var c = M();
|
|
534
|
-
if (c.id =
|
|
546
|
+
if (c.id = ie(), z && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = U(Un) ? K(!0, l) : null, i.fa.push(A(c, "VariableDeclarator")), !U(ye))
|
|
535
547
|
break;
|
|
536
548
|
}
|
|
537
549
|
}
|
|
538
550
|
function K(i, l) {
|
|
539
551
|
var c = vt(l);
|
|
540
|
-
if (!i && I ===
|
|
541
|
-
for (i =
|
|
552
|
+
if (!i && I === ye) {
|
|
553
|
+
for (i = me(c), i.xb = [c]; U(ye); )
|
|
542
554
|
i.xb.push(vt(l));
|
|
543
555
|
return A(i, "SequenceExpression");
|
|
544
556
|
}
|
|
545
557
|
return c;
|
|
546
558
|
}
|
|
547
559
|
function vt(i) {
|
|
548
|
-
var l = bt(
|
|
549
|
-
if (U(
|
|
550
|
-
var c =
|
|
551
|
-
c.test = l, c.da = K(!0), F(
|
|
560
|
+
var l = bt(St(), -1, i);
|
|
561
|
+
if (U(Bn)) {
|
|
562
|
+
var c = me(l);
|
|
563
|
+
c.test = l, c.da = K(!0), F(_e), c.alternate = K(!0, i), l = A(c, "ConditionalExpression");
|
|
552
564
|
}
|
|
553
|
-
return I.Cb ? (c =
|
|
565
|
+
return I.Cb ? (c = me(l), c.operator = Q, c.left = l, m(), c.right = vt(i), Qe(l), A(c, "AssignmentExpression")) : l;
|
|
554
566
|
}
|
|
555
567
|
function bt(i, l, c) {
|
|
556
568
|
var p = I.L;
|
|
557
569
|
if (p !== null && (!c || I !== nt) && p > l) {
|
|
558
|
-
var T =
|
|
559
|
-
return T.left = i, T.operator = Q, i = I,
|
|
570
|
+
var T = me(i);
|
|
571
|
+
return T.left = i, T.operator = Q, i = I, m(), T.right = bt(St(), p, c), p = A(T, i === Vn || i === Dn ? "LogicalExpression" : "BinaryExpression"), bt(p, l, c);
|
|
560
572
|
}
|
|
561
573
|
return i;
|
|
562
574
|
}
|
|
563
|
-
function
|
|
575
|
+
function St() {
|
|
564
576
|
if (I.prefix) {
|
|
565
577
|
var i = M(), l = I.$b;
|
|
566
|
-
return i.operator = Q, Ue = i.prefix = !0,
|
|
578
|
+
return i.operator = Q, Ue = i.prefix = !0, m(), i.K = St(), l ? Qe(i.K) : z && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), A(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
567
579
|
}
|
|
568
580
|
for (l = Me(et()); I.cc && !Ze(); )
|
|
569
|
-
i =
|
|
581
|
+
i = me(l), i.operator = Q, i.prefix = !1, i.K = l, Qe(l), m(), l = A(i, "UpdateExpression");
|
|
570
582
|
return l;
|
|
571
583
|
}
|
|
572
584
|
function Me(i, l) {
|
|
573
|
-
if (U(
|
|
574
|
-
var c =
|
|
575
|
-
return c.object = i, c.Wa =
|
|
585
|
+
if (U(Nn)) {
|
|
586
|
+
var c = me(i);
|
|
587
|
+
return c.object = i, c.Wa = ie(!0), c.bb = !1, Me(A(c, "MemberExpression"), l);
|
|
576
588
|
}
|
|
577
|
-
return U(Mt) ? (c =
|
|
589
|
+
return U(Mt) ? (c = me(i), c.object = i, c.Wa = K(), c.bb = !0, F(Ut), Me(A(c, "MemberExpression"), l)) : !l && U(se) ? (c = me(i), c.callee = i, c.arguments = xt(re, !1), Me(A(c, "CallExpression"), l)) : i;
|
|
578
590
|
}
|
|
579
591
|
function et() {
|
|
580
592
|
switch (I) {
|
|
581
|
-
case
|
|
593
|
+
case On:
|
|
582
594
|
var i = M();
|
|
583
|
-
return
|
|
595
|
+
return m(), A(i, "ThisExpression");
|
|
584
596
|
case Ee:
|
|
585
|
-
return
|
|
597
|
+
return ie();
|
|
586
598
|
case Ve:
|
|
587
599
|
case tt:
|
|
588
|
-
case
|
|
589
|
-
return i = M(), i.value = Q, i.raw =
|
|
590
|
-
case On:
|
|
600
|
+
case hn:
|
|
601
|
+
return i = M(), i.value = Q, i.raw = g.slice(D, Ce), m(), A(i, "Literal");
|
|
591
602
|
case jn:
|
|
592
603
|
case Rn:
|
|
593
|
-
|
|
594
|
-
|
|
604
|
+
case Pn:
|
|
605
|
+
return i = M(), i.value = I.$a, i.raw = I.l, m(), A(i, "Literal");
|
|
606
|
+
case se:
|
|
595
607
|
i = Ct;
|
|
596
|
-
var l =
|
|
597
|
-
|
|
608
|
+
var l = D;
|
|
609
|
+
m();
|
|
598
610
|
var c = K();
|
|
599
|
-
return c.start = l, c.end = Ce, O.C && (c.X.start = i, c.X.end = Et), O.Xa && (c.j = [l, Ce]), F(
|
|
611
|
+
return c.start = l, c.end = Ce, O.C && (c.X.start = i, c.X.end = Et), O.Xa && (c.j = [l, Ce]), F(re), c;
|
|
600
612
|
case Mt:
|
|
601
|
-
return i = M(),
|
|
602
|
-
case
|
|
603
|
-
for (i = M(), l = !0, c = !1, i.h = [],
|
|
613
|
+
return i = M(), m(), i.elements = xt(Ut, !0, !0), A(i, "ArrayExpression");
|
|
614
|
+
case De:
|
|
615
|
+
for (i = M(), l = !0, c = !1, i.h = [], m(); !U(Ie); ) {
|
|
604
616
|
if (l)
|
|
605
617
|
l = !1;
|
|
606
|
-
else if (F(
|
|
618
|
+
else if (F(ye), O.sb && U(Ie))
|
|
607
619
|
break;
|
|
608
620
|
var p = {
|
|
609
|
-
key: I === Ve || I === tt ? et() :
|
|
621
|
+
key: I === Ve || I === tt ? et() : ie(!0)
|
|
610
622
|
}, T = !1;
|
|
611
|
-
if (U(
|
|
623
|
+
if (U(_e)) {
|
|
612
624
|
p.value = K(!0);
|
|
613
|
-
var
|
|
625
|
+
var _ = p.kind = "init";
|
|
614
626
|
} else
|
|
615
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ?
|
|
627
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? oe() : (T = c = !0, _ = p.kind = p.key.name, p.key = I === Ve || I === tt ? et() : ie(!0), I !== se && oe(), p.value = wt(M(), !1));
|
|
616
628
|
if (p.key.type === "Identifier" && (z || c))
|
|
617
629
|
for (var X = 0; X < i.h.length; ++X) {
|
|
618
630
|
var Ae = i.h[X];
|
|
619
631
|
if (Ae.key.name === p.key.name) {
|
|
620
|
-
var Vt =
|
|
621
|
-
Vt && !z &&
|
|
632
|
+
var Vt = _ === Ae.kind || T && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
633
|
+
Vt && !z && _ === "init" && Ae.kind === "init" && (Vt = !1), Vt && r(p.key.start, "Redefinition of property");
|
|
622
634
|
}
|
|
623
635
|
}
|
|
624
636
|
i.h.push(p);
|
|
625
637
|
}
|
|
626
638
|
return A(i, "ObjectExpression");
|
|
627
639
|
case Rt:
|
|
628
|
-
return i = M(),
|
|
629
|
-
case
|
|
630
|
-
return i = M(),
|
|
640
|
+
return i = M(), m(), wt(i, !1);
|
|
641
|
+
case An:
|
|
642
|
+
return i = M(), m(), i.callee = Me(et(), !0), i.arguments = U(se) ? xt(re, !1) : Ur, A(i, "NewExpression");
|
|
631
643
|
}
|
|
632
|
-
|
|
644
|
+
oe();
|
|
633
645
|
}
|
|
634
|
-
function
|
|
635
|
-
I === Ee ? i.id =
|
|
646
|
+
function wt(i, l) {
|
|
647
|
+
I === Ee ? i.id = ie() : l ? oe() : i.id = null, i.oa = [];
|
|
636
648
|
var c = !0;
|
|
637
|
-
for (F(
|
|
638
|
-
c ? c = !1 : F(
|
|
649
|
+
for (F(se); !U(re); )
|
|
650
|
+
c ? c = !1 : F(ye), i.oa.push(ie());
|
|
639
651
|
c = Fe;
|
|
640
652
|
var p = V;
|
|
641
653
|
if (Fe = !0, V = [], i.body = Be(!0), Fe = c, V = p, z || i.body.body.length && gt(i.body.body[0])) {
|
|
@@ -646,31 +658,31 @@ var N, bo = function(e) {
|
|
|
646
658
|
}
|
|
647
659
|
return A(i, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
648
660
|
}
|
|
649
|
-
function
|
|
661
|
+
function xt(i, l, c) {
|
|
650
662
|
for (var p = [], T = !0; !U(i); ) {
|
|
651
663
|
if (T)
|
|
652
664
|
T = !1;
|
|
653
|
-
else if (F(
|
|
665
|
+
else if (F(ye), l && O.sb && U(i))
|
|
654
666
|
break;
|
|
655
|
-
p.push(c && I ===
|
|
667
|
+
p.push(c && I === ye ? null : K(!0));
|
|
656
668
|
}
|
|
657
669
|
return p;
|
|
658
670
|
}
|
|
659
|
-
function
|
|
671
|
+
function ie(i) {
|
|
660
672
|
var l = M();
|
|
661
|
-
return i && O.yb === "everywhere" && (i = !1), I === Ee ? (!i && (O.yb &&
|
|
673
|
+
return i && O.yb === "everywhere" && (i = !1), I === Ee ? (!i && (O.yb && Xr(Q) || z && _n(Q)) && g.slice(D, Ce).indexOf("\\") === -1 && r(D, "The keyword '" + Q + "' is reserved"), l.name = Q) : i && I.l ? l.name = I.l : oe(), Ue = !1, m(), A(l, "Identifier");
|
|
662
674
|
}
|
|
663
675
|
e.version = "0.5.0";
|
|
664
|
-
var O,
|
|
676
|
+
var O, g = "", ke, kt;
|
|
665
677
|
e.parse = function(i, l) {
|
|
666
|
-
|
|
667
|
-
for (var c in
|
|
668
|
-
Object.prototype.hasOwnProperty.call(O, c) || (O[c] =
|
|
669
|
-
for (kt = O.sourceFile,
|
|
670
|
-
c =
|
|
678
|
+
g = String(i), ke = g.length, O = l || {};
|
|
679
|
+
for (var c in dn)
|
|
680
|
+
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = dn[c]);
|
|
681
|
+
for (kt = O.sourceFile, Se = 1, f = ae = 0, Ue = !0, d(), c = O.dc, It = ge = f, O.C && (Tt = new a()), Fe = z = !1, V = [], E(), i = c || M(), l = !0, c || (i.body = []); I !== At; )
|
|
682
|
+
c = ne(), i.body.push(c), l && gt(c) && ee(!0), l = !1;
|
|
671
683
|
return A(i, "Program");
|
|
672
684
|
};
|
|
673
|
-
var
|
|
685
|
+
var dn = {
|
|
674
686
|
fc: !1,
|
|
675
687
|
sb: !0,
|
|
676
688
|
yb: !1,
|
|
@@ -681,9 +693,9 @@ var N, bo = function(e) {
|
|
|
681
693
|
dc: null,
|
|
682
694
|
sourceFile: null,
|
|
683
695
|
vb: null
|
|
684
|
-
}, f = 0,
|
|
696
|
+
}, f = 0, D = 0, Ce = 0, Ct, Et, I, Q, Ue, Se, ae, It = 0, ge = 0, Tt, Fe, V, z, Ur = [], Ve = {
|
|
685
697
|
type: "num"
|
|
686
|
-
},
|
|
698
|
+
}, hn = {
|
|
687
699
|
type: "regexp"
|
|
688
700
|
}, tt = {
|
|
689
701
|
type: "string"
|
|
@@ -696,18 +708,18 @@ var N, bo = function(e) {
|
|
|
696
708
|
}, jt = {
|
|
697
709
|
l: "case",
|
|
698
710
|
m: !0
|
|
699
|
-
}, hn = {
|
|
700
|
-
l: "catch"
|
|
701
711
|
}, mn = {
|
|
702
|
-
l: "
|
|
712
|
+
l: "catch"
|
|
703
713
|
}, gn = {
|
|
704
|
-
l: "
|
|
714
|
+
l: "continue"
|
|
705
715
|
}, yn = {
|
|
706
|
-
l: "
|
|
716
|
+
l: "debugger"
|
|
707
717
|
}, vn = {
|
|
718
|
+
l: "default"
|
|
719
|
+
}, bn = {
|
|
708
720
|
l: "do",
|
|
709
721
|
W: !0
|
|
710
|
-
},
|
|
722
|
+
}, Sn = {
|
|
711
723
|
l: "else",
|
|
712
724
|
m: !0
|
|
713
725
|
}, wn = {
|
|
@@ -717,74 +729,74 @@ var N, bo = function(e) {
|
|
|
717
729
|
W: !0
|
|
718
730
|
}, Rt = {
|
|
719
731
|
l: "function"
|
|
720
|
-
}, Sn = {
|
|
721
|
-
l: "if"
|
|
722
732
|
}, kn = {
|
|
733
|
+
l: "if"
|
|
734
|
+
}, Cn = {
|
|
723
735
|
l: "return",
|
|
724
736
|
m: !0
|
|
725
737
|
}, Pt = {
|
|
726
738
|
l: "switch"
|
|
727
|
-
},
|
|
739
|
+
}, En = {
|
|
728
740
|
l: "throw",
|
|
729
741
|
m: !0
|
|
730
|
-
},
|
|
742
|
+
}, In = {
|
|
731
743
|
l: "try"
|
|
732
744
|
}, Nt = {
|
|
733
745
|
l: "var"
|
|
734
746
|
}, Bt = {
|
|
735
747
|
l: "while",
|
|
736
748
|
W: !0
|
|
737
|
-
}, In = {
|
|
738
|
-
l: "with"
|
|
739
749
|
}, Tn = {
|
|
750
|
+
l: "with"
|
|
751
|
+
}, An = {
|
|
740
752
|
l: "new",
|
|
741
753
|
m: !0
|
|
742
|
-
}, An = {
|
|
743
|
-
l: "this"
|
|
744
754
|
}, On = {
|
|
755
|
+
l: "this"
|
|
756
|
+
}, jn = {
|
|
745
757
|
l: "null",
|
|
746
758
|
$a: null
|
|
747
|
-
},
|
|
759
|
+
}, Rn = {
|
|
748
760
|
l: "true",
|
|
749
761
|
$a: !0
|
|
750
|
-
},
|
|
762
|
+
}, Pn = {
|
|
751
763
|
l: "false",
|
|
752
764
|
$a: !1
|
|
753
765
|
}, nt = {
|
|
754
766
|
l: "in",
|
|
755
767
|
L: 7,
|
|
756
768
|
m: !0
|
|
757
|
-
},
|
|
769
|
+
}, Fr = {
|
|
758
770
|
break: Ot,
|
|
759
771
|
case: jt,
|
|
760
|
-
catch:
|
|
761
|
-
continue:
|
|
762
|
-
debugger:
|
|
763
|
-
default:
|
|
764
|
-
do:
|
|
765
|
-
else:
|
|
772
|
+
catch: mn,
|
|
773
|
+
continue: gn,
|
|
774
|
+
debugger: yn,
|
|
775
|
+
default: vn,
|
|
776
|
+
do: bn,
|
|
777
|
+
else: Sn,
|
|
766
778
|
finally: wn,
|
|
767
779
|
for: xn,
|
|
768
780
|
function: Rt,
|
|
769
|
-
if:
|
|
770
|
-
return:
|
|
781
|
+
if: kn,
|
|
782
|
+
return: Cn,
|
|
771
783
|
switch: Pt,
|
|
772
|
-
throw:
|
|
773
|
-
try:
|
|
784
|
+
throw: En,
|
|
785
|
+
try: In,
|
|
774
786
|
var: Nt,
|
|
775
787
|
while: Bt,
|
|
776
|
-
with:
|
|
777
|
-
null:
|
|
778
|
-
true:
|
|
779
|
-
false:
|
|
780
|
-
new:
|
|
788
|
+
with: Tn,
|
|
789
|
+
null: jn,
|
|
790
|
+
true: Rn,
|
|
791
|
+
false: Pn,
|
|
792
|
+
new: An,
|
|
781
793
|
in: nt,
|
|
782
794
|
instanceof: {
|
|
783
795
|
l: "instanceof",
|
|
784
796
|
L: 7,
|
|
785
797
|
m: !0
|
|
786
798
|
},
|
|
787
|
-
this:
|
|
799
|
+
this: On,
|
|
788
800
|
typeof: {
|
|
789
801
|
l: "typeof",
|
|
790
802
|
prefix: !0,
|
|
@@ -805,84 +817,84 @@ var N, bo = function(e) {
|
|
|
805
817
|
m: !0
|
|
806
818
|
}, Ut = {
|
|
807
819
|
type: "]"
|
|
808
|
-
},
|
|
820
|
+
}, De = {
|
|
809
821
|
type: "{",
|
|
810
822
|
m: !0
|
|
811
823
|
}, Ie = {
|
|
812
824
|
type: "}"
|
|
813
|
-
},
|
|
825
|
+
}, se = {
|
|
814
826
|
type: "(",
|
|
815
827
|
m: !0
|
|
816
|
-
},
|
|
828
|
+
}, re = {
|
|
817
829
|
type: ")"
|
|
818
|
-
},
|
|
830
|
+
}, ye = {
|
|
819
831
|
type: ",",
|
|
820
832
|
m: !0
|
|
821
|
-
},
|
|
833
|
+
}, le = {
|
|
822
834
|
type: ";",
|
|
823
835
|
m: !0
|
|
824
|
-
},
|
|
836
|
+
}, _e = {
|
|
825
837
|
type: ":",
|
|
826
838
|
m: !0
|
|
827
|
-
}, Pn = {
|
|
828
|
-
type: "."
|
|
829
839
|
}, Nn = {
|
|
840
|
+
type: "."
|
|
841
|
+
}, Bn = {
|
|
830
842
|
type: "?",
|
|
831
843
|
m: !0
|
|
832
|
-
},
|
|
844
|
+
}, Mn = {
|
|
833
845
|
L: 10,
|
|
834
846
|
m: !0
|
|
835
|
-
},
|
|
847
|
+
}, Un = {
|
|
836
848
|
Cb: !0,
|
|
837
849
|
m: !0
|
|
838
|
-
},
|
|
850
|
+
}, we = {
|
|
839
851
|
Cb: !0,
|
|
840
852
|
m: !0
|
|
841
|
-
},
|
|
853
|
+
}, Vr = {
|
|
842
854
|
cc: !0,
|
|
843
855
|
prefix: !0,
|
|
844
856
|
$b: !0
|
|
845
|
-
},
|
|
857
|
+
}, Fn = {
|
|
846
858
|
prefix: !0,
|
|
847
859
|
m: !0
|
|
848
|
-
},
|
|
860
|
+
}, Vn = {
|
|
849
861
|
L: 1,
|
|
850
862
|
m: !0
|
|
851
|
-
},
|
|
863
|
+
}, Dn = {
|
|
852
864
|
L: 2,
|
|
853
865
|
m: !0
|
|
854
|
-
},
|
|
866
|
+
}, Dr = {
|
|
855
867
|
L: 3,
|
|
856
868
|
m: !0
|
|
857
|
-
},
|
|
869
|
+
}, _r = {
|
|
858
870
|
L: 4,
|
|
859
871
|
m: !0
|
|
860
|
-
},
|
|
872
|
+
}, Lr = {
|
|
861
873
|
L: 5,
|
|
862
874
|
m: !0
|
|
863
|
-
},
|
|
875
|
+
}, Wr = {
|
|
864
876
|
L: 6,
|
|
865
877
|
m: !0
|
|
866
|
-
},
|
|
878
|
+
}, $r = {
|
|
867
879
|
L: 7,
|
|
868
880
|
m: !0
|
|
869
|
-
},
|
|
881
|
+
}, Hr = {
|
|
870
882
|
L: 8,
|
|
871
883
|
m: !0
|
|
872
|
-
},
|
|
884
|
+
}, Kr = {
|
|
873
885
|
L: 9,
|
|
874
886
|
prefix: !0,
|
|
875
887
|
m: !0
|
|
876
|
-
},
|
|
888
|
+
}, Gr = {
|
|
877
889
|
L: 10,
|
|
878
890
|
m: !0
|
|
879
|
-
},
|
|
891
|
+
}, Xr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), Yr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Jr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), zr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ft = {
|
|
880
892
|
kind: "loop"
|
|
881
|
-
},
|
|
893
|
+
}, qr = {
|
|
882
894
|
kind: "switch"
|
|
883
895
|
};
|
|
884
896
|
}, Lt = Lt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
885
|
-
|
|
897
|
+
xo(Lt.j || (Lt.j = {}));
|
|
886
898
|
function h(e, t) {
|
|
887
899
|
typeof e == "string" && (e = je(e, "code"));
|
|
888
900
|
var n = e.constructor;
|
|
@@ -899,12 +911,12 @@ function h(e, t) {
|
|
|
899
911
|
for (s in this)
|
|
900
912
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
901
913
|
this.N = $t(this, this.ra, null), this.Na = this.N.object, this.ra = je(this.ba.join(`
|
|
902
|
-
`), "polyfills"), this.ba = void 0, ut(this.ra), a = new
|
|
914
|
+
`), "polyfills"), this.ba = void 0, ut(this.ra), a = new b(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new b(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
903
915
|
}
|
|
904
|
-
var
|
|
916
|
+
var Wn = {
|
|
905
917
|
C: !0,
|
|
906
918
|
kc: 5
|
|
907
|
-
},
|
|
919
|
+
}, Jt = {
|
|
908
920
|
configurable: !0,
|
|
909
921
|
enumerable: !0,
|
|
910
922
|
writable: !1
|
|
@@ -920,11 +932,11 @@ var Ln = {
|
|
|
920
932
|
configurable: !1,
|
|
921
933
|
enumerable: !1,
|
|
922
934
|
writable: !1
|
|
923
|
-
},
|
|
935
|
+
}, $n = {
|
|
924
936
|
configurable: !1,
|
|
925
937
|
enumerable: !0,
|
|
926
938
|
writable: !0
|
|
927
|
-
},
|
|
939
|
+
}, ur = {
|
|
928
940
|
STEP_ERROR: !0
|
|
929
941
|
}, Pe = {
|
|
930
942
|
SCOPE_REFERENCE: !0
|
|
@@ -932,8 +944,8 @@ var Ln = {
|
|
|
932
944
|
VALUE_IN_DESCRIPTOR: !0
|
|
933
945
|
}, Oe = {
|
|
934
946
|
REGEXP_TIMEOUT: !0
|
|
935
|
-
},
|
|
936
|
-
function
|
|
947
|
+
}, Hn = [], ue = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, ko = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
948
|
+
function zt(e) {
|
|
937
949
|
var t = e >>> 0;
|
|
938
950
|
return t === Number(e) ? t : NaN;
|
|
939
951
|
}
|
|
@@ -959,9 +971,9 @@ N.Kb = 0;
|
|
|
959
971
|
N.ic = 0;
|
|
960
972
|
function je(e, t) {
|
|
961
973
|
var n = {}, r;
|
|
962
|
-
for (r in
|
|
963
|
-
n[r] =
|
|
964
|
-
return n.sourceFile = t,
|
|
974
|
+
for (r in Wn)
|
|
975
|
+
n[r] = Wn[r];
|
|
976
|
+
return n.sourceFile = t, ve.j.parse(e, n);
|
|
965
977
|
}
|
|
966
978
|
N.Jb = function(e) {
|
|
967
979
|
var t = this.o[0];
|
|
@@ -983,8 +995,8 @@ N.lb = function() {
|
|
|
983
995
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
984
996
|
n = null;
|
|
985
997
|
else {
|
|
986
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
987
|
-
var r = new
|
|
998
|
+
this.ca.shift(), 0 <= n.interval && dr(this, n, n.interval);
|
|
999
|
+
var r = new b(n.node, n.scope);
|
|
988
1000
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
989
1001
|
}
|
|
990
1002
|
if (!n)
|
|
@@ -996,7 +1008,7 @@ N.lb = function() {
|
|
|
996
1008
|
try {
|
|
997
1009
|
var a = this.rb[r.type](e, n, r);
|
|
998
1010
|
} catch (s) {
|
|
999
|
-
if (s !==
|
|
1011
|
+
if (s !== ur)
|
|
1000
1012
|
throw this.value !== s && (this.value = void 0), s;
|
|
1001
1013
|
} finally {
|
|
1002
1014
|
Ge = o;
|
|
@@ -1014,8 +1026,8 @@ N.Eb = function() {
|
|
|
1014
1026
|
;
|
|
1015
1027
|
return this.za;
|
|
1016
1028
|
};
|
|
1017
|
-
function
|
|
1018
|
-
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t,
|
|
1029
|
+
function Co(e, t) {
|
|
1030
|
+
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Jt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), Eo(e, t), Io(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), To(e, t), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t), Bo(e, t), Mo(e, t);
|
|
1019
1031
|
var n = e.i(function() {
|
|
1020
1032
|
throw EvalError("Can't happen");
|
|
1021
1033
|
}, !1);
|
|
@@ -1031,17 +1043,17 @@ function xo(e, t) {
|
|
|
1031
1043
|
};
|
|
1032
1044
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
|
|
1033
1045
|
n = function(a) {
|
|
1034
|
-
return
|
|
1046
|
+
return Kn(e, !1, arguments);
|
|
1035
1047
|
}, e.g(t, "setTimeout", e.i(n, !1), y), n = function(a) {
|
|
1036
|
-
return
|
|
1048
|
+
return Kn(e, !0, arguments);
|
|
1037
1049
|
}, e.g(t, "setInterval", e.i(n, !1), y), n = function(a) {
|
|
1038
|
-
|
|
1050
|
+
Gn(e, a);
|
|
1039
1051
|
}, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(a) {
|
|
1040
|
-
|
|
1052
|
+
Gn(e, a);
|
|
1041
1053
|
}, e.g(t, "clearInterval", e.i(n, !1), y), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1042
1054
|
}
|
|
1043
1055
|
N.Wb = 0;
|
|
1044
|
-
function
|
|
1056
|
+
function Eo(e, t) {
|
|
1045
1057
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1046
1058
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1047
1059
|
if (s) {
|
|
@@ -1053,16 +1065,16 @@ function So(e, t) {
|
|
|
1053
1065
|
s = s.join(", ");
|
|
1054
1066
|
}
|
|
1055
1067
|
try {
|
|
1056
|
-
var
|
|
1057
|
-
} catch (
|
|
1058
|
-
w(e, e.T, "Invalid code: " +
|
|
1068
|
+
var k = je("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1069
|
+
} catch (E) {
|
|
1070
|
+
w(e, e.T, "Invalid code: " + E.message);
|
|
1059
1071
|
}
|
|
1060
|
-
return
|
|
1072
|
+
return k.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Qt(e, k.body[0].la, e.N, "anonymous");
|
|
1061
1073
|
};
|
|
1062
1074
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1063
1075
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(o, a) {
|
|
1064
1076
|
var s = e.o[e.o.length - 1];
|
|
1065
|
-
s.U = this, s.B = o, s.F = [], a != null && (a instanceof R ? s.F =
|
|
1077
|
+
s.U = this, s.B = o, s.F = [], a != null && (a instanceof R ? s.F = fr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1066
1078
|
}, W(e, e.O, "apply", r), r = function(o) {
|
|
1067
1079
|
var a = e.o[e.o.length - 1];
|
|
1068
1080
|
a.U = this, a.B = o, a.F = [];
|
|
@@ -1075,23 +1087,23 @@ function So(e, t) {
|
|
|
1075
1087
|
return this.valueOf();
|
|
1076
1088
|
}, W(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1077
1089
|
}
|
|
1078
|
-
function
|
|
1090
|
+
function Io(e, t) {
|
|
1079
1091
|
function n(o) {
|
|
1080
1092
|
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1081
1093
|
}
|
|
1082
1094
|
var r = function(o) {
|
|
1083
1095
|
if (o == null)
|
|
1084
|
-
return
|
|
1096
|
+
return pe(e) ? this : e.s(e.M);
|
|
1085
1097
|
if (!(o instanceof R)) {
|
|
1086
|
-
var a = e.s(
|
|
1098
|
+
var a = e.s(fe(e, o));
|
|
1087
1099
|
return a.data = o, a;
|
|
1088
1100
|
}
|
|
1089
1101
|
return o;
|
|
1090
1102
|
};
|
|
1091
1103
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), r = function(o) {
|
|
1092
|
-
return n(o),
|
|
1104
|
+
return n(o), ce(e, Object.getOwnPropertyNames(o instanceof R ? o.h : o));
|
|
1093
1105
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1094
|
-
return n(o), o instanceof R && (o = o.h),
|
|
1106
|
+
return n(o), o instanceof R && (o = o.h), ce(e, Object.keys(o));
|
|
1095
1107
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1096
1108
|
return o === null ? e.s(null) : (o instanceof R || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1097
1109
|
}, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, a, s) {
|
|
@@ -1102,7 +1114,7 @@ function ko(e, t) {
|
|
|
1102
1114
|
return o = o.Y[a], a = e.s(e.M), u || o ? (e.g(a, "get", u), e.g(a, "set", o)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1103
1115
|
}
|
|
1104
1116
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), y), r = function(o) {
|
|
1105
|
-
return n(o),
|
|
1117
|
+
return n(o), fe(e, o);
|
|
1106
1118
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
|
|
1107
1119
|
return !!o && !o.preventExtensions;
|
|
1108
1120
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
@@ -1113,18 +1125,18 @@ function ko(e, t) {
|
|
|
1113
1125
|
return n(this), this instanceof R ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1114
1126
|
}, W(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1115
1127
|
for (; ; ) {
|
|
1116
|
-
if (o =
|
|
1128
|
+
if (o = fe(e, o), !o)
|
|
1117
1129
|
return !1;
|
|
1118
1130
|
if (o === this)
|
|
1119
1131
|
return !0;
|
|
1120
1132
|
}
|
|
1121
1133
|
}, W(e, e.v, "isPrototypeOf", r);
|
|
1122
1134
|
}
|
|
1123
|
-
function
|
|
1135
|
+
function To(e, t) {
|
|
1124
1136
|
var n = function(r) {
|
|
1125
|
-
var o =
|
|
1137
|
+
var o = pe(e) ? this : Re(e), a = arguments[0];
|
|
1126
1138
|
if (arguments.length === 1 && typeof a == "number")
|
|
1127
|
-
isNaN(
|
|
1139
|
+
isNaN(zt(a)) && w(e, e.ob, "Invalid array length: " + a), o.h.length = a;
|
|
1128
1140
|
else {
|
|
1129
1141
|
for (a = 0; a < arguments.length; a++)
|
|
1130
1142
|
o.h[a] = arguments[a];
|
|
@@ -1140,9 +1152,9 @@ function Co(e, t) {
|
|
|
1140
1152
|
writable: !0
|
|
1141
1153
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1142
1154
|
}
|
|
1143
|
-
function
|
|
1155
|
+
function Ao(e, t) {
|
|
1144
1156
|
var n = function(r) {
|
|
1145
|
-
return r = arguments.length ?
|
|
1157
|
+
return r = arguments.length ? ve.String(r) : "", pe(e) ? (this.data = r, this) : r;
|
|
1146
1158
|
};
|
|
1147
1159
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1148
1160
|
W(e, e.J, t[n], String.prototype[t[n]]);
|
|
@@ -1156,41 +1168,41 @@ function Eo(e, t) {
|
|
|
1156
1168
|
}, W(e, e.J, "localeCompare", n), n = function(r, o, a) {
|
|
1157
1169
|
var s = String(this);
|
|
1158
1170
|
if (o = o ? Number(o) : void 0, H(e, r, e.I) && (r = r.data, $e(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1159
|
-
if (
|
|
1171
|
+
if (ue)
|
|
1160
1172
|
r = We(e, "string.split(separator, limit)", {
|
|
1161
1173
|
string: s,
|
|
1162
1174
|
separator: r,
|
|
1163
1175
|
limit: o
|
|
1164
|
-
}, r, a), r !== Oe && a(
|
|
1176
|
+
}, r, a), r !== Oe && a(ce(e, r));
|
|
1165
1177
|
else {
|
|
1166
1178
|
var u = e.ha(), d = He(e, r, u, a);
|
|
1167
|
-
u.onmessage = function(
|
|
1168
|
-
clearTimeout(d), a(
|
|
1179
|
+
u.onmessage = function(k) {
|
|
1180
|
+
clearTimeout(d), a(ce(e, k.data));
|
|
1169
1181
|
}, u.postMessage(["split", s, r, o]);
|
|
1170
1182
|
}
|
|
1171
1183
|
return;
|
|
1172
1184
|
}
|
|
1173
|
-
r = s.split(r, o), a(
|
|
1185
|
+
r = s.split(r, o), a(ce(e, r));
|
|
1174
1186
|
}, Ke(e, e.J, "split", n), n = function(r, o) {
|
|
1175
1187
|
var a = String(this);
|
|
1176
1188
|
if (r = H(e, r, e.I) ? r.data : new RegExp(r), $e(e, r, o), e.REGEXP_MODE === 2)
|
|
1177
|
-
if (
|
|
1189
|
+
if (ue)
|
|
1178
1190
|
r = We(e, "string.match(regexp)", {
|
|
1179
1191
|
string: a,
|
|
1180
1192
|
regexp: r
|
|
1181
|
-
}, r, o), r !== Oe && o(r &&
|
|
1193
|
+
}, r, o), r !== Oe && o(r && ce(e, r));
|
|
1182
1194
|
else {
|
|
1183
1195
|
var s = e.ha(), u = He(e, r, s, o);
|
|
1184
1196
|
s.onmessage = function(d) {
|
|
1185
|
-
clearTimeout(u), o(d.data &&
|
|
1197
|
+
clearTimeout(u), o(d.data && ce(e, d.data));
|
|
1186
1198
|
}, s.postMessage(["match", a, r]);
|
|
1187
1199
|
}
|
|
1188
1200
|
else
|
|
1189
|
-
r = a.match(r), o(r &&
|
|
1201
|
+
r = a.match(r), o(r && ce(e, r));
|
|
1190
1202
|
}, Ke(e, e.J, "match", n), n = function(r, o) {
|
|
1191
1203
|
var a = String(this);
|
|
1192
1204
|
if (H(e, r, e.I) ? r = r.data : r = new RegExp(r), $e(e, r, o), e.REGEXP_MODE === 2)
|
|
1193
|
-
if (
|
|
1205
|
+
if (ue)
|
|
1194
1206
|
r = We(e, "string.search(regexp)", {
|
|
1195
1207
|
string: a,
|
|
1196
1208
|
regexp: r
|
|
@@ -1206,7 +1218,7 @@ function Eo(e, t) {
|
|
|
1206
1218
|
}, Ke(e, e.J, "search", n), n = function(r, o, a) {
|
|
1207
1219
|
var s = String(this);
|
|
1208
1220
|
if (o = String(o), H(e, r, e.I) && (r = r.data, $e(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1209
|
-
if (
|
|
1221
|
+
if (ue)
|
|
1210
1222
|
r = We(e, "string.replace(substr, newSubstr)", {
|
|
1211
1223
|
string: s,
|
|
1212
1224
|
substr: r,
|
|
@@ -1214,8 +1226,8 @@ function Eo(e, t) {
|
|
|
1214
1226
|
}, r, a), r !== Oe && a(r);
|
|
1215
1227
|
else {
|
|
1216
1228
|
var u = e.ha(), d = He(e, r, u, a);
|
|
1217
|
-
u.onmessage = function(
|
|
1218
|
-
clearTimeout(d), a(
|
|
1229
|
+
u.onmessage = function(k) {
|
|
1230
|
+
clearTimeout(d), a(k.data);
|
|
1219
1231
|
}, u.postMessage(["replace", s, r, o]);
|
|
1220
1232
|
}
|
|
1221
1233
|
return;
|
|
@@ -1223,14 +1235,14 @@ function Eo(e, t) {
|
|
|
1223
1235
|
a(s.replace(r, o));
|
|
1224
1236
|
}, Ke(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1225
1237
|
}
|
|
1226
|
-
function
|
|
1238
|
+
function Oo(e, t) {
|
|
1227
1239
|
e.mb = e.i(function(n) {
|
|
1228
|
-
return n =
|
|
1240
|
+
return n = ve.Boolean(n), pe(e) ? (this.data = n, this) : n;
|
|
1229
1241
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1230
1242
|
}
|
|
1231
|
-
function
|
|
1243
|
+
function jo(e, t) {
|
|
1232
1244
|
var n = function(r) {
|
|
1233
|
-
return r = arguments.length ?
|
|
1245
|
+
return r = arguments.length ? ve.Number(r) : 0, pe(e) ? (this.data = r, this) : r;
|
|
1234
1246
|
};
|
|
1235
1247
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1236
1248
|
e.g(e.aa, t[n], Number[t[n]], Le);
|
|
@@ -1267,12 +1279,12 @@ function To(e, t) {
|
|
|
1267
1279
|
}
|
|
1268
1280
|
}, W(e, e.aa, "toLocaleString", n);
|
|
1269
1281
|
}
|
|
1270
|
-
function
|
|
1282
|
+
function Ro(e, t) {
|
|
1271
1283
|
var n = function(o, a) {
|
|
1272
|
-
if (!
|
|
1273
|
-
return
|
|
1284
|
+
if (!pe(e))
|
|
1285
|
+
return ve.Date();
|
|
1274
1286
|
var s = [null].concat(Array.from(arguments));
|
|
1275
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1287
|
+
return this.data = new (Function.prototype.bind.apply(ve.Date, s))(), this;
|
|
1276
1288
|
};
|
|
1277
1289
|
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, y), e.g(e.$, "now", e.i(Date.now, !1), y), e.g(e.$, "parse", e.i(Date.parse, !1), y), e.g(e.$, "UTC", e.i(Date.UTC, !1), y), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1278
1290
|
for (var r = 0; r < t.length; r++)
|
|
@@ -1286,9 +1298,9 @@ function Ao(e, t) {
|
|
|
1286
1298
|
};
|
|
1287
1299
|
}(t[r]), W(e, e.$, t[r], n);
|
|
1288
1300
|
}
|
|
1289
|
-
function
|
|
1301
|
+
function Po(e, t) {
|
|
1290
1302
|
var n = function(r, o) {
|
|
1291
|
-
if (
|
|
1303
|
+
if (pe(e))
|
|
1292
1304
|
var a = this;
|
|
1293
1305
|
else {
|
|
1294
1306
|
if (o === void 0 && H(e, r, e.I))
|
|
@@ -1297,51 +1309,51 @@ function Oo(e, t) {
|
|
|
1297
1309
|
}
|
|
1298
1310
|
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || w(e, e.T, "Invalid regexp flag: " + o);
|
|
1299
1311
|
try {
|
|
1300
|
-
var s = new
|
|
1312
|
+
var s = new ve.RegExp(r, o);
|
|
1301
1313
|
} catch (u) {
|
|
1302
1314
|
w(e, e.T, u.message);
|
|
1303
1315
|
}
|
|
1304
|
-
return
|
|
1316
|
+
return qt(e, a, s), a;
|
|
1305
1317
|
};
|
|
1306
1318
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, J), e.g(e.I.h.prototype, "ignoreCase", void 0, J), e.g(e.I.h.prototype, "multiline", void 0, J), e.g(e.I.h.prototype, "source", "(?:)", J), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1307
|
-
function a(
|
|
1308
|
-
if (
|
|
1309
|
-
var
|
|
1310
|
-
return e.g(
|
|
1319
|
+
function a(E) {
|
|
1320
|
+
if (E) {
|
|
1321
|
+
var S = ce(e, E);
|
|
1322
|
+
return e.g(S, "index", E.index), e.g(S, "input", E.input), S;
|
|
1311
1323
|
}
|
|
1312
1324
|
return null;
|
|
1313
1325
|
}
|
|
1314
1326
|
var s = this.data;
|
|
1315
1327
|
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), $e(e, s, o), e.REGEXP_MODE === 2)
|
|
1316
|
-
if (
|
|
1328
|
+
if (ue)
|
|
1317
1329
|
r = We(e, "regexp.exec(string)", {
|
|
1318
1330
|
string: r,
|
|
1319
1331
|
regexp: s
|
|
1320
1332
|
}, s, o), r !== Oe && (e.g(this, "lastIndex", s.lastIndex), o(a(r)));
|
|
1321
1333
|
else {
|
|
1322
|
-
var u = e.ha(), d = He(e, s, u, o),
|
|
1323
|
-
u.onmessage = function(
|
|
1324
|
-
clearTimeout(d), e.g(
|
|
1334
|
+
var u = e.ha(), d = He(e, s, u, o), k = this;
|
|
1335
|
+
u.onmessage = function(E) {
|
|
1336
|
+
clearTimeout(d), e.g(k, "lastIndex", E.data[1]), o(a(E.data[0]));
|
|
1325
1337
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1326
1338
|
}
|
|
1327
1339
|
else
|
|
1328
1340
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(a(r));
|
|
1329
1341
|
}, Ke(e, e.I, "exec", n);
|
|
1330
1342
|
}
|
|
1331
|
-
function
|
|
1343
|
+
function No(e, t) {
|
|
1332
1344
|
function n(r) {
|
|
1333
1345
|
var o = e.i(function(a) {
|
|
1334
|
-
var s =
|
|
1346
|
+
var s = pe(e) ? this : e.Aa(o);
|
|
1335
1347
|
return Wt(e, s, a), s;
|
|
1336
1348
|
}, !0);
|
|
1337
1349
|
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
|
|
1338
1350
|
}
|
|
1339
1351
|
e.D = e.i(function(r) {
|
|
1340
|
-
var o =
|
|
1352
|
+
var o = pe(e) ? this : e.Aa(e.D);
|
|
1341
1353
|
return Wt(e, o, r), o;
|
|
1342
1354
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1343
1355
|
}
|
|
1344
|
-
function
|
|
1356
|
+
function Bo(e, t) {
|
|
1345
1357
|
var n = e.s(e.M);
|
|
1346
1358
|
e.g(t, "Math", n, y);
|
|
1347
1359
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1350,7 +1362,7 @@ function Ro(e, t) {
|
|
|
1350
1362
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1351
1363
|
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1352
1364
|
}
|
|
1353
|
-
function
|
|
1365
|
+
function Mo(e, t) {
|
|
1354
1366
|
var n = e.s(e.M);
|
|
1355
1367
|
e.g(t, "JSON", n, y), t = function(r) {
|
|
1356
1368
|
try {
|
|
@@ -1360,7 +1372,7 @@ function Po(e, t) {
|
|
|
1360
1372
|
}
|
|
1361
1373
|
return e.Ia(o);
|
|
1362
1374
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, a) {
|
|
1363
|
-
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o =
|
|
1375
|
+
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = fr(e, o), o = o.filter(function(u) {
|
|
1364
1376
|
return typeof u == "string" || typeof u == "number";
|
|
1365
1377
|
})) : o = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
|
|
1366
1378
|
try {
|
|
@@ -1376,14 +1388,14 @@ function H(e, t, n) {
|
|
|
1376
1388
|
return !1;
|
|
1377
1389
|
if (n = n.h.prototype, t === n)
|
|
1378
1390
|
return !0;
|
|
1379
|
-
for (t =
|
|
1391
|
+
for (t = fe(e, t); t; ) {
|
|
1380
1392
|
if (t === n)
|
|
1381
1393
|
return !0;
|
|
1382
1394
|
t = t.xa;
|
|
1383
1395
|
}
|
|
1384
1396
|
return !1;
|
|
1385
1397
|
}
|
|
1386
|
-
function
|
|
1398
|
+
function qt(e, t, n) {
|
|
1387
1399
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, J), e.g(t, "global", n.global, J), e.g(t, "ignoreCase", n.ignoreCase, J), e.g(t, "multiline", n.multiline, J);
|
|
1388
1400
|
}
|
|
1389
1401
|
function Wt(e, t, n) {
|
|
@@ -1405,7 +1417,7 @@ function Wt(e, t, n) {
|
|
|
1405
1417
|
}
|
|
1406
1418
|
N.ha = function() {
|
|
1407
1419
|
var e = this.ha.Mb;
|
|
1408
|
-
return e || (e = new Blob([
|
|
1420
|
+
return e || (e = new Blob([ko.join(`
|
|
1409
1421
|
`)], {
|
|
1410
1422
|
type: "application/javascript"
|
|
1411
1423
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1415,7 +1427,7 @@ function We(e, t, n, r, o) {
|
|
|
1415
1427
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1416
1428
|
};
|
|
1417
1429
|
try {
|
|
1418
|
-
return
|
|
1430
|
+
return ue.runInNewContext(t, n, a);
|
|
1419
1431
|
} catch {
|
|
1420
1432
|
o(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1421
1433
|
}
|
|
@@ -1426,16 +1438,16 @@ function $e(e, t, n) {
|
|
|
1426
1438
|
var r = !1;
|
|
1427
1439
|
else if (e.REGEXP_MODE === 1)
|
|
1428
1440
|
r = !0;
|
|
1429
|
-
else if (
|
|
1441
|
+
else if (ue)
|
|
1430
1442
|
r = !0;
|
|
1431
1443
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1432
1444
|
r = !0;
|
|
1433
1445
|
else if (typeof require == "function") {
|
|
1434
1446
|
try {
|
|
1435
|
-
|
|
1447
|
+
ue = require("vm");
|
|
1436
1448
|
} catch {
|
|
1437
1449
|
}
|
|
1438
|
-
r = !!
|
|
1450
|
+
r = !!ue;
|
|
1439
1451
|
} else
|
|
1440
1452
|
r = !1;
|
|
1441
1453
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
@@ -1465,19 +1477,19 @@ function Re(e) {
|
|
|
1465
1477
|
writable: !0
|
|
1466
1478
|
}), t.H = "Array", t;
|
|
1467
1479
|
}
|
|
1468
|
-
function
|
|
1480
|
+
function Zt(e, t, n) {
|
|
1469
1481
|
var r = e.s(e.Z);
|
|
1470
1482
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, J), r.H = "Function", r;
|
|
1471
1483
|
}
|
|
1472
|
-
function
|
|
1473
|
-
var o =
|
|
1484
|
+
function Qt(e, t, n, r) {
|
|
1485
|
+
var o = Zt(e, t.oa.length, !0);
|
|
1474
1486
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", J), o;
|
|
1475
1487
|
}
|
|
1476
1488
|
N.i = function(e, t) {
|
|
1477
|
-
return t =
|
|
1489
|
+
return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
|
|
1478
1490
|
};
|
|
1479
1491
|
N.ub = function(e) {
|
|
1480
|
-
var t =
|
|
1492
|
+
var t = Zt(this, e.length, !0);
|
|
1481
1493
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
|
|
1482
1494
|
};
|
|
1483
1495
|
N.Ia = function(e) {
|
|
@@ -1487,7 +1499,7 @@ N.Ia = function(e) {
|
|
|
1487
1499
|
return e;
|
|
1488
1500
|
if (e instanceof RegExp) {
|
|
1489
1501
|
var t = this.s(this.Ma);
|
|
1490
|
-
return
|
|
1502
|
+
return qt(this, t, e), t;
|
|
1491
1503
|
}
|
|
1492
1504
|
if (e instanceof Date)
|
|
1493
1505
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1541,18 +1553,18 @@ N.R = function(e, t) {
|
|
|
1541
1553
|
});
|
|
1542
1554
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1543
1555
|
};
|
|
1544
|
-
function
|
|
1556
|
+
function ce(e, t) {
|
|
1545
1557
|
for (var n = Re(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1546
1558
|
e.g(n, r[o], t[r[o]]);
|
|
1547
1559
|
return n;
|
|
1548
1560
|
}
|
|
1549
|
-
function
|
|
1561
|
+
function fr(e, t) {
|
|
1550
1562
|
var n = [], r;
|
|
1551
1563
|
for (r in t.h)
|
|
1552
1564
|
n[r] = e.G(t, r);
|
|
1553
|
-
return n.length =
|
|
1565
|
+
return n.length = zt(e.G(t, "length")) || 0, n;
|
|
1554
1566
|
}
|
|
1555
|
-
function
|
|
1567
|
+
function fe(e, t) {
|
|
1556
1568
|
switch (typeof t) {
|
|
1557
1569
|
case "number":
|
|
1558
1570
|
return e.aa.h.prototype;
|
|
@@ -1579,7 +1591,7 @@ N.G = function(e, t) {
|
|
|
1579
1591
|
do
|
|
1580
1592
|
if (e.h && t in e.h)
|
|
1581
1593
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1582
|
-
while (e =
|
|
1594
|
+
while (e = fe(this, e));
|
|
1583
1595
|
};
|
|
1584
1596
|
function ft(e, t, n) {
|
|
1585
1597
|
if (!(t instanceof R))
|
|
@@ -1594,7 +1606,7 @@ function ft(e, t, n) {
|
|
|
1594
1606
|
do
|
|
1595
1607
|
if (t.h && n in t.h)
|
|
1596
1608
|
return !0;
|
|
1597
|
-
while (t =
|
|
1609
|
+
while (t = fe(e, t));
|
|
1598
1610
|
return !1;
|
|
1599
1611
|
}
|
|
1600
1612
|
N.g = function(e, t, n, r) {
|
|
@@ -1603,7 +1615,7 @@ N.g = function(e, t, n, r) {
|
|
|
1603
1615
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1604
1616
|
throw TypeError("Expecting native value or pseudo object");
|
|
1605
1617
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1606
|
-
var o = !this.o ||
|
|
1618
|
+
var o = !this.o || en(this).S;
|
|
1607
1619
|
if (e instanceof R) {
|
|
1608
1620
|
if (H(this, e, this.J)) {
|
|
1609
1621
|
var a = Xe(t);
|
|
@@ -1619,7 +1631,7 @@ N.g = function(e, t, n, r) {
|
|
|
1619
1631
|
return;
|
|
1620
1632
|
n = r.value;
|
|
1621
1633
|
}
|
|
1622
|
-
if (n =
|
|
1634
|
+
if (n = zt(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < a)
|
|
1623
1635
|
for (s in e.h) {
|
|
1624
1636
|
var s = Xe(s);
|
|
1625
1637
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1639,7 +1651,7 @@ N.g = function(e, t, n, r) {
|
|
|
1639
1651
|
if (n === Ye)
|
|
1640
1652
|
throw ReferenceError("Value not specified");
|
|
1641
1653
|
for (r = e; !(t in r.h); )
|
|
1642
|
-
if (r =
|
|
1654
|
+
if (r = fe(this, r), !r) {
|
|
1643
1655
|
r = e;
|
|
1644
1656
|
break;
|
|
1645
1657
|
}
|
|
@@ -1671,7 +1683,7 @@ function W(e, t, n, r) {
|
|
|
1671
1683
|
function Ke(e, t, n, r) {
|
|
1672
1684
|
e.g(t.h.prototype, n, e.ub(r), y);
|
|
1673
1685
|
}
|
|
1674
|
-
function
|
|
1686
|
+
function en(e) {
|
|
1675
1687
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1676
1688
|
throw Error("No scope found");
|
|
1677
1689
|
return e;
|
|
@@ -1684,15 +1696,15 @@ function $t(e, t, n) {
|
|
|
1684
1696
|
var o = t.body && t.body[0];
|
|
1685
1697
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1686
1698
|
}
|
|
1687
|
-
return o = e.s(null), r = new
|
|
1699
|
+
return o = e.s(null), r = new hr(n, r, o), n || Co(e, r.object), Je(e, t, r), r;
|
|
1688
1700
|
}
|
|
1689
|
-
function
|
|
1701
|
+
function tn(e, t, n) {
|
|
1690
1702
|
if (!t)
|
|
1691
1703
|
throw Error("parentScope required");
|
|
1692
|
-
return e = n || e.s(null), new
|
|
1704
|
+
return e = n || e.s(null), new hr(t, t.S, e);
|
|
1693
1705
|
}
|
|
1694
|
-
function
|
|
1695
|
-
for (var n =
|
|
1706
|
+
function nn(e, t) {
|
|
1707
|
+
for (var n = en(e); n && n !== e.N; ) {
|
|
1696
1708
|
if (t in n.object.h)
|
|
1697
1709
|
return n.object.h[t];
|
|
1698
1710
|
n = n.Va;
|
|
@@ -1701,8 +1713,8 @@ function tn(e, t) {
|
|
|
1701
1713
|
return e.G(n.object, t);
|
|
1702
1714
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1703
1715
|
}
|
|
1704
|
-
function
|
|
1705
|
-
for (var r =
|
|
1716
|
+
function pr(e, t, n) {
|
|
1717
|
+
for (var r = en(e), o = r.S; r && r !== e.N; ) {
|
|
1706
1718
|
if (t in r.object.h) {
|
|
1707
1719
|
try {
|
|
1708
1720
|
r.object.h[t] = n;
|
|
@@ -1763,20 +1775,20 @@ function Je(e, t, n) {
|
|
|
1763
1775
|
t.jb = r;
|
|
1764
1776
|
}
|
|
1765
1777
|
for (s in r)
|
|
1766
|
-
r[s] === !0 ? e.g(n.object, s, void 0,
|
|
1778
|
+
r[s] === !0 ? e.g(n.object, s, void 0, $n) : e.g(n.object, s, Qt(e, r[s], n), $n);
|
|
1767
1779
|
return r;
|
|
1768
1780
|
}
|
|
1769
|
-
function
|
|
1781
|
+
function pe(e) {
|
|
1770
1782
|
return e.o[e.o.length - 1].isConstructor;
|
|
1771
1783
|
}
|
|
1772
|
-
function
|
|
1773
|
-
return t[0] === Pe ?
|
|
1784
|
+
function rn(e, t) {
|
|
1785
|
+
return t[0] === Pe ? nn(e, t[1]) : e.G(t[0], t[1]);
|
|
1774
1786
|
}
|
|
1775
|
-
function
|
|
1776
|
-
return t[0] === Pe ?
|
|
1787
|
+
function on(e, t, n) {
|
|
1788
|
+
return t[0] === Pe ? pr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1777
1789
|
}
|
|
1778
1790
|
function w(e, t, n) {
|
|
1779
|
-
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Wt(e, t, n)), ze(e, 4, t),
|
|
1791
|
+
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Wt(e, t, n)), ze(e, 4, t), ur) : n === void 0 ? t : n;
|
|
1780
1792
|
}
|
|
1781
1793
|
function ze(e, t, n, r) {
|
|
1782
1794
|
if (t === 0)
|
|
@@ -1854,7 +1866,7 @@ function Y(e, t) {
|
|
|
1854
1866
|
}
|
|
1855
1867
|
return "???";
|
|
1856
1868
|
}
|
|
1857
|
-
function
|
|
1869
|
+
function Kn(e, t, n) {
|
|
1858
1870
|
var r = e.o[e.o.length - 1], o = Array.from(n), a = o.shift();
|
|
1859
1871
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1860
1872
|
var s = e.ya();
|
|
@@ -1864,19 +1876,19 @@ function Hn(e, t, n) {
|
|
|
1864
1876
|
} else {
|
|
1865
1877
|
try {
|
|
1866
1878
|
var d = je(String(a), "taskCode" + e.ic++);
|
|
1867
|
-
} catch (
|
|
1868
|
-
w(e, e.T, "Invalid code: " +
|
|
1879
|
+
} catch (k) {
|
|
1880
|
+
w(e, e.T, "Invalid code: " + k.message);
|
|
1869
1881
|
}
|
|
1870
1882
|
s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1871
1883
|
}
|
|
1872
|
-
return t = new
|
|
1884
|
+
return t = new Uo(u, o, r, s, t ? n : -1), dr(e, t, n), t.Db;
|
|
1873
1885
|
}
|
|
1874
|
-
function
|
|
1886
|
+
function dr(e, t, n) {
|
|
1875
1887
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1876
1888
|
return r.time - o.time;
|
|
1877
1889
|
});
|
|
1878
1890
|
}
|
|
1879
|
-
function
|
|
1891
|
+
function Gn(e, t) {
|
|
1880
1892
|
for (var n = 0; n < e.ca.length; n++)
|
|
1881
1893
|
if (e.ca[n].Db == t) {
|
|
1882
1894
|
e.ca.splice(n, 1);
|
|
@@ -1888,17 +1900,17 @@ function qe(e, t, n) {
|
|
|
1888
1900
|
throw Error("Unexpected call to createGetter");
|
|
1889
1901
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1890
1902
|
var r = e.ya();
|
|
1891
|
-
return r.type = "CallExpression", e = new
|
|
1903
|
+
return r.type = "CallExpression", e = new b(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1892
1904
|
}
|
|
1893
|
-
function
|
|
1905
|
+
function an(e, t, n, r) {
|
|
1894
1906
|
if (!e.Ka)
|
|
1895
1907
|
throw Error("Unexpected call to createSetter");
|
|
1896
1908
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1897
1909
|
var o = e.ya();
|
|
1898
|
-
return o.type = "CallExpression", e = new
|
|
1910
|
+
return o.type = "CallExpression", e = new b(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1899
1911
|
}
|
|
1900
|
-
function
|
|
1901
|
-
return t == null ? e.Na : t instanceof R ? t : (e = e.s(
|
|
1912
|
+
function Dt(e, t) {
|
|
1913
|
+
return t == null ? e.Na : t instanceof R ? t : (e = e.s(fe(e, t)), e.data = t, e);
|
|
1902
1914
|
}
|
|
1903
1915
|
N.Xb = function() {
|
|
1904
1916
|
return this.N;
|
|
@@ -1909,10 +1921,10 @@ N.Yb = function() {
|
|
|
1909
1921
|
N.ec = function(e) {
|
|
1910
1922
|
this.o = e;
|
|
1911
1923
|
};
|
|
1912
|
-
function
|
|
1924
|
+
function b(e, t) {
|
|
1913
1925
|
this.node = e, this.scope = t;
|
|
1914
1926
|
}
|
|
1915
|
-
function
|
|
1927
|
+
function hr(e, t, n) {
|
|
1916
1928
|
this.Va = e, this.S = t, this.object = n;
|
|
1917
1929
|
}
|
|
1918
1930
|
function R(e) {
|
|
@@ -1928,7 +1940,7 @@ N.toString = function() {
|
|
|
1928
1940
|
if (!(this instanceof R))
|
|
1929
1941
|
return String(this);
|
|
1930
1942
|
if (this.H === "Array") {
|
|
1931
|
-
var e =
|
|
1943
|
+
var e = Hn;
|
|
1932
1944
|
e.push(this);
|
|
1933
1945
|
try {
|
|
1934
1946
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -1944,7 +1956,7 @@ N.toString = function() {
|
|
|
1944
1956
|
return t.join(",");
|
|
1945
1957
|
}
|
|
1946
1958
|
if (this.H === "Error") {
|
|
1947
|
-
if (e =
|
|
1959
|
+
if (e = Hn, e.indexOf(this) !== -1)
|
|
1948
1960
|
return "[object Error]";
|
|
1949
1961
|
n = this;
|
|
1950
1962
|
do
|
|
@@ -1973,25 +1985,25 @@ N.toString = function() {
|
|
|
1973
1985
|
N.valueOf = function() {
|
|
1974
1986
|
return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1975
1987
|
};
|
|
1976
|
-
function
|
|
1977
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
1988
|
+
function Uo(e, t, n, r, o) {
|
|
1989
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Fo, this.time = 0;
|
|
1978
1990
|
}
|
|
1979
|
-
var
|
|
1991
|
+
var Fo = 0;
|
|
1980
1992
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
1981
1993
|
n = n.elements;
|
|
1982
1994
|
var r = t.A || 0;
|
|
1983
1995
|
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Re(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1984
1996
|
if (n[r])
|
|
1985
|
-
return t.A = r, new
|
|
1997
|
+
return t.A = r, new b(n[r], t.scope);
|
|
1986
1998
|
r++;
|
|
1987
1999
|
}
|
|
1988
2000
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1989
2001
|
};
|
|
1990
2002
|
h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
1991
2003
|
if (!t.ja)
|
|
1992
|
-
return t.ja = !0, t = new
|
|
2004
|
+
return t.ja = !0, t = new b(n.left, t.scope), t.sa = !0, t;
|
|
1993
2005
|
if (!t.Da)
|
|
1994
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
2006
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = rn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, qe(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new b(n.right, t.scope));
|
|
1995
2007
|
if (t.ta)
|
|
1996
2008
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1997
2009
|
else {
|
|
@@ -2036,16 +2048,16 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2036
2048
|
default:
|
|
2037
2049
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2038
2050
|
}
|
|
2039
|
-
if (n =
|
|
2040
|
-
return t.ta = !0, t.ib = r,
|
|
2051
|
+
if (n = on(this, t.Fa, r))
|
|
2052
|
+
return t.ta = !0, t.ib = r, an(this, n, t.Fa, r);
|
|
2041
2053
|
e.pop(), e[e.length - 1].value = r;
|
|
2042
2054
|
}
|
|
2043
2055
|
};
|
|
2044
2056
|
h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2045
2057
|
if (!t.ja)
|
|
2046
|
-
return t.ja = !0, new
|
|
2058
|
+
return t.ja = !0, new b(n.left, t.scope);
|
|
2047
2059
|
if (!t.Da)
|
|
2048
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2060
|
+
return t.Da = !0, t.ma = t.value, new b(n.right, t.scope);
|
|
2049
2061
|
e.pop();
|
|
2050
2062
|
var r = t.ma;
|
|
2051
2063
|
switch (t = t.value, n.operator) {
|
|
@@ -2120,7 +2132,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2120
2132
|
h.prototype.stepBlockStatement = function(e, t, n) {
|
|
2121
2133
|
var r = t.A || 0;
|
|
2122
2134
|
if (n = n.body[r])
|
|
2123
|
-
return t.A = r + 1, new
|
|
2135
|
+
return t.A = r + 1, new b(n, t.scope);
|
|
2124
2136
|
e.pop();
|
|
2125
2137
|
};
|
|
2126
2138
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
@@ -2130,14 +2142,14 @@ h.prototype.Hb = 0;
|
|
|
2130
2142
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
2131
2143
|
if (!t.ia) {
|
|
2132
2144
|
t.ia = 1;
|
|
2133
|
-
var r = new
|
|
2145
|
+
var r = new b(n.callee, t.scope);
|
|
2134
2146
|
return r.sa = !0, r;
|
|
2135
2147
|
}
|
|
2136
2148
|
if (t.ia === 1) {
|
|
2137
2149
|
t.ia = 2;
|
|
2138
2150
|
var o = t.value;
|
|
2139
2151
|
if (Array.isArray(o)) {
|
|
2140
|
-
if (t.U =
|
|
2152
|
+
if (t.U = rn(this, o), o[0] === Pe ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2141
2153
|
return t.ia = 1, qe(this, o, t.value);
|
|
2142
2154
|
} else
|
|
2143
2155
|
t.U = o;
|
|
@@ -2145,7 +2157,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2145
2157
|
}
|
|
2146
2158
|
if (o = t.U, !t.Qa) {
|
|
2147
2159
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2148
|
-
return new
|
|
2160
|
+
return new b(n.arguments[t.A++], t.scope);
|
|
2149
2161
|
if (n.type === "NewExpression") {
|
|
2150
2162
|
if (o instanceof R && !o.Ab || w(this, this.j, Y(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2151
2163
|
t.B = Re(this);
|
|
@@ -2165,7 +2177,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2165
2177
|
this.g(r, o, t.F[o]);
|
|
2166
2178
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2167
2179
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2168
|
-
return n.S || (t.B =
|
|
2180
|
+
return n.S || (t.B = Dt(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new b(e.body, n);
|
|
2169
2181
|
}
|
|
2170
2182
|
if (o.eval)
|
|
2171
2183
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2176,15 +2188,15 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2176
2188
|
} catch (u) {
|
|
2177
2189
|
w(this, this.T, "Invalid code: " + u.message);
|
|
2178
2190
|
}
|
|
2179
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Je(this, r, n), this.value = void 0, new
|
|
2191
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Je(this, r, n), this.value = void 0, new b(o, n);
|
|
2180
2192
|
}
|
|
2181
2193
|
else if (o.Ta)
|
|
2182
|
-
t.scope.S || (t.B =
|
|
2194
|
+
t.scope.S || (t.B = Dt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2183
2195
|
else if (o.Za) {
|
|
2184
2196
|
var s = this;
|
|
2185
2197
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2186
2198
|
t.value = u, s.za = !1;
|
|
2187
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2199
|
+
}), this.za = !0, t.scope.S || (t.B = Dt(this, t.B)), o.Za.apply(t.B, r);
|
|
2188
2200
|
} else
|
|
2189
2201
|
w(this, this.j, Y(this, n.callee) + " is not callable");
|
|
2190
2202
|
}
|
|
@@ -2192,12 +2204,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2192
2204
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2193
2205
|
var r = t.na || 0;
|
|
2194
2206
|
if (r === 0)
|
|
2195
|
-
return t.na = 1, new
|
|
2207
|
+
return t.na = 1, new b(n.test, t.scope);
|
|
2196
2208
|
if (r === 1) {
|
|
2197
2209
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2198
|
-
return new
|
|
2210
|
+
return new b(n.da, t.scope);
|
|
2199
2211
|
if (!r && n.alternate)
|
|
2200
|
-
return new
|
|
2212
|
+
return new b(n.alternate, t.scope);
|
|
2201
2213
|
this.value = void 0;
|
|
2202
2214
|
}
|
|
2203
2215
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
@@ -2210,11 +2222,11 @@ h.prototype.stepDebuggerStatement = function(e) {
|
|
|
2210
2222
|
};
|
|
2211
2223
|
h.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2212
2224
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2213
|
-
return t.ga = !0, new
|
|
2225
|
+
return t.ga = !0, new b(n.test, t.scope);
|
|
2214
2226
|
if (!t.value)
|
|
2215
2227
|
e.pop();
|
|
2216
2228
|
else if (n.body)
|
|
2217
|
-
return t.ga = !1, t.W = !0, new
|
|
2229
|
+
return t.ga = !1, t.W = !0, new b(n.body, t.scope);
|
|
2218
2230
|
};
|
|
2219
2231
|
h.prototype.stepEmptyStatement = function(e) {
|
|
2220
2232
|
e.pop();
|
|
@@ -2222,19 +2234,19 @@ h.prototype.stepEmptyStatement = function(e) {
|
|
|
2222
2234
|
h.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2223
2235
|
var r = t.A || 0;
|
|
2224
2236
|
if (n = n.body[r])
|
|
2225
|
-
return t.A = r + 1, new
|
|
2237
|
+
return t.A = r + 1, new b(n, t.scope);
|
|
2226
2238
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2227
2239
|
};
|
|
2228
2240
|
h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2229
2241
|
if (!t.ka)
|
|
2230
|
-
return this.value = void 0, t.ka = !0, new
|
|
2242
|
+
return this.value = void 0, t.ka = !0, new b(n.la, t.scope);
|
|
2231
2243
|
e.pop(), this.value = t.value;
|
|
2232
2244
|
};
|
|
2233
2245
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2234
2246
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2235
|
-
return t.scope.S && w(this, this.T, "for-in loop variable declaration may not have an initializer"), new
|
|
2247
|
+
return t.scope.S && w(this, this.T, "for-in loop variable declaration may not have an initializer"), new b(n.left, t.scope);
|
|
2236
2248
|
if (!t.Ca)
|
|
2237
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2249
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new b(n.right, t.scope);
|
|
2238
2250
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2239
2251
|
e:
|
|
2240
2252
|
for (; ; ) {
|
|
@@ -2255,7 +2267,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2255
2267
|
break e;
|
|
2256
2268
|
}
|
|
2257
2269
|
}
|
|
2258
|
-
if (t.u =
|
|
2270
|
+
if (t.u = fe(this, t.u), t.wa = null, t.u === null) {
|
|
2259
2271
|
e.pop();
|
|
2260
2272
|
return;
|
|
2261
2273
|
}
|
|
@@ -2264,75 +2276,75 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2264
2276
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2265
2277
|
t.pa = [Pe, e.fa[0].id.name];
|
|
2266
2278
|
else
|
|
2267
|
-
return t.pa = null, t = new
|
|
2268
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2269
|
-
return
|
|
2279
|
+
return t.pa = null, t = new b(e, t.scope), t.sa = !0, t;
|
|
2280
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = on(this, t.pa, e)))
|
|
2281
|
+
return an(this, r, t.pa, e);
|
|
2270
2282
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2271
|
-
return new
|
|
2283
|
+
return new b(n.body, t.scope);
|
|
2272
2284
|
};
|
|
2273
2285
|
h.prototype.stepForStatement = function(e, t, n) {
|
|
2274
2286
|
switch (t.na) {
|
|
2275
2287
|
default:
|
|
2276
2288
|
if (t.na = 1, n.ua)
|
|
2277
|
-
return new
|
|
2289
|
+
return new b(n.ua, t.scope);
|
|
2278
2290
|
break;
|
|
2279
2291
|
case 1:
|
|
2280
2292
|
if (t.na = 2, n.test)
|
|
2281
|
-
return new
|
|
2293
|
+
return new b(n.test, t.scope);
|
|
2282
2294
|
break;
|
|
2283
2295
|
case 2:
|
|
2284
2296
|
if (t.na = 3, n.test && !t.value)
|
|
2285
2297
|
e.pop();
|
|
2286
2298
|
else
|
|
2287
|
-
return t.W = !0, new
|
|
2299
|
+
return t.W = !0, new b(n.body, t.scope);
|
|
2288
2300
|
break;
|
|
2289
2301
|
case 3:
|
|
2290
2302
|
if (t.na = 1, n.update)
|
|
2291
|
-
return new
|
|
2303
|
+
return new b(n.update, t.scope);
|
|
2292
2304
|
}
|
|
2293
2305
|
};
|
|
2294
2306
|
h.prototype.stepFunctionDeclaration = function(e) {
|
|
2295
2307
|
e.pop();
|
|
2296
2308
|
};
|
|
2297
2309
|
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2298
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2310
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = tn(this, e)), t.value = Qt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Jt);
|
|
2299
2311
|
};
|
|
2300
2312
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2301
2313
|
if (e.pop(), t.sa)
|
|
2302
2314
|
e[e.length - 1].value = [Pe, n.name];
|
|
2303
2315
|
else {
|
|
2304
|
-
if (t =
|
|
2316
|
+
if (t = nn(this, n.name), this.P)
|
|
2305
2317
|
return qe(this, t, this.Na);
|
|
2306
2318
|
e[e.length - 1].value = t;
|
|
2307
2319
|
}
|
|
2308
2320
|
};
|
|
2309
2321
|
h.prototype.stepIfStatement = h.prototype.stepConditionalExpression;
|
|
2310
2322
|
h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2311
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2323
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new b(n.body, t.scope), t.labels = e, t;
|
|
2312
2324
|
};
|
|
2313
2325
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2314
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2326
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), qt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2315
2327
|
};
|
|
2316
2328
|
h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2317
2329
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2318
2330
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2319
2331
|
if (!t.ja)
|
|
2320
|
-
return t.ja = !0, new
|
|
2332
|
+
return t.ja = !0, new b(n.left, t.scope);
|
|
2321
2333
|
if (t.Da)
|
|
2322
2334
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2323
2335
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2324
2336
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2325
2337
|
else
|
|
2326
|
-
return t.Da = !0, new
|
|
2338
|
+
return t.Da = !0, new b(n.right, t.scope);
|
|
2327
2339
|
};
|
|
2328
2340
|
h.prototype.stepMemberExpression = function(e, t, n) {
|
|
2329
2341
|
if (!t.Ca)
|
|
2330
|
-
return t.Ca = !0, new
|
|
2342
|
+
return t.Ca = !0, new b(n.object, t.scope);
|
|
2331
2343
|
if (n.bb)
|
|
2332
2344
|
if (t.Vb)
|
|
2333
2345
|
n = t.value;
|
|
2334
2346
|
else
|
|
2335
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2347
|
+
return t.u = t.value, t.Vb = !0, new b(n.Wa, t.scope);
|
|
2336
2348
|
else
|
|
2337
2349
|
t.u = t.value, n = n.Wa.name;
|
|
2338
2350
|
if (e.pop(), t.sa)
|
|
@@ -2359,7 +2371,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2359
2371
|
a = s.value;
|
|
2360
2372
|
else
|
|
2361
2373
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2362
|
-
return t.Pa = a, new
|
|
2374
|
+
return t.Pa = a, new b(o.value, t.scope);
|
|
2363
2375
|
}
|
|
2364
2376
|
for (s in t.Ja)
|
|
2365
2377
|
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Ye, {
|
|
@@ -2372,35 +2384,35 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2372
2384
|
};
|
|
2373
2385
|
h.prototype.stepProgram = function(e, t, n) {
|
|
2374
2386
|
if (e = n.body.shift())
|
|
2375
|
-
return t.done = !1, new
|
|
2387
|
+
return t.done = !1, new b(e, t.scope);
|
|
2376
2388
|
t.done = !0;
|
|
2377
2389
|
};
|
|
2378
2390
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2379
2391
|
if (n.K && !t.ka)
|
|
2380
|
-
return t.ka = !0, new
|
|
2392
|
+
return t.ka = !0, new b(n.K, t.scope);
|
|
2381
2393
|
ze(this, 3, t.value);
|
|
2382
2394
|
};
|
|
2383
2395
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2384
2396
|
var r = t.A || 0;
|
|
2385
2397
|
if (n = n.xb[r])
|
|
2386
|
-
return t.A = r + 1, new
|
|
2398
|
+
return t.A = r + 1, new b(n, t.scope);
|
|
2387
2399
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2388
2400
|
};
|
|
2389
2401
|
h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2390
2402
|
if (!t.ga)
|
|
2391
|
-
return t.ga = 1, new
|
|
2403
|
+
return t.ga = 1, new b(n.Qb, t.scope);
|
|
2392
2404
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2393
2405
|
var r = t.gb || 0, o = n.tb[r];
|
|
2394
2406
|
if (t.Ha || !o || o.test)
|
|
2395
2407
|
if (o || t.Ha || t.cb === -1)
|
|
2396
2408
|
if (o) {
|
|
2397
2409
|
if (!t.Ha && !t.Fb && o.test)
|
|
2398
|
-
return t.Fb = !0, new
|
|
2410
|
+
return t.Fb = !0, new b(o.test, t.scope);
|
|
2399
2411
|
if (t.Ha || t.value === t.hc) {
|
|
2400
2412
|
t.Ha = !0;
|
|
2401
2413
|
var a = t.A || 0;
|
|
2402
2414
|
if (o.da[a])
|
|
2403
|
-
return t.Zb = !0, t.A = a + 1, new
|
|
2415
|
+
return t.Zb = !0, t.A = a + 1, new b(o.da[a], t.scope);
|
|
2404
2416
|
}
|
|
2405
2417
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2406
2418
|
} else {
|
|
@@ -2414,26 +2426,26 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2414
2426
|
}
|
|
2415
2427
|
};
|
|
2416
2428
|
h.prototype.stepThisExpression = function(e) {
|
|
2417
|
-
e.pop(), e[e.length - 1].value =
|
|
2429
|
+
e.pop(), e[e.length - 1].value = nn(this, "this");
|
|
2418
2430
|
};
|
|
2419
2431
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2420
2432
|
if (t.ka)
|
|
2421
2433
|
w(this, t.value);
|
|
2422
2434
|
else
|
|
2423
|
-
return t.ka = !0, new
|
|
2435
|
+
return t.ka = !0, new b(n.K, t.scope);
|
|
2424
2436
|
};
|
|
2425
2437
|
h.prototype.stepTryStatement = function(e, t, n) {
|
|
2426
2438
|
if (!t.Rb)
|
|
2427
|
-
return t.Rb = !0, new
|
|
2439
|
+
return t.Rb = !0, new b(n.block, t.scope);
|
|
2428
2440
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2429
|
-
return t.Tb = !0, e =
|
|
2441
|
+
return t.Tb = !0, e = tn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new b(n.Ea.body, e);
|
|
2430
2442
|
if (!t.Sb && n.fb)
|
|
2431
|
-
return t.Sb = !0, new
|
|
2443
|
+
return t.Sb = !0, new b(n.fb, t.scope);
|
|
2432
2444
|
e.pop(), t.ea && ze(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2433
2445
|
};
|
|
2434
2446
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2435
2447
|
if (!t.ka)
|
|
2436
|
-
return t.ka = !0, e = new
|
|
2448
|
+
return t.ka = !0, e = new b(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2437
2449
|
e.pop();
|
|
2438
2450
|
var r = t.value;
|
|
2439
2451
|
switch (n.operator) {
|
|
@@ -2474,9 +2486,9 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2474
2486
|
};
|
|
2475
2487
|
h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2476
2488
|
if (!t.ja)
|
|
2477
|
-
return t.ja = !0, e = new
|
|
2489
|
+
return t.ja = !0, e = new b(n.K, t.scope), e.sa = !0, e;
|
|
2478
2490
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2479
|
-
var r =
|
|
2491
|
+
var r = rn(this, t.Ga);
|
|
2480
2492
|
if (t.ma = r, this.P)
|
|
2481
2493
|
return t.Ba = !0, qe(this, r, t.Ga);
|
|
2482
2494
|
}
|
|
@@ -2489,26 +2501,26 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2489
2501
|
o = r - 1;
|
|
2490
2502
|
else
|
|
2491
2503
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2492
|
-
if (n = n.prefix ? o : r, r =
|
|
2493
|
-
return t.ta = !0, t.ib = n,
|
|
2504
|
+
if (n = n.prefix ? o : r, r = on(this, t.Ga, o))
|
|
2505
|
+
return t.ta = !0, t.ib = n, an(this, r, t.Ga, o);
|
|
2494
2506
|
e.pop(), e[e.length - 1].value = n;
|
|
2495
2507
|
}
|
|
2496
2508
|
};
|
|
2497
2509
|
h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2498
2510
|
n = n.fa;
|
|
2499
2511
|
var r = t.A || 0, o = n[r];
|
|
2500
|
-
for (t.Bb && o && (
|
|
2512
|
+
for (t.Bb && o && (pr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2501
2513
|
if (o.ua)
|
|
2502
|
-
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new
|
|
2514
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new b(o.ua, t.scope);
|
|
2503
2515
|
o = n[++r];
|
|
2504
2516
|
}
|
|
2505
2517
|
e.pop();
|
|
2506
2518
|
};
|
|
2507
2519
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2508
|
-
return t.Ca ? (e.pop(), e =
|
|
2520
|
+
return t.Ca ? (e.pop(), e = tn(this, t.scope, t.value), new b(n.body, e)) : (t.Ca = !0, new b(n.object, t.scope));
|
|
2509
2521
|
};
|
|
2510
2522
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2511
|
-
|
|
2523
|
+
ve.Interpreter = h;
|
|
2512
2524
|
h.prototype.step = h.prototype.lb;
|
|
2513
2525
|
h.prototype.run = h.prototype.Eb;
|
|
2514
2526
|
h.prototype.appendCode = h.prototype.Jb;
|
|
@@ -2524,7 +2536,7 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2524
2536
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2525
2537
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2526
2538
|
h.VALUE_IN_DESCRIPTOR = Ye;
|
|
2527
|
-
const
|
|
2539
|
+
const Vo = (e) => e.split(`
|
|
2528
2540
|
`).map((t) => {
|
|
2529
2541
|
const n = t.trim();
|
|
2530
2542
|
if (t.includes("__awaiter"))
|
|
@@ -2537,7 +2549,7 @@ const Mo = (e) => e.split(`
|
|
|
2537
2549
|
${u}
|
|
2538
2550
|
`;
|
|
2539
2551
|
}).filter(Boolean).join(`
|
|
2540
|
-
`),
|
|
2552
|
+
`), Xn = (e) => e + "JSON", Do = ({
|
|
2541
2553
|
builder: e,
|
|
2542
2554
|
context: t,
|
|
2543
2555
|
event: n,
|
|
@@ -2549,47 +2561,47 @@ const Mo = (e) => e.split(`
|
|
|
2549
2561
|
const u = {
|
|
2550
2562
|
...r,
|
|
2551
2563
|
...o
|
|
2552
|
-
}, d =
|
|
2564
|
+
}, d = lr({
|
|
2553
2565
|
builder: e,
|
|
2554
2566
|
context: t,
|
|
2555
2567
|
event: n,
|
|
2556
2568
|
state: u
|
|
2557
|
-
}),
|
|
2558
|
-
const x =
|
|
2559
|
-
return `var ${
|
|
2569
|
+
}), k = d.map(([v]) => {
|
|
2570
|
+
const x = Xn(v);
|
|
2571
|
+
return `var ${v} = ${x} === undefined ? undefined : JSON.parse(${x});`;
|
|
2560
2572
|
}).join(`
|
|
2561
|
-
`),
|
|
2562
|
-
if (
|
|
2573
|
+
`), E = Vo(s);
|
|
2574
|
+
if (E === "") {
|
|
2563
2575
|
q.warn("Skipping evaluation of empty code block.");
|
|
2564
2576
|
return;
|
|
2565
2577
|
}
|
|
2566
|
-
const
|
|
2578
|
+
const S = `
|
|
2567
2579
|
function theFunction() {
|
|
2568
|
-
${
|
|
2580
|
+
${k}
|
|
2569
2581
|
|
|
2570
|
-
${
|
|
2582
|
+
${E}
|
|
2571
2583
|
}
|
|
2572
2584
|
theFunction();
|
|
2573
|
-
`, P = (
|
|
2574
|
-
const B =
|
|
2585
|
+
`, P = (v, x) => {
|
|
2586
|
+
const B = cr(u, v, x);
|
|
2575
2587
|
a == null || a(B);
|
|
2576
|
-
}, j = function(
|
|
2588
|
+
}, j = function(v, x) {
|
|
2577
2589
|
d.forEach(([B, $]) => {
|
|
2578
|
-
const
|
|
2579
|
-
|
|
2580
|
-
}),
|
|
2590
|
+
const m = JSON.stringify($);
|
|
2591
|
+
v.setProperty(x, Xn(B), m);
|
|
2592
|
+
}), v.setProperty(x, "setRootState", v.createNativeFunction(P));
|
|
2581
2593
|
};
|
|
2582
2594
|
try {
|
|
2583
|
-
const
|
|
2584
|
-
return
|
|
2585
|
-
} catch (
|
|
2595
|
+
const v = new h(S, j);
|
|
2596
|
+
return v.run(), v.pseudoToNative(v.value);
|
|
2597
|
+
} catch (v) {
|
|
2586
2598
|
q.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2587
|
-
e:
|
|
2599
|
+
e: v
|
|
2588
2600
|
});
|
|
2589
2601
|
return;
|
|
2590
2602
|
}
|
|
2591
|
-
},
|
|
2592
|
-
function
|
|
2603
|
+
}, _o = (e) => G() ? So(e) : Do(e);
|
|
2604
|
+
function sn({
|
|
2593
2605
|
code: e,
|
|
2594
2606
|
context: t,
|
|
2595
2607
|
localState: n,
|
|
@@ -2603,10 +2615,10 @@ function an({
|
|
|
2603
2615
|
return;
|
|
2604
2616
|
}
|
|
2605
2617
|
const u = {
|
|
2606
|
-
code:
|
|
2618
|
+
code: bo(e, {
|
|
2607
2619
|
isExpression: s
|
|
2608
2620
|
}),
|
|
2609
|
-
builder:
|
|
2621
|
+
builder: vo(),
|
|
2610
2622
|
context: t,
|
|
2611
2623
|
event: a,
|
|
2612
2624
|
rootSetState: o,
|
|
@@ -2614,7 +2626,7 @@ function an({
|
|
|
2614
2626
|
localState: n
|
|
2615
2627
|
};
|
|
2616
2628
|
try {
|
|
2617
|
-
return
|
|
2629
|
+
return _o(u);
|
|
2618
2630
|
} catch (d) {
|
|
2619
2631
|
q.error("Failed code evaluation: " + d.message, {
|
|
2620
2632
|
code: e
|
|
@@ -2623,7 +2635,7 @@ function an({
|
|
|
2623
2635
|
}
|
|
2624
2636
|
}
|
|
2625
2637
|
const pt = (e) => JSON.parse(JSON.stringify(e));
|
|
2626
|
-
const
|
|
2638
|
+
const Lo = ({
|
|
2627
2639
|
block: e,
|
|
2628
2640
|
context: t,
|
|
2629
2641
|
localState: n,
|
|
@@ -2642,14 +2654,14 @@ const Vo = ({
|
|
|
2642
2654
|
}
|
|
2643
2655
|
};
|
|
2644
2656
|
for (const u in e.bindings) {
|
|
2645
|
-
const d = e.bindings[u],
|
|
2657
|
+
const d = e.bindings[u], k = sn({
|
|
2646
2658
|
code: d,
|
|
2647
2659
|
localState: n,
|
|
2648
2660
|
rootState: r,
|
|
2649
2661
|
rootSetState: o,
|
|
2650
2662
|
context: t
|
|
2651
2663
|
});
|
|
2652
|
-
|
|
2664
|
+
cr(s, u, k);
|
|
2653
2665
|
}
|
|
2654
2666
|
return s;
|
|
2655
2667
|
};
|
|
@@ -2662,7 +2674,7 @@ function ct({
|
|
|
2662
2674
|
rootSetState: a
|
|
2663
2675
|
}) {
|
|
2664
2676
|
const s = e;
|
|
2665
|
-
return n ?
|
|
2677
|
+
return n ? Lo({
|
|
2666
2678
|
block: s,
|
|
2667
2679
|
localState: r,
|
|
2668
2680
|
rootState: o,
|
|
@@ -2670,7 +2682,7 @@ function ct({
|
|
|
2670
2682
|
context: t
|
|
2671
2683
|
}) : s;
|
|
2672
2684
|
}
|
|
2673
|
-
const
|
|
2685
|
+
const Wo = ({
|
|
2674
2686
|
block: e,
|
|
2675
2687
|
context: t,
|
|
2676
2688
|
registeredComponents: n
|
|
@@ -2692,7 +2704,7 @@ const _o = ({
|
|
|
2692
2704
|
console.warn(`
|
|
2693
2705
|
Could not find a registered component named "${r}".
|
|
2694
2706
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2695
|
-
},
|
|
2707
|
+
}, $o = ({
|
|
2696
2708
|
block: e,
|
|
2697
2709
|
context: t
|
|
2698
2710
|
}) => {
|
|
@@ -2702,7 +2714,7 @@ const _o = ({
|
|
|
2702
2714
|
} = e;
|
|
2703
2715
|
if (!(n != null && n.collection))
|
|
2704
2716
|
return;
|
|
2705
|
-
const o =
|
|
2717
|
+
const o = sn({
|
|
2706
2718
|
code: n.collection,
|
|
2707
2719
|
localState: t.localState,
|
|
2708
2720
|
rootState: t.rootState,
|
|
@@ -2712,20 +2724,20 @@ const _o = ({
|
|
|
2712
2724
|
if (!Array.isArray(o))
|
|
2713
2725
|
return;
|
|
2714
2726
|
const a = n.collection.split(".").pop(), s = n.itemName || (a ? a + "Item" : "item");
|
|
2715
|
-
return o.map((d,
|
|
2727
|
+
return o.map((d, k) => ({
|
|
2716
2728
|
context: {
|
|
2717
2729
|
...t,
|
|
2718
2730
|
localState: {
|
|
2719
2731
|
...t.localState,
|
|
2720
|
-
$index:
|
|
2732
|
+
$index: k,
|
|
2721
2733
|
$item: d,
|
|
2722
2734
|
[s]: d,
|
|
2723
|
-
[`$${s}Index`]:
|
|
2735
|
+
[`$${s}Index`]: k
|
|
2724
2736
|
}
|
|
2725
2737
|
},
|
|
2726
2738
|
block: r
|
|
2727
2739
|
}));
|
|
2728
|
-
},
|
|
2740
|
+
}, mr = {
|
|
2729
2741
|
small: {
|
|
2730
2742
|
min: 320,
|
|
2731
2743
|
default: 321,
|
|
@@ -2741,11 +2753,11 @@ const _o = ({
|
|
|
2741
2753
|
default: 991,
|
|
2742
2754
|
max: 1200
|
|
2743
2755
|
}
|
|
2744
|
-
},
|
|
2756
|
+
}, Yn = (e, t = mr) => `@media (max-width: ${t[e].max}px)`, gr = ({
|
|
2745
2757
|
small: e,
|
|
2746
2758
|
medium: t
|
|
2747
2759
|
}) => {
|
|
2748
|
-
const n = pt(
|
|
2760
|
+
const n = pt(mr);
|
|
2749
2761
|
if (!e || !t)
|
|
2750
2762
|
return n;
|
|
2751
2763
|
const r = Math.floor(e / 2);
|
|
@@ -2767,26 +2779,26 @@ const _o = ({
|
|
|
2767
2779
|
min: a,
|
|
2768
2780
|
default: a + 1
|
|
2769
2781
|
}, n;
|
|
2770
|
-
},
|
|
2782
|
+
}, Ho = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), de = (e) => e != null, yr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2771
2783
|
if (typeof r == "string")
|
|
2772
|
-
return `${
|
|
2773
|
-
}).filter(
|
|
2774
|
-
`),
|
|
2784
|
+
return `${Ho(n)}: ${r};`;
|
|
2785
|
+
}).filter(de), Ko = (e) => yr(e).join(`
|
|
2786
|
+
`), _t = ({
|
|
2775
2787
|
mediaQuery: e,
|
|
2776
2788
|
className: t,
|
|
2777
2789
|
styles: n
|
|
2778
2790
|
}) => {
|
|
2779
2791
|
const r = `.${t} {
|
|
2780
|
-
${
|
|
2792
|
+
${Ko(n)}
|
|
2781
2793
|
}`;
|
|
2782
2794
|
return e ? `${e} {
|
|
2783
2795
|
${r}
|
|
2784
2796
|
}` : r;
|
|
2785
2797
|
};
|
|
2786
2798
|
function dt(e) {
|
|
2787
|
-
return /* @__PURE__ */
|
|
2799
|
+
return /* @__PURE__ */ C("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2788
2800
|
}
|
|
2789
|
-
function
|
|
2801
|
+
function Go(e) {
|
|
2790
2802
|
const t = function() {
|
|
2791
2803
|
const o = ct({
|
|
2792
2804
|
block: e.block,
|
|
@@ -2796,7 +2808,7 @@ function $o(e) {
|
|
|
2796
2808
|
context: e.context.context,
|
|
2797
2809
|
shouldEvaluateBindings: !0
|
|
2798
2810
|
});
|
|
2799
|
-
return
|
|
2811
|
+
return de(o.hide) ? !o.hide : de(o.show) ? o.show : !0;
|
|
2800
2812
|
}, n = function() {
|
|
2801
2813
|
var x;
|
|
2802
2814
|
const o = ct({
|
|
@@ -2806,37 +2818,37 @@ function $o(e) {
|
|
|
2806
2818
|
rootSetState: e.context.rootSetState,
|
|
2807
2819
|
context: e.context.context,
|
|
2808
2820
|
shouldEvaluateBindings: !0
|
|
2809
|
-
}), a = o.responsiveStyles, s = e.context.content, u =
|
|
2821
|
+
}), a = o.responsiveStyles, s = e.context.content, u = gr(
|
|
2810
2822
|
((x = s == null ? void 0 : s.meta) == null ? void 0 : x.breakpoints) || {}
|
|
2811
|
-
), d = a == null ? void 0 : a.large,
|
|
2812
|
-
if (!
|
|
2823
|
+
), d = a == null ? void 0 : a.large, k = a == null ? void 0 : a.medium, E = a == null ? void 0 : a.small, S = o.id;
|
|
2824
|
+
if (!S)
|
|
2813
2825
|
return "";
|
|
2814
|
-
const P = d ?
|
|
2815
|
-
className:
|
|
2826
|
+
const P = d ? _t({
|
|
2827
|
+
className: S,
|
|
2816
2828
|
styles: d
|
|
2817
|
-
}) : "", j =
|
|
2818
|
-
className:
|
|
2819
|
-
styles:
|
|
2820
|
-
mediaQuery:
|
|
2829
|
+
}) : "", j = k ? _t({
|
|
2830
|
+
className: S,
|
|
2831
|
+
styles: k,
|
|
2832
|
+
mediaQuery: Yn(
|
|
2821
2833
|
"medium",
|
|
2822
2834
|
u
|
|
2823
2835
|
)
|
|
2824
|
-
}) : "",
|
|
2825
|
-
className:
|
|
2826
|
-
styles:
|
|
2827
|
-
mediaQuery:
|
|
2836
|
+
}) : "", v = E ? _t({
|
|
2837
|
+
className: S,
|
|
2838
|
+
styles: E,
|
|
2839
|
+
mediaQuery: Yn(
|
|
2828
2840
|
"small",
|
|
2829
2841
|
u
|
|
2830
2842
|
)
|
|
2831
2843
|
}) : "";
|
|
2832
|
-
return [P, j,
|
|
2844
|
+
return [P, j, v].join(" ");
|
|
2833
2845
|
};
|
|
2834
|
-
return /* @__PURE__ */
|
|
2846
|
+
return /* @__PURE__ */ C(L, { children: n() && t() ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(dt, { styles: n() }) }) : null });
|
|
2835
2847
|
}
|
|
2836
|
-
function
|
|
2848
|
+
function Xo(e) {
|
|
2837
2849
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2838
2850
|
}
|
|
2839
|
-
const
|
|
2851
|
+
const Yo = (e) => `on${Xo(e)}`, Jo = (e, t) => (n) => sn({
|
|
2840
2852
|
code: e,
|
|
2841
2853
|
context: t.context,
|
|
2842
2854
|
localState: t.localState,
|
|
@@ -2845,15 +2857,15 @@ const Ko = (e) => `on${Ho(e)}`, Go = (e, t) => (n) => an({
|
|
|
2845
2857
|
event: n,
|
|
2846
2858
|
isExpression: !1
|
|
2847
2859
|
});
|
|
2848
|
-
function
|
|
2860
|
+
function Pa(e) {
|
|
2849
2861
|
const t = {}, n = e.block.actions ?? {};
|
|
2850
2862
|
for (const r in n) {
|
|
2851
2863
|
if (!n.hasOwnProperty(r))
|
|
2852
2864
|
continue;
|
|
2853
2865
|
const o = n[r];
|
|
2854
|
-
let a =
|
|
2866
|
+
let a = Yo(r);
|
|
2855
2867
|
if (e.stripPrefix)
|
|
2856
|
-
switch (
|
|
2868
|
+
switch (he) {
|
|
2857
2869
|
case "vue":
|
|
2858
2870
|
a = a.replace("v-on:", "");
|
|
2859
2871
|
break;
|
|
@@ -2861,50 +2873,66 @@ function Aa(e) {
|
|
|
2861
2873
|
a = a.replace("on:", "");
|
|
2862
2874
|
break;
|
|
2863
2875
|
}
|
|
2864
|
-
t[a] =
|
|
2876
|
+
t[a] = Jo(o, e);
|
|
2865
2877
|
}
|
|
2866
2878
|
return t;
|
|
2867
2879
|
}
|
|
2868
|
-
function
|
|
2880
|
+
function zo({
|
|
2881
|
+
style: e
|
|
2882
|
+
}) {
|
|
2883
|
+
return e;
|
|
2884
|
+
}
|
|
2885
|
+
const qo = ({
|
|
2886
|
+
block: e,
|
|
2887
|
+
context: t
|
|
2888
|
+
}) => vr(zo({
|
|
2889
|
+
style: e.style || {},
|
|
2890
|
+
context: t,
|
|
2891
|
+
block: e
|
|
2892
|
+
}));
|
|
2893
|
+
function vr(e) {
|
|
2894
|
+
switch (he) {
|
|
2895
|
+
case "svelte":
|
|
2896
|
+
case "vue":
|
|
2897
|
+
case "solid":
|
|
2898
|
+
return yr(e).join(" ");
|
|
2899
|
+
case "qwik":
|
|
2900
|
+
case "reactNative":
|
|
2901
|
+
case "react":
|
|
2902
|
+
case "rsc":
|
|
2903
|
+
return e;
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
function Zo({
|
|
2869
2907
|
properties: e
|
|
2870
2908
|
}) {
|
|
2871
|
-
return e
|
|
2909
|
+
return e;
|
|
2872
2910
|
}
|
|
2873
|
-
const
|
|
2911
|
+
const Qo = (e) => ({
|
|
2874
2912
|
href: e.href
|
|
2875
2913
|
});
|
|
2876
|
-
function
|
|
2914
|
+
function ei({
|
|
2877
2915
|
block: e,
|
|
2878
2916
|
context: t
|
|
2879
2917
|
}) {
|
|
2880
2918
|
var r;
|
|
2881
2919
|
const n = {
|
|
2882
|
-
...
|
|
2920
|
+
...Qo(e),
|
|
2883
2921
|
...e.properties,
|
|
2884
2922
|
"builder-id": e.id,
|
|
2885
|
-
style:
|
|
2886
|
-
|
|
2923
|
+
style: qo({
|
|
2924
|
+
block: e,
|
|
2925
|
+
context: t
|
|
2926
|
+
}),
|
|
2927
|
+
[Xt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
2887
2928
|
};
|
|
2888
|
-
return
|
|
2929
|
+
return Zo({
|
|
2889
2930
|
properties: n,
|
|
2890
2931
|
context: t,
|
|
2891
2932
|
block: e
|
|
2892
2933
|
});
|
|
2893
2934
|
}
|
|
2894
|
-
|
|
2895
|
-
switch (ve) {
|
|
2896
|
-
case "svelte":
|
|
2897
|
-
case "vue":
|
|
2898
|
-
case "solid":
|
|
2899
|
-
return gr(e).join(" ");
|
|
2900
|
-
case "qwik":
|
|
2901
|
-
case "reactNative":
|
|
2902
|
-
case "react":
|
|
2903
|
-
case "rsc":
|
|
2904
|
-
return e;
|
|
2905
|
-
}
|
|
2906
|
-
}
|
|
2907
|
-
const qo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Oa = (e) => typeof e == "string" && qo.has(e.toLowerCase()), Zo = ({
|
|
2935
|
+
const ti = ({
|
|
2908
2936
|
componentOptions: e,
|
|
2909
2937
|
builderBlock: t,
|
|
2910
2938
|
context: n,
|
|
@@ -2920,7 +2948,7 @@ const qo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
2920
2948
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2921
2949
|
*/
|
|
2922
2950
|
...o ? {
|
|
2923
|
-
attributes:
|
|
2951
|
+
attributes: ei({
|
|
2924
2952
|
block: t,
|
|
2925
2953
|
context: s
|
|
2926
2954
|
})
|
|
@@ -2934,54 +2962,57 @@ const qo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
2934
2962
|
includeBlockProps: o
|
|
2935
2963
|
} : u;
|
|
2936
2964
|
};
|
|
2937
|
-
function
|
|
2965
|
+
function Jn(e) {
|
|
2938
2966
|
var n;
|
|
2939
|
-
const t = e.isInteractive ?
|
|
2940
|
-
return /* @__PURE__ */
|
|
2967
|
+
const t = e.isInteractive ? Qr : e.componentRef;
|
|
2968
|
+
return /* @__PURE__ */ C(L, { children: e.componentRef ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
|
|
2941
2969
|
t,
|
|
2942
2970
|
{
|
|
2943
|
-
...
|
|
2971
|
+
...ti({
|
|
2944
2972
|
componentOptions: e.componentOptions,
|
|
2945
2973
|
builderBlock: e.builderBlock,
|
|
2946
2974
|
context: e.context,
|
|
2947
2975
|
componentRef: e.componentRef,
|
|
2976
|
+
linkComponent: e.linkComponent,
|
|
2948
2977
|
includeBlockProps: e.includeBlockProps,
|
|
2949
2978
|
isInteractive: e.isInteractive,
|
|
2950
2979
|
contextValue: e.context
|
|
2951
2980
|
}),
|
|
2952
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */
|
|
2981
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ C(
|
|
2953
2982
|
ht,
|
|
2954
2983
|
{
|
|
2955
2984
|
block: r,
|
|
2956
2985
|
context: e.context,
|
|
2957
|
-
registeredComponents: e.registeredComponents
|
|
2986
|
+
registeredComponents: e.registeredComponents,
|
|
2987
|
+
linkComponent: e.linkComponent
|
|
2958
2988
|
},
|
|
2959
2989
|
r.id
|
|
2960
2990
|
))
|
|
2961
2991
|
}
|
|
2962
2992
|
) }) : null });
|
|
2963
2993
|
}
|
|
2964
|
-
function
|
|
2994
|
+
function ni(e) {
|
|
2965
2995
|
const t = e.repeatContext;
|
|
2966
|
-
return /* @__PURE__ */
|
|
2996
|
+
return /* @__PURE__ */ C(
|
|
2967
2997
|
ht,
|
|
2968
2998
|
{
|
|
2969
2999
|
block: e.block,
|
|
2970
3000
|
context: t,
|
|
2971
|
-
registeredComponents: e.registeredComponents
|
|
3001
|
+
registeredComponents: e.registeredComponents,
|
|
3002
|
+
linkComponent: e.linkComponent
|
|
2972
3003
|
}
|
|
2973
3004
|
);
|
|
2974
3005
|
}
|
|
2975
3006
|
function ht(e) {
|
|
2976
|
-
var
|
|
3007
|
+
var k, E, S;
|
|
2977
3008
|
const t = function() {
|
|
2978
|
-
return
|
|
3009
|
+
return Wo({
|
|
2979
3010
|
block: e.block,
|
|
2980
3011
|
context: e.context,
|
|
2981
3012
|
registeredComponents: e.registeredComponents
|
|
2982
3013
|
});
|
|
2983
3014
|
}, n = function() {
|
|
2984
|
-
return
|
|
3015
|
+
return $o({
|
|
2985
3016
|
block: e.block,
|
|
2986
3017
|
context: e.context
|
|
2987
3018
|
});
|
|
@@ -2996,7 +3027,8 @@ function ht(e) {
|
|
|
2996
3027
|
shouldEvaluateBindings: !0
|
|
2997
3028
|
});
|
|
2998
3029
|
}, o = function() {
|
|
2999
|
-
|
|
3030
|
+
var v;
|
|
3031
|
+
return e.block.tagName === "a" || ((v = r().properties) == null ? void 0 : v.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3000
3032
|
}, a = function() {
|
|
3001
3033
|
var x, B;
|
|
3002
3034
|
if ((x = e.block.repeat) != null && x.collection)
|
|
@@ -3004,75 +3036,84 @@ function ht(e) {
|
|
|
3004
3036
|
const j = "hide" in r() ? r().hide : !1;
|
|
3005
3037
|
return ("show" in r() ? r().show : !0) && !j;
|
|
3006
3038
|
}, s = function() {
|
|
3007
|
-
var
|
|
3008
|
-
return !((
|
|
3039
|
+
var v;
|
|
3040
|
+
return !((v = t()) != null && v.component) && !n() ? r().children ?? [] : [];
|
|
3009
3041
|
}, u = function() {
|
|
3010
|
-
var j,
|
|
3042
|
+
var j, v, x, B, $, m, ee, te;
|
|
3011
3043
|
return {
|
|
3012
3044
|
blockChildren: r().children ?? [],
|
|
3013
3045
|
componentRef: (j = t()) == null ? void 0 : j.component,
|
|
3014
3046
|
componentOptions: {
|
|
3015
|
-
...
|
|
3047
|
+
...ho(r()),
|
|
3016
3048
|
builderContext: e.context,
|
|
3017
|
-
...((
|
|
3049
|
+
...((v = t()) == null ? void 0 : v.name) === "Core:Button" || ((x = t()) == null ? void 0 : x.name) === "Symbol" || ((B = t()) == null ? void 0 : B.name) === "Columns" ? {
|
|
3050
|
+
builderLinkComponent: e.linkComponent
|
|
3051
|
+
} : {},
|
|
3052
|
+
...(($ = t()) == null ? void 0 : $.name) === "Symbol" || ((m = t()) == null ? void 0 : m.name) === "Columns" ? {
|
|
3018
3053
|
builderComponents: e.registeredComponents
|
|
3019
3054
|
} : {}
|
|
3020
3055
|
},
|
|
3021
3056
|
context: d,
|
|
3057
|
+
linkComponent: e.linkComponent,
|
|
3022
3058
|
registeredComponents: e.registeredComponents,
|
|
3023
3059
|
builderBlock: r(),
|
|
3024
|
-
includeBlockProps: ((
|
|
3025
|
-
isInteractive: !((
|
|
3060
|
+
includeBlockProps: ((ee = t()) == null ? void 0 : ee.noWrap) === !0,
|
|
3061
|
+
isInteractive: !((te = t()) != null && te.isRSC)
|
|
3026
3062
|
};
|
|
3027
3063
|
}, d = e.context;
|
|
3028
|
-
return /* @__PURE__ */
|
|
3029
|
-
/* @__PURE__ */
|
|
3030
|
-
(
|
|
3031
|
-
|
|
3064
|
+
return /* @__PURE__ */ C(L, { children: a() ? /* @__PURE__ */ xe(L, { children: [
|
|
3065
|
+
/* @__PURE__ */ C(Go, { block: e.block, context: e.context }),
|
|
3066
|
+
(k = t()) != null && k.noWrap ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
|
|
3067
|
+
Jn,
|
|
3032
3068
|
{
|
|
3033
3069
|
componentRef: u().componentRef,
|
|
3034
3070
|
componentOptions: u().componentOptions,
|
|
3035
3071
|
blockChildren: u().blockChildren,
|
|
3036
3072
|
context: u().context,
|
|
3037
3073
|
registeredComponents: u().registeredComponents,
|
|
3074
|
+
linkComponent: u().linkComponent,
|
|
3038
3075
|
builderBlock: u().builderBlock,
|
|
3039
3076
|
includeBlockProps: u().includeBlockProps,
|
|
3040
3077
|
isInteractive: u().isInteractive
|
|
3041
3078
|
}
|
|
3042
|
-
) }) : /* @__PURE__ */
|
|
3043
|
-
|
|
3079
|
+
) }) : /* @__PURE__ */ C(L, { children: n() ? /* @__PURE__ */ C(L, { children: (S = n()) == null ? void 0 : S.map((P, j) => /* @__PURE__ */ C(
|
|
3080
|
+
ni,
|
|
3044
3081
|
{
|
|
3045
3082
|
repeatContext: P.context,
|
|
3046
3083
|
block: P.block,
|
|
3047
|
-
registeredComponents: e.registeredComponents
|
|
3084
|
+
registeredComponents: e.registeredComponents,
|
|
3085
|
+
linkComponent: e.linkComponent
|
|
3048
3086
|
},
|
|
3049
3087
|
j
|
|
3050
|
-
)) }) : /* @__PURE__ */
|
|
3051
|
-
|
|
3088
|
+
)) }) : /* @__PURE__ */ C(L, { children: /* @__PURE__ */ xe(
|
|
3089
|
+
eo,
|
|
3052
3090
|
{
|
|
3053
3091
|
Wrapper: o(),
|
|
3054
3092
|
block: r(),
|
|
3055
3093
|
context: e.context,
|
|
3094
|
+
linkComponent: e.linkComponent,
|
|
3056
3095
|
children: [
|
|
3057
|
-
/* @__PURE__ */
|
|
3058
|
-
|
|
3096
|
+
/* @__PURE__ */ C(
|
|
3097
|
+
Jn,
|
|
3059
3098
|
{
|
|
3060
3099
|
componentRef: u().componentRef,
|
|
3061
3100
|
componentOptions: u().componentOptions,
|
|
3062
3101
|
blockChildren: u().blockChildren,
|
|
3063
3102
|
context: u().context,
|
|
3064
3103
|
registeredComponents: u().registeredComponents,
|
|
3104
|
+
linkComponent: u().linkComponent,
|
|
3065
3105
|
builderBlock: u().builderBlock,
|
|
3066
3106
|
includeBlockProps: u().includeBlockProps,
|
|
3067
3107
|
isInteractive: u().isInteractive
|
|
3068
3108
|
}
|
|
3069
3109
|
),
|
|
3070
|
-
(
|
|
3110
|
+
(E = s()) == null ? void 0 : E.map((P) => /* @__PURE__ */ C(
|
|
3071
3111
|
ht,
|
|
3072
3112
|
{
|
|
3073
3113
|
block: P,
|
|
3074
3114
|
context: d,
|
|
3075
|
-
registeredComponents: e.registeredComponents
|
|
3115
|
+
registeredComponents: e.registeredComponents,
|
|
3116
|
+
linkComponent: e.linkComponent
|
|
3076
3117
|
},
|
|
3077
3118
|
P.id
|
|
3078
3119
|
))
|
|
@@ -3083,8 +3124,8 @@ function ht(e) {
|
|
|
3083
3124
|
}
|
|
3084
3125
|
function mt(e) {
|
|
3085
3126
|
var t, n, r;
|
|
3086
|
-
return /* @__PURE__ */
|
|
3087
|
-
|
|
3127
|
+
return /* @__PURE__ */ C(
|
|
3128
|
+
to,
|
|
3088
3129
|
{
|
|
3089
3130
|
blocks: e.blocks,
|
|
3090
3131
|
parent: e.parent,
|
|
@@ -3092,10 +3133,11 @@ function mt(e) {
|
|
|
3092
3133
|
styleProp: e.styleProp,
|
|
3093
3134
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3094
3135
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3095
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3136
|
+
children: e.blocks ? /* @__PURE__ */ C(L, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ C(
|
|
3096
3137
|
ht,
|
|
3097
3138
|
{
|
|
3098
3139
|
block: o,
|
|
3140
|
+
linkComponent: e.linkComponent,
|
|
3099
3141
|
context: e.context,
|
|
3100
3142
|
registeredComponents: e.registeredComponents
|
|
3101
3143
|
},
|
|
@@ -3104,7 +3146,7 @@ function mt(e) {
|
|
|
3104
3146
|
}
|
|
3105
3147
|
);
|
|
3106
3148
|
}
|
|
3107
|
-
function
|
|
3149
|
+
function ri(e) {
|
|
3108
3150
|
var j;
|
|
3109
3151
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(x) {
|
|
3110
3152
|
var B;
|
|
@@ -3122,7 +3164,7 @@ function ei(e) {
|
|
|
3122
3164
|
desktopStyle: B
|
|
3123
3165
|
}) {
|
|
3124
3166
|
return r === "never" ? B : x;
|
|
3125
|
-
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
3167
|
+
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", k = function() {
|
|
3126
3168
|
return {
|
|
3127
3169
|
"--flex-dir": d,
|
|
3128
3170
|
"--flex-dir-tablet": s({
|
|
@@ -3130,36 +3172,41 @@ function ei(e) {
|
|
|
3130
3172
|
desktopStyle: "row"
|
|
3131
3173
|
})
|
|
3132
3174
|
};
|
|
3133
|
-
},
|
|
3134
|
-
const B = x === 0 ? 0 : t, $ = a(x),
|
|
3175
|
+
}, E = function(x) {
|
|
3176
|
+
const B = x === 0 ? 0 : t, $ = a(x), m = `${B}px`, ee = "100%", te = 0;
|
|
3135
3177
|
return {
|
|
3178
|
+
...{
|
|
3179
|
+
display: "flex",
|
|
3180
|
+
flexDirection: "column",
|
|
3181
|
+
alignItems: "stretch"
|
|
3182
|
+
},
|
|
3136
3183
|
width: $,
|
|
3137
|
-
["marginLeft"]:
|
|
3184
|
+
["marginLeft"]: m,
|
|
3138
3185
|
"--column-width-mobile": u({
|
|
3139
|
-
stackedStyle:
|
|
3186
|
+
stackedStyle: ee,
|
|
3140
3187
|
desktopStyle: $
|
|
3141
3188
|
}),
|
|
3142
3189
|
"--column-margin-left-mobile": u({
|
|
3143
|
-
stackedStyle:
|
|
3144
|
-
desktopStyle:
|
|
3190
|
+
stackedStyle: te,
|
|
3191
|
+
desktopStyle: m
|
|
3145
3192
|
}),
|
|
3146
3193
|
"--column-width-tablet": s({
|
|
3147
|
-
stackedStyle:
|
|
3194
|
+
stackedStyle: ee,
|
|
3148
3195
|
desktopStyle: $
|
|
3149
3196
|
}),
|
|
3150
3197
|
"--column-margin-left-tablet": s({
|
|
3151
|
-
stackedStyle:
|
|
3152
|
-
desktopStyle:
|
|
3198
|
+
stackedStyle: te,
|
|
3199
|
+
desktopStyle: m
|
|
3153
3200
|
})
|
|
3154
3201
|
};
|
|
3155
|
-
},
|
|
3156
|
-
var $,
|
|
3157
|
-
return
|
|
3158
|
-
((
|
|
3202
|
+
}, S = function(x) {
|
|
3203
|
+
var $, m;
|
|
3204
|
+
return gr(
|
|
3205
|
+
((m = ($ = e.builderContext.content) == null ? void 0 : $.meta) == null ? void 0 : m.breakpoints) || {}
|
|
3159
3206
|
)[x].max;
|
|
3160
3207
|
}, P = function() {
|
|
3161
3208
|
return `
|
|
3162
|
-
@media (max-width: ${
|
|
3209
|
+
@media (max-width: ${S("medium")}px) {
|
|
3163
3210
|
.${e.builderBlock.id}-breakpoints {
|
|
3164
3211
|
flex-direction: var(--flex-dir-tablet);
|
|
3165
3212
|
align-items: stretch;
|
|
@@ -3171,7 +3218,7 @@ function ei(e) {
|
|
|
3171
3218
|
}
|
|
3172
3219
|
}
|
|
3173
3220
|
|
|
3174
|
-
@media (max-width: ${
|
|
3221
|
+
@media (max-width: ${S("small")}px) {
|
|
3175
3222
|
.${e.builderBlock.id}-breakpoints {
|
|
3176
3223
|
flex-direction: var(--flex-dir);
|
|
3177
3224
|
align-items: stretch;
|
|
@@ -3184,84 +3231,88 @@ function ei(e) {
|
|
|
3184
3231
|
},
|
|
3185
3232
|
`;
|
|
3186
3233
|
};
|
|
3187
|
-
return /* @__PURE__ */
|
|
3188
|
-
/* @__PURE__ */
|
|
3234
|
+
return /* @__PURE__ */ xe(L, { children: [
|
|
3235
|
+
/* @__PURE__ */ xe(
|
|
3189
3236
|
"div",
|
|
3190
3237
|
{
|
|
3191
|
-
className: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
3192
|
-
style:
|
|
3238
|
+
className: `builder-columns ${e.builderBlock.id}-breakpoints div-3d816b82`,
|
|
3239
|
+
style: k(),
|
|
3193
3240
|
children: [
|
|
3194
|
-
/* @__PURE__ */
|
|
3195
|
-
(j = e.columns) == null ? void 0 : j.map((
|
|
3196
|
-
|
|
3241
|
+
/* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(dt, { styles: P() }) }),
|
|
3242
|
+
(j = e.columns) == null ? void 0 : j.map((v, x) => /* @__PURE__ */ C(
|
|
3243
|
+
no,
|
|
3197
3244
|
{
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3245
|
+
TagName: v.link ? e.builderLinkComponent || "a" : "div",
|
|
3246
|
+
actionAttributes: {},
|
|
3247
|
+
attributes: {
|
|
3248
|
+
...v.link ? {
|
|
3249
|
+
href: v.link
|
|
3250
|
+
} : {},
|
|
3251
|
+
[Xt()]: "builder-column",
|
|
3252
|
+
style: vr(E(x))
|
|
3253
|
+
},
|
|
3254
|
+
children: /* @__PURE__ */ C(
|
|
3255
|
+
mt,
|
|
3256
|
+
{
|
|
3257
|
+
path: `component.options.columns.${x}.blocks`,
|
|
3258
|
+
parent: e.builderBlock.id,
|
|
3259
|
+
styleProp: {
|
|
3260
|
+
flexGrow: "1"
|
|
3261
|
+
},
|
|
3262
|
+
context: e.builderContext,
|
|
3263
|
+
registeredComponents: e.builderComponents,
|
|
3264
|
+
linkComponent: e.builderLinkComponent,
|
|
3265
|
+
blocks: v.blocks
|
|
3266
|
+
}
|
|
3267
|
+
)
|
|
3201
3268
|
},
|
|
3202
|
-
|
|
3203
|
-
mt,
|
|
3204
|
-
{
|
|
3205
|
-
path: `component.options.columns.${x}.blocks`,
|
|
3206
|
-
parent: e.builderBlock.id,
|
|
3207
|
-
styleProp: {
|
|
3208
|
-
flexGrow: "1"
|
|
3209
|
-
},
|
|
3210
|
-
context: e.builderContext,
|
|
3211
|
-
registeredComponents: e.builderComponents,
|
|
3212
|
-
blocks: k.blocks
|
|
3213
|
-
}
|
|
3214
|
-
)
|
|
3269
|
+
x
|
|
3215
3270
|
))
|
|
3216
3271
|
]
|
|
3217
3272
|
}
|
|
3218
3273
|
),
|
|
3219
|
-
/* @__PURE__ */
|
|
3274
|
+
/* @__PURE__ */ C("style", { children: `.div-3d816b82 {
|
|
3220
3275
|
display: flex;
|
|
3221
3276
|
line-height: normal;
|
|
3222
|
-
}.div-39daef82-2 {
|
|
3223
|
-
display: flex;
|
|
3224
|
-
flex-direction: column;
|
|
3225
|
-
align-items: stretch;
|
|
3226
3277
|
}` })
|
|
3227
3278
|
] });
|
|
3228
3279
|
}
|
|
3229
|
-
function
|
|
3280
|
+
function zn(e) {
|
|
3230
3281
|
return e.replace(/http(s)?:/, "");
|
|
3231
3282
|
}
|
|
3232
|
-
function
|
|
3283
|
+
function oi(e = "", t, n) {
|
|
3233
3284
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3234
3285
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3235
3286
|
}
|
|
3236
|
-
function
|
|
3287
|
+
function ii(e, t) {
|
|
3237
3288
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3238
3289
|
return e;
|
|
3239
3290
|
if (t === "master")
|
|
3240
|
-
return
|
|
3291
|
+
return zn(e);
|
|
3241
3292
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3242
3293
|
if (n) {
|
|
3243
3294
|
const r = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
3244
|
-
return
|
|
3295
|
+
return zn(`${r[0]}_${a}${o}`);
|
|
3245
3296
|
}
|
|
3246
3297
|
return null;
|
|
3247
3298
|
}
|
|
3248
|
-
function
|
|
3299
|
+
function Na(e) {
|
|
3249
3300
|
if (!e)
|
|
3250
3301
|
return e;
|
|
3251
3302
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3252
3303
|
if (e.match(/builder\.io/)) {
|
|
3253
3304
|
let n = e;
|
|
3254
3305
|
const r = Number(e.split("?width=")[1]);
|
|
3255
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3306
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${oi(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3256
3307
|
}
|
|
3257
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3308
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [ii(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3258
3309
|
}
|
|
3259
|
-
const
|
|
3310
|
+
const ai = (e) => {
|
|
3260
3311
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3261
3312
|
return e;
|
|
3262
3313
|
const t = e.split(".");
|
|
3263
3314
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3264
|
-
},
|
|
3315
|
+
}, br = ({
|
|
3265
3316
|
name: e,
|
|
3266
3317
|
canTrack: t
|
|
3267
3318
|
}) => {
|
|
@@ -3272,14 +3323,14 @@ const ri = (e) => {
|
|
|
3272
3323
|
q.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3273
3324
|
return;
|
|
3274
3325
|
}
|
|
3275
|
-
},
|
|
3326
|
+
}, Sr = async (e) => br(e), si = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(de).join("; "), li = [["secure", ""], ["SameSite", "None"]], ci = ({
|
|
3276
3327
|
name: e,
|
|
3277
3328
|
value: t,
|
|
3278
3329
|
expires: n
|
|
3279
3330
|
}) => {
|
|
3280
|
-
const o = (G() ? location.protocol === "https:" : !0) ?
|
|
3281
|
-
return
|
|
3282
|
-
},
|
|
3331
|
+
const o = (G() ? location.protocol === "https:" : !0) ? li : [[]], a = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...a, ["path", "/"], ["domain", ai(window.location.hostname)], ...o];
|
|
3332
|
+
return si(s);
|
|
3333
|
+
}, wr = async ({
|
|
3283
3334
|
name: e,
|
|
3284
3335
|
value: t,
|
|
3285
3336
|
expires: n,
|
|
@@ -3288,7 +3339,7 @@ const ri = (e) => {
|
|
|
3288
3339
|
try {
|
|
3289
3340
|
if (!r)
|
|
3290
3341
|
return;
|
|
3291
|
-
const o =
|
|
3342
|
+
const o = ci({
|
|
3292
3343
|
name: e,
|
|
3293
3344
|
value: t,
|
|
3294
3345
|
expires: n
|
|
@@ -3297,24 +3348,24 @@ const ri = (e) => {
|
|
|
3297
3348
|
} catch (o) {
|
|
3298
3349
|
q.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3299
3350
|
}
|
|
3300
|
-
},
|
|
3351
|
+
}, ui = "builder.tests", ln = (e) => `${ui}.${e}`, fi = ({
|
|
3301
3352
|
contentId: e
|
|
3302
|
-
}) =>
|
|
3303
|
-
name:
|
|
3353
|
+
}) => Sr({
|
|
3354
|
+
name: ln(e),
|
|
3304
3355
|
canTrack: !0
|
|
3305
|
-
}),
|
|
3356
|
+
}), pi = ({
|
|
3306
3357
|
contentId: e
|
|
3307
|
-
}) =>
|
|
3308
|
-
name:
|
|
3358
|
+
}) => br({
|
|
3359
|
+
name: ln(e),
|
|
3309
3360
|
canTrack: !0
|
|
3310
|
-
}),
|
|
3361
|
+
}), di = ({
|
|
3311
3362
|
contentId: e,
|
|
3312
3363
|
value: t
|
|
3313
|
-
}) =>
|
|
3314
|
-
name:
|
|
3364
|
+
}) => wr({
|
|
3365
|
+
name: ln(e),
|
|
3315
3366
|
value: t,
|
|
3316
3367
|
canTrack: !0
|
|
3317
|
-
}),
|
|
3368
|
+
}), xr = (e) => de(e.id) && de(e.variations) && Object.keys(e.variations).length > 0, hi = ({
|
|
3318
3369
|
id: e,
|
|
3319
3370
|
variations: t
|
|
3320
3371
|
}) => {
|
|
@@ -3327,15 +3378,15 @@ const ri = (e) => {
|
|
|
3327
3378
|
return a;
|
|
3328
3379
|
}
|
|
3329
3380
|
return e;
|
|
3330
|
-
},
|
|
3331
|
-
const t =
|
|
3332
|
-
return
|
|
3381
|
+
}, kr = (e) => {
|
|
3382
|
+
const t = hi(e);
|
|
3383
|
+
return di({
|
|
3333
3384
|
contentId: e.id,
|
|
3334
3385
|
value: t
|
|
3335
3386
|
}).catch((n) => {
|
|
3336
3387
|
q.error("could not store A/B test variation: ", n);
|
|
3337
3388
|
}), t;
|
|
3338
|
-
},
|
|
3389
|
+
}, Cr = ({
|
|
3339
3390
|
item: e,
|
|
3340
3391
|
testGroupId: t
|
|
3341
3392
|
}) => {
|
|
@@ -3349,7 +3400,7 @@ const ri = (e) => {
|
|
|
3349
3400
|
testVariationId: n.id,
|
|
3350
3401
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3351
3402
|
};
|
|
3352
|
-
},
|
|
3403
|
+
}, mi = ({
|
|
3353
3404
|
item: e,
|
|
3354
3405
|
canTrack: t
|
|
3355
3406
|
}) => {
|
|
@@ -3357,14 +3408,14 @@ const ri = (e) => {
|
|
|
3357
3408
|
return e;
|
|
3358
3409
|
if (!e)
|
|
3359
3410
|
return;
|
|
3360
|
-
if (!
|
|
3411
|
+
if (!xr(e))
|
|
3361
3412
|
return e;
|
|
3362
|
-
const n =
|
|
3413
|
+
const n = pi({
|
|
3363
3414
|
contentId: e.id
|
|
3364
|
-
}) ||
|
|
3415
|
+
}) || kr({
|
|
3365
3416
|
variations: e.variations,
|
|
3366
3417
|
id: e.id
|
|
3367
|
-
}), r =
|
|
3418
|
+
}), r = Cr({
|
|
3368
3419
|
item: e,
|
|
3369
3420
|
testGroupId: n
|
|
3370
3421
|
});
|
|
@@ -3372,18 +3423,18 @@ const ri = (e) => {
|
|
|
3372
3423
|
...e,
|
|
3373
3424
|
...r
|
|
3374
3425
|
};
|
|
3375
|
-
},
|
|
3426
|
+
}, gi = async ({
|
|
3376
3427
|
item: e,
|
|
3377
3428
|
canTrack: t
|
|
3378
3429
|
}) => {
|
|
3379
|
-
if (!t || !
|
|
3430
|
+
if (!t || !xr(e))
|
|
3380
3431
|
return e;
|
|
3381
|
-
const r = await
|
|
3432
|
+
const r = await fi({
|
|
3382
3433
|
contentId: e.id
|
|
3383
|
-
}) ||
|
|
3434
|
+
}) || kr({
|
|
3384
3435
|
variations: e.variations,
|
|
3385
3436
|
id: e.id
|
|
3386
|
-
}), o =
|
|
3437
|
+
}), o = Cr({
|
|
3387
3438
|
item: e,
|
|
3388
3439
|
testGroupId: r
|
|
3389
3440
|
});
|
|
@@ -3391,7 +3442,7 @@ const ri = (e) => {
|
|
|
3391
3442
|
...e,
|
|
3392
3443
|
...o
|
|
3393
3444
|
};
|
|
3394
|
-
}, Ht = (e) =>
|
|
3445
|
+
}, Ht = (e) => de(e) ? e : !0, yi = {
|
|
3395
3446
|
name: "Core:Button",
|
|
3396
3447
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3397
3448
|
defaultStyles: {
|
|
@@ -3424,7 +3475,7 @@ const ri = (e) => {
|
|
|
3424
3475
|
}],
|
|
3425
3476
|
static: !0,
|
|
3426
3477
|
noWrap: !0
|
|
3427
|
-
},
|
|
3478
|
+
}, vi = {
|
|
3428
3479
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3429
3480
|
name: "Columns",
|
|
3430
3481
|
isRSC: !0,
|
|
@@ -3625,7 +3676,7 @@ const ri = (e) => {
|
|
|
3625
3676
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3626
3677
|
advanced: !0
|
|
3627
3678
|
}]
|
|
3628
|
-
},
|
|
3679
|
+
}, bi = {
|
|
3629
3680
|
name: "Custom Code",
|
|
3630
3681
|
static: !0,
|
|
3631
3682
|
requiredPermissions: ["editCode"],
|
|
@@ -3647,7 +3698,7 @@ const ri = (e) => {
|
|
|
3647
3698
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3648
3699
|
advanced: !0
|
|
3649
3700
|
}]
|
|
3650
|
-
},
|
|
3701
|
+
}, Si = {
|
|
3651
3702
|
name: "Embed",
|
|
3652
3703
|
static: !0,
|
|
3653
3704
|
inputs: [{
|
|
@@ -3672,13 +3723,13 @@ const ri = (e) => {
|
|
|
3672
3723
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3673
3724
|
hideFromUI: !0
|
|
3674
3725
|
}]
|
|
3675
|
-
},
|
|
3726
|
+
}, wi = ["text/javascript", "application/javascript", "application/ecmascript"], Ba = (e) => wi.includes(e.type), xi = {
|
|
3676
3727
|
name: "Fragment",
|
|
3677
3728
|
static: !0,
|
|
3678
3729
|
hidden: !0,
|
|
3679
3730
|
canHaveChildren: !0,
|
|
3680
3731
|
noWrap: !0
|
|
3681
|
-
},
|
|
3732
|
+
}, ki = {
|
|
3682
3733
|
name: "Image",
|
|
3683
3734
|
static: !0,
|
|
3684
3735
|
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",
|
|
@@ -3699,15 +3750,15 @@ const ri = (e) => {
|
|
|
3699
3750
|
onChange: (e) => {
|
|
3700
3751
|
e.delete("srcset"), e.delete("noWebp");
|
|
3701
3752
|
function n(s, u = 6e4) {
|
|
3702
|
-
return new Promise((d,
|
|
3703
|
-
const
|
|
3704
|
-
let
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
},
|
|
3708
|
-
console.warn("Image load failed", P.error),
|
|
3709
|
-
}),
|
|
3710
|
-
|
|
3753
|
+
return new Promise((d, k) => {
|
|
3754
|
+
const E = document.createElement("img");
|
|
3755
|
+
let S = !1;
|
|
3756
|
+
E.onload = () => {
|
|
3757
|
+
S = !0, d(E);
|
|
3758
|
+
}, E.addEventListener("error", (P) => {
|
|
3759
|
+
console.warn("Image load failed", P.error), k(P.error);
|
|
3760
|
+
}), E.src = s, setTimeout(() => {
|
|
3761
|
+
S || k(new Error("Image load timed out"));
|
|
3711
3762
|
}, u);
|
|
3712
3763
|
});
|
|
3713
3764
|
}
|
|
@@ -3778,7 +3829,7 @@ const ri = (e) => {
|
|
|
3778
3829
|
advanced: !0,
|
|
3779
3830
|
defaultValue: 0.7041
|
|
3780
3831
|
}]
|
|
3781
|
-
},
|
|
3832
|
+
}, Ci = {
|
|
3782
3833
|
// friendlyName?
|
|
3783
3834
|
name: "Raw:Img",
|
|
3784
3835
|
hideFromInsertMenu: !0,
|
|
@@ -3792,7 +3843,7 @@ const ri = (e) => {
|
|
|
3792
3843
|
}],
|
|
3793
3844
|
noWrap: !0,
|
|
3794
3845
|
static: !0
|
|
3795
|
-
},
|
|
3846
|
+
}, Ei = {
|
|
3796
3847
|
name: "Core:Section",
|
|
3797
3848
|
static: !0,
|
|
3798
3849
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3831,7 +3882,7 @@ const ri = (e) => {
|
|
|
3831
3882
|
}
|
|
3832
3883
|
}
|
|
3833
3884
|
}]
|
|
3834
|
-
},
|
|
3885
|
+
}, Ii = {
|
|
3835
3886
|
name: "Slot",
|
|
3836
3887
|
isRSC: !0,
|
|
3837
3888
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3845,9 +3896,9 @@ const ri = (e) => {
|
|
|
3845
3896
|
defaultValue: "children"
|
|
3846
3897
|
}]
|
|
3847
3898
|
};
|
|
3848
|
-
function
|
|
3899
|
+
function Ti(e) {
|
|
3849
3900
|
var t, n, r;
|
|
3850
|
-
return /* @__PURE__ */
|
|
3901
|
+
return /* @__PURE__ */ C(
|
|
3851
3902
|
"div",
|
|
3852
3903
|
{
|
|
3853
3904
|
style: {
|
|
@@ -3856,7 +3907,7 @@ function Ci(e) {
|
|
|
3856
3907
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
3857
3908
|
"builder-slot": e.name
|
|
3858
3909
|
},
|
|
3859
|
-
children: /* @__PURE__ */
|
|
3910
|
+
children: /* @__PURE__ */ C(
|
|
3860
3911
|
mt,
|
|
3861
3912
|
{
|
|
3862
3913
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -3868,7 +3919,7 @@ function Ci(e) {
|
|
|
3868
3919
|
}
|
|
3869
3920
|
);
|
|
3870
3921
|
}
|
|
3871
|
-
const
|
|
3922
|
+
const Ai = {
|
|
3872
3923
|
name: "Symbol",
|
|
3873
3924
|
noWrap: !0,
|
|
3874
3925
|
static: !0,
|
|
@@ -3901,7 +3952,7 @@ const Ei = {
|
|
|
3901
3952
|
hideFromUI: !0,
|
|
3902
3953
|
type: "boolean"
|
|
3903
3954
|
}]
|
|
3904
|
-
},
|
|
3955
|
+
}, Oi = {
|
|
3905
3956
|
name: "Text",
|
|
3906
3957
|
static: !0,
|
|
3907
3958
|
isRSC: !0,
|
|
@@ -3920,9 +3971,9 @@ const Ei = {
|
|
|
3920
3971
|
textAlign: "center"
|
|
3921
3972
|
}
|
|
3922
3973
|
};
|
|
3923
|
-
function
|
|
3974
|
+
function ji(e) {
|
|
3924
3975
|
var t;
|
|
3925
|
-
return /* @__PURE__ */
|
|
3976
|
+
return /* @__PURE__ */ C(
|
|
3926
3977
|
"div",
|
|
3927
3978
|
{
|
|
3928
3979
|
className: "builder-text",
|
|
@@ -3933,7 +3984,7 @@ function Ti(e) {
|
|
|
3933
3984
|
}
|
|
3934
3985
|
);
|
|
3935
3986
|
}
|
|
3936
|
-
const
|
|
3987
|
+
const Ri = {
|
|
3937
3988
|
name: "Video",
|
|
3938
3989
|
canHaveChildren: !0,
|
|
3939
3990
|
defaultStyles: {
|
|
@@ -4014,58 +4065,58 @@ const Ai = {
|
|
|
4014
4065
|
defaultValue: !0,
|
|
4015
4066
|
advanced: !0
|
|
4016
4067
|
}]
|
|
4017
|
-
},
|
|
4018
|
-
component: to,
|
|
4019
|
-
...hi
|
|
4020
|
-
}, {
|
|
4021
|
-
component: ei,
|
|
4022
|
-
...mi
|
|
4023
|
-
}, {
|
|
4024
|
-
component: no,
|
|
4025
|
-
...gi
|
|
4026
|
-
}, {
|
|
4068
|
+
}, qn = () => [{
|
|
4027
4069
|
component: ro,
|
|
4028
4070
|
...yi
|
|
4071
|
+
}, {
|
|
4072
|
+
component: ri,
|
|
4073
|
+
...vi
|
|
4029
4074
|
}, {
|
|
4030
4075
|
component: oo,
|
|
4031
4076
|
...bi
|
|
4032
4077
|
}, {
|
|
4033
4078
|
component: io,
|
|
4034
|
-
...
|
|
4079
|
+
...Si
|
|
4035
4080
|
}, {
|
|
4036
4081
|
component: ao,
|
|
4037
4082
|
...xi
|
|
4038
4083
|
}, {
|
|
4039
4084
|
component: so,
|
|
4040
|
-
...
|
|
4085
|
+
...ki
|
|
4041
4086
|
}, {
|
|
4042
|
-
component:
|
|
4043
|
-
...
|
|
4087
|
+
component: lo,
|
|
4088
|
+
...Ci
|
|
4044
4089
|
}, {
|
|
4045
|
-
component:
|
|
4046
|
-
...
|
|
4090
|
+
component: co,
|
|
4091
|
+
...Ei
|
|
4047
4092
|
}, {
|
|
4048
|
-
component:
|
|
4093
|
+
component: Ea,
|
|
4049
4094
|
...Ai
|
|
4050
4095
|
}, {
|
|
4051
|
-
component:
|
|
4052
|
-
...
|
|
4053
|
-
}
|
|
4096
|
+
component: ji,
|
|
4097
|
+
...Oi
|
|
4098
|
+
}, {
|
|
4099
|
+
component: uo,
|
|
4100
|
+
...Ri
|
|
4101
|
+
}, {
|
|
4102
|
+
component: Ti,
|
|
4103
|
+
...Ii
|
|
4104
|
+
}], Zn = [], Ma = (e) => ({
|
|
4054
4105
|
type: "builder.registerComponent",
|
|
4055
4106
|
data: Kt(e)
|
|
4056
|
-
}),
|
|
4107
|
+
}), Pi = (e) => {
|
|
4057
4108
|
const t = e.toString().trim();
|
|
4058
4109
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4059
|
-
},
|
|
4110
|
+
}, Ni = (e) => typeof e == "function" ? Pi(e) : pt(e), Kt = ({
|
|
4060
4111
|
inputs: e,
|
|
4061
4112
|
...t
|
|
4062
4113
|
}) => ({
|
|
4063
4114
|
...pt(t),
|
|
4064
4115
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, a]) => ({
|
|
4065
4116
|
...r,
|
|
4066
|
-
[o]:
|
|
4117
|
+
[o]: Ni(a)
|
|
4067
4118
|
}), {}))
|
|
4068
|
-
}),
|
|
4119
|
+
}), Bi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4069
4120
|
function getAndSetVariantId() {
|
|
4070
4121
|
function setCookie(name, value, days) {
|
|
4071
4122
|
let expires = '';
|
|
@@ -4121,7 +4172,7 @@ const Ai = {
|
|
|
4121
4172
|
}).join('');
|
|
4122
4173
|
styleEl.innerHTML = newStyleStr;
|
|
4123
4174
|
}
|
|
4124
|
-
}`,
|
|
4175
|
+
}`, Mi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4125
4176
|
if (!navigator.cookieEnabled) {
|
|
4126
4177
|
return;
|
|
4127
4178
|
}
|
|
@@ -4155,27 +4206,27 @@ const Ai = {
|
|
|
4155
4206
|
thisScriptEl?.remove();
|
|
4156
4207
|
}
|
|
4157
4208
|
return;
|
|
4158
|
-
}`,
|
|
4209
|
+
}`, Er = "builderIoAbTest", Ir = "builderIoRenderContent", st = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4159
4210
|
...t,
|
|
4160
4211
|
testVariationId: t.id,
|
|
4161
4212
|
id: e == null ? void 0 : e.id
|
|
4162
|
-
})),
|
|
4213
|
+
})), Ui = ({
|
|
4163
4214
|
canTrack: e,
|
|
4164
4215
|
content: t
|
|
4165
|
-
}) => !(!(st(t).length > 0) || !e || G()),
|
|
4166
|
-
window.${
|
|
4167
|
-
window.${
|
|
4168
|
-
`,
|
|
4169
|
-
window.${
|
|
4170
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4171
|
-
)`,
|
|
4216
|
+
}) => !(!(st(t).length > 0) || !e || G()), Fi = (e) => e === "react" || e === "reactNative", Tr = Fi(he), Vi = () => `
|
|
4217
|
+
window.${Er} = ${Bi}
|
|
4218
|
+
window.${Ir} = ${Mi}
|
|
4219
|
+
`, Di = (e, t) => `
|
|
4220
|
+
window.${Er}(
|
|
4221
|
+
"${t}",${JSON.stringify(e)}, ${Tr}
|
|
4222
|
+
)`, _i = ({
|
|
4172
4223
|
contentId: e,
|
|
4173
4224
|
variationId: t
|
|
4174
|
-
}) => `window.${
|
|
4175
|
-
"${t}", "${e}", ${
|
|
4225
|
+
}) => `window.${Ir}(
|
|
4226
|
+
"${t}", "${e}", ${Tr}
|
|
4176
4227
|
)`;
|
|
4177
4228
|
function Gt(e) {
|
|
4178
|
-
return /* @__PURE__ */
|
|
4229
|
+
return /* @__PURE__ */ C(
|
|
4179
4230
|
"script",
|
|
4180
4231
|
{
|
|
4181
4232
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4183,33 +4234,33 @@ function Gt(e) {
|
|
|
4183
4234
|
}
|
|
4184
4235
|
);
|
|
4185
4236
|
}
|
|
4186
|
-
const
|
|
4237
|
+
const Li = (e) => {
|
|
4187
4238
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4188
4239
|
return n || q.warn("No previewed ID found in search params."), n;
|
|
4189
4240
|
};
|
|
4190
|
-
function
|
|
4191
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4241
|
+
function Wi() {
|
|
4242
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Zr({
|
|
4192
4243
|
max: 500,
|
|
4193
4244
|
// how long to live in ms
|
|
4194
4245
|
ttl: 1e3 * 60 * 5
|
|
4195
4246
|
}));
|
|
4196
4247
|
}
|
|
4197
|
-
function
|
|
4198
|
-
|
|
4199
|
-
const t =
|
|
4248
|
+
function $i(e) {
|
|
4249
|
+
Wi();
|
|
4250
|
+
const t = Li(e);
|
|
4200
4251
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4201
4252
|
}
|
|
4202
|
-
function
|
|
4253
|
+
function Hi() {
|
|
4203
4254
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4204
4255
|
}
|
|
4205
|
-
function
|
|
4206
|
-
const e =
|
|
4256
|
+
function Ki() {
|
|
4257
|
+
const e = Hi().fetch;
|
|
4207
4258
|
if (typeof e > "u")
|
|
4208
4259
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4209
4260
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4210
4261
|
return e;
|
|
4211
4262
|
}
|
|
4212
|
-
const
|
|
4263
|
+
const Gi = Ki();
|
|
4213
4264
|
function lt(e, t = null, n = ".") {
|
|
4214
4265
|
return Object.keys(e).reduce((r, o) => {
|
|
4215
4266
|
const a = e[o], s = [t, o].filter(Boolean).join(n);
|
|
@@ -4222,27 +4273,27 @@ function lt(e, t = null, n = ".") {
|
|
|
4222
4273
|
};
|
|
4223
4274
|
}, {});
|
|
4224
4275
|
}
|
|
4225
|
-
const
|
|
4276
|
+
const Xi = "v3", Qn = "builder.", Yi = "options.", Ji = (e) => {
|
|
4226
4277
|
const t = {};
|
|
4227
4278
|
return e.forEach((n, r) => {
|
|
4228
4279
|
t[r] = n;
|
|
4229
4280
|
}), t;
|
|
4230
|
-
},
|
|
4281
|
+
}, Ar = (e) => {
|
|
4231
4282
|
if (!e)
|
|
4232
4283
|
return {};
|
|
4233
|
-
const t =
|
|
4284
|
+
const t = Or(e), n = {};
|
|
4234
4285
|
return Object.keys(t).forEach((r) => {
|
|
4235
|
-
if (r.startsWith(
|
|
4236
|
-
const o = r.replace(
|
|
4286
|
+
if (r.startsWith(Qn)) {
|
|
4287
|
+
const o = r.replace(Qn, "").replace(Yi, "");
|
|
4237
4288
|
n[o] = t[r];
|
|
4238
4289
|
}
|
|
4239
4290
|
}), n;
|
|
4240
|
-
},
|
|
4291
|
+
}, zi = () => {
|
|
4241
4292
|
if (!G())
|
|
4242
4293
|
return {};
|
|
4243
4294
|
const e = new URLSearchParams(window.location.search);
|
|
4244
|
-
return
|
|
4245
|
-
},
|
|
4295
|
+
return Ar(e);
|
|
4296
|
+
}, Or = (e) => e instanceof URLSearchParams ? Ji(e) : e, er = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
|
|
4246
4297
|
let {
|
|
4247
4298
|
noTraverse: t = !1
|
|
4248
4299
|
} = e;
|
|
@@ -4254,70 +4305,70 @@ const Hi = "v3", Zn = "builder.", Ki = "options.", Gi = (e) => {
|
|
|
4254
4305
|
apiKey: s,
|
|
4255
4306
|
includeRefs: u = !0,
|
|
4256
4307
|
enrich: d,
|
|
4257
|
-
locale:
|
|
4258
|
-
apiVersion:
|
|
4259
|
-
fields:
|
|
4308
|
+
locale: k,
|
|
4309
|
+
apiVersion: E = Xi,
|
|
4310
|
+
fields: S,
|
|
4260
4311
|
omit: P,
|
|
4261
4312
|
offset: j,
|
|
4262
|
-
cacheSeconds:
|
|
4313
|
+
cacheSeconds: v,
|
|
4263
4314
|
staleCacheSeconds: x,
|
|
4264
4315
|
sort: B,
|
|
4265
4316
|
includeUnpublished: $
|
|
4266
4317
|
} = e;
|
|
4267
4318
|
if (!s)
|
|
4268
4319
|
throw new Error("Missing API key");
|
|
4269
|
-
if (!["v2", "v3"].includes(
|
|
4270
|
-
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${
|
|
4320
|
+
if (!["v2", "v3"].includes(E))
|
|
4321
|
+
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${E}'`);
|
|
4271
4322
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
4272
|
-
const
|
|
4273
|
-
if (
|
|
4323
|
+
const m = new URL(`https://cdn.builder.io/api/${E}/content/${a}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${k ? `&locale=${k}` : ""}${d ? `&enrich=${d}` : ""}`);
|
|
4324
|
+
if (m.searchParams.set("omit", P || "meta.componentsUsed"), S && m.searchParams.set("fields", S), Number.isFinite(j) && j > -1 && m.searchParams.set("offset", String(Math.floor(j))), typeof $ == "boolean" && m.searchParams.set("includeUnpublished", String($)), v && er(v) && m.searchParams.set("cacheSeconds", String(v)), x && er(x) && m.searchParams.set("staleCacheSeconds", String(x)), B) {
|
|
4274
4325
|
const Z = lt({
|
|
4275
4326
|
sort: B
|
|
4276
4327
|
});
|
|
4277
4328
|
for (const M in Z)
|
|
4278
|
-
|
|
4329
|
+
m.searchParams.set(M, JSON.stringify(Z[M]));
|
|
4279
4330
|
}
|
|
4280
|
-
const
|
|
4281
|
-
...
|
|
4282
|
-
...
|
|
4283
|
-
},
|
|
4284
|
-
for (const Z in
|
|
4285
|
-
|
|
4286
|
-
if (r &&
|
|
4331
|
+
const ee = {
|
|
4332
|
+
...zi(),
|
|
4333
|
+
...Or(e.options || {})
|
|
4334
|
+
}, te = lt(ee);
|
|
4335
|
+
for (const Z in te)
|
|
4336
|
+
m.searchParams.set(Z, String(te[Z]));
|
|
4337
|
+
if (r && m.searchParams.set("userAttributes", JSON.stringify(r)), o) {
|
|
4287
4338
|
const Z = lt({
|
|
4288
4339
|
query: o
|
|
4289
4340
|
});
|
|
4290
4341
|
for (const M in Z)
|
|
4291
|
-
|
|
4342
|
+
m.searchParams.set(M, JSON.stringify(Z[M]));
|
|
4292
4343
|
}
|
|
4293
|
-
return
|
|
4294
|
-
},
|
|
4295
|
-
async function
|
|
4296
|
-
const t = await
|
|
4344
|
+
return m;
|
|
4345
|
+
}, qi = (e) => "results" in e;
|
|
4346
|
+
async function un(e) {
|
|
4347
|
+
const t = await jr({
|
|
4297
4348
|
...e,
|
|
4298
4349
|
limit: 1
|
|
4299
4350
|
});
|
|
4300
4351
|
return t && t[0] || null;
|
|
4301
4352
|
}
|
|
4302
|
-
const
|
|
4303
|
-
const t =
|
|
4304
|
-
return await (await
|
|
4305
|
-
},
|
|
4353
|
+
const Ua = un, Zi = async (e) => {
|
|
4354
|
+
const t = cn(e);
|
|
4355
|
+
return await (await Gi(t.href)).json();
|
|
4356
|
+
}, Qi = async (e, t, n = cn(e)) => {
|
|
4306
4357
|
const r = Ht(e.canTrack);
|
|
4307
4358
|
if (n.search.includes("preview=")) {
|
|
4308
4359
|
const a = [];
|
|
4309
4360
|
for (const s of t.results) {
|
|
4310
|
-
const u =
|
|
4361
|
+
const u = $i(n.searchParams);
|
|
4311
4362
|
a.push(u || s);
|
|
4312
4363
|
}
|
|
4313
4364
|
t.results = a;
|
|
4314
4365
|
}
|
|
4315
|
-
if (!r || !(G() ||
|
|
4366
|
+
if (!r || !(G() || he === "reactNative"))
|
|
4316
4367
|
return t.results;
|
|
4317
4368
|
try {
|
|
4318
4369
|
const a = [];
|
|
4319
4370
|
for (const s of t.results)
|
|
4320
|
-
a.push(await
|
|
4371
|
+
a.push(await gi({
|
|
4321
4372
|
item: s,
|
|
4322
4373
|
canTrack: r
|
|
4323
4374
|
}));
|
|
@@ -4327,10 +4378,10 @@ const Na = cn, Ji = async (e) => {
|
|
|
4327
4378
|
}
|
|
4328
4379
|
return t.results;
|
|
4329
4380
|
};
|
|
4330
|
-
async function
|
|
4381
|
+
async function jr(e) {
|
|
4331
4382
|
try {
|
|
4332
|
-
const t =
|
|
4333
|
-
return
|
|
4383
|
+
const t = cn(e), n = await Zi(e);
|
|
4384
|
+
return qi(n) ? Qi(e, n) : (q.error("Error fetching data. ", {
|
|
4334
4385
|
url: t,
|
|
4335
4386
|
content: n,
|
|
4336
4387
|
options: e
|
|
@@ -4339,96 +4390,96 @@ async function Ar(e) {
|
|
|
4339
4390
|
return q.error("Error fetching data. ", t), null;
|
|
4340
4391
|
}
|
|
4341
4392
|
}
|
|
4342
|
-
const
|
|
4343
|
-
function
|
|
4393
|
+
const Fa = jr, ea = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4394
|
+
function ta(e, t) {
|
|
4344
4395
|
const n = new URL(t.origin), r = n.hostname;
|
|
4345
|
-
return (e ||
|
|
4396
|
+
return (e || ea).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4346
4397
|
}
|
|
4347
|
-
function
|
|
4348
|
-
return !G() ||
|
|
4398
|
+
function Va() {
|
|
4399
|
+
return !G() || Yt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
4349
4400
|
}
|
|
4350
|
-
function
|
|
4401
|
+
function na() {
|
|
4351
4402
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4352
4403
|
const t = Math.random() * 16 | 0;
|
|
4353
4404
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4354
4405
|
});
|
|
4355
4406
|
}
|
|
4356
|
-
function
|
|
4357
|
-
return
|
|
4407
|
+
function Rr() {
|
|
4408
|
+
return na().replace(/-/g, "");
|
|
4358
4409
|
}
|
|
4359
|
-
const
|
|
4410
|
+
const Pr = "builderSessionId", ra = async ({
|
|
4360
4411
|
canTrack: e
|
|
4361
4412
|
}) => {
|
|
4362
4413
|
if (!e)
|
|
4363
4414
|
return;
|
|
4364
|
-
const t = await
|
|
4365
|
-
name:
|
|
4415
|
+
const t = await Sr({
|
|
4416
|
+
name: Pr,
|
|
4366
4417
|
canTrack: e
|
|
4367
4418
|
});
|
|
4368
|
-
if (
|
|
4419
|
+
if (de(t))
|
|
4369
4420
|
return t;
|
|
4370
4421
|
{
|
|
4371
|
-
const n =
|
|
4372
|
-
return
|
|
4422
|
+
const n = oa();
|
|
4423
|
+
return ia({
|
|
4373
4424
|
id: n,
|
|
4374
4425
|
canTrack: e
|
|
4375
4426
|
}), n;
|
|
4376
4427
|
}
|
|
4377
|
-
},
|
|
4428
|
+
}, oa = () => Rr(), ia = ({
|
|
4378
4429
|
id: e,
|
|
4379
4430
|
canTrack: t
|
|
4380
|
-
}) =>
|
|
4381
|
-
name:
|
|
4431
|
+
}) => wr({
|
|
4432
|
+
name: Pr,
|
|
4382
4433
|
value: e,
|
|
4383
4434
|
canTrack: t
|
|
4384
|
-
}),
|
|
4435
|
+
}), Nr = () => G() && typeof localStorage < "u" ? localStorage : void 0, aa = ({
|
|
4385
4436
|
key: e,
|
|
4386
4437
|
canTrack: t
|
|
4387
4438
|
}) => {
|
|
4388
4439
|
var n;
|
|
4389
4440
|
try {
|
|
4390
|
-
return t ? (n =
|
|
4441
|
+
return t ? (n = Nr()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4391
4442
|
} catch (r) {
|
|
4392
4443
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4393
4444
|
return;
|
|
4394
4445
|
}
|
|
4395
|
-
},
|
|
4446
|
+
}, sa = ({
|
|
4396
4447
|
key: e,
|
|
4397
4448
|
canTrack: t,
|
|
4398
4449
|
value: n
|
|
4399
4450
|
}) => {
|
|
4400
4451
|
var r;
|
|
4401
4452
|
try {
|
|
4402
|
-
t && ((r =
|
|
4453
|
+
t && ((r = Nr()) == null || r.setItem(e, n));
|
|
4403
4454
|
} catch (o) {
|
|
4404
4455
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4405
4456
|
}
|
|
4406
|
-
},
|
|
4457
|
+
}, Br = "builderVisitorId", la = ({
|
|
4407
4458
|
canTrack: e
|
|
4408
4459
|
}) => {
|
|
4409
4460
|
if (!e)
|
|
4410
4461
|
return;
|
|
4411
|
-
const t =
|
|
4412
|
-
key:
|
|
4462
|
+
const t = aa({
|
|
4463
|
+
key: Br,
|
|
4413
4464
|
canTrack: e
|
|
4414
4465
|
});
|
|
4415
|
-
if (
|
|
4466
|
+
if (de(t))
|
|
4416
4467
|
return t;
|
|
4417
4468
|
{
|
|
4418
|
-
const n =
|
|
4419
|
-
return
|
|
4469
|
+
const n = ca();
|
|
4470
|
+
return ua({
|
|
4420
4471
|
id: n,
|
|
4421
4472
|
canTrack: e
|
|
4422
4473
|
}), n;
|
|
4423
4474
|
}
|
|
4424
|
-
},
|
|
4475
|
+
}, ca = () => Rr(), ua = ({
|
|
4425
4476
|
id: e,
|
|
4426
4477
|
canTrack: t
|
|
4427
|
-
}) =>
|
|
4428
|
-
key:
|
|
4478
|
+
}) => sa({
|
|
4479
|
+
key: Br,
|
|
4429
4480
|
value: e,
|
|
4430
4481
|
canTrack: t
|
|
4431
|
-
}),
|
|
4482
|
+
}), fa = async ({
|
|
4432
4483
|
canTrack: e
|
|
4433
4484
|
}) => {
|
|
4434
4485
|
if (!e)
|
|
@@ -4436,16 +4487,16 @@ const jr = "builderSessionId", ea = async ({
|
|
|
4436
4487
|
visitorId: void 0,
|
|
4437
4488
|
sessionId: void 0
|
|
4438
4489
|
};
|
|
4439
|
-
const t = await
|
|
4490
|
+
const t = await ra({
|
|
4440
4491
|
canTrack: e
|
|
4441
|
-
}), n =
|
|
4492
|
+
}), n = la({
|
|
4442
4493
|
canTrack: e
|
|
4443
4494
|
});
|
|
4444
4495
|
return {
|
|
4445
4496
|
sessionId: t,
|
|
4446
4497
|
visitorId: n
|
|
4447
4498
|
};
|
|
4448
|
-
},
|
|
4499
|
+
}, pa = async ({
|
|
4449
4500
|
type: e,
|
|
4450
4501
|
canTrack: t,
|
|
4451
4502
|
apiKey: n,
|
|
@@ -4459,23 +4510,23 @@ const jr = "builderSessionId", ea = async ({
|
|
|
4459
4510
|
url: location.href,
|
|
4460
4511
|
...r
|
|
4461
4512
|
},
|
|
4462
|
-
...await
|
|
4513
|
+
...await fa({
|
|
4463
4514
|
canTrack: t
|
|
4464
4515
|
}),
|
|
4465
|
-
userAttributes:
|
|
4516
|
+
userAttributes: sr(),
|
|
4466
4517
|
ownerId: n
|
|
4467
4518
|
}
|
|
4468
4519
|
});
|
|
4469
|
-
async function
|
|
4520
|
+
async function da(e) {
|
|
4470
4521
|
if (!e.apiKey) {
|
|
4471
4522
|
q.error("Missing API key for track call. Please provide your API key.");
|
|
4472
4523
|
return;
|
|
4473
4524
|
}
|
|
4474
|
-
if (e.canTrack && !
|
|
4525
|
+
if (e.canTrack && !Yt() && (G() || he === "reactNative"))
|
|
4475
4526
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4476
4527
|
method: "POST",
|
|
4477
4528
|
body: JSON.stringify({
|
|
4478
|
-
events: [await
|
|
4529
|
+
events: [await pa(e)]
|
|
4479
4530
|
}),
|
|
4480
4531
|
headers: {
|
|
4481
4532
|
"content-type": "application/json"
|
|
@@ -4485,14 +4536,14 @@ async function ua(e) {
|
|
|
4485
4536
|
console.error("Failed to track: ", t);
|
|
4486
4537
|
});
|
|
4487
4538
|
}
|
|
4488
|
-
const
|
|
4539
|
+
const Da = (e) => da({
|
|
4489
4540
|
...e,
|
|
4490
4541
|
canTrack: !0
|
|
4491
4542
|
});
|
|
4492
|
-
function
|
|
4543
|
+
function tr(e) {
|
|
4493
4544
|
return Math.round(e * 1e3) / 1e3;
|
|
4494
4545
|
}
|
|
4495
|
-
const
|
|
4546
|
+
const ha = (e, t, n = !0) => {
|
|
4496
4547
|
if (!(e instanceof HTMLElement))
|
|
4497
4548
|
return null;
|
|
4498
4549
|
let r = n ? e : e.parentElement;
|
|
@@ -4503,38 +4554,38 @@ const fa = (e, t, n = !0) => {
|
|
|
4503
4554
|
return r;
|
|
4504
4555
|
} while (r = r.parentElement);
|
|
4505
4556
|
return null;
|
|
4506
|
-
},
|
|
4557
|
+
}, ma = (e) => ha(e, (t) => {
|
|
4507
4558
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4508
4559
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4509
|
-
}),
|
|
4560
|
+
}), nr = ({
|
|
4510
4561
|
event: e,
|
|
4511
4562
|
target: t
|
|
4512
4563
|
}) => {
|
|
4513
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
4564
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, a = tr(r / n.width), s = tr(o / n.height);
|
|
4514
4565
|
return {
|
|
4515
4566
|
x: a,
|
|
4516
4567
|
y: s
|
|
4517
4568
|
};
|
|
4518
|
-
},
|
|
4519
|
-
const t = e.target, n = t &&
|
|
4569
|
+
}, _a = (e) => {
|
|
4570
|
+
const t = e.target, n = t && ma(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4520
4571
|
return {
|
|
4521
4572
|
targetBuilderElement: r || void 0,
|
|
4522
4573
|
metadata: {
|
|
4523
|
-
targetOffset: t ?
|
|
4574
|
+
targetOffset: t ? nr({
|
|
4524
4575
|
event: e,
|
|
4525
4576
|
target: t
|
|
4526
4577
|
}) : void 0,
|
|
4527
|
-
builderTargetOffset: n ?
|
|
4578
|
+
builderTargetOffset: n ? nr({
|
|
4528
4579
|
event: e,
|
|
4529
4580
|
target: n
|
|
4530
4581
|
}) : void 0,
|
|
4531
4582
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4532
4583
|
}
|
|
4533
4584
|
};
|
|
4534
|
-
},
|
|
4535
|
-
function
|
|
4536
|
-
let n =
|
|
4537
|
-
if (n || (n =
|
|
4585
|
+
}, ga = "0.12.4", rr = {};
|
|
4586
|
+
function ya(e, t) {
|
|
4587
|
+
let n = rr[e];
|
|
4588
|
+
if (n || (n = rr[e] = []), n.push(t), G()) {
|
|
4538
4589
|
const r = {
|
|
4539
4590
|
type: "builder.register",
|
|
4540
4591
|
data: {
|
|
@@ -4549,8 +4600,8 @@ function ha(e, t) {
|
|
|
4549
4600
|
}
|
|
4550
4601
|
}
|
|
4551
4602
|
}
|
|
4552
|
-
const
|
|
4553
|
-
|
|
4603
|
+
const La = () => {
|
|
4604
|
+
ya("insertMenu", {
|
|
4554
4605
|
name: "_default",
|
|
4555
4606
|
default: !0,
|
|
4556
4607
|
items: [{
|
|
@@ -4572,14 +4623,14 @@ const Va = () => {
|
|
|
4572
4623
|
}]
|
|
4573
4624
|
});
|
|
4574
4625
|
};
|
|
4575
|
-
let
|
|
4576
|
-
const
|
|
4626
|
+
let or = !1;
|
|
4627
|
+
const Wa = (e = {}) => {
|
|
4577
4628
|
var t, n;
|
|
4578
|
-
|
|
4629
|
+
or || (or = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4579
4630
|
type: "builder.sdkInfo",
|
|
4580
4631
|
data: {
|
|
4581
|
-
target:
|
|
4582
|
-
version:
|
|
4632
|
+
target: he,
|
|
4633
|
+
version: ga,
|
|
4583
4634
|
supportsPatchUpdates: !1,
|
|
4584
4635
|
// Supports builder-model="..." attribute which is needed to
|
|
4585
4636
|
// scope our '+ add block' button styling
|
|
@@ -4593,7 +4644,7 @@ const _a = (e = {}) => {
|
|
|
4593
4644
|
}
|
|
4594
4645
|
}, "*"), window.addEventListener("message", (r) => {
|
|
4595
4646
|
var a, s;
|
|
4596
|
-
if (!
|
|
4647
|
+
if (!ta(e.trustedHosts, r))
|
|
4597
4648
|
return;
|
|
4598
4649
|
const {
|
|
4599
4650
|
data: o
|
|
@@ -4601,40 +4652,40 @@ const _a = (e = {}) => {
|
|
|
4601
4652
|
if (o != null && o.type)
|
|
4602
4653
|
switch (o.type) {
|
|
4603
4654
|
case "builder.evaluate": {
|
|
4604
|
-
const u = o.data.text, d = o.data.arguments || [],
|
|
4605
|
-
let
|
|
4655
|
+
const u = o.data.text, d = o.data.arguments || [], k = o.data.id, E = new Function(u);
|
|
4656
|
+
let S, P = null;
|
|
4606
4657
|
try {
|
|
4607
|
-
|
|
4658
|
+
S = E.apply(null, d);
|
|
4608
4659
|
} catch (j) {
|
|
4609
4660
|
P = j;
|
|
4610
4661
|
}
|
|
4611
4662
|
P ? (a = window.parent) == null || a.postMessage({
|
|
4612
4663
|
type: "builder.evaluateError",
|
|
4613
4664
|
data: {
|
|
4614
|
-
id:
|
|
4665
|
+
id: k,
|
|
4615
4666
|
error: P.message
|
|
4616
4667
|
}
|
|
4617
|
-
}, "*") :
|
|
4618
|
-
var
|
|
4619
|
-
(
|
|
4668
|
+
}, "*") : S && typeof S.then == "function" ? S.then((j) => {
|
|
4669
|
+
var v;
|
|
4670
|
+
(v = window.parent) == null || v.postMessage({
|
|
4620
4671
|
type: "builder.evaluateResult",
|
|
4621
4672
|
data: {
|
|
4622
|
-
id:
|
|
4673
|
+
id: k,
|
|
4623
4674
|
result: j
|
|
4624
4675
|
}
|
|
4625
4676
|
}, "*");
|
|
4626
4677
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
4627
4678
|
type: "builder.evaluateResult",
|
|
4628
4679
|
data: {
|
|
4629
|
-
result:
|
|
4630
|
-
id:
|
|
4680
|
+
result: S,
|
|
4681
|
+
id: k
|
|
4631
4682
|
}
|
|
4632
4683
|
}, "*");
|
|
4633
4684
|
break;
|
|
4634
4685
|
}
|
|
4635
4686
|
}
|
|
4636
4687
|
})));
|
|
4637
|
-
},
|
|
4688
|
+
}, va = (e) => {
|
|
4638
4689
|
var a;
|
|
4639
4690
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((a = e == null ? void 0 : e.files) == null ? void 0 : a.regular);
|
|
4640
4691
|
let o = "";
|
|
@@ -4660,22 +4711,22 @@ font-weight: ${s};
|
|
|
4660
4711
|
`.trim());
|
|
4661
4712
|
}
|
|
4662
4713
|
return o;
|
|
4663
|
-
},
|
|
4714
|
+
}, ba = ({
|
|
4664
4715
|
customFonts: e
|
|
4665
4716
|
}) => {
|
|
4666
4717
|
var t;
|
|
4667
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4668
|
-
},
|
|
4718
|
+
return ((t = e == null ? void 0 : e.map((n) => va(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4719
|
+
}, Sa = ({
|
|
4669
4720
|
cssCode: e,
|
|
4670
4721
|
contentId: t
|
|
4671
4722
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4672
|
-
function
|
|
4723
|
+
function wa(e) {
|
|
4673
4724
|
const t = `
|
|
4674
|
-
${
|
|
4725
|
+
${Sa({
|
|
4675
4726
|
cssCode: e.cssCode,
|
|
4676
4727
|
contentId: e.contentId
|
|
4677
4728
|
})}
|
|
4678
|
-
${
|
|
4729
|
+
${ba({
|
|
4679
4730
|
customFonts: e.customFonts
|
|
4680
4731
|
})}
|
|
4681
4732
|
|
|
@@ -4696,9 +4747,9 @@ ${ga({
|
|
|
4696
4747
|
font-family: inherit;
|
|
4697
4748
|
}
|
|
4698
4749
|
`.trim();
|
|
4699
|
-
return /* @__PURE__ */
|
|
4750
|
+
return /* @__PURE__ */ C(dt, { styles: t });
|
|
4700
4751
|
}
|
|
4701
|
-
const
|
|
4752
|
+
const xa = ({
|
|
4702
4753
|
content: e,
|
|
4703
4754
|
data: t,
|
|
4704
4755
|
locale: n
|
|
@@ -4715,7 +4766,7 @@ const ba = ({
|
|
|
4715
4766
|
locale: n
|
|
4716
4767
|
} : {}
|
|
4717
4768
|
};
|
|
4718
|
-
},
|
|
4769
|
+
}, ka = ({
|
|
4719
4770
|
content: e,
|
|
4720
4771
|
data: t
|
|
4721
4772
|
}) => e ? {
|
|
@@ -4726,38 +4777,38 @@ const ba = ({
|
|
|
4726
4777
|
},
|
|
4727
4778
|
meta: e == null ? void 0 : e.meta
|
|
4728
4779
|
} : void 0;
|
|
4729
|
-
function
|
|
4730
|
-
var o, a, s, u, d,
|
|
4731
|
-
const t =
|
|
4780
|
+
function ir(e) {
|
|
4781
|
+
var o, a, s, u, d, k, E, S, P;
|
|
4782
|
+
const t = _i({
|
|
4732
4783
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4733
4784
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4734
4785
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4735
4786
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
4736
4787
|
}), n = [
|
|
4737
|
-
...
|
|
4788
|
+
...qn(),
|
|
4738
4789
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
4739
4790
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4740
4791
|
// existing usage.
|
|
4741
4792
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4742
4793
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4743
|
-
...
|
|
4794
|
+
...Zn,
|
|
4744
4795
|
...e.customComponents || []
|
|
4745
4796
|
].reduce(
|
|
4746
|
-
(j, { component:
|
|
4797
|
+
(j, { component: v, ...x }) => ({
|
|
4747
4798
|
...j,
|
|
4748
4799
|
[x.name]: {
|
|
4749
|
-
component:
|
|
4800
|
+
component: v,
|
|
4750
4801
|
...Kt(x)
|
|
4751
4802
|
}
|
|
4752
4803
|
}),
|
|
4753
4804
|
{}
|
|
4754
4805
|
), r = {
|
|
4755
|
-
content:
|
|
4806
|
+
content: ka({
|
|
4756
4807
|
content: e.content,
|
|
4757
4808
|
data: e.data
|
|
4758
4809
|
}),
|
|
4759
4810
|
localState: void 0,
|
|
4760
|
-
rootState:
|
|
4811
|
+
rootState: xa({
|
|
4761
4812
|
content: e.content,
|
|
4762
4813
|
data: e.data,
|
|
4763
4814
|
locale: e.locale
|
|
@@ -4767,16 +4818,16 @@ function or(e) {
|
|
|
4767
4818
|
apiKey: e.apiKey,
|
|
4768
4819
|
apiVersion: e.apiVersion,
|
|
4769
4820
|
componentInfos: [
|
|
4770
|
-
...
|
|
4821
|
+
...qn(),
|
|
4771
4822
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
4772
4823
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4773
4824
|
// existing usage.
|
|
4774
4825
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4775
4826
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4776
|
-
...
|
|
4827
|
+
...Zn,
|
|
4777
4828
|
...e.customComponents || []
|
|
4778
4829
|
].reduce(
|
|
4779
|
-
(j, { component:
|
|
4830
|
+
(j, { component: v, ...x }) => ({
|
|
4780
4831
|
...j,
|
|
4781
4832
|
[x.name]: Kt(x)
|
|
4782
4833
|
}),
|
|
@@ -4786,8 +4837,8 @@ function or(e) {
|
|
|
4786
4837
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
4787
4838
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4788
4839
|
};
|
|
4789
|
-
return /* @__PURE__ */
|
|
4790
|
-
|
|
4840
|
+
return /* @__PURE__ */ xe(
|
|
4841
|
+
fo,
|
|
4791
4842
|
{
|
|
4792
4843
|
content: e.content,
|
|
4793
4844
|
data: e.data,
|
|
@@ -4802,40 +4853,42 @@ function or(e) {
|
|
|
4802
4853
|
builderContextSignal: r,
|
|
4803
4854
|
contentWrapper: e.contentWrapper,
|
|
4804
4855
|
contentWrapperProps: e.contentWrapperProps,
|
|
4856
|
+
linkComponent: e.linkComponent,
|
|
4805
4857
|
trustedHosts: e.trustedHosts,
|
|
4806
4858
|
children: [
|
|
4807
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
4808
|
-
/* @__PURE__ */
|
|
4809
|
-
|
|
4859
|
+
e.isSsrAbTest ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: t }) }) : null,
|
|
4860
|
+
/* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
|
|
4861
|
+
wa,
|
|
4810
4862
|
{
|
|
4811
4863
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
4812
4864
|
cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
|
|
4813
|
-
customFonts: (
|
|
4865
|
+
customFonts: (E = (k = r.content) == null ? void 0 : k.data) == null ? void 0 : E.customFonts
|
|
4814
4866
|
}
|
|
4815
4867
|
) }),
|
|
4816
|
-
/* @__PURE__ */
|
|
4868
|
+
/* @__PURE__ */ C(
|
|
4817
4869
|
mt,
|
|
4818
4870
|
{
|
|
4819
|
-
blocks: (P = (
|
|
4871
|
+
blocks: (P = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : P.blocks,
|
|
4820
4872
|
context: r,
|
|
4821
|
-
registeredComponents: n
|
|
4873
|
+
registeredComponents: n,
|
|
4874
|
+
linkComponent: e.linkComponent
|
|
4822
4875
|
}
|
|
4823
4876
|
)
|
|
4824
4877
|
]
|
|
4825
4878
|
}
|
|
4826
4879
|
);
|
|
4827
4880
|
}
|
|
4828
|
-
function
|
|
4881
|
+
function Mr(e) {
|
|
4829
4882
|
var a, s;
|
|
4830
|
-
const t =
|
|
4883
|
+
const t = Ui({
|
|
4831
4884
|
canTrack: Ht(e.canTrack),
|
|
4832
4885
|
content: e.content
|
|
4833
4886
|
}), n = function() {
|
|
4834
4887
|
var d;
|
|
4835
|
-
return
|
|
4836
|
-
st(e.content).map((
|
|
4837
|
-
id:
|
|
4838
|
-
testRatio:
|
|
4888
|
+
return Di(
|
|
4889
|
+
st(e.content).map((k) => ({
|
|
4890
|
+
id: k.testVariationId,
|
|
4891
|
+
testRatio: k.testRatio
|
|
4839
4892
|
})),
|
|
4840
4893
|
((d = e.content) == null ? void 0 : d.id) || ""
|
|
4841
4894
|
);
|
|
@@ -4846,24 +4899,24 @@ function Nr(e) {
|
|
|
4846
4899
|
return t ? {
|
|
4847
4900
|
...e.content,
|
|
4848
4901
|
testVariationId: (d = e.content) == null ? void 0 : d.id
|
|
4849
|
-
} :
|
|
4902
|
+
} : mi({
|
|
4850
4903
|
item: e.content,
|
|
4851
4904
|
canTrack: Ht(e.canTrack)
|
|
4852
4905
|
});
|
|
4853
4906
|
};
|
|
4854
|
-
return /* @__PURE__ */
|
|
4855
|
-
!e.__isNestedRender &&
|
|
4856
|
-
t ? /* @__PURE__ */
|
|
4857
|
-
/* @__PURE__ */
|
|
4907
|
+
return /* @__PURE__ */ xe(L, { children: [
|
|
4908
|
+
!e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: Vi() }) }) : null,
|
|
4909
|
+
t ? /* @__PURE__ */ xe(L, { children: [
|
|
4910
|
+
/* @__PURE__ */ C(
|
|
4858
4911
|
dt,
|
|
4859
4912
|
{
|
|
4860
4913
|
id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
|
|
4861
4914
|
styles: r()
|
|
4862
4915
|
}
|
|
4863
4916
|
),
|
|
4864
|
-
/* @__PURE__ */
|
|
4865
|
-
(s = st(e.content)) == null ? void 0 : s.map((u) => /* @__PURE__ */
|
|
4866
|
-
|
|
4917
|
+
/* @__PURE__ */ C(Gt, { scriptStr: n() }),
|
|
4918
|
+
(s = st(e.content)) == null ? void 0 : s.map((u) => /* @__PURE__ */ C(
|
|
4919
|
+
ir,
|
|
4867
4920
|
{
|
|
4868
4921
|
content: u,
|
|
4869
4922
|
showContent: !1,
|
|
@@ -4873,6 +4926,7 @@ function Nr(e) {
|
|
|
4873
4926
|
apiKey: e.apiKey,
|
|
4874
4927
|
apiVersion: e.apiVersion,
|
|
4875
4928
|
customComponents: e.customComponents,
|
|
4929
|
+
linkComponent: e.linkComponent,
|
|
4876
4930
|
canTrack: e.canTrack,
|
|
4877
4931
|
locale: e.locale,
|
|
4878
4932
|
includeRefs: e.includeRefs,
|
|
@@ -4887,8 +4941,8 @@ function Nr(e) {
|
|
|
4887
4941
|
u.testVariationId
|
|
4888
4942
|
))
|
|
4889
4943
|
] }) : null,
|
|
4890
|
-
/* @__PURE__ */
|
|
4891
|
-
|
|
4944
|
+
/* @__PURE__ */ C(
|
|
4945
|
+
ir,
|
|
4892
4946
|
{
|
|
4893
4947
|
content: o(),
|
|
4894
4948
|
showContent: !0,
|
|
@@ -4898,6 +4952,7 @@ function Nr(e) {
|
|
|
4898
4952
|
apiKey: e.apiKey,
|
|
4899
4953
|
apiVersion: e.apiVersion,
|
|
4900
4954
|
customComponents: e.customComponents,
|
|
4955
|
+
linkComponent: e.linkComponent,
|
|
4901
4956
|
canTrack: e.canTrack,
|
|
4902
4957
|
locale: e.locale,
|
|
4903
4958
|
includeRefs: e.includeRefs,
|
|
@@ -4912,13 +4967,13 @@ function Nr(e) {
|
|
|
4912
4967
|
)
|
|
4913
4968
|
] });
|
|
4914
4969
|
}
|
|
4915
|
-
const
|
|
4970
|
+
const Ca = async ({
|
|
4916
4971
|
builderContextValue: e,
|
|
4917
4972
|
symbol: t
|
|
4918
4973
|
}) => {
|
|
4919
4974
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4920
4975
|
(e != null && e.apiKey))
|
|
4921
|
-
return
|
|
4976
|
+
return un({
|
|
4922
4977
|
model: t.model,
|
|
4923
4978
|
apiKey: e.apiKey,
|
|
4924
4979
|
apiVersion: e.apiVersion,
|
|
@@ -4931,22 +4986,22 @@ const xa = async ({
|
|
|
4931
4986
|
q.error("Could not fetch symbol content: ", n);
|
|
4932
4987
|
});
|
|
4933
4988
|
};
|
|
4934
|
-
async function
|
|
4989
|
+
async function Ea(e) {
|
|
4935
4990
|
var r, o, a, s, u;
|
|
4936
4991
|
const t = function() {
|
|
4937
|
-
var
|
|
4992
|
+
var k, E;
|
|
4938
4993
|
return [
|
|
4939
|
-
e.attributes
|
|
4994
|
+
e.attributes[Xt()],
|
|
4940
4995
|
"builder-symbol",
|
|
4941
|
-
(
|
|
4942
|
-
(
|
|
4996
|
+
(k = e.symbol) != null && k.inline ? "builder-inline-symbol" : void 0,
|
|
4997
|
+
(E = e.symbol) != null && E.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4943
4998
|
].filter(Boolean).join(" ");
|
|
4944
|
-
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await
|
|
4999
|
+
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await Ca({
|
|
4945
5000
|
symbol: e.symbol,
|
|
4946
5001
|
builderContextValue: e.builderContext
|
|
4947
5002
|
});
|
|
4948
|
-
return /* @__PURE__ */
|
|
4949
|
-
|
|
5003
|
+
return /* @__PURE__ */ C("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ C(
|
|
5004
|
+
Mr,
|
|
4950
5005
|
{
|
|
4951
5006
|
__isNestedRender: !0,
|
|
4952
5007
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -4962,22 +5017,23 @@ async function Sa(e) {
|
|
|
4962
5017
|
...(s = n == null ? void 0 : n.data) == null ? void 0 : s.state
|
|
4963
5018
|
},
|
|
4964
5019
|
model: (u = e.symbol) == null ? void 0 : u.model,
|
|
4965
|
-
content: n
|
|
5020
|
+
content: n,
|
|
5021
|
+
linkComponent: e.builderLinkComponent
|
|
4966
5022
|
}
|
|
4967
5023
|
) });
|
|
4968
5024
|
}
|
|
4969
|
-
const
|
|
4970
|
-
function
|
|
5025
|
+
const $a = mt, Ha = Mr, ar = {};
|
|
5026
|
+
function Ka(e) {
|
|
4971
5027
|
if (G()) {
|
|
4972
|
-
Object.assign(
|
|
5028
|
+
Object.assign(ar, e);
|
|
4973
5029
|
const t = {
|
|
4974
5030
|
type: "builder.settingsChange",
|
|
4975
|
-
data:
|
|
5031
|
+
data: ar
|
|
4976
5032
|
};
|
|
4977
5033
|
parent.postMessage(t, "*");
|
|
4978
5034
|
}
|
|
4979
5035
|
}
|
|
4980
|
-
const
|
|
5036
|
+
const Ga = async (e) => {
|
|
4981
5037
|
var r, o, a;
|
|
4982
5038
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
4983
5039
|
...e,
|
|
@@ -4989,50 +5045,51 @@ const $a = async (e) => {
|
|
|
4989
5045
|
urlPath: t
|
|
4990
5046
|
} : {}
|
|
4991
5047
|
},
|
|
4992
|
-
options:
|
|
5048
|
+
options: Ar(e.searchParams || ((a = e.url) == null ? void 0 : a.searchParams) || e.options)
|
|
4993
5049
|
};
|
|
4994
5050
|
return {
|
|
4995
5051
|
apiKey: n.apiKey,
|
|
4996
5052
|
model: n.model,
|
|
4997
|
-
content: await
|
|
5053
|
+
content: await un(n)
|
|
4998
5054
|
};
|
|
4999
5055
|
};
|
|
5000
5056
|
export {
|
|
5001
|
-
|
|
5057
|
+
jr as A,
|
|
5002
5058
|
mt as B,
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5059
|
+
Mr as C,
|
|
5060
|
+
Fa as D,
|
|
5061
|
+
Ua as E,
|
|
5062
|
+
Ar as F,
|
|
5063
|
+
Da as G,
|
|
5064
|
+
Ga as H,
|
|
5065
|
+
$a as R,
|
|
5066
|
+
Ea as S,
|
|
5067
|
+
ji as T,
|
|
5068
|
+
da as _,
|
|
5069
|
+
ei as a,
|
|
5070
|
+
Pa as b,
|
|
5071
|
+
Yt as c,
|
|
5072
|
+
Na as d,
|
|
5073
|
+
Ba as e,
|
|
5074
|
+
G as f,
|
|
5075
|
+
Xt as g,
|
|
5076
|
+
Ht as h,
|
|
5077
|
+
Ra as i,
|
|
5078
|
+
Va as j,
|
|
5079
|
+
ta as k,
|
|
5023
5080
|
q as l,
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5081
|
+
sn as m,
|
|
5082
|
+
_a as n,
|
|
5083
|
+
pt as o,
|
|
5084
|
+
Ma as p,
|
|
5085
|
+
un as q,
|
|
5086
|
+
La as r,
|
|
5087
|
+
Wa as s,
|
|
5088
|
+
Gi as t,
|
|
5089
|
+
Wi as u,
|
|
5090
|
+
Ha as v,
|
|
5091
|
+
ri as w,
|
|
5092
|
+
ya as x,
|
|
5093
|
+
Ka as y,
|
|
5094
|
+
Qi as z
|
|
5038
5095
|
};
|