x-runtime-lib 0.5.7 → 0.5.8
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 +124 -128
- package/dist/types/element.d.ts +18 -18
- package/dist/utils/prop.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var fa = Object.defineProperty;
|
|
2
2
|
var pa = (n, o, f) => o in n ? fa(n, o, { enumerable: !0, configurable: !0, writable: !0, value: f }) : n[o] = f;
|
|
3
|
-
var
|
|
4
|
-
import { provide as le, inject as ce, readonly as
|
|
3
|
+
var zt = (n, o, f) => pa(n, typeof o != "symbol" ? o + "" : o, f);
|
|
4
|
+
import { provide as le, inject as ce, readonly as _t, isReactive as Un, defineComponent as me, computed as S, resolveComponent as Ae, openBlock as H, createBlock as _e, unref as gt, createElementBlock as Je, createVNode as bt, normalizeStyle as da, renderSlot as ha, watchEffect as va, onBeforeUnmount as ya, h as Ge } from "vue";
|
|
5
5
|
import { useI18n as ma } from "vue-i18n";
|
|
6
6
|
import { eventBus as jn, messageInfo as _a, messageSuccess as ga, messageWarning as ba, messageError as Ea, openConfirmDlg as Ra, openPromptDlg as Oa } from "x-essential-lib";
|
|
7
7
|
const rn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
@@ -35,7 +35,7 @@ function ac(n) {
|
|
|
35
35
|
if (!isNaN(f) && f % 1 === 0)
|
|
36
36
|
return f;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Wt(n) {
|
|
39
39
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
40
40
|
return;
|
|
41
41
|
const o = n.substring(0, n.length - 1), f = parseFloat(o);
|
|
@@ -76,8 +76,8 @@ function Gn(n) {
|
|
|
76
76
|
var o = He(n);
|
|
77
77
|
return o == Da || o == La || o == Ia || o == Ma;
|
|
78
78
|
}
|
|
79
|
-
var
|
|
80
|
-
var n = /[^.]+$/.exec(
|
|
79
|
+
var Jt = Q["__core-js_shared__"], an = function() {
|
|
80
|
+
var n = /[^.]+$/.exec(Jt && Jt.keys && Jt.keys.IE_PROTO || "");
|
|
81
81
|
return n ? "Symbol(src)_1." + n : "";
|
|
82
82
|
}();
|
|
83
83
|
function Fa(n) {
|
|
@@ -113,7 +113,7 @@ function be(n, o) {
|
|
|
113
113
|
var f = Ja(n, o);
|
|
114
114
|
return Wa(f) ? f : void 0;
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var Kt = be(Q, "WeakMap"), on = Object.create, Ha = /* @__PURE__ */ function() {
|
|
117
117
|
function n() {
|
|
118
118
|
}
|
|
119
119
|
return function(o) {
|
|
@@ -165,7 +165,7 @@ function zn(n, o, f) {
|
|
|
165
165
|
var h = n[o];
|
|
166
166
|
(!(ro.call(n, o) && Xn(h, f)) || f === void 0 && !(o in n)) && Yn(n, o, f);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Et(n, o, f, h) {
|
|
169
169
|
var _ = !f;
|
|
170
170
|
f || (f = {});
|
|
171
171
|
for (var b = -1, m = o.length; ++b < m; ) {
|
|
@@ -214,10 +214,10 @@ function pr(n) {
|
|
|
214
214
|
return n(o);
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
var Zn = typeof exports == "object" && exports && !exports.nodeType && exports, Xe = Zn && typeof module == "object" && module && !module.nodeType && module, jo = Xe && Xe.exports === Zn,
|
|
217
|
+
var Zn = typeof exports == "object" && exports && !exports.nodeType && exports, Xe = Zn && typeof module == "object" && module && !module.nodeType && module, jo = Xe && Xe.exports === Zn, Ht = jo && $n.process, xe = function() {
|
|
218
218
|
try {
|
|
219
219
|
var n = Xe && Xe.require && Xe.require("util").types;
|
|
220
|
-
return n ||
|
|
220
|
+
return n || Ht && Ht.binding && Ht.binding("util");
|
|
221
221
|
} catch {
|
|
222
222
|
}
|
|
223
223
|
}(), fn = xe && xe.isTypedArray, Bo = fn ? pr(fn) : Uo, $o = Object.prototype, Vo = $o.hasOwnProperty;
|
|
@@ -309,7 +309,7 @@ ye.prototype.set = uu;
|
|
|
309
309
|
function su() {
|
|
310
310
|
this.__data__ = [], this.size = 0;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Rt(n, o) {
|
|
313
313
|
for (var f = n.length; f--; )
|
|
314
314
|
if (Xn(n[f][0], o))
|
|
315
315
|
return f;
|
|
@@ -317,21 +317,21 @@ function Et(n, o) {
|
|
|
317
317
|
}
|
|
318
318
|
var lu = Array.prototype, cu = lu.splice;
|
|
319
319
|
function fu(n) {
|
|
320
|
-
var o = this.__data__, f =
|
|
320
|
+
var o = this.__data__, f = Rt(o, n);
|
|
321
321
|
if (f < 0)
|
|
322
322
|
return !1;
|
|
323
323
|
var h = o.length - 1;
|
|
324
324
|
return f == h ? o.pop() : cu.call(o, f, 1), --this.size, !0;
|
|
325
325
|
}
|
|
326
326
|
function pu(n) {
|
|
327
|
-
var o = this.__data__, f =
|
|
327
|
+
var o = this.__data__, f = Rt(o, n);
|
|
328
328
|
return f < 0 ? void 0 : o[f][1];
|
|
329
329
|
}
|
|
330
330
|
function du(n) {
|
|
331
|
-
return
|
|
331
|
+
return Rt(this.__data__, n) > -1;
|
|
332
332
|
}
|
|
333
333
|
function hu(n, o) {
|
|
334
|
-
var f = this.__data__, h =
|
|
334
|
+
var f = this.__data__, h = Rt(f, n);
|
|
335
335
|
return h < 0 ? (++this.size, f.push([n, o])) : f[h][1] = o, this;
|
|
336
336
|
}
|
|
337
337
|
function ie(n) {
|
|
@@ -358,22 +358,22 @@ function yu(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 Ot(n, o) {
|
|
362
362
|
var f = n.__data__;
|
|
363
363
|
return yu(o) ? f[typeof o == "string" ? "string" : "hash"] : f.map;
|
|
364
364
|
}
|
|
365
365
|
function mu(n) {
|
|
366
|
-
var o =
|
|
366
|
+
var o = Ot(this, n).delete(n);
|
|
367
367
|
return this.size -= o ? 1 : 0, o;
|
|
368
368
|
}
|
|
369
369
|
function _u(n) {
|
|
370
|
-
return
|
|
370
|
+
return Ot(this, n).get(n);
|
|
371
371
|
}
|
|
372
372
|
function gu(n) {
|
|
373
|
-
return
|
|
373
|
+
return Ot(this, n).has(n);
|
|
374
374
|
}
|
|
375
375
|
function bu(n, o) {
|
|
376
|
-
var f =
|
|
376
|
+
var f = Ot(this, n), h = f.size;
|
|
377
377
|
return f.set(n, o), this.size += f.size == h ? 0 : 1, this;
|
|
378
378
|
}
|
|
379
379
|
function ke(n) {
|
|
@@ -428,10 +428,10 @@ Ie.prototype.get = Ou;
|
|
|
428
428
|
Ie.prototype.has = Tu;
|
|
429
429
|
Ie.prototype.set = Su;
|
|
430
430
|
function Pu(n, o) {
|
|
431
|
-
return n &&
|
|
431
|
+
return n && Et(o, dr(o), n);
|
|
432
432
|
}
|
|
433
433
|
function wu(n, o) {
|
|
434
|
-
return n &&
|
|
434
|
+
return n && Et(o, hr(o), n);
|
|
435
435
|
}
|
|
436
436
|
var ni = typeof exports == "object" && exports && !exports.nodeType && exports, pn = ni && typeof module == "object" && module && !module.nodeType && module, xu = pn && pn.exports === ni, dn = xu ? Q.Buffer : void 0, hn = dn ? dn.allocUnsafe : void 0;
|
|
437
437
|
function Cu(n, o) {
|
|
@@ -456,7 +456,7 @@ var ku = Object.prototype, Iu = ku.propertyIsEnumerable, vn = Object.getOwnPrope
|
|
|
456
456
|
}));
|
|
457
457
|
} : ii;
|
|
458
458
|
function Du(n, o) {
|
|
459
|
-
return
|
|
459
|
+
return Et(n, vr(n), o);
|
|
460
460
|
}
|
|
461
461
|
var Lu = Object.getOwnPropertySymbols, ai = Lu ? function(n) {
|
|
462
462
|
for (var o = []; n; )
|
|
@@ -464,7 +464,7 @@ var Lu = Object.getOwnPropertySymbols, ai = Lu ? function(n) {
|
|
|
464
464
|
return o;
|
|
465
465
|
} : ii;
|
|
466
466
|
function Mu(n, o) {
|
|
467
|
-
return
|
|
467
|
+
return Et(n, ai(n), o);
|
|
468
468
|
}
|
|
469
469
|
function oi(n, o, f) {
|
|
470
470
|
var h = o(n);
|
|
@@ -476,8 +476,8 @@ function Fu(n) {
|
|
|
476
476
|
function Uu(n) {
|
|
477
477
|
return oi(n, hr, ai);
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
(
|
|
479
|
+
var qt = be(Q, "DataView"), Zt = be(Q, "Promise"), Qt = be(Q, "Set"), yn = "[object Map]", ju = "[object Object]", mn = "[object Promise]", _n = "[object Set]", gn = "[object WeakMap]", bn = "[object DataView]", Bu = ge(qt), $u = ge(We), Vu = ge(Zt), Gu = ge(Qt), Yu = ge(Kt), ne = He;
|
|
480
|
+
(qt && ne(new qt(new ArrayBuffer(1))) != bn || We && ne(new We()) != yn || Zt && ne(Zt.resolve()) != mn || Qt && ne(new Qt()) != _n || Kt && ne(new Kt()) != gn) && (ne = function(n) {
|
|
481
481
|
var o = He(n), f = o == ju ? n.constructor : void 0, h = f ? ge(f) : "";
|
|
482
482
|
if (h)
|
|
483
483
|
switch (h) {
|
|
@@ -607,7 +607,7 @@ function pt(n, o, f, h, _, b) {
|
|
|
607
607
|
}), m;
|
|
608
608
|
}
|
|
609
609
|
var Zs = 1, Qs = 4;
|
|
610
|
-
function
|
|
610
|
+
function dt(n) {
|
|
611
611
|
return pt(n, Zs | Qs);
|
|
612
612
|
}
|
|
613
613
|
function el(n, o) {
|
|
@@ -622,12 +622,8 @@ function el(n, o) {
|
|
|
622
622
|
} else
|
|
623
623
|
console.assert(!1);
|
|
624
624
|
}
|
|
625
|
-
function Sn(n) {
|
|
626
|
-
|
|
627
|
-
return Qt(n.default);
|
|
628
|
-
if (n.array)
|
|
629
|
-
return n.default ? Qt(n.default) : [];
|
|
630
|
-
console.assert(!1);
|
|
625
|
+
function Sn(n, o) {
|
|
626
|
+
return n.array ? dt(o ? n.default : n.defaultArray) : dt(n.default);
|
|
631
627
|
}
|
|
632
628
|
function Pn(n, o) {
|
|
633
629
|
function f(h, _) {
|
|
@@ -720,7 +716,7 @@ function uc(n) {
|
|
|
720
716
|
var _;
|
|
721
717
|
h.basic.id = Bn(16), (_ = h.children) == null || _.forEach((b) => o(b));
|
|
722
718
|
}
|
|
723
|
-
const f =
|
|
719
|
+
const f = dt(n);
|
|
724
720
|
return o(f), f;
|
|
725
721
|
}
|
|
726
722
|
const ci = "runtimeEnv", fi = "runtimeMode", pi = "runtimeDevice", di = "runtimeDark", hi = "runtimeType", vi = "runtimeData", yi = "runtimeDepends", mi = "runtimeInterpreter";
|
|
@@ -737,13 +733,13 @@ function Ee() {
|
|
|
737
733
|
return ce(fi);
|
|
738
734
|
}
|
|
739
735
|
function cc(n) {
|
|
740
|
-
le(pi,
|
|
736
|
+
le(pi, _t(n));
|
|
741
737
|
}
|
|
742
738
|
function _i() {
|
|
743
739
|
return ce(pi);
|
|
744
740
|
}
|
|
745
741
|
function fc(n) {
|
|
746
|
-
le(di,
|
|
742
|
+
le(di, _t(n));
|
|
747
743
|
}
|
|
748
744
|
function Ze() {
|
|
749
745
|
return ce(di);
|
|
@@ -755,13 +751,13 @@ function gi() {
|
|
|
755
751
|
return ce(hi);
|
|
756
752
|
}
|
|
757
753
|
function dc(n) {
|
|
758
|
-
console.assert(Un(n)), le(vi,
|
|
754
|
+
console.assert(Un(n)), le(vi, _t(n));
|
|
759
755
|
}
|
|
760
756
|
function bi() {
|
|
761
757
|
return ce(vi);
|
|
762
758
|
}
|
|
763
759
|
function hc(n) {
|
|
764
|
-
console.assert(Un(n)), le(yi,
|
|
760
|
+
console.assert(Un(n)), le(yi, _t(n));
|
|
765
761
|
}
|
|
766
762
|
function nl() {
|
|
767
763
|
return ce(yi);
|
|
@@ -931,8 +927,8 @@ const ol = /* @__PURE__ */ me({
|
|
|
931
927
|
}), t = S(() => h.value ? "dark" : "light");
|
|
932
928
|
return (e, i) => {
|
|
933
929
|
const u = Ae("v-combobox");
|
|
934
|
-
return
|
|
935
|
-
|
|
930
|
+
return gt(f) === "editor" ? (H(), Je("div", cl, [
|
|
931
|
+
bt(u, {
|
|
936
932
|
"model-value": _.value,
|
|
937
933
|
label: b.value,
|
|
938
934
|
placeholder: m.value,
|
|
@@ -1019,7 +1015,7 @@ function Oi(n, o, f) {
|
|
|
1019
1015
|
}), m = S(() => {
|
|
1020
1016
|
var t, e;
|
|
1021
1017
|
if (f.outer && n === "editor") {
|
|
1022
|
-
const i =
|
|
1018
|
+
const i = Wt((t = f.node.size) == null ? void 0 : t.height);
|
|
1023
1019
|
if (i)
|
|
1024
1020
|
return i / 100 * o.value.height + "px";
|
|
1025
1021
|
}
|
|
@@ -1027,7 +1023,7 @@ function Oi(n, o, f) {
|
|
|
1027
1023
|
}), T = S(() => {
|
|
1028
1024
|
var t, e;
|
|
1029
1025
|
if (f.outer && n === "editor") {
|
|
1030
|
-
const i =
|
|
1026
|
+
const i = Wt((t = f.node.size) == null ? void 0 : t.minHeight);
|
|
1031
1027
|
if (i)
|
|
1032
1028
|
return i / 100 * o.value.height + "px";
|
|
1033
1029
|
}
|
|
@@ -1035,7 +1031,7 @@ function Oi(n, o, f) {
|
|
|
1035
1031
|
}), O = S(() => {
|
|
1036
1032
|
var t, e;
|
|
1037
1033
|
if (f.outer && n === "editor") {
|
|
1038
|
-
const i =
|
|
1034
|
+
const i = Wt((t = f.node.size) == null ? void 0 : t.maxHeight);
|
|
1039
1035
|
if (i)
|
|
1040
1036
|
return i / 100 * o.value.height + "px";
|
|
1041
1037
|
}
|
|
@@ -1149,7 +1145,7 @@ const yl = /* @__PURE__ */ me({
|
|
|
1149
1145
|
max: 1 / 0,
|
|
1150
1146
|
step: 1
|
|
1151
1147
|
}
|
|
1152
|
-
],
|
|
1148
|
+
], ht = {
|
|
1153
1149
|
key: "border",
|
|
1154
1150
|
name: "x-runtime-lib.border",
|
|
1155
1151
|
children: [
|
|
@@ -1247,7 +1243,7 @@ const yl = /* @__PURE__ */ me({
|
|
|
1247
1243
|
max: 1 / 0,
|
|
1248
1244
|
step: 1
|
|
1249
1245
|
}
|
|
1250
|
-
],
|
|
1246
|
+
], vt = {
|
|
1251
1247
|
key: "margin",
|
|
1252
1248
|
name: "x-runtime-lib.margin",
|
|
1253
1249
|
children: [
|
|
@@ -1307,7 +1303,7 @@ const yl = /* @__PURE__ */ me({
|
|
|
1307
1303
|
max: 1 / 0,
|
|
1308
1304
|
step: 1
|
|
1309
1305
|
}
|
|
1310
|
-
],
|
|
1306
|
+
], yt = {
|
|
1311
1307
|
key: "padding",
|
|
1312
1308
|
name: "x-runtime-lib.padding",
|
|
1313
1309
|
children: [
|
|
@@ -1340,7 +1336,7 @@ const yl = /* @__PURE__ */ me({
|
|
|
1340
1336
|
default: ""
|
|
1341
1337
|
}
|
|
1342
1338
|
]
|
|
1343
|
-
},
|
|
1339
|
+
}, mt = {
|
|
1344
1340
|
key: "size",
|
|
1345
1341
|
name: "x-runtime-lib.size",
|
|
1346
1342
|
children: [
|
|
@@ -1405,8 +1401,8 @@ const yl = /* @__PURE__ */ me({
|
|
|
1405
1401
|
],
|
|
1406
1402
|
methods: [],
|
|
1407
1403
|
props: {
|
|
1408
|
-
pageCommon: [z,
|
|
1409
|
-
compCommon: [z,
|
|
1404
|
+
pageCommon: [z, mt, ht, vt, yt, Cn],
|
|
1405
|
+
compCommon: [z, mt, ht, vt, yt, Cn]
|
|
1410
1406
|
}
|
|
1411
1407
|
}, gl = (n, o) => {
|
|
1412
1408
|
const f = n.__vccOpts || n;
|
|
@@ -1440,7 +1436,7 @@ const Rl = /* @__PURE__ */ gl(bl, [["render", El]]), An = {
|
|
|
1440
1436
|
}
|
|
1441
1437
|
],
|
|
1442
1438
|
array: !0,
|
|
1443
|
-
|
|
1439
|
+
defaultArray: []
|
|
1444
1440
|
}
|
|
1445
1441
|
]
|
|
1446
1442
|
}, Ol = {
|
|
@@ -1535,8 +1531,8 @@ const Rl = /* @__PURE__ */ gl(bl, [["render", El]]), An = {
|
|
|
1535
1531
|
}), t = S(() => h.value ? "dark" : "light");
|
|
1536
1532
|
return (e, i) => {
|
|
1537
1533
|
const u = Ae("v-number-input");
|
|
1538
|
-
return
|
|
1539
|
-
|
|
1534
|
+
return gt(f) === "editor" ? (H(), Je("div", Tl, [
|
|
1535
|
+
bt(u, {
|
|
1540
1536
|
"model-value": _.value,
|
|
1541
1537
|
label: b.value,
|
|
1542
1538
|
placeholder: m.value,
|
|
@@ -4768,9 +4764,9 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4768
4764
|
var g = new SyntaxError(d);
|
|
4769
4765
|
throw g.pos = c, g.loc = y, g.raisedAt = a, g;
|
|
4770
4766
|
}
|
|
4771
|
-
var wi = [], Qe = { type: "num" }, mr = { type: "regexp" },
|
|
4772
|
-
break:
|
|
4773
|
-
case:
|
|
4767
|
+
var wi = [], Qe = { type: "num" }, mr = { type: "regexp" }, Tt = { type: "string" }, Oe = { type: "name" }, Nt = { type: "eof" }, St = { keyword: "break" }, Pt = { keyword: "case", beforeExpr: !0 }, _r = { keyword: "catch" }, gr = { keyword: "continue" }, br = { keyword: "debugger" }, Er = { keyword: "default" }, Rr = { keyword: "do", isLoop: !0 }, Or = { keyword: "else", beforeExpr: !0 }, Tr = { keyword: "finally" }, Nr = { keyword: "for", isLoop: !0 }, wt = { keyword: "function" }, Sr = { keyword: "if" }, Pr = { keyword: "return", beforeExpr: !0 }, xt = { keyword: "switch" }, wr = { keyword: "throw", beforeExpr: !0 }, xr = { keyword: "try" }, Ct = { keyword: "var" }, At = { keyword: "while", isLoop: !0 }, Cr = { keyword: "with" }, Ar = { keyword: "new", beforeExpr: !0 }, kr = { keyword: "this" }, Ir = { keyword: "null", atomValue: null }, Dr = { keyword: "true", atomValue: !0 }, Lr = { keyword: "false", atomValue: !1 }, et = { keyword: "in", binop: 7, beforeExpr: !0 }, xi = {
|
|
4768
|
+
break: St,
|
|
4769
|
+
case: Pt,
|
|
4774
4770
|
catch: _r,
|
|
4775
4771
|
continue: gr,
|
|
4776
4772
|
debugger: br,
|
|
@@ -4779,14 +4775,14 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4779
4775
|
else: Or,
|
|
4780
4776
|
finally: Tr,
|
|
4781
4777
|
for: Nr,
|
|
4782
|
-
function:
|
|
4778
|
+
function: wt,
|
|
4783
4779
|
if: Sr,
|
|
4784
4780
|
return: Pr,
|
|
4785
|
-
switch:
|
|
4781
|
+
switch: xt,
|
|
4786
4782
|
throw: wr,
|
|
4787
4783
|
try: xr,
|
|
4788
|
-
var:
|
|
4789
|
-
while:
|
|
4784
|
+
var: Ct,
|
|
4785
|
+
while: At,
|
|
4790
4786
|
with: Cr,
|
|
4791
4787
|
null: Ir,
|
|
4792
4788
|
true: Dr,
|
|
@@ -4798,7 +4794,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4798
4794
|
typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
|
|
4799
4795
|
void: { keyword: "void", prefix: !0, beforeExpr: !0 },
|
|
4800
4796
|
delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
|
|
4801
|
-
},
|
|
4797
|
+
}, kt = { type: "[", beforeExpr: !0 }, It = { type: "]" }, Le = { type: "{", beforeExpr: !0 }, Te = { type: "}" }, ee = { type: "(", beforeExpr: !0 }, Z = { type: ")" }, oe = { type: ",", beforeExpr: !0 }, te = { type: ";", beforeExpr: !0 }, Me = { type: ":", beforeExpr: !0 }, Mr = { type: "." }, Fr = { type: "?", beforeExpr: !0 }, Ur = { binop: 10, beforeExpr: !0 }, jr = { isAssign: !0, beforeExpr: !0 }, pe = { isAssign: !0, beforeExpr: !0 }, Ci = { postfix: !0, prefix: !0, isUpdate: !0 }, Br = { prefix: !0, beforeExpr: !0 }, $r = { binop: 1, beforeExpr: !0 }, Vr = { binop: 2, beforeExpr: !0 }, Ai = { binop: 3, beforeExpr: !0 }, ki = { binop: 4, beforeExpr: !0 }, Ii = { binop: 5, beforeExpr: !0 }, Di = { binop: 6, beforeExpr: !0 }, Li = { binop: 7, beforeExpr: !0 }, Mi = { binop: 8, beforeExpr: !0 }, Fi = { binop: 9, prefix: !0, beforeExpr: !0 }, Ui = { binop: 10, beforeExpr: !0 };
|
|
4802
4798
|
function tt(c) {
|
|
4803
4799
|
for (var d = c.split(" "), y = /* @__PURE__ */ Object.create(null), g = 0; g < d.length; g++)
|
|
4804
4800
|
y[d[g]] = !0;
|
|
@@ -4836,7 +4832,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4836
4832
|
r.locations && new de()
|
|
4837
4833
|
);
|
|
4838
4834
|
}
|
|
4839
|
-
function
|
|
4835
|
+
function Dt() {
|
|
4840
4836
|
for (var c = a, d = r.onComment && r.locations && new de(), y = t.charCodeAt(a += 2); a < e && y !== 10 && y !== 13 && y !== 8232 && y !== 8233; )
|
|
4841
4837
|
++a, y = t.charCodeAt(a);
|
|
4842
4838
|
r.onComment && r.onComment(
|
|
@@ -4866,7 +4862,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4866
4862
|
if (d === 42)
|
|
4867
4863
|
Xi();
|
|
4868
4864
|
else if (d === 47)
|
|
4869
|
-
|
|
4865
|
+
Dt();
|
|
4870
4866
|
else break;
|
|
4871
4867
|
} else if (c === 160)
|
|
4872
4868
|
++a;
|
|
@@ -4900,7 +4896,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4900
4896
|
var d = t.charCodeAt(a + 1);
|
|
4901
4897
|
if (d === c) {
|
|
4902
4898
|
if (d === 45 && t.charCodeAt(a + 2) === 62 && nt.test(t.slice(K, a))) {
|
|
4903
|
-
a += 3,
|
|
4899
|
+
a += 3, Dt(), Fe(), Ne();
|
|
4904
4900
|
return;
|
|
4905
4901
|
}
|
|
4906
4902
|
G(Ci, 2);
|
|
@@ -4913,7 +4909,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4913
4909
|
return;
|
|
4914
4910
|
}
|
|
4915
4911
|
if (d === 33 && c === 60 && t.charCodeAt(a + 2) === 45 && t.charCodeAt(a + 3) === 45) {
|
|
4916
|
-
a += 4,
|
|
4912
|
+
a += 4, Dt(), Fe(), Ne();
|
|
4917
4913
|
return;
|
|
4918
4914
|
}
|
|
4919
4915
|
d === 61 && (y = t.charCodeAt(a + 2) === 61 ? 3 : 2), G(Li, y);
|
|
@@ -4935,9 +4931,9 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4935
4931
|
case 44:
|
|
4936
4932
|
return ++a, V(oe);
|
|
4937
4933
|
case 91:
|
|
4938
|
-
return ++a, V(At);
|
|
4939
|
-
case 93:
|
|
4940
4934
|
return ++a, V(kt);
|
|
4935
|
+
case 93:
|
|
4936
|
+
return ++a, V(It);
|
|
4941
4937
|
case 123:
|
|
4942
4938
|
return ++a, V(Le);
|
|
4943
4939
|
case 125:
|
|
@@ -4988,7 +4984,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4988
4984
|
}
|
|
4989
4985
|
function Ne(c) {
|
|
4990
4986
|
if (c ? a = p + 1 : p = a, r.locations && (E = new de()), c) return Wr();
|
|
4991
|
-
if (a >= e) return V(
|
|
4987
|
+
if (a >= e) return V(Nt);
|
|
4992
4988
|
var d = t.charCodeAt(a);
|
|
4993
4989
|
if (at(d) || d === 92)
|
|
4994
4990
|
return Kr();
|
|
@@ -5059,7 +5055,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5059
5055
|
a >= e && k(p, "Unterminated string constant");
|
|
5060
5056
|
var y = t.charCodeAt(a);
|
|
5061
5057
|
if (y === c) {
|
|
5062
|
-
++a, V(
|
|
5058
|
+
++a, V(Tt, d);
|
|
5063
5059
|
return;
|
|
5064
5060
|
}
|
|
5065
5061
|
if (y === 92) {
|
|
@@ -5144,7 +5140,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5144
5140
|
function D() {
|
|
5145
5141
|
De = p, K = v, Re = N, Ne();
|
|
5146
5142
|
}
|
|
5147
|
-
function
|
|
5143
|
+
function Lt(c) {
|
|
5148
5144
|
if (J = c, a = p, r.locations)
|
|
5149
5145
|
for (; a < W; )
|
|
5150
5146
|
W = t.lastIndexOf(`
|
|
@@ -5168,14 +5164,14 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5168
5164
|
function x(c, d) {
|
|
5169
5165
|
return c.type = d, c.end = K, r.locations && (c.loc.end = Re), r.ranges && (c.range[1] = K), c;
|
|
5170
5166
|
}
|
|
5171
|
-
function
|
|
5167
|
+
function Mt(c) {
|
|
5172
5168
|
return c.type === "ExpressionStatement" && c.expression.type === "Literal" && c.expression.value === "use strict";
|
|
5173
5169
|
}
|
|
5174
5170
|
function j(c) {
|
|
5175
5171
|
return R === c ? (D(), !0) : !1;
|
|
5176
5172
|
}
|
|
5177
5173
|
function ut() {
|
|
5178
|
-
return !r.strictSemicolons && (R ===
|
|
5174
|
+
return !r.strictSemicolons && (R === Nt || R === Te || nt.test(t.slice(K, p)));
|
|
5179
5175
|
}
|
|
5180
5176
|
function he() {
|
|
5181
5177
|
!j(te) && !ut() && re();
|
|
@@ -5192,21 +5188,21 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5192
5188
|
function na(c) {
|
|
5193
5189
|
De = K = a, r.locations && (Re = new de()), fe = J = !1, B = [], Ne();
|
|
5194
5190
|
var d = c || Y(), y = !0;
|
|
5195
|
-
for (c || (d.body = []); R !==
|
|
5191
|
+
for (c || (d.body = []); R !== Nt; ) {
|
|
5196
5192
|
var g = q();
|
|
5197
|
-
d.body.push(g), y &&
|
|
5193
|
+
d.body.push(g), y && Mt(g) && Lt(!0), y = !1;
|
|
5198
5194
|
}
|
|
5199
5195
|
return x(d, "Program");
|
|
5200
5196
|
}
|
|
5201
|
-
var
|
|
5197
|
+
var Ft = { kind: "loop" }, ia = { kind: "switch" };
|
|
5202
5198
|
function q() {
|
|
5203
5199
|
(R === Ur || R === pe && P === "/=") && Ne(!0);
|
|
5204
5200
|
var c = R, d = Y();
|
|
5205
5201
|
switch (c) {
|
|
5206
|
-
case
|
|
5202
|
+
case St:
|
|
5207
5203
|
case gr:
|
|
5208
5204
|
D();
|
|
5209
|
-
var y = c ===
|
|
5205
|
+
var y = c === St;
|
|
5210
5206
|
j(te) || ut() ? d.label = null : R !== Oe ? re() : (d.label = se(), he());
|
|
5211
5207
|
for (var g = 0; g < B.length; ++g) {
|
|
5212
5208
|
var C = B[g];
|
|
@@ -5217,26 +5213,26 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5217
5213
|
case br:
|
|
5218
5214
|
return D(), he(), x(d, "DebuggerStatement");
|
|
5219
5215
|
case Rr:
|
|
5220
|
-
return D(), B.push(
|
|
5216
|
+
return D(), B.push(Ft), d.body = q(), B.pop(), $(At), d.test = je(), he(), x(d, "DoWhileStatement");
|
|
5221
5217
|
case Nr:
|
|
5222
|
-
if (D(), B.push(
|
|
5223
|
-
if (R ===
|
|
5218
|
+
if (D(), B.push(Ft), $(ee), R === te) return Ut(d, null);
|
|
5219
|
+
if (R === Ct) {
|
|
5224
5220
|
var w = Y();
|
|
5225
|
-
return D(), en(w, !0), x(w, "VariableDeclaration"), w.declarations.length === 1 && j(et) ? Qr(d, w) :
|
|
5221
|
+
return D(), en(w, !0), x(w, "VariableDeclaration"), w.declarations.length === 1 && j(et) ? Qr(d, w) : Ut(d, w);
|
|
5226
5222
|
}
|
|
5227
5223
|
var w = X(!1, !0);
|
|
5228
|
-
return j(et) ? (st(w), Qr(d, w)) :
|
|
5229
|
-
case
|
|
5230
|
-
return D(),
|
|
5224
|
+
return j(et) ? (st(w), Qr(d, w)) : Ut(d, w);
|
|
5225
|
+
case wt:
|
|
5226
|
+
return D(), Gt(d, !0);
|
|
5231
5227
|
case Sr:
|
|
5232
5228
|
return D(), d.test = je(), d.consequent = q(), d.alternate = j(Or) ? q() : null, x(d, "IfStatement");
|
|
5233
5229
|
case Pr:
|
|
5234
5230
|
return !fe && !r.allowReturnOutsideFunction && k(p, "'return' outside of function"), D(), j(te) || ut() ? d.argument = null : (d.argument = X(), he()), x(d, "ReturnStatement");
|
|
5235
|
-
case
|
|
5231
|
+
case xt:
|
|
5236
5232
|
D(), d.discriminant = je(), d.cases = [], $(Le), B.push(ia);
|
|
5237
5233
|
for (var A, U; R !== Te; )
|
|
5238
|
-
if (R ===
|
|
5239
|
-
var Ve = R ===
|
|
5234
|
+
if (R === Pt || R === Er) {
|
|
5235
|
+
var Ve = R === Pt;
|
|
5240
5236
|
A && x(A, "SwitchCase"), d.cases.push(A = Y()), A.consequent = [], D(), Ve ? A.test = X() : (U && k(De, "Multiple default clauses"), U = !0, A.test = null), $(Me);
|
|
5241
5237
|
} else
|
|
5242
5238
|
A || re(), A.consequent.push(q());
|
|
@@ -5249,10 +5245,10 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5249
5245
|
D(), $(ee), Pe.param = se(), J && rt(Pe.param.name) && k(Pe.param.start, "Binding " + Pe.param.name + " in strict mode"), $(Z), Pe.body = Be(), d.handler = x(Pe, "CatchClause");
|
|
5250
5246
|
}
|
|
5251
5247
|
return d.finalizer = j(Tr) ? Be() : null, !d.handler && !d.finalizer && k(d.start, "Missing catch or finally clause"), x(d, "TryStatement");
|
|
5252
|
-
case xt:
|
|
5253
|
-
return D(), en(d), he(), x(d, "VariableDeclaration");
|
|
5254
5248
|
case Ct:
|
|
5255
|
-
return D(),
|
|
5249
|
+
return D(), en(d), he(), x(d, "VariableDeclaration");
|
|
5250
|
+
case At:
|
|
5251
|
+
return D(), d.test = je(), B.push(Ft), d.body = q(), B.pop(), x(d, "WhileStatement");
|
|
5256
5252
|
case Cr:
|
|
5257
5253
|
return J && k(p, "'with' in strict mode"), D(), d.object = je(), d.body = q(), x(d, "WithStatement");
|
|
5258
5254
|
case Le:
|
|
@@ -5260,12 +5256,12 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5260
5256
|
case te:
|
|
5261
5257
|
return D(), x(d, "EmptyStatement");
|
|
5262
5258
|
default:
|
|
5263
|
-
var
|
|
5259
|
+
var Xt = P, lt = X();
|
|
5264
5260
|
if (c === Oe && lt.type === "Identifier" && j(Me)) {
|
|
5265
5261
|
for (var g = 0; g < B.length; ++g)
|
|
5266
|
-
B[g].name ===
|
|
5267
|
-
var ca = R.isLoop ? "loop" : R ===
|
|
5268
|
-
return B.push({ name:
|
|
5262
|
+
B[g].name === Xt && k(lt.start, "Label '" + Xt + "' is already declared");
|
|
5263
|
+
var ca = R.isLoop ? "loop" : R === xt ? "switch" : null;
|
|
5264
|
+
return B.push({ name: Xt, kind: ca }), d.body = q(), B.pop(), d.label = lt, x(d, "LabeledStatement");
|
|
5269
5265
|
} else
|
|
5270
5266
|
return d.expression = lt, he(), x(d, "ExpressionStatement");
|
|
5271
5267
|
}
|
|
@@ -5279,11 +5275,11 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5279
5275
|
var d = Y(), y = !0, g = !1, C;
|
|
5280
5276
|
for (d.body = [], $(Le); !j(Te); ) {
|
|
5281
5277
|
var w = q();
|
|
5282
|
-
d.body.push(w), y && c &&
|
|
5278
|
+
d.body.push(w), y && c && Mt(w) && (C = g, Lt(g = !0)), y = !1;
|
|
5283
5279
|
}
|
|
5284
|
-
return g && !C &&
|
|
5280
|
+
return g && !C && Lt(!1), x(d, "BlockStatement");
|
|
5285
5281
|
}
|
|
5286
|
-
function
|
|
5282
|
+
function Ut(c, d) {
|
|
5287
5283
|
return c.init = d, $(te), c.test = R === te ? null : X(), $(te), c.update = R === Z ? null : X(), $(Z), c.body = q(), B.pop(), x(c, "ForStatement");
|
|
5288
5284
|
}
|
|
5289
5285
|
function Qr(c, d) {
|
|
@@ -5296,19 +5292,19 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5296
5292
|
}
|
|
5297
5293
|
}
|
|
5298
5294
|
function X(c, d) {
|
|
5299
|
-
var y =
|
|
5295
|
+
var y = jt(d);
|
|
5300
5296
|
if (!c && R === oe) {
|
|
5301
5297
|
var g = ue(y);
|
|
5302
|
-
for (g.expressions = [y]; j(oe); ) g.expressions.push(
|
|
5298
|
+
for (g.expressions = [y]; j(oe); ) g.expressions.push(jt(d));
|
|
5303
5299
|
return x(g, "SequenceExpression");
|
|
5304
5300
|
}
|
|
5305
5301
|
return y;
|
|
5306
5302
|
}
|
|
5307
|
-
function
|
|
5303
|
+
function jt(c) {
|
|
5308
5304
|
var d = aa(c);
|
|
5309
5305
|
if (R.isAssign) {
|
|
5310
5306
|
var y = ue(d);
|
|
5311
|
-
return y.operator = P, y.left = d, D(), y.right =
|
|
5307
|
+
return y.operator = P, y.left = d, D(), y.right = jt(c), st(d), x(y, "AssignmentExpression");
|
|
5312
5308
|
}
|
|
5313
5309
|
return d;
|
|
5314
5310
|
}
|
|
@@ -5321,24 +5317,24 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5321
5317
|
return d;
|
|
5322
5318
|
}
|
|
5323
5319
|
function oa(c) {
|
|
5324
|
-
return
|
|
5320
|
+
return Bt($t(), -1, c);
|
|
5325
5321
|
}
|
|
5326
|
-
function
|
|
5322
|
+
function Bt(c, d, y) {
|
|
5327
5323
|
var g = R.binop;
|
|
5328
5324
|
if (g !== null && (!y || R !== et) && g > d) {
|
|
5329
5325
|
var C = ue(c);
|
|
5330
5326
|
C.left = c, C.operator = P;
|
|
5331
5327
|
var w = R;
|
|
5332
|
-
D(), C.right =
|
|
5328
|
+
D(), C.right = Bt($t(), g, y);
|
|
5333
5329
|
var A = x(C, w === $r || w === Vr ? "LogicalExpression" : "BinaryExpression");
|
|
5334
|
-
return
|
|
5330
|
+
return Bt(A, d, y);
|
|
5335
5331
|
}
|
|
5336
5332
|
return c;
|
|
5337
5333
|
}
|
|
5338
|
-
function
|
|
5334
|
+
function $t() {
|
|
5339
5335
|
if (R.prefix) {
|
|
5340
5336
|
var c = Y(), d = R.isUpdate;
|
|
5341
|
-
return c.operator = P, c.prefix = !0, I = !0, D(), c.argument =
|
|
5337
|
+
return c.operator = P, c.prefix = !0, I = !0, D(), c.argument = $t(), d ? st(c.argument) : J && c.operator === "delete" && c.argument.type === "Identifier" && k(c.start, "Deleting local variable in strict mode"), x(c, d ? "UpdateExpression" : "UnaryExpression");
|
|
5342
5338
|
}
|
|
5343
5339
|
for (var y = ua(); R.postfix && !ut(); ) {
|
|
5344
5340
|
var c = ue(y);
|
|
@@ -5347,13 +5343,13 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5347
5343
|
return y;
|
|
5348
5344
|
}
|
|
5349
5345
|
function ua() {
|
|
5350
|
-
return $e(
|
|
5346
|
+
return $e(Vt());
|
|
5351
5347
|
}
|
|
5352
5348
|
function $e(c, d) {
|
|
5353
5349
|
var y;
|
|
5354
|
-
return j(Mr) ? (y = ue(c), y.object = c, y.property = se(!0), y.computed = !1, $e(x(y, "MemberExpression"), d)) : j(
|
|
5350
|
+
return j(Mr) ? (y = ue(c), y.object = c, y.property = se(!0), y.computed = !1, $e(x(y, "MemberExpression"), d)) : j(kt) ? (y = ue(c), y.object = c, y.property = X(), y.computed = !0, $(It), $e(x(y, "MemberExpression"), d)) : !d && j(ee) ? (y = ue(c), y.callee = c, y.arguments = Yt(Z, !1), $e(x(y, "CallExpression"), d)) : c;
|
|
5355
5351
|
}
|
|
5356
|
-
function
|
|
5352
|
+
function Vt() {
|
|
5357
5353
|
var c;
|
|
5358
5354
|
switch (R) {
|
|
5359
5355
|
case kr:
|
|
@@ -5361,7 +5357,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5361
5357
|
case Oe:
|
|
5362
5358
|
return se();
|
|
5363
5359
|
case Qe:
|
|
5364
|
-
case
|
|
5360
|
+
case Tt:
|
|
5365
5361
|
case mr:
|
|
5366
5362
|
return c = Y(), c.value = P, c.raw = t.slice(p, v), D(), x(c, "Literal");
|
|
5367
5363
|
case Ir:
|
|
@@ -5373,12 +5369,12 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5373
5369
|
D();
|
|
5374
5370
|
var g = X();
|
|
5375
5371
|
return g.start = y, g.end = v, r.locations && (g.loc.start = d, g.loc.end = N), r.ranges && (g.range = [y, v]), $(Z), g;
|
|
5376
|
-
case
|
|
5377
|
-
return c = Y(), D(), c.elements =
|
|
5372
|
+
case kt:
|
|
5373
|
+
return c = Y(), D(), c.elements = Yt(It, !0, !0), x(c, "ArrayExpression");
|
|
5378
5374
|
case Le:
|
|
5379
5375
|
return la();
|
|
5380
|
-
case
|
|
5381
|
-
return c = Y(), D(),
|
|
5376
|
+
case wt:
|
|
5377
|
+
return c = Y(), D(), Gt(c, !1);
|
|
5382
5378
|
case Ar:
|
|
5383
5379
|
return sa();
|
|
5384
5380
|
}
|
|
@@ -5386,7 +5382,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5386
5382
|
}
|
|
5387
5383
|
function sa() {
|
|
5388
5384
|
var c = Y();
|
|
5389
|
-
return D(), c.callee = $e(
|
|
5385
|
+
return D(), c.callee = $e(Vt(), !0), c.arguments = j(ee) ? Yt(Z, !1) : wi, x(c, "NewExpression");
|
|
5390
5386
|
}
|
|
5391
5387
|
function la() {
|
|
5392
5388
|
var c = Y(), d = !0, y = !1;
|
|
@@ -5396,7 +5392,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5396
5392
|
else if ($(oe), r.allowTrailingCommas && j(Te))
|
|
5397
5393
|
break;
|
|
5398
5394
|
var g = { key: tn() }, C = !1, w;
|
|
5399
|
-
if (j(Me) ? (g.value = X(!0), w = g.kind = "init") : g.key.type === "Identifier" && (g.key.name === "get" || g.key.name === "set") ? (C = y = !0, w = g.kind = g.key.name, g.key = tn(), R !== ee && re(), g.value =
|
|
5395
|
+
if (j(Me) ? (g.value = X(!0), w = g.kind = "init") : g.key.type === "Identifier" && (g.key.name === "get" || g.key.name === "set") ? (C = y = !0, w = g.kind = g.key.name, g.key = tn(), R !== ee && re(), g.value = Gt(Y(), !1)) : re(), g.key.type === "Identifier" && (J || y))
|
|
5400
5396
|
for (var A = 0; A < c.properties.length; ++A) {
|
|
5401
5397
|
var U = c.properties[A];
|
|
5402
5398
|
if (U.key.name === g.key.name) {
|
|
@@ -5409,15 +5405,15 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5409
5405
|
return x(c, "ObjectExpression");
|
|
5410
5406
|
}
|
|
5411
5407
|
function tn() {
|
|
5412
|
-
return R === Qe || R ===
|
|
5408
|
+
return R === Qe || R === Tt ? Vt() : se(!0);
|
|
5413
5409
|
}
|
|
5414
|
-
function
|
|
5410
|
+
function Gt(c, d) {
|
|
5415
5411
|
R === Oe ? c.id = se() : d ? re() : c.id = null, c.params = [];
|
|
5416
5412
|
var y = !0;
|
|
5417
5413
|
for ($(ee); !j(Z); )
|
|
5418
5414
|
y ? y = !1 : $(oe), c.params.push(se());
|
|
5419
5415
|
var g = fe, C = B;
|
|
5420
|
-
if (fe = !0, B = [], c.body = Be(!0), fe = g, B = C, J || c.body.body.length &&
|
|
5416
|
+
if (fe = !0, B = [], c.body = Be(!0), fe = g, B = C, J || c.body.body.length && Mt(c.body.body[0]))
|
|
5421
5417
|
for (var w = c.id ? -1 : 0; w < c.params.length; ++w) {
|
|
5422
5418
|
var A = w < 0 ? c.id : c.params[w];
|
|
5423
5419
|
if ((Gr(A.name) || rt(A.name)) && k(A.start, "Defining '" + A.name + "' in strict mode"), w >= 0)
|
|
@@ -5426,7 +5422,7 @@ const Cl = {}, Al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5426
5422
|
}
|
|
5427
5423
|
return x(c, d ? "FunctionDeclaration" : "FunctionExpression");
|
|
5428
5424
|
}
|
|
5429
|
-
function
|
|
5425
|
+
function Yt(c, d, y) {
|
|
5430
5426
|
for (var g = [], C = !0; !j(c); ) {
|
|
5431
5427
|
if (C)
|
|
5432
5428
|
C = !1;
|
|
@@ -5551,8 +5547,8 @@ function Ll(n, o) {
|
|
|
5551
5547
|
}
|
|
5552
5548
|
class Ml {
|
|
5553
5549
|
constructor(o) {
|
|
5554
|
-
|
|
5555
|
-
|
|
5550
|
+
zt(this, "context");
|
|
5551
|
+
zt(this, "nodes");
|
|
5556
5552
|
this.context = o, this.nodes = {};
|
|
5557
5553
|
const f = (h) => {
|
|
5558
5554
|
var _;
|
|
@@ -5909,8 +5905,8 @@ const Xl = /* @__PURE__ */ me({
|
|
|
5909
5905
|
events: [],
|
|
5910
5906
|
methods: [],
|
|
5911
5907
|
props: {
|
|
5912
|
-
pageCommon: [z, Ln,
|
|
5913
|
-
compCommon: [z, Ln,
|
|
5908
|
+
pageCommon: [z, Ln, mt, ht, vt, yt],
|
|
5909
|
+
compCommon: [z, Ln, mt, ht, vt, yt]
|
|
5914
5910
|
}
|
|
5915
5911
|
}, zl = { key: 0 }, Wl = /* @__PURE__ */ me({
|
|
5916
5912
|
__name: "index",
|
|
@@ -5940,8 +5936,8 @@ const Xl = /* @__PURE__ */ me({
|
|
|
5940
5936
|
}), t = S(() => h.value ? "dark" : "light");
|
|
5941
5937
|
return (e, i) => {
|
|
5942
5938
|
const u = Ae("v-select");
|
|
5943
|
-
return
|
|
5944
|
-
|
|
5939
|
+
return gt(f) === "editor" ? (H(), Je("div", zl, [
|
|
5940
|
+
bt(u, {
|
|
5945
5941
|
"model-value": _.value,
|
|
5946
5942
|
label: b.value,
|
|
5947
5943
|
placeholder: m.value,
|
|
@@ -6039,8 +6035,8 @@ const Xl = /* @__PURE__ */ me({
|
|
|
6039
6035
|
}), r = S(() => h.value ? "dark" : "light");
|
|
6040
6036
|
return (t, e) => {
|
|
6041
6037
|
const i = Ae("v-text-field");
|
|
6042
|
-
return
|
|
6043
|
-
|
|
6038
|
+
return gt(f) === "editor" ? (H(), Je("div", Hl, [
|
|
6039
|
+
bt(i, {
|
|
6044
6040
|
label: _.value,
|
|
6045
6041
|
placeholder: b.value,
|
|
6046
6042
|
"hide-details": m.value,
|
|
@@ -6195,7 +6191,7 @@ export {
|
|
|
6195
6191
|
lr as isPercentStr,
|
|
6196
6192
|
sr as isPixelStr,
|
|
6197
6193
|
vc as loadLocaleMessageRuntime,
|
|
6198
|
-
|
|
6194
|
+
Wt as parsePercentStr,
|
|
6199
6195
|
ac as parsePixelStr,
|
|
6200
6196
|
Pi as pkgs,
|
|
6201
6197
|
fc as provideDark,
|
package/dist/types/element.d.ts
CHANGED
|
@@ -47,16 +47,19 @@ type ZPropBase = {
|
|
|
47
47
|
type ZPropBranch = {
|
|
48
48
|
ui?: undefined;
|
|
49
49
|
children: ZProp[];
|
|
50
|
+
default?: undefined;
|
|
50
51
|
} & ZPropBase;
|
|
51
52
|
type ZPropDummy = {
|
|
52
53
|
ui: 'dummy';
|
|
53
54
|
readonly?: boolean;
|
|
55
|
+
default: string | number | boolean | object;
|
|
54
56
|
} & ZPropBase;
|
|
55
57
|
type ZPropStrInput = {
|
|
56
58
|
ui: 'strInput';
|
|
57
59
|
readonly?: boolean;
|
|
58
60
|
static?: boolean;
|
|
59
61
|
value?: unknown;
|
|
62
|
+
default: string;
|
|
60
63
|
} & ZPropBase;
|
|
61
64
|
type ZPropNumInput = {
|
|
62
65
|
ui: 'numInput';
|
|
@@ -65,83 +68,80 @@ type ZPropNumInput = {
|
|
|
65
68
|
max: number;
|
|
66
69
|
step: number;
|
|
67
70
|
readonly?: boolean;
|
|
71
|
+
default: number;
|
|
68
72
|
} & ZPropBase;
|
|
69
73
|
type ZPropSwitch = {
|
|
70
74
|
ui: 'switch';
|
|
71
75
|
readonly?: boolean;
|
|
76
|
+
default: boolean;
|
|
72
77
|
} & ZPropBase;
|
|
73
78
|
type ZPropSelect = {
|
|
74
79
|
ui: 'select';
|
|
75
80
|
items: ZItem[];
|
|
76
81
|
readonly?: boolean;
|
|
82
|
+
default: string;
|
|
77
83
|
} & ZPropBase;
|
|
78
84
|
type ZPropColorPicker = {
|
|
79
85
|
ui: 'colorPicker';
|
|
80
86
|
readonly?: boolean;
|
|
87
|
+
default: string;
|
|
81
88
|
} & ZPropBase;
|
|
82
89
|
type ZPropMultiTypes = {
|
|
83
90
|
ui: 'multiTypes';
|
|
84
91
|
types: ZType[];
|
|
85
92
|
readonly?: boolean;
|
|
93
|
+
default: string;
|
|
86
94
|
} & ZPropBase;
|
|
87
95
|
type ZPropCompSelect = {
|
|
88
96
|
ui: 'compSelect';
|
|
89
97
|
readonly?: boolean;
|
|
98
|
+
default: string;
|
|
90
99
|
} & ZPropBase;
|
|
91
100
|
export type ZProp = ({
|
|
92
101
|
array?: false;
|
|
93
|
-
default?: undefined;
|
|
94
102
|
} & ZPropBranch) | ({
|
|
95
103
|
array: true;
|
|
96
|
-
|
|
104
|
+
defaultArray: object[];
|
|
97
105
|
} & ZPropBranch) | ({
|
|
98
106
|
array?: false;
|
|
99
|
-
default: string | number | boolean | object;
|
|
100
107
|
} & ZPropDummy) | ({
|
|
101
108
|
array: true;
|
|
102
|
-
|
|
109
|
+
defaultArray: string[] | number[] | boolean | object[];
|
|
103
110
|
} & ZPropDummy) | ({
|
|
104
111
|
array?: false;
|
|
105
|
-
default: string;
|
|
106
112
|
} & ZPropStrInput) | ({
|
|
107
113
|
array: true;
|
|
108
|
-
|
|
114
|
+
defaultArray: string[];
|
|
109
115
|
} & ZPropStrInput) | ({
|
|
110
116
|
array?: false;
|
|
111
|
-
default: number;
|
|
112
117
|
} & ZPropNumInput) | ({
|
|
113
118
|
array: true;
|
|
114
|
-
|
|
119
|
+
defaultArray: number[];
|
|
115
120
|
} & ZPropNumInput) | ({
|
|
116
121
|
array?: false;
|
|
117
|
-
default: boolean;
|
|
118
122
|
} & ZPropSwitch) | ({
|
|
119
123
|
array: true;
|
|
120
|
-
|
|
124
|
+
defaultArray: boolean[];
|
|
121
125
|
} & ZPropSwitch) | ({
|
|
122
126
|
array?: false;
|
|
123
|
-
default: string;
|
|
124
127
|
} & ZPropSelect) | ({
|
|
125
128
|
array: true;
|
|
126
|
-
|
|
129
|
+
defaultArray: string[];
|
|
127
130
|
} & ZPropSelect) | ({
|
|
128
131
|
array?: false;
|
|
129
|
-
default: string;
|
|
130
132
|
} & ZPropColorPicker) | ({
|
|
131
133
|
array: true;
|
|
132
|
-
|
|
134
|
+
defaultArray: string[];
|
|
133
135
|
} & ZPropColorPicker) | ({
|
|
134
136
|
array?: false;
|
|
135
|
-
default: string;
|
|
136
137
|
} & ZPropMultiTypes) | ({
|
|
137
138
|
array: true;
|
|
138
|
-
|
|
139
|
+
defaultArray: string[];
|
|
139
140
|
} & ZPropMultiTypes) | ({
|
|
140
141
|
array?: false;
|
|
141
|
-
default: string;
|
|
142
142
|
} & ZPropCompSelect) | ({
|
|
143
143
|
array: true;
|
|
144
|
-
|
|
144
|
+
defaultArray: string[];
|
|
145
145
|
} & ZPropCompSelect);
|
|
146
146
|
export type ZProps = {
|
|
147
147
|
[key: string]: ZProp[];
|
package/dist/utils/prop.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ZProp } from '../types';
|
|
2
2
|
export declare function getPropTag(type: string, subtype: string): string | undefined;
|
|
3
|
-
export declare function getPropDefault(prop: ZProp): unknown;
|
|
3
|
+
export declare function getPropDefault(prop: ZProp, arrayEntry?: boolean): unknown;
|
|
4
4
|
export declare function initProps(node: any, props: ZProp[]): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-runtime-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"js-interpreter": "^5.1.2",
|
|
26
26
|
"lodash-es": "^4.17.21",
|
|
27
|
-
"x-essential-lib": "^0.7.
|
|
27
|
+
"x-essential-lib": "^0.7.10"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"vue": "^3.5.12",
|