@builder.io/sdk-react 0.6.4 → 0.7.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/index.cjs +25 -25
- package/lib/browser/index.mjs +617 -587
- package/lib/{node/server-entry-f7504f89.mjs → browser/server-entry-13b7e1e6.mjs} +208 -190
- package/lib/browser/server-entry-c98db16c.js +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/index.cjs +32 -32
- package/lib/edge/index.mjs +1284 -1226
- package/lib/{browser/server-entry-f7504f89.mjs → edge/server-entry-13b7e1e6.mjs} +208 -190
- package/lib/edge/server-entry-c98db16c.js +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/index.cjs +14 -0
- package/lib/index.mjs +10 -0
- package/lib/node/index.cjs +68 -28
- package/lib/node/index.mjs +929 -802
- package/lib/{edge/server-entry-f7504f89.mjs → node/server-entry-13b7e1e6.mjs} +208 -190
- package/lib/node/server-entry-c98db16c.js +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +3 -1
- package/types/blocks/image/image.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/choose-eval.d.ts +6 -0
- package/types/functions/evaluate/evaluate.d.ts +1 -5
- package/types/functions/evaluate/helpers.d.ts +7 -1
- package/types/functions/evaluate/node-runtime/index.d.ts +1 -1
- package/types/functions/evaluate/node-runtime/node-runtime.d.ts +2 -0
- package/types/functions/evaluate/node-runtime/safeDynamicRequire.d.ts +13 -0
- package/types/functions/get-content/types.d.ts +94 -3
- package/types/functions/is-node-runtime.d.ts +4 -0
- package/types/node-runtime/index.d.ts +1 -0
- package/types/node-runtime/node-runtime.d.ts +1 -0
- package/types/node-runtime.d.ts +1 -0
- package/lib/browser/server-entry-2e639417.js +0 -2
- package/lib/edge/server-entry-2e639417.js +0 -2
- package/lib/node/server-entry-2e639417.js +0 -2
package/lib/edge/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as Z, Fragment as U, jsx as
|
|
3
|
-
import { createContext as cr, useState as H, useContext as
|
|
4
|
-
import { j as
|
|
5
|
-
import { _ as
|
|
6
|
-
function
|
|
2
|
+
import { jsxs as Z, Fragment as U, jsx as g } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as cr, useState as H, useContext as Hn, createElement as ur, useRef as Yt, useEffect as Q } from "react";
|
|
4
|
+
import { j as qt, i as Ce, k as Ee, l as Wr, m as Pe, n as Ht, T as tt, r as Hr, o as ft, p as Kn, a as Kr, c as Gr, b as fr, q as zr, u as Gn, v as zn, w as Xr } from "./server-entry-13b7e1e6.mjs";
|
|
5
|
+
import { _ as Uo, h as Bo, f as _o, g as Lo, e as $o, d as Vo, s as Do, t as Wo } from "./server-entry-13b7e1e6.mjs";
|
|
6
|
+
function Jr(e) {
|
|
7
7
|
return /* @__PURE__ */ Z(U, { children: [
|
|
8
|
-
e.link ? /* @__PURE__ */
|
|
8
|
+
e.link ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
9
9
|
"a",
|
|
10
10
|
{
|
|
11
11
|
role: "button",
|
|
@@ -14,21 +14,21 @@ function Xr(e) {
|
|
|
14
14
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
15
15
|
children: e.text
|
|
16
16
|
}
|
|
17
|
-
) }) : /* @__PURE__ */
|
|
17
|
+
) }) : /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
18
18
|
"button",
|
|
19
19
|
{
|
|
20
20
|
...e.attributes,
|
|
21
21
|
style: e.attributes.style,
|
|
22
|
-
className: e.attributes.className + " button-
|
|
22
|
+
className: e.attributes.className + " button-35669e6c",
|
|
23
23
|
children: e.text
|
|
24
24
|
}
|
|
25
25
|
) }),
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ g("style", { children: `.button-35669e6c {
|
|
27
27
|
all: unset;
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const dr = {
|
|
32
32
|
small: {
|
|
33
33
|
min: 320,
|
|
34
34
|
default: 321,
|
|
@@ -44,11 +44,11 @@ const fr = {
|
|
|
44
44
|
default: 991,
|
|
45
45
|
max: 1200
|
|
46
46
|
}
|
|
47
|
-
}, Xn = (e, t =
|
|
47
|
+
}, Xn = (e, t = dr) => `@media (max-width: ${t[e].max}px)`, hr = ({
|
|
48
48
|
small: e,
|
|
49
49
|
medium: t
|
|
50
50
|
}) => {
|
|
51
|
-
const r =
|
|
51
|
+
const r = qt(dr);
|
|
52
52
|
if (!e || !t)
|
|
53
53
|
return r;
|
|
54
54
|
const n = Math.floor(e / 2);
|
|
@@ -70,21 +70,69 @@ const fr = {
|
|
|
70
70
|
min: a,
|
|
71
71
|
default: a + 1
|
|
72
72
|
}, r;
|
|
73
|
-
},
|
|
73
|
+
}, pr = ({
|
|
74
|
+
builder: e,
|
|
75
|
+
context: t,
|
|
76
|
+
event: r,
|
|
77
|
+
state: n
|
|
78
|
+
}) => Object.entries({
|
|
79
|
+
state: n,
|
|
80
|
+
Builder: e,
|
|
81
|
+
// legacy
|
|
82
|
+
builder: e,
|
|
83
|
+
context: t,
|
|
84
|
+
event: r
|
|
85
|
+
}), Yr = () => ({
|
|
86
|
+
isEditing: Ce(),
|
|
87
|
+
isBrowser: Ee(),
|
|
88
|
+
isServer: !Ee(),
|
|
89
|
+
getUserAttributes: () => Wr()
|
|
90
|
+
}), qr = (e, {
|
|
91
|
+
isExpression: t = !0
|
|
92
|
+
}) => /* 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, Zr = ({
|
|
93
|
+
code: e,
|
|
94
|
+
builder: t,
|
|
95
|
+
context: r,
|
|
96
|
+
event: n,
|
|
97
|
+
localState: i,
|
|
98
|
+
rootSetState: a,
|
|
99
|
+
rootState: s
|
|
100
|
+
}) => {
|
|
101
|
+
const u = pr({
|
|
102
|
+
builder: t,
|
|
103
|
+
context: r,
|
|
104
|
+
event: n,
|
|
105
|
+
state: Qr(s, i, a)
|
|
106
|
+
});
|
|
107
|
+
return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
|
|
108
|
+
};
|
|
109
|
+
function Qr(e, t, r) {
|
|
110
|
+
if (e === t)
|
|
111
|
+
throw new Error("rootState === localState");
|
|
112
|
+
return new Proxy(e, {
|
|
113
|
+
get: (n, i) => t && i in t ? t[i] : e[i],
|
|
114
|
+
set: (n, i, a) => {
|
|
115
|
+
if (t && i in t)
|
|
116
|
+
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
117
|
+
return e[i] = a, r == null || r(e), !0;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
const mr = (e, t, r) => {
|
|
74
122
|
if (Object(e) !== e)
|
|
75
123
|
return e;
|
|
76
124
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
77
125
|
return n.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(n[s + 1])) >> 0 === +n[s + 1] ? [] : {}, e)[n[n.length - 1]] = r, e;
|
|
78
126
|
};
|
|
79
|
-
var
|
|
127
|
+
var $, ei = function(e) {
|
|
80
128
|
function t(o) {
|
|
81
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
129
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Vr.test(String.fromCharCode(o));
|
|
82
130
|
}
|
|
83
131
|
function r(o) {
|
|
84
|
-
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
132
|
+
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Wn.test(String.fromCharCode(o));
|
|
85
133
|
}
|
|
86
134
|
function n(o, l) {
|
|
87
|
-
for (var c =
|
|
135
|
+
for (var c = S, h = 1, R = 0; ; ) {
|
|
88
136
|
ct.lastIndex = R;
|
|
89
137
|
var X = ct.exec(c);
|
|
90
138
|
if (X && X.index < o)
|
|
@@ -95,7 +143,7 @@ var L, Jr = function(e) {
|
|
|
95
143
|
throw c = {
|
|
96
144
|
line: h,
|
|
97
145
|
ab: o - R
|
|
98
|
-
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o =
|
|
146
|
+
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o = f, l;
|
|
99
147
|
}
|
|
100
148
|
function i(o) {
|
|
101
149
|
o = o.split(" ");
|
|
@@ -106,43 +154,43 @@ var L, Jr = function(e) {
|
|
|
106
154
|
};
|
|
107
155
|
}
|
|
108
156
|
function a() {
|
|
109
|
-
this.line = we, this.ab =
|
|
157
|
+
this.line = we, this.ab = f - fe;
|
|
110
158
|
}
|
|
111
159
|
function s(o, l) {
|
|
112
|
-
|
|
160
|
+
Te = f, N.C && (It = new a()), A = o, d(), le = l, $e = o.m;
|
|
113
161
|
}
|
|
114
|
-
function
|
|
115
|
-
for (var o =
|
|
116
|
-
++
|
|
117
|
-
|
|
162
|
+
function u() {
|
|
163
|
+
for (var o = f, l = N.va && N.C && new a(), c = S.charCodeAt(f += 2); f < Ie && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
164
|
+
++f, c = S.charCodeAt(f);
|
|
165
|
+
N.va && N.va(!1, S.slice(o + 2, f), o, f, l, N.C && new a());
|
|
118
166
|
}
|
|
119
167
|
function d() {
|
|
120
|
-
for (;
|
|
121
|
-
var o =
|
|
168
|
+
for (; f < Ie; ) {
|
|
169
|
+
var o = S.charCodeAt(f);
|
|
122
170
|
if (o === 32)
|
|
123
|
-
++
|
|
171
|
+
++f;
|
|
124
172
|
else if (o === 13)
|
|
125
|
-
++
|
|
173
|
+
++f, o = S.charCodeAt(f), o === 10 && ++f, N.C && (++we, fe = f);
|
|
126
174
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
127
|
-
++
|
|
175
|
+
++f, N.C && (++we, fe = f);
|
|
128
176
|
else if (8 < o && 14 > o)
|
|
129
|
-
++
|
|
177
|
+
++f;
|
|
130
178
|
else if (o === 47)
|
|
131
|
-
if (o =
|
|
179
|
+
if (o = S.charCodeAt(f + 1), o === 42) {
|
|
132
180
|
o = void 0;
|
|
133
|
-
var l =
|
|
134
|
-
if (h === -1 && n(
|
|
135
|
-
for (ct.lastIndex = c; (o = ct.exec(
|
|
136
|
-
++we,
|
|
137
|
-
|
|
181
|
+
var l = N.va && N.C && new a(), c = f, h = S.indexOf("*/", f += 2);
|
|
182
|
+
if (h === -1 && n(f - 2, "Unterminated comment"), f = h + 2, N.C)
|
|
183
|
+
for (ct.lastIndex = c; (o = ct.exec(S)) && o.index < f; )
|
|
184
|
+
++we, fe = o.index + o[0].length;
|
|
185
|
+
N.va && N.va(!0, S.slice(c + 2, h), c, f, l, N.C && new a());
|
|
138
186
|
} else if (o === 47)
|
|
139
|
-
|
|
187
|
+
u();
|
|
140
188
|
else
|
|
141
189
|
break;
|
|
142
190
|
else if (o === 160)
|
|
143
|
-
++
|
|
144
|
-
else if (5760 <= o &&
|
|
145
|
-
++
|
|
191
|
+
++f;
|
|
192
|
+
else if (5760 <= o && $r.test(String.fromCharCode(o)))
|
|
193
|
+
++f;
|
|
146
194
|
else
|
|
147
195
|
break;
|
|
148
196
|
}
|
|
@@ -150,31 +198,31 @@ var L, Jr = function(e) {
|
|
|
150
198
|
function p(o) {
|
|
151
199
|
switch (o) {
|
|
152
200
|
case 46:
|
|
153
|
-
o =
|
|
201
|
+
o = S.charCodeAt(f + 1), 48 <= o && 57 >= o ? C(!0) : (++f, s(Fn));
|
|
154
202
|
return;
|
|
155
203
|
case 40:
|
|
156
|
-
return ++
|
|
204
|
+
return ++f, s(de);
|
|
157
205
|
case 41:
|
|
158
|
-
return ++
|
|
206
|
+
return ++f, s(ce);
|
|
159
207
|
case 59:
|
|
160
|
-
return ++
|
|
208
|
+
return ++f, s(he);
|
|
161
209
|
case 44:
|
|
162
|
-
return ++
|
|
210
|
+
return ++f, s(xe);
|
|
163
211
|
case 91:
|
|
164
|
-
return ++
|
|
212
|
+
return ++f, s(Ut);
|
|
165
213
|
case 93:
|
|
166
|
-
return ++
|
|
214
|
+
return ++f, s(Bt);
|
|
167
215
|
case 123:
|
|
168
|
-
return ++
|
|
216
|
+
return ++f, s(We);
|
|
169
217
|
case 125:
|
|
170
|
-
return ++
|
|
218
|
+
return ++f, s(Ae);
|
|
171
219
|
case 58:
|
|
172
|
-
return ++
|
|
220
|
+
return ++f, s(He);
|
|
173
221
|
case 63:
|
|
174
|
-
return ++
|
|
222
|
+
return ++f, s(Un);
|
|
175
223
|
case 48:
|
|
176
|
-
if (o =
|
|
177
|
-
|
|
224
|
+
if (o = S.charCodeAt(f + 1), o === 120 || o === 88) {
|
|
225
|
+
f += 2, o = _(16), o === null && n(z + 2, "Expected hexadecimal number"), r(S.charCodeAt(f)) && n(f, "Identifier directly after number"), s(De, o);
|
|
178
226
|
return;
|
|
179
227
|
}
|
|
180
228
|
case 49:
|
|
@@ -186,24 +234,24 @@ var L, Jr = function(e) {
|
|
|
186
234
|
case 55:
|
|
187
235
|
case 56:
|
|
188
236
|
case 57:
|
|
189
|
-
return
|
|
237
|
+
return C(!1);
|
|
190
238
|
case 34:
|
|
191
239
|
case 39:
|
|
192
|
-
|
|
240
|
+
f++;
|
|
193
241
|
for (var l = ""; ; ) {
|
|
194
|
-
|
|
195
|
-
var c =
|
|
242
|
+
f >= Ie && n(z, "Unterminated string constant");
|
|
243
|
+
var c = S.charCodeAt(f);
|
|
196
244
|
if (c === o) {
|
|
197
|
-
++
|
|
245
|
+
++f, s(ot, l);
|
|
198
246
|
break;
|
|
199
247
|
}
|
|
200
248
|
if (c === 92) {
|
|
201
|
-
c =
|
|
202
|
-
var h = /^[0-7]+/.exec(
|
|
249
|
+
c = S.charCodeAt(++f);
|
|
250
|
+
var h = /^[0-7]+/.exec(S.slice(f, f + 3));
|
|
203
251
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
204
252
|
h = h.slice(0, -1);
|
|
205
|
-
if (h === "0" && (h = null), ++
|
|
206
|
-
|
|
253
|
+
if (h === "0" && (h = null), ++f, h)
|
|
254
|
+
oe && n(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), f += h.length - 1;
|
|
207
255
|
else
|
|
208
256
|
switch (c) {
|
|
209
257
|
case 110:
|
|
@@ -238,69 +286,69 @@ var L, Jr = function(e) {
|
|
|
238
286
|
l += "\0";
|
|
239
287
|
break;
|
|
240
288
|
case 13:
|
|
241
|
-
|
|
289
|
+
S.charCodeAt(f) === 10 && ++f;
|
|
242
290
|
case 10:
|
|
243
|
-
|
|
291
|
+
N.C && (fe = f, ++we);
|
|
244
292
|
break;
|
|
245
293
|
default:
|
|
246
294
|
l += String.fromCharCode(c);
|
|
247
295
|
}
|
|
248
296
|
} else
|
|
249
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || n(z, "Unterminated string constant"), l += String.fromCharCode(c), ++
|
|
297
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || n(z, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
|
|
250
298
|
}
|
|
251
299
|
return;
|
|
252
300
|
case 47:
|
|
253
|
-
o =
|
|
301
|
+
o = S.charCodeAt(f + 1), $e ? (++f, P()) : o === 61 ? x(ke, 2) : x(Bn, 1);
|
|
254
302
|
return;
|
|
255
303
|
case 37:
|
|
256
304
|
case 42:
|
|
257
|
-
|
|
305
|
+
S.charCodeAt(f + 1) === 61 ? x(ke, 2) : x(Br, 1);
|
|
258
306
|
return;
|
|
259
307
|
case 124:
|
|
260
308
|
case 38:
|
|
261
|
-
l =
|
|
309
|
+
l = S.charCodeAt(f + 1), l === o ? x(o === 124 ? $n : Vn, 2) : l === 61 ? x(ke, 2) : x(o === 124 ? Rr : Nr, 1);
|
|
262
310
|
return;
|
|
263
311
|
case 94:
|
|
264
|
-
|
|
312
|
+
S.charCodeAt(f + 1) === 61 ? x(ke, 2) : x(Or, 1);
|
|
265
313
|
return;
|
|
266
314
|
case 43:
|
|
267
315
|
case 45:
|
|
268
|
-
l =
|
|
316
|
+
l = S.charCodeAt(f + 1), l === o ? l === 45 && S.charCodeAt(f + 2) === 62 && lt.test(S.slice(ve, f)) ? (f += 3, u(), d(), y()) : x(Ar, 2) : l === 61 ? x(ke, 2) : x(Ur, 1);
|
|
269
317
|
return;
|
|
270
318
|
case 60:
|
|
271
319
|
case 62:
|
|
272
|
-
l =
|
|
320
|
+
l = S.charCodeAt(f + 1), c = 1, l === o ? (c = o === 62 && S.charCodeAt(f + 2) === 62 ? 3 : 2, S.charCodeAt(f + c) === 61 ? x(ke, c + 1) : x(Fr, c)) : l === 33 && o === 60 && S.charCodeAt(f + 2) === 45 && S.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), y()) : (l === 61 && (c = S.charCodeAt(f + 2) === 61 ? 3 : 2), x(Mr, c));
|
|
273
321
|
return;
|
|
274
322
|
case 61:
|
|
275
323
|
case 33:
|
|
276
|
-
|
|
324
|
+
S.charCodeAt(f + 1) === 61 ? x(Pr, S.charCodeAt(f + 2) === 61 ? 3 : 2) : x(o === 61 ? _n : Ln, 1);
|
|
277
325
|
return;
|
|
278
326
|
case 126:
|
|
279
|
-
return x(
|
|
327
|
+
return x(Ln, 1);
|
|
280
328
|
}
|
|
281
329
|
return !1;
|
|
282
330
|
}
|
|
283
331
|
function y(o) {
|
|
284
|
-
if (o ?
|
|
332
|
+
if (o ? f = z + 1 : z = f, N.C && (Et = new a()), o)
|
|
285
333
|
return P();
|
|
286
|
-
if (
|
|
334
|
+
if (f >= Ie)
|
|
287
335
|
return s(At);
|
|
288
|
-
if (o =
|
|
336
|
+
if (o = S.charCodeAt(f), r(o) || o === 92)
|
|
289
337
|
return V();
|
|
290
338
|
if (p(o) === !1) {
|
|
291
|
-
if (o = String.fromCharCode(o), o === "\\" ||
|
|
339
|
+
if (o = String.fromCharCode(o), o === "\\" || Wn.test(o))
|
|
292
340
|
return V();
|
|
293
|
-
n(
|
|
341
|
+
n(f, "Unexpected character '" + o + "'");
|
|
294
342
|
}
|
|
295
343
|
}
|
|
296
344
|
function x(o, l) {
|
|
297
|
-
var c =
|
|
298
|
-
|
|
345
|
+
var c = S.slice(f, f + l);
|
|
346
|
+
f += l, s(o, c);
|
|
299
347
|
}
|
|
300
348
|
function P() {
|
|
301
|
-
for (var o, l, c =
|
|
302
|
-
|
|
303
|
-
var h =
|
|
349
|
+
for (var o, l, c = f; ; ) {
|
|
350
|
+
f >= Ie && n(c, "Unterminated regexp");
|
|
351
|
+
var h = S.charAt(f);
|
|
304
352
|
if (lt.test(h) && n(c, "Unterminated regexp"), o)
|
|
305
353
|
o = !1;
|
|
306
354
|
else {
|
|
@@ -312,193 +360,193 @@ var L, Jr = function(e) {
|
|
|
312
360
|
break;
|
|
313
361
|
o = h === "\\";
|
|
314
362
|
}
|
|
315
|
-
++
|
|
363
|
+
++f;
|
|
316
364
|
}
|
|
317
|
-
o =
|
|
365
|
+
o = S.slice(c, f), ++f, (l = L()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
318
366
|
try {
|
|
319
367
|
var R = new RegExp(o, l);
|
|
320
368
|
} catch (X) {
|
|
321
369
|
throw X instanceof SyntaxError && n(c, X.message), X;
|
|
322
370
|
}
|
|
323
|
-
s(
|
|
371
|
+
s(gn, R);
|
|
324
372
|
}
|
|
325
|
-
function
|
|
326
|
-
for (var c =
|
|
327
|
-
var
|
|
328
|
-
if (
|
|
373
|
+
function _(o, l) {
|
|
374
|
+
for (var c = f, h = 0, R = l === void 0 ? 1 / 0 : l, X = 0; X < R; ++X) {
|
|
375
|
+
var te = S.charCodeAt(f);
|
|
376
|
+
if (te = 97 <= te ? te - 97 + 10 : 65 <= te ? te - 65 + 10 : 48 <= te && 57 >= te ? te - 48 : 1 / 0, te >= o)
|
|
329
377
|
break;
|
|
330
|
-
++
|
|
378
|
+
++f, h = h * o + te;
|
|
331
379
|
}
|
|
332
|
-
return
|
|
380
|
+
return f === c || l !== void 0 && f - c !== l ? null : h;
|
|
333
381
|
}
|
|
334
|
-
function
|
|
335
|
-
var l =
|
|
336
|
-
o ||
|
|
382
|
+
function C(o) {
|
|
383
|
+
var l = f, c = !1, h = S.charCodeAt(f) === 48;
|
|
384
|
+
o || _(10) !== null || n(l, "Invalid number"), S.charCodeAt(f) === 46 && (++f, _(10), c = !0), o = S.charCodeAt(f), (o === 69 || o === 101) && (o = S.charCodeAt(++f), o !== 43 && o !== 45 || ++f, _(10) === null && n(l, "Invalid number"), c = !0), r(S.charCodeAt(f)) && n(f, "Identifier directly after number"), o = S.slice(l, f);
|
|
337
385
|
var R;
|
|
338
|
-
c ? R = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) ||
|
|
386
|
+
c ? R = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || oe ? n(l, "Invalid number") : R = parseInt(o, 8) : R = parseInt(o, 10), s(De, R);
|
|
339
387
|
}
|
|
340
388
|
function I(o) {
|
|
341
|
-
return o =
|
|
389
|
+
return o = _(16, o), o === null && n(z, "Bad character escape sequence"), o;
|
|
342
390
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
345
|
-
for (var o, l = !0, c =
|
|
346
|
-
var h =
|
|
391
|
+
function L() {
|
|
392
|
+
Re = !1;
|
|
393
|
+
for (var o, l = !0, c = f; ; ) {
|
|
394
|
+
var h = S.charCodeAt(f);
|
|
347
395
|
if (t(h))
|
|
348
|
-
|
|
396
|
+
Re && (o += S.charAt(f)), ++f;
|
|
349
397
|
else if (h === 92) {
|
|
350
|
-
|
|
398
|
+
Re || (o = S.slice(c, f)), Re = !0, S.charCodeAt(++f) !== 117 && n(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, h = I(4);
|
|
351
399
|
var R = String.fromCharCode(h);
|
|
352
|
-
R || n(
|
|
400
|
+
R || n(f - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(f - 4, "Invalid Unicode escape"), o += R;
|
|
353
401
|
} else
|
|
354
402
|
break;
|
|
355
403
|
l = !1;
|
|
356
404
|
}
|
|
357
|
-
return
|
|
405
|
+
return Re ? o : S.slice(c, f);
|
|
358
406
|
}
|
|
359
407
|
function V() {
|
|
360
|
-
var o =
|
|
361
|
-
!
|
|
408
|
+
var o = L(), l = je;
|
|
409
|
+
!Re && Lr(o) && (l = jr[o]), s(l, o);
|
|
362
410
|
}
|
|
363
411
|
function v() {
|
|
364
|
-
Tt = z,
|
|
412
|
+
Tt = z, ve = Te, jt = It, y();
|
|
365
413
|
}
|
|
366
|
-
function
|
|
367
|
-
if (
|
|
368
|
-
for (;
|
|
369
|
-
|
|
370
|
-
`,
|
|
414
|
+
function K(o) {
|
|
415
|
+
if (oe = o, f = z, N.C)
|
|
416
|
+
for (; f < fe; )
|
|
417
|
+
fe = S.lastIndexOf(`
|
|
418
|
+
`, fe - 2) + 1, --we;
|
|
371
419
|
d(), y();
|
|
372
420
|
}
|
|
373
|
-
function
|
|
421
|
+
function ae() {
|
|
374
422
|
this.type = null, this.start = z, this.end = null;
|
|
375
423
|
}
|
|
376
|
-
function
|
|
424
|
+
function se() {
|
|
377
425
|
this.start = Et, this.end = null, Ct && (this.source = Ct);
|
|
378
426
|
}
|
|
379
|
-
function
|
|
380
|
-
var o = new
|
|
381
|
-
return
|
|
427
|
+
function W() {
|
|
428
|
+
var o = new ae();
|
|
429
|
+
return N.C && (o.X = new se()), N.vb && (o.sourceFile = N.vb), N.Xa && (o.j = [z, 0]), o;
|
|
382
430
|
}
|
|
383
|
-
function
|
|
384
|
-
var l = new
|
|
385
|
-
return l.start = o.start,
|
|
431
|
+
function ee(o) {
|
|
432
|
+
var l = new ae();
|
|
433
|
+
return l.start = o.start, N.C && (l.X = new se(), l.X.start = o.X.start), N.Xa && (l.j = [o.j[0], 0]), l;
|
|
386
434
|
}
|
|
387
435
|
function T(o, l) {
|
|
388
|
-
return o.type = l, o.end =
|
|
436
|
+
return o.type = l, o.end = ve, N.C && (o.X.end = jt), N.Xa && (o.j[1] = ve), o;
|
|
389
437
|
}
|
|
390
|
-
function
|
|
438
|
+
function O(o) {
|
|
391
439
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
392
440
|
}
|
|
393
|
-
function
|
|
441
|
+
function b(o) {
|
|
394
442
|
return A === o ? (v(), !0) : !1;
|
|
395
443
|
}
|
|
396
|
-
function
|
|
397
|
-
return !
|
|
444
|
+
function B() {
|
|
445
|
+
return !N.fc && (A === At || A === Ae || lt.test(S.slice(ve, z)));
|
|
398
446
|
}
|
|
399
447
|
function M() {
|
|
400
|
-
|
|
448
|
+
b(he) || B() || D();
|
|
401
449
|
}
|
|
402
450
|
function j(o) {
|
|
403
|
-
A === o ? v() :
|
|
451
|
+
A === o ? v() : D();
|
|
404
452
|
}
|
|
405
|
-
function
|
|
453
|
+
function D() {
|
|
406
454
|
n(z, "Unexpected token");
|
|
407
455
|
}
|
|
408
|
-
function
|
|
409
|
-
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"),
|
|
456
|
+
function Se(o) {
|
|
457
|
+
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), oe && o.type === "Identifier" && st(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
410
458
|
}
|
|
411
|
-
function
|
|
412
|
-
(A ===
|
|
413
|
-
var o = A, l =
|
|
459
|
+
function ie() {
|
|
460
|
+
(A === Bn || A === ke && le === "/=") && y(!0);
|
|
461
|
+
var o = A, l = W();
|
|
414
462
|
switch (o) {
|
|
415
463
|
case Rt:
|
|
416
|
-
case
|
|
464
|
+
case vn:
|
|
417
465
|
v();
|
|
418
466
|
var c = o === Rt;
|
|
419
|
-
|
|
467
|
+
b(he) || B() ? l.label = null : A !== je ? D() : (l.label = ue(), M());
|
|
420
468
|
for (var h = 0; h < G.length; ++h) {
|
|
421
469
|
var R = G[h];
|
|
422
470
|
if ((l.label === null || R.name === l.label.name) && (R.kind !== null && (c || R.kind === "loop") || l.label && c))
|
|
423
471
|
break;
|
|
424
472
|
}
|
|
425
473
|
return h === G.length && n(l.start, "Unsyntactic " + o.l), T(l, c ? "BreakStatement" : "ContinueStatement");
|
|
426
|
-
case
|
|
474
|
+
case xn:
|
|
427
475
|
return v(), M(), T(l, "DebuggerStatement");
|
|
428
|
-
case
|
|
429
|
-
return v(), G.push(_t), l.body =
|
|
430
|
-
case
|
|
431
|
-
return v(), G.push(_t), j(
|
|
476
|
+
case Sn:
|
|
477
|
+
return v(), G.push(_t), l.body = ie(), G.pop(), j(Ft), l.test = Be(), M(), T(l, "DoWhileStatement");
|
|
478
|
+
case Cn:
|
|
479
|
+
return v(), G.push(_t), j(de), A === he ? vt(l, null) : A === Mt ? (o = W(), v(), pn(o, !0), T(o, "VariableDeclaration"), o.fa.length === 1 && b(at) ? hn(l, o) : vt(l, o)) : (o = q(!1, !0), b(at) ? (Se(o), hn(l, o)) : vt(l, o));
|
|
432
480
|
case Nt:
|
|
433
481
|
return v(), wt(l, !0);
|
|
434
|
-
case Cn:
|
|
435
|
-
return v(), l.test = Be(), l.da = re(), l.alternate = E(Sn) ? re() : null, T(l, "IfStatement");
|
|
436
482
|
case En:
|
|
437
|
-
return
|
|
483
|
+
return v(), l.test = Be(), l.da = ie(), l.alternate = b(wn) ? ie() : null, T(l, "IfStatement");
|
|
484
|
+
case In:
|
|
485
|
+
return Ve || N.Ib || n(z, "'return' outside of function"), v(), b(he) || B() ? l.K = null : (l.K = q(), M()), T(l, "ReturnStatement");
|
|
438
486
|
case Pt:
|
|
439
|
-
for (v(), l.Qb = Be(), l.tb = [], j(We), G.push(
|
|
440
|
-
A === Ot || A ===
|
|
487
|
+
for (v(), l.Qb = Be(), l.tb = [], j(We), G.push(Dr); A !== Ae; )
|
|
488
|
+
A === Ot || A === bn ? (o = A === Ot, h && T(h, "SwitchCase"), l.tb.push(h = W()), h.da = [], v(), o ? h.test = q() : (c && n(Tt, "Multiple default clauses"), c = !0, h.test = null), j(He)) : (h || D(), h.da.push(ie()));
|
|
441
489
|
return h && T(h, "SwitchCase"), v(), G.pop(), T(l, "SwitchStatement");
|
|
442
|
-
case In:
|
|
443
|
-
return v(), lt.test(b.slice(xe, z)) && n(xe, "Illegal newline after throw"), l.K = q(), M(), T(l, "ThrowStatement");
|
|
444
490
|
case Tn:
|
|
445
|
-
return v(),
|
|
491
|
+
return v(), lt.test(S.slice(ve, z)) && n(ve, "Illegal newline after throw"), l.K = q(), M(), T(l, "ThrowStatement");
|
|
492
|
+
case jn:
|
|
493
|
+
return v(), l.block = _e(), l.Ea = null, A === yn && (o = W(), v(), j(de), o.Ua = ue(), oe && st(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), j(ce), o.body = _e(), l.Ea = T(o, "CatchClause")), l.fb = b(kn) ? _e() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
446
494
|
case Mt:
|
|
447
|
-
return v(),
|
|
495
|
+
return v(), pn(l), M(), T(l, "VariableDeclaration");
|
|
448
496
|
case Ft:
|
|
449
|
-
return v(), l.test = Be(), G.push(_t), l.body =
|
|
450
|
-
case
|
|
451
|
-
return
|
|
497
|
+
return v(), l.test = Be(), G.push(_t), l.body = ie(), G.pop(), T(l, "WhileStatement");
|
|
498
|
+
case An:
|
|
499
|
+
return oe && n(z, "'with' in strict mode"), v(), l.object = Be(), l.body = ie(), T(l, "WithStatement");
|
|
452
500
|
case We:
|
|
453
501
|
return _e();
|
|
454
|
-
case
|
|
502
|
+
case he:
|
|
455
503
|
return v(), T(l, "EmptyStatement");
|
|
456
504
|
default:
|
|
457
|
-
if (c =
|
|
505
|
+
if (c = le, R = q(), o === je && R.type === "Identifier" && b(He)) {
|
|
458
506
|
for (h = 0; h < G.length; ++h)
|
|
459
507
|
G[h].name === c && n(R.start, "Label '" + c + "' is already declared");
|
|
460
508
|
return G.push({
|
|
461
509
|
name: c,
|
|
462
510
|
kind: A.W ? "loop" : A === Pt ? "switch" : null
|
|
463
|
-
}), l.body =
|
|
511
|
+
}), l.body = ie(), G.pop(), l.label = R, T(l, "LabeledStatement");
|
|
464
512
|
}
|
|
465
513
|
return l.la = R, M(), T(l, "ExpressionStatement");
|
|
466
514
|
}
|
|
467
515
|
}
|
|
468
516
|
function Be() {
|
|
469
|
-
j(
|
|
517
|
+
j(de);
|
|
470
518
|
var o = q();
|
|
471
|
-
return j(
|
|
519
|
+
return j(ce), o;
|
|
472
520
|
}
|
|
473
521
|
function _e(o) {
|
|
474
|
-
var l =
|
|
475
|
-
for (l.body = [], j(We); !
|
|
476
|
-
var R =
|
|
477
|
-
if (l.body.push(R), c && o &&
|
|
522
|
+
var l = W(), c = !0, h = !1;
|
|
523
|
+
for (l.body = [], j(We); !b(Ae); ) {
|
|
524
|
+
var R = ie();
|
|
525
|
+
if (l.body.push(R), c && o && O(R)) {
|
|
478
526
|
var X = h;
|
|
479
|
-
|
|
527
|
+
K(h = !0);
|
|
480
528
|
}
|
|
481
529
|
c = !1;
|
|
482
530
|
}
|
|
483
|
-
return h && !X &&
|
|
531
|
+
return h && !X && K(!1), T(l, "BlockStatement");
|
|
484
532
|
}
|
|
485
533
|
function vt(o, l) {
|
|
486
|
-
return o.ua = l, j(
|
|
487
|
-
}
|
|
488
|
-
function dn(o, l) {
|
|
489
|
-
return o.left = l, o.right = q(), j(ue), o.body = re(), G.pop(), T(o, "ForInStatement");
|
|
534
|
+
return o.ua = l, j(he), o.test = A === he ? null : q(), j(he), o.update = A === ce ? null : q(), j(ce), o.body = ie(), G.pop(), T(o, "ForStatement");
|
|
490
535
|
}
|
|
491
536
|
function hn(o, l) {
|
|
537
|
+
return o.left = l, o.right = q(), j(ce), o.body = ie(), G.pop(), T(o, "ForInStatement");
|
|
538
|
+
}
|
|
539
|
+
function pn(o, l) {
|
|
492
540
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
493
|
-
var c =
|
|
494
|
-
if (c.id =
|
|
541
|
+
var c = W();
|
|
542
|
+
if (c.id = ue(), oe && st(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = b(_n) ? q(!0, l) : null, o.fa.push(T(c, "VariableDeclarator")), !b(xe))
|
|
495
543
|
break;
|
|
496
544
|
}
|
|
497
545
|
}
|
|
498
546
|
function q(o, l) {
|
|
499
547
|
var c = xt(l);
|
|
500
|
-
if (!o && A ===
|
|
501
|
-
for (o =
|
|
548
|
+
if (!o && A === xe) {
|
|
549
|
+
for (o = ee(c), o.xb = [c]; b(xe); )
|
|
502
550
|
o.xb.push(xt(l));
|
|
503
551
|
return T(o, "SequenceExpression");
|
|
504
552
|
}
|
|
@@ -506,131 +554,131 @@ var L, Jr = function(e) {
|
|
|
506
554
|
}
|
|
507
555
|
function xt(o) {
|
|
508
556
|
var l = bt(St(), -1, o);
|
|
509
|
-
if (
|
|
510
|
-
var c =
|
|
557
|
+
if (b(Un)) {
|
|
558
|
+
var c = ee(l);
|
|
511
559
|
c.test = l, c.da = q(!0), j(He), c.alternate = q(!0, o), l = T(c, "ConditionalExpression");
|
|
512
560
|
}
|
|
513
|
-
return A.Cb ? (c =
|
|
561
|
+
return A.Cb ? (c = ee(l), c.operator = le, c.left = l, v(), c.right = xt(o), Se(l), T(c, "AssignmentExpression")) : l;
|
|
514
562
|
}
|
|
515
563
|
function bt(o, l, c) {
|
|
516
564
|
var h = A.L;
|
|
517
565
|
if (h !== null && (!c || A !== at) && h > l) {
|
|
518
|
-
var R =
|
|
519
|
-
return R.left = o, R.operator =
|
|
566
|
+
var R = ee(o);
|
|
567
|
+
return R.left = o, R.operator = le, o = A, v(), R.right = bt(St(), h, c), h = T(R, o === $n || o === Vn ? "LogicalExpression" : "BinaryExpression"), bt(h, l, c);
|
|
520
568
|
}
|
|
521
569
|
return o;
|
|
522
570
|
}
|
|
523
571
|
function St() {
|
|
524
572
|
if (A.prefix) {
|
|
525
|
-
var o =
|
|
526
|
-
return o.operator =
|
|
573
|
+
var o = W(), l = A.$b;
|
|
574
|
+
return o.operator = le, $e = o.prefix = !0, v(), o.K = St(), l ? Se(o.K) : oe && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), T(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
527
575
|
}
|
|
528
|
-
for (l =
|
|
529
|
-
o =
|
|
576
|
+
for (l = Le(it()); A.cc && !B(); )
|
|
577
|
+
o = ee(l), o.operator = le, o.prefix = !1, o.K = l, Se(l), v(), l = T(o, "UpdateExpression");
|
|
530
578
|
return l;
|
|
531
579
|
}
|
|
532
|
-
function
|
|
533
|
-
if (
|
|
534
|
-
var c =
|
|
535
|
-
return c.object = o, c.Wa =
|
|
580
|
+
function Le(o, l) {
|
|
581
|
+
if (b(Fn)) {
|
|
582
|
+
var c = ee(o);
|
|
583
|
+
return c.object = o, c.Wa = ue(!0), c.bb = !1, Le(T(c, "MemberExpression"), l);
|
|
536
584
|
}
|
|
537
|
-
return
|
|
585
|
+
return b(Ut) ? (c = ee(o), c.object = o, c.Wa = q(), c.bb = !0, j(Bt), Le(T(c, "MemberExpression"), l)) : !l && b(de) ? (c = ee(o), c.callee = o, c.arguments = kt(ce, !1), Le(T(c, "CallExpression"), l)) : o;
|
|
538
586
|
}
|
|
539
587
|
function it() {
|
|
540
588
|
switch (A) {
|
|
541
|
-
case
|
|
542
|
-
var o =
|
|
589
|
+
case On:
|
|
590
|
+
var o = W();
|
|
543
591
|
return v(), T(o, "ThisExpression");
|
|
544
|
-
case
|
|
545
|
-
return
|
|
592
|
+
case je:
|
|
593
|
+
return ue();
|
|
546
594
|
case De:
|
|
547
595
|
case ot:
|
|
548
|
-
case
|
|
549
|
-
return o =
|
|
550
|
-
case On:
|
|
596
|
+
case gn:
|
|
597
|
+
return o = W(), o.value = le, o.raw = S.slice(z, Te), v(), T(o, "Literal");
|
|
551
598
|
case Nn:
|
|
552
599
|
case Pn:
|
|
553
|
-
|
|
554
|
-
|
|
600
|
+
case Mn:
|
|
601
|
+
return o = W(), o.value = A.$a, o.raw = A.l, v(), T(o, "Literal");
|
|
602
|
+
case de:
|
|
555
603
|
o = Et;
|
|
556
604
|
var l = z;
|
|
557
605
|
v();
|
|
558
606
|
var c = q();
|
|
559
|
-
return c.start = l, c.end =
|
|
607
|
+
return c.start = l, c.end = Te, N.C && (c.X.start = o, c.X.end = It), N.Xa && (c.j = [l, Te]), j(ce), c;
|
|
560
608
|
case Ut:
|
|
561
|
-
return o =
|
|
609
|
+
return o = W(), v(), o.elements = kt(Bt, !0, !0), T(o, "ArrayExpression");
|
|
562
610
|
case We:
|
|
563
|
-
for (o =
|
|
611
|
+
for (o = W(), l = !0, c = !1, o.h = [], v(); !b(Ae); ) {
|
|
564
612
|
if (l)
|
|
565
613
|
l = !1;
|
|
566
|
-
else if (j(
|
|
614
|
+
else if (j(xe), N.sb && b(Ae))
|
|
567
615
|
break;
|
|
568
616
|
var h = {
|
|
569
|
-
key: A === De || A === ot ? it() :
|
|
617
|
+
key: A === De || A === ot ? it() : ue(!0)
|
|
570
618
|
}, R = !1;
|
|
571
|
-
if (
|
|
619
|
+
if (b(He)) {
|
|
572
620
|
h.value = q(!0);
|
|
573
621
|
var X = h.kind = "init";
|
|
574
622
|
} else
|
|
575
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
576
|
-
if (h.key.type === "Identifier" && (
|
|
577
|
-
for (var
|
|
578
|
-
var
|
|
579
|
-
if (
|
|
580
|
-
var
|
|
581
|
-
|
|
623
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? D() : (R = c = !0, X = h.kind = h.key.name, h.key = A === De || A === ot ? it() : ue(!0), A !== de && D(), h.value = wt(W(), !1));
|
|
624
|
+
if (h.key.type === "Identifier" && (oe || c))
|
|
625
|
+
for (var te = 0; te < o.h.length; ++te) {
|
|
626
|
+
var Oe = o.h[te];
|
|
627
|
+
if (Oe.key.name === h.key.name) {
|
|
628
|
+
var Lt = X === Oe.kind || R && Oe.kind === "init" || X === "init" && (Oe.kind === "get" || Oe.kind === "set");
|
|
629
|
+
Lt && !oe && X === "init" && Oe.kind === "init" && (Lt = !1), Lt && n(h.key.start, "Redefinition of property");
|
|
582
630
|
}
|
|
583
631
|
}
|
|
584
632
|
o.h.push(h);
|
|
585
633
|
}
|
|
586
634
|
return T(o, "ObjectExpression");
|
|
587
635
|
case Nt:
|
|
588
|
-
return o =
|
|
589
|
-
case
|
|
590
|
-
return o =
|
|
636
|
+
return o = W(), v(), wt(o, !1);
|
|
637
|
+
case Rn:
|
|
638
|
+
return o = W(), v(), o.callee = Le(it(), !0), o.arguments = b(de) ? kt(ce, !1) : Tr, T(o, "NewExpression");
|
|
591
639
|
}
|
|
592
|
-
|
|
640
|
+
D();
|
|
593
641
|
}
|
|
594
642
|
function wt(o, l) {
|
|
595
|
-
A ===
|
|
643
|
+
A === je ? o.id = ue() : l ? D() : o.id = null, o.oa = [];
|
|
596
644
|
var c = !0;
|
|
597
|
-
for (j(
|
|
598
|
-
c ? c = !1 : j(
|
|
645
|
+
for (j(de); !b(ce); )
|
|
646
|
+
c ? c = !1 : j(xe), o.oa.push(ue());
|
|
599
647
|
c = Ve;
|
|
600
648
|
var h = G;
|
|
601
|
-
if (Ve = !0, G = [], o.body = _e(!0), Ve = c, G = h,
|
|
649
|
+
if (Ve = !0, G = [], o.body = _e(!0), Ve = c, G = h, oe || o.body.body.length && O(o.body.body[0])) {
|
|
602
650
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
603
|
-
if (h = 0 > c ? o.id : o.oa[c], (
|
|
651
|
+
if (h = 0 > c ? o.id : o.oa[c], (Dn(h.name) || st(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
604
652
|
for (var R = 0; R < c; ++R)
|
|
605
653
|
h.name === o.oa[R].name && n(h.start, "Argument name clash in strict mode");
|
|
606
654
|
}
|
|
607
655
|
return T(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
608
656
|
}
|
|
609
657
|
function kt(o, l, c) {
|
|
610
|
-
for (var h = [], R = !0; !
|
|
658
|
+
for (var h = [], R = !0; !b(o); ) {
|
|
611
659
|
if (R)
|
|
612
660
|
R = !1;
|
|
613
|
-
else if (j(
|
|
661
|
+
else if (j(xe), l && N.sb && b(o))
|
|
614
662
|
break;
|
|
615
|
-
h.push(c && A ===
|
|
663
|
+
h.push(c && A === xe ? null : q(!0));
|
|
616
664
|
}
|
|
617
665
|
return h;
|
|
618
666
|
}
|
|
619
|
-
function
|
|
620
|
-
var l =
|
|
621
|
-
return o &&
|
|
667
|
+
function ue(o) {
|
|
668
|
+
var l = W();
|
|
669
|
+
return o && N.yb === "everywhere" && (o = !1), A === je ? (!o && (N.yb && _r(le) || oe && Dn(le)) && S.slice(z, Te).indexOf("\\") === -1 && n(z, "The keyword '" + le + "' is reserved"), l.name = le) : o && A.l ? l.name = A.l : D(), $e = !1, v(), T(l, "Identifier");
|
|
622
670
|
}
|
|
623
671
|
e.version = "0.5.0";
|
|
624
|
-
var
|
|
672
|
+
var N, S = "", Ie, Ct;
|
|
625
673
|
e.parse = function(o, l) {
|
|
626
|
-
|
|
627
|
-
for (var c in
|
|
628
|
-
Object.prototype.hasOwnProperty.call(
|
|
629
|
-
for (Ct =
|
|
630
|
-
c =
|
|
674
|
+
S = String(o), Ie = S.length, N = l || {};
|
|
675
|
+
for (var c in mn)
|
|
676
|
+
Object.prototype.hasOwnProperty.call(N, c) || (N[c] = mn[c]);
|
|
677
|
+
for (Ct = N.sourceFile, we = 1, f = fe = 0, $e = !0, d(), c = N.dc, Tt = ve = f, N.C && (jt = new a()), Ve = oe = !1, G = [], y(), o = c || W(), l = !0, c || (o.body = []); A !== At; )
|
|
678
|
+
c = ie(), o.body.push(c), l && O(c) && K(!0), l = !1;
|
|
631
679
|
return T(o, "Program");
|
|
632
680
|
};
|
|
633
|
-
var
|
|
681
|
+
var mn = {
|
|
634
682
|
fc: !1,
|
|
635
683
|
sb: !0,
|
|
636
684
|
yb: !1,
|
|
@@ -641,13 +689,13 @@ var L, Jr = function(e) {
|
|
|
641
689
|
dc: null,
|
|
642
690
|
sourceFile: null,
|
|
643
691
|
vb: null
|
|
644
|
-
},
|
|
692
|
+
}, f = 0, z = 0, Te = 0, Et, It, A, le, $e, we, fe, Tt = 0, ve = 0, jt, Ve, G, oe, Tr = [], De = {
|
|
645
693
|
type: "num"
|
|
646
|
-
},
|
|
694
|
+
}, gn = {
|
|
647
695
|
type: "regexp"
|
|
648
696
|
}, ot = {
|
|
649
697
|
type: "string"
|
|
650
|
-
},
|
|
698
|
+
}, je = {
|
|
651
699
|
type: "name"
|
|
652
700
|
}, At = {
|
|
653
701
|
type: "eof"
|
|
@@ -656,95 +704,95 @@ var L, Jr = function(e) {
|
|
|
656
704
|
}, Ot = {
|
|
657
705
|
l: "case",
|
|
658
706
|
m: !0
|
|
659
|
-
}, gn = {
|
|
660
|
-
l: "catch"
|
|
661
707
|
}, yn = {
|
|
662
|
-
l: "
|
|
708
|
+
l: "catch"
|
|
663
709
|
}, vn = {
|
|
664
|
-
l: "
|
|
710
|
+
l: "continue"
|
|
665
711
|
}, xn = {
|
|
666
|
-
l: "
|
|
712
|
+
l: "debugger"
|
|
667
713
|
}, bn = {
|
|
714
|
+
l: "default"
|
|
715
|
+
}, Sn = {
|
|
668
716
|
l: "do",
|
|
669
717
|
W: !0
|
|
670
|
-
},
|
|
718
|
+
}, wn = {
|
|
671
719
|
l: "else",
|
|
672
720
|
m: !0
|
|
673
|
-
}, wn = {
|
|
674
|
-
l: "finally"
|
|
675
721
|
}, kn = {
|
|
722
|
+
l: "finally"
|
|
723
|
+
}, Cn = {
|
|
676
724
|
l: "for",
|
|
677
725
|
W: !0
|
|
678
726
|
}, Nt = {
|
|
679
727
|
l: "function"
|
|
680
|
-
}, Cn = {
|
|
681
|
-
l: "if"
|
|
682
728
|
}, En = {
|
|
729
|
+
l: "if"
|
|
730
|
+
}, In = {
|
|
683
731
|
l: "return",
|
|
684
732
|
m: !0
|
|
685
733
|
}, Pt = {
|
|
686
734
|
l: "switch"
|
|
687
|
-
},
|
|
735
|
+
}, Tn = {
|
|
688
736
|
l: "throw",
|
|
689
737
|
m: !0
|
|
690
|
-
},
|
|
738
|
+
}, jn = {
|
|
691
739
|
l: "try"
|
|
692
740
|
}, Mt = {
|
|
693
741
|
l: "var"
|
|
694
742
|
}, Ft = {
|
|
695
743
|
l: "while",
|
|
696
744
|
W: !0
|
|
697
|
-
}, jn = {
|
|
698
|
-
l: "with"
|
|
699
745
|
}, An = {
|
|
746
|
+
l: "with"
|
|
747
|
+
}, Rn = {
|
|
700
748
|
l: "new",
|
|
701
749
|
m: !0
|
|
702
|
-
}, Rn = {
|
|
703
|
-
l: "this"
|
|
704
750
|
}, On = {
|
|
751
|
+
l: "this"
|
|
752
|
+
}, Nn = {
|
|
705
753
|
l: "null",
|
|
706
754
|
$a: null
|
|
707
|
-
},
|
|
755
|
+
}, Pn = {
|
|
708
756
|
l: "true",
|
|
709
757
|
$a: !0
|
|
710
|
-
},
|
|
758
|
+
}, Mn = {
|
|
711
759
|
l: "false",
|
|
712
760
|
$a: !1
|
|
713
761
|
}, at = {
|
|
714
762
|
l: "in",
|
|
715
763
|
L: 7,
|
|
716
764
|
m: !0
|
|
717
|
-
},
|
|
765
|
+
}, jr = {
|
|
718
766
|
break: Rt,
|
|
719
767
|
case: Ot,
|
|
720
|
-
catch:
|
|
721
|
-
continue:
|
|
722
|
-
debugger:
|
|
723
|
-
default:
|
|
724
|
-
do:
|
|
725
|
-
else:
|
|
726
|
-
finally:
|
|
727
|
-
for:
|
|
768
|
+
catch: yn,
|
|
769
|
+
continue: vn,
|
|
770
|
+
debugger: xn,
|
|
771
|
+
default: bn,
|
|
772
|
+
do: Sn,
|
|
773
|
+
else: wn,
|
|
774
|
+
finally: kn,
|
|
775
|
+
for: Cn,
|
|
728
776
|
function: Nt,
|
|
729
|
-
if:
|
|
730
|
-
return:
|
|
777
|
+
if: En,
|
|
778
|
+
return: In,
|
|
731
779
|
switch: Pt,
|
|
732
|
-
throw:
|
|
733
|
-
try:
|
|
780
|
+
throw: Tn,
|
|
781
|
+
try: jn,
|
|
734
782
|
var: Mt,
|
|
735
783
|
while: Ft,
|
|
736
|
-
with:
|
|
737
|
-
null:
|
|
738
|
-
true:
|
|
739
|
-
false:
|
|
740
|
-
new:
|
|
784
|
+
with: An,
|
|
785
|
+
null: Nn,
|
|
786
|
+
true: Pn,
|
|
787
|
+
false: Mn,
|
|
788
|
+
new: Rn,
|
|
741
789
|
in: at,
|
|
742
790
|
instanceof: {
|
|
743
791
|
l: "instanceof",
|
|
744
792
|
L: 7,
|
|
745
793
|
m: !0
|
|
746
794
|
},
|
|
747
|
-
this:
|
|
795
|
+
this: On,
|
|
748
796
|
typeof: {
|
|
749
797
|
l: "typeof",
|
|
750
798
|
prefix: !0,
|
|
@@ -768,82 +816,82 @@ var L, Jr = function(e) {
|
|
|
768
816
|
}, We = {
|
|
769
817
|
type: "{",
|
|
770
818
|
m: !0
|
|
771
|
-
},
|
|
819
|
+
}, Ae = {
|
|
772
820
|
type: "}"
|
|
773
|
-
},
|
|
821
|
+
}, de = {
|
|
774
822
|
type: "(",
|
|
775
823
|
m: !0
|
|
776
|
-
},
|
|
824
|
+
}, ce = {
|
|
777
825
|
type: ")"
|
|
778
|
-
},
|
|
826
|
+
}, xe = {
|
|
779
827
|
type: ",",
|
|
780
828
|
m: !0
|
|
781
|
-
},
|
|
829
|
+
}, he = {
|
|
782
830
|
type: ";",
|
|
783
831
|
m: !0
|
|
784
832
|
}, He = {
|
|
785
833
|
type: ":",
|
|
786
834
|
m: !0
|
|
787
|
-
}, Mn = {
|
|
788
|
-
type: "."
|
|
789
835
|
}, Fn = {
|
|
836
|
+
type: "."
|
|
837
|
+
}, Un = {
|
|
790
838
|
type: "?",
|
|
791
839
|
m: !0
|
|
792
|
-
},
|
|
840
|
+
}, Bn = {
|
|
793
841
|
L: 10,
|
|
794
842
|
m: !0
|
|
795
|
-
},
|
|
843
|
+
}, _n = {
|
|
796
844
|
Cb: !0,
|
|
797
845
|
m: !0
|
|
798
846
|
}, ke = {
|
|
799
847
|
Cb: !0,
|
|
800
848
|
m: !0
|
|
801
|
-
},
|
|
849
|
+
}, Ar = {
|
|
802
850
|
cc: !0,
|
|
803
851
|
prefix: !0,
|
|
804
852
|
$b: !0
|
|
805
|
-
},
|
|
853
|
+
}, Ln = {
|
|
806
854
|
prefix: !0,
|
|
807
855
|
m: !0
|
|
808
856
|
}, $n = {
|
|
809
857
|
L: 1,
|
|
810
858
|
m: !0
|
|
811
|
-
},
|
|
859
|
+
}, Vn = {
|
|
812
860
|
L: 2,
|
|
813
861
|
m: !0
|
|
814
|
-
},
|
|
862
|
+
}, Rr = {
|
|
815
863
|
L: 3,
|
|
816
864
|
m: !0
|
|
817
|
-
},
|
|
865
|
+
}, Or = {
|
|
818
866
|
L: 4,
|
|
819
867
|
m: !0
|
|
820
|
-
},
|
|
868
|
+
}, Nr = {
|
|
821
869
|
L: 5,
|
|
822
870
|
m: !0
|
|
823
|
-
},
|
|
871
|
+
}, Pr = {
|
|
824
872
|
L: 6,
|
|
825
873
|
m: !0
|
|
826
|
-
},
|
|
874
|
+
}, Mr = {
|
|
827
875
|
L: 7,
|
|
828
876
|
m: !0
|
|
829
|
-
},
|
|
877
|
+
}, Fr = {
|
|
830
878
|
L: 8,
|
|
831
879
|
m: !0
|
|
832
|
-
},
|
|
880
|
+
}, Ur = {
|
|
833
881
|
L: 9,
|
|
834
882
|
prefix: !0,
|
|
835
883
|
m: !0
|
|
836
|
-
},
|
|
884
|
+
}, Br = {
|
|
837
885
|
L: 10,
|
|
838
886
|
m: !0
|
|
839
|
-
},
|
|
887
|
+
}, _r = i("class enum extends super const export import"), Dn = i("implements interface let package private protected public static yield"), st = i("eval arguments"), Lr = i("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"), $r = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Wn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Vr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), lt = /[\n\r\u2028\u2029]/, ct = /\r\n|[\n\r\u2028\u2029]/g, Re, _t = {
|
|
840
888
|
kind: "loop"
|
|
841
|
-
},
|
|
889
|
+
}, Dr = {
|
|
842
890
|
kind: "switch"
|
|
843
891
|
};
|
|
844
|
-
},
|
|
845
|
-
|
|
846
|
-
function
|
|
892
|
+
}, Kt = Kt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
893
|
+
ei(Kt.j || (Kt.j = {}));
|
|
894
|
+
function m(e, t) {
|
|
847
895
|
typeof e == "string" && (e = Me(e, "code"));
|
|
848
896
|
var r = e.constructor;
|
|
849
897
|
this.ya = function() {
|
|
@@ -858,21 +906,21 @@ function g(e, t) {
|
|
|
858
906
|
var a, s;
|
|
859
907
|
for (s in this)
|
|
860
908
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
861
|
-
this.N =
|
|
862
|
-
`), "polyfills"), this.ba = void 0, pt(this.ra), a = new
|
|
909
|
+
this.N = zt(this, this.ra, null), this.Na = this.N.object, this.ra = Me(this.ba.join(`
|
|
910
|
+
`), "polyfills"), this.ba = void 0, pt(this.ra), a = new k(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = n, a = new k(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
863
911
|
}
|
|
864
912
|
var Jn = {
|
|
865
913
|
C: !0,
|
|
866
914
|
kc: 5
|
|
867
|
-
},
|
|
915
|
+
}, Zt = {
|
|
868
916
|
configurable: !0,
|
|
869
917
|
enumerable: !0,
|
|
870
918
|
writable: !1
|
|
871
|
-
},
|
|
919
|
+
}, w = {
|
|
872
920
|
configurable: !0,
|
|
873
921
|
enumerable: !1,
|
|
874
922
|
writable: !0
|
|
875
|
-
},
|
|
923
|
+
}, re = {
|
|
876
924
|
configurable: !0,
|
|
877
925
|
enumerable: !1,
|
|
878
926
|
writable: !1
|
|
@@ -884,16 +932,16 @@ var Jn = {
|
|
|
884
932
|
configurable: !1,
|
|
885
933
|
enumerable: !0,
|
|
886
934
|
writable: !0
|
|
887
|
-
},
|
|
935
|
+
}, gr = {
|
|
888
936
|
STEP_ERROR: !0
|
|
889
937
|
}, Ue = {
|
|
890
938
|
SCOPE_REFERENCE: !0
|
|
891
939
|
}, Ze = {
|
|
892
940
|
VALUE_IN_DESCRIPTOR: !0
|
|
893
|
-
},
|
|
941
|
+
}, Ne = {
|
|
894
942
|
REGEXP_TIMEOUT: !0
|
|
895
|
-
}, qn = [],
|
|
896
|
-
function
|
|
943
|
+
}, qn = [], me = null, Ye = null, be = typeof globalThis > "u" ? void 0 : globalThis, ti = ["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();", "};"];
|
|
944
|
+
function Qt(e) {
|
|
897
945
|
var t = e >>> 0;
|
|
898
946
|
return t === Number(e) ? t : NaN;
|
|
899
947
|
}
|
|
@@ -909,21 +957,21 @@ function pt(e, t, r) {
|
|
|
909
957
|
i && typeof i == "object" && pt(i, t, r);
|
|
910
958
|
}
|
|
911
959
|
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
960
|
+
m.prototype.REGEXP_MODE = 2;
|
|
961
|
+
m.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
962
|
+
m.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
963
|
+
$ = m.prototype;
|
|
964
|
+
$.P = !1;
|
|
965
|
+
$.Ka = !1;
|
|
966
|
+
$.Kb = 0;
|
|
967
|
+
$.ic = 0;
|
|
920
968
|
function Me(e, t) {
|
|
921
969
|
var r = {}, n;
|
|
922
970
|
for (n in Jn)
|
|
923
971
|
r[n] = Jn[n];
|
|
924
|
-
return r.sourceFile = t,
|
|
972
|
+
return r.sourceFile = t, be.j.parse(e, r);
|
|
925
973
|
}
|
|
926
|
-
|
|
974
|
+
$.Jb = function(e) {
|
|
927
975
|
var t = this.o[0];
|
|
928
976
|
if (!t || t.node.type !== "Program")
|
|
929
977
|
throw Error("Expecting original AST to start with a Program node");
|
|
@@ -931,7 +979,7 @@ L.Jb = function(e) {
|
|
|
931
979
|
throw Error("Expecting new AST to start with a Program node");
|
|
932
980
|
Qe(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
933
981
|
};
|
|
934
|
-
|
|
982
|
+
$.lb = function() {
|
|
935
983
|
var e = this.o, t;
|
|
936
984
|
do {
|
|
937
985
|
var r = e[e.length - 1];
|
|
@@ -943,8 +991,8 @@ L.lb = function() {
|
|
|
943
991
|
if (r = this.ca[0], !r || r.time > Date.now())
|
|
944
992
|
r = null;
|
|
945
993
|
else {
|
|
946
|
-
this.ca.shift(), 0 <= r.interval &&
|
|
947
|
-
var n = new
|
|
994
|
+
this.ca.shift(), 0 <= r.interval && xr(this, r, r.interval);
|
|
995
|
+
var n = new k(r.node, r.scope);
|
|
948
996
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
949
997
|
}
|
|
950
998
|
if (!r)
|
|
@@ -956,7 +1004,7 @@ L.lb = function() {
|
|
|
956
1004
|
try {
|
|
957
1005
|
var a = this.rb[n.type](e, r, n);
|
|
958
1006
|
} catch (s) {
|
|
959
|
-
if (s !==
|
|
1007
|
+
if (s !== gr)
|
|
960
1008
|
throw this.value !== s && (this.value = void 0), s;
|
|
961
1009
|
} finally {
|
|
962
1010
|
Ye = i;
|
|
@@ -969,60 +1017,60 @@ L.lb = function() {
|
|
|
969
1017
|
} while (!n.end && t > Date.now());
|
|
970
1018
|
return !0;
|
|
971
1019
|
};
|
|
972
|
-
|
|
1020
|
+
$.Eb = function() {
|
|
973
1021
|
for (; !this.za && this.lb(); )
|
|
974
1022
|
;
|
|
975
1023
|
return this.za;
|
|
976
1024
|
};
|
|
977
|
-
function
|
|
978
|
-
e.g(t, "NaN", NaN, Ke), e.g(t, "Infinity", 1 / 0, Ke), e.g(t, "undefined", void 0, Ke), e.g(t, "window", t,
|
|
1025
|
+
function ni(e, t) {
|
|
1026
|
+
e.g(t, "NaN", NaN, Ke), e.g(t, "Infinity", 1 / 0, Ke), e.g(t, "undefined", void 0, Ke), e.g(t, "window", t, Zt), e.g(t, "this", t, Ke), e.g(t, "self", t), e.M = new F(null), e.Z = new F(e.M), ri(e, t), ii(e, t), t.xa = e.M, e.g(t, "constructor", e.v, w), oi(e, t), ai(e, t), si(e, t), li(e, t), ci(e, t), ui(e, t), fi(e, t), di(e, t), hi(e, t);
|
|
979
1027
|
var r = e.i(function() {
|
|
980
1028
|
throw EvalError("Can't happen");
|
|
981
1029
|
}, !1);
|
|
982
|
-
r.eval = !0, e.g(t, "eval", r,
|
|
1030
|
+
r.eval = !0, e.g(t, "eval", r, w), e.g(t, "parseInt", e.i(parseInt, !1), w), e.g(t, "parseFloat", e.i(parseFloat, !1), w), e.g(t, "isNaN", e.i(isNaN, !1), w), e.g(t, "isFinite", e.i(isFinite, !1), w);
|
|
983
1031
|
for (var n = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], i = 0; i < n.length; i++)
|
|
984
1032
|
r = function(a) {
|
|
985
1033
|
return function(s) {
|
|
986
1034
|
try {
|
|
987
1035
|
return a(s);
|
|
988
|
-
} catch (
|
|
989
|
-
|
|
1036
|
+
} catch (u) {
|
|
1037
|
+
E(e, e.Gb, u.message);
|
|
990
1038
|
}
|
|
991
1039
|
};
|
|
992
|
-
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1),
|
|
1040
|
+
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1), w);
|
|
993
1041
|
r = function(a) {
|
|
994
1042
|
return Zn(e, !1, arguments);
|
|
995
|
-
}, e.g(t, "setTimeout", e.i(r, !1),
|
|
1043
|
+
}, e.g(t, "setTimeout", e.i(r, !1), w), r = function(a) {
|
|
996
1044
|
return Zn(e, !0, arguments);
|
|
997
|
-
}, e.g(t, "setInterval", e.i(r, !1),
|
|
1045
|
+
}, e.g(t, "setInterval", e.i(r, !1), w), r = function(a) {
|
|
998
1046
|
Qn(e, a);
|
|
999
|
-
}, e.g(t, "clearTimeout", e.i(r, !1),
|
|
1047
|
+
}, e.g(t, "clearTimeout", e.i(r, !1), w), r = function(a) {
|
|
1000
1048
|
Qn(e, a);
|
|
1001
|
-
}, e.g(t, "clearInterval", e.i(r, !1),
|
|
1049
|
+
}, e.g(t, "clearInterval", e.i(r, !1), w), 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);
|
|
1002
1050
|
}
|
|
1003
|
-
|
|
1004
|
-
function
|
|
1051
|
+
$.Wb = 0;
|
|
1052
|
+
function ri(e, t) {
|
|
1005
1053
|
var r = /^[A-Za-z_$][\w$]*$/, n = function(i) {
|
|
1006
1054
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1007
1055
|
if (s) {
|
|
1008
1056
|
s = s.split(/\s*,\s*/);
|
|
1009
|
-
for (var
|
|
1010
|
-
var d = s[
|
|
1011
|
-
r.test(d) ||
|
|
1057
|
+
for (var u = 0; u < s.length; u++) {
|
|
1058
|
+
var d = s[u];
|
|
1059
|
+
r.test(d) || E(e, e.T, "Invalid function argument: " + d);
|
|
1012
1060
|
}
|
|
1013
1061
|
s = s.join(", ");
|
|
1014
1062
|
}
|
|
1015
1063
|
try {
|
|
1016
1064
|
var p = Me("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1017
1065
|
} catch (y) {
|
|
1018
|
-
|
|
1066
|
+
E(e, e.T, "Invalid code: " + y.message);
|
|
1019
1067
|
}
|
|
1020
|
-
return p.body.length !== 1 &&
|
|
1068
|
+
return p.body.length !== 1 && E(e, e.T, "Invalid code in function body"), nn(e, p.body[0].la, e.N, "anonymous");
|
|
1021
1069
|
};
|
|
1022
|
-
e.O = e.i(n, !0), e.g(t, "Function", e.O,
|
|
1023
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1070
|
+
e.O = e.i(n, !0), e.g(t, "Function", e.O, w), e.g(e.O, "prototype", e.Z, w), e.g(e.Z, "constructor", e.O, w), e.Z.Ta = function() {
|
|
1071
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, re), e.Z.H = "Function", n = function(i, a) {
|
|
1024
1072
|
var s = e.o[e.o.length - 1];
|
|
1025
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof F ? s.F =
|
|
1073
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof F ? s.F = yr(e, a) : E(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1026
1074
|
}, J(e, e.O, "apply", n), n = function(i) {
|
|
1027
1075
|
var a = e.o[e.o.length - 1];
|
|
1028
1076
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1031,60 +1079,60 @@ function Zr(e, t) {
|
|
|
1031
1079
|
a.eb = !1;
|
|
1032
1080
|
}, J(e, e.O, "call", n), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), n = function() {
|
|
1033
1081
|
return String(this);
|
|
1034
|
-
}, J(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1),
|
|
1082
|
+
}, J(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1), w), n = function() {
|
|
1035
1083
|
return this.valueOf();
|
|
1036
|
-
}, J(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1),
|
|
1084
|
+
}, J(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), w);
|
|
1037
1085
|
}
|
|
1038
|
-
function
|
|
1086
|
+
function ii(e, t) {
|
|
1039
1087
|
function r(i) {
|
|
1040
|
-
i != null ||
|
|
1088
|
+
i != null || E(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1041
1089
|
}
|
|
1042
1090
|
var n = function(i) {
|
|
1043
1091
|
if (i == null)
|
|
1044
|
-
return
|
|
1092
|
+
return ye(e) ? this : e.s(e.M);
|
|
1045
1093
|
if (!(i instanceof F)) {
|
|
1046
|
-
var a = e.s(
|
|
1094
|
+
var a = e.s(ge(e, i));
|
|
1047
1095
|
return a.data = i, a;
|
|
1048
1096
|
}
|
|
1049
1097
|
return i;
|
|
1050
1098
|
};
|
|
1051
|
-
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M,
|
|
1052
|
-
return r(i),
|
|
1053
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1),
|
|
1054
|
-
return r(i), i instanceof F && (i = i.h),
|
|
1055
|
-
}, e.g(e.v, "keys", e.i(n, !1),
|
|
1056
|
-
return i === null ? e.s(null) : (i instanceof F ||
|
|
1057
|
-
}, e.g(e.v, "create", e.i(n, !1),
|
|
1058
|
-
return a = String(a), i instanceof F ||
|
|
1059
|
-
}, e.g(e.v, "defineProperty", e.i(n, !1),
|
|
1060
|
-
if (i instanceof F ||
|
|
1061
|
-
var s = Object.getOwnPropertyDescriptor(i.h, a),
|
|
1062
|
-
return i = i.Y[a], a = e.s(e.M),
|
|
1099
|
+
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M, w), e.g(e.M, "constructor", e.v, w), e.g(t, "Object", e.v, w), n = function(i) {
|
|
1100
|
+
return r(i), pe(e, Object.getOwnPropertyNames(i instanceof F ? i.h : i));
|
|
1101
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), w), n = function(i) {
|
|
1102
|
+
return r(i), i instanceof F && (i = i.h), pe(e, Object.keys(i));
|
|
1103
|
+
}, e.g(e.v, "keys", e.i(n, !1), w), n = function(i) {
|
|
1104
|
+
return i === null ? e.s(null) : (i instanceof F || E(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1105
|
+
}, e.g(e.v, "create", e.i(n, !1), w), 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;", "};", "})();", ""), n = function(i, a, s) {
|
|
1106
|
+
return a = String(a), i instanceof F || E(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof F || E(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || E(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, Ze, s.h), i;
|
|
1107
|
+
}, e.g(e.v, "defineProperty", e.i(n, !1), w), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), n = function(i, a) {
|
|
1108
|
+
if (i instanceof F || E(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1109
|
+
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1110
|
+
return i = i.Y[a], a = e.s(e.M), u || i ? (e.g(a, "get", u), e.g(a, "set", i)) : (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;
|
|
1063
1111
|
}
|
|
1064
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1),
|
|
1065
|
-
return r(i),
|
|
1066
|
-
}, e.g(e.v, "getPrototypeOf", e.i(n, !1),
|
|
1112
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1), w), n = function(i) {
|
|
1113
|
+
return r(i), ge(e, i);
|
|
1114
|
+
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), w), n = function(i) {
|
|
1067
1115
|
return !!i && !i.preventExtensions;
|
|
1068
|
-
}, e.g(e.v, "isExtensible", e.i(n, !1),
|
|
1116
|
+
}, e.g(e.v, "isExtensible", e.i(n, !1), w), n = function(i) {
|
|
1069
1117
|
return i instanceof F && (i.preventExtensions = !0), i;
|
|
1070
|
-
}, e.g(e.v, "preventExtensions", e.i(n, !1),
|
|
1118
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), w), J(e, e.v, "toString", F.prototype.toString), J(e, e.v, "toLocaleString", F.prototype.toString), J(e, e.v, "valueOf", F.prototype.valueOf), n = function(i) {
|
|
1071
1119
|
return r(this), this instanceof F ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1072
1120
|
}, J(e, e.v, "hasOwnProperty", n), n = function(i) {
|
|
1073
1121
|
return r(this), this instanceof F ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1074
1122
|
}, J(e, e.v, "propertyIsEnumerable", n), n = function(i) {
|
|
1075
1123
|
for (; ; ) {
|
|
1076
|
-
if (i =
|
|
1124
|
+
if (i = ge(e, i), !i)
|
|
1077
1125
|
return !1;
|
|
1078
1126
|
if (i === this)
|
|
1079
1127
|
return !0;
|
|
1080
1128
|
}
|
|
1081
1129
|
}, J(e, e.v, "isPrototypeOf", n);
|
|
1082
1130
|
}
|
|
1083
|
-
function
|
|
1131
|
+
function oi(e, t) {
|
|
1084
1132
|
var r = function(n) {
|
|
1085
|
-
var i =
|
|
1133
|
+
var i = ye(e) ? this : Fe(e), a = arguments[0];
|
|
1086
1134
|
if (arguments.length === 1 && typeof a == "number")
|
|
1087
|
-
isNaN(
|
|
1135
|
+
isNaN(Qt(a)) && E(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1088
1136
|
else {
|
|
1089
1137
|
for (a = 0; a < arguments.length; a++)
|
|
1090
1138
|
i.h[a] = arguments[a];
|
|
@@ -1092,73 +1140,73 @@ function ei(e, t) {
|
|
|
1092
1140
|
}
|
|
1093
1141
|
return i;
|
|
1094
1142
|
};
|
|
1095
|
-
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa,
|
|
1143
|
+
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, w), r = function(n) {
|
|
1096
1144
|
return n && n.H === "Array";
|
|
1097
|
-
}, e.g(e.qa, "isArray", e.i(r, !1),
|
|
1145
|
+
}, e.g(e.qa, "isArray", e.i(r, !1), w), e.g(e.La, "length", 0, {
|
|
1098
1146
|
configurable: !1,
|
|
1099
1147
|
enumerable: !1,
|
|
1100
1148
|
writable: !0
|
|
1101
1149
|
}), 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(',');", "}", ");", "})();", "");
|
|
1102
1150
|
}
|
|
1103
|
-
function
|
|
1151
|
+
function ai(e, t) {
|
|
1104
1152
|
var r = function(n) {
|
|
1105
|
-
return n = arguments.length ?
|
|
1153
|
+
return n = arguments.length ? be.String(n) : "", ye(e) ? (this.data = n, this) : n;
|
|
1106
1154
|
};
|
|
1107
|
-
for (e.J = e.i(r, !0), e.g(t, "String", e.J,
|
|
1155
|
+
for (e.J = e.i(r, !0), e.g(t, "String", e.J, w), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), w), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), r = 0; r < t.length; r++)
|
|
1108
1156
|
J(e, e.J, t[r], String.prototype[t[r]]);
|
|
1109
1157
|
r = function(n, i, a) {
|
|
1110
1158
|
i = e.R(i), a = e.R(a);
|
|
1111
1159
|
try {
|
|
1112
1160
|
return String(this).localeCompare(n, i, a);
|
|
1113
1161
|
} catch (s) {
|
|
1114
|
-
|
|
1162
|
+
E(e, e.D, "localeCompare: " + s.message);
|
|
1115
1163
|
}
|
|
1116
1164
|
}, J(e, e.J, "localeCompare", r), r = function(n, i, a) {
|
|
1117
1165
|
var s = String(this);
|
|
1118
1166
|
if (i = i ? Number(i) : void 0, Y(e, n, e.I) && (n = n.data, ze(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1119
|
-
if (
|
|
1167
|
+
if (me)
|
|
1120
1168
|
n = Ge(e, "string.split(separator, limit)", {
|
|
1121
1169
|
string: s,
|
|
1122
1170
|
separator: n,
|
|
1123
1171
|
limit: i
|
|
1124
|
-
}, n, a), n !==
|
|
1172
|
+
}, n, a), n !== Ne && a(pe(e, n));
|
|
1125
1173
|
else {
|
|
1126
|
-
var
|
|
1127
|
-
|
|
1128
|
-
clearTimeout(d), a(
|
|
1129
|
-
},
|
|
1174
|
+
var u = e.ha(), d = Xe(e, n, u, a);
|
|
1175
|
+
u.onmessage = function(p) {
|
|
1176
|
+
clearTimeout(d), a(pe(e, p.data));
|
|
1177
|
+
}, u.postMessage(["split", s, n, i]);
|
|
1130
1178
|
}
|
|
1131
1179
|
return;
|
|
1132
1180
|
}
|
|
1133
|
-
n = s.split(n, i), a(
|
|
1181
|
+
n = s.split(n, i), a(pe(e, n));
|
|
1134
1182
|
}, Je(e, e.J, "split", r), r = function(n, i) {
|
|
1135
1183
|
var a = String(this);
|
|
1136
1184
|
if (n = Y(e, n, e.I) ? n.data : new RegExp(n), ze(e, n, i), e.REGEXP_MODE === 2)
|
|
1137
|
-
if (
|
|
1185
|
+
if (me)
|
|
1138
1186
|
n = Ge(e, "string.match(regexp)", {
|
|
1139
1187
|
string: a,
|
|
1140
1188
|
regexp: n
|
|
1141
|
-
}, n, i), n !==
|
|
1189
|
+
}, n, i), n !== Ne && i(n && pe(e, n));
|
|
1142
1190
|
else {
|
|
1143
|
-
var s = e.ha(),
|
|
1191
|
+
var s = e.ha(), u = Xe(e, n, s, i);
|
|
1144
1192
|
s.onmessage = function(d) {
|
|
1145
|
-
clearTimeout(
|
|
1193
|
+
clearTimeout(u), i(d.data && pe(e, d.data));
|
|
1146
1194
|
}, s.postMessage(["match", a, n]);
|
|
1147
1195
|
}
|
|
1148
1196
|
else
|
|
1149
|
-
n = a.match(n), i(n &&
|
|
1197
|
+
n = a.match(n), i(n && pe(e, n));
|
|
1150
1198
|
}, Je(e, e.J, "match", r), r = function(n, i) {
|
|
1151
1199
|
var a = String(this);
|
|
1152
1200
|
if (Y(e, n, e.I) ? n = n.data : n = new RegExp(n), ze(e, n, i), e.REGEXP_MODE === 2)
|
|
1153
|
-
if (
|
|
1201
|
+
if (me)
|
|
1154
1202
|
n = Ge(e, "string.search(regexp)", {
|
|
1155
1203
|
string: a,
|
|
1156
1204
|
regexp: n
|
|
1157
|
-
}, n, i), n !==
|
|
1205
|
+
}, n, i), n !== Ne && i(n);
|
|
1158
1206
|
else {
|
|
1159
|
-
var s = e.ha(),
|
|
1207
|
+
var s = e.ha(), u = Xe(e, n, s, i);
|
|
1160
1208
|
s.onmessage = function(d) {
|
|
1161
|
-
clearTimeout(
|
|
1209
|
+
clearTimeout(u), i(d.data);
|
|
1162
1210
|
}, s.postMessage(["search", a, n]);
|
|
1163
1211
|
}
|
|
1164
1212
|
else
|
|
@@ -1166,167 +1214,167 @@ function ti(e, t) {
|
|
|
1166
1214
|
}, Je(e, e.J, "search", r), r = function(n, i, a) {
|
|
1167
1215
|
var s = String(this);
|
|
1168
1216
|
if (i = String(i), Y(e, n, e.I) && (n = n.data, ze(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1169
|
-
if (
|
|
1217
|
+
if (me)
|
|
1170
1218
|
n = Ge(e, "string.replace(substr, newSubstr)", {
|
|
1171
1219
|
string: s,
|
|
1172
1220
|
substr: n,
|
|
1173
1221
|
newSubstr: i
|
|
1174
|
-
}, n, a), n !==
|
|
1222
|
+
}, n, a), n !== Ne && a(n);
|
|
1175
1223
|
else {
|
|
1176
|
-
var
|
|
1177
|
-
|
|
1224
|
+
var u = e.ha(), d = Xe(e, n, u, a);
|
|
1225
|
+
u.onmessage = function(p) {
|
|
1178
1226
|
clearTimeout(d), a(p.data);
|
|
1179
|
-
},
|
|
1227
|
+
}, u.postMessage(["replace", s, n, i]);
|
|
1180
1228
|
}
|
|
1181
1229
|
return;
|
|
1182
1230
|
}
|
|
1183
1231
|
a(s.replace(n, i));
|
|
1184
1232
|
}, Je(e, e.J, "replace", r), 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;", "};", "})();", "");
|
|
1185
1233
|
}
|
|
1186
|
-
function
|
|
1234
|
+
function si(e, t) {
|
|
1187
1235
|
e.mb = e.i(function(r) {
|
|
1188
|
-
return r =
|
|
1189
|
-
}, !0), e.g(t, "Boolean", e.mb,
|
|
1236
|
+
return r = be.Boolean(r), ye(e) ? (this.data = r, this) : r;
|
|
1237
|
+
}, !0), e.g(t, "Boolean", e.mb, w);
|
|
1190
1238
|
}
|
|
1191
|
-
function
|
|
1239
|
+
function li(e, t) {
|
|
1192
1240
|
var r = function(n) {
|
|
1193
|
-
return n = arguments.length ?
|
|
1241
|
+
return n = arguments.length ? be.Number(n) : 0, ye(e) ? (this.data = n, this) : n;
|
|
1194
1242
|
};
|
|
1195
|
-
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa,
|
|
1243
|
+
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa, w), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], r = 0; r < t.length; r++)
|
|
1196
1244
|
e.g(e.aa, t[r], Number[t[r]], Ke);
|
|
1197
1245
|
r = function(n) {
|
|
1198
1246
|
try {
|
|
1199
1247
|
return Number(this).toExponential(n);
|
|
1200
1248
|
} catch (i) {
|
|
1201
|
-
|
|
1249
|
+
E(e, e.D, i.message);
|
|
1202
1250
|
}
|
|
1203
1251
|
}, J(e, e.aa, "toExponential", r), r = function(n) {
|
|
1204
1252
|
try {
|
|
1205
1253
|
return Number(this).toFixed(n);
|
|
1206
1254
|
} catch (i) {
|
|
1207
|
-
|
|
1255
|
+
E(e, e.D, i.message);
|
|
1208
1256
|
}
|
|
1209
1257
|
}, J(e, e.aa, "toFixed", r), r = function(n) {
|
|
1210
1258
|
try {
|
|
1211
1259
|
return Number(this).toPrecision(n);
|
|
1212
1260
|
} catch (i) {
|
|
1213
|
-
|
|
1261
|
+
E(e, e.D, i.message);
|
|
1214
1262
|
}
|
|
1215
1263
|
}, J(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1216
1264
|
try {
|
|
1217
1265
|
return Number(this).toString(n);
|
|
1218
1266
|
} catch (i) {
|
|
1219
|
-
|
|
1267
|
+
E(e, e.D, i.message);
|
|
1220
1268
|
}
|
|
1221
1269
|
}, J(e, e.aa, "toString", r), r = function(n, i) {
|
|
1222
1270
|
n = n ? e.R(n) : void 0, i = i ? e.R(i) : void 0;
|
|
1223
1271
|
try {
|
|
1224
1272
|
return Number(this).toLocaleString(n, i);
|
|
1225
1273
|
} catch (a) {
|
|
1226
|
-
|
|
1274
|
+
E(e, e.D, "toLocaleString: " + a.message);
|
|
1227
1275
|
}
|
|
1228
1276
|
}, J(e, e.aa, "toLocaleString", r);
|
|
1229
1277
|
}
|
|
1230
|
-
function
|
|
1278
|
+
function ci(e, t) {
|
|
1231
1279
|
var r = function(i, a) {
|
|
1232
|
-
if (!
|
|
1233
|
-
return
|
|
1280
|
+
if (!ye(e))
|
|
1281
|
+
return be.Date();
|
|
1234
1282
|
var s = [null].concat(Array.from(arguments));
|
|
1235
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1283
|
+
return this.data = new (Function.prototype.bind.apply(be.Date, s))(), this;
|
|
1236
1284
|
};
|
|
1237
|
-
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$,
|
|
1285
|
+
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, w), e.g(e.$, "now", e.i(Date.now, !1), w), e.g(e.$, "parse", e.i(Date.parse, !1), w), e.g(e.$, "UTC", e.i(Date.UTC, !1), w), 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(" ");
|
|
1238
1286
|
for (var n = 0; n < t.length; n++)
|
|
1239
1287
|
r = function(i) {
|
|
1240
1288
|
return function(a) {
|
|
1241
1289
|
var s = this.data;
|
|
1242
|
-
s instanceof Date ||
|
|
1243
|
-
for (var
|
|
1244
|
-
|
|
1245
|
-
return s[i].apply(s,
|
|
1290
|
+
s instanceof Date || E(e, e.j, i + " not called on a Date");
|
|
1291
|
+
for (var u = [], d = 0; d < arguments.length; d++)
|
|
1292
|
+
u[d] = e.R(arguments[d]);
|
|
1293
|
+
return s[i].apply(s, u);
|
|
1246
1294
|
};
|
|
1247
1295
|
}(t[n]), J(e, e.$, t[n], r);
|
|
1248
1296
|
}
|
|
1249
|
-
function
|
|
1297
|
+
function ui(e, t) {
|
|
1250
1298
|
var r = function(n, i) {
|
|
1251
|
-
if (
|
|
1299
|
+
if (ye(e))
|
|
1252
1300
|
var a = this;
|
|
1253
1301
|
else {
|
|
1254
1302
|
if (i === void 0 && Y(e, n, e.I))
|
|
1255
1303
|
return n;
|
|
1256
1304
|
a = e.s(e.Ma);
|
|
1257
1305
|
}
|
|
1258
|
-
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1306
|
+
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) || E(e, e.T, "Invalid regexp flag: " + i);
|
|
1259
1307
|
try {
|
|
1260
|
-
var s = new
|
|
1261
|
-
} catch (
|
|
1262
|
-
|
|
1308
|
+
var s = new be.RegExp(n, i);
|
|
1309
|
+
} catch (u) {
|
|
1310
|
+
E(e, e.T, u.message);
|
|
1263
1311
|
}
|
|
1264
|
-
return
|
|
1312
|
+
return en(e, a, s), a;
|
|
1265
1313
|
};
|
|
1266
|
-
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I,
|
|
1314
|
+
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, w), e.g(e.I.h.prototype, "global", void 0, re), e.g(e.I.h.prototype, "ignoreCase", void 0, re), e.g(e.I.h.prototype, "multiline", void 0, re), e.g(e.I.h.prototype, "source", "(?:)", re), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, i) {
|
|
1267
1315
|
function a(y) {
|
|
1268
1316
|
if (y) {
|
|
1269
|
-
var x =
|
|
1317
|
+
var x = pe(e, y);
|
|
1270
1318
|
return e.g(x, "index", y.index), e.g(x, "input", y.input), x;
|
|
1271
1319
|
}
|
|
1272
1320
|
return null;
|
|
1273
1321
|
}
|
|
1274
1322
|
var s = this.data;
|
|
1275
1323
|
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")), ze(e, s, i), e.REGEXP_MODE === 2)
|
|
1276
|
-
if (
|
|
1324
|
+
if (me)
|
|
1277
1325
|
n = Ge(e, "regexp.exec(string)", {
|
|
1278
1326
|
string: n,
|
|
1279
1327
|
regexp: s
|
|
1280
|
-
}, s, i), n !==
|
|
1328
|
+
}, s, i), n !== Ne && (e.g(this, "lastIndex", s.lastIndex), i(a(n)));
|
|
1281
1329
|
else {
|
|
1282
|
-
var
|
|
1283
|
-
|
|
1330
|
+
var u = e.ha(), d = Xe(e, s, u, i), p = this;
|
|
1331
|
+
u.onmessage = function(y) {
|
|
1284
1332
|
clearTimeout(d), e.g(p, "lastIndex", y.data[1]), i(a(y.data[0]));
|
|
1285
|
-
},
|
|
1333
|
+
}, u.postMessage(["exec", s, s.lastIndex, n]);
|
|
1286
1334
|
}
|
|
1287
1335
|
else
|
|
1288
1336
|
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), i(a(n));
|
|
1289
1337
|
}, Je(e, e.I, "exec", r);
|
|
1290
1338
|
}
|
|
1291
|
-
function
|
|
1339
|
+
function fi(e, t) {
|
|
1292
1340
|
function r(n) {
|
|
1293
1341
|
var i = e.i(function(a) {
|
|
1294
|
-
var s =
|
|
1295
|
-
return
|
|
1342
|
+
var s = ye(e) ? this : e.Aa(i);
|
|
1343
|
+
return Gt(e, s, a), s;
|
|
1296
1344
|
}, !0);
|
|
1297
|
-
return e.g(i, "prototype", e.Aa(e.D),
|
|
1345
|
+
return e.g(i, "prototype", e.Aa(e.D), w), e.g(i.h.prototype, "name", n, w), e.g(t, n, i, w), i;
|
|
1298
1346
|
}
|
|
1299
1347
|
e.D = e.i(function(n) {
|
|
1300
|
-
var i =
|
|
1301
|
-
return
|
|
1302
|
-
}, !0), e.g(t, "Error", e.D,
|
|
1348
|
+
var i = ye(e) ? this : e.Aa(e.D);
|
|
1349
|
+
return Gt(e, i, n), i;
|
|
1350
|
+
}, !0), e.g(t, "Error", e.D, w), e.g(e.D.h.prototype, "message", "", w), e.g(e.D.h.prototype, "name", "Error", w), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1303
1351
|
}
|
|
1304
|
-
function
|
|
1352
|
+
function di(e, t) {
|
|
1305
1353
|
var r = e.s(e.M);
|
|
1306
|
-
e.g(t, "Math", r,
|
|
1354
|
+
e.g(t, "Math", r, w);
|
|
1307
1355
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1308
1356
|
for (t = 0; t < n.length; t++)
|
|
1309
|
-
e.g(r, n[t], Math[n[t]],
|
|
1357
|
+
e.g(r, n[t], Math[n[t]], re);
|
|
1310
1358
|
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1311
|
-
e.g(r, n[t], e.i(Math[n[t]], !1),
|
|
1359
|
+
e.g(r, n[t], e.i(Math[n[t]], !1), w);
|
|
1312
1360
|
}
|
|
1313
|
-
function
|
|
1361
|
+
function hi(e, t) {
|
|
1314
1362
|
var r = e.s(e.M);
|
|
1315
|
-
e.g(t, "JSON", r,
|
|
1363
|
+
e.g(t, "JSON", r, w), t = function(n) {
|
|
1316
1364
|
try {
|
|
1317
1365
|
var i = JSON.parse(String(n));
|
|
1318
1366
|
} catch (a) {
|
|
1319
|
-
|
|
1367
|
+
E(e, e.T, a.message);
|
|
1320
1368
|
}
|
|
1321
1369
|
return e.Ia(i);
|
|
1322
1370
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1323
|
-
i && i.H === "Function" ?
|
|
1324
|
-
return typeof
|
|
1371
|
+
i && i.H === "Function" ? E(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = yr(e, i), i = i.filter(function(u) {
|
|
1372
|
+
return typeof u == "string" || typeof u == "number";
|
|
1325
1373
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1326
1374
|
try {
|
|
1327
1375
|
var s = JSON.stringify(n, i, a);
|
|
1328
|
-
} catch (
|
|
1329
|
-
|
|
1376
|
+
} catch (u) {
|
|
1377
|
+
E(e, e.j, u.message);
|
|
1330
1378
|
}
|
|
1331
1379
|
return s;
|
|
1332
1380
|
}, e.g(r, "stringify", e.i(t, !1));
|
|
@@ -1336,18 +1384,18 @@ function Y(e, t, r) {
|
|
|
1336
1384
|
return !1;
|
|
1337
1385
|
if (r = r.h.prototype, t === r)
|
|
1338
1386
|
return !0;
|
|
1339
|
-
for (t =
|
|
1387
|
+
for (t = ge(e, t); t; ) {
|
|
1340
1388
|
if (t === r)
|
|
1341
1389
|
return !0;
|
|
1342
1390
|
t = t.xa;
|
|
1343
1391
|
}
|
|
1344
1392
|
return !1;
|
|
1345
1393
|
}
|
|
1346
|
-
function
|
|
1347
|
-
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex,
|
|
1394
|
+
function en(e, t, r) {
|
|
1395
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, w), e.g(t, "source", r.source, re), e.g(t, "global", r.global, re), e.g(t, "ignoreCase", r.ignoreCase, re), e.g(t, "multiline", r.multiline, re);
|
|
1348
1396
|
}
|
|
1349
|
-
function
|
|
1350
|
-
r && e.g(t, "message", String(r),
|
|
1397
|
+
function Gt(e, t, r) {
|
|
1398
|
+
r && e.g(t, "message", String(r), w), r = [];
|
|
1351
1399
|
for (var n = e.o.length - 1; 0 <= n; n--) {
|
|
1352
1400
|
var i = e.o[n], a = i.node;
|
|
1353
1401
|
a.type === "CallExpression" && (i = i.U) && r.length && (r[r.length - 1].Ob = e.G(i, "name")), !a.X || r.length && a.type !== "CallExpression" || r.push({
|
|
@@ -1361,11 +1409,11 @@ function Kt(e, t, r) {
|
|
|
1361
1409
|
`) : a + (" at " + s + `
|
|
1362
1410
|
`);
|
|
1363
1411
|
}
|
|
1364
|
-
e.g(t, "stack", a.trim(),
|
|
1412
|
+
e.g(t, "stack", a.trim(), w);
|
|
1365
1413
|
}
|
|
1366
|
-
|
|
1414
|
+
$.ha = function() {
|
|
1367
1415
|
var e = this.ha.Mb;
|
|
1368
|
-
return e || (e = new Blob([
|
|
1416
|
+
return e || (e = new Blob([ti.join(`
|
|
1369
1417
|
`)], {
|
|
1370
1418
|
type: "application/javascript"
|
|
1371
1419
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1375,44 +1423,44 @@ function Ge(e, t, r, n, i) {
|
|
|
1375
1423
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1376
1424
|
};
|
|
1377
1425
|
try {
|
|
1378
|
-
return
|
|
1426
|
+
return me.runInNewContext(t, r, a);
|
|
1379
1427
|
} catch {
|
|
1380
|
-
i(null),
|
|
1428
|
+
i(null), E(e, e.D, "RegExp Timeout: " + n);
|
|
1381
1429
|
}
|
|
1382
|
-
return
|
|
1430
|
+
return Ne;
|
|
1383
1431
|
}
|
|
1384
1432
|
function ze(e, t, r) {
|
|
1385
1433
|
if (e.REGEXP_MODE === 0)
|
|
1386
1434
|
var n = !1;
|
|
1387
1435
|
else if (e.REGEXP_MODE === 1)
|
|
1388
1436
|
n = !0;
|
|
1389
|
-
else if (
|
|
1437
|
+
else if (me)
|
|
1390
1438
|
n = !0;
|
|
1391
1439
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1392
1440
|
n = !0;
|
|
1393
1441
|
else if (typeof require == "function") {
|
|
1394
1442
|
try {
|
|
1395
|
-
|
|
1443
|
+
me = require("vm");
|
|
1396
1444
|
} catch {
|
|
1397
1445
|
}
|
|
1398
|
-
n = !!
|
|
1446
|
+
n = !!me;
|
|
1399
1447
|
} else
|
|
1400
1448
|
n = !1;
|
|
1401
|
-
n || (r(null),
|
|
1449
|
+
n || (r(null), E(e, e.D, "Regular expressions not supported: " + t));
|
|
1402
1450
|
}
|
|
1403
1451
|
function Xe(e, t, r, n) {
|
|
1404
1452
|
return setTimeout(function() {
|
|
1405
1453
|
r.terminate(), n(null);
|
|
1406
1454
|
try {
|
|
1407
|
-
|
|
1455
|
+
E(e, e.D, "RegExp Timeout: " + t);
|
|
1408
1456
|
} catch {
|
|
1409
1457
|
}
|
|
1410
1458
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1411
1459
|
}
|
|
1412
|
-
|
|
1460
|
+
$.Aa = function(e) {
|
|
1413
1461
|
return this.s(e && e.h.prototype);
|
|
1414
1462
|
};
|
|
1415
|
-
|
|
1463
|
+
$.s = function(e) {
|
|
1416
1464
|
if (typeof e != "object")
|
|
1417
1465
|
throw Error("Non object prototype");
|
|
1418
1466
|
return e = new F(e), Y(this, e, this.D) && (e.H = "Error"), e;
|
|
@@ -1425,29 +1473,29 @@ function Fe(e) {
|
|
|
1425
1473
|
writable: !0
|
|
1426
1474
|
}), t.H = "Array", t;
|
|
1427
1475
|
}
|
|
1428
|
-
function
|
|
1476
|
+
function tn(e, t, r) {
|
|
1429
1477
|
var n = e.s(e.Z);
|
|
1430
|
-
return r ? (r = e.s(e.M), e.g(n, "prototype", r,
|
|
1478
|
+
return r ? (r = e.s(e.M), e.g(n, "prototype", r, w), e.g(r, "constructor", n, w)) : n.Ab = !0, e.g(n, "length", t, re), n.H = "Function", n;
|
|
1431
1479
|
}
|
|
1432
|
-
function
|
|
1433
|
-
var i =
|
|
1434
|
-
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "",
|
|
1480
|
+
function nn(e, t, r, n) {
|
|
1481
|
+
var i = tn(e, t.oa.length, !0);
|
|
1482
|
+
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", re), i;
|
|
1435
1483
|
}
|
|
1436
|
-
|
|
1437
|
-
return t =
|
|
1484
|
+
$.i = function(e, t) {
|
|
1485
|
+
return t = tn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1438
1486
|
};
|
|
1439
|
-
|
|
1440
|
-
var t =
|
|
1441
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1487
|
+
$.ub = function(e) {
|
|
1488
|
+
var t = tn(this, e.length, !0);
|
|
1489
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1442
1490
|
};
|
|
1443
|
-
|
|
1491
|
+
$.Ia = function(e) {
|
|
1444
1492
|
if (e instanceof F)
|
|
1445
1493
|
throw Error("Object is already pseudo");
|
|
1446
1494
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1447
1495
|
return e;
|
|
1448
1496
|
if (e instanceof RegExp) {
|
|
1449
1497
|
var t = this.s(this.Ma);
|
|
1450
|
-
return
|
|
1498
|
+
return en(this, t, e), t;
|
|
1451
1499
|
}
|
|
1452
1500
|
if (e instanceof Date)
|
|
1453
1501
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1471,7 +1519,7 @@ L.Ia = function(e) {
|
|
|
1471
1519
|
this.g(t, n, this.Ia(e[n]));
|
|
1472
1520
|
return t;
|
|
1473
1521
|
};
|
|
1474
|
-
|
|
1522
|
+
$.R = function(e, t) {
|
|
1475
1523
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1476
1524
|
return e;
|
|
1477
1525
|
if (!(e instanceof F))
|
|
@@ -1501,18 +1549,18 @@ L.R = function(e, t) {
|
|
|
1501
1549
|
});
|
|
1502
1550
|
return t.hb.pop(), t.Sa.pop(), r;
|
|
1503
1551
|
};
|
|
1504
|
-
function
|
|
1552
|
+
function pe(e, t) {
|
|
1505
1553
|
for (var r = Fe(e), n = Object.getOwnPropertyNames(t), i = 0; i < n.length; i++)
|
|
1506
1554
|
e.g(r, n[i], t[n[i]]);
|
|
1507
1555
|
return r;
|
|
1508
1556
|
}
|
|
1509
|
-
function
|
|
1557
|
+
function yr(e, t) {
|
|
1510
1558
|
var r = [], n;
|
|
1511
1559
|
for (n in t.h)
|
|
1512
1560
|
r[n] = e.G(t, n);
|
|
1513
|
-
return r.length =
|
|
1561
|
+
return r.length = Qt(e.G(t, "length")) || 0, r;
|
|
1514
1562
|
}
|
|
1515
|
-
function
|
|
1563
|
+
function ge(e, t) {
|
|
1516
1564
|
switch (typeof t) {
|
|
1517
1565
|
case "number":
|
|
1518
1566
|
return e.aa.h.prototype;
|
|
@@ -1523,10 +1571,10 @@ function ye(e, t) {
|
|
|
1523
1571
|
}
|
|
1524
1572
|
return t ? t.xa : null;
|
|
1525
1573
|
}
|
|
1526
|
-
|
|
1574
|
+
$.G = function(e, t) {
|
|
1527
1575
|
if (this.P)
|
|
1528
1576
|
throw Error("Getter not supported in that context");
|
|
1529
|
-
if (t = String(t), e != null ||
|
|
1577
|
+
if (t = String(t), e != null || E(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof F))
|
|
1530
1578
|
throw TypeError("Expecting native value or pseudo object");
|
|
1531
1579
|
if (t === "length") {
|
|
1532
1580
|
if (Y(this, e, this.J))
|
|
@@ -1539,7 +1587,7 @@ L.G = function(e, t) {
|
|
|
1539
1587
|
do
|
|
1540
1588
|
if (e.h && t in e.h)
|
|
1541
1589
|
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1542
|
-
while (e =
|
|
1590
|
+
while (e = ge(this, e));
|
|
1543
1591
|
};
|
|
1544
1592
|
function mt(e, t, r) {
|
|
1545
1593
|
if (!(t instanceof F))
|
|
@@ -1554,21 +1602,21 @@ function mt(e, t, r) {
|
|
|
1554
1602
|
do
|
|
1555
1603
|
if (t.h && r in t.h)
|
|
1556
1604
|
return !0;
|
|
1557
|
-
while (t =
|
|
1605
|
+
while (t = ge(e, t));
|
|
1558
1606
|
return !1;
|
|
1559
1607
|
}
|
|
1560
|
-
|
|
1608
|
+
$.g = function(e, t, r, n) {
|
|
1561
1609
|
if (this.Ka)
|
|
1562
1610
|
throw Error("Setter not supported in that context");
|
|
1563
|
-
if (t = String(t), e != null ||
|
|
1611
|
+
if (t = String(t), e != null || E(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof F))
|
|
1564
1612
|
throw TypeError("Expecting native value or pseudo object");
|
|
1565
|
-
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) &&
|
|
1566
|
-
var i = !this.o ||
|
|
1613
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && E(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1614
|
+
var i = !this.o || rn(this).S;
|
|
1567
1615
|
if (e instanceof F) {
|
|
1568
1616
|
if (Y(this, e, this.J)) {
|
|
1569
1617
|
var a = qe(t);
|
|
1570
1618
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1571
|
-
i &&
|
|
1619
|
+
i && E(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1572
1620
|
return;
|
|
1573
1621
|
}
|
|
1574
1622
|
}
|
|
@@ -1579,7 +1627,7 @@ L.g = function(e, t, r, n) {
|
|
|
1579
1627
|
return;
|
|
1580
1628
|
r = n.value;
|
|
1581
1629
|
}
|
|
1582
|
-
if (r =
|
|
1630
|
+
if (r = Qt(r), isNaN(r) && E(this, this.ob, "Invalid array length"), r < a)
|
|
1583
1631
|
for (s in e.h) {
|
|
1584
1632
|
var s = qe(s);
|
|
1585
1633
|
!isNaN(s) && r <= s && delete e.h[s];
|
|
@@ -1592,51 +1640,51 @@ L.g = function(e, t, r, n) {
|
|
|
1592
1640
|
try {
|
|
1593
1641
|
Object.defineProperty(e.h, t, i);
|
|
1594
1642
|
} catch {
|
|
1595
|
-
|
|
1643
|
+
E(this, this.j, "Cannot redefine property: " + t);
|
|
1596
1644
|
}
|
|
1597
1645
|
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1598
1646
|
} else {
|
|
1599
1647
|
if (r === Ze)
|
|
1600
1648
|
throw ReferenceError("Value not specified");
|
|
1601
1649
|
for (n = e; !(t in n.h); )
|
|
1602
|
-
if (n =
|
|
1650
|
+
if (n = ge(this, n), !n) {
|
|
1603
1651
|
n = e;
|
|
1604
1652
|
break;
|
|
1605
1653
|
}
|
|
1606
1654
|
if (n.Y && n.Y[t])
|
|
1607
1655
|
return this.Ka = !0, n.Y[t];
|
|
1608
1656
|
if (n.V && n.V[t])
|
|
1609
|
-
i &&
|
|
1657
|
+
i && E(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1610
1658
|
else
|
|
1611
1659
|
try {
|
|
1612
1660
|
e.h[t] = r;
|
|
1613
1661
|
} catch {
|
|
1614
|
-
i &&
|
|
1662
|
+
i && E(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1615
1663
|
}
|
|
1616
1664
|
}
|
|
1617
1665
|
else
|
|
1618
|
-
i &&
|
|
1666
|
+
i && E(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1619
1667
|
} else
|
|
1620
|
-
i &&
|
|
1668
|
+
i && E(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1621
1669
|
};
|
|
1622
|
-
|
|
1670
|
+
$.g.ac = function() {
|
|
1623
1671
|
throw Error("Placeholder getter");
|
|
1624
1672
|
};
|
|
1625
|
-
|
|
1673
|
+
$.g.bc = function() {
|
|
1626
1674
|
throw Error("Placeholder setter");
|
|
1627
1675
|
};
|
|
1628
1676
|
function J(e, t, r, n) {
|
|
1629
|
-
e.g(t.h.prototype, r, e.i(n, !1),
|
|
1677
|
+
e.g(t.h.prototype, r, e.i(n, !1), w);
|
|
1630
1678
|
}
|
|
1631
1679
|
function Je(e, t, r, n) {
|
|
1632
|
-
e.g(t.h.prototype, r, e.ub(n),
|
|
1680
|
+
e.g(t.h.prototype, r, e.ub(n), w);
|
|
1633
1681
|
}
|
|
1634
|
-
function
|
|
1682
|
+
function rn(e) {
|
|
1635
1683
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1636
1684
|
throw Error("No scope found");
|
|
1637
1685
|
return e;
|
|
1638
1686
|
}
|
|
1639
|
-
function
|
|
1687
|
+
function zt(e, t, r) {
|
|
1640
1688
|
var n = !1;
|
|
1641
1689
|
if (r && r.S)
|
|
1642
1690
|
n = !0;
|
|
@@ -1644,30 +1692,30 @@ function Gt(e, t, r) {
|
|
|
1644
1692
|
var i = t.body && t.body[0];
|
|
1645
1693
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (n = !0);
|
|
1646
1694
|
}
|
|
1647
|
-
return i = e.s(null), n = new
|
|
1695
|
+
return i = e.s(null), n = new br(r, n, i), r || ni(e, n.object), Qe(e, t, n), n;
|
|
1648
1696
|
}
|
|
1649
|
-
function
|
|
1697
|
+
function on(e, t, r) {
|
|
1650
1698
|
if (!t)
|
|
1651
1699
|
throw Error("parentScope required");
|
|
1652
|
-
return e = r || e.s(null), new
|
|
1700
|
+
return e = r || e.s(null), new br(t, t.S, e);
|
|
1653
1701
|
}
|
|
1654
|
-
function
|
|
1655
|
-
for (var r =
|
|
1702
|
+
function an(e, t) {
|
|
1703
|
+
for (var r = rn(e); r && r !== e.N; ) {
|
|
1656
1704
|
if (t in r.object.h)
|
|
1657
1705
|
return r.object.h[t];
|
|
1658
1706
|
r = r.Va;
|
|
1659
1707
|
}
|
|
1660
1708
|
if (r === e.N && mt(e, r.object, t))
|
|
1661
1709
|
return e.G(r.object, t);
|
|
1662
|
-
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" ||
|
|
1710
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || E(e, e.pb, t + " is not defined");
|
|
1663
1711
|
}
|
|
1664
|
-
function
|
|
1665
|
-
for (var n =
|
|
1712
|
+
function vr(e, t, r) {
|
|
1713
|
+
for (var n = rn(e), i = n.S; n && n !== e.N; ) {
|
|
1666
1714
|
if (t in n.object.h) {
|
|
1667
1715
|
try {
|
|
1668
1716
|
n.object.h[t] = r;
|
|
1669
1717
|
} catch {
|
|
1670
|
-
i &&
|
|
1718
|
+
i && E(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1671
1719
|
}
|
|
1672
1720
|
return;
|
|
1673
1721
|
}
|
|
@@ -1675,7 +1723,7 @@ function gr(e, t, r) {
|
|
|
1675
1723
|
}
|
|
1676
1724
|
if (n === e.N && (!i || mt(e, n.object, t)))
|
|
1677
1725
|
return e.g(n.object, t, r);
|
|
1678
|
-
|
|
1726
|
+
E(e, e.pb, t + " is not defined");
|
|
1679
1727
|
}
|
|
1680
1728
|
function Qe(e, t, r) {
|
|
1681
1729
|
if (t.jb)
|
|
@@ -1705,17 +1753,17 @@ function Qe(e, t, r) {
|
|
|
1705
1753
|
var a = t.constructor, s;
|
|
1706
1754
|
for (s in t)
|
|
1707
1755
|
if (s !== "loc") {
|
|
1708
|
-
var
|
|
1709
|
-
if (
|
|
1710
|
-
if (Array.isArray(
|
|
1711
|
-
for (i = 0; i <
|
|
1712
|
-
if (
|
|
1713
|
-
var d = Qe(e,
|
|
1756
|
+
var u = t[s];
|
|
1757
|
+
if (u && typeof u == "object") {
|
|
1758
|
+
if (Array.isArray(u)) {
|
|
1759
|
+
for (i = 0; i < u.length; i++)
|
|
1760
|
+
if (u[i] && u[i].constructor === a) {
|
|
1761
|
+
var d = Qe(e, u[i], r);
|
|
1714
1762
|
for (s in d)
|
|
1715
1763
|
n[s] = d[s];
|
|
1716
1764
|
}
|
|
1717
|
-
} else if (
|
|
1718
|
-
for (s in d = Qe(e,
|
|
1765
|
+
} else if (u.constructor === a)
|
|
1766
|
+
for (s in d = Qe(e, u, r), d)
|
|
1719
1767
|
n[s] = d[s];
|
|
1720
1768
|
}
|
|
1721
1769
|
}
|
|
@@ -1723,20 +1771,20 @@ function Qe(e, t, r) {
|
|
|
1723
1771
|
t.jb = n;
|
|
1724
1772
|
}
|
|
1725
1773
|
for (s in n)
|
|
1726
|
-
n[s] === !0 ? e.g(r.object, s, void 0, Yn) : e.g(r.object, s,
|
|
1774
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Yn) : e.g(r.object, s, nn(e, n[s], r), Yn);
|
|
1727
1775
|
return n;
|
|
1728
1776
|
}
|
|
1729
|
-
function
|
|
1777
|
+
function ye(e) {
|
|
1730
1778
|
return e.o[e.o.length - 1].isConstructor;
|
|
1731
1779
|
}
|
|
1732
|
-
function
|
|
1733
|
-
return t[0] === Ue ?
|
|
1780
|
+
function sn(e, t) {
|
|
1781
|
+
return t[0] === Ue ? an(e, t[1]) : e.G(t[0], t[1]);
|
|
1734
1782
|
}
|
|
1735
|
-
function
|
|
1736
|
-
return t[0] === Ue ?
|
|
1783
|
+
function ln(e, t, r) {
|
|
1784
|
+
return t[0] === Ue ? vr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1737
1785
|
}
|
|
1738
|
-
function
|
|
1739
|
-
throw e.N ? (r !== void 0 && t instanceof F && (t = e.Aa(t),
|
|
1786
|
+
function E(e, t, r) {
|
|
1787
|
+
throw e.N ? (r !== void 0 && t instanceof F && (t = e.Aa(t), Gt(e, t, r)), nt(e, 4, t), gr) : r === void 0 ? t : r;
|
|
1740
1788
|
}
|
|
1741
1789
|
function nt(e, t, r, n) {
|
|
1742
1790
|
if (t === 0)
|
|
@@ -1783,34 +1831,34 @@ function nt(e, t, r, n) {
|
|
|
1783
1831
|
URIError
|
|
1784
1832
|
}, n = String(e.G(r, "name")), i = e.G(r, "message").valueOf(), t = (t[n] || Error)(i), t.stack = String(e.G(r, "stack"))) : t = String(r), e.value = t, t;
|
|
1785
1833
|
}
|
|
1786
|
-
function
|
|
1834
|
+
function ne(e, t) {
|
|
1787
1835
|
switch (t.type) {
|
|
1788
1836
|
case "ArrayExpression":
|
|
1789
1837
|
return "[...]";
|
|
1790
1838
|
case "BinaryExpression":
|
|
1791
1839
|
case "LogicalExpression":
|
|
1792
|
-
return
|
|
1840
|
+
return ne(e, t.left) + " " + t.operator + " " + ne(e, t.right);
|
|
1793
1841
|
case "CallExpression":
|
|
1794
|
-
return
|
|
1842
|
+
return ne(e, t.callee) + "(...)";
|
|
1795
1843
|
case "ConditionalExpression":
|
|
1796
|
-
return
|
|
1844
|
+
return ne(e, t.test) + " ? " + ne(e, t.da) + " : " + ne(e, t.alternate);
|
|
1797
1845
|
case "Identifier":
|
|
1798
1846
|
return t.name;
|
|
1799
1847
|
case "Literal":
|
|
1800
1848
|
return t.raw;
|
|
1801
1849
|
case "MemberExpression":
|
|
1802
|
-
var r =
|
|
1803
|
-
return e =
|
|
1850
|
+
var r = ne(e, t.object);
|
|
1851
|
+
return e = ne(e, t.Wa), t.bb ? r + "[" + e + "]" : r + "." + e;
|
|
1804
1852
|
case "NewExpression":
|
|
1805
|
-
return "new " +
|
|
1853
|
+
return "new " + ne(e, t.callee) + "(...)";
|
|
1806
1854
|
case "ObjectExpression":
|
|
1807
1855
|
return "{...}";
|
|
1808
1856
|
case "ThisExpression":
|
|
1809
1857
|
return "this";
|
|
1810
1858
|
case "UnaryExpression":
|
|
1811
|
-
return t.operator + " " +
|
|
1859
|
+
return t.operator + " " + ne(e, t.K);
|
|
1812
1860
|
case "UpdateExpression":
|
|
1813
|
-
return r =
|
|
1861
|
+
return r = ne(e, t.K), t.prefix ? t.operator + r : r + t.operator;
|
|
1814
1862
|
}
|
|
1815
1863
|
return "???";
|
|
1816
1864
|
}
|
|
@@ -1819,19 +1867,19 @@ function Zn(e, t, r) {
|
|
|
1819
1867
|
r = Math.max(Number(i.shift() || 0), 0);
|
|
1820
1868
|
var s = e.ya();
|
|
1821
1869
|
if (a instanceof F && a.H === "Function") {
|
|
1822
|
-
var
|
|
1870
|
+
var u = a;
|
|
1823
1871
|
s.type = "CallExpression", n = n.scope;
|
|
1824
1872
|
} else {
|
|
1825
1873
|
try {
|
|
1826
1874
|
var d = Me(String(a), "taskCode" + e.ic++);
|
|
1827
1875
|
} catch (p) {
|
|
1828
|
-
|
|
1876
|
+
E(e, e.T, "Invalid code: " + p.message);
|
|
1829
1877
|
}
|
|
1830
1878
|
s.type = "EvalProgram_", s.body = d.body, n = n.node.arguments[0], pt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1831
1879
|
}
|
|
1832
|
-
return t = new
|
|
1880
|
+
return t = new pi(u, i, n, s, t ? r : -1), xr(e, t, r), t.Db;
|
|
1833
1881
|
}
|
|
1834
|
-
function
|
|
1882
|
+
function xr(e, t, r) {
|
|
1835
1883
|
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, i) {
|
|
1836
1884
|
return n.time - i.time;
|
|
1837
1885
|
});
|
|
@@ -1848,41 +1896,41 @@ function rt(e, t, r) {
|
|
|
1848
1896
|
throw Error("Unexpected call to createGetter");
|
|
1849
1897
|
e.P = !1, r = Array.isArray(r) ? r[0] : r;
|
|
1850
1898
|
var n = e.ya();
|
|
1851
|
-
return n.type = "CallExpression", e = new
|
|
1899
|
+
return n.type = "CallExpression", e = new k(n, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1852
1900
|
}
|
|
1853
|
-
function
|
|
1901
|
+
function cn(e, t, r, n) {
|
|
1854
1902
|
if (!e.Ka)
|
|
1855
1903
|
throw Error("Unexpected call to createSetter");
|
|
1856
1904
|
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
1857
1905
|
var i = e.ya();
|
|
1858
|
-
return i.type = "CallExpression", e = new
|
|
1906
|
+
return i.type = "CallExpression", e = new k(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1859
1907
|
}
|
|
1860
|
-
function
|
|
1861
|
-
return t == null ? e.Na : t instanceof F ? t : (e = e.s(
|
|
1908
|
+
function $t(e, t) {
|
|
1909
|
+
return t == null ? e.Na : t instanceof F ? t : (e = e.s(ge(e, t)), e.data = t, e);
|
|
1862
1910
|
}
|
|
1863
|
-
|
|
1911
|
+
$.Xb = function() {
|
|
1864
1912
|
return this.N;
|
|
1865
1913
|
};
|
|
1866
|
-
|
|
1914
|
+
$.Yb = function() {
|
|
1867
1915
|
return this.o;
|
|
1868
1916
|
};
|
|
1869
|
-
|
|
1917
|
+
$.ec = function(e) {
|
|
1870
1918
|
this.o = e;
|
|
1871
1919
|
};
|
|
1872
|
-
function
|
|
1920
|
+
function k(e, t) {
|
|
1873
1921
|
this.node = e, this.scope = t;
|
|
1874
1922
|
}
|
|
1875
|
-
function
|
|
1923
|
+
function br(e, t, r) {
|
|
1876
1924
|
this.Va = e, this.S = t, this.object = r;
|
|
1877
1925
|
}
|
|
1878
1926
|
function F(e) {
|
|
1879
1927
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1880
1928
|
}
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1929
|
+
$ = F.prototype;
|
|
1930
|
+
$.xa = null;
|
|
1931
|
+
$.H = "Object";
|
|
1932
|
+
$.data = null;
|
|
1933
|
+
$.toString = function() {
|
|
1886
1934
|
if (!Ye)
|
|
1887
1935
|
return "[object Interpreter.Object]";
|
|
1888
1936
|
if (!(this instanceof F))
|
|
@@ -1930,28 +1978,28 @@ L.toString = function() {
|
|
|
1930
1978
|
}
|
|
1931
1979
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1932
1980
|
};
|
|
1933
|
-
|
|
1981
|
+
$.valueOf = function() {
|
|
1934
1982
|
return !Ye || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1935
1983
|
};
|
|
1936
|
-
function
|
|
1937
|
-
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++
|
|
1984
|
+
function pi(e, t, r, n, i) {
|
|
1985
|
+
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++mi, this.time = 0;
|
|
1938
1986
|
}
|
|
1939
|
-
var
|
|
1940
|
-
|
|
1987
|
+
var mi = 0;
|
|
1988
|
+
m.prototype.stepArrayExpression = function(e, t, r) {
|
|
1941
1989
|
r = r.elements;
|
|
1942
1990
|
var n = t.A || 0;
|
|
1943
1991
|
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = Fe(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1944
1992
|
if (r[n])
|
|
1945
|
-
return t.A = n, new
|
|
1993
|
+
return t.A = n, new k(r[n], t.scope);
|
|
1946
1994
|
n++;
|
|
1947
1995
|
}
|
|
1948
1996
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1949
1997
|
};
|
|
1950
|
-
|
|
1998
|
+
m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
1951
1999
|
if (!t.ja)
|
|
1952
|
-
return t.ja = !0, t = new
|
|
2000
|
+
return t.ja = !0, t = new k(r.left, t.scope), t.sa = !0, t;
|
|
1953
2001
|
if (!t.Da)
|
|
1954
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e =
|
|
2002
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = sn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, rt(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new k(r.right, t.scope));
|
|
1955
2003
|
if (t.ta)
|
|
1956
2004
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1957
2005
|
else {
|
|
@@ -1996,16 +2044,16 @@ g.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
1996
2044
|
default:
|
|
1997
2045
|
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
1998
2046
|
}
|
|
1999
|
-
if (r =
|
|
2000
|
-
return t.ta = !0, t.ib = n,
|
|
2047
|
+
if (r = ln(this, t.Fa, n))
|
|
2048
|
+
return t.ta = !0, t.ib = n, cn(this, r, t.Fa, n);
|
|
2001
2049
|
e.pop(), e[e.length - 1].value = n;
|
|
2002
2050
|
}
|
|
2003
2051
|
};
|
|
2004
|
-
|
|
2052
|
+
m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
2005
2053
|
if (!t.ja)
|
|
2006
|
-
return t.ja = !0, new
|
|
2054
|
+
return t.ja = !0, new k(r.left, t.scope);
|
|
2007
2055
|
if (!t.Da)
|
|
2008
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2056
|
+
return t.Da = !0, t.ma = t.value, new k(r.right, t.scope);
|
|
2009
2057
|
e.pop();
|
|
2010
2058
|
var n = t.ma;
|
|
2011
2059
|
switch (t = t.value, r.operator) {
|
|
@@ -2067,37 +2115,37 @@ g.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2067
2115
|
r = n >>> t;
|
|
2068
2116
|
break;
|
|
2069
2117
|
case "in":
|
|
2070
|
-
t instanceof F ||
|
|
2118
|
+
t instanceof F || E(this, this.j, "'in' expects an object, not '" + t + "'"), r = mt(this, t, n);
|
|
2071
2119
|
break;
|
|
2072
2120
|
case "instanceof":
|
|
2073
|
-
Y(this, t, this.O) ||
|
|
2121
|
+
Y(this, t, this.O) || E(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof F ? Y(this, n, t) : !1;
|
|
2074
2122
|
break;
|
|
2075
2123
|
default:
|
|
2076
2124
|
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
2077
2125
|
}
|
|
2078
2126
|
e[e.length - 1].value = r;
|
|
2079
2127
|
};
|
|
2080
|
-
|
|
2128
|
+
m.prototype.stepBlockStatement = function(e, t, r) {
|
|
2081
2129
|
var n = t.A || 0;
|
|
2082
2130
|
if (r = r.body[n])
|
|
2083
|
-
return t.A = n + 1, new
|
|
2131
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2084
2132
|
e.pop();
|
|
2085
2133
|
};
|
|
2086
|
-
|
|
2134
|
+
m.prototype.stepBreakStatement = function(e, t, r) {
|
|
2087
2135
|
nt(this, 1, void 0, r.label && r.label.name);
|
|
2088
2136
|
};
|
|
2089
|
-
|
|
2090
|
-
|
|
2137
|
+
m.prototype.Hb = 0;
|
|
2138
|
+
m.prototype.stepCallExpression = function(e, t, r) {
|
|
2091
2139
|
if (!t.ia) {
|
|
2092
2140
|
t.ia = 1;
|
|
2093
|
-
var n = new
|
|
2141
|
+
var n = new k(r.callee, t.scope);
|
|
2094
2142
|
return n.sa = !0, n;
|
|
2095
2143
|
}
|
|
2096
2144
|
if (t.ia === 1) {
|
|
2097
2145
|
t.ia = 2;
|
|
2098
2146
|
var i = t.value;
|
|
2099
2147
|
if (Array.isArray(i)) {
|
|
2100
|
-
if (t.U =
|
|
2148
|
+
if (t.U = sn(this, i), i[0] === Ue ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2101
2149
|
return t.ia = 1, rt(this, i, t.value);
|
|
2102
2150
|
} else
|
|
2103
2151
|
t.U = i;
|
|
@@ -2105,9 +2153,9 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2105
2153
|
}
|
|
2106
2154
|
if (i = t.U, !t.Qa) {
|
|
2107
2155
|
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2108
|
-
return new
|
|
2156
|
+
return new k(r.arguments[t.A++], t.scope);
|
|
2109
2157
|
if (r.type === "NewExpression") {
|
|
2110
|
-
if (i instanceof F && !i.Ab ||
|
|
2158
|
+
if (i instanceof F && !i.Ab || E(this, this.j, ne(this, r.callee) + " is not a constructor"), i === this.qa)
|
|
2111
2159
|
t.B = Fe(this);
|
|
2112
2160
|
else {
|
|
2113
2161
|
var a = i.h.prototype;
|
|
@@ -2120,12 +2168,12 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2120
2168
|
if (t.eb)
|
|
2121
2169
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2122
2170
|
else {
|
|
2123
|
-
if (t.eb = !0, i instanceof F ||
|
|
2124
|
-
for (r =
|
|
2171
|
+
if (t.eb = !0, i instanceof F || E(this, this.j, ne(this, r.callee) + " is not a function"), e = i.node) {
|
|
2172
|
+
for (r = zt(this, e.body, i.Va), n = Fe(this), i = 0; i < t.F.length; i++)
|
|
2125
2173
|
this.g(n, i, t.F[i]);
|
|
2126
2174
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2127
2175
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2128
|
-
return r.S || (t.B =
|
|
2176
|
+
return r.S || (t.B = $t(this, t.B)), this.g(r.object, "this", t.B, Zt), t.value = void 0, new k(e.body, r);
|
|
2129
2177
|
}
|
|
2130
2178
|
if (i.eval)
|
|
2131
2179
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2133,68 +2181,68 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2133
2181
|
else {
|
|
2134
2182
|
try {
|
|
2135
2183
|
n = Me(String(i), "eval" + this.Hb++);
|
|
2136
|
-
} catch (
|
|
2137
|
-
|
|
2184
|
+
} catch (u) {
|
|
2185
|
+
E(this, this.T, "Invalid code: " + u.message);
|
|
2138
2186
|
}
|
|
2139
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, pt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r =
|
|
2187
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, pt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = zt(this, n, r) : Qe(this, n, r), this.value = void 0, new k(i, r);
|
|
2140
2188
|
}
|
|
2141
2189
|
else if (i.Ta)
|
|
2142
|
-
t.scope.S || (t.B =
|
|
2190
|
+
t.scope.S || (t.B = $t(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2143
2191
|
else if (i.Za) {
|
|
2144
2192
|
var s = this;
|
|
2145
|
-
n = i.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(
|
|
2146
|
-
t.value =
|
|
2147
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2193
|
+
n = i.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(u) {
|
|
2194
|
+
t.value = u, s.za = !1;
|
|
2195
|
+
}), this.za = !0, t.scope.S || (t.B = $t(this, t.B)), i.Za.apply(t.B, n);
|
|
2148
2196
|
} else
|
|
2149
|
-
|
|
2197
|
+
E(this, this.j, ne(this, r.callee) + " is not callable");
|
|
2150
2198
|
}
|
|
2151
2199
|
};
|
|
2152
|
-
|
|
2200
|
+
m.prototype.stepConditionalExpression = function(e, t, r) {
|
|
2153
2201
|
var n = t.na || 0;
|
|
2154
2202
|
if (n === 0)
|
|
2155
|
-
return t.na = 1, new
|
|
2203
|
+
return t.na = 1, new k(r.test, t.scope);
|
|
2156
2204
|
if (n === 1) {
|
|
2157
2205
|
if (t.na = 2, (n = !!t.value) && r.da)
|
|
2158
|
-
return new
|
|
2206
|
+
return new k(r.da, t.scope);
|
|
2159
2207
|
if (!n && r.alternate)
|
|
2160
|
-
return new
|
|
2208
|
+
return new k(r.alternate, t.scope);
|
|
2161
2209
|
this.value = void 0;
|
|
2162
2210
|
}
|
|
2163
2211
|
e.pop(), r.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2164
2212
|
};
|
|
2165
|
-
|
|
2213
|
+
m.prototype.stepContinueStatement = function(e, t, r) {
|
|
2166
2214
|
nt(this, 2, void 0, r.label && r.label.name);
|
|
2167
2215
|
};
|
|
2168
|
-
|
|
2216
|
+
m.prototype.stepDebuggerStatement = function(e) {
|
|
2169
2217
|
e.pop();
|
|
2170
2218
|
};
|
|
2171
|
-
|
|
2219
|
+
m.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
2172
2220
|
if (r.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2173
|
-
return t.ga = !0, new
|
|
2221
|
+
return t.ga = !0, new k(r.test, t.scope);
|
|
2174
2222
|
if (!t.value)
|
|
2175
2223
|
e.pop();
|
|
2176
2224
|
else if (r.body)
|
|
2177
|
-
return t.ga = !1, t.W = !0, new
|
|
2225
|
+
return t.ga = !1, t.W = !0, new k(r.body, t.scope);
|
|
2178
2226
|
};
|
|
2179
|
-
|
|
2227
|
+
m.prototype.stepEmptyStatement = function(e) {
|
|
2180
2228
|
e.pop();
|
|
2181
2229
|
};
|
|
2182
|
-
|
|
2230
|
+
m.prototype.stepEvalProgram_ = function(e, t, r) {
|
|
2183
2231
|
var n = t.A || 0;
|
|
2184
2232
|
if (r = r.body[n])
|
|
2185
|
-
return t.A = n + 1, new
|
|
2233
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2186
2234
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2187
2235
|
};
|
|
2188
|
-
|
|
2236
|
+
m.prototype.stepExpressionStatement = function(e, t, r) {
|
|
2189
2237
|
if (!t.ka)
|
|
2190
|
-
return this.value = void 0, t.ka = !0, new
|
|
2238
|
+
return this.value = void 0, t.ka = !0, new k(r.la, t.scope);
|
|
2191
2239
|
e.pop(), this.value = t.value;
|
|
2192
2240
|
};
|
|
2193
|
-
|
|
2241
|
+
m.prototype.stepForInStatement = function(e, t, r) {
|
|
2194
2242
|
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2195
|
-
return t.scope.S &&
|
|
2243
|
+
return t.scope.S && E(this, this.T, "for-in loop variable declaration may not have an initializer"), new k(r.left, t.scope);
|
|
2196
2244
|
if (!t.Ca)
|
|
2197
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2245
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new k(r.right, t.scope);
|
|
2198
2246
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2199
2247
|
e:
|
|
2200
2248
|
for (; ; ) {
|
|
@@ -2215,7 +2263,7 @@ g.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2215
2263
|
break e;
|
|
2216
2264
|
}
|
|
2217
2265
|
}
|
|
2218
|
-
if (t.u =
|
|
2266
|
+
if (t.u = ge(this, t.u), t.wa = null, t.u === null) {
|
|
2219
2267
|
e.pop();
|
|
2220
2268
|
return;
|
|
2221
2269
|
}
|
|
@@ -2224,75 +2272,75 @@ g.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2224
2272
|
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2225
2273
|
t.pa = [Ue, e.fa[0].id.name];
|
|
2226
2274
|
else
|
|
2227
|
-
return t.pa = null, t = new
|
|
2228
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n =
|
|
2229
|
-
return
|
|
2275
|
+
return t.pa = null, t = new k(e, t.scope), t.sa = !0, t;
|
|
2276
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = ln(this, t.pa, e)))
|
|
2277
|
+
return cn(this, n, t.pa, e);
|
|
2230
2278
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2231
|
-
return new
|
|
2279
|
+
return new k(r.body, t.scope);
|
|
2232
2280
|
};
|
|
2233
|
-
|
|
2281
|
+
m.prototype.stepForStatement = function(e, t, r) {
|
|
2234
2282
|
switch (t.na) {
|
|
2235
2283
|
default:
|
|
2236
2284
|
if (t.na = 1, r.ua)
|
|
2237
|
-
return new
|
|
2285
|
+
return new k(r.ua, t.scope);
|
|
2238
2286
|
break;
|
|
2239
2287
|
case 1:
|
|
2240
2288
|
if (t.na = 2, r.test)
|
|
2241
|
-
return new
|
|
2289
|
+
return new k(r.test, t.scope);
|
|
2242
2290
|
break;
|
|
2243
2291
|
case 2:
|
|
2244
2292
|
if (t.na = 3, r.test && !t.value)
|
|
2245
2293
|
e.pop();
|
|
2246
2294
|
else
|
|
2247
|
-
return t.W = !0, new
|
|
2295
|
+
return t.W = !0, new k(r.body, t.scope);
|
|
2248
2296
|
break;
|
|
2249
2297
|
case 3:
|
|
2250
2298
|
if (t.na = 1, r.update)
|
|
2251
|
-
return new
|
|
2299
|
+
return new k(r.update, t.scope);
|
|
2252
2300
|
}
|
|
2253
2301
|
};
|
|
2254
|
-
|
|
2302
|
+
m.prototype.stepFunctionDeclaration = function(e) {
|
|
2255
2303
|
e.pop();
|
|
2256
2304
|
};
|
|
2257
|
-
|
|
2258
|
-
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e =
|
|
2305
|
+
m.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2306
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = on(this, e)), t.value = nn(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, Zt);
|
|
2259
2307
|
};
|
|
2260
|
-
|
|
2308
|
+
m.prototype.stepIdentifier = function(e, t, r) {
|
|
2261
2309
|
if (e.pop(), t.sa)
|
|
2262
2310
|
e[e.length - 1].value = [Ue, r.name];
|
|
2263
2311
|
else {
|
|
2264
|
-
if (t =
|
|
2312
|
+
if (t = an(this, r.name), this.P)
|
|
2265
2313
|
return rt(this, t, this.Na);
|
|
2266
2314
|
e[e.length - 1].value = t;
|
|
2267
2315
|
}
|
|
2268
2316
|
};
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new
|
|
2317
|
+
m.prototype.stepIfStatement = m.prototype.stepConditionalExpression;
|
|
2318
|
+
m.prototype.stepLabeledStatement = function(e, t, r) {
|
|
2319
|
+
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new k(r.body, t.scope), t.labels = e, t;
|
|
2272
2320
|
};
|
|
2273
|
-
|
|
2274
|
-
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma),
|
|
2321
|
+
m.prototype.stepLiteral = function(e, t, r) {
|
|
2322
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), en(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2275
2323
|
};
|
|
2276
|
-
|
|
2324
|
+
m.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2277
2325
|
if (r.operator !== "&&" && r.operator !== "||")
|
|
2278
2326
|
throw SyntaxError("Unknown logical operator: " + r.operator);
|
|
2279
2327
|
if (!t.ja)
|
|
2280
|
-
return t.ja = !0, new
|
|
2328
|
+
return t.ja = !0, new k(r.left, t.scope);
|
|
2281
2329
|
if (t.Da)
|
|
2282
2330
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2283
2331
|
else if (r.operator === "&&" && !t.value || r.operator === "||" && t.value)
|
|
2284
2332
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2285
2333
|
else
|
|
2286
|
-
return t.Da = !0, new
|
|
2334
|
+
return t.Da = !0, new k(r.right, t.scope);
|
|
2287
2335
|
};
|
|
2288
|
-
|
|
2336
|
+
m.prototype.stepMemberExpression = function(e, t, r) {
|
|
2289
2337
|
if (!t.Ca)
|
|
2290
|
-
return t.Ca = !0, new
|
|
2338
|
+
return t.Ca = !0, new k(r.object, t.scope);
|
|
2291
2339
|
if (r.bb)
|
|
2292
2340
|
if (t.Vb)
|
|
2293
2341
|
r = t.value;
|
|
2294
2342
|
else
|
|
2295
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2343
|
+
return t.u = t.value, t.Vb = !0, new k(r.Wa, t.scope);
|
|
2296
2344
|
else
|
|
2297
2345
|
t.u = t.value, r = r.Wa.name;
|
|
2298
2346
|
if (e.pop(), t.sa)
|
|
@@ -2303,8 +2351,8 @@ g.prototype.stepMemberExpression = function(e, t, r) {
|
|
|
2303
2351
|
e[e.length - 1].value = r;
|
|
2304
2352
|
}
|
|
2305
2353
|
};
|
|
2306
|
-
|
|
2307
|
-
|
|
2354
|
+
m.prototype.stepNewExpression = m.prototype.stepCallExpression;
|
|
2355
|
+
m.prototype.stepObjectExpression = function(e, t, r) {
|
|
2308
2356
|
var n = t.A || 0, i = r.h[n];
|
|
2309
2357
|
if (t.u) {
|
|
2310
2358
|
var a = t.Pa;
|
|
@@ -2319,7 +2367,7 @@ g.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2319
2367
|
a = s.value;
|
|
2320
2368
|
else
|
|
2321
2369
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2322
|
-
return t.Pa = a, new
|
|
2370
|
+
return t.Pa = a, new k(i.value, t.scope);
|
|
2323
2371
|
}
|
|
2324
2372
|
for (s in t.Ja)
|
|
2325
2373
|
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s, Ze, {
|
|
@@ -2330,37 +2378,37 @@ g.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2330
2378
|
}) : this.g(t.u, s, r.init);
|
|
2331
2379
|
e.pop(), e[e.length - 1].value = t.u;
|
|
2332
2380
|
};
|
|
2333
|
-
|
|
2381
|
+
m.prototype.stepProgram = function(e, t, r) {
|
|
2334
2382
|
if (e = r.body.shift())
|
|
2335
|
-
return t.done = !1, new
|
|
2383
|
+
return t.done = !1, new k(e, t.scope);
|
|
2336
2384
|
t.done = !0;
|
|
2337
2385
|
};
|
|
2338
|
-
|
|
2386
|
+
m.prototype.stepReturnStatement = function(e, t, r) {
|
|
2339
2387
|
if (r.K && !t.ka)
|
|
2340
|
-
return t.ka = !0, new
|
|
2388
|
+
return t.ka = !0, new k(r.K, t.scope);
|
|
2341
2389
|
nt(this, 3, t.value);
|
|
2342
2390
|
};
|
|
2343
|
-
|
|
2391
|
+
m.prototype.stepSequenceExpression = function(e, t, r) {
|
|
2344
2392
|
var n = t.A || 0;
|
|
2345
2393
|
if (r = r.xb[n])
|
|
2346
|
-
return t.A = n + 1, new
|
|
2394
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2347
2395
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2348
2396
|
};
|
|
2349
|
-
|
|
2397
|
+
m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
2350
2398
|
if (!t.ga)
|
|
2351
|
-
return t.ga = 1, new
|
|
2399
|
+
return t.ga = 1, new k(r.Qb, t.scope);
|
|
2352
2400
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2353
2401
|
var n = t.gb || 0, i = r.tb[n];
|
|
2354
2402
|
if (t.Ha || !i || i.test)
|
|
2355
2403
|
if (i || t.Ha || t.cb === -1)
|
|
2356
2404
|
if (i) {
|
|
2357
2405
|
if (!t.Ha && !t.Fb && i.test)
|
|
2358
|
-
return t.Fb = !0, new
|
|
2406
|
+
return t.Fb = !0, new k(i.test, t.scope);
|
|
2359
2407
|
if (t.Ha || t.value === t.hc) {
|
|
2360
2408
|
t.Ha = !0;
|
|
2361
2409
|
var a = t.A || 0;
|
|
2362
2410
|
if (i.da[a])
|
|
2363
|
-
return t.Zb = !0, t.A = a + 1, new
|
|
2411
|
+
return t.Zb = !0, t.A = a + 1, new k(i.da[a], t.scope);
|
|
2364
2412
|
}
|
|
2365
2413
|
t.Fb = !1, t.A = 0, t.gb = n + 1;
|
|
2366
2414
|
} else {
|
|
@@ -2373,27 +2421,27 @@ g.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2373
2421
|
t.cb = n, t.gb = n + 1;
|
|
2374
2422
|
}
|
|
2375
2423
|
};
|
|
2376
|
-
|
|
2377
|
-
e.pop(), e[e.length - 1].value =
|
|
2424
|
+
m.prototype.stepThisExpression = function(e) {
|
|
2425
|
+
e.pop(), e[e.length - 1].value = an(this, "this");
|
|
2378
2426
|
};
|
|
2379
|
-
|
|
2427
|
+
m.prototype.stepThrowStatement = function(e, t, r) {
|
|
2380
2428
|
if (t.ka)
|
|
2381
|
-
|
|
2429
|
+
E(this, t.value);
|
|
2382
2430
|
else
|
|
2383
|
-
return t.ka = !0, new
|
|
2431
|
+
return t.ka = !0, new k(r.K, t.scope);
|
|
2384
2432
|
};
|
|
2385
|
-
|
|
2433
|
+
m.prototype.stepTryStatement = function(e, t, r) {
|
|
2386
2434
|
if (!t.Rb)
|
|
2387
|
-
return t.Rb = !0, new
|
|
2435
|
+
return t.Rb = !0, new k(r.block, t.scope);
|
|
2388
2436
|
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2389
|
-
return t.Tb = !0, e =
|
|
2437
|
+
return t.Tb = !0, e = on(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new k(r.Ea.body, e);
|
|
2390
2438
|
if (!t.Sb && r.fb)
|
|
2391
|
-
return t.Sb = !0, new
|
|
2439
|
+
return t.Sb = !0, new k(r.fb, t.scope);
|
|
2392
2440
|
e.pop(), t.ea && nt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2393
2441
|
};
|
|
2394
|
-
|
|
2442
|
+
m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
2395
2443
|
if (!t.ka)
|
|
2396
|
-
return t.ka = !0, e = new
|
|
2444
|
+
return t.ka = !0, e = new k(r.K, t.scope), e.sa = r.operator === "delete", e;
|
|
2397
2445
|
e.pop();
|
|
2398
2446
|
var n = t.value;
|
|
2399
2447
|
switch (r.operator) {
|
|
@@ -2416,7 +2464,7 @@ g.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2416
2464
|
try {
|
|
2417
2465
|
delete i.h[n];
|
|
2418
2466
|
} catch {
|
|
2419
|
-
t.scope.S ?
|
|
2467
|
+
t.scope.S ? E(this, this.j, "Cannot delete property '" + n + "' of '" + i + "'") : r = !1;
|
|
2420
2468
|
}
|
|
2421
2469
|
}
|
|
2422
2470
|
n = r;
|
|
@@ -2432,11 +2480,11 @@ g.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2432
2480
|
}
|
|
2433
2481
|
e[e.length - 1].value = n;
|
|
2434
2482
|
};
|
|
2435
|
-
|
|
2483
|
+
m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
2436
2484
|
if (!t.ja)
|
|
2437
|
-
return t.ja = !0, e = new
|
|
2485
|
+
return t.ja = !0, e = new k(r.K, t.scope), e.sa = !0, e;
|
|
2438
2486
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2439
|
-
var n =
|
|
2487
|
+
var n = sn(this, t.Ga);
|
|
2440
2488
|
if (t.ma = n, this.P)
|
|
2441
2489
|
return t.Ba = !0, rt(this, n, t.Ga);
|
|
2442
2490
|
}
|
|
@@ -2449,67 +2497,55 @@ g.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2449
2497
|
i = n - 1;
|
|
2450
2498
|
else
|
|
2451
2499
|
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2452
|
-
if (r = r.prefix ? i : n, n =
|
|
2453
|
-
return t.ta = !0, t.ib = r,
|
|
2500
|
+
if (r = r.prefix ? i : n, n = ln(this, t.Ga, i))
|
|
2501
|
+
return t.ta = !0, t.ib = r, cn(this, n, t.Ga, i);
|
|
2454
2502
|
e.pop(), e[e.length - 1].value = r;
|
|
2455
2503
|
}
|
|
2456
2504
|
};
|
|
2457
|
-
|
|
2505
|
+
m.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2458
2506
|
r = r.fa;
|
|
2459
2507
|
var n = t.A || 0, i = r[n];
|
|
2460
|
-
for (t.Bb && i && (
|
|
2508
|
+
for (t.Bb && i && (vr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2461
2509
|
if (i.ua)
|
|
2462
|
-
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new
|
|
2510
|
+
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new k(i.ua, t.scope);
|
|
2463
2511
|
i = r[++n];
|
|
2464
2512
|
}
|
|
2465
2513
|
e.pop();
|
|
2466
2514
|
};
|
|
2467
|
-
|
|
2468
|
-
return t.Ca ? (e.pop(), e =
|
|
2515
|
+
m.prototype.stepWithStatement = function(e, t, r) {
|
|
2516
|
+
return t.Ca ? (e.pop(), e = on(this, t.scope, t.value), new k(r.body, e)) : (t.Ca = !0, new k(r.object, t.scope));
|
|
2469
2517
|
};
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
const
|
|
2488
|
-
builder: e,
|
|
2489
|
-
context: t,
|
|
2490
|
-
event: r,
|
|
2491
|
-
state: n
|
|
2492
|
-
}) => Object.entries({
|
|
2493
|
-
state: n,
|
|
2494
|
-
Builder: e,
|
|
2495
|
-
// legacy
|
|
2496
|
-
builder: e,
|
|
2497
|
-
context: t,
|
|
2498
|
-
event: r
|
|
2499
|
-
}), di = (e) => e.split(`
|
|
2518
|
+
m.prototype.stepWhileStatement = m.prototype.stepDoWhileStatement;
|
|
2519
|
+
be.Interpreter = m;
|
|
2520
|
+
m.prototype.step = m.prototype.lb;
|
|
2521
|
+
m.prototype.run = m.prototype.Eb;
|
|
2522
|
+
m.prototype.appendCode = m.prototype.Jb;
|
|
2523
|
+
m.prototype.createObject = m.prototype.Aa;
|
|
2524
|
+
m.prototype.createObjectProto = m.prototype.s;
|
|
2525
|
+
m.prototype.createAsyncFunction = m.prototype.ub;
|
|
2526
|
+
m.prototype.createNativeFunction = m.prototype.i;
|
|
2527
|
+
m.prototype.getProperty = m.prototype.G;
|
|
2528
|
+
m.prototype.setProperty = m.prototype.g;
|
|
2529
|
+
m.prototype.nativeToPseudo = m.prototype.Ia;
|
|
2530
|
+
m.prototype.pseudoToNative = m.prototype.R;
|
|
2531
|
+
m.prototype.getGlobalScope = m.prototype.Xb;
|
|
2532
|
+
m.prototype.getStateStack = m.prototype.Yb;
|
|
2533
|
+
m.prototype.setStateStack = m.prototype.ec;
|
|
2534
|
+
m.VALUE_IN_DESCRIPTOR = Ze;
|
|
2535
|
+
const gi = (e) => e.split(`
|
|
2500
2536
|
`).map((t) => {
|
|
2501
2537
|
const r = t.trim();
|
|
2502
2538
|
if (t.includes("__awaiter"))
|
|
2503
2539
|
return;
|
|
2504
2540
|
if (!r.startsWith("state."))
|
|
2505
2541
|
return t;
|
|
2506
|
-
const [i, a] = r.split("="),
|
|
2542
|
+
const [i, a] = r.split("="), u = `setRootState('${i.replace("state.", "").trim()}', ${a.trim()})`;
|
|
2507
2543
|
return `
|
|
2508
2544
|
${t}
|
|
2509
|
-
${
|
|
2545
|
+
${u}
|
|
2510
2546
|
`;
|
|
2511
2547
|
}).filter(Boolean).join(`
|
|
2512
|
-
`), er = (e) => e + "JSON",
|
|
2548
|
+
`), er = (e) => e + "JSON", yi = ({
|
|
2513
2549
|
builder: e,
|
|
2514
2550
|
context: t,
|
|
2515
2551
|
event: r,
|
|
@@ -2518,21 +2554,21 @@ const fi = ({
|
|
|
2518
2554
|
rootSetState: a,
|
|
2519
2555
|
code: s
|
|
2520
2556
|
}) => {
|
|
2521
|
-
const
|
|
2557
|
+
const u = {
|
|
2522
2558
|
...n,
|
|
2523
2559
|
...i
|
|
2524
|
-
}, d =
|
|
2560
|
+
}, d = pr({
|
|
2525
2561
|
builder: e,
|
|
2526
2562
|
context: t,
|
|
2527
2563
|
event: r,
|
|
2528
|
-
state:
|
|
2529
|
-
}), p = d.map(([
|
|
2530
|
-
const I = er(
|
|
2531
|
-
return `var ${
|
|
2564
|
+
state: u
|
|
2565
|
+
}), p = d.map(([C]) => {
|
|
2566
|
+
const I = er(C);
|
|
2567
|
+
return `var ${C} = ${I} === undefined ? undefined : JSON.parse(${I});`;
|
|
2532
2568
|
}).join(`
|
|
2533
|
-
`), y =
|
|
2569
|
+
`), y = gi(s);
|
|
2534
2570
|
if (y === "") {
|
|
2535
|
-
|
|
2571
|
+
Pe.warn("Skipping evaluation of empty code block.");
|
|
2536
2572
|
return;
|
|
2537
2573
|
}
|
|
2538
2574
|
const x = `
|
|
@@ -2542,25 +2578,25 @@ function theFunction() {
|
|
|
2542
2578
|
${y}
|
|
2543
2579
|
}
|
|
2544
2580
|
theFunction();
|
|
2545
|
-
`, P = (
|
|
2546
|
-
const
|
|
2547
|
-
a == null || a(
|
|
2548
|
-
},
|
|
2549
|
-
d.forEach(([
|
|
2581
|
+
`, P = (C, I) => {
|
|
2582
|
+
const L = mr(u, C, I);
|
|
2583
|
+
a == null || a(L);
|
|
2584
|
+
}, _ = function(C, I) {
|
|
2585
|
+
d.forEach(([L, V]) => {
|
|
2550
2586
|
const v = JSON.stringify(V);
|
|
2551
|
-
|
|
2552
|
-
}),
|
|
2587
|
+
C.setProperty(I, er(L), v);
|
|
2588
|
+
}), C.setProperty(I, "setRootState", C.createNativeFunction(P));
|
|
2553
2589
|
};
|
|
2554
2590
|
try {
|
|
2555
|
-
const
|
|
2556
|
-
return
|
|
2557
|
-
} catch (
|
|
2558
|
-
|
|
2559
|
-
e:
|
|
2591
|
+
const C = new m(x, _);
|
|
2592
|
+
return C.run(), C.pseudoToNative(C.value);
|
|
2593
|
+
} catch (C) {
|
|
2594
|
+
Pe.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2595
|
+
e: C
|
|
2560
2596
|
});
|
|
2561
2597
|
return;
|
|
2562
2598
|
}
|
|
2563
|
-
};
|
|
2599
|
+
}, vi = (e) => Ee() ? Zr(e) : yi(e);
|
|
2564
2600
|
function et({
|
|
2565
2601
|
code: e,
|
|
2566
2602
|
context: t,
|
|
@@ -2571,17 +2607,14 @@ function et({
|
|
|
2571
2607
|
isExpression: s = !0
|
|
2572
2608
|
}) {
|
|
2573
2609
|
if (e === "") {
|
|
2574
|
-
|
|
2610
|
+
Pe.warn("Skipping evaluation of empty code block.");
|
|
2575
2611
|
return;
|
|
2576
2612
|
}
|
|
2577
|
-
const
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
}, y = {
|
|
2583
|
-
code: /* we disable this for cases where we definitely don't want a return */ s && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
2584
|
-
builder: f,
|
|
2613
|
+
const u = {
|
|
2614
|
+
code: qr(e, {
|
|
2615
|
+
isExpression: s
|
|
2616
|
+
}),
|
|
2617
|
+
builder: Yr(),
|
|
2585
2618
|
context: t,
|
|
2586
2619
|
event: a,
|
|
2587
2620
|
rootSetState: i,
|
|
@@ -2589,15 +2622,15 @@ function et({
|
|
|
2589
2622
|
localState: r
|
|
2590
2623
|
};
|
|
2591
2624
|
try {
|
|
2592
|
-
return
|
|
2593
|
-
} catch (
|
|
2594
|
-
|
|
2625
|
+
return vi(u);
|
|
2626
|
+
} catch (d) {
|
|
2627
|
+
Pe.error("Failed code evaluation: " + d.message, {
|
|
2595
2628
|
code: e
|
|
2596
2629
|
});
|
|
2597
2630
|
return;
|
|
2598
2631
|
}
|
|
2599
2632
|
}
|
|
2600
|
-
const
|
|
2633
|
+
const xi = ({
|
|
2601
2634
|
block: e,
|
|
2602
2635
|
context: t,
|
|
2603
2636
|
localState: r,
|
|
@@ -2606,7 +2639,7 @@ const pi = ({
|
|
|
2606
2639
|
}) => {
|
|
2607
2640
|
if (!e.bindings)
|
|
2608
2641
|
return e;
|
|
2609
|
-
const a =
|
|
2642
|
+
const a = qt(e), s = {
|
|
2610
2643
|
...a,
|
|
2611
2644
|
properties: {
|
|
2612
2645
|
...a.properties
|
|
@@ -2615,15 +2648,15 @@ const pi = ({
|
|
|
2615
2648
|
...a.actions
|
|
2616
2649
|
}
|
|
2617
2650
|
};
|
|
2618
|
-
for (const
|
|
2619
|
-
const d = e.bindings[
|
|
2651
|
+
for (const u in e.bindings) {
|
|
2652
|
+
const d = e.bindings[u], p = et({
|
|
2620
2653
|
code: d,
|
|
2621
2654
|
localState: r,
|
|
2622
2655
|
rootState: n,
|
|
2623
2656
|
rootSetState: i,
|
|
2624
2657
|
context: t
|
|
2625
2658
|
});
|
|
2626
|
-
|
|
2659
|
+
mr(s, u, p);
|
|
2627
2660
|
}
|
|
2628
2661
|
return s;
|
|
2629
2662
|
};
|
|
@@ -2636,7 +2669,7 @@ function dt({
|
|
|
2636
2669
|
rootSetState: a
|
|
2637
2670
|
}) {
|
|
2638
2671
|
const s = e;
|
|
2639
|
-
return r ?
|
|
2672
|
+
return r ? xi({
|
|
2640
2673
|
block: s,
|
|
2641
2674
|
localState: n,
|
|
2642
2675
|
rootState: i,
|
|
@@ -2644,26 +2677,26 @@ function dt({
|
|
|
2644
2677
|
context: t
|
|
2645
2678
|
}) : s;
|
|
2646
2679
|
}
|
|
2647
|
-
const
|
|
2680
|
+
const bi = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2648
2681
|
if (typeof n == "string")
|
|
2649
|
-
return `${
|
|
2650
|
-
}).filter(
|
|
2682
|
+
return `${bi(r)}: ${n};`;
|
|
2683
|
+
}).filter(Ht), Si = (e) => Sr(e).join(`
|
|
2651
2684
|
`), Vt = ({
|
|
2652
2685
|
mediaQuery: e,
|
|
2653
2686
|
className: t,
|
|
2654
2687
|
styles: r
|
|
2655
2688
|
}) => {
|
|
2656
2689
|
const n = `.${t} {
|
|
2657
|
-
${
|
|
2690
|
+
${Si(r)}
|
|
2658
2691
|
}`;
|
|
2659
2692
|
return e ? `${e} {
|
|
2660
2693
|
${n}
|
|
2661
2694
|
}` : n;
|
|
2662
2695
|
};
|
|
2663
2696
|
function gt(e) {
|
|
2664
|
-
return /* @__PURE__ */
|
|
2697
|
+
return /* @__PURE__ */ g("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2665
2698
|
}
|
|
2666
|
-
function
|
|
2699
|
+
function un(e) {
|
|
2667
2700
|
function t() {
|
|
2668
2701
|
const n = dt({
|
|
2669
2702
|
block: e.block,
|
|
@@ -2673,10 +2706,10 @@ function cn(e) {
|
|
|
2673
2706
|
context: e.context.context,
|
|
2674
2707
|
shouldEvaluateBindings: !0
|
|
2675
2708
|
});
|
|
2676
|
-
return
|
|
2709
|
+
return Ht(n.hide) ? !n.hide : Ht(n.show) ? n.show : !0;
|
|
2677
2710
|
}
|
|
2678
2711
|
function r() {
|
|
2679
|
-
var
|
|
2712
|
+
var C;
|
|
2680
2713
|
const n = dt({
|
|
2681
2714
|
block: e.block,
|
|
2682
2715
|
localState: e.context.localState,
|
|
@@ -2684,14 +2717,14 @@ function cn(e) {
|
|
|
2684
2717
|
rootSetState: e.context.rootSetState,
|
|
2685
2718
|
context: e.context.context,
|
|
2686
2719
|
shouldEvaluateBindings: !0
|
|
2687
|
-
}), i = n.responsiveStyles, a = e.context.content, s =
|
|
2688
|
-
((
|
|
2689
|
-
),
|
|
2720
|
+
}), i = n.responsiveStyles, a = e.context.content, s = hr(
|
|
2721
|
+
((C = a == null ? void 0 : a.meta) == null ? void 0 : C.breakpoints) || {}
|
|
2722
|
+
), u = i == null ? void 0 : i.large, d = i == null ? void 0 : i.medium, p = i == null ? void 0 : i.small, y = n.id;
|
|
2690
2723
|
if (!y)
|
|
2691
2724
|
return "";
|
|
2692
|
-
const x =
|
|
2725
|
+
const x = u ? Vt({
|
|
2693
2726
|
className: y,
|
|
2694
|
-
styles:
|
|
2727
|
+
styles: u
|
|
2695
2728
|
}) : "", P = d ? Vt({
|
|
2696
2729
|
className: y,
|
|
2697
2730
|
styles: d,
|
|
@@ -2699,7 +2732,7 @@ function cn(e) {
|
|
|
2699
2732
|
"medium",
|
|
2700
2733
|
s
|
|
2701
2734
|
)
|
|
2702
|
-
}) : "",
|
|
2735
|
+
}) : "", _ = p ? Vt({
|
|
2703
2736
|
className: y,
|
|
2704
2737
|
styles: p,
|
|
2705
2738
|
mediaQuery: Xn(
|
|
@@ -2707,11 +2740,11 @@ function cn(e) {
|
|
|
2707
2740
|
s
|
|
2708
2741
|
)
|
|
2709
2742
|
}) : "";
|
|
2710
|
-
return [x, P,
|
|
2743
|
+
return [x, P, _].join(" ");
|
|
2711
2744
|
}
|
|
2712
|
-
return /* @__PURE__ */
|
|
2745
|
+
return /* @__PURE__ */ g(U, { children: r() && t() ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(gt, { styles: r() }) }) : null });
|
|
2713
2746
|
}
|
|
2714
|
-
function
|
|
2747
|
+
function wi(e) {
|
|
2715
2748
|
var t;
|
|
2716
2749
|
return {
|
|
2717
2750
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -2722,7 +2755,7 @@ function yi(e) {
|
|
|
2722
2755
|
builderBlock: e
|
|
2723
2756
|
};
|
|
2724
2757
|
}
|
|
2725
|
-
const
|
|
2758
|
+
const ki = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Dt = (e) => typeof e == "string" && ki.includes(e.toLowerCase()), Ci = ({
|
|
2726
2759
|
block: e,
|
|
2727
2760
|
context: t,
|
|
2728
2761
|
registeredComponents: r
|
|
@@ -2744,7 +2777,7 @@ const vi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2744
2777
|
console.warn(`
|
|
2745
2778
|
Could not find a registered component named "${n}".
|
|
2746
2779
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2747
|
-
},
|
|
2780
|
+
}, Ei = ({
|
|
2748
2781
|
block: e,
|
|
2749
2782
|
context: t
|
|
2750
2783
|
}) => {
|
|
@@ -2777,7 +2810,7 @@ const vi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2777
2810
|
},
|
|
2778
2811
|
block: n
|
|
2779
2812
|
}));
|
|
2780
|
-
},
|
|
2813
|
+
}, fn = cr({
|
|
2781
2814
|
content: null,
|
|
2782
2815
|
context: {},
|
|
2783
2816
|
localState: void 0,
|
|
@@ -2789,9 +2822,9 @@ const vi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2789
2822
|
componentInfos: {},
|
|
2790
2823
|
inheritedStyles: {}
|
|
2791
2824
|
});
|
|
2792
|
-
function
|
|
2825
|
+
function Ii(e) {
|
|
2793
2826
|
const [t, r] = H(() => e.repeatContext);
|
|
2794
|
-
return /* @__PURE__ */
|
|
2827
|
+
return /* @__PURE__ */ g(fn.Provider, { value: t, children: /* @__PURE__ */ g(
|
|
2795
2828
|
yt,
|
|
2796
2829
|
{
|
|
2797
2830
|
block: e.block,
|
|
@@ -2800,10 +2833,10 @@ function Si(e) {
|
|
|
2800
2833
|
}
|
|
2801
2834
|
) });
|
|
2802
2835
|
}
|
|
2803
|
-
function
|
|
2836
|
+
function Ti(e) {
|
|
2804
2837
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2805
2838
|
}
|
|
2806
|
-
const
|
|
2839
|
+
const ji = (e) => `on${Ti(e)}`, Ai = (e, t) => (r) => et({
|
|
2807
2840
|
code: e,
|
|
2808
2841
|
context: t.context,
|
|
2809
2842
|
localState: t.localState,
|
|
@@ -2812,13 +2845,13 @@ const ki = (e) => `on${wi(e)}`, Ci = (e, t) => (r) => et({
|
|
|
2812
2845
|
event: r,
|
|
2813
2846
|
isExpression: !1
|
|
2814
2847
|
});
|
|
2815
|
-
function
|
|
2848
|
+
function Xt(e) {
|
|
2816
2849
|
const t = {}, r = e.block.actions ?? {};
|
|
2817
2850
|
for (const n in r) {
|
|
2818
2851
|
if (!r.hasOwnProperty(n))
|
|
2819
2852
|
continue;
|
|
2820
2853
|
const i = r[n];
|
|
2821
|
-
let a =
|
|
2854
|
+
let a = ji(n);
|
|
2822
2855
|
if (e.stripPrefix)
|
|
2823
2856
|
switch (tt) {
|
|
2824
2857
|
case "vue2":
|
|
@@ -2829,14 +2862,14 @@ function zt(e) {
|
|
|
2829
2862
|
a = a.replace("on:", "");
|
|
2830
2863
|
break;
|
|
2831
2864
|
}
|
|
2832
|
-
t[a] =
|
|
2865
|
+
t[a] = Ai(i, e);
|
|
2833
2866
|
}
|
|
2834
2867
|
return t;
|
|
2835
2868
|
}
|
|
2836
|
-
function
|
|
2869
|
+
function Ri(e) {
|
|
2837
2870
|
return e.className = e.class, delete e.class, e;
|
|
2838
2871
|
}
|
|
2839
|
-
const
|
|
2872
|
+
const Oi = (e) => ({
|
|
2840
2873
|
href: e.href
|
|
2841
2874
|
});
|
|
2842
2875
|
function ht({
|
|
@@ -2845,21 +2878,21 @@ function ht({
|
|
|
2845
2878
|
}) {
|
|
2846
2879
|
var n;
|
|
2847
2880
|
const r = {
|
|
2848
|
-
...
|
|
2881
|
+
...Oi(e),
|
|
2849
2882
|
...e.properties,
|
|
2850
2883
|
"builder-id": e.id,
|
|
2851
|
-
style: e.style ?
|
|
2884
|
+
style: e.style ? Ni(e.style) : void 0,
|
|
2852
2885
|
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2853
2886
|
};
|
|
2854
|
-
return
|
|
2887
|
+
return Ri(r);
|
|
2855
2888
|
}
|
|
2856
|
-
function
|
|
2889
|
+
function Ni(e) {
|
|
2857
2890
|
switch (tt) {
|
|
2858
2891
|
case "svelte":
|
|
2859
2892
|
case "vue2":
|
|
2860
2893
|
case "vue3":
|
|
2861
2894
|
case "solid":
|
|
2862
|
-
return
|
|
2895
|
+
return Sr(e).join(" ");
|
|
2863
2896
|
case "qwik":
|
|
2864
2897
|
case "reactNative":
|
|
2865
2898
|
case "react":
|
|
@@ -2867,8 +2900,8 @@ function Ti(e) {
|
|
|
2867
2900
|
return e;
|
|
2868
2901
|
}
|
|
2869
2902
|
}
|
|
2870
|
-
function
|
|
2871
|
-
return /* @__PURE__ */
|
|
2903
|
+
function Pi(e) {
|
|
2904
|
+
return /* @__PURE__ */ g(
|
|
2872
2905
|
e.Wrapper,
|
|
2873
2906
|
{
|
|
2874
2907
|
...e.wrapperProps,
|
|
@@ -2877,7 +2910,7 @@ function ji(e) {
|
|
|
2877
2910
|
block: e.block,
|
|
2878
2911
|
context: e.context
|
|
2879
2912
|
}),
|
|
2880
|
-
...
|
|
2913
|
+
...Xt({
|
|
2881
2914
|
block: e.block,
|
|
2882
2915
|
rootState: e.context.rootState,
|
|
2883
2916
|
rootSetState: e.context.rootSetState,
|
|
@@ -2889,7 +2922,7 @@ function ji(e) {
|
|
|
2889
2922
|
}
|
|
2890
2923
|
);
|
|
2891
2924
|
}
|
|
2892
|
-
const
|
|
2925
|
+
const Mi = ({
|
|
2893
2926
|
componentOptions: e,
|
|
2894
2927
|
builderBlock: t,
|
|
2895
2928
|
context: r,
|
|
@@ -2918,12 +2951,12 @@ const Ai = ({
|
|
|
2918
2951
|
function tr(e) {
|
|
2919
2952
|
var n, i;
|
|
2920
2953
|
const [t, r] = H(
|
|
2921
|
-
() => e.isInteractive ?
|
|
2954
|
+
() => e.isInteractive ? Pi : e.componentRef
|
|
2922
2955
|
);
|
|
2923
|
-
return /* @__PURE__ */
|
|
2956
|
+
return /* @__PURE__ */ g(U, { children: e.componentRef ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ Z(
|
|
2924
2957
|
t,
|
|
2925
2958
|
{
|
|
2926
|
-
...
|
|
2959
|
+
...Mi({
|
|
2927
2960
|
componentOptions: e.componentOptions,
|
|
2928
2961
|
builderBlock: e.builderBlock,
|
|
2929
2962
|
context: e.context,
|
|
@@ -2933,7 +2966,7 @@ function tr(e) {
|
|
|
2933
2966
|
contextValue: e.context
|
|
2934
2967
|
}),
|
|
2935
2968
|
children: [
|
|
2936
|
-
(n = e.blockChildren) == null ? void 0 : n.map((a) => /* @__PURE__ */
|
|
2969
|
+
(n = e.blockChildren) == null ? void 0 : n.map((a) => /* @__PURE__ */ g(
|
|
2937
2970
|
yt,
|
|
2938
2971
|
{
|
|
2939
2972
|
block: a,
|
|
@@ -2942,8 +2975,8 @@ function tr(e) {
|
|
|
2942
2975
|
},
|
|
2943
2976
|
"block-" + a.id
|
|
2944
2977
|
)),
|
|
2945
|
-
(i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */
|
|
2946
|
-
|
|
2978
|
+
(i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ g(
|
|
2979
|
+
un,
|
|
2947
2980
|
{
|
|
2948
2981
|
block: a,
|
|
2949
2982
|
context: e.context
|
|
@@ -2957,14 +2990,14 @@ function tr(e) {
|
|
|
2957
2990
|
function nr(e) {
|
|
2958
2991
|
return /* @__PURE__ */ Z(U, { children: [
|
|
2959
2992
|
" ",
|
|
2960
|
-
e.hasChildren ? /* @__PURE__ */
|
|
2993
|
+
e.hasChildren ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ Z(
|
|
2961
2994
|
e.Wrapper,
|
|
2962
2995
|
{
|
|
2963
2996
|
...ht({
|
|
2964
2997
|
block: e.block,
|
|
2965
2998
|
context: e.context
|
|
2966
2999
|
}),
|
|
2967
|
-
...
|
|
3000
|
+
...Xt({
|
|
2968
3001
|
block: e.block,
|
|
2969
3002
|
rootState: e.context.rootState,
|
|
2970
3003
|
rootSetState: e.context.rootSetState,
|
|
@@ -2978,14 +3011,14 @@ function nr(e) {
|
|
|
2978
3011
|
" "
|
|
2979
3012
|
]
|
|
2980
3013
|
}
|
|
2981
|
-
) }) : /* @__PURE__ */
|
|
3014
|
+
) }) : /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
2982
3015
|
e.Wrapper,
|
|
2983
3016
|
{
|
|
2984
3017
|
...ht({
|
|
2985
3018
|
block: e.block,
|
|
2986
3019
|
context: e.context
|
|
2987
3020
|
}),
|
|
2988
|
-
...
|
|
3021
|
+
...Xt({
|
|
2989
3022
|
block: e.block,
|
|
2990
3023
|
rootState: e.context.rootState,
|
|
2991
3024
|
rootSetState: e.context.rootSetState,
|
|
@@ -2999,16 +3032,16 @@ function nr(e) {
|
|
|
2999
3032
|
] });
|
|
3000
3033
|
}
|
|
3001
3034
|
function yt(e) {
|
|
3002
|
-
var y, x, P,
|
|
3035
|
+
var y, x, P, _;
|
|
3003
3036
|
function t() {
|
|
3004
|
-
return
|
|
3037
|
+
return Ci({
|
|
3005
3038
|
block: e.block,
|
|
3006
3039
|
context: e.context,
|
|
3007
3040
|
registeredComponents: e.registeredComponents
|
|
3008
3041
|
});
|
|
3009
3042
|
}
|
|
3010
3043
|
function r() {
|
|
3011
|
-
return
|
|
3044
|
+
return Ei({
|
|
3012
3045
|
block: e.block,
|
|
3013
3046
|
context: e.context
|
|
3014
3047
|
});
|
|
@@ -3033,15 +3066,15 @@ function yt(e) {
|
|
|
3033
3066
|
var I;
|
|
3034
3067
|
return !((I = t == null ? void 0 : t()) != null && I.component) && !r() ? n().children ?? [] : [];
|
|
3035
3068
|
}
|
|
3036
|
-
function
|
|
3037
|
-
var
|
|
3069
|
+
function u() {
|
|
3070
|
+
var C, I, L, V, v;
|
|
3038
3071
|
return {
|
|
3039
3072
|
blockChildren: n().children ?? [],
|
|
3040
|
-
componentRef: (
|
|
3073
|
+
componentRef: (C = t == null ? void 0 : t()) == null ? void 0 : C.component,
|
|
3041
3074
|
componentOptions: {
|
|
3042
|
-
...
|
|
3075
|
+
...wi(n()),
|
|
3043
3076
|
builderContext: e.context,
|
|
3044
|
-
...((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Symbol" || ((
|
|
3077
|
+
...((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Symbol" || ((L = t == null ? void 0 : t()) == null ? void 0 : L.name) === "Columns" ? {
|
|
3045
3078
|
builderComponents: e.registeredComponents
|
|
3046
3079
|
} : {}
|
|
3047
3080
|
},
|
|
@@ -3053,8 +3086,8 @@ function yt(e) {
|
|
|
3053
3086
|
};
|
|
3054
3087
|
}
|
|
3055
3088
|
const [d, p] = H(() => e.context);
|
|
3056
|
-
return /* @__PURE__ */
|
|
3057
|
-
Dt(i()) ? /* @__PURE__ */
|
|
3089
|
+
return /* @__PURE__ */ g(U, { children: a() ? /* @__PURE__ */ g(U, { children: (y = t == null ? void 0 : t()) != null && y.noWrap ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(tr, { ...u() }) }) : /* @__PURE__ */ Z(U, { children: [
|
|
3090
|
+
Dt(i()) ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
3058
3091
|
nr,
|
|
3059
3092
|
{
|
|
3060
3093
|
Wrapper: i(),
|
|
@@ -3063,16 +3096,16 @@ function yt(e) {
|
|
|
3063
3096
|
hasChildren: !1
|
|
3064
3097
|
}
|
|
3065
3098
|
) }) : null,
|
|
3066
|
-
!Dt(i()) && r() ? /* @__PURE__ */
|
|
3067
|
-
|
|
3099
|
+
!Dt(i()) && r() ? /* @__PURE__ */ g(U, { children: (x = r()) == null ? void 0 : x.map((C, I) => /* @__PURE__ */ g(
|
|
3100
|
+
Ii,
|
|
3068
3101
|
{
|
|
3069
|
-
repeatContext:
|
|
3070
|
-
block:
|
|
3102
|
+
repeatContext: C.context,
|
|
3103
|
+
block: C.block,
|
|
3071
3104
|
registeredComponents: e.registeredComponents
|
|
3072
3105
|
},
|
|
3073
3106
|
I
|
|
3074
3107
|
)) }) : null,
|
|
3075
|
-
!Dt(i()) && !r() ? /* @__PURE__ */
|
|
3108
|
+
!Dt(i()) && !r() ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ Z(
|
|
3076
3109
|
nr,
|
|
3077
3110
|
{
|
|
3078
3111
|
Wrapper: i(),
|
|
@@ -3080,30 +3113,30 @@ function yt(e) {
|
|
|
3080
3113
|
context: e.context,
|
|
3081
3114
|
hasChildren: !0,
|
|
3082
3115
|
children: [
|
|
3083
|
-
/* @__PURE__ */
|
|
3084
|
-
(P = s()) == null ? void 0 : P.map((
|
|
3116
|
+
/* @__PURE__ */ g(tr, { ...u() }),
|
|
3117
|
+
(P = s()) == null ? void 0 : P.map((C) => /* @__PURE__ */ g(
|
|
3085
3118
|
yt,
|
|
3086
3119
|
{
|
|
3087
|
-
block:
|
|
3120
|
+
block: C,
|
|
3088
3121
|
context: d,
|
|
3089
3122
|
registeredComponents: e.registeredComponents
|
|
3090
3123
|
},
|
|
3091
|
-
"block-" +
|
|
3124
|
+
"block-" + C.id
|
|
3092
3125
|
)),
|
|
3093
|
-
(
|
|
3094
|
-
|
|
3126
|
+
(_ = s()) == null ? void 0 : _.map((C) => /* @__PURE__ */ g(
|
|
3127
|
+
un,
|
|
3095
3128
|
{
|
|
3096
|
-
block:
|
|
3129
|
+
block: C,
|
|
3097
3130
|
context: d
|
|
3098
3131
|
},
|
|
3099
|
-
"block-style-" +
|
|
3132
|
+
"block-style-" + C.id
|
|
3100
3133
|
))
|
|
3101
3134
|
]
|
|
3102
3135
|
}
|
|
3103
3136
|
) }) : null
|
|
3104
3137
|
] }) }) : null });
|
|
3105
3138
|
}
|
|
3106
|
-
function
|
|
3139
|
+
function Fi(e) {
|
|
3107
3140
|
function t() {
|
|
3108
3141
|
var i;
|
|
3109
3142
|
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
@@ -3135,10 +3168,10 @@ function Ri(e) {
|
|
|
3135
3168
|
));
|
|
3136
3169
|
}
|
|
3137
3170
|
return /* @__PURE__ */ Z(U, { children: [
|
|
3138
|
-
/* @__PURE__ */
|
|
3171
|
+
/* @__PURE__ */ g(
|
|
3139
3172
|
"div",
|
|
3140
3173
|
{
|
|
3141
|
-
className: t() + " div-
|
|
3174
|
+
className: t() + " div-02c7a115",
|
|
3142
3175
|
"builder-path": e.path,
|
|
3143
3176
|
"builder-parent-id": e.parent,
|
|
3144
3177
|
style: e.styleProp,
|
|
@@ -3148,26 +3181,26 @@ function Ri(e) {
|
|
|
3148
3181
|
children: e.children
|
|
3149
3182
|
}
|
|
3150
3183
|
),
|
|
3151
|
-
/* @__PURE__ */
|
|
3184
|
+
/* @__PURE__ */ g("style", { children: `.div-02c7a115 {
|
|
3152
3185
|
display: flex;
|
|
3153
3186
|
flex-direction: column;
|
|
3154
3187
|
align-items: stretch;
|
|
3155
3188
|
}` })
|
|
3156
3189
|
] });
|
|
3157
3190
|
}
|
|
3158
|
-
const
|
|
3159
|
-
function
|
|
3191
|
+
const wr = cr({ registeredComponents: {} });
|
|
3192
|
+
function dn(e) {
|
|
3160
3193
|
var n, i;
|
|
3161
|
-
const t =
|
|
3194
|
+
const t = Hn(fn), r = Hn(wr);
|
|
3162
3195
|
return /* @__PURE__ */ Z(
|
|
3163
|
-
|
|
3196
|
+
Fi,
|
|
3164
3197
|
{
|
|
3165
3198
|
blocks: e.blocks,
|
|
3166
3199
|
parent: e.parent,
|
|
3167
3200
|
path: e.path,
|
|
3168
3201
|
styleProp: e.styleProp,
|
|
3169
3202
|
children: [
|
|
3170
|
-
e.blocks ? /* @__PURE__ */
|
|
3203
|
+
e.blocks ? /* @__PURE__ */ g(U, { children: (n = e.blocks) == null ? void 0 : n.map((a) => /* @__PURE__ */ g(
|
|
3171
3204
|
yt,
|
|
3172
3205
|
{
|
|
3173
3206
|
block: a,
|
|
@@ -3176,8 +3209,8 @@ function fn(e) {
|
|
|
3176
3209
|
},
|
|
3177
3210
|
"render-block-" + a.id
|
|
3178
3211
|
)) }) : null,
|
|
3179
|
-
e.blocks ? /* @__PURE__ */
|
|
3180
|
-
|
|
3212
|
+
e.blocks ? /* @__PURE__ */ g(U, { children: (i = e.blocks) == null ? void 0 : i.map((a) => /* @__PURE__ */ g(
|
|
3213
|
+
un,
|
|
3181
3214
|
{
|
|
3182
3215
|
block: a,
|
|
3183
3216
|
context: e.context || t
|
|
@@ -3188,37 +3221,37 @@ function fn(e) {
|
|
|
3188
3221
|
}
|
|
3189
3222
|
);
|
|
3190
3223
|
}
|
|
3191
|
-
function
|
|
3224
|
+
function Ui(e) {
|
|
3192
3225
|
var V;
|
|
3193
3226
|
const [t, r] = H(
|
|
3194
3227
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3195
3228
|
), [n, i] = H(() => e.columns || []), [a, s] = H(
|
|
3196
3229
|
() => e.stackColumnsAt || "tablet"
|
|
3197
3230
|
);
|
|
3198
|
-
function
|
|
3199
|
-
var
|
|
3200
|
-
return ((
|
|
3231
|
+
function u(v) {
|
|
3232
|
+
var K;
|
|
3233
|
+
return ((K = n[v]) == null ? void 0 : K.width) || 100 / n.length;
|
|
3201
3234
|
}
|
|
3202
3235
|
function d(v) {
|
|
3203
|
-
const
|
|
3204
|
-
return `calc(${
|
|
3236
|
+
const K = t * (n.length - 1) / n.length;
|
|
3237
|
+
return `calc(${u(v)}% - ${K}px)`;
|
|
3205
3238
|
}
|
|
3206
3239
|
function p({
|
|
3207
3240
|
stackedStyle: v,
|
|
3208
|
-
desktopStyle:
|
|
3241
|
+
desktopStyle: K
|
|
3209
3242
|
}) {
|
|
3210
|
-
return a === "tablet" ? v :
|
|
3243
|
+
return a === "tablet" ? v : K;
|
|
3211
3244
|
}
|
|
3212
3245
|
function y({
|
|
3213
3246
|
stackedStyle: v,
|
|
3214
|
-
desktopStyle:
|
|
3247
|
+
desktopStyle: K
|
|
3215
3248
|
}) {
|
|
3216
|
-
return a === "never" ?
|
|
3249
|
+
return a === "never" ? K : v;
|
|
3217
3250
|
}
|
|
3218
3251
|
const [x, P] = H(
|
|
3219
3252
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3220
3253
|
);
|
|
3221
|
-
function
|
|
3254
|
+
function _() {
|
|
3222
3255
|
return {
|
|
3223
3256
|
"--flex-dir": x,
|
|
3224
3257
|
"--flex-dir-tablet": p({
|
|
@@ -3227,36 +3260,36 @@ function Oi(e) {
|
|
|
3227
3260
|
})
|
|
3228
3261
|
};
|
|
3229
3262
|
}
|
|
3230
|
-
function
|
|
3231
|
-
const
|
|
3263
|
+
function C(v) {
|
|
3264
|
+
const K = v === 0 ? 0 : t, ae = d(v), se = `${K}px`, W = "100%", ee = 0;
|
|
3232
3265
|
return {
|
|
3233
|
-
width:
|
|
3234
|
-
["marginLeft"]:
|
|
3266
|
+
width: ae,
|
|
3267
|
+
["marginLeft"]: se,
|
|
3235
3268
|
"--column-width-mobile": y({
|
|
3236
|
-
stackedStyle:
|
|
3237
|
-
desktopStyle:
|
|
3269
|
+
stackedStyle: W,
|
|
3270
|
+
desktopStyle: ae
|
|
3238
3271
|
}),
|
|
3239
3272
|
"--column-margin-left-mobile": y({
|
|
3240
|
-
stackedStyle:
|
|
3241
|
-
desktopStyle:
|
|
3273
|
+
stackedStyle: ee,
|
|
3274
|
+
desktopStyle: se
|
|
3242
3275
|
}),
|
|
3243
3276
|
"--column-width-tablet": p({
|
|
3244
|
-
stackedStyle:
|
|
3245
|
-
desktopStyle:
|
|
3277
|
+
stackedStyle: W,
|
|
3278
|
+
desktopStyle: ae
|
|
3246
3279
|
}),
|
|
3247
3280
|
"--column-margin-left-tablet": p({
|
|
3248
|
-
stackedStyle:
|
|
3249
|
-
desktopStyle:
|
|
3281
|
+
stackedStyle: ee,
|
|
3282
|
+
desktopStyle: se
|
|
3250
3283
|
})
|
|
3251
3284
|
};
|
|
3252
3285
|
}
|
|
3253
3286
|
function I(v) {
|
|
3254
|
-
var
|
|
3255
|
-
return
|
|
3256
|
-
((
|
|
3287
|
+
var ae, se;
|
|
3288
|
+
return hr(
|
|
3289
|
+
((se = (ae = e.builderContext.content) == null ? void 0 : ae.meta) == null ? void 0 : se.breakpoints) || {}
|
|
3257
3290
|
)[v].max;
|
|
3258
3291
|
}
|
|
3259
|
-
function
|
|
3292
|
+
function L() {
|
|
3260
3293
|
return `
|
|
3261
3294
|
@media (max-width: ${I("medium")}px) {
|
|
3262
3295
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3287,21 +3320,21 @@ function Oi(e) {
|
|
|
3287
3320
|
/* @__PURE__ */ Z(
|
|
3288
3321
|
"div",
|
|
3289
3322
|
{
|
|
3290
|
-
className: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
3291
|
-
style:
|
|
3323
|
+
className: `builder-columns ${e.builderBlock.id}-breakpoints div-ac8f4142`,
|
|
3324
|
+
style: _(),
|
|
3292
3325
|
children: [
|
|
3293
|
-
/* @__PURE__ */
|
|
3294
|
-
(V = e.columns) == null ? void 0 : V.map((v,
|
|
3326
|
+
/* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(gt, { styles: L() }) }),
|
|
3327
|
+
(V = e.columns) == null ? void 0 : V.map((v, K) => /* @__PURE__ */ ur(
|
|
3295
3328
|
"div",
|
|
3296
3329
|
{
|
|
3297
|
-
className: "builder-column div-
|
|
3298
|
-
style:
|
|
3299
|
-
key:
|
|
3330
|
+
className: "builder-column div-ac8f4142-2",
|
|
3331
|
+
style: C(K),
|
|
3332
|
+
key: K
|
|
3300
3333
|
},
|
|
3301
|
-
/* @__PURE__ */
|
|
3302
|
-
|
|
3334
|
+
/* @__PURE__ */ g(
|
|
3335
|
+
dn,
|
|
3303
3336
|
{
|
|
3304
|
-
path: `component.options.columns.${
|
|
3337
|
+
path: `component.options.columns.${K}.blocks`,
|
|
3305
3338
|
parent: e.builderBlock.id,
|
|
3306
3339
|
styleProp: {
|
|
3307
3340
|
flexGrow: "1"
|
|
@@ -3315,27 +3348,27 @@ function Oi(e) {
|
|
|
3315
3348
|
]
|
|
3316
3349
|
}
|
|
3317
3350
|
),
|
|
3318
|
-
/* @__PURE__ */
|
|
3351
|
+
/* @__PURE__ */ g("style", { children: `.div-ac8f4142 {
|
|
3319
3352
|
display: flex;
|
|
3320
3353
|
line-height: normal;
|
|
3321
|
-
}.div-
|
|
3354
|
+
}.div-ac8f4142-2 {
|
|
3322
3355
|
display: flex;
|
|
3323
3356
|
flex-direction: column;
|
|
3324
3357
|
align-items: stretch;
|
|
3325
3358
|
}` })
|
|
3326
3359
|
] });
|
|
3327
3360
|
}
|
|
3328
|
-
function
|
|
3329
|
-
return /* @__PURE__ */
|
|
3361
|
+
function Bi(e) {
|
|
3362
|
+
return /* @__PURE__ */ g("span", { children: e.children });
|
|
3330
3363
|
}
|
|
3331
3364
|
function rr(e) {
|
|
3332
3365
|
return e.replace(/http(s)?:/, "");
|
|
3333
3366
|
}
|
|
3334
|
-
function
|
|
3367
|
+
function _i(e = "", t, r) {
|
|
3335
3368
|
const n = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3336
3369
|
return e.match(n) ? e.replace(n, "$1" + t + "=" + encodeURIComponent(r) + "$2") : e + i + t + "=" + encodeURIComponent(r);
|
|
3337
3370
|
}
|
|
3338
|
-
function
|
|
3371
|
+
function Li(e, t) {
|
|
3339
3372
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3340
3373
|
return e;
|
|
3341
3374
|
if (t === "master")
|
|
@@ -3354,12 +3387,12 @@ function Wt(e) {
|
|
|
3354
3387
|
if (e.match(/builder\.io/)) {
|
|
3355
3388
|
let r = e;
|
|
3356
3389
|
const n = Number(e.split("?width=")[1]);
|
|
3357
|
-
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${
|
|
3390
|
+
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${_i(e, "width", i)} ${i}w`).concat([r]).join(", ");
|
|
3358
3391
|
}
|
|
3359
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [
|
|
3392
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [Li(e, `${r}x${r}`), r]).filter(([r]) => !!r).map(([r, n]) => `${r} ${n}w`).concat([e]).join(", ") : e;
|
|
3360
3393
|
}
|
|
3361
|
-
function
|
|
3362
|
-
var i, a, s,
|
|
3394
|
+
function $i(e) {
|
|
3395
|
+
var i, a, s, u;
|
|
3363
3396
|
function t() {
|
|
3364
3397
|
var y;
|
|
3365
3398
|
const p = e.image || e.src;
|
|
@@ -3391,8 +3424,8 @@ function Fi(e) {
|
|
|
3391
3424
|
return /* @__PURE__ */ Z(U, { children: [
|
|
3392
3425
|
/* @__PURE__ */ Z(U, { children: [
|
|
3393
3426
|
/* @__PURE__ */ Z("picture", { children: [
|
|
3394
|
-
r() ? /* @__PURE__ */
|
|
3395
|
-
/* @__PURE__ */
|
|
3427
|
+
r() ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g("source", { type: "image/webp", srcSet: r() }) }) : null,
|
|
3428
|
+
/* @__PURE__ */ g(
|
|
3396
3429
|
"img",
|
|
3397
3430
|
{
|
|
3398
3431
|
loading: "lazy",
|
|
@@ -3403,33 +3436,33 @@ function Fi(e) {
|
|
|
3403
3436
|
objectFit: e.backgroundSize || "cover",
|
|
3404
3437
|
...n()
|
|
3405
3438
|
},
|
|
3406
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
3439
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-497e0136",
|
|
3407
3440
|
src: e.image,
|
|
3408
3441
|
srcSet: t(),
|
|
3409
3442
|
sizes: e.sizes
|
|
3410
3443
|
}
|
|
3411
3444
|
)
|
|
3412
3445
|
] }),
|
|
3413
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
3446
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
3414
3447
|
"div",
|
|
3415
3448
|
{
|
|
3416
|
-
className: "builder-image-sizer div-
|
|
3449
|
+
className: "builder-image-sizer div-497e0136",
|
|
3417
3450
|
style: {
|
|
3418
3451
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3419
3452
|
}
|
|
3420
3453
|
}
|
|
3421
3454
|
) }) : null,
|
|
3422
|
-
(
|
|
3423
|
-
!e.fitContent && e.children ? /* @__PURE__ */
|
|
3455
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ g(U, { children: e.children }) : null,
|
|
3456
|
+
!e.fitContent && e.children ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g("div", { className: "div-497e0136-2", children: e.children }) }) : null
|
|
3424
3457
|
] }),
|
|
3425
|
-
/* @__PURE__ */
|
|
3458
|
+
/* @__PURE__ */ g("style", { children: `.img-497e0136 {
|
|
3426
3459
|
opacity: 1;
|
|
3427
3460
|
transition: opacity 0.2s ease-in-out;
|
|
3428
|
-
}.div-
|
|
3461
|
+
}.div-497e0136 {
|
|
3429
3462
|
width: 100%;
|
|
3430
3463
|
pointer-events: none;
|
|
3431
3464
|
font-size: 0;
|
|
3432
|
-
}.div-
|
|
3465
|
+
}.div-497e0136-2 {
|
|
3433
3466
|
display: flex;
|
|
3434
3467
|
flex-direction: column;
|
|
3435
3468
|
align-items: stretch;
|
|
@@ -3441,8 +3474,8 @@ function Fi(e) {
|
|
|
3441
3474
|
}` })
|
|
3442
3475
|
] });
|
|
3443
3476
|
}
|
|
3444
|
-
function
|
|
3445
|
-
return /* @__PURE__ */
|
|
3477
|
+
function Vi(e) {
|
|
3478
|
+
return /* @__PURE__ */ g(
|
|
3446
3479
|
"section",
|
|
3447
3480
|
{
|
|
3448
3481
|
...e.attributes,
|
|
@@ -3466,25 +3499,25 @@ const ut = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((
|
|
|
3466
3499
|
...t,
|
|
3467
3500
|
testVariationId: t.id,
|
|
3468
3501
|
id: e == null ? void 0 : e.id
|
|
3469
|
-
})),
|
|
3502
|
+
})), Di = ({
|
|
3470
3503
|
canTrack: e,
|
|
3471
3504
|
content: t
|
|
3472
|
-
}) => !(!(ut(t).length > 0) || !e ||
|
|
3473
|
-
function
|
|
3505
|
+
}) => !(!(ut(t).length > 0) || !e || Ee());
|
|
3506
|
+
function Wi(e, t, r) {
|
|
3474
3507
|
var s;
|
|
3475
3508
|
function n() {
|
|
3476
|
-
function
|
|
3509
|
+
function u(C, I, L) {
|
|
3477
3510
|
let V = "";
|
|
3478
|
-
if (
|
|
3511
|
+
if (L) {
|
|
3479
3512
|
const v = /* @__PURE__ */ new Date();
|
|
3480
|
-
v.setTime(v.getTime() +
|
|
3513
|
+
v.setTime(v.getTime() + L * 24 * 60 * 60 * 1e3), V = "; expires=" + v.toUTCString();
|
|
3481
3514
|
}
|
|
3482
|
-
document.cookie =
|
|
3515
|
+
document.cookie = C + "=" + (I || "") + V + "; path=/; Secure; SameSite=None";
|
|
3483
3516
|
}
|
|
3484
|
-
function d(
|
|
3485
|
-
const I =
|
|
3486
|
-
for (let V = 0; V <
|
|
3487
|
-
let v =
|
|
3517
|
+
function d(C) {
|
|
3518
|
+
const I = C + "=", L = document.cookie.split(";");
|
|
3519
|
+
for (let V = 0; V < L.length; V++) {
|
|
3520
|
+
let v = L[V];
|
|
3488
3521
|
for (; v.charAt(0) === " "; )
|
|
3489
3522
|
v = v.substring(1, v.length);
|
|
3490
3523
|
if (v.indexOf(I) === 0)
|
|
@@ -3492,68 +3525,68 @@ function _i(e, t, r) {
|
|
|
3492
3525
|
}
|
|
3493
3526
|
return null;
|
|
3494
3527
|
}
|
|
3495
|
-
const p = `builder.tests.${e}`, y = d(p), x = t.map((
|
|
3528
|
+
const p = `builder.tests.${e}`, y = d(p), x = t.map((C) => C.id).concat(e);
|
|
3496
3529
|
if (y && x.includes(y))
|
|
3497
3530
|
return y;
|
|
3498
3531
|
let P = 0;
|
|
3499
|
-
const
|
|
3500
|
-
for (let
|
|
3501
|
-
const I = t[
|
|
3502
|
-
if (P +=
|
|
3503
|
-
return
|
|
3532
|
+
const _ = Math.random();
|
|
3533
|
+
for (let C = 0; C < t.length; C++) {
|
|
3534
|
+
const I = t[C], L = I.testRatio;
|
|
3535
|
+
if (P += L, _ < P)
|
|
3536
|
+
return u(p, I.id), I.id;
|
|
3504
3537
|
}
|
|
3505
|
-
return
|
|
3538
|
+
return u(p, e), e;
|
|
3506
3539
|
}
|
|
3507
3540
|
const i = n(), a = (s = document.currentScript) == null ? void 0 : s.previousElementSibling;
|
|
3508
3541
|
if (r) {
|
|
3509
3542
|
a.remove();
|
|
3510
|
-
const
|
|
3511
|
-
|
|
3543
|
+
const u = document.currentScript;
|
|
3544
|
+
u == null || u.remove();
|
|
3512
3545
|
} else {
|
|
3513
|
-
const
|
|
3546
|
+
const u = t.concat({
|
|
3514
3547
|
id: e
|
|
3515
3548
|
}).filter((d) => d.id !== i).map((d) => `.variant-${d.id} { display: none; }
|
|
3516
3549
|
`).join("");
|
|
3517
|
-
a.innerHTML =
|
|
3550
|
+
a.innerHTML = u;
|
|
3518
3551
|
}
|
|
3519
3552
|
}
|
|
3520
|
-
function
|
|
3553
|
+
function Hi(e, t, r) {
|
|
3521
3554
|
var d;
|
|
3522
3555
|
if (!navigator.cookieEnabled)
|
|
3523
3556
|
return;
|
|
3524
3557
|
function n(p) {
|
|
3525
3558
|
const y = p + "=", x = document.cookie.split(";");
|
|
3526
3559
|
for (let P = 0; P < x.length; P++) {
|
|
3527
|
-
let
|
|
3528
|
-
for (;
|
|
3529
|
-
|
|
3530
|
-
if (
|
|
3531
|
-
return
|
|
3560
|
+
let _ = x[P];
|
|
3561
|
+
for (; _.charAt(0) === " "; )
|
|
3562
|
+
_ = _.substring(1, _.length);
|
|
3563
|
+
if (_.indexOf(y) === 0)
|
|
3564
|
+
return _.substring(y.length, _.length);
|
|
3532
3565
|
}
|
|
3533
3566
|
return null;
|
|
3534
3567
|
}
|
|
3535
|
-
const i = `builder.tests.${t}`, a = n(i), s = (d = document.currentScript) == null ? void 0 : d.parentElement,
|
|
3568
|
+
const i = `builder.tests.${t}`, a = n(i), s = (d = document.currentScript) == null ? void 0 : d.parentElement, u = e === t;
|
|
3536
3569
|
if (a === e) {
|
|
3537
|
-
if (
|
|
3570
|
+
if (u)
|
|
3538
3571
|
return;
|
|
3539
3572
|
s == null || s.removeAttribute("hidden"), s == null || s.removeAttribute("aria-hidden");
|
|
3540
3573
|
} else {
|
|
3541
|
-
|
|
3574
|
+
u && (r ? s == null || s.remove() : (s == null || s.setAttribute("hidden", "true"), s == null || s.setAttribute("aria-hidden", "true")));
|
|
3542
3575
|
return;
|
|
3543
3576
|
}
|
|
3544
3577
|
}
|
|
3545
|
-
const
|
|
3546
|
-
const e =
|
|
3578
|
+
const Ki = (e) => e === "react" || e === "reactNative", kr = Ki(tt), Cr = "builderIoAbTest", Er = "builderIoRenderContent", Gi = () => {
|
|
3579
|
+
const e = Wi.toString().replace(/\s+/g, " "), t = Hi.toString().replace(/\s+/g, " ");
|
|
3547
3580
|
return `
|
|
3548
|
-
window.${
|
|
3549
|
-
window.${
|
|
3581
|
+
window.${Cr} = ${e}
|
|
3582
|
+
window.${Er} = ${t}
|
|
3550
3583
|
`;
|
|
3551
|
-
},
|
|
3552
|
-
window.${
|
|
3584
|
+
}, zi = (e, t) => `
|
|
3585
|
+
window.${Cr}("${t}",${JSON.stringify(e)}, ${kr})`, Xi = ({
|
|
3553
3586
|
contentId: e,
|
|
3554
3587
|
variationId: t
|
|
3555
3588
|
}) => `
|
|
3556
|
-
window.${
|
|
3589
|
+
window.${Er}("${t}", "${e}", ${kr})`, Ji = {
|
|
3557
3590
|
name: "Core:Button",
|
|
3558
3591
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3559
3592
|
defaultStyles: {
|
|
@@ -3586,7 +3619,7 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(tt), wr = "build
|
|
|
3586
3619
|
}],
|
|
3587
3620
|
static: !0,
|
|
3588
3621
|
noWrap: !0
|
|
3589
|
-
},
|
|
3622
|
+
}, Yi = {
|
|
3590
3623
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3591
3624
|
name: "Columns",
|
|
3592
3625
|
isRSC: !0,
|
|
@@ -3765,7 +3798,7 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(tt), wr = "build
|
|
|
3765
3798
|
});
|
|
3766
3799
|
}
|
|
3767
3800
|
const r = e.get("columns");
|
|
3768
|
-
Array.isArray(r) && r.find((i) => i.get("width")) && (r.find((a) => !a.get("width")) || r.reduce((
|
|
3801
|
+
Array.isArray(r) && r.find((i) => i.get("width")) && (r.find((a) => !a.get("width")) || r.reduce((u, d) => u + d.get("width"), 0) !== 100) && t();
|
|
3769
3802
|
}
|
|
3770
3803
|
}, {
|
|
3771
3804
|
name: "space",
|
|
@@ -3787,13 +3820,13 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(tt), wr = "build
|
|
|
3787
3820
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3788
3821
|
advanced: !0
|
|
3789
3822
|
}]
|
|
3790
|
-
},
|
|
3823
|
+
}, qi = {
|
|
3791
3824
|
name: "Fragment",
|
|
3792
3825
|
static: !0,
|
|
3793
3826
|
hidden: !0,
|
|
3794
3827
|
canHaveChildren: !0,
|
|
3795
3828
|
noWrap: !0
|
|
3796
|
-
},
|
|
3829
|
+
}, Zi = {
|
|
3797
3830
|
name: "Image",
|
|
3798
3831
|
static: !0,
|
|
3799
3832
|
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",
|
|
@@ -3813,7 +3846,7 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(tt), wr = "build
|
|
|
3813
3846
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
3814
3847
|
onChange: (e) => {
|
|
3815
3848
|
e.delete("srcset"), e.delete("noWebp");
|
|
3816
|
-
function r(s,
|
|
3849
|
+
function r(s, u = 6e4) {
|
|
3817
3850
|
return new Promise((d, p) => {
|
|
3818
3851
|
const y = document.createElement("img");
|
|
3819
3852
|
let x = !1;
|
|
@@ -3823,7 +3856,7 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(tt), wr = "build
|
|
|
3823
3856
|
console.warn("Image load failed", P.error), p(P.error);
|
|
3824
3857
|
}), y.src = s, setTimeout(() => {
|
|
3825
3858
|
x || p(new Error("Image load timed out"));
|
|
3826
|
-
},
|
|
3859
|
+
}, u);
|
|
3827
3860
|
});
|
|
3828
3861
|
}
|
|
3829
3862
|
function n(s) {
|
|
@@ -3834,8 +3867,8 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(tt), wr = "build
|
|
|
3834
3867
|
s.type.includes("svg") && e.set("noWebp", !0);
|
|
3835
3868
|
}), i && (!a || a === 0.7041))
|
|
3836
3869
|
return r(i).then((s) => {
|
|
3837
|
-
const
|
|
3838
|
-
e.get("image") === i && (!
|
|
3870
|
+
const u = e.get("aspectRatio");
|
|
3871
|
+
e.get("image") === i && (!u || u === 0.7041) && s.width && s.height && (e.set("aspectRatio", n(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
3839
3872
|
});
|
|
3840
3873
|
}
|
|
3841
3874
|
}, {
|
|
@@ -3893,7 +3926,7 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(tt), wr = "build
|
|
|
3893
3926
|
advanced: !0,
|
|
3894
3927
|
defaultValue: 0.7041
|
|
3895
3928
|
}]
|
|
3896
|
-
},
|
|
3929
|
+
}, Qi = {
|
|
3897
3930
|
name: "Core:Section",
|
|
3898
3931
|
static: !0,
|
|
3899
3932
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3932,7 +3965,7 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(tt), wr = "build
|
|
|
3932
3965
|
}
|
|
3933
3966
|
}
|
|
3934
3967
|
}]
|
|
3935
|
-
},
|
|
3968
|
+
}, eo = {
|
|
3936
3969
|
name: "Symbol",
|
|
3937
3970
|
noWrap: !0,
|
|
3938
3971
|
static: !0,
|
|
@@ -3965,7 +3998,7 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(tt), wr = "build
|
|
|
3965
3998
|
hideFromUI: !0,
|
|
3966
3999
|
type: "boolean"
|
|
3967
4000
|
}]
|
|
3968
|
-
},
|
|
4001
|
+
}, to = {
|
|
3969
4002
|
name: "Text",
|
|
3970
4003
|
static: !0,
|
|
3971
4004
|
isRSC: !0,
|
|
@@ -3984,9 +4017,9 @@ const Li = (e) => e === "react" || e === "reactNative", Sr = Li(tt), wr = "build
|
|
|
3984
4017
|
textAlign: "center"
|
|
3985
4018
|
}
|
|
3986
4019
|
};
|
|
3987
|
-
function
|
|
4020
|
+
function no(e) {
|
|
3988
4021
|
var t;
|
|
3989
|
-
return /* @__PURE__ */
|
|
4022
|
+
return /* @__PURE__ */ g(
|
|
3990
4023
|
"div",
|
|
3991
4024
|
{
|
|
3992
4025
|
className: "builder-text",
|
|
@@ -3997,7 +4030,7 @@ function qi(e) {
|
|
|
3997
4030
|
}
|
|
3998
4031
|
);
|
|
3999
4032
|
}
|
|
4000
|
-
const
|
|
4033
|
+
const ro = {
|
|
4001
4034
|
name: "Video",
|
|
4002
4035
|
canHaveChildren: !0,
|
|
4003
4036
|
defaultStyles: {
|
|
@@ -4079,7 +4112,7 @@ const Zi = {
|
|
|
4079
4112
|
advanced: !0
|
|
4080
4113
|
}]
|
|
4081
4114
|
};
|
|
4082
|
-
function
|
|
4115
|
+
function io(e) {
|
|
4083
4116
|
var n;
|
|
4084
4117
|
function t() {
|
|
4085
4118
|
return {
|
|
@@ -4106,7 +4139,7 @@ function Qi(e) {
|
|
|
4106
4139
|
...t()
|
|
4107
4140
|
};
|
|
4108
4141
|
}
|
|
4109
|
-
return /* @__PURE__ */
|
|
4142
|
+
return /* @__PURE__ */ g(
|
|
4110
4143
|
"video",
|
|
4111
4144
|
{
|
|
4112
4145
|
...r(),
|
|
@@ -4126,7 +4159,7 @@ function Qi(e) {
|
|
|
4126
4159
|
}
|
|
4127
4160
|
);
|
|
4128
4161
|
}
|
|
4129
|
-
const
|
|
4162
|
+
const oo = {
|
|
4130
4163
|
name: "Embed",
|
|
4131
4164
|
static: !0,
|
|
4132
4165
|
inputs: [{
|
|
@@ -4151,9 +4184,9 @@ const eo = {
|
|
|
4151
4184
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4152
4185
|
hideFromUI: !0
|
|
4153
4186
|
}]
|
|
4154
|
-
},
|
|
4155
|
-
function
|
|
4156
|
-
const t =
|
|
4187
|
+
}, ao = ["text/javascript", "application/javascript", "application/ecmascript"], so = (e) => ao.includes(e.type);
|
|
4188
|
+
function lo(e) {
|
|
4189
|
+
const t = Yt(null), [r, n] = H(() => []), [i, a] = H(() => []), [s, u] = H(() => !1);
|
|
4157
4190
|
function d() {
|
|
4158
4191
|
if (!t.current || !t.current.getElementsByTagName)
|
|
4159
4192
|
return;
|
|
@@ -4164,7 +4197,7 @@ function ro(e) {
|
|
|
4164
4197
|
r.push(x.src);
|
|
4165
4198
|
const P = document.createElement("script");
|
|
4166
4199
|
P.async = !0, P.src = x.src, document.head.appendChild(P);
|
|
4167
|
-
} else if (
|
|
4200
|
+
} else if (so(x) && !i.includes(x.innerText))
|
|
4168
4201
|
try {
|
|
4169
4202
|
i.push(x.innerText), new Function(x.innerText)();
|
|
4170
4203
|
} catch (P) {
|
|
@@ -4172,9 +4205,9 @@ function ro(e) {
|
|
|
4172
4205
|
}
|
|
4173
4206
|
}
|
|
4174
4207
|
}
|
|
4175
|
-
return
|
|
4176
|
-
t.current && !s && (
|
|
4177
|
-
}, [t.current, s]), /* @__PURE__ */
|
|
4208
|
+
return Q(() => {
|
|
4209
|
+
t.current && !s && (u(!0), d());
|
|
4210
|
+
}, [t.current, s]), /* @__PURE__ */ g(
|
|
4178
4211
|
"div",
|
|
4179
4212
|
{
|
|
4180
4213
|
className: "builder-embed",
|
|
@@ -4183,8 +4216,8 @@ function ro(e) {
|
|
|
4183
4216
|
}
|
|
4184
4217
|
);
|
|
4185
4218
|
}
|
|
4186
|
-
function
|
|
4187
|
-
return /* @__PURE__ */
|
|
4219
|
+
function co(e) {
|
|
4220
|
+
return /* @__PURE__ */ g(
|
|
4188
4221
|
"img",
|
|
4189
4222
|
{
|
|
4190
4223
|
style: {
|
|
@@ -4198,7 +4231,7 @@ function io(e) {
|
|
|
4198
4231
|
Ce() && e.imgSrc || "default-key"
|
|
4199
4232
|
);
|
|
4200
4233
|
}
|
|
4201
|
-
const
|
|
4234
|
+
const uo = {
|
|
4202
4235
|
// friendlyName?
|
|
4203
4236
|
name: "Raw:Img",
|
|
4204
4237
|
hideFromInsertMenu: !0,
|
|
@@ -4213,38 +4246,36 @@ const oo = {
|
|
|
4213
4246
|
noWrap: !0,
|
|
4214
4247
|
static: !0
|
|
4215
4248
|
};
|
|
4216
|
-
function
|
|
4217
|
-
const t =
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4249
|
+
function fo(e) {
|
|
4250
|
+
const t = Yt(null), [r, n] = H(() => []), [i, a] = H(() => []);
|
|
4251
|
+
return Q(() => {
|
|
4252
|
+
var u;
|
|
4253
|
+
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window > "u")
|
|
4254
|
+
return;
|
|
4255
|
+
const s = t.current.getElementsByTagName("script");
|
|
4256
|
+
for (let d = 0; d < s.length; d++) {
|
|
4257
|
+
const p = s[d];
|
|
4258
|
+
if (p.src) {
|
|
4259
|
+
if (r.includes(p.src))
|
|
4260
|
+
continue;
|
|
4261
|
+
r.push(p.src);
|
|
4262
|
+
const y = document.createElement("script");
|
|
4263
|
+
y.async = !0, y.src = p.src, document.head.appendChild(y);
|
|
4264
|
+
} else if (!p.type || [
|
|
4265
|
+
"text/javascript",
|
|
4266
|
+
"application/javascript",
|
|
4267
|
+
"application/ecmascript"
|
|
4268
|
+
].includes(p.type)) {
|
|
4269
|
+
if (i.includes(p.innerText))
|
|
4270
|
+
continue;
|
|
4271
|
+
try {
|
|
4272
|
+
i.push(p.innerText), new Function(p.innerText)();
|
|
4273
|
+
} catch (y) {
|
|
4274
|
+
console.warn("`CustomCode`: Error running script:", y);
|
|
4241
4275
|
}
|
|
4242
4276
|
}
|
|
4243
4277
|
}
|
|
4244
|
-
}
|
|
4245
|
-
return le(() => {
|
|
4246
|
-
s();
|
|
4247
|
-
}, []), /* @__PURE__ */ m(
|
|
4278
|
+
}, []), /* @__PURE__ */ g(
|
|
4248
4279
|
"div",
|
|
4249
4280
|
{
|
|
4250
4281
|
ref: t,
|
|
@@ -4253,7 +4284,7 @@ function ao(e) {
|
|
|
4253
4284
|
}
|
|
4254
4285
|
);
|
|
4255
4286
|
}
|
|
4256
|
-
const
|
|
4287
|
+
const ho = {
|
|
4257
4288
|
name: "Custom Code",
|
|
4258
4289
|
static: !0,
|
|
4259
4290
|
requiredPermissions: ["editCode"],
|
|
@@ -4276,39 +4307,39 @@ const so = {
|
|
|
4276
4307
|
advanced: !0
|
|
4277
4308
|
}]
|
|
4278
4309
|
}, ir = () => [{
|
|
4279
|
-
component:
|
|
4280
|
-
...
|
|
4310
|
+
component: Jr,
|
|
4311
|
+
...Ji
|
|
4281
4312
|
}, {
|
|
4282
|
-
component:
|
|
4283
|
-
...
|
|
4313
|
+
component: Ui,
|
|
4314
|
+
...Yi
|
|
4284
4315
|
}, {
|
|
4285
|
-
component:
|
|
4286
|
-
...
|
|
4316
|
+
component: fo,
|
|
4317
|
+
...ho
|
|
4287
4318
|
}, {
|
|
4288
|
-
component:
|
|
4289
|
-
...
|
|
4319
|
+
component: lo,
|
|
4320
|
+
...oo
|
|
4290
4321
|
}, {
|
|
4291
|
-
component:
|
|
4292
|
-
...
|
|
4322
|
+
component: Bi,
|
|
4323
|
+
...qi
|
|
4293
4324
|
}, {
|
|
4294
|
-
component:
|
|
4295
|
-
...
|
|
4325
|
+
component: $i,
|
|
4326
|
+
...Zi
|
|
4296
4327
|
}, {
|
|
4297
|
-
component:
|
|
4298
|
-
...
|
|
4328
|
+
component: co,
|
|
4329
|
+
...uo
|
|
4299
4330
|
}, {
|
|
4300
|
-
component:
|
|
4301
|
-
...
|
|
4331
|
+
component: Vi,
|
|
4332
|
+
...Qi
|
|
4302
4333
|
}, {
|
|
4303
|
-
component:
|
|
4304
|
-
...
|
|
4334
|
+
component: jo,
|
|
4335
|
+
...eo
|
|
4305
4336
|
}, {
|
|
4306
|
-
component:
|
|
4307
|
-
...
|
|
4337
|
+
component: no,
|
|
4338
|
+
...to
|
|
4308
4339
|
}, {
|
|
4309
|
-
component:
|
|
4310
|
-
...
|
|
4311
|
-
}],
|
|
4340
|
+
component: io,
|
|
4341
|
+
...ro
|
|
4342
|
+
}], po = (e) => {
|
|
4312
4343
|
var a;
|
|
4313
4344
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = e.fileUrl ?? ((a = e == null ? void 0 : e.files) == null ? void 0 : a.regular);
|
|
4314
4345
|
let i = "";
|
|
@@ -4334,23 +4365,23 @@ font-weight: ${s};
|
|
|
4334
4365
|
`.trim());
|
|
4335
4366
|
}
|
|
4336
4367
|
return i;
|
|
4337
|
-
},
|
|
4368
|
+
}, mo = ({
|
|
4338
4369
|
customFonts: e
|
|
4339
4370
|
}) => {
|
|
4340
4371
|
var t;
|
|
4341
|
-
return ((t = e == null ? void 0 : e.map((r) =>
|
|
4342
|
-
},
|
|
4372
|
+
return ((t = e == null ? void 0 : e.map((r) => po(r))) == null ? void 0 : t.join(" ")) || "";
|
|
4373
|
+
}, go = ({
|
|
4343
4374
|
cssCode: e,
|
|
4344
4375
|
contentId: t
|
|
4345
4376
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4346
|
-
function
|
|
4377
|
+
function yo(e) {
|
|
4347
4378
|
const [t, r] = H(
|
|
4348
4379
|
() => `
|
|
4349
|
-
${
|
|
4380
|
+
${go({
|
|
4350
4381
|
cssCode: e.cssCode,
|
|
4351
4382
|
contentId: e.contentId
|
|
4352
4383
|
})}
|
|
4353
|
-
${
|
|
4384
|
+
${mo({
|
|
4354
4385
|
customFonts: e.customFonts
|
|
4355
4386
|
})}
|
|
4356
4387
|
|
|
@@ -4368,21 +4399,21 @@ ${co({
|
|
|
4368
4399
|
}
|
|
4369
4400
|
`.trim()
|
|
4370
4401
|
);
|
|
4371
|
-
return /* @__PURE__ */
|
|
4402
|
+
return /* @__PURE__ */ g(gt, { styles: t });
|
|
4372
4403
|
}
|
|
4373
|
-
const
|
|
4404
|
+
const vo = ({
|
|
4374
4405
|
content: e,
|
|
4375
4406
|
data: t,
|
|
4376
4407
|
locale: r
|
|
4377
4408
|
}) => {
|
|
4378
|
-
var a, s,
|
|
4409
|
+
var a, s, u;
|
|
4379
4410
|
const n = {};
|
|
4380
4411
|
(s = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || s.forEach((d) => {
|
|
4381
4412
|
var p;
|
|
4382
4413
|
d.name && d.defaultValue !== void 0 && ((p = e == null ? void 0 : e.data) != null && p.state) && e.data.state[d.name] === void 0 && (n[d.name] = d.defaultValue);
|
|
4383
4414
|
});
|
|
4384
4415
|
const i = {
|
|
4385
|
-
...(
|
|
4416
|
+
...(u = e == null ? void 0 : e.data) == null ? void 0 : u.state,
|
|
4386
4417
|
...t,
|
|
4387
4418
|
...r ? {
|
|
4388
4419
|
locale: r
|
|
@@ -4392,7 +4423,7 @@ const ho = ({
|
|
|
4392
4423
|
...n,
|
|
4393
4424
|
...i
|
|
4394
4425
|
};
|
|
4395
|
-
},
|
|
4426
|
+
}, xo = ({
|
|
4396
4427
|
content: e,
|
|
4397
4428
|
data: t
|
|
4398
4429
|
}) => e ? {
|
|
@@ -4402,8 +4433,8 @@ const ho = ({
|
|
|
4402
4433
|
...t
|
|
4403
4434
|
},
|
|
4404
4435
|
meta: e == null ? void 0 : e.meta
|
|
4405
|
-
} : void 0,
|
|
4406
|
-
|
|
4436
|
+
} : void 0, bo = "0.7.1-0", So = () => {
|
|
4437
|
+
Hr("insertMenu", {
|
|
4407
4438
|
name: "_default",
|
|
4408
4439
|
default: !0,
|
|
4409
4440
|
items: [{
|
|
@@ -4426,13 +4457,13 @@ const ho = ({
|
|
|
4426
4457
|
});
|
|
4427
4458
|
};
|
|
4428
4459
|
let or = !1;
|
|
4429
|
-
const
|
|
4460
|
+
const wo = (e = {}) => {
|
|
4430
4461
|
var t, r;
|
|
4431
|
-
or || (or = !0,
|
|
4462
|
+
or || (or = !0, Ee() && ((t = window.parent) == null || t.postMessage({
|
|
4432
4463
|
type: "builder.sdkInfo",
|
|
4433
4464
|
data: {
|
|
4434
4465
|
target: tt,
|
|
4435
|
-
version:
|
|
4466
|
+
version: bo,
|
|
4436
4467
|
supportsPatchUpdates: !1,
|
|
4437
4468
|
// Supports builder-model="..." attribute which is needed to
|
|
4438
4469
|
// scope our '+ add block' button styling
|
|
@@ -4451,10 +4482,10 @@ const yo = (e = {}) => {
|
|
|
4451
4482
|
if (n != null && n.type)
|
|
4452
4483
|
switch (n.type) {
|
|
4453
4484
|
case "builder.evaluate": {
|
|
4454
|
-
const s = n.data.text,
|
|
4485
|
+
const s = n.data.text, u = n.data.arguments || [], d = n.data.id, p = new Function(s);
|
|
4455
4486
|
let y, x = null;
|
|
4456
4487
|
try {
|
|
4457
|
-
y = p.apply(null,
|
|
4488
|
+
y = p.apply(null, u);
|
|
4458
4489
|
} catch (P) {
|
|
4459
4490
|
x = P;
|
|
4460
4491
|
}
|
|
@@ -4465,8 +4496,8 @@ const yo = (e = {}) => {
|
|
|
4465
4496
|
error: x.message
|
|
4466
4497
|
}
|
|
4467
4498
|
}, "*") : y && typeof y.then == "function" ? y.then((P) => {
|
|
4468
|
-
var
|
|
4469
|
-
(
|
|
4499
|
+
var _;
|
|
4500
|
+
(_ = window.parent) == null || _.postMessage({
|
|
4470
4501
|
type: "builder.evaluateResult",
|
|
4471
4502
|
data: {
|
|
4472
4503
|
id: d,
|
|
@@ -4488,7 +4519,7 @@ const yo = (e = {}) => {
|
|
|
4488
4519
|
function ar(e) {
|
|
4489
4520
|
return Math.round(e * 1e3) / 1e3;
|
|
4490
4521
|
}
|
|
4491
|
-
const
|
|
4522
|
+
const ko = (e, t, r = !0) => {
|
|
4492
4523
|
if (!(e instanceof HTMLElement))
|
|
4493
4524
|
return null;
|
|
4494
4525
|
let n = r ? e : e.parentElement;
|
|
@@ -4499,7 +4530,7 @@ const vo = (e, t, r = !0) => {
|
|
|
4499
4530
|
return n;
|
|
4500
4531
|
} while (n = n.parentElement);
|
|
4501
4532
|
return null;
|
|
4502
|
-
},
|
|
4533
|
+
}, Co = (e) => ko(e, (t) => {
|
|
4503
4534
|
const r = t.getAttribute("builder-id") || t.id;
|
|
4504
4535
|
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4505
4536
|
}), sr = ({
|
|
@@ -4511,8 +4542,8 @@ const vo = (e, t, r = !0) => {
|
|
|
4511
4542
|
x: a,
|
|
4512
4543
|
y: s
|
|
4513
4544
|
};
|
|
4514
|
-
},
|
|
4515
|
-
const t = e.target, r = t &&
|
|
4545
|
+
}, Eo = (e) => {
|
|
4546
|
+
const t = e.target, r = t && Co(t), n = (r == null ? void 0 : r.getAttribute("builder-id")) || (r == null ? void 0 : r.id);
|
|
4516
4547
|
return {
|
|
4517
4548
|
targetBuilderElement: n || void 0,
|
|
4518
4549
|
metadata: {
|
|
@@ -4528,91 +4559,89 @@ const vo = (e, t, r = !0) => {
|
|
|
4528
4559
|
}
|
|
4529
4560
|
};
|
|
4530
4561
|
};
|
|
4531
|
-
function
|
|
4532
|
-
var
|
|
4533
|
-
const t =
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
var N, M, j, W, ce;
|
|
4538
|
-
const E = {
|
|
4562
|
+
function Io(e) {
|
|
4563
|
+
var ae, se, W, ee, T;
|
|
4564
|
+
const t = Yt(null), [r, n] = H(() => 0);
|
|
4565
|
+
function i(O) {
|
|
4566
|
+
var B, M, j, D, Se;
|
|
4567
|
+
const b = {
|
|
4539
4568
|
...e.builderContextSignal.content,
|
|
4540
|
-
...
|
|
4569
|
+
...O,
|
|
4541
4570
|
data: {
|
|
4542
|
-
...(
|
|
4543
|
-
...
|
|
4571
|
+
...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
|
|
4572
|
+
...O == null ? void 0 : O.data
|
|
4544
4573
|
},
|
|
4545
4574
|
meta: {
|
|
4546
4575
|
...(M = e.builderContextSignal.content) == null ? void 0 : M.meta,
|
|
4547
|
-
...
|
|
4548
|
-
breakpoints: ((j =
|
|
4576
|
+
...O == null ? void 0 : O.meta,
|
|
4577
|
+
breakpoints: ((j = O == null ? void 0 : O.meta) == null ? void 0 : j.breakpoints) || ((Se = (D = e.builderContextSignal.content) == null ? void 0 : D.meta) == null ? void 0 : Se.breakpoints)
|
|
4549
4578
|
}
|
|
4550
4579
|
};
|
|
4551
|
-
e.setBuilderContextSignal((
|
|
4552
|
-
...
|
|
4553
|
-
content:
|
|
4580
|
+
e.setBuilderContextSignal((ie) => ({
|
|
4581
|
+
...ie,
|
|
4582
|
+
content: b
|
|
4554
4583
|
}));
|
|
4555
4584
|
}
|
|
4556
4585
|
H(() => 0);
|
|
4557
|
-
const [
|
|
4586
|
+
const [a, s] = H(
|
|
4558
4587
|
() => !1
|
|
4559
4588
|
);
|
|
4560
|
-
function
|
|
4561
|
-
var
|
|
4562
|
-
const { data:
|
|
4563
|
-
if (
|
|
4564
|
-
switch (
|
|
4589
|
+
function u(O) {
|
|
4590
|
+
var B;
|
|
4591
|
+
const { data: b } = O;
|
|
4592
|
+
if (b)
|
|
4593
|
+
switch (b.type) {
|
|
4565
4594
|
case "builder.configureSdk": {
|
|
4566
|
-
const M =
|
|
4567
|
-
if (!
|
|
4595
|
+
const M = b.data, { breakpoints: j, contentId: D } = M;
|
|
4596
|
+
if (!D || D !== ((B = e.builderContextSignal.content) == null ? void 0 : B.id))
|
|
4568
4597
|
return;
|
|
4569
|
-
j &&
|
|
4598
|
+
j && i({
|
|
4570
4599
|
meta: {
|
|
4571
4600
|
breakpoints: j
|
|
4572
4601
|
}
|
|
4573
|
-
}),
|
|
4602
|
+
}), n(r + 1);
|
|
4574
4603
|
break;
|
|
4575
4604
|
}
|
|
4576
4605
|
case "builder.contentUpdate": {
|
|
4577
|
-
const M =
|
|
4578
|
-
j === e.model && (
|
|
4606
|
+
const M = b.data, j = M.key || M.alias || M.entry || M.modelName, D = M.data;
|
|
4607
|
+
j === e.model && (i(D), n(r + 1));
|
|
4579
4608
|
break;
|
|
4580
4609
|
}
|
|
4581
4610
|
}
|
|
4582
4611
|
}
|
|
4583
|
-
function
|
|
4584
|
-
var
|
|
4585
|
-
const
|
|
4586
|
-
|
|
4587
|
-
code:
|
|
4612
|
+
function d() {
|
|
4613
|
+
var b, B;
|
|
4614
|
+
const O = (B = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : B.jsCode;
|
|
4615
|
+
O && et({
|
|
4616
|
+
code: O,
|
|
4588
4617
|
context: e.context || {},
|
|
4589
4618
|
localState: void 0,
|
|
4590
4619
|
rootState: e.builderContextSignal.rootState,
|
|
4591
4620
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4592
4621
|
});
|
|
4593
4622
|
}
|
|
4594
|
-
const [
|
|
4595
|
-
function
|
|
4596
|
-
var
|
|
4623
|
+
const [p, y] = H(() => ({})), [x, P] = H(() => !1);
|
|
4624
|
+
function _(O) {
|
|
4625
|
+
var b, B;
|
|
4597
4626
|
if (e.builderContextSignal.content) {
|
|
4598
|
-
const M = (
|
|
4599
|
-
|
|
4627
|
+
const M = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, j = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4628
|
+
Kn({
|
|
4600
4629
|
type: "click",
|
|
4601
|
-
canTrack:
|
|
4630
|
+
canTrack: ft(e.canTrack),
|
|
4602
4631
|
contentId: j,
|
|
4603
4632
|
apiKey: e.apiKey,
|
|
4604
4633
|
variationId: M !== j ? M : void 0,
|
|
4605
|
-
...
|
|
4606
|
-
unique: !
|
|
4634
|
+
...Eo(O),
|
|
4635
|
+
unique: !x
|
|
4607
4636
|
});
|
|
4608
4637
|
}
|
|
4609
|
-
|
|
4638
|
+
x || P(!0);
|
|
4610
4639
|
}
|
|
4611
|
-
function
|
|
4612
|
-
return
|
|
4640
|
+
function C(O) {
|
|
4641
|
+
return O.replace(
|
|
4613
4642
|
/{{([^}]+)}}/g,
|
|
4614
|
-
(
|
|
4615
|
-
code:
|
|
4643
|
+
(b, B) => et({
|
|
4644
|
+
code: B,
|
|
4616
4645
|
context: e.context || {},
|
|
4617
4646
|
localState: void 0,
|
|
4618
4647
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4620,38 +4649,38 @@ function So(e) {
|
|
|
4620
4649
|
})
|
|
4621
4650
|
);
|
|
4622
4651
|
}
|
|
4623
|
-
function
|
|
4624
|
-
|
|
4625
|
-
var j,
|
|
4652
|
+
function I({ url: O, key: b }) {
|
|
4653
|
+
zr(O).then((B) => B.json()).then((B) => {
|
|
4654
|
+
var j, D;
|
|
4626
4655
|
const M = {
|
|
4627
4656
|
...e.builderContextSignal.rootState,
|
|
4628
|
-
[
|
|
4657
|
+
[b]: B
|
|
4629
4658
|
};
|
|
4630
|
-
(
|
|
4631
|
-
}).catch((
|
|
4632
|
-
console.error("error fetching dynamic data",
|
|
4659
|
+
(D = (j = e.builderContextSignal).rootSetState) == null || D.call(j, M), p[b] = !0;
|
|
4660
|
+
}).catch((B) => {
|
|
4661
|
+
console.error("error fetching dynamic data", O, B);
|
|
4633
4662
|
});
|
|
4634
4663
|
}
|
|
4635
|
-
function
|
|
4636
|
-
var
|
|
4637
|
-
const
|
|
4638
|
-
Object.entries(
|
|
4639
|
-
if (j && (!
|
|
4640
|
-
const
|
|
4641
|
-
|
|
4642
|
-
url:
|
|
4664
|
+
function L() {
|
|
4665
|
+
var b, B;
|
|
4666
|
+
const O = ((B = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : B.httpRequests) ?? {};
|
|
4667
|
+
Object.entries(O).forEach(([M, j]) => {
|
|
4668
|
+
if (j && (!p[M] || Ce())) {
|
|
4669
|
+
const D = C(j);
|
|
4670
|
+
I({
|
|
4671
|
+
url: D,
|
|
4643
4672
|
key: M
|
|
4644
4673
|
});
|
|
4645
4674
|
}
|
|
4646
4675
|
});
|
|
4647
4676
|
}
|
|
4648
|
-
function
|
|
4677
|
+
function V() {
|
|
4649
4678
|
Ce() && window.dispatchEvent(
|
|
4650
4679
|
new CustomEvent(
|
|
4651
4680
|
"builder:component:stateChange",
|
|
4652
4681
|
{
|
|
4653
4682
|
detail: {
|
|
4654
|
-
state:
|
|
4683
|
+
state: qt(e.builderContextSignal.rootState),
|
|
4655
4684
|
ref: {
|
|
4656
4685
|
name: e.model
|
|
4657
4686
|
}
|
|
@@ -4660,90 +4689,119 @@ function So(e) {
|
|
|
4660
4689
|
)
|
|
4661
4690
|
);
|
|
4662
4691
|
}
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4692
|
+
function v(O) {
|
|
4693
|
+
n(r + 1), window.addEventListener("message", u), So(), wo({
|
|
4694
|
+
...e.locale ? {
|
|
4695
|
+
locale: e.locale
|
|
4696
|
+
} : {},
|
|
4697
|
+
...e.includeRefs ? {
|
|
4698
|
+
includeRefs: e.includeRefs
|
|
4699
|
+
} : {},
|
|
4700
|
+
...e.enrich ? {
|
|
4701
|
+
enrich: e.enrich
|
|
4702
|
+
} : {}
|
|
4703
|
+
}), Object.values(
|
|
4704
|
+
e.builderContextSignal.componentInfos
|
|
4705
|
+
).forEach((b) => {
|
|
4706
|
+
var M;
|
|
4707
|
+
const B = Gr(b);
|
|
4708
|
+
(M = window.parent) == null || M.postMessage(B, "*");
|
|
4709
|
+
}), window.addEventListener(
|
|
4710
|
+
"builder:component:stateChangeListenerActivated",
|
|
4711
|
+
V
|
|
4712
|
+
);
|
|
4713
|
+
}
|
|
4714
|
+
function K(O) {
|
|
4715
|
+
const b = new URL(location.href).searchParams, B = b.get("builder.preview"), M = b.get(
|
|
4716
|
+
`builder.preview.${B}`
|
|
4717
|
+
), j = b.get("apiKey") || b.get("builder.space");
|
|
4718
|
+
B === e.model && j === e.apiKey && (!e.content || M === e.content.id) && fr({
|
|
4719
|
+
model: e.model,
|
|
4720
|
+
apiKey: e.apiKey,
|
|
4721
|
+
apiVersion: e.builderContextSignal.apiVersion
|
|
4722
|
+
}).then((D) => {
|
|
4723
|
+
D && i(D);
|
|
4724
|
+
});
|
|
4725
|
+
}
|
|
4726
|
+
return Q(() => {
|
|
4727
|
+
var O;
|
|
4728
|
+
return (O = t.current) == null || O.addEventListener(
|
|
4729
|
+
"initeditingbldr",
|
|
4730
|
+
v
|
|
4731
|
+
), () => {
|
|
4732
|
+
var b;
|
|
4733
|
+
return (b = t.current) == null ? void 0 : b.removeEventListener(
|
|
4734
|
+
"initeditingbldr",
|
|
4735
|
+
v
|
|
4736
|
+
);
|
|
4737
|
+
};
|
|
4738
|
+
}, []), Q(() => {
|
|
4739
|
+
var O;
|
|
4740
|
+
return (O = t.current) == null || O.addEventListener(
|
|
4741
|
+
"initpreviewingbldr",
|
|
4742
|
+
K
|
|
4743
|
+
), () => {
|
|
4744
|
+
var b;
|
|
4745
|
+
return (b = t.current) == null ? void 0 : b.removeEventListener(
|
|
4746
|
+
"initpreviewingbldr",
|
|
4747
|
+
K
|
|
4748
|
+
);
|
|
4749
|
+
};
|
|
4750
|
+
}, []), Q(() => {
|
|
4751
|
+
var O, b;
|
|
4752
|
+
if (Ee()) {
|
|
4753
|
+
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && ft(e.canTrack)) {
|
|
4754
|
+
const M = (O = e.builderContextSignal.content) == null ? void 0 : O.testVariationId, j = (b = e.builderContextSignal.content) == null ? void 0 : b.id, D = e.apiKey;
|
|
4755
|
+
Kn({
|
|
4690
4756
|
type: "impression",
|
|
4691
|
-
canTrack:
|
|
4692
|
-
contentId:
|
|
4693
|
-
apiKey:
|
|
4694
|
-
variationId:
|
|
4757
|
+
canTrack: !0,
|
|
4758
|
+
contentId: j,
|
|
4759
|
+
apiKey: D,
|
|
4760
|
+
variationId: M !== j ? M : void 0
|
|
4695
4761
|
});
|
|
4696
4762
|
}
|
|
4697
|
-
|
|
4698
|
-
const N = new URL(location.href).searchParams, M = N.get("builder.preview"), j = N.get(
|
|
4699
|
-
`builder.preview.${M}`
|
|
4700
|
-
), W = N.get("apiKey") || N.get("builder.space");
|
|
4701
|
-
M === e.model && W === e.apiKey && (!e.content || j === e.content.id) && ur({
|
|
4702
|
-
model: e.model,
|
|
4703
|
-
apiKey: e.apiKey,
|
|
4704
|
-
apiVersion: e.builderContextSignal.apiVersion
|
|
4705
|
-
}).then((ce) => {
|
|
4706
|
-
ce && s(ce);
|
|
4707
|
-
});
|
|
4708
|
-
}
|
|
4709
|
-
y(), v(), D();
|
|
4763
|
+
Kr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4710
4764
|
}
|
|
4711
|
-
}, []),
|
|
4712
|
-
e.
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4765
|
+
}, []), Q(() => {
|
|
4766
|
+
e.apiKey || Pe.error(
|
|
4767
|
+
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4768
|
+
), d(), L(), V();
|
|
4769
|
+
}, []), Q(() => {
|
|
4770
|
+
e.content && i(e.content);
|
|
4771
|
+
}, [e.content]), Q(() => {
|
|
4772
|
+
}, [a]), Q(() => {
|
|
4773
|
+
d();
|
|
4716
4774
|
}, [
|
|
4717
|
-
(
|
|
4775
|
+
(se = (ae = e.builderContextSignal.content) == null ? void 0 : ae.data) == null ? void 0 : se.jsCode,
|
|
4718
4776
|
e.builderContextSignal.rootState
|
|
4719
|
-
]),
|
|
4720
|
-
|
|
4721
|
-
}, [(
|
|
4722
|
-
|
|
4723
|
-
}, [e.builderContextSignal.rootState]),
|
|
4724
|
-
|
|
4777
|
+
]), Q(() => {
|
|
4778
|
+
L();
|
|
4779
|
+
}, [(ee = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : ee.httpRequests]), Q(() => {
|
|
4780
|
+
V();
|
|
4781
|
+
}, [e.builderContextSignal.rootState]), Q(() => () => {
|
|
4782
|
+
Ee() && (window.removeEventListener("message", u), window.removeEventListener(
|
|
4725
4783
|
"builder:component:stateChangeListenerActivated",
|
|
4726
|
-
|
|
4784
|
+
V
|
|
4727
4785
|
));
|
|
4728
|
-
}, []), /* @__PURE__ */
|
|
4786
|
+
}, []), /* @__PURE__ */ g(fn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ ur(
|
|
4729
4787
|
"div",
|
|
4730
4788
|
{
|
|
4789
|
+
key: r,
|
|
4731
4790
|
ref: t,
|
|
4732
|
-
onClick: (
|
|
4791
|
+
onClick: (O) => _(O),
|
|
4733
4792
|
"builder-content-id": (T = e.builderContextSignal.content) == null ? void 0 : T.id,
|
|
4734
4793
|
"builder-model": e.model,
|
|
4735
4794
|
...e.showContent ? {} : {
|
|
4736
4795
|
hidden: !0,
|
|
4737
4796
|
"aria-hidden": !0
|
|
4738
4797
|
},
|
|
4739
|
-
className: e.classNameProp
|
|
4740
|
-
children: e.children
|
|
4798
|
+
className: e.classNameProp
|
|
4741
4799
|
},
|
|
4742
|
-
|
|
4800
|
+
e.children
|
|
4743
4801
|
) }) : null });
|
|
4744
4802
|
}
|
|
4745
|
-
function
|
|
4746
|
-
return /* @__PURE__ */
|
|
4803
|
+
function Jt(e) {
|
|
4804
|
+
return /* @__PURE__ */ g(
|
|
4747
4805
|
"script",
|
|
4748
4806
|
{
|
|
4749
4807
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4752,21 +4810,21 @@ function Xt(e) {
|
|
|
4752
4810
|
);
|
|
4753
4811
|
}
|
|
4754
4812
|
function lr(e) {
|
|
4755
|
-
var d, p, y, x, P,
|
|
4813
|
+
var d, p, y, x, P, _, C;
|
|
4756
4814
|
const [t, r] = H(
|
|
4757
4815
|
() => {
|
|
4758
|
-
var I,
|
|
4759
|
-
return
|
|
4816
|
+
var I, L;
|
|
4817
|
+
return Xi({
|
|
4760
4818
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4761
4819
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
4762
4820
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4763
|
-
contentId: (
|
|
4821
|
+
contentId: (L = e.content) == null ? void 0 : L.id
|
|
4764
4822
|
});
|
|
4765
4823
|
}
|
|
4766
4824
|
);
|
|
4767
4825
|
function n(I) {
|
|
4768
|
-
|
|
4769
|
-
|
|
4826
|
+
u((L) => ({
|
|
4827
|
+
...L,
|
|
4770
4828
|
rootState: I
|
|
4771
4829
|
}));
|
|
4772
4830
|
}
|
|
@@ -4778,25 +4836,25 @@ function lr(e) {
|
|
|
4778
4836
|
// existing usage.
|
|
4779
4837
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4780
4838
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4781
|
-
...
|
|
4839
|
+
...Gn,
|
|
4782
4840
|
...e.customComponents || []
|
|
4783
4841
|
].reduce(
|
|
4784
|
-
(I, { component:
|
|
4842
|
+
(I, { component: L, ...V }) => ({
|
|
4785
4843
|
...I,
|
|
4786
4844
|
[V.name]: {
|
|
4787
|
-
component:
|
|
4788
|
-
...
|
|
4845
|
+
component: L,
|
|
4846
|
+
...zn(V)
|
|
4789
4847
|
}
|
|
4790
4848
|
}),
|
|
4791
4849
|
{}
|
|
4792
4850
|
)
|
|
4793
|
-
), [s,
|
|
4794
|
-
content:
|
|
4851
|
+
), [s, u] = H(() => ({
|
|
4852
|
+
content: xo({
|
|
4795
4853
|
content: e.content,
|
|
4796
4854
|
data: e.data
|
|
4797
4855
|
}),
|
|
4798
4856
|
localState: void 0,
|
|
4799
|
-
rootState:
|
|
4857
|
+
rootState: vo({
|
|
4800
4858
|
content: e.content,
|
|
4801
4859
|
data: e.data,
|
|
4802
4860
|
locale: e.locale
|
|
@@ -4812,25 +4870,25 @@ function lr(e) {
|
|
|
4812
4870
|
// existing usage.
|
|
4813
4871
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4814
4872
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4815
|
-
...
|
|
4873
|
+
...Gn,
|
|
4816
4874
|
...e.customComponents || []
|
|
4817
4875
|
].reduce(
|
|
4818
|
-
(I, { component:
|
|
4876
|
+
(I, { component: L, ...V }) => ({
|
|
4819
4877
|
...I,
|
|
4820
|
-
[V.name]:
|
|
4878
|
+
[V.name]: zn(V)
|
|
4821
4879
|
}),
|
|
4822
4880
|
{}
|
|
4823
4881
|
),
|
|
4824
4882
|
inheritedStyles: {}
|
|
4825
4883
|
}));
|
|
4826
|
-
return /* @__PURE__ */
|
|
4827
|
-
|
|
4884
|
+
return /* @__PURE__ */ g(
|
|
4885
|
+
wr.Provider,
|
|
4828
4886
|
{
|
|
4829
4887
|
value: {
|
|
4830
4888
|
registeredComponents: i
|
|
4831
4889
|
},
|
|
4832
4890
|
children: /* @__PURE__ */ Z(
|
|
4833
|
-
|
|
4891
|
+
Io,
|
|
4834
4892
|
{
|
|
4835
4893
|
content: e.content,
|
|
4836
4894
|
model: e.model,
|
|
@@ -4843,21 +4901,21 @@ function lr(e) {
|
|
|
4843
4901
|
classNameProp: e.classNameProp,
|
|
4844
4902
|
showContent: e.showContent,
|
|
4845
4903
|
builderContextSignal: s,
|
|
4846
|
-
setBuilderContextSignal:
|
|
4904
|
+
setBuilderContextSignal: u,
|
|
4847
4905
|
children: [
|
|
4848
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
4849
|
-
/* @__PURE__ */
|
|
4850
|
-
|
|
4906
|
+
e.isSsrAbTest ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(Jt, { scriptStr: t }) }) : null,
|
|
4907
|
+
/* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(
|
|
4908
|
+
yo,
|
|
4851
4909
|
{
|
|
4852
4910
|
contentId: (d = s.content) == null ? void 0 : d.id,
|
|
4853
4911
|
cssCode: (y = (p = s.content) == null ? void 0 : p.data) == null ? void 0 : y.cssCode,
|
|
4854
4912
|
customFonts: (P = (x = s.content) == null ? void 0 : x.data) == null ? void 0 : P.customFonts
|
|
4855
4913
|
}
|
|
4856
4914
|
) }),
|
|
4857
|
-
/* @__PURE__ */
|
|
4858
|
-
|
|
4915
|
+
/* @__PURE__ */ g(
|
|
4916
|
+
dn,
|
|
4859
4917
|
{
|
|
4860
|
-
blocks: (
|
|
4918
|
+
blocks: (C = (_ = s.content) == null ? void 0 : _.data) == null ? void 0 : C.blocks,
|
|
4861
4919
|
context: s,
|
|
4862
4920
|
registeredComponents: i
|
|
4863
4921
|
}
|
|
@@ -4868,17 +4926,17 @@ function lr(e) {
|
|
|
4868
4926
|
}
|
|
4869
4927
|
);
|
|
4870
4928
|
}
|
|
4871
|
-
function
|
|
4872
|
-
var s,
|
|
4929
|
+
function Ir(e) {
|
|
4930
|
+
var s, u, d;
|
|
4873
4931
|
const [t, r] = H(
|
|
4874
|
-
() =>
|
|
4875
|
-
canTrack:
|
|
4932
|
+
() => Di({
|
|
4933
|
+
canTrack: ft(e.canTrack),
|
|
4876
4934
|
content: e.content
|
|
4877
4935
|
})
|
|
4878
4936
|
);
|
|
4879
4937
|
function n() {
|
|
4880
4938
|
var p;
|
|
4881
|
-
return
|
|
4939
|
+
return zi(
|
|
4882
4940
|
ut(e.content).map((y) => ({
|
|
4883
4941
|
id: y.testVariationId,
|
|
4884
4942
|
testRatio: y.testRatio
|
|
@@ -4894,24 +4952,24 @@ function Cr(e) {
|
|
|
4894
4952
|
return t ? {
|
|
4895
4953
|
...e.content,
|
|
4896
4954
|
testVariationId: (p = e.content) == null ? void 0 : p.id
|
|
4897
|
-
} :
|
|
4955
|
+
} : Xr({
|
|
4898
4956
|
item: e.content,
|
|
4899
|
-
canTrack:
|
|
4957
|
+
canTrack: ft(e.canTrack)
|
|
4900
4958
|
});
|
|
4901
4959
|
}
|
|
4902
|
-
return
|
|
4960
|
+
return Q(() => {
|
|
4903
4961
|
}, []), /* @__PURE__ */ Z(U, { children: [
|
|
4904
|
-
!e.__isNestedRender && tt !== "reactNative" ? /* @__PURE__ */
|
|
4962
|
+
!e.__isNestedRender && tt !== "reactNative" ? /* @__PURE__ */ g(U, { children: /* @__PURE__ */ g(Jt, { scriptStr: Gi() }) }) : null,
|
|
4905
4963
|
t ? /* @__PURE__ */ Z(U, { children: [
|
|
4906
|
-
/* @__PURE__ */
|
|
4964
|
+
/* @__PURE__ */ g(
|
|
4907
4965
|
gt,
|
|
4908
4966
|
{
|
|
4909
4967
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
4910
4968
|
styles: i()
|
|
4911
4969
|
}
|
|
4912
4970
|
),
|
|
4913
|
-
/* @__PURE__ */
|
|
4914
|
-
(
|
|
4971
|
+
/* @__PURE__ */ g(Jt, { scriptStr: n() }),
|
|
4972
|
+
(u = ut(e.content)) == null ? void 0 : u.map((p) => /* @__PURE__ */ g(
|
|
4915
4973
|
lr,
|
|
4916
4974
|
{
|
|
4917
4975
|
content: p,
|
|
@@ -4932,7 +4990,7 @@ function Cr(e) {
|
|
|
4932
4990
|
p.testVariationId
|
|
4933
4991
|
))
|
|
4934
4992
|
] }) : null,
|
|
4935
|
-
/* @__PURE__ */
|
|
4993
|
+
/* @__PURE__ */ g(
|
|
4936
4994
|
lr,
|
|
4937
4995
|
{
|
|
4938
4996
|
content: a(),
|
|
@@ -4953,13 +5011,13 @@ function Cr(e) {
|
|
|
4953
5011
|
)
|
|
4954
5012
|
] });
|
|
4955
5013
|
}
|
|
4956
|
-
const
|
|
5014
|
+
const To = async ({
|
|
4957
5015
|
builderContextValue: e,
|
|
4958
5016
|
symbol: t
|
|
4959
5017
|
}) => {
|
|
4960
5018
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4961
5019
|
(e != null && e.apiKey))
|
|
4962
|
-
return
|
|
5020
|
+
return fr({
|
|
4963
5021
|
model: t.model,
|
|
4964
5022
|
apiKey: e.apiKey,
|
|
4965
5023
|
apiVersion: e.apiVersion,
|
|
@@ -4969,11 +5027,11 @@ const wo = async ({
|
|
|
4969
5027
|
}
|
|
4970
5028
|
}
|
|
4971
5029
|
}).catch((r) => {
|
|
4972
|
-
|
|
5030
|
+
Pe.error("Could not fetch symbol content: ", r);
|
|
4973
5031
|
});
|
|
4974
5032
|
};
|
|
4975
|
-
function
|
|
4976
|
-
var a, s,
|
|
5033
|
+
function jo(e) {
|
|
5034
|
+
var a, s, u;
|
|
4977
5035
|
function t() {
|
|
4978
5036
|
var d, p;
|
|
4979
5037
|
return [
|
|
@@ -4988,19 +5046,19 @@ function ko(e) {
|
|
|
4988
5046
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
4989
5047
|
});
|
|
4990
5048
|
function i() {
|
|
4991
|
-
r ||
|
|
5049
|
+
r || To({
|
|
4992
5050
|
symbol: e.symbol,
|
|
4993
5051
|
builderContextValue: e.builderContext
|
|
4994
5052
|
}).then((d) => {
|
|
4995
5053
|
d && n(d);
|
|
4996
5054
|
});
|
|
4997
5055
|
}
|
|
4998
|
-
return
|
|
5056
|
+
return Q(() => {
|
|
4999
5057
|
i();
|
|
5000
|
-
}, []),
|
|
5058
|
+
}, []), Q(() => {
|
|
5001
5059
|
i();
|
|
5002
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
5003
|
-
|
|
5060
|
+
}, [e.symbol]), /* @__PURE__ */ g("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ g(
|
|
5061
|
+
Ir,
|
|
5004
5062
|
{
|
|
5005
5063
|
__isNestedRender: !0,
|
|
5006
5064
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5012,36 +5070,36 @@ function ko(e) {
|
|
|
5012
5070
|
...e.builderContext.localState,
|
|
5013
5071
|
...(s = r == null ? void 0 : r.data) == null ? void 0 : s.state
|
|
5014
5072
|
},
|
|
5015
|
-
model: (
|
|
5073
|
+
model: (u = e.symbol) == null ? void 0 : u.model,
|
|
5016
5074
|
content: r
|
|
5017
5075
|
}
|
|
5018
5076
|
) });
|
|
5019
5077
|
}
|
|
5020
|
-
const
|
|
5078
|
+
const No = dn, Po = Ir;
|
|
5021
5079
|
export {
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5080
|
+
dn as Blocks,
|
|
5081
|
+
Jr as Button,
|
|
5082
|
+
Ui as Columns,
|
|
5083
|
+
Ir as Content,
|
|
5084
|
+
Bi as Fragment,
|
|
5085
|
+
$i as Image,
|
|
5086
|
+
No as RenderBlocks,
|
|
5087
|
+
Po as RenderContent,
|
|
5088
|
+
Vi as Section,
|
|
5089
|
+
jo as Symbol,
|
|
5090
|
+
no as Text,
|
|
5091
|
+
io as Video,
|
|
5092
|
+
Uo as _processContentResult,
|
|
5093
|
+
Gr as createRegisterComponentMessage,
|
|
5094
|
+
Bo as fetchBuilderProps,
|
|
5095
|
+
_o as fetchEntries,
|
|
5096
|
+
fr as fetchOneEntry,
|
|
5097
|
+
Lo as getAllContent,
|
|
5098
|
+
$o as getBuilderSearchParams,
|
|
5099
|
+
Vo as getContent,
|
|
5042
5100
|
Ce as isEditing,
|
|
5043
5101
|
Kr as isPreviewing,
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5102
|
+
Hr as register,
|
|
5103
|
+
Do as setEditorSettings,
|
|
5104
|
+
Wo as track
|
|
5047
5105
|
};
|