@builder.io/sdk-react 0.8.1 → 0.10.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 +26 -26
- package/lib/browser/index.mjs +657 -630
- package/lib/browser/server-entry-df9eba5d.cjs +2 -0
- package/lib/browser/{server-entry-0aebe4be.js → server-entry-f978b3a5.js} +7 -7
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/index.cjs +26 -26
- package/lib/edge/index.mjs +1003 -976
- package/lib/edge/server-entry-df9eba5d.cjs +2 -0
- package/lib/edge/{server-entry-0aebe4be.js → server-entry-f978b3a5.js} +7 -7
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/index.cjs +16 -16
- package/lib/node/index.mjs +311 -284
- package/lib/node/{server-entry-e4cd1e05.js → server-entry-46908b1b.js} +7 -7
- package/lib/node/server-entry-df9eba5d.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/components/blocks/blocks-wrapper.d.ts +8 -0
- package/types/components/blocks/blocks.d.ts +1 -1
- package/types/components/content/components/enable-editor.d.ts +1 -1
- package/types/components/content-variants/content-variants.types.d.ts +16 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/types.d.ts +2 -1
- package/types/functions/get-content/index.d.ts +2 -2
- package/types/functions/transform-block-properties.d.ts +5 -1
- package/types/types/enforced-partials.d.ts +7 -2
- package/lib/browser/server-entry-a5d2c777.cjs +0 -2
- package/lib/edge/server-entry-a5d2c777.cjs +0 -2
- package/lib/node/server-entry-a5d2c777.cjs +0 -2
- package/types/functions/get-react-native-block-styles.d.ts +0 -7
- package/types/functions/sanitize-react-native-block-styles.d.ts +0 -3
package/lib/edge/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as Z, Fragment as P, jsx as p } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as cr, useState as
|
|
4
|
-
import { i as
|
|
5
|
-
import { _ as
|
|
3
|
+
import { createContext as cr, useState as $, useContext as Hn, createElement as ur, useRef as qt, useEffect as ee } from "react";
|
|
4
|
+
import { i as Ie, j as Te, k as $r, l as Fe, m as Zt, n as Kt, T as nt, r as Hr, o as ht, p as Kn, a as Kr, c as Gr, b as dr, q as zr, u as Gn, v as zn, w as Xr } from "./server-entry-f978b3a5.js";
|
|
5
|
+
import { _ as Fo, h as Uo, f as _o, g as Do, e as Wo, d as Vo, s as Lo, t as $o } from "./server-entry-f978b3a5.js";
|
|
6
6
|
function Yr(e) {
|
|
7
7
|
return /* @__PURE__ */ Z(P, { children: [
|
|
8
8
|
e.link ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
@@ -28,7 +28,7 @@ function Yr(e) {
|
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const Qt = cr({
|
|
32
32
|
content: null,
|
|
33
33
|
context: {},
|
|
34
34
|
localState: void 0,
|
|
@@ -38,7 +38,9 @@ const Zt = cr({
|
|
|
38
38
|
apiKey: null,
|
|
39
39
|
apiVersion: void 0,
|
|
40
40
|
componentInfos: {},
|
|
41
|
-
inheritedStyles: {}
|
|
41
|
+
inheritedStyles: {},
|
|
42
|
+
BlocksWrapper: "div",
|
|
43
|
+
BlocksWrapperProps: {}
|
|
42
44
|
}), fr = cr({ registeredComponents: {} });
|
|
43
45
|
function Jr(e) {
|
|
44
46
|
var t;
|
|
@@ -64,10 +66,10 @@ const hr = ({
|
|
|
64
66
|
context: t,
|
|
65
67
|
event: r
|
|
66
68
|
}), qr = () => ({
|
|
67
|
-
isEditing:
|
|
68
|
-
isBrowser:
|
|
69
|
-
isServer: !
|
|
70
|
-
getUserAttributes: () =>
|
|
69
|
+
isEditing: Ie(),
|
|
70
|
+
isBrowser: Te(),
|
|
71
|
+
isServer: !Te(),
|
|
72
|
+
getUserAttributes: () => $r()
|
|
71
73
|
}), Zr = (e, {
|
|
72
74
|
isExpression: t = !0
|
|
73
75
|
}) => /* 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, Qr = ({
|
|
@@ -105,25 +107,25 @@ const pr = (e, t, r) => {
|
|
|
105
107
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
106
108
|
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;
|
|
107
109
|
};
|
|
108
|
-
var
|
|
110
|
+
var F, ti = function(e) {
|
|
109
111
|
function t(o) {
|
|
110
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
112
|
+
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));
|
|
111
113
|
}
|
|
112
114
|
function r(o) {
|
|
113
|
-
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
115
|
+
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && $n.test(String.fromCharCode(o));
|
|
114
116
|
}
|
|
115
117
|
function n(o, l) {
|
|
116
|
-
for (var c = x, h = 1,
|
|
117
|
-
|
|
118
|
-
var Y =
|
|
118
|
+
for (var c = x, h = 1, A = 0; ; ) {
|
|
119
|
+
dt.lastIndex = A;
|
|
120
|
+
var Y = dt.exec(c);
|
|
119
121
|
if (Y && Y.index < o)
|
|
120
|
-
++h,
|
|
122
|
+
++h, A = Y.index + Y[0].length;
|
|
121
123
|
else
|
|
122
124
|
break;
|
|
123
125
|
}
|
|
124
126
|
throw c = {
|
|
125
127
|
line: h,
|
|
126
|
-
ab: o -
|
|
128
|
+
ab: o - A
|
|
127
129
|
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o = d, l;
|
|
128
130
|
}
|
|
129
131
|
function i(o) {
|
|
@@ -135,42 +137,42 @@ var B, ti = function(e) {
|
|
|
135
137
|
};
|
|
136
138
|
}
|
|
137
139
|
function a() {
|
|
138
|
-
this.line =
|
|
140
|
+
this.line = Ce, this.ab = d - fe;
|
|
139
141
|
}
|
|
140
142
|
function s(o, l) {
|
|
141
|
-
|
|
143
|
+
Re = d, R.C && (Tt = new a()), j = o, f(), le = l, Ve = o.m;
|
|
142
144
|
}
|
|
143
145
|
function u() {
|
|
144
|
-
for (var o = d, l =
|
|
146
|
+
for (var o = d, l = R.va && R.C && new a(), c = x.charCodeAt(d += 2); d < Ae && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
145
147
|
++d, c = x.charCodeAt(d);
|
|
146
|
-
|
|
148
|
+
R.va && R.va(!1, x.slice(o + 2, d), o, d, l, R.C && new a());
|
|
147
149
|
}
|
|
148
150
|
function f() {
|
|
149
|
-
for (; d <
|
|
151
|
+
for (; d < Ae; ) {
|
|
150
152
|
var o = x.charCodeAt(d);
|
|
151
153
|
if (o === 32)
|
|
152
154
|
++d;
|
|
153
155
|
else if (o === 13)
|
|
154
|
-
++d, o = x.charCodeAt(d), o === 10 && ++d,
|
|
156
|
+
++d, o = x.charCodeAt(d), o === 10 && ++d, R.C && (++Ce, fe = d);
|
|
155
157
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
156
|
-
++d,
|
|
158
|
+
++d, R.C && (++Ce, fe = d);
|
|
157
159
|
else if (8 < o && 14 > o)
|
|
158
160
|
++d;
|
|
159
161
|
else if (o === 47)
|
|
160
162
|
if (o = x.charCodeAt(d + 1), o === 42) {
|
|
161
163
|
o = void 0;
|
|
162
|
-
var l =
|
|
163
|
-
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2,
|
|
164
|
-
for (
|
|
165
|
-
++
|
|
166
|
-
|
|
164
|
+
var l = R.va && R.C && new a(), c = d, h = x.indexOf("*/", d += 2);
|
|
165
|
+
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2, R.C)
|
|
166
|
+
for (dt.lastIndex = c; (o = dt.exec(x)) && o.index < d; )
|
|
167
|
+
++Ce, fe = o.index + o[0].length;
|
|
168
|
+
R.va && R.va(!0, x.slice(c + 2, h), c, d, l, R.C && new a());
|
|
167
169
|
} else if (o === 47)
|
|
168
170
|
u();
|
|
169
171
|
else
|
|
170
172
|
break;
|
|
171
173
|
else if (o === 160)
|
|
172
174
|
++d;
|
|
173
|
-
else if (5760 <= o &&
|
|
175
|
+
else if (5760 <= o && Wr.test(String.fromCharCode(o)))
|
|
174
176
|
++d;
|
|
175
177
|
else
|
|
176
178
|
break;
|
|
@@ -179,31 +181,31 @@ var B, ti = function(e) {
|
|
|
179
181
|
function g(o) {
|
|
180
182
|
switch (o) {
|
|
181
183
|
case 46:
|
|
182
|
-
o = x.charCodeAt(d + 1), 48 <= o && 57 >= o ? E(!0) : (++d, s(
|
|
184
|
+
o = x.charCodeAt(d + 1), 48 <= o && 57 >= o ? E(!0) : (++d, s(Bn));
|
|
183
185
|
return;
|
|
184
186
|
case 40:
|
|
185
|
-
return ++d, s(
|
|
187
|
+
return ++d, s(he);
|
|
186
188
|
case 41:
|
|
187
|
-
return ++d, s(
|
|
189
|
+
return ++d, s(ue);
|
|
188
190
|
case 59:
|
|
189
|
-
return ++d, s(
|
|
191
|
+
return ++d, s(pe);
|
|
190
192
|
case 44:
|
|
191
|
-
return ++d, s(
|
|
193
|
+
return ++d, s(Se);
|
|
192
194
|
case 91:
|
|
193
195
|
return ++d, s(Ut);
|
|
194
196
|
case 93:
|
|
195
|
-
return ++d, s(
|
|
197
|
+
return ++d, s(_t);
|
|
196
198
|
case 123:
|
|
197
|
-
return ++d, s(
|
|
199
|
+
return ++d, s(He);
|
|
198
200
|
case 125:
|
|
199
|
-
return ++d, s(
|
|
201
|
+
return ++d, s(Pe);
|
|
200
202
|
case 58:
|
|
201
|
-
return ++d, s(
|
|
203
|
+
return ++d, s(Ke);
|
|
202
204
|
case 63:
|
|
203
|
-
return ++d, s(
|
|
205
|
+
return ++d, s(Fn);
|
|
204
206
|
case 48:
|
|
205
207
|
if (o = x.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
206
|
-
d += 2, o =
|
|
208
|
+
d += 2, o = H(16), o === null && n(X + 2, "Expected hexadecimal number"), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), s($e, o);
|
|
207
209
|
return;
|
|
208
210
|
}
|
|
209
211
|
case 49:
|
|
@@ -220,10 +222,10 @@ var B, ti = function(e) {
|
|
|
220
222
|
case 39:
|
|
221
223
|
d++;
|
|
222
224
|
for (var l = ""; ; ) {
|
|
223
|
-
d >=
|
|
225
|
+
d >= Ae && n(X, "Unterminated string constant");
|
|
224
226
|
var c = x.charCodeAt(d);
|
|
225
227
|
if (c === o) {
|
|
226
|
-
++d, s(
|
|
228
|
+
++d, s(st, l);
|
|
227
229
|
break;
|
|
228
230
|
}
|
|
229
231
|
if (c === 92) {
|
|
@@ -269,7 +271,7 @@ var B, ti = function(e) {
|
|
|
269
271
|
case 13:
|
|
270
272
|
x.charCodeAt(d) === 10 && ++d;
|
|
271
273
|
case 10:
|
|
272
|
-
|
|
274
|
+
R.C && (fe = d, ++Ce);
|
|
273
275
|
break;
|
|
274
276
|
default:
|
|
275
277
|
l += String.fromCharCode(c);
|
|
@@ -279,58 +281,58 @@ var B, ti = function(e) {
|
|
|
279
281
|
}
|
|
280
282
|
return;
|
|
281
283
|
case 47:
|
|
282
|
-
o = x.charCodeAt(d + 1), Ve ? (++d,
|
|
284
|
+
o = x.charCodeAt(d + 1), Ve ? (++d, U()) : o === 61 ? S(Ee, 2) : S(Un, 1);
|
|
283
285
|
return;
|
|
284
286
|
case 37:
|
|
285
287
|
case 42:
|
|
286
|
-
x.charCodeAt(d + 1) === 61 ?
|
|
288
|
+
x.charCodeAt(d + 1) === 61 ? S(Ee, 2) : S(Ur, 1);
|
|
287
289
|
return;
|
|
288
290
|
case 124:
|
|
289
291
|
case 38:
|
|
290
|
-
l = x.charCodeAt(d + 1), l === o ?
|
|
292
|
+
l = x.charCodeAt(d + 1), l === o ? S(o === 124 ? Wn : Vn, 2) : l === 61 ? S(Ee, 2) : S(o === 124 ? Rr : Pr, 1);
|
|
291
293
|
return;
|
|
292
294
|
case 94:
|
|
293
|
-
x.charCodeAt(d + 1) === 61 ?
|
|
295
|
+
x.charCodeAt(d + 1) === 61 ? S(Ee, 2) : S(Or, 1);
|
|
294
296
|
return;
|
|
295
297
|
case 43:
|
|
296
298
|
case 45:
|
|
297
|
-
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 &&
|
|
299
|
+
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && ut.test(x.slice(xe, d)) ? (d += 3, u(), f(), v()) : S(Ar, 2) : l === 61 ? S(Ee, 2) : S(Fr, 1);
|
|
298
300
|
return;
|
|
299
301
|
case 60:
|
|
300
302
|
case 62:
|
|
301
|
-
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ?
|
|
303
|
+
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? S(Ee, c + 1) : S(Br, c)) : l === 33 && o === 60 && x.charCodeAt(d + 2) === 45 && x.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = x.charCodeAt(d + 2) === 61 ? 3 : 2), S(Mr, c));
|
|
302
304
|
return;
|
|
303
305
|
case 61:
|
|
304
306
|
case 33:
|
|
305
|
-
x.charCodeAt(d + 1) === 61 ?
|
|
307
|
+
x.charCodeAt(d + 1) === 61 ? S(Nr, x.charCodeAt(d + 2) === 61 ? 3 : 2) : S(o === 61 ? _n : Dn, 1);
|
|
306
308
|
return;
|
|
307
309
|
case 126:
|
|
308
|
-
return
|
|
310
|
+
return S(Dn, 1);
|
|
309
311
|
}
|
|
310
312
|
return !1;
|
|
311
313
|
}
|
|
312
314
|
function v(o) {
|
|
313
|
-
if (o ? d = X + 1 : X = d,
|
|
314
|
-
return
|
|
315
|
-
if (d >=
|
|
316
|
-
return s(
|
|
315
|
+
if (o ? d = X + 1 : X = d, R.C && (It = new a()), o)
|
|
316
|
+
return U();
|
|
317
|
+
if (d >= Ae)
|
|
318
|
+
return s(Rt);
|
|
317
319
|
if (o = x.charCodeAt(d), r(o) || o === 92)
|
|
318
|
-
return
|
|
320
|
+
return G();
|
|
319
321
|
if (g(o) === !1) {
|
|
320
|
-
if (o = String.fromCharCode(o), o === "\\" ||
|
|
321
|
-
return
|
|
322
|
+
if (o = String.fromCharCode(o), o === "\\" || $n.test(o))
|
|
323
|
+
return G();
|
|
322
324
|
n(d, "Unexpected character '" + o + "'");
|
|
323
325
|
}
|
|
324
326
|
}
|
|
325
|
-
function
|
|
327
|
+
function S(o, l) {
|
|
326
328
|
var c = x.slice(d, d + l);
|
|
327
329
|
d += l, s(o, c);
|
|
328
330
|
}
|
|
329
|
-
function
|
|
331
|
+
function U() {
|
|
330
332
|
for (var o, l, c = d; ; ) {
|
|
331
|
-
d >=
|
|
333
|
+
d >= Ae && n(c, "Unterminated regexp");
|
|
332
334
|
var h = x.charAt(d);
|
|
333
|
-
if (
|
|
335
|
+
if (ut.test(h) && n(c, "Unterminated regexp"), o)
|
|
334
336
|
o = !1;
|
|
335
337
|
else {
|
|
336
338
|
if (h === "[")
|
|
@@ -343,16 +345,16 @@ var B, ti = function(e) {
|
|
|
343
345
|
}
|
|
344
346
|
++d;
|
|
345
347
|
}
|
|
346
|
-
o = x.slice(c, d), ++d, (l =
|
|
348
|
+
o = x.slice(c, d), ++d, (l = _()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
347
349
|
try {
|
|
348
|
-
var
|
|
350
|
+
var A = new RegExp(o, l);
|
|
349
351
|
} catch (Y) {
|
|
350
352
|
throw Y instanceof SyntaxError && n(c, Y.message), Y;
|
|
351
353
|
}
|
|
352
|
-
s(gn,
|
|
354
|
+
s(gn, A);
|
|
353
355
|
}
|
|
354
|
-
function
|
|
355
|
-
for (var c = d, h = 0,
|
|
356
|
+
function H(o, l) {
|
|
357
|
+
for (var c = d, h = 0, A = l === void 0 ? 1 / 0 : l, Y = 0; Y < A; ++Y) {
|
|
356
358
|
var ne = x.charCodeAt(d);
|
|
357
359
|
if (ne = 97 <= ne ? ne - 97 + 10 : 65 <= ne ? ne - 65 + 10 : 48 <= ne && 57 >= ne ? ne - 48 : 1 / 0, ne >= o)
|
|
358
360
|
break;
|
|
@@ -362,302 +364,302 @@ var B, ti = function(e) {
|
|
|
362
364
|
}
|
|
363
365
|
function E(o) {
|
|
364
366
|
var l = d, c = !1, h = x.charCodeAt(d) === 48;
|
|
365
|
-
o ||
|
|
366
|
-
var
|
|
367
|
-
c ?
|
|
367
|
+
o || H(10) !== null || n(l, "Invalid number"), x.charCodeAt(d) === 46 && (++d, H(10), c = !0), o = x.charCodeAt(d), (o === 69 || o === 101) && (o = x.charCodeAt(++d), o !== 43 && o !== 45 || ++d, H(10) === null && n(l, "Invalid number"), c = !0), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), o = x.slice(l, d);
|
|
368
|
+
var A;
|
|
369
|
+
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || oe ? n(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s($e, A);
|
|
368
370
|
}
|
|
369
371
|
function N(o) {
|
|
370
|
-
return o =
|
|
372
|
+
return o = H(16, o), o === null && n(X, "Bad character escape sequence"), o;
|
|
371
373
|
}
|
|
372
|
-
function
|
|
373
|
-
|
|
374
|
+
function _() {
|
|
375
|
+
Ne = !1;
|
|
374
376
|
for (var o, l = !0, c = d; ; ) {
|
|
375
377
|
var h = x.charCodeAt(d);
|
|
376
378
|
if (t(h))
|
|
377
|
-
|
|
379
|
+
Ne && (o += x.charAt(d)), ++d;
|
|
378
380
|
else if (h === 92) {
|
|
379
|
-
|
|
380
|
-
var
|
|
381
|
-
|
|
381
|
+
Ne || (o = x.slice(c, d)), Ne = !0, x.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = N(4);
|
|
382
|
+
var A = String.fromCharCode(h);
|
|
383
|
+
A || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += A;
|
|
382
384
|
} else
|
|
383
385
|
break;
|
|
384
386
|
l = !1;
|
|
385
387
|
}
|
|
386
|
-
return
|
|
388
|
+
return Ne ? o : x.slice(c, d);
|
|
387
389
|
}
|
|
388
|
-
function
|
|
389
|
-
var o =
|
|
390
|
-
!
|
|
390
|
+
function G() {
|
|
391
|
+
var o = _(), l = Oe;
|
|
392
|
+
!Ne && Dr(o) && (l = jr[o]), s(l, o);
|
|
391
393
|
}
|
|
392
|
-
function
|
|
393
|
-
|
|
394
|
+
function b() {
|
|
395
|
+
jt = X, xe = Re, At = Tt, v();
|
|
394
396
|
}
|
|
395
|
-
function
|
|
396
|
-
if (oe = o, d = X,
|
|
397
|
-
for (; d <
|
|
398
|
-
|
|
399
|
-
`,
|
|
397
|
+
function D(o) {
|
|
398
|
+
if (oe = o, d = X, R.C)
|
|
399
|
+
for (; d < fe; )
|
|
400
|
+
fe = x.lastIndexOf(`
|
|
401
|
+
`, fe - 2) + 1, --Ce;
|
|
400
402
|
f(), v();
|
|
401
403
|
}
|
|
402
404
|
function ae() {
|
|
403
405
|
this.type = null, this.start = X, this.end = null;
|
|
404
406
|
}
|
|
405
407
|
function se() {
|
|
406
|
-
this.start =
|
|
408
|
+
this.start = It, this.end = null, Et && (this.source = Et);
|
|
407
409
|
}
|
|
408
|
-
function
|
|
410
|
+
function K() {
|
|
409
411
|
var o = new ae();
|
|
410
|
-
return
|
|
412
|
+
return R.C && (o.X = new se()), R.vb && (o.sourceFile = R.vb), R.Xa && (o.j = [X, 0]), o;
|
|
411
413
|
}
|
|
412
414
|
function te(o) {
|
|
413
415
|
var l = new ae();
|
|
414
|
-
return l.start = o.start,
|
|
416
|
+
return l.start = o.start, R.C && (l.X = new se(), l.X.start = o.X.start), R.Xa && (l.j = [o.j[0], 0]), l;
|
|
415
417
|
}
|
|
416
|
-
function
|
|
417
|
-
return o.type = l, o.end = xe,
|
|
418
|
+
function T(o, l) {
|
|
419
|
+
return o.type = l, o.end = xe, R.C && (o.X.end = At), R.Xa && (o.j[1] = xe), o;
|
|
418
420
|
}
|
|
419
|
-
function
|
|
421
|
+
function je(o) {
|
|
420
422
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
421
423
|
}
|
|
422
|
-
function
|
|
423
|
-
return
|
|
424
|
+
function V(o) {
|
|
425
|
+
return j === o ? (b(), !0) : !1;
|
|
424
426
|
}
|
|
425
|
-
function
|
|
426
|
-
return !
|
|
427
|
+
function ke() {
|
|
428
|
+
return !R.fc && (j === Rt || j === Pe || ut.test(x.slice(xe, X)));
|
|
427
429
|
}
|
|
428
|
-
function
|
|
429
|
-
|
|
430
|
+
function ce() {
|
|
431
|
+
V(pe) || ke() || I();
|
|
430
432
|
}
|
|
431
|
-
function
|
|
432
|
-
|
|
433
|
+
function y(o) {
|
|
434
|
+
j === o ? b() : I();
|
|
433
435
|
}
|
|
434
|
-
function
|
|
436
|
+
function I() {
|
|
435
437
|
n(X, "Unexpected token");
|
|
436
438
|
}
|
|
437
|
-
function
|
|
438
|
-
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), oe && o.type === "Identifier" &&
|
|
439
|
+
function B(o) {
|
|
440
|
+
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), oe && o.type === "Identifier" && ct(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
439
441
|
}
|
|
440
|
-
function
|
|
441
|
-
(
|
|
442
|
-
var o =
|
|
442
|
+
function O() {
|
|
443
|
+
(j === Un || j === Ee && le === "/=") && v(!0);
|
|
444
|
+
var o = j, l = K();
|
|
443
445
|
switch (o) {
|
|
444
|
-
case
|
|
446
|
+
case Ot:
|
|
445
447
|
case yn:
|
|
446
|
-
|
|
447
|
-
var c = o ===
|
|
448
|
-
|
|
448
|
+
b();
|
|
449
|
+
var c = o === Ot;
|
|
450
|
+
V(pe) || ke() ? l.label = null : j !== Oe ? I() : (l.label = de(), ce());
|
|
449
451
|
for (var h = 0; h < z.length; ++h) {
|
|
450
|
-
var
|
|
451
|
-
if ((l.label === null ||
|
|
452
|
+
var A = z[h];
|
|
453
|
+
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (c || A.kind === "loop") || l.label && c))
|
|
452
454
|
break;
|
|
453
455
|
}
|
|
454
|
-
return h === z.length && n(l.start, "Unsyntactic " + o.l),
|
|
455
|
-
case
|
|
456
|
-
return
|
|
456
|
+
return h === z.length && n(l.start, "Unsyntactic " + o.l), T(l, c ? "BreakStatement" : "ContinueStatement");
|
|
457
|
+
case bn:
|
|
458
|
+
return b(), ce(), T(l, "DebuggerStatement");
|
|
457
459
|
case Sn:
|
|
458
|
-
return
|
|
460
|
+
return b(), z.push(Dt), l.body = O(), z.pop(), y(Ft), l.test = W(), ce(), T(l, "DoWhileStatement");
|
|
459
461
|
case Cn:
|
|
460
|
-
return
|
|
461
|
-
case
|
|
462
|
-
return
|
|
462
|
+
return b(), z.push(Dt), y(he), j === pe ? be(l, null) : j === Bt ? (o = K(), b(), pn(o, !0), T(o, "VariableDeclaration"), o.fa.length === 1 && V(lt) ? ot(l, o) : be(l, o)) : (o = Q(!1, !0), V(lt) ? (B(o), ot(l, o)) : be(l, o));
|
|
463
|
+
case Nt:
|
|
464
|
+
return b(), kt(l, !0);
|
|
463
465
|
case En:
|
|
464
|
-
return
|
|
466
|
+
return b(), l.test = W(), l.da = O(), l.alternate = V(wn) ? O() : null, T(l, "IfStatement");
|
|
465
467
|
case In:
|
|
466
|
-
return Le ||
|
|
467
|
-
case
|
|
468
|
-
for (
|
|
469
|
-
|
|
470
|
-
return h &&
|
|
468
|
+
return Le || R.Ib || n(X, "'return' outside of function"), b(), V(pe) || ke() ? l.K = null : (l.K = Q(), ce()), T(l, "ReturnStatement");
|
|
469
|
+
case Mt:
|
|
470
|
+
for (b(), l.Qb = W(), l.tb = [], y(He), z.push(Lr); j !== Pe; )
|
|
471
|
+
j === Pt || j === xn ? (o = j === Pt, h && T(h, "SwitchCase"), l.tb.push(h = K()), h.da = [], b(), o ? h.test = Q() : (c && n(jt, "Multiple default clauses"), c = !0, h.test = null), y(Ke)) : (h || I(), h.da.push(O()));
|
|
472
|
+
return h && T(h, "SwitchCase"), b(), z.pop(), T(l, "SwitchStatement");
|
|
471
473
|
case Tn:
|
|
472
|
-
return
|
|
474
|
+
return b(), ut.test(x.slice(xe, X)) && n(xe, "Illegal newline after throw"), l.K = Q(), ce(), T(l, "ThrowStatement");
|
|
473
475
|
case jn:
|
|
474
|
-
return
|
|
475
|
-
case
|
|
476
|
-
return
|
|
476
|
+
return b(), l.block = L(), l.Ea = null, j === vn && (o = K(), b(), y(he), o.Ua = de(), oe && ct(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), y(ue), o.body = L(), l.Ea = T(o, "CatchClause")), l.fb = V(kn) ? L() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
477
|
+
case Bt:
|
|
478
|
+
return b(), pn(l), ce(), T(l, "VariableDeclaration");
|
|
477
479
|
case Ft:
|
|
478
|
-
return
|
|
480
|
+
return b(), l.test = W(), z.push(Dt), l.body = O(), z.pop(), T(l, "WhileStatement");
|
|
479
481
|
case An:
|
|
480
|
-
return oe && n(X, "'with' in strict mode"),
|
|
481
|
-
case
|
|
482
|
-
return
|
|
483
|
-
case
|
|
484
|
-
return
|
|
482
|
+
return oe && n(X, "'with' in strict mode"), b(), l.object = W(), l.body = O(), T(l, "WithStatement");
|
|
483
|
+
case He:
|
|
484
|
+
return L();
|
|
485
|
+
case pe:
|
|
486
|
+
return b(), T(l, "EmptyStatement");
|
|
485
487
|
default:
|
|
486
|
-
if (c = le,
|
|
488
|
+
if (c = le, A = Q(), o === Oe && A.type === "Identifier" && V(Ke)) {
|
|
487
489
|
for (h = 0; h < z.length; ++h)
|
|
488
|
-
z[h].name === c && n(
|
|
490
|
+
z[h].name === c && n(A.start, "Label '" + c + "' is already declared");
|
|
489
491
|
return z.push({
|
|
490
492
|
name: c,
|
|
491
|
-
kind:
|
|
492
|
-
}), l.body =
|
|
493
|
+
kind: j.W ? "loop" : j === Mt ? "switch" : null
|
|
494
|
+
}), l.body = O(), z.pop(), l.label = A, T(l, "LabeledStatement");
|
|
493
495
|
}
|
|
494
|
-
return l.la =
|
|
496
|
+
return l.la = A, ce(), T(l, "ExpressionStatement");
|
|
495
497
|
}
|
|
496
498
|
}
|
|
497
|
-
function
|
|
498
|
-
|
|
499
|
+
function W() {
|
|
500
|
+
y(he);
|
|
499
501
|
var o = Q();
|
|
500
|
-
return
|
|
502
|
+
return y(ue), o;
|
|
501
503
|
}
|
|
502
|
-
function
|
|
503
|
-
var l =
|
|
504
|
-
for (l.body = [],
|
|
505
|
-
var
|
|
506
|
-
if (l.body.push(
|
|
504
|
+
function L(o) {
|
|
505
|
+
var l = K(), c = !0, h = !1;
|
|
506
|
+
for (l.body = [], y(He); !V(Pe); ) {
|
|
507
|
+
var A = O();
|
|
508
|
+
if (l.body.push(A), c && o && je(A)) {
|
|
507
509
|
var Y = h;
|
|
508
|
-
|
|
510
|
+
D(h = !0);
|
|
509
511
|
}
|
|
510
512
|
c = !1;
|
|
511
513
|
}
|
|
512
|
-
return h && !Y &&
|
|
514
|
+
return h && !Y && D(!1), T(l, "BlockStatement");
|
|
513
515
|
}
|
|
514
|
-
function
|
|
515
|
-
return o.ua = l,
|
|
516
|
+
function be(o, l) {
|
|
517
|
+
return o.ua = l, y(pe), o.test = j === pe ? null : Q(), y(pe), o.update = j === ue ? null : Q(), y(ue), o.body = O(), z.pop(), T(o, "ForStatement");
|
|
516
518
|
}
|
|
517
|
-
function
|
|
518
|
-
return o.left = l, o.right = Q(),
|
|
519
|
+
function ot(o, l) {
|
|
520
|
+
return o.left = l, o.right = Q(), y(ue), o.body = O(), z.pop(), T(o, "ForInStatement");
|
|
519
521
|
}
|
|
520
522
|
function pn(o, l) {
|
|
521
523
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
522
|
-
var c =
|
|
523
|
-
if (c.id =
|
|
524
|
+
var c = K();
|
|
525
|
+
if (c.id = de(), oe && ct(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = V(_n) ? Q(!0, l) : null, o.fa.push(T(c, "VariableDeclarator")), !V(Se))
|
|
524
526
|
break;
|
|
525
527
|
}
|
|
526
528
|
}
|
|
527
529
|
function Q(o, l) {
|
|
528
530
|
var c = xt(l);
|
|
529
|
-
if (!o &&
|
|
530
|
-
for (o = te(c), o.xb = [c];
|
|
531
|
+
if (!o && j === Se) {
|
|
532
|
+
for (o = te(c), o.xb = [c]; V(Se); )
|
|
531
533
|
o.xb.push(xt(l));
|
|
532
|
-
return
|
|
534
|
+
return T(o, "SequenceExpression");
|
|
533
535
|
}
|
|
534
536
|
return c;
|
|
535
537
|
}
|
|
536
538
|
function xt(o) {
|
|
537
|
-
var l =
|
|
538
|
-
if (
|
|
539
|
+
var l = St(wt(), -1, o);
|
|
540
|
+
if (V(Fn)) {
|
|
539
541
|
var c = te(l);
|
|
540
|
-
c.test = l, c.da = Q(!0),
|
|
542
|
+
c.test = l, c.da = Q(!0), y(Ke), c.alternate = Q(!0, o), l = T(c, "ConditionalExpression");
|
|
541
543
|
}
|
|
542
|
-
return
|
|
544
|
+
return j.Cb ? (c = te(l), c.operator = le, c.left = l, b(), c.right = xt(o), B(l), T(c, "AssignmentExpression")) : l;
|
|
543
545
|
}
|
|
544
|
-
function
|
|
545
|
-
var h =
|
|
546
|
-
if (h !== null && (!c ||
|
|
547
|
-
var
|
|
548
|
-
return
|
|
546
|
+
function St(o, l, c) {
|
|
547
|
+
var h = j.L;
|
|
548
|
+
if (h !== null && (!c || j !== lt) && h > l) {
|
|
549
|
+
var A = te(o);
|
|
550
|
+
return A.left = o, A.operator = le, o = j, b(), A.right = St(wt(), h, c), h = T(A, o === Wn || o === Vn ? "LogicalExpression" : "BinaryExpression"), St(h, l, c);
|
|
549
551
|
}
|
|
550
552
|
return o;
|
|
551
553
|
}
|
|
552
|
-
function
|
|
553
|
-
if (
|
|
554
|
-
var o =
|
|
555
|
-
return o.operator = le, Ve = o.prefix = !0,
|
|
554
|
+
function wt() {
|
|
555
|
+
if (j.prefix) {
|
|
556
|
+
var o = K(), l = j.$b;
|
|
557
|
+
return o.operator = le, Ve = o.prefix = !0, b(), o.K = wt(), l ? B(o.K) : oe && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), T(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
556
558
|
}
|
|
557
|
-
for (l =
|
|
558
|
-
o = te(l), o.operator = le, o.prefix = !1, o.K = l,
|
|
559
|
+
for (l = We(at()); j.cc && !ke(); )
|
|
560
|
+
o = te(l), o.operator = le, o.prefix = !1, o.K = l, B(l), b(), l = T(o, "UpdateExpression");
|
|
559
561
|
return l;
|
|
560
562
|
}
|
|
561
|
-
function
|
|
562
|
-
if (
|
|
563
|
+
function We(o, l) {
|
|
564
|
+
if (V(Bn)) {
|
|
563
565
|
var c = te(o);
|
|
564
|
-
return c.object = o, c.Wa =
|
|
566
|
+
return c.object = o, c.Wa = de(!0), c.bb = !1, We(T(c, "MemberExpression"), l);
|
|
565
567
|
}
|
|
566
|
-
return
|
|
568
|
+
return V(Ut) ? (c = te(o), c.object = o, c.Wa = Q(), c.bb = !0, y(_t), We(T(c, "MemberExpression"), l)) : !l && V(he) ? (c = te(o), c.callee = o, c.arguments = Ct(ue, !1), We(T(c, "CallExpression"), l)) : o;
|
|
567
569
|
}
|
|
568
|
-
function
|
|
569
|
-
switch (
|
|
570
|
+
function at() {
|
|
571
|
+
switch (j) {
|
|
570
572
|
case On:
|
|
571
|
-
var o =
|
|
572
|
-
return
|
|
573
|
-
case
|
|
574
|
-
return
|
|
573
|
+
var o = K();
|
|
574
|
+
return b(), T(o, "ThisExpression");
|
|
575
|
+
case Oe:
|
|
576
|
+
return de();
|
|
575
577
|
case $e:
|
|
576
|
-
case
|
|
578
|
+
case st:
|
|
577
579
|
case gn:
|
|
578
|
-
return o =
|
|
580
|
+
return o = K(), o.value = le, o.raw = x.slice(X, Re), b(), T(o, "Literal");
|
|
579
581
|
case Pn:
|
|
580
582
|
case Nn:
|
|
581
583
|
case Mn:
|
|
582
|
-
return o =
|
|
583
|
-
case
|
|
584
|
-
o =
|
|
584
|
+
return o = K(), o.value = j.$a, o.raw = j.l, b(), T(o, "Literal");
|
|
585
|
+
case he:
|
|
586
|
+
o = It;
|
|
585
587
|
var l = X;
|
|
586
|
-
|
|
588
|
+
b();
|
|
587
589
|
var c = Q();
|
|
588
|
-
return c.start = l, c.end =
|
|
590
|
+
return c.start = l, c.end = Re, R.C && (c.X.start = o, c.X.end = Tt), R.Xa && (c.j = [l, Re]), y(ue), c;
|
|
589
591
|
case Ut:
|
|
590
|
-
return o =
|
|
591
|
-
case
|
|
592
|
-
for (o =
|
|
592
|
+
return o = K(), b(), o.elements = Ct(_t, !0, !0), T(o, "ArrayExpression");
|
|
593
|
+
case He:
|
|
594
|
+
for (o = K(), l = !0, c = !1, o.h = [], b(); !V(Pe); ) {
|
|
593
595
|
if (l)
|
|
594
596
|
l = !1;
|
|
595
|
-
else if (
|
|
597
|
+
else if (y(Se), R.sb && V(Pe))
|
|
596
598
|
break;
|
|
597
599
|
var h = {
|
|
598
|
-
key:
|
|
599
|
-
},
|
|
600
|
-
if (
|
|
600
|
+
key: j === $e || j === st ? at() : de(!0)
|
|
601
|
+
}, A = !1;
|
|
602
|
+
if (V(Ke)) {
|
|
601
603
|
h.value = Q(!0);
|
|
602
604
|
var Y = h.kind = "init";
|
|
603
605
|
} else
|
|
604
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
606
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? I() : (A = c = !0, Y = h.kind = h.key.name, h.key = j === $e || j === st ? at() : de(!0), j !== he && I(), h.value = kt(K(), !1));
|
|
605
607
|
if (h.key.type === "Identifier" && (oe || c))
|
|
606
608
|
for (var ne = 0; ne < o.h.length; ++ne) {
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
609
|
-
var
|
|
610
|
-
|
|
609
|
+
var Me = o.h[ne];
|
|
610
|
+
if (Me.key.name === h.key.name) {
|
|
611
|
+
var Wt = Y === Me.kind || A && Me.kind === "init" || Y === "init" && (Me.kind === "get" || Me.kind === "set");
|
|
612
|
+
Wt && !oe && Y === "init" && Me.kind === "init" && (Wt = !1), Wt && n(h.key.start, "Redefinition of property");
|
|
611
613
|
}
|
|
612
614
|
}
|
|
613
615
|
o.h.push(h);
|
|
614
616
|
}
|
|
615
|
-
return
|
|
616
|
-
case
|
|
617
|
-
return o =
|
|
617
|
+
return T(o, "ObjectExpression");
|
|
618
|
+
case Nt:
|
|
619
|
+
return o = K(), b(), kt(o, !1);
|
|
618
620
|
case Rn:
|
|
619
|
-
return o =
|
|
621
|
+
return o = K(), b(), o.callee = We(at(), !0), o.arguments = V(he) ? Ct(ue, !1) : Tr, T(o, "NewExpression");
|
|
620
622
|
}
|
|
621
|
-
|
|
623
|
+
I();
|
|
622
624
|
}
|
|
623
|
-
function
|
|
624
|
-
|
|
625
|
+
function kt(o, l) {
|
|
626
|
+
j === Oe ? o.id = de() : l ? I() : o.id = null, o.oa = [];
|
|
625
627
|
var c = !0;
|
|
626
|
-
for (
|
|
627
|
-
c ? c = !1 :
|
|
628
|
+
for (y(he); !V(ue); )
|
|
629
|
+
c ? c = !1 : y(Se), o.oa.push(de());
|
|
628
630
|
c = Le;
|
|
629
631
|
var h = z;
|
|
630
|
-
if (Le = !0, z = [], o.body =
|
|
632
|
+
if (Le = !0, z = [], o.body = L(!0), Le = c, z = h, oe || o.body.body.length && je(o.body.body[0])) {
|
|
631
633
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
632
|
-
if (h = 0 > c ? o.id : o.oa[c], (
|
|
633
|
-
for (var
|
|
634
|
-
h.name === o.oa[
|
|
634
|
+
if (h = 0 > c ? o.id : o.oa[c], (Ln(h.name) || ct(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
635
|
+
for (var A = 0; A < c; ++A)
|
|
636
|
+
h.name === o.oa[A].name && n(h.start, "Argument name clash in strict mode");
|
|
635
637
|
}
|
|
636
|
-
return
|
|
638
|
+
return T(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
637
639
|
}
|
|
638
|
-
function
|
|
639
|
-
for (var h = [],
|
|
640
|
-
if (
|
|
641
|
-
|
|
642
|
-
else if (
|
|
640
|
+
function Ct(o, l, c) {
|
|
641
|
+
for (var h = [], A = !0; !V(o); ) {
|
|
642
|
+
if (A)
|
|
643
|
+
A = !1;
|
|
644
|
+
else if (y(Se), l && R.sb && V(o))
|
|
643
645
|
break;
|
|
644
|
-
h.push(c &&
|
|
646
|
+
h.push(c && j === Se ? null : Q(!0));
|
|
645
647
|
}
|
|
646
648
|
return h;
|
|
647
649
|
}
|
|
648
|
-
function
|
|
649
|
-
var l =
|
|
650
|
-
return o &&
|
|
650
|
+
function de(o) {
|
|
651
|
+
var l = K();
|
|
652
|
+
return o && R.yb === "everywhere" && (o = !1), j === Oe ? (!o && (R.yb && _r(le) || oe && Ln(le)) && x.slice(X, Re).indexOf("\\") === -1 && n(X, "The keyword '" + le + "' is reserved"), l.name = le) : o && j.l ? l.name = j.l : I(), Ve = !1, b(), T(l, "Identifier");
|
|
651
653
|
}
|
|
652
654
|
e.version = "0.5.0";
|
|
653
|
-
var
|
|
655
|
+
var R, x = "", Ae, Et;
|
|
654
656
|
e.parse = function(o, l) {
|
|
655
|
-
x = String(o),
|
|
657
|
+
x = String(o), Ae = x.length, R = l || {};
|
|
656
658
|
for (var c in mn)
|
|
657
|
-
Object.prototype.hasOwnProperty.call(
|
|
658
|
-
for (
|
|
659
|
-
c =
|
|
660
|
-
return
|
|
659
|
+
Object.prototype.hasOwnProperty.call(R, c) || (R[c] = mn[c]);
|
|
660
|
+
for (Et = R.sourceFile, Ce = 1, d = fe = 0, Ve = !0, f(), c = R.dc, jt = xe = d, R.C && (At = new a()), Le = oe = !1, z = [], v(), o = c || K(), l = !0, c || (o.body = []); j !== Rt; )
|
|
661
|
+
c = O(), o.body.push(c), l && je(c) && D(!0), l = !1;
|
|
662
|
+
return T(o, "Program");
|
|
661
663
|
};
|
|
662
664
|
var mn = {
|
|
663
665
|
fc: !1,
|
|
@@ -670,28 +672,28 @@ var B, ti = function(e) {
|
|
|
670
672
|
dc: null,
|
|
671
673
|
sourceFile: null,
|
|
672
674
|
vb: null
|
|
673
|
-
}, d = 0, X = 0,
|
|
675
|
+
}, d = 0, X = 0, Re = 0, It, Tt, j, le, Ve, Ce, fe, jt = 0, xe = 0, At, Le, z, oe, Tr = [], $e = {
|
|
674
676
|
type: "num"
|
|
675
677
|
}, gn = {
|
|
676
678
|
type: "regexp"
|
|
677
|
-
},
|
|
679
|
+
}, st = {
|
|
678
680
|
type: "string"
|
|
679
|
-
},
|
|
681
|
+
}, Oe = {
|
|
680
682
|
type: "name"
|
|
681
|
-
}, At = {
|
|
682
|
-
type: "eof"
|
|
683
683
|
}, Rt = {
|
|
684
|
-
|
|
684
|
+
type: "eof"
|
|
685
685
|
}, Ot = {
|
|
686
|
+
l: "break"
|
|
687
|
+
}, Pt = {
|
|
686
688
|
l: "case",
|
|
687
689
|
m: !0
|
|
688
690
|
}, vn = {
|
|
689
691
|
l: "catch"
|
|
690
692
|
}, yn = {
|
|
691
693
|
l: "continue"
|
|
692
|
-
}, xn = {
|
|
693
|
-
l: "debugger"
|
|
694
694
|
}, bn = {
|
|
695
|
+
l: "debugger"
|
|
696
|
+
}, xn = {
|
|
695
697
|
l: "default"
|
|
696
698
|
}, Sn = {
|
|
697
699
|
l: "do",
|
|
@@ -704,21 +706,21 @@ var B, ti = function(e) {
|
|
|
704
706
|
}, Cn = {
|
|
705
707
|
l: "for",
|
|
706
708
|
W: !0
|
|
707
|
-
},
|
|
709
|
+
}, Nt = {
|
|
708
710
|
l: "function"
|
|
709
711
|
}, En = {
|
|
710
712
|
l: "if"
|
|
711
713
|
}, In = {
|
|
712
714
|
l: "return",
|
|
713
715
|
m: !0
|
|
714
|
-
},
|
|
716
|
+
}, Mt = {
|
|
715
717
|
l: "switch"
|
|
716
718
|
}, Tn = {
|
|
717
719
|
l: "throw",
|
|
718
720
|
m: !0
|
|
719
721
|
}, jn = {
|
|
720
722
|
l: "try"
|
|
721
|
-
},
|
|
723
|
+
}, Bt = {
|
|
722
724
|
l: "var"
|
|
723
725
|
}, Ft = {
|
|
724
726
|
l: "while",
|
|
@@ -739,35 +741,35 @@ var B, ti = function(e) {
|
|
|
739
741
|
}, Mn = {
|
|
740
742
|
l: "false",
|
|
741
743
|
$a: !1
|
|
742
|
-
},
|
|
744
|
+
}, lt = {
|
|
743
745
|
l: "in",
|
|
744
746
|
L: 7,
|
|
745
747
|
m: !0
|
|
746
748
|
}, jr = {
|
|
747
|
-
break:
|
|
748
|
-
case:
|
|
749
|
+
break: Ot,
|
|
750
|
+
case: Pt,
|
|
749
751
|
catch: vn,
|
|
750
752
|
continue: yn,
|
|
751
|
-
debugger:
|
|
752
|
-
default:
|
|
753
|
+
debugger: bn,
|
|
754
|
+
default: xn,
|
|
753
755
|
do: Sn,
|
|
754
756
|
else: wn,
|
|
755
757
|
finally: kn,
|
|
756
758
|
for: Cn,
|
|
757
|
-
function:
|
|
759
|
+
function: Nt,
|
|
758
760
|
if: En,
|
|
759
761
|
return: In,
|
|
760
|
-
switch:
|
|
762
|
+
switch: Mt,
|
|
761
763
|
throw: Tn,
|
|
762
764
|
try: jn,
|
|
763
|
-
var:
|
|
765
|
+
var: Bt,
|
|
764
766
|
while: Ft,
|
|
765
767
|
with: An,
|
|
766
768
|
null: Pn,
|
|
767
769
|
true: Nn,
|
|
768
770
|
false: Mn,
|
|
769
771
|
new: Rn,
|
|
770
|
-
in:
|
|
772
|
+
in: lt,
|
|
771
773
|
instanceof: {
|
|
772
774
|
l: "instanceof",
|
|
773
775
|
L: 7,
|
|
@@ -792,39 +794,39 @@ var B, ti = function(e) {
|
|
|
792
794
|
}, Ut = {
|
|
793
795
|
type: "[",
|
|
794
796
|
m: !0
|
|
795
|
-
},
|
|
797
|
+
}, _t = {
|
|
796
798
|
type: "]"
|
|
797
|
-
},
|
|
799
|
+
}, He = {
|
|
798
800
|
type: "{",
|
|
799
801
|
m: !0
|
|
800
|
-
},
|
|
802
|
+
}, Pe = {
|
|
801
803
|
type: "}"
|
|
802
|
-
},
|
|
804
|
+
}, he = {
|
|
803
805
|
type: "(",
|
|
804
806
|
m: !0
|
|
805
|
-
},
|
|
807
|
+
}, ue = {
|
|
806
808
|
type: ")"
|
|
807
|
-
},
|
|
809
|
+
}, Se = {
|
|
808
810
|
type: ",",
|
|
809
811
|
m: !0
|
|
810
|
-
},
|
|
812
|
+
}, pe = {
|
|
811
813
|
type: ";",
|
|
812
814
|
m: !0
|
|
813
|
-
},
|
|
815
|
+
}, Ke = {
|
|
814
816
|
type: ":",
|
|
815
817
|
m: !0
|
|
816
|
-
},
|
|
818
|
+
}, Bn = {
|
|
817
819
|
type: "."
|
|
818
|
-
},
|
|
820
|
+
}, Fn = {
|
|
819
821
|
type: "?",
|
|
820
822
|
m: !0
|
|
821
|
-
},
|
|
823
|
+
}, Un = {
|
|
822
824
|
L: 10,
|
|
823
825
|
m: !0
|
|
824
826
|
}, _n = {
|
|
825
827
|
Cb: !0,
|
|
826
828
|
m: !0
|
|
827
|
-
},
|
|
829
|
+
}, Ee = {
|
|
828
830
|
Cb: !0,
|
|
829
831
|
m: !0
|
|
830
832
|
}, Ar = {
|
|
@@ -834,10 +836,10 @@ var B, ti = function(e) {
|
|
|
834
836
|
}, Dn = {
|
|
835
837
|
prefix: !0,
|
|
836
838
|
m: !0
|
|
837
|
-
},
|
|
839
|
+
}, Wn = {
|
|
838
840
|
L: 1,
|
|
839
841
|
m: !0
|
|
840
|
-
},
|
|
842
|
+
}, Vn = {
|
|
841
843
|
L: 2,
|
|
842
844
|
m: !0
|
|
843
845
|
}, Rr = {
|
|
@@ -855,23 +857,23 @@ var B, ti = function(e) {
|
|
|
855
857
|
}, Mr = {
|
|
856
858
|
L: 7,
|
|
857
859
|
m: !0
|
|
858
|
-
},
|
|
860
|
+
}, Br = {
|
|
859
861
|
L: 8,
|
|
860
862
|
m: !0
|
|
861
|
-
},
|
|
863
|
+
}, Fr = {
|
|
862
864
|
L: 9,
|
|
863
865
|
prefix: !0,
|
|
864
866
|
m: !0
|
|
865
|
-
},
|
|
867
|
+
}, Ur = {
|
|
866
868
|
L: 10,
|
|
867
869
|
m: !0
|
|
868
|
-
}, _r = i("class enum extends super const export import"),
|
|
870
|
+
}, _r = i("class enum extends super const export import"), Ln = i("implements interface let package private protected public static yield"), ct = i("eval arguments"), Dr = 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"), Wr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, $n = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Vr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ut = /[\n\r\u2028\u2029]/, dt = /\r\n|[\n\r\u2028\u2029]/g, Ne, Dt = {
|
|
869
871
|
kind: "loop"
|
|
870
|
-
},
|
|
872
|
+
}, Lr = {
|
|
871
873
|
kind: "switch"
|
|
872
874
|
};
|
|
873
|
-
},
|
|
874
|
-
ti(
|
|
875
|
+
}, Gt = Gt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
876
|
+
ti(Gt.j || (Gt.j = {}));
|
|
875
877
|
function m(e, t) {
|
|
876
878
|
typeof e == "string" && (e = Ue(e, "code"));
|
|
877
879
|
var r = e.constructor;
|
|
@@ -887,17 +889,17 @@ function m(e, t) {
|
|
|
887
889
|
var a, s;
|
|
888
890
|
for (s in this)
|
|
889
891
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
890
|
-
this.N =
|
|
891
|
-
`), "polyfills"), this.ba = void 0,
|
|
892
|
+
this.N = Xt(this, this.ra, null), this.Na = this.N.object, this.ra = Ue(this.ba.join(`
|
|
893
|
+
`), "polyfills"), this.ba = void 0, gt(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;
|
|
892
894
|
}
|
|
893
895
|
var Xn = {
|
|
894
896
|
C: !0,
|
|
895
897
|
kc: 5
|
|
896
|
-
},
|
|
898
|
+
}, en = {
|
|
897
899
|
configurable: !0,
|
|
898
900
|
enumerable: !0,
|
|
899
901
|
writable: !1
|
|
900
|
-
},
|
|
902
|
+
}, w = {
|
|
901
903
|
configurable: !0,
|
|
902
904
|
enumerable: !1,
|
|
903
905
|
writable: !0
|
|
@@ -905,7 +907,7 @@ var Xn = {
|
|
|
905
907
|
configurable: !0,
|
|
906
908
|
enumerable: !1,
|
|
907
909
|
writable: !1
|
|
908
|
-
},
|
|
910
|
+
}, Ge = {
|
|
909
911
|
configurable: !1,
|
|
910
912
|
enumerable: !1,
|
|
911
913
|
writable: !1
|
|
@@ -915,52 +917,52 @@ var Xn = {
|
|
|
915
917
|
writable: !0
|
|
916
918
|
}, mr = {
|
|
917
919
|
STEP_ERROR: !0
|
|
918
|
-
},
|
|
920
|
+
}, De = {
|
|
919
921
|
SCOPE_REFERENCE: !0
|
|
920
|
-
},
|
|
922
|
+
}, Qe = {
|
|
921
923
|
VALUE_IN_DESCRIPTOR: !0
|
|
922
|
-
},
|
|
924
|
+
}, Be = {
|
|
923
925
|
REGEXP_TIMEOUT: !0
|
|
924
|
-
}, Jn = [],
|
|
925
|
-
function
|
|
926
|
+
}, Jn = [], ge = null, qe = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, ni = ["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();", "};"];
|
|
927
|
+
function tn(e) {
|
|
926
928
|
var t = e >>> 0;
|
|
927
929
|
return t === Number(e) ? t : NaN;
|
|
928
930
|
}
|
|
929
|
-
function
|
|
931
|
+
function Ze(e) {
|
|
930
932
|
var t = e >>> 0;
|
|
931
933
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
932
934
|
}
|
|
933
|
-
function
|
|
935
|
+
function gt(e, t, r) {
|
|
934
936
|
t ? e.start = t : delete e.start, r ? e.end = r : delete e.end;
|
|
935
937
|
for (var n in e)
|
|
936
938
|
if (n !== "loc" && e.hasOwnProperty(n)) {
|
|
937
939
|
var i = e[n];
|
|
938
|
-
i && typeof i == "object" &&
|
|
940
|
+
i && typeof i == "object" && gt(i, t, r);
|
|
939
941
|
}
|
|
940
942
|
}
|
|
941
943
|
m.prototype.REGEXP_MODE = 2;
|
|
942
944
|
m.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
943
945
|
m.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
946
|
+
F = m.prototype;
|
|
947
|
+
F.P = !1;
|
|
948
|
+
F.Ka = !1;
|
|
949
|
+
F.Kb = 0;
|
|
950
|
+
F.ic = 0;
|
|
949
951
|
function Ue(e, t) {
|
|
950
952
|
var r = {}, n;
|
|
951
953
|
for (n in Xn)
|
|
952
954
|
r[n] = Xn[n];
|
|
953
|
-
return r.sourceFile = t,
|
|
955
|
+
return r.sourceFile = t, we.j.parse(e, r);
|
|
954
956
|
}
|
|
955
|
-
|
|
957
|
+
F.Jb = function(e) {
|
|
956
958
|
var t = this.o[0];
|
|
957
959
|
if (!t || t.node.type !== "Program")
|
|
958
960
|
throw Error("Expecting original AST to start with a Program node");
|
|
959
961
|
if (typeof e == "string" && (e = Ue(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
960
962
|
throw Error("Expecting new AST to start with a Program node");
|
|
961
|
-
|
|
963
|
+
et(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
962
964
|
};
|
|
963
|
-
|
|
965
|
+
F.lb = function() {
|
|
964
966
|
var e = this.o, t;
|
|
965
967
|
do {
|
|
966
968
|
var r = e[e.length - 1];
|
|
@@ -973,22 +975,22 @@ B.lb = function() {
|
|
|
973
975
|
r = null;
|
|
974
976
|
else {
|
|
975
977
|
this.ca.shift(), 0 <= r.interval && yr(this, r, r.interval);
|
|
976
|
-
var n = new
|
|
978
|
+
var n = new k(r.node, r.scope);
|
|
977
979
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
978
980
|
}
|
|
979
981
|
if (!r)
|
|
980
982
|
break;
|
|
981
983
|
}
|
|
982
984
|
n = r.node;
|
|
983
|
-
var i =
|
|
984
|
-
|
|
985
|
+
var i = qe;
|
|
986
|
+
qe = this;
|
|
985
987
|
try {
|
|
986
988
|
var a = this.rb[n.type](e, r, n);
|
|
987
989
|
} catch (s) {
|
|
988
990
|
if (s !== mr)
|
|
989
991
|
throw this.value !== s && (this.value = void 0), s;
|
|
990
992
|
} finally {
|
|
991
|
-
|
|
993
|
+
qe = i;
|
|
992
994
|
}
|
|
993
995
|
if (a && e.push(a), this.P)
|
|
994
996
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -998,38 +1000,38 @@ B.lb = function() {
|
|
|
998
1000
|
} while (!n.end && t > Date.now());
|
|
999
1001
|
return !0;
|
|
1000
1002
|
};
|
|
1001
|
-
|
|
1003
|
+
F.Eb = function() {
|
|
1002
1004
|
for (; !this.za && this.lb(); )
|
|
1003
1005
|
;
|
|
1004
1006
|
return this.za;
|
|
1005
1007
|
};
|
|
1006
1008
|
function ri(e, t) {
|
|
1007
|
-
e.g(t, "NaN", NaN,
|
|
1009
|
+
e.g(t, "NaN", NaN, Ge), e.g(t, "Infinity", 1 / 0, Ge), e.g(t, "undefined", void 0, Ge), e.g(t, "window", t, en), e.g(t, "this", t, Ge), e.g(t, "self", t), e.M = new M(null), e.Z = new M(e.M), ii(e, t), oi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, w), ai(e, t), si(e, t), li(e, t), ci(e, t), ui(e, t), di(e, t), fi(e, t), hi(e, t), pi(e, t);
|
|
1008
1010
|
var r = e.i(function() {
|
|
1009
1011
|
throw EvalError("Can't happen");
|
|
1010
1012
|
}, !1);
|
|
1011
|
-
r.eval = !0, e.g(t, "eval", r,
|
|
1013
|
+
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);
|
|
1012
1014
|
for (var n = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], i = 0; i < n.length; i++)
|
|
1013
1015
|
r = function(a) {
|
|
1014
1016
|
return function(s) {
|
|
1015
1017
|
try {
|
|
1016
1018
|
return a(s);
|
|
1017
1019
|
} catch (u) {
|
|
1018
|
-
|
|
1020
|
+
C(e, e.Gb, u.message);
|
|
1019
1021
|
}
|
|
1020
1022
|
};
|
|
1021
|
-
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1),
|
|
1023
|
+
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1), w);
|
|
1022
1024
|
r = function(a) {
|
|
1023
1025
|
return qn(e, !1, arguments);
|
|
1024
|
-
}, e.g(t, "setTimeout", e.i(r, !1),
|
|
1026
|
+
}, e.g(t, "setTimeout", e.i(r, !1), w), r = function(a) {
|
|
1025
1027
|
return qn(e, !0, arguments);
|
|
1026
|
-
}, e.g(t, "setInterval", e.i(r, !1),
|
|
1028
|
+
}, e.g(t, "setInterval", e.i(r, !1), w), r = function(a) {
|
|
1027
1029
|
Zn(e, a);
|
|
1028
|
-
}, e.g(t, "clearTimeout", e.i(r, !1),
|
|
1030
|
+
}, e.g(t, "clearTimeout", e.i(r, !1), w), r = function(a) {
|
|
1029
1031
|
Zn(e, a);
|
|
1030
|
-
}, e.g(t, "clearInterval", e.i(r, !1),
|
|
1032
|
+
}, 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);
|
|
1031
1033
|
}
|
|
1032
|
-
|
|
1034
|
+
F.Wb = 0;
|
|
1033
1035
|
function ii(e, t) {
|
|
1034
1036
|
var r = /^[A-Za-z_$][\w$]*$/, n = function(i) {
|
|
1035
1037
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1037,21 +1039,21 @@ function ii(e, t) {
|
|
|
1037
1039
|
s = s.split(/\s*,\s*/);
|
|
1038
1040
|
for (var u = 0; u < s.length; u++) {
|
|
1039
1041
|
var f = s[u];
|
|
1040
|
-
r.test(f) ||
|
|
1042
|
+
r.test(f) || C(e, e.T, "Invalid function argument: " + f);
|
|
1041
1043
|
}
|
|
1042
1044
|
s = s.join(", ");
|
|
1043
1045
|
}
|
|
1044
1046
|
try {
|
|
1045
1047
|
var g = Ue("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1046
1048
|
} catch (v) {
|
|
1047
|
-
|
|
1049
|
+
C(e, e.T, "Invalid code: " + v.message);
|
|
1048
1050
|
}
|
|
1049
|
-
return g.body.length !== 1 &&
|
|
1051
|
+
return g.body.length !== 1 && C(e, e.T, "Invalid code in function body"), on(e, g.body[0].la, e.N, "anonymous");
|
|
1050
1052
|
};
|
|
1051
|
-
e.O = e.i(n, !0), e.g(t, "Function", e.O,
|
|
1053
|
+
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() {
|
|
1052
1054
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ie), e.Z.H = "Function", n = function(i, a) {
|
|
1053
1055
|
var s = e.o[e.o.length - 1];
|
|
1054
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof
|
|
1056
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof M ? s.F = gr(e, a) : C(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1055
1057
|
}, J(e, e.O, "apply", n), n = function(i) {
|
|
1056
1058
|
var a = e.o[e.o.length - 1];
|
|
1057
1059
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1060,49 +1062,49 @@ function ii(e, t) {
|
|
|
1060
1062
|
a.eb = !1;
|
|
1061
1063
|
}, 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() {
|
|
1062
1064
|
return String(this);
|
|
1063
|
-
}, J(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1),
|
|
1065
|
+
}, J(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1), w), n = function() {
|
|
1064
1066
|
return this.valueOf();
|
|
1065
|
-
}, J(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1),
|
|
1067
|
+
}, J(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), w);
|
|
1066
1068
|
}
|
|
1067
1069
|
function oi(e, t) {
|
|
1068
1070
|
function r(i) {
|
|
1069
|
-
i != null ||
|
|
1071
|
+
i != null || C(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1070
1072
|
}
|
|
1071
1073
|
var n = function(i) {
|
|
1072
1074
|
if (i == null)
|
|
1073
|
-
return
|
|
1074
|
-
if (!(i instanceof
|
|
1075
|
-
var a = e.s(
|
|
1075
|
+
return ye(e) ? this : e.s(e.M);
|
|
1076
|
+
if (!(i instanceof M)) {
|
|
1077
|
+
var a = e.s(ve(e, i));
|
|
1076
1078
|
return a.data = i, a;
|
|
1077
1079
|
}
|
|
1078
1080
|
return i;
|
|
1079
1081
|
};
|
|
1080
|
-
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M,
|
|
1081
|
-
return r(i),
|
|
1082
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1),
|
|
1083
|
-
return r(i), i instanceof
|
|
1084
|
-
}, e.g(e.v, "keys", e.i(n, !1),
|
|
1085
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1086
|
-
}, e.g(e.v, "create", e.i(n, !1),
|
|
1087
|
-
return a = String(a), i instanceof
|
|
1088
|
-
}, e.g(e.v, "defineProperty", e.i(n, !1),
|
|
1089
|
-
if (i instanceof
|
|
1082
|
+
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) {
|
|
1083
|
+
return r(i), me(e, Object.getOwnPropertyNames(i instanceof M ? i.h : i));
|
|
1084
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), w), n = function(i) {
|
|
1085
|
+
return r(i), i instanceof M && (i = i.h), me(e, Object.keys(i));
|
|
1086
|
+
}, e.g(e.v, "keys", e.i(n, !1), w), n = function(i) {
|
|
1087
|
+
return i === null ? e.s(null) : (i instanceof M || C(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1088
|
+
}, 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) {
|
|
1089
|
+
return a = String(a), i instanceof M || C(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof M || C(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || C(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, Qe, s.h), i;
|
|
1090
|
+
}, 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) {
|
|
1091
|
+
if (i instanceof M || C(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1090
1092
|
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1091
1093
|
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;
|
|
1092
1094
|
}
|
|
1093
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1),
|
|
1094
|
-
return r(i),
|
|
1095
|
-
}, e.g(e.v, "getPrototypeOf", e.i(n, !1),
|
|
1095
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1), w), n = function(i) {
|
|
1096
|
+
return r(i), ve(e, i);
|
|
1097
|
+
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), w), n = function(i) {
|
|
1096
1098
|
return !!i && !i.preventExtensions;
|
|
1097
|
-
}, e.g(e.v, "isExtensible", e.i(n, !1),
|
|
1098
|
-
return i instanceof
|
|
1099
|
-
}, e.g(e.v, "preventExtensions", e.i(n, !1),
|
|
1100
|
-
return r(this), this instanceof
|
|
1099
|
+
}, e.g(e.v, "isExtensible", e.i(n, !1), w), n = function(i) {
|
|
1100
|
+
return i instanceof M && (i.preventExtensions = !0), i;
|
|
1101
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), w), J(e, e.v, "toString", M.prototype.toString), J(e, e.v, "toLocaleString", M.prototype.toString), J(e, e.v, "valueOf", M.prototype.valueOf), n = function(i) {
|
|
1102
|
+
return r(this), this instanceof M ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1101
1103
|
}, J(e, e.v, "hasOwnProperty", n), n = function(i) {
|
|
1102
|
-
return r(this), this instanceof
|
|
1104
|
+
return r(this), this instanceof M ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1103
1105
|
}, J(e, e.v, "propertyIsEnumerable", n), n = function(i) {
|
|
1104
1106
|
for (; ; ) {
|
|
1105
|
-
if (i =
|
|
1107
|
+
if (i = ve(e, i), !i)
|
|
1106
1108
|
return !1;
|
|
1107
1109
|
if (i === this)
|
|
1108
1110
|
return !0;
|
|
@@ -1111,9 +1113,9 @@ function oi(e, t) {
|
|
|
1111
1113
|
}
|
|
1112
1114
|
function ai(e, t) {
|
|
1113
1115
|
var r = function(n) {
|
|
1114
|
-
var i =
|
|
1116
|
+
var i = ye(e) ? this : _e(e), a = arguments[0];
|
|
1115
1117
|
if (arguments.length === 1 && typeof a == "number")
|
|
1116
|
-
isNaN(
|
|
1118
|
+
isNaN(tn(a)) && C(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1117
1119
|
else {
|
|
1118
1120
|
for (a = 0; a < arguments.length; a++)
|
|
1119
1121
|
i.h[a] = arguments[a];
|
|
@@ -1121,9 +1123,9 @@ function ai(e, t) {
|
|
|
1121
1123
|
}
|
|
1122
1124
|
return i;
|
|
1123
1125
|
};
|
|
1124
|
-
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa,
|
|
1126
|
+
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, w), r = function(n) {
|
|
1125
1127
|
return n && n.H === "Array";
|
|
1126
|
-
}, e.g(e.qa, "isArray", e.i(r, !1),
|
|
1128
|
+
}, e.g(e.qa, "isArray", e.i(r, !1), w), e.g(e.La, "length", 0, {
|
|
1127
1129
|
configurable: !1,
|
|
1128
1130
|
enumerable: !1,
|
|
1129
1131
|
writable: !0
|
|
@@ -1131,78 +1133,78 @@ function ai(e, t) {
|
|
|
1131
1133
|
}
|
|
1132
1134
|
function si(e, t) {
|
|
1133
1135
|
var r = function(n) {
|
|
1134
|
-
return n = arguments.length ?
|
|
1136
|
+
return n = arguments.length ? we.String(n) : "", ye(e) ? (this.data = n, this) : n;
|
|
1135
1137
|
};
|
|
1136
|
-
for (e.J = e.i(r, !0), e.g(t, "String", e.J,
|
|
1138
|
+
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++)
|
|
1137
1139
|
J(e, e.J, t[r], String.prototype[t[r]]);
|
|
1138
1140
|
r = function(n, i, a) {
|
|
1139
1141
|
i = e.R(i), a = e.R(a);
|
|
1140
1142
|
try {
|
|
1141
1143
|
return String(this).localeCompare(n, i, a);
|
|
1142
1144
|
} catch (s) {
|
|
1143
|
-
|
|
1145
|
+
C(e, e.D, "localeCompare: " + s.message);
|
|
1144
1146
|
}
|
|
1145
1147
|
}, J(e, e.J, "localeCompare", r), r = function(n, i, a) {
|
|
1146
1148
|
var s = String(this);
|
|
1147
|
-
if (i = i ? Number(i) : void 0, q(e, n, e.I) && (n = n.data,
|
|
1148
|
-
if (
|
|
1149
|
-
n =
|
|
1149
|
+
if (i = i ? Number(i) : void 0, q(e, n, e.I) && (n = n.data, Xe(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1150
|
+
if (ge)
|
|
1151
|
+
n = ze(e, "string.split(separator, limit)", {
|
|
1150
1152
|
string: s,
|
|
1151
1153
|
separator: n,
|
|
1152
1154
|
limit: i
|
|
1153
|
-
}, n, a), n !==
|
|
1155
|
+
}, n, a), n !== Be && a(me(e, n));
|
|
1154
1156
|
else {
|
|
1155
|
-
var u = e.ha(), f =
|
|
1157
|
+
var u = e.ha(), f = Ye(e, n, u, a);
|
|
1156
1158
|
u.onmessage = function(g) {
|
|
1157
|
-
clearTimeout(f), a(
|
|
1159
|
+
clearTimeout(f), a(me(e, g.data));
|
|
1158
1160
|
}, u.postMessage(["split", s, n, i]);
|
|
1159
1161
|
}
|
|
1160
1162
|
return;
|
|
1161
1163
|
}
|
|
1162
|
-
n = s.split(n, i), a(
|
|
1163
|
-
},
|
|
1164
|
+
n = s.split(n, i), a(me(e, n));
|
|
1165
|
+
}, Je(e, e.J, "split", r), r = function(n, i) {
|
|
1164
1166
|
var a = String(this);
|
|
1165
|
-
if (n = q(e, n, e.I) ? n.data : new RegExp(n),
|
|
1166
|
-
if (
|
|
1167
|
-
n =
|
|
1167
|
+
if (n = q(e, n, e.I) ? n.data : new RegExp(n), Xe(e, n, i), e.REGEXP_MODE === 2)
|
|
1168
|
+
if (ge)
|
|
1169
|
+
n = ze(e, "string.match(regexp)", {
|
|
1168
1170
|
string: a,
|
|
1169
1171
|
regexp: n
|
|
1170
|
-
}, n, i), n !==
|
|
1172
|
+
}, n, i), n !== Be && i(n && me(e, n));
|
|
1171
1173
|
else {
|
|
1172
|
-
var s = e.ha(), u =
|
|
1174
|
+
var s = e.ha(), u = Ye(e, n, s, i);
|
|
1173
1175
|
s.onmessage = function(f) {
|
|
1174
|
-
clearTimeout(u), i(f.data &&
|
|
1176
|
+
clearTimeout(u), i(f.data && me(e, f.data));
|
|
1175
1177
|
}, s.postMessage(["match", a, n]);
|
|
1176
1178
|
}
|
|
1177
1179
|
else
|
|
1178
|
-
n = a.match(n), i(n &&
|
|
1179
|
-
},
|
|
1180
|
+
n = a.match(n), i(n && me(e, n));
|
|
1181
|
+
}, Je(e, e.J, "match", r), r = function(n, i) {
|
|
1180
1182
|
var a = String(this);
|
|
1181
|
-
if (q(e, n, e.I) ? n = n.data : n = new RegExp(n),
|
|
1182
|
-
if (
|
|
1183
|
-
n =
|
|
1183
|
+
if (q(e, n, e.I) ? n = n.data : n = new RegExp(n), Xe(e, n, i), e.REGEXP_MODE === 2)
|
|
1184
|
+
if (ge)
|
|
1185
|
+
n = ze(e, "string.search(regexp)", {
|
|
1184
1186
|
string: a,
|
|
1185
1187
|
regexp: n
|
|
1186
|
-
}, n, i), n !==
|
|
1188
|
+
}, n, i), n !== Be && i(n);
|
|
1187
1189
|
else {
|
|
1188
|
-
var s = e.ha(), u =
|
|
1190
|
+
var s = e.ha(), u = Ye(e, n, s, i);
|
|
1189
1191
|
s.onmessage = function(f) {
|
|
1190
1192
|
clearTimeout(u), i(f.data);
|
|
1191
1193
|
}, s.postMessage(["search", a, n]);
|
|
1192
1194
|
}
|
|
1193
1195
|
else
|
|
1194
1196
|
i(a.search(n));
|
|
1195
|
-
},
|
|
1197
|
+
}, Je(e, e.J, "search", r), r = function(n, i, a) {
|
|
1196
1198
|
var s = String(this);
|
|
1197
|
-
if (i = String(i), q(e, n, e.I) && (n = n.data,
|
|
1198
|
-
if (
|
|
1199
|
-
n =
|
|
1199
|
+
if (i = String(i), q(e, n, e.I) && (n = n.data, Xe(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1200
|
+
if (ge)
|
|
1201
|
+
n = ze(e, "string.replace(substr, newSubstr)", {
|
|
1200
1202
|
string: s,
|
|
1201
1203
|
substr: n,
|
|
1202
1204
|
newSubstr: i
|
|
1203
|
-
}, n, a), n !==
|
|
1205
|
+
}, n, a), n !== Be && a(n);
|
|
1204
1206
|
else {
|
|
1205
|
-
var u = e.ha(), f =
|
|
1207
|
+
var u = e.ha(), f = Ye(e, n, u, a);
|
|
1206
1208
|
u.onmessage = function(g) {
|
|
1207
1209
|
clearTimeout(f), a(g.data);
|
|
1208
1210
|
}, u.postMessage(["replace", s, n, i]);
|
|
@@ -1210,65 +1212,65 @@ function si(e, t) {
|
|
|
1210
1212
|
return;
|
|
1211
1213
|
}
|
|
1212
1214
|
a(s.replace(n, i));
|
|
1213
|
-
},
|
|
1215
|
+
}, 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;", "};", "})();", "");
|
|
1214
1216
|
}
|
|
1215
1217
|
function li(e, t) {
|
|
1216
1218
|
e.mb = e.i(function(r) {
|
|
1217
|
-
return r =
|
|
1218
|
-
}, !0), e.g(t, "Boolean", e.mb,
|
|
1219
|
+
return r = we.Boolean(r), ye(e) ? (this.data = r, this) : r;
|
|
1220
|
+
}, !0), e.g(t, "Boolean", e.mb, w);
|
|
1219
1221
|
}
|
|
1220
1222
|
function ci(e, t) {
|
|
1221
1223
|
var r = function(n) {
|
|
1222
|
-
return n = arguments.length ?
|
|
1224
|
+
return n = arguments.length ? we.Number(n) : 0, ye(e) ? (this.data = n, this) : n;
|
|
1223
1225
|
};
|
|
1224
|
-
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa,
|
|
1225
|
-
e.g(e.aa, t[r], Number[t[r]],
|
|
1226
|
+
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++)
|
|
1227
|
+
e.g(e.aa, t[r], Number[t[r]], Ge);
|
|
1226
1228
|
r = function(n) {
|
|
1227
1229
|
try {
|
|
1228
1230
|
return Number(this).toExponential(n);
|
|
1229
1231
|
} catch (i) {
|
|
1230
|
-
|
|
1232
|
+
C(e, e.D, i.message);
|
|
1231
1233
|
}
|
|
1232
1234
|
}, J(e, e.aa, "toExponential", r), r = function(n) {
|
|
1233
1235
|
try {
|
|
1234
1236
|
return Number(this).toFixed(n);
|
|
1235
1237
|
} catch (i) {
|
|
1236
|
-
|
|
1238
|
+
C(e, e.D, i.message);
|
|
1237
1239
|
}
|
|
1238
1240
|
}, J(e, e.aa, "toFixed", r), r = function(n) {
|
|
1239
1241
|
try {
|
|
1240
1242
|
return Number(this).toPrecision(n);
|
|
1241
1243
|
} catch (i) {
|
|
1242
|
-
|
|
1244
|
+
C(e, e.D, i.message);
|
|
1243
1245
|
}
|
|
1244
1246
|
}, J(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1245
1247
|
try {
|
|
1246
1248
|
return Number(this).toString(n);
|
|
1247
1249
|
} catch (i) {
|
|
1248
|
-
|
|
1250
|
+
C(e, e.D, i.message);
|
|
1249
1251
|
}
|
|
1250
1252
|
}, J(e, e.aa, "toString", r), r = function(n, i) {
|
|
1251
1253
|
n = n ? e.R(n) : void 0, i = i ? e.R(i) : void 0;
|
|
1252
1254
|
try {
|
|
1253
1255
|
return Number(this).toLocaleString(n, i);
|
|
1254
1256
|
} catch (a) {
|
|
1255
|
-
|
|
1257
|
+
C(e, e.D, "toLocaleString: " + a.message);
|
|
1256
1258
|
}
|
|
1257
1259
|
}, J(e, e.aa, "toLocaleString", r);
|
|
1258
1260
|
}
|
|
1259
1261
|
function ui(e, t) {
|
|
1260
1262
|
var r = function(i, a) {
|
|
1261
|
-
if (!
|
|
1262
|
-
return
|
|
1263
|
+
if (!ye(e))
|
|
1264
|
+
return we.Date();
|
|
1263
1265
|
var s = [null].concat(Array.from(arguments));
|
|
1264
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1266
|
+
return this.data = new (Function.prototype.bind.apply(we.Date, s))(), this;
|
|
1265
1267
|
};
|
|
1266
|
-
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$,
|
|
1268
|
+
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(" ");
|
|
1267
1269
|
for (var n = 0; n < t.length; n++)
|
|
1268
1270
|
r = function(i) {
|
|
1269
1271
|
return function(a) {
|
|
1270
1272
|
var s = this.data;
|
|
1271
|
-
s instanceof Date ||
|
|
1273
|
+
s instanceof Date || C(e, e.j, i + " not called on a Date");
|
|
1272
1274
|
for (var u = [], f = 0; f < arguments.length; f++)
|
|
1273
1275
|
u[f] = e.R(arguments[f]);
|
|
1274
1276
|
return s[i].apply(s, u);
|
|
@@ -1277,85 +1279,85 @@ function ui(e, t) {
|
|
|
1277
1279
|
}
|
|
1278
1280
|
function di(e, t) {
|
|
1279
1281
|
var r = function(n, i) {
|
|
1280
|
-
if (
|
|
1282
|
+
if (ye(e))
|
|
1281
1283
|
var a = this;
|
|
1282
1284
|
else {
|
|
1283
1285
|
if (i === void 0 && q(e, n, e.I))
|
|
1284
1286
|
return n;
|
|
1285
1287
|
a = e.s(e.Ma);
|
|
1286
1288
|
}
|
|
1287
|
-
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1289
|
+
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) || C(e, e.T, "Invalid regexp flag: " + i);
|
|
1288
1290
|
try {
|
|
1289
|
-
var s = new
|
|
1291
|
+
var s = new we.RegExp(n, i);
|
|
1290
1292
|
} catch (u) {
|
|
1291
|
-
|
|
1293
|
+
C(e, e.T, u.message);
|
|
1292
1294
|
}
|
|
1293
|
-
return
|
|
1295
|
+
return nn(e, a, s), a;
|
|
1294
1296
|
};
|
|
1295
|
-
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I,
|
|
1297
|
+
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, ie), e.g(e.I.h.prototype, "ignoreCase", void 0, ie), e.g(e.I.h.prototype, "multiline", void 0, ie), e.g(e.I.h.prototype, "source", "(?:)", ie), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, i) {
|
|
1296
1298
|
function a(v) {
|
|
1297
1299
|
if (v) {
|
|
1298
|
-
var
|
|
1299
|
-
return e.g(
|
|
1300
|
+
var S = me(e, v);
|
|
1301
|
+
return e.g(S, "index", v.index), e.g(S, "input", v.input), S;
|
|
1300
1302
|
}
|
|
1301
1303
|
return null;
|
|
1302
1304
|
}
|
|
1303
1305
|
var s = this.data;
|
|
1304
|
-
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1305
|
-
if (
|
|
1306
|
-
n =
|
|
1306
|
+
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")), Xe(e, s, i), e.REGEXP_MODE === 2)
|
|
1307
|
+
if (ge)
|
|
1308
|
+
n = ze(e, "regexp.exec(string)", {
|
|
1307
1309
|
string: n,
|
|
1308
1310
|
regexp: s
|
|
1309
|
-
}, s, i), n !==
|
|
1311
|
+
}, s, i), n !== Be && (e.g(this, "lastIndex", s.lastIndex), i(a(n)));
|
|
1310
1312
|
else {
|
|
1311
|
-
var u = e.ha(), f =
|
|
1313
|
+
var u = e.ha(), f = Ye(e, s, u, i), g = this;
|
|
1312
1314
|
u.onmessage = function(v) {
|
|
1313
1315
|
clearTimeout(f), e.g(g, "lastIndex", v.data[1]), i(a(v.data[0]));
|
|
1314
1316
|
}, u.postMessage(["exec", s, s.lastIndex, n]);
|
|
1315
1317
|
}
|
|
1316
1318
|
else
|
|
1317
1319
|
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), i(a(n));
|
|
1318
|
-
},
|
|
1320
|
+
}, Je(e, e.I, "exec", r);
|
|
1319
1321
|
}
|
|
1320
1322
|
function fi(e, t) {
|
|
1321
1323
|
function r(n) {
|
|
1322
1324
|
var i = e.i(function(a) {
|
|
1323
|
-
var s =
|
|
1324
|
-
return
|
|
1325
|
+
var s = ye(e) ? this : e.Aa(i);
|
|
1326
|
+
return zt(e, s, a), s;
|
|
1325
1327
|
}, !0);
|
|
1326
|
-
return e.g(i, "prototype", e.Aa(e.D),
|
|
1328
|
+
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;
|
|
1327
1329
|
}
|
|
1328
1330
|
e.D = e.i(function(n) {
|
|
1329
|
-
var i =
|
|
1330
|
-
return
|
|
1331
|
-
}, !0), e.g(t, "Error", e.D,
|
|
1331
|
+
var i = ye(e) ? this : e.Aa(e.D);
|
|
1332
|
+
return zt(e, i, n), i;
|
|
1333
|
+
}, !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");
|
|
1332
1334
|
}
|
|
1333
1335
|
function hi(e, t) {
|
|
1334
1336
|
var r = e.s(e.M);
|
|
1335
|
-
e.g(t, "Math", r,
|
|
1337
|
+
e.g(t, "Math", r, w);
|
|
1336
1338
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1337
1339
|
for (t = 0; t < n.length; t++)
|
|
1338
1340
|
e.g(r, n[t], Math[n[t]], ie);
|
|
1339
1341
|
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++)
|
|
1340
|
-
e.g(r, n[t], e.i(Math[n[t]], !1),
|
|
1342
|
+
e.g(r, n[t], e.i(Math[n[t]], !1), w);
|
|
1341
1343
|
}
|
|
1342
1344
|
function pi(e, t) {
|
|
1343
1345
|
var r = e.s(e.M);
|
|
1344
|
-
e.g(t, "JSON", r,
|
|
1346
|
+
e.g(t, "JSON", r, w), t = function(n) {
|
|
1345
1347
|
try {
|
|
1346
1348
|
var i = JSON.parse(String(n));
|
|
1347
1349
|
} catch (a) {
|
|
1348
|
-
|
|
1350
|
+
C(e, e.T, a.message);
|
|
1349
1351
|
}
|
|
1350
1352
|
return e.Ia(i);
|
|
1351
1353
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1352
|
-
i && i.H === "Function" ?
|
|
1354
|
+
i && i.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = gr(e, i), i = i.filter(function(u) {
|
|
1353
1355
|
return typeof u == "string" || typeof u == "number";
|
|
1354
1356
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1355
1357
|
try {
|
|
1356
1358
|
var s = JSON.stringify(n, i, a);
|
|
1357
1359
|
} catch (u) {
|
|
1358
|
-
|
|
1360
|
+
C(e, e.j, u.message);
|
|
1359
1361
|
}
|
|
1360
1362
|
return s;
|
|
1361
1363
|
}, e.g(r, "stringify", e.i(t, !1));
|
|
@@ -1365,18 +1367,18 @@ function q(e, t, r) {
|
|
|
1365
1367
|
return !1;
|
|
1366
1368
|
if (r = r.h.prototype, t === r)
|
|
1367
1369
|
return !0;
|
|
1368
|
-
for (t =
|
|
1370
|
+
for (t = ve(e, t); t; ) {
|
|
1369
1371
|
if (t === r)
|
|
1370
1372
|
return !0;
|
|
1371
1373
|
t = t.xa;
|
|
1372
1374
|
}
|
|
1373
1375
|
return !1;
|
|
1374
1376
|
}
|
|
1375
|
-
function
|
|
1376
|
-
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex,
|
|
1377
|
+
function nn(e, t, r) {
|
|
1378
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, w), e.g(t, "source", r.source, ie), e.g(t, "global", r.global, ie), e.g(t, "ignoreCase", r.ignoreCase, ie), e.g(t, "multiline", r.multiline, ie);
|
|
1377
1379
|
}
|
|
1378
|
-
function
|
|
1379
|
-
r && e.g(t, "message", String(r),
|
|
1380
|
+
function zt(e, t, r) {
|
|
1381
|
+
r && e.g(t, "message", String(r), w), r = [];
|
|
1380
1382
|
for (var n = e.o.length - 1; 0 <= n; n--) {
|
|
1381
1383
|
var i = e.o[n], a = i.node;
|
|
1382
1384
|
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({
|
|
@@ -1390,63 +1392,63 @@ function Gt(e, t, r) {
|
|
|
1390
1392
|
`) : a + (" at " + s + `
|
|
1391
1393
|
`);
|
|
1392
1394
|
}
|
|
1393
|
-
e.g(t, "stack", a.trim(),
|
|
1395
|
+
e.g(t, "stack", a.trim(), w);
|
|
1394
1396
|
}
|
|
1395
|
-
|
|
1397
|
+
F.ha = function() {
|
|
1396
1398
|
var e = this.ha.Mb;
|
|
1397
1399
|
return e || (e = new Blob([ni.join(`
|
|
1398
1400
|
`)], {
|
|
1399
1401
|
type: "application/javascript"
|
|
1400
1402
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1401
1403
|
};
|
|
1402
|
-
function
|
|
1404
|
+
function ze(e, t, r, n, i) {
|
|
1403
1405
|
var a = {
|
|
1404
1406
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1405
1407
|
};
|
|
1406
1408
|
try {
|
|
1407
|
-
return
|
|
1409
|
+
return ge.runInNewContext(t, r, a);
|
|
1408
1410
|
} catch {
|
|
1409
|
-
i(null),
|
|
1411
|
+
i(null), C(e, e.D, "RegExp Timeout: " + n);
|
|
1410
1412
|
}
|
|
1411
|
-
return
|
|
1413
|
+
return Be;
|
|
1412
1414
|
}
|
|
1413
|
-
function
|
|
1415
|
+
function Xe(e, t, r) {
|
|
1414
1416
|
if (e.REGEXP_MODE === 0)
|
|
1415
1417
|
var n = !1;
|
|
1416
1418
|
else if (e.REGEXP_MODE === 1)
|
|
1417
1419
|
n = !0;
|
|
1418
|
-
else if (
|
|
1420
|
+
else if (ge)
|
|
1419
1421
|
n = !0;
|
|
1420
1422
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1421
1423
|
n = !0;
|
|
1422
1424
|
else if (typeof require == "function") {
|
|
1423
1425
|
try {
|
|
1424
|
-
|
|
1426
|
+
ge = require("vm");
|
|
1425
1427
|
} catch {
|
|
1426
1428
|
}
|
|
1427
|
-
n = !!
|
|
1429
|
+
n = !!ge;
|
|
1428
1430
|
} else
|
|
1429
1431
|
n = !1;
|
|
1430
|
-
n || (r(null),
|
|
1432
|
+
n || (r(null), C(e, e.D, "Regular expressions not supported: " + t));
|
|
1431
1433
|
}
|
|
1432
|
-
function
|
|
1434
|
+
function Ye(e, t, r, n) {
|
|
1433
1435
|
return setTimeout(function() {
|
|
1434
1436
|
r.terminate(), n(null);
|
|
1435
1437
|
try {
|
|
1436
|
-
|
|
1438
|
+
C(e, e.D, "RegExp Timeout: " + t);
|
|
1437
1439
|
} catch {
|
|
1438
1440
|
}
|
|
1439
1441
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1440
1442
|
}
|
|
1441
|
-
|
|
1443
|
+
F.Aa = function(e) {
|
|
1442
1444
|
return this.s(e && e.h.prototype);
|
|
1443
1445
|
};
|
|
1444
|
-
|
|
1446
|
+
F.s = function(e) {
|
|
1445
1447
|
if (typeof e != "object")
|
|
1446
1448
|
throw Error("Non object prototype");
|
|
1447
|
-
return e = new
|
|
1449
|
+
return e = new M(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1448
1450
|
};
|
|
1449
|
-
function
|
|
1451
|
+
function _e(e) {
|
|
1450
1452
|
var t = e.s(e.La);
|
|
1451
1453
|
return e.g(t, "length", 0, {
|
|
1452
1454
|
configurable: !1,
|
|
@@ -1454,29 +1456,29 @@ function Be(e) {
|
|
|
1454
1456
|
writable: !0
|
|
1455
1457
|
}), t.H = "Array", t;
|
|
1456
1458
|
}
|
|
1457
|
-
function
|
|
1459
|
+
function rn(e, t, r) {
|
|
1458
1460
|
var n = e.s(e.Z);
|
|
1459
|
-
return r ? (r = e.s(e.M), e.g(n, "prototype", r,
|
|
1461
|
+
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, ie), n.H = "Function", n;
|
|
1460
1462
|
}
|
|
1461
|
-
function
|
|
1462
|
-
var i =
|
|
1463
|
+
function on(e, t, r, n) {
|
|
1464
|
+
var i = rn(e, t.oa.length, !0);
|
|
1463
1465
|
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", ie), i;
|
|
1464
1466
|
}
|
|
1465
|
-
|
|
1466
|
-
return t =
|
|
1467
|
+
F.i = function(e, t) {
|
|
1468
|
+
return t = rn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ie), t;
|
|
1467
1469
|
};
|
|
1468
|
-
|
|
1469
|
-
var t =
|
|
1470
|
+
F.ub = function(e) {
|
|
1471
|
+
var t = rn(this, e.length, !0);
|
|
1470
1472
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ie), t;
|
|
1471
1473
|
};
|
|
1472
|
-
|
|
1473
|
-
if (e instanceof
|
|
1474
|
+
F.Ia = function(e) {
|
|
1475
|
+
if (e instanceof M)
|
|
1474
1476
|
throw Error("Object is already pseudo");
|
|
1475
1477
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1476
1478
|
return e;
|
|
1477
1479
|
if (e instanceof RegExp) {
|
|
1478
1480
|
var t = this.s(this.Ma);
|
|
1479
|
-
return
|
|
1481
|
+
return nn(this, t, e), t;
|
|
1480
1482
|
}
|
|
1481
1483
|
if (e instanceof Date)
|
|
1482
1484
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1490,7 +1492,7 @@ B.Ia = function(e) {
|
|
|
1490
1492
|
}, !!t);
|
|
1491
1493
|
}
|
|
1492
1494
|
if (Array.isArray(e)) {
|
|
1493
|
-
t =
|
|
1495
|
+
t = _e(this);
|
|
1494
1496
|
for (var n = 0; n < e.length; n++)
|
|
1495
1497
|
n in e && this.g(t, n, this.Ia(e[n]));
|
|
1496
1498
|
return t;
|
|
@@ -1500,10 +1502,10 @@ B.Ia = function(e) {
|
|
|
1500
1502
|
this.g(t, n, this.Ia(e[n]));
|
|
1501
1503
|
return t;
|
|
1502
1504
|
};
|
|
1503
|
-
|
|
1505
|
+
F.R = function(e, t) {
|
|
1504
1506
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1505
1507
|
return e;
|
|
1506
|
-
if (!(e instanceof
|
|
1508
|
+
if (!(e instanceof M))
|
|
1507
1509
|
throw Error("Object is not pseudo");
|
|
1508
1510
|
if (q(this, e, this.I))
|
|
1509
1511
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1519,7 +1521,7 @@ B.R = function(e, t) {
|
|
|
1519
1521
|
if (t.hb.push(e), q(this, e, this.qa)) {
|
|
1520
1522
|
r = [], t.Sa.push(r);
|
|
1521
1523
|
for (var n = this.G(e, "length"), i = 0; i < n; i++)
|
|
1522
|
-
|
|
1524
|
+
vt(this, e, i) && (r[i] = this.R(this.G(e, i), t));
|
|
1523
1525
|
} else
|
|
1524
1526
|
for (n in r = {}, t.Sa.push(r), e.h)
|
|
1525
1527
|
i = this.R(e.h[n], t), Object.defineProperty(r, n, {
|
|
@@ -1530,8 +1532,8 @@ B.R = function(e, t) {
|
|
|
1530
1532
|
});
|
|
1531
1533
|
return t.hb.pop(), t.Sa.pop(), r;
|
|
1532
1534
|
};
|
|
1533
|
-
function
|
|
1534
|
-
for (var r =
|
|
1535
|
+
function me(e, t) {
|
|
1536
|
+
for (var r = _e(e), n = Object.getOwnPropertyNames(t), i = 0; i < n.length; i++)
|
|
1535
1537
|
e.g(r, n[i], t[n[i]]);
|
|
1536
1538
|
return r;
|
|
1537
1539
|
}
|
|
@@ -1539,9 +1541,9 @@ function gr(e, t) {
|
|
|
1539
1541
|
var r = [], n;
|
|
1540
1542
|
for (n in t.h)
|
|
1541
1543
|
r[n] = e.G(t, n);
|
|
1542
|
-
return r.length =
|
|
1544
|
+
return r.length = tn(e.G(t, "length")) || 0, r;
|
|
1543
1545
|
}
|
|
1544
|
-
function
|
|
1546
|
+
function ve(e, t) {
|
|
1545
1547
|
switch (typeof t) {
|
|
1546
1548
|
case "number":
|
|
1547
1549
|
return e.aa.h.prototype;
|
|
@@ -1552,52 +1554,52 @@ function ge(e, t) {
|
|
|
1552
1554
|
}
|
|
1553
1555
|
return t ? t.xa : null;
|
|
1554
1556
|
}
|
|
1555
|
-
|
|
1557
|
+
F.G = function(e, t) {
|
|
1556
1558
|
if (this.P)
|
|
1557
1559
|
throw Error("Getter not supported in that context");
|
|
1558
|
-
if (t = String(t), e != null ||
|
|
1560
|
+
if (t = String(t), e != null || C(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof M))
|
|
1559
1561
|
throw TypeError("Expecting native value or pseudo object");
|
|
1560
1562
|
if (t === "length") {
|
|
1561
1563
|
if (q(this, e, this.J))
|
|
1562
1564
|
return String(e).length;
|
|
1563
1565
|
} else if (64 > t.charCodeAt(0) && q(this, e, this.J)) {
|
|
1564
|
-
var r =
|
|
1566
|
+
var r = Ze(t);
|
|
1565
1567
|
if (!isNaN(r) && r < String(e).length)
|
|
1566
1568
|
return String(e)[r];
|
|
1567
1569
|
}
|
|
1568
1570
|
do
|
|
1569
1571
|
if (e.h && t in e.h)
|
|
1570
1572
|
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1571
|
-
while (e =
|
|
1573
|
+
while (e = ve(this, e));
|
|
1572
1574
|
};
|
|
1573
|
-
function
|
|
1574
|
-
if (!(t instanceof
|
|
1575
|
+
function vt(e, t, r) {
|
|
1576
|
+
if (!(t instanceof M))
|
|
1575
1577
|
throw TypeError("Primitive data type has no properties");
|
|
1576
1578
|
if (r = String(r), r === "length" && q(e, t, e.J))
|
|
1577
1579
|
return !0;
|
|
1578
1580
|
if (q(e, t, e.J)) {
|
|
1579
|
-
var n =
|
|
1581
|
+
var n = Ze(r);
|
|
1580
1582
|
if (!isNaN(n) && n < String(t).length)
|
|
1581
1583
|
return !0;
|
|
1582
1584
|
}
|
|
1583
1585
|
do
|
|
1584
1586
|
if (t.h && r in t.h)
|
|
1585
1587
|
return !0;
|
|
1586
|
-
while (t =
|
|
1588
|
+
while (t = ve(e, t));
|
|
1587
1589
|
return !1;
|
|
1588
1590
|
}
|
|
1589
|
-
|
|
1591
|
+
F.g = function(e, t, r, n) {
|
|
1590
1592
|
if (this.Ka)
|
|
1591
1593
|
throw Error("Setter not supported in that context");
|
|
1592
|
-
if (t = String(t), e != null ||
|
|
1594
|
+
if (t = String(t), e != null || C(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof M))
|
|
1593
1595
|
throw TypeError("Expecting native value or pseudo object");
|
|
1594
|
-
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) &&
|
|
1595
|
-
var i = !this.o ||
|
|
1596
|
-
if (e instanceof
|
|
1596
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && C(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1597
|
+
var i = !this.o || an(this).S;
|
|
1598
|
+
if (e instanceof M) {
|
|
1597
1599
|
if (q(this, e, this.J)) {
|
|
1598
|
-
var a =
|
|
1600
|
+
var a = Ze(t);
|
|
1599
1601
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1600
|
-
i &&
|
|
1602
|
+
i && C(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1601
1603
|
return;
|
|
1602
1604
|
}
|
|
1603
1605
|
}
|
|
@@ -1608,64 +1610,64 @@ B.g = function(e, t, r, n) {
|
|
|
1608
1610
|
return;
|
|
1609
1611
|
r = n.value;
|
|
1610
1612
|
}
|
|
1611
|
-
if (r =
|
|
1613
|
+
if (r = tn(r), isNaN(r) && C(this, this.ob, "Invalid array length"), r < a)
|
|
1612
1614
|
for (s in e.h) {
|
|
1613
|
-
var s =
|
|
1615
|
+
var s = Ze(s);
|
|
1614
1616
|
!isNaN(s) && r <= s && delete e.h[s];
|
|
1615
1617
|
}
|
|
1616
1618
|
} else
|
|
1617
|
-
isNaN(s =
|
|
1619
|
+
isNaN(s = Ze(t)) || (e.h.length = Math.max(a, s + 1));
|
|
1618
1620
|
if (!e.preventExtensions || t in e.h)
|
|
1619
1621
|
if (n) {
|
|
1620
|
-
i = {}, "get" in n && n.get && (e.V[t] = n.get, i.get = this.g.ac), "set" in n && n.set && (e.Y[t] = n.set, i.set = this.g.bc), "configurable" in n && (i.configurable = n.configurable), "enumerable" in n && (i.enumerable = n.enumerable), "writable" in n && (i.writable = n.writable, delete e.V[t], delete e.Y[t]), "value" in n ? (i.value = n.value, delete e.V[t], delete e.Y[t]) : r !==
|
|
1622
|
+
i = {}, "get" in n && n.get && (e.V[t] = n.get, i.get = this.g.ac), "set" in n && n.set && (e.Y[t] = n.set, i.set = this.g.bc), "configurable" in n && (i.configurable = n.configurable), "enumerable" in n && (i.enumerable = n.enumerable), "writable" in n && (i.writable = n.writable, delete e.V[t], delete e.Y[t]), "value" in n ? (i.value = n.value, delete e.V[t], delete e.Y[t]) : r !== Qe && (i.value = r, delete e.V[t], delete e.Y[t]);
|
|
1621
1623
|
try {
|
|
1622
1624
|
Object.defineProperty(e.h, t, i);
|
|
1623
1625
|
} catch {
|
|
1624
|
-
|
|
1626
|
+
C(this, this.j, "Cannot redefine property: " + t);
|
|
1625
1627
|
}
|
|
1626
1628
|
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1627
1629
|
} else {
|
|
1628
|
-
if (r ===
|
|
1630
|
+
if (r === Qe)
|
|
1629
1631
|
throw ReferenceError("Value not specified");
|
|
1630
1632
|
for (n = e; !(t in n.h); )
|
|
1631
|
-
if (n =
|
|
1633
|
+
if (n = ve(this, n), !n) {
|
|
1632
1634
|
n = e;
|
|
1633
1635
|
break;
|
|
1634
1636
|
}
|
|
1635
1637
|
if (n.Y && n.Y[t])
|
|
1636
1638
|
return this.Ka = !0, n.Y[t];
|
|
1637
1639
|
if (n.V && n.V[t])
|
|
1638
|
-
i &&
|
|
1640
|
+
i && C(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1639
1641
|
else
|
|
1640
1642
|
try {
|
|
1641
1643
|
e.h[t] = r;
|
|
1642
1644
|
} catch {
|
|
1643
|
-
i &&
|
|
1645
|
+
i && C(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1644
1646
|
}
|
|
1645
1647
|
}
|
|
1646
1648
|
else
|
|
1647
|
-
i &&
|
|
1649
|
+
i && C(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1648
1650
|
} else
|
|
1649
|
-
i &&
|
|
1651
|
+
i && C(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1650
1652
|
};
|
|
1651
|
-
|
|
1653
|
+
F.g.ac = function() {
|
|
1652
1654
|
throw Error("Placeholder getter");
|
|
1653
1655
|
};
|
|
1654
|
-
|
|
1656
|
+
F.g.bc = function() {
|
|
1655
1657
|
throw Error("Placeholder setter");
|
|
1656
1658
|
};
|
|
1657
1659
|
function J(e, t, r, n) {
|
|
1658
|
-
e.g(t.h.prototype, r, e.i(n, !1),
|
|
1660
|
+
e.g(t.h.prototype, r, e.i(n, !1), w);
|
|
1659
1661
|
}
|
|
1660
|
-
function
|
|
1661
|
-
e.g(t.h.prototype, r, e.ub(n),
|
|
1662
|
+
function Je(e, t, r, n) {
|
|
1663
|
+
e.g(t.h.prototype, r, e.ub(n), w);
|
|
1662
1664
|
}
|
|
1663
|
-
function
|
|
1665
|
+
function an(e) {
|
|
1664
1666
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1665
1667
|
throw Error("No scope found");
|
|
1666
1668
|
return e;
|
|
1667
1669
|
}
|
|
1668
|
-
function
|
|
1670
|
+
function Xt(e, t, r) {
|
|
1669
1671
|
var n = !1;
|
|
1670
1672
|
if (r && r.S)
|
|
1671
1673
|
n = !0;
|
|
@@ -1673,40 +1675,40 @@ function zt(e, t, r) {
|
|
|
1673
1675
|
var i = t.body && t.body[0];
|
|
1674
1676
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (n = !0);
|
|
1675
1677
|
}
|
|
1676
|
-
return i = e.s(null), n = new
|
|
1678
|
+
return i = e.s(null), n = new br(r, n, i), r || ri(e, n.object), et(e, t, n), n;
|
|
1677
1679
|
}
|
|
1678
|
-
function
|
|
1680
|
+
function sn(e, t, r) {
|
|
1679
1681
|
if (!t)
|
|
1680
1682
|
throw Error("parentScope required");
|
|
1681
|
-
return e = r || e.s(null), new
|
|
1683
|
+
return e = r || e.s(null), new br(t, t.S, e);
|
|
1682
1684
|
}
|
|
1683
|
-
function
|
|
1684
|
-
for (var r =
|
|
1685
|
+
function ln(e, t) {
|
|
1686
|
+
for (var r = an(e); r && r !== e.N; ) {
|
|
1685
1687
|
if (t in r.object.h)
|
|
1686
1688
|
return r.object.h[t];
|
|
1687
1689
|
r = r.Va;
|
|
1688
1690
|
}
|
|
1689
|
-
if (r === e.N &&
|
|
1691
|
+
if (r === e.N && vt(e, r.object, t))
|
|
1690
1692
|
return e.G(r.object, t);
|
|
1691
|
-
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" ||
|
|
1693
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || C(e, e.pb, t + " is not defined");
|
|
1692
1694
|
}
|
|
1693
1695
|
function vr(e, t, r) {
|
|
1694
|
-
for (var n =
|
|
1696
|
+
for (var n = an(e), i = n.S; n && n !== e.N; ) {
|
|
1695
1697
|
if (t in n.object.h) {
|
|
1696
1698
|
try {
|
|
1697
1699
|
n.object.h[t] = r;
|
|
1698
1700
|
} catch {
|
|
1699
|
-
i &&
|
|
1701
|
+
i && C(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1700
1702
|
}
|
|
1701
1703
|
return;
|
|
1702
1704
|
}
|
|
1703
1705
|
n = n.Va;
|
|
1704
1706
|
}
|
|
1705
|
-
if (n === e.N && (!i ||
|
|
1707
|
+
if (n === e.N && (!i || vt(e, n.object, t)))
|
|
1706
1708
|
return e.g(n.object, t, r);
|
|
1707
|
-
|
|
1709
|
+
C(e, e.pb, t + " is not defined");
|
|
1708
1710
|
}
|
|
1709
|
-
function
|
|
1711
|
+
function et(e, t, r) {
|
|
1710
1712
|
if (t.jb)
|
|
1711
1713
|
var n = t.jb;
|
|
1712
1714
|
else {
|
|
@@ -1739,12 +1741,12 @@ function Qe(e, t, r) {
|
|
|
1739
1741
|
if (Array.isArray(u)) {
|
|
1740
1742
|
for (i = 0; i < u.length; i++)
|
|
1741
1743
|
if (u[i] && u[i].constructor === a) {
|
|
1742
|
-
var f =
|
|
1744
|
+
var f = et(e, u[i], r);
|
|
1743
1745
|
for (s in f)
|
|
1744
1746
|
n[s] = f[s];
|
|
1745
1747
|
}
|
|
1746
1748
|
} else if (u.constructor === a)
|
|
1747
|
-
for (s in f =
|
|
1749
|
+
for (s in f = et(e, u, r), f)
|
|
1748
1750
|
n[s] = f[s];
|
|
1749
1751
|
}
|
|
1750
1752
|
}
|
|
@@ -1752,22 +1754,22 @@ function Qe(e, t, r) {
|
|
|
1752
1754
|
t.jb = n;
|
|
1753
1755
|
}
|
|
1754
1756
|
for (s in n)
|
|
1755
|
-
n[s] === !0 ? e.g(r.object, s, void 0, Yn) : e.g(r.object, s,
|
|
1757
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Yn) : e.g(r.object, s, on(e, n[s], r), Yn);
|
|
1756
1758
|
return n;
|
|
1757
1759
|
}
|
|
1758
|
-
function
|
|
1760
|
+
function ye(e) {
|
|
1759
1761
|
return e.o[e.o.length - 1].isConstructor;
|
|
1760
1762
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return t[0] ===
|
|
1763
|
+
function cn(e, t) {
|
|
1764
|
+
return t[0] === De ? ln(e, t[1]) : e.G(t[0], t[1]);
|
|
1763
1765
|
}
|
|
1764
|
-
function
|
|
1765
|
-
return t[0] ===
|
|
1766
|
+
function un(e, t, r) {
|
|
1767
|
+
return t[0] === De ? vr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1766
1768
|
}
|
|
1767
|
-
function
|
|
1768
|
-
throw e.N ? (r !== void 0 && t instanceof
|
|
1769
|
+
function C(e, t, r) {
|
|
1770
|
+
throw e.N ? (r !== void 0 && t instanceof M && (t = e.Aa(t), zt(e, t, r)), rt(e, 4, t), mr) : r === void 0 ? t : r;
|
|
1769
1771
|
}
|
|
1770
|
-
function
|
|
1772
|
+
function rt(e, t, r, n) {
|
|
1771
1773
|
if (t === 0)
|
|
1772
1774
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1773
1775
|
var i = e.o;
|
|
@@ -1847,16 +1849,16 @@ function qn(e, t, r) {
|
|
|
1847
1849
|
var n = e.o[e.o.length - 1], i = Array.from(r), a = i.shift();
|
|
1848
1850
|
r = Math.max(Number(i.shift() || 0), 0);
|
|
1849
1851
|
var s = e.ya();
|
|
1850
|
-
if (a instanceof
|
|
1852
|
+
if (a instanceof M && a.H === "Function") {
|
|
1851
1853
|
var u = a;
|
|
1852
1854
|
s.type = "CallExpression", n = n.scope;
|
|
1853
1855
|
} else {
|
|
1854
1856
|
try {
|
|
1855
1857
|
var f = Ue(String(a), "taskCode" + e.ic++);
|
|
1856
1858
|
} catch (g) {
|
|
1857
|
-
|
|
1859
|
+
C(e, e.T, "Invalid code: " + g.message);
|
|
1858
1860
|
}
|
|
1859
|
-
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0],
|
|
1861
|
+
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], gt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1860
1862
|
}
|
|
1861
1863
|
return t = new mi(u, i, n, s, t ? r : -1), yr(e, t, r), t.Db;
|
|
1862
1864
|
}
|
|
@@ -1872,49 +1874,49 @@ function Zn(e, t) {
|
|
|
1872
1874
|
break;
|
|
1873
1875
|
}
|
|
1874
1876
|
}
|
|
1875
|
-
function
|
|
1877
|
+
function it(e, t, r) {
|
|
1876
1878
|
if (!e.P)
|
|
1877
1879
|
throw Error("Unexpected call to createGetter");
|
|
1878
1880
|
e.P = !1, r = Array.isArray(r) ? r[0] : r;
|
|
1879
1881
|
var n = e.ya();
|
|
1880
|
-
return n.type = "CallExpression", e = new
|
|
1882
|
+
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;
|
|
1881
1883
|
}
|
|
1882
|
-
function
|
|
1884
|
+
function dn(e, t, r, n) {
|
|
1883
1885
|
if (!e.Ka)
|
|
1884
1886
|
throw Error("Unexpected call to createSetter");
|
|
1885
1887
|
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
1886
1888
|
var i = e.ya();
|
|
1887
|
-
return i.type = "CallExpression", e = new
|
|
1889
|
+
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;
|
|
1888
1890
|
}
|
|
1889
1891
|
function Vt(e, t) {
|
|
1890
|
-
return t == null ? e.Na : t instanceof
|
|
1892
|
+
return t == null ? e.Na : t instanceof M ? t : (e = e.s(ve(e, t)), e.data = t, e);
|
|
1891
1893
|
}
|
|
1892
|
-
|
|
1894
|
+
F.Xb = function() {
|
|
1893
1895
|
return this.N;
|
|
1894
1896
|
};
|
|
1895
|
-
|
|
1897
|
+
F.Yb = function() {
|
|
1896
1898
|
return this.o;
|
|
1897
1899
|
};
|
|
1898
|
-
|
|
1900
|
+
F.ec = function(e) {
|
|
1899
1901
|
this.o = e;
|
|
1900
1902
|
};
|
|
1901
|
-
function
|
|
1903
|
+
function k(e, t) {
|
|
1902
1904
|
this.node = e, this.scope = t;
|
|
1903
1905
|
}
|
|
1904
|
-
function
|
|
1906
|
+
function br(e, t, r) {
|
|
1905
1907
|
this.Va = e, this.S = t, this.object = r;
|
|
1906
1908
|
}
|
|
1907
|
-
function
|
|
1909
|
+
function M(e) {
|
|
1908
1910
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1909
1911
|
}
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
if (!
|
|
1912
|
+
F = M.prototype;
|
|
1913
|
+
F.xa = null;
|
|
1914
|
+
F.H = "Object";
|
|
1915
|
+
F.data = null;
|
|
1916
|
+
F.toString = function() {
|
|
1917
|
+
if (!qe)
|
|
1916
1918
|
return "[object Interpreter.Object]";
|
|
1917
|
-
if (!(this instanceof
|
|
1919
|
+
if (!(this instanceof M))
|
|
1918
1920
|
return String(this);
|
|
1919
1921
|
if (this.H === "Array") {
|
|
1920
1922
|
var e = Jn;
|
|
@@ -1924,7 +1926,7 @@ B.toString = function() {
|
|
|
1924
1926
|
1024 < r && (r = 1e3, n = !0);
|
|
1925
1927
|
for (var i = 0; i < r; i++) {
|
|
1926
1928
|
var a = this.h[i];
|
|
1927
|
-
t[i] = a instanceof
|
|
1929
|
+
t[i] = a instanceof M && e.indexOf(a) !== -1 ? "..." : a;
|
|
1928
1930
|
}
|
|
1929
1931
|
n && t.push("...");
|
|
1930
1932
|
} finally {
|
|
@@ -1959,8 +1961,8 @@ B.toString = function() {
|
|
|
1959
1961
|
}
|
|
1960
1962
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1961
1963
|
};
|
|
1962
|
-
|
|
1963
|
-
return !
|
|
1964
|
+
F.valueOf = function() {
|
|
1965
|
+
return !qe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1964
1966
|
};
|
|
1965
1967
|
function mi(e, t, r, n, i) {
|
|
1966
1968
|
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++gi, this.time = 0;
|
|
@@ -1969,18 +1971,18 @@ var gi = 0;
|
|
|
1969
1971
|
m.prototype.stepArrayExpression = function(e, t, r) {
|
|
1970
1972
|
r = r.elements;
|
|
1971
1973
|
var n = t.A || 0;
|
|
1972
|
-
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa =
|
|
1974
|
+
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = _e(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1973
1975
|
if (r[n])
|
|
1974
|
-
return t.A = n, new
|
|
1976
|
+
return t.A = n, new k(r[n], t.scope);
|
|
1975
1977
|
n++;
|
|
1976
1978
|
}
|
|
1977
1979
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1978
1980
|
};
|
|
1979
1981
|
m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
1980
1982
|
if (!t.ja)
|
|
1981
|
-
return t.ja = !0, t = new
|
|
1983
|
+
return t.ja = !0, t = new k(r.left, t.scope), t.sa = !0, t;
|
|
1982
1984
|
if (!t.Da)
|
|
1983
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e =
|
|
1985
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = cn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, it(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new k(r.right, t.scope));
|
|
1984
1986
|
if (t.ta)
|
|
1985
1987
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1986
1988
|
else {
|
|
@@ -2025,16 +2027,16 @@ m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
2025
2027
|
default:
|
|
2026
2028
|
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
2027
2029
|
}
|
|
2028
|
-
if (r =
|
|
2029
|
-
return t.ta = !0, t.ib = n,
|
|
2030
|
+
if (r = un(this, t.Fa, n))
|
|
2031
|
+
return t.ta = !0, t.ib = n, dn(this, r, t.Fa, n);
|
|
2030
2032
|
e.pop(), e[e.length - 1].value = n;
|
|
2031
2033
|
}
|
|
2032
2034
|
};
|
|
2033
2035
|
m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
2034
2036
|
if (!t.ja)
|
|
2035
|
-
return t.ja = !0, new
|
|
2037
|
+
return t.ja = !0, new k(r.left, t.scope);
|
|
2036
2038
|
if (!t.Da)
|
|
2037
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2039
|
+
return t.Da = !0, t.ma = t.value, new k(r.right, t.scope);
|
|
2038
2040
|
e.pop();
|
|
2039
2041
|
var n = t.ma;
|
|
2040
2042
|
switch (t = t.value, r.operator) {
|
|
@@ -2096,10 +2098,10 @@ m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2096
2098
|
r = n >>> t;
|
|
2097
2099
|
break;
|
|
2098
2100
|
case "in":
|
|
2099
|
-
t instanceof
|
|
2101
|
+
t instanceof M || C(this, this.j, "'in' expects an object, not '" + t + "'"), r = vt(this, t, n);
|
|
2100
2102
|
break;
|
|
2101
2103
|
case "instanceof":
|
|
2102
|
-
q(this, t, this.O) ||
|
|
2104
|
+
q(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof M ? q(this, n, t) : !1;
|
|
2103
2105
|
break;
|
|
2104
2106
|
default:
|
|
2105
2107
|
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
@@ -2109,35 +2111,35 @@ m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2109
2111
|
m.prototype.stepBlockStatement = function(e, t, r) {
|
|
2110
2112
|
var n = t.A || 0;
|
|
2111
2113
|
if (r = r.body[n])
|
|
2112
|
-
return t.A = n + 1, new
|
|
2114
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2113
2115
|
e.pop();
|
|
2114
2116
|
};
|
|
2115
2117
|
m.prototype.stepBreakStatement = function(e, t, r) {
|
|
2116
|
-
|
|
2118
|
+
rt(this, 1, void 0, r.label && r.label.name);
|
|
2117
2119
|
};
|
|
2118
2120
|
m.prototype.Hb = 0;
|
|
2119
2121
|
m.prototype.stepCallExpression = function(e, t, r) {
|
|
2120
2122
|
if (!t.ia) {
|
|
2121
2123
|
t.ia = 1;
|
|
2122
|
-
var n = new
|
|
2124
|
+
var n = new k(r.callee, t.scope);
|
|
2123
2125
|
return n.sa = !0, n;
|
|
2124
2126
|
}
|
|
2125
2127
|
if (t.ia === 1) {
|
|
2126
2128
|
t.ia = 2;
|
|
2127
2129
|
var i = t.value;
|
|
2128
2130
|
if (Array.isArray(i)) {
|
|
2129
|
-
if (t.U =
|
|
2130
|
-
return t.ia = 1,
|
|
2131
|
+
if (t.U = cn(this, i), i[0] === De ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2132
|
+
return t.ia = 1, it(this, i, t.value);
|
|
2131
2133
|
} else
|
|
2132
2134
|
t.U = i;
|
|
2133
2135
|
t.F = [], t.A = 0;
|
|
2134
2136
|
}
|
|
2135
2137
|
if (i = t.U, !t.Qa) {
|
|
2136
2138
|
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2137
|
-
return new
|
|
2139
|
+
return new k(r.arguments[t.A++], t.scope);
|
|
2138
2140
|
if (r.type === "NewExpression") {
|
|
2139
|
-
if (i instanceof
|
|
2140
|
-
t.B =
|
|
2141
|
+
if (i instanceof M && !i.Ab || C(this, this.j, re(this, r.callee) + " is not a constructor"), i === this.qa)
|
|
2142
|
+
t.B = _e(this);
|
|
2141
2143
|
else {
|
|
2142
2144
|
var a = i.h.prototype;
|
|
2143
2145
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2149,12 +2151,12 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2149
2151
|
if (t.eb)
|
|
2150
2152
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2151
2153
|
else {
|
|
2152
|
-
if (t.eb = !0, i instanceof
|
|
2153
|
-
for (r =
|
|
2154
|
+
if (t.eb = !0, i instanceof M || C(this, this.j, re(this, r.callee) + " is not a function"), e = i.node) {
|
|
2155
|
+
for (r = Xt(this, e.body, i.Va), n = _e(this), i = 0; i < t.F.length; i++)
|
|
2154
2156
|
this.g(n, i, t.F[i]);
|
|
2155
2157
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2156
2158
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2157
|
-
return r.S || (t.B = Vt(this, t.B)), this.g(r.object, "this", t.B,
|
|
2159
|
+
return r.S || (t.B = Vt(this, t.B)), this.g(r.object, "this", t.B, en), t.value = void 0, new k(e.body, r);
|
|
2158
2160
|
}
|
|
2159
2161
|
if (i.eval)
|
|
2160
2162
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2163,9 +2165,9 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2163
2165
|
try {
|
|
2164
2166
|
n = Ue(String(i), "eval" + this.Hb++);
|
|
2165
2167
|
} catch (u) {
|
|
2166
|
-
|
|
2168
|
+
C(this, this.T, "Invalid code: " + u.message);
|
|
2167
2169
|
}
|
|
2168
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body,
|
|
2170
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, gt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = Xt(this, n, r) : et(this, n, r), this.value = void 0, new k(i, r);
|
|
2169
2171
|
}
|
|
2170
2172
|
else if (i.Ta)
|
|
2171
2173
|
t.scope.S || (t.B = Vt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
@@ -2175,35 +2177,35 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2175
2177
|
t.value = u, s.za = !1;
|
|
2176
2178
|
}), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), i.Za.apply(t.B, n);
|
|
2177
2179
|
} else
|
|
2178
|
-
|
|
2180
|
+
C(this, this.j, re(this, r.callee) + " is not callable");
|
|
2179
2181
|
}
|
|
2180
2182
|
};
|
|
2181
2183
|
m.prototype.stepConditionalExpression = function(e, t, r) {
|
|
2182
2184
|
var n = t.na || 0;
|
|
2183
2185
|
if (n === 0)
|
|
2184
|
-
return t.na = 1, new
|
|
2186
|
+
return t.na = 1, new k(r.test, t.scope);
|
|
2185
2187
|
if (n === 1) {
|
|
2186
2188
|
if (t.na = 2, (n = !!t.value) && r.da)
|
|
2187
|
-
return new
|
|
2189
|
+
return new k(r.da, t.scope);
|
|
2188
2190
|
if (!n && r.alternate)
|
|
2189
|
-
return new
|
|
2191
|
+
return new k(r.alternate, t.scope);
|
|
2190
2192
|
this.value = void 0;
|
|
2191
2193
|
}
|
|
2192
2194
|
e.pop(), r.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2193
2195
|
};
|
|
2194
2196
|
m.prototype.stepContinueStatement = function(e, t, r) {
|
|
2195
|
-
|
|
2197
|
+
rt(this, 2, void 0, r.label && r.label.name);
|
|
2196
2198
|
};
|
|
2197
2199
|
m.prototype.stepDebuggerStatement = function(e) {
|
|
2198
2200
|
e.pop();
|
|
2199
2201
|
};
|
|
2200
2202
|
m.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
2201
2203
|
if (r.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2202
|
-
return t.ga = !0, new
|
|
2204
|
+
return t.ga = !0, new k(r.test, t.scope);
|
|
2203
2205
|
if (!t.value)
|
|
2204
2206
|
e.pop();
|
|
2205
2207
|
else if (r.body)
|
|
2206
|
-
return t.ga = !1, t.W = !0, new
|
|
2208
|
+
return t.ga = !1, t.W = !0, new k(r.body, t.scope);
|
|
2207
2209
|
};
|
|
2208
2210
|
m.prototype.stepEmptyStatement = function(e) {
|
|
2209
2211
|
e.pop();
|
|
@@ -2211,23 +2213,23 @@ m.prototype.stepEmptyStatement = function(e) {
|
|
|
2211
2213
|
m.prototype.stepEvalProgram_ = function(e, t, r) {
|
|
2212
2214
|
var n = t.A || 0;
|
|
2213
2215
|
if (r = r.body[n])
|
|
2214
|
-
return t.A = n + 1, new
|
|
2216
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2215
2217
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2216
2218
|
};
|
|
2217
2219
|
m.prototype.stepExpressionStatement = function(e, t, r) {
|
|
2218
2220
|
if (!t.ka)
|
|
2219
|
-
return this.value = void 0, t.ka = !0, new
|
|
2221
|
+
return this.value = void 0, t.ka = !0, new k(r.la, t.scope);
|
|
2220
2222
|
e.pop(), this.value = t.value;
|
|
2221
2223
|
};
|
|
2222
2224
|
m.prototype.stepForInStatement = function(e, t, r) {
|
|
2223
2225
|
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2224
|
-
return t.scope.S &&
|
|
2226
|
+
return t.scope.S && C(this, this.T, "for-in loop variable declaration may not have an initializer"), new k(r.left, t.scope);
|
|
2225
2227
|
if (!t.Ca)
|
|
2226
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2228
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new k(r.right, t.scope);
|
|
2227
2229
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2228
2230
|
e:
|
|
2229
2231
|
for (; ; ) {
|
|
2230
|
-
if (t.u instanceof
|
|
2232
|
+
if (t.u instanceof M)
|
|
2231
2233
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2232
2234
|
var n = t.wa.shift();
|
|
2233
2235
|
if (n === void 0)
|
|
@@ -2244,91 +2246,91 @@ m.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2244
2246
|
break e;
|
|
2245
2247
|
}
|
|
2246
2248
|
}
|
|
2247
|
-
if (t.u =
|
|
2249
|
+
if (t.u = ve(this, t.u), t.wa = null, t.u === null) {
|
|
2248
2250
|
e.pop();
|
|
2249
2251
|
return;
|
|
2250
2252
|
}
|
|
2251
2253
|
}
|
|
2252
2254
|
if (!t.wb)
|
|
2253
2255
|
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2254
|
-
t.pa = [
|
|
2256
|
+
t.pa = [De, e.fa[0].id.name];
|
|
2255
2257
|
else
|
|
2256
|
-
return t.pa = null, t = new
|
|
2257
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n =
|
|
2258
|
-
return
|
|
2258
|
+
return t.pa = null, t = new k(e, t.scope), t.sa = !0, t;
|
|
2259
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = un(this, t.pa, e)))
|
|
2260
|
+
return dn(this, n, t.pa, e);
|
|
2259
2261
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2260
|
-
return new
|
|
2262
|
+
return new k(r.body, t.scope);
|
|
2261
2263
|
};
|
|
2262
2264
|
m.prototype.stepForStatement = function(e, t, r) {
|
|
2263
2265
|
switch (t.na) {
|
|
2264
2266
|
default:
|
|
2265
2267
|
if (t.na = 1, r.ua)
|
|
2266
|
-
return new
|
|
2268
|
+
return new k(r.ua, t.scope);
|
|
2267
2269
|
break;
|
|
2268
2270
|
case 1:
|
|
2269
2271
|
if (t.na = 2, r.test)
|
|
2270
|
-
return new
|
|
2272
|
+
return new k(r.test, t.scope);
|
|
2271
2273
|
break;
|
|
2272
2274
|
case 2:
|
|
2273
2275
|
if (t.na = 3, r.test && !t.value)
|
|
2274
2276
|
e.pop();
|
|
2275
2277
|
else
|
|
2276
|
-
return t.W = !0, new
|
|
2278
|
+
return t.W = !0, new k(r.body, t.scope);
|
|
2277
2279
|
break;
|
|
2278
2280
|
case 3:
|
|
2279
2281
|
if (t.na = 1, r.update)
|
|
2280
|
-
return new
|
|
2282
|
+
return new k(r.update, t.scope);
|
|
2281
2283
|
}
|
|
2282
2284
|
};
|
|
2283
2285
|
m.prototype.stepFunctionDeclaration = function(e) {
|
|
2284
2286
|
e.pop();
|
|
2285
2287
|
};
|
|
2286
2288
|
m.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2287
|
-
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e =
|
|
2289
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = sn(this, e)), t.value = on(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, en);
|
|
2288
2290
|
};
|
|
2289
2291
|
m.prototype.stepIdentifier = function(e, t, r) {
|
|
2290
2292
|
if (e.pop(), t.sa)
|
|
2291
|
-
e[e.length - 1].value = [
|
|
2293
|
+
e[e.length - 1].value = [De, r.name];
|
|
2292
2294
|
else {
|
|
2293
|
-
if (t =
|
|
2294
|
-
return
|
|
2295
|
+
if (t = ln(this, r.name), this.P)
|
|
2296
|
+
return it(this, t, this.Na);
|
|
2295
2297
|
e[e.length - 1].value = t;
|
|
2296
2298
|
}
|
|
2297
2299
|
};
|
|
2298
2300
|
m.prototype.stepIfStatement = m.prototype.stepConditionalExpression;
|
|
2299
2301
|
m.prototype.stepLabeledStatement = function(e, t, r) {
|
|
2300
|
-
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new
|
|
2302
|
+
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new k(r.body, t.scope), t.labels = e, t;
|
|
2301
2303
|
};
|
|
2302
2304
|
m.prototype.stepLiteral = function(e, t, r) {
|
|
2303
|
-
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma),
|
|
2305
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), nn(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2304
2306
|
};
|
|
2305
2307
|
m.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2306
2308
|
if (r.operator !== "&&" && r.operator !== "||")
|
|
2307
2309
|
throw SyntaxError("Unknown logical operator: " + r.operator);
|
|
2308
2310
|
if (!t.ja)
|
|
2309
|
-
return t.ja = !0, new
|
|
2311
|
+
return t.ja = !0, new k(r.left, t.scope);
|
|
2310
2312
|
if (t.Da)
|
|
2311
2313
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2312
2314
|
else if (r.operator === "&&" && !t.value || r.operator === "||" && t.value)
|
|
2313
2315
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2314
2316
|
else
|
|
2315
|
-
return t.Da = !0, new
|
|
2317
|
+
return t.Da = !0, new k(r.right, t.scope);
|
|
2316
2318
|
};
|
|
2317
2319
|
m.prototype.stepMemberExpression = function(e, t, r) {
|
|
2318
2320
|
if (!t.Ca)
|
|
2319
|
-
return t.Ca = !0, new
|
|
2321
|
+
return t.Ca = !0, new k(r.object, t.scope);
|
|
2320
2322
|
if (r.bb)
|
|
2321
2323
|
if (t.Vb)
|
|
2322
2324
|
r = t.value;
|
|
2323
2325
|
else
|
|
2324
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2326
|
+
return t.u = t.value, t.Vb = !0, new k(r.Wa, t.scope);
|
|
2325
2327
|
else
|
|
2326
2328
|
t.u = t.value, r = r.Wa.name;
|
|
2327
2329
|
if (e.pop(), t.sa)
|
|
2328
2330
|
e[e.length - 1].value = [t.u, r];
|
|
2329
2331
|
else {
|
|
2330
2332
|
if (r = this.G(t.u, r), this.P)
|
|
2331
|
-
return
|
|
2333
|
+
return it(this, r, t.u);
|
|
2332
2334
|
e[e.length - 1].value = r;
|
|
2333
2335
|
}
|
|
2334
2336
|
};
|
|
@@ -2348,10 +2350,10 @@ m.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2348
2350
|
a = s.value;
|
|
2349
2351
|
else
|
|
2350
2352
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2351
|
-
return t.Pa = a, new
|
|
2353
|
+
return t.Pa = a, new k(i.value, t.scope);
|
|
2352
2354
|
}
|
|
2353
2355
|
for (s in t.Ja)
|
|
2354
|
-
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s,
|
|
2356
|
+
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s, Qe, {
|
|
2355
2357
|
configurable: !0,
|
|
2356
2358
|
enumerable: !0,
|
|
2357
2359
|
get: r.get,
|
|
@@ -2361,35 +2363,35 @@ m.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2361
2363
|
};
|
|
2362
2364
|
m.prototype.stepProgram = function(e, t, r) {
|
|
2363
2365
|
if (e = r.body.shift())
|
|
2364
|
-
return t.done = !1, new
|
|
2366
|
+
return t.done = !1, new k(e, t.scope);
|
|
2365
2367
|
t.done = !0;
|
|
2366
2368
|
};
|
|
2367
2369
|
m.prototype.stepReturnStatement = function(e, t, r) {
|
|
2368
2370
|
if (r.K && !t.ka)
|
|
2369
|
-
return t.ka = !0, new
|
|
2370
|
-
|
|
2371
|
+
return t.ka = !0, new k(r.K, t.scope);
|
|
2372
|
+
rt(this, 3, t.value);
|
|
2371
2373
|
};
|
|
2372
2374
|
m.prototype.stepSequenceExpression = function(e, t, r) {
|
|
2373
2375
|
var n = t.A || 0;
|
|
2374
2376
|
if (r = r.xb[n])
|
|
2375
|
-
return t.A = n + 1, new
|
|
2377
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2376
2378
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2377
2379
|
};
|
|
2378
2380
|
m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
2379
2381
|
if (!t.ga)
|
|
2380
|
-
return t.ga = 1, new
|
|
2382
|
+
return t.ga = 1, new k(r.Qb, t.scope);
|
|
2381
2383
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2382
2384
|
var n = t.gb || 0, i = r.tb[n];
|
|
2383
2385
|
if (t.Ha || !i || i.test)
|
|
2384
2386
|
if (i || t.Ha || t.cb === -1)
|
|
2385
2387
|
if (i) {
|
|
2386
2388
|
if (!t.Ha && !t.Fb && i.test)
|
|
2387
|
-
return t.Fb = !0, new
|
|
2389
|
+
return t.Fb = !0, new k(i.test, t.scope);
|
|
2388
2390
|
if (t.Ha || t.value === t.hc) {
|
|
2389
2391
|
t.Ha = !0;
|
|
2390
2392
|
var a = t.A || 0;
|
|
2391
2393
|
if (i.da[a])
|
|
2392
|
-
return t.Zb = !0, t.A = a + 1, new
|
|
2394
|
+
return t.Zb = !0, t.A = a + 1, new k(i.da[a], t.scope);
|
|
2393
2395
|
}
|
|
2394
2396
|
t.Fb = !1, t.A = 0, t.gb = n + 1;
|
|
2395
2397
|
} else {
|
|
@@ -2403,26 +2405,26 @@ m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2403
2405
|
}
|
|
2404
2406
|
};
|
|
2405
2407
|
m.prototype.stepThisExpression = function(e) {
|
|
2406
|
-
e.pop(), e[e.length - 1].value =
|
|
2408
|
+
e.pop(), e[e.length - 1].value = ln(this, "this");
|
|
2407
2409
|
};
|
|
2408
2410
|
m.prototype.stepThrowStatement = function(e, t, r) {
|
|
2409
2411
|
if (t.ka)
|
|
2410
|
-
|
|
2412
|
+
C(this, t.value);
|
|
2411
2413
|
else
|
|
2412
|
-
return t.ka = !0, new
|
|
2414
|
+
return t.ka = !0, new k(r.K, t.scope);
|
|
2413
2415
|
};
|
|
2414
2416
|
m.prototype.stepTryStatement = function(e, t, r) {
|
|
2415
2417
|
if (!t.Rb)
|
|
2416
|
-
return t.Rb = !0, new
|
|
2418
|
+
return t.Rb = !0, new k(r.block, t.scope);
|
|
2417
2419
|
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2418
|
-
return t.Tb = !0, e =
|
|
2420
|
+
return t.Tb = !0, e = sn(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new k(r.Ea.body, e);
|
|
2419
2421
|
if (!t.Sb && r.fb)
|
|
2420
|
-
return t.Sb = !0, new
|
|
2421
|
-
e.pop(), t.ea &&
|
|
2422
|
+
return t.Sb = !0, new k(r.fb, t.scope);
|
|
2423
|
+
e.pop(), t.ea && rt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2422
2424
|
};
|
|
2423
2425
|
m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
2424
2426
|
if (!t.ka)
|
|
2425
|
-
return t.ka = !0, e = new
|
|
2427
|
+
return t.ka = !0, e = new k(r.K, t.scope), e.sa = r.operator === "delete", e;
|
|
2426
2428
|
e.pop();
|
|
2427
2429
|
var n = t.value;
|
|
2428
2430
|
switch (r.operator) {
|
|
@@ -2441,11 +2443,11 @@ m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2441
2443
|
case "delete":
|
|
2442
2444
|
if (r = !0, Array.isArray(n)) {
|
|
2443
2445
|
var i = n[0];
|
|
2444
|
-
i ===
|
|
2446
|
+
i === De && (i = t.scope), n = String(n[1]);
|
|
2445
2447
|
try {
|
|
2446
2448
|
delete i.h[n];
|
|
2447
2449
|
} catch {
|
|
2448
|
-
t.scope.S ?
|
|
2450
|
+
t.scope.S ? C(this, this.j, "Cannot delete property '" + n + "' of '" + i + "'") : r = !1;
|
|
2449
2451
|
}
|
|
2450
2452
|
}
|
|
2451
2453
|
n = r;
|
|
@@ -2463,11 +2465,11 @@ m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2463
2465
|
};
|
|
2464
2466
|
m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
2465
2467
|
if (!t.ja)
|
|
2466
|
-
return t.ja = !0, e = new
|
|
2468
|
+
return t.ja = !0, e = new k(r.K, t.scope), e.sa = !0, e;
|
|
2467
2469
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2468
|
-
var n =
|
|
2470
|
+
var n = cn(this, t.Ga);
|
|
2469
2471
|
if (t.ma = n, this.P)
|
|
2470
|
-
return t.Ba = !0,
|
|
2472
|
+
return t.Ba = !0, it(this, n, t.Ga);
|
|
2471
2473
|
}
|
|
2472
2474
|
if (t.ta)
|
|
2473
2475
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
@@ -2478,8 +2480,8 @@ m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2478
2480
|
i = n - 1;
|
|
2479
2481
|
else
|
|
2480
2482
|
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2481
|
-
if (r = r.prefix ? i : n, n =
|
|
2482
|
-
return t.ta = !0, t.ib = r,
|
|
2483
|
+
if (r = r.prefix ? i : n, n = un(this, t.Ga, i))
|
|
2484
|
+
return t.ta = !0, t.ib = r, dn(this, n, t.Ga, i);
|
|
2483
2485
|
e.pop(), e[e.length - 1].value = r;
|
|
2484
2486
|
}
|
|
2485
2487
|
};
|
|
@@ -2488,16 +2490,16 @@ m.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
|
2488
2490
|
var n = t.A || 0, i = r[n];
|
|
2489
2491
|
for (t.Bb && i && (vr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2490
2492
|
if (i.ua)
|
|
2491
|
-
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new
|
|
2493
|
+
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new k(i.ua, t.scope);
|
|
2492
2494
|
i = r[++n];
|
|
2493
2495
|
}
|
|
2494
2496
|
e.pop();
|
|
2495
2497
|
};
|
|
2496
2498
|
m.prototype.stepWithStatement = function(e, t, r) {
|
|
2497
|
-
return t.Ca ? (e.pop(), e =
|
|
2499
|
+
return t.Ca ? (e.pop(), e = sn(this, t.scope, t.value), new k(r.body, e)) : (t.Ca = !0, new k(r.object, t.scope));
|
|
2498
2500
|
};
|
|
2499
2501
|
m.prototype.stepWhileStatement = m.prototype.stepDoWhileStatement;
|
|
2500
|
-
|
|
2502
|
+
we.Interpreter = m;
|
|
2501
2503
|
m.prototype.step = m.prototype.lb;
|
|
2502
2504
|
m.prototype.run = m.prototype.Eb;
|
|
2503
2505
|
m.prototype.appendCode = m.prototype.Jb;
|
|
@@ -2512,7 +2514,7 @@ m.prototype.pseudoToNative = m.prototype.R;
|
|
|
2512
2514
|
m.prototype.getGlobalScope = m.prototype.Xb;
|
|
2513
2515
|
m.prototype.getStateStack = m.prototype.Yb;
|
|
2514
2516
|
m.prototype.setStateStack = m.prototype.ec;
|
|
2515
|
-
m.VALUE_IN_DESCRIPTOR =
|
|
2517
|
+
m.VALUE_IN_DESCRIPTOR = Qe;
|
|
2516
2518
|
const vi = (e) => e.split(`
|
|
2517
2519
|
`).map((t) => {
|
|
2518
2520
|
const r = t.trim();
|
|
@@ -2552,24 +2554,24 @@ const vi = (e) => e.split(`
|
|
|
2552
2554
|
Fe.warn("Skipping evaluation of empty code block.");
|
|
2553
2555
|
return;
|
|
2554
2556
|
}
|
|
2555
|
-
const
|
|
2557
|
+
const S = `
|
|
2556
2558
|
function theFunction() {
|
|
2557
2559
|
${g}
|
|
2558
2560
|
|
|
2559
2561
|
${v}
|
|
2560
2562
|
}
|
|
2561
2563
|
theFunction();
|
|
2562
|
-
`,
|
|
2563
|
-
const
|
|
2564
|
-
a == null || a(
|
|
2565
|
-
},
|
|
2566
|
-
f.forEach(([
|
|
2567
|
-
const
|
|
2568
|
-
E.setProperty(N, Qn(
|
|
2569
|
-
}), E.setProperty(N, "setRootState", E.createNativeFunction(
|
|
2564
|
+
`, U = (E, N) => {
|
|
2565
|
+
const _ = pr(u, E, N);
|
|
2566
|
+
a == null || a(_);
|
|
2567
|
+
}, H = function(E, N) {
|
|
2568
|
+
f.forEach(([_, G]) => {
|
|
2569
|
+
const b = JSON.stringify(G);
|
|
2570
|
+
E.setProperty(N, Qn(_), b);
|
|
2571
|
+
}), E.setProperty(N, "setRootState", E.createNativeFunction(U));
|
|
2570
2572
|
};
|
|
2571
2573
|
try {
|
|
2572
|
-
const E = new m(
|
|
2574
|
+
const E = new m(S, H);
|
|
2573
2575
|
return E.run(), E.pseudoToNative(E.value);
|
|
2574
2576
|
} catch (E) {
|
|
2575
2577
|
Fe.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
@@ -2577,8 +2579,8 @@ theFunction();
|
|
|
2577
2579
|
});
|
|
2578
2580
|
return;
|
|
2579
2581
|
}
|
|
2580
|
-
},
|
|
2581
|
-
function
|
|
2582
|
+
}, bi = (e) => Te() ? Qr(e) : yi(e);
|
|
2583
|
+
function tt({
|
|
2582
2584
|
code: e,
|
|
2583
2585
|
context: t,
|
|
2584
2586
|
localState: r,
|
|
@@ -2603,7 +2605,7 @@ function et({
|
|
|
2603
2605
|
localState: r
|
|
2604
2606
|
};
|
|
2605
2607
|
try {
|
|
2606
|
-
return
|
|
2608
|
+
return bi(u);
|
|
2607
2609
|
} catch (f) {
|
|
2608
2610
|
Fe.error("Failed code evaluation: " + f.message, {
|
|
2609
2611
|
code: e
|
|
@@ -2611,7 +2613,7 @@ function et({
|
|
|
2611
2613
|
return;
|
|
2612
2614
|
}
|
|
2613
2615
|
}
|
|
2614
|
-
const
|
|
2616
|
+
const xi = ({
|
|
2615
2617
|
block: e,
|
|
2616
2618
|
context: t,
|
|
2617
2619
|
localState: r,
|
|
@@ -2620,7 +2622,7 @@ const bi = ({
|
|
|
2620
2622
|
}) => {
|
|
2621
2623
|
if (!e.bindings)
|
|
2622
2624
|
return e;
|
|
2623
|
-
const a =
|
|
2625
|
+
const a = Zt(e), s = {
|
|
2624
2626
|
...a,
|
|
2625
2627
|
properties: {
|
|
2626
2628
|
...a.properties
|
|
@@ -2630,7 +2632,7 @@ const bi = ({
|
|
|
2630
2632
|
}
|
|
2631
2633
|
};
|
|
2632
2634
|
for (const u in e.bindings) {
|
|
2633
|
-
const f = e.bindings[u], g =
|
|
2635
|
+
const f = e.bindings[u], g = tt({
|
|
2634
2636
|
code: f,
|
|
2635
2637
|
localState: r,
|
|
2636
2638
|
rootState: n,
|
|
@@ -2641,7 +2643,7 @@ const bi = ({
|
|
|
2641
2643
|
}
|
|
2642
2644
|
return s;
|
|
2643
2645
|
};
|
|
2644
|
-
function
|
|
2646
|
+
function pt({
|
|
2645
2647
|
block: e,
|
|
2646
2648
|
context: t,
|
|
2647
2649
|
shouldEvaluateBindings: r,
|
|
@@ -2650,7 +2652,7 @@ function ft({
|
|
|
2650
2652
|
rootSetState: a
|
|
2651
2653
|
}) {
|
|
2652
2654
|
const s = e;
|
|
2653
|
-
return r ?
|
|
2655
|
+
return r ? xi({
|
|
2654
2656
|
block: s,
|
|
2655
2657
|
localState: n,
|
|
2656
2658
|
rootState: i,
|
|
@@ -2664,7 +2666,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2664
2666
|
registeredComponents: r
|
|
2665
2667
|
}) => {
|
|
2666
2668
|
var a;
|
|
2667
|
-
const n = (a =
|
|
2669
|
+
const n = (a = pt({
|
|
2668
2670
|
block: e,
|
|
2669
2671
|
localState: t.localState,
|
|
2670
2672
|
rootState: t.rootState,
|
|
@@ -2690,7 +2692,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2690
2692
|
} = e;
|
|
2691
2693
|
if (!(r != null && r.collection))
|
|
2692
2694
|
return;
|
|
2693
|
-
const i =
|
|
2695
|
+
const i = tt({
|
|
2694
2696
|
code: r.collection,
|
|
2695
2697
|
localState: t.localState,
|
|
2696
2698
|
rootState: t.rootState,
|
|
@@ -2713,7 +2715,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2713
2715
|
},
|
|
2714
2716
|
block: n
|
|
2715
2717
|
}));
|
|
2716
|
-
},
|
|
2718
|
+
}, xr = {
|
|
2717
2719
|
small: {
|
|
2718
2720
|
min: 320,
|
|
2719
2721
|
default: 321,
|
|
@@ -2729,11 +2731,11 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2729
2731
|
default: 991,
|
|
2730
2732
|
max: 1200
|
|
2731
2733
|
}
|
|
2732
|
-
}, er = (e, t =
|
|
2734
|
+
}, er = (e, t = xr) => `@media (max-width: ${t[e].max}px)`, Sr = ({
|
|
2733
2735
|
small: e,
|
|
2734
2736
|
medium: t
|
|
2735
2737
|
}) => {
|
|
2736
|
-
const r =
|
|
2738
|
+
const r = Zt(xr);
|
|
2737
2739
|
if (!e || !t)
|
|
2738
2740
|
return r;
|
|
2739
2741
|
const n = Math.floor(e / 2);
|
|
@@ -2758,7 +2760,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2758
2760
|
}, Ci = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), wr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2759
2761
|
if (typeof n == "string")
|
|
2760
2762
|
return `${Ci(r)}: ${n};`;
|
|
2761
|
-
}).filter(
|
|
2763
|
+
}).filter(Kt), Ei = (e) => wr(e).join(`
|
|
2762
2764
|
`), $t = ({
|
|
2763
2765
|
mediaQuery: e,
|
|
2764
2766
|
className: t,
|
|
@@ -2771,12 +2773,12 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2771
2773
|
${n}
|
|
2772
2774
|
}` : n;
|
|
2773
2775
|
};
|
|
2774
|
-
function
|
|
2776
|
+
function yt(e) {
|
|
2775
2777
|
return /* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2776
2778
|
}
|
|
2777
|
-
function
|
|
2779
|
+
function fn(e) {
|
|
2778
2780
|
function t() {
|
|
2779
|
-
const n =
|
|
2781
|
+
const n = pt({
|
|
2780
2782
|
block: e.block,
|
|
2781
2783
|
localState: e.context.localState,
|
|
2782
2784
|
rootState: e.context.rootState,
|
|
@@ -2784,11 +2786,11 @@ function dn(e) {
|
|
|
2784
2786
|
context: e.context.context,
|
|
2785
2787
|
shouldEvaluateBindings: !0
|
|
2786
2788
|
});
|
|
2787
|
-
return
|
|
2789
|
+
return Kt(n.hide) ? !n.hide : Kt(n.show) ? n.show : !0;
|
|
2788
2790
|
}
|
|
2789
2791
|
function r() {
|
|
2790
2792
|
var E;
|
|
2791
|
-
const n =
|
|
2793
|
+
const n = pt({
|
|
2792
2794
|
block: e.block,
|
|
2793
2795
|
localState: e.context.localState,
|
|
2794
2796
|
rootState: e.context.rootState,
|
|
@@ -2800,17 +2802,17 @@ function dn(e) {
|
|
|
2800
2802
|
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, g = i == null ? void 0 : i.small, v = n.id;
|
|
2801
2803
|
if (!v)
|
|
2802
2804
|
return "";
|
|
2803
|
-
const
|
|
2805
|
+
const S = u ? $t({
|
|
2804
2806
|
className: v,
|
|
2805
2807
|
styles: u
|
|
2806
|
-
}) : "",
|
|
2808
|
+
}) : "", U = f ? $t({
|
|
2807
2809
|
className: v,
|
|
2808
2810
|
styles: f,
|
|
2809
2811
|
mediaQuery: er(
|
|
2810
2812
|
"medium",
|
|
2811
2813
|
s
|
|
2812
2814
|
)
|
|
2813
|
-
}) : "",
|
|
2815
|
+
}) : "", H = g ? $t({
|
|
2814
2816
|
className: v,
|
|
2815
2817
|
styles: g,
|
|
2816
2818
|
mediaQuery: er(
|
|
@@ -2818,14 +2820,14 @@ function dn(e) {
|
|
|
2818
2820
|
s
|
|
2819
2821
|
)
|
|
2820
2822
|
}) : "";
|
|
2821
|
-
return [
|
|
2823
|
+
return [S, U, H].join(" ");
|
|
2822
2824
|
}
|
|
2823
|
-
return /* @__PURE__ */ p(P, { children: r() && t() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
2825
|
+
return /* @__PURE__ */ p(P, { children: r() && t() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles: r() }) }) : null });
|
|
2824
2826
|
}
|
|
2825
2827
|
function Ii(e) {
|
|
2826
2828
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2827
2829
|
}
|
|
2828
|
-
const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) =>
|
|
2830
|
+
const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => tt({
|
|
2829
2831
|
code: e,
|
|
2830
2832
|
context: t.context,
|
|
2831
2833
|
localState: t.localState,
|
|
@@ -2834,34 +2836,37 @@ const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => et({
|
|
|
2834
2836
|
event: r,
|
|
2835
2837
|
isExpression: !1
|
|
2836
2838
|
});
|
|
2837
|
-
function
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2839
|
+
function Yt(e) {
|
|
2840
|
+
var n;
|
|
2841
|
+
const t = {}, r = (n = e.block.actions) != null ? n : {};
|
|
2842
|
+
for (const i in r) {
|
|
2843
|
+
if (!r.hasOwnProperty(i))
|
|
2841
2844
|
continue;
|
|
2842
|
-
const
|
|
2843
|
-
let
|
|
2845
|
+
const a = r[i];
|
|
2846
|
+
let s = Ti(i);
|
|
2844
2847
|
if (e.stripPrefix)
|
|
2845
|
-
switch (
|
|
2848
|
+
switch (nt) {
|
|
2846
2849
|
case "vue2":
|
|
2847
2850
|
case "vue3":
|
|
2848
|
-
|
|
2851
|
+
s = s.replace("v-on:", "");
|
|
2849
2852
|
break;
|
|
2850
2853
|
case "svelte":
|
|
2851
|
-
|
|
2854
|
+
s = s.replace("on:", "");
|
|
2852
2855
|
break;
|
|
2853
2856
|
}
|
|
2854
|
-
t[
|
|
2857
|
+
t[s] = ji(a, e);
|
|
2855
2858
|
}
|
|
2856
2859
|
return t;
|
|
2857
2860
|
}
|
|
2858
|
-
function Ai(
|
|
2861
|
+
function Ai({
|
|
2862
|
+
properties: e
|
|
2863
|
+
}) {
|
|
2859
2864
|
return e.className = e.class, delete e.class, e;
|
|
2860
2865
|
}
|
|
2861
2866
|
const Ri = (e) => ({
|
|
2862
2867
|
href: e.href
|
|
2863
2868
|
});
|
|
2864
|
-
function
|
|
2869
|
+
function mt({
|
|
2865
2870
|
block: e,
|
|
2866
2871
|
context: t
|
|
2867
2872
|
}) {
|
|
@@ -2873,10 +2878,14 @@ function ht({
|
|
|
2873
2878
|
style: e.style ? Oi(e.style) : void 0,
|
|
2874
2879
|
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2875
2880
|
};
|
|
2876
|
-
return Ai(
|
|
2881
|
+
return Ai({
|
|
2882
|
+
properties: r,
|
|
2883
|
+
context: t,
|
|
2884
|
+
block: e
|
|
2885
|
+
});
|
|
2877
2886
|
}
|
|
2878
2887
|
function Oi(e) {
|
|
2879
|
-
switch (
|
|
2888
|
+
switch (nt) {
|
|
2880
2889
|
case "svelte":
|
|
2881
2890
|
case "vue2":
|
|
2882
2891
|
case "vue3":
|
|
@@ -2895,11 +2904,11 @@ function tr(e) {
|
|
|
2895
2904
|
e.hasChildren ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ Z(
|
|
2896
2905
|
e.Wrapper,
|
|
2897
2906
|
{
|
|
2898
|
-
...
|
|
2907
|
+
...mt({
|
|
2899
2908
|
block: e.block,
|
|
2900
2909
|
context: e.context
|
|
2901
2910
|
}),
|
|
2902
|
-
...
|
|
2911
|
+
...Yt({
|
|
2903
2912
|
block: e.block,
|
|
2904
2913
|
rootState: e.context.rootState,
|
|
2905
2914
|
rootSetState: e.context.rootSetState,
|
|
@@ -2916,11 +2925,11 @@ function tr(e) {
|
|
|
2916
2925
|
) }) : /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
2917
2926
|
e.Wrapper,
|
|
2918
2927
|
{
|
|
2919
|
-
...
|
|
2928
|
+
...mt({
|
|
2920
2929
|
block: e.block,
|
|
2921
2930
|
context: e.context
|
|
2922
2931
|
}),
|
|
2923
|
-
...
|
|
2932
|
+
...Yt({
|
|
2924
2933
|
block: e.block,
|
|
2925
2934
|
rootState: e.context.rootState,
|
|
2926
2935
|
rootSetState: e.context.rootSetState,
|
|
@@ -2939,11 +2948,11 @@ function Pi(e) {
|
|
|
2939
2948
|
{
|
|
2940
2949
|
...e.wrapperProps,
|
|
2941
2950
|
attributes: {
|
|
2942
|
-
...
|
|
2951
|
+
...mt({
|
|
2943
2952
|
block: e.block,
|
|
2944
2953
|
context: e.context
|
|
2945
2954
|
}),
|
|
2946
|
-
...
|
|
2955
|
+
...Yt({
|
|
2947
2956
|
block: e.block,
|
|
2948
2957
|
rootState: e.context.rootState,
|
|
2949
2958
|
rootSetState: e.context.rootSetState,
|
|
@@ -2975,7 +2984,7 @@ const Ni = ({
|
|
|
2975
2984
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2976
2985
|
*/
|
|
2977
2986
|
...i ? {
|
|
2978
|
-
attributes:
|
|
2987
|
+
attributes: mt({
|
|
2979
2988
|
block: t,
|
|
2980
2989
|
context: s
|
|
2981
2990
|
})
|
|
@@ -2983,7 +2992,7 @@ const Ni = ({
|
|
|
2983
2992
|
};
|
|
2984
2993
|
function nr(e) {
|
|
2985
2994
|
var n, i;
|
|
2986
|
-
const [t, r] =
|
|
2995
|
+
const [t, r] = $(
|
|
2987
2996
|
() => e.isInteractive ? Pi : e.componentRef
|
|
2988
2997
|
);
|
|
2989
2998
|
return /* @__PURE__ */ p(P, { children: e.componentRef ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ Z(
|
|
@@ -3000,7 +3009,7 @@ function nr(e) {
|
|
|
3000
3009
|
}),
|
|
3001
3010
|
children: [
|
|
3002
3011
|
(n = e.blockChildren) == null ? void 0 : n.map((a) => /* @__PURE__ */ p(
|
|
3003
|
-
|
|
3012
|
+
bt,
|
|
3004
3013
|
{
|
|
3005
3014
|
block: a,
|
|
3006
3015
|
context: e.context,
|
|
@@ -3009,7 +3018,7 @@ function nr(e) {
|
|
|
3009
3018
|
"block-" + a.id
|
|
3010
3019
|
)),
|
|
3011
3020
|
(i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ p(
|
|
3012
|
-
|
|
3021
|
+
fn,
|
|
3013
3022
|
{
|
|
3014
3023
|
block: a,
|
|
3015
3024
|
context: e.context
|
|
@@ -3021,9 +3030,9 @@ function nr(e) {
|
|
|
3021
3030
|
) }) : null });
|
|
3022
3031
|
}
|
|
3023
3032
|
function Mi(e) {
|
|
3024
|
-
const [t, r] =
|
|
3025
|
-
return /* @__PURE__ */ p(
|
|
3026
|
-
|
|
3033
|
+
const [t, r] = $(() => e.repeatContext);
|
|
3034
|
+
return /* @__PURE__ */ p(Qt.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3035
|
+
bt,
|
|
3027
3036
|
{
|
|
3028
3037
|
block: e.block,
|
|
3029
3038
|
context: t,
|
|
@@ -3031,8 +3040,8 @@ function Mi(e) {
|
|
|
3031
3040
|
}
|
|
3032
3041
|
) });
|
|
3033
3042
|
}
|
|
3034
|
-
function
|
|
3035
|
-
var v,
|
|
3043
|
+
function bt(e) {
|
|
3044
|
+
var v, S, U, H;
|
|
3036
3045
|
function t() {
|
|
3037
3046
|
return wi({
|
|
3038
3047
|
block: e.block,
|
|
@@ -3048,7 +3057,7 @@ function vt(e) {
|
|
|
3048
3057
|
}
|
|
3049
3058
|
function n() {
|
|
3050
3059
|
var E;
|
|
3051
|
-
return (E = e.block.repeat) != null && E.collection ? e.block :
|
|
3060
|
+
return (E = e.block.repeat) != null && E.collection ? e.block : pt({
|
|
3052
3061
|
block: e.block,
|
|
3053
3062
|
localState: e.context.localState,
|
|
3054
3063
|
rootState: e.context.rootState,
|
|
@@ -3061,36 +3070,36 @@ function vt(e) {
|
|
|
3061
3070
|
return e.block.tagName || "div";
|
|
3062
3071
|
}
|
|
3063
3072
|
function a() {
|
|
3064
|
-
var
|
|
3065
|
-
if ((
|
|
3066
|
-
return !!((
|
|
3073
|
+
var _, G;
|
|
3074
|
+
if ((_ = e.block.repeat) != null && _.collection)
|
|
3075
|
+
return !!((G = r == null ? void 0 : r()) != null && G.length);
|
|
3067
3076
|
const E = "hide" in n() ? n().hide : !1;
|
|
3068
3077
|
return ("show" in n() ? n().show : !0) && !E;
|
|
3069
3078
|
}
|
|
3070
3079
|
function s() {
|
|
3071
|
-
var N;
|
|
3072
|
-
return !((N = t == null ? void 0 : t()) != null && N.component) && !r() ? n().children
|
|
3080
|
+
var N, _;
|
|
3081
|
+
return !((N = t == null ? void 0 : t()) != null && N.component) && !r() ? (_ = n().children) != null ? _ : [] : [];
|
|
3073
3082
|
}
|
|
3074
3083
|
function u() {
|
|
3075
|
-
var E, N,
|
|
3084
|
+
var E, N, _, G, b, D;
|
|
3076
3085
|
return {
|
|
3077
|
-
blockChildren: n().children
|
|
3078
|
-
componentRef: (
|
|
3086
|
+
blockChildren: (E = n().children) != null ? E : [],
|
|
3087
|
+
componentRef: (N = t == null ? void 0 : t()) == null ? void 0 : N.component,
|
|
3079
3088
|
componentOptions: {
|
|
3080
3089
|
...Jr(n()),
|
|
3081
3090
|
builderContext: e.context,
|
|
3082
|
-
...((
|
|
3091
|
+
...((_ = t == null ? void 0 : t()) == null ? void 0 : _.name) === "Symbol" || ((G = t == null ? void 0 : t()) == null ? void 0 : G.name) === "Columns" ? {
|
|
3083
3092
|
builderComponents: e.registeredComponents
|
|
3084
3093
|
} : {}
|
|
3085
3094
|
},
|
|
3086
3095
|
context: f,
|
|
3087
3096
|
registeredComponents: e.registeredComponents,
|
|
3088
3097
|
builderBlock: n(),
|
|
3089
|
-
includeBlockProps: ((
|
|
3090
|
-
isInteractive: !((
|
|
3098
|
+
includeBlockProps: ((b = t == null ? void 0 : t()) == null ? void 0 : b.noWrap) === !0,
|
|
3099
|
+
isInteractive: !((D = t == null ? void 0 : t()) != null && D.isRSC)
|
|
3091
3100
|
};
|
|
3092
3101
|
}
|
|
3093
|
-
const [f, g] =
|
|
3102
|
+
const [f, g] = $(() => e.context);
|
|
3094
3103
|
return /* @__PURE__ */ p(P, { children: a() ? /* @__PURE__ */ p(P, { children: (v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3095
3104
|
nr,
|
|
3096
3105
|
{
|
|
@@ -3113,7 +3122,7 @@ function vt(e) {
|
|
|
3113
3122
|
hasChildren: !1
|
|
3114
3123
|
}
|
|
3115
3124
|
) }) : null,
|
|
3116
|
-
!Lt(i()) && r() ? /* @__PURE__ */ p(P, { children: (
|
|
3125
|
+
!Lt(i()) && r() ? /* @__PURE__ */ p(P, { children: (S = r()) == null ? void 0 : S.map((E, N) => /* @__PURE__ */ p(
|
|
3117
3126
|
Mi,
|
|
3118
3127
|
{
|
|
3119
3128
|
repeatContext: E.context,
|
|
@@ -3143,8 +3152,8 @@ function vt(e) {
|
|
|
3143
3152
|
isInteractive: u().isInteractive
|
|
3144
3153
|
}
|
|
3145
3154
|
),
|
|
3146
|
-
(
|
|
3147
|
-
|
|
3155
|
+
(U = s()) == null ? void 0 : U.map((E) => /* @__PURE__ */ p(
|
|
3156
|
+
bt,
|
|
3148
3157
|
{
|
|
3149
3158
|
block: E,
|
|
3150
3159
|
context: f,
|
|
@@ -3152,8 +3161,8 @@ function vt(e) {
|
|
|
3152
3161
|
},
|
|
3153
3162
|
"block-" + E.id
|
|
3154
3163
|
)),
|
|
3155
|
-
(
|
|
3156
|
-
|
|
3164
|
+
(H = s()) == null ? void 0 : H.map((E) => /* @__PURE__ */ p(
|
|
3165
|
+
fn,
|
|
3157
3166
|
{
|
|
3158
3167
|
block: E,
|
|
3159
3168
|
context: f
|
|
@@ -3165,14 +3174,14 @@ function vt(e) {
|
|
|
3165
3174
|
) }) : null
|
|
3166
3175
|
] }) }) : null });
|
|
3167
3176
|
}
|
|
3168
|
-
function
|
|
3177
|
+
function Bi(e) {
|
|
3169
3178
|
function t() {
|
|
3170
3179
|
var i;
|
|
3171
3180
|
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
3172
3181
|
}
|
|
3173
3182
|
function r() {
|
|
3174
3183
|
var i, a;
|
|
3175
|
-
|
|
3184
|
+
Ie() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3176
3185
|
{
|
|
3177
3186
|
type: "builder.clickEmptyBlocks",
|
|
3178
3187
|
data: {
|
|
@@ -3185,7 +3194,7 @@ function Fi(e) {
|
|
|
3185
3194
|
}
|
|
3186
3195
|
function n() {
|
|
3187
3196
|
var i, a;
|
|
3188
|
-
|
|
3197
|
+
Ie() && !((i = e.blocks) != null && i.length) && ((a = window.parent) == null || a.postMessage(
|
|
3189
3198
|
{
|
|
3190
3199
|
type: "builder.hoverEmptyBlocks",
|
|
3191
3200
|
data: {
|
|
@@ -3198,103 +3207,106 @@ function Fi(e) {
|
|
|
3198
3207
|
}
|
|
3199
3208
|
return /* @__PURE__ */ Z(P, { children: [
|
|
3200
3209
|
/* @__PURE__ */ p(
|
|
3201
|
-
|
|
3210
|
+
e.BlocksWrapper,
|
|
3202
3211
|
{
|
|
3203
|
-
className: t() + "
|
|
3212
|
+
className: t() + " props-blocks-wrapper-4f2c12d8",
|
|
3204
3213
|
"builder-path": e.path,
|
|
3205
3214
|
"builder-parent-id": e.parent,
|
|
3206
3215
|
style: e.styleProp,
|
|
3207
3216
|
onClick: (i) => r(),
|
|
3208
3217
|
onMouseEnter: (i) => n(),
|
|
3209
3218
|
onKeyPress: (i) => r(),
|
|
3219
|
+
...e.BlocksWrapperProps,
|
|
3210
3220
|
children: e.children
|
|
3211
3221
|
}
|
|
3212
3222
|
),
|
|
3213
|
-
/* @__PURE__ */ p("style", { children: `.
|
|
3223
|
+
/* @__PURE__ */ p("style", { children: `.props-blocks-wrapper-4f2c12d8 {
|
|
3214
3224
|
display: flex;
|
|
3215
3225
|
flex-direction: column;
|
|
3216
3226
|
align-items: stretch;
|
|
3217
3227
|
}` })
|
|
3218
3228
|
] });
|
|
3219
3229
|
}
|
|
3220
|
-
function
|
|
3221
|
-
var n, i;
|
|
3222
|
-
const t = Hn(
|
|
3230
|
+
function hn(e) {
|
|
3231
|
+
var n, i, a, s;
|
|
3232
|
+
const t = Hn(Qt), r = Hn(fr);
|
|
3223
3233
|
return /* @__PURE__ */ Z(
|
|
3224
|
-
|
|
3234
|
+
Bi,
|
|
3225
3235
|
{
|
|
3226
3236
|
blocks: e.blocks,
|
|
3227
3237
|
parent: e.parent,
|
|
3228
3238
|
path: e.path,
|
|
3229
3239
|
styleProp: e.styleProp,
|
|
3240
|
+
BlocksWrapper: (n = e.context) == null ? void 0 : n.BlocksWrapper,
|
|
3241
|
+
BlocksWrapperProps: (i = e.context) == null ? void 0 : i.BlocksWrapperProps,
|
|
3230
3242
|
children: [
|
|
3231
|
-
e.blocks ? /* @__PURE__ */ p(P, { children: (
|
|
3232
|
-
|
|
3243
|
+
e.blocks ? /* @__PURE__ */ p(P, { children: (a = e.blocks) == null ? void 0 : a.map((u) => /* @__PURE__ */ p(
|
|
3244
|
+
bt,
|
|
3233
3245
|
{
|
|
3234
|
-
block:
|
|
3246
|
+
block: u,
|
|
3235
3247
|
context: e.context || t,
|
|
3236
3248
|
registeredComponents: e.registeredComponents || r.registeredComponents
|
|
3237
3249
|
},
|
|
3238
|
-
"render-block-" +
|
|
3250
|
+
"render-block-" + u.id
|
|
3239
3251
|
)) }) : null,
|
|
3240
|
-
e.blocks ? /* @__PURE__ */ p(P, { children: (
|
|
3241
|
-
|
|
3252
|
+
e.blocks ? /* @__PURE__ */ p(P, { children: (s = e.blocks) == null ? void 0 : s.map((u) => /* @__PURE__ */ p(
|
|
3253
|
+
fn,
|
|
3242
3254
|
{
|
|
3243
|
-
block:
|
|
3255
|
+
block: u,
|
|
3244
3256
|
context: e.context || t
|
|
3245
3257
|
},
|
|
3246
|
-
"block-style-" +
|
|
3258
|
+
"block-style-" + u.id
|
|
3247
3259
|
)) }) : null
|
|
3248
3260
|
]
|
|
3249
3261
|
}
|
|
3250
3262
|
);
|
|
3251
3263
|
}
|
|
3252
|
-
function
|
|
3253
|
-
var
|
|
3254
|
-
const [t, r] =
|
|
3264
|
+
function Fi(e) {
|
|
3265
|
+
var G;
|
|
3266
|
+
const [t, r] = $(
|
|
3255
3267
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3256
|
-
), [n, i] =
|
|
3268
|
+
), [n, i] = $(() => e.columns || []), [a, s] = $(
|
|
3257
3269
|
() => e.stackColumnsAt || "tablet"
|
|
3258
3270
|
);
|
|
3259
|
-
function u(
|
|
3260
|
-
var
|
|
3261
|
-
return ((
|
|
3271
|
+
function u(b) {
|
|
3272
|
+
var D;
|
|
3273
|
+
return ((D = n[b]) == null ? void 0 : D.width) || 100 / n.length;
|
|
3262
3274
|
}
|
|
3263
|
-
function f(
|
|
3264
|
-
const
|
|
3265
|
-
return `calc(${u(
|
|
3275
|
+
function f(b) {
|
|
3276
|
+
const D = t * (n.length - 1) / n.length;
|
|
3277
|
+
return `calc(${u(b)}% - ${D}px)`;
|
|
3266
3278
|
}
|
|
3267
3279
|
function g({
|
|
3268
|
-
stackedStyle:
|
|
3269
|
-
desktopStyle:
|
|
3280
|
+
stackedStyle: b,
|
|
3281
|
+
desktopStyle: D
|
|
3270
3282
|
}) {
|
|
3271
|
-
return a === "tablet" ?
|
|
3283
|
+
return a === "tablet" ? b : D;
|
|
3272
3284
|
}
|
|
3273
3285
|
function v({
|
|
3274
|
-
stackedStyle:
|
|
3275
|
-
desktopStyle:
|
|
3286
|
+
stackedStyle: b,
|
|
3287
|
+
desktopStyle: D
|
|
3276
3288
|
}) {
|
|
3277
|
-
return a === "never" ?
|
|
3289
|
+
return a === "never" ? D : b;
|
|
3278
3290
|
}
|
|
3279
|
-
const [
|
|
3291
|
+
const [S, U] = $(
|
|
3280
3292
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3281
3293
|
);
|
|
3282
|
-
function
|
|
3294
|
+
function H() {
|
|
3283
3295
|
return {
|
|
3284
|
-
"--flex-dir":
|
|
3296
|
+
"--flex-dir": S,
|
|
3285
3297
|
"--flex-dir-tablet": g({
|
|
3286
|
-
stackedStyle:
|
|
3298
|
+
stackedStyle: S,
|
|
3287
3299
|
desktopStyle: "row"
|
|
3288
3300
|
})
|
|
3289
3301
|
};
|
|
3290
3302
|
}
|
|
3291
|
-
function E(
|
|
3292
|
-
const
|
|
3303
|
+
function E(b) {
|
|
3304
|
+
const D = b === 0 ? 0 : t, ae = f(b), se = `${D}px`, K = "100%", te = 0;
|
|
3293
3305
|
return {
|
|
3294
3306
|
width: ae,
|
|
3295
3307
|
["marginLeft"]: se,
|
|
3296
3308
|
"--column-width-mobile": v({
|
|
3297
|
-
stackedStyle:
|
|
3309
|
+
stackedStyle: K,
|
|
3298
3310
|
desktopStyle: ae
|
|
3299
3311
|
}),
|
|
3300
3312
|
"--column-margin-left-mobile": v({
|
|
@@ -3302,7 +3314,7 @@ function Ui(e) {
|
|
|
3302
3314
|
desktopStyle: se
|
|
3303
3315
|
}),
|
|
3304
3316
|
"--column-width-tablet": g({
|
|
3305
|
-
stackedStyle:
|
|
3317
|
+
stackedStyle: K,
|
|
3306
3318
|
desktopStyle: ae
|
|
3307
3319
|
}),
|
|
3308
3320
|
"--column-margin-left-tablet": g({
|
|
@@ -3311,13 +3323,13 @@ function Ui(e) {
|
|
|
3311
3323
|
})
|
|
3312
3324
|
};
|
|
3313
3325
|
}
|
|
3314
|
-
function N(
|
|
3326
|
+
function N(b) {
|
|
3315
3327
|
var ae, se;
|
|
3316
3328
|
return Sr(
|
|
3317
3329
|
((se = (ae = e.builderContext.content) == null ? void 0 : ae.meta) == null ? void 0 : se.breakpoints) || {}
|
|
3318
|
-
)[
|
|
3330
|
+
)[b].max;
|
|
3319
3331
|
}
|
|
3320
|
-
function
|
|
3332
|
+
function _() {
|
|
3321
3333
|
return `
|
|
3322
3334
|
@media (max-width: ${N("medium")}px) {
|
|
3323
3335
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3349,27 +3361,27 @@ function Ui(e) {
|
|
|
3349
3361
|
"div",
|
|
3350
3362
|
{
|
|
3351
3363
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
|
|
3352
|
-
style:
|
|
3364
|
+
style: H(),
|
|
3353
3365
|
children: [
|
|
3354
|
-
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3355
|
-
(
|
|
3366
|
+
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles: _() }) }),
|
|
3367
|
+
(G = e.columns) == null ? void 0 : G.map((b, D) => /* @__PURE__ */ ur(
|
|
3356
3368
|
"div",
|
|
3357
3369
|
{
|
|
3358
3370
|
className: "builder-column div-53636e90-2",
|
|
3359
|
-
style: E(
|
|
3360
|
-
key:
|
|
3371
|
+
style: E(D),
|
|
3372
|
+
key: D
|
|
3361
3373
|
},
|
|
3362
3374
|
/* @__PURE__ */ p(
|
|
3363
|
-
|
|
3375
|
+
hn,
|
|
3364
3376
|
{
|
|
3365
|
-
path: `component.options.columns.${
|
|
3377
|
+
path: `component.options.columns.${D}.blocks`,
|
|
3366
3378
|
parent: e.builderBlock.id,
|
|
3367
3379
|
styleProp: {
|
|
3368
3380
|
flexGrow: "1"
|
|
3369
3381
|
},
|
|
3370
3382
|
context: e.builderContext,
|
|
3371
3383
|
registeredComponents: e.builderComponents,
|
|
3372
|
-
blocks:
|
|
3384
|
+
blocks: b.blocks
|
|
3373
3385
|
}
|
|
3374
3386
|
)
|
|
3375
3387
|
))
|
|
@@ -3386,7 +3398,7 @@ function Ui(e) {
|
|
|
3386
3398
|
}` })
|
|
3387
3399
|
] });
|
|
3388
3400
|
}
|
|
3389
|
-
function
|
|
3401
|
+
function Ui(e) {
|
|
3390
3402
|
return /* @__PURE__ */ p("span", { children: e.children });
|
|
3391
3403
|
}
|
|
3392
3404
|
function rr(e) {
|
|
@@ -3408,7 +3420,7 @@ function Di(e, t) {
|
|
|
3408
3420
|
}
|
|
3409
3421
|
return null;
|
|
3410
3422
|
}
|
|
3411
|
-
function
|
|
3423
|
+
function Ht(e) {
|
|
3412
3424
|
if (!e)
|
|
3413
3425
|
return e;
|
|
3414
3426
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -3419,7 +3431,7 @@ function Wt(e) {
|
|
|
3419
3431
|
}
|
|
3420
3432
|
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [Di(e, `${r}x${r}`), r]).filter(([r]) => !!r).map(([r, n]) => `${r} ${n}w`).concat([e]).join(", ") : e;
|
|
3421
3433
|
}
|
|
3422
|
-
function
|
|
3434
|
+
function Wi(e) {
|
|
3423
3435
|
var i, a, s, u;
|
|
3424
3436
|
function t() {
|
|
3425
3437
|
var v;
|
|
@@ -3430,10 +3442,10 @@ function Vi(e) {
|
|
|
3430
3442
|
return e.srcset;
|
|
3431
3443
|
if (e.srcset && ((v = e.image) != null && v.includes("builder.io/api/v1/image"))) {
|
|
3432
3444
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3433
|
-
return console.debug("Removed given srcset"),
|
|
3445
|
+
return console.debug("Removed given srcset"), Ht(g);
|
|
3434
3446
|
} else if (e.image && !e.srcset)
|
|
3435
|
-
return
|
|
3436
|
-
return
|
|
3447
|
+
return Ht(g);
|
|
3448
|
+
return Ht(g);
|
|
3437
3449
|
}
|
|
3438
3450
|
function r() {
|
|
3439
3451
|
var f;
|
|
@@ -3502,7 +3514,7 @@ function Vi(e) {
|
|
|
3502
3514
|
}` })
|
|
3503
3515
|
] });
|
|
3504
3516
|
}
|
|
3505
|
-
function
|
|
3517
|
+
function Vi(e) {
|
|
3506
3518
|
return /* @__PURE__ */ p(
|
|
3507
3519
|
"section",
|
|
3508
3520
|
{
|
|
@@ -3523,7 +3535,7 @@ function Li(e) {
|
|
|
3523
3535
|
}
|
|
3524
3536
|
);
|
|
3525
3537
|
}
|
|
3526
|
-
const
|
|
3538
|
+
const Li = {
|
|
3527
3539
|
name: "Core:Button",
|
|
3528
3540
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3529
3541
|
defaultStyles: {
|
|
@@ -3556,7 +3568,7 @@ const $i = {
|
|
|
3556
3568
|
}],
|
|
3557
3569
|
static: !0,
|
|
3558
3570
|
noWrap: !0
|
|
3559
|
-
},
|
|
3571
|
+
}, $i = {
|
|
3560
3572
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3561
3573
|
name: "Columns",
|
|
3562
3574
|
isRSC: !0,
|
|
@@ -3781,10 +3793,10 @@ const $i = {
|
|
|
3781
3793
|
}]
|
|
3782
3794
|
};
|
|
3783
3795
|
function Ki(e) {
|
|
3784
|
-
const t =
|
|
3796
|
+
const t = qt(null), [r, n] = $(() => []), [i, a] = $(() => []);
|
|
3785
3797
|
return ee(() => {
|
|
3786
3798
|
var u;
|
|
3787
|
-
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window
|
|
3799
|
+
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window == "undefined")
|
|
3788
3800
|
return;
|
|
3789
3801
|
const s = t.current.getElementsByTagName("script");
|
|
3790
3802
|
for (let f = 0; f < s.length; f++) {
|
|
@@ -3845,22 +3857,22 @@ const Gi = {
|
|
|
3845
3857
|
}]
|
|
3846
3858
|
}, zi = ["text/javascript", "application/javascript", "application/ecmascript"], Xi = (e) => zi.includes(e.type);
|
|
3847
3859
|
function Yi(e) {
|
|
3848
|
-
const t =
|
|
3860
|
+
const t = qt(null), [r, n] = $(() => []), [i, a] = $(() => []), [s, u] = $(() => !1);
|
|
3849
3861
|
function f() {
|
|
3850
3862
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3851
3863
|
return;
|
|
3852
3864
|
const g = t.current.getElementsByTagName("script");
|
|
3853
3865
|
for (let v = 0; v < g.length; v++) {
|
|
3854
|
-
const
|
|
3855
|
-
if (
|
|
3856
|
-
r.push(
|
|
3857
|
-
const
|
|
3858
|
-
|
|
3859
|
-
} else if (Xi(
|
|
3866
|
+
const S = g[v];
|
|
3867
|
+
if (S.src && !r.includes(S.src)) {
|
|
3868
|
+
r.push(S.src);
|
|
3869
|
+
const U = document.createElement("script");
|
|
3870
|
+
U.async = !0, U.src = S.src, document.head.appendChild(U);
|
|
3871
|
+
} else if (Xi(S) && !i.includes(S.innerText))
|
|
3860
3872
|
try {
|
|
3861
|
-
i.push(
|
|
3862
|
-
} catch (
|
|
3863
|
-
console.warn("`Embed`: Error running script:",
|
|
3873
|
+
i.push(S.innerText), new Function(S.innerText)();
|
|
3874
|
+
} catch (U) {
|
|
3875
|
+
console.warn("`Embed`: Error running script:", U);
|
|
3864
3876
|
}
|
|
3865
3877
|
}
|
|
3866
3878
|
}
|
|
@@ -3904,13 +3916,13 @@ const Ji = {
|
|
|
3904
3916
|
function r(s, u = 6e4) {
|
|
3905
3917
|
return new Promise((f, g) => {
|
|
3906
3918
|
const v = document.createElement("img");
|
|
3907
|
-
let
|
|
3919
|
+
let S = !1;
|
|
3908
3920
|
v.onload = () => {
|
|
3909
|
-
|
|
3910
|
-
}, v.addEventListener("error", (
|
|
3911
|
-
console.warn("Image load failed",
|
|
3921
|
+
S = !0, f(v);
|
|
3922
|
+
}, v.addEventListener("error", (U) => {
|
|
3923
|
+
console.warn("Image load failed", U.error), g(U.error);
|
|
3912
3924
|
}), v.src = s, setTimeout(() => {
|
|
3913
|
-
|
|
3925
|
+
S || g(new Error("Image load timed out"));
|
|
3914
3926
|
}, u);
|
|
3915
3927
|
});
|
|
3916
3928
|
}
|
|
@@ -4008,7 +4020,7 @@ function Qi(e) {
|
|
|
4008
4020
|
src: e.imgSrc || e.image,
|
|
4009
4021
|
...e.attributes
|
|
4010
4022
|
},
|
|
4011
|
-
|
|
4023
|
+
Ie() && e.imgSrc || "default-key"
|
|
4012
4024
|
);
|
|
4013
4025
|
}
|
|
4014
4026
|
const eo = {
|
|
@@ -4300,10 +4312,10 @@ function oo(e) {
|
|
|
4300
4312
|
}
|
|
4301
4313
|
const ir = () => [{
|
|
4302
4314
|
component: Yr,
|
|
4303
|
-
|
|
4315
|
+
...Li
|
|
4304
4316
|
}, {
|
|
4305
|
-
component:
|
|
4306
|
-
|
|
4317
|
+
component: Fi,
|
|
4318
|
+
...$i
|
|
4307
4319
|
}, {
|
|
4308
4320
|
component: Ki,
|
|
4309
4321
|
...Hi
|
|
@@ -4311,16 +4323,16 @@ const ir = () => [{
|
|
|
4311
4323
|
component: Yi,
|
|
4312
4324
|
...Gi
|
|
4313
4325
|
}, {
|
|
4314
|
-
component:
|
|
4326
|
+
component: Ui,
|
|
4315
4327
|
...Ji
|
|
4316
4328
|
}, {
|
|
4317
|
-
component:
|
|
4329
|
+
component: Wi,
|
|
4318
4330
|
...qi
|
|
4319
4331
|
}, {
|
|
4320
4332
|
component: Qi,
|
|
4321
4333
|
...Zi
|
|
4322
4334
|
}, {
|
|
4323
|
-
component:
|
|
4335
|
+
component: Vi,
|
|
4324
4336
|
...eo
|
|
4325
4337
|
}, {
|
|
4326
4338
|
component: jo,
|
|
@@ -4421,14 +4433,14 @@ const ir = () => [{
|
|
|
4421
4433
|
thisScriptEl?.remove();
|
|
4422
4434
|
}
|
|
4423
4435
|
return;
|
|
4424
|
-
}`, kr = "builderIoAbTest", Cr = "builderIoRenderContent",
|
|
4436
|
+
}`, kr = "builderIoAbTest", Cr = "builderIoRenderContent", ft = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4425
4437
|
...t,
|
|
4426
4438
|
testVariationId: t.id,
|
|
4427
4439
|
id: e == null ? void 0 : e.id
|
|
4428
4440
|
})), lo = ({
|
|
4429
4441
|
canTrack: e,
|
|
4430
4442
|
content: t
|
|
4431
|
-
}) => !(!(
|
|
4443
|
+
}) => !(!(ft(t).length > 0) || !e || Te()), co = (e) => e === "react" || e === "reactNative", Er = co(nt), uo = () => `
|
|
4432
4444
|
window.${kr} = ${ao}
|
|
4433
4445
|
window.${Cr} = ${so}
|
|
4434
4446
|
`, fo = (e, t) => `
|
|
@@ -4440,7 +4452,7 @@ const ir = () => [{
|
|
|
4440
4452
|
}) => `window.${Cr}(
|
|
4441
4453
|
"${t}", "${e}", ${Er}
|
|
4442
4454
|
)`;
|
|
4443
|
-
function
|
|
4455
|
+
function Jt(e) {
|
|
4444
4456
|
return /* @__PURE__ */ p(
|
|
4445
4457
|
"script",
|
|
4446
4458
|
{
|
|
@@ -4491,7 +4503,7 @@ const po = (e, t, r = !0) => {
|
|
|
4491
4503
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4492
4504
|
}
|
|
4493
4505
|
};
|
|
4494
|
-
}, vo = "0.
|
|
4506
|
+
}, vo = "0.10.0", yo = () => {
|
|
4495
4507
|
Hr("insertMenu", {
|
|
4496
4508
|
name: "_default",
|
|
4497
4509
|
default: !0,
|
|
@@ -4515,12 +4527,12 @@ const po = (e, t, r = !0) => {
|
|
|
4515
4527
|
});
|
|
4516
4528
|
};
|
|
4517
4529
|
let sr = !1;
|
|
4518
|
-
const
|
|
4530
|
+
const bo = (e = {}) => {
|
|
4519
4531
|
var t, r;
|
|
4520
|
-
sr || (sr = !0,
|
|
4532
|
+
sr || (sr = !0, Te() && ((t = window.parent) == null || t.postMessage({
|
|
4521
4533
|
type: "builder.sdkInfo",
|
|
4522
4534
|
data: {
|
|
4523
|
-
target:
|
|
4535
|
+
target: nt,
|
|
4524
4536
|
version: vo,
|
|
4525
4537
|
supportsPatchUpdates: !1,
|
|
4526
4538
|
// Supports builder-model="..." attribute which is needed to
|
|
@@ -4541,25 +4553,25 @@ const xo = (e = {}) => {
|
|
|
4541
4553
|
switch (n.type) {
|
|
4542
4554
|
case "builder.evaluate": {
|
|
4543
4555
|
const s = n.data.text, u = n.data.arguments || [], f = n.data.id, g = new Function(s);
|
|
4544
|
-
let v,
|
|
4556
|
+
let v, S = null;
|
|
4545
4557
|
try {
|
|
4546
4558
|
v = g.apply(null, u);
|
|
4547
|
-
} catch (
|
|
4548
|
-
|
|
4559
|
+
} catch (U) {
|
|
4560
|
+
S = U;
|
|
4549
4561
|
}
|
|
4550
|
-
|
|
4562
|
+
S ? (i = window.parent) == null || i.postMessage({
|
|
4551
4563
|
type: "builder.evaluateError",
|
|
4552
4564
|
data: {
|
|
4553
4565
|
id: f,
|
|
4554
|
-
error:
|
|
4566
|
+
error: S.message
|
|
4555
4567
|
}
|
|
4556
|
-
}, "*") : v && typeof v.then == "function" ? v.then((
|
|
4557
|
-
var
|
|
4558
|
-
(
|
|
4568
|
+
}, "*") : v && typeof v.then == "function" ? v.then((U) => {
|
|
4569
|
+
var H;
|
|
4570
|
+
(H = window.parent) == null || H.postMessage({
|
|
4559
4571
|
type: "builder.evaluateResult",
|
|
4560
4572
|
data: {
|
|
4561
4573
|
id: f,
|
|
4562
|
-
result:
|
|
4574
|
+
result: U
|
|
4563
4575
|
}
|
|
4564
4576
|
}, "*");
|
|
4565
4577
|
}).catch(console.error) : (a = window.parent) == null || a.postMessage({
|
|
@@ -4574,89 +4586,91 @@ const xo = (e = {}) => {
|
|
|
4574
4586
|
}
|
|
4575
4587
|
})));
|
|
4576
4588
|
};
|
|
4577
|
-
function
|
|
4578
|
-
var
|
|
4579
|
-
const t =
|
|
4580
|
-
function i(
|
|
4581
|
-
var
|
|
4582
|
-
const
|
|
4589
|
+
function xo(e) {
|
|
4590
|
+
var K, te, T, je, V, ke, ce;
|
|
4591
|
+
const t = qt(null), [r, n] = $(() => 0);
|
|
4592
|
+
function i(y) {
|
|
4593
|
+
var B, O, W, L, be;
|
|
4594
|
+
const I = {
|
|
4583
4595
|
...e.builderContextSignal.content,
|
|
4584
|
-
...
|
|
4596
|
+
...y,
|
|
4585
4597
|
data: {
|
|
4586
|
-
...(
|
|
4587
|
-
...
|
|
4598
|
+
...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
|
|
4599
|
+
...y == null ? void 0 : y.data
|
|
4588
4600
|
},
|
|
4589
4601
|
meta: {
|
|
4590
|
-
...(
|
|
4591
|
-
...
|
|
4592
|
-
breakpoints: ((
|
|
4602
|
+
...(O = e.builderContextSignal.content) == null ? void 0 : O.meta,
|
|
4603
|
+
...y == null ? void 0 : y.meta,
|
|
4604
|
+
breakpoints: ((W = y == null ? void 0 : y.meta) == null ? void 0 : W.breakpoints) || ((be = (L = e.builderContextSignal.content) == null ? void 0 : L.meta) == null ? void 0 : be.breakpoints)
|
|
4593
4605
|
}
|
|
4594
4606
|
};
|
|
4595
|
-
e.setBuilderContextSignal((
|
|
4596
|
-
...
|
|
4597
|
-
content:
|
|
4607
|
+
e.setBuilderContextSignal((ot) => ({
|
|
4608
|
+
...ot,
|
|
4609
|
+
content: I
|
|
4598
4610
|
}));
|
|
4599
4611
|
}
|
|
4600
|
-
|
|
4601
|
-
const [a, s] =
|
|
4612
|
+
$(() => 0);
|
|
4613
|
+
const [a, s] = $(
|
|
4602
4614
|
() => !1
|
|
4615
|
+
), [u, f] = $(
|
|
4616
|
+
() => e.contentWrapper || "div"
|
|
4603
4617
|
);
|
|
4604
|
-
function
|
|
4605
|
-
var
|
|
4606
|
-
const { data:
|
|
4607
|
-
if (
|
|
4608
|
-
switch (
|
|
4618
|
+
function g(y) {
|
|
4619
|
+
var B;
|
|
4620
|
+
const { data: I } = y;
|
|
4621
|
+
if (I)
|
|
4622
|
+
switch (I.type) {
|
|
4609
4623
|
case "builder.configureSdk": {
|
|
4610
|
-
const
|
|
4611
|
-
if (!
|
|
4624
|
+
const O = I.data, { breakpoints: W, contentId: L } = O;
|
|
4625
|
+
if (!L || L !== ((B = e.builderContextSignal.content) == null ? void 0 : B.id))
|
|
4612
4626
|
return;
|
|
4613
|
-
|
|
4627
|
+
W && i({
|
|
4614
4628
|
meta: {
|
|
4615
|
-
breakpoints:
|
|
4629
|
+
breakpoints: W
|
|
4616
4630
|
}
|
|
4617
4631
|
}), n(r + 1);
|
|
4618
4632
|
break;
|
|
4619
4633
|
}
|
|
4620
4634
|
case "builder.contentUpdate": {
|
|
4621
|
-
const
|
|
4622
|
-
|
|
4635
|
+
const O = I.data, W = O.key || O.alias || O.entry || O.modelName, L = O.data;
|
|
4636
|
+
W === e.model && (i(L), n(r + 1));
|
|
4623
4637
|
break;
|
|
4624
4638
|
}
|
|
4625
4639
|
}
|
|
4626
4640
|
}
|
|
4627
|
-
function
|
|
4628
|
-
var
|
|
4629
|
-
const
|
|
4630
|
-
|
|
4631
|
-
code:
|
|
4641
|
+
function v() {
|
|
4642
|
+
var I, B;
|
|
4643
|
+
const y = (B = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : B.jsCode;
|
|
4644
|
+
y && tt({
|
|
4645
|
+
code: y,
|
|
4632
4646
|
context: e.context || {},
|
|
4633
4647
|
localState: void 0,
|
|
4634
4648
|
rootState: e.builderContextSignal.rootState,
|
|
4635
4649
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4636
4650
|
});
|
|
4637
4651
|
}
|
|
4638
|
-
const [
|
|
4639
|
-
function
|
|
4640
|
-
var
|
|
4652
|
+
const [S, U] = $(() => ({})), [H, E] = $(() => !1);
|
|
4653
|
+
function N(y) {
|
|
4654
|
+
var I, B;
|
|
4641
4655
|
if (e.builderContextSignal.content) {
|
|
4642
|
-
const
|
|
4656
|
+
const O = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, W = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4643
4657
|
Kn({
|
|
4644
4658
|
type: "click",
|
|
4645
|
-
canTrack:
|
|
4646
|
-
contentId:
|
|
4659
|
+
canTrack: ht(e.canTrack),
|
|
4660
|
+
contentId: W,
|
|
4647
4661
|
apiKey: e.apiKey,
|
|
4648
|
-
variationId:
|
|
4649
|
-
...go(
|
|
4650
|
-
unique: !
|
|
4662
|
+
variationId: O !== W ? O : void 0,
|
|
4663
|
+
...go(y),
|
|
4664
|
+
unique: !H
|
|
4651
4665
|
});
|
|
4652
4666
|
}
|
|
4653
|
-
|
|
4667
|
+
H || E(!0);
|
|
4654
4668
|
}
|
|
4655
|
-
function
|
|
4656
|
-
return
|
|
4669
|
+
function _(y) {
|
|
4670
|
+
return y.replace(
|
|
4657
4671
|
/{{([^}]+)}}/g,
|
|
4658
|
-
(
|
|
4659
|
-
code:
|
|
4672
|
+
(I, B) => tt({
|
|
4673
|
+
code: B,
|
|
4660
4674
|
context: e.context || {},
|
|
4661
4675
|
localState: void 0,
|
|
4662
4676
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4664,38 +4678,38 @@ function bo(e) {
|
|
|
4664
4678
|
})
|
|
4665
4679
|
);
|
|
4666
4680
|
}
|
|
4667
|
-
function
|
|
4668
|
-
zr(
|
|
4669
|
-
var
|
|
4670
|
-
const
|
|
4681
|
+
function G({ url: y, key: I }) {
|
|
4682
|
+
zr(y).then((B) => B.json()).then((B) => {
|
|
4683
|
+
var W, L;
|
|
4684
|
+
const O = {
|
|
4671
4685
|
...e.builderContextSignal.rootState,
|
|
4672
|
-
[
|
|
4686
|
+
[I]: B
|
|
4673
4687
|
};
|
|
4674
|
-
(
|
|
4675
|
-
}).catch((
|
|
4676
|
-
console.error("error fetching dynamic data",
|
|
4688
|
+
(L = (W = e.builderContextSignal).rootSetState) == null || L.call(W, O), S[I] = !0;
|
|
4689
|
+
}).catch((B) => {
|
|
4690
|
+
console.error("error fetching dynamic data", y, B);
|
|
4677
4691
|
});
|
|
4678
4692
|
}
|
|
4679
|
-
function
|
|
4680
|
-
var
|
|
4681
|
-
const
|
|
4682
|
-
Object.entries(
|
|
4683
|
-
if (
|
|
4684
|
-
const
|
|
4685
|
-
|
|
4686
|
-
url:
|
|
4687
|
-
key:
|
|
4693
|
+
function b() {
|
|
4694
|
+
var I, B, O;
|
|
4695
|
+
const y = (O = (B = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : B.httpRequests) != null ? O : {};
|
|
4696
|
+
Object.entries(y).forEach(([W, L]) => {
|
|
4697
|
+
if (L && (!S[W] || Ie())) {
|
|
4698
|
+
const be = _(L);
|
|
4699
|
+
G({
|
|
4700
|
+
url: be,
|
|
4701
|
+
key: W
|
|
4688
4702
|
});
|
|
4689
4703
|
}
|
|
4690
4704
|
});
|
|
4691
4705
|
}
|
|
4692
|
-
function
|
|
4693
|
-
|
|
4706
|
+
function D() {
|
|
4707
|
+
Ie() && window.dispatchEvent(
|
|
4694
4708
|
new CustomEvent(
|
|
4695
4709
|
"builder:component:stateChange",
|
|
4696
4710
|
{
|
|
4697
4711
|
detail: {
|
|
4698
|
-
state:
|
|
4712
|
+
state: Zt(e.builderContextSignal.rootState),
|
|
4699
4713
|
ref: {
|
|
4700
4714
|
name: e.model
|
|
4701
4715
|
}
|
|
@@ -4704,8 +4718,8 @@ function bo(e) {
|
|
|
4704
4718
|
)
|
|
4705
4719
|
);
|
|
4706
4720
|
}
|
|
4707
|
-
function y
|
|
4708
|
-
n(r + 1), window.addEventListener("message",
|
|
4721
|
+
function ae(y) {
|
|
4722
|
+
n(r + 1), window.addEventListener("message", g), yo(), bo({
|
|
4709
4723
|
...e.locale ? {
|
|
4710
4724
|
locale: e.locale
|
|
4711
4725
|
} : {},
|
|
@@ -4717,62 +4731,62 @@ function bo(e) {
|
|
|
4717
4731
|
} : {}
|
|
4718
4732
|
}), Object.values(
|
|
4719
4733
|
e.builderContextSignal.componentInfos
|
|
4720
|
-
).forEach((
|
|
4721
|
-
var
|
|
4722
|
-
const
|
|
4723
|
-
(
|
|
4734
|
+
).forEach((I) => {
|
|
4735
|
+
var O;
|
|
4736
|
+
const B = Gr(I);
|
|
4737
|
+
(O = window.parent) == null || O.postMessage(B, "*");
|
|
4724
4738
|
}), window.addEventListener(
|
|
4725
4739
|
"builder:component:stateChangeListenerActivated",
|
|
4726
|
-
|
|
4740
|
+
D
|
|
4727
4741
|
);
|
|
4728
4742
|
}
|
|
4729
|
-
function
|
|
4730
|
-
const
|
|
4731
|
-
`builder.preview.${
|
|
4732
|
-
),
|
|
4733
|
-
|
|
4743
|
+
function se(y) {
|
|
4744
|
+
const I = new URL(location.href).searchParams, B = I.get("builder.preview"), O = I.get(
|
|
4745
|
+
`builder.preview.${B}`
|
|
4746
|
+
), W = I.get("apiKey") || I.get("builder.space");
|
|
4747
|
+
B === e.model && W === e.apiKey && (!e.content || O === e.content.id) && dr({
|
|
4734
4748
|
model: e.model,
|
|
4735
4749
|
apiKey: e.apiKey,
|
|
4736
4750
|
apiVersion: e.builderContextSignal.apiVersion
|
|
4737
|
-
}).then((
|
|
4738
|
-
|
|
4751
|
+
}).then((L) => {
|
|
4752
|
+
L && i(L);
|
|
4739
4753
|
});
|
|
4740
4754
|
}
|
|
4741
4755
|
return ee(() => {
|
|
4742
|
-
var
|
|
4743
|
-
return (
|
|
4756
|
+
var y;
|
|
4757
|
+
return (y = t.current) == null || y.addEventListener(
|
|
4744
4758
|
"initeditingbldr",
|
|
4745
|
-
|
|
4759
|
+
ae
|
|
4746
4760
|
), () => {
|
|
4747
|
-
var
|
|
4748
|
-
return (
|
|
4761
|
+
var I;
|
|
4762
|
+
return (I = t.current) == null ? void 0 : I.removeEventListener(
|
|
4749
4763
|
"initeditingbldr",
|
|
4750
|
-
|
|
4764
|
+
ae
|
|
4751
4765
|
);
|
|
4752
4766
|
};
|
|
4753
4767
|
}, []), ee(() => {
|
|
4754
|
-
var
|
|
4755
|
-
return (
|
|
4768
|
+
var y;
|
|
4769
|
+
return (y = t.current) == null || y.addEventListener(
|
|
4756
4770
|
"initpreviewingbldr",
|
|
4757
|
-
|
|
4771
|
+
se
|
|
4758
4772
|
), () => {
|
|
4759
|
-
var
|
|
4760
|
-
return (
|
|
4773
|
+
var I;
|
|
4774
|
+
return (I = t.current) == null ? void 0 : I.removeEventListener(
|
|
4761
4775
|
"initpreviewingbldr",
|
|
4762
|
-
|
|
4776
|
+
se
|
|
4763
4777
|
);
|
|
4764
4778
|
};
|
|
4765
4779
|
}, []), ee(() => {
|
|
4766
|
-
var
|
|
4767
|
-
if (
|
|
4768
|
-
if (
|
|
4769
|
-
const
|
|
4780
|
+
var y, I;
|
|
4781
|
+
if (Te()) {
|
|
4782
|
+
if (Ie() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && ht(e.canTrack)) {
|
|
4783
|
+
const O = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, W = (I = e.builderContextSignal.content) == null ? void 0 : I.id, L = e.apiKey;
|
|
4770
4784
|
Kn({
|
|
4771
4785
|
type: "impression",
|
|
4772
4786
|
canTrack: !0,
|
|
4773
|
-
contentId:
|
|
4774
|
-
apiKey:
|
|
4775
|
-
variationId:
|
|
4787
|
+
contentId: W,
|
|
4788
|
+
apiKey: L,
|
|
4789
|
+
variationId: O !== W ? O : void 0
|
|
4776
4790
|
});
|
|
4777
4791
|
}
|
|
4778
4792
|
Kr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
@@ -4780,44 +4794,45 @@ function bo(e) {
|
|
|
4780
4794
|
}, []), ee(() => {
|
|
4781
4795
|
e.apiKey || Fe.error(
|
|
4782
4796
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4783
|
-
),
|
|
4797
|
+
), v(), b(), D();
|
|
4784
4798
|
}, []), ee(() => {
|
|
4785
4799
|
e.content && i(e.content);
|
|
4786
4800
|
}, [e.content]), ee(() => {
|
|
4787
4801
|
}, [a]), ee(() => {
|
|
4788
|
-
|
|
4802
|
+
v();
|
|
4789
4803
|
}, [
|
|
4790
|
-
(
|
|
4804
|
+
(te = (K = e.builderContextSignal.content) == null ? void 0 : K.data) == null ? void 0 : te.jsCode,
|
|
4791
4805
|
e.builderContextSignal.rootState
|
|
4792
4806
|
]), ee(() => {
|
|
4793
|
-
|
|
4794
|
-
}, [(
|
|
4795
|
-
|
|
4807
|
+
b();
|
|
4808
|
+
}, [(je = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : je.httpRequests]), ee(() => {
|
|
4809
|
+
D();
|
|
4796
4810
|
}, [e.builderContextSignal.rootState]), ee(() => () => {
|
|
4797
|
-
|
|
4811
|
+
Te() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4798
4812
|
"builder:component:stateChangeListenerActivated",
|
|
4799
|
-
|
|
4813
|
+
D
|
|
4800
4814
|
));
|
|
4801
|
-
}, []), /* @__PURE__ */ p(
|
|
4802
|
-
|
|
4815
|
+
}, []), /* @__PURE__ */ p(Qt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ ur(
|
|
4816
|
+
u,
|
|
4803
4817
|
{
|
|
4804
4818
|
key: r,
|
|
4805
4819
|
ref: t,
|
|
4806
|
-
onClick: (
|
|
4807
|
-
"builder-content-id": (
|
|
4820
|
+
onClick: (y) => N(y),
|
|
4821
|
+
"builder-content-id": (V = e.builderContextSignal.content) == null ? void 0 : V.id,
|
|
4808
4822
|
"builder-model": e.model,
|
|
4809
4823
|
...e.showContent ? {} : {
|
|
4810
4824
|
hidden: !0,
|
|
4811
4825
|
"aria-hidden": !0
|
|
4812
4826
|
},
|
|
4813
|
-
|
|
4827
|
+
...e.contentWrapperProps,
|
|
4828
|
+
className: `variant-${((ke = e.content) == null ? void 0 : ke.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
|
|
4814
4829
|
},
|
|
4815
4830
|
e.children
|
|
4816
4831
|
) }) : null });
|
|
4817
4832
|
}
|
|
4818
4833
|
const So = (e) => {
|
|
4819
|
-
var a;
|
|
4820
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = e.fileUrl
|
|
4834
|
+
var a, s;
|
|
4835
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = (s = e.fileUrl) != null ? s : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4821
4836
|
let i = "";
|
|
4822
4837
|
if (n && t && r && (i += `
|
|
4823
4838
|
@font-face {
|
|
@@ -4827,16 +4842,16 @@ font-display: fallback;
|
|
|
4827
4842
|
font-weight: 400;
|
|
4828
4843
|
}
|
|
4829
4844
|
`.trim()), e.files)
|
|
4830
|
-
for (const
|
|
4831
|
-
if (!(String(Number(
|
|
4845
|
+
for (const u in e.files) {
|
|
4846
|
+
if (!(String(Number(u)) === u))
|
|
4832
4847
|
continue;
|
|
4833
|
-
const
|
|
4834
|
-
|
|
4848
|
+
const g = e.files[u];
|
|
4849
|
+
g && g !== n && (i += `
|
|
4835
4850
|
@font-face {
|
|
4836
4851
|
font-family: "${t}";
|
|
4837
|
-
src: url('${
|
|
4852
|
+
src: url('${g}') format('woff2');
|
|
4838
4853
|
font-display: fallback;
|
|
4839
|
-
font-weight: ${
|
|
4854
|
+
font-weight: ${u};
|
|
4840
4855
|
}
|
|
4841
4856
|
`.trim());
|
|
4842
4857
|
}
|
|
@@ -4851,7 +4866,7 @@ font-weight: ${s};
|
|
|
4851
4866
|
contentId: t
|
|
4852
4867
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4853
4868
|
function Co(e) {
|
|
4854
|
-
const [t, r] =
|
|
4869
|
+
const [t, r] = $(
|
|
4855
4870
|
() => `
|
|
4856
4871
|
${ko({
|
|
4857
4872
|
cssCode: e.cssCode,
|
|
@@ -4875,7 +4890,7 @@ ${wo({
|
|
|
4875
4890
|
}
|
|
4876
4891
|
`.trim()
|
|
4877
4892
|
);
|
|
4878
|
-
return /* @__PURE__ */ p(
|
|
4893
|
+
return /* @__PURE__ */ p(yt, { styles: t });
|
|
4879
4894
|
}
|
|
4880
4895
|
const Eo = ({
|
|
4881
4896
|
content: e,
|
|
@@ -4906,25 +4921,25 @@ const Eo = ({
|
|
|
4906
4921
|
meta: e == null ? void 0 : e.meta
|
|
4907
4922
|
} : void 0;
|
|
4908
4923
|
function lr(e) {
|
|
4909
|
-
var f, g, v,
|
|
4910
|
-
const [t, r] =
|
|
4924
|
+
var f, g, v, S, U, H, E;
|
|
4925
|
+
const [t, r] = $(
|
|
4911
4926
|
() => {
|
|
4912
|
-
var N,
|
|
4927
|
+
var N, _;
|
|
4913
4928
|
return ho({
|
|
4914
4929
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4915
4930
|
variationId: (N = e.content) == null ? void 0 : N.testVariationId,
|
|
4916
4931
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4917
|
-
contentId: (
|
|
4932
|
+
contentId: (_ = e.content) == null ? void 0 : _.id
|
|
4918
4933
|
});
|
|
4919
4934
|
}
|
|
4920
4935
|
);
|
|
4921
4936
|
function n(N) {
|
|
4922
|
-
u((
|
|
4923
|
-
...
|
|
4937
|
+
u((_) => ({
|
|
4938
|
+
..._,
|
|
4924
4939
|
rootState: N
|
|
4925
4940
|
}));
|
|
4926
4941
|
}
|
|
4927
|
-
const [i, a] =
|
|
4942
|
+
const [i, a] = $(
|
|
4928
4943
|
() => [
|
|
4929
4944
|
...ir(),
|
|
4930
4945
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -4935,16 +4950,16 @@ function lr(e) {
|
|
|
4935
4950
|
...Gn,
|
|
4936
4951
|
...e.customComponents || []
|
|
4937
4952
|
].reduce(
|
|
4938
|
-
(N, { component:
|
|
4953
|
+
(N, { component: _, ...G }) => ({
|
|
4939
4954
|
...N,
|
|
4940
|
-
[
|
|
4941
|
-
component:
|
|
4942
|
-
...zn(
|
|
4955
|
+
[G.name]: {
|
|
4956
|
+
component: _,
|
|
4957
|
+
...zn(G)
|
|
4943
4958
|
}
|
|
4944
4959
|
}),
|
|
4945
4960
|
{}
|
|
4946
4961
|
)
|
|
4947
|
-
), [s, u] =
|
|
4962
|
+
), [s, u] = $(() => ({
|
|
4948
4963
|
content: Io({
|
|
4949
4964
|
content: e.content,
|
|
4950
4965
|
data: e.data
|
|
@@ -4969,13 +4984,15 @@ function lr(e) {
|
|
|
4969
4984
|
...Gn,
|
|
4970
4985
|
...e.customComponents || []
|
|
4971
4986
|
].reduce(
|
|
4972
|
-
(N, { component:
|
|
4987
|
+
(N, { component: _, ...G }) => ({
|
|
4973
4988
|
...N,
|
|
4974
|
-
[
|
|
4989
|
+
[G.name]: zn(G)
|
|
4975
4990
|
}),
|
|
4976
4991
|
{}
|
|
4977
4992
|
),
|
|
4978
|
-
inheritedStyles: {}
|
|
4993
|
+
inheritedStyles: {},
|
|
4994
|
+
BlocksWrapper: e.blocksWrapper || "div",
|
|
4995
|
+
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4979
4996
|
}));
|
|
4980
4997
|
return /* @__PURE__ */ p(
|
|
4981
4998
|
fr.Provider,
|
|
@@ -4984,7 +5001,7 @@ function lr(e) {
|
|
|
4984
5001
|
registeredComponents: i
|
|
4985
5002
|
},
|
|
4986
5003
|
children: /* @__PURE__ */ Z(
|
|
4987
|
-
|
|
5004
|
+
xo,
|
|
4988
5005
|
{
|
|
4989
5006
|
content: e.content,
|
|
4990
5007
|
model: e.model,
|
|
@@ -4996,21 +5013,23 @@ function lr(e) {
|
|
|
4996
5013
|
enrich: e.enrich,
|
|
4997
5014
|
showContent: e.showContent,
|
|
4998
5015
|
builderContextSignal: s,
|
|
5016
|
+
contentWrapper: e.contentWrapper,
|
|
5017
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
4999
5018
|
setBuilderContextSignal: u,
|
|
5000
5019
|
children: [
|
|
5001
|
-
e.isSsrAbTest ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
5020
|
+
e.isSsrAbTest ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(Jt, { scriptStr: t }) }) : null,
|
|
5002
5021
|
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
5003
5022
|
Co,
|
|
5004
5023
|
{
|
|
5005
5024
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
5006
5025
|
cssCode: (v = (g = s.content) == null ? void 0 : g.data) == null ? void 0 : v.cssCode,
|
|
5007
|
-
customFonts: (
|
|
5026
|
+
customFonts: (U = (S = s.content) == null ? void 0 : S.data) == null ? void 0 : U.customFonts
|
|
5008
5027
|
}
|
|
5009
5028
|
) }),
|
|
5010
5029
|
/* @__PURE__ */ p(
|
|
5011
|
-
|
|
5030
|
+
hn,
|
|
5012
5031
|
{
|
|
5013
|
-
blocks: (E = (
|
|
5032
|
+
blocks: (E = (H = s.content) == null ? void 0 : H.data) == null ? void 0 : E.blocks,
|
|
5014
5033
|
context: s,
|
|
5015
5034
|
registeredComponents: i
|
|
5016
5035
|
}
|
|
@@ -5023,16 +5042,16 @@ function lr(e) {
|
|
|
5023
5042
|
}
|
|
5024
5043
|
function Ir(e) {
|
|
5025
5044
|
var s, u;
|
|
5026
|
-
const [t, r] =
|
|
5045
|
+
const [t, r] = $(
|
|
5027
5046
|
() => lo({
|
|
5028
|
-
canTrack:
|
|
5047
|
+
canTrack: ht(e.canTrack),
|
|
5029
5048
|
content: e.content
|
|
5030
5049
|
})
|
|
5031
5050
|
);
|
|
5032
5051
|
function n() {
|
|
5033
5052
|
var f;
|
|
5034
5053
|
return fo(
|
|
5035
|
-
|
|
5054
|
+
ft(e.content).map((g) => ({
|
|
5036
5055
|
id: g.testVariationId,
|
|
5037
5056
|
testRatio: g.testRatio
|
|
5038
5057
|
})),
|
|
@@ -5040,7 +5059,7 @@ function Ir(e) {
|
|
|
5040
5059
|
);
|
|
5041
5060
|
}
|
|
5042
5061
|
function i() {
|
|
5043
|
-
return
|
|
5062
|
+
return ft(e.content).map((f) => `.variant-${f.testVariationId} { display: none; } `).join("");
|
|
5044
5063
|
}
|
|
5045
5064
|
function a() {
|
|
5046
5065
|
var f;
|
|
@@ -5049,22 +5068,22 @@ function Ir(e) {
|
|
|
5049
5068
|
testVariationId: (f = e.content) == null ? void 0 : f.id
|
|
5050
5069
|
} : Xr({
|
|
5051
5070
|
item: e.content,
|
|
5052
|
-
canTrack:
|
|
5071
|
+
canTrack: ht(e.canTrack)
|
|
5053
5072
|
});
|
|
5054
5073
|
}
|
|
5055
5074
|
return ee(() => {
|
|
5056
5075
|
}, []), /* @__PURE__ */ Z(P, { children: [
|
|
5057
|
-
!e.__isNestedRender &&
|
|
5076
|
+
!e.__isNestedRender && nt !== "reactNative" ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(Jt, { scriptStr: uo() }) }) : null,
|
|
5058
5077
|
t ? /* @__PURE__ */ Z(P, { children: [
|
|
5059
5078
|
/* @__PURE__ */ p(
|
|
5060
|
-
|
|
5079
|
+
yt,
|
|
5061
5080
|
{
|
|
5062
5081
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
5063
5082
|
styles: i()
|
|
5064
5083
|
}
|
|
5065
5084
|
),
|
|
5066
|
-
/* @__PURE__ */ p(
|
|
5067
|
-
(u =
|
|
5085
|
+
/* @__PURE__ */ p(Jt, { scriptStr: n() }),
|
|
5086
|
+
(u = ft(e.content)) == null ? void 0 : u.map((f) => /* @__PURE__ */ p(
|
|
5068
5087
|
lr,
|
|
5069
5088
|
{
|
|
5070
5089
|
content: f,
|
|
@@ -5079,7 +5098,11 @@ function Ir(e) {
|
|
|
5079
5098
|
locale: e.locale,
|
|
5080
5099
|
includeRefs: e.includeRefs,
|
|
5081
5100
|
enrich: e.enrich,
|
|
5082
|
-
isSsrAbTest: t
|
|
5101
|
+
isSsrAbTest: t,
|
|
5102
|
+
blocksWrapper: e.blocksWrapper,
|
|
5103
|
+
blocksWrapperProps: e.blocksWrapperProps,
|
|
5104
|
+
contentWrapper: e.contentWrapper,
|
|
5105
|
+
contentWrapperProps: e.contentWrapperProps
|
|
5083
5106
|
},
|
|
5084
5107
|
f.testVariationId
|
|
5085
5108
|
))
|
|
@@ -5099,7 +5122,11 @@ function Ir(e) {
|
|
|
5099
5122
|
locale: e.locale,
|
|
5100
5123
|
includeRefs: e.includeRefs,
|
|
5101
5124
|
enrich: e.enrich,
|
|
5102
|
-
isSsrAbTest: t
|
|
5125
|
+
isSsrAbTest: t,
|
|
5126
|
+
blocksWrapper: e.blocksWrapper,
|
|
5127
|
+
blocksWrapperProps: e.blocksWrapperProps,
|
|
5128
|
+
contentWrapper: e.contentWrapper,
|
|
5129
|
+
contentWrapperProps: e.contentWrapperProps
|
|
5103
5130
|
}
|
|
5104
5131
|
)
|
|
5105
5132
|
] });
|
|
@@ -5134,7 +5161,7 @@ function jo(e) {
|
|
|
5134
5161
|
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5135
5162
|
].filter(Boolean).join(" ");
|
|
5136
5163
|
}
|
|
5137
|
-
const [r, n] =
|
|
5164
|
+
const [r, n] = $(() => {
|
|
5138
5165
|
var f;
|
|
5139
5166
|
return (f = e.symbol) == null ? void 0 : f.content;
|
|
5140
5167
|
});
|
|
@@ -5167,31 +5194,31 @@ function jo(e) {
|
|
|
5167
5194
|
}
|
|
5168
5195
|
) });
|
|
5169
5196
|
}
|
|
5170
|
-
const Po =
|
|
5197
|
+
const Po = hn, No = Ir;
|
|
5171
5198
|
export {
|
|
5172
|
-
|
|
5199
|
+
hn as Blocks,
|
|
5173
5200
|
Yr as Button,
|
|
5174
|
-
|
|
5201
|
+
Fi as Columns,
|
|
5175
5202
|
Ir as Content,
|
|
5176
|
-
|
|
5177
|
-
|
|
5203
|
+
Ui as Fragment,
|
|
5204
|
+
Wi as Image,
|
|
5178
5205
|
Po as RenderBlocks,
|
|
5179
5206
|
No as RenderContent,
|
|
5180
|
-
|
|
5207
|
+
Vi as Section,
|
|
5181
5208
|
jo as Symbol,
|
|
5182
5209
|
ro as Text,
|
|
5183
5210
|
oo as Video,
|
|
5184
|
-
|
|
5211
|
+
Fo as _processContentResult,
|
|
5185
5212
|
Gr as createRegisterComponentMessage,
|
|
5186
|
-
|
|
5213
|
+
Uo as fetchBuilderProps,
|
|
5187
5214
|
_o as fetchEntries,
|
|
5188
5215
|
dr as fetchOneEntry,
|
|
5189
5216
|
Do as getAllContent,
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5217
|
+
Wo as getBuilderSearchParams,
|
|
5218
|
+
Vo as getContent,
|
|
5219
|
+
Ie as isEditing,
|
|
5193
5220
|
Kr as isPreviewing,
|
|
5194
5221
|
Hr as register,
|
|
5195
|
-
|
|
5196
|
-
|
|
5222
|
+
Lo as setEditorSettings,
|
|
5223
|
+
$o as track
|
|
5197
5224
|
};
|