@gisce/ooui 0.20.0 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Time.d.ts +9 -0
- package/dist/Time.d.ts.map +1 -0
- package/dist/Tree.d.ts +2 -0
- package/dist/Tree.d.ts.map +1 -1
- package/dist/WidgetFactory.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/ooui.es.js +474 -462
- package/dist/ooui.es.js.map +1 -1
- package/dist/ooui.umd.js +5 -5
- package/dist/ooui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/Time.ts +12 -0
- package/src/Tree.ts +9 -0
- package/src/WidgetFactory.ts +4 -0
- package/src/index.ts +2 -0
- package/src/spec/Tree.spec.ts +3 -1
- package/src/spec/WidgetFactory.spec.ts +10 -1
package/dist/ooui.es.js
CHANGED
|
@@ -102,14 +102,14 @@ const Ci = ({
|
|
|
102
102
|
default:
|
|
103
103
|
return !1;
|
|
104
104
|
}
|
|
105
|
-
},
|
|
105
|
+
}, q = (t) => Ti(t, { level: "xml" }), Ai = ({
|
|
106
106
|
attrs: t,
|
|
107
107
|
values: e,
|
|
108
108
|
fields: r
|
|
109
109
|
}) => {
|
|
110
|
-
const u = t.replace(/\(/g, "[").replace(/\)/g, "]").replace(/\'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), f =
|
|
111
|
-
for (const w of Object.keys(
|
|
112
|
-
|
|
110
|
+
const u = t.replace(/\(/g, "[").replace(/\)/g, "]").replace(/\'/g, '"').replace(/True/g, "true").replace(/False/g, "false"), f = q(u), _ = JSON.parse(f), b = {};
|
|
111
|
+
for (const w of Object.keys(_))
|
|
112
|
+
_[w].map((S) => Ci({ entry: S, values: e, fields: r })).every((S) => S === !0) && (b[w] = !0);
|
|
113
113
|
return b;
|
|
114
114
|
}, Fi = ({
|
|
115
115
|
tagAttributes: t,
|
|
@@ -125,7 +125,7 @@ const Ci = ({
|
|
|
125
125
|
};
|
|
126
126
|
class U extends Te {
|
|
127
127
|
constructor(e) {
|
|
128
|
-
super(e), this._id = "", this._label = "", this._nolabel = !1, this._required = !1, this._activated = !0, this._selectionValues = /* @__PURE__ */ new Map([]), this._activated = !0, e && (e.name && (this._id = e.name), e.activated && (this._activated = e.activated), e.string && (this._label =
|
|
128
|
+
super(e), this._id = "", this._label = "", this._nolabel = !1, this._required = !1, this._activated = !0, this._selectionValues = /* @__PURE__ */ new Map([]), this._activated = !0, e && (e.name && (this._id = e.name), e.activated && (this._activated = e.activated), e.string && (this._label = q(e.string)), e.help && (this._tooltip = q(e.help)), e.nolabel && (e.nolabel === "1" || typeof e.nolabel == "boolean" && e.nolabel === !0) && (this._nolabel = !0), e.required && (e.required === "1" || e.required === !0 || e.required === "True") && (this._required = !0), e.sum && (this._sum = e.sum), e.selection && (this._selectionValues = new Map(e.selection)));
|
|
129
129
|
}
|
|
130
130
|
get id() {
|
|
131
131
|
return this._id;
|
|
@@ -303,7 +303,7 @@ const qe = class extends Te {
|
|
|
303
303
|
qe._defaultColspan,
|
|
304
304
|
this.readOnly,
|
|
305
305
|
t && t.key
|
|
306
|
-
), t && (t.name && (this._id = t.name), t.colspan ? this._container.colspan = +t.colspan : this._mustExpand = !0, t.string && (this._label =
|
|
306
|
+
), t && (t.name && (this._id = t.name), t.colspan ? this._container.colspan = +t.colspan : this._mustExpand = !0, t.string && (this._label = q(t.string)));
|
|
307
307
|
}
|
|
308
308
|
get id() {
|
|
309
309
|
return this._id;
|
|
@@ -397,7 +397,7 @@ class ki extends U {
|
|
|
397
397
|
...e,
|
|
398
398
|
nolabel: (e == null ? void 0 : e.nolabel) !== void 0 ? e.nolabel : !0
|
|
399
399
|
}), this._buttonType = "workflow", this._caption = "", this._confirmMessage = "", this._primary = !1, this._danger = !1, e) {
|
|
400
|
-
if (e.string && (this._caption =
|
|
400
|
+
if (e.string && (this._caption = q(e.string)), e.buttonType && (this._buttonType = e.buttonType), e.confirm && (this._confirmMessage = q(e.confirm)), e.special && e.special === "cancel" && (this._buttonType = "cancel"), e.icon && (this._icon = e.icon), e.primary) {
|
|
401
401
|
const r = e.primary;
|
|
402
402
|
(r === "1" || r === 1 || r === !0) && (this._primary = !0);
|
|
403
403
|
}
|
|
@@ -497,7 +497,7 @@ class wt extends U {
|
|
|
497
497
|
class Ut extends U {
|
|
498
498
|
constructor(e) {
|
|
499
499
|
if (super(e), this._placeholder = "", this._mustExpand = !1, this._translatable = !1, e) {
|
|
500
|
-
if (e.placeholder && (this._placeholder =
|
|
500
|
+
if (e.placeholder && (this._placeholder = q(e.placeholder)), e.colspan || (this._mustExpand = !0), e.height)
|
|
501
501
|
try {
|
|
502
502
|
this._height = parseInt(e.height);
|
|
503
503
|
} catch {
|
|
@@ -671,7 +671,7 @@ class Tr extends U {
|
|
|
671
671
|
}
|
|
672
672
|
class zi extends Te {
|
|
673
673
|
constructor(e) {
|
|
674
|
-
super(e), this._label = "", this._icon = null, e && (e.string && (this._label =
|
|
674
|
+
super(e), this._label = "", this._icon = null, e && (e.string && (this._label = q(e.string)), e.icon && (this._icon = e.icon));
|
|
675
675
|
}
|
|
676
676
|
get label() {
|
|
677
677
|
return this._label;
|
|
@@ -838,6 +838,11 @@ class tn extends Ut {
|
|
|
838
838
|
this._lang = e;
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
|
+
class rn extends U {
|
|
842
|
+
constructor(e) {
|
|
843
|
+
super(e);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
841
846
|
class jt {
|
|
842
847
|
setWidgetClass(e) {
|
|
843
848
|
switch (e) {
|
|
@@ -956,6 +961,9 @@ class jt {
|
|
|
956
961
|
case "codeeditor":
|
|
957
962
|
this._widgetClass = tn;
|
|
958
963
|
break;
|
|
964
|
+
case "time":
|
|
965
|
+
this._widgetClass = rn;
|
|
966
|
+
break;
|
|
959
967
|
}
|
|
960
968
|
}
|
|
961
969
|
createWidget(e, r) {
|
|
@@ -976,7 +984,7 @@ class jt {
|
|
|
976
984
|
}
|
|
977
985
|
}
|
|
978
986
|
}
|
|
979
|
-
const
|
|
987
|
+
const nn = ({
|
|
980
988
|
fieldName: t,
|
|
981
989
|
values: e,
|
|
982
990
|
fields: r
|
|
@@ -991,17 +999,17 @@ const rn = ({
|
|
|
991
999
|
for (const u of Object.keys(n))
|
|
992
1000
|
if (e.state === u) {
|
|
993
1001
|
const f = n[u];
|
|
994
|
-
for (const
|
|
995
|
-
const [b, w] =
|
|
1002
|
+
for (const _ of f) {
|
|
1003
|
+
const [b, w] = _;
|
|
996
1004
|
a[b] || (a[b] = []), a[b].push(w);
|
|
997
1005
|
}
|
|
998
1006
|
}
|
|
999
1007
|
for (const u of Object.keys(a)) {
|
|
1000
1008
|
const f = a[u];
|
|
1001
|
-
s[u] = f.some((
|
|
1009
|
+
s[u] = f.some((_) => _ === !0);
|
|
1002
1010
|
}
|
|
1003
1011
|
return s;
|
|
1004
|
-
},
|
|
1012
|
+
}, an = ({
|
|
1005
1013
|
states: t,
|
|
1006
1014
|
values: e
|
|
1007
1015
|
}) => {
|
|
@@ -1010,7 +1018,7 @@ const rn = ({
|
|
|
1010
1018
|
const r = t.split(",");
|
|
1011
1019
|
return r.length === 0 ? {} : r.includes(e.state) ? {} : { invisible: !0 };
|
|
1012
1020
|
};
|
|
1013
|
-
function
|
|
1021
|
+
function sn({
|
|
1014
1022
|
values: t = {},
|
|
1015
1023
|
fieldName: e,
|
|
1016
1024
|
fields: r = {}
|
|
@@ -1019,7 +1027,7 @@ function an({
|
|
|
1019
1027
|
const n = ((i = r[e]) == null ? void 0 : i.type) || "passthrough";
|
|
1020
1028
|
return n === "many2one" ? t[e] ? t[e][0] || null : !1 : n === "one2many" || n === "many2many" ? t[e].map((s) => s.id) : t != null && t[e] ? t == null ? void 0 : t[e] : e.indexOf("'") !== -1 ? e : parseInt(e);
|
|
1021
1029
|
}
|
|
1022
|
-
const
|
|
1030
|
+
const on = ({
|
|
1023
1031
|
context: t,
|
|
1024
1032
|
values: e,
|
|
1025
1033
|
fields: r
|
|
@@ -1027,45 +1035,45 @@ const sn = ({
|
|
|
1027
1035
|
try {
|
|
1028
1036
|
if (!t)
|
|
1029
1037
|
return;
|
|
1030
|
-
if (
|
|
1038
|
+
if (un(t) || typeof t != "string")
|
|
1031
1039
|
return t;
|
|
1032
|
-
const s =
|
|
1040
|
+
const s = ln(t);
|
|
1033
1041
|
if (s !== null)
|
|
1034
1042
|
return s;
|
|
1035
1043
|
if (t.trim().length === 0)
|
|
1036
1044
|
return;
|
|
1037
1045
|
var i = t.replace(/\"/g, "'").replace(/\s/g, "").replace(/True/g, "true"), n = i.replace(/False/g, "false");
|
|
1038
|
-
const w = n.replace(/\{/g, "").replace(/\}/g, "").split(",").map((m) => m.split(":")),
|
|
1046
|
+
const w = n.replace(/\{/g, "").replace(/\}/g, "").split(",").map((m) => m.split(":")), g = {};
|
|
1039
1047
|
return w.forEach((m) => {
|
|
1040
1048
|
const E = m[1];
|
|
1041
1049
|
if (m[1].indexOf("'") === -1 && m[1] !== "true" && m[1] !== "false") {
|
|
1042
|
-
const S =
|
|
1050
|
+
const S = sn({
|
|
1043
1051
|
values: e,
|
|
1044
1052
|
fields: r,
|
|
1045
1053
|
fieldName: E === "active_id" ? "id" : E
|
|
1046
1054
|
});
|
|
1047
|
-
|
|
1055
|
+
g[m[0].replace(/'/g, "")] = S || void 0;
|
|
1048
1056
|
} else
|
|
1049
|
-
m[1] === "true" ?
|
|
1057
|
+
m[1] === "true" ? g[m[0].replace(/'/g, "")] = !0 : m[1] === "false" ? g[m[0].replace(/'/g, "")] = !1 : g[m[0].replace(/'/g, "")] = m[1].replace(
|
|
1050
1058
|
/'/g,
|
|
1051
1059
|
""
|
|
1052
1060
|
);
|
|
1053
|
-
}),
|
|
1061
|
+
}), g;
|
|
1054
1062
|
} catch {
|
|
1055
1063
|
return;
|
|
1056
1064
|
}
|
|
1057
1065
|
};
|
|
1058
|
-
function
|
|
1066
|
+
function ln(t) {
|
|
1059
1067
|
try {
|
|
1060
1068
|
return JSON.parse(t);
|
|
1061
1069
|
} catch {
|
|
1062
1070
|
return null;
|
|
1063
1071
|
}
|
|
1064
1072
|
}
|
|
1065
|
-
function
|
|
1073
|
+
function un(t) {
|
|
1066
1074
|
return typeof t == "object" && t !== null && typeof t != "string";
|
|
1067
1075
|
}
|
|
1068
|
-
const
|
|
1076
|
+
const fn = (t) => {
|
|
1069
1077
|
const e = t.trim().replace(")", "").split("("), r = e[0], n = e[1].split(",").map((s) => s.trim());
|
|
1070
1078
|
return {
|
|
1071
1079
|
method: r,
|
|
@@ -1074,14 +1082,14 @@ const un = (t) => {
|
|
|
1074
1082
|
};
|
|
1075
1083
|
function rt(t, e) {
|
|
1076
1084
|
e = e || {};
|
|
1077
|
-
var r = e.pos || 0, i = !!e.keepComments, n = !!e.keepWhitespace, s = "<", a = "<".charCodeAt(0), u = ">", f = ">".charCodeAt(0),
|
|
1085
|
+
var r = e.pos || 0, i = !!e.keepComments, n = !!e.keepWhitespace, s = "<", a = "<".charCodeAt(0), u = ">", f = ">".charCodeAt(0), _ = "-".charCodeAt(0), b = "/".charCodeAt(0), w = "!".charCodeAt(0), g = "'".charCodeAt(0), m = '"'.charCodeAt(0), E = "[".charCodeAt(0), S = "]".charCodeAt(0);
|
|
1078
1086
|
function F(A) {
|
|
1079
1087
|
for (var B = []; t[r]; )
|
|
1080
1088
|
if (t.charCodeAt(r) == a) {
|
|
1081
1089
|
if (t.charCodeAt(r + 1) === b) {
|
|
1082
|
-
var
|
|
1090
|
+
var $ = r + 2;
|
|
1083
1091
|
r = t.indexOf(u, r);
|
|
1084
|
-
var Z = t.substring(
|
|
1092
|
+
var Z = t.substring($, r);
|
|
1085
1093
|
if (Z.indexOf(A) == -1) {
|
|
1086
1094
|
var H = t.substring(0, r).split(`
|
|
1087
1095
|
`);
|
|
@@ -1094,9 +1102,9 @@ Char: ` + t[r]
|
|
|
1094
1102
|
}
|
|
1095
1103
|
return r + 1 && (r += 1), B;
|
|
1096
1104
|
} else if (t.charCodeAt(r + 1) === w) {
|
|
1097
|
-
if (t.charCodeAt(r + 2) ==
|
|
1105
|
+
if (t.charCodeAt(r + 2) == _) {
|
|
1098
1106
|
const ee = r;
|
|
1099
|
-
for (; r !== -1 && !(t.charCodeAt(r) === f && t.charCodeAt(r - 1) ==
|
|
1107
|
+
for (; r !== -1 && !(t.charCodeAt(r) === f && t.charCodeAt(r - 1) == _ && t.charCodeAt(r - 2) == _ && r != -1); )
|
|
1100
1108
|
r = t.indexOf(u, r + 1);
|
|
1101
1109
|
r === -1 && (r = t.length), i && B.push(t.substring(ee, r + 1));
|
|
1102
1110
|
} else if (t.charCodeAt(r + 2) === E && t.charCodeAt(r + 8) === E && t.substr(r + 3, 5).toLowerCase() === "cdata") {
|
|
@@ -1142,19 +1150,19 @@ Char: ` + t[r]
|
|
|
1142
1150
|
function D() {
|
|
1143
1151
|
r++;
|
|
1144
1152
|
const A = R(), B = {};
|
|
1145
|
-
let
|
|
1153
|
+
let $ = [];
|
|
1146
1154
|
for (; t.charCodeAt(r) !== f && t[r]; ) {
|
|
1147
1155
|
var Z = t.charCodeAt(r);
|
|
1148
1156
|
if (Z > 64 && Z < 91 || Z > 96 && Z < 123) {
|
|
1149
|
-
for (var H = R(), j = t.charCodeAt(r); j && j !==
|
|
1157
|
+
for (var H = R(), j = t.charCodeAt(r); j && j !== g && j !== m && !(j > 64 && j < 91 || j > 96 && j < 123) && j !== f; )
|
|
1150
1158
|
r++, j = t.charCodeAt(r);
|
|
1151
|
-
if (j ===
|
|
1159
|
+
if (j === g || j === m) {
|
|
1152
1160
|
var G = W();
|
|
1153
1161
|
if (r === -1)
|
|
1154
1162
|
return {
|
|
1155
1163
|
tagName: A,
|
|
1156
1164
|
attributes: B,
|
|
1157
|
-
children:
|
|
1165
|
+
children: $
|
|
1158
1166
|
};
|
|
1159
1167
|
} else
|
|
1160
1168
|
G = null, r--;
|
|
@@ -1165,18 +1173,18 @@ Char: ` + t[r]
|
|
|
1165
1173
|
if (t.charCodeAt(r - 1) !== b)
|
|
1166
1174
|
if (A == "script") {
|
|
1167
1175
|
var J = r + 1;
|
|
1168
|
-
r = t.indexOf("<\/script>", r),
|
|
1176
|
+
r = t.indexOf("<\/script>", r), $ = [t.slice(J, r)], r += 9;
|
|
1169
1177
|
} else if (A == "style") {
|
|
1170
1178
|
var J = r + 1;
|
|
1171
|
-
r = t.indexOf("</style>", r),
|
|
1179
|
+
r = t.indexOf("</style>", r), $ = [t.slice(J, r)], r += 8;
|
|
1172
1180
|
} else
|
|
1173
|
-
C.indexOf(A) === -1 ? (r++,
|
|
1181
|
+
C.indexOf(A) === -1 ? (r++, $ = F(A)) : r++;
|
|
1174
1182
|
else
|
|
1175
1183
|
r++;
|
|
1176
1184
|
return {
|
|
1177
1185
|
tagName: A,
|
|
1178
1186
|
attributes: B,
|
|
1179
|
-
children:
|
|
1187
|
+
children: $
|
|
1180
1188
|
};
|
|
1181
1189
|
}
|
|
1182
1190
|
function W() {
|
|
@@ -1247,7 +1255,7 @@ function Mr(t) {
|
|
|
1247
1255
|
}
|
|
1248
1256
|
}
|
|
1249
1257
|
}
|
|
1250
|
-
function
|
|
1258
|
+
function cn(t) {
|
|
1251
1259
|
if (ue === clearTimeout)
|
|
1252
1260
|
return clearTimeout(t);
|
|
1253
1261
|
if ((ue === Dr || !ue) && clearTimeout)
|
|
@@ -1263,22 +1271,22 @@ function fn(t) {
|
|
|
1263
1271
|
}
|
|
1264
1272
|
}
|
|
1265
1273
|
var ae = [], Ee = !1, de, $e = -1;
|
|
1266
|
-
function
|
|
1274
|
+
function hn() {
|
|
1267
1275
|
!Ee || !de || (Ee = !1, de.length ? ae = de.concat(ae) : $e = -1, ae.length && kr());
|
|
1268
1276
|
}
|
|
1269
1277
|
function kr() {
|
|
1270
1278
|
if (!Ee) {
|
|
1271
|
-
var t = Mr(
|
|
1279
|
+
var t = Mr(hn);
|
|
1272
1280
|
Ee = !0;
|
|
1273
1281
|
for (var e = ae.length; e; ) {
|
|
1274
1282
|
for (de = ae, ae = []; ++$e < e; )
|
|
1275
1283
|
de && de[$e].run();
|
|
1276
1284
|
$e = -1, e = ae.length;
|
|
1277
1285
|
}
|
|
1278
|
-
de = null, Ee = !1,
|
|
1286
|
+
de = null, Ee = !1, cn(t);
|
|
1279
1287
|
}
|
|
1280
1288
|
}
|
|
1281
|
-
function
|
|
1289
|
+
function dn(t) {
|
|
1282
1290
|
var e = new Array(arguments.length - 1);
|
|
1283
1291
|
if (arguments.length > 1)
|
|
1284
1292
|
for (var r = 1; r < arguments.length; r++)
|
|
@@ -1291,58 +1299,58 @@ function Pr(t, e) {
|
|
|
1291
1299
|
Pr.prototype.run = function() {
|
|
1292
1300
|
this.fun.apply(null, this.array);
|
|
1293
1301
|
};
|
|
1294
|
-
var
|
|
1295
|
-
function
|
|
1302
|
+
var _n = "browser", gn = "browser", pn = !0, yn = {}, wn = [], bn = "", mn = {}, vn = {}, En = {};
|
|
1303
|
+
function ge() {
|
|
1296
1304
|
}
|
|
1297
|
-
var
|
|
1298
|
-
function
|
|
1305
|
+
var xn = ge, Rn = ge, Sn = ge, Tn = ge, Cn = ge, An = ge, Fn = ge;
|
|
1306
|
+
function On(t) {
|
|
1299
1307
|
throw new Error("process.binding is not supported");
|
|
1300
1308
|
}
|
|
1301
|
-
function
|
|
1309
|
+
function Dn() {
|
|
1302
1310
|
return "/";
|
|
1303
1311
|
}
|
|
1304
|
-
function
|
|
1312
|
+
function Mn(t) {
|
|
1305
1313
|
throw new Error("process.chdir is not supported");
|
|
1306
1314
|
}
|
|
1307
|
-
function
|
|
1315
|
+
function kn() {
|
|
1308
1316
|
return 0;
|
|
1309
1317
|
}
|
|
1310
|
-
var ve = xe.performance || {},
|
|
1318
|
+
var ve = xe.performance || {}, Pn = ve.now || ve.mozNow || ve.msNow || ve.oNow || ve.webkitNow || function() {
|
|
1311
1319
|
return new Date().getTime();
|
|
1312
1320
|
};
|
|
1313
|
-
function
|
|
1314
|
-
var e =
|
|
1321
|
+
function Nn(t) {
|
|
1322
|
+
var e = Pn.call(ve) * 1e-3, r = Math.floor(e), i = Math.floor(e % 1 * 1e9);
|
|
1315
1323
|
return t && (r = r - t[0], i = i - t[1], i < 0 && (r--, i += 1e9)), [r, i];
|
|
1316
1324
|
}
|
|
1317
|
-
var
|
|
1318
|
-
function
|
|
1319
|
-
var t = new Date(), e = t -
|
|
1325
|
+
var In = new Date();
|
|
1326
|
+
function Bn() {
|
|
1327
|
+
var t = new Date(), e = t - In;
|
|
1320
1328
|
return e / 1e3;
|
|
1321
1329
|
}
|
|
1322
1330
|
var N = {
|
|
1323
|
-
nextTick:
|
|
1324
|
-
title:
|
|
1325
|
-
browser:
|
|
1326
|
-
env:
|
|
1327
|
-
argv:
|
|
1328
|
-
version:
|
|
1329
|
-
versions:
|
|
1330
|
-
on:
|
|
1331
|
-
addListener:
|
|
1332
|
-
once:
|
|
1333
|
-
off:
|
|
1334
|
-
removeListener:
|
|
1335
|
-
removeAllListeners:
|
|
1336
|
-
emit:
|
|
1337
|
-
binding:
|
|
1338
|
-
cwd:
|
|
1339
|
-
chdir:
|
|
1340
|
-
umask:
|
|
1341
|
-
hrtime:
|
|
1331
|
+
nextTick: dn,
|
|
1332
|
+
title: _n,
|
|
1333
|
+
browser: pn,
|
|
1334
|
+
env: yn,
|
|
1335
|
+
argv: wn,
|
|
1336
|
+
version: bn,
|
|
1337
|
+
versions: mn,
|
|
1338
|
+
on: xn,
|
|
1339
|
+
addListener: Rn,
|
|
1340
|
+
once: Sn,
|
|
1341
|
+
off: Tn,
|
|
1342
|
+
removeListener: Cn,
|
|
1343
|
+
removeAllListeners: An,
|
|
1344
|
+
emit: Fn,
|
|
1345
|
+
binding: On,
|
|
1346
|
+
cwd: Dn,
|
|
1347
|
+
chdir: Mn,
|
|
1348
|
+
umask: kn,
|
|
1349
|
+
hrtime: Nn,
|
|
1342
1350
|
platform: gn,
|
|
1343
|
-
release:
|
|
1344
|
-
config:
|
|
1345
|
-
uptime:
|
|
1351
|
+
release: vn,
|
|
1352
|
+
config: En,
|
|
1353
|
+
uptime: Bn
|
|
1346
1354
|
}, Ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1347
1355
|
function Yt(t) {
|
|
1348
1356
|
var e = t.default;
|
|
@@ -1364,67 +1372,67 @@ function Yt(t) {
|
|
|
1364
1372
|
}), r;
|
|
1365
1373
|
}
|
|
1366
1374
|
var zt = { exports: {} }, Mt = { exports: {} };
|
|
1367
|
-
const
|
|
1375
|
+
const Ln = {}, Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1368
1376
|
__proto__: null,
|
|
1369
|
-
default:
|
|
1370
|
-
}, Symbol.toStringTag, { value: "Module" })), Nr = /* @__PURE__ */ Yt(
|
|
1371
|
-
var Ir = Nr.EventEmitter, te = [], K = [],
|
|
1377
|
+
default: Ln
|
|
1378
|
+
}, Symbol.toStringTag, { value: "Module" })), Nr = /* @__PURE__ */ Yt(Un);
|
|
1379
|
+
var Ir = Nr.EventEmitter, te = [], K = [], Wn = typeof Uint8Array < "u" ? Uint8Array : Array, qt = !1;
|
|
1372
1380
|
function Br() {
|
|
1373
1381
|
qt = !0;
|
|
1374
1382
|
for (var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = 0, r = t.length; e < r; ++e)
|
|
1375
1383
|
te[e] = t[e], K[t.charCodeAt(e)] = e;
|
|
1376
1384
|
K["-".charCodeAt(0)] = 62, K["_".charCodeAt(0)] = 63;
|
|
1377
1385
|
}
|
|
1378
|
-
function
|
|
1386
|
+
function jn(t) {
|
|
1379
1387
|
qt || Br();
|
|
1380
1388
|
var e, r, i, n, s, a, u = t.length;
|
|
1381
1389
|
if (u % 4 > 0)
|
|
1382
1390
|
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
1383
|
-
s = t[u - 2] === "=" ? 2 : t[u - 1] === "=" ? 1 : 0, a = new
|
|
1391
|
+
s = t[u - 2] === "=" ? 2 : t[u - 1] === "=" ? 1 : 0, a = new Wn(u * 3 / 4 - s), i = s > 0 ? u - 4 : u;
|
|
1384
1392
|
var f = 0;
|
|
1385
1393
|
for (e = 0, r = 0; e < i; e += 4, r += 3)
|
|
1386
1394
|
n = K[t.charCodeAt(e)] << 18 | K[t.charCodeAt(e + 1)] << 12 | K[t.charCodeAt(e + 2)] << 6 | K[t.charCodeAt(e + 3)], a[f++] = n >> 16 & 255, a[f++] = n >> 8 & 255, a[f++] = n & 255;
|
|
1387
1395
|
return s === 2 ? (n = K[t.charCodeAt(e)] << 2 | K[t.charCodeAt(e + 1)] >> 4, a[f++] = n & 255) : s === 1 && (n = K[t.charCodeAt(e)] << 10 | K[t.charCodeAt(e + 1)] << 4 | K[t.charCodeAt(e + 2)] >> 2, a[f++] = n >> 8 & 255, a[f++] = n & 255), a;
|
|
1388
1396
|
}
|
|
1389
|
-
function
|
|
1397
|
+
function Yn(t) {
|
|
1390
1398
|
return te[t >> 18 & 63] + te[t >> 12 & 63] + te[t >> 6 & 63] + te[t & 63];
|
|
1391
1399
|
}
|
|
1392
|
-
function
|
|
1400
|
+
function zn(t, e, r) {
|
|
1393
1401
|
for (var i, n = [], s = e; s < r; s += 3)
|
|
1394
|
-
i = (t[s] << 16) + (t[s + 1] << 8) + t[s + 2], n.push(
|
|
1402
|
+
i = (t[s] << 16) + (t[s + 1] << 8) + t[s + 2], n.push(Yn(i));
|
|
1395
1403
|
return n.join("");
|
|
1396
1404
|
}
|
|
1397
1405
|
function ir(t) {
|
|
1398
1406
|
qt || Br();
|
|
1399
1407
|
for (var e, r = t.length, i = r % 3, n = "", s = [], a = 16383, u = 0, f = r - i; u < f; u += a)
|
|
1400
|
-
s.push(
|
|
1408
|
+
s.push(zn(t, u, u + a > f ? f : u + a));
|
|
1401
1409
|
return i === 1 ? (e = t[r - 1], n += te[e >> 2], n += te[e << 4 & 63], n += "==") : i === 2 && (e = (t[r - 2] << 8) + t[r - 1], n += te[e >> 10], n += te[e >> 4 & 63], n += te[e << 2 & 63], n += "="), s.push(n), s.join("");
|
|
1402
1410
|
}
|
|
1403
1411
|
function it(t, e, r, i, n) {
|
|
1404
|
-
var s, a, u = n * 8 - i - 1, f = (1 << u) - 1,
|
|
1405
|
-
for (w +=
|
|
1412
|
+
var s, a, u = n * 8 - i - 1, f = (1 << u) - 1, _ = f >> 1, b = -7, w = r ? n - 1 : 0, g = r ? -1 : 1, m = t[e + w];
|
|
1413
|
+
for (w += g, s = m & (1 << -b) - 1, m >>= -b, b += u; b > 0; s = s * 256 + t[e + w], w += g, b -= 8)
|
|
1406
1414
|
;
|
|
1407
|
-
for (a = s & (1 << -b) - 1, s >>= -b, b += i; b > 0; a = a * 256 + t[e + w], w +=
|
|
1415
|
+
for (a = s & (1 << -b) - 1, s >>= -b, b += i; b > 0; a = a * 256 + t[e + w], w += g, b -= 8)
|
|
1408
1416
|
;
|
|
1409
1417
|
if (s === 0)
|
|
1410
|
-
s = 1 -
|
|
1418
|
+
s = 1 - _;
|
|
1411
1419
|
else {
|
|
1412
1420
|
if (s === f)
|
|
1413
1421
|
return a ? NaN : (m ? -1 : 1) * (1 / 0);
|
|
1414
|
-
a = a + Math.pow(2, i), s = s -
|
|
1422
|
+
a = a + Math.pow(2, i), s = s - _;
|
|
1415
1423
|
}
|
|
1416
1424
|
return (m ? -1 : 1) * a * Math.pow(2, s - i);
|
|
1417
1425
|
}
|
|
1418
1426
|
function Lr(t, e, r, i, n, s) {
|
|
1419
|
-
var a, u, f,
|
|
1420
|
-
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (u = isNaN(e) ? 1 : 0, a = b) : (a = Math.floor(Math.log(e) / Math.LN2), e * (f = Math.pow(2, -a)) < 1 && (a--, f *= 2), a + w >= 1 ? e +=
|
|
1427
|
+
var a, u, f, _ = s * 8 - n - 1, b = (1 << _) - 1, w = b >> 1, g = n === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, m = i ? 0 : s - 1, E = i ? 1 : -1, S = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
1428
|
+
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (u = isNaN(e) ? 1 : 0, a = b) : (a = Math.floor(Math.log(e) / Math.LN2), e * (f = Math.pow(2, -a)) < 1 && (a--, f *= 2), a + w >= 1 ? e += g / f : e += g * Math.pow(2, 1 - w), e * f >= 2 && (a++, f /= 2), a + w >= b ? (u = 0, a = b) : a + w >= 1 ? (u = (e * f - 1) * Math.pow(2, n), a = a + w) : (u = e * Math.pow(2, w - 1) * Math.pow(2, n), a = 0)); n >= 8; t[r + m] = u & 255, m += E, u /= 256, n -= 8)
|
|
1421
1429
|
;
|
|
1422
|
-
for (a = a << n | u,
|
|
1430
|
+
for (a = a << n | u, _ += n; _ > 0; t[r + m] = a & 255, m += E, a /= 256, _ -= 8)
|
|
1423
1431
|
;
|
|
1424
1432
|
t[r + m - E] |= S * 128;
|
|
1425
1433
|
}
|
|
1426
|
-
var
|
|
1427
|
-
return
|
|
1434
|
+
var qn = {}.toString, Ur = Array.isArray || function(t) {
|
|
1435
|
+
return qn.call(t) == "[object Array]";
|
|
1428
1436
|
};
|
|
1429
1437
|
/*!
|
|
1430
1438
|
* The buffer module from node.js, for the browser.
|
|
@@ -1434,7 +1442,7 @@ var zn = {}.toString, Ur = Array.isArray || function(t) {
|
|
|
1434
1442
|
*/
|
|
1435
1443
|
var Wr = 50;
|
|
1436
1444
|
y.TYPED_ARRAY_SUPPORT = xe.TYPED_ARRAY_SUPPORT !== void 0 ? xe.TYPED_ARRAY_SUPPORT : !0;
|
|
1437
|
-
var
|
|
1445
|
+
var Vn = Xe();
|
|
1438
1446
|
function Xe() {
|
|
1439
1447
|
return y.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
|
|
1440
1448
|
}
|
|
@@ -1462,7 +1470,7 @@ y._augment = function(t) {
|
|
|
1462
1470
|
function jr(t, e, r, i) {
|
|
1463
1471
|
if (typeof e == "number")
|
|
1464
1472
|
throw new TypeError('"value" argument must not be a number');
|
|
1465
|
-
return typeof ArrayBuffer < "u" && e instanceof ArrayBuffer ?
|
|
1473
|
+
return typeof ArrayBuffer < "u" && e instanceof ArrayBuffer ? Gn(t, e, r, i) : typeof e == "string" ? Hn(t, e, r) : Jn(t, e);
|
|
1466
1474
|
}
|
|
1467
1475
|
y.from = function(t, e, r) {
|
|
1468
1476
|
return jr(null, t, e, r);
|
|
@@ -1474,11 +1482,11 @@ function Yr(t) {
|
|
|
1474
1482
|
if (t < 0)
|
|
1475
1483
|
throw new RangeError('"size" argument must not be negative');
|
|
1476
1484
|
}
|
|
1477
|
-
function
|
|
1485
|
+
function $n(t, e, r, i) {
|
|
1478
1486
|
return Yr(e), e <= 0 ? se(t, e) : r !== void 0 ? typeof i == "string" ? se(t, e).fill(r, i) : se(t, e).fill(r) : se(t, e);
|
|
1479
1487
|
}
|
|
1480
1488
|
y.alloc = function(t, e, r) {
|
|
1481
|
-
return
|
|
1489
|
+
return $n(null, t, e, r);
|
|
1482
1490
|
};
|
|
1483
1491
|
function Vt(t, e) {
|
|
1484
1492
|
if (Yr(e), t = se(t, e < 0 ? 0 : $t(e) | 0), !y.TYPED_ARRAY_SUPPORT)
|
|
@@ -1492,7 +1500,7 @@ y.allocUnsafe = function(t) {
|
|
|
1492
1500
|
y.allocUnsafeSlow = function(t) {
|
|
1493
1501
|
return Vt(null, t);
|
|
1494
1502
|
};
|
|
1495
|
-
function
|
|
1503
|
+
function Hn(t, e, r) {
|
|
1496
1504
|
if ((typeof r != "string" || r === "") && (r = "utf8"), !y.isEncoding(r))
|
|
1497
1505
|
throw new TypeError('"encoding" must be a valid string encoding');
|
|
1498
1506
|
var i = zr(e, r) | 0;
|
|
@@ -1507,14 +1515,14 @@ function kt(t, e) {
|
|
|
1507
1515
|
t[i] = e[i] & 255;
|
|
1508
1516
|
return t;
|
|
1509
1517
|
}
|
|
1510
|
-
function
|
|
1518
|
+
function Gn(t, e, r, i) {
|
|
1511
1519
|
if (e.byteLength, r < 0 || e.byteLength < r)
|
|
1512
1520
|
throw new RangeError("'offset' is out of bounds");
|
|
1513
1521
|
if (e.byteLength < r + (i || 0))
|
|
1514
1522
|
throw new RangeError("'length' is out of bounds");
|
|
1515
1523
|
return r === void 0 && i === void 0 ? e = new Uint8Array(e) : i === void 0 ? e = new Uint8Array(e, r) : e = new Uint8Array(e, r, i), y.TYPED_ARRAY_SUPPORT ? (t = e, t.__proto__ = y.prototype) : t = kt(t, e), t;
|
|
1516
1524
|
}
|
|
1517
|
-
function
|
|
1525
|
+
function Jn(t, e) {
|
|
1518
1526
|
if (ne(e)) {
|
|
1519
1527
|
var r = $t(e.length) | 0;
|
|
1520
1528
|
return t = se(t, r), t.length === 0 || e.copy(t, 0, 0, r), t;
|
|
@@ -1532,7 +1540,7 @@ function $t(t) {
|
|
|
1532
1540
|
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + Xe().toString(16) + " bytes");
|
|
1533
1541
|
return t | 0;
|
|
1534
1542
|
}
|
|
1535
|
-
function
|
|
1543
|
+
function Kn(t) {
|
|
1536
1544
|
return +t != t && (t = 0), y.alloc(+t);
|
|
1537
1545
|
}
|
|
1538
1546
|
y.isBuffer = Xr;
|
|
@@ -1622,29 +1630,29 @@ function zr(t, e) {
|
|
|
1622
1630
|
}
|
|
1623
1631
|
}
|
|
1624
1632
|
y.byteLength = zr;
|
|
1625
|
-
function
|
|
1633
|
+
function Xn(t, e, r) {
|
|
1626
1634
|
var i = !1;
|
|
1627
1635
|
if ((e === void 0 || e < 0) && (e = 0), e > this.length || ((r === void 0 || r > this.length) && (r = this.length), r <= 0) || (r >>>= 0, e >>>= 0, r <= e))
|
|
1628
1636
|
return "";
|
|
1629
1637
|
for (t || (t = "utf8"); ; )
|
|
1630
1638
|
switch (t) {
|
|
1631
1639
|
case "hex":
|
|
1632
|
-
return
|
|
1640
|
+
return oa(this, e, r);
|
|
1633
1641
|
case "utf8":
|
|
1634
1642
|
case "utf-8":
|
|
1635
1643
|
return $r(this, e, r);
|
|
1636
1644
|
case "ascii":
|
|
1637
|
-
return
|
|
1645
|
+
return aa(this, e, r);
|
|
1638
1646
|
case "latin1":
|
|
1639
1647
|
case "binary":
|
|
1640
|
-
return
|
|
1648
|
+
return sa(this, e, r);
|
|
1641
1649
|
case "base64":
|
|
1642
|
-
return
|
|
1650
|
+
return ia(this, e, r);
|
|
1643
1651
|
case "ucs2":
|
|
1644
1652
|
case "ucs-2":
|
|
1645
1653
|
case "utf16le":
|
|
1646
1654
|
case "utf-16le":
|
|
1647
|
-
return
|
|
1655
|
+
return la(this, e, r);
|
|
1648
1656
|
default:
|
|
1649
1657
|
if (i)
|
|
1650
1658
|
throw new TypeError("Unknown encoding: " + t);
|
|
@@ -1652,7 +1660,7 @@ function Kn(t, e, r) {
|
|
|
1652
1660
|
}
|
|
1653
1661
|
}
|
|
1654
1662
|
y.prototype._isBuffer = !0;
|
|
1655
|
-
function
|
|
1663
|
+
function _e(t, e, r) {
|
|
1656
1664
|
var i = t[e];
|
|
1657
1665
|
t[e] = t[r], t[r] = i;
|
|
1658
1666
|
}
|
|
@@ -1661,7 +1669,7 @@ y.prototype.swap16 = function() {
|
|
|
1661
1669
|
if (e % 2 !== 0)
|
|
1662
1670
|
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
1663
1671
|
for (var r = 0; r < e; r += 2)
|
|
1664
|
-
|
|
1672
|
+
_e(this, r, r + 1);
|
|
1665
1673
|
return this;
|
|
1666
1674
|
};
|
|
1667
1675
|
y.prototype.swap32 = function() {
|
|
@@ -1669,7 +1677,7 @@ y.prototype.swap32 = function() {
|
|
|
1669
1677
|
if (e % 4 !== 0)
|
|
1670
1678
|
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
1671
1679
|
for (var r = 0; r < e; r += 4)
|
|
1672
|
-
|
|
1680
|
+
_e(this, r, r + 3), _e(this, r + 1, r + 2);
|
|
1673
1681
|
return this;
|
|
1674
1682
|
};
|
|
1675
1683
|
y.prototype.swap64 = function() {
|
|
@@ -1677,12 +1685,12 @@ y.prototype.swap64 = function() {
|
|
|
1677
1685
|
if (e % 8 !== 0)
|
|
1678
1686
|
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
1679
1687
|
for (var r = 0; r < e; r += 8)
|
|
1680
|
-
|
|
1688
|
+
_e(this, r, r + 7), _e(this, r + 1, r + 6), _e(this, r + 2, r + 5), _e(this, r + 3, r + 4);
|
|
1681
1689
|
return this;
|
|
1682
1690
|
};
|
|
1683
1691
|
y.prototype.toString = function() {
|
|
1684
1692
|
var e = this.length | 0;
|
|
1685
|
-
return e === 0 ? "" : arguments.length === 0 ? $r(this, 0, e) :
|
|
1693
|
+
return e === 0 ? "" : arguments.length === 0 ? $r(this, 0, e) : Xn.apply(this, arguments);
|
|
1686
1694
|
};
|
|
1687
1695
|
y.prototype.equals = function(e) {
|
|
1688
1696
|
if (!ne(e))
|
|
@@ -1706,9 +1714,9 @@ y.prototype.compare = function(e, r, i, n, s) {
|
|
|
1706
1714
|
return 1;
|
|
1707
1715
|
if (r >>>= 0, i >>>= 0, n >>>= 0, s >>>= 0, this === e)
|
|
1708
1716
|
return 0;
|
|
1709
|
-
for (var a = s - n, u = i - r, f = Math.min(a, u),
|
|
1710
|
-
if (
|
|
1711
|
-
a =
|
|
1717
|
+
for (var a = s - n, u = i - r, f = Math.min(a, u), _ = this.slice(n, s), b = e.slice(r, i), w = 0; w < f; ++w)
|
|
1718
|
+
if (_[w] !== b[w]) {
|
|
1719
|
+
a = _[w], u = b[w];
|
|
1712
1720
|
break;
|
|
1713
1721
|
}
|
|
1714
1722
|
return a < u ? -1 : u < a ? 1 : 0;
|
|
@@ -1741,24 +1749,24 @@ function nr(t, e, r, i, n) {
|
|
|
1741
1749
|
function f(m, E) {
|
|
1742
1750
|
return s === 1 ? m[E] : m.readUInt16BE(E * s);
|
|
1743
1751
|
}
|
|
1744
|
-
var
|
|
1752
|
+
var _;
|
|
1745
1753
|
if (n) {
|
|
1746
1754
|
var b = -1;
|
|
1747
|
-
for (
|
|
1748
|
-
if (f(t,
|
|
1749
|
-
if (b === -1 && (b =
|
|
1755
|
+
for (_ = r; _ < a; _++)
|
|
1756
|
+
if (f(t, _) === f(e, b === -1 ? 0 : _ - b)) {
|
|
1757
|
+
if (b === -1 && (b = _), _ - b + 1 === u)
|
|
1750
1758
|
return b * s;
|
|
1751
1759
|
} else
|
|
1752
|
-
b !== -1 && (
|
|
1760
|
+
b !== -1 && (_ -= _ - b), b = -1;
|
|
1753
1761
|
} else
|
|
1754
|
-
for (r + u > a && (r = a - u),
|
|
1755
|
-
for (var w = !0,
|
|
1756
|
-
if (f(t,
|
|
1762
|
+
for (r + u > a && (r = a - u), _ = r; _ >= 0; _--) {
|
|
1763
|
+
for (var w = !0, g = 0; g < u; g++)
|
|
1764
|
+
if (f(t, _ + g) !== f(e, g)) {
|
|
1757
1765
|
w = !1;
|
|
1758
1766
|
break;
|
|
1759
1767
|
}
|
|
1760
1768
|
if (w)
|
|
1761
|
-
return
|
|
1769
|
+
return _;
|
|
1762
1770
|
}
|
|
1763
1771
|
return -1;
|
|
1764
1772
|
}
|
|
@@ -1771,7 +1779,7 @@ y.prototype.indexOf = function(e, r, i) {
|
|
|
1771
1779
|
y.prototype.lastIndexOf = function(e, r, i) {
|
|
1772
1780
|
return qr(this, e, r, i, !1);
|
|
1773
1781
|
};
|
|
1774
|
-
function
|
|
1782
|
+
function Qn(t, e, r, i) {
|
|
1775
1783
|
r = Number(r) || 0;
|
|
1776
1784
|
var n = t.length - r;
|
|
1777
1785
|
i ? (i = Number(i), i > n && (i = n)) : i = n;
|
|
@@ -1787,20 +1795,20 @@ function Xn(t, e, r, i) {
|
|
|
1787
1795
|
}
|
|
1788
1796
|
return a;
|
|
1789
1797
|
}
|
|
1790
|
-
function
|
|
1798
|
+
function Zn(t, e, r, i) {
|
|
1791
1799
|
return st(Qe(e, t.length - r), t, r, i);
|
|
1792
1800
|
}
|
|
1793
1801
|
function Vr(t, e, r, i) {
|
|
1794
|
-
return st(
|
|
1802
|
+
return st(da(e), t, r, i);
|
|
1795
1803
|
}
|
|
1796
|
-
function
|
|
1804
|
+
function ea(t, e, r, i) {
|
|
1797
1805
|
return Vr(t, e, r, i);
|
|
1798
1806
|
}
|
|
1799
|
-
function
|
|
1807
|
+
function ta(t, e, r, i) {
|
|
1800
1808
|
return st(Kr(e), t, r, i);
|
|
1801
1809
|
}
|
|
1802
|
-
function
|
|
1803
|
-
return st(
|
|
1810
|
+
function ra(t, e, r, i) {
|
|
1811
|
+
return st(_a(e, t.length - r), t, r, i);
|
|
1804
1812
|
}
|
|
1805
1813
|
y.prototype.write = function(e, r, i, n) {
|
|
1806
1814
|
if (r === void 0)
|
|
@@ -1820,22 +1828,22 @@ y.prototype.write = function(e, r, i, n) {
|
|
|
1820
1828
|
for (var a = !1; ; )
|
|
1821
1829
|
switch (n) {
|
|
1822
1830
|
case "hex":
|
|
1823
|
-
return
|
|
1831
|
+
return Qn(this, e, r, i);
|
|
1824
1832
|
case "utf8":
|
|
1825
1833
|
case "utf-8":
|
|
1826
|
-
return
|
|
1834
|
+
return Zn(this, e, r, i);
|
|
1827
1835
|
case "ascii":
|
|
1828
1836
|
return Vr(this, e, r, i);
|
|
1829
1837
|
case "latin1":
|
|
1830
1838
|
case "binary":
|
|
1831
|
-
return Zn(this, e, r, i);
|
|
1832
|
-
case "base64":
|
|
1833
1839
|
return ea(this, e, r, i);
|
|
1840
|
+
case "base64":
|
|
1841
|
+
return ta(this, e, r, i);
|
|
1834
1842
|
case "ucs2":
|
|
1835
1843
|
case "ucs-2":
|
|
1836
1844
|
case "utf16le":
|
|
1837
1845
|
case "utf-16le":
|
|
1838
|
-
return
|
|
1846
|
+
return ra(this, e, r, i);
|
|
1839
1847
|
default:
|
|
1840
1848
|
if (a)
|
|
1841
1849
|
throw new TypeError("Unknown encoding: " + n);
|
|
@@ -1848,7 +1856,7 @@ y.prototype.toJSON = function() {
|
|
|
1848
1856
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
1849
1857
|
};
|
|
1850
1858
|
};
|
|
1851
|
-
function
|
|
1859
|
+
function ia(t, e, r) {
|
|
1852
1860
|
return e === 0 && r === t.length ? ir(t) : ir(t.slice(e, r));
|
|
1853
1861
|
}
|
|
1854
1862
|
function $r(t, e, r) {
|
|
@@ -1856,7 +1864,7 @@ function $r(t, e, r) {
|
|
|
1856
1864
|
for (var i = [], n = e; n < r; ) {
|
|
1857
1865
|
var s = t[n], a = null, u = s > 239 ? 4 : s > 223 ? 3 : s > 191 ? 2 : 1;
|
|
1858
1866
|
if (n + u <= r) {
|
|
1859
|
-
var f,
|
|
1867
|
+
var f, _, b, w;
|
|
1860
1868
|
switch (u) {
|
|
1861
1869
|
case 1:
|
|
1862
1870
|
s < 128 && (a = s);
|
|
@@ -1865,18 +1873,18 @@ function $r(t, e, r) {
|
|
|
1865
1873
|
f = t[n + 1], (f & 192) === 128 && (w = (s & 31) << 6 | f & 63, w > 127 && (a = w));
|
|
1866
1874
|
break;
|
|
1867
1875
|
case 3:
|
|
1868
|
-
f = t[n + 1],
|
|
1876
|
+
f = t[n + 1], _ = t[n + 2], (f & 192) === 128 && (_ & 192) === 128 && (w = (s & 15) << 12 | (f & 63) << 6 | _ & 63, w > 2047 && (w < 55296 || w > 57343) && (a = w));
|
|
1869
1877
|
break;
|
|
1870
1878
|
case 4:
|
|
1871
|
-
f = t[n + 1],
|
|
1879
|
+
f = t[n + 1], _ = t[n + 2], b = t[n + 3], (f & 192) === 128 && (_ & 192) === 128 && (b & 192) === 128 && (w = (s & 15) << 18 | (f & 63) << 12 | (_ & 63) << 6 | b & 63, w > 65535 && w < 1114112 && (a = w));
|
|
1872
1880
|
}
|
|
1873
1881
|
}
|
|
1874
1882
|
a === null ? (a = 65533, u = 1) : a > 65535 && (a -= 65536, i.push(a >>> 10 & 1023 | 55296), a = 56320 | a & 1023), i.push(a), n += u;
|
|
1875
1883
|
}
|
|
1876
|
-
return
|
|
1884
|
+
return na(i);
|
|
1877
1885
|
}
|
|
1878
1886
|
var ar = 4096;
|
|
1879
|
-
function
|
|
1887
|
+
function na(t) {
|
|
1880
1888
|
var e = t.length;
|
|
1881
1889
|
if (e <= ar)
|
|
1882
1890
|
return String.fromCharCode.apply(String, t);
|
|
@@ -1887,28 +1895,28 @@ function ia(t) {
|
|
|
1887
1895
|
);
|
|
1888
1896
|
return r;
|
|
1889
1897
|
}
|
|
1890
|
-
function
|
|
1898
|
+
function aa(t, e, r) {
|
|
1891
1899
|
var i = "";
|
|
1892
1900
|
r = Math.min(t.length, r);
|
|
1893
1901
|
for (var n = e; n < r; ++n)
|
|
1894
1902
|
i += String.fromCharCode(t[n] & 127);
|
|
1895
1903
|
return i;
|
|
1896
1904
|
}
|
|
1897
|
-
function
|
|
1905
|
+
function sa(t, e, r) {
|
|
1898
1906
|
var i = "";
|
|
1899
1907
|
r = Math.min(t.length, r);
|
|
1900
1908
|
for (var n = e; n < r; ++n)
|
|
1901
1909
|
i += String.fromCharCode(t[n]);
|
|
1902
1910
|
return i;
|
|
1903
1911
|
}
|
|
1904
|
-
function
|
|
1912
|
+
function oa(t, e, r) {
|
|
1905
1913
|
var i = t.length;
|
|
1906
1914
|
(!e || e < 0) && (e = 0), (!r || r < 0 || r > i) && (r = i);
|
|
1907
1915
|
for (var n = "", s = e; s < r; ++s)
|
|
1908
|
-
n +=
|
|
1916
|
+
n += ha(t[s]);
|
|
1909
1917
|
return n;
|
|
1910
1918
|
}
|
|
1911
|
-
function
|
|
1919
|
+
function la(t, e, r) {
|
|
1912
1920
|
for (var i = t.slice(e, r), n = "", s = 0; s < i.length; s += 2)
|
|
1913
1921
|
n += String.fromCharCode(i[s] + i[s + 1] * 256);
|
|
1914
1922
|
return n;
|
|
@@ -2003,7 +2011,7 @@ y.prototype.readDoubleLE = function(e, r) {
|
|
|
2003
2011
|
y.prototype.readDoubleBE = function(e, r) {
|
|
2004
2012
|
return r || Y(e, 8, this.length), it(this, e, !1, 52, 8);
|
|
2005
2013
|
};
|
|
2006
|
-
function
|
|
2014
|
+
function V(t, e, r, i, n, s) {
|
|
2007
2015
|
if (!ne(t))
|
|
2008
2016
|
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
2009
2017
|
if (e > n || e < s)
|
|
@@ -2014,7 +2022,7 @@ function q(t, e, r, i, n, s) {
|
|
|
2014
2022
|
y.prototype.writeUIntLE = function(e, r, i, n) {
|
|
2015
2023
|
if (e = +e, r = r | 0, i = i | 0, !n) {
|
|
2016
2024
|
var s = Math.pow(2, 8 * i) - 1;
|
|
2017
|
-
|
|
2025
|
+
V(this, e, r, i, s, 0);
|
|
2018
2026
|
}
|
|
2019
2027
|
var a = 1, u = 0;
|
|
2020
2028
|
for (this[r] = e & 255; ++u < i && (a *= 256); )
|
|
@@ -2024,7 +2032,7 @@ y.prototype.writeUIntLE = function(e, r, i, n) {
|
|
|
2024
2032
|
y.prototype.writeUIntBE = function(e, r, i, n) {
|
|
2025
2033
|
if (e = +e, r = r | 0, i = i | 0, !n) {
|
|
2026
2034
|
var s = Math.pow(2, 8 * i) - 1;
|
|
2027
|
-
|
|
2035
|
+
V(this, e, r, i, s, 0);
|
|
2028
2036
|
}
|
|
2029
2037
|
var a = i - 1, u = 1;
|
|
2030
2038
|
for (this[r + a] = e & 255; --a >= 0 && (u *= 256); )
|
|
@@ -2032,7 +2040,7 @@ y.prototype.writeUIntBE = function(e, r, i, n) {
|
|
|
2032
2040
|
return r + i;
|
|
2033
2041
|
};
|
|
2034
2042
|
y.prototype.writeUInt8 = function(e, r, i) {
|
|
2035
|
-
return e = +e, r = r | 0, i ||
|
|
2043
|
+
return e = +e, r = r | 0, i || V(this, e, r, 1, 255, 0), y.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), this[r] = e & 255, r + 1;
|
|
2036
2044
|
};
|
|
2037
2045
|
function nt(t, e, r, i) {
|
|
2038
2046
|
e < 0 && (e = 65535 + e + 1);
|
|
@@ -2040,10 +2048,10 @@ function nt(t, e, r, i) {
|
|
|
2040
2048
|
t[r + n] = (e & 255 << 8 * (i ? n : 1 - n)) >>> (i ? n : 1 - n) * 8;
|
|
2041
2049
|
}
|
|
2042
2050
|
y.prototype.writeUInt16LE = function(e, r, i) {
|
|
2043
|
-
return e = +e, r = r | 0, i ||
|
|
2051
|
+
return e = +e, r = r | 0, i || V(this, e, r, 2, 65535, 0), y.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8) : nt(this, e, r, !0), r + 2;
|
|
2044
2052
|
};
|
|
2045
2053
|
y.prototype.writeUInt16BE = function(e, r, i) {
|
|
2046
|
-
return e = +e, r = r | 0, i ||
|
|
2054
|
+
return e = +e, r = r | 0, i || V(this, e, r, 2, 65535, 0), y.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 8, this[r + 1] = e & 255) : nt(this, e, r, !1), r + 2;
|
|
2047
2055
|
};
|
|
2048
2056
|
function at(t, e, r, i) {
|
|
2049
2057
|
e < 0 && (e = 4294967295 + e + 1);
|
|
@@ -2051,15 +2059,15 @@ function at(t, e, r, i) {
|
|
|
2051
2059
|
t[r + n] = e >>> (i ? n : 3 - n) * 8 & 255;
|
|
2052
2060
|
}
|
|
2053
2061
|
y.prototype.writeUInt32LE = function(e, r, i) {
|
|
2054
|
-
return e = +e, r = r | 0, i ||
|
|
2062
|
+
return e = +e, r = r | 0, i || V(this, e, r, 4, 4294967295, 0), y.TYPED_ARRAY_SUPPORT ? (this[r + 3] = e >>> 24, this[r + 2] = e >>> 16, this[r + 1] = e >>> 8, this[r] = e & 255) : at(this, e, r, !0), r + 4;
|
|
2055
2063
|
};
|
|
2056
2064
|
y.prototype.writeUInt32BE = function(e, r, i) {
|
|
2057
|
-
return e = +e, r = r | 0, i ||
|
|
2065
|
+
return e = +e, r = r | 0, i || V(this, e, r, 4, 4294967295, 0), y.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255) : at(this, e, r, !1), r + 4;
|
|
2058
2066
|
};
|
|
2059
2067
|
y.prototype.writeIntLE = function(e, r, i, n) {
|
|
2060
2068
|
if (e = +e, r = r | 0, !n) {
|
|
2061
2069
|
var s = Math.pow(2, 8 * i - 1);
|
|
2062
|
-
|
|
2070
|
+
V(this, e, r, i, s - 1, -s);
|
|
2063
2071
|
}
|
|
2064
2072
|
var a = 0, u = 1, f = 0;
|
|
2065
2073
|
for (this[r] = e & 255; ++a < i && (u *= 256); )
|
|
@@ -2069,7 +2077,7 @@ y.prototype.writeIntLE = function(e, r, i, n) {
|
|
|
2069
2077
|
y.prototype.writeIntBE = function(e, r, i, n) {
|
|
2070
2078
|
if (e = +e, r = r | 0, !n) {
|
|
2071
2079
|
var s = Math.pow(2, 8 * i - 1);
|
|
2072
|
-
|
|
2080
|
+
V(this, e, r, i, s - 1, -s);
|
|
2073
2081
|
}
|
|
2074
2082
|
var a = i - 1, u = 1, f = 0;
|
|
2075
2083
|
for (this[r + a] = e & 255; --a >= 0 && (u *= 256); )
|
|
@@ -2077,19 +2085,19 @@ y.prototype.writeIntBE = function(e, r, i, n) {
|
|
|
2077
2085
|
return r + i;
|
|
2078
2086
|
};
|
|
2079
2087
|
y.prototype.writeInt8 = function(e, r, i) {
|
|
2080
|
-
return e = +e, r = r | 0, i ||
|
|
2088
|
+
return e = +e, r = r | 0, i || V(this, e, r, 1, 127, -128), y.TYPED_ARRAY_SUPPORT || (e = Math.floor(e)), e < 0 && (e = 255 + e + 1), this[r] = e & 255, r + 1;
|
|
2081
2089
|
};
|
|
2082
2090
|
y.prototype.writeInt16LE = function(e, r, i) {
|
|
2083
|
-
return e = +e, r = r | 0, i ||
|
|
2091
|
+
return e = +e, r = r | 0, i || V(this, e, r, 2, 32767, -32768), y.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8) : nt(this, e, r, !0), r + 2;
|
|
2084
2092
|
};
|
|
2085
2093
|
y.prototype.writeInt16BE = function(e, r, i) {
|
|
2086
|
-
return e = +e, r = r | 0, i ||
|
|
2094
|
+
return e = +e, r = r | 0, i || V(this, e, r, 2, 32767, -32768), y.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 8, this[r + 1] = e & 255) : nt(this, e, r, !1), r + 2;
|
|
2087
2095
|
};
|
|
2088
2096
|
y.prototype.writeInt32LE = function(e, r, i) {
|
|
2089
|
-
return e = +e, r = r | 0, i ||
|
|
2097
|
+
return e = +e, r = r | 0, i || V(this, e, r, 4, 2147483647, -2147483648), y.TYPED_ARRAY_SUPPORT ? (this[r] = e & 255, this[r + 1] = e >>> 8, this[r + 2] = e >>> 16, this[r + 3] = e >>> 24) : at(this, e, r, !0), r + 4;
|
|
2090
2098
|
};
|
|
2091
2099
|
y.prototype.writeInt32BE = function(e, r, i) {
|
|
2092
|
-
return e = +e, r = r | 0, i ||
|
|
2100
|
+
return e = +e, r = r | 0, i || V(this, e, r, 4, 2147483647, -2147483648), e < 0 && (e = 4294967295 + e + 1), y.TYPED_ARRAY_SUPPORT ? (this[r] = e >>> 24, this[r + 1] = e >>> 16, this[r + 2] = e >>> 8, this[r + 3] = e & 255) : at(this, e, r, !1), r + 4;
|
|
2093
2101
|
};
|
|
2094
2102
|
function Hr(t, e, r, i, n, s) {
|
|
2095
2103
|
if (r + i > t.length)
|
|
@@ -2168,18 +2176,18 @@ y.prototype.fill = function(e, r, i, n) {
|
|
|
2168
2176
|
}
|
|
2169
2177
|
return this;
|
|
2170
2178
|
};
|
|
2171
|
-
var
|
|
2172
|
-
function
|
|
2173
|
-
if (t =
|
|
2179
|
+
var ua = /[^+\/0-9A-Za-z-_]/g;
|
|
2180
|
+
function fa(t) {
|
|
2181
|
+
if (t = ca(t).replace(ua, ""), t.length < 2)
|
|
2174
2182
|
return "";
|
|
2175
2183
|
for (; t.length % 4 !== 0; )
|
|
2176
2184
|
t = t + "=";
|
|
2177
2185
|
return t;
|
|
2178
2186
|
}
|
|
2179
|
-
function
|
|
2187
|
+
function ca(t) {
|
|
2180
2188
|
return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
|
|
2181
2189
|
}
|
|
2182
|
-
function
|
|
2190
|
+
function ha(t) {
|
|
2183
2191
|
return t < 16 ? "0" + t.toString(16) : t.toString(16);
|
|
2184
2192
|
}
|
|
2185
2193
|
function Qe(t, e) {
|
|
@@ -2237,18 +2245,18 @@ function Qe(t, e) {
|
|
|
2237
2245
|
}
|
|
2238
2246
|
return s;
|
|
2239
2247
|
}
|
|
2240
|
-
function
|
|
2248
|
+
function da(t) {
|
|
2241
2249
|
for (var e = [], r = 0; r < t.length; ++r)
|
|
2242
2250
|
e.push(t.charCodeAt(r) & 255);
|
|
2243
2251
|
return e;
|
|
2244
2252
|
}
|
|
2245
|
-
function
|
|
2253
|
+
function _a(t, e) {
|
|
2246
2254
|
for (var r, i, n, s = [], a = 0; a < t.length && !((e -= 2) < 0); ++a)
|
|
2247
2255
|
r = t.charCodeAt(a), i = r >> 8, n = r % 256, s.push(n), s.push(i);
|
|
2248
2256
|
return s;
|
|
2249
2257
|
}
|
|
2250
2258
|
function Kr(t) {
|
|
2251
|
-
return
|
|
2259
|
+
return jn(fa(t));
|
|
2252
2260
|
}
|
|
2253
2261
|
function st(t, e, r, i) {
|
|
2254
2262
|
for (var n = 0; n < i && !(n + r >= e.length || n >= t.length); ++n)
|
|
@@ -2259,22 +2267,22 @@ function ga(t) {
|
|
|
2259
2267
|
return t !== t;
|
|
2260
2268
|
}
|
|
2261
2269
|
function Xr(t) {
|
|
2262
|
-
return t != null && (!!t._isBuffer || Qr(t) ||
|
|
2270
|
+
return t != null && (!!t._isBuffer || Qr(t) || pa(t));
|
|
2263
2271
|
}
|
|
2264
2272
|
function Qr(t) {
|
|
2265
2273
|
return !!t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
|
|
2266
2274
|
}
|
|
2267
|
-
function
|
|
2275
|
+
function pa(t) {
|
|
2268
2276
|
return typeof t.readFloatLE == "function" && typeof t.slice == "function" && Qr(t.slice(0, 0));
|
|
2269
2277
|
}
|
|
2270
|
-
const
|
|
2278
|
+
const ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2271
2279
|
__proto__: null,
|
|
2272
2280
|
Buffer: y,
|
|
2273
2281
|
INSPECT_MAX_BYTES: Wr,
|
|
2274
|
-
SlowBuffer:
|
|
2282
|
+
SlowBuffer: Kn,
|
|
2275
2283
|
isBuffer: Xr,
|
|
2276
|
-
kMaxLength:
|
|
2277
|
-
}, Symbol.toStringTag, { value: "Module" })), ot = /* @__PURE__ */ Yt(
|
|
2284
|
+
kMaxLength: Vn
|
|
2285
|
+
}, Symbol.toStringTag, { value: "Module" })), ot = /* @__PURE__ */ Yt(ya);
|
|
2278
2286
|
var Pt;
|
|
2279
2287
|
typeof Object.create == "function" ? Pt = function(e, r) {
|
|
2280
2288
|
e.super_ = r, e.prototype = Object.create(r.prototype, {
|
|
@@ -2292,14 +2300,14 @@ typeof Object.create == "function" ? Pt = function(e, r) {
|
|
|
2292
2300
|
i.prototype = r.prototype, e.prototype = new i(), e.prototype.constructor = e;
|
|
2293
2301
|
};
|
|
2294
2302
|
const Zr = Pt;
|
|
2295
|
-
var
|
|
2303
|
+
var wa = /%[sdj%]/g;
|
|
2296
2304
|
function lt(t) {
|
|
2297
2305
|
if (!Ie(t)) {
|
|
2298
2306
|
for (var e = [], r = 0; r < arguments.length; r++)
|
|
2299
2307
|
e.push(ie(arguments[r]));
|
|
2300
2308
|
return e.join(" ");
|
|
2301
2309
|
}
|
|
2302
|
-
for (var r = 1, i = arguments, n = i.length, s = String(t).replace(
|
|
2310
|
+
for (var r = 1, i = arguments, n = i.length, s = String(t).replace(wa, function(u) {
|
|
2303
2311
|
if (u === "%%")
|
|
2304
2312
|
return "%";
|
|
2305
2313
|
if (r >= n)
|
|
@@ -2357,9 +2365,9 @@ function ei(t) {
|
|
|
2357
2365
|
function ie(t, e) {
|
|
2358
2366
|
var r = {
|
|
2359
2367
|
seen: [],
|
|
2360
|
-
stylize:
|
|
2368
|
+
stylize: ma
|
|
2361
2369
|
};
|
|
2362
|
-
return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), ut(e) ? r.showHidden = e : e && Xt(r, e), re(r.showHidden) && (r.showHidden = !1), re(r.depth) && (r.depth = 2), re(r.colors) && (r.colors = !1), re(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize =
|
|
2370
|
+
return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), ut(e) ? r.showHidden = e : e && Xt(r, e), re(r.showHidden) && (r.showHidden = !1), re(r.depth) && (r.depth = 2), re(r.colors) && (r.colors = !1), re(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = ba), Ze(r, t, r.depth);
|
|
2363
2371
|
}
|
|
2364
2372
|
ie.colors = {
|
|
2365
2373
|
bold: [1, 22],
|
|
@@ -2386,14 +2394,14 @@ ie.styles = {
|
|
|
2386
2394
|
date: "magenta",
|
|
2387
2395
|
regexp: "red"
|
|
2388
2396
|
};
|
|
2389
|
-
function
|
|
2397
|
+
function ba(t, e) {
|
|
2390
2398
|
var r = ie.styles[e];
|
|
2391
2399
|
return r ? "\x1B[" + ie.colors[r][0] + "m" + t + "\x1B[" + ie.colors[r][1] + "m" : t;
|
|
2392
2400
|
}
|
|
2393
|
-
function
|
|
2401
|
+
function ma(t, e) {
|
|
2394
2402
|
return t;
|
|
2395
2403
|
}
|
|
2396
|
-
function
|
|
2404
|
+
function va(t) {
|
|
2397
2405
|
var e = {};
|
|
2398
2406
|
return t.forEach(function(r, i) {
|
|
2399
2407
|
e[r] = !0;
|
|
@@ -2404,10 +2412,10 @@ function Ze(t, e, r) {
|
|
|
2404
2412
|
var i = e.inspect(r, t);
|
|
2405
2413
|
return Ie(i) || (i = Ze(t, i, r)), i;
|
|
2406
2414
|
}
|
|
2407
|
-
var n =
|
|
2415
|
+
var n = Ea(t, e);
|
|
2408
2416
|
if (n)
|
|
2409
2417
|
return n;
|
|
2410
|
-
var s = Object.keys(e), a =
|
|
2418
|
+
var s = Object.keys(e), a = va(s);
|
|
2411
2419
|
if (t.showHidden && (s = Object.getOwnPropertyNames(e)), Oe(e) && (s.indexOf("message") >= 0 || s.indexOf("description") >= 0))
|
|
2412
2420
|
return mt(e);
|
|
2413
2421
|
if (s.length === 0) {
|
|
@@ -2422,22 +2430,22 @@ function Ze(t, e, r) {
|
|
|
2422
2430
|
if (Oe(e))
|
|
2423
2431
|
return mt(e);
|
|
2424
2432
|
}
|
|
2425
|
-
var f = "",
|
|
2426
|
-
if (Gt(e) && (
|
|
2433
|
+
var f = "", _ = !1, b = ["{", "}"];
|
|
2434
|
+
if (Gt(e) && (_ = !0, b = ["[", "]"]), De(e)) {
|
|
2427
2435
|
var w = e.name ? ": " + e.name : "";
|
|
2428
2436
|
f = " [Function" + w + "]";
|
|
2429
2437
|
}
|
|
2430
|
-
if (Fe(e) && (f = " " + RegExp.prototype.toString.call(e)), et(e) && (f = " " + Date.prototype.toUTCString.call(e)), Oe(e) && (f = " " + mt(e)), s.length === 0 && (!
|
|
2438
|
+
if (Fe(e) && (f = " " + RegExp.prototype.toString.call(e)), et(e) && (f = " " + Date.prototype.toUTCString.call(e)), Oe(e) && (f = " " + mt(e)), s.length === 0 && (!_ || e.length == 0))
|
|
2431
2439
|
return b[0] + f + b[1];
|
|
2432
2440
|
if (r < 0)
|
|
2433
2441
|
return Fe(e) ? t.stylize(RegExp.prototype.toString.call(e), "regexp") : t.stylize("[Object]", "special");
|
|
2434
2442
|
t.seen.push(e);
|
|
2435
|
-
var
|
|
2436
|
-
return
|
|
2437
|
-
return Nt(t, e, r, a, m,
|
|
2438
|
-
}), t.seen.pop(),
|
|
2443
|
+
var g;
|
|
2444
|
+
return _ ? g = xa(t, e, r, a, s) : g = s.map(function(m) {
|
|
2445
|
+
return Nt(t, e, r, a, m, _);
|
|
2446
|
+
}), t.seen.pop(), Ra(g, f, b);
|
|
2439
2447
|
}
|
|
2440
|
-
function
|
|
2448
|
+
function Ea(t, e) {
|
|
2441
2449
|
if (re(e))
|
|
2442
2450
|
return t.stylize("undefined", "undefined");
|
|
2443
2451
|
if (Ie(e)) {
|
|
@@ -2454,7 +2462,7 @@ function va(t, e) {
|
|
|
2454
2462
|
function mt(t) {
|
|
2455
2463
|
return "[" + Error.prototype.toString.call(t) + "]";
|
|
2456
2464
|
}
|
|
2457
|
-
function
|
|
2465
|
+
function xa(t, e, r, i, n) {
|
|
2458
2466
|
for (var s = [], a = 0, u = e.length; a < u; ++a)
|
|
2459
2467
|
si(e, String(a)) ? s.push(Nt(
|
|
2460
2468
|
t,
|
|
@@ -2479,13 +2487,13 @@ function Nt(t, e, r, i, n, s) {
|
|
|
2479
2487
|
var a, u, f;
|
|
2480
2488
|
if (f = Object.getOwnPropertyDescriptor(e, n) || { value: e[n] }, f.get ? f.set ? u = t.stylize("[Getter/Setter]", "special") : u = t.stylize("[Getter]", "special") : f.set && (u = t.stylize("[Setter]", "special")), si(i, n) || (a = "[" + n + "]"), u || (t.seen.indexOf(f.value) < 0 ? (Ne(r) ? u = Ze(t, f.value, null) : u = Ze(t, f.value, r - 1), u.indexOf(`
|
|
2481
2489
|
`) > -1 && (s ? u = u.split(`
|
|
2482
|
-
`).map(function(
|
|
2483
|
-
return " " +
|
|
2490
|
+
`).map(function(_) {
|
|
2491
|
+
return " " + _;
|
|
2484
2492
|
}).join(`
|
|
2485
2493
|
`).substr(2) : u = `
|
|
2486
2494
|
` + u.split(`
|
|
2487
|
-
`).map(function(
|
|
2488
|
-
return " " +
|
|
2495
|
+
`).map(function(_) {
|
|
2496
|
+
return " " + _;
|
|
2489
2497
|
}).join(`
|
|
2490
2498
|
`))) : u = t.stylize("[Circular]", "special")), re(a)) {
|
|
2491
2499
|
if (s && n.match(/^\d+$/))
|
|
@@ -2494,7 +2502,7 @@ function Nt(t, e, r, i, n, s) {
|
|
|
2494
2502
|
}
|
|
2495
2503
|
return a + ": " + u;
|
|
2496
2504
|
}
|
|
2497
|
-
function
|
|
2505
|
+
function Ra(t, e, r) {
|
|
2498
2506
|
var i = t.reduce(function(n, s) {
|
|
2499
2507
|
return s.indexOf(`
|
|
2500
2508
|
`) >= 0, n + s.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
@@ -2554,7 +2562,7 @@ function Kt(t) {
|
|
|
2554
2562
|
function vt(t) {
|
|
2555
2563
|
return t < 10 ? "0" + t.toString(10) : t.toString(10);
|
|
2556
2564
|
}
|
|
2557
|
-
var
|
|
2565
|
+
var Sa = [
|
|
2558
2566
|
"Jan",
|
|
2559
2567
|
"Feb",
|
|
2560
2568
|
"Mar",
|
|
@@ -2568,16 +2576,16 @@ var Ra = [
|
|
|
2568
2576
|
"Nov",
|
|
2569
2577
|
"Dec"
|
|
2570
2578
|
];
|
|
2571
|
-
function
|
|
2579
|
+
function Ta() {
|
|
2572
2580
|
var t = new Date(), e = [
|
|
2573
2581
|
vt(t.getHours()),
|
|
2574
2582
|
vt(t.getMinutes()),
|
|
2575
2583
|
vt(t.getSeconds())
|
|
2576
2584
|
].join(":");
|
|
2577
|
-
return [t.getDate(),
|
|
2585
|
+
return [t.getDate(), Sa[t.getMonth()], e].join(" ");
|
|
2578
2586
|
}
|
|
2579
2587
|
function ai() {
|
|
2580
|
-
console.log("%s - %s",
|
|
2588
|
+
console.log("%s - %s", Ta(), lt.apply(null, arguments));
|
|
2581
2589
|
}
|
|
2582
2590
|
function Xt(t, e) {
|
|
2583
2591
|
if (!e || !pe(e))
|
|
@@ -2589,7 +2597,7 @@ function Xt(t, e) {
|
|
|
2589
2597
|
function si(t, e) {
|
|
2590
2598
|
return Object.prototype.hasOwnProperty.call(t, e);
|
|
2591
2599
|
}
|
|
2592
|
-
const
|
|
2600
|
+
const Ca = {
|
|
2593
2601
|
inherits: Zr,
|
|
2594
2602
|
_extend: Xt,
|
|
2595
2603
|
log: ai,
|
|
@@ -2612,7 +2620,7 @@ const Ta = {
|
|
|
2612
2620
|
deprecate: Ht,
|
|
2613
2621
|
format: lt,
|
|
2614
2622
|
debuglog: ei
|
|
2615
|
-
},
|
|
2623
|
+
}, Aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2616
2624
|
__proto__: null,
|
|
2617
2625
|
format: lt,
|
|
2618
2626
|
deprecate: Ht,
|
|
@@ -2636,59 +2644,59 @@ const Ta = {
|
|
|
2636
2644
|
log: ai,
|
|
2637
2645
|
inherits: Zr,
|
|
2638
2646
|
_extend: Xt,
|
|
2639
|
-
default:
|
|
2640
|
-
}, Symbol.toStringTag, { value: "Module" })), oi = /* @__PURE__ */ Yt(
|
|
2647
|
+
default: Ca
|
|
2648
|
+
}, Symbol.toStringTag, { value: "Module" })), oi = /* @__PURE__ */ Yt(Aa);
|
|
2641
2649
|
var Et, sr;
|
|
2642
|
-
function
|
|
2650
|
+
function Fa() {
|
|
2643
2651
|
if (sr)
|
|
2644
2652
|
return Et;
|
|
2645
2653
|
sr = 1;
|
|
2646
|
-
function t(
|
|
2647
|
-
var E = Object.keys(
|
|
2654
|
+
function t(g, m) {
|
|
2655
|
+
var E = Object.keys(g);
|
|
2648
2656
|
if (Object.getOwnPropertySymbols) {
|
|
2649
|
-
var S = Object.getOwnPropertySymbols(
|
|
2657
|
+
var S = Object.getOwnPropertySymbols(g);
|
|
2650
2658
|
m && (S = S.filter(function(F) {
|
|
2651
|
-
return Object.getOwnPropertyDescriptor(
|
|
2659
|
+
return Object.getOwnPropertyDescriptor(g, F).enumerable;
|
|
2652
2660
|
})), E.push.apply(E, S);
|
|
2653
2661
|
}
|
|
2654
2662
|
return E;
|
|
2655
2663
|
}
|
|
2656
|
-
function e(
|
|
2664
|
+
function e(g) {
|
|
2657
2665
|
for (var m = 1; m < arguments.length; m++) {
|
|
2658
2666
|
var E = arguments[m] != null ? arguments[m] : {};
|
|
2659
2667
|
m % 2 ? t(Object(E), !0).forEach(function(S) {
|
|
2660
|
-
r(
|
|
2661
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
2662
|
-
Object.defineProperty(
|
|
2668
|
+
r(g, S, E[S]);
|
|
2669
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(g, Object.getOwnPropertyDescriptors(E)) : t(Object(E)).forEach(function(S) {
|
|
2670
|
+
Object.defineProperty(g, S, Object.getOwnPropertyDescriptor(E, S));
|
|
2663
2671
|
});
|
|
2664
2672
|
}
|
|
2665
|
-
return
|
|
2673
|
+
return g;
|
|
2666
2674
|
}
|
|
2667
|
-
function r(
|
|
2668
|
-
return m in
|
|
2675
|
+
function r(g, m, E) {
|
|
2676
|
+
return m in g ? Object.defineProperty(g, m, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : g[m] = E, g;
|
|
2669
2677
|
}
|
|
2670
|
-
function i(
|
|
2671
|
-
if (!(
|
|
2678
|
+
function i(g, m) {
|
|
2679
|
+
if (!(g instanceof m))
|
|
2672
2680
|
throw new TypeError("Cannot call a class as a function");
|
|
2673
2681
|
}
|
|
2674
|
-
function n(
|
|
2682
|
+
function n(g, m) {
|
|
2675
2683
|
for (var E = 0; E < m.length; E++) {
|
|
2676
2684
|
var S = m[E];
|
|
2677
|
-
S.enumerable = S.enumerable || !1, S.configurable = !0, "value" in S && (S.writable = !0), Object.defineProperty(
|
|
2685
|
+
S.enumerable = S.enumerable || !1, S.configurable = !0, "value" in S && (S.writable = !0), Object.defineProperty(g, S.key, S);
|
|
2678
2686
|
}
|
|
2679
2687
|
}
|
|
2680
|
-
function s(
|
|
2681
|
-
return m && n(
|
|
2688
|
+
function s(g, m, E) {
|
|
2689
|
+
return m && n(g.prototype, m), E && n(g, E), g;
|
|
2682
2690
|
}
|
|
2683
|
-
var a = ot, u = a.Buffer, f = oi,
|
|
2684
|
-
function w(
|
|
2685
|
-
u.prototype.copy.call(
|
|
2691
|
+
var a = ot, u = a.Buffer, f = oi, _ = f.inspect, b = _ && _.custom || "inspect";
|
|
2692
|
+
function w(g, m, E) {
|
|
2693
|
+
u.prototype.copy.call(g, m, E);
|
|
2686
2694
|
}
|
|
2687
2695
|
return Et = /* @__PURE__ */ function() {
|
|
2688
|
-
function
|
|
2689
|
-
i(this,
|
|
2696
|
+
function g() {
|
|
2697
|
+
i(this, g), this.head = null, this.tail = null, this.length = 0;
|
|
2690
2698
|
}
|
|
2691
|
-
return s(
|
|
2699
|
+
return s(g, [{
|
|
2692
2700
|
key: "push",
|
|
2693
2701
|
value: function(E) {
|
|
2694
2702
|
var S = {
|
|
@@ -2779,15 +2787,15 @@ function Aa() {
|
|
|
2779
2787
|
}, {
|
|
2780
2788
|
key: b,
|
|
2781
2789
|
value: function(E, S) {
|
|
2782
|
-
return
|
|
2790
|
+
return _(this, e({}, S, {
|
|
2783
2791
|
depth: 0,
|
|
2784
2792
|
customInspect: !1
|
|
2785
2793
|
}));
|
|
2786
2794
|
}
|
|
2787
|
-
}]),
|
|
2795
|
+
}]), g;
|
|
2788
2796
|
}(), Et;
|
|
2789
2797
|
}
|
|
2790
|
-
function
|
|
2798
|
+
function Oa(t, e) {
|
|
2791
2799
|
var r = this, i = this._readableState && this._readableState.destroyed, n = this._writableState && this._writableState.destroyed;
|
|
2792
2800
|
return i || n ? (e ? e(t) : t && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, N.nextTick(It, this, t)) : N.nextTick(It, this, t)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(t || null, function(s) {
|
|
2793
2801
|
!e && s ? r._writableState ? r._writableState.errorEmitted ? N.nextTick(He, r) : (r._writableState.errorEmitted = !0, N.nextTick(or, r, s)) : N.nextTick(or, r, s) : e ? (N.nextTick(He, r), e(s)) : N.nextTick(He, r);
|
|
@@ -2799,22 +2807,22 @@ function or(t, e) {
|
|
|
2799
2807
|
function He(t) {
|
|
2800
2808
|
t._writableState && !t._writableState.emitClose || t._readableState && !t._readableState.emitClose || t.emit("close");
|
|
2801
2809
|
}
|
|
2802
|
-
function
|
|
2810
|
+
function Da() {
|
|
2803
2811
|
this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
|
|
2804
2812
|
}
|
|
2805
2813
|
function It(t, e) {
|
|
2806
2814
|
t.emit("error", e);
|
|
2807
2815
|
}
|
|
2808
|
-
function
|
|
2816
|
+
function Ma(t, e) {
|
|
2809
2817
|
var r = t._readableState, i = t._writableState;
|
|
2810
2818
|
r && r.autoDestroy || i && i.autoDestroy ? t.destroy(e) : t.emit("error", e);
|
|
2811
2819
|
}
|
|
2812
2820
|
var li = {
|
|
2813
|
-
destroy:
|
|
2814
|
-
undestroy:
|
|
2815
|
-
errorOrDestroy:
|
|
2821
|
+
destroy: Oa,
|
|
2822
|
+
undestroy: Da,
|
|
2823
|
+
errorOrDestroy: Ma
|
|
2816
2824
|
}, ye = {};
|
|
2817
|
-
function
|
|
2825
|
+
function ka(t, e) {
|
|
2818
2826
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
|
|
2819
2827
|
}
|
|
2820
2828
|
var ui = {};
|
|
@@ -2824,9 +2832,9 @@ function X(t, e, r) {
|
|
|
2824
2832
|
return typeof e == "string" ? e : e(s, a, u);
|
|
2825
2833
|
}
|
|
2826
2834
|
var n = /* @__PURE__ */ function(s) {
|
|
2827
|
-
|
|
2828
|
-
function a(u, f,
|
|
2829
|
-
return s.call(this, i(u, f,
|
|
2835
|
+
ka(a, s);
|
|
2836
|
+
function a(u, f, _) {
|
|
2837
|
+
return s.call(this, i(u, f, _)) || this;
|
|
2830
2838
|
}
|
|
2831
2839
|
return a;
|
|
2832
2840
|
}(r);
|
|
@@ -2841,13 +2849,13 @@ function lr(t, e) {
|
|
|
2841
2849
|
} else
|
|
2842
2850
|
return "of ".concat(e, " ").concat(String(t));
|
|
2843
2851
|
}
|
|
2844
|
-
function
|
|
2852
|
+
function Pa(t, e, r) {
|
|
2845
2853
|
return t.substr(!r || r < 0 ? 0 : +r, e.length) === e;
|
|
2846
2854
|
}
|
|
2847
|
-
function
|
|
2855
|
+
function Na(t, e, r) {
|
|
2848
2856
|
return (r === void 0 || r > t.length) && (r = t.length), t.substring(r - e.length, r) === e;
|
|
2849
2857
|
}
|
|
2850
|
-
function
|
|
2858
|
+
function Ia(t, e, r) {
|
|
2851
2859
|
return typeof r != "number" && (r = 0), r + e.length > t.length ? !1 : t.indexOf(e, r) !== -1;
|
|
2852
2860
|
}
|
|
2853
2861
|
X("ERR_INVALID_OPT_VALUE", function(t, e) {
|
|
@@ -2855,12 +2863,12 @@ X("ERR_INVALID_OPT_VALUE", function(t, e) {
|
|
|
2855
2863
|
}, TypeError);
|
|
2856
2864
|
X("ERR_INVALID_ARG_TYPE", function(t, e, r) {
|
|
2857
2865
|
var i;
|
|
2858
|
-
typeof e == "string" &&
|
|
2866
|
+
typeof e == "string" && Pa(e, "not ") ? (i = "must not be", e = e.replace(/^not /, "")) : i = "must be";
|
|
2859
2867
|
var n;
|
|
2860
|
-
if (
|
|
2868
|
+
if (Na(t, " argument"))
|
|
2861
2869
|
n = "The ".concat(t, " ").concat(i, " ").concat(lr(e, "type"));
|
|
2862
2870
|
else {
|
|
2863
|
-
var s =
|
|
2871
|
+
var s = Ia(t, ".") ? "property" : "argument";
|
|
2864
2872
|
n = 'The "'.concat(t, '" ').concat(s, " ").concat(i, " ").concat(lr(e, "type"));
|
|
2865
2873
|
}
|
|
2866
2874
|
return n += ". Received type ".concat(typeof r), n;
|
|
@@ -2882,23 +2890,23 @@ X("ERR_UNKNOWN_ENCODING", function(t) {
|
|
|
2882
2890
|
}, TypeError);
|
|
2883
2891
|
X("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
2884
2892
|
ye.codes = ui;
|
|
2885
|
-
var
|
|
2886
|
-
function
|
|
2893
|
+
var Ba = ye.codes.ERR_INVALID_OPT_VALUE;
|
|
2894
|
+
function La(t, e, r) {
|
|
2887
2895
|
return t.highWaterMark != null ? t.highWaterMark : e ? t[r] : null;
|
|
2888
2896
|
}
|
|
2889
|
-
function
|
|
2890
|
-
var n =
|
|
2897
|
+
function Ua(t, e, r, i) {
|
|
2898
|
+
var n = La(e, i, r);
|
|
2891
2899
|
if (n != null) {
|
|
2892
2900
|
if (!(isFinite(n) && Math.floor(n) === n) || n < 0) {
|
|
2893
2901
|
var s = i ? r : "highWaterMark";
|
|
2894
|
-
throw new
|
|
2902
|
+
throw new Ba(s, n);
|
|
2895
2903
|
}
|
|
2896
2904
|
return Math.floor(n);
|
|
2897
2905
|
}
|
|
2898
2906
|
return t.objectMode ? 16 : 16 * 1024;
|
|
2899
2907
|
}
|
|
2900
2908
|
var fi = {
|
|
2901
|
-
getHighWaterMark:
|
|
2909
|
+
getHighWaterMark: Ua
|
|
2902
2910
|
}, fe = { exports: {} };
|
|
2903
2911
|
typeof Object.create == "function" ? fe.exports = function(e, r) {
|
|
2904
2912
|
r && (e.super_ = r, e.prototype = Object.create(r.prototype, {
|
|
@@ -2917,8 +2925,8 @@ typeof Object.create == "function" ? fe.exports = function(e, r) {
|
|
|
2917
2925
|
i.prototype = r.prototype, e.prototype = new i(), e.prototype.constructor = e;
|
|
2918
2926
|
}
|
|
2919
2927
|
};
|
|
2920
|
-
var
|
|
2921
|
-
function
|
|
2928
|
+
var Wa = ja;
|
|
2929
|
+
function ja(t, e) {
|
|
2922
2930
|
if (xt("noDeprecation"))
|
|
2923
2931
|
return t;
|
|
2924
2932
|
var r = !1;
|
|
@@ -2950,13 +2958,13 @@ function ci() {
|
|
|
2950
2958
|
function t(d) {
|
|
2951
2959
|
var h = this;
|
|
2952
2960
|
this.next = null, this.entry = null, this.finish = function() {
|
|
2953
|
-
|
|
2961
|
+
_t(h, d);
|
|
2954
2962
|
};
|
|
2955
2963
|
}
|
|
2956
2964
|
var e;
|
|
2957
2965
|
M.WritableState = W;
|
|
2958
2966
|
var r = {
|
|
2959
|
-
deprecate:
|
|
2967
|
+
deprecate: Wa
|
|
2960
2968
|
}, i = Ir, n = ot.Buffer, s = Ke.Uint8Array || function() {
|
|
2961
2969
|
};
|
|
2962
2970
|
function a(d) {
|
|
@@ -2965,7 +2973,7 @@ function ci() {
|
|
|
2965
2973
|
function u(d) {
|
|
2966
2974
|
return n.isBuffer(d) || d instanceof s;
|
|
2967
2975
|
}
|
|
2968
|
-
var f = li,
|
|
2976
|
+
var f = li, _ = fi, b = _.getHighWaterMark, w = ye.codes, g = w.ERR_INVALID_ARG_TYPE, m = w.ERR_METHOD_NOT_IMPLEMENTED, E = w.ERR_MULTIPLE_CALLBACK, S = w.ERR_STREAM_CANNOT_PIPE, F = w.ERR_STREAM_DESTROYED, c = w.ERR_STREAM_NULL_VALUES, p = w.ERR_STREAM_WRITE_AFTER_END, R = w.ERR_UNKNOWN_ENCODING, C = f.errorOrDestroy;
|
|
2969
2977
|
fe.exports(M, i);
|
|
2970
2978
|
function D() {
|
|
2971
2979
|
}
|
|
@@ -3014,7 +3022,7 @@ function ci() {
|
|
|
3014
3022
|
}
|
|
3015
3023
|
function B(d, h, x, O) {
|
|
3016
3024
|
var P;
|
|
3017
|
-
return x === null ? P = new c() : typeof x != "string" && !h.objectMode && (P = new
|
|
3025
|
+
return x === null ? P = new c() : typeof x != "string" && !h.objectMode && (P = new g("chunk", ["string", "Buffer"], x)), P ? (C(d, P), N.nextTick(O, P), !1) : !0;
|
|
3018
3026
|
}
|
|
3019
3027
|
M.prototype.write = function(d, h, x) {
|
|
3020
3028
|
var O = this._writableState, P = !1, o = !O.objectMode && u(d);
|
|
@@ -3034,7 +3042,7 @@ function ci() {
|
|
|
3034
3042
|
return this._writableState && this._writableState.getBuffer();
|
|
3035
3043
|
}
|
|
3036
3044
|
});
|
|
3037
|
-
function
|
|
3045
|
+
function $(d, h, x) {
|
|
3038
3046
|
return !d.objectMode && d.decodeStrings !== !1 && typeof h == "string" && (h = n.from(h, x)), h;
|
|
3039
3047
|
}
|
|
3040
3048
|
Object.defineProperty(M.prototype, "writableHighWaterMark", {
|
|
@@ -3045,7 +3053,7 @@ function ci() {
|
|
|
3045
3053
|
});
|
|
3046
3054
|
function Z(d, h, x, O, P, o) {
|
|
3047
3055
|
if (!x) {
|
|
3048
|
-
var l =
|
|
3056
|
+
var l = $(h, O, P);
|
|
3049
3057
|
O !== l && (x = !0, P = "buffer", O = l);
|
|
3050
3058
|
}
|
|
3051
3059
|
var v = h.objectMode ? 1 : O.length;
|
|
@@ -3142,7 +3150,7 @@ function ci() {
|
|
|
3142
3150
|
function dt(d, h, x) {
|
|
3143
3151
|
h.ending = !0, he(d, h), x && (h.finished ? N.nextTick(x) : d.once("finish", x)), h.ended = !0, d.writable = !1;
|
|
3144
3152
|
}
|
|
3145
|
-
function
|
|
3153
|
+
function _t(d, h, x) {
|
|
3146
3154
|
var O = d.entry;
|
|
3147
3155
|
for (d.entry = null; O; ) {
|
|
3148
3156
|
var P = O.callback;
|
|
@@ -3167,9 +3175,9 @@ function Re() {
|
|
|
3167
3175
|
if (fr)
|
|
3168
3176
|
return St;
|
|
3169
3177
|
fr = 1;
|
|
3170
|
-
var t = Object.keys || function(
|
|
3178
|
+
var t = Object.keys || function(_) {
|
|
3171
3179
|
var b = [];
|
|
3172
|
-
for (var w in
|
|
3180
|
+
for (var w in _)
|
|
3173
3181
|
b.push(w);
|
|
3174
3182
|
return b;
|
|
3175
3183
|
};
|
|
@@ -3180,10 +3188,10 @@ function Re() {
|
|
|
3180
3188
|
var s = i[n];
|
|
3181
3189
|
a.prototype[s] || (a.prototype[s] = r.prototype[s]);
|
|
3182
3190
|
}
|
|
3183
|
-
function a(
|
|
3191
|
+
function a(_) {
|
|
3184
3192
|
if (!(this instanceof a))
|
|
3185
|
-
return new a(
|
|
3186
|
-
e.call(this,
|
|
3193
|
+
return new a(_);
|
|
3194
|
+
e.call(this, _), r.call(this, _), this.allowHalfOpen = !0, _ && (_.readable === !1 && (this.readable = !1), _.writable === !1 && (this.writable = !1), _.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", u)));
|
|
3187
3195
|
}
|
|
3188
3196
|
Object.defineProperty(a.prototype, "writableHighWaterMark", {
|
|
3189
3197
|
enumerable: !1,
|
|
@@ -3204,8 +3212,8 @@ function Re() {
|
|
|
3204
3212
|
function u() {
|
|
3205
3213
|
this._writableState.ended || N.nextTick(f, this);
|
|
3206
3214
|
}
|
|
3207
|
-
function f(
|
|
3208
|
-
|
|
3215
|
+
function f(_) {
|
|
3216
|
+
_.end();
|
|
3209
3217
|
}
|
|
3210
3218
|
return Object.defineProperty(a.prototype, "destroyed", {
|
|
3211
3219
|
enumerable: !1,
|
|
@@ -3218,7 +3226,7 @@ function Re() {
|
|
|
3218
3226
|
}), St;
|
|
3219
3227
|
}
|
|
3220
3228
|
var Tt = {}, je = { exports: {} }, cr;
|
|
3221
|
-
function
|
|
3229
|
+
function Ya() {
|
|
3222
3230
|
return cr || (cr = 1, function(t, e) {
|
|
3223
3231
|
var r = ot, i = r.Buffer;
|
|
3224
3232
|
function n(a, u) {
|
|
@@ -3236,8 +3244,8 @@ function ja() {
|
|
|
3236
3244
|
}, s.alloc = function(a, u, f) {
|
|
3237
3245
|
if (typeof a != "number")
|
|
3238
3246
|
throw new TypeError("Argument must be a number");
|
|
3239
|
-
var
|
|
3240
|
-
return u !== void 0 ? typeof f == "string" ?
|
|
3247
|
+
var _ = i(a);
|
|
3248
|
+
return u !== void 0 ? typeof f == "string" ? _.fill(u, f) : _.fill(u) : _.fill(0), _;
|
|
3241
3249
|
}, s.allocUnsafe = function(a) {
|
|
3242
3250
|
if (typeof a != "number")
|
|
3243
3251
|
throw new TypeError("Argument must be a number");
|
|
@@ -3254,7 +3262,7 @@ function dr() {
|
|
|
3254
3262
|
if (hr)
|
|
3255
3263
|
return Tt;
|
|
3256
3264
|
hr = 1;
|
|
3257
|
-
var t =
|
|
3265
|
+
var t = Ya().Buffer, e = t.isEncoding || function(c) {
|
|
3258
3266
|
switch (c = "" + c, c && c.toLowerCase()) {
|
|
3259
3267
|
case "hex":
|
|
3260
3268
|
case "utf8":
|
|
@@ -3310,7 +3318,7 @@ function dr() {
|
|
|
3310
3318
|
var p;
|
|
3311
3319
|
switch (this.encoding) {
|
|
3312
3320
|
case "utf16le":
|
|
3313
|
-
this.text = w, this.end =
|
|
3321
|
+
this.text = w, this.end = g, p = 4;
|
|
3314
3322
|
break;
|
|
3315
3323
|
case "utf8":
|
|
3316
3324
|
this.fillLast = f, p = 4;
|
|
@@ -3335,7 +3343,7 @@ function dr() {
|
|
|
3335
3343
|
} else
|
|
3336
3344
|
R = 0;
|
|
3337
3345
|
return R < c.length ? p ? p + this.text(c, R) : this.text(c, R) : p || "";
|
|
3338
|
-
}, n.prototype.end = b, n.prototype.text =
|
|
3346
|
+
}, n.prototype.end = b, n.prototype.text = _, n.prototype.fillLast = function(c) {
|
|
3339
3347
|
if (this.lastNeed <= c.length)
|
|
3340
3348
|
return c.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
3341
3349
|
c.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, c.length), this.lastNeed -= c.length;
|
|
@@ -3368,7 +3376,7 @@ function dr() {
|
|
|
3368
3376
|
return c.copy(this.lastChar, p, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
3369
3377
|
c.copy(this.lastChar, p, 0, c.length), this.lastNeed -= c.length;
|
|
3370
3378
|
}
|
|
3371
|
-
function
|
|
3379
|
+
function _(c, p) {
|
|
3372
3380
|
var R = a(this, c, p);
|
|
3373
3381
|
if (!this.lastNeed)
|
|
3374
3382
|
return c.toString("utf8", p);
|
|
@@ -3392,7 +3400,7 @@ function dr() {
|
|
|
3392
3400
|
}
|
|
3393
3401
|
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = c[c.length - 1], c.toString("utf16le", p, c.length - 1);
|
|
3394
3402
|
}
|
|
3395
|
-
function
|
|
3403
|
+
function g(c) {
|
|
3396
3404
|
var p = c && c.length ? this.write(c) : "";
|
|
3397
3405
|
if (this.lastNeed) {
|
|
3398
3406
|
var R = this.lastTotal - this.lastNeed;
|
|
@@ -3416,8 +3424,8 @@ function dr() {
|
|
|
3416
3424
|
}
|
|
3417
3425
|
return Tt;
|
|
3418
3426
|
}
|
|
3419
|
-
var
|
|
3420
|
-
function
|
|
3427
|
+
var _r = ye.codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
3428
|
+
function za(t) {
|
|
3421
3429
|
var e = !1;
|
|
3422
3430
|
return function() {
|
|
3423
3431
|
if (!e) {
|
|
@@ -3428,46 +3436,46 @@ function Ya(t) {
|
|
|
3428
3436
|
}
|
|
3429
3437
|
};
|
|
3430
3438
|
}
|
|
3431
|
-
function
|
|
3439
|
+
function qa() {
|
|
3432
3440
|
}
|
|
3433
|
-
function
|
|
3441
|
+
function Va(t) {
|
|
3434
3442
|
return t.setHeader && typeof t.abort == "function";
|
|
3435
3443
|
}
|
|
3436
3444
|
function hi(t, e, r) {
|
|
3437
3445
|
if (typeof e == "function")
|
|
3438
3446
|
return hi(t, null, e);
|
|
3439
|
-
e || (e = {}), r =
|
|
3447
|
+
e || (e = {}), r = za(r || qa);
|
|
3440
3448
|
var i = e.readable || e.readable !== !1 && t.readable, n = e.writable || e.writable !== !1 && t.writable, s = function() {
|
|
3441
3449
|
t.writable || u();
|
|
3442
3450
|
}, a = t._writableState && t._writableState.finished, u = function() {
|
|
3443
3451
|
n = !1, a = !0, i || r.call(t);
|
|
3444
|
-
}, f = t._readableState && t._readableState.endEmitted,
|
|
3452
|
+
}, f = t._readableState && t._readableState.endEmitted, _ = function() {
|
|
3445
3453
|
i = !1, f = !0, n || r.call(t);
|
|
3446
3454
|
}, b = function(E) {
|
|
3447
3455
|
r.call(t, E);
|
|
3448
3456
|
}, w = function() {
|
|
3449
3457
|
var E;
|
|
3450
3458
|
if (i && !f)
|
|
3451
|
-
return (!t._readableState || !t._readableState.ended) && (E = new
|
|
3459
|
+
return (!t._readableState || !t._readableState.ended) && (E = new _r()), r.call(t, E);
|
|
3452
3460
|
if (n && !a)
|
|
3453
|
-
return (!t._writableState || !t._writableState.ended) && (E = new
|
|
3454
|
-
},
|
|
3461
|
+
return (!t._writableState || !t._writableState.ended) && (E = new _r()), r.call(t, E);
|
|
3462
|
+
}, g = function() {
|
|
3455
3463
|
t.req.on("finish", u);
|
|
3456
3464
|
};
|
|
3457
|
-
return
|
|
3458
|
-
t.removeListener("complete", u), t.removeListener("abort", w), t.removeListener("request",
|
|
3465
|
+
return Va(t) ? (t.on("complete", u), t.on("abort", w), t.req ? g() : t.on("request", g)) : n && !t._writableState && (t.on("end", s), t.on("close", s)), t.on("end", _), t.on("finish", u), e.error !== !1 && t.on("error", b), t.on("close", w), function() {
|
|
3466
|
+
t.removeListener("complete", u), t.removeListener("abort", w), t.removeListener("request", g), t.req && t.req.removeListener("finish", u), t.removeListener("end", s), t.removeListener("close", s), t.removeListener("finish", u), t.removeListener("end", _), t.removeListener("error", b), t.removeListener("close", w);
|
|
3459
3467
|
};
|
|
3460
3468
|
}
|
|
3461
|
-
var Qt = hi, Ct,
|
|
3462
|
-
function
|
|
3463
|
-
if (
|
|
3469
|
+
var Qt = hi, Ct, gr;
|
|
3470
|
+
function $a() {
|
|
3471
|
+
if (gr)
|
|
3464
3472
|
return Ct;
|
|
3465
|
-
|
|
3473
|
+
gr = 1;
|
|
3466
3474
|
var t;
|
|
3467
3475
|
function e(c, p, R) {
|
|
3468
3476
|
return p in c ? Object.defineProperty(c, p, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : c[p] = R, c;
|
|
3469
3477
|
}
|
|
3470
|
-
var r = Qt, i = Symbol("lastResolve"), n = Symbol("lastReject"), s = Symbol("error"), a = Symbol("ended"), u = Symbol("lastPromise"), f = Symbol("handlePromise"),
|
|
3478
|
+
var r = Qt, i = Symbol("lastResolve"), n = Symbol("lastReject"), s = Symbol("error"), a = Symbol("ended"), u = Symbol("lastPromise"), f = Symbol("handlePromise"), _ = Symbol("stream");
|
|
3471
3479
|
function b(c, p) {
|
|
3472
3480
|
return {
|
|
3473
3481
|
value: c,
|
|
@@ -3477,11 +3485,11 @@ function Va() {
|
|
|
3477
3485
|
function w(c) {
|
|
3478
3486
|
var p = c[i];
|
|
3479
3487
|
if (p !== null) {
|
|
3480
|
-
var R = c[
|
|
3488
|
+
var R = c[_].read();
|
|
3481
3489
|
R !== null && (c[u] = null, c[i] = null, c[n] = null, p(b(R, !1)));
|
|
3482
3490
|
}
|
|
3483
3491
|
}
|
|
3484
|
-
function
|
|
3492
|
+
function g(c) {
|
|
3485
3493
|
N.nextTick(w, c);
|
|
3486
3494
|
}
|
|
3487
3495
|
function m(c, p) {
|
|
@@ -3498,7 +3506,7 @@ function Va() {
|
|
|
3498
3506
|
var E = Object.getPrototypeOf(function() {
|
|
3499
3507
|
}), S = Object.setPrototypeOf((t = {
|
|
3500
3508
|
get stream() {
|
|
3501
|
-
return this[
|
|
3509
|
+
return this[_];
|
|
3502
3510
|
},
|
|
3503
3511
|
next: function() {
|
|
3504
3512
|
var p = this, R = this[s];
|
|
@@ -3506,7 +3514,7 @@ function Va() {
|
|
|
3506
3514
|
return Promise.reject(R);
|
|
3507
3515
|
if (this[a])
|
|
3508
3516
|
return Promise.resolve(b(void 0, !0));
|
|
3509
|
-
if (this[
|
|
3517
|
+
if (this[_].destroyed)
|
|
3510
3518
|
return new Promise(function(z, M) {
|
|
3511
3519
|
N.nextTick(function() {
|
|
3512
3520
|
p[s] ? M(p[s]) : z(b(void 0, !0));
|
|
@@ -3516,7 +3524,7 @@ function Va() {
|
|
|
3516
3524
|
if (C)
|
|
3517
3525
|
D = new Promise(m(C, this));
|
|
3518
3526
|
else {
|
|
3519
|
-
var W = this[
|
|
3527
|
+
var W = this[_].read();
|
|
3520
3528
|
if (W !== null)
|
|
3521
3529
|
return Promise.resolve(b(W, !1));
|
|
3522
3530
|
D = new Promise(this[f]);
|
|
@@ -3528,7 +3536,7 @@ function Va() {
|
|
|
3528
3536
|
}), e(t, "return", function() {
|
|
3529
3537
|
var p = this;
|
|
3530
3538
|
return new Promise(function(R, C) {
|
|
3531
|
-
p[
|
|
3539
|
+
p[_].destroy(null, function(D) {
|
|
3532
3540
|
if (D) {
|
|
3533
3541
|
C(D);
|
|
3534
3542
|
return;
|
|
@@ -3537,7 +3545,7 @@ function Va() {
|
|
|
3537
3545
|
});
|
|
3538
3546
|
});
|
|
3539
3547
|
}), t), E), F = function(p) {
|
|
3540
|
-
var R, C = Object.create(S, (R = {}, e(R,
|
|
3548
|
+
var R, C = Object.create(S, (R = {}, e(R, _, {
|
|
3541
3549
|
value: p,
|
|
3542
3550
|
writable: !0
|
|
3543
3551
|
}), e(R, i, {
|
|
@@ -3554,7 +3562,7 @@ function Va() {
|
|
|
3554
3562
|
writable: !0
|
|
3555
3563
|
}), e(R, f, {
|
|
3556
3564
|
value: function(W, z) {
|
|
3557
|
-
var M = C[
|
|
3565
|
+
var M = C[_].read();
|
|
3558
3566
|
M ? (C[u] = null, C[i] = null, C[n] = null, W(b(M, !1))) : (C[i] = W, C[n] = z);
|
|
3559
3567
|
},
|
|
3560
3568
|
writable: !0
|
|
@@ -3567,12 +3575,12 @@ function Va() {
|
|
|
3567
3575
|
}
|
|
3568
3576
|
var z = C[i];
|
|
3569
3577
|
z !== null && (C[u] = null, C[i] = null, C[n] = null, z(b(void 0, !0))), C[a] = !0;
|
|
3570
|
-
}), p.on("readable",
|
|
3578
|
+
}), p.on("readable", g.bind(null, C)), C;
|
|
3571
3579
|
};
|
|
3572
3580
|
return Ct = F, Ct;
|
|
3573
3581
|
}
|
|
3574
3582
|
var At, pr;
|
|
3575
|
-
function
|
|
3583
|
+
function Ha() {
|
|
3576
3584
|
return pr || (pr = 1, At = function() {
|
|
3577
3585
|
throw new Error("Readable.from is not available in the browser");
|
|
3578
3586
|
}), At;
|
|
@@ -3597,7 +3605,7 @@ function di() {
|
|
|
3597
3605
|
var u = oi, f;
|
|
3598
3606
|
u && u.debuglog ? f = u.debuglog("stream") : f = function() {
|
|
3599
3607
|
};
|
|
3600
|
-
var
|
|
3608
|
+
var _ = Fa(), b = li, w = fi, g = w.getHighWaterMark, m = ye.codes, E = m.ERR_INVALID_ARG_TYPE, S = m.ERR_STREAM_PUSH_AFTER_EOF, F = m.ERR_METHOD_NOT_IMPLEMENTED, c = m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, p, R, C;
|
|
3601
3609
|
fe.exports(A, r);
|
|
3602
3610
|
var D = b.errorOrDestroy, W = ["error", "close", "destroy", "pause", "resume"];
|
|
3603
3611
|
function z(o, l, v) {
|
|
@@ -3606,7 +3614,7 @@ function di() {
|
|
|
3606
3614
|
!o._events || !o._events[l] ? o.on(l, v) : Array.isArray(o._events[l]) ? o._events[l].unshift(v) : o._events[l] = [v, o._events[l]];
|
|
3607
3615
|
}
|
|
3608
3616
|
function M(o, l, v) {
|
|
3609
|
-
t = t || Re(), o = o || {}, typeof v != "boolean" && (v = l instanceof t), this.objectMode = !!o.objectMode, v && (this.objectMode = this.objectMode || !!o.readableObjectMode), this.highWaterMark =
|
|
3617
|
+
t = t || Re(), o = o || {}, typeof v != "boolean" && (v = l instanceof t), this.objectMode = !!o.objectMode, v && (this.objectMode = this.objectMode || !!o.readableObjectMode), this.highWaterMark = g(this, o, "readableHighWaterMark", v), this.buffer = new _(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = o.emitClose !== !1, this.autoDestroy = !!o.autoDestroy, this.destroyed = !1, this.defaultEncoding = o.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, o.encoding && (p || (p = dr().StringDecoder), this.decoder = new p(o.encoding), this.encoding = o.encoding);
|
|
3610
3618
|
}
|
|
3611
3619
|
function A(o) {
|
|
3612
3620
|
if (t = t || Re(), !(this instanceof A))
|
|
@@ -3641,20 +3649,20 @@ function di() {
|
|
|
3641
3649
|
D(o, I);
|
|
3642
3650
|
else if (k.objectMode || l && l.length > 0)
|
|
3643
3651
|
if (typeof l != "string" && !k.objectMode && Object.getPrototypeOf(l) !== i.prototype && (l = s(l)), T)
|
|
3644
|
-
k.endEmitted ? D(o, new c()) :
|
|
3652
|
+
k.endEmitted ? D(o, new c()) : $(o, k, l, !0);
|
|
3645
3653
|
else if (k.ended)
|
|
3646
3654
|
D(o, new S());
|
|
3647
3655
|
else {
|
|
3648
3656
|
if (k.destroyed)
|
|
3649
3657
|
return !1;
|
|
3650
|
-
k.reading = !1, k.decoder && !v ? (l = k.decoder.write(l), k.objectMode || l.length !== 0 ?
|
|
3658
|
+
k.reading = !1, k.decoder && !v ? (l = k.decoder.write(l), k.objectMode || l.length !== 0 ? $(o, k, l, !1) : ee(o, k)) : $(o, k, l, !1);
|
|
3651
3659
|
}
|
|
3652
3660
|
else
|
|
3653
3661
|
T || (k.reading = !1, ee(o, k));
|
|
3654
3662
|
}
|
|
3655
3663
|
return !k.ended && (k.length < k.highWaterMark || k.length === 0);
|
|
3656
3664
|
}
|
|
3657
|
-
function
|
|
3665
|
+
function $(o, l, v, T) {
|
|
3658
3666
|
l.flowing && l.length === 0 && !l.sync ? (l.awaitDrain = 0, o.emit("data", v)) : (l.length += l.objectMode ? 1 : v.length, T ? l.buffer.unshift(v) : l.buffer.push(v), l.needReadable && Q(o)), ee(o, l);
|
|
3659
3667
|
}
|
|
3660
3668
|
function Z(o, l) {
|
|
@@ -3746,7 +3754,7 @@ function di() {
|
|
|
3746
3754
|
o.on("drain", Ue);
|
|
3747
3755
|
var tr = !1;
|
|
3748
3756
|
function Si() {
|
|
3749
|
-
f("cleanup"), o.removeListener("close", pt), o.removeListener("finish", yt), o.removeListener("drain", Ue), o.removeListener("error",
|
|
3757
|
+
f("cleanup"), o.removeListener("close", pt), o.removeListener("finish", yt), o.removeListener("drain", Ue), o.removeListener("error", gt), o.removeListener("unpipe", I), v.removeListener("end", we), v.removeListener("end", Ae), v.removeListener("data", rr), tr = !0, T.awaitDrain && (!o._writableState || o._writableState.needDrain) && Ue();
|
|
3750
3758
|
}
|
|
3751
3759
|
v.on("data", rr);
|
|
3752
3760
|
function rr(be) {
|
|
@@ -3754,10 +3762,10 @@ function di() {
|
|
|
3754
3762
|
var me = o.write(be);
|
|
3755
3763
|
f("dest.write", me), me === !1 && ((T.pipesCount === 1 && T.pipes === o || T.pipesCount > 1 && P(T.pipes, o) !== -1) && !tr && (f("false write response, pause", T.awaitDrain), T.awaitDrain++), v.pause());
|
|
3756
3764
|
}
|
|
3757
|
-
function
|
|
3758
|
-
f("onerror", be), Ae(), o.removeListener("error",
|
|
3765
|
+
function gt(be) {
|
|
3766
|
+
f("onerror", be), Ae(), o.removeListener("error", gt), e(o, "error") === 0 && D(o, be);
|
|
3759
3767
|
}
|
|
3760
|
-
z(o, "error",
|
|
3768
|
+
z(o, "error", gt);
|
|
3761
3769
|
function pt() {
|
|
3762
3770
|
o.removeListener("finish", yt), Ae();
|
|
3763
3771
|
}
|
|
@@ -3818,9 +3826,9 @@ function di() {
|
|
|
3818
3826
|
return o.flowing || (f("resume"), o.flowing = !o.readableListening, dt(this, o)), o.paused = !1, this;
|
|
3819
3827
|
};
|
|
3820
3828
|
function dt(o, l) {
|
|
3821
|
-
l.resumeScheduled || (l.resumeScheduled = !0, N.nextTick(
|
|
3829
|
+
l.resumeScheduled || (l.resumeScheduled = !0, N.nextTick(_t, o, l));
|
|
3822
3830
|
}
|
|
3823
|
-
function
|
|
3831
|
+
function _t(o, l) {
|
|
3824
3832
|
f("resume", l.reading), l.reading || o.read(0), l.resumeScheduled = !1, o.emit("resume"), d(o), l.flowing && !l.reading && o.read(0);
|
|
3825
3833
|
}
|
|
3826
3834
|
A.prototype.pause = function() {
|
|
@@ -3857,7 +3865,7 @@ function di() {
|
|
|
3857
3865
|
f("wrapped _read", I), T && (T = !1, o.resume());
|
|
3858
3866
|
}, this;
|
|
3859
3867
|
}, typeof Symbol == "function" && (A.prototype[Symbol.asyncIterator] = function() {
|
|
3860
|
-
return R === void 0 && (R =
|
|
3868
|
+
return R === void 0 && (R = $a()), R(this);
|
|
3861
3869
|
}), Object.defineProperty(A.prototype, "readableHighWaterMark", {
|
|
3862
3870
|
enumerable: !1,
|
|
3863
3871
|
get: function() {
|
|
@@ -3899,7 +3907,7 @@ function di() {
|
|
|
3899
3907
|
}
|
|
3900
3908
|
}
|
|
3901
3909
|
typeof Symbol == "function" && (A.from = function(o, l) {
|
|
3902
|
-
return C === void 0 && (C =
|
|
3910
|
+
return C === void 0 && (C = Ha()), C(A, o, l);
|
|
3903
3911
|
});
|
|
3904
3912
|
function P(o, l) {
|
|
3905
3913
|
for (var v = 0, T = o.length; v < T; v++)
|
|
@@ -3909,14 +3917,14 @@ function di() {
|
|
|
3909
3917
|
}
|
|
3910
3918
|
return Ft;
|
|
3911
3919
|
}
|
|
3912
|
-
var
|
|
3920
|
+
var _i = oe, ft = ye.codes, Ga = ft.ERR_METHOD_NOT_IMPLEMENTED, Ja = ft.ERR_MULTIPLE_CALLBACK, Ka = ft.ERR_TRANSFORM_ALREADY_TRANSFORMING, Xa = ft.ERR_TRANSFORM_WITH_LENGTH_0, ct = Re();
|
|
3913
3921
|
fe.exports(oe, ct);
|
|
3914
|
-
function
|
|
3922
|
+
function Qa(t, e) {
|
|
3915
3923
|
var r = this._transformState;
|
|
3916
3924
|
r.transforming = !1;
|
|
3917
3925
|
var i = r.writecb;
|
|
3918
3926
|
if (i === null)
|
|
3919
|
-
return this.emit("error", new
|
|
3927
|
+
return this.emit("error", new Ja());
|
|
3920
3928
|
r.writechunk = null, r.writecb = null, e != null && this.push(e), i(t);
|
|
3921
3929
|
var n = this._readableState;
|
|
3922
3930
|
n.reading = !1, (n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark);
|
|
@@ -3925,15 +3933,15 @@ function oe(t) {
|
|
|
3925
3933
|
if (!(this instanceof oe))
|
|
3926
3934
|
return new oe(t);
|
|
3927
3935
|
ct.call(this, t), this._transformState = {
|
|
3928
|
-
afterTransform:
|
|
3936
|
+
afterTransform: Qa.bind(this),
|
|
3929
3937
|
needTransform: !1,
|
|
3930
3938
|
transforming: !1,
|
|
3931
3939
|
writecb: null,
|
|
3932
3940
|
writechunk: null,
|
|
3933
3941
|
writeencoding: null
|
|
3934
|
-
}, this._readableState.needReadable = !0, this._readableState.sync = !1, t && (typeof t.transform == "function" && (this._transform = t.transform), typeof t.flush == "function" && (this._flush = t.flush)), this.on("prefinish",
|
|
3942
|
+
}, this._readableState.needReadable = !0, this._readableState.sync = !1, t && (typeof t.transform == "function" && (this._transform = t.transform), typeof t.flush == "function" && (this._flush = t.flush)), this.on("prefinish", Za);
|
|
3935
3943
|
}
|
|
3936
|
-
function
|
|
3944
|
+
function Za() {
|
|
3937
3945
|
var t = this;
|
|
3938
3946
|
typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(e, r) {
|
|
3939
3947
|
wr(t, e, r);
|
|
@@ -3943,7 +3951,7 @@ oe.prototype.push = function(t, e) {
|
|
|
3943
3951
|
return this._transformState.needTransform = !1, ct.prototype.push.call(this, t, e);
|
|
3944
3952
|
};
|
|
3945
3953
|
oe.prototype._transform = function(t, e, r) {
|
|
3946
|
-
r(new
|
|
3954
|
+
r(new Ga("_transform()"));
|
|
3947
3955
|
};
|
|
3948
3956
|
oe.prototype._write = function(t, e, r) {
|
|
3949
3957
|
var i = this._transformState;
|
|
@@ -3965,38 +3973,38 @@ function wr(t, e, r) {
|
|
|
3965
3973
|
if (e)
|
|
3966
3974
|
return t.emit("error", e);
|
|
3967
3975
|
if (r != null && t.push(r), t._writableState.length)
|
|
3968
|
-
throw new
|
|
3976
|
+
throw new Xa();
|
|
3969
3977
|
if (t._transformState.transforming)
|
|
3970
|
-
throw new
|
|
3978
|
+
throw new Ka();
|
|
3971
3979
|
return t.push(null);
|
|
3972
3980
|
}
|
|
3973
|
-
var
|
|
3974
|
-
fe.exports(ke,
|
|
3981
|
+
var es = ke, gi = _i;
|
|
3982
|
+
fe.exports(ke, gi);
|
|
3975
3983
|
function ke(t) {
|
|
3976
3984
|
if (!(this instanceof ke))
|
|
3977
3985
|
return new ke(t);
|
|
3978
|
-
|
|
3986
|
+
gi.call(this, t);
|
|
3979
3987
|
}
|
|
3980
3988
|
ke.prototype._transform = function(t, e, r) {
|
|
3981
3989
|
r(null, t);
|
|
3982
3990
|
};
|
|
3983
3991
|
var Ot;
|
|
3984
|
-
function
|
|
3992
|
+
function ts(t) {
|
|
3985
3993
|
var e = !1;
|
|
3986
3994
|
return function() {
|
|
3987
3995
|
e || (e = !0, t.apply(void 0, arguments));
|
|
3988
3996
|
};
|
|
3989
3997
|
}
|
|
3990
|
-
var pi = ye.codes,
|
|
3998
|
+
var pi = ye.codes, rs = pi.ERR_MISSING_ARGS, is = pi.ERR_STREAM_DESTROYED;
|
|
3991
3999
|
function br(t) {
|
|
3992
4000
|
if (t)
|
|
3993
4001
|
throw t;
|
|
3994
4002
|
}
|
|
3995
|
-
function
|
|
4003
|
+
function ns(t) {
|
|
3996
4004
|
return t.setHeader && typeof t.abort == "function";
|
|
3997
4005
|
}
|
|
3998
|
-
function
|
|
3999
|
-
i =
|
|
4006
|
+
function as(t, e, r, i) {
|
|
4007
|
+
i = ts(i);
|
|
4000
4008
|
var n = !1;
|
|
4001
4009
|
t.on("close", function() {
|
|
4002
4010
|
n = !0;
|
|
@@ -4011,40 +4019,40 @@ function ns(t, e, r, i) {
|
|
|
4011
4019
|
var s = !1;
|
|
4012
4020
|
return function(a) {
|
|
4013
4021
|
if (!n && !s) {
|
|
4014
|
-
if (s = !0,
|
|
4022
|
+
if (s = !0, ns(t))
|
|
4015
4023
|
return t.abort();
|
|
4016
4024
|
if (typeof t.destroy == "function")
|
|
4017
4025
|
return t.destroy();
|
|
4018
|
-
i(a || new
|
|
4026
|
+
i(a || new is("pipe"));
|
|
4019
4027
|
}
|
|
4020
4028
|
};
|
|
4021
4029
|
}
|
|
4022
4030
|
function mr(t) {
|
|
4023
4031
|
t();
|
|
4024
4032
|
}
|
|
4025
|
-
function
|
|
4033
|
+
function ss(t, e) {
|
|
4026
4034
|
return t.pipe(e);
|
|
4027
4035
|
}
|
|
4028
|
-
function
|
|
4036
|
+
function os(t) {
|
|
4029
4037
|
return !t.length || typeof t[t.length - 1] != "function" ? br : t.pop();
|
|
4030
4038
|
}
|
|
4031
|
-
function
|
|
4039
|
+
function ls() {
|
|
4032
4040
|
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
|
|
4033
4041
|
e[r] = arguments[r];
|
|
4034
|
-
var i =
|
|
4042
|
+
var i = os(e);
|
|
4035
4043
|
if (Array.isArray(e[0]) && (e = e[0]), e.length < 2)
|
|
4036
|
-
throw new
|
|
4044
|
+
throw new rs("streams");
|
|
4037
4045
|
var n, s = e.map(function(a, u) {
|
|
4038
|
-
var f = u < e.length - 1,
|
|
4039
|
-
return
|
|
4046
|
+
var f = u < e.length - 1, _ = u > 0;
|
|
4047
|
+
return as(a, f, _, function(b) {
|
|
4040
4048
|
n || (n = b), b && s.forEach(mr), !f && (s.forEach(mr), i(n));
|
|
4041
4049
|
});
|
|
4042
4050
|
});
|
|
4043
|
-
return e.reduce(
|
|
4051
|
+
return e.reduce(ss);
|
|
4044
4052
|
}
|
|
4045
|
-
var
|
|
4053
|
+
var us = ls;
|
|
4046
4054
|
(function(t, e) {
|
|
4047
|
-
e = t.exports = di(), e.Stream = e, e.Readable = e, e.Writable = ci(), e.Duplex = Re(), e.Transform =
|
|
4055
|
+
e = t.exports = di(), e.Stream = e, e.Readable = e, e.Writable = ci(), e.Duplex = Re(), e.Transform = _i, e.PassThrough = es, e.finished = Qt, e.pipeline = us;
|
|
4048
4056
|
})(Mt, Mt.exports);
|
|
4049
4057
|
var yi = Mt.exports.Transform, wi = fe.exports;
|
|
4050
4058
|
function Se(t) {
|
|
@@ -4060,12 +4068,12 @@ Se.prototype.destroy = function(t) {
|
|
|
4060
4068
|
});
|
|
4061
4069
|
}
|
|
4062
4070
|
};
|
|
4063
|
-
function
|
|
4071
|
+
function fs(t, e, r) {
|
|
4064
4072
|
r(null, t);
|
|
4065
4073
|
}
|
|
4066
4074
|
function Zt(t) {
|
|
4067
4075
|
return function(e, r, i) {
|
|
4068
|
-
return typeof e == "function" && (i = r, r = e, e = {}), typeof r != "function" && (r =
|
|
4076
|
+
return typeof e == "function" && (i = r, r = e, e = {}), typeof r != "function" && (r = fs), typeof i != "function" && (i = null), t(e, r, i);
|
|
4069
4077
|
};
|
|
4070
4078
|
}
|
|
4071
4079
|
zt.exports = Zt(function(t, e, r) {
|
|
@@ -4084,7 +4092,7 @@ zt.exports.obj = Zt(function(t, e, r) {
|
|
|
4084
4092
|
var i = new Se(Object.assign({ objectMode: !0, highWaterMark: 16 }, t));
|
|
4085
4093
|
return i._transform = e, r && (i._flush = r), i;
|
|
4086
4094
|
});
|
|
4087
|
-
class
|
|
4095
|
+
class cs {
|
|
4088
4096
|
constructor(e, r = 4) {
|
|
4089
4097
|
this._string = null, this._type = "form", this._readOnly = !1, this._context = {}, this._onChangeFields = {}, this._keyIdx = 0, this._invisibleFields = [], this._fields = e, this._container = new Je(r, 6, !1, "root");
|
|
4090
4098
|
}
|
|
@@ -4133,7 +4141,7 @@ class fs {
|
|
|
4133
4141
|
parse(e, r) {
|
|
4134
4142
|
var i;
|
|
4135
4143
|
const { values: n = {}, readOnly: s = !1 } = r || {}, a = rt(e).filter((u) => u.tagName === "form")[0];
|
|
4136
|
-
this._string = ((i = a.attributes) == null ? void 0 : i.string) || null, this._string && (this._string =
|
|
4144
|
+
this._string = ((i = a.attributes) == null ? void 0 : i.string) || null, this._string && (this._string = q(this._string)), this._readOnly = s, this._context = n.id ? { active_id: n.id, active_ids: [n.id] } : {}, this._invisibleFields = [], this.parseNode({
|
|
4137
4145
|
fields: a.children,
|
|
4138
4146
|
container: this._container,
|
|
4139
4147
|
values: n
|
|
@@ -4147,10 +4155,10 @@ class fs {
|
|
|
4147
4155
|
const n = new jt();
|
|
4148
4156
|
e.filter((s) => typeof s == "object").forEach((s) => {
|
|
4149
4157
|
var a, u;
|
|
4150
|
-
const { tagName: f, attributes:
|
|
4151
|
-
let w = f,
|
|
4158
|
+
const { tagName: f, attributes: _, children: b } = s;
|
|
4159
|
+
let w = f, g = _;
|
|
4152
4160
|
if (f === "field") {
|
|
4153
|
-
const { name: R, widget: C } =
|
|
4161
|
+
const { name: R, widget: C } = _;
|
|
4154
4162
|
if (C)
|
|
4155
4163
|
w = C;
|
|
4156
4164
|
else if (R) {
|
|
@@ -4160,36 +4168,36 @@ class fs {
|
|
|
4160
4168
|
);
|
|
4161
4169
|
w = this._fields[R].type;
|
|
4162
4170
|
}
|
|
4163
|
-
|
|
4171
|
+
g = {
|
|
4164
4172
|
...this._fields[R],
|
|
4165
|
-
...
|
|
4173
|
+
..._,
|
|
4166
4174
|
fieldsWidgetType: this._fields[R].type
|
|
4167
4175
|
};
|
|
4168
4176
|
}
|
|
4169
4177
|
const m = Fi({
|
|
4170
|
-
tagAttributes:
|
|
4178
|
+
tagAttributes: g,
|
|
4171
4179
|
values: i,
|
|
4172
4180
|
fields: this._fields
|
|
4173
4181
|
});
|
|
4174
4182
|
let E;
|
|
4175
|
-
f === "button" &&
|
|
4176
|
-
states:
|
|
4183
|
+
f === "button" && g.states ? E = an({
|
|
4184
|
+
states: g.states,
|
|
4177
4185
|
values: i
|
|
4178
|
-
}) : E =
|
|
4179
|
-
fieldName:
|
|
4186
|
+
}) : E = nn({
|
|
4187
|
+
fieldName: g.name,
|
|
4180
4188
|
values: i,
|
|
4181
4189
|
fields: this._fields
|
|
4182
4190
|
});
|
|
4183
|
-
const S =
|
|
4184
|
-
context:
|
|
4191
|
+
const S = on({
|
|
4192
|
+
context: g.context || ((a = this._fields[g.name]) == null ? void 0 : a.context),
|
|
4185
4193
|
values: i,
|
|
4186
4194
|
fields: this._fields
|
|
4187
4195
|
});
|
|
4188
|
-
|
|
4189
|
-
|
|
4196
|
+
g.on_change && (this._onChangeFields[g.name] = fn(
|
|
4197
|
+
g.on_change
|
|
4190
4198
|
));
|
|
4191
4199
|
let F;
|
|
4192
|
-
vr(
|
|
4200
|
+
vr(g.domain) && (F = g.domain), vr((u = this._fields[g.name]) == null ? void 0 : u.domain) && (F = this._fields[g.name].domain), this._keyIdx = this._keyIdx + 1;
|
|
4193
4201
|
const c = {
|
|
4194
4202
|
...m,
|
|
4195
4203
|
...E,
|
|
@@ -4211,9 +4219,9 @@ class fs {
|
|
|
4211
4219
|
function vr(t) {
|
|
4212
4220
|
return t ? Array.isArray(t) && t.length > 0 ? !0 : typeof t == "string" && t !== "" && t !== "[]" : !1;
|
|
4213
4221
|
}
|
|
4214
|
-
class
|
|
4222
|
+
class ks {
|
|
4215
4223
|
constructor(e) {
|
|
4216
|
-
this._columns = [], this._string = null, this._type = "tree", this._colors = null, this._editable = null, this._fields = e;
|
|
4224
|
+
this._columns = [], this._string = null, this._type = "tree", this._colors = null, this._status = null, this._editable = null, this._fields = e;
|
|
4217
4225
|
}
|
|
4218
4226
|
get fields() {
|
|
4219
4227
|
return this._fields;
|
|
@@ -4230,18 +4238,21 @@ class Ms {
|
|
|
4230
4238
|
get colors() {
|
|
4231
4239
|
return this._colors;
|
|
4232
4240
|
}
|
|
4241
|
+
get status() {
|
|
4242
|
+
return this._status;
|
|
4243
|
+
}
|
|
4233
4244
|
get editable() {
|
|
4234
4245
|
return this._editable;
|
|
4235
4246
|
}
|
|
4236
4247
|
parse(e) {
|
|
4237
4248
|
const r = rt(e).filter((n) => n.tagName === "tree")[0];
|
|
4238
|
-
this._string = r.attributes.string || null, this._string && (this._string =
|
|
4249
|
+
this._string = r.attributes.string || null, this._string && (this._string = q(this._string)), this._colors = r.attributes.colors || null, this._colors && (this._colors = q(this._colors)), this._status = r.attributes.status || null, this._status && (this._status = q(this._status)), this._editable = r.attributes.editable || null;
|
|
4239
4250
|
const i = new jt();
|
|
4240
4251
|
r.children.forEach((n) => {
|
|
4241
4252
|
const { tagName: s, attributes: a } = n;
|
|
4242
4253
|
let u = null;
|
|
4243
4254
|
if (s === "field") {
|
|
4244
|
-
const { name: f, widget:
|
|
4255
|
+
const { name: f, widget: _ } = a;
|
|
4245
4256
|
let b = a;
|
|
4246
4257
|
if (f) {
|
|
4247
4258
|
if (!this._fields[f])
|
|
@@ -4253,7 +4264,7 @@ class Ms {
|
|
|
4253
4264
|
fieldsWidgetType: w == null ? void 0 : w.type
|
|
4254
4265
|
};
|
|
4255
4266
|
}
|
|
4256
|
-
if (
|
|
4267
|
+
if (_ && (u = _), !b.invisible) {
|
|
4257
4268
|
const w = i.createWidget(u, b);
|
|
4258
4269
|
this._columns.push(w);
|
|
4259
4270
|
}
|
|
@@ -4267,7 +4278,7 @@ class Ms {
|
|
|
4267
4278
|
});
|
|
4268
4279
|
}
|
|
4269
4280
|
}
|
|
4270
|
-
const
|
|
4281
|
+
const hs = {
|
|
4271
4282
|
text: "text",
|
|
4272
4283
|
many2one: "many2one",
|
|
4273
4284
|
char: "char",
|
|
@@ -4280,7 +4291,7 @@ const cs = {
|
|
|
4280
4291
|
date: "date",
|
|
4281
4292
|
datetime: "datetime"
|
|
4282
4293
|
};
|
|
4283
|
-
class
|
|
4294
|
+
class Ps {
|
|
4284
4295
|
get searchFields() {
|
|
4285
4296
|
return this._searchFields;
|
|
4286
4297
|
}
|
|
@@ -4300,7 +4311,7 @@ class ks {
|
|
|
4300
4311
|
this._searchFields = e, this._fields = r, this._formXml = i, this._simpleSearchContainer = new Je(n), this._advancedSearchContainer = new Je(n);
|
|
4301
4312
|
}
|
|
4302
4313
|
parse() {
|
|
4303
|
-
const e = new jt(), r = new
|
|
4314
|
+
const e = new jt(), r = new cs(this.fields);
|
|
4304
4315
|
r.parse(this.formXml), this.parseFields(
|
|
4305
4316
|
this.searchFields.primary,
|
|
4306
4317
|
e,
|
|
@@ -4323,15 +4334,15 @@ class ks {
|
|
|
4323
4334
|
name: n,
|
|
4324
4335
|
colspan: 2
|
|
4325
4336
|
}, { type: f } = u;
|
|
4326
|
-
let
|
|
4327
|
-
return
|
|
4337
|
+
let _ = (a = (s = i.findById(n)) == null ? void 0 : s.type) != null ? a : f;
|
|
4338
|
+
return hs[_] === void 0 && (_ = f), r.createWidget(_, u);
|
|
4328
4339
|
});
|
|
4329
4340
|
}
|
|
4330
4341
|
findById(e) {
|
|
4331
4342
|
return this.advancedSearchContainer.findById(e);
|
|
4332
4343
|
}
|
|
4333
4344
|
}
|
|
4334
|
-
const
|
|
4345
|
+
const Ns = ({
|
|
4335
4346
|
domain: t,
|
|
4336
4347
|
widgetFieldName: e
|
|
4337
4348
|
}) => {
|
|
@@ -4347,7 +4358,7 @@ const Ps = ({
|
|
|
4347
4358
|
)) : (u = n, f = "id"), u === e && r.push([f, s, a]);
|
|
4348
4359
|
}), r;
|
|
4349
4360
|
};
|
|
4350
|
-
class
|
|
4361
|
+
class ds {
|
|
4351
4362
|
constructor(e) {
|
|
4352
4363
|
this._action_id = null, this._position = null, e.action_id && (this._action_id = e.action_id), e.position && (this._position = e.position);
|
|
4353
4364
|
}
|
|
@@ -4358,14 +4369,14 @@ class hs {
|
|
|
4358
4369
|
return this._position;
|
|
4359
4370
|
}
|
|
4360
4371
|
}
|
|
4361
|
-
class
|
|
4372
|
+
class Is {
|
|
4362
4373
|
constructor(e) {
|
|
4363
4374
|
this._string = null, this._items = [];
|
|
4364
4375
|
const r = rt(e).filter((n) => n.tagName === "dashboard")[0];
|
|
4365
4376
|
this._string = r.attributes.string || null;
|
|
4366
4377
|
const { children: i } = r;
|
|
4367
4378
|
i.forEach((n) => {
|
|
4368
|
-
n.tagName === "dashboard_item" && this._items.push(new
|
|
4379
|
+
n.tagName === "dashboard_item" && this._items.push(new ds(n.attributes));
|
|
4369
4380
|
});
|
|
4370
4381
|
}
|
|
4371
4382
|
get string() {
|
|
@@ -4389,10 +4400,10 @@ class bi {
|
|
|
4389
4400
|
return this._timerange;
|
|
4390
4401
|
}
|
|
4391
4402
|
}
|
|
4392
|
-
const
|
|
4403
|
+
const _s = (t) => t === 1 || t === "1" || t === !0 || t === "True";
|
|
4393
4404
|
class mi extends bi {
|
|
4394
4405
|
constructor(e, r) {
|
|
4395
|
-
super(r), this._color = null, this._icon = null, this._totalDomain = null, this._showPercent = !1, this._suffix = null, this._type = e, this._color = r.attributes.color || null, this._color && (this._color =
|
|
4406
|
+
super(r), this._color = null, this._icon = null, this._totalDomain = null, this._showPercent = !1, this._suffix = null, this._type = e, this._color = r.attributes.color || null, this._color && (this._color = q(this._color)), this._icon = r.attributes.icon || null, this._icon && (this._icon = q(this._icon)), this._suffix = r.attributes.suffix || null, this._totalDomain = r.attributes.totalDomain || null, this._showPercent = _s(r.attributes.showPercent);
|
|
4396
4407
|
}
|
|
4397
4408
|
get color() {
|
|
4398
4409
|
return this._color;
|
|
@@ -4428,7 +4439,7 @@ class gs extends mi {
|
|
|
4428
4439
|
return this._operator;
|
|
4429
4440
|
}
|
|
4430
4441
|
}
|
|
4431
|
-
const
|
|
4442
|
+
const ps = (t) => {
|
|
4432
4443
|
const e = [];
|
|
4433
4444
|
let r;
|
|
4434
4445
|
if (t.forEach((i) => {
|
|
@@ -4438,10 +4449,10 @@ const _s = (t) => {
|
|
|
4438
4449
|
throw new Error(`Field ${a} doesn't have an axis`);
|
|
4439
4450
|
if (!a)
|
|
4440
4451
|
throw new Error("Missing name attribute for field");
|
|
4441
|
-
n === "x" ? r = new
|
|
4452
|
+
n === "x" ? r = new bs({
|
|
4442
4453
|
name: a
|
|
4443
4454
|
}) : n === "y" && e.push(
|
|
4444
|
-
new
|
|
4455
|
+
new ws({
|
|
4445
4456
|
name: a,
|
|
4446
4457
|
operator: s,
|
|
4447
4458
|
label: u,
|
|
@@ -4461,7 +4472,7 @@ const _s = (t) => {
|
|
|
4461
4472
|
class Dt extends bi {
|
|
4462
4473
|
constructor(e, r) {
|
|
4463
4474
|
super(r), this._type = e;
|
|
4464
|
-
const i =
|
|
4475
|
+
const i = ps(r.children);
|
|
4465
4476
|
this._x = i.x, this._y = i.y;
|
|
4466
4477
|
}
|
|
4467
4478
|
get x() {
|
|
@@ -4471,17 +4482,17 @@ class Dt extends bi {
|
|
|
4471
4482
|
return this._y;
|
|
4472
4483
|
}
|
|
4473
4484
|
}
|
|
4474
|
-
const
|
|
4485
|
+
const ys = {
|
|
4475
4486
|
indicator: mi,
|
|
4476
4487
|
indicatorField: gs,
|
|
4477
4488
|
line: Dt,
|
|
4478
4489
|
bar: Dt,
|
|
4479
4490
|
pie: Dt
|
|
4480
|
-
},
|
|
4491
|
+
}, Bs = (t) => {
|
|
4481
4492
|
const e = rt(t).filter((n) => n.tagName === "graph")[0], r = e.attributes.type;
|
|
4482
4493
|
if (!r)
|
|
4483
4494
|
throw new Error(`${r} is not a valid graph`);
|
|
4484
|
-
const i =
|
|
4495
|
+
const i = ys[r];
|
|
4485
4496
|
if (!i)
|
|
4486
4497
|
throw new Error(`${r} not found as a GraphModel`);
|
|
4487
4498
|
return new i(r, e);
|
|
@@ -4497,7 +4508,7 @@ class vi {
|
|
|
4497
4508
|
this._name = e, this._axis = r;
|
|
4498
4509
|
}
|
|
4499
4510
|
}
|
|
4500
|
-
class
|
|
4511
|
+
class ws extends vi {
|
|
4501
4512
|
constructor({
|
|
4502
4513
|
name: e,
|
|
4503
4514
|
operator: r,
|
|
@@ -4516,12 +4527,12 @@ class ys extends vi {
|
|
|
4516
4527
|
return this._stacked;
|
|
4517
4528
|
}
|
|
4518
4529
|
}
|
|
4519
|
-
class
|
|
4530
|
+
class bs extends vi {
|
|
4520
4531
|
constructor({ name: e }) {
|
|
4521
4532
|
super({ name: e, axis: "x" });
|
|
4522
4533
|
}
|
|
4523
4534
|
}
|
|
4524
|
-
const
|
|
4535
|
+
const ms = ({ ooui: t }) => {
|
|
4525
4536
|
const r = [t.x.name];
|
|
4526
4537
|
return t.y ? (t.y.forEach((i) => {
|
|
4527
4538
|
i.operator !== "count" && !r.includes(i.name) && r.push(i.name), i.label && !r.includes(i.label) && r.push(i.label);
|
|
@@ -4543,25 +4554,25 @@ function er({
|
|
|
4543
4554
|
}
|
|
4544
4555
|
return { value: n, label: n };
|
|
4545
4556
|
}
|
|
4546
|
-
const
|
|
4557
|
+
const Ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4547
4558
|
__proto__: null,
|
|
4548
|
-
getFieldsToRetrieve:
|
|
4559
|
+
getFieldsToRetrieve: ms,
|
|
4549
4560
|
getValueAndLabelForField: er
|
|
4550
4561
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4551
|
-
function
|
|
4562
|
+
function vs({
|
|
4552
4563
|
values: t,
|
|
4553
4564
|
timerange: e
|
|
4554
4565
|
}) {
|
|
4555
|
-
const r =
|
|
4566
|
+
const r = Rs({
|
|
4556
4567
|
values: t,
|
|
4557
4568
|
timerange: e
|
|
4558
4569
|
});
|
|
4559
|
-
return
|
|
4570
|
+
return Es({
|
|
4560
4571
|
values: r,
|
|
4561
4572
|
timerange: e
|
|
4562
4573
|
});
|
|
4563
4574
|
}
|
|
4564
|
-
function
|
|
4575
|
+
function Es({
|
|
4565
4576
|
values: t,
|
|
4566
4577
|
timerange: e
|
|
4567
4578
|
}) {
|
|
@@ -4573,28 +4584,28 @@ function vs({
|
|
|
4573
4584
|
return Object.keys(i).forEach((a) => {
|
|
4574
4585
|
const u = i[a];
|
|
4575
4586
|
for (let f = 0; f < u.length; f++) {
|
|
4576
|
-
const
|
|
4577
|
-
if (r.push(
|
|
4587
|
+
const _ = u[f];
|
|
4588
|
+
if (r.push(_), f === u.length - 1)
|
|
4578
4589
|
return;
|
|
4579
|
-
const b =
|
|
4590
|
+
const b = _.x, w = u[f + 1].x;
|
|
4580
4591
|
if (!Ei([b, w], n)) {
|
|
4581
|
-
const
|
|
4592
|
+
const g = xs({
|
|
4582
4593
|
dates: [b, w],
|
|
4583
4594
|
timerange: e
|
|
4584
4595
|
});
|
|
4585
4596
|
r = r.concat(
|
|
4586
|
-
|
|
4597
|
+
g.map((m) => ({
|
|
4587
4598
|
x: m,
|
|
4588
4599
|
value: 0,
|
|
4589
|
-
type:
|
|
4590
|
-
stacked:
|
|
4600
|
+
type: _.type,
|
|
4601
|
+
stacked: _.stacked
|
|
4591
4602
|
}))
|
|
4592
4603
|
);
|
|
4593
4604
|
}
|
|
4594
4605
|
}
|
|
4595
4606
|
}), r.sort((a, u) => a.x < u.x ? -1 : a.x > u.x ? 1 : 0);
|
|
4596
4607
|
}
|
|
4597
|
-
function
|
|
4608
|
+
function xs({
|
|
4598
4609
|
dates: t,
|
|
4599
4610
|
timerange: e
|
|
4600
4611
|
}) {
|
|
@@ -4605,18 +4616,18 @@ function Es({
|
|
|
4605
4616
|
for (let s = 0; s < n.length - 1; s++) {
|
|
4606
4617
|
const a = n[s], u = n[s + 1];
|
|
4607
4618
|
if (!Ei([a, u], i)) {
|
|
4608
|
-
let f = Me(a, Ge(i)).add(1, i),
|
|
4609
|
-
for (; f.isBefore(
|
|
4619
|
+
let f = Me(a, Ge(i)).add(1, i), _ = Me(u, Ge(i));
|
|
4620
|
+
for (; f.isBefore(_); )
|
|
4610
4621
|
r.push(f.format(Ge(i))), f.add(1, i);
|
|
4611
4622
|
}
|
|
4612
4623
|
}
|
|
4613
4624
|
return r;
|
|
4614
4625
|
}
|
|
4615
|
-
function
|
|
4626
|
+
function Rs({
|
|
4616
4627
|
values: t,
|
|
4617
4628
|
timerange: e
|
|
4618
4629
|
}) {
|
|
4619
|
-
const r =
|
|
4630
|
+
const r = Ss({
|
|
4620
4631
|
values: t,
|
|
4621
4632
|
timerange: e
|
|
4622
4633
|
});
|
|
@@ -4627,7 +4638,7 @@ function xs({
|
|
|
4627
4638
|
});
|
|
4628
4639
|
return Object.keys(n).forEach((s) => {
|
|
4629
4640
|
const a = n[s], u = a[0].operator === "count" ? "+" : a[0].operator, f = tt({
|
|
4630
|
-
values: a.map((
|
|
4641
|
+
values: a.map((_) => _.value),
|
|
4631
4642
|
operator: u
|
|
4632
4643
|
});
|
|
4633
4644
|
i.push({
|
|
@@ -4636,23 +4647,23 @@ function xs({
|
|
|
4636
4647
|
});
|
|
4637
4648
|
}), i;
|
|
4638
4649
|
}
|
|
4639
|
-
function
|
|
4650
|
+
function Ss({
|
|
4640
4651
|
values: t,
|
|
4641
4652
|
timerange: e
|
|
4642
4653
|
}) {
|
|
4643
4654
|
return t.map((r) => ({
|
|
4644
4655
|
...r,
|
|
4645
|
-
x:
|
|
4656
|
+
x: Ts({
|
|
4646
4657
|
date: r.x,
|
|
4647
4658
|
timerange: e
|
|
4648
4659
|
})
|
|
4649
4660
|
}));
|
|
4650
4661
|
}
|
|
4651
|
-
function
|
|
4662
|
+
function Ts({
|
|
4652
4663
|
date: t,
|
|
4653
4664
|
timerange: e
|
|
4654
4665
|
}) {
|
|
4655
|
-
let r =
|
|
4666
|
+
let r = Cs(t);
|
|
4656
4667
|
const i = Me(t, r);
|
|
4657
4668
|
switch (e) {
|
|
4658
4669
|
case "hour": {
|
|
@@ -4678,7 +4689,7 @@ function Ss({
|
|
|
4678
4689
|
}
|
|
4679
4690
|
return i.format(r);
|
|
4680
4691
|
}
|
|
4681
|
-
function
|
|
4692
|
+
function Cs(t) {
|
|
4682
4693
|
return t.indexOf(":") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
4683
4694
|
}
|
|
4684
4695
|
function Ei(t, e) {
|
|
@@ -4719,7 +4730,7 @@ function Ge(t) {
|
|
|
4719
4730
|
return "YYYY";
|
|
4720
4731
|
}
|
|
4721
4732
|
}
|
|
4722
|
-
const
|
|
4733
|
+
const As = {
|
|
4723
4734
|
count: "count",
|
|
4724
4735
|
"+": "sum",
|
|
4725
4736
|
"-": "subtract",
|
|
@@ -4727,7 +4738,7 @@ const Cs = {
|
|
|
4727
4738
|
avg: "average",
|
|
4728
4739
|
min: "min",
|
|
4729
4740
|
max: "max"
|
|
4730
|
-
},
|
|
4741
|
+
}, Fs = ({
|
|
4731
4742
|
ooui: t,
|
|
4732
4743
|
values: e,
|
|
4733
4744
|
fields: r,
|
|
@@ -4738,12 +4749,12 @@ const Cs = {
|
|
|
4738
4749
|
values: e,
|
|
4739
4750
|
fields: r
|
|
4740
4751
|
}), s = [];
|
|
4741
|
-
t.y.forEach((
|
|
4752
|
+
t.y.forEach((g) => {
|
|
4742
4753
|
Object.keys(n).forEach((m) => {
|
|
4743
4754
|
const E = n[m].label, S = n[m].entries;
|
|
4744
|
-
if (
|
|
4755
|
+
if (g.label) {
|
|
4745
4756
|
const F = Lt({
|
|
4746
|
-
fieldName:
|
|
4757
|
+
fieldName: g.label,
|
|
4747
4758
|
values: S,
|
|
4748
4759
|
fields: r
|
|
4749
4760
|
});
|
|
@@ -4751,53 +4762,53 @@ const Cs = {
|
|
|
4751
4762
|
const p = F[c].entries, R = F[c].label, C = Bt({
|
|
4752
4763
|
entries: p,
|
|
4753
4764
|
fields: r,
|
|
4754
|
-
fieldName:
|
|
4765
|
+
fieldName: g.name
|
|
4755
4766
|
}), D = tt({
|
|
4756
4767
|
values: C,
|
|
4757
|
-
operator:
|
|
4768
|
+
operator: g.operator
|
|
4758
4769
|
});
|
|
4759
4770
|
s.push({
|
|
4760
4771
|
x: E || !1,
|
|
4761
4772
|
value: D,
|
|
4762
4773
|
type: R,
|
|
4763
|
-
operator:
|
|
4764
|
-
stacked:
|
|
4774
|
+
operator: g.operator,
|
|
4775
|
+
stacked: g.stacked
|
|
4765
4776
|
});
|
|
4766
4777
|
});
|
|
4767
4778
|
} else {
|
|
4768
4779
|
const F = Bt({
|
|
4769
4780
|
entries: S,
|
|
4770
4781
|
fields: r,
|
|
4771
|
-
fieldName:
|
|
4782
|
+
fieldName: g.name
|
|
4772
4783
|
}), c = tt({
|
|
4773
4784
|
values: F,
|
|
4774
|
-
operator:
|
|
4785
|
+
operator: g.operator
|
|
4775
4786
|
});
|
|
4776
4787
|
s.push({
|
|
4777
4788
|
x: E || !1,
|
|
4778
4789
|
value: c,
|
|
4779
4790
|
type: Ri({
|
|
4780
|
-
yAxis:
|
|
4791
|
+
yAxis: g,
|
|
4781
4792
|
fields: r
|
|
4782
4793
|
}),
|
|
4783
|
-
operator:
|
|
4784
|
-
stacked:
|
|
4794
|
+
operator: g.operator,
|
|
4795
|
+
stacked: g.stacked
|
|
4785
4796
|
});
|
|
4786
4797
|
}
|
|
4787
4798
|
});
|
|
4788
4799
|
});
|
|
4789
|
-
const a = t.y.some((
|
|
4790
|
-
let
|
|
4791
|
-
u && t.y.filter((
|
|
4792
|
-
let b = [...
|
|
4793
|
-
t.type === "pie" && b.some((
|
|
4794
|
-
(
|
|
4800
|
+
const a = t.y.some((g) => g.label !== void 0), u = t.y.some((g) => g.stacked !== void 0);
|
|
4801
|
+
let _ = [...s.sort((g, m) => g.x < m.x ? -1 : g.x > m.x ? 1 : 0)];
|
|
4802
|
+
u && t.y.filter((g) => g.stacked !== void 0).length > 1 && (_ = _.map((g) => ({ ...g, type: `${g.type} - ${g.stacked}` })));
|
|
4803
|
+
let b = [..._];
|
|
4804
|
+
t.type === "pie" && b.some((g) => g.x === !1) ? b = b.map((g) => g.x === !1 ? { ...g, x: (i == null ? void 0 : i.uninformedString) || "Not informed" } : g) : _.some((g) => g.x === !1) && (b = b.filter(
|
|
4805
|
+
(g) => g.x !== !1
|
|
4795
4806
|
));
|
|
4796
4807
|
let w = b;
|
|
4797
|
-
return t.timerange ? w =
|
|
4808
|
+
return t.timerange ? w = vs({
|
|
4798
4809
|
values: w,
|
|
4799
4810
|
timerange: t.timerange
|
|
4800
|
-
}) : t.type == "pie" && (w = b.sort((
|
|
4811
|
+
}) : t.type == "pie" && (w = b.sort((g, m) => m.value - g.value)), {
|
|
4801
4812
|
data: w,
|
|
4802
4813
|
isGroup: u || a,
|
|
4803
4814
|
isStack: u
|
|
@@ -4867,7 +4878,7 @@ function Lt({
|
|
|
4867
4878
|
i[s] || (i[s] = { label: a, entries: [] }), i[s].entries.push(n);
|
|
4868
4879
|
}), i;
|
|
4869
4880
|
}
|
|
4870
|
-
function
|
|
4881
|
+
function Os(t) {
|
|
4871
4882
|
let e = [];
|
|
4872
4883
|
return Object.keys(t).forEach((r) => {
|
|
4873
4884
|
const i = t[r];
|
|
@@ -4881,14 +4892,14 @@ function Ri({
|
|
|
4881
4892
|
const r = e[t.name];
|
|
4882
4893
|
return r && r.string ? r.string : t.name;
|
|
4883
4894
|
}
|
|
4884
|
-
const
|
|
4895
|
+
const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4885
4896
|
__proto__: null,
|
|
4886
|
-
labelsForOperator:
|
|
4887
|
-
processGraphData:
|
|
4897
|
+
labelsForOperator: As,
|
|
4898
|
+
processGraphData: Fs,
|
|
4888
4899
|
getValuesForYField: Bt,
|
|
4889
4900
|
getValueForOperator: tt,
|
|
4890
4901
|
getValuesGroupedByField: Lt,
|
|
4891
|
-
getAllObjectsInGroupedValues:
|
|
4902
|
+
getAllObjectsInGroupedValues: Os,
|
|
4892
4903
|
getYAxisFieldname: Ri
|
|
4893
4904
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4894
4905
|
export {
|
|
@@ -4901,21 +4912,21 @@ export {
|
|
|
4901
4912
|
tn as CodeEditor,
|
|
4902
4913
|
Je as Container,
|
|
4903
4914
|
Ce as ContainerWidget,
|
|
4904
|
-
|
|
4905
|
-
|
|
4915
|
+
Is as Dashboard,
|
|
4916
|
+
ds as DashboardItem,
|
|
4906
4917
|
Wi as Date,
|
|
4907
4918
|
ji as DateTime,
|
|
4908
4919
|
U as Field,
|
|
4909
4920
|
Wt as Float,
|
|
4910
4921
|
Li as FloatTime,
|
|
4911
|
-
|
|
4922
|
+
cs as Form,
|
|
4912
4923
|
bi as Graph,
|
|
4913
4924
|
vi as GraphAxis,
|
|
4914
4925
|
Dt as GraphChart,
|
|
4915
4926
|
mi as GraphIndicator,
|
|
4916
4927
|
gs as GraphIndicatorField,
|
|
4917
|
-
|
|
4918
|
-
|
|
4928
|
+
bs as GraphXAxis,
|
|
4929
|
+
ws as GraphYAxis,
|
|
4919
4930
|
Mi as Group,
|
|
4920
4931
|
$i as Image,
|
|
4921
4932
|
Ji as Indicator,
|
|
@@ -4932,8 +4943,8 @@ export {
|
|
|
4932
4943
|
Ui as ProgressBar,
|
|
4933
4944
|
Qi as Radio,
|
|
4934
4945
|
qi as Reference,
|
|
4935
|
-
|
|
4936
|
-
|
|
4946
|
+
hs as SearchFieldTypes,
|
|
4947
|
+
Ps as SearchFilter,
|
|
4937
4948
|
Pe as Selection,
|
|
4938
4949
|
zi as Separator,
|
|
4939
4950
|
en as Steps,
|
|
@@ -4941,13 +4952,14 @@ export {
|
|
|
4941
4952
|
Xi as Tag,
|
|
4942
4953
|
Ki as Tags,
|
|
4943
4954
|
Ut as Text,
|
|
4955
|
+
rn as Time,
|
|
4944
4956
|
Gi as Timeline,
|
|
4945
|
-
|
|
4957
|
+
ks as Tree,
|
|
4946
4958
|
Te as Widget,
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4959
|
+
Ls as graphFieldUtils,
|
|
4960
|
+
Us as graphProcessor,
|
|
4961
|
+
on as parseContext,
|
|
4962
|
+
Bs as parseGraph,
|
|
4963
|
+
Ns as transformDomainForChildWidget
|
|
4952
4964
|
};
|
|
4953
4965
|
//# sourceMappingURL=ooui.es.js.map
|