@builder.io/sdk-react 1.0.22 → 1.0.24
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/blocks-exports.cjs +31 -31
- package/lib/browser/blocks-exports.mjs +1008 -794
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-3e30c656.js → server-entry-85d7f359.js} +1 -1
- package/lib/browser/{server-entry-8951c0c5.cjs → server-entry-a540d463.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-59950370.cjs +32 -0
- package/lib/edge/{blocks-b1f5ec2b.js → blocks-e6873db2.js} +615 -620
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/button-8a6ae666.js +31 -0
- package/lib/edge/button-aff4f652.cjs +1 -0
- package/lib/edge/columns-0768e506.js +163 -0
- package/lib/edge/columns-8dca796d.cjs +28 -0
- package/lib/edge/{content-variants-f165fa88.js → content-variants-c8061bc0.js} +404 -262
- package/lib/edge/content-variants-e79859ac.cjs +134 -0
- package/lib/edge/{form-d0cfb830.js → form-c3d12c27.js} +3 -3
- package/lib/edge/{form-b0d65d74.cjs → form-e6847833.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-49d9b54f.js → get-class-prop-name-a023381f.js} +2 -1
- package/lib/edge/get-class-prop-name-a966a097.cjs +1 -0
- package/lib/edge/image-764070f8.cjs +17 -0
- package/lib/edge/{image-0008c792.js → image-9d24a962.js} +24 -24
- package/lib/edge/{img-e321016e.js → img-03949fec.js} +1 -1
- package/lib/edge/{img-fcf6e57f.cjs → img-1431a6ab.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-f0319ee6.cjs → input-f420d17a.cjs} +1 -1
- package/lib/edge/{input-27f575fe.js → input-f611f26d.js} +1 -1
- package/lib/edge/{select-e31522ee.cjs → select-aadf10db.cjs} +1 -1
- package/lib/edge/{select-dd4c61db.js → select-e056d1d3.js} +1 -1
- package/lib/edge/{server-entry-dd363108.cjs → server-entry-95f97e05.cjs} +1 -1
- package/lib/edge/{server-entry-253a0fa1.js → server-entry-bbf65248.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-fea27ccf.js → slot-2f6f1817.js} +3 -3
- package/lib/edge/{slot-a2388031.cjs → slot-3ed45869.cjs} +1 -1
- package/lib/edge/{symbol-686edeb8.js → symbol-853c210f.js} +32 -26
- package/lib/edge/symbol-c9d45cc8.cjs +1 -0
- package/lib/edge/tabs-28d0f021.js +69 -0
- package/lib/edge/tabs-34a12e52.cjs +1 -0
- package/lib/node/blocks-exports.cjs +32 -32
- package/lib/node/blocks-exports.mjs +1114 -900
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-6587ed2e.js → node-runtime-071b85f9.js} +1 -1
- package/lib/node/{node-runtime-fa43cf07.cjs → node-runtime-41e3da8e.cjs} +1 -1
- package/lib/node/{server-entry-3abae5dd.cjs → server-entry-b5031981.cjs} +1 -1
- package/lib/node/{server-entry-14d7a1d0.js → server-entry-fd29e8b4.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/blocks/columns/columns.types.d.ts +1 -1
- package/types/blocks/columns/helpers.d.ts +1 -0
- package/types/blocks/tabs/component-info.d.ts +2 -0
- package/types/blocks/tabs/index.d.ts +1 -0
- package/types/blocks/tabs/tabs.d.ts +4 -0
- package/types/blocks/tabs/tabs.types.d.ts +13 -0
- package/types/blocks/text/text.types.d.ts +2 -1
- package/types/components/block/block.helpers.d.ts +2 -0
- package/types/components/content/components/styles.helpers.d.ts +1 -0
- package/types/components/dynamic-div.d.ts +15 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/types/targets.d.ts +1 -1
- package/lib/edge/blocks-5705f416.cjs +0 -32
- package/lib/edge/button-2b710146.js +0 -28
- package/lib/edge/button-3c20ccff.cjs +0 -1
- package/lib/edge/columns-38a397cd.js +0 -156
- package/lib/edge/columns-761d98c4.cjs +0 -28
- package/lib/edge/content-variants-befe3587.cjs +0 -134
- package/lib/edge/get-class-prop-name-27f8a4f1.cjs +0 -1
- package/lib/edge/image-ee3dd857.cjs +0 -17
- package/lib/edge/symbol-ba2c6245.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var kn = Object.defineProperty;
|
|
2
2
|
var En = (e, t, n) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
import { jsx as T, Fragment as Z, jsxs as
|
|
3
|
+
var Nt = (e, t, n) => (En(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { jsx as T, Fragment as Z, jsxs as Mt } from "react/jsx-runtime";
|
|
5
5
|
import { createContext as Cn, useState as $r, useEffect as jn, useContext as Rr } from "react";
|
|
6
6
|
import { BuilderContext as Gr } from "./blocks-exports.mjs";
|
|
7
|
-
import { isEditing as
|
|
8
|
-
import { getClassPropName as An } from "./get-class-prop-name-
|
|
9
|
-
import { DynamicRenderer as
|
|
7
|
+
import { isEditing as Bt, isBrowser as Dt, getUserAttributes as On, logger as nt, checkIsDefined as ot, fastClone as Vr, TARGET as Xr } from "./server-entry-bbf65248.js";
|
|
8
|
+
import { getClassPropName as An } from "./get-class-prop-name-a023381f.js";
|
|
9
|
+
import { DynamicRenderer as bn } from "./dynamic-renderer-8b343325.js";
|
|
10
10
|
const Hr = (e, t, n) => {
|
|
11
11
|
if (Object(e) !== e)
|
|
12
12
|
return e;
|
|
@@ -24,15 +24,15 @@ const Hr = (e, t, n) => {
|
|
|
24
24
|
builder: e,
|
|
25
25
|
context: t,
|
|
26
26
|
event: n
|
|
27
|
-
}),
|
|
28
|
-
isEditing:
|
|
29
|
-
isBrowser:
|
|
30
|
-
isServer: !
|
|
27
|
+
}), In = () => ({
|
|
28
|
+
isEditing: Bt(),
|
|
29
|
+
isBrowser: Dt(),
|
|
30
|
+
isServer: !Dt(),
|
|
31
31
|
getUserAttributes: () => On()
|
|
32
32
|
}), Tn = (e, {
|
|
33
33
|
isExpression: t = !0
|
|
34
|
-
}) => /* 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,
|
|
35
|
-
function
|
|
34
|
+
}) => /* 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, Pn = Cn({ registeredComponents: {} });
|
|
35
|
+
function Nn(e) {
|
|
36
36
|
var t;
|
|
37
37
|
return {
|
|
38
38
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -89,17 +89,17 @@ function Jr({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
var
|
|
92
|
+
var I, Mn = function(e) {
|
|
93
93
|
function t(i) {
|
|
94
94
|
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Sn.test(String.fromCharCode(i));
|
|
95
95
|
}
|
|
96
96
|
function n(i) {
|
|
97
|
-
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i &&
|
|
97
|
+
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Nr.test(String.fromCharCode(i));
|
|
98
98
|
}
|
|
99
99
|
function r(i, l) {
|
|
100
100
|
for (var u = d, p = 1, x = 0; ; ) {
|
|
101
|
-
|
|
102
|
-
var F =
|
|
101
|
+
tt.lastIndex = x;
|
|
102
|
+
var F = tt.exec(u);
|
|
103
103
|
if (F && F.index < i)
|
|
104
104
|
++p, x = F.index + F[0].length;
|
|
105
105
|
else
|
|
@@ -119,15 +119,15 @@ var b, Mn = function(e) {
|
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
121
|
function s() {
|
|
122
|
-
this.line = de, this.ab = c -
|
|
122
|
+
this.line = de, this.ab = c - ee;
|
|
123
123
|
}
|
|
124
124
|
function a(i, l) {
|
|
125
|
-
me = c,
|
|
125
|
+
me = c, C.C && (mt = new s()), S = i, g(), J = l, Pe = i.m;
|
|
126
126
|
}
|
|
127
127
|
function f() {
|
|
128
|
-
for (var i = c, l =
|
|
128
|
+
for (var i = c, l = C.va && C.C && new s(), u = d.charCodeAt(c += 2); c < ve && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
129
129
|
++c, u = d.charCodeAt(c);
|
|
130
|
-
|
|
130
|
+
C.va && C.va(!1, d.slice(i + 2, c), i, c, l, C.C && new s());
|
|
131
131
|
}
|
|
132
132
|
function g() {
|
|
133
133
|
for (; c < ve; ) {
|
|
@@ -135,19 +135,19 @@ var b, Mn = function(e) {
|
|
|
135
135
|
if (i === 32)
|
|
136
136
|
++c;
|
|
137
137
|
else if (i === 13)
|
|
138
|
-
++c, i = d.charCodeAt(c), i === 10 && ++c,
|
|
138
|
+
++c, i = d.charCodeAt(c), i === 10 && ++c, C.C && (++de, ee = c);
|
|
139
139
|
else if (i === 10 || i === 8232 || i === 8233)
|
|
140
|
-
++c,
|
|
140
|
+
++c, C.C && (++de, ee = c);
|
|
141
141
|
else if (8 < i && 14 > i)
|
|
142
142
|
++c;
|
|
143
143
|
else if (i === 47)
|
|
144
144
|
if (i = d.charCodeAt(c + 1), i === 42) {
|
|
145
145
|
i = void 0;
|
|
146
|
-
var l =
|
|
147
|
-
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2,
|
|
148
|
-
for (
|
|
149
|
-
++de,
|
|
150
|
-
|
|
146
|
+
var l = C.va && C.C && new s(), u = c, p = d.indexOf("*/", c += 2);
|
|
147
|
+
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2, C.C)
|
|
148
|
+
for (tt.lastIndex = u; (i = tt.exec(d)) && i.index < c; )
|
|
149
|
+
++de, ee = i.index + i[0].length;
|
|
150
|
+
C.va && C.va(!0, d.slice(u + 2, p), u, c, l, C.C && new s());
|
|
151
151
|
} else if (i === 47)
|
|
152
152
|
f();
|
|
153
153
|
else
|
|
@@ -160,34 +160,34 @@ var b, Mn = function(e) {
|
|
|
160
160
|
break;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function j(i) {
|
|
164
164
|
switch (i) {
|
|
165
165
|
case 46:
|
|
166
|
-
i = d.charCodeAt(c + 1), 48 <= i && 57 >= i ?
|
|
166
|
+
i = d.charCodeAt(c + 1), 48 <= i && 57 >= i ? b(!0) : (++c, a(Cr));
|
|
167
167
|
return;
|
|
168
168
|
case 40:
|
|
169
|
-
return ++c, a(
|
|
169
|
+
return ++c, a(te);
|
|
170
170
|
case 41:
|
|
171
|
-
return ++c, a(
|
|
171
|
+
return ++c, a(z);
|
|
172
172
|
case 59:
|
|
173
|
-
return ++c, a(
|
|
173
|
+
return ++c, a(re);
|
|
174
174
|
case 44:
|
|
175
|
-
return ++c, a(
|
|
175
|
+
return ++c, a(ce);
|
|
176
176
|
case 91:
|
|
177
|
-
return ++c, a(
|
|
177
|
+
return ++c, a(bt);
|
|
178
178
|
case 93:
|
|
179
|
-
return ++c, a(
|
|
179
|
+
return ++c, a(It);
|
|
180
180
|
case 123:
|
|
181
|
-
return ++c, a(
|
|
181
|
+
return ++c, a(Me);
|
|
182
182
|
case 125:
|
|
183
183
|
return ++c, a(Se);
|
|
184
184
|
case 58:
|
|
185
|
-
return ++c, a(
|
|
185
|
+
return ++c, a(Be);
|
|
186
186
|
case 63:
|
|
187
187
|
return ++c, a(jr);
|
|
188
188
|
case 48:
|
|
189
189
|
if (i = d.charCodeAt(c + 1), i === 120 || i === 88) {
|
|
190
|
-
c += 2, i = R(16), i === null && r(U + 2, "Expected hexadecimal number"), n(d.charCodeAt(c)) && r(c, "Identifier directly after number"), a(
|
|
190
|
+
c += 2, i = R(16), i === null && r(U + 2, "Expected hexadecimal number"), n(d.charCodeAt(c)) && r(c, "Identifier directly after number"), a(Re, i);
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
case 49:
|
|
@@ -199,7 +199,7 @@ var b, Mn = function(e) {
|
|
|
199
199
|
case 55:
|
|
200
200
|
case 56:
|
|
201
201
|
case 57:
|
|
202
|
-
return
|
|
202
|
+
return b(!1);
|
|
203
203
|
case 34:
|
|
204
204
|
case 39:
|
|
205
205
|
c++;
|
|
@@ -207,7 +207,7 @@ var b, Mn = function(e) {
|
|
|
207
207
|
c >= ve && r(U, "Unterminated string constant");
|
|
208
208
|
var u = d.charCodeAt(c);
|
|
209
209
|
if (u === i) {
|
|
210
|
-
++c, a(
|
|
210
|
+
++c, a(ze, l);
|
|
211
211
|
break;
|
|
212
212
|
}
|
|
213
213
|
if (u === 92) {
|
|
@@ -253,7 +253,7 @@ var b, Mn = function(e) {
|
|
|
253
253
|
case 13:
|
|
254
254
|
d.charCodeAt(c) === 10 && ++c;
|
|
255
255
|
case 10:
|
|
256
|
-
|
|
256
|
+
C.C && (ee = c, ++de);
|
|
257
257
|
break;
|
|
258
258
|
default:
|
|
259
259
|
l += String.fromCharCode(u);
|
|
@@ -263,7 +263,7 @@ var b, Mn = function(e) {
|
|
|
263
263
|
}
|
|
264
264
|
return;
|
|
265
265
|
case 47:
|
|
266
|
-
i = d.charCodeAt(c + 1),
|
|
266
|
+
i = d.charCodeAt(c + 1), Pe ? (++c, P()) : i === 61 ? w(ye, 2) : w(Or, 1);
|
|
267
267
|
return;
|
|
268
268
|
case 37:
|
|
269
269
|
case 42:
|
|
@@ -271,38 +271,38 @@ var b, Mn = function(e) {
|
|
|
271
271
|
return;
|
|
272
272
|
case 124:
|
|
273
273
|
case 38:
|
|
274
|
-
l = d.charCodeAt(c + 1), l === i ? w(i === 124 ?
|
|
274
|
+
l = d.charCodeAt(c + 1), l === i ? w(i === 124 ? Ir : Tr, 2) : l === 61 ? w(ye, 2) : w(i === 124 ? un : fn, 1);
|
|
275
275
|
return;
|
|
276
276
|
case 94:
|
|
277
277
|
d.charCodeAt(c + 1) === 61 ? w(ye, 2) : w(cn, 1);
|
|
278
278
|
return;
|
|
279
279
|
case 43:
|
|
280
280
|
case 45:
|
|
281
|
-
l = d.charCodeAt(c + 1), l === i ? l === 45 && d.charCodeAt(c + 2) === 62 &&
|
|
281
|
+
l = d.charCodeAt(c + 1), l === i ? l === 45 && d.charCodeAt(c + 2) === 62 && et.test(d.slice(ue, c)) ? (c += 3, f(), g(), E()) : w(ln, 2) : l === 61 ? w(ye, 2) : w(dn, 1);
|
|
282
282
|
return;
|
|
283
283
|
case 60:
|
|
284
284
|
case 62:
|
|
285
|
-
l = d.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && d.charCodeAt(c + 2) === 62 ? 3 : 2, d.charCodeAt(c + u) === 61 ? w(ye, u + 1) : w(gn, u)) : l === 33 && i === 60 && d.charCodeAt(c + 2) === 45 && d.charCodeAt(c + 3) === 45 ? (c += 4, f(), g(),
|
|
285
|
+
l = d.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && d.charCodeAt(c + 2) === 62 ? 3 : 2, d.charCodeAt(c + u) === 61 ? w(ye, u + 1) : w(gn, u)) : l === 33 && i === 60 && d.charCodeAt(c + 2) === 45 && d.charCodeAt(c + 3) === 45 ? (c += 4, f(), g(), E()) : (l === 61 && (u = d.charCodeAt(c + 2) === 61 ? 3 : 2), w(hn, u));
|
|
286
286
|
return;
|
|
287
287
|
case 61:
|
|
288
288
|
case 33:
|
|
289
|
-
d.charCodeAt(c + 1) === 61 ? w(pn, d.charCodeAt(c + 2) === 61 ? 3 : 2) : w(i === 61 ? Ar :
|
|
289
|
+
d.charCodeAt(c + 1) === 61 ? w(pn, d.charCodeAt(c + 2) === 61 ? 3 : 2) : w(i === 61 ? Ar : br, 1);
|
|
290
290
|
return;
|
|
291
291
|
case 126:
|
|
292
|
-
return w(
|
|
292
|
+
return w(br, 1);
|
|
293
293
|
}
|
|
294
294
|
return !1;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
if (i ? c = U + 1 : U = c,
|
|
298
|
-
return
|
|
296
|
+
function E(i) {
|
|
297
|
+
if (i ? c = U + 1 : U = c, C.C && (vt = new s()), i)
|
|
298
|
+
return P();
|
|
299
299
|
if (c >= ve)
|
|
300
|
-
return a(
|
|
300
|
+
return a(xt);
|
|
301
301
|
if (i = d.charCodeAt(c), n(i) || i === 92)
|
|
302
|
-
return
|
|
303
|
-
if (
|
|
304
|
-
if (i = String.fromCharCode(i), i === "\\" ||
|
|
305
|
-
return
|
|
302
|
+
return pe();
|
|
303
|
+
if (j(i) === !1) {
|
|
304
|
+
if (i = String.fromCharCode(i), i === "\\" || Nr.test(i))
|
|
305
|
+
return pe();
|
|
306
306
|
r(c, "Unexpected character '" + i + "'");
|
|
307
307
|
}
|
|
308
308
|
}
|
|
@@ -310,11 +310,11 @@ var b, Mn = function(e) {
|
|
|
310
310
|
var u = d.slice(c, c + l);
|
|
311
311
|
c += l, a(i, u);
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function P() {
|
|
314
314
|
for (var i, l, u = c; ; ) {
|
|
315
315
|
c >= ve && r(u, "Unterminated regexp");
|
|
316
316
|
var p = d.charAt(c);
|
|
317
|
-
if (
|
|
317
|
+
if (et.test(p) && r(u, "Unterminated regexp"), i)
|
|
318
318
|
i = !1;
|
|
319
319
|
else {
|
|
320
320
|
if (p === "[")
|
|
@@ -344,11 +344,11 @@ var b, Mn = function(e) {
|
|
|
344
344
|
}
|
|
345
345
|
return c === u || l !== void 0 && c - u !== l ? null : p;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function b(i) {
|
|
348
348
|
var l = c, u = !1, p = d.charCodeAt(c) === 48;
|
|
349
349
|
i || R(10) !== null || r(l, "Invalid number"), d.charCodeAt(c) === 46 && (++c, R(10), u = !0), i = d.charCodeAt(c), (i === 69 || i === 101) && (i = d.charCodeAt(++c), i !== 43 && i !== 45 || ++c, R(10) === null && r(l, "Invalid number"), u = !0), n(d.charCodeAt(c)) && r(c, "Identifier directly after number"), i = d.slice(l, c);
|
|
350
350
|
var x;
|
|
351
|
-
u ? x = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || H ? r(l, "Invalid number") : x = parseInt(i, 8) : x = parseInt(i, 10), a(
|
|
351
|
+
u ? x = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || H ? r(l, "Invalid number") : x = parseInt(i, 8) : x = parseInt(i, 10), a(Re, x);
|
|
352
352
|
}
|
|
353
353
|
function D(i) {
|
|
354
354
|
return i = R(16, i), i === null && r(U, "Bad character escape sequence"), i;
|
|
@@ -369,279 +369,279 @@ var b, Mn = function(e) {
|
|
|
369
369
|
}
|
|
370
370
|
return xe ? i : d.slice(u, c);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function pe() {
|
|
373
373
|
var i = K(), l = we;
|
|
374
374
|
!xe && mn(i) && (l = an[i]), a(l, i);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
|
|
376
|
+
function O() {
|
|
377
|
+
wt = U, ue = me, St = mt, E();
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
if (H = i, c = U,
|
|
381
|
-
for (; c <
|
|
382
|
-
|
|
383
|
-
`,
|
|
384
|
-
g(),
|
|
379
|
+
function he(i) {
|
|
380
|
+
if (H = i, c = U, C.C)
|
|
381
|
+
for (; c < ee; )
|
|
382
|
+
ee = d.lastIndexOf(`
|
|
383
|
+
`, ee - 2) + 1, --de;
|
|
384
|
+
g(), E();
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function er() {
|
|
387
387
|
this.type = null, this.start = U, this.end = null;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
390
|
-
this.start =
|
|
389
|
+
function tr() {
|
|
390
|
+
this.start = vt, this.end = null, yt && (this.source = yt);
|
|
391
391
|
}
|
|
392
392
|
function _() {
|
|
393
|
-
var i = new
|
|
394
|
-
return
|
|
393
|
+
var i = new er();
|
|
394
|
+
return C.C && (i.X = new tr()), C.vb && (i.sourceFile = C.vb), C.Xa && (i.j = [U, 0]), i;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
var l = new
|
|
398
|
-
return l.start = i.start,
|
|
396
|
+
function le(i) {
|
|
397
|
+
var l = new er();
|
|
398
|
+
return l.start = i.start, C.C && (l.X = new tr(), l.X.start = i.X.start), C.Xa && (l.j = [i.j[0], 0]), l;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
401
|
-
return i.type = l, i.end =
|
|
400
|
+
function k(i, l) {
|
|
401
|
+
return i.type = l, i.end = ue, C.C && (i.X.end = St), C.Xa && (i.j[1] = ue), i;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function ut(i) {
|
|
404
404
|
return i.type === "ExpressionStatement" && i.la.type === "Literal" && i.la.value === "use strict";
|
|
405
405
|
}
|
|
406
|
-
function
|
|
407
|
-
return S === i ? (
|
|
406
|
+
function N(i) {
|
|
407
|
+
return S === i ? (O(), !0) : !1;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
return !
|
|
409
|
+
function Je() {
|
|
410
|
+
return !C.fc && (S === xt || S === Se || et.test(d.slice(ue, U)));
|
|
411
411
|
}
|
|
412
412
|
function ge() {
|
|
413
|
-
|
|
413
|
+
N(re) || Je() || Q();
|
|
414
414
|
}
|
|
415
415
|
function M(i) {
|
|
416
|
-
S === i ?
|
|
416
|
+
S === i ? O() : Q();
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Q() {
|
|
419
419
|
r(U, "Unexpected token");
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), H && i.type === "Identifier" &&
|
|
421
|
+
function Ye(i) {
|
|
422
|
+
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), H && i.type === "Identifier" && qe(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
|
|
423
423
|
}
|
|
424
424
|
function Y() {
|
|
425
|
-
(S === Or || S === ye && J === "/=") &&
|
|
425
|
+
(S === Or || S === ye && J === "/=") && E(!0);
|
|
426
426
|
var i = S, l = _();
|
|
427
427
|
switch (i) {
|
|
428
|
-
case
|
|
428
|
+
case kt:
|
|
429
429
|
case ar:
|
|
430
|
-
|
|
431
|
-
var u = i ===
|
|
432
|
-
|
|
430
|
+
O();
|
|
431
|
+
var u = i === kt;
|
|
432
|
+
N(re) || Je() ? l.label = null : S !== we ? Q() : (l.label = q(), ge());
|
|
433
433
|
for (var p = 0; p < B.length; ++p) {
|
|
434
434
|
var x = B[p];
|
|
435
435
|
if ((l.label === null || x.name === l.label.name) && (x.kind !== null && (u || x.kind === "loop") || l.label && u))
|
|
436
436
|
break;
|
|
437
437
|
}
|
|
438
|
-
return p === B.length && r(l.start, "Unsyntactic " + i.l),
|
|
438
|
+
return p === B.length && r(l.start, "Unsyntactic " + i.l), k(l, u ? "BreakStatement" : "ContinueStatement");
|
|
439
439
|
case lr:
|
|
440
|
-
return
|
|
440
|
+
return O(), ge(), k(l, "DebuggerStatement");
|
|
441
441
|
case cr:
|
|
442
|
-
return
|
|
442
|
+
return O(), B.push(Tt), l.body = Y(), B.pop(), M(At), l.test = be(), ge(), k(l, "DoWhileStatement");
|
|
443
443
|
case hr:
|
|
444
|
-
return
|
|
445
|
-
case
|
|
446
|
-
return
|
|
444
|
+
return O(), B.push(Tt), M(te), S === re ? ct(l, null) : S === Ot ? (i = _(), O(), nr(i, !0), k(i, "VariableDeclaration"), i.fa.length === 1 && N(Qe) ? rr(l, i) : ct(l, i)) : (i = $(!1, !0), N(Qe) ? (Ye(i), rr(l, i)) : ct(l, i));
|
|
445
|
+
case Ct:
|
|
446
|
+
return O(), gt(l, !0);
|
|
447
447
|
case gr:
|
|
448
|
-
return
|
|
448
|
+
return O(), l.test = be(), l.da = Y(), l.alternate = N(fr) ? Y() : null, k(l, "IfStatement");
|
|
449
449
|
case dr:
|
|
450
|
-
return
|
|
451
|
-
case
|
|
452
|
-
for (
|
|
453
|
-
S ===
|
|
454
|
-
return p &&
|
|
450
|
+
return Ne || C.Ib || r(U, "'return' outside of function"), O(), N(re) || Je() ? l.K = null : (l.K = $(), ge()), k(l, "ReturnStatement");
|
|
451
|
+
case jt:
|
|
452
|
+
for (O(), l.Qb = be(), l.tb = [], M(Me), B.push(xn); S !== Se; )
|
|
453
|
+
S === Et || S === ur ? (i = S === Et, p && k(p, "SwitchCase"), l.tb.push(p = _()), p.da = [], O(), i ? p.test = $() : (u && r(wt, "Multiple default clauses"), u = !0, p.test = null), M(Be)) : (p || Q(), p.da.push(Y()));
|
|
454
|
+
return p && k(p, "SwitchCase"), O(), B.pop(), k(l, "SwitchStatement");
|
|
455
455
|
case yr:
|
|
456
|
-
return
|
|
456
|
+
return O(), et.test(d.slice(ue, U)) && r(ue, "Illegal newline after throw"), l.K = $(), ge(), k(l, "ThrowStatement");
|
|
457
457
|
case vr:
|
|
458
|
-
return
|
|
459
|
-
case
|
|
460
|
-
return
|
|
461
|
-
case
|
|
462
|
-
return
|
|
458
|
+
return O(), l.block = Ie(), l.Ea = null, S === sr && (i = _(), O(), M(te), i.Ua = q(), H && qe(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), M(z), i.body = Ie(), l.Ea = k(i, "CatchClause")), l.fb = N(pr) ? Ie() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), k(l, "TryStatement");
|
|
459
|
+
case Ot:
|
|
460
|
+
return O(), nr(l), ge(), k(l, "VariableDeclaration");
|
|
461
|
+
case At:
|
|
462
|
+
return O(), l.test = be(), B.push(Tt), l.body = Y(), B.pop(), k(l, "WhileStatement");
|
|
463
463
|
case mr:
|
|
464
|
-
return H && r(U, "'with' in strict mode"),
|
|
465
|
-
case
|
|
466
|
-
return
|
|
467
|
-
case
|
|
468
|
-
return
|
|
464
|
+
return H && r(U, "'with' in strict mode"), O(), l.object = be(), l.body = Y(), k(l, "WithStatement");
|
|
465
|
+
case Me:
|
|
466
|
+
return Ie();
|
|
467
|
+
case re:
|
|
468
|
+
return O(), k(l, "EmptyStatement");
|
|
469
469
|
default:
|
|
470
|
-
if (u = J, x = $(), i === we && x.type === "Identifier" &&
|
|
470
|
+
if (u = J, x = $(), i === we && x.type === "Identifier" && N(Be)) {
|
|
471
471
|
for (p = 0; p < B.length; ++p)
|
|
472
472
|
B[p].name === u && r(x.start, "Label '" + u + "' is already declared");
|
|
473
473
|
return B.push({
|
|
474
474
|
name: u,
|
|
475
|
-
kind: S.W ? "loop" : S ===
|
|
476
|
-
}), l.body = Y(), B.pop(), l.label = x,
|
|
475
|
+
kind: S.W ? "loop" : S === jt ? "switch" : null
|
|
476
|
+
}), l.body = Y(), B.pop(), l.label = x, k(l, "LabeledStatement");
|
|
477
477
|
}
|
|
478
|
-
return l.la = x, ge(),
|
|
478
|
+
return l.la = x, ge(), k(l, "ExpressionStatement");
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
M(
|
|
481
|
+
function be() {
|
|
482
|
+
M(te);
|
|
483
483
|
var i = $();
|
|
484
|
-
return M(
|
|
484
|
+
return M(z), i;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Ie(i) {
|
|
487
487
|
var l = _(), u = !0, p = !1;
|
|
488
|
-
for (l.body = [], M(
|
|
488
|
+
for (l.body = [], M(Me); !N(Se); ) {
|
|
489
489
|
var x = Y();
|
|
490
|
-
if (l.body.push(x), u && i &&
|
|
490
|
+
if (l.body.push(x), u && i && ut(x)) {
|
|
491
491
|
var F = p;
|
|
492
|
-
|
|
492
|
+
he(p = !0);
|
|
493
493
|
}
|
|
494
494
|
u = !1;
|
|
495
495
|
}
|
|
496
|
-
return p && !F &&
|
|
496
|
+
return p && !F && he(!1), k(l, "BlockStatement");
|
|
497
497
|
}
|
|
498
|
-
function
|
|
499
|
-
return i.ua = l, M(
|
|
498
|
+
function ct(i, l) {
|
|
499
|
+
return i.ua = l, M(re), i.test = S === re ? null : $(), M(re), i.update = S === z ? null : $(), M(z), i.body = Y(), B.pop(), k(i, "ForStatement");
|
|
500
500
|
}
|
|
501
501
|
function rr(i, l) {
|
|
502
|
-
return i.left = l, i.right = $(), M(
|
|
502
|
+
return i.left = l, i.right = $(), M(z), i.body = Y(), B.pop(), k(i, "ForInStatement");
|
|
503
503
|
}
|
|
504
504
|
function nr(i, l) {
|
|
505
505
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
506
506
|
var u = _();
|
|
507
|
-
if (u.id =
|
|
507
|
+
if (u.id = q(), H && qe(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = N(Ar) ? $(!0, l) : null, i.fa.push(k(u, "VariableDeclarator")), !N(ce))
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
function $(i, l) {
|
|
512
|
-
var u =
|
|
513
|
-
if (!i && S ===
|
|
514
|
-
for (i =
|
|
515
|
-
i.xb.push(
|
|
516
|
-
return
|
|
512
|
+
var u = ft(l);
|
|
513
|
+
if (!i && S === ce) {
|
|
514
|
+
for (i = le(u), i.xb = [u]; N(ce); )
|
|
515
|
+
i.xb.push(ft(l));
|
|
516
|
+
return k(i, "SequenceExpression");
|
|
517
517
|
}
|
|
518
518
|
return u;
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
var l =
|
|
522
|
-
if (
|
|
523
|
-
var u =
|
|
524
|
-
u.test = l, u.da = $(!0), M(
|
|
520
|
+
function ft(i) {
|
|
521
|
+
var l = pt(ht(), -1, i);
|
|
522
|
+
if (N(jr)) {
|
|
523
|
+
var u = le(l);
|
|
524
|
+
u.test = l, u.da = $(!0), M(Be), u.alternate = $(!0, i), l = k(u, "ConditionalExpression");
|
|
525
525
|
}
|
|
526
|
-
return S.Cb ? (u =
|
|
526
|
+
return S.Cb ? (u = le(l), u.operator = J, u.left = l, O(), u.right = ft(i), Ye(l), k(u, "AssignmentExpression")) : l;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function pt(i, l, u) {
|
|
529
529
|
var p = S.L;
|
|
530
|
-
if (p !== null && (!u || S !==
|
|
531
|
-
var x =
|
|
532
|
-
return x.left = i, x.operator = J, i = S,
|
|
530
|
+
if (p !== null && (!u || S !== Qe) && p > l) {
|
|
531
|
+
var x = le(i);
|
|
532
|
+
return x.left = i, x.operator = J, i = S, O(), x.right = pt(ht(), p, u), p = k(x, i === Ir || i === Tr ? "LogicalExpression" : "BinaryExpression"), pt(p, l, u);
|
|
533
533
|
}
|
|
534
534
|
return i;
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function ht() {
|
|
537
537
|
if (S.prefix) {
|
|
538
538
|
var i = _(), l = S.$b;
|
|
539
|
-
return i.operator = J,
|
|
539
|
+
return i.operator = J, Pe = i.prefix = !0, O(), i.K = ht(), l ? Ye(i.K) : H && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), k(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
540
540
|
}
|
|
541
|
-
for (l =
|
|
542
|
-
i =
|
|
541
|
+
for (l = Te(Ze()); S.cc && !Je(); )
|
|
542
|
+
i = le(l), i.operator = J, i.prefix = !1, i.K = l, Ye(l), O(), l = k(i, "UpdateExpression");
|
|
543
543
|
return l;
|
|
544
544
|
}
|
|
545
|
-
function
|
|
546
|
-
if (
|
|
547
|
-
var u =
|
|
548
|
-
return u.object = i, u.Wa =
|
|
545
|
+
function Te(i, l) {
|
|
546
|
+
if (N(Cr)) {
|
|
547
|
+
var u = le(i);
|
|
548
|
+
return u.object = i, u.Wa = q(!0), u.bb = !1, Te(k(u, "MemberExpression"), l);
|
|
549
549
|
}
|
|
550
|
-
return
|
|
550
|
+
return N(bt) ? (u = le(i), u.object = i, u.Wa = $(), u.bb = !0, M(It), Te(k(u, "MemberExpression"), l)) : !l && N(te) ? (u = le(i), u.callee = i, u.arguments = dt(z, !1), Te(k(u, "CallExpression"), l)) : i;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Ze() {
|
|
553
553
|
switch (S) {
|
|
554
554
|
case Sr:
|
|
555
555
|
var i = _();
|
|
556
|
-
return
|
|
556
|
+
return O(), k(i, "ThisExpression");
|
|
557
557
|
case we:
|
|
558
|
-
return
|
|
559
|
-
case
|
|
560
|
-
case
|
|
558
|
+
return q();
|
|
559
|
+
case Re:
|
|
560
|
+
case ze:
|
|
561
561
|
case ir:
|
|
562
|
-
return i = _(), i.value = J, i.raw = d.slice(U, me),
|
|
562
|
+
return i = _(), i.value = J, i.raw = d.slice(U, me), O(), k(i, "Literal");
|
|
563
563
|
case xr:
|
|
564
564
|
case kr:
|
|
565
565
|
case Er:
|
|
566
|
-
return i = _(), i.value = S.$a, i.raw = S.l,
|
|
567
|
-
case
|
|
568
|
-
i =
|
|
566
|
+
return i = _(), i.value = S.$a, i.raw = S.l, O(), k(i, "Literal");
|
|
567
|
+
case te:
|
|
568
|
+
i = vt;
|
|
569
569
|
var l = U;
|
|
570
|
-
|
|
570
|
+
O();
|
|
571
571
|
var u = $();
|
|
572
|
-
return u.start = l, u.end = me,
|
|
573
|
-
case
|
|
574
|
-
return i = _(),
|
|
575
|
-
case
|
|
576
|
-
for (i = _(), l = !0, u = !1, i.h = [],
|
|
572
|
+
return u.start = l, u.end = me, C.C && (u.X.start = i, u.X.end = mt), C.Xa && (u.j = [l, me]), M(z), u;
|
|
573
|
+
case bt:
|
|
574
|
+
return i = _(), O(), i.elements = dt(It, !0, !0), k(i, "ArrayExpression");
|
|
575
|
+
case Me:
|
|
576
|
+
for (i = _(), l = !0, u = !1, i.h = [], O(); !N(Se); ) {
|
|
577
577
|
if (l)
|
|
578
578
|
l = !1;
|
|
579
|
-
else if (M(
|
|
579
|
+
else if (M(ce), C.sb && N(Se))
|
|
580
580
|
break;
|
|
581
581
|
var p = {
|
|
582
|
-
key: S ===
|
|
582
|
+
key: S === Re || S === ze ? Ze() : q(!0)
|
|
583
583
|
}, x = !1;
|
|
584
|
-
if (
|
|
584
|
+
if (N(Be)) {
|
|
585
585
|
p.value = $(!0);
|
|
586
586
|
var F = p.kind = "init";
|
|
587
587
|
} else
|
|
588
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ?
|
|
588
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? Q() : (x = u = !0, F = p.kind = p.key.name, p.key = S === Re || S === ze ? Ze() : q(!0), S !== te && Q(), p.value = gt(_(), !1));
|
|
589
589
|
if (p.key.type === "Identifier" && (H || u))
|
|
590
590
|
for (var G = 0; G < i.h.length; ++G) {
|
|
591
591
|
var ke = i.h[G];
|
|
592
592
|
if (ke.key.name === p.key.name) {
|
|
593
|
-
var
|
|
594
|
-
|
|
593
|
+
var Pt = F === ke.kind || x && ke.kind === "init" || F === "init" && (ke.kind === "get" || ke.kind === "set");
|
|
594
|
+
Pt && !H && F === "init" && ke.kind === "init" && (Pt = !1), Pt && r(p.key.start, "Redefinition of property");
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
i.h.push(p);
|
|
598
598
|
}
|
|
599
|
-
return
|
|
600
|
-
case
|
|
601
|
-
return i = _(),
|
|
599
|
+
return k(i, "ObjectExpression");
|
|
600
|
+
case Ct:
|
|
601
|
+
return i = _(), O(), gt(i, !1);
|
|
602
602
|
case wr:
|
|
603
|
-
return i = _(),
|
|
603
|
+
return i = _(), O(), i.callee = Te(Ze(), !0), i.arguments = N(te) ? dt(z, !1) : sn, k(i, "NewExpression");
|
|
604
604
|
}
|
|
605
|
-
|
|
605
|
+
Q();
|
|
606
606
|
}
|
|
607
|
-
function
|
|
608
|
-
S === we ? i.id =
|
|
607
|
+
function gt(i, l) {
|
|
608
|
+
S === we ? i.id = q() : l ? Q() : i.id = null, i.oa = [];
|
|
609
609
|
var u = !0;
|
|
610
|
-
for (M(
|
|
611
|
-
u ? u = !1 : M(
|
|
612
|
-
u =
|
|
610
|
+
for (M(te); !N(z); )
|
|
611
|
+
u ? u = !1 : M(ce), i.oa.push(q());
|
|
612
|
+
u = Ne;
|
|
613
613
|
var p = B;
|
|
614
|
-
if (
|
|
614
|
+
if (Ne = !0, B = [], i.body = Ie(!0), Ne = u, B = p, H || i.body.body.length && ut(i.body.body[0])) {
|
|
615
615
|
for (u = i.id ? -1 : 0; u < i.oa.length; ++u)
|
|
616
|
-
if (p = 0 > u ? i.id : i.oa[u], (
|
|
616
|
+
if (p = 0 > u ? i.id : i.oa[u], (Pr(p.name) || qe(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= u)
|
|
617
617
|
for (var x = 0; x < u; ++x)
|
|
618
618
|
p.name === i.oa[x].name && r(p.start, "Argument name clash in strict mode");
|
|
619
619
|
}
|
|
620
|
-
return
|
|
620
|
+
return k(i, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
for (var p = [], x = !0; !
|
|
622
|
+
function dt(i, l, u) {
|
|
623
|
+
for (var p = [], x = !0; !N(i); ) {
|
|
624
624
|
if (x)
|
|
625
625
|
x = !1;
|
|
626
|
-
else if (M(
|
|
626
|
+
else if (M(ce), l && C.sb && N(i))
|
|
627
627
|
break;
|
|
628
|
-
p.push(u && S ===
|
|
628
|
+
p.push(u && S === ce ? null : $(!0));
|
|
629
629
|
}
|
|
630
630
|
return p;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function q(i) {
|
|
633
633
|
var l = _();
|
|
634
|
-
return i &&
|
|
634
|
+
return i && C.yb === "everywhere" && (i = !1), S === we ? (!i && (C.yb && vn(J) || H && Pr(J)) && d.slice(U, me).indexOf("\\") === -1 && r(U, "The keyword '" + J + "' is reserved"), l.name = J) : i && S.l ? l.name = S.l : Q(), Pe = !1, O(), k(l, "Identifier");
|
|
635
635
|
}
|
|
636
636
|
e.version = "0.5.0";
|
|
637
|
-
var
|
|
637
|
+
var C, d = "", ve, yt;
|
|
638
638
|
e.parse = function(i, l) {
|
|
639
|
-
d = String(i), ve = d.length,
|
|
639
|
+
d = String(i), ve = d.length, C = l || {};
|
|
640
640
|
for (var u in or)
|
|
641
|
-
Object.prototype.hasOwnProperty.call(
|
|
642
|
-
for (
|
|
643
|
-
u = Y(), i.body.push(u), l &&
|
|
644
|
-
return
|
|
641
|
+
Object.prototype.hasOwnProperty.call(C, u) || (C[u] = or[u]);
|
|
642
|
+
for (yt = C.sourceFile, de = 1, c = ee = 0, Pe = !0, g(), u = C.dc, wt = ue = c, C.C && (St = new s()), Ne = H = !1, B = [], E(), i = u || _(), l = !0, u || (i.body = []); S !== xt; )
|
|
643
|
+
u = Y(), i.body.push(u), l && ut(u) && he(!0), l = !1;
|
|
644
|
+
return k(i, "Program");
|
|
645
645
|
};
|
|
646
646
|
var or = {
|
|
647
647
|
fc: !1,
|
|
@@ -654,19 +654,19 @@ var b, Mn = function(e) {
|
|
|
654
654
|
dc: null,
|
|
655
655
|
sourceFile: null,
|
|
656
656
|
vb: null
|
|
657
|
-
}, c = 0, U = 0, me = 0,
|
|
657
|
+
}, c = 0, U = 0, me = 0, vt, mt, S, J, Pe, de, ee, wt = 0, ue = 0, St, Ne, B, H, sn = [], Re = {
|
|
658
658
|
type: "num"
|
|
659
659
|
}, ir = {
|
|
660
660
|
type: "regexp"
|
|
661
|
-
},
|
|
661
|
+
}, ze = {
|
|
662
662
|
type: "string"
|
|
663
663
|
}, we = {
|
|
664
664
|
type: "name"
|
|
665
|
-
},
|
|
665
|
+
}, xt = {
|
|
666
666
|
type: "eof"
|
|
667
|
-
},
|
|
667
|
+
}, kt = {
|
|
668
668
|
l: "break"
|
|
669
|
-
},
|
|
669
|
+
}, Et = {
|
|
670
670
|
l: "case",
|
|
671
671
|
m: !0
|
|
672
672
|
}, sr = {
|
|
@@ -688,23 +688,23 @@ var b, Mn = function(e) {
|
|
|
688
688
|
}, hr = {
|
|
689
689
|
l: "for",
|
|
690
690
|
W: !0
|
|
691
|
-
},
|
|
691
|
+
}, Ct = {
|
|
692
692
|
l: "function"
|
|
693
693
|
}, gr = {
|
|
694
694
|
l: "if"
|
|
695
695
|
}, dr = {
|
|
696
696
|
l: "return",
|
|
697
697
|
m: !0
|
|
698
|
-
},
|
|
698
|
+
}, jt = {
|
|
699
699
|
l: "switch"
|
|
700
700
|
}, yr = {
|
|
701
701
|
l: "throw",
|
|
702
702
|
m: !0
|
|
703
703
|
}, vr = {
|
|
704
704
|
l: "try"
|
|
705
|
-
},
|
|
705
|
+
}, Ot = {
|
|
706
706
|
l: "var"
|
|
707
|
-
},
|
|
707
|
+
}, At = {
|
|
708
708
|
l: "while",
|
|
709
709
|
W: !0
|
|
710
710
|
}, mr = {
|
|
@@ -723,13 +723,13 @@ var b, Mn = function(e) {
|
|
|
723
723
|
}, Er = {
|
|
724
724
|
l: "false",
|
|
725
725
|
$a: !1
|
|
726
|
-
},
|
|
726
|
+
}, Qe = {
|
|
727
727
|
l: "in",
|
|
728
728
|
L: 7,
|
|
729
729
|
m: !0
|
|
730
730
|
}, an = {
|
|
731
|
-
break:
|
|
732
|
-
case:
|
|
731
|
+
break: kt,
|
|
732
|
+
case: Et,
|
|
733
733
|
catch: sr,
|
|
734
734
|
continue: ar,
|
|
735
735
|
debugger: lr,
|
|
@@ -738,20 +738,20 @@ var b, Mn = function(e) {
|
|
|
738
738
|
else: fr,
|
|
739
739
|
finally: pr,
|
|
740
740
|
for: hr,
|
|
741
|
-
function:
|
|
741
|
+
function: Ct,
|
|
742
742
|
if: gr,
|
|
743
743
|
return: dr,
|
|
744
|
-
switch:
|
|
744
|
+
switch: jt,
|
|
745
745
|
throw: yr,
|
|
746
746
|
try: vr,
|
|
747
|
-
var:
|
|
748
|
-
while:
|
|
747
|
+
var: Ot,
|
|
748
|
+
while: At,
|
|
749
749
|
with: mr,
|
|
750
750
|
null: xr,
|
|
751
751
|
true: kr,
|
|
752
752
|
false: Er,
|
|
753
753
|
new: wr,
|
|
754
|
-
in:
|
|
754
|
+
in: Qe,
|
|
755
755
|
instanceof: {
|
|
756
756
|
l: "instanceof",
|
|
757
757
|
L: 7,
|
|
@@ -773,28 +773,28 @@ var b, Mn = function(e) {
|
|
|
773
773
|
prefix: !0,
|
|
774
774
|
m: !0
|
|
775
775
|
}
|
|
776
|
-
},
|
|
776
|
+
}, bt = {
|
|
777
777
|
type: "[",
|
|
778
778
|
m: !0
|
|
779
|
-
},
|
|
779
|
+
}, It = {
|
|
780
780
|
type: "]"
|
|
781
|
-
},
|
|
781
|
+
}, Me = {
|
|
782
782
|
type: "{",
|
|
783
783
|
m: !0
|
|
784
784
|
}, Se = {
|
|
785
785
|
type: "}"
|
|
786
|
-
},
|
|
786
|
+
}, te = {
|
|
787
787
|
type: "(",
|
|
788
788
|
m: !0
|
|
789
|
-
},
|
|
789
|
+
}, z = {
|
|
790
790
|
type: ")"
|
|
791
|
-
},
|
|
791
|
+
}, ce = {
|
|
792
792
|
type: ",",
|
|
793
793
|
m: !0
|
|
794
|
-
},
|
|
794
|
+
}, re = {
|
|
795
795
|
type: ";",
|
|
796
796
|
m: !0
|
|
797
|
-
},
|
|
797
|
+
}, Be = {
|
|
798
798
|
type: ":",
|
|
799
799
|
m: !0
|
|
800
800
|
}, Cr = {
|
|
@@ -815,10 +815,10 @@ var b, Mn = function(e) {
|
|
|
815
815
|
cc: !0,
|
|
816
816
|
prefix: !0,
|
|
817
817
|
$b: !0
|
|
818
|
-
},
|
|
818
|
+
}, br = {
|
|
819
819
|
prefix: !0,
|
|
820
820
|
m: !0
|
|
821
|
-
},
|
|
821
|
+
}, Ir = {
|
|
822
822
|
L: 1,
|
|
823
823
|
m: !0
|
|
824
824
|
}, Tr = {
|
|
@@ -849,13 +849,13 @@ var b, Mn = function(e) {
|
|
|
849
849
|
}, yn = {
|
|
850
850
|
L: 10,
|
|
851
851
|
m: !0
|
|
852
|
-
}, vn = o("class enum extends super const export import"),
|
|
852
|
+
}, vn = o("class enum extends super const export import"), Pr = o("implements interface let package private protected public static yield"), qe = o("eval arguments"), mn = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), wn = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Nr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Sn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), et = /[\n\r\u2028\u2029]/, tt = /\r\n|[\n\r\u2028\u2029]/g, xe, Tt = {
|
|
853
853
|
kind: "loop"
|
|
854
854
|
}, xn = {
|
|
855
855
|
kind: "switch"
|
|
856
856
|
};
|
|
857
|
-
},
|
|
858
|
-
Mn(
|
|
857
|
+
}, Ut = Ut = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
858
|
+
Mn(Ut.j || (Ut.j = {}));
|
|
859
859
|
function h(e, t) {
|
|
860
860
|
typeof e == "string" && (e = je(e, "code"));
|
|
861
861
|
var n = e.constructor;
|
|
@@ -871,13 +871,13 @@ function h(e, t) {
|
|
|
871
871
|
var s, a;
|
|
872
872
|
for (a in this)
|
|
873
873
|
typeof this[a] == "function" && (s = a.match(e)) && (this.rb[s[1]] = this[a].bind(this));
|
|
874
|
-
this.N =
|
|
875
|
-
`), "polyfills"), this.ba = void 0,
|
|
874
|
+
this.N = Lt(this, this.ra, null), this.Na = this.N.object, this.ra = je(this.ba.join(`
|
|
875
|
+
`), "polyfills"), this.ba = void 0, st(this.ra), s = new v(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra = r, s = new v(this.ra, this.N), s.done = !1, this.o.length = 0, this.o[0] = s;
|
|
876
876
|
}
|
|
877
877
|
var Mr = {
|
|
878
878
|
C: !0,
|
|
879
879
|
kc: 5
|
|
880
|
-
},
|
|
880
|
+
}, _t = {
|
|
881
881
|
configurable: !0,
|
|
882
882
|
enumerable: !0,
|
|
883
883
|
writable: !1
|
|
@@ -889,7 +889,7 @@ var Mr = {
|
|
|
889
889
|
configurable: !0,
|
|
890
890
|
enumerable: !1,
|
|
891
891
|
writable: !1
|
|
892
|
-
},
|
|
892
|
+
}, De = {
|
|
893
893
|
configurable: !1,
|
|
894
894
|
enumerable: !1,
|
|
895
895
|
writable: !1
|
|
@@ -901,50 +901,50 @@ var Mr = {
|
|
|
901
901
|
STEP_ERROR: !0
|
|
902
902
|
}, Ae = {
|
|
903
903
|
SCOPE_REFERENCE: !0
|
|
904
|
-
},
|
|
904
|
+
}, Ve = {
|
|
905
905
|
VALUE_IN_DESCRIPTOR: !0
|
|
906
906
|
}, Ee = {
|
|
907
907
|
REGEXP_TIMEOUT: !0
|
|
908
|
-
}, Dr = [],
|
|
909
|
-
function
|
|
908
|
+
}, Dr = [], ie = null, We = null, fe = typeof globalThis == "undefined" ? void 0 : globalThis, Bn = ["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();", "};"];
|
|
909
|
+
function Wt(e) {
|
|
910
910
|
var t = e >>> 0;
|
|
911
911
|
return t === Number(e) ? t : NaN;
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function $e(e) {
|
|
914
914
|
var t = e >>> 0;
|
|
915
915
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function st(e, t, n) {
|
|
918
918
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
919
919
|
for (var r in e)
|
|
920
920
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
921
921
|
var o = e[r];
|
|
922
|
-
o && typeof o == "object" &&
|
|
922
|
+
o && typeof o == "object" && st(o, t, n);
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
h.prototype.REGEXP_MODE = 2;
|
|
926
926
|
h.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
927
927
|
h.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
928
|
+
I = h.prototype;
|
|
929
|
+
I.P = !1;
|
|
930
|
+
I.Ka = !1;
|
|
931
|
+
I.Kb = 0;
|
|
932
|
+
I.ic = 0;
|
|
933
933
|
function je(e, t) {
|
|
934
934
|
var n = {}, r;
|
|
935
935
|
for (r in Mr)
|
|
936
936
|
n[r] = Mr[r];
|
|
937
|
-
return n.sourceFile = t,
|
|
937
|
+
return n.sourceFile = t, fe.j.parse(e, n);
|
|
938
938
|
}
|
|
939
|
-
|
|
939
|
+
I.Jb = function(e) {
|
|
940
940
|
var t = this.o[0];
|
|
941
941
|
if (!t || t.node.type !== "Program")
|
|
942
942
|
throw Error("Expecting original AST to start with a Program node");
|
|
943
943
|
if (typeof e == "string" && (e = je(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
944
944
|
throw Error("Expecting new AST to start with a Program node");
|
|
945
|
-
|
|
945
|
+
Xe(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
946
946
|
};
|
|
947
|
-
|
|
947
|
+
I.lb = function() {
|
|
948
948
|
var e = this.o, t;
|
|
949
949
|
do {
|
|
950
950
|
var n = e[e.length - 1];
|
|
@@ -964,15 +964,15 @@ b.lb = function() {
|
|
|
964
964
|
break;
|
|
965
965
|
}
|
|
966
966
|
r = n.node;
|
|
967
|
-
var o =
|
|
968
|
-
|
|
967
|
+
var o = We;
|
|
968
|
+
We = this;
|
|
969
969
|
try {
|
|
970
970
|
var s = this.rb[r.type](e, n, r);
|
|
971
971
|
} catch (a) {
|
|
972
972
|
if (a !== Yr)
|
|
973
973
|
throw this.value !== a && (this.value = void 0), a;
|
|
974
974
|
} finally {
|
|
975
|
-
|
|
975
|
+
We = o;
|
|
976
976
|
}
|
|
977
977
|
if (s && e.push(s), this.P)
|
|
978
978
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -982,13 +982,13 @@ b.lb = function() {
|
|
|
982
982
|
} while (!r.end && t > Date.now());
|
|
983
983
|
return !0;
|
|
984
984
|
};
|
|
985
|
-
|
|
985
|
+
I.Eb = function() {
|
|
986
986
|
for (; !this.za && this.lb(); )
|
|
987
987
|
;
|
|
988
988
|
return this.za;
|
|
989
989
|
};
|
|
990
990
|
function Dn(e, t) {
|
|
991
|
-
e.g(t, "NaN", NaN,
|
|
991
|
+
e.g(t, "NaN", NaN, De), e.g(t, "Infinity", 1 / 0, De), e.g(t, "undefined", void 0, De), e.g(t, "window", t, _t), e.g(t, "this", t, De), e.g(t, "self", t), e.M = new A(null), e.Z = new A(e.M), Un(e, t), Fn(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Ln(e, t), _n(e, t), Wn(e, t), $n(e, t), Gn(e, t), Vn(e, t), Xn(e, t), Hn(e, t), Kn(e, t);
|
|
992
992
|
var n = e.i(function() {
|
|
993
993
|
throw EvalError("Can't happen");
|
|
994
994
|
}, !1);
|
|
@@ -1013,7 +1013,7 @@ function Dn(e, t) {
|
|
|
1013
1013
|
Fr(e, s);
|
|
1014
1014
|
}, e.g(t, "clearInterval", e.i(n, !1), y), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1015
1015
|
}
|
|
1016
|
-
|
|
1016
|
+
I.Wb = 0;
|
|
1017
1017
|
function Un(e, t) {
|
|
1018
1018
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1019
1019
|
var s = arguments.length ? String(arguments[arguments.length - 1]) : "", a = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1026,11 +1026,11 @@ function Un(e, t) {
|
|
|
1026
1026
|
a = a.join(", ");
|
|
1027
1027
|
}
|
|
1028
1028
|
try {
|
|
1029
|
-
var
|
|
1030
|
-
} catch (
|
|
1031
|
-
m(e, e.T, "Invalid code: " +
|
|
1029
|
+
var j = je("(function(" + a + ") {" + s + "})", "function" + e.Wb++);
|
|
1030
|
+
} catch (E) {
|
|
1031
|
+
m(e, e.T, "Invalid code: " + E.message);
|
|
1032
1032
|
}
|
|
1033
|
-
return
|
|
1033
|
+
return j.body.length !== 1 && m(e, e.T, "Invalid code in function body"), Vt(e, j.body[0].la, e.N, "anonymous");
|
|
1034
1034
|
};
|
|
1035
1035
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1036
1036
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, X), e.Z.H = "Function", r = function(o, s) {
|
|
@@ -1054,28 +1054,28 @@ function Fn(e, t) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
var r = function(o) {
|
|
1056
1056
|
if (o == null)
|
|
1057
|
-
return
|
|
1057
|
+
return ae(e) ? this : e.s(e.M);
|
|
1058
1058
|
if (!(o instanceof A)) {
|
|
1059
|
-
var s = e.s(
|
|
1059
|
+
var s = e.s(se(e, o));
|
|
1060
1060
|
return s.data = o, s;
|
|
1061
1061
|
}
|
|
1062
1062
|
return o;
|
|
1063
1063
|
};
|
|
1064
1064
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), r = function(o) {
|
|
1065
|
-
return n(o),
|
|
1065
|
+
return n(o), oe(e, Object.getOwnPropertyNames(o instanceof A ? o.h : o));
|
|
1066
1066
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1067
|
-
return n(o), o instanceof A && (o = o.h),
|
|
1067
|
+
return n(o), o instanceof A && (o = o.h), oe(e, Object.keys(o));
|
|
1068
1068
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1069
1069
|
return o === null ? e.s(null) : (o instanceof A || m(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1070
1070
|
}, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, s, a) {
|
|
1071
|
-
return s = String(s), o instanceof A || m(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof A || m(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || m(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s,
|
|
1071
|
+
return s = String(s), o instanceof A || m(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof A || m(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || m(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s, Ve, a.h), o;
|
|
1072
1072
|
}, e.g(e.v, "defineProperty", e.i(r, !1), y), 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;", "}", "});", ""), r = function(o, s) {
|
|
1073
1073
|
if (o instanceof A || m(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), s = String(s), s in o.h) {
|
|
1074
1074
|
var a = Object.getOwnPropertyDescriptor(o.h, s), f = o.V[s];
|
|
1075
1075
|
return o = o.Y[s], s = e.s(e.M), f || o ? (e.g(s, "get", f), e.g(s, "set", o)) : (e.g(s, "value", a.value), e.g(s, "writable", a.writable)), e.g(s, "configurable", a.configurable), e.g(s, "enumerable", a.enumerable), s;
|
|
1076
1076
|
}
|
|
1077
1077
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), y), r = function(o) {
|
|
1078
|
-
return n(o),
|
|
1078
|
+
return n(o), se(e, o);
|
|
1079
1079
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
|
|
1080
1080
|
return !!o && !o.preventExtensions;
|
|
1081
1081
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
@@ -1086,7 +1086,7 @@ function Fn(e, t) {
|
|
|
1086
1086
|
return n(this), this instanceof A ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1087
1087
|
}, L(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1088
1088
|
for (; ; ) {
|
|
1089
|
-
if (o =
|
|
1089
|
+
if (o = se(e, o), !o)
|
|
1090
1090
|
return !1;
|
|
1091
1091
|
if (o === this)
|
|
1092
1092
|
return !0;
|
|
@@ -1095,9 +1095,9 @@ function Fn(e, t) {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
function Ln(e, t) {
|
|
1097
1097
|
var n = function(r) {
|
|
1098
|
-
var o =
|
|
1098
|
+
var o = ae(e) ? this : Oe(e), s = arguments[0];
|
|
1099
1099
|
if (arguments.length === 1 && typeof s == "number")
|
|
1100
|
-
isNaN(
|
|
1100
|
+
isNaN(Wt(s)) && m(e, e.ob, "Invalid array length: " + s), o.h.length = s;
|
|
1101
1101
|
else {
|
|
1102
1102
|
for (s = 0; s < arguments.length; s++)
|
|
1103
1103
|
o.h[s] = arguments[s];
|
|
@@ -1115,7 +1115,7 @@ function Ln(e, t) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
function _n(e, t) {
|
|
1117
1117
|
var n = function(r) {
|
|
1118
|
-
return r = arguments.length ?
|
|
1118
|
+
return r = arguments.length ? fe.String(r) : "", ae(e) ? (this.data = r, this) : r;
|
|
1119
1119
|
};
|
|
1120
1120
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1121
1121
|
L(e, e.J, t[n], String.prototype[t[n]]);
|
|
@@ -1128,85 +1128,85 @@ function _n(e, t) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
}, L(e, e.J, "localeCompare", n), n = function(r, o, s) {
|
|
1130
1130
|
var a = String(this);
|
|
1131
|
-
if (o = o ? Number(o) : void 0, W(e, r, e.I) && (r = r.data,
|
|
1132
|
-
if (
|
|
1133
|
-
r =
|
|
1131
|
+
if (o = o ? Number(o) : void 0, W(e, r, e.I) && (r = r.data, Fe(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1132
|
+
if (ie)
|
|
1133
|
+
r = Ue(e, "string.split(separator, limit)", {
|
|
1134
1134
|
string: a,
|
|
1135
1135
|
separator: r,
|
|
1136
1136
|
limit: o
|
|
1137
|
-
}, r, s), r !== Ee && s(
|
|
1137
|
+
}, r, s), r !== Ee && s(oe(e, r));
|
|
1138
1138
|
else {
|
|
1139
|
-
var f = e.ha(), g =
|
|
1140
|
-
f.onmessage = function(
|
|
1141
|
-
clearTimeout(g), s(
|
|
1139
|
+
var f = e.ha(), g = Le(e, r, f, s);
|
|
1140
|
+
f.onmessage = function(j) {
|
|
1141
|
+
clearTimeout(g), s(oe(e, j.data));
|
|
1142
1142
|
}, f.postMessage(["split", a, r, o]);
|
|
1143
1143
|
}
|
|
1144
1144
|
return;
|
|
1145
1145
|
}
|
|
1146
|
-
r = a.split(r, o), s(
|
|
1147
|
-
},
|
|
1146
|
+
r = a.split(r, o), s(oe(e, r));
|
|
1147
|
+
}, _e(e, e.J, "split", n), n = function(r, o) {
|
|
1148
1148
|
var s = String(this);
|
|
1149
|
-
if (r = W(e, r, e.I) ? r.data : new RegExp(r),
|
|
1150
|
-
if (
|
|
1151
|
-
r =
|
|
1149
|
+
if (r = W(e, r, e.I) ? r.data : new RegExp(r), Fe(e, r, o), e.REGEXP_MODE === 2)
|
|
1150
|
+
if (ie)
|
|
1151
|
+
r = Ue(e, "string.match(regexp)", {
|
|
1152
1152
|
string: s,
|
|
1153
1153
|
regexp: r
|
|
1154
|
-
}, r, o), r !== Ee && o(r &&
|
|
1154
|
+
}, r, o), r !== Ee && o(r && oe(e, r));
|
|
1155
1155
|
else {
|
|
1156
|
-
var a = e.ha(), f =
|
|
1156
|
+
var a = e.ha(), f = Le(e, r, a, o);
|
|
1157
1157
|
a.onmessage = function(g) {
|
|
1158
|
-
clearTimeout(f), o(g.data &&
|
|
1158
|
+
clearTimeout(f), o(g.data && oe(e, g.data));
|
|
1159
1159
|
}, a.postMessage(["match", s, r]);
|
|
1160
1160
|
}
|
|
1161
1161
|
else
|
|
1162
|
-
r = s.match(r), o(r &&
|
|
1163
|
-
},
|
|
1162
|
+
r = s.match(r), o(r && oe(e, r));
|
|
1163
|
+
}, _e(e, e.J, "match", n), n = function(r, o) {
|
|
1164
1164
|
var s = String(this);
|
|
1165
|
-
if (W(e, r, e.I) ? r = r.data : r = new RegExp(r),
|
|
1166
|
-
if (
|
|
1167
|
-
r =
|
|
1165
|
+
if (W(e, r, e.I) ? r = r.data : r = new RegExp(r), Fe(e, r, o), e.REGEXP_MODE === 2)
|
|
1166
|
+
if (ie)
|
|
1167
|
+
r = Ue(e, "string.search(regexp)", {
|
|
1168
1168
|
string: s,
|
|
1169
1169
|
regexp: r
|
|
1170
1170
|
}, r, o), r !== Ee && o(r);
|
|
1171
1171
|
else {
|
|
1172
|
-
var a = e.ha(), f =
|
|
1172
|
+
var a = e.ha(), f = Le(e, r, a, o);
|
|
1173
1173
|
a.onmessage = function(g) {
|
|
1174
1174
|
clearTimeout(f), o(g.data);
|
|
1175
1175
|
}, a.postMessage(["search", s, r]);
|
|
1176
1176
|
}
|
|
1177
1177
|
else
|
|
1178
1178
|
o(s.search(r));
|
|
1179
|
-
},
|
|
1179
|
+
}, _e(e, e.J, "search", n), n = function(r, o, s) {
|
|
1180
1180
|
var a = String(this);
|
|
1181
|
-
if (o = String(o), W(e, r, e.I) && (r = r.data,
|
|
1182
|
-
if (
|
|
1183
|
-
r =
|
|
1181
|
+
if (o = String(o), W(e, r, e.I) && (r = r.data, Fe(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1182
|
+
if (ie)
|
|
1183
|
+
r = Ue(e, "string.replace(substr, newSubstr)", {
|
|
1184
1184
|
string: a,
|
|
1185
1185
|
substr: r,
|
|
1186
1186
|
newSubstr: o
|
|
1187
1187
|
}, r, s), r !== Ee && s(r);
|
|
1188
1188
|
else {
|
|
1189
|
-
var f = e.ha(), g =
|
|
1190
|
-
f.onmessage = function(
|
|
1191
|
-
clearTimeout(g), s(
|
|
1189
|
+
var f = e.ha(), g = Le(e, r, f, s);
|
|
1190
|
+
f.onmessage = function(j) {
|
|
1191
|
+
clearTimeout(g), s(j.data);
|
|
1192
1192
|
}, f.postMessage(["replace", a, r, o]);
|
|
1193
1193
|
}
|
|
1194
1194
|
return;
|
|
1195
1195
|
}
|
|
1196
1196
|
s(a.replace(r, o));
|
|
1197
|
-
},
|
|
1197
|
+
}, _e(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1198
1198
|
}
|
|
1199
1199
|
function Wn(e, t) {
|
|
1200
1200
|
e.mb = e.i(function(n) {
|
|
1201
|
-
return n =
|
|
1201
|
+
return n = fe.Boolean(n), ae(e) ? (this.data = n, this) : n;
|
|
1202
1202
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1203
1203
|
}
|
|
1204
1204
|
function $n(e, t) {
|
|
1205
1205
|
var n = function(r) {
|
|
1206
|
-
return r = arguments.length ?
|
|
1206
|
+
return r = arguments.length ? fe.Number(r) : 0, ae(e) ? (this.data = r, this) : r;
|
|
1207
1207
|
};
|
|
1208
1208
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1209
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1209
|
+
e.g(e.aa, t[n], Number[t[n]], De);
|
|
1210
1210
|
n = function(r) {
|
|
1211
1211
|
try {
|
|
1212
1212
|
return Number(this).toExponential(r);
|
|
@@ -1242,10 +1242,10 @@ function $n(e, t) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
function Gn(e, t) {
|
|
1244
1244
|
var n = function(o, s) {
|
|
1245
|
-
if (!
|
|
1246
|
-
return
|
|
1245
|
+
if (!ae(e))
|
|
1246
|
+
return fe.Date();
|
|
1247
1247
|
var a = [null].concat(Array.from(arguments));
|
|
1248
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1248
|
+
return this.data = new (Function.prototype.bind.apply(fe.Date, a))(), this;
|
|
1249
1249
|
};
|
|
1250
1250
|
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, y), e.g(e.$, "now", e.i(Date.now, !1), y), e.g(e.$, "parse", e.i(Date.parse, !1), y), e.g(e.$, "UTC", e.i(Date.UTC, !1), y), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1251
1251
|
for (var r = 0; r < t.length; r++)
|
|
@@ -1261,7 +1261,7 @@ function Gn(e, t) {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
function Vn(e, t) {
|
|
1263
1263
|
var n = function(r, o) {
|
|
1264
|
-
if (
|
|
1264
|
+
if (ae(e))
|
|
1265
1265
|
var s = this;
|
|
1266
1266
|
else {
|
|
1267
1267
|
if (o === void 0 && W(e, r, e.I))
|
|
@@ -1270,48 +1270,48 @@ function Vn(e, t) {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || m(e, e.T, "Invalid regexp flag: " + o);
|
|
1272
1272
|
try {
|
|
1273
|
-
var a = new
|
|
1273
|
+
var a = new fe.RegExp(r, o);
|
|
1274
1274
|
} catch (f) {
|
|
1275
1275
|
m(e, e.T, f.message);
|
|
1276
1276
|
}
|
|
1277
|
-
return
|
|
1277
|
+
return $t(e, s, a), s;
|
|
1278
1278
|
};
|
|
1279
1279
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, X), e.g(e.I.h.prototype, "ignoreCase", void 0, X), e.g(e.I.h.prototype, "multiline", void 0, X), e.g(e.I.h.prototype, "source", "(?:)", X), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1280
|
-
function s(
|
|
1281
|
-
if (
|
|
1282
|
-
var w =
|
|
1283
|
-
return e.g(w, "index",
|
|
1280
|
+
function s(E) {
|
|
1281
|
+
if (E) {
|
|
1282
|
+
var w = oe(e, E);
|
|
1283
|
+
return e.g(w, "index", E.index), e.g(w, "input", E.input), w;
|
|
1284
1284
|
}
|
|
1285
1285
|
return null;
|
|
1286
1286
|
}
|
|
1287
1287
|
var a = this.data;
|
|
1288
|
-
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1289
|
-
if (
|
|
1290
|
-
r =
|
|
1288
|
+
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")), Fe(e, a, o), e.REGEXP_MODE === 2)
|
|
1289
|
+
if (ie)
|
|
1290
|
+
r = Ue(e, "regexp.exec(string)", {
|
|
1291
1291
|
string: r,
|
|
1292
1292
|
regexp: a
|
|
1293
1293
|
}, a, o), r !== Ee && (e.g(this, "lastIndex", a.lastIndex), o(s(r)));
|
|
1294
1294
|
else {
|
|
1295
|
-
var f = e.ha(), g =
|
|
1296
|
-
f.onmessage = function(
|
|
1297
|
-
clearTimeout(g), e.g(
|
|
1295
|
+
var f = e.ha(), g = Le(e, a, f, o), j = this;
|
|
1296
|
+
f.onmessage = function(E) {
|
|
1297
|
+
clearTimeout(g), e.g(j, "lastIndex", E.data[1]), o(s(E.data[0]));
|
|
1298
1298
|
}, f.postMessage(["exec", a, a.lastIndex, r]);
|
|
1299
1299
|
}
|
|
1300
1300
|
else
|
|
1301
1301
|
r = a.exec(r), e.g(this, "lastIndex", a.lastIndex), o(s(r));
|
|
1302
|
-
},
|
|
1302
|
+
}, _e(e, e.I, "exec", n);
|
|
1303
1303
|
}
|
|
1304
1304
|
function Xn(e, t) {
|
|
1305
1305
|
function n(r) {
|
|
1306
1306
|
var o = e.i(function(s) {
|
|
1307
|
-
var a =
|
|
1308
|
-
return
|
|
1307
|
+
var a = ae(e) ? this : e.Aa(o);
|
|
1308
|
+
return Ft(e, a, s), a;
|
|
1309
1309
|
}, !0);
|
|
1310
1310
|
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
|
|
1311
1311
|
}
|
|
1312
1312
|
e.D = e.i(function(r) {
|
|
1313
|
-
var o =
|
|
1314
|
-
return
|
|
1313
|
+
var o = ae(e) ? this : e.Aa(e.D);
|
|
1314
|
+
return Ft(e, o, r), o;
|
|
1315
1315
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1316
1316
|
}
|
|
1317
1317
|
function Hn(e, t) {
|
|
@@ -1349,17 +1349,17 @@ function W(e, t, n) {
|
|
|
1349
1349
|
return !1;
|
|
1350
1350
|
if (n = n.h.prototype, t === n)
|
|
1351
1351
|
return !0;
|
|
1352
|
-
for (t =
|
|
1352
|
+
for (t = se(e, t); t; ) {
|
|
1353
1353
|
if (t === n)
|
|
1354
1354
|
return !0;
|
|
1355
1355
|
t = t.xa;
|
|
1356
1356
|
}
|
|
1357
1357
|
return !1;
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1359
|
+
function $t(e, t, n) {
|
|
1360
1360
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, X), e.g(t, "global", n.global, X), e.g(t, "ignoreCase", n.ignoreCase, X), e.g(t, "multiline", n.multiline, X);
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function Ft(e, t, n) {
|
|
1363
1363
|
n && e.g(t, "message", String(n), y), n = [];
|
|
1364
1364
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1365
1365
|
var o = e.o[r], s = o.node;
|
|
@@ -1376,44 +1376,44 @@ function _t(e, t, n) {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
e.g(t, "stack", s.trim(), y);
|
|
1378
1378
|
}
|
|
1379
|
-
|
|
1379
|
+
I.ha = function() {
|
|
1380
1380
|
var e = this.ha.Mb;
|
|
1381
1381
|
return e || (e = new Blob([Bn.join(`
|
|
1382
1382
|
`)], {
|
|
1383
1383
|
type: "application/javascript"
|
|
1384
1384
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1385
1385
|
};
|
|
1386
|
-
function
|
|
1386
|
+
function Ue(e, t, n, r, o) {
|
|
1387
1387
|
var s = {
|
|
1388
1388
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1389
1389
|
};
|
|
1390
1390
|
try {
|
|
1391
|
-
return
|
|
1391
|
+
return ie.runInNewContext(t, n, s);
|
|
1392
1392
|
} catch {
|
|
1393
1393
|
o(null), m(e, e.D, "RegExp Timeout: " + r);
|
|
1394
1394
|
}
|
|
1395
1395
|
return Ee;
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Fe(e, t, n) {
|
|
1398
1398
|
if (e.REGEXP_MODE === 0)
|
|
1399
1399
|
var r = !1;
|
|
1400
1400
|
else if (e.REGEXP_MODE === 1)
|
|
1401
1401
|
r = !0;
|
|
1402
|
-
else if (
|
|
1402
|
+
else if (ie)
|
|
1403
1403
|
r = !0;
|
|
1404
1404
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1405
1405
|
r = !0;
|
|
1406
1406
|
else if (typeof require == "function") {
|
|
1407
1407
|
try {
|
|
1408
|
-
|
|
1408
|
+
ie = require("vm");
|
|
1409
1409
|
} catch {
|
|
1410
1410
|
}
|
|
1411
|
-
r = !!
|
|
1411
|
+
r = !!ie;
|
|
1412
1412
|
} else
|
|
1413
1413
|
r = !1;
|
|
1414
1414
|
r || (n(null), m(e, e.D, "Regular expressions not supported: " + t));
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1416
|
+
function Le(e, t, n, r) {
|
|
1417
1417
|
return setTimeout(function() {
|
|
1418
1418
|
n.terminate(), r(null);
|
|
1419
1419
|
try {
|
|
@@ -1422,10 +1422,10 @@ function We(e, t, n, r) {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1424
1424
|
}
|
|
1425
|
-
|
|
1425
|
+
I.Aa = function(e) {
|
|
1426
1426
|
return this.s(e && e.h.prototype);
|
|
1427
1427
|
};
|
|
1428
|
-
|
|
1428
|
+
I.s = function(e) {
|
|
1429
1429
|
if (typeof e != "object")
|
|
1430
1430
|
throw Error("Non object prototype");
|
|
1431
1431
|
return e = new A(e), W(this, e, this.D) && (e.H = "Error"), e;
|
|
@@ -1438,29 +1438,29 @@ function Oe(e) {
|
|
|
1438
1438
|
writable: !0
|
|
1439
1439
|
}), t.H = "Array", t;
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function Gt(e, t, n) {
|
|
1442
1442
|
var r = e.s(e.Z);
|
|
1443
1443
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, X), r.H = "Function", r;
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1446
|
-
var o =
|
|
1445
|
+
function Vt(e, t, n, r) {
|
|
1446
|
+
var o = Gt(e, t.oa.length, !0);
|
|
1447
1447
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", X), o;
|
|
1448
1448
|
}
|
|
1449
|
-
|
|
1450
|
-
return t =
|
|
1449
|
+
I.i = function(e, t) {
|
|
1450
|
+
return t = Gt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, X), t;
|
|
1451
1451
|
};
|
|
1452
|
-
|
|
1453
|
-
var t =
|
|
1452
|
+
I.ub = function(e) {
|
|
1453
|
+
var t = Gt(this, e.length, !0);
|
|
1454
1454
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, X), t;
|
|
1455
1455
|
};
|
|
1456
|
-
|
|
1456
|
+
I.Ia = function(e) {
|
|
1457
1457
|
if (e instanceof A)
|
|
1458
1458
|
throw Error("Object is already pseudo");
|
|
1459
1459
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1460
1460
|
return e;
|
|
1461
1461
|
if (e instanceof RegExp) {
|
|
1462
1462
|
var t = this.s(this.Ma);
|
|
1463
|
-
return
|
|
1463
|
+
return $t(this, t, e), t;
|
|
1464
1464
|
}
|
|
1465
1465
|
if (e instanceof Date)
|
|
1466
1466
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1484,7 +1484,7 @@ b.Ia = function(e) {
|
|
|
1484
1484
|
this.g(t, r, this.Ia(e[r]));
|
|
1485
1485
|
return t;
|
|
1486
1486
|
};
|
|
1487
|
-
|
|
1487
|
+
I.R = function(e, t) {
|
|
1488
1488
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1489
1489
|
return e;
|
|
1490
1490
|
if (!(e instanceof A))
|
|
@@ -1503,7 +1503,7 @@ b.R = function(e, t) {
|
|
|
1503
1503
|
if (t.hb.push(e), W(this, e, this.qa)) {
|
|
1504
1504
|
n = [], t.Sa.push(n);
|
|
1505
1505
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1506
|
-
|
|
1506
|
+
at(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1507
1507
|
} else
|
|
1508
1508
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1509
1509
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1514,7 +1514,7 @@ b.R = function(e, t) {
|
|
|
1514
1514
|
});
|
|
1515
1515
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1516
1516
|
};
|
|
1517
|
-
function
|
|
1517
|
+
function oe(e, t) {
|
|
1518
1518
|
for (var n = Oe(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1519
1519
|
e.g(n, r[o], t[r[o]]);
|
|
1520
1520
|
return n;
|
|
@@ -1523,9 +1523,9 @@ function Zr(e, t) {
|
|
|
1523
1523
|
var n = [], r;
|
|
1524
1524
|
for (r in t.h)
|
|
1525
1525
|
n[r] = e.G(t, r);
|
|
1526
|
-
return n.length =
|
|
1526
|
+
return n.length = Wt(e.G(t, "length")) || 0, n;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function se(e, t) {
|
|
1529
1529
|
switch (typeof t) {
|
|
1530
1530
|
case "number":
|
|
1531
1531
|
return e.aa.h.prototype;
|
|
@@ -1536,7 +1536,7 @@ function le(e, t) {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
return t ? t.xa : null;
|
|
1538
1538
|
}
|
|
1539
|
-
|
|
1539
|
+
I.G = function(e, t) {
|
|
1540
1540
|
if (this.P)
|
|
1541
1541
|
throw Error("Getter not supported in that context");
|
|
1542
1542
|
if (t = String(t), e != null || m(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof A))
|
|
@@ -1545,41 +1545,41 @@ b.G = function(e, t) {
|
|
|
1545
1545
|
if (W(this, e, this.J))
|
|
1546
1546
|
return String(e).length;
|
|
1547
1547
|
} else if (64 > t.charCodeAt(0) && W(this, e, this.J)) {
|
|
1548
|
-
var n =
|
|
1548
|
+
var n = $e(t);
|
|
1549
1549
|
if (!isNaN(n) && n < String(e).length)
|
|
1550
1550
|
return String(e)[n];
|
|
1551
1551
|
}
|
|
1552
1552
|
do
|
|
1553
1553
|
if (e.h && t in e.h)
|
|
1554
1554
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1555
|
-
while (e =
|
|
1555
|
+
while (e = se(this, e));
|
|
1556
1556
|
};
|
|
1557
|
-
function
|
|
1557
|
+
function at(e, t, n) {
|
|
1558
1558
|
if (!(t instanceof A))
|
|
1559
1559
|
throw TypeError("Primitive data type has no properties");
|
|
1560
1560
|
if (n = String(n), n === "length" && W(e, t, e.J))
|
|
1561
1561
|
return !0;
|
|
1562
1562
|
if (W(e, t, e.J)) {
|
|
1563
|
-
var r =
|
|
1563
|
+
var r = $e(n);
|
|
1564
1564
|
if (!isNaN(r) && r < String(t).length)
|
|
1565
1565
|
return !0;
|
|
1566
1566
|
}
|
|
1567
1567
|
do
|
|
1568
1568
|
if (t.h && n in t.h)
|
|
1569
1569
|
return !0;
|
|
1570
|
-
while (t =
|
|
1570
|
+
while (t = se(e, t));
|
|
1571
1571
|
return !1;
|
|
1572
1572
|
}
|
|
1573
|
-
|
|
1573
|
+
I.g = function(e, t, n, r) {
|
|
1574
1574
|
if (this.Ka)
|
|
1575
1575
|
throw Error("Setter not supported in that context");
|
|
1576
1576
|
if (t = String(t), e != null || m(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof A))
|
|
1577
1577
|
throw TypeError("Expecting native value or pseudo object");
|
|
1578
1578
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && m(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1579
|
-
var o = !this.o ||
|
|
1579
|
+
var o = !this.o || Xt(this).S;
|
|
1580
1580
|
if (e instanceof A) {
|
|
1581
1581
|
if (W(this, e, this.J)) {
|
|
1582
|
-
var s =
|
|
1582
|
+
var s = $e(t);
|
|
1583
1583
|
if (t === "length" || !isNaN(s) && s < String(e).length) {
|
|
1584
1584
|
o && m(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1585
1585
|
return;
|
|
@@ -1592,16 +1592,16 @@ b.g = function(e, t, n, r) {
|
|
|
1592
1592
|
return;
|
|
1593
1593
|
n = r.value;
|
|
1594
1594
|
}
|
|
1595
|
-
if (n =
|
|
1595
|
+
if (n = Wt(n), isNaN(n) && m(this, this.ob, "Invalid array length"), n < s)
|
|
1596
1596
|
for (a in e.h) {
|
|
1597
|
-
var a =
|
|
1597
|
+
var a = $e(a);
|
|
1598
1598
|
!isNaN(a) && n <= a && delete e.h[a];
|
|
1599
1599
|
}
|
|
1600
1600
|
} else
|
|
1601
|
-
isNaN(a =
|
|
1601
|
+
isNaN(a = $e(t)) || (e.h.length = Math.max(s, a + 1));
|
|
1602
1602
|
if (!e.preventExtensions || t in e.h)
|
|
1603
1603
|
if (r) {
|
|
1604
|
-
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !==
|
|
1604
|
+
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Ve && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
1605
1605
|
try {
|
|
1606
1606
|
Object.defineProperty(e.h, t, o);
|
|
1607
1607
|
} catch {
|
|
@@ -1609,10 +1609,10 @@ b.g = function(e, t, n, r) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1611
1611
|
} else {
|
|
1612
|
-
if (n ===
|
|
1612
|
+
if (n === Ve)
|
|
1613
1613
|
throw ReferenceError("Value not specified");
|
|
1614
1614
|
for (r = e; !(t in r.h); )
|
|
1615
|
-
if (r =
|
|
1615
|
+
if (r = se(this, r), !r) {
|
|
1616
1616
|
r = e;
|
|
1617
1617
|
break;
|
|
1618
1618
|
}
|
|
@@ -1632,24 +1632,24 @@ b.g = function(e, t, n, r) {
|
|
|
1632
1632
|
} else
|
|
1633
1633
|
o && m(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1634
1634
|
};
|
|
1635
|
-
|
|
1635
|
+
I.g.ac = function() {
|
|
1636
1636
|
throw Error("Placeholder getter");
|
|
1637
1637
|
};
|
|
1638
|
-
|
|
1638
|
+
I.g.bc = function() {
|
|
1639
1639
|
throw Error("Placeholder setter");
|
|
1640
1640
|
};
|
|
1641
1641
|
function L(e, t, n, r) {
|
|
1642
1642
|
e.g(t.h.prototype, n, e.i(r, !1), y);
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1644
|
+
function _e(e, t, n, r) {
|
|
1645
1645
|
e.g(t.h.prototype, n, e.ub(r), y);
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1647
|
+
function Xt(e) {
|
|
1648
1648
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1649
1649
|
throw Error("No scope found");
|
|
1650
1650
|
return e;
|
|
1651
1651
|
}
|
|
1652
|
-
function
|
|
1652
|
+
function Lt(e, t, n) {
|
|
1653
1653
|
var r = !1;
|
|
1654
1654
|
if (n && n.S)
|
|
1655
1655
|
r = !0;
|
|
@@ -1657,25 +1657,25 @@ function Wt(e, t, n) {
|
|
|
1657
1657
|
var o = t.body && t.body[0];
|
|
1658
1658
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1659
1659
|
}
|
|
1660
|
-
return o = e.s(null), r = new qr(n, r, o), n || Dn(e, r.object),
|
|
1660
|
+
return o = e.s(null), r = new qr(n, r, o), n || Dn(e, r.object), Xe(e, t, r), r;
|
|
1661
1661
|
}
|
|
1662
|
-
function
|
|
1662
|
+
function Ht(e, t, n) {
|
|
1663
1663
|
if (!t)
|
|
1664
1664
|
throw Error("parentScope required");
|
|
1665
1665
|
return e = n || e.s(null), new qr(t, t.S, e);
|
|
1666
1666
|
}
|
|
1667
|
-
function
|
|
1668
|
-
for (var n =
|
|
1667
|
+
function Kt(e, t) {
|
|
1668
|
+
for (var n = Xt(e); n && n !== e.N; ) {
|
|
1669
1669
|
if (t in n.object.h)
|
|
1670
1670
|
return n.object.h[t];
|
|
1671
1671
|
n = n.Va;
|
|
1672
1672
|
}
|
|
1673
|
-
if (n === e.N &&
|
|
1673
|
+
if (n === e.N && at(e, n.object, t))
|
|
1674
1674
|
return e.G(n.object, t);
|
|
1675
1675
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || m(e, e.pb, t + " is not defined");
|
|
1676
1676
|
}
|
|
1677
1677
|
function zr(e, t, n) {
|
|
1678
|
-
for (var r =
|
|
1678
|
+
for (var r = Xt(e), o = r.S; r && r !== e.N; ) {
|
|
1679
1679
|
if (t in r.object.h) {
|
|
1680
1680
|
try {
|
|
1681
1681
|
r.object.h[t] = n;
|
|
@@ -1686,11 +1686,11 @@ function zr(e, t, n) {
|
|
|
1686
1686
|
}
|
|
1687
1687
|
r = r.Va;
|
|
1688
1688
|
}
|
|
1689
|
-
if (r === e.N && (!o ||
|
|
1689
|
+
if (r === e.N && (!o || at(e, r.object, t)))
|
|
1690
1690
|
return e.g(r.object, t, n);
|
|
1691
1691
|
m(e, e.pb, t + " is not defined");
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function Xe(e, t, n) {
|
|
1694
1694
|
if (t.jb)
|
|
1695
1695
|
var r = t.jb;
|
|
1696
1696
|
else {
|
|
@@ -1723,12 +1723,12 @@ function Je(e, t, n) {
|
|
|
1723
1723
|
if (Array.isArray(f)) {
|
|
1724
1724
|
for (o = 0; o < f.length; o++)
|
|
1725
1725
|
if (f[o] && f[o].constructor === s) {
|
|
1726
|
-
var g =
|
|
1726
|
+
var g = Xe(e, f[o], n);
|
|
1727
1727
|
for (a in g)
|
|
1728
1728
|
r[a] = g[a];
|
|
1729
1729
|
}
|
|
1730
1730
|
} else if (f.constructor === s)
|
|
1731
|
-
for (a in g =
|
|
1731
|
+
for (a in g = Xe(e, f, n), g)
|
|
1732
1732
|
r[a] = g[a];
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
@@ -1736,22 +1736,22 @@ function Je(e, t, n) {
|
|
|
1736
1736
|
t.jb = r;
|
|
1737
1737
|
}
|
|
1738
1738
|
for (a in r)
|
|
1739
|
-
r[a] === !0 ? e.g(n.object, a, void 0, Br) : e.g(n.object, a,
|
|
1739
|
+
r[a] === !0 ? e.g(n.object, a, void 0, Br) : e.g(n.object, a, Vt(e, r[a], n), Br);
|
|
1740
1740
|
return r;
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function ae(e) {
|
|
1743
1743
|
return e.o[e.o.length - 1].isConstructor;
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1746
|
-
return t[0] === Ae ?
|
|
1745
|
+
function Jt(e, t) {
|
|
1746
|
+
return t[0] === Ae ? Kt(e, t[1]) : e.G(t[0], t[1]);
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function Yt(e, t, n) {
|
|
1749
1749
|
return t[0] === Ae ? zr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1750
1750
|
}
|
|
1751
1751
|
function m(e, t, n) {
|
|
1752
|
-
throw e.N ? (n !== void 0 && t instanceof A && (t = e.Aa(t),
|
|
1752
|
+
throw e.N ? (n !== void 0 && t instanceof A && (t = e.Aa(t), Ft(e, t, n)), He(e, 4, t), Yr) : n === void 0 ? t : n;
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function He(e, t, n, r) {
|
|
1755
1755
|
if (t === 0)
|
|
1756
1756
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1757
1757
|
var o = e.o;
|
|
@@ -1837,10 +1837,10 @@ function Ur(e, t, n) {
|
|
|
1837
1837
|
} else {
|
|
1838
1838
|
try {
|
|
1839
1839
|
var g = je(String(s), "taskCode" + e.ic++);
|
|
1840
|
-
} catch (
|
|
1841
|
-
m(e, e.T, "Invalid code: " +
|
|
1840
|
+
} catch (j) {
|
|
1841
|
+
m(e, e.T, "Invalid code: " + j.message);
|
|
1842
1842
|
}
|
|
1843
|
-
a.type = "EvalProgram_", a.body = g.body, r = r.node.arguments[0],
|
|
1843
|
+
a.type = "EvalProgram_", a.body = g.body, r = r.node.arguments[0], st(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1844
1844
|
}
|
|
1845
1845
|
return t = new Jn(f, o, r, a, t ? n : -1), Qr(e, t, n), t.Db;
|
|
1846
1846
|
}
|
|
@@ -1856,30 +1856,30 @@ function Fr(e, t) {
|
|
|
1856
1856
|
break;
|
|
1857
1857
|
}
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1859
|
+
function Ke(e, t, n) {
|
|
1860
1860
|
if (!e.P)
|
|
1861
1861
|
throw Error("Unexpected call to createGetter");
|
|
1862
1862
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1863
1863
|
var r = e.ya();
|
|
1864
1864
|
return r.type = "CallExpression", e = new v(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1866
|
+
function Zt(e, t, n, r) {
|
|
1867
1867
|
if (!e.Ka)
|
|
1868
1868
|
throw Error("Unexpected call to createSetter");
|
|
1869
1869
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1870
1870
|
var o = e.ya();
|
|
1871
1871
|
return o.type = "CallExpression", e = new v(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1874
|
-
return t == null ? e.Na : t instanceof A ? t : (e = e.s(
|
|
1873
|
+
function Rt(e, t) {
|
|
1874
|
+
return t == null ? e.Na : t instanceof A ? t : (e = e.s(se(e, t)), e.data = t, e);
|
|
1875
1875
|
}
|
|
1876
|
-
|
|
1876
|
+
I.Xb = function() {
|
|
1877
1877
|
return this.N;
|
|
1878
1878
|
};
|
|
1879
|
-
|
|
1879
|
+
I.Yb = function() {
|
|
1880
1880
|
return this.o;
|
|
1881
1881
|
};
|
|
1882
|
-
|
|
1882
|
+
I.ec = function(e) {
|
|
1883
1883
|
this.o = e;
|
|
1884
1884
|
};
|
|
1885
1885
|
function v(e, t) {
|
|
@@ -1891,12 +1891,12 @@ function qr(e, t, n) {
|
|
|
1891
1891
|
function A(e) {
|
|
1892
1892
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1893
1893
|
}
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
if (!
|
|
1894
|
+
I = A.prototype;
|
|
1895
|
+
I.xa = null;
|
|
1896
|
+
I.H = "Object";
|
|
1897
|
+
I.data = null;
|
|
1898
|
+
I.toString = function() {
|
|
1899
|
+
if (!We)
|
|
1900
1900
|
return "[object Interpreter.Object]";
|
|
1901
1901
|
if (!(this instanceof A))
|
|
1902
1902
|
return String(this);
|
|
@@ -1943,8 +1943,8 @@ b.toString = function() {
|
|
|
1943
1943
|
}
|
|
1944
1944
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1945
1945
|
};
|
|
1946
|
-
|
|
1947
|
-
return !
|
|
1946
|
+
I.valueOf = function() {
|
|
1947
|
+
return !We || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1948
1948
|
};
|
|
1949
1949
|
function Jn(e, t, n, r, o) {
|
|
1950
1950
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Yn, this.time = 0;
|
|
@@ -1964,7 +1964,7 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1964
1964
|
if (!t.ja)
|
|
1965
1965
|
return t.ja = !0, t = new v(n.left, t.scope), t.sa = !0, t;
|
|
1966
1966
|
if (!t.Da)
|
|
1967
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
1967
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Jt(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ke(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new v(n.right, t.scope));
|
|
1968
1968
|
if (t.ta)
|
|
1969
1969
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1970
1970
|
else {
|
|
@@ -2009,8 +2009,8 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2009
2009
|
default:
|
|
2010
2010
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2011
2011
|
}
|
|
2012
|
-
if (n =
|
|
2013
|
-
return t.ta = !0, t.ib = r,
|
|
2012
|
+
if (n = Yt(this, t.Fa, r))
|
|
2013
|
+
return t.ta = !0, t.ib = r, Zt(this, n, t.Fa, r);
|
|
2014
2014
|
e.pop(), e[e.length - 1].value = r;
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
@@ -2080,7 +2080,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2080
2080
|
n = r >>> t;
|
|
2081
2081
|
break;
|
|
2082
2082
|
case "in":
|
|
2083
|
-
t instanceof A || m(this, this.j, "'in' expects an object, not '" + t + "'"), n =
|
|
2083
|
+
t instanceof A || m(this, this.j, "'in' expects an object, not '" + t + "'"), n = at(this, t, r);
|
|
2084
2084
|
break;
|
|
2085
2085
|
case "instanceof":
|
|
2086
2086
|
W(this, t, this.O) || m(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof A ? W(this, r, t) : !1;
|
|
@@ -2097,7 +2097,7 @@ h.prototype.stepBlockStatement = function(e, t, n) {
|
|
|
2097
2097
|
e.pop();
|
|
2098
2098
|
};
|
|
2099
2099
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
2100
|
-
|
|
2100
|
+
He(this, 1, void 0, n.label && n.label.name);
|
|
2101
2101
|
};
|
|
2102
2102
|
h.prototype.Hb = 0;
|
|
2103
2103
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
@@ -2110,8 +2110,8 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2110
2110
|
t.ia = 2;
|
|
2111
2111
|
var o = t.value;
|
|
2112
2112
|
if (Array.isArray(o)) {
|
|
2113
|
-
if (t.U =
|
|
2114
|
-
return t.ia = 1,
|
|
2113
|
+
if (t.U = Jt(this, o), o[0] === Ae ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2114
|
+
return t.ia = 1, Ke(this, o, t.value);
|
|
2115
2115
|
} else
|
|
2116
2116
|
t.U = o;
|
|
2117
2117
|
t.F = [], t.A = 0;
|
|
@@ -2134,11 +2134,11 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2134
2134
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2135
2135
|
else {
|
|
2136
2136
|
if (t.eb = !0, o instanceof A || m(this, this.j, V(this, n.callee) + " is not a function"), e = o.node) {
|
|
2137
|
-
for (n =
|
|
2137
|
+
for (n = Lt(this, e.body, o.Va), r = Oe(this), o = 0; o < t.F.length; o++)
|
|
2138
2138
|
this.g(r, o, t.F[o]);
|
|
2139
2139
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2140
2140
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2141
|
-
return n.S || (t.B =
|
|
2141
|
+
return n.S || (t.B = Rt(this, t.B)), this.g(n.object, "this", t.B, _t), t.value = void 0, new v(e.body, n);
|
|
2142
2142
|
}
|
|
2143
2143
|
if (o.eval)
|
|
2144
2144
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2149,15 +2149,15 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2149
2149
|
} catch (f) {
|
|
2150
2150
|
m(this, this.T, "Invalid code: " + f.message);
|
|
2151
2151
|
}
|
|
2152
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2152
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, st(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Lt(this, r, n) : Xe(this, r, n), this.value = void 0, new v(o, n);
|
|
2153
2153
|
}
|
|
2154
2154
|
else if (o.Ta)
|
|
2155
|
-
t.scope.S || (t.B =
|
|
2155
|
+
t.scope.S || (t.B = Rt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2156
2156
|
else if (o.Za) {
|
|
2157
2157
|
var a = this;
|
|
2158
2158
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(f) {
|
|
2159
2159
|
t.value = f, a.za = !1;
|
|
2160
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2160
|
+
}), this.za = !0, t.scope.S || (t.B = Rt(this, t.B)), o.Za.apply(t.B, r);
|
|
2161
2161
|
} else
|
|
2162
2162
|
m(this, this.j, V(this, n.callee) + " is not callable");
|
|
2163
2163
|
}
|
|
@@ -2176,7 +2176,7 @@ h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
|
2176
2176
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2177
2177
|
};
|
|
2178
2178
|
h.prototype.stepContinueStatement = function(e, t, n) {
|
|
2179
|
-
|
|
2179
|
+
He(this, 2, void 0, n.label && n.label.name);
|
|
2180
2180
|
};
|
|
2181
2181
|
h.prototype.stepDebuggerStatement = function(e) {
|
|
2182
2182
|
e.pop();
|
|
@@ -2228,7 +2228,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2228
2228
|
break e;
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
|
-
if (t.u =
|
|
2231
|
+
if (t.u = se(this, t.u), t.wa = null, t.u === null) {
|
|
2232
2232
|
e.pop();
|
|
2233
2233
|
return;
|
|
2234
2234
|
}
|
|
@@ -2238,8 +2238,8 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2238
2238
|
t.pa = [Ae, e.fa[0].id.name];
|
|
2239
2239
|
else
|
|
2240
2240
|
return t.pa = null, t = new v(e, t.scope), t.sa = !0, t;
|
|
2241
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2242
|
-
return
|
|
2241
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = Yt(this, t.pa, e)))
|
|
2242
|
+
return Zt(this, r, t.pa, e);
|
|
2243
2243
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2244
2244
|
return new v(n.body, t.scope);
|
|
2245
2245
|
};
|
|
@@ -2268,14 +2268,14 @@ h.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2268
2268
|
e.pop();
|
|
2269
2269
|
};
|
|
2270
2270
|
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2271
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2271
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Ht(this, e)), t.value = Vt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, _t);
|
|
2272
2272
|
};
|
|
2273
2273
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2274
2274
|
if (e.pop(), t.sa)
|
|
2275
2275
|
e[e.length - 1].value = [Ae, n.name];
|
|
2276
2276
|
else {
|
|
2277
|
-
if (t =
|
|
2278
|
-
return
|
|
2277
|
+
if (t = Kt(this, n.name), this.P)
|
|
2278
|
+
return Ke(this, t, this.Na);
|
|
2279
2279
|
e[e.length - 1].value = t;
|
|
2280
2280
|
}
|
|
2281
2281
|
};
|
|
@@ -2284,7 +2284,7 @@ h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2284
2284
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new v(n.body, t.scope), t.labels = e, t;
|
|
2285
2285
|
};
|
|
2286
2286
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2287
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2287
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), $t(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2288
2288
|
};
|
|
2289
2289
|
h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2290
2290
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2312,7 +2312,7 @@ h.prototype.stepMemberExpression = function(e, t, n) {
|
|
|
2312
2312
|
e[e.length - 1].value = [t.u, n];
|
|
2313
2313
|
else {
|
|
2314
2314
|
if (n = this.G(t.u, n), this.P)
|
|
2315
|
-
return
|
|
2315
|
+
return Ke(this, n, t.u);
|
|
2316
2316
|
e[e.length - 1].value = n;
|
|
2317
2317
|
}
|
|
2318
2318
|
};
|
|
@@ -2335,7 +2335,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2335
2335
|
return t.Pa = s, new v(o.value, t.scope);
|
|
2336
2336
|
}
|
|
2337
2337
|
for (a in t.Ja)
|
|
2338
|
-
n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a,
|
|
2338
|
+
n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a, Ve, {
|
|
2339
2339
|
configurable: !0,
|
|
2340
2340
|
enumerable: !0,
|
|
2341
2341
|
get: n.get,
|
|
@@ -2351,7 +2351,7 @@ h.prototype.stepProgram = function(e, t, n) {
|
|
|
2351
2351
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2352
2352
|
if (n.K && !t.ka)
|
|
2353
2353
|
return t.ka = !0, new v(n.K, t.scope);
|
|
2354
|
-
|
|
2354
|
+
He(this, 3, t.value);
|
|
2355
2355
|
};
|
|
2356
2356
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2357
2357
|
var r = t.A || 0;
|
|
@@ -2387,7 +2387,7 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
};
|
|
2389
2389
|
h.prototype.stepThisExpression = function(e) {
|
|
2390
|
-
e.pop(), e[e.length - 1].value =
|
|
2390
|
+
e.pop(), e[e.length - 1].value = Kt(this, "this");
|
|
2391
2391
|
};
|
|
2392
2392
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2393
2393
|
if (t.ka)
|
|
@@ -2399,10 +2399,10 @@ h.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2399
2399
|
if (!t.Rb)
|
|
2400
2400
|
return t.Rb = !0, new v(n.block, t.scope);
|
|
2401
2401
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2402
|
-
return t.Tb = !0, e =
|
|
2402
|
+
return t.Tb = !0, e = Ht(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new v(n.Ea.body, e);
|
|
2403
2403
|
if (!t.Sb && n.fb)
|
|
2404
2404
|
return t.Sb = !0, new v(n.fb, t.scope);
|
|
2405
|
-
e.pop(), t.ea &&
|
|
2405
|
+
e.pop(), t.ea && He(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2406
2406
|
};
|
|
2407
2407
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2408
2408
|
if (!t.ka)
|
|
@@ -2449,9 +2449,9 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2449
2449
|
if (!t.ja)
|
|
2450
2450
|
return t.ja = !0, e = new v(n.K, t.scope), e.sa = !0, e;
|
|
2451
2451
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2452
|
-
var r =
|
|
2452
|
+
var r = Jt(this, t.Ga);
|
|
2453
2453
|
if (t.ma = r, this.P)
|
|
2454
|
-
return t.Ba = !0,
|
|
2454
|
+
return t.Ba = !0, Ke(this, r, t.Ga);
|
|
2455
2455
|
}
|
|
2456
2456
|
if (t.ta)
|
|
2457
2457
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
@@ -2462,8 +2462,8 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2462
2462
|
o = r - 1;
|
|
2463
2463
|
else
|
|
2464
2464
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2465
|
-
if (n = n.prefix ? o : r, r =
|
|
2466
|
-
return t.ta = !0, t.ib = n,
|
|
2465
|
+
if (n = n.prefix ? o : r, r = Yt(this, t.Ga, o))
|
|
2466
|
+
return t.ta = !0, t.ib = n, Zt(this, r, t.Ga, o);
|
|
2467
2467
|
e.pop(), e[e.length - 1].value = n;
|
|
2468
2468
|
}
|
|
2469
2469
|
};
|
|
@@ -2478,10 +2478,10 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2478
2478
|
e.pop();
|
|
2479
2479
|
};
|
|
2480
2480
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2481
|
-
return t.Ca ? (e.pop(), e =
|
|
2481
|
+
return t.Ca ? (e.pop(), e = Ht(this, t.scope, t.value), new v(n.body, e)) : (t.Ca = !0, new v(n.object, t.scope));
|
|
2482
2482
|
};
|
|
2483
2483
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2484
|
-
|
|
2484
|
+
fe.Interpreter = h;
|
|
2485
2485
|
h.prototype.step = h.prototype.lb;
|
|
2486
2486
|
h.prototype.run = h.prototype.Eb;
|
|
2487
2487
|
h.prototype.appendCode = h.prototype.Jb;
|
|
@@ -2496,7 +2496,7 @@ h.prototype.pseudoToNative = h.prototype.R;
|
|
|
2496
2496
|
h.prototype.getGlobalScope = h.prototype.Xb;
|
|
2497
2497
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2498
2498
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2499
|
-
h.VALUE_IN_DESCRIPTOR =
|
|
2499
|
+
h.VALUE_IN_DESCRIPTOR = Ve;
|
|
2500
2500
|
const Zn = (e) => e.split(`
|
|
2501
2501
|
`).map((t) => {
|
|
2502
2502
|
const n = t.trim();
|
|
@@ -2527,52 +2527,52 @@ const Zn = (e) => e.split(`
|
|
|
2527
2527
|
context: t,
|
|
2528
2528
|
event: n,
|
|
2529
2529
|
state: f
|
|
2530
|
-
}),
|
|
2531
|
-
const D = Lr(
|
|
2532
|
-
return `var ${
|
|
2530
|
+
}), j = g.map(([b]) => {
|
|
2531
|
+
const D = Lr(b);
|
|
2532
|
+
return `var ${b} = ${D} === undefined ? undefined : JSON.parse(${D});`;
|
|
2533
2533
|
}).join(`
|
|
2534
|
-
`),
|
|
2535
|
-
if (
|
|
2536
|
-
|
|
2534
|
+
`), E = Zn(a);
|
|
2535
|
+
if (E === "") {
|
|
2536
|
+
nt.warn("Skipping evaluation of empty code block.");
|
|
2537
2537
|
return;
|
|
2538
2538
|
}
|
|
2539
2539
|
const w = `
|
|
2540
2540
|
function theFunction() {
|
|
2541
|
-
${
|
|
2541
|
+
${j}
|
|
2542
2542
|
|
|
2543
|
-
${
|
|
2543
|
+
${E}
|
|
2544
2544
|
}
|
|
2545
2545
|
theFunction();
|
|
2546
|
-
`,
|
|
2547
|
-
const K = Hr(f,
|
|
2546
|
+
`, P = (b, D) => {
|
|
2547
|
+
const K = Hr(f, b, D);
|
|
2548
2548
|
s == null || s(K);
|
|
2549
|
-
}, R = function(
|
|
2550
|
-
g.forEach(([K,
|
|
2551
|
-
const
|
|
2552
|
-
|
|
2553
|
-
}),
|
|
2549
|
+
}, R = function(b, D) {
|
|
2550
|
+
g.forEach(([K, pe]) => {
|
|
2551
|
+
const O = JSON.stringify(pe);
|
|
2552
|
+
b.setProperty(D, Lr(K), O);
|
|
2553
|
+
}), b.setProperty(D, "setRootState", b.createNativeFunction(P));
|
|
2554
2554
|
};
|
|
2555
2555
|
try {
|
|
2556
|
-
const
|
|
2557
|
-
return
|
|
2558
|
-
} catch (
|
|
2559
|
-
|
|
2560
|
-
e:
|
|
2556
|
+
const b = new h(w, R);
|
|
2557
|
+
return b.run(), b.pseudoToNative(b.value);
|
|
2558
|
+
} catch (b) {
|
|
2559
|
+
nt.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2560
|
+
e: b
|
|
2561
2561
|
});
|
|
2562
2562
|
return;
|
|
2563
2563
|
}
|
|
2564
2564
|
};
|
|
2565
2565
|
function Qn() {
|
|
2566
2566
|
var e;
|
|
2567
|
-
return typeof process != "undefined" &&
|
|
2567
|
+
return typeof process != "undefined" && ot((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2568
2568
|
}
|
|
2569
2569
|
const qn = () => {
|
|
2570
2570
|
var r;
|
|
2571
2571
|
if (!Qn())
|
|
2572
2572
|
return !1;
|
|
2573
2573
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2574
|
-
return e && t && !n ? (
|
|
2575
|
-
}, eo = (e) =>
|
|
2574
|
+
return e && t && !n ? (nt.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2575
|
+
}, eo = (e) => Dt() || qn() ? Rn(e) : zn(e), ne = class ne {
|
|
2576
2576
|
static getCacheKey(t) {
|
|
2577
2577
|
return JSON.stringify({
|
|
2578
2578
|
...t,
|
|
@@ -2582,17 +2582,17 @@ const qn = () => {
|
|
|
2582
2582
|
});
|
|
2583
2583
|
}
|
|
2584
2584
|
static getCachedValue(t) {
|
|
2585
|
-
return
|
|
2585
|
+
return ne.cache.get(t);
|
|
2586
2586
|
}
|
|
2587
2587
|
static setCachedValue(t, n) {
|
|
2588
|
-
|
|
2588
|
+
ne.cache.size > 20 && ne.cache.delete(ne.cache.keys().next().value), ne.cache.set(t, {
|
|
2589
2589
|
value: n
|
|
2590
2590
|
});
|
|
2591
2591
|
}
|
|
2592
2592
|
};
|
|
2593
|
-
|
|
2594
|
-
let Ce =
|
|
2595
|
-
function
|
|
2593
|
+
Nt(ne, "cacheLimit", 20), Nt(ne, "cache", /* @__PURE__ */ new Map());
|
|
2594
|
+
let Ce = ne;
|
|
2595
|
+
function zt({
|
|
2596
2596
|
code: e,
|
|
2597
2597
|
context: t,
|
|
2598
2598
|
localState: n,
|
|
@@ -2602,15 +2602,13 @@ function qt({
|
|
|
2602
2602
|
isExpression: a = !0,
|
|
2603
2603
|
enableCache: f
|
|
2604
2604
|
}) {
|
|
2605
|
-
if (e === "")
|
|
2606
|
-
He.warn("Skipping evaluation of empty code block.");
|
|
2605
|
+
if (e === "")
|
|
2607
2606
|
return;
|
|
2608
|
-
}
|
|
2609
2607
|
const g = {
|
|
2610
2608
|
code: Tn(e, {
|
|
2611
2609
|
isExpression: a
|
|
2612
2610
|
}),
|
|
2613
|
-
builder:
|
|
2611
|
+
builder: In(),
|
|
2614
2612
|
context: t,
|
|
2615
2613
|
event: s,
|
|
2616
2614
|
rootSetState: o,
|
|
@@ -2618,19 +2616,19 @@ function qt({
|
|
|
2618
2616
|
localState: n
|
|
2619
2617
|
};
|
|
2620
2618
|
if (f) {
|
|
2621
|
-
const
|
|
2622
|
-
if (
|
|
2623
|
-
return
|
|
2619
|
+
const j = Ce.getCacheKey(g), E = Ce.getCachedValue(j);
|
|
2620
|
+
if (E)
|
|
2621
|
+
return E.value;
|
|
2624
2622
|
}
|
|
2625
2623
|
try {
|
|
2626
|
-
const
|
|
2624
|
+
const j = eo(g);
|
|
2627
2625
|
if (f) {
|
|
2628
|
-
const
|
|
2629
|
-
Ce.setCachedValue(
|
|
2626
|
+
const E = Ce.getCacheKey(g);
|
|
2627
|
+
Ce.setCachedValue(E, j);
|
|
2630
2628
|
}
|
|
2631
|
-
return
|
|
2632
|
-
} catch (
|
|
2633
|
-
|
|
2629
|
+
return j;
|
|
2630
|
+
} catch (j) {
|
|
2631
|
+
nt.error("Failed code evaluation: " + j.message, {
|
|
2634
2632
|
code: e
|
|
2635
2633
|
});
|
|
2636
2634
|
return;
|
|
@@ -2655,7 +2653,7 @@ const to = ({
|
|
|
2655
2653
|
}
|
|
2656
2654
|
};
|
|
2657
2655
|
for (const f in e.bindings) {
|
|
2658
|
-
const g = e.bindings[f],
|
|
2656
|
+
const g = e.bindings[f], j = zt({
|
|
2659
2657
|
code: g,
|
|
2660
2658
|
localState: n,
|
|
2661
2659
|
rootState: r,
|
|
@@ -2663,11 +2661,11 @@ const to = ({
|
|
|
2663
2661
|
context: t,
|
|
2664
2662
|
enableCache: !0
|
|
2665
2663
|
});
|
|
2666
|
-
Hr(a, f,
|
|
2664
|
+
Hr(a, f, j);
|
|
2667
2665
|
}
|
|
2668
2666
|
return a;
|
|
2669
2667
|
};
|
|
2670
|
-
function
|
|
2668
|
+
function it({
|
|
2671
2669
|
block: e,
|
|
2672
2670
|
context: t,
|
|
2673
2671
|
shouldEvaluateBindings: n,
|
|
@@ -2690,13 +2688,13 @@ function ro(e, t, n = {}) {
|
|
|
2690
2688
|
f = n.leading === !1 ? 0 : Date.now(), a = null, s = e.apply(r, o), a || (r = o = null);
|
|
2691
2689
|
};
|
|
2692
2690
|
return function() {
|
|
2693
|
-
const
|
|
2694
|
-
!f && n.leading === !1 && (f =
|
|
2695
|
-
const
|
|
2696
|
-
return r = this, o = arguments,
|
|
2691
|
+
const j = Date.now();
|
|
2692
|
+
!f && n.leading === !1 && (f = j);
|
|
2693
|
+
const E = t - (j - f);
|
|
2694
|
+
return r = this, o = arguments, E <= 0 || E > t ? (a && (clearTimeout(a), a = null), f = j, s = e.apply(r, o), a || (r = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(g, E)), s;
|
|
2697
2695
|
};
|
|
2698
2696
|
}
|
|
2699
|
-
function
|
|
2697
|
+
function Ge(e, ...t) {
|
|
2700
2698
|
const n = Object(e);
|
|
2701
2699
|
for (let r = 1; r < arguments.length; r++) {
|
|
2702
2700
|
const o = arguments[r];
|
|
@@ -2706,7 +2704,7 @@ function Xe(e, ...t) {
|
|
|
2706
2704
|
}
|
|
2707
2705
|
return n;
|
|
2708
2706
|
}
|
|
2709
|
-
const
|
|
2707
|
+
const Qt = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
2710
2708
|
function no(e) {
|
|
2711
2709
|
for (const t of e)
|
|
2712
2710
|
switch (t.trigger) {
|
|
@@ -2741,8 +2739,8 @@ function io(e) {
|
|
|
2741
2739
|
return;
|
|
2742
2740
|
}
|
|
2743
2741
|
Array.from(t).forEach((n) => {
|
|
2744
|
-
tn(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
2745
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2742
|
+
tn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Ge(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2743
|
+
n.style.transition = `all ${e.duration}s ${Qt(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Ge(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2746
2744
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2747
2745
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2748
2746
|
});
|
|
@@ -2759,24 +2757,24 @@ function so(e) {
|
|
|
2759
2757
|
let r = !1, o = !1;
|
|
2760
2758
|
function s() {
|
|
2761
2759
|
!r && f(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
2762
|
-
|
|
2760
|
+
Ge(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
2763
2761
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
2764
2762
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2765
|
-
})) : e.repeat && r && !o && !f(n) && (r = !1,
|
|
2763
|
+
})) : e.repeat && r && !o && !f(n) && (r = !1, Ge(n.style, e.steps[0].styles));
|
|
2766
2764
|
}
|
|
2767
2765
|
const a = ro(s, 200, {
|
|
2768
2766
|
leading: !1
|
|
2769
2767
|
});
|
|
2770
|
-
function f(
|
|
2771
|
-
const w =
|
|
2772
|
-
return w.bottom >
|
|
2768
|
+
function f(E) {
|
|
2769
|
+
const w = E.getBoundingClientRect(), P = window.innerHeight, b = (e.thresholdPercent || 0) / 100 * P;
|
|
2770
|
+
return w.bottom > b && w.top < P - b;
|
|
2773
2771
|
}
|
|
2774
2772
|
const g = e.steps[0].styles;
|
|
2775
|
-
function
|
|
2776
|
-
|
|
2773
|
+
function j() {
|
|
2774
|
+
Ge(n.style, g);
|
|
2777
2775
|
}
|
|
2778
|
-
|
|
2779
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2776
|
+
j(), setTimeout(() => {
|
|
2777
|
+
n.style.transition = `all ${e.duration}s ${Qt(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2780
2778
|
}), document.addEventListener("scroll", a, {
|
|
2781
2779
|
capture: !0,
|
|
2782
2780
|
passive: !0
|
|
@@ -2786,8 +2784,8 @@ function so(e) {
|
|
|
2786
2784
|
const ao = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), rn = (e) => Object.entries(e).map(([n, r]) => {
|
|
2787
2785
|
if (typeof r == "string")
|
|
2788
2786
|
return `${ao(n)}: ${r};`;
|
|
2789
|
-
}).filter(
|
|
2790
|
-
`),
|
|
2787
|
+
}).filter(ot), lo = (e) => rn(e).join(`
|
|
2788
|
+
`), rt = ({
|
|
2791
2789
|
mediaQuery: e,
|
|
2792
2790
|
className: t,
|
|
2793
2791
|
styles: n
|
|
@@ -2817,6 +2815,7 @@ function fo(e) {
|
|
|
2817
2815
|
case "svelte":
|
|
2818
2816
|
case "vue":
|
|
2819
2817
|
case "solid":
|
|
2818
|
+
case "angular":
|
|
2820
2819
|
return rn(e).join(" ");
|
|
2821
2820
|
case "qwik":
|
|
2822
2821
|
case "reactNative":
|
|
@@ -2831,7 +2830,7 @@ const po = ({
|
|
|
2831
2830
|
registeredComponents: n
|
|
2832
2831
|
}) => {
|
|
2833
2832
|
var s;
|
|
2834
|
-
const r = (s =
|
|
2833
|
+
const r = (s = it({
|
|
2835
2834
|
block: e,
|
|
2836
2835
|
localState: t.localState,
|
|
2837
2836
|
rootState: t.rootState,
|
|
@@ -2857,7 +2856,7 @@ const po = ({
|
|
|
2857
2856
|
} = e;
|
|
2858
2857
|
if (!(n != null && n.collection))
|
|
2859
2858
|
return;
|
|
2860
|
-
const o =
|
|
2859
|
+
const o = zt({
|
|
2861
2860
|
code: n.collection,
|
|
2862
2861
|
localState: t.localState,
|
|
2863
2862
|
rootState: t.rootState,
|
|
@@ -2868,20 +2867,20 @@ const po = ({
|
|
|
2868
2867
|
if (!Array.isArray(o))
|
|
2869
2868
|
return;
|
|
2870
2869
|
const s = n.collection.split(".").pop(), a = n.itemName || (s ? s + "Item" : "item");
|
|
2871
|
-
return o.map((g,
|
|
2870
|
+
return o.map((g, j) => ({
|
|
2872
2871
|
context: {
|
|
2873
2872
|
...t,
|
|
2874
2873
|
localState: {
|
|
2875
2874
|
...t.localState,
|
|
2876
|
-
$index:
|
|
2875
|
+
$index: j,
|
|
2877
2876
|
$item: g,
|
|
2878
2877
|
[a]: g,
|
|
2879
|
-
[`$${a}Index`]:
|
|
2878
|
+
[`$${a}Index`]: j
|
|
2880
2879
|
}
|
|
2881
2880
|
},
|
|
2882
2881
|
block: r
|
|
2883
2882
|
}));
|
|
2884
|
-
}, nn = {
|
|
2883
|
+
}, go = (e) => e && ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e), yo = (e) => e && ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e), nn = {
|
|
2885
2884
|
small: {
|
|
2886
2885
|
min: 320,
|
|
2887
2886
|
default: 321,
|
|
@@ -2897,7 +2896,7 @@ const po = ({
|
|
|
2897
2896
|
default: 991,
|
|
2898
2897
|
max: 1200
|
|
2899
2898
|
}
|
|
2900
|
-
}, _r = (e, t = nn) => `@media (max-width: ${t[e].max}px)`,
|
|
2899
|
+
}, _r = (e, t = nn) => `@media (max-width: ${t[e].max}px)`, vo = ({
|
|
2901
2900
|
small: e,
|
|
2902
2901
|
medium: t
|
|
2903
2902
|
}) => {
|
|
@@ -2924,7 +2923,7 @@ const po = ({
|
|
|
2924
2923
|
default: s + 1
|
|
2925
2924
|
}, n;
|
|
2926
2925
|
};
|
|
2927
|
-
function
|
|
2926
|
+
function mo(e) {
|
|
2928
2927
|
return /* @__PURE__ */ T(
|
|
2929
2928
|
"style",
|
|
2930
2929
|
{
|
|
@@ -2933,9 +2932,9 @@ function yo(e) {
|
|
|
2933
2932
|
}
|
|
2934
2933
|
);
|
|
2935
2934
|
}
|
|
2936
|
-
function
|
|
2935
|
+
function wo(e) {
|
|
2937
2936
|
function t() {
|
|
2938
|
-
const r =
|
|
2937
|
+
const r = it({
|
|
2939
2938
|
block: e.block,
|
|
2940
2939
|
localState: e.context.localState,
|
|
2941
2940
|
rootState: e.context.rootState,
|
|
@@ -2943,67 +2942,67 @@ function vo(e) {
|
|
|
2943
2942
|
context: e.context.context,
|
|
2944
2943
|
shouldEvaluateBindings: !0
|
|
2945
2944
|
});
|
|
2946
|
-
return
|
|
2945
|
+
return ot(r.hide) ? !r.hide : ot(r.show) ? r.show : !0;
|
|
2947
2946
|
}
|
|
2948
2947
|
function n() {
|
|
2949
|
-
var K,
|
|
2950
|
-
const r =
|
|
2948
|
+
var K, pe, O;
|
|
2949
|
+
const r = it({
|
|
2951
2950
|
block: e.block,
|
|
2952
2951
|
localState: e.context.localState,
|
|
2953
2952
|
rootState: e.context.rootState,
|
|
2954
2953
|
rootSetState: e.context.rootSetState,
|
|
2955
2954
|
context: e.context.context,
|
|
2956
2955
|
shouldEvaluateBindings: !0
|
|
2957
|
-
}), o = r.responsiveStyles, s = e.context.content, a =
|
|
2956
|
+
}), o = r.responsiveStyles, s = e.context.content, a = vo(
|
|
2958
2957
|
((K = s == null ? void 0 : s.meta) == null ? void 0 : K.breakpoints) || {}
|
|
2959
|
-
), f = o == null ? void 0 : o.large, g = o == null ? void 0 : o.medium,
|
|
2960
|
-
if (!
|
|
2958
|
+
), f = o == null ? void 0 : o.large, g = o == null ? void 0 : o.medium, j = o == null ? void 0 : o.small, E = r.id;
|
|
2959
|
+
if (!E)
|
|
2961
2960
|
return "";
|
|
2962
|
-
const w = f ?
|
|
2963
|
-
className:
|
|
2961
|
+
const w = f ? rt({
|
|
2962
|
+
className: E,
|
|
2964
2963
|
styles: f
|
|
2965
|
-
}) : "",
|
|
2966
|
-
className:
|
|
2964
|
+
}) : "", P = g ? rt({
|
|
2965
|
+
className: E,
|
|
2967
2966
|
styles: g,
|
|
2968
2967
|
mediaQuery: _r(
|
|
2969
2968
|
"medium",
|
|
2970
2969
|
a
|
|
2971
2970
|
)
|
|
2972
|
-
}) : "", R =
|
|
2973
|
-
className:
|
|
2974
|
-
styles:
|
|
2971
|
+
}) : "", R = j ? rt({
|
|
2972
|
+
className: E,
|
|
2973
|
+
styles: j,
|
|
2975
2974
|
mediaQuery: _r(
|
|
2976
2975
|
"small",
|
|
2977
2976
|
a
|
|
2978
2977
|
)
|
|
2979
|
-
}) : "",
|
|
2978
|
+
}) : "", b = r.animations && r.animations.find((he) => he.trigger === "hover");
|
|
2980
2979
|
let D = "";
|
|
2981
|
-
if (
|
|
2982
|
-
const
|
|
2983
|
-
D =
|
|
2984
|
-
className: `${
|
|
2980
|
+
if (b) {
|
|
2981
|
+
const he = ((O = (pe = b.steps) == null ? void 0 : pe[1]) == null ? void 0 : O.styles) || {};
|
|
2982
|
+
D = rt({
|
|
2983
|
+
className: `${E}:hover`,
|
|
2985
2984
|
styles: {
|
|
2986
|
-
...
|
|
2987
|
-
transition: `all ${
|
|
2988
|
-
|
|
2985
|
+
...he,
|
|
2986
|
+
transition: `all ${b.duration}s ${Qt(
|
|
2987
|
+
b.easing
|
|
2989
2988
|
)}`,
|
|
2990
|
-
transitionDelay:
|
|
2989
|
+
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
2991
2990
|
}
|
|
2992
2991
|
}) || "";
|
|
2993
2992
|
}
|
|
2994
2993
|
return [
|
|
2995
2994
|
w,
|
|
2996
|
-
|
|
2995
|
+
P,
|
|
2997
2996
|
R,
|
|
2998
2997
|
D
|
|
2999
2998
|
].join(" ");
|
|
3000
2999
|
}
|
|
3001
|
-
return /* @__PURE__ */ T(Z, { children: n() && t() ? /* @__PURE__ */ T(Z, { children: /* @__PURE__ */ T(
|
|
3000
|
+
return /* @__PURE__ */ T(Z, { children: n() && t() ? /* @__PURE__ */ T(Z, { children: /* @__PURE__ */ T(mo, { id: "builderio-block", styles: n() }) }) : null });
|
|
3002
3001
|
}
|
|
3003
|
-
function
|
|
3002
|
+
function So(e) {
|
|
3004
3003
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3005
3004
|
}
|
|
3006
|
-
const
|
|
3005
|
+
const xo = (e) => `on${So(e)}`, ko = (e, t) => (n) => zt({
|
|
3007
3006
|
code: e,
|
|
3008
3007
|
context: t.context,
|
|
3009
3008
|
localState: t.localState,
|
|
@@ -3020,7 +3019,7 @@ function on(e) {
|
|
|
3020
3019
|
if (!n.hasOwnProperty(o))
|
|
3021
3020
|
continue;
|
|
3022
3021
|
const s = n[o];
|
|
3023
|
-
let a =
|
|
3022
|
+
let a = xo(o);
|
|
3024
3023
|
if (e.stripPrefix)
|
|
3025
3024
|
switch (Xr) {
|
|
3026
3025
|
case "vue":
|
|
@@ -3030,25 +3029,25 @@ function on(e) {
|
|
|
3030
3029
|
a = a.replace("on:", "");
|
|
3031
3030
|
break;
|
|
3032
3031
|
}
|
|
3033
|
-
t[a] =
|
|
3032
|
+
t[a] = ko(s, e);
|
|
3034
3033
|
}
|
|
3035
3034
|
return t;
|
|
3036
3035
|
}
|
|
3037
|
-
function
|
|
3036
|
+
function Eo({
|
|
3038
3037
|
properties: e
|
|
3039
3038
|
}) {
|
|
3040
3039
|
return e;
|
|
3041
3040
|
}
|
|
3042
|
-
const
|
|
3041
|
+
const Co = (e) => ({
|
|
3043
3042
|
href: e.href
|
|
3044
3043
|
});
|
|
3045
|
-
function
|
|
3044
|
+
function qt({
|
|
3046
3045
|
block: e,
|
|
3047
3046
|
context: t
|
|
3048
3047
|
}) {
|
|
3049
3048
|
var r;
|
|
3050
3049
|
const n = {
|
|
3051
|
-
...
|
|
3050
|
+
...Co(e),
|
|
3052
3051
|
...e.properties,
|
|
3053
3052
|
"builder-id": e.id,
|
|
3054
3053
|
style: co({
|
|
@@ -3057,18 +3056,18 @@ function tr({
|
|
|
3057
3056
|
}),
|
|
3058
3057
|
[An()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3059
3058
|
};
|
|
3060
|
-
return
|
|
3059
|
+
return Eo({
|
|
3061
3060
|
properties: n,
|
|
3062
3061
|
context: t,
|
|
3063
3062
|
block: e
|
|
3064
3063
|
});
|
|
3065
3064
|
}
|
|
3066
|
-
function
|
|
3065
|
+
function jo(e) {
|
|
3067
3066
|
return /* @__PURE__ */ T(
|
|
3068
|
-
|
|
3067
|
+
bn,
|
|
3069
3068
|
{
|
|
3070
3069
|
TagName: e.Wrapper,
|
|
3071
|
-
attributes:
|
|
3070
|
+
attributes: qt({
|
|
3072
3071
|
block: e.block,
|
|
3073
3072
|
context: e.context
|
|
3074
3073
|
}),
|
|
@@ -3084,29 +3083,25 @@ function Eo(e) {
|
|
|
3084
3083
|
}
|
|
3085
3084
|
);
|
|
3086
3085
|
}
|
|
3087
|
-
function
|
|
3088
|
-
|
|
3089
|
-
e.
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
} : {},
|
|
3105
|
-
children: e.children
|
|
3106
|
-
}
|
|
3107
|
-
);
|
|
3086
|
+
function Oo(e) {
|
|
3087
|
+
function t() {
|
|
3088
|
+
return e.includeBlockProps ? {
|
|
3089
|
+
...qt({
|
|
3090
|
+
block: e.block,
|
|
3091
|
+
context: e.context
|
|
3092
|
+
}),
|
|
3093
|
+
...on({
|
|
3094
|
+
block: e.block,
|
|
3095
|
+
rootState: e.context.rootState,
|
|
3096
|
+
rootSetState: e.context.rootSetState,
|
|
3097
|
+
localState: e.context.localState,
|
|
3098
|
+
context: e.context.context
|
|
3099
|
+
})
|
|
3100
|
+
} : {};
|
|
3101
|
+
}
|
|
3102
|
+
return /* @__PURE__ */ T(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
3108
3103
|
}
|
|
3109
|
-
const
|
|
3104
|
+
const Ao = ({
|
|
3110
3105
|
componentOptions: e,
|
|
3111
3106
|
builderBlock: t,
|
|
3112
3107
|
context: n,
|
|
@@ -3122,7 +3117,7 @@ const jo = ({
|
|
|
3122
3117
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3123
3118
|
*/
|
|
3124
3119
|
...o ? {
|
|
3125
|
-
attributes:
|
|
3120
|
+
attributes: qt({
|
|
3126
3121
|
block: t,
|
|
3127
3122
|
context: a
|
|
3128
3123
|
})
|
|
@@ -3139,12 +3134,12 @@ const jo = ({
|
|
|
3139
3134
|
function Wr(e) {
|
|
3140
3135
|
var r;
|
|
3141
3136
|
const [t, n] = $r(
|
|
3142
|
-
() => e.isInteractive ?
|
|
3137
|
+
() => e.isInteractive ? Oo : e.componentRef
|
|
3143
3138
|
);
|
|
3144
3139
|
return /* @__PURE__ */ T(Z, { children: e.componentRef ? /* @__PURE__ */ T(Z, { children: /* @__PURE__ */ T(
|
|
3145
3140
|
t,
|
|
3146
3141
|
{
|
|
3147
|
-
...
|
|
3142
|
+
...Ao({
|
|
3148
3143
|
componentOptions: e.componentOptions,
|
|
3149
3144
|
builderBlock: e.builderBlock,
|
|
3150
3145
|
context: e.context,
|
|
@@ -3155,7 +3150,7 @@ function Wr(e) {
|
|
|
3155
3150
|
contextValue: e.context
|
|
3156
3151
|
}),
|
|
3157
3152
|
children: (r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */ T(
|
|
3158
|
-
|
|
3153
|
+
lt,
|
|
3159
3154
|
{
|
|
3160
3155
|
block: o,
|
|
3161
3156
|
context: e.context,
|
|
@@ -3167,10 +3162,10 @@ function Wr(e) {
|
|
|
3167
3162
|
}
|
|
3168
3163
|
) }) : null });
|
|
3169
3164
|
}
|
|
3170
|
-
function
|
|
3165
|
+
function bo(e) {
|
|
3171
3166
|
const [t, n] = $r(() => e.repeatContext);
|
|
3172
3167
|
return /* @__PURE__ */ T(Gr.Provider, { value: t, children: /* @__PURE__ */ T(
|
|
3173
|
-
|
|
3168
|
+
lt,
|
|
3174
3169
|
{
|
|
3175
3170
|
block: e.block,
|
|
3176
3171
|
context: t,
|
|
@@ -3179,8 +3174,8 @@ function Oo(e) {
|
|
|
3179
3174
|
}
|
|
3180
3175
|
) });
|
|
3181
3176
|
}
|
|
3182
|
-
function
|
|
3183
|
-
var g,
|
|
3177
|
+
function lt(e) {
|
|
3178
|
+
var g, j, E;
|
|
3184
3179
|
function t() {
|
|
3185
3180
|
return po({
|
|
3186
3181
|
block: e.block,
|
|
@@ -3196,7 +3191,7 @@ function ct(e) {
|
|
|
3196
3191
|
}
|
|
3197
3192
|
function r() {
|
|
3198
3193
|
var w;
|
|
3199
|
-
return (w = e.block.repeat) != null && w.collection ? e.block :
|
|
3194
|
+
return (w = e.block.repeat) != null && w.collection ? e.block : it({
|
|
3200
3195
|
block: e.block,
|
|
3201
3196
|
localState: e.context.localState,
|
|
3202
3197
|
rootState: e.context.rootState,
|
|
@@ -3206,32 +3201,32 @@ function ct(e) {
|
|
|
3206
3201
|
});
|
|
3207
3202
|
}
|
|
3208
3203
|
function o() {
|
|
3209
|
-
var
|
|
3210
|
-
return e.block.tagName === "a" || ((
|
|
3204
|
+
var P;
|
|
3205
|
+
return e.block.tagName === "a" || ((P = r().properties) == null ? void 0 : P.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3211
3206
|
}
|
|
3212
3207
|
function s() {
|
|
3213
|
-
var R,
|
|
3208
|
+
var R, b;
|
|
3214
3209
|
if ((R = e.block.repeat) != null && R.collection)
|
|
3215
|
-
return !!((
|
|
3210
|
+
return !!((b = n == null ? void 0 : n()) != null && b.length);
|
|
3216
3211
|
const w = "hide" in r() ? r().hide : !1;
|
|
3217
3212
|
return ("show" in r() ? r().show : !0) && !w;
|
|
3218
3213
|
}
|
|
3219
3214
|
function a() {
|
|
3220
|
-
var
|
|
3221
|
-
return !((
|
|
3215
|
+
var P, R;
|
|
3216
|
+
return !((P = t == null ? void 0 : t()) != null && P.component) && !n() ? (R = r().children) != null ? R : [] : [];
|
|
3222
3217
|
}
|
|
3223
3218
|
function f() {
|
|
3224
|
-
var w,
|
|
3219
|
+
var w, P, R, b, D, K;
|
|
3225
3220
|
return {
|
|
3226
3221
|
blockChildren: (w = r().children) != null ? w : [],
|
|
3227
|
-
componentRef: (
|
|
3222
|
+
componentRef: (P = t == null ? void 0 : t()) == null ? void 0 : P.component,
|
|
3228
3223
|
componentOptions: {
|
|
3229
|
-
...
|
|
3224
|
+
...Nn(r()),
|
|
3230
3225
|
builderContext: e.context,
|
|
3231
|
-
...((R = t == null ? void 0 : t()) == null ? void 0 : R.name)
|
|
3226
|
+
...go((R = t == null ? void 0 : t()) == null ? void 0 : R.name) ? {
|
|
3232
3227
|
builderLinkComponent: e.linkComponent
|
|
3233
3228
|
} : {},
|
|
3234
|
-
...((
|
|
3229
|
+
...yo((b = t == null ? void 0 : t()) == null ? void 0 : b.name) ? {
|
|
3235
3230
|
builderComponents: e.registeredComponents
|
|
3236
3231
|
} : {}
|
|
3237
3232
|
},
|
|
@@ -3239,20 +3234,20 @@ function ct(e) {
|
|
|
3239
3234
|
linkComponent: e.linkComponent,
|
|
3240
3235
|
registeredComponents: e.registeredComponents,
|
|
3241
3236
|
builderBlock: r(),
|
|
3242
|
-
includeBlockProps: ((
|
|
3243
|
-
isInteractive: !((
|
|
3237
|
+
includeBlockProps: ((D = t == null ? void 0 : t()) == null ? void 0 : D.noWrap) === !0,
|
|
3238
|
+
isInteractive: !((K = t == null ? void 0 : t()) != null && K.isRSC)
|
|
3244
3239
|
};
|
|
3245
3240
|
}
|
|
3246
3241
|
return jn(() => {
|
|
3247
|
-
const w = r().id,
|
|
3248
|
-
|
|
3249
|
-
|
|
3242
|
+
const w = r().id, P = r().animations;
|
|
3243
|
+
P && w && no(
|
|
3244
|
+
P.map((R) => ({
|
|
3250
3245
|
...R,
|
|
3251
3246
|
elementId: w
|
|
3252
3247
|
}))
|
|
3253
3248
|
);
|
|
3254
|
-
}, []), /* @__PURE__ */ T(Z, { children: s() ? /* @__PURE__ */
|
|
3255
|
-
/* @__PURE__ */ T(
|
|
3249
|
+
}, []), /* @__PURE__ */ T(Z, { children: s() ? /* @__PURE__ */ Mt(Z, { children: [
|
|
3250
|
+
/* @__PURE__ */ T(wo, { block: e.block, context: e.context }),
|
|
3256
3251
|
(g = t == null ? void 0 : t()) != null && g.noWrap ? /* @__PURE__ */ T(Z, { children: /* @__PURE__ */ T(
|
|
3257
3252
|
Wr,
|
|
3258
3253
|
{
|
|
@@ -3266,17 +3261,17 @@ function ct(e) {
|
|
|
3266
3261
|
includeBlockProps: f().includeBlockProps,
|
|
3267
3262
|
isInteractive: f().isInteractive
|
|
3268
3263
|
}
|
|
3269
|
-
) }) : /* @__PURE__ */ T(Z, { children: n() ? /* @__PURE__ */ T(Z, { children: (
|
|
3270
|
-
|
|
3264
|
+
) }) : /* @__PURE__ */ T(Z, { children: n() ? /* @__PURE__ */ T(Z, { children: (E = n()) == null ? void 0 : E.map((w, P) => /* @__PURE__ */ T(
|
|
3265
|
+
bo,
|
|
3271
3266
|
{
|
|
3272
3267
|
repeatContext: w.context,
|
|
3273
3268
|
block: w.block,
|
|
3274
3269
|
registeredComponents: e.registeredComponents,
|
|
3275
3270
|
linkComponent: e.linkComponent
|
|
3276
3271
|
},
|
|
3277
|
-
|
|
3278
|
-
)) }) : /* @__PURE__ */
|
|
3279
|
-
|
|
3272
|
+
P
|
|
3273
|
+
)) }) : /* @__PURE__ */ Mt(
|
|
3274
|
+
jo,
|
|
3280
3275
|
{
|
|
3281
3276
|
Wrapper: o(),
|
|
3282
3277
|
block: r(),
|
|
@@ -3297,8 +3292,8 @@ function ct(e) {
|
|
|
3297
3292
|
isInteractive: f().isInteractive
|
|
3298
3293
|
}
|
|
3299
3294
|
),
|
|
3300
|
-
(
|
|
3301
|
-
|
|
3295
|
+
(j = a()) == null ? void 0 : j.map((w) => /* @__PURE__ */ T(
|
|
3296
|
+
lt,
|
|
3302
3297
|
{
|
|
3303
3298
|
block: w,
|
|
3304
3299
|
registeredComponents: e.registeredComponents,
|
|
@@ -3312,14 +3307,14 @@ function ct(e) {
|
|
|
3312
3307
|
) })
|
|
3313
3308
|
] }) : null });
|
|
3314
3309
|
}
|
|
3315
|
-
function
|
|
3310
|
+
function Io(e) {
|
|
3316
3311
|
function t() {
|
|
3317
3312
|
var o;
|
|
3318
3313
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
3319
3314
|
}
|
|
3320
3315
|
function n() {
|
|
3321
3316
|
var o, s;
|
|
3322
|
-
|
|
3317
|
+
Bt() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage(
|
|
3323
3318
|
{
|
|
3324
3319
|
type: "builder.clickEmptyBlocks",
|
|
3325
3320
|
data: {
|
|
@@ -3332,7 +3327,7 @@ function Ao(e) {
|
|
|
3332
3327
|
}
|
|
3333
3328
|
function r() {
|
|
3334
3329
|
var o, s;
|
|
3335
|
-
|
|
3330
|
+
Bt() && !((o = e.blocks) != null && o.length) && ((s = window.parent) == null || s.postMessage(
|
|
3336
3331
|
{
|
|
3337
3332
|
type: "builder.hoverEmptyBlocks",
|
|
3338
3333
|
data: {
|
|
@@ -3343,7 +3338,7 @@ function Ao(e) {
|
|
|
3343
3338
|
"*"
|
|
3344
3339
|
));
|
|
3345
3340
|
}
|
|
3346
|
-
return /* @__PURE__ */
|
|
3341
|
+
return /* @__PURE__ */ Mt(Z, { children: [
|
|
3347
3342
|
/* @__PURE__ */ T(
|
|
3348
3343
|
e.BlocksWrapper,
|
|
3349
3344
|
{
|
|
@@ -3365,11 +3360,11 @@ function Ao(e) {
|
|
|
3365
3360
|
}` })
|
|
3366
3361
|
] });
|
|
3367
3362
|
}
|
|
3368
|
-
function
|
|
3363
|
+
function To(e) {
|
|
3369
3364
|
var r, o, s;
|
|
3370
|
-
const t = Rr(Gr), n = Rr(
|
|
3365
|
+
const t = Rr(Gr), n = Rr(Pn);
|
|
3371
3366
|
return /* @__PURE__ */ T(
|
|
3372
|
-
|
|
3367
|
+
Io,
|
|
3373
3368
|
{
|
|
3374
3369
|
blocks: e.blocks,
|
|
3375
3370
|
parent: e.parent,
|
|
@@ -3378,7 +3373,7 @@ function Io(e) {
|
|
|
3378
3373
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || t.BlocksWrapper,
|
|
3379
3374
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
3380
3375
|
children: e.blocks ? /* @__PURE__ */ T(Z, { children: (s = e.blocks) == null ? void 0 : s.map((a) => /* @__PURE__ */ T(
|
|
3381
|
-
|
|
3376
|
+
lt,
|
|
3382
3377
|
{
|
|
3383
3378
|
block: a,
|
|
3384
3379
|
linkComponent: e.linkComponent,
|
|
@@ -3390,18 +3385,18 @@ function Io(e) {
|
|
|
3390
3385
|
}
|
|
3391
3386
|
);
|
|
3392
3387
|
}
|
|
3393
|
-
const
|
|
3388
|
+
const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3394
3389
|
__proto__: null,
|
|
3395
|
-
default:
|
|
3390
|
+
default: To
|
|
3396
3391
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3397
3392
|
export {
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3393
|
+
lt as Block,
|
|
3394
|
+
To as Blocks,
|
|
3395
|
+
Pn as ComponentsContext,
|
|
3396
|
+
mo as InlinedStyles,
|
|
3397
|
+
Fo as blocks,
|
|
3398
|
+
zt as evaluate,
|
|
3399
|
+
vo as getSizesForBreakpoints,
|
|
3405
3400
|
fo as mapStyleObjToStrIfNeeded,
|
|
3406
3401
|
Hr as set,
|
|
3407
3402
|
io as triggerAnimation
|