x-runtime-lib 0.5.37 → 0.5.38
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 +1335 -1331
- package/dist/utils/provideInject.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
var ka = Object.defineProperty;
|
|
2
2
|
var Aa = (n, o, l) => o in n ? ka(n, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[o] = l;
|
|
3
|
-
var
|
|
4
|
-
import { provide as be, inject as ge, readonly as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { eventBus as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
3
|
+
var Jt = (n, o, l) => Aa(n, typeof o != "symbol" ? o + "" : o, l);
|
|
4
|
+
import { provide as be, inject as ge, readonly as mr, isReactive as ai, defineComponent as oe, computed as x, resolveComponent as ie, openBlock as G, createBlock as Q, withCtx as ee, renderSlot as _r, unref as Fe, createElementBlock as $e, createVNode as Z, normalizeStyle as Ia, ref as Le, watchEffect as oi, onUnmounted as br, watch as Da, h as J, createSlots as Qt, renderList as La, onBeforeMount as Ma, isRef as Fa, createCommentVNode as Ua } from "vue";
|
|
5
|
+
import { useI18n as ui } from "vue-i18n";
|
|
6
|
+
import { eventBus as Ue, messageInfo as ja, messageSuccess as Ba, messageWarning as $a, messageError as Va, openConfirmDlg as Ga, openPromptDlg as Ya, useViewStack as za } from "x-essential-lib";
|
|
7
|
+
const bn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
8
|
+
function si(n) {
|
|
9
9
|
let o = "";
|
|
10
10
|
for (let l = 0; l < n; l++) {
|
|
11
|
-
const h = Math.floor(Math.random() *
|
|
12
|
-
o +=
|
|
11
|
+
const h = Math.floor(Math.random() * bn.length);
|
|
12
|
+
o += bn[h];
|
|
13
13
|
}
|
|
14
14
|
return o;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function gr(n) {
|
|
17
17
|
return n === "";
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Er(n) {
|
|
20
20
|
if (typeof n != "string" || !n.endsWith("px"))
|
|
21
21
|
return !1;
|
|
22
22
|
const o = n.substring(0, n.length - 2), l = parseFloat(o);
|
|
23
23
|
return !(isNaN(l) || l % 1 !== 0);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Rr(n) {
|
|
26
26
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
27
27
|
return !1;
|
|
28
28
|
const o = n.substring(0, n.length - 1), l = parseFloat(o);
|
|
@@ -35,53 +35,53 @@ function Gc(n) {
|
|
|
35
35
|
if (!isNaN(l) && l % 1 === 0)
|
|
36
36
|
return l;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Kt(n) {
|
|
39
39
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
40
40
|
return;
|
|
41
41
|
const o = n.substring(0, n.length - 1), l = parseFloat(o);
|
|
42
42
|
if (!isNaN(l))
|
|
43
43
|
return l;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
45
|
+
var li = typeof global == "object" && global && global.Object === Object && global, Xa = typeof self == "object" && self && self.Object === Object && self, ue = li || Xa || Function("return this")(), je = ue.Symbol, ci = Object.prototype, Wa = ci.hasOwnProperty, Ha = ci.toString, et = je ? je.toStringTag : void 0;
|
|
46
46
|
function Ja(n) {
|
|
47
|
-
var o = Wa.call(n,
|
|
47
|
+
var o = Wa.call(n, et), l = n[et];
|
|
48
48
|
try {
|
|
49
|
-
n[
|
|
49
|
+
n[et] = void 0;
|
|
50
50
|
var h = !0;
|
|
51
51
|
} catch {
|
|
52
52
|
}
|
|
53
|
-
var
|
|
54
|
-
return h && (o ? n[
|
|
53
|
+
var _ = Ha.call(n);
|
|
54
|
+
return h && (o ? n[et] = l : delete n[et]), _;
|
|
55
55
|
}
|
|
56
56
|
var Ka = Object.prototype, qa = Ka.toString;
|
|
57
57
|
function Za(n) {
|
|
58
58
|
return qa.call(n);
|
|
59
59
|
}
|
|
60
|
-
var Qa = "[object Null]", eo = "[object Undefined]",
|
|
61
|
-
function
|
|
62
|
-
return n == null ? n === void 0 ? eo : Qa :
|
|
60
|
+
var Qa = "[object Null]", eo = "[object Undefined]", gn = je ? je.toStringTag : void 0;
|
|
61
|
+
function it(n) {
|
|
62
|
+
return n == null ? n === void 0 ? eo : Qa : gn && gn in Object(n) ? Ja(n) : Za(n);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function at(n) {
|
|
65
65
|
return n != null && typeof n == "object";
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
function
|
|
67
|
+
var Or = Array.isArray;
|
|
68
|
+
function ot(n) {
|
|
69
69
|
var o = typeof n;
|
|
70
70
|
return n != null && (o == "object" || o == "function");
|
|
71
71
|
}
|
|
72
72
|
var to = "[object AsyncFunction]", ro = "[object Function]", no = "[object GeneratorFunction]", io = "[object Proxy]";
|
|
73
|
-
function
|
|
74
|
-
if (!
|
|
73
|
+
function fi(n) {
|
|
74
|
+
if (!ot(n))
|
|
75
75
|
return !1;
|
|
76
|
-
var o =
|
|
76
|
+
var o = it(n);
|
|
77
77
|
return o == ro || o == no || o == to || o == io;
|
|
78
78
|
}
|
|
79
|
-
var
|
|
80
|
-
var n = /[^.]+$/.exec(
|
|
79
|
+
var qt = ue["__core-js_shared__"], En = function() {
|
|
80
|
+
var n = /[^.]+$/.exec(qt && qt.keys && qt.keys.IE_PROTO || "");
|
|
81
81
|
return n ? "Symbol(src)_1." + n : "";
|
|
82
82
|
}();
|
|
83
83
|
function ao(n) {
|
|
84
|
-
return !!
|
|
84
|
+
return !!En && En in n;
|
|
85
85
|
}
|
|
86
86
|
var oo = Function.prototype, uo = oo.toString;
|
|
87
87
|
function Se(n) {
|
|
@@ -100,27 +100,27 @@ function Se(n) {
|
|
|
100
100
|
var so = /[\\^$.*+?()[\]{}|]/g, lo = /^\[object .+?Constructor\]$/, co = Function.prototype, fo = Object.prototype, po = co.toString, ho = fo.hasOwnProperty, vo = RegExp(
|
|
101
101
|
"^" + po.call(ho).replace(so, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
102
102
|
);
|
|
103
|
-
function
|
|
104
|
-
if (!
|
|
103
|
+
function yo(n) {
|
|
104
|
+
if (!ot(n) || ao(n))
|
|
105
105
|
return !1;
|
|
106
|
-
var o =
|
|
106
|
+
var o = fi(n) ? vo : lo;
|
|
107
107
|
return o.test(Se(n));
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function mo(n, o) {
|
|
110
110
|
return n == null ? void 0 : n[o];
|
|
111
111
|
}
|
|
112
112
|
function we(n, o) {
|
|
113
|
-
var l =
|
|
114
|
-
return
|
|
113
|
+
var l = mo(n, o);
|
|
114
|
+
return yo(l) ? l : void 0;
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var er = we(ue, "WeakMap"), Rn = Object.create, _o = /* @__PURE__ */ function() {
|
|
117
117
|
function n() {
|
|
118
118
|
}
|
|
119
119
|
return function(o) {
|
|
120
|
-
if (!
|
|
120
|
+
if (!ot(o))
|
|
121
121
|
return {};
|
|
122
|
-
if (
|
|
123
|
-
return
|
|
122
|
+
if (Rn)
|
|
123
|
+
return Rn(o);
|
|
124
124
|
n.prototype = o;
|
|
125
125
|
var l = new n();
|
|
126
126
|
return n.prototype = void 0, l;
|
|
@@ -132,7 +132,7 @@ function bo(n, o) {
|
|
|
132
132
|
o[l] = n[l];
|
|
133
133
|
return o;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
135
|
+
var On = function() {
|
|
136
136
|
try {
|
|
137
137
|
var n = we(Object, "defineProperty");
|
|
138
138
|
return n({}, "", {}), n;
|
|
@@ -149,40 +149,40 @@ function Oo(n, o) {
|
|
|
149
149
|
var l = typeof n;
|
|
150
150
|
return o = o ?? Eo, !!o && (l == "number" || l != "symbol" && Ro.test(n)) && n > -1 && n % 1 == 0 && n < o;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
o == "__proto__" &&
|
|
152
|
+
function pi(n, o, l) {
|
|
153
|
+
o == "__proto__" && On ? On(n, o, {
|
|
154
154
|
configurable: !0,
|
|
155
155
|
enumerable: !0,
|
|
156
156
|
value: l,
|
|
157
157
|
writable: !0
|
|
158
158
|
}) : n[o] = l;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function di(n, o) {
|
|
161
161
|
return n === o || n !== n && o !== o;
|
|
162
162
|
}
|
|
163
163
|
var To = Object.prototype, No = To.hasOwnProperty;
|
|
164
|
-
function
|
|
164
|
+
function hi(n, o, l) {
|
|
165
165
|
var h = n[o];
|
|
166
|
-
(!(No.call(n, o) &&
|
|
166
|
+
(!(No.call(n, o) && di(h, l)) || l === void 0 && !(o in n)) && pi(n, o, l);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
var
|
|
168
|
+
function Ot(n, o, l, h) {
|
|
169
|
+
var _ = !l;
|
|
170
170
|
l || (l = {});
|
|
171
|
-
for (var
|
|
172
|
-
var O = o[
|
|
173
|
-
|
|
171
|
+
for (var g = -1, y = o.length; ++g < y; ) {
|
|
172
|
+
var O = o[g], T = void 0;
|
|
173
|
+
T === void 0 && (T = n[O]), _ ? pi(l, O, T) : hi(l, O, T);
|
|
174
174
|
}
|
|
175
175
|
return l;
|
|
176
176
|
}
|
|
177
177
|
var xo = 9007199254740991;
|
|
178
|
-
function
|
|
178
|
+
function vi(n) {
|
|
179
179
|
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= xo;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return n != null &&
|
|
181
|
+
function yi(n) {
|
|
182
|
+
return n != null && vi(n.length) && !fi(n);
|
|
183
183
|
}
|
|
184
184
|
var So = Object.prototype;
|
|
185
|
-
function
|
|
185
|
+
function Tr(n) {
|
|
186
186
|
var o = n && n.constructor, l = typeof o == "function" && o.prototype || So;
|
|
187
187
|
return n === l;
|
|
188
188
|
}
|
|
@@ -192,61 +192,61 @@ function wo(n, o) {
|
|
|
192
192
|
return h;
|
|
193
193
|
}
|
|
194
194
|
var Po = "[object Arguments]";
|
|
195
|
-
function
|
|
196
|
-
return
|
|
195
|
+
function Tn(n) {
|
|
196
|
+
return at(n) && it(n) == Po;
|
|
197
197
|
}
|
|
198
|
-
var mi = Object.prototype, Co = mi.hasOwnProperty, ko = mi.propertyIsEnumerable, Ao =
|
|
198
|
+
var mi = Object.prototype, Co = mi.hasOwnProperty, ko = mi.propertyIsEnumerable, Ao = Tn(/* @__PURE__ */ function() {
|
|
199
199
|
return arguments;
|
|
200
|
-
}()) ?
|
|
201
|
-
return
|
|
200
|
+
}()) ? Tn : function(n) {
|
|
201
|
+
return at(n) && Co.call(n, "callee") && !ko.call(n, "callee");
|
|
202
202
|
};
|
|
203
203
|
function Io() {
|
|
204
204
|
return !1;
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var _i = typeof exports == "object" && exports && !exports.nodeType && exports, Nn = _i && typeof module == "object" && module && !module.nodeType && module, Do = Nn && Nn.exports === _i, xn = Do ? ue.Buffer : void 0, Lo = xn ? xn.isBuffer : void 0, bi = Lo || Io, Mo = "[object Arguments]", Fo = "[object Array]", Uo = "[object Boolean]", jo = "[object Date]", Bo = "[object Error]", $o = "[object Function]", Vo = "[object Map]", Go = "[object Number]", Yo = "[object Object]", zo = "[object RegExp]", Xo = "[object Set]", Wo = "[object String]", Ho = "[object WeakMap]", Jo = "[object ArrayBuffer]", Ko = "[object DataView]", qo = "[object Float32Array]", Zo = "[object Float64Array]", Qo = "[object Int8Array]", eu = "[object Int16Array]", tu = "[object Int32Array]", ru = "[object Uint8Array]", nu = "[object Uint8ClampedArray]", iu = "[object Uint16Array]", au = "[object Uint32Array]", U = {};
|
|
207
207
|
U[qo] = U[Zo] = U[Qo] = U[eu] = U[tu] = U[ru] = U[nu] = U[iu] = U[au] = !0;
|
|
208
208
|
U[Mo] = U[Fo] = U[Jo] = U[Uo] = U[Ko] = U[jo] = U[Bo] = U[$o] = U[Vo] = U[Go] = U[Yo] = U[zo] = U[Xo] = U[Wo] = U[Ho] = !1;
|
|
209
209
|
function ou(n) {
|
|
210
|
-
return
|
|
210
|
+
return at(n) && vi(n.length) && !!U[it(n)];
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Nr(n) {
|
|
213
213
|
return function(o) {
|
|
214
214
|
return n(o);
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var gi = typeof exports == "object" && exports && !exports.nodeType && exports, tt = gi && typeof module == "object" && module && !module.nodeType && module, uu = tt && tt.exports === gi, Zt = uu && li.process, Be = function() {
|
|
218
218
|
try {
|
|
219
|
-
var n =
|
|
220
|
-
return n ||
|
|
219
|
+
var n = tt && tt.require && tt.require("util").types;
|
|
220
|
+
return n || Zt && Zt.binding && Zt.binding("util");
|
|
221
221
|
} catch {
|
|
222
222
|
}
|
|
223
|
-
}(),
|
|
224
|
-
function
|
|
225
|
-
var l =
|
|
223
|
+
}(), Sn = Be && Be.isTypedArray, su = Sn ? Nr(Sn) : ou, lu = Object.prototype, cu = lu.hasOwnProperty;
|
|
224
|
+
function Ei(n, o) {
|
|
225
|
+
var l = Or(n), h = !l && Ao(n), _ = !l && !h && bi(n), g = !l && !h && !_ && su(n), y = l || h || _ || g, O = y ? wo(n.length, String) : [], T = O.length;
|
|
226
226
|
for (var r in n)
|
|
227
|
-
(o || cu.call(n, r)) && !(
|
|
227
|
+
(o || cu.call(n, r)) && !(y && // 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
|
-
|
|
230
|
-
|
|
231
|
-
Oo(r,
|
|
229
|
+
_ && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
230
|
+
g && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
231
|
+
Oo(r, T))) && O.push(r);
|
|
232
232
|
return O;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Ri(n, o) {
|
|
235
235
|
return function(l) {
|
|
236
236
|
return n(o(l));
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
var fu =
|
|
239
|
+
var fu = Ri(Object.keys, Object), pu = Object.prototype, du = pu.hasOwnProperty;
|
|
240
240
|
function hu(n) {
|
|
241
|
-
if (!
|
|
241
|
+
if (!Tr(n))
|
|
242
242
|
return fu(n);
|
|
243
243
|
var o = [];
|
|
244
244
|
for (var l in Object(n))
|
|
245
245
|
du.call(n, l) && l != "constructor" && o.push(l);
|
|
246
246
|
return o;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
return
|
|
248
|
+
function xr(n) {
|
|
249
|
+
return yi(n) ? Ei(n) : hu(n);
|
|
250
250
|
}
|
|
251
251
|
function vu(n) {
|
|
252
252
|
var o = [];
|
|
@@ -255,21 +255,21 @@ function vu(n) {
|
|
|
255
255
|
o.push(l);
|
|
256
256
|
return o;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
258
|
+
var yu = Object.prototype, mu = yu.hasOwnProperty;
|
|
259
259
|
function _u(n) {
|
|
260
|
-
if (!
|
|
260
|
+
if (!ot(n))
|
|
261
261
|
return vu(n);
|
|
262
|
-
var o =
|
|
262
|
+
var o = Tr(n), l = [];
|
|
263
263
|
for (var h in n)
|
|
264
|
-
h == "constructor" && (o || !
|
|
264
|
+
h == "constructor" && (o || !mu.call(n, h)) || l.push(h);
|
|
265
265
|
return l;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
return
|
|
267
|
+
function Sr(n) {
|
|
268
|
+
return yi(n) ? Ei(n, !0) : _u(n);
|
|
269
269
|
}
|
|
270
|
-
var
|
|
270
|
+
var rt = we(Object, "create");
|
|
271
271
|
function bu() {
|
|
272
|
-
this.__data__ =
|
|
272
|
+
this.__data__ = rt ? rt(null) : {}, this.size = 0;
|
|
273
273
|
}
|
|
274
274
|
function gu(n) {
|
|
275
275
|
var o = this.has(n) && delete this.__data__[n];
|
|
@@ -278,7 +278,7 @@ function gu(n) {
|
|
|
278
278
|
var Eu = "__lodash_hash_undefined__", Ru = Object.prototype, Ou = Ru.hasOwnProperty;
|
|
279
279
|
function Tu(n) {
|
|
280
280
|
var o = this.__data__;
|
|
281
|
-
if (
|
|
281
|
+
if (rt) {
|
|
282
282
|
var l = o[n];
|
|
283
283
|
return l === Eu ? void 0 : l;
|
|
284
284
|
}
|
|
@@ -287,12 +287,12 @@ function Tu(n) {
|
|
|
287
287
|
var Nu = Object.prototype, xu = Nu.hasOwnProperty;
|
|
288
288
|
function Su(n) {
|
|
289
289
|
var o = this.__data__;
|
|
290
|
-
return
|
|
290
|
+
return rt ? o[n] !== void 0 : xu.call(o, n);
|
|
291
291
|
}
|
|
292
292
|
var wu = "__lodash_hash_undefined__";
|
|
293
293
|
function Pu(n, o) {
|
|
294
294
|
var l = this.__data__;
|
|
295
|
-
return this.size += this.has(n) ? 0 : 1, l[n] =
|
|
295
|
+
return this.size += this.has(n) ? 0 : 1, l[n] = rt && o === void 0 ? wu : o, this;
|
|
296
296
|
}
|
|
297
297
|
function Ne(n) {
|
|
298
298
|
var o = -1, l = n == null ? 0 : n.length;
|
|
@@ -309,29 +309,29 @@ Ne.prototype.set = Pu;
|
|
|
309
309
|
function Cu() {
|
|
310
310
|
this.__data__ = [], this.size = 0;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Tt(n, o) {
|
|
313
313
|
for (var l = n.length; l--; )
|
|
314
|
-
if (
|
|
314
|
+
if (di(n[l][0], o))
|
|
315
315
|
return l;
|
|
316
316
|
return -1;
|
|
317
317
|
}
|
|
318
318
|
var ku = Array.prototype, Au = ku.splice;
|
|
319
319
|
function Iu(n) {
|
|
320
|
-
var o = this.__data__, l =
|
|
320
|
+
var o = this.__data__, l = Tt(o, n);
|
|
321
321
|
if (l < 0)
|
|
322
322
|
return !1;
|
|
323
323
|
var h = o.length - 1;
|
|
324
324
|
return l == h ? o.pop() : Au.call(o, l, 1), --this.size, !0;
|
|
325
325
|
}
|
|
326
326
|
function Du(n) {
|
|
327
|
-
var o = this.__data__, l =
|
|
327
|
+
var o = this.__data__, l = Tt(o, n);
|
|
328
328
|
return l < 0 ? void 0 : o[l][1];
|
|
329
329
|
}
|
|
330
330
|
function Lu(n) {
|
|
331
|
-
return
|
|
331
|
+
return Tt(this.__data__, n) > -1;
|
|
332
332
|
}
|
|
333
333
|
function Mu(n, o) {
|
|
334
|
-
var l = this.__data__, h =
|
|
334
|
+
var l = this.__data__, h = Tt(l, n);
|
|
335
335
|
return h < 0 ? (++this.size, l.push([n, o])) : l[h][1] = o, this;
|
|
336
336
|
}
|
|
337
337
|
function de(n) {
|
|
@@ -346,11 +346,11 @@ de.prototype.delete = Iu;
|
|
|
346
346
|
de.prototype.get = Du;
|
|
347
347
|
de.prototype.has = Lu;
|
|
348
348
|
de.prototype.set = Mu;
|
|
349
|
-
var
|
|
349
|
+
var nt = we(ue, "Map");
|
|
350
350
|
function Fu() {
|
|
351
351
|
this.size = 0, this.__data__ = {
|
|
352
352
|
hash: new Ne(),
|
|
353
|
-
map: new (
|
|
353
|
+
map: new (nt || de)(),
|
|
354
354
|
string: new Ne()
|
|
355
355
|
};
|
|
356
356
|
}
|
|
@@ -358,42 +358,42 @@ function Uu(n) {
|
|
|
358
358
|
var o = typeof n;
|
|
359
359
|
return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? n !== "__proto__" : n === null;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Nt(n, o) {
|
|
362
362
|
var l = n.__data__;
|
|
363
363
|
return Uu(o) ? l[typeof o == "string" ? "string" : "hash"] : l.map;
|
|
364
364
|
}
|
|
365
365
|
function ju(n) {
|
|
366
|
-
var o =
|
|
366
|
+
var o = Nt(this, n).delete(n);
|
|
367
367
|
return this.size -= o ? 1 : 0, o;
|
|
368
368
|
}
|
|
369
369
|
function Bu(n) {
|
|
370
|
-
return
|
|
370
|
+
return Nt(this, n).get(n);
|
|
371
371
|
}
|
|
372
372
|
function $u(n) {
|
|
373
|
-
return
|
|
373
|
+
return Nt(this, n).has(n);
|
|
374
374
|
}
|
|
375
375
|
function Vu(n, o) {
|
|
376
|
-
var l =
|
|
376
|
+
var l = Nt(this, n), h = l.size;
|
|
377
377
|
return l.set(n, o), this.size += l.size == h ? 0 : 1, this;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function Ve(n) {
|
|
380
380
|
var o = -1, l = n == null ? 0 : n.length;
|
|
381
381
|
for (this.clear(); ++o < l; ) {
|
|
382
382
|
var h = n[o];
|
|
383
383
|
this.set(h[0], h[1]);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
function
|
|
392
|
-
for (var l = -1, h = o.length,
|
|
393
|
-
n[
|
|
386
|
+
Ve.prototype.clear = Fu;
|
|
387
|
+
Ve.prototype.delete = ju;
|
|
388
|
+
Ve.prototype.get = Bu;
|
|
389
|
+
Ve.prototype.has = $u;
|
|
390
|
+
Ve.prototype.set = Vu;
|
|
391
|
+
function Oi(n, o) {
|
|
392
|
+
for (var l = -1, h = o.length, _ = n.length; ++l < h; )
|
|
393
|
+
n[_ + l] = o[l];
|
|
394
394
|
return n;
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var Ti = Ri(Object.getPrototypeOf, Object);
|
|
397
397
|
function Gu() {
|
|
398
398
|
this.__data__ = new de(), this.size = 0;
|
|
399
399
|
}
|
|
@@ -412,85 +412,85 @@ function Hu(n, o) {
|
|
|
412
412
|
var l = this.__data__;
|
|
413
413
|
if (l instanceof de) {
|
|
414
414
|
var h = l.__data__;
|
|
415
|
-
if (!
|
|
415
|
+
if (!nt || h.length < Wu - 1)
|
|
416
416
|
return h.push([n, o]), this.size = ++l.size, this;
|
|
417
|
-
l = this.__data__ = new
|
|
417
|
+
l = this.__data__ = new Ve(h);
|
|
418
418
|
}
|
|
419
419
|
return l.set(n, o), this.size = l.size, this;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Ge(n) {
|
|
422
422
|
var o = this.__data__ = new de(n);
|
|
423
423
|
this.size = o.size;
|
|
424
424
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
425
|
+
Ge.prototype.clear = Gu;
|
|
426
|
+
Ge.prototype.delete = Yu;
|
|
427
|
+
Ge.prototype.get = zu;
|
|
428
|
+
Ge.prototype.has = Xu;
|
|
429
|
+
Ge.prototype.set = Hu;
|
|
430
430
|
function Ju(n, o) {
|
|
431
|
-
return n &&
|
|
431
|
+
return n && Ot(o, xr(o), n);
|
|
432
432
|
}
|
|
433
433
|
function Ku(n, o) {
|
|
434
|
-
return n &&
|
|
434
|
+
return n && Ot(o, Sr(o), n);
|
|
435
435
|
}
|
|
436
|
-
var
|
|
436
|
+
var Ni = typeof exports == "object" && exports && !exports.nodeType && exports, wn = Ni && typeof module == "object" && module && !module.nodeType && module, qu = wn && wn.exports === Ni, Pn = qu ? ue.Buffer : void 0, Cn = Pn ? Pn.allocUnsafe : void 0;
|
|
437
437
|
function Zu(n, o) {
|
|
438
438
|
if (o)
|
|
439
439
|
return n.slice();
|
|
440
|
-
var l = n.length, h =
|
|
440
|
+
var l = n.length, h = Cn ? Cn(l) : new n.constructor(l);
|
|
441
441
|
return n.copy(h), h;
|
|
442
442
|
}
|
|
443
443
|
function Qu(n, o) {
|
|
444
|
-
for (var l = -1, h = n == null ? 0 : n.length,
|
|
445
|
-
var
|
|
446
|
-
o(
|
|
444
|
+
for (var l = -1, h = n == null ? 0 : n.length, _ = 0, g = []; ++l < h; ) {
|
|
445
|
+
var y = n[l];
|
|
446
|
+
o(y, l, n) && (g[_++] = y);
|
|
447
447
|
}
|
|
448
|
-
return
|
|
448
|
+
return g;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function xi() {
|
|
451
451
|
return [];
|
|
452
452
|
}
|
|
453
|
-
var es = Object.prototype, ts = es.propertyIsEnumerable,
|
|
454
|
-
return n == null ? [] : (n = Object(n), Qu(
|
|
453
|
+
var es = Object.prototype, ts = es.propertyIsEnumerable, kn = Object.getOwnPropertySymbols, wr = kn ? function(n) {
|
|
454
|
+
return n == null ? [] : (n = Object(n), Qu(kn(n), function(o) {
|
|
455
455
|
return ts.call(n, o);
|
|
456
456
|
}));
|
|
457
|
-
} :
|
|
457
|
+
} : xi;
|
|
458
458
|
function rs(n, o) {
|
|
459
|
-
return
|
|
459
|
+
return Ot(n, wr(n), o);
|
|
460
460
|
}
|
|
461
|
-
var ns = Object.getOwnPropertySymbols,
|
|
461
|
+
var ns = Object.getOwnPropertySymbols, Si = ns ? function(n) {
|
|
462
462
|
for (var o = []; n; )
|
|
463
|
-
|
|
463
|
+
Oi(o, wr(n)), n = Ti(n);
|
|
464
464
|
return o;
|
|
465
|
-
} :
|
|
465
|
+
} : xi;
|
|
466
466
|
function is(n, o) {
|
|
467
|
-
return
|
|
467
|
+
return Ot(n, Si(n), o);
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function wi(n, o, l) {
|
|
470
470
|
var h = o(n);
|
|
471
|
-
return
|
|
471
|
+
return Or(n) ? h : Oi(h, l(n));
|
|
472
472
|
}
|
|
473
473
|
function as(n) {
|
|
474
|
-
return
|
|
474
|
+
return wi(n, xr, wr);
|
|
475
475
|
}
|
|
476
476
|
function os(n) {
|
|
477
|
-
return
|
|
477
|
+
return wi(n, Sr, Si);
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
(
|
|
481
|
-
var o =
|
|
479
|
+
var tr = we(ue, "DataView"), rr = we(ue, "Promise"), nr = we(ue, "Set"), An = "[object Map]", us = "[object Object]", In = "[object Promise]", Dn = "[object Set]", Ln = "[object WeakMap]", Mn = "[object DataView]", ss = Se(tr), ls = Se(nt), cs = Se(rr), fs = Se(nr), ps = Se(er), pe = it;
|
|
480
|
+
(tr && pe(new tr(new ArrayBuffer(1))) != Mn || nt && pe(new nt()) != An || rr && pe(rr.resolve()) != In || nr && pe(new nr()) != Dn || er && pe(new er()) != Ln) && (pe = function(n) {
|
|
481
|
+
var o = it(n), l = o == us ? n.constructor : void 0, h = l ? Se(l) : "";
|
|
482
482
|
if (h)
|
|
483
483
|
switch (h) {
|
|
484
484
|
case ss:
|
|
485
|
-
return
|
|
485
|
+
return Mn;
|
|
486
486
|
case ls:
|
|
487
|
-
return
|
|
487
|
+
return An;
|
|
488
488
|
case cs:
|
|
489
|
-
return
|
|
489
|
+
return In;
|
|
490
490
|
case fs:
|
|
491
|
-
return
|
|
491
|
+
return Dn;
|
|
492
492
|
case ps:
|
|
493
|
-
return
|
|
493
|
+
return Ln;
|
|
494
494
|
}
|
|
495
495
|
return o;
|
|
496
496
|
});
|
|
@@ -499,26 +499,26 @@ function vs(n) {
|
|
|
499
499
|
var o = n.length, l = new n.constructor(o);
|
|
500
500
|
return o && typeof n[0] == "string" && hs.call(n, "index") && (l.index = n.index, l.input = n.input), l;
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
function
|
|
502
|
+
var Fn = ue.Uint8Array;
|
|
503
|
+
function Pr(n) {
|
|
504
504
|
var o = new n.constructor(n.byteLength);
|
|
505
|
-
return new
|
|
505
|
+
return new Fn(o).set(new Fn(n)), o;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
var l = o ?
|
|
507
|
+
function ys(n, o) {
|
|
508
|
+
var l = o ? Pr(n.buffer) : n.buffer;
|
|
509
509
|
return new n.constructor(l, n.byteOffset, n.byteLength);
|
|
510
510
|
}
|
|
511
|
-
var
|
|
511
|
+
var ms = /\w*$/;
|
|
512
512
|
function _s(n) {
|
|
513
|
-
var o = new n.constructor(n.source,
|
|
513
|
+
var o = new n.constructor(n.source, ms.exec(n));
|
|
514
514
|
return o.lastIndex = n.lastIndex, o;
|
|
515
515
|
}
|
|
516
|
-
var
|
|
516
|
+
var Un = je ? je.prototype : void 0, jn = Un ? Un.valueOf : void 0;
|
|
517
517
|
function bs(n) {
|
|
518
|
-
return
|
|
518
|
+
return jn ? Object(jn.call(n)) : {};
|
|
519
519
|
}
|
|
520
520
|
function gs(n, o) {
|
|
521
|
-
var l = o ?
|
|
521
|
+
var l = o ? Pr(n.buffer) : n.buffer;
|
|
522
522
|
return new n.constructor(l, n.byteOffset, n.length);
|
|
523
523
|
}
|
|
524
524
|
var Es = "[object Boolean]", Rs = "[object Date]", Os = "[object Map]", Ts = "[object Number]", Ns = "[object RegExp]", xs = "[object Set]", Ss = "[object String]", ws = "[object Symbol]", Ps = "[object ArrayBuffer]", Cs = "[object DataView]", ks = "[object Float32Array]", As = "[object Float64Array]", Is = "[object Int8Array]", Ds = "[object Int16Array]", Ls = "[object Int32Array]", Ms = "[object Uint8Array]", Fs = "[object Uint8ClampedArray]", Us = "[object Uint16Array]", js = "[object Uint32Array]";
|
|
@@ -526,12 +526,12 @@ function Bs(n, o, l) {
|
|
|
526
526
|
var h = n.constructor;
|
|
527
527
|
switch (o) {
|
|
528
528
|
case Ps:
|
|
529
|
-
return
|
|
529
|
+
return Pr(n);
|
|
530
530
|
case Es:
|
|
531
531
|
case Rs:
|
|
532
532
|
return new h(+n);
|
|
533
533
|
case Cs:
|
|
534
|
-
return
|
|
534
|
+
return ys(n, l);
|
|
535
535
|
case ks:
|
|
536
536
|
case As:
|
|
537
537
|
case Is:
|
|
@@ -556,59 +556,59 @@ function Bs(n, o, l) {
|
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
558
|
function $s(n) {
|
|
559
|
-
return typeof n.constructor == "function" && !
|
|
559
|
+
return typeof n.constructor == "function" && !Tr(n) ? _o(Ti(n)) : {};
|
|
560
560
|
}
|
|
561
561
|
var Vs = "[object Map]";
|
|
562
562
|
function Gs(n) {
|
|
563
|
-
return
|
|
563
|
+
return at(n) && pe(n) == Vs;
|
|
564
564
|
}
|
|
565
|
-
var
|
|
565
|
+
var Bn = Be && Be.isMap, Ys = Bn ? Nr(Bn) : Gs, zs = "[object Set]";
|
|
566
566
|
function Xs(n) {
|
|
567
|
-
return
|
|
568
|
-
}
|
|
569
|
-
var
|
|
570
|
-
M[
|
|
571
|
-
M[el] = M[
|
|
572
|
-
function
|
|
573
|
-
var
|
|
574
|
-
if (
|
|
575
|
-
return
|
|
576
|
-
if (!
|
|
567
|
+
return at(n) && pe(n) == zs;
|
|
568
|
+
}
|
|
569
|
+
var $n = Be && Be.isSet, Ws = $n ? Nr($n) : Xs, Hs = 1, Js = 2, Ks = 4, Pi = "[object Arguments]", qs = "[object Array]", Zs = "[object Boolean]", Qs = "[object Date]", el = "[object Error]", Ci = "[object Function]", tl = "[object GeneratorFunction]", rl = "[object Map]", nl = "[object Number]", ki = "[object Object]", il = "[object RegExp]", al = "[object Set]", ol = "[object String]", ul = "[object Symbol]", sl = "[object WeakMap]", ll = "[object ArrayBuffer]", cl = "[object DataView]", fl = "[object Float32Array]", pl = "[object Float64Array]", dl = "[object Int8Array]", hl = "[object Int16Array]", vl = "[object Int32Array]", yl = "[object Uint8Array]", ml = "[object Uint8ClampedArray]", _l = "[object Uint16Array]", bl = "[object Uint32Array]", M = {};
|
|
570
|
+
M[Pi] = M[qs] = M[ll] = M[cl] = M[Zs] = M[Qs] = M[fl] = M[pl] = M[dl] = M[hl] = M[vl] = M[rl] = M[nl] = M[ki] = M[il] = M[al] = M[ol] = M[ul] = M[yl] = M[ml] = M[_l] = M[bl] = !0;
|
|
571
|
+
M[el] = M[Ci] = M[sl] = !1;
|
|
572
|
+
function gt(n, o, l, h, _, g) {
|
|
573
|
+
var y, O = o & Hs, T = o & Js, r = o & Ks;
|
|
574
|
+
if (y !== void 0)
|
|
575
|
+
return y;
|
|
576
|
+
if (!ot(n))
|
|
577
577
|
return n;
|
|
578
|
-
var t =
|
|
578
|
+
var t = Or(n);
|
|
579
579
|
if (t) {
|
|
580
|
-
if (
|
|
581
|
-
return bo(n,
|
|
580
|
+
if (y = vs(n), !O)
|
|
581
|
+
return bo(n, y);
|
|
582
582
|
} else {
|
|
583
|
-
var e = pe(n), i = e ==
|
|
584
|
-
if (
|
|
583
|
+
var e = pe(n), i = e == Ci || e == tl;
|
|
584
|
+
if (bi(n))
|
|
585
585
|
return Zu(n, O);
|
|
586
|
-
if (e ==
|
|
587
|
-
if (
|
|
588
|
-
return
|
|
586
|
+
if (e == ki || e == Pi || i && !_) {
|
|
587
|
+
if (y = T || i ? {} : $s(n), !O)
|
|
588
|
+
return T ? is(n, Ku(y, n)) : rs(n, Ju(y, n));
|
|
589
589
|
} else {
|
|
590
590
|
if (!M[e])
|
|
591
|
-
return
|
|
592
|
-
|
|
591
|
+
return _ ? n : {};
|
|
592
|
+
y = Bs(n, e, O);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
|
|
596
|
-
var s =
|
|
595
|
+
g || (g = new Ge());
|
|
596
|
+
var s = g.get(n);
|
|
597
597
|
if (s)
|
|
598
598
|
return s;
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
}) : Ys(n) && n.forEach(function(a,
|
|
602
|
-
|
|
599
|
+
g.set(n, y), Ws(n) ? n.forEach(function(a) {
|
|
600
|
+
y.add(gt(a, o, l, a, n, g));
|
|
601
|
+
}) : Ys(n) && n.forEach(function(a, f) {
|
|
602
|
+
y.set(f, gt(a, o, l, f, n, g));
|
|
603
603
|
});
|
|
604
|
-
var u = r ?
|
|
605
|
-
return go(c || n, function(a,
|
|
606
|
-
c && (
|
|
607
|
-
}),
|
|
604
|
+
var u = r ? T ? os : as : T ? Sr : xr, c = t ? void 0 : u(n);
|
|
605
|
+
return go(c || n, function(a, f) {
|
|
606
|
+
c && (f = a, a = n[f]), hi(y, f, gt(a, o, l, f, n, g));
|
|
607
|
+
}), y;
|
|
608
608
|
}
|
|
609
609
|
var gl = 1, El = 4;
|
|
610
610
|
function _e(n) {
|
|
611
|
-
return
|
|
611
|
+
return gt(n, gl | El);
|
|
612
612
|
}
|
|
613
613
|
function Rl(n, o) {
|
|
614
614
|
if (n === "page") {
|
|
@@ -622,99 +622,99 @@ function Rl(n, o) {
|
|
|
622
622
|
} else
|
|
623
623
|
console.assert(!1);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Vn(n, o) {
|
|
626
626
|
return n.array ? _e(o ? n.default : n.defaultArray) : _e(n.default);
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
function l(h,
|
|
630
|
-
if (
|
|
631
|
-
if (
|
|
628
|
+
function Gn(n, o) {
|
|
629
|
+
function l(h, _) {
|
|
630
|
+
if (_.ui) {
|
|
631
|
+
if (_.ui === "strInput" && _.static)
|
|
632
632
|
return;
|
|
633
|
-
h[
|
|
633
|
+
h[_.key] = Vn(_);
|
|
634
634
|
} else
|
|
635
|
-
|
|
636
|
-
h[
|
|
635
|
+
_.array ? h[_.key] = Vn(_) : _.children.forEach((g) => {
|
|
636
|
+
h[_.key] || (h[_.key] = {}), l(h[_.key], g);
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
639
|
o.forEach((h) => l(n, h));
|
|
640
640
|
}
|
|
641
|
-
function Ol(n, o, l, h,
|
|
642
|
-
const
|
|
643
|
-
if (!
|
|
644
|
-
console.error(`spawnNode prop tag not found, ${
|
|
641
|
+
function Ol(n, o, l, h, _) {
|
|
642
|
+
const g = `type=${n} subtype=${o} version=${l} ref=${h} keyOrRefid=${_}`, y = Rl(n, o);
|
|
643
|
+
if (!y) {
|
|
644
|
+
console.error(`spawnNode prop tag not found, ${g}`);
|
|
645
645
|
return;
|
|
646
646
|
}
|
|
647
|
-
const O =
|
|
647
|
+
const O = Ar[l];
|
|
648
648
|
if (!O) {
|
|
649
|
-
console.error(`spawnNode pkg not found version, ${
|
|
649
|
+
console.error(`spawnNode pkg not found version, ${g}`);
|
|
650
650
|
return;
|
|
651
651
|
}
|
|
652
|
-
const
|
|
652
|
+
const T = {
|
|
653
653
|
basic: {
|
|
654
654
|
id: "",
|
|
655
655
|
key: ""
|
|
656
656
|
}
|
|
657
|
-
}, r =
|
|
657
|
+
}, r = si(16);
|
|
658
658
|
if (h) {
|
|
659
|
-
const t = O.refKey, e =
|
|
659
|
+
const t = O.refKey, e = _;
|
|
660
660
|
if (!O.elements.has(t)) {
|
|
661
|
-
console.error(`spawnNode [ref] element not found in pkg, ${
|
|
661
|
+
console.error(`spawnNode [ref] element not found in pkg, ${g}`);
|
|
662
662
|
return;
|
|
663
663
|
}
|
|
664
664
|
const i = xe[t];
|
|
665
665
|
if (!i) {
|
|
666
|
-
console.error(`spawnNode [ref] element not found in global, ${
|
|
666
|
+
console.error(`spawnNode [ref] element not found in global, ${g}`);
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
669
|
-
const s = i.props[
|
|
669
|
+
const s = i.props[y];
|
|
670
670
|
if (!s) {
|
|
671
|
-
console.error(`spawnNode [ref] props not found, ${
|
|
671
|
+
console.error(`spawnNode [ref] props not found, ${g}`);
|
|
672
672
|
return;
|
|
673
673
|
}
|
|
674
|
-
|
|
674
|
+
Gn(T, s), T.basic.id = r, T.basic.key = t, T.ref = {
|
|
675
675
|
id: e
|
|
676
676
|
};
|
|
677
677
|
} else {
|
|
678
|
-
const t =
|
|
678
|
+
const t = _;
|
|
679
679
|
if (!O.elements.has(t)) {
|
|
680
|
-
console.error(`spawnNode [key] element not found in pkg, ${
|
|
680
|
+
console.error(`spawnNode [key] element not found in pkg, ${g}`);
|
|
681
681
|
return;
|
|
682
682
|
}
|
|
683
683
|
const e = xe[t];
|
|
684
684
|
if (!e) {
|
|
685
|
-
console.error(`spawnNode [key] element not found in global, ${
|
|
685
|
+
console.error(`spawnNode [key] element not found in global, ${g}`);
|
|
686
686
|
return;
|
|
687
687
|
}
|
|
688
|
-
const i = e.props[
|
|
688
|
+
const i = e.props[y];
|
|
689
689
|
if (!i) {
|
|
690
|
-
console.error(`spawnNode [key] props not found, ${
|
|
690
|
+
console.error(`spawnNode [key] props not found, ${g}`);
|
|
691
691
|
return;
|
|
692
692
|
}
|
|
693
|
-
|
|
693
|
+
Gn(T, i), T.basic.id = r, T.basic.key = t, e.slots.some((s) => s.key === "default") && (T.children = []);
|
|
694
694
|
}
|
|
695
|
-
return
|
|
695
|
+
return T;
|
|
696
696
|
}
|
|
697
697
|
function Yc(n, o) {
|
|
698
698
|
function l(h) {
|
|
699
699
|
if (h.basic.id === o)
|
|
700
700
|
return h;
|
|
701
701
|
if (h.children)
|
|
702
|
-
for (let
|
|
703
|
-
const
|
|
704
|
-
if (
|
|
705
|
-
return
|
|
702
|
+
for (let _ = 0; _ < h.children.length; _++) {
|
|
703
|
+
const g = l(h.children[_]);
|
|
704
|
+
if (g)
|
|
705
|
+
return g;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
for (let h = 0; h < n.length; h++) {
|
|
709
|
-
const
|
|
710
|
-
if (
|
|
711
|
-
return
|
|
709
|
+
const _ = l(n[h]);
|
|
710
|
+
if (_)
|
|
711
|
+
return _;
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
function Tl(n) {
|
|
715
715
|
function o(h) {
|
|
716
|
-
var
|
|
717
|
-
h.basic.id =
|
|
716
|
+
var _;
|
|
717
|
+
h.basic.id = si(16), (_ = h.children) == null || _.forEach((g) => o(g));
|
|
718
718
|
}
|
|
719
719
|
const l = _e(n);
|
|
720
720
|
return o(l), l;
|
|
@@ -725,54 +725,54 @@ function zc(n) {
|
|
|
725
725
|
o.push(Tl(l));
|
|
726
726
|
}), o;
|
|
727
727
|
}
|
|
728
|
-
const
|
|
728
|
+
const Ai = "runtimeEnv", Ii = "runtimeMode", Di = "runtimeDevice", Li = "runtimeDark", Mi = "runtimeType", Fi = "runtimeData", Ui = "runtimeDepends", ji = "runtimeInterpreter";
|
|
729
729
|
function Xc(n) {
|
|
730
|
-
be(
|
|
730
|
+
be(Ai, n);
|
|
731
731
|
}
|
|
732
|
-
function
|
|
733
|
-
return ge(
|
|
732
|
+
function Bi() {
|
|
733
|
+
return ge(Ai);
|
|
734
734
|
}
|
|
735
735
|
function Wc(n) {
|
|
736
|
-
be(
|
|
736
|
+
be(Ii, n);
|
|
737
737
|
}
|
|
738
738
|
function he() {
|
|
739
|
-
return ge(
|
|
739
|
+
return ge(Ii);
|
|
740
740
|
}
|
|
741
741
|
function Hc(n) {
|
|
742
|
-
be(
|
|
742
|
+
be(Di, mr(n));
|
|
743
743
|
}
|
|
744
|
-
function
|
|
745
|
-
return ge(
|
|
744
|
+
function $i() {
|
|
745
|
+
return ge(Di);
|
|
746
746
|
}
|
|
747
747
|
function Jc(n) {
|
|
748
|
-
be(
|
|
748
|
+
be(Li, mr(n));
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
return ge(
|
|
750
|
+
function Ye() {
|
|
751
|
+
return ge(Li);
|
|
752
752
|
}
|
|
753
753
|
function Kc(n) {
|
|
754
|
-
be(
|
|
754
|
+
be(Mi, n);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
return ge(
|
|
756
|
+
function Cr() {
|
|
757
|
+
return ge(Mi);
|
|
758
758
|
}
|
|
759
759
|
function qc(n) {
|
|
760
|
-
console.assert(
|
|
760
|
+
console.assert(ai(n)), be(Fi, n);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
763
|
-
return ge(
|
|
762
|
+
function kr() {
|
|
763
|
+
return ge(Fi);
|
|
764
764
|
}
|
|
765
765
|
function Zc(n) {
|
|
766
|
-
console.assert(
|
|
766
|
+
console.assert(ai(n)), be(Ui, mr(n));
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
return ge(
|
|
768
|
+
function Vi() {
|
|
769
|
+
return ge(Ui);
|
|
770
770
|
}
|
|
771
|
-
function
|
|
772
|
-
be(
|
|
771
|
+
function Gi(n) {
|
|
772
|
+
be(ji, n);
|
|
773
773
|
}
|
|
774
774
|
function Nl() {
|
|
775
|
-
return ge(
|
|
775
|
+
return ge(ji);
|
|
776
776
|
}
|
|
777
777
|
const xl = /* @__PURE__ */ oe({
|
|
778
778
|
__name: "index",
|
|
@@ -781,34 +781,34 @@ const xl = /* @__PURE__ */ oe({
|
|
|
781
781
|
outer: { type: Boolean }
|
|
782
782
|
},
|
|
783
783
|
setup(n) {
|
|
784
|
-
const o = n, l = he(), h =
|
|
784
|
+
const o = n, l = he(), h = Ye(), _ = Nl(), g = x(() => {
|
|
785
785
|
var i;
|
|
786
786
|
return (i = o.node.settings) == null ? void 0 : i.text;
|
|
787
|
-
}),
|
|
787
|
+
}), y = x(() => {
|
|
788
788
|
var i;
|
|
789
789
|
return (i = o.node.settings) == null ? void 0 : i.disabled;
|
|
790
|
-
}), O =
|
|
790
|
+
}), O = x(() => {
|
|
791
791
|
var i;
|
|
792
792
|
return (i = o.node.settings) == null ? void 0 : i.variant;
|
|
793
|
-
}),
|
|
793
|
+
}), T = x(() => {
|
|
794
794
|
var i;
|
|
795
795
|
return (i = o.node.settings) == null ? void 0 : i.density;
|
|
796
|
-
}), r =
|
|
796
|
+
}), r = x(() => {
|
|
797
797
|
var i;
|
|
798
798
|
return (i = o.node.settings) == null ? void 0 : i.block;
|
|
799
|
-
}), t =
|
|
800
|
-
if (l !== "runtime" || !
|
|
799
|
+
}), t = x(() => h.value ? "dark" : "light"), e = () => {
|
|
800
|
+
if (l !== "runtime" || !_.value)
|
|
801
801
|
return;
|
|
802
|
-
const i =
|
|
803
|
-
|
|
802
|
+
const i = _.value.nativeToPseudo(o.node.basic.id);
|
|
803
|
+
_.value.appendCode(`__triggerEvent__('${i}', 'click');`), _.value.run();
|
|
804
804
|
};
|
|
805
805
|
return (i, s) => {
|
|
806
806
|
const u = ie("v-btn");
|
|
807
807
|
return G(), Q(u, {
|
|
808
|
-
text:
|
|
809
|
-
disabled:
|
|
808
|
+
text: g.value,
|
|
809
|
+
disabled: y.value,
|
|
810
810
|
variant: O.value,
|
|
811
|
-
density:
|
|
811
|
+
density: T.value,
|
|
812
812
|
block: r.value,
|
|
813
813
|
theme: t.value,
|
|
814
814
|
onClick: e
|
|
@@ -822,11 +822,11 @@ const xl = /* @__PURE__ */ oe({
|
|
|
822
822
|
{ title: "x-runtime-lib.outlined", value: "outlined" },
|
|
823
823
|
{ title: "x-runtime-lib.text", value: "text" },
|
|
824
824
|
{ title: "x-runtime-lib.plain", value: "plain" }
|
|
825
|
-
],
|
|
825
|
+
], Yi = [
|
|
826
826
|
{ title: "x-runtime-lib.default", value: "default" },
|
|
827
827
|
{ title: "x-runtime-lib.comfortable", value: "comfortable" },
|
|
828
828
|
{ title: "x-runtime-lib.compact", value: "compact" }
|
|
829
|
-
],
|
|
829
|
+
], ir = "btn_v1", ar = "card_v1", or = "chip_v1", ur = "combobox_v1", sr = "container_v1", lr = "data_table_v1", cr = "dialog_v1", fr = "globality_v1", pr = "number_input_v1", dr = "rating_v1", Et = "ref_v1", hr = "select_v1", vr = "text_area_v1", yr = "text_field_v1", F = {
|
|
830
830
|
key: "basic",
|
|
831
831
|
name: "x-runtime-lib.basic",
|
|
832
832
|
children: [
|
|
@@ -851,7 +851,7 @@ const xl = /* @__PURE__ */ oe({
|
|
|
851
851
|
default: ""
|
|
852
852
|
}
|
|
853
853
|
]
|
|
854
|
-
},
|
|
854
|
+
}, Yn = {
|
|
855
855
|
key: "settings",
|
|
856
856
|
name: "x-runtime-lib.settings",
|
|
857
857
|
children: [
|
|
@@ -878,7 +878,7 @@ const xl = /* @__PURE__ */ oe({
|
|
|
878
878
|
key: "density",
|
|
879
879
|
name: "x-runtime-lib.density",
|
|
880
880
|
ui: "select",
|
|
881
|
-
items:
|
|
881
|
+
items: Yi,
|
|
882
882
|
default: "default"
|
|
883
883
|
},
|
|
884
884
|
{
|
|
@@ -889,7 +889,7 @@ const xl = /* @__PURE__ */ oe({
|
|
|
889
889
|
}
|
|
890
890
|
]
|
|
891
891
|
}, wl = {
|
|
892
|
-
key:
|
|
892
|
+
key: ir,
|
|
893
893
|
name: "x-runtime-lib.button",
|
|
894
894
|
comp: xl,
|
|
895
895
|
slots: [],
|
|
@@ -902,26 +902,26 @@ const xl = /* @__PURE__ */ oe({
|
|
|
902
902
|
],
|
|
903
903
|
methods: [],
|
|
904
904
|
props: {
|
|
905
|
-
pageCommon: [F,
|
|
906
|
-
compCommon: [F,
|
|
905
|
+
pageCommon: [F, Yn],
|
|
906
|
+
compCommon: [F, Yn]
|
|
907
907
|
}
|
|
908
|
-
},
|
|
908
|
+
}, xt = (n, o) => {
|
|
909
909
|
const l = n.__vccOpts || n;
|
|
910
|
-
for (const [h,
|
|
911
|
-
l[h] =
|
|
910
|
+
for (const [h, _] of o)
|
|
911
|
+
l[h] = _;
|
|
912
912
|
return l;
|
|
913
913
|
}, Pl = {};
|
|
914
914
|
function Cl(n, o) {
|
|
915
915
|
const l = ie("v-card");
|
|
916
916
|
return G(), Q(l, null, {
|
|
917
917
|
default: ee(() => [
|
|
918
|
-
|
|
918
|
+
_r(n.$slots, "default")
|
|
919
919
|
]),
|
|
920
920
|
_: 3
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
|
-
const kl = /* @__PURE__ */
|
|
924
|
-
key:
|
|
923
|
+
const kl = /* @__PURE__ */ xt(Pl, [["render", Cl]]), Al = {
|
|
924
|
+
key: ar,
|
|
925
925
|
name: "x-runtime-lib.card",
|
|
926
926
|
comp: kl,
|
|
927
927
|
slots: [
|
|
@@ -941,8 +941,8 @@ function Dl(n, o) {
|
|
|
941
941
|
const l = ie("v-chip");
|
|
942
942
|
return G(), Q(l);
|
|
943
943
|
}
|
|
944
|
-
const Ll = /* @__PURE__ */
|
|
945
|
-
key:
|
|
944
|
+
const Ll = /* @__PURE__ */ xt(Il, [["render", Dl]]), Ml = {
|
|
945
|
+
key: or,
|
|
946
946
|
name: "x-runtime-lib.chip",
|
|
947
947
|
comp: Ll,
|
|
948
948
|
slots: [],
|
|
@@ -959,50 +959,50 @@ const Ll = /* @__PURE__ */ Tt(Il, [["render", Dl]]), Ml = {
|
|
|
959
959
|
outer: { type: Boolean }
|
|
960
960
|
},
|
|
961
961
|
setup(n) {
|
|
962
|
-
const o = n, l = he(), h =
|
|
962
|
+
const o = n, l = he(), h = Ye(), _ = x(() => {
|
|
963
963
|
var e;
|
|
964
964
|
return (e = o.node.settings) == null ? void 0 : e.value;
|
|
965
|
-
}),
|
|
965
|
+
}), g = x(() => {
|
|
966
966
|
var e;
|
|
967
967
|
return (e = o.node.settings) == null ? void 0 : e.label;
|
|
968
|
-
}),
|
|
968
|
+
}), y = x(() => {
|
|
969
969
|
var e;
|
|
970
970
|
return (e = o.node.settings) == null ? void 0 : e.placeholder;
|
|
971
|
-
}), O =
|
|
971
|
+
}), O = x(() => {
|
|
972
972
|
var e;
|
|
973
973
|
return (e = o.node.settings) == null ? void 0 : e.hideDetails;
|
|
974
|
-
}),
|
|
974
|
+
}), T = x(() => {
|
|
975
975
|
var e;
|
|
976
976
|
return (e = o.node.settings) == null ? void 0 : e.singleLine;
|
|
977
|
-
}), r =
|
|
977
|
+
}), r = x(() => {
|
|
978
978
|
var e;
|
|
979
979
|
return l !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
980
|
-
}), t =
|
|
980
|
+
}), t = x(() => h.value ? "dark" : "light");
|
|
981
981
|
return (e, i) => {
|
|
982
982
|
const s = ie("v-combobox");
|
|
983
|
-
return
|
|
983
|
+
return Fe(l) === "editor" ? (G(), $e("div", Fl, [
|
|
984
984
|
Z(s, {
|
|
985
|
-
"model-value":
|
|
986
|
-
label:
|
|
987
|
-
placeholder:
|
|
985
|
+
"model-value": _.value,
|
|
986
|
+
label: g.value,
|
|
987
|
+
placeholder: y.value,
|
|
988
988
|
"hide-details": O.value,
|
|
989
|
-
"single-line":
|
|
989
|
+
"single-line": T.value,
|
|
990
990
|
readonly: r.value,
|
|
991
991
|
theme: t.value
|
|
992
992
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
993
993
|
])) : (G(), Q(s, {
|
|
994
994
|
key: 1,
|
|
995
|
-
"model-value":
|
|
996
|
-
label:
|
|
997
|
-
placeholder:
|
|
995
|
+
"model-value": _.value,
|
|
996
|
+
label: g.value,
|
|
997
|
+
placeholder: y.value,
|
|
998
998
|
"hide-details": O.value,
|
|
999
|
-
"single-line":
|
|
999
|
+
"single-line": T.value,
|
|
1000
1000
|
readonly: r.value,
|
|
1001
1001
|
theme: t.value
|
|
1002
1002
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"]));
|
|
1003
1003
|
};
|
|
1004
1004
|
}
|
|
1005
|
-
}),
|
|
1005
|
+
}), zn = {
|
|
1006
1006
|
key: "settings",
|
|
1007
1007
|
name: "x-runtime-lib.settings",
|
|
1008
1008
|
children: [
|
|
@@ -1044,110 +1044,110 @@ const Ll = /* @__PURE__ */ Tt(Il, [["render", Dl]]), Ml = {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
]
|
|
1046
1046
|
}, jl = {
|
|
1047
|
-
key:
|
|
1047
|
+
key: ur,
|
|
1048
1048
|
name: "x-runtime-lib.combobox",
|
|
1049
1049
|
comp: Ul,
|
|
1050
1050
|
slots: [],
|
|
1051
1051
|
events: [],
|
|
1052
1052
|
methods: [],
|
|
1053
1053
|
props: {
|
|
1054
|
-
pageCommon: [F,
|
|
1055
|
-
compCommon: [F,
|
|
1054
|
+
pageCommon: [F, zn],
|
|
1055
|
+
compCommon: [F, zn]
|
|
1056
1056
|
}
|
|
1057
1057
|
};
|
|
1058
|
-
function
|
|
1059
|
-
const h =
|
|
1058
|
+
function zi(n, o, l) {
|
|
1059
|
+
const h = x(() => {
|
|
1060
1060
|
var t;
|
|
1061
1061
|
return (t = l.node.size) == null ? void 0 : t.width;
|
|
1062
|
-
}),
|
|
1062
|
+
}), _ = x(() => {
|
|
1063
1063
|
var t;
|
|
1064
1064
|
return (t = l.node.size) == null ? void 0 : t.minWidth;
|
|
1065
|
-
}),
|
|
1065
|
+
}), g = x(() => {
|
|
1066
1066
|
var t;
|
|
1067
1067
|
return (t = l.node.size) == null ? void 0 : t.maxWidth;
|
|
1068
|
-
}),
|
|
1068
|
+
}), y = x(() => {
|
|
1069
1069
|
var t, e;
|
|
1070
1070
|
if (l.outer && n === "editor") {
|
|
1071
|
-
const i =
|
|
1071
|
+
const i = Kt((t = l.node.size) == null ? void 0 : t.height);
|
|
1072
1072
|
if (i)
|
|
1073
1073
|
return i / 100 * o.value.height + "px";
|
|
1074
1074
|
}
|
|
1075
1075
|
return (e = l.node.size) == null ? void 0 : e.height;
|
|
1076
|
-
}), O =
|
|
1076
|
+
}), O = x(() => {
|
|
1077
1077
|
var t, e;
|
|
1078
1078
|
if (l.outer && n === "editor") {
|
|
1079
|
-
const i =
|
|
1079
|
+
const i = Kt((t = l.node.size) == null ? void 0 : t.minHeight);
|
|
1080
1080
|
if (i)
|
|
1081
1081
|
return i / 100 * o.value.height + "px";
|
|
1082
1082
|
}
|
|
1083
1083
|
return (e = l.node.size) == null ? void 0 : e.minHeight;
|
|
1084
|
-
}),
|
|
1084
|
+
}), T = x(() => {
|
|
1085
1085
|
var t, e;
|
|
1086
1086
|
if (l.outer && n === "editor") {
|
|
1087
|
-
const i =
|
|
1087
|
+
const i = Kt((t = l.node.size) == null ? void 0 : t.maxHeight);
|
|
1088
1088
|
if (i)
|
|
1089
1089
|
return i / 100 * o.value.height + "px";
|
|
1090
1090
|
}
|
|
1091
1091
|
return (e = l.node.size) == null ? void 0 : e.maxHeight;
|
|
1092
1092
|
});
|
|
1093
1093
|
function r(t) {
|
|
1094
|
-
h.value && (t.width = h.value),
|
|
1094
|
+
h.value && (t.width = h.value), _.value && (t.minWidth = _.value), g.value && (t.maxWidth = g.value), y.value && (t.height = y.value), O.value && (t.minHeight = O.value), T.value && (t.maxHeight = T.value);
|
|
1095
1095
|
}
|
|
1096
|
-
return { width: h, minWidth:
|
|
1096
|
+
return { width: h, minWidth: _, maxWidth: g, height: y, minHeight: O, maxHeight: T, applySize: r };
|
|
1097
1097
|
}
|
|
1098
1098
|
function Bl(n) {
|
|
1099
|
-
const o =
|
|
1100
|
-
var
|
|
1101
|
-
return (
|
|
1102
|
-
}), l =
|
|
1103
|
-
var
|
|
1104
|
-
return (
|
|
1105
|
-
}), h =
|
|
1106
|
-
var
|
|
1107
|
-
return (
|
|
1108
|
-
}),
|
|
1109
|
-
var
|
|
1110
|
-
return (
|
|
1099
|
+
const o = x(() => {
|
|
1100
|
+
var y;
|
|
1101
|
+
return (y = n.node.margin) == null ? void 0 : y.top;
|
|
1102
|
+
}), l = x(() => {
|
|
1103
|
+
var y;
|
|
1104
|
+
return (y = n.node.margin) == null ? void 0 : y.left;
|
|
1105
|
+
}), h = x(() => {
|
|
1106
|
+
var y;
|
|
1107
|
+
return (y = n.node.margin) == null ? void 0 : y.bottom;
|
|
1108
|
+
}), _ = x(() => {
|
|
1109
|
+
var y;
|
|
1110
|
+
return (y = n.node.margin) == null ? void 0 : y.right;
|
|
1111
1111
|
});
|
|
1112
|
-
function
|
|
1113
|
-
o.value && (
|
|
1112
|
+
function g(y) {
|
|
1113
|
+
o.value && (y.marginTop = o.value), l.value && (y.marginLeft = l.value), h.value && (y.marginBottom = h.value), _.value && (y.marginRight = _.value);
|
|
1114
1114
|
}
|
|
1115
|
-
return { marginTop: o, marginLeft: l, marginBottom: h, marginRight:
|
|
1115
|
+
return { marginTop: o, marginLeft: l, marginBottom: h, marginRight: _, applyMargin: g };
|
|
1116
1116
|
}
|
|
1117
1117
|
function $l(n) {
|
|
1118
|
-
const o =
|
|
1119
|
-
var
|
|
1120
|
-
return (
|
|
1121
|
-
}), l =
|
|
1122
|
-
var
|
|
1123
|
-
return (
|
|
1124
|
-
}), h =
|
|
1125
|
-
var
|
|
1126
|
-
return (
|
|
1127
|
-
}),
|
|
1128
|
-
var
|
|
1129
|
-
return (
|
|
1118
|
+
const o = x(() => {
|
|
1119
|
+
var y;
|
|
1120
|
+
return (y = n.node.padding) == null ? void 0 : y.top;
|
|
1121
|
+
}), l = x(() => {
|
|
1122
|
+
var y;
|
|
1123
|
+
return (y = n.node.padding) == null ? void 0 : y.left;
|
|
1124
|
+
}), h = x(() => {
|
|
1125
|
+
var y;
|
|
1126
|
+
return (y = n.node.padding) == null ? void 0 : y.bottom;
|
|
1127
|
+
}), _ = x(() => {
|
|
1128
|
+
var y;
|
|
1129
|
+
return (y = n.node.padding) == null ? void 0 : y.right;
|
|
1130
1130
|
});
|
|
1131
|
-
function
|
|
1132
|
-
o.value && (
|
|
1131
|
+
function g(y) {
|
|
1132
|
+
o.value && (y.paddingTop = o.value), l.value && (y.paddingLeft = l.value), h.value && (y.paddingBottom = h.value), _.value && (y.paddingRight = _.value);
|
|
1133
1133
|
}
|
|
1134
|
-
return { paddingTop: o, paddingLeft: l, paddingBottom: h, paddingRight:
|
|
1134
|
+
return { paddingTop: o, paddingLeft: l, paddingBottom: h, paddingRight: _, applyPadding: g };
|
|
1135
1135
|
}
|
|
1136
1136
|
function Vl(n) {
|
|
1137
|
-
const o =
|
|
1138
|
-
var
|
|
1139
|
-
return (
|
|
1140
|
-
}), l =
|
|
1141
|
-
var
|
|
1142
|
-
return (
|
|
1143
|
-
}), h =
|
|
1144
|
-
var
|
|
1145
|
-
return (
|
|
1137
|
+
const o = x(() => {
|
|
1138
|
+
var g;
|
|
1139
|
+
return (g = n.node.border) == null ? void 0 : g.style;
|
|
1140
|
+
}), l = x(() => {
|
|
1141
|
+
var g;
|
|
1142
|
+
return (g = n.node.border) == null ? void 0 : g.width;
|
|
1143
|
+
}), h = x(() => {
|
|
1144
|
+
var g;
|
|
1145
|
+
return (g = n.node.border) == null ? void 0 : g.color;
|
|
1146
1146
|
});
|
|
1147
|
-
function
|
|
1148
|
-
o.value && (
|
|
1147
|
+
function _(g) {
|
|
1148
|
+
o.value && (g.borderStyle = o.value), l.value && (g.borderWidth = l.value), h.value && (g.borderColor = h.value);
|
|
1149
1149
|
}
|
|
1150
|
-
return { borderStyle: o, borderWidth: l, borderColor: h, applyBorder:
|
|
1150
|
+
return { borderStyle: o, borderWidth: l, borderColor: h, applyBorder: _ };
|
|
1151
1151
|
}
|
|
1152
1152
|
const Gl = /* @__PURE__ */ oe({
|
|
1153
1153
|
__name: "index",
|
|
@@ -1156,14 +1156,14 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1156
1156
|
outer: { type: Boolean }
|
|
1157
1157
|
},
|
|
1158
1158
|
setup(n) {
|
|
1159
|
-
const o = n, l = he(), h =
|
|
1160
|
-
const e = {}, i =
|
|
1161
|
-
return
|
|
1159
|
+
const o = n, l = he(), h = $i(), _ = Cr(), g = kr(), { applySize: y } = zi(l, h, o), { applyMargin: O } = Bl(o), { applyPadding: T } = $l(o), { applyBorder: r } = Vl(o), t = x(() => {
|
|
1160
|
+
const e = {}, i = g.type;
|
|
1161
|
+
return _ === "page" ? i === "common" ? (y(e), O(e), T(e), r(e)) : console.assert(!1) : _ === "comp" && i === "common" ? (y(e), O(e), T(e), r(e)) : console.assert(!1), e;
|
|
1162
1162
|
});
|
|
1163
|
-
return (e, i) => (G(),
|
|
1163
|
+
return (e, i) => (G(), $e("div", {
|
|
1164
1164
|
style: Ia(t.value)
|
|
1165
1165
|
}, [
|
|
1166
|
-
|
|
1166
|
+
_r(e.$slots, "default")
|
|
1167
1167
|
], 4));
|
|
1168
1168
|
}
|
|
1169
1169
|
}), Yl = [
|
|
@@ -1175,13 +1175,13 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1175
1175
|
{
|
|
1176
1176
|
name: "x-runtime-lib.default",
|
|
1177
1177
|
ui: "word",
|
|
1178
|
-
validator:
|
|
1178
|
+
validator: gr,
|
|
1179
1179
|
default: ""
|
|
1180
1180
|
},
|
|
1181
1181
|
{
|
|
1182
1182
|
name: "x-runtime-lib.pixel",
|
|
1183
1183
|
ui: "pixelInput",
|
|
1184
|
-
validator:
|
|
1184
|
+
validator: Er,
|
|
1185
1185
|
default: "0px",
|
|
1186
1186
|
precision: 0,
|
|
1187
1187
|
min: 0,
|
|
@@ -1191,14 +1191,14 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1191
1191
|
{
|
|
1192
1192
|
name: "x-runtime-lib.percent",
|
|
1193
1193
|
ui: "percentInput",
|
|
1194
|
-
validator:
|
|
1194
|
+
validator: Rr,
|
|
1195
1195
|
default: "0%",
|
|
1196
1196
|
precision: 4,
|
|
1197
1197
|
min: 0,
|
|
1198
1198
|
max: 1 / 0,
|
|
1199
1199
|
step: 1
|
|
1200
1200
|
}
|
|
1201
|
-
],
|
|
1201
|
+
], Xn = {
|
|
1202
1202
|
key: "border",
|
|
1203
1203
|
name: "x-runtime-lib.border",
|
|
1204
1204
|
children: [
|
|
@@ -1263,11 +1263,11 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1263
1263
|
]
|
|
1264
1264
|
}
|
|
1265
1265
|
]
|
|
1266
|
-
},
|
|
1266
|
+
}, _t = [
|
|
1267
1267
|
{
|
|
1268
1268
|
name: "x-runtime-lib.default",
|
|
1269
1269
|
ui: "word",
|
|
1270
|
-
validator:
|
|
1270
|
+
validator: gr,
|
|
1271
1271
|
default: ""
|
|
1272
1272
|
},
|
|
1273
1273
|
{
|
|
@@ -1279,7 +1279,7 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1279
1279
|
{
|
|
1280
1280
|
name: "x-runtime-lib.pixel",
|
|
1281
1281
|
ui: "pixelInput",
|
|
1282
|
-
validator:
|
|
1282
|
+
validator: Er,
|
|
1283
1283
|
default: "0px",
|
|
1284
1284
|
precision: 0,
|
|
1285
1285
|
min: 0,
|
|
@@ -1289,14 +1289,14 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1289
1289
|
{
|
|
1290
1290
|
name: "x-runtime-lib.percent",
|
|
1291
1291
|
ui: "percentInput",
|
|
1292
|
-
validator:
|
|
1292
|
+
validator: Rr,
|
|
1293
1293
|
default: "0%",
|
|
1294
1294
|
precision: 4,
|
|
1295
1295
|
min: 0,
|
|
1296
1296
|
max: 1 / 0,
|
|
1297
1297
|
step: 1
|
|
1298
1298
|
}
|
|
1299
|
-
],
|
|
1299
|
+
], Wn = {
|
|
1300
1300
|
key: "margin",
|
|
1301
1301
|
name: "x-runtime-lib.margin",
|
|
1302
1302
|
children: [
|
|
@@ -1304,42 +1304,42 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1304
1304
|
key: "top",
|
|
1305
1305
|
name: "x-runtime-lib.top",
|
|
1306
1306
|
ui: "multiTypes",
|
|
1307
|
-
types:
|
|
1307
|
+
types: _t,
|
|
1308
1308
|
default: ""
|
|
1309
1309
|
},
|
|
1310
1310
|
{
|
|
1311
1311
|
key: "left",
|
|
1312
1312
|
name: "x-runtime-lib.left",
|
|
1313
1313
|
ui: "multiTypes",
|
|
1314
|
-
types:
|
|
1314
|
+
types: _t,
|
|
1315
1315
|
default: ""
|
|
1316
1316
|
},
|
|
1317
1317
|
{
|
|
1318
1318
|
key: "bottom",
|
|
1319
1319
|
name: "x-runtime-lib.bottom",
|
|
1320
1320
|
ui: "multiTypes",
|
|
1321
|
-
types:
|
|
1321
|
+
types: _t,
|
|
1322
1322
|
default: ""
|
|
1323
1323
|
},
|
|
1324
1324
|
{
|
|
1325
1325
|
key: "right",
|
|
1326
1326
|
name: "x-runtime-lib.right",
|
|
1327
1327
|
ui: "multiTypes",
|
|
1328
|
-
types:
|
|
1328
|
+
types: _t,
|
|
1329
1329
|
default: ""
|
|
1330
1330
|
}
|
|
1331
1331
|
]
|
|
1332
|
-
},
|
|
1332
|
+
}, bt = [
|
|
1333
1333
|
{
|
|
1334
1334
|
name: "x-runtime-lib.default",
|
|
1335
1335
|
ui: "word",
|
|
1336
|
-
validator:
|
|
1336
|
+
validator: gr,
|
|
1337
1337
|
default: ""
|
|
1338
1338
|
},
|
|
1339
1339
|
{
|
|
1340
1340
|
name: "x-runtime-lib.pixel",
|
|
1341
1341
|
ui: "pixelInput",
|
|
1342
|
-
validator:
|
|
1342
|
+
validator: Er,
|
|
1343
1343
|
default: "0px",
|
|
1344
1344
|
precision: 0,
|
|
1345
1345
|
min: 0,
|
|
@@ -1349,14 +1349,14 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1349
1349
|
{
|
|
1350
1350
|
name: "x-runtime-lib.percent",
|
|
1351
1351
|
ui: "percentInput",
|
|
1352
|
-
validator:
|
|
1352
|
+
validator: Rr,
|
|
1353
1353
|
default: "0%",
|
|
1354
1354
|
precision: 4,
|
|
1355
1355
|
min: 0,
|
|
1356
1356
|
max: 1 / 0,
|
|
1357
1357
|
step: 1
|
|
1358
1358
|
}
|
|
1359
|
-
],
|
|
1359
|
+
], Hn = {
|
|
1360
1360
|
key: "padding",
|
|
1361
1361
|
name: "x-runtime-lib.padding",
|
|
1362
1362
|
children: [
|
|
@@ -1364,32 +1364,32 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1364
1364
|
key: "top",
|
|
1365
1365
|
name: "x-runtime-lib.top",
|
|
1366
1366
|
ui: "multiTypes",
|
|
1367
|
-
types:
|
|
1367
|
+
types: bt,
|
|
1368
1368
|
default: ""
|
|
1369
1369
|
},
|
|
1370
1370
|
{
|
|
1371
1371
|
key: "left",
|
|
1372
1372
|
name: "x-runtime-lib.left",
|
|
1373
1373
|
ui: "multiTypes",
|
|
1374
|
-
types:
|
|
1374
|
+
types: bt,
|
|
1375
1375
|
default: ""
|
|
1376
1376
|
},
|
|
1377
1377
|
{
|
|
1378
1378
|
key: "bottom",
|
|
1379
1379
|
name: "x-runtime-lib.bottom",
|
|
1380
1380
|
ui: "multiTypes",
|
|
1381
|
-
types:
|
|
1381
|
+
types: bt,
|
|
1382
1382
|
default: ""
|
|
1383
1383
|
},
|
|
1384
1384
|
{
|
|
1385
1385
|
key: "right",
|
|
1386
1386
|
name: "x-runtime-lib.right",
|
|
1387
1387
|
ui: "multiTypes",
|
|
1388
|
-
types:
|
|
1388
|
+
types: bt,
|
|
1389
1389
|
default: ""
|
|
1390
1390
|
}
|
|
1391
1391
|
]
|
|
1392
|
-
},
|
|
1392
|
+
}, Rt = {
|
|
1393
1393
|
key: "size",
|
|
1394
1394
|
name: "x-runtime-lib.size",
|
|
1395
1395
|
children: [
|
|
@@ -1436,12 +1436,12 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1436
1436
|
default: ""
|
|
1437
1437
|
}
|
|
1438
1438
|
]
|
|
1439
|
-
},
|
|
1439
|
+
}, Jn = {
|
|
1440
1440
|
key: "settings",
|
|
1441
1441
|
name: "x-runtime-lib.settings",
|
|
1442
1442
|
children: []
|
|
1443
1443
|
}, zl = {
|
|
1444
|
-
key:
|
|
1444
|
+
key: sr,
|
|
1445
1445
|
name: "x-runtime-lib.container",
|
|
1446
1446
|
comp: Gl,
|
|
1447
1447
|
slots: [
|
|
@@ -1459,8 +1459,8 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1459
1459
|
],
|
|
1460
1460
|
methods: [],
|
|
1461
1461
|
props: {
|
|
1462
|
-
pageCommon: [F,
|
|
1463
|
-
compCommon: [F,
|
|
1462
|
+
pageCommon: [F, Rt, Xn, Wn, Hn, Jn],
|
|
1463
|
+
compCommon: [F, Rt, Xn, Wn, Hn, Jn]
|
|
1464
1464
|
}
|
|
1465
1465
|
};
|
|
1466
1466
|
var Xl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -1477,8 +1477,8 @@ function Hl(n) {
|
|
|
1477
1477
|
l.prototype = o.prototype;
|
|
1478
1478
|
} else l = {};
|
|
1479
1479
|
return Object.defineProperty(l, "__esModule", { value: !0 }), Object.keys(n).forEach(function(h) {
|
|
1480
|
-
var
|
|
1481
|
-
Object.defineProperty(l, h,
|
|
1480
|
+
var _ = Object.getOwnPropertyDescriptor(n, h);
|
|
1481
|
+
Object.defineProperty(l, h, _.get ? _ : {
|
|
1482
1482
|
enumerable: !0,
|
|
1483
1483
|
get: function() {
|
|
1484
1484
|
return n[h];
|
|
@@ -1486,14 +1486,14 @@ function Hl(n) {
|
|
|
1486
1486
|
});
|
|
1487
1487
|
}), l;
|
|
1488
1488
|
}
|
|
1489
|
-
var
|
|
1489
|
+
var Xi = { exports: {} };
|
|
1490
1490
|
const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1491
1491
|
__proto__: null,
|
|
1492
1492
|
default: Jl
|
|
1493
1493
|
}, Symbol.toStringTag, { value: "Module" })), ql = /* @__PURE__ */ Hl(Kl);
|
|
1494
1494
|
(function(n, o) {
|
|
1495
|
-
(function(h,
|
|
1496
|
-
n.exports =
|
|
1495
|
+
(function(h, _) {
|
|
1496
|
+
n.exports = _();
|
|
1497
1497
|
})(Xl, () => (
|
|
1498
1498
|
/******/
|
|
1499
1499
|
(() => {
|
|
@@ -1504,7 +1504,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1504
1504
|
!*** ./original-repo/interpreter.js ***!
|
|
1505
1505
|
\**************************************/
|
|
1506
1506
|
/***/
|
|
1507
|
-
function(
|
|
1507
|
+
function(y, O, T) {
|
|
1508
1508
|
/**
|
|
1509
1509
|
* @license
|
|
1510
1510
|
* Copyright 2013 Neil Fraser
|
|
@@ -1521,8 +1521,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1521
1521
|
s[u] = u === "body" ? t[u].slice() : t[u];
|
|
1522
1522
|
this.ast = s, this.tasks = [], this.initFunc_ = e, this.paused_ = !1, this.polyfills_ = [], this.functionCounter_ = 0, this.stepFunctions_ = /* @__PURE__ */ Object.create(null);
|
|
1523
1523
|
var c = /^step([A-Z]\w*)$/, a;
|
|
1524
|
-
for (var
|
|
1525
|
-
typeof this[
|
|
1524
|
+
for (var f in this)
|
|
1525
|
+
typeof this[f] == "function" && (a = f.match(c)) && (this.stepFunctions_[a[1]] = this[f].bind(this));
|
|
1526
1526
|
this.globalScope = this.createScope(this.ast, null), this.globalObject = this.globalScope.object, this.ast = this.parse_(this.polyfills_.join(`
|
|
1527
1527
|
`), "polyfills"), this.polyfills_ = void 0, r.stripLocations_(this.ast, void 0, void 0);
|
|
1528
1528
|
var v = new r.State(this.ast, this.globalScope);
|
|
@@ -1743,9 +1743,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1743
1743
|
[encodeURIComponent, "encodeURIComponent"]
|
|
1744
1744
|
], c = 0; c < u.length; c++)
|
|
1745
1745
|
i = /* @__PURE__ */ function(a) {
|
|
1746
|
-
return function(
|
|
1746
|
+
return function(f) {
|
|
1747
1747
|
try {
|
|
1748
|
-
return a(
|
|
1748
|
+
return a(f);
|
|
1749
1749
|
} catch (v) {
|
|
1750
1750
|
e.throwException(e.URI_ERROR, v.message);
|
|
1751
1751
|
}
|
|
@@ -1756,29 +1756,29 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1756
1756
|
this.createNativeFunction(i, !1),
|
|
1757
1757
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1758
1758
|
);
|
|
1759
|
-
i = function(
|
|
1759
|
+
i = function(f) {
|
|
1760
1760
|
return e.createTask_(!1, arguments);
|
|
1761
1761
|
}, this.setProperty(
|
|
1762
1762
|
t,
|
|
1763
1763
|
"setTimeout",
|
|
1764
1764
|
this.createNativeFunction(i, !1),
|
|
1765
1765
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1766
|
-
), i = function(
|
|
1766
|
+
), i = function(f) {
|
|
1767
1767
|
return e.createTask_(!0, arguments);
|
|
1768
1768
|
}, this.setProperty(
|
|
1769
1769
|
t,
|
|
1770
1770
|
"setInterval",
|
|
1771
1771
|
this.createNativeFunction(i, !1),
|
|
1772
1772
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1773
|
-
), i = function(
|
|
1774
|
-
e.deleteTask_(
|
|
1773
|
+
), i = function(f) {
|
|
1774
|
+
e.deleteTask_(f);
|
|
1775
1775
|
}, this.setProperty(
|
|
1776
1776
|
t,
|
|
1777
1777
|
"clearTimeout",
|
|
1778
1778
|
this.createNativeFunction(i, !1),
|
|
1779
1779
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1780
|
-
), i = function(
|
|
1781
|
-
e.deleteTask_(
|
|
1780
|
+
), i = function(f) {
|
|
1781
|
+
e.deleteTask_(f);
|
|
1782
1782
|
}, this.setProperty(
|
|
1783
1783
|
t,
|
|
1784
1784
|
"clearInterval",
|
|
@@ -1792,33 +1792,33 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1792
1792
|
var a = String(arguments[arguments.length - 1]);
|
|
1793
1793
|
else
|
|
1794
1794
|
var a = "";
|
|
1795
|
-
var
|
|
1796
|
-
if (
|
|
1797
|
-
for (var v =
|
|
1798
|
-
var
|
|
1799
|
-
s.test(
|
|
1795
|
+
var f = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1796
|
+
if (f) {
|
|
1797
|
+
for (var v = f.split(/\s*,\s*/), b = 0; b < v.length; b++) {
|
|
1798
|
+
var N = v[b];
|
|
1799
|
+
s.test(N) || e.throwException(
|
|
1800
1800
|
e.SYNTAX_ERROR,
|
|
1801
|
-
"Invalid function argument: " +
|
|
1801
|
+
"Invalid function argument: " + N
|
|
1802
1802
|
);
|
|
1803
1803
|
}
|
|
1804
|
-
|
|
1804
|
+
f = v.join(", ");
|
|
1805
1805
|
}
|
|
1806
1806
|
try {
|
|
1807
|
-
var
|
|
1808
|
-
"(function(" +
|
|
1807
|
+
var R = e.parse_(
|
|
1808
|
+
"(function(" + f + ") {" + a + "})",
|
|
1809
1809
|
"function" + e.functionCodeNumber_++
|
|
1810
1810
|
);
|
|
1811
|
-
} catch (
|
|
1811
|
+
} catch (k) {
|
|
1812
1812
|
e.throwException(
|
|
1813
1813
|
e.SYNTAX_ERROR,
|
|
1814
|
-
"Invalid code: " +
|
|
1814
|
+
"Invalid code: " + k.message
|
|
1815
1815
|
);
|
|
1816
1816
|
}
|
|
1817
|
-
|
|
1817
|
+
R.body.length !== 1 && e.throwException(
|
|
1818
1818
|
e.SYNTAX_ERROR,
|
|
1819
1819
|
"Invalid code in function body"
|
|
1820
1820
|
);
|
|
1821
|
-
var S =
|
|
1821
|
+
var S = R.body[0].expression;
|
|
1822
1822
|
return e.createFunction(
|
|
1823
1823
|
S,
|
|
1824
1824
|
e.globalScope,
|
|
@@ -1845,9 +1845,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1845
1845
|
"length",
|
|
1846
1846
|
0,
|
|
1847
1847
|
r.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
1848
|
-
), this.FUNCTION_PROTO.class = "Function", i = function(c, a,
|
|
1848
|
+
), this.FUNCTION_PROTO.class = "Function", i = function(c, a, f) {
|
|
1849
1849
|
var v = e.stateStack[e.stateStack.length - 1];
|
|
1850
|
-
v.func_ = c, v.funcThis_ = a, v.arguments_ = [],
|
|
1850
|
+
v.func_ = c, v.funcThis_ = a, v.arguments_ = [], f != null && (f instanceof r.Object ? v.arguments_ = Array.from(f.properties) : e.throwException(
|
|
1851
1851
|
e.TYPE_ERROR,
|
|
1852
1852
|
"CreateListFromArrayLike called on non-object"
|
|
1853
1853
|
)), v.doneExec_ = !1;
|
|
@@ -1869,8 +1869,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1869
1869
|
), i = function(c) {
|
|
1870
1870
|
var a = e.stateStack[e.stateStack.length - 1];
|
|
1871
1871
|
a.func_ = this, a.funcThis_ = c, a.arguments_ = [];
|
|
1872
|
-
for (var
|
|
1873
|
-
a.arguments_.push(arguments[
|
|
1872
|
+
for (var f = 1; f < arguments.length; f++)
|
|
1873
|
+
a.arguments_.push(arguments[f]);
|
|
1874
1874
|
a.doneExec_ = !1;
|
|
1875
1875
|
}, this.setNativeFunctionPrototype(this.FUNCTION, "call", i), this.polyfills_.push(
|
|
1876
1876
|
/* POLYFILL START */
|
|
@@ -1987,11 +1987,11 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1987
1987
|
"})();",
|
|
1988
1988
|
""
|
|
1989
1989
|
/* POLYFILL END */
|
|
1990
|
-
), i = function(c, a,
|
|
1990
|
+
), i = function(c, a, f) {
|
|
1991
1991
|
return a = String(a), c instanceof r.Object || e.throwException(
|
|
1992
1992
|
e.TYPE_ERROR,
|
|
1993
1993
|
"Object.defineProperty called on non-object: " + c
|
|
1994
|
-
),
|
|
1994
|
+
), f instanceof r.Object || e.throwException(
|
|
1995
1995
|
e.TYPE_ERROR,
|
|
1996
1996
|
"Property description must be an object"
|
|
1997
1997
|
), c.preventExtensions && !(a in c.properties) && e.throwException(
|
|
@@ -2001,7 +2001,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2001
2001
|
c,
|
|
2002
2002
|
a,
|
|
2003
2003
|
r.VALUE_IN_DESCRIPTOR,
|
|
2004
|
-
|
|
2004
|
+
f.properties
|
|
2005
2005
|
), c;
|
|
2006
2006
|
}, this.setProperty(
|
|
2007
2007
|
this.OBJECT,
|
|
@@ -2041,25 +2041,25 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2041
2041
|
e.TYPE_ERROR,
|
|
2042
2042
|
"Object.getOwnPropertyDescriptor called on non-object: " + c
|
|
2043
2043
|
), a = String(a), a in c.properties) {
|
|
2044
|
-
var
|
|
2045
|
-
return v ||
|
|
2046
|
-
|
|
2044
|
+
var f = Object.getOwnPropertyDescriptor(c.properties, a), v = c.getter[a], b = c.setter[a], N = e.createObjectProto(e.OBJECT_PROTO);
|
|
2045
|
+
return v || b ? (e.setProperty(N, "get", v), e.setProperty(N, "set", b)) : (e.setProperty(
|
|
2046
|
+
N,
|
|
2047
2047
|
"value",
|
|
2048
2048
|
/** @type {!Interpreter.Value} */
|
|
2049
|
-
|
|
2049
|
+
f.value
|
|
2050
2050
|
), e.setProperty(
|
|
2051
|
-
|
|
2051
|
+
N,
|
|
2052
2052
|
"writable",
|
|
2053
|
-
|
|
2053
|
+
f.writable
|
|
2054
2054
|
)), e.setProperty(
|
|
2055
|
-
|
|
2055
|
+
N,
|
|
2056
2056
|
"configurable",
|
|
2057
|
-
|
|
2057
|
+
f.configurable
|
|
2058
2058
|
), e.setProperty(
|
|
2059
|
-
|
|
2059
|
+
N,
|
|
2060
2060
|
"enumerable",
|
|
2061
|
-
|
|
2062
|
-
),
|
|
2061
|
+
f.enumerable
|
|
2062
|
+
), N;
|
|
2063
2063
|
}
|
|
2064
2064
|
}, this.setProperty(
|
|
2065
2065
|
this.OBJECT,
|
|
@@ -2125,9 +2125,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2125
2125
|
"Invalid array length: " + a
|
|
2126
2126
|
), c.properties.length = a;
|
|
2127
2127
|
else {
|
|
2128
|
-
for (var
|
|
2129
|
-
c.properties[
|
|
2130
|
-
c.properties.length =
|
|
2128
|
+
for (var f = 0; f < arguments.length; f++)
|
|
2129
|
+
c.properties[f] = arguments[f];
|
|
2130
|
+
c.properties.length = f;
|
|
2131
2131
|
}
|
|
2132
2132
|
return c;
|
|
2133
2133
|
}, this.ARRAY = this.createNativeFunction(i, !0), this.ARRAY_PROTO = this.ARRAY.properties.prototype, this.setProperty(
|
|
@@ -2621,106 +2621,106 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2621
2621
|
s[u],
|
|
2622
2622
|
String.prototype[s[u]]
|
|
2623
2623
|
);
|
|
2624
|
-
i = function(a,
|
|
2625
|
-
|
|
2624
|
+
i = function(a, f, v) {
|
|
2625
|
+
f = e.pseudoToNative(f), v = e.pseudoToNative(v);
|
|
2626
2626
|
try {
|
|
2627
2627
|
return String(this).localeCompare(
|
|
2628
2628
|
a,
|
|
2629
2629
|
/** @type {?} */
|
|
2630
|
-
|
|
2630
|
+
f,
|
|
2631
2631
|
/** @type {?} */
|
|
2632
2632
|
v
|
|
2633
2633
|
);
|
|
2634
|
-
} catch (
|
|
2634
|
+
} catch (b) {
|
|
2635
2635
|
e.throwException(
|
|
2636
2636
|
e.ERROR,
|
|
2637
|
-
"localeCompare: " +
|
|
2637
|
+
"localeCompare: " + b.message
|
|
2638
2638
|
);
|
|
2639
2639
|
}
|
|
2640
|
-
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a,
|
|
2641
|
-
var
|
|
2642
|
-
if (
|
|
2640
|
+
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, f, v) {
|
|
2641
|
+
var b = String(this);
|
|
2642
|
+
if (f = f ? Number(f) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, v), e.REGEXP_MODE === 2)) {
|
|
2643
2643
|
if (r.vm) {
|
|
2644
|
-
var
|
|
2645
|
-
string:
|
|
2644
|
+
var N = {
|
|
2645
|
+
string: b,
|
|
2646
2646
|
separator: a,
|
|
2647
|
-
limit:
|
|
2648
|
-
},
|
|
2647
|
+
limit: f
|
|
2648
|
+
}, R = "string.split(separator, limit)", L = e.vmCall(R, N, a, v);
|
|
2649
2649
|
L !== r.REGEXP_TIMEOUT && v(e.nativeToPseudo(L));
|
|
2650
2650
|
} else {
|
|
2651
|
-
var S = e.createWorker(),
|
|
2651
|
+
var S = e.createWorker(), k = e.regExpTimeout(
|
|
2652
2652
|
a,
|
|
2653
2653
|
S,
|
|
2654
2654
|
v
|
|
2655
2655
|
);
|
|
2656
2656
|
S.onmessage = function(H) {
|
|
2657
|
-
clearTimeout(
|
|
2658
|
-
}, S.postMessage(["split",
|
|
2657
|
+
clearTimeout(k), v(e.nativeToPseudo(H.data));
|
|
2658
|
+
}, S.postMessage(["split", b, a, f]);
|
|
2659
2659
|
}
|
|
2660
2660
|
return;
|
|
2661
2661
|
}
|
|
2662
|
-
var L =
|
|
2662
|
+
var L = b.split(a, f);
|
|
2663
2663
|
v(e.nativeToPseudo(L));
|
|
2664
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a,
|
|
2664
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, f) {
|
|
2665
2665
|
var v = String(this);
|
|
2666
|
-
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a,
|
|
2666
|
+
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, f), e.REGEXP_MODE === 2) {
|
|
2667
2667
|
if (r.vm) {
|
|
2668
|
-
var
|
|
2668
|
+
var b = {
|
|
2669
2669
|
string: v,
|
|
2670
2670
|
regexp: a
|
|
2671
|
-
},
|
|
2672
|
-
|
|
2671
|
+
}, N = "string.match(regexp)", k = e.vmCall(N, b, a, f);
|
|
2672
|
+
k !== r.REGEXP_TIMEOUT && f(k && e.matchToPseudo_(k));
|
|
2673
2673
|
} else {
|
|
2674
|
-
var
|
|
2675
|
-
|
|
2676
|
-
clearTimeout(S),
|
|
2677
|
-
},
|
|
2674
|
+
var R = e.createWorker(), S = e.regExpTimeout(a, R, f);
|
|
2675
|
+
R.onmessage = function(L) {
|
|
2676
|
+
clearTimeout(S), f(L.data && e.matchToPseudo_(L.data));
|
|
2677
|
+
}, R.postMessage(["match", v, a]);
|
|
2678
2678
|
}
|
|
2679
2679
|
return;
|
|
2680
2680
|
}
|
|
2681
|
-
var
|
|
2682
|
-
|
|
2683
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a,
|
|
2681
|
+
var k = v.match(a);
|
|
2682
|
+
f(k && e.matchToPseudo_(k));
|
|
2683
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a, f) {
|
|
2684
2684
|
var v = String(this);
|
|
2685
|
-
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a,
|
|
2685
|
+
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, f), e.REGEXP_MODE === 2) {
|
|
2686
2686
|
if (r.vm) {
|
|
2687
|
-
var
|
|
2687
|
+
var b = {
|
|
2688
2688
|
string: v,
|
|
2689
2689
|
regexp: a
|
|
2690
|
-
},
|
|
2691
|
-
|
|
2690
|
+
}, N = "string.search(regexp)", R = e.vmCall(N, b, a, f);
|
|
2691
|
+
R !== r.REGEXP_TIMEOUT && f(R);
|
|
2692
2692
|
} else {
|
|
2693
|
-
var S = e.createWorker(),
|
|
2693
|
+
var S = e.createWorker(), k = e.regExpTimeout(a, S, f);
|
|
2694
2694
|
S.onmessage = function(L) {
|
|
2695
|
-
clearTimeout(
|
|
2695
|
+
clearTimeout(k), f(L.data);
|
|
2696
2696
|
}, S.postMessage(["search", v, a]);
|
|
2697
2697
|
}
|
|
2698
2698
|
return;
|
|
2699
2699
|
}
|
|
2700
|
-
|
|
2701
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a,
|
|
2702
|
-
var
|
|
2703
|
-
if (
|
|
2700
|
+
f(v.search(a));
|
|
2701
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, f, v) {
|
|
2702
|
+
var b = String(this);
|
|
2703
|
+
if (f = String(f), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, v), e.REGEXP_MODE === 2)) {
|
|
2704
2704
|
if (r.vm) {
|
|
2705
|
-
var
|
|
2706
|
-
string:
|
|
2705
|
+
var N = {
|
|
2706
|
+
string: b,
|
|
2707
2707
|
substr: a,
|
|
2708
|
-
newSubstr:
|
|
2709
|
-
},
|
|
2708
|
+
newSubstr: f
|
|
2709
|
+
}, R = "string.replace(substr, newSubstr)", S = e.vmCall(R, N, a, v);
|
|
2710
2710
|
S !== r.REGEXP_TIMEOUT && v(S);
|
|
2711
2711
|
} else {
|
|
2712
|
-
var
|
|
2712
|
+
var k = e.createWorker(), L = e.regExpTimeout(
|
|
2713
2713
|
a,
|
|
2714
|
-
|
|
2714
|
+
k,
|
|
2715
2715
|
v
|
|
2716
2716
|
);
|
|
2717
|
-
|
|
2717
|
+
k.onmessage = function(H) {
|
|
2718
2718
|
clearTimeout(L), v(H.data);
|
|
2719
|
-
},
|
|
2719
|
+
}, k.postMessage(["replace", b, a, f]);
|
|
2720
2720
|
}
|
|
2721
2721
|
return;
|
|
2722
2722
|
}
|
|
2723
|
-
v(
|
|
2723
|
+
v(b.replace(a, f));
|
|
2724
2724
|
}, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
|
|
2725
2725
|
/* POLYFILL START */
|
|
2726
2726
|
"(function() {",
|
|
@@ -2796,35 +2796,35 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2796
2796
|
i = function(a) {
|
|
2797
2797
|
try {
|
|
2798
2798
|
return Number(this).toExponential(a);
|
|
2799
|
-
} catch (
|
|
2800
|
-
e.throwException(e.ERROR,
|
|
2799
|
+
} catch (f) {
|
|
2800
|
+
e.throwException(e.ERROR, f.message);
|
|
2801
2801
|
}
|
|
2802
2802
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toExponential", i), i = function(a) {
|
|
2803
2803
|
try {
|
|
2804
2804
|
return Number(this).toFixed(a);
|
|
2805
|
-
} catch (
|
|
2806
|
-
e.throwException(e.ERROR,
|
|
2805
|
+
} catch (f) {
|
|
2806
|
+
e.throwException(e.ERROR, f.message);
|
|
2807
2807
|
}
|
|
2808
2808
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toFixed", i), i = function(a) {
|
|
2809
2809
|
try {
|
|
2810
2810
|
return Number(this).toPrecision(a);
|
|
2811
|
-
} catch (
|
|
2812
|
-
e.throwException(e.ERROR,
|
|
2811
|
+
} catch (f) {
|
|
2812
|
+
e.throwException(e.ERROR, f.message);
|
|
2813
2813
|
}
|
|
2814
2814
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toPrecision", i), i = function(a) {
|
|
2815
2815
|
try {
|
|
2816
2816
|
return Number(this).toString(a);
|
|
2817
|
-
} catch (
|
|
2818
|
-
e.throwException(e.ERROR,
|
|
2817
|
+
} catch (f) {
|
|
2818
|
+
e.throwException(e.ERROR, f.message);
|
|
2819
2819
|
}
|
|
2820
|
-
}, this.setNativeFunctionPrototype(this.NUMBER, "toString", i), i = function(a,
|
|
2821
|
-
a = a ? e.pseudoToNative(a) : void 0,
|
|
2820
|
+
}, this.setNativeFunctionPrototype(this.NUMBER, "toString", i), i = function(a, f) {
|
|
2821
|
+
a = a ? e.pseudoToNative(a) : void 0, f = f ? e.pseudoToNative(f) : void 0;
|
|
2822
2822
|
try {
|
|
2823
2823
|
return Number(this).toLocaleString(
|
|
2824
2824
|
/** @type {?} */
|
|
2825
2825
|
a,
|
|
2826
2826
|
/** @type {?} */
|
|
2827
|
-
|
|
2827
|
+
f
|
|
2828
2828
|
);
|
|
2829
2829
|
} catch (v) {
|
|
2830
2830
|
e.throwException(
|
|
@@ -2835,7 +2835,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2835
2835
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toLocaleString", i);
|
|
2836
2836
|
}, r.prototype.initDate = function(t) {
|
|
2837
2837
|
var e = this, i;
|
|
2838
|
-
i = function(a,
|
|
2838
|
+
i = function(a, f) {
|
|
2839
2839
|
if (!e.calledWithNew())
|
|
2840
2840
|
return r.nativeGlobal.Date();
|
|
2841
2841
|
var v = [null].concat(Array.from(arguments));
|
|
@@ -2911,14 +2911,14 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2911
2911
|
], u = 0; u < s.length; u++)
|
|
2912
2912
|
i = /* @__PURE__ */ function(c) {
|
|
2913
2913
|
return function(a) {
|
|
2914
|
-
var
|
|
2915
|
-
|
|
2914
|
+
var f = this.data;
|
|
2915
|
+
f instanceof Date || e.throwException(
|
|
2916
2916
|
e.TYPE_ERROR,
|
|
2917
2917
|
c + " not called on a Date"
|
|
2918
2918
|
);
|
|
2919
|
-
for (var v = [],
|
|
2920
|
-
v[
|
|
2921
|
-
return
|
|
2919
|
+
for (var v = [], b = 0; b < arguments.length; b++)
|
|
2920
|
+
v[b] = e.pseudoToNative(arguments[b]);
|
|
2921
|
+
return f[c].apply(f, v);
|
|
2922
2922
|
};
|
|
2923
2923
|
}(s[u]), this.setNativeFunctionPrototype(this.DATE, s[u], i);
|
|
2924
2924
|
i = function() {
|
|
@@ -2946,11 +2946,11 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2946
2946
|
"Invalid regexp flag: " + c
|
|
2947
2947
|
);
|
|
2948
2948
|
try {
|
|
2949
|
-
var
|
|
2949
|
+
var f = new r.nativeGlobal.RegExp(u, c);
|
|
2950
2950
|
} catch (v) {
|
|
2951
2951
|
e.throwException(e.SYNTAX_ERROR, v.message);
|
|
2952
2952
|
}
|
|
2953
|
-
return e.populateRegExp(a,
|
|
2953
|
+
return e.populateRegExp(a, f), a;
|
|
2954
2954
|
}, this.REGEXP = this.createNativeFunction(i, !0), this.REGEXP_PROTO = this.REGEXP.properties.prototype, this.setProperty(
|
|
2955
2955
|
t,
|
|
2956
2956
|
"RegExp",
|
|
@@ -2989,16 +2989,16 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2989
2989
|
var a = this.data;
|
|
2990
2990
|
if (u = String(u), a.lastIndex = Number(e.getProperty(this, "lastIndex")), e.maybeThrowRegExp(a, c), e.REGEXP_MODE === 2) {
|
|
2991
2991
|
if (r.vm) {
|
|
2992
|
-
var
|
|
2992
|
+
var f = {
|
|
2993
2993
|
string: u,
|
|
2994
2994
|
regexp: a
|
|
2995
|
-
}, v = "regexp.exec(string)", S = e.vmCall(v,
|
|
2995
|
+
}, v = "regexp.exec(string)", S = e.vmCall(v, f, a, c);
|
|
2996
2996
|
S !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(S)));
|
|
2997
2997
|
} else {
|
|
2998
|
-
var
|
|
2999
|
-
|
|
3000
|
-
clearTimeout(
|
|
3001
|
-
},
|
|
2998
|
+
var b = e.createWorker(), N = e.regExpTimeout(a, b, c), R = this;
|
|
2999
|
+
b.onmessage = function(k) {
|
|
3000
|
+
clearTimeout(N), e.setProperty(R, "lastIndex", k.data[1]), c(e.matchToPseudo_(k.data[0]));
|
|
3001
|
+
}, b.postMessage(["exec", a, a.lastIndex, u]);
|
|
3002
3002
|
}
|
|
3003
3003
|
return;
|
|
3004
3004
|
}
|
|
@@ -3130,24 +3130,24 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3130
3130
|
), e = function(c) {
|
|
3131
3131
|
try {
|
|
3132
3132
|
var a = JSON.parse(String(c));
|
|
3133
|
-
} catch (
|
|
3134
|
-
i.throwException(i.SYNTAX_ERROR,
|
|
3133
|
+
} catch (f) {
|
|
3134
|
+
i.throwException(i.SYNTAX_ERROR, f.message);
|
|
3135
3135
|
}
|
|
3136
3136
|
return i.nativeToPseudo(a);
|
|
3137
|
-
}, this.setProperty(s, "parse", this.createNativeFunction(e, !1)), e = function(c, a,
|
|
3137
|
+
}, this.setProperty(s, "parse", this.createNativeFunction(e, !1)), e = function(c, a, f) {
|
|
3138
3138
|
a && a.class === "Function" ? i.throwException(
|
|
3139
3139
|
i.TYPE_ERROR,
|
|
3140
3140
|
"Function replacer on JSON.stringify not supported"
|
|
3141
|
-
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(
|
|
3142
|
-
return typeof
|
|
3143
|
-
})) : a = null, typeof
|
|
3141
|
+
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(N) {
|
|
3142
|
+
return typeof N == "string" || typeof N == "number";
|
|
3143
|
+
})) : a = null, typeof f != "string" && typeof f != "number" && (f = void 0);
|
|
3144
3144
|
var v = i.pseudoToNative(c);
|
|
3145
3145
|
try {
|
|
3146
|
-
var
|
|
3147
|
-
} catch (
|
|
3148
|
-
i.throwException(i.TYPE_ERROR,
|
|
3146
|
+
var b = JSON.stringify(v, a, f);
|
|
3147
|
+
} catch (N) {
|
|
3148
|
+
i.throwException(i.TYPE_ERROR, N.message);
|
|
3149
3149
|
}
|
|
3150
|
-
return
|
|
3150
|
+
return b;
|
|
3151
3151
|
}, this.setProperty(
|
|
3152
3152
|
s,
|
|
3153
3153
|
"stringify",
|
|
@@ -3207,17 +3207,17 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3207
3207
|
}
|
|
3208
3208
|
c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
|
|
3209
3209
|
}
|
|
3210
|
-
for (var
|
|
3210
|
+
for (var f = String(this.getProperty(t, "name")), v = String(this.getProperty(t, "message")), b = f + ": " + v + `
|
|
3211
3211
|
`, s = 0; s < i.length; s++) {
|
|
3212
|
-
var
|
|
3213
|
-
|
|
3214
|
-
` :
|
|
3212
|
+
var N = i[s].datumLoc, R = i[s].datumName, S = N.source + ":" + N.start.line + ":" + N.start.column;
|
|
3213
|
+
R ? b += " at " + R + " (" + S + `)
|
|
3214
|
+
` : b += " at " + S + `
|
|
3215
3215
|
`;
|
|
3216
3216
|
}
|
|
3217
3217
|
this.setProperty(
|
|
3218
3218
|
t,
|
|
3219
3219
|
"stack",
|
|
3220
|
-
|
|
3220
|
+
b.trim(),
|
|
3221
3221
|
r.NONENUMERABLE_DESCRIPTOR
|
|
3222
3222
|
);
|
|
3223
3223
|
}, r.prototype.createWorker = function() {
|
|
@@ -3247,7 +3247,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3247
3247
|
i = !0;
|
|
3248
3248
|
else {
|
|
3249
3249
|
try {
|
|
3250
|
-
r.vm =
|
|
3250
|
+
r.vm = T(
|
|
3251
3251
|
/*! vm */
|
|
3252
3252
|
"vm"
|
|
3253
3253
|
);
|
|
@@ -3352,23 +3352,23 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3352
3352
|
return c.data = new Date(t.valueOf()), i.pseudo.push(c), c;
|
|
3353
3353
|
}
|
|
3354
3354
|
if (typeof t == "function") {
|
|
3355
|
-
var a = this,
|
|
3355
|
+
var a = this, f = function() {
|
|
3356
3356
|
var S = Array.prototype.slice.call(arguments).map(function(L) {
|
|
3357
3357
|
return a.pseudoToNative(L);
|
|
3358
|
-
}),
|
|
3359
|
-
return a.nativeToPseudo(
|
|
3360
|
-
}, v = Object.getOwnPropertyDescriptor(t, "prototype"),
|
|
3361
|
-
return i.pseudo.push(
|
|
3358
|
+
}), k = t.apply(a, S);
|
|
3359
|
+
return a.nativeToPseudo(k);
|
|
3360
|
+
}, v = Object.getOwnPropertyDescriptor(t, "prototype"), b = this.createNativeFunction(f, !!v);
|
|
3361
|
+
return i.pseudo.push(b), b;
|
|
3362
3362
|
}
|
|
3363
|
-
var
|
|
3364
|
-
Array.isArray(t) ?
|
|
3365
|
-
for (var
|
|
3363
|
+
var N;
|
|
3364
|
+
Array.isArray(t) ? N = this.createArray() : N = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(N);
|
|
3365
|
+
for (var R in t)
|
|
3366
3366
|
this.setProperty(
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
this.nativeToPseudo(t[
|
|
3367
|
+
N,
|
|
3368
|
+
R,
|
|
3369
|
+
this.nativeToPseudo(t[R], i)
|
|
3370
3370
|
);
|
|
3371
|
-
return
|
|
3371
|
+
return N;
|
|
3372
3372
|
}, r.prototype.pseudoToNative = function(t, e) {
|
|
3373
3373
|
if (t == null || t === !0 || t === !1 || typeof t == "string" || typeof t == "number")
|
|
3374
3374
|
return t;
|
|
@@ -3390,13 +3390,13 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3390
3390
|
}
|
|
3391
3391
|
var a = this.isa(t, this.ARRAY) ? [] : {};
|
|
3392
3392
|
i.native.push(a);
|
|
3393
|
-
var
|
|
3393
|
+
var f;
|
|
3394
3394
|
for (var v in t.properties)
|
|
3395
|
-
|
|
3395
|
+
f = this.pseudoToNative(t.properties[v], i), Object.defineProperty(
|
|
3396
3396
|
a,
|
|
3397
3397
|
v,
|
|
3398
3398
|
{
|
|
3399
|
-
value:
|
|
3399
|
+
value: f,
|
|
3400
3400
|
writable: !0,
|
|
3401
3401
|
enumerable: !0,
|
|
3402
3402
|
configurable: !0
|
|
@@ -3472,7 +3472,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3472
3472
|
}
|
|
3473
3473
|
}
|
|
3474
3474
|
if (t.class === "Array") {
|
|
3475
|
-
var a = t.properties.length,
|
|
3475
|
+
var a = t.properties.length, f;
|
|
3476
3476
|
if (e === "length") {
|
|
3477
3477
|
if (s) {
|
|
3478
3478
|
if (!("value" in s))
|
|
@@ -3480,9 +3480,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3480
3480
|
i = s.value;
|
|
3481
3481
|
}
|
|
3482
3482
|
if (i = r.legalArrayLength(i), isNaN(i) && this.throwException(this.RANGE_ERROR, "Invalid array length"), i < a)
|
|
3483
|
-
for (
|
|
3484
|
-
|
|
3485
|
-
} else isNaN(
|
|
3483
|
+
for (f in t.properties)
|
|
3484
|
+
f = r.legalArrayIndex(f), !isNaN(f) && i <= f && delete t.properties[f];
|
|
3485
|
+
} else isNaN(f = r.legalArrayIndex(e)) || (t.properties.length = Math.max(a, f + 1));
|
|
3486
3486
|
}
|
|
3487
3487
|
if (t.preventExtensions && !(e in t.properties)) {
|
|
3488
3488
|
u && this.throwException(this.TYPE_ERROR, "Can't add property '" + e + "', object is not extensible");
|
|
@@ -3500,14 +3500,14 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3500
3500
|
} else {
|
|
3501
3501
|
if (i === r.VALUE_IN_DESCRIPTOR)
|
|
3502
3502
|
throw ReferenceError("Value not specified");
|
|
3503
|
-
for (var
|
|
3504
|
-
if (
|
|
3505
|
-
|
|
3503
|
+
for (var b = t; !(e in b.properties); )
|
|
3504
|
+
if (b = this.getPrototype(b), !b) {
|
|
3505
|
+
b = t;
|
|
3506
3506
|
break;
|
|
3507
3507
|
}
|
|
3508
|
-
if (
|
|
3509
|
-
return this.setterStep_ = !0,
|
|
3510
|
-
if (
|
|
3508
|
+
if (b.setter && b.setter[e])
|
|
3509
|
+
return this.setterStep_ = !0, b.setter[e];
|
|
3510
|
+
if (b.getter && b.getter[e])
|
|
3511
3511
|
u && this.throwException(this.TYPE_ERROR, "Cannot set property '" + e + "' of object '" + t + "' which only has a getter");
|
|
3512
3512
|
else
|
|
3513
3513
|
try {
|
|
@@ -3613,18 +3613,18 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3613
3613
|
if (c !== "loc") {
|
|
3614
3614
|
var a = t[c];
|
|
3615
3615
|
if (a && typeof a == "object") {
|
|
3616
|
-
var
|
|
3616
|
+
var f;
|
|
3617
3617
|
if (Array.isArray(a)) {
|
|
3618
3618
|
for (var s = 0; s < a.length; s++)
|
|
3619
3619
|
if (a[s] && a[s].constructor === u) {
|
|
3620
|
-
|
|
3621
|
-
for (var c in
|
|
3622
|
-
i[c] =
|
|
3620
|
+
f = this.populateScope_(a[s], e);
|
|
3621
|
+
for (var c in f)
|
|
3622
|
+
i[c] = f[c];
|
|
3623
3623
|
}
|
|
3624
3624
|
} else if (a.constructor === u) {
|
|
3625
|
-
|
|
3626
|
-
for (var c in
|
|
3627
|
-
i[c] =
|
|
3625
|
+
f = this.populateScope_(a, e);
|
|
3626
|
+
for (var c in f)
|
|
3627
|
+
i[c] = f[c];
|
|
3628
3628
|
}
|
|
3629
3629
|
}
|
|
3630
3630
|
}
|
|
@@ -3700,8 +3700,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3700
3700
|
SyntaxError,
|
|
3701
3701
|
TypeError,
|
|
3702
3702
|
URIError
|
|
3703
|
-
},
|
|
3704
|
-
c =
|
|
3703
|
+
}, f = String(this.getProperty(e, "name")), v = this.getProperty(e, "message").valueOf(), b = a[f] || Error;
|
|
3704
|
+
c = b(v), c.stack = String(this.getProperty(e, "stack"));
|
|
3705
3705
|
} else
|
|
3706
3706
|
c = String(e);
|
|
3707
3707
|
throw this.value = c, c;
|
|
@@ -3737,27 +3737,27 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3737
3737
|
}
|
|
3738
3738
|
return "???";
|
|
3739
3739
|
}, r.prototype.createTask_ = function(t, e) {
|
|
3740
|
-
var i = this.stateStack[this.stateStack.length - 1], s = Array.from(e), u = s.shift(), c = Math.max(Number(s.shift() || 0), 0), a = this.newNode(),
|
|
3740
|
+
var i = this.stateStack[this.stateStack.length - 1], s = Array.from(e), u = s.shift(), c = Math.max(Number(s.shift() || 0), 0), a = this.newNode(), f, v, b;
|
|
3741
3741
|
if (u instanceof r.Object && u.class === "Function")
|
|
3742
|
-
v = u, a.type = "CallExpression",
|
|
3742
|
+
v = u, a.type = "CallExpression", f = i.scope;
|
|
3743
3743
|
else {
|
|
3744
3744
|
try {
|
|
3745
|
-
|
|
3745
|
+
b = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
|
|
3746
3746
|
} catch (L) {
|
|
3747
3747
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + L.message);
|
|
3748
3748
|
}
|
|
3749
|
-
a.type = "EvalProgram_", a.body =
|
|
3750
|
-
var
|
|
3751
|
-
r.stripLocations_(a,
|
|
3749
|
+
a.type = "EvalProgram_", a.body = b.body;
|
|
3750
|
+
var N = i.node.arguments[0], R = N ? N.start : void 0, S = N ? N.end : void 0;
|
|
3751
|
+
r.stripLocations_(a, R, S), f = this.globalScope, s.length = 0;
|
|
3752
3752
|
}
|
|
3753
|
-
var
|
|
3753
|
+
var k = new r.Task(
|
|
3754
3754
|
v,
|
|
3755
3755
|
s,
|
|
3756
|
-
|
|
3756
|
+
f,
|
|
3757
3757
|
a,
|
|
3758
3758
|
t ? c : -1
|
|
3759
3759
|
);
|
|
3760
|
-
return this.scheduleTask_(
|
|
3760
|
+
return this.scheduleTask_(k, c), k.pid;
|
|
3761
3761
|
}, r.prototype.scheduleTask_ = function(t, e) {
|
|
3762
3762
|
t.time = Date.now() + e, this.tasks.push(t), this.tasks.sort(function(i, s) {
|
|
3763
3763
|
return i.time - s.time;
|
|
@@ -3844,7 +3844,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3844
3844
|
var t = r.toStringCycles_;
|
|
3845
3845
|
if (t.indexOf(this) !== -1)
|
|
3846
3846
|
return "[object Error]";
|
|
3847
|
-
var a,
|
|
3847
|
+
var a, f, v = this;
|
|
3848
3848
|
do
|
|
3849
3849
|
if ("name" in v.properties) {
|
|
3850
3850
|
a = v.properties.name;
|
|
@@ -3854,17 +3854,17 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3854
3854
|
v = this;
|
|
3855
3855
|
do
|
|
3856
3856
|
if ("message" in v.properties) {
|
|
3857
|
-
|
|
3857
|
+
f = v.properties.message;
|
|
3858
3858
|
break;
|
|
3859
3859
|
}
|
|
3860
3860
|
while (v = v.proto);
|
|
3861
3861
|
t.push(this);
|
|
3862
3862
|
try {
|
|
3863
|
-
a = a && String(a),
|
|
3863
|
+
a = a && String(a), f = f && String(f);
|
|
3864
3864
|
} finally {
|
|
3865
3865
|
t.pop();
|
|
3866
3866
|
}
|
|
3867
|
-
return
|
|
3867
|
+
return f ? a + ": " + f : String(a);
|
|
3868
3868
|
}
|
|
3869
3869
|
return this.data !== null ? String(this.data) : "[object " + this.class + "]";
|
|
3870
3870
|
}, r.Object.prototype.valueOf = function() {
|
|
@@ -3906,43 +3906,43 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3906
3906
|
t.pop(), t[t.length - 1].value = e.setterValue_;
|
|
3907
3907
|
return;
|
|
3908
3908
|
}
|
|
3909
|
-
var a = e.leftValue_,
|
|
3909
|
+
var a = e.leftValue_, f = e.value;
|
|
3910
3910
|
switch (i.operator) {
|
|
3911
3911
|
case "=":
|
|
3912
|
-
a =
|
|
3912
|
+
a = f;
|
|
3913
3913
|
break;
|
|
3914
3914
|
case "+=":
|
|
3915
|
-
a +=
|
|
3915
|
+
a += f;
|
|
3916
3916
|
break;
|
|
3917
3917
|
case "-=":
|
|
3918
|
-
a -=
|
|
3918
|
+
a -= f;
|
|
3919
3919
|
break;
|
|
3920
3920
|
case "*=":
|
|
3921
|
-
a *=
|
|
3921
|
+
a *= f;
|
|
3922
3922
|
break;
|
|
3923
3923
|
case "/=":
|
|
3924
|
-
a /=
|
|
3924
|
+
a /= f;
|
|
3925
3925
|
break;
|
|
3926
3926
|
case "%=":
|
|
3927
|
-
a %=
|
|
3927
|
+
a %= f;
|
|
3928
3928
|
break;
|
|
3929
3929
|
case "<<=":
|
|
3930
|
-
a <<=
|
|
3930
|
+
a <<= f;
|
|
3931
3931
|
break;
|
|
3932
3932
|
case ">>=":
|
|
3933
|
-
a >>=
|
|
3933
|
+
a >>= f;
|
|
3934
3934
|
break;
|
|
3935
3935
|
case ">>>=":
|
|
3936
|
-
a >>>=
|
|
3936
|
+
a >>>= f;
|
|
3937
3937
|
break;
|
|
3938
3938
|
case "&=":
|
|
3939
|
-
a &=
|
|
3939
|
+
a &= f;
|
|
3940
3940
|
break;
|
|
3941
3941
|
case "^=":
|
|
3942
|
-
a ^=
|
|
3942
|
+
a ^= f;
|
|
3943
3943
|
break;
|
|
3944
3944
|
case "|=":
|
|
3945
|
-
a |=
|
|
3945
|
+
a |= f;
|
|
3946
3946
|
break;
|
|
3947
3947
|
default:
|
|
3948
3948
|
throw SyntaxError("Unknown assignment expression: " + i.operator);
|
|
@@ -4087,26 +4087,26 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4087
4087
|
);
|
|
4088
4088
|
var a = u.node;
|
|
4089
4089
|
if (a) {
|
|
4090
|
-
for (var
|
|
4091
|
-
this.setProperty(v,
|
|
4092
|
-
this.setProperty(
|
|
4093
|
-
for (var
|
|
4094
|
-
var
|
|
4095
|
-
this.setProperty(
|
|
4090
|
+
for (var f = this.createScope(a.body, u.parentScope), v = this.createArray(), b = 0; b < e.arguments_.length; b++)
|
|
4091
|
+
this.setProperty(v, b, e.arguments_[b]);
|
|
4092
|
+
this.setProperty(f.object, "arguments", v);
|
|
4093
|
+
for (var b = 0; b < a.params.length; b++) {
|
|
4094
|
+
var N = a.params[b].name, R = e.arguments_.length > b ? e.arguments_[b] : void 0;
|
|
4095
|
+
this.setProperty(f.object, N, R);
|
|
4096
4096
|
}
|
|
4097
|
-
return
|
|
4098
|
-
|
|
4097
|
+
return f.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
|
|
4098
|
+
f.object,
|
|
4099
4099
|
"this",
|
|
4100
4100
|
e.funcThis_,
|
|
4101
4101
|
r.READONLY_DESCRIPTOR
|
|
4102
|
-
), e.value = void 0, new r.State(a.body,
|
|
4102
|
+
), e.value = void 0, new r.State(a.body, f);
|
|
4103
4103
|
} else if (u.eval) {
|
|
4104
4104
|
var S = e.arguments_[0];
|
|
4105
4105
|
if (typeof S != "string")
|
|
4106
4106
|
e.value = S;
|
|
4107
4107
|
else {
|
|
4108
4108
|
try {
|
|
4109
|
-
var
|
|
4109
|
+
var k = this.parse_(
|
|
4110
4110
|
String(S),
|
|
4111
4111
|
"eval" + this.evalCodeNumber_++
|
|
4112
4112
|
);
|
|
@@ -4114,19 +4114,19 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4114
4114
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + $.message);
|
|
4115
4115
|
}
|
|
4116
4116
|
var L = this.newNode();
|
|
4117
|
-
L.type = "EvalProgram_", L.body =
|
|
4118
|
-
var
|
|
4119
|
-
return
|
|
4117
|
+
L.type = "EvalProgram_", L.body = k.body, r.stripLocations_(L, i.start, i.end);
|
|
4118
|
+
var f = e.directEval_ ? e.scope : this.globalScope;
|
|
4119
|
+
return f.strict ? f = this.createScope(k, f) : this.populateScope_(k, f), this.value = void 0, new r.State(L, f);
|
|
4120
4120
|
}
|
|
4121
4121
|
} else if (u.nativeFunc)
|
|
4122
4122
|
e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), e.value = u.nativeFunc.apply(e.funcThis_, e.arguments_);
|
|
4123
4123
|
else if (u.asyncFunc) {
|
|
4124
|
-
var H = this,
|
|
4124
|
+
var H = this, ze = function(Ee) {
|
|
4125
4125
|
e.value = Ee, H.paused_ = !1;
|
|
4126
4126
|
}, re = u.asyncFunc.length - 1, Pe = e.arguments_.concat(
|
|
4127
4127
|
new Array(re)
|
|
4128
4128
|
).slice(0, re);
|
|
4129
|
-
Pe.push(
|
|
4129
|
+
Pe.push(ze), this.paused_ = !0, e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), u.asyncFunc.apply(e.funcThis_, Pe);
|
|
4130
4130
|
return;
|
|
4131
4131
|
} else
|
|
4132
4132
|
this.throwException(
|
|
@@ -4228,9 +4228,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4228
4228
|
}
|
|
4229
4229
|
if (e.variable_ || (e.variable_ = e.value), !e.doneSetter_) {
|
|
4230
4230
|
e.doneSetter_ = !0;
|
|
4231
|
-
var a = e.name_,
|
|
4232
|
-
if (
|
|
4233
|
-
return this.createSetter_(
|
|
4231
|
+
var a = e.name_, f = this.setValue(e.variable_, a);
|
|
4232
|
+
if (f)
|
|
4233
|
+
return this.createSetter_(f, e.variable_, a);
|
|
4234
4234
|
}
|
|
4235
4235
|
if (e.name_ = void 0, e.doneVariable_ = !1, e.doneSetter_ = !1, i.body)
|
|
4236
4236
|
return new r.State(i.body, e.scope);
|
|
@@ -4347,13 +4347,13 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4347
4347
|
return e.destinationName = c, new r.State(u.value, e.scope);
|
|
4348
4348
|
}
|
|
4349
4349
|
for (var a in e.properties_) {
|
|
4350
|
-
var
|
|
4351
|
-
if ("get" in
|
|
4350
|
+
var f = e.properties_[a];
|
|
4351
|
+
if ("get" in f || "set" in f) {
|
|
4352
4352
|
var v = {
|
|
4353
4353
|
configurable: !0,
|
|
4354
4354
|
enumerable: !0,
|
|
4355
|
-
get:
|
|
4356
|
-
set:
|
|
4355
|
+
get: f.get,
|
|
4356
|
+
set: f.set
|
|
4357
4357
|
};
|
|
4358
4358
|
this.setProperty(
|
|
4359
4359
|
e.object_,
|
|
@@ -4362,7 +4362,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4362
4362
|
v
|
|
4363
4363
|
);
|
|
4364
4364
|
} else
|
|
4365
|
-
this.setProperty(e.object_, a,
|
|
4365
|
+
this.setProperty(e.object_, a, f.init);
|
|
4366
4366
|
}
|
|
4367
4367
|
t.pop(), t[t.length - 1].value = e.object_;
|
|
4368
4368
|
}, r.prototype.stepProgram = function(t, e, i) {
|
|
@@ -4451,11 +4451,11 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4451
4451
|
if (Array.isArray(u)) {
|
|
4452
4452
|
var a = u[0];
|
|
4453
4453
|
a === r.SCOPE_REFERENCE && (a = e.scope);
|
|
4454
|
-
var
|
|
4454
|
+
var f = String(u[1]);
|
|
4455
4455
|
try {
|
|
4456
|
-
delete a.properties[
|
|
4456
|
+
delete a.properties[f];
|
|
4457
4457
|
} catch {
|
|
4458
|
-
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" +
|
|
4458
|
+
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" + f + "' of '" + a + "'") : c = !1;
|
|
4459
4459
|
}
|
|
4460
4460
|
}
|
|
4461
4461
|
u = c;
|
|
@@ -4498,10 +4498,10 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4498
4498
|
a = c - 1;
|
|
4499
4499
|
else
|
|
4500
4500
|
throw SyntaxError("Unknown update expression: " + i.operator);
|
|
4501
|
-
var
|
|
4501
|
+
var f = i.prefix ? a : c, v = this.setValue(e.leftSide_, a);
|
|
4502
4502
|
if (v)
|
|
4503
|
-
return e.doneSetter_ = !0, e.setterValue_ =
|
|
4504
|
-
t.pop(), t[t.length - 1].value =
|
|
4503
|
+
return e.doneSetter_ = !0, e.setterValue_ = f, this.createSetter_(v, e.leftSide_, a);
|
|
4504
|
+
t.pop(), t[t.length - 1].value = f;
|
|
4505
4505
|
}, r.prototype.stepVariableDeclaration = function(t, e, i) {
|
|
4506
4506
|
var s = i.declarations, u = e.n_ || 0, c = s[u];
|
|
4507
4507
|
for (e.init_ && c && (this.setValueToScope(c.id.name, e.value), e.init_ = !1, c = s[++u]); c; ) {
|
|
@@ -4516,7 +4516,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4516
4516
|
t.pop();
|
|
4517
4517
|
var s = this.createSpecialScope(e.scope, e.value);
|
|
4518
4518
|
return new r.State(i.body, s);
|
|
4519
|
-
}, 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,
|
|
4519
|
+
}, 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, y.exports = {
|
|
4520
4520
|
Interpreter: r
|
|
4521
4521
|
};
|
|
4522
4522
|
}
|
|
@@ -4527,14 +4527,14 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4527
4527
|
!*** ./original-repo/acorn.js ***!
|
|
4528
4528
|
\********************************/
|
|
4529
4529
|
/***/
|
|
4530
|
-
function(
|
|
4531
|
-
(function(
|
|
4530
|
+
function(y, O) {
|
|
4531
|
+
(function(T, r) {
|
|
4532
4532
|
return r(O);
|
|
4533
|
-
})(typeof globalThis > "u" ? this || window : globalThis, function(
|
|
4534
|
-
|
|
4533
|
+
})(typeof globalThis > "u" ? this || window : globalThis, function(T) {
|
|
4534
|
+
T.version = "0.5.0";
|
|
4535
4535
|
var r, t = "", e, i;
|
|
4536
|
-
|
|
4537
|
-
return t = String(
|
|
4536
|
+
T.parse = function(p, d) {
|
|
4537
|
+
return t = String(p), e = t.length, u(d), ca(), Oa(r.program);
|
|
4538
4538
|
};
|
|
4539
4539
|
var s = {
|
|
4540
4540
|
// JS-Interpreter change:
|
|
@@ -4594,185 +4594,185 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4594
4594
|
// `locations` is on or off.
|
|
4595
4595
|
directSourceFile: null
|
|
4596
4596
|
};
|
|
4597
|
-
function u(
|
|
4598
|
-
r =
|
|
4597
|
+
function u(p) {
|
|
4598
|
+
r = p || {};
|
|
4599
4599
|
for (var d in s)
|
|
4600
4600
|
Object.prototype.hasOwnProperty.call(r, d) || (r[d] = s[d]);
|
|
4601
4601
|
i = r.sourceFile;
|
|
4602
4602
|
}
|
|
4603
|
-
var c = function(
|
|
4604
|
-
for (var
|
|
4605
|
-
|
|
4606
|
-
var C =
|
|
4603
|
+
var c = function(p, d) {
|
|
4604
|
+
for (var m = 1, E = 0; ; ) {
|
|
4605
|
+
pt.lastIndex = E;
|
|
4606
|
+
var C = pt.exec(p);
|
|
4607
4607
|
if (C && C.index < d)
|
|
4608
|
-
++
|
|
4608
|
+
++m, E = C.index + C[0].length;
|
|
4609
4609
|
else
|
|
4610
4610
|
break;
|
|
4611
4611
|
}
|
|
4612
|
-
return { line:
|
|
4613
|
-
}, a = 0,
|
|
4614
|
-
function I(
|
|
4615
|
-
var
|
|
4616
|
-
d += " (" +
|
|
4612
|
+
return { line: m, column: d - E };
|
|
4613
|
+
}, a = 0, f = 0, v = 0, b, N, R, S, k, L, H, ze = 0, re = 0, Pe, Ee, $, q;
|
|
4614
|
+
function I(p, d) {
|
|
4615
|
+
var m = c(t, p);
|
|
4616
|
+
d += " (" + m.line + ":" + m.column + ")";
|
|
4617
4617
|
var E = new SyntaxError(d);
|
|
4618
|
-
throw E.pos =
|
|
4618
|
+
throw E.pos = p, E.loc = m, E.raisedAt = a, E;
|
|
4619
4619
|
}
|
|
4620
|
-
var Hi = [],
|
|
4621
|
-
break:
|
|
4622
|
-
case:
|
|
4623
|
-
catch:
|
|
4624
|
-
continue:
|
|
4625
|
-
debugger:
|
|
4626
|
-
default:
|
|
4627
|
-
do:
|
|
4628
|
-
else:
|
|
4629
|
-
finally:
|
|
4630
|
-
for:
|
|
4631
|
-
function:
|
|
4632
|
-
if:
|
|
4633
|
-
return:
|
|
4634
|
-
switch:
|
|
4635
|
-
throw:
|
|
4636
|
-
try:
|
|
4637
|
-
var:
|
|
4638
|
-
while:
|
|
4639
|
-
with:
|
|
4640
|
-
null:
|
|
4641
|
-
true:
|
|
4642
|
-
false:
|
|
4643
|
-
new:
|
|
4644
|
-
in:
|
|
4620
|
+
var Hi = [], ut = { type: "num" }, Ir = { type: "regexp" }, St = { type: "string" }, Ce = { type: "name" }, wt = { type: "eof" }, Pt = { keyword: "break" }, Ct = { keyword: "case", beforeExpr: !0 }, Dr = { keyword: "catch" }, Lr = { keyword: "continue" }, Mr = { keyword: "debugger" }, Fr = { keyword: "default" }, Ur = { keyword: "do", isLoop: !0 }, jr = { keyword: "else", beforeExpr: !0 }, Br = { keyword: "finally" }, $r = { keyword: "for", isLoop: !0 }, kt = { keyword: "function" }, Vr = { keyword: "if" }, Gr = { keyword: "return", beforeExpr: !0 }, At = { keyword: "switch" }, Yr = { keyword: "throw", beforeExpr: !0 }, zr = { keyword: "try" }, It = { keyword: "var" }, Dt = { keyword: "while", isLoop: !0 }, Xr = { keyword: "with" }, Wr = { keyword: "new", beforeExpr: !0 }, Hr = { keyword: "this" }, Jr = { keyword: "null", atomValue: null }, Kr = { keyword: "true", atomValue: !0 }, qr = { keyword: "false", atomValue: !1 }, st = { keyword: "in", binop: 7, beforeExpr: !0 }, Ji = {
|
|
4621
|
+
break: Pt,
|
|
4622
|
+
case: Ct,
|
|
4623
|
+
catch: Dr,
|
|
4624
|
+
continue: Lr,
|
|
4625
|
+
debugger: Mr,
|
|
4626
|
+
default: Fr,
|
|
4627
|
+
do: Ur,
|
|
4628
|
+
else: jr,
|
|
4629
|
+
finally: Br,
|
|
4630
|
+
for: $r,
|
|
4631
|
+
function: kt,
|
|
4632
|
+
if: Vr,
|
|
4633
|
+
return: Gr,
|
|
4634
|
+
switch: At,
|
|
4635
|
+
throw: Yr,
|
|
4636
|
+
try: zr,
|
|
4637
|
+
var: It,
|
|
4638
|
+
while: Dt,
|
|
4639
|
+
with: Xr,
|
|
4640
|
+
null: Jr,
|
|
4641
|
+
true: Kr,
|
|
4642
|
+
false: qr,
|
|
4643
|
+
new: Wr,
|
|
4644
|
+
in: st,
|
|
4645
4645
|
instanceof: { keyword: "instanceof", binop: 7, beforeExpr: !0 },
|
|
4646
|
-
this:
|
|
4646
|
+
this: Hr,
|
|
4647
4647
|
typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
|
|
4648
4648
|
void: { keyword: "void", prefix: !0, beforeExpr: !0 },
|
|
4649
4649
|
delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
|
|
4650
|
-
},
|
|
4651
|
-
function
|
|
4652
|
-
for (var d =
|
|
4653
|
-
|
|
4650
|
+
}, Lt = { type: "[", beforeExpr: !0 }, Mt = { type: "]" }, Xe = { type: "{", beforeExpr: !0 }, ke = { type: "}" }, se = { type: "(", beforeExpr: !0 }, ae = { type: ")" }, ve = { type: ",", beforeExpr: !0 }, le = { type: ";", beforeExpr: !0 }, We = { type: ":", beforeExpr: !0 }, Zr = { type: "." }, Qr = { type: "?", beforeExpr: !0 }, en = { binop: 10, beforeExpr: !0 }, tn = { isAssign: !0, beforeExpr: !0 }, Re = { isAssign: !0, beforeExpr: !0 }, Ki = { postfix: !0, prefix: !0, isUpdate: !0 }, rn = { prefix: !0, beforeExpr: !0 }, nn = { binop: 1, beforeExpr: !0 }, an = { binop: 2, beforeExpr: !0 }, qi = { binop: 3, beforeExpr: !0 }, Zi = { binop: 4, beforeExpr: !0 }, Qi = { binop: 5, beforeExpr: !0 }, ea = { binop: 6, beforeExpr: !0 }, ta = { binop: 7, beforeExpr: !0 }, ra = { binop: 8, beforeExpr: !0 }, na = { binop: 9, prefix: !0, beforeExpr: !0 }, ia = { binop: 10, beforeExpr: !0 };
|
|
4651
|
+
function lt(p) {
|
|
4652
|
+
for (var d = p.split(" "), m = /* @__PURE__ */ Object.create(null), E = 0; E < d.length; E++)
|
|
4653
|
+
m[d[E]] = !0;
|
|
4654
4654
|
return function(C) {
|
|
4655
|
-
return
|
|
4655
|
+
return m[C] || !1;
|
|
4656
4656
|
};
|
|
4657
4657
|
}
|
|
4658
|
-
var aa =
|
|
4659
|
-
return
|
|
4660
|
-
},
|
|
4661
|
-
return
|
|
4658
|
+
var aa = lt("class enum extends super const export import"), on = lt("implements interface let package private protected public static yield"), ct = lt("eval arguments"), oa = lt("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"), ua = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, un = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", sa = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_", sn = new RegExp("[" + un + "]"), la = new RegExp("[" + un + sa + "]"), ft = /[\n\r\u2028\u2029]/, pt = /\r\n|[\n\r\u2028\u2029]/g, dt = function(p) {
|
|
4659
|
+
return p < 65 ? p === 36 : p < 91 ? !0 : p < 97 ? p === 95 : p < 123 ? !0 : p >= 170 && sn.test(String.fromCharCode(p));
|
|
4660
|
+
}, ln = function(p) {
|
|
4661
|
+
return p < 48 ? p === 36 : p < 58 ? !0 : p < 65 ? !1 : p < 91 ? !0 : p < 97 ? p === 95 : p < 123 ? !0 : p >= 170 && la.test(String.fromCharCode(p));
|
|
4662
4662
|
};
|
|
4663
4663
|
function Oe() {
|
|
4664
4664
|
this.line = L, this.column = a - H;
|
|
4665
4665
|
}
|
|
4666
4666
|
function ca() {
|
|
4667
|
-
L = 1, a = H = 0,
|
|
4667
|
+
L = 1, a = H = 0, k = !0, He();
|
|
4668
4668
|
}
|
|
4669
|
-
function Y(
|
|
4670
|
-
v = a, r.locations && (
|
|
4669
|
+
function Y(p, d) {
|
|
4670
|
+
v = a, r.locations && (N = new Oe()), R = p, He(), S = d, k = p.beforeExpr;
|
|
4671
4671
|
}
|
|
4672
4672
|
function fa() {
|
|
4673
|
-
var
|
|
4674
|
-
if (
|
|
4675
|
-
|
|
4676
|
-
for (var E; (E =
|
|
4673
|
+
var p = r.onComment && r.locations && new Oe(), d = a, m = t.indexOf("*/", a += 2);
|
|
4674
|
+
if (m === -1 && I(a - 2, "Unterminated comment"), a = m + 2, r.locations) {
|
|
4675
|
+
pt.lastIndex = d;
|
|
4676
|
+
for (var E; (E = pt.exec(t)) && E.index < a; )
|
|
4677
4677
|
++L, H = E.index + E[0].length;
|
|
4678
4678
|
}
|
|
4679
4679
|
r.onComment && r.onComment(
|
|
4680
4680
|
!0,
|
|
4681
|
-
t.slice(d + 2,
|
|
4681
|
+
t.slice(d + 2, m),
|
|
4682
4682
|
d,
|
|
4683
4683
|
a,
|
|
4684
|
-
|
|
4684
|
+
p,
|
|
4685
4685
|
r.locations && new Oe()
|
|
4686
4686
|
);
|
|
4687
4687
|
}
|
|
4688
|
-
function
|
|
4689
|
-
for (var
|
|
4690
|
-
++a,
|
|
4688
|
+
function Ft() {
|
|
4689
|
+
for (var p = a, d = r.onComment && r.locations && new Oe(), m = t.charCodeAt(a += 2); a < e && m !== 10 && m !== 13 && m !== 8232 && m !== 8233; )
|
|
4690
|
+
++a, m = t.charCodeAt(a);
|
|
4691
4691
|
r.onComment && r.onComment(
|
|
4692
4692
|
!1,
|
|
4693
|
-
t.slice(
|
|
4694
|
-
|
|
4693
|
+
t.slice(p + 2, a),
|
|
4694
|
+
p,
|
|
4695
4695
|
a,
|
|
4696
4696
|
d,
|
|
4697
4697
|
r.locations && new Oe()
|
|
4698
4698
|
);
|
|
4699
4699
|
}
|
|
4700
|
-
function
|
|
4700
|
+
function He() {
|
|
4701
4701
|
for (; a < e; ) {
|
|
4702
|
-
var
|
|
4703
|
-
if (
|
|
4702
|
+
var p = t.charCodeAt(a);
|
|
4703
|
+
if (p === 32)
|
|
4704
4704
|
++a;
|
|
4705
|
-
else if (
|
|
4705
|
+
else if (p === 13) {
|
|
4706
4706
|
++a;
|
|
4707
4707
|
var d = t.charCodeAt(a);
|
|
4708
4708
|
d === 10 && ++a, r.locations && (++L, H = a);
|
|
4709
|
-
} else if (
|
|
4709
|
+
} else if (p === 10 || p === 8232 || p === 8233)
|
|
4710
4710
|
++a, r.locations && (++L, H = a);
|
|
4711
|
-
else if (
|
|
4711
|
+
else if (p > 8 && p < 14)
|
|
4712
4712
|
++a;
|
|
4713
|
-
else if (
|
|
4713
|
+
else if (p === 47) {
|
|
4714
4714
|
var d = t.charCodeAt(a + 1);
|
|
4715
4715
|
if (d === 42)
|
|
4716
4716
|
fa();
|
|
4717
4717
|
else if (d === 47)
|
|
4718
|
-
|
|
4718
|
+
Ft();
|
|
4719
4719
|
else break;
|
|
4720
|
-
} else if (
|
|
4720
|
+
} else if (p === 160)
|
|
4721
4721
|
++a;
|
|
4722
|
-
else if (
|
|
4722
|
+
else if (p >= 5760 && ua.test(String.fromCharCode(p)))
|
|
4723
4723
|
++a;
|
|
4724
4724
|
else
|
|
4725
4725
|
break;
|
|
4726
4726
|
}
|
|
4727
4727
|
}
|
|
4728
4728
|
function pa() {
|
|
4729
|
-
var
|
|
4730
|
-
|
|
4729
|
+
var p = t.charCodeAt(a + 1);
|
|
4730
|
+
p >= 48 && p <= 57 ? fn(!0) : (++a, Y(Zr));
|
|
4731
4731
|
}
|
|
4732
4732
|
function da() {
|
|
4733
|
-
var
|
|
4734
|
-
|
|
4733
|
+
var p = t.charCodeAt(a + 1);
|
|
4734
|
+
k ? (++a, cn()) : p === 61 ? z(Re, 2) : z(en, 1);
|
|
4735
4735
|
}
|
|
4736
4736
|
function ha() {
|
|
4737
|
-
var
|
|
4738
|
-
|
|
4737
|
+
var p = t.charCodeAt(a + 1);
|
|
4738
|
+
p === 61 ? z(Re, 2) : z(ia, 1);
|
|
4739
4739
|
}
|
|
4740
|
-
function va(
|
|
4740
|
+
function va(p) {
|
|
4741
4741
|
var d = t.charCodeAt(a + 1);
|
|
4742
|
-
d ===
|
|
4742
|
+
d === p ? z(p === 124 ? nn : an, 2) : d === 61 ? z(Re, 2) : z(p === 124 ? qi : Qi, 1);
|
|
4743
4743
|
}
|
|
4744
|
-
function
|
|
4745
|
-
var
|
|
4746
|
-
|
|
4744
|
+
function ya() {
|
|
4745
|
+
var p = t.charCodeAt(a + 1);
|
|
4746
|
+
p === 61 ? z(Re, 2) : z(Zi, 1);
|
|
4747
4747
|
}
|
|
4748
|
-
function
|
|
4748
|
+
function ma(p) {
|
|
4749
4749
|
var d = t.charCodeAt(a + 1);
|
|
4750
|
-
if (d ===
|
|
4751
|
-
if (d === 45 && t.charCodeAt(a + 2) === 62 &&
|
|
4752
|
-
a += 3,
|
|
4750
|
+
if (d === p) {
|
|
4751
|
+
if (d === 45 && t.charCodeAt(a + 2) === 62 && ft.test(t.slice(re, a))) {
|
|
4752
|
+
a += 3, Ft(), He(), Ae();
|
|
4753
4753
|
return;
|
|
4754
4754
|
}
|
|
4755
4755
|
z(Ki, 2);
|
|
4756
4756
|
} else d === 61 ? z(Re, 2) : z(na, 1);
|
|
4757
4757
|
}
|
|
4758
|
-
function _a(
|
|
4759
|
-
var d = t.charCodeAt(a + 1),
|
|
4760
|
-
if (d ===
|
|
4761
|
-
|
|
4758
|
+
function _a(p) {
|
|
4759
|
+
var d = t.charCodeAt(a + 1), m = 1;
|
|
4760
|
+
if (d === p) {
|
|
4761
|
+
m = p === 62 && t.charCodeAt(a + 2) === 62 ? 3 : 2, t.charCodeAt(a + m) === 61 ? z(Re, m + 1) : z(ra, m);
|
|
4762
4762
|
return;
|
|
4763
4763
|
}
|
|
4764
|
-
if (d === 33 &&
|
|
4765
|
-
a += 4,
|
|
4764
|
+
if (d === 33 && p === 60 && t.charCodeAt(a + 2) === 45 && t.charCodeAt(a + 3) === 45) {
|
|
4765
|
+
a += 4, Ft(), He(), Ae();
|
|
4766
4766
|
return;
|
|
4767
4767
|
}
|
|
4768
|
-
d === 61 && (
|
|
4768
|
+
d === 61 && (m = t.charCodeAt(a + 2) === 61 ? 3 : 2), z(ta, m);
|
|
4769
4769
|
}
|
|
4770
|
-
function ba(
|
|
4770
|
+
function ba(p) {
|
|
4771
4771
|
var d = t.charCodeAt(a + 1);
|
|
4772
|
-
d === 61 ? z(ea, t.charCodeAt(a + 2) === 61 ? 3 : 2) : z(
|
|
4772
|
+
d === 61 ? z(ea, t.charCodeAt(a + 2) === 61 ? 3 : 2) : z(p === 61 ? tn : rn, 1);
|
|
4773
4773
|
}
|
|
4774
|
-
function ga(
|
|
4775
|
-
switch (
|
|
4774
|
+
function ga(p) {
|
|
4775
|
+
switch (p) {
|
|
4776
4776
|
case 46:
|
|
4777
4777
|
return pa();
|
|
4778
4778
|
case 40:
|
|
@@ -4784,17 +4784,17 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4784
4784
|
case 44:
|
|
4785
4785
|
return ++a, Y(ve);
|
|
4786
4786
|
case 91:
|
|
4787
|
-
return ++a, Y(
|
|
4787
|
+
return ++a, Y(Lt);
|
|
4788
4788
|
case 93:
|
|
4789
|
-
return ++a, Y(
|
|
4789
|
+
return ++a, Y(Mt);
|
|
4790
4790
|
case 123:
|
|
4791
|
-
return ++a, Y(
|
|
4791
|
+
return ++a, Y(Xe);
|
|
4792
4792
|
case 125:
|
|
4793
4793
|
return ++a, Y(ke);
|
|
4794
4794
|
case 58:
|
|
4795
|
-
return ++a, Y(
|
|
4795
|
+
return ++a, Y(We);
|
|
4796
4796
|
case 63:
|
|
4797
|
-
return ++a, Y(
|
|
4797
|
+
return ++a, Y(Qr);
|
|
4798
4798
|
case 48:
|
|
4799
4799
|
var d = t.charCodeAt(a + 1);
|
|
4800
4800
|
if (d === 120 || d === 88) return Ea();
|
|
@@ -4807,10 +4807,10 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4807
4807
|
case 55:
|
|
4808
4808
|
case 56:
|
|
4809
4809
|
case 57:
|
|
4810
|
-
return
|
|
4810
|
+
return fn(!1);
|
|
4811
4811
|
case 34:
|
|
4812
4812
|
case 39:
|
|
4813
|
-
return Ra(
|
|
4813
|
+
return Ra(p);
|
|
4814
4814
|
case 47:
|
|
4815
4815
|
return da();
|
|
4816
4816
|
case 37:
|
|
@@ -4818,47 +4818,47 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4818
4818
|
return ha();
|
|
4819
4819
|
case 124:
|
|
4820
4820
|
case 38:
|
|
4821
|
-
return va(
|
|
4821
|
+
return va(p);
|
|
4822
4822
|
case 94:
|
|
4823
|
-
return
|
|
4823
|
+
return ya();
|
|
4824
4824
|
case 43:
|
|
4825
4825
|
case 45:
|
|
4826
|
-
return
|
|
4826
|
+
return ma(p);
|
|
4827
4827
|
case 60:
|
|
4828
4828
|
case 62:
|
|
4829
|
-
return _a(
|
|
4829
|
+
return _a(p);
|
|
4830
4830
|
case 61:
|
|
4831
4831
|
case 33:
|
|
4832
|
-
return ba(
|
|
4832
|
+
return ba(p);
|
|
4833
4833
|
case 126:
|
|
4834
|
-
return z(
|
|
4834
|
+
return z(rn, 1);
|
|
4835
4835
|
}
|
|
4836
4836
|
return !1;
|
|
4837
4837
|
}
|
|
4838
|
-
function Ae(
|
|
4839
|
-
if (
|
|
4840
|
-
if (a >= e) return Y(
|
|
4838
|
+
function Ae(p) {
|
|
4839
|
+
if (p ? a = f + 1 : f = a, r.locations && (b = new Oe()), p) return cn();
|
|
4840
|
+
if (a >= e) return Y(wt);
|
|
4841
4841
|
var d = t.charCodeAt(a);
|
|
4842
|
-
if (
|
|
4843
|
-
return
|
|
4844
|
-
var
|
|
4845
|
-
if (
|
|
4842
|
+
if (dt(d) || d === 92)
|
|
4843
|
+
return dn();
|
|
4844
|
+
var m = ga(d);
|
|
4845
|
+
if (m === !1) {
|
|
4846
4846
|
var E = String.fromCharCode(d);
|
|
4847
|
-
if (E === "\\" ||
|
|
4848
|
-
return
|
|
4847
|
+
if (E === "\\" || sn.test(E))
|
|
4848
|
+
return dn();
|
|
4849
4849
|
I(a, "Unexpected character '" + E + "'");
|
|
4850
4850
|
}
|
|
4851
4851
|
}
|
|
4852
|
-
function z(
|
|
4853
|
-
var
|
|
4854
|
-
a += d, Y(
|
|
4852
|
+
function z(p, d) {
|
|
4853
|
+
var m = t.slice(a, a + d);
|
|
4854
|
+
a += d, Y(p, m);
|
|
4855
4855
|
}
|
|
4856
|
-
function
|
|
4857
|
-
for (var
|
|
4858
|
-
a >= e && I(
|
|
4856
|
+
function cn() {
|
|
4857
|
+
for (var p, d, m = a; ; ) {
|
|
4858
|
+
a >= e && I(m, "Unterminated regexp");
|
|
4859
4859
|
var E = t.charAt(a);
|
|
4860
|
-
if (
|
|
4861
|
-
|
|
4860
|
+
if (ft.test(E) && I(m, "Unterminated regexp"), p)
|
|
4861
|
+
p = !1;
|
|
4862
4862
|
else {
|
|
4863
4863
|
if (E === "[")
|
|
4864
4864
|
d = !0;
|
|
@@ -4866,60 +4866,60 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4866
4866
|
d = !1;
|
|
4867
4867
|
else if (E === "/" && !d)
|
|
4868
4868
|
break;
|
|
4869
|
-
|
|
4869
|
+
p = E === "\\";
|
|
4870
4870
|
}
|
|
4871
4871
|
++a;
|
|
4872
4872
|
}
|
|
4873
|
-
var C = t.slice(
|
|
4873
|
+
var C = t.slice(m, a);
|
|
4874
4874
|
++a;
|
|
4875
|
-
var w =
|
|
4876
|
-
w && !/^[gmi]*$/.test(w) && I(
|
|
4875
|
+
var w = pn();
|
|
4876
|
+
w && !/^[gmi]*$/.test(w) && I(m, "Invalid regexp flag");
|
|
4877
4877
|
try {
|
|
4878
|
-
var
|
|
4878
|
+
var A = new RegExp(C, w);
|
|
4879
4879
|
} catch (j) {
|
|
4880
|
-
throw j instanceof SyntaxError && I(
|
|
4880
|
+
throw j instanceof SyntaxError && I(m, j.message), j;
|
|
4881
4881
|
}
|
|
4882
|
-
Y(
|
|
4882
|
+
Y(Ir, A);
|
|
4883
4883
|
}
|
|
4884
|
-
function
|
|
4885
|
-
for (var
|
|
4886
|
-
var
|
|
4887
|
-
if (
|
|
4888
|
-
++a, E = E *
|
|
4884
|
+
function Je(p, d) {
|
|
4885
|
+
for (var m = a, E = 0, C = d === void 0 ? 1 / 0 : d, w = 0; w < C; ++w) {
|
|
4886
|
+
var A = t.charCodeAt(a), j;
|
|
4887
|
+
if (A >= 97 ? j = A - 97 + 10 : A >= 65 ? j = A - 65 + 10 : A >= 48 && A <= 57 ? j = A - 48 : j = 1 / 0, j >= p) break;
|
|
4888
|
+
++a, E = E * p + j;
|
|
4889
4889
|
}
|
|
4890
|
-
return a ===
|
|
4890
|
+
return a === m || d !== void 0 && a - m !== d ? null : E;
|
|
4891
4891
|
}
|
|
4892
4892
|
function Ea() {
|
|
4893
4893
|
a += 2;
|
|
4894
|
-
var
|
|
4895
|
-
|
|
4894
|
+
var p = Je(16);
|
|
4895
|
+
p === null && I(f + 2, "Expected hexadecimal number"), dt(t.charCodeAt(a)) && I(a, "Identifier directly after number"), Y(ut, p);
|
|
4896
4896
|
}
|
|
4897
|
-
function
|
|
4898
|
-
var d = a,
|
|
4899
|
-
!
|
|
4897
|
+
function fn(p) {
|
|
4898
|
+
var d = a, m = !1, E = t.charCodeAt(a) === 48;
|
|
4899
|
+
!p && Je(10) === null && I(d, "Invalid number"), t.charCodeAt(a) === 46 && (++a, Je(10), m = !0);
|
|
4900
4900
|
var C = t.charCodeAt(a);
|
|
4901
|
-
(C === 69 || C === 101) && (C = t.charCodeAt(++a), (C === 43 || C === 45) && ++a,
|
|
4902
|
-
var w = t.slice(d, a),
|
|
4903
|
-
|
|
4901
|
+
(C === 69 || C === 101) && (C = t.charCodeAt(++a), (C === 43 || C === 45) && ++a, Je(10) === null && I(d, "Invalid number"), m = !0), dt(t.charCodeAt(a)) && I(a, "Identifier directly after number");
|
|
4902
|
+
var w = t.slice(d, a), A;
|
|
4903
|
+
m ? A = parseFloat(w) : !E || w.length === 1 ? A = parseInt(w, 10) : /[89]/.test(w) || q ? I(d, "Invalid number") : A = parseInt(w, 8), Y(ut, A);
|
|
4904
4904
|
}
|
|
4905
|
-
function Ra(
|
|
4905
|
+
function Ra(p) {
|
|
4906
4906
|
a++;
|
|
4907
4907
|
for (var d = ""; ; ) {
|
|
4908
|
-
a >= e && I(
|
|
4909
|
-
var
|
|
4910
|
-
if (
|
|
4911
|
-
++a, Y(
|
|
4908
|
+
a >= e && I(f, "Unterminated string constant");
|
|
4909
|
+
var m = t.charCodeAt(a);
|
|
4910
|
+
if (m === p) {
|
|
4911
|
+
++a, Y(St, d);
|
|
4912
4912
|
return;
|
|
4913
4913
|
}
|
|
4914
|
-
if (
|
|
4915
|
-
|
|
4914
|
+
if (m === 92) {
|
|
4915
|
+
m = t.charCodeAt(++a);
|
|
4916
4916
|
var E = /^[0-7]+/.exec(t.slice(a, a + 3));
|
|
4917
4917
|
for (E && (E = E[0]); E && parseInt(E, 8) > 255; )
|
|
4918
4918
|
E = E.slice(0, -1);
|
|
4919
4919
|
if (E === "0" && (E = null), ++a, E)
|
|
4920
4920
|
q && I(a - 2, "Octal literal in strict mode"), d += String.fromCharCode(parseInt(E, 8)), a += E.length - 1;
|
|
4921
4921
|
else
|
|
4922
|
-
switch (
|
|
4922
|
+
switch (m) {
|
|
4923
4923
|
case 110:
|
|
4924
4924
|
d += `
|
|
4925
4925
|
`;
|
|
@@ -4928,13 +4928,13 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4928
4928
|
d += "\r";
|
|
4929
4929
|
break;
|
|
4930
4930
|
case 120:
|
|
4931
|
-
d += String.fromCharCode(
|
|
4931
|
+
d += String.fromCharCode(ht(2));
|
|
4932
4932
|
break;
|
|
4933
4933
|
case 117:
|
|
4934
|
-
d += String.fromCharCode(
|
|
4934
|
+
d += String.fromCharCode(ht(4));
|
|
4935
4935
|
break;
|
|
4936
4936
|
case 85:
|
|
4937
|
-
d += String.fromCharCode(
|
|
4937
|
+
d += String.fromCharCode(ht(8));
|
|
4938
4938
|
break;
|
|
4939
4939
|
case 116:
|
|
4940
4940
|
d += " ";
|
|
@@ -4957,337 +4957,337 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4957
4957
|
r.locations && (H = a, ++L);
|
|
4958
4958
|
break;
|
|
4959
4959
|
default:
|
|
4960
|
-
d += String.fromCharCode(
|
|
4960
|
+
d += String.fromCharCode(m);
|
|
4961
4961
|
break;
|
|
4962
4962
|
}
|
|
4963
4963
|
} else
|
|
4964
|
-
(
|
|
4964
|
+
(m === 13 || m === 10 || m === 8232 || m === 8233) && I(f, "Unterminated string constant"), d += String.fromCharCode(m), ++a;
|
|
4965
4965
|
}
|
|
4966
4966
|
}
|
|
4967
|
-
function
|
|
4968
|
-
var d =
|
|
4969
|
-
return d === null && I(
|
|
4967
|
+
function ht(p) {
|
|
4968
|
+
var d = Je(16, p);
|
|
4969
|
+
return d === null && I(f, "Bad character escape sequence"), /** @type {number} */
|
|
4970
4970
|
d;
|
|
4971
4971
|
}
|
|
4972
4972
|
var Ie;
|
|
4973
|
-
function
|
|
4973
|
+
function pn() {
|
|
4974
4974
|
Ie = !1;
|
|
4975
|
-
for (var
|
|
4975
|
+
for (var p, d = !0, m = a; ; ) {
|
|
4976
4976
|
var E = t.charCodeAt(a);
|
|
4977
|
-
if (
|
|
4978
|
-
Ie && (
|
|
4977
|
+
if (ln(E))
|
|
4978
|
+
Ie && (p += t.charAt(a)), ++a;
|
|
4979
4979
|
else if (E === 92) {
|
|
4980
|
-
Ie || (
|
|
4981
|
-
var C =
|
|
4982
|
-
w || I(a - 1, "Invalid Unicode escape"), (d ?
|
|
4980
|
+
Ie || (p = t.slice(m, a)), Ie = !0, t.charCodeAt(++a) !== 117 && I(a, "Expecting Unicode escape sequence \\uXXXX"), ++a;
|
|
4981
|
+
var C = ht(4), w = String.fromCharCode(C);
|
|
4982
|
+
w || I(a - 1, "Invalid Unicode escape"), (d ? dt(C) : ln(C)) || I(a - 4, "Invalid Unicode escape"), p += w;
|
|
4983
4983
|
} else
|
|
4984
4984
|
break;
|
|
4985
4985
|
d = !1;
|
|
4986
4986
|
}
|
|
4987
|
-
return Ie ?
|
|
4987
|
+
return Ie ? p : t.slice(m, a);
|
|
4988
4988
|
}
|
|
4989
|
-
function
|
|
4990
|
-
var
|
|
4991
|
-
!Ie && oa(
|
|
4989
|
+
function dn() {
|
|
4990
|
+
var p = pn(), d = Ce;
|
|
4991
|
+
!Ie && oa(p) && (d = Ji[p]), Y(d, p);
|
|
4992
4992
|
}
|
|
4993
4993
|
function D() {
|
|
4994
|
-
|
|
4994
|
+
ze = f, re = v, Pe = N, Ae();
|
|
4995
4995
|
}
|
|
4996
|
-
function
|
|
4997
|
-
if (q =
|
|
4996
|
+
function Ut(p) {
|
|
4997
|
+
if (q = p, a = f, r.locations)
|
|
4998
4998
|
for (; a < H; )
|
|
4999
4999
|
H = t.lastIndexOf(`
|
|
5000
5000
|
`, H - 2) + 1, --L;
|
|
5001
|
-
|
|
5001
|
+
He(), Ae();
|
|
5002
5002
|
}
|
|
5003
|
-
function
|
|
5004
|
-
this.type = null, this.start =
|
|
5003
|
+
function hn() {
|
|
5004
|
+
this.type = null, this.start = f, this.end = null;
|
|
5005
5005
|
}
|
|
5006
|
-
function
|
|
5007
|
-
this.start =
|
|
5006
|
+
function vn() {
|
|
5007
|
+
this.start = b, this.end = null, i && (this.source = i);
|
|
5008
5008
|
}
|
|
5009
5009
|
function X() {
|
|
5010
|
-
var
|
|
5011
|
-
return r.locations && (
|
|
5010
|
+
var p = new hn();
|
|
5011
|
+
return r.locations && (p.loc = new vn()), r.directSourceFile && (p.sourceFile = r.directSourceFile), r.ranges && (p.range = [f, 0]), p;
|
|
5012
5012
|
}
|
|
5013
|
-
function
|
|
5014
|
-
var d = new
|
|
5015
|
-
return d.start =
|
|
5013
|
+
function ye(p) {
|
|
5014
|
+
var d = new hn();
|
|
5015
|
+
return d.start = p.start, r.locations && (d.loc = new vn(), d.loc.start = p.loc.start), r.ranges && (d.range = [p.range[0], 0]), d;
|
|
5016
5016
|
}
|
|
5017
|
-
function P(
|
|
5018
|
-
return
|
|
5017
|
+
function P(p, d) {
|
|
5018
|
+
return p.type = d, p.end = re, r.locations && (p.loc.end = Pe), r.ranges && (p.range[1] = re), p;
|
|
5019
5019
|
}
|
|
5020
|
-
function
|
|
5021
|
-
return
|
|
5020
|
+
function jt(p) {
|
|
5021
|
+
return p.type === "ExpressionStatement" && p.expression.type === "Literal" && p.expression.value === "use strict";
|
|
5022
5022
|
}
|
|
5023
|
-
function B(
|
|
5024
|
-
return
|
|
5023
|
+
function B(p) {
|
|
5024
|
+
return R === p ? (D(), !0) : !1;
|
|
5025
5025
|
}
|
|
5026
|
-
function
|
|
5027
|
-
return !r.strictSemicolons && (
|
|
5026
|
+
function vt() {
|
|
5027
|
+
return !r.strictSemicolons && (R === wt || R === ke || ft.test(t.slice(re, f)));
|
|
5028
5028
|
}
|
|
5029
5029
|
function Te() {
|
|
5030
|
-
!B(le) && !
|
|
5030
|
+
!B(le) && !vt() && ce();
|
|
5031
5031
|
}
|
|
5032
|
-
function V(
|
|
5033
|
-
|
|
5032
|
+
function V(p) {
|
|
5033
|
+
R === p ? D() : ce();
|
|
5034
5034
|
}
|
|
5035
5035
|
function ce() {
|
|
5036
|
-
I(
|
|
5036
|
+
I(f, "Unexpected token");
|
|
5037
5037
|
}
|
|
5038
|
-
function
|
|
5039
|
-
|
|
5038
|
+
function yt(p) {
|
|
5039
|
+
p.type !== "Identifier" && p.type !== "MemberExpression" && I(p.start, "Assigning to rvalue"), q && p.type === "Identifier" && ct(p.name) && I(p.start, "Assigning to " + p.name + " in strict mode");
|
|
5040
5040
|
}
|
|
5041
|
-
function Oa(
|
|
5042
|
-
|
|
5043
|
-
var d =
|
|
5044
|
-
for (
|
|
5041
|
+
function Oa(p) {
|
|
5042
|
+
ze = re = a, r.locations && (Pe = new Oe()), Ee = q = !1, $ = [], Ae();
|
|
5043
|
+
var d = p || X(), m = !0;
|
|
5044
|
+
for (p || (d.body = []); R !== wt; ) {
|
|
5045
5045
|
var E = ne();
|
|
5046
|
-
d.body.push(E),
|
|
5046
|
+
d.body.push(E), m && jt(E) && Ut(!0), m = !1;
|
|
5047
5047
|
}
|
|
5048
5048
|
return P(d, "Program");
|
|
5049
5049
|
}
|
|
5050
|
-
var
|
|
5050
|
+
var Bt = { kind: "loop" }, Ta = { kind: "switch" };
|
|
5051
5051
|
function ne() {
|
|
5052
|
-
(
|
|
5053
|
-
var
|
|
5054
|
-
switch (
|
|
5055
|
-
case
|
|
5056
|
-
case
|
|
5052
|
+
(R === en || R === Re && S === "/=") && Ae(!0);
|
|
5053
|
+
var p = R, d = X();
|
|
5054
|
+
switch (p) {
|
|
5055
|
+
case Pt:
|
|
5056
|
+
case Lr:
|
|
5057
5057
|
D();
|
|
5058
|
-
var
|
|
5059
|
-
B(le) ||
|
|
5058
|
+
var m = p === Pt;
|
|
5059
|
+
B(le) || vt() ? d.label = null : R !== Ce ? ce() : (d.label = me(), Te());
|
|
5060
5060
|
for (var E = 0; E < $.length; ++E) {
|
|
5061
5061
|
var C = $[E];
|
|
5062
|
-
if ((d.label === null || C.name === d.label.name) && (C.kind !== null && (
|
|
5062
|
+
if ((d.label === null || C.name === d.label.name) && (C.kind !== null && (m || C.kind === "loop") || d.label && m))
|
|
5063
5063
|
break;
|
|
5064
5064
|
}
|
|
5065
|
-
return E === $.length && I(d.start, "Unsyntactic " +
|
|
5066
|
-
case Dr:
|
|
5067
|
-
return D(), Te(), P(d, "DebuggerStatement");
|
|
5065
|
+
return E === $.length && I(d.start, "Unsyntactic " + p.keyword), P(d, m ? "BreakStatement" : "ContinueStatement");
|
|
5068
5066
|
case Mr:
|
|
5069
|
-
return D(),
|
|
5070
|
-
case
|
|
5071
|
-
|
|
5072
|
-
|
|
5067
|
+
return D(), Te(), P(d, "DebuggerStatement");
|
|
5068
|
+
case Ur:
|
|
5069
|
+
return D(), $.push(Bt), d.body = ne(), $.pop(), V(Dt), d.test = Ke(), Te(), P(d, "DoWhileStatement");
|
|
5070
|
+
case $r:
|
|
5071
|
+
if (D(), $.push(Bt), V(se), R === le) return $t(d, null);
|
|
5072
|
+
if (R === It) {
|
|
5073
5073
|
var w = X();
|
|
5074
|
-
return D(),
|
|
5074
|
+
return D(), mn(w, !0), P(w, "VariableDeclaration"), w.declarations.length === 1 && B(st) ? yn(d, w) : $t(d, w);
|
|
5075
5075
|
}
|
|
5076
5076
|
var w = W(!1, !0);
|
|
5077
|
-
return B(
|
|
5078
|
-
case
|
|
5079
|
-
return D(),
|
|
5080
|
-
case Br:
|
|
5081
|
-
return D(), d.test = He(), d.consequent = ne(), d.alternate = B(Fr) ? ne() : null, P(d, "IfStatement");
|
|
5082
|
-
case $r:
|
|
5083
|
-
return !Ee && !r.allowReturnOutsideFunction && I(p, "'return' outside of function"), D(), B(le) || dt() ? d.argument = null : (d.argument = W(), Te()), P(d, "ReturnStatement");
|
|
5084
|
-
case Ct:
|
|
5085
|
-
D(), d.discriminant = He(), d.cases = [], V(Ye), $.push(Ta);
|
|
5086
|
-
for (var k, j; T !== ke; )
|
|
5087
|
-
if (T === wt || T === Lr) {
|
|
5088
|
-
var qe = T === wt;
|
|
5089
|
-
k && P(k, "SwitchCase"), d.cases.push(k = X()), k.consequent = [], D(), qe ? k.test = W() : (j && I(Ge, "Multiple default clauses"), j = !0, k.test = null), V(ze);
|
|
5090
|
-
} else
|
|
5091
|
-
k || ce(), k.consequent.push(ne());
|
|
5092
|
-
return k && P(k, "SwitchCase"), D(), $.pop(), P(d, "SwitchStatement");
|
|
5077
|
+
return B(st) ? (yt(w), yn(d, w)) : $t(d, w);
|
|
5078
|
+
case kt:
|
|
5079
|
+
return D(), Xt(d, !0);
|
|
5093
5080
|
case Vr:
|
|
5094
|
-
return D(),
|
|
5081
|
+
return D(), d.test = Ke(), d.consequent = ne(), d.alternate = B(jr) ? ne() : null, P(d, "IfStatement");
|
|
5095
5082
|
case Gr:
|
|
5096
|
-
|
|
5097
|
-
var De = X();
|
|
5098
|
-
D(), V(se), De.param = ye(), q && st(De.param.name) && I(De.param.start, "Binding " + De.param.name + " in strict mode"), V(ae), De.body = Je(), d.handler = P(De, "CatchClause");
|
|
5099
|
-
}
|
|
5100
|
-
return d.finalizer = B(Ur) ? Je() : null, !d.handler && !d.finalizer && I(d.start, "Missing catch or finally clause"), P(d, "TryStatement");
|
|
5101
|
-
case kt:
|
|
5102
|
-
return D(), vn(d), Te(), P(d, "VariableDeclaration");
|
|
5083
|
+
return !Ee && !r.allowReturnOutsideFunction && I(f, "'return' outside of function"), D(), B(le) || vt() ? d.argument = null : (d.argument = W(), Te()), P(d, "ReturnStatement");
|
|
5103
5084
|
case At:
|
|
5104
|
-
|
|
5085
|
+
D(), d.discriminant = Ke(), d.cases = [], V(Xe), $.push(Ta);
|
|
5086
|
+
for (var A, j; R !== ke; )
|
|
5087
|
+
if (R === Ct || R === Fr) {
|
|
5088
|
+
var Qe = R === Ct;
|
|
5089
|
+
A && P(A, "SwitchCase"), d.cases.push(A = X()), A.consequent = [], D(), Qe ? A.test = W() : (j && I(ze, "Multiple default clauses"), j = !0, A.test = null), V(We);
|
|
5090
|
+
} else
|
|
5091
|
+
A || ce(), A.consequent.push(ne());
|
|
5092
|
+
return A && P(A, "SwitchCase"), D(), $.pop(), P(d, "SwitchStatement");
|
|
5105
5093
|
case Yr:
|
|
5106
|
-
return
|
|
5107
|
-
case
|
|
5108
|
-
|
|
5094
|
+
return D(), ft.test(t.slice(re, f)) && I(re, "Illegal newline after throw"), d.argument = W(), Te(), P(d, "ThrowStatement");
|
|
5095
|
+
case zr:
|
|
5096
|
+
if (D(), d.block = qe(), d.handler = null, R === Dr) {
|
|
5097
|
+
var De = X();
|
|
5098
|
+
D(), V(se), De.param = me(), q && ct(De.param.name) && I(De.param.start, "Binding " + De.param.name + " in strict mode"), V(ae), De.body = qe(), d.handler = P(De, "CatchClause");
|
|
5099
|
+
}
|
|
5100
|
+
return d.finalizer = B(Br) ? qe() : null, !d.handler && !d.finalizer && I(d.start, "Missing catch or finally clause"), P(d, "TryStatement");
|
|
5101
|
+
case It:
|
|
5102
|
+
return D(), mn(d), Te(), P(d, "VariableDeclaration");
|
|
5103
|
+
case Dt:
|
|
5104
|
+
return D(), d.test = Ke(), $.push(Bt), d.body = ne(), $.pop(), P(d, "WhileStatement");
|
|
5105
|
+
case Xr:
|
|
5106
|
+
return q && I(f, "'with' in strict mode"), D(), d.object = Ke(), d.body = ne(), P(d, "WithStatement");
|
|
5107
|
+
case Xe:
|
|
5108
|
+
return qe();
|
|
5109
5109
|
case le:
|
|
5110
5110
|
return D(), P(d, "EmptyStatement");
|
|
5111
5111
|
default:
|
|
5112
|
-
var
|
|
5113
|
-
if (
|
|
5112
|
+
var Ht = S, mt = W();
|
|
5113
|
+
if (p === Ce && mt.type === "Identifier" && B(We)) {
|
|
5114
5114
|
for (var E = 0; E < $.length; ++E)
|
|
5115
|
-
$[E].name ===
|
|
5116
|
-
var Ca =
|
|
5117
|
-
return $.push({ name:
|
|
5115
|
+
$[E].name === Ht && I(mt.start, "Label '" + Ht + "' is already declared");
|
|
5116
|
+
var Ca = R.isLoop ? "loop" : R === At ? "switch" : null;
|
|
5117
|
+
return $.push({ name: Ht, kind: Ca }), d.body = ne(), $.pop(), d.label = mt, P(d, "LabeledStatement");
|
|
5118
5118
|
} else
|
|
5119
|
-
return d.expression =
|
|
5119
|
+
return d.expression = mt, Te(), P(d, "ExpressionStatement");
|
|
5120
5120
|
}
|
|
5121
5121
|
}
|
|
5122
|
-
function
|
|
5122
|
+
function Ke() {
|
|
5123
5123
|
V(se);
|
|
5124
|
-
var
|
|
5125
|
-
return V(ae),
|
|
5124
|
+
var p = W();
|
|
5125
|
+
return V(ae), p;
|
|
5126
5126
|
}
|
|
5127
|
-
function
|
|
5128
|
-
var d = X(),
|
|
5129
|
-
for (d.body = [], V(
|
|
5127
|
+
function qe(p) {
|
|
5128
|
+
var d = X(), m = !0, E = !1, C;
|
|
5129
|
+
for (d.body = [], V(Xe); !B(ke); ) {
|
|
5130
5130
|
var w = ne();
|
|
5131
|
-
d.body.push(w),
|
|
5131
|
+
d.body.push(w), m && p && jt(w) && (C = E, Ut(E = !0)), m = !1;
|
|
5132
5132
|
}
|
|
5133
|
-
return E && !C &&
|
|
5133
|
+
return E && !C && Ut(!1), P(d, "BlockStatement");
|
|
5134
5134
|
}
|
|
5135
|
-
function
|
|
5136
|
-
return
|
|
5135
|
+
function $t(p, d) {
|
|
5136
|
+
return p.init = d, V(le), p.test = R === le ? null : W(), V(le), p.update = R === ae ? null : W(), V(ae), p.body = ne(), $.pop(), P(p, "ForStatement");
|
|
5137
5137
|
}
|
|
5138
|
-
function
|
|
5139
|
-
return
|
|
5138
|
+
function yn(p, d) {
|
|
5139
|
+
return p.left = d, p.right = W(), V(ae), p.body = ne(), $.pop(), P(p, "ForInStatement");
|
|
5140
5140
|
}
|
|
5141
|
-
function
|
|
5142
|
-
for (
|
|
5143
|
-
var
|
|
5144
|
-
if (
|
|
5141
|
+
function mn(p, d) {
|
|
5142
|
+
for (p.declarations = [], p.kind = "var"; ; ) {
|
|
5143
|
+
var m = X();
|
|
5144
|
+
if (m.id = me(), q && ct(m.id.name) && I(m.id.start, "Binding " + m.id.name + " in strict mode"), m.init = B(tn) ? W(!0, d) : null, p.declarations.push(P(m, "VariableDeclarator")), !B(ve)) break;
|
|
5145
5145
|
}
|
|
5146
5146
|
}
|
|
5147
|
-
function W(
|
|
5148
|
-
var
|
|
5149
|
-
if (!
|
|
5150
|
-
var E =
|
|
5151
|
-
for (E.expressions = [
|
|
5147
|
+
function W(p, d) {
|
|
5148
|
+
var m = Vt(d);
|
|
5149
|
+
if (!p && R === ve) {
|
|
5150
|
+
var E = ye(m);
|
|
5151
|
+
for (E.expressions = [m]; B(ve); ) E.expressions.push(Vt(d));
|
|
5152
5152
|
return P(E, "SequenceExpression");
|
|
5153
5153
|
}
|
|
5154
|
-
return
|
|
5154
|
+
return m;
|
|
5155
5155
|
}
|
|
5156
|
-
function
|
|
5157
|
-
var d = Na(
|
|
5158
|
-
if (
|
|
5159
|
-
var
|
|
5160
|
-
return
|
|
5156
|
+
function Vt(p) {
|
|
5157
|
+
var d = Na(p);
|
|
5158
|
+
if (R.isAssign) {
|
|
5159
|
+
var m = ye(d);
|
|
5160
|
+
return m.operator = S, m.left = d, D(), m.right = Vt(p), yt(d), P(m, "AssignmentExpression");
|
|
5161
5161
|
}
|
|
5162
5162
|
return d;
|
|
5163
5163
|
}
|
|
5164
|
-
function Na(
|
|
5165
|
-
var d = xa(
|
|
5166
|
-
if (B(
|
|
5167
|
-
var
|
|
5168
|
-
return
|
|
5164
|
+
function Na(p) {
|
|
5165
|
+
var d = xa(p);
|
|
5166
|
+
if (B(Qr)) {
|
|
5167
|
+
var m = ye(d);
|
|
5168
|
+
return m.test = d, m.consequent = W(!0), V(We), m.alternate = W(!0, p), P(m, "ConditionalExpression");
|
|
5169
5169
|
}
|
|
5170
5170
|
return d;
|
|
5171
5171
|
}
|
|
5172
|
-
function xa(
|
|
5173
|
-
return
|
|
5172
|
+
function xa(p) {
|
|
5173
|
+
return Gt(Yt(), -1, p);
|
|
5174
5174
|
}
|
|
5175
|
-
function
|
|
5176
|
-
var E =
|
|
5177
|
-
if (E !== null && (!
|
|
5178
|
-
var C =
|
|
5179
|
-
C.left =
|
|
5180
|
-
var w =
|
|
5181
|
-
D(), C.right =
|
|
5182
|
-
var
|
|
5183
|
-
return
|
|
5175
|
+
function Gt(p, d, m) {
|
|
5176
|
+
var E = R.binop;
|
|
5177
|
+
if (E !== null && (!m || R !== st) && E > d) {
|
|
5178
|
+
var C = ye(p);
|
|
5179
|
+
C.left = p, C.operator = S;
|
|
5180
|
+
var w = R;
|
|
5181
|
+
D(), C.right = Gt(Yt(), E, m);
|
|
5182
|
+
var A = P(C, w === nn || w === an ? "LogicalExpression" : "BinaryExpression");
|
|
5183
|
+
return Gt(A, d, m);
|
|
5184
5184
|
}
|
|
5185
|
-
return
|
|
5185
|
+
return p;
|
|
5186
5186
|
}
|
|
5187
|
-
function
|
|
5188
|
-
if (
|
|
5189
|
-
var
|
|
5190
|
-
return
|
|
5187
|
+
function Yt() {
|
|
5188
|
+
if (R.prefix) {
|
|
5189
|
+
var p = X(), d = R.isUpdate;
|
|
5190
|
+
return p.operator = S, p.prefix = !0, k = !0, D(), p.argument = Yt(), d ? yt(p.argument) : q && p.operator === "delete" && p.argument.type === "Identifier" && I(p.start, "Deleting local variable in strict mode"), P(p, d ? "UpdateExpression" : "UnaryExpression");
|
|
5191
5191
|
}
|
|
5192
|
-
for (var
|
|
5193
|
-
var
|
|
5194
|
-
|
|
5192
|
+
for (var m = Sa(); R.postfix && !vt(); ) {
|
|
5193
|
+
var p = ye(m);
|
|
5194
|
+
p.operator = S, p.prefix = !1, p.argument = m, yt(m), D(), m = P(p, "UpdateExpression");
|
|
5195
5195
|
}
|
|
5196
|
-
return
|
|
5196
|
+
return m;
|
|
5197
5197
|
}
|
|
5198
5198
|
function Sa() {
|
|
5199
|
-
return
|
|
5199
|
+
return Ze(zt());
|
|
5200
5200
|
}
|
|
5201
|
-
function
|
|
5202
|
-
var
|
|
5203
|
-
return B(
|
|
5201
|
+
function Ze(p, d) {
|
|
5202
|
+
var m;
|
|
5203
|
+
return B(Zr) ? (m = ye(p), m.object = p, m.property = me(!0), m.computed = !1, Ze(P(m, "MemberExpression"), d)) : B(Lt) ? (m = ye(p), m.object = p, m.property = W(), m.computed = !0, V(Mt), Ze(P(m, "MemberExpression"), d)) : !d && B(se) ? (m = ye(p), m.callee = p, m.arguments = Wt(ae, !1), Ze(P(m, "CallExpression"), d)) : p;
|
|
5204
5204
|
}
|
|
5205
|
-
function
|
|
5206
|
-
var
|
|
5207
|
-
switch (
|
|
5208
|
-
case Xr:
|
|
5209
|
-
return f = X(), D(), P(f, "ThisExpression");
|
|
5210
|
-
case Ce:
|
|
5211
|
-
return ye();
|
|
5212
|
-
case at:
|
|
5213
|
-
case Nt:
|
|
5214
|
-
case kr:
|
|
5215
|
-
return f = X(), f.value = S, f.raw = t.slice(p, v), D(), P(f, "Literal");
|
|
5216
|
-
case Wr:
|
|
5205
|
+
function zt() {
|
|
5206
|
+
var p;
|
|
5207
|
+
switch (R) {
|
|
5217
5208
|
case Hr:
|
|
5209
|
+
return p = X(), D(), P(p, "ThisExpression");
|
|
5210
|
+
case Ce:
|
|
5211
|
+
return me();
|
|
5212
|
+
case ut:
|
|
5213
|
+
case St:
|
|
5214
|
+
case Ir:
|
|
5215
|
+
return p = X(), p.value = S, p.raw = t.slice(f, v), D(), P(p, "Literal");
|
|
5218
5216
|
case Jr:
|
|
5219
|
-
|
|
5217
|
+
case Kr:
|
|
5218
|
+
case qr:
|
|
5219
|
+
return p = X(), p.value = R.atomValue, p.raw = R.keyword, D(), P(p, "Literal");
|
|
5220
5220
|
case se:
|
|
5221
|
-
var d =
|
|
5221
|
+
var d = b, m = f;
|
|
5222
5222
|
D();
|
|
5223
5223
|
var E = W();
|
|
5224
|
-
return E.start =
|
|
5225
|
-
case
|
|
5226
|
-
return
|
|
5227
|
-
case
|
|
5224
|
+
return E.start = m, E.end = v, r.locations && (E.loc.start = d, E.loc.end = N), r.ranges && (E.range = [m, v]), V(ae), E;
|
|
5225
|
+
case Lt:
|
|
5226
|
+
return p = X(), D(), p.elements = Wt(Mt, !0, !0), P(p, "ArrayExpression");
|
|
5227
|
+
case Xe:
|
|
5228
5228
|
return Pa();
|
|
5229
|
-
case
|
|
5230
|
-
return
|
|
5231
|
-
case
|
|
5229
|
+
case kt:
|
|
5230
|
+
return p = X(), D(), Xt(p, !1);
|
|
5231
|
+
case Wr:
|
|
5232
5232
|
return wa();
|
|
5233
5233
|
}
|
|
5234
5234
|
ce();
|
|
5235
5235
|
}
|
|
5236
5236
|
function wa() {
|
|
5237
|
-
var
|
|
5238
|
-
return D(),
|
|
5237
|
+
var p = X();
|
|
5238
|
+
return D(), p.callee = Ze(zt(), !0), p.arguments = B(se) ? Wt(ae, !1) : Hi, P(p, "NewExpression");
|
|
5239
5239
|
}
|
|
5240
5240
|
function Pa() {
|
|
5241
|
-
var
|
|
5242
|
-
for (
|
|
5241
|
+
var p = X(), d = !0, m = !1;
|
|
5242
|
+
for (p.properties = [], D(); !B(ke); ) {
|
|
5243
5243
|
if (d)
|
|
5244
5244
|
d = !1;
|
|
5245
5245
|
else if (V(ve), r.allowTrailingCommas && B(ke))
|
|
5246
5246
|
break;
|
|
5247
|
-
var E = { key:
|
|
5248
|
-
if (B(
|
|
5249
|
-
for (var
|
|
5250
|
-
var j =
|
|
5247
|
+
var E = { key: _n() }, C = !1, w;
|
|
5248
|
+
if (B(We) ? (E.value = W(!0), w = E.kind = "init") : E.key.type === "Identifier" && (E.key.name === "get" || E.key.name === "set") ? (C = m = !0, w = E.kind = E.key.name, E.key = _n(), R !== se && ce(), E.value = Xt(X(), !1)) : ce(), E.key.type === "Identifier" && (q || m))
|
|
5249
|
+
for (var A = 0; A < p.properties.length; ++A) {
|
|
5250
|
+
var j = p.properties[A];
|
|
5251
5251
|
if (j.key.name === E.key.name) {
|
|
5252
|
-
var
|
|
5253
|
-
|
|
5252
|
+
var Qe = w === j.kind || C && j.kind === "init" || w === "init" && (j.kind === "get" || j.kind === "set");
|
|
5253
|
+
Qe && !q && w === "init" && j.kind === "init" && (Qe = !1), Qe && I(E.key.start, "Redefinition of property");
|
|
5254
5254
|
}
|
|
5255
5255
|
}
|
|
5256
|
-
|
|
5256
|
+
p.properties.push(E);
|
|
5257
5257
|
}
|
|
5258
|
-
return P(
|
|
5258
|
+
return P(p, "ObjectExpression");
|
|
5259
5259
|
}
|
|
5260
|
-
function
|
|
5261
|
-
return
|
|
5260
|
+
function _n() {
|
|
5261
|
+
return R === ut || R === St ? zt() : me(!0);
|
|
5262
5262
|
}
|
|
5263
|
-
function
|
|
5264
|
-
|
|
5265
|
-
var
|
|
5263
|
+
function Xt(p, d) {
|
|
5264
|
+
R === Ce ? p.id = me() : d ? ce() : p.id = null, p.params = [];
|
|
5265
|
+
var m = !0;
|
|
5266
5266
|
for (V(se); !B(ae); )
|
|
5267
|
-
|
|
5267
|
+
m ? m = !1 : V(ve), p.params.push(me());
|
|
5268
5268
|
var E = Ee, C = $;
|
|
5269
|
-
if (Ee = !0, $ = [],
|
|
5270
|
-
for (var w =
|
|
5271
|
-
var
|
|
5272
|
-
if ((
|
|
5269
|
+
if (Ee = !0, $ = [], p.body = qe(!0), Ee = E, $ = C, q || p.body.body.length && jt(p.body.body[0]))
|
|
5270
|
+
for (var w = p.id ? -1 : 0; w < p.params.length; ++w) {
|
|
5271
|
+
var A = w < 0 ? p.id : p.params[w];
|
|
5272
|
+
if ((on(A.name) || ct(A.name)) && I(A.start, "Defining '" + A.name + "' in strict mode"), w >= 0)
|
|
5273
5273
|
for (var j = 0; j < w; ++j)
|
|
5274
|
-
|
|
5274
|
+
A.name === p.params[j].name && I(A.start, "Argument name clash in strict mode");
|
|
5275
5275
|
}
|
|
5276
|
-
return P(
|
|
5276
|
+
return P(p, d ? "FunctionDeclaration" : "FunctionExpression");
|
|
5277
5277
|
}
|
|
5278
|
-
function
|
|
5279
|
-
for (var E = [], C = !0; !B(
|
|
5278
|
+
function Wt(p, d, m) {
|
|
5279
|
+
for (var E = [], C = !0; !B(p); ) {
|
|
5280
5280
|
if (C)
|
|
5281
5281
|
C = !1;
|
|
5282
|
-
else if (V(ve), d && r.allowTrailingCommas && B(
|
|
5282
|
+
else if (V(ve), d && r.allowTrailingCommas && B(p))
|
|
5283
5283
|
break;
|
|
5284
|
-
E.push(
|
|
5284
|
+
E.push(m && R === ve ? null : W(!0));
|
|
5285
5285
|
}
|
|
5286
5286
|
return E;
|
|
5287
5287
|
}
|
|
5288
|
-
function
|
|
5288
|
+
function me(p) {
|
|
5289
5289
|
var d = X();
|
|
5290
|
-
return
|
|
5290
|
+
return p && r.forbidReserved === "everywhere" && (p = !1), R === Ce ? (!p && (r.forbidReserved && aa(S) || q && on(S)) && t.slice(f, v).indexOf("\\") === -1 && I(f, "The keyword '" + S + "' is reserved"), d.name = S) : p && R.keyword ? d.name = R.keyword : ce(), k = !1, D(), P(d, "Identifier");
|
|
5291
5291
|
}
|
|
5292
5292
|
});
|
|
5293
5293
|
}
|
|
@@ -5298,17 +5298,17 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5298
5298
|
!*** external "vm" ***!
|
|
5299
5299
|
\*********************/
|
|
5300
5300
|
/***/
|
|
5301
|
-
(
|
|
5302
|
-
|
|
5301
|
+
(y) => {
|
|
5302
|
+
y.exports = ql;
|
|
5303
5303
|
}
|
|
5304
5304
|
)
|
|
5305
5305
|
/******/
|
|
5306
5306
|
}, h = {};
|
|
5307
|
-
function y
|
|
5308
|
-
var O = h[
|
|
5307
|
+
function _(y) {
|
|
5308
|
+
var O = h[y];
|
|
5309
5309
|
if (O !== void 0)
|
|
5310
5310
|
return O.exports;
|
|
5311
|
-
var
|
|
5311
|
+
var T = h[y] = {
|
|
5312
5312
|
/******/
|
|
5313
5313
|
// no module.id needed
|
|
5314
5314
|
/******/
|
|
@@ -5317,63 +5317,63 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5317
5317
|
exports: {}
|
|
5318
5318
|
/******/
|
|
5319
5319
|
};
|
|
5320
|
-
return l[
|
|
5320
|
+
return l[y].call(T.exports, T, T.exports, _), T.exports;
|
|
5321
5321
|
}
|
|
5322
|
-
|
|
5323
|
-
for (var
|
|
5324
|
-
|
|
5325
|
-
},
|
|
5326
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(
|
|
5322
|
+
_.d = (y, O) => {
|
|
5323
|
+
for (var T in O)
|
|
5324
|
+
_.o(O, T) && !_.o(y, T) && Object.defineProperty(y, T, { enumerable: !0, get: O[T] });
|
|
5325
|
+
}, _.o = (y, O) => Object.prototype.hasOwnProperty.call(y, O), _.r = (y) => {
|
|
5326
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(y, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(y, "__esModule", { value: !0 });
|
|
5327
5327
|
};
|
|
5328
|
-
var
|
|
5328
|
+
var g = {};
|
|
5329
5329
|
return (() => {
|
|
5330
5330
|
/*!*******************************!*\
|
|
5331
5331
|
!*** ./src/js-interpreter.js ***!
|
|
5332
5332
|
\*******************************/
|
|
5333
|
-
|
|
5333
|
+
_.r(g), _.d(g, {
|
|
5334
5334
|
/* harmony export */
|
|
5335
|
-
default: () =>
|
|
5335
|
+
default: () => T
|
|
5336
5336
|
/* harmony export */
|
|
5337
5337
|
});
|
|
5338
|
-
const
|
|
5338
|
+
const y = _(
|
|
5339
5339
|
/*! ../original-repo/acorn */
|
|
5340
5340
|
"./original-repo/acorn.js"
|
|
5341
5341
|
);
|
|
5342
|
-
globalThis.acorn =
|
|
5343
|
-
const { Interpreter: O } =
|
|
5342
|
+
globalThis.acorn = y;
|
|
5343
|
+
const { Interpreter: O } = _(
|
|
5344
5344
|
/*! ../original-repo/interpreter */
|
|
5345
5345
|
"./original-repo/interpreter.js"
|
|
5346
|
-
),
|
|
5347
|
-
})(),
|
|
5346
|
+
), T = O;
|
|
5347
|
+
})(), g = g.default, g;
|
|
5348
5348
|
})()
|
|
5349
5349
|
));
|
|
5350
|
-
})(
|
|
5351
|
-
var Zl =
|
|
5350
|
+
})(Xi);
|
|
5351
|
+
var Zl = Xi.exports;
|
|
5352
5352
|
const Ql = /* @__PURE__ */ Wl(Zl);
|
|
5353
5353
|
function ec(n, o) {
|
|
5354
5354
|
function l(O) {
|
|
5355
|
-
const
|
|
5356
|
-
console.log(
|
|
5355
|
+
const T = n.pseudoToNative(O);
|
|
5356
|
+
console.log(T);
|
|
5357
5357
|
}
|
|
5358
5358
|
function h(O) {
|
|
5359
|
-
const
|
|
5359
|
+
const T = n.pseudoToNative(O);
|
|
5360
5360
|
let r = "";
|
|
5361
|
-
typeof
|
|
5361
|
+
typeof T == "object" ? r = JSON.stringify(T) : r = String(T), Ue.emit("consoleAppend", r);
|
|
5362
5362
|
}
|
|
5363
|
-
function
|
|
5364
|
-
const r = n.pseudoToNative(O), t = n.pseudoToNative(
|
|
5363
|
+
function _(O, T) {
|
|
5364
|
+
const r = n.pseudoToNative(O), t = n.pseudoToNative(T);
|
|
5365
5365
|
r === "info" ? ja(t) : r === "success" ? Ba(t) : r === "warning" ? $a(t) : r === "error" && Va(t);
|
|
5366
5366
|
}
|
|
5367
|
-
function
|
|
5368
|
-
const r = n.pseudoToNative(O), t = n.pseudoToNative(
|
|
5367
|
+
function g(O, T) {
|
|
5368
|
+
const r = n.pseudoToNative(O), t = n.pseudoToNative(T);
|
|
5369
5369
|
setTimeout(() => {
|
|
5370
5370
|
n.appendCode(`__timeoutCallbackV1__(${r})`), n.run();
|
|
5371
5371
|
}, t);
|
|
5372
5372
|
}
|
|
5373
|
-
function
|
|
5373
|
+
function y(O, T) {
|
|
5374
5374
|
const r = n.pseudoToNative(O);
|
|
5375
5375
|
setTimeout(() => {
|
|
5376
|
-
|
|
5376
|
+
T(), n.run();
|
|
5377
5377
|
}, r);
|
|
5378
5378
|
}
|
|
5379
5379
|
n.setProperty(
|
|
@@ -5387,25 +5387,25 @@ function ec(n, o) {
|
|
|
5387
5387
|
), n.setProperty(
|
|
5388
5388
|
o,
|
|
5389
5389
|
"__messageV1__",
|
|
5390
|
-
n.createNativeFunction(
|
|
5390
|
+
n.createNativeFunction(_)
|
|
5391
5391
|
), n.setProperty(
|
|
5392
5392
|
o,
|
|
5393
5393
|
"__timeoutV1__",
|
|
5394
|
-
n.createNativeFunction(
|
|
5394
|
+
n.createNativeFunction(g)
|
|
5395
5395
|
), n.setProperty(
|
|
5396
5396
|
o,
|
|
5397
5397
|
"__delayV1__",
|
|
5398
|
-
n.createAsyncFunction(
|
|
5398
|
+
n.createAsyncFunction(y)
|
|
5399
5399
|
);
|
|
5400
5400
|
}
|
|
5401
5401
|
class tc {
|
|
5402
5402
|
constructor(o) {
|
|
5403
|
-
|
|
5404
|
-
|
|
5403
|
+
Jt(this, "context");
|
|
5404
|
+
Jt(this, "nodes");
|
|
5405
5405
|
this.context = o, this.nodes = {};
|
|
5406
5406
|
const l = (h) => {
|
|
5407
|
-
var
|
|
5408
|
-
this.nodes[h.basic.id] = h, (
|
|
5407
|
+
var _;
|
|
5408
|
+
this.nodes[h.basic.id] = h, (_ = h.children) == null || _.forEach((g) => l(g));
|
|
5409
5409
|
};
|
|
5410
5410
|
this.context.data.view.nodes.forEach((h) => l(h));
|
|
5411
5411
|
}
|
|
@@ -5413,27 +5413,27 @@ class tc {
|
|
|
5413
5413
|
return this.nodes[o];
|
|
5414
5414
|
}
|
|
5415
5415
|
addNode(o, l, h) {
|
|
5416
|
-
const
|
|
5417
|
-
let
|
|
5416
|
+
const _ = `parent=${o} ref=${l} keyOrRefid=${h}`;
|
|
5417
|
+
let g;
|
|
5418
5418
|
if (o) {
|
|
5419
5419
|
const O = this.getNode(o);
|
|
5420
5420
|
if (!O)
|
|
5421
|
-
return console.error(`NodeMgr/addNode parent not found, ${
|
|
5421
|
+
return console.error(`NodeMgr/addNode parent not found, ${_}`), "";
|
|
5422
5422
|
if (!O.children)
|
|
5423
|
-
return console.error(`NodeMgr/addNode parent no children, ${
|
|
5424
|
-
|
|
5423
|
+
return console.error(`NodeMgr/addNode parent no children, ${_}`), "";
|
|
5424
|
+
g = O.children;
|
|
5425
5425
|
} else
|
|
5426
|
-
|
|
5427
|
-
if (!
|
|
5426
|
+
g = this.context.data.view.nodes;
|
|
5427
|
+
if (!g)
|
|
5428
5428
|
return "";
|
|
5429
|
-
const
|
|
5429
|
+
const y = Ol(
|
|
5430
5430
|
this.context.type,
|
|
5431
5431
|
this.context.data.type,
|
|
5432
5432
|
this.context.data.version,
|
|
5433
5433
|
l,
|
|
5434
5434
|
h
|
|
5435
5435
|
);
|
|
5436
|
-
return
|
|
5436
|
+
return y ? (g.push(y), this.nodes[y.basic.id] = y, y.basic.id) : (console.error(`NodeMgr/addNode spawn node failed, ${_}`), "");
|
|
5437
5437
|
}
|
|
5438
5438
|
deleteNode(o) {
|
|
5439
5439
|
this.getNode(o);
|
|
@@ -5441,57 +5441,57 @@ class tc {
|
|
|
5441
5441
|
}
|
|
5442
5442
|
function rc(n, o, l) {
|
|
5443
5443
|
const h = new tc(n);
|
|
5444
|
-
function
|
|
5445
|
-
const u = o.pseudoToNative(e), c = o.pseudoToNative(i), a = o.pseudoToNative(s),
|
|
5446
|
-
return o.nativeToPseudo(
|
|
5444
|
+
function _(e, i, s) {
|
|
5445
|
+
const u = o.pseudoToNative(e), c = o.pseudoToNative(i), a = o.pseudoToNative(s), f = h.addNode(u, c, a);
|
|
5446
|
+
return o.nativeToPseudo(f);
|
|
5447
5447
|
}
|
|
5448
|
-
function
|
|
5448
|
+
function g(e) {
|
|
5449
5449
|
const i = o.pseudoToNative(e);
|
|
5450
5450
|
h.deleteNode(i);
|
|
5451
5451
|
}
|
|
5452
|
-
function
|
|
5452
|
+
function y(e, i) {
|
|
5453
5453
|
const s = o.pseudoToNative(e), u = o.pseudoToNative(i), c = `id=${s} keys=${u}`;
|
|
5454
5454
|
let a;
|
|
5455
5455
|
if (s === "globality" ? a = n.data.view : a = h.getNode(s), !a) {
|
|
5456
5456
|
console.error(`getNodePropV1 node not found, ${c}`);
|
|
5457
5457
|
return;
|
|
5458
5458
|
}
|
|
5459
|
-
const
|
|
5460
|
-
for (let
|
|
5461
|
-
const
|
|
5462
|
-
if (
|
|
5463
|
-
return o.nativeToPseudo(a[
|
|
5459
|
+
const f = u.split("."), v = f.length;
|
|
5460
|
+
for (let b = 0; b < v; b++) {
|
|
5461
|
+
const N = f[b];
|
|
5462
|
+
if (b === v - 1)
|
|
5463
|
+
return o.nativeToPseudo(a[N]);
|
|
5464
5464
|
if (!a) {
|
|
5465
5465
|
console.error(`getNodePropV1 unpkg failed, ${c}`);
|
|
5466
5466
|
return;
|
|
5467
5467
|
}
|
|
5468
|
-
a = a[
|
|
5468
|
+
a = a[N];
|
|
5469
5469
|
}
|
|
5470
5470
|
}
|
|
5471
5471
|
function O(e, i, s) {
|
|
5472
|
-
const u = o.pseudoToNative(e), c = o.pseudoToNative(i), a = o.pseudoToNative(s),
|
|
5472
|
+
const u = o.pseudoToNative(e), c = o.pseudoToNative(i), a = o.pseudoToNative(s), f = `id=${u} keys=${c} value=${a}`;
|
|
5473
5473
|
let v;
|
|
5474
5474
|
if (u === "globality" ? v = n.data.view : v = h.getNode(u), !v) {
|
|
5475
|
-
console.error(`setNodePropV1 node not found, ${
|
|
5475
|
+
console.error(`setNodePropV1 node not found, ${f}`);
|
|
5476
5476
|
return;
|
|
5477
5477
|
}
|
|
5478
|
-
const
|
|
5479
|
-
for (let
|
|
5480
|
-
const S =
|
|
5481
|
-
if (
|
|
5478
|
+
const b = c.split("."), N = b.length;
|
|
5479
|
+
for (let R = 0; R < N; R++) {
|
|
5480
|
+
const S = b[R];
|
|
5481
|
+
if (R === N - 1)
|
|
5482
5482
|
v[S] = a;
|
|
5483
5483
|
else {
|
|
5484
5484
|
if (!v) {
|
|
5485
|
-
console.error(`setNodePropV1 unpkg failed, ${
|
|
5485
|
+
console.error(`setNodePropV1 unpkg failed, ${f}`);
|
|
5486
5486
|
return;
|
|
5487
5487
|
}
|
|
5488
5488
|
v = v[S];
|
|
5489
5489
|
}
|
|
5490
5490
|
}
|
|
5491
5491
|
}
|
|
5492
|
-
function
|
|
5493
|
-
const c = o.pseudoToNative(e), a = o.pseudoToNative(i),
|
|
5494
|
-
|
|
5492
|
+
function T(e, i, s, u) {
|
|
5493
|
+
const c = o.pseudoToNative(e), a = o.pseudoToNative(i), f = o.pseudoToNative(s), v = { outputs: [] };
|
|
5494
|
+
Ue.emit(`callMethod@${c}`, { name: a, inputs: f, result: v }), u(o.nativeToPseudo(v.outputs)), o.run();
|
|
5495
5495
|
}
|
|
5496
5496
|
function r(e, i, s) {
|
|
5497
5497
|
const u = o.pseudoToNative(e), c = o.pseudoToNative(i);
|
|
@@ -5500,23 +5500,23 @@ function rc(n, o, l) {
|
|
|
5500
5500
|
});
|
|
5501
5501
|
}
|
|
5502
5502
|
function t(e, i, s, u) {
|
|
5503
|
-
const c = o.pseudoToNative(e), a = o.pseudoToNative(i),
|
|
5504
|
-
Ya({ title: c, label: a, value:
|
|
5503
|
+
const c = o.pseudoToNative(e), a = o.pseudoToNative(i), f = o.pseudoToNative(s);
|
|
5504
|
+
Ya({ title: c, label: a, value: f }).then((v) => {
|
|
5505
5505
|
u(o.nativeToPseudo(v)), o.run();
|
|
5506
5506
|
});
|
|
5507
5507
|
}
|
|
5508
5508
|
o.setProperty(
|
|
5509
5509
|
l,
|
|
5510
5510
|
"__addNodeV1__",
|
|
5511
|
-
o.createNativeFunction(
|
|
5511
|
+
o.createNativeFunction(_)
|
|
5512
5512
|
), o.setProperty(
|
|
5513
5513
|
l,
|
|
5514
5514
|
"__deleteNodeV1__",
|
|
5515
|
-
o.createNativeFunction(
|
|
5515
|
+
o.createNativeFunction(g)
|
|
5516
5516
|
), o.setProperty(
|
|
5517
5517
|
l,
|
|
5518
5518
|
"__getNodePropV1__",
|
|
5519
|
-
o.createNativeFunction(
|
|
5519
|
+
o.createNativeFunction(y)
|
|
5520
5520
|
), o.setProperty(
|
|
5521
5521
|
l,
|
|
5522
5522
|
"__setNodePropV1__",
|
|
@@ -5524,7 +5524,7 @@ function rc(n, o, l) {
|
|
|
5524
5524
|
), o.setProperty(
|
|
5525
5525
|
l,
|
|
5526
5526
|
"__callNodeMethodV1__",
|
|
5527
|
-
o.createAsyncFunction(
|
|
5527
|
+
o.createAsyncFunction(T)
|
|
5528
5528
|
), o.setProperty(
|
|
5529
5529
|
l,
|
|
5530
5530
|
"__openConfirmDlgV1__",
|
|
@@ -5661,11 +5661,11 @@ function __timeoutCallbackV1__(timerId) {
|
|
|
5661
5661
|
function __destroy__() {
|
|
5662
5662
|
}
|
|
5663
5663
|
`, sc = ic + ac + oc + uc;
|
|
5664
|
-
function
|
|
5664
|
+
function Wi(n, o) {
|
|
5665
5665
|
const l = new Ql(
|
|
5666
5666
|
sc,
|
|
5667
|
-
(h,
|
|
5668
|
-
nc(n, h,
|
|
5667
|
+
(h, _) => {
|
|
5668
|
+
nc(n, h, _);
|
|
5669
5669
|
}
|
|
5670
5670
|
);
|
|
5671
5671
|
return l.appendCode(o), l.appendCode(`
|
|
@@ -5673,7 +5673,7 @@ __env__ = '${n.env}';
|
|
|
5673
5673
|
__triggerEvent__('globality', 'startup');
|
|
5674
5674
|
`), l.run(), l;
|
|
5675
5675
|
}
|
|
5676
|
-
function
|
|
5676
|
+
function Me(n) {
|
|
5677
5677
|
n.appendCode("__destroy__();"), n.run();
|
|
5678
5678
|
}
|
|
5679
5679
|
const fe = /* @__PURE__ */ oe({
|
|
@@ -5683,75 +5683,78 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5683
5683
|
state: {}
|
|
5684
5684
|
},
|
|
5685
5685
|
setup(n) {
|
|
5686
|
-
const { t: o } =
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
r
|
|
5686
|
+
const { t: o } = ui(), l = n, h = Bi(), _ = he(), g = Cr(), y = kr(), O = Vi(), T = Le(-1), r = Le(), t = Le();
|
|
5687
|
+
Gi(t), oi(() => {
|
|
5688
|
+
const f = O[l.refContext.refid];
|
|
5689
|
+
if (!f) {
|
|
5690
|
+
T.value = -1, r.value = void 0, t.value && (Me(t.value), t.value = void 0), Ue.emit("compNotAvail", l.refContext.refid);
|
|
5691
|
+
return;
|
|
5692
|
+
}
|
|
5693
|
+
if (T.value === f.dataSeq)
|
|
5694
|
+
return;
|
|
5695
|
+
T.value = f.dataSeq, r.value = _e(f.data), t.value && Me(t.value);
|
|
5696
|
+
const v = r.value, b = v.code.script;
|
|
5697
|
+
b && (t.value = Wi({ env: h, type: g, data: v }, b));
|
|
5698
|
+
}), br(() => {
|
|
5699
|
+
t.value && Me(t.value);
|
|
5697
5700
|
});
|
|
5698
|
-
const
|
|
5701
|
+
const e = () => {
|
|
5699
5702
|
console.log("triggerUpdate");
|
|
5700
5703
|
};
|
|
5701
5704
|
Da(
|
|
5702
5705
|
() => l.state,
|
|
5703
5706
|
() => {
|
|
5704
|
-
|
|
5707
|
+
e();
|
|
5705
5708
|
},
|
|
5706
5709
|
{ deep: !0, immediate: !0 }
|
|
5707
5710
|
);
|
|
5708
|
-
function
|
|
5709
|
-
const
|
|
5710
|
-
return
|
|
5711
|
+
function i(f) {
|
|
5712
|
+
const v = Ar[y.version].refKey, b = xe[v];
|
|
5713
|
+
return b ? J(b.comp, {
|
|
5711
5714
|
refContext: {
|
|
5712
5715
|
parent: l.refContext,
|
|
5713
|
-
refid:
|
|
5716
|
+
refid: f.ref.id
|
|
5714
5717
|
},
|
|
5715
|
-
node:
|
|
5716
|
-
}) : (console.assert(!1, `ref element not found key=${
|
|
5718
|
+
node: f
|
|
5719
|
+
}) : (console.assert(!1, `ref element not found key=${v}`), J("div", `ref element not found key=${v}`));
|
|
5717
5720
|
}
|
|
5718
|
-
function
|
|
5719
|
-
var
|
|
5720
|
-
const
|
|
5721
|
-
if (!
|
|
5722
|
-
return console.assert(!1, `element not found key=${
|
|
5723
|
-
const
|
|
5724
|
-
return
|
|
5725
|
-
|
|
5726
|
-
})), J(
|
|
5721
|
+
function s(f) {
|
|
5722
|
+
var N;
|
|
5723
|
+
const v = xe[f.basic.key];
|
|
5724
|
+
if (!v)
|
|
5725
|
+
return console.assert(!1, `element not found key=${f.basic.key}`), J("div", `element not found key=${f.basic.key}`);
|
|
5726
|
+
const b = [];
|
|
5727
|
+
return v.slots.some((R) => R.key === "default") && ((N = f.children) == null || N.forEach((R) => {
|
|
5728
|
+
b.push(u(R));
|
|
5729
|
+
})), J(v.comp, { node: f }, { default: () => b });
|
|
5727
5730
|
}
|
|
5728
|
-
function
|
|
5729
|
-
return
|
|
5731
|
+
function u(f) {
|
|
5732
|
+
return f.ref ? i(f) : s(f);
|
|
5730
5733
|
}
|
|
5731
|
-
function
|
|
5732
|
-
let
|
|
5733
|
-
for (;
|
|
5734
|
-
if (
|
|
5734
|
+
function c() {
|
|
5735
|
+
let f = l.refContext.parent;
|
|
5736
|
+
for (; f; ) {
|
|
5737
|
+
if (f.refid === l.refContext.refid)
|
|
5735
5738
|
return !0;
|
|
5736
|
-
|
|
5739
|
+
f = f.parent;
|
|
5737
5740
|
}
|
|
5738
5741
|
return !1;
|
|
5739
5742
|
}
|
|
5740
|
-
const
|
|
5741
|
-
if (
|
|
5743
|
+
const a = () => {
|
|
5744
|
+
if (c())
|
|
5742
5745
|
return J("div", o("x-runtime-lib.circularRef"));
|
|
5743
|
-
if (!
|
|
5746
|
+
if (!r.value)
|
|
5744
5747
|
return J("div", o("x-runtime-lib.compNotAvail"));
|
|
5745
|
-
const
|
|
5746
|
-
if (
|
|
5747
|
-
const
|
|
5748
|
-
return
|
|
5749
|
-
|
|
5750
|
-
}),
|
|
5748
|
+
const f = r.value.type;
|
|
5749
|
+
if (f === "common") {
|
|
5750
|
+
const v = [];
|
|
5751
|
+
return r.value.view.nodes.forEach((b) => {
|
|
5752
|
+
v.push(u(b));
|
|
5753
|
+
}), v;
|
|
5751
5754
|
} else
|
|
5752
|
-
return console.assert(!1, `invalid subtype=${
|
|
5755
|
+
return console.assert(!1, `invalid subtype=${f}`), J("div", `invalid subtype=${f}`);
|
|
5753
5756
|
};
|
|
5754
|
-
return (
|
|
5757
|
+
return (f, v) => (G(), Q(a));
|
|
5755
5758
|
}
|
|
5756
5759
|
}), lc = /* @__PURE__ */ oe({
|
|
5757
5760
|
__name: "index",
|
|
@@ -5760,60 +5763,60 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5760
5763
|
outer: { type: Boolean }
|
|
5761
5764
|
},
|
|
5762
5765
|
setup(n) {
|
|
5763
|
-
const o = n, l =
|
|
5766
|
+
const o = n, l = Ye(), h = x(() => {
|
|
5764
5767
|
var u;
|
|
5765
5768
|
return (u = o.node.size) == null ? void 0 : u.width;
|
|
5766
|
-
}),
|
|
5769
|
+
}), _ = x(() => {
|
|
5767
5770
|
var u;
|
|
5768
5771
|
return (u = o.node.size) == null ? void 0 : u.height;
|
|
5769
|
-
}),
|
|
5772
|
+
}), g = x(() => {
|
|
5770
5773
|
var u;
|
|
5771
5774
|
return (u = o.node.settings) == null ? void 0 : u.headers;
|
|
5772
|
-
}),
|
|
5775
|
+
}), y = x(() => {
|
|
5773
5776
|
var u;
|
|
5774
5777
|
return (u = o.node.settings) == null ? void 0 : u.items;
|
|
5775
|
-
}), O =
|
|
5778
|
+
}), O = x(() => {
|
|
5776
5779
|
var u;
|
|
5777
5780
|
return (u = o.node.settings) == null ? void 0 : u.density;
|
|
5778
|
-
}),
|
|
5781
|
+
}), T = x(() => {
|
|
5779
5782
|
var u;
|
|
5780
5783
|
return (u = o.node.settings) == null ? void 0 : u.fixedHeader;
|
|
5781
|
-
}), r =
|
|
5784
|
+
}), r = x(() => {
|
|
5782
5785
|
var u;
|
|
5783
5786
|
return (u = o.node.settings) == null ? void 0 : u.fixedFooter;
|
|
5784
|
-
}), t =
|
|
5787
|
+
}), t = x(() => {
|
|
5785
5788
|
var u;
|
|
5786
5789
|
return (u = o.node.settings) == null ? void 0 : u.loading;
|
|
5787
|
-
}), e =
|
|
5790
|
+
}), e = x(() => {
|
|
5788
5791
|
var u;
|
|
5789
5792
|
return (u = o.node.settings) == null ? void 0 : u.multiSort;
|
|
5790
|
-
}), i =
|
|
5793
|
+
}), i = x(() => l.value ? "dark" : "light"), s = x(() => {
|
|
5791
5794
|
var a;
|
|
5792
5795
|
const u = [];
|
|
5793
|
-
return (((a = o.node.slots) == null ? void 0 : a.items) ?? []).forEach((
|
|
5794
|
-
|
|
5796
|
+
return (((a = o.node.slots) == null ? void 0 : a.items) ?? []).forEach((f) => {
|
|
5797
|
+
f.column && f.comp && u.push(f);
|
|
5795
5798
|
}), u;
|
|
5796
5799
|
});
|
|
5797
5800
|
return (u, c) => {
|
|
5798
5801
|
const a = ie("v-data-table");
|
|
5799
5802
|
return G(), Q(a, {
|
|
5800
5803
|
width: h.value,
|
|
5801
|
-
height:
|
|
5802
|
-
headers:
|
|
5803
|
-
items:
|
|
5804
|
+
height: _.value,
|
|
5805
|
+
headers: g.value,
|
|
5806
|
+
items: y.value,
|
|
5804
5807
|
density: O.value,
|
|
5805
|
-
"fixed-header":
|
|
5808
|
+
"fixed-header": T.value,
|
|
5806
5809
|
"fixed-footer": r.value,
|
|
5807
5810
|
loading: t.value,
|
|
5808
5811
|
"multi-sort": e.value,
|
|
5809
5812
|
theme: i.value
|
|
5810
|
-
},
|
|
5811
|
-
La(s.value, (
|
|
5812
|
-
name: `item.${
|
|
5813
|
-
fn: ee(({ value:
|
|
5813
|
+
}, Qt({ _: 2 }, [
|
|
5814
|
+
La(s.value, (f, v) => ({
|
|
5815
|
+
name: `item.${f.column}`,
|
|
5816
|
+
fn: ee(({ value: b }) => [
|
|
5814
5817
|
Z(fe, {
|
|
5815
|
-
"ref-context": { refid:
|
|
5816
|
-
state: { value:
|
|
5818
|
+
"ref-context": { refid: f.comp },
|
|
5819
|
+
state: { value: b }
|
|
5817
5820
|
}, null, 8, ["ref-context", "state"])
|
|
5818
5821
|
])
|
|
5819
5822
|
}))
|
|
@@ -5839,7 +5842,7 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5839
5842
|
validator: (n) => n === "end",
|
|
5840
5843
|
default: "end"
|
|
5841
5844
|
}
|
|
5842
|
-
],
|
|
5845
|
+
], Kn = {
|
|
5843
5846
|
key: "size",
|
|
5844
5847
|
name: "x-runtime-lib.size",
|
|
5845
5848
|
children: [
|
|
@@ -5858,7 +5861,7 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5858
5861
|
default: ""
|
|
5859
5862
|
}
|
|
5860
5863
|
]
|
|
5861
|
-
},
|
|
5864
|
+
}, qn = {
|
|
5862
5865
|
key: "settings",
|
|
5863
5866
|
name: "x-runtime-lib.settings",
|
|
5864
5867
|
children: [
|
|
@@ -5932,7 +5935,7 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5932
5935
|
key: "density",
|
|
5933
5936
|
name: "x-runtime-lib.density",
|
|
5934
5937
|
ui: "select",
|
|
5935
|
-
items:
|
|
5938
|
+
items: Yi,
|
|
5936
5939
|
default: "default"
|
|
5937
5940
|
},
|
|
5938
5941
|
{
|
|
@@ -5960,7 +5963,7 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5960
5963
|
default: !1
|
|
5961
5964
|
}
|
|
5962
5965
|
]
|
|
5963
|
-
},
|
|
5966
|
+
}, Zn = {
|
|
5964
5967
|
key: "slots",
|
|
5965
5968
|
name: "x-runtime-lib.slots",
|
|
5966
5969
|
children: [
|
|
@@ -5986,23 +5989,23 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5986
5989
|
}
|
|
5987
5990
|
]
|
|
5988
5991
|
}, fc = {
|
|
5989
|
-
key:
|
|
5992
|
+
key: lr,
|
|
5990
5993
|
name: "x-runtime-lib.dataTable",
|
|
5991
5994
|
comp: lc,
|
|
5992
5995
|
slots: [],
|
|
5993
5996
|
events: [],
|
|
5994
5997
|
methods: [],
|
|
5995
5998
|
props: {
|
|
5996
|
-
pageCommon: [F,
|
|
5997
|
-
compCommon: [F,
|
|
5999
|
+
pageCommon: [F, Kn, qn, Zn],
|
|
6000
|
+
compCommon: [F, Kn, qn, Zn]
|
|
5998
6001
|
}
|
|
5999
6002
|
};
|
|
6000
6003
|
function pc(n, o) {
|
|
6001
|
-
const l =
|
|
6004
|
+
const l = x(() => n.node.basic.id), h = x(() => `callMethod@${l.value}`);
|
|
6002
6005
|
Ma(() => {
|
|
6003
|
-
|
|
6004
|
-
}),
|
|
6005
|
-
|
|
6006
|
+
Ue.on(h.value, o);
|
|
6007
|
+
}), br(() => {
|
|
6008
|
+
Ue.off(h.value, o);
|
|
6006
6009
|
});
|
|
6007
6010
|
}
|
|
6008
6011
|
const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
@@ -6012,34 +6015,34 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6012
6015
|
outer: { type: Boolean }
|
|
6013
6016
|
},
|
|
6014
6017
|
setup(n) {
|
|
6015
|
-
const o = n, l = he(), h =
|
|
6016
|
-
var
|
|
6017
|
-
return (
|
|
6018
|
-
}), { open:
|
|
6019
|
-
return pc(o, (
|
|
6020
|
-
const { name: O } =
|
|
6021
|
-
O === "open" ?
|
|
6022
|
-
}), (
|
|
6023
|
-
const
|
|
6024
|
-
return G(), Q(
|
|
6025
|
-
modelValue:
|
|
6026
|
-
"onUpdate:modelValue": O[0] || (O[0] = (r) => Fa(
|
|
6018
|
+
const o = n, l = he(), h = x(() => {
|
|
6019
|
+
var y;
|
|
6020
|
+
return (y = o.node.basic) == null ? void 0 : y.id;
|
|
6021
|
+
}), { open: _ } = za(`runtimeDlg/${h.value}`);
|
|
6022
|
+
return pc(o, (y) => {
|
|
6023
|
+
const { name: O } = y;
|
|
6024
|
+
O === "open" ? _.value = !0 : O === "close" && (_.value = !1);
|
|
6025
|
+
}), (y, O) => {
|
|
6026
|
+
const T = ie("v-dialog");
|
|
6027
|
+
return G(), Q(T, {
|
|
6028
|
+
modelValue: Fe(_),
|
|
6029
|
+
"onUpdate:modelValue": O[0] || (O[0] = (r) => Fa(_) ? _.value = r : null)
|
|
6027
6030
|
}, {
|
|
6028
6031
|
activator: ee(() => [
|
|
6029
|
-
|
|
6032
|
+
Fe(l) === "editor" ? (G(), $e("div", {
|
|
6030
6033
|
key: 0,
|
|
6031
6034
|
id: `__node__@${h.value}`
|
|
6032
6035
|
}, null, 8, dc)) : Ua("", !0)
|
|
6033
6036
|
]),
|
|
6034
6037
|
default: ee(() => [
|
|
6035
|
-
|
|
6038
|
+
_r(y.$slots, "default")
|
|
6036
6039
|
]),
|
|
6037
6040
|
_: 3
|
|
6038
6041
|
}, 8, ["modelValue"]);
|
|
6039
6042
|
};
|
|
6040
6043
|
}
|
|
6041
6044
|
}), vc = {
|
|
6042
|
-
key:
|
|
6045
|
+
key: cr,
|
|
6043
6046
|
name: "x-runtime-lib.dialog",
|
|
6044
6047
|
comp: hc,
|
|
6045
6048
|
slots: [
|
|
@@ -6068,7 +6071,7 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6068
6071
|
compCommon: [F]
|
|
6069
6072
|
},
|
|
6070
6073
|
teleport: !0
|
|
6071
|
-
},
|
|
6074
|
+
}, Qn = {
|
|
6072
6075
|
key: "globalSettings",
|
|
6073
6076
|
name: "x-runtime-lib.globalSettings",
|
|
6074
6077
|
children: [
|
|
@@ -6079,8 +6082,8 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6079
6082
|
default: "#00000000"
|
|
6080
6083
|
}
|
|
6081
6084
|
]
|
|
6082
|
-
},
|
|
6083
|
-
key:
|
|
6085
|
+
}, yc = {
|
|
6086
|
+
key: fr,
|
|
6084
6087
|
name: "x-runtime-lib.globality",
|
|
6085
6088
|
comp: null,
|
|
6086
6089
|
slots: [
|
|
@@ -6122,61 +6125,61 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6122
6125
|
],
|
|
6123
6126
|
methods: [],
|
|
6124
6127
|
props: {
|
|
6125
|
-
pageCommon: [
|
|
6126
|
-
compCommon: [
|
|
6128
|
+
pageCommon: [Qn],
|
|
6129
|
+
compCommon: [Qn]
|
|
6127
6130
|
},
|
|
6128
6131
|
internal: !0
|
|
6129
|
-
},
|
|
6132
|
+
}, mc = { key: 0 }, _c = /* @__PURE__ */ oe({
|
|
6130
6133
|
__name: "index",
|
|
6131
6134
|
props: {
|
|
6132
6135
|
node: {},
|
|
6133
6136
|
outer: { type: Boolean }
|
|
6134
6137
|
},
|
|
6135
6138
|
setup(n) {
|
|
6136
|
-
const o = n, l = he(), h =
|
|
6139
|
+
const o = n, l = he(), h = Ye(), _ = x(() => {
|
|
6137
6140
|
var e;
|
|
6138
6141
|
return (e = o.node.settings) == null ? void 0 : e.value;
|
|
6139
|
-
}),
|
|
6142
|
+
}), g = x(() => {
|
|
6140
6143
|
var e;
|
|
6141
6144
|
return (e = o.node.settings) == null ? void 0 : e.label;
|
|
6142
|
-
}),
|
|
6145
|
+
}), y = x(() => {
|
|
6143
6146
|
var e;
|
|
6144
6147
|
return (e = o.node.settings) == null ? void 0 : e.placeholder;
|
|
6145
|
-
}), O =
|
|
6148
|
+
}), O = x(() => {
|
|
6146
6149
|
var e;
|
|
6147
6150
|
return (e = o.node.settings) == null ? void 0 : e.hideDetails;
|
|
6148
|
-
}),
|
|
6151
|
+
}), T = x(() => {
|
|
6149
6152
|
var e;
|
|
6150
6153
|
return (e = o.node.settings) == null ? void 0 : e.singleLine;
|
|
6151
|
-
}), r =
|
|
6154
|
+
}), r = x(() => {
|
|
6152
6155
|
var e;
|
|
6153
6156
|
return l !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
6154
|
-
}), t =
|
|
6157
|
+
}), t = x(() => h.value ? "dark" : "light");
|
|
6155
6158
|
return (e, i) => {
|
|
6156
6159
|
const s = ie("v-number-input");
|
|
6157
|
-
return
|
|
6160
|
+
return Fe(l) === "editor" ? (G(), $e("div", mc, [
|
|
6158
6161
|
Z(s, {
|
|
6159
|
-
"model-value":
|
|
6160
|
-
label:
|
|
6161
|
-
placeholder:
|
|
6162
|
+
"model-value": _.value,
|
|
6163
|
+
label: g.value,
|
|
6164
|
+
placeholder: y.value,
|
|
6162
6165
|
"hide-details": O.value,
|
|
6163
|
-
"single-line":
|
|
6166
|
+
"single-line": T.value,
|
|
6164
6167
|
readonly: r.value,
|
|
6165
6168
|
theme: t.value
|
|
6166
6169
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
6167
6170
|
])) : (G(), Q(s, {
|
|
6168
6171
|
key: 1,
|
|
6169
|
-
"model-value":
|
|
6170
|
-
label:
|
|
6171
|
-
placeholder:
|
|
6172
|
+
"model-value": _.value,
|
|
6173
|
+
label: g.value,
|
|
6174
|
+
placeholder: y.value,
|
|
6172
6175
|
"hide-details": O.value,
|
|
6173
|
-
"single-line":
|
|
6176
|
+
"single-line": T.value,
|
|
6174
6177
|
readonly: r.value,
|
|
6175
6178
|
theme: t.value
|
|
6176
6179
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"]));
|
|
6177
6180
|
};
|
|
6178
6181
|
}
|
|
6179
|
-
}),
|
|
6182
|
+
}), ei = {
|
|
6180
6183
|
key: "settings",
|
|
6181
6184
|
name: "x-runtime-lib.settings",
|
|
6182
6185
|
children: [
|
|
@@ -6222,23 +6225,23 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6222
6225
|
}
|
|
6223
6226
|
]
|
|
6224
6227
|
}, bc = {
|
|
6225
|
-
key:
|
|
6228
|
+
key: pr,
|
|
6226
6229
|
name: "x-runtime-lib.numberInput",
|
|
6227
6230
|
comp: _c,
|
|
6228
6231
|
slots: [],
|
|
6229
6232
|
events: [],
|
|
6230
6233
|
methods: [],
|
|
6231
6234
|
props: {
|
|
6232
|
-
pageCommon: [F,
|
|
6233
|
-
compCommon: [F,
|
|
6235
|
+
pageCommon: [F, ei],
|
|
6236
|
+
compCommon: [F, ei]
|
|
6234
6237
|
}
|
|
6235
6238
|
}, gc = {};
|
|
6236
6239
|
function Ec(n, o) {
|
|
6237
6240
|
const l = ie("v-rating");
|
|
6238
6241
|
return G(), Q(l);
|
|
6239
6242
|
}
|
|
6240
|
-
const Rc = /* @__PURE__ */
|
|
6241
|
-
key:
|
|
6243
|
+
const Rc = /* @__PURE__ */ xt(gc, [["render", Ec]]), Oc = {
|
|
6244
|
+
key: dr,
|
|
6242
6245
|
name: "x-runtime-lib.rating",
|
|
6243
6246
|
comp: Rc,
|
|
6244
6247
|
slots: [],
|
|
@@ -6257,74 +6260,75 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6257
6260
|
outer: { type: Boolean }
|
|
6258
6261
|
},
|
|
6259
6262
|
setup(n) {
|
|
6260
|
-
const { t: o } =
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6263
|
+
const { t: o } = ui(), l = n, h = Bi(), _ = he(), g = $i(), y = Cr(), O = kr(), T = Vi(), r = Le(-1), t = Le(), e = Le();
|
|
6264
|
+
Gi(e), oi(() => {
|
|
6265
|
+
const b = T[l.refContext.refid];
|
|
6266
|
+
if (!b) {
|
|
6267
|
+
r.value = -1, t.value = void 0, e.value && (Me(e.value), e.value = void 0), Ue.emit("compNotAvail", l.refContext.refid);
|
|
6268
|
+
return;
|
|
6269
|
+
}
|
|
6270
|
+
if (r.value === b.dataSeq)
|
|
6271
|
+
return;
|
|
6272
|
+
r.value = b.dataSeq, t.value = _e(b.data), e.value && Me(e.value);
|
|
6273
|
+
const N = t.value, R = N.code.script;
|
|
6274
|
+
R && (e.value = Wi({ env: h, type: y, data: N }, R));
|
|
6275
|
+
}), br(() => {
|
|
6276
|
+
e.value && Me(e.value);
|
|
6273
6277
|
});
|
|
6274
|
-
const { applySize:
|
|
6275
|
-
const
|
|
6276
|
-
return
|
|
6278
|
+
const { applySize: i } = zi(_, g, l), s = x(() => {
|
|
6279
|
+
const b = {}, N = O.type;
|
|
6280
|
+
return y === "page" ? N === "common" ? i(b) : console.assert(!1) : y === "comp" && N === "common" ? i(b) : console.assert(!1), b;
|
|
6277
6281
|
});
|
|
6278
|
-
function
|
|
6279
|
-
const
|
|
6280
|
-
return
|
|
6282
|
+
function u(b) {
|
|
6283
|
+
const N = Ar[O.version].refKey, R = xe[N];
|
|
6284
|
+
return R ? J(R.comp, {
|
|
6281
6285
|
refContext: {
|
|
6282
6286
|
parent: l.refContext,
|
|
6283
|
-
refid:
|
|
6287
|
+
refid: b.ref.id
|
|
6284
6288
|
},
|
|
6285
|
-
node:
|
|
6286
|
-
}) : (console.assert(!1, `ref element not found key=${
|
|
6289
|
+
node: b
|
|
6290
|
+
}) : (console.assert(!1, `ref element not found key=${N}`), J("div", `ref element not found key=${N}`));
|
|
6287
6291
|
}
|
|
6288
|
-
function
|
|
6289
|
-
var
|
|
6290
|
-
const
|
|
6291
|
-
if (!
|
|
6292
|
-
return console.assert(!1, `element not found key=${
|
|
6293
|
-
const
|
|
6294
|
-
return
|
|
6295
|
-
const
|
|
6296
|
-
|
|
6297
|
-
})), J(
|
|
6292
|
+
function c(b) {
|
|
6293
|
+
var S;
|
|
6294
|
+
const N = xe[b.basic.key];
|
|
6295
|
+
if (!N)
|
|
6296
|
+
return console.assert(!1, `element not found key=${b.basic.key}`), J("div", `element not found key=${b.basic.key}`);
|
|
6297
|
+
const R = [];
|
|
6298
|
+
return N.slots.some((k) => k.key === "default") && ((S = b.children) == null || S.forEach((k) => {
|
|
6299
|
+
const L = a(k);
|
|
6300
|
+
R.push(L);
|
|
6301
|
+
})), J(N.comp, { node: b }, { default: () => R });
|
|
6298
6302
|
}
|
|
6299
|
-
function
|
|
6300
|
-
return
|
|
6303
|
+
function a(b) {
|
|
6304
|
+
return b.ref ? u(b) : c(b);
|
|
6301
6305
|
}
|
|
6302
|
-
function
|
|
6303
|
-
let
|
|
6304
|
-
for (;
|
|
6305
|
-
if (
|
|
6306
|
+
function f() {
|
|
6307
|
+
let b = l.refContext.parent;
|
|
6308
|
+
for (; b; ) {
|
|
6309
|
+
if (b.refid === l.refContext.refid)
|
|
6306
6310
|
return !0;
|
|
6307
|
-
|
|
6311
|
+
b = b.parent;
|
|
6308
6312
|
}
|
|
6309
6313
|
return !1;
|
|
6310
6314
|
}
|
|
6311
|
-
const
|
|
6312
|
-
if (
|
|
6315
|
+
const v = () => {
|
|
6316
|
+
if (f())
|
|
6313
6317
|
return J("div", { id: l.id }, o("x-runtime-lib.circularRef"));
|
|
6314
|
-
if (!
|
|
6318
|
+
if (!t.value)
|
|
6315
6319
|
return J("div", { id: l.id }, o("x-runtime-lib.compNotAvail"));
|
|
6316
|
-
const
|
|
6317
|
-
if (
|
|
6318
|
-
const
|
|
6319
|
-
return
|
|
6320
|
-
|
|
6321
|
-
}), J("div", { id: l.id, style:
|
|
6320
|
+
const b = t.value.type;
|
|
6321
|
+
if (b === "common") {
|
|
6322
|
+
const N = [];
|
|
6323
|
+
return t.value.view.nodes.forEach((R) => {
|
|
6324
|
+
N.push(a(R));
|
|
6325
|
+
}), J("div", { id: l.id, style: s.value }, N);
|
|
6322
6326
|
} else
|
|
6323
|
-
return console.assert(!1, `invalid subtype=${
|
|
6327
|
+
return console.assert(!1, `invalid subtype=${b}`), J("div", { id: l.id }, `invalid subtype=${b}`);
|
|
6324
6328
|
};
|
|
6325
|
-
return (
|
|
6329
|
+
return (b, N) => (G(), Q(v));
|
|
6326
6330
|
}
|
|
6327
|
-
}),
|
|
6331
|
+
}), ti = {
|
|
6328
6332
|
key: "ref",
|
|
6329
6333
|
name: "x-runtime-lib.ref",
|
|
6330
6334
|
children: [
|
|
@@ -6336,15 +6340,15 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6336
6340
|
}
|
|
6337
6341
|
]
|
|
6338
6342
|
}, Nc = {
|
|
6339
|
-
key:
|
|
6343
|
+
key: Et,
|
|
6340
6344
|
name: "x-runtime-lib.ref",
|
|
6341
6345
|
comp: Tc,
|
|
6342
6346
|
slots: [],
|
|
6343
6347
|
events: [],
|
|
6344
6348
|
methods: [],
|
|
6345
6349
|
props: {
|
|
6346
|
-
pageCommon: [F,
|
|
6347
|
-
compCommon: [F,
|
|
6350
|
+
pageCommon: [F, Rt, ti],
|
|
6351
|
+
compCommon: [F, Rt, ti]
|
|
6348
6352
|
}
|
|
6349
6353
|
}, xc = { key: 0 }, Sc = /* @__PURE__ */ oe({
|
|
6350
6354
|
__name: "index",
|
|
@@ -6353,50 +6357,50 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6353
6357
|
outer: { type: Boolean }
|
|
6354
6358
|
},
|
|
6355
6359
|
setup(n) {
|
|
6356
|
-
const o = n, l = he(), h =
|
|
6360
|
+
const o = n, l = he(), h = Ye(), _ = x(() => {
|
|
6357
6361
|
var e;
|
|
6358
6362
|
return (e = o.node.settings) == null ? void 0 : e.value;
|
|
6359
|
-
}),
|
|
6363
|
+
}), g = x(() => {
|
|
6360
6364
|
var e;
|
|
6361
6365
|
return (e = o.node.settings) == null ? void 0 : e.label;
|
|
6362
|
-
}),
|
|
6366
|
+
}), y = x(() => {
|
|
6363
6367
|
var e;
|
|
6364
6368
|
return (e = o.node.settings) == null ? void 0 : e.placeholder;
|
|
6365
|
-
}), O =
|
|
6369
|
+
}), O = x(() => {
|
|
6366
6370
|
var e;
|
|
6367
6371
|
return (e = o.node.settings) == null ? void 0 : e.hideDetails;
|
|
6368
|
-
}),
|
|
6372
|
+
}), T = x(() => {
|
|
6369
6373
|
var e;
|
|
6370
6374
|
return (e = o.node.settings) == null ? void 0 : e.singleLine;
|
|
6371
|
-
}), r =
|
|
6375
|
+
}), r = x(() => {
|
|
6372
6376
|
var e;
|
|
6373
6377
|
return l !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
6374
|
-
}), t =
|
|
6378
|
+
}), t = x(() => h.value ? "dark" : "light");
|
|
6375
6379
|
return (e, i) => {
|
|
6376
6380
|
const s = ie("v-select");
|
|
6377
|
-
return
|
|
6381
|
+
return Fe(l) === "editor" ? (G(), $e("div", xc, [
|
|
6378
6382
|
Z(s, {
|
|
6379
|
-
"model-value":
|
|
6380
|
-
label:
|
|
6381
|
-
placeholder:
|
|
6383
|
+
"model-value": _.value,
|
|
6384
|
+
label: g.value,
|
|
6385
|
+
placeholder: y.value,
|
|
6382
6386
|
"hide-details": O.value,
|
|
6383
|
-
"single-line":
|
|
6387
|
+
"single-line": T.value,
|
|
6384
6388
|
readonly: r.value,
|
|
6385
6389
|
theme: t.value
|
|
6386
6390
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
6387
6391
|
])) : (G(), Q(s, {
|
|
6388
6392
|
key: 1,
|
|
6389
|
-
"model-value":
|
|
6390
|
-
label:
|
|
6391
|
-
placeholder:
|
|
6393
|
+
"model-value": _.value,
|
|
6394
|
+
label: g.value,
|
|
6395
|
+
placeholder: y.value,
|
|
6392
6396
|
"hide-details": O.value,
|
|
6393
|
-
"single-line":
|
|
6397
|
+
"single-line": T.value,
|
|
6394
6398
|
readonly: r.value,
|
|
6395
6399
|
theme: t.value
|
|
6396
6400
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"]));
|
|
6397
6401
|
};
|
|
6398
6402
|
}
|
|
6399
|
-
}),
|
|
6403
|
+
}), ri = {
|
|
6400
6404
|
key: "settings",
|
|
6401
6405
|
name: "x-runtime-lib.settings",
|
|
6402
6406
|
children: [
|
|
@@ -6438,23 +6442,23 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6438
6442
|
}
|
|
6439
6443
|
]
|
|
6440
6444
|
}, wc = {
|
|
6441
|
-
key:
|
|
6445
|
+
key: hr,
|
|
6442
6446
|
name: "x-runtime-lib.select",
|
|
6443
6447
|
comp: Sc,
|
|
6444
6448
|
slots: [],
|
|
6445
6449
|
events: [],
|
|
6446
6450
|
methods: [],
|
|
6447
6451
|
props: {
|
|
6448
|
-
pageCommon: [F,
|
|
6449
|
-
compCommon: [F,
|
|
6452
|
+
pageCommon: [F, ri],
|
|
6453
|
+
compCommon: [F, ri]
|
|
6450
6454
|
}
|
|
6451
6455
|
}, Pc = {};
|
|
6452
6456
|
function Cc(n, o) {
|
|
6453
6457
|
const l = ie("v-text-area");
|
|
6454
6458
|
return G(), Q(l);
|
|
6455
6459
|
}
|
|
6456
|
-
const kc = /* @__PURE__ */
|
|
6457
|
-
key:
|
|
6460
|
+
const kc = /* @__PURE__ */ xt(Pc, [["render", Cc]]), Ac = {
|
|
6461
|
+
key: vr,
|
|
6458
6462
|
name: "x-runtime-lib.textArea",
|
|
6459
6463
|
comp: kc,
|
|
6460
6464
|
slots: [],
|
|
@@ -6471,45 +6475,45 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6471
6475
|
outer: { type: Boolean }
|
|
6472
6476
|
},
|
|
6473
6477
|
setup(n) {
|
|
6474
|
-
const o = n, l = he(), h =
|
|
6478
|
+
const o = n, l = he(), h = Ye(), _ = x(() => {
|
|
6475
6479
|
var u;
|
|
6476
6480
|
return (u = o.node.settings) == null ? void 0 : u.label;
|
|
6477
|
-
}),
|
|
6481
|
+
}), g = x(() => {
|
|
6478
6482
|
var u;
|
|
6479
6483
|
return (u = o.node.settings) == null ? void 0 : u.placeholder;
|
|
6480
|
-
}),
|
|
6484
|
+
}), y = x(() => {
|
|
6481
6485
|
var u;
|
|
6482
6486
|
return (u = o.node.settings) == null ? void 0 : u.hideDetails;
|
|
6483
|
-
}), O =
|
|
6487
|
+
}), O = x(() => {
|
|
6484
6488
|
var u;
|
|
6485
6489
|
return (u = o.node.settings) == null ? void 0 : u.singleLine;
|
|
6486
|
-
}),
|
|
6490
|
+
}), T = x(() => {
|
|
6487
6491
|
var u;
|
|
6488
6492
|
return l !== "runtime" ? !0 : (u = o.node.settings) == null ? void 0 : u.readonly;
|
|
6489
|
-
}), r =
|
|
6493
|
+
}), r = x(() => h.value ? "dark" : "light"), t = x(() => {
|
|
6490
6494
|
var u;
|
|
6491
6495
|
return (u = o.node.slots) == null ? void 0 : u.append;
|
|
6492
|
-
}), e =
|
|
6496
|
+
}), e = x(() => {
|
|
6493
6497
|
var u;
|
|
6494
6498
|
return (u = o.node.slots) == null ? void 0 : u.appendInner;
|
|
6495
|
-
}), i =
|
|
6499
|
+
}), i = x(() => {
|
|
6496
6500
|
var u;
|
|
6497
6501
|
return (u = o.node.slots) == null ? void 0 : u.prepend;
|
|
6498
|
-
}), s =
|
|
6502
|
+
}), s = x(() => {
|
|
6499
6503
|
var u;
|
|
6500
6504
|
return (u = o.node.slots) == null ? void 0 : u.prependInner;
|
|
6501
6505
|
});
|
|
6502
6506
|
return (u, c) => {
|
|
6503
6507
|
const a = ie("v-text-field");
|
|
6504
|
-
return
|
|
6508
|
+
return Fe(l) === "editor" ? (G(), $e("div", Ic, [
|
|
6505
6509
|
Z(a, {
|
|
6506
|
-
label:
|
|
6507
|
-
placeholder:
|
|
6508
|
-
"hide-details":
|
|
6510
|
+
label: _.value,
|
|
6511
|
+
placeholder: g.value,
|
|
6512
|
+
"hide-details": y.value,
|
|
6509
6513
|
"single-line": O.value,
|
|
6510
|
-
readonly:
|
|
6514
|
+
readonly: T.value,
|
|
6511
6515
|
theme: r.value
|
|
6512
|
-
},
|
|
6516
|
+
}, Qt({ _: 2 }, [
|
|
6513
6517
|
t.value ? {
|
|
6514
6518
|
name: "append",
|
|
6515
6519
|
fn: ee(() => [
|
|
@@ -6553,13 +6557,13 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6553
6557
|
]), 1032, ["label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
6554
6558
|
])) : (G(), Q(a, {
|
|
6555
6559
|
key: 1,
|
|
6556
|
-
label:
|
|
6557
|
-
placeholder:
|
|
6558
|
-
"hide-details":
|
|
6560
|
+
label: _.value,
|
|
6561
|
+
placeholder: g.value,
|
|
6562
|
+
"hide-details": y.value,
|
|
6559
6563
|
"single-line": O.value,
|
|
6560
|
-
readonly:
|
|
6564
|
+
readonly: T.value,
|
|
6561
6565
|
theme: r.value
|
|
6562
|
-
},
|
|
6566
|
+
}, Qt({ _: 2 }, [
|
|
6563
6567
|
t.value ? {
|
|
6564
6568
|
name: "append",
|
|
6565
6569
|
fn: ee(() => [
|
|
@@ -6603,7 +6607,7 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6603
6607
|
]), 1032, ["label", "placeholder", "hide-details", "single-line", "readonly", "theme"]));
|
|
6604
6608
|
};
|
|
6605
6609
|
}
|
|
6606
|
-
}),
|
|
6610
|
+
}), ni = {
|
|
6607
6611
|
key: "settings",
|
|
6608
6612
|
name: "x-runtime-lib.settings",
|
|
6609
6613
|
children: [
|
|
@@ -6638,7 +6642,7 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6638
6642
|
default: !1
|
|
6639
6643
|
}
|
|
6640
6644
|
]
|
|
6641
|
-
},
|
|
6645
|
+
}, ii = {
|
|
6642
6646
|
key: "slots",
|
|
6643
6647
|
name: "x-runtime-lib.slots",
|
|
6644
6648
|
children: [
|
|
@@ -6668,7 +6672,7 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6668
6672
|
}
|
|
6669
6673
|
]
|
|
6670
6674
|
}, Lc = {
|
|
6671
|
-
key:
|
|
6675
|
+
key: yr,
|
|
6672
6676
|
name: "x-runtime-lib.textField",
|
|
6673
6677
|
comp: Dc,
|
|
6674
6678
|
slots: [
|
|
@@ -6692,16 +6696,14 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6692
6696
|
events: [],
|
|
6693
6697
|
methods: [],
|
|
6694
6698
|
props: {
|
|
6695
|
-
pageCommon: [F,
|
|
6696
|
-
compCommon: [F,
|
|
6699
|
+
pageCommon: [F, ni, ii],
|
|
6700
|
+
compCommon: [F, ni, ii]
|
|
6697
6701
|
}
|
|
6698
6702
|
}, Mc = {
|
|
6699
6703
|
version: "v1",
|
|
6700
|
-
globalityKey:
|
|
6701
|
-
refKey:
|
|
6704
|
+
globalityKey: fr,
|
|
6705
|
+
refKey: Et,
|
|
6702
6706
|
elements: /* @__PURE__ */ new Set([
|
|
6703
|
-
rr,
|
|
6704
|
-
nr,
|
|
6705
6707
|
ir,
|
|
6706
6708
|
ar,
|
|
6707
6709
|
or,
|
|
@@ -6710,33 +6712,35 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6710
6712
|
lr,
|
|
6711
6713
|
cr,
|
|
6712
6714
|
fr,
|
|
6713
|
-
bt,
|
|
6714
6715
|
pr,
|
|
6715
6716
|
dr,
|
|
6716
|
-
|
|
6717
|
+
Et,
|
|
6718
|
+
hr,
|
|
6719
|
+
vr,
|
|
6720
|
+
yr
|
|
6717
6721
|
]),
|
|
6718
6722
|
groups: [
|
|
6719
6723
|
{
|
|
6720
6724
|
key: "basic",
|
|
6721
6725
|
name: "x-runtime-lib.basic",
|
|
6722
6726
|
items: [
|
|
6723
|
-
rr,
|
|
6724
|
-
nr,
|
|
6725
6727
|
ir,
|
|
6726
6728
|
ar,
|
|
6727
6729
|
or,
|
|
6728
6730
|
ur,
|
|
6729
6731
|
sr,
|
|
6732
|
+
lr,
|
|
6730
6733
|
cr,
|
|
6731
|
-
fr,
|
|
6732
|
-
bt,
|
|
6733
6734
|
pr,
|
|
6734
6735
|
dr,
|
|
6735
|
-
|
|
6736
|
+
Et,
|
|
6737
|
+
hr,
|
|
6738
|
+
vr,
|
|
6739
|
+
yr
|
|
6736
6740
|
]
|
|
6737
6741
|
}
|
|
6738
6742
|
]
|
|
6739
|
-
},
|
|
6743
|
+
}, Ar = {
|
|
6740
6744
|
v1: Mc
|
|
6741
6745
|
}, xe = {}, Fc = {
|
|
6742
6746
|
key: "add",
|
|
@@ -6758,7 +6762,7 @@ K(jl);
|
|
|
6758
6762
|
K(zl);
|
|
6759
6763
|
K(fc);
|
|
6760
6764
|
K(vc);
|
|
6761
|
-
K(
|
|
6765
|
+
K(yc);
|
|
6762
6766
|
K(bc);
|
|
6763
6767
|
K(Oc);
|
|
6764
6768
|
K(Nc);
|
|
@@ -6767,9 +6771,9 @@ K(Ac);
|
|
|
6767
6771
|
K(Lc);
|
|
6768
6772
|
const Uc = (n, o, l) => {
|
|
6769
6773
|
const h = n[o];
|
|
6770
|
-
return h ? typeof h == "function" ? h() : Promise.resolve(h) : new Promise((
|
|
6774
|
+
return h ? typeof h == "function" ? h() : Promise.resolve(h) : new Promise((_, g) => {
|
|
6771
6775
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
6772
|
-
|
|
6776
|
+
g.bind(
|
|
6773
6777
|
null,
|
|
6774
6778
|
new Error(
|
|
6775
6779
|
"Unknown variable dynamic import: " + o + (o.split("/").length !== l ? ". Note that variables only represent file names one level deep." : "")
|
|
@@ -6781,23 +6785,23 @@ const Uc = (n, o, l) => {
|
|
|
6781
6785
|
async function Qc(n) {
|
|
6782
6786
|
return (await Uc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-ell9fdk3.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-eeguv06v.js") }), `./locales/${n}/index.ts`, 4)).default;
|
|
6783
6787
|
}
|
|
6784
|
-
function ef(n, o, l, h,
|
|
6785
|
-
let
|
|
6788
|
+
function ef(n, o, l, h, _) {
|
|
6789
|
+
let g = n;
|
|
6786
6790
|
for (let O = 0; O < o.length; O++)
|
|
6787
|
-
if (
|
|
6791
|
+
if (g = g.children[o[O]], !g) {
|
|
6788
6792
|
console.assert(!1, `unpkg context failed parentKeys=${o}`);
|
|
6789
6793
|
return;
|
|
6790
6794
|
}
|
|
6791
|
-
let
|
|
6792
|
-
|
|
6795
|
+
let y = g.children[l];
|
|
6796
|
+
y ? y.dataSeq !== h && (y = {
|
|
6793
6797
|
dataSeq: h,
|
|
6794
|
-
data: _e(
|
|
6798
|
+
data: _e(_),
|
|
6795
6799
|
children: {}
|
|
6796
|
-
}) : (
|
|
6800
|
+
}) : (y = {
|
|
6797
6801
|
dataSeq: h,
|
|
6798
|
-
data: _e(
|
|
6802
|
+
data: _e(_),
|
|
6799
6803
|
children: {}
|
|
6800
|
-
},
|
|
6804
|
+
}, g.children[l] = y);
|
|
6801
6805
|
}
|
|
6802
6806
|
const tf = [
|
|
6803
6807
|
"string",
|
|
@@ -6812,35 +6816,35 @@ export {
|
|
|
6812
6816
|
xe as elements,
|
|
6813
6817
|
ef as ensureContext,
|
|
6814
6818
|
tf as fieldTypes,
|
|
6815
|
-
|
|
6819
|
+
si as genId,
|
|
6816
6820
|
Yc as getNode,
|
|
6817
|
-
|
|
6821
|
+
Vn as getPropDefault,
|
|
6818
6822
|
Rl as getPropTag,
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6823
|
+
Gn as initProps,
|
|
6824
|
+
Ye as injectDark,
|
|
6825
|
+
kr as injectData,
|
|
6826
|
+
Vi as injectDepends,
|
|
6827
|
+
$i as injectDevice,
|
|
6828
|
+
Bi as injectEnv,
|
|
6825
6829
|
Nl as injectInterpreter,
|
|
6826
6830
|
he as injectMode,
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
+
Cr as injectType,
|
|
6832
|
+
gr as isEmptyStr,
|
|
6833
|
+
Rr as isPercentStr,
|
|
6834
|
+
Er as isPixelStr,
|
|
6831
6835
|
Qc as loadLocaleMessageRuntime,
|
|
6832
|
-
|
|
6836
|
+
Kt as parsePercentStr,
|
|
6833
6837
|
Gc as parsePixelStr,
|
|
6834
|
-
|
|
6838
|
+
Ar as pkgs,
|
|
6835
6839
|
Jc as provideDark,
|
|
6836
6840
|
qc as provideData,
|
|
6837
6841
|
Zc as provideDepends,
|
|
6838
6842
|
Hc as provideDevice,
|
|
6839
6843
|
Xc as provideEnv,
|
|
6840
|
-
|
|
6844
|
+
Gi as provideInterpreter,
|
|
6841
6845
|
Wc as provideMode,
|
|
6842
6846
|
Kc as provideType,
|
|
6843
6847
|
Ol as spawnNode,
|
|
6844
|
-
|
|
6845
|
-
|
|
6848
|
+
Wi as startInterpreter,
|
|
6849
|
+
Me as stopInterpreter
|
|
6846
6850
|
};
|