@stablyai/playwright-test 2.1.9 → 2.1.10

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.
@@ -15,7 +15,7 @@ import * as g from 'node:readline';
15
15
  import 'node:stream';
16
16
  import ge from 'os';
17
17
  import require$$7, { fileURLToPath as fileURLToPath$1 } from 'url';
18
- import Hn from 'util';
18
+ import kn 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';
@@ -6709,31 +6709,31 @@ function requirePRetry () {
6709
6709
  }
6710
6710
 
6711
6711
  var pRetryExports = requirePRetry();
6712
- var Kn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
6712
+ var Wn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
6713
6713
 
6714
- var vn = Object.defineProperty;
6715
- var c = (t, e) => vn(t, "name", { value: e, configurable: true });
6714
+ var Un = Object.defineProperty;
6715
+ var c = (t, e) => Un(t, "name", { value: e, configurable: true });
6716
6716
  const re = BigInt(2 ** 32 - 1), dr = BigInt(32);
6717
- function qn(t, e = false) {
6717
+ function Yn(t, e = false) {
6718
6718
  return e ? { h: Number(t & re), l: Number(t >> dr & re) } : { h: Number(t >> dr & re) | 0, l: Number(t & re) | 0 };
6719
6719
  }
6720
- c(qn, "fromBig");
6721
- function Yn(t, e = false) {
6720
+ c(Yn, "fromBig");
6721
+ function Jn(t, e = false) {
6722
6722
  const r = t.length;
6723
6723
  let n = new Uint32Array(r), i = new Uint32Array(r);
6724
6724
  for (let s = 0; s < r; s++) {
6725
- const { h: a, l } = qn(t[s], e);
6725
+ const { h: a, l } = Yn(t[s], e);
6726
6726
  [n[s], i[s]] = [a, l];
6727
6727
  }
6728
6728
  return [n, i];
6729
6729
  }
6730
- c(Yn, "split");
6731
- const Jn = c((t, e, r) => t << r | e >>> 32 - r, "rotlSH"), Qn = c((t, e, r) => e << r | t >>> 32 - r, "rotlSL"), zn = c((t, e, r) => e << r - 32 | t >>> 64 - r, "rotlBH"), Xn = c((t, e, r) => t << r - 32 | e >>> 64 - r, "rotlBL");
6730
+ c(Jn, "split");
6731
+ const Qn = c((t, e, r) => t << r | e >>> 32 - r, "rotlSH"), zn = c((t, e, r) => e << r | t >>> 32 - r, "rotlSL"), Xn = c((t, e, r) => e << r - 32 | t >>> 64 - r, "rotlBH"), Zn = c((t, e, r) => t << r - 32 | e >>> 64 - r, "rotlBL");
6732
6732
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
6733
- function Zn(t) {
6733
+ function ti(t) {
6734
6734
  return t instanceof Uint8Array || ArrayBuffer.isView(t) && t.constructor.name === "Uint8Array";
6735
6735
  }
6736
- c(Zn, "isBytes");
6736
+ c(ti, "isBytes");
6737
6737
  function pr(t, e = "") {
6738
6738
  if (!Number.isSafeInteger(t) || t < 0) {
6739
6739
  const r = e && `"${e}" `;
@@ -6742,7 +6742,7 @@ function pr(t, e = "") {
6742
6742
  }
6743
6743
  c(pr, "anumber");
6744
6744
  function _e(t, e, r = "") {
6745
- const n = Zn(t), i = t?.length;
6745
+ const n = ti(t), i = t?.length;
6746
6746
  if (!n || e !== void 0) {
6747
6747
  const a = r && `"${r}" `, l = "", h = n ? `length=${i}` : `type=${typeof t}`;
6748
6748
  throw new Error(a + "expected Uint8Array" + l + ", got " + h);
@@ -6755,45 +6755,45 @@ function mr(t, e = true) {
6755
6755
  if (e && t.finished) throw new Error("Hash#digest() has already been called");
6756
6756
  }
6757
6757
  c(mr, "aexists");
6758
- function ti(t, e) {
6758
+ function ei(t, e) {
6759
6759
  _e(t, void 0, "digestInto() output");
6760
6760
  const r = e.outputLen;
6761
6761
  if (t.length < r) throw new Error('"digestInto() output" expected to be of length >=' + r);
6762
6762
  }
6763
- c(ti, "aoutput");
6764
- function ei(t) {
6763
+ c(ei, "aoutput");
6764
+ function ri(t) {
6765
6765
  return new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4));
6766
6766
  }
6767
- c(ei, "u32");
6767
+ c(ri, "u32");
6768
6768
  function gr(...t) {
6769
6769
  for (let e = 0; e < t.length; e++) t[e].fill(0);
6770
6770
  }
6771
6771
  c(gr, "clean");
6772
- const ri = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
6773
- function ni(t) {
6772
+ const ni = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
6773
+ function ii(t) {
6774
6774
  return t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255;
6775
6775
  }
6776
- c(ni, "byteSwap");
6777
- function ii(t) {
6778
- for (let e = 0; e < t.length; e++) t[e] = ni(t[e]);
6776
+ c(ii, "byteSwap");
6777
+ function si(t) {
6778
+ for (let e = 0; e < t.length; e++) t[e] = ii(t[e]);
6779
6779
  return t;
6780
6780
  }
6781
- c(ii, "byteSwap32");
6782
- const Er = ri ? (t) => t : ii;
6783
- function si(t, e = {}) {
6781
+ c(si, "byteSwap32");
6782
+ const Er = ni ? (t) => t : si;
6783
+ function oi(t, e = {}) {
6784
6784
  const r = c((i, s) => t(s).update(i).digest(), "hashC"), n = t(void 0);
6785
6785
  return r.outputLen = n.outputLen, r.blockLen = n.blockLen, r.create = (i) => t(i), Object.assign(r, e), Object.freeze(r);
6786
6786
  }
6787
- c(si, "createHasher");
6788
- const oi = c((t) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, t]) }), "oidNist"), ai = BigInt(0), Wt = BigInt(1), ci = BigInt(2), ui = BigInt(7), li = BigInt(256), fi = BigInt(113), _r = [], Ir = [], Sr = [];
6787
+ c(oi, "createHasher");
6788
+ const ai = c((t) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, t]) }), "oidNist"), ci = BigInt(0), Wt = BigInt(1), ui = BigInt(2), li = BigInt(7), fi = BigInt(256), hi = BigInt(113), _r = [], Ir = [], Sr = [];
6789
6789
  for (let t = 0, e = Wt, r = 1, n = 0; t < 24; t++) {
6790
6790
  [r, n] = [n, (2 * r + 3 * n) % 5], _r.push(2 * (5 * n + r)), Ir.push((t + 1) * (t + 2) / 2 % 64);
6791
- let i = ai;
6792
- for (let s = 0; s < 7; s++) e = (e << Wt ^ (e >> ui) * fi) % li, e & ci && (i ^= Wt << (Wt << BigInt(s)) - Wt);
6791
+ let i = ci;
6792
+ for (let s = 0; s < 7; s++) e = (e << Wt ^ (e >> li) * hi) % fi, e & ui && (i ^= Wt << (Wt << BigInt(s)) - Wt);
6793
6793
  Sr.push(i);
6794
6794
  }
6795
- const Rr = Yn(Sr, true), hi = Rr[0], di = Rr[1], Tr = c((t, e, r) => r > 32 ? zn(t, e, r) : Jn(t, e, r), "rotlH"), Ar = c((t, e, r) => r > 32 ? Xn(t, e, r) : Qn(t, e, r), "rotlL");
6796
- function pi(t, e = 24) {
6795
+ const Rr = Jn(Sr, true), di = Rr[0], pi = Rr[1], Tr = c((t, e, r) => r > 32 ? Xn(t, e, r) : Qn(t, e, r), "rotlH"), Ar = c((t, e, r) => r > 32 ? Zn(t, e, r) : zn(t, e, r), "rotlL");
6796
+ function mi(t, e = 24) {
6797
6797
  const r = new Uint32Array(10);
6798
6798
  for (let n = 24 - e; n < 24; n++) {
6799
6799
  for (let a = 0; a < 10; a++) r[a] = t[a] ^ t[a + 10] ^ t[a + 20] ^ t[a + 30] ^ t[a + 40];
@@ -6810,11 +6810,11 @@ function pi(t, e = 24) {
6810
6810
  for (let l = 0; l < 10; l++) r[l] = t[a + l];
6811
6811
  for (let l = 0; l < 10; l++) t[a + l] ^= ~r[(l + 2) % 10] & r[(l + 4) % 10];
6812
6812
  }
6813
- t[0] ^= hi[n], t[1] ^= di[n];
6813
+ t[0] ^= di[n], t[1] ^= pi[n];
6814
6814
  }
6815
6815
  gr(r);
6816
6816
  }
6817
- c(pi, "keccakP");
6817
+ c(mi, "keccakP");
6818
6818
  class sr {
6819
6819
  static {
6820
6820
  c(this, "Keccak");
@@ -6832,13 +6832,13 @@ class sr {
6832
6832
  rounds;
6833
6833
  constructor(e, r, n, i = false, s = 24) {
6834
6834
  if (this.blockLen = e, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds = s, pr(n, "outputLen"), !(0 < e && e < 200)) throw new Error("only keccak-f1600 function is supported");
6835
- this.state = new Uint8Array(200), this.state32 = ei(this.state);
6835
+ this.state = new Uint8Array(200), this.state32 = ri(this.state);
6836
6836
  }
6837
6837
  clone() {
6838
6838
  return this._cloneInto();
6839
6839
  }
6840
6840
  keccak() {
6841
- Er(this.state32), pi(this.state32, this.rounds), Er(this.state32), this.posOut = 0, this.pos = 0;
6841
+ Er(this.state32), mi(this.state32, this.rounds), Er(this.state32), this.posOut = 0, this.pos = 0;
6842
6842
  }
6843
6843
  update(e) {
6844
6844
  mr(this), _e(e);
@@ -6874,7 +6874,7 @@ class sr {
6874
6874
  return pr(e), this.xofInto(new Uint8Array(e));
6875
6875
  }
6876
6876
  digestInto(e) {
6877
- if (ti(e, this), this.finished) throw new Error("digest() was already called");
6877
+ if (ei(e, this), this.finished) throw new Error("digest() was already called");
6878
6878
  return this.writeInto(e), this.destroy(), e;
6879
6879
  }
6880
6880
  digest() {
@@ -6888,8 +6888,8 @@ class sr {
6888
6888
  return e ||= new sr(r, n, i, a, s), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = s, e.suffix = n, e.outputLen = i, e.enableXOF = a, e.destroyed = this.destroyed, e;
6889
6889
  }
6890
6890
  }
6891
- const mi = c((t, e, r, n = {}) => si(() => new sr(e, t, r), n), "genKeccak"), gi = mi(6, 72, 64, oi(10));
6892
- var Ei = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Ie = Math.ceil, ut = Math.floor, st = "[BigNumber Error] ", wr = st + "Number primitive has more than 15 significant digits: ", pt = 1e14, G = 14, Se = 9007199254740991, Re = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], vt = 1e7, tt = 1e9;
6891
+ const gi = c((t, e, r, n = {}) => oi(() => new sr(e, t, r), n), "genKeccak"), Ei = gi(6, 72, 64, ai(10));
6892
+ var _i = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Ie = Math.ceil, ut = Math.floor, st = "[BigNumber Error] ", wr = st + "Number primitive has more than 15 significant digits: ", pt = 1e14, G = 14, Se = 9007199254740991, Re = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], vt = 1e7, tt = 1e9;
6893
6893
  function yr(t) {
6894
6894
  var e, r, n, i = w.prototype = { constructor: w, toString: null, valueOf: null }, s = new w(1), a = 20, l = 4, h = -7, d = 21, g = -1e7, A = 1e7, C = false, v = 1, M = 0, D = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, b = "0123456789abcdefghijklmnopqrstuvwxyz", P = true;
6895
6895
  function w(o, u) {
@@ -6908,7 +6908,7 @@ function yr(t) {
6908
6908
  }
6909
6909
  S = String(o);
6910
6910
  } else {
6911
- if (!Ei.test(S = String(o))) return n(R, S, p);
6911
+ if (!_i.test(S = String(o))) return n(R, S, p);
6912
6912
  R.s = S.charCodeAt(0) == 45 ? (S = S.slice(1), -1) : 1;
6913
6913
  }
6914
6914
  (I = S.indexOf(".")) > -1 && (S = S.replace(".", "")), (T = S.search(/e/i)) > 0 ? (I < 0 && (I = T), I += +S.slice(T + 1), S = S.substring(0, T)) : I < 0 && (I = S.length);
@@ -7389,49 +7389,49 @@ function At(t, e, r) {
7389
7389
  return t;
7390
7390
  }
7391
7391
  c(At, "toFixedPoint");
7392
- var _i = yr();
7393
- const Ii = 24, qt = 32, Si = c(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
7392
+ var Ii = yr();
7393
+ const Si = 24, qt = 32, Ri = c(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
7394
7394
  const t = new Uint32Array(1);
7395
7395
  return globalThis.crypto.getRandomValues(t), t[0] / 4294967296;
7396
- } : Math.random, "createRandom"), Te = Si(), Ae = c((t = 4, e = Te) => {
7396
+ } : Math.random, "createRandom"), Te = Ri(), Ae = c((t = 4, e = Te) => {
7397
7397
  let r = "";
7398
7398
  for (; r.length < t; ) r = r + Math.floor(e() * 36).toString(36);
7399
7399
  return r;
7400
7400
  }, "createEntropy");
7401
- function Ri(t) {
7402
- let e = new _i(0);
7401
+ function Ti(t) {
7402
+ let e = new Ii(0);
7403
7403
  for (const r of t.values()) e = e.multipliedBy(256).plus(r);
7404
7404
  return e;
7405
7405
  }
7406
- c(Ri, "bufToBigInt");
7406
+ c(Ti, "bufToBigInt");
7407
7407
  const br = c((t = "") => {
7408
7408
  const e = new TextEncoder();
7409
- return Ri(gi(e.encode(t))).toString(36).slice(1);
7410
- }, "hash"), Cr = Array.from({ length: 26 }, (t, e) => String.fromCharCode(e + 97)), Ti = c((t) => Cr[Math.floor(t() * Cr.length)], "randomLetter"), Ai = c(({ globalObj: t = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: e = Te } = {}) => {
7409
+ return Ti(Ei(e.encode(t))).toString(36).slice(1);
7410
+ }, "hash"), Cr = Array.from({ length: 26 }, (t, e) => String.fromCharCode(e + 97)), Ai = c((t) => Cr[Math.floor(t() * Cr.length)], "randomLetter"), wi = c(({ globalObj: t = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: e = Te } = {}) => {
7411
7411
  const r = Object.keys(t).toString(), n = r.length ? r + Ae(qt, e) : Ae(qt, e);
7412
7412
  return br(n).substring(0, qt);
7413
- }, "createFingerprint"), wi = c((t) => () => t++, "createCounter"), yi = 476782367, bi = c(({ random: t = Te, counter: e = wi(Math.floor(t() * yi)), length: r = Ii, fingerprint: n = Ai({ random: t }) } = {}) => {
7413
+ }, "createFingerprint"), yi = c((t) => () => t++, "createCounter"), bi = 476782367, Ci = c(({ random: t = Te, counter: e = yi(Math.floor(t() * bi)), length: r = Si, fingerprint: n = wi({ random: t }) } = {}) => {
7414
7414
  if (r > qt) throw new Error(`Length must be between 2 and ${qt}. Received: ${r}`);
7415
7415
  return c(function() {
7416
- const s = Ti(t), a = Date.now().toString(36), l = e().toString(36), h = Ae(r, t), d = `${a + h + l + n}`;
7416
+ const s = Ai(t), a = Date.now().toString(36), l = e().toString(36), h = Ae(r, t), d = `${a + h + l + n}`;
7417
7417
  return `${s + br(d).substring(1, r)}`;
7418
7418
  }, "cuid2");
7419
- }, "init"), Yt = Ci(bi);
7420
- function Ci(t) {
7419
+ }, "init"), Yt = vi(Ci);
7420
+ function vi(t) {
7421
7421
  let e;
7422
7422
  return () => (e || (e = t()), e());
7423
7423
  }
7424
- c(Ci, "lazy");
7425
- var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7424
+ c(vi, "lazy");
7425
+ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7426
7426
  function vr(t) {
7427
7427
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
7428
7428
  }
7429
7429
  c(vr, "getDefaultExportFromCjs");
7430
7430
  var xt = {}, Ur;
7431
- function Ui() {
7431
+ function Bi() {
7432
7432
  if (Ur) return xt;
7433
7433
  Ur = 1, Object.defineProperty(xt, "__esModule", { value: true }), xt.isBinaryFileSync = xt.isBinaryFile = void 0;
7434
- const t = Vt, e = Hn, r = (0, e.promisify)(t.stat), n = (0, e.promisify)(t.open), i = (0, e.promisify)(t.close), s = 512, a = 3;
7434
+ const t = Vt, e = kn, r = (0, e.promisify)(t.stat), n = (0, e.promisify)(t.open), i = (0, e.promisify)(t.close), s = 512, a = 3;
7435
7435
  class l {
7436
7436
  static {
7437
7437
  c(this, "Reader");
@@ -7561,14 +7561,14 @@ function Ui() {
7561
7561
  }
7562
7562
  return c(D, "isStatFile"), xt;
7563
7563
  }
7564
- c(Ui, "requireLib");
7565
- var Bi = Ui(), z = Uint8Array, at = Uint16Array, we = Int32Array, se = new z([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]), oe = new z([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]), ye = new z([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Br = c(function(t, e) {
7564
+ c(Bi, "requireLib");
7565
+ var Pi = Bi(), z = Uint8Array, at = Uint16Array, we = Int32Array, se = new z([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]), oe = new z([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]), ye = new z([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Br = c(function(t, e) {
7566
7566
  for (var r = new at(31), n = 0; n < 31; ++n) r[n] = e += 1 << t[n - 1];
7567
7567
  for (var i = new we(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
7569
  }, "freb"), Pr = Br(se, 2), Or = Pr.b, be = Pr.r;
7570
7570
  Or[28] = 258, be[258] = 28;
7571
- for (var Lr = Br(oe, 0), Pi = Lr.b, Nr = Lr.r, Ce = new at(32768), W = 0; W < 32768; ++W) {
7571
+ for (var Lr = Br(oe, 0), Oi = Lr.b, Nr = Lr.r, Ce = new at(32768), W = 0; W < 32768; ++W) {
7572
7572
  var Ut = (W & 43690) >> 1 | (W & 21845) << 1;
7573
7573
  Ut = (Ut & 52428) >> 2 | (Ut & 13107) << 2, Ut = (Ut & 61680) >> 4 | (Ut & 3855) << 4, Ce[W] = ((Ut & 65280) >> 8 | (Ut & 255) << 8) >> 1;
7574
7574
  }
@@ -7588,7 +7588,7 @@ for (var W = 144; W < 256; ++W) Bt[W] = 9;
7588
7588
  for (var W = 256; W < 280; ++W) Bt[W] = 7;
7589
7589
  for (var W = 280; W < 288; ++W) Bt[W] = 8;
7590
7590
  for (var Jt = new z(32), W = 0; W < 32; ++W) Jt[W] = 5;
7591
- var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1), ve = c(function(t) {
7591
+ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1), ve = c(function(t) {
7592
7592
  for (var e = t[0], r = 1; r < t.length; ++r) t[r] > e && (e = t[r]);
7593
7593
  return e;
7594
7594
  }, "max"), mt = c(function(t, e, r) {
@@ -7601,11 +7601,11 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7601
7601
  return (t + 7) / 8 | 0;
7602
7602
  }, "shft"), Qt = c(function(t, e, r) {
7603
7603
  return (e == null || e < 0) && (e = 0), (r == null || r > t.length) && (r = t.length), new z(t.subarray(e, r));
7604
- }, "slc"), Di = ["unexpected EOF", "invalid block type", "invalid length/literal", "invalid distance", "stream finished", "no stream handler", , "no callback", "invalid UTF-8 data", "extra field too long", "date not in range 1980-2099", "filename too long", "stream finishing", "invalid zip data"], nt = c(function(t, e, r) {
7605
- var n = new Error(e || Di[t]);
7604
+ }, "slc"), xi = ["unexpected EOF", "invalid block type", "invalid length/literal", "invalid distance", "stream finished", "no stream handler", , "no callback", "invalid UTF-8 data", "extra field too long", "date not in range 1980-2099", "filename too long", "stream finishing", "invalid zip data"], nt = c(function(t, e, r) {
7605
+ var n = new Error(e || xi[t]);
7606
7606
  if (n.code = t, Error.captureStackTrace && Error.captureStackTrace(n, nt), !r) throw n;
7607
7607
  return n;
7608
- }, "err"), xi = c(function(t, e, r, n) {
7608
+ }, "err"), Gi = c(function(t, e, r, n) {
7609
7609
  var i = t.length, s = n ? n.length : 0;
7610
7610
  if (!i || e.f && !e.l) return r || new z(0);
7611
7611
  var a = !r, l = a || e.i != 2, h = e.i;
@@ -7621,7 +7621,7 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7621
7621
  if (!v) {
7622
7622
  g = mt(t, A, 1);
7623
7623
  var w = mt(t, A + 1, 3);
7624
- if (A += 3, w) if (w == 1) v = Li, M = Mi, D = 9, b = 5;
7624
+ if (A += 3, w) if (w == 1) v = Ni, M = Di, D = 9, b = 5;
7625
7625
  else if (w == 2) {
7626
7626
  var H = mt(t, A, 31) + 257, j = mt(t, A + 10, 15) + 4, o = H + mt(t, A + 5, 31) + 1;
7627
7627
  A += 14;
@@ -7673,7 +7673,7 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7673
7673
  }
7674
7674
  var k = M[Ue(t, A) & B], Y = k >> 4;
7675
7675
  k || nt(3), A += k & 15;
7676
- var y = Pi[Y];
7676
+ var y = Oi[Y];
7677
7677
  if (Y > 3) {
7678
7678
  var N = oe[Y];
7679
7679
  y += Ue(t, A) & (1 << N) - 1, A += N;
@@ -7782,7 +7782,7 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7782
7782
  var V = F[o] & 31;
7783
7783
  wt(e, g, L[V]), g += f[V], V > 15 && (wt(e, g, F[o] >> 5 & 127), g += F[o] >> 12);
7784
7784
  }
7785
- } else E = Oi, S = Bt, R = Ni, y = Jt;
7785
+ } else E = Li, S = Bt, R = Mi, y = Jt;
7786
7786
  for (var o = 0; o < l; ++o) {
7787
7787
  var N = n[o];
7788
7788
  if (N > 255) {
@@ -7793,11 +7793,11 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7793
7793
  } else zt(e, g, E[N]), g += S[N];
7794
7794
  }
7795
7795
  return zt(e, g, E[256]), g + S[256];
7796
- }, "wblk"), Gi = new we([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Gr = new z(0), $i = c(function(t, e, r, n, i, s) {
7796
+ }, "wblk"), $i = new we([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Gr = new z(0), Hi = c(function(t, e, r, n, i, s) {
7797
7797
  var a = s.z || t.length, l = new z(n + a + 5 * (1 + Math.ceil(a / 7e3)) + i), h = l.subarray(n, l.length - i), d = s.l, g = (s.r || 0) & 7;
7798
7798
  if (e) {
7799
7799
  g && (h[0] = s.r >> 3);
7800
- for (var A = Gi[e - 1], C = A >> 13, v = A & 8191, M = (1 << r) - 1, D = s.p || new at(32768), b = s.h || new at(M + 1), P = Math.ceil(r / 3), w = 2 * P, O = c(function(Z) {
7800
+ for (var A = $i[e - 1], C = A >> 13, v = A & 8191, M = (1 << r) - 1, D = s.p || new at(32768), b = s.h || new at(M + 1), P = Math.ceil(r / 3), w = 2 * P, O = c(function(Z) {
7801
7801
  return (t[Z] ^ t[Z + 1] << P ^ t[Z + 2] << w) & M;
7802
7802
  }, "hsh"), x = new we(25e3), U = new at(288), H = new at(32), j = 0, o = 0, u = s.i || 0, f = 0, _ = s.w || 0, m = 0; u + 2 < a; ++u) {
7803
7803
  var I = O(u), T = u & 32767, p = b[I];
@@ -7839,26 +7839,26 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7839
7839
  s.i = a;
7840
7840
  }
7841
7841
  return Qt(l, 0, n + Be(g) + i);
7842
- }, "dflt"), Hi = (function() {
7842
+ }, "dflt"), ki = (function() {
7843
7843
  for (var t = new Int32Array(256), e = 0; e < 256; ++e) {
7844
7844
  for (var r = e, n = 9; --n; ) r = (r & 1 && -306674912) ^ r >>> 1;
7845
7845
  t[e] = r;
7846
7846
  }
7847
7847
  return t;
7848
- })(), ki = c(function() {
7848
+ })(), ji = c(function() {
7849
7849
  var t = -1;
7850
7850
  return { p: c(function(e) {
7851
- for (var r = t, n = 0; n < e.length; ++n) r = Hi[r & 255 ^ e[n]] ^ r >>> 8;
7851
+ for (var r = t, n = 0; n < e.length; ++n) r = ki[r & 255 ^ e[n]] ^ r >>> 8;
7852
7852
  t = r;
7853
7853
  }, "p"), d: c(function() {
7854
7854
  return ~t;
7855
7855
  }, "d") };
7856
- }, "crc"), ji = c(function(t, e, r, n, i) {
7856
+ }, "crc"), Fi = c(function(t, e, r, n, i) {
7857
7857
  if (!i && (i = { l: 1 }, e.dictionary)) {
7858
7858
  var s = e.dictionary.subarray(-32768), a = new z(s.length + t.length);
7859
7859
  a.set(s), a.set(t, s.length), t = a, i.w = s.length;
7860
7860
  }
7861
- return $i(t, e.level == null ? 6 : e.level, e.mem == null ? i.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(t.length))) * 1.5) : 20 : 12 + e.mem, r, n, i);
7861
+ return Hi(t, e.level == null ? 6 : e.level, e.mem == null ? i.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(t.length))) * 1.5) : 20 : 12 + e.mem, r, n, i);
7862
7862
  }, "dopt"), $r = c(function(t, e) {
7863
7863
  var r = {};
7864
7864
  for (var n in t) r[n] = t[n];
@@ -7873,25 +7873,25 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7873
7873
  }, "b8"), et = c(function(t, e, r) {
7874
7874
  for (; r; ++e) t[e] = r, r >>>= 8;
7875
7875
  }, "wbytes");
7876
- function Fi(t, e) {
7877
- return ji(t, e || {}, 0, 0);
7878
- }
7879
- c(Fi, "deflateSync");
7880
7876
  function Vi(t, e) {
7881
- return xi(t, { i: 2 }, e && e.out, e && e.dictionary);
7877
+ return Fi(t, e || {}, 0, 0);
7878
+ }
7879
+ c(Vi, "deflateSync");
7880
+ function Ki(t, e) {
7881
+ return Gi(t, { i: 2 }, e && e.out, e && e.dictionary);
7882
7882
  }
7883
- c(Vi, "inflateSync");
7883
+ c(Ki, "inflateSync");
7884
7884
  var Hr = c(function(t, e, r, n) {
7885
7885
  for (var i in t) {
7886
7886
  var s = t[i], a = e + i, l = n;
7887
7887
  Array.isArray(s) && (l = $r(n, s[1]), s = s[0]), s instanceof z ? r[a] = [s, l] : (r[a += "/"] = [new z(0), l], Hr(s, a, r, n));
7888
7888
  }
7889
- }, "fltn"), kr = typeof TextEncoder < "u" && new TextEncoder(), Ne = typeof TextDecoder < "u" && new TextDecoder(), Ki = 0;
7889
+ }, "fltn"), kr = typeof TextEncoder < "u" && new TextEncoder(), Ne = typeof TextDecoder < "u" && new TextDecoder(), Wi = 0;
7890
7890
  try {
7891
- Ne.decode(Gr, { stream: true }), Ki = 1;
7891
+ Ne.decode(Gr, { stream: true }), Wi = 1;
7892
7892
  } catch {
7893
7893
  }
7894
- var Wi = c(function(t) {
7894
+ var qi = c(function(t) {
7895
7895
  for (var e = "", r = 0; ; ) {
7896
7896
  var n = t[r++], i = (n > 127) + (n > 223) + (n > 239);
7897
7897
  if (r + i > t.length) return { s: e, r: Qt(t, r - 1) };
@@ -7914,23 +7914,23 @@ function jr(t, e) {
7914
7914
  return Qt(i, 0, s);
7915
7915
  }
7916
7916
  c(jr, "strToU8");
7917
- function qi(t, e) {
7917
+ function Yi(t, e) {
7918
7918
  if (e) {
7919
7919
  for (var r = "", n = 0; n < t.length; n += 16384) r += String.fromCharCode.apply(null, t.subarray(n, n + 16384));
7920
7920
  return r;
7921
7921
  } else {
7922
7922
  if (Ne) return Ne.decode(t);
7923
- var i = Wi(t), s = i.s, r = i.r;
7923
+ var i = qi(t), s = i.s, r = i.r;
7924
7924
  return r.length && nt(8), s;
7925
7925
  }
7926
7926
  }
7927
- c(qi, "strFromU8");
7928
- var Yi = c(function(t, e) {
7927
+ c(Yi, "strFromU8");
7928
+ var Ji = c(function(t, e) {
7929
7929
  return e + 30 + It(t, e + 26) + It(t, e + 28);
7930
- }, "slzh"), Ji = c(function(t, e, r) {
7931
- var n = It(t, e + 28), i = qi(t.subarray(e + 46, e + 46 + n), !(It(t, e + 8) & 2048)), s = e + 46 + n, a = gt(t, e + 20), l = r && a == 4294967295 ? Qi(t, s) : [a, gt(t, e + 24), gt(t, e + 42)], h = l[0], d = l[1], g = l[2];
7930
+ }, "slzh"), Qi = c(function(t, e, r) {
7931
+ var n = It(t, e + 28), i = Yi(t.subarray(e + 46, e + 46 + n), !(It(t, e + 8) & 2048)), s = e + 46 + n, a = gt(t, e + 20), l = r && a == 4294967295 ? zi(t, s) : [a, gt(t, e + 24), gt(t, e + 42)], h = l[0], d = l[1], g = l[2];
7932
7932
  return [It(t, e + 10), h, d, i, s + It(t, e + 30) + It(t, e + 32), g];
7933
- }, "zh"), Qi = c(function(t, e) {
7933
+ }, "zh"), zi = c(function(t, e) {
7934
7934
  for (; It(t, e) != 1; e += 4 + It(t, e + 2)) ;
7935
7935
  return [Le(t, e + 12), Le(t, e + 4), Le(t, e + 20)];
7936
7936
  }, "z64e"), Me = c(function(t) {
@@ -7949,10 +7949,10 @@ var Yi = c(function(t, e) {
7949
7949
  et(t, e, +M), et(t, e + 2, b), t.set(D, e + 4), e += 4 + b;
7950
7950
  }
7951
7951
  return g && (t.set(l, e), e += g), e;
7952
- }, "wzh"), zi = c(function(t, e, r, n, i) {
7952
+ }, "wzh"), Xi = c(function(t, e, r, n, i) {
7953
7953
  et(t, e, 101010256), et(t, e + 8, r), et(t, e + 10, r), et(t, e + 12, n), et(t, e + 16, i);
7954
7954
  }, "wzf");
7955
- function Xi(t, e) {
7955
+ function Zi(t, e) {
7956
7956
  e || (e = {});
7957
7957
  var r = {}, n = [];
7958
7958
  Hr(t, "", r, e);
@@ -7960,7 +7960,7 @@ function Xi(t, e) {
7960
7960
  for (var a in r) {
7961
7961
  var l = r[a], h = l[0], d = l[1], g = d.level == 0 ? 0 : 8, A = jr(a), C = A.length, v = d.comment, M = v && jr(v), D = M && M.length, b = Me(d.extra);
7962
7962
  C > 65535 && nt(11);
7963
- var P = g ? Fi(h, d) : h, w = P.length, O = ki();
7963
+ var P = g ? Vi(h, d) : h, w = P.length, O = ji();
7964
7964
  O.p(h), n.push($r(d, { size: h.length, crc: O.d(), c: P, f: A, m: M, u: C != a.length || M && v.length != D, o: i, compression: g })), i += 30 + C + b + w, s += 76 + 2 * (C + b) + (D || 0) + w;
7965
7965
  }
7966
7966
  for (var x = new z(s + 22), U = i, H = s - i, j = 0; j < n.length; ++j) {
@@ -7969,10 +7969,10 @@ function Xi(t, e) {
7969
7969
  var o = 30 + A.f.length + Me(A.extra);
7970
7970
  x.set(A.c, A.o + o), Fr(x, i, A, A.f, A.u, A.c.length, A.o, A.m), i += 16 + o + (A.m ? A.m.length : 0);
7971
7971
  }
7972
- return zi(x, i, n.length, H, U), x;
7972
+ return Xi(x, i, n.length, H, U), x;
7973
7973
  }
7974
- c(Xi, "zipSync");
7975
- function Zi(t, e) {
7974
+ c(Zi, "zipSync");
7975
+ function ts(t, e) {
7976
7976
  for (var r = {}, n = t.length - 22; gt(t, n) != 101010256; --n) (!n || t.length - n > 65558) && nt(13);
7977
7977
  var i = It(t, n + 8);
7978
7978
  if (!i) return {};
@@ -7982,18 +7982,18 @@ function Zi(t, e) {
7982
7982
  a = gt(t, l) == 101075792, a && (i = gt(t, l + 32), s = gt(t, l + 48));
7983
7983
  }
7984
7984
  for (var h = 0; h < i; ++h) {
7985
- var d = Ji(t, s, a), g = d[0], A = d[1], C = d[2], v = d[3], M = d[4], D = d[5], b = Yi(t, D);
7986
- s = M, g ? g == 8 ? r[v] = Vi(t.subarray(b, b + A), { out: new z(C) }) : nt(14, "unknown compression type " + g) : r[v] = Qt(t, b, b + A);
7985
+ var d = Qi(t, s, a), g = d[0], A = d[1], C = d[2], v = d[3], M = d[4], D = d[5], b = Ji(t, D);
7986
+ s = M, g ? g == 8 ? r[v] = Ki(t.subarray(b, b + A), { out: new z(C) }) : nt(14, "unknown compression type " + g) : r[v] = Qt(t, b, b + A);
7987
7987
  }
7988
7988
  return r;
7989
7989
  }
7990
- c(Zi, "unzipSync");
7991
- const ts = [/^\/$/, /^\*+$/, /^[0-9]+$/], es = ["/artifact/", "https://", "http://", "*********"], rs = 3;
7990
+ c(ts, "unzipSync");
7991
+ const es = [/^\/$/, /^\*+$/, /^[0-9]+$/], rs = ["/artifact/", "https://", "http://", "*********"], ns = 3;
7992
7992
  function Vr(t) {
7993
- return t.filter((e) => !(e.length < rs || ts.some((r) => r.test(e)) || es.some((r) => e.includes(r))));
7993
+ return t.filter((e) => !(e.length < ns || es.some((r) => r.test(e)) || rs.some((r) => e.includes(r))));
7994
7994
  }
7995
7995
  c(Vr, "filterSensitiveValues");
7996
- const yt = Symbol.for("@ts-pattern/matcher"), ns = Symbol.for("@ts-pattern/isVariadic"), ae = "@ts-pattern/anonymous-select-key", De = c((t) => !!(t && typeof t == "object"), "r"), ce = c((t) => t && !!t[yt], "i"), St = c((t, e, r) => {
7996
+ const yt = Symbol.for("@ts-pattern/matcher"), is = Symbol.for("@ts-pattern/isVariadic"), ae = "@ts-pattern/anonymous-select-key", De = c((t) => !!(t && typeof t == "object"), "r"), ce = c((t) => t && !!t[yt], "i"), St = c((t, e, r) => {
7997
7997
  if (ce(t)) {
7998
7998
  const n = t[yt](), { matched: i, selections: s } = n.match(e);
7999
7999
  return i && s && Object.keys(s).forEach((a) => r(a, s[a])), i;
@@ -8005,7 +8005,7 @@ const yt = Symbol.for("@ts-pattern/matcher"), ns = Symbol.for("@ts-pattern/isVar
8005
8005
  let n = [], i = [], s = [];
8006
8006
  for (const a of t.keys()) {
8007
8007
  const l = t[a];
8008
- ce(l) && l[ns] ? s.push(l) : s.length ? i.push(l) : n.push(l);
8008
+ ce(l) && l[is] ? s.push(l) : s.length ? i.push(l) : n.push(l);
8009
8009
  }
8010
8010
  if (s.length) {
8011
8011
  if (s.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
@@ -8027,10 +8027,10 @@ const yt = Symbol.for("@ts-pattern/matcher"), ns = Symbol.for("@ts-pattern/isVar
8027
8027
  return De(t) ? ce(t) ? (e = (r = (n = t[yt]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? e : [] : Array.isArray(t) ? Zt(t, Pt) : Zt(Object.values(t), Pt) : [];
8028
8028
  }, "s"), Zt = c((t, e) => t.reduce((r, n) => r.concat(e(n)), []), "c");
8029
8029
  function ct(t) {
8030
- return Object.assign(t, { optional: c(() => is(t), "optional"), and: c((e) => q(t, e), "and"), or: c((e) => ss(t, e), "or"), select: c((e) => e === void 0 ? Kr(t) : Kr(e, t), "select") });
8030
+ return Object.assign(t, { optional: c(() => ss(t), "optional"), and: c((e) => q(t, e), "and"), or: c((e) => os(t, e), "or"), select: c((e) => e === void 0 ? Kr(t) : Kr(e, t), "select") });
8031
8031
  }
8032
8032
  c(ct, "a");
8033
- function is(t) {
8033
+ function ss(t) {
8034
8034
  return ct({ [yt]: () => ({ match: c((e) => {
8035
8035
  let r = {};
8036
8036
  const n = c((i, s) => {
@@ -8039,7 +8039,7 @@ function is(t) {
8039
8039
  return e === void 0 ? (Pt(t).forEach((i) => n(i, void 0)), { matched: true, selections: r }) : { matched: St(t, e, n), selections: r };
8040
8040
  }, "match"), getSelectionKeys: c(() => Pt(t), "getSelectionKeys"), matcherType: "optional" }) });
8041
8041
  }
8042
- c(is, "h");
8042
+ c(ss, "h");
8043
8043
  function q(...t) {
8044
8044
  return ct({ [yt]: () => ({ match: c((e) => {
8045
8045
  let r = {};
@@ -8050,7 +8050,7 @@ function q(...t) {
8050
8050
  }, "match"), getSelectionKeys: c(() => Zt(t, Pt), "getSelectionKeys"), matcherType: "and" }) });
8051
8051
  }
8052
8052
  c(q, "d");
8053
- function ss(...t) {
8053
+ function os(...t) {
8054
8054
  return ct({ [yt]: () => ({ match: c((e) => {
8055
8055
  let r = {};
8056
8056
  const n = c((i, s) => {
@@ -8059,7 +8059,7 @@ function ss(...t) {
8059
8059
  return Zt(t, Pt).forEach((i) => n(i, void 0)), { matched: t.some((i) => St(i, e, n)), selections: r };
8060
8060
  }, "match"), getSelectionKeys: c(() => Zt(t, Pt), "getSelectionKeys"), matcherType: "or" }) });
8061
8061
  }
8062
- c(ss, "y");
8062
+ c(os, "y");
8063
8063
  function K(t) {
8064
8064
  return { [yt]: () => ({ match: c((e) => ({ matched: !!t(e) }), "match") }) };
8065
8065
  }
@@ -8116,7 +8116,7 @@ Mt(K(Lt)), ct(K(function(t) {
8116
8116
  })), ct(K(function(t) {
8117
8117
  return t != null;
8118
8118
  }));
8119
- class os extends Error {
8119
+ class as extends Error {
8120
8120
  static {
8121
8121
  c(this, "I");
8122
8122
  }
@@ -8131,10 +8131,10 @@ class os extends Error {
8131
8131
  }
8132
8132
  }
8133
8133
  const xe = { matched: false, value: void 0 };
8134
- function as(t) {
8134
+ function cs(t) {
8135
8135
  return new me(t, xe);
8136
8136
  }
8137
- c(as, "M");
8137
+ c(cs, "M");
8138
8138
  class me {
8139
8139
  static {
8140
8140
  c(this, "R");
@@ -8161,7 +8161,7 @@ class me {
8161
8161
  otherwise(e) {
8162
8162
  return this.state.matched ? this.state.value : e(this.input);
8163
8163
  }
8164
- exhaustive(e = cs) {
8164
+ exhaustive(e = us) {
8165
8165
  return this.state.matched ? this.state.value : e(this.input);
8166
8166
  }
8167
8167
  run() {
@@ -8174,45 +8174,45 @@ class me {
8174
8174
  return this;
8175
8175
  }
8176
8176
  }
8177
- function cs(t) {
8178
- throw new os(t);
8177
+ function us(t) {
8178
+ throw new as(t);
8179
8179
  }
8180
- c(cs, "F");
8181
- const us = "[REDACTED]", ls = /* @__PURE__ */ new Set(["sha1", "_sha1", "pageref", "downloadsPath", "tracesDir", "pageId"]);
8180
+ c(us, "F");
8181
+ const ls = "[REDACTED]", fs = /* @__PURE__ */ new Set(["sha1", "_sha1", "pageref", "downloadsPath", "tracesDir", "pageId"]);
8182
8182
  function ot({ sensitiveValues: t, str: e }) {
8183
- return t.reduce((r, n) => r.replaceAll(n, us), e);
8183
+ return t.reduce((r, n) => r.replaceAll(n, ls), e);
8184
8184
  }
8185
8185
  c(ot, "scrubString");
8186
- function fs(t) {
8186
+ function hs(t) {
8187
8187
  return typeof t == "object" && t !== null && !Array.isArray(t);
8188
8188
  }
8189
- c(fs, "isRecord");
8189
+ c(hs, "isRecord");
8190
8190
  function te({ sensitiveValues: t, value: e }) {
8191
- return typeof e == "string" ? ot({ sensitiveValues: t, str: e }) : Array.isArray(e) ? e.map((r) => te({ sensitiveValues: t, value: r })) : fs(e) ? Gt({ obj: e, sensitiveValues: t }) : e;
8191
+ return typeof e == "string" ? ot({ sensitiveValues: t, str: e }) : Array.isArray(e) ? e.map((r) => te({ sensitiveValues: t, value: r })) : hs(e) ? Gt({ obj: e, sensitiveValues: t }) : e;
8192
8192
  }
8193
8193
  c(te, "scrubValue");
8194
- function hs(t) {
8195
- return ls.has(t) ? true : t.toLowerCase().endsWith("sha1");
8194
+ function ds(t) {
8195
+ return fs.has(t) ? true : t.toLowerCase().endsWith("sha1");
8196
8196
  }
8197
- c(hs, "shouldPreserveKey");
8197
+ c(ds, "shouldPreserveKey");
8198
8198
  function Gt({ obj: t, sensitiveValues: e }) {
8199
- return Object.fromEntries(Object.entries(t).map(([r, n]) => [r, hs(r) ? n : te({ sensitiveValues: e, value: n })]));
8199
+ return Object.fromEntries(Object.entries(t).map(([r, n]) => [r, ds(r) ? n : te({ sensitiveValues: e, value: n })]));
8200
8200
  }
8201
8201
  c(Gt, "scrubObject");
8202
8202
  function qr({ error: t, sensitiveValues: e }) {
8203
8203
  return t ? { ...t, message: ot({ sensitiveValues: e, str: t.message }) } : void 0;
8204
8204
  }
8205
8205
  c(qr, "scrubError");
8206
- function ds({ event: t, sensitiveValues: e }) {
8207
- return as(t).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: ot({ sensitiveValues: e, str: n.preview }), value: te({ sensitiveValues: e, value: n.value }) })), text: ot({ sensitiveValues: e, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Gt({ obj: r.params, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: qr({ error: r.error, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: qr({ error: r.error, sensitiveValues: e }), params: Gt({ obj: r.params, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0, title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: Gt({ obj: r.params, sensitiveValues: e }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? ot({ sensitiveValues: e, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: Gt({ obj: r.options, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: Gt({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: Gt({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
8206
+ function ps({ event: t, sensitiveValues: e }) {
8207
+ return cs(t).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: ot({ sensitiveValues: e, str: n.preview }), value: te({ sensitiveValues: e, value: n.value }) })), text: ot({ sensitiveValues: e, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Gt({ obj: r.params, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: qr({ error: r.error, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: qr({ error: r.error, sensitiveValues: e }), params: Gt({ obj: r.params, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0, title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: Gt({ obj: r.params, sensitiveValues: e }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? ot({ sensitiveValues: e, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: Gt({ obj: r.options, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: Gt({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: Gt({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
8208
8208
  }
8209
- c(ds, "scrubTraceEvent");
8210
- function ps({ content: t, sensitiveValues: e }) {
8209
+ c(ps, "scrubTraceEvent");
8210
+ function ms({ content: t, sensitiveValues: e }) {
8211
8211
  const r = new TextDecoder$1(), n = new TextEncoder$1(), a = r.decode(t).split(`
8212
8212
  `).map((l) => {
8213
8213
  if (!l.trim()) return l;
8214
8214
  try {
8215
- const h = JSON.parse(l), d = ds({ event: h, sensitiveValues: e });
8215
+ const h = JSON.parse(l), d = ps({ event: h, sensitiveValues: e });
8216
8216
  return JSON.stringify(d);
8217
8217
  } catch {
8218
8218
  return ot({ sensitiveValues: e, str: l });
@@ -8221,7 +8221,7 @@ function ps({ content: t, sensitiveValues: e }) {
8221
8221
  return n.encode(a.join(`
8222
8222
  `));
8223
8223
  }
8224
- c(ps, "scrubJsonLinesFile");
8224
+ c(ms, "scrubJsonLinesFile");
8225
8225
  function Yr({ content: t, sensitiveValues: e }) {
8226
8226
  const r = new TextDecoder$1(), n = new TextEncoder$1(), i = ot({ sensitiveValues: e, str: r.decode(t) });
8227
8227
  return n.encode(i);
@@ -8230,35 +8230,35 @@ c(Yr, "scrubTextFile");
8230
8230
  async function Ge({ sensitiveValues: t, traceBuffer: e }) {
8231
8231
  const r = Vr(t);
8232
8232
  if (r.length === 0) return new Uint8Array(e);
8233
- const n = [...r].sort((h, d) => d.length - h.length), i = Zi(new Uint8Array(e)), s = Object.entries(i), a = await Promise.all(s.map(async ([h, d]) => [h, await ms({ content: d, filename: h, sensitiveValues: n })])), l = Object.fromEntries(a);
8234
- return Xi(l);
8233
+ const n = [...r].sort((h, d) => d.length - h.length), i = ts(new Uint8Array(e)), s = Object.entries(i), a = await Promise.all(s.map(async ([h, d]) => [h, await gs({ content: d, filename: h, sensitiveValues: n })])), l = Object.fromEntries(a);
8234
+ return Zi(l);
8235
8235
  }
8236
8236
  c(Ge, "scrubTrace");
8237
- async function ms({ content: t, filename: e, sensitiveValues: r }) {
8237
+ async function gs({ content: t, filename: e, sensitiveValues: r }) {
8238
8238
  const n = e.toLowerCase();
8239
- return n.endsWith(".trace") || n.endsWith(".network") ? ps({ content: t, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Yr({ content: t, sensitiveValues: r }) : n.startsWith("resources/") ? gs({ content: t, sensitiveValues: r }) : t;
8239
+ return n.endsWith(".trace") || n.endsWith(".network") ? ms({ content: t, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Yr({ content: t, sensitiveValues: r }) : n.startsWith("resources/") ? Es({ content: t, sensitiveValues: r }) : t;
8240
8240
  }
8241
- c(ms, "scrubFile");
8242
- async function gs({ content: t, sensitiveValues: e }) {
8243
- return await Bi.isBinaryFile(Buffer.from(t)) ? t : Yr({ content: t, sensitiveValues: e });
8241
+ c(gs, "scrubFile");
8242
+ async function Es({ content: t, sensitiveValues: e }) {
8243
+ return await Pi.isBinaryFile(Buffer.from(t)) ? t : Yr({ content: t, sensitiveValues: e });
8244
8244
  }
8245
- c(gs, "scrubResourceFile");
8246
- async function Es({ sensitiveValues: t, tracePath: e }) {
8245
+ c(Es, "scrubResourceFile");
8246
+ async function _s({ sensitiveValues: t, tracePath: e }) {
8247
8247
  const r = [], n = createReadStream(e);
8248
8248
  for await (const s of n) r.push(Uint8Array.from(s));
8249
8249
  const i = new Uint8Array(Buffer.concat(r));
8250
8250
  return Ge({ sensitiveValues: t, traceBuffer: i });
8251
8251
  }
8252
- c(Es, "scrubTraceFromPath");
8253
- async function _s({ sensitiveValues: t, traceFd: e, tracePath: r }) {
8252
+ c(_s, "scrubTraceFromPath");
8253
+ async function Is({ sensitiveValues: t, traceFd: e, tracePath: r }) {
8254
8254
  const n = [], i = createReadStream(r, { autoClose: true, fd: e });
8255
8255
  for await (const a of i) n.push(Uint8Array.from(a));
8256
8256
  const s = new Uint8Array(Buffer.concat(n));
8257
8257
  return Ge({ sensitiveValues: t, traceBuffer: s });
8258
8258
  }
8259
- c(_s, "scrubTraceFromFd");
8260
- const Jr = { AUTHENTICATION_FAILED: 1008 }, Is = 2e4, Ss = 5e4, Rs = 3e4;
8261
- class Ts {
8259
+ c(Is, "scrubTraceFromFd");
8260
+ const Jr = { AUTHENTICATION_FAILED: 1008 }, Ss = 2e4, Rs = 5e4, Ts = 3e4;
8261
+ class As {
8262
8262
  static {
8263
8263
  c(this, "WebSocketClient");
8264
8264
  }
@@ -8305,19 +8305,19 @@ class Ts {
8305
8305
  }
8306
8306
  scheduleReconnect() {
8307
8307
  this.reconnectTimer && clearTimeout(this.reconnectTimer);
8308
- const e = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts), Rs);
8308
+ const e = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts), Ts);
8309
8309
  this.reconnectAttempts++, this.reconnectTimer = setTimeout(() => {
8310
8310
  this.connect();
8311
8311
  }, e), this.reconnectTimer.unref();
8312
8312
  }
8313
8313
  startPingInterval() {
8314
8314
  this.clearPingInterval(), this.lastPongAt = Date.now(), this.pingIntervalTimer = setInterval(() => {
8315
- if (Date.now() - this.lastPongAt > Ss) {
8315
+ if (Date.now() - this.lastPongAt > Rs) {
8316
8316
  this.clearPingInterval(), this.socket?.terminate();
8317
8317
  return;
8318
8318
  }
8319
8319
  this.socket?.readyState === WebSocket.OPEN && this.socket.send(JSON.stringify({ type: "ping" }));
8320
- }, Is), this.pingIntervalTimer.unref();
8320
+ }, Ss), this.pingIntervalTimer.unref();
8321
8321
  }
8322
8322
  clearPingInterval() {
8323
8323
  this.pingIntervalTimer && (clearInterval(this.pingIntervalTimer), this.pingIntervalTimer = void 0);
@@ -8364,7 +8364,7 @@ class Ts {
8364
8364
  return [...this.buffer];
8365
8365
  }
8366
8366
  }
8367
- var As = { detect({ env: t }) {
8367
+ var ws = { detect({ env: t }) {
8368
8368
  return !!t.APPVEYOR;
8369
8369
  }, configuration({ env: t }) {
8370
8370
  const e = t.APPVEYOR_PULL_REQUEST_NUMBER, r = !!e;
@@ -8378,31 +8378,31 @@ function ee(t) {
8378
8378
  return t ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(t)[1] : void 0;
8379
8379
  }
8380
8380
  c(ee, "parseBranch");
8381
- var ws = { detect({ env: t }) {
8381
+ var ys = { detect({ env: t }) {
8382
8382
  return !!t.BUILD_BUILDURI;
8383
8383
  }, configuration({ env: t }) {
8384
8384
  const e = t.SYSTEM_PULLREQUEST_PULLREQUESTID, r = !!e;
8385
8385
  return { name: "Azure Pipelines", service: "azurePipelines", commit: t.BUILD_SOURCEVERSION, build: t.BUILD_BUILDNUMBER, branch: ee(r ? t.SYSTEM_PULLREQUEST_TARGETBRANCH : t.BUILD_SOURCEBRANCH), pr: e, isPr: r, prBranch: ee(r ? t.SYSTEM_PULLREQUEST_SOURCEBRANCH : void 0), root: t.BUILD_REPOSITORY_LOCALPATH };
8386
- } }, ys = { detect({ env: t }) {
8386
+ } }, bs = { detect({ env: t }) {
8387
8387
  return !!t.bamboo_agentId;
8388
8388
  }, configuration({ env: t }) {
8389
8389
  return { name: "Bamboo", service: "bamboo", commit: t.bamboo_planRepository_1_revision, build: t.bamboo_buildNumber, buildUrl: t.bamboo_buildResultsUrl, branch: t.bamboo_planRepository_1_branchName, job: t.bamboo_buildKey, root: t.bamboo_build_working_directory };
8390
- } }, bs = { detect({ env: t }) {
8390
+ } }, Cs = { detect({ env: t }) {
8391
8391
  return !!t.BITBUCKET_BUILD_NUMBER;
8392
8392
  }, configuration({ env: t }) {
8393
8393
  return { name: "Bitbucket Pipelines", service: "bitbucket", commit: t.BITBUCKET_COMMIT, tag: t.BITBUCKET_TAG, build: t.BITBUCKET_BUILD_NUMBER, buildUrl: `https://bitbucket.org/${t.BITBUCKET_REPO_FULL_NAME}/addon/pipelines/home#!/results/${t.BITBUCKET_BUILD_NUMBER}`, branch: t.BITBUCKET_BRANCH, slug: t.BITBUCKET_REPO_FULL_NAME, root: t.BITBUCKET_CLONE_DIR };
8394
- } }, Cs = { detect({ env: t }) {
8394
+ } }, vs = { detect({ env: t }) {
8395
8395
  return !!t.BITRISE_IO;
8396
8396
  }, configuration({ env: t }) {
8397
8397
  const e = t.BITRISE_PULL_REQUEST === "false" ? void 0 : t.BITRISE_PULL_REQUEST, r = !!e;
8398
8398
  return { name: "Bitrise", service: "bitrise", commit: t.BITRISE_GIT_COMMIT, tag: t.BITRISE_GIT_TAG, build: t.BITRISE_BUILD_NUMBER, buildUrl: t.BITRISE_BUILD_URL, branch: r ? t.BITRISEIO_GIT_BRANCH_DEST : t.BITRISE_GIT_BRANCH, pr: e, isPr: r, prBranch: r ? t.BITRISE_GIT_BRANCH : void 0, slug: t.BITRISE_APP_SLUG };
8399
- } }, vs = { detect({ env: t }) {
8399
+ } }, Us = { detect({ env: t }) {
8400
8400
  return !!t.BUDDY_WORKSPACE_ID;
8401
8401
  }, configuration({ env: t }) {
8402
8402
  const e = Qr(t.BUDDY_EXECUTION_PULL_REQUEST_ID), r = !!e;
8403
8403
  return { name: "Buddy", service: "buddy", commit: t.BUDDY_EXECUTION_REVISION, tag: t.BUDDY_EXECUTION_TAG, build: t.BUDDY_EXECUTION_ID, buildUrl: t.BUDDY_EXECUTION_URL, branch: r ? t.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH : t.BUDDY_EXECUTION_BRANCH, pr: e, isPr: r, slug: t.BUDDY_REPO_SLUG };
8404
8404
  } }, $t = { exports: {} }, $e, zr;
8405
- function Us() {
8405
+ function Bs() {
8406
8406
  if (zr) return $e;
8407
8407
  zr = 1, $e = n, n.sync = i;
8408
8408
  var t = Vt;
@@ -8431,9 +8431,9 @@ function Us() {
8431
8431
  }
8432
8432
  return c(i, "sync"), $e;
8433
8433
  }
8434
- c(Us, "requireWindows");
8434
+ c(Bs, "requireWindows");
8435
8435
  var He, Xr;
8436
- function Bs() {
8436
+ function Ps() {
8437
8437
  if (Xr) return He;
8438
8438
  Xr = 1, He = e, e.sync = r;
8439
8439
  var t = Vt;
@@ -8457,13 +8457,13 @@ function Bs() {
8457
8457
  }
8458
8458
  return c(i, "checkMode"), He;
8459
8459
  }
8460
- c(Bs, "requireMode");
8460
+ c(Ps, "requireMode");
8461
8461
  var ke, Zr;
8462
- function Ps() {
8462
+ function Os() {
8463
8463
  if (Zr) return ke;
8464
8464
  Zr = 1;
8465
8465
  var t;
8466
- process.platform === "win32" || vi.TESTING_WINDOWS ? t = Us() : t = Bs(), ke = e, e.sync = r;
8466
+ process.platform === "win32" || Ui.TESTING_WINDOWS ? t = Bs() : t = Ps(), ke = e, e.sync = r;
8467
8467
  function e(n, i, s) {
8468
8468
  if (typeof i == "function" && (s = i, i = {}), !s) {
8469
8469
  if (typeof Promise != "function") throw new TypeError("callback not provided");
@@ -8488,12 +8488,12 @@ function Ps() {
8488
8488
  }
8489
8489
  return c(r, "sync"), ke;
8490
8490
  }
8491
- c(Ps, "requireIsexe");
8491
+ c(Os, "requireIsexe");
8492
8492
  var je, tn;
8493
- function Os() {
8493
+ function Ls() {
8494
8494
  if (tn) return je;
8495
8495
  tn = 1;
8496
- const t = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", e = Kt, r = t ? ";" : ":", n = Ps(), i = c((h) => Object.assign(new Error(`not found: ${h}`), { code: "ENOENT" }), "getNotFoundError"), s = c((h, d) => {
8496
+ const t = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", e = Kt, r = t ? ";" : ":", n = Os(), i = c((h) => Object.assign(new Error(`not found: ${h}`), { code: "ENOENT" }), "getNotFoundError"), s = c((h, d) => {
8497
8497
  const g = d.colon || r, A = h.match(/\//) || t && h.match(/\\/) ? [""] : [...t ? [process.cwd()] : [], ...(d.path || process.env.PATH || "").split(g)], C = t ? d.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", v = t ? C.split(g) : [""];
8498
8498
  return t && h.indexOf(".") !== -1 && v[0] !== "" && v.unshift(""), { pathEnv: A, pathExt: v, pathExtExe: C };
8499
8499
  }, "getPathInfo"), a = c((h, d, g) => {
@@ -8532,9 +8532,9 @@ function Os() {
8532
8532
  }, "whichSync");
8533
8533
  return je = a, a.sync = l, je;
8534
8534
  }
8535
- c(Os, "requireWhich");
8535
+ c(Ls, "requireWhich");
8536
8536
  var ue = { exports: {} }, en;
8537
- function Ls() {
8537
+ function Ns() {
8538
8538
  if (en) return ue.exports;
8539
8539
  en = 1;
8540
8540
  const t = c((e = {}) => {
@@ -8543,12 +8543,12 @@ function Ls() {
8543
8543
  }, "pathKey");
8544
8544
  return ue.exports = t, ue.exports.default = t, ue.exports;
8545
8545
  }
8546
- c(Ls, "requirePathKey");
8546
+ c(Ns, "requirePathKey");
8547
8547
  var Fe, rn;
8548
- function Ns() {
8548
+ function Ms() {
8549
8549
  if (rn) return Fe;
8550
8550
  rn = 1;
8551
- const t = Kt, e = Os(), r = Ls();
8551
+ const t = Kt, e = Ls(), r = Ns();
8552
8552
  function n(s, a) {
8553
8553
  const l = s.options.env || process.env, h = process.cwd(), d = s.options.cwd != null, g = d && process.chdir !== void 0 && !process.chdir.disabled;
8554
8554
  if (g) try {
@@ -8570,9 +8570,9 @@ function Ns() {
8570
8570
  }
8571
8571
  return c(i, "resolveCommand"), Fe = i, Fe;
8572
8572
  }
8573
- c(Ns, "requireResolveCommand");
8573
+ c(Ms, "requireResolveCommand");
8574
8574
  var le = {}, nn;
8575
- function Ms() {
8575
+ function Ds() {
8576
8576
  if (nn) return le;
8577
8577
  nn = 1;
8578
8578
  const t = /([()\][%!^"`<>&|;, *?])/g;
@@ -8585,17 +8585,17 @@ function Ms() {
8585
8585
  }
8586
8586
  return c(r, "escapeArgument"), le.command = e, le.argument = r, le;
8587
8587
  }
8588
- c(Ms, "require_escape");
8588
+ c(Ds, "require_escape");
8589
8589
  var Ve, sn;
8590
- function Ds() {
8590
+ function xs() {
8591
8591
  return sn || (sn = 1, Ve = /^#!(.*)/), Ve;
8592
8592
  }
8593
- c(Ds, "requireShebangRegex");
8593
+ c(xs, "requireShebangRegex");
8594
8594
  var Ke, on;
8595
- function xs() {
8595
+ function Gs() {
8596
8596
  if (on) return Ke;
8597
8597
  on = 1;
8598
- const t = Ds();
8598
+ const t = xs();
8599
8599
  return Ke = c((e = "") => {
8600
8600
  const r = e.match(t);
8601
8601
  if (!r) return null;
@@ -8603,12 +8603,12 @@ function xs() {
8603
8603
  return s === "env" ? i : i ? `${s} ${i}` : s;
8604
8604
  }, "shebangCommand"), Ke;
8605
8605
  }
8606
- c(xs, "requireShebangCommand");
8606
+ c(Gs, "requireShebangCommand");
8607
8607
  var We, an;
8608
- function Gs() {
8608
+ function $s() {
8609
8609
  if (an) return We;
8610
8610
  an = 1;
8611
- const t = Vt, e = xs();
8611
+ const t = Vt, e = Gs();
8612
8612
  function r(n) {
8613
8613
  const s = Buffer.alloc(150);
8614
8614
  let a;
@@ -8620,12 +8620,12 @@ function Gs() {
8620
8620
  }
8621
8621
  return c(r, "readShebang"), We = r, We;
8622
8622
  }
8623
- c(Gs, "requireReadShebang");
8623
+ c($s, "requireReadShebang");
8624
8624
  var qe, cn;
8625
- function $s() {
8625
+ function Hs() {
8626
8626
  if (cn) return qe;
8627
8627
  cn = 1;
8628
- const t = Kt, e = Ns(), r = Ms(), n = Gs(), i = process.platform === "win32", s = /\.(?:com|exe)$/i, a = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
8628
+ const t = Kt, e = Ms(), r = Ds(), n = $s(), i = process.platform === "win32", s = /\.(?:com|exe)$/i, a = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
8629
8629
  function l(g) {
8630
8630
  g.file = e(g);
8631
8631
  const A = g.file && n(g.file);
@@ -8651,9 +8651,9 @@ function $s() {
8651
8651
  }
8652
8652
  return c(d, "parse"), qe = d, qe;
8653
8653
  }
8654
- c($s, "requireParse");
8654
+ c(Hs, "requireParse");
8655
8655
  var Ye, un;
8656
- function Hs() {
8656
+ function ks() {
8657
8657
  if (un) return Ye;
8658
8658
  un = 1;
8659
8659
  const t = process.platform === "win32";
@@ -8682,12 +8682,12 @@ function Hs() {
8682
8682
  }
8683
8683
  return c(i, "verifyENOENTSync"), Ye = { hookChildProcess: r, verifyENOENT: n, verifyENOENTSync: i, notFoundError: e }, Ye;
8684
8684
  }
8685
- c(Hs, "requireEnoent");
8685
+ c(ks, "requireEnoent");
8686
8686
  var ln;
8687
- function ks() {
8687
+ function js() {
8688
8688
  if (ln) return $t.exports;
8689
8689
  ln = 1;
8690
- const t = require$$0$2, e = $s(), r = Hs();
8690
+ const t = require$$0$2, e = Hs(), r = ks();
8691
8691
  function n(s, a, l) {
8692
8692
  const h = e(s, a, l), d = t.spawn(h.command, h.args, h.options);
8693
8693
  return r.hookChildProcess(d, h), d;
@@ -8699,76 +8699,76 @@ function ks() {
8699
8699
  }
8700
8700
  return c(i, "spawnSync"), $t.exports = n, $t.exports.spawn = n, $t.exports.sync = i, $t.exports._parse = e, $t.exports._enoent = r, $t.exports;
8701
8701
  }
8702
- c(ks, "requireCrossSpawn");
8703
- var js = ks(), Fs = vr(js);
8704
- function Vs(t) {
8702
+ c(js, "requireCrossSpawn");
8703
+ var Fs = js(), Vs = vr(Fs);
8704
+ function Ks(t) {
8705
8705
  const e = typeof t == "string" ? `
8706
8706
  ` : 10, r = typeof t == "string" ? "\r" : 13;
8707
8707
  return t[t.length - 1] === e && (t = t.slice(0, -1)), t[t.length - 1] === r && (t = t.slice(0, -1)), t;
8708
8708
  }
8709
- c(Vs, "stripFinalNewline");
8709
+ c(Ks, "stripFinalNewline");
8710
8710
  function fn(t = {}) {
8711
8711
  const { env: e = process.env, platform: r = process.platform } = t;
8712
8712
  return r !== "win32" ? "PATH" : Object.keys(e).reverse().find((n) => n.toUpperCase() === "PATH") || "Path";
8713
8713
  }
8714
8714
  c(fn, "pathKey");
8715
- const Ks = c(({ cwd: t = y.cwd(), path: e = y.env[fn()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
8715
+ const Ws = c(({ cwd: t = y.cwd(), path: e = y.env[fn()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
8716
8716
  const s = t instanceof URL ? fileURLToPath(t) : t, a = path.resolve(s), l = [];
8717
- return r && Ws(l, a), i && qs(l, n, a), [...l, e].join(path.delimiter);
8718
- }, "npmRunPath"), Ws = c((t, e) => {
8717
+ return r && qs(l, a), i && Ys(l, n, a), [...l, e].join(path.delimiter);
8718
+ }, "npmRunPath"), qs = c((t, e) => {
8719
8719
  let r;
8720
8720
  for (; r !== e; ) t.push(path.join(e, "node_modules/.bin")), r = e, e = path.resolve(e, "..");
8721
- }, "applyPreferLocal"), qs = c((t, e, r) => {
8721
+ }, "applyPreferLocal"), Ys = c((t, e, r) => {
8722
8722
  const n = e instanceof URL ? fileURLToPath(e) : e;
8723
8723
  t.push(path.resolve(r, n, ".."));
8724
- }, "applyExecPath"), Ys = c(({ env: t = y.env, ...e } = {}) => {
8724
+ }, "applyExecPath"), Js = c(({ env: t = y.env, ...e } = {}) => {
8725
8725
  t = { ...t };
8726
8726
  const r = fn({ env: t });
8727
- return e.path = t[r], t[r] = Ks(e), t;
8728
- }, "npmRunPathEnv"), Js = c(() => {
8727
+ return e.path = t[r], t[r] = Ws(e), t;
8728
+ }, "npmRunPathEnv"), Qs = c(() => {
8729
8729
  const t = dn - hn + 1;
8730
- return Array.from({ length: t }, Qs);
8731
- }, "getRealtimeSignals"), Qs = c((t, e) => ({ name: `SIGRT${e + 1}`, number: hn + e, 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 = c(() => {
8732
- const t = Js();
8733
- return [...zs, ...t].map(Xs);
8734
- }, "getSignals"), Xs = c(({ name: t, number: e, description: r, action: n, forced: i = false, standard: s }) => {
8730
+ return Array.from({ length: t }, zs);
8731
+ }, "getRealtimeSignals"), zs = c((t, e) => ({ name: `SIGRT${e + 1}`, number: hn + e, action: "terminate", description: "Application-specific signal (realtime)", standard: "posix" }), "getRealtimeSignal"), hn = 34, dn = 64, Xs = [{ 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 = c(() => {
8732
+ const t = Qs();
8733
+ return [...Xs, ...t].map(Zs);
8734
+ }, "getSignals"), Zs = c(({ name: t, number: e, description: r, action: n, forced: i = false, standard: s }) => {
8735
8735
  const { signals: { [t]: a } } = constants$1, l = a !== void 0;
8736
8736
  return { name: t, number: l ? a : e, description: r, supported: l, action: n, forced: i, standard: s };
8737
- }, "normalizeSignal"), Zs = c(() => {
8737
+ }, "normalizeSignal"), to = c(() => {
8738
8738
  const t = pn();
8739
- return Object.fromEntries(t.map(to));
8740
- }, "getSignalsByName"), to = c(({ name: t, number: e, description: r, supported: n, action: i, forced: s, standard: a }) => [t, { name: t, number: e, description: r, supported: n, action: i, forced: s, standard: a }], "getSignalByName"), eo = Zs(), ro = c(() => {
8741
- const t = pn(), e = dn + 1, r = Array.from({ length: e }, (n, i) => no(i, t));
8739
+ return Object.fromEntries(t.map(eo));
8740
+ }, "getSignalsByName"), eo = c(({ name: t, number: e, description: r, supported: n, action: i, forced: s, standard: a }) => [t, { name: t, number: e, description: r, supported: n, action: i, forced: s, standard: a }], "getSignalByName"), ro = to(), no = c(() => {
8741
+ const t = pn(), e = dn + 1, r = Array.from({ length: e }, (n, i) => io(i, t));
8742
8742
  return Object.assign({}, ...r);
8743
- }, "getSignalsByNumber"), no = c((t, e) => {
8744
- const r = io(t, e);
8743
+ }, "getSignalsByNumber"), io = c((t, e) => {
8744
+ const r = so(t, e);
8745
8745
  if (r === void 0) return {};
8746
8746
  const { name: n, description: i, supported: s, action: a, forced: l, standard: h } = r;
8747
8747
  return { [t]: { name: n, number: t, description: i, supported: s, action: a, forced: l, standard: h } };
8748
- }, "getSignalByNumber"), io = c((t, e) => {
8748
+ }, "getSignalByNumber"), so = c((t, e) => {
8749
8749
  const r = e.find(({ name: n }) => constants$1.signals[n] === t);
8750
8750
  return r !== void 0 ? r : e.find((n) => n.number === t);
8751
8751
  }, "findSignalByNumber");
8752
- ro();
8753
- const so = c(({ timedOut: t, timeout: e, errorCode: r, signal: n, signalDescription: i, exitCode: s, isCanceled: a }) => t ? `timed out after ${e} 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 = c(({ stdout: t, stderr: e, all: r, error: n, signal: i, exitCode: s, command: a, escapedCommand: l, timedOut: h, isCanceled: d, killed: g, parsed: { options: { timeout: A, cwd: C = y.cwd() } } }) => {
8752
+ no();
8753
+ const oo = c(({ timedOut: t, timeout: e, errorCode: r, signal: n, signalDescription: i, exitCode: s, isCanceled: a }) => t ? `timed out after ${e} 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 = c(({ stdout: t, stderr: e, all: r, error: n, signal: i, exitCode: s, command: a, escapedCommand: l, timedOut: h, isCanceled: d, killed: g, parsed: { options: { timeout: A, cwd: C = y.cwd() } } }) => {
8754
8754
  s = s === null ? void 0 : s, i = i === null ? void 0 : i;
8755
- const v = i === void 0 ? void 0 : eo[i].description, M = n && n.code, b = `Command ${so({ timedOut: h, timeout: A, errorCode: M, signal: i, signalDescription: v, exitCode: s, isCanceled: d })}: ${a}`, P = Object.prototype.toString.call(n) === "[object Error]", w = P ? `${b}
8755
+ const v = i === void 0 ? void 0 : ro[i].description, M = n && n.code, b = `Command ${oo({ timedOut: h, timeout: A, errorCode: M, signal: i, signalDescription: v, exitCode: s, isCanceled: d })}: ${a}`, P = Object.prototype.toString.call(n) === "[object Error]", w = P ? `${b}
8756
8756
  ${n.message}` : b, O = [w, e, t].filter(Boolean).join(`
8757
8757
  `);
8758
8758
  return P ? (n.originalMessage = n.message, n.message = O) : n = new Error(O), n.shortMessage = w, n.command = a, n.escapedCommand = l, n.exitCode = s, n.signal = i, n.signalDescription = v, n.stdout = t, n.stderr = e, n.cwd = C, r !== void 0 && (n.all = r), "bufferedData" in n && delete n.bufferedData, n.failed = true, n.timedOut = !!h, n.isCanceled = d, n.killed = g && !h, n;
8759
- }, "makeError"), fe = ["stdin", "stdout", "stderr"], oo = c((t) => fe.some((e) => t[e] !== void 0), "hasAlias"), ao = c((t) => {
8759
+ }, "makeError"), fe = ["stdin", "stdout", "stderr"], ao = c((t) => fe.some((e) => t[e] !== void 0), "hasAlias"), co = c((t) => {
8760
8760
  if (!t) return;
8761
8761
  const { stdio: e } = t;
8762
8762
  if (e === void 0) return fe.map((n) => t[n]);
8763
- if (oo(t)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${fe.map((n) => `\`${n}\``).join(", ")}`);
8763
+ if (ao(t)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${fe.map((n) => `\`${n}\``).join(", ")}`);
8764
8764
  if (typeof e == "string") return e;
8765
8765
  if (!Array.isArray(e)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);
8766
8766
  const r = Math.max(e.length, fe.length);
8767
8767
  return Array.from({ length: r }, (n, i) => e[i]);
8768
8768
  }, "normalizeStdio"), Ft = [];
8769
8769
  Ft.push("SIGHUP", "SIGINT", "SIGTERM"), process.platform !== "win32" && Ft.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT"), process.platform === "linux" && Ft.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
8770
- const he = c((t) => !!t && typeof t == "object" && typeof t.removeListener == "function" && typeof t.emit == "function" && typeof t.reallyExit == "function" && typeof t.listeners == "function" && typeof t.kill == "function" && typeof t.pid == "number" && typeof t.on == "function", "processOk"), Je = Symbol.for("signal-exit emitter"), Qe = globalThis, co = Object.defineProperty.bind(Object);
8771
- class uo {
8770
+ const he = c((t) => !!t && typeof t == "object" && typeof t.removeListener == "function" && typeof t.emit == "function" && typeof t.reallyExit == "function" && typeof t.listeners == "function" && typeof t.kill == "function" && typeof t.pid == "number" && typeof t.on == "function", "processOk"), Je = Symbol.for("signal-exit emitter"), Qe = globalThis, uo = Object.defineProperty.bind(Object);
8771
+ class lo {
8772
8772
  static {
8773
8773
  c(this, "Emitter");
8774
8774
  }
@@ -8778,7 +8778,7 @@ class uo {
8778
8778
  id = Math.random();
8779
8779
  constructor() {
8780
8780
  if (Qe[Je]) return Qe[Je];
8781
- co(Qe, Je, { value: this, writable: false, enumerable: false, configurable: false });
8781
+ uo(Qe, Je, { value: this, writable: false, enumerable: false, configurable: false });
8782
8782
  }
8783
8783
  on(e, r) {
8784
8784
  this.listeners[e].push(r);
@@ -8800,14 +8800,14 @@ class gn {
8800
8800
  c(this, "SignalExitBase");
8801
8801
  }
8802
8802
  }
8803
- const lo = c((t) => ({ onExit(e, r) {
8803
+ const fo = c((t) => ({ onExit(e, r) {
8804
8804
  return t.onExit(e, r);
8805
8805
  }, load() {
8806
8806
  return t.load();
8807
8807
  }, unload() {
8808
8808
  return t.unload();
8809
8809
  } }), "signalExitWrap");
8810
- class fo extends gn {
8810
+ class ho extends gn {
8811
8811
  static {
8812
8812
  c(this, "SignalExitFallback");
8813
8813
  }
@@ -8820,12 +8820,12 @@ class fo extends gn {
8820
8820
  unload() {
8821
8821
  }
8822
8822
  }
8823
- class ho extends gn {
8823
+ class po extends gn {
8824
8824
  static {
8825
8825
  c(this, "SignalExit");
8826
8826
  }
8827
8827
  #o = ze.platform === "win32" ? "SIGINT" : "SIGHUP";
8828
- #e = new uo();
8828
+ #e = new lo();
8829
8829
  #t;
8830
8830
  #i;
8831
8831
  #s;
@@ -8888,13 +8888,13 @@ class ho extends gn {
8888
8888
  }
8889
8889
  }
8890
8890
  const ze = globalThis.process;
8891
- lo(he(ze) ? new ho(ze) : new fo());
8892
- function po(t) {
8891
+ fo(he(ze) ? new po(ze) : new ho());
8892
+ function mo(t) {
8893
8893
  return t !== null && typeof t == "object" && typeof t.pipe == "function";
8894
8894
  }
8895
- c(po, "isStream"), new TextEncoder();
8895
+ c(mo, "isStream"), new TextEncoder();
8896
8896
  var Xe, En;
8897
- function mo() {
8897
+ function go() {
8898
8898
  if (En) return Xe;
8899
8899
  En = 1;
8900
8900
  const { PassThrough: t } = require$$0;
@@ -8914,33 +8914,33 @@ function mo() {
8914
8914
  }
8915
8915
  }, "mergeStream"), Xe;
8916
8916
  }
8917
- c(mo, "requireMergeStream"), mo();
8918
- const go = c((t) => {
8917
+ c(go, "requireMergeStream"), go();
8918
+ const Eo = c((t) => {
8919
8919
  if (t !== void 0) throw new TypeError("The `input` and `inputFile` options cannot be both set.");
8920
- }, "validateInputOptions"), Eo = c(({ input: t, inputFile: e }) => typeof e != "string" ? t : (go(t), readFileSync(e)), "getInputSync"), _o = c((t) => {
8921
- const e = Eo(t);
8922
- if (po(e)) throw new TypeError("The `input` option cannot be a stream in sync mode");
8920
+ }, "validateInputOptions"), _o = c(({ input: t, inputFile: e }) => typeof e != "string" ? t : (Eo(t), readFileSync(e)), "getInputSync"), Io = c((t) => {
8921
+ const e = _o(t);
8922
+ if (mo(e)) throw new TypeError("The `input` option cannot be a stream in sync mode");
8923
8923
  return e;
8924
- }, "handleInputSync"), Io = (async () => {
8924
+ }, "handleInputSync"), So = (async () => {
8925
8925
  })().constructor.prototype;
8926
- ["then", "catch", "finally"].map((t) => [t, Reflect.getOwnPropertyDescriptor(Io, t)]);
8927
- const _n = c((t, e = []) => Array.isArray(e) ? [t, ...e] : [t], "normalizeArgs"), So = /^[\w.-]+$/, Ro = c((t) => typeof t != "string" || So.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"), To = c((t, e) => _n(t, e).join(" "), "joinCommand"), Ao = c((t, e) => _n(t, e).map((r) => Ro(r)).join(" "), "getEscapedCommand"), wo = debuglog("execa").enabled, de = c((t, e) => String(t).padStart(e, "0"), "padField"), yo = c(() => {
8926
+ ["then", "catch", "finally"].map((t) => [t, Reflect.getOwnPropertyDescriptor(So, t)]);
8927
+ const _n = c((t, e = []) => Array.isArray(e) ? [t, ...e] : [t], "normalizeArgs"), Ro = /^[\w.-]+$/, To = c((t) => typeof t != "string" || Ro.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"), Ao = c((t, e) => _n(t, e).join(" "), "joinCommand"), wo = c((t, e) => _n(t, e).map((r) => To(r)).join(" "), "getEscapedCommand"), yo = debuglog("execa").enabled, de = c((t, e) => String(t).padStart(e, "0"), "padField"), bo = c(() => {
8928
8928
  const t = /* @__PURE__ */ new Date();
8929
8929
  return `${de(t.getHours(), 2)}:${de(t.getMinutes(), 2)}:${de(t.getSeconds(), 2)}.${de(t.getMilliseconds(), 3)}`;
8930
- }, "getTimestamp"), bo = c((t, { verbose: e }) => {
8931
- e && y.stderr.write(`[${yo()}] ${t}
8930
+ }, "getTimestamp"), Co = c((t, { verbose: e }) => {
8931
+ e && y.stderr.write(`[${bo()}] ${t}
8932
8932
  `);
8933
- }, "logCommand"), Co = 1e3 * 1e3 * 100, vo = c(({ env: t, extendEnv: e, preferLocal: r, localDir: n, execPath: i }) => {
8933
+ }, "logCommand"), vo = 1e3 * 1e3 * 100, Uo = c(({ env: t, extendEnv: e, preferLocal: r, localDir: n, execPath: i }) => {
8934
8934
  const s = e ? { ...y.env, ...t } : t;
8935
- return r ? Ys({ env: s, cwd: n, execPath: i }) : s;
8936
- }, "getEnv"), Uo = c((t, e, r = {}) => {
8937
- const n = Fs._parse(t, e, r);
8938
- return t = n.command, e = n.args, r = n.options, r = { maxBuffer: Co, 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: wo, ...r }, r.env = vo(r), r.stdio = ao(r), y.platform === "win32" && path.basename(t, ".exe") === "cmd" && e.unshift("/q"), { file: t, args: e, options: r, parsed: n };
8939
- }, "handleArguments"), In = c((t, e, r) => typeof e != "string" && !Buffer$1.isBuffer(e) ? r === void 0 ? void 0 : "" : t.stripFinalNewline ? Vs(e) : e, "handleOutput");
8935
+ return r ? Js({ env: s, cwd: n, execPath: i }) : s;
8936
+ }, "getEnv"), Bo = c((t, e, r = {}) => {
8937
+ const n = Vs._parse(t, e, r);
8938
+ return t = n.command, e = n.args, r = n.options, r = { maxBuffer: vo, 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: yo, ...r }, r.env = Uo(r), r.stdio = co(r), y.platform === "win32" && path.basename(t, ".exe") === "cmd" && e.unshift("/q"), { file: t, args: e, options: r, parsed: n };
8939
+ }, "handleArguments"), In = c((t, e, r) => typeof e != "string" && !Buffer$1.isBuffer(e) ? r === void 0 ? void 0 : "" : t.stripFinalNewline ? Ks(e) : e, "handleOutput");
8940
8940
  function Ze(t, e, r) {
8941
- const n = Uo(t, e, r), i = To(t, e), s = Ao(t, e);
8942
- bo(s, n.options);
8943
- const a = _o(n.options);
8941
+ const n = Bo(t, e, r), i = Ao(t, e), s = wo(t, e);
8942
+ Co(s, n.options);
8943
+ const a = Io(n.options);
8944
8944
  let l;
8945
8945
  try {
8946
8946
  l = childProcess.spawnSync(n.file, n.args, { ...n.options, input: a });
@@ -8977,122 +8977,122 @@ function tr(t) {
8977
8977
  }
8978
8978
  }
8979
8979
  c(tr, "branch");
8980
- const Sn = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Bo = /^\/(.*)\.git$/;
8981
- function Po(t) {
8980
+ const Sn = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Po = /^\/(.*)\.git$/;
8981
+ function Oo(t) {
8982
8982
  if (t) {
8983
8983
  if (t.match(Sn)) return t.replace(Sn, "$1");
8984
8984
  try {
8985
- return new URL(t).pathname.replace(Bo, "$1");
8985
+ return new URL(t).pathname.replace(Po, "$1");
8986
8986
  } catch {
8987
8987
  return;
8988
8988
  }
8989
8989
  }
8990
8990
  }
8991
- c(Po, "getSlugFromGitURL");
8992
- var Oo = { detect({ env: t }) {
8991
+ c(Oo, "getSlugFromGitURL");
8992
+ var Lo = { detect({ env: t }) {
8993
8993
  return !!t.BUILDKITE;
8994
8994
  }, configuration({ env: t }) {
8995
8995
  const e = t.BUILDKITE_PULL_REQUEST === "false" ? void 0 : t.BUILDKITE_PULL_REQUEST, r = !!e;
8996
- return { name: "Buildkite", service: "buildkite", build: t.BUILDKITE_BUILD_NUMBER, buildUrl: t.BUILDKITE_BUILD_URL, commit: t.BUILDKITE_COMMIT, tag: t.BUILDKITE_TAG, branch: r ? t.BUILDKITE_PULL_REQUEST_BASE_BRANCH : t.BUILDKITE_BRANCH, slug: Po(t.BUILDKITE_REPO), pr: e, isPr: r, prBranch: r ? t.BUILDKITE_BRANCH : void 0, root: t.BUILDKITE_BUILD_CHECKOUT_PATH };
8997
- } }, Lo = { detect({ env: t }) {
8996
+ return { name: "Buildkite", service: "buildkite", build: t.BUILDKITE_BUILD_NUMBER, buildUrl: t.BUILDKITE_BUILD_URL, commit: t.BUILDKITE_COMMIT, tag: t.BUILDKITE_TAG, branch: r ? t.BUILDKITE_PULL_REQUEST_BASE_BRANCH : t.BUILDKITE_BRANCH, slug: Oo(t.BUILDKITE_REPO), pr: e, isPr: r, prBranch: r ? t.BUILDKITE_BRANCH : void 0, root: t.BUILDKITE_BUILD_CHECKOUT_PATH };
8997
+ } }, No = { detect({ env: t }) {
8998
8998
  return !!t.CIRCLECI;
8999
8999
  }, configuration({ env: t }) {
9000
9000
  const e = t.CIRCLE_PR_NUMBER || Qr(t.CIRCLE_PULL_REQUEST || t.CI_PULL_REQUEST), r = !!e;
9001
9001
  return { name: "CircleCI", service: "circleci", build: t.CIRCLE_BUILD_NUM, buildUrl: t.CIRCLE_BUILD_URL, job: `${t.CIRCLE_BUILD_NUM}.${t.CIRCLE_NODE_INDEX}`, commit: t.CIRCLE_SHA1, tag: t.CIRCLE_TAG, branch: r ? void 0 : t.CIRCLE_BRANCH, pr: e, isPr: r, prBranch: r ? t.CIRCLE_BRANCH : void 0, slug: `${t.CIRCLE_PROJECT_USERNAME}/${t.CIRCLE_PROJECT_REPONAME}` };
9002
9002
  } };
9003
9003
  const Rn = "https://cirrus-ci.com";
9004
- var No = { detect({ env: t }) {
9004
+ var Mo = { detect({ env: t }) {
9005
9005
  return !!t.CIRRUS_CI;
9006
9006
  }, configuration({ env: t }) {
9007
9007
  const e = t.CIRRUS_PR, r = !!e;
9008
9008
  return { name: "Cirrus CI", service: "cirrus", commit: t.CIRRUS_CHANGE_IN_REPO, tag: t.CIRRUS_TAG, build: t.CIRRUS_BUILD_ID, buildUrl: `${Rn}/build/${t.CIRRUS_BUILD_ID}`, job: t.CIRRUS_TASK_ID, jobUrl: `${Rn}/task/${t.CIRRUS_TASK_ID}`, branch: r ? t.CIRRUS_BASE_BRANCH : t.CIRRUS_BRANCH, pr: e, isPr: r, prBranch: r ? t.CIRRUS_BRANCH : void 0, slug: t.CIRRUS_REPO_FULL_NAME, root: t.CIRRUS_WORKING_DIR };
9009
- } }, Mo = { detect({ env: t }) {
9009
+ } }, Do = { detect({ env: t }) {
9010
9010
  return t.CF_PAGES === "1";
9011
9011
  }, configuration({ env: t }) {
9012
9012
  return { name: "Cloudflare Pages", service: "cloudflarePages", commit: t.CF_PAGES_COMMIT_SHA, branch: t.CF_PAGES_BRANCH, root: t.PWD };
9013
- } }, Do = { detect({ env: t }) {
9013
+ } }, xo = { detect({ env: t }) {
9014
9014
  return !!t.CODEBUILD_BUILD_ID;
9015
9015
  }, configuration({ env: t, cwd: e }) {
9016
9016
  return { name: "AWS CodeBuild", service: "codebuild", commit: pe({ env: t, cwd: e }), build: t.CODEBUILD_BUILD_ID, branch: tr({ env: t, cwd: e }), buildUrl: `https://console.aws.amazon.com/codebuild/home?region=${t.AWS_REGION}#/builds/${t.CODEBUILD_BUILD_ID}/view/new`, root: t.PWD };
9017
- } }, xo = { detect({ env: t }) {
9017
+ } }, Go = { detect({ env: t }) {
9018
9018
  return !!t.CF_BUILD_ID;
9019
9019
  }, configuration({ env: t }) {
9020
9020
  const e = t.CF_PULL_REQUEST_NUMBER, r = !!e;
9021
9021
  return { name: "Codefresh", service: "codefresh", commit: t.CF_REVISION, build: t.CF_BUILD_ID, buildUrl: t.CF_BUILD_URL, branch: r ? t.CF_PULL_REQUEST_TARGET : t.CF_BRANCH, pr: e, isPr: r, prBranch: r ? t.CF_BRANCH : void 0, slug: `${t.CF_REPO_OWNER}/${t.CF_REPO_NAME}`, root: t.CF_VOLUME_PATH };
9022
- } }, Go = { detect({ env: t }) {
9022
+ } }, $o = { detect({ env: t }) {
9023
9023
  return t.CI_NAME && t.CI_NAME === "codeship";
9024
9024
  }, configuration({ env: t }) {
9025
9025
  return { name: "Codeship", service: "codeship", build: t.CI_BUILD_NUMBER, buildUrl: t.CI_BUILD_URL, commit: t.CI_COMMIT_ID, branch: t.CI_BRANCH, slug: t.CI_REPO_NAME };
9026
- } }, $o = { detect({ env: t }) {
9026
+ } }, Ho = { detect({ env: t }) {
9027
9027
  return !!t.DRONE;
9028
9028
  }, configuration({ env: t }) {
9029
9029
  const e = t.DRONE_BUILD_EVENT === "pull_request";
9030
9030
  return { name: "Drone", service: "drone", commit: t.DRONE_COMMIT_SHA, tag: t.DRONE_TAG, build: t.DRONE_BUILD_NUMBER, buildUrl: t.DRONE_BUILD_LINK, branch: e ? t.DRONE_TARGET_BRANCH : t.DRONE_BRANCH, job: t.DRONE_JOB_NUMBER, jobUrl: t.DRONE_BUILD_LINK, pr: t.DRONE_PULL_REQUEST, isPr: e, prBranch: e ? t.DRONE_SOURCE_BRANCH : void 0, slug: `${t.DRONE_REPO_OWNER}/${t.DRONE_REPO_NAME}`, root: t.DRONE_WORKSPACE };
9031
- } }, Ho = { configuration(t) {
9031
+ } }, ko = { configuration(t) {
9032
9032
  return { commit: pe(t), branch: tr(t) };
9033
9033
  } };
9034
- const ko = c(({ env: t }) => {
9034
+ const jo = c(({ env: t }) => {
9035
9035
  try {
9036
9036
  const e = t.GITHUB_EVENT_PATH ? JSON.parse(readFileSync(t.GITHUB_EVENT_PATH, "utf-8")) : void 0;
9037
9037
  if (e && e.pull_request) return { branch: e.pull_request.base ? ee(e.pull_request.base.ref) : void 0, pr: e.pull_request.number };
9038
9038
  } catch {
9039
9039
  }
9040
9040
  return { pr: void 0, branch: void 0 };
9041
- }, "getPrEvent"), jo = c((t) => {
9041
+ }, "getPrEvent"), Fo = c((t) => {
9042
9042
  const e = t.GITHUB_EVENT_PATH ? JSON.parse(readFileSync(t.GITHUB_EVENT_PATH, "utf-8")) : void 0;
9043
9043
  return e && e.pull_request ? e.pull_request.number : void 0;
9044
9044
  }, "getPrNumber");
9045
- var Fo = { detect({ env: t }) {
9045
+ var Vo = { detect({ env: t }) {
9046
9046
  return !!t.GITHUB_ACTIONS;
9047
9047
  }, configuration({ env: t, cwd: e }) {
9048
- const r = t.GITHUB_EVENT_NAME === "pull_request" || t.GITHUB_EVENT_NAME === "pull_request_target", n = ee(t.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${jo(t)}/merge` : t.GITHUB_REF);
9049
- return { name: "GitHub Actions", service: "github", commit: t.GITHUB_SHA, build: t.GITHUB_RUN_ID, buildUrl: `${t.GITHUB_SERVER_URL}/${t.GITHUB_REPOSITORY}/actions/runs/${t.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: t.GITHUB_REPOSITORY, root: t.GITHUB_WORKSPACE, ...r ? ko({ env: t }) : void 0 };
9050
- } }, Vo = { detect({ env: t }) {
9048
+ const r = t.GITHUB_EVENT_NAME === "pull_request" || t.GITHUB_EVENT_NAME === "pull_request_target", n = ee(t.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${Fo(t)}/merge` : t.GITHUB_REF);
9049
+ return { name: "GitHub Actions", service: "github", commit: t.GITHUB_SHA, build: t.GITHUB_RUN_ID, buildUrl: `${t.GITHUB_SERVER_URL}/${t.GITHUB_REPOSITORY}/actions/runs/${t.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: t.GITHUB_REPOSITORY, root: t.GITHUB_WORKSPACE, ...r ? jo({ env: t }) : void 0 };
9050
+ } }, Ko = { detect({ env: t }) {
9051
9051
  return !!t.GITLAB_CI;
9052
9052
  }, configuration({ env: t }) {
9053
9053
  const e = t.CI_MERGE_REQUEST_ID, r = !!e;
9054
9054
  return { name: "GitLab CI/CD", service: "gitlab", commit: t.CI_COMMIT_SHA, tag: t.CI_COMMIT_TAG, build: t.CI_PIPELINE_ID, buildUrl: `${t.CI_PROJECT_URL}/pipelines/${t.CI_PIPELINE_ID}`, job: t.CI_JOB_ID, jobUrl: `${t.CI_PROJECT_URL}/-/jobs/${t.CI_JOB_ID}`, branch: r ? t.CI_MERGE_REQUEST_TARGET_BRANCH_NAME : t.CI_COMMIT_REF_NAME, pr: e, isPr: r, prBranch: t.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME, slug: t.CI_PROJECT_PATH, root: t.CI_PROJECT_DIR };
9055
- } }, Ko = { detect({ env: t }) {
9055
+ } }, Wo = { detect({ env: t }) {
9056
9056
  return !!t.JENKINS_URL;
9057
9057
  }, configuration({ env: t, cwd: e }) {
9058
9058
  const r = t.ghprbPullId || t.gitlabMergeRequestId || t.CHANGE_ID, n = !!r, i = t.GIT_LOCAL_BRANCH || t.GIT_BRANCH || t.gitlabBranch || t.BRANCH_NAME;
9059
9059
  return { name: "Jenkins", service: "jenkins", commit: t.ghprbActualCommit || t.GIT_COMMIT || pe({ env: t, cwd: e }), branch: n ? t.ghprbTargetBranch || t.gitlabTargetBranch : i, build: t.BUILD_NUMBER, buildUrl: t.BUILD_URL, root: t.WORKSPACE, pr: r, isPr: n, prBranch: n ? t.ghprbSourceBranch || t.gitlabSourceBranch || i : void 0 };
9060
- } }, Wo = { detect({ env: t }) {
9060
+ } }, qo = { detect({ env: t }) {
9061
9061
  return t.NETLIFY === "true";
9062
9062
  }, configuration({ env: t }) {
9063
9063
  const e = t.PULL_REQUEST === "true";
9064
9064
  return { name: "Netlify", service: "netlify", commit: t.COMMIT_REF, build: t.DEPLOY_ID, buildUrl: `https://app.netlify.com/sites/${t.SITE_NAME}/deploys/${t.DEPLOY_ID}`, branch: e ? void 0 : t.HEAD, pr: t.REVIEW_ID, isPr: e, prBranch: e ? t.HEAD : void 0, slug: t.REPOSITORY_URL.match(/[^/:]+\/[^/]+?$/)[0], root: t.PWD };
9065
- } }, qo = { detect({ env: t }) {
9065
+ } }, Yo = { detect({ env: t }) {
9066
9066
  return !!t.DISTELLI_APPNAME;
9067
9067
  }, configuration({ env: t }) {
9068
9068
  return { name: "Puppet", service: "puppet", build: t.DISTELLI_BUILDNUM, buildUrl: t.DISTELLI_RELEASE, commit: t.DISTELLI_RELREVISION, branch: t.DISTELLI_RELBRANCH, root: t.DISTELLI_INSTALLHOME };
9069
- } }, Yo = { detect({ env: t }) {
9069
+ } }, Jo = { detect({ env: t }) {
9070
9070
  return !!t.SAILCI;
9071
9071
  }, configuration({ env: t }) {
9072
9072
  const e = t.SAIL_PULL_REQUEST_NUMBER, r = !!e;
9073
9073
  return { name: "Sail CI", service: "sail", commit: t.SAIL_COMMIT_SHA, branch: r ? void 0 : t.SAIL_COMMIT_BRANCH, pr: e, isPr: r, slug: `${t.SAIL_REPO_OWNER}/${t.SAIL_REPO_NAME}`, root: t.SAIL_CLONE_DIR };
9074
- } }, Jo = { detect({ env: t }) {
9074
+ } }, Qo = { detect({ env: t }) {
9075
9075
  return !!t.SCREWDRIVER;
9076
9076
  }, configuration({ env: t }) {
9077
9077
  const e = t.SD_PULL_REQUEST, r = !!e;
9078
9078
  return { name: "Screwdriver.cd", service: "screwdriver", branch: r ? t.PR_BASE_BRANCH_NAME : t.GIT_BRANCH, prBranch: r ? t.PR_BRANCH_NAME : void 0, commit: t.SD_BUILD_SHA, build: t.SD_BUILD_ID, buildUrl: t.SD_UI_BUILD_URL, job: t.SD_JOB_ID, pr: e, isPr: r, slug: t.SD_PIPELINE_NAME, root: t.SD_ROOT_DIR };
9079
- } }, Qo = { detect({ env: t }) {
9079
+ } }, zo = { detect({ env: t }) {
9080
9080
  return !!t.SCRUTINIZER;
9081
9081
  }, configuration({ env: t }) {
9082
9082
  const e = t.SCRUTINIZER_PR_NUMBER, r = !!e;
9083
9083
  return { name: "Scrutinizer", service: "scrutinizer", commit: t.SCRUTINIZER_SHA1, build: t.SCRUTINIZER_INSPECTION_UUID, branch: t.SCRUTINIZER_BRANCH, pr: e, isPr: r, prBranch: t.SCRUTINIZER_PR_SOURCE_BRANCH };
9084
- } }, zo = { detect({ env: t }) {
9084
+ } }, Xo = { detect({ env: t }) {
9085
9085
  return !!t.SEMAPHORE;
9086
9086
  }, configuration({ env: t, cwd: e }) {
9087
9087
  const r = t.SEMAPHORE_GIT_PR_NUMBER || t.PULL_REQUEST_NUMBER, n = !!r;
9088
9088
  return { name: "Semaphore", service: "semaphore", commit: t.SEMAPHORE_GIT_SHA || pe({ env: t, cwd: e }), tag: t.SEMAPHORE_GIT_TAG_NAME, build: t.SEMAPHORE_JOB_ID || t.SEMAPHORE_BUILD_NUMBER, branch: t.SEMAPHORE_GIT_BRANCH || (n ? void 0 : t.BRANCH_NAME), pr: r, isPr: n, prBranch: t.SEMAPHORE_GIT_PR_BRANCH || (n ? t.BRANCH_NAME : void 0), slug: t.SEMAPHORE_GIT_REPO_SLUG || t.SEMAPHORE_REPO_SLUG, root: t.SEMAPHORE_GIT_DIR || t.SEMAPHORE_PROJECT_DIR };
9089
- } }, Xo = { detect({ env: t }) {
9089
+ } }, Zo = { detect({ env: t }) {
9090
9090
  return !!t.SHIPPABLE;
9091
9091
  }, configuration({ env: t }) {
9092
9092
  const e = t.IS_PULL_REQUEST === "true" ? t.PULL_REQUEST : void 0, r = !!e;
9093
9093
  return { name: "Shippable", service: "shippable", commit: t.COMMIT, tag: t.GIT_TAG_NAME, build: t.BUILD_NUMBER, buildUrl: t.BUILD_URL, branch: r ? t.BASE_BRANCH : t.BRANCH, job: t.JOB_NUMBER, pr: e, isPr: r, prBranch: r ? t.HEAD_BRANCH : void 0, slug: t.SHIPPABLE_REPO_SLUG, root: t.SHIPPABLE_BUILD_DIR };
9094
9094
  } }, Ht = {}, Tn;
9095
- function Zo() {
9095
+ function ta() {
9096
9096
  if (Tn) return Ht;
9097
9097
  Tn = 1, Object.defineProperty(Ht, "__esModule", { value: true }), Ht.of = Ht.PropertiesFile = void 0;
9098
9098
  var t = e(Vt);
@@ -9200,64 +9200,64 @@ function Zo() {
9200
9200
  }, "of2");
9201
9201
  return Ht.of = n, Ht;
9202
9202
  }
9203
- c(Zo, "requireDistNode");
9204
- var ta = Zo(), ea = vr(ta);
9203
+ c(ta, "requireDistNode");
9204
+ var ea = ta(), ra = vr(ea);
9205
9205
  const er = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" }, An = c((t) => {
9206
9206
  try {
9207
- return ea.of(t);
9207
+ return ra.of(t);
9208
9208
  } catch {
9209
9209
  return;
9210
9210
  }
9211
- }, "safeReadProperties"), ra = c(({ env: t, cwd: e }) => {
9211
+ }, "safeReadProperties"), na = c(({ env: t, cwd: e }) => {
9212
9212
  const r = t.TEAMCITY_BUILD_PROPERTIES_FILE ? An(t.TEAMCITY_BUILD_PROPERTIES_FILE) : void 0, n = r ? r.get("teamcity.configuration.properties.file") : void 0, i = n && An(n);
9213
9213
  return Object.fromEntries(Object.keys(er).map((s) => [s, (r ? r.get(er[s]) : void 0) || (i ? i.get(er[s]) : void 0) || (s === "branch" ? tr({ env: t, cwd: e }) : void 0)]));
9214
9214
  }, "getProperties");
9215
- var na = { detect({ env: t }) {
9215
+ var ia = { detect({ env: t }) {
9216
9216
  return !!t.TEAMCITY_VERSION;
9217
9217
  }, configuration({ env: t, cwd: e }) {
9218
- return { name: "TeamCity", service: "teamcity", commit: t.BUILD_VCS_NUMBER, build: t.BUILD_NUMBER, slug: t.TEAMCITY_BUILDCONF_NAME, ...ra({ env: t, cwd: e }) };
9219
- } }, ia = { detect({ env: t }) {
9218
+ return { name: "TeamCity", service: "teamcity", commit: t.BUILD_VCS_NUMBER, build: t.BUILD_NUMBER, slug: t.TEAMCITY_BUILDCONF_NAME, ...na({ env: t, cwd: e }) };
9219
+ } }, sa = { detect({ env: t }) {
9220
9220
  return !!t.TRAVIS;
9221
9221
  }, configuration({ env: t }) {
9222
9222
  const e = t.TRAVIS_PULL_REQUEST === "false" ? void 0 : t.TRAVIS_PULL_REQUEST, r = !!e;
9223
9223
  return { name: "Travis CI", service: "travis", commit: t.TRAVIS_COMMIT, tag: t.TRAVIS_TAG, build: t.TRAVIS_BUILD_NUMBER, buildUrl: t.TRAVIS_BUILD_WEB_URL, branch: t.TRAVIS_BRANCH, job: t.TRAVIS_JOB_NUMBER, jobUrl: t.TRAVIS_JOB_WEB_URL, pr: e, isPr: r, prBranch: t.TRAVIS_PULL_REQUEST_BRANCH, slug: t.TRAVIS_REPO_SLUG, root: t.TRAVIS_BUILD_DIR };
9224
- } }, sa = { detect({ env: t }) {
9224
+ } }, oa = { detect({ env: t }) {
9225
9225
  return !!t.VELA;
9226
9226
  }, configuration({ env: t }) {
9227
9227
  const e = t.VELA_BUILD_EVENT === "pull_request";
9228
9228
  return { name: "Vela", service: "vela", branch: e ? t.VELA_PULL_REQUEST_TARGET : t.VELA_BUILD_BRANCH, commit: t.VELA_BUILD_COMMIT, tag: t.VELA_BUILD_TAG, build: t.VELA_BUILD_NUMBER, buildUrl: t.VELA_BUILD_LINK, job: void 0, jobUrl: void 0, isPr: e, pr: t.VELA_BUILD_PULL_REQUEST, prBranch: t.VELA_PULL_REQUEST_SOURCE, slug: t.VELA_REPO_FULL_NAME, root: t.VELA_BUILD_WORKSPACE };
9229
- } }, oa = { detect({ env: t }) {
9229
+ } }, aa = { detect({ env: t }) {
9230
9230
  return !!t.VERCEL || !!t.NOW_GITHUB_DEPLOYMENT;
9231
9231
  }, configuration({ env: t }) {
9232
9232
  const e = "Vercel", r = "vercel";
9233
9233
  return t.VERCEL ? { name: e, service: r, commit: t.VERCEL_GIT_COMMIT_SHA, branch: t.VERCEL_GIT_COMMIT_REF, slug: `${t.VERCEL_GIT_REPO_OWNER}/${t.VERCEL_GIT_REPO_SLUG}` } : { name: e, service: r, commit: t.NOW_GITHUB_COMMIT_SHA, branch: t.NOW_GITHUB_COMMIT_REF, slug: `${t.NOW_GITHUB_ORG}/${t.NOW_GITHUB_REPO}` };
9234
- } }, aa = { detect({ env: t }) {
9234
+ } }, ca = { detect({ env: t }) {
9235
9235
  return !!t.WERCKER_MAIN_PIPELINE_STARTED;
9236
9236
  }, configuration({ env: t }) {
9237
9237
  return { name: "Wercker", service: "wercker", commit: t.WERCKER_GIT_COMMIT, build: t.WERCKER_MAIN_PIPELINE_STARTED, buildUrl: t.WERCKER_RUN_URL, branch: t.WERCKER_GIT_BRANCH, slug: `${t.WERCKER_GIT_OWNER}/${t.WERCKER_GIT_REPOSITORY}`, root: t.WERCKER_ROOT };
9238
- } }, ca = { detect({ env: t }) {
9238
+ } }, ua = { detect({ env: t }) {
9239
9239
  return t.CI && t.CI === "woodpecker";
9240
9240
  }, configuration({ env: t }) {
9241
9241
  const e = t.CI_PIPELINE_EVENT === "pull_request";
9242
9242
  return { name: "Woodpecker CI", service: "woodpecker", commit: t.CI_COMMIT_SHA, tag: t.CI_COMMIT_TAG, build: t.CI_PIPELINE_NUMBER, buildUrl: t.CI_PIPELINE_URL, branch: e ? t.CI_COMMIT_TARGET_BRANCH : t.CI_COMMIT_BRANCH, job: t.CI_STEP_NUMBER, jobUrl: t.CI_STEP_URL, pr: t.CI_COMMIT_PULL_REQUEST, isPr: e, prBranch: e ? t.CI_COMMIT_SOURCE_BRANCH : void 0, slug: `${t.CI_REPO_OWNER}/${t.CI_REPO_NAME}`, root: t.CI_WORKSPACE };
9243
- } }, ua = { detect({ env: t }) {
9243
+ } }, la = { detect({ env: t }) {
9244
9244
  return !!t.JB_SPACE_EXECUTION_NUMBER;
9245
9245
  }, configuration({ env: t }) {
9246
9246
  const e = t.JB_SPACE_PROJECT_KEY, r = t.JB_SPACE_GIT_REPOSITORY_NAME;
9247
9247
  return { name: "JetBrains Space", service: "jetbrainsSpace", commit: t.JB_SPACE_GIT_REVISION, build: t.JB_SPACE_EXECUTION_NUMBER, branch: ee(t.JB_SPACE_GIT_BRANCH), slug: e && r ? `${e.toLowerCase()}/${r}` : void 0 };
9248
9248
  } };
9249
- const rr = { appveyor: As, azurePipelines: ws, bamboo: ys, bitbucket: bs, bitrise: Cs, buddy: vs, buildkite: Oo, circleci: Lo, cirrus: No, cloudflarePages: Mo, codebuild: Do, codefresh: xo, codeship: Go, drone: $o, github: Fo, gitlab: Vo, jenkins: Ko, netlify: Wo, puppet: qo, sail: Yo, screwdriver: Jo, scrutinizer: Qo, semaphore: zo, shippable: Xo, teamcity: na, travis: ia, vela: sa, vercel: oa, wercker: aa, woodpecker: ca, jetbrainsSpace: ua };
9249
+ const rr = { appveyor: ws, azurePipelines: ys, bamboo: bs, bitbucket: Cs, bitrise: vs, buddy: Us, buildkite: Lo, circleci: No, cirrus: Mo, cloudflarePages: Do, codebuild: xo, codefresh: Go, codeship: $o, drone: Ho, github: Vo, gitlab: Ko, jenkins: Wo, netlify: qo, puppet: Yo, sail: Jo, screwdriver: Qo, scrutinizer: zo, semaphore: Xo, shippable: Zo, teamcity: ia, travis: sa, vela: oa, vercel: aa, wercker: ca, woodpecker: ua, jetbrainsSpace: la };
9250
9250
  var nr = c(({ env: t = process.env, cwd: e = process.cwd() } = {}) => {
9251
9251
  for (const r of Object.keys(rr)) if (rr[r].detect({ env: t, cwd: e })) return { isCi: true, ...rr[r].configuration({ env: t, cwd: e }) };
9252
- return { isCi: !!t.CI, ...Ho.configuration({ env: t, cwd: e }) };
9252
+ return { isCi: !!t.CI, ...ko.configuration({ env: t, cwd: e }) };
9253
9253
  }, "envCiModule");
9254
- const la = typeof nr == "function" ? nr : nr.default;
9255
- function fa() {
9256
- const t = la();
9257
- return { branch: process.env.GITHUB_HEAD_REF || t.branch, ciBuild: "build" in t ? String(t.build) : void 0, ciServiceName: "name" in t ? String(t.name) : void 0, commit: { message: da(), sha: t.commit }, isCI: t.isCi, pr: ha() };
9258
- }
9259
- c(fa, "getGitInfo");
9254
+ const fa = typeof nr == "function" ? nr : nr.default;
9260
9255
  function ha() {
9256
+ const t = fa();
9257
+ return { branch: process.env.GITHUB_HEAD_REF || t.branch, ciBuild: "build" in t ? String(t.build) : void 0, ciServiceName: "name" in t ? String(t.name) : void 0, commit: { message: pa(), sha: t.commit }, isCI: t.isCi, pr: da() };
9258
+ }
9259
+ c(ha, "getGitInfo");
9260
+ function da() {
9261
9261
  try {
9262
9262
  const t = process.env.GITHUB_EVENT_PATH;
9263
9263
  if (t) {
@@ -9269,19 +9269,19 @@ function ha() {
9269
9269
  return;
9270
9270
  }
9271
9271
  }
9272
- c(ha, "getPRInfo");
9273
- function da() {
9272
+ c(da, "getPRInfo");
9273
+ function pa() {
9274
9274
  try {
9275
9275
  return execSync("git log -1 --pretty=%B", { encoding: "utf-8", stdio: ["pipe", "pipe", "ignore"] }).trim();
9276
9276
  } catch {
9277
9277
  return;
9278
9278
  }
9279
9279
  }
9280
- c(da, "getLastCommitMessage");
9281
- function pa() {
9280
+ c(pa, "getLastCommitMessage");
9281
+ function ma() {
9282
9282
  return { hostname: ge.hostname(), platform: ge.platform() };
9283
9283
  }
9284
- c(pa, "getMachineInfo");
9284
+ c(ma, "getMachineInfo");
9285
9285
  class wn {
9286
9286
  static {
9287
9287
  c(this, "PendingPromiseTracker");
@@ -9316,16 +9316,16 @@ class wn {
9316
9316
  return this.pending.size;
9317
9317
  }
9318
9318
  }
9319
- function ma({ result: t, sensitiveValues: e }) {
9319
+ function ga({ result: t, sensitiveValues: e }) {
9320
9320
  return t.steps.map((r) => yn({ sensitiveValues: e, step: r }));
9321
9321
  }
9322
- c(ma, "extractSteps");
9322
+ c(ga, "extractSteps");
9323
9323
  function yn({ sensitiveValues: t, step: e }) {
9324
9324
  const r = c((n) => n && t?.length ? ot({ sensitiveValues: t, str: n }) : n, "scrub");
9325
9325
  return { category: e.category, duration: e.duration, error: e.error ? { message: r(e.error.message) || "Unknown error", stack: r(e.error.stack) } : void 0, location: e.location ? { column: e.location.column, file: e.location.file, line: e.location.line } : void 0, startedAt: new Date(e.startTime), steps: e.steps && e.steps.length > 0 ? e.steps.map((n) => yn({ sensitiveValues: t, step: n })) : void 0, title: r(e.title) ?? e.title };
9326
9326
  }
9327
9327
  c(yn, "extractStep");
9328
- class ga {
9328
+ class Ea {
9329
9329
  static {
9330
9330
  c(this, "UploadUrlWaitQueue");
9331
9331
  }
@@ -9353,8 +9353,8 @@ class ga {
9353
9353
  return n ? (clearTimeout(n.timeoutId), n.reject(r), this.waiters.delete(e), true) : false;
9354
9354
  }
9355
9355
  }
9356
- async function Ea({ fileData: t, maxRetries: e = 3, requestTimeoutMs: r = 6e4, uploadUrl: n }) {
9357
- await Kn(async () => {
9356
+ async function _a({ fileData: t, maxRetries: e = 3, requestTimeoutMs: r = 6e4, uploadUrl: n }) {
9357
+ await Wn(async () => {
9358
9358
  const i = new AbortController(), s = setTimeout(() => i.abort(), r);
9359
9359
  let a;
9360
9360
  try {
@@ -9365,12 +9365,12 @@ async function Ea({ fileData: t, maxRetries: e = 3, requestTimeoutMs: r = 6e4, u
9365
9365
  if (!a.ok) throw a.status >= 400 && a.status < 500 ? new pRetryExports.AbortError(`Upload failed with status ${a.status}: ${a.statusText}`) : new Error(`Upload failed with status ${a.status}: ${a.statusText}`);
9366
9366
  }, { minTimeout: 2e3, randomize: true, retries: e });
9367
9367
  }
9368
- c(Ea, "uploadWithRetry");
9369
- const _a = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Ia = 120 * 1e3, bn = 3e4, Sa = 120 * 1e3, Ra = 3e4, Ta = Number(process.env.STABLY_UPLOAD_REQUEST_TIMEOUT_MS) || 300 * 1e3, Aa = process.env.STABLY_API_URL ?? "https://api.stably.ai", wa = 50, ya = c(({ gitInfo: t, suite: e }) => {
9368
+ c(_a, "uploadWithRetry");
9369
+ const Ia = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Sa = 120 * 1e3, bn = 3e4, Ra = 120 * 1e3, Ta = 3e4, Aa = Number(process.env.STABLY_UPLOAD_REQUEST_TIMEOUT_MS) || 300 * 1e3, wa = process.env.STABLY_API_URL ?? "https://api.stably.ai", ya = 50, ba = c(({ gitInfo: t, suite: e }) => {
9370
9370
  const r = [...new Set(e.allTests().map((n) => n.parent.project()?.name).filter((n) => !!n))];
9371
9371
  if (r.length > 0) {
9372
9372
  const n = r.join(", ");
9373
- return n.length <= wa ? n : `${r[0]} + ${r.length - 1} more`;
9373
+ return n.length <= ya ? n : `${r[0]} + ${r.length - 1} more`;
9374
9374
  }
9375
9375
  if (t.isCI && t.ciServiceName && t.ciBuild) return `${t.ciServiceName} #${t.ciBuild}`;
9376
9376
  try {
@@ -9382,18 +9382,18 @@ const _a = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Ia = 120
9382
9382
  } catch {
9383
9383
  }
9384
9384
  return "Playwright Test Suite";
9385
- }, "generateRunName"), ba = c(({ notificationConfigs: t, suite: e }) => {
9385
+ }, "generateRunName"), Ca = c(({ notificationConfigs: t, suite: e }) => {
9386
9386
  if (!t || t.length === 0) return;
9387
9387
  const r = new Set(e.allTests().map((i) => i.parent.project()?.name).filter(Boolean)), n = t.filter((i) => r.has(i.projectName));
9388
9388
  return n.length > 0 ? n : void 0;
9389
- }, "filterNotificationConfigsByRunningProjects"), Ca = c((t) => t ? { configFile: t.configFile, forbidOnly: t.forbidOnly, fullyParallel: t.fullyParallel, globalSetup: t.globalSetup, globalTeardown: t.globalTeardown, globalTimeout: t.globalTimeout, grep: t.grep?.toString(), grepInvert: t.grepInvert?.toString(), maxFailures: t.maxFailures, metadata: t.metadata, preserveOutput: t.preserveOutput, quiet: t.quiet, reporter: t.reporter, reportSlowTests: t.reportSlowTests, rootDir: t.rootDir, shard: t.shard, updateSnapshots: t.updateSnapshots, version: t.version, webServer: t.webServer, workers: t.workers } : void 0, "extractConfigInfo"), ir = c(({ absolutePath: t, rootDir: e }) => {
9389
+ }, "filterNotificationConfigsByRunningProjects"), va = c((t) => t ? { configFile: t.configFile, forbidOnly: t.forbidOnly, fullyParallel: t.fullyParallel, globalSetup: t.globalSetup, globalTeardown: t.globalTeardown, globalTimeout: t.globalTimeout, grep: t.grep?.toString(), grepInvert: t.grepInvert?.toString(), maxFailures: t.maxFailures, metadata: t.metadata, preserveOutput: t.preserveOutput, quiet: t.quiet, reporter: t.reporter, reportSlowTests: t.reportSlowTests, rootDir: t.rootDir, shard: t.shard, updateSnapshots: t.updateSnapshots, version: t.version, webServer: t.webServer, workers: t.workers } : void 0, "extractConfigInfo"), Cn = c((t) => t?.shard?.current, "getShardIndex"), ir = c(({ absolutePath: t, rootDir: e }) => {
9390
9390
  if (e && t.startsWith(e)) {
9391
9391
  const r = t.slice(e.length);
9392
9392
  return r.startsWith("/") ? r.slice(1) : r;
9393
9393
  }
9394
9394
  return t;
9395
9395
  }, "makePathRelative");
9396
- class Cn {
9396
+ class vn {
9397
9397
  static {
9398
9398
  c(this, "StablyReporter");
9399
9399
  }
@@ -9421,7 +9421,7 @@ class Cn {
9421
9421
  suite;
9422
9422
  pendingQueuedSpecs;
9423
9423
  attachmentFiles = /* @__PURE__ */ new Map();
9424
- uploadUrlWaitQueue = new ga();
9424
+ uploadUrlWaitQueue = new Ea();
9425
9425
  constructor(e) {
9426
9426
  const r = e?.apiKey ?? process.env.STABLY_API_KEY, n = e?.projectId ?? process.env.STABLY_PROJECT_ID, i = e?.source ?? process.env.STABLY_SOURCE, s = e?.cliVersion ?? process.env.STABLY_CLI_VERSION;
9427
9427
  if (!r) throw new Error("STABLY_API_KEY is required. Provide it via options or environment variable.");
@@ -9430,7 +9430,7 @@ class Cn {
9430
9430
  const a = Vr(e.sensitiveValues);
9431
9431
  this.sensitiveValues = [...a].sort((l, h) => h.length - l.length);
9432
9432
  }
9433
- this.wsClient = new Ts({ apiKey: r, cliVersion: s, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: c((a) => this.handleWebSocketError(a), "onError"), onMessage: c((a) => this.handleWebSocketMessage(a), "onMessage"), projectId: n, reconnectDelay: 2e3, source: i, url: _a });
9433
+ this.wsClient = new As({ apiKey: r, cliVersion: s, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: c((a) => this.handleWebSocketError(a), "onError"), onMessage: c((a) => this.handleWebSocketMessage(a), "onMessage"), projectId: n, reconnectDelay: 2e3, source: i, url: Ia });
9434
9434
  }
9435
9435
  handleUploadUrlsMessage(e) {
9436
9436
  const r = `${e.testId}-${e.attemptNumber}`;
@@ -9441,11 +9441,11 @@ class Cn {
9441
9441
  onBegin(e, r) {
9442
9442
  if (this.isListMode = process.argv.includes("--list"), this.isListMode || (r.allTests().length === 0 && process.exit(1), this.config = e, this.testSuiteRunId = this.getSuiteRunId(e), this.rootDir = e.rootDir, this.suite = r, this.skipSuiteReporting)) return;
9443
9443
  this.suiteData = this.extractSuiteInfo(e, r);
9444
- const i = ba({ notificationConfigs: this.notificationConfigs, suite: r });
9444
+ const i = Ca({ notificationConfigs: this.notificationConfigs, suite: r });
9445
9445
  this.filteredNotificationConfigs = i;
9446
- const s = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, totalShards: this.config?.shard?.total } : void 0, status: "running" };
9446
+ const s = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, shardIndex: Cn(this.config), totalShards: this.config?.shard?.total } : void 0, status: "running" };
9447
9447
  try {
9448
- const d = fileURLToPath$1(new URL("./create-suite.mjs", import.meta.url)), g = JSON.stringify({ apiBaseUrl: Aa, apiKey: this.apiKey, body: s, cliVersion: this.cliVersion, projectId: this.projectId, source: this.source, timeoutMs: bn }), A = spawnSync(process.execPath, [d], { encoding: "utf-8", input: g, stdio: ["pipe", "pipe", "pipe"], timeout: bn + 5e3 });
9448
+ const d = fileURLToPath$1(new URL("./create-suite.mjs", import.meta.url)), g = JSON.stringify({ apiBaseUrl: wa, apiKey: this.apiKey, body: s, cliVersion: this.cliVersion, projectId: this.projectId, source: this.source, timeoutMs: bn }), A = spawnSync(process.execPath, [d], { encoding: "utf-8", input: g, stdio: ["pipe", "pipe", "pipe"], timeout: bn + 5e3 });
9449
9449
  if (A.status === 2 && (console.error(it.bold(it.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)), A.status !== 0) {
9450
9450
  const C = A.stderr?.trim() || A.error?.message || "Unknown error";
9451
9451
  throw new Error(C);
@@ -9479,12 +9479,12 @@ class Cn {
9479
9479
  this.completedTestIds.add(e.id);
9480
9480
  const n = this.extractTestCaseInfo(e, r);
9481
9481
  this.testCases.push(n), this.testStepsMap.set(n.id, r);
9482
- const i = ma({ result: r, sensitiveValues: this.sensitiveValues }), s = [...r.attachments, { contentType: "text/plain", name: "source-code", path: e.location.file }], a = (async () => {
9482
+ const i = ga({ result: r, sensitiveValues: this.sensitiveValues }), s = [...r.attachments, { contentType: "text/plain", name: "source-code", path: e.location.file }], a = (async () => {
9483
9483
  const l = await this.extractAttachmentMetadata({ attachments: s, attemptNumber: n.attemptNumber, testId: n.id });
9484
9484
  let h, d;
9485
9485
  if (l.length > 0) {
9486
9486
  h = `${n.id}-${n.attemptNumber}`;
9487
- const { bufferedMessage: g, waitPromise: A } = this.uploadUrlWaitQueue.registerWait(h, Ra);
9487
+ const { bufferedMessage: g, waitPromise: A } = this.uploadUrlWaitQueue.registerWait(h, Ta);
9488
9488
  d = A, g && this.handleUploadUrlsMessage(g), this.pendingOperations.track(d);
9489
9489
  }
9490
9490
  try {
@@ -9511,11 +9511,11 @@ class Cn {
9511
9511
  this.pendingOperations.track(this.wsClient.sendEvent({ payload: { annotations: d.annotations.length > 0 ? d.annotations : void 0, attemptNumber: 1, browserName: A?.use?.defaultBrowserType, duration: 0, expectedStatus: d.expectedStatus, fullTitle: this.scrubSensitiveString(d.titlePath().join(" \u203A ")) ?? "", id: g, location: `${C}:${d.location.line}:${d.location.column}`, maxRetries: d.retries, outcome: "skipped", projectName: A?.name, retryCount: 0, startedAt: h, status: "skipped", suiteId: this.testSuiteRunId, tags: d.tags.length > 0 ? d.tags : void 0, testIdentifier: d.id, title: this.scrubSensitiveString(d.title) ?? d.title }, type: "test_end" }));
9512
9512
  }
9513
9513
  }
9514
- this.pendingOperations.track(this.wsClient.sendEvent({ payload: { duration: e.duration, notificationRequest: this.filteredNotificationConfigs ? { notificationConfigs: this.filteredNotificationConfigs, totalShards: this.config?.shard?.total } : void 0, status: e.status === "timedout" ? "timedOut" : e.status, suiteId: this.testSuiteRunId }, type: "suite_end" })), Ie$1("[Stably reporter] Waiting for pending tasks to finish...");
9514
+ this.pendingOperations.track(this.wsClient.sendEvent({ payload: { duration: e.duration, notificationRequest: this.filteredNotificationConfigs ? { notificationConfigs: this.filteredNotificationConfigs, shardIndex: Cn(this.config), totalShards: this.config?.shard?.total } : void 0, status: e.status === "timedout" ? "timedOut" : e.status, suiteId: this.testSuiteRunId }, type: "suite_end" })), Ie$1("[Stably reporter] Waiting for pending tasks to finish...");
9515
9515
  const r = Y();
9516
9516
  r.start("Waiting for tasks to finish...");
9517
9517
  try {
9518
- await this.pendingOperations.waitForCompletion(Ia);
9518
+ await this.pendingOperations.waitForCompletion(Sa);
9519
9519
  } catch (h) {
9520
9520
  const d = h instanceof Error ? h.message : String(h);
9521
9521
  console.warn(`[StablyAI reporter] Tasks timeout reached. Some operations may still be pending: ${d}`);
@@ -9527,7 +9527,7 @@ class Cn {
9527
9527
  const n = Y();
9528
9528
  n.start("Waiting for file uploads to finish...");
9529
9529
  try {
9530
- await this.pendingUploads.waitForCompletion(Sa);
9530
+ await this.pendingUploads.waitForCompletion(Ra);
9531
9531
  } catch (h) {
9532
9532
  const d = h instanceof Error ? h.message : String(h);
9533
9533
  console.warn(`[StablyAI reporter] Upload timeout reached. Some uploads may still be pending: ${d}`);
@@ -9556,8 +9556,8 @@ class Cn {
9556
9556
  return !e || !this.sensitiveValues?.length ? e : ot({ sensitiveValues: this.sensitiveValues, str: e });
9557
9557
  }
9558
9558
  extractSuiteInfo(e, r) {
9559
- const n = fa(), i = pa(), s = /* @__PURE__ */ new Date();
9560
- return { id: Yt(), projectSettings: Ca(e), startedAt: s, suiteId: this.testSuiteRunId, title: r.title || ya({ 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: e.shard?.total ?? 1, workers: e.workers, machineInfo: i, updatedAt: s };
9559
+ const n = ha(), i = ma(), s = /* @__PURE__ */ new Date();
9560
+ return { id: Yt(), projectSettings: va(e), startedAt: s, suiteId: this.testSuiteRunId, title: r.title || ba({ 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: e.shard?.total ?? 1, workers: e.workers, machineInfo: i, updatedAt: s };
9561
9561
  }
9562
9562
  extractTestCaseInfo(e, r) {
9563
9563
  const n = ir({ absolutePath: e.location.file, rootDir: this.rootDir }), i = e.parent.project(), s = i?.name, a = i?.use?.defaultBrowserType, l = this.testIdMap.get(e.id), h = l ?? Yt();
@@ -9594,7 +9594,7 @@ class Cn {
9594
9594
  return e.body ? Buffer.from(e.body) : e.path ? readFileSync$1(e.path) : void 0;
9595
9595
  }
9596
9596
  async scrubTraceFromFile({ attachmentPath: e, sensitiveValues: r, traceFd: n }) {
9597
- return n !== void 0 ? _s({ sensitiveValues: r, traceFd: n, tracePath: e }) : Es({ sensitiveValues: r, tracePath: e });
9597
+ return n !== void 0 ? Is({ sensitiveValues: r, traceFd: n, tracePath: e }) : _s({ sensitiveValues: r, tracePath: e });
9598
9598
  }
9599
9599
  handleWebSocketError(e) {
9600
9600
  e.code === Jr.AUTHENTICATION_FAILED && (console.error(it.bold(it.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);
@@ -9606,7 +9606,7 @@ class Cn {
9606
9606
  const i = n.map(async ({ artifactId: s, name: a, uploadUrl: l }) => {
9607
9607
  const h = `${r}-${e}-${s}`, d = this.attachmentFiles.get(h);
9608
9608
  if (d) try {
9609
- await Ea({ fileData: d, maxRetries: 3, requestTimeoutMs: Ta, uploadUrl: l }), this.attachmentFiles.delete(h);
9609
+ await _a({ fileData: d, maxRetries: 3, requestTimeoutMs: Aa, uploadUrl: l }), this.attachmentFiles.delete(h);
9610
9610
  } catch (g) {
9611
9611
  const A = g instanceof Error ? g.message : String(g);
9612
9612
  console.error(`[StablyAI reporter] Failed to upload ${a} after retries: ${A}`);
@@ -9615,10 +9615,10 @@ class Cn {
9615
9615
  await Promise.allSettled(i);
9616
9616
  }
9617
9617
  }
9618
- function va(t) {
9618
+ function Ua(t) {
9619
9619
  return ["@stablyai/playwright-test/reporter", t];
9620
9620
  }
9621
- c(va, "stablyReporter");
9621
+ c(Ua, "stablyReporter");
9622
9622
 
9623
- export { Cn as C, va as v };
9624
- //# sourceMappingURL=index-CzSSL_f7.mjs.map
9623
+ export { Ua as U, vn as v };
9624
+ //# sourceMappingURL=index-B5Tfm-dD.mjs.map