@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.17 → 0.0.1-alpha.18
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/openapi-k8s-toolkit.es.js +957 -956
- package/dist/openapi-k8s-toolkit.es.js.map +1 -1
- package/dist/openapi-k8s-toolkit.umd.js +54 -54
- package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
- package/dist/types/components/molecules/EnrichedTable/EnrichedTable.d.ts +1 -0
- package/package.json +1 -1
|
@@ -300,11 +300,11 @@ function bE(e) {
|
|
|
300
300
|
return pE(Ra("", null, null, null, [""], e = hE(e), 0, [0], e));
|
|
301
301
|
}
|
|
302
302
|
function Ra(e, t, n, i, o, a, u, l, f) {
|
|
303
|
-
for (var y = 0, g = 0, d = u, v = 0, O = 0,
|
|
304
|
-
switch (
|
|
303
|
+
for (var y = 0, g = 0, d = u, v = 0, O = 0, E = 0, A = 1, w = 1, R = 1, L = 0, k = "", x = o, I = a, T = i, D = k; w; )
|
|
304
|
+
switch (E = L, L = ur()) {
|
|
305
305
|
case 40:
|
|
306
|
-
if (
|
|
307
|
-
Ba(D += ze(kc(L), "&", "&\f"), "&\f", Dd(y ? l[y - 1] : 0)) != -1 && (
|
|
306
|
+
if (E != 108 && rn(D, d - 1) == 58) {
|
|
307
|
+
Ba(D += ze(kc(L), "&", "&\f"), "&\f", Dd(y ? l[y - 1] : 0)) != -1 && (R = -1);
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
310
|
case 34:
|
|
@@ -316,7 +316,7 @@ function Ra(e, t, n, i, o, a, u, l, f) {
|
|
|
316
316
|
case 10:
|
|
317
317
|
case 13:
|
|
318
318
|
case 32:
|
|
319
|
-
D += dE(
|
|
319
|
+
D += dE(E);
|
|
320
320
|
break;
|
|
321
321
|
case 92:
|
|
322
322
|
D += gE(Da() - 1, 7);
|
|
@@ -325,15 +325,15 @@ function Ra(e, t, n, i, o, a, u, l, f) {
|
|
|
325
325
|
switch (ti()) {
|
|
326
326
|
case 42:
|
|
327
327
|
case 47:
|
|
328
|
-
Qs(wE(yE(ur(), Da()), t, n, f), f), (fo(
|
|
328
|
+
Qs(wE(yE(ur(), Da()), t, n, f), f), (fo(E || 1) == 5 || fo(ti() || 1) == 5) && or(D) && Oi(D, -1, void 0) !== " " && (D += " ");
|
|
329
329
|
break;
|
|
330
330
|
default:
|
|
331
331
|
D += "/";
|
|
332
332
|
}
|
|
333
333
|
break;
|
|
334
|
-
case 123 *
|
|
335
|
-
l[y++] = or(D) *
|
|
336
|
-
case 125 *
|
|
334
|
+
case 123 * A:
|
|
335
|
+
l[y++] = or(D) * R;
|
|
336
|
+
case 125 * A:
|
|
337
337
|
case 59:
|
|
338
338
|
case 0:
|
|
339
339
|
switch (L) {
|
|
@@ -341,7 +341,7 @@ function Ra(e, t, n, i, o, a, u, l, f) {
|
|
|
341
341
|
case 125:
|
|
342
342
|
w = 0;
|
|
343
343
|
case 59 + g:
|
|
344
|
-
|
|
344
|
+
R == -1 && (D = ze(D, /\f/g, "")), O > 0 && (or(D) - d || A === 0 && E === 47) && Qs(O > 32 ? gp(D + ";", i, n, d - 1, f) : gp(ze(D, " ", "") + ";", i, n, d - 2, f), f);
|
|
345
345
|
break;
|
|
346
346
|
case 59:
|
|
347
347
|
D += ";";
|
|
@@ -364,37 +364,37 @@ function Ra(e, t, n, i, o, a, u, l, f) {
|
|
|
364
364
|
g ? Ra(e, T, T, i && Qs(dp(e, T, T, 0, 0, o, l, k, o, x = [], d, I), I), o, I, d, l, i ? x : I) : Ra(D, T, T, T, [""], I, 0, l, I);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
y = g = O = 0,
|
|
367
|
+
y = g = O = 0, A = R = 1, k = D = "", d = u;
|
|
368
368
|
break;
|
|
369
369
|
case 58:
|
|
370
|
-
d = 1 + or(D), O =
|
|
370
|
+
d = 1 + or(D), O = E;
|
|
371
371
|
default:
|
|
372
|
-
if (
|
|
372
|
+
if (A < 1) {
|
|
373
373
|
if (L == 123)
|
|
374
|
-
--
|
|
375
|
-
else if (L == 125 &&
|
|
374
|
+
--A;
|
|
375
|
+
else if (L == 125 && A++ == 0 && fE() == 125)
|
|
376
376
|
continue;
|
|
377
377
|
}
|
|
378
|
-
switch (D += kl(L), L *
|
|
378
|
+
switch (D += kl(L), L * A) {
|
|
379
379
|
case 38:
|
|
380
|
-
|
|
380
|
+
R = g > 0 ? 1 : (D += "\f", -1);
|
|
381
381
|
break;
|
|
382
382
|
case 44:
|
|
383
|
-
l[y++] = (or(D) - 1) *
|
|
383
|
+
l[y++] = (or(D) - 1) * R, R = 1;
|
|
384
384
|
break;
|
|
385
385
|
case 64:
|
|
386
386
|
ti() === 45 && (D += kc(ur())), v = ti(), g = d = or(k = D += mE(Da())), L++;
|
|
387
387
|
break;
|
|
388
388
|
case 45:
|
|
389
|
-
|
|
389
|
+
E === 45 && or(D) == 2 && (A = 0);
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
392
|
return a;
|
|
393
393
|
}
|
|
394
394
|
function dp(e, t, n, i, o, a, u, l, f, y, g, d) {
|
|
395
|
-
for (var v = o - 1, O = o === 0 ? a : [""],
|
|
396
|
-
for (var L = 0, k = Oi(e, v + 1, v = Dd(w = u[
|
|
397
|
-
(x = Rd(w > 0 ? O[L] + " " + k : ze(k, /&\f/g, O[L]))) && (f[
|
|
395
|
+
for (var v = o - 1, O = o === 0 ? a : [""], E = Pd(O), A = 0, w = 0, R = 0; A < i; ++A)
|
|
396
|
+
for (var L = 0, k = Oi(e, v + 1, v = Dd(w = u[A])), x = e; L < E; ++L)
|
|
397
|
+
(x = Rd(w > 0 ? O[L] + " " + k : ze(k, /&\f/g, O[L]))) && (f[R++] = x);
|
|
398
398
|
return Za(e, t, n, o === 0 ? Xa : l, f, y, g, d);
|
|
399
399
|
}
|
|
400
400
|
function wE(e, t, n, i) {
|
|
@@ -931,16 +931,16 @@ var Wd = function(e) {
|
|
|
931
931
|
}(this)), Il(this, function() {
|
|
932
932
|
return function(a) {
|
|
933
933
|
for (var u = a.getTag(), l = u.length, f = "", y = function(d) {
|
|
934
|
-
var v = function(
|
|
935
|
-
return Wa.get(
|
|
934
|
+
var v = function(R) {
|
|
935
|
+
return Wa.get(R);
|
|
936
936
|
}(d);
|
|
937
937
|
if (v === void 0) return "continue";
|
|
938
|
-
var O = a.names.get(v),
|
|
939
|
-
if (O === void 0 ||
|
|
940
|
-
var
|
|
941
|
-
O !== void 0 && O.forEach(function(
|
|
942
|
-
|
|
943
|
-
}), f += "".concat(
|
|
938
|
+
var O = a.names.get(v), E = u.getGroup(d);
|
|
939
|
+
if (O === void 0 || E.length === 0) return "continue";
|
|
940
|
+
var A = "".concat(Ti, ".g").concat(d, '[id="').concat(v, '"]'), w = "";
|
|
941
|
+
O !== void 0 && O.forEach(function(R) {
|
|
942
|
+
R.length > 0 && (w += "".concat(R, ","));
|
|
943
|
+
}), f += "".concat(E).concat(A, '{content:"').concat(w, '"}').concat(`/*!sc*/
|
|
944
944
|
`);
|
|
945
945
|
}, g = 0; g < l; g++) y(g);
|
|
946
946
|
return f;
|
|
@@ -985,18 +985,18 @@ function Hd(e, t) {
|
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
987
|
function tS(e) {
|
|
988
|
-
var t, n, i, o = hs, a = o.options, u = a === void 0 ? hs : a, l = o.plugins, f = l === void 0 ? tu : l, y = function(v, O,
|
|
989
|
-
return
|
|
988
|
+
var t, n, i, o = hs, a = o.options, u = a === void 0 ? hs : a, l = o.plugins, f = l === void 0 ? tu : l, y = function(v, O, E) {
|
|
989
|
+
return E === n || E.startsWith(n) && E.endsWith(n) && E.replaceAll(n, "").length > 0 ? ".".concat(t) : v;
|
|
990
990
|
}, g = f.slice();
|
|
991
991
|
g.push(function(v) {
|
|
992
992
|
v.type === Xa && v.value.includes("&") && (v.props[0] = v.props[0].replace(ZE, n).replace(i, y));
|
|
993
993
|
}), u.prefix && g.push(SE), g.push(vE);
|
|
994
|
-
var d = function(v, O,
|
|
995
|
-
O === void 0 && (O = ""),
|
|
996
|
-
var w = v.replace(eS, ""),
|
|
997
|
-
u.namespace && (
|
|
994
|
+
var d = function(v, O, E, A) {
|
|
995
|
+
O === void 0 && (O = ""), E === void 0 && (E = ""), A === void 0 && (A = "&"), t = A, n = O, i = new RegExp("\\".concat(n, "\\b"), "g");
|
|
996
|
+
var w = v.replace(eS, ""), R = bE(E || O ? "".concat(E, " ").concat(O, " { ").concat(w, " }") : w);
|
|
997
|
+
u.namespace && (R = Hd(R, u.namespace));
|
|
998
998
|
var L = [];
|
|
999
|
-
return qa(
|
|
999
|
+
return qa(R, AE(g.concat(EE(function(k) {
|
|
1000
1000
|
return L.push(k);
|
|
1001
1001
|
})))), L;
|
|
1002
1002
|
};
|
|
@@ -1107,17 +1107,17 @@ function aS(e, t, n) {
|
|
|
1107
1107
|
return I ? "".concat(I, "-").concat(D) : D;
|
|
1108
1108
|
}(t.displayName, t.parentComponentId) : f, g = t.displayName, d = g === void 0 ? function(x) {
|
|
1109
1109
|
return Tc(x) ? "styled.".concat(x) : "Styled(".concat(jd(x), ")");
|
|
1110
|
-
}(e) : g, v = t.displayName && t.componentId ? "".concat(mp(t.displayName), "-").concat(t.componentId) : t.componentId || y, O = i && o.attrs ? o.attrs.concat(l).filter(Boolean) : l,
|
|
1110
|
+
}(e) : g, v = t.displayName && t.componentId ? "".concat(mp(t.displayName), "-").concat(t.componentId) : t.componentId || y, O = i && o.attrs ? o.attrs.concat(l).filter(Boolean) : l, E = t.shouldForwardProp;
|
|
1111
1111
|
if (i && o.shouldForwardProp) {
|
|
1112
|
-
var
|
|
1112
|
+
var A = o.shouldForwardProp;
|
|
1113
1113
|
if (t.shouldForwardProp) {
|
|
1114
1114
|
var w = t.shouldForwardProp;
|
|
1115
|
-
|
|
1116
|
-
return
|
|
1115
|
+
E = function(x, I) {
|
|
1116
|
+
return A(x, I) && w(x, I);
|
|
1117
1117
|
};
|
|
1118
|
-
} else
|
|
1118
|
+
} else E = A;
|
|
1119
1119
|
}
|
|
1120
|
-
var
|
|
1120
|
+
var R = new oS(n, v, i ? o.componentStyle : void 0);
|
|
1121
1121
|
function L(x, I) {
|
|
1122
1122
|
return function(T, D, K) {
|
|
1123
1123
|
var re = T.attrs, ae = T.componentStyle, ue = T.defaultProps, pe = T.foldedComponentIds, ye = T.styledComponentId, he = T.target, ce = xn.useContext(Yd), Fe = xp(), ke = T.shouldForwardProp || Fe.shouldForwardProp;
|
|
@@ -1141,7 +1141,7 @@ function aS(e, t, n) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
Qe.env.NODE_ENV !== "production" && (L.displayName = d);
|
|
1143
1143
|
var k = xn.forwardRef(L);
|
|
1144
|
-
return k.attrs = O, k.componentStyle =
|
|
1144
|
+
return k.attrs = O, k.componentStyle = R, k.shouldForwardProp = E, Qe.env.NODE_ENV !== "production" && (k.displayName = d), k.foldedComponentIds = i ? Si(o.foldedComponentIds, o.styledComponentId) : "", k.styledComponentId = v, k.target = i ? o.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
|
|
1145
1145
|
return this._foldedDefaultProps;
|
|
1146
1146
|
}, set: function(x) {
|
|
1147
1147
|
this._foldedDefaultProps = i ? function(I) {
|
|
@@ -1246,14 +1246,14 @@ function cS() {
|
|
|
1246
1246
|
var Js = {}, Fp;
|
|
1247
1247
|
function lS() {
|
|
1248
1248
|
return Fp || (Fp = 1, Qe.env.NODE_ENV !== "production" && function() {
|
|
1249
|
-
var e = xn, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), l = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"),
|
|
1249
|
+
var e = xn, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), l = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), E = Symbol.iterator, A = "@@iterator";
|
|
1250
1250
|
function w(M) {
|
|
1251
1251
|
if (M === null || typeof M != "object")
|
|
1252
1252
|
return null;
|
|
1253
|
-
var oe =
|
|
1253
|
+
var oe = E && M[E] || M[A];
|
|
1254
1254
|
return typeof oe == "function" ? oe : null;
|
|
1255
1255
|
}
|
|
1256
|
-
var
|
|
1256
|
+
var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1257
1257
|
function L(M) {
|
|
1258
1258
|
{
|
|
1259
1259
|
for (var oe = arguments.length, de = new Array(oe > 1 ? oe - 1 : 0), Ce = 1; Ce < oe; Ce++)
|
|
@@ -1263,7 +1263,7 @@ function lS() {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
function k(M, oe, de) {
|
|
1265
1265
|
{
|
|
1266
|
-
var Ce =
|
|
1266
|
+
var Ce = R.ReactDebugCurrentFrame, ot = Ce.getStackAddendum();
|
|
1267
1267
|
ot !== "" && (oe += "%s", de = de.concat([ot]));
|
|
1268
1268
|
var at = de.map(function(Xe) {
|
|
1269
1269
|
return String(Xe);
|
|
@@ -1397,7 +1397,7 @@ function lS() {
|
|
|
1397
1397
|
ce < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
|
-
var Ae =
|
|
1400
|
+
var Ae = R.ReactCurrentDispatcher, Ve;
|
|
1401
1401
|
function ve(M, oe, de) {
|
|
1402
1402
|
{
|
|
1403
1403
|
if (Ve === void 0)
|
|
@@ -1523,7 +1523,7 @@ function lS() {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
return "";
|
|
1525
1525
|
}
|
|
1526
|
-
var me = Object.prototype.hasOwnProperty, Ee = {}, Me =
|
|
1526
|
+
var me = Object.prototype.hasOwnProperty, Ee = {}, Me = R.ReactDebugCurrentFrame;
|
|
1527
1527
|
function xt(M) {
|
|
1528
1528
|
if (M) {
|
|
1529
1529
|
var oe = M._owner, de = Pt(M.type, M._source, oe ? oe.type : null);
|
|
@@ -1574,7 +1574,7 @@ function lS() {
|
|
|
1574
1574
|
if (At(M))
|
|
1575
1575
|
return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(M)), et(M);
|
|
1576
1576
|
}
|
|
1577
|
-
var _e =
|
|
1577
|
+
var _e = R.ReactCurrentOwner, Te = {
|
|
1578
1578
|
key: !0,
|
|
1579
1579
|
ref: !0,
|
|
1580
1580
|
__self: !0,
|
|
@@ -1596,7 +1596,7 @@ function lS() {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
return M.key !== void 0;
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function P(M, oe) {
|
|
1600
1600
|
typeof M.ref == "string" && _e.current;
|
|
1601
1601
|
}
|
|
1602
1602
|
function V(M, oe) {
|
|
@@ -1653,7 +1653,7 @@ function lS() {
|
|
|
1653
1653
|
function Pe(M, oe, de, Ce, ot) {
|
|
1654
1654
|
{
|
|
1655
1655
|
var at, Xe = {}, Ke = null, Zt = null;
|
|
1656
|
-
de !== void 0 && ($t(de), Ke = "" + de), b(oe) && ($t(oe.key), Ke = "" + oe.key), p(oe) && (Zt = oe.ref,
|
|
1656
|
+
de !== void 0 && ($t(de), Ke = "" + de), b(oe) && ($t(oe.key), Ke = "" + oe.key), p(oe) && (Zt = oe.ref, P(oe, ot));
|
|
1657
1657
|
for (at in oe)
|
|
1658
1658
|
me.call(oe, at) && !Te.hasOwnProperty(at) && (Xe[at] = oe[at]);
|
|
1659
1659
|
if (M && M.defaultProps) {
|
|
@@ -1668,7 +1668,7 @@ function lS() {
|
|
|
1668
1668
|
return X(M, Ke, Zt, ot, Ce, _e.current, Xe);
|
|
1669
1669
|
}
|
|
1670
1670
|
}
|
|
1671
|
-
var ft =
|
|
1671
|
+
var ft = R.ReactCurrentOwner, st = R.ReactDebugCurrentFrame;
|
|
1672
1672
|
function ct(M) {
|
|
1673
1673
|
if (M) {
|
|
1674
1674
|
var oe = M._owner, de = Pt(M.type, M._source, oe ? oe.type : null);
|
|
@@ -1845,38 +1845,38 @@ const fS = kt.div`
|
|
|
1845
1845
|
CustomTreeProvider: fS
|
|
1846
1846
|
}, { Search: pS } = Ya, gO = ({ treeData: e, onSelect: t }) => {
|
|
1847
1847
|
const [n, i] = ht([]), [o, a] = ht(""), u = (f) => {
|
|
1848
|
-
const { value: y } = f.target, g = {}, d = (w,
|
|
1848
|
+
const { value: y } = f.target, g = {}, d = (w, R) => {
|
|
1849
1849
|
w.forEach((L) => {
|
|
1850
|
-
g[L.key] =
|
|
1850
|
+
g[L.key] = R, L.children && d(L.children, L.key);
|
|
1851
1851
|
});
|
|
1852
1852
|
};
|
|
1853
1853
|
d(e, null);
|
|
1854
1854
|
const v = (w) => {
|
|
1855
|
-
const
|
|
1855
|
+
const R = [];
|
|
1856
1856
|
let L = g[w];
|
|
1857
1857
|
for (; L; )
|
|
1858
|
-
|
|
1859
|
-
return
|
|
1860
|
-
}, O = [],
|
|
1861
|
-
w.forEach((
|
|
1862
|
-
if (
|
|
1863
|
-
O.push(
|
|
1864
|
-
const k = v(
|
|
1858
|
+
R.push(L), L = g[L];
|
|
1859
|
+
return R;
|
|
1860
|
+
}, O = [], E = (w) => {
|
|
1861
|
+
w.forEach((R) => {
|
|
1862
|
+
if (R.title.toLowerCase().includes(y.toLowerCase())) {
|
|
1863
|
+
O.push(R.key);
|
|
1864
|
+
const k = v(R.key);
|
|
1865
1865
|
O.push(...k);
|
|
1866
1866
|
}
|
|
1867
|
-
|
|
1867
|
+
R.children && E(R.children);
|
|
1868
1868
|
});
|
|
1869
1869
|
};
|
|
1870
|
-
|
|
1871
|
-
const
|
|
1872
|
-
i(
|
|
1870
|
+
E(e);
|
|
1871
|
+
const A = Array.from(new Set(O)).filter(Boolean);
|
|
1872
|
+
i(A), a(y);
|
|
1873
1873
|
}, l = (f) => f.map((y) => {
|
|
1874
|
-
const g = y.title, d = g.toLowerCase().indexOf(o.toLowerCase()), v = g.substring(0, d), O = g.substring(d + o.length),
|
|
1874
|
+
const g = y.title, d = g.toLowerCase().indexOf(o.toLowerCase()), v = g.substring(0, d), O = g.substring(d + o.length), E = d > -1 ? /* @__PURE__ */ $.jsxs("span", { children: [
|
|
1875
1875
|
v,
|
|
1876
1876
|
/* @__PURE__ */ $.jsx("span", { style: { color: "#f50" }, children: o }),
|
|
1877
1877
|
O
|
|
1878
1878
|
] }) : /* @__PURE__ */ $.jsx("span", { children: g });
|
|
1879
|
-
return y.children ? { ...y, title:
|
|
1879
|
+
return y.children ? { ...y, title: E, children: l(y.children) } : { ...y, title: E };
|
|
1880
1880
|
});
|
|
1881
1881
|
return /* @__PURE__ */ $.jsxs($.Fragment, { children: [
|
|
1882
1882
|
/* @__PURE__ */ $.jsx(pS, { style: { marginBottom: 8 }, placeholder: "Search", onChange: u }),
|
|
@@ -2181,12 +2181,12 @@ Bl.read = function(e, t, n, i, o) {
|
|
|
2181
2181
|
return (O ? -1 : 1) * u * Math.pow(2, a - i);
|
|
2182
2182
|
};
|
|
2183
2183
|
Bl.write = function(e, t, n, i, o, a) {
|
|
2184
|
-
var u, l, f, y = a * 8 - o - 1, g = (1 << y) - 1, d = g >> 1, v = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, O = i ? 0 : a - 1,
|
|
2185
|
-
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (l = isNaN(t) ? 1 : 0, u = g) : (u = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -u)) < 1 && (u--, f *= 2), u + d >= 1 ? t += v / f : t += v * Math.pow(2, 1 - d), t * f >= 2 && (u++, f /= 2), u + d >= g ? (l = 0, u = g) : u + d >= 1 ? (l = (t * f - 1) * Math.pow(2, o), u = u + d) : (l = t * Math.pow(2, d - 1) * Math.pow(2, o), u = 0)); o >= 8; e[n + O] = l & 255, O +=
|
|
2184
|
+
var u, l, f, y = a * 8 - o - 1, g = (1 << y) - 1, d = g >> 1, v = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, O = i ? 0 : a - 1, E = i ? 1 : -1, A = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
2185
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (l = isNaN(t) ? 1 : 0, u = g) : (u = Math.floor(Math.log(t) / Math.LN2), t * (f = Math.pow(2, -u)) < 1 && (u--, f *= 2), u + d >= 1 ? t += v / f : t += v * Math.pow(2, 1 - d), t * f >= 2 && (u++, f /= 2), u + d >= g ? (l = 0, u = g) : u + d >= 1 ? (l = (t * f - 1) * Math.pow(2, o), u = u + d) : (l = t * Math.pow(2, d - 1) * Math.pow(2, o), u = 0)); o >= 8; e[n + O] = l & 255, O += E, l /= 256, o -= 8)
|
|
2186
2186
|
;
|
|
2187
|
-
for (u = u << o | l, y += o; y > 0; e[n + O] = u & 255, O +=
|
|
2187
|
+
for (u = u << o | l, y += o; y > 0; e[n + O] = u & 255, O += E, u /= 256, y -= 8)
|
|
2188
2188
|
;
|
|
2189
|
-
e[n + O -
|
|
2189
|
+
e[n + O - E] |= A * 128;
|
|
2190
2190
|
};
|
|
2191
2191
|
/*!
|
|
2192
2192
|
* The buffer module from node.js, for the browser.
|
|
@@ -2238,16 +2238,16 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2238
2238
|
throw new TypeError(
|
|
2239
2239
|
'The "string" argument must be of type string. Received type number'
|
|
2240
2240
|
);
|
|
2241
|
-
return
|
|
2241
|
+
return E(C);
|
|
2242
2242
|
}
|
|
2243
2243
|
return d(C, p, b);
|
|
2244
2244
|
}
|
|
2245
2245
|
g.poolSize = 8192;
|
|
2246
2246
|
function d(C, p, b) {
|
|
2247
2247
|
if (typeof C == "string")
|
|
2248
|
-
return
|
|
2248
|
+
return A(C, p);
|
|
2249
2249
|
if (u.isView(C))
|
|
2250
|
-
return
|
|
2250
|
+
return R(C);
|
|
2251
2251
|
if (C == null)
|
|
2252
2252
|
throw new TypeError(
|
|
2253
2253
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof C
|
|
@@ -2258,9 +2258,9 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2258
2258
|
throw new TypeError(
|
|
2259
2259
|
'The "value" argument must not be of type number. Received type number'
|
|
2260
2260
|
);
|
|
2261
|
-
const
|
|
2262
|
-
if (
|
|
2263
|
-
return g.from(
|
|
2261
|
+
const P = C.valueOf && C.valueOf();
|
|
2262
|
+
if (P != null && P !== C)
|
|
2263
|
+
return g.from(P, p, b);
|
|
2264
2264
|
const V = k(C);
|
|
2265
2265
|
if (V) return V;
|
|
2266
2266
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof C[Symbol.toPrimitive] == "function")
|
|
@@ -2284,29 +2284,29 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2284
2284
|
g.alloc = function(C, p, b) {
|
|
2285
2285
|
return O(C, p, b);
|
|
2286
2286
|
};
|
|
2287
|
-
function
|
|
2287
|
+
function E(C) {
|
|
2288
2288
|
return v(C), y(C < 0 ? 0 : x(C) | 0);
|
|
2289
2289
|
}
|
|
2290
2290
|
g.allocUnsafe = function(C) {
|
|
2291
|
-
return
|
|
2291
|
+
return E(C);
|
|
2292
2292
|
}, g.allocUnsafeSlow = function(C) {
|
|
2293
|
-
return
|
|
2293
|
+
return E(C);
|
|
2294
2294
|
};
|
|
2295
|
-
function
|
|
2295
|
+
function A(C, p) {
|
|
2296
2296
|
if ((typeof p != "string" || p === "") && (p = "utf8"), !g.isEncoding(p))
|
|
2297
2297
|
throw new TypeError("Unknown encoding: " + p);
|
|
2298
2298
|
const b = T(C, p) | 0;
|
|
2299
|
-
let
|
|
2300
|
-
const V =
|
|
2301
|
-
return V !== b && (
|
|
2299
|
+
let P = y(b);
|
|
2300
|
+
const V = P.write(C, p);
|
|
2301
|
+
return V !== b && (P = P.slice(0, V)), P;
|
|
2302
2302
|
}
|
|
2303
2303
|
function w(C) {
|
|
2304
2304
|
const p = C.length < 0 ? 0 : x(C.length) | 0, b = y(p);
|
|
2305
|
-
for (let
|
|
2306
|
-
b[
|
|
2305
|
+
for (let P = 0; P < p; P += 1)
|
|
2306
|
+
b[P] = C[P] & 255;
|
|
2307
2307
|
return b;
|
|
2308
2308
|
}
|
|
2309
|
-
function
|
|
2309
|
+
function R(C) {
|
|
2310
2310
|
if (et(C, a)) {
|
|
2311
2311
|
const p = new a(C);
|
|
2312
2312
|
return L(p.buffer, p.byteOffset, p.byteLength);
|
|
@@ -2318,8 +2318,8 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2318
2318
|
throw new RangeError('"offset" is outside of buffer bounds');
|
|
2319
2319
|
if (C.byteLength < p + (b || 0))
|
|
2320
2320
|
throw new RangeError('"length" is outside of buffer bounds');
|
|
2321
|
-
let
|
|
2322
|
-
return p === void 0 && b === void 0 ?
|
|
2321
|
+
let P;
|
|
2322
|
+
return p === void 0 && b === void 0 ? P = new a(C) : b === void 0 ? P = new a(C, p) : P = new a(C, p, b), Object.setPrototypeOf(P, g.prototype), P;
|
|
2323
2323
|
}
|
|
2324
2324
|
function k(C) {
|
|
2325
2325
|
if (g.isBuffer(C)) {
|
|
@@ -2347,13 +2347,13 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2347
2347
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
2348
2348
|
);
|
|
2349
2349
|
if (p === b) return 0;
|
|
2350
|
-
let
|
|
2351
|
-
for (let z = 0, X = Math.min(
|
|
2350
|
+
let P = p.length, V = b.length;
|
|
2351
|
+
for (let z = 0, X = Math.min(P, V); z < X; ++z)
|
|
2352
2352
|
if (p[z] !== b[z]) {
|
|
2353
|
-
|
|
2353
|
+
P = p[z], V = b[z];
|
|
2354
2354
|
break;
|
|
2355
2355
|
}
|
|
2356
|
-
return
|
|
2356
|
+
return P < V ? -1 : V < P ? 1 : 0;
|
|
2357
2357
|
}, g.isEncoding = function(p) {
|
|
2358
2358
|
switch (String(p).toLowerCase()) {
|
|
2359
2359
|
case "hex":
|
|
@@ -2376,14 +2376,14 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2376
2376
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
2377
2377
|
if (p.length === 0)
|
|
2378
2378
|
return g.alloc(0);
|
|
2379
|
-
let
|
|
2379
|
+
let P;
|
|
2380
2380
|
if (b === void 0)
|
|
2381
|
-
for (b = 0,
|
|
2382
|
-
b += p[
|
|
2381
|
+
for (b = 0, P = 0; P < p.length; ++P)
|
|
2382
|
+
b += p[P].length;
|
|
2383
2383
|
const V = g.allocUnsafe(b);
|
|
2384
2384
|
let z = 0;
|
|
2385
|
-
for (
|
|
2386
|
-
let X = p[
|
|
2385
|
+
for (P = 0; P < p.length; ++P) {
|
|
2386
|
+
let X = p[P];
|
|
2387
2387
|
if (et(X, a))
|
|
2388
2388
|
z + X.length > V.length ? (g.isBuffer(X) || (X = g.from(X)), X.copy(V, z)) : a.prototype.set.call(
|
|
2389
2389
|
V,
|
|
@@ -2407,8 +2407,8 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2407
2407
|
throw new TypeError(
|
|
2408
2408
|
'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof C
|
|
2409
2409
|
);
|
|
2410
|
-
const b = C.length,
|
|
2411
|
-
if (!
|
|
2410
|
+
const b = C.length, P = arguments.length > 2 && arguments[2] === !0;
|
|
2411
|
+
if (!P && b === 0) return 0;
|
|
2412
2412
|
let V = !1;
|
|
2413
2413
|
for (; ; )
|
|
2414
2414
|
switch (p) {
|
|
@@ -2430,13 +2430,13 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2430
2430
|
return Je(C).length;
|
|
2431
2431
|
default:
|
|
2432
2432
|
if (V)
|
|
2433
|
-
return
|
|
2433
|
+
return P ? -1 : ut(C).length;
|
|
2434
2434
|
p = ("" + p).toLowerCase(), V = !0;
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
2437
|
g.byteLength = T;
|
|
2438
2438
|
function D(C, p, b) {
|
|
2439
|
-
let
|
|
2439
|
+
let P = !1;
|
|
2440
2440
|
if ((p === void 0 || p < 0) && (p = 0), p > this.length || ((b === void 0 || b > this.length) && (b = this.length), b <= 0) || (b >>>= 0, p >>>= 0, b <= p))
|
|
2441
2441
|
return "";
|
|
2442
2442
|
for (C || (C = "utf8"); ; )
|
|
@@ -2459,14 +2459,14 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2459
2459
|
case "utf-16le":
|
|
2460
2460
|
return G(this, p, b);
|
|
2461
2461
|
default:
|
|
2462
|
-
if (
|
|
2463
|
-
C = (C + "").toLowerCase(),
|
|
2462
|
+
if (P) throw new TypeError("Unknown encoding: " + C);
|
|
2463
|
+
C = (C + "").toLowerCase(), P = !0;
|
|
2464
2464
|
}
|
|
2465
2465
|
}
|
|
2466
2466
|
g.prototype._isBuffer = !0;
|
|
2467
2467
|
function K(C, p, b) {
|
|
2468
|
-
const
|
|
2469
|
-
C[p] = C[b], C[b] =
|
|
2468
|
+
const P = C[p];
|
|
2469
|
+
C[p] = C[b], C[b] = P;
|
|
2470
2470
|
}
|
|
2471
2471
|
g.prototype.swap16 = function() {
|
|
2472
2472
|
const p = this.length;
|
|
@@ -2499,22 +2499,22 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2499
2499
|
let p = "";
|
|
2500
2500
|
const b = e.INSPECT_MAX_BYTES;
|
|
2501
2501
|
return p = this.toString("hex", 0, b).replace(/(.{2})/g, "$1 ").trim(), this.length > b && (p += " ... "), "<Buffer " + p + ">";
|
|
2502
|
-
}, i && (g.prototype[i] = g.prototype.inspect), g.prototype.compare = function(p, b,
|
|
2502
|
+
}, i && (g.prototype[i] = g.prototype.inspect), g.prototype.compare = function(p, b, P, V, z) {
|
|
2503
2503
|
if (et(p, a) && (p = g.from(p, p.offset, p.byteLength)), !g.isBuffer(p))
|
|
2504
2504
|
throw new TypeError(
|
|
2505
2505
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof p
|
|
2506
2506
|
);
|
|
2507
|
-
if (b === void 0 && (b = 0),
|
|
2507
|
+
if (b === void 0 && (b = 0), P === void 0 && (P = p ? p.length : 0), V === void 0 && (V = 0), z === void 0 && (z = this.length), b < 0 || P > p.length || V < 0 || z > this.length)
|
|
2508
2508
|
throw new RangeError("out of range index");
|
|
2509
|
-
if (V >= z && b >=
|
|
2509
|
+
if (V >= z && b >= P)
|
|
2510
2510
|
return 0;
|
|
2511
2511
|
if (V >= z)
|
|
2512
2512
|
return -1;
|
|
2513
|
-
if (b >=
|
|
2513
|
+
if (b >= P)
|
|
2514
2514
|
return 1;
|
|
2515
|
-
if (b >>>= 0,
|
|
2516
|
-
let X = z - V, Pe =
|
|
2517
|
-
const ft = Math.min(X, Pe), st = this.slice(V, z), ct = p.slice(b,
|
|
2515
|
+
if (b >>>= 0, P >>>= 0, V >>>= 0, z >>>= 0, this === p) return 0;
|
|
2516
|
+
let X = z - V, Pe = P - b;
|
|
2517
|
+
const ft = Math.min(X, Pe), st = this.slice(V, z), ct = p.slice(b, P);
|
|
2518
2518
|
for (let tt = 0; tt < ft; ++tt)
|
|
2519
2519
|
if (st[tt] !== ct[tt]) {
|
|
2520
2520
|
X = st[tt], Pe = ct[tt];
|
|
@@ -2522,23 +2522,23 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
return X < Pe ? -1 : Pe < X ? 1 : 0;
|
|
2524
2524
|
};
|
|
2525
|
-
function re(C, p, b,
|
|
2525
|
+
function re(C, p, b, P, V) {
|
|
2526
2526
|
if (C.length === 0) return -1;
|
|
2527
|
-
if (typeof b == "string" ? (
|
|
2527
|
+
if (typeof b == "string" ? (P = b, b = 0) : b > 2147483647 ? b = 2147483647 : b < -2147483648 && (b = -2147483648), b = +b, $t(b) && (b = V ? 0 : C.length - 1), b < 0 && (b = C.length + b), b >= C.length) {
|
|
2528
2528
|
if (V) return -1;
|
|
2529
2529
|
b = C.length - 1;
|
|
2530
2530
|
} else if (b < 0)
|
|
2531
2531
|
if (V) b = 0;
|
|
2532
2532
|
else return -1;
|
|
2533
|
-
if (typeof p == "string" && (p = g.from(p,
|
|
2534
|
-
return p.length === 0 ? -1 : ae(C, p, b,
|
|
2533
|
+
if (typeof p == "string" && (p = g.from(p, P)), g.isBuffer(p))
|
|
2534
|
+
return p.length === 0 ? -1 : ae(C, p, b, P, V);
|
|
2535
2535
|
if (typeof p == "number")
|
|
2536
|
-
return p = p & 255, typeof a.prototype.indexOf == "function" ? V ? a.prototype.indexOf.call(C, p, b) : a.prototype.lastIndexOf.call(C, p, b) : ae(C, [p], b,
|
|
2536
|
+
return p = p & 255, typeof a.prototype.indexOf == "function" ? V ? a.prototype.indexOf.call(C, p, b) : a.prototype.lastIndexOf.call(C, p, b) : ae(C, [p], b, P, V);
|
|
2537
2537
|
throw new TypeError("val must be string, number or Buffer");
|
|
2538
2538
|
}
|
|
2539
|
-
function ae(C, p, b,
|
|
2539
|
+
function ae(C, p, b, P, V) {
|
|
2540
2540
|
let z = 1, X = C.length, Pe = p.length;
|
|
2541
|
-
if (
|
|
2541
|
+
if (P !== void 0 && (P = String(P).toLowerCase(), P === "ucs2" || P === "ucs-2" || P === "utf16le" || P === "utf-16le")) {
|
|
2542
2542
|
if (C.length < 2 || p.length < 2)
|
|
2543
2543
|
return -1;
|
|
2544
2544
|
z = 2, X /= 2, Pe /= 2, b /= 2;
|
|
@@ -2566,73 +2566,73 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2566
2566
|
}
|
|
2567
2567
|
return -1;
|
|
2568
2568
|
}
|
|
2569
|
-
g.prototype.includes = function(p, b,
|
|
2570
|
-
return this.indexOf(p, b,
|
|
2571
|
-
}, g.prototype.indexOf = function(p, b,
|
|
2572
|
-
return re(this, p, b,
|
|
2573
|
-
}, g.prototype.lastIndexOf = function(p, b,
|
|
2574
|
-
return re(this, p, b,
|
|
2569
|
+
g.prototype.includes = function(p, b, P) {
|
|
2570
|
+
return this.indexOf(p, b, P) !== -1;
|
|
2571
|
+
}, g.prototype.indexOf = function(p, b, P) {
|
|
2572
|
+
return re(this, p, b, P, !0);
|
|
2573
|
+
}, g.prototype.lastIndexOf = function(p, b, P) {
|
|
2574
|
+
return re(this, p, b, P, !1);
|
|
2575
2575
|
};
|
|
2576
|
-
function ue(C, p, b,
|
|
2576
|
+
function ue(C, p, b, P) {
|
|
2577
2577
|
b = Number(b) || 0;
|
|
2578
2578
|
const V = C.length - b;
|
|
2579
|
-
|
|
2579
|
+
P ? (P = Number(P), P > V && (P = V)) : P = V;
|
|
2580
2580
|
const z = p.length;
|
|
2581
|
-
|
|
2581
|
+
P > z / 2 && (P = z / 2);
|
|
2582
2582
|
let X;
|
|
2583
|
-
for (X = 0; X <
|
|
2583
|
+
for (X = 0; X < P; ++X) {
|
|
2584
2584
|
const Pe = parseInt(p.substr(X * 2, 2), 16);
|
|
2585
2585
|
if ($t(Pe)) return X;
|
|
2586
2586
|
C[b + X] = Pe;
|
|
2587
2587
|
}
|
|
2588
2588
|
return X;
|
|
2589
2589
|
}
|
|
2590
|
-
function pe(C, p, b,
|
|
2591
|
-
return At(ut(p, C.length - b), C, b,
|
|
2590
|
+
function pe(C, p, b, P) {
|
|
2591
|
+
return At(ut(p, C.length - b), C, b, P);
|
|
2592
2592
|
}
|
|
2593
|
-
function ye(C, p, b,
|
|
2594
|
-
return At(vt(p), C, b,
|
|
2593
|
+
function ye(C, p, b, P) {
|
|
2594
|
+
return At(vt(p), C, b, P);
|
|
2595
2595
|
}
|
|
2596
|
-
function he(C, p, b,
|
|
2597
|
-
return At(Je(p), C, b,
|
|
2596
|
+
function he(C, p, b, P) {
|
|
2597
|
+
return At(Je(p), C, b, P);
|
|
2598
2598
|
}
|
|
2599
|
-
function ce(C, p, b,
|
|
2600
|
-
return At(fe(p, C.length - b), C, b,
|
|
2599
|
+
function ce(C, p, b, P) {
|
|
2600
|
+
return At(fe(p, C.length - b), C, b, P);
|
|
2601
2601
|
}
|
|
2602
|
-
g.prototype.write = function(p, b,
|
|
2602
|
+
g.prototype.write = function(p, b, P, V) {
|
|
2603
2603
|
if (b === void 0)
|
|
2604
|
-
V = "utf8",
|
|
2605
|
-
else if (
|
|
2606
|
-
V = b,
|
|
2604
|
+
V = "utf8", P = this.length, b = 0;
|
|
2605
|
+
else if (P === void 0 && typeof b == "string")
|
|
2606
|
+
V = b, P = this.length, b = 0;
|
|
2607
2607
|
else if (isFinite(b))
|
|
2608
|
-
b = b >>> 0, isFinite(
|
|
2608
|
+
b = b >>> 0, isFinite(P) ? (P = P >>> 0, V === void 0 && (V = "utf8")) : (V = P, P = void 0);
|
|
2609
2609
|
else
|
|
2610
2610
|
throw new Error(
|
|
2611
2611
|
"Buffer.write(string, encoding, offset[, length]) is no longer supported"
|
|
2612
2612
|
);
|
|
2613
2613
|
const z = this.length - b;
|
|
2614
|
-
if ((
|
|
2614
|
+
if ((P === void 0 || P > z) && (P = z), p.length > 0 && (P < 0 || b < 0) || b > this.length)
|
|
2615
2615
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
2616
2616
|
V || (V = "utf8");
|
|
2617
2617
|
let X = !1;
|
|
2618
2618
|
for (; ; )
|
|
2619
2619
|
switch (V) {
|
|
2620
2620
|
case "hex":
|
|
2621
|
-
return ue(this, p, b,
|
|
2621
|
+
return ue(this, p, b, P);
|
|
2622
2622
|
case "utf8":
|
|
2623
2623
|
case "utf-8":
|
|
2624
|
-
return pe(this, p, b,
|
|
2624
|
+
return pe(this, p, b, P);
|
|
2625
2625
|
case "ascii":
|
|
2626
2626
|
case "latin1":
|
|
2627
2627
|
case "binary":
|
|
2628
|
-
return ye(this, p, b,
|
|
2628
|
+
return ye(this, p, b, P);
|
|
2629
2629
|
case "base64":
|
|
2630
|
-
return he(this, p, b,
|
|
2630
|
+
return he(this, p, b, P);
|
|
2631
2631
|
case "ucs2":
|
|
2632
2632
|
case "ucs-2":
|
|
2633
2633
|
case "utf16le":
|
|
2634
2634
|
case "utf-16le":
|
|
2635
|
-
return ce(this, p, b,
|
|
2635
|
+
return ce(this, p, b, P);
|
|
2636
2636
|
default:
|
|
2637
2637
|
if (X) throw new TypeError("Unknown encoding: " + V);
|
|
2638
2638
|
V = ("" + V).toLowerCase(), X = !0;
|
|
@@ -2648,7 +2648,7 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2648
2648
|
}
|
|
2649
2649
|
function ke(C, p, b) {
|
|
2650
2650
|
b = Math.min(C.length, b);
|
|
2651
|
-
const
|
|
2651
|
+
const P = [];
|
|
2652
2652
|
let V = p;
|
|
2653
2653
|
for (; V < b; ) {
|
|
2654
2654
|
const z = C[V];
|
|
@@ -2669,55 +2669,55 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2669
2669
|
ft = C[V + 1], st = C[V + 2], ct = C[V + 3], (ft & 192) === 128 && (st & 192) === 128 && (ct & 192) === 128 && (tt = (z & 15) << 18 | (ft & 63) << 12 | (st & 63) << 6 | ct & 63, tt > 65535 && tt < 1114112 && (X = tt));
|
|
2670
2670
|
}
|
|
2671
2671
|
}
|
|
2672
|
-
X === null ? (X = 65533, Pe = 1) : X > 65535 && (X -= 65536,
|
|
2672
|
+
X === null ? (X = 65533, Pe = 1) : X > 65535 && (X -= 65536, P.push(X >>> 10 & 1023 | 55296), X = 56320 | X & 1023), P.push(X), V += Pe;
|
|
2673
2673
|
}
|
|
2674
|
-
return Ue(
|
|
2674
|
+
return Ue(P);
|
|
2675
2675
|
}
|
|
2676
2676
|
const xe = 4096;
|
|
2677
2677
|
function Ue(C) {
|
|
2678
2678
|
const p = C.length;
|
|
2679
2679
|
if (p <= xe)
|
|
2680
2680
|
return String.fromCharCode.apply(String, C);
|
|
2681
|
-
let b = "",
|
|
2682
|
-
for (;
|
|
2681
|
+
let b = "", P = 0;
|
|
2682
|
+
for (; P < p; )
|
|
2683
2683
|
b += String.fromCharCode.apply(
|
|
2684
2684
|
String,
|
|
2685
|
-
C.slice(
|
|
2685
|
+
C.slice(P, P += xe)
|
|
2686
2686
|
);
|
|
2687
2687
|
return b;
|
|
2688
2688
|
}
|
|
2689
2689
|
function Ge(C, p, b) {
|
|
2690
|
-
let
|
|
2690
|
+
let P = "";
|
|
2691
2691
|
b = Math.min(C.length, b);
|
|
2692
2692
|
for (let V = p; V < b; ++V)
|
|
2693
|
-
|
|
2694
|
-
return
|
|
2693
|
+
P += String.fromCharCode(C[V] & 127);
|
|
2694
|
+
return P;
|
|
2695
2695
|
}
|
|
2696
2696
|
function we(C, p, b) {
|
|
2697
|
-
let
|
|
2697
|
+
let P = "";
|
|
2698
2698
|
b = Math.min(C.length, b);
|
|
2699
2699
|
for (let V = p; V < b; ++V)
|
|
2700
|
-
|
|
2701
|
-
return
|
|
2700
|
+
P += String.fromCharCode(C[V]);
|
|
2701
|
+
return P;
|
|
2702
2702
|
}
|
|
2703
2703
|
function mt(C, p, b) {
|
|
2704
|
-
const
|
|
2705
|
-
(!p || p < 0) && (p = 0), (!b || b < 0 || b >
|
|
2704
|
+
const P = C.length;
|
|
2705
|
+
(!p || p < 0) && (p = 0), (!b || b < 0 || b > P) && (b = P);
|
|
2706
2706
|
let V = "";
|
|
2707
2707
|
for (let z = p; z < b; ++z)
|
|
2708
2708
|
V += _e[C[z]];
|
|
2709
2709
|
return V;
|
|
2710
2710
|
}
|
|
2711
2711
|
function G(C, p, b) {
|
|
2712
|
-
const
|
|
2712
|
+
const P = C.slice(p, b);
|
|
2713
2713
|
let V = "";
|
|
2714
|
-
for (let z = 0; z <
|
|
2715
|
-
V += String.fromCharCode(
|
|
2714
|
+
for (let z = 0; z < P.length - 1; z += 2)
|
|
2715
|
+
V += String.fromCharCode(P[z] + P[z + 1] * 256);
|
|
2716
2716
|
return V;
|
|
2717
2717
|
}
|
|
2718
2718
|
g.prototype.slice = function(p, b) {
|
|
2719
|
-
const
|
|
2720
|
-
p = ~~p, b = b === void 0 ?
|
|
2719
|
+
const P = this.length;
|
|
2720
|
+
p = ~~p, b = b === void 0 ? P : ~~b, p < 0 ? (p += P, p < 0 && (p = 0)) : p > P && (p = P), b < 0 ? (b += P, b < 0 && (b = 0)) : b > P && (b = P), b < p && (b = p);
|
|
2721
2721
|
const V = this.subarray(p, b);
|
|
2722
2722
|
return Object.setPrototypeOf(V, g.prototype), V;
|
|
2723
2723
|
};
|
|
@@ -2725,14 +2725,14 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2725
2725
|
if (C % 1 !== 0 || C < 0) throw new RangeError("offset is not uint");
|
|
2726
2726
|
if (C + p > b) throw new RangeError("Trying to access beyond buffer length");
|
|
2727
2727
|
}
|
|
2728
|
-
g.prototype.readUintLE = g.prototype.readUIntLE = function(p, b,
|
|
2729
|
-
p = p >>> 0, b = b >>> 0,
|
|
2728
|
+
g.prototype.readUintLE = g.prototype.readUIntLE = function(p, b, P) {
|
|
2729
|
+
p = p >>> 0, b = b >>> 0, P || Y(p, b, this.length);
|
|
2730
2730
|
let V = this[p], z = 1, X = 0;
|
|
2731
2731
|
for (; ++X < b && (z *= 256); )
|
|
2732
2732
|
V += this[p + X] * z;
|
|
2733
2733
|
return V;
|
|
2734
|
-
}, g.prototype.readUintBE = g.prototype.readUIntBE = function(p, b,
|
|
2735
|
-
p = p >>> 0, b = b >>> 0,
|
|
2734
|
+
}, g.prototype.readUintBE = g.prototype.readUIntBE = function(p, b, P) {
|
|
2735
|
+
p = p >>> 0, b = b >>> 0, P || Y(p, b, this.length);
|
|
2736
2736
|
let V = this[p + --b], z = 1;
|
|
2737
2737
|
for (; b > 0 && (z *= 256); )
|
|
2738
2738
|
V += this[p + --b] * z;
|
|
@@ -2749,24 +2749,24 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2749
2749
|
return p = p >>> 0, b || Y(p, 4, this.length), this[p] * 16777216 + (this[p + 1] << 16 | this[p + 2] << 8 | this[p + 3]);
|
|
2750
2750
|
}, g.prototype.readBigUInt64LE = Te(function(p) {
|
|
2751
2751
|
p = p >>> 0, me(p, "offset");
|
|
2752
|
-
const b = this[p],
|
|
2753
|
-
(b === void 0 ||
|
|
2754
|
-
const V = b + this[++p] * 2 ** 8 + this[++p] * 2 ** 16 + this[++p] * 2 ** 24, z = this[++p] + this[++p] * 2 ** 8 + this[++p] * 2 ** 16 +
|
|
2752
|
+
const b = this[p], P = this[p + 7];
|
|
2753
|
+
(b === void 0 || P === void 0) && Ee(p, this.length - 8);
|
|
2754
|
+
const V = b + this[++p] * 2 ** 8 + this[++p] * 2 ** 16 + this[++p] * 2 ** 24, z = this[++p] + this[++p] * 2 ** 8 + this[++p] * 2 ** 16 + P * 2 ** 24;
|
|
2755
2755
|
return BigInt(V) + (BigInt(z) << BigInt(32));
|
|
2756
2756
|
}), g.prototype.readBigUInt64BE = Te(function(p) {
|
|
2757
2757
|
p = p >>> 0, me(p, "offset");
|
|
2758
|
-
const b = this[p],
|
|
2759
|
-
(b === void 0 ||
|
|
2760
|
-
const V = b * 2 ** 24 + this[++p] * 2 ** 16 + this[++p] * 2 ** 8 + this[++p], z = this[++p] * 2 ** 24 + this[++p] * 2 ** 16 + this[++p] * 2 ** 8 +
|
|
2758
|
+
const b = this[p], P = this[p + 7];
|
|
2759
|
+
(b === void 0 || P === void 0) && Ee(p, this.length - 8);
|
|
2760
|
+
const V = b * 2 ** 24 + this[++p] * 2 ** 16 + this[++p] * 2 ** 8 + this[++p], z = this[++p] * 2 ** 24 + this[++p] * 2 ** 16 + this[++p] * 2 ** 8 + P;
|
|
2761
2761
|
return (BigInt(V) << BigInt(32)) + BigInt(z);
|
|
2762
|
-
}), g.prototype.readIntLE = function(p, b,
|
|
2763
|
-
p = p >>> 0, b = b >>> 0,
|
|
2762
|
+
}), g.prototype.readIntLE = function(p, b, P) {
|
|
2763
|
+
p = p >>> 0, b = b >>> 0, P || Y(p, b, this.length);
|
|
2764
2764
|
let V = this[p], z = 1, X = 0;
|
|
2765
2765
|
for (; ++X < b && (z *= 256); )
|
|
2766
2766
|
V += this[p + X] * z;
|
|
2767
2767
|
return z *= 128, V >= z && (V -= Math.pow(2, 8 * b)), V;
|
|
2768
|
-
}, g.prototype.readIntBE = function(p, b,
|
|
2769
|
-
p = p >>> 0, b = b >>> 0,
|
|
2768
|
+
}, g.prototype.readIntBE = function(p, b, P) {
|
|
2769
|
+
p = p >>> 0, b = b >>> 0, P || Y(p, b, this.length);
|
|
2770
2770
|
let V = b, z = 1, X = this[p + --V];
|
|
2771
2771
|
for (; V > 0 && (z *= 256); )
|
|
2772
2772
|
X += this[p + --V] * z;
|
|
@@ -2775,29 +2775,29 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2775
2775
|
return p = p >>> 0, b || Y(p, 1, this.length), this[p] & 128 ? (255 - this[p] + 1) * -1 : this[p];
|
|
2776
2776
|
}, g.prototype.readInt16LE = function(p, b) {
|
|
2777
2777
|
p = p >>> 0, b || Y(p, 2, this.length);
|
|
2778
|
-
const
|
|
2779
|
-
return
|
|
2778
|
+
const P = this[p] | this[p + 1] << 8;
|
|
2779
|
+
return P & 32768 ? P | 4294901760 : P;
|
|
2780
2780
|
}, g.prototype.readInt16BE = function(p, b) {
|
|
2781
2781
|
p = p >>> 0, b || Y(p, 2, this.length);
|
|
2782
|
-
const
|
|
2783
|
-
return
|
|
2782
|
+
const P = this[p + 1] | this[p] << 8;
|
|
2783
|
+
return P & 32768 ? P | 4294901760 : P;
|
|
2784
2784
|
}, g.prototype.readInt32LE = function(p, b) {
|
|
2785
2785
|
return p = p >>> 0, b || Y(p, 4, this.length), this[p] | this[p + 1] << 8 | this[p + 2] << 16 | this[p + 3] << 24;
|
|
2786
2786
|
}, g.prototype.readInt32BE = function(p, b) {
|
|
2787
2787
|
return p = p >>> 0, b || Y(p, 4, this.length), this[p] << 24 | this[p + 1] << 16 | this[p + 2] << 8 | this[p + 3];
|
|
2788
2788
|
}, g.prototype.readBigInt64LE = Te(function(p) {
|
|
2789
2789
|
p = p >>> 0, me(p, "offset");
|
|
2790
|
-
const b = this[p],
|
|
2791
|
-
(b === void 0 ||
|
|
2792
|
-
const V = this[p + 4] + this[p + 5] * 2 ** 8 + this[p + 6] * 2 ** 16 + (
|
|
2790
|
+
const b = this[p], P = this[p + 7];
|
|
2791
|
+
(b === void 0 || P === void 0) && Ee(p, this.length - 8);
|
|
2792
|
+
const V = this[p + 4] + this[p + 5] * 2 ** 8 + this[p + 6] * 2 ** 16 + (P << 24);
|
|
2793
2793
|
return (BigInt(V) << BigInt(32)) + BigInt(b + this[++p] * 2 ** 8 + this[++p] * 2 ** 16 + this[++p] * 2 ** 24);
|
|
2794
2794
|
}), g.prototype.readBigInt64BE = Te(function(p) {
|
|
2795
2795
|
p = p >>> 0, me(p, "offset");
|
|
2796
|
-
const b = this[p],
|
|
2797
|
-
(b === void 0 ||
|
|
2796
|
+
const b = this[p], P = this[p + 7];
|
|
2797
|
+
(b === void 0 || P === void 0) && Ee(p, this.length - 8);
|
|
2798
2798
|
const V = (b << 24) + // Overflow
|
|
2799
2799
|
this[++p] * 2 ** 16 + this[++p] * 2 ** 8 + this[++p];
|
|
2800
|
-
return (BigInt(V) << BigInt(32)) + BigInt(this[++p] * 2 ** 24 + this[++p] * 2 ** 16 + this[++p] * 2 ** 8 +
|
|
2800
|
+
return (BigInt(V) << BigInt(32)) + BigInt(this[++p] * 2 ** 24 + this[++p] * 2 ** 16 + this[++p] * 2 ** 8 + P);
|
|
2801
2801
|
}), g.prototype.readFloatLE = function(p, b) {
|
|
2802
2802
|
return p = p >>> 0, b || Y(p, 4, this.length), n.read(this, p, !0, 23, 4);
|
|
2803
2803
|
}, g.prototype.readFloatBE = function(p, b) {
|
|
@@ -2807,49 +2807,49 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2807
2807
|
}, g.prototype.readDoubleBE = function(p, b) {
|
|
2808
2808
|
return p = p >>> 0, b || Y(p, 8, this.length), n.read(this, p, !1, 52, 8);
|
|
2809
2809
|
};
|
|
2810
|
-
function se(C, p, b,
|
|
2810
|
+
function se(C, p, b, P, V, z) {
|
|
2811
2811
|
if (!g.isBuffer(C)) throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
2812
2812
|
if (p > V || p < z) throw new RangeError('"value" argument is out of bounds');
|
|
2813
|
-
if (b +
|
|
2813
|
+
if (b + P > C.length) throw new RangeError("Index out of range");
|
|
2814
2814
|
}
|
|
2815
|
-
g.prototype.writeUintLE = g.prototype.writeUIntLE = function(p, b,
|
|
2816
|
-
if (p = +p, b = b >>> 0,
|
|
2817
|
-
const Pe = Math.pow(2, 8 *
|
|
2818
|
-
se(this, p, b,
|
|
2815
|
+
g.prototype.writeUintLE = g.prototype.writeUIntLE = function(p, b, P, V) {
|
|
2816
|
+
if (p = +p, b = b >>> 0, P = P >>> 0, !V) {
|
|
2817
|
+
const Pe = Math.pow(2, 8 * P) - 1;
|
|
2818
|
+
se(this, p, b, P, Pe, 0);
|
|
2819
2819
|
}
|
|
2820
2820
|
let z = 1, X = 0;
|
|
2821
|
-
for (this[b] = p & 255; ++X <
|
|
2821
|
+
for (this[b] = p & 255; ++X < P && (z *= 256); )
|
|
2822
2822
|
this[b + X] = p / z & 255;
|
|
2823
|
-
return b +
|
|
2824
|
-
}, g.prototype.writeUintBE = g.prototype.writeUIntBE = function(p, b,
|
|
2825
|
-
if (p = +p, b = b >>> 0,
|
|
2826
|
-
const Pe = Math.pow(2, 8 *
|
|
2827
|
-
se(this, p, b,
|
|
2823
|
+
return b + P;
|
|
2824
|
+
}, g.prototype.writeUintBE = g.prototype.writeUIntBE = function(p, b, P, V) {
|
|
2825
|
+
if (p = +p, b = b >>> 0, P = P >>> 0, !V) {
|
|
2826
|
+
const Pe = Math.pow(2, 8 * P) - 1;
|
|
2827
|
+
se(this, p, b, P, Pe, 0);
|
|
2828
2828
|
}
|
|
2829
|
-
let z =
|
|
2829
|
+
let z = P - 1, X = 1;
|
|
2830
2830
|
for (this[b + z] = p & 255; --z >= 0 && (X *= 256); )
|
|
2831
2831
|
this[b + z] = p / X & 255;
|
|
2832
|
-
return b +
|
|
2833
|
-
}, g.prototype.writeUint8 = g.prototype.writeUInt8 = function(p, b,
|
|
2834
|
-
return p = +p, b = b >>> 0,
|
|
2835
|
-
}, g.prototype.writeUint16LE = g.prototype.writeUInt16LE = function(p, b,
|
|
2836
|
-
return p = +p, b = b >>> 0,
|
|
2837
|
-
}, g.prototype.writeUint16BE = g.prototype.writeUInt16BE = function(p, b,
|
|
2838
|
-
return p = +p, b = b >>> 0,
|
|
2839
|
-
}, g.prototype.writeUint32LE = g.prototype.writeUInt32LE = function(p, b,
|
|
2840
|
-
return p = +p, b = b >>> 0,
|
|
2841
|
-
}, g.prototype.writeUint32BE = g.prototype.writeUInt32BE = function(p, b,
|
|
2842
|
-
return p = +p, b = b >>> 0,
|
|
2832
|
+
return b + P;
|
|
2833
|
+
}, g.prototype.writeUint8 = g.prototype.writeUInt8 = function(p, b, P) {
|
|
2834
|
+
return p = +p, b = b >>> 0, P || se(this, p, b, 1, 255, 0), this[b] = p & 255, b + 1;
|
|
2835
|
+
}, g.prototype.writeUint16LE = g.prototype.writeUInt16LE = function(p, b, P) {
|
|
2836
|
+
return p = +p, b = b >>> 0, P || se(this, p, b, 2, 65535, 0), this[b] = p & 255, this[b + 1] = p >>> 8, b + 2;
|
|
2837
|
+
}, g.prototype.writeUint16BE = g.prototype.writeUInt16BE = function(p, b, P) {
|
|
2838
|
+
return p = +p, b = b >>> 0, P || se(this, p, b, 2, 65535, 0), this[b] = p >>> 8, this[b + 1] = p & 255, b + 2;
|
|
2839
|
+
}, g.prototype.writeUint32LE = g.prototype.writeUInt32LE = function(p, b, P) {
|
|
2840
|
+
return p = +p, b = b >>> 0, P || se(this, p, b, 4, 4294967295, 0), this[b + 3] = p >>> 24, this[b + 2] = p >>> 16, this[b + 1] = p >>> 8, this[b] = p & 255, b + 4;
|
|
2841
|
+
}, g.prototype.writeUint32BE = g.prototype.writeUInt32BE = function(p, b, P) {
|
|
2842
|
+
return p = +p, b = b >>> 0, P || se(this, p, b, 4, 4294967295, 0), this[b] = p >>> 24, this[b + 1] = p >>> 16, this[b + 2] = p >>> 8, this[b + 3] = p & 255, b + 4;
|
|
2843
2843
|
};
|
|
2844
|
-
function Ae(C, p, b,
|
|
2845
|
-
Pt(p,
|
|
2844
|
+
function Ae(C, p, b, P, V) {
|
|
2845
|
+
Pt(p, P, V, C, b, 7);
|
|
2846
2846
|
let z = Number(p & BigInt(4294967295));
|
|
2847
2847
|
C[b++] = z, z = z >> 8, C[b++] = z, z = z >> 8, C[b++] = z, z = z >> 8, C[b++] = z;
|
|
2848
2848
|
let X = Number(p >> BigInt(32) & BigInt(4294967295));
|
|
2849
2849
|
return C[b++] = X, X = X >> 8, C[b++] = X, X = X >> 8, C[b++] = X, X = X >> 8, C[b++] = X, b;
|
|
2850
2850
|
}
|
|
2851
|
-
function Ve(C, p, b,
|
|
2852
|
-
Pt(p,
|
|
2851
|
+
function Ve(C, p, b, P, V) {
|
|
2852
|
+
Pt(p, P, V, C, b, 7);
|
|
2853
2853
|
let z = Number(p & BigInt(4294967295));
|
|
2854
2854
|
C[b + 7] = z, z = z >> 8, C[b + 6] = z, z = z >> 8, C[b + 5] = z, z = z >> 8, C[b + 4] = z;
|
|
2855
2855
|
let X = Number(p >> BigInt(32) & BigInt(4294967295));
|
|
@@ -2859,75 +2859,75 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2859
2859
|
return Ae(this, p, b, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2860
2860
|
}), g.prototype.writeBigUInt64BE = Te(function(p, b = 0) {
|
|
2861
2861
|
return Ve(this, p, b, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
2862
|
-
}), g.prototype.writeIntLE = function(p, b,
|
|
2862
|
+
}), g.prototype.writeIntLE = function(p, b, P, V) {
|
|
2863
2863
|
if (p = +p, b = b >>> 0, !V) {
|
|
2864
|
-
const ft = Math.pow(2, 8 *
|
|
2865
|
-
se(this, p, b,
|
|
2864
|
+
const ft = Math.pow(2, 8 * P - 1);
|
|
2865
|
+
se(this, p, b, P, ft - 1, -ft);
|
|
2866
2866
|
}
|
|
2867
2867
|
let z = 0, X = 1, Pe = 0;
|
|
2868
|
-
for (this[b] = p & 255; ++z <
|
|
2868
|
+
for (this[b] = p & 255; ++z < P && (X *= 256); )
|
|
2869
2869
|
p < 0 && Pe === 0 && this[b + z - 1] !== 0 && (Pe = 1), this[b + z] = (p / X >> 0) - Pe & 255;
|
|
2870
|
-
return b +
|
|
2871
|
-
}, g.prototype.writeIntBE = function(p, b,
|
|
2870
|
+
return b + P;
|
|
2871
|
+
}, g.prototype.writeIntBE = function(p, b, P, V) {
|
|
2872
2872
|
if (p = +p, b = b >>> 0, !V) {
|
|
2873
|
-
const ft = Math.pow(2, 8 *
|
|
2874
|
-
se(this, p, b,
|
|
2873
|
+
const ft = Math.pow(2, 8 * P - 1);
|
|
2874
|
+
se(this, p, b, P, ft - 1, -ft);
|
|
2875
2875
|
}
|
|
2876
|
-
let z =
|
|
2876
|
+
let z = P - 1, X = 1, Pe = 0;
|
|
2877
2877
|
for (this[b + z] = p & 255; --z >= 0 && (X *= 256); )
|
|
2878
2878
|
p < 0 && Pe === 0 && this[b + z + 1] !== 0 && (Pe = 1), this[b + z] = (p / X >> 0) - Pe & 255;
|
|
2879
|
-
return b +
|
|
2880
|
-
}, g.prototype.writeInt8 = function(p, b,
|
|
2881
|
-
return p = +p, b = b >>> 0,
|
|
2882
|
-
}, g.prototype.writeInt16LE = function(p, b,
|
|
2883
|
-
return p = +p, b = b >>> 0,
|
|
2884
|
-
}, g.prototype.writeInt16BE = function(p, b,
|
|
2885
|
-
return p = +p, b = b >>> 0,
|
|
2886
|
-
}, g.prototype.writeInt32LE = function(p, b,
|
|
2887
|
-
return p = +p, b = b >>> 0,
|
|
2888
|
-
}, g.prototype.writeInt32BE = function(p, b,
|
|
2889
|
-
return p = +p, b = b >>> 0,
|
|
2879
|
+
return b + P;
|
|
2880
|
+
}, g.prototype.writeInt8 = function(p, b, P) {
|
|
2881
|
+
return p = +p, b = b >>> 0, P || se(this, p, b, 1, 127, -128), p < 0 && (p = 255 + p + 1), this[b] = p & 255, b + 1;
|
|
2882
|
+
}, g.prototype.writeInt16LE = function(p, b, P) {
|
|
2883
|
+
return p = +p, b = b >>> 0, P || se(this, p, b, 2, 32767, -32768), this[b] = p & 255, this[b + 1] = p >>> 8, b + 2;
|
|
2884
|
+
}, g.prototype.writeInt16BE = function(p, b, P) {
|
|
2885
|
+
return p = +p, b = b >>> 0, P || se(this, p, b, 2, 32767, -32768), this[b] = p >>> 8, this[b + 1] = p & 255, b + 2;
|
|
2886
|
+
}, g.prototype.writeInt32LE = function(p, b, P) {
|
|
2887
|
+
return p = +p, b = b >>> 0, P || se(this, p, b, 4, 2147483647, -2147483648), this[b] = p & 255, this[b + 1] = p >>> 8, this[b + 2] = p >>> 16, this[b + 3] = p >>> 24, b + 4;
|
|
2888
|
+
}, g.prototype.writeInt32BE = function(p, b, P) {
|
|
2889
|
+
return p = +p, b = b >>> 0, P || se(this, p, b, 4, 2147483647, -2147483648), p < 0 && (p = 4294967295 + p + 1), this[b] = p >>> 24, this[b + 1] = p >>> 16, this[b + 2] = p >>> 8, this[b + 3] = p & 255, b + 4;
|
|
2890
2890
|
}, g.prototype.writeBigInt64LE = Te(function(p, b = 0) {
|
|
2891
2891
|
return Ae(this, p, b, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
2892
2892
|
}), g.prototype.writeBigInt64BE = Te(function(p, b = 0) {
|
|
2893
2893
|
return Ve(this, p, b, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
2894
2894
|
});
|
|
2895
|
-
function ve(C, p, b,
|
|
2896
|
-
if (b +
|
|
2895
|
+
function ve(C, p, b, P, V, z) {
|
|
2896
|
+
if (b + P > C.length) throw new RangeError("Index out of range");
|
|
2897
2897
|
if (b < 0) throw new RangeError("Index out of range");
|
|
2898
2898
|
}
|
|
2899
|
-
function Oe(C, p, b,
|
|
2900
|
-
return p = +p, b = b >>> 0, V || ve(C, p, b, 4), n.write(C, p, b,
|
|
2899
|
+
function Oe(C, p, b, P, V) {
|
|
2900
|
+
return p = +p, b = b >>> 0, V || ve(C, p, b, 4), n.write(C, p, b, P, 23, 4), b + 4;
|
|
2901
2901
|
}
|
|
2902
|
-
g.prototype.writeFloatLE = function(p, b,
|
|
2903
|
-
return Oe(this, p, b, !0,
|
|
2904
|
-
}, g.prototype.writeFloatBE = function(p, b,
|
|
2905
|
-
return Oe(this, p, b, !1,
|
|
2902
|
+
g.prototype.writeFloatLE = function(p, b, P) {
|
|
2903
|
+
return Oe(this, p, b, !0, P);
|
|
2904
|
+
}, g.prototype.writeFloatBE = function(p, b, P) {
|
|
2905
|
+
return Oe(this, p, b, !1, P);
|
|
2906
2906
|
};
|
|
2907
|
-
function Ne(C, p, b,
|
|
2908
|
-
return p = +p, b = b >>> 0, V || ve(C, p, b, 8), n.write(C, p, b,
|
|
2909
|
-
}
|
|
2910
|
-
g.prototype.writeDoubleLE = function(p, b,
|
|
2911
|
-
return Ne(this, p, b, !0,
|
|
2912
|
-
}, g.prototype.writeDoubleBE = function(p, b,
|
|
2913
|
-
return Ne(this, p, b, !1,
|
|
2914
|
-
}, g.prototype.copy = function(p, b,
|
|
2907
|
+
function Ne(C, p, b, P, V) {
|
|
2908
|
+
return p = +p, b = b >>> 0, V || ve(C, p, b, 8), n.write(C, p, b, P, 52, 8), b + 8;
|
|
2909
|
+
}
|
|
2910
|
+
g.prototype.writeDoubleLE = function(p, b, P) {
|
|
2911
|
+
return Ne(this, p, b, !0, P);
|
|
2912
|
+
}, g.prototype.writeDoubleBE = function(p, b, P) {
|
|
2913
|
+
return Ne(this, p, b, !1, P);
|
|
2914
|
+
}, g.prototype.copy = function(p, b, P, V) {
|
|
2915
2915
|
if (!g.isBuffer(p)) throw new TypeError("argument should be a Buffer");
|
|
2916
|
-
if (
|
|
2916
|
+
if (P || (P = 0), !V && V !== 0 && (V = this.length), b >= p.length && (b = p.length), b || (b = 0), V > 0 && V < P && (V = P), V === P || p.length === 0 || this.length === 0) return 0;
|
|
2917
2917
|
if (b < 0)
|
|
2918
2918
|
throw new RangeError("targetStart out of bounds");
|
|
2919
|
-
if (
|
|
2919
|
+
if (P < 0 || P >= this.length) throw new RangeError("Index out of range");
|
|
2920
2920
|
if (V < 0) throw new RangeError("sourceEnd out of bounds");
|
|
2921
|
-
V > this.length && (V = this.length), p.length - b < V -
|
|
2922
|
-
const z = V -
|
|
2923
|
-
return this === p && typeof a.prototype.copyWithin == "function" ? this.copyWithin(b,
|
|
2921
|
+
V > this.length && (V = this.length), p.length - b < V - P && (V = p.length - b + P);
|
|
2922
|
+
const z = V - P;
|
|
2923
|
+
return this === p && typeof a.prototype.copyWithin == "function" ? this.copyWithin(b, P, V) : a.prototype.set.call(
|
|
2924
2924
|
p,
|
|
2925
|
-
this.subarray(
|
|
2925
|
+
this.subarray(P, V),
|
|
2926
2926
|
b
|
|
2927
2927
|
), z;
|
|
2928
|
-
}, g.prototype.fill = function(p, b,
|
|
2928
|
+
}, g.prototype.fill = function(p, b, P, V) {
|
|
2929
2929
|
if (typeof p == "string") {
|
|
2930
|
-
if (typeof b == "string" ? (V = b, b = 0,
|
|
2930
|
+
if (typeof b == "string" ? (V = b, b = 0, P = this.length) : typeof P == "string" && (V = P, P = this.length), V !== void 0 && typeof V != "string")
|
|
2931
2931
|
throw new TypeError("encoding must be a string");
|
|
2932
2932
|
if (typeof V == "string" && !g.isEncoding(V))
|
|
2933
2933
|
throw new TypeError("Unknown encoding: " + V);
|
|
@@ -2936,20 +2936,20 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2936
2936
|
(V === "utf8" && X < 128 || V === "latin1") && (p = X);
|
|
2937
2937
|
}
|
|
2938
2938
|
} else typeof p == "number" ? p = p & 255 : typeof p == "boolean" && (p = Number(p));
|
|
2939
|
-
if (b < 0 || this.length < b || this.length <
|
|
2939
|
+
if (b < 0 || this.length < b || this.length < P)
|
|
2940
2940
|
throw new RangeError("Out of range index");
|
|
2941
|
-
if (
|
|
2941
|
+
if (P <= b)
|
|
2942
2942
|
return this;
|
|
2943
|
-
b = b >>> 0,
|
|
2943
|
+
b = b >>> 0, P = P === void 0 ? this.length : P >>> 0, p || (p = 0);
|
|
2944
2944
|
let z;
|
|
2945
2945
|
if (typeof p == "number")
|
|
2946
|
-
for (z = b; z <
|
|
2946
|
+
for (z = b; z < P; ++z)
|
|
2947
2947
|
this[z] = p;
|
|
2948
2948
|
else {
|
|
2949
2949
|
const X = g.isBuffer(p) ? p : g.from(p, V), Pe = X.length;
|
|
2950
2950
|
if (Pe === 0)
|
|
2951
2951
|
throw new TypeError('The value "' + p + '" is invalid for argument "value"');
|
|
2952
|
-
for (z = 0; z <
|
|
2952
|
+
for (z = 0; z < P - b; ++z)
|
|
2953
2953
|
this[z + b] = X[z % Pe];
|
|
2954
2954
|
}
|
|
2955
2955
|
return this;
|
|
@@ -2995,28 +2995,28 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
2995
2995
|
), St(
|
|
2996
2996
|
"ERR_OUT_OF_RANGE",
|
|
2997
2997
|
function(C, p, b) {
|
|
2998
|
-
let
|
|
2999
|
-
return Number.isInteger(b) && Math.abs(b) > 2 ** 32 ? V = sn(String(b)) : typeof b == "bigint" && (V = String(b), (b > BigInt(2) ** BigInt(32) || b < -(BigInt(2) ** BigInt(32))) && (V = sn(V)), V += "n"),
|
|
2998
|
+
let P = `The value of "${C}" is out of range.`, V = b;
|
|
2999
|
+
return Number.isInteger(b) && Math.abs(b) > 2 ** 32 ? V = sn(String(b)) : typeof b == "bigint" && (V = String(b), (b > BigInt(2) ** BigInt(32) || b < -(BigInt(2) ** BigInt(32))) && (V = sn(V)), V += "n"), P += ` It must be ${p}. Received ${V}`, P;
|
|
3000
3000
|
},
|
|
3001
3001
|
RangeError
|
|
3002
3002
|
);
|
|
3003
3003
|
function sn(C) {
|
|
3004
3004
|
let p = "", b = C.length;
|
|
3005
|
-
const
|
|
3006
|
-
for (; b >=
|
|
3005
|
+
const P = C[0] === "-" ? 1 : 0;
|
|
3006
|
+
for (; b >= P + 4; b -= 3)
|
|
3007
3007
|
p = `_${C.slice(b - 3, b)}${p}`;
|
|
3008
3008
|
return `${C.slice(0, b)}${p}`;
|
|
3009
3009
|
}
|
|
3010
3010
|
function Rt(C, p, b) {
|
|
3011
3011
|
me(p, "offset"), (C[p] === void 0 || C[p + b] === void 0) && Ee(p, C.length - (b + 1));
|
|
3012
3012
|
}
|
|
3013
|
-
function Pt(C, p, b,
|
|
3013
|
+
function Pt(C, p, b, P, V, z) {
|
|
3014
3014
|
if (C > b || C < p) {
|
|
3015
3015
|
const X = typeof p == "bigint" ? "n" : "";
|
|
3016
3016
|
let Pe;
|
|
3017
3017
|
throw p === 0 || p === BigInt(0) ? Pe = `>= 0${X} and < 2${X} ** ${(z + 1) * 8}${X}` : Pe = `>= -(2${X} ** ${(z + 1) * 8 - 1}${X}) and < 2 ** ${(z + 1) * 8 - 1}${X}`, new Re.ERR_OUT_OF_RANGE("value", Pe, C);
|
|
3018
3018
|
}
|
|
3019
|
-
Rt(
|
|
3019
|
+
Rt(P, V, z);
|
|
3020
3020
|
}
|
|
3021
3021
|
function me(C, p) {
|
|
3022
3022
|
if (typeof C != "number")
|
|
@@ -3039,16 +3039,16 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
3039
3039
|
function ut(C, p) {
|
|
3040
3040
|
p = p || 1 / 0;
|
|
3041
3041
|
let b;
|
|
3042
|
-
const
|
|
3042
|
+
const P = C.length;
|
|
3043
3043
|
let V = null;
|
|
3044
3044
|
const z = [];
|
|
3045
|
-
for (let X = 0; X <
|
|
3045
|
+
for (let X = 0; X < P; ++X) {
|
|
3046
3046
|
if (b = C.charCodeAt(X), b > 55295 && b < 57344) {
|
|
3047
3047
|
if (!V) {
|
|
3048
3048
|
if (b > 56319) {
|
|
3049
3049
|
(p -= 3) > -1 && z.push(239, 191, 189);
|
|
3050
3050
|
continue;
|
|
3051
|
-
} else if (X + 1 ===
|
|
3051
|
+
} else if (X + 1 === P) {
|
|
3052
3052
|
(p -= 3) > -1 && z.push(239, 191, 189);
|
|
3053
3053
|
continue;
|
|
3054
3054
|
}
|
|
@@ -3097,18 +3097,18 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
3097
3097
|
return p;
|
|
3098
3098
|
}
|
|
3099
3099
|
function fe(C, p) {
|
|
3100
|
-
let b,
|
|
3100
|
+
let b, P, V;
|
|
3101
3101
|
const z = [];
|
|
3102
3102
|
for (let X = 0; X < C.length && !((p -= 2) < 0); ++X)
|
|
3103
|
-
b = C.charCodeAt(X),
|
|
3103
|
+
b = C.charCodeAt(X), P = b >> 8, V = b % 256, z.push(V), z.push(P);
|
|
3104
3104
|
return z;
|
|
3105
3105
|
}
|
|
3106
3106
|
function Je(C) {
|
|
3107
3107
|
return t.toByteArray(xt(C));
|
|
3108
3108
|
}
|
|
3109
|
-
function At(C, p, b,
|
|
3109
|
+
function At(C, p, b, P) {
|
|
3110
3110
|
let V;
|
|
3111
|
-
for (V = 0; V <
|
|
3111
|
+
for (V = 0; V < P && !(V + b >= p.length || V >= C.length); ++V)
|
|
3112
3112
|
p[V + b] = C[V];
|
|
3113
3113
|
return V;
|
|
3114
3114
|
}
|
|
@@ -3121,9 +3121,9 @@ Bl.write = function(e, t, n, i, o, a) {
|
|
|
3121
3121
|
const _e = function() {
|
|
3122
3122
|
const C = "0123456789abcdef", p = new Array(256);
|
|
3123
3123
|
for (let b = 0; b < 16; ++b) {
|
|
3124
|
-
const
|
|
3124
|
+
const P = b * 16;
|
|
3125
3125
|
for (let V = 0; V < 16; ++V)
|
|
3126
|
-
p[
|
|
3126
|
+
p[P + V] = C[b] + C[V];
|
|
3127
3127
|
}
|
|
3128
3128
|
return p;
|
|
3129
3129
|
}();
|
|
@@ -3210,53 +3210,53 @@ function ou(e, t, n) {
|
|
|
3210
3210
|
metaTokens: !0,
|
|
3211
3211
|
dots: !1,
|
|
3212
3212
|
indexes: !1
|
|
3213
|
-
}, !1, function(
|
|
3214
|
-
return !ee.isUndefined(w[
|
|
3213
|
+
}, !1, function(A, w) {
|
|
3214
|
+
return !ee.isUndefined(w[A]);
|
|
3215
3215
|
});
|
|
3216
3216
|
const i = n.metaTokens, o = n.visitor || g, a = n.dots, u = n.indexes, f = (n.Blob || typeof Blob < "u" && Blob) && ee.isSpecCompliantForm(t);
|
|
3217
3217
|
if (!ee.isFunction(o))
|
|
3218
3218
|
throw new TypeError("visitor must be a function");
|
|
3219
|
-
function y(
|
|
3220
|
-
if (
|
|
3221
|
-
if (ee.isDate(
|
|
3222
|
-
return
|
|
3223
|
-
if (!f && ee.isBlob(
|
|
3219
|
+
function y(E) {
|
|
3220
|
+
if (E === null) return "";
|
|
3221
|
+
if (ee.isDate(E))
|
|
3222
|
+
return E.toISOString();
|
|
3223
|
+
if (!f && ee.isBlob(E))
|
|
3224
3224
|
throw new lt("Blob is not supported. Use a Buffer instead.");
|
|
3225
|
-
return ee.isArrayBuffer(
|
|
3226
|
-
}
|
|
3227
|
-
function g(
|
|
3228
|
-
let
|
|
3229
|
-
if (
|
|
3230
|
-
if (ee.endsWith(
|
|
3231
|
-
|
|
3232
|
-
else if (ee.isArray(
|
|
3233
|
-
return
|
|
3225
|
+
return ee.isArrayBuffer(E) || ee.isTypedArray(E) ? f && typeof Blob == "function" ? new Blob([E]) : rx.from(E) : E;
|
|
3226
|
+
}
|
|
3227
|
+
function g(E, A, w) {
|
|
3228
|
+
let R = E;
|
|
3229
|
+
if (E && !w && typeof E == "object") {
|
|
3230
|
+
if (ee.endsWith(A, "{}"))
|
|
3231
|
+
A = i ? A : A.slice(0, -2), E = JSON.stringify(E);
|
|
3232
|
+
else if (ee.isArray(E) && sx(E) || (ee.isFileList(E) || ee.endsWith(A, "[]")) && (R = ee.toArray(E)))
|
|
3233
|
+
return A = lg(A), R.forEach(function(k, x) {
|
|
3234
3234
|
!(ee.isUndefined(k) || k === null) && t.append(
|
|
3235
3235
|
// eslint-disable-next-line no-nested-ternary
|
|
3236
|
-
u === !0 ? Rp([
|
|
3236
|
+
u === !0 ? Rp([A], x, a) : u === null ? A : A + "[]",
|
|
3237
3237
|
y(k)
|
|
3238
3238
|
);
|
|
3239
3239
|
}), !1;
|
|
3240
3240
|
}
|
|
3241
|
-
return ul(
|
|
3241
|
+
return ul(E) ? !0 : (t.append(Rp(w, A, a), y(E)), !1);
|
|
3242
3242
|
}
|
|
3243
3243
|
const d = [], v = Object.assign(ox, {
|
|
3244
3244
|
defaultVisitor: g,
|
|
3245
3245
|
convertValue: y,
|
|
3246
3246
|
isVisitable: ul
|
|
3247
3247
|
});
|
|
3248
|
-
function O(
|
|
3249
|
-
if (!ee.isUndefined(
|
|
3250
|
-
if (d.indexOf(
|
|
3251
|
-
throw Error("Circular reference detected in " +
|
|
3252
|
-
d.push(
|
|
3253
|
-
(!(ee.isUndefined(
|
|
3248
|
+
function O(E, A) {
|
|
3249
|
+
if (!ee.isUndefined(E)) {
|
|
3250
|
+
if (d.indexOf(E) !== -1)
|
|
3251
|
+
throw Error("Circular reference detected in " + A.join("."));
|
|
3252
|
+
d.push(E), ee.forEach(E, function(R, L) {
|
|
3253
|
+
(!(ee.isUndefined(R) || R === null) && o.call(
|
|
3254
3254
|
t,
|
|
3255
|
-
|
|
3255
|
+
R,
|
|
3256
3256
|
ee.isString(L) ? L.trim() : L,
|
|
3257
|
-
|
|
3257
|
+
A,
|
|
3258
3258
|
v
|
|
3259
|
-
)) === !0 && O(
|
|
3259
|
+
)) === !0 && O(R, A ? A.concat(L) : [L]);
|
|
3260
3260
|
}), d.pop();
|
|
3261
3261
|
}
|
|
3262
3262
|
}
|
|
@@ -3817,8 +3817,8 @@ const Fx = typeof XMLHttpRequest < "u", Bx = Fx && function(e) {
|
|
|
3817
3817
|
ee.isFormData(o) && (br.isStandardBrowserEnv || br.isStandardBrowserWebWorkerEnv ? a.setContentType(!1) : a.setContentType("multipart/form-data;", !1));
|
|
3818
3818
|
let y = new XMLHttpRequest();
|
|
3819
3819
|
if (e.auth) {
|
|
3820
|
-
const O = e.auth.username || "",
|
|
3821
|
-
a.set("Authorization", "Basic " + btoa(O + ":" +
|
|
3820
|
+
const O = e.auth.username || "", E = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
3821
|
+
a.set("Authorization", "Basic " + btoa(O + ":" + E));
|
|
3822
3822
|
}
|
|
3823
3823
|
const g = yg(e.baseURL, e.url);
|
|
3824
3824
|
y.open(e.method.toUpperCase(), hg(g, e.params, e.paramsSerializer), !0), y.timeout = e.timeout;
|
|
@@ -3827,7 +3827,7 @@ const Fx = typeof XMLHttpRequest < "u", Bx = Fx && function(e) {
|
|
|
3827
3827
|
return;
|
|
3828
3828
|
const O = zn.from(
|
|
3829
3829
|
"getAllResponseHeaders" in y && y.getAllResponseHeaders()
|
|
3830
|
-
),
|
|
3830
|
+
), A = {
|
|
3831
3831
|
data: !u || u === "text" || u === "json" ? y.responseText : y.response,
|
|
3832
3832
|
status: y.status,
|
|
3833
3833
|
statusText: y.statusText,
|
|
@@ -3835,11 +3835,11 @@ const Fx = typeof XMLHttpRequest < "u", Bx = Fx && function(e) {
|
|
|
3835
3835
|
config: e,
|
|
3836
3836
|
request: y
|
|
3837
3837
|
};
|
|
3838
|
-
xx(function(
|
|
3839
|
-
n(
|
|
3840
|
-
}, function(
|
|
3841
|
-
i(
|
|
3842
|
-
},
|
|
3838
|
+
xx(function(R) {
|
|
3839
|
+
n(R), f();
|
|
3840
|
+
}, function(R) {
|
|
3841
|
+
i(R), f();
|
|
3842
|
+
}, A), y = null;
|
|
3843
3843
|
}
|
|
3844
3844
|
if ("onloadend" in y ? y.onloadend = d : y.onreadystatechange = function() {
|
|
3845
3845
|
!y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(d);
|
|
@@ -3848,11 +3848,11 @@ const Fx = typeof XMLHttpRequest < "u", Bx = Fx && function(e) {
|
|
|
3848
3848
|
}, y.onerror = function() {
|
|
3849
3849
|
i(new lt("Network Error", lt.ERR_NETWORK, e, y)), y = null;
|
|
3850
3850
|
}, y.ontimeout = function() {
|
|
3851
|
-
let
|
|
3852
|
-
const
|
|
3853
|
-
e.timeoutErrorMessage && (
|
|
3854
|
-
|
|
3855
|
-
|
|
3851
|
+
let E = e.timeout ? "timeout of " + e.timeout + "ms exceeded" : "timeout exceeded";
|
|
3852
|
+
const A = e.transitional || pg;
|
|
3853
|
+
e.timeoutErrorMessage && (E = e.timeoutErrorMessage), i(new lt(
|
|
3854
|
+
E,
|
|
3855
|
+
A.clarifyTimeoutError ? lt.ETIMEDOUT : lt.ECONNABORTED,
|
|
3856
3856
|
e,
|
|
3857
3857
|
y
|
|
3858
3858
|
)), y = null;
|
|
@@ -3860,8 +3860,8 @@ const Fx = typeof XMLHttpRequest < "u", Bx = Fx && function(e) {
|
|
|
3860
3860
|
const O = (e.withCredentials || Ox(g)) && e.xsrfCookieName && _x.read(e.xsrfCookieName);
|
|
3861
3861
|
O && a.set(e.xsrfHeaderName, O);
|
|
3862
3862
|
}
|
|
3863
|
-
o === void 0 && a.setContentType(null), "setRequestHeader" in y && ee.forEach(a.toJSON(), function(
|
|
3864
|
-
y.setRequestHeader(
|
|
3863
|
+
o === void 0 && a.setContentType(null), "setRequestHeader" in y && ee.forEach(a.toJSON(), function(E, A) {
|
|
3864
|
+
y.setRequestHeader(A, E);
|
|
3865
3865
|
}), ee.isUndefined(e.withCredentials) || (y.withCredentials = !!e.withCredentials), u && u !== "json" && (y.responseType = e.responseType), typeof e.onDownloadProgress == "function" && y.addEventListener("progress", $p(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", $p(e.onUploadProgress)), (e.cancelToken || e.signal) && (l = (O) => {
|
|
3866
3866
|
y && (i(!O || O.type ? new vo(null, e, y) : O), y.abort(), y = null);
|
|
3867
3867
|
}, e.cancelToken && e.cancelToken.subscribe(l), e.signal && (e.signal.aborted ? l() : e.signal.addEventListener("abort", l)));
|
|
@@ -4071,41 +4071,41 @@ let ki = class {
|
|
|
4071
4071
|
a[n.method]
|
|
4072
4072
|
), u && ee.forEach(
|
|
4073
4073
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
4074
|
-
(
|
|
4075
|
-
delete a[
|
|
4074
|
+
(E) => {
|
|
4075
|
+
delete a[E];
|
|
4076
4076
|
}
|
|
4077
4077
|
), n.headers = zn.concat(u, a);
|
|
4078
4078
|
const l = [];
|
|
4079
4079
|
let f = !0;
|
|
4080
|
-
this.interceptors.request.forEach(function(
|
|
4081
|
-
typeof
|
|
4080
|
+
this.interceptors.request.forEach(function(A) {
|
|
4081
|
+
typeof A.runWhen == "function" && A.runWhen(n) === !1 || (f = f && A.synchronous, l.unshift(A.fulfilled, A.rejected));
|
|
4082
4082
|
});
|
|
4083
4083
|
const y = [];
|
|
4084
|
-
this.interceptors.response.forEach(function(
|
|
4085
|
-
y.push(
|
|
4084
|
+
this.interceptors.response.forEach(function(A) {
|
|
4085
|
+
y.push(A.fulfilled, A.rejected);
|
|
4086
4086
|
});
|
|
4087
4087
|
let g, d = 0, v;
|
|
4088
4088
|
if (!f) {
|
|
4089
|
-
const
|
|
4090
|
-
for (
|
|
4091
|
-
g = g.then(
|
|
4089
|
+
const E = [jp.bind(this), void 0];
|
|
4090
|
+
for (E.unshift.apply(E, l), E.push.apply(E, y), v = E.length, g = Promise.resolve(n); d < v; )
|
|
4091
|
+
g = g.then(E[d++], E[d++]);
|
|
4092
4092
|
return g;
|
|
4093
4093
|
}
|
|
4094
4094
|
v = l.length;
|
|
4095
4095
|
let O = n;
|
|
4096
4096
|
for (d = 0; d < v; ) {
|
|
4097
|
-
const
|
|
4097
|
+
const E = l[d++], A = l[d++];
|
|
4098
4098
|
try {
|
|
4099
|
-
O =
|
|
4099
|
+
O = E(O);
|
|
4100
4100
|
} catch (w) {
|
|
4101
|
-
|
|
4101
|
+
A.call(this, w);
|
|
4102
4102
|
break;
|
|
4103
4103
|
}
|
|
4104
4104
|
}
|
|
4105
4105
|
try {
|
|
4106
4106
|
g = jp.call(this, O);
|
|
4107
|
-
} catch (
|
|
4108
|
-
return Promise.reject(
|
|
4107
|
+
} catch (E) {
|
|
4108
|
+
return Promise.reject(E);
|
|
4109
4109
|
}
|
|
4110
4110
|
for (d = 0, v = y.length; d < v; )
|
|
4111
4111
|
g = g.then(y[d++], y[d++]);
|
|
@@ -4590,17 +4590,17 @@ var Ka = { exports: {} };
|
|
|
4590
4590
|
Ka.exports;
|
|
4591
4591
|
(function(e, t) {
|
|
4592
4592
|
(function() {
|
|
4593
|
-
var n, i = "4.17.21", o = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", l = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", y = 500, g = "__lodash_placeholder__", d = 1, v = 2, O = 4,
|
|
4593
|
+
var n, i = "4.17.21", o = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", l = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", y = 500, g = "__lodash_placeholder__", d = 1, v = 2, O = 4, E = 1, A = 2, w = 1, R = 2, L = 4, k = 8, x = 16, I = 32, T = 64, D = 128, K = 256, re = 512, ae = 30, ue = "...", pe = 800, ye = 16, he = 1, ce = 2, Fe = 3, ke = 1 / 0, xe = 9007199254740991, Ue = 17976931348623157e292, Ge = NaN, we = 4294967295, mt = we - 1, G = we >>> 1, Y = [
|
|
4594
4594
|
["ary", D],
|
|
4595
4595
|
["bind", w],
|
|
4596
|
-
["bindKey",
|
|
4596
|
+
["bindKey", R],
|
|
4597
4597
|
["curry", k],
|
|
4598
4598
|
["curryRight", x],
|
|
4599
4599
|
["flip", re],
|
|
4600
4600
|
["partial", I],
|
|
4601
4601
|
["partialRight", T],
|
|
4602
4602
|
["rearg", K]
|
|
4603
|
-
], se = "[object Arguments]", Ae = "[object Array]", Ve = "[object AsyncFunction]", ve = "[object Boolean]", Oe = "[object Date]", Ne = "[object DOMException]", Re = "[object Error]", St = "[object Function]", sn = "[object GeneratorFunction]", Rt = "[object Map]", Pt = "[object Number]", me = "[object Null]", Ee = "[object Object]", Me = "[object Promise]", xt = "[object Proxy]", ut = "[object RegExp]", vt = "[object Set]", fe = "[object String]", Je = "[object Symbol]", At = "[object Undefined]", et = "[object WeakMap]", $t = "[object WeakSet]", _e = "[object ArrayBuffer]", Te = "[object DataView]", Nt = "[object Float32Array]", C = "[object Float64Array]", p = "[object Int8Array]", b = "[object Int16Array]",
|
|
4603
|
+
], se = "[object Arguments]", Ae = "[object Array]", Ve = "[object AsyncFunction]", ve = "[object Boolean]", Oe = "[object Date]", Ne = "[object DOMException]", Re = "[object Error]", St = "[object Function]", sn = "[object GeneratorFunction]", Rt = "[object Map]", Pt = "[object Number]", me = "[object Null]", Ee = "[object Object]", Me = "[object Promise]", xt = "[object Proxy]", ut = "[object RegExp]", vt = "[object Set]", fe = "[object String]", Je = "[object Symbol]", At = "[object Undefined]", et = "[object WeakMap]", $t = "[object WeakSet]", _e = "[object ArrayBuffer]", Te = "[object DataView]", Nt = "[object Float32Array]", C = "[object Float64Array]", p = "[object Int8Array]", b = "[object Int16Array]", P = "[object Int32Array]", V = "[object Uint8Array]", z = "[object Uint8ClampedArray]", X = "[object Uint16Array]", Pe = "[object Uint32Array]", ft = /\b__p \+= '';/g, st = /\b(__p \+=) '' \+/g, ct = /(__e\(.*?\)|\b__t\)) \+\n'';/g, tt = /&(?:amp|lt|gt|quot|#39);/g, Mr = /[&<>"']/g, oi = RegExp(tt.source), Di = RegExp(Mr.source), Ri = /<%-([\s\S]+?)%>/g, Pi = /<%([\s\S]+?)%>/g, Ur = /<%=([\s\S]+?)%>/g, ai = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Cs = /^\w*$/, ks = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Ar = /[\\^$.*+?()[\]{}|]/g, Zn = RegExp(Ar.source), Vr = /^\s+/, Os = /\s/, Ts = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, pn = /\{\n\/\* \[wrapped with (.+)\] \*/, M = /,? & /, oe = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, de = /[()=,{}\[\]\/\s]/, Ce = /\\(\\)?/g, ot = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, at = /\w*$/, Xe = /^[-+]0x[0-9a-f]+$/i, Ke = /^0b[01]+$/i, Zt = /^\[object .+?Constructor\]$/, Ot = /^0o[0-7]+$/i, Ft = /^(?:0|[1-9]\d*)$/, ln = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, _n = /($^)/, er = /['\n\r\u2028\u2029\\]/g, Ut = "\\ud800-\\udfff", ui = "\\u0300-\\u036f", Is = "\\ufe20-\\ufe2f", Fs = "\\u20d0-\\u20ff", Oo = ui + Is + Fs, To = "\\u2700-\\u27bf", Io = "a-z\\xdf-\\xf6\\xf8-\\xff", yu = "\\xac\\xb1\\xd7\\xf7", mu = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", bu = "\\u2000-\\u206f", wu = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Cn = "A-Z\\xc0-\\xd6\\xd8-\\xde", Ni = "\\ufe0e\\ufe0f", Bs = yu + mu + bu + wu, Li = "['’]", vu = "[" + Ut + "]", qr = "[" + Bs + "]", $i = "[" + Oo + "]", Fo = "\\d+", Bo = "[" + To + "]", Do = "[" + Io + "]", Ro = "[^" + Ut + Bs + Fo + To + Io + Cn + "]", h = "\\ud83c[\\udffb-\\udfff]", S = "(?:" + $i + "|" + h + ")", N = "[^" + Ut + "]", q = "(?:\\ud83c[\\udde6-\\uddff]){2}", Z = "[\\ud800-\\udbff][\\udc00-\\udfff]", le = "[" + Cn + "]", qe = "\\u200d", pt = "(?:" + Do + "|" + Ro + ")", en = "(?:" + le + "|" + Ro + ")", Vt = "(?:" + Li + "(?:d|ll|m|re|s|t|ve))?", Zl = "(?:" + Li + "(?:D|LL|M|RE|S|T|VE))?", ef = S + "?", tf = "[" + Ni + "]?", Dy = "(?:" + qe + "(?:" + [N, q, Z].join("|") + ")" + tf + ef + ")*", Ry = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Py = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", nf = tf + ef + Dy, Ny = "(?:" + [Bo, q, Z].join("|") + ")" + nf, Ly = "(?:" + [N + $i + "?", $i, q, Z, vu].join("|") + ")", $y = RegExp(Li, "g"), jy = RegExp($i, "g"), Au = RegExp(h + "(?=" + h + ")|" + Ly + nf, "g"), My = RegExp([
|
|
4604
4604
|
le + "?" + Do + "+" + Vt + "(?=" + [qr, le, "$"].join("|") + ")",
|
|
4605
4605
|
en + "+" + Zl + "(?=" + [qr, le + pt, "$"].join("|") + ")",
|
|
4606
4606
|
le + "?" + pt + "+" + Vt,
|
|
@@ -4641,9 +4641,9 @@ Ka.exports;
|
|
|
4641
4641
|
"parseInt",
|
|
4642
4642
|
"setTimeout"
|
|
4643
4643
|
], Wy = -1, Tt = {};
|
|
4644
|
-
Tt[Nt] = Tt[C] = Tt[p] = Tt[b] = Tt[
|
|
4644
|
+
Tt[Nt] = Tt[C] = Tt[p] = Tt[b] = Tt[P] = Tt[V] = Tt[z] = Tt[X] = Tt[Pe] = !0, Tt[se] = Tt[Ae] = Tt[_e] = Tt[ve] = Tt[Te] = Tt[Oe] = Tt[Re] = Tt[St] = Tt[Rt] = Tt[Pt] = Tt[Ee] = Tt[ut] = Tt[vt] = Tt[fe] = Tt[et] = !1;
|
|
4645
4645
|
var _t = {};
|
|
4646
|
-
_t[se] = _t[Ae] = _t[_e] = _t[Te] = _t[ve] = _t[Oe] = _t[Nt] = _t[C] = _t[p] = _t[b] = _t[
|
|
4646
|
+
_t[se] = _t[Ae] = _t[_e] = _t[Te] = _t[ve] = _t[Oe] = _t[Nt] = _t[C] = _t[p] = _t[b] = _t[P] = _t[Rt] = _t[Pt] = _t[Ee] = _t[ut] = _t[vt] = _t[fe] = _t[Je] = _t[V] = _t[z] = _t[X] = _t[Pe] = !0, _t[Re] = _t[St] = _t[et] = !1;
|
|
4647
4647
|
var Ky = {
|
|
4648
4648
|
// Latin-1 Supplement block.
|
|
4649
4649
|
À: "A",
|
|
@@ -5649,7 +5649,7 @@ Ka.exports;
|
|
|
5649
5649
|
}
|
|
5650
5650
|
if (ge && !ne)
|
|
5651
5651
|
return B || (B = new nr()), j || Yi(r) ? bh(r, s, c, m, _, B) : Zm(r, s, H, c, m, _, B);
|
|
5652
|
-
if (!(c &
|
|
5652
|
+
if (!(c & E)) {
|
|
5653
5653
|
var Se = ne && wt.call(r, "__wrapped__"), Be = ie && wt.call(s, "__wrapped__");
|
|
5654
5654
|
if (Se || Be) {
|
|
5655
5655
|
var He = Se ? r.value() : r, De = Be ? s.value() : s;
|
|
@@ -5680,7 +5680,7 @@ Ka.exports;
|
|
|
5680
5680
|
var ie = new nr();
|
|
5681
5681
|
if (m)
|
|
5682
5682
|
var ge = m(te, ne, H, r, s, ie);
|
|
5683
|
-
if (!(ge === n ? Vs(ne, te,
|
|
5683
|
+
if (!(ge === n ? Vs(ne, te, E | A, m, ie) : ge))
|
|
5684
5684
|
return !1;
|
|
5685
5685
|
}
|
|
5686
5686
|
}
|
|
@@ -5738,7 +5738,7 @@ Ka.exports;
|
|
|
5738
5738
|
function Wf(r, s) {
|
|
5739
5739
|
return uc(r) && Eh(s) ? Sh(hr(r), s) : function(c) {
|
|
5740
5740
|
var m = bc(c, r);
|
|
5741
|
-
return m === n && m === s ? wc(c, r) : Vs(s, m,
|
|
5741
|
+
return m === n && m === s ? wc(c, r) : Vs(s, m, E | A);
|
|
5742
5742
|
};
|
|
5743
5743
|
}
|
|
5744
5744
|
function ta(r, s, c, m, _) {
|
|
@@ -6242,7 +6242,7 @@ Ka.exports;
|
|
|
6242
6242
|
});
|
|
6243
6243
|
}
|
|
6244
6244
|
function sa(r, s, c, m, _, B, j, U, H, te) {
|
|
6245
|
-
var ne = s & D, ie = s & w, ge = s &
|
|
6245
|
+
var ne = s & D, ie = s & w, ge = s & R, Se = s & (k | x), Be = s & re, He = ge ? n : Ws(r);
|
|
6246
6246
|
function De() {
|
|
6247
6247
|
for (var Ze = arguments.length, it = J(Ze), Fn = Ze; Fn--; )
|
|
6248
6248
|
it[Fn] = arguments[Fn];
|
|
@@ -6362,7 +6362,7 @@ Ka.exports;
|
|
|
6362
6362
|
};
|
|
6363
6363
|
}
|
|
6364
6364
|
function _r(r, s, c, m, _, B, j, U) {
|
|
6365
|
-
var H = s &
|
|
6365
|
+
var H = s & R;
|
|
6366
6366
|
if (!H && typeof r != "function")
|
|
6367
6367
|
throw new $n(u);
|
|
6368
6368
|
var te = m ? m.length : 0;
|
|
@@ -6398,13 +6398,13 @@ Ka.exports;
|
|
|
6398
6398
|
return zs(r) ? n : r;
|
|
6399
6399
|
}
|
|
6400
6400
|
function bh(r, s, c, m, _, B) {
|
|
6401
|
-
var j = c &
|
|
6401
|
+
var j = c & E, U = r.length, H = s.length;
|
|
6402
6402
|
if (U != H && !(j && H > U))
|
|
6403
6403
|
return !1;
|
|
6404
6404
|
var te = B.get(r), ne = B.get(s);
|
|
6405
6405
|
if (te && ne)
|
|
6406
6406
|
return te == s && ne == r;
|
|
6407
|
-
var ie = -1, ge = !0, Se = c &
|
|
6407
|
+
var ie = -1, ge = !0, Se = c & A ? new hi() : n;
|
|
6408
6408
|
for (B.set(r, s), B.set(s, r); ++ie < U; ) {
|
|
6409
6409
|
var Be = r[ie], He = s[ie];
|
|
6410
6410
|
if (m)
|
|
@@ -6450,13 +6450,13 @@ Ka.exports;
|
|
|
6450
6450
|
case Rt:
|
|
6451
6451
|
var U = Bu;
|
|
6452
6452
|
case vt:
|
|
6453
|
-
var H = m &
|
|
6453
|
+
var H = m & E;
|
|
6454
6454
|
if (U || (U = Lo), r.size != s.size && !H)
|
|
6455
6455
|
return !1;
|
|
6456
6456
|
var te = j.get(r);
|
|
6457
6457
|
if (te)
|
|
6458
6458
|
return te == s;
|
|
6459
|
-
m |=
|
|
6459
|
+
m |= A, j.set(r, s);
|
|
6460
6460
|
var ne = bh(U(r), U(s), m, _, B, j);
|
|
6461
6461
|
return j.delete(r), ne;
|
|
6462
6462
|
case Je:
|
|
@@ -6466,7 +6466,7 @@ Ka.exports;
|
|
|
6466
6466
|
return !1;
|
|
6467
6467
|
}
|
|
6468
6468
|
function e1(r, s, c, m, _, B) {
|
|
6469
|
-
var j = c &
|
|
6469
|
+
var j = c & E, U = rc(r), H = U.length, te = rc(s), ne = te.length;
|
|
6470
6470
|
if (H != ne && !j)
|
|
6471
6471
|
return !1;
|
|
6472
6472
|
for (var ie = H; ie--; ) {
|
|
@@ -6630,7 +6630,7 @@ Ka.exports;
|
|
|
6630
6630
|
case C:
|
|
6631
6631
|
case p:
|
|
6632
6632
|
case b:
|
|
6633
|
-
case
|
|
6633
|
+
case P:
|
|
6634
6634
|
case V:
|
|
6635
6635
|
case z:
|
|
6636
6636
|
case X:
|
|
@@ -6713,7 +6713,7 @@ Ka.exports;
|
|
|
6713
6713
|
return s;
|
|
6714
6714
|
}
|
|
6715
6715
|
function h1(r, s) {
|
|
6716
|
-
var c = r[1], m = s[1], _ = c | m, B = _ < (w |
|
|
6716
|
+
var c = r[1], m = s[1], _ = c | m, B = _ < (w | R | D), j = m == D && c == k || m == D && c == K && r[7].length <= s[8] || m == (D | K) && s[7].length <= s[8] && c == k;
|
|
6717
6717
|
if (!(B || j))
|
|
6718
6718
|
return r;
|
|
6719
6719
|
m & w && (r[2] = s[2], _ |= c & w ? 0 : L);
|
|
@@ -7281,7 +7281,7 @@ Ka.exports;
|
|
|
7281
7281
|
}
|
|
7282
7282
|
return _r(r, m, s, c, _);
|
|
7283
7283
|
}), Vh = Ye(function(r, s, c) {
|
|
7284
|
-
var m = w |
|
|
7284
|
+
var m = w | R;
|
|
7285
7285
|
if (c.length) {
|
|
7286
7286
|
var _ = Hr(c, Ji(Vh));
|
|
7287
7287
|
m |= I;
|
|
@@ -8241,7 +8241,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
8241
8241
|
var m = c.name + "";
|
|
8242
8242
|
wt.call(Ki, m) || (Ki[m] = []), Ki[m].push({ name: s, func: c });
|
|
8243
8243
|
}
|
|
8244
|
-
}), Ki[sa(n,
|
|
8244
|
+
}), Ki[sa(n, R).name] = [{
|
|
8245
8245
|
name: "wrapper",
|
|
8246
8246
|
func: n
|
|
8247
8247
|
}], nt.prototype.clone = V0, nt.prototype.reverse = q0, nt.prototype.value = W0, F.prototype.at = wb, F.prototype.chain = vb, F.prototype.commit = Ab, F.prototype.next = Eb, F.prototype.plant = xb, F.prototype.reverse = _b, F.prototype.toJSON = F.prototype.valueOf = F.prototype.value = Cb, F.prototype.first = F.prototype.head, Rs && (F.prototype[Rs] = Sb), F;
|
|
@@ -8484,50 +8484,51 @@ const yt = /* @__PURE__ */ _l(ro), Gx = kt.div`
|
|
|
8484
8484
|
additionalPrinterColumnsUndefinedValues: u,
|
|
8485
8485
|
additionalPrinterColumnsTrimLengths: l,
|
|
8486
8486
|
additionalPrinterColumnsColWidths: f,
|
|
8487
|
-
selectData: y
|
|
8487
|
+
selectData: y,
|
|
8488
|
+
withoutControls: g = !1
|
|
8488
8489
|
}) => {
|
|
8489
|
-
const
|
|
8490
|
+
const d = xl();
|
|
8490
8491
|
if (!i)
|
|
8491
8492
|
return null;
|
|
8492
|
-
const
|
|
8493
|
+
const v = t2({
|
|
8493
8494
|
columns: i,
|
|
8494
8495
|
additionalPrinterColumnsUndefinedValues: u,
|
|
8495
8496
|
additionalPrinterColumnsTrimLengths: l,
|
|
8496
8497
|
additionalPrinterColumnsColWidths: f
|
|
8497
8498
|
});
|
|
8498
|
-
if (!
|
|
8499
|
+
if (!v)
|
|
8499
8500
|
return null;
|
|
8500
|
-
const
|
|
8501
|
-
enrichedColumns:
|
|
8502
|
-
navigate:
|
|
8501
|
+
const O = g ? v : n2({
|
|
8502
|
+
enrichedColumns: v,
|
|
8503
|
+
navigate: d,
|
|
8503
8504
|
baseprefix: t
|
|
8504
8505
|
});
|
|
8505
|
-
if (!
|
|
8506
|
+
if (!O)
|
|
8506
8507
|
return null;
|
|
8507
|
-
const
|
|
8508
|
+
const E = (A) => `Total: ${A}`;
|
|
8508
8509
|
return /* @__PURE__ */ $.jsx(qp.TableContainer, { $isDark: e === "dark", $isCursorPointer: !!o, children: /* @__PURE__ */ $.jsx(qp.HideableControls, { children: /* @__PURE__ */ $.jsx(
|
|
8509
8510
|
LA,
|
|
8510
8511
|
{
|
|
8511
8512
|
dataSource: n,
|
|
8512
|
-
columns:
|
|
8513
|
+
columns: O,
|
|
8513
8514
|
pagination: {
|
|
8514
8515
|
position: ["bottomLeft"],
|
|
8515
8516
|
showSizeChanger: !0,
|
|
8516
8517
|
defaultPageSize: 10,
|
|
8517
8518
|
hideOnSinglePage: !1,
|
|
8518
|
-
showTotal:
|
|
8519
|
+
showTotal: E
|
|
8519
8520
|
},
|
|
8520
8521
|
scroll: { x: "max-content" },
|
|
8521
8522
|
rowSelection: y ? {
|
|
8522
8523
|
type: "checkbox",
|
|
8523
8524
|
selectedRowKeys: y.selectedRowKeys,
|
|
8524
8525
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8525
|
-
onChange: (A,
|
|
8526
|
+
onChange: (A, w) => {
|
|
8526
8527
|
y.onChange(
|
|
8527
8528
|
A,
|
|
8528
|
-
|
|
8529
|
-
name:
|
|
8530
|
-
endpoint: `${
|
|
8529
|
+
w.map(({ internalDataForControls: R }) => ({
|
|
8530
|
+
name: R.entryName,
|
|
8531
|
+
endpoint: `${R.deletePathPrefix}/${R.apiGroupAndVersion}${R.namespace ? `/namespaces/${R.namespace}` : ""}/${R.typeName}/${R.entryName}`
|
|
8531
8532
|
}))
|
|
8532
8533
|
);
|
|
8533
8534
|
}
|
|
@@ -8535,8 +8536,8 @@ const yt = /* @__PURE__ */ _l(ro), Gx = kt.div`
|
|
|
8535
8536
|
onRow: (A) => ({
|
|
8536
8537
|
onClick: () => {
|
|
8537
8538
|
if (o && a) {
|
|
8538
|
-
const
|
|
8539
|
-
|
|
8539
|
+
const w = ro.get(A, a), R = typeof w == "string" ? w : JSON.stringify(w), L = o.replaceAll("~recordValue~", R);
|
|
8540
|
+
d(L);
|
|
8540
8541
|
}
|
|
8541
8542
|
}
|
|
8542
8543
|
})
|
|
@@ -8563,9 +8564,9 @@ var xg = { exports: {} };
|
|
|
8563
8564
|
throw v.code = "MODULE_NOT_FOUND", v;
|
|
8564
8565
|
}
|
|
8565
8566
|
var O = o[y] = { exports: {} };
|
|
8566
|
-
i[y][0].call(O.exports, function(
|
|
8567
|
-
var
|
|
8568
|
-
return u(
|
|
8567
|
+
i[y][0].call(O.exports, function(E) {
|
|
8568
|
+
var A = i[y][1][E];
|
|
8569
|
+
return u(A || E);
|
|
8569
8570
|
}, O, O.exports, n, i, o, a);
|
|
8570
8571
|
}
|
|
8571
8572
|
return o[y].exports;
|
|
@@ -8576,7 +8577,7 @@ var xg = { exports: {} };
|
|
|
8576
8577
|
(function(a, u) {
|
|
8577
8578
|
u(typeof o < "u" ? o : a.esprima = {});
|
|
8578
8579
|
})(this, function(a) {
|
|
8579
|
-
var u, l, f, y, g, d, v, O,
|
|
8580
|
+
var u, l, f, y, g, d, v, O, E, A, w, R, L, k, x, I, T, D;
|
|
8580
8581
|
u = {
|
|
8581
8582
|
BooleanLiteral: 1,
|
|
8582
8583
|
EOF: 2,
|
|
@@ -8792,7 +8793,7 @@ var xg = { exports: {} };
|
|
|
8792
8793
|
return h === "eval" || h === "arguments";
|
|
8793
8794
|
}
|
|
8794
8795
|
function Ue(h) {
|
|
8795
|
-
if (
|
|
8796
|
+
if (A && ke(h))
|
|
8796
8797
|
return !0;
|
|
8797
8798
|
switch (h.length) {
|
|
8798
8799
|
case 2:
|
|
@@ -8826,19 +8827,19 @@ var xg = { exports: {} };
|
|
|
8826
8827
|
var S, N, q, Z;
|
|
8827
8828
|
for (S = w - h, N = {
|
|
8828
8829
|
start: {
|
|
8829
|
-
line:
|
|
8830
|
+
line: R,
|
|
8830
8831
|
column: w - L - h
|
|
8831
8832
|
}
|
|
8832
8833
|
}; w < k; )
|
|
8833
|
-
if (q =
|
|
8834
|
-
D.comments && (Z =
|
|
8835
|
-
line:
|
|
8834
|
+
if (q = E.charCodeAt(w), ++w, ye(q)) {
|
|
8835
|
+
D.comments && (Z = E.slice(S + h, w - 1), N.end = {
|
|
8836
|
+
line: R,
|
|
8836
8837
|
column: w - L - 1
|
|
8837
|
-
}, Ge("Line", Z, S, w - 1, N)), q === 13 &&
|
|
8838
|
+
}, Ge("Line", Z, S, w - 1, N)), q === 13 && E.charCodeAt(w) === 10 && ++w, ++R, L = w;
|
|
8838
8839
|
return;
|
|
8839
8840
|
}
|
|
8840
|
-
D.comments && (Z =
|
|
8841
|
-
line:
|
|
8841
|
+
D.comments && (Z = E.slice(S + h, w), N.end = {
|
|
8842
|
+
line: R,
|
|
8842
8843
|
column: w - L
|
|
8843
8844
|
}, Ge("Line", Z, S, w, N));
|
|
8844
8845
|
}
|
|
@@ -8846,16 +8847,16 @@ var xg = { exports: {} };
|
|
|
8846
8847
|
var h, S, N, q;
|
|
8847
8848
|
for (D.comments && (h = w - 2, S = {
|
|
8848
8849
|
start: {
|
|
8849
|
-
line:
|
|
8850
|
+
line: R,
|
|
8850
8851
|
column: w - L - 2
|
|
8851
8852
|
}
|
|
8852
8853
|
}); w < k; )
|
|
8853
|
-
if (N =
|
|
8854
|
-
N === 13 &&
|
|
8854
|
+
if (N = E.charCodeAt(w), ye(N))
|
|
8855
|
+
N === 13 && E.charCodeAt(w + 1) === 10 && ++w, ++R, ++w, L = w, w >= k && _e({}, d.UnexpectedToken, "ILLEGAL");
|
|
8855
8856
|
else if (N === 42) {
|
|
8856
|
-
if (
|
|
8857
|
-
++w, ++w, D.comments && (q =
|
|
8858
|
-
line:
|
|
8857
|
+
if (E.charCodeAt(w + 1) === 47) {
|
|
8858
|
+
++w, ++w, D.comments && (q = E.slice(h + 2, w - 2), S.end = {
|
|
8859
|
+
line: R,
|
|
8859
8860
|
column: w - L
|
|
8860
8861
|
}, Ge("Block", q, h, w, S));
|
|
8861
8862
|
return;
|
|
@@ -8868,24 +8869,24 @@ var xg = { exports: {} };
|
|
|
8868
8869
|
function G() {
|
|
8869
8870
|
var h, S;
|
|
8870
8871
|
for (S = w === 0; w < k; )
|
|
8871
|
-
if (h =
|
|
8872
|
+
if (h = E.charCodeAt(w), pe(h))
|
|
8872
8873
|
++w;
|
|
8873
8874
|
else if (ye(h))
|
|
8874
|
-
++w, h === 13 &&
|
|
8875
|
+
++w, h === 13 && E.charCodeAt(w) === 10 && ++w, ++R, L = w, S = !0;
|
|
8875
8876
|
else if (h === 47)
|
|
8876
|
-
if (h =
|
|
8877
|
+
if (h = E.charCodeAt(w + 1), h === 47)
|
|
8877
8878
|
++w, ++w, we(2), S = !0;
|
|
8878
8879
|
else if (h === 42)
|
|
8879
8880
|
++w, ++w, mt();
|
|
8880
8881
|
else
|
|
8881
8882
|
break;
|
|
8882
8883
|
else if (S && h === 45)
|
|
8883
|
-
if (
|
|
8884
|
+
if (E.charCodeAt(w + 1) === 45 && E.charCodeAt(w + 2) === 62)
|
|
8884
8885
|
w += 3, we(3);
|
|
8885
8886
|
else
|
|
8886
8887
|
break;
|
|
8887
8888
|
else if (h === 60)
|
|
8888
|
-
if (
|
|
8889
|
+
if (E.slice(w + 1, w + 4) === "!--")
|
|
8889
8890
|
++w, ++w, ++w, ++w, we(4);
|
|
8890
8891
|
else
|
|
8891
8892
|
break;
|
|
@@ -8895,43 +8896,43 @@ var xg = { exports: {} };
|
|
|
8895
8896
|
function Y(h) {
|
|
8896
8897
|
var S, N, q, Z = 0;
|
|
8897
8898
|
for (N = h === "u" ? 4 : 2, S = 0; S < N; ++S)
|
|
8898
|
-
if (w < k && ae(
|
|
8899
|
-
q =
|
|
8899
|
+
if (w < k && ae(E[w]))
|
|
8900
|
+
q = E[w++], Z = Z * 16 + "0123456789abcdef".indexOf(q.toLowerCase());
|
|
8900
8901
|
else
|
|
8901
8902
|
return "";
|
|
8902
8903
|
return String.fromCharCode(Z);
|
|
8903
8904
|
}
|
|
8904
8905
|
function se() {
|
|
8905
8906
|
var h, S;
|
|
8906
|
-
for (h =
|
|
8907
|
-
++w, S += String.fromCharCode(h), h === 92 && (S = S.substr(0, S.length - 1),
|
|
8907
|
+
for (h = E.charCodeAt(w++), S = String.fromCharCode(h), h === 92 && (E.charCodeAt(w) !== 117 && _e({}, d.UnexpectedToken, "ILLEGAL"), ++w, h = Y("u"), (!h || h === "\\" || !he(h.charCodeAt(0))) && _e({}, d.UnexpectedToken, "ILLEGAL"), S = h); w < k && (h = E.charCodeAt(w), !!ce(h)); )
|
|
8908
|
+
++w, S += String.fromCharCode(h), h === 92 && (S = S.substr(0, S.length - 1), E.charCodeAt(w) !== 117 && _e({}, d.UnexpectedToken, "ILLEGAL"), ++w, h = Y("u"), (!h || h === "\\" || !ce(h.charCodeAt(0))) && _e({}, d.UnexpectedToken, "ILLEGAL"), S += h);
|
|
8908
8909
|
return S;
|
|
8909
8910
|
}
|
|
8910
8911
|
function Ae() {
|
|
8911
8912
|
var h, S;
|
|
8912
8913
|
for (h = w++; w < k; ) {
|
|
8913
|
-
if (S =
|
|
8914
|
+
if (S = E.charCodeAt(w), S === 92)
|
|
8914
8915
|
return w = h, se();
|
|
8915
8916
|
if (ce(S))
|
|
8916
8917
|
++w;
|
|
8917
8918
|
else
|
|
8918
8919
|
break;
|
|
8919
8920
|
}
|
|
8920
|
-
return
|
|
8921
|
+
return E.slice(h, w);
|
|
8921
8922
|
}
|
|
8922
8923
|
function Ve() {
|
|
8923
8924
|
var h, S, N;
|
|
8924
|
-
return h = w, S =
|
|
8925
|
+
return h = w, S = E.charCodeAt(w) === 92 ? se() : Ae(), S.length === 1 ? N = u.Identifier : Ue(S) ? N = u.Keyword : S === "null" ? N = u.NullLiteral : S === "true" || S === "false" ? N = u.BooleanLiteral : N = u.Identifier, {
|
|
8925
8926
|
type: N,
|
|
8926
8927
|
value: S,
|
|
8927
|
-
lineNumber:
|
|
8928
|
+
lineNumber: R,
|
|
8928
8929
|
lineStart: L,
|
|
8929
8930
|
start: h,
|
|
8930
8931
|
end: w
|
|
8931
8932
|
};
|
|
8932
8933
|
}
|
|
8933
8934
|
function ve() {
|
|
8934
|
-
var h = w, S =
|
|
8935
|
+
var h = w, S = E.charCodeAt(w), N, q = E[w], Z, le, qe;
|
|
8935
8936
|
switch (S) {
|
|
8936
8937
|
case 46:
|
|
8937
8938
|
case 40:
|
|
@@ -8948,13 +8949,13 @@ var xg = { exports: {} };
|
|
|
8948
8949
|
return ++w, D.tokenize && (S === 40 ? D.openParenToken = D.tokens.length : S === 123 && (D.openCurlyToken = D.tokens.length)), {
|
|
8949
8950
|
type: u.Punctuator,
|
|
8950
8951
|
value: String.fromCharCode(S),
|
|
8951
|
-
lineNumber:
|
|
8952
|
+
lineNumber: R,
|
|
8952
8953
|
lineStart: L,
|
|
8953
8954
|
start: h,
|
|
8954
8955
|
end: w
|
|
8955
8956
|
};
|
|
8956
8957
|
default:
|
|
8957
|
-
if (N =
|
|
8958
|
+
if (N = E.charCodeAt(w + 1), N === 61)
|
|
8958
8959
|
switch (S) {
|
|
8959
8960
|
case 43:
|
|
8960
8961
|
case 45:
|
|
@@ -8969,28 +8970,28 @@ var xg = { exports: {} };
|
|
|
8969
8970
|
return w += 2, {
|
|
8970
8971
|
type: u.Punctuator,
|
|
8971
8972
|
value: String.fromCharCode(S) + String.fromCharCode(N),
|
|
8972
|
-
lineNumber:
|
|
8973
|
+
lineNumber: R,
|
|
8973
8974
|
lineStart: L,
|
|
8974
8975
|
start: h,
|
|
8975
8976
|
end: w
|
|
8976
8977
|
};
|
|
8977
8978
|
case 33:
|
|
8978
8979
|
case 61:
|
|
8979
|
-
return w += 2,
|
|
8980
|
+
return w += 2, E.charCodeAt(w) === 61 && ++w, {
|
|
8980
8981
|
type: u.Punctuator,
|
|
8981
|
-
value:
|
|
8982
|
-
lineNumber:
|
|
8982
|
+
value: E.slice(h, w),
|
|
8983
|
+
lineNumber: R,
|
|
8983
8984
|
lineStart: L,
|
|
8984
8985
|
start: h,
|
|
8985
8986
|
end: w
|
|
8986
8987
|
};
|
|
8987
8988
|
}
|
|
8988
8989
|
}
|
|
8989
|
-
if (qe =
|
|
8990
|
+
if (qe = E.substr(w, 4), qe === ">>>=")
|
|
8990
8991
|
return w += 4, {
|
|
8991
8992
|
type: u.Punctuator,
|
|
8992
8993
|
value: qe,
|
|
8993
|
-
lineNumber:
|
|
8994
|
+
lineNumber: R,
|
|
8994
8995
|
lineStart: L,
|
|
8995
8996
|
start: h,
|
|
8996
8997
|
end: w
|
|
@@ -8999,7 +9000,7 @@ var xg = { exports: {} };
|
|
|
8999
9000
|
return w += 3, {
|
|
9000
9001
|
type: u.Punctuator,
|
|
9001
9002
|
value: le,
|
|
9002
|
-
lineNumber:
|
|
9003
|
+
lineNumber: R,
|
|
9003
9004
|
lineStart: L,
|
|
9004
9005
|
start: h,
|
|
9005
9006
|
end: w
|
|
@@ -9008,7 +9009,7 @@ var xg = { exports: {} };
|
|
|
9008
9009
|
return w += 2, {
|
|
9009
9010
|
type: u.Punctuator,
|
|
9010
9011
|
value: Z,
|
|
9011
|
-
lineNumber:
|
|
9012
|
+
lineNumber: R,
|
|
9012
9013
|
lineStart: L,
|
|
9013
9014
|
start: h,
|
|
9014
9015
|
end: w
|
|
@@ -9017,7 +9018,7 @@ var xg = { exports: {} };
|
|
|
9017
9018
|
return ++w, {
|
|
9018
9019
|
type: u.Punctuator,
|
|
9019
9020
|
value: q,
|
|
9020
|
-
lineNumber:
|
|
9021
|
+
lineNumber: R,
|
|
9021
9022
|
lineStart: L,
|
|
9022
9023
|
start: h,
|
|
9023
9024
|
end: w
|
|
@@ -9025,25 +9026,25 @@ var xg = { exports: {} };
|
|
|
9025
9026
|
_e({}, d.UnexpectedToken, "ILLEGAL");
|
|
9026
9027
|
}
|
|
9027
9028
|
function Oe(h) {
|
|
9028
|
-
for (var S = ""; w < k && ae(
|
|
9029
|
-
S +=
|
|
9030
|
-
return S.length === 0 && _e({}, d.UnexpectedToken, "ILLEGAL"), he(
|
|
9029
|
+
for (var S = ""; w < k && ae(E[w]); )
|
|
9030
|
+
S += E[w++];
|
|
9031
|
+
return S.length === 0 && _e({}, d.UnexpectedToken, "ILLEGAL"), he(E.charCodeAt(w)) && _e({}, d.UnexpectedToken, "ILLEGAL"), {
|
|
9031
9032
|
type: u.NumericLiteral,
|
|
9032
9033
|
value: parseInt("0x" + S, 16),
|
|
9033
|
-
lineNumber:
|
|
9034
|
+
lineNumber: R,
|
|
9034
9035
|
lineStart: L,
|
|
9035
9036
|
start: h,
|
|
9036
9037
|
end: w
|
|
9037
9038
|
};
|
|
9038
9039
|
}
|
|
9039
9040
|
function Ne(h) {
|
|
9040
|
-
for (var S = "0" +
|
|
9041
|
-
S +=
|
|
9042
|
-
return (he(
|
|
9041
|
+
for (var S = "0" + E[w++]; w < k && ue(E[w]); )
|
|
9042
|
+
S += E[w++];
|
|
9043
|
+
return (he(E.charCodeAt(w)) || re(E.charCodeAt(w))) && _e({}, d.UnexpectedToken, "ILLEGAL"), {
|
|
9043
9044
|
type: u.NumericLiteral,
|
|
9044
9045
|
value: parseInt(S, 8),
|
|
9045
9046
|
octal: !0,
|
|
9046
|
-
lineNumber:
|
|
9047
|
+
lineNumber: R,
|
|
9047
9048
|
lineStart: L,
|
|
9048
9049
|
start: h,
|
|
9049
9050
|
end: w
|
|
@@ -9051,36 +9052,36 @@ var xg = { exports: {} };
|
|
|
9051
9052
|
}
|
|
9052
9053
|
function Re() {
|
|
9053
9054
|
var h, S, N;
|
|
9054
|
-
if (N =
|
|
9055
|
+
if (N = E[w], K(
|
|
9055
9056
|
re(N.charCodeAt(0)) || N === ".",
|
|
9056
9057
|
"Numeric literal must start with a decimal digit or a decimal point"
|
|
9057
9058
|
), S = w, h = "", N !== ".") {
|
|
9058
|
-
if (h =
|
|
9059
|
+
if (h = E[w++], N = E[w], h === "0") {
|
|
9059
9060
|
if (N === "x" || N === "X")
|
|
9060
9061
|
return ++w, Oe(S);
|
|
9061
9062
|
if (ue(N))
|
|
9062
9063
|
return Ne(S);
|
|
9063
9064
|
N && re(N.charCodeAt(0)) && _e({}, d.UnexpectedToken, "ILLEGAL");
|
|
9064
9065
|
}
|
|
9065
|
-
for (; re(
|
|
9066
|
-
h +=
|
|
9067
|
-
N =
|
|
9066
|
+
for (; re(E.charCodeAt(w)); )
|
|
9067
|
+
h += E[w++];
|
|
9068
|
+
N = E[w];
|
|
9068
9069
|
}
|
|
9069
9070
|
if (N === ".") {
|
|
9070
|
-
for (h +=
|
|
9071
|
-
h +=
|
|
9072
|
-
N =
|
|
9071
|
+
for (h += E[w++]; re(E.charCodeAt(w)); )
|
|
9072
|
+
h += E[w++];
|
|
9073
|
+
N = E[w];
|
|
9073
9074
|
}
|
|
9074
9075
|
if (N === "e" || N === "E")
|
|
9075
|
-
if (h +=
|
|
9076
|
-
for (; re(
|
|
9077
|
-
h +=
|
|
9076
|
+
if (h += E[w++], N = E[w], (N === "+" || N === "-") && (h += E[w++]), re(E.charCodeAt(w)))
|
|
9077
|
+
for (; re(E.charCodeAt(w)); )
|
|
9078
|
+
h += E[w++];
|
|
9078
9079
|
else
|
|
9079
9080
|
_e({}, d.UnexpectedToken, "ILLEGAL");
|
|
9080
|
-
return he(
|
|
9081
|
+
return he(E.charCodeAt(w)) && _e({}, d.UnexpectedToken, "ILLEGAL"), {
|
|
9081
9082
|
type: u.NumericLiteral,
|
|
9082
9083
|
value: parseFloat(h),
|
|
9083
|
-
lineNumber:
|
|
9084
|
+
lineNumber: R,
|
|
9084
9085
|
lineStart: L,
|
|
9085
9086
|
start: S,
|
|
9086
9087
|
end: w
|
|
@@ -9088,15 +9089,15 @@ var xg = { exports: {} };
|
|
|
9088
9089
|
}
|
|
9089
9090
|
function St() {
|
|
9090
9091
|
var h = "", S, N, q, Z, le, qe, pt = !1, en, Vt;
|
|
9091
|
-
for (en =
|
|
9092
|
+
for (en = R, Vt = L, S = E[w], K(
|
|
9092
9093
|
S === "'" || S === '"',
|
|
9093
9094
|
"String literal must starts with a quote"
|
|
9094
9095
|
), N = w, ++w; w < k; )
|
|
9095
|
-
if (q =
|
|
9096
|
+
if (q = E[w++], q === S) {
|
|
9096
9097
|
S = "";
|
|
9097
9098
|
break;
|
|
9098
9099
|
} else if (q === "\\")
|
|
9099
|
-
if (q =
|
|
9100
|
+
if (q = E[w++], !q || !ye(q.charCodeAt(0)))
|
|
9100
9101
|
switch (q) {
|
|
9101
9102
|
case "u":
|
|
9102
9103
|
case "x":
|
|
@@ -9122,11 +9123,11 @@ var xg = { exports: {} };
|
|
|
9122
9123
|
h += "\v";
|
|
9123
9124
|
break;
|
|
9124
9125
|
default:
|
|
9125
|
-
ue(q) ? (Z = "01234567".indexOf(q), Z !== 0 && (pt = !0), w < k && ue(
|
|
9126
|
+
ue(q) ? (Z = "01234567".indexOf(q), Z !== 0 && (pt = !0), w < k && ue(E[w]) && (pt = !0, Z = Z * 8 + "01234567".indexOf(E[w++]), "0123".indexOf(q) >= 0 && w < k && ue(E[w]) && (Z = Z * 8 + "01234567".indexOf(E[w++]))), h += String.fromCharCode(Z)) : h += q;
|
|
9126
9127
|
break;
|
|
9127
9128
|
}
|
|
9128
9129
|
else
|
|
9129
|
-
++
|
|
9130
|
+
++R, q === "\r" && E[w] === `
|
|
9130
9131
|
` && ++w, L = w;
|
|
9131
9132
|
else {
|
|
9132
9133
|
if (ye(q.charCodeAt(0)))
|
|
@@ -9139,7 +9140,7 @@ var xg = { exports: {} };
|
|
|
9139
9140
|
octal: pt,
|
|
9140
9141
|
startLineNumber: en,
|
|
9141
9142
|
startLineStart: Vt,
|
|
9142
|
-
lineNumber:
|
|
9143
|
+
lineNumber: R,
|
|
9143
9144
|
lineStart: L,
|
|
9144
9145
|
start: N,
|
|
9145
9146
|
end: w
|
|
@@ -9156,9 +9157,9 @@ var xg = { exports: {} };
|
|
|
9156
9157
|
}
|
|
9157
9158
|
function Rt() {
|
|
9158
9159
|
var h, S, N, q, Z;
|
|
9159
|
-
for (h =
|
|
9160
|
-
if (h =
|
|
9161
|
-
h =
|
|
9160
|
+
for (h = E[w], K(h === "/", "Regular expression literal must start with a slash"), S = E[w++], N = !1, q = !1; w < k; )
|
|
9161
|
+
if (h = E[w++], S += h, h === "\\")
|
|
9162
|
+
h = E[w++], ye(h.charCodeAt(0)) && _e({}, d.UnterminatedRegExp), S += h;
|
|
9162
9163
|
else if (ye(h.charCodeAt(0)))
|
|
9163
9164
|
_e({}, d.UnterminatedRegExp);
|
|
9164
9165
|
else if (N)
|
|
@@ -9174,12 +9175,12 @@ var xg = { exports: {} };
|
|
|
9174
9175
|
}
|
|
9175
9176
|
function Pt() {
|
|
9176
9177
|
var h, S, N, q;
|
|
9177
|
-
for (S = "", N = ""; w < k && (h =
|
|
9178
|
+
for (S = "", N = ""; w < k && (h = E[w], !!ce(h.charCodeAt(0))); )
|
|
9178
9179
|
if (++w, h === "\\" && w < k)
|
|
9179
|
-
if (h =
|
|
9180
|
+
if (h = E[w], h === "u") {
|
|
9180
9181
|
if (++w, q = w, h = Y("u"), h)
|
|
9181
9182
|
for (N += h, S += "\\u"; q < w; ++q)
|
|
9182
|
-
S +=
|
|
9183
|
+
S += E[q];
|
|
9183
9184
|
else
|
|
9184
9185
|
w = q, N += "u", S += "\\u";
|
|
9185
9186
|
Te({}, d.UnexpectedToken, "ILLEGAL");
|
|
@@ -9197,7 +9198,7 @@ var xg = { exports: {} };
|
|
|
9197
9198
|
return I = null, G(), h = w, S = Rt(), N = Pt(), q = sn(S.value, N.value), D.tokenize ? {
|
|
9198
9199
|
type: u.RegularExpression,
|
|
9199
9200
|
value: q,
|
|
9200
|
-
lineNumber:
|
|
9201
|
+
lineNumber: R,
|
|
9201
9202
|
lineStart: L,
|
|
9202
9203
|
start: h,
|
|
9203
9204
|
end: w
|
|
@@ -9212,11 +9213,11 @@ var xg = { exports: {} };
|
|
|
9212
9213
|
var h, S, N, q;
|
|
9213
9214
|
return G(), h = w, S = {
|
|
9214
9215
|
start: {
|
|
9215
|
-
line:
|
|
9216
|
+
line: R,
|
|
9216
9217
|
column: w - L
|
|
9217
9218
|
}
|
|
9218
9219
|
}, N = me(), S.end = {
|
|
9219
|
-
line:
|
|
9220
|
+
line: R,
|
|
9220
9221
|
column: w - L
|
|
9221
9222
|
}, D.tokenize || (D.tokens.length > 0 && (q = D.tokens[D.tokens.length - 1], q.range[0] === h && q.type === "Punctuator" && (q.value === "/" || q.value === "/=") && D.tokens.pop()), D.tokens.push({
|
|
9222
9223
|
type: "RegularExpression",
|
|
@@ -9256,23 +9257,23 @@ var xg = { exports: {} };
|
|
|
9256
9257
|
var h;
|
|
9257
9258
|
return G(), w >= k ? {
|
|
9258
9259
|
type: u.EOF,
|
|
9259
|
-
lineNumber:
|
|
9260
|
+
lineNumber: R,
|
|
9260
9261
|
lineStart: L,
|
|
9261
9262
|
start: w,
|
|
9262
9263
|
end: w
|
|
9263
|
-
} : (h =
|
|
9264
|
+
} : (h = E.charCodeAt(w), he(h) ? Ve() : h === 40 || h === 41 || h === 59 ? ve() : h === 39 || h === 34 ? St() : h === 46 ? re(E.charCodeAt(w + 1)) ? Re() : ve() : re(h) ? Re() : D.tokenize && h === 47 ? xt() : ve());
|
|
9264
9265
|
}
|
|
9265
9266
|
function vt() {
|
|
9266
9267
|
var h, S, N;
|
|
9267
9268
|
return G(), h = {
|
|
9268
9269
|
start: {
|
|
9269
|
-
line:
|
|
9270
|
+
line: R,
|
|
9270
9271
|
column: w - L
|
|
9271
9272
|
}
|
|
9272
9273
|
}, S = ut(), h.end = {
|
|
9273
|
-
line:
|
|
9274
|
+
line: R,
|
|
9274
9275
|
column: w - L
|
|
9275
|
-
}, S.type !== u.EOF && (N =
|
|
9276
|
+
}, S.type !== u.EOF && (N = E.slice(S.start, S.end), D.tokens.push({
|
|
9276
9277
|
type: l[S.type],
|
|
9277
9278
|
value: N,
|
|
9278
9279
|
range: [S.start, S.end],
|
|
@@ -9281,11 +9282,11 @@ var xg = { exports: {} };
|
|
|
9281
9282
|
}
|
|
9282
9283
|
function fe() {
|
|
9283
9284
|
var h;
|
|
9284
|
-
return h = I, w = h.end,
|
|
9285
|
+
return h = I, w = h.end, R = h.lineNumber, L = h.lineStart, I = typeof D.tokens < "u" ? vt() : ut(), w = h.end, R = h.lineNumber, L = h.lineStart, h;
|
|
9285
9286
|
}
|
|
9286
9287
|
function Je() {
|
|
9287
9288
|
var h, S, N;
|
|
9288
|
-
h = w, S =
|
|
9289
|
+
h = w, S = R, N = L, I = typeof D.tokens < "u" ? vt() : ut(), w = h, R = S, L = N;
|
|
9289
9290
|
}
|
|
9290
9291
|
function At(h, S) {
|
|
9291
9292
|
this.line = h, this.column = S;
|
|
@@ -9307,7 +9308,7 @@ var xg = { exports: {} };
|
|
|
9307
9308
|
return D.range && (h.range = [S.start, w]), D.loc && (h.loc = new et(
|
|
9308
9309
|
S.startLineNumber === void 0 ? S.lineNumber : S.startLineNumber,
|
|
9309
9310
|
S.start - (S.startLineStart === void 0 ? S.lineStart : S.startLineStart),
|
|
9310
|
-
|
|
9311
|
+
R,
|
|
9311
9312
|
w - L
|
|
9312
9313
|
), this.postProcess(h)), D.attachComment && this.processComment(h), h;
|
|
9313
9314
|
},
|
|
@@ -9467,7 +9468,7 @@ var xg = { exports: {} };
|
|
|
9467
9468
|
return {
|
|
9468
9469
|
type: y.Literal,
|
|
9469
9470
|
value: h.value,
|
|
9470
|
-
raw:
|
|
9471
|
+
raw: E.slice(h.start, h.end)
|
|
9471
9472
|
};
|
|
9472
9473
|
},
|
|
9473
9474
|
createMemberExpression: function(h, S, N) {
|
|
@@ -9603,7 +9604,7 @@ var xg = { exports: {} };
|
|
|
9603
9604
|
};
|
|
9604
9605
|
function $t() {
|
|
9605
9606
|
var h, S, N, q;
|
|
9606
|
-
return h = w, S =
|
|
9607
|
+
return h = w, S = R, N = L, G(), q = R !== S, w = h, R = S, L = N, q;
|
|
9607
9608
|
}
|
|
9608
9609
|
function _e(h, S) {
|
|
9609
9610
|
var N, q = Array.prototype.slice.call(arguments, 2), Z = S.replace(
|
|
@@ -9612,7 +9613,7 @@ var xg = { exports: {} };
|
|
|
9612
9613
|
return K(qe < q.length, "Message reference must be in range"), q[qe];
|
|
9613
9614
|
}
|
|
9614
9615
|
);
|
|
9615
|
-
throw typeof h.lineNumber == "number" ? (N = new Error("Line " + h.lineNumber + ": " + Z), N.index = h.start, N.lineNumber = h.lineNumber, N.column = h.start - L + 1) : (N = new Error("Line " +
|
|
9616
|
+
throw typeof h.lineNumber == "number" ? (N = new Error("Line " + h.lineNumber + ": " + Z), N.index = h.start, N.lineNumber = h.lineNumber, N.column = h.start - L + 1) : (N = new Error("Line " + R + ": " + Z), N.index = w, N.lineNumber = R, N.column = w - L + 1), N.description = Z, N;
|
|
9616
9617
|
}
|
|
9617
9618
|
function Te() {
|
|
9618
9619
|
try {
|
|
@@ -9628,7 +9629,7 @@ var xg = { exports: {} };
|
|
|
9628
9629
|
if (h.type === u.EOF && _e(h, d.UnexpectedEOS), h.type === u.NumericLiteral && _e(h, d.UnexpectedNumber), h.type === u.StringLiteral && _e(h, d.UnexpectedString), h.type === u.Identifier && _e(h, d.UnexpectedIdentifier), h.type === u.Keyword) {
|
|
9629
9630
|
if (Fe(h.value))
|
|
9630
9631
|
_e(h, d.UnexpectedReserved);
|
|
9631
|
-
else if (
|
|
9632
|
+
else if (A && ke(h.value)) {
|
|
9632
9633
|
Te(h, d.StrictReservedWord);
|
|
9633
9634
|
return;
|
|
9634
9635
|
}
|
|
@@ -9647,7 +9648,7 @@ var xg = { exports: {} };
|
|
|
9647
9648
|
function b(h) {
|
|
9648
9649
|
return I.type === u.Punctuator && I.value === h;
|
|
9649
9650
|
}
|
|
9650
|
-
function
|
|
9651
|
+
function P(h) {
|
|
9651
9652
|
return I.type === u.Keyword && I.value === h;
|
|
9652
9653
|
}
|
|
9653
9654
|
function V() {
|
|
@@ -9656,11 +9657,11 @@ var xg = { exports: {} };
|
|
|
9656
9657
|
}
|
|
9657
9658
|
function z() {
|
|
9658
9659
|
var h;
|
|
9659
|
-
if (
|
|
9660
|
+
if (E.charCodeAt(w) === 59 || b(";")) {
|
|
9660
9661
|
fe();
|
|
9661
9662
|
return;
|
|
9662
9663
|
}
|
|
9663
|
-
h =
|
|
9664
|
+
h = R, G(), R === h && I.type !== u.EOF && !b("}") && Nt(I);
|
|
9664
9665
|
}
|
|
9665
9666
|
function X(h) {
|
|
9666
9667
|
return h.type === y.Identifier || h.type === y.MemberExpression;
|
|
@@ -9673,11 +9674,11 @@ var xg = { exports: {} };
|
|
|
9673
9674
|
}
|
|
9674
9675
|
function ft(h, S) {
|
|
9675
9676
|
var N, q, Z;
|
|
9676
|
-
return N =
|
|
9677
|
+
return N = A, Z = I, q = Ni(), S && A && xe(h[0].name) && Te(S, d.StrictParamName), A = N, x.markEnd(x.createFunctionExpression(null, h, [], q), Z);
|
|
9677
9678
|
}
|
|
9678
9679
|
function st() {
|
|
9679
9680
|
var h, S;
|
|
9680
|
-
return S = I, h = fe(), h.type === u.StringLiteral || h.type === u.NumericLiteral ? (
|
|
9681
|
+
return S = I, h = fe(), h.type === u.StringLiteral || h.type === u.NumericLiteral ? (A && h.octal && Te(h, d.StrictOctalLiteral), x.markEnd(x.createLiteral(h), S)) : x.markEnd(x.createIdentifier(h.value), S);
|
|
9681
9682
|
}
|
|
9682
9683
|
function ct() {
|
|
9683
9684
|
var h, S, N, q, Z, le;
|
|
@@ -9691,7 +9692,7 @@ var xg = { exports: {} };
|
|
|
9691
9692
|
function tt() {
|
|
9692
9693
|
var h = [], S, N, q, Z, le = {}, qe = String, pt;
|
|
9693
9694
|
for (pt = I, C("{"); !b("}"); )
|
|
9694
|
-
S = ct(), S.key.type === y.Identifier ? N = S.key.name : N = qe(S.key.value), Z = S.kind === "init" ? g.Data : S.kind === "get" ? g.Get : g.Set, q = "$" + N, Object.prototype.hasOwnProperty.call(le, q) ? (le[q] === g.Data ?
|
|
9695
|
+
S = ct(), S.key.type === y.Identifier ? N = S.key.name : N = qe(S.key.value), Z = S.kind === "init" ? g.Data : S.kind === "get" ? g.Get : g.Set, q = "$" + N, Object.prototype.hasOwnProperty.call(le, q) ? (le[q] === g.Data ? A && Z === g.Data ? Te({}, d.StrictDuplicateProperty) : Z !== g.Data && Te({}, d.AccessorDataProperty) : Z === g.Data ? Te({}, d.AccessorDataProperty) : le[q] & Z && Te({}, d.AccessorGetSet), le[q] |= Z) : le[q] = Z, h.push(S), b("}") || C(",");
|
|
9695
9696
|
return C("}"), x.markEnd(x.createObjectExpression(h), pt);
|
|
9696
9697
|
}
|
|
9697
9698
|
function Mr() {
|
|
@@ -9709,11 +9710,11 @@ var xg = { exports: {} };
|
|
|
9709
9710
|
if (h = I.type, q = I, h === u.Identifier)
|
|
9710
9711
|
N = x.createIdentifier(fe().value);
|
|
9711
9712
|
else if (h === u.StringLiteral || h === u.NumericLiteral)
|
|
9712
|
-
|
|
9713
|
+
A && I.octal && Te(I, d.StrictOctalLiteral), N = x.createLiteral(fe());
|
|
9713
9714
|
else if (h === u.Keyword) {
|
|
9714
|
-
if (
|
|
9715
|
+
if (P("function"))
|
|
9715
9716
|
return vu();
|
|
9716
|
-
|
|
9717
|
+
P("this") ? (fe(), N = x.createThisExpression()) : Nt(fe());
|
|
9717
9718
|
} else h === u.BooleanLiteral ? (S = fe(), S.value = S.value === "true", N = x.createLiteral(S)) : h === u.NullLiteral ? (S = fe(), S.value = null, N = x.createLiteral(S)) : b("/") || b("/=") ? (typeof D.tokens < "u" ? N = x.createLiteral(Ee()) : N = x.createLiteral(me()), Je()) : Nt(fe());
|
|
9718
9719
|
return x.markEnd(N, q);
|
|
9719
9720
|
}
|
|
@@ -9741,7 +9742,7 @@ var xg = { exports: {} };
|
|
|
9741
9742
|
}
|
|
9742
9743
|
function Cs() {
|
|
9743
9744
|
var h, S, N, q, Z;
|
|
9744
|
-
for (Z = I, h = T.allowIn, T.allowIn = !0, S =
|
|
9745
|
+
for (Z = I, h = T.allowIn, T.allowIn = !0, S = P("new") ? ai() : oi(), T.allowIn = h; ; ) {
|
|
9745
9746
|
if (b("."))
|
|
9746
9747
|
q = Pi(), S = x.createMemberExpression(".", S, q);
|
|
9747
9748
|
else if (b("("))
|
|
@@ -9756,17 +9757,17 @@ var xg = { exports: {} };
|
|
|
9756
9757
|
}
|
|
9757
9758
|
function ks() {
|
|
9758
9759
|
var h, S, N, q;
|
|
9759
|
-
for (q = I, h = T.allowIn, S =
|
|
9760
|
+
for (q = I, h = T.allowIn, S = P("new") ? ai() : oi(), T.allowIn = h; b(".") || b("["); )
|
|
9760
9761
|
b("[") ? (N = Ur(), S = x.createMemberExpression("[", S, N)) : (N = Pi(), S = x.createMemberExpression(".", S, N)), x.markEnd(S, q);
|
|
9761
9762
|
return S;
|
|
9762
9763
|
}
|
|
9763
9764
|
function Ar() {
|
|
9764
9765
|
var h, S, N = I;
|
|
9765
|
-
return h = Cs(), I.type === u.Punctuator && (b("++") || b("--")) && !$t() && (
|
|
9766
|
+
return h = Cs(), I.type === u.Punctuator && (b("++") || b("--")) && !$t() && (A && h.type === y.Identifier && xe(h.name) && Te({}, d.StrictLHSPostfix), X(h) || Te({}, d.InvalidLHSInAssignment), S = fe(), h = x.markEnd(x.createPostfixExpression(S.value, h), N)), h;
|
|
9766
9767
|
}
|
|
9767
9768
|
function Zn() {
|
|
9768
9769
|
var h, S, N;
|
|
9769
|
-
return I.type !== u.Punctuator && I.type !== u.Keyword ? S = Ar() : b("++") || b("--") ? (N = I, h = fe(), S = Zn(),
|
|
9770
|
+
return I.type !== u.Punctuator && I.type !== u.Keyword ? S = Ar() : b("++") || b("--") ? (N = I, h = fe(), S = Zn(), A && S.type === y.Identifier && xe(S.name) && Te({}, d.StrictLHSPrefix), X(S) || Te({}, d.InvalidLHSInAssignment), S = x.createUnaryExpression(h.value, S), S = x.markEnd(S, N)) : b("+") || b("-") || b("~") || b("!") ? (N = I, h = fe(), S = Zn(), S = x.createUnaryExpression(h.value, S), S = x.markEnd(S, N)) : P("delete") || P("void") || P("typeof") ? (N = I, h = fe(), S = Zn(), S = x.createUnaryExpression(h.value, S), S = x.markEnd(S, N), A && S.operator === "delete" && S.argument.type === y.Identifier && Te({}, d.StrictDelete)) : S = Ar(), S;
|
|
9770
9771
|
}
|
|
9771
9772
|
function Vr(h, S) {
|
|
9772
9773
|
var N = 0;
|
|
@@ -9840,7 +9841,7 @@ var xg = { exports: {} };
|
|
|
9840
9841
|
}
|
|
9841
9842
|
function pn() {
|
|
9842
9843
|
var h, S, N, q, Z;
|
|
9843
|
-
return h = I, Z = I, q = S = Ts(), V() && (X(S) || Te({}, d.InvalidLHSInAssignment),
|
|
9844
|
+
return h = I, Z = I, q = S = Ts(), V() && (X(S) || Te({}, d.InvalidLHSInAssignment), A && S.type === y.Identifier && xe(S.name) && Te(h, d.StrictLHSAssignment), h = fe(), N = pn(), q = x.markEnd(x.createAssignmentExpression(h.value, S, N), Z)), q;
|
|
9844
9845
|
}
|
|
9845
9846
|
function M() {
|
|
9846
9847
|
var h, S = I;
|
|
@@ -9866,7 +9867,7 @@ var xg = { exports: {} };
|
|
|
9866
9867
|
}
|
|
9867
9868
|
function ot(h) {
|
|
9868
9869
|
var S = null, N, q;
|
|
9869
|
-
return q = I, N = Ce(),
|
|
9870
|
+
return q = I, N = Ce(), A && xe(N.name) && Te({}, d.StrictVarName), h === "const" ? (C("="), S = pn()) : b("=") && (fe(), S = pn()), x.markEnd(x.createVariableDeclarator(N, S), q);
|
|
9870
9871
|
}
|
|
9871
9872
|
function at(h) {
|
|
9872
9873
|
var S = [];
|
|
@@ -9894,7 +9895,7 @@ var xg = { exports: {} };
|
|
|
9894
9895
|
}
|
|
9895
9896
|
function Ft() {
|
|
9896
9897
|
var h, S, N;
|
|
9897
|
-
return p("if"), C("("), h = M(), C(")"), S = Cn(),
|
|
9898
|
+
return p("if"), C("("), h = M(), C(")"), S = Cn(), P("else") ? (fe(), N = Cn()) : N = null, x.createIfStatement(h, S, N);
|
|
9898
9899
|
}
|
|
9899
9900
|
function ln() {
|
|
9900
9901
|
var h, S, N;
|
|
@@ -9910,27 +9911,27 @@ var xg = { exports: {} };
|
|
|
9910
9911
|
}
|
|
9911
9912
|
function Ut() {
|
|
9912
9913
|
var h, S, N, q, Z, le, qe;
|
|
9913
|
-
return h = S = N = null, p("for"), C("("), b(";") ? fe() : (
|
|
9914
|
+
return h = S = N = null, p("for"), C("("), b(";") ? fe() : (P("var") || P("let") ? (T.allowIn = !1, h = er(), T.allowIn = !0, h.declarations.length === 1 && P("in") && (fe(), q = h, Z = M(), h = null)) : (T.allowIn = !1, h = M(), T.allowIn = !0, P("in") && (X(h) || Te({}, d.InvalidLHSInForIn), fe(), q = h, Z = M(), h = null)), typeof q > "u" && C(";")), typeof q > "u" && (b(";") || (S = M()), C(";"), b(")") || (N = M())), C(")"), qe = T.inIteration, T.inIteration = !0, le = Cn(), T.inIteration = qe, typeof q > "u" ? x.createForStatement(h, S, N, le) : x.createForInStatement(q, Z, le);
|
|
9914
9915
|
}
|
|
9915
9916
|
function ui() {
|
|
9916
9917
|
var h = null, S;
|
|
9917
|
-
return p("continue"),
|
|
9918
|
+
return p("continue"), E.charCodeAt(w) === 59 ? (fe(), T.inIteration || _e({}, d.IllegalContinue), x.createContinueStatement(null)) : $t() ? (T.inIteration || _e({}, d.IllegalContinue), x.createContinueStatement(null)) : (I.type === u.Identifier && (h = Ce(), S = "$" + h.name, Object.prototype.hasOwnProperty.call(T.labelSet, S) || _e({}, d.UnknownLabel, h.name)), z(), h === null && !T.inIteration && _e({}, d.IllegalContinue), x.createContinueStatement(h));
|
|
9918
9919
|
}
|
|
9919
9920
|
function Is() {
|
|
9920
9921
|
var h = null, S;
|
|
9921
|
-
return p("break"),
|
|
9922
|
+
return p("break"), E.charCodeAt(w) === 59 ? (fe(), T.inIteration || T.inSwitch || _e({}, d.IllegalBreak), x.createBreakStatement(null)) : $t() ? (T.inIteration || T.inSwitch || _e({}, d.IllegalBreak), x.createBreakStatement(null)) : (I.type === u.Identifier && (h = Ce(), S = "$" + h.name, Object.prototype.hasOwnProperty.call(T.labelSet, S) || _e({}, d.UnknownLabel, h.name)), z(), h === null && !(T.inIteration || T.inSwitch) && _e({}, d.IllegalBreak), x.createBreakStatement(h));
|
|
9922
9923
|
}
|
|
9923
9924
|
function Fs() {
|
|
9924
9925
|
var h = null;
|
|
9925
|
-
return p("return"), T.inFunctionBody || Te({}, d.IllegalReturn),
|
|
9926
|
+
return p("return"), T.inFunctionBody || Te({}, d.IllegalReturn), E.charCodeAt(w) === 32 && he(E.charCodeAt(w + 1)) ? (h = M(), z(), x.createReturnStatement(h)) : $t() ? x.createReturnStatement(null) : (b(";") || !b("}") && I.type !== u.EOF && (h = M()), z(), x.createReturnStatement(h));
|
|
9926
9927
|
}
|
|
9927
9928
|
function Oo() {
|
|
9928
9929
|
var h, S;
|
|
9929
|
-
return
|
|
9930
|
+
return A && (G(), Te({}, d.StrictModeWith)), p("with"), C("("), h = M(), C(")"), S = Cn(), x.createWithStatement(h, S);
|
|
9930
9931
|
}
|
|
9931
9932
|
function To() {
|
|
9932
9933
|
var h, S = [], N, q;
|
|
9933
|
-
for (q = I,
|
|
9934
|
+
for (q = I, P("default") ? (fe(), h = null) : (p("case"), h = M()), C(":"); w < k && !(b("}") || P("default") || P("case")); )
|
|
9934
9935
|
N = Cn(), S.push(N);
|
|
9935
9936
|
return x.markEnd(x.createSwitchCase(h, S), q);
|
|
9936
9937
|
}
|
|
@@ -9948,11 +9949,11 @@ var xg = { exports: {} };
|
|
|
9948
9949
|
}
|
|
9949
9950
|
function mu() {
|
|
9950
9951
|
var h, S, N;
|
|
9951
|
-
return N = I, p("catch"), C("("), b(")") && Nt(I), h = Ce(),
|
|
9952
|
+
return N = I, p("catch"), C("("), b(")") && Nt(I), h = Ce(), A && xe(h.name) && Te({}, d.StrictCatchVariable), C(")"), S = de(), x.markEnd(x.createCatchClause(h, S), N);
|
|
9952
9953
|
}
|
|
9953
9954
|
function bu() {
|
|
9954
9955
|
var h, S = [], N = null;
|
|
9955
|
-
return p("try"), h = de(),
|
|
9956
|
+
return p("try"), h = de(), P("catch") && S.push(mu()), P("finally") && (fe(), N = de()), S.length === 0 && !N && _e({}, d.NoCatchOrFinally), x.createTryStatement(h, [], S, N);
|
|
9956
9957
|
}
|
|
9957
9958
|
function wu() {
|
|
9958
9959
|
return p("debugger"), z(), x.createDebuggerStatement();
|
|
@@ -10004,7 +10005,7 @@ var xg = { exports: {} };
|
|
|
10004
10005
|
function Ni() {
|
|
10005
10006
|
var h, S = [], N, q, Z, le, qe, pt, en, Vt;
|
|
10006
10007
|
for (Vt = I, C("{"); w < k && !(I.type !== u.StringLiteral || (N = I, h = qr(), S.push(h), h.expression.type !== y.Literal)); )
|
|
10007
|
-
q =
|
|
10008
|
+
q = E.slice(N.start + 1, N.end - 1), q === "use strict" ? (A = !0, Z && Te(Z, d.StrictOctalLiteral)) : !Z && N.octal && (Z = N);
|
|
10008
10009
|
for (le = T.labelSet, qe = T.inIteration, pt = T.inSwitch, en = T.inFunctionBody, T.labelSet = {}, T.inIteration = !1, T.inSwitch = !1, T.inFunctionBody = !0; w < k && !(b("}") || (h = qr(), typeof h > "u")); )
|
|
10009
10010
|
S.push(h);
|
|
10010
10011
|
return C("}"), T.labelSet = le, T.inIteration = qe, T.inSwitch = pt, T.inFunctionBody = en, x.markEnd(x.createBlockStatement(S), Vt);
|
|
@@ -10012,7 +10013,7 @@ var xg = { exports: {} };
|
|
|
10012
10013
|
function Bs(h) {
|
|
10013
10014
|
var S, N = [], q, Z, le, qe, pt;
|
|
10014
10015
|
if (C("("), !b(")"))
|
|
10015
|
-
for (le = {}; w < k && (q = I, S = Ce(), qe = "$" + q.value,
|
|
10016
|
+
for (le = {}; w < k && (q = I, S = Ce(), qe = "$" + q.value, A ? (xe(q.value) && (Z = q, pt = d.StrictParamName), Object.prototype.hasOwnProperty.call(le, qe) && (Z = q, pt = d.StrictParamDupe)) : h || (xe(q.value) ? (h = q, pt = d.StrictParamName) : ke(q.value) ? (h = q, pt = d.StrictReservedWord) : Object.prototype.hasOwnProperty.call(le, qe) && (h = q, pt = d.StrictParamDupe)), N.push(S), le[qe] = !0, !b(")")); )
|
|
10016
10017
|
C(",");
|
|
10017
10018
|
return C(")"), {
|
|
10018
10019
|
params: N,
|
|
@@ -10023,11 +10024,11 @@ var xg = { exports: {} };
|
|
|
10023
10024
|
}
|
|
10024
10025
|
function Li() {
|
|
10025
10026
|
var h, S = [], N, q, Z, le, qe, pt, en, Vt;
|
|
10026
|
-
return Vt = I, p("function"), q = I, h = Ce(),
|
|
10027
|
+
return Vt = I, p("function"), q = I, h = Ce(), A ? xe(q.value) && Te(q, d.StrictFunctionName) : xe(q.value) ? (qe = q, pt = d.StrictFunctionName) : ke(q.value) && (qe = q, pt = d.StrictReservedWord), le = Bs(qe), S = le.params, Z = le.stricted, qe = le.firstRestricted, le.message && (pt = le.message), en = A, N = Ni(), A && qe && _e(qe, pt), A && Z && Te(Z, pt), A = en, x.markEnd(x.createFunctionDeclaration(h, S, [], N), Vt);
|
|
10027
10028
|
}
|
|
10028
10029
|
function vu() {
|
|
10029
10030
|
var h, S = null, N, q, Z, le, qe = [], pt, en, Vt;
|
|
10030
|
-
return Vt = I, p("function"), b("(") || (h = I, S = Ce(),
|
|
10031
|
+
return Vt = I, p("function"), b("(") || (h = I, S = Ce(), A ? xe(h.value) && Te(h, d.StrictFunctionName) : xe(h.value) ? (q = h, Z = d.StrictFunctionName) : ke(h.value) && (q = h, Z = d.StrictReservedWord)), le = Bs(q), qe = le.params, N = le.stricted, q = le.firstRestricted, le.message && (Z = le.message), en = A, pt = Ni(), A && q && _e(q, Z), A && N && Te(N, Z), A = en, x.markEnd(x.createFunctionExpression(S, qe, [], pt), Vt);
|
|
10031
10032
|
}
|
|
10032
10033
|
function qr() {
|
|
10033
10034
|
if (I.type === u.Keyword)
|
|
@@ -10045,14 +10046,14 @@ var xg = { exports: {} };
|
|
|
10045
10046
|
}
|
|
10046
10047
|
function $i() {
|
|
10047
10048
|
for (var h, S = [], N, q, Z; w < k && (N = I, !(N.type !== u.StringLiteral || (h = qr(), S.push(h), h.expression.type !== y.Literal))); )
|
|
10048
|
-
q =
|
|
10049
|
+
q = E.slice(N.start + 1, N.end - 1), q === "use strict" ? (A = !0, Z && Te(Z, d.StrictOctalLiteral)) : !Z && N.octal && (Z = N);
|
|
10049
10050
|
for (; w < k && (h = qr(), !(typeof h > "u")); )
|
|
10050
10051
|
S.push(h);
|
|
10051
10052
|
return S;
|
|
10052
10053
|
}
|
|
10053
10054
|
function Fo() {
|
|
10054
10055
|
var h, S;
|
|
10055
|
-
return G(), Je(), S = I,
|
|
10056
|
+
return G(), Je(), S = I, A = !1, h = $i(), x.markEnd(x.createProgram(h), S);
|
|
10056
10057
|
}
|
|
10057
10058
|
function Bo() {
|
|
10058
10059
|
var h, S, N, q = [];
|
|
@@ -10065,7 +10066,7 @@ var xg = { exports: {} };
|
|
|
10065
10066
|
}
|
|
10066
10067
|
function Do(h, S) {
|
|
10067
10068
|
var N, q, Z;
|
|
10068
|
-
N = String, typeof h != "string" && !(h instanceof String) && (h = N(h)), x = O,
|
|
10069
|
+
N = String, typeof h != "string" && !(h instanceof String) && (h = N(h)), x = O, E = h, w = 0, R = E.length > 0 ? 1 : 0, L = 0, k = E.length, I = null, T = {
|
|
10069
10070
|
allowIn: !0,
|
|
10070
10071
|
labelSet: {},
|
|
10071
10072
|
inFunctionBody: !1,
|
|
@@ -10096,7 +10097,7 @@ var xg = { exports: {} };
|
|
|
10096
10097
|
}
|
|
10097
10098
|
function Ro(h, S) {
|
|
10098
10099
|
var N, q;
|
|
10099
|
-
q = String, typeof h != "string" && !(h instanceof String) && (h = q(h)), x = O,
|
|
10100
|
+
q = String, typeof h != "string" && !(h instanceof String) && (h = q(h)), x = O, E = h, w = 0, R = E.length > 0 ? 1 : 0, L = 0, k = E.length, I = null, T = {
|
|
10100
10101
|
allowIn: !0,
|
|
10101
10102
|
labelSet: {},
|
|
10102
10103
|
inFunctionBody: !1,
|
|
@@ -10131,60 +10132,60 @@ var xg = { exports: {} };
|
|
|
10131
10132
|
symbols_: { error: 2, JSON_PATH: 3, DOLLAR: 4, PATH_COMPONENTS: 5, LEADING_CHILD_MEMBER_EXPRESSION: 6, PATH_COMPONENT: 7, MEMBER_COMPONENT: 8, SUBSCRIPT_COMPONENT: 9, CHILD_MEMBER_COMPONENT: 10, DESCENDANT_MEMBER_COMPONENT: 11, DOT: 12, MEMBER_EXPRESSION: 13, DOT_DOT: 14, STAR: 15, IDENTIFIER: 16, SCRIPT_EXPRESSION: 17, INTEGER: 18, END: 19, CHILD_SUBSCRIPT_COMPONENT: 20, DESCENDANT_SUBSCRIPT_COMPONENT: 21, "[": 22, SUBSCRIPT: 23, "]": 24, SUBSCRIPT_EXPRESSION: 25, SUBSCRIPT_EXPRESSION_LIST: 26, SUBSCRIPT_EXPRESSION_LISTABLE: 27, ",": 28, STRING_LITERAL: 29, ARRAY_SLICE: 30, FILTER_EXPRESSION: 31, QQ_STRING: 32, Q_STRING: 33, $accept: 0, $end: 1 },
|
|
10132
10133
|
terminals_: { 2: "error", 4: "DOLLAR", 12: "DOT", 14: "DOT_DOT", 15: "STAR", 16: "IDENTIFIER", 17: "SCRIPT_EXPRESSION", 18: "INTEGER", 19: "END", 22: "[", 24: "]", 28: ",", 30: "ARRAY_SLICE", 31: "FILTER_EXPRESSION", 32: "QQ_STRING", 33: "Q_STRING" },
|
|
10133
10134
|
productions_: [0, [3, 1], [3, 2], [3, 1], [3, 2], [5, 1], [5, 2], [7, 1], [7, 1], [8, 1], [8, 1], [10, 2], [6, 1], [11, 2], [13, 1], [13, 1], [13, 1], [13, 1], [13, 1], [9, 1], [9, 1], [20, 3], [21, 4], [23, 1], [23, 1], [26, 1], [26, 3], [27, 1], [27, 1], [27, 1], [25, 1], [25, 1], [25, 1], [29, 1], [29, 1]],
|
|
10134
|
-
performAction: function(v, O,
|
|
10135
|
-
|
|
10136
|
-
var k =
|
|
10135
|
+
performAction: function(v, O, E, A, w, R, L) {
|
|
10136
|
+
A.ast || (A.ast = f, f.initialize());
|
|
10137
|
+
var k = R.length - 1;
|
|
10137
10138
|
switch (w) {
|
|
10138
10139
|
case 1:
|
|
10139
|
-
return
|
|
10140
|
+
return A.ast.set({ expression: { type: "root", value: R[k] } }), A.ast.unshift(), A.ast.yield();
|
|
10140
10141
|
case 2:
|
|
10141
|
-
return
|
|
10142
|
+
return A.ast.set({ expression: { type: "root", value: R[k - 1] } }), A.ast.unshift(), A.ast.yield();
|
|
10142
10143
|
case 3:
|
|
10143
|
-
return
|
|
10144
|
+
return A.ast.unshift(), A.ast.yield();
|
|
10144
10145
|
case 4:
|
|
10145
|
-
return
|
|
10146
|
+
return A.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: R[k - 1] } }), A.ast.unshift(), A.ast.yield();
|
|
10146
10147
|
case 5:
|
|
10147
10148
|
break;
|
|
10148
10149
|
case 6:
|
|
10149
10150
|
break;
|
|
10150
10151
|
case 7:
|
|
10151
|
-
|
|
10152
|
+
A.ast.set({ operation: "member" }), A.ast.push();
|
|
10152
10153
|
break;
|
|
10153
10154
|
case 8:
|
|
10154
|
-
|
|
10155
|
+
A.ast.set({ operation: "subscript" }), A.ast.push();
|
|
10155
10156
|
break;
|
|
10156
10157
|
case 9:
|
|
10157
|
-
|
|
10158
|
+
A.ast.set({ scope: "child" });
|
|
10158
10159
|
break;
|
|
10159
10160
|
case 10:
|
|
10160
|
-
|
|
10161
|
+
A.ast.set({ scope: "descendant" });
|
|
10161
10162
|
break;
|
|
10162
10163
|
case 11:
|
|
10163
10164
|
break;
|
|
10164
10165
|
case 12:
|
|
10165
|
-
|
|
10166
|
+
A.ast.set({ scope: "child", operation: "member" });
|
|
10166
10167
|
break;
|
|
10167
10168
|
case 13:
|
|
10168
10169
|
break;
|
|
10169
10170
|
case 14:
|
|
10170
|
-
|
|
10171
|
+
A.ast.set({ expression: { type: "wildcard", value: R[k] } });
|
|
10171
10172
|
break;
|
|
10172
10173
|
case 15:
|
|
10173
|
-
|
|
10174
|
+
A.ast.set({ expression: { type: "identifier", value: R[k] } });
|
|
10174
10175
|
break;
|
|
10175
10176
|
case 16:
|
|
10176
|
-
|
|
10177
|
+
A.ast.set({ expression: { type: "script_expression", value: R[k] } });
|
|
10177
10178
|
break;
|
|
10178
10179
|
case 17:
|
|
10179
|
-
|
|
10180
|
+
A.ast.set({ expression: { type: "numeric_literal", value: parseInt(R[k]) } });
|
|
10180
10181
|
break;
|
|
10181
10182
|
case 18:
|
|
10182
10183
|
break;
|
|
10183
10184
|
case 19:
|
|
10184
|
-
|
|
10185
|
+
A.ast.set({ scope: "child" });
|
|
10185
10186
|
break;
|
|
10186
10187
|
case 20:
|
|
10187
|
-
|
|
10188
|
+
A.ast.set({ scope: "descendant" });
|
|
10188
10189
|
break;
|
|
10189
10190
|
case 21:
|
|
10190
10191
|
break;
|
|
@@ -10193,37 +10194,37 @@ var xg = { exports: {} };
|
|
|
10193
10194
|
case 23:
|
|
10194
10195
|
break;
|
|
10195
10196
|
case 24:
|
|
10196
|
-
|
|
10197
|
+
R[k].length > 1 ? A.ast.set({ expression: { type: "union", value: R[k] } }) : this.$ = R[k];
|
|
10197
10198
|
break;
|
|
10198
10199
|
case 25:
|
|
10199
|
-
this.$ = [
|
|
10200
|
+
this.$ = [R[k]];
|
|
10200
10201
|
break;
|
|
10201
10202
|
case 26:
|
|
10202
|
-
this.$ =
|
|
10203
|
+
this.$ = R[k - 2].concat(R[k]);
|
|
10203
10204
|
break;
|
|
10204
10205
|
case 27:
|
|
10205
|
-
this.$ = { expression: { type: "numeric_literal", value: parseInt(
|
|
10206
|
+
this.$ = { expression: { type: "numeric_literal", value: parseInt(R[k]) } }, A.ast.set(this.$);
|
|
10206
10207
|
break;
|
|
10207
10208
|
case 28:
|
|
10208
|
-
this.$ = { expression: { type: "string_literal", value:
|
|
10209
|
+
this.$ = { expression: { type: "string_literal", value: R[k] } }, A.ast.set(this.$);
|
|
10209
10210
|
break;
|
|
10210
10211
|
case 29:
|
|
10211
|
-
this.$ = { expression: { type: "slice", value:
|
|
10212
|
+
this.$ = { expression: { type: "slice", value: R[k] } }, A.ast.set(this.$);
|
|
10212
10213
|
break;
|
|
10213
10214
|
case 30:
|
|
10214
|
-
this.$ = { expression: { type: "wildcard", value:
|
|
10215
|
+
this.$ = { expression: { type: "wildcard", value: R[k] } }, A.ast.set(this.$);
|
|
10215
10216
|
break;
|
|
10216
10217
|
case 31:
|
|
10217
|
-
this.$ = { expression: { type: "script_expression", value:
|
|
10218
|
+
this.$ = { expression: { type: "script_expression", value: R[k] } }, A.ast.set(this.$);
|
|
10218
10219
|
break;
|
|
10219
10220
|
case 32:
|
|
10220
|
-
this.$ = { expression: { type: "filter_expression", value:
|
|
10221
|
+
this.$ = { expression: { type: "filter_expression", value: R[k] } }, A.ast.set(this.$);
|
|
10221
10222
|
break;
|
|
10222
10223
|
case 33:
|
|
10223
|
-
this.$ =
|
|
10224
|
+
this.$ = R[k];
|
|
10224
10225
|
break;
|
|
10225
10226
|
case 34:
|
|
10226
|
-
this.$ =
|
|
10227
|
+
this.$ = R[k];
|
|
10227
10228
|
break;
|
|
10228
10229
|
}
|
|
10229
10230
|
},
|
|
@@ -10236,7 +10237,7 @@ var xg = { exports: {} };
|
|
|
10236
10237
|
throw new Error(v);
|
|
10237
10238
|
},
|
|
10238
10239
|
parse: function(v) {
|
|
10239
|
-
var O = this,
|
|
10240
|
+
var O = this, E = [0], A = [null], w = [], R = this.table, L = "", k = 0, x = 0, I = 2, T = 1, D = w.slice.call(arguments, 1);
|
|
10240
10241
|
this.lexer.setInput(v), this.lexer.yy = this.yy, this.yy.lexer = this.lexer, this.yy.parser = this, typeof this.lexer.yylloc > "u" && (this.lexer.yylloc = {});
|
|
10241
10242
|
var K = this.lexer.yylloc;
|
|
10242
10243
|
w.push(K);
|
|
@@ -10247,10 +10248,10 @@ var xg = { exports: {} };
|
|
|
10247
10248
|
return we = O.lexer.lex() || T, typeof we != "number" && (we = O.symbols_[we] || we), we;
|
|
10248
10249
|
}
|
|
10249
10250
|
for (var ue, pe, ye, he, ce = {}, Fe, ke, xe, Ue; ; ) {
|
|
10250
|
-
if (pe =
|
|
10251
|
+
if (pe = E[E.length - 1], this.defaultActions[pe] ? ye = this.defaultActions[pe] : ((ue === null || typeof ue > "u") && (ue = ae()), ye = R[pe] && R[pe][ue]), typeof ye > "u" || !ye.length || !ye[0]) {
|
|
10251
10252
|
var Ge = "";
|
|
10252
10253
|
Ue = [];
|
|
10253
|
-
for (Fe in
|
|
10254
|
+
for (Fe in R[pe])
|
|
10254
10255
|
this.terminals_[Fe] && Fe > I && Ue.push("'" + this.terminals_[Fe] + "'");
|
|
10255
10256
|
this.lexer.showPosition ? Ge = "Parse error on line " + (k + 1) + `:
|
|
10256
10257
|
` + this.lexer.showPosition() + `
|
|
@@ -10266,10 +10267,10 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10266
10267
|
throw new Error("Parse Error: multiple actions possible at state: " + pe + ", token: " + ue);
|
|
10267
10268
|
switch (ye[0]) {
|
|
10268
10269
|
case 1:
|
|
10269
|
-
|
|
10270
|
+
E.push(ue), A.push(this.lexer.yytext), w.push(this.lexer.yylloc), E.push(ye[1]), ue = null, x = this.lexer.yyleng, L = this.lexer.yytext, k = this.lexer.yylineno, K = this.lexer.yylloc;
|
|
10270
10271
|
break;
|
|
10271
10272
|
case 2:
|
|
10272
|
-
if (ke = this.productions_[ye[1]][1], ce.$ =
|
|
10273
|
+
if (ke = this.productions_[ye[1]][1], ce.$ = A[A.length - ke], ce._$ = {
|
|
10273
10274
|
first_line: w[w.length - (ke || 1)].first_line,
|
|
10274
10275
|
last_line: w[w.length - 1].last_line,
|
|
10275
10276
|
first_column: w[w.length - (ke || 1)].first_column,
|
|
@@ -10283,11 +10284,11 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10283
10284
|
k,
|
|
10284
10285
|
this.yy,
|
|
10285
10286
|
ye[1],
|
|
10286
|
-
|
|
10287
|
+
A,
|
|
10287
10288
|
w
|
|
10288
10289
|
].concat(D)), typeof he < "u")
|
|
10289
10290
|
return he;
|
|
10290
|
-
ke && (
|
|
10291
|
+
ke && (E = E.slice(0, -1 * ke * 2), A = A.slice(0, -1 * ke), w = w.slice(0, -1 * ke)), E.push(this.productions_[ye[1]][0]), A.push(ce.$), w.push(ce._$), xe = R[E[E.length - 2]][E[E.length - 1]], E.push(xe);
|
|
10291
10292
|
break;
|
|
10292
10293
|
case 3:
|
|
10293
10294
|
return !0;
|
|
@@ -10319,9 +10320,9 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10319
10320
|
}, y = /* @__PURE__ */ function() {
|
|
10320
10321
|
var d = {
|
|
10321
10322
|
EOF: 1,
|
|
10322
|
-
parseError: function(O,
|
|
10323
|
+
parseError: function(O, E) {
|
|
10323
10324
|
if (this.yy.parser)
|
|
10324
|
-
this.yy.parser.parseError(O,
|
|
10325
|
+
this.yy.parser.parseError(O, E);
|
|
10325
10326
|
else
|
|
10326
10327
|
throw new Error(O);
|
|
10327
10328
|
},
|
|
@@ -10343,16 +10344,16 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10343
10344
|
},
|
|
10344
10345
|
// unshifts one char (or a string) into the input
|
|
10345
10346
|
unput: function(v) {
|
|
10346
|
-
var O = v.length,
|
|
10347
|
+
var O = v.length, E = v.split(/(?:\r\n?|\n)/g);
|
|
10347
10348
|
this._input = v + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - O - 1), this.offset -= O;
|
|
10348
|
-
var
|
|
10349
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
10349
|
+
var A = this.match.split(/(?:\r\n?|\n)/g);
|
|
10350
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), E.length - 1 && (this.yylineno -= E.length - 1);
|
|
10350
10351
|
var w = this.yylloc.range;
|
|
10351
10352
|
return this.yylloc = {
|
|
10352
10353
|
first_line: this.yylloc.first_line,
|
|
10353
10354
|
last_line: this.yylineno + 1,
|
|
10354
10355
|
first_column: this.yylloc.first_column,
|
|
10355
|
-
last_column:
|
|
10356
|
+
last_column: E ? (E.length === A.length ? this.yylloc.first_column : 0) + A[A.length - E.length].length - E[0].length : this.yylloc.first_column - O
|
|
10356
10357
|
}, this.options.ranges && (this.yylloc.range = [w[0], w[0] + this.yyleng - O]), this.yyleng = this.yytext.length, this;
|
|
10357
10358
|
},
|
|
10358
10359
|
// When called from action, caches matched text and appends it on next action
|
|
@@ -10394,7 +10395,7 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10394
10395
|
},
|
|
10395
10396
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
10396
10397
|
test_match: function(v, O) {
|
|
10397
|
-
var
|
|
10398
|
+
var E, A, w;
|
|
10398
10399
|
if (this.options.backtrack_lexer && (w = {
|
|
10399
10400
|
yylineno: this.yylineno,
|
|
10400
10401
|
yylloc: {
|
|
@@ -10414,16 +10415,16 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10414
10415
|
yy: this.yy,
|
|
10415
10416
|
conditionStack: this.conditionStack.slice(0),
|
|
10416
10417
|
done: this.done
|
|
10417
|
-
}, this.options.ranges && (w.yylloc.range = this.yylloc.range.slice(0))),
|
|
10418
|
+
}, this.options.ranges && (w.yylloc.range = this.yylloc.range.slice(0))), A = v[0].match(/(?:\r\n?|\n).*/g), A && (this.yylineno += A.length), this.yylloc = {
|
|
10418
10419
|
first_line: this.yylloc.last_line,
|
|
10419
10420
|
last_line: this.yylineno + 1,
|
|
10420
10421
|
first_column: this.yylloc.last_column,
|
|
10421
|
-
last_column:
|
|
10422
|
-
}, this.yytext += v[0], this.match += v[0], this.matches = v, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(v[0].length), this.matched += v[0],
|
|
10423
|
-
return
|
|
10422
|
+
last_column: A ? A[A.length - 1].length - A[A.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + v[0].length
|
|
10423
|
+
}, this.yytext += v[0], this.match += v[0], this.matches = v, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(v[0].length), this.matched += v[0], E = this.performAction.call(this, this.yy, this, O, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), E)
|
|
10424
|
+
return E;
|
|
10424
10425
|
if (this._backtrack) {
|
|
10425
|
-
for (var
|
|
10426
|
-
this[
|
|
10426
|
+
for (var R in w)
|
|
10427
|
+
this[R] = w[R];
|
|
10427
10428
|
return !1;
|
|
10428
10429
|
}
|
|
10429
10430
|
return !1;
|
|
@@ -10433,12 +10434,12 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10433
10434
|
if (this.done)
|
|
10434
10435
|
return this.EOF;
|
|
10435
10436
|
this._input || (this.done = !0);
|
|
10436
|
-
var v, O,
|
|
10437
|
+
var v, O, E, A;
|
|
10437
10438
|
this._more || (this.yytext = "", this.match = "");
|
|
10438
|
-
for (var w = this._currentRules(),
|
|
10439
|
-
if (
|
|
10440
|
-
if (O =
|
|
10441
|
-
if (v = this.test_match(
|
|
10439
|
+
for (var w = this._currentRules(), R = 0; R < w.length; R++)
|
|
10440
|
+
if (E = this._input.match(this.rules[w[R]]), E && (!O || E[0].length > O[0].length)) {
|
|
10441
|
+
if (O = E, A = R, this.options.backtrack_lexer) {
|
|
10442
|
+
if (v = this.test_match(E, w[R]), v !== !1)
|
|
10442
10443
|
return v;
|
|
10443
10444
|
if (this._backtrack) {
|
|
10444
10445
|
O = !1;
|
|
@@ -10448,7 +10449,7 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10448
10449
|
} else if (!this.options.flex)
|
|
10449
10450
|
break;
|
|
10450
10451
|
}
|
|
10451
|
-
return O ? (v = this.test_match(O, w[
|
|
10452
|
+
return O ? (v = this.test_match(O, w[A]), v !== !1 ? v : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
10452
10453
|
` + this.showPosition(), {
|
|
10453
10454
|
text: "",
|
|
10454
10455
|
token: null,
|
|
@@ -10486,8 +10487,8 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10486
10487
|
return this.conditionStack.length;
|
|
10487
10488
|
},
|
|
10488
10489
|
options: {},
|
|
10489
|
-
performAction: function(O,
|
|
10490
|
-
switch (
|
|
10490
|
+
performAction: function(O, E, A, w) {
|
|
10491
|
+
switch (A) {
|
|
10491
10492
|
case 0:
|
|
10492
10493
|
return 4;
|
|
10493
10494
|
case 1:
|
|
@@ -10509,9 +10510,9 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10509
10510
|
case 9:
|
|
10510
10511
|
return 18;
|
|
10511
10512
|
case 10:
|
|
10512
|
-
return
|
|
10513
|
+
return E.yytext = E.yytext.substr(1, E.yyleng - 2), 32;
|
|
10513
10514
|
case 11:
|
|
10514
|
-
return
|
|
10515
|
+
return E.yytext = E.yytext.substr(1, E.yyleng - 2), 33;
|
|
10515
10516
|
case 12:
|
|
10516
10517
|
return 17;
|
|
10517
10518
|
case 13:
|
|
@@ -10659,28 +10660,28 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10659
10660
|
if (T instanceof Object && I in T)
|
|
10660
10661
|
return [{ value: T[I], path: x.path.concat(I) }];
|
|
10661
10662
|
},
|
|
10662
|
-
"member-descendant-identifier":
|
|
10663
|
+
"member-descendant-identifier": A(function(k, x, I) {
|
|
10663
10664
|
return k == I;
|
|
10664
10665
|
}),
|
|
10665
|
-
"subscript-child-numeric_literal":
|
|
10666
|
+
"subscript-child-numeric_literal": E(function(k, x, I) {
|
|
10666
10667
|
return k === I;
|
|
10667
10668
|
}),
|
|
10668
|
-
"member-child-numeric_literal":
|
|
10669
|
+
"member-child-numeric_literal": E(function(k, x, I) {
|
|
10669
10670
|
return String(k) === String(I);
|
|
10670
10671
|
}),
|
|
10671
|
-
"subscript-descendant-numeric_literal":
|
|
10672
|
+
"subscript-descendant-numeric_literal": A(function(k, x, I) {
|
|
10672
10673
|
return k === I;
|
|
10673
10674
|
}),
|
|
10674
|
-
"member-child-wildcard":
|
|
10675
|
+
"member-child-wildcard": E(function() {
|
|
10675
10676
|
return !0;
|
|
10676
10677
|
}),
|
|
10677
|
-
"member-descendant-wildcard":
|
|
10678
|
+
"member-descendant-wildcard": A(function() {
|
|
10678
10679
|
return !0;
|
|
10679
10680
|
}),
|
|
10680
|
-
"subscript-descendant-wildcard":
|
|
10681
|
+
"subscript-descendant-wildcard": A(function() {
|
|
10681
10682
|
return !0;
|
|
10682
10683
|
}),
|
|
10683
|
-
"subscript-child-wildcard":
|
|
10684
|
+
"subscript-child-wildcard": E(function() {
|
|
10684
10685
|
return !0;
|
|
10685
10686
|
}),
|
|
10686
10687
|
"subscript-child-slice": function(k, x) {
|
|
@@ -10696,7 +10697,7 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10696
10697
|
return k.expression.value.forEach(function(T) {
|
|
10697
10698
|
var D = { operation: "subscript", scope: "child", expression: T.expression }, K = this.resolve(D), re = K(D, x);
|
|
10698
10699
|
re && (I = I.concat(re));
|
|
10699
|
-
}, this),
|
|
10700
|
+
}, this), R(I);
|
|
10700
10701
|
},
|
|
10701
10702
|
"subscript-descendant-union": function(k, x, I) {
|
|
10702
10703
|
var T = n(".."), D = this, K = [], re = T.nodes(x, "$..*").slice(1);
|
|
@@ -10705,7 +10706,7 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10705
10706
|
var pe = { operation: "subscript", scope: "child", expression: ue.expression }, ye = D.resolve(pe), he = ye(pe, ae);
|
|
10706
10707
|
K = K.concat(he);
|
|
10707
10708
|
});
|
|
10708
|
-
}),
|
|
10709
|
+
}), R(K);
|
|
10709
10710
|
},
|
|
10710
10711
|
"subscript-child-filter_expression": function(k, x, I) {
|
|
10711
10712
|
var T = k.expression.value.slice(2, -1), D = a.parse(T).body[0].expression, K = function(re, ae) {
|
|
@@ -10760,12 +10761,12 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10760
10761
|
return ue(K, re), ae;
|
|
10761
10762
|
};
|
|
10762
10763
|
}
|
|
10763
|
-
function
|
|
10764
|
+
function E(k) {
|
|
10764
10765
|
return function(x, I, T) {
|
|
10765
10766
|
return this.descend(I, x.expression.value, k, T);
|
|
10766
10767
|
};
|
|
10767
10768
|
}
|
|
10768
|
-
function
|
|
10769
|
+
function A(k) {
|
|
10769
10770
|
return function(x, I, T) {
|
|
10770
10771
|
return this.traverse(I, x.expression.value, k, T);
|
|
10771
10772
|
};
|
|
@@ -10776,7 +10777,7 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10776
10777
|
} catch {
|
|
10777
10778
|
}
|
|
10778
10779
|
}
|
|
10779
|
-
function
|
|
10780
|
+
function R(k) {
|
|
10780
10781
|
return k = k.filter(function(x) {
|
|
10781
10782
|
return x;
|
|
10782
10783
|
}), f(
|
|
@@ -10803,74 +10804,74 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10803
10804
|
return a.ok(g(v), "we need a path"), this.parser.parse(v);
|
|
10804
10805
|
}, y.prototype.parent = function(v, O) {
|
|
10805
10806
|
a.ok(v instanceof Object, "obj needs to be an object"), a.ok(O, "we need a path");
|
|
10806
|
-
var
|
|
10807
|
-
return
|
|
10808
|
-
}, y.prototype.apply = function(v, O,
|
|
10809
|
-
a.ok(v instanceof Object, "obj needs to be an object"), a.ok(O, "we need a path"), a.equal(typeof
|
|
10810
|
-
var
|
|
10811
|
-
return
|
|
10807
|
+
var E = this.nodes(v, O)[0];
|
|
10808
|
+
return E.path.pop(), this.value(v, E.path);
|
|
10809
|
+
}, y.prototype.apply = function(v, O, E) {
|
|
10810
|
+
a.ok(v instanceof Object, "obj needs to be an object"), a.ok(O, "we need a path"), a.equal(typeof E, "function", "fn needs to be function");
|
|
10811
|
+
var A = this.nodes(v, O).sort(function(w, R) {
|
|
10812
|
+
return R.path.length - w.path.length;
|
|
10812
10813
|
});
|
|
10813
|
-
return
|
|
10814
|
-
var
|
|
10815
|
-
L[
|
|
10816
|
-
}, this),
|
|
10817
|
-
}, y.prototype.value = function(v, O,
|
|
10814
|
+
return A.forEach(function(w) {
|
|
10815
|
+
var R = w.path.pop(), L = this.value(v, this.stringify(w.path)), k = w.value = E.call(v, L[R]);
|
|
10816
|
+
L[R] = k;
|
|
10817
|
+
}, this), A;
|
|
10818
|
+
}, y.prototype.value = function(v, O, E) {
|
|
10818
10819
|
if (a.ok(v instanceof Object, "obj needs to be an object"), a.ok(O, "we need a path"), arguments.length >= 3) {
|
|
10819
|
-
var
|
|
10820
|
-
if (!
|
|
10821
|
-
var w =
|
|
10822
|
-
|
|
10820
|
+
var A = this.nodes(v, O).shift();
|
|
10821
|
+
if (!A) return this._vivify(v, O, E);
|
|
10822
|
+
var w = A.path.slice(-1).shift(), R = this.parent(v, this.stringify(A.path));
|
|
10823
|
+
R[w] = E;
|
|
10823
10824
|
}
|
|
10824
10825
|
return this.query(v, this.stringify(O), 1).shift();
|
|
10825
|
-
}, y.prototype._vivify = function(v, O,
|
|
10826
|
-
var
|
|
10826
|
+
}, y.prototype._vivify = function(v, O, E) {
|
|
10827
|
+
var A = this;
|
|
10827
10828
|
a.ok(v instanceof Object, "obj needs to be an object"), a.ok(O, "we need a path");
|
|
10828
10829
|
var w = this.parser.parse(O).map(function(L) {
|
|
10829
10830
|
return L.expression.value;
|
|
10830
|
-
}),
|
|
10831
|
-
var x = L.pop(), I =
|
|
10832
|
-
I || (
|
|
10831
|
+
}), R = function(L, k) {
|
|
10832
|
+
var x = L.pop(), I = A.value(v, L);
|
|
10833
|
+
I || (R(L.concat(), typeof x == "string" ? {} : []), I = A.value(v, L)), I[x] = k;
|
|
10833
10834
|
};
|
|
10834
|
-
return
|
|
10835
|
-
}, y.prototype.query = function(v, O,
|
|
10835
|
+
return R(w, E), this.query(v, O)[0];
|
|
10836
|
+
}, y.prototype.query = function(v, O, E) {
|
|
10836
10837
|
a.ok(v instanceof Object, "obj needs to be an object"), a.ok(g(O), "we need a path");
|
|
10837
|
-
var
|
|
10838
|
+
var A = this.nodes(v, O, E).map(function(w) {
|
|
10838
10839
|
return w.value;
|
|
10839
10840
|
});
|
|
10840
|
-
return
|
|
10841
|
-
}, y.prototype.paths = function(v, O,
|
|
10841
|
+
return A;
|
|
10842
|
+
}, y.prototype.paths = function(v, O, E) {
|
|
10842
10843
|
a.ok(v instanceof Object, "obj needs to be an object"), a.ok(O, "we need a path");
|
|
10843
|
-
var
|
|
10844
|
+
var A = this.nodes(v, O, E).map(function(w) {
|
|
10844
10845
|
return w.path;
|
|
10845
10846
|
});
|
|
10846
|
-
return
|
|
10847
|
-
}, y.prototype.nodes = function(v, O,
|
|
10848
|
-
if (a.ok(v instanceof Object, "obj needs to be an object"), a.ok(O, "we need a path"),
|
|
10849
|
-
var
|
|
10850
|
-
return
|
|
10851
|
-
if (!(L.length >=
|
|
10847
|
+
return A;
|
|
10848
|
+
}, y.prototype.nodes = function(v, O, E) {
|
|
10849
|
+
if (a.ok(v instanceof Object, "obj needs to be an object"), a.ok(O, "we need a path"), E === 0) return [];
|
|
10850
|
+
var A = this.parser.parse(O), w = this.handlers, R = [{ path: ["$"], value: v }], L = [];
|
|
10851
|
+
return A.length && A[0].expression.type == "root" && A.shift(), A.length ? (A.forEach(function(k, x) {
|
|
10852
|
+
if (!(L.length >= E)) {
|
|
10852
10853
|
var I = w.resolve(k), T = [];
|
|
10853
|
-
|
|
10854
|
-
if (!(L.length >=
|
|
10855
|
-
var K = I(k, D,
|
|
10856
|
-
x ==
|
|
10854
|
+
R.forEach(function(D) {
|
|
10855
|
+
if (!(L.length >= E)) {
|
|
10856
|
+
var K = I(k, D, E);
|
|
10857
|
+
x == A.length - 1 ? L = L.concat(K || []) : T = T.concat(K || []);
|
|
10857
10858
|
}
|
|
10858
|
-
}),
|
|
10859
|
+
}), R = T;
|
|
10859
10860
|
}
|
|
10860
|
-
}),
|
|
10861
|
+
}), E ? L.slice(0, E) : L) : R;
|
|
10861
10862
|
}, y.prototype.stringify = function(v) {
|
|
10862
10863
|
a.ok(v, "we need a path");
|
|
10863
|
-
var O = "$",
|
|
10864
|
+
var O = "$", E = {
|
|
10864
10865
|
"descendant-member": "..{{value}}",
|
|
10865
10866
|
"child-member": ".{{value}}",
|
|
10866
10867
|
"descendant-subscript": "..[{{value}}]",
|
|
10867
10868
|
"child-subscript": "[{{value}}]"
|
|
10868
10869
|
};
|
|
10869
|
-
return v = this._normalize(v), v.forEach(function(
|
|
10870
|
-
if (
|
|
10871
|
-
var w = [
|
|
10872
|
-
if (
|
|
10873
|
-
O +=
|
|
10870
|
+
return v = this._normalize(v), v.forEach(function(A) {
|
|
10871
|
+
if (A.expression.type != "root") {
|
|
10872
|
+
var w = [A.scope, A.operation].join("-"), R = E[w], L;
|
|
10873
|
+
if (A.expression.type == "string_literal" ? L = JSON.stringify(A.expression.value) : L = A.expression.value, !R) throw new Error("couldn't find template " + w);
|
|
10874
|
+
O += R.replace(/{{value}}/, L);
|
|
10874
10875
|
}
|
|
10875
10876
|
}), O;
|
|
10876
10877
|
}, y.prototype._normalize = function(v) {
|
|
@@ -10878,20 +10879,20 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10878
10879
|
return this.parser.parse(v);
|
|
10879
10880
|
if (Array.isArray(v) && typeof v[0] == "string") {
|
|
10880
10881
|
var O = [{ expression: { type: "root", value: "$" } }];
|
|
10881
|
-
return v.forEach(function(
|
|
10882
|
-
if (!(
|
|
10883
|
-
if (typeof
|
|
10882
|
+
return v.forEach(function(E, A) {
|
|
10883
|
+
if (!(E == "$" && A === 0))
|
|
10884
|
+
if (typeof E == "string" && E.match("^" + u.identifier + "$"))
|
|
10884
10885
|
O.push({
|
|
10885
10886
|
operation: "member",
|
|
10886
10887
|
scope: "child",
|
|
10887
|
-
expression: { value:
|
|
10888
|
+
expression: { value: E, type: "identifier" }
|
|
10888
10889
|
});
|
|
10889
10890
|
else {
|
|
10890
|
-
var w = typeof
|
|
10891
|
+
var w = typeof E == "number" ? "numeric_literal" : "string_literal";
|
|
10891
10892
|
O.push({
|
|
10892
10893
|
operation: "subscript",
|
|
10893
10894
|
scope: "child",
|
|
10894
|
-
expression: { value:
|
|
10895
|
+
expression: { value: E, type: w }
|
|
10895
10896
|
});
|
|
10896
10897
|
}
|
|
10897
10898
|
}), O;
|
|
@@ -10977,9 +10978,9 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10977
10978
|
}, f.notEqual = function(I, T, D) {
|
|
10978
10979
|
I == T && v(I, T, D, "!=", f.notEqual);
|
|
10979
10980
|
}, f.deepEqual = function(I, T, D) {
|
|
10980
|
-
|
|
10981
|
+
E(I, T) || v(I, T, D, "deepEqual", f.deepEqual);
|
|
10981
10982
|
};
|
|
10982
|
-
function
|
|
10983
|
+
function E(x, I) {
|
|
10983
10984
|
if (x === I)
|
|
10984
10985
|
return !0;
|
|
10985
10986
|
if (a.isBuffer(x) && a.isBuffer(I)) {
|
|
@@ -10989,18 +10990,18 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
10989
10990
|
return !0;
|
|
10990
10991
|
} else return a.isDate(x) && a.isDate(I) ? x.getTime() === I.getTime() : a.isRegExp(x) && a.isRegExp(I) ? x.source === I.source && x.global === I.global && x.multiline === I.multiline && x.lastIndex === I.lastIndex && x.ignoreCase === I.ignoreCase : !a.isObject(x) && !a.isObject(I) ? x == I : w(x, I);
|
|
10991
10992
|
}
|
|
10992
|
-
function
|
|
10993
|
+
function A(x) {
|
|
10993
10994
|
return Object.prototype.toString.call(x) == "[object Arguments]";
|
|
10994
10995
|
}
|
|
10995
10996
|
function w(x, I) {
|
|
10996
10997
|
if (a.isNullOrUndefined(x) || a.isNullOrUndefined(I) || x.prototype !== I.prototype) return !1;
|
|
10997
10998
|
if (a.isPrimitive(x) || a.isPrimitive(I))
|
|
10998
10999
|
return x === I;
|
|
10999
|
-
var T =
|
|
11000
|
+
var T = A(x), D = A(I);
|
|
11000
11001
|
if (T && !D || !T && D)
|
|
11001
11002
|
return !1;
|
|
11002
11003
|
if (T)
|
|
11003
|
-
return x = u.call(x), I = u.call(I),
|
|
11004
|
+
return x = u.call(x), I = u.call(I), E(x, I);
|
|
11004
11005
|
var K = k(x), re = k(I), ae, ue;
|
|
11005
11006
|
if (K.length != re.length)
|
|
11006
11007
|
return !1;
|
|
@@ -11008,17 +11009,17 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11008
11009
|
if (K[ue] != re[ue])
|
|
11009
11010
|
return !1;
|
|
11010
11011
|
for (ue = K.length - 1; ue >= 0; ue--)
|
|
11011
|
-
if (ae = K[ue], !
|
|
11012
|
+
if (ae = K[ue], !E(x[ae], I[ae])) return !1;
|
|
11012
11013
|
return !0;
|
|
11013
11014
|
}
|
|
11014
11015
|
f.notDeepEqual = function(I, T, D) {
|
|
11015
|
-
|
|
11016
|
+
E(I, T) && v(I, T, D, "notDeepEqual", f.notDeepEqual);
|
|
11016
11017
|
}, f.strictEqual = function(I, T, D) {
|
|
11017
11018
|
I !== T && v(I, T, D, "===", f.strictEqual);
|
|
11018
11019
|
}, f.notStrictEqual = function(I, T, D) {
|
|
11019
11020
|
I === T && v(I, T, D, "!==", f.notStrictEqual);
|
|
11020
11021
|
};
|
|
11021
|
-
function
|
|
11022
|
+
function R(x, I) {
|
|
11022
11023
|
return !x || !I ? !1 : Object.prototype.toString.call(I) == "[object RegExp]" ? I.test(x) : x instanceof I ? !0 : I.call({}, x) === !0;
|
|
11023
11024
|
}
|
|
11024
11025
|
function L(x, I, T, D) {
|
|
@@ -11029,7 +11030,7 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11029
11030
|
} catch (re) {
|
|
11030
11031
|
K = re;
|
|
11031
11032
|
}
|
|
11032
|
-
if (D = (T && T.name ? " (" + T.name + ")." : ".") + (D ? " " + D : "."), x && !K && v(K, T, "Missing expected exception" + D), !x &&
|
|
11033
|
+
if (D = (T && T.name ? " (" + T.name + ")." : ".") + (D ? " " + D : "."), x && !K && v(K, T, "Missing expected exception" + D), !x && R(K, T) && v(K, T, "Got unwanted exception" + D), x && K && T && !R(K, T) || !x && K)
|
|
11033
11034
|
throw K;
|
|
11034
11035
|
}
|
|
11035
11036
|
f.throws = function(x, I, T) {
|
|
@@ -11132,7 +11133,7 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11132
11133
|
seen: [],
|
|
11133
11134
|
stylize: v
|
|
11134
11135
|
};
|
|
11135
|
-
return arguments.length >= 3 && (se.depth = arguments[2]), arguments.length >= 4 && (se.colors = arguments[3]), I(Y) ? se.showHidden = Y : Y && o._extend(se, Y), ue(se.showHidden) && (se.showHidden = !1), ue(se.depth) && (se.depth = 2), ue(se.colors) && (se.colors = !1), ue(se.customInspect) && (se.customInspect = !0), se.colors && (se.stylize = d),
|
|
11136
|
+
return arguments.length >= 3 && (se.depth = arguments[2]), arguments.length >= 4 && (se.colors = arguments[3]), I(Y) ? se.showHidden = Y : Y && o._extend(se, Y), ue(se.showHidden) && (se.showHidden = !1), ue(se.depth) && (se.depth = 2), ue(se.colors) && (se.colors = !1), ue(se.customInspect) && (se.customInspect = !0), se.colors && (se.stylize = d), E(se, G, se.depth);
|
|
11136
11137
|
}
|
|
11137
11138
|
o.inspect = g, g.colors = {
|
|
11138
11139
|
bold: [1, 22],
|
|
@@ -11172,14 +11173,14 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11172
11173
|
Y[se] = !0;
|
|
11173
11174
|
}), Y;
|
|
11174
11175
|
}
|
|
11175
|
-
function
|
|
11176
|
+
function E(G, Y, se) {
|
|
11176
11177
|
if (G.customInspect && Y && Fe(Y.inspect) && // Filter out the util module, it's inspect function is special
|
|
11177
11178
|
Y.inspect !== o.inspect && // Also filter out any prototype objects using the circular check.
|
|
11178
11179
|
!(Y.constructor && Y.constructor.prototype === Y)) {
|
|
11179
11180
|
var Ae = Y.inspect(se, G);
|
|
11180
|
-
return re(Ae) || (Ae =
|
|
11181
|
+
return re(Ae) || (Ae = E(G, Ae, se)), Ae;
|
|
11181
11182
|
}
|
|
11182
|
-
var Ve =
|
|
11183
|
+
var Ve = A(G, Y);
|
|
11183
11184
|
if (Ve)
|
|
11184
11185
|
return Ve;
|
|
11185
11186
|
var ve = Object.keys(Y), Oe = O(ve);
|
|
@@ -11208,11 +11209,11 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11208
11209
|
return pe(Y) ? G.stylize(RegExp.prototype.toString.call(Y), "regexp") : G.stylize("[Object]", "special");
|
|
11209
11210
|
G.seen.push(Y);
|
|
11210
11211
|
var Pt;
|
|
11211
|
-
return St ? Pt =
|
|
11212
|
+
return St ? Pt = R(G, Y, se, Oe, ve) : Pt = ve.map(function(me) {
|
|
11212
11213
|
return L(G, Y, se, Oe, me, St);
|
|
11213
11214
|
}), G.seen.pop(), k(Pt, Re, sn);
|
|
11214
11215
|
}
|
|
11215
|
-
function
|
|
11216
|
+
function A(G, Y) {
|
|
11216
11217
|
if (ue(Y))
|
|
11217
11218
|
return G.stylize("undefined", "undefined");
|
|
11218
11219
|
if (re(Y)) {
|
|
@@ -11229,7 +11230,7 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11229
11230
|
function w(G) {
|
|
11230
11231
|
return "[" + Error.prototype.toString.call(G) + "]";
|
|
11231
11232
|
}
|
|
11232
|
-
function
|
|
11233
|
+
function R(G, Y, se, Ae, Ve) {
|
|
11233
11234
|
for (var ve = [], Oe = 0, Ne = Y.length; Oe < Ne; ++Oe)
|
|
11234
11235
|
mt(Y, String(Oe)) ? ve.push(L(
|
|
11235
11236
|
G,
|
|
@@ -11252,7 +11253,7 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11252
11253
|
}
|
|
11253
11254
|
function L(G, Y, se, Ae, Ve, ve) {
|
|
11254
11255
|
var Oe, Ne, Re;
|
|
11255
|
-
if (Re = Object.getOwnPropertyDescriptor(Y, Ve) || { value: Y[Ve] }, Re.get ? Re.set ? Ne = G.stylize("[Getter/Setter]", "special") : Ne = G.stylize("[Getter]", "special") : Re.set && (Ne = G.stylize("[Setter]", "special")), mt(Ae, Ve) || (Oe = "[" + Ve + "]"), Ne || (G.seen.indexOf(Re.value) < 0 ? (T(se) ? Ne =
|
|
11256
|
+
if (Re = Object.getOwnPropertyDescriptor(Y, Ve) || { value: Y[Ve] }, Re.get ? Re.set ? Ne = G.stylize("[Getter/Setter]", "special") : Ne = G.stylize("[Getter]", "special") : Re.set && (Ne = G.stylize("[Setter]", "special")), mt(Ae, Ve) || (Oe = "[" + Ve + "]"), Ne || (G.seen.indexOf(Re.value) < 0 ? (T(se) ? Ne = E(G, Re.value, null) : Ne = E(G, Re.value, se - 1), Ne.indexOf(`
|
|
11256
11257
|
`) > -1 && (ve ? Ne = Ne.split(`
|
|
11257
11258
|
`).map(function(St) {
|
|
11258
11259
|
return " " + St;
|
|
@@ -11380,8 +11381,8 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11380
11381
|
(function(a) {
|
|
11381
11382
|
function u(g, d) {
|
|
11382
11383
|
for (var v = 0, O = g.length - 1; O >= 0; O--) {
|
|
11383
|
-
var
|
|
11384
|
-
|
|
11384
|
+
var E = g[O];
|
|
11385
|
+
E === "." ? g.splice(O, 1) : E === ".." ? (g.splice(O, 1), v++) : v && (g.splice(O, 1), v--);
|
|
11385
11386
|
}
|
|
11386
11387
|
if (d)
|
|
11387
11388
|
for (; v--; v)
|
|
@@ -11397,8 +11398,8 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11397
11398
|
continue;
|
|
11398
11399
|
g = O + "/" + g, d = O.charAt(0) === "/";
|
|
11399
11400
|
}
|
|
11400
|
-
return g = u(f(g.split("/"), function(
|
|
11401
|
-
return !!
|
|
11401
|
+
return g = u(f(g.split("/"), function(E) {
|
|
11402
|
+
return !!E;
|
|
11402
11403
|
}), !d).join("/"), (d ? "/" : "") + g || ".";
|
|
11403
11404
|
}, o.normalize = function(g) {
|
|
11404
11405
|
var d = o.isAbsolute(g), v = y(g, -1) === "/";
|
|
@@ -11423,36 +11424,36 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11423
11424
|
;
|
|
11424
11425
|
return x > I ? [] : k.slice(x, I - x + 1);
|
|
11425
11426
|
}
|
|
11426
|
-
for (var O = v(g.split("/")),
|
|
11427
|
-
if (O[
|
|
11428
|
-
w =
|
|
11427
|
+
for (var O = v(g.split("/")), E = v(d.split("/")), A = Math.min(O.length, E.length), w = A, R = 0; R < A; R++)
|
|
11428
|
+
if (O[R] !== E[R]) {
|
|
11429
|
+
w = R;
|
|
11429
11430
|
break;
|
|
11430
11431
|
}
|
|
11431
|
-
for (var L = [],
|
|
11432
|
+
for (var L = [], R = w; R < O.length; R++)
|
|
11432
11433
|
L.push("..");
|
|
11433
|
-
return L = L.concat(
|
|
11434
|
+
return L = L.concat(E.slice(w)), L.join("/");
|
|
11434
11435
|
}, o.sep = "/", o.delimiter = ":", o.dirname = function(g) {
|
|
11435
11436
|
if (typeof g != "string" && (g = g + ""), g.length === 0) return ".";
|
|
11436
|
-
for (var d = g.charCodeAt(0), v = d === 47, O = -1,
|
|
11437
|
-
if (d = g.charCodeAt(
|
|
11438
|
-
if (!
|
|
11439
|
-
O =
|
|
11437
|
+
for (var d = g.charCodeAt(0), v = d === 47, O = -1, E = !0, A = g.length - 1; A >= 1; --A)
|
|
11438
|
+
if (d = g.charCodeAt(A), d === 47) {
|
|
11439
|
+
if (!E) {
|
|
11440
|
+
O = A;
|
|
11440
11441
|
break;
|
|
11441
11442
|
}
|
|
11442
11443
|
} else
|
|
11443
|
-
|
|
11444
|
+
E = !1;
|
|
11444
11445
|
return O === -1 ? v ? "/" : "." : v && O === 1 ? "/" : g.slice(0, O);
|
|
11445
11446
|
};
|
|
11446
11447
|
function l(g) {
|
|
11447
11448
|
typeof g != "string" && (g = g + "");
|
|
11448
|
-
var d = 0, v = -1, O = !0,
|
|
11449
|
-
for (
|
|
11450
|
-
if (g.charCodeAt(
|
|
11449
|
+
var d = 0, v = -1, O = !0, E;
|
|
11450
|
+
for (E = g.length - 1; E >= 0; --E)
|
|
11451
|
+
if (g.charCodeAt(E) === 47) {
|
|
11451
11452
|
if (!O) {
|
|
11452
|
-
d =
|
|
11453
|
+
d = E + 1;
|
|
11453
11454
|
break;
|
|
11454
11455
|
}
|
|
11455
|
-
} else v === -1 && (O = !1, v =
|
|
11456
|
+
} else v === -1 && (O = !1, v = E + 1);
|
|
11456
11457
|
return v === -1 ? "" : g.slice(d, v);
|
|
11457
11458
|
}
|
|
11458
11459
|
o.basename = function(g, d) {
|
|
@@ -11460,20 +11461,20 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11460
11461
|
return d && v.substr(-1 * d.length) === d && (v = v.substr(0, v.length - d.length)), v;
|
|
11461
11462
|
}, o.extname = function(g) {
|
|
11462
11463
|
typeof g != "string" && (g = g + "");
|
|
11463
|
-
for (var d = -1, v = 0, O = -1,
|
|
11464
|
-
var
|
|
11465
|
-
if (
|
|
11466
|
-
if (!
|
|
11464
|
+
for (var d = -1, v = 0, O = -1, E = !0, A = 0, w = g.length - 1; w >= 0; --w) {
|
|
11465
|
+
var R = g.charCodeAt(w);
|
|
11466
|
+
if (R === 47) {
|
|
11467
|
+
if (!E) {
|
|
11467
11468
|
v = w + 1;
|
|
11468
11469
|
break;
|
|
11469
11470
|
}
|
|
11470
11471
|
continue;
|
|
11471
11472
|
}
|
|
11472
|
-
O === -1 && (
|
|
11473
|
+
O === -1 && (E = !1, O = w + 1), R === 46 ? d === -1 ? d = w : A !== 1 && (A = 1) : d !== -1 && (A = -1);
|
|
11473
11474
|
}
|
|
11474
11475
|
return d === -1 || O === -1 || // We saw a non-dot character immediately before the dot
|
|
11475
|
-
|
|
11476
|
-
|
|
11476
|
+
A === 0 || // The (right-most) trimmed path component is exactly '..'
|
|
11477
|
+
A === 1 && d === O - 1 && d === v + 1 ? "" : g.slice(d, O);
|
|
11477
11478
|
};
|
|
11478
11479
|
function f(g, d) {
|
|
11479
11480
|
if (g.filter) return g.filter(d);
|
|
@@ -11537,20 +11538,20 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11537
11538
|
}
|
|
11538
11539
|
}
|
|
11539
11540
|
}
|
|
11540
|
-
var v = [], O = !1,
|
|
11541
|
+
var v = [], O = !1, E, A = -1;
|
|
11541
11542
|
function w() {
|
|
11542
|
-
!O || !
|
|
11543
|
+
!O || !E || (O = !1, E.length ? v = E.concat(v) : A = -1, v.length && R());
|
|
11543
11544
|
}
|
|
11544
|
-
function
|
|
11545
|
+
function R() {
|
|
11545
11546
|
if (!O) {
|
|
11546
11547
|
var x = g(w);
|
|
11547
11548
|
O = !0;
|
|
11548
11549
|
for (var I = v.length; I; ) {
|
|
11549
|
-
for (
|
|
11550
|
-
|
|
11551
|
-
|
|
11550
|
+
for (E = v, v = []; ++A < I; )
|
|
11551
|
+
E && E[A].run();
|
|
11552
|
+
A = -1, I = v.length;
|
|
11552
11553
|
}
|
|
11553
|
-
|
|
11554
|
+
E = null, O = !1, d(x);
|
|
11554
11555
|
}
|
|
11555
11556
|
}
|
|
11556
11557
|
a.nextTick = function(x) {
|
|
@@ -11558,7 +11559,7 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11558
11559
|
if (arguments.length > 1)
|
|
11559
11560
|
for (var T = 1; T < arguments.length; T++)
|
|
11560
11561
|
I[T - 1] = arguments[T];
|
|
11561
|
-
v.push(new L(x, I)), v.length === 1 && !O && g(
|
|
11562
|
+
v.push(new L(x, I)), v.length === 1 && !O && g(R);
|
|
11562
11563
|
};
|
|
11563
11564
|
function L(x, I) {
|
|
11564
11565
|
this.fun = x, this.array = I;
|
|
@@ -11590,15 +11591,15 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11590
11591
|
var O = g(d.argument);
|
|
11591
11592
|
return d.operator === "+" ? +O : d.operator === "-" ? -O : d.operator === "~" ? ~O : d.operator === "!" ? !O : f;
|
|
11592
11593
|
} else if (d.type === "ArrayExpression") {
|
|
11593
|
-
for (var
|
|
11594
|
-
var
|
|
11595
|
-
if (
|
|
11596
|
-
|
|
11594
|
+
for (var E = [], A = 0, w = d.elements.length; A < w; A++) {
|
|
11595
|
+
var R = g(d.elements[A]);
|
|
11596
|
+
if (R === f) return f;
|
|
11597
|
+
E.push(R);
|
|
11597
11598
|
}
|
|
11598
|
-
return
|
|
11599
|
+
return E;
|
|
11599
11600
|
} else if (d.type === "ObjectExpression") {
|
|
11600
|
-
for (var L = {},
|
|
11601
|
-
var k = d.properties[
|
|
11601
|
+
for (var L = {}, A = 0; A < d.properties.length; A++) {
|
|
11602
|
+
var k = d.properties[A], x = k.value === null ? k.value : g(k.value);
|
|
11602
11603
|
if (x === f) return f;
|
|
11603
11604
|
L[k.key.value || k.key.name] = x;
|
|
11604
11605
|
}
|
|
@@ -11620,10 +11621,10 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11620
11621
|
if (D === f || typeof D != "function") return f;
|
|
11621
11622
|
var K = d.callee.object ? g(d.callee.object) : f;
|
|
11622
11623
|
K === f && (K = null);
|
|
11623
|
-
for (var re = [],
|
|
11624
|
-
var
|
|
11625
|
-
if (
|
|
11626
|
-
re.push(
|
|
11624
|
+
for (var re = [], A = 0, w = d.arguments.length; A < w; A++) {
|
|
11625
|
+
var R = g(d.arguments[A]);
|
|
11626
|
+
if (R === f) return f;
|
|
11627
|
+
re.push(R);
|
|
11627
11628
|
}
|
|
11628
11629
|
return D.apply(K, re);
|
|
11629
11630
|
} else if (d.type === "MemberExpression") {
|
|
@@ -11648,14 +11649,14 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11648
11649
|
Object.keys(l).forEach(function(Ge) {
|
|
11649
11650
|
ue[Ge] = l[Ge];
|
|
11650
11651
|
});
|
|
11651
|
-
for (var
|
|
11652
|
-
var pe = d.params[
|
|
11652
|
+
for (var A = 0; A < d.params.length; A++) {
|
|
11653
|
+
var pe = d.params[A];
|
|
11653
11654
|
if (pe.type == "Identifier")
|
|
11654
11655
|
l[pe.name] = null;
|
|
11655
11656
|
else return f;
|
|
11656
11657
|
}
|
|
11657
|
-
for (var
|
|
11658
|
-
if (g(ae[
|
|
11658
|
+
for (var A in ae)
|
|
11659
|
+
if (g(ae[A]) === f)
|
|
11659
11660
|
return f;
|
|
11660
11661
|
l = ue;
|
|
11661
11662
|
var ye = Object.keys(l), he = ye.map(function(Ge) {
|
|
@@ -11663,9 +11664,9 @@ Expecting ` + Ue.join(", ") + ", got '" + (this.terminals_[ue] || ue) + "'" : Ge
|
|
|
11663
11664
|
});
|
|
11664
11665
|
return Function(ye.join(", "), "return " + a(d)).apply(null, he);
|
|
11665
11666
|
} else if (d.type === "TemplateLiteral") {
|
|
11666
|
-
for (var ce = "",
|
|
11667
|
-
ce += g(d.quasis[
|
|
11668
|
-
return ce += g(d.quasis[
|
|
11667
|
+
for (var ce = "", A = 0; A < d.expressions.length; A++)
|
|
11668
|
+
ce += g(d.quasis[A]), ce += g(d.expressions[A]);
|
|
11669
|
+
return ce += g(d.quasis[A]), ce;
|
|
11669
11670
|
} else if (d.type === "TaggedTemplateExpression") {
|
|
11670
11671
|
var Fe = g(d.tag), ke = d.quasi, xe = ke.quasis.map(g), Ue = ke.expressions.map(g);
|
|
11671
11672
|
return Fe.apply(null, [xe].concat(Ue));
|
|
@@ -11837,10 +11838,10 @@ function C2(e, t, n) {
|
|
|
11837
11838
|
var D = i, K = o;
|
|
11838
11839
|
return i = o = void 0, y = T, u = e.apply(K, D), u;
|
|
11839
11840
|
}
|
|
11840
|
-
function A(T) {
|
|
11841
|
-
return y = T, l = setTimeout(P, t), g ? O(T) : u;
|
|
11842
|
-
}
|
|
11843
11841
|
function E(T) {
|
|
11842
|
+
return y = T, l = setTimeout(R, t), g ? O(T) : u;
|
|
11843
|
+
}
|
|
11844
|
+
function A(T) {
|
|
11844
11845
|
var D = T - f, K = T - y, re = t - D;
|
|
11845
11846
|
return d ? _2(re, a - K) : re;
|
|
11846
11847
|
}
|
|
@@ -11848,11 +11849,11 @@ function C2(e, t, n) {
|
|
|
11848
11849
|
var D = T - f, K = T - y;
|
|
11849
11850
|
return f === void 0 || D >= t || D < 0 || d && K >= a;
|
|
11850
11851
|
}
|
|
11851
|
-
function
|
|
11852
|
+
function R() {
|
|
11852
11853
|
var T = $c();
|
|
11853
11854
|
if (w(T))
|
|
11854
11855
|
return L(T);
|
|
11855
|
-
l = setTimeout(
|
|
11856
|
+
l = setTimeout(R, A(T));
|
|
11856
11857
|
}
|
|
11857
11858
|
function L(T) {
|
|
11858
11859
|
return l = void 0, v && i ? O(T) : (i = o = void 0, u);
|
|
@@ -11867,11 +11868,11 @@ function C2(e, t, n) {
|
|
|
11867
11868
|
var T = $c(), D = w(T);
|
|
11868
11869
|
if (i = arguments, o = this, f = T, D) {
|
|
11869
11870
|
if (l === void 0)
|
|
11870
|
-
return
|
|
11871
|
+
return E(f);
|
|
11871
11872
|
if (d)
|
|
11872
|
-
return l = setTimeout(
|
|
11873
|
+
return l = setTimeout(R, t), O(f);
|
|
11873
11874
|
}
|
|
11874
|
-
return l === void 0 && (l = setTimeout(
|
|
11875
|
+
return l === void 0 && (l = setTimeout(R, t)), u;
|
|
11875
11876
|
}
|
|
11876
11877
|
return I.cancel = k, I.flush = x, I;
|
|
11877
11878
|
}
|
|
@@ -12552,8 +12553,8 @@ function $_(e, t, n, i) {
|
|
|
12552
12553
|
function Pg(e, t) {
|
|
12553
12554
|
return e.Uri.parse(t);
|
|
12554
12555
|
}
|
|
12555
|
-
function j_({ original: e, modified: t, language: n, originalLanguage: i, modifiedLanguage: o, originalModelPath: a, modifiedModelPath: u, keepCurrentOriginalModel: l = !1, keepCurrentModifiedModel: f = !1, theme: y = "light", loading: g = "Loading...", options: d = {}, height: v = "100%", width: O = "100%", className:
|
|
12556
|
-
let [L, k] = ht(!1), [x, I] = ht(!0), T = Xt(null), D = Xt(null), K = Xt(null), re = Xt(
|
|
12556
|
+
function j_({ original: e, modified: t, language: n, originalLanguage: i, modifiedLanguage: o, originalModelPath: a, modifiedModelPath: u, keepCurrentOriginalModel: l = !1, keepCurrentModifiedModel: f = !1, theme: y = "light", loading: g = "Loading...", options: d = {}, height: v = "100%", width: O = "100%", className: E, wrapperProps: A = {}, beforeMount: w = so, onMount: R = so }) {
|
|
12557
|
+
let [L, k] = ht(!1), [x, I] = ht(!0), T = Xt(null), D = Xt(null), K = Xt(null), re = Xt(R), ae = Xt(w), ue = Xt(!1);
|
|
12557
12558
|
Pl(() => {
|
|
12558
12559
|
let ce = yo.init();
|
|
12559
12560
|
return ce.then((Fe) => (D.current = Fe) && I(!1)).catch((Fe) => Fe?.type !== "cancelation" && console.error("Monaco initialization: error:", Fe)), () => T.current ? he() : ce.cancel();
|
|
@@ -12597,7 +12598,7 @@ function j_({ original: e, modified: t, language: n, originalLanguage: i, modifi
|
|
|
12597
12598
|
let ce = T.current?.getModel();
|
|
12598
12599
|
l || ce?.original?.dispose(), f || ce?.modified?.dispose(), T.current?.dispose();
|
|
12599
12600
|
}
|
|
12600
|
-
return xn.createElement(Rg, { width: O, height: v, isEditorReady: L, loading: g, _ref: K, className:
|
|
12601
|
+
return xn.createElement(Rg, { width: O, height: v, isEditorReady: L, loading: g, _ref: K, className: E, wrapperProps: A });
|
|
12601
12602
|
}
|
|
12602
12603
|
var M_ = j_, U_ = vl(M_);
|
|
12603
12604
|
function V_() {
|
|
@@ -12617,8 +12618,8 @@ function W_(e) {
|
|
|
12617
12618
|
}, [e]), t.current;
|
|
12618
12619
|
}
|
|
12619
12620
|
var K_ = W_, _a = /* @__PURE__ */ new Map();
|
|
12620
|
-
function H_({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: i, language: o, path: a, theme: u = "light", line: l, loading: f = "Loading...", options: y = {}, overrideServices: g = {}, saveViewState: d = !0, keepCurrentModel: v = !1, width: O = "100%", height:
|
|
12621
|
-
let [I, T] = ht(!1), [D, K] = ht(!0), re = Xt(null), ae = Xt(null), ue = Xt(null), pe = Xt(L), ye = Xt(
|
|
12621
|
+
function H_({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: i, language: o, path: a, theme: u = "light", line: l, loading: f = "Loading...", options: y = {}, overrideServices: g = {}, saveViewState: d = !0, keepCurrentModel: v = !1, width: O = "100%", height: E = "100%", className: A, wrapperProps: w = {}, beforeMount: R = so, onMount: L = so, onChange: k, onValidate: x = so }) {
|
|
12622
|
+
let [I, T] = ht(!1), [D, K] = ht(!0), re = Xt(null), ae = Xt(null), ue = Xt(null), pe = Xt(L), ye = Xt(R), he = Xt(), ce = Xt(i), Fe = K_(a), ke = Xt(!1), xe = Xt(!1);
|
|
12622
12623
|
Pl(() => {
|
|
12623
12624
|
let we = yo.init();
|
|
12624
12625
|
return we.then((mt) => (re.current = mt) && K(!1)).catch((mt) => mt?.type !== "cancelation" && console.error("Monaco initialization: error:", mt)), () => ae.current ? Ge() : we.cancel();
|
|
@@ -12671,7 +12672,7 @@ function H_({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: i, lan
|
|
|
12671
12672
|
function Ge() {
|
|
12672
12673
|
he.current?.dispose(), v ? d && _a.set(a, ae.current.saveViewState()) : ae.current.getModel()?.dispose(), ae.current.dispose();
|
|
12673
12674
|
}
|
|
12674
|
-
return xn.createElement(Rg, { width: O, height:
|
|
12675
|
+
return xn.createElement(Rg, { width: O, height: E, isEditorReady: I, loading: f, _ref: ue, className: A, wrapperProps: w });
|
|
12675
12676
|
}
|
|
12676
12677
|
var z_ = H_, Ng = vl(z_), Nl = Ng;
|
|
12677
12678
|
const G_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -13277,51 +13278,51 @@ function uu(e, t, n = "flow", { indentAtStart: i, lineWidth: o = 80, minContentW
|
|
|
13277
13278
|
const y = [], g = {};
|
|
13278
13279
|
let d = o - t.length;
|
|
13279
13280
|
typeof i == "number" && (i > o - Math.max(2, a) ? y.push(0) : d = o - i);
|
|
13280
|
-
let v, O,
|
|
13281
|
-
n === gl && (
|
|
13282
|
-
for (let k; k = e[
|
|
13281
|
+
let v, O, E = !1, A = -1, w = -1, R = -1;
|
|
13282
|
+
n === gl && (A = id(e, A, t.length), A !== -1 && (d = A + f));
|
|
13283
|
+
for (let k; k = e[A += 1]; ) {
|
|
13283
13284
|
if (n === Ua && k === "\\") {
|
|
13284
|
-
switch (w =
|
|
13285
|
+
switch (w = A, e[A + 1]) {
|
|
13285
13286
|
case "x":
|
|
13286
|
-
|
|
13287
|
+
A += 3;
|
|
13287
13288
|
break;
|
|
13288
13289
|
case "u":
|
|
13289
|
-
|
|
13290
|
+
A += 5;
|
|
13290
13291
|
break;
|
|
13291
13292
|
case "U":
|
|
13292
|
-
|
|
13293
|
+
A += 9;
|
|
13293
13294
|
break;
|
|
13294
13295
|
default:
|
|
13295
|
-
|
|
13296
|
+
A += 1;
|
|
13296
13297
|
}
|
|
13297
|
-
|
|
13298
|
+
R = A;
|
|
13298
13299
|
}
|
|
13299
13300
|
if (k === `
|
|
13300
13301
|
`)
|
|
13301
|
-
n === gl && (
|
|
13302
|
+
n === gl && (A = id(e, A, t.length)), d = A + t.length + f, v = void 0;
|
|
13302
13303
|
else {
|
|
13303
13304
|
if (k === " " && O && O !== " " && O !== `
|
|
13304
13305
|
` && O !== " ") {
|
|
13305
|
-
const x = e[
|
|
13306
|
+
const x = e[A + 1];
|
|
13306
13307
|
x && x !== " " && x !== `
|
|
13307
|
-
` && x !== " " && (v =
|
|
13308
|
+
` && x !== " " && (v = A);
|
|
13308
13309
|
}
|
|
13309
|
-
if (
|
|
13310
|
+
if (A >= d)
|
|
13310
13311
|
if (v)
|
|
13311
13312
|
y.push(v), d = v + f, v = void 0;
|
|
13312
13313
|
else if (n === Ua) {
|
|
13313
13314
|
for (; O === " " || O === " "; )
|
|
13314
|
-
O = k, k = e[
|
|
13315
|
-
const x =
|
|
13315
|
+
O = k, k = e[A += 1], E = !0;
|
|
13316
|
+
const x = A > R + 1 ? A - 2 : w - 1;
|
|
13316
13317
|
if (g[x])
|
|
13317
13318
|
return e;
|
|
13318
13319
|
y.push(x), g[x] = !0, d = x + f, v = void 0;
|
|
13319
13320
|
} else
|
|
13320
|
-
|
|
13321
|
+
E = !0;
|
|
13321
13322
|
}
|
|
13322
13323
|
O = k;
|
|
13323
13324
|
}
|
|
13324
|
-
if (
|
|
13325
|
+
if (E && l && l(), y.length === 0)
|
|
13325
13326
|
return e;
|
|
13326
13327
|
u && u();
|
|
13327
13328
|
let L = e.slice(0, y[0]);
|
|
@@ -13474,24 +13475,24 @@ function Va({ comment: e, type: t, value: n }, i, o, a) {
|
|
|
13474
13475
|
break;
|
|
13475
13476
|
}
|
|
13476
13477
|
let O = n.substring(v);
|
|
13477
|
-
const
|
|
13478
|
+
const E = O.indexOf(`
|
|
13478
13479
|
`);
|
|
13479
|
-
|
|
13480
|
+
E === -1 ? d = "-" : n === O || E !== O.length - 1 ? (d = "+", a && a()) : d = "", O && (n = n.slice(0, -O.length), O[O.length - 1] === `
|
|
13480
13481
|
` && (O = O.slice(0, -1)), O = O.replace(ml, `$&${y}`));
|
|
13481
|
-
let
|
|
13482
|
+
let A = !1, w, R = -1;
|
|
13482
13483
|
for (w = 0; w < n.length; ++w) {
|
|
13483
13484
|
const I = n[w];
|
|
13484
13485
|
if (I === " ")
|
|
13485
|
-
|
|
13486
|
+
A = !0;
|
|
13486
13487
|
else if (I === `
|
|
13487
13488
|
`)
|
|
13488
|
-
|
|
13489
|
+
R = w;
|
|
13489
13490
|
else
|
|
13490
13491
|
break;
|
|
13491
13492
|
}
|
|
13492
|
-
let L = n.substring(0,
|
|
13493
|
+
let L = n.substring(0, R < w ? R + 1 : w);
|
|
13493
13494
|
L && (n = n.substring(L.length), L = L.replace(/\n+/g, `$&${y}`));
|
|
13494
|
-
let x = (
|
|
13495
|
+
let x = (A ? y ? "2" : "1" : "") + d;
|
|
13495
13496
|
if (e && (x += " " + l(e.replace(/ ?[\r\n]+/g, " ")), o && o()), !g) {
|
|
13496
13497
|
const I = n.replace(/\n+/g, `
|
|
13497
13498
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${y}`);
|
|
@@ -13528,8 +13529,8 @@ function aC(e, t, n, i) {
|
|
|
13528
13529
|
const d = a.replace(/\n+/g, `$&
|
|
13529
13530
|
${f}`);
|
|
13530
13531
|
if (u) {
|
|
13531
|
-
const v = (
|
|
13532
|
-
if (
|
|
13532
|
+
const v = (A) => A.default && A.tag !== "tag:yaml.org,2002:str" && A.test?.test(d), { compat: O, tags: E } = t.doc.schema;
|
|
13533
|
+
if (E.some(v) || O?.some(v))
|
|
13533
13534
|
return os(a, t);
|
|
13534
13535
|
}
|
|
13535
13536
|
return l ? d : uu(d, f, qg, cu(t, !1));
|
|
@@ -13669,7 +13670,7 @@ function lC({ key: e, value: t }, n, i, o) {
|
|
|
13669
13670
|
implicitKey: !O && (d || !a),
|
|
13670
13671
|
indent: l + f
|
|
13671
13672
|
});
|
|
13672
|
-
let
|
|
13673
|
+
let E = !1, A = !1, w = ys(e, n, () => E = !0, () => A = !0);
|
|
13673
13674
|
if (!O && !n.inFlow && w.length > 1024) {
|
|
13674
13675
|
if (d)
|
|
13675
13676
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
@@ -13677,18 +13678,18 @@ function lC({ key: e, value: t }, n, i, o) {
|
|
|
13677
13678
|
}
|
|
13678
13679
|
if (n.inFlow) {
|
|
13679
13680
|
if (a || t == null)
|
|
13680
|
-
return
|
|
13681
|
+
return E && i && i(), w === "" ? "?" : O ? `? ${w}` : w;
|
|
13681
13682
|
} else if (a && !d || t == null && O)
|
|
13682
|
-
return w = `? ${w}`, v && !
|
|
13683
|
-
|
|
13683
|
+
return w = `? ${w}`, v && !E ? w += xi(w, n.indent, y(v)) : A && o && o(), w;
|
|
13684
|
+
E && (v = null), O ? (v && (w += xi(w, n.indent, y(v))), w = `? ${w}
|
|
13684
13685
|
${l}:`) : (w = `${w}:`, v && (w += xi(w, n.indent, y(v))));
|
|
13685
|
-
let
|
|
13686
|
-
zt(t) ? (
|
|
13686
|
+
let R, L, k;
|
|
13687
|
+
zt(t) ? (R = !!t.spaceBefore, L = t.commentBefore, k = t.comment) : (R = !1, L = null, k = null, t && typeof t == "object" && (t = u.createNode(t))), n.implicitKey = !1, !O && !v && Ct(t) && (n.indentAtStart = w.length + 1), A = !1, !g && f.length >= 2 && !n.inFlow && !O && xo(t) && !t.flow && !t.tag && !t.anchor && (n.indent = n.indent.substring(2));
|
|
13687
13688
|
let x = !1;
|
|
13688
|
-
const I = ys(t, n, () => x = !0, () =>
|
|
13689
|
+
const I = ys(t, n, () => x = !0, () => A = !0);
|
|
13689
13690
|
let T = " ";
|
|
13690
|
-
if (v ||
|
|
13691
|
-
if (T =
|
|
13691
|
+
if (v || R || L) {
|
|
13692
|
+
if (T = R ? `
|
|
13692
13693
|
` : "", L) {
|
|
13693
13694
|
const D = y(L);
|
|
13694
13695
|
T += `
|
|
@@ -13713,7 +13714,7 @@ ${n.indent}`);
|
|
|
13713
13714
|
}
|
|
13714
13715
|
} else (I === "" || I[0] === `
|
|
13715
13716
|
`) && (T = "");
|
|
13716
|
-
return w += T + I, n.inFlow ? x && i && i() : k && !x ? w += xi(w, n.indent, y(k)) :
|
|
13717
|
+
return w += T + I, n.inFlow ? x && i && i() : k && !x ? w += xi(w, n.indent, y(k)) : A && o && o(), w;
|
|
13717
13718
|
}
|
|
13718
13719
|
function Kg(e, t) {
|
|
13719
13720
|
(e === "debug" || e === "warn") && console.warn(t);
|
|
@@ -13822,28 +13823,28 @@ function pC({ comment: e, items: t }, n, { blockItemPrefix: i, flowChars: o, ite
|
|
|
13822
13823
|
const { indent: f, options: { commentString: y } } = n, g = Object.assign({}, n, { indent: a, type: null });
|
|
13823
13824
|
let d = !1;
|
|
13824
13825
|
const v = [];
|
|
13825
|
-
for (let
|
|
13826
|
-
const
|
|
13826
|
+
for (let E = 0; E < t.length; ++E) {
|
|
13827
|
+
const A = t[E];
|
|
13827
13828
|
let w = null;
|
|
13828
|
-
if (zt(
|
|
13829
|
-
!d &&
|
|
13830
|
-
else if (Gt(
|
|
13831
|
-
const L = zt(
|
|
13829
|
+
if (zt(A))
|
|
13830
|
+
!d && A.spaceBefore && v.push(""), Ja(n, v, A.commentBefore, d), A.comment && (w = A.comment);
|
|
13831
|
+
else if (Gt(A)) {
|
|
13832
|
+
const L = zt(A.key) ? A.key : null;
|
|
13832
13833
|
L && (!d && L.spaceBefore && v.push(""), Ja(n, v, L.commentBefore, d));
|
|
13833
13834
|
}
|
|
13834
13835
|
d = !1;
|
|
13835
|
-
let
|
|
13836
|
-
w && (
|
|
13836
|
+
let R = ys(A, g, () => w = null, () => d = !0);
|
|
13837
|
+
w && (R += xi(R, a, y(w))), d && w && (d = !1), v.push(i + R);
|
|
13837
13838
|
}
|
|
13838
13839
|
let O;
|
|
13839
13840
|
if (v.length === 0)
|
|
13840
13841
|
O = o.start + o.end;
|
|
13841
13842
|
else {
|
|
13842
13843
|
O = v[0];
|
|
13843
|
-
for (let
|
|
13844
|
-
const
|
|
13845
|
-
O +=
|
|
13846
|
-
${f}${
|
|
13844
|
+
for (let E = 1; E < v.length; ++E) {
|
|
13845
|
+
const A = v[E];
|
|
13846
|
+
O += A ? `
|
|
13847
|
+
${f}${A}` : `
|
|
13847
13848
|
`;
|
|
13848
13849
|
}
|
|
13849
13850
|
}
|
|
@@ -13860,36 +13861,36 @@ function dC({ items: e }, t, { flowChars: n, itemIndent: i }) {
|
|
|
13860
13861
|
});
|
|
13861
13862
|
let y = !1, g = 0;
|
|
13862
13863
|
const d = [];
|
|
13863
|
-
for (let
|
|
13864
|
-
const
|
|
13864
|
+
for (let E = 0; E < e.length; ++E) {
|
|
13865
|
+
const A = e[E];
|
|
13865
13866
|
let w = null;
|
|
13866
|
-
if (zt(
|
|
13867
|
-
|
|
13868
|
-
else if (Gt(
|
|
13869
|
-
const L = zt(
|
|
13867
|
+
if (zt(A))
|
|
13868
|
+
A.spaceBefore && d.push(""), Ja(t, d, A.commentBefore, !1), A.comment && (w = A.comment);
|
|
13869
|
+
else if (Gt(A)) {
|
|
13870
|
+
const L = zt(A.key) ? A.key : null;
|
|
13870
13871
|
L && (L.spaceBefore && d.push(""), Ja(t, d, L.commentBefore, !1), L.comment && (y = !0));
|
|
13871
|
-
const k = zt(
|
|
13872
|
-
k ? (k.comment && (w = k.comment), k.commentBefore && (y = !0)) :
|
|
13872
|
+
const k = zt(A.value) ? A.value : null;
|
|
13873
|
+
k ? (k.comment && (w = k.comment), k.commentBefore && (y = !0)) : A.value == null && L?.comment && (w = L.comment);
|
|
13873
13874
|
}
|
|
13874
13875
|
w && (y = !0);
|
|
13875
|
-
let
|
|
13876
|
-
|
|
13877
|
-
`)) && (y = !0), d.push(
|
|
13876
|
+
let R = ys(A, f, () => w = null);
|
|
13877
|
+
E < e.length - 1 && (R += ","), w && (R += xi(R, i, l(w))), !y && (d.length > g || R.includes(`
|
|
13878
|
+
`)) && (y = !0), d.push(R), g = d.length;
|
|
13878
13879
|
}
|
|
13879
13880
|
const { start: v, end: O } = n;
|
|
13880
13881
|
if (d.length === 0)
|
|
13881
13882
|
return v + O;
|
|
13882
13883
|
if (!y) {
|
|
13883
|
-
const
|
|
13884
|
-
y = t.options.lineWidth > 0 &&
|
|
13884
|
+
const E = d.reduce((A, w) => A + w.length + 2, 2);
|
|
13885
|
+
y = t.options.lineWidth > 0 && E > t.options.lineWidth;
|
|
13885
13886
|
}
|
|
13886
13887
|
if (y) {
|
|
13887
|
-
let
|
|
13888
|
-
for (const
|
|
13889
|
-
|
|
13890
|
-
${a}${o}${
|
|
13888
|
+
let E = v;
|
|
13889
|
+
for (const A of d)
|
|
13890
|
+
E += A ? `
|
|
13891
|
+
${a}${o}${A}` : `
|
|
13891
13892
|
`;
|
|
13892
|
-
return `${
|
|
13893
|
+
return `${E}
|
|
13893
13894
|
${o}${O}`;
|
|
13894
13895
|
} else
|
|
13895
13896
|
return `${v}${u}${d.join(" ")}${u}${O}`;
|
|
@@ -14821,14 +14822,14 @@ class Co {
|
|
|
14821
14822
|
if (typeof n == "function")
|
|
14822
14823
|
t = n.call({ "": t }, "", t), o = n;
|
|
14823
14824
|
else if (Array.isArray(n)) {
|
|
14824
|
-
const w = (L) => typeof L == "number" || L instanceof String || L instanceof Number,
|
|
14825
|
-
|
|
14825
|
+
const w = (L) => typeof L == "number" || L instanceof String || L instanceof Number, R = n.filter(w).map(String);
|
|
14826
|
+
R.length > 0 && (n = n.concat(R)), o = n;
|
|
14826
14827
|
} else i === void 0 && n && (i = n, n = void 0);
|
|
14827
14828
|
const { aliasDuplicateObjects: a, anchorPrefix: u, flow: l, keepUndefined: f, onTagObj: y, tag: g } = i ?? {}, { onAnchor: d, setAnchors: v, sourceObjects: O } = nC(
|
|
14828
14829
|
this,
|
|
14829
14830
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
14830
14831
|
u || "a"
|
|
14831
|
-
),
|
|
14832
|
+
), E = {
|
|
14832
14833
|
aliasDuplicateObjects: a ?? !0,
|
|
14833
14834
|
keepUndefined: f ?? !1,
|
|
14834
14835
|
onAnchor: d,
|
|
@@ -14836,8 +14837,8 @@ class Co {
|
|
|
14836
14837
|
replacer: o,
|
|
14837
14838
|
schema: this.schema,
|
|
14838
14839
|
sourceObjects: O
|
|
14839
|
-
},
|
|
14840
|
-
return l && Ht(
|
|
14840
|
+
}, A = mo(t, g, E);
|
|
14841
|
+
return l && Ht(A) && (A.flow = !0), v(), A;
|
|
14841
14842
|
}
|
|
14842
14843
|
/**
|
|
14843
14844
|
* Convert a key and a value into a `Pair` using the current schema,
|
|
@@ -15020,11 +15021,11 @@ ${y}
|
|
|
15020
15021
|
}
|
|
15021
15022
|
};
|
|
15022
15023
|
function ms(e, { flow: t, indicator: n, next: i, offset: o, onError: a, parentIndent: u, startOnNewline: l }) {
|
|
15023
|
-
let f = !1, y = l, g = l, d = "", v = "", O = !1,
|
|
15024
|
+
let f = !1, y = l, g = l, d = "", v = "", O = !1, E = !1, A = null, w = null, R = null, L = null, k = null, x = null, I = null;
|
|
15024
15025
|
for (const K of e)
|
|
15025
|
-
switch (
|
|
15026
|
+
switch (E && (K.type !== "space" && K.type !== "newline" && K.type !== "comma" && a(K.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), E = !1), A && (y && K.type !== "comment" && K.type !== "newline" && a(A, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), A = null), K.type) {
|
|
15026
15027
|
case "space":
|
|
15027
|
-
!t && (n !== "doc-start" || i?.type !== "flow-collection") && K.source.includes(" ") && (
|
|
15028
|
+
!t && (n !== "doc-start" || i?.type !== "flow-collection") && K.source.includes(" ") && (A = K), g = !0;
|
|
15028
15029
|
break;
|
|
15029
15030
|
case "comment": {
|
|
15030
15031
|
g || a(K, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
|
|
@@ -15033,17 +15034,17 @@ function ms(e, { flow: t, indicator: n, next: i, offset: o, onError: a, parentIn
|
|
|
15033
15034
|
break;
|
|
15034
15035
|
}
|
|
15035
15036
|
case "newline":
|
|
15036
|
-
y ? d ? d += K.source : (!x || n !== "seq-item-ind") && (f = !0) : v += K.source, y = !0, O = !0, (w ||
|
|
15037
|
+
y ? d ? d += K.source : (!x || n !== "seq-item-ind") && (f = !0) : v += K.source, y = !0, O = !0, (w || R) && (L = K), g = !0;
|
|
15037
15038
|
break;
|
|
15038
15039
|
case "anchor":
|
|
15039
|
-
w && a(K, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), K.source.endsWith(":") && a(K.offset + K.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), w = K, I === null && (I = K.offset), y = !1, g = !1,
|
|
15040
|
+
w && a(K, "MULTIPLE_ANCHORS", "A node can have at most one anchor"), K.source.endsWith(":") && a(K.offset + K.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", !0), w = K, I === null && (I = K.offset), y = !1, g = !1, E = !0;
|
|
15040
15041
|
break;
|
|
15041
15042
|
case "tag": {
|
|
15042
|
-
|
|
15043
|
+
R && a(K, "MULTIPLE_TAGS", "A node can have at most one tag"), R = K, I === null && (I = K.offset), y = !1, g = !1, E = !0;
|
|
15043
15044
|
break;
|
|
15044
15045
|
}
|
|
15045
15046
|
case n:
|
|
15046
|
-
(w ||
|
|
15047
|
+
(w || R) && a(K, "BAD_PROP_ORDER", `Anchors and tags must be after the ${K.source} indicator`), x && a(K, "UNEXPECTED_TOKEN", `Unexpected ${K.source} in ${t ?? "collection"}`), x = K, y = n === "seq-item-ind" || n === "explicit-key-ind", g = !1;
|
|
15047
15048
|
break;
|
|
15048
15049
|
case "comma":
|
|
15049
15050
|
if (t) {
|
|
@@ -15054,14 +15055,14 @@ function ms(e, { flow: t, indicator: n, next: i, offset: o, onError: a, parentIn
|
|
|
15054
15055
|
a(K, "UNEXPECTED_TOKEN", `Unexpected ${K.type} token`), y = !1, g = !1;
|
|
15055
15056
|
}
|
|
15056
15057
|
const T = e[e.length - 1], D = T ? T.offset + T.source.length : o;
|
|
15057
|
-
return
|
|
15058
|
+
return E && i && i.type !== "space" && i.type !== "newline" && i.type !== "comma" && (i.type !== "scalar" || i.source !== "") && a(i.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space"), A && (y && A.indent <= u || i?.type === "block-map" || i?.type === "block-seq") && a(A, "TAB_AS_INDENT", "Tabs are not allowed as indentation"), {
|
|
15058
15059
|
comma: k,
|
|
15059
15060
|
found: x,
|
|
15060
15061
|
spaceBefore: f,
|
|
15061
15062
|
comment: d,
|
|
15062
15063
|
hasNewline: O,
|
|
15063
15064
|
anchor: w,
|
|
15064
|
-
tag:
|
|
15065
|
+
tag: R,
|
|
15065
15066
|
newlineAfterProp: L,
|
|
15066
15067
|
end: D,
|
|
15067
15068
|
start: I ?? D
|
|
@@ -15121,37 +15122,37 @@ function IC({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
|
15121
15122
|
n.atRoot && (n.atRoot = !1);
|
|
15122
15123
|
let f = i.offset, y = null;
|
|
15123
15124
|
for (const g of i.items) {
|
|
15124
|
-
const { start: d, key: v, sep: O, value:
|
|
15125
|
+
const { start: d, key: v, sep: O, value: E } = g, A = ms(d, {
|
|
15125
15126
|
indicator: "explicit-key-ind",
|
|
15126
15127
|
next: v ?? O?.[0],
|
|
15127
15128
|
offset: f,
|
|
15128
15129
|
onError: o,
|
|
15129
15130
|
parentIndent: i.indent,
|
|
15130
15131
|
startOnNewline: !0
|
|
15131
|
-
}), w = !
|
|
15132
|
+
}), w = !A.found;
|
|
15132
15133
|
if (w) {
|
|
15133
|
-
if (v && (v.type === "block-seq" ? o(f, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in v && v.indent !== i.indent && o(f, "BAD_INDENT", ld)), !
|
|
15134
|
-
y =
|
|
15135
|
-
` +
|
|
15134
|
+
if (v && (v.type === "block-seq" ? o(f, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key") : "indent" in v && v.indent !== i.indent && o(f, "BAD_INDENT", ld)), !A.anchor && !A.tag && !O) {
|
|
15135
|
+
y = A.end, A.comment && (l.comment ? l.comment += `
|
|
15136
|
+
` + A.comment : l.comment = A.comment);
|
|
15136
15137
|
continue;
|
|
15137
15138
|
}
|
|
15138
|
-
(
|
|
15139
|
-
} else
|
|
15139
|
+
(A.newlineAfterProp || bo(v)) && o(v ?? d[d.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
15140
|
+
} else A.found?.indent !== i.indent && o(f, "BAD_INDENT", ld);
|
|
15140
15141
|
n.atKey = !0;
|
|
15141
|
-
const
|
|
15142
|
-
n.schema.compat && bl(i.indent, v, o), n.atKey = !1, fy(n, l.items, L) && o(
|
|
15142
|
+
const R = A.end, L = v ? e(n, v, A, o) : t(n, R, d, null, A, o);
|
|
15143
|
+
n.schema.compat && bl(i.indent, v, o), n.atKey = !1, fy(n, l.items, L) && o(R, "DUPLICATE_KEY", "Map keys must be unique");
|
|
15143
15144
|
const k = ms(O ?? [], {
|
|
15144
15145
|
indicator: "map-value-ind",
|
|
15145
|
-
next:
|
|
15146
|
+
next: E,
|
|
15146
15147
|
offset: L.range[2],
|
|
15147
15148
|
onError: o,
|
|
15148
15149
|
parentIndent: i.indent,
|
|
15149
15150
|
startOnNewline: !v || v.type === "block-scalar"
|
|
15150
15151
|
});
|
|
15151
15152
|
if (f = k.end, k.found) {
|
|
15152
|
-
w && (
|
|
15153
|
-
const x =
|
|
15154
|
-
n.schema.compat && bl(i.indent,
|
|
15153
|
+
w && (E?.type === "block-map" && !k.hasNewline && o(f, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), n.options.strict && A.start < k.found.offset - 1024 && o(L.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
15154
|
+
const x = E ? e(n, E, k, o) : t(n, f, O, null, k, o);
|
|
15155
|
+
n.schema.compat && bl(i.indent, E, o), f = x.range[2];
|
|
15155
15156
|
const I = new bn(L, x);
|
|
15156
15157
|
n.options.keepSourceTokens && (I.srcToken = g), l.items.push(I);
|
|
15157
15158
|
} else {
|
|
@@ -15223,7 +15224,7 @@ function BC({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
|
15223
15224
|
g && (n.atRoot = !1), n.atKey && (n.atKey = !1);
|
|
15224
15225
|
let d = i.offset + i.start.source.length;
|
|
15225
15226
|
for (let w = 0; w < i.items.length; ++w) {
|
|
15226
|
-
const
|
|
15227
|
+
const R = i.items[w], { start: L, key: k, sep: x, value: I } = R, T = ms(L, {
|
|
15227
15228
|
flow: l,
|
|
15228
15229
|
indicator: "explicit-key-ind",
|
|
15229
15230
|
next: k ?? x?.[0],
|
|
@@ -15300,7 +15301,7 @@ function BC({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
|
15300
15301
|
ae ? zc(I) && o(ae.range, "BLOCK_IN_FLOW", Hc) : re.comment && (K.comment ? K.comment += `
|
|
15301
15302
|
` + re.comment : K.comment = re.comment);
|
|
15302
15303
|
const ue = new bn(K, ae);
|
|
15303
|
-
if (n.options.keepSourceTokens && (ue.srcToken =
|
|
15304
|
+
if (n.options.keepSourceTokens && (ue.srcToken = R), u) {
|
|
15304
15305
|
const pe = y;
|
|
15305
15306
|
fy(n, pe.items, K) && o(D, "DUPLICATE_KEY", "Map keys must be unique"), pe.items.push(ue);
|
|
15306
15307
|
} else {
|
|
@@ -15312,20 +15313,20 @@ function BC({ composeNode: e, composeEmptyNode: t }, n, i, o, a) {
|
|
|
15312
15313
|
d = ae ? ae.range[2] : re.end;
|
|
15313
15314
|
}
|
|
15314
15315
|
}
|
|
15315
|
-
const v = u ? "}" : "]", [O, ...
|
|
15316
|
-
let
|
|
15316
|
+
const v = u ? "}" : "]", [O, ...E] = i.end;
|
|
15317
|
+
let A = d;
|
|
15317
15318
|
if (O && O.source === v)
|
|
15318
|
-
|
|
15319
|
+
A = O.offset + O.source.length;
|
|
15319
15320
|
else {
|
|
15320
|
-
const w = l[0].toUpperCase() + l.substring(1),
|
|
15321
|
-
o(d, g ? "MISSING_CHAR" : "BAD_INDENT",
|
|
15321
|
+
const w = l[0].toUpperCase() + l.substring(1), R = g ? `${w} must end with a ${v}` : `${w} in block collection must be sufficiently indented and end with a ${v}`;
|
|
15322
|
+
o(d, g ? "MISSING_CHAR" : "BAD_INDENT", R), O && O.source.length !== 1 && E.unshift(O);
|
|
15322
15323
|
}
|
|
15323
|
-
if (
|
|
15324
|
-
const w = ko(
|
|
15324
|
+
if (E.length > 0) {
|
|
15325
|
+
const w = ko(E, A, n.options.strict, o);
|
|
15325
15326
|
w.comment && (y.comment ? y.comment += `
|
|
15326
|
-
` + w.comment : y.comment = w.comment), y.range = [i.offset,
|
|
15327
|
+
` + w.comment : y.comment = w.comment), y.range = [i.offset, A, w.offset];
|
|
15327
15328
|
} else
|
|
15328
|
-
y.range = [i.offset,
|
|
15329
|
+
y.range = [i.offset, A, A];
|
|
15329
15330
|
return y;
|
|
15330
15331
|
}
|
|
15331
15332
|
function Gc(e, t, n, i, o, a) {
|
|
@@ -15335,8 +15336,8 @@ function Gc(e, t, n, i, o, a) {
|
|
|
15335
15336
|
function DC(e, t, n, i, o) {
|
|
15336
15337
|
const a = i.tag, u = a ? t.directives.tagName(a.source, (v) => o(a, "TAG_RESOLVE_FAILED", v)) : null;
|
|
15337
15338
|
if (n.type === "block-seq") {
|
|
15338
|
-
const { anchor: v, newlineAfterProp: O } = i,
|
|
15339
|
-
|
|
15339
|
+
const { anchor: v, newlineAfterProp: O } = i, E = v && a ? v.offset > a.offset ? v : a : v ?? a;
|
|
15340
|
+
E && (!O || O.offset < E.offset) && o(E, "MISSING_CHAR", "Missing newline after block sequence props");
|
|
15340
15341
|
}
|
|
15341
15342
|
const l = n.type === "block-map" ? "map" : n.type === "block-seq" ? "seq" : n.start.source === "{" ? "map" : "seq";
|
|
15342
15343
|
if (!a || !u || u === "!" || u === Kn.tagName && l === "map" || u === Fi.tagName && l === "seq")
|
|
@@ -15358,62 +15359,62 @@ function RC(e, t, n) {
|
|
|
15358
15359
|
return { value: "", type: null, comment: "", range: [i, i, i] };
|
|
15359
15360
|
const a = o.mode === ">" ? je.BLOCK_FOLDED : je.BLOCK_LITERAL, u = t.source ? NC(t.source) : [];
|
|
15360
15361
|
let l = u.length;
|
|
15361
|
-
for (let
|
|
15362
|
-
const w = u[
|
|
15362
|
+
for (let A = u.length - 1; A >= 0; --A) {
|
|
15363
|
+
const w = u[A][1];
|
|
15363
15364
|
if (w === "" || w === "\r")
|
|
15364
|
-
l =
|
|
15365
|
+
l = A;
|
|
15365
15366
|
else
|
|
15366
15367
|
break;
|
|
15367
15368
|
}
|
|
15368
15369
|
if (l === 0) {
|
|
15369
|
-
const
|
|
15370
|
+
const A = o.chomp === "+" && u.length > 0 ? `
|
|
15370
15371
|
`.repeat(Math.max(1, u.length - 1)) : "";
|
|
15371
15372
|
let w = i + o.length;
|
|
15372
|
-
return t.source && (w += t.source.length), { value:
|
|
15373
|
+
return t.source && (w += t.source.length), { value: A, type: a, comment: o.comment, range: [i, w, w] };
|
|
15373
15374
|
}
|
|
15374
15375
|
let f = t.indent + o.indent, y = t.offset + o.length, g = 0;
|
|
15375
|
-
for (let
|
|
15376
|
-
const [w,
|
|
15377
|
-
if (
|
|
15376
|
+
for (let A = 0; A < l; ++A) {
|
|
15377
|
+
const [w, R] = u[A];
|
|
15378
|
+
if (R === "" || R === "\r")
|
|
15378
15379
|
o.indent === 0 && w.length > f && (f = w.length);
|
|
15379
15380
|
else {
|
|
15380
|
-
w.length < f && n(y + w.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), o.indent === 0 && (f = w.length), g =
|
|
15381
|
+
w.length < f && n(y + w.length, "MISSING_CHAR", "Block scalars with more-indented leading empty lines must use an explicit indentation indicator"), o.indent === 0 && (f = w.length), g = A, f === 0 && !e.atRoot && n(y, "BAD_INDENT", "Block scalar values in collections must be indented");
|
|
15381
15382
|
break;
|
|
15382
15383
|
}
|
|
15383
|
-
y += w.length +
|
|
15384
|
+
y += w.length + R.length + 1;
|
|
15384
15385
|
}
|
|
15385
|
-
for (let
|
|
15386
|
-
u[
|
|
15386
|
+
for (let A = u.length - 1; A >= l; --A)
|
|
15387
|
+
u[A][0].length > f && (l = A + 1);
|
|
15387
15388
|
let d = "", v = "", O = !1;
|
|
15388
|
-
for (let
|
|
15389
|
-
d += u[
|
|
15389
|
+
for (let A = 0; A < g; ++A)
|
|
15390
|
+
d += u[A][0].slice(f) + `
|
|
15390
15391
|
`;
|
|
15391
|
-
for (let
|
|
15392
|
-
let [w,
|
|
15393
|
-
y += w.length +
|
|
15394
|
-
const L =
|
|
15395
|
-
if (L && (
|
|
15392
|
+
for (let A = g; A < l; ++A) {
|
|
15393
|
+
let [w, R] = u[A];
|
|
15394
|
+
y += w.length + R.length + 1;
|
|
15395
|
+
const L = R[R.length - 1] === "\r";
|
|
15396
|
+
if (L && (R = R.slice(0, -1)), R && w.length < f) {
|
|
15396
15397
|
const x = `Block scalar lines must not be less indented than their ${o.indent ? "explicit indentation indicator" : "first line"}`;
|
|
15397
|
-
n(y -
|
|
15398
|
+
n(y - R.length - (L ? 2 : 1), "BAD_INDENT", x), w = "";
|
|
15398
15399
|
}
|
|
15399
|
-
a === je.BLOCK_LITERAL ? (d += v + w.slice(f) +
|
|
15400
|
-
`) : w.length > f ||
|
|
15400
|
+
a === je.BLOCK_LITERAL ? (d += v + w.slice(f) + R, v = `
|
|
15401
|
+
`) : w.length > f || R[0] === " " ? (v === " " ? v = `
|
|
15401
15402
|
` : !O && v === `
|
|
15402
15403
|
` && (v = `
|
|
15403
15404
|
|
|
15404
|
-
`), d += v + w.slice(f) +
|
|
15405
|
-
`, O = !0) :
|
|
15405
|
+
`), d += v + w.slice(f) + R, v = `
|
|
15406
|
+
`, O = !0) : R === "" ? v === `
|
|
15406
15407
|
` ? d += `
|
|
15407
15408
|
` : v = `
|
|
15408
|
-
` : (d += v +
|
|
15409
|
+
` : (d += v + R, v = " ", O = !1);
|
|
15409
15410
|
}
|
|
15410
15411
|
switch (o.chomp) {
|
|
15411
15412
|
case "-":
|
|
15412
15413
|
break;
|
|
15413
15414
|
case "+":
|
|
15414
|
-
for (let
|
|
15415
|
+
for (let A = l; A < u.length; ++A)
|
|
15415
15416
|
d += `
|
|
15416
|
-
` + u[
|
|
15417
|
+
` + u[A][0].slice(f);
|
|
15417
15418
|
d[d.length - 1] !== `
|
|
15418
15419
|
` && (d += `
|
|
15419
15420
|
`);
|
|
@@ -15422,8 +15423,8 @@ function RC(e, t, n) {
|
|
|
15422
15423
|
d += `
|
|
15423
15424
|
`;
|
|
15424
15425
|
}
|
|
15425
|
-
const
|
|
15426
|
-
return { value: d, type: a, comment: o.comment, range: [i,
|
|
15426
|
+
const E = i + o.length + t.source.length;
|
|
15427
|
+
return { value: d, type: a, comment: o.comment, range: [i, E, E] };
|
|
15427
15428
|
}
|
|
15428
15429
|
function PC({ offset: e, props: t }, n, i) {
|
|
15429
15430
|
if (t[0].type !== "block-scalar-header")
|
|
@@ -15435,8 +15436,8 @@ function PC({ offset: e, props: t }, n, i) {
|
|
|
15435
15436
|
if (!l && (O === "-" || O === "+"))
|
|
15436
15437
|
l = O;
|
|
15437
15438
|
else {
|
|
15438
|
-
const
|
|
15439
|
-
!u &&
|
|
15439
|
+
const E = Number(O);
|
|
15440
|
+
!u && E ? u = E : f === -1 && (f = e + v);
|
|
15440
15441
|
}
|
|
15441
15442
|
}
|
|
15442
15443
|
f !== -1 && i(f, "UNEXPECTED_TOKEN", `Block scalar header includes extra characters: ${o}`);
|
|
@@ -15456,10 +15457,10 @@ function PC({ offset: e, props: t }, n, i) {
|
|
|
15456
15457
|
i(O, "UNEXPECTED_TOKEN", O.message), d += O.source.length;
|
|
15457
15458
|
break;
|
|
15458
15459
|
default: {
|
|
15459
|
-
const
|
|
15460
|
-
i(O, "UNEXPECTED_TOKEN",
|
|
15461
|
-
const
|
|
15462
|
-
|
|
15460
|
+
const E = `Unexpected token in block scalar header: ${O.type}`;
|
|
15461
|
+
i(O, "UNEXPECTED_TOKEN", E);
|
|
15462
|
+
const A = O.source;
|
|
15463
|
+
A && typeof A == "string" && (d += A.length);
|
|
15463
15464
|
}
|
|
15464
15465
|
}
|
|
15465
15466
|
}
|
|
@@ -15474,7 +15475,7 @@ function NC(e) {
|
|
|
15474
15475
|
function LC(e, t, n) {
|
|
15475
15476
|
const { offset: i, type: o, source: a, end: u } = e;
|
|
15476
15477
|
let l, f;
|
|
15477
|
-
const y = (v, O,
|
|
15478
|
+
const y = (v, O, E) => n(i + v, O, E);
|
|
15478
15479
|
switch (o) {
|
|
15479
15480
|
case "scalar":
|
|
15480
15481
|
l = je.PLAIN, f = $C(a, y);
|
|
@@ -17131,25 +17132,25 @@ const sk = kt.div`
|
|
|
17131
17132
|
typeName: l,
|
|
17132
17133
|
backlink: f
|
|
17133
17134
|
}) => {
|
|
17134
|
-
const y = xl(), [g, d] = ht(""), [v, O] = ht(!1), [
|
|
17135
|
+
const y = xl(), [g, d] = ht(""), [v, O] = ht(!1), [E, A] = ht();
|
|
17135
17136
|
Kt(() => {
|
|
17136
17137
|
d(vy(n));
|
|
17137
17138
|
}, [n]);
|
|
17138
17139
|
const w = () => {
|
|
17139
|
-
O(!0),
|
|
17140
|
-
const
|
|
17140
|
+
O(!0), A(void 0);
|
|
17141
|
+
const R = wy(g), { namespace: L } = R.metadata, { name: k } = R.metadata, x = R, I = `/api/clusters/${t}/k8s/${a === "builtin" ? "api" : "apis"}/${u}${i ? `/namespaces/${L}` : ""}/${l}/${o ? "" : k}`;
|
|
17141
17142
|
o ? vg({ endpoint: I, body: x }).then((T) => {
|
|
17142
17143
|
console.log(T), f && y(f);
|
|
17143
17144
|
}).catch((T) => {
|
|
17144
|
-
console.log("Form submit error", T), O(!1),
|
|
17145
|
+
console.log("Form submit error", T), O(!1), A(T);
|
|
17145
17146
|
}) : Ag({ endpoint: I, body: x }).then((T) => {
|
|
17146
17147
|
console.log(T), f && y(f);
|
|
17147
17148
|
}).catch((T) => {
|
|
17148
|
-
console.log("Form submit error", T), O(!1),
|
|
17149
|
+
console.log("Form submit error", T), O(!1), A(T);
|
|
17149
17150
|
});
|
|
17150
17151
|
};
|
|
17151
17152
|
return /* @__PURE__ */ $.jsxs($.Fragment, { children: [
|
|
17152
|
-
|
|
17153
|
+
E && /* @__PURE__ */ $.jsx(Br, { message: `An error has occurred: ${E?.response?.data?.message} `, type: "error" }),
|
|
17153
17154
|
/* @__PURE__ */ $.jsx(ck.BorderRadiusContainer, { children: /* @__PURE__ */ $.jsx(
|
|
17154
17155
|
Nl,
|
|
17155
17156
|
{
|
|
@@ -17157,8 +17158,8 @@ const sk = kt.div`
|
|
|
17157
17158
|
width: "100%",
|
|
17158
17159
|
height: "75vh",
|
|
17159
17160
|
value: g,
|
|
17160
|
-
onChange: (
|
|
17161
|
-
d(
|
|
17161
|
+
onChange: (R) => {
|
|
17162
|
+
d(R || "");
|
|
17162
17163
|
},
|
|
17163
17164
|
theme: e === "dark" || e === void 0 ? "vs-dark" : "vs",
|
|
17164
17165
|
options: {
|
|
@@ -17192,9 +17193,9 @@ const sk = kt.div`
|
|
|
17192
17193
|
customProps: d,
|
|
17193
17194
|
urlParams: v
|
|
17194
17195
|
}) => {
|
|
17195
|
-
const { clusterName: O, namespace:
|
|
17196
|
+
const { clusterName: O, namespace: E, syntheticProject: A, entryName: w } = v, R = Pr.useFormInstance(), L = Pr.useWatch(e === "nodeName" ? "nodeNameBecauseOfSuddenBug" : e, R), k = Yt({
|
|
17196
17197
|
template: d.valueUri,
|
|
17197
|
-
replaceValues: { clusterName: O, namespace:
|
|
17198
|
+
replaceValues: { clusterName: O, namespace: E, syntheticProject: A, entryName: w }
|
|
17198
17199
|
}), {
|
|
17199
17200
|
data: x,
|
|
17200
17201
|
isError: I,
|
|
@@ -17281,68 +17282,68 @@ const sk = kt.div`
|
|
|
17281
17282
|
}) => {
|
|
17282
17283
|
let v = 0, O = 0;
|
|
17283
17284
|
if (e.min.type === "resourceValue" && typeof t == "object" && t !== null) {
|
|
17284
|
-
const
|
|
17285
|
+
const E = pr({
|
|
17285
17286
|
valueObj: t,
|
|
17286
17287
|
keysToValue: e.min.keysToValue,
|
|
17287
17288
|
logic: d
|
|
17288
17289
|
});
|
|
17289
|
-
v = gd({ value:
|
|
17290
|
+
v = gd({ value: E });
|
|
17290
17291
|
}
|
|
17291
17292
|
if (e.min.type === "substractResourceValues" && typeof n == "object" && n !== null && typeof i == "object" && i !== null) {
|
|
17292
|
-
const
|
|
17293
|
+
const E = pr({
|
|
17293
17294
|
valueObj: n,
|
|
17294
17295
|
keysToValue: e.min.firstValuesKeysToValue,
|
|
17295
17296
|
logic: d
|
|
17296
|
-
}),
|
|
17297
|
+
}), A = pr({
|
|
17297
17298
|
valueObj: i,
|
|
17298
17299
|
keysToValue: e.min.secondValuesKeysToValue,
|
|
17299
17300
|
logic: d
|
|
17300
17301
|
});
|
|
17301
|
-
v = yd({ valueFirst:
|
|
17302
|
+
v = yd({ valueFirst: E, valueSecond: A });
|
|
17302
17303
|
}
|
|
17303
17304
|
if (e.min.type === "addResourceValues" && typeof o == "object" && o !== null && typeof a == "object" && a !== null) {
|
|
17304
|
-
const
|
|
17305
|
+
const E = pr({
|
|
17305
17306
|
valueObj: o,
|
|
17306
17307
|
keysToValue: e.min.firstValuesKeysToValue,
|
|
17307
17308
|
logic: d
|
|
17308
|
-
}),
|
|
17309
|
+
}), A = pr({
|
|
17309
17310
|
valueObj: a,
|
|
17310
17311
|
keysToValue: e.min.secondValuesKeysToValue,
|
|
17311
17312
|
logic: d
|
|
17312
17313
|
});
|
|
17313
|
-
v = md({ valueFirst:
|
|
17314
|
+
v = md({ valueFirst: E, valueSecond: A });
|
|
17314
17315
|
}
|
|
17315
17316
|
if (e.min.type === "number" && (v = e.min.value), e.max.type === "resourceValue" && typeof u == "object" && u !== null) {
|
|
17316
|
-
const
|
|
17317
|
+
const E = pr({
|
|
17317
17318
|
valueObj: u,
|
|
17318
17319
|
keysToValue: e.max.keysToValue,
|
|
17319
17320
|
logic: d
|
|
17320
17321
|
});
|
|
17321
|
-
O = gd({ value:
|
|
17322
|
+
O = gd({ value: E });
|
|
17322
17323
|
}
|
|
17323
17324
|
if (e.max.type === "substractResourceValues" && typeof l == "object" && l !== null && typeof f == "object" && f !== null) {
|
|
17324
|
-
const
|
|
17325
|
+
const E = pr({
|
|
17325
17326
|
valueObj: l,
|
|
17326
17327
|
keysToValue: e.max.firstValuesKeysToValue,
|
|
17327
17328
|
logic: d
|
|
17328
|
-
}),
|
|
17329
|
+
}), A = pr({
|
|
17329
17330
|
valueObj: f,
|
|
17330
17331
|
keysToValue: e.max.secondValuesKeysToValue,
|
|
17331
17332
|
logic: d
|
|
17332
17333
|
});
|
|
17333
|
-
O = yd({ valueFirst:
|
|
17334
|
+
O = yd({ valueFirst: E, valueSecond: A });
|
|
17334
17335
|
}
|
|
17335
17336
|
if (e.max.type === "addResourceValues" && typeof y == "object" && y !== null && typeof g == "object" && g !== null) {
|
|
17336
|
-
const
|
|
17337
|
+
const E = pr({
|
|
17337
17338
|
valueObj: y,
|
|
17338
17339
|
keysToValue: e.max.firstValuesKeysToValue,
|
|
17339
17340
|
logic: d
|
|
17340
|
-
}),
|
|
17341
|
+
}), A = pr({
|
|
17341
17342
|
valueObj: g,
|
|
17342
17343
|
keysToValue: e.max.secondValuesKeysToValue,
|
|
17343
17344
|
logic: d
|
|
17344
17345
|
});
|
|
17345
|
-
O = md({ valueFirst:
|
|
17346
|
+
O = md({ valueFirst: E, valueSecond: A });
|
|
17346
17347
|
}
|
|
17347
17348
|
return e.max.type === "number" && (O = e.max.value), {
|
|
17348
17349
|
minValue: v,
|
|
@@ -17364,10 +17365,10 @@ const sk = kt.div`
|
|
|
17364
17365
|
step: v = 1,
|
|
17365
17366
|
...O
|
|
17366
17367
|
}) => {
|
|
17367
|
-
const [
|
|
17368
|
+
const [E, A] = ht(y || d);
|
|
17368
17369
|
return Kt(() => {
|
|
17369
|
-
(Number.isNaN(
|
|
17370
|
-
}, [
|
|
17370
|
+
(Number.isNaN(E) || E < d) && A(d), E > g && A(g), A(E);
|
|
17371
|
+
}, [E, d, g]), /* @__PURE__ */ $.jsxs(Xn, { $isHidden: u, children: [
|
|
17371
17372
|
/* @__PURE__ */ $.jsxs(Mt.Text, { children: [
|
|
17372
17373
|
Dt(e),
|
|
17373
17374
|
o?.includes(Dt(e)) && /* @__PURE__ */ $.jsx(Mt.Text, { type: "danger", children: "*" }),
|
|
@@ -17402,7 +17403,7 @@ const sk = kt.div`
|
|
|
17402
17403
|
rules: [{ required: a === !1 && o?.includes(Dt(e)) }],
|
|
17403
17404
|
validateTrigger: "onBlur",
|
|
17404
17405
|
hasFeedback: !0,
|
|
17405
|
-
children: /* @__PURE__ */ $.jsx(xd, { min: d, max: g, step: v, value:
|
|
17406
|
+
children: /* @__PURE__ */ $.jsx(xd, { min: d, max: g, step: v, value: E, disabled: O.disabled })
|
|
17406
17407
|
},
|
|
17407
17408
|
t !== void 0 ? t : Array.isArray(e) ? e.slice(-1)[0] : e
|
|
17408
17409
|
) })
|
|
@@ -17422,45 +17423,45 @@ const sk = kt.div`
|
|
|
17422
17423
|
customProps: g,
|
|
17423
17424
|
urlParams: d
|
|
17424
17425
|
}) => {
|
|
17425
|
-
const { clusterName: v, namespace: O, syntheticProject:
|
|
17426
|
+
const { clusterName: v, namespace: O, syntheticProject: E, entryName: A } = d, w = f ? g.edit : g.add, R = w.min.type === "resourceValue" ? Yt({
|
|
17426
17427
|
template: w.min.valueUri,
|
|
17427
|
-
replaceValues: { clusterName: v, namespace: O, syntheticProject:
|
|
17428
|
+
replaceValues: { clusterName: v, namespace: O, syntheticProject: E, entryName: A }
|
|
17428
17429
|
}) : void 0, L = w.min.type === "substractResourceValues" ? Yt({
|
|
17429
17430
|
template: w.min.firstValueUri,
|
|
17430
|
-
replaceValues: { clusterName: v, namespace: O, syntheticProject:
|
|
17431
|
+
replaceValues: { clusterName: v, namespace: O, syntheticProject: E, entryName: A }
|
|
17431
17432
|
}) : void 0, k = w.min.type === "substractResourceValues" ? Yt({
|
|
17432
17433
|
template: w.min.secondValueUri,
|
|
17433
|
-
replaceValues: { clusterName: v, namespace: O, syntheticProject:
|
|
17434
|
+
replaceValues: { clusterName: v, namespace: O, syntheticProject: E, entryName: A }
|
|
17434
17435
|
}) : void 0, x = w.min.type === "addResourceValues" ? Yt({
|
|
17435
17436
|
template: w.min.firstValueUri,
|
|
17436
|
-
replaceValues: { clusterName: v, namespace: O, syntheticProject:
|
|
17437
|
+
replaceValues: { clusterName: v, namespace: O, syntheticProject: E, entryName: A }
|
|
17437
17438
|
}) : void 0, I = w.min.type === "addResourceValues" ? Yt({
|
|
17438
17439
|
template: w.min.secondValueUri,
|
|
17439
|
-
replaceValues: { clusterName: v, namespace: O, syntheticProject:
|
|
17440
|
+
replaceValues: { clusterName: v, namespace: O, syntheticProject: E, entryName: A }
|
|
17440
17441
|
}) : void 0, T = w.max.type === "resourceValue" ? Yt({
|
|
17441
17442
|
template: w.max.valueUri,
|
|
17442
|
-
replaceValues: { clusterName: v, namespace: O, syntheticProject:
|
|
17443
|
+
replaceValues: { clusterName: v, namespace: O, syntheticProject: E, entryName: A }
|
|
17443
17444
|
}) : void 0, D = w.max.type === "substractResourceValues" ? Yt({
|
|
17444
17445
|
template: w.max.firstValueUri,
|
|
17445
|
-
replaceValues: { clusterName: v, namespace: O, syntheticProject:
|
|
17446
|
+
replaceValues: { clusterName: v, namespace: O, syntheticProject: E, entryName: A }
|
|
17446
17447
|
}) : void 0, K = w.max.type === "substractResourceValues" ? Yt({
|
|
17447
17448
|
template: w.max.secondValueUri,
|
|
17448
|
-
replaceValues: { clusterName: v, namespace: O, syntheticProject:
|
|
17449
|
+
replaceValues: { clusterName: v, namespace: O, syntheticProject: E, entryName: A }
|
|
17449
17450
|
}) : void 0, re = w.max.type === "addResourceValues" ? Yt({
|
|
17450
17451
|
template: w.max.firstValueUri,
|
|
17451
|
-
replaceValues: { clusterName: v, namespace: O, syntheticProject:
|
|
17452
|
+
replaceValues: { clusterName: v, namespace: O, syntheticProject: E, entryName: A }
|
|
17452
17453
|
}) : void 0, ae = w.max.type === "addResourceValues" ? Yt({
|
|
17453
17454
|
template: w.max.secondValueUri,
|
|
17454
|
-
replaceValues: { clusterName: v, namespace: O, syntheticProject:
|
|
17455
|
+
replaceValues: { clusterName: v, namespace: O, syntheticProject: E, entryName: A }
|
|
17455
17456
|
}) : void 0, {
|
|
17456
17457
|
data: ue,
|
|
17457
17458
|
isError: pe,
|
|
17458
17459
|
isLoading: ye
|
|
17459
17460
|
} = Dn({
|
|
17460
|
-
uri:
|
|
17461
|
+
uri: R || "",
|
|
17461
17462
|
refetchInterval: !1,
|
|
17462
|
-
queryKey: [
|
|
17463
|
-
isEnabled: !!
|
|
17463
|
+
queryKey: [R || "", JSON.stringify(e)],
|
|
17464
|
+
isEnabled: !!R
|
|
17464
17465
|
}), {
|
|
17465
17466
|
data: he,
|
|
17466
17467
|
isError: ce,
|
|
@@ -17981,10 +17982,10 @@ const sk = kt.div`
|
|
|
17981
17982
|
addField: d,
|
|
17982
17983
|
isAdditionalProperties: v,
|
|
17983
17984
|
removeField: O,
|
|
17984
|
-
isEdit:
|
|
17985
|
-
expandedControls:
|
|
17985
|
+
isEdit: E,
|
|
17986
|
+
expandedControls: A,
|
|
17986
17987
|
persistedControls: w,
|
|
17987
|
-
urlParams:
|
|
17988
|
+
urlParams: R
|
|
17988
17989
|
}) => e.type === "array" ? /* @__PURE__ */ $.jsxs(Xn, { $isHidden: f, children: [
|
|
17989
17990
|
/* @__PURE__ */ $.jsxs(Mt.Text, { children: [
|
|
17990
17991
|
Dt(t),
|
|
@@ -18042,10 +18043,10 @@ const sk = kt.div`
|
|
|
18042
18043
|
arrName: [T.name],
|
|
18043
18044
|
persistName: a ? Array.isArray(a) ? [...a, T.name] : [a, T.name] : Array.isArray(t) ? [...t, T.name] : [t, T.name],
|
|
18044
18045
|
description: K,
|
|
18045
|
-
isEdit:
|
|
18046
|
+
isEdit: E,
|
|
18046
18047
|
persistedControls: w,
|
|
18047
18048
|
customProps: e.items.customProps,
|
|
18048
|
-
urlParams:
|
|
18049
|
+
urlParams: R
|
|
18049
18050
|
}),
|
|
18050
18051
|
D === "listInput" && xy({
|
|
18051
18052
|
name: Array.isArray(t) ? [...t, T.name] : [t, T.name],
|
|
@@ -18057,7 +18058,7 @@ const sk = kt.div`
|
|
|
18057
18058
|
removeField: O,
|
|
18058
18059
|
persistedControls: w,
|
|
18059
18060
|
customProps: e.items.customProps,
|
|
18060
|
-
urlParams:
|
|
18061
|
+
urlParams: R
|
|
18061
18062
|
}),
|
|
18062
18063
|
D === "boolean" && _y({
|
|
18063
18064
|
name: Array.isArray(t) ? [...t, T.name] : [t, T.name],
|
|
@@ -18079,10 +18080,10 @@ const sk = kt.div`
|
|
|
18079
18080
|
makeValueUndefined: g,
|
|
18080
18081
|
addField: d,
|
|
18081
18082
|
removeField: O,
|
|
18082
|
-
isEdit:
|
|
18083
|
-
expandedControls:
|
|
18083
|
+
isEdit: E,
|
|
18084
|
+
expandedControls: A,
|
|
18084
18085
|
persistedControls: w,
|
|
18085
|
-
urlParams:
|
|
18086
|
+
urlParams: R
|
|
18086
18087
|
})
|
|
18087
18088
|
] }),
|
|
18088
18089
|
D === "object" && re?.properties && ky({
|
|
@@ -18099,10 +18100,10 @@ const sk = kt.div`
|
|
|
18099
18100
|
addField: d,
|
|
18100
18101
|
isAdditionalProperties: v,
|
|
18101
18102
|
removeField: O,
|
|
18102
|
-
isEdit:
|
|
18103
|
-
expandedControls:
|
|
18103
|
+
isEdit: E,
|
|
18104
|
+
expandedControls: A,
|
|
18104
18105
|
persistedControls: w,
|
|
18105
|
-
urlParams:
|
|
18106
|
+
urlParams: R
|
|
18106
18107
|
})
|
|
18107
18108
|
] }),
|
|
18108
18109
|
/* @__PURE__ */ $.jsx(uo.MinusContainer, { children: /* @__PURE__ */ $.jsx(JA, { size: 14, onClick: () => x(T.name) }) })
|
|
@@ -18131,10 +18132,10 @@ const sk = kt.div`
|
|
|
18131
18132
|
namespaceData: d,
|
|
18132
18133
|
makeValueUndefined: v,
|
|
18133
18134
|
addField: O,
|
|
18134
|
-
removeField:
|
|
18135
|
-
isEdit:
|
|
18135
|
+
removeField: E,
|
|
18136
|
+
isEdit: A,
|
|
18136
18137
|
expandedControls: w,
|
|
18137
|
-
persistedControls:
|
|
18138
|
+
persistedControls: R,
|
|
18138
18139
|
urlParams: L
|
|
18139
18140
|
}) => /* @__PURE__ */ $.jsx(Xn, { $isHidden: f, children: Object.keys(e).map((k) => {
|
|
18140
18141
|
if (e[k].type === "string" && e[k].enum)
|
|
@@ -18149,8 +18150,8 @@ const sk = kt.div`
|
|
|
18149
18150
|
isHidden: dr(y, Array.isArray(t) ? [...t, String(k)] : [t, String(k)]),
|
|
18150
18151
|
description: e[k].description,
|
|
18151
18152
|
isAdditionalProperties: e[k].isAdditionalProperties,
|
|
18152
|
-
removeField:
|
|
18153
|
-
persistedControls:
|
|
18153
|
+
removeField: E,
|
|
18154
|
+
persistedControls: R,
|
|
18154
18155
|
options: e[k].enum || []
|
|
18155
18156
|
});
|
|
18156
18157
|
if (e[k].type === "string" && !e[k].enum || Object.keys(e[k]).includes("x-kubernetes-int-or-string"))
|
|
@@ -18166,8 +18167,8 @@ const sk = kt.div`
|
|
|
18166
18167
|
description: e[k].description,
|
|
18167
18168
|
namespaceData: d,
|
|
18168
18169
|
isAdditionalProperties: e[k].isAdditionalProperties,
|
|
18169
|
-
removeField:
|
|
18170
|
-
persistedControls:
|
|
18170
|
+
removeField: E,
|
|
18171
|
+
persistedControls: R
|
|
18171
18172
|
});
|
|
18172
18173
|
if (e[k].type === "number" || e[k].type === "integer")
|
|
18173
18174
|
return Ey({
|
|
@@ -18182,8 +18183,8 @@ const sk = kt.div`
|
|
|
18182
18183
|
isHidden: dr(y, Array.isArray(t) ? [...t, String(k)] : [t, String(k)]),
|
|
18183
18184
|
description: e[k].description,
|
|
18184
18185
|
isAdditionalProperties: e[k].isAdditionalProperties,
|
|
18185
|
-
removeField:
|
|
18186
|
-
persistedControls:
|
|
18186
|
+
removeField: E,
|
|
18187
|
+
persistedControls: R
|
|
18187
18188
|
});
|
|
18188
18189
|
if (e[k].type === "rangeInputCpu" || e[k].type === "rangeInputMemory")
|
|
18189
18190
|
return Sy({
|
|
@@ -18196,9 +18197,9 @@ const sk = kt.div`
|
|
|
18196
18197
|
forceNonRequired: l,
|
|
18197
18198
|
isHidden: dr(y, Array.isArray(t) ? [...t, String(k)] : [t, String(k)]),
|
|
18198
18199
|
description: e[k].description,
|
|
18199
|
-
isEdit:
|
|
18200
|
+
isEdit: A,
|
|
18200
18201
|
customProps: e[k].customProps,
|
|
18201
|
-
persistedControls:
|
|
18202
|
+
persistedControls: R,
|
|
18202
18203
|
urlParams: L
|
|
18203
18204
|
});
|
|
18204
18205
|
if (e[k].type === "listInput")
|
|
@@ -18213,8 +18214,8 @@ const sk = kt.div`
|
|
|
18213
18214
|
isHidden: dr(y, Array.isArray(t) ? [...t, String(k)] : [t, String(k)]),
|
|
18214
18215
|
description: e[k].description,
|
|
18215
18216
|
customProps: e[k].customProps,
|
|
18216
|
-
removeField:
|
|
18217
|
-
persistedControls:
|
|
18217
|
+
removeField: E,
|
|
18218
|
+
persistedControls: R,
|
|
18218
18219
|
urlParams: L
|
|
18219
18220
|
});
|
|
18220
18221
|
if (e[k].type === "boolean")
|
|
@@ -18226,7 +18227,7 @@ const sk = kt.div`
|
|
|
18226
18227
|
description: e[k].description,
|
|
18227
18228
|
makeValueUndefined: v,
|
|
18228
18229
|
isAdditionalProperties: e[k].isAdditionalProperties,
|
|
18229
|
-
removeField:
|
|
18230
|
+
removeField: E
|
|
18230
18231
|
});
|
|
18231
18232
|
if (e[k].type === "array")
|
|
18232
18233
|
return Cy({
|
|
@@ -18244,10 +18245,10 @@ const sk = kt.div`
|
|
|
18244
18245
|
makeValueUndefined: v,
|
|
18245
18246
|
addField: O,
|
|
18246
18247
|
isAdditionalProperties: e[k].isAdditionalProperties,
|
|
18247
|
-
removeField:
|
|
18248
|
-
isEdit:
|
|
18248
|
+
removeField: E,
|
|
18249
|
+
isEdit: A,
|
|
18249
18250
|
expandedControls: w,
|
|
18250
|
-
persistedControls:
|
|
18251
|
+
persistedControls: R,
|
|
18251
18252
|
urlParams: L
|
|
18252
18253
|
});
|
|
18253
18254
|
if (e[k].additionalProperties) {
|
|
@@ -18266,10 +18267,10 @@ const sk = kt.div`
|
|
|
18266
18267
|
namespaceData: d,
|
|
18267
18268
|
makeValueUndefined: v,
|
|
18268
18269
|
addField: O,
|
|
18269
|
-
removeField:
|
|
18270
|
-
isEdit:
|
|
18270
|
+
removeField: E,
|
|
18271
|
+
isEdit: A,
|
|
18271
18272
|
expandedControls: w,
|
|
18272
|
-
persistedControls:
|
|
18273
|
+
persistedControls: R,
|
|
18273
18274
|
urlParams: L
|
|
18274
18275
|
}) : void 0;
|
|
18275
18276
|
return /* @__PURE__ */ $.jsx(
|
|
@@ -18335,10 +18336,10 @@ const sk = kt.div`
|
|
|
18335
18336
|
makeValueUndefined: v,
|
|
18336
18337
|
addField: O,
|
|
18337
18338
|
isAdditionalProperties: e[k].isAdditionalProperties,
|
|
18338
|
-
removeField:
|
|
18339
|
-
isEdit:
|
|
18339
|
+
removeField: E,
|
|
18340
|
+
isEdit: A,
|
|
18340
18341
|
expandedControls: w,
|
|
18341
|
-
persistedControls:
|
|
18342
|
+
persistedControls: R,
|
|
18342
18343
|
urlParams: L
|
|
18343
18344
|
}) : e[k].type === "object" && e[k]["x-kubernetes-preserve-unknown-fields"] ? /* @__PURE__ */ $.jsx(Br, { message: "x-kubernetes-preserve-unknown-fields", banner: !0 }, String(k)) : null;
|
|
18344
18345
|
}) }), ky = ({
|
|
@@ -18356,10 +18357,10 @@ const sk = kt.div`
|
|
|
18356
18357
|
description: d,
|
|
18357
18358
|
namespaceData: v,
|
|
18358
18359
|
makeValueUndefined: O,
|
|
18359
|
-
addField:
|
|
18360
|
-
isAdditionalProperties:
|
|
18360
|
+
addField: E,
|
|
18361
|
+
isAdditionalProperties: A,
|
|
18361
18362
|
removeField: w,
|
|
18362
|
-
isEdit:
|
|
18363
|
+
isEdit: R,
|
|
18363
18364
|
expandedControls: L,
|
|
18364
18365
|
persistedControls: k,
|
|
18365
18366
|
urlParams: x
|
|
@@ -18378,9 +18379,9 @@ const sk = kt.div`
|
|
|
18378
18379
|
description: d,
|
|
18379
18380
|
namespaceData: v,
|
|
18380
18381
|
makeValueUndefined: O,
|
|
18381
|
-
addField:
|
|
18382
|
+
addField: E,
|
|
18382
18383
|
removeField: w,
|
|
18383
|
-
isEdit:
|
|
18384
|
+
isEdit: R,
|
|
18384
18385
|
expandedControls: L,
|
|
18385
18386
|
persistedControls: k,
|
|
18386
18387
|
urlParams: x
|
|
@@ -18395,7 +18396,7 @@ const sk = kt.div`
|
|
|
18395
18396
|
" ",
|
|
18396
18397
|
/* @__PURE__ */ $.jsx($r, {})
|
|
18397
18398
|
] }),
|
|
18398
|
-
|
|
18399
|
+
A && /* @__PURE__ */ $.jsx(si, { type: "secondary", onClick: () => w({ path: t }), children: "Удалить" }),
|
|
18399
18400
|
/* @__PURE__ */ $.jsx(Bi, { formName: a || t, persistedControls: k, type: "obj" })
|
|
18400
18401
|
] }),
|
|
18401
18402
|
formName: o || t,
|
|
@@ -18427,14 +18428,14 @@ const sk = kt.div`
|
|
|
18427
18428
|
prefillValueNamespaceOnly: d,
|
|
18428
18429
|
isNameSpaced: v,
|
|
18429
18430
|
isCreate: O,
|
|
18430
|
-
type:
|
|
18431
|
-
apiGroupApiVersion:
|
|
18431
|
+
type: E,
|
|
18432
|
+
apiGroupApiVersion: A,
|
|
18432
18433
|
kindName: w,
|
|
18433
|
-
typeName:
|
|
18434
|
+
typeName: R,
|
|
18434
18435
|
backlink: L
|
|
18435
18436
|
}) => {
|
|
18436
18437
|
const k = xl(), [x] = Pr.useForm(), I = Pr.useWatch(["metadata", "namespace"], x), [T, D] = ht(a), [K, re] = ht(), ae = F2(re, 500), [ue, pe] = ht(!1), [ye, he] = ht(), [ce, Fe] = ht(!1), [ke, xe] = ht(f || []), [Ue, Ge] = ht(y || []), [we, mt] = ht(!1), G = Yp({
|
|
18437
|
-
apiGroup:
|
|
18438
|
+
apiGroup: E === "builtin" ? "" : i.apiGroup ? i.apiGroup : "",
|
|
18438
18439
|
typeName: i.typeName || "",
|
|
18439
18440
|
namespace: v ? I : "",
|
|
18440
18441
|
clusterName: e,
|
|
@@ -18442,7 +18443,7 @@ const sk = kt.div`
|
|
|
18442
18443
|
refetchInterval: !1,
|
|
18443
18444
|
enabler: O === !0
|
|
18444
18445
|
}), Y = Yp({
|
|
18445
|
-
apiGroup:
|
|
18446
|
+
apiGroup: E === "builtin" ? "" : i.apiGroup ? i.apiGroup : "",
|
|
18446
18447
|
typeName: i.typeName || "",
|
|
18447
18448
|
namespace: v ? I : "",
|
|
18448
18449
|
clusterName: e,
|
|
@@ -18452,7 +18453,7 @@ const sk = kt.div`
|
|
|
18452
18453
|
}), se = () => {
|
|
18453
18454
|
x.validateFields().then(() => {
|
|
18454
18455
|
pe(!0), he(void 0);
|
|
18455
|
-
const me = x.getFieldsValue(), Ee = ja(me, Ue), Me = io(Ee), ut = jc(Me, T), { namespace: vt } = Ee.metadata, fe = `/api/clusters/${e}/k8s/${
|
|
18456
|
+
const me = x.getFieldsValue(), Ee = ja(me, Ue), Me = io(Ee), ut = jc(Me, T), { namespace: vt } = Ee.metadata, fe = `/api/clusters/${e}/k8s/${E === "builtin" ? "" : "apis/"}${A}${v ? `/namespaces/${vt}` : ""}/${R}/${O ? "" : Ee.metadata.name}`;
|
|
18456
18457
|
O ? vg({ endpoint: fe, body: ut }).then((Je) => {
|
|
18457
18458
|
console.log(Je), L && k(L);
|
|
18458
18459
|
}).catch((Je) => {
|
|
@@ -18492,7 +18493,7 @@ const sk = kt.div`
|
|
|
18492
18493
|
Ee && x.setFieldsValue(Me);
|
|
18493
18494
|
};
|
|
18494
18495
|
if (Kt(() => {
|
|
18495
|
-
const me =
|
|
18496
|
+
const me = E === "apis" ? `${A}/${R}` : `v1/${R}`, Ee = o?.items.find(
|
|
18496
18497
|
(Me) => typeof Me == "object" && !Array.isArray(Me) && Me !== null && Me.spec && typeof Me.spec == "object" && !Array.isArray(Me.spec) && Me.spec !== null && typeof Me.spec.overrideType == "string" && Me.spec.overrideType === me
|
|
18497
18498
|
);
|
|
18498
18499
|
if (wd(Ee) && Ee.spec.values.forEach(({ path: Me, value: xt }) => {
|
|
@@ -18506,14 +18507,14 @@ const sk = kt.div`
|
|
|
18506
18507
|
g,
|
|
18507
18508
|
x,
|
|
18508
18509
|
o,
|
|
18509
|
-
A,
|
|
18510
18510
|
E,
|
|
18511
|
-
|
|
18511
|
+
A,
|
|
18512
|
+
R,
|
|
18512
18513
|
Ae,
|
|
18513
18514
|
T
|
|
18514
18515
|
]), Kt(() => {
|
|
18515
18516
|
let me = [];
|
|
18516
|
-
const Ee =
|
|
18517
|
+
const Ee = E === "apis" ? `${A}/${R}` : `v1/${R}`, Me = o?.items.find(
|
|
18517
18518
|
(fe) => typeof fe == "object" && !Array.isArray(fe) && fe !== null && fe.spec && typeof fe.spec == "object" && !Array.isArray(fe.spec) && fe.spec !== null && typeof fe.spec.overrideType == "string" && fe.spec.overrideType === Ee
|
|
18518
18519
|
);
|
|
18519
18520
|
wd(Me) && (me = Me.spec.values.flatMap(({ path: fe }) => D2(fe))), g && typeof g == "object" && g !== null && (me = [...me, ...Og(g)]);
|
|
@@ -18522,11 +18523,11 @@ const sk = kt.div`
|
|
|
18522
18523
|
return ut.has(Je) ? !1 : (ut.add(Je), !0);
|
|
18523
18524
|
});
|
|
18524
18525
|
xe([...vt]);
|
|
18525
|
-
}, [
|
|
18526
|
+
}, [A, o, g, E, R]), Kt(() => {
|
|
18526
18527
|
d && x.setFieldValue(["metadata", "namespace"], d), Ae();
|
|
18527
18528
|
}, [d, Ae, x]), Kt(() => {
|
|
18528
|
-
O && x.setFieldsValue({ apiVersion:
|
|
18529
|
-
}, [O, w,
|
|
18529
|
+
O && x.setFieldsValue({ apiVersion: A === "api/v1" ? "v1" : A, kind: w }), Ae();
|
|
18530
|
+
}, [O, w, A, Ae, x]), Kt(() => {
|
|
18530
18531
|
const me = x.getFieldsValue(), Ee = ja(me, Ue), Me = io(Ee), ut = jc(Me, T);
|
|
18531
18532
|
ae(ut);
|
|
18532
18533
|
}, [ae, T, x, Ue]), Kt(() => {
|
|
@@ -18812,7 +18813,7 @@ const sk = kt.div`
|
|
|
18812
18813
|
backlink: g,
|
|
18813
18814
|
modeData: d
|
|
18814
18815
|
}) => {
|
|
18815
|
-
const [v, O] = ht(void 0), [
|
|
18816
|
+
const [v, O] = ht(void 0), [E, A] = ht([]), [w, R] = ht([]), [L, k] = ht([]), [x, I] = ht([]), [T, D] = ht(""), [K, re] = ht(!1), [ae, ue] = ht(!1), pe = co(() => {
|
|
18816
18817
|
d && (d.onChange("Manual"), d.onDisabled());
|
|
18817
18818
|
}, [d]);
|
|
18818
18819
|
return Kt(() => {
|
|
@@ -18840,7 +18841,7 @@ const sk = kt.div`
|
|
|
18840
18841
|
newProperties: we,
|
|
18841
18842
|
bodyParametersSchema: ce
|
|
18842
18843
|
});
|
|
18843
|
-
Y &&
|
|
18844
|
+
Y && R(Y), se && k(se), Ae && I(Ae), Ve && O(Ve), ve && A(ve);
|
|
18844
18845
|
}, [a, f, pe, l]), d?.current === "Manual" ? /* @__PURE__ */ $.jsx(
|
|
18845
18846
|
lk,
|
|
18846
18847
|
{
|
|
@@ -18863,7 +18864,7 @@ const sk = kt.div`
|
|
|
18863
18864
|
urlParamsForPermissions: i,
|
|
18864
18865
|
formsPrefillsData: o,
|
|
18865
18866
|
staticProperties: v,
|
|
18866
|
-
required:
|
|
18867
|
+
required: E,
|
|
18867
18868
|
hiddenPaths: w,
|
|
18868
18869
|
expandedPaths: L,
|
|
18869
18870
|
persistedPaths: x,
|
|
@@ -18877,7 +18878,7 @@ const sk = kt.div`
|
|
|
18877
18878
|
typeName: f.typeName,
|
|
18878
18879
|
backlink: g
|
|
18879
18880
|
},
|
|
18880
|
-
JSON.stringify(v) + JSON.stringify(
|
|
18881
|
+
JSON.stringify(v) + JSON.stringify(E) + JSON.stringify(w) + JSON.stringify(f)
|
|
18881
18882
|
);
|
|
18882
18883
|
}, Fy = ({
|
|
18883
18884
|
items: e,
|
|
@@ -19012,9 +19013,9 @@ const sk = kt.div`
|
|
|
19012
19013
|
apiExtensionVersion: d,
|
|
19013
19014
|
crdName: v,
|
|
19014
19015
|
pathname: O
|
|
19015
|
-
}) => e.map(({ pathToMatch:
|
|
19016
|
-
pathToMatch:
|
|
19017
|
-
template:
|
|
19016
|
+
}) => e.map(({ pathToMatch: A, pathToNavigate: w, keysToParse: R }) => ({
|
|
19017
|
+
pathToMatch: A ? Yt({
|
|
19018
|
+
template: A,
|
|
19018
19019
|
replaceValues: {
|
|
19019
19020
|
clusterName: t,
|
|
19020
19021
|
projectName: n,
|
|
@@ -19047,8 +19048,8 @@ const sk = kt.div`
|
|
|
19047
19048
|
crdName: v
|
|
19048
19049
|
}
|
|
19049
19050
|
}) : void 0,
|
|
19050
|
-
keysToParse:
|
|
19051
|
-
})).find(({ pathToMatch:
|
|
19051
|
+
keysToParse: R
|
|
19052
|
+
})).find(({ pathToMatch: A }) => A ? Sl(A, O) : !1), Jk = (e) => !!(typeof e == "object" && !Array.isArray(e) && e !== null && e.spec && typeof e.spec == "object" && !Array.isArray(e.spec) && e.spec !== null && Array.isArray(e.spec.additionalPrinterColumns) && e.spec.additionalPrinterColumns.every(
|
|
19052
19053
|
(t) => Object.keys(t).includes("name") && Object.keys(t).includes("jsonPath")
|
|
19053
19054
|
)), Yk = (e) => !!(typeof e == "object" && !Array.isArray(e) && e !== null && e.spec && typeof e.spec == "object" && !Array.isArray(e.spec) && e.spec !== null && Array.isArray(e.spec.additionalPrinterColumnsUndefinedValues) && e.spec.additionalPrinterColumnsUndefinedValues.every(
|
|
19054
19055
|
(t) => Object.keys(t).includes("key") && Object.keys(t).includes("value")
|