x-runtime-lib 0.5.4 → 0.5.5
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/index.js
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { provide as oe, inject as ue, readonly as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { eventBus as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
1
|
+
var Ki = Object.defineProperty;
|
|
2
|
+
var qi = (n, u, f) => u in n ? Ki(n, u, { enumerable: !0, configurable: !0, writable: !0, value: f }) : n[u] = f;
|
|
3
|
+
var Mt = (n, u, f) => qi(n, typeof u != "symbol" ? u + "" : u, f);
|
|
4
|
+
import { provide as oe, inject as ue, readonly as ct, isReactive as Rn, defineComponent as Wt, computed as M, resolveComponent as Zi, openBlock as Jt, createBlock as On, createElementBlock as Qi, normalizeStyle as ea, renderSlot as ta, watchEffect as ra, onBeforeUnmount as na, h as Fe } from "vue";
|
|
5
|
+
import { useI18n as ia } from "vue-i18n";
|
|
6
|
+
import { eventBus as Nn, messageInfo as aa, messageSuccess as oa, messageWarning as ua, messageError as sa, openConfirmDlg as ca, openPromptDlg as la } from "x-essential-lib";
|
|
7
|
+
const Xr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
8
|
+
function Tn(n) {
|
|
9
9
|
let u = "";
|
|
10
|
-
for (let
|
|
11
|
-
const v = Math.floor(Math.random() *
|
|
12
|
-
u +=
|
|
10
|
+
for (let f = 0; f < n; f++) {
|
|
11
|
+
const v = Math.floor(Math.random() * Xr.length);
|
|
12
|
+
u += Xr[v];
|
|
13
13
|
}
|
|
14
14
|
return u;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Ht(n) {
|
|
17
17
|
return n === "";
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Kt(n) {
|
|
20
20
|
if (typeof n != "string" || !n.endsWith("px"))
|
|
21
21
|
return !1;
|
|
22
|
-
const u = n.substring(0, n.length - 2),
|
|
23
|
-
return !(isNaN(
|
|
22
|
+
const u = n.substring(0, n.length - 2), f = parseFloat(u);
|
|
23
|
+
return !(isNaN(f) || f % 1 !== 0);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function qt(n) {
|
|
26
26
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
27
27
|
return !1;
|
|
28
|
-
const u = n.substring(0, n.length - 1),
|
|
29
|
-
return !isNaN(
|
|
28
|
+
const u = n.substring(0, n.length - 1), f = parseFloat(u);
|
|
29
|
+
return !isNaN(f);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Cc(n) {
|
|
32
32
|
if (typeof n != "string" || !n.endsWith("px"))
|
|
33
33
|
return;
|
|
34
|
-
const u = n.substring(0, n.length - 2),
|
|
35
|
-
if (!isNaN(
|
|
36
|
-
return
|
|
34
|
+
const u = n.substring(0, n.length - 2), f = parseFloat(u);
|
|
35
|
+
if (!isNaN(f) && f % 1 === 0)
|
|
36
|
+
return f;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Ft(n) {
|
|
39
39
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
40
40
|
return;
|
|
41
|
-
const u = n.substring(0, n.length - 1),
|
|
42
|
-
if (!isNaN(
|
|
43
|
-
return
|
|
41
|
+
const u = n.substring(0, n.length - 1), f = parseFloat(u);
|
|
42
|
+
if (!isNaN(f))
|
|
43
|
+
return f;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
function
|
|
47
|
-
var u =
|
|
45
|
+
var Sn = typeof global == "object" && global && global.Object === Object && global, fa = typeof self == "object" && self && self.Object === Object && self, q = Sn || fa || Function("return this")(), Re = q.Symbol, Pn = Object.prototype, pa = Pn.hasOwnProperty, ha = Pn.toString, Ue = Re ? Re.toStringTag : void 0;
|
|
46
|
+
function da(n) {
|
|
47
|
+
var u = pa.call(n, Ue), f = n[Ue];
|
|
48
48
|
try {
|
|
49
49
|
n[Ue] = void 0;
|
|
50
50
|
var v = !0;
|
|
51
51
|
} catch {
|
|
52
52
|
}
|
|
53
|
-
var
|
|
54
|
-
return v && (u ? n[Ue] =
|
|
53
|
+
var g = ha.call(n);
|
|
54
|
+
return v && (u ? n[Ue] = f : delete n[Ue]), g;
|
|
55
55
|
}
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
return
|
|
56
|
+
var va = Object.prototype, ya = va.toString;
|
|
57
|
+
function _a(n) {
|
|
58
|
+
return ya.call(n);
|
|
59
59
|
}
|
|
60
|
-
var
|
|
60
|
+
var Ea = "[object Null]", ga = "[object Undefined]", zr = Re ? Re.toStringTag : void 0;
|
|
61
61
|
function Ve(n) {
|
|
62
|
-
return n == null ? n === void 0 ?
|
|
62
|
+
return n == null ? n === void 0 ? ga : Ea : zr && zr in Object(n) ? da(n) : _a(n);
|
|
63
63
|
}
|
|
64
64
|
function Ge(n) {
|
|
65
65
|
return n != null && typeof n == "object";
|
|
66
66
|
}
|
|
67
|
-
var
|
|
67
|
+
var Zt = Array.isArray;
|
|
68
68
|
function Ye(n) {
|
|
69
69
|
var u = typeof n;
|
|
70
70
|
return n != null && (u == "object" || u == "function");
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
function
|
|
72
|
+
var ba = "[object AsyncFunction]", ma = "[object Function]", Ra = "[object GeneratorFunction]", Oa = "[object Proxy]";
|
|
73
|
+
function wn(n) {
|
|
74
74
|
if (!Ye(n))
|
|
75
75
|
return !1;
|
|
76
76
|
var u = Ve(n);
|
|
77
|
-
return u ==
|
|
77
|
+
return u == ma || u == Ra || u == ba || u == Oa;
|
|
78
78
|
}
|
|
79
|
-
var
|
|
80
|
-
var n = /[^.]+$/.exec(
|
|
79
|
+
var Ut = q["__core-js_shared__"], Wr = function() {
|
|
80
|
+
var n = /[^.]+$/.exec(Ut && Ut.keys && Ut.keys.IE_PROTO || "");
|
|
81
81
|
return n ? "Symbol(src)_1." + n : "";
|
|
82
82
|
}();
|
|
83
|
-
function
|
|
83
|
+
function Na(n) {
|
|
84
84
|
return !!Wr && Wr in n;
|
|
85
85
|
}
|
|
86
|
-
var
|
|
87
|
-
function
|
|
86
|
+
var Ta = Function.prototype, Sa = Ta.toString;
|
|
87
|
+
function de(n) {
|
|
88
88
|
if (n != null) {
|
|
89
89
|
try {
|
|
90
|
-
return
|
|
90
|
+
return Sa.call(n);
|
|
91
91
|
} catch {
|
|
92
92
|
}
|
|
93
93
|
try {
|
|
@@ -97,442 +97,441 @@ function he(n) {
|
|
|
97
97
|
}
|
|
98
98
|
return "";
|
|
99
99
|
}
|
|
100
|
-
var
|
|
101
|
-
"^" +
|
|
100
|
+
var Pa = /[\\^$.*+?()[\]{}|]/g, wa = /^\[object .+?Constructor\]$/, xa = Function.prototype, Ca = Object.prototype, Aa = xa.toString, Ia = Ca.hasOwnProperty, ka = RegExp(
|
|
101
|
+
"^" + Aa.call(Ia).replace(Pa, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
102
102
|
);
|
|
103
|
-
function
|
|
104
|
-
if (!Ye(n) ||
|
|
103
|
+
function Da(n) {
|
|
104
|
+
if (!Ye(n) || Na(n))
|
|
105
105
|
return !1;
|
|
106
|
-
var u =
|
|
107
|
-
return u.test(
|
|
106
|
+
var u = wn(n) ? ka : wa;
|
|
107
|
+
return u.test(de(n));
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function La(n, u) {
|
|
110
110
|
return n == null ? void 0 : n[u];
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
var
|
|
114
|
-
return
|
|
112
|
+
function ve(n, u) {
|
|
113
|
+
var f = La(n, u);
|
|
114
|
+
return Da(f) ? f : void 0;
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var Bt = ve(q, "WeakMap"), Jr = Object.create, Ma = /* @__PURE__ */ function() {
|
|
117
117
|
function n() {
|
|
118
118
|
}
|
|
119
119
|
return function(u) {
|
|
120
120
|
if (!Ye(u))
|
|
121
121
|
return {};
|
|
122
|
-
if (
|
|
123
|
-
return
|
|
122
|
+
if (Jr)
|
|
123
|
+
return Jr(u);
|
|
124
124
|
n.prototype = u;
|
|
125
|
-
var
|
|
126
|
-
return n.prototype = void 0,
|
|
125
|
+
var f = new n();
|
|
126
|
+
return n.prototype = void 0, f;
|
|
127
127
|
};
|
|
128
128
|
}();
|
|
129
|
-
function
|
|
130
|
-
var
|
|
131
|
-
for (u || (u = Array(v)); ++
|
|
132
|
-
u[
|
|
129
|
+
function Fa(n, u) {
|
|
130
|
+
var f = -1, v = n.length;
|
|
131
|
+
for (u || (u = Array(v)); ++f < v; )
|
|
132
|
+
u[f] = n[f];
|
|
133
133
|
return u;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
135
|
+
var Hr = function() {
|
|
136
136
|
try {
|
|
137
|
-
var n =
|
|
137
|
+
var n = ve(Object, "defineProperty");
|
|
138
138
|
return n({}, "", {}), n;
|
|
139
139
|
} catch {
|
|
140
140
|
}
|
|
141
141
|
}();
|
|
142
|
-
function
|
|
143
|
-
for (var
|
|
142
|
+
function Ua(n, u) {
|
|
143
|
+
for (var f = -1, v = n == null ? 0 : n.length; ++f < v && u(n[f], f, n) !== !1; )
|
|
144
144
|
;
|
|
145
145
|
return n;
|
|
146
146
|
}
|
|
147
|
-
var
|
|
148
|
-
function
|
|
149
|
-
var
|
|
150
|
-
return u = u ??
|
|
147
|
+
var ja = 9007199254740991, Ba = /^(?:0|[1-9]\d*)$/;
|
|
148
|
+
function $a(n, u) {
|
|
149
|
+
var f = typeof n;
|
|
150
|
+
return u = u ?? ja, !!u && (f == "number" || f != "symbol" && Ba.test(n)) && n > -1 && n % 1 == 0 && n < u;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
u == "__proto__" &&
|
|
152
|
+
function xn(n, u, f) {
|
|
153
|
+
u == "__proto__" && Hr ? Hr(n, u, {
|
|
154
154
|
configurable: !0,
|
|
155
155
|
enumerable: !0,
|
|
156
|
-
value:
|
|
156
|
+
value: f,
|
|
157
157
|
writable: !0
|
|
158
|
-
}) : n[u] =
|
|
158
|
+
}) : n[u] = f;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Cn(n, u) {
|
|
161
161
|
return n === u || n !== n && u !== u;
|
|
162
162
|
}
|
|
163
|
-
var
|
|
164
|
-
function
|
|
163
|
+
var Va = Object.prototype, Ga = Va.hasOwnProperty;
|
|
164
|
+
function An(n, u, f) {
|
|
165
165
|
var v = n[u];
|
|
166
|
-
(!(
|
|
166
|
+
(!(Ga.call(n, u) && Cn(v, f)) || f === void 0 && !(u in n)) && xn(n, u, f);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
var
|
|
170
|
-
|
|
171
|
-
for (var m = -1,
|
|
168
|
+
function lt(n, u, f, v) {
|
|
169
|
+
var g = !f;
|
|
170
|
+
f || (f = {});
|
|
171
|
+
for (var m = -1, _ = u.length; ++m < _; ) {
|
|
172
172
|
var T = u[m], O = void 0;
|
|
173
|
-
O === void 0 && (O = n[T]),
|
|
173
|
+
O === void 0 && (O = n[T]), g ? xn(f, T, O) : An(f, T, O);
|
|
174
174
|
}
|
|
175
|
-
return
|
|
176
|
-
}
|
|
177
|
-
var Ga = 9007199254740991;
|
|
178
|
-
function An(n) {
|
|
179
|
-
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= Ga;
|
|
175
|
+
return f;
|
|
180
176
|
}
|
|
177
|
+
var Ya = 9007199254740991;
|
|
181
178
|
function In(n) {
|
|
182
|
-
return n
|
|
179
|
+
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= Ya;
|
|
180
|
+
}
|
|
181
|
+
function kn(n) {
|
|
182
|
+
return n != null && In(n.length) && !wn(n);
|
|
183
183
|
}
|
|
184
|
-
var
|
|
185
|
-
function
|
|
186
|
-
var u = n && n.constructor,
|
|
187
|
-
return n ===
|
|
184
|
+
var Xa = Object.prototype;
|
|
185
|
+
function Qt(n) {
|
|
186
|
+
var u = n && n.constructor, f = typeof u == "function" && u.prototype || Xa;
|
|
187
|
+
return n === f;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
for (var
|
|
191
|
-
v[
|
|
189
|
+
function za(n, u) {
|
|
190
|
+
for (var f = -1, v = Array(n); ++f < n; )
|
|
191
|
+
v[f] = u(f);
|
|
192
192
|
return v;
|
|
193
193
|
}
|
|
194
194
|
var Wa = "[object Arguments]";
|
|
195
|
-
function
|
|
195
|
+
function Kr(n) {
|
|
196
196
|
return Ge(n) && Ve(n) == Wa;
|
|
197
197
|
}
|
|
198
|
-
var
|
|
198
|
+
var Dn = Object.prototype, Ja = Dn.hasOwnProperty, Ha = Dn.propertyIsEnumerable, Ka = Kr(/* @__PURE__ */ function() {
|
|
199
199
|
return arguments;
|
|
200
|
-
}()) ?
|
|
201
|
-
return Ge(n) &&
|
|
200
|
+
}()) ? Kr : function(n) {
|
|
201
|
+
return Ge(n) && Ja.call(n, "callee") && !Ha.call(n, "callee");
|
|
202
202
|
};
|
|
203
|
-
function
|
|
203
|
+
function qa() {
|
|
204
204
|
return !1;
|
|
205
205
|
}
|
|
206
|
-
var
|
|
207
|
-
F[
|
|
208
|
-
F[
|
|
209
|
-
function
|
|
210
|
-
return Ge(n) &&
|
|
206
|
+
var Ln = typeof exports == "object" && exports && !exports.nodeType && exports, qr = Ln && typeof module == "object" && module && !module.nodeType && module, Za = qr && qr.exports === Ln, Zr = Za ? q.Buffer : void 0, Qa = Zr ? Zr.isBuffer : void 0, Mn = Qa || qa, eo = "[object Arguments]", to = "[object Array]", ro = "[object Boolean]", no = "[object Date]", io = "[object Error]", ao = "[object Function]", oo = "[object Map]", uo = "[object Number]", so = "[object Object]", co = "[object RegExp]", lo = "[object Set]", fo = "[object String]", po = "[object WeakMap]", ho = "[object ArrayBuffer]", vo = "[object DataView]", yo = "[object Float32Array]", _o = "[object Float64Array]", Eo = "[object Int8Array]", go = "[object Int16Array]", bo = "[object Int32Array]", mo = "[object Uint8Array]", Ro = "[object Uint8ClampedArray]", Oo = "[object Uint16Array]", No = "[object Uint32Array]", F = {};
|
|
207
|
+
F[yo] = F[_o] = F[Eo] = F[go] = F[bo] = F[mo] = F[Ro] = F[Oo] = F[No] = !0;
|
|
208
|
+
F[eo] = F[to] = F[ho] = F[ro] = F[vo] = F[no] = F[io] = F[ao] = F[oo] = F[uo] = F[so] = F[co] = F[lo] = F[fo] = F[po] = !1;
|
|
209
|
+
function To(n) {
|
|
210
|
+
return Ge(n) && In(n.length) && !!F[Ve(n)];
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function er(n) {
|
|
213
213
|
return function(u) {
|
|
214
214
|
return n(u);
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var Fn = typeof exports == "object" && exports && !exports.nodeType && exports, je = Fn && typeof module == "object" && module && !module.nodeType && module, So = je && je.exports === Fn, jt = So && Sn.process, Oe = function() {
|
|
218
218
|
try {
|
|
219
219
|
var n = je && je.require && je.require("util").types;
|
|
220
|
-
return n ||
|
|
220
|
+
return n || jt && jt.binding && jt.binding("util");
|
|
221
221
|
} catch {
|
|
222
222
|
}
|
|
223
|
-
}(),
|
|
224
|
-
function
|
|
225
|
-
var
|
|
223
|
+
}(), Qr = Oe && Oe.isTypedArray, Po = Qr ? er(Qr) : To, wo = Object.prototype, xo = wo.hasOwnProperty;
|
|
224
|
+
function Un(n, u) {
|
|
225
|
+
var f = Zt(n), v = !f && Ka(n), g = !f && !v && Mn(n), m = !f && !v && !g && Po(n), _ = f || v || g || m, T = _ ? za(n.length, String) : [], O = T.length;
|
|
226
226
|
for (var r in n)
|
|
227
|
-
(u ||
|
|
227
|
+
(u || xo.call(n, r)) && !(_ && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
228
228
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
229
|
-
|
|
229
|
+
g && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
230
230
|
m && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
231
|
-
|
|
231
|
+
$a(r, O))) && T.push(r);
|
|
232
232
|
return T;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
return function(
|
|
236
|
-
return n(u(
|
|
234
|
+
function jn(n, u) {
|
|
235
|
+
return function(f) {
|
|
236
|
+
return n(u(f));
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
var
|
|
240
|
-
function
|
|
241
|
-
if (!
|
|
242
|
-
return
|
|
239
|
+
var Co = jn(Object.keys, Object), Ao = Object.prototype, Io = Ao.hasOwnProperty;
|
|
240
|
+
function ko(n) {
|
|
241
|
+
if (!Qt(n))
|
|
242
|
+
return Co(n);
|
|
243
243
|
var u = [];
|
|
244
|
-
for (var
|
|
245
|
-
|
|
244
|
+
for (var f in Object(n))
|
|
245
|
+
Io.call(n, f) && f != "constructor" && u.push(f);
|
|
246
246
|
return u;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
return
|
|
248
|
+
function tr(n) {
|
|
249
|
+
return kn(n) ? Un(n) : ko(n);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Do(n) {
|
|
252
252
|
var u = [];
|
|
253
253
|
if (n != null)
|
|
254
|
-
for (var
|
|
255
|
-
u.push(
|
|
254
|
+
for (var f in Object(n))
|
|
255
|
+
u.push(f);
|
|
256
256
|
return u;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
259
|
-
function
|
|
258
|
+
var Lo = Object.prototype, Mo = Lo.hasOwnProperty;
|
|
259
|
+
function Fo(n) {
|
|
260
260
|
if (!Ye(n))
|
|
261
|
-
return
|
|
262
|
-
var u =
|
|
261
|
+
return Do(n);
|
|
262
|
+
var u = Qt(n), f = [];
|
|
263
263
|
for (var v in n)
|
|
264
|
-
v == "constructor" && (u || !
|
|
265
|
-
return
|
|
264
|
+
v == "constructor" && (u || !Mo.call(n, v)) || f.push(v);
|
|
265
|
+
return f;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
return
|
|
267
|
+
function rr(n) {
|
|
268
|
+
return kn(n) ? Un(n, !0) : Fo(n);
|
|
269
269
|
}
|
|
270
|
-
var Be =
|
|
271
|
-
function
|
|
270
|
+
var Be = ve(Object, "create");
|
|
271
|
+
function Uo() {
|
|
272
272
|
this.__data__ = Be ? Be(null) : {}, this.size = 0;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function jo(n) {
|
|
275
275
|
var u = this.has(n) && delete this.__data__[n];
|
|
276
276
|
return this.size -= u ? 1 : 0, u;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
278
|
+
var Bo = "__lodash_hash_undefined__", $o = Object.prototype, Vo = $o.hasOwnProperty;
|
|
279
|
+
function Go(n) {
|
|
280
280
|
var u = this.__data__;
|
|
281
281
|
if (Be) {
|
|
282
|
-
var
|
|
283
|
-
return
|
|
282
|
+
var f = u[n];
|
|
283
|
+
return f === Bo ? void 0 : f;
|
|
284
284
|
}
|
|
285
|
-
return
|
|
285
|
+
return Vo.call(u, n) ? u[n] : void 0;
|
|
286
286
|
}
|
|
287
|
-
var
|
|
288
|
-
function
|
|
287
|
+
var Yo = Object.prototype, Xo = Yo.hasOwnProperty;
|
|
288
|
+
function zo(n) {
|
|
289
289
|
var u = this.__data__;
|
|
290
|
-
return Be ? u[n] !== void 0 :
|
|
290
|
+
return Be ? u[n] !== void 0 : Xo.call(u, n);
|
|
291
291
|
}
|
|
292
292
|
var Wo = "__lodash_hash_undefined__";
|
|
293
|
-
function
|
|
294
|
-
var
|
|
295
|
-
return this.size += this.has(n) ? 0 : 1,
|
|
293
|
+
function Jo(n, u) {
|
|
294
|
+
var f = this.__data__;
|
|
295
|
+
return this.size += this.has(n) ? 0 : 1, f[n] = Be && u === void 0 ? Wo : u, this;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
var u = -1,
|
|
299
|
-
for (this.clear(); ++u <
|
|
297
|
+
function he(n) {
|
|
298
|
+
var u = -1, f = n == null ? 0 : n.length;
|
|
299
|
+
for (this.clear(); ++u < f; ) {
|
|
300
300
|
var v = n[u];
|
|
301
301
|
this.set(v[0], v[1]);
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
function
|
|
304
|
+
he.prototype.clear = Uo;
|
|
305
|
+
he.prototype.delete = jo;
|
|
306
|
+
he.prototype.get = Go;
|
|
307
|
+
he.prototype.has = zo;
|
|
308
|
+
he.prototype.set = Jo;
|
|
309
|
+
function Ho() {
|
|
310
310
|
this.__data__ = [], this.size = 0;
|
|
311
311
|
}
|
|
312
312
|
function ft(n, u) {
|
|
313
|
-
for (var
|
|
314
|
-
if (
|
|
315
|
-
return
|
|
313
|
+
for (var f = n.length; f--; )
|
|
314
|
+
if (Cn(n[f][0], u))
|
|
315
|
+
return f;
|
|
316
316
|
return -1;
|
|
317
317
|
}
|
|
318
|
-
var
|
|
319
|
-
function
|
|
320
|
-
var u = this.__data__,
|
|
321
|
-
if (
|
|
318
|
+
var Ko = Array.prototype, qo = Ko.splice;
|
|
319
|
+
function Zo(n) {
|
|
320
|
+
var u = this.__data__, f = ft(u, n);
|
|
321
|
+
if (f < 0)
|
|
322
322
|
return !1;
|
|
323
323
|
var v = u.length - 1;
|
|
324
|
-
return
|
|
325
|
-
}
|
|
326
|
-
function Zo(n) {
|
|
327
|
-
var u = this.__data__, l = ft(u, n);
|
|
328
|
-
return l < 0 ? void 0 : u[l][1];
|
|
324
|
+
return f == v ? u.pop() : qo.call(u, f, 1), --this.size, !0;
|
|
329
325
|
}
|
|
330
326
|
function Qo(n) {
|
|
327
|
+
var u = this.__data__, f = ft(u, n);
|
|
328
|
+
return f < 0 ? void 0 : u[f][1];
|
|
329
|
+
}
|
|
330
|
+
function eu(n) {
|
|
331
331
|
return ft(this.__data__, n) > -1;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
var
|
|
335
|
-
return v < 0 ? (++this.size,
|
|
333
|
+
function tu(n, u) {
|
|
334
|
+
var f = this.__data__, v = ft(f, n);
|
|
335
|
+
return v < 0 ? (++this.size, f.push([n, u])) : f[v][1] = u, this;
|
|
336
336
|
}
|
|
337
337
|
function re(n) {
|
|
338
|
-
var u = -1,
|
|
339
|
-
for (this.clear(); ++u <
|
|
338
|
+
var u = -1, f = n == null ? 0 : n.length;
|
|
339
|
+
for (this.clear(); ++u < f; ) {
|
|
340
340
|
var v = n[u];
|
|
341
341
|
this.set(v[0], v[1]);
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
re.prototype.clear =
|
|
345
|
-
re.prototype.delete =
|
|
346
|
-
re.prototype.get =
|
|
347
|
-
re.prototype.has =
|
|
348
|
-
re.prototype.set =
|
|
349
|
-
var $e =
|
|
350
|
-
function
|
|
344
|
+
re.prototype.clear = Ho;
|
|
345
|
+
re.prototype.delete = Zo;
|
|
346
|
+
re.prototype.get = Qo;
|
|
347
|
+
re.prototype.has = eu;
|
|
348
|
+
re.prototype.set = tu;
|
|
349
|
+
var $e = ve(q, "Map");
|
|
350
|
+
function ru() {
|
|
351
351
|
this.size = 0, this.__data__ = {
|
|
352
|
-
hash: new
|
|
352
|
+
hash: new he(),
|
|
353
353
|
map: new ($e || re)(),
|
|
354
|
-
string: new
|
|
354
|
+
string: new he()
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function nu(n) {
|
|
358
358
|
var u = typeof n;
|
|
359
359
|
return u == "string" || u == "number" || u == "symbol" || u == "boolean" ? n !== "__proto__" : n === null;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
var
|
|
363
|
-
return
|
|
364
|
-
}
|
|
365
|
-
function nu(n) {
|
|
366
|
-
var u = lt(this, n).delete(n);
|
|
367
|
-
return this.size -= u ? 1 : 0, u;
|
|
361
|
+
function pt(n, u) {
|
|
362
|
+
var f = n.__data__;
|
|
363
|
+
return nu(u) ? f[typeof u == "string" ? "string" : "hash"] : f.map;
|
|
368
364
|
}
|
|
369
365
|
function iu(n) {
|
|
370
|
-
|
|
366
|
+
var u = pt(this, n).delete(n);
|
|
367
|
+
return this.size -= u ? 1 : 0, u;
|
|
371
368
|
}
|
|
372
369
|
function au(n) {
|
|
373
|
-
return
|
|
370
|
+
return pt(this, n).get(n);
|
|
374
371
|
}
|
|
375
|
-
function ou(n
|
|
376
|
-
|
|
377
|
-
|
|
372
|
+
function ou(n) {
|
|
373
|
+
return pt(this, n).has(n);
|
|
374
|
+
}
|
|
375
|
+
function uu(n, u) {
|
|
376
|
+
var f = pt(this, n), v = f.size;
|
|
377
|
+
return f.set(n, u), this.size += f.size == v ? 0 : 1, this;
|
|
378
378
|
}
|
|
379
379
|
function Se(n) {
|
|
380
|
-
var u = -1,
|
|
381
|
-
for (this.clear(); ++u <
|
|
380
|
+
var u = -1, f = n == null ? 0 : n.length;
|
|
381
|
+
for (this.clear(); ++u < f; ) {
|
|
382
382
|
var v = n[u];
|
|
383
383
|
this.set(v[0], v[1]);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
Se.prototype.clear =
|
|
387
|
-
Se.prototype.delete =
|
|
388
|
-
Se.prototype.get =
|
|
389
|
-
Se.prototype.has =
|
|
390
|
-
Se.prototype.set =
|
|
391
|
-
function
|
|
392
|
-
for (var
|
|
393
|
-
n[
|
|
386
|
+
Se.prototype.clear = ru;
|
|
387
|
+
Se.prototype.delete = iu;
|
|
388
|
+
Se.prototype.get = au;
|
|
389
|
+
Se.prototype.has = ou;
|
|
390
|
+
Se.prototype.set = uu;
|
|
391
|
+
function Bn(n, u) {
|
|
392
|
+
for (var f = -1, v = u.length, g = n.length; ++f < v; )
|
|
393
|
+
n[g + f] = u[f];
|
|
394
394
|
return n;
|
|
395
395
|
}
|
|
396
|
-
var
|
|
397
|
-
function
|
|
396
|
+
var $n = jn(Object.getPrototypeOf, Object);
|
|
397
|
+
function su() {
|
|
398
398
|
this.__data__ = new re(), this.size = 0;
|
|
399
399
|
}
|
|
400
|
-
function su(n) {
|
|
401
|
-
var u = this.__data__, l = u.delete(n);
|
|
402
|
-
return this.size = u.size, l;
|
|
403
|
-
}
|
|
404
400
|
function cu(n) {
|
|
401
|
+
var u = this.__data__, f = u.delete(n);
|
|
402
|
+
return this.size = u.size, f;
|
|
403
|
+
}
|
|
404
|
+
function lu(n) {
|
|
405
405
|
return this.__data__.get(n);
|
|
406
406
|
}
|
|
407
407
|
function fu(n) {
|
|
408
408
|
return this.__data__.has(n);
|
|
409
409
|
}
|
|
410
|
-
var
|
|
411
|
-
function
|
|
412
|
-
var
|
|
413
|
-
if (
|
|
414
|
-
var v =
|
|
415
|
-
if (!$e || v.length <
|
|
416
|
-
return v.push([n, u]), this.size = ++
|
|
417
|
-
|
|
410
|
+
var pu = 200;
|
|
411
|
+
function hu(n, u) {
|
|
412
|
+
var f = this.__data__;
|
|
413
|
+
if (f instanceof re) {
|
|
414
|
+
var v = f.__data__;
|
|
415
|
+
if (!$e || v.length < pu - 1)
|
|
416
|
+
return v.push([n, u]), this.size = ++f.size, this;
|
|
417
|
+
f = this.__data__ = new Se(v);
|
|
418
418
|
}
|
|
419
|
-
return
|
|
419
|
+
return f.set(n, u), this.size = f.size, this;
|
|
420
420
|
}
|
|
421
421
|
function Pe(n) {
|
|
422
422
|
var u = this.__data__ = new re(n);
|
|
423
423
|
this.size = u.size;
|
|
424
424
|
}
|
|
425
|
-
Pe.prototype.clear =
|
|
426
|
-
Pe.prototype.delete =
|
|
427
|
-
Pe.prototype.get =
|
|
425
|
+
Pe.prototype.clear = su;
|
|
426
|
+
Pe.prototype.delete = cu;
|
|
427
|
+
Pe.prototype.get = lu;
|
|
428
428
|
Pe.prototype.has = fu;
|
|
429
|
-
Pe.prototype.set =
|
|
430
|
-
function hu(n, u) {
|
|
431
|
-
return n && ct(u, er(u), n);
|
|
432
|
-
}
|
|
429
|
+
Pe.prototype.set = hu;
|
|
433
430
|
function du(n, u) {
|
|
434
|
-
return n &&
|
|
431
|
+
return n && lt(u, tr(u), n);
|
|
432
|
+
}
|
|
433
|
+
function vu(n, u) {
|
|
434
|
+
return n && lt(u, rr(u), n);
|
|
435
435
|
}
|
|
436
|
-
var
|
|
437
|
-
function
|
|
436
|
+
var Vn = typeof exports == "object" && exports && !exports.nodeType && exports, en = Vn && typeof module == "object" && module && !module.nodeType && module, yu = en && en.exports === Vn, tn = yu ? q.Buffer : void 0, rn = tn ? tn.allocUnsafe : void 0;
|
|
437
|
+
function _u(n, u) {
|
|
438
438
|
if (u)
|
|
439
439
|
return n.slice();
|
|
440
|
-
var
|
|
440
|
+
var f = n.length, v = rn ? rn(f) : new n.constructor(f);
|
|
441
441
|
return n.copy(v), v;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
444
|
-
for (var
|
|
445
|
-
var
|
|
446
|
-
u(
|
|
443
|
+
function Eu(n, u) {
|
|
444
|
+
for (var f = -1, v = n == null ? 0 : n.length, g = 0, m = []; ++f < v; ) {
|
|
445
|
+
var _ = n[f];
|
|
446
|
+
u(_, f, n) && (m[g++] = _);
|
|
447
447
|
}
|
|
448
448
|
return m;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Gn() {
|
|
451
451
|
return [];
|
|
452
452
|
}
|
|
453
|
-
var
|
|
454
|
-
return n == null ? [] : (n = Object(n),
|
|
455
|
-
return
|
|
453
|
+
var gu = Object.prototype, bu = gu.propertyIsEnumerable, nn = Object.getOwnPropertySymbols, nr = nn ? function(n) {
|
|
454
|
+
return n == null ? [] : (n = Object(n), Eu(nn(n), function(u) {
|
|
455
|
+
return bu.call(n, u);
|
|
456
456
|
}));
|
|
457
|
-
} :
|
|
458
|
-
function
|
|
459
|
-
return
|
|
457
|
+
} : Gn;
|
|
458
|
+
function mu(n, u) {
|
|
459
|
+
return lt(n, nr(n), u);
|
|
460
460
|
}
|
|
461
|
-
var
|
|
461
|
+
var Ru = Object.getOwnPropertySymbols, Yn = Ru ? function(n) {
|
|
462
462
|
for (var u = []; n; )
|
|
463
|
-
|
|
463
|
+
Bn(u, nr(n)), n = $n(n);
|
|
464
464
|
return u;
|
|
465
|
-
} :
|
|
466
|
-
function
|
|
467
|
-
return
|
|
465
|
+
} : Gn;
|
|
466
|
+
function Ou(n, u) {
|
|
467
|
+
return lt(n, Yn(n), u);
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Xn(n, u, f) {
|
|
470
470
|
var v = u(n);
|
|
471
|
-
return
|
|
472
|
-
}
|
|
473
|
-
function Ou(n) {
|
|
474
|
-
return Yn(n, er, rr);
|
|
471
|
+
return Zt(n) ? v : Bn(v, f(n));
|
|
475
472
|
}
|
|
476
473
|
function Nu(n) {
|
|
477
|
-
return
|
|
474
|
+
return Xn(n, tr, nr);
|
|
475
|
+
}
|
|
476
|
+
function Tu(n) {
|
|
477
|
+
return Xn(n, rr, Yn);
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
(
|
|
481
|
-
var u = Ve(n),
|
|
479
|
+
var $t = ve(q, "DataView"), Vt = ve(q, "Promise"), Gt = ve(q, "Set"), an = "[object Map]", Su = "[object Object]", on = "[object Promise]", un = "[object Set]", sn = "[object WeakMap]", cn = "[object DataView]", Pu = de($t), wu = de($e), xu = de(Vt), Cu = de(Gt), Au = de(Bt), te = Ve;
|
|
480
|
+
($t && te(new $t(new ArrayBuffer(1))) != cn || $e && te(new $e()) != an || Vt && te(Vt.resolve()) != on || Gt && te(new Gt()) != un || Bt && te(new Bt()) != sn) && (te = function(n) {
|
|
481
|
+
var u = Ve(n), f = u == Su ? n.constructor : void 0, v = f ? de(f) : "";
|
|
482
482
|
if (v)
|
|
483
483
|
switch (v) {
|
|
484
|
-
case Su:
|
|
485
|
-
return sn;
|
|
486
484
|
case Pu:
|
|
487
|
-
return
|
|
485
|
+
return cn;
|
|
488
486
|
case wu:
|
|
489
487
|
return an;
|
|
490
488
|
case xu:
|
|
491
489
|
return on;
|
|
492
490
|
case Cu:
|
|
493
491
|
return un;
|
|
492
|
+
case Au:
|
|
493
|
+
return sn;
|
|
494
494
|
}
|
|
495
495
|
return u;
|
|
496
496
|
});
|
|
497
|
-
var
|
|
498
|
-
function
|
|
499
|
-
var u = n.length,
|
|
500
|
-
return u && typeof n[0] == "string" &&
|
|
497
|
+
var Iu = Object.prototype, ku = Iu.hasOwnProperty;
|
|
498
|
+
function Du(n) {
|
|
499
|
+
var u = n.length, f = new n.constructor(u);
|
|
500
|
+
return u && typeof n[0] == "string" && ku.call(n, "index") && (f.index = n.index, f.input = n.input), f;
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
function
|
|
502
|
+
var ln = q.Uint8Array;
|
|
503
|
+
function ir(n) {
|
|
504
504
|
var u = new n.constructor(n.byteLength);
|
|
505
|
-
return new
|
|
505
|
+
return new ln(u).set(new ln(n)), u;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
var
|
|
509
|
-
return new n.constructor(
|
|
507
|
+
function Lu(n, u) {
|
|
508
|
+
var f = u ? ir(n.buffer) : n.buffer;
|
|
509
|
+
return new n.constructor(f, n.byteOffset, n.byteLength);
|
|
510
510
|
}
|
|
511
|
-
var
|
|
512
|
-
function
|
|
513
|
-
var u = new n.constructor(n.source,
|
|
511
|
+
var Mu = /\w*$/;
|
|
512
|
+
function Fu(n) {
|
|
513
|
+
var u = new n.constructor(n.source, Mu.exec(n));
|
|
514
514
|
return u.lastIndex = n.lastIndex, u;
|
|
515
515
|
}
|
|
516
|
-
var fn = Re ? Re.prototype : void 0,
|
|
517
|
-
function
|
|
518
|
-
return
|
|
516
|
+
var fn = Re ? Re.prototype : void 0, pn = fn ? fn.valueOf : void 0;
|
|
517
|
+
function Uu(n) {
|
|
518
|
+
return pn ? Object(pn.call(n)) : {};
|
|
519
519
|
}
|
|
520
|
-
function
|
|
521
|
-
var
|
|
522
|
-
return new n.constructor(
|
|
520
|
+
function ju(n, u) {
|
|
521
|
+
var f = u ? ir(n.buffer) : n.buffer;
|
|
522
|
+
return new n.constructor(f, n.byteOffset, n.length);
|
|
523
523
|
}
|
|
524
|
-
var
|
|
525
|
-
function
|
|
524
|
+
var Bu = "[object Boolean]", $u = "[object Date]", Vu = "[object Map]", Gu = "[object Number]", Yu = "[object RegExp]", Xu = "[object Set]", zu = "[object String]", Wu = "[object Symbol]", Ju = "[object ArrayBuffer]", Hu = "[object DataView]", Ku = "[object Float32Array]", qu = "[object Float64Array]", Zu = "[object Int8Array]", Qu = "[object Int16Array]", es = "[object Int32Array]", ts = "[object Uint8Array]", rs = "[object Uint8ClampedArray]", ns = "[object Uint16Array]", is = "[object Uint32Array]";
|
|
525
|
+
function as(n, u, f) {
|
|
526
526
|
var v = n.constructor;
|
|
527
527
|
switch (u) {
|
|
528
|
-
case
|
|
529
|
-
return
|
|
530
|
-
case ju:
|
|
528
|
+
case Ju:
|
|
529
|
+
return ir(n);
|
|
531
530
|
case Bu:
|
|
531
|
+
case $u:
|
|
532
532
|
return new v(+n);
|
|
533
|
-
case Ju:
|
|
534
|
-
return Du(n, l);
|
|
535
533
|
case Hu:
|
|
534
|
+
return Lu(n, f);
|
|
536
535
|
case Ku:
|
|
537
536
|
case qu:
|
|
538
537
|
case Zu:
|
|
@@ -541,104 +540,115 @@ function is(n, u, l) {
|
|
|
541
540
|
case ts:
|
|
542
541
|
case rs:
|
|
543
542
|
case ns:
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
return new v();
|
|
543
|
+
case is:
|
|
544
|
+
return ju(n, f);
|
|
547
545
|
case Vu:
|
|
548
|
-
|
|
549
|
-
return new v(n);
|
|
546
|
+
return new v();
|
|
550
547
|
case Gu:
|
|
551
|
-
|
|
548
|
+
case zu:
|
|
549
|
+
return new v(n);
|
|
552
550
|
case Yu:
|
|
551
|
+
return Fu(n);
|
|
552
|
+
case Xu:
|
|
553
553
|
return new v();
|
|
554
554
|
case Wu:
|
|
555
|
-
return
|
|
555
|
+
return Uu(n);
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return typeof n.constructor == "function" && !
|
|
558
|
+
function os(n) {
|
|
559
|
+
return typeof n.constructor == "function" && !Qt(n) ? Ma($n(n)) : {};
|
|
560
560
|
}
|
|
561
|
-
var
|
|
562
|
-
function
|
|
563
|
-
return Ge(n) && te(n) ==
|
|
561
|
+
var us = "[object Map]";
|
|
562
|
+
function ss(n) {
|
|
563
|
+
return Ge(n) && te(n) == us;
|
|
564
564
|
}
|
|
565
|
-
var
|
|
565
|
+
var hn = Oe && Oe.isMap, cs = hn ? er(hn) : ss, ls = "[object Set]";
|
|
566
566
|
function fs(n) {
|
|
567
|
-
return Ge(n) && te(n) ==
|
|
568
|
-
}
|
|
569
|
-
var
|
|
570
|
-
L[
|
|
571
|
-
L[
|
|
572
|
-
function it(n, u,
|
|
573
|
-
var
|
|
574
|
-
if (
|
|
575
|
-
return
|
|
567
|
+
return Ge(n) && te(n) == ls;
|
|
568
|
+
}
|
|
569
|
+
var dn = Oe && Oe.isSet, ps = dn ? er(dn) : fs, hs = 1, ds = 2, vs = 4, zn = "[object Arguments]", ys = "[object Array]", _s = "[object Boolean]", Es = "[object Date]", gs = "[object Error]", Wn = "[object Function]", bs = "[object GeneratorFunction]", ms = "[object Map]", Rs = "[object Number]", Jn = "[object Object]", Os = "[object RegExp]", Ns = "[object Set]", Ts = "[object String]", Ss = "[object Symbol]", Ps = "[object WeakMap]", ws = "[object ArrayBuffer]", xs = "[object DataView]", Cs = "[object Float32Array]", As = "[object Float64Array]", Is = "[object Int8Array]", ks = "[object Int16Array]", Ds = "[object Int32Array]", Ls = "[object Uint8Array]", Ms = "[object Uint8ClampedArray]", Fs = "[object Uint16Array]", Us = "[object Uint32Array]", L = {};
|
|
570
|
+
L[zn] = L[ys] = L[ws] = L[xs] = L[_s] = L[Es] = L[Cs] = L[As] = L[Is] = L[ks] = L[Ds] = L[ms] = L[Rs] = L[Jn] = L[Os] = L[Ns] = L[Ts] = L[Ss] = L[Ls] = L[Ms] = L[Fs] = L[Us] = !0;
|
|
571
|
+
L[gs] = L[Wn] = L[Ps] = !1;
|
|
572
|
+
function it(n, u, f, v, g, m) {
|
|
573
|
+
var _, T = u & hs, O = u & ds, r = u & vs;
|
|
574
|
+
if (_ !== void 0)
|
|
575
|
+
return _;
|
|
576
576
|
if (!Ye(n))
|
|
577
577
|
return n;
|
|
578
|
-
var t =
|
|
578
|
+
var t = Zt(n);
|
|
579
579
|
if (t) {
|
|
580
|
-
if (
|
|
581
|
-
return
|
|
580
|
+
if (_ = Du(n), !T)
|
|
581
|
+
return Fa(n, _);
|
|
582
582
|
} else {
|
|
583
|
-
var e = te(n), i = e == Wn || e ==
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
586
|
-
if (e ==
|
|
587
|
-
if (
|
|
588
|
-
return O ?
|
|
583
|
+
var e = te(n), i = e == Wn || e == bs;
|
|
584
|
+
if (Mn(n))
|
|
585
|
+
return _u(n, T);
|
|
586
|
+
if (e == Jn || e == zn || i && !g) {
|
|
587
|
+
if (_ = O || i ? {} : os(n), !T)
|
|
588
|
+
return O ? Ou(n, vu(_, n)) : mu(n, du(_, n));
|
|
589
589
|
} else {
|
|
590
590
|
if (!L[e])
|
|
591
|
-
return
|
|
592
|
-
|
|
591
|
+
return g ? n : {};
|
|
592
|
+
_ = as(n, e, T);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
m || (m = new Pe());
|
|
596
596
|
var o = m.get(n);
|
|
597
597
|
if (o)
|
|
598
598
|
return o;
|
|
599
|
-
m.set(n,
|
|
600
|
-
|
|
601
|
-
}) :
|
|
602
|
-
|
|
599
|
+
m.set(n, _), ps(n) ? n.forEach(function(a) {
|
|
600
|
+
_.add(it(a, u, f, a, n, m));
|
|
601
|
+
}) : cs(n) && n.forEach(function(a, p) {
|
|
602
|
+
_.set(p, it(a, u, f, p, n, m));
|
|
603
603
|
});
|
|
604
|
-
var s = r ? O ?
|
|
605
|
-
return
|
|
606
|
-
c && (p = a, a = n[p]),
|
|
607
|
-
}),
|
|
604
|
+
var s = r ? O ? Tu : Nu : O ? rr : tr, c = t ? void 0 : s(n);
|
|
605
|
+
return Ua(c || n, function(a, p) {
|
|
606
|
+
c && (p = a, a = n[p]), An(_, p, it(a, u, f, p, n, m));
|
|
607
|
+
}), _;
|
|
608
608
|
}
|
|
609
|
-
var
|
|
610
|
-
function
|
|
611
|
-
return it(n,
|
|
609
|
+
var js = 1, Bs = 4;
|
|
610
|
+
function Yt(n) {
|
|
611
|
+
return it(n, js | Bs);
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function $s(n, u) {
|
|
614
614
|
if (n === "page") {
|
|
615
615
|
if (u == "common")
|
|
616
616
|
return "pageCommon";
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
617
|
+
console.assert(!1);
|
|
618
|
+
} else if (n === "comp") {
|
|
619
|
+
if (u === "common")
|
|
620
|
+
return "compCommon";
|
|
621
|
+
console.assert(!1);
|
|
622
|
+
} else
|
|
623
|
+
console.assert(!1);
|
|
624
|
+
}
|
|
625
|
+
function vn(n) {
|
|
621
626
|
if (n.ui)
|
|
622
|
-
return
|
|
627
|
+
return Yt(n.default);
|
|
623
628
|
if (n.array)
|
|
624
|
-
return n.default ?
|
|
629
|
+
return n.default ? Yt(n.default) : [];
|
|
625
630
|
console.assert(!1);
|
|
626
631
|
}
|
|
627
|
-
function
|
|
628
|
-
function
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
+
function yn(n, u) {
|
|
633
|
+
function f(v, g) {
|
|
634
|
+
if (g.ui) {
|
|
635
|
+
if (g.ui === "strInput" && g.static)
|
|
636
|
+
return;
|
|
637
|
+
v[g.key] = vn(g);
|
|
638
|
+
} else
|
|
639
|
+
g.array ? v[g.key] = vn(g) : g.children.forEach((m) => {
|
|
640
|
+
v[g.key] = {}, f(v[g.key], m);
|
|
641
|
+
});
|
|
632
642
|
}
|
|
633
|
-
u.forEach((v) =>
|
|
643
|
+
u.forEach((v) => f(n, v));
|
|
634
644
|
}
|
|
635
|
-
function
|
|
636
|
-
const m = `type=${n} subtype=${u} version=${
|
|
637
|
-
if (!
|
|
645
|
+
function Vs(n, u, f, v, g) {
|
|
646
|
+
const m = `type=${n} subtype=${u} version=${f} ref=${v} keyOrRefid=${g}`, _ = $s(n, u);
|
|
647
|
+
if (!_) {
|
|
638
648
|
console.error(`spawnNode prop tag not found, ${m}`);
|
|
639
649
|
return;
|
|
640
650
|
}
|
|
641
|
-
const T =
|
|
651
|
+
const T = pi[f];
|
|
642
652
|
if (!T) {
|
|
643
653
|
console.error(`spawnNode pkg not found version, ${m}`);
|
|
644
654
|
return;
|
|
@@ -648,9 +658,9 @@ function $s(n, u, l, v, E) {
|
|
|
648
658
|
id: "",
|
|
649
659
|
key: ""
|
|
650
660
|
}
|
|
651
|
-
}, r =
|
|
661
|
+
}, r = Tn(16);
|
|
652
662
|
if (v) {
|
|
653
|
-
const t = T.refKey, e =
|
|
663
|
+
const t = T.refKey, e = g;
|
|
654
664
|
if (!T.elements.has(t)) {
|
|
655
665
|
console.error(`spawnNode [ref] element not found in pkg, ${m}`);
|
|
656
666
|
return;
|
|
@@ -660,16 +670,16 @@ function $s(n, u, l, v, E) {
|
|
|
660
670
|
console.error(`spawnNode [ref] element not found in global, ${m}`);
|
|
661
671
|
return;
|
|
662
672
|
}
|
|
663
|
-
const o = i.props[
|
|
673
|
+
const o = i.props[_];
|
|
664
674
|
if (!o) {
|
|
665
675
|
console.error(`spawnNode [ref] props not found, ${m}`);
|
|
666
676
|
return;
|
|
667
677
|
}
|
|
668
|
-
|
|
678
|
+
yn(O, o), O.basic.id = r, O.basic.key = t, O.ref = {
|
|
669
679
|
id: e
|
|
670
680
|
};
|
|
671
681
|
} else {
|
|
672
|
-
const t =
|
|
682
|
+
const t = g;
|
|
673
683
|
if (!T.elements.has(t)) {
|
|
674
684
|
console.error(`spawnNode [key] element not found in pkg, ${m}`);
|
|
675
685
|
return;
|
|
@@ -679,107 +689,107 @@ function $s(n, u, l, v, E) {
|
|
|
679
689
|
console.error(`spawnNode [key] element not found in global, ${m}`);
|
|
680
690
|
return;
|
|
681
691
|
}
|
|
682
|
-
const i = e.props[
|
|
692
|
+
const i = e.props[_];
|
|
683
693
|
if (!i) {
|
|
684
694
|
console.error(`spawnNode [key] props not found, ${m}`);
|
|
685
695
|
return;
|
|
686
696
|
}
|
|
687
|
-
|
|
697
|
+
yn(O, i), O.basic.id = r, O.basic.key = t, e.leaf || (O.children = []);
|
|
688
698
|
}
|
|
689
699
|
return O;
|
|
690
700
|
}
|
|
691
|
-
function
|
|
692
|
-
function
|
|
701
|
+
function Ac(n, u) {
|
|
702
|
+
function f(v) {
|
|
693
703
|
if (v.basic.id === u)
|
|
694
704
|
return v;
|
|
695
705
|
if (v.children)
|
|
696
|
-
for (let
|
|
697
|
-
const m =
|
|
706
|
+
for (let g = 0; g < v.children.length; g++) {
|
|
707
|
+
const m = f(v.children[g]);
|
|
698
708
|
if (m)
|
|
699
709
|
return m;
|
|
700
710
|
}
|
|
701
711
|
}
|
|
702
712
|
for (let v = 0; v < n.length; v++) {
|
|
703
|
-
const
|
|
704
|
-
if (
|
|
705
|
-
return
|
|
713
|
+
const g = f(n[v]);
|
|
714
|
+
if (g)
|
|
715
|
+
return g;
|
|
706
716
|
}
|
|
707
717
|
}
|
|
708
|
-
function
|
|
718
|
+
function Ic(n) {
|
|
709
719
|
function u(v) {
|
|
710
|
-
var
|
|
711
|
-
v.basic.id =
|
|
720
|
+
var g;
|
|
721
|
+
v.basic.id = Tn(16), (g = v.children) == null || g.forEach((m) => u(m));
|
|
712
722
|
}
|
|
713
|
-
const
|
|
714
|
-
return u(
|
|
715
|
-
}
|
|
716
|
-
const Jn = "runtimeEnv", Hn = "runtimeMode", Kn = "runtimeDevice", qn = "runtimeDark", Zn = "runtimeType", Qn = "runtimeData", ei = "runtimeDepends", ti = "runtimeInterpreter";
|
|
717
|
-
function Ac(n) {
|
|
718
|
-
oe(Jn, n);
|
|
723
|
+
const f = Yt(n);
|
|
724
|
+
return u(f), f;
|
|
719
725
|
}
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
}
|
|
723
|
-
function Ic(n) {
|
|
726
|
+
const Hn = "runtimeEnv", Kn = "runtimeMode", qn = "runtimeDevice", Zn = "runtimeDark", Qn = "runtimeType", ei = "runtimeData", ti = "runtimeDepends", ri = "runtimeInterpreter";
|
|
727
|
+
function kc(n) {
|
|
724
728
|
oe(Hn, n);
|
|
725
729
|
}
|
|
726
|
-
function
|
|
730
|
+
function Gs() {
|
|
727
731
|
return ue(Hn);
|
|
728
732
|
}
|
|
729
|
-
function
|
|
730
|
-
oe(Kn,
|
|
733
|
+
function Dc(n) {
|
|
734
|
+
oe(Kn, n);
|
|
731
735
|
}
|
|
732
|
-
function
|
|
736
|
+
function ar() {
|
|
733
737
|
return ue(Kn);
|
|
734
738
|
}
|
|
735
|
-
function
|
|
736
|
-
oe(qn,
|
|
739
|
+
function Lc(n) {
|
|
740
|
+
oe(qn, ct(n));
|
|
737
741
|
}
|
|
738
|
-
function
|
|
742
|
+
function ni() {
|
|
739
743
|
return ue(qn);
|
|
740
744
|
}
|
|
741
|
-
function
|
|
742
|
-
oe(Zn, n);
|
|
745
|
+
function Mc(n) {
|
|
746
|
+
oe(Zn, ct(n));
|
|
743
747
|
}
|
|
744
|
-
function
|
|
748
|
+
function Ys() {
|
|
745
749
|
return ue(Zn);
|
|
746
750
|
}
|
|
747
|
-
function
|
|
748
|
-
|
|
751
|
+
function Fc(n) {
|
|
752
|
+
oe(Qn, n);
|
|
749
753
|
}
|
|
750
754
|
function ii() {
|
|
751
755
|
return ue(Qn);
|
|
752
756
|
}
|
|
753
|
-
function
|
|
754
|
-
console.assert(
|
|
757
|
+
function Uc(n) {
|
|
758
|
+
console.assert(Rn(n)), oe(ei, ct(n));
|
|
755
759
|
}
|
|
756
|
-
function
|
|
760
|
+
function ai() {
|
|
757
761
|
return ue(ei);
|
|
758
762
|
}
|
|
759
|
-
function
|
|
760
|
-
oe(ti, n);
|
|
763
|
+
function jc(n) {
|
|
764
|
+
console.assert(Rn(n)), oe(ti, ct(n));
|
|
761
765
|
}
|
|
762
|
-
function
|
|
766
|
+
function Xs() {
|
|
763
767
|
return ue(ti);
|
|
764
768
|
}
|
|
765
|
-
|
|
769
|
+
function zs(n) {
|
|
770
|
+
oe(ri, n);
|
|
771
|
+
}
|
|
772
|
+
function Ws() {
|
|
773
|
+
return ue(ri);
|
|
774
|
+
}
|
|
775
|
+
const Js = /* @__PURE__ */ Wt({
|
|
766
776
|
__name: "index",
|
|
767
777
|
props: {
|
|
768
778
|
node: {},
|
|
769
779
|
outer: { type: Boolean }
|
|
770
780
|
},
|
|
771
781
|
setup(n) {
|
|
772
|
-
const u = n,
|
|
773
|
-
if (
|
|
782
|
+
const u = n, f = ar(), v = Ys(), g = Ws(), m = M(() => u.node.settings.text), _ = M(() => u.node.settings.disabled), T = M(() => u.node.settings.variant), O = M(() => u.node.settings.density), r = M(() => u.node.settings.block), t = M(() => v.value ? "dark" : "light"), e = () => {
|
|
783
|
+
if (f !== "runtime" || !g)
|
|
774
784
|
return;
|
|
775
|
-
const i =
|
|
776
|
-
|
|
785
|
+
const i = g.nativeToPseudo(u.node.basic.id);
|
|
786
|
+
g.appendCode(`__triggerEvent__('${i}', 'click');`), g.run();
|
|
777
787
|
};
|
|
778
788
|
return (i, o) => {
|
|
779
|
-
const s =
|
|
780
|
-
return
|
|
789
|
+
const s = Zi("v-btn");
|
|
790
|
+
return Jt(), On(s, {
|
|
781
791
|
text: m.value,
|
|
782
|
-
disabled:
|
|
792
|
+
disabled: _.value,
|
|
783
793
|
variant: T.value,
|
|
784
794
|
density: O.value,
|
|
785
795
|
block: r.value,
|
|
@@ -788,7 +798,7 @@ const zs = /* @__PURE__ */ Wt({
|
|
|
788
798
|
}, null, 8, ["text", "disabled", "variant", "density", "block", "theme"]);
|
|
789
799
|
};
|
|
790
800
|
}
|
|
791
|
-
}),
|
|
801
|
+
}), Xt = "btn_v1", zt = "container_v1", oi = "globality_v1", ui = "ref_v1", Ne = {
|
|
792
802
|
key: "basic",
|
|
793
803
|
name: "x-runtime-lib.basic",
|
|
794
804
|
children: [
|
|
@@ -813,18 +823,18 @@ const zs = /* @__PURE__ */ Wt({
|
|
|
813
823
|
default: ""
|
|
814
824
|
}
|
|
815
825
|
]
|
|
816
|
-
},
|
|
826
|
+
}, Hs = [
|
|
817
827
|
{ title: "x-runtime-lib.elevated", value: "elevated" },
|
|
818
828
|
{ title: "x-runtime-lib.flat", value: "flat" },
|
|
819
829
|
{ title: "x-runtime-lib.tonal", value: "tonal" },
|
|
820
830
|
{ title: "x-runtime-lib.outlined", value: "outlined" },
|
|
821
831
|
{ title: "x-runtime-lib.text", value: "text" },
|
|
822
832
|
{ title: "x-runtime-lib.plain", value: "plain" }
|
|
823
|
-
],
|
|
833
|
+
], Ks = [
|
|
824
834
|
{ title: "x-runtime-lib.default", value: "default" },
|
|
825
835
|
{ title: "x-runtime-lib.comfortable", value: "comfortable" },
|
|
826
836
|
{ title: "x-runtime-lib.compact", value: "compact" }
|
|
827
|
-
],
|
|
837
|
+
], _n = {
|
|
828
838
|
key: "settings",
|
|
829
839
|
name: "x-runtime-lib.settings",
|
|
830
840
|
children: [
|
|
@@ -844,14 +854,14 @@ const zs = /* @__PURE__ */ Wt({
|
|
|
844
854
|
key: "variant",
|
|
845
855
|
name: "x-runtime-lib.variant",
|
|
846
856
|
ui: "select",
|
|
847
|
-
items:
|
|
857
|
+
items: Hs,
|
|
848
858
|
default: "elevated"
|
|
849
859
|
},
|
|
850
860
|
{
|
|
851
861
|
key: "density",
|
|
852
862
|
name: "x-runtime-lib.density",
|
|
853
863
|
ui: "select",
|
|
854
|
-
items:
|
|
864
|
+
items: Ks,
|
|
855
865
|
default: "default"
|
|
856
866
|
},
|
|
857
867
|
{
|
|
@@ -861,10 +871,10 @@ const zs = /* @__PURE__ */ Wt({
|
|
|
861
871
|
default: !1
|
|
862
872
|
}
|
|
863
873
|
]
|
|
864
|
-
},
|
|
865
|
-
key:
|
|
874
|
+
}, qs = {
|
|
875
|
+
key: Xt,
|
|
866
876
|
name: "x-runtime-lib.button",
|
|
867
|
-
comp:
|
|
877
|
+
comp: Js,
|
|
868
878
|
leaf: !0,
|
|
869
879
|
events: [
|
|
870
880
|
{
|
|
@@ -875,102 +885,223 @@ const zs = /* @__PURE__ */ Wt({
|
|
|
875
885
|
],
|
|
876
886
|
methods: [],
|
|
877
887
|
props: {
|
|
878
|
-
pageCommon: [Ne,
|
|
879
|
-
compCommon: [Ne,
|
|
888
|
+
pageCommon: [Ne, _n],
|
|
889
|
+
compCommon: [Ne, _n]
|
|
880
890
|
}
|
|
881
891
|
};
|
|
882
|
-
function
|
|
883
|
-
const v = M(() =>
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
892
|
+
function si(n, u, f) {
|
|
893
|
+
const v = M(() => {
|
|
894
|
+
var t;
|
|
895
|
+
return (t = f.node.size) == null ? void 0 : t.width;
|
|
896
|
+
}), g = M(() => {
|
|
897
|
+
var t;
|
|
898
|
+
return (t = f.node.size) == null ? void 0 : t.minWidth;
|
|
899
|
+
}), m = M(() => {
|
|
900
|
+
var t;
|
|
901
|
+
return (t = f.node.size) == null ? void 0 : t.maxWidth;
|
|
902
|
+
}), _ = M(() => {
|
|
903
|
+
var t, e;
|
|
904
|
+
if (f.outer && n === "editor") {
|
|
905
|
+
const i = Ft((t = f.node.size) == null ? void 0 : t.height);
|
|
906
|
+
if (i)
|
|
907
|
+
return i / 100 * u.value.height + "px";
|
|
888
908
|
}
|
|
889
|
-
return
|
|
909
|
+
return (e = f.node.size) == null ? void 0 : e.height;
|
|
890
910
|
}), T = M(() => {
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
911
|
+
var t, e;
|
|
912
|
+
if (f.outer && n === "editor") {
|
|
913
|
+
const i = Ft((t = f.node.size) == null ? void 0 : t.minHeight);
|
|
914
|
+
if (i)
|
|
915
|
+
return i / 100 * u.value.height + "px";
|
|
895
916
|
}
|
|
896
|
-
return
|
|
917
|
+
return (e = f.node.size) == null ? void 0 : e.minHeight;
|
|
897
918
|
}), O = M(() => {
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
919
|
+
var t, e;
|
|
920
|
+
if (f.outer && n === "editor") {
|
|
921
|
+
const i = Ft((t = f.node.size) == null ? void 0 : t.maxHeight);
|
|
922
|
+
if (i)
|
|
923
|
+
return i / 100 * u.value.height + "px";
|
|
902
924
|
}
|
|
903
|
-
return
|
|
925
|
+
return (e = f.node.size) == null ? void 0 : e.maxHeight;
|
|
904
926
|
});
|
|
905
927
|
function r(t) {
|
|
906
|
-
v.value && (t.width = v.value),
|
|
928
|
+
v.value && (t.width = v.value), g.value && (t.minWidth = g.value), m.value && (t.maxWidth = m.value), _.value && (t.height = _.value), T.value && (t.minHeight = T.value), O.value && (t.maxHeight = O.value);
|
|
907
929
|
}
|
|
908
|
-
return { width: v, minWidth:
|
|
909
|
-
}
|
|
910
|
-
function qs(n) {
|
|
911
|
-
const u = M(() => n.node.margin.top), l = M(() => n.node.margin.left), v = M(() => n.node.margin.bottom), E = M(() => n.node.margin.right);
|
|
912
|
-
function m(b) {
|
|
913
|
-
u.value && (b.marginTop = u.value), l.value && (b.marginLeft = l.value), v.value && (b.marginBottom = v.value), E.value && (b.marginRight = E.value);
|
|
914
|
-
}
|
|
915
|
-
return { marginTop: u, marginLeft: l, marginBottom: v, marginRight: E, applyMargin: m };
|
|
930
|
+
return { width: v, minWidth: g, maxWidth: m, height: _, minHeight: T, maxHeight: O, applySize: r };
|
|
916
931
|
}
|
|
917
932
|
function Zs(n) {
|
|
918
933
|
const u = M(() => {
|
|
919
|
-
var
|
|
920
|
-
return (
|
|
921
|
-
}),
|
|
922
|
-
var
|
|
923
|
-
return (
|
|
934
|
+
var _;
|
|
935
|
+
return (_ = n.node.margin) == null ? void 0 : _.top;
|
|
936
|
+
}), f = M(() => {
|
|
937
|
+
var _;
|
|
938
|
+
return (_ = n.node.margin) == null ? void 0 : _.left;
|
|
924
939
|
}), v = M(() => {
|
|
925
|
-
var
|
|
926
|
-
return (
|
|
927
|
-
}),
|
|
928
|
-
var
|
|
929
|
-
return (
|
|
940
|
+
var _;
|
|
941
|
+
return (_ = n.node.margin) == null ? void 0 : _.bottom;
|
|
942
|
+
}), g = M(() => {
|
|
943
|
+
var _;
|
|
944
|
+
return (_ = n.node.margin) == null ? void 0 : _.right;
|
|
930
945
|
});
|
|
931
|
-
function m(
|
|
932
|
-
u.value && (
|
|
946
|
+
function m(_) {
|
|
947
|
+
u.value && (_.marginTop = u.value), f.value && (_.marginLeft = f.value), v.value && (_.marginBottom = v.value), g.value && (_.marginRight = g.value);
|
|
933
948
|
}
|
|
934
|
-
return {
|
|
949
|
+
return { marginTop: u, marginLeft: f, marginBottom: v, marginRight: g, applyMargin: m };
|
|
935
950
|
}
|
|
936
951
|
function Qs(n) {
|
|
952
|
+
const u = M(() => {
|
|
953
|
+
var _;
|
|
954
|
+
return (_ = n.node.padding) == null ? void 0 : _.top;
|
|
955
|
+
}), f = M(() => {
|
|
956
|
+
var _;
|
|
957
|
+
return (_ = n.node.padding) == null ? void 0 : _.left;
|
|
958
|
+
}), v = M(() => {
|
|
959
|
+
var _;
|
|
960
|
+
return (_ = n.node.padding) == null ? void 0 : _.bottom;
|
|
961
|
+
}), g = M(() => {
|
|
962
|
+
var _;
|
|
963
|
+
return (_ = n.node.padding) == null ? void 0 : _.right;
|
|
964
|
+
});
|
|
965
|
+
function m(_) {
|
|
966
|
+
u.value && (_.paddingTop = u.value), f.value && (_.paddingLeft = f.value), v.value && (_.paddingBottom = v.value), g.value && (_.paddingRight = g.value);
|
|
967
|
+
}
|
|
968
|
+
return { paddingTop: u, paddingLeft: f, paddingBottom: v, paddingRight: g, applyPadding: m };
|
|
969
|
+
}
|
|
970
|
+
function ec(n) {
|
|
937
971
|
const u = M(() => {
|
|
938
972
|
var m;
|
|
939
973
|
return (m = n.node.border) == null ? void 0 : m.style;
|
|
940
|
-
}),
|
|
974
|
+
}), f = M(() => {
|
|
941
975
|
var m;
|
|
942
976
|
return (m = n.node.border) == null ? void 0 : m.width;
|
|
943
977
|
}), v = M(() => {
|
|
944
978
|
var m;
|
|
945
979
|
return (m = n.node.border) == null ? void 0 : m.color;
|
|
946
980
|
});
|
|
947
|
-
function
|
|
948
|
-
u.value && (m.borderStyle = u.value),
|
|
981
|
+
function g(m) {
|
|
982
|
+
u.value && (m.borderStyle = u.value), f.value && (m.borderWidth = f.value), v.value && (m.borderColor = v.value);
|
|
949
983
|
}
|
|
950
|
-
return { borderStyle: u, borderWidth:
|
|
984
|
+
return { borderStyle: u, borderWidth: f, borderColor: v, applyBorder: g };
|
|
951
985
|
}
|
|
952
|
-
const
|
|
986
|
+
const tc = /* @__PURE__ */ Wt({
|
|
953
987
|
__name: "index",
|
|
954
988
|
props: {
|
|
955
989
|
node: {},
|
|
956
990
|
outer: { type: Boolean }
|
|
957
991
|
},
|
|
958
992
|
setup(n) {
|
|
959
|
-
const u = n,
|
|
993
|
+
const u = n, f = ar(), v = ni(), g = ii(), m = ai(), { applySize: _ } = si(f, v, u), { applyMargin: T } = Zs(u), { applyPadding: O } = Qs(u), { applyBorder: r } = ec(u), t = M(() => {
|
|
960
994
|
const e = {}, i = m.type;
|
|
961
|
-
return
|
|
995
|
+
return g === "page" ? i === "common" ? (_(e), T(e), O(e), r(e)) : console.assert(!1) : g === "comp" && i === "common" ? (_(e), T(e), O(e), r(e)) : console.assert(!1), e;
|
|
962
996
|
});
|
|
963
|
-
return (e, i) => (
|
|
964
|
-
style:
|
|
997
|
+
return (e, i) => (Jt(), Qi("div", {
|
|
998
|
+
style: ea(t.value)
|
|
965
999
|
}, [
|
|
966
|
-
|
|
1000
|
+
ta(e.$slots, "default")
|
|
967
1001
|
], 4));
|
|
968
1002
|
}
|
|
969
|
-
}),
|
|
1003
|
+
}), rc = [
|
|
1004
|
+
{ title: "x-runtime-lib.default", value: "" },
|
|
1005
|
+
{ title: "x-runtime-lib.solid", value: "solid" },
|
|
1006
|
+
{ title: "x-runtime-lib.dashed", value: "dashed" },
|
|
1007
|
+
{ title: "x-runtime-lib.dotted", value: "dotted" }
|
|
1008
|
+
], pe = [
|
|
1009
|
+
{
|
|
1010
|
+
name: "x-runtime-lib.default",
|
|
1011
|
+
ui: "word",
|
|
1012
|
+
validator: Ht,
|
|
1013
|
+
default: ""
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
name: "x-runtime-lib.pixel",
|
|
1017
|
+
ui: "pixelInput",
|
|
1018
|
+
validator: Kt,
|
|
1019
|
+
default: "0px",
|
|
1020
|
+
precision: 0,
|
|
1021
|
+
min: 0,
|
|
1022
|
+
max: 1 / 0,
|
|
1023
|
+
step: 1
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
name: "x-runtime-lib.percent",
|
|
1027
|
+
ui: "percentInput",
|
|
1028
|
+
validator: qt,
|
|
1029
|
+
default: "0%",
|
|
1030
|
+
precision: 4,
|
|
1031
|
+
min: 0,
|
|
1032
|
+
max: 1 / 0,
|
|
1033
|
+
step: 1
|
|
1034
|
+
}
|
|
1035
|
+
], at = {
|
|
1036
|
+
key: "border",
|
|
1037
|
+
name: "x-runtime-lib.border",
|
|
1038
|
+
children: [
|
|
1039
|
+
{
|
|
1040
|
+
key: "style",
|
|
1041
|
+
name: "x-runtime-lib.style",
|
|
1042
|
+
ui: "select",
|
|
1043
|
+
items: rc,
|
|
1044
|
+
default: ""
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
key: "width",
|
|
1048
|
+
name: "x-runtime-lib.width",
|
|
1049
|
+
ui: "numInput",
|
|
1050
|
+
precision: 0,
|
|
1051
|
+
min: 0,
|
|
1052
|
+
max: 1 / 0,
|
|
1053
|
+
step: 1,
|
|
1054
|
+
default: 1
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
key: "color",
|
|
1058
|
+
name: "x-runtime-lib.color",
|
|
1059
|
+
ui: "colorPicker",
|
|
1060
|
+
default: "#00000000"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
key: "roundCorner",
|
|
1064
|
+
name: "x-runtime-lib.roundCorner",
|
|
1065
|
+
children: [
|
|
1066
|
+
{
|
|
1067
|
+
key: "radius",
|
|
1068
|
+
name: "x-runtime-lib.radius",
|
|
1069
|
+
ui: "multiTypes",
|
|
1070
|
+
types: pe,
|
|
1071
|
+
default: ""
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
key: "tl",
|
|
1075
|
+
name: "x-runtime-lib.topLeft",
|
|
1076
|
+
ui: "switch",
|
|
1077
|
+
default: !0
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
key: "tr",
|
|
1081
|
+
name: "x-runtime-lib.topRight",
|
|
1082
|
+
ui: "switch",
|
|
1083
|
+
default: !0
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
key: "bl",
|
|
1087
|
+
name: "x-runtime-lib.bottomLeft",
|
|
1088
|
+
ui: "switch",
|
|
1089
|
+
default: !0
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
key: "br",
|
|
1093
|
+
name: "x-runtime-lib.bottomRight",
|
|
1094
|
+
ui: "switch",
|
|
1095
|
+
default: !0
|
|
1096
|
+
}
|
|
1097
|
+
]
|
|
1098
|
+
}
|
|
1099
|
+
]
|
|
1100
|
+
}, rt = [
|
|
970
1101
|
{
|
|
971
1102
|
name: "x-runtime-lib.default",
|
|
972
1103
|
ui: "word",
|
|
973
|
-
validator:
|
|
1104
|
+
validator: Ht,
|
|
974
1105
|
default: ""
|
|
975
1106
|
},
|
|
976
1107
|
{
|
|
@@ -982,7 +1113,7 @@ const ec = /* @__PURE__ */ Wt({
|
|
|
982
1113
|
{
|
|
983
1114
|
name: "x-runtime-lib.pixel",
|
|
984
1115
|
ui: "pixelInput",
|
|
985
|
-
validator:
|
|
1116
|
+
validator: Kt,
|
|
986
1117
|
default: "0px",
|
|
987
1118
|
precision: 0,
|
|
988
1119
|
min: 0,
|
|
@@ -992,14 +1123,14 @@ const ec = /* @__PURE__ */ Wt({
|
|
|
992
1123
|
{
|
|
993
1124
|
name: "x-runtime-lib.percent",
|
|
994
1125
|
ui: "percentInput",
|
|
995
|
-
validator:
|
|
1126
|
+
validator: qt,
|
|
996
1127
|
default: "0%",
|
|
997
1128
|
precision: 4,
|
|
998
1129
|
min: 0,
|
|
999
1130
|
max: 1 / 0,
|
|
1000
1131
|
step: 1
|
|
1001
1132
|
}
|
|
1002
|
-
],
|
|
1133
|
+
], ot = {
|
|
1003
1134
|
key: "margin",
|
|
1004
1135
|
name: "x-runtime-lib.margin",
|
|
1005
1136
|
children: [
|
|
@@ -1036,13 +1167,13 @@ const ec = /* @__PURE__ */ Wt({
|
|
|
1036
1167
|
{
|
|
1037
1168
|
name: "x-runtime-lib.default",
|
|
1038
1169
|
ui: "word",
|
|
1039
|
-
validator:
|
|
1170
|
+
validator: Ht,
|
|
1040
1171
|
default: ""
|
|
1041
1172
|
},
|
|
1042
1173
|
{
|
|
1043
1174
|
name: "x-runtime-lib.pixel",
|
|
1044
1175
|
ui: "pixelInput",
|
|
1045
|
-
validator:
|
|
1176
|
+
validator: Kt,
|
|
1046
1177
|
default: "0px",
|
|
1047
1178
|
precision: 0,
|
|
1048
1179
|
min: 0,
|
|
@@ -1052,14 +1183,14 @@ const ec = /* @__PURE__ */ Wt({
|
|
|
1052
1183
|
{
|
|
1053
1184
|
name: "x-runtime-lib.percent",
|
|
1054
1185
|
ui: "percentInput",
|
|
1055
|
-
validator:
|
|
1186
|
+
validator: qt,
|
|
1056
1187
|
default: "0%",
|
|
1057
1188
|
precision: 4,
|
|
1058
1189
|
min: 0,
|
|
1059
1190
|
max: 1 / 0,
|
|
1060
1191
|
step: 1
|
|
1061
1192
|
}
|
|
1062
|
-
],
|
|
1193
|
+
], ut = {
|
|
1063
1194
|
key: "padding",
|
|
1064
1195
|
name: "x-runtime-lib.padding",
|
|
1065
1196
|
children: [
|
|
@@ -1092,34 +1223,7 @@ const ec = /* @__PURE__ */ Wt({
|
|
|
1092
1223
|
default: ""
|
|
1093
1224
|
}
|
|
1094
1225
|
]
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
name: "x-runtime-lib.default",
|
|
1098
|
-
ui: "word",
|
|
1099
|
-
validator: Jt,
|
|
1100
|
-
default: ""
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
name: "x-runtime-lib.pixel",
|
|
1104
|
-
ui: "pixelInput",
|
|
1105
|
-
validator: Ht,
|
|
1106
|
-
default: "0px",
|
|
1107
|
-
precision: 0,
|
|
1108
|
-
min: 0,
|
|
1109
|
-
max: 1 / 0,
|
|
1110
|
-
step: 1
|
|
1111
|
-
},
|
|
1112
|
-
{
|
|
1113
|
-
name: "x-runtime-lib.percent",
|
|
1114
|
-
ui: "percentInput",
|
|
1115
|
-
validator: Kt,
|
|
1116
|
-
default: "0%",
|
|
1117
|
-
precision: 4,
|
|
1118
|
-
min: 0,
|
|
1119
|
-
max: 1 / 0,
|
|
1120
|
-
step: 1
|
|
1121
|
-
}
|
|
1122
|
-
], ut = {
|
|
1226
|
+
}, st = {
|
|
1123
1227
|
key: "size",
|
|
1124
1228
|
name: "x-runtime-lib.size",
|
|
1125
1229
|
children: [
|
|
@@ -1127,53 +1231,53 @@ const ec = /* @__PURE__ */ Wt({
|
|
|
1127
1231
|
key: "width",
|
|
1128
1232
|
name: "x-runtime-lib.width",
|
|
1129
1233
|
ui: "multiTypes",
|
|
1130
|
-
types:
|
|
1234
|
+
types: pe,
|
|
1131
1235
|
default: ""
|
|
1132
1236
|
},
|
|
1133
1237
|
{
|
|
1134
1238
|
key: "minWidth",
|
|
1135
1239
|
name: "x-runtime-lib.minWidth",
|
|
1136
1240
|
ui: "multiTypes",
|
|
1137
|
-
types:
|
|
1241
|
+
types: pe,
|
|
1138
1242
|
default: ""
|
|
1139
1243
|
},
|
|
1140
1244
|
{
|
|
1141
1245
|
key: "maxWidth",
|
|
1142
1246
|
name: "x-runtime-lib.maxWidth",
|
|
1143
1247
|
ui: "multiTypes",
|
|
1144
|
-
types:
|
|
1248
|
+
types: pe,
|
|
1145
1249
|
default: ""
|
|
1146
1250
|
},
|
|
1147
1251
|
{
|
|
1148
1252
|
key: "height",
|
|
1149
1253
|
name: "x-runtime-lib.height",
|
|
1150
1254
|
ui: "multiTypes",
|
|
1151
|
-
types:
|
|
1255
|
+
types: pe,
|
|
1152
1256
|
default: ""
|
|
1153
1257
|
},
|
|
1154
1258
|
{
|
|
1155
1259
|
key: "minHeight",
|
|
1156
1260
|
name: "x-runtime-lib.minHeight",
|
|
1157
1261
|
ui: "multiTypes",
|
|
1158
|
-
types:
|
|
1262
|
+
types: pe,
|
|
1159
1263
|
default: ""
|
|
1160
1264
|
},
|
|
1161
1265
|
{
|
|
1162
1266
|
key: "maxHeight",
|
|
1163
1267
|
name: "x-runtime-lib.maxHeight",
|
|
1164
1268
|
ui: "multiTypes",
|
|
1165
|
-
types:
|
|
1269
|
+
types: pe,
|
|
1166
1270
|
default: ""
|
|
1167
1271
|
}
|
|
1168
1272
|
]
|
|
1169
|
-
},
|
|
1273
|
+
}, En = {
|
|
1170
1274
|
key: "settings",
|
|
1171
1275
|
name: "x-runtime-lib.settings",
|
|
1172
1276
|
children: []
|
|
1173
|
-
},
|
|
1174
|
-
key:
|
|
1277
|
+
}, nc = {
|
|
1278
|
+
key: zt,
|
|
1175
1279
|
name: "x-runtime-lib.container",
|
|
1176
|
-
comp:
|
|
1280
|
+
comp: tc,
|
|
1177
1281
|
leaf: !1,
|
|
1178
1282
|
events: [
|
|
1179
1283
|
{
|
|
@@ -1184,10 +1288,10 @@ const ec = /* @__PURE__ */ Wt({
|
|
|
1184
1288
|
],
|
|
1185
1289
|
methods: [],
|
|
1186
1290
|
props: {
|
|
1187
|
-
pageCommon: [Ne,
|
|
1188
|
-
compCommon: [Ne,
|
|
1291
|
+
pageCommon: [Ne, st, at, ot, ut, En],
|
|
1292
|
+
compCommon: [Ne, st, at, ot, ut, En]
|
|
1189
1293
|
}
|
|
1190
|
-
},
|
|
1294
|
+
}, gn = {
|
|
1191
1295
|
key: "globalSettings",
|
|
1192
1296
|
name: "x-runtime-lib.globalSettings",
|
|
1193
1297
|
children: [
|
|
@@ -1198,8 +1302,8 @@ const ec = /* @__PURE__ */ Wt({
|
|
|
1198
1302
|
default: "#00000000"
|
|
1199
1303
|
}
|
|
1200
1304
|
]
|
|
1201
|
-
},
|
|
1202
|
-
key:
|
|
1305
|
+
}, ci = {
|
|
1306
|
+
key: oi,
|
|
1203
1307
|
name: "x-runtime-lib.globality",
|
|
1204
1308
|
comp: "",
|
|
1205
1309
|
leaf: !1,
|
|
@@ -1236,53 +1340,53 @@ const ec = /* @__PURE__ */ Wt({
|
|
|
1236
1340
|
],
|
|
1237
1341
|
methods: [],
|
|
1238
1342
|
props: {
|
|
1239
|
-
pageCommon: [
|
|
1240
|
-
compCommon: [
|
|
1343
|
+
pageCommon: [gn],
|
|
1344
|
+
compCommon: [gn]
|
|
1241
1345
|
},
|
|
1242
1346
|
internal: !0
|
|
1243
1347
|
};
|
|
1244
|
-
var
|
|
1245
|
-
function
|
|
1348
|
+
var ic = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1349
|
+
function ac(n) {
|
|
1246
1350
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1247
1351
|
}
|
|
1248
|
-
function
|
|
1352
|
+
function oc(n) {
|
|
1249
1353
|
if (n.__esModule) return n;
|
|
1250
1354
|
var u = n.default;
|
|
1251
1355
|
if (typeof u == "function") {
|
|
1252
|
-
var
|
|
1356
|
+
var f = function v() {
|
|
1253
1357
|
return this instanceof v ? Reflect.construct(u, arguments, this.constructor) : u.apply(this, arguments);
|
|
1254
1358
|
};
|
|
1255
|
-
|
|
1256
|
-
} else
|
|
1257
|
-
return Object.defineProperty(
|
|
1258
|
-
var
|
|
1259
|
-
Object.defineProperty(
|
|
1359
|
+
f.prototype = u.prototype;
|
|
1360
|
+
} else f = {};
|
|
1361
|
+
return Object.defineProperty(f, "__esModule", { value: !0 }), Object.keys(n).forEach(function(v) {
|
|
1362
|
+
var g = Object.getOwnPropertyDescriptor(n, v);
|
|
1363
|
+
Object.defineProperty(f, v, g.get ? g : {
|
|
1260
1364
|
enumerable: !0,
|
|
1261
1365
|
get: function() {
|
|
1262
1366
|
return n[v];
|
|
1263
1367
|
}
|
|
1264
1368
|
});
|
|
1265
|
-
}),
|
|
1369
|
+
}), f;
|
|
1266
1370
|
}
|
|
1267
|
-
var
|
|
1268
|
-
const
|
|
1371
|
+
var li = { exports: {} };
|
|
1372
|
+
const uc = {}, sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1269
1373
|
__proto__: null,
|
|
1270
|
-
default:
|
|
1271
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1374
|
+
default: uc
|
|
1375
|
+
}, Symbol.toStringTag, { value: "Module" })), cc = /* @__PURE__ */ oc(sc);
|
|
1272
1376
|
(function(n, u) {
|
|
1273
|
-
(function(v,
|
|
1274
|
-
n.exports =
|
|
1275
|
-
})(
|
|
1377
|
+
(function(v, g) {
|
|
1378
|
+
n.exports = g();
|
|
1379
|
+
})(ic, () => (
|
|
1276
1380
|
/******/
|
|
1277
1381
|
(() => {
|
|
1278
|
-
var
|
|
1382
|
+
var f = {
|
|
1279
1383
|
/***/
|
|
1280
1384
|
"./original-repo/interpreter.js": (
|
|
1281
1385
|
/*!**************************************!*\
|
|
1282
1386
|
!*** ./original-repo/interpreter.js ***!
|
|
1283
1387
|
\**************************************/
|
|
1284
1388
|
/***/
|
|
1285
|
-
function(
|
|
1389
|
+
function(_, T, O) {
|
|
1286
1390
|
/**
|
|
1287
1391
|
* @license
|
|
1288
1392
|
* Copyright 2013 Neil Fraser
|
|
@@ -1572,8 +1676,8 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1572
1676
|
var a = "";
|
|
1573
1677
|
var p = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1574
1678
|
if (p) {
|
|
1575
|
-
for (var d = p.split(/\s*,\s*/),
|
|
1576
|
-
var N = d[
|
|
1679
|
+
for (var d = p.split(/\s*,\s*/), b = 0; b < d.length; b++) {
|
|
1680
|
+
var N = d[b];
|
|
1577
1681
|
o.test(N) || e.throwException(
|
|
1578
1682
|
e.SYNTAX_ERROR,
|
|
1579
1683
|
"Invalid function argument: " + N
|
|
@@ -1819,8 +1923,8 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1819
1923
|
e.TYPE_ERROR,
|
|
1820
1924
|
"Object.getOwnPropertyDescriptor called on non-object: " + c
|
|
1821
1925
|
), a = String(a), a in c.properties) {
|
|
1822
|
-
var p = Object.getOwnPropertyDescriptor(c.properties, a), d = c.getter[a],
|
|
1823
|
-
return d ||
|
|
1926
|
+
var p = Object.getOwnPropertyDescriptor(c.properties, a), d = c.getter[a], b = c.setter[a], N = e.createObjectProto(e.OBJECT_PROTO);
|
|
1927
|
+
return d || b ? (e.setProperty(N, "get", d), e.setProperty(N, "set", b)) : (e.setProperty(
|
|
1824
1928
|
N,
|
|
1825
1929
|
"value",
|
|
1826
1930
|
/** @type {!Interpreter.Value} */
|
|
@@ -2409,18 +2513,18 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2409
2513
|
/** @type {?} */
|
|
2410
2514
|
d
|
|
2411
2515
|
);
|
|
2412
|
-
} catch (
|
|
2516
|
+
} catch (b) {
|
|
2413
2517
|
e.throwException(
|
|
2414
2518
|
e.ERROR,
|
|
2415
|
-
"localeCompare: " +
|
|
2519
|
+
"localeCompare: " + b.message
|
|
2416
2520
|
);
|
|
2417
2521
|
}
|
|
2418
2522
|
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, p, d) {
|
|
2419
|
-
var
|
|
2523
|
+
var b = String(this);
|
|
2420
2524
|
if (p = p ? Number(p) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, d), e.REGEXP_MODE === 2)) {
|
|
2421
2525
|
if (r.vm) {
|
|
2422
2526
|
var N = {
|
|
2423
|
-
string:
|
|
2527
|
+
string: b,
|
|
2424
2528
|
separator: a,
|
|
2425
2529
|
limit: p
|
|
2426
2530
|
}, R = "string.split(separator, limit)", D = e.vmCall(R, N, a, d);
|
|
@@ -2431,22 +2535,22 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2431
2535
|
S,
|
|
2432
2536
|
d
|
|
2433
2537
|
);
|
|
2434
|
-
S.onmessage = function(
|
|
2435
|
-
clearTimeout(I), d(e.nativeToPseudo(
|
|
2436
|
-
}, S.postMessage(["split",
|
|
2538
|
+
S.onmessage = function(z) {
|
|
2539
|
+
clearTimeout(I), d(e.nativeToPseudo(z.data));
|
|
2540
|
+
}, S.postMessage(["split", b, a, p]);
|
|
2437
2541
|
}
|
|
2438
2542
|
return;
|
|
2439
2543
|
}
|
|
2440
|
-
var D =
|
|
2544
|
+
var D = b.split(a, p);
|
|
2441
2545
|
d(e.nativeToPseudo(D));
|
|
2442
2546
|
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, p) {
|
|
2443
2547
|
var d = String(this);
|
|
2444
2548
|
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, p), e.REGEXP_MODE === 2) {
|
|
2445
2549
|
if (r.vm) {
|
|
2446
|
-
var
|
|
2550
|
+
var b = {
|
|
2447
2551
|
string: d,
|
|
2448
2552
|
regexp: a
|
|
2449
|
-
}, N = "string.match(regexp)", I = e.vmCall(N,
|
|
2553
|
+
}, N = "string.match(regexp)", I = e.vmCall(N, b, a, p);
|
|
2450
2554
|
I !== r.REGEXP_TIMEOUT && p(I && e.matchToPseudo_(I));
|
|
2451
2555
|
} else {
|
|
2452
2556
|
var R = e.createWorker(), S = e.regExpTimeout(a, R, p);
|
|
@@ -2462,10 +2566,10 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2462
2566
|
var d = String(this);
|
|
2463
2567
|
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, p), e.REGEXP_MODE === 2) {
|
|
2464
2568
|
if (r.vm) {
|
|
2465
|
-
var
|
|
2569
|
+
var b = {
|
|
2466
2570
|
string: d,
|
|
2467
2571
|
regexp: a
|
|
2468
|
-
}, N = "string.search(regexp)", R = e.vmCall(N,
|
|
2572
|
+
}, N = "string.search(regexp)", R = e.vmCall(N, b, a, p);
|
|
2469
2573
|
R !== r.REGEXP_TIMEOUT && p(R);
|
|
2470
2574
|
} else {
|
|
2471
2575
|
var S = e.createWorker(), I = e.regExpTimeout(a, S, p);
|
|
@@ -2477,11 +2581,11 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2477
2581
|
}
|
|
2478
2582
|
p(d.search(a));
|
|
2479
2583
|
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, p, d) {
|
|
2480
|
-
var
|
|
2584
|
+
var b = String(this);
|
|
2481
2585
|
if (p = String(p), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, d), e.REGEXP_MODE === 2)) {
|
|
2482
2586
|
if (r.vm) {
|
|
2483
2587
|
var N = {
|
|
2484
|
-
string:
|
|
2588
|
+
string: b,
|
|
2485
2589
|
substr: a,
|
|
2486
2590
|
newSubstr: p
|
|
2487
2591
|
}, R = "string.replace(substr, newSubstr)", S = e.vmCall(R, N, a, d);
|
|
@@ -2492,13 +2596,13 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2492
2596
|
I,
|
|
2493
2597
|
d
|
|
2494
2598
|
);
|
|
2495
|
-
I.onmessage = function(
|
|
2496
|
-
clearTimeout(D), d(
|
|
2497
|
-
}, I.postMessage(["replace",
|
|
2599
|
+
I.onmessage = function(z) {
|
|
2600
|
+
clearTimeout(D), d(z.data);
|
|
2601
|
+
}, I.postMessage(["replace", b, a, p]);
|
|
2498
2602
|
}
|
|
2499
2603
|
return;
|
|
2500
2604
|
}
|
|
2501
|
-
d(
|
|
2605
|
+
d(b.replace(a, p));
|
|
2502
2606
|
}, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
|
|
2503
2607
|
/* POLYFILL START */
|
|
2504
2608
|
"(function() {",
|
|
@@ -2694,8 +2798,8 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2694
2798
|
e.TYPE_ERROR,
|
|
2695
2799
|
c + " not called on a Date"
|
|
2696
2800
|
);
|
|
2697
|
-
for (var d = [],
|
|
2698
|
-
d[
|
|
2801
|
+
for (var d = [], b = 0; b < arguments.length; b++)
|
|
2802
|
+
d[b] = e.pseudoToNative(arguments[b]);
|
|
2699
2803
|
return p[c].apply(p, d);
|
|
2700
2804
|
};
|
|
2701
2805
|
}(o[s]), this.setNativeFunctionPrototype(this.DATE, o[s], i);
|
|
@@ -2773,10 +2877,10 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2773
2877
|
}, d = "regexp.exec(string)", S = e.vmCall(d, p, a, c);
|
|
2774
2878
|
S !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(S)));
|
|
2775
2879
|
} else {
|
|
2776
|
-
var
|
|
2777
|
-
|
|
2880
|
+
var b = e.createWorker(), N = e.regExpTimeout(a, b, c), R = this;
|
|
2881
|
+
b.onmessage = function(I) {
|
|
2778
2882
|
clearTimeout(N), e.setProperty(R, "lastIndex", I.data[1]), c(e.matchToPseudo_(I.data[0]));
|
|
2779
|
-
},
|
|
2883
|
+
}, b.postMessage(["exec", a, a.lastIndex, s]);
|
|
2780
2884
|
}
|
|
2781
2885
|
return;
|
|
2782
2886
|
}
|
|
@@ -2921,11 +3025,11 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2921
3025
|
})) : a = null, typeof p != "string" && typeof p != "number" && (p = void 0);
|
|
2922
3026
|
var d = i.pseudoToNative(c);
|
|
2923
3027
|
try {
|
|
2924
|
-
var
|
|
3028
|
+
var b = JSON.stringify(d, a, p);
|
|
2925
3029
|
} catch (N) {
|
|
2926
3030
|
i.throwException(i.TYPE_ERROR, N.message);
|
|
2927
3031
|
}
|
|
2928
|
-
return
|
|
3032
|
+
return b;
|
|
2929
3033
|
}, this.setProperty(
|
|
2930
3034
|
o,
|
|
2931
3035
|
"stringify",
|
|
@@ -2985,17 +3089,17 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2985
3089
|
}
|
|
2986
3090
|
c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
|
|
2987
3091
|
}
|
|
2988
|
-
for (var p = String(this.getProperty(t, "name")), d = String(this.getProperty(t, "message")),
|
|
3092
|
+
for (var p = String(this.getProperty(t, "name")), d = String(this.getProperty(t, "message")), b = p + ": " + d + `
|
|
2989
3093
|
`, o = 0; o < i.length; o++) {
|
|
2990
3094
|
var N = i[o].datumLoc, R = i[o].datumName, S = N.source + ":" + N.start.line + ":" + N.start.column;
|
|
2991
|
-
R ?
|
|
2992
|
-
` :
|
|
3095
|
+
R ? b += " at " + R + " (" + S + `)
|
|
3096
|
+
` : b += " at " + S + `
|
|
2993
3097
|
`;
|
|
2994
3098
|
}
|
|
2995
3099
|
this.setProperty(
|
|
2996
3100
|
t,
|
|
2997
3101
|
"stack",
|
|
2998
|
-
|
|
3102
|
+
b.trim(),
|
|
2999
3103
|
r.NONENUMERABLE_DESCRIPTOR
|
|
3000
3104
|
);
|
|
3001
3105
|
}, r.prototype.createWorker = function() {
|
|
@@ -3135,8 +3239,8 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3135
3239
|
return a.pseudoToNative(D);
|
|
3136
3240
|
}), I = t.apply(a, S);
|
|
3137
3241
|
return a.nativeToPseudo(I);
|
|
3138
|
-
}, d = Object.getOwnPropertyDescriptor(t, "prototype"),
|
|
3139
|
-
return i.pseudo.push(
|
|
3242
|
+
}, d = Object.getOwnPropertyDescriptor(t, "prototype"), b = this.createNativeFunction(p, !!d);
|
|
3243
|
+
return i.pseudo.push(b), b;
|
|
3140
3244
|
}
|
|
3141
3245
|
var N;
|
|
3142
3246
|
Array.isArray(t) ? N = this.createArray() : N = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(N);
|
|
@@ -3278,14 +3382,14 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3278
3382
|
} else {
|
|
3279
3383
|
if (i === r.VALUE_IN_DESCRIPTOR)
|
|
3280
3384
|
throw ReferenceError("Value not specified");
|
|
3281
|
-
for (var
|
|
3282
|
-
if (
|
|
3283
|
-
|
|
3385
|
+
for (var b = t; !(e in b.properties); )
|
|
3386
|
+
if (b = this.getPrototype(b), !b) {
|
|
3387
|
+
b = t;
|
|
3284
3388
|
break;
|
|
3285
3389
|
}
|
|
3286
|
-
if (
|
|
3287
|
-
return this.setterStep_ = !0,
|
|
3288
|
-
if (
|
|
3390
|
+
if (b.setter && b.setter[e])
|
|
3391
|
+
return this.setterStep_ = !0, b.setter[e];
|
|
3392
|
+
if (b.getter && b.getter[e])
|
|
3289
3393
|
s && this.throwException(this.TYPE_ERROR, "Cannot set property '" + e + "' of object '" + t + "' which only has a getter");
|
|
3290
3394
|
else
|
|
3291
3395
|
try {
|
|
@@ -3478,8 +3582,8 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3478
3582
|
SyntaxError,
|
|
3479
3583
|
TypeError,
|
|
3480
3584
|
URIError
|
|
3481
|
-
}, p = String(this.getProperty(e, "name")), d = this.getProperty(e, "message").valueOf(),
|
|
3482
|
-
c =
|
|
3585
|
+
}, p = String(this.getProperty(e, "name")), d = this.getProperty(e, "message").valueOf(), b = a[p] || Error;
|
|
3586
|
+
c = b(d), c.stack = String(this.getProperty(e, "stack"));
|
|
3483
3587
|
} else
|
|
3484
3588
|
c = String(e);
|
|
3485
3589
|
throw this.value = c, c;
|
|
@@ -3515,16 +3619,16 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3515
3619
|
}
|
|
3516
3620
|
return "???";
|
|
3517
3621
|
}, r.prototype.createTask_ = function(t, e) {
|
|
3518
|
-
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), s = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), p, d,
|
|
3622
|
+
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), s = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), p, d, b;
|
|
3519
3623
|
if (s instanceof r.Object && s.class === "Function")
|
|
3520
3624
|
d = s, a.type = "CallExpression", p = i.scope;
|
|
3521
3625
|
else {
|
|
3522
3626
|
try {
|
|
3523
|
-
|
|
3627
|
+
b = this.parse_(String(s), "taskCode" + this.taskCodeNumber_++);
|
|
3524
3628
|
} catch (D) {
|
|
3525
3629
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + D.message);
|
|
3526
3630
|
}
|
|
3527
|
-
a.type = "EvalProgram_", a.body =
|
|
3631
|
+
a.type = "EvalProgram_", a.body = b.body;
|
|
3528
3632
|
var N = i.node.arguments[0], R = N ? N.start : void 0, S = N ? N.end : void 0;
|
|
3529
3633
|
r.stripLocations_(a, R, S), p = this.globalScope, o.length = 0;
|
|
3530
3634
|
}
|
|
@@ -3865,11 +3969,11 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3865
3969
|
);
|
|
3866
3970
|
var a = s.node;
|
|
3867
3971
|
if (a) {
|
|
3868
|
-
for (var p = this.createScope(a.body, s.parentScope), d = this.createArray(),
|
|
3869
|
-
this.setProperty(d,
|
|
3972
|
+
for (var p = this.createScope(a.body, s.parentScope), d = this.createArray(), b = 0; b < e.arguments_.length; b++)
|
|
3973
|
+
this.setProperty(d, b, e.arguments_[b]);
|
|
3870
3974
|
this.setProperty(p.object, "arguments", d);
|
|
3871
|
-
for (var
|
|
3872
|
-
var N = a.params[
|
|
3975
|
+
for (var b = 0; b < a.params.length; b++) {
|
|
3976
|
+
var N = a.params[b].name, R = e.arguments_.length > b ? e.arguments_[b] : void 0;
|
|
3873
3977
|
this.setProperty(p.object, N, R);
|
|
3874
3978
|
}
|
|
3875
3979
|
return p.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
|
|
@@ -3899,12 +4003,12 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3899
4003
|
} else if (s.nativeFunc)
|
|
3900
4004
|
e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), e.value = s.nativeFunc.apply(e.funcThis_, e.arguments_);
|
|
3901
4005
|
else if (s.asyncFunc) {
|
|
3902
|
-
var
|
|
3903
|
-
e.value = se,
|
|
3904
|
-
}, J = s.asyncFunc.length - 1,
|
|
4006
|
+
var z = this, we = function(se) {
|
|
4007
|
+
e.value = se, z.paused_ = !1;
|
|
4008
|
+
}, J = s.asyncFunc.length - 1, ye = e.arguments_.concat(
|
|
3905
4009
|
new Array(J)
|
|
3906
4010
|
).slice(0, J);
|
|
3907
|
-
|
|
4011
|
+
ye.push(we), this.paused_ = !0, e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), s.asyncFunc.apply(e.funcThis_, ye);
|
|
3908
4012
|
return;
|
|
3909
4013
|
} else
|
|
3910
4014
|
this.throwException(
|
|
@@ -4294,7 +4398,7 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4294
4398
|
t.pop();
|
|
4295
4399
|
var o = this.createSpecialScope(e.scope, e.value);
|
|
4296
4400
|
return new r.State(i.body, o);
|
|
4297
|
-
}, r.prototype.stepWhileStatement = r.prototype.stepDoWhileStatement, r.nativeGlobal.Interpreter = r, r.prototype.step = r.prototype.step, r.prototype.run = r.prototype.run, r.prototype.appendCode = r.prototype.appendCode, r.prototype.createObject = r.prototype.createObject, r.prototype.createObjectProto = r.prototype.createObjectProto, r.prototype.createAsyncFunction = r.prototype.createAsyncFunction, r.prototype.createNativeFunction = r.prototype.createNativeFunction, r.prototype.getProperty = r.prototype.getProperty, r.prototype.setProperty = r.prototype.setProperty, r.prototype.getStatus = r.prototype.getStatus, r.prototype.nativeToPseudo = r.prototype.nativeToPseudo, r.prototype.pseudoToNative = r.prototype.pseudoToNative, r.prototype.getGlobalScope = r.prototype.getGlobalScope, r.prototype.setGlobalScope = r.prototype.setGlobalScope, r.prototype.getStateStack = r.prototype.getStateStack, r.prototype.setStateStack = r.prototype.setStateStack, r.VALUE_IN_DESCRIPTOR = r.VALUE_IN_DESCRIPTOR, r.Status = r.Status,
|
|
4401
|
+
}, r.prototype.stepWhileStatement = r.prototype.stepDoWhileStatement, r.nativeGlobal.Interpreter = r, r.prototype.step = r.prototype.step, r.prototype.run = r.prototype.run, r.prototype.appendCode = r.prototype.appendCode, r.prototype.createObject = r.prototype.createObject, r.prototype.createObjectProto = r.prototype.createObjectProto, r.prototype.createAsyncFunction = r.prototype.createAsyncFunction, r.prototype.createNativeFunction = r.prototype.createNativeFunction, r.prototype.getProperty = r.prototype.getProperty, r.prototype.setProperty = r.prototype.setProperty, r.prototype.getStatus = r.prototype.getStatus, r.prototype.nativeToPseudo = r.prototype.nativeToPseudo, r.prototype.pseudoToNative = r.prototype.pseudoToNative, r.prototype.getGlobalScope = r.prototype.getGlobalScope, r.prototype.setGlobalScope = r.prototype.setGlobalScope, r.prototype.getStateStack = r.prototype.getStateStack, r.prototype.setStateStack = r.prototype.setStateStack, r.VALUE_IN_DESCRIPTOR = r.VALUE_IN_DESCRIPTOR, r.Status = r.Status, _.exports = {
|
|
4298
4402
|
Interpreter: r
|
|
4299
4403
|
};
|
|
4300
4404
|
}
|
|
@@ -4305,14 +4409,14 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4305
4409
|
!*** ./original-repo/acorn.js ***!
|
|
4306
4410
|
\********************************/
|
|
4307
4411
|
/***/
|
|
4308
|
-
function(
|
|
4412
|
+
function(_, T) {
|
|
4309
4413
|
(function(O, r) {
|
|
4310
4414
|
return r(T);
|
|
4311
4415
|
})(typeof globalThis > "u" ? this || window : globalThis, function(O) {
|
|
4312
4416
|
O.version = "0.5.0";
|
|
4313
4417
|
var r, t = "", e, i;
|
|
4314
|
-
O.parse = function(
|
|
4315
|
-
return t = String(
|
|
4418
|
+
O.parse = function(l, h) {
|
|
4419
|
+
return t = String(l), e = t.length, s(h), xi(), Vi(r.program);
|
|
4316
4420
|
};
|
|
4317
4421
|
var o = {
|
|
4318
4422
|
// JS-Interpreter change:
|
|
@@ -4372,187 +4476,187 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4372
4476
|
// `locations` is on or off.
|
|
4373
4477
|
directSourceFile: null
|
|
4374
4478
|
};
|
|
4375
|
-
function s(
|
|
4376
|
-
r =
|
|
4479
|
+
function s(l) {
|
|
4480
|
+
r = l || {};
|
|
4377
4481
|
for (var h in o)
|
|
4378
4482
|
Object.prototype.hasOwnProperty.call(r, h) || (r[h] = o[h]);
|
|
4379
4483
|
i = r.sourceFile;
|
|
4380
4484
|
}
|
|
4381
|
-
var c = function(
|
|
4382
|
-
for (var y = 1,
|
|
4383
|
-
Ke.lastIndex =
|
|
4384
|
-
var x = Ke.exec(
|
|
4485
|
+
var c = function(l, h) {
|
|
4486
|
+
for (var y = 1, E = 0; ; ) {
|
|
4487
|
+
Ke.lastIndex = E;
|
|
4488
|
+
var x = Ke.exec(l);
|
|
4385
4489
|
if (x && x.index < h)
|
|
4386
|
-
++y,
|
|
4490
|
+
++y, E = x.index + x[0].length;
|
|
4387
4491
|
else
|
|
4388
4492
|
break;
|
|
4389
4493
|
}
|
|
4390
|
-
return { line: y, column: h -
|
|
4391
|
-
}, a = 0, p = 0, d = 0,
|
|
4392
|
-
function A(
|
|
4393
|
-
var y = c(t,
|
|
4494
|
+
return { line: y, column: h - E };
|
|
4495
|
+
}, a = 0, p = 0, d = 0, b, N, R, S, I, D, z, we = 0, J = 0, ye, se, B, W;
|
|
4496
|
+
function A(l, h) {
|
|
4497
|
+
var y = c(t, l);
|
|
4394
4498
|
h += " (" + y.line + ":" + y.column + ")";
|
|
4395
|
-
var
|
|
4396
|
-
throw
|
|
4499
|
+
var E = new SyntaxError(h);
|
|
4500
|
+
throw E.pos = l, E.loc = y, E.raisedAt = a, E;
|
|
4397
4501
|
}
|
|
4398
|
-
var
|
|
4399
|
-
break:
|
|
4400
|
-
case:
|
|
4401
|
-
catch:
|
|
4402
|
-
continue:
|
|
4403
|
-
debugger:
|
|
4404
|
-
default:
|
|
4502
|
+
var hi = [], Xe = { type: "num" }, or = { type: "regexp" }, dt = { type: "string" }, _e = { type: "name" }, vt = { type: "eof" }, yt = { keyword: "break" }, _t = { keyword: "case", beforeExpr: !0 }, ur = { keyword: "catch" }, sr = { keyword: "continue" }, cr = { keyword: "debugger" }, lr = { keyword: "default" }, fr = { keyword: "do", isLoop: !0 }, pr = { keyword: "else", beforeExpr: !0 }, hr = { keyword: "finally" }, dr = { keyword: "for", isLoop: !0 }, Et = { keyword: "function" }, vr = { keyword: "if" }, yr = { keyword: "return", beforeExpr: !0 }, gt = { keyword: "switch" }, _r = { keyword: "throw", beforeExpr: !0 }, Er = { keyword: "try" }, bt = { keyword: "var" }, mt = { keyword: "while", isLoop: !0 }, gr = { keyword: "with" }, br = { keyword: "new", beforeExpr: !0 }, mr = { keyword: "this" }, Rr = { keyword: "null", atomValue: null }, Or = { keyword: "true", atomValue: !0 }, Nr = { keyword: "false", atomValue: !1 }, ze = { keyword: "in", binop: 7, beforeExpr: !0 }, di = {
|
|
4503
|
+
break: yt,
|
|
4504
|
+
case: _t,
|
|
4505
|
+
catch: ur,
|
|
4506
|
+
continue: sr,
|
|
4507
|
+
debugger: cr,
|
|
4508
|
+
default: lr,
|
|
4405
4509
|
do: fr,
|
|
4406
|
-
else:
|
|
4407
|
-
finally:
|
|
4408
|
-
for:
|
|
4409
|
-
function:
|
|
4410
|
-
if:
|
|
4411
|
-
return:
|
|
4412
|
-
switch:
|
|
4413
|
-
throw:
|
|
4414
|
-
try:
|
|
4415
|
-
var:
|
|
4416
|
-
while:
|
|
4417
|
-
with:
|
|
4418
|
-
null:
|
|
4419
|
-
true:
|
|
4420
|
-
false:
|
|
4421
|
-
new:
|
|
4422
|
-
in:
|
|
4510
|
+
else: pr,
|
|
4511
|
+
finally: hr,
|
|
4512
|
+
for: dr,
|
|
4513
|
+
function: Et,
|
|
4514
|
+
if: vr,
|
|
4515
|
+
return: yr,
|
|
4516
|
+
switch: gt,
|
|
4517
|
+
throw: _r,
|
|
4518
|
+
try: Er,
|
|
4519
|
+
var: bt,
|
|
4520
|
+
while: mt,
|
|
4521
|
+
with: gr,
|
|
4522
|
+
null: Rr,
|
|
4523
|
+
true: Or,
|
|
4524
|
+
false: Nr,
|
|
4525
|
+
new: br,
|
|
4526
|
+
in: ze,
|
|
4423
4527
|
instanceof: { keyword: "instanceof", binop: 7, beforeExpr: !0 },
|
|
4424
|
-
this:
|
|
4528
|
+
this: mr,
|
|
4425
4529
|
typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
|
|
4426
4530
|
void: { keyword: "void", prefix: !0, beforeExpr: !0 },
|
|
4427
4531
|
delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
|
|
4428
|
-
},
|
|
4429
|
-
function
|
|
4430
|
-
for (var h =
|
|
4431
|
-
y[h[
|
|
4532
|
+
}, Rt = { type: "[", beforeExpr: !0 }, Ot = { 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 }, Tr = { type: "." }, Sr = { type: "?", beforeExpr: !0 }, Pr = { binop: 10, beforeExpr: !0 }, wr = { isAssign: !0, beforeExpr: !0 }, ce = { isAssign: !0, beforeExpr: !0 }, vi = { postfix: !0, prefix: !0, isUpdate: !0 }, xr = { prefix: !0, beforeExpr: !0 }, Cr = { binop: 1, beforeExpr: !0 }, Ar = { binop: 2, beforeExpr: !0 }, yi = { binop: 3, beforeExpr: !0 }, _i = { binop: 4, beforeExpr: !0 }, Ei = { binop: 5, beforeExpr: !0 }, gi = { binop: 6, beforeExpr: !0 }, bi = { binop: 7, beforeExpr: !0 }, mi = { binop: 8, beforeExpr: !0 }, Ri = { binop: 9, prefix: !0, beforeExpr: !0 }, Oi = { binop: 10, beforeExpr: !0 };
|
|
4533
|
+
function We(l) {
|
|
4534
|
+
for (var h = l.split(" "), y = /* @__PURE__ */ Object.create(null), E = 0; E < h.length; E++)
|
|
4535
|
+
y[h[E]] = !0;
|
|
4432
4536
|
return function(x) {
|
|
4433
4537
|
return y[x] || !1;
|
|
4434
4538
|
};
|
|
4435
4539
|
}
|
|
4436
|
-
var
|
|
4437
|
-
return
|
|
4438
|
-
},
|
|
4439
|
-
return
|
|
4540
|
+
var Ni = We("class enum extends super const export import"), Ir = We("implements interface let package private protected public static yield"), Je = We("eval arguments"), Ti = We("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"), Si = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, kr = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Pi = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_", Dr = new RegExp("[" + kr + "]"), wi = new RegExp("[" + kr + Pi + "]"), He = /[\n\r\u2028\u2029]/, Ke = /\r\n|[\n\r\u2028\u2029]/g, qe = function(l) {
|
|
4541
|
+
return l < 65 ? l === 36 : l < 91 ? !0 : l < 97 ? l === 95 : l < 123 ? !0 : l >= 170 && Dr.test(String.fromCharCode(l));
|
|
4542
|
+
}, Lr = function(l) {
|
|
4543
|
+
return l < 48 ? l === 36 : l < 58 ? !0 : l < 65 ? !1 : l < 91 ? !0 : l < 97 ? l === 95 : l < 123 ? !0 : l >= 170 && wi.test(String.fromCharCode(l));
|
|
4440
4544
|
};
|
|
4441
|
-
function
|
|
4442
|
-
this.line = D, this.column = a -
|
|
4545
|
+
function le() {
|
|
4546
|
+
this.line = D, this.column = a - z;
|
|
4443
4547
|
}
|
|
4444
|
-
function
|
|
4445
|
-
D = 1, a =
|
|
4548
|
+
function xi() {
|
|
4549
|
+
D = 1, a = z = 0, I = !0, Ae();
|
|
4446
4550
|
}
|
|
4447
|
-
function V(
|
|
4448
|
-
d = a, r.locations && (N = new
|
|
4551
|
+
function V(l, h) {
|
|
4552
|
+
d = a, r.locations && (N = new le()), R = l, Ae(), S = h, I = l.beforeExpr;
|
|
4449
4553
|
}
|
|
4450
|
-
function
|
|
4451
|
-
var
|
|
4554
|
+
function Ci() {
|
|
4555
|
+
var l = r.onComment && r.locations && new le(), h = a, y = t.indexOf("*/", a += 2);
|
|
4452
4556
|
if (y === -1 && A(a - 2, "Unterminated comment"), a = y + 2, r.locations) {
|
|
4453
4557
|
Ke.lastIndex = h;
|
|
4454
|
-
for (var
|
|
4455
|
-
++D,
|
|
4558
|
+
for (var E; (E = Ke.exec(t)) && E.index < a; )
|
|
4559
|
+
++D, z = E.index + E[0].length;
|
|
4456
4560
|
}
|
|
4457
4561
|
r.onComment && r.onComment(
|
|
4458
4562
|
!0,
|
|
4459
4563
|
t.slice(h + 2, y),
|
|
4460
4564
|
h,
|
|
4461
4565
|
a,
|
|
4462
|
-
|
|
4463
|
-
r.locations && new
|
|
4566
|
+
l,
|
|
4567
|
+
r.locations && new le()
|
|
4464
4568
|
);
|
|
4465
4569
|
}
|
|
4466
|
-
function
|
|
4467
|
-
for (var
|
|
4570
|
+
function Nt() {
|
|
4571
|
+
for (var l = a, h = r.onComment && r.locations && new le(), y = t.charCodeAt(a += 2); a < e && y !== 10 && y !== 13 && y !== 8232 && y !== 8233; )
|
|
4468
4572
|
++a, y = t.charCodeAt(a);
|
|
4469
4573
|
r.onComment && r.onComment(
|
|
4470
4574
|
!1,
|
|
4471
|
-
t.slice(
|
|
4472
|
-
|
|
4575
|
+
t.slice(l + 2, a),
|
|
4576
|
+
l,
|
|
4473
4577
|
a,
|
|
4474
4578
|
h,
|
|
4475
|
-
r.locations && new
|
|
4579
|
+
r.locations && new le()
|
|
4476
4580
|
);
|
|
4477
4581
|
}
|
|
4478
4582
|
function Ae() {
|
|
4479
4583
|
for (; a < e; ) {
|
|
4480
|
-
var
|
|
4481
|
-
if (
|
|
4584
|
+
var l = t.charCodeAt(a);
|
|
4585
|
+
if (l === 32)
|
|
4482
4586
|
++a;
|
|
4483
|
-
else if (
|
|
4587
|
+
else if (l === 13) {
|
|
4484
4588
|
++a;
|
|
4485
4589
|
var h = t.charCodeAt(a);
|
|
4486
|
-
h === 10 && ++a, r.locations && (++D,
|
|
4487
|
-
} else if (
|
|
4488
|
-
++a, r.locations && (++D,
|
|
4489
|
-
else if (
|
|
4590
|
+
h === 10 && ++a, r.locations && (++D, z = a);
|
|
4591
|
+
} else if (l === 10 || l === 8232 || l === 8233)
|
|
4592
|
+
++a, r.locations && (++D, z = a);
|
|
4593
|
+
else if (l > 8 && l < 14)
|
|
4490
4594
|
++a;
|
|
4491
|
-
else if (
|
|
4595
|
+
else if (l === 47) {
|
|
4492
4596
|
var h = t.charCodeAt(a + 1);
|
|
4493
4597
|
if (h === 42)
|
|
4494
|
-
|
|
4598
|
+
Ci();
|
|
4495
4599
|
else if (h === 47)
|
|
4496
|
-
|
|
4600
|
+
Nt();
|
|
4497
4601
|
else break;
|
|
4498
|
-
} else if (
|
|
4602
|
+
} else if (l === 160)
|
|
4499
4603
|
++a;
|
|
4500
|
-
else if (
|
|
4604
|
+
else if (l >= 5760 && Si.test(String.fromCharCode(l)))
|
|
4501
4605
|
++a;
|
|
4502
4606
|
else
|
|
4503
4607
|
break;
|
|
4504
4608
|
}
|
|
4505
4609
|
}
|
|
4506
|
-
function Ci() {
|
|
4507
|
-
var f = t.charCodeAt(a + 1);
|
|
4508
|
-
f >= 48 && f <= 57 ? Mr(!0) : (++a, V(Nr));
|
|
4509
|
-
}
|
|
4510
4610
|
function Ai() {
|
|
4511
|
-
var
|
|
4512
|
-
|
|
4611
|
+
var l = t.charCodeAt(a + 1);
|
|
4612
|
+
l >= 48 && l <= 57 ? Fr(!0) : (++a, V(Tr));
|
|
4513
4613
|
}
|
|
4514
4614
|
function Ii() {
|
|
4515
|
-
var
|
|
4516
|
-
|
|
4615
|
+
var l = t.charCodeAt(a + 1);
|
|
4616
|
+
I ? (++a, Mr()) : l === 61 ? G(ce, 2) : G(Pr, 1);
|
|
4517
4617
|
}
|
|
4518
|
-
function ki(
|
|
4618
|
+
function ki() {
|
|
4619
|
+
var l = t.charCodeAt(a + 1);
|
|
4620
|
+
l === 61 ? G(ce, 2) : G(Oi, 1);
|
|
4621
|
+
}
|
|
4622
|
+
function Di(l) {
|
|
4519
4623
|
var h = t.charCodeAt(a + 1);
|
|
4520
|
-
h ===
|
|
4624
|
+
h === l ? G(l === 124 ? Cr : Ar, 2) : h === 61 ? G(ce, 2) : G(l === 124 ? yi : Ei, 1);
|
|
4521
4625
|
}
|
|
4522
|
-
function
|
|
4523
|
-
var
|
|
4524
|
-
|
|
4626
|
+
function Li() {
|
|
4627
|
+
var l = t.charCodeAt(a + 1);
|
|
4628
|
+
l === 61 ? G(ce, 2) : G(_i, 1);
|
|
4525
4629
|
}
|
|
4526
|
-
function
|
|
4630
|
+
function Mi(l) {
|
|
4527
4631
|
var h = t.charCodeAt(a + 1);
|
|
4528
|
-
if (h ===
|
|
4632
|
+
if (h === l) {
|
|
4529
4633
|
if (h === 45 && t.charCodeAt(a + 2) === 62 && He.test(t.slice(J, a))) {
|
|
4530
|
-
a += 3,
|
|
4634
|
+
a += 3, Nt(), Ae(), ge();
|
|
4531
4635
|
return;
|
|
4532
4636
|
}
|
|
4533
|
-
G(
|
|
4534
|
-
} else h === 61 ? G(ce, 2) : G(
|
|
4637
|
+
G(vi, 2);
|
|
4638
|
+
} else h === 61 ? G(ce, 2) : G(Ri, 1);
|
|
4535
4639
|
}
|
|
4536
|
-
function
|
|
4640
|
+
function Fi(l) {
|
|
4537
4641
|
var h = t.charCodeAt(a + 1), y = 1;
|
|
4538
|
-
if (h ===
|
|
4539
|
-
y =
|
|
4642
|
+
if (h === l) {
|
|
4643
|
+
y = l === 62 && t.charCodeAt(a + 2) === 62 ? 3 : 2, t.charCodeAt(a + y) === 61 ? G(ce, y + 1) : G(mi, y);
|
|
4540
4644
|
return;
|
|
4541
4645
|
}
|
|
4542
|
-
if (h === 33 &&
|
|
4543
|
-
a += 4,
|
|
4646
|
+
if (h === 33 && l === 60 && t.charCodeAt(a + 2) === 45 && t.charCodeAt(a + 3) === 45) {
|
|
4647
|
+
a += 4, Nt(), Ae(), ge();
|
|
4544
4648
|
return;
|
|
4545
4649
|
}
|
|
4546
|
-
h === 61 && (y = t.charCodeAt(a + 2) === 61 ? 3 : 2), G(
|
|
4650
|
+
h === 61 && (y = t.charCodeAt(a + 2) === 61 ? 3 : 2), G(bi, y);
|
|
4547
4651
|
}
|
|
4548
|
-
function
|
|
4652
|
+
function Ui(l) {
|
|
4549
4653
|
var h = t.charCodeAt(a + 1);
|
|
4550
|
-
h === 61 ? G(
|
|
4654
|
+
h === 61 ? G(gi, t.charCodeAt(a + 2) === 61 ? 3 : 2) : G(l === 61 ? wr : xr, 1);
|
|
4551
4655
|
}
|
|
4552
|
-
function
|
|
4553
|
-
switch (
|
|
4656
|
+
function ji(l) {
|
|
4657
|
+
switch (l) {
|
|
4554
4658
|
case 46:
|
|
4555
|
-
return
|
|
4659
|
+
return Ai();
|
|
4556
4660
|
case 40:
|
|
4557
4661
|
return ++a, V(Z);
|
|
4558
4662
|
case 41:
|
|
@@ -4562,20 +4666,20 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4562
4666
|
case 44:
|
|
4563
4667
|
return ++a, V(ne);
|
|
4564
4668
|
case 91:
|
|
4565
|
-
return ++a, V(mt);
|
|
4566
|
-
case 93:
|
|
4567
4669
|
return ++a, V(Rt);
|
|
4670
|
+
case 93:
|
|
4671
|
+
return ++a, V(Ot);
|
|
4568
4672
|
case 123:
|
|
4569
4673
|
return ++a, V(xe);
|
|
4570
4674
|
case 125:
|
|
4571
|
-
return ++a, V(
|
|
4675
|
+
return ++a, V(Ee);
|
|
4572
4676
|
case 58:
|
|
4573
4677
|
return ++a, V(Ce);
|
|
4574
4678
|
case 63:
|
|
4575
|
-
return ++a, V(
|
|
4679
|
+
return ++a, V(Sr);
|
|
4576
4680
|
case 48:
|
|
4577
4681
|
var h = t.charCodeAt(a + 1);
|
|
4578
|
-
if (h === 120 || h === 88) return
|
|
4682
|
+
if (h === 120 || h === 88) return Bi();
|
|
4579
4683
|
case 49:
|
|
4580
4684
|
case 50:
|
|
4581
4685
|
case 51:
|
|
@@ -4585,117 +4689,117 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4585
4689
|
case 55:
|
|
4586
4690
|
case 56:
|
|
4587
4691
|
case 57:
|
|
4588
|
-
return
|
|
4692
|
+
return Fr(!1);
|
|
4589
4693
|
case 34:
|
|
4590
4694
|
case 39:
|
|
4591
|
-
return
|
|
4695
|
+
return $i(l);
|
|
4592
4696
|
case 47:
|
|
4593
|
-
return
|
|
4697
|
+
return Ii();
|
|
4594
4698
|
case 37:
|
|
4595
4699
|
case 42:
|
|
4596
|
-
return
|
|
4700
|
+
return ki();
|
|
4597
4701
|
case 124:
|
|
4598
4702
|
case 38:
|
|
4599
|
-
return
|
|
4703
|
+
return Di(l);
|
|
4600
4704
|
case 94:
|
|
4601
|
-
return
|
|
4705
|
+
return Li();
|
|
4602
4706
|
case 43:
|
|
4603
4707
|
case 45:
|
|
4604
|
-
return
|
|
4708
|
+
return Mi(l);
|
|
4605
4709
|
case 60:
|
|
4606
4710
|
case 62:
|
|
4607
|
-
return
|
|
4711
|
+
return Fi(l);
|
|
4608
4712
|
case 61:
|
|
4609
4713
|
case 33:
|
|
4610
|
-
return
|
|
4714
|
+
return Ui(l);
|
|
4611
4715
|
case 126:
|
|
4612
|
-
return G(
|
|
4716
|
+
return G(xr, 1);
|
|
4613
4717
|
}
|
|
4614
4718
|
return !1;
|
|
4615
4719
|
}
|
|
4616
|
-
function
|
|
4617
|
-
if (
|
|
4618
|
-
if (a >= e) return V(
|
|
4720
|
+
function ge(l) {
|
|
4721
|
+
if (l ? a = p + 1 : p = a, r.locations && (b = new le()), l) return Mr();
|
|
4722
|
+
if (a >= e) return V(vt);
|
|
4619
4723
|
var h = t.charCodeAt(a);
|
|
4620
4724
|
if (qe(h) || h === 92)
|
|
4621
|
-
return
|
|
4622
|
-
var y =
|
|
4725
|
+
return jr();
|
|
4726
|
+
var y = ji(h);
|
|
4623
4727
|
if (y === !1) {
|
|
4624
|
-
var
|
|
4625
|
-
if (
|
|
4626
|
-
return
|
|
4627
|
-
A(a, "Unexpected character '" +
|
|
4728
|
+
var E = String.fromCharCode(h);
|
|
4729
|
+
if (E === "\\" || Dr.test(E))
|
|
4730
|
+
return jr();
|
|
4731
|
+
A(a, "Unexpected character '" + E + "'");
|
|
4628
4732
|
}
|
|
4629
4733
|
}
|
|
4630
|
-
function G(
|
|
4734
|
+
function G(l, h) {
|
|
4631
4735
|
var y = t.slice(a, a + h);
|
|
4632
|
-
a += h, V(
|
|
4736
|
+
a += h, V(l, y);
|
|
4633
4737
|
}
|
|
4634
|
-
function
|
|
4635
|
-
for (var
|
|
4738
|
+
function Mr() {
|
|
4739
|
+
for (var l, h, y = a; ; ) {
|
|
4636
4740
|
a >= e && A(y, "Unterminated regexp");
|
|
4637
|
-
var
|
|
4638
|
-
if (He.test(
|
|
4639
|
-
|
|
4741
|
+
var E = t.charAt(a);
|
|
4742
|
+
if (He.test(E) && A(y, "Unterminated regexp"), l)
|
|
4743
|
+
l = !1;
|
|
4640
4744
|
else {
|
|
4641
|
-
if (
|
|
4745
|
+
if (E === "[")
|
|
4642
4746
|
h = !0;
|
|
4643
|
-
else if (
|
|
4747
|
+
else if (E === "]" && h)
|
|
4644
4748
|
h = !1;
|
|
4645
|
-
else if (
|
|
4749
|
+
else if (E === "/" && !h)
|
|
4646
4750
|
break;
|
|
4647
|
-
|
|
4751
|
+
l = E === "\\";
|
|
4648
4752
|
}
|
|
4649
4753
|
++a;
|
|
4650
4754
|
}
|
|
4651
4755
|
var x = t.slice(y, a);
|
|
4652
4756
|
++a;
|
|
4653
|
-
var P =
|
|
4757
|
+
var P = Ur();
|
|
4654
4758
|
P && !/^[gmi]*$/.test(P) && A(y, "Invalid regexp flag");
|
|
4655
4759
|
try {
|
|
4656
4760
|
var C = new RegExp(x, P);
|
|
4657
4761
|
} catch (U) {
|
|
4658
4762
|
throw U instanceof SyntaxError && A(y, U.message), U;
|
|
4659
4763
|
}
|
|
4660
|
-
V(
|
|
4764
|
+
V(or, C);
|
|
4661
4765
|
}
|
|
4662
|
-
function Ie(
|
|
4663
|
-
for (var y = a,
|
|
4766
|
+
function Ie(l, h) {
|
|
4767
|
+
for (var y = a, E = 0, x = h === void 0 ? 1 / 0 : h, P = 0; P < x; ++P) {
|
|
4664
4768
|
var C = t.charCodeAt(a), U;
|
|
4665
|
-
if (C >= 97 ? U = C - 97 + 10 : C >= 65 ? U = C - 65 + 10 : C >= 48 && C <= 57 ? U = C - 48 : U = 1 / 0, U >=
|
|
4666
|
-
++a,
|
|
4769
|
+
if (C >= 97 ? U = C - 97 + 10 : C >= 65 ? U = C - 65 + 10 : C >= 48 && C <= 57 ? U = C - 48 : U = 1 / 0, U >= l) break;
|
|
4770
|
+
++a, E = E * l + U;
|
|
4667
4771
|
}
|
|
4668
|
-
return a === y || h !== void 0 && a - y !== h ? null :
|
|
4772
|
+
return a === y || h !== void 0 && a - y !== h ? null : E;
|
|
4669
4773
|
}
|
|
4670
|
-
function
|
|
4774
|
+
function Bi() {
|
|
4671
4775
|
a += 2;
|
|
4672
|
-
var
|
|
4673
|
-
|
|
4776
|
+
var l = Ie(16);
|
|
4777
|
+
l === null && A(p + 2, "Expected hexadecimal number"), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number"), V(Xe, l);
|
|
4674
4778
|
}
|
|
4675
|
-
function
|
|
4676
|
-
var h = a, y = !1,
|
|
4677
|
-
!
|
|
4779
|
+
function Fr(l) {
|
|
4780
|
+
var h = a, y = !1, E = t.charCodeAt(a) === 48;
|
|
4781
|
+
!l && Ie(10) === null && A(h, "Invalid number"), t.charCodeAt(a) === 46 && (++a, Ie(10), y = !0);
|
|
4678
4782
|
var x = t.charCodeAt(a);
|
|
4679
4783
|
(x === 69 || x === 101) && (x = t.charCodeAt(++a), (x === 43 || x === 45) && ++a, Ie(10) === null && A(h, "Invalid number"), y = !0), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number");
|
|
4680
4784
|
var P = t.slice(h, a), C;
|
|
4681
|
-
y ? C = parseFloat(P) : !
|
|
4785
|
+
y ? C = parseFloat(P) : !E || P.length === 1 ? C = parseInt(P, 10) : /[89]/.test(P) || W ? A(h, "Invalid number") : C = parseInt(P, 8), V(Xe, C);
|
|
4682
4786
|
}
|
|
4683
|
-
function
|
|
4787
|
+
function $i(l) {
|
|
4684
4788
|
a++;
|
|
4685
4789
|
for (var h = ""; ; ) {
|
|
4686
4790
|
a >= e && A(p, "Unterminated string constant");
|
|
4687
4791
|
var y = t.charCodeAt(a);
|
|
4688
|
-
if (y ===
|
|
4689
|
-
++a, V(
|
|
4792
|
+
if (y === l) {
|
|
4793
|
+
++a, V(dt, h);
|
|
4690
4794
|
return;
|
|
4691
4795
|
}
|
|
4692
4796
|
if (y === 92) {
|
|
4693
4797
|
y = t.charCodeAt(++a);
|
|
4694
|
-
var
|
|
4695
|
-
for (
|
|
4696
|
-
|
|
4697
|
-
if (
|
|
4698
|
-
|
|
4798
|
+
var E = /^[0-7]+/.exec(t.slice(a, a + 3));
|
|
4799
|
+
for (E && (E = E[0]); E && parseInt(E, 8) > 255; )
|
|
4800
|
+
E = E.slice(0, -1);
|
|
4801
|
+
if (E === "0" && (E = null), ++a, E)
|
|
4802
|
+
W && A(a - 2, "Octal literal in strict mode"), h += String.fromCharCode(parseInt(E, 8)), a += E.length - 1;
|
|
4699
4803
|
else
|
|
4700
4804
|
switch (y) {
|
|
4701
4805
|
case 110:
|
|
@@ -4732,7 +4836,7 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4732
4836
|
case 13:
|
|
4733
4837
|
t.charCodeAt(a) === 10 && ++a;
|
|
4734
4838
|
case 10:
|
|
4735
|
-
r.locations && (
|
|
4839
|
+
r.locations && (z = a, ++D);
|
|
4736
4840
|
break;
|
|
4737
4841
|
default:
|
|
4738
4842
|
h += String.fromCharCode(y);
|
|
@@ -4742,330 +4846,330 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4742
4846
|
(y === 13 || y === 10 || y === 8232 || y === 8233) && A(p, "Unterminated string constant"), h += String.fromCharCode(y), ++a;
|
|
4743
4847
|
}
|
|
4744
4848
|
}
|
|
4745
|
-
function Ze(
|
|
4746
|
-
var h = Ie(16,
|
|
4849
|
+
function Ze(l) {
|
|
4850
|
+
var h = Ie(16, l);
|
|
4747
4851
|
return h === null && A(p, "Bad character escape sequence"), /** @type {number} */
|
|
4748
4852
|
h;
|
|
4749
4853
|
}
|
|
4750
|
-
var
|
|
4751
|
-
function
|
|
4752
|
-
|
|
4753
|
-
for (var
|
|
4754
|
-
var
|
|
4755
|
-
if (
|
|
4756
|
-
|
|
4757
|
-
else if (
|
|
4758
|
-
|
|
4854
|
+
var be;
|
|
4855
|
+
function Ur() {
|
|
4856
|
+
be = !1;
|
|
4857
|
+
for (var l, h = !0, y = a; ; ) {
|
|
4858
|
+
var E = t.charCodeAt(a);
|
|
4859
|
+
if (Lr(E))
|
|
4860
|
+
be && (l += t.charAt(a)), ++a;
|
|
4861
|
+
else if (E === 92) {
|
|
4862
|
+
be || (l = t.slice(y, a)), be = !0, t.charCodeAt(++a) !== 117 && A(a, "Expecting Unicode escape sequence \\uXXXX"), ++a;
|
|
4759
4863
|
var x = Ze(4), P = String.fromCharCode(x);
|
|
4760
|
-
P || A(a - 1, "Invalid Unicode escape"), (h ? qe(x) :
|
|
4864
|
+
P || A(a - 1, "Invalid Unicode escape"), (h ? qe(x) : Lr(x)) || A(a - 4, "Invalid Unicode escape"), l += P;
|
|
4761
4865
|
} else
|
|
4762
4866
|
break;
|
|
4763
4867
|
h = !1;
|
|
4764
4868
|
}
|
|
4765
|
-
return
|
|
4869
|
+
return be ? l : t.slice(y, a);
|
|
4766
4870
|
}
|
|
4767
|
-
function
|
|
4768
|
-
var
|
|
4769
|
-
!
|
|
4871
|
+
function jr() {
|
|
4872
|
+
var l = Ur(), h = _e;
|
|
4873
|
+
!be && Ti(l) && (h = di[l]), V(h, l);
|
|
4770
4874
|
}
|
|
4771
4875
|
function k() {
|
|
4772
|
-
we = p, J = d,
|
|
4876
|
+
we = p, J = d, ye = N, ge();
|
|
4773
4877
|
}
|
|
4774
|
-
function
|
|
4775
|
-
if (
|
|
4776
|
-
for (; a <
|
|
4777
|
-
|
|
4778
|
-
`,
|
|
4779
|
-
Ae(),
|
|
4878
|
+
function Tt(l) {
|
|
4879
|
+
if (W = l, a = p, r.locations)
|
|
4880
|
+
for (; a < z; )
|
|
4881
|
+
z = t.lastIndexOf(`
|
|
4882
|
+
`, z - 2) + 1, --D;
|
|
4883
|
+
Ae(), ge();
|
|
4780
4884
|
}
|
|
4781
|
-
function
|
|
4885
|
+
function Br() {
|
|
4782
4886
|
this.type = null, this.start = p, this.end = null;
|
|
4783
4887
|
}
|
|
4784
|
-
function
|
|
4785
|
-
this.start =
|
|
4888
|
+
function $r() {
|
|
4889
|
+
this.start = b, this.end = null, i && (this.source = i);
|
|
4786
4890
|
}
|
|
4787
4891
|
function Y() {
|
|
4788
|
-
var
|
|
4789
|
-
return r.locations && (
|
|
4892
|
+
var l = new Br();
|
|
4893
|
+
return r.locations && (l.loc = new $r()), r.directSourceFile && (l.sourceFile = r.directSourceFile), r.ranges && (l.range = [p, 0]), l;
|
|
4790
4894
|
}
|
|
4791
|
-
function ie(
|
|
4792
|
-
var h = new
|
|
4793
|
-
return h.start =
|
|
4895
|
+
function ie(l) {
|
|
4896
|
+
var h = new Br();
|
|
4897
|
+
return h.start = l.start, r.locations && (h.loc = new $r(), h.loc.start = l.loc.start), r.ranges && (h.range = [l.range[0], 0]), h;
|
|
4794
4898
|
}
|
|
4795
|
-
function w(
|
|
4796
|
-
return
|
|
4899
|
+
function w(l, h) {
|
|
4900
|
+
return l.type = h, l.end = J, r.locations && (l.loc.end = ye), r.ranges && (l.range[1] = J), l;
|
|
4797
4901
|
}
|
|
4798
|
-
function
|
|
4799
|
-
return
|
|
4902
|
+
function St(l) {
|
|
4903
|
+
return l.type === "ExpressionStatement" && l.expression.type === "Literal" && l.expression.value === "use strict";
|
|
4800
4904
|
}
|
|
4801
|
-
function j(
|
|
4802
|
-
return R ===
|
|
4905
|
+
function j(l) {
|
|
4906
|
+
return R === l ? (k(), !0) : !1;
|
|
4803
4907
|
}
|
|
4804
4908
|
function Qe() {
|
|
4805
|
-
return !r.strictSemicolons && (R ===
|
|
4909
|
+
return !r.strictSemicolons && (R === vt || R === Ee || He.test(t.slice(J, p)));
|
|
4806
4910
|
}
|
|
4807
|
-
function
|
|
4911
|
+
function fe() {
|
|
4808
4912
|
!j(Q) && !Qe() && ee();
|
|
4809
4913
|
}
|
|
4810
|
-
function $(
|
|
4811
|
-
R ===
|
|
4914
|
+
function $(l) {
|
|
4915
|
+
R === l ? k() : ee();
|
|
4812
4916
|
}
|
|
4813
4917
|
function ee() {
|
|
4814
4918
|
A(p, "Unexpected token");
|
|
4815
4919
|
}
|
|
4816
|
-
function et(
|
|
4817
|
-
|
|
4920
|
+
function et(l) {
|
|
4921
|
+
l.type !== "Identifier" && l.type !== "MemberExpression" && A(l.start, "Assigning to rvalue"), W && l.type === "Identifier" && Je(l.name) && A(l.start, "Assigning to " + l.name + " in strict mode");
|
|
4818
4922
|
}
|
|
4819
|
-
function
|
|
4820
|
-
we = J = a, r.locations && (
|
|
4821
|
-
var h =
|
|
4822
|
-
for (
|
|
4823
|
-
var
|
|
4824
|
-
h.body.push(
|
|
4923
|
+
function Vi(l) {
|
|
4924
|
+
we = J = a, r.locations && (ye = new le()), se = W = !1, B = [], ge();
|
|
4925
|
+
var h = l || Y(), y = !0;
|
|
4926
|
+
for (l || (h.body = []); R !== vt; ) {
|
|
4927
|
+
var E = H();
|
|
4928
|
+
h.body.push(E), y && St(E) && Tt(!0), y = !1;
|
|
4825
4929
|
}
|
|
4826
4930
|
return w(h, "Program");
|
|
4827
4931
|
}
|
|
4828
|
-
var
|
|
4932
|
+
var Pt = { kind: "loop" }, Gi = { kind: "switch" };
|
|
4829
4933
|
function H() {
|
|
4830
|
-
(R ===
|
|
4831
|
-
var
|
|
4832
|
-
switch (
|
|
4833
|
-
case
|
|
4834
|
-
case
|
|
4934
|
+
(R === Pr || R === ce && S === "/=") && ge(!0);
|
|
4935
|
+
var l = R, h = Y();
|
|
4936
|
+
switch (l) {
|
|
4937
|
+
case yt:
|
|
4938
|
+
case sr:
|
|
4835
4939
|
k();
|
|
4836
|
-
var y =
|
|
4837
|
-
j(Q) || Qe() ? h.label = null : R !==
|
|
4838
|
-
for (var
|
|
4839
|
-
var x = B[
|
|
4940
|
+
var y = l === yt;
|
|
4941
|
+
j(Q) || Qe() ? h.label = null : R !== _e ? ee() : (h.label = ae(), fe());
|
|
4942
|
+
for (var E = 0; E < B.length; ++E) {
|
|
4943
|
+
var x = B[E];
|
|
4840
4944
|
if ((h.label === null || x.name === h.label.name) && (x.kind !== null && (y || x.kind === "loop") || h.label && y))
|
|
4841
4945
|
break;
|
|
4842
4946
|
}
|
|
4843
|
-
return
|
|
4844
|
-
case
|
|
4845
|
-
return k(),
|
|
4947
|
+
return E === B.length && A(h.start, "Unsyntactic " + l.keyword), w(h, y ? "BreakStatement" : "ContinueStatement");
|
|
4948
|
+
case cr:
|
|
4949
|
+
return k(), fe(), w(h, "DebuggerStatement");
|
|
4846
4950
|
case fr:
|
|
4847
|
-
return k(), B.push(
|
|
4848
|
-
case
|
|
4849
|
-
if (k(), B.push(
|
|
4850
|
-
if (R ===
|
|
4951
|
+
return k(), B.push(Pt), h.body = H(), B.pop(), $(mt), h.test = ke(), fe(), w(h, "DoWhileStatement");
|
|
4952
|
+
case dr:
|
|
4953
|
+
if (k(), B.push(Pt), $(Z), R === Q) return wt(h, null);
|
|
4954
|
+
if (R === bt) {
|
|
4851
4955
|
var P = Y();
|
|
4852
|
-
return k(),
|
|
4956
|
+
return k(), Gr(P, !0), w(P, "VariableDeclaration"), P.declarations.length === 1 && j(ze) ? Vr(h, P) : wt(h, P);
|
|
4853
4957
|
}
|
|
4854
4958
|
var P = X(!1, !0);
|
|
4855
|
-
return j(
|
|
4856
|
-
case _t:
|
|
4857
|
-
return k(), It(h, !0);
|
|
4858
|
-
case dr:
|
|
4859
|
-
return k(), h.test = ke(), h.consequent = H(), h.alternate = j(lr) ? H() : null, w(h, "IfStatement");
|
|
4860
|
-
case vr:
|
|
4861
|
-
return !se && !r.allowReturnOutsideFunction && A(p, "'return' outside of function"), k(), j(Q) || Qe() ? h.argument = null : (h.argument = X(), le()), w(h, "ReturnStatement");
|
|
4959
|
+
return j(ze) ? (et(P), Vr(h, P)) : wt(h, P);
|
|
4862
4960
|
case Et:
|
|
4863
|
-
k(),
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4961
|
+
return k(), kt(h, !0);
|
|
4962
|
+
case vr:
|
|
4963
|
+
return k(), h.test = ke(), h.consequent = H(), h.alternate = j(pr) ? H() : null, w(h, "IfStatement");
|
|
4964
|
+
case yr:
|
|
4965
|
+
return !se && !r.allowReturnOutsideFunction && A(p, "'return' outside of function"), k(), j(Q) || Qe() ? h.argument = null : (h.argument = X(), fe()), w(h, "ReturnStatement");
|
|
4966
|
+
case gt:
|
|
4967
|
+
k(), h.discriminant = ke(), h.cases = [], $(xe), B.push(Gi);
|
|
4968
|
+
for (var C, U; R !== Ee; )
|
|
4969
|
+
if (R === _t || R === lr) {
|
|
4970
|
+
var Me = R === _t;
|
|
4867
4971
|
C && w(C, "SwitchCase"), h.cases.push(C = Y()), C.consequent = [], k(), Me ? C.test = X() : (U && A(we, "Multiple default clauses"), U = !0, C.test = null), $(Ce);
|
|
4868
4972
|
} else
|
|
4869
4973
|
C || ee(), C.consequent.push(H());
|
|
4870
4974
|
return C && w(C, "SwitchCase"), k(), B.pop(), w(h, "SwitchStatement");
|
|
4871
|
-
case yr:
|
|
4872
|
-
return k(), He.test(t.slice(J, p)) && A(J, "Illegal newline after throw"), h.argument = X(), le(), w(h, "ThrowStatement");
|
|
4873
4975
|
case _r:
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4976
|
+
return k(), He.test(t.slice(J, p)) && A(J, "Illegal newline after throw"), h.argument = X(), fe(), w(h, "ThrowStatement");
|
|
4977
|
+
case Er:
|
|
4978
|
+
if (k(), h.block = De(), h.handler = null, R === ur) {
|
|
4979
|
+
var me = Y();
|
|
4980
|
+
k(), $(Z), me.param = ae(), W && Je(me.param.name) && A(me.param.start, "Binding " + me.param.name + " in strict mode"), $(K), me.body = De(), h.handler = w(me, "CatchClause");
|
|
4877
4981
|
}
|
|
4878
|
-
return h.finalizer = j(
|
|
4879
|
-
case gt:
|
|
4880
|
-
return k(), Vr(h), le(), w(h, "VariableDeclaration");
|
|
4982
|
+
return h.finalizer = j(hr) ? De() : null, !h.handler && !h.finalizer && A(h.start, "Missing catch or finally clause"), w(h, "TryStatement");
|
|
4881
4983
|
case bt:
|
|
4882
|
-
return k(),
|
|
4883
|
-
case
|
|
4884
|
-
return
|
|
4984
|
+
return k(), Gr(h), fe(), w(h, "VariableDeclaration");
|
|
4985
|
+
case mt:
|
|
4986
|
+
return k(), h.test = ke(), B.push(Pt), h.body = H(), B.pop(), w(h, "WhileStatement");
|
|
4987
|
+
case gr:
|
|
4988
|
+
return W && A(p, "'with' in strict mode"), k(), h.object = ke(), h.body = H(), w(h, "WithStatement");
|
|
4885
4989
|
case xe:
|
|
4886
4990
|
return De();
|
|
4887
4991
|
case Q:
|
|
4888
4992
|
return k(), w(h, "EmptyStatement");
|
|
4889
4993
|
default:
|
|
4890
|
-
var
|
|
4891
|
-
if (
|
|
4892
|
-
for (var
|
|
4893
|
-
B[
|
|
4894
|
-
var
|
|
4895
|
-
return B.push({ name:
|
|
4994
|
+
var Lt = S, tt = X();
|
|
4995
|
+
if (l === _e && tt.type === "Identifier" && j(Ce)) {
|
|
4996
|
+
for (var E = 0; E < B.length; ++E)
|
|
4997
|
+
B[E].name === Lt && A(tt.start, "Label '" + Lt + "' is already declared");
|
|
4998
|
+
var Hi = R.isLoop ? "loop" : R === gt ? "switch" : null;
|
|
4999
|
+
return B.push({ name: Lt, kind: Hi }), h.body = H(), B.pop(), h.label = tt, w(h, "LabeledStatement");
|
|
4896
5000
|
} else
|
|
4897
|
-
return h.expression = tt,
|
|
5001
|
+
return h.expression = tt, fe(), w(h, "ExpressionStatement");
|
|
4898
5002
|
}
|
|
4899
5003
|
}
|
|
4900
5004
|
function ke() {
|
|
4901
5005
|
$(Z);
|
|
4902
|
-
var
|
|
4903
|
-
return $(K),
|
|
5006
|
+
var l = X();
|
|
5007
|
+
return $(K), l;
|
|
4904
5008
|
}
|
|
4905
|
-
function De(
|
|
4906
|
-
var h = Y(), y = !0,
|
|
4907
|
-
for (h.body = [], $(xe); !j(
|
|
5009
|
+
function De(l) {
|
|
5010
|
+
var h = Y(), y = !0, E = !1, x;
|
|
5011
|
+
for (h.body = [], $(xe); !j(Ee); ) {
|
|
4908
5012
|
var P = H();
|
|
4909
|
-
h.body.push(P), y &&
|
|
5013
|
+
h.body.push(P), y && l && St(P) && (x = E, Tt(E = !0)), y = !1;
|
|
4910
5014
|
}
|
|
4911
|
-
return
|
|
5015
|
+
return E && !x && Tt(!1), w(h, "BlockStatement");
|
|
4912
5016
|
}
|
|
4913
|
-
function
|
|
4914
|
-
return
|
|
5017
|
+
function wt(l, h) {
|
|
5018
|
+
return l.init = h, $(Q), l.test = R === Q ? null : X(), $(Q), l.update = R === K ? null : X(), $(K), l.body = H(), B.pop(), w(l, "ForStatement");
|
|
4915
5019
|
}
|
|
4916
|
-
function
|
|
4917
|
-
return
|
|
5020
|
+
function Vr(l, h) {
|
|
5021
|
+
return l.left = h, l.right = X(), $(K), l.body = H(), B.pop(), w(l, "ForInStatement");
|
|
4918
5022
|
}
|
|
4919
|
-
function
|
|
4920
|
-
for (
|
|
5023
|
+
function Gr(l, h) {
|
|
5024
|
+
for (l.declarations = [], l.kind = "var"; ; ) {
|
|
4921
5025
|
var y = Y();
|
|
4922
|
-
if (y.id = ae(),
|
|
5026
|
+
if (y.id = ae(), W && Je(y.id.name) && A(y.id.start, "Binding " + y.id.name + " in strict mode"), y.init = j(wr) ? X(!0, h) : null, l.declarations.push(w(y, "VariableDeclarator")), !j(ne)) break;
|
|
4923
5027
|
}
|
|
4924
5028
|
}
|
|
4925
|
-
function X(
|
|
4926
|
-
var y =
|
|
4927
|
-
if (!
|
|
4928
|
-
var
|
|
4929
|
-
for (
|
|
4930
|
-
return w(
|
|
5029
|
+
function X(l, h) {
|
|
5030
|
+
var y = xt(h);
|
|
5031
|
+
if (!l && R === ne) {
|
|
5032
|
+
var E = ie(y);
|
|
5033
|
+
for (E.expressions = [y]; j(ne); ) E.expressions.push(xt(h));
|
|
5034
|
+
return w(E, "SequenceExpression");
|
|
4931
5035
|
}
|
|
4932
5036
|
return y;
|
|
4933
5037
|
}
|
|
4934
|
-
function
|
|
4935
|
-
var h =
|
|
5038
|
+
function xt(l) {
|
|
5039
|
+
var h = Yi(l);
|
|
4936
5040
|
if (R.isAssign) {
|
|
4937
5041
|
var y = ie(h);
|
|
4938
|
-
return y.operator = S, y.left = h, k(), y.right =
|
|
5042
|
+
return y.operator = S, y.left = h, k(), y.right = xt(l), et(h), w(y, "AssignmentExpression");
|
|
4939
5043
|
}
|
|
4940
5044
|
return h;
|
|
4941
5045
|
}
|
|
4942
|
-
function
|
|
4943
|
-
var h =
|
|
4944
|
-
if (j(
|
|
5046
|
+
function Yi(l) {
|
|
5047
|
+
var h = Xi(l);
|
|
5048
|
+
if (j(Sr)) {
|
|
4945
5049
|
var y = ie(h);
|
|
4946
|
-
return y.test = h, y.consequent = X(!0), $(Ce), y.alternate = X(!0,
|
|
5050
|
+
return y.test = h, y.consequent = X(!0), $(Ce), y.alternate = X(!0, l), w(y, "ConditionalExpression");
|
|
4947
5051
|
}
|
|
4948
5052
|
return h;
|
|
4949
5053
|
}
|
|
4950
|
-
function
|
|
4951
|
-
return
|
|
5054
|
+
function Xi(l) {
|
|
5055
|
+
return Ct(At(), -1, l);
|
|
4952
5056
|
}
|
|
4953
|
-
function
|
|
4954
|
-
var
|
|
4955
|
-
if (
|
|
4956
|
-
var x = ie(
|
|
4957
|
-
x.left =
|
|
5057
|
+
function Ct(l, h, y) {
|
|
5058
|
+
var E = R.binop;
|
|
5059
|
+
if (E !== null && (!y || R !== ze) && E > h) {
|
|
5060
|
+
var x = ie(l);
|
|
5061
|
+
x.left = l, x.operator = S;
|
|
4958
5062
|
var P = R;
|
|
4959
|
-
k(), x.right =
|
|
4960
|
-
var C = w(x, P ===
|
|
4961
|
-
return
|
|
5063
|
+
k(), x.right = Ct(At(), E, y);
|
|
5064
|
+
var C = w(x, P === Cr || P === Ar ? "LogicalExpression" : "BinaryExpression");
|
|
5065
|
+
return Ct(C, h, y);
|
|
4962
5066
|
}
|
|
4963
|
-
return
|
|
5067
|
+
return l;
|
|
4964
5068
|
}
|
|
4965
|
-
function
|
|
5069
|
+
function At() {
|
|
4966
5070
|
if (R.prefix) {
|
|
4967
|
-
var
|
|
4968
|
-
return
|
|
5071
|
+
var l = Y(), h = R.isUpdate;
|
|
5072
|
+
return l.operator = S, l.prefix = !0, I = !0, k(), l.argument = At(), h ? et(l.argument) : W && l.operator === "delete" && l.argument.type === "Identifier" && A(l.start, "Deleting local variable in strict mode"), w(l, h ? "UpdateExpression" : "UnaryExpression");
|
|
4969
5073
|
}
|
|
4970
|
-
for (var y =
|
|
4971
|
-
var
|
|
4972
|
-
|
|
5074
|
+
for (var y = zi(); R.postfix && !Qe(); ) {
|
|
5075
|
+
var l = ie(y);
|
|
5076
|
+
l.operator = S, l.prefix = !1, l.argument = y, et(y), k(), y = w(l, "UpdateExpression");
|
|
4973
5077
|
}
|
|
4974
5078
|
return y;
|
|
4975
5079
|
}
|
|
4976
|
-
function
|
|
4977
|
-
return Le(
|
|
5080
|
+
function zi() {
|
|
5081
|
+
return Le(It());
|
|
4978
5082
|
}
|
|
4979
|
-
function Le(
|
|
5083
|
+
function Le(l, h) {
|
|
4980
5084
|
var y;
|
|
4981
|
-
return j(
|
|
5085
|
+
return j(Tr) ? (y = ie(l), y.object = l, y.property = ae(!0), y.computed = !1, Le(w(y, "MemberExpression"), h)) : j(Rt) ? (y = ie(l), y.object = l, y.property = X(), y.computed = !0, $(Ot), Le(w(y, "MemberExpression"), h)) : !h && j(Z) ? (y = ie(l), y.callee = l, y.arguments = Dt(K, !1), Le(w(y, "CallExpression"), h)) : l;
|
|
4982
5086
|
}
|
|
4983
|
-
function
|
|
4984
|
-
var
|
|
5087
|
+
function It() {
|
|
5088
|
+
var l;
|
|
4985
5089
|
switch (R) {
|
|
4986
|
-
case
|
|
4987
|
-
return
|
|
4988
|
-
case
|
|
5090
|
+
case mr:
|
|
5091
|
+
return l = Y(), k(), w(l, "ThisExpression");
|
|
5092
|
+
case _e:
|
|
4989
5093
|
return ae();
|
|
4990
5094
|
case Xe:
|
|
4991
|
-
case
|
|
4992
|
-
case
|
|
4993
|
-
return
|
|
4994
|
-
case mr:
|
|
5095
|
+
case dt:
|
|
5096
|
+
case or:
|
|
5097
|
+
return l = Y(), l.value = S, l.raw = t.slice(p, d), k(), w(l, "Literal");
|
|
4995
5098
|
case Rr:
|
|
4996
5099
|
case Or:
|
|
4997
|
-
|
|
5100
|
+
case Nr:
|
|
5101
|
+
return l = Y(), l.value = R.atomValue, l.raw = R.keyword, k(), w(l, "Literal");
|
|
4998
5102
|
case Z:
|
|
4999
|
-
var h =
|
|
5103
|
+
var h = b, y = p;
|
|
5000
5104
|
k();
|
|
5001
|
-
var
|
|
5002
|
-
return
|
|
5003
|
-
case
|
|
5004
|
-
return
|
|
5105
|
+
var E = X();
|
|
5106
|
+
return E.start = y, E.end = d, r.locations && (E.loc.start = h, E.loc.end = N), r.ranges && (E.range = [y, d]), $(K), E;
|
|
5107
|
+
case Rt:
|
|
5108
|
+
return l = Y(), k(), l.elements = Dt(Ot, !0, !0), w(l, "ArrayExpression");
|
|
5005
5109
|
case xe:
|
|
5006
|
-
return
|
|
5007
|
-
case
|
|
5008
|
-
return
|
|
5009
|
-
case
|
|
5110
|
+
return Ji();
|
|
5111
|
+
case Et:
|
|
5112
|
+
return l = Y(), k(), kt(l, !1);
|
|
5113
|
+
case br:
|
|
5010
5114
|
return Wi();
|
|
5011
5115
|
}
|
|
5012
5116
|
ee();
|
|
5013
5117
|
}
|
|
5014
5118
|
function Wi() {
|
|
5015
|
-
var
|
|
5016
|
-
return k(),
|
|
5119
|
+
var l = Y();
|
|
5120
|
+
return k(), l.callee = Le(It(), !0), l.arguments = j(Z) ? Dt(K, !1) : hi, w(l, "NewExpression");
|
|
5017
5121
|
}
|
|
5018
|
-
function
|
|
5019
|
-
var
|
|
5020
|
-
for (
|
|
5122
|
+
function Ji() {
|
|
5123
|
+
var l = Y(), h = !0, y = !1;
|
|
5124
|
+
for (l.properties = [], k(); !j(Ee); ) {
|
|
5021
5125
|
if (h)
|
|
5022
5126
|
h = !1;
|
|
5023
|
-
else if ($(ne), r.allowTrailingCommas && j(
|
|
5127
|
+
else if ($(ne), r.allowTrailingCommas && j(Ee))
|
|
5024
5128
|
break;
|
|
5025
|
-
var
|
|
5026
|
-
if (j(Ce) ? (
|
|
5027
|
-
for (var C = 0; C <
|
|
5028
|
-
var U =
|
|
5029
|
-
if (U.key.name ===
|
|
5129
|
+
var E = { key: Yr() }, x = !1, P;
|
|
5130
|
+
if (j(Ce) ? (E.value = X(!0), P = E.kind = "init") : E.key.type === "Identifier" && (E.key.name === "get" || E.key.name === "set") ? (x = y = !0, P = E.kind = E.key.name, E.key = Yr(), R !== Z && ee(), E.value = kt(Y(), !1)) : ee(), E.key.type === "Identifier" && (W || y))
|
|
5131
|
+
for (var C = 0; C < l.properties.length; ++C) {
|
|
5132
|
+
var U = l.properties[C];
|
|
5133
|
+
if (U.key.name === E.key.name) {
|
|
5030
5134
|
var Me = P === U.kind || x && U.kind === "init" || P === "init" && (U.kind === "get" || U.kind === "set");
|
|
5031
|
-
Me && !
|
|
5135
|
+
Me && !W && P === "init" && U.kind === "init" && (Me = !1), Me && A(E.key.start, "Redefinition of property");
|
|
5032
5136
|
}
|
|
5033
5137
|
}
|
|
5034
|
-
|
|
5138
|
+
l.properties.push(E);
|
|
5035
5139
|
}
|
|
5036
|
-
return w(
|
|
5140
|
+
return w(l, "ObjectExpression");
|
|
5037
5141
|
}
|
|
5038
|
-
function
|
|
5039
|
-
return R === Xe || R ===
|
|
5142
|
+
function Yr() {
|
|
5143
|
+
return R === Xe || R === dt ? It() : ae(!0);
|
|
5040
5144
|
}
|
|
5041
|
-
function
|
|
5042
|
-
R ===
|
|
5145
|
+
function kt(l, h) {
|
|
5146
|
+
R === _e ? l.id = ae() : h ? ee() : l.id = null, l.params = [];
|
|
5043
5147
|
var y = !0;
|
|
5044
5148
|
for ($(Z); !j(K); )
|
|
5045
|
-
y ? y = !1 : $(ne),
|
|
5046
|
-
var
|
|
5047
|
-
if (se = !0, B = [],
|
|
5048
|
-
for (var P =
|
|
5049
|
-
var C = P < 0 ?
|
|
5050
|
-
if ((
|
|
5149
|
+
y ? y = !1 : $(ne), l.params.push(ae());
|
|
5150
|
+
var E = se, x = B;
|
|
5151
|
+
if (se = !0, B = [], l.body = De(!0), se = E, B = x, W || l.body.body.length && St(l.body.body[0]))
|
|
5152
|
+
for (var P = l.id ? -1 : 0; P < l.params.length; ++P) {
|
|
5153
|
+
var C = P < 0 ? l.id : l.params[P];
|
|
5154
|
+
if ((Ir(C.name) || Je(C.name)) && A(C.start, "Defining '" + C.name + "' in strict mode"), P >= 0)
|
|
5051
5155
|
for (var U = 0; U < P; ++U)
|
|
5052
|
-
C.name ===
|
|
5156
|
+
C.name === l.params[U].name && A(C.start, "Argument name clash in strict mode");
|
|
5053
5157
|
}
|
|
5054
|
-
return w(
|
|
5158
|
+
return w(l, h ? "FunctionDeclaration" : "FunctionExpression");
|
|
5055
5159
|
}
|
|
5056
|
-
function
|
|
5057
|
-
for (var
|
|
5160
|
+
function Dt(l, h, y) {
|
|
5161
|
+
for (var E = [], x = !0; !j(l); ) {
|
|
5058
5162
|
if (x)
|
|
5059
5163
|
x = !1;
|
|
5060
|
-
else if ($(ne), h && r.allowTrailingCommas && j(
|
|
5164
|
+
else if ($(ne), h && r.allowTrailingCommas && j(l))
|
|
5061
5165
|
break;
|
|
5062
|
-
|
|
5166
|
+
E.push(y && R === ne ? null : X(!0));
|
|
5063
5167
|
}
|
|
5064
|
-
return
|
|
5168
|
+
return E;
|
|
5065
5169
|
}
|
|
5066
|
-
function ae(
|
|
5170
|
+
function ae(l) {
|
|
5067
5171
|
var h = Y();
|
|
5068
|
-
return
|
|
5172
|
+
return l && r.forbidReserved === "everywhere" && (l = !1), R === _e ? (!l && (r.forbidReserved && Ni(S) || W && Ir(S)) && t.slice(p, d).indexOf("\\") === -1 && A(p, "The keyword '" + S + "' is reserved"), h.name = S) : l && R.keyword ? h.name = R.keyword : ee(), I = !1, k(), w(h, "Identifier");
|
|
5069
5173
|
}
|
|
5070
5174
|
});
|
|
5071
5175
|
}
|
|
@@ -5076,17 +5180,17 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5076
5180
|
!*** external "vm" ***!
|
|
5077
5181
|
\*********************/
|
|
5078
5182
|
/***/
|
|
5079
|
-
(
|
|
5080
|
-
|
|
5183
|
+
(_) => {
|
|
5184
|
+
_.exports = cc;
|
|
5081
5185
|
}
|
|
5082
5186
|
)
|
|
5083
5187
|
/******/
|
|
5084
5188
|
}, v = {};
|
|
5085
|
-
function
|
|
5086
|
-
var T = v[
|
|
5189
|
+
function g(_) {
|
|
5190
|
+
var T = v[_];
|
|
5087
5191
|
if (T !== void 0)
|
|
5088
5192
|
return T.exports;
|
|
5089
|
-
var O = v[
|
|
5193
|
+
var O = v[_] = {
|
|
5090
5194
|
/******/
|
|
5091
5195
|
// no module.id needed
|
|
5092
5196
|
/******/
|
|
@@ -5095,52 +5199,52 @@ const ac = {}, oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5095
5199
|
exports: {}
|
|
5096
5200
|
/******/
|
|
5097
5201
|
};
|
|
5098
|
-
return
|
|
5202
|
+
return f[_].call(O.exports, O, O.exports, g), O.exports;
|
|
5099
5203
|
}
|
|
5100
|
-
|
|
5204
|
+
g.d = (_, T) => {
|
|
5101
5205
|
for (var O in T)
|
|
5102
|
-
|
|
5103
|
-
},
|
|
5104
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(
|
|
5206
|
+
g.o(T, O) && !g.o(_, O) && Object.defineProperty(_, O, { enumerable: !0, get: T[O] });
|
|
5207
|
+
}, g.o = (_, T) => Object.prototype.hasOwnProperty.call(_, T), g.r = (_) => {
|
|
5208
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(_, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(_, "__esModule", { value: !0 });
|
|
5105
5209
|
};
|
|
5106
5210
|
var m = {};
|
|
5107
5211
|
return (() => {
|
|
5108
5212
|
/*!*******************************!*\
|
|
5109
5213
|
!*** ./src/js-interpreter.js ***!
|
|
5110
5214
|
\*******************************/
|
|
5111
|
-
|
|
5215
|
+
g.r(m), g.d(m, {
|
|
5112
5216
|
/* harmony export */
|
|
5113
5217
|
default: () => O
|
|
5114
5218
|
/* harmony export */
|
|
5115
5219
|
});
|
|
5116
|
-
const
|
|
5220
|
+
const _ = g(
|
|
5117
5221
|
/*! ../original-repo/acorn */
|
|
5118
5222
|
"./original-repo/acorn.js"
|
|
5119
5223
|
);
|
|
5120
|
-
globalThis.acorn =
|
|
5121
|
-
const { Interpreter: T } =
|
|
5224
|
+
globalThis.acorn = _;
|
|
5225
|
+
const { Interpreter: T } = g(
|
|
5122
5226
|
/*! ../original-repo/interpreter */
|
|
5123
5227
|
"./original-repo/interpreter.js"
|
|
5124
5228
|
), O = T;
|
|
5125
5229
|
})(), m = m.default, m;
|
|
5126
5230
|
})()
|
|
5127
5231
|
));
|
|
5128
|
-
})(
|
|
5129
|
-
var
|
|
5130
|
-
const
|
|
5131
|
-
function
|
|
5132
|
-
function
|
|
5232
|
+
})(li);
|
|
5233
|
+
var lc = li.exports;
|
|
5234
|
+
const fc = /* @__PURE__ */ ac(lc);
|
|
5235
|
+
function pc(n, u) {
|
|
5236
|
+
function f(T) {
|
|
5133
5237
|
const O = n.pseudoToNative(T);
|
|
5134
5238
|
console.log(O);
|
|
5135
5239
|
}
|
|
5136
5240
|
function v(T) {
|
|
5137
5241
|
const O = n.pseudoToNative(T);
|
|
5138
5242
|
let r = "";
|
|
5139
|
-
typeof O == "object" ? r = JSON.stringify(O) : r = String(O),
|
|
5243
|
+
typeof O == "object" ? r = JSON.stringify(O) : r = String(O), Nn.emit("consoleAppend", r);
|
|
5140
5244
|
}
|
|
5141
|
-
function
|
|
5245
|
+
function g(T, O) {
|
|
5142
5246
|
const r = n.pseudoToNative(T), t = n.pseudoToNative(O);
|
|
5143
|
-
r === "info" ?
|
|
5247
|
+
r === "info" ? aa(t) : r === "success" ? oa(t) : r === "warning" ? ua(t) : r === "error" && sa(t);
|
|
5144
5248
|
}
|
|
5145
5249
|
function m(T, O) {
|
|
5146
5250
|
const r = n.pseudoToNative(T), t = n.pseudoToNative(O);
|
|
@@ -5148,7 +5252,7 @@ function fc(n, u) {
|
|
|
5148
5252
|
n.appendCode(`__timeoutCallbackV1__(${r})`), n.run();
|
|
5149
5253
|
}, t);
|
|
5150
5254
|
}
|
|
5151
|
-
function
|
|
5255
|
+
function _(T, O) {
|
|
5152
5256
|
const r = n.pseudoToNative(T);
|
|
5153
5257
|
setTimeout(() => {
|
|
5154
5258
|
O(), n.run();
|
|
@@ -5157,7 +5261,7 @@ function fc(n, u) {
|
|
|
5157
5261
|
n.setProperty(
|
|
5158
5262
|
u,
|
|
5159
5263
|
"__consoleLogV1__",
|
|
5160
|
-
n.createNativeFunction(
|
|
5264
|
+
n.createNativeFunction(f)
|
|
5161
5265
|
), n.setProperty(
|
|
5162
5266
|
u,
|
|
5163
5267
|
"__debugTraceV1__",
|
|
@@ -5165,7 +5269,7 @@ function fc(n, u) {
|
|
|
5165
5269
|
), n.setProperty(
|
|
5166
5270
|
u,
|
|
5167
5271
|
"__messageV1__",
|
|
5168
|
-
n.createNativeFunction(
|
|
5272
|
+
n.createNativeFunction(g)
|
|
5169
5273
|
), n.setProperty(
|
|
5170
5274
|
u,
|
|
5171
5275
|
"__timeoutV1__",
|
|
@@ -5173,53 +5277,53 @@ function fc(n, u) {
|
|
|
5173
5277
|
), n.setProperty(
|
|
5174
5278
|
u,
|
|
5175
5279
|
"__delayV1__",
|
|
5176
|
-
n.createAsyncFunction(
|
|
5280
|
+
n.createAsyncFunction(_)
|
|
5177
5281
|
);
|
|
5178
5282
|
}
|
|
5179
|
-
class
|
|
5283
|
+
class hc {
|
|
5180
5284
|
constructor(u) {
|
|
5181
|
-
|
|
5182
|
-
|
|
5285
|
+
Mt(this, "context");
|
|
5286
|
+
Mt(this, "nodes");
|
|
5183
5287
|
this.context = u, this.nodes = {};
|
|
5184
|
-
const
|
|
5185
|
-
var
|
|
5186
|
-
this.nodes[v.basic.id] = v, (
|
|
5288
|
+
const f = (v) => {
|
|
5289
|
+
var g;
|
|
5290
|
+
this.nodes[v.basic.id] = v, (g = v.children) == null || g.forEach((m) => f(m));
|
|
5187
5291
|
};
|
|
5188
|
-
this.context.data.view.nodes.forEach((v) =>
|
|
5292
|
+
this.context.data.view.nodes.forEach((v) => f(v));
|
|
5189
5293
|
}
|
|
5190
5294
|
getNode(u) {
|
|
5191
5295
|
return this.nodes[u];
|
|
5192
5296
|
}
|
|
5193
|
-
addNode(u,
|
|
5194
|
-
const
|
|
5297
|
+
addNode(u, f, v) {
|
|
5298
|
+
const g = `parent=${u} ref=${f} keyOrRefid=${v}`;
|
|
5195
5299
|
let m;
|
|
5196
5300
|
if (u) {
|
|
5197
5301
|
const T = this.getNode(u);
|
|
5198
5302
|
if (!T)
|
|
5199
|
-
return console.error(`NodeMgr/addNode parent not found, ${
|
|
5303
|
+
return console.error(`NodeMgr/addNode parent not found, ${g}`), "";
|
|
5200
5304
|
if (!T.children)
|
|
5201
|
-
return console.error(`NodeMgr/addNode parent no children, ${
|
|
5305
|
+
return console.error(`NodeMgr/addNode parent no children, ${g}`), "";
|
|
5202
5306
|
m = T.children;
|
|
5203
5307
|
} else
|
|
5204
5308
|
m = this.context.data.view.nodes;
|
|
5205
5309
|
if (!m)
|
|
5206
5310
|
return "";
|
|
5207
|
-
const
|
|
5311
|
+
const _ = Vs(
|
|
5208
5312
|
this.context.type,
|
|
5209
5313
|
this.context.data.type,
|
|
5210
5314
|
this.context.data.version,
|
|
5211
|
-
|
|
5315
|
+
f,
|
|
5212
5316
|
v
|
|
5213
5317
|
);
|
|
5214
|
-
return
|
|
5318
|
+
return _ ? (m.push(_), this.nodes[_.basic.id] = _, _.basic.id) : (console.error(`NodeMgr/addNode spawn node failed, ${g}`), "");
|
|
5215
5319
|
}
|
|
5216
5320
|
deleteNode(u) {
|
|
5217
5321
|
this.getNode(u);
|
|
5218
5322
|
}
|
|
5219
5323
|
}
|
|
5220
|
-
function
|
|
5221
|
-
const v = new
|
|
5222
|
-
function
|
|
5324
|
+
function dc(n, u, f) {
|
|
5325
|
+
const v = new hc(n);
|
|
5326
|
+
function g(t, e, i) {
|
|
5223
5327
|
const o = u.pseudoToNative(t), s = u.pseudoToNative(e), c = u.pseudoToNative(i), a = v.addNode(o, s, c);
|
|
5224
5328
|
return u.nativeToPseudo(a);
|
|
5225
5329
|
}
|
|
@@ -5227,7 +5331,7 @@ function pc(n, u, l) {
|
|
|
5227
5331
|
const e = u.pseudoToNative(t);
|
|
5228
5332
|
v.deleteNode(e);
|
|
5229
5333
|
}
|
|
5230
|
-
function
|
|
5334
|
+
function _(t, e) {
|
|
5231
5335
|
const i = u.pseudoToNative(t), o = u.pseudoToNative(e), s = `id=${i} keys=${o}`;
|
|
5232
5336
|
let c;
|
|
5233
5337
|
if (i === "globality" ? c = n.data.view : c = v.getNode(i), !c) {
|
|
@@ -5236,10 +5340,10 @@ function pc(n, u, l) {
|
|
|
5236
5340
|
}
|
|
5237
5341
|
const a = o.split("."), p = a.length;
|
|
5238
5342
|
for (let d = 0; d < p; d++) {
|
|
5239
|
-
const
|
|
5343
|
+
const b = a[d];
|
|
5240
5344
|
if (d === p - 1)
|
|
5241
|
-
return u.nativeToPseudo(c[
|
|
5242
|
-
if (c = c[
|
|
5345
|
+
return u.nativeToPseudo(c[b]);
|
|
5346
|
+
if (c = c[b], !c) {
|
|
5243
5347
|
console.error(`getNodePropV1 unpkg failed, ${s}`);
|
|
5244
5348
|
return;
|
|
5245
5349
|
}
|
|
@@ -5252,10 +5356,10 @@ function pc(n, u, l) {
|
|
|
5252
5356
|
console.error(`setNodePropV1 node not found, ${a}`);
|
|
5253
5357
|
return;
|
|
5254
5358
|
}
|
|
5255
|
-
const d = s.split("."),
|
|
5256
|
-
for (let N = 0; N <
|
|
5359
|
+
const d = s.split("."), b = d.length;
|
|
5360
|
+
for (let N = 0; N < b; N++) {
|
|
5257
5361
|
const R = d[N];
|
|
5258
|
-
if (N ===
|
|
5362
|
+
if (N === b - 1)
|
|
5259
5363
|
p[R] = c;
|
|
5260
5364
|
else if (p = p[R], !p) {
|
|
5261
5365
|
console.error(`setNodePropV1 unpkg failed, ${a}`);
|
|
@@ -5265,52 +5369,52 @@ function pc(n, u, l) {
|
|
|
5265
5369
|
}
|
|
5266
5370
|
function O(t, e, i) {
|
|
5267
5371
|
const o = u.pseudoToNative(t), s = u.pseudoToNative(e);
|
|
5268
|
-
|
|
5372
|
+
ca({ title: o, text: s }).then((c) => {
|
|
5269
5373
|
i(u.nativeToPseudo(c)), u.run();
|
|
5270
5374
|
});
|
|
5271
5375
|
}
|
|
5272
5376
|
function r(t, e, i, o) {
|
|
5273
5377
|
const s = u.pseudoToNative(t), c = u.pseudoToNative(e), a = u.pseudoToNative(i);
|
|
5274
|
-
|
|
5378
|
+
la({ title: s, label: c, value: a }).then((p) => {
|
|
5275
5379
|
o(u.nativeToPseudo(p)), u.run();
|
|
5276
5380
|
});
|
|
5277
5381
|
}
|
|
5278
5382
|
u.setProperty(
|
|
5279
|
-
|
|
5383
|
+
f,
|
|
5280
5384
|
"__addNodeV1__",
|
|
5281
|
-
u.createNativeFunction(
|
|
5385
|
+
u.createNativeFunction(g)
|
|
5282
5386
|
), u.setProperty(
|
|
5283
|
-
|
|
5387
|
+
f,
|
|
5284
5388
|
"__deleteNodeV1__",
|
|
5285
5389
|
u.createNativeFunction(m)
|
|
5286
5390
|
), u.setProperty(
|
|
5287
|
-
|
|
5391
|
+
f,
|
|
5288
5392
|
"__getNodePropV1__",
|
|
5289
|
-
u.createNativeFunction(
|
|
5393
|
+
u.createNativeFunction(_)
|
|
5290
5394
|
), u.setProperty(
|
|
5291
|
-
|
|
5395
|
+
f,
|
|
5292
5396
|
"__setNodePropV1__",
|
|
5293
5397
|
u.createNativeFunction(T)
|
|
5294
5398
|
), u.setProperty(
|
|
5295
|
-
|
|
5399
|
+
f,
|
|
5296
5400
|
"__openConfirmDlgV1__",
|
|
5297
5401
|
u.createAsyncFunction(O)
|
|
5298
5402
|
), u.setProperty(
|
|
5299
|
-
|
|
5403
|
+
f,
|
|
5300
5404
|
"__openPromptDlgV1__",
|
|
5301
5405
|
u.createAsyncFunction(r)
|
|
5302
5406
|
);
|
|
5303
5407
|
}
|
|
5304
|
-
function
|
|
5305
|
-
|
|
5408
|
+
function vc(n, u, f) {
|
|
5409
|
+
pc(u, f), dc(n, u, f);
|
|
5306
5410
|
}
|
|
5307
|
-
const
|
|
5411
|
+
const yc = `
|
|
5308
5412
|
var __env__ = 'dev'
|
|
5309
5413
|
|
|
5310
5414
|
function __getEnvV1__() {
|
|
5311
5415
|
return __env__
|
|
5312
5416
|
}
|
|
5313
|
-
`,
|
|
5417
|
+
`, _c = `
|
|
5314
5418
|
var __events__ = {}
|
|
5315
5419
|
|
|
5316
5420
|
function __addEventListenerV1__(id, event, callback) {
|
|
@@ -5381,7 +5485,7 @@ function __triggerEvent__(id, event, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p1
|
|
|
5381
5485
|
callbacks[i](p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16)
|
|
5382
5486
|
}
|
|
5383
5487
|
}
|
|
5384
|
-
`,
|
|
5488
|
+
`, Ec = `
|
|
5385
5489
|
var __timers__ = {}
|
|
5386
5490
|
var __currTimerId__ = 0
|
|
5387
5491
|
|
|
@@ -5423,26 +5527,26 @@ function __timeoutCallbackV1__(timerId) {
|
|
|
5423
5527
|
}
|
|
5424
5528
|
}
|
|
5425
5529
|
}
|
|
5426
|
-
`,
|
|
5530
|
+
`, gc = `
|
|
5427
5531
|
function __destroy__() {
|
|
5428
5532
|
}
|
|
5429
|
-
`,
|
|
5430
|
-
function
|
|
5431
|
-
const
|
|
5432
|
-
|
|
5433
|
-
(v,
|
|
5434
|
-
|
|
5533
|
+
`, bc = yc + _c + Ec + gc;
|
|
5534
|
+
function mc(n, u) {
|
|
5535
|
+
const f = new fc(
|
|
5536
|
+
bc,
|
|
5537
|
+
(v, g) => {
|
|
5538
|
+
vc(n, v, g);
|
|
5435
5539
|
}
|
|
5436
5540
|
);
|
|
5437
|
-
return
|
|
5541
|
+
return f.appendCode(u), f.appendCode(`
|
|
5438
5542
|
__env__ = '${n.env}';
|
|
5439
5543
|
__triggerEvent__('globality', 'startup');
|
|
5440
|
-
`),
|
|
5544
|
+
`), f.run(), f;
|
|
5441
5545
|
}
|
|
5442
|
-
function
|
|
5546
|
+
function bn(n) {
|
|
5443
5547
|
n.appendCode("__destroy__();"), n.run();
|
|
5444
5548
|
}
|
|
5445
|
-
const
|
|
5549
|
+
const Rc = /* @__PURE__ */ Wt({
|
|
5446
5550
|
__name: "index",
|
|
5447
5551
|
props: {
|
|
5448
5552
|
id: {},
|
|
@@ -5451,43 +5555,43 @@ const bc = /* @__PURE__ */ Wt({
|
|
|
5451
5555
|
outer: { type: Boolean }
|
|
5452
5556
|
},
|
|
5453
5557
|
setup(n) {
|
|
5454
|
-
const { t: u } =
|
|
5558
|
+
const { t: u } = ia(), f = n, v = Gs(), g = ar(), m = ni(), _ = ii(), T = ai(), O = Xs(), r = M(() => O[f.refContext.refid]);
|
|
5455
5559
|
let t;
|
|
5456
|
-
|
|
5457
|
-
r.value ||
|
|
5560
|
+
ra(() => {
|
|
5561
|
+
r.value || Nn.emit("compNotAvail", f.refContext.refid), t && (bn(t), t = void 0), r.value && g === "runtime" && (t = mc(
|
|
5458
5562
|
{
|
|
5459
5563
|
env: v,
|
|
5460
|
-
type:
|
|
5564
|
+
type: _,
|
|
5461
5565
|
data: T
|
|
5462
5566
|
},
|
|
5463
5567
|
r.value.data.code.script
|
|
5464
|
-
),
|
|
5465
|
-
}),
|
|
5466
|
-
t && (
|
|
5568
|
+
), zs(t));
|
|
5569
|
+
}), na(() => {
|
|
5570
|
+
t && (bn(t), t = void 0);
|
|
5467
5571
|
});
|
|
5468
|
-
const { applySize: e } =
|
|
5469
|
-
const d = {},
|
|
5470
|
-
return
|
|
5572
|
+
const { applySize: e } = si(g, m, f), i = M(() => {
|
|
5573
|
+
const d = {}, b = T.type;
|
|
5574
|
+
return _ === "page" ? b === "common" ? e(d) : console.assert(!1) : _ === "comp" && b === "common" ? e(d) : console.assert(!1), d;
|
|
5471
5575
|
});
|
|
5472
5576
|
function o() {
|
|
5473
|
-
let d =
|
|
5577
|
+
let d = f.refContext.parent;
|
|
5474
5578
|
for (; d; ) {
|
|
5475
|
-
if (d.refid ===
|
|
5579
|
+
if (d.refid === f.refContext.refid)
|
|
5476
5580
|
return !0;
|
|
5477
5581
|
d = d.parent;
|
|
5478
5582
|
}
|
|
5479
5583
|
return !1;
|
|
5480
5584
|
}
|
|
5481
5585
|
function s(d) {
|
|
5482
|
-
let
|
|
5483
|
-
return d.ref ?
|
|
5586
|
+
let b;
|
|
5587
|
+
return d.ref ? b = c(d) : b = a(d), b;
|
|
5484
5588
|
}
|
|
5485
5589
|
function c(d) {
|
|
5486
|
-
const
|
|
5590
|
+
const b = pi[T.version].refKey, N = Te[b];
|
|
5487
5591
|
let R;
|
|
5488
5592
|
return N ? R = Fe(N.comp, {
|
|
5489
5593
|
refContext: {
|
|
5490
|
-
parent:
|
|
5594
|
+
parent: f.refContext,
|
|
5491
5595
|
refid: d.ref.id
|
|
5492
5596
|
},
|
|
5493
5597
|
node: d
|
|
@@ -5495,29 +5599,29 @@ const bc = /* @__PURE__ */ Wt({
|
|
|
5495
5599
|
}
|
|
5496
5600
|
function a(d) {
|
|
5497
5601
|
var R;
|
|
5498
|
-
let
|
|
5602
|
+
let b;
|
|
5499
5603
|
const N = Te[d.basic.key];
|
|
5500
5604
|
return N ? ((R = d.children) == null || R.forEach((S) => {
|
|
5501
5605
|
s(S);
|
|
5502
|
-
}),
|
|
5606
|
+
}), b = Fe(N.comp, { node: d })) : console.assert(!1, `invalid element key=${d.basic.key}`), b;
|
|
5503
5607
|
}
|
|
5504
5608
|
const p = () => {
|
|
5505
5609
|
const d = [];
|
|
5506
5610
|
if (o())
|
|
5507
5611
|
d.push(Fe("div", u("x-runtime-lib.circularRef")));
|
|
5508
5612
|
else if (r.value) {
|
|
5509
|
-
const
|
|
5510
|
-
|
|
5613
|
+
const b = r.value.data.type;
|
|
5614
|
+
b === "common" ? r.value.data.view.nodes.forEach((N) => {
|
|
5511
5615
|
const R = s(N);
|
|
5512
5616
|
d.push(R);
|
|
5513
|
-
}) : console.assert(!1, `invalid subtype=${
|
|
5617
|
+
}) : console.assert(!1, `invalid subtype=${b}`);
|
|
5514
5618
|
} else
|
|
5515
5619
|
d.push(Fe("div", u("x-runtime-lib.compNotAvail")));
|
|
5516
|
-
return Fe("div", { id:
|
|
5620
|
+
return Fe("div", { id: f.id, style: i.value }, d);
|
|
5517
5621
|
};
|
|
5518
|
-
return (d,
|
|
5622
|
+
return (d, b) => (Jt(), On(p));
|
|
5519
5623
|
}
|
|
5520
|
-
}),
|
|
5624
|
+
}), mn = {
|
|
5521
5625
|
key: "ref",
|
|
5522
5626
|
name: "x-runtime-lib.ref",
|
|
5523
5627
|
children: [
|
|
@@ -5529,36 +5633,36 @@ const bc = /* @__PURE__ */ Wt({
|
|
|
5529
5633
|
}
|
|
5530
5634
|
]
|
|
5531
5635
|
}, fi = {
|
|
5532
|
-
key:
|
|
5636
|
+
key: ui,
|
|
5533
5637
|
name: "x-runtime-lib.ref",
|
|
5534
|
-
comp:
|
|
5638
|
+
comp: Rc,
|
|
5535
5639
|
leaf: !0,
|
|
5536
5640
|
events: [],
|
|
5537
5641
|
methods: [],
|
|
5538
5642
|
props: {
|
|
5539
|
-
pageCommon: [Ne,
|
|
5540
|
-
compCommon: [Ne,
|
|
5643
|
+
pageCommon: [Ne, mn, st, at, ot, ut],
|
|
5644
|
+
compCommon: [Ne, mn, st, at, ot, ut]
|
|
5541
5645
|
}
|
|
5542
|
-
},
|
|
5646
|
+
}, Oc = {
|
|
5543
5647
|
version: "v1",
|
|
5544
|
-
globalityKey:
|
|
5648
|
+
globalityKey: ci.key,
|
|
5545
5649
|
refKey: fi.key,
|
|
5546
5650
|
elements: /* @__PURE__ */ new Set([
|
|
5547
|
-
Yt,
|
|
5548
5651
|
Xt,
|
|
5549
|
-
|
|
5550
|
-
oi
|
|
5652
|
+
zt,
|
|
5653
|
+
oi,
|
|
5654
|
+
ui
|
|
5551
5655
|
]),
|
|
5552
5656
|
groups: [
|
|
5553
5657
|
{
|
|
5554
5658
|
key: "basic",
|
|
5555
5659
|
name: "x-runtime-lib.basic",
|
|
5556
|
-
items: [
|
|
5660
|
+
items: [Xt, zt]
|
|
5557
5661
|
}
|
|
5558
5662
|
]
|
|
5559
|
-
},
|
|
5560
|
-
v1:
|
|
5561
|
-
}, Te = {},
|
|
5663
|
+
}, pi = {
|
|
5664
|
+
v1: Oc
|
|
5665
|
+
}, Te = {}, Nc = {
|
|
5562
5666
|
key: "add",
|
|
5563
5667
|
name: "METHOD_ADD",
|
|
5564
5668
|
inputs: [],
|
|
@@ -5568,61 +5672,61 @@ const bc = /* @__PURE__ */ Wt({
|
|
|
5568
5672
|
name: "PARAM_NEW_NODE"
|
|
5569
5673
|
}
|
|
5570
5674
|
]
|
|
5571
|
-
},
|
|
5572
|
-
Te[n.key] && console.assert(!1, `element duplicate key=${n.key}`), n.leaf || n.methods.unshift(
|
|
5675
|
+
}, ht = (n) => {
|
|
5676
|
+
Te[n.key] && console.assert(!1, `element duplicate key=${n.key}`), n.leaf || n.methods.unshift(Nc), Te[n.key] = n;
|
|
5573
5677
|
};
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
const
|
|
5678
|
+
ht(qs);
|
|
5679
|
+
ht(nc);
|
|
5680
|
+
ht(ci);
|
|
5681
|
+
ht(fi);
|
|
5682
|
+
const Tc = (n, u, f) => {
|
|
5579
5683
|
const v = n[u];
|
|
5580
|
-
return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((
|
|
5684
|
+
return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((g, m) => {
|
|
5581
5685
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5582
5686
|
m.bind(
|
|
5583
5687
|
null,
|
|
5584
5688
|
new Error(
|
|
5585
|
-
"Unknown variable dynamic import: " + u + (u.split("/").length !==
|
|
5689
|
+
"Unknown variable dynamic import: " + u + (u.split("/").length !== f ? ". Note that variables only represent file names one level deep." : "")
|
|
5586
5690
|
)
|
|
5587
5691
|
)
|
|
5588
5692
|
);
|
|
5589
5693
|
});
|
|
5590
5694
|
};
|
|
5591
|
-
async function
|
|
5592
|
-
return (await
|
|
5695
|
+
async function Bc(n) {
|
|
5696
|
+
return (await Tc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-np0t5e6q.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-l3s80hbm.js") }), `./locales/${n}/index.ts`, 4)).default;
|
|
5593
5697
|
}
|
|
5594
5698
|
export {
|
|
5595
|
-
|
|
5699
|
+
Ic as duplicateNode,
|
|
5596
5700
|
Te as elements,
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5701
|
+
Tn as genId,
|
|
5702
|
+
Ac as getNode,
|
|
5703
|
+
vn as getPropDefault,
|
|
5704
|
+
$s as getPropTag,
|
|
5705
|
+
yn as initProps,
|
|
5706
|
+
Ys as injectDark,
|
|
5707
|
+
ai as injectData,
|
|
5708
|
+
Xs as injectDepends,
|
|
5709
|
+
ni as injectDevice,
|
|
5710
|
+
Gs as injectEnv,
|
|
5607
5711
|
Ws as injectInterpreter,
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5712
|
+
ar as injectMode,
|
|
5713
|
+
ii as injectType,
|
|
5714
|
+
Ht as isEmptyStr,
|
|
5715
|
+
qt as isPercentStr,
|
|
5716
|
+
Kt as isPixelStr,
|
|
5717
|
+
Bc as loadLocaleMessageRuntime,
|
|
5718
|
+
Ft as parsePercentStr,
|
|
5719
|
+
Cc as parsePixelStr,
|
|
5720
|
+
pi as pkgs,
|
|
5721
|
+
Mc as provideDark,
|
|
5722
|
+
Uc as provideData,
|
|
5723
|
+
jc as provideDepends,
|
|
5724
|
+
Lc as provideDevice,
|
|
5725
|
+
kc as provideEnv,
|
|
5726
|
+
zs as provideInterpreter,
|
|
5727
|
+
Dc as provideMode,
|
|
5728
|
+
Fc as provideType,
|
|
5729
|
+
Vs as spawnNode,
|
|
5730
|
+
mc as startInterpreter,
|
|
5731
|
+
bn as stopInterpreter
|
|
5628
5732
|
};
|