x-runtime-lib 0.4.17 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composables/element/basic/size.d.ts +3 -3
- package/dist/index.js +1181 -1183
- package/dist/types/data.d.ts +4 -0
- package/dist/utils/provideInject.d.ts +5 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { provide as oe, readonly as ue, inject as se,
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { eventBus as
|
|
7
|
-
const
|
|
1
|
+
var Pi = Object.defineProperty;
|
|
2
|
+
var wi = (n, s, l) => s in n ? Pi(n, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[s] = l;
|
|
3
|
+
var xt = (n, s, l) => wi(n, typeof s != "symbol" ? s + "" : s, l);
|
|
4
|
+
import { provide as oe, readonly as ue, inject as se, defineComponent as an, computed as W, resolveComponent as xi, openBlock as on, createBlock as un, ref as Ci, watch as Ai, onBeforeUnmount as Ii, h as Me } from "vue";
|
|
5
|
+
import { useI18n as ki } from "vue-i18n";
|
|
6
|
+
import { eventBus as sn, messageInfo as Di, messageSuccess as Fi, messageWarning as Li, messageError as Mi, openConfirmDlg as Ui, openPromptDlg as ji } from "x-essential-lib";
|
|
7
|
+
const Bi = /* @__PURE__ */ new Set([
|
|
8
8
|
"globality_v1",
|
|
9
9
|
"btn_v1",
|
|
10
10
|
"ref_v1"
|
|
11
|
-
]),
|
|
11
|
+
]), $i = [
|
|
12
12
|
{
|
|
13
13
|
key: "basic",
|
|
14
14
|
name: "x-runtime-lib.basic",
|
|
15
15
|
items: ["globality_v1", "btn_v1"]
|
|
16
16
|
}
|
|
17
|
-
],
|
|
17
|
+
], Gi = {
|
|
18
18
|
version: "v1",
|
|
19
19
|
globalityKey: "globality_v1",
|
|
20
20
|
refKey: "ref_v1",
|
|
21
|
-
elements:
|
|
22
|
-
groups:
|
|
23
|
-
},
|
|
24
|
-
v1:
|
|
25
|
-
},
|
|
26
|
-
function
|
|
21
|
+
elements: Bi,
|
|
22
|
+
groups: $i
|
|
23
|
+
}, cn = {
|
|
24
|
+
v1: Gi
|
|
25
|
+
}, Cr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
26
|
+
function fn(n) {
|
|
27
27
|
let s = "";
|
|
28
|
-
for (let
|
|
29
|
-
const
|
|
30
|
-
s +=
|
|
28
|
+
for (let l = 0; l < n; l++) {
|
|
29
|
+
const y = Math.floor(Math.random() * Cr.length);
|
|
30
|
+
s += Cr[y];
|
|
31
31
|
}
|
|
32
32
|
return s;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Vi(n) {
|
|
35
35
|
return n === "";
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Yi(n) {
|
|
38
38
|
if (typeof n != "string" || !n.endsWith("px"))
|
|
39
39
|
return !1;
|
|
40
|
-
const s = n.substring(0, n.length - 2),
|
|
41
|
-
return !(isNaN(
|
|
40
|
+
const s = n.substring(0, n.length - 2), l = parseFloat(s);
|
|
41
|
+
return !(isNaN(l) || l % 1 !== 0);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Xi(n) {
|
|
44
44
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
45
45
|
return !1;
|
|
46
|
-
const s = n.substring(0, n.length - 1),
|
|
47
|
-
return !isNaN(
|
|
46
|
+
const s = n.substring(0, n.length - 1), l = parseFloat(s);
|
|
47
|
+
return !isNaN(l);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function lc(n) {
|
|
50
50
|
if (typeof n != "string" || !n.endsWith("px"))
|
|
51
51
|
return;
|
|
52
|
-
const s = n.substring(0, n.length - 2),
|
|
53
|
-
if (!isNaN(
|
|
54
|
-
return
|
|
52
|
+
const s = n.substring(0, n.length - 2), l = parseFloat(s);
|
|
53
|
+
if (!isNaN(l) && l % 1 === 0)
|
|
54
|
+
return l;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Ct(n) {
|
|
57
57
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
58
58
|
return;
|
|
59
|
-
const s = n.substring(0, n.length - 1),
|
|
60
|
-
if (!isNaN(
|
|
61
|
-
return
|
|
59
|
+
const s = n.substring(0, n.length - 1), l = parseFloat(s);
|
|
60
|
+
if (!isNaN(l))
|
|
61
|
+
return l;
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
function
|
|
65
|
-
var s =
|
|
63
|
+
var ln = typeof global == "object" && global && global.Object === Object && global, Wi = typeof self == "object" && self && self.Object === Object && self, q = ln || Wi || Function("return this")(), Oe = q.Symbol, pn = Object.prototype, Ji = pn.hasOwnProperty, zi = pn.toString, Ue = Oe ? Oe.toStringTag : void 0;
|
|
64
|
+
function Hi(n) {
|
|
65
|
+
var s = Ji.call(n, Ue), l = n[Ue];
|
|
66
66
|
try {
|
|
67
67
|
n[Ue] = void 0;
|
|
68
|
-
var
|
|
68
|
+
var y = !0;
|
|
69
69
|
} catch {
|
|
70
70
|
}
|
|
71
|
-
var g =
|
|
72
|
-
return
|
|
71
|
+
var g = zi.call(n);
|
|
72
|
+
return y && (s ? n[Ue] = l : delete n[Ue]), g;
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
-
return
|
|
74
|
+
var Ki = Object.prototype, qi = Ki.toString;
|
|
75
|
+
function Zi(n) {
|
|
76
|
+
return qi.call(n);
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var Qi = "[object Null]", ea = "[object Undefined]", Ar = Oe ? Oe.toStringTag : void 0;
|
|
79
79
|
function Ge(n) {
|
|
80
|
-
return n == null ? n === void 0 ?
|
|
80
|
+
return n == null ? n === void 0 ? ea : Qi : Ar && Ar in Object(n) ? Hi(n) : Zi(n);
|
|
81
81
|
}
|
|
82
82
|
function Ve(n) {
|
|
83
83
|
return n != null && typeof n == "object";
|
|
84
84
|
}
|
|
85
|
-
var
|
|
85
|
+
var Ut = Array.isArray;
|
|
86
86
|
function Ye(n) {
|
|
87
87
|
var s = typeof n;
|
|
88
88
|
return n != null && (s == "object" || s == "function");
|
|
89
89
|
}
|
|
90
|
-
var
|
|
91
|
-
function
|
|
90
|
+
var ta = "[object AsyncFunction]", ra = "[object Function]", na = "[object GeneratorFunction]", ia = "[object Proxy]";
|
|
91
|
+
function hn(n) {
|
|
92
92
|
if (!Ye(n))
|
|
93
93
|
return !1;
|
|
94
94
|
var s = Ge(n);
|
|
95
|
-
return s ==
|
|
95
|
+
return s == ra || s == na || s == ta || s == ia;
|
|
96
96
|
}
|
|
97
|
-
var
|
|
98
|
-
var n = /[^.]+$/.exec(
|
|
97
|
+
var At = q["__core-js_shared__"], Ir = function() {
|
|
98
|
+
var n = /[^.]+$/.exec(At && At.keys && At.keys.IE_PROTO || "");
|
|
99
99
|
return n ? "Symbol(src)_1." + n : "";
|
|
100
100
|
}();
|
|
101
|
-
function
|
|
102
|
-
return !!
|
|
101
|
+
function aa(n) {
|
|
102
|
+
return !!Ir && Ir in n;
|
|
103
103
|
}
|
|
104
|
-
var
|
|
104
|
+
var oa = Function.prototype, ua = oa.toString;
|
|
105
105
|
function de(n) {
|
|
106
106
|
if (n != null) {
|
|
107
107
|
try {
|
|
108
|
-
return
|
|
108
|
+
return ua.call(n);
|
|
109
109
|
} catch {
|
|
110
110
|
}
|
|
111
111
|
try {
|
|
@@ -115,441 +115,442 @@ function de(n) {
|
|
|
115
115
|
}
|
|
116
116
|
return "";
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
"^" +
|
|
118
|
+
var sa = /[\\^$.*+?()[\]{}|]/g, ca = /^\[object .+?Constructor\]$/, fa = Function.prototype, la = Object.prototype, pa = fa.toString, ha = la.hasOwnProperty, da = RegExp(
|
|
119
|
+
"^" + pa.call(ha).replace(sa, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
120
120
|
);
|
|
121
|
-
function
|
|
122
|
-
if (!Ye(n) ||
|
|
121
|
+
function va(n) {
|
|
122
|
+
if (!Ye(n) || aa(n))
|
|
123
123
|
return !1;
|
|
124
|
-
var s =
|
|
124
|
+
var s = hn(n) ? da : ca;
|
|
125
125
|
return s.test(de(n));
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function ya(n, s) {
|
|
128
128
|
return n == null ? void 0 : n[s];
|
|
129
129
|
}
|
|
130
130
|
function ve(n, s) {
|
|
131
|
-
var
|
|
132
|
-
return
|
|
131
|
+
var l = ya(n, s);
|
|
132
|
+
return va(l) ? l : void 0;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
134
|
+
var kt = ve(q, "WeakMap"), kr = Object.create, _a = /* @__PURE__ */ function() {
|
|
135
135
|
function n() {
|
|
136
136
|
}
|
|
137
137
|
return function(s) {
|
|
138
138
|
if (!Ye(s))
|
|
139
139
|
return {};
|
|
140
|
-
if (
|
|
141
|
-
return
|
|
140
|
+
if (kr)
|
|
141
|
+
return kr(s);
|
|
142
142
|
n.prototype = s;
|
|
143
|
-
var
|
|
144
|
-
return n.prototype = void 0,
|
|
143
|
+
var l = new n();
|
|
144
|
+
return n.prototype = void 0, l;
|
|
145
145
|
};
|
|
146
146
|
}();
|
|
147
|
-
function
|
|
148
|
-
var
|
|
149
|
-
for (s || (s = Array(
|
|
150
|
-
s[
|
|
147
|
+
function Ea(n, s) {
|
|
148
|
+
var l = -1, y = n.length;
|
|
149
|
+
for (s || (s = Array(y)); ++l < y; )
|
|
150
|
+
s[l] = n[l];
|
|
151
151
|
return s;
|
|
152
152
|
}
|
|
153
|
-
var
|
|
153
|
+
var Dr = function() {
|
|
154
154
|
try {
|
|
155
155
|
var n = ve(Object, "defineProperty");
|
|
156
156
|
return n({}, "", {}), n;
|
|
157
157
|
} catch {
|
|
158
158
|
}
|
|
159
159
|
}();
|
|
160
|
-
function
|
|
161
|
-
for (var
|
|
160
|
+
function ga(n, s) {
|
|
161
|
+
for (var l = -1, y = n == null ? 0 : n.length; ++l < y && s(n[l], l, n) !== !1; )
|
|
162
162
|
;
|
|
163
163
|
return n;
|
|
164
164
|
}
|
|
165
|
-
var
|
|
166
|
-
function
|
|
167
|
-
var
|
|
168
|
-
return s = s ??
|
|
165
|
+
var ba = 9007199254740991, ma = /^(?:0|[1-9]\d*)$/;
|
|
166
|
+
function Ra(n, s) {
|
|
167
|
+
var l = typeof n;
|
|
168
|
+
return s = s ?? ba, !!s && (l == "number" || l != "symbol" && ma.test(n)) && n > -1 && n % 1 == 0 && n < s;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
s == "__proto__" &&
|
|
170
|
+
function dn(n, s, l) {
|
|
171
|
+
s == "__proto__" && Dr ? Dr(n, s, {
|
|
172
172
|
configurable: !0,
|
|
173
173
|
enumerable: !0,
|
|
174
|
-
value:
|
|
174
|
+
value: l,
|
|
175
175
|
writable: !0
|
|
176
|
-
}) : n[s] =
|
|
176
|
+
}) : n[s] = l;
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function vn(n, s) {
|
|
179
179
|
return n === s || n !== n && s !== s;
|
|
180
180
|
}
|
|
181
|
-
var
|
|
182
|
-
function
|
|
183
|
-
var
|
|
184
|
-
(!(
|
|
185
|
-
}
|
|
186
|
-
function
|
|
187
|
-
var g = !
|
|
188
|
-
|
|
189
|
-
for (var
|
|
190
|
-
var N = s[
|
|
191
|
-
|
|
181
|
+
var Oa = Object.prototype, Na = Oa.hasOwnProperty;
|
|
182
|
+
function yn(n, s, l) {
|
|
183
|
+
var y = n[s];
|
|
184
|
+
(!(Na.call(n, s) && vn(y, l)) || l === void 0 && !(s in n)) && dn(n, s, l);
|
|
185
|
+
}
|
|
186
|
+
function it(n, s, l, y) {
|
|
187
|
+
var g = !l;
|
|
188
|
+
l || (l = {});
|
|
189
|
+
for (var R = -1, m = s.length; ++R < m; ) {
|
|
190
|
+
var N = s[R], T = void 0;
|
|
191
|
+
T === void 0 && (T = n[N]), g ? dn(l, N, T) : yn(l, N, T);
|
|
192
192
|
}
|
|
193
|
-
return
|
|
193
|
+
return l;
|
|
194
|
+
}
|
|
195
|
+
var Ta = 9007199254740991;
|
|
196
|
+
function _n(n) {
|
|
197
|
+
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= Ta;
|
|
194
198
|
}
|
|
195
|
-
var Sa = 9007199254740991;
|
|
196
199
|
function En(n) {
|
|
197
|
-
return
|
|
200
|
+
return n != null && _n(n.length) && !hn(n);
|
|
198
201
|
}
|
|
199
|
-
|
|
200
|
-
|
|
202
|
+
var Sa = Object.prototype;
|
|
203
|
+
function jt(n) {
|
|
204
|
+
var s = n && n.constructor, l = typeof s == "function" && s.prototype || Sa;
|
|
205
|
+
return n === l;
|
|
201
206
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
return
|
|
207
|
+
function Pa(n, s) {
|
|
208
|
+
for (var l = -1, y = Array(n); ++l < n; )
|
|
209
|
+
y[l] = s(l);
|
|
210
|
+
return y;
|
|
206
211
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
return v;
|
|
212
|
+
var wa = "[object Arguments]";
|
|
213
|
+
function Fr(n) {
|
|
214
|
+
return Ve(n) && Ge(n) == wa;
|
|
211
215
|
}
|
|
212
|
-
var xa =
|
|
213
|
-
function Lr(n) {
|
|
214
|
-
return Ve(n) && Ge(n) == xa;
|
|
215
|
-
}
|
|
216
|
-
var bn = Object.prototype, Ca = bn.hasOwnProperty, Aa = bn.propertyIsEnumerable, Ia = Lr(/* @__PURE__ */ function() {
|
|
216
|
+
var gn = Object.prototype, xa = gn.hasOwnProperty, Ca = gn.propertyIsEnumerable, Aa = Fr(/* @__PURE__ */ function() {
|
|
217
217
|
return arguments;
|
|
218
|
-
}()) ?
|
|
219
|
-
return Ve(n) &&
|
|
218
|
+
}()) ? Fr : function(n) {
|
|
219
|
+
return Ve(n) && xa.call(n, "callee") && !Ca.call(n, "callee");
|
|
220
220
|
};
|
|
221
|
-
function
|
|
221
|
+
function Ia() {
|
|
222
222
|
return !1;
|
|
223
223
|
}
|
|
224
|
-
var
|
|
225
|
-
L[qa] = L[Za] = L[Qa] = L[eo] = L[to] = L[ro] = L[no] = L[io] =
|
|
226
|
-
L[La] = L[
|
|
227
|
-
function
|
|
228
|
-
return Ve(n) &&
|
|
224
|
+
var bn = typeof exports == "object" && exports && !exports.nodeType && exports, Lr = bn && typeof module == "object" && module && !module.nodeType && module, ka = Lr && Lr.exports === bn, Mr = ka ? q.Buffer : void 0, Da = Mr ? Mr.isBuffer : void 0, mn = Da || Ia, Fa = "[object Arguments]", La = "[object Array]", Ma = "[object Boolean]", Ua = "[object Date]", ja = "[object Error]", Ba = "[object Function]", $a = "[object Map]", Ga = "[object Number]", Va = "[object Object]", Ya = "[object RegExp]", Xa = "[object Set]", Wa = "[object String]", Ja = "[object WeakMap]", za = "[object ArrayBuffer]", Ha = "[object DataView]", Ka = "[object Float32Array]", qa = "[object Float64Array]", Za = "[object Int8Array]", Qa = "[object Int16Array]", eo = "[object Int32Array]", to = "[object Uint8Array]", ro = "[object Uint8ClampedArray]", no = "[object Uint16Array]", io = "[object Uint32Array]", L = {};
|
|
225
|
+
L[Ka] = L[qa] = L[Za] = L[Qa] = L[eo] = L[to] = L[ro] = L[no] = L[io] = !0;
|
|
226
|
+
L[Fa] = L[La] = L[za] = L[Ma] = L[Ha] = L[Ua] = L[ja] = L[Ba] = L[$a] = L[Ga] = L[Va] = L[Ya] = L[Xa] = L[Wa] = L[Ja] = !1;
|
|
227
|
+
function ao(n) {
|
|
228
|
+
return Ve(n) && _n(n.length) && !!L[Ge(n)];
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Bt(n) {
|
|
231
231
|
return function(s) {
|
|
232
232
|
return n(s);
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
var
|
|
235
|
+
var Rn = typeof exports == "object" && exports && !exports.nodeType && exports, je = Rn && typeof module == "object" && module && !module.nodeType && module, oo = je && je.exports === Rn, It = oo && ln.process, Ne = function() {
|
|
236
236
|
try {
|
|
237
237
|
var n = je && je.require && je.require("util").types;
|
|
238
|
-
return n ||
|
|
238
|
+
return n || It && It.binding && It.binding("util");
|
|
239
239
|
} catch {
|
|
240
240
|
}
|
|
241
|
-
}(),
|
|
242
|
-
function
|
|
243
|
-
var
|
|
241
|
+
}(), Ur = Ne && Ne.isTypedArray, uo = Ur ? Bt(Ur) : ao, so = Object.prototype, co = so.hasOwnProperty;
|
|
242
|
+
function On(n, s) {
|
|
243
|
+
var l = Ut(n), y = !l && Aa(n), g = !l && !y && mn(n), R = !l && !y && !g && uo(n), m = l || y || g || R, N = m ? Pa(n.length, String) : [], T = N.length;
|
|
244
244
|
for (var r in n)
|
|
245
|
-
(s ||
|
|
245
|
+
(s || co.call(n, r)) && !(m && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
246
246
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
247
247
|
g && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
R && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
249
|
+
Ra(r, T))) && N.push(r);
|
|
250
250
|
return N;
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
return function(
|
|
254
|
-
return n(s(
|
|
252
|
+
function Nn(n, s) {
|
|
253
|
+
return function(l) {
|
|
254
|
+
return n(s(l));
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
var
|
|
258
|
-
function
|
|
259
|
-
if (!
|
|
260
|
-
return
|
|
257
|
+
var fo = Nn(Object.keys, Object), lo = Object.prototype, po = lo.hasOwnProperty;
|
|
258
|
+
function ho(n) {
|
|
259
|
+
if (!jt(n))
|
|
260
|
+
return fo(n);
|
|
261
261
|
var s = [];
|
|
262
|
-
for (var
|
|
263
|
-
|
|
262
|
+
for (var l in Object(n))
|
|
263
|
+
po.call(n, l) && l != "constructor" && s.push(l);
|
|
264
264
|
return s;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
return
|
|
266
|
+
function $t(n) {
|
|
267
|
+
return En(n) ? On(n) : ho(n);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function vo(n) {
|
|
270
270
|
var s = [];
|
|
271
271
|
if (n != null)
|
|
272
|
-
for (var
|
|
273
|
-
s.push(
|
|
272
|
+
for (var l in Object(n))
|
|
273
|
+
s.push(l);
|
|
274
274
|
return s;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
276
|
+
var yo = Object.prototype, _o = yo.hasOwnProperty;
|
|
277
|
+
function Eo(n) {
|
|
278
278
|
if (!Ye(n))
|
|
279
|
-
return
|
|
280
|
-
var s =
|
|
281
|
-
for (var
|
|
282
|
-
|
|
283
|
-
return
|
|
279
|
+
return vo(n);
|
|
280
|
+
var s = jt(n), l = [];
|
|
281
|
+
for (var y in n)
|
|
282
|
+
y == "constructor" && (s || !_o.call(n, y)) || l.push(y);
|
|
283
|
+
return l;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function Gt(n) {
|
|
286
|
+
return En(n) ? On(n, !0) : Eo(n);
|
|
287
287
|
}
|
|
288
288
|
var Be = ve(Object, "create");
|
|
289
|
-
function
|
|
289
|
+
function go() {
|
|
290
290
|
this.__data__ = Be ? Be(null) : {}, this.size = 0;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function bo(n) {
|
|
293
293
|
var s = this.has(n) && delete this.__data__[n];
|
|
294
294
|
return this.size -= s ? 1 : 0, s;
|
|
295
295
|
}
|
|
296
|
-
var
|
|
297
|
-
function
|
|
296
|
+
var mo = "__lodash_hash_undefined__", Ro = Object.prototype, Oo = Ro.hasOwnProperty;
|
|
297
|
+
function No(n) {
|
|
298
298
|
var s = this.__data__;
|
|
299
299
|
if (Be) {
|
|
300
|
-
var
|
|
301
|
-
return
|
|
300
|
+
var l = s[n];
|
|
301
|
+
return l === mo ? void 0 : l;
|
|
302
302
|
}
|
|
303
|
-
return
|
|
303
|
+
return Oo.call(s, n) ? s[n] : void 0;
|
|
304
304
|
}
|
|
305
|
-
var
|
|
306
|
-
function
|
|
305
|
+
var To = Object.prototype, So = To.hasOwnProperty;
|
|
306
|
+
function Po(n) {
|
|
307
307
|
var s = this.__data__;
|
|
308
|
-
return Be ? s[n] !== void 0 :
|
|
308
|
+
return Be ? s[n] !== void 0 : So.call(s, n);
|
|
309
309
|
}
|
|
310
|
-
var
|
|
311
|
-
function
|
|
312
|
-
var
|
|
313
|
-
return this.size += this.has(n) ? 0 : 1,
|
|
310
|
+
var wo = "__lodash_hash_undefined__";
|
|
311
|
+
function xo(n, s) {
|
|
312
|
+
var l = this.__data__;
|
|
313
|
+
return this.size += this.has(n) ? 0 : 1, l[n] = Be && s === void 0 ? wo : s, this;
|
|
314
314
|
}
|
|
315
315
|
function he(n) {
|
|
316
|
-
var s = -1,
|
|
317
|
-
for (this.clear(); ++s <
|
|
318
|
-
var
|
|
319
|
-
this.set(
|
|
316
|
+
var s = -1, l = n == null ? 0 : n.length;
|
|
317
|
+
for (this.clear(); ++s < l; ) {
|
|
318
|
+
var y = n[s];
|
|
319
|
+
this.set(y[0], y[1]);
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
he.prototype.clear =
|
|
323
|
-
he.prototype.delete =
|
|
324
|
-
he.prototype.get =
|
|
325
|
-
he.prototype.has =
|
|
326
|
-
he.prototype.set =
|
|
327
|
-
function
|
|
322
|
+
he.prototype.clear = go;
|
|
323
|
+
he.prototype.delete = bo;
|
|
324
|
+
he.prototype.get = No;
|
|
325
|
+
he.prototype.has = Po;
|
|
326
|
+
he.prototype.set = xo;
|
|
327
|
+
function Co() {
|
|
328
328
|
this.__data__ = [], this.size = 0;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
for (var
|
|
332
|
-
if (
|
|
333
|
-
return
|
|
330
|
+
function at(n, s) {
|
|
331
|
+
for (var l = n.length; l--; )
|
|
332
|
+
if (vn(n[l][0], s))
|
|
333
|
+
return l;
|
|
334
334
|
return -1;
|
|
335
335
|
}
|
|
336
|
-
var
|
|
337
|
-
function
|
|
338
|
-
var s = this.__data__,
|
|
339
|
-
if (
|
|
336
|
+
var Ao = Array.prototype, Io = Ao.splice;
|
|
337
|
+
function ko(n) {
|
|
338
|
+
var s = this.__data__, l = at(s, n);
|
|
339
|
+
if (l < 0)
|
|
340
340
|
return !1;
|
|
341
|
-
var
|
|
342
|
-
return
|
|
341
|
+
var y = s.length - 1;
|
|
342
|
+
return l == y ? s.pop() : Io.call(s, l, 1), --this.size, !0;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
345
|
-
var s = this.__data__,
|
|
346
|
-
return
|
|
344
|
+
function Do(n) {
|
|
345
|
+
var s = this.__data__, l = at(s, n);
|
|
346
|
+
return l < 0 ? void 0 : s[l][1];
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
return
|
|
348
|
+
function Fo(n) {
|
|
349
|
+
return at(this.__data__, n) > -1;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
352
|
-
var
|
|
353
|
-
return
|
|
351
|
+
function Lo(n, s) {
|
|
352
|
+
var l = this.__data__, y = at(l, n);
|
|
353
|
+
return y < 0 ? (++this.size, l.push([n, s])) : l[y][1] = s, this;
|
|
354
354
|
}
|
|
355
355
|
function re(n) {
|
|
356
|
-
var s = -1,
|
|
357
|
-
for (this.clear(); ++s <
|
|
358
|
-
var
|
|
359
|
-
this.set(
|
|
356
|
+
var s = -1, l = n == null ? 0 : n.length;
|
|
357
|
+
for (this.clear(); ++s < l; ) {
|
|
358
|
+
var y = n[s];
|
|
359
|
+
this.set(y[0], y[1]);
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
re.prototype.clear =
|
|
363
|
-
re.prototype.delete =
|
|
364
|
-
re.prototype.get =
|
|
365
|
-
re.prototype.has =
|
|
366
|
-
re.prototype.set =
|
|
362
|
+
re.prototype.clear = Co;
|
|
363
|
+
re.prototype.delete = ko;
|
|
364
|
+
re.prototype.get = Do;
|
|
365
|
+
re.prototype.has = Fo;
|
|
366
|
+
re.prototype.set = Lo;
|
|
367
367
|
var $e = ve(q, "Map");
|
|
368
|
-
function
|
|
368
|
+
function Mo() {
|
|
369
369
|
this.size = 0, this.__data__ = {
|
|
370
370
|
hash: new he(),
|
|
371
371
|
map: new ($e || re)(),
|
|
372
372
|
string: new he()
|
|
373
373
|
};
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Uo(n) {
|
|
376
376
|
var s = typeof n;
|
|
377
377
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? n !== "__proto__" : n === null;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
var
|
|
381
|
-
return
|
|
379
|
+
function ot(n, s) {
|
|
380
|
+
var l = n.__data__;
|
|
381
|
+
return Uo(s) ? l[typeof s == "string" ? "string" : "hash"] : l.map;
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
var s =
|
|
383
|
+
function jo(n) {
|
|
384
|
+
var s = ot(this, n).delete(n);
|
|
385
385
|
return this.size -= s ? 1 : 0, s;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
387
|
+
function Bo(n) {
|
|
388
|
+
return ot(this, n).get(n);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
return
|
|
390
|
+
function $o(n) {
|
|
391
|
+
return ot(this, n).has(n);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
var
|
|
395
|
-
return
|
|
393
|
+
function Go(n, s) {
|
|
394
|
+
var l = ot(this, n), y = l.size;
|
|
395
|
+
return l.set(n, s), this.size += l.size == y ? 0 : 1, this;
|
|
396
396
|
}
|
|
397
397
|
function Se(n) {
|
|
398
|
-
var s = -1,
|
|
399
|
-
for (this.clear(); ++s <
|
|
400
|
-
var
|
|
401
|
-
this.set(
|
|
398
|
+
var s = -1, l = n == null ? 0 : n.length;
|
|
399
|
+
for (this.clear(); ++s < l; ) {
|
|
400
|
+
var y = n[s];
|
|
401
|
+
this.set(y[0], y[1]);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
Se.prototype.clear =
|
|
405
|
-
Se.prototype.delete =
|
|
406
|
-
Se.prototype.get =
|
|
407
|
-
Se.prototype.has =
|
|
408
|
-
Se.prototype.set =
|
|
409
|
-
function
|
|
410
|
-
for (var
|
|
411
|
-
n[g +
|
|
404
|
+
Se.prototype.clear = Mo;
|
|
405
|
+
Se.prototype.delete = jo;
|
|
406
|
+
Se.prototype.get = Bo;
|
|
407
|
+
Se.prototype.has = $o;
|
|
408
|
+
Se.prototype.set = Go;
|
|
409
|
+
function Tn(n, s) {
|
|
410
|
+
for (var l = -1, y = s.length, g = n.length; ++l < y; )
|
|
411
|
+
n[g + l] = s[l];
|
|
412
412
|
return n;
|
|
413
413
|
}
|
|
414
|
-
var
|
|
415
|
-
function
|
|
414
|
+
var Sn = Nn(Object.getPrototypeOf, Object);
|
|
415
|
+
function Vo() {
|
|
416
416
|
this.__data__ = new re(), this.size = 0;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
var s = this.__data__,
|
|
420
|
-
return this.size = s.size,
|
|
418
|
+
function Yo(n) {
|
|
419
|
+
var s = this.__data__, l = s.delete(n);
|
|
420
|
+
return this.size = s.size, l;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Xo(n) {
|
|
423
423
|
return this.__data__.get(n);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Wo(n) {
|
|
426
426
|
return this.__data__.has(n);
|
|
427
427
|
}
|
|
428
|
-
var
|
|
429
|
-
function
|
|
430
|
-
var
|
|
431
|
-
if (
|
|
432
|
-
var
|
|
433
|
-
if (!$e ||
|
|
434
|
-
return
|
|
435
|
-
|
|
428
|
+
var Jo = 200;
|
|
429
|
+
function zo(n, s) {
|
|
430
|
+
var l = this.__data__;
|
|
431
|
+
if (l instanceof re) {
|
|
432
|
+
var y = l.__data__;
|
|
433
|
+
if (!$e || y.length < Jo - 1)
|
|
434
|
+
return y.push([n, s]), this.size = ++l.size, this;
|
|
435
|
+
l = this.__data__ = new Se(y);
|
|
436
436
|
}
|
|
437
|
-
return
|
|
437
|
+
return l.set(n, s), this.size = l.size, this;
|
|
438
438
|
}
|
|
439
439
|
function Pe(n) {
|
|
440
440
|
var s = this.__data__ = new re(n);
|
|
441
441
|
this.size = s.size;
|
|
442
442
|
}
|
|
443
|
-
Pe.prototype.clear =
|
|
444
|
-
Pe.prototype.delete =
|
|
445
|
-
Pe.prototype.get =
|
|
446
|
-
Pe.prototype.has =
|
|
447
|
-
Pe.prototype.set =
|
|
448
|
-
function
|
|
449
|
-
return n &&
|
|
443
|
+
Pe.prototype.clear = Vo;
|
|
444
|
+
Pe.prototype.delete = Yo;
|
|
445
|
+
Pe.prototype.get = Xo;
|
|
446
|
+
Pe.prototype.has = Wo;
|
|
447
|
+
Pe.prototype.set = zo;
|
|
448
|
+
function Ho(n, s) {
|
|
449
|
+
return n && it(s, $t(s), n);
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
return n &&
|
|
451
|
+
function Ko(n, s) {
|
|
452
|
+
return n && it(s, Gt(s), n);
|
|
453
453
|
}
|
|
454
|
-
var
|
|
455
|
-
function
|
|
454
|
+
var Pn = typeof exports == "object" && exports && !exports.nodeType && exports, jr = Pn && typeof module == "object" && module && !module.nodeType && module, qo = jr && jr.exports === Pn, Br = qo ? q.Buffer : void 0, $r = Br ? Br.allocUnsafe : void 0;
|
|
455
|
+
function Zo(n, s) {
|
|
456
456
|
if (s)
|
|
457
457
|
return n.slice();
|
|
458
|
-
var
|
|
459
|
-
return n.copy(
|
|
458
|
+
var l = n.length, y = $r ? $r(l) : new n.constructor(l);
|
|
459
|
+
return n.copy(y), y;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
462
|
-
for (var
|
|
463
|
-
var m = n[
|
|
464
|
-
s(m,
|
|
461
|
+
function Qo(n, s) {
|
|
462
|
+
for (var l = -1, y = n == null ? 0 : n.length, g = 0, R = []; ++l < y; ) {
|
|
463
|
+
var m = n[l];
|
|
464
|
+
s(m, l, n) && (R[g++] = m);
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return R;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function wn() {
|
|
469
469
|
return [];
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
return n == null ? [] : (n = Object(n),
|
|
473
|
-
return
|
|
471
|
+
var eu = Object.prototype, tu = eu.propertyIsEnumerable, Gr = Object.getOwnPropertySymbols, Vt = Gr ? function(n) {
|
|
472
|
+
return n == null ? [] : (n = Object(n), Qo(Gr(n), function(s) {
|
|
473
|
+
return tu.call(n, s);
|
|
474
474
|
}));
|
|
475
|
-
} :
|
|
476
|
-
function
|
|
477
|
-
return
|
|
475
|
+
} : wn;
|
|
476
|
+
function ru(n, s) {
|
|
477
|
+
return it(n, Vt(n), s);
|
|
478
478
|
}
|
|
479
|
-
var
|
|
479
|
+
var nu = Object.getOwnPropertySymbols, xn = nu ? function(n) {
|
|
480
480
|
for (var s = []; n; )
|
|
481
|
-
|
|
481
|
+
Tn(s, Vt(n)), n = Sn(n);
|
|
482
482
|
return s;
|
|
483
|
-
} :
|
|
484
|
-
function
|
|
485
|
-
return
|
|
483
|
+
} : wn;
|
|
484
|
+
function iu(n, s) {
|
|
485
|
+
return it(n, xn(n), s);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
488
|
-
var
|
|
489
|
-
return
|
|
487
|
+
function Cn(n, s, l) {
|
|
488
|
+
var y = s(n);
|
|
489
|
+
return Ut(n) ? y : Tn(y, l(n));
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
return
|
|
493
|
-
}
|
|
494
|
-
function uu(n) {
|
|
495
|
-
return An(n, Vt, Cn);
|
|
491
|
+
function au(n) {
|
|
492
|
+
return Cn(n, $t, Vt);
|
|
496
493
|
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
494
|
+
function ou(n) {
|
|
495
|
+
return Cn(n, Gt, xn);
|
|
496
|
+
}
|
|
497
|
+
var Dt = ve(q, "DataView"), Ft = ve(q, "Promise"), Lt = ve(q, "Set"), Vr = "[object Map]", uu = "[object Object]", Yr = "[object Promise]", Xr = "[object Set]", Wr = "[object WeakMap]", Jr = "[object DataView]", su = de(Dt), cu = de($e), fu = de(Ft), lu = de(Lt), pu = de(kt), te = Ge;
|
|
498
|
+
(Dt && te(new Dt(new ArrayBuffer(1))) != Jr || $e && te(new $e()) != Vr || Ft && te(Ft.resolve()) != Yr || Lt && te(new Lt()) != Xr || kt && te(new kt()) != Wr) && (te = function(n) {
|
|
499
|
+
var s = Ge(n), l = s == uu ? n.constructor : void 0, y = l ? de(l) : "";
|
|
500
|
+
if (y)
|
|
501
|
+
switch (y) {
|
|
502
|
+
case su:
|
|
503
|
+
return Jr;
|
|
502
504
|
case cu:
|
|
503
|
-
return
|
|
505
|
+
return Vr;
|
|
504
506
|
case fu:
|
|
505
507
|
return Yr;
|
|
506
508
|
case lu:
|
|
507
509
|
return Xr;
|
|
508
510
|
case pu:
|
|
509
511
|
return Wr;
|
|
510
|
-
case hu:
|
|
511
|
-
return Jr;
|
|
512
512
|
}
|
|
513
513
|
return s;
|
|
514
514
|
});
|
|
515
|
-
var
|
|
516
|
-
function
|
|
517
|
-
var s = n.length,
|
|
518
|
-
return s && typeof n[0] == "string" &&
|
|
515
|
+
var hu = Object.prototype, du = hu.hasOwnProperty;
|
|
516
|
+
function vu(n) {
|
|
517
|
+
var s = n.length, l = new n.constructor(s);
|
|
518
|
+
return s && typeof n[0] == "string" && du.call(n, "index") && (l.index = n.index, l.input = n.input), l;
|
|
519
519
|
}
|
|
520
|
-
var
|
|
521
|
-
function
|
|
520
|
+
var zr = q.Uint8Array;
|
|
521
|
+
function Yt(n) {
|
|
522
522
|
var s = new n.constructor(n.byteLength);
|
|
523
|
-
return new
|
|
523
|
+
return new zr(s).set(new zr(n)), s;
|
|
524
524
|
}
|
|
525
|
-
function
|
|
526
|
-
var
|
|
527
|
-
return new n.constructor(
|
|
525
|
+
function yu(n, s) {
|
|
526
|
+
var l = s ? Yt(n.buffer) : n.buffer;
|
|
527
|
+
return new n.constructor(l, n.byteOffset, n.byteLength);
|
|
528
528
|
}
|
|
529
|
-
var
|
|
530
|
-
function
|
|
531
|
-
var s = new n.constructor(n.source,
|
|
529
|
+
var _u = /\w*$/;
|
|
530
|
+
function Eu(n) {
|
|
531
|
+
var s = new n.constructor(n.source, _u.exec(n));
|
|
532
532
|
return s.lastIndex = n.lastIndex, s;
|
|
533
533
|
}
|
|
534
|
-
var
|
|
535
|
-
function
|
|
536
|
-
return
|
|
534
|
+
var Hr = Oe ? Oe.prototype : void 0, Kr = Hr ? Hr.valueOf : void 0;
|
|
535
|
+
function gu(n) {
|
|
536
|
+
return Kr ? Object(Kr.call(n)) : {};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
var
|
|
540
|
-
return new n.constructor(
|
|
538
|
+
function bu(n, s) {
|
|
539
|
+
var l = s ? Yt(n.buffer) : n.buffer;
|
|
540
|
+
return new n.constructor(l, n.byteOffset, n.length);
|
|
541
541
|
}
|
|
542
|
-
var
|
|
543
|
-
function
|
|
544
|
-
var
|
|
542
|
+
var mu = "[object Boolean]", Ru = "[object Date]", Ou = "[object Map]", Nu = "[object Number]", Tu = "[object RegExp]", Su = "[object Set]", Pu = "[object String]", wu = "[object Symbol]", xu = "[object ArrayBuffer]", Cu = "[object DataView]", Au = "[object Float32Array]", Iu = "[object Float64Array]", ku = "[object Int8Array]", Du = "[object Int16Array]", Fu = "[object Int32Array]", Lu = "[object Uint8Array]", Mu = "[object Uint8ClampedArray]", Uu = "[object Uint16Array]", ju = "[object Uint32Array]";
|
|
543
|
+
function Bu(n, s, l) {
|
|
544
|
+
var y = n.constructor;
|
|
545
545
|
switch (s) {
|
|
546
|
-
case
|
|
547
|
-
return
|
|
546
|
+
case xu:
|
|
547
|
+
return Yt(n);
|
|
548
|
+
case mu:
|
|
548
549
|
case Ru:
|
|
549
|
-
|
|
550
|
-
|
|
550
|
+
return new y(+n);
|
|
551
|
+
case Cu:
|
|
552
|
+
return yu(n, l);
|
|
551
553
|
case Au:
|
|
552
|
-
return _u(n, p);
|
|
553
554
|
case Iu:
|
|
554
555
|
case ku:
|
|
555
556
|
case Du:
|
|
@@ -558,89 +559,88 @@ function $u(n, s, p) {
|
|
|
558
559
|
case Mu:
|
|
559
560
|
case Uu:
|
|
560
561
|
case ju:
|
|
561
|
-
|
|
562
|
-
|
|
562
|
+
return bu(n, l);
|
|
563
|
+
case Ou:
|
|
564
|
+
return new y();
|
|
563
565
|
case Nu:
|
|
564
|
-
|
|
566
|
+
case Pu:
|
|
567
|
+
return new y(n);
|
|
565
568
|
case Tu:
|
|
566
|
-
|
|
567
|
-
return new v(n);
|
|
569
|
+
return Eu(n);
|
|
568
570
|
case Su:
|
|
571
|
+
return new y();
|
|
572
|
+
case wu:
|
|
569
573
|
return gu(n);
|
|
570
|
-
case Pu:
|
|
571
|
-
return new v();
|
|
572
|
-
case xu:
|
|
573
|
-
return bu(n);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
function
|
|
577
|
-
return typeof n.constructor == "function" && !
|
|
576
|
+
function $u(n) {
|
|
577
|
+
return typeof n.constructor == "function" && !jt(n) ? _a(Sn(n)) : {};
|
|
578
578
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
581
|
-
return Ve(n) && te(n) ==
|
|
579
|
+
var Gu = "[object Map]";
|
|
580
|
+
function Vu(n) {
|
|
581
|
+
return Ve(n) && te(n) == Gu;
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
function
|
|
585
|
-
return Ve(n) && te(n) ==
|
|
583
|
+
var qr = Ne && Ne.isMap, Yu = qr ? Bt(qr) : Vu, Xu = "[object Set]";
|
|
584
|
+
function Wu(n) {
|
|
585
|
+
return Ve(n) && te(n) == Xu;
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
F[
|
|
589
|
-
F[
|
|
590
|
-
function rt(n, s,
|
|
591
|
-
var m, N = s &
|
|
587
|
+
var Zr = Ne && Ne.isSet, Ju = Zr ? Bt(Zr) : Wu, zu = 1, Hu = 2, Ku = 4, An = "[object Arguments]", qu = "[object Array]", Zu = "[object Boolean]", Qu = "[object Date]", es = "[object Error]", In = "[object Function]", ts = "[object GeneratorFunction]", rs = "[object Map]", ns = "[object Number]", kn = "[object Object]", is = "[object RegExp]", as = "[object Set]", os = "[object String]", us = "[object Symbol]", ss = "[object WeakMap]", cs = "[object ArrayBuffer]", fs = "[object DataView]", ls = "[object Float32Array]", ps = "[object Float64Array]", hs = "[object Int8Array]", ds = "[object Int16Array]", vs = "[object Int32Array]", ys = "[object Uint8Array]", _s = "[object Uint8ClampedArray]", Es = "[object Uint16Array]", gs = "[object Uint32Array]", F = {};
|
|
588
|
+
F[An] = F[qu] = F[cs] = F[fs] = F[Zu] = F[Qu] = F[ls] = F[ps] = F[hs] = F[ds] = F[vs] = F[rs] = F[ns] = F[kn] = F[is] = F[as] = F[os] = F[us] = F[ys] = F[_s] = F[Es] = F[gs] = !0;
|
|
589
|
+
F[es] = F[In] = F[ss] = !1;
|
|
590
|
+
function rt(n, s, l, y, g, R) {
|
|
591
|
+
var m, N = s & zu, T = s & Hu, r = s & Ku;
|
|
592
592
|
if (m !== void 0)
|
|
593
593
|
return m;
|
|
594
594
|
if (!Ye(n))
|
|
595
595
|
return n;
|
|
596
|
-
var t =
|
|
596
|
+
var t = Ut(n);
|
|
597
597
|
if (t) {
|
|
598
|
-
if (m =
|
|
599
|
-
return
|
|
598
|
+
if (m = vu(n), !N)
|
|
599
|
+
return Ea(n, m);
|
|
600
600
|
} else {
|
|
601
|
-
var e = te(n), i = e ==
|
|
602
|
-
if (
|
|
603
|
-
return
|
|
604
|
-
if (e ==
|
|
605
|
-
if (m =
|
|
606
|
-
return
|
|
601
|
+
var e = te(n), i = e == In || e == ts;
|
|
602
|
+
if (mn(n))
|
|
603
|
+
return Zo(n, N);
|
|
604
|
+
if (e == kn || e == An || i && !g) {
|
|
605
|
+
if (m = T || i ? {} : $u(n), !N)
|
|
606
|
+
return T ? iu(n, Ko(m, n)) : ru(n, Ho(m, n));
|
|
607
607
|
} else {
|
|
608
608
|
if (!F[e])
|
|
609
609
|
return g ? n : {};
|
|
610
|
-
m =
|
|
610
|
+
m = Bu(n, e, N);
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
|
|
614
|
-
var o =
|
|
613
|
+
R || (R = new Pe());
|
|
614
|
+
var o = R.get(n);
|
|
615
615
|
if (o)
|
|
616
616
|
return o;
|
|
617
|
-
|
|
618
|
-
m.add(rt(a, s,
|
|
619
|
-
}) :
|
|
620
|
-
m.set(
|
|
617
|
+
R.set(n, m), Ju(n) ? n.forEach(function(a) {
|
|
618
|
+
m.add(rt(a, s, l, a, n, R));
|
|
619
|
+
}) : Yu(n) && n.forEach(function(a, p) {
|
|
620
|
+
m.set(p, rt(a, s, l, p, n, R));
|
|
621
621
|
});
|
|
622
|
-
var u = r ?
|
|
623
|
-
return
|
|
624
|
-
c && (
|
|
622
|
+
var u = r ? T ? ou : au : T ? Gt : $t, c = t ? void 0 : u(n);
|
|
623
|
+
return ga(c || n, function(a, p) {
|
|
624
|
+
c && (p = a, a = n[p]), yn(m, p, rt(a, s, l, p, n, R));
|
|
625
625
|
}), m;
|
|
626
626
|
}
|
|
627
|
-
var
|
|
628
|
-
function
|
|
629
|
-
return rt(n,
|
|
627
|
+
var bs = 1, ms = 4;
|
|
628
|
+
function Mt(n) {
|
|
629
|
+
return rt(n, bs | ms);
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Rs(n, s) {
|
|
632
632
|
if (n === "page") {
|
|
633
633
|
if (s == "common")
|
|
634
634
|
return "pageCommon";
|
|
635
635
|
} else if (n === "comp" && s === "common")
|
|
636
636
|
return "compCommon";
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
var s,
|
|
638
|
+
function Qr(n) {
|
|
639
|
+
var s, l;
|
|
640
640
|
if (n.array)
|
|
641
|
-
return n.default instanceof Array ?
|
|
641
|
+
return n.default instanceof Array ? Mt(n.default) : [];
|
|
642
642
|
if (n.default !== void 0)
|
|
643
|
-
return
|
|
643
|
+
return Mt(n.default);
|
|
644
644
|
switch (n.ui) {
|
|
645
645
|
case "void":
|
|
646
646
|
return null;
|
|
@@ -655,28 +655,28 @@ function en(n) {
|
|
|
655
655
|
case "colorPicker":
|
|
656
656
|
return "#FFFFFF";
|
|
657
657
|
case "multiTypes":
|
|
658
|
-
return ((
|
|
658
|
+
return ((l = n.types) == null ? void 0 : l[0].default) ?? "";
|
|
659
659
|
default:
|
|
660
660
|
console.assert(!1, `not implemented ui=${n.ui}`);
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
function
|
|
665
|
-
g.static || (g.children ? g.array ?
|
|
666
|
-
|
|
667
|
-
}) :
|
|
663
|
+
function en(n, s) {
|
|
664
|
+
function l(y, g) {
|
|
665
|
+
g.static || (g.children ? g.array ? y[g.key] = Qr(g) : g.children.forEach((R) => {
|
|
666
|
+
y[g.key] = {}, l(y[g.key], R);
|
|
667
|
+
}) : y[g.key] = Qr(g));
|
|
668
668
|
}
|
|
669
|
-
s.forEach((
|
|
669
|
+
s.forEach((y) => l(n, y));
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
const
|
|
673
|
-
if (!
|
|
671
|
+
function Os(n, s, l, y, g) {
|
|
672
|
+
const R = Rs(n, s);
|
|
673
|
+
if (!R) {
|
|
674
674
|
console.error(`prop tag not found type=${n} subtype=${s}`);
|
|
675
675
|
return;
|
|
676
676
|
}
|
|
677
|
-
const m =
|
|
677
|
+
const m = cn[l];
|
|
678
678
|
if (!m) {
|
|
679
|
-
console.error(`pkg not found version=${
|
|
679
|
+
console.error(`pkg not found version=${l}`);
|
|
680
680
|
return;
|
|
681
681
|
}
|
|
682
682
|
const N = {
|
|
@@ -684,8 +684,8 @@ function Ns(n, s, p, v, g) {
|
|
|
684
684
|
id: "",
|
|
685
685
|
key: ""
|
|
686
686
|
}
|
|
687
|
-
},
|
|
688
|
-
if (
|
|
687
|
+
}, T = fn(16);
|
|
688
|
+
if (y) {
|
|
689
689
|
const r = m.refKey, t = g;
|
|
690
690
|
if (!m.elements.has(r)) {
|
|
691
691
|
console.error(`[ref] element not found in pkg key=${r}`);
|
|
@@ -696,12 +696,12 @@ function Ns(n, s, p, v, g) {
|
|
|
696
696
|
console.error(`[ref] element not found in global key=${r}`);
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
|
-
const i = e.props[
|
|
699
|
+
const i = e.props[R];
|
|
700
700
|
if (!i) {
|
|
701
|
-
console.error(`[ref] props not found key=${r} tag=${
|
|
701
|
+
console.error(`[ref] props not found key=${r} tag=${R}`);
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
|
-
|
|
704
|
+
en(N, i), N.basic.id = T, N.basic.key = r, N.ref = {
|
|
705
705
|
id: t
|
|
706
706
|
};
|
|
707
707
|
} else {
|
|
@@ -715,41 +715,47 @@ function Ns(n, s, p, v, g) {
|
|
|
715
715
|
console.error(`[key] element not found in global key=${r}`);
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
const e = t.props[
|
|
718
|
+
const e = t.props[R];
|
|
719
719
|
if (!e) {
|
|
720
|
-
console.error(`[key] props not found key=${r} tag=${
|
|
720
|
+
console.error(`[key] props not found key=${r} tag=${R}`);
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
723
|
-
|
|
723
|
+
en(N, e), N.basic.id = T, N.basic.key = r, t.leaf || (N.children = []);
|
|
724
724
|
}
|
|
725
725
|
return N;
|
|
726
726
|
}
|
|
727
|
-
function
|
|
728
|
-
function
|
|
729
|
-
if (
|
|
730
|
-
return
|
|
731
|
-
if (
|
|
732
|
-
for (let g = 0; g <
|
|
733
|
-
const
|
|
734
|
-
if (
|
|
735
|
-
return
|
|
727
|
+
function pc(n, s) {
|
|
728
|
+
function l(y) {
|
|
729
|
+
if (y.basic.id === s)
|
|
730
|
+
return y;
|
|
731
|
+
if (y.children)
|
|
732
|
+
for (let g = 0; g < y.children.length; g++) {
|
|
733
|
+
const R = l(y.children[g]);
|
|
734
|
+
if (R)
|
|
735
|
+
return R;
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
|
-
for (let
|
|
739
|
-
const g =
|
|
738
|
+
for (let y = 0; y < n.length; y++) {
|
|
739
|
+
const g = l(n[y]);
|
|
740
740
|
if (g)
|
|
741
741
|
return g;
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
|
-
function
|
|
745
|
-
function s(
|
|
744
|
+
function hc(n) {
|
|
745
|
+
function s(y) {
|
|
746
746
|
var g;
|
|
747
|
-
|
|
747
|
+
y.basic.id = fn(16), (g = y.children) == null || g.forEach((R) => s(R));
|
|
748
748
|
}
|
|
749
|
-
const
|
|
750
|
-
return s(
|
|
749
|
+
const l = Mt(n);
|
|
750
|
+
return s(l), l;
|
|
751
|
+
}
|
|
752
|
+
const Dn = "runtimeEnv", Fn = "runtimeMode", Ln = "runtimeDevice", Mn = "runtimeDark", Un = "runtimeType", jn = "runtimeData", Bn = "runtimeDepends", $n = "runtimeInterpreter";
|
|
753
|
+
function dc(n) {
|
|
754
|
+
oe(Dn, ue(n));
|
|
755
|
+
}
|
|
756
|
+
function Ns() {
|
|
757
|
+
return se(Dn);
|
|
751
758
|
}
|
|
752
|
-
const Fn = "runtimeEnv", Ln = "runtimeMode", Mn = "runtimeDevice", Un = "runtimeDark", jn = "runtimeType", Bn = "runtimeData", $n = "runtimeDepends", Gn = "runtimeInterpreter";
|
|
753
759
|
function vc(n) {
|
|
754
760
|
oe(Fn, ue(n));
|
|
755
761
|
}
|
|
@@ -781,42 +787,34 @@ function xs() {
|
|
|
781
787
|
return se(jn);
|
|
782
788
|
}
|
|
783
789
|
function bc(n) {
|
|
784
|
-
|
|
790
|
+
oe(Bn, ue(n));
|
|
785
791
|
}
|
|
786
792
|
function Cs() {
|
|
787
|
-
|
|
788
|
-
return console.assert(it(n)), n;
|
|
789
|
-
}
|
|
790
|
-
function mc(n) {
|
|
791
|
-
console.assert(it(n)), oe($n, ue(n));
|
|
792
|
-
}
|
|
793
|
-
function As() {
|
|
794
|
-
const n = se($n);
|
|
795
|
-
return console.assert(it(n)), n;
|
|
793
|
+
return se(Bn);
|
|
796
794
|
}
|
|
797
|
-
function
|
|
798
|
-
oe(
|
|
795
|
+
function As(n) {
|
|
796
|
+
oe($n, ue(n));
|
|
799
797
|
}
|
|
800
|
-
function
|
|
801
|
-
return se(
|
|
798
|
+
function mc() {
|
|
799
|
+
return se($n);
|
|
802
800
|
}
|
|
803
|
-
const
|
|
801
|
+
const Is = /* @__PURE__ */ an({
|
|
804
802
|
__name: "index",
|
|
805
803
|
props: {
|
|
806
804
|
node: {},
|
|
807
805
|
outer: { type: Boolean }
|
|
808
806
|
},
|
|
809
807
|
setup(n) {
|
|
810
|
-
const s =
|
|
808
|
+
const s = n, l = Ps(), y = W(() => s.node.settings.text), g = W(() => s.node.settings.disabled), R = W(() => s.node.settings.variant), m = W(() => s.node.settings.density), N = W(() => s.node.settings.block), T = W(() => l.value ? "dark" : "light");
|
|
811
809
|
return (r, t) => {
|
|
812
|
-
const e =
|
|
813
|
-
return
|
|
814
|
-
text:
|
|
810
|
+
const e = xi("v-btn");
|
|
811
|
+
return on(), un(e, {
|
|
812
|
+
text: y.value,
|
|
815
813
|
disabled: g.value,
|
|
816
|
-
variant:
|
|
814
|
+
variant: R.value,
|
|
817
815
|
density: m.value,
|
|
818
816
|
block: N.value,
|
|
819
|
-
theme:
|
|
817
|
+
theme: T.value
|
|
820
818
|
}, null, 8, ["text", "disabled", "variant", "density", "block", "theme"]);
|
|
821
819
|
};
|
|
822
820
|
}
|
|
@@ -842,18 +840,18 @@ const ks = /* @__PURE__ */ on({
|
|
|
842
840
|
ui: "strInput"
|
|
843
841
|
}
|
|
844
842
|
]
|
|
845
|
-
},
|
|
843
|
+
}, ks = [
|
|
846
844
|
{ title: "x-runtime-lib.elevated", value: "elevated" },
|
|
847
845
|
{ title: "x-runtime-lib.flat", value: "flat" },
|
|
848
846
|
{ title: "x-runtime-lib.tonal", value: "tonal" },
|
|
849
847
|
{ title: "x-runtime-lib.outlined", value: "outlined" },
|
|
850
848
|
{ title: "x-runtime-lib.text", value: "text" },
|
|
851
849
|
{ title: "x-runtime-lib.plain", value: "plain" }
|
|
852
|
-
],
|
|
850
|
+
], Ds = [
|
|
853
851
|
{ title: "x-runtime-lib.default", value: "default" },
|
|
854
852
|
{ title: "x-runtime-lib.comfortable", value: "comfortable" },
|
|
855
853
|
{ title: "x-runtime-lib.compact", value: "compact" }
|
|
856
|
-
],
|
|
854
|
+
], tn = {
|
|
857
855
|
key: "settings",
|
|
858
856
|
name: "x-runtime-lib.settings",
|
|
859
857
|
children: [
|
|
@@ -873,14 +871,14 @@ const ks = /* @__PURE__ */ on({
|
|
|
873
871
|
key: "variant",
|
|
874
872
|
name: "x-runtime-lib.variant",
|
|
875
873
|
ui: "select",
|
|
876
|
-
items:
|
|
874
|
+
items: ks,
|
|
877
875
|
default: "elevated"
|
|
878
876
|
},
|
|
879
877
|
{
|
|
880
878
|
key: "density",
|
|
881
879
|
name: "x-runtime-lib.density",
|
|
882
880
|
ui: "select",
|
|
883
|
-
items:
|
|
881
|
+
items: Ds,
|
|
884
882
|
default: "default"
|
|
885
883
|
},
|
|
886
884
|
{
|
|
@@ -890,10 +888,10 @@ const ks = /* @__PURE__ */ on({
|
|
|
890
888
|
default: !1
|
|
891
889
|
}
|
|
892
890
|
]
|
|
893
|
-
},
|
|
891
|
+
}, Fs = {
|
|
894
892
|
key: "btn_v1",
|
|
895
893
|
name: "x-runtime-lib.button",
|
|
896
|
-
comp:
|
|
894
|
+
comp: Is,
|
|
897
895
|
leaf: !0,
|
|
898
896
|
events: [
|
|
899
897
|
{
|
|
@@ -904,10 +902,10 @@ const ks = /* @__PURE__ */ on({
|
|
|
904
902
|
],
|
|
905
903
|
methods: [],
|
|
906
904
|
props: {
|
|
907
|
-
pageCommon: [nt,
|
|
908
|
-
compCommon: [nt,
|
|
905
|
+
pageCommon: [nt, tn],
|
|
906
|
+
compCommon: [nt, tn]
|
|
909
907
|
}
|
|
910
|
-
},
|
|
908
|
+
}, rn = {
|
|
911
909
|
key: "globalSettings",
|
|
912
910
|
name: "x-runtime-lib.globalSettings",
|
|
913
911
|
children: [
|
|
@@ -918,7 +916,7 @@ const ks = /* @__PURE__ */ on({
|
|
|
918
916
|
default: "#00000000"
|
|
919
917
|
}
|
|
920
918
|
]
|
|
921
|
-
},
|
|
919
|
+
}, Ls = {
|
|
922
920
|
key: "globality_v1",
|
|
923
921
|
name: "x-runtime-lib.globality",
|
|
924
922
|
comp: "",
|
|
@@ -956,81 +954,81 @@ const ks = /* @__PURE__ */ on({
|
|
|
956
954
|
],
|
|
957
955
|
methods: [],
|
|
958
956
|
props: {
|
|
959
|
-
pageCommon: [
|
|
960
|
-
compCommon: [
|
|
957
|
+
pageCommon: [rn],
|
|
958
|
+
compCommon: [rn]
|
|
961
959
|
},
|
|
962
960
|
internal: !0
|
|
963
961
|
};
|
|
964
|
-
function
|
|
965
|
-
const
|
|
966
|
-
if (
|
|
967
|
-
const t =
|
|
962
|
+
function Ms(n, s, l) {
|
|
963
|
+
const y = W(() => l.node.width), g = W(() => l.node.minWidth), R = W(() => l.node.maxWidth), m = W(() => {
|
|
964
|
+
if (l.outer && n.value === "editor") {
|
|
965
|
+
const t = Ct(l.node.height);
|
|
968
966
|
if (t)
|
|
969
|
-
return t / 100 *
|
|
967
|
+
return t / 100 * s.value.height + "px";
|
|
970
968
|
}
|
|
971
|
-
return
|
|
969
|
+
return l.node.height;
|
|
972
970
|
}), N = W(() => {
|
|
973
|
-
if (
|
|
974
|
-
const t =
|
|
971
|
+
if (l.outer && n.value === "editor") {
|
|
972
|
+
const t = Ct(l.node.minHeight);
|
|
975
973
|
if (t)
|
|
976
|
-
return t / 100 *
|
|
974
|
+
return t / 100 * s.value.height + "px";
|
|
977
975
|
}
|
|
978
|
-
return
|
|
979
|
-
}),
|
|
980
|
-
if (
|
|
981
|
-
const t =
|
|
976
|
+
return l.node.minHeight;
|
|
977
|
+
}), T = W(() => {
|
|
978
|
+
if (l.outer && n.value === "editor") {
|
|
979
|
+
const t = Ct(l.node.maxHeight);
|
|
982
980
|
if (t)
|
|
983
|
-
return t / 100 *
|
|
981
|
+
return t / 100 * s.value.height + "px";
|
|
984
982
|
}
|
|
985
|
-
return
|
|
983
|
+
return l.node.maxHeight;
|
|
986
984
|
});
|
|
987
985
|
function r(t) {
|
|
988
|
-
|
|
986
|
+
y.value && (t.width = y.value), g.value && (t.minWidth = g.value), R.value && (t.maxWidth = R.value), m.value && (t.height = m.value), N.value && (t.minHeight = N.value), T.value && (t.maxHeight = T.value);
|
|
989
987
|
}
|
|
990
|
-
return { width:
|
|
988
|
+
return { width: y, minWidth: g, maxWidth: R, height: m, minHeight: N, maxHeight: T, applySize: r };
|
|
991
989
|
}
|
|
992
|
-
var
|
|
993
|
-
function
|
|
990
|
+
var Us = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
991
|
+
function js(n) {
|
|
994
992
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
995
993
|
}
|
|
996
|
-
function
|
|
994
|
+
function Bs(n) {
|
|
997
995
|
if (n.__esModule) return n;
|
|
998
996
|
var s = n.default;
|
|
999
997
|
if (typeof s == "function") {
|
|
1000
|
-
var
|
|
1001
|
-
return this instanceof
|
|
998
|
+
var l = function y() {
|
|
999
|
+
return this instanceof y ? Reflect.construct(s, arguments, this.constructor) : s.apply(this, arguments);
|
|
1002
1000
|
};
|
|
1003
|
-
|
|
1004
|
-
} else
|
|
1005
|
-
return Object.defineProperty(
|
|
1006
|
-
var g = Object.getOwnPropertyDescriptor(n,
|
|
1007
|
-
Object.defineProperty(
|
|
1001
|
+
l.prototype = s.prototype;
|
|
1002
|
+
} else l = {};
|
|
1003
|
+
return Object.defineProperty(l, "__esModule", { value: !0 }), Object.keys(n).forEach(function(y) {
|
|
1004
|
+
var g = Object.getOwnPropertyDescriptor(n, y);
|
|
1005
|
+
Object.defineProperty(l, y, g.get ? g : {
|
|
1008
1006
|
enumerable: !0,
|
|
1009
1007
|
get: function() {
|
|
1010
|
-
return n[
|
|
1008
|
+
return n[y];
|
|
1011
1009
|
}
|
|
1012
1010
|
});
|
|
1013
|
-
}),
|
|
1011
|
+
}), l;
|
|
1014
1012
|
}
|
|
1015
|
-
var
|
|
1016
|
-
const
|
|
1013
|
+
var Gn = { exports: {} };
|
|
1014
|
+
const $s = {}, Gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1017
1015
|
__proto__: null,
|
|
1018
|
-
default:
|
|
1019
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1016
|
+
default: $s
|
|
1017
|
+
}, Symbol.toStringTag, { value: "Module" })), Vs = /* @__PURE__ */ Bs(Gs);
|
|
1020
1018
|
(function(n, s) {
|
|
1021
|
-
(function(
|
|
1019
|
+
(function(y, g) {
|
|
1022
1020
|
n.exports = g();
|
|
1023
|
-
})(
|
|
1021
|
+
})(Us, () => (
|
|
1024
1022
|
/******/
|
|
1025
1023
|
(() => {
|
|
1026
|
-
var
|
|
1024
|
+
var l = {
|
|
1027
1025
|
/***/
|
|
1028
1026
|
"./original-repo/interpreter.js": (
|
|
1029
1027
|
/*!**************************************!*\
|
|
1030
1028
|
!*** ./original-repo/interpreter.js ***!
|
|
1031
1029
|
\**************************************/
|
|
1032
1030
|
/***/
|
|
1033
|
-
function(m, N,
|
|
1031
|
+
function(m, N, T) {
|
|
1034
1032
|
/**
|
|
1035
1033
|
* @license
|
|
1036
1034
|
* Copyright 2013 Neil Fraser
|
|
@@ -1047,12 +1045,12 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1047
1045
|
o[u] = u === "body" ? t[u].slice() : t[u];
|
|
1048
1046
|
this.ast = o, this.tasks = [], this.initFunc_ = e, this.paused_ = !1, this.polyfills_ = [], this.functionCounter_ = 0, this.stepFunctions_ = /* @__PURE__ */ Object.create(null);
|
|
1049
1047
|
var c = /^step([A-Z]\w*)$/, a;
|
|
1050
|
-
for (var
|
|
1051
|
-
typeof this[
|
|
1048
|
+
for (var p in this)
|
|
1049
|
+
typeof this[p] == "function" && (a = p.match(c)) && (this.stepFunctions_[a[1]] = this[p].bind(this));
|
|
1052
1050
|
this.globalScope = this.createScope(this.ast, null), this.globalObject = this.globalScope.object, this.ast = this.parse_(this.polyfills_.join(`
|
|
1053
1051
|
`), "polyfills"), this.polyfills_ = void 0, r.stripLocations_(this.ast, void 0, void 0);
|
|
1054
|
-
var
|
|
1055
|
-
|
|
1052
|
+
var d = new r.State(this.ast, this.globalScope);
|
|
1053
|
+
d.done = !1, this.stateStack = [d], this.run(), this.value = void 0, this.ast = o, d = new r.State(this.ast, this.globalScope), d.done = !1, this.stateStack.length = 0, this.stateStack[0] = d;
|
|
1056
1054
|
};
|
|
1057
1055
|
r.Completion = {
|
|
1058
1056
|
NORMAL: 0,
|
|
@@ -1269,11 +1267,11 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1269
1267
|
[encodeURIComponent, "encodeURIComponent"]
|
|
1270
1268
|
], c = 0; c < u.length; c++)
|
|
1271
1269
|
i = /* @__PURE__ */ function(a) {
|
|
1272
|
-
return function(
|
|
1270
|
+
return function(p) {
|
|
1273
1271
|
try {
|
|
1274
|
-
return a(
|
|
1275
|
-
} catch (
|
|
1276
|
-
e.throwException(e.URI_ERROR,
|
|
1272
|
+
return a(p);
|
|
1273
|
+
} catch (d) {
|
|
1274
|
+
e.throwException(e.URI_ERROR, d.message);
|
|
1277
1275
|
}
|
|
1278
1276
|
};
|
|
1279
1277
|
}(u[c][0]), this.setProperty(
|
|
@@ -1282,29 +1280,29 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1282
1280
|
this.createNativeFunction(i, !1),
|
|
1283
1281
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1284
1282
|
);
|
|
1285
|
-
i = function(
|
|
1283
|
+
i = function(p) {
|
|
1286
1284
|
return e.createTask_(!1, arguments);
|
|
1287
1285
|
}, this.setProperty(
|
|
1288
1286
|
t,
|
|
1289
1287
|
"setTimeout",
|
|
1290
1288
|
this.createNativeFunction(i, !1),
|
|
1291
1289
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1292
|
-
), i = function(
|
|
1290
|
+
), i = function(p) {
|
|
1293
1291
|
return e.createTask_(!0, arguments);
|
|
1294
1292
|
}, this.setProperty(
|
|
1295
1293
|
t,
|
|
1296
1294
|
"setInterval",
|
|
1297
1295
|
this.createNativeFunction(i, !1),
|
|
1298
1296
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1299
|
-
), i = function(
|
|
1300
|
-
e.deleteTask_(
|
|
1297
|
+
), i = function(p) {
|
|
1298
|
+
e.deleteTask_(p);
|
|
1301
1299
|
}, this.setProperty(
|
|
1302
1300
|
t,
|
|
1303
1301
|
"clearTimeout",
|
|
1304
1302
|
this.createNativeFunction(i, !1),
|
|
1305
1303
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1306
|
-
), i = function(
|
|
1307
|
-
e.deleteTask_(
|
|
1304
|
+
), i = function(p) {
|
|
1305
|
+
e.deleteTask_(p);
|
|
1308
1306
|
}, this.setProperty(
|
|
1309
1307
|
t,
|
|
1310
1308
|
"clearInterval",
|
|
@@ -1318,20 +1316,20 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1318
1316
|
var a = String(arguments[arguments.length - 1]);
|
|
1319
1317
|
else
|
|
1320
1318
|
var a = "";
|
|
1321
|
-
var
|
|
1322
|
-
if (
|
|
1323
|
-
for (var
|
|
1324
|
-
var
|
|
1325
|
-
o.test(
|
|
1319
|
+
var p = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1320
|
+
if (p) {
|
|
1321
|
+
for (var d = p.split(/\s*,\s*/), E = 0; E < d.length; E++) {
|
|
1322
|
+
var O = d[E];
|
|
1323
|
+
o.test(O) || e.throwException(
|
|
1326
1324
|
e.SYNTAX_ERROR,
|
|
1327
|
-
"Invalid function argument: " +
|
|
1325
|
+
"Invalid function argument: " + O
|
|
1328
1326
|
);
|
|
1329
1327
|
}
|
|
1330
|
-
|
|
1328
|
+
p = d.join(", ");
|
|
1331
1329
|
}
|
|
1332
1330
|
try {
|
|
1333
1331
|
var b = e.parse_(
|
|
1334
|
-
"(function(" +
|
|
1332
|
+
"(function(" + p + ") {" + a + "})",
|
|
1335
1333
|
"function" + e.functionCodeNumber_++
|
|
1336
1334
|
);
|
|
1337
1335
|
} catch (I) {
|
|
@@ -1344,9 +1342,9 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1344
1342
|
e.SYNTAX_ERROR,
|
|
1345
1343
|
"Invalid code in function body"
|
|
1346
1344
|
);
|
|
1347
|
-
var
|
|
1345
|
+
var S = b.body[0].expression;
|
|
1348
1346
|
return e.createFunction(
|
|
1349
|
-
|
|
1347
|
+
S,
|
|
1350
1348
|
e.globalScope,
|
|
1351
1349
|
"anonymous"
|
|
1352
1350
|
);
|
|
@@ -1371,12 +1369,12 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1371
1369
|
"length",
|
|
1372
1370
|
0,
|
|
1373
1371
|
r.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
1374
|
-
), this.FUNCTION_PROTO.class = "Function", i = function(c, a,
|
|
1375
|
-
var
|
|
1376
|
-
|
|
1372
|
+
), this.FUNCTION_PROTO.class = "Function", i = function(c, a, p) {
|
|
1373
|
+
var d = e.stateStack[e.stateStack.length - 1];
|
|
1374
|
+
d.func_ = c, d.funcThis_ = a, d.arguments_ = [], p != null && (p instanceof r.Object ? d.arguments_ = Array.from(p.properties) : e.throwException(
|
|
1377
1375
|
e.TYPE_ERROR,
|
|
1378
1376
|
"CreateListFromArrayLike called on non-object"
|
|
1379
|
-
)),
|
|
1377
|
+
)), d.doneExec_ = !1;
|
|
1380
1378
|
}, this.setNativeFunctionPrototype(this.FUNCTION, "apply", i), this.polyfills_.push(
|
|
1381
1379
|
/* POLYFILL START */
|
|
1382
1380
|
// Flatten the apply args list to remove any inheritance or getter functions.
|
|
@@ -1395,8 +1393,8 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1395
1393
|
), i = function(c) {
|
|
1396
1394
|
var a = e.stateStack[e.stateStack.length - 1];
|
|
1397
1395
|
a.func_ = this, a.funcThis_ = c, a.arguments_ = [];
|
|
1398
|
-
for (var
|
|
1399
|
-
a.arguments_.push(arguments[
|
|
1396
|
+
for (var p = 1; p < arguments.length; p++)
|
|
1397
|
+
a.arguments_.push(arguments[p]);
|
|
1400
1398
|
a.doneExec_ = !1;
|
|
1401
1399
|
}, this.setNativeFunctionPrototype(this.FUNCTION, "call", i), this.polyfills_.push(
|
|
1402
1400
|
/* POLYFILL START */
|
|
@@ -1513,11 +1511,11 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1513
1511
|
"})();",
|
|
1514
1512
|
""
|
|
1515
1513
|
/* POLYFILL END */
|
|
1516
|
-
), i = function(c, a,
|
|
1514
|
+
), i = function(c, a, p) {
|
|
1517
1515
|
return a = String(a), c instanceof r.Object || e.throwException(
|
|
1518
1516
|
e.TYPE_ERROR,
|
|
1519
1517
|
"Object.defineProperty called on non-object: " + c
|
|
1520
|
-
),
|
|
1518
|
+
), p instanceof r.Object || e.throwException(
|
|
1521
1519
|
e.TYPE_ERROR,
|
|
1522
1520
|
"Property description must be an object"
|
|
1523
1521
|
), c.preventExtensions && !(a in c.properties) && e.throwException(
|
|
@@ -1527,7 +1525,7 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1527
1525
|
c,
|
|
1528
1526
|
a,
|
|
1529
1527
|
r.VALUE_IN_DESCRIPTOR,
|
|
1530
|
-
|
|
1528
|
+
p.properties
|
|
1531
1529
|
), c;
|
|
1532
1530
|
}, this.setProperty(
|
|
1533
1531
|
this.OBJECT,
|
|
@@ -1567,25 +1565,25 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1567
1565
|
e.TYPE_ERROR,
|
|
1568
1566
|
"Object.getOwnPropertyDescriptor called on non-object: " + c
|
|
1569
1567
|
), a = String(a), a in c.properties) {
|
|
1570
|
-
var
|
|
1571
|
-
return
|
|
1572
|
-
|
|
1568
|
+
var p = Object.getOwnPropertyDescriptor(c.properties, a), d = c.getter[a], E = c.setter[a], O = e.createObjectProto(e.OBJECT_PROTO);
|
|
1569
|
+
return d || E ? (e.setProperty(O, "get", d), e.setProperty(O, "set", E)) : (e.setProperty(
|
|
1570
|
+
O,
|
|
1573
1571
|
"value",
|
|
1574
1572
|
/** @type {!Interpreter.Value} */
|
|
1575
|
-
|
|
1573
|
+
p.value
|
|
1576
1574
|
), e.setProperty(
|
|
1577
|
-
|
|
1575
|
+
O,
|
|
1578
1576
|
"writable",
|
|
1579
|
-
|
|
1577
|
+
p.writable
|
|
1580
1578
|
)), e.setProperty(
|
|
1581
|
-
|
|
1579
|
+
O,
|
|
1582
1580
|
"configurable",
|
|
1583
|
-
|
|
1581
|
+
p.configurable
|
|
1584
1582
|
), e.setProperty(
|
|
1585
|
-
|
|
1583
|
+
O,
|
|
1586
1584
|
"enumerable",
|
|
1587
|
-
|
|
1588
|
-
),
|
|
1585
|
+
p.enumerable
|
|
1586
|
+
), O;
|
|
1589
1587
|
}
|
|
1590
1588
|
}, this.setProperty(
|
|
1591
1589
|
this.OBJECT,
|
|
@@ -1651,9 +1649,9 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1651
1649
|
"Invalid array length: " + a
|
|
1652
1650
|
), c.properties.length = a;
|
|
1653
1651
|
else {
|
|
1654
|
-
for (var
|
|
1655
|
-
c.properties[
|
|
1656
|
-
c.properties.length =
|
|
1652
|
+
for (var p = 0; p < arguments.length; p++)
|
|
1653
|
+
c.properties[p] = arguments[p];
|
|
1654
|
+
c.properties.length = p;
|
|
1657
1655
|
}
|
|
1658
1656
|
return c;
|
|
1659
1657
|
}, this.ARRAY = this.createNativeFunction(i, !0), this.ARRAY_PROTO = this.ARRAY.properties.prototype, this.setProperty(
|
|
@@ -2147,15 +2145,15 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2147
2145
|
o[u],
|
|
2148
2146
|
String.prototype[o[u]]
|
|
2149
2147
|
);
|
|
2150
|
-
i = function(a,
|
|
2151
|
-
|
|
2148
|
+
i = function(a, p, d) {
|
|
2149
|
+
p = e.pseudoToNative(p), d = e.pseudoToNative(d);
|
|
2152
2150
|
try {
|
|
2153
2151
|
return String(this).localeCompare(
|
|
2154
2152
|
a,
|
|
2155
2153
|
/** @type {?} */
|
|
2156
|
-
|
|
2154
|
+
p,
|
|
2157
2155
|
/** @type {?} */
|
|
2158
|
-
|
|
2156
|
+
d
|
|
2159
2157
|
);
|
|
2160
2158
|
} catch (E) {
|
|
2161
2159
|
e.throwException(
|
|
@@ -2163,90 +2161,90 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2163
2161
|
"localeCompare: " + E.message
|
|
2164
2162
|
);
|
|
2165
2163
|
}
|
|
2166
|
-
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a,
|
|
2164
|
+
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, p, d) {
|
|
2167
2165
|
var E = String(this);
|
|
2168
|
-
if (
|
|
2166
|
+
if (p = p ? Number(p) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, d), e.REGEXP_MODE === 2)) {
|
|
2169
2167
|
if (r.vm) {
|
|
2170
|
-
var
|
|
2168
|
+
var O = {
|
|
2171
2169
|
string: E,
|
|
2172
2170
|
separator: a,
|
|
2173
|
-
limit:
|
|
2174
|
-
}, b = "string.split(separator, limit)", D = e.vmCall(b,
|
|
2175
|
-
D !== r.REGEXP_TIMEOUT &&
|
|
2171
|
+
limit: p
|
|
2172
|
+
}, b = "string.split(separator, limit)", D = e.vmCall(b, O, a, d);
|
|
2173
|
+
D !== r.REGEXP_TIMEOUT && d(e.nativeToPseudo(D));
|
|
2176
2174
|
} else {
|
|
2177
|
-
var
|
|
2175
|
+
var S = e.createWorker(), I = e.regExpTimeout(
|
|
2178
2176
|
a,
|
|
2179
|
-
|
|
2180
|
-
|
|
2177
|
+
S,
|
|
2178
|
+
d
|
|
2181
2179
|
);
|
|
2182
|
-
|
|
2183
|
-
clearTimeout(I),
|
|
2184
|
-
},
|
|
2180
|
+
S.onmessage = function(X) {
|
|
2181
|
+
clearTimeout(I), d(e.nativeToPseudo(X.data));
|
|
2182
|
+
}, S.postMessage(["split", E, a, p]);
|
|
2185
2183
|
}
|
|
2186
2184
|
return;
|
|
2187
2185
|
}
|
|
2188
|
-
var D = E.split(a,
|
|
2189
|
-
|
|
2190
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a,
|
|
2191
|
-
var
|
|
2192
|
-
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a,
|
|
2186
|
+
var D = E.split(a, p);
|
|
2187
|
+
d(e.nativeToPseudo(D));
|
|
2188
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, p) {
|
|
2189
|
+
var d = String(this);
|
|
2190
|
+
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, p), e.REGEXP_MODE === 2) {
|
|
2193
2191
|
if (r.vm) {
|
|
2194
2192
|
var E = {
|
|
2195
|
-
string:
|
|
2193
|
+
string: d,
|
|
2196
2194
|
regexp: a
|
|
2197
|
-
},
|
|
2198
|
-
I !== r.REGEXP_TIMEOUT &&
|
|
2195
|
+
}, O = "string.match(regexp)", I = e.vmCall(O, E, a, p);
|
|
2196
|
+
I !== r.REGEXP_TIMEOUT && p(I && e.matchToPseudo_(I));
|
|
2199
2197
|
} else {
|
|
2200
|
-
var b = e.createWorker(),
|
|
2198
|
+
var b = e.createWorker(), S = e.regExpTimeout(a, b, p);
|
|
2201
2199
|
b.onmessage = function(D) {
|
|
2202
|
-
clearTimeout(
|
|
2203
|
-
}, b.postMessage(["match",
|
|
2200
|
+
clearTimeout(S), p(D.data && e.matchToPseudo_(D.data));
|
|
2201
|
+
}, b.postMessage(["match", d, a]);
|
|
2204
2202
|
}
|
|
2205
2203
|
return;
|
|
2206
2204
|
}
|
|
2207
|
-
var I =
|
|
2208
|
-
|
|
2209
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a,
|
|
2210
|
-
var
|
|
2211
|
-
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a,
|
|
2205
|
+
var I = d.match(a);
|
|
2206
|
+
p(I && e.matchToPseudo_(I));
|
|
2207
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a, p) {
|
|
2208
|
+
var d = String(this);
|
|
2209
|
+
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, p), e.REGEXP_MODE === 2) {
|
|
2212
2210
|
if (r.vm) {
|
|
2213
2211
|
var E = {
|
|
2214
|
-
string:
|
|
2212
|
+
string: d,
|
|
2215
2213
|
regexp: a
|
|
2216
|
-
},
|
|
2217
|
-
b !== r.REGEXP_TIMEOUT &&
|
|
2214
|
+
}, O = "string.search(regexp)", b = e.vmCall(O, E, a, p);
|
|
2215
|
+
b !== r.REGEXP_TIMEOUT && p(b);
|
|
2218
2216
|
} else {
|
|
2219
|
-
var
|
|
2220
|
-
|
|
2221
|
-
clearTimeout(I),
|
|
2222
|
-
},
|
|
2217
|
+
var S = e.createWorker(), I = e.regExpTimeout(a, S, p);
|
|
2218
|
+
S.onmessage = function(D) {
|
|
2219
|
+
clearTimeout(I), p(D.data);
|
|
2220
|
+
}, S.postMessage(["search", d, a]);
|
|
2223
2221
|
}
|
|
2224
2222
|
return;
|
|
2225
2223
|
}
|
|
2226
|
-
|
|
2227
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a,
|
|
2224
|
+
p(d.search(a));
|
|
2225
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, p, d) {
|
|
2228
2226
|
var E = String(this);
|
|
2229
|
-
if (
|
|
2227
|
+
if (p = String(p), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, d), e.REGEXP_MODE === 2)) {
|
|
2230
2228
|
if (r.vm) {
|
|
2231
|
-
var
|
|
2229
|
+
var O = {
|
|
2232
2230
|
string: E,
|
|
2233
2231
|
substr: a,
|
|
2234
|
-
newSubstr:
|
|
2235
|
-
}, b = "string.replace(substr, newSubstr)",
|
|
2236
|
-
|
|
2232
|
+
newSubstr: p
|
|
2233
|
+
}, b = "string.replace(substr, newSubstr)", S = e.vmCall(b, O, a, d);
|
|
2234
|
+
S !== r.REGEXP_TIMEOUT && d(S);
|
|
2237
2235
|
} else {
|
|
2238
2236
|
var I = e.createWorker(), D = e.regExpTimeout(
|
|
2239
2237
|
a,
|
|
2240
2238
|
I,
|
|
2241
|
-
|
|
2239
|
+
d
|
|
2242
2240
|
);
|
|
2243
2241
|
I.onmessage = function(X) {
|
|
2244
|
-
clearTimeout(D),
|
|
2245
|
-
}, I.postMessage(["replace", E, a,
|
|
2242
|
+
clearTimeout(D), d(X.data);
|
|
2243
|
+
}, I.postMessage(["replace", E, a, p]);
|
|
2246
2244
|
}
|
|
2247
2245
|
return;
|
|
2248
2246
|
}
|
|
2249
|
-
|
|
2247
|
+
d(E.replace(a, p));
|
|
2250
2248
|
}, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
|
|
2251
2249
|
/* POLYFILL START */
|
|
2252
2250
|
"(function() {",
|
|
@@ -2322,52 +2320,52 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2322
2320
|
i = function(a) {
|
|
2323
2321
|
try {
|
|
2324
2322
|
return Number(this).toExponential(a);
|
|
2325
|
-
} catch (
|
|
2326
|
-
e.throwException(e.ERROR,
|
|
2323
|
+
} catch (p) {
|
|
2324
|
+
e.throwException(e.ERROR, p.message);
|
|
2327
2325
|
}
|
|
2328
2326
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toExponential", i), i = function(a) {
|
|
2329
2327
|
try {
|
|
2330
2328
|
return Number(this).toFixed(a);
|
|
2331
|
-
} catch (
|
|
2332
|
-
e.throwException(e.ERROR,
|
|
2329
|
+
} catch (p) {
|
|
2330
|
+
e.throwException(e.ERROR, p.message);
|
|
2333
2331
|
}
|
|
2334
2332
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toFixed", i), i = function(a) {
|
|
2335
2333
|
try {
|
|
2336
2334
|
return Number(this).toPrecision(a);
|
|
2337
|
-
} catch (
|
|
2338
|
-
e.throwException(e.ERROR,
|
|
2335
|
+
} catch (p) {
|
|
2336
|
+
e.throwException(e.ERROR, p.message);
|
|
2339
2337
|
}
|
|
2340
2338
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toPrecision", i), i = function(a) {
|
|
2341
2339
|
try {
|
|
2342
2340
|
return Number(this).toString(a);
|
|
2343
|
-
} catch (
|
|
2344
|
-
e.throwException(e.ERROR,
|
|
2341
|
+
} catch (p) {
|
|
2342
|
+
e.throwException(e.ERROR, p.message);
|
|
2345
2343
|
}
|
|
2346
|
-
}, this.setNativeFunctionPrototype(this.NUMBER, "toString", i), i = function(a,
|
|
2347
|
-
a = a ? e.pseudoToNative(a) : void 0,
|
|
2344
|
+
}, this.setNativeFunctionPrototype(this.NUMBER, "toString", i), i = function(a, p) {
|
|
2345
|
+
a = a ? e.pseudoToNative(a) : void 0, p = p ? e.pseudoToNative(p) : void 0;
|
|
2348
2346
|
try {
|
|
2349
2347
|
return Number(this).toLocaleString(
|
|
2350
2348
|
/** @type {?} */
|
|
2351
2349
|
a,
|
|
2352
2350
|
/** @type {?} */
|
|
2353
|
-
|
|
2351
|
+
p
|
|
2354
2352
|
);
|
|
2355
|
-
} catch (
|
|
2353
|
+
} catch (d) {
|
|
2356
2354
|
e.throwException(
|
|
2357
2355
|
e.ERROR,
|
|
2358
|
-
"toLocaleString: " +
|
|
2356
|
+
"toLocaleString: " + d.message
|
|
2359
2357
|
);
|
|
2360
2358
|
}
|
|
2361
2359
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toLocaleString", i);
|
|
2362
2360
|
}, r.prototype.initDate = function(t) {
|
|
2363
2361
|
var e = this, i;
|
|
2364
|
-
i = function(a,
|
|
2362
|
+
i = function(a, p) {
|
|
2365
2363
|
if (!e.calledWithNew())
|
|
2366
2364
|
return r.nativeGlobal.Date();
|
|
2367
|
-
var
|
|
2365
|
+
var d = [null].concat(Array.from(arguments));
|
|
2368
2366
|
return this.data = new (Function.prototype.bind.apply(
|
|
2369
2367
|
r.nativeGlobal.Date,
|
|
2370
|
-
|
|
2368
|
+
d
|
|
2371
2369
|
))(), this;
|
|
2372
2370
|
}, this.DATE = this.createNativeFunction(i, !0), this.DATE_PROTO = this.DATE.properties.prototype, this.setProperty(
|
|
2373
2371
|
t,
|
|
@@ -2437,14 +2435,14 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2437
2435
|
], u = 0; u < o.length; u++)
|
|
2438
2436
|
i = /* @__PURE__ */ function(c) {
|
|
2439
2437
|
return function(a) {
|
|
2440
|
-
var
|
|
2441
|
-
|
|
2438
|
+
var p = this.data;
|
|
2439
|
+
p instanceof Date || e.throwException(
|
|
2442
2440
|
e.TYPE_ERROR,
|
|
2443
2441
|
c + " not called on a Date"
|
|
2444
2442
|
);
|
|
2445
|
-
for (var
|
|
2446
|
-
|
|
2447
|
-
return
|
|
2443
|
+
for (var d = [], E = 0; E < arguments.length; E++)
|
|
2444
|
+
d[E] = e.pseudoToNative(arguments[E]);
|
|
2445
|
+
return p[c].apply(p, d);
|
|
2448
2446
|
};
|
|
2449
2447
|
}(o[u]), this.setNativeFunctionPrototype(this.DATE, o[u], i);
|
|
2450
2448
|
i = function() {
|
|
@@ -2472,11 +2470,11 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2472
2470
|
"Invalid regexp flag: " + c
|
|
2473
2471
|
);
|
|
2474
2472
|
try {
|
|
2475
|
-
var
|
|
2476
|
-
} catch (
|
|
2477
|
-
e.throwException(e.SYNTAX_ERROR,
|
|
2473
|
+
var p = new r.nativeGlobal.RegExp(u, c);
|
|
2474
|
+
} catch (d) {
|
|
2475
|
+
e.throwException(e.SYNTAX_ERROR, d.message);
|
|
2478
2476
|
}
|
|
2479
|
-
return e.populateRegExp(a,
|
|
2477
|
+
return e.populateRegExp(a, p), a;
|
|
2480
2478
|
}, this.REGEXP = this.createNativeFunction(i, !0), this.REGEXP_PROTO = this.REGEXP.properties.prototype, this.setProperty(
|
|
2481
2479
|
t,
|
|
2482
2480
|
"RegExp",
|
|
@@ -2515,21 +2513,21 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2515
2513
|
var a = this.data;
|
|
2516
2514
|
if (u = String(u), a.lastIndex = Number(e.getProperty(this, "lastIndex")), e.maybeThrowRegExp(a, c), e.REGEXP_MODE === 2) {
|
|
2517
2515
|
if (r.vm) {
|
|
2518
|
-
var
|
|
2516
|
+
var p = {
|
|
2519
2517
|
string: u,
|
|
2520
2518
|
regexp: a
|
|
2521
|
-
},
|
|
2522
|
-
|
|
2519
|
+
}, d = "regexp.exec(string)", S = e.vmCall(d, p, a, c);
|
|
2520
|
+
S !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(S)));
|
|
2523
2521
|
} else {
|
|
2524
|
-
var E = e.createWorker(),
|
|
2522
|
+
var E = e.createWorker(), O = e.regExpTimeout(a, E, c), b = this;
|
|
2525
2523
|
E.onmessage = function(I) {
|
|
2526
|
-
clearTimeout(
|
|
2524
|
+
clearTimeout(O), e.setProperty(b, "lastIndex", I.data[1]), c(e.matchToPseudo_(I.data[0]));
|
|
2527
2525
|
}, E.postMessage(["exec", a, a.lastIndex, u]);
|
|
2528
2526
|
}
|
|
2529
2527
|
return;
|
|
2530
2528
|
}
|
|
2531
|
-
var
|
|
2532
|
-
e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(
|
|
2529
|
+
var S = a.exec(u);
|
|
2530
|
+
e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(S));
|
|
2533
2531
|
}, this.setAsyncFunctionPrototype(this.REGEXP, "exec", i);
|
|
2534
2532
|
}, r.prototype.matchToPseudo_ = function(t) {
|
|
2535
2533
|
if (t) {
|
|
@@ -2656,22 +2654,22 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2656
2654
|
), e = function(c) {
|
|
2657
2655
|
try {
|
|
2658
2656
|
var a = JSON.parse(String(c));
|
|
2659
|
-
} catch (
|
|
2660
|
-
i.throwException(i.SYNTAX_ERROR,
|
|
2657
|
+
} catch (p) {
|
|
2658
|
+
i.throwException(i.SYNTAX_ERROR, p.message);
|
|
2661
2659
|
}
|
|
2662
2660
|
return i.nativeToPseudo(a);
|
|
2663
|
-
}, this.setProperty(o, "parse", this.createNativeFunction(e, !1)), e = function(c, a,
|
|
2661
|
+
}, this.setProperty(o, "parse", this.createNativeFunction(e, !1)), e = function(c, a, p) {
|
|
2664
2662
|
a && a.class === "Function" ? i.throwException(
|
|
2665
2663
|
i.TYPE_ERROR,
|
|
2666
2664
|
"Function replacer on JSON.stringify not supported"
|
|
2667
|
-
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(
|
|
2668
|
-
return typeof
|
|
2669
|
-
})) : a = null, typeof
|
|
2670
|
-
var
|
|
2665
|
+
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(O) {
|
|
2666
|
+
return typeof O == "string" || typeof O == "number";
|
|
2667
|
+
})) : a = null, typeof p != "string" && typeof p != "number" && (p = void 0);
|
|
2668
|
+
var d = i.pseudoToNative(c);
|
|
2671
2669
|
try {
|
|
2672
|
-
var E = JSON.stringify(
|
|
2673
|
-
} catch (
|
|
2674
|
-
i.throwException(i.TYPE_ERROR,
|
|
2670
|
+
var E = JSON.stringify(d, a, p);
|
|
2671
|
+
} catch (O) {
|
|
2672
|
+
i.throwException(i.TYPE_ERROR, O.message);
|
|
2675
2673
|
}
|
|
2676
2674
|
return E;
|
|
2677
2675
|
}, this.setProperty(
|
|
@@ -2733,11 +2731,11 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2733
2731
|
}
|
|
2734
2732
|
c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
|
|
2735
2733
|
}
|
|
2736
|
-
for (var
|
|
2734
|
+
for (var p = String(this.getProperty(t, "name")), d = String(this.getProperty(t, "message")), E = p + ": " + d + `
|
|
2737
2735
|
`, o = 0; o < i.length; o++) {
|
|
2738
|
-
var
|
|
2739
|
-
b ? E += " at " + b + " (" +
|
|
2740
|
-
` : E += " at " +
|
|
2736
|
+
var O = i[o].datumLoc, b = i[o].datumName, S = O.source + ":" + O.start.line + ":" + O.start.column;
|
|
2737
|
+
b ? E += " at " + b + " (" + S + `)
|
|
2738
|
+
` : E += " at " + S + `
|
|
2741
2739
|
`;
|
|
2742
2740
|
}
|
|
2743
2741
|
this.setProperty(
|
|
@@ -2773,7 +2771,7 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2773
2771
|
i = !0;
|
|
2774
2772
|
else {
|
|
2775
2773
|
try {
|
|
2776
|
-
r.vm =
|
|
2774
|
+
r.vm = T(
|
|
2777
2775
|
/*! vm */
|
|
2778
2776
|
"vm"
|
|
2779
2777
|
);
|
|
@@ -2878,23 +2876,23 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2878
2876
|
return c.data = new Date(t.valueOf()), i.pseudo.push(c), c;
|
|
2879
2877
|
}
|
|
2880
2878
|
if (typeof t == "function") {
|
|
2881
|
-
var a = this,
|
|
2882
|
-
var
|
|
2879
|
+
var a = this, p = function() {
|
|
2880
|
+
var S = Array.prototype.slice.call(arguments).map(function(D) {
|
|
2883
2881
|
return a.pseudoToNative(D);
|
|
2884
|
-
}), I = t.apply(a,
|
|
2882
|
+
}), I = t.apply(a, S);
|
|
2885
2883
|
return a.nativeToPseudo(I);
|
|
2886
|
-
},
|
|
2884
|
+
}, d = Object.getOwnPropertyDescriptor(t, "prototype"), E = this.createNativeFunction(p, !!d);
|
|
2887
2885
|
return i.pseudo.push(E), E;
|
|
2888
2886
|
}
|
|
2889
|
-
var
|
|
2890
|
-
Array.isArray(t) ?
|
|
2887
|
+
var O;
|
|
2888
|
+
Array.isArray(t) ? O = this.createArray() : O = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(O);
|
|
2891
2889
|
for (var b in t)
|
|
2892
2890
|
this.setProperty(
|
|
2893
|
-
|
|
2891
|
+
O,
|
|
2894
2892
|
b,
|
|
2895
2893
|
this.nativeToPseudo(t[b], i)
|
|
2896
2894
|
);
|
|
2897
|
-
return
|
|
2895
|
+
return O;
|
|
2898
2896
|
}, r.prototype.pseudoToNative = function(t, e) {
|
|
2899
2897
|
if (t == null || t === !0 || t === !1 || typeof t == "string" || typeof t == "number")
|
|
2900
2898
|
return t;
|
|
@@ -2916,13 +2914,13 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2916
2914
|
}
|
|
2917
2915
|
var a = this.isa(t, this.ARRAY) ? [] : {};
|
|
2918
2916
|
i.native.push(a);
|
|
2919
|
-
var
|
|
2920
|
-
for (var
|
|
2921
|
-
|
|
2917
|
+
var p;
|
|
2918
|
+
for (var d in t.properties)
|
|
2919
|
+
p = this.pseudoToNative(t.properties[d], i), Object.defineProperty(
|
|
2922
2920
|
a,
|
|
2923
|
-
|
|
2921
|
+
d,
|
|
2924
2922
|
{
|
|
2925
|
-
value:
|
|
2923
|
+
value: p,
|
|
2926
2924
|
writable: !0,
|
|
2927
2925
|
enumerable: !0,
|
|
2928
2926
|
configurable: !0
|
|
@@ -2998,7 +2996,7 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2998
2996
|
}
|
|
2999
2997
|
}
|
|
3000
2998
|
if (t.class === "Array") {
|
|
3001
|
-
var a = t.properties.length,
|
|
2999
|
+
var a = t.properties.length, p;
|
|
3002
3000
|
if (e === "length") {
|
|
3003
3001
|
if (o) {
|
|
3004
3002
|
if (!("value" in o))
|
|
@@ -3006,19 +3004,19 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3006
3004
|
i = o.value;
|
|
3007
3005
|
}
|
|
3008
3006
|
if (i = r.legalArrayLength(i), isNaN(i) && this.throwException(this.RANGE_ERROR, "Invalid array length"), i < a)
|
|
3009
|
-
for (
|
|
3010
|
-
|
|
3011
|
-
} else isNaN(
|
|
3007
|
+
for (p in t.properties)
|
|
3008
|
+
p = r.legalArrayIndex(p), !isNaN(p) && i <= p && delete t.properties[p];
|
|
3009
|
+
} else isNaN(p = r.legalArrayIndex(e)) || (t.properties.length = Math.max(a, p + 1));
|
|
3012
3010
|
}
|
|
3013
3011
|
if (t.preventExtensions && !(e in t.properties)) {
|
|
3014
3012
|
u && this.throwException(this.TYPE_ERROR, "Can't add property '" + e + "', object is not extensible");
|
|
3015
3013
|
return;
|
|
3016
3014
|
}
|
|
3017
3015
|
if (o) {
|
|
3018
|
-
var
|
|
3019
|
-
"get" in o && o.get && (t.getter[e] = o.get,
|
|
3016
|
+
var d = {};
|
|
3017
|
+
"get" in o && o.get && (t.getter[e] = o.get, d.get = this.setProperty.placeholderGet_), "set" in o && o.set && (t.setter[e] = o.set, d.set = this.setProperty.placeholderSet_), "configurable" in o && (d.configurable = o.configurable), "enumerable" in o && (d.enumerable = o.enumerable), "writable" in o && (d.writable = o.writable, delete t.getter[e], delete t.setter[e]), "value" in o ? (d.value = o.value, delete t.getter[e], delete t.setter[e]) : i !== r.VALUE_IN_DESCRIPTOR && (d.value = i, delete t.getter[e], delete t.setter[e]);
|
|
3020
3018
|
try {
|
|
3021
|
-
Object.defineProperty(t.properties, e,
|
|
3019
|
+
Object.defineProperty(t.properties, e, d);
|
|
3022
3020
|
} catch {
|
|
3023
3021
|
this.throwException(this.TYPE_ERROR, "Cannot redefine property: " + e);
|
|
3024
3022
|
}
|
|
@@ -3139,18 +3137,18 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3139
3137
|
if (c !== "loc") {
|
|
3140
3138
|
var a = t[c];
|
|
3141
3139
|
if (a && typeof a == "object") {
|
|
3142
|
-
var
|
|
3140
|
+
var p;
|
|
3143
3141
|
if (Array.isArray(a)) {
|
|
3144
3142
|
for (var o = 0; o < a.length; o++)
|
|
3145
3143
|
if (a[o] && a[o].constructor === u) {
|
|
3146
|
-
|
|
3147
|
-
for (var c in
|
|
3148
|
-
i[c] =
|
|
3144
|
+
p = this.populateScope_(a[o], e);
|
|
3145
|
+
for (var c in p)
|
|
3146
|
+
i[c] = p[c];
|
|
3149
3147
|
}
|
|
3150
3148
|
} else if (a.constructor === u) {
|
|
3151
|
-
|
|
3152
|
-
for (var c in
|
|
3153
|
-
i[c] =
|
|
3149
|
+
p = this.populateScope_(a, e);
|
|
3150
|
+
for (var c in p)
|
|
3151
|
+
i[c] = p[c];
|
|
3154
3152
|
}
|
|
3155
3153
|
}
|
|
3156
3154
|
}
|
|
@@ -3226,8 +3224,8 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3226
3224
|
SyntaxError,
|
|
3227
3225
|
TypeError,
|
|
3228
3226
|
URIError
|
|
3229
|
-
},
|
|
3230
|
-
c = E(
|
|
3227
|
+
}, p = String(this.getProperty(e, "name")), d = this.getProperty(e, "message").valueOf(), E = a[p] || Error;
|
|
3228
|
+
c = E(d), c.stack = String(this.getProperty(e, "stack"));
|
|
3231
3229
|
} else
|
|
3232
3230
|
c = String(e);
|
|
3233
3231
|
throw this.value = c, c;
|
|
@@ -3263,9 +3261,9 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3263
3261
|
}
|
|
3264
3262
|
return "???";
|
|
3265
3263
|
}, r.prototype.createTask_ = function(t, e) {
|
|
3266
|
-
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(),
|
|
3264
|
+
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), p, d, E;
|
|
3267
3265
|
if (u instanceof r.Object && u.class === "Function")
|
|
3268
|
-
|
|
3266
|
+
d = u, a.type = "CallExpression", p = i.scope;
|
|
3269
3267
|
else {
|
|
3270
3268
|
try {
|
|
3271
3269
|
E = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
|
|
@@ -3273,13 +3271,13 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3273
3271
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + D.message);
|
|
3274
3272
|
}
|
|
3275
3273
|
a.type = "EvalProgram_", a.body = E.body;
|
|
3276
|
-
var
|
|
3277
|
-
r.stripLocations_(a, b,
|
|
3274
|
+
var O = i.node.arguments[0], b = O ? O.start : void 0, S = O ? O.end : void 0;
|
|
3275
|
+
r.stripLocations_(a, b, S), p = this.globalScope, o.length = 0;
|
|
3278
3276
|
}
|
|
3279
3277
|
var I = new r.Task(
|
|
3280
|
-
|
|
3278
|
+
d,
|
|
3281
3279
|
o,
|
|
3282
|
-
|
|
3280
|
+
p,
|
|
3283
3281
|
a,
|
|
3284
3282
|
t ? c : -1
|
|
3285
3283
|
);
|
|
@@ -3370,27 +3368,27 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3370
3368
|
var t = r.toStringCycles_;
|
|
3371
3369
|
if (t.indexOf(this) !== -1)
|
|
3372
3370
|
return "[object Error]";
|
|
3373
|
-
var a,
|
|
3371
|
+
var a, p, d = this;
|
|
3374
3372
|
do
|
|
3375
|
-
if ("name" in
|
|
3376
|
-
a =
|
|
3373
|
+
if ("name" in d.properties) {
|
|
3374
|
+
a = d.properties.name;
|
|
3377
3375
|
break;
|
|
3378
3376
|
}
|
|
3379
|
-
while (
|
|
3380
|
-
|
|
3377
|
+
while (d = d.proto);
|
|
3378
|
+
d = this;
|
|
3381
3379
|
do
|
|
3382
|
-
if ("message" in
|
|
3383
|
-
|
|
3380
|
+
if ("message" in d.properties) {
|
|
3381
|
+
p = d.properties.message;
|
|
3384
3382
|
break;
|
|
3385
3383
|
}
|
|
3386
|
-
while (
|
|
3384
|
+
while (d = d.proto);
|
|
3387
3385
|
t.push(this);
|
|
3388
3386
|
try {
|
|
3389
|
-
a = a && String(a),
|
|
3387
|
+
a = a && String(a), p = p && String(p);
|
|
3390
3388
|
} finally {
|
|
3391
3389
|
t.pop();
|
|
3392
3390
|
}
|
|
3393
|
-
return
|
|
3391
|
+
return p ? a + ": " + p : String(a);
|
|
3394
3392
|
}
|
|
3395
3393
|
return this.data !== null ? String(this.data) : "[object " + this.class + "]";
|
|
3396
3394
|
}, r.Object.prototype.valueOf = function() {
|
|
@@ -3432,50 +3430,50 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3432
3430
|
t.pop(), t[t.length - 1].value = e.setterValue_;
|
|
3433
3431
|
return;
|
|
3434
3432
|
}
|
|
3435
|
-
var a = e.leftValue_,
|
|
3433
|
+
var a = e.leftValue_, p = e.value;
|
|
3436
3434
|
switch (i.operator) {
|
|
3437
3435
|
case "=":
|
|
3438
|
-
a =
|
|
3436
|
+
a = p;
|
|
3439
3437
|
break;
|
|
3440
3438
|
case "+=":
|
|
3441
|
-
a +=
|
|
3439
|
+
a += p;
|
|
3442
3440
|
break;
|
|
3443
3441
|
case "-=":
|
|
3444
|
-
a -=
|
|
3442
|
+
a -= p;
|
|
3445
3443
|
break;
|
|
3446
3444
|
case "*=":
|
|
3447
|
-
a *=
|
|
3445
|
+
a *= p;
|
|
3448
3446
|
break;
|
|
3449
3447
|
case "/=":
|
|
3450
|
-
a /=
|
|
3448
|
+
a /= p;
|
|
3451
3449
|
break;
|
|
3452
3450
|
case "%=":
|
|
3453
|
-
a %=
|
|
3451
|
+
a %= p;
|
|
3454
3452
|
break;
|
|
3455
3453
|
case "<<=":
|
|
3456
|
-
a <<=
|
|
3454
|
+
a <<= p;
|
|
3457
3455
|
break;
|
|
3458
3456
|
case ">>=":
|
|
3459
|
-
a >>=
|
|
3457
|
+
a >>= p;
|
|
3460
3458
|
break;
|
|
3461
3459
|
case ">>>=":
|
|
3462
|
-
a >>>=
|
|
3460
|
+
a >>>= p;
|
|
3463
3461
|
break;
|
|
3464
3462
|
case "&=":
|
|
3465
|
-
a &=
|
|
3463
|
+
a &= p;
|
|
3466
3464
|
break;
|
|
3467
3465
|
case "^=":
|
|
3468
|
-
a ^=
|
|
3466
|
+
a ^= p;
|
|
3469
3467
|
break;
|
|
3470
3468
|
case "|=":
|
|
3471
|
-
a |=
|
|
3469
|
+
a |= p;
|
|
3472
3470
|
break;
|
|
3473
3471
|
default:
|
|
3474
3472
|
throw SyntaxError("Unknown assignment expression: " + i.operator);
|
|
3475
3473
|
}
|
|
3476
|
-
var
|
|
3477
|
-
if (
|
|
3478
|
-
return e.doneSetter_ = !0, e.setterValue_ = a, this.createSetter_(
|
|
3474
|
+
var d = this.setValue(e.leftReference_, a);
|
|
3475
|
+
if (d)
|
|
3476
|
+
return e.doneSetter_ = !0, e.setterValue_ = a, this.createSetter_(d, e.leftReference_, a);
|
|
3479
3477
|
t.pop(), t[t.length - 1].value = a;
|
|
3480
3478
|
}, r.prototype.stepBinaryExpression = function(t, e, i) {
|
|
3481
3479
|
if (!e.doneLeft_)
|
|
@@ -3613,27 +3611,27 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3613
3611
|
);
|
|
3614
3612
|
var a = u.node;
|
|
3615
3613
|
if (a) {
|
|
3616
|
-
for (var
|
|
3617
|
-
this.setProperty(
|
|
3618
|
-
this.setProperty(
|
|
3614
|
+
for (var p = this.createScope(a.body, u.parentScope), d = this.createArray(), E = 0; E < e.arguments_.length; E++)
|
|
3615
|
+
this.setProperty(d, E, e.arguments_[E]);
|
|
3616
|
+
this.setProperty(p.object, "arguments", d);
|
|
3619
3617
|
for (var E = 0; E < a.params.length; E++) {
|
|
3620
|
-
var
|
|
3621
|
-
this.setProperty(
|
|
3618
|
+
var O = a.params[E].name, b = e.arguments_.length > E ? e.arguments_[E] : void 0;
|
|
3619
|
+
this.setProperty(p.object, O, b);
|
|
3622
3620
|
}
|
|
3623
|
-
return
|
|
3624
|
-
|
|
3621
|
+
return p.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
|
|
3622
|
+
p.object,
|
|
3625
3623
|
"this",
|
|
3626
3624
|
e.funcThis_,
|
|
3627
3625
|
r.READONLY_DESCRIPTOR
|
|
3628
|
-
), e.value = void 0, new r.State(a.body,
|
|
3626
|
+
), e.value = void 0, new r.State(a.body, p);
|
|
3629
3627
|
} else if (u.eval) {
|
|
3630
|
-
var
|
|
3631
|
-
if (typeof
|
|
3632
|
-
e.value =
|
|
3628
|
+
var S = e.arguments_[0];
|
|
3629
|
+
if (typeof S != "string")
|
|
3630
|
+
e.value = S;
|
|
3633
3631
|
else {
|
|
3634
3632
|
try {
|
|
3635
3633
|
var I = this.parse_(
|
|
3636
|
-
String(
|
|
3634
|
+
String(S),
|
|
3637
3635
|
"eval" + this.evalCodeNumber_++
|
|
3638
3636
|
);
|
|
3639
3637
|
} catch (j) {
|
|
@@ -3641,8 +3639,8 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3641
3639
|
}
|
|
3642
3640
|
var D = this.newNode();
|
|
3643
3641
|
D.type = "EvalProgram_", D.body = I.body, r.stripLocations_(D, i.start, i.end);
|
|
3644
|
-
var
|
|
3645
|
-
return
|
|
3642
|
+
var p = e.directEval_ ? e.scope : this.globalScope;
|
|
3643
|
+
return p.strict ? p = this.createScope(I, p) : this.populateScope_(I, p), this.value = void 0, new r.State(D, p);
|
|
3646
3644
|
}
|
|
3647
3645
|
} else if (u.nativeFunc)
|
|
3648
3646
|
e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), e.value = u.nativeFunc.apply(e.funcThis_, e.arguments_);
|
|
@@ -3754,9 +3752,9 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3754
3752
|
}
|
|
3755
3753
|
if (e.variable_ || (e.variable_ = e.value), !e.doneSetter_) {
|
|
3756
3754
|
e.doneSetter_ = !0;
|
|
3757
|
-
var a = e.name_,
|
|
3758
|
-
if (
|
|
3759
|
-
return this.createSetter_(
|
|
3755
|
+
var a = e.name_, p = this.setValue(e.variable_, a);
|
|
3756
|
+
if (p)
|
|
3757
|
+
return this.createSetter_(p, e.variable_, a);
|
|
3760
3758
|
}
|
|
3761
3759
|
if (e.name_ = void 0, e.doneVariable_ = !1, e.doneSetter_ = !1, i.body)
|
|
3762
3760
|
return new r.State(i.body, e.scope);
|
|
@@ -3873,22 +3871,22 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3873
3871
|
return e.destinationName = c, new r.State(u.value, e.scope);
|
|
3874
3872
|
}
|
|
3875
3873
|
for (var a in e.properties_) {
|
|
3876
|
-
var
|
|
3877
|
-
if ("get" in
|
|
3878
|
-
var
|
|
3874
|
+
var p = e.properties_[a];
|
|
3875
|
+
if ("get" in p || "set" in p) {
|
|
3876
|
+
var d = {
|
|
3879
3877
|
configurable: !0,
|
|
3880
3878
|
enumerable: !0,
|
|
3881
|
-
get:
|
|
3882
|
-
set:
|
|
3879
|
+
get: p.get,
|
|
3880
|
+
set: p.set
|
|
3883
3881
|
};
|
|
3884
3882
|
this.setProperty(
|
|
3885
3883
|
e.object_,
|
|
3886
3884
|
a,
|
|
3887
3885
|
r.VALUE_IN_DESCRIPTOR,
|
|
3888
|
-
|
|
3886
|
+
d
|
|
3889
3887
|
);
|
|
3890
3888
|
} else
|
|
3891
|
-
this.setProperty(e.object_, a,
|
|
3889
|
+
this.setProperty(e.object_, a, p.init);
|
|
3892
3890
|
}
|
|
3893
3891
|
t.pop(), t[t.length - 1].value = e.object_;
|
|
3894
3892
|
}, r.prototype.stepProgram = function(t, e, i) {
|
|
@@ -3977,11 +3975,11 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3977
3975
|
if (Array.isArray(u)) {
|
|
3978
3976
|
var a = u[0];
|
|
3979
3977
|
a === r.SCOPE_REFERENCE && (a = e.scope);
|
|
3980
|
-
var
|
|
3978
|
+
var p = String(u[1]);
|
|
3981
3979
|
try {
|
|
3982
|
-
delete a.properties[
|
|
3980
|
+
delete a.properties[p];
|
|
3983
3981
|
} catch {
|
|
3984
|
-
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" +
|
|
3982
|
+
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" + p + "' of '" + a + "'") : c = !1;
|
|
3985
3983
|
}
|
|
3986
3984
|
}
|
|
3987
3985
|
u = c;
|
|
@@ -4024,10 +4022,10 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4024
4022
|
a = c - 1;
|
|
4025
4023
|
else
|
|
4026
4024
|
throw SyntaxError("Unknown update expression: " + i.operator);
|
|
4027
|
-
var
|
|
4028
|
-
if (
|
|
4029
|
-
return e.doneSetter_ = !0, e.setterValue_ =
|
|
4030
|
-
t.pop(), t[t.length - 1].value =
|
|
4025
|
+
var p = i.prefix ? a : c, d = this.setValue(e.leftSide_, a);
|
|
4026
|
+
if (d)
|
|
4027
|
+
return e.doneSetter_ = !0, e.setterValue_ = p, this.createSetter_(d, e.leftSide_, a);
|
|
4028
|
+
t.pop(), t[t.length - 1].value = p;
|
|
4031
4029
|
}, r.prototype.stepVariableDeclaration = function(t, e, i) {
|
|
4032
4030
|
var o = i.declarations, u = e.n_ || 0, c = o[u];
|
|
4033
4031
|
for (e.init_ && c && (this.setValueToScope(c.id.name, e.value), e.init_ = !1, c = o[++u]); c; ) {
|
|
@@ -4054,13 +4052,13 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4054
4052
|
\********************************/
|
|
4055
4053
|
/***/
|
|
4056
4054
|
function(m, N) {
|
|
4057
|
-
(function(
|
|
4055
|
+
(function(T, r) {
|
|
4058
4056
|
return r(N);
|
|
4059
|
-
})(typeof globalThis > "u" ? this || window : globalThis, function(
|
|
4060
|
-
|
|
4057
|
+
})(typeof globalThis > "u" ? this || window : globalThis, function(T) {
|
|
4058
|
+
T.version = "0.5.0";
|
|
4061
4059
|
var r, t = "", e, i;
|
|
4062
|
-
|
|
4063
|
-
return t = String(f), e = t.length, u(h),
|
|
4060
|
+
T.parse = function(f, h) {
|
|
4061
|
+
return t = String(f), e = t.length, u(h), oi(), gi(r.program);
|
|
4064
4062
|
};
|
|
4065
4063
|
var o = {
|
|
4066
4064
|
// JS-Interpreter change:
|
|
@@ -4127,93 +4125,93 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4127
4125
|
i = r.sourceFile;
|
|
4128
4126
|
}
|
|
4129
4127
|
var c = function(f, h) {
|
|
4130
|
-
for (var
|
|
4128
|
+
for (var v = 1, _ = 0; ; ) {
|
|
4131
4129
|
Ke.lastIndex = _;
|
|
4132
4130
|
var x = Ke.exec(f);
|
|
4133
4131
|
if (x && x.index < h)
|
|
4134
|
-
++
|
|
4132
|
+
++v, _ = x.index + x[0].length;
|
|
4135
4133
|
else
|
|
4136
4134
|
break;
|
|
4137
4135
|
}
|
|
4138
|
-
return { line:
|
|
4139
|
-
}, a = 0,
|
|
4136
|
+
return { line: v, column: h - _ };
|
|
4137
|
+
}, a = 0, p = 0, d = 0, E, O, b, S, I, D, X, we = 0, z = 0, ye, ce, j, J;
|
|
4140
4138
|
function A(f, h) {
|
|
4141
|
-
var
|
|
4142
|
-
h += " (" +
|
|
4139
|
+
var v = c(t, f);
|
|
4140
|
+
h += " (" + v.line + ":" + v.column + ")";
|
|
4143
4141
|
var _ = new SyntaxError(h);
|
|
4144
|
-
throw _.pos = f, _.loc =
|
|
4142
|
+
throw _.pos = f, _.loc = v, _.raisedAt = a, _;
|
|
4145
4143
|
}
|
|
4146
|
-
var
|
|
4147
|
-
break:
|
|
4148
|
-
case:
|
|
4149
|
-
catch:
|
|
4150
|
-
continue:
|
|
4151
|
-
debugger:
|
|
4152
|
-
default:
|
|
4153
|
-
do:
|
|
4154
|
-
else:
|
|
4155
|
-
finally:
|
|
4156
|
-
for:
|
|
4157
|
-
function:
|
|
4158
|
-
if:
|
|
4159
|
-
return:
|
|
4160
|
-
switch:
|
|
4161
|
-
throw:
|
|
4162
|
-
try:
|
|
4163
|
-
var:
|
|
4164
|
-
while:
|
|
4165
|
-
with:
|
|
4166
|
-
null:
|
|
4167
|
-
true:
|
|
4168
|
-
false:
|
|
4169
|
-
new:
|
|
4144
|
+
var Yn = [], Xe = { type: "num" }, Xt = { type: "regexp" }, ut = { type: "string" }, _e = { type: "name" }, st = { type: "eof" }, ct = { keyword: "break" }, ft = { keyword: "case", beforeExpr: !0 }, Wt = { keyword: "catch" }, Jt = { keyword: "continue" }, zt = { keyword: "debugger" }, Ht = { keyword: "default" }, Kt = { keyword: "do", isLoop: !0 }, qt = { keyword: "else", beforeExpr: !0 }, Zt = { keyword: "finally" }, Qt = { keyword: "for", isLoop: !0 }, lt = { keyword: "function" }, er = { keyword: "if" }, tr = { keyword: "return", beforeExpr: !0 }, pt = { keyword: "switch" }, rr = { keyword: "throw", beforeExpr: !0 }, nr = { keyword: "try" }, ht = { keyword: "var" }, dt = { keyword: "while", isLoop: !0 }, ir = { keyword: "with" }, ar = { keyword: "new", beforeExpr: !0 }, or = { keyword: "this" }, ur = { keyword: "null", atomValue: null }, sr = { keyword: "true", atomValue: !0 }, cr = { keyword: "false", atomValue: !1 }, We = { keyword: "in", binop: 7, beforeExpr: !0 }, Xn = {
|
|
4145
|
+
break: ct,
|
|
4146
|
+
case: ft,
|
|
4147
|
+
catch: Wt,
|
|
4148
|
+
continue: Jt,
|
|
4149
|
+
debugger: zt,
|
|
4150
|
+
default: Ht,
|
|
4151
|
+
do: Kt,
|
|
4152
|
+
else: qt,
|
|
4153
|
+
finally: Zt,
|
|
4154
|
+
for: Qt,
|
|
4155
|
+
function: lt,
|
|
4156
|
+
if: er,
|
|
4157
|
+
return: tr,
|
|
4158
|
+
switch: pt,
|
|
4159
|
+
throw: rr,
|
|
4160
|
+
try: nr,
|
|
4161
|
+
var: ht,
|
|
4162
|
+
while: dt,
|
|
4163
|
+
with: ir,
|
|
4164
|
+
null: ur,
|
|
4165
|
+
true: sr,
|
|
4166
|
+
false: cr,
|
|
4167
|
+
new: ar,
|
|
4170
4168
|
in: We,
|
|
4171
4169
|
instanceof: { keyword: "instanceof", binop: 7, beforeExpr: !0 },
|
|
4172
|
-
this:
|
|
4170
|
+
this: or,
|
|
4173
4171
|
typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
|
|
4174
4172
|
void: { keyword: "void", prefix: !0, beforeExpr: !0 },
|
|
4175
4173
|
delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
|
|
4176
|
-
},
|
|
4174
|
+
}, vt = { type: "[", beforeExpr: !0 }, yt = { type: "]" }, xe = { type: "{", beforeExpr: !0 }, Ee = { type: "}" }, Z = { type: "(", beforeExpr: !0 }, K = { type: ")" }, ne = { type: ",", beforeExpr: !0 }, Q = { type: ";", beforeExpr: !0 }, Ce = { type: ":", beforeExpr: !0 }, fr = { type: "." }, lr = { type: "?", beforeExpr: !0 }, pr = { binop: 10, beforeExpr: !0 }, hr = { isAssign: !0, beforeExpr: !0 }, fe = { isAssign: !0, beforeExpr: !0 }, Wn = { postfix: !0, prefix: !0, isUpdate: !0 }, dr = { prefix: !0, beforeExpr: !0 }, vr = { binop: 1, beforeExpr: !0 }, yr = { binop: 2, beforeExpr: !0 }, Jn = { binop: 3, beforeExpr: !0 }, zn = { binop: 4, beforeExpr: !0 }, Hn = { binop: 5, beforeExpr: !0 }, Kn = { binop: 6, beforeExpr: !0 }, qn = { binop: 7, beforeExpr: !0 }, Zn = { binop: 8, beforeExpr: !0 }, Qn = { binop: 9, prefix: !0, beforeExpr: !0 }, ei = { binop: 10, beforeExpr: !0 };
|
|
4177
4175
|
function Je(f) {
|
|
4178
|
-
for (var h = f.split(" "),
|
|
4179
|
-
|
|
4176
|
+
for (var h = f.split(" "), v = /* @__PURE__ */ Object.create(null), _ = 0; _ < h.length; _++)
|
|
4177
|
+
v[h[_]] = !0;
|
|
4180
4178
|
return function(x) {
|
|
4181
|
-
return
|
|
4179
|
+
return v[x] || !1;
|
|
4182
4180
|
};
|
|
4183
4181
|
}
|
|
4184
|
-
var
|
|
4185
|
-
return f < 65 ? f === 36 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 &&
|
|
4186
|
-
},
|
|
4187
|
-
return f < 48 ? f === 36 : f < 58 ? !0 : f < 65 ? !1 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 &&
|
|
4182
|
+
var ti = Je("class enum extends super const export import"), _r = Je("implements interface let package private protected public static yield"), ze = Je("eval arguments"), ri = Je("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"), ni = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Er = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ii = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_", gr = new RegExp("[" + Er + "]"), ai = new RegExp("[" + Er + ii + "]"), He = /[\n\r\u2028\u2029]/, Ke = /\r\n|[\n\r\u2028\u2029]/g, qe = function(f) {
|
|
4183
|
+
return f < 65 ? f === 36 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && gr.test(String.fromCharCode(f));
|
|
4184
|
+
}, br = function(f) {
|
|
4185
|
+
return f < 48 ? f === 36 : f < 58 ? !0 : f < 65 ? !1 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && ai.test(String.fromCharCode(f));
|
|
4188
4186
|
};
|
|
4189
4187
|
function le() {
|
|
4190
4188
|
this.line = D, this.column = a - X;
|
|
4191
4189
|
}
|
|
4192
|
-
function
|
|
4190
|
+
function oi() {
|
|
4193
4191
|
D = 1, a = X = 0, I = !0, Ae();
|
|
4194
4192
|
}
|
|
4195
4193
|
function $(f, h) {
|
|
4196
|
-
|
|
4194
|
+
d = a, r.locations && (O = new le()), b = f, Ae(), S = h, I = f.beforeExpr;
|
|
4197
4195
|
}
|
|
4198
|
-
function
|
|
4199
|
-
var f = r.onComment && r.locations && new le(), h = a,
|
|
4200
|
-
if (
|
|
4196
|
+
function ui() {
|
|
4197
|
+
var f = r.onComment && r.locations && new le(), h = a, v = t.indexOf("*/", a += 2);
|
|
4198
|
+
if (v === -1 && A(a - 2, "Unterminated comment"), a = v + 2, r.locations) {
|
|
4201
4199
|
Ke.lastIndex = h;
|
|
4202
4200
|
for (var _; (_ = Ke.exec(t)) && _.index < a; )
|
|
4203
4201
|
++D, X = _.index + _[0].length;
|
|
4204
4202
|
}
|
|
4205
4203
|
r.onComment && r.onComment(
|
|
4206
4204
|
!0,
|
|
4207
|
-
t.slice(h + 2,
|
|
4205
|
+
t.slice(h + 2, v),
|
|
4208
4206
|
h,
|
|
4209
4207
|
a,
|
|
4210
4208
|
f,
|
|
4211
4209
|
r.locations && new le()
|
|
4212
4210
|
);
|
|
4213
4211
|
}
|
|
4214
|
-
function
|
|
4215
|
-
for (var f = a, h = r.onComment && r.locations && new le(),
|
|
4216
|
-
++a,
|
|
4212
|
+
function _t() {
|
|
4213
|
+
for (var f = a, h = r.onComment && r.locations && new le(), v = t.charCodeAt(a += 2); a < e && v !== 10 && v !== 13 && v !== 8232 && v !== 8233; )
|
|
4214
|
+
++a, v = t.charCodeAt(a);
|
|
4217
4215
|
r.onComment && r.onComment(
|
|
4218
4216
|
!1,
|
|
4219
4217
|
t.slice(f + 2, a),
|
|
@@ -4239,68 +4237,68 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4239
4237
|
else if (f === 47) {
|
|
4240
4238
|
var h = t.charCodeAt(a + 1);
|
|
4241
4239
|
if (h === 42)
|
|
4242
|
-
|
|
4240
|
+
ui();
|
|
4243
4241
|
else if (h === 47)
|
|
4244
|
-
|
|
4242
|
+
_t();
|
|
4245
4243
|
else break;
|
|
4246
4244
|
} else if (f === 160)
|
|
4247
4245
|
++a;
|
|
4248
|
-
else if (f >= 5760 &&
|
|
4246
|
+
else if (f >= 5760 && ni.test(String.fromCharCode(f)))
|
|
4249
4247
|
++a;
|
|
4250
4248
|
else
|
|
4251
4249
|
break;
|
|
4252
4250
|
}
|
|
4253
4251
|
}
|
|
4254
|
-
function
|
|
4252
|
+
function si() {
|
|
4255
4253
|
var f = t.charCodeAt(a + 1);
|
|
4256
|
-
f >= 48 && f <= 57 ?
|
|
4254
|
+
f >= 48 && f <= 57 ? Rr(!0) : (++a, $(fr));
|
|
4257
4255
|
}
|
|
4258
|
-
function
|
|
4256
|
+
function ci() {
|
|
4259
4257
|
var f = t.charCodeAt(a + 1);
|
|
4260
|
-
I ? (++a,
|
|
4258
|
+
I ? (++a, mr()) : f === 61 ? G(fe, 2) : G(pr, 1);
|
|
4261
4259
|
}
|
|
4262
|
-
function
|
|
4260
|
+
function fi() {
|
|
4263
4261
|
var f = t.charCodeAt(a + 1);
|
|
4264
|
-
f === 61 ? G(fe, 2) : G(
|
|
4262
|
+
f === 61 ? G(fe, 2) : G(ei, 1);
|
|
4265
4263
|
}
|
|
4266
|
-
function
|
|
4264
|
+
function li(f) {
|
|
4267
4265
|
var h = t.charCodeAt(a + 1);
|
|
4268
|
-
h === f ? G(f === 124 ?
|
|
4266
|
+
h === f ? G(f === 124 ? vr : yr, 2) : h === 61 ? G(fe, 2) : G(f === 124 ? Jn : Hn, 1);
|
|
4269
4267
|
}
|
|
4270
|
-
function
|
|
4268
|
+
function pi() {
|
|
4271
4269
|
var f = t.charCodeAt(a + 1);
|
|
4272
|
-
f === 61 ? G(fe, 2) : G(
|
|
4270
|
+
f === 61 ? G(fe, 2) : G(zn, 1);
|
|
4273
4271
|
}
|
|
4274
|
-
function
|
|
4272
|
+
function hi(f) {
|
|
4275
4273
|
var h = t.charCodeAt(a + 1);
|
|
4276
4274
|
if (h === f) {
|
|
4277
4275
|
if (h === 45 && t.charCodeAt(a + 2) === 62 && He.test(t.slice(z, a))) {
|
|
4278
|
-
a += 3,
|
|
4276
|
+
a += 3, _t(), Ae(), ge();
|
|
4279
4277
|
return;
|
|
4280
4278
|
}
|
|
4281
|
-
G(
|
|
4282
|
-
} else h === 61 ? G(fe, 2) : G(
|
|
4279
|
+
G(Wn, 2);
|
|
4280
|
+
} else h === 61 ? G(fe, 2) : G(Qn, 1);
|
|
4283
4281
|
}
|
|
4284
|
-
function
|
|
4285
|
-
var h = t.charCodeAt(a + 1),
|
|
4282
|
+
function di(f) {
|
|
4283
|
+
var h = t.charCodeAt(a + 1), v = 1;
|
|
4286
4284
|
if (h === f) {
|
|
4287
|
-
|
|
4285
|
+
v = f === 62 && t.charCodeAt(a + 2) === 62 ? 3 : 2, t.charCodeAt(a + v) === 61 ? G(fe, v + 1) : G(Zn, v);
|
|
4288
4286
|
return;
|
|
4289
4287
|
}
|
|
4290
4288
|
if (h === 33 && f === 60 && t.charCodeAt(a + 2) === 45 && t.charCodeAt(a + 3) === 45) {
|
|
4291
|
-
a += 4,
|
|
4289
|
+
a += 4, _t(), Ae(), ge();
|
|
4292
4290
|
return;
|
|
4293
4291
|
}
|
|
4294
|
-
h === 61 && (
|
|
4292
|
+
h === 61 && (v = t.charCodeAt(a + 2) === 61 ? 3 : 2), G(qn, v);
|
|
4295
4293
|
}
|
|
4296
|
-
function
|
|
4294
|
+
function vi(f) {
|
|
4297
4295
|
var h = t.charCodeAt(a + 1);
|
|
4298
|
-
h === 61 ? G(
|
|
4296
|
+
h === 61 ? G(Kn, t.charCodeAt(a + 2) === 61 ? 3 : 2) : G(f === 61 ? hr : dr, 1);
|
|
4299
4297
|
}
|
|
4300
|
-
function
|
|
4298
|
+
function yi(f) {
|
|
4301
4299
|
switch (f) {
|
|
4302
4300
|
case 46:
|
|
4303
|
-
return
|
|
4301
|
+
return si();
|
|
4304
4302
|
case 40:
|
|
4305
4303
|
return ++a, $(Z);
|
|
4306
4304
|
case 41:
|
|
@@ -4310,9 +4308,9 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4310
4308
|
case 44:
|
|
4311
4309
|
return ++a, $(ne);
|
|
4312
4310
|
case 91:
|
|
4313
|
-
return ++a, $(
|
|
4311
|
+
return ++a, $(vt);
|
|
4314
4312
|
case 93:
|
|
4315
|
-
return ++a, $(
|
|
4313
|
+
return ++a, $(yt);
|
|
4316
4314
|
case 123:
|
|
4317
4315
|
return ++a, $(xe);
|
|
4318
4316
|
case 125:
|
|
@@ -4320,10 +4318,10 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4320
4318
|
case 58:
|
|
4321
4319
|
return ++a, $(Ce);
|
|
4322
4320
|
case 63:
|
|
4323
|
-
return ++a, $(
|
|
4321
|
+
return ++a, $(lr);
|
|
4324
4322
|
case 48:
|
|
4325
4323
|
var h = t.charCodeAt(a + 1);
|
|
4326
|
-
if (h === 120 || h === 88) return
|
|
4324
|
+
if (h === 120 || h === 88) return _i();
|
|
4327
4325
|
case 49:
|
|
4328
4326
|
case 50:
|
|
4329
4327
|
case 51:
|
|
@@ -4333,57 +4331,57 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4333
4331
|
case 55:
|
|
4334
4332
|
case 56:
|
|
4335
4333
|
case 57:
|
|
4336
|
-
return
|
|
4334
|
+
return Rr(!1);
|
|
4337
4335
|
case 34:
|
|
4338
4336
|
case 39:
|
|
4339
|
-
return
|
|
4337
|
+
return Ei(f);
|
|
4340
4338
|
case 47:
|
|
4341
|
-
return
|
|
4339
|
+
return ci();
|
|
4342
4340
|
case 37:
|
|
4343
4341
|
case 42:
|
|
4344
|
-
return
|
|
4342
|
+
return fi();
|
|
4345
4343
|
case 124:
|
|
4346
4344
|
case 38:
|
|
4347
|
-
return
|
|
4345
|
+
return li(f);
|
|
4348
4346
|
case 94:
|
|
4349
|
-
return
|
|
4347
|
+
return pi();
|
|
4350
4348
|
case 43:
|
|
4351
4349
|
case 45:
|
|
4352
|
-
return
|
|
4350
|
+
return hi(f);
|
|
4353
4351
|
case 60:
|
|
4354
4352
|
case 62:
|
|
4355
|
-
return
|
|
4353
|
+
return di(f);
|
|
4356
4354
|
case 61:
|
|
4357
4355
|
case 33:
|
|
4358
|
-
return
|
|
4356
|
+
return vi(f);
|
|
4359
4357
|
case 126:
|
|
4360
|
-
return G(
|
|
4358
|
+
return G(dr, 1);
|
|
4361
4359
|
}
|
|
4362
4360
|
return !1;
|
|
4363
4361
|
}
|
|
4364
4362
|
function ge(f) {
|
|
4365
|
-
if (f ? a =
|
|
4366
|
-
if (a >= e) return $(
|
|
4363
|
+
if (f ? a = p + 1 : p = a, r.locations && (E = new le()), f) return mr();
|
|
4364
|
+
if (a >= e) return $(st);
|
|
4367
4365
|
var h = t.charCodeAt(a);
|
|
4368
4366
|
if (qe(h) || h === 92)
|
|
4369
|
-
return
|
|
4370
|
-
var
|
|
4371
|
-
if (
|
|
4367
|
+
return Nr();
|
|
4368
|
+
var v = yi(h);
|
|
4369
|
+
if (v === !1) {
|
|
4372
4370
|
var _ = String.fromCharCode(h);
|
|
4373
|
-
if (_ === "\\" ||
|
|
4374
|
-
return
|
|
4371
|
+
if (_ === "\\" || gr.test(_))
|
|
4372
|
+
return Nr();
|
|
4375
4373
|
A(a, "Unexpected character '" + _ + "'");
|
|
4376
4374
|
}
|
|
4377
4375
|
}
|
|
4378
4376
|
function G(f, h) {
|
|
4379
|
-
var
|
|
4380
|
-
a += h, $(f,
|
|
4377
|
+
var v = t.slice(a, a + h);
|
|
4378
|
+
a += h, $(f, v);
|
|
4381
4379
|
}
|
|
4382
|
-
function
|
|
4383
|
-
for (var f, h,
|
|
4384
|
-
a >= e && A(
|
|
4380
|
+
function mr() {
|
|
4381
|
+
for (var f, h, v = a; ; ) {
|
|
4382
|
+
a >= e && A(v, "Unterminated regexp");
|
|
4385
4383
|
var _ = t.charAt(a);
|
|
4386
|
-
if (He.test(_) && A(
|
|
4384
|
+
if (He.test(_) && A(v, "Unterminated regexp"), f)
|
|
4387
4385
|
f = !1;
|
|
4388
4386
|
else {
|
|
4389
4387
|
if (_ === "[")
|
|
@@ -4396,56 +4394,56 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4396
4394
|
}
|
|
4397
4395
|
++a;
|
|
4398
4396
|
}
|
|
4399
|
-
var x = t.slice(
|
|
4397
|
+
var x = t.slice(v, a);
|
|
4400
4398
|
++a;
|
|
4401
|
-
var
|
|
4402
|
-
|
|
4399
|
+
var P = Or();
|
|
4400
|
+
P && !/^[gmi]*$/.test(P) && A(v, "Invalid regexp flag");
|
|
4403
4401
|
try {
|
|
4404
|
-
var C = new RegExp(x,
|
|
4402
|
+
var C = new RegExp(x, P);
|
|
4405
4403
|
} catch (M) {
|
|
4406
|
-
throw M instanceof SyntaxError && A(
|
|
4404
|
+
throw M instanceof SyntaxError && A(v, M.message), M;
|
|
4407
4405
|
}
|
|
4408
|
-
$(
|
|
4406
|
+
$(Xt, C);
|
|
4409
4407
|
}
|
|
4410
4408
|
function Ie(f, h) {
|
|
4411
|
-
for (var
|
|
4409
|
+
for (var v = a, _ = 0, x = h === void 0 ? 1 / 0 : h, P = 0; P < x; ++P) {
|
|
4412
4410
|
var C = t.charCodeAt(a), M;
|
|
4413
4411
|
if (C >= 97 ? M = C - 97 + 10 : C >= 65 ? M = C - 65 + 10 : C >= 48 && C <= 57 ? M = C - 48 : M = 1 / 0, M >= f) break;
|
|
4414
4412
|
++a, _ = _ * f + M;
|
|
4415
4413
|
}
|
|
4416
|
-
return a ===
|
|
4414
|
+
return a === v || h !== void 0 && a - v !== h ? null : _;
|
|
4417
4415
|
}
|
|
4418
|
-
function
|
|
4416
|
+
function _i() {
|
|
4419
4417
|
a += 2;
|
|
4420
4418
|
var f = Ie(16);
|
|
4421
|
-
f === null && A(
|
|
4419
|
+
f === null && A(p + 2, "Expected hexadecimal number"), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number"), $(Xe, f);
|
|
4422
4420
|
}
|
|
4423
|
-
function
|
|
4424
|
-
var h = a,
|
|
4425
|
-
!f && Ie(10) === null && A(h, "Invalid number"), t.charCodeAt(a) === 46 && (++a, Ie(10),
|
|
4421
|
+
function Rr(f) {
|
|
4422
|
+
var h = a, v = !1, _ = t.charCodeAt(a) === 48;
|
|
4423
|
+
!f && Ie(10) === null && A(h, "Invalid number"), t.charCodeAt(a) === 46 && (++a, Ie(10), v = !0);
|
|
4426
4424
|
var x = t.charCodeAt(a);
|
|
4427
|
-
(x === 69 || x === 101) && (x = t.charCodeAt(++a), (x === 43 || x === 45) && ++a, Ie(10) === null && A(h, "Invalid number"),
|
|
4428
|
-
var
|
|
4429
|
-
|
|
4425
|
+
(x === 69 || x === 101) && (x = t.charCodeAt(++a), (x === 43 || x === 45) && ++a, Ie(10) === null && A(h, "Invalid number"), v = !0), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number");
|
|
4426
|
+
var P = t.slice(h, a), C;
|
|
4427
|
+
v ? C = parseFloat(P) : !_ || P.length === 1 ? C = parseInt(P, 10) : /[89]/.test(P) || J ? A(h, "Invalid number") : C = parseInt(P, 8), $(Xe, C);
|
|
4430
4428
|
}
|
|
4431
|
-
function
|
|
4429
|
+
function Ei(f) {
|
|
4432
4430
|
a++;
|
|
4433
4431
|
for (var h = ""; ; ) {
|
|
4434
|
-
a >= e && A(
|
|
4435
|
-
var
|
|
4436
|
-
if (
|
|
4437
|
-
++a, $(
|
|
4432
|
+
a >= e && A(p, "Unterminated string constant");
|
|
4433
|
+
var v = t.charCodeAt(a);
|
|
4434
|
+
if (v === f) {
|
|
4435
|
+
++a, $(ut, h);
|
|
4438
4436
|
return;
|
|
4439
4437
|
}
|
|
4440
|
-
if (
|
|
4441
|
-
|
|
4438
|
+
if (v === 92) {
|
|
4439
|
+
v = t.charCodeAt(++a);
|
|
4442
4440
|
var _ = /^[0-7]+/.exec(t.slice(a, a + 3));
|
|
4443
4441
|
for (_ && (_ = _[0]); _ && parseInt(_, 8) > 255; )
|
|
4444
4442
|
_ = _.slice(0, -1);
|
|
4445
4443
|
if (_ === "0" && (_ = null), ++a, _)
|
|
4446
4444
|
J && A(a - 2, "Octal literal in strict mode"), h += String.fromCharCode(parseInt(_, 8)), a += _.length - 1;
|
|
4447
4445
|
else
|
|
4448
|
-
switch (
|
|
4446
|
+
switch (v) {
|
|
4449
4447
|
case 110:
|
|
4450
4448
|
h += `
|
|
4451
4449
|
`;
|
|
@@ -4483,74 +4481,74 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4483
4481
|
r.locations && (X = a, ++D);
|
|
4484
4482
|
break;
|
|
4485
4483
|
default:
|
|
4486
|
-
h += String.fromCharCode(
|
|
4484
|
+
h += String.fromCharCode(v);
|
|
4487
4485
|
break;
|
|
4488
4486
|
}
|
|
4489
4487
|
} else
|
|
4490
|
-
(
|
|
4488
|
+
(v === 13 || v === 10 || v === 8232 || v === 8233) && A(p, "Unterminated string constant"), h += String.fromCharCode(v), ++a;
|
|
4491
4489
|
}
|
|
4492
4490
|
}
|
|
4493
4491
|
function Ze(f) {
|
|
4494
4492
|
var h = Ie(16, f);
|
|
4495
|
-
return h === null && A(
|
|
4493
|
+
return h === null && A(p, "Bad character escape sequence"), /** @type {number} */
|
|
4496
4494
|
h;
|
|
4497
4495
|
}
|
|
4498
4496
|
var be;
|
|
4499
|
-
function
|
|
4497
|
+
function Or() {
|
|
4500
4498
|
be = !1;
|
|
4501
|
-
for (var f, h = !0,
|
|
4499
|
+
for (var f, h = !0, v = a; ; ) {
|
|
4502
4500
|
var _ = t.charCodeAt(a);
|
|
4503
|
-
if (
|
|
4501
|
+
if (br(_))
|
|
4504
4502
|
be && (f += t.charAt(a)), ++a;
|
|
4505
4503
|
else if (_ === 92) {
|
|
4506
|
-
be || (f = t.slice(
|
|
4507
|
-
var x = Ze(4),
|
|
4508
|
-
|
|
4504
|
+
be || (f = t.slice(v, a)), be = !0, t.charCodeAt(++a) !== 117 && A(a, "Expecting Unicode escape sequence \\uXXXX"), ++a;
|
|
4505
|
+
var x = Ze(4), P = String.fromCharCode(x);
|
|
4506
|
+
P || A(a - 1, "Invalid Unicode escape"), (h ? qe(x) : br(x)) || A(a - 4, "Invalid Unicode escape"), f += P;
|
|
4509
4507
|
} else
|
|
4510
4508
|
break;
|
|
4511
4509
|
h = !1;
|
|
4512
4510
|
}
|
|
4513
|
-
return be ? f : t.slice(
|
|
4511
|
+
return be ? f : t.slice(v, a);
|
|
4514
4512
|
}
|
|
4515
|
-
function
|
|
4516
|
-
var f =
|
|
4517
|
-
!be &&
|
|
4513
|
+
function Nr() {
|
|
4514
|
+
var f = Or(), h = _e;
|
|
4515
|
+
!be && ri(f) && (h = Xn[f]), $(h, f);
|
|
4518
4516
|
}
|
|
4519
4517
|
function k() {
|
|
4520
|
-
we =
|
|
4518
|
+
we = p, z = d, ye = O, ge();
|
|
4521
4519
|
}
|
|
4522
|
-
function
|
|
4523
|
-
if (J = f, a =
|
|
4520
|
+
function Et(f) {
|
|
4521
|
+
if (J = f, a = p, r.locations)
|
|
4524
4522
|
for (; a < X; )
|
|
4525
4523
|
X = t.lastIndexOf(`
|
|
4526
4524
|
`, X - 2) + 1, --D;
|
|
4527
4525
|
Ae(), ge();
|
|
4528
4526
|
}
|
|
4529
|
-
function
|
|
4530
|
-
this.type = null, this.start =
|
|
4527
|
+
function Tr() {
|
|
4528
|
+
this.type = null, this.start = p, this.end = null;
|
|
4531
4529
|
}
|
|
4532
|
-
function
|
|
4530
|
+
function Sr() {
|
|
4533
4531
|
this.start = E, this.end = null, i && (this.source = i);
|
|
4534
4532
|
}
|
|
4535
4533
|
function V() {
|
|
4536
|
-
var f = new
|
|
4537
|
-
return r.locations && (f.loc = new
|
|
4534
|
+
var f = new Tr();
|
|
4535
|
+
return r.locations && (f.loc = new Sr()), r.directSourceFile && (f.sourceFile = r.directSourceFile), r.ranges && (f.range = [p, 0]), f;
|
|
4538
4536
|
}
|
|
4539
4537
|
function ie(f) {
|
|
4540
|
-
var h = new
|
|
4541
|
-
return h.start = f.start, r.locations && (h.loc = new
|
|
4538
|
+
var h = new Tr();
|
|
4539
|
+
return h.start = f.start, r.locations && (h.loc = new Sr(), h.loc.start = f.loc.start), r.ranges && (h.range = [f.range[0], 0]), h;
|
|
4542
4540
|
}
|
|
4543
4541
|
function w(f, h) {
|
|
4544
4542
|
return f.type = h, f.end = z, r.locations && (f.loc.end = ye), r.ranges && (f.range[1] = z), f;
|
|
4545
4543
|
}
|
|
4546
|
-
function
|
|
4544
|
+
function gt(f) {
|
|
4547
4545
|
return f.type === "ExpressionStatement" && f.expression.type === "Literal" && f.expression.value === "use strict";
|
|
4548
4546
|
}
|
|
4549
4547
|
function U(f) {
|
|
4550
4548
|
return b === f ? (k(), !0) : !1;
|
|
4551
4549
|
}
|
|
4552
4550
|
function Qe() {
|
|
4553
|
-
return !r.strictSemicolons && (b ===
|
|
4551
|
+
return !r.strictSemicolons && (b === st || b === Ee || He.test(t.slice(z, p)));
|
|
4554
4552
|
}
|
|
4555
4553
|
function pe() {
|
|
4556
4554
|
!U(Q) && !Qe() && ee();
|
|
@@ -4559,88 +4557,88 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4559
4557
|
b === f ? k() : ee();
|
|
4560
4558
|
}
|
|
4561
4559
|
function ee() {
|
|
4562
|
-
A(
|
|
4560
|
+
A(p, "Unexpected token");
|
|
4563
4561
|
}
|
|
4564
4562
|
function et(f) {
|
|
4565
4563
|
f.type !== "Identifier" && f.type !== "MemberExpression" && A(f.start, "Assigning to rvalue"), J && f.type === "Identifier" && ze(f.name) && A(f.start, "Assigning to " + f.name + " in strict mode");
|
|
4566
4564
|
}
|
|
4567
|
-
function
|
|
4565
|
+
function gi(f) {
|
|
4568
4566
|
we = z = a, r.locations && (ye = new le()), ce = J = !1, j = [], ge();
|
|
4569
|
-
var h = f || V(),
|
|
4570
|
-
for (f || (h.body = []); b !==
|
|
4567
|
+
var h = f || V(), v = !0;
|
|
4568
|
+
for (f || (h.body = []); b !== st; ) {
|
|
4571
4569
|
var _ = H();
|
|
4572
|
-
h.body.push(_),
|
|
4570
|
+
h.body.push(_), v && gt(_) && Et(!0), v = !1;
|
|
4573
4571
|
}
|
|
4574
4572
|
return w(h, "Program");
|
|
4575
4573
|
}
|
|
4576
|
-
var
|
|
4574
|
+
var bt = { kind: "loop" }, bi = { kind: "switch" };
|
|
4577
4575
|
function H() {
|
|
4578
|
-
(b ===
|
|
4576
|
+
(b === pr || b === fe && S === "/=") && ge(!0);
|
|
4579
4577
|
var f = b, h = V();
|
|
4580
4578
|
switch (f) {
|
|
4581
|
-
case
|
|
4582
|
-
case
|
|
4579
|
+
case ct:
|
|
4580
|
+
case Jt:
|
|
4583
4581
|
k();
|
|
4584
|
-
var
|
|
4582
|
+
var v = f === ct;
|
|
4585
4583
|
U(Q) || Qe() ? h.label = null : b !== _e ? ee() : (h.label = ae(), pe());
|
|
4586
4584
|
for (var _ = 0; _ < j.length; ++_) {
|
|
4587
4585
|
var x = j[_];
|
|
4588
|
-
if ((h.label === null || x.name === h.label.name) && (x.kind !== null && (
|
|
4586
|
+
if ((h.label === null || x.name === h.label.name) && (x.kind !== null && (v || x.kind === "loop") || h.label && v))
|
|
4589
4587
|
break;
|
|
4590
4588
|
}
|
|
4591
|
-
return _ === j.length && A(h.start, "Unsyntactic " + f.keyword), w(h,
|
|
4592
|
-
case
|
|
4589
|
+
return _ === j.length && A(h.start, "Unsyntactic " + f.keyword), w(h, v ? "BreakStatement" : "ContinueStatement");
|
|
4590
|
+
case zt:
|
|
4593
4591
|
return k(), pe(), w(h, "DebuggerStatement");
|
|
4594
|
-
case
|
|
4595
|
-
return k(), j.push(
|
|
4596
|
-
case
|
|
4597
|
-
if (k(), j.push(
|
|
4598
|
-
if (b ===
|
|
4599
|
-
var
|
|
4600
|
-
return k(),
|
|
4592
|
+
case Kt:
|
|
4593
|
+
return k(), j.push(bt), h.body = H(), j.pop(), B(dt), h.test = ke(), pe(), w(h, "DoWhileStatement");
|
|
4594
|
+
case Qt:
|
|
4595
|
+
if (k(), j.push(bt), B(Z), b === Q) return mt(h, null);
|
|
4596
|
+
if (b === ht) {
|
|
4597
|
+
var P = V();
|
|
4598
|
+
return k(), wr(P, !0), w(P, "VariableDeclaration"), P.declarations.length === 1 && U(We) ? Pr(h, P) : mt(h, P);
|
|
4601
4599
|
}
|
|
4602
|
-
var
|
|
4603
|
-
return U(We) ? (et(
|
|
4604
|
-
case
|
|
4605
|
-
return k(),
|
|
4600
|
+
var P = Y(!1, !0);
|
|
4601
|
+
return U(We) ? (et(P), Pr(h, P)) : mt(h, P);
|
|
4602
|
+
case lt:
|
|
4603
|
+
return k(), St(h, !0);
|
|
4604
|
+
case er:
|
|
4605
|
+
return k(), h.test = ke(), h.consequent = H(), h.alternate = U(qt) ? H() : null, w(h, "IfStatement");
|
|
4606
4606
|
case tr:
|
|
4607
|
-
return k(),
|
|
4608
|
-
case
|
|
4609
|
-
|
|
4610
|
-
case ht:
|
|
4611
|
-
k(), h.discriminant = ke(), h.cases = [], B(xe), j.push(mi);
|
|
4607
|
+
return !ce && !r.allowReturnOutsideFunction && A(p, "'return' outside of function"), k(), U(Q) || Qe() ? h.argument = null : (h.argument = Y(), pe()), w(h, "ReturnStatement");
|
|
4608
|
+
case pt:
|
|
4609
|
+
k(), h.discriminant = ke(), h.cases = [], B(xe), j.push(bi);
|
|
4612
4610
|
for (var C, M; b !== Ee; )
|
|
4613
|
-
if (b ===
|
|
4614
|
-
var Le = b ===
|
|
4611
|
+
if (b === ft || b === Ht) {
|
|
4612
|
+
var Le = b === ft;
|
|
4615
4613
|
C && w(C, "SwitchCase"), h.cases.push(C = V()), C.consequent = [], k(), Le ? C.test = Y() : (M && A(we, "Multiple default clauses"), M = !0, C.test = null), B(Ce);
|
|
4616
4614
|
} else
|
|
4617
4615
|
C || ee(), C.consequent.push(H());
|
|
4618
4616
|
return C && w(C, "SwitchCase"), k(), j.pop(), w(h, "SwitchStatement");
|
|
4617
|
+
case rr:
|
|
4618
|
+
return k(), He.test(t.slice(z, p)) && A(z, "Illegal newline after throw"), h.argument = Y(), pe(), w(h, "ThrowStatement");
|
|
4619
4619
|
case nr:
|
|
4620
|
-
|
|
4621
|
-
case ir:
|
|
4622
|
-
if (k(), h.block = De(), h.handler = null, b === Jt) {
|
|
4620
|
+
if (k(), h.block = De(), h.handler = null, b === Wt) {
|
|
4623
4621
|
var me = V();
|
|
4624
4622
|
k(), B(Z), me.param = ae(), J && ze(me.param.name) && A(me.param.start, "Binding " + me.param.name + " in strict mode"), B(K), me.body = De(), h.handler = w(me, "CatchClause");
|
|
4625
4623
|
}
|
|
4626
|
-
return h.finalizer = U(
|
|
4624
|
+
return h.finalizer = U(Zt) ? De() : null, !h.handler && !h.finalizer && A(h.start, "Missing catch or finally clause"), w(h, "TryStatement");
|
|
4625
|
+
case ht:
|
|
4626
|
+
return k(), wr(h), pe(), w(h, "VariableDeclaration");
|
|
4627
4627
|
case dt:
|
|
4628
|
-
return k(),
|
|
4629
|
-
case
|
|
4630
|
-
return k(), h.
|
|
4631
|
-
case ar:
|
|
4632
|
-
return J && A(l, "'with' in strict mode"), k(), h.object = ke(), h.body = H(), w(h, "WithStatement");
|
|
4628
|
+
return k(), h.test = ke(), j.push(bt), h.body = H(), j.pop(), w(h, "WhileStatement");
|
|
4629
|
+
case ir:
|
|
4630
|
+
return J && A(p, "'with' in strict mode"), k(), h.object = ke(), h.body = H(), w(h, "WithStatement");
|
|
4633
4631
|
case xe:
|
|
4634
4632
|
return De();
|
|
4635
4633
|
case Q:
|
|
4636
4634
|
return k(), w(h, "EmptyStatement");
|
|
4637
4635
|
default:
|
|
4638
|
-
var
|
|
4636
|
+
var wt = S, tt = Y();
|
|
4639
4637
|
if (f === _e && tt.type === "Identifier" && U(Ce)) {
|
|
4640
4638
|
for (var _ = 0; _ < j.length; ++_)
|
|
4641
|
-
j[_].name ===
|
|
4642
|
-
var
|
|
4643
|
-
return j.push({ name:
|
|
4639
|
+
j[_].name === wt && A(tt.start, "Label '" + wt + "' is already declared");
|
|
4640
|
+
var Si = b.isLoop ? "loop" : b === pt ? "switch" : null;
|
|
4641
|
+
return j.push({ name: wt, kind: Si }), h.body = H(), j.pop(), h.label = tt, w(h, "LabeledStatement");
|
|
4644
4642
|
} else
|
|
4645
4643
|
return h.expression = tt, pe(), w(h, "ExpressionStatement");
|
|
4646
4644
|
}
|
|
@@ -4651,169 +4649,169 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4651
4649
|
return B(K), f;
|
|
4652
4650
|
}
|
|
4653
4651
|
function De(f) {
|
|
4654
|
-
var h = V(),
|
|
4652
|
+
var h = V(), v = !0, _ = !1, x;
|
|
4655
4653
|
for (h.body = [], B(xe); !U(Ee); ) {
|
|
4656
|
-
var
|
|
4657
|
-
h.body.push(
|
|
4654
|
+
var P = H();
|
|
4655
|
+
h.body.push(P), v && f && gt(P) && (x = _, Et(_ = !0)), v = !1;
|
|
4658
4656
|
}
|
|
4659
|
-
return _ && !x &&
|
|
4657
|
+
return _ && !x && Et(!1), w(h, "BlockStatement");
|
|
4660
4658
|
}
|
|
4661
|
-
function
|
|
4659
|
+
function mt(f, h) {
|
|
4662
4660
|
return f.init = h, B(Q), f.test = b === Q ? null : Y(), B(Q), f.update = b === K ? null : Y(), B(K), f.body = H(), j.pop(), w(f, "ForStatement");
|
|
4663
4661
|
}
|
|
4664
|
-
function
|
|
4662
|
+
function Pr(f, h) {
|
|
4665
4663
|
return f.left = h, f.right = Y(), B(K), f.body = H(), j.pop(), w(f, "ForInStatement");
|
|
4666
4664
|
}
|
|
4667
|
-
function
|
|
4665
|
+
function wr(f, h) {
|
|
4668
4666
|
for (f.declarations = [], f.kind = "var"; ; ) {
|
|
4669
|
-
var
|
|
4670
|
-
if (
|
|
4667
|
+
var v = V();
|
|
4668
|
+
if (v.id = ae(), J && ze(v.id.name) && A(v.id.start, "Binding " + v.id.name + " in strict mode"), v.init = U(hr) ? Y(!0, h) : null, f.declarations.push(w(v, "VariableDeclarator")), !U(ne)) break;
|
|
4671
4669
|
}
|
|
4672
4670
|
}
|
|
4673
4671
|
function Y(f, h) {
|
|
4674
|
-
var
|
|
4672
|
+
var v = Rt(h);
|
|
4675
4673
|
if (!f && b === ne) {
|
|
4676
|
-
var _ = ie(
|
|
4677
|
-
for (_.expressions = [
|
|
4674
|
+
var _ = ie(v);
|
|
4675
|
+
for (_.expressions = [v]; U(ne); ) _.expressions.push(Rt(h));
|
|
4678
4676
|
return w(_, "SequenceExpression");
|
|
4679
4677
|
}
|
|
4680
|
-
return
|
|
4678
|
+
return v;
|
|
4681
4679
|
}
|
|
4682
|
-
function
|
|
4683
|
-
var h =
|
|
4680
|
+
function Rt(f) {
|
|
4681
|
+
var h = mi(f);
|
|
4684
4682
|
if (b.isAssign) {
|
|
4685
|
-
var
|
|
4686
|
-
return
|
|
4683
|
+
var v = ie(h);
|
|
4684
|
+
return v.operator = S, v.left = h, k(), v.right = Rt(f), et(h), w(v, "AssignmentExpression");
|
|
4687
4685
|
}
|
|
4688
4686
|
return h;
|
|
4689
4687
|
}
|
|
4690
|
-
function
|
|
4691
|
-
var h =
|
|
4692
|
-
if (U(
|
|
4693
|
-
var
|
|
4694
|
-
return
|
|
4688
|
+
function mi(f) {
|
|
4689
|
+
var h = Ri(f);
|
|
4690
|
+
if (U(lr)) {
|
|
4691
|
+
var v = ie(h);
|
|
4692
|
+
return v.test = h, v.consequent = Y(!0), B(Ce), v.alternate = Y(!0, f), w(v, "ConditionalExpression");
|
|
4695
4693
|
}
|
|
4696
4694
|
return h;
|
|
4697
4695
|
}
|
|
4698
|
-
function
|
|
4699
|
-
return Nt(
|
|
4696
|
+
function Ri(f) {
|
|
4697
|
+
return Ot(Nt(), -1, f);
|
|
4700
4698
|
}
|
|
4701
|
-
function
|
|
4699
|
+
function Ot(f, h, v) {
|
|
4702
4700
|
var _ = b.binop;
|
|
4703
|
-
if (_ !== null && (!
|
|
4701
|
+
if (_ !== null && (!v || b !== We) && _ > h) {
|
|
4704
4702
|
var x = ie(f);
|
|
4705
|
-
x.left = f, x.operator =
|
|
4706
|
-
var
|
|
4707
|
-
k(), x.right = Nt(
|
|
4708
|
-
var C = w(x,
|
|
4709
|
-
return
|
|
4703
|
+
x.left = f, x.operator = S;
|
|
4704
|
+
var P = b;
|
|
4705
|
+
k(), x.right = Ot(Nt(), _, v);
|
|
4706
|
+
var C = w(x, P === vr || P === yr ? "LogicalExpression" : "BinaryExpression");
|
|
4707
|
+
return Ot(C, h, v);
|
|
4710
4708
|
}
|
|
4711
4709
|
return f;
|
|
4712
4710
|
}
|
|
4713
|
-
function
|
|
4711
|
+
function Nt() {
|
|
4714
4712
|
if (b.prefix) {
|
|
4715
4713
|
var f = V(), h = b.isUpdate;
|
|
4716
|
-
return f.operator =
|
|
4714
|
+
return f.operator = S, f.prefix = !0, I = !0, k(), f.argument = Nt(), h ? et(f.argument) : J && f.operator === "delete" && f.argument.type === "Identifier" && A(f.start, "Deleting local variable in strict mode"), w(f, h ? "UpdateExpression" : "UnaryExpression");
|
|
4717
4715
|
}
|
|
4718
|
-
for (var
|
|
4719
|
-
var f = ie(
|
|
4720
|
-
f.operator =
|
|
4716
|
+
for (var v = Oi(); b.postfix && !Qe(); ) {
|
|
4717
|
+
var f = ie(v);
|
|
4718
|
+
f.operator = S, f.prefix = !1, f.argument = v, et(v), k(), v = w(f, "UpdateExpression");
|
|
4721
4719
|
}
|
|
4722
|
-
return
|
|
4720
|
+
return v;
|
|
4723
4721
|
}
|
|
4724
|
-
function
|
|
4725
|
-
return Fe(
|
|
4722
|
+
function Oi() {
|
|
4723
|
+
return Fe(Tt());
|
|
4726
4724
|
}
|
|
4727
4725
|
function Fe(f, h) {
|
|
4728
|
-
var
|
|
4729
|
-
return U(
|
|
4726
|
+
var v;
|
|
4727
|
+
return U(fr) ? (v = ie(f), v.object = f, v.property = ae(!0), v.computed = !1, Fe(w(v, "MemberExpression"), h)) : U(vt) ? (v = ie(f), v.object = f, v.property = Y(), v.computed = !0, B(yt), Fe(w(v, "MemberExpression"), h)) : !h && U(Z) ? (v = ie(f), v.callee = f, v.arguments = Pt(K, !1), Fe(w(v, "CallExpression"), h)) : f;
|
|
4730
4728
|
}
|
|
4731
|
-
function
|
|
4729
|
+
function Tt() {
|
|
4732
4730
|
var f;
|
|
4733
4731
|
switch (b) {
|
|
4734
|
-
case
|
|
4732
|
+
case or:
|
|
4735
4733
|
return f = V(), k(), w(f, "ThisExpression");
|
|
4736
4734
|
case _e:
|
|
4737
4735
|
return ae();
|
|
4738
4736
|
case Xe:
|
|
4739
|
-
case
|
|
4740
|
-
case
|
|
4741
|
-
return f = V(), f.value =
|
|
4737
|
+
case ut:
|
|
4738
|
+
case Xt:
|
|
4739
|
+
return f = V(), f.value = S, f.raw = t.slice(p, d), k(), w(f, "Literal");
|
|
4740
|
+
case ur:
|
|
4742
4741
|
case sr:
|
|
4743
4742
|
case cr:
|
|
4744
|
-
case fr:
|
|
4745
4743
|
return f = V(), f.value = b.atomValue, f.raw = b.keyword, k(), w(f, "Literal");
|
|
4746
4744
|
case Z:
|
|
4747
|
-
var h = E,
|
|
4745
|
+
var h = E, v = p;
|
|
4748
4746
|
k();
|
|
4749
4747
|
var _ = Y();
|
|
4750
|
-
return _.start =
|
|
4751
|
-
case
|
|
4752
|
-
return f = V(), k(), f.elements =
|
|
4748
|
+
return _.start = v, _.end = d, r.locations && (_.loc.start = h, _.loc.end = O), r.ranges && (_.range = [v, d]), B(K), _;
|
|
4749
|
+
case vt:
|
|
4750
|
+
return f = V(), k(), f.elements = Pt(yt, !0, !0), w(f, "ArrayExpression");
|
|
4753
4751
|
case xe:
|
|
4754
|
-
return Si();
|
|
4755
|
-
case pt:
|
|
4756
|
-
return f = V(), k(), Pt(f, !1);
|
|
4757
|
-
case or:
|
|
4758
4752
|
return Ti();
|
|
4753
|
+
case lt:
|
|
4754
|
+
return f = V(), k(), St(f, !1);
|
|
4755
|
+
case ar:
|
|
4756
|
+
return Ni();
|
|
4759
4757
|
}
|
|
4760
4758
|
ee();
|
|
4761
4759
|
}
|
|
4762
|
-
function
|
|
4760
|
+
function Ni() {
|
|
4763
4761
|
var f = V();
|
|
4764
|
-
return k(), f.callee = Fe(
|
|
4762
|
+
return k(), f.callee = Fe(Tt(), !0), f.arguments = U(Z) ? Pt(K, !1) : Yn, w(f, "NewExpression");
|
|
4765
4763
|
}
|
|
4766
|
-
function
|
|
4767
|
-
var f = V(), h = !0,
|
|
4764
|
+
function Ti() {
|
|
4765
|
+
var f = V(), h = !0, v = !1;
|
|
4768
4766
|
for (f.properties = [], k(); !U(Ee); ) {
|
|
4769
4767
|
if (h)
|
|
4770
4768
|
h = !1;
|
|
4771
4769
|
else if (B(ne), r.allowTrailingCommas && U(Ee))
|
|
4772
4770
|
break;
|
|
4773
|
-
var _ = { key:
|
|
4774
|
-
if (U(Ce) ? (_.value = Y(!0),
|
|
4771
|
+
var _ = { key: xr() }, x = !1, P;
|
|
4772
|
+
if (U(Ce) ? (_.value = Y(!0), P = _.kind = "init") : _.key.type === "Identifier" && (_.key.name === "get" || _.key.name === "set") ? (x = v = !0, P = _.kind = _.key.name, _.key = xr(), b !== Z && ee(), _.value = St(V(), !1)) : ee(), _.key.type === "Identifier" && (J || v))
|
|
4775
4773
|
for (var C = 0; C < f.properties.length; ++C) {
|
|
4776
4774
|
var M = f.properties[C];
|
|
4777
4775
|
if (M.key.name === _.key.name) {
|
|
4778
|
-
var Le =
|
|
4779
|
-
Le && !J &&
|
|
4776
|
+
var Le = P === M.kind || x && M.kind === "init" || P === "init" && (M.kind === "get" || M.kind === "set");
|
|
4777
|
+
Le && !J && P === "init" && M.kind === "init" && (Le = !1), Le && A(_.key.start, "Redefinition of property");
|
|
4780
4778
|
}
|
|
4781
4779
|
}
|
|
4782
4780
|
f.properties.push(_);
|
|
4783
4781
|
}
|
|
4784
4782
|
return w(f, "ObjectExpression");
|
|
4785
4783
|
}
|
|
4786
|
-
function
|
|
4787
|
-
return b === Xe || b ===
|
|
4784
|
+
function xr() {
|
|
4785
|
+
return b === Xe || b === ut ? Tt() : ae(!0);
|
|
4788
4786
|
}
|
|
4789
|
-
function
|
|
4787
|
+
function St(f, h) {
|
|
4790
4788
|
b === _e ? f.id = ae() : h ? ee() : f.id = null, f.params = [];
|
|
4791
|
-
var
|
|
4789
|
+
var v = !0;
|
|
4792
4790
|
for (B(Z); !U(K); )
|
|
4793
|
-
|
|
4791
|
+
v ? v = !1 : B(ne), f.params.push(ae());
|
|
4794
4792
|
var _ = ce, x = j;
|
|
4795
|
-
if (ce = !0, j = [], f.body = De(!0), ce = _, j = x, J || f.body.body.length &&
|
|
4796
|
-
for (var
|
|
4797
|
-
var C =
|
|
4798
|
-
if ((
|
|
4799
|
-
for (var M = 0; M <
|
|
4793
|
+
if (ce = !0, j = [], f.body = De(!0), ce = _, j = x, J || f.body.body.length && gt(f.body.body[0]))
|
|
4794
|
+
for (var P = f.id ? -1 : 0; P < f.params.length; ++P) {
|
|
4795
|
+
var C = P < 0 ? f.id : f.params[P];
|
|
4796
|
+
if ((_r(C.name) || ze(C.name)) && A(C.start, "Defining '" + C.name + "' in strict mode"), P >= 0)
|
|
4797
|
+
for (var M = 0; M < P; ++M)
|
|
4800
4798
|
C.name === f.params[M].name && A(C.start, "Argument name clash in strict mode");
|
|
4801
4799
|
}
|
|
4802
4800
|
return w(f, h ? "FunctionDeclaration" : "FunctionExpression");
|
|
4803
4801
|
}
|
|
4804
|
-
function
|
|
4802
|
+
function Pt(f, h, v) {
|
|
4805
4803
|
for (var _ = [], x = !0; !U(f); ) {
|
|
4806
4804
|
if (x)
|
|
4807
4805
|
x = !1;
|
|
4808
4806
|
else if (B(ne), h && r.allowTrailingCommas && U(f))
|
|
4809
4807
|
break;
|
|
4810
|
-
_.push(
|
|
4808
|
+
_.push(v && b === ne ? null : Y(!0));
|
|
4811
4809
|
}
|
|
4812
4810
|
return _;
|
|
4813
4811
|
}
|
|
4814
4812
|
function ae(f) {
|
|
4815
4813
|
var h = V();
|
|
4816
|
-
return f && r.forbidReserved === "everywhere" && (f = !1), b === _e ? (!f && (r.forbidReserved &&
|
|
4814
|
+
return f && r.forbidReserved === "everywhere" && (f = !1), b === _e ? (!f && (r.forbidReserved && ti(S) || J && _r(S)) && t.slice(p, d).indexOf("\\") === -1 && A(p, "The keyword '" + S + "' is reserved"), h.name = S) : f && b.keyword ? h.name = b.keyword : ee(), I = !1, k(), w(h, "Identifier");
|
|
4817
4815
|
}
|
|
4818
4816
|
});
|
|
4819
4817
|
}
|
|
@@ -4825,16 +4823,16 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4825
4823
|
\*********************/
|
|
4826
4824
|
/***/
|
|
4827
4825
|
(m) => {
|
|
4828
|
-
m.exports =
|
|
4826
|
+
m.exports = Vs;
|
|
4829
4827
|
}
|
|
4830
4828
|
)
|
|
4831
4829
|
/******/
|
|
4832
|
-
},
|
|
4830
|
+
}, y = {};
|
|
4833
4831
|
function g(m) {
|
|
4834
|
-
var N =
|
|
4832
|
+
var N = y[m];
|
|
4835
4833
|
if (N !== void 0)
|
|
4836
4834
|
return N.exports;
|
|
4837
|
-
var
|
|
4835
|
+
var T = y[m] = {
|
|
4838
4836
|
/******/
|
|
4839
4837
|
// no module.id needed
|
|
4840
4838
|
/******/
|
|
@@ -4843,22 +4841,22 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4843
4841
|
exports: {}
|
|
4844
4842
|
/******/
|
|
4845
4843
|
};
|
|
4846
|
-
return
|
|
4844
|
+
return l[m].call(T.exports, T, T.exports, g), T.exports;
|
|
4847
4845
|
}
|
|
4848
4846
|
g.d = (m, N) => {
|
|
4849
|
-
for (var
|
|
4850
|
-
g.o(N,
|
|
4847
|
+
for (var T in N)
|
|
4848
|
+
g.o(N, T) && !g.o(m, T) && Object.defineProperty(m, T, { enumerable: !0, get: N[T] });
|
|
4851
4849
|
}, g.o = (m, N) => Object.prototype.hasOwnProperty.call(m, N), g.r = (m) => {
|
|
4852
4850
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
|
|
4853
4851
|
};
|
|
4854
|
-
var
|
|
4852
|
+
var R = {};
|
|
4855
4853
|
return (() => {
|
|
4856
4854
|
/*!*******************************!*\
|
|
4857
4855
|
!*** ./src/js-interpreter.js ***!
|
|
4858
4856
|
\*******************************/
|
|
4859
|
-
g.r(
|
|
4857
|
+
g.r(R), g.d(R, {
|
|
4860
4858
|
/* harmony export */
|
|
4861
|
-
default: () =>
|
|
4859
|
+
default: () => T
|
|
4862
4860
|
/* harmony export */
|
|
4863
4861
|
});
|
|
4864
4862
|
const m = g(
|
|
@@ -4869,47 +4867,47 @@ const Gs = {}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4869
4867
|
const { Interpreter: N } = g(
|
|
4870
4868
|
/*! ../original-repo/interpreter */
|
|
4871
4869
|
"./original-repo/interpreter.js"
|
|
4872
|
-
),
|
|
4873
|
-
})(),
|
|
4870
|
+
), T = N;
|
|
4871
|
+
})(), R = R.default, R;
|
|
4874
4872
|
})()
|
|
4875
4873
|
));
|
|
4876
|
-
})(
|
|
4877
|
-
var
|
|
4878
|
-
const
|
|
4879
|
-
function
|
|
4880
|
-
function
|
|
4881
|
-
const
|
|
4882
|
-
console.log(
|
|
4874
|
+
})(Gn);
|
|
4875
|
+
var Ys = Gn.exports;
|
|
4876
|
+
const Xs = /* @__PURE__ */ js(Ys);
|
|
4877
|
+
function Ws(n, s) {
|
|
4878
|
+
function l(N) {
|
|
4879
|
+
const T = n.pseudoToNative(N);
|
|
4880
|
+
console.log(T);
|
|
4883
4881
|
}
|
|
4884
|
-
function
|
|
4885
|
-
const
|
|
4882
|
+
function y(N) {
|
|
4883
|
+
const T = n.pseudoToNative(N);
|
|
4886
4884
|
let r = "";
|
|
4887
|
-
typeof
|
|
4885
|
+
typeof T == "object" ? r = JSON.stringify(T) : r = String(T), sn.emit("consoleAppend", r);
|
|
4888
4886
|
}
|
|
4889
|
-
function g(N,
|
|
4890
|
-
const r = n.pseudoToNative(N), t = n.pseudoToNative(
|
|
4891
|
-
r === "info" ?
|
|
4887
|
+
function g(N, T) {
|
|
4888
|
+
const r = n.pseudoToNative(N), t = n.pseudoToNative(T);
|
|
4889
|
+
r === "info" ? Di(t) : r === "success" ? Fi(t) : r === "warning" ? Li(t) : r === "error" && Mi(t);
|
|
4892
4890
|
}
|
|
4893
|
-
function
|
|
4894
|
-
const r = n.pseudoToNative(N), t = n.pseudoToNative(
|
|
4891
|
+
function R(N, T) {
|
|
4892
|
+
const r = n.pseudoToNative(N), t = n.pseudoToNative(T);
|
|
4895
4893
|
setTimeout(() => {
|
|
4896
4894
|
n.appendCode(`__timeoutCallbackV1__(${r})`), n.run();
|
|
4897
4895
|
}, t);
|
|
4898
4896
|
}
|
|
4899
|
-
function m(N,
|
|
4897
|
+
function m(N, T) {
|
|
4900
4898
|
const r = n.pseudoToNative(N);
|
|
4901
4899
|
setTimeout(() => {
|
|
4902
|
-
|
|
4900
|
+
T(), n.run();
|
|
4903
4901
|
}, r);
|
|
4904
4902
|
}
|
|
4905
4903
|
n.setProperty(
|
|
4906
4904
|
s,
|
|
4907
4905
|
"__consoleLogV1__",
|
|
4908
|
-
n.createNativeFunction(
|
|
4906
|
+
n.createNativeFunction(l)
|
|
4909
4907
|
), n.setProperty(
|
|
4910
4908
|
s,
|
|
4911
4909
|
"__debugTraceV1__",
|
|
4912
|
-
n.createNativeFunction(
|
|
4910
|
+
n.createNativeFunction(y)
|
|
4913
4911
|
), n.setProperty(
|
|
4914
4912
|
s,
|
|
4915
4913
|
"__messageV1__",
|
|
@@ -4917,83 +4915,83 @@ function Js(n, s) {
|
|
|
4917
4915
|
), n.setProperty(
|
|
4918
4916
|
s,
|
|
4919
4917
|
"__timeoutV1__",
|
|
4920
|
-
n.createNativeFunction(
|
|
4918
|
+
n.createNativeFunction(R)
|
|
4921
4919
|
), n.setProperty(
|
|
4922
4920
|
s,
|
|
4923
4921
|
"__delayV1__",
|
|
4924
4922
|
n.createAsyncFunction(m)
|
|
4925
4923
|
);
|
|
4926
4924
|
}
|
|
4927
|
-
class
|
|
4925
|
+
class Js {
|
|
4928
4926
|
constructor(s) {
|
|
4929
|
-
|
|
4930
|
-
|
|
4927
|
+
xt(this, "context");
|
|
4928
|
+
xt(this, "nodes");
|
|
4931
4929
|
this.context = s, this.nodes = {};
|
|
4932
|
-
const
|
|
4933
|
-
function
|
|
4934
|
-
var
|
|
4935
|
-
|
|
4930
|
+
const l = this;
|
|
4931
|
+
function y(g) {
|
|
4932
|
+
var R;
|
|
4933
|
+
l.nodes[g.basic.id] = g, (R = g.children) == null || R.forEach((m) => y(m));
|
|
4936
4934
|
}
|
|
4937
|
-
this.context.data.view.nodes.forEach((g) =>
|
|
4935
|
+
this.context.data.view.nodes.forEach((g) => y(g));
|
|
4938
4936
|
}
|
|
4939
4937
|
getNode(s) {
|
|
4940
4938
|
return this.nodes[s];
|
|
4941
4939
|
}
|
|
4942
|
-
addNode(s,
|
|
4940
|
+
addNode(s, l, y) {
|
|
4943
4941
|
let g;
|
|
4944
4942
|
if (s) {
|
|
4945
4943
|
const m = this.getNode(s);
|
|
4946
4944
|
if (!m)
|
|
4947
4945
|
return console.error(
|
|
4948
|
-
`NodeMgr/addNode parent not found, parent=${s} ref=${
|
|
4946
|
+
`NodeMgr/addNode parent not found, parent=${s} ref=${l} keyOrRefid=${y}`
|
|
4949
4947
|
), "";
|
|
4950
4948
|
if (!m.children)
|
|
4951
4949
|
return console.error(
|
|
4952
|
-
`NodeMgr/addNode parent no children, parent=${s} ref=${
|
|
4950
|
+
`NodeMgr/addNode parent no children, parent=${s} ref=${l} keyOrRefid=${y}`
|
|
4953
4951
|
), "";
|
|
4954
4952
|
g = m.children;
|
|
4955
4953
|
} else
|
|
4956
4954
|
g = this.context.data.view.nodes;
|
|
4957
4955
|
if (!g)
|
|
4958
4956
|
return "";
|
|
4959
|
-
const
|
|
4957
|
+
const R = Os(
|
|
4960
4958
|
this.context.type,
|
|
4961
4959
|
this.context.data.type,
|
|
4962
4960
|
this.context.data.version,
|
|
4963
|
-
|
|
4964
|
-
|
|
4961
|
+
l,
|
|
4962
|
+
y
|
|
4965
4963
|
);
|
|
4966
|
-
return
|
|
4967
|
-
`NodeMgr/addNode spawn node failed, parent=${s} ref=${
|
|
4964
|
+
return R ? (g.push(R), this.nodes[R.basic.id] = R, R.basic.id) : (console.error(
|
|
4965
|
+
`NodeMgr/addNode spawn node failed, parent=${s} ref=${l} key=${y}`
|
|
4968
4966
|
), "");
|
|
4969
4967
|
}
|
|
4970
4968
|
deleteNode(s) {
|
|
4971
4969
|
this.getNode(s);
|
|
4972
4970
|
}
|
|
4973
4971
|
}
|
|
4974
|
-
function
|
|
4975
|
-
const
|
|
4972
|
+
function zs(n, s, l) {
|
|
4973
|
+
const y = new Js(n);
|
|
4976
4974
|
function g(t, e, i) {
|
|
4977
|
-
const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i), a =
|
|
4975
|
+
const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i), a = y.addNode(o, u, c);
|
|
4978
4976
|
return s.nativeToPseudo(a);
|
|
4979
4977
|
}
|
|
4980
|
-
function
|
|
4978
|
+
function R(t) {
|
|
4981
4979
|
const e = s.pseudoToNative(t);
|
|
4982
|
-
|
|
4980
|
+
y.deleteNode(e);
|
|
4983
4981
|
}
|
|
4984
4982
|
function m(t, e) {
|
|
4985
4983
|
const i = s.pseudoToNative(t), o = s.pseudoToNative(e);
|
|
4986
4984
|
let u;
|
|
4987
|
-
if (i === "globality" ? u = n.data.view : u =
|
|
4985
|
+
if (i === "globality" ? u = n.data.view : u = y.getNode(i), !u) {
|
|
4988
4986
|
console.error(`getNodePropV1 node not found, id=${i} keys=${o}`);
|
|
4989
4987
|
return;
|
|
4990
4988
|
}
|
|
4991
4989
|
const c = o.split("."), a = c.length;
|
|
4992
|
-
for (let
|
|
4993
|
-
const
|
|
4994
|
-
if (
|
|
4995
|
-
return s.nativeToPseudo(u[
|
|
4996
|
-
if (u = u[
|
|
4990
|
+
for (let p = 0; p < a; p++) {
|
|
4991
|
+
const d = c[p];
|
|
4992
|
+
if (p === a - 1)
|
|
4993
|
+
return s.nativeToPseudo(u[d]);
|
|
4994
|
+
if (u = u[d], !u) {
|
|
4997
4995
|
console.error(`getNodePropV1 unpkg failed, id=${i} keys=${o}`);
|
|
4998
4996
|
return;
|
|
4999
4997
|
}
|
|
@@ -5002,18 +5000,18 @@ function Hs(n, s, p) {
|
|
|
5002
5000
|
function N(t, e, i) {
|
|
5003
5001
|
const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i);
|
|
5004
5002
|
let a;
|
|
5005
|
-
if (o === "globality" ? a = n.data.view : a =
|
|
5003
|
+
if (o === "globality" ? a = n.data.view : a = y.getNode(o), !a) {
|
|
5006
5004
|
console.error(
|
|
5007
5005
|
`setNodePropV1 node not found, id=${o} keys=${u} value=${c}`
|
|
5008
5006
|
);
|
|
5009
5007
|
return;
|
|
5010
5008
|
}
|
|
5011
|
-
const
|
|
5012
|
-
for (let E = 0; E <
|
|
5013
|
-
const
|
|
5014
|
-
if (E ===
|
|
5015
|
-
a[
|
|
5016
|
-
else if (a = a[
|
|
5009
|
+
const p = u.split("."), d = p.length;
|
|
5010
|
+
for (let E = 0; E < d; E++) {
|
|
5011
|
+
const O = p[E];
|
|
5012
|
+
if (E === d - 1)
|
|
5013
|
+
a[O] = c;
|
|
5014
|
+
else if (a = a[O], !a) {
|
|
5017
5015
|
console.error(
|
|
5018
5016
|
`setNodePropV1 unpkg failed, id=${o} keys=${u} value=${c}`
|
|
5019
5017
|
);
|
|
@@ -5021,54 +5019,54 @@ function Hs(n, s, p) {
|
|
|
5021
5019
|
}
|
|
5022
5020
|
}
|
|
5023
5021
|
}
|
|
5024
|
-
function
|
|
5022
|
+
function T(t, e, i) {
|
|
5025
5023
|
const o = s.pseudoToNative(t), u = s.pseudoToNative(e);
|
|
5026
|
-
|
|
5024
|
+
Ui({ title: o, text: u }).then((c) => {
|
|
5027
5025
|
i(s.nativeToPseudo(c)), s.run();
|
|
5028
5026
|
});
|
|
5029
5027
|
}
|
|
5030
5028
|
function r(t, e, i, o) {
|
|
5031
5029
|
const u = s.pseudoToNative(t), c = s.pseudoToNative(e), a = s.pseudoToNative(i);
|
|
5032
|
-
|
|
5033
|
-
o(s.nativeToPseudo(
|
|
5030
|
+
ji({ title: u, label: c, value: a }).then((p) => {
|
|
5031
|
+
o(s.nativeToPseudo(p)), s.run();
|
|
5034
5032
|
});
|
|
5035
5033
|
}
|
|
5036
5034
|
s.setProperty(
|
|
5037
|
-
|
|
5035
|
+
l,
|
|
5038
5036
|
"__addNodeV1__",
|
|
5039
5037
|
s.createNativeFunction(g)
|
|
5040
5038
|
), s.setProperty(
|
|
5041
|
-
|
|
5039
|
+
l,
|
|
5042
5040
|
"__deleteNodeV1__",
|
|
5043
|
-
s.createNativeFunction(
|
|
5041
|
+
s.createNativeFunction(R)
|
|
5044
5042
|
), s.setProperty(
|
|
5045
|
-
|
|
5043
|
+
l,
|
|
5046
5044
|
"__getNodePropV1__",
|
|
5047
5045
|
s.createNativeFunction(m)
|
|
5048
5046
|
), s.setProperty(
|
|
5049
|
-
|
|
5047
|
+
l,
|
|
5050
5048
|
"__setNodePropV1__",
|
|
5051
5049
|
s.createNativeFunction(N)
|
|
5052
5050
|
), s.setProperty(
|
|
5053
|
-
|
|
5051
|
+
l,
|
|
5054
5052
|
"__openConfirmDlgV1__",
|
|
5055
|
-
s.createAsyncFunction(
|
|
5053
|
+
s.createAsyncFunction(T)
|
|
5056
5054
|
), s.setProperty(
|
|
5057
|
-
|
|
5055
|
+
l,
|
|
5058
5056
|
"__openPromptDlgV1__",
|
|
5059
5057
|
s.createAsyncFunction(r)
|
|
5060
5058
|
);
|
|
5061
5059
|
}
|
|
5062
|
-
function
|
|
5063
|
-
|
|
5060
|
+
function Hs(n, s, l) {
|
|
5061
|
+
Ws(s, l), zs(n, s, l);
|
|
5064
5062
|
}
|
|
5065
|
-
const
|
|
5063
|
+
const Ks = `
|
|
5066
5064
|
var __env__ = 'dev'
|
|
5067
5065
|
|
|
5068
5066
|
function __getEnvV1__() {
|
|
5069
5067
|
return __env__
|
|
5070
5068
|
}
|
|
5071
|
-
`,
|
|
5069
|
+
`, qs = `
|
|
5072
5070
|
var __events__ = {}
|
|
5073
5071
|
|
|
5074
5072
|
function __addEventListenerV1__(id, event, callback) {
|
|
@@ -5139,7 +5137,7 @@ function __triggerEvent__(id, event, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p1
|
|
|
5139
5137
|
callbacks[i](p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16)
|
|
5140
5138
|
}
|
|
5141
5139
|
}
|
|
5142
|
-
`,
|
|
5140
|
+
`, Zs = `
|
|
5143
5141
|
var __timers__ = {}
|
|
5144
5142
|
var __currTimerId__ = 0
|
|
5145
5143
|
|
|
@@ -5181,23 +5179,23 @@ function __timeoutCallbackV1__(timerId) {
|
|
|
5181
5179
|
}
|
|
5182
5180
|
}
|
|
5183
5181
|
}
|
|
5184
|
-
`,
|
|
5185
|
-
function
|
|
5186
|
-
const
|
|
5187
|
-
|
|
5188
|
-
(
|
|
5189
|
-
|
|
5182
|
+
`, Qs = Ks + qs + Zs;
|
|
5183
|
+
function ec(n, s) {
|
|
5184
|
+
const l = new Xs(
|
|
5185
|
+
Qs,
|
|
5186
|
+
(y, g) => {
|
|
5187
|
+
Hs(n, y, g);
|
|
5190
5188
|
}
|
|
5191
5189
|
);
|
|
5192
|
-
return
|
|
5190
|
+
return l.appendCode(s), l.appendCode(`
|
|
5193
5191
|
__env__ = '${n.env}';
|
|
5194
5192
|
__triggerEvent__('globality', 'startup');
|
|
5195
|
-
`),
|
|
5193
|
+
`), l.run(), l;
|
|
5196
5194
|
}
|
|
5197
|
-
function
|
|
5195
|
+
function nn(n) {
|
|
5198
5196
|
n.appendCode("__destrory__();"), n.run();
|
|
5199
5197
|
}
|
|
5200
|
-
const
|
|
5198
|
+
const tc = /* @__PURE__ */ an({
|
|
5201
5199
|
__name: "index",
|
|
5202
5200
|
props: {
|
|
5203
5201
|
id: {},
|
|
@@ -5206,89 +5204,89 @@ const rc = /* @__PURE__ */ on({
|
|
|
5206
5204
|
outer: { type: Boolean }
|
|
5207
5205
|
},
|
|
5208
5206
|
setup(n) {
|
|
5209
|
-
const { t: s } =
|
|
5210
|
-
|
|
5211
|
-
|
|
5207
|
+
const { t: s } = ki(), l = n, y = Ns(), g = Ts(), R = Ss(), m = ws(), N = xs(), T = Cs(), r = W(() => T.value[l.refContext.refid]), t = Ci();
|
|
5208
|
+
As(t), Ai(r, (d) => {
|
|
5209
|
+
d || sn.emit("compNotAvail", l.refContext.refid), t.value && (nn(t.value), t.value = void 0), d && (t.value = ec(
|
|
5212
5210
|
{
|
|
5213
|
-
env:
|
|
5214
|
-
type:
|
|
5215
|
-
data:
|
|
5211
|
+
env: y.value,
|
|
5212
|
+
type: m.value,
|
|
5213
|
+
data: d.data
|
|
5216
5214
|
},
|
|
5217
|
-
|
|
5215
|
+
d.data.code.script
|
|
5218
5216
|
));
|
|
5219
|
-
}),
|
|
5220
|
-
|
|
5217
|
+
}), Ii(() => {
|
|
5218
|
+
t.value && (nn(t.value), t.value = void 0);
|
|
5221
5219
|
});
|
|
5222
|
-
const { applySize:
|
|
5223
|
-
const
|
|
5224
|
-
switch (
|
|
5220
|
+
const { applySize: e } = Ms(g, R, l), i = W(() => {
|
|
5221
|
+
const d = {}, E = N.value.type;
|
|
5222
|
+
switch (E) {
|
|
5225
5223
|
case "common":
|
|
5226
|
-
|
|
5224
|
+
e(d);
|
|
5227
5225
|
break;
|
|
5228
5226
|
default:
|
|
5229
|
-
console.assert(!1, `invalid subtype=${
|
|
5227
|
+
console.assert(!1, `invalid subtype=${E}`);
|
|
5230
5228
|
}
|
|
5231
|
-
return
|
|
5229
|
+
return d;
|
|
5232
5230
|
});
|
|
5233
|
-
function
|
|
5234
|
-
let
|
|
5235
|
-
for (;
|
|
5236
|
-
if (
|
|
5231
|
+
function o() {
|
|
5232
|
+
let d = l.refContext.parent;
|
|
5233
|
+
for (; d; ) {
|
|
5234
|
+
if (d.refid === l.refContext.refid)
|
|
5237
5235
|
return !0;
|
|
5238
|
-
|
|
5236
|
+
d = d.parent;
|
|
5239
5237
|
}
|
|
5240
5238
|
return !1;
|
|
5241
5239
|
}
|
|
5242
|
-
function
|
|
5243
|
-
let l;
|
|
5244
|
-
return a.ref ? l = o(a) : l = u(a), l;
|
|
5245
|
-
}
|
|
5246
|
-
function o(a) {
|
|
5247
|
-
const l = fn[O.version].refKey, y = Te[l];
|
|
5240
|
+
function u(d) {
|
|
5248
5241
|
let E;
|
|
5249
|
-
return
|
|
5242
|
+
return d.ref ? E = c(d) : E = a(d), E;
|
|
5243
|
+
}
|
|
5244
|
+
function c(d) {
|
|
5245
|
+
const E = cn[N.value.version].refKey, O = Te[E];
|
|
5246
|
+
let b;
|
|
5247
|
+
return O ? b = Me(O.comp, {
|
|
5250
5248
|
refContext: {
|
|
5251
|
-
parent:
|
|
5252
|
-
refid:
|
|
5249
|
+
parent: l.refContext,
|
|
5250
|
+
refid: d.ref.id
|
|
5253
5251
|
},
|
|
5254
|
-
node:
|
|
5255
|
-
}) : console.assert(!1),
|
|
5252
|
+
node: d
|
|
5253
|
+
}) : console.assert(!1), b;
|
|
5256
5254
|
}
|
|
5257
|
-
function
|
|
5258
|
-
var
|
|
5259
|
-
let
|
|
5260
|
-
const
|
|
5261
|
-
return
|
|
5262
|
-
|
|
5263
|
-
}),
|
|
5255
|
+
function a(d) {
|
|
5256
|
+
var b;
|
|
5257
|
+
let E;
|
|
5258
|
+
const O = Te[d.basic.key];
|
|
5259
|
+
return O ? ((b = d.children) == null || b.forEach((S) => {
|
|
5260
|
+
u(S);
|
|
5261
|
+
}), E = Me(O.comp, { node: d })) : console.assert(!1, `invalid element key=${d.basic.key}`), E;
|
|
5264
5262
|
}
|
|
5265
|
-
const
|
|
5266
|
-
const
|
|
5267
|
-
if (
|
|
5268
|
-
|
|
5269
|
-
else if (
|
|
5270
|
-
const
|
|
5271
|
-
|
|
5272
|
-
const
|
|
5273
|
-
|
|
5274
|
-
}) : console.assert(!1, `invalid subtype=${
|
|
5263
|
+
const p = () => {
|
|
5264
|
+
const d = [];
|
|
5265
|
+
if (o())
|
|
5266
|
+
d.push(Me("div", s("x-runtime-lib.circularRef")));
|
|
5267
|
+
else if (r.value) {
|
|
5268
|
+
const E = r.value.data.type;
|
|
5269
|
+
E === "common" ? r.value.data.view.nodes.forEach((O) => {
|
|
5270
|
+
const b = u(O);
|
|
5271
|
+
d.push(b);
|
|
5272
|
+
}) : console.assert(!1, `invalid subtype=${E}`);
|
|
5275
5273
|
} else
|
|
5276
|
-
|
|
5277
|
-
return Me("div", { id:
|
|
5274
|
+
d.push(Me("div", s("x-runtime-lib.compNotAvail")));
|
|
5275
|
+
return Me("div", { id: l.id, style: i.value }, d);
|
|
5278
5276
|
};
|
|
5279
|
-
return (
|
|
5277
|
+
return (d, E) => (on(), un(p));
|
|
5280
5278
|
}
|
|
5281
5279
|
}), Re = [
|
|
5282
5280
|
{
|
|
5283
5281
|
name: "x-runtime-lib.unset",
|
|
5284
5282
|
ui: "word",
|
|
5285
|
-
validator:
|
|
5283
|
+
validator: Vi,
|
|
5286
5284
|
default: ""
|
|
5287
5285
|
},
|
|
5288
5286
|
{
|
|
5289
5287
|
name: "x-runtime-lib.pixel",
|
|
5290
5288
|
ui: "pixelInput",
|
|
5291
|
-
validator:
|
|
5289
|
+
validator: Yi,
|
|
5292
5290
|
default: "0px",
|
|
5293
5291
|
precision: 0,
|
|
5294
5292
|
min: 0,
|
|
@@ -5298,14 +5296,14 @@ const rc = /* @__PURE__ */ on({
|
|
|
5298
5296
|
{
|
|
5299
5297
|
name: "x-runtime-lib.percent",
|
|
5300
5298
|
ui: "percentInput",
|
|
5301
|
-
validator:
|
|
5299
|
+
validator: Xi,
|
|
5302
5300
|
default: "0%",
|
|
5303
5301
|
precision: 4,
|
|
5304
5302
|
min: 0,
|
|
5305
5303
|
max: 1 / 0,
|
|
5306
5304
|
step: 1
|
|
5307
5305
|
}
|
|
5308
|
-
],
|
|
5306
|
+
], Vn = {
|
|
5309
5307
|
key: "ref",
|
|
5310
5308
|
name: "x-runtime-lib.ref",
|
|
5311
5309
|
children: [
|
|
@@ -5363,23 +5361,23 @@ const rc = /* @__PURE__ */ on({
|
|
|
5363
5361
|
default: ""
|
|
5364
5362
|
}
|
|
5365
5363
|
]
|
|
5366
|
-
},
|
|
5364
|
+
}, rc = [nt, Vn], nc = [nt, Vn], ic = {
|
|
5367
5365
|
key: "ref_v1",
|
|
5368
5366
|
name: "x-runtime-lib.ref",
|
|
5369
|
-
comp:
|
|
5367
|
+
comp: tc,
|
|
5370
5368
|
leaf: !0,
|
|
5371
5369
|
events: [],
|
|
5372
5370
|
methods: [],
|
|
5373
5371
|
props: {
|
|
5374
|
-
pageCommon:
|
|
5375
|
-
compCommon:
|
|
5372
|
+
pageCommon: rc,
|
|
5373
|
+
compCommon: nc
|
|
5376
5374
|
}
|
|
5377
5375
|
}, Te = {
|
|
5378
5376
|
// basic
|
|
5379
|
-
btn_v1:
|
|
5380
|
-
globality_v1:
|
|
5381
|
-
ref_v1:
|
|
5382
|
-
},
|
|
5377
|
+
btn_v1: Fs,
|
|
5378
|
+
globality_v1: Ls,
|
|
5379
|
+
ref_v1: ic
|
|
5380
|
+
}, ac = {
|
|
5383
5381
|
key: "add",
|
|
5384
5382
|
name: "METHOD_ADD",
|
|
5385
5383
|
inputs: [],
|
|
@@ -5392,56 +5390,56 @@ const rc = /* @__PURE__ */ on({
|
|
|
5392
5390
|
};
|
|
5393
5391
|
for (const n in Te) {
|
|
5394
5392
|
const s = Te[n];
|
|
5395
|
-
s.leaf || s.methods.unshift(
|
|
5393
|
+
s.leaf || s.methods.unshift(ac);
|
|
5396
5394
|
}
|
|
5397
|
-
const
|
|
5398
|
-
const
|
|
5399
|
-
return
|
|
5395
|
+
const oc = (n, s, l) => {
|
|
5396
|
+
const y = n[s];
|
|
5397
|
+
return y ? typeof y == "function" ? y() : Promise.resolve(y) : new Promise((g, R) => {
|
|
5400
5398
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5401
|
-
|
|
5399
|
+
R.bind(
|
|
5402
5400
|
null,
|
|
5403
5401
|
new Error(
|
|
5404
|
-
"Unknown variable dynamic import: " + s + (s.split("/").length !==
|
|
5402
|
+
"Unknown variable dynamic import: " + s + (s.split("/").length !== l ? ". Note that variables only represent file names one level deep." : "")
|
|
5405
5403
|
)
|
|
5406
5404
|
)
|
|
5407
5405
|
);
|
|
5408
5406
|
});
|
|
5409
5407
|
};
|
|
5410
|
-
async function
|
|
5411
|
-
return (await
|
|
5408
|
+
async function Rc(n) {
|
|
5409
|
+
return (await oc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-j2twg2xy.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-hdbgtmk2.js") }), `./locales/${n}/index.ts`, 4)).default;
|
|
5412
5410
|
}
|
|
5413
5411
|
export {
|
|
5414
|
-
|
|
5412
|
+
hc as duplicateNode,
|
|
5415
5413
|
Te as elements,
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5414
|
+
fn as genId,
|
|
5415
|
+
pc as getNode,
|
|
5416
|
+
Qr as getPropDefault,
|
|
5417
|
+
Rs as getPropTag,
|
|
5418
|
+
en as initProps,
|
|
5419
|
+
Ps as injectDark,
|
|
5420
|
+
xs as injectData,
|
|
5421
|
+
Cs as injectDepends,
|
|
5422
|
+
Ss as injectDevice,
|
|
5423
|
+
Ns as injectEnv,
|
|
5424
|
+
mc as injectInterpreter,
|
|
5425
|
+
Ts as injectMode,
|
|
5426
|
+
ws as injectType,
|
|
5427
|
+
Vi as isEmptyStr,
|
|
5428
|
+
Xi as isPercentStr,
|
|
5429
|
+
Yi as isPixelStr,
|
|
5430
|
+
Rc as loadLocaleMessageRuntime,
|
|
5431
|
+
Ct as parsePercentStr,
|
|
5432
|
+
lc as parsePixelStr,
|
|
5433
|
+
cn as pkgs,
|
|
5434
|
+
_c as provideDark,
|
|
5435
|
+
gc as provideData,
|
|
5436
|
+
bc as provideDepends,
|
|
5437
|
+
yc as provideDevice,
|
|
5438
|
+
dc as provideEnv,
|
|
5439
|
+
As as provideInterpreter,
|
|
5440
|
+
vc as provideMode,
|
|
5441
|
+
Ec as provideType,
|
|
5442
|
+
Os as spawnNode,
|
|
5443
|
+
ec as startInterpreter,
|
|
5444
|
+
nn as stopInterpreter
|
|
5447
5445
|
};
|