@stablyai/playwright-test 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-CfBVZ27r.cjs → index-CFruORhJ.cjs} +1097 -1084
- package/dist/index-CFruORhJ.cjs.map +1 -0
- package/dist/{index-CyV-2Mfg.mjs → index-DsxNMv2-.mjs} +1097 -1084
- package/dist/index-DsxNMv2-.mjs.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/{index.d-BYzcguUj.d.cts → index.d-Cdd7-KS-.d.cts} +3 -1
- package/dist/{index.d-BYzcguUj.d.cts.map → index.d-Cdd7-KS-.d.cts.map} +1 -1
- package/dist/{index.d-BYzcguUj.d.ts → index.d-Cdd7-KS-.d.mts} +3 -1
- package/dist/{index.d-BYzcguUj.d.mts.map → index.d-Cdd7-KS-.d.mts.map} +1 -1
- package/dist/{index.d-BYzcguUj.d.mts → index.d-Cdd7-KS-.d.ts} +3 -1
- package/dist/{index.d-BYzcguUj.d.ts.map → index.d-Cdd7-KS-.d.ts.map} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/reporter.cjs +1 -1
- package/dist/reporter.d.cts +1 -1
- package/dist/reporter.d.mts +1 -1
- package/dist/reporter.mjs +1 -1
- package/package.json +4 -4
- package/dist/index-CfBVZ27r.cjs.map +0 -1
- package/dist/index-CyV-2Mfg.mjs.map +0 -1
|
@@ -15,7 +15,7 @@ import * as g from 'node:readline';
|
|
|
15
15
|
import 'node:stream';
|
|
16
16
|
import Et from 'os';
|
|
17
17
|
import require$$7, { fileURLToPath as fileURLToPath$1 } from 'url';
|
|
18
|
-
import
|
|
18
|
+
import jn from 'util';
|
|
19
19
|
import require$$0$4 from 'events';
|
|
20
20
|
import require$$1$1 from 'https';
|
|
21
21
|
import require$$2 from 'http';
|
|
@@ -6713,17 +6713,17 @@ var Wn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
|
|
|
6713
6713
|
|
|
6714
6714
|
var Bn = Object.defineProperty;
|
|
6715
6715
|
var a = (e, t) => Bn(e, "name", { value: t, configurable: true });
|
|
6716
|
-
const rt = BigInt(2 ** 32 - 1),
|
|
6716
|
+
const rt = BigInt(2 ** 32 - 1), dr = BigInt(32);
|
|
6717
6717
|
function Jn(e, t = false) {
|
|
6718
|
-
return t ? { h: Number(e & rt), l: Number(e >>
|
|
6718
|
+
return t ? { h: Number(e & rt), l: Number(e >> dr & rt) } : { h: Number(e >> dr & rt) | 0, l: Number(e & rt) | 0 };
|
|
6719
6719
|
}
|
|
6720
6720
|
a(Jn, "fromBig");
|
|
6721
6721
|
function zn(e, t = false) {
|
|
6722
6722
|
const r = e.length;
|
|
6723
6723
|
let n = new Uint32Array(r), i = new Uint32Array(r);
|
|
6724
|
-
for (let
|
|
6725
|
-
const { h: c, l } = Jn(e[
|
|
6726
|
-
[n[
|
|
6724
|
+
for (let s = 0; s < r; s++) {
|
|
6725
|
+
const { h: c, l } = Jn(e[s], t);
|
|
6726
|
+
[n[s], i[s]] = [c, l];
|
|
6727
6727
|
}
|
|
6728
6728
|
return [n, i];
|
|
6729
6729
|
}
|
|
@@ -6734,13 +6734,13 @@ function ti(e) {
|
|
|
6734
6734
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
6735
6735
|
}
|
|
6736
6736
|
a(ti, "isBytes");
|
|
6737
|
-
function
|
|
6737
|
+
function pr(e, t = "") {
|
|
6738
6738
|
if (!Number.isSafeInteger(e) || e < 0) {
|
|
6739
6739
|
const r = t && `"${t}" `;
|
|
6740
6740
|
throw new Error(`${r}expected integer >= 0, got ${e}`);
|
|
6741
6741
|
}
|
|
6742
6742
|
}
|
|
6743
|
-
a(
|
|
6743
|
+
a(pr, "anumber");
|
|
6744
6744
|
function _t(e, t, r = "") {
|
|
6745
6745
|
const n = ti(e), i = e?.length;
|
|
6746
6746
|
if (!n || t !== void 0) {
|
|
@@ -6750,11 +6750,11 @@ function _t(e, t, r = "") {
|
|
|
6750
6750
|
return e;
|
|
6751
6751
|
}
|
|
6752
6752
|
a(_t, "abytes");
|
|
6753
|
-
function
|
|
6753
|
+
function mr(e, t = true) {
|
|
6754
6754
|
if (e.destroyed) throw new Error("Hash instance has been destroyed");
|
|
6755
6755
|
if (t && e.finished) throw new Error("Hash#digest() has already been called");
|
|
6756
6756
|
}
|
|
6757
|
-
a(
|
|
6757
|
+
a(mr, "aexists");
|
|
6758
6758
|
function ri(e, t) {
|
|
6759
6759
|
_t(e, void 0, "digestInto() output");
|
|
6760
6760
|
const r = t.outputLen;
|
|
@@ -6765,46 +6765,46 @@ function ni(e) {
|
|
|
6765
6765
|
return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
|
|
6766
6766
|
}
|
|
6767
6767
|
a(ni, "u32");
|
|
6768
|
-
function
|
|
6768
|
+
function Er(...e) {
|
|
6769
6769
|
for (let t = 0; t < e.length; t++) e[t].fill(0);
|
|
6770
6770
|
}
|
|
6771
|
-
a(
|
|
6771
|
+
a(Er, "clean");
|
|
6772
6772
|
const ii = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
6773
|
-
function
|
|
6773
|
+
function si(e) {
|
|
6774
6774
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
6775
6775
|
}
|
|
6776
|
-
a(
|
|
6777
|
-
function
|
|
6778
|
-
for (let t = 0; t < e.length; t++) e[t] =
|
|
6776
|
+
a(si, "byteSwap");
|
|
6777
|
+
function oi(e) {
|
|
6778
|
+
for (let t = 0; t < e.length; t++) e[t] = si(e[t]);
|
|
6779
6779
|
return e;
|
|
6780
6780
|
}
|
|
6781
|
-
a(
|
|
6782
|
-
const
|
|
6781
|
+
a(oi, "byteSwap32");
|
|
6782
|
+
const gr = ii ? (e) => e : oi;
|
|
6783
6783
|
function ai(e, t = {}) {
|
|
6784
|
-
const r = a((i,
|
|
6784
|
+
const r = a((i, s) => e(s).update(i).digest(), "hashC"), n = e(void 0);
|
|
6785
6785
|
return r.outputLen = n.outputLen, r.blockLen = n.blockLen, r.create = (i) => e(i), Object.assign(r, t), Object.freeze(r);
|
|
6786
6786
|
}
|
|
6787
6787
|
a(ai, "createHasher");
|
|
6788
|
-
const ci = a((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), ui = BigInt(0), Ve = BigInt(1), li = BigInt(2), fi = BigInt(7), hi = BigInt(256), di = BigInt(113),
|
|
6788
|
+
const ci = a((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), ui = BigInt(0), Ve = BigInt(1), li = BigInt(2), fi = BigInt(7), hi = BigInt(256), di = BigInt(113), _r = [], Ir = [], Sr = [];
|
|
6789
6789
|
for (let e = 0, t = Ve, r = 1, n = 0; e < 24; e++) {
|
|
6790
|
-
[r, n] = [n, (2 * r + 3 * n) % 5],
|
|
6790
|
+
[r, n] = [n, (2 * r + 3 * n) % 5], _r.push(2 * (5 * n + r)), Ir.push((e + 1) * (e + 2) / 2 % 64);
|
|
6791
6791
|
let i = ui;
|
|
6792
|
-
for (let
|
|
6793
|
-
|
|
6792
|
+
for (let s = 0; s < 7; s++) t = (t << Ve ^ (t >> fi) * di) % hi, t & li && (i ^= Ve << (Ve << BigInt(s)) - Ve);
|
|
6793
|
+
Sr.push(i);
|
|
6794
6794
|
}
|
|
6795
|
-
const
|
|
6795
|
+
const Rr = zn(Sr, true), pi = Rr[0], mi = Rr[1], Tr = a((e, t, r) => r > 32 ? Zn(e, t, r) : Qn(e, t, r), "rotlH"), yr = a((e, t, r) => r > 32 ? ei(e, t, r) : Xn(e, t, r), "rotlL");
|
|
6796
6796
|
function Ei(e, t = 24) {
|
|
6797
6797
|
const r = new Uint32Array(10);
|
|
6798
6798
|
for (let n = 24 - t; n < 24; n++) {
|
|
6799
6799
|
for (let c = 0; c < 10; c++) r[c] = e[c] ^ e[c + 10] ^ e[c + 20] ^ e[c + 30] ^ e[c + 40];
|
|
6800
6800
|
for (let c = 0; c < 10; c += 2) {
|
|
6801
|
-
const l = (c + 8) % 10, p = (c + 2) % 10, E = r[p], h = r[p + 1],
|
|
6802
|
-
for (let C = 0; C < 50; C += 10) e[c + C] ^=
|
|
6801
|
+
const l = (c + 8) % 10, p = (c + 2) % 10, E = r[p], h = r[p + 1], _ = Tr(E, h, 1) ^ r[l], v = yr(E, h, 1) ^ r[l + 1];
|
|
6802
|
+
for (let C = 0; C < 50; C += 10) e[c + C] ^= _, e[c + C + 1] ^= v;
|
|
6803
6803
|
}
|
|
6804
|
-
let i = e[2],
|
|
6804
|
+
let i = e[2], s = e[3];
|
|
6805
6805
|
for (let c = 0; c < 24; c++) {
|
|
6806
|
-
const l =
|
|
6807
|
-
i = e[h],
|
|
6806
|
+
const l = Ir[c], p = Tr(i, s, l), E = yr(i, s, l), h = _r[c];
|
|
6807
|
+
i = e[h], s = e[h + 1], e[h] = p, e[h + 1] = E;
|
|
6808
6808
|
}
|
|
6809
6809
|
for (let c = 0; c < 50; c += 10) {
|
|
6810
6810
|
for (let l = 0; l < 10; l++) r[l] = e[c + l];
|
|
@@ -6812,10 +6812,10 @@ function Ei(e, t = 24) {
|
|
|
6812
6812
|
}
|
|
6813
6813
|
e[0] ^= pi[n], e[1] ^= mi[n];
|
|
6814
6814
|
}
|
|
6815
|
-
|
|
6815
|
+
Er(r);
|
|
6816
6816
|
}
|
|
6817
6817
|
a(Ei, "keccakP");
|
|
6818
|
-
class
|
|
6818
|
+
class sr {
|
|
6819
6819
|
static {
|
|
6820
6820
|
a(this, "Keccak");
|
|
6821
6821
|
}
|
|
@@ -6830,22 +6830,22 @@ class ir {
|
|
|
6830
6830
|
outputLen;
|
|
6831
6831
|
enableXOF = false;
|
|
6832
6832
|
rounds;
|
|
6833
|
-
constructor(t, r, n, i = false,
|
|
6834
|
-
if (this.blockLen = t, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds =
|
|
6833
|
+
constructor(t, r, n, i = false, s = 24) {
|
|
6834
|
+
if (this.blockLen = t, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds = s, pr(n, "outputLen"), !(0 < t && t < 200)) throw new Error("only keccak-f1600 function is supported");
|
|
6835
6835
|
this.state = new Uint8Array(200), this.state32 = ni(this.state);
|
|
6836
6836
|
}
|
|
6837
6837
|
clone() {
|
|
6838
6838
|
return this._cloneInto();
|
|
6839
6839
|
}
|
|
6840
6840
|
keccak() {
|
|
6841
|
-
|
|
6841
|
+
gr(this.state32), Ei(this.state32, this.rounds), gr(this.state32), this.posOut = 0, this.pos = 0;
|
|
6842
6842
|
}
|
|
6843
6843
|
update(t) {
|
|
6844
|
-
|
|
6844
|
+
mr(this), _t(t);
|
|
6845
6845
|
const { blockLen: r, state: n } = this, i = t.length;
|
|
6846
|
-
for (let
|
|
6847
|
-
const c = Math.min(r - this.pos, i -
|
|
6848
|
-
for (let l = 0; l < c; l++) n[this.pos++] ^= t[
|
|
6846
|
+
for (let s = 0; s < i; ) {
|
|
6847
|
+
const c = Math.min(r - this.pos, i - s);
|
|
6848
|
+
for (let l = 0; l < c; l++) n[this.pos++] ^= t[s++];
|
|
6849
6849
|
this.pos === r && this.keccak();
|
|
6850
6850
|
}
|
|
6851
6851
|
return this;
|
|
@@ -6857,11 +6857,11 @@ class ir {
|
|
|
6857
6857
|
t[n] ^= r, (r & 128) !== 0 && n === i - 1 && this.keccak(), t[i - 1] ^= 128, this.keccak();
|
|
6858
6858
|
}
|
|
6859
6859
|
writeInto(t) {
|
|
6860
|
-
|
|
6860
|
+
mr(this, false), _t(t), this.finish();
|
|
6861
6861
|
const r = this.state, { blockLen: n } = this;
|
|
6862
|
-
for (let i = 0,
|
|
6862
|
+
for (let i = 0, s = t.length; i < s; ) {
|
|
6863
6863
|
this.posOut >= n && this.keccak();
|
|
6864
|
-
const c = Math.min(n - this.posOut,
|
|
6864
|
+
const c = Math.min(n - this.posOut, s - i);
|
|
6865
6865
|
t.set(r.subarray(this.posOut, this.posOut + c), i), this.posOut += c, i += c;
|
|
6866
6866
|
}
|
|
6867
6867
|
return t;
|
|
@@ -6871,7 +6871,7 @@ class ir {
|
|
|
6871
6871
|
return this.writeInto(t);
|
|
6872
6872
|
}
|
|
6873
6873
|
xof(t) {
|
|
6874
|
-
return
|
|
6874
|
+
return pr(t), this.xofInto(new Uint8Array(t));
|
|
6875
6875
|
}
|
|
6876
6876
|
digestInto(t) {
|
|
6877
6877
|
if (ri(t, this), this.finished) throw new Error("digest() was already called");
|
|
@@ -6881,338 +6881,338 @@ class ir {
|
|
|
6881
6881
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
6882
6882
|
}
|
|
6883
6883
|
destroy() {
|
|
6884
|
-
this.destroyed = true,
|
|
6884
|
+
this.destroyed = true, Er(this.state);
|
|
6885
6885
|
}
|
|
6886
6886
|
_cloneInto(t) {
|
|
6887
|
-
const { blockLen: r, suffix: n, outputLen: i, rounds:
|
|
6888
|
-
return t ||= new
|
|
6887
|
+
const { blockLen: r, suffix: n, outputLen: i, rounds: s, enableXOF: c } = this;
|
|
6888
|
+
return t ||= new sr(r, n, i, c, s), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = s, t.suffix = n, t.outputLen = i, t.enableXOF = c, t.destroyed = this.destroyed, t;
|
|
6889
6889
|
}
|
|
6890
6890
|
}
|
|
6891
|
-
const gi = a((e, t, r, n = {}) => ai(() => new
|
|
6892
|
-
var Ii = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, It = Math.ceil, ue = Math.floor,
|
|
6893
|
-
function
|
|
6894
|
-
var t, r, n, i = w.prototype = { constructor: w, toString: null, valueOf: null },
|
|
6895
|
-
function w(
|
|
6896
|
-
var f,
|
|
6897
|
-
if (!(
|
|
6891
|
+
const gi = a((e, t, r, n = {}) => ai(() => new sr(t, e, r), n), "genKeccak"), _i = gi(6, 72, 64, ci(10));
|
|
6892
|
+
var Ii = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, It = Math.ceil, ue = Math.floor, se = "[BigNumber Error] ", wr = se + "Number primitive has more than 15 significant digits: ", pe = 1e14, G = 14, St = 9007199254740991, Rt = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ce = 1e7, ee = 1e9;
|
|
6893
|
+
function Ar(e) {
|
|
6894
|
+
var t, r, n, i = w.prototype = { constructor: w, toString: null, valueOf: null }, s = new w(1), c = 20, l = 4, p = -7, E = 21, h = -1e7, _ = 1e7, v = false, C = 1, O = 0, M = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, b = "0123456789abcdefghijklmnopqrstuvwxyz", P = true;
|
|
6895
|
+
function w(o, u) {
|
|
6896
|
+
var f, I, m, S, y, d, g, R, T = this;
|
|
6897
|
+
if (!(T instanceof w)) return new w(o, u);
|
|
6898
6898
|
if (u == null) {
|
|
6899
|
-
if (
|
|
6900
|
-
|
|
6899
|
+
if (o && o._isBigNumber === true) {
|
|
6900
|
+
T.s = o.s, !o.c || o.e > _ ? T.c = T.e = null : o.e < h ? T.c = [T.e = 0] : (T.e = o.e, T.c = o.c.slice());
|
|
6901
6901
|
return;
|
|
6902
6902
|
}
|
|
6903
|
-
if ((d = typeof
|
|
6904
|
-
if (
|
|
6905
|
-
for (
|
|
6906
|
-
|
|
6903
|
+
if ((d = typeof o == "number") && o * 0 == 0) {
|
|
6904
|
+
if (T.s = 1 / o < 0 ? (o = -o, -1) : 1, o === ~~o) {
|
|
6905
|
+
for (S = 0, y = o; y >= 10; y /= 10, S++) ;
|
|
6906
|
+
S > _ ? T.c = T.e = null : (T.e = S, T.c = [o]);
|
|
6907
6907
|
return;
|
|
6908
6908
|
}
|
|
6909
|
-
|
|
6909
|
+
R = String(o);
|
|
6910
6910
|
} else {
|
|
6911
|
-
if (!Ii.test(
|
|
6912
|
-
|
|
6911
|
+
if (!Ii.test(R = String(o))) return n(T, R, d);
|
|
6912
|
+
T.s = R.charCodeAt(0) == 45 ? (R = R.slice(1), -1) : 1;
|
|
6913
6913
|
}
|
|
6914
|
-
(
|
|
6914
|
+
(S = R.indexOf(".")) > -1 && (R = R.replace(".", "")), (y = R.search(/e/i)) > 0 ? (S < 0 && (S = y), S += +R.slice(y + 1), R = R.substring(0, y)) : S < 0 && (S = R.length);
|
|
6915
6915
|
} else {
|
|
6916
|
-
if (J(u, 2, b.length, "Base"), u == 10 && P) return
|
|
6917
|
-
if (
|
|
6918
|
-
if (
|
|
6919
|
-
if (
|
|
6920
|
-
} else
|
|
6921
|
-
for (f = b.slice(0, u),
|
|
6922
|
-
if (
|
|
6923
|
-
if (y >
|
|
6924
|
-
|
|
6916
|
+
if (J(u, 2, b.length, "Base"), u == 10 && P) return T = new w(o), k(T, c + T.e + 1, l);
|
|
6917
|
+
if (R = String(o), d = typeof o == "number") {
|
|
6918
|
+
if (o * 0 != 0) return n(T, R, d, u);
|
|
6919
|
+
if (T.s = 1 / o < 0 ? (R = R.slice(1), -1) : 1, w.DEBUG && R.replace(/^0\.0*|\./, "").length > 15) throw Error(wr + o);
|
|
6920
|
+
} else T.s = R.charCodeAt(0) === 45 ? (R = R.slice(1), -1) : 1;
|
|
6921
|
+
for (f = b.slice(0, u), S = y = 0, g = R.length; y < g; y++) if (f.indexOf(I = R.charAt(y)) < 0) {
|
|
6922
|
+
if (I == ".") {
|
|
6923
|
+
if (y > S) {
|
|
6924
|
+
S = g;
|
|
6925
6925
|
continue;
|
|
6926
6926
|
}
|
|
6927
|
-
} else if (!m && (
|
|
6928
|
-
m = true, y = -1,
|
|
6927
|
+
} else if (!m && (R == R.toUpperCase() && (R = R.toLowerCase()) || R == R.toLowerCase() && (R = R.toUpperCase()))) {
|
|
6928
|
+
m = true, y = -1, S = 0;
|
|
6929
6929
|
continue;
|
|
6930
6930
|
}
|
|
6931
|
-
return n(
|
|
6931
|
+
return n(T, String(o), d, u);
|
|
6932
6932
|
}
|
|
6933
|
-
d = false,
|
|
6934
|
-
}
|
|
6935
|
-
for (y = 0;
|
|
6936
|
-
for (g =
|
|
6937
|
-
if (
|
|
6938
|
-
if (g -= y, d && w.DEBUG && g > 15 && (
|
|
6939
|
-
if ((
|
|
6940
|
-
else if (
|
|
6933
|
+
d = false, R = r(R, u, 10, T.s), (S = R.indexOf(".")) > -1 ? R = R.replace(".", "") : S = R.length;
|
|
6934
|
+
}
|
|
6935
|
+
for (y = 0; R.charCodeAt(y) === 48; y++) ;
|
|
6936
|
+
for (g = R.length; R.charCodeAt(--g) === 48; ) ;
|
|
6937
|
+
if (R = R.slice(y, ++g)) {
|
|
6938
|
+
if (g -= y, d && w.DEBUG && g > 15 && (o > St || o !== ue(o))) throw Error(wr + T.s * o);
|
|
6939
|
+
if ((S = S - y - 1) > _) T.c = T.e = null;
|
|
6940
|
+
else if (S < h) T.c = [T.e = 0];
|
|
6941
6941
|
else {
|
|
6942
|
-
if (
|
|
6943
|
-
for (y &&
|
|
6944
|
-
y = G - (
|
|
6942
|
+
if (T.e = S, T.c = [], y = (S + 1) % G, S < 0 && (y += G), y < g) {
|
|
6943
|
+
for (y && T.c.push(+R.slice(0, y)), g -= G; y < g; ) T.c.push(+R.slice(y, y += G));
|
|
6944
|
+
y = G - (R = R.slice(y)).length;
|
|
6945
6945
|
} else y -= g;
|
|
6946
|
-
for (; y--;
|
|
6947
|
-
|
|
6946
|
+
for (; y--; R += "0") ;
|
|
6947
|
+
T.c.push(+R);
|
|
6948
6948
|
}
|
|
6949
|
-
} else
|
|
6949
|
+
} else T.c = [T.e = 0];
|
|
6950
6950
|
}
|
|
6951
|
-
a(w, "BigNumber2"), w.clone =
|
|
6951
|
+
a(w, "BigNumber2"), w.clone = Ar, w.ROUND_UP = 0, w.ROUND_DOWN = 1, w.ROUND_CEIL = 2, w.ROUND_FLOOR = 3, w.ROUND_HALF_UP = 4, w.ROUND_HALF_DOWN = 5, w.ROUND_HALF_EVEN = 6, w.ROUND_HALF_CEIL = 7, w.ROUND_HALF_FLOOR = 8, w.EUCLID = 9, w.config = w.set = function(o) {
|
|
6952
6952
|
var u, f;
|
|
6953
|
-
if (
|
|
6954
|
-
if (
|
|
6955
|
-
else if (J(f, -ee, ee, u), f) h = -(
|
|
6956
|
-
else throw Error(
|
|
6957
|
-
if (
|
|
6958
|
-
else throw v = !f, Error(
|
|
6953
|
+
if (o != null) if (typeof o == "object") {
|
|
6954
|
+
if (o.hasOwnProperty(u = "DECIMAL_PLACES") && (f = o[u], J(f, 0, ee, u), c = f), o.hasOwnProperty(u = "ROUNDING_MODE") && (f = o[u], J(f, 0, 8, u), l = f), o.hasOwnProperty(u = "EXPONENTIAL_AT") && (f = o[u], f && f.pop ? (J(f[0], -ee, 0, u), J(f[1], 0, ee, u), p = f[0], E = f[1]) : (J(f, -ee, ee, u), p = -(E = f < 0 ? -f : f))), o.hasOwnProperty(u = "RANGE")) if (f = o[u], f && f.pop) J(f[0], -ee, -1, u), J(f[1], 1, ee, u), h = f[0], _ = f[1];
|
|
6955
|
+
else if (J(f, -ee, ee, u), f) h = -(_ = f < 0 ? -f : f);
|
|
6956
|
+
else throw Error(se + u + " cannot be zero: " + f);
|
|
6957
|
+
if (o.hasOwnProperty(u = "CRYPTO")) if (f = o[u], f === !!f) if (f) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) v = f;
|
|
6958
|
+
else throw v = !f, Error(se + "crypto unavailable");
|
|
6959
6959
|
else v = f;
|
|
6960
|
-
else throw Error(
|
|
6961
|
-
if (
|
|
6962
|
-
else throw Error(
|
|
6963
|
-
if (
|
|
6964
|
-
else throw Error(
|
|
6965
|
-
} else throw Error(
|
|
6966
|
-
return { DECIMAL_PLACES: c, ROUNDING_MODE: l, EXPONENTIAL_AT: [p, E], RANGE: [h,
|
|
6967
|
-
}, w.isBigNumber = function(
|
|
6968
|
-
if (!
|
|
6960
|
+
else throw Error(se + u + " not true or false: " + f);
|
|
6961
|
+
if (o.hasOwnProperty(u = "MODULO_MODE") && (f = o[u], J(f, 0, 9, u), C = f), o.hasOwnProperty(u = "POW_PRECISION") && (f = o[u], J(f, 0, ee, u), O = f), o.hasOwnProperty(u = "FORMAT")) if (f = o[u], typeof f == "object") M = f;
|
|
6962
|
+
else throw Error(se + u + " not an object: " + f);
|
|
6963
|
+
if (o.hasOwnProperty(u = "ALPHABET")) if (f = o[u], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f)) P = f.slice(0, 10) == "0123456789", b = f;
|
|
6964
|
+
else throw Error(se + u + " invalid: " + f);
|
|
6965
|
+
} else throw Error(se + "Object expected: " + o);
|
|
6966
|
+
return { DECIMAL_PLACES: c, ROUNDING_MODE: l, EXPONENTIAL_AT: [p, E], RANGE: [h, _], CRYPTO: v, MODULO_MODE: C, POW_PRECISION: O, FORMAT: M, ALPHABET: b };
|
|
6967
|
+
}, w.isBigNumber = function(o) {
|
|
6968
|
+
if (!o || o._isBigNumber !== true) return false;
|
|
6969
6969
|
if (!w.DEBUG) return true;
|
|
6970
|
-
var u, f,
|
|
6971
|
-
e: if ({}.toString.call(
|
|
6972
|
-
if ((
|
|
6973
|
-
if (
|
|
6974
|
-
if (m === 0 &&
|
|
6970
|
+
var u, f, I = o.c, m = o.e, S = o.s;
|
|
6971
|
+
e: if ({}.toString.call(I) == "[object Array]") {
|
|
6972
|
+
if ((S === 1 || S === -1) && m >= -ee && m <= ee && m === ue(m)) {
|
|
6973
|
+
if (I[0] === 0) {
|
|
6974
|
+
if (m === 0 && I.length === 1) return true;
|
|
6975
6975
|
break e;
|
|
6976
6976
|
}
|
|
6977
|
-
if (u = (m + 1) % G, u < 1 && (u += G), String(
|
|
6978
|
-
for (u = 0; u <
|
|
6977
|
+
if (u = (m + 1) % G, u < 1 && (u += G), String(I[0]).length == u) {
|
|
6978
|
+
for (u = 0; u < I.length; u++) if (f = I[u], f < 0 || f >= pe || f !== ue(f)) break e;
|
|
6979
6979
|
if (f !== 0) return true;
|
|
6980
6980
|
}
|
|
6981
6981
|
}
|
|
6982
|
-
} else if (
|
|
6983
|
-
throw Error(
|
|
6982
|
+
} else if (I === null && m === null && (S === null || S === 1 || S === -1)) return true;
|
|
6983
|
+
throw Error(se + "Invalid BigNumber: " + o);
|
|
6984
6984
|
}, w.maximum = w.max = function() {
|
|
6985
6985
|
return x(arguments, -1);
|
|
6986
6986
|
}, w.minimum = w.min = function() {
|
|
6987
6987
|
return x(arguments, 1);
|
|
6988
6988
|
}, w.random = (function() {
|
|
6989
|
-
var
|
|
6990
|
-
return ue(Math.random() *
|
|
6989
|
+
var o = 9007199254740992, u = Math.random() * o & 2097151 ? function() {
|
|
6990
|
+
return ue(Math.random() * o);
|
|
6991
6991
|
} : function() {
|
|
6992
6992
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
6993
6993
|
};
|
|
6994
6994
|
return function(f) {
|
|
6995
|
-
var
|
|
6995
|
+
var I, m, S, y, d, g = 0, R = [], T = new w(s);
|
|
6996
6996
|
if (f == null ? f = c : J(f, 0, ee), y = It(f / G), v) if (crypto.getRandomValues) {
|
|
6997
|
-
for (
|
|
6997
|
+
for (I = crypto.getRandomValues(new Uint32Array(y *= 2)); g < y; ) d = I[g] * 131072 + (I[g + 1] >>> 11), d >= 9e15 ? (m = crypto.getRandomValues(new Uint32Array(2)), I[g] = m[0], I[g + 1] = m[1]) : (R.push(d % 1e14), g += 2);
|
|
6998
6998
|
g = y / 2;
|
|
6999
6999
|
} else if (crypto.randomBytes) {
|
|
7000
|
-
for (
|
|
7000
|
+
for (I = crypto.randomBytes(y *= 7); g < y; ) d = (I[g] & 31) * 281474976710656 + I[g + 1] * 1099511627776 + I[g + 2] * 4294967296 + I[g + 3] * 16777216 + (I[g + 4] << 16) + (I[g + 5] << 8) + I[g + 6], d >= 9e15 ? crypto.randomBytes(7).copy(I, g) : (R.push(d % 1e14), g += 7);
|
|
7001
7001
|
g = y / 7;
|
|
7002
|
-
} else throw v = false, Error(
|
|
7003
|
-
if (!v) for (; g < y; ) d = u(), d < 9e15 && (
|
|
7004
|
-
for (y =
|
|
7005
|
-
if (g < 0)
|
|
7002
|
+
} else throw v = false, Error(se + "crypto unavailable");
|
|
7003
|
+
if (!v) for (; g < y; ) d = u(), d < 9e15 && (R[g++] = d % 1e14);
|
|
7004
|
+
for (y = R[--g], f %= G, y && f && (d = Rt[G - f], R[g] = ue(y / d) * d); R[g] === 0; R.pop(), g--) ;
|
|
7005
|
+
if (g < 0) R = [S = 0];
|
|
7006
7006
|
else {
|
|
7007
|
-
for (
|
|
7008
|
-
for (g = 1, d =
|
|
7009
|
-
g < G && (
|
|
7007
|
+
for (S = -1; R[0] === 0; R.splice(0, 1), S -= G) ;
|
|
7008
|
+
for (g = 1, d = R[0]; d >= 10; d /= 10, g++) ;
|
|
7009
|
+
g < G && (S -= G - g);
|
|
7010
7010
|
}
|
|
7011
|
-
return
|
|
7011
|
+
return T.e = S, T.c = R, T;
|
|
7012
7012
|
};
|
|
7013
7013
|
})(), w.sum = function() {
|
|
7014
|
-
for (var
|
|
7014
|
+
for (var o = 1, u = arguments, f = new w(u[0]); o < u.length; ) f = f.plus(u[o++]);
|
|
7015
7015
|
return f;
|
|
7016
7016
|
}, r = (function() {
|
|
7017
|
-
var
|
|
7018
|
-
function u(f,
|
|
7019
|
-
for (var y, d = [0], g,
|
|
7020
|
-
for (g = d.length; g--; d[g] *=
|
|
7021
|
-
for (d[0] +=
|
|
7017
|
+
var o = "0123456789";
|
|
7018
|
+
function u(f, I, m, S) {
|
|
7019
|
+
for (var y, d = [0], g, R = 0, T = f.length; R < T; ) {
|
|
7020
|
+
for (g = d.length; g--; d[g] *= I) ;
|
|
7021
|
+
for (d[0] += S.indexOf(f.charAt(R++)), y = 0; y < d.length; y++) d[y] > m - 1 && (d[y + 1] == null && (d[y + 1] = 0), d[y + 1] += d[y] / m | 0, d[y] %= m);
|
|
7022
7022
|
}
|
|
7023
7023
|
return d.reverse();
|
|
7024
7024
|
}
|
|
7025
|
-
return a(u, "toBaseOut"), function(f,
|
|
7026
|
-
var d, g,
|
|
7027
|
-
for (
|
|
7025
|
+
return a(u, "toBaseOut"), function(f, I, m, S, y) {
|
|
7026
|
+
var d, g, R, T, A, N, B, $, F = f.indexOf("."), q = c, D = l;
|
|
7027
|
+
for (F >= 0 && (T = O, O = 0, f = f.replace(".", ""), $ = new w(I), N = $.pow(f.length - F), O = T, $.c = u(ye(fe(N.c), N.e, "0"), 10, m, o), $.e = $.c.length), B = u(f, I, m, y ? (d = b, o) : (d = o, b)), R = T = B.length; B[--T] == 0; B.pop()) ;
|
|
7028
7028
|
if (!B[0]) return d.charAt(0);
|
|
7029
|
-
if (
|
|
7029
|
+
if (F < 0 ? --R : (N.c = B, N.e = R, N.s = S, N = t(N, $, q, D, m), B = N.c, A = N.r, R = N.e), g = R + q + 1, F = B[g], T = m / 2, A = A || g < 0 || B[g + 1] != null, A = D < 4 ? (F != null || A) && (D == 0 || D == (N.s < 0 ? 3 : 2)) : F > T || F == T && (D == 4 || A || D == 6 && B[g - 1] & 1 || D == (N.s < 0 ? 8 : 7)), g < 1 || !B[0]) f = A ? ye(d.charAt(1), -q, d.charAt(0)) : d.charAt(0);
|
|
7030
7030
|
else {
|
|
7031
|
-
if (B.length = g, A) for (--m; ++B[--g] > m; ) B[g] = 0, g || (++
|
|
7032
|
-
for (
|
|
7033
|
-
for (
|
|
7034
|
-
f = ye(f,
|
|
7031
|
+
if (B.length = g, A) for (--m; ++B[--g] > m; ) B[g] = 0, g || (++R, B = [1].concat(B));
|
|
7032
|
+
for (T = B.length; !B[--T]; ) ;
|
|
7033
|
+
for (F = 0, f = ""; F <= T; f += d.charAt(B[F++])) ;
|
|
7034
|
+
f = ye(f, R, d.charAt(0));
|
|
7035
7035
|
}
|
|
7036
7036
|
return f;
|
|
7037
7037
|
};
|
|
7038
7038
|
})(), t = (function() {
|
|
7039
|
-
function
|
|
7040
|
-
var y, d, g,
|
|
7041
|
-
for (
|
|
7042
|
-
return
|
|
7039
|
+
function o(I, m, S) {
|
|
7040
|
+
var y, d, g, R, T = 0, A = I.length, N = m % Ce, B = m / Ce | 0;
|
|
7041
|
+
for (I = I.slice(); A--; ) g = I[A] % Ce, R = I[A] / Ce | 0, y = B * g + R * N, d = N * g + y % Ce * Ce + T, T = (d / S | 0) + (y / Ce | 0) + B * R, I[A] = d % S;
|
|
7042
|
+
return T && (I = [T].concat(I)), I;
|
|
7043
7043
|
}
|
|
7044
|
-
a(
|
|
7045
|
-
function u(
|
|
7044
|
+
a(o, "multiply");
|
|
7045
|
+
function u(I, m, S, y) {
|
|
7046
7046
|
var d, g;
|
|
7047
|
-
if (
|
|
7048
|
-
else for (d = g = 0; d <
|
|
7049
|
-
g =
|
|
7047
|
+
if (S != y) g = S > y ? 1 : -1;
|
|
7048
|
+
else for (d = g = 0; d < S; d++) if (I[d] != m[d]) {
|
|
7049
|
+
g = I[d] > m[d] ? 1 : -1;
|
|
7050
7050
|
break;
|
|
7051
7051
|
}
|
|
7052
7052
|
return g;
|
|
7053
7053
|
}
|
|
7054
7054
|
a(u, "compare2");
|
|
7055
|
-
function f(
|
|
7056
|
-
for (var d = 0;
|
|
7057
|
-
for (; !
|
|
7058
|
-
}
|
|
7059
|
-
return a(f, "subtract"), function(
|
|
7060
|
-
var g,
|
|
7061
|
-
if (!Z || !Z[0] || !z || !z[0]) return new w(!
|
|
7062
|
-
for (
|
|
7063
|
-
if (z[
|
|
7055
|
+
function f(I, m, S, y) {
|
|
7056
|
+
for (var d = 0; S--; ) I[S] -= d, d = I[S] < m[S] ? 1 : 0, I[S] = d * y + I[S] - m[S];
|
|
7057
|
+
for (; !I[0] && I.length > 1; I.splice(0, 1)) ;
|
|
7058
|
+
}
|
|
7059
|
+
return a(f, "subtract"), function(I, m, S, y, d) {
|
|
7060
|
+
var g, R, T, A, N, B, $, F, q, D, H, Y, he, be, ve, re, de, X = I.s == m.s ? 1 : -1, Z = I.c, z = m.c;
|
|
7061
|
+
if (!Z || !Z[0] || !z || !z[0]) return new w(!I.s || !m.s || (Z ? z && Z[0] == z[0] : !z) ? NaN : Z && Z[0] == 0 || !z ? X * 0 : X / 0);
|
|
7062
|
+
for (F = new w(X), q = F.c = [], R = I.e - m.e, X = S + R + 1, d || (d = pe, R = le(I.e / G) - le(m.e / G), X = X / G | 0), T = 0; z[T] == (Z[T] || 0); T++) ;
|
|
7063
|
+
if (z[T] > (Z[T] || 0) && R--, X < 0) q.push(1), A = true;
|
|
7064
7064
|
else {
|
|
7065
|
-
for (be = Z.length, re = z.length,
|
|
7065
|
+
for (be = Z.length, re = z.length, T = 0, X += 2, N = ue(d / (z[0] + 1)), N > 1 && (z = o(z, N, d), Z = o(Z, N, d), re = z.length, be = Z.length), he = re, D = Z.slice(0, re), H = D.length; H < re; D[H++] = 0) ;
|
|
7066
7066
|
de = z.slice(), de = [0].concat(de), ve = z[0], z[1] >= d / 2 && ve++;
|
|
7067
7067
|
do {
|
|
7068
|
-
if (
|
|
7069
|
-
if (Y =
|
|
7070
|
-
else
|
|
7071
|
-
if ($ < H && (B = [0].concat(B)), f(
|
|
7072
|
-
} else g === 0 && (
|
|
7073
|
-
q[
|
|
7074
|
-
} while ((he++ < be ||
|
|
7075
|
-
A =
|
|
7068
|
+
if (N = 0, g = u(z, D, re, H), g < 0) {
|
|
7069
|
+
if (Y = D[0], re != H && (Y = Y * d + (D[1] || 0)), N = ue(Y / ve), N > 1) for (N >= d && (N = d - 1), B = o(z, N, d), $ = B.length, H = D.length; u(B, D, $, H) == 1; ) N--, f(B, re < $ ? de : z, $, d), $ = B.length, g = 1;
|
|
7070
|
+
else N == 0 && (g = N = 1), B = z.slice(), $ = B.length;
|
|
7071
|
+
if ($ < H && (B = [0].concat(B)), f(D, B, H, d), H = D.length, g == -1) for (; u(z, D, re, H) < 1; ) N++, f(D, re < H ? de : z, H, d), H = D.length;
|
|
7072
|
+
} else g === 0 && (N++, D = [0]);
|
|
7073
|
+
q[T++] = N, D[0] ? D[H++] = Z[he] || 0 : (D = [Z[he]], H = 1);
|
|
7074
|
+
} while ((he++ < be || D[0] != null) && X--);
|
|
7075
|
+
A = D[0] != null, q[0] || q.splice(0, 1);
|
|
7076
7076
|
}
|
|
7077
7077
|
if (d == pe) {
|
|
7078
|
-
for (
|
|
7079
|
-
k(
|
|
7080
|
-
} else
|
|
7081
|
-
return
|
|
7078
|
+
for (T = 1, X = q[0]; X >= 10; X /= 10, T++) ;
|
|
7079
|
+
k(F, S + (F.e = T + R * G - 1) + 1, y, A);
|
|
7080
|
+
} else F.e = R, F.r = +A;
|
|
7081
|
+
return F;
|
|
7082
7082
|
};
|
|
7083
7083
|
})();
|
|
7084
|
-
function L(
|
|
7085
|
-
var m,
|
|
7086
|
-
if (f == null ? f = l : J(f, 0, 8), !
|
|
7087
|
-
if (m =
|
|
7088
|
-
else if (
|
|
7084
|
+
function L(o, u, f, I) {
|
|
7085
|
+
var m, S, y, d, g;
|
|
7086
|
+
if (f == null ? f = l : J(f, 0, 8), !o.c) return o.toString();
|
|
7087
|
+
if (m = o.c[0], y = o.e, u == null) g = fe(o.c), g = I == 1 || I == 2 && (y <= p || y >= E) ? it(g, y) : ye(g, y, "0");
|
|
7088
|
+
else if (o = k(new w(o), u, f), S = o.e, g = fe(o.c), d = g.length, I == 1 || I == 2 && (u <= S || S <= p)) {
|
|
7089
7089
|
for (; d < u; g += "0", d++) ;
|
|
7090
|
-
g = it(g,
|
|
7091
|
-
} else if (u -= y + (
|
|
7090
|
+
g = it(g, S);
|
|
7091
|
+
} else if (u -= y + (I === 2 && S > y), g = ye(g, S, "0"), S + 1 > d) {
|
|
7092
7092
|
if (--u > 0) for (g += "."; u--; g += "0") ;
|
|
7093
|
-
} else if (u +=
|
|
7094
|
-
return
|
|
7093
|
+
} else if (u += S - d, u > 0) for (S + 1 == d && (g += "."); u--; g += "0") ;
|
|
7094
|
+
return o.s < 0 && m ? "-" + g : g;
|
|
7095
7095
|
}
|
|
7096
7096
|
a(L, "format");
|
|
7097
|
-
function x(
|
|
7098
|
-
for (var f,
|
|
7099
|
-
return
|
|
7097
|
+
function x(o, u) {
|
|
7098
|
+
for (var f, I, m = 1, S = new w(o[0]); m < o.length; m++) I = new w(o[m]), (!I.s || (f = Me(S, I)) === u || f === 0 && S.s === u) && (S = I);
|
|
7099
|
+
return S;
|
|
7100
7100
|
}
|
|
7101
7101
|
a(x, "maxOrMin");
|
|
7102
|
-
function U(
|
|
7103
|
-
for (var
|
|
7104
|
-
for (m = u[0]; m >= 10; m /= 10,
|
|
7105
|
-
return (f =
|
|
7102
|
+
function U(o, u, f) {
|
|
7103
|
+
for (var I = 1, m = u.length; !u[--m]; u.pop()) ;
|
|
7104
|
+
for (m = u[0]; m >= 10; m /= 10, I++) ;
|
|
7105
|
+
return (f = I + f * G - 1) > _ ? o.c = o.e = null : f < h ? o.c = [o.e = 0] : (o.e = f, o.c = u), o;
|
|
7106
7106
|
}
|
|
7107
7107
|
a(U, "normalise"), n = /* @__PURE__ */ (function() {
|
|
7108
|
-
var
|
|
7109
|
-
return function(
|
|
7110
|
-
var
|
|
7111
|
-
if (
|
|
7108
|
+
var o = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, f = /^\.([^.]+)$/, I = /^-?(Infinity|NaN)$/, m = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
7109
|
+
return function(S, y, d, g) {
|
|
7110
|
+
var R, T = d ? y : y.replace(m, "");
|
|
7111
|
+
if (I.test(T)) S.s = isNaN(T) ? null : T < 0 ? -1 : 1;
|
|
7112
7112
|
else {
|
|
7113
|
-
if (!d && (
|
|
7114
|
-
return
|
|
7115
|
-
}), g && (
|
|
7116
|
-
if (w.DEBUG) throw Error(
|
|
7117
|
-
|
|
7113
|
+
if (!d && (T = T.replace(o, function(A, N, B) {
|
|
7114
|
+
return R = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !g || g == R ? N : A;
|
|
7115
|
+
}), g && (R = g, T = T.replace(u, "$1").replace(f, "0.$1")), y != T)) return new w(T, R);
|
|
7116
|
+
if (w.DEBUG) throw Error(se + "Not a" + (g ? " base " + g : "") + " number: " + y);
|
|
7117
|
+
S.s = null;
|
|
7118
7118
|
}
|
|
7119
|
-
|
|
7119
|
+
S.c = S.e = null;
|
|
7120
7120
|
};
|
|
7121
7121
|
})();
|
|
7122
|
-
function k(
|
|
7123
|
-
var m,
|
|
7122
|
+
function k(o, u, f, I) {
|
|
7123
|
+
var m, S, y, d, g, R, T, A = o.c, N = Rt;
|
|
7124
7124
|
if (A) {
|
|
7125
7125
|
e: {
|
|
7126
7126
|
for (m = 1, d = A[0]; d >= 10; d /= 10, m++) ;
|
|
7127
|
-
if (
|
|
7128
|
-
else if (
|
|
7129
|
-
for (; A.length <=
|
|
7130
|
-
g =
|
|
7127
|
+
if (S = u - m, S < 0) S += G, y = u, g = A[R = 0], T = ue(g / N[m - y - 1] % 10);
|
|
7128
|
+
else if (R = It((S + 1) / G), R >= A.length) if (I) {
|
|
7129
|
+
for (; A.length <= R; A.push(0)) ;
|
|
7130
|
+
g = T = 0, m = 1, S %= G, y = S - G + 1;
|
|
7131
7131
|
} else break e;
|
|
7132
7132
|
else {
|
|
7133
|
-
for (g = d = A[
|
|
7134
|
-
|
|
7133
|
+
for (g = d = A[R], m = 1; d >= 10; d /= 10, m++) ;
|
|
7134
|
+
S %= G, y = S - G + m, T = y < 0 ? 0 : ue(g / N[m - y - 1] % 10);
|
|
7135
7135
|
}
|
|
7136
|
-
if (
|
|
7137
|
-
if (
|
|
7138
|
-
for (
|
|
7136
|
+
if (I = I || u < 0 || A[R + 1] != null || (y < 0 ? g : g % N[m - y - 1]), I = f < 4 ? (T || I) && (f == 0 || f == (o.s < 0 ? 3 : 2)) : T > 5 || T == 5 && (f == 4 || I || f == 6 && (S > 0 ? y > 0 ? g / N[m - y] : 0 : A[R - 1]) % 10 & 1 || f == (o.s < 0 ? 8 : 7)), u < 1 || !A[0]) return A.length = 0, I ? (u -= o.e + 1, A[0] = N[(G - u % G) % G], o.e = -u || 0) : A[0] = o.e = 0, o;
|
|
7137
|
+
if (S == 0 ? (A.length = R, d = 1, R--) : (A.length = R + 1, d = N[G - S], A[R] = y > 0 ? ue(g / N[m - y] % N[y]) * d : 0), I) for (; ; ) if (R == 0) {
|
|
7138
|
+
for (S = 1, y = A[0]; y >= 10; y /= 10, S++) ;
|
|
7139
7139
|
for (y = A[0] += d, d = 1; y >= 10; y /= 10, d++) ;
|
|
7140
|
-
|
|
7140
|
+
S != d && (o.e++, A[0] == pe && (A[0] = 1));
|
|
7141
7141
|
break;
|
|
7142
7142
|
} else {
|
|
7143
|
-
if (A[
|
|
7144
|
-
A[
|
|
7143
|
+
if (A[R] += d, A[R] != pe) break;
|
|
7144
|
+
A[R--] = 0, d = 1;
|
|
7145
7145
|
}
|
|
7146
|
-
for (
|
|
7146
|
+
for (S = A.length; A[--S] === 0; A.pop()) ;
|
|
7147
7147
|
}
|
|
7148
|
-
|
|
7148
|
+
o.e > _ ? o.c = o.e = null : o.e < h && (o.c = [o.e = 0]);
|
|
7149
7149
|
}
|
|
7150
|
-
return
|
|
7150
|
+
return o;
|
|
7151
7151
|
}
|
|
7152
7152
|
a(k, "round");
|
|
7153
|
-
function
|
|
7154
|
-
var u, f =
|
|
7155
|
-
return f === null ?
|
|
7156
|
-
}
|
|
7157
|
-
return a(
|
|
7158
|
-
var
|
|
7159
|
-
return
|
|
7160
|
-
}, i.comparedTo = function(
|
|
7161
|
-
return Me(this, new w(
|
|
7162
|
-
}, i.decimalPlaces = i.dp = function(
|
|
7163
|
-
var f,
|
|
7164
|
-
if (
|
|
7165
|
-
if (!(f =
|
|
7166
|
-
if (
|
|
7167
|
-
return
|
|
7168
|
-
}, i.dividedBy = i.div = function(
|
|
7169
|
-
return t(this, new w(
|
|
7170
|
-
}, i.dividedToIntegerBy = i.idiv = function(
|
|
7171
|
-
return t(this, new w(
|
|
7172
|
-
}, i.exponentiatedBy = i.pow = function(
|
|
7173
|
-
var f,
|
|
7174
|
-
if (
|
|
7175
|
-
if (u != null && (u = new w(u)), d =
|
|
7176
|
-
if (g =
|
|
7153
|
+
function j(o) {
|
|
7154
|
+
var u, f = o.e;
|
|
7155
|
+
return f === null ? o.toString() : (u = fe(o.c), u = f <= p || f >= E ? it(u, f) : ye(u, f, "0"), o.s < 0 ? "-" + u : u);
|
|
7156
|
+
}
|
|
7157
|
+
return a(j, "valueOf"), i.absoluteValue = i.abs = function() {
|
|
7158
|
+
var o = new w(this);
|
|
7159
|
+
return o.s < 0 && (o.s = 1), o;
|
|
7160
|
+
}, i.comparedTo = function(o, u) {
|
|
7161
|
+
return Me(this, new w(o, u));
|
|
7162
|
+
}, i.decimalPlaces = i.dp = function(o, u) {
|
|
7163
|
+
var f, I, m, S = this;
|
|
7164
|
+
if (o != null) return J(o, 0, ee), u == null ? u = l : J(u, 0, 8), k(new w(S), o + S.e + 1, u);
|
|
7165
|
+
if (!(f = S.c)) return null;
|
|
7166
|
+
if (I = ((m = f.length - 1) - le(this.e / G)) * G, m = f[m]) for (; m % 10 == 0; m /= 10, I--) ;
|
|
7167
|
+
return I < 0 && (I = 0), I;
|
|
7168
|
+
}, i.dividedBy = i.div = function(o, u) {
|
|
7169
|
+
return t(this, new w(o, u), c, l);
|
|
7170
|
+
}, i.dividedToIntegerBy = i.idiv = function(o, u) {
|
|
7171
|
+
return t(this, new w(o, u), 0, 1);
|
|
7172
|
+
}, i.exponentiatedBy = i.pow = function(o, u) {
|
|
7173
|
+
var f, I, m, S, y, d, g, R, T, A = this;
|
|
7174
|
+
if (o = new w(o), o.c && !o.isInteger()) throw Error(se + "Exponent not an integer: " + j(o));
|
|
7175
|
+
if (u != null && (u = new w(u)), d = o.e > 14, !A.c || !A.c[0] || A.c[0] == 1 && !A.e && A.c.length == 1 || !o.c || !o.c[0]) return T = new w(Math.pow(+j(A), d ? o.s * (2 - nt(o)) : +j(o))), u ? T.mod(u) : T;
|
|
7176
|
+
if (g = o.s < 0, u) {
|
|
7177
7177
|
if (u.c ? !u.c[0] : !u.s) return new w(NaN);
|
|
7178
|
-
|
|
7178
|
+
I = !g && A.isInteger() && u.isInteger(), I && (A = A.mod(u));
|
|
7179
7179
|
} else {
|
|
7180
|
-
if (
|
|
7181
|
-
|
|
7180
|
+
if (o.e > 9 && (A.e > 0 || A.e < -1 || (A.e == 0 ? A.c[0] > 1 || d && A.c[1] >= 24e7 : A.c[0] < 8e13 || d && A.c[0] <= 9999975e7))) return S = A.s < 0 && nt(o) ? -0 : 0, A.e > -1 && (S = 1 / S), new w(g ? 1 / S : S);
|
|
7181
|
+
O && (S = It(O / G + 2));
|
|
7182
7182
|
}
|
|
7183
|
-
for (d ? (f = new w(0.5), g && (
|
|
7184
|
-
if (
|
|
7185
|
-
if (
|
|
7186
|
-
|
|
7183
|
+
for (d ? (f = new w(0.5), g && (o.s = 1), R = nt(o)) : (m = Math.abs(+j(o)), R = m % 2), T = new w(s); ; ) {
|
|
7184
|
+
if (R) {
|
|
7185
|
+
if (T = T.times(A), !T.c) break;
|
|
7186
|
+
S ? T.c.length > S && (T.c.length = S) : I && (T = T.mod(u));
|
|
7187
7187
|
}
|
|
7188
7188
|
if (m) {
|
|
7189
7189
|
if (m = ue(m / 2), m === 0) break;
|
|
7190
|
-
|
|
7191
|
-
} else if (
|
|
7190
|
+
R = m % 2;
|
|
7191
|
+
} else if (o = o.times(f), k(o, o.e + 1, 1), o.e > 14) R = nt(o);
|
|
7192
7192
|
else {
|
|
7193
|
-
if (m = +
|
|
7194
|
-
|
|
7193
|
+
if (m = +j(o), m === 0) break;
|
|
7194
|
+
R = m % 2;
|
|
7195
7195
|
}
|
|
7196
|
-
A = A.times(A),
|
|
7196
|
+
A = A.times(A), S ? A.c && A.c.length > S && (A.c.length = S) : I && (A = A.mod(u));
|
|
7197
7197
|
}
|
|
7198
|
-
return
|
|
7199
|
-
}, i.integerValue = function(
|
|
7198
|
+
return I ? T : (g && (T = s.div(T)), u ? T.mod(u) : S ? k(T, O, l, y) : T);
|
|
7199
|
+
}, i.integerValue = function(o) {
|
|
7200
7200
|
var u = new w(this);
|
|
7201
|
-
return
|
|
7202
|
-
}, i.isEqualTo = i.eq = function(
|
|
7203
|
-
return Me(this, new w(
|
|
7201
|
+
return o == null ? o = l : J(o, 0, 8), k(u, u.e + 1, o);
|
|
7202
|
+
}, i.isEqualTo = i.eq = function(o, u) {
|
|
7203
|
+
return Me(this, new w(o, u)) === 0;
|
|
7204
7204
|
}, i.isFinite = function() {
|
|
7205
7205
|
return !!this.c;
|
|
7206
|
-
}, i.isGreaterThan = i.gt = function(
|
|
7207
|
-
return Me(this, new w(
|
|
7208
|
-
}, i.isGreaterThanOrEqualTo = i.gte = function(
|
|
7209
|
-
return (u = Me(this, new w(
|
|
7206
|
+
}, i.isGreaterThan = i.gt = function(o, u) {
|
|
7207
|
+
return Me(this, new w(o, u)) > 0;
|
|
7208
|
+
}, i.isGreaterThanOrEqualTo = i.gte = function(o, u) {
|
|
7209
|
+
return (u = Me(this, new w(o, u))) === 1 || u === 0;
|
|
7210
7210
|
}, i.isInteger = function() {
|
|
7211
7211
|
return !!this.c && le(this.e / G) > this.c.length - 2;
|
|
7212
|
-
}, i.isLessThan = i.lt = function(
|
|
7213
|
-
return Me(this, new w(
|
|
7214
|
-
}, i.isLessThanOrEqualTo = i.lte = function(
|
|
7215
|
-
return (u = Me(this, new w(
|
|
7212
|
+
}, i.isLessThan = i.lt = function(o, u) {
|
|
7213
|
+
return Me(this, new w(o, u)) < 0;
|
|
7214
|
+
}, i.isLessThanOrEqualTo = i.lte = function(o, u) {
|
|
7215
|
+
return (u = Me(this, new w(o, u))) === -1 || u === 0;
|
|
7216
7216
|
}, i.isNaN = function() {
|
|
7217
7217
|
return !this.s;
|
|
7218
7218
|
}, i.isNegative = function() {
|
|
@@ -7221,151 +7221,151 @@ function wr(e) {
|
|
|
7221
7221
|
return this.s > 0;
|
|
7222
7222
|
}, i.isZero = function() {
|
|
7223
7223
|
return !!this.c && this.c[0] == 0;
|
|
7224
|
-
}, i.minus = function(
|
|
7225
|
-
var f,
|
|
7226
|
-
if (
|
|
7227
|
-
if (d != u) return
|
|
7228
|
-
var g = y.e / G,
|
|
7229
|
-
if (!g || !
|
|
7230
|
-
if (!
|
|
7231
|
-
if (!
|
|
7232
|
-
}
|
|
7233
|
-
if (g = le(g),
|
|
7234
|
-
for ((
|
|
7224
|
+
}, i.minus = function(o, u) {
|
|
7225
|
+
var f, I, m, S, y = this, d = y.s;
|
|
7226
|
+
if (o = new w(o, u), u = o.s, !d || !u) return new w(NaN);
|
|
7227
|
+
if (d != u) return o.s = -u, y.plus(o);
|
|
7228
|
+
var g = y.e / G, R = o.e / G, T = y.c, A = o.c;
|
|
7229
|
+
if (!g || !R) {
|
|
7230
|
+
if (!T || !A) return T ? (o.s = -u, o) : new w(A ? y : NaN);
|
|
7231
|
+
if (!T[0] || !A[0]) return A[0] ? (o.s = -u, o) : new w(T[0] ? y : l == 3 ? -0 : 0);
|
|
7232
|
+
}
|
|
7233
|
+
if (g = le(g), R = le(R), T = T.slice(), d = g - R) {
|
|
7234
|
+
for ((S = d < 0) ? (d = -d, m = T) : (R = g, m = A), m.reverse(), u = d; u--; m.push(0)) ;
|
|
7235
7235
|
m.reverse();
|
|
7236
|
-
} else for (
|
|
7237
|
-
|
|
7236
|
+
} else for (I = (S = (d = T.length) < (u = A.length)) ? d : u, d = u = 0; u < I; u++) if (T[u] != A[u]) {
|
|
7237
|
+
S = T[u] < A[u];
|
|
7238
7238
|
break;
|
|
7239
7239
|
}
|
|
7240
|
-
if (
|
|
7241
|
-
for (u = pe - 1;
|
|
7242
|
-
if (
|
|
7243
|
-
for (f =
|
|
7244
|
-
--
|
|
7240
|
+
if (S && (m = T, T = A, A = m, o.s = -o.s), u = (I = A.length) - (f = T.length), u > 0) for (; u--; T[f++] = 0) ;
|
|
7241
|
+
for (u = pe - 1; I > d; ) {
|
|
7242
|
+
if (T[--I] < A[I]) {
|
|
7243
|
+
for (f = I; f && !T[--f]; T[f] = u) ;
|
|
7244
|
+
--T[f], T[I] += pe;
|
|
7245
7245
|
}
|
|
7246
|
-
|
|
7247
|
-
}
|
|
7248
|
-
for (;
|
|
7249
|
-
return
|
|
7250
|
-
}, i.modulo = i.mod = function(
|
|
7251
|
-
var f,
|
|
7252
|
-
return
|
|
7253
|
-
}, i.multipliedBy = i.times = function(
|
|
7254
|
-
var f,
|
|
7255
|
-
if (!H || !Y || !H[0] || !Y[0]) return !
|
|
7256
|
-
for (
|
|
7257
|
-
for (
|
|
7258
|
-
for (f = 0,
|
|
7259
|
-
$[
|
|
7260
|
-
}
|
|
7261
|
-
return f ? ++
|
|
7246
|
+
T[I] -= A[I];
|
|
7247
|
+
}
|
|
7248
|
+
for (; T[0] == 0; T.splice(0, 1), --R) ;
|
|
7249
|
+
return T[0] ? U(o, T, R) : (o.s = l == 3 ? -1 : 1, o.c = [o.e = 0], o);
|
|
7250
|
+
}, i.modulo = i.mod = function(o, u) {
|
|
7251
|
+
var f, I, m = this;
|
|
7252
|
+
return o = new w(o, u), !m.c || !o.s || o.c && !o.c[0] ? new w(NaN) : !o.c || m.c && !m.c[0] ? new w(m) : (C == 9 ? (I = o.s, o.s = 1, f = t(m, o, 0, 3), o.s = I, f.s *= I) : f = t(m, o, 0, C), o = m.minus(f.times(o)), !o.c[0] && C == 1 && (o.s = m.s), o);
|
|
7253
|
+
}, i.multipliedBy = i.times = function(o, u) {
|
|
7254
|
+
var f, I, m, S, y, d, g, R, T, A, N, B, $, F, q, D = this, H = D.c, Y = (o = new w(o, u)).c;
|
|
7255
|
+
if (!H || !Y || !H[0] || !Y[0]) return !D.s || !o.s || H && !H[0] && !Y || Y && !Y[0] && !H ? o.c = o.e = o.s = null : (o.s *= D.s, !H || !Y ? o.c = o.e = null : (o.c = [0], o.e = 0)), o;
|
|
7256
|
+
for (I = le(D.e / G) + le(o.e / G), o.s *= D.s, g = H.length, A = Y.length, g < A && ($ = H, H = Y, Y = $, m = g, g = A, A = m), m = g + A, $ = []; m--; $.push(0)) ;
|
|
7257
|
+
for (F = pe, q = Ce, m = A; --m >= 0; ) {
|
|
7258
|
+
for (f = 0, N = Y[m] % q, B = Y[m] / q | 0, y = g, S = m + y; S > m; ) R = H[--y] % q, T = H[y] / q | 0, d = B * R + T * N, R = N * R + d % q * q + $[S] + f, f = (R / F | 0) + (d / q | 0) + B * T, $[S--] = R % F;
|
|
7259
|
+
$[S] = f;
|
|
7260
|
+
}
|
|
7261
|
+
return f ? ++I : $.splice(0, 1), U(o, $, I);
|
|
7262
7262
|
}, i.negated = function() {
|
|
7263
|
-
var
|
|
7264
|
-
return
|
|
7265
|
-
}, i.plus = function(
|
|
7266
|
-
var f,
|
|
7267
|
-
if (
|
|
7268
|
-
if (m != u) return
|
|
7269
|
-
var
|
|
7270
|
-
if (!
|
|
7263
|
+
var o = new w(this);
|
|
7264
|
+
return o.s = -o.s || null, o;
|
|
7265
|
+
}, i.plus = function(o, u) {
|
|
7266
|
+
var f, I = this, m = I.s;
|
|
7267
|
+
if (o = new w(o, u), u = o.s, !m || !u) return new w(NaN);
|
|
7268
|
+
if (m != u) return o.s = -u, I.minus(o);
|
|
7269
|
+
var S = I.e / G, y = o.e / G, d = I.c, g = o.c;
|
|
7270
|
+
if (!S || !y) {
|
|
7271
7271
|
if (!d || !g) return new w(m / 0);
|
|
7272
|
-
if (!d[0] || !g[0]) return g[0] ?
|
|
7272
|
+
if (!d[0] || !g[0]) return g[0] ? o : new w(d[0] ? I : m * 0);
|
|
7273
7273
|
}
|
|
7274
|
-
if (
|
|
7275
|
-
for (m > 0 ? (y =
|
|
7274
|
+
if (S = le(S), y = le(y), d = d.slice(), m = S - y) {
|
|
7275
|
+
for (m > 0 ? (y = S, f = g) : (m = -m, f = d), f.reverse(); m--; f.push(0)) ;
|
|
7276
7276
|
f.reverse();
|
|
7277
7277
|
}
|
|
7278
7278
|
for (m = d.length, u = g.length, m - u < 0 && (f = g, g = d, d = f, u = m), m = 0; u; ) m = (d[--u] = d[u] + g[u] + m) / pe | 0, d[u] = pe === d[u] ? 0 : d[u] % pe;
|
|
7279
|
-
return m && (d = [m].concat(d), ++y), U(
|
|
7280
|
-
}, i.precision = i.sd = function(
|
|
7281
|
-
var f,
|
|
7282
|
-
if (
|
|
7283
|
-
if (!(f =
|
|
7284
|
-
if (m = f.length - 1,
|
|
7285
|
-
for (; m % 10 == 0; m /= 10,
|
|
7286
|
-
for (m = f[0]; m >= 10; m /= 10,
|
|
7287
|
-
}
|
|
7288
|
-
return
|
|
7289
|
-
}, i.shiftedBy = function(
|
|
7290
|
-
return J(
|
|
7279
|
+
return m && (d = [m].concat(d), ++y), U(o, d, y);
|
|
7280
|
+
}, i.precision = i.sd = function(o, u) {
|
|
7281
|
+
var f, I, m, S = this;
|
|
7282
|
+
if (o != null && o !== !!o) return J(o, 1, ee), u == null ? u = l : J(u, 0, 8), k(new w(S), o, u);
|
|
7283
|
+
if (!(f = S.c)) return null;
|
|
7284
|
+
if (m = f.length - 1, I = m * G + 1, m = f[m]) {
|
|
7285
|
+
for (; m % 10 == 0; m /= 10, I--) ;
|
|
7286
|
+
for (m = f[0]; m >= 10; m /= 10, I++) ;
|
|
7287
|
+
}
|
|
7288
|
+
return o && S.e + 1 > I && (I = S.e + 1), I;
|
|
7289
|
+
}, i.shiftedBy = function(o) {
|
|
7290
|
+
return J(o, -St, St), this.times("1e" + o);
|
|
7291
7291
|
}, i.squareRoot = i.sqrt = function() {
|
|
7292
|
-
var
|
|
7293
|
-
if (d !== 1 || !y || !y[0]) return new w(!d || d < 0 && (!y || y[0]) ? NaN : y ?
|
|
7294
|
-
if (d = Math.sqrt(+
|
|
7295
|
-
for (g = f.e, d = g +
|
|
7296
|
-
if (!
|
|
7292
|
+
var o, u, f, I, m, S = this, y = S.c, d = S.s, g = S.e, R = c + 4, T = new w("0.5");
|
|
7293
|
+
if (d !== 1 || !y || !y[0]) return new w(!d || d < 0 && (!y || y[0]) ? NaN : y ? S : 1 / 0);
|
|
7294
|
+
if (d = Math.sqrt(+j(S)), d == 0 || d == 1 / 0 ? (u = fe(y), (u.length + g) % 2 == 0 && (u += "0"), d = Math.sqrt(+u), g = le((g + 1) / 2) - (g < 0 || g % 2), d == 1 / 0 ? u = "5e" + g : (u = d.toExponential(), u = u.slice(0, u.indexOf("e") + 1) + g), f = new w(u)) : f = new w(d + ""), f.c[0]) {
|
|
7295
|
+
for (g = f.e, d = g + R, d < 3 && (d = 0); ; ) if (m = f, f = T.times(m.plus(t(S, m, R, 1))), fe(m.c).slice(0, d) === (u = fe(f.c)).slice(0, d)) if (f.e < g && --d, u = u.slice(d - 3, d + 1), u == "9999" || !I && u == "4999") {
|
|
7296
|
+
if (!I && (k(m, m.e + c + 2, 0), m.times(m).eq(S))) {
|
|
7297
7297
|
f = m;
|
|
7298
7298
|
break;
|
|
7299
7299
|
}
|
|
7300
|
-
|
|
7300
|
+
R += 4, d += 4, I = 1;
|
|
7301
7301
|
} else {
|
|
7302
|
-
(!+u || !+u.slice(1) && u.charAt(0) == "5") && (k(f, f.e + c + 2, 1),
|
|
7302
|
+
(!+u || !+u.slice(1) && u.charAt(0) == "5") && (k(f, f.e + c + 2, 1), o = !f.times(f).eq(S));
|
|
7303
7303
|
break;
|
|
7304
7304
|
}
|
|
7305
7305
|
}
|
|
7306
|
-
return k(f, f.e + c + 1, l,
|
|
7307
|
-
}, i.toExponential = function(
|
|
7308
|
-
return
|
|
7309
|
-
}, i.toFixed = function(
|
|
7310
|
-
return
|
|
7311
|
-
}, i.toFormat = function(
|
|
7312
|
-
var
|
|
7313
|
-
if (f == null)
|
|
7314
|
-
else if (typeof f != "object") throw Error(
|
|
7315
|
-
if (
|
|
7316
|
-
var
|
|
7317
|
-
if (g && (
|
|
7318
|
-
for (
|
|
7319
|
-
g > 0 && (
|
|
7306
|
+
return k(f, f.e + c + 1, l, o);
|
|
7307
|
+
}, i.toExponential = function(o, u) {
|
|
7308
|
+
return o != null && (J(o, 0, ee), o++), L(this, o, u, 1);
|
|
7309
|
+
}, i.toFixed = function(o, u) {
|
|
7310
|
+
return o != null && (J(o, 0, ee), o = o + this.e + 1), L(this, o, u);
|
|
7311
|
+
}, i.toFormat = function(o, u, f) {
|
|
7312
|
+
var I, m = this;
|
|
7313
|
+
if (f == null) o != null && u && typeof u == "object" ? (f = u, u = null) : o && typeof o == "object" ? (f = o, o = u = null) : f = M;
|
|
7314
|
+
else if (typeof f != "object") throw Error(se + "Argument not an object: " + f);
|
|
7315
|
+
if (I = m.toFixed(o, u), m.c) {
|
|
7316
|
+
var S, y = I.split("."), d = +f.groupSize, g = +f.secondaryGroupSize, R = f.groupSeparator || "", T = y[0], A = y[1], N = m.s < 0, B = N ? T.slice(1) : T, $ = B.length;
|
|
7317
|
+
if (g && (S = d, d = g, g = S, $ -= S), d > 0 && $ > 0) {
|
|
7318
|
+
for (S = $ % d || d, T = B.substr(0, S); S < $; S += d) T += R + B.substr(S, d);
|
|
7319
|
+
g > 0 && (T += R + B.slice(S)), N && (T = "-" + T);
|
|
7320
7320
|
}
|
|
7321
|
-
|
|
7321
|
+
I = A ? T + (f.decimalSeparator || "") + ((g = +f.fractionGroupSize) ? A.replace(new RegExp("\\d{" + g + "}\\B", "g"), "$&" + (f.fractionGroupSeparator || "")) : A) : T;
|
|
7322
7322
|
}
|
|
7323
|
-
return (f.prefix || "") +
|
|
7324
|
-
}, i.toFraction = function(
|
|
7325
|
-
var u, f,
|
|
7326
|
-
if (
|
|
7323
|
+
return (f.prefix || "") + I + (f.suffix || "");
|
|
7324
|
+
}, i.toFraction = function(o) {
|
|
7325
|
+
var u, f, I, m, S, y, d, g, R, T, A, N, B = this, $ = B.c;
|
|
7326
|
+
if (o != null && (d = new w(o), !d.isInteger() && (d.c || d.s !== 1) || d.lt(s))) throw Error(se + "Argument " + (d.isInteger() ? "out of range: " : "not an integer: ") + j(d));
|
|
7327
7327
|
if (!$) return new w(B);
|
|
7328
|
-
for (u = new w(
|
|
7329
|
-
return m = t(
|
|
7328
|
+
for (u = new w(s), R = f = new w(s), I = g = new w(s), N = fe($), S = u.e = N.length - B.e - 1, u.c[0] = Rt[(y = S % G) < 0 ? G + y : y], o = !o || d.comparedTo(u) > 0 ? S > 0 ? u : R : d, y = _, _ = 1 / 0, d = new w(N), g.c[0] = 0; T = t(d, u, 0, 1), m = f.plus(T.times(I)), m.comparedTo(o) != 1; ) f = I, I = m, R = g.plus(T.times(m = R)), g = m, u = d.minus(T.times(m = u)), d = m;
|
|
7329
|
+
return m = t(o.minus(f), I, 0, 1), g = g.plus(m.times(R)), f = f.plus(m.times(I)), g.s = R.s = B.s, S = S * 2, A = t(R, I, S, l).minus(B).abs().comparedTo(t(g, f, S, l).minus(B).abs()) < 1 ? [R, I] : [g, f], _ = y, A;
|
|
7330
7330
|
}, i.toNumber = function() {
|
|
7331
|
-
return +
|
|
7332
|
-
}, i.toPrecision = function(
|
|
7333
|
-
return
|
|
7334
|
-
}, i.toString = function(
|
|
7335
|
-
var u, f = this,
|
|
7336
|
-
return m === null ?
|
|
7331
|
+
return +j(this);
|
|
7332
|
+
}, i.toPrecision = function(o, u) {
|
|
7333
|
+
return o != null && J(o, 1, ee), L(this, o, u, 2);
|
|
7334
|
+
}, i.toString = function(o) {
|
|
7335
|
+
var u, f = this, I = f.s, m = f.e;
|
|
7336
|
+
return m === null ? I ? (u = "Infinity", I < 0 && (u = "-" + u)) : u = "NaN" : (o == null ? u = m <= p || m >= E ? it(fe(f.c), m) : ye(fe(f.c), m, "0") : o === 10 && P ? (f = k(new w(f), c + m + 1, l), u = ye(fe(f.c), f.e, "0")) : (J(o, 2, b.length, "Base"), u = r(ye(fe(f.c), m, "0"), 10, o, I, true)), I < 0 && f.c[0] && (u = "-" + u)), u;
|
|
7337
7337
|
}, i.valueOf = i.toJSON = function() {
|
|
7338
|
-
return
|
|
7338
|
+
return j(this);
|
|
7339
7339
|
}, i._isBigNumber = true, i[Symbol.toStringTag] = "BigNumber", i[Symbol.for("nodejs.util.inspect.custom")] = i.valueOf, e != null && w.set(e), w;
|
|
7340
7340
|
}
|
|
7341
|
-
a(
|
|
7341
|
+
a(Ar, "clone");
|
|
7342
7342
|
function le(e) {
|
|
7343
7343
|
var t = e | 0;
|
|
7344
7344
|
return e > 0 || e === t ? t : t - 1;
|
|
7345
7345
|
}
|
|
7346
7346
|
a(le, "bitFloor");
|
|
7347
7347
|
function fe(e) {
|
|
7348
|
-
for (var t, r, n = 1, i = e.length,
|
|
7348
|
+
for (var t, r, n = 1, i = e.length, s = e[0] + ""; n < i; ) {
|
|
7349
7349
|
for (t = e[n++] + "", r = G - t.length; r--; t = "0" + t) ;
|
|
7350
|
-
|
|
7350
|
+
s += t;
|
|
7351
7351
|
}
|
|
7352
|
-
for (i =
|
|
7353
|
-
return
|
|
7352
|
+
for (i = s.length; s.charCodeAt(--i) === 48; ) ;
|
|
7353
|
+
return s.slice(0, i + 1 || 1);
|
|
7354
7354
|
}
|
|
7355
7355
|
a(fe, "coeffToString");
|
|
7356
7356
|
function Me(e, t) {
|
|
7357
|
-
var r, n, i = e.c,
|
|
7357
|
+
var r, n, i = e.c, s = t.c, c = e.s, l = t.s, p = e.e, E = t.e;
|
|
7358
7358
|
if (!c || !l) return null;
|
|
7359
|
-
if (r = i && !i[0], n =
|
|
7359
|
+
if (r = i && !i[0], n = s && !s[0], r || n) return r ? n ? 0 : -l : c;
|
|
7360
7360
|
if (c != l) return c;
|
|
7361
|
-
if (r = c < 0, n = p == E, !i || !
|
|
7361
|
+
if (r = c < 0, n = p == E, !i || !s) return n ? 0 : !i ^ r ? 1 : -1;
|
|
7362
7362
|
if (!n) return p > E ^ r ? 1 : -1;
|
|
7363
|
-
for (l = (p = i.length) < (E =
|
|
7363
|
+
for (l = (p = i.length) < (E = s.length) ? p : E, c = 0; c < l; c++) if (i[c] != s[c]) return i[c] > s[c] ^ r ? 1 : -1;
|
|
7364
7364
|
return p == E ? 0 : p > E ^ r ? 1 : -1;
|
|
7365
7365
|
}
|
|
7366
7366
|
a(Me, "compare");
|
|
7367
7367
|
function J(e, t, r, n) {
|
|
7368
|
-
if (e < t || e > r || e !== ue(e)) throw Error(
|
|
7368
|
+
if (e < t || e > r || e !== ue(e)) throw Error(se + (n || "Argument") + (typeof e == "number" ? e < t || e > r ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
|
|
7369
7369
|
}
|
|
7370
7370
|
a(J, "intCheck");
|
|
7371
7371
|
function nt(e) {
|
|
@@ -7389,7 +7389,7 @@ function ye(e, t, r) {
|
|
|
7389
7389
|
return e;
|
|
7390
7390
|
}
|
|
7391
7391
|
a(ye, "toFixedPoint");
|
|
7392
|
-
var Si =
|
|
7392
|
+
var Si = Ar();
|
|
7393
7393
|
const Ri = 24, We = 32, Ti = a(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
|
|
7394
7394
|
const e = new Uint32Array(1);
|
|
7395
7395
|
return globalThis.crypto.getRandomValues(e), e[0] / 4294967296;
|
|
@@ -7404,17 +7404,17 @@ function yi(e) {
|
|
|
7404
7404
|
return t;
|
|
7405
7405
|
}
|
|
7406
7406
|
a(yi, "bufToBigInt");
|
|
7407
|
-
const
|
|
7407
|
+
const br = a((e = "") => {
|
|
7408
7408
|
const t = new TextEncoder();
|
|
7409
7409
|
return yi(_i(t.encode(e))).toString(36).slice(1);
|
|
7410
|
-
}, "hash"),
|
|
7410
|
+
}, "hash"), vr = Array.from({ length: 26 }, (e, t) => String.fromCharCode(t + 97)), wi = a((e) => vr[Math.floor(e() * vr.length)], "randomLetter"), Ai = a(({ globalObj: e = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: t = Tt } = {}) => {
|
|
7411
7411
|
const r = Object.keys(e).toString(), n = r.length ? r + yt(We, t) : yt(We, t);
|
|
7412
|
-
return
|
|
7412
|
+
return br(n).substring(0, We);
|
|
7413
7413
|
}, "createFingerprint"), bi = a((e) => () => e++, "createCounter"), vi = 476782367, Ci = a(({ random: e = Tt, counter: t = bi(Math.floor(e() * vi)), length: r = Ri, fingerprint: n = Ai({ random: e }) } = {}) => {
|
|
7414
7414
|
if (r > We) throw new Error(`Length must be between 2 and ${We}. Received: ${r}`);
|
|
7415
7415
|
return a(function() {
|
|
7416
|
-
const
|
|
7417
|
-
return `${
|
|
7416
|
+
const s = wi(e), c = Date.now().toString(36), l = t().toString(36), p = yt(r, e), E = `${c + p + l + n}`;
|
|
7417
|
+
return `${s + br(E).substring(1, r)}`;
|
|
7418
7418
|
}, "cuid2");
|
|
7419
7419
|
}, "init"), Ye = Ui(Ci);
|
|
7420
7420
|
function Ui(e) {
|
|
@@ -7423,15 +7423,15 @@ function Ui(e) {
|
|
|
7423
7423
|
}
|
|
7424
7424
|
a(Ui, "lazy");
|
|
7425
7425
|
var Bi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7426
|
-
function
|
|
7426
|
+
function Cr(e) {
|
|
7427
7427
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7428
7428
|
}
|
|
7429
|
-
a(
|
|
7430
|
-
var xe = {},
|
|
7429
|
+
a(Cr, "getDefaultExportFromCjs");
|
|
7430
|
+
var xe = {}, Ur;
|
|
7431
7431
|
function Pi() {
|
|
7432
|
-
if (
|
|
7433
|
-
|
|
7434
|
-
const e = qe, t =
|
|
7432
|
+
if (Ur) return xe;
|
|
7433
|
+
Ur = 1, Object.defineProperty(xe, "__esModule", { value: true }), xe.isBinaryFileSync = xe.isBinaryFile = void 0;
|
|
7434
|
+
const e = qe, t = jn, r = (0, t.promisify)(e.stat), n = (0, t.promisify)(e.open), i = (0, t.promisify)(e.close), s = 512, c = 3;
|
|
7435
7435
|
class l {
|
|
7436
7436
|
static {
|
|
7437
7437
|
a(this, "Reader");
|
|
@@ -7498,16 +7498,16 @@ function Pi() {
|
|
|
7498
7498
|
return L > 0;
|
|
7499
7499
|
}
|
|
7500
7500
|
a(h, "isBinaryProto");
|
|
7501
|
-
async function
|
|
7502
|
-
if (
|
|
7501
|
+
async function _(b, P) {
|
|
7502
|
+
if (O(b)) {
|
|
7503
7503
|
const w = await r(b);
|
|
7504
7504
|
M(w);
|
|
7505
|
-
const L = await n(b, "r"), x = Buffer.alloc(
|
|
7505
|
+
const L = await n(b, "r"), x = Buffer.alloc(s + c);
|
|
7506
7506
|
return new Promise((U, k) => {
|
|
7507
|
-
e.read(L, x, 0,
|
|
7508
|
-
if (i(L),
|
|
7507
|
+
e.read(L, x, 0, s + c, 0, (j, o, u) => {
|
|
7508
|
+
if (i(L), j) k(j);
|
|
7509
7509
|
else try {
|
|
7510
|
-
U(C(x,
|
|
7510
|
+
U(C(x, o));
|
|
7511
7511
|
} catch (f) {
|
|
7512
7512
|
k(f);
|
|
7513
7513
|
}
|
|
@@ -7515,12 +7515,12 @@ function Pi() {
|
|
|
7515
7515
|
});
|
|
7516
7516
|
} else return P === void 0 && (P = b.length), C(b, P);
|
|
7517
7517
|
}
|
|
7518
|
-
a(
|
|
7518
|
+
a(_, "isBinaryFile"), xe.isBinaryFile = _;
|
|
7519
7519
|
function v(b, P) {
|
|
7520
|
-
if (
|
|
7520
|
+
if (O(b)) {
|
|
7521
7521
|
const w = e.statSync(b);
|
|
7522
7522
|
M(w);
|
|
7523
|
-
const L = e.openSync(b, "r"), x = Buffer.alloc(
|
|
7523
|
+
const L = e.openSync(b, "r"), x = Buffer.alloc(s + c), U = e.readSync(L, x, 0, s + c, 0);
|
|
7524
7524
|
return e.closeSync(L), C(x, U);
|
|
7525
7525
|
} else return P === void 0 && (P = b.length), C(b, P);
|
|
7526
7526
|
}
|
|
@@ -7528,7 +7528,7 @@ function Pi() {
|
|
|
7528
7528
|
function C(b, P) {
|
|
7529
7529
|
if (P === 0) return false;
|
|
7530
7530
|
let w = 0;
|
|
7531
|
-
const L = Math.min(P,
|
|
7531
|
+
const L = Math.min(P, s + c), x = Math.min(L, s);
|
|
7532
7532
|
if (P >= 3 && b[0] === 239 && b[1] === 187 && b[2] === 191 || P >= 4 && b[0] === 0 && b[1] === 0 && b[2] === 254 && b[3] === 255 || P >= 4 && b[0] === 255 && b[1] === 254 && b[2] === 0 && b[3] === 0 || P >= 4 && b[0] === 132 && b[1] === 49 && b[2] === 149 && b[3] === 51) return false;
|
|
7533
7533
|
if (L >= 5 && b.slice(0, 5).toString() === "%PDF-") return true;
|
|
7534
7534
|
if (P >= 2 && b[0] === 254 && b[1] === 255 || P >= 2 && b[0] === 255 && b[1] === 254) return false;
|
|
@@ -7552,35 +7552,35 @@ function Pi() {
|
|
|
7552
7552
|
return !!(w * 100 / x > 10 || w > 1 && h(b, x));
|
|
7553
7553
|
}
|
|
7554
7554
|
a(C, "isBinaryCheck");
|
|
7555
|
-
function
|
|
7555
|
+
function O(b) {
|
|
7556
7556
|
return typeof b == "string";
|
|
7557
7557
|
}
|
|
7558
|
-
a(
|
|
7558
|
+
a(O, "isString");
|
|
7559
7559
|
function M(b) {
|
|
7560
7560
|
if (!b.isFile()) throw new Error("Path provided was not a file!");
|
|
7561
7561
|
}
|
|
7562
7562
|
return a(M, "isStatFile"), xe;
|
|
7563
7563
|
}
|
|
7564
7564
|
a(Pi, "requireLib");
|
|
7565
|
-
var Li = Pi(), Q = Uint8Array, ae = Uint16Array, wt = Int32Array,
|
|
7565
|
+
var Li = Pi(), Q = Uint8Array, ae = Uint16Array, wt = Int32Array, st = new Q([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), ot = new Q([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), At = new Q([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Br = a(function(e, t) {
|
|
7566
7566
|
for (var r = new ae(31), n = 0; n < 31; ++n) r[n] = t += 1 << e[n - 1];
|
|
7567
|
-
for (var i = new wt(r[30]), n = 1; n < 30; ++n) for (var
|
|
7567
|
+
for (var i = new wt(r[30]), n = 1; n < 30; ++n) for (var s = r[n]; s < r[n + 1]; ++s) i[s] = s - r[n] << 5 | n;
|
|
7568
7568
|
return { b: r, r: i };
|
|
7569
|
-
}, "freb"),
|
|
7570
|
-
|
|
7571
|
-
for (var
|
|
7569
|
+
}, "freb"), Pr = Br(st, 2), Lr = Pr.b, bt = Pr.r;
|
|
7570
|
+
Lr[28] = 258, bt[258] = 28;
|
|
7571
|
+
for (var Nr = Br(ot, 0), Ni = Nr.b, Or = Nr.r, vt = new ae(32768), V = 0; V < 32768; ++V) {
|
|
7572
7572
|
var Ue = (V & 43690) >> 1 | (V & 21845) << 1;
|
|
7573
7573
|
Ue = (Ue & 52428) >> 2 | (Ue & 13107) << 2, Ue = (Ue & 61680) >> 4 | (Ue & 3855) << 4, vt[V] = ((Ue & 65280) >> 8 | (Ue & 255) << 8) >> 1;
|
|
7574
7574
|
}
|
|
7575
7575
|
for (var _e = a((function(e, t, r) {
|
|
7576
|
-
for (var n = e.length, i = 0,
|
|
7576
|
+
for (var n = e.length, i = 0, s = new ae(t); i < n; ++i) e[i] && ++s[e[i] - 1];
|
|
7577
7577
|
var c = new ae(t);
|
|
7578
|
-
for (i = 1; i < t; ++i) c[i] = c[i - 1] +
|
|
7578
|
+
for (i = 1; i < t; ++i) c[i] = c[i - 1] + s[i - 1] << 1;
|
|
7579
7579
|
var l;
|
|
7580
7580
|
if (r) {
|
|
7581
7581
|
l = new ae(1 << t);
|
|
7582
7582
|
var p = 15 - t;
|
|
7583
|
-
for (i = 0; i < n; ++i) if (e[i]) for (var E = i << 4 | e[i], h = t - e[i],
|
|
7583
|
+
for (i = 0; i < n; ++i) if (e[i]) for (var E = i << 4 | e[i], h = t - e[i], _ = c[e[i] - 1]++ << h, v = _ | (1 << h) - 1; _ <= v; ++_) l[vt[_] >> p] = E;
|
|
7584
7584
|
} else for (l = new ae(n), i = 0; i < n; ++i) e[i] && (l[i] = vt[c[e[i] - 1]++] >> 15 - e[i]);
|
|
7585
7585
|
return l;
|
|
7586
7586
|
}), "hMap"), Be = new Q(288), V = 0; V < 144; ++V) Be[V] = 8;
|
|
@@ -7588,7 +7588,7 @@ for (var V = 144; V < 256; ++V) Be[V] = 9;
|
|
|
7588
7588
|
for (var V = 256; V < 280; ++V) Be[V] = 7;
|
|
7589
7589
|
for (var V = 280; V < 288; ++V) Be[V] = 8;
|
|
7590
7590
|
for (var Je = new Q(32), V = 0; V < 32; ++V) Je[V] = 5;
|
|
7591
|
-
var
|
|
7591
|
+
var Oi = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1), Ct = a(function(e) {
|
|
7592
7592
|
for (var t = e[0], r = 1; r < e.length; ++r) e[r] > t && (t = e[r]);
|
|
7593
7593
|
return t;
|
|
7594
7594
|
}, "max"), me = a(function(e, t, r) {
|
|
@@ -7606,7 +7606,7 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7606
7606
|
if (n.code = e, Error.captureStackTrace && Error.captureStackTrace(n, ne), !r) throw n;
|
|
7607
7607
|
return n;
|
|
7608
7608
|
}, "err"), $i = a(function(e, t, r, n) {
|
|
7609
|
-
var i = e.length,
|
|
7609
|
+
var i = e.length, s = n ? n.length : 0;
|
|
7610
7610
|
if (!i || t.f && !t.l) return r || new Q(0);
|
|
7611
7611
|
var c = !r, l = c || t.i != 2, p = t.i;
|
|
7612
7612
|
c && (r = new Q(i * 3));
|
|
@@ -7616,82 +7616,82 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7616
7616
|
var X = new Q(Math.max(de * 2, re));
|
|
7617
7617
|
X.set(r), r = X;
|
|
7618
7618
|
}
|
|
7619
|
-
}, "cbuf"), h = t.f || 0,
|
|
7619
|
+
}, "cbuf"), h = t.f || 0, _ = t.p || 0, v = t.b || 0, C = t.l, O = t.d, M = t.m, b = t.n, P = i * 8;
|
|
7620
7620
|
do {
|
|
7621
7621
|
if (!C) {
|
|
7622
|
-
h = me(e,
|
|
7623
|
-
var w = me(e,
|
|
7624
|
-
if (
|
|
7622
|
+
h = me(e, _, 1);
|
|
7623
|
+
var w = me(e, _ + 1, 3);
|
|
7624
|
+
if (_ += 3, w) if (w == 1) C = Di, O = xi, M = 9, b = 5;
|
|
7625
7625
|
else if (w == 2) {
|
|
7626
|
-
var k = me(e,
|
|
7627
|
-
|
|
7628
|
-
for (var u = new Q(
|
|
7629
|
-
|
|
7630
|
-
for (var m = Ct(f),
|
|
7631
|
-
var d = y[me(e,
|
|
7632
|
-
|
|
7626
|
+
var k = me(e, _, 31) + 257, j = me(e, _ + 10, 15) + 4, o = k + me(e, _ + 5, 31) + 1;
|
|
7627
|
+
_ += 14;
|
|
7628
|
+
for (var u = new Q(o), f = new Q(19), I = 0; I < j; ++I) f[At[I]] = me(e, _ + I * 3, 7);
|
|
7629
|
+
_ += j * 3;
|
|
7630
|
+
for (var m = Ct(f), S = (1 << m) - 1, y = _e(f, m, 1), I = 0; I < o; ) {
|
|
7631
|
+
var d = y[me(e, _, S)];
|
|
7632
|
+
_ += d & 15;
|
|
7633
7633
|
var L = d >> 4;
|
|
7634
|
-
if (L < 16) u[
|
|
7634
|
+
if (L < 16) u[I++] = L;
|
|
7635
7635
|
else {
|
|
7636
|
-
var g = 0,
|
|
7637
|
-
for (L == 16 ? (
|
|
7636
|
+
var g = 0, R = 0;
|
|
7637
|
+
for (L == 16 ? (R = 3 + me(e, _, 3), _ += 2, g = u[I - 1]) : L == 17 ? (R = 3 + me(e, _, 7), _ += 3) : L == 18 && (R = 11 + me(e, _, 127), _ += 7); R--; ) u[I++] = g;
|
|
7638
7638
|
}
|
|
7639
7639
|
}
|
|
7640
|
-
var
|
|
7641
|
-
M = Ct(
|
|
7640
|
+
var T = u.subarray(0, k), A = u.subarray(k);
|
|
7641
|
+
M = Ct(T), b = Ct(A), C = _e(T, M, 1), O = _e(A, b, 1);
|
|
7642
7642
|
} else ne(1);
|
|
7643
7643
|
else {
|
|
7644
|
-
var L = Bt(
|
|
7644
|
+
var L = Bt(_) + 4, x = e[L - 4] | e[L - 3] << 8, U = L + x;
|
|
7645
7645
|
if (U > i) {
|
|
7646
7646
|
p && ne(0);
|
|
7647
7647
|
break;
|
|
7648
7648
|
}
|
|
7649
|
-
l && E(v + x), r.set(e.subarray(L, U), v), t.b = v += x, t.p =
|
|
7649
|
+
l && E(v + x), r.set(e.subarray(L, U), v), t.b = v += x, t.p = _ = U * 8, t.f = h;
|
|
7650
7650
|
continue;
|
|
7651
7651
|
}
|
|
7652
|
-
if (
|
|
7652
|
+
if (_ > P) {
|
|
7653
7653
|
p && ne(0);
|
|
7654
7654
|
break;
|
|
7655
7655
|
}
|
|
7656
7656
|
}
|
|
7657
7657
|
l && E(v + 131072);
|
|
7658
|
-
for (var
|
|
7659
|
-
var g = C[Ut(e,
|
|
7660
|
-
if (
|
|
7658
|
+
for (var N = (1 << M) - 1, B = (1 << b) - 1, $ = _; ; $ = _) {
|
|
7659
|
+
var g = C[Ut(e, _) & N], F = g >> 4;
|
|
7660
|
+
if (_ += g & 15, _ > P) {
|
|
7661
7661
|
p && ne(0);
|
|
7662
7662
|
break;
|
|
7663
7663
|
}
|
|
7664
|
-
if (g || ne(2),
|
|
7665
|
-
else if (
|
|
7666
|
-
$ =
|
|
7664
|
+
if (g || ne(2), F < 256) r[v++] = F;
|
|
7665
|
+
else if (F == 256) {
|
|
7666
|
+
$ = _, C = null;
|
|
7667
7667
|
break;
|
|
7668
7668
|
} else {
|
|
7669
|
-
var q =
|
|
7670
|
-
if (
|
|
7671
|
-
var
|
|
7672
|
-
q = me(e,
|
|
7669
|
+
var q = F - 254;
|
|
7670
|
+
if (F > 264) {
|
|
7671
|
+
var I = F - 257, D = st[I];
|
|
7672
|
+
q = me(e, _, (1 << D) - 1) + Lr[I], _ += D;
|
|
7673
7673
|
}
|
|
7674
|
-
var H =
|
|
7675
|
-
H || ne(3),
|
|
7676
|
-
var A =
|
|
7674
|
+
var H = O[Ut(e, _) & B], Y = H >> 4;
|
|
7675
|
+
H || ne(3), _ += H & 15;
|
|
7676
|
+
var A = Ni[Y];
|
|
7677
7677
|
if (Y > 3) {
|
|
7678
|
-
var
|
|
7679
|
-
A += Ut(e,
|
|
7678
|
+
var D = ot[Y];
|
|
7679
|
+
A += Ut(e, _) & (1 << D) - 1, _ += D;
|
|
7680
7680
|
}
|
|
7681
|
-
if (
|
|
7681
|
+
if (_ > P) {
|
|
7682
7682
|
p && ne(0);
|
|
7683
7683
|
break;
|
|
7684
7684
|
}
|
|
7685
7685
|
l && E(v + 131072);
|
|
7686
7686
|
var he = v + q;
|
|
7687
7687
|
if (v < A) {
|
|
7688
|
-
var be =
|
|
7688
|
+
var be = s - A, ve = Math.min(A, he);
|
|
7689
7689
|
for (be + v < 0 && ne(3); v < ve; ++v) r[v] = n[be + v];
|
|
7690
7690
|
}
|
|
7691
7691
|
for (; v < he; ++v) r[v] = r[v - A];
|
|
7692
7692
|
}
|
|
7693
7693
|
}
|
|
7694
|
-
t.l = C, t.p = $, t.b = v, t.f = h, C && (h = 1, t.m = M, t.d =
|
|
7694
|
+
t.l = C, t.p = $, t.b = v, t.f = h, C && (h = 1, t.m = M, t.d = O, t.n = b);
|
|
7695
7695
|
} while (!h);
|
|
7696
7696
|
return v != r.length && c ? ze(r, 0, v) : r.subarray(0, v);
|
|
7697
7697
|
}, "inflt"), we = a(function(e, t, r) {
|
|
@@ -7704,8 +7704,8 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7704
7704
|
e[n] |= r, e[n + 1] |= r >> 8, e[n + 2] |= r >> 16;
|
|
7705
7705
|
}, "wbits16"), Pt = a(function(e, t) {
|
|
7706
7706
|
for (var r = [], n = 0; n < e.length; ++n) e[n] && r.push({ s: n, f: e[n] });
|
|
7707
|
-
var i = r.length,
|
|
7708
|
-
if (!i) return { t:
|
|
7707
|
+
var i = r.length, s = r.slice();
|
|
7708
|
+
if (!i) return { t: Gr, l: 0 };
|
|
7709
7709
|
if (i == 1) {
|
|
7710
7710
|
var c = new Q(r[0].s + 1);
|
|
7711
7711
|
return c[r[0].s] = 1, { t: c, l: 1 };
|
|
@@ -7713,109 +7713,109 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7713
7713
|
r.sort(function(U, k) {
|
|
7714
7714
|
return U.f - k.f;
|
|
7715
7715
|
}), r.push({ s: -1, f: 25001 });
|
|
7716
|
-
var l = r[0], p = r[1], E = 0, h = 1,
|
|
7717
|
-
for (r[0] = { s: -1, f: l.f + p.f, l, r: p }; h != i - 1; ) l = r[r[E].f < r[
|
|
7718
|
-
for (var v =
|
|
7719
|
-
var C = new ae(v + 1),
|
|
7720
|
-
if (
|
|
7721
|
-
var n = 0, M = 0, b =
|
|
7722
|
-
for (
|
|
7723
|
-
return C[
|
|
7716
|
+
var l = r[0], p = r[1], E = 0, h = 1, _ = 2;
|
|
7717
|
+
for (r[0] = { s: -1, f: l.f + p.f, l, r: p }; h != i - 1; ) l = r[r[E].f < r[_].f ? E++ : _++], p = r[E != h && r[E].f < r[_].f ? E++ : _++], r[h++] = { s: -1, f: l.f + p.f, l, r: p };
|
|
7718
|
+
for (var v = s[0].s, n = 1; n < i; ++n) s[n].s > v && (v = s[n].s);
|
|
7719
|
+
var C = new ae(v + 1), O = Lt(r[h - 1], C, 0);
|
|
7720
|
+
if (O > t) {
|
|
7721
|
+
var n = 0, M = 0, b = O - t, P = 1 << b;
|
|
7722
|
+
for (s.sort(function(k, j) {
|
|
7723
|
+
return C[j.s] - C[k.s] || k.f - j.f;
|
|
7724
7724
|
}); n < i; ++n) {
|
|
7725
|
-
var w =
|
|
7726
|
-
if (C[w] > t) M += P - (1 <<
|
|
7725
|
+
var w = s[n].s;
|
|
7726
|
+
if (C[w] > t) M += P - (1 << O - C[w]), C[w] = t;
|
|
7727
7727
|
else break;
|
|
7728
7728
|
}
|
|
7729
7729
|
for (M >>= b; M > 0; ) {
|
|
7730
|
-
var L =
|
|
7730
|
+
var L = s[n].s;
|
|
7731
7731
|
C[L] < t ? M -= 1 << t - C[L]++ - 1 : ++n;
|
|
7732
7732
|
}
|
|
7733
7733
|
for (; n >= 0 && M; --n) {
|
|
7734
|
-
var x =
|
|
7734
|
+
var x = s[n].s;
|
|
7735
7735
|
C[x] == t && (--C[x], ++M);
|
|
7736
7736
|
}
|
|
7737
|
-
|
|
7737
|
+
O = t;
|
|
7738
7738
|
}
|
|
7739
|
-
return { t: new Q(C), l:
|
|
7739
|
+
return { t: new Q(C), l: O };
|
|
7740
7740
|
}, "hTree"), Lt = a(function(e, t, r) {
|
|
7741
7741
|
return e.s == -1 ? Math.max(Lt(e.l, t, r + 1), Lt(e.r, t, r + 1)) : t[e.s] = r;
|
|
7742
|
-
}, "ln"),
|
|
7742
|
+
}, "ln"), Dr = a(function(e) {
|
|
7743
7743
|
for (var t = e.length; t && !e[--t]; ) ;
|
|
7744
|
-
for (var r = new ae(++t), n = 0, i = e[0],
|
|
7744
|
+
for (var r = new ae(++t), n = 0, i = e[0], s = 1, c = a(function(p) {
|
|
7745
7745
|
r[n++] = p;
|
|
7746
|
-
}, "w"), l = 1; l <= t; ++l) if (e[l] == i && l != t) ++
|
|
7746
|
+
}, "w"), l = 1; l <= t; ++l) if (e[l] == i && l != t) ++s;
|
|
7747
7747
|
else {
|
|
7748
|
-
if (!i &&
|
|
7749
|
-
for (;
|
|
7750
|
-
|
|
7751
|
-
} else if (
|
|
7752
|
-
for (c(i), --
|
|
7753
|
-
|
|
7748
|
+
if (!i && s > 2) {
|
|
7749
|
+
for (; s > 138; s -= 138) c(32754);
|
|
7750
|
+
s > 2 && (c(s > 10 ? s - 11 << 5 | 28690 : s - 3 << 5 | 12305), s = 0);
|
|
7751
|
+
} else if (s > 3) {
|
|
7752
|
+
for (c(i), --s; s > 6; s -= 6) c(8304);
|
|
7753
|
+
s > 2 && (c(s - 3 << 5 | 8208), s = 0);
|
|
7754
7754
|
}
|
|
7755
|
-
for (;
|
|
7756
|
-
|
|
7755
|
+
for (; s--; ) c(i);
|
|
7756
|
+
s = 1, i = e[l];
|
|
7757
7757
|
}
|
|
7758
7758
|
return { c: r.subarray(0, n), n: t };
|
|
7759
7759
|
}, "lc"), Xe = a(function(e, t) {
|
|
7760
7760
|
for (var r = 0, n = 0; n < t.length; ++n) r += e[n] * t[n];
|
|
7761
7761
|
return r;
|
|
7762
|
-
}, "clen"),
|
|
7762
|
+
}, "clen"), Mr = a(function(e, t, r) {
|
|
7763
7763
|
var n = r.length, i = Bt(t + 2);
|
|
7764
7764
|
e[i] = n & 255, e[i + 1] = n >> 8, e[i + 2] = e[i] ^ 255, e[i + 3] = e[i + 1] ^ 255;
|
|
7765
|
-
for (var
|
|
7765
|
+
for (var s = 0; s < n; ++s) e[i + s + 4] = r[s];
|
|
7766
7766
|
return (i + 4 + n) * 8;
|
|
7767
|
-
}, "wfblk"),
|
|
7767
|
+
}, "wfblk"), xr = a(function(e, t, r, n, i, s, c, l, p, E, h) {
|
|
7768
7768
|
we(t, h++, r), ++i[256];
|
|
7769
|
-
for (var
|
|
7770
|
-
for (var
|
|
7771
|
-
for (var u = Pt(
|
|
7772
|
-
var
|
|
7773
|
-
if (p >= 0 &&
|
|
7774
|
-
var g,
|
|
7769
|
+
for (var _ = Pt(i, 15), v = _.t, C = _.l, O = Pt(s, 15), M = O.t, b = O.l, P = Dr(v), w = P.c, L = P.n, x = Dr(M), U = x.c, k = x.n, j = new ae(19), o = 0; o < w.length; ++o) ++j[w[o] & 31];
|
|
7770
|
+
for (var o = 0; o < U.length; ++o) ++j[U[o] & 31];
|
|
7771
|
+
for (var u = Pt(j, 7), f = u.t, I = u.l, m = 19; m > 4 && !f[At[m - 1]]; --m) ;
|
|
7772
|
+
var S = E + 5 << 3, y = Xe(i, Be) + Xe(s, Je) + c, d = Xe(i, v) + Xe(s, M) + c + 14 + 3 * m + Xe(j, f) + 2 * j[16] + 3 * j[17] + 7 * j[18];
|
|
7773
|
+
if (p >= 0 && S <= y && S <= d) return Mr(t, h, e.subarray(p, p + E));
|
|
7774
|
+
var g, R, T, A;
|
|
7775
7775
|
if (we(t, h, 1 + (d < y)), h += 2, d < y) {
|
|
7776
|
-
g = _e(v, C, 0),
|
|
7777
|
-
var
|
|
7776
|
+
g = _e(v, C, 0), R = v, T = _e(M, b, 0), A = M;
|
|
7777
|
+
var N = _e(f, I, 0);
|
|
7778
7778
|
we(t, h, L - 257), we(t, h + 5, k - 1), we(t, h + 10, m - 4), h += 14;
|
|
7779
|
-
for (var
|
|
7779
|
+
for (var o = 0; o < m; ++o) we(t, h + 3 * o, f[At[o]]);
|
|
7780
7780
|
h += 3 * m;
|
|
7781
|
-
for (var B = [w, U], $ = 0; $ < 2; ++$) for (var
|
|
7782
|
-
var q =
|
|
7783
|
-
we(t, h,
|
|
7784
|
-
}
|
|
7785
|
-
} else g =
|
|
7786
|
-
for (var
|
|
7787
|
-
var
|
|
7788
|
-
if (
|
|
7789
|
-
var q =
|
|
7790
|
-
Qe(t, h, g[q + 257]), h +=
|
|
7791
|
-
var H =
|
|
7792
|
-
Qe(t, h,
|
|
7793
|
-
} else Qe(t, h, g[
|
|
7794
|
-
}
|
|
7795
|
-
return Qe(t, h, g[256]), h +
|
|
7796
|
-
}, "wblk"), ki = new wt([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]),
|
|
7797
|
-
var c =
|
|
7781
|
+
for (var B = [w, U], $ = 0; $ < 2; ++$) for (var F = B[$], o = 0; o < F.length; ++o) {
|
|
7782
|
+
var q = F[o] & 31;
|
|
7783
|
+
we(t, h, N[q]), h += f[q], q > 15 && (we(t, h, F[o] >> 5 & 127), h += F[o] >> 12);
|
|
7784
|
+
}
|
|
7785
|
+
} else g = Oi, R = Be, T = Mi, A = Je;
|
|
7786
|
+
for (var o = 0; o < l; ++o) {
|
|
7787
|
+
var D = n[o];
|
|
7788
|
+
if (D > 255) {
|
|
7789
|
+
var q = D >> 18 & 31;
|
|
7790
|
+
Qe(t, h, g[q + 257]), h += R[q + 257], q > 7 && (we(t, h, D >> 23 & 31), h += st[q]);
|
|
7791
|
+
var H = D & 31;
|
|
7792
|
+
Qe(t, h, T[H]), h += A[H], H > 3 && (Qe(t, h, D >> 5 & 8191), h += ot[H]);
|
|
7793
|
+
} else Qe(t, h, g[D]), h += R[D];
|
|
7794
|
+
}
|
|
7795
|
+
return Qe(t, h, g[256]), h + R[256];
|
|
7796
|
+
}, "wblk"), ki = new wt([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Gr = new Q(0), Hi = a(function(e, t, r, n, i, s) {
|
|
7797
|
+
var c = s.z || e.length, l = new Q(n + c + 5 * (1 + Math.ceil(c / 7e3)) + i), p = l.subarray(n, l.length - i), E = s.l, h = (s.r || 0) & 7;
|
|
7798
7798
|
if (t) {
|
|
7799
|
-
h && (p[0] =
|
|
7800
|
-
for (var
|
|
7801
|
-
return (e[Z] ^ e[Z + 1] << P ^ e[Z + 2] << w) &
|
|
7802
|
-
}, "hsh"), x = new wt(25e3), U = new ae(288), k = new ae(32),
|
|
7803
|
-
var
|
|
7804
|
-
if (M[y] = d, b[
|
|
7799
|
+
h && (p[0] = s.r >> 3);
|
|
7800
|
+
for (var _ = ki[t - 1], v = _ >> 13, C = _ & 8191, O = (1 << r) - 1, M = s.p || new ae(32768), b = s.h || new ae(O + 1), P = Math.ceil(r / 3), w = 2 * P, L = a(function(Z) {
|
|
7801
|
+
return (e[Z] ^ e[Z + 1] << P ^ e[Z + 2] << w) & O;
|
|
7802
|
+
}, "hsh"), x = new wt(25e3), U = new ae(288), k = new ae(32), j = 0, o = 0, u = s.i || 0, f = 0, I = s.w || 0, m = 0; u + 2 < c; ++u) {
|
|
7803
|
+
var S = L(u), y = u & 32767, d = b[S];
|
|
7804
|
+
if (M[y] = d, b[S] = y, I <= u) {
|
|
7805
7805
|
var g = c - u;
|
|
7806
|
-
if ((
|
|
7807
|
-
h =
|
|
7808
|
-
for (var
|
|
7809
|
-
for (var
|
|
7806
|
+
if ((j > 7e3 || f > 24576) && (g > 423 || !E)) {
|
|
7807
|
+
h = xr(e, p, 0, x, U, k, o, f, m, u - m, h), f = j = o = 0, m = u;
|
|
7808
|
+
for (var R = 0; R < 286; ++R) U[R] = 0;
|
|
7809
|
+
for (var R = 0; R < 30; ++R) k[R] = 0;
|
|
7810
7810
|
}
|
|
7811
|
-
var
|
|
7812
|
-
if (g > 2 &&
|
|
7813
|
-
if (e[u +
|
|
7814
|
-
for (var
|
|
7815
|
-
if (
|
|
7816
|
-
if (
|
|
7817
|
-
for (var H = Math.min(B,
|
|
7818
|
-
var he = u - B +
|
|
7811
|
+
var T = 2, A = 0, N = C, B = y - d & 32767;
|
|
7812
|
+
if (g > 2 && S == L(u - B)) for (var $ = Math.min(v, g) - 1, F = Math.min(32767, u), q = Math.min(258, g); B <= F && --N && y != d; ) {
|
|
7813
|
+
if (e[u + T] == e[u + T - B]) {
|
|
7814
|
+
for (var D = 0; D < q && e[u + D] == e[u + D - B]; ++D) ;
|
|
7815
|
+
if (D > T) {
|
|
7816
|
+
if (T = D, A = B, D > $) break;
|
|
7817
|
+
for (var H = Math.min(B, D - 2), Y = 0, R = 0; R < H; ++R) {
|
|
7818
|
+
var he = u - B + R & 32767, be = M[he], ve = he - be & 32767;
|
|
7819
7819
|
ve > Y && (Y = ve, d = he);
|
|
7820
7820
|
}
|
|
7821
7821
|
}
|
|
@@ -7823,43 +7823,43 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7823
7823
|
y = d, d = M[y], B += y - d & 32767;
|
|
7824
7824
|
}
|
|
7825
7825
|
if (A) {
|
|
7826
|
-
x[f++] = 268435456 | bt[
|
|
7827
|
-
var re = bt[
|
|
7828
|
-
|
|
7826
|
+
x[f++] = 268435456 | bt[T] << 18 | Or[A];
|
|
7827
|
+
var re = bt[T] & 31, de = Or[A] & 31;
|
|
7828
|
+
o += st[re] + ot[de], ++U[257 + re], ++k[de], I = u + T, ++j;
|
|
7829
7829
|
} else x[f++] = e[u], ++U[e[u]];
|
|
7830
7830
|
}
|
|
7831
7831
|
}
|
|
7832
|
-
for (u = Math.max(u,
|
|
7833
|
-
h =
|
|
7832
|
+
for (u = Math.max(u, I); u < c; ++u) x[f++] = e[u], ++U[e[u]];
|
|
7833
|
+
h = xr(e, p, E, x, U, k, o, f, m, u - m, h), E || (s.r = h & 7 | p[h / 8 | 0] << 3, h -= 7, s.h = b, s.p = M, s.i = u, s.w = I);
|
|
7834
7834
|
} else {
|
|
7835
|
-
for (var u =
|
|
7835
|
+
for (var u = s.w || 0; u < c + E; u += 65535) {
|
|
7836
7836
|
var X = u + 65535;
|
|
7837
|
-
X >= c && (p[h / 8 | 0] = E, X = c), h =
|
|
7837
|
+
X >= c && (p[h / 8 | 0] = E, X = c), h = Mr(p, h + 1, e.subarray(u, X));
|
|
7838
7838
|
}
|
|
7839
|
-
|
|
7839
|
+
s.i = c;
|
|
7840
7840
|
}
|
|
7841
7841
|
return ze(l, 0, n + Bt(h) + i);
|
|
7842
|
-
}, "dflt"),
|
|
7842
|
+
}, "dflt"), ji = (function() {
|
|
7843
7843
|
for (var e = new Int32Array(256), t = 0; t < 256; ++t) {
|
|
7844
7844
|
for (var r = t, n = 9; --n; ) r = (r & 1 && -306674912) ^ r >>> 1;
|
|
7845
7845
|
e[t] = r;
|
|
7846
7846
|
}
|
|
7847
7847
|
return e;
|
|
7848
|
-
})(),
|
|
7848
|
+
})(), Fi = a(function() {
|
|
7849
7849
|
var e = -1;
|
|
7850
7850
|
return { p: a(function(t) {
|
|
7851
|
-
for (var r = e, n = 0; n < t.length; ++n) r =
|
|
7851
|
+
for (var r = e, n = 0; n < t.length; ++n) r = ji[r & 255 ^ t[n]] ^ r >>> 8;
|
|
7852
7852
|
e = r;
|
|
7853
7853
|
}, "p"), d: a(function() {
|
|
7854
7854
|
return ~e;
|
|
7855
7855
|
}, "d") };
|
|
7856
7856
|
}, "crc"), qi = a(function(e, t, r, n, i) {
|
|
7857
7857
|
if (!i && (i = { l: 1 }, t.dictionary)) {
|
|
7858
|
-
var
|
|
7859
|
-
c.set(
|
|
7858
|
+
var s = t.dictionary.subarray(-32768), c = new Q(s.length + e.length);
|
|
7859
|
+
c.set(s), c.set(e, s.length), e = c, i.w = s.length;
|
|
7860
7860
|
}
|
|
7861
7861
|
return Hi(e, t.level == null ? 6 : t.level, t.mem == null ? i.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + t.mem, r, n, i);
|
|
7862
|
-
}, "dopt"),
|
|
7862
|
+
}, "dopt"), $r = a(function(e, t) {
|
|
7863
7863
|
var r = {};
|
|
7864
7864
|
for (var n in e) r[n] = e[n];
|
|
7865
7865
|
for (var n in t) r[n] = t[n];
|
|
@@ -7868,7 +7868,7 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7868
7868
|
return e[t] | e[t + 1] << 8;
|
|
7869
7869
|
}, "b2"), Ee = a(function(e, t) {
|
|
7870
7870
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16 | e[t + 3] << 24) >>> 0;
|
|
7871
|
-
}, "b4"),
|
|
7871
|
+
}, "b4"), Nt = a(function(e, t) {
|
|
7872
7872
|
return Ee(e, t) + Ee(e, t + 4) * 4294967296;
|
|
7873
7873
|
}, "b8"), te = a(function(e, t, r) {
|
|
7874
7874
|
for (; r; ++t) e[t] = r, r >>>= 8;
|
|
@@ -7881,14 +7881,14 @@ function Vi(e, t) {
|
|
|
7881
7881
|
return $i(e, { i: 2 }, t && t.out, t && t.dictionary);
|
|
7882
7882
|
}
|
|
7883
7883
|
a(Vi, "inflateSync");
|
|
7884
|
-
var
|
|
7884
|
+
var kr = a(function(e, t, r, n) {
|
|
7885
7885
|
for (var i in e) {
|
|
7886
|
-
var
|
|
7887
|
-
Array.isArray(
|
|
7886
|
+
var s = e[i], c = t + i, l = n;
|
|
7887
|
+
Array.isArray(s) && (l = $r(n, s[1]), s = s[0]), s instanceof Q ? r[c] = [s, l] : (r[c += "/"] = [new Q(0), l], kr(s, c, r, n));
|
|
7888
7888
|
}
|
|
7889
|
-
}, "fltn"),
|
|
7889
|
+
}, "fltn"), Hr = typeof TextEncoder < "u" && new TextEncoder(), Ot = typeof TextDecoder < "u" && new TextDecoder(), Wi = 0;
|
|
7890
7890
|
try {
|
|
7891
|
-
|
|
7891
|
+
Ot.decode(Gr, { stream: true }), Wi = 1;
|
|
7892
7892
|
} catch {
|
|
7893
7893
|
}
|
|
7894
7894
|
var Yi = a(function(e) {
|
|
@@ -7898,41 +7898,41 @@ var Yi = a(function(e) {
|
|
|
7898
7898
|
i ? i == 3 ? (n = ((n & 15) << 18 | (e[r++] & 63) << 12 | (e[r++] & 63) << 6 | e[r++] & 63) - 65536, t += String.fromCharCode(55296 | n >> 10, 56320 | n & 1023)) : i & 1 ? t += String.fromCharCode((n & 31) << 6 | e[r++] & 63) : t += String.fromCharCode((n & 15) << 12 | (e[r++] & 63) << 6 | e[r++] & 63) : t += String.fromCharCode(n);
|
|
7899
7899
|
}
|
|
7900
7900
|
}, "dutf8");
|
|
7901
|
-
function
|
|
7901
|
+
function jr(e, t) {
|
|
7902
7902
|
var r;
|
|
7903
|
-
if (
|
|
7904
|
-
for (var n = e.length, i = new Q(e.length + (e.length >> 1)),
|
|
7905
|
-
i[
|
|
7903
|
+
if (Hr) return Hr.encode(e);
|
|
7904
|
+
for (var n = e.length, i = new Q(e.length + (e.length >> 1)), s = 0, c = a(function(E) {
|
|
7905
|
+
i[s++] = E;
|
|
7906
7906
|
}, "w"), r = 0; r < n; ++r) {
|
|
7907
|
-
if (
|
|
7908
|
-
var l = new Q(
|
|
7907
|
+
if (s + 5 > i.length) {
|
|
7908
|
+
var l = new Q(s + 8 + (n - r << 1));
|
|
7909
7909
|
l.set(i), i = l;
|
|
7910
7910
|
}
|
|
7911
7911
|
var p = e.charCodeAt(r);
|
|
7912
7912
|
p < 128 || t ? c(p) : p < 2048 ? (c(192 | p >> 6), c(128 | p & 63)) : p > 55295 && p < 57344 ? (p = 65536 + (p & 1047552) | e.charCodeAt(++r) & 1023, c(240 | p >> 18), c(128 | p >> 12 & 63), c(128 | p >> 6 & 63), c(128 | p & 63)) : (c(224 | p >> 12), c(128 | p >> 6 & 63), c(128 | p & 63));
|
|
7913
7913
|
}
|
|
7914
|
-
return ze(i, 0,
|
|
7914
|
+
return ze(i, 0, s);
|
|
7915
7915
|
}
|
|
7916
|
-
a(
|
|
7916
|
+
a(jr, "strToU8");
|
|
7917
7917
|
function Ji(e, t) {
|
|
7918
7918
|
if (t) {
|
|
7919
7919
|
for (var r = "", n = 0; n < e.length; n += 16384) r += String.fromCharCode.apply(null, e.subarray(n, n + 16384));
|
|
7920
7920
|
return r;
|
|
7921
7921
|
} else {
|
|
7922
|
-
if (
|
|
7923
|
-
var i = Yi(e),
|
|
7924
|
-
return r.length && ne(8),
|
|
7922
|
+
if (Ot) return Ot.decode(e);
|
|
7923
|
+
var i = Yi(e), s = i.s, r = i.r;
|
|
7924
|
+
return r.length && ne(8), s;
|
|
7925
7925
|
}
|
|
7926
7926
|
}
|
|
7927
7927
|
a(Ji, "strFromU8");
|
|
7928
7928
|
var zi = a(function(e, t) {
|
|
7929
7929
|
return t + 30 + Ie(e, t + 26) + Ie(e, t + 28);
|
|
7930
7930
|
}, "slzh"), Qi = a(function(e, t, r) {
|
|
7931
|
-
var n = Ie(e, t + 28), i = Ji(e.subarray(t + 46, t + 46 + n), !(Ie(e, t + 8) & 2048)),
|
|
7932
|
-
return [Ie(e, t + 10), p, E, i,
|
|
7931
|
+
var n = Ie(e, t + 28), i = Ji(e.subarray(t + 46, t + 46 + n), !(Ie(e, t + 8) & 2048)), s = t + 46 + n, c = Ee(e, t + 20), l = r && c == 4294967295 ? Xi(e, s) : [c, Ee(e, t + 24), Ee(e, t + 42)], p = l[0], E = l[1], h = l[2];
|
|
7932
|
+
return [Ie(e, t + 10), p, E, i, s + Ie(e, t + 30) + Ie(e, t + 32), h];
|
|
7933
7933
|
}, "zh"), Xi = a(function(e, t) {
|
|
7934
7934
|
for (; Ie(e, t) != 1; t += 4 + Ie(e, t + 2)) ;
|
|
7935
|
-
return [
|
|
7935
|
+
return [Nt(e, t + 12), Nt(e, t + 4), Nt(e, t + 20)];
|
|
7936
7936
|
}, "z64e"), Dt = a(function(e) {
|
|
7937
7937
|
var t = 0;
|
|
7938
7938
|
if (e) for (var r in e) {
|
|
@@ -7940,85 +7940,85 @@ var zi = a(function(e, t) {
|
|
|
7940
7940
|
n > 65535 && ne(9), t += n + 4;
|
|
7941
7941
|
}
|
|
7942
7942
|
return t;
|
|
7943
|
-
}, "exfl"), Fr = a(function(e, t, r, n, i,
|
|
7944
|
-
var p = n.length, E = r.extra, h = l && l.length,
|
|
7945
|
-
te(e, t, c != null ? 33639248 : 67324752), t += 4, c != null && (e[t++] = 20, e[t++] = r.os), e[t] = 20, t += 2, e[t++] = r.flag << 1 | (
|
|
7943
|
+
}, "exfl"), Fr = a(function(e, t, r, n, i, s, c, l) {
|
|
7944
|
+
var p = n.length, E = r.extra, h = l && l.length, _ = Dt(E);
|
|
7945
|
+
te(e, t, c != null ? 33639248 : 67324752), t += 4, c != null && (e[t++] = 20, e[t++] = r.os), e[t] = 20, t += 2, e[t++] = r.flag << 1 | (s < 0 && 8), e[t++] = i && 8, e[t++] = r.compression & 255, e[t++] = r.compression >> 8;
|
|
7946
7946
|
var v = new Date(r.mtime == null ? Date.now() : r.mtime), C = v.getFullYear() - 1980;
|
|
7947
|
-
if ((C < 0 || C > 119) && ne(10), te(e, t, C << 25 | v.getMonth() + 1 << 21 | v.getDate() << 16 | v.getHours() << 11 | v.getMinutes() << 5 | v.getSeconds() >> 1), t += 4,
|
|
7948
|
-
var M = E[
|
|
7949
|
-
te(e, t, +
|
|
7947
|
+
if ((C < 0 || C > 119) && ne(10), te(e, t, C << 25 | v.getMonth() + 1 << 21 | v.getDate() << 16 | v.getHours() << 11 | v.getMinutes() << 5 | v.getSeconds() >> 1), t += 4, s != -1 && (te(e, t, r.crc), te(e, t + 4, s < 0 ? -s - 2 : s), te(e, t + 8, r.size)), te(e, t + 12, p), te(e, t + 14, _), t += 16, c != null && (te(e, t, h), te(e, t + 6, r.attrs), te(e, t + 10, c), t += 14), e.set(n, t), t += p, _) for (var O in E) {
|
|
7948
|
+
var M = E[O], b = M.length;
|
|
7949
|
+
te(e, t, +O), te(e, t + 2, b), e.set(M, t + 4), t += 4 + b;
|
|
7950
7950
|
}
|
|
7951
7951
|
return h && (e.set(l, t), t += h), t;
|
|
7952
7952
|
}, "wzh"), Zi = a(function(e, t, r, n, i) {
|
|
7953
7953
|
te(e, t, 101010256), te(e, t + 8, r), te(e, t + 10, r), te(e, t + 12, n), te(e, t + 16, i);
|
|
7954
7954
|
}, "wzf");
|
|
7955
|
-
function
|
|
7955
|
+
function es(e, t) {
|
|
7956
7956
|
t || (t = {});
|
|
7957
7957
|
var r = {}, n = [];
|
|
7958
|
-
|
|
7959
|
-
var i = 0,
|
|
7958
|
+
kr(e, "", r, t);
|
|
7959
|
+
var i = 0, s = 0;
|
|
7960
7960
|
for (var c in r) {
|
|
7961
|
-
var l = r[c], p = l[0], E = l[1], h = E.level == 0 ? 0 : 8,
|
|
7961
|
+
var l = r[c], p = l[0], E = l[1], h = E.level == 0 ? 0 : 8, _ = jr(c), v = _.length, C = E.comment, O = C && jr(C), M = O && O.length, b = Dt(E.extra);
|
|
7962
7962
|
v > 65535 && ne(11);
|
|
7963
|
-
var P = h ? Ki(p, E) : p, w = P.length, L =
|
|
7964
|
-
L.p(p), n.push(
|
|
7963
|
+
var P = h ? Ki(p, E) : p, w = P.length, L = Fi();
|
|
7964
|
+
L.p(p), n.push($r(E, { size: p.length, crc: L.d(), c: P, f: _, m: O, u: v != c.length || O && C.length != M, o: i, compression: h })), i += 30 + v + b + w, s += 76 + 2 * (v + b) + (M || 0) + w;
|
|
7965
7965
|
}
|
|
7966
|
-
for (var x = new Q(
|
|
7967
|
-
var
|
|
7968
|
-
Fr(x,
|
|
7969
|
-
var
|
|
7970
|
-
x.set(
|
|
7966
|
+
for (var x = new Q(s + 22), U = i, k = s - i, j = 0; j < n.length; ++j) {
|
|
7967
|
+
var _ = n[j];
|
|
7968
|
+
Fr(x, _.o, _, _.f, _.u, _.c.length);
|
|
7969
|
+
var o = 30 + _.f.length + Dt(_.extra);
|
|
7970
|
+
x.set(_.c, _.o + o), Fr(x, i, _, _.f, _.u, _.c.length, _.o, _.m), i += 16 + o + (_.m ? _.m.length : 0);
|
|
7971
7971
|
}
|
|
7972
7972
|
return Zi(x, i, n.length, k, U), x;
|
|
7973
7973
|
}
|
|
7974
|
-
a(
|
|
7975
|
-
function
|
|
7974
|
+
a(es, "zipSync");
|
|
7975
|
+
function ts(e, t) {
|
|
7976
7976
|
for (var r = {}, n = e.length - 22; Ee(e, n) != 101010256; --n) (!n || e.length - n > 65558) && ne(13);
|
|
7977
7977
|
var i = Ie(e, n + 8);
|
|
7978
7978
|
if (!i) return {};
|
|
7979
|
-
var
|
|
7979
|
+
var s = Ee(e, n + 16), c = s == 4294967295 || i == 65535;
|
|
7980
7980
|
if (c) {
|
|
7981
7981
|
var l = Ee(e, n - 12);
|
|
7982
|
-
c = Ee(e, l) == 101075792, c && (i = Ee(e, l + 32),
|
|
7982
|
+
c = Ee(e, l) == 101075792, c && (i = Ee(e, l + 32), s = Ee(e, l + 48));
|
|
7983
7983
|
}
|
|
7984
7984
|
for (var p = 0; p < i; ++p) {
|
|
7985
|
-
var E = Qi(e,
|
|
7986
|
-
|
|
7985
|
+
var E = Qi(e, s, c), h = E[0], _ = E[1], v = E[2], C = E[3], O = E[4], M = E[5], b = zi(e, M);
|
|
7986
|
+
s = O, h ? h == 8 ? r[C] = Vi(e.subarray(b, b + _), { out: new Q(v) }) : ne(14, "unknown compression type " + h) : r[C] = ze(e, b, b + _);
|
|
7987
7987
|
}
|
|
7988
7988
|
return r;
|
|
7989
7989
|
}
|
|
7990
|
-
a(
|
|
7991
|
-
const
|
|
7992
|
-
function
|
|
7993
|
-
return e.filter((t) => !(t.length <
|
|
7990
|
+
a(ts, "unzipSync");
|
|
7991
|
+
const rs = [/^\/$/, /^\*+$/, /^[0-9]+$/], ns = ["/artifact/", "https://", "http://", "*********"], is = 3;
|
|
7992
|
+
function qr(e) {
|
|
7993
|
+
return e.filter((t) => !(t.length < is || rs.some((r) => r.test(t)) || ns.some((r) => t.includes(r))));
|
|
7994
7994
|
}
|
|
7995
|
-
a(
|
|
7996
|
-
const Ae = Symbol.for("@ts-pattern/matcher"),
|
|
7995
|
+
a(qr, "filterSensitiveValues");
|
|
7996
|
+
const Ae = Symbol.for("@ts-pattern/matcher"), ss = Symbol.for("@ts-pattern/isVariadic"), at = "@ts-pattern/anonymous-select-key", Mt = a((e) => !!(e && typeof e == "object"), "r"), ct = a((e) => e && !!e[Ae], "i"), Se = a((e, t, r) => {
|
|
7997
7997
|
if (ct(e)) {
|
|
7998
|
-
const n = e[Ae](), { matched: i, selections:
|
|
7999
|
-
return i &&
|
|
7998
|
+
const n = e[Ae](), { matched: i, selections: s } = n.match(t);
|
|
7999
|
+
return i && s && Object.keys(s).forEach((c) => r(c, s[c])), i;
|
|
8000
8000
|
}
|
|
8001
8001
|
if (Mt(e)) {
|
|
8002
8002
|
if (!Mt(t)) return false;
|
|
8003
8003
|
if (Array.isArray(e)) {
|
|
8004
8004
|
if (!Array.isArray(t)) return false;
|
|
8005
|
-
let n = [], i = [],
|
|
8005
|
+
let n = [], i = [], s = [];
|
|
8006
8006
|
for (const c of e.keys()) {
|
|
8007
8007
|
const l = e[c];
|
|
8008
|
-
ct(l) && l[
|
|
8008
|
+
ct(l) && l[ss] ? s.push(l) : s.length ? i.push(l) : n.push(l);
|
|
8009
8009
|
}
|
|
8010
|
-
if (
|
|
8011
|
-
if (
|
|
8010
|
+
if (s.length) {
|
|
8011
|
+
if (s.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
8012
8012
|
if (t.length < n.length + i.length) return false;
|
|
8013
8013
|
const c = t.slice(0, n.length), l = i.length === 0 ? [] : t.slice(-i.length), p = t.slice(n.length, i.length === 0 ? 1 / 0 : -i.length);
|
|
8014
|
-
return n.every((E, h) => Se(E, c[h], r)) && i.every((E, h) => Se(E, l[h], r)) && (
|
|
8014
|
+
return n.every((E, h) => Se(E, c[h], r)) && i.every((E, h) => Se(E, l[h], r)) && (s.length === 0 || Se(s[0], p, r));
|
|
8015
8015
|
}
|
|
8016
8016
|
return e.length === t.length && e.every((c, l) => Se(c, t[l], r));
|
|
8017
8017
|
}
|
|
8018
8018
|
return Reflect.ownKeys(e).every((n) => {
|
|
8019
8019
|
const i = e[n];
|
|
8020
|
-
return (n in t || ct(
|
|
8021
|
-
var
|
|
8020
|
+
return (n in t || ct(s = i) && s[Ae]().matcherType === "optional") && Se(i, t[n], r);
|
|
8021
|
+
var s;
|
|
8022
8022
|
});
|
|
8023
8023
|
}
|
|
8024
8024
|
return Object.is(t, e);
|
|
@@ -8027,57 +8027,57 @@ const Ae = Symbol.for("@ts-pattern/matcher"), oo = Symbol.for("@ts-pattern/isVar
|
|
|
8027
8027
|
return Mt(e) ? ct(e) ? (t = (r = (n = e[Ae]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? Ze(e, Pe) : Ze(Object.values(e), Pe) : [];
|
|
8028
8028
|
}, "s"), Ze = a((e, t) => e.reduce((r, n) => r.concat(t(n)), []), "c");
|
|
8029
8029
|
function ce(e) {
|
|
8030
|
-
return Object.assign(e, { optional: a(() =>
|
|
8030
|
+
return Object.assign(e, { optional: a(() => os(e), "optional"), and: a((t) => W(e, t), "and"), or: a((t) => as(e, t), "or"), select: a((t) => t === void 0 ? Kr(e) : Kr(t, e), "select") });
|
|
8031
8031
|
}
|
|
8032
8032
|
a(ce, "a");
|
|
8033
|
-
function
|
|
8033
|
+
function os(e) {
|
|
8034
8034
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8035
8035
|
let r = {};
|
|
8036
|
-
const n = a((i,
|
|
8037
|
-
r[i] =
|
|
8036
|
+
const n = a((i, s) => {
|
|
8037
|
+
r[i] = s;
|
|
8038
8038
|
}, "r2");
|
|
8039
8039
|
return t === void 0 ? (Pe(e).forEach((i) => n(i, void 0)), { matched: true, selections: r }) : { matched: Se(e, t, n), selections: r };
|
|
8040
8040
|
}, "match"), getSelectionKeys: a(() => Pe(e), "getSelectionKeys"), matcherType: "optional" }) });
|
|
8041
8041
|
}
|
|
8042
|
-
a(
|
|
8042
|
+
a(os, "h");
|
|
8043
8043
|
function W(...e) {
|
|
8044
8044
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8045
8045
|
let r = {};
|
|
8046
|
-
const n = a((i,
|
|
8047
|
-
r[i] =
|
|
8046
|
+
const n = a((i, s) => {
|
|
8047
|
+
r[i] = s;
|
|
8048
8048
|
}, "r2");
|
|
8049
8049
|
return { matched: e.every((i) => Se(i, t, n)), selections: r };
|
|
8050
8050
|
}, "match"), getSelectionKeys: a(() => Ze(e, Pe), "getSelectionKeys"), matcherType: "and" }) });
|
|
8051
8051
|
}
|
|
8052
8052
|
a(W, "d");
|
|
8053
|
-
function
|
|
8053
|
+
function as(...e) {
|
|
8054
8054
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8055
8055
|
let r = {};
|
|
8056
|
-
const n = a((i,
|
|
8057
|
-
r[i] =
|
|
8056
|
+
const n = a((i, s) => {
|
|
8057
|
+
r[i] = s;
|
|
8058
8058
|
}, "r2");
|
|
8059
8059
|
return Ze(e, Pe).forEach((i) => n(i, void 0)), { matched: e.some((i) => Se(i, t, n)), selections: r };
|
|
8060
8060
|
}, "match"), getSelectionKeys: a(() => Ze(e, Pe), "getSelectionKeys"), matcherType: "or" }) });
|
|
8061
8061
|
}
|
|
8062
|
-
a(
|
|
8062
|
+
a(as, "y");
|
|
8063
8063
|
function K(e) {
|
|
8064
8064
|
return { [Ae]: () => ({ match: a((t) => ({ matched: !!e(t) }), "match") }) };
|
|
8065
8065
|
}
|
|
8066
8066
|
a(K, "p");
|
|
8067
|
-
function
|
|
8067
|
+
function Kr(...e) {
|
|
8068
8068
|
const t = typeof e[0] == "string" ? e[0] : void 0, r = e.length === 2 ? e[1] : typeof e[0] == "string" ? void 0 : e[0];
|
|
8069
8069
|
return ce({ [Ae]: () => ({ match: a((n) => {
|
|
8070
8070
|
let i = { [t ?? at]: n };
|
|
8071
|
-
return { matched: r === void 0 || Se(r, n, (
|
|
8072
|
-
i[
|
|
8071
|
+
return { matched: r === void 0 || Se(r, n, (s, c) => {
|
|
8072
|
+
i[s] = c;
|
|
8073
8073
|
}), selections: i };
|
|
8074
8074
|
}, "match"), getSelectionKeys: a(() => [t ?? at].concat(r === void 0 ? [] : Pe(r)), "getSelectionKeys") }) });
|
|
8075
8075
|
}
|
|
8076
|
-
a(
|
|
8077
|
-
function
|
|
8076
|
+
a(Kr, "v");
|
|
8077
|
+
function Vr(e) {
|
|
8078
8078
|
return true;
|
|
8079
8079
|
}
|
|
8080
|
-
a(
|
|
8080
|
+
a(Vr, "b");
|
|
8081
8081
|
function Re(e) {
|
|
8082
8082
|
return typeof e == "number";
|
|
8083
8083
|
}
|
|
@@ -8086,28 +8086,28 @@ function Le(e) {
|
|
|
8086
8086
|
return typeof e == "string";
|
|
8087
8087
|
}
|
|
8088
8088
|
a(Le, "S");
|
|
8089
|
-
function
|
|
8089
|
+
function Ne(e) {
|
|
8090
8090
|
return typeof e == "bigint";
|
|
8091
8091
|
}
|
|
8092
|
-
a(
|
|
8093
|
-
const
|
|
8094
|
-
return
|
|
8092
|
+
a(Ne, "j"), ce(K(Vr)), ce(K(Vr));
|
|
8093
|
+
const Oe = a((e) => Object.assign(ce(e), { startsWith: a((t) => {
|
|
8094
|
+
return Oe(W(e, (r = t, K((n) => Le(n) && n.startsWith(r)))));
|
|
8095
8095
|
var r;
|
|
8096
8096
|
}, "startsWith"), endsWith: a((t) => {
|
|
8097
|
-
return
|
|
8097
|
+
return Oe(W(e, (r = t, K((n) => Le(n) && n.endsWith(r)))));
|
|
8098
8098
|
var r;
|
|
8099
|
-
}, "endsWith"), minLength: a((t) =>
|
|
8100
|
-
return
|
|
8099
|
+
}, "endsWith"), minLength: a((t) => Oe(W(e, ((r) => K((n) => Le(n) && n.length >= r))(t))), "minLength"), length: a((t) => Oe(W(e, ((r) => K((n) => Le(n) && n.length === r))(t))), "length"), maxLength: a((t) => Oe(W(e, ((r) => K((n) => Le(n) && n.length <= r))(t))), "maxLength"), includes: a((t) => {
|
|
8100
|
+
return Oe(W(e, (r = t, K((n) => Le(n) && n.includes(r)))));
|
|
8101
8101
|
var r;
|
|
8102
8102
|
}, "includes"), regex: a((t) => {
|
|
8103
|
-
return
|
|
8103
|
+
return Oe(W(e, (r = t, K((n) => Le(n) && !!n.match(r)))));
|
|
8104
8104
|
var r;
|
|
8105
8105
|
}, "regex") }), "x");
|
|
8106
|
-
|
|
8107
|
-
const Te = a((e) => Object.assign(ce(e), { between: a((t, r) => Te(W(e, ((n, i) => K((
|
|
8106
|
+
Oe(K(Le));
|
|
8107
|
+
const Te = a((e) => Object.assign(ce(e), { between: a((t, r) => Te(W(e, ((n, i) => K((s) => Re(s) && n <= s && i >= s))(t, r))), "between"), lt: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n < r))(t))), "lt"), gt: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n > r))(t))), "gt"), lte: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n <= r))(t))), "lte"), gte: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n >= r))(t))), "gte"), int: a(() => Te(W(e, K((t) => Re(t) && Number.isInteger(t)))), "int"), finite: a(() => Te(W(e, K((t) => Re(t) && Number.isFinite(t)))), "finite"), positive: a(() => Te(W(e, K((t) => Re(t) && t > 0))), "positive"), negative: a(() => Te(W(e, K((t) => Re(t) && t < 0))), "negative") }), "N");
|
|
8108
8108
|
Te(K(Re));
|
|
8109
|
-
const De = a((e) => Object.assign(ce(e), { between: a((t, r) => De(W(e, ((n, i) => K((
|
|
8110
|
-
De(K(
|
|
8109
|
+
const De = a((e) => Object.assign(ce(e), { between: a((t, r) => De(W(e, ((n, i) => K((s) => Ne(s) && n <= s && i >= s))(t, r))), "between"), lt: a((t) => De(W(e, ((r) => K((n) => Ne(n) && n < r))(t))), "lt"), gt: a((t) => De(W(e, ((r) => K((n) => Ne(n) && n > r))(t))), "gt"), lte: a((t) => De(W(e, ((r) => K((n) => Ne(n) && n <= r))(t))), "lte"), gte: a((t) => De(W(e, ((r) => K((n) => Ne(n) && n >= r))(t))), "gte"), positive: a(() => De(W(e, K((t) => Ne(t) && t > 0))), "positive"), negative: a(() => De(W(e, K((t) => Ne(t) && t < 0))), "negative") }), "k");
|
|
8110
|
+
De(K(Ne)), ce(K(function(e) {
|
|
8111
8111
|
return typeof e == "boolean";
|
|
8112
8112
|
})), ce(K(function(e) {
|
|
8113
8113
|
return typeof e == "symbol";
|
|
@@ -8116,7 +8116,7 @@ De(K(Oe)), ce(K(function(e) {
|
|
|
8116
8116
|
})), ce(K(function(e) {
|
|
8117
8117
|
return e != null;
|
|
8118
8118
|
}));
|
|
8119
|
-
class
|
|
8119
|
+
class cs extends Error {
|
|
8120
8120
|
static {
|
|
8121
8121
|
a(this, "I");
|
|
8122
8122
|
}
|
|
@@ -8131,10 +8131,10 @@ class co extends Error {
|
|
|
8131
8131
|
}
|
|
8132
8132
|
}
|
|
8133
8133
|
const xt = { matched: false, value: void 0 };
|
|
8134
|
-
function
|
|
8134
|
+
function us(e) {
|
|
8135
8135
|
return new mt(e, xt);
|
|
8136
8136
|
}
|
|
8137
|
-
a(
|
|
8137
|
+
a(us, "M");
|
|
8138
8138
|
class mt {
|
|
8139
8139
|
static {
|
|
8140
8140
|
a(this, "R");
|
|
@@ -8147,10 +8147,10 @@ class mt {
|
|
|
8147
8147
|
const r = t[t.length - 1], n = [t[0]];
|
|
8148
8148
|
let i;
|
|
8149
8149
|
t.length === 3 && typeof t[1] == "function" ? i = t[1] : t.length > 2 && n.push(...t.slice(1, t.length - 1));
|
|
8150
|
-
let
|
|
8150
|
+
let s = false, c = {};
|
|
8151
8151
|
const l = a((E, h) => {
|
|
8152
|
-
|
|
8153
|
-
}, "u2"), p = !n.some((E) => Se(E, this.input, l)) || i && !i(this.input) ? xt : { matched: true, value: r(
|
|
8152
|
+
s = true, c[E] = h;
|
|
8153
|
+
}, "u2"), p = !n.some((E) => Se(E, this.input, l)) || i && !i(this.input) ? xt : { matched: true, value: r(s ? at in c ? c[at] : c : this.input, this.input) };
|
|
8154
8154
|
return new mt(this.input, p);
|
|
8155
8155
|
}
|
|
8156
8156
|
when(t, r) {
|
|
@@ -8161,7 +8161,7 @@ class mt {
|
|
|
8161
8161
|
otherwise(t) {
|
|
8162
8162
|
return this.state.matched ? this.state.value : t(this.input);
|
|
8163
8163
|
}
|
|
8164
|
-
exhaustive(t =
|
|
8164
|
+
exhaustive(t = ls) {
|
|
8165
8165
|
return this.state.matched ? this.state.value : t(this.input);
|
|
8166
8166
|
}
|
|
8167
8167
|
run() {
|
|
@@ -8174,91 +8174,91 @@ class mt {
|
|
|
8174
8174
|
return this;
|
|
8175
8175
|
}
|
|
8176
8176
|
}
|
|
8177
|
-
function
|
|
8178
|
-
throw new
|
|
8177
|
+
function ls(e) {
|
|
8178
|
+
throw new cs(e);
|
|
8179
8179
|
}
|
|
8180
|
-
a(
|
|
8181
|
-
const
|
|
8182
|
-
function
|
|
8183
|
-
return e.reduce((r, n) => r.replaceAll(n,
|
|
8180
|
+
a(ls, "F");
|
|
8181
|
+
const fs = "[REDACTED]", hs = /* @__PURE__ */ new Set(["sha1", "_sha1", "pageref", "downloadsPath", "tracesDir", "pageId"]);
|
|
8182
|
+
function oe({ sensitiveValues: e, str: t }) {
|
|
8183
|
+
return e.reduce((r, n) => r.replaceAll(n, fs), t);
|
|
8184
8184
|
}
|
|
8185
|
-
a(
|
|
8186
|
-
function
|
|
8185
|
+
a(oe, "scrubString");
|
|
8186
|
+
function ds(e) {
|
|
8187
8187
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
8188
8188
|
}
|
|
8189
|
-
a(
|
|
8189
|
+
a(ds, "isRecord");
|
|
8190
8190
|
function et({ sensitiveValues: e, value: t }) {
|
|
8191
|
-
return typeof t == "string" ?
|
|
8191
|
+
return typeof t == "string" ? oe({ sensitiveValues: e, str: t }) : Array.isArray(t) ? t.map((r) => et({ sensitiveValues: e, value: r })) : ds(t) ? Ge({ obj: t, sensitiveValues: e }) : t;
|
|
8192
8192
|
}
|
|
8193
8193
|
a(et, "scrubValue");
|
|
8194
|
-
function
|
|
8195
|
-
return
|
|
8194
|
+
function ps(e) {
|
|
8195
|
+
return hs.has(e) ? true : e.toLowerCase().endsWith("sha1");
|
|
8196
8196
|
}
|
|
8197
|
-
a(
|
|
8197
|
+
a(ps, "shouldPreserveKey");
|
|
8198
8198
|
function Ge({ obj: e, sensitiveValues: t }) {
|
|
8199
|
-
return Object.fromEntries(Object.entries(e).map(([r, n]) => [r,
|
|
8199
|
+
return Object.fromEntries(Object.entries(e).map(([r, n]) => [r, ps(r) ? n : et({ sensitiveValues: t, value: n })]));
|
|
8200
8200
|
}
|
|
8201
8201
|
a(Ge, "scrubObject");
|
|
8202
|
-
function
|
|
8203
|
-
return e ? { ...e, message:
|
|
8202
|
+
function Wr({ error: e, sensitiveValues: t }) {
|
|
8203
|
+
return e ? { ...e, message: oe({ sensitiveValues: t, str: e.message }) } : void 0;
|
|
8204
8204
|
}
|
|
8205
|
-
a(
|
|
8206
|
-
function
|
|
8207
|
-
return
|
|
8205
|
+
a(Wr, "scrubError");
|
|
8206
|
+
function ms({ event: e, sensitiveValues: t }) {
|
|
8207
|
+
return us(e).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: oe({ sensitiveValues: t, str: n.preview }), value: et({ sensitiveValues: t, value: n.value }) })), text: oe({ sensitiveValues: t, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }), title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: Wr({ error: r.error, sensitiveValues: t }), result: r.result !== void 0 ? et({ sensitiveValues: t, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: Wr({ error: r.error, sensitiveValues: t }), params: Ge({ obj: r.params, sensitiveValues: t }), result: r.result !== void 0 ? et({ sensitiveValues: t, value: r.result }) : void 0, title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? oe({ sensitiveValues: t, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: oe({ sensitiveValues: t, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: oe({ sensitiveValues: t, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: Ge({ obj: r.options, sensitiveValues: t }), title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
|
|
8208
8208
|
}
|
|
8209
|
-
a(
|
|
8210
|
-
function
|
|
8209
|
+
a(ms, "scrubTraceEvent");
|
|
8210
|
+
function Es({ content: e, sensitiveValues: t }) {
|
|
8211
8211
|
const r = new TextDecoder$1(), n = new TextEncoder$1(), c = r.decode(e).split(`
|
|
8212
8212
|
`).map((l) => {
|
|
8213
8213
|
if (!l.trim()) return l;
|
|
8214
8214
|
try {
|
|
8215
|
-
const p = JSON.parse(l), E =
|
|
8215
|
+
const p = JSON.parse(l), E = ms({ event: p, sensitiveValues: t });
|
|
8216
8216
|
return JSON.stringify(E);
|
|
8217
8217
|
} catch {
|
|
8218
|
-
return
|
|
8218
|
+
return oe({ sensitiveValues: t, str: l });
|
|
8219
8219
|
}
|
|
8220
8220
|
});
|
|
8221
8221
|
return n.encode(c.join(`
|
|
8222
8222
|
`));
|
|
8223
8223
|
}
|
|
8224
|
-
a(
|
|
8225
|
-
function
|
|
8226
|
-
const r = new TextDecoder$1(), n = new TextEncoder$1(), i =
|
|
8224
|
+
a(Es, "scrubJsonLinesFile");
|
|
8225
|
+
function Yr({ content: e, sensitiveValues: t }) {
|
|
8226
|
+
const r = new TextDecoder$1(), n = new TextEncoder$1(), i = oe({ sensitiveValues: t, str: r.decode(e) });
|
|
8227
8227
|
return n.encode(i);
|
|
8228
8228
|
}
|
|
8229
|
-
a(
|
|
8229
|
+
a(Yr, "scrubTextFile");
|
|
8230
8230
|
async function Gt({ sensitiveValues: e, traceBuffer: t }) {
|
|
8231
|
-
const r =
|
|
8231
|
+
const r = qr(e);
|
|
8232
8232
|
if (r.length === 0) return new Uint8Array(t);
|
|
8233
|
-
const n = [...r].sort((p, E) => E.length - p.length), i =
|
|
8234
|
-
return
|
|
8233
|
+
const n = [...r].sort((p, E) => E.length - p.length), i = ts(new Uint8Array(t)), s = Object.entries(i), c = await Promise.all(s.map(async ([p, E]) => [p, await gs({ content: E, filename: p, sensitiveValues: n })])), l = Object.fromEntries(c);
|
|
8234
|
+
return es(l);
|
|
8235
8235
|
}
|
|
8236
8236
|
a(Gt, "scrubTrace");
|
|
8237
|
-
async function
|
|
8237
|
+
async function gs({ content: e, filename: t, sensitiveValues: r }) {
|
|
8238
8238
|
const n = t.toLowerCase();
|
|
8239
|
-
return n.endsWith(".trace") || n.endsWith(".network") ?
|
|
8239
|
+
return n.endsWith(".trace") || n.endsWith(".network") ? Es({ content: e, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Yr({ content: e, sensitiveValues: r }) : n.startsWith("resources/") ? _s({ content: e, sensitiveValues: r }) : e;
|
|
8240
8240
|
}
|
|
8241
|
-
a(
|
|
8242
|
-
async function
|
|
8243
|
-
return await Li.isBinaryFile(Buffer.from(e)) ? e :
|
|
8241
|
+
a(gs, "scrubFile");
|
|
8242
|
+
async function _s({ content: e, sensitiveValues: t }) {
|
|
8243
|
+
return await Li.isBinaryFile(Buffer.from(e)) ? e : Yr({ content: e, sensitiveValues: t });
|
|
8244
8244
|
}
|
|
8245
|
-
a(
|
|
8246
|
-
async function
|
|
8245
|
+
a(_s, "scrubResourceFile");
|
|
8246
|
+
async function Is({ sensitiveValues: e, tracePath: t }) {
|
|
8247
8247
|
const r = [], n = createReadStream(t);
|
|
8248
|
-
for await (const
|
|
8248
|
+
for await (const s of n) r.push(Uint8Array.from(s));
|
|
8249
8249
|
const i = new Uint8Array(Buffer.concat(r));
|
|
8250
8250
|
return Gt({ sensitiveValues: e, traceBuffer: i });
|
|
8251
8251
|
}
|
|
8252
|
-
a(
|
|
8253
|
-
async function
|
|
8252
|
+
a(Is, "scrubTraceFromPath");
|
|
8253
|
+
async function Ss({ sensitiveValues: e, traceFd: t, tracePath: r }) {
|
|
8254
8254
|
const n = [], i = createReadStream(r, { autoClose: true, fd: t });
|
|
8255
8255
|
for await (const c of i) n.push(Uint8Array.from(c));
|
|
8256
|
-
const
|
|
8257
|
-
return Gt({ sensitiveValues: e, traceBuffer:
|
|
8256
|
+
const s = new Uint8Array(Buffer.concat(n));
|
|
8257
|
+
return Gt({ sensitiveValues: e, traceBuffer: s });
|
|
8258
8258
|
}
|
|
8259
|
-
a(
|
|
8260
|
-
const
|
|
8261
|
-
class
|
|
8259
|
+
a(Ss, "scrubTraceFromFd");
|
|
8260
|
+
const Jr = { AUTHENTICATION_FAILED: 1008 }, Rs = 2e4, Ts = 5e4, ys = 3e4;
|
|
8261
|
+
class ws {
|
|
8262
8262
|
static {
|
|
8263
8263
|
a(this, "WebSocketClient");
|
|
8264
8264
|
}
|
|
@@ -8279,8 +8279,8 @@ class Ao {
|
|
|
8279
8279
|
authenticationFailed = false;
|
|
8280
8280
|
pingIntervalTimer;
|
|
8281
8281
|
lastPongAt = 0;
|
|
8282
|
-
constructor({ apiKey: t, maxBufferSize: r = 1e3, maxReconnectAttempts: n = 3, onError: i, onMessage:
|
|
8283
|
-
this.url = p, this.apiKey = t, this.projectId = c, this.maxBufferSize = r, this.reconnectDelay = l, this.maxReconnectAttempts = n, this.onMessage =
|
|
8282
|
+
constructor({ apiKey: t, maxBufferSize: r = 1e3, maxReconnectAttempts: n = 3, onError: i, onMessage: s, projectId: c, reconnectDelay: l = 2e3, url: p }) {
|
|
8283
|
+
this.url = p, this.apiKey = t, this.projectId = c, this.maxBufferSize = r, this.reconnectDelay = l, this.maxReconnectAttempts = n, this.onMessage = s, this.onError = i, this.connect();
|
|
8284
8284
|
}
|
|
8285
8285
|
connect() {
|
|
8286
8286
|
try {
|
|
@@ -8294,7 +8294,7 @@ class Ao {
|
|
|
8294
8294
|
} catch {
|
|
8295
8295
|
}
|
|
8296
8296
|
}), this.socket.on("close", (r, n) => {
|
|
8297
|
-
this.isAuthenticated = false, this.clearPingInterval(), r ===
|
|
8297
|
+
this.isAuthenticated = false, this.clearPingInterval(), r === Jr.AUTHENTICATION_FAILED && (this.authenticationFailed = true, this.onError && this.onError({ code: r, message: n.toString() || "Authentication failed", reason: n.toString() })), !this.isManualClose && !this.authenticationFailed && this.reconnectAttempts < this.maxReconnectAttempts && this.scheduleReconnect();
|
|
8298
8298
|
}), this.socket.on("error", () => {
|
|
8299
8299
|
});
|
|
8300
8300
|
} catch {
|
|
@@ -8303,19 +8303,19 @@ class Ao {
|
|
|
8303
8303
|
}
|
|
8304
8304
|
scheduleReconnect() {
|
|
8305
8305
|
this.reconnectTimer && clearTimeout(this.reconnectTimer);
|
|
8306
|
-
const t = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts),
|
|
8306
|
+
const t = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts), ys);
|
|
8307
8307
|
this.reconnectAttempts++, this.reconnectTimer = setTimeout(() => {
|
|
8308
8308
|
this.connect();
|
|
8309
8309
|
}, t), this.reconnectTimer.unref();
|
|
8310
8310
|
}
|
|
8311
8311
|
startPingInterval() {
|
|
8312
8312
|
this.clearPingInterval(), this.lastPongAt = Date.now(), this.pingIntervalTimer = setInterval(() => {
|
|
8313
|
-
if (Date.now() - this.lastPongAt >
|
|
8313
|
+
if (Date.now() - this.lastPongAt > Ts) {
|
|
8314
8314
|
this.clearPingInterval(), this.socket?.terminate();
|
|
8315
8315
|
return;
|
|
8316
8316
|
}
|
|
8317
8317
|
this.socket?.readyState === WebSocket.OPEN && this.socket.send(JSON.stringify({ type: "ping" }));
|
|
8318
|
-
},
|
|
8318
|
+
}, Rs), this.pingIntervalTimer.unref();
|
|
8319
8319
|
}
|
|
8320
8320
|
clearPingInterval() {
|
|
8321
8321
|
this.pingIntervalTimer && (clearInterval(this.pingIntervalTimer), this.pingIntervalTimer = void 0);
|
|
@@ -8343,9 +8343,9 @@ class Ao {
|
|
|
8343
8343
|
return;
|
|
8344
8344
|
}
|
|
8345
8345
|
const n = JSON.stringify(t);
|
|
8346
|
-
await new Promise((i,
|
|
8346
|
+
await new Promise((i, s) => {
|
|
8347
8347
|
r.send(n, (c) => {
|
|
8348
|
-
c ? (this.bufferEvent(t),
|
|
8348
|
+
c ? (this.bufferEvent(t), s(c)) : i();
|
|
8349
8349
|
});
|
|
8350
8350
|
});
|
|
8351
8351
|
}
|
|
@@ -8362,108 +8362,108 @@ class Ao {
|
|
|
8362
8362
|
return [...this.buffer];
|
|
8363
8363
|
}
|
|
8364
8364
|
}
|
|
8365
|
-
var
|
|
8365
|
+
var As = { detect({ env: e }) {
|
|
8366
8366
|
return !!e.APPVEYOR;
|
|
8367
8367
|
}, configuration({ env: e }) {
|
|
8368
8368
|
const t = e.APPVEYOR_PULL_REQUEST_NUMBER, r = !!t;
|
|
8369
8369
|
return { name: "Appveyor", service: "appveyor", commit: e.APPVEYOR_REPO_COMMIT, tag: e.APPVEYOR_REPO_TAG_NAME, build: e.APPVEYOR_BUILD_NUMBER, buildUrl: `https://ci.appveyor.com/project/${e.APPVEYOR_PROJECT_SLUG}/build/${e.APPVEYOR_BUILD_VERSION}`, branch: e.APPVEYOR_REPO_BRANCH, job: e.APPVEYOR_JOB_NUMBER, jobUrl: `https://ci.appveyor.com/project/${e.APPVEYOR_PROJECT_SLUG}/build/job/${e.APPVEYOR_JOB_ID}`, pr: t, isPr: r, prBranch: e.APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH, slug: e.APPVEYOR_REPO_NAME, root: e.APPVEYOR_BUILD_FOLDER };
|
|
8370
8370
|
} };
|
|
8371
|
-
function
|
|
8371
|
+
function zr(e) {
|
|
8372
8372
|
return (/\d+(?!.*\d+)/.exec(e) || [])[0];
|
|
8373
8373
|
}
|
|
8374
|
-
a(
|
|
8374
|
+
a(zr, "prNumber");
|
|
8375
8375
|
function tt(e) {
|
|
8376
8376
|
return e ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(e)[1] : void 0;
|
|
8377
8377
|
}
|
|
8378
8378
|
a(tt, "parseBranch");
|
|
8379
|
-
var
|
|
8379
|
+
var bs = { detect({ env: e }) {
|
|
8380
8380
|
return !!e.BUILD_BUILDURI;
|
|
8381
8381
|
}, configuration({ env: e }) {
|
|
8382
8382
|
const t = e.SYSTEM_PULLREQUEST_PULLREQUESTID, r = !!t;
|
|
8383
8383
|
return { name: "Azure Pipelines", service: "azurePipelines", commit: e.BUILD_SOURCEVERSION, build: e.BUILD_BUILDNUMBER, branch: tt(r ? e.SYSTEM_PULLREQUEST_TARGETBRANCH : e.BUILD_SOURCEBRANCH), pr: t, isPr: r, prBranch: tt(r ? e.SYSTEM_PULLREQUEST_SOURCEBRANCH : void 0), root: e.BUILD_REPOSITORY_LOCALPATH };
|
|
8384
|
-
} },
|
|
8384
|
+
} }, vs = { detect({ env: e }) {
|
|
8385
8385
|
return !!e.bamboo_agentId;
|
|
8386
8386
|
}, configuration({ env: e }) {
|
|
8387
8387
|
return { name: "Bamboo", service: "bamboo", commit: e.bamboo_planRepository_1_revision, build: e.bamboo_buildNumber, buildUrl: e.bamboo_buildResultsUrl, branch: e.bamboo_planRepository_1_branchName, job: e.bamboo_buildKey, root: e.bamboo_build_working_directory };
|
|
8388
|
-
} },
|
|
8388
|
+
} }, Cs = { detect({ env: e }) {
|
|
8389
8389
|
return !!e.BITBUCKET_BUILD_NUMBER;
|
|
8390
8390
|
}, configuration({ env: e }) {
|
|
8391
8391
|
return { name: "Bitbucket Pipelines", service: "bitbucket", commit: e.BITBUCKET_COMMIT, tag: e.BITBUCKET_TAG, build: e.BITBUCKET_BUILD_NUMBER, buildUrl: `https://bitbucket.org/${e.BITBUCKET_REPO_FULL_NAME}/addon/pipelines/home#!/results/${e.BITBUCKET_BUILD_NUMBER}`, branch: e.BITBUCKET_BRANCH, slug: e.BITBUCKET_REPO_FULL_NAME, root: e.BITBUCKET_CLONE_DIR };
|
|
8392
|
-
} },
|
|
8392
|
+
} }, Us = { detect({ env: e }) {
|
|
8393
8393
|
return !!e.BITRISE_IO;
|
|
8394
8394
|
}, configuration({ env: e }) {
|
|
8395
8395
|
const t = e.BITRISE_PULL_REQUEST === "false" ? void 0 : e.BITRISE_PULL_REQUEST, r = !!t;
|
|
8396
8396
|
return { name: "Bitrise", service: "bitrise", commit: e.BITRISE_GIT_COMMIT, tag: e.BITRISE_GIT_TAG, build: e.BITRISE_BUILD_NUMBER, buildUrl: e.BITRISE_BUILD_URL, branch: r ? e.BITRISEIO_GIT_BRANCH_DEST : e.BITRISE_GIT_BRANCH, pr: t, isPr: r, prBranch: r ? e.BITRISE_GIT_BRANCH : void 0, slug: e.BITRISE_APP_SLUG };
|
|
8397
|
-
} },
|
|
8397
|
+
} }, Bs = { detect({ env: e }) {
|
|
8398
8398
|
return !!e.BUDDY_WORKSPACE_ID;
|
|
8399
8399
|
}, configuration({ env: e }) {
|
|
8400
|
-
const t =
|
|
8400
|
+
const t = zr(e.BUDDY_EXECUTION_PULL_REQUEST_ID), r = !!t;
|
|
8401
8401
|
return { name: "Buddy", service: "buddy", commit: e.BUDDY_EXECUTION_REVISION, tag: e.BUDDY_EXECUTION_TAG, build: e.BUDDY_EXECUTION_ID, buildUrl: e.BUDDY_EXECUTION_URL, branch: r ? e.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH : e.BUDDY_EXECUTION_BRANCH, pr: t, isPr: r, slug: e.BUDDY_REPO_SLUG };
|
|
8402
|
-
} }, $e = { exports: {} }, $t,
|
|
8403
|
-
function
|
|
8404
|
-
if (
|
|
8405
|
-
|
|
8402
|
+
} }, $e = { exports: {} }, $t, Qr;
|
|
8403
|
+
function Ps() {
|
|
8404
|
+
if (Qr) return $t;
|
|
8405
|
+
Qr = 1, $t = n, n.sync = i;
|
|
8406
8406
|
var e = qe;
|
|
8407
|
-
function t(
|
|
8407
|
+
function t(s, c) {
|
|
8408
8408
|
var l = c.pathExt !== void 0 ? c.pathExt : process.env.PATHEXT;
|
|
8409
8409
|
if (!l || (l = l.split(";"), l.indexOf("") !== -1)) return true;
|
|
8410
8410
|
for (var p = 0; p < l.length; p++) {
|
|
8411
8411
|
var E = l[p].toLowerCase();
|
|
8412
|
-
if (E &&
|
|
8412
|
+
if (E && s.substr(-E.length).toLowerCase() === E) return true;
|
|
8413
8413
|
}
|
|
8414
8414
|
return false;
|
|
8415
8415
|
}
|
|
8416
8416
|
a(t, "checkPathExt");
|
|
8417
|
-
function r(
|
|
8418
|
-
return !
|
|
8417
|
+
function r(s, c, l) {
|
|
8418
|
+
return !s.isSymbolicLink() && !s.isFile() ? false : t(c, l);
|
|
8419
8419
|
}
|
|
8420
8420
|
a(r, "checkStat");
|
|
8421
|
-
function n(
|
|
8422
|
-
e.stat(
|
|
8423
|
-
l(p, p ? false : r(E,
|
|
8421
|
+
function n(s, c, l) {
|
|
8422
|
+
e.stat(s, function(p, E) {
|
|
8423
|
+
l(p, p ? false : r(E, s, c));
|
|
8424
8424
|
});
|
|
8425
8425
|
}
|
|
8426
8426
|
a(n, "isexe");
|
|
8427
|
-
function i(
|
|
8428
|
-
return r(e.statSync(
|
|
8427
|
+
function i(s, c) {
|
|
8428
|
+
return r(e.statSync(s), s, c);
|
|
8429
8429
|
}
|
|
8430
8430
|
return a(i, "sync"), $t;
|
|
8431
8431
|
}
|
|
8432
|
-
a(
|
|
8433
|
-
var kt,
|
|
8434
|
-
function
|
|
8435
|
-
if (
|
|
8436
|
-
|
|
8432
|
+
a(Ps, "requireWindows");
|
|
8433
|
+
var kt, Xr;
|
|
8434
|
+
function Ls() {
|
|
8435
|
+
if (Xr) return kt;
|
|
8436
|
+
Xr = 1, kt = t, t.sync = r;
|
|
8437
8437
|
var e = qe;
|
|
8438
|
-
function t(
|
|
8439
|
-
e.stat(
|
|
8438
|
+
function t(s, c, l) {
|
|
8439
|
+
e.stat(s, function(p, E) {
|
|
8440
8440
|
l(p, p ? false : n(E, c));
|
|
8441
8441
|
});
|
|
8442
8442
|
}
|
|
8443
8443
|
a(t, "isexe");
|
|
8444
|
-
function r(
|
|
8445
|
-
return n(e.statSync(
|
|
8444
|
+
function r(s, c) {
|
|
8445
|
+
return n(e.statSync(s), c);
|
|
8446
8446
|
}
|
|
8447
8447
|
a(r, "sync");
|
|
8448
|
-
function n(
|
|
8449
|
-
return
|
|
8448
|
+
function n(s, c) {
|
|
8449
|
+
return s.isFile() && i(s, c);
|
|
8450
8450
|
}
|
|
8451
8451
|
a(n, "checkStat");
|
|
8452
|
-
function i(
|
|
8453
|
-
var l =
|
|
8452
|
+
function i(s, c) {
|
|
8453
|
+
var l = s.mode, p = s.uid, E = s.gid, h = c.uid !== void 0 ? c.uid : process.getuid && process.getuid(), _ = c.gid !== void 0 ? c.gid : process.getgid && process.getgid(), v = parseInt("100", 8), C = parseInt("010", 8), O = parseInt("001", 8), M = v | C, b = l & O || l & C && E === _ || l & v && p === h || l & M && h === 0;
|
|
8454
8454
|
return b;
|
|
8455
8455
|
}
|
|
8456
8456
|
return a(i, "checkMode"), kt;
|
|
8457
8457
|
}
|
|
8458
|
-
a(
|
|
8459
|
-
var Ht,
|
|
8460
|
-
function
|
|
8461
|
-
if (
|
|
8462
|
-
|
|
8458
|
+
a(Ls, "requireMode");
|
|
8459
|
+
var Ht, Zr;
|
|
8460
|
+
function Ns() {
|
|
8461
|
+
if (Zr) return Ht;
|
|
8462
|
+
Zr = 1;
|
|
8463
8463
|
var e;
|
|
8464
|
-
process.platform === "win32" || Bi.TESTING_WINDOWS ? e =
|
|
8465
|
-
function t(n, i,
|
|
8466
|
-
if (typeof i == "function" && (
|
|
8464
|
+
process.platform === "win32" || Bi.TESTING_WINDOWS ? e = Ps() : e = Ls(), Ht = t, t.sync = r;
|
|
8465
|
+
function t(n, i, s) {
|
|
8466
|
+
if (typeof i == "function" && (s = i, i = {}), !s) {
|
|
8467
8467
|
if (typeof Promise != "function") throw new TypeError("callback not provided");
|
|
8468
8468
|
return new Promise(function(c, l) {
|
|
8469
8469
|
t(n, i || {}, function(p, E) {
|
|
@@ -8472,39 +8472,39 @@ function No() {
|
|
|
8472
8472
|
});
|
|
8473
8473
|
}
|
|
8474
8474
|
e(n, i || {}, function(c, l) {
|
|
8475
|
-
c && (c.code === "EACCES" || i && i.ignoreErrors) && (c = null, l = false),
|
|
8475
|
+
c && (c.code === "EACCES" || i && i.ignoreErrors) && (c = null, l = false), s(c, l);
|
|
8476
8476
|
});
|
|
8477
8477
|
}
|
|
8478
8478
|
a(t, "isexe");
|
|
8479
8479
|
function r(n, i) {
|
|
8480
8480
|
try {
|
|
8481
8481
|
return e.sync(n, i || {});
|
|
8482
|
-
} catch (
|
|
8483
|
-
if (i && i.ignoreErrors ||
|
|
8484
|
-
throw
|
|
8482
|
+
} catch (s) {
|
|
8483
|
+
if (i && i.ignoreErrors || s.code === "EACCES") return false;
|
|
8484
|
+
throw s;
|
|
8485
8485
|
}
|
|
8486
8486
|
}
|
|
8487
8487
|
return a(r, "sync"), Ht;
|
|
8488
8488
|
}
|
|
8489
|
-
a(
|
|
8490
|
-
var
|
|
8491
|
-
function
|
|
8492
|
-
if (
|
|
8493
|
-
|
|
8494
|
-
const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t = Ke, r = e ? ";" : ":", n =
|
|
8495
|
-
const h = E.colon || r,
|
|
8496
|
-
return e && p.indexOf(".") !== -1 && C[0] !== "" && C.unshift(""), { pathEnv:
|
|
8489
|
+
a(Ns, "requireIsexe");
|
|
8490
|
+
var jt, en;
|
|
8491
|
+
function Os() {
|
|
8492
|
+
if (en) return jt;
|
|
8493
|
+
en = 1;
|
|
8494
|
+
const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t = Ke, r = e ? ";" : ":", n = Ns(), i = a((p) => Object.assign(new Error(`not found: ${p}`), { code: "ENOENT" }), "getNotFoundError"), s = a((p, E) => {
|
|
8495
|
+
const h = E.colon || r, _ = p.match(/\//) || e && p.match(/\\/) ? [""] : [...e ? [process.cwd()] : [], ...(E.path || process.env.PATH || "").split(h)], v = e ? E.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", C = e ? v.split(h) : [""];
|
|
8496
|
+
return e && p.indexOf(".") !== -1 && C[0] !== "" && C.unshift(""), { pathEnv: _, pathExt: C, pathExtExe: v };
|
|
8497
8497
|
}, "getPathInfo"), c = a((p, E, h) => {
|
|
8498
8498
|
typeof E == "function" && (h = E, E = {}), E || (E = {});
|
|
8499
|
-
const { pathEnv:
|
|
8500
|
-
if (P ===
|
|
8501
|
-
const x =
|
|
8502
|
-
w(b(
|
|
8499
|
+
const { pathEnv: _, pathExt: v, pathExtExe: C } = s(p, E), O = [], M = a((P) => new Promise((w, L) => {
|
|
8500
|
+
if (P === _.length) return E.all && O.length ? w(O) : L(i(p));
|
|
8501
|
+
const x = _[P], U = /^".*"$/.test(x) ? x.slice(1, -1) : x, k = t.join(U, p), j = !U && /^\.[\\\/]/.test(p) ? p.slice(0, 2) + k : k;
|
|
8502
|
+
w(b(j, P, 0));
|
|
8503
8503
|
}), "step"), b = a((P, w, L) => new Promise((x, U) => {
|
|
8504
8504
|
if (L === v.length) return x(M(w + 1));
|
|
8505
8505
|
const k = v[L];
|
|
8506
|
-
n(P + k, { pathExt: C }, (
|
|
8507
|
-
if (!
|
|
8506
|
+
n(P + k, { pathExt: C }, (j, o) => {
|
|
8507
|
+
if (!j && o) if (E.all) O.push(P + k);
|
|
8508
8508
|
else return x(P + k);
|
|
8509
8509
|
return x(b(P, w, L + 1));
|
|
8510
8510
|
});
|
|
@@ -8512,11 +8512,11 @@ function Do() {
|
|
|
8512
8512
|
return h ? M(0).then((P) => h(null, P), h) : M(0);
|
|
8513
8513
|
}, "which"), l = a((p, E) => {
|
|
8514
8514
|
E = E || {};
|
|
8515
|
-
const { pathEnv: h, pathExt:
|
|
8516
|
-
for (let
|
|
8517
|
-
const M = h[
|
|
8518
|
-
for (let L = 0; L <
|
|
8519
|
-
const x = w +
|
|
8515
|
+
const { pathEnv: h, pathExt: _, pathExtExe: v } = s(p, E), C = [];
|
|
8516
|
+
for (let O = 0; O < h.length; O++) {
|
|
8517
|
+
const M = h[O], b = /^".*"$/.test(M) ? M.slice(1, -1) : M, P = t.join(b, p), w = !b && /^\.[\\\/]/.test(p) ? p.slice(0, 2) + P : P;
|
|
8518
|
+
for (let L = 0; L < _.length; L++) {
|
|
8519
|
+
const x = w + _[L];
|
|
8520
8520
|
try {
|
|
8521
8521
|
if (n.sync(x, { pathExt: v })) if (E.all) C.push(x);
|
|
8522
8522
|
else return x;
|
|
@@ -8528,51 +8528,51 @@ function Do() {
|
|
|
8528
8528
|
if (E.nothrow) return null;
|
|
8529
8529
|
throw i(p);
|
|
8530
8530
|
}, "whichSync");
|
|
8531
|
-
return
|
|
8531
|
+
return jt = c, c.sync = l, jt;
|
|
8532
8532
|
}
|
|
8533
|
-
a(
|
|
8534
|
-
var ut = { exports: {} },
|
|
8535
|
-
function
|
|
8536
|
-
if (
|
|
8537
|
-
|
|
8533
|
+
a(Os, "requireWhich");
|
|
8534
|
+
var ut = { exports: {} }, tn;
|
|
8535
|
+
function Ds() {
|
|
8536
|
+
if (tn) return ut.exports;
|
|
8537
|
+
tn = 1;
|
|
8538
8538
|
const e = a((t = {}) => {
|
|
8539
8539
|
const r = t.env || process.env;
|
|
8540
8540
|
return (t.platform || process.platform) !== "win32" ? "PATH" : Object.keys(r).reverse().find((i) => i.toUpperCase() === "PATH") || "Path";
|
|
8541
8541
|
}, "pathKey");
|
|
8542
8542
|
return ut.exports = e, ut.exports.default = e, ut.exports;
|
|
8543
8543
|
}
|
|
8544
|
-
a(
|
|
8545
|
-
var
|
|
8546
|
-
function
|
|
8547
|
-
if (
|
|
8548
|
-
|
|
8549
|
-
const e = Ke, t =
|
|
8550
|
-
function n(
|
|
8551
|
-
const l =
|
|
8544
|
+
a(Ds, "requirePathKey");
|
|
8545
|
+
var Ft, rn;
|
|
8546
|
+
function Ms() {
|
|
8547
|
+
if (rn) return Ft;
|
|
8548
|
+
rn = 1;
|
|
8549
|
+
const e = Ke, t = Os(), r = Ds();
|
|
8550
|
+
function n(s, c) {
|
|
8551
|
+
const l = s.options.env || process.env, p = process.cwd(), E = s.options.cwd != null, h = E && process.chdir !== void 0 && !process.chdir.disabled;
|
|
8552
8552
|
if (h) try {
|
|
8553
|
-
process.chdir(
|
|
8553
|
+
process.chdir(s.options.cwd);
|
|
8554
8554
|
} catch {
|
|
8555
8555
|
}
|
|
8556
|
-
let
|
|
8556
|
+
let _;
|
|
8557
8557
|
try {
|
|
8558
|
-
|
|
8558
|
+
_ = t.sync(s.command, { path: l[r({ env: l })], pathExt: c ? e.delimiter : void 0 });
|
|
8559
8559
|
} catch {
|
|
8560
8560
|
} finally {
|
|
8561
8561
|
h && process.chdir(p);
|
|
8562
8562
|
}
|
|
8563
|
-
return
|
|
8563
|
+
return _ && (_ = e.resolve(E ? s.options.cwd : "", _)), _;
|
|
8564
8564
|
}
|
|
8565
8565
|
a(n, "resolveCommandAttempt");
|
|
8566
|
-
function i(
|
|
8567
|
-
return n(
|
|
8566
|
+
function i(s) {
|
|
8567
|
+
return n(s) || n(s, true);
|
|
8568
8568
|
}
|
|
8569
|
-
return a(i, "resolveCommand"),
|
|
8569
|
+
return a(i, "resolveCommand"), Ft = i, Ft;
|
|
8570
8570
|
}
|
|
8571
|
-
a(
|
|
8572
|
-
var lt = {},
|
|
8573
|
-
function
|
|
8574
|
-
if (
|
|
8575
|
-
|
|
8571
|
+
a(Ms, "requireResolveCommand");
|
|
8572
|
+
var lt = {}, nn;
|
|
8573
|
+
function xs() {
|
|
8574
|
+
if (nn) return lt;
|
|
8575
|
+
nn = 1;
|
|
8576
8576
|
const e = /([()\][%!^"`<>&|;, *?])/g;
|
|
8577
8577
|
function t(n) {
|
|
8578
8578
|
return n = n.replace(e, "^$1"), n;
|
|
@@ -8583,190 +8583,190 @@ function Go() {
|
|
|
8583
8583
|
}
|
|
8584
8584
|
return a(r, "escapeArgument"), lt.command = t, lt.argument = r, lt;
|
|
8585
8585
|
}
|
|
8586
|
-
a(
|
|
8587
|
-
var qt,
|
|
8588
|
-
function
|
|
8589
|
-
return
|
|
8586
|
+
a(xs, "require_escape");
|
|
8587
|
+
var qt, sn;
|
|
8588
|
+
function Gs() {
|
|
8589
|
+
return sn || (sn = 1, qt = /^#!(.*)/), qt;
|
|
8590
8590
|
}
|
|
8591
|
-
a(
|
|
8591
|
+
a(Gs, "requireShebangRegex");
|
|
8592
8592
|
var Kt, on;
|
|
8593
|
-
function
|
|
8593
|
+
function $s() {
|
|
8594
8594
|
if (on) return Kt;
|
|
8595
8595
|
on = 1;
|
|
8596
|
-
const e =
|
|
8596
|
+
const e = Gs();
|
|
8597
8597
|
return Kt = a((t = "") => {
|
|
8598
8598
|
const r = t.match(e);
|
|
8599
8599
|
if (!r) return null;
|
|
8600
|
-
const [n, i] = r[0].replace(/#! ?/, "").split(" "),
|
|
8601
|
-
return
|
|
8600
|
+
const [n, i] = r[0].replace(/#! ?/, "").split(" "), s = n.split("/").pop();
|
|
8601
|
+
return s === "env" ? i : i ? `${s} ${i}` : s;
|
|
8602
8602
|
}, "shebangCommand"), Kt;
|
|
8603
8603
|
}
|
|
8604
|
-
a(
|
|
8605
|
-
var Vt,
|
|
8606
|
-
function
|
|
8607
|
-
if (
|
|
8608
|
-
|
|
8609
|
-
const e = qe, t =
|
|
8604
|
+
a($s, "requireShebangCommand");
|
|
8605
|
+
var Vt, an;
|
|
8606
|
+
function ks() {
|
|
8607
|
+
if (an) return Vt;
|
|
8608
|
+
an = 1;
|
|
8609
|
+
const e = qe, t = $s();
|
|
8610
8610
|
function r(n) {
|
|
8611
|
-
const
|
|
8611
|
+
const s = Buffer.alloc(150);
|
|
8612
8612
|
let c;
|
|
8613
8613
|
try {
|
|
8614
|
-
c = e.openSync(n, "r"), e.readSync(c,
|
|
8614
|
+
c = e.openSync(n, "r"), e.readSync(c, s, 0, 150, 0), e.closeSync(c);
|
|
8615
8615
|
} catch {
|
|
8616
8616
|
}
|
|
8617
|
-
return t(
|
|
8617
|
+
return t(s.toString());
|
|
8618
8618
|
}
|
|
8619
8619
|
return a(r, "readShebang"), Vt = r, Vt;
|
|
8620
8620
|
}
|
|
8621
|
-
a(
|
|
8622
|
-
var Wt,
|
|
8623
|
-
function
|
|
8624
|
-
if (
|
|
8625
|
-
|
|
8626
|
-
const e = Ke, t =
|
|
8621
|
+
a(ks, "requireReadShebang");
|
|
8622
|
+
var Wt, cn;
|
|
8623
|
+
function Hs() {
|
|
8624
|
+
if (cn) return Wt;
|
|
8625
|
+
cn = 1;
|
|
8626
|
+
const e = Ke, t = Ms(), r = xs(), n = ks(), i = process.platform === "win32", s = /\.(?:com|exe)$/i, c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
8627
8627
|
function l(h) {
|
|
8628
8628
|
h.file = t(h);
|
|
8629
|
-
const
|
|
8630
|
-
return
|
|
8629
|
+
const _ = h.file && n(h.file);
|
|
8630
|
+
return _ ? (h.args.unshift(h.file), h.command = _, t(h)) : h.file;
|
|
8631
8631
|
}
|
|
8632
8632
|
a(l, "detectShebang");
|
|
8633
8633
|
function p(h) {
|
|
8634
8634
|
if (!i) return h;
|
|
8635
|
-
const
|
|
8635
|
+
const _ = l(h), v = !s.test(_);
|
|
8636
8636
|
if (h.options.forceShell || v) {
|
|
8637
|
-
const C = c.test(
|
|
8637
|
+
const C = c.test(_);
|
|
8638
8638
|
h.command = e.normalize(h.command), h.command = r.command(h.command), h.args = h.args.map((M) => r.argument(M, C));
|
|
8639
|
-
const
|
|
8640
|
-
h.args = ["/d", "/s", "/c", `"${
|
|
8639
|
+
const O = [h.command].concat(h.args).join(" ");
|
|
8640
|
+
h.args = ["/d", "/s", "/c", `"${O}"`], h.command = process.env.comspec || "cmd.exe", h.options.windowsVerbatimArguments = true;
|
|
8641
8641
|
}
|
|
8642
8642
|
return h;
|
|
8643
8643
|
}
|
|
8644
8644
|
a(p, "parseNonShell");
|
|
8645
|
-
function E(h,
|
|
8646
|
-
|
|
8647
|
-
const C = { command: h, args:
|
|
8645
|
+
function E(h, _, v) {
|
|
8646
|
+
_ && !Array.isArray(_) && (v = _, _ = null), _ = _ ? _.slice(0) : [], v = Object.assign({}, v);
|
|
8647
|
+
const C = { command: h, args: _, options: v, file: void 0, original: { command: h, args: _ } };
|
|
8648
8648
|
return v.shell ? C : p(C);
|
|
8649
8649
|
}
|
|
8650
8650
|
return a(E, "parse"), Wt = E, Wt;
|
|
8651
8651
|
}
|
|
8652
|
-
a(
|
|
8653
|
-
var Yt,
|
|
8654
|
-
function
|
|
8655
|
-
if (
|
|
8656
|
-
|
|
8652
|
+
a(Hs, "requireParse");
|
|
8653
|
+
var Yt, un;
|
|
8654
|
+
function js() {
|
|
8655
|
+
if (un) return Yt;
|
|
8656
|
+
un = 1;
|
|
8657
8657
|
const e = process.platform === "win32";
|
|
8658
|
-
function t(
|
|
8659
|
-
return Object.assign(new Error(`${c} ${
|
|
8658
|
+
function t(s, c) {
|
|
8659
|
+
return Object.assign(new Error(`${c} ${s.command} ENOENT`), { code: "ENOENT", errno: "ENOENT", syscall: `${c} ${s.command}`, path: s.command, spawnargs: s.args });
|
|
8660
8660
|
}
|
|
8661
8661
|
a(t, "notFoundError");
|
|
8662
|
-
function r(
|
|
8662
|
+
function r(s, c) {
|
|
8663
8663
|
if (!e) return;
|
|
8664
|
-
const l =
|
|
8665
|
-
|
|
8664
|
+
const l = s.emit;
|
|
8665
|
+
s.emit = function(p, E) {
|
|
8666
8666
|
if (p === "exit") {
|
|
8667
8667
|
const h = n(E, c);
|
|
8668
|
-
if (h) return l.call(
|
|
8668
|
+
if (h) return l.call(s, "error", h);
|
|
8669
8669
|
}
|
|
8670
|
-
return l.apply(
|
|
8670
|
+
return l.apply(s, arguments);
|
|
8671
8671
|
};
|
|
8672
8672
|
}
|
|
8673
8673
|
a(r, "hookChildProcess");
|
|
8674
|
-
function n(
|
|
8675
|
-
return e &&
|
|
8674
|
+
function n(s, c) {
|
|
8675
|
+
return e && s === 1 && !c.file ? t(c.original, "spawn") : null;
|
|
8676
8676
|
}
|
|
8677
8677
|
a(n, "verifyENOENT");
|
|
8678
|
-
function i(
|
|
8679
|
-
return e &&
|
|
8678
|
+
function i(s, c) {
|
|
8679
|
+
return e && s === 1 && !c.file ? t(c.original, "spawnSync") : null;
|
|
8680
8680
|
}
|
|
8681
8681
|
return a(i, "verifyENOENTSync"), Yt = { hookChildProcess: r, verifyENOENT: n, verifyENOENTSync: i, notFoundError: t }, Yt;
|
|
8682
8682
|
}
|
|
8683
|
-
a(
|
|
8684
|
-
var
|
|
8685
|
-
function
|
|
8686
|
-
if (
|
|
8687
|
-
|
|
8688
|
-
const e = require$$0$2, t =
|
|
8689
|
-
function n(
|
|
8690
|
-
const p = t(
|
|
8683
|
+
a(js, "requireEnoent");
|
|
8684
|
+
var ln;
|
|
8685
|
+
function Fs() {
|
|
8686
|
+
if (ln) return $e.exports;
|
|
8687
|
+
ln = 1;
|
|
8688
|
+
const e = require$$0$2, t = Hs(), r = js();
|
|
8689
|
+
function n(s, c, l) {
|
|
8690
|
+
const p = t(s, c, l), E = e.spawn(p.command, p.args, p.options);
|
|
8691
8691
|
return r.hookChildProcess(E, p), E;
|
|
8692
8692
|
}
|
|
8693
8693
|
a(n, "spawn");
|
|
8694
|
-
function i(
|
|
8695
|
-
const p = t(
|
|
8694
|
+
function i(s, c, l) {
|
|
8695
|
+
const p = t(s, c, l), E = e.spawnSync(p.command, p.args, p.options);
|
|
8696
8696
|
return E.error = E.error || r.verifyENOENTSync(E.status, p), E;
|
|
8697
8697
|
}
|
|
8698
8698
|
return a(i, "spawnSync"), $e.exports = n, $e.exports.spawn = n, $e.exports.sync = i, $e.exports._parse = t, $e.exports._enoent = r, $e.exports;
|
|
8699
8699
|
}
|
|
8700
|
-
a(
|
|
8701
|
-
var
|
|
8702
|
-
function
|
|
8700
|
+
a(Fs, "requireCrossSpawn");
|
|
8701
|
+
var qs = Fs(), Ks = Cr(qs);
|
|
8702
|
+
function Vs(e) {
|
|
8703
8703
|
const t = typeof e == "string" ? `
|
|
8704
8704
|
` : 10, r = typeof e == "string" ? "\r" : 13;
|
|
8705
8705
|
return e[e.length - 1] === t && (e = e.slice(0, -1)), e[e.length - 1] === r && (e = e.slice(0, -1)), e;
|
|
8706
8706
|
}
|
|
8707
|
-
a(
|
|
8708
|
-
function
|
|
8707
|
+
a(Vs, "stripFinalNewline");
|
|
8708
|
+
function fn(e = {}) {
|
|
8709
8709
|
const { env: t = process.env, platform: r = process.platform } = e;
|
|
8710
8710
|
return r !== "win32" ? "PATH" : Object.keys(t).reverse().find((n) => n.toUpperCase() === "PATH") || "Path";
|
|
8711
8711
|
}
|
|
8712
|
-
a(
|
|
8713
|
-
const
|
|
8714
|
-
const
|
|
8715
|
-
return r &&
|
|
8716
|
-
}, "npmRunPath"),
|
|
8712
|
+
a(fn, "pathKey");
|
|
8713
|
+
const Ws = a(({ cwd: e = y.cwd(), path: t = y.env[fn()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
|
|
8714
|
+
const s = e instanceof URL ? fileURLToPath(e) : e, c = path.resolve(s), l = [];
|
|
8715
|
+
return r && Ys(l, c), i && Js(l, n, c), [...l, t].join(path.delimiter);
|
|
8716
|
+
}, "npmRunPath"), Ys = a((e, t) => {
|
|
8717
8717
|
let r;
|
|
8718
8718
|
for (; r !== t; ) e.push(path.join(t, "node_modules/.bin")), r = t, t = path.resolve(t, "..");
|
|
8719
|
-
}, "applyPreferLocal"),
|
|
8719
|
+
}, "applyPreferLocal"), Js = a((e, t, r) => {
|
|
8720
8720
|
const n = t instanceof URL ? fileURLToPath(t) : t;
|
|
8721
8721
|
e.push(path.resolve(r, n, ".."));
|
|
8722
|
-
}, "applyExecPath"),
|
|
8722
|
+
}, "applyExecPath"), zs = a(({ env: e = y.env, ...t } = {}) => {
|
|
8723
8723
|
e = { ...e };
|
|
8724
|
-
const r =
|
|
8725
|
-
return t.path = e[r], e[r] =
|
|
8726
|
-
}, "npmRunPathEnv"),
|
|
8727
|
-
const e =
|
|
8728
|
-
return Array.from({ length: e },
|
|
8729
|
-
}, "getRealtimeSignals"),
|
|
8730
|
-
const e =
|
|
8731
|
-
return [...
|
|
8732
|
-
}, "getSignals"),
|
|
8724
|
+
const r = fn({ env: e });
|
|
8725
|
+
return t.path = e[r], e[r] = Ws(t), e;
|
|
8726
|
+
}, "npmRunPathEnv"), Qs = a(() => {
|
|
8727
|
+
const e = dn - hn + 1;
|
|
8728
|
+
return Array.from({ length: e }, Xs);
|
|
8729
|
+
}, "getRealtimeSignals"), Xs = a((e, t) => ({ name: `SIGRT${t + 1}`, number: hn + t, action: "terminate", description: "Application-specific signal (realtime)", standard: "posix" }), "getRealtimeSignal"), hn = 34, dn = 64, Zs = [{ name: "SIGHUP", number: 1, action: "terminate", description: "Terminal closed", standard: "posix" }, { name: "SIGINT", number: 2, action: "terminate", description: "User interruption with CTRL-C", standard: "ansi" }, { name: "SIGQUIT", number: 3, action: "core", description: "User interruption with CTRL-\\", standard: "posix" }, { name: "SIGILL", number: 4, action: "core", description: "Invalid machine instruction", standard: "ansi" }, { name: "SIGTRAP", number: 5, action: "core", description: "Debugger breakpoint", standard: "posix" }, { name: "SIGABRT", number: 6, action: "core", description: "Aborted", standard: "ansi" }, { name: "SIGIOT", number: 6, action: "core", description: "Aborted", standard: "bsd" }, { name: "SIGBUS", number: 7, action: "core", description: "Bus error due to misaligned, non-existing address or paging error", standard: "bsd" }, { name: "SIGEMT", number: 7, action: "terminate", description: "Command should be emulated but is not implemented", standard: "other" }, { name: "SIGFPE", number: 8, action: "core", description: "Floating point arithmetic error", standard: "ansi" }, { name: "SIGKILL", number: 9, action: "terminate", description: "Forced termination", standard: "posix", forced: true }, { name: "SIGUSR1", number: 10, action: "terminate", description: "Application-specific signal", standard: "posix" }, { name: "SIGSEGV", number: 11, action: "core", description: "Segmentation fault", standard: "ansi" }, { name: "SIGUSR2", number: 12, action: "terminate", description: "Application-specific signal", standard: "posix" }, { name: "SIGPIPE", number: 13, action: "terminate", description: "Broken pipe or socket", standard: "posix" }, { name: "SIGALRM", number: 14, action: "terminate", description: "Timeout or timer", standard: "posix" }, { name: "SIGTERM", number: 15, action: "terminate", description: "Termination", standard: "ansi" }, { name: "SIGSTKFLT", number: 16, action: "terminate", description: "Stack is empty or overflowed", standard: "other" }, { name: "SIGCHLD", number: 17, action: "ignore", description: "Child process terminated, paused or unpaused", standard: "posix" }, { name: "SIGCLD", number: 17, action: "ignore", description: "Child process terminated, paused or unpaused", standard: "other" }, { name: "SIGCONT", number: 18, action: "unpause", description: "Unpaused", standard: "posix", forced: true }, { name: "SIGSTOP", number: 19, action: "pause", description: "Paused", standard: "posix", forced: true }, { name: "SIGTSTP", number: 20, action: "pause", description: 'Paused using CTRL-Z or "suspend"', standard: "posix" }, { name: "SIGTTIN", number: 21, action: "pause", description: "Background process cannot read terminal input", standard: "posix" }, { name: "SIGBREAK", number: 21, action: "terminate", description: "User interruption with CTRL-BREAK", standard: "other" }, { name: "SIGTTOU", number: 22, action: "pause", description: "Background process cannot write to terminal output", standard: "posix" }, { name: "SIGURG", number: 23, action: "ignore", description: "Socket received out-of-band data", standard: "bsd" }, { name: "SIGXCPU", number: 24, action: "core", description: "Process timed out", standard: "bsd" }, { name: "SIGXFSZ", number: 25, action: "core", description: "File too big", standard: "bsd" }, { name: "SIGVTALRM", number: 26, action: "terminate", description: "Timeout or timer", standard: "bsd" }, { name: "SIGPROF", number: 27, action: "terminate", description: "Timeout or timer", standard: "bsd" }, { name: "SIGWINCH", number: 28, action: "ignore", description: "Terminal window size changed", standard: "bsd" }, { name: "SIGIO", number: 29, action: "terminate", description: "I/O is available", standard: "other" }, { name: "SIGPOLL", number: 29, action: "terminate", description: "Watched event", standard: "other" }, { name: "SIGINFO", number: 29, action: "ignore", description: "Request for process information", standard: "other" }, { name: "SIGPWR", number: 30, action: "terminate", description: "Device running out of power", standard: "systemv" }, { name: "SIGSYS", number: 31, action: "core", description: "Invalid system call", standard: "other" }, { name: "SIGUNUSED", number: 31, action: "terminate", description: "Invalid system call", standard: "other" }], pn = a(() => {
|
|
8730
|
+
const e = Qs();
|
|
8731
|
+
return [...Zs, ...e].map(eo);
|
|
8732
|
+
}, "getSignals"), eo = a(({ name: e, number: t, description: r, action: n, forced: i = false, standard: s }) => {
|
|
8733
8733
|
const { signals: { [e]: c } } = constants$1, l = c !== void 0;
|
|
8734
|
-
return { name: e, number: l ? c : t, description: r, supported: l, action: n, forced: i, standard:
|
|
8735
|
-
}, "normalizeSignal"),
|
|
8736
|
-
const e =
|
|
8737
|
-
return Object.fromEntries(e.map(
|
|
8738
|
-
}, "getSignalsByName"),
|
|
8739
|
-
const e =
|
|
8734
|
+
return { name: e, number: l ? c : t, description: r, supported: l, action: n, forced: i, standard: s };
|
|
8735
|
+
}, "normalizeSignal"), to = a(() => {
|
|
8736
|
+
const e = pn();
|
|
8737
|
+
return Object.fromEntries(e.map(ro));
|
|
8738
|
+
}, "getSignalsByName"), ro = a(({ name: e, number: t, description: r, supported: n, action: i, forced: s, standard: c }) => [e, { name: e, number: t, description: r, supported: n, action: i, forced: s, standard: c }], "getSignalByName"), no = to(), io = a(() => {
|
|
8739
|
+
const e = pn(), t = dn + 1, r = Array.from({ length: t }, (n, i) => so(i, e));
|
|
8740
8740
|
return Object.assign({}, ...r);
|
|
8741
|
-
}, "getSignalsByNumber"),
|
|
8742
|
-
const r =
|
|
8741
|
+
}, "getSignalsByNumber"), so = a((e, t) => {
|
|
8742
|
+
const r = oo(e, t);
|
|
8743
8743
|
if (r === void 0) return {};
|
|
8744
|
-
const { name: n, description: i, supported:
|
|
8745
|
-
return { [e]: { name: n, number: e, description: i, supported:
|
|
8746
|
-
}, "getSignalByNumber"),
|
|
8744
|
+
const { name: n, description: i, supported: s, action: c, forced: l, standard: p } = r;
|
|
8745
|
+
return { [e]: { name: n, number: e, description: i, supported: s, action: c, forced: l, standard: p } };
|
|
8746
|
+
}, "getSignalByNumber"), oo = a((e, t) => {
|
|
8747
8747
|
const r = t.find(({ name: n }) => constants$1.signals[n] === e);
|
|
8748
8748
|
return r !== void 0 ? r : t.find((n) => n.number === e);
|
|
8749
8749
|
}, "findSignalByNumber");
|
|
8750
|
-
|
|
8751
|
-
const
|
|
8752
|
-
|
|
8753
|
-
const C = i === void 0 ? void 0 :
|
|
8750
|
+
io();
|
|
8751
|
+
const ao = a(({ timedOut: e, timeout: t, errorCode: r, signal: n, signalDescription: i, exitCode: s, isCanceled: c }) => e ? `timed out after ${t} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${i})` : s !== void 0 ? `failed with exit code ${s}` : "failed", "getErrorPrefix"), mn = a(({ stdout: e, stderr: t, all: r, error: n, signal: i, exitCode: s, command: c, escapedCommand: l, timedOut: p, isCanceled: E, killed: h, parsed: { options: { timeout: _, cwd: v = y.cwd() } } }) => {
|
|
8752
|
+
s = s === null ? void 0 : s, i = i === null ? void 0 : i;
|
|
8753
|
+
const C = i === void 0 ? void 0 : no[i].description, O = n && n.code, b = `Command ${ao({ timedOut: p, timeout: _, errorCode: O, signal: i, signalDescription: C, exitCode: s, isCanceled: E })}: ${c}`, P = Object.prototype.toString.call(n) === "[object Error]", w = P ? `${b}
|
|
8754
8754
|
${n.message}` : b, L = [w, t, e].filter(Boolean).join(`
|
|
8755
8755
|
`);
|
|
8756
|
-
return P ? (n.originalMessage = n.message, n.message = L) : n = new Error(L), n.shortMessage = w, n.command = c, n.escapedCommand = l, n.exitCode =
|
|
8757
|
-
}, "makeError"), ft = ["stdin", "stdout", "stderr"],
|
|
8756
|
+
return P ? (n.originalMessage = n.message, n.message = L) : n = new Error(L), n.shortMessage = w, n.command = c, n.escapedCommand = l, n.exitCode = s, n.signal = i, n.signalDescription = C, n.stdout = e, n.stderr = t, n.cwd = v, r !== void 0 && (n.all = r), "bufferedData" in n && delete n.bufferedData, n.failed = true, n.timedOut = !!p, n.isCanceled = E, n.killed = h && !p, n;
|
|
8757
|
+
}, "makeError"), ft = ["stdin", "stdout", "stderr"], co = a((e) => ft.some((t) => e[t] !== void 0), "hasAlias"), uo = a((e) => {
|
|
8758
8758
|
if (!e) return;
|
|
8759
8759
|
const { stdio: t } = e;
|
|
8760
8760
|
if (t === void 0) return ft.map((n) => e[n]);
|
|
8761
|
-
if (
|
|
8761
|
+
if (co(e)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ft.map((n) => `\`${n}\``).join(", ")}`);
|
|
8762
8762
|
if (typeof t == "string") return t;
|
|
8763
8763
|
if (!Array.isArray(t)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);
|
|
8764
8764
|
const r = Math.max(t.length, ft.length);
|
|
8765
8765
|
return Array.from({ length: r }, (n, i) => t[i]);
|
|
8766
|
-
}, "normalizeStdio"),
|
|
8767
|
-
|
|
8768
|
-
const ht = a((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"), Jt = Symbol.for("signal-exit emitter"), zt = globalThis,
|
|
8769
|
-
class
|
|
8766
|
+
}, "normalizeStdio"), Fe = [];
|
|
8767
|
+
Fe.push("SIGHUP", "SIGINT", "SIGTERM"), process.platform !== "win32" && Fe.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT"), process.platform === "linux" && Fe.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
8768
|
+
const ht = a((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"), Jt = Symbol.for("signal-exit emitter"), zt = globalThis, lo = Object.defineProperty.bind(Object);
|
|
8769
|
+
class fo {
|
|
8770
8770
|
static {
|
|
8771
8771
|
a(this, "Emitter");
|
|
8772
8772
|
}
|
|
@@ -8776,7 +8776,7 @@ class hs {
|
|
|
8776
8776
|
id = Math.random();
|
|
8777
8777
|
constructor() {
|
|
8778
8778
|
if (zt[Jt]) return zt[Jt];
|
|
8779
|
-
|
|
8779
|
+
lo(zt, Jt, { value: this, writable: false, enumerable: false, configurable: false });
|
|
8780
8780
|
}
|
|
8781
8781
|
on(t, r) {
|
|
8782
8782
|
this.listeners[t].push(r);
|
|
@@ -8789,23 +8789,23 @@ class hs {
|
|
|
8789
8789
|
if (this.emitted[t]) return false;
|
|
8790
8790
|
this.emitted[t] = true;
|
|
8791
8791
|
let i = false;
|
|
8792
|
-
for (const
|
|
8792
|
+
for (const s of this.listeners[t]) i = s(r, n) === true || i;
|
|
8793
8793
|
return t === "exit" && (i = this.emit("afterExit", r, n) || i), i;
|
|
8794
8794
|
}
|
|
8795
8795
|
}
|
|
8796
|
-
class
|
|
8796
|
+
class En {
|
|
8797
8797
|
static {
|
|
8798
8798
|
a(this, "SignalExitBase");
|
|
8799
8799
|
}
|
|
8800
8800
|
}
|
|
8801
|
-
const
|
|
8801
|
+
const ho = a((e) => ({ onExit(t, r) {
|
|
8802
8802
|
return e.onExit(t, r);
|
|
8803
8803
|
}, load() {
|
|
8804
8804
|
return e.load();
|
|
8805
8805
|
}, unload() {
|
|
8806
8806
|
return e.unload();
|
|
8807
8807
|
} }), "signalExitWrap");
|
|
8808
|
-
class
|
|
8808
|
+
class po extends En {
|
|
8809
8809
|
static {
|
|
8810
8810
|
a(this, "SignalExitFallback");
|
|
8811
8811
|
}
|
|
@@ -8818,30 +8818,30 @@ class ps extends mn {
|
|
|
8818
8818
|
unload() {
|
|
8819
8819
|
}
|
|
8820
8820
|
}
|
|
8821
|
-
class
|
|
8821
|
+
class mo extends En {
|
|
8822
8822
|
static {
|
|
8823
8823
|
a(this, "SignalExit");
|
|
8824
8824
|
}
|
|
8825
|
-
#
|
|
8826
|
-
#t = new
|
|
8825
|
+
#o = Qt.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
8826
|
+
#t = new fo();
|
|
8827
8827
|
#e;
|
|
8828
8828
|
#i;
|
|
8829
|
-
#
|
|
8829
|
+
#s;
|
|
8830
8830
|
#n = {};
|
|
8831
8831
|
#r = false;
|
|
8832
8832
|
constructor(t) {
|
|
8833
8833
|
super(), this.#e = t, this.#n = {};
|
|
8834
|
-
for (const r of
|
|
8834
|
+
for (const r of Fe) this.#n[r] = () => {
|
|
8835
8835
|
const n = this.#e.listeners(r);
|
|
8836
8836
|
let { count: i } = this.#t;
|
|
8837
|
-
const
|
|
8838
|
-
if (typeof
|
|
8837
|
+
const s = t;
|
|
8838
|
+
if (typeof s.__signal_exit_emitter__ == "object" && typeof s.__signal_exit_emitter__.count == "number" && (i += s.__signal_exit_emitter__.count), n.length === i) {
|
|
8839
8839
|
this.unload();
|
|
8840
|
-
const c = this.#t.emit("exit", null, r), l = r === "SIGHUP" ? this.#
|
|
8840
|
+
const c = this.#t.emit("exit", null, r), l = r === "SIGHUP" ? this.#o : r;
|
|
8841
8841
|
c || t.kill(t.pid, l);
|
|
8842
8842
|
}
|
|
8843
8843
|
};
|
|
8844
|
-
this.#
|
|
8844
|
+
this.#s = t.reallyExit, this.#i = t.emit;
|
|
8845
8845
|
}
|
|
8846
8846
|
onExit(t, r) {
|
|
8847
8847
|
if (!ht(this.#e)) return () => {
|
|
@@ -8855,7 +8855,7 @@ class ms extends mn {
|
|
|
8855
8855
|
load() {
|
|
8856
8856
|
if (!this.#r) {
|
|
8857
8857
|
this.#r = true, this.#t.count += 1;
|
|
8858
|
-
for (const t of
|
|
8858
|
+
for (const t of Fe) try {
|
|
8859
8859
|
const r = this.#n[t];
|
|
8860
8860
|
r && this.#e.on(t, r);
|
|
8861
8861
|
} catch {
|
|
@@ -8864,17 +8864,17 @@ class ms extends mn {
|
|
|
8864
8864
|
}
|
|
8865
8865
|
}
|
|
8866
8866
|
unload() {
|
|
8867
|
-
this.#r && (this.#r = false,
|
|
8867
|
+
this.#r && (this.#r = false, Fe.forEach((t) => {
|
|
8868
8868
|
const r = this.#n[t];
|
|
8869
8869
|
if (!r) throw new Error("Listener not defined for signal: " + t);
|
|
8870
8870
|
try {
|
|
8871
8871
|
this.#e.removeListener(t, r);
|
|
8872
8872
|
} catch {
|
|
8873
8873
|
}
|
|
8874
|
-
}), this.#e.emit = this.#i, this.#e.reallyExit = this.#
|
|
8874
|
+
}), this.#e.emit = this.#i, this.#e.reallyExit = this.#s, this.#t.count -= 1);
|
|
8875
8875
|
}
|
|
8876
8876
|
#a(t) {
|
|
8877
|
-
return ht(this.#e) ? (this.#e.exitCode = t || 0, this.#t.emit("exit", this.#e.exitCode, null), this.#
|
|
8877
|
+
return ht(this.#e) ? (this.#e.exitCode = t || 0, this.#t.emit("exit", this.#e.exitCode, null), this.#s.call(this.#e, this.#e.exitCode)) : 0;
|
|
8878
8878
|
}
|
|
8879
8879
|
#c(t, ...r) {
|
|
8880
8880
|
const n = this.#i;
|
|
@@ -8886,72 +8886,72 @@ class ms extends mn {
|
|
|
8886
8886
|
}
|
|
8887
8887
|
}
|
|
8888
8888
|
const Qt = globalThis.process;
|
|
8889
|
-
|
|
8890
|
-
function
|
|
8889
|
+
ho(ht(Qt) ? new mo(Qt) : new po());
|
|
8890
|
+
function Eo(e) {
|
|
8891
8891
|
return e !== null && typeof e == "object" && typeof e.pipe == "function";
|
|
8892
8892
|
}
|
|
8893
|
-
a(
|
|
8894
|
-
var Xt,
|
|
8895
|
-
function
|
|
8896
|
-
if (
|
|
8897
|
-
|
|
8893
|
+
a(Eo, "isStream"), new TextEncoder();
|
|
8894
|
+
var Xt, gn;
|
|
8895
|
+
function go() {
|
|
8896
|
+
if (gn) return Xt;
|
|
8897
|
+
gn = 1;
|
|
8898
8898
|
const { PassThrough: e } = require$$0;
|
|
8899
8899
|
return Xt = a(function() {
|
|
8900
8900
|
var t = [], r = new e({ objectMode: true });
|
|
8901
|
-
return r.setMaxListeners(0), r.add = n, r.isEmpty = i, r.on("unpipe",
|
|
8901
|
+
return r.setMaxListeners(0), r.add = n, r.isEmpty = i, r.on("unpipe", s), Array.prototype.slice.call(arguments).forEach(n), r;
|
|
8902
8902
|
function n(c) {
|
|
8903
|
-
return Array.isArray(c) ? (c.forEach(n), this) : (t.push(c), c.once("end",
|
|
8903
|
+
return Array.isArray(c) ? (c.forEach(n), this) : (t.push(c), c.once("end", s.bind(null, c)), c.once("error", r.emit.bind(r, "error")), c.pipe(r, { end: false }), this);
|
|
8904
8904
|
}
|
|
8905
8905
|
function i() {
|
|
8906
8906
|
return t.length == 0;
|
|
8907
8907
|
}
|
|
8908
|
-
function
|
|
8908
|
+
function s(c) {
|
|
8909
8909
|
t = t.filter(function(l) {
|
|
8910
8910
|
return l !== c;
|
|
8911
8911
|
}), !t.length && r.readable && r.end();
|
|
8912
8912
|
}
|
|
8913
8913
|
}, "mergeStream"), Xt;
|
|
8914
8914
|
}
|
|
8915
|
-
a(
|
|
8916
|
-
const
|
|
8915
|
+
a(go, "requireMergeStream"), go();
|
|
8916
|
+
const _o = a((e) => {
|
|
8917
8917
|
if (e !== void 0) throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
8918
|
-
}, "validateInputOptions"),
|
|
8919
|
-
const t =
|
|
8920
|
-
if (
|
|
8918
|
+
}, "validateInputOptions"), Io = a(({ input: e, inputFile: t }) => typeof t != "string" ? e : (_o(e), readFileSync(t)), "getInputSync"), So = a((e) => {
|
|
8919
|
+
const t = Io(e);
|
|
8920
|
+
if (Eo(t)) throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
8921
8921
|
return t;
|
|
8922
|
-
}, "handleInputSync"),
|
|
8922
|
+
}, "handleInputSync"), Ro = (async () => {
|
|
8923
8923
|
})().constructor.prototype;
|
|
8924
|
-
["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(
|
|
8925
|
-
const
|
|
8924
|
+
["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(Ro, e)]);
|
|
8925
|
+
const _n = a((e, t = []) => Array.isArray(t) ? [e, ...t] : [e], "normalizeArgs"), To = /^[\w.-]+$/, yo = a((e) => typeof e != "string" || To.test(e) ? e : `"${e.replaceAll('"', '\\"')}"`, "escapeArg"), wo = a((e, t) => _n(e, t).join(" "), "joinCommand"), Ao = a((e, t) => _n(e, t).map((r) => yo(r)).join(" "), "getEscapedCommand"), bo = debuglog("execa").enabled, dt = a((e, t) => String(e).padStart(t, "0"), "padField"), vo = a(() => {
|
|
8926
8926
|
const e = /* @__PURE__ */ new Date();
|
|
8927
8927
|
return `${dt(e.getHours(), 2)}:${dt(e.getMinutes(), 2)}:${dt(e.getSeconds(), 2)}.${dt(e.getMilliseconds(), 3)}`;
|
|
8928
|
-
}, "getTimestamp"),
|
|
8929
|
-
t && y.stderr.write(`[${
|
|
8928
|
+
}, "getTimestamp"), Co = a((e, { verbose: t }) => {
|
|
8929
|
+
t && y.stderr.write(`[${vo()}] ${e}
|
|
8930
8930
|
`);
|
|
8931
|
-
}, "logCommand"),
|
|
8932
|
-
const
|
|
8933
|
-
return r ?
|
|
8934
|
-
}, "getEnv"),
|
|
8935
|
-
const n =
|
|
8936
|
-
return e = n.command, t = n.args, r = n.options, r = { maxBuffer:
|
|
8937
|
-
}, "handleArguments"),
|
|
8931
|
+
}, "logCommand"), Uo = 1e3 * 1e3 * 100, Bo = a(({ env: e, extendEnv: t, preferLocal: r, localDir: n, execPath: i }) => {
|
|
8932
|
+
const s = t ? { ...y.env, ...e } : e;
|
|
8933
|
+
return r ? zs({ env: s, cwd: n, execPath: i }) : s;
|
|
8934
|
+
}, "getEnv"), Po = a((e, t, r = {}) => {
|
|
8935
|
+
const n = Ks._parse(e, t, r);
|
|
8936
|
+
return e = n.command, t = n.args, r = n.options, r = { maxBuffer: Uo, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: r.cwd || y.cwd(), execPath: y.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true, verbose: bo, ...r }, r.env = Bo(r), r.stdio = uo(r), y.platform === "win32" && path.basename(e, ".exe") === "cmd" && t.unshift("/q"), { file: e, args: t, options: r, parsed: n };
|
|
8937
|
+
}, "handleArguments"), In = a((e, t, r) => typeof t != "string" && !Buffer$1.isBuffer(t) ? r === void 0 ? void 0 : "" : e.stripFinalNewline ? Vs(t) : t, "handleOutput");
|
|
8938
8938
|
function Zt(e, t, r) {
|
|
8939
|
-
const n =
|
|
8940
|
-
|
|
8941
|
-
const c =
|
|
8939
|
+
const n = Po(e, t, r), i = wo(e, t), s = Ao(e, t);
|
|
8940
|
+
Co(s, n.options);
|
|
8941
|
+
const c = So(n.options);
|
|
8942
8942
|
let l;
|
|
8943
8943
|
try {
|
|
8944
8944
|
l = childProcess.spawnSync(n.file, n.args, { ...n.options, input: c });
|
|
8945
8945
|
} catch (h) {
|
|
8946
|
-
throw
|
|
8946
|
+
throw mn({ error: h, stdout: "", stderr: "", all: "", command: i, escapedCommand: s, parsed: n, timedOut: false, isCanceled: false, killed: false });
|
|
8947
8947
|
}
|
|
8948
|
-
const p =
|
|
8948
|
+
const p = In(n.options, l.stdout, l.error), E = In(n.options, l.stderr, l.error);
|
|
8949
8949
|
if (l.error || l.status !== 0 || l.signal !== null) {
|
|
8950
|
-
const h =
|
|
8950
|
+
const h = mn({ stdout: p, stderr: E, error: l.error, signal: l.signal, exitCode: l.status, command: i, escapedCommand: s, parsed: n, timedOut: l.error && l.error.code === "ETIMEDOUT", isCanceled: false, killed: l.signal !== null });
|
|
8951
8951
|
if (!n.options.reject) return h;
|
|
8952
8952
|
throw h;
|
|
8953
8953
|
}
|
|
8954
|
-
return { command: i, escapedCommand:
|
|
8954
|
+
return { command: i, escapedCommand: s, exitCode: 0, stdout: p, stderr: E, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
8955
8955
|
}
|
|
8956
8956
|
a(Zt, "execaSync");
|
|
8957
8957
|
function pt(e) {
|
|
@@ -8975,111 +8975,111 @@ function er(e) {
|
|
|
8975
8975
|
}
|
|
8976
8976
|
}
|
|
8977
8977
|
a(er, "branch");
|
|
8978
|
-
const
|
|
8979
|
-
function
|
|
8978
|
+
const Sn = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Lo = /^\/(.*)\.git$/;
|
|
8979
|
+
function No(e) {
|
|
8980
8980
|
if (e) {
|
|
8981
|
-
if (e.match(
|
|
8981
|
+
if (e.match(Sn)) return e.replace(Sn, "$1");
|
|
8982
8982
|
try {
|
|
8983
|
-
return new URL(e).pathname.replace(
|
|
8983
|
+
return new URL(e).pathname.replace(Lo, "$1");
|
|
8984
8984
|
} catch {
|
|
8985
8985
|
return;
|
|
8986
8986
|
}
|
|
8987
8987
|
}
|
|
8988
8988
|
}
|
|
8989
|
-
a(
|
|
8990
|
-
var
|
|
8989
|
+
a(No, "getSlugFromGitURL");
|
|
8990
|
+
var Oo = { detect({ env: e }) {
|
|
8991
8991
|
return !!e.BUILDKITE;
|
|
8992
8992
|
}, configuration({ env: e }) {
|
|
8993
8993
|
const t = e.BUILDKITE_PULL_REQUEST === "false" ? void 0 : e.BUILDKITE_PULL_REQUEST, r = !!t;
|
|
8994
|
-
return { name: "Buildkite", service: "buildkite", build: e.BUILDKITE_BUILD_NUMBER, buildUrl: e.BUILDKITE_BUILD_URL, commit: e.BUILDKITE_COMMIT, tag: e.BUILDKITE_TAG, branch: r ? e.BUILDKITE_PULL_REQUEST_BASE_BRANCH : e.BUILDKITE_BRANCH, slug:
|
|
8995
|
-
} },
|
|
8994
|
+
return { name: "Buildkite", service: "buildkite", build: e.BUILDKITE_BUILD_NUMBER, buildUrl: e.BUILDKITE_BUILD_URL, commit: e.BUILDKITE_COMMIT, tag: e.BUILDKITE_TAG, branch: r ? e.BUILDKITE_PULL_REQUEST_BASE_BRANCH : e.BUILDKITE_BRANCH, slug: No(e.BUILDKITE_REPO), pr: t, isPr: r, prBranch: r ? e.BUILDKITE_BRANCH : void 0, root: e.BUILDKITE_BUILD_CHECKOUT_PATH };
|
|
8995
|
+
} }, Do = { detect({ env: e }) {
|
|
8996
8996
|
return !!e.CIRCLECI;
|
|
8997
8997
|
}, configuration({ env: e }) {
|
|
8998
|
-
const t = e.CIRCLE_PR_NUMBER ||
|
|
8998
|
+
const t = e.CIRCLE_PR_NUMBER || zr(e.CIRCLE_PULL_REQUEST || e.CI_PULL_REQUEST), r = !!t;
|
|
8999
8999
|
return { name: "CircleCI", service: "circleci", build: e.CIRCLE_BUILD_NUM, buildUrl: e.CIRCLE_BUILD_URL, job: `${e.CIRCLE_BUILD_NUM}.${e.CIRCLE_NODE_INDEX}`, commit: e.CIRCLE_SHA1, tag: e.CIRCLE_TAG, branch: r ? void 0 : e.CIRCLE_BRANCH, pr: t, isPr: r, prBranch: r ? e.CIRCLE_BRANCH : void 0, slug: `${e.CIRCLE_PROJECT_USERNAME}/${e.CIRCLE_PROJECT_REPONAME}` };
|
|
9000
9000
|
} };
|
|
9001
|
-
const
|
|
9002
|
-
var
|
|
9001
|
+
const Rn = "https://cirrus-ci.com";
|
|
9002
|
+
var Mo = { detect({ env: e }) {
|
|
9003
9003
|
return !!e.CIRRUS_CI;
|
|
9004
9004
|
}, configuration({ env: e }) {
|
|
9005
9005
|
const t = e.CIRRUS_PR, r = !!t;
|
|
9006
|
-
return { name: "Cirrus CI", service: "cirrus", commit: e.CIRRUS_CHANGE_IN_REPO, tag: e.CIRRUS_TAG, build: e.CIRRUS_BUILD_ID, buildUrl: `${
|
|
9007
|
-
} },
|
|
9006
|
+
return { name: "Cirrus CI", service: "cirrus", commit: e.CIRRUS_CHANGE_IN_REPO, tag: e.CIRRUS_TAG, build: e.CIRRUS_BUILD_ID, buildUrl: `${Rn}/build/${e.CIRRUS_BUILD_ID}`, job: e.CIRRUS_TASK_ID, jobUrl: `${Rn}/task/${e.CIRRUS_TASK_ID}`, branch: r ? e.CIRRUS_BASE_BRANCH : e.CIRRUS_BRANCH, pr: t, isPr: r, prBranch: r ? e.CIRRUS_BRANCH : void 0, slug: e.CIRRUS_REPO_FULL_NAME, root: e.CIRRUS_WORKING_DIR };
|
|
9007
|
+
} }, xo = { detect({ env: e }) {
|
|
9008
9008
|
return e.CF_PAGES === "1";
|
|
9009
9009
|
}, configuration({ env: e }) {
|
|
9010
9010
|
return { name: "Cloudflare Pages", service: "cloudflarePages", commit: e.CF_PAGES_COMMIT_SHA, branch: e.CF_PAGES_BRANCH, root: e.PWD };
|
|
9011
|
-
} },
|
|
9011
|
+
} }, Go = { detect({ env: e }) {
|
|
9012
9012
|
return !!e.CODEBUILD_BUILD_ID;
|
|
9013
9013
|
}, configuration({ env: e, cwd: t }) {
|
|
9014
9014
|
return { name: "AWS CodeBuild", service: "codebuild", commit: pt({ env: e, cwd: t }), build: e.CODEBUILD_BUILD_ID, branch: er({ env: e, cwd: t }), buildUrl: `https://console.aws.amazon.com/codebuild/home?region=${e.AWS_REGION}#/builds/${e.CODEBUILD_BUILD_ID}/view/new`, root: e.PWD };
|
|
9015
|
-
} }, $
|
|
9015
|
+
} }, $o = { detect({ env: e }) {
|
|
9016
9016
|
return !!e.CF_BUILD_ID;
|
|
9017
9017
|
}, configuration({ env: e }) {
|
|
9018
9018
|
const t = e.CF_PULL_REQUEST_NUMBER, r = !!t;
|
|
9019
9019
|
return { name: "Codefresh", service: "codefresh", commit: e.CF_REVISION, build: e.CF_BUILD_ID, buildUrl: e.CF_BUILD_URL, branch: r ? e.CF_PULL_REQUEST_TARGET : e.CF_BRANCH, pr: t, isPr: r, prBranch: r ? e.CF_BRANCH : void 0, slug: `${e.CF_REPO_OWNER}/${e.CF_REPO_NAME}`, root: e.CF_VOLUME_PATH };
|
|
9020
|
-
} },
|
|
9020
|
+
} }, ko = { detect({ env: e }) {
|
|
9021
9021
|
return e.CI_NAME && e.CI_NAME === "codeship";
|
|
9022
9022
|
}, configuration({ env: e }) {
|
|
9023
9023
|
return { name: "Codeship", service: "codeship", build: e.CI_BUILD_NUMBER, buildUrl: e.CI_BUILD_URL, commit: e.CI_COMMIT_ID, branch: e.CI_BRANCH, slug: e.CI_REPO_NAME };
|
|
9024
|
-
} },
|
|
9024
|
+
} }, Ho = { detect({ env: e }) {
|
|
9025
9025
|
return !!e.DRONE;
|
|
9026
9026
|
}, configuration({ env: e }) {
|
|
9027
9027
|
const t = e.DRONE_BUILD_EVENT === "pull_request";
|
|
9028
9028
|
return { name: "Drone", service: "drone", commit: e.DRONE_COMMIT_SHA, tag: e.DRONE_TAG, build: e.DRONE_BUILD_NUMBER, buildUrl: e.DRONE_BUILD_LINK, branch: t ? e.DRONE_TARGET_BRANCH : e.DRONE_BRANCH, job: e.DRONE_JOB_NUMBER, jobUrl: e.DRONE_BUILD_LINK, pr: e.DRONE_PULL_REQUEST, isPr: t, prBranch: t ? e.DRONE_SOURCE_BRANCH : void 0, slug: `${e.DRONE_REPO_OWNER}/${e.DRONE_REPO_NAME}`, root: e.DRONE_WORKSPACE };
|
|
9029
|
-
} },
|
|
9029
|
+
} }, jo = { configuration(e) {
|
|
9030
9030
|
return { commit: pt(e), branch: er(e) };
|
|
9031
9031
|
} };
|
|
9032
|
-
const
|
|
9032
|
+
const Fo = a(({ env: e }) => {
|
|
9033
9033
|
try {
|
|
9034
9034
|
const t = e.GITHUB_EVENT_PATH ? JSON.parse(readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
|
|
9035
9035
|
if (t && t.pull_request) return { branch: t.pull_request.base ? tt(t.pull_request.base.ref) : void 0, pr: t.pull_request.number };
|
|
9036
9036
|
} catch {
|
|
9037
9037
|
}
|
|
9038
9038
|
return { pr: void 0, branch: void 0 };
|
|
9039
|
-
}, "getPrEvent"),
|
|
9039
|
+
}, "getPrEvent"), qo = a((e) => {
|
|
9040
9040
|
const t = e.GITHUB_EVENT_PATH ? JSON.parse(readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
|
|
9041
9041
|
return t && t.pull_request ? t.pull_request.number : void 0;
|
|
9042
9042
|
}, "getPrNumber");
|
|
9043
|
-
var
|
|
9043
|
+
var Ko = { detect({ env: e }) {
|
|
9044
9044
|
return !!e.GITHUB_ACTIONS;
|
|
9045
9045
|
}, configuration({ env: e, cwd: t }) {
|
|
9046
|
-
const r = e.GITHUB_EVENT_NAME === "pull_request" || e.GITHUB_EVENT_NAME === "pull_request_target", n = tt(e.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${
|
|
9047
|
-
return { name: "GitHub Actions", service: "github", commit: e.GITHUB_SHA, build: e.GITHUB_RUN_ID, buildUrl: `${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: e.GITHUB_REPOSITORY, root: e.GITHUB_WORKSPACE, ...r ?
|
|
9048
|
-
} },
|
|
9046
|
+
const r = e.GITHUB_EVENT_NAME === "pull_request" || e.GITHUB_EVENT_NAME === "pull_request_target", n = tt(e.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${qo(e)}/merge` : e.GITHUB_REF);
|
|
9047
|
+
return { name: "GitHub Actions", service: "github", commit: e.GITHUB_SHA, build: e.GITHUB_RUN_ID, buildUrl: `${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: e.GITHUB_REPOSITORY, root: e.GITHUB_WORKSPACE, ...r ? Fo({ env: e }) : void 0 };
|
|
9048
|
+
} }, Vo = { detect({ env: e }) {
|
|
9049
9049
|
return !!e.GITLAB_CI;
|
|
9050
9050
|
}, configuration({ env: e }) {
|
|
9051
9051
|
const t = e.CI_MERGE_REQUEST_ID, r = !!t;
|
|
9052
9052
|
return { name: "GitLab CI/CD", service: "gitlab", commit: e.CI_COMMIT_SHA, tag: e.CI_COMMIT_TAG, build: e.CI_PIPELINE_ID, buildUrl: `${e.CI_PROJECT_URL}/pipelines/${e.CI_PIPELINE_ID}`, job: e.CI_JOB_ID, jobUrl: `${e.CI_PROJECT_URL}/-/jobs/${e.CI_JOB_ID}`, branch: r ? e.CI_MERGE_REQUEST_TARGET_BRANCH_NAME : e.CI_COMMIT_REF_NAME, pr: t, isPr: r, prBranch: e.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME, slug: e.CI_PROJECT_PATH, root: e.CI_PROJECT_DIR };
|
|
9053
|
-
} },
|
|
9053
|
+
} }, Wo = { detect({ env: e }) {
|
|
9054
9054
|
return !!e.JENKINS_URL;
|
|
9055
9055
|
}, configuration({ env: e, cwd: t }) {
|
|
9056
9056
|
const r = e.ghprbPullId || e.gitlabMergeRequestId || e.CHANGE_ID, n = !!r, i = e.GIT_LOCAL_BRANCH || e.GIT_BRANCH || e.gitlabBranch || e.BRANCH_NAME;
|
|
9057
9057
|
return { name: "Jenkins", service: "jenkins", commit: e.ghprbActualCommit || e.GIT_COMMIT || pt({ env: e, cwd: t }), branch: n ? e.ghprbTargetBranch || e.gitlabTargetBranch : i, build: e.BUILD_NUMBER, buildUrl: e.BUILD_URL, root: e.WORKSPACE, pr: r, isPr: n, prBranch: n ? e.ghprbSourceBranch || e.gitlabSourceBranch || i : void 0 };
|
|
9058
|
-
} },
|
|
9058
|
+
} }, Yo = { detect({ env: e }) {
|
|
9059
9059
|
return e.NETLIFY === "true";
|
|
9060
9060
|
}, configuration({ env: e }) {
|
|
9061
9061
|
const t = e.PULL_REQUEST === "true";
|
|
9062
9062
|
return { name: "Netlify", service: "netlify", commit: e.COMMIT_REF, build: e.DEPLOY_ID, buildUrl: `https://app.netlify.com/sites/${e.SITE_NAME}/deploys/${e.DEPLOY_ID}`, branch: t ? void 0 : e.HEAD, pr: e.REVIEW_ID, isPr: t, prBranch: t ? e.HEAD : void 0, slug: e.REPOSITORY_URL.match(/[^/:]+\/[^/]+?$/)[0], root: e.PWD };
|
|
9063
|
-
} },
|
|
9063
|
+
} }, Jo = { detect({ env: e }) {
|
|
9064
9064
|
return !!e.DISTELLI_APPNAME;
|
|
9065
9065
|
}, configuration({ env: e }) {
|
|
9066
9066
|
return { name: "Puppet", service: "puppet", build: e.DISTELLI_BUILDNUM, buildUrl: e.DISTELLI_RELEASE, commit: e.DISTELLI_RELREVISION, branch: e.DISTELLI_RELBRANCH, root: e.DISTELLI_INSTALLHOME };
|
|
9067
|
-
} },
|
|
9067
|
+
} }, zo = { detect({ env: e }) {
|
|
9068
9068
|
return !!e.SAILCI;
|
|
9069
9069
|
}, configuration({ env: e }) {
|
|
9070
9070
|
const t = e.SAIL_PULL_REQUEST_NUMBER, r = !!t;
|
|
9071
9071
|
return { name: "Sail CI", service: "sail", commit: e.SAIL_COMMIT_SHA, branch: r ? void 0 : e.SAIL_COMMIT_BRANCH, pr: t, isPr: r, slug: `${e.SAIL_REPO_OWNER}/${e.SAIL_REPO_NAME}`, root: e.SAIL_CLONE_DIR };
|
|
9072
|
-
} },
|
|
9072
|
+
} }, Qo = { detect({ env: e }) {
|
|
9073
9073
|
return !!e.SCREWDRIVER;
|
|
9074
9074
|
}, configuration({ env: e }) {
|
|
9075
9075
|
const t = e.SD_PULL_REQUEST, r = !!t;
|
|
9076
9076
|
return { name: "Screwdriver.cd", service: "screwdriver", branch: r ? e.PR_BASE_BRANCH_NAME : e.GIT_BRANCH, prBranch: r ? e.PR_BRANCH_NAME : void 0, commit: e.SD_BUILD_SHA, build: e.SD_BUILD_ID, buildUrl: e.SD_UI_BUILD_URL, job: e.SD_JOB_ID, pr: t, isPr: r, slug: e.SD_PIPELINE_NAME, root: e.SD_ROOT_DIR };
|
|
9077
|
-
} },
|
|
9077
|
+
} }, Xo = { detect({ env: e }) {
|
|
9078
9078
|
return !!e.SCRUTINIZER;
|
|
9079
9079
|
}, configuration({ env: e }) {
|
|
9080
9080
|
const t = e.SCRUTINIZER_PR_NUMBER, r = !!t;
|
|
9081
9081
|
return { name: "Scrutinizer", service: "scrutinizer", commit: e.SCRUTINIZER_SHA1, build: e.SCRUTINIZER_INSPECTION_UUID, branch: e.SCRUTINIZER_BRANCH, pr: t, isPr: r, prBranch: e.SCRUTINIZER_PR_SOURCE_BRANCH };
|
|
9082
|
-
} },
|
|
9082
|
+
} }, Zo = { detect({ env: e }) {
|
|
9083
9083
|
return !!e.SEMAPHORE;
|
|
9084
9084
|
}, configuration({ env: e, cwd: t }) {
|
|
9085
9085
|
const r = e.SEMAPHORE_GIT_PR_NUMBER || e.PULL_REQUEST_NUMBER, n = !!r;
|
|
@@ -9089,10 +9089,10 @@ var Ks = { detect({ env: e }) {
|
|
|
9089
9089
|
}, configuration({ env: e }) {
|
|
9090
9090
|
const t = e.IS_PULL_REQUEST === "true" ? e.PULL_REQUEST : void 0, r = !!t;
|
|
9091
9091
|
return { name: "Shippable", service: "shippable", commit: e.COMMIT, tag: e.GIT_TAG_NAME, build: e.BUILD_NUMBER, buildUrl: e.BUILD_URL, branch: r ? e.BASE_BRANCH : e.BRANCH, job: e.JOB_NUMBER, pr: t, isPr: r, prBranch: r ? e.HEAD_BRANCH : void 0, slug: e.SHIPPABLE_REPO_SLUG, root: e.SHIPPABLE_BUILD_DIR };
|
|
9092
|
-
} }, ke = {},
|
|
9092
|
+
} }, ke = {}, Tn;
|
|
9093
9093
|
function ta() {
|
|
9094
|
-
if (
|
|
9095
|
-
|
|
9094
|
+
if (Tn) return ke;
|
|
9095
|
+
Tn = 1, Object.defineProperty(ke, "__esModule", { value: true }), ke.of = ke.PropertiesFile = void 0;
|
|
9096
9096
|
var e = t(qe);
|
|
9097
9097
|
function t(i) {
|
|
9098
9098
|
return i && i.__esModule ? i : { default: i };
|
|
@@ -9102,12 +9102,12 @@ function ta() {
|
|
|
9102
9102
|
static {
|
|
9103
9103
|
a(this, "PropertiesFile");
|
|
9104
9104
|
}
|
|
9105
|
-
constructor(...
|
|
9106
|
-
this.objs = {},
|
|
9105
|
+
constructor(...s) {
|
|
9106
|
+
this.objs = {}, s.length && this.of.apply(this, s);
|
|
9107
9107
|
}
|
|
9108
|
-
makeKeys(
|
|
9109
|
-
if (
|
|
9110
|
-
let c = ["=", ":"].map((h) =>
|
|
9108
|
+
makeKeys(s) {
|
|
9109
|
+
if (s && s.indexOf("#") !== 0) {
|
|
9110
|
+
let c = ["=", ":"].map((h) => s.indexOf(h)).filter((h) => h > -1), l = Math.min(...c), p = s.substring(0, l).trim(), E = s.substring(l + 1).trim();
|
|
9111
9111
|
if (this.objs.hasOwnProperty(p)) if (Array.isArray(this.objs[p])) this.objs[p].push(E);
|
|
9112
9112
|
else {
|
|
9113
9113
|
let h = this.objs[p];
|
|
@@ -9119,72 +9119,72 @@ function ta() {
|
|
|
9119
9119
|
}
|
|
9120
9120
|
}
|
|
9121
9121
|
}
|
|
9122
|
-
addFile(
|
|
9123
|
-
let l = e.default.readFileSync(
|
|
9122
|
+
addFile(s) {
|
|
9123
|
+
let l = e.default.readFileSync(s, "utf-8").split(/\r?\n/), p = this;
|
|
9124
9124
|
for (let E = 0; E < l.length; E++) {
|
|
9125
9125
|
let h = l[E];
|
|
9126
9126
|
for (; h.substring(h.length - 1) === "\\"; ) {
|
|
9127
9127
|
h = h.slice(0, -1);
|
|
9128
|
-
let
|
|
9129
|
-
h = h +
|
|
9128
|
+
let _ = l[E + 1];
|
|
9129
|
+
h = h + _.trim(), E++;
|
|
9130
9130
|
}
|
|
9131
9131
|
p.makeKeys(h);
|
|
9132
9132
|
}
|
|
9133
9133
|
}
|
|
9134
|
-
of(...
|
|
9135
|
-
for (let c = 0; c <
|
|
9134
|
+
of(...s) {
|
|
9135
|
+
for (let c = 0; c < s.length; c++) this.addFile(s[c]);
|
|
9136
9136
|
}
|
|
9137
|
-
get(
|
|
9138
|
-
if (this.objs.hasOwnProperty(
|
|
9137
|
+
get(s, c) {
|
|
9138
|
+
if (this.objs.hasOwnProperty(s)) if (Array.isArray(this.objs[s])) {
|
|
9139
9139
|
let l = [];
|
|
9140
|
-
for (let p = 0; p < this.objs[
|
|
9140
|
+
for (let p = 0; p < this.objs[s].length; p++) l[p] = this.interpolate(this.objs[s][p]);
|
|
9141
9141
|
return l;
|
|
9142
|
-
} else return typeof this.objs[
|
|
9142
|
+
} else return typeof this.objs[s] > "u" ? "" : this.interpolate(this.objs[s]);
|
|
9143
9143
|
return c;
|
|
9144
9144
|
}
|
|
9145
|
-
getLast(
|
|
9146
|
-
if (this.objs.hasOwnProperty(
|
|
9147
|
-
var l = this.objs[
|
|
9148
|
-
return this.interpolate(this.objs[
|
|
9149
|
-
} else return typeof this.objs[
|
|
9145
|
+
getLast(s, c) {
|
|
9146
|
+
if (this.objs.hasOwnProperty(s)) if (Array.isArray(this.objs[s])) {
|
|
9147
|
+
var l = this.objs[s].length;
|
|
9148
|
+
return this.interpolate(this.objs[s][l - 1]);
|
|
9149
|
+
} else return typeof this.objs[s] > "u" ? "" : this.interpolate(this.objs[s]);
|
|
9150
9150
|
return c;
|
|
9151
9151
|
}
|
|
9152
|
-
getFirst(
|
|
9153
|
-
return this.objs.hasOwnProperty(
|
|
9152
|
+
getFirst(s, c) {
|
|
9153
|
+
return this.objs.hasOwnProperty(s) ? Array.isArray(this.objs[s]) ? this.interpolate(this.objs[s][0]) : typeof this.objs[s] > "u" ? "" : this.interpolate(this.objs[s]) : c;
|
|
9154
9154
|
}
|
|
9155
|
-
getInt(
|
|
9156
|
-
let l = this.getLast(
|
|
9155
|
+
getInt(s, c) {
|
|
9156
|
+
let l = this.getLast(s);
|
|
9157
9157
|
return l ? parseInt(l, 10) : c;
|
|
9158
9158
|
}
|
|
9159
|
-
getFloat(
|
|
9160
|
-
let l = this.getLast(
|
|
9159
|
+
getFloat(s, c) {
|
|
9160
|
+
let l = this.getLast(s);
|
|
9161
9161
|
return l ? parseFloat(l) : c;
|
|
9162
9162
|
}
|
|
9163
|
-
getBoolean(
|
|
9163
|
+
getBoolean(s, c) {
|
|
9164
9164
|
function l(E) {
|
|
9165
9165
|
return !/^(false|0)$/i.test(E) && !!E;
|
|
9166
9166
|
}
|
|
9167
9167
|
a(l, "parseBool");
|
|
9168
|
-
let p = this.getLast(
|
|
9168
|
+
let p = this.getLast(s);
|
|
9169
9169
|
return p ? l(p) : c || false;
|
|
9170
9170
|
}
|
|
9171
|
-
set(
|
|
9172
|
-
this.objs[
|
|
9171
|
+
set(s, c) {
|
|
9172
|
+
this.objs[s] = c;
|
|
9173
9173
|
}
|
|
9174
|
-
interpolate(
|
|
9174
|
+
interpolate(s) {
|
|
9175
9175
|
let c = this;
|
|
9176
|
-
return
|
|
9176
|
+
return s.replace(/\\\\/g, "\\").replace(/\$\{([A-Za-z0-9\.\-\_]*)\}/g, function(l) {
|
|
9177
9177
|
return c.getLast(l.substring(2, l.length - 1));
|
|
9178
9178
|
});
|
|
9179
9179
|
}
|
|
9180
9180
|
getKeys() {
|
|
9181
|
-
let
|
|
9182
|
-
for (let c in this.objs)
|
|
9183
|
-
return
|
|
9181
|
+
let s = [];
|
|
9182
|
+
for (let c in this.objs) s.push(c);
|
|
9183
|
+
return s;
|
|
9184
9184
|
}
|
|
9185
|
-
getMatchingKeys(
|
|
9185
|
+
getMatchingKeys(s) {
|
|
9186
9186
|
let c = [];
|
|
9187
|
-
for (let l in this.objs) l.search(
|
|
9187
|
+
for (let l in this.objs) l.search(s) !== -1 && c.push(l);
|
|
9188
9188
|
return c;
|
|
9189
9189
|
}
|
|
9190
9190
|
reset() {
|
|
@@ -9192,29 +9192,29 @@ function ta() {
|
|
|
9192
9192
|
}
|
|
9193
9193
|
}
|
|
9194
9194
|
ke.PropertiesFile = r;
|
|
9195
|
-
let n = a(function(...
|
|
9195
|
+
let n = a(function(...s) {
|
|
9196
9196
|
let c = new r();
|
|
9197
|
-
return c.of.apply(c,
|
|
9197
|
+
return c.of.apply(c, s), c;
|
|
9198
9198
|
}, "of2");
|
|
9199
9199
|
return ke.of = n, ke;
|
|
9200
9200
|
}
|
|
9201
9201
|
a(ta, "requireDistNode");
|
|
9202
|
-
var ra = ta(), na =
|
|
9203
|
-
const tr = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" },
|
|
9202
|
+
var ra = ta(), na = Cr(ra);
|
|
9203
|
+
const tr = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" }, yn = a((e) => {
|
|
9204
9204
|
try {
|
|
9205
9205
|
return na.of(e);
|
|
9206
9206
|
} catch {
|
|
9207
9207
|
return;
|
|
9208
9208
|
}
|
|
9209
9209
|
}, "safeReadProperties"), ia = a(({ env: e, cwd: t }) => {
|
|
9210
|
-
const r = e.TEAMCITY_BUILD_PROPERTIES_FILE ?
|
|
9211
|
-
return Object.fromEntries(Object.keys(tr).map((
|
|
9210
|
+
const r = e.TEAMCITY_BUILD_PROPERTIES_FILE ? yn(e.TEAMCITY_BUILD_PROPERTIES_FILE) : void 0, n = r ? r.get("teamcity.configuration.properties.file") : void 0, i = n && yn(n);
|
|
9211
|
+
return Object.fromEntries(Object.keys(tr).map((s) => [s, (r ? r.get(tr[s]) : void 0) || (i ? i.get(tr[s]) : void 0) || (s === "branch" ? er({ env: e, cwd: t }) : void 0)]));
|
|
9212
9212
|
}, "getProperties");
|
|
9213
|
-
var
|
|
9213
|
+
var sa = { detect({ env: e }) {
|
|
9214
9214
|
return !!e.TEAMCITY_VERSION;
|
|
9215
9215
|
}, configuration({ env: e, cwd: t }) {
|
|
9216
9216
|
return { name: "TeamCity", service: "teamcity", commit: e.BUILD_VCS_NUMBER, build: e.BUILD_NUMBER, slug: e.TEAMCITY_BUILDCONF_NAME, ...ia({ env: e, cwd: t }) };
|
|
9217
|
-
} },
|
|
9217
|
+
} }, oa = { detect({ env: e }) {
|
|
9218
9218
|
return !!e.TRAVIS;
|
|
9219
9219
|
}, configuration({ env: e }) {
|
|
9220
9220
|
const t = e.TRAVIS_PULL_REQUEST === "false" ? void 0 : e.TRAVIS_PULL_REQUEST, r = !!t;
|
|
@@ -9244,10 +9244,10 @@ var oa = { detect({ env: e }) {
|
|
|
9244
9244
|
const t = e.JB_SPACE_PROJECT_KEY, r = e.JB_SPACE_GIT_REPOSITORY_NAME;
|
|
9245
9245
|
return { name: "JetBrains Space", service: "jetbrainsSpace", commit: e.JB_SPACE_GIT_REVISION, build: e.JB_SPACE_EXECUTION_NUMBER, branch: tt(e.JB_SPACE_GIT_BRANCH), slug: t && r ? `${t.toLowerCase()}/${r}` : void 0 };
|
|
9246
9246
|
} };
|
|
9247
|
-
const rr = { appveyor:
|
|
9247
|
+
const rr = { appveyor: As, azurePipelines: bs, bamboo: vs, bitbucket: Cs, bitrise: Us, buddy: Bs, buildkite: Oo, circleci: Do, cirrus: Mo, cloudflarePages: xo, codebuild: Go, codefresh: $o, codeship: ko, drone: Ho, github: Ko, gitlab: Vo, jenkins: Wo, netlify: Yo, puppet: Jo, sail: zo, screwdriver: Qo, scrutinizer: Xo, semaphore: Zo, shippable: ea, teamcity: sa, travis: oa, vela: aa, vercel: ca, wercker: ua, woodpecker: la, jetbrainsSpace: fa };
|
|
9248
9248
|
var nr = a(({ env: e = process.env, cwd: t = process.cwd() } = {}) => {
|
|
9249
9249
|
for (const r of Object.keys(rr)) if (rr[r].detect({ env: e, cwd: t })) return { isCi: true, ...rr[r].configuration({ env: e, cwd: t }) };
|
|
9250
|
-
return { isCi: !!e.CI, ...
|
|
9250
|
+
return { isCi: !!e.CI, ...jo.configuration({ env: e, cwd: t }) };
|
|
9251
9251
|
}, "envCiModule");
|
|
9252
9252
|
const ha = typeof nr == "function" ? nr : nr.default;
|
|
9253
9253
|
function da() {
|
|
@@ -9282,30 +9282,30 @@ function Ea() {
|
|
|
9282
9282
|
a(Ea, "getMachineInfo");
|
|
9283
9283
|
const ga = new Error("request for lock canceled");
|
|
9284
9284
|
var _a = a(function(e, t, r, n) {
|
|
9285
|
-
function i(
|
|
9286
|
-
return
|
|
9287
|
-
c(
|
|
9285
|
+
function i(s) {
|
|
9286
|
+
return s instanceof r ? s : new r(function(c) {
|
|
9287
|
+
c(s);
|
|
9288
9288
|
});
|
|
9289
9289
|
}
|
|
9290
|
-
return a(i, "adopt"), new (r || (r = Promise))(function(
|
|
9290
|
+
return a(i, "adopt"), new (r || (r = Promise))(function(s, c) {
|
|
9291
9291
|
function l(h) {
|
|
9292
9292
|
try {
|
|
9293
9293
|
E(n.next(h));
|
|
9294
|
-
} catch (
|
|
9295
|
-
c(
|
|
9294
|
+
} catch (_) {
|
|
9295
|
+
c(_);
|
|
9296
9296
|
}
|
|
9297
9297
|
}
|
|
9298
9298
|
a(l, "fulfilled");
|
|
9299
9299
|
function p(h) {
|
|
9300
9300
|
try {
|
|
9301
9301
|
E(n.throw(h));
|
|
9302
|
-
} catch (
|
|
9303
|
-
c(
|
|
9302
|
+
} catch (_) {
|
|
9303
|
+
c(_);
|
|
9304
9304
|
}
|
|
9305
9305
|
}
|
|
9306
9306
|
a(p, "rejected");
|
|
9307
9307
|
function E(h) {
|
|
9308
|
-
h.done ?
|
|
9308
|
+
h.done ? s(h.value) : i(h.value).then(l, p);
|
|
9309
9309
|
}
|
|
9310
9310
|
a(E, "step"), E((n = n.apply(e, t || [])).next());
|
|
9311
9311
|
});
|
|
@@ -9320,15 +9320,15 @@ class Ia {
|
|
|
9320
9320
|
acquire(t = 1, r = 0) {
|
|
9321
9321
|
if (t <= 0) throw new Error(`invalid weight ${t}: must be positive`);
|
|
9322
9322
|
return new Promise((n, i) => {
|
|
9323
|
-
const
|
|
9324
|
-
c === -1 && t <= this._value ? this._dispatchItem(
|
|
9323
|
+
const s = { resolve: n, reject: i, weight: t, priority: r }, c = wn(this._queue, (l) => r <= l.priority);
|
|
9324
|
+
c === -1 && t <= this._value ? this._dispatchItem(s) : this._queue.splice(c + 1, 0, s);
|
|
9325
9325
|
});
|
|
9326
9326
|
}
|
|
9327
9327
|
runExclusive(t) {
|
|
9328
9328
|
return _a(this, arguments, void 0, function* (r, n = 1, i = 0) {
|
|
9329
|
-
const [
|
|
9329
|
+
const [s, c] = yield this.acquire(n, i);
|
|
9330
9330
|
try {
|
|
9331
|
-
return yield r(
|
|
9331
|
+
return yield r(s);
|
|
9332
9332
|
} finally {
|
|
9333
9333
|
c();
|
|
9334
9334
|
}
|
|
@@ -9379,8 +9379,8 @@ class Ia {
|
|
|
9379
9379
|
for (let r = this._value; r > 0; r--) {
|
|
9380
9380
|
const n = this._weightedWaiters[r - 1];
|
|
9381
9381
|
if (!n) continue;
|
|
9382
|
-
const i = n.findIndex((
|
|
9383
|
-
(i === -1 ? n : n.splice(0, i)).forEach(((
|
|
9382
|
+
const i = n.findIndex((s) => s.priority <= t);
|
|
9383
|
+
(i === -1 ? n : n.splice(0, i)).forEach(((s) => s.resolve()));
|
|
9384
9384
|
}
|
|
9385
9385
|
}
|
|
9386
9386
|
}
|
|
@@ -9389,40 +9389,40 @@ class Ia {
|
|
|
9389
9389
|
}
|
|
9390
9390
|
}
|
|
9391
9391
|
function Sa(e, t) {
|
|
9392
|
-
const r =
|
|
9392
|
+
const r = wn(e, (n) => t.priority <= n.priority);
|
|
9393
9393
|
e.splice(r + 1, 0, t);
|
|
9394
9394
|
}
|
|
9395
9395
|
a(Sa, "insertSorted");
|
|
9396
|
-
function
|
|
9396
|
+
function wn(e, t) {
|
|
9397
9397
|
for (let r = e.length - 1; r >= 0; r--) if (t(e[r])) return r;
|
|
9398
9398
|
return -1;
|
|
9399
9399
|
}
|
|
9400
|
-
a(
|
|
9400
|
+
a(wn, "findIndexFromEnd");
|
|
9401
9401
|
var Ra = a(function(e, t, r, n) {
|
|
9402
|
-
function i(
|
|
9403
|
-
return
|
|
9404
|
-
c(
|
|
9402
|
+
function i(s) {
|
|
9403
|
+
return s instanceof r ? s : new r(function(c) {
|
|
9404
|
+
c(s);
|
|
9405
9405
|
});
|
|
9406
9406
|
}
|
|
9407
|
-
return a(i, "adopt"), new (r || (r = Promise))(function(
|
|
9407
|
+
return a(i, "adopt"), new (r || (r = Promise))(function(s, c) {
|
|
9408
9408
|
function l(h) {
|
|
9409
9409
|
try {
|
|
9410
9410
|
E(n.next(h));
|
|
9411
|
-
} catch (
|
|
9412
|
-
c(
|
|
9411
|
+
} catch (_) {
|
|
9412
|
+
c(_);
|
|
9413
9413
|
}
|
|
9414
9414
|
}
|
|
9415
9415
|
a(l, "fulfilled");
|
|
9416
9416
|
function p(h) {
|
|
9417
9417
|
try {
|
|
9418
9418
|
E(n.throw(h));
|
|
9419
|
-
} catch (
|
|
9420
|
-
c(
|
|
9419
|
+
} catch (_) {
|
|
9420
|
+
c(_);
|
|
9421
9421
|
}
|
|
9422
9422
|
}
|
|
9423
9423
|
a(p, "rejected");
|
|
9424
9424
|
function E(h) {
|
|
9425
|
-
h.done ?
|
|
9425
|
+
h.done ? s(h.value) : i(h.value).then(l, p);
|
|
9426
9426
|
}
|
|
9427
9427
|
a(E, "step"), E((n = n.apply(e, t || [])).next());
|
|
9428
9428
|
});
|
|
@@ -9456,28 +9456,28 @@ class Ta {
|
|
|
9456
9456
|
return this._semaphore.cancel();
|
|
9457
9457
|
}
|
|
9458
9458
|
}
|
|
9459
|
-
function
|
|
9459
|
+
function An(e, t) {
|
|
9460
9460
|
const r = e.length;
|
|
9461
9461
|
let n = 0, i = 0;
|
|
9462
|
-
const
|
|
9463
|
-
return t({ completed: n, errors: i, total: r }), e.map((c) => c.then(async (l) => (await
|
|
9462
|
+
const s = new Ta();
|
|
9463
|
+
return t({ completed: n, errors: i, total: r }), e.map((c) => c.then(async (l) => (await s.runExclusive(() => {
|
|
9464
9464
|
n++, t({ completed: n, errors: i, total: r });
|
|
9465
9465
|
}), l)).catch(async (l) => {
|
|
9466
|
-
throw await
|
|
9466
|
+
throw await s.runExclusive(() => {
|
|
9467
9467
|
n++, i++, t({ completed: n, errors: i, total: r });
|
|
9468
9468
|
}), l;
|
|
9469
9469
|
}));
|
|
9470
9470
|
}
|
|
9471
|
-
a(
|
|
9471
|
+
a(An, "trackPromiseProgress");
|
|
9472
9472
|
function ya({ result: e, sensitiveValues: t }) {
|
|
9473
|
-
return e.steps.map((r) =>
|
|
9473
|
+
return e.steps.map((r) => bn({ sensitiveValues: t, step: r }));
|
|
9474
9474
|
}
|
|
9475
9475
|
a(ya, "extractSteps");
|
|
9476
|
-
function
|
|
9477
|
-
const r = a((n) => n && e?.length ?
|
|
9478
|
-
return { category: t.category, duration: t.duration, error: t.error ? { message: r(t.error.message) || "Unknown error", stack: r(t.error.stack) } : void 0, location: t.location ? { column: t.location.column, file: t.location.file, line: t.location.line } : void 0, startedAt: new Date(t.startTime), steps: t.steps && t.steps.length > 0 ? t.steps.map((n) =>
|
|
9476
|
+
function bn({ sensitiveValues: e, step: t }) {
|
|
9477
|
+
const r = a((n) => n && e?.length ? oe({ sensitiveValues: e, str: n }) : n, "scrub");
|
|
9478
|
+
return { category: t.category, duration: t.duration, error: t.error ? { message: r(t.error.message) || "Unknown error", stack: r(t.error.stack) } : void 0, location: t.location ? { column: t.location.column, file: t.location.file, line: t.location.line } : void 0, startedAt: new Date(t.startTime), steps: t.steps && t.steps.length > 0 ? t.steps.map((n) => bn({ sensitiveValues: e, step: n })) : void 0, title: r(t.title) ?? t.title };
|
|
9479
9479
|
}
|
|
9480
|
-
a(
|
|
9480
|
+
a(bn, "extractStep");
|
|
9481
9481
|
async function wa({ fileData: e, maxRetries: t = 3, uploadUrl: r }) {
|
|
9482
9482
|
await Wn(async () => {
|
|
9483
9483
|
const n = await fetch(r, { body: e, method: "PUT" });
|
|
@@ -9485,7 +9485,7 @@ async function wa({ fileData: e, maxRetries: t = 3, uploadUrl: r }) {
|
|
|
9485
9485
|
}, { minTimeout: 2e3, randomize: true, retries: t });
|
|
9486
9486
|
}
|
|
9487
9487
|
a(wa, "uploadWithRetry");
|
|
9488
|
-
const Aa = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter",
|
|
9488
|
+
const Aa = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", vn = 120 * 1e3, Cn = 3e4, ba = process.env.STABLY_API_URL ?? "https://api.stably.ai", va = 50, Ca = a(({ gitInfo: e, suite: t }) => {
|
|
9489
9489
|
const r = [...new Set(t.allTests().map((n) => n.parent.project()?.name).filter((n) => !!n))];
|
|
9490
9490
|
if (r.length > 0) {
|
|
9491
9491
|
const n = r.join(", ");
|
|
@@ -9495,8 +9495,8 @@ const Aa = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", bn = 120
|
|
|
9495
9495
|
try {
|
|
9496
9496
|
const { username: n } = Et.userInfo();
|
|
9497
9497
|
if (n) {
|
|
9498
|
-
const
|
|
9499
|
-
return `${n} - ${
|
|
9498
|
+
const s = (/* @__PURE__ */ new Date()).toLocaleString("en-US", { day: "numeric", hour: "numeric", hour12: false, minute: "2-digit", month: "short" });
|
|
9499
|
+
return `${n} - ${s}`;
|
|
9500
9500
|
}
|
|
9501
9501
|
} catch {
|
|
9502
9502
|
}
|
|
@@ -9505,7 +9505,7 @@ const Aa = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", bn = 120
|
|
|
9505
9505
|
if (!e || e.length === 0) return;
|
|
9506
9506
|
const r = new Set(t.allTests().map((i) => i.parent.project()?.name).filter(Boolean)), n = e.filter((i) => r.has(i.projectName));
|
|
9507
9507
|
return n.length > 0 ? n : void 0;
|
|
9508
|
-
}, "filterNotificationConfigsByRunningProjects"), Ba = a((e) => e ? { configFile: e.configFile, forbidOnly: e.forbidOnly, fullyParallel: e.fullyParallel, globalSetup: e.globalSetup, globalTeardown: e.globalTeardown, globalTimeout: e.globalTimeout, grep: e.grep?.toString(), grepInvert: e.grepInvert?.toString(), maxFailures: e.maxFailures, metadata: e.metadata, preserveOutput: e.preserveOutput, quiet: e.quiet, reporter: e.reporter, reportSlowTests: e.reportSlowTests, rootDir: e.rootDir, shard: e.shard, updateSnapshots: e.updateSnapshots, version: e.version, webServer: e.webServer, workers: e.workers } : void 0, "extractConfigInfo"),
|
|
9508
|
+
}, "filterNotificationConfigsByRunningProjects"), Ba = a((e) => e ? { configFile: e.configFile, forbidOnly: e.forbidOnly, fullyParallel: e.fullyParallel, globalSetup: e.globalSetup, globalTeardown: e.globalTeardown, globalTimeout: e.globalTimeout, grep: e.grep?.toString(), grepInvert: e.grepInvert?.toString(), maxFailures: e.maxFailures, metadata: e.metadata, preserveOutput: e.preserveOutput, quiet: e.quiet, reporter: e.reporter, reportSlowTests: e.reportSlowTests, rootDir: e.rootDir, shard: e.shard, updateSnapshots: e.updateSnapshots, version: e.version, webServer: e.webServer, workers: e.workers } : void 0, "extractConfigInfo"), ir = a(({ absolutePath: e, rootDir: t }) => {
|
|
9509
9509
|
if (t && e.startsWith(t)) {
|
|
9510
9510
|
const r = e.slice(t.length);
|
|
9511
9511
|
return r.startsWith("/") ? r.slice(1) : r;
|
|
@@ -9534,6 +9534,8 @@ class Un {
|
|
|
9534
9534
|
sensitiveValues;
|
|
9535
9535
|
filteredNotificationConfigs;
|
|
9536
9536
|
testIdMap = /* @__PURE__ */ new Map();
|
|
9537
|
+
completedTestIds = /* @__PURE__ */ new Set();
|
|
9538
|
+
suite;
|
|
9537
9539
|
pendingQueuedSpecs;
|
|
9538
9540
|
attachmentFiles = /* @__PURE__ */ new Map();
|
|
9539
9541
|
pendingUploadUrlRequests = /* @__PURE__ */ new Map();
|
|
@@ -9542,35 +9544,35 @@ class Un {
|
|
|
9542
9544
|
if (!r) throw new Error("STABLY_API_KEY is required. Provide it via options or environment variable.");
|
|
9543
9545
|
if (!n) throw new Error("STABLY_PROJECT_ID is required. Provide it via options or environment variable.");
|
|
9544
9546
|
if (this.apiKey = r, this.projectId = n, this.notificationConfigs = t?.notificationConfigs, this.skipSuiteReporting = process.env.STABLY_INTERNAL_DISABLE_REPORTING === "1", t?.sensitiveValues?.length) {
|
|
9545
|
-
const i =
|
|
9546
|
-
this.sensitiveValues = [...i].sort((
|
|
9547
|
+
const i = qr(t.sensitiveValues);
|
|
9548
|
+
this.sensitiveValues = [...i].sort((s, c) => c.length - s.length);
|
|
9547
9549
|
}
|
|
9548
|
-
this.wsClient = new
|
|
9550
|
+
this.wsClient = new ws({ apiKey: r, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: a((i) => this.handleWebSocketError(i), "onError"), onMessage: a((i) => this.handleWebSocketMessage(i), "onMessage"), projectId: n, reconnectDelay: 2e3, url: Aa });
|
|
9549
9551
|
}
|
|
9550
9552
|
onBegin(t, r) {
|
|
9551
|
-
if (this.isListMode = process.argv.includes("--list"), this.isListMode || (r.allTests().length === 0 && process.exit(1), this.config = t, this.testSuiteRunId = this.getSuiteRunId(t), this.rootDir = t.rootDir, this.skipSuiteReporting)) return;
|
|
9553
|
+
if (this.isListMode = process.argv.includes("--list"), this.isListMode || (r.allTests().length === 0 && process.exit(1), this.config = t, this.testSuiteRunId = this.getSuiteRunId(t), this.rootDir = t.rootDir, this.suite = r, this.skipSuiteReporting)) return;
|
|
9552
9554
|
this.suiteData = this.extractSuiteInfo(t, r);
|
|
9553
9555
|
const i = Ua({ notificationConfigs: this.notificationConfigs, suite: r });
|
|
9554
9556
|
this.filteredNotificationConfigs = i;
|
|
9555
|
-
const
|
|
9557
|
+
const s = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, totalShards: this.config?.shard?.total } : void 0, status: "running" };
|
|
9556
9558
|
try {
|
|
9557
|
-
const E = fileURLToPath$1(new URL("./create-suite.mjs", import.meta.url)), h = JSON.stringify({ apiBaseUrl: ba, apiKey: this.apiKey, body:
|
|
9558
|
-
if (
|
|
9559
|
-
const v =
|
|
9559
|
+
const E = fileURLToPath$1(new URL("./create-suite.mjs", import.meta.url)), h = JSON.stringify({ apiBaseUrl: ba, apiKey: this.apiKey, body: s, projectId: this.projectId, timeoutMs: Cn }), _ = spawnSync(process.execPath, [E], { encoding: "utf-8", input: h, stdio: ["pipe", "pipe", "pipe"], timeout: Cn + 5e3 });
|
|
9560
|
+
if (_.status === 2 && (console.error(ie.bold(ie.red("[StablyAI reporter] Could not authenticate with the server. Either the API Key or Project ID is invalid. These can be provided via stablyReporter({ apiKey, projectId }) in playwright.config.ts or environment variables (STABLY_API_KEY, STABLY_PROJECT_ID). You can find your API key and Project ID at https://app.stably.ai/settings?tab=api-key"))), process.exit(1)), _.status !== 0) {
|
|
9561
|
+
const v = _.stderr?.trim() || _.error?.message || "Unknown error";
|
|
9560
9562
|
throw new Error(v);
|
|
9561
9563
|
}
|
|
9562
|
-
this.createdSuiteRun = JSON.parse(
|
|
9564
|
+
this.createdSuiteRun = JSON.parse(_.stdout.trim()), console.log(ie.cyan(`\u{1F4CA} View live results: ${ie.bold(ie.underline(this.createdSuiteRun.url))}
|
|
9563
9565
|
`));
|
|
9564
9566
|
} catch (E) {
|
|
9565
9567
|
const h = E instanceof Error ? E.message : String(E);
|
|
9566
|
-
console.warn(ie.yellow(`[StablyAI reporter] Could not create suite before tests started: ${h}. Results will still be reported, but the results URL won't be available until tests complete.`)), this.pendingOperations.push(this.wsClient.sendEvent({ payload:
|
|
9568
|
+
console.warn(ie.yellow(`[StablyAI reporter] Could not create suite before tests started: ${h}. Results will still be reported, but the results URL won't be available until tests complete.`)), this.pendingOperations.push(this.wsClient.sendEvent({ payload: s, type: "suite_start" }));
|
|
9567
9569
|
}
|
|
9568
9570
|
const c = r.allTests(), l = /* @__PURE__ */ new Map();
|
|
9569
9571
|
for (const E of c) {
|
|
9570
9572
|
const h = Ye();
|
|
9571
9573
|
this.testIdMap.set(E.id, h);
|
|
9572
|
-
const
|
|
9573
|
-
|
|
9574
|
+
const _ = E.parent.project(), v = ir({ absolutePath: E.location.file, rootDir: this.rootDir }), C = { annotations: E.annotations.length > 0 ? E.annotations.map((M) => ({ description: M.description, type: M.type })) : void 0, attemptNumber: 1, browserName: _?.use?.defaultBrowserType, expectedStatus: E.expectedStatus === "skipped" ? "skipped" : "passed", fullTitle: this.scrubSensitiveString(E.titlePath().join(" \u203A ")) ?? "", location: `${v}:${E.location.line}:${E.location.column}`, maxRetries: E.retries, projectName: _?.name, tags: E.tags.length > 0 ? E.tags : void 0, testIdentifier: E.id, title: this.scrubSensitiveString(E.title) ?? E.title }, O = l.get(v);
|
|
9575
|
+
O ? O.push(C) : l.set(v, [C]);
|
|
9574
9576
|
}
|
|
9575
9577
|
const p = Array.from(l.entries()).map(([E, h]) => ({ filePath: E, tests: h }));
|
|
9576
9578
|
this.createdSuiteRun ? this.pendingOperations.push(this.wsClient.sendEvent({ payload: { specs: p, suiteId: this.testSuiteRunId }, type: "tests_queued" })) : this.pendingQueuedSpecs = p;
|
|
@@ -9585,10 +9587,11 @@ class Un {
|
|
|
9585
9587
|
}
|
|
9586
9588
|
onTestEnd(t, r) {
|
|
9587
9589
|
if (this.isListMode || this.skipSuiteReporting) return;
|
|
9590
|
+
this.completedTestIds.add(t.id);
|
|
9588
9591
|
const n = this.extractTestCaseInfo(t, r);
|
|
9589
9592
|
this.testCases.push(n), this.testStepsMap.set(n.id, r);
|
|
9590
|
-
const i = ya({ result: r, sensitiveValues: this.sensitiveValues }),
|
|
9591
|
-
const l = await this.extractAttachmentMetadata({ attachments:
|
|
9593
|
+
const i = ya({ result: r, sensitiveValues: this.sensitiveValues }), s = [...r.attachments, { contentType: "text/plain", name: "source-code", path: t.location.file }], c = (async () => {
|
|
9594
|
+
const l = await this.extractAttachmentMetadata({ attachments: s, attemptNumber: n.attemptNumber, testId: n.id });
|
|
9592
9595
|
let p, E;
|
|
9593
9596
|
l.length > 0 && (p = `${n.id}-${n.attemptNumber}`, E = new Promise((h) => {
|
|
9594
9597
|
this.pendingUploadUrlRequests.set(p, h);
|
|
@@ -9597,8 +9600,8 @@ class Un {
|
|
|
9597
9600
|
await this.wsClient.sendEvent({ payload: { ...n, attachments: l, steps: i }, type: "test_end" });
|
|
9598
9601
|
} catch (h) {
|
|
9599
9602
|
if (p && E) {
|
|
9600
|
-
const
|
|
9601
|
-
|
|
9603
|
+
const _ = this.pendingUploadUrlRequests.get(p);
|
|
9604
|
+
_ && (_(), this.pendingUploadUrlRequests.delete(p));
|
|
9602
9605
|
}
|
|
9603
9606
|
throw h;
|
|
9604
9607
|
}
|
|
@@ -9611,27 +9614,37 @@ class Un {
|
|
|
9611
9614
|
this.wsClient.close();
|
|
9612
9615
|
return;
|
|
9613
9616
|
}
|
|
9617
|
+
if (this.suite) {
|
|
9618
|
+
const h = /* @__PURE__ */ new Date();
|
|
9619
|
+
for (const _ of this.suite.allTests()) {
|
|
9620
|
+
if (this.completedTestIds.has(_.id)) continue;
|
|
9621
|
+
const v = this.testIdMap.get(_.id);
|
|
9622
|
+
if (!v) continue;
|
|
9623
|
+
const C = _.parent.project(), O = ir({ absolutePath: _.location.file, rootDir: this.rootDir });
|
|
9624
|
+
this.pendingOperations.push(this.wsClient.sendEvent({ payload: { annotations: _.annotations.length > 0 ? _.annotations : void 0, attemptNumber: 1, browserName: C?.use?.defaultBrowserType, duration: 0, expectedStatus: _.expectedStatus, fullTitle: this.scrubSensitiveString(_.titlePath().join(" \u203A ")) ?? "", id: v, location: `${O}:${_.location.line}:${_.location.column}`, maxRetries: _.retries, outcome: "skipped", projectName: C?.name, retryCount: 0, startedAt: h, status: "skipped", suiteId: this.testSuiteRunId, tags: _.tags.length > 0 ? _.tags : void 0, testIdentifier: _.id, title: this.scrubSensitiveString(_.title) ?? _.title }, type: "test_end" }));
|
|
9625
|
+
}
|
|
9626
|
+
}
|
|
9614
9627
|
this.pendingOperations.push(this.wsClient.sendEvent({ payload: { duration: t.duration, notificationRequest: this.filteredNotificationConfigs ? { notificationConfigs: this.filteredNotificationConfigs, totalShards: this.config?.shard?.total } : void 0, status: t.status === "timedout" ? "timedOut" : t.status, suiteId: this.testSuiteRunId }, type: "suite_end" })), Ie$1("[Stably reporter] Waiting for pending tasks to finish...");
|
|
9615
9628
|
const r = Y();
|
|
9616
9629
|
r.start("Waiting for tasks to finish...");
|
|
9617
|
-
const n = Promise.allSettled(
|
|
9618
|
-
r.message(`${h}/${v} tasks finished${
|
|
9619
|
-
})), i = new Promise((h,
|
|
9630
|
+
const n = Promise.allSettled(An(this.pendingOperations, ({ completed: h, errors: _, total: v }) => {
|
|
9631
|
+
r.message(`${h}/${v} tasks finished${_ > 0 ? `, ${_} errors` : ""}`);
|
|
9632
|
+
})), i = new Promise((h, _) => {
|
|
9620
9633
|
setTimeout(() => {
|
|
9621
|
-
|
|
9622
|
-
},
|
|
9634
|
+
_(new Error(`Tasks timeout: Some operations did not complete within ${vn / 1e3}s`));
|
|
9635
|
+
}, vn);
|
|
9623
9636
|
});
|
|
9624
9637
|
try {
|
|
9625
9638
|
await Promise.race([n, i]);
|
|
9626
9639
|
} catch (h) {
|
|
9627
|
-
const
|
|
9628
|
-
console.warn(`[StablyAI reporter] Tasks timeout reached. Some operations may still be pending: ${
|
|
9640
|
+
const _ = h instanceof Error ? h.message : String(h);
|
|
9641
|
+
console.warn(`[StablyAI reporter] Tasks timeout reached. Some operations may still be pending: ${_}`);
|
|
9629
9642
|
}
|
|
9630
9643
|
this.wsClient.flushBuffer(), r.stop("All tasks finished");
|
|
9631
|
-
const
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
})),
|
|
9644
|
+
const s = Y();
|
|
9645
|
+
s.start("Waiting for file uploads to finish..."), await Promise.allSettled(An(this.pendingUploads, ({ completed: h, errors: _, total: v }) => {
|
|
9646
|
+
s.message(`${h}/${v} uploads finished${_ > 0 ? `, ${_} errors` : ""}`);
|
|
9647
|
+
})), s.stop("All file uploads finished"), this.wsClient.close();
|
|
9635
9648
|
try {
|
|
9636
9649
|
const h = Ke.join(this.rootDir, ".stably");
|
|
9637
9650
|
mkdirSync(h, { recursive: true }), writeFileSync(Ke.join(h, "last-run.json"), JSON.stringify({ runId: this.testSuiteRunId, timestamp: Date.now() }));
|
|
@@ -9649,29 +9662,29 @@ class Un {
|
|
|
9649
9662
|
\u{1F4CA} View results: ${ie.bold(ie.underline(this.createdSuiteRun.url))}` : ""}${E}`));
|
|
9650
9663
|
}
|
|
9651
9664
|
scrubSensitiveString(t) {
|
|
9652
|
-
return !t || !this.sensitiveValues?.length ? t :
|
|
9665
|
+
return !t || !this.sensitiveValues?.length ? t : oe({ sensitiveValues: this.sensitiveValues, str: t });
|
|
9653
9666
|
}
|
|
9654
9667
|
extractSuiteInfo(t, r) {
|
|
9655
|
-
const n = da(), i = Ea(),
|
|
9656
|
-
return { id: Ye(), projectSettings: Ba(t), startedAt:
|
|
9668
|
+
const n = da(), i = Ea(), s = /* @__PURE__ */ new Date();
|
|
9669
|
+
return { id: Ye(), projectSettings: Ba(t), startedAt: s, suiteId: this.testSuiteRunId, title: r.title || Ca({ gitInfo: n, suite: r }), createdAt: s, git: { branch: n.branch, commit: { message: n.commit.message, sha: n.commit.sha }, pr: n.pr }, isCI: n.isCI, shards: t.shard?.total ?? 1, workers: t.workers, machineInfo: i, updatedAt: s };
|
|
9657
9670
|
}
|
|
9658
9671
|
extractTestCaseInfo(t, r) {
|
|
9659
|
-
const n =
|
|
9660
|
-
return l || this.testIdMap.set(t.id, p), { fullTitle: this.scrubSensitiveString(t.titlePath().join(" \u203A ")) ?? "", id: p, location: `${n}:${t.location.line}:${t.location.column}`, suiteId: this.testSuiteRunId, testIdentifier: t.id, title: this.scrubSensitiveString(t.title) ?? t.title, browserName: c, duration: r.duration, expectedStatus: t.expectedStatus, finishedAt: r.startTime && r.duration ? new Date(r.startTime.getTime() + r.duration) : void 0, outcome: t.outcome(), projectName:
|
|
9672
|
+
const n = ir({ absolutePath: t.location.file, rootDir: this.rootDir }), i = t.parent.project(), s = i?.name, c = i?.use?.defaultBrowserType, l = this.testIdMap.get(t.id), p = l ?? Ye();
|
|
9673
|
+
return l || this.testIdMap.set(t.id, p), { fullTitle: this.scrubSensitiveString(t.titlePath().join(" \u203A ")) ?? "", id: p, location: `${n}:${t.location.line}:${t.location.column}`, suiteId: this.testSuiteRunId, testIdentifier: t.id, title: this.scrubSensitiveString(t.title) ?? t.title, browserName: c, duration: r.duration, expectedStatus: t.expectedStatus, finishedAt: r.startTime && r.duration ? new Date(r.startTime.getTime() + r.duration) : void 0, outcome: t.outcome(), projectName: s, startedAt: new Date(r.startTime), status: r.status, attemptNumber: r.retry + 1, maxRetries: t.retries, retryCount: r.retry, errorMessage: this.scrubSensitiveString(r.error?.message), errorStack: this.scrubSensitiveString(r.error?.stack), errorType: r.error?.value, annotations: t.annotations.length > 0 ? t.annotations : void 0, tags: t.tags.length > 0 ? t.tags : void 0 };
|
|
9661
9674
|
}
|
|
9662
9675
|
async extractAttachmentMetadata({ attachments: t, attemptNumber: r, testId: n }) {
|
|
9663
|
-
return (await Promise.all(t.map((
|
|
9676
|
+
return (await Promise.all(t.map((s) => this.processAttachment({ attachment: s, attemptNumber: r, testId: n })))).filter((s) => s !== void 0);
|
|
9664
9677
|
}
|
|
9665
9678
|
async processAttachment({ attachment: t, attemptNumber: r, testId: n }) {
|
|
9666
9679
|
let i;
|
|
9667
9680
|
try {
|
|
9668
9681
|
i = t.name === "trace" && t.path && this.sensitiveValues && this.sensitiveValues.length > 0 ? openSync(t.path, "r") : void 0;
|
|
9669
|
-
const
|
|
9670
|
-
if (!
|
|
9682
|
+
const s = await this.getAttachmentFileData({ attachment: t, traceFd: i });
|
|
9683
|
+
if (!s) return;
|
|
9671
9684
|
const c = Ye(), l = `${n}-${r}-${c}`;
|
|
9672
|
-
return this.attachmentFiles.set(l,
|
|
9673
|
-
} catch (
|
|
9674
|
-
const c =
|
|
9685
|
+
return this.attachmentFiles.set(l, s), { artifactId: c, attemptNumber: r, contentType: t.contentType, name: t.name, sizeBytes: s.length, testId: n };
|
|
9686
|
+
} catch (s) {
|
|
9687
|
+
const c = s instanceof Error ? s.message : String(s);
|
|
9675
9688
|
console.error(`[StablyAI reporter] Failed to read attachment ${t.name}: ${c}`);
|
|
9676
9689
|
return;
|
|
9677
9690
|
} finally {
|
|
@@ -9690,10 +9703,10 @@ class Un {
|
|
|
9690
9703
|
return t.body ? Buffer.from(t.body) : t.path ? readFileSync$1(t.path) : void 0;
|
|
9691
9704
|
}
|
|
9692
9705
|
async scrubTraceFromFile({ attachmentPath: t, sensitiveValues: r, traceFd: n }) {
|
|
9693
|
-
return n !== void 0 ?
|
|
9706
|
+
return n !== void 0 ? Ss({ sensitiveValues: r, traceFd: n, tracePath: t }) : Is({ sensitiveValues: r, tracePath: t });
|
|
9694
9707
|
}
|
|
9695
9708
|
handleWebSocketError(t) {
|
|
9696
|
-
t.code ===
|
|
9709
|
+
t.code === Jr.AUTHENTICATION_FAILED && (console.error(ie.bold(ie.red("[StablyAI reporter] Could not authenticate with the server. Either the API Key or Project ID is invalid. These can be provided via stablyReporter({ apiKey, projectId }) in playwright.config.ts or environment variables (STABLY_API_KEY, STABLY_PROJECT_ID). You can find your API key and Project ID at https://app.stably.ai/settings?tab=api-key"))), process.exit(1)), console.error("[StablyAI reporter] Could not connect to the server. Please check your internet connection and try again."), process.exit(1);
|
|
9697
9710
|
}
|
|
9698
9711
|
handleWebSocketMessage(t) {
|
|
9699
9712
|
if (t.type === "suite_created") this.createdSuiteRun = { id: t.id, name: t.name, url: t.url }, this.pendingQueuedSpecs && (this.pendingOperations.push(this.wsClient.sendEvent({ payload: { specs: this.pendingQueuedSpecs, suiteId: this.testSuiteRunId }, type: "tests_queued" })), this.pendingQueuedSpecs = void 0);
|
|
@@ -9706,13 +9719,13 @@ class Un {
|
|
|
9706
9719
|
}
|
|
9707
9720
|
}
|
|
9708
9721
|
async uploadAttachments({ attemptNumber: t, testId: r, uploadUrls: n }) {
|
|
9709
|
-
const i = n.map(async ({ artifactId:
|
|
9710
|
-
const p = `${r}-${t}-${
|
|
9722
|
+
const i = n.map(async ({ artifactId: s, name: c, uploadUrl: l }) => {
|
|
9723
|
+
const p = `${r}-${t}-${s}`, E = this.attachmentFiles.get(p);
|
|
9711
9724
|
if (E) try {
|
|
9712
9725
|
await wa({ fileData: E, maxRetries: 3, uploadUrl: l }), this.attachmentFiles.delete(p);
|
|
9713
9726
|
} catch (h) {
|
|
9714
|
-
const
|
|
9715
|
-
console.error(`[StablyAI reporter] Failed to upload ${c} after retries: ${
|
|
9727
|
+
const _ = h instanceof Error ? h.message : String(h);
|
|
9728
|
+
console.error(`[StablyAI reporter] Failed to upload ${c} after retries: ${_}`);
|
|
9716
9729
|
}
|
|
9717
9730
|
});
|
|
9718
9731
|
await Promise.allSettled(i);
|
|
@@ -9724,4 +9737,4 @@ function Pa(e) {
|
|
|
9724
9737
|
a(Pa, "stablyReporter");
|
|
9725
9738
|
|
|
9726
9739
|
export { Pa as P, Un as U };
|
|
9727
|
-
//# sourceMappingURL=index-
|
|
9740
|
+
//# sourceMappingURL=index-DsxNMv2-.mjs.map
|