@stablyai/playwright-test 2.1.2 → 2.1.3-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ var path = require('node:path');
5
5
  var childProcess = require('node:child_process');
6
6
  var y = require('node:process');
7
7
  var require$$0$2 = require('child_process');
8
- var require$$0$1 = require('path');
8
+ var qe = require('path');
9
9
  var je = require('fs');
10
10
  var node_url = require('node:url');
11
11
  var node_os = require('node:os');
@@ -15,16 +15,16 @@ var require$$0 = require('stream');
15
15
  var node_util = require('node:util');
16
16
  var g = require('node:readline');
17
17
  require('node:stream');
18
- var Nn = require('util');
19
- var require$$0$5 = require('events');
18
+ var Mn = require('util');
19
+ var require$$0$4 = require('events');
20
20
  var require$$1$1 = require('https');
21
21
  var require$$2 = require('http');
22
22
  var require$$3 = require('net');
23
23
  var require$$4 = require('tls');
24
24
  var require$$1 = require('crypto');
25
25
  var require$$7 = require('url');
26
- var require$$0$3 = require('zlib');
27
- var require$$0$4 = require('buffer');
26
+ var require$$0$1 = require('zlib');
27
+ var require$$0$3 = require('buffer');
28
28
  var fr = require('os');
29
29
 
30
30
  function _interopNamespaceDefault(e) {
@@ -320,7 +320,7 @@ function requireWhich() {
320
320
  if (hasRequiredWhich) return which_1;
321
321
  hasRequiredWhich = 1;
322
322
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
323
- const path2 = require$$0$1;
323
+ const path2 = qe;
324
324
  const COLON = isWindows ? ";" : ":";
325
325
  const isexe = requireIsexe();
326
326
  const getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
@@ -433,7 +433,7 @@ var hasRequiredResolveCommand;
433
433
  function requireResolveCommand() {
434
434
  if (hasRequiredResolveCommand) return resolveCommand_1;
435
435
  hasRequiredResolveCommand = 1;
436
- const path2 = require$$0$1;
436
+ const path2 = qe;
437
437
  const which = requireWhich();
438
438
  const getPathKey = requirePathKey();
439
439
  function resolveCommandAttempt(parsed, withoutPathExt) {
@@ -550,7 +550,7 @@ var hasRequiredParse;
550
550
  function requireParse() {
551
551
  if (hasRequiredParse) return parse_1;
552
552
  hasRequiredParse = 1;
553
- const path2 = require$$0$1;
553
+ const path2 = qe;
554
554
  const resolveCommand = requireResolveCommand();
555
555
  const escape = require_escape();
556
556
  const readShebang = requireReadShebang();
@@ -2920,7 +2920,7 @@ var hasRequiredPermessageDeflate;
2920
2920
  function requirePermessageDeflate () {
2921
2921
  if (hasRequiredPermessageDeflate) return permessageDeflate;
2922
2922
  hasRequiredPermessageDeflate = 1;
2923
- const zlib = require$$0$3;
2923
+ const zlib = require$$0$1;
2924
2924
  const bufferUtil = requireBufferUtil();
2925
2925
  const Limiter = requireLimiter();
2926
2926
  const { kStatusCode } = requireConstants();
@@ -3306,7 +3306,7 @@ var hasRequiredValidation;
3306
3306
  function requireValidation () {
3307
3307
  if (hasRequiredValidation) return validation.exports;
3308
3308
  hasRequiredValidation = 1;
3309
- const { isUtf8 } = require$$0$4;
3309
+ const { isUtf8 } = require$$0$3;
3310
3310
  const { hasBlob } = requireConstants();
3311
3311
  const tokenChars = [
3312
3312
  0,
@@ -4979,7 +4979,7 @@ var hasRequiredWebsocket;
4979
4979
  function requireWebsocket () {
4980
4980
  if (hasRequiredWebsocket) return websocket;
4981
4981
  hasRequiredWebsocket = 1;
4982
- const EventEmitter = require$$0$5;
4982
+ const EventEmitter = require$$0$4;
4983
4983
  const https = require$$1$1;
4984
4984
  const http = require$$2;
4985
4985
  const net = require$$3;
@@ -6020,7 +6020,7 @@ var hasRequiredWebsocketServer;
6020
6020
  function requireWebsocketServer () {
6021
6021
  if (hasRequiredWebsocketServer) return websocketServer;
6022
6022
  hasRequiredWebsocketServer = 1;
6023
- const EventEmitter = require$$0$5;
6023
+ const EventEmitter = require$$0$4;
6024
6024
  const http = require$$2;
6025
6025
  const { Duplex } = require$$0;
6026
6026
  const { createHash } = require$$1;
@@ -6730,31 +6730,31 @@ function requirePRetry () {
6730
6730
  }
6731
6731
 
6732
6732
  var pRetryExports = requirePRetry();
6733
- var kn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
6733
+ var jn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
6734
6734
 
6735
- var Un = Object.defineProperty;
6736
- var a = (e, t) => Un(e, "name", { value: t, configurable: true });
6737
- const et = BigInt(2 ** 32 - 1), hr = BigInt(32);
6738
- function jn(e, t = false) {
6739
- return t ? { h: Number(e & et), l: Number(e >> hr & et) } : { h: Number(e >> hr & et) | 0, l: Number(e & et) | 0 };
6740
- }
6741
- a(jn, "fromBig");
6742
- function qn(e, t = false) {
6735
+ var vn = Object.defineProperty;
6736
+ var a = (e, t) => vn(e, "name", { value: t, configurable: true });
6737
+ const tt = BigInt(2 ** 32 - 1), hr = BigInt(32);
6738
+ function Wn(e, t = false) {
6739
+ return t ? { h: Number(e & tt), l: Number(e >> hr & tt) } : { h: Number(e >> hr & tt) | 0, l: Number(e & tt) | 0 };
6740
+ }
6741
+ a(Wn, "fromBig");
6742
+ function Kn(e, t = false) {
6743
6743
  const r = e.length;
6744
6744
  let n = new Uint32Array(r), i = new Uint32Array(r);
6745
6745
  for (let o = 0; o < r; o++) {
6746
- const { h: c, l } = jn(e[o], t);
6746
+ const { h: c, l } = Wn(e[o], t);
6747
6747
  [n[o], i[o]] = [c, l];
6748
6748
  }
6749
6749
  return [n, i];
6750
6750
  }
6751
- a(qn, "split");
6752
- const Wn = a((e, t, r) => e << r | t >>> 32 - r, "rotlSH"), Kn = a((e, t, r) => t << r | e >>> 32 - r, "rotlSL"), Vn = a((e, t, r) => t << r - 32 | e >>> 64 - r, "rotlBH"), Yn = a((e, t, r) => e << r - 32 | t >>> 64 - r, "rotlBL");
6751
+ a(Kn, "split");
6752
+ const Vn = a((e, t, r) => e << r | t >>> 32 - r, "rotlSH"), Yn = a((e, t, r) => t << r | e >>> 32 - r, "rotlSL"), zn = a((e, t, r) => t << r - 32 | e >>> 64 - r, "rotlBH"), Jn = a((e, t, r) => e << r - 32 | t >>> 64 - r, "rotlBL");
6753
6753
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
6754
- function zn(e) {
6754
+ function Qn(e) {
6755
6755
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
6756
6756
  }
6757
- a(zn, "isBytes");
6757
+ a(Qn, "isBytes");
6758
6758
  function dr(e, t = "") {
6759
6759
  if (!Number.isSafeInteger(e) || e < 0) {
6760
6760
  const r = t && `"${t}" `;
@@ -6763,10 +6763,10 @@ function dr(e, t = "") {
6763
6763
  }
6764
6764
  a(dr, "anumber");
6765
6765
  function _t(e, t, r = "") {
6766
- const n = zn(e), i = e?.length;
6766
+ const n = Qn(e), i = e?.length;
6767
6767
  if (!n || t !== void 0) {
6768
- const c = r && `"${r}" `, l = "", d = n ? `length=${i}` : `type=${typeof e}`;
6769
- throw new Error(c + "expected Uint8Array" + l + ", got " + d);
6768
+ const c = r && `"${r}" `, l = "", m = n ? `length=${i}` : `type=${typeof e}`;
6769
+ throw new Error(c + "expected Uint8Array" + l + ", got " + m);
6770
6770
  }
6771
6771
  return e;
6772
6772
  }
@@ -6776,66 +6776,66 @@ function pr(e, t = true) {
6776
6776
  if (t && e.finished) throw new Error("Hash#digest() has already been called");
6777
6777
  }
6778
6778
  a(pr, "aexists");
6779
- function Jn(e, t) {
6779
+ function Xn(e, t) {
6780
6780
  _t(e, void 0, "digestInto() output");
6781
6781
  const r = t.outputLen;
6782
6782
  if (e.length < r) throw new Error('"digestInto() output" expected to be of length >=' + r);
6783
6783
  }
6784
- a(Jn, "aoutput");
6785
- function Qn(e) {
6784
+ a(Xn, "aoutput");
6785
+ function Zn(e) {
6786
6786
  return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
6787
6787
  }
6788
- a(Qn, "u32");
6788
+ a(Zn, "u32");
6789
6789
  function mr(...e) {
6790
6790
  for (let t = 0; t < e.length; t++) e[t].fill(0);
6791
6791
  }
6792
6792
  a(mr, "clean");
6793
- const Xn = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
6794
- function Zn(e) {
6793
+ const ei = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
6794
+ function ti(e) {
6795
6795
  return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
6796
6796
  }
6797
- a(Zn, "byteSwap");
6798
- function ei(e) {
6799
- for (let t = 0; t < e.length; t++) e[t] = Zn(e[t]);
6797
+ a(ti, "byteSwap");
6798
+ function ri(e) {
6799
+ for (let t = 0; t < e.length; t++) e[t] = ti(e[t]);
6800
6800
  return e;
6801
6801
  }
6802
- a(ei, "byteSwap32");
6803
- const Er = Xn ? (e) => e : ei;
6804
- function ti(e, t = {}) {
6802
+ a(ri, "byteSwap32");
6803
+ const Er = ei ? (e) => e : ri;
6804
+ function ni(e, t = {}) {
6805
6805
  const r = a((i, o) => e(o).update(i).digest(), "hashC"), n = e(void 0);
6806
6806
  return r.outputLen = n.outputLen, r.blockLen = n.blockLen, r.create = (i) => e(i), Object.assign(r, t), Object.freeze(r);
6807
6807
  }
6808
- a(ti, "createHasher");
6809
- const ri = a((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), ni = BigInt(0), We = BigInt(1), ii = BigInt(2), oi = BigInt(7), si = BigInt(256), ai = BigInt(113), _r = [], gr = [], Ir = [];
6810
- for (let e = 0, t = We, r = 1, n = 0; e < 24; e++) {
6808
+ a(ni, "createHasher");
6809
+ const ii = a((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), oi = BigInt(0), Ke = BigInt(1), si = BigInt(2), ai = BigInt(7), ci = BigInt(256), ui = BigInt(113), _r = [], gr = [], Ir = [];
6810
+ for (let e = 0, t = Ke, r = 1, n = 0; e < 24; e++) {
6811
6811
  [r, n] = [n, (2 * r + 3 * n) % 5], _r.push(2 * (5 * n + r)), gr.push((e + 1) * (e + 2) / 2 % 64);
6812
- let i = ni;
6813
- for (let o = 0; o < 7; o++) t = (t << We ^ (t >> oi) * ai) % si, t & ii && (i ^= We << (We << BigInt(o)) - We);
6812
+ let i = oi;
6813
+ for (let o = 0; o < 7; o++) t = (t << Ke ^ (t >> ai) * ui) % ci, t & si && (i ^= Ke << (Ke << BigInt(o)) - Ke);
6814
6814
  Ir.push(i);
6815
6815
  }
6816
- const Sr = qn(Ir, true), ci = Sr[0], ui = Sr[1], Rr = a((e, t, r) => r > 32 ? Vn(e, t, r) : Wn(e, t, r), "rotlH"), Tr = a((e, t, r) => r > 32 ? Yn(e, t, r) : Kn(e, t, r), "rotlL");
6817
- function li(e, t = 24) {
6816
+ const Sr = Kn(Ir, true), li = Sr[0], fi = Sr[1], Rr = a((e, t, r) => r > 32 ? zn(e, t, r) : Vn(e, t, r), "rotlH"), Tr = a((e, t, r) => r > 32 ? Jn(e, t, r) : Yn(e, t, r), "rotlL");
6817
+ function hi(e, t = 24) {
6818
6818
  const r = new Uint32Array(10);
6819
6819
  for (let n = 24 - t; n < 24; n++) {
6820
6820
  for (let c = 0; c < 10; c++) r[c] = e[c] ^ e[c + 10] ^ e[c + 20] ^ e[c + 30] ^ e[c + 40];
6821
6821
  for (let c = 0; c < 10; c += 2) {
6822
- const l = (c + 8) % 10, d = (c + 2) % 10, _ = r[d], p = r[d + 1], w = Rr(_, p, 1) ^ r[l], C = Tr(_, p, 1) ^ r[l + 1];
6823
- for (let U = 0; U < 50; U += 10) e[c + U] ^= w, e[c + U + 1] ^= C;
6822
+ const l = (c + 8) % 10, m = (c + 2) % 10, R = r[m], h = r[m + 1], T = Rr(R, h, 1) ^ r[l], C = Tr(R, h, 1) ^ r[l + 1];
6823
+ for (let v = 0; v < 50; v += 10) e[c + v] ^= T, e[c + v + 1] ^= C;
6824
6824
  }
6825
6825
  let i = e[2], o = e[3];
6826
6826
  for (let c = 0; c < 24; c++) {
6827
- const l = gr[c], d = Rr(i, o, l), _ = Tr(i, o, l), p = _r[c];
6828
- i = e[p], o = e[p + 1], e[p] = d, e[p + 1] = _;
6827
+ const l = gr[c], m = Rr(i, o, l), R = Tr(i, o, l), h = _r[c];
6828
+ i = e[h], o = e[h + 1], e[h] = m, e[h + 1] = R;
6829
6829
  }
6830
6830
  for (let c = 0; c < 50; c += 10) {
6831
6831
  for (let l = 0; l < 10; l++) r[l] = e[c + l];
6832
6832
  for (let l = 0; l < 10; l++) e[c + l] ^= ~r[(l + 2) % 10] & r[(l + 4) % 10];
6833
6833
  }
6834
- e[0] ^= ci[n], e[1] ^= ui[n];
6834
+ e[0] ^= li[n], e[1] ^= fi[n];
6835
6835
  }
6836
6836
  mr(r);
6837
6837
  }
6838
- a(li, "keccakP");
6838
+ a(hi, "keccakP");
6839
6839
  class nr {
6840
6840
  static {
6841
6841
  a(this, "Keccak");
@@ -6853,13 +6853,13 @@ class nr {
6853
6853
  rounds;
6854
6854
  constructor(t, r, n, i = false, o = 24) {
6855
6855
  if (this.blockLen = t, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds = o, dr(n, "outputLen"), !(0 < t && t < 200)) throw new Error("only keccak-f1600 function is supported");
6856
- this.state = new Uint8Array(200), this.state32 = Qn(this.state);
6856
+ this.state = new Uint8Array(200), this.state32 = Zn(this.state);
6857
6857
  }
6858
6858
  clone() {
6859
6859
  return this._cloneInto();
6860
6860
  }
6861
6861
  keccak() {
6862
- Er(this.state32), li(this.state32, this.rounds), Er(this.state32), this.posOut = 0, this.pos = 0;
6862
+ Er(this.state32), hi(this.state32, this.rounds), Er(this.state32), this.posOut = 0, this.pos = 0;
6863
6863
  }
6864
6864
  update(t) {
6865
6865
  pr(this), _t(t);
@@ -6895,7 +6895,7 @@ class nr {
6895
6895
  return dr(t), this.xofInto(new Uint8Array(t));
6896
6896
  }
6897
6897
  digestInto(t) {
6898
- if (Jn(t, this), this.finished) throw new Error("digest() was already called");
6898
+ if (Xn(t, this), this.finished) throw new Error("digest() was already called");
6899
6899
  return this.writeInto(t), this.destroy(), t;
6900
6900
  }
6901
6901
  digest() {
@@ -6909,331 +6909,331 @@ class nr {
6909
6909
  return t ||= new nr(r, n, i, c, o), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = o, t.suffix = n, t.outputLen = i, t.enableXOF = c, t.destroyed = this.destroyed, t;
6910
6910
  }
6911
6911
  }
6912
- const fi = a((e, t, r, n = {}) => ti(() => new nr(t, e, r), n), "genKeccak"), hi = fi(6, 72, 64, ri(10));
6913
- var di = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, gt = Math.ceil, ce = Math.floor, ie = "[BigNumber Error] ", wr = ie + "Number primitive has more than 15 significant digits: ", de = 1e14, G = 14, It = 9007199254740991, St = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ue = 1e7, ee = 1e9;
6914
- function Ar(e) {
6915
- var t, r, n, i = A.prototype = { constructor: A, toString: null, valueOf: null }, o = new A(1), c = 20, l = 4, d = -7, _ = 21, p = -1e7, w = 1e7, C = false, U = 1, D = 0, M = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, b = "0123456789abcdefghijklmnopqrstuvwxyz", O = true;
6916
- function A(s, u) {
6917
- var f, g, m, I, T, h, E, S, R = this;
6918
- if (!(R instanceof A)) return new A(s, u);
6912
+ const di = a((e, t, r, n = {}) => ni(() => new nr(t, e, r), n), "genKeccak"), pi = di(6, 72, 64, ii(10));
6913
+ var mi = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, gt = Math.ceil, ce = Math.floor, ie = "[BigNumber Error] ", wr = ie + "Number primitive has more than 15 significant digits: ", de = 1e14, G = 14, It = 9007199254740991, St = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], ve = 1e7, ee = 1e9;
6914
+ function yr(e) {
6915
+ var t, r, n, i = y.prototype = { constructor: y, toString: null, valueOf: null }, o = new y(1), c = 20, l = 4, m = -7, R = 21, h = -1e7, T = 1e7, C = false, v = 1, D = 0, M = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, b = "0123456789abcdefghijklmnopqrstuvwxyz", O = true;
6916
+ function y(s, u) {
6917
+ var f, _, p, g, w, d, E, I, S = this;
6918
+ if (!(S instanceof y)) return new y(s, u);
6919
6919
  if (u == null) {
6920
6920
  if (s && s._isBigNumber === true) {
6921
- R.s = s.s, !s.c || s.e > w ? R.c = R.e = null : s.e < p ? R.c = [R.e = 0] : (R.e = s.e, R.c = s.c.slice());
6921
+ S.s = s.s, !s.c || s.e > T ? S.c = S.e = null : s.e < h ? S.c = [S.e = 0] : (S.e = s.e, S.c = s.c.slice());
6922
6922
  return;
6923
6923
  }
6924
- if ((h = typeof s == "number") && s * 0 == 0) {
6925
- if (R.s = 1 / s < 0 ? (s = -s, -1) : 1, s === ~~s) {
6926
- for (I = 0, T = s; T >= 10; T /= 10, I++) ;
6927
- I > w ? R.c = R.e = null : (R.e = I, R.c = [s]);
6924
+ if ((d = typeof s == "number") && s * 0 == 0) {
6925
+ if (S.s = 1 / s < 0 ? (s = -s, -1) : 1, s === ~~s) {
6926
+ for (g = 0, w = s; w >= 10; w /= 10, g++) ;
6927
+ g > T ? S.c = S.e = null : (S.e = g, S.c = [s]);
6928
6928
  return;
6929
6929
  }
6930
- S = String(s);
6930
+ I = String(s);
6931
6931
  } else {
6932
- if (!di.test(S = String(s))) return n(R, S, h);
6933
- R.s = S.charCodeAt(0) == 45 ? (S = S.slice(1), -1) : 1;
6932
+ if (!mi.test(I = String(s))) return n(S, I, d);
6933
+ S.s = I.charCodeAt(0) == 45 ? (I = I.slice(1), -1) : 1;
6934
6934
  }
6935
- (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);
6935
+ (g = I.indexOf(".")) > -1 && (I = I.replace(".", "")), (w = I.search(/e/i)) > 0 ? (g < 0 && (g = w), g += +I.slice(w + 1), I = I.substring(0, w)) : g < 0 && (g = I.length);
6936
6936
  } else {
6937
- if (z(u, 2, b.length, "Base"), u == 10 && O) return R = new A(s), H(R, c + R.e + 1, l);
6938
- if (S = String(s), h = typeof s == "number") {
6939
- if (s * 0 != 0) return n(R, S, h, u);
6940
- if (R.s = 1 / s < 0 ? (S = S.slice(1), -1) : 1, A.DEBUG && S.replace(/^0\.0*|\./, "").length > 15) throw Error(wr + s);
6941
- } else R.s = S.charCodeAt(0) === 45 ? (S = S.slice(1), -1) : 1;
6942
- for (f = b.slice(0, u), I = T = 0, E = S.length; T < E; T++) if (f.indexOf(g = S.charAt(T)) < 0) {
6943
- if (g == ".") {
6944
- if (T > I) {
6945
- I = E;
6937
+ if (z(u, 2, b.length, "Base"), u == 10 && O) return S = new y(s), H(S, c + S.e + 1, l);
6938
+ if (I = String(s), d = typeof s == "number") {
6939
+ if (s * 0 != 0) return n(S, I, d, u);
6940
+ if (S.s = 1 / s < 0 ? (I = I.slice(1), -1) : 1, y.DEBUG && I.replace(/^0\.0*|\./, "").length > 15) throw Error(wr + s);
6941
+ } else S.s = I.charCodeAt(0) === 45 ? (I = I.slice(1), -1) : 1;
6942
+ for (f = b.slice(0, u), g = w = 0, E = I.length; w < E; w++) if (f.indexOf(_ = I.charAt(w)) < 0) {
6943
+ if (_ == ".") {
6944
+ if (w > g) {
6945
+ g = E;
6946
6946
  continue;
6947
6947
  }
6948
- } else if (!m && (S == S.toUpperCase() && (S = S.toLowerCase()) || S == S.toLowerCase() && (S = S.toUpperCase()))) {
6949
- m = true, T = -1, I = 0;
6948
+ } else if (!p && (I == I.toUpperCase() && (I = I.toLowerCase()) || I == I.toLowerCase() && (I = I.toUpperCase()))) {
6949
+ p = true, w = -1, g = 0;
6950
6950
  continue;
6951
6951
  }
6952
- return n(R, String(s), h, u);
6952
+ return n(S, String(s), d, u);
6953
6953
  }
6954
- h = false, S = r(S, u, 10, R.s), (I = S.indexOf(".")) > -1 ? S = S.replace(".", "") : I = S.length;
6955
- }
6956
- for (T = 0; S.charCodeAt(T) === 48; T++) ;
6957
- for (E = S.length; S.charCodeAt(--E) === 48; ) ;
6958
- if (S = S.slice(T, ++E)) {
6959
- if (E -= T, h && A.DEBUG && E > 15 && (s > It || s !== ce(s))) throw Error(wr + R.s * s);
6960
- if ((I = I - T - 1) > w) R.c = R.e = null;
6961
- else if (I < p) R.c = [R.e = 0];
6954
+ d = false, I = r(I, u, 10, S.s), (g = I.indexOf(".")) > -1 ? I = I.replace(".", "") : g = I.length;
6955
+ }
6956
+ for (w = 0; I.charCodeAt(w) === 48; w++) ;
6957
+ for (E = I.length; I.charCodeAt(--E) === 48; ) ;
6958
+ if (I = I.slice(w, ++E)) {
6959
+ if (E -= w, d && y.DEBUG && E > 15 && (s > It || s !== ce(s))) throw Error(wr + S.s * s);
6960
+ if ((g = g - w - 1) > T) S.c = S.e = null;
6961
+ else if (g < h) S.c = [S.e = 0];
6962
6962
  else {
6963
- if (R.e = I, R.c = [], T = (I + 1) % G, I < 0 && (T += G), T < E) {
6964
- for (T && R.c.push(+S.slice(0, T)), E -= G; T < E; ) R.c.push(+S.slice(T, T += G));
6965
- T = G - (S = S.slice(T)).length;
6966
- } else T -= E;
6967
- for (; T--; S += "0") ;
6968
- R.c.push(+S);
6963
+ if (S.e = g, S.c = [], w = (g + 1) % G, g < 0 && (w += G), w < E) {
6964
+ for (w && S.c.push(+I.slice(0, w)), E -= G; w < E; ) S.c.push(+I.slice(w, w += G));
6965
+ w = G - (I = I.slice(w)).length;
6966
+ } else w -= E;
6967
+ for (; w--; I += "0") ;
6968
+ S.c.push(+I);
6969
6969
  }
6970
- } else R.c = [R.e = 0];
6970
+ } else S.c = [S.e = 0];
6971
6971
  }
6972
- a(A, "BigNumber2"), A.clone = Ar, A.ROUND_UP = 0, A.ROUND_DOWN = 1, A.ROUND_CEIL = 2, A.ROUND_FLOOR = 3, A.ROUND_HALF_UP = 4, A.ROUND_HALF_DOWN = 5, A.ROUND_HALF_EVEN = 6, A.ROUND_HALF_CEIL = 7, A.ROUND_HALF_FLOOR = 8, A.EUCLID = 9, A.config = A.set = function(s) {
6972
+ a(y, "BigNumber2"), y.clone = yr, y.ROUND_UP = 0, y.ROUND_DOWN = 1, y.ROUND_CEIL = 2, y.ROUND_FLOOR = 3, y.ROUND_HALF_UP = 4, y.ROUND_HALF_DOWN = 5, y.ROUND_HALF_EVEN = 6, y.ROUND_HALF_CEIL = 7, y.ROUND_HALF_FLOOR = 8, y.EUCLID = 9, y.config = y.set = function(s) {
6973
6973
  var u, f;
6974
6974
  if (s != null) if (typeof s == "object") {
6975
- if (s.hasOwnProperty(u = "DECIMAL_PLACES") && (f = s[u], z(f, 0, ee, u), c = f), s.hasOwnProperty(u = "ROUNDING_MODE") && (f = s[u], z(f, 0, 8, u), l = f), s.hasOwnProperty(u = "EXPONENTIAL_AT") && (f = s[u], f && f.pop ? (z(f[0], -ee, 0, u), z(f[1], 0, ee, u), d = f[0], _ = f[1]) : (z(f, -ee, ee, u), d = -(_ = f < 0 ? -f : f))), s.hasOwnProperty(u = "RANGE")) if (f = s[u], f && f.pop) z(f[0], -ee, -1, u), z(f[1], 1, ee, u), p = f[0], w = f[1];
6976
- else if (z(f, -ee, ee, u), f) p = -(w = f < 0 ? -f : f);
6975
+ if (s.hasOwnProperty(u = "DECIMAL_PLACES") && (f = s[u], z(f, 0, ee, u), c = f), s.hasOwnProperty(u = "ROUNDING_MODE") && (f = s[u], z(f, 0, 8, u), l = f), s.hasOwnProperty(u = "EXPONENTIAL_AT") && (f = s[u], f && f.pop ? (z(f[0], -ee, 0, u), z(f[1], 0, ee, u), m = f[0], R = f[1]) : (z(f, -ee, ee, u), m = -(R = f < 0 ? -f : f))), s.hasOwnProperty(u = "RANGE")) if (f = s[u], f && f.pop) z(f[0], -ee, -1, u), z(f[1], 1, ee, u), h = f[0], T = f[1];
6976
+ else if (z(f, -ee, ee, u), f) h = -(T = f < 0 ? -f : f);
6977
6977
  else throw Error(ie + u + " cannot be zero: " + f);
6978
6978
  if (s.hasOwnProperty(u = "CRYPTO")) if (f = s[u], f === !!f) if (f) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) C = f;
6979
6979
  else throw C = !f, Error(ie + "crypto unavailable");
6980
6980
  else C = f;
6981
6981
  else throw Error(ie + u + " not true or false: " + f);
6982
- if (s.hasOwnProperty(u = "MODULO_MODE") && (f = s[u], z(f, 0, 9, u), U = f), s.hasOwnProperty(u = "POW_PRECISION") && (f = s[u], z(f, 0, ee, u), D = f), s.hasOwnProperty(u = "FORMAT")) if (f = s[u], typeof f == "object") M = f;
6982
+ if (s.hasOwnProperty(u = "MODULO_MODE") && (f = s[u], z(f, 0, 9, u), v = f), s.hasOwnProperty(u = "POW_PRECISION") && (f = s[u], z(f, 0, ee, u), D = f), s.hasOwnProperty(u = "FORMAT")) if (f = s[u], typeof f == "object") M = f;
6983
6983
  else throw Error(ie + u + " not an object: " + f);
6984
6984
  if (s.hasOwnProperty(u = "ALPHABET")) if (f = s[u], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f)) O = f.slice(0, 10) == "0123456789", b = f;
6985
6985
  else throw Error(ie + u + " invalid: " + f);
6986
6986
  } else throw Error(ie + "Object expected: " + s);
6987
- return { DECIMAL_PLACES: c, ROUNDING_MODE: l, EXPONENTIAL_AT: [d, _], RANGE: [p, w], CRYPTO: C, MODULO_MODE: U, POW_PRECISION: D, FORMAT: M, ALPHABET: b };
6988
- }, A.isBigNumber = function(s) {
6987
+ return { DECIMAL_PLACES: c, ROUNDING_MODE: l, EXPONENTIAL_AT: [m, R], RANGE: [h, T], CRYPTO: C, MODULO_MODE: v, POW_PRECISION: D, FORMAT: M, ALPHABET: b };
6988
+ }, y.isBigNumber = function(s) {
6989
6989
  if (!s || s._isBigNumber !== true) return false;
6990
- if (!A.DEBUG) return true;
6991
- var u, f, g = s.c, m = s.e, I = s.s;
6992
- e: if ({}.toString.call(g) == "[object Array]") {
6993
- if ((I === 1 || I === -1) && m >= -ee && m <= ee && m === ce(m)) {
6994
- if (g[0] === 0) {
6995
- if (m === 0 && g.length === 1) return true;
6990
+ if (!y.DEBUG) return true;
6991
+ var u, f, _ = s.c, p = s.e, g = s.s;
6992
+ e: if ({}.toString.call(_) == "[object Array]") {
6993
+ if ((g === 1 || g === -1) && p >= -ee && p <= ee && p === ce(p)) {
6994
+ if (_[0] === 0) {
6995
+ if (p === 0 && _.length === 1) return true;
6996
6996
  break e;
6997
6997
  }
6998
- if (u = (m + 1) % G, u < 1 && (u += G), String(g[0]).length == u) {
6999
- for (u = 0; u < g.length; u++) if (f = g[u], f < 0 || f >= de || f !== ce(f)) break e;
6998
+ if (u = (p + 1) % G, u < 1 && (u += G), String(_[0]).length == u) {
6999
+ for (u = 0; u < _.length; u++) if (f = _[u], f < 0 || f >= de || f !== ce(f)) break e;
7000
7000
  if (f !== 0) return true;
7001
7001
  }
7002
7002
  }
7003
- } else if (g === null && m === null && (I === null || I === 1 || I === -1)) return true;
7003
+ } else if (_ === null && p === null && (g === null || g === 1 || g === -1)) return true;
7004
7004
  throw Error(ie + "Invalid BigNumber: " + s);
7005
- }, A.maximum = A.max = function() {
7005
+ }, y.maximum = y.max = function() {
7006
7006
  return x(arguments, -1);
7007
- }, A.minimum = A.min = function() {
7007
+ }, y.minimum = y.min = function() {
7008
7008
  return x(arguments, 1);
7009
- }, A.random = (function() {
7009
+ }, y.random = (function() {
7010
7010
  var s = 9007199254740992, u = Math.random() * s & 2097151 ? function() {
7011
7011
  return ce(Math.random() * s);
7012
7012
  } : function() {
7013
7013
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
7014
7014
  };
7015
7015
  return function(f) {
7016
- var g, m, I, T, h, E = 0, S = [], R = new A(o);
7017
- if (f == null ? f = c : z(f, 0, ee), T = gt(f / G), C) if (crypto.getRandomValues) {
7018
- for (g = crypto.getRandomValues(new Uint32Array(T *= 2)); E < T; ) h = g[E] * 131072 + (g[E + 1] >>> 11), h >= 9e15 ? (m = crypto.getRandomValues(new Uint32Array(2)), g[E] = m[0], g[E + 1] = m[1]) : (S.push(h % 1e14), E += 2);
7019
- E = T / 2;
7016
+ var _, p, g, w, d, E = 0, I = [], S = new y(o);
7017
+ if (f == null ? f = c : z(f, 0, ee), w = gt(f / G), C) if (crypto.getRandomValues) {
7018
+ for (_ = crypto.getRandomValues(new Uint32Array(w *= 2)); E < w; ) d = _[E] * 131072 + (_[E + 1] >>> 11), d >= 9e15 ? (p = crypto.getRandomValues(new Uint32Array(2)), _[E] = p[0], _[E + 1] = p[1]) : (I.push(d % 1e14), E += 2);
7019
+ E = w / 2;
7020
7020
  } else if (crypto.randomBytes) {
7021
- for (g = crypto.randomBytes(T *= 7); E < T; ) h = (g[E] & 31) * 281474976710656 + g[E + 1] * 1099511627776 + g[E + 2] * 4294967296 + g[E + 3] * 16777216 + (g[E + 4] << 16) + (g[E + 5] << 8) + g[E + 6], h >= 9e15 ? crypto.randomBytes(7).copy(g, E) : (S.push(h % 1e14), E += 7);
7022
- E = T / 7;
7021
+ for (_ = crypto.randomBytes(w *= 7); E < w; ) d = (_[E] & 31) * 281474976710656 + _[E + 1] * 1099511627776 + _[E + 2] * 4294967296 + _[E + 3] * 16777216 + (_[E + 4] << 16) + (_[E + 5] << 8) + _[E + 6], d >= 9e15 ? crypto.randomBytes(7).copy(_, E) : (I.push(d % 1e14), E += 7);
7022
+ E = w / 7;
7023
7023
  } else throw C = false, Error(ie + "crypto unavailable");
7024
- if (!C) for (; E < T; ) h = u(), h < 9e15 && (S[E++] = h % 1e14);
7025
- for (T = S[--E], f %= G, T && f && (h = St[G - f], S[E] = ce(T / h) * h); S[E] === 0; S.pop(), E--) ;
7026
- if (E < 0) S = [I = 0];
7024
+ if (!C) for (; E < w; ) d = u(), d < 9e15 && (I[E++] = d % 1e14);
7025
+ for (w = I[--E], f %= G, w && f && (d = St[G - f], I[E] = ce(w / d) * d); I[E] === 0; I.pop(), E--) ;
7026
+ if (E < 0) I = [g = 0];
7027
7027
  else {
7028
- for (I = -1; S[0] === 0; S.splice(0, 1), I -= G) ;
7029
- for (E = 1, h = S[0]; h >= 10; h /= 10, E++) ;
7030
- E < G && (I -= G - E);
7028
+ for (g = -1; I[0] === 0; I.splice(0, 1), g -= G) ;
7029
+ for (E = 1, d = I[0]; d >= 10; d /= 10, E++) ;
7030
+ E < G && (g -= G - E);
7031
7031
  }
7032
- return R.e = I, R.c = S, R;
7032
+ return S.e = g, S.c = I, S;
7033
7033
  };
7034
- })(), A.sum = function() {
7035
- for (var s = 1, u = arguments, f = new A(u[0]); s < u.length; ) f = f.plus(u[s++]);
7034
+ })(), y.sum = function() {
7035
+ for (var s = 1, u = arguments, f = new y(u[0]); s < u.length; ) f = f.plus(u[s++]);
7036
7036
  return f;
7037
7037
  }, r = (function() {
7038
7038
  var s = "0123456789";
7039
- function u(f, g, m, I) {
7040
- for (var T, h = [0], E, S = 0, R = f.length; S < R; ) {
7041
- for (E = h.length; E--; h[E] *= g) ;
7042
- for (h[0] += I.indexOf(f.charAt(S++)), T = 0; T < h.length; T++) h[T] > m - 1 && (h[T + 1] == null && (h[T + 1] = 0), h[T + 1] += h[T] / m | 0, h[T] %= m);
7039
+ function u(f, _, p, g) {
7040
+ for (var w, d = [0], E, I = 0, S = f.length; I < S; ) {
7041
+ for (E = d.length; E--; d[E] *= _) ;
7042
+ for (d[0] += g.indexOf(f.charAt(I++)), w = 0; w < d.length; w++) d[w] > p - 1 && (d[w + 1] == null && (d[w + 1] = 0), d[w + 1] += d[w] / p | 0, d[w] %= p);
7043
7043
  }
7044
- return h.reverse();
7044
+ return d.reverse();
7045
7045
  }
7046
- return a(u, "toBaseOut"), function(f, g, m, I, T) {
7047
- var h, E, S, R, y, P, B, $, j = f.indexOf("."), q = c, N = l;
7048
- for (j >= 0 && (R = D, D = 0, f = f.replace(".", ""), $ = new A(g), P = $.pow(f.length - j), D = R, $.c = u(Te(le(P.c), P.e, "0"), 10, m, s), $.e = $.c.length), B = u(f, g, m, T ? (h = b, s) : (h = s, b)), S = R = B.length; B[--R] == 0; B.pop()) ;
7049
- if (!B[0]) return h.charAt(0);
7050
- if (j < 0 ? --S : (P.c = B, P.e = S, P.s = I, P = t(P, $, q, N, m), B = P.c, y = P.r, S = P.e), E = S + q + 1, j = B[E], R = m / 2, y = y || E < 0 || B[E + 1] != null, y = N < 4 ? (j != null || y) && (N == 0 || N == (P.s < 0 ? 3 : 2)) : j > R || j == R && (N == 4 || y || N == 6 && B[E - 1] & 1 || N == (P.s < 0 ? 8 : 7)), E < 1 || !B[0]) f = y ? Te(h.charAt(1), -q, h.charAt(0)) : h.charAt(0);
7046
+ return a(u, "toBaseOut"), function(f, _, p, g, w) {
7047
+ var d, E, I, S, A, P, B, $, j = f.indexOf("."), q = c, N = l;
7048
+ for (j >= 0 && (S = D, D = 0, f = f.replace(".", ""), $ = new y(_), P = $.pow(f.length - j), D = S, $.c = u(Te(le(P.c), P.e, "0"), 10, p, s), $.e = $.c.length), B = u(f, _, p, w ? (d = b, s) : (d = s, b)), I = S = B.length; B[--S] == 0; B.pop()) ;
7049
+ if (!B[0]) return d.charAt(0);
7050
+ if (j < 0 ? --I : (P.c = B, P.e = I, P.s = g, P = t(P, $, q, N, p), B = P.c, A = P.r, I = P.e), E = I + q + 1, j = B[E], S = p / 2, A = A || E < 0 || B[E + 1] != null, A = N < 4 ? (j != null || A) && (N == 0 || N == (P.s < 0 ? 3 : 2)) : j > S || j == S && (N == 4 || A || N == 6 && B[E - 1] & 1 || N == (P.s < 0 ? 8 : 7)), E < 1 || !B[0]) f = A ? Te(d.charAt(1), -q, d.charAt(0)) : d.charAt(0);
7051
7051
  else {
7052
- if (B.length = E, y) for (--m; ++B[--E] > m; ) B[E] = 0, E || (++S, B = [1].concat(B));
7053
- for (R = B.length; !B[--R]; ) ;
7054
- for (j = 0, f = ""; j <= R; f += h.charAt(B[j++])) ;
7055
- f = Te(f, S, h.charAt(0));
7052
+ if (B.length = E, A) for (--p; ++B[--E] > p; ) B[E] = 0, E || (++I, B = [1].concat(B));
7053
+ for (S = B.length; !B[--S]; ) ;
7054
+ for (j = 0, f = ""; j <= S; f += d.charAt(B[j++])) ;
7055
+ f = Te(f, I, d.charAt(0));
7056
7056
  }
7057
7057
  return f;
7058
7058
  };
7059
7059
  })(), t = (function() {
7060
- function s(g, m, I) {
7061
- var T, h, E, S, R = 0, y = g.length, P = m % Ue, B = m / Ue | 0;
7062
- for (g = g.slice(); y--; ) E = g[y] % Ue, S = g[y] / Ue | 0, T = B * E + S * P, h = P * E + T % Ue * Ue + R, R = (h / I | 0) + (T / Ue | 0) + B * S, g[y] = h % I;
7063
- return R && (g = [R].concat(g)), g;
7060
+ function s(_, p, g) {
7061
+ var w, d, E, I, S = 0, A = _.length, P = p % ve, B = p / ve | 0;
7062
+ for (_ = _.slice(); A--; ) E = _[A] % ve, I = _[A] / ve | 0, w = B * E + I * P, d = P * E + w % ve * ve + S, S = (d / g | 0) + (w / ve | 0) + B * I, _[A] = d % g;
7063
+ return S && (_ = [S].concat(_)), _;
7064
7064
  }
7065
7065
  a(s, "multiply");
7066
- function u(g, m, I, T) {
7067
- var h, E;
7068
- if (I != T) E = I > T ? 1 : -1;
7069
- else for (h = E = 0; h < I; h++) if (g[h] != m[h]) {
7070
- E = g[h] > m[h] ? 1 : -1;
7066
+ function u(_, p, g, w) {
7067
+ var d, E;
7068
+ if (g != w) E = g > w ? 1 : -1;
7069
+ else for (d = E = 0; d < g; d++) if (_[d] != p[d]) {
7070
+ E = _[d] > p[d] ? 1 : -1;
7071
7071
  break;
7072
7072
  }
7073
7073
  return E;
7074
7074
  }
7075
7075
  a(u, "compare2");
7076
- function f(g, m, I, T) {
7077
- for (var h = 0; I--; ) g[I] -= h, h = g[I] < m[I] ? 1 : 0, g[I] = h * T + g[I] - m[I];
7078
- for (; !g[0] && g.length > 1; g.splice(0, 1)) ;
7079
- }
7080
- return a(f, "subtract"), function(g, m, I, T, h) {
7081
- var E, S, R, y, P, B, $, j, q, N, k, Y, fe, ye, be, re, he, X = g.s == m.s ? 1 : -1, Z = g.c, J = m.c;
7082
- if (!Z || !Z[0] || !J || !J[0]) return new A(!g.s || !m.s || (Z ? J && Z[0] == J[0] : !J) ? NaN : Z && Z[0] == 0 || !J ? X * 0 : X / 0);
7083
- for (j = new A(X), q = j.c = [], S = g.e - m.e, X = I + S + 1, h || (h = de, S = ue(g.e / G) - ue(m.e / G), X = X / G | 0), R = 0; J[R] == (Z[R] || 0); R++) ;
7084
- if (J[R] > (Z[R] || 0) && S--, X < 0) q.push(1), y = true;
7076
+ function f(_, p, g, w) {
7077
+ for (var d = 0; g--; ) _[g] -= d, d = _[g] < p[g] ? 1 : 0, _[g] = d * w + _[g] - p[g];
7078
+ for (; !_[0] && _.length > 1; _.splice(0, 1)) ;
7079
+ }
7080
+ return a(f, "subtract"), function(_, p, g, w, d) {
7081
+ var E, I, S, A, P, B, $, j, q, N, k, Y, fe, Ae, be, re, he, X = _.s == p.s ? 1 : -1, Z = _.c, J = p.c;
7082
+ if (!Z || !Z[0] || !J || !J[0]) return new y(!_.s || !p.s || (Z ? J && Z[0] == J[0] : !J) ? NaN : Z && Z[0] == 0 || !J ? X * 0 : X / 0);
7083
+ for (j = new y(X), q = j.c = [], I = _.e - p.e, X = g + I + 1, d || (d = de, I = ue(_.e / G) - ue(p.e / G), X = X / G | 0), S = 0; J[S] == (Z[S] || 0); S++) ;
7084
+ if (J[S] > (Z[S] || 0) && I--, X < 0) q.push(1), A = true;
7085
7085
  else {
7086
- for (ye = Z.length, re = J.length, R = 0, X += 2, P = ce(h / (J[0] + 1)), P > 1 && (J = s(J, P, h), Z = s(Z, P, h), re = J.length, ye = Z.length), fe = re, N = Z.slice(0, re), k = N.length; k < re; N[k++] = 0) ;
7087
- he = J.slice(), he = [0].concat(he), be = J[0], J[1] >= h / 2 && be++;
7086
+ for (Ae = Z.length, re = J.length, S = 0, X += 2, P = ce(d / (J[0] + 1)), P > 1 && (J = s(J, P, d), Z = s(Z, P, d), re = J.length, Ae = Z.length), fe = re, N = Z.slice(0, re), k = N.length; k < re; N[k++] = 0) ;
7087
+ he = J.slice(), he = [0].concat(he), be = J[0], J[1] >= d / 2 && be++;
7088
7088
  do {
7089
7089
  if (P = 0, E = u(J, N, re, k), E < 0) {
7090
- if (Y = N[0], re != k && (Y = Y * h + (N[1] || 0)), P = ce(Y / be), P > 1) for (P >= h && (P = h - 1), B = s(J, P, h), $ = B.length, k = N.length; u(B, N, $, k) == 1; ) P--, f(B, re < $ ? he : J, $, h), $ = B.length, E = 1;
7090
+ if (Y = N[0], re != k && (Y = Y * d + (N[1] || 0)), P = ce(Y / be), P > 1) for (P >= d && (P = d - 1), B = s(J, P, d), $ = B.length, k = N.length; u(B, N, $, k) == 1; ) P--, f(B, re < $ ? he : J, $, d), $ = B.length, E = 1;
7091
7091
  else P == 0 && (E = P = 1), B = J.slice(), $ = B.length;
7092
- if ($ < k && (B = [0].concat(B)), f(N, B, k, h), k = N.length, E == -1) for (; u(J, N, re, k) < 1; ) P++, f(N, re < k ? he : J, k, h), k = N.length;
7092
+ if ($ < k && (B = [0].concat(B)), f(N, B, k, d), k = N.length, E == -1) for (; u(J, N, re, k) < 1; ) P++, f(N, re < k ? he : J, k, d), k = N.length;
7093
7093
  } else E === 0 && (P++, N = [0]);
7094
- q[R++] = P, N[0] ? N[k++] = Z[fe] || 0 : (N = [Z[fe]], k = 1);
7095
- } while ((fe++ < ye || N[0] != null) && X--);
7096
- y = N[0] != null, q[0] || q.splice(0, 1);
7094
+ q[S++] = P, N[0] ? N[k++] = Z[fe] || 0 : (N = [Z[fe]], k = 1);
7095
+ } while ((fe++ < Ae || N[0] != null) && X--);
7096
+ A = N[0] != null, q[0] || q.splice(0, 1);
7097
7097
  }
7098
- if (h == de) {
7099
- for (R = 1, X = q[0]; X >= 10; X /= 10, R++) ;
7100
- H(j, I + (j.e = R + S * G - 1) + 1, T, y);
7101
- } else j.e = S, j.r = +y;
7098
+ if (d == de) {
7099
+ for (S = 1, X = q[0]; X >= 10; X /= 10, S++) ;
7100
+ H(j, g + (j.e = S + I * G - 1) + 1, w, A);
7101
+ } else j.e = I, j.r = +A;
7102
7102
  return j;
7103
7103
  };
7104
7104
  })();
7105
- function L(s, u, f, g) {
7106
- var m, I, T, h, E;
7105
+ function L(s, u, f, _) {
7106
+ var p, g, w, d, E;
7107
7107
  if (f == null ? f = l : z(f, 0, 8), !s.c) return s.toString();
7108
- if (m = s.c[0], T = s.e, u == null) E = le(s.c), E = g == 1 || g == 2 && (T <= d || T >= _) ? rt(E, T) : Te(E, T, "0");
7109
- else if (s = H(new A(s), u, f), I = s.e, E = le(s.c), h = E.length, g == 1 || g == 2 && (u <= I || I <= d)) {
7110
- for (; h < u; E += "0", h++) ;
7111
- E = rt(E, I);
7112
- } else if (u -= T + (g === 2 && I > T), E = Te(E, I, "0"), I + 1 > h) {
7108
+ if (p = s.c[0], w = s.e, u == null) E = le(s.c), E = _ == 1 || _ == 2 && (w <= m || w >= R) ? nt(E, w) : Te(E, w, "0");
7109
+ else if (s = H(new y(s), u, f), g = s.e, E = le(s.c), d = E.length, _ == 1 || _ == 2 && (u <= g || g <= m)) {
7110
+ for (; d < u; E += "0", d++) ;
7111
+ E = nt(E, g);
7112
+ } else if (u -= w + (_ === 2 && g > w), E = Te(E, g, "0"), g + 1 > d) {
7113
7113
  if (--u > 0) for (E += "."; u--; E += "0") ;
7114
- } else if (u += I - h, u > 0) for (I + 1 == h && (E += "."); u--; E += "0") ;
7115
- return s.s < 0 && m ? "-" + E : E;
7114
+ } else if (u += g - d, u > 0) for (g + 1 == d && (E += "."); u--; E += "0") ;
7115
+ return s.s < 0 && p ? "-" + E : E;
7116
7116
  }
7117
7117
  a(L, "format");
7118
7118
  function x(s, u) {
7119
- for (var f, g, m = 1, I = new A(s[0]); m < s.length; m++) g = new A(s[m]), (!g.s || (f = Me(I, g)) === u || f === 0 && I.s === u) && (I = g);
7120
- return I;
7119
+ for (var f, _, p = 1, g = new y(s[0]); p < s.length; p++) _ = new y(s[p]), (!_.s || (f = Me(g, _)) === u || f === 0 && g.s === u) && (g = _);
7120
+ return g;
7121
7121
  }
7122
7122
  a(x, "maxOrMin");
7123
- function v(s, u, f) {
7124
- for (var g = 1, m = u.length; !u[--m]; u.pop()) ;
7125
- for (m = u[0]; m >= 10; m /= 10, g++) ;
7126
- return (f = g + f * G - 1) > w ? s.c = s.e = null : f < p ? s.c = [s.e = 0] : (s.e = f, s.c = u), s;
7127
- }
7128
- a(v, "normalise"), n = /* @__PURE__ */ (function() {
7129
- var s = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, f = /^\.([^.]+)$/, g = /^-?(Infinity|NaN)$/, m = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
7130
- return function(I, T, h, E) {
7131
- var S, R = h ? T : T.replace(m, "");
7132
- if (g.test(R)) I.s = isNaN(R) ? null : R < 0 ? -1 : 1;
7123
+ function U(s, u, f) {
7124
+ for (var _ = 1, p = u.length; !u[--p]; u.pop()) ;
7125
+ for (p = u[0]; p >= 10; p /= 10, _++) ;
7126
+ return (f = _ + f * G - 1) > T ? s.c = s.e = null : f < h ? s.c = [s.e = 0] : (s.e = f, s.c = u), s;
7127
+ }
7128
+ a(U, "normalise"), n = /* @__PURE__ */ (function() {
7129
+ var s = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, f = /^\.([^.]+)$/, _ = /^-?(Infinity|NaN)$/, p = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
7130
+ return function(g, w, d, E) {
7131
+ var I, S = d ? w : w.replace(p, "");
7132
+ if (_.test(S)) g.s = isNaN(S) ? null : S < 0 ? -1 : 1;
7133
7133
  else {
7134
- if (!h && (R = R.replace(s, function(y, P, B) {
7135
- return S = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !E || E == S ? P : y;
7136
- }), E && (S = E, R = R.replace(u, "$1").replace(f, "0.$1")), T != R)) return new A(R, S);
7137
- if (A.DEBUG) throw Error(ie + "Not a" + (E ? " base " + E : "") + " number: " + T);
7138
- I.s = null;
7134
+ if (!d && (S = S.replace(s, function(A, P, B) {
7135
+ return I = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !E || E == I ? P : A;
7136
+ }), E && (I = E, S = S.replace(u, "$1").replace(f, "0.$1")), w != S)) return new y(S, I);
7137
+ if (y.DEBUG) throw Error(ie + "Not a" + (E ? " base " + E : "") + " number: " + w);
7138
+ g.s = null;
7139
7139
  }
7140
- I.c = I.e = null;
7140
+ g.c = g.e = null;
7141
7141
  };
7142
7142
  })();
7143
- function H(s, u, f, g) {
7144
- var m, I, T, h, E, S, R, y = s.c, P = St;
7145
- if (y) {
7143
+ function H(s, u, f, _) {
7144
+ var p, g, w, d, E, I, S, A = s.c, P = St;
7145
+ if (A) {
7146
7146
  e: {
7147
- for (m = 1, h = y[0]; h >= 10; h /= 10, m++) ;
7148
- if (I = u - m, I < 0) I += G, T = u, E = y[S = 0], R = ce(E / P[m - T - 1] % 10);
7149
- else if (S = gt((I + 1) / G), S >= y.length) if (g) {
7150
- for (; y.length <= S; y.push(0)) ;
7151
- E = R = 0, m = 1, I %= G, T = I - G + 1;
7147
+ for (p = 1, d = A[0]; d >= 10; d /= 10, p++) ;
7148
+ if (g = u - p, g < 0) g += G, w = u, E = A[I = 0], S = ce(E / P[p - w - 1] % 10);
7149
+ else if (I = gt((g + 1) / G), I >= A.length) if (_) {
7150
+ for (; A.length <= I; A.push(0)) ;
7151
+ E = S = 0, p = 1, g %= G, w = g - G + 1;
7152
7152
  } else break e;
7153
7153
  else {
7154
- for (E = h = y[S], m = 1; h >= 10; h /= 10, m++) ;
7155
- I %= G, T = I - G + m, R = T < 0 ? 0 : ce(E / P[m - T - 1] % 10);
7154
+ for (E = d = A[I], p = 1; d >= 10; d /= 10, p++) ;
7155
+ g %= G, w = g - G + p, S = w < 0 ? 0 : ce(E / P[p - w - 1] % 10);
7156
7156
  }
7157
- if (g = g || u < 0 || y[S + 1] != null || (T < 0 ? E : E % P[m - T - 1]), g = f < 4 ? (R || g) && (f == 0 || f == (s.s < 0 ? 3 : 2)) : R > 5 || R == 5 && (f == 4 || g || f == 6 && (I > 0 ? T > 0 ? E / P[m - T] : 0 : y[S - 1]) % 10 & 1 || f == (s.s < 0 ? 8 : 7)), u < 1 || !y[0]) return y.length = 0, g ? (u -= s.e + 1, y[0] = P[(G - u % G) % G], s.e = -u || 0) : y[0] = s.e = 0, s;
7158
- if (I == 0 ? (y.length = S, h = 1, S--) : (y.length = S + 1, h = P[G - I], y[S] = T > 0 ? ce(E / P[m - T] % P[T]) * h : 0), g) for (; ; ) if (S == 0) {
7159
- for (I = 1, T = y[0]; T >= 10; T /= 10, I++) ;
7160
- for (T = y[0] += h, h = 1; T >= 10; T /= 10, h++) ;
7161
- I != h && (s.e++, y[0] == de && (y[0] = 1));
7157
+ if (_ = _ || u < 0 || A[I + 1] != null || (w < 0 ? E : E % P[p - w - 1]), _ = f < 4 ? (S || _) && (f == 0 || f == (s.s < 0 ? 3 : 2)) : S > 5 || S == 5 && (f == 4 || _ || f == 6 && (g > 0 ? w > 0 ? E / P[p - w] : 0 : A[I - 1]) % 10 & 1 || f == (s.s < 0 ? 8 : 7)), u < 1 || !A[0]) return A.length = 0, _ ? (u -= s.e + 1, A[0] = P[(G - u % G) % G], s.e = -u || 0) : A[0] = s.e = 0, s;
7158
+ if (g == 0 ? (A.length = I, d = 1, I--) : (A.length = I + 1, d = P[G - g], A[I] = w > 0 ? ce(E / P[p - w] % P[w]) * d : 0), _) for (; ; ) if (I == 0) {
7159
+ for (g = 1, w = A[0]; w >= 10; w /= 10, g++) ;
7160
+ for (w = A[0] += d, d = 1; w >= 10; w /= 10, d++) ;
7161
+ g != d && (s.e++, A[0] == de && (A[0] = 1));
7162
7162
  break;
7163
7163
  } else {
7164
- if (y[S] += h, y[S] != de) break;
7165
- y[S--] = 0, h = 1;
7164
+ if (A[I] += d, A[I] != de) break;
7165
+ A[I--] = 0, d = 1;
7166
7166
  }
7167
- for (I = y.length; y[--I] === 0; y.pop()) ;
7167
+ for (g = A.length; A[--g] === 0; A.pop()) ;
7168
7168
  }
7169
- s.e > w ? s.c = s.e = null : s.e < p && (s.c = [s.e = 0]);
7169
+ s.e > T ? s.c = s.e = null : s.e < h && (s.c = [s.e = 0]);
7170
7170
  }
7171
7171
  return s;
7172
7172
  }
7173
7173
  a(H, "round");
7174
7174
  function F(s) {
7175
7175
  var u, f = s.e;
7176
- return f === null ? s.toString() : (u = le(s.c), u = f <= d || f >= _ ? rt(u, f) : Te(u, f, "0"), s.s < 0 ? "-" + u : u);
7176
+ return f === null ? s.toString() : (u = le(s.c), u = f <= m || f >= R ? nt(u, f) : Te(u, f, "0"), s.s < 0 ? "-" + u : u);
7177
7177
  }
7178
7178
  return a(F, "valueOf"), i.absoluteValue = i.abs = function() {
7179
- var s = new A(this);
7179
+ var s = new y(this);
7180
7180
  return s.s < 0 && (s.s = 1), s;
7181
7181
  }, i.comparedTo = function(s, u) {
7182
- return Me(this, new A(s, u));
7182
+ return Me(this, new y(s, u));
7183
7183
  }, i.decimalPlaces = i.dp = function(s, u) {
7184
- var f, g, m, I = this;
7185
- if (s != null) return z(s, 0, ee), u == null ? u = l : z(u, 0, 8), H(new A(I), s + I.e + 1, u);
7186
- if (!(f = I.c)) return null;
7187
- if (g = ((m = f.length - 1) - ue(this.e / G)) * G, m = f[m]) for (; m % 10 == 0; m /= 10, g--) ;
7188
- return g < 0 && (g = 0), g;
7184
+ var f, _, p, g = this;
7185
+ if (s != null) return z(s, 0, ee), u == null ? u = l : z(u, 0, 8), H(new y(g), s + g.e + 1, u);
7186
+ if (!(f = g.c)) return null;
7187
+ if (_ = ((p = f.length - 1) - ue(this.e / G)) * G, p = f[p]) for (; p % 10 == 0; p /= 10, _--) ;
7188
+ return _ < 0 && (_ = 0), _;
7189
7189
  }, i.dividedBy = i.div = function(s, u) {
7190
- return t(this, new A(s, u), c, l);
7190
+ return t(this, new y(s, u), c, l);
7191
7191
  }, i.dividedToIntegerBy = i.idiv = function(s, u) {
7192
- return t(this, new A(s, u), 0, 1);
7192
+ return t(this, new y(s, u), 0, 1);
7193
7193
  }, i.exponentiatedBy = i.pow = function(s, u) {
7194
- var f, g, m, I, T, h, E, S, R, y = this;
7195
- if (s = new A(s), s.c && !s.isInteger()) throw Error(ie + "Exponent not an integer: " + F(s));
7196
- if (u != null && (u = new A(u)), h = s.e > 14, !y.c || !y.c[0] || y.c[0] == 1 && !y.e && y.c.length == 1 || !s.c || !s.c[0]) return R = new A(Math.pow(+F(y), h ? s.s * (2 - tt(s)) : +F(s))), u ? R.mod(u) : R;
7194
+ var f, _, p, g, w, d, E, I, S, A = this;
7195
+ if (s = new y(s), s.c && !s.isInteger()) throw Error(ie + "Exponent not an integer: " + F(s));
7196
+ if (u != null && (u = new y(u)), d = s.e > 14, !A.c || !A.c[0] || A.c[0] == 1 && !A.e && A.c.length == 1 || !s.c || !s.c[0]) return S = new y(Math.pow(+F(A), d ? s.s * (2 - rt(s)) : +F(s))), u ? S.mod(u) : S;
7197
7197
  if (E = s.s < 0, u) {
7198
- if (u.c ? !u.c[0] : !u.s) return new A(NaN);
7199
- g = !E && y.isInteger() && u.isInteger(), g && (y = y.mod(u));
7198
+ if (u.c ? !u.c[0] : !u.s) return new y(NaN);
7199
+ _ = !E && A.isInteger() && u.isInteger(), _ && (A = A.mod(u));
7200
7200
  } else {
7201
- if (s.e > 9 && (y.e > 0 || y.e < -1 || (y.e == 0 ? y.c[0] > 1 || h && y.c[1] >= 24e7 : y.c[0] < 8e13 || h && y.c[0] <= 9999975e7))) return I = y.s < 0 && tt(s) ? -0 : 0, y.e > -1 && (I = 1 / I), new A(E ? 1 / I : I);
7202
- D && (I = gt(D / G + 2));
7201
+ if (s.e > 9 && (A.e > 0 || A.e < -1 || (A.e == 0 ? A.c[0] > 1 || d && A.c[1] >= 24e7 : A.c[0] < 8e13 || d && A.c[0] <= 9999975e7))) return g = A.s < 0 && rt(s) ? -0 : 0, A.e > -1 && (g = 1 / g), new y(E ? 1 / g : g);
7202
+ D && (g = gt(D / G + 2));
7203
7203
  }
7204
- for (h ? (f = new A(0.5), E && (s.s = 1), S = tt(s)) : (m = Math.abs(+F(s)), S = m % 2), R = new A(o); ; ) {
7205
- if (S) {
7206
- if (R = R.times(y), !R.c) break;
7207
- I ? R.c.length > I && (R.c.length = I) : g && (R = R.mod(u));
7204
+ for (d ? (f = new y(0.5), E && (s.s = 1), I = rt(s)) : (p = Math.abs(+F(s)), I = p % 2), S = new y(o); ; ) {
7205
+ if (I) {
7206
+ if (S = S.times(A), !S.c) break;
7207
+ g ? S.c.length > g && (S.c.length = g) : _ && (S = S.mod(u));
7208
7208
  }
7209
- if (m) {
7210
- if (m = ce(m / 2), m === 0) break;
7211
- S = m % 2;
7212
- } else if (s = s.times(f), H(s, s.e + 1, 1), s.e > 14) S = tt(s);
7209
+ if (p) {
7210
+ if (p = ce(p / 2), p === 0) break;
7211
+ I = p % 2;
7212
+ } else if (s = s.times(f), H(s, s.e + 1, 1), s.e > 14) I = rt(s);
7213
7213
  else {
7214
- if (m = +F(s), m === 0) break;
7215
- S = m % 2;
7214
+ if (p = +F(s), p === 0) break;
7215
+ I = p % 2;
7216
7216
  }
7217
- y = y.times(y), I ? y.c && y.c.length > I && (y.c.length = I) : g && (y = y.mod(u));
7217
+ A = A.times(A), g ? A.c && A.c.length > g && (A.c.length = g) : _ && (A = A.mod(u));
7218
7218
  }
7219
- return g ? R : (E && (R = o.div(R)), u ? R.mod(u) : I ? H(R, D, l, T) : R);
7219
+ return _ ? S : (E && (S = o.div(S)), u ? S.mod(u) : g ? H(S, D, l, w) : S);
7220
7220
  }, i.integerValue = function(s) {
7221
- var u = new A(this);
7221
+ var u = new y(this);
7222
7222
  return s == null ? s = l : z(s, 0, 8), H(u, u.e + 1, s);
7223
7223
  }, i.isEqualTo = i.eq = function(s, u) {
7224
- return Me(this, new A(s, u)) === 0;
7224
+ return Me(this, new y(s, u)) === 0;
7225
7225
  }, i.isFinite = function() {
7226
7226
  return !!this.c;
7227
7227
  }, i.isGreaterThan = i.gt = function(s, u) {
7228
- return Me(this, new A(s, u)) > 0;
7228
+ return Me(this, new y(s, u)) > 0;
7229
7229
  }, i.isGreaterThanOrEqualTo = i.gte = function(s, u) {
7230
- return (u = Me(this, new A(s, u))) === 1 || u === 0;
7230
+ return (u = Me(this, new y(s, u))) === 1 || u === 0;
7231
7231
  }, i.isInteger = function() {
7232
7232
  return !!this.c && ue(this.e / G) > this.c.length - 2;
7233
7233
  }, i.isLessThan = i.lt = function(s, u) {
7234
- return Me(this, new A(s, u)) < 0;
7234
+ return Me(this, new y(s, u)) < 0;
7235
7235
  }, i.isLessThanOrEqualTo = i.lte = function(s, u) {
7236
- return (u = Me(this, new A(s, u))) === -1 || u === 0;
7236
+ return (u = Me(this, new y(s, u))) === -1 || u === 0;
7237
7237
  }, i.isNaN = function() {
7238
7238
  return !this.s;
7239
7239
  }, i.isNegative = function() {
@@ -7243,84 +7243,84 @@ function Ar(e) {
7243
7243
  }, i.isZero = function() {
7244
7244
  return !!this.c && this.c[0] == 0;
7245
7245
  }, i.minus = function(s, u) {
7246
- var f, g, m, I, T = this, h = T.s;
7247
- if (s = new A(s, u), u = s.s, !h || !u) return new A(NaN);
7248
- if (h != u) return s.s = -u, T.plus(s);
7249
- var E = T.e / G, S = s.e / G, R = T.c, y = s.c;
7250
- if (!E || !S) {
7251
- if (!R || !y) return R ? (s.s = -u, s) : new A(y ? T : NaN);
7252
- if (!R[0] || !y[0]) return y[0] ? (s.s = -u, s) : new A(R[0] ? T : l == 3 ? -0 : 0);
7253
- }
7254
- if (E = ue(E), S = ue(S), R = R.slice(), h = E - S) {
7255
- for ((I = h < 0) ? (h = -h, m = R) : (S = E, m = y), m.reverse(), u = h; u--; m.push(0)) ;
7256
- m.reverse();
7257
- } else for (g = (I = (h = R.length) < (u = y.length)) ? h : u, h = u = 0; u < g; u++) if (R[u] != y[u]) {
7258
- I = R[u] < y[u];
7246
+ var f, _, p, g, w = this, d = w.s;
7247
+ if (s = new y(s, u), u = s.s, !d || !u) return new y(NaN);
7248
+ if (d != u) return s.s = -u, w.plus(s);
7249
+ var E = w.e / G, I = s.e / G, S = w.c, A = s.c;
7250
+ if (!E || !I) {
7251
+ if (!S || !A) return S ? (s.s = -u, s) : new y(A ? w : NaN);
7252
+ if (!S[0] || !A[0]) return A[0] ? (s.s = -u, s) : new y(S[0] ? w : l == 3 ? -0 : 0);
7253
+ }
7254
+ if (E = ue(E), I = ue(I), S = S.slice(), d = E - I) {
7255
+ for ((g = d < 0) ? (d = -d, p = S) : (I = E, p = A), p.reverse(), u = d; u--; p.push(0)) ;
7256
+ p.reverse();
7257
+ } else for (_ = (g = (d = S.length) < (u = A.length)) ? d : u, d = u = 0; u < _; u++) if (S[u] != A[u]) {
7258
+ g = S[u] < A[u];
7259
7259
  break;
7260
7260
  }
7261
- if (I && (m = R, R = y, y = m, s.s = -s.s), u = (g = y.length) - (f = R.length), u > 0) for (; u--; R[f++] = 0) ;
7262
- for (u = de - 1; g > h; ) {
7263
- if (R[--g] < y[g]) {
7264
- for (f = g; f && !R[--f]; R[f] = u) ;
7265
- --R[f], R[g] += de;
7261
+ if (g && (p = S, S = A, A = p, s.s = -s.s), u = (_ = A.length) - (f = S.length), u > 0) for (; u--; S[f++] = 0) ;
7262
+ for (u = de - 1; _ > d; ) {
7263
+ if (S[--_] < A[_]) {
7264
+ for (f = _; f && !S[--f]; S[f] = u) ;
7265
+ --S[f], S[_] += de;
7266
7266
  }
7267
- R[g] -= y[g];
7267
+ S[_] -= A[_];
7268
7268
  }
7269
- for (; R[0] == 0; R.splice(0, 1), --S) ;
7270
- return R[0] ? v(s, R, S) : (s.s = l == 3 ? -1 : 1, s.c = [s.e = 0], s);
7269
+ for (; S[0] == 0; S.splice(0, 1), --I) ;
7270
+ return S[0] ? U(s, S, I) : (s.s = l == 3 ? -1 : 1, s.c = [s.e = 0], s);
7271
7271
  }, i.modulo = i.mod = function(s, u) {
7272
- var f, g, m = this;
7273
- return s = new A(s, u), !m.c || !s.s || s.c && !s.c[0] ? new A(NaN) : !s.c || m.c && !m.c[0] ? new A(m) : (U == 9 ? (g = s.s, s.s = 1, f = t(m, s, 0, 3), s.s = g, f.s *= g) : f = t(m, s, 0, U), s = m.minus(f.times(s)), !s.c[0] && U == 1 && (s.s = m.s), s);
7272
+ var f, _, p = this;
7273
+ return s = new y(s, u), !p.c || !s.s || s.c && !s.c[0] ? new y(NaN) : !s.c || p.c && !p.c[0] ? new y(p) : (v == 9 ? (_ = s.s, s.s = 1, f = t(p, s, 0, 3), s.s = _, f.s *= _) : f = t(p, s, 0, v), s = p.minus(f.times(s)), !s.c[0] && v == 1 && (s.s = p.s), s);
7274
7274
  }, i.multipliedBy = i.times = function(s, u) {
7275
- var f, g, m, I, T, h, E, S, R, y, P, B, $, j, q, N = this, k = N.c, Y = (s = new A(s, u)).c;
7275
+ var f, _, p, g, w, d, E, I, S, A, P, B, $, j, q, N = this, k = N.c, Y = (s = new y(s, u)).c;
7276
7276
  if (!k || !Y || !k[0] || !Y[0]) return !N.s || !s.s || k && !k[0] && !Y || Y && !Y[0] && !k ? s.c = s.e = s.s = null : (s.s *= N.s, !k || !Y ? s.c = s.e = null : (s.c = [0], s.e = 0)), s;
7277
- for (g = ue(N.e / G) + ue(s.e / G), s.s *= N.s, E = k.length, y = Y.length, E < y && ($ = k, k = Y, Y = $, m = E, E = y, y = m), m = E + y, $ = []; m--; $.push(0)) ;
7278
- for (j = de, q = Ue, m = y; --m >= 0; ) {
7279
- for (f = 0, P = Y[m] % q, B = Y[m] / q | 0, T = E, I = m + T; I > m; ) S = k[--T] % q, R = k[T] / q | 0, h = B * S + R * P, S = P * S + h % q * q + $[I] + f, f = (S / j | 0) + (h / q | 0) + B * R, $[I--] = S % j;
7280
- $[I] = f;
7277
+ for (_ = ue(N.e / G) + ue(s.e / G), s.s *= N.s, E = k.length, A = Y.length, E < A && ($ = k, k = Y, Y = $, p = E, E = A, A = p), p = E + A, $ = []; p--; $.push(0)) ;
7278
+ for (j = de, q = ve, p = A; --p >= 0; ) {
7279
+ for (f = 0, P = Y[p] % q, B = Y[p] / q | 0, w = E, g = p + w; g > p; ) I = k[--w] % q, S = k[w] / q | 0, d = B * I + S * P, I = P * I + d % q * q + $[g] + f, f = (I / j | 0) + (d / q | 0) + B * S, $[g--] = I % j;
7280
+ $[g] = f;
7281
7281
  }
7282
- return f ? ++g : $.splice(0, 1), v(s, $, g);
7282
+ return f ? ++_ : $.splice(0, 1), U(s, $, _);
7283
7283
  }, i.negated = function() {
7284
- var s = new A(this);
7284
+ var s = new y(this);
7285
7285
  return s.s = -s.s || null, s;
7286
7286
  }, i.plus = function(s, u) {
7287
- var f, g = this, m = g.s;
7288
- if (s = new A(s, u), u = s.s, !m || !u) return new A(NaN);
7289
- if (m != u) return s.s = -u, g.minus(s);
7290
- var I = g.e / G, T = s.e / G, h = g.c, E = s.c;
7291
- if (!I || !T) {
7292
- if (!h || !E) return new A(m / 0);
7293
- if (!h[0] || !E[0]) return E[0] ? s : new A(h[0] ? g : m * 0);
7294
- }
7295
- if (I = ue(I), T = ue(T), h = h.slice(), m = I - T) {
7296
- for (m > 0 ? (T = I, f = E) : (m = -m, f = h), f.reverse(); m--; f.push(0)) ;
7287
+ var f, _ = this, p = _.s;
7288
+ if (s = new y(s, u), u = s.s, !p || !u) return new y(NaN);
7289
+ if (p != u) return s.s = -u, _.minus(s);
7290
+ var g = _.e / G, w = s.e / G, d = _.c, E = s.c;
7291
+ if (!g || !w) {
7292
+ if (!d || !E) return new y(p / 0);
7293
+ if (!d[0] || !E[0]) return E[0] ? s : new y(d[0] ? _ : p * 0);
7294
+ }
7295
+ if (g = ue(g), w = ue(w), d = d.slice(), p = g - w) {
7296
+ for (p > 0 ? (w = g, f = E) : (p = -p, f = d), f.reverse(); p--; f.push(0)) ;
7297
7297
  f.reverse();
7298
7298
  }
7299
- for (m = h.length, u = E.length, m - u < 0 && (f = E, E = h, h = f, u = m), m = 0; u; ) m = (h[--u] = h[u] + E[u] + m) / de | 0, h[u] = de === h[u] ? 0 : h[u] % de;
7300
- return m && (h = [m].concat(h), ++T), v(s, h, T);
7299
+ for (p = d.length, u = E.length, p - u < 0 && (f = E, E = d, d = f, u = p), p = 0; u; ) p = (d[--u] = d[u] + E[u] + p) / de | 0, d[u] = de === d[u] ? 0 : d[u] % de;
7300
+ return p && (d = [p].concat(d), ++w), U(s, d, w);
7301
7301
  }, i.precision = i.sd = function(s, u) {
7302
- var f, g, m, I = this;
7303
- if (s != null && s !== !!s) return z(s, 1, ee), u == null ? u = l : z(u, 0, 8), H(new A(I), s, u);
7304
- if (!(f = I.c)) return null;
7305
- if (m = f.length - 1, g = m * G + 1, m = f[m]) {
7306
- for (; m % 10 == 0; m /= 10, g--) ;
7307
- for (m = f[0]; m >= 10; m /= 10, g++) ;
7308
- }
7309
- return s && I.e + 1 > g && (g = I.e + 1), g;
7302
+ var f, _, p, g = this;
7303
+ if (s != null && s !== !!s) return z(s, 1, ee), u == null ? u = l : z(u, 0, 8), H(new y(g), s, u);
7304
+ if (!(f = g.c)) return null;
7305
+ if (p = f.length - 1, _ = p * G + 1, p = f[p]) {
7306
+ for (; p % 10 == 0; p /= 10, _--) ;
7307
+ for (p = f[0]; p >= 10; p /= 10, _++) ;
7308
+ }
7309
+ return s && g.e + 1 > _ && (_ = g.e + 1), _;
7310
7310
  }, i.shiftedBy = function(s) {
7311
7311
  return z(s, -It, It), this.times("1e" + s);
7312
7312
  }, i.squareRoot = i.sqrt = function() {
7313
- var s, u, f, g, m, I = this, T = I.c, h = I.s, E = I.e, S = c + 4, R = new A("0.5");
7314
- if (h !== 1 || !T || !T[0]) return new A(!h || h < 0 && (!T || T[0]) ? NaN : T ? I : 1 / 0);
7315
- if (h = Math.sqrt(+F(I)), h == 0 || h == 1 / 0 ? (u = le(T), (u.length + E) % 2 == 0 && (u += "0"), h = Math.sqrt(+u), E = ue((E + 1) / 2) - (E < 0 || E % 2), h == 1 / 0 ? u = "5e" + E : (u = h.toExponential(), u = u.slice(0, u.indexOf("e") + 1) + E), f = new A(u)) : f = new A(h + ""), f.c[0]) {
7316
- for (E = f.e, h = E + S, h < 3 && (h = 0); ; ) if (m = f, f = R.times(m.plus(t(I, m, S, 1))), le(m.c).slice(0, h) === (u = le(f.c)).slice(0, h)) if (f.e < E && --h, u = u.slice(h - 3, h + 1), u == "9999" || !g && u == "4999") {
7317
- if (!g && (H(m, m.e + c + 2, 0), m.times(m).eq(I))) {
7318
- f = m;
7313
+ var s, u, f, _, p, g = this, w = g.c, d = g.s, E = g.e, I = c + 4, S = new y("0.5");
7314
+ if (d !== 1 || !w || !w[0]) return new y(!d || d < 0 && (!w || w[0]) ? NaN : w ? g : 1 / 0);
7315
+ if (d = Math.sqrt(+F(g)), d == 0 || d == 1 / 0 ? (u = le(w), (u.length + E) % 2 == 0 && (u += "0"), d = Math.sqrt(+u), E = ue((E + 1) / 2) - (E < 0 || E % 2), d == 1 / 0 ? u = "5e" + E : (u = d.toExponential(), u = u.slice(0, u.indexOf("e") + 1) + E), f = new y(u)) : f = new y(d + ""), f.c[0]) {
7316
+ for (E = f.e, d = E + I, d < 3 && (d = 0); ; ) if (p = f, f = S.times(p.plus(t(g, p, I, 1))), le(p.c).slice(0, d) === (u = le(f.c)).slice(0, d)) if (f.e < E && --d, u = u.slice(d - 3, d + 1), u == "9999" || !_ && u == "4999") {
7317
+ if (!_ && (H(p, p.e + c + 2, 0), p.times(p).eq(g))) {
7318
+ f = p;
7319
7319
  break;
7320
7320
  }
7321
- S += 4, h += 4, g = 1;
7321
+ I += 4, d += 4, _ = 1;
7322
7322
  } else {
7323
- (!+u || !+u.slice(1) && u.charAt(0) == "5") && (H(f, f.e + c + 2, 1), s = !f.times(f).eq(I));
7323
+ (!+u || !+u.slice(1) && u.charAt(0) == "5") && (H(f, f.e + c + 2, 1), s = !f.times(f).eq(g));
7324
7324
  break;
7325
7325
  }
7326
7326
  }
@@ -7330,36 +7330,36 @@ function Ar(e) {
7330
7330
  }, i.toFixed = function(s, u) {
7331
7331
  return s != null && (z(s, 0, ee), s = s + this.e + 1), L(this, s, u);
7332
7332
  }, i.toFormat = function(s, u, f) {
7333
- var g, m = this;
7333
+ var _, p = this;
7334
7334
  if (f == null) s != null && u && typeof u == "object" ? (f = u, u = null) : s && typeof s == "object" ? (f = s, s = u = null) : f = M;
7335
7335
  else if (typeof f != "object") throw Error(ie + "Argument not an object: " + f);
7336
- if (g = m.toFixed(s, u), m.c) {
7337
- var I, T = g.split("."), h = +f.groupSize, E = +f.secondaryGroupSize, S = f.groupSeparator || "", R = T[0], y = T[1], P = m.s < 0, B = P ? R.slice(1) : R, $ = B.length;
7338
- if (E && (I = h, h = E, E = I, $ -= I), h > 0 && $ > 0) {
7339
- for (I = $ % h || h, R = B.substr(0, I); I < $; I += h) R += S + B.substr(I, h);
7340
- E > 0 && (R += S + B.slice(I)), P && (R = "-" + R);
7336
+ if (_ = p.toFixed(s, u), p.c) {
7337
+ var g, w = _.split("."), d = +f.groupSize, E = +f.secondaryGroupSize, I = f.groupSeparator || "", S = w[0], A = w[1], P = p.s < 0, B = P ? S.slice(1) : S, $ = B.length;
7338
+ if (E && (g = d, d = E, E = g, $ -= g), d > 0 && $ > 0) {
7339
+ for (g = $ % d || d, S = B.substr(0, g); g < $; g += d) S += I + B.substr(g, d);
7340
+ E > 0 && (S += I + B.slice(g)), P && (S = "-" + S);
7341
7341
  }
7342
- g = y ? R + (f.decimalSeparator || "") + ((E = +f.fractionGroupSize) ? y.replace(new RegExp("\\d{" + E + "}\\B", "g"), "$&" + (f.fractionGroupSeparator || "")) : y) : R;
7342
+ _ = A ? S + (f.decimalSeparator || "") + ((E = +f.fractionGroupSize) ? A.replace(new RegExp("\\d{" + E + "}\\B", "g"), "$&" + (f.fractionGroupSeparator || "")) : A) : S;
7343
7343
  }
7344
- return (f.prefix || "") + g + (f.suffix || "");
7344
+ return (f.prefix || "") + _ + (f.suffix || "");
7345
7345
  }, i.toFraction = function(s) {
7346
- var u, f, g, m, I, T, h, E, S, R, y, P, B = this, $ = B.c;
7347
- if (s != null && (h = new A(s), !h.isInteger() && (h.c || h.s !== 1) || h.lt(o))) throw Error(ie + "Argument " + (h.isInteger() ? "out of range: " : "not an integer: ") + F(h));
7348
- if (!$) return new A(B);
7349
- for (u = new A(o), S = f = new A(o), g = E = new A(o), P = le($), I = u.e = P.length - B.e - 1, u.c[0] = St[(T = I % G) < 0 ? G + T : T], s = !s || h.comparedTo(u) > 0 ? I > 0 ? u : S : h, T = w, w = 1 / 0, h = new A(P), E.c[0] = 0; R = t(h, u, 0, 1), m = f.plus(R.times(g)), m.comparedTo(s) != 1; ) f = g, g = m, S = E.plus(R.times(m = S)), E = m, u = h.minus(R.times(m = u)), h = m;
7350
- return m = t(s.minus(f), g, 0, 1), E = E.plus(m.times(S)), f = f.plus(m.times(g)), E.s = S.s = B.s, I = I * 2, y = t(S, g, I, l).minus(B).abs().comparedTo(t(E, f, I, l).minus(B).abs()) < 1 ? [S, g] : [E, f], w = T, y;
7346
+ var u, f, _, p, g, w, d, E, I, S, A, P, B = this, $ = B.c;
7347
+ if (s != null && (d = new y(s), !d.isInteger() && (d.c || d.s !== 1) || d.lt(o))) throw Error(ie + "Argument " + (d.isInteger() ? "out of range: " : "not an integer: ") + F(d));
7348
+ if (!$) return new y(B);
7349
+ for (u = new y(o), I = f = new y(o), _ = E = new y(o), P = le($), g = u.e = P.length - B.e - 1, u.c[0] = St[(w = g % G) < 0 ? G + w : w], s = !s || d.comparedTo(u) > 0 ? g > 0 ? u : I : d, w = T, T = 1 / 0, d = new y(P), E.c[0] = 0; S = t(d, u, 0, 1), p = f.plus(S.times(_)), p.comparedTo(s) != 1; ) f = _, _ = p, I = E.plus(S.times(p = I)), E = p, u = d.minus(S.times(p = u)), d = p;
7350
+ return p = t(s.minus(f), _, 0, 1), E = E.plus(p.times(I)), f = f.plus(p.times(_)), E.s = I.s = B.s, g = g * 2, A = t(I, _, g, l).minus(B).abs().comparedTo(t(E, f, g, l).minus(B).abs()) < 1 ? [I, _] : [E, f], T = w, A;
7351
7351
  }, i.toNumber = function() {
7352
7352
  return +F(this);
7353
7353
  }, i.toPrecision = function(s, u) {
7354
7354
  return s != null && z(s, 1, ee), L(this, s, u, 2);
7355
7355
  }, i.toString = function(s) {
7356
- var u, f = this, g = f.s, m = f.e;
7357
- return m === null ? g ? (u = "Infinity", g < 0 && (u = "-" + u)) : u = "NaN" : (s == null ? u = m <= d || m >= _ ? rt(le(f.c), m) : Te(le(f.c), m, "0") : s === 10 && O ? (f = H(new A(f), c + m + 1, l), u = Te(le(f.c), f.e, "0")) : (z(s, 2, b.length, "Base"), u = r(Te(le(f.c), m, "0"), 10, s, g, true)), g < 0 && f.c[0] && (u = "-" + u)), u;
7356
+ var u, f = this, _ = f.s, p = f.e;
7357
+ return p === null ? _ ? (u = "Infinity", _ < 0 && (u = "-" + u)) : u = "NaN" : (s == null ? u = p <= m || p >= R ? nt(le(f.c), p) : Te(le(f.c), p, "0") : s === 10 && O ? (f = H(new y(f), c + p + 1, l), u = Te(le(f.c), f.e, "0")) : (z(s, 2, b.length, "Base"), u = r(Te(le(f.c), p, "0"), 10, s, _, true)), _ < 0 && f.c[0] && (u = "-" + u)), u;
7358
7358
  }, i.valueOf = i.toJSON = function() {
7359
7359
  return F(this);
7360
- }, i._isBigNumber = true, i[Symbol.toStringTag] = "BigNumber", i[Symbol.for("nodejs.util.inspect.custom")] = i.valueOf, e != null && A.set(e), A;
7360
+ }, i._isBigNumber = true, i[Symbol.toStringTag] = "BigNumber", i[Symbol.for("nodejs.util.inspect.custom")] = i.valueOf, e != null && y.set(e), y;
7361
7361
  }
7362
- a(Ar, "clone");
7362
+ a(yr, "clone");
7363
7363
  function ue(e) {
7364
7364
  var t = e | 0;
7365
7365
  return e > 0 || e === t ? t : t - 1;
@@ -7375,29 +7375,29 @@ function le(e) {
7375
7375
  }
7376
7376
  a(le, "coeffToString");
7377
7377
  function Me(e, t) {
7378
- var r, n, i = e.c, o = t.c, c = e.s, l = t.s, d = e.e, _ = t.e;
7378
+ var r, n, i = e.c, o = t.c, c = e.s, l = t.s, m = e.e, R = t.e;
7379
7379
  if (!c || !l) return null;
7380
7380
  if (r = i && !i[0], n = o && !o[0], r || n) return r ? n ? 0 : -l : c;
7381
7381
  if (c != l) return c;
7382
- if (r = c < 0, n = d == _, !i || !o) return n ? 0 : !i ^ r ? 1 : -1;
7383
- if (!n) return d > _ ^ r ? 1 : -1;
7384
- for (l = (d = i.length) < (_ = o.length) ? d : _, c = 0; c < l; c++) if (i[c] != o[c]) return i[c] > o[c] ^ r ? 1 : -1;
7385
- return d == _ ? 0 : d > _ ^ r ? 1 : -1;
7382
+ if (r = c < 0, n = m == R, !i || !o) return n ? 0 : !i ^ r ? 1 : -1;
7383
+ if (!n) return m > R ^ r ? 1 : -1;
7384
+ for (l = (m = i.length) < (R = o.length) ? m : R, c = 0; c < l; c++) if (i[c] != o[c]) return i[c] > o[c] ^ r ? 1 : -1;
7385
+ return m == R ? 0 : m > R ^ r ? 1 : -1;
7386
7386
  }
7387
7387
  a(Me, "compare");
7388
7388
  function z(e, t, r, n) {
7389
7389
  if (e < t || e > r || e !== ce(e)) throw Error(ie + (n || "Argument") + (typeof e == "number" ? e < t || e > r ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
7390
7390
  }
7391
7391
  a(z, "intCheck");
7392
- function tt(e) {
7392
+ function rt(e) {
7393
7393
  var t = e.c.length - 1;
7394
7394
  return ue(e.e / G) == t && e.c[t] % 2 != 0;
7395
7395
  }
7396
- a(tt, "isOdd");
7397
- function rt(e, t) {
7396
+ a(rt, "isOdd");
7397
+ function nt(e, t) {
7398
7398
  return (e.length > 1 ? e.charAt(0) + "." + e.slice(1) : e) + (t < 0 ? "e" : "e+") + t;
7399
7399
  }
7400
- a(rt, "toExponential");
7400
+ a(nt, "toExponential");
7401
7401
  function Te(e, t, r) {
7402
7402
  var n, i;
7403
7403
  if (t < 0) {
@@ -7410,49 +7410,49 @@ function Te(e, t, r) {
7410
7410
  return e;
7411
7411
  }
7412
7412
  a(Te, "toFixedPoint");
7413
- var pi = Ar();
7414
- const mi = 24, Ke = 32, Ei = a(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
7413
+ var Ei = yr();
7414
+ const _i = 24, Ve = 32, gi = a(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
7415
7415
  const e = new Uint32Array(1);
7416
7416
  return globalThis.crypto.getRandomValues(e), e[0] / 4294967296;
7417
- } : Math.random, "createRandom"), Rt = Ei(), Tt = a((e = 4, t = Rt) => {
7417
+ } : Math.random, "createRandom"), Rt = gi(), Tt = a((e = 4, t = Rt) => {
7418
7418
  let r = "";
7419
7419
  for (; r.length < e; ) r = r + Math.floor(t() * 36).toString(36);
7420
7420
  return r;
7421
7421
  }, "createEntropy");
7422
- function _i(e) {
7423
- let t = new pi(0);
7422
+ function Ii(e) {
7423
+ let t = new Ei(0);
7424
7424
  for (const r of e.values()) t = t.multipliedBy(256).plus(r);
7425
7425
  return t;
7426
7426
  }
7427
- a(_i, "bufToBigInt");
7428
- const yr = a((e = "") => {
7427
+ a(Ii, "bufToBigInt");
7428
+ const Ar = a((e = "") => {
7429
7429
  const t = new TextEncoder();
7430
- return _i(hi(t.encode(e))).toString(36).slice(1);
7431
- }, "hash"), br = Array.from({ length: 26 }, (e, t) => String.fromCharCode(t + 97)), gi = a((e) => br[Math.floor(e() * br.length)], "randomLetter"), Ii = a(({ globalObj: e = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: t = Rt } = {}) => {
7432
- const r = Object.keys(e).toString(), n = r.length ? r + Tt(Ke, t) : Tt(Ke, t);
7433
- return yr(n).substring(0, Ke);
7434
- }, "createFingerprint"), Si = a((e) => () => e++, "createCounter"), Ri = 476782367, Ti = a(({ random: e = Rt, counter: t = Si(Math.floor(e() * Ri)), length: r = mi, fingerprint: n = Ii({ random: e }) } = {}) => {
7435
- if (r > Ke) throw new Error(`Length must be between 2 and ${Ke}. Received: ${r}`);
7430
+ return Ii(pi(t.encode(e))).toString(36).slice(1);
7431
+ }, "hash"), br = Array.from({ length: 26 }, (e, t) => String.fromCharCode(t + 97)), Si = a((e) => br[Math.floor(e() * br.length)], "randomLetter"), Ri = a(({ globalObj: e = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: t = Rt } = {}) => {
7432
+ const r = Object.keys(e).toString(), n = r.length ? r + Tt(Ve, t) : Tt(Ve, t);
7433
+ return Ar(n).substring(0, Ve);
7434
+ }, "createFingerprint"), Ti = a((e) => () => e++, "createCounter"), wi = 476782367, yi = a(({ random: e = Rt, counter: t = Ti(Math.floor(e() * wi)), length: r = _i, fingerprint: n = Ri({ random: e }) } = {}) => {
7435
+ if (r > Ve) throw new Error(`Length must be between 2 and ${Ve}. Received: ${r}`);
7436
7436
  return a(function() {
7437
- const o = gi(e), c = Date.now().toString(36), l = t().toString(36), d = Tt(r, e), _ = `${c + d + l + n}`;
7438
- return `${o + yr(_).substring(1, r)}`;
7437
+ const o = Si(e), c = Date.now().toString(36), l = t().toString(36), m = Tt(r, e), R = `${c + m + l + n}`;
7438
+ return `${o + Ar(R).substring(1, r)}`;
7439
7439
  }, "cuid2");
7440
- }, "init"), nt = wi(Ti);
7441
- function wi(e) {
7440
+ }, "init"), it = Ai(yi);
7441
+ function Ai(e) {
7442
7442
  let t;
7443
7443
  return () => (t || (t = e()), t());
7444
7444
  }
7445
- a(wi, "lazy");
7446
- var Ai = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7445
+ a(Ai, "lazy");
7446
+ var bi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7447
7447
  function Cr(e) {
7448
7448
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7449
7449
  }
7450
7450
  a(Cr, "getDefaultExportFromCjs");
7451
- var xe = {}, Ur;
7452
- function yi() {
7453
- if (Ur) return xe;
7454
- Ur = 1, Object.defineProperty(xe, "__esModule", { value: true }), xe.isBinaryFileSync = xe.isBinaryFile = void 0;
7455
- const e = je, t = Nn, r = (0, t.promisify)(e.stat), n = (0, t.promisify)(e.open), i = (0, t.promisify)(e.close), o = 512, c = 3;
7451
+ var xe = {}, vr;
7452
+ function Ci() {
7453
+ if (vr) return xe;
7454
+ vr = 1, Object.defineProperty(xe, "__esModule", { value: true }), xe.isBinaryFileSync = xe.isBinaryFile = void 0;
7455
+ const e = je, t = Mn, r = (0, t.promisify)(e.stat), n = (0, t.promisify)(e.open), i = (0, t.promisify)(e.close), o = 512, c = 3;
7456
7456
  class l {
7457
7457
  static {
7458
7458
  a(this, "Reader");
@@ -7461,8 +7461,8 @@ function yi() {
7461
7461
  size;
7462
7462
  offset;
7463
7463
  error;
7464
- constructor(O, A) {
7465
- this.fileBuffer = O, this.size = A, this.offset = 0, this.error = false;
7464
+ constructor(O, y) {
7465
+ this.fileBuffer = O, this.size = y, this.offset = 0, this.error = false;
7466
7466
  }
7467
7467
  hasError() {
7468
7468
  return this.error;
@@ -7471,108 +7471,108 @@ function yi() {
7471
7471
  return this.offset === this.size || this.hasError() ? (this.error = true, 255) : this.fileBuffer[this.offset++];
7472
7472
  }
7473
7473
  next(O) {
7474
- const A = new Array();
7474
+ const y = new Array();
7475
7475
  for (let L = 0; L < O; L++) {
7476
- if (this.error) return A;
7477
- A[L] = this.nextByte();
7476
+ if (this.error) return y;
7477
+ y[L] = this.nextByte();
7478
7478
  }
7479
- return A;
7479
+ return y;
7480
7480
  }
7481
7481
  }
7482
- function d(b) {
7483
- let O = 0, A = 0;
7482
+ function m(b) {
7483
+ let O = 0, y = 0;
7484
7484
  for (; !b.hasError(); ) {
7485
7485
  const L = b.nextByte();
7486
- if (A = A | (L & 127) << 7 * O, (L & 128) === 0) break;
7486
+ if (y = y | (L & 127) << 7 * O, (L & 128) === 0) break;
7487
7487
  if (O >= 10) {
7488
7488
  b.error = true;
7489
7489
  break;
7490
7490
  }
7491
7491
  O++;
7492
7492
  }
7493
- return A;
7493
+ return y;
7494
7494
  }
7495
- a(d, "readProtoVarInt");
7496
- function _(b) {
7497
- switch (d(b) & 7) {
7495
+ a(m, "readProtoVarInt");
7496
+ function R(b) {
7497
+ switch (m(b) & 7) {
7498
7498
  case 0:
7499
- return d(b), true;
7499
+ return m(b), true;
7500
7500
  case 1:
7501
7501
  return b.next(8), true;
7502
7502
  case 2:
7503
- const L = d(b);
7503
+ const L = m(b);
7504
7504
  return b.next(L), true;
7505
7505
  case 5:
7506
7506
  return b.next(4), true;
7507
7507
  }
7508
7508
  return false;
7509
7509
  }
7510
- a(_, "readProtoMessage");
7511
- function p(b, O) {
7512
- const A = new l(b, O);
7510
+ a(R, "readProtoMessage");
7511
+ function h(b, O) {
7512
+ const y = new l(b, O);
7513
7513
  let L = 0;
7514
7514
  for (; ; ) {
7515
- if (!_(A) && !A.hasError()) return false;
7516
- if (A.hasError()) break;
7515
+ if (!R(y) && !y.hasError()) return false;
7516
+ if (y.hasError()) break;
7517
7517
  L++;
7518
7518
  }
7519
7519
  return L > 0;
7520
7520
  }
7521
- a(p, "isBinaryProto");
7522
- async function w(b, O) {
7521
+ a(h, "isBinaryProto");
7522
+ async function T(b, O) {
7523
7523
  if (D(b)) {
7524
- const A = await r(b);
7525
- M(A);
7524
+ const y = await r(b);
7525
+ M(y);
7526
7526
  const L = await n(b, "r"), x = Buffer.alloc(o + c);
7527
- return new Promise((v, H) => {
7527
+ return new Promise((U, H) => {
7528
7528
  e.read(L, x, 0, o + c, 0, (F, s, u) => {
7529
7529
  if (i(L), F) H(F);
7530
7530
  else try {
7531
- v(U(x, s));
7531
+ U(v(x, s));
7532
7532
  } catch (f) {
7533
7533
  H(f);
7534
7534
  }
7535
7535
  });
7536
7536
  });
7537
- } else return O === void 0 && (O = b.length), U(b, O);
7537
+ } else return O === void 0 && (O = b.length), v(b, O);
7538
7538
  }
7539
- a(w, "isBinaryFile"), xe.isBinaryFile = w;
7539
+ a(T, "isBinaryFile"), xe.isBinaryFile = T;
7540
7540
  function C(b, O) {
7541
7541
  if (D(b)) {
7542
- const A = e.statSync(b);
7543
- M(A);
7544
- const L = e.openSync(b, "r"), x = Buffer.alloc(o + c), v = e.readSync(L, x, 0, o + c, 0);
7545
- return e.closeSync(L), U(x, v);
7546
- } else return O === void 0 && (O = b.length), U(b, O);
7542
+ const y = e.statSync(b);
7543
+ M(y);
7544
+ const L = e.openSync(b, "r"), x = Buffer.alloc(o + c), U = e.readSync(L, x, 0, o + c, 0);
7545
+ return e.closeSync(L), v(x, U);
7546
+ } else return O === void 0 && (O = b.length), v(b, O);
7547
7547
  }
7548
7548
  a(C, "isBinaryFileSync"), xe.isBinaryFileSync = C;
7549
- function U(b, O) {
7549
+ function v(b, O) {
7550
7550
  if (O === 0) return false;
7551
- let A = 0;
7551
+ let y = 0;
7552
7552
  const L = Math.min(O, o + c), x = Math.min(L, o);
7553
7553
  if (O >= 3 && b[0] === 239 && b[1] === 187 && b[2] === 191 || O >= 4 && b[0] === 0 && b[1] === 0 && b[2] === 254 && b[3] === 255 || O >= 4 && b[0] === 255 && b[1] === 254 && b[2] === 0 && b[3] === 0 || O >= 4 && b[0] === 132 && b[1] === 49 && b[2] === 149 && b[3] === 51) return false;
7554
7554
  if (L >= 5 && b.slice(0, 5).toString() === "%PDF-") return true;
7555
7555
  if (O >= 2 && b[0] === 254 && b[1] === 255 || O >= 2 && b[0] === 255 && b[1] === 254) return false;
7556
- for (let v = 0; v < x; v++) {
7557
- if (b[v] === 0) return true;
7558
- if ((b[v] < 7 || b[v] > 14) && (b[v] < 32 || b[v] > 127)) {
7559
- if (b[v] >= 192 && b[v] <= 223 && v + 1 < L) {
7560
- if (v++, b[v] >= 128 && b[v] <= 191) continue;
7561
- } else if (b[v] >= 224 && b[v] <= 239 && v + 2 < L) {
7562
- if (v++, b[v] >= 128 && b[v] <= 191 && b[v + 1] >= 128 && b[v + 1] <= 191) {
7563
- v++;
7556
+ for (let U = 0; U < x; U++) {
7557
+ if (b[U] === 0) return true;
7558
+ if ((b[U] < 7 || b[U] > 14) && (b[U] < 32 || b[U] > 127)) {
7559
+ if (b[U] >= 192 && b[U] <= 223 && U + 1 < L) {
7560
+ if (U++, b[U] >= 128 && b[U] <= 191) continue;
7561
+ } else if (b[U] >= 224 && b[U] <= 239 && U + 2 < L) {
7562
+ if (U++, b[U] >= 128 && b[U] <= 191 && b[U + 1] >= 128 && b[U + 1] <= 191) {
7563
+ U++;
7564
7564
  continue;
7565
7565
  }
7566
- } else if (b[v] >= 240 && b[v] <= 247 && v + 3 < L && (v++, b[v] >= 128 && b[v] <= 191 && b[v + 1] >= 128 && b[v + 1] <= 191 && b[v + 2] >= 128 && b[v + 2] <= 191)) {
7567
- v += 2;
7566
+ } else if (b[U] >= 240 && b[U] <= 247 && U + 3 < L && (U++, b[U] >= 128 && b[U] <= 191 && b[U + 1] >= 128 && b[U + 1] <= 191 && b[U + 2] >= 128 && b[U + 2] <= 191)) {
7567
+ U += 2;
7568
7568
  continue;
7569
7569
  }
7570
- if (A++, v >= 32 && A * 100 / x > 10) return true;
7570
+ if (y++, U >= 32 && y * 100 / x > 10) return true;
7571
7571
  }
7572
7572
  }
7573
- return !!(A * 100 / x > 10 || A > 1 && p(b, x));
7573
+ return !!(y * 100 / x > 10 || y > 1 && h(b, x));
7574
7574
  }
7575
- a(U, "isBinaryCheck");
7575
+ a(v, "isBinaryCheck");
7576
7576
  function D(b) {
7577
7577
  return typeof b == "string";
7578
7578
  }
@@ -7582,16 +7582,16 @@ function yi() {
7582
7582
  }
7583
7583
  return a(M, "isStatFile"), xe;
7584
7584
  }
7585
- a(yi, "requireLib");
7586
- var bi = yi(), Q = Uint8Array, se = Uint16Array, wt = Int32Array, it = new Q([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), ot = new Q([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), At = new Q([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), vr = a(function(e, t) {
7585
+ a(Ci, "requireLib");
7586
+ var vi = Ci(), Q = Uint8Array, se = Uint16Array, wt = Int32Array, ot = new Q([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), st = new Q([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), yt = new Q([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Ur = a(function(e, t) {
7587
7587
  for (var r = new se(31), n = 0; n < 31; ++n) r[n] = t += 1 << e[n - 1];
7588
7588
  for (var i = new wt(r[30]), n = 1; n < 30; ++n) for (var o = r[n]; o < r[n + 1]; ++o) i[o] = o - r[n] << 5 | n;
7589
7589
  return { b: r, r: i };
7590
- }, "freb"), Br = vr(it, 2), Or = Br.b, yt = Br.r;
7591
- Or[28] = 258, yt[258] = 28;
7592
- for (var Lr = vr(ot, 0), Ci = Lr.b, Pr = Lr.r, bt = new se(32768), K = 0; K < 32768; ++K) {
7593
- var ve = (K & 43690) >> 1 | (K & 21845) << 1;
7594
- ve = (ve & 52428) >> 2 | (ve & 13107) << 2, ve = (ve & 61680) >> 4 | (ve & 3855) << 4, bt[K] = ((ve & 65280) >> 8 | (ve & 255) << 8) >> 1;
7590
+ }, "freb"), Br = Ur(ot, 2), Or = Br.b, At = Br.r;
7591
+ Or[28] = 258, At[258] = 28;
7592
+ for (var Lr = Ur(st, 0), Ui = Lr.b, Pr = Lr.r, bt = new se(32768), K = 0; K < 32768; ++K) {
7593
+ var Ue = (K & 43690) >> 1 | (K & 21845) << 1;
7594
+ Ue = (Ue & 52428) >> 2 | (Ue & 13107) << 2, Ue = (Ue & 61680) >> 4 | (Ue & 3855) << 4, bt[K] = ((Ue & 65280) >> 8 | (Ue & 255) << 8) >> 1;
7595
7595
  }
7596
7596
  for (var _e = a((function(e, t, r) {
7597
7597
  for (var n = e.length, i = 0, o = new se(t); i < n; ++i) e[i] && ++o[e[i] - 1];
@@ -7600,126 +7600,126 @@ for (var _e = a((function(e, t, r) {
7600
7600
  var l;
7601
7601
  if (r) {
7602
7602
  l = new se(1 << t);
7603
- var d = 15 - t;
7604
- for (i = 0; i < n; ++i) if (e[i]) for (var _ = i << 4 | e[i], p = t - e[i], w = c[e[i] - 1]++ << p, C = w | (1 << p) - 1; w <= C; ++w) l[bt[w] >> d] = _;
7603
+ var m = 15 - t;
7604
+ for (i = 0; i < n; ++i) if (e[i]) for (var R = i << 4 | e[i], h = t - e[i], T = c[e[i] - 1]++ << h, C = T | (1 << h) - 1; T <= C; ++T) l[bt[T] >> m] = R;
7605
7605
  } else for (l = new se(n), i = 0; i < n; ++i) e[i] && (l[i] = bt[c[e[i] - 1]++] >> 15 - e[i]);
7606
7606
  return l;
7607
7607
  }), "hMap"), Be = new Q(288), K = 0; K < 144; ++K) Be[K] = 8;
7608
7608
  for (var K = 144; K < 256; ++K) Be[K] = 9;
7609
7609
  for (var K = 256; K < 280; ++K) Be[K] = 7;
7610
7610
  for (var K = 280; K < 288; ++K) Be[K] = 8;
7611
- for (var Ve = new Q(32), K = 0; K < 32; ++K) Ve[K] = 5;
7612
- var Ui = _e(Be, 9, 0), vi = _e(Be, 9, 1), Bi = _e(Ve, 5, 0), Oi = _e(Ve, 5, 1), Ct = a(function(e) {
7611
+ for (var Ye = new Q(32), K = 0; K < 32; ++K) Ye[K] = 5;
7612
+ var Bi = _e(Be, 9, 0), Oi = _e(Be, 9, 1), Li = _e(Ye, 5, 0), Pi = _e(Ye, 5, 1), Ct = a(function(e) {
7613
7613
  for (var t = e[0], r = 1; r < e.length; ++r) e[r] > t && (t = e[r]);
7614
7614
  return t;
7615
7615
  }, "max"), pe = a(function(e, t, r) {
7616
7616
  var n = t / 8 | 0;
7617
7617
  return (e[n] | e[n + 1] << 8) >> (t & 7) & r;
7618
- }, "bits"), Ut = a(function(e, t) {
7618
+ }, "bits"), vt = a(function(e, t) {
7619
7619
  var r = t / 8 | 0;
7620
7620
  return (e[r] | e[r + 1] << 8 | e[r + 2] << 16) >> (t & 7);
7621
- }, "bits16"), vt = a(function(e) {
7621
+ }, "bits16"), Ut = a(function(e) {
7622
7622
  return (e + 7) / 8 | 0;
7623
- }, "shft"), Ye = a(function(e, t, r) {
7623
+ }, "shft"), ze = a(function(e, t, r) {
7624
7624
  return (t == null || t < 0) && (t = 0), (r == null || r > e.length) && (r = e.length), new Q(e.subarray(t, r));
7625
- }, "slc"), Li = ["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"], ne = a(function(e, t, r) {
7626
- var n = new Error(t || Li[e]);
7625
+ }, "slc"), Ni = ["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"], ne = a(function(e, t, r) {
7626
+ var n = new Error(t || Ni[e]);
7627
7627
  if (n.code = e, Error.captureStackTrace && Error.captureStackTrace(n, ne), !r) throw n;
7628
7628
  return n;
7629
- }, "err"), Pi = a(function(e, t, r, n) {
7629
+ }, "err"), Di = a(function(e, t, r, n) {
7630
7630
  var i = e.length, o = n ? n.length : 0;
7631
7631
  if (!i || t.f && !t.l) return r || new Q(0);
7632
- var c = !r, l = c || t.i != 2, d = t.i;
7632
+ var c = !r, l = c || t.i != 2, m = t.i;
7633
7633
  c && (r = new Q(i * 3));
7634
- var _ = a(function(re) {
7634
+ var R = a(function(re) {
7635
7635
  var he = r.length;
7636
7636
  if (re > he) {
7637
7637
  var X = new Q(Math.max(he * 2, re));
7638
7638
  X.set(r), r = X;
7639
7639
  }
7640
- }, "cbuf"), p = t.f || 0, w = t.p || 0, C = t.b || 0, U = t.l, D = t.d, M = t.m, b = t.n, O = i * 8;
7640
+ }, "cbuf"), h = t.f || 0, T = t.p || 0, C = t.b || 0, v = t.l, D = t.d, M = t.m, b = t.n, O = i * 8;
7641
7641
  do {
7642
- if (!U) {
7643
- p = pe(e, w, 1);
7644
- var A = pe(e, w + 1, 3);
7645
- if (w += 3, A) if (A == 1) U = vi, D = Oi, M = 9, b = 5;
7646
- else if (A == 2) {
7647
- var H = pe(e, w, 31) + 257, F = pe(e, w + 10, 15) + 4, s = H + pe(e, w + 5, 31) + 1;
7648
- w += 14;
7649
- for (var u = new Q(s), f = new Q(19), g = 0; g < F; ++g) f[At[g]] = pe(e, w + g * 3, 7);
7650
- w += F * 3;
7651
- for (var m = Ct(f), I = (1 << m) - 1, T = _e(f, m, 1), g = 0; g < s; ) {
7652
- var h = T[pe(e, w, I)];
7653
- w += h & 15;
7654
- var L = h >> 4;
7655
- if (L < 16) u[g++] = L;
7642
+ if (!v) {
7643
+ h = pe(e, T, 1);
7644
+ var y = pe(e, T + 1, 3);
7645
+ if (T += 3, y) if (y == 1) v = Oi, D = Pi, M = 9, b = 5;
7646
+ else if (y == 2) {
7647
+ var H = pe(e, T, 31) + 257, F = pe(e, T + 10, 15) + 4, s = H + pe(e, T + 5, 31) + 1;
7648
+ T += 14;
7649
+ for (var u = new Q(s), f = new Q(19), _ = 0; _ < F; ++_) f[yt[_]] = pe(e, T + _ * 3, 7);
7650
+ T += F * 3;
7651
+ for (var p = Ct(f), g = (1 << p) - 1, w = _e(f, p, 1), _ = 0; _ < s; ) {
7652
+ var d = w[pe(e, T, g)];
7653
+ T += d & 15;
7654
+ var L = d >> 4;
7655
+ if (L < 16) u[_++] = L;
7656
7656
  else {
7657
- var E = 0, S = 0;
7658
- for (L == 16 ? (S = 3 + pe(e, w, 3), w += 2, E = u[g - 1]) : L == 17 ? (S = 3 + pe(e, w, 7), w += 3) : L == 18 && (S = 11 + pe(e, w, 127), w += 7); S--; ) u[g++] = E;
7657
+ var E = 0, I = 0;
7658
+ for (L == 16 ? (I = 3 + pe(e, T, 3), T += 2, E = u[_ - 1]) : L == 17 ? (I = 3 + pe(e, T, 7), T += 3) : L == 18 && (I = 11 + pe(e, T, 127), T += 7); I--; ) u[_++] = E;
7659
7659
  }
7660
7660
  }
7661
- var R = u.subarray(0, H), y = u.subarray(H);
7662
- M = Ct(R), b = Ct(y), U = _e(R, M, 1), D = _e(y, b, 1);
7661
+ var S = u.subarray(0, H), A = u.subarray(H);
7662
+ M = Ct(S), b = Ct(A), v = _e(S, M, 1), D = _e(A, b, 1);
7663
7663
  } else ne(1);
7664
7664
  else {
7665
- var L = vt(w) + 4, x = e[L - 4] | e[L - 3] << 8, v = L + x;
7666
- if (v > i) {
7667
- d && ne(0);
7665
+ var L = Ut(T) + 4, x = e[L - 4] | e[L - 3] << 8, U = L + x;
7666
+ if (U > i) {
7667
+ m && ne(0);
7668
7668
  break;
7669
7669
  }
7670
- l && _(C + x), r.set(e.subarray(L, v), C), t.b = C += x, t.p = w = v * 8, t.f = p;
7670
+ l && R(C + x), r.set(e.subarray(L, U), C), t.b = C += x, t.p = T = U * 8, t.f = h;
7671
7671
  continue;
7672
7672
  }
7673
- if (w > O) {
7674
- d && ne(0);
7673
+ if (T > O) {
7674
+ m && ne(0);
7675
7675
  break;
7676
7676
  }
7677
7677
  }
7678
- l && _(C + 131072);
7679
- for (var P = (1 << M) - 1, B = (1 << b) - 1, $ = w; ; $ = w) {
7680
- var E = U[Ut(e, w) & P], j = E >> 4;
7681
- if (w += E & 15, w > O) {
7682
- d && ne(0);
7678
+ l && R(C + 131072);
7679
+ for (var P = (1 << M) - 1, B = (1 << b) - 1, $ = T; ; $ = T) {
7680
+ var E = v[vt(e, T) & P], j = E >> 4;
7681
+ if (T += E & 15, T > O) {
7682
+ m && ne(0);
7683
7683
  break;
7684
7684
  }
7685
7685
  if (E || ne(2), j < 256) r[C++] = j;
7686
7686
  else if (j == 256) {
7687
- $ = w, U = null;
7687
+ $ = T, v = null;
7688
7688
  break;
7689
7689
  } else {
7690
7690
  var q = j - 254;
7691
7691
  if (j > 264) {
7692
- var g = j - 257, N = it[g];
7693
- q = pe(e, w, (1 << N) - 1) + Or[g], w += N;
7692
+ var _ = j - 257, N = ot[_];
7693
+ q = pe(e, T, (1 << N) - 1) + Or[_], T += N;
7694
7694
  }
7695
- var k = D[Ut(e, w) & B], Y = k >> 4;
7696
- k || ne(3), w += k & 15;
7697
- var y = Ci[Y];
7695
+ var k = D[vt(e, T) & B], Y = k >> 4;
7696
+ k || ne(3), T += k & 15;
7697
+ var A = Ui[Y];
7698
7698
  if (Y > 3) {
7699
- var N = ot[Y];
7700
- y += Ut(e, w) & (1 << N) - 1, w += N;
7699
+ var N = st[Y];
7700
+ A += vt(e, T) & (1 << N) - 1, T += N;
7701
7701
  }
7702
- if (w > O) {
7703
- d && ne(0);
7702
+ if (T > O) {
7703
+ m && ne(0);
7704
7704
  break;
7705
7705
  }
7706
- l && _(C + 131072);
7706
+ l && R(C + 131072);
7707
7707
  var fe = C + q;
7708
- if (C < y) {
7709
- var ye = o - y, be = Math.min(y, fe);
7710
- for (ye + C < 0 && ne(3); C < be; ++C) r[C] = n[ye + C];
7708
+ if (C < A) {
7709
+ var Ae = o - A, be = Math.min(A, fe);
7710
+ for (Ae + C < 0 && ne(3); C < be; ++C) r[C] = n[Ae + C];
7711
7711
  }
7712
- for (; C < fe; ++C) r[C] = r[C - y];
7712
+ for (; C < fe; ++C) r[C] = r[C - A];
7713
7713
  }
7714
7714
  }
7715
- t.l = U, t.p = $, t.b = C, t.f = p, U && (p = 1, t.m = M, t.d = D, t.n = b);
7716
- } while (!p);
7717
- return C != r.length && c ? Ye(r, 0, C) : r.subarray(0, C);
7715
+ t.l = v, t.p = $, t.b = C, t.f = h, v && (h = 1, t.m = M, t.d = D, t.n = b);
7716
+ } while (!h);
7717
+ return C != r.length && c ? ze(r, 0, C) : r.subarray(0, C);
7718
7718
  }, "inflt"), we = a(function(e, t, r) {
7719
7719
  r <<= t & 7;
7720
7720
  var n = t / 8 | 0;
7721
7721
  e[n] |= r, e[n + 1] |= r >> 8;
7722
- }, "wbits"), ze = a(function(e, t, r) {
7722
+ }, "wbits"), Je = a(function(e, t, r) {
7723
7723
  r <<= t & 7;
7724
7724
  var n = t / 8 | 0;
7725
7725
  e[n] |= r, e[n + 1] |= r >> 8, e[n + 2] |= r >> 16;
@@ -7731,39 +7731,39 @@ var Ui = _e(Be, 9, 0), vi = _e(Be, 9, 1), Bi = _e(Ve, 5, 0), Oi = _e(Ve, 5, 1),
7731
7731
  var c = new Q(r[0].s + 1);
7732
7732
  return c[r[0].s] = 1, { t: c, l: 1 };
7733
7733
  }
7734
- r.sort(function(v, H) {
7735
- return v.f - H.f;
7734
+ r.sort(function(U, H) {
7735
+ return U.f - H.f;
7736
7736
  }), r.push({ s: -1, f: 25001 });
7737
- var l = r[0], d = r[1], _ = 0, p = 1, w = 2;
7738
- for (r[0] = { s: -1, f: l.f + d.f, l, r: d }; p != i - 1; ) l = r[r[_].f < r[w].f ? _++ : w++], d = r[_ != p && r[_].f < r[w].f ? _++ : w++], r[p++] = { s: -1, f: l.f + d.f, l, r: d };
7737
+ var l = r[0], m = r[1], R = 0, h = 1, T = 2;
7738
+ for (r[0] = { s: -1, f: l.f + m.f, l, r: m }; h != i - 1; ) l = r[r[R].f < r[T].f ? R++ : T++], m = r[R != h && r[R].f < r[T].f ? R++ : T++], r[h++] = { s: -1, f: l.f + m.f, l, r: m };
7739
7739
  for (var C = o[0].s, n = 1; n < i; ++n) o[n].s > C && (C = o[n].s);
7740
- var U = new se(C + 1), D = Ot(r[p - 1], U, 0);
7740
+ var v = new se(C + 1), D = Ot(r[h - 1], v, 0);
7741
7741
  if (D > t) {
7742
7742
  var n = 0, M = 0, b = D - t, O = 1 << b;
7743
7743
  for (o.sort(function(H, F) {
7744
- return U[F.s] - U[H.s] || H.f - F.f;
7744
+ return v[F.s] - v[H.s] || H.f - F.f;
7745
7745
  }); n < i; ++n) {
7746
- var A = o[n].s;
7747
- if (U[A] > t) M += O - (1 << D - U[A]), U[A] = t;
7746
+ var y = o[n].s;
7747
+ if (v[y] > t) M += O - (1 << D - v[y]), v[y] = t;
7748
7748
  else break;
7749
7749
  }
7750
7750
  for (M >>= b; M > 0; ) {
7751
7751
  var L = o[n].s;
7752
- U[L] < t ? M -= 1 << t - U[L]++ - 1 : ++n;
7752
+ v[L] < t ? M -= 1 << t - v[L]++ - 1 : ++n;
7753
7753
  }
7754
7754
  for (; n >= 0 && M; --n) {
7755
7755
  var x = o[n].s;
7756
- U[x] == t && (--U[x], ++M);
7756
+ v[x] == t && (--v[x], ++M);
7757
7757
  }
7758
7758
  D = t;
7759
7759
  }
7760
- return { t: new Q(U), l: D };
7760
+ return { t: new Q(v), l: D };
7761
7761
  }, "hTree"), Ot = a(function(e, t, r) {
7762
7762
  return e.s == -1 ? Math.max(Ot(e.l, t, r + 1), Ot(e.r, t, r + 1)) : t[e.s] = r;
7763
7763
  }, "ln"), Nr = a(function(e) {
7764
7764
  for (var t = e.length; t && !e[--t]; ) ;
7765
- for (var r = new se(++t), n = 0, i = e[0], o = 1, c = a(function(d) {
7766
- r[n++] = d;
7765
+ for (var r = new se(++t), n = 0, i = e[0], o = 1, c = a(function(m) {
7766
+ r[n++] = m;
7767
7767
  }, "w"), l = 1; l <= t; ++l) if (e[l] == i && l != t) ++o;
7768
7768
  else {
7769
7769
  if (!i && o > 2) {
@@ -7777,109 +7777,109 @@ var Ui = _e(Be, 9, 0), vi = _e(Be, 9, 1), Bi = _e(Ve, 5, 0), Oi = _e(Ve, 5, 1),
7777
7777
  o = 1, i = e[l];
7778
7778
  }
7779
7779
  return { c: r.subarray(0, n), n: t };
7780
- }, "lc"), Je = a(function(e, t) {
7780
+ }, "lc"), Qe = a(function(e, t) {
7781
7781
  for (var r = 0, n = 0; n < t.length; ++n) r += e[n] * t[n];
7782
7782
  return r;
7783
7783
  }, "clen"), Dr = a(function(e, t, r) {
7784
- var n = r.length, i = vt(t + 2);
7784
+ var n = r.length, i = Ut(t + 2);
7785
7785
  e[i] = n & 255, e[i + 1] = n >> 8, e[i + 2] = e[i] ^ 255, e[i + 3] = e[i + 1] ^ 255;
7786
7786
  for (var o = 0; o < n; ++o) e[i + o + 4] = r[o];
7787
7787
  return (i + 4 + n) * 8;
7788
- }, "wfblk"), Mr = a(function(e, t, r, n, i, o, c, l, d, _, p) {
7789
- we(t, p++, r), ++i[256];
7790
- for (var w = Bt(i, 15), C = w.t, U = w.l, D = Bt(o, 15), M = D.t, b = D.l, O = Nr(C), A = O.c, L = O.n, x = Nr(M), v = x.c, H = x.n, F = new se(19), s = 0; s < A.length; ++s) ++F[A[s] & 31];
7791
- for (var s = 0; s < v.length; ++s) ++F[v[s] & 31];
7792
- for (var u = Bt(F, 7), f = u.t, g = u.l, m = 19; m > 4 && !f[At[m - 1]]; --m) ;
7793
- var I = _ + 5 << 3, T = Je(i, Be) + Je(o, Ve) + c, h = Je(i, C) + Je(o, M) + c + 14 + 3 * m + Je(F, f) + 2 * F[16] + 3 * F[17] + 7 * F[18];
7794
- if (d >= 0 && I <= T && I <= h) return Dr(t, p, e.subarray(d, d + _));
7795
- var E, S, R, y;
7796
- if (we(t, p, 1 + (h < T)), p += 2, h < T) {
7797
- E = _e(C, U, 0), S = C, R = _e(M, b, 0), y = M;
7798
- var P = _e(f, g, 0);
7799
- we(t, p, L - 257), we(t, p + 5, H - 1), we(t, p + 10, m - 4), p += 14;
7800
- for (var s = 0; s < m; ++s) we(t, p + 3 * s, f[At[s]]);
7801
- p += 3 * m;
7802
- for (var B = [A, v], $ = 0; $ < 2; ++$) for (var j = B[$], s = 0; s < j.length; ++s) {
7788
+ }, "wfblk"), Mr = a(function(e, t, r, n, i, o, c, l, m, R, h) {
7789
+ we(t, h++, r), ++i[256];
7790
+ for (var T = Bt(i, 15), C = T.t, v = T.l, D = Bt(o, 15), M = D.t, b = D.l, O = Nr(C), y = O.c, L = O.n, x = Nr(M), U = x.c, H = x.n, F = new se(19), s = 0; s < y.length; ++s) ++F[y[s] & 31];
7791
+ for (var s = 0; s < U.length; ++s) ++F[U[s] & 31];
7792
+ for (var u = Bt(F, 7), f = u.t, _ = u.l, p = 19; p > 4 && !f[yt[p - 1]]; --p) ;
7793
+ var g = R + 5 << 3, w = Qe(i, Be) + Qe(o, Ye) + c, d = Qe(i, C) + Qe(o, M) + c + 14 + 3 * p + Qe(F, f) + 2 * F[16] + 3 * F[17] + 7 * F[18];
7794
+ if (m >= 0 && g <= w && g <= d) return Dr(t, h, e.subarray(m, m + R));
7795
+ var E, I, S, A;
7796
+ if (we(t, h, 1 + (d < w)), h += 2, d < w) {
7797
+ E = _e(C, v, 0), I = C, S = _e(M, b, 0), A = M;
7798
+ var P = _e(f, _, 0);
7799
+ we(t, h, L - 257), we(t, h + 5, H - 1), we(t, h + 10, p - 4), h += 14;
7800
+ for (var s = 0; s < p; ++s) we(t, h + 3 * s, f[yt[s]]);
7801
+ h += 3 * p;
7802
+ for (var B = [y, U], $ = 0; $ < 2; ++$) for (var j = B[$], s = 0; s < j.length; ++s) {
7803
7803
  var q = j[s] & 31;
7804
- we(t, p, P[q]), p += f[q], q > 15 && (we(t, p, j[s] >> 5 & 127), p += j[s] >> 12);
7804
+ we(t, h, P[q]), h += f[q], q > 15 && (we(t, h, j[s] >> 5 & 127), h += j[s] >> 12);
7805
7805
  }
7806
- } else E = Ui, S = Be, R = Bi, y = Ve;
7806
+ } else E = Bi, I = Be, S = Li, A = Ye;
7807
7807
  for (var s = 0; s < l; ++s) {
7808
7808
  var N = n[s];
7809
7809
  if (N > 255) {
7810
7810
  var q = N >> 18 & 31;
7811
- ze(t, p, E[q + 257]), p += S[q + 257], q > 7 && (we(t, p, N >> 23 & 31), p += it[q]);
7811
+ Je(t, h, E[q + 257]), h += I[q + 257], q > 7 && (we(t, h, N >> 23 & 31), h += ot[q]);
7812
7812
  var k = N & 31;
7813
- ze(t, p, R[k]), p += y[k], k > 3 && (ze(t, p, N >> 5 & 8191), p += ot[k]);
7814
- } else ze(t, p, E[N]), p += S[N];
7813
+ Je(t, h, S[k]), h += A[k], k > 3 && (Je(t, h, N >> 5 & 8191), h += st[k]);
7814
+ } else Je(t, h, E[N]), h += I[N];
7815
7815
  }
7816
- return ze(t, p, E[256]), p + S[256];
7817
- }, "wblk"), Ni = new wt([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), xr = new Q(0), Di = a(function(e, t, r, n, i, o) {
7818
- var c = o.z || e.length, l = new Q(n + c + 5 * (1 + Math.ceil(c / 7e3)) + i), d = l.subarray(n, l.length - i), _ = o.l, p = (o.r || 0) & 7;
7816
+ return Je(t, h, E[256]), h + I[256];
7817
+ }, "wblk"), Mi = new wt([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), xr = new Q(0), xi = a(function(e, t, r, n, i, o) {
7818
+ var c = o.z || e.length, l = new Q(n + c + 5 * (1 + Math.ceil(c / 7e3)) + i), m = l.subarray(n, l.length - i), R = o.l, h = (o.r || 0) & 7;
7819
7819
  if (t) {
7820
- p && (d[0] = o.r >> 3);
7821
- for (var w = Ni[t - 1], C = w >> 13, U = w & 8191, D = (1 << r) - 1, M = o.p || new se(32768), b = o.h || new se(D + 1), O = Math.ceil(r / 3), A = 2 * O, L = a(function(Z) {
7822
- return (e[Z] ^ e[Z + 1] << O ^ e[Z + 2] << A) & D;
7823
- }, "hsh"), x = new wt(25e3), v = new se(288), H = new se(32), F = 0, s = 0, u = o.i || 0, f = 0, g = o.w || 0, m = 0; u + 2 < c; ++u) {
7824
- var I = L(u), T = u & 32767, h = b[I];
7825
- if (M[T] = h, b[I] = T, g <= u) {
7820
+ h && (m[0] = o.r >> 3);
7821
+ for (var T = Mi[t - 1], C = T >> 13, v = T & 8191, D = (1 << r) - 1, M = o.p || new se(32768), b = o.h || new se(D + 1), O = Math.ceil(r / 3), y = 2 * O, L = a(function(Z) {
7822
+ return (e[Z] ^ e[Z + 1] << O ^ e[Z + 2] << y) & D;
7823
+ }, "hsh"), x = new wt(25e3), U = new se(288), H = new se(32), F = 0, s = 0, u = o.i || 0, f = 0, _ = o.w || 0, p = 0; u + 2 < c; ++u) {
7824
+ var g = L(u), w = u & 32767, d = b[g];
7825
+ if (M[w] = d, b[g] = w, _ <= u) {
7826
7826
  var E = c - u;
7827
- if ((F > 7e3 || f > 24576) && (E > 423 || !_)) {
7828
- p = Mr(e, d, 0, x, v, H, s, f, m, u - m, p), f = F = s = 0, m = u;
7829
- for (var S = 0; S < 286; ++S) v[S] = 0;
7830
- for (var S = 0; S < 30; ++S) H[S] = 0;
7827
+ if ((F > 7e3 || f > 24576) && (E > 423 || !R)) {
7828
+ h = Mr(e, m, 0, x, U, H, s, f, p, u - p, h), f = F = s = 0, p = u;
7829
+ for (var I = 0; I < 286; ++I) U[I] = 0;
7830
+ for (var I = 0; I < 30; ++I) H[I] = 0;
7831
7831
  }
7832
- var R = 2, y = 0, P = U, B = T - h & 32767;
7833
- if (E > 2 && I == L(u - B)) for (var $ = Math.min(C, E) - 1, j = Math.min(32767, u), q = Math.min(258, E); B <= j && --P && T != h; ) {
7834
- if (e[u + R] == e[u + R - B]) {
7832
+ var S = 2, A = 0, P = v, B = w - d & 32767;
7833
+ if (E > 2 && g == L(u - B)) for (var $ = Math.min(C, E) - 1, j = Math.min(32767, u), q = Math.min(258, E); B <= j && --P && w != d; ) {
7834
+ if (e[u + S] == e[u + S - B]) {
7835
7835
  for (var N = 0; N < q && e[u + N] == e[u + N - B]; ++N) ;
7836
- if (N > R) {
7837
- if (R = N, y = B, N > $) break;
7838
- for (var k = Math.min(B, N - 2), Y = 0, S = 0; S < k; ++S) {
7839
- var fe = u - B + S & 32767, ye = M[fe], be = fe - ye & 32767;
7840
- be > Y && (Y = be, h = fe);
7836
+ if (N > S) {
7837
+ if (S = N, A = B, N > $) break;
7838
+ for (var k = Math.min(B, N - 2), Y = 0, I = 0; I < k; ++I) {
7839
+ var fe = u - B + I & 32767, Ae = M[fe], be = fe - Ae & 32767;
7840
+ be > Y && (Y = be, d = fe);
7841
7841
  }
7842
7842
  }
7843
7843
  }
7844
- T = h, h = M[T], B += T - h & 32767;
7844
+ w = d, d = M[w], B += w - d & 32767;
7845
7845
  }
7846
- if (y) {
7847
- x[f++] = 268435456 | yt[R] << 18 | Pr[y];
7848
- var re = yt[R] & 31, he = Pr[y] & 31;
7849
- s += it[re] + ot[he], ++v[257 + re], ++H[he], g = u + R, ++F;
7850
- } else x[f++] = e[u], ++v[e[u]];
7846
+ if (A) {
7847
+ x[f++] = 268435456 | At[S] << 18 | Pr[A];
7848
+ var re = At[S] & 31, he = Pr[A] & 31;
7849
+ s += ot[re] + st[he], ++U[257 + re], ++H[he], _ = u + S, ++F;
7850
+ } else x[f++] = e[u], ++U[e[u]];
7851
7851
  }
7852
7852
  }
7853
- for (u = Math.max(u, g); u < c; ++u) x[f++] = e[u], ++v[e[u]];
7854
- p = Mr(e, d, _, x, v, H, s, f, m, u - m, p), _ || (o.r = p & 7 | d[p / 8 | 0] << 3, p -= 7, o.h = b, o.p = M, o.i = u, o.w = g);
7853
+ for (u = Math.max(u, _); u < c; ++u) x[f++] = e[u], ++U[e[u]];
7854
+ h = Mr(e, m, R, x, U, H, s, f, p, u - p, h), R || (o.r = h & 7 | m[h / 8 | 0] << 3, h -= 7, o.h = b, o.p = M, o.i = u, o.w = _);
7855
7855
  } else {
7856
- for (var u = o.w || 0; u < c + _; u += 65535) {
7856
+ for (var u = o.w || 0; u < c + R; u += 65535) {
7857
7857
  var X = u + 65535;
7858
- X >= c && (d[p / 8 | 0] = _, X = c), p = Dr(d, p + 1, e.subarray(u, X));
7858
+ X >= c && (m[h / 8 | 0] = R, X = c), h = Dr(m, h + 1, e.subarray(u, X));
7859
7859
  }
7860
7860
  o.i = c;
7861
7861
  }
7862
- return Ye(l, 0, n + vt(p) + i);
7863
- }, "dflt"), Mi = (function() {
7862
+ return ze(l, 0, n + Ut(h) + i);
7863
+ }, "dflt"), Gi = (function() {
7864
7864
  for (var e = new Int32Array(256), t = 0; t < 256; ++t) {
7865
7865
  for (var r = t, n = 9; --n; ) r = (r & 1 && -306674912) ^ r >>> 1;
7866
7866
  e[t] = r;
7867
7867
  }
7868
7868
  return e;
7869
- })(), xi = a(function() {
7869
+ })(), $i = a(function() {
7870
7870
  var e = -1;
7871
7871
  return { p: a(function(t) {
7872
- for (var r = e, n = 0; n < t.length; ++n) r = Mi[r & 255 ^ t[n]] ^ r >>> 8;
7872
+ for (var r = e, n = 0; n < t.length; ++n) r = Gi[r & 255 ^ t[n]] ^ r >>> 8;
7873
7873
  e = r;
7874
7874
  }, "p"), d: a(function() {
7875
7875
  return ~e;
7876
7876
  }, "d") };
7877
- }, "crc"), Gi = a(function(e, t, r, n, i) {
7877
+ }, "crc"), Hi = a(function(e, t, r, n, i) {
7878
7878
  if (!i && (i = { l: 1 }, t.dictionary)) {
7879
7879
  var o = t.dictionary.subarray(-32768), c = new Q(o.length + e.length);
7880
7880
  c.set(o), c.set(e, o.length), e = c, i.w = o.length;
7881
7881
  }
7882
- return Di(e, t.level == null ? 6 : t.level, t.mem == null ? i.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + t.mem, r, n, i);
7882
+ return xi(e, t.level == null ? 6 : t.level, t.mem == null ? i.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + t.mem, r, n, i);
7883
7883
  }, "dopt"), Gr = a(function(e, t) {
7884
7884
  var r = {};
7885
7885
  for (var n in e) r[n] = e[n];
@@ -7894,64 +7894,64 @@ var Ui = _e(Be, 9, 0), vi = _e(Be, 9, 1), Bi = _e(Ve, 5, 0), Oi = _e(Ve, 5, 1),
7894
7894
  }, "b8"), te = a(function(e, t, r) {
7895
7895
  for (; r; ++t) e[t] = r, r >>>= 8;
7896
7896
  }, "wbytes");
7897
- function $i(e, t) {
7898
- return Gi(e, t || {}, 0, 0);
7897
+ function ki(e, t) {
7898
+ return Hi(e, t || {}, 0, 0);
7899
7899
  }
7900
- a($i, "deflateSync");
7901
- function Hi(e, t) {
7902
- return Pi(e, { i: 2 }, t && t.out, t && t.dictionary);
7900
+ a(ki, "deflateSync");
7901
+ function Fi(e, t) {
7902
+ return Di(e, { i: 2 }, t && t.out, t && t.dictionary);
7903
7903
  }
7904
- a(Hi, "inflateSync");
7904
+ a(Fi, "inflateSync");
7905
7905
  var $r = a(function(e, t, r, n) {
7906
7906
  for (var i in e) {
7907
7907
  var o = e[i], c = t + i, l = n;
7908
7908
  Array.isArray(o) && (l = Gr(n, o[1]), o = o[0]), o instanceof Q ? r[c] = [o, l] : (r[c += "/"] = [new Q(0), l], $r(o, c, r, n));
7909
7909
  }
7910
- }, "fltn"), Hr = typeof TextEncoder < "u" && new TextEncoder(), Pt = typeof TextDecoder < "u" && new TextDecoder(), ki = 0;
7910
+ }, "fltn"), Hr = typeof TextEncoder < "u" && new TextEncoder(), Pt = typeof TextDecoder < "u" && new TextDecoder(), ji = 0;
7911
7911
  try {
7912
- Pt.decode(xr, { stream: true }), ki = 1;
7912
+ Pt.decode(xr, { stream: true }), ji = 1;
7913
7913
  } catch {
7914
7914
  }
7915
- var Fi = a(function(e) {
7915
+ var qi = a(function(e) {
7916
7916
  for (var t = "", r = 0; ; ) {
7917
7917
  var n = e[r++], i = (n > 127) + (n > 223) + (n > 239);
7918
- if (r + i > e.length) return { s: t, r: Ye(e, r - 1) };
7918
+ if (r + i > e.length) return { s: t, r: ze(e, r - 1) };
7919
7919
  i ? i == 3 ? (n = ((n & 15) << 18 | (e[r++] & 63) << 12 | (e[r++] & 63) << 6 | e[r++] & 63) - 65536, t += String.fromCharCode(55296 | n >> 10, 56320 | n & 1023)) : i & 1 ? t += String.fromCharCode((n & 31) << 6 | e[r++] & 63) : t += String.fromCharCode((n & 15) << 12 | (e[r++] & 63) << 6 | e[r++] & 63) : t += String.fromCharCode(n);
7920
7920
  }
7921
7921
  }, "dutf8");
7922
7922
  function kr(e, t) {
7923
7923
  var r;
7924
7924
  if (Hr) return Hr.encode(e);
7925
- for (var n = e.length, i = new Q(e.length + (e.length >> 1)), o = 0, c = a(function(_) {
7926
- i[o++] = _;
7925
+ for (var n = e.length, i = new Q(e.length + (e.length >> 1)), o = 0, c = a(function(R) {
7926
+ i[o++] = R;
7927
7927
  }, "w"), r = 0; r < n; ++r) {
7928
7928
  if (o + 5 > i.length) {
7929
7929
  var l = new Q(o + 8 + (n - r << 1));
7930
7930
  l.set(i), i = l;
7931
7931
  }
7932
- var d = e.charCodeAt(r);
7933
- d < 128 || t ? c(d) : d < 2048 ? (c(192 | d >> 6), c(128 | d & 63)) : d > 55295 && d < 57344 ? (d = 65536 + (d & 1047552) | e.charCodeAt(++r) & 1023, c(240 | d >> 18), c(128 | d >> 12 & 63), c(128 | d >> 6 & 63), c(128 | d & 63)) : (c(224 | d >> 12), c(128 | d >> 6 & 63), c(128 | d & 63));
7932
+ var m = e.charCodeAt(r);
7933
+ m < 128 || t ? c(m) : m < 2048 ? (c(192 | m >> 6), c(128 | m & 63)) : m > 55295 && m < 57344 ? (m = 65536 + (m & 1047552) | e.charCodeAt(++r) & 1023, c(240 | m >> 18), c(128 | m >> 12 & 63), c(128 | m >> 6 & 63), c(128 | m & 63)) : (c(224 | m >> 12), c(128 | m >> 6 & 63), c(128 | m & 63));
7934
7934
  }
7935
- return Ye(i, 0, o);
7935
+ return ze(i, 0, o);
7936
7936
  }
7937
7937
  a(kr, "strToU8");
7938
- function ji(e, t) {
7938
+ function Wi(e, t) {
7939
7939
  if (t) {
7940
7940
  for (var r = "", n = 0; n < e.length; n += 16384) r += String.fromCharCode.apply(null, e.subarray(n, n + 16384));
7941
7941
  return r;
7942
7942
  } else {
7943
7943
  if (Pt) return Pt.decode(e);
7944
- var i = Fi(e), o = i.s, r = i.r;
7944
+ var i = qi(e), o = i.s, r = i.r;
7945
7945
  return r.length && ne(8), o;
7946
7946
  }
7947
7947
  }
7948
- a(ji, "strFromU8");
7949
- var qi = a(function(e, t) {
7948
+ a(Wi, "strFromU8");
7949
+ var Ki = a(function(e, t) {
7950
7950
  return t + 30 + ge(e, t + 26) + ge(e, t + 28);
7951
- }, "slzh"), Wi = a(function(e, t, r) {
7952
- var n = ge(e, t + 28), i = ji(e.subarray(t + 46, t + 46 + n), !(ge(e, t + 8) & 2048)), o = t + 46 + n, c = me(e, t + 20), l = r && c == 4294967295 ? Ki(e, o) : [c, me(e, t + 24), me(e, t + 42)], d = l[0], _ = l[1], p = l[2];
7953
- return [ge(e, t + 10), d, _, i, o + ge(e, t + 30) + ge(e, t + 32), p];
7954
- }, "zh"), Ki = a(function(e, t) {
7951
+ }, "slzh"), Vi = a(function(e, t, r) {
7952
+ var n = ge(e, t + 28), i = Wi(e.subarray(t + 46, t + 46 + n), !(ge(e, t + 8) & 2048)), o = t + 46 + n, c = me(e, t + 20), l = r && c == 4294967295 ? Yi(e, o) : [c, me(e, t + 24), me(e, t + 42)], m = l[0], R = l[1], h = l[2];
7953
+ return [ge(e, t + 10), m, R, i, o + ge(e, t + 30) + ge(e, t + 32), h];
7954
+ }, "zh"), Yi = a(function(e, t) {
7955
7955
  for (; ge(e, t) != 1; t += 4 + ge(e, t + 2)) ;
7956
7956
  return [Lt(e, t + 12), Lt(e, t + 4), Lt(e, t + 20)];
7957
7957
  }, "z64e"), Nt = a(function(e) {
@@ -7962,38 +7962,38 @@ var qi = a(function(e, t) {
7962
7962
  }
7963
7963
  return t;
7964
7964
  }, "exfl"), Fr = a(function(e, t, r, n, i, o, c, l) {
7965
- var d = n.length, _ = r.extra, p = l && l.length, w = Nt(_);
7965
+ var m = n.length, R = r.extra, h = l && l.length, T = Nt(R);
7966
7966
  te(e, t, c != null ? 33639248 : 67324752), t += 4, c != null && (e[t++] = 20, e[t++] = r.os), e[t] = 20, t += 2, e[t++] = r.flag << 1 | (o < 0 && 8), e[t++] = i && 8, e[t++] = r.compression & 255, e[t++] = r.compression >> 8;
7967
- var C = new Date(r.mtime == null ? Date.now() : r.mtime), U = C.getFullYear() - 1980;
7968
- if ((U < 0 || U > 119) && ne(10), te(e, t, U << 25 | C.getMonth() + 1 << 21 | C.getDate() << 16 | C.getHours() << 11 | C.getMinutes() << 5 | C.getSeconds() >> 1), t += 4, o != -1 && (te(e, t, r.crc), te(e, t + 4, o < 0 ? -o - 2 : o), te(e, t + 8, r.size)), te(e, t + 12, d), te(e, t + 14, w), t += 16, c != null && (te(e, t, p), te(e, t + 6, r.attrs), te(e, t + 10, c), t += 14), e.set(n, t), t += d, w) for (var D in _) {
7969
- var M = _[D], b = M.length;
7967
+ var C = new Date(r.mtime == null ? Date.now() : r.mtime), v = C.getFullYear() - 1980;
7968
+ if ((v < 0 || v > 119) && ne(10), te(e, t, v << 25 | C.getMonth() + 1 << 21 | C.getDate() << 16 | C.getHours() << 11 | C.getMinutes() << 5 | C.getSeconds() >> 1), t += 4, o != -1 && (te(e, t, r.crc), te(e, t + 4, o < 0 ? -o - 2 : o), te(e, t + 8, r.size)), te(e, t + 12, m), te(e, t + 14, T), t += 16, c != null && (te(e, t, h), te(e, t + 6, r.attrs), te(e, t + 10, c), t += 14), e.set(n, t), t += m, T) for (var D in R) {
7969
+ var M = R[D], b = M.length;
7970
7970
  te(e, t, +D), te(e, t + 2, b), e.set(M, t + 4), t += 4 + b;
7971
7971
  }
7972
- return p && (e.set(l, t), t += p), t;
7973
- }, "wzh"), Vi = a(function(e, t, r, n, i) {
7972
+ return h && (e.set(l, t), t += h), t;
7973
+ }, "wzh"), zi = a(function(e, t, r, n, i) {
7974
7974
  te(e, t, 101010256), te(e, t + 8, r), te(e, t + 10, r), te(e, t + 12, n), te(e, t + 16, i);
7975
7975
  }, "wzf");
7976
- function Yi(e, t) {
7976
+ function Ji(e, t) {
7977
7977
  t || (t = {});
7978
7978
  var r = {}, n = [];
7979
7979
  $r(e, "", r, t);
7980
7980
  var i = 0, o = 0;
7981
7981
  for (var c in r) {
7982
- var l = r[c], d = l[0], _ = l[1], p = _.level == 0 ? 0 : 8, w = kr(c), C = w.length, U = _.comment, D = U && kr(U), M = D && D.length, b = Nt(_.extra);
7982
+ var l = r[c], m = l[0], R = l[1], h = R.level == 0 ? 0 : 8, T = kr(c), C = T.length, v = R.comment, D = v && kr(v), M = D && D.length, b = Nt(R.extra);
7983
7983
  C > 65535 && ne(11);
7984
- var O = p ? $i(d, _) : d, A = O.length, L = xi();
7985
- L.p(d), n.push(Gr(_, { size: d.length, crc: L.d(), c: O, f: w, m: D, u: C != c.length || D && U.length != M, o: i, compression: p })), i += 30 + C + b + A, o += 76 + 2 * (C + b) + (M || 0) + A;
7984
+ var O = h ? ki(m, R) : m, y = O.length, L = $i();
7985
+ L.p(m), n.push(Gr(R, { size: m.length, crc: L.d(), c: O, f: T, m: D, u: C != c.length || D && v.length != M, o: i, compression: h })), i += 30 + C + b + y, o += 76 + 2 * (C + b) + (M || 0) + y;
7986
7986
  }
7987
- for (var x = new Q(o + 22), v = i, H = o - i, F = 0; F < n.length; ++F) {
7988
- var w = n[F];
7989
- Fr(x, w.o, w, w.f, w.u, w.c.length);
7990
- var s = 30 + w.f.length + Nt(w.extra);
7991
- x.set(w.c, w.o + s), Fr(x, i, w, w.f, w.u, w.c.length, w.o, w.m), i += 16 + s + (w.m ? w.m.length : 0);
7987
+ for (var x = new Q(o + 22), U = i, H = o - i, F = 0; F < n.length; ++F) {
7988
+ var T = n[F];
7989
+ Fr(x, T.o, T, T.f, T.u, T.c.length);
7990
+ var s = 30 + T.f.length + Nt(T.extra);
7991
+ x.set(T.c, T.o + s), Fr(x, i, T, T.f, T.u, T.c.length, T.o, T.m), i += 16 + s + (T.m ? T.m.length : 0);
7992
7992
  }
7993
- return Vi(x, i, n.length, H, v), x;
7993
+ return zi(x, i, n.length, H, U), x;
7994
7994
  }
7995
- a(Yi, "zipSync");
7996
- function zi(e, t) {
7995
+ a(Ji, "zipSync");
7996
+ function Qi(e, t) {
7997
7997
  for (var r = {}, n = e.length - 22; me(e, n) != 101010256; --n) (!n || e.length - n > 65558) && ne(13);
7998
7998
  var i = ge(e, n + 8);
7999
7999
  if (!i) return {};
@@ -8002,21 +8002,21 @@ function zi(e, t) {
8002
8002
  var l = me(e, n - 12);
8003
8003
  c = me(e, l) == 101075792, c && (i = me(e, l + 32), o = me(e, l + 48));
8004
8004
  }
8005
- for (var d = 0; d < i; ++d) {
8006
- var _ = Wi(e, o, c), p = _[0], w = _[1], C = _[2], U = _[3], D = _[4], M = _[5], b = qi(e, M);
8007
- o = D, p ? p == 8 ? r[U] = Hi(e.subarray(b, b + w), { out: new Q(C) }) : ne(14, "unknown compression type " + p) : r[U] = Ye(e, b, b + w);
8005
+ for (var m = 0; m < i; ++m) {
8006
+ var R = Vi(e, o, c), h = R[0], T = R[1], C = R[2], v = R[3], D = R[4], M = R[5], b = Ki(e, M);
8007
+ o = D, h ? h == 8 ? r[v] = Fi(e.subarray(b, b + T), { out: new Q(C) }) : ne(14, "unknown compression type " + h) : r[v] = ze(e, b, b + T);
8008
8008
  }
8009
8009
  return r;
8010
8010
  }
8011
- a(zi, "unzipSync");
8012
- const Ji = [/^\/$/, /^\*+$/, /^[0-9]+$/], Qi = ["/artifact/", "https://", "http://", "*********"], Xi = 3;
8011
+ a(Qi, "unzipSync");
8012
+ const Xi = [/^\/$/, /^\*+$/, /^[0-9]+$/], Zi = ["/artifact/", "https://", "http://", "*********"], eo = 3;
8013
8013
  function jr(e) {
8014
- return e.filter((t) => !(t.length < Xi || Ji.some((r) => r.test(t)) || Qi.some((r) => t.includes(r))));
8014
+ return e.filter((t) => !(t.length < eo || Xi.some((r) => r.test(t)) || Zi.some((r) => t.includes(r))));
8015
8015
  }
8016
8016
  a(jr, "filterSensitiveValues");
8017
- const Ae = Symbol.for("@ts-pattern/matcher"), Zi = Symbol.for("@ts-pattern/isVariadic"), st = "@ts-pattern/anonymous-select-key", Dt = a((e) => !!(e && typeof e == "object"), "r"), at = a((e) => e && !!e[Ae], "i"), Ie = a((e, t, r) => {
8018
- if (at(e)) {
8019
- const n = e[Ae](), { matched: i, selections: o } = n.match(t);
8017
+ const ye = Symbol.for("@ts-pattern/matcher"), to = Symbol.for("@ts-pattern/isVariadic"), at = "@ts-pattern/anonymous-select-key", Dt = a((e) => !!(e && typeof e == "object"), "r"), ct = a((e) => e && !!e[ye], "i"), Ie = a((e, t, r) => {
8018
+ if (ct(e)) {
8019
+ const n = e[ye](), { matched: i, selections: o } = n.match(t);
8020
8020
  return i && o && Object.keys(o).forEach((c) => r(c, o[c])), i;
8021
8021
  }
8022
8022
  if (Dt(e)) {
@@ -8026,33 +8026,33 @@ const Ae = Symbol.for("@ts-pattern/matcher"), Zi = Symbol.for("@ts-pattern/isVar
8026
8026
  let n = [], i = [], o = [];
8027
8027
  for (const c of e.keys()) {
8028
8028
  const l = e[c];
8029
- at(l) && l[Zi] ? o.push(l) : o.length ? i.push(l) : n.push(l);
8029
+ ct(l) && l[to] ? o.push(l) : o.length ? i.push(l) : n.push(l);
8030
8030
  }
8031
8031
  if (o.length) {
8032
8032
  if (o.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
8033
8033
  if (t.length < n.length + i.length) return false;
8034
- const c = t.slice(0, n.length), l = i.length === 0 ? [] : t.slice(-i.length), d = t.slice(n.length, i.length === 0 ? 1 / 0 : -i.length);
8035
- return n.every((_, p) => Ie(_, c[p], r)) && i.every((_, p) => Ie(_, l[p], r)) && (o.length === 0 || Ie(o[0], d, r));
8034
+ const c = t.slice(0, n.length), l = i.length === 0 ? [] : t.slice(-i.length), m = t.slice(n.length, i.length === 0 ? 1 / 0 : -i.length);
8035
+ return n.every((R, h) => Ie(R, c[h], r)) && i.every((R, h) => Ie(R, l[h], r)) && (o.length === 0 || Ie(o[0], m, r));
8036
8036
  }
8037
8037
  return e.length === t.length && e.every((c, l) => Ie(c, t[l], r));
8038
8038
  }
8039
8039
  return Reflect.ownKeys(e).every((n) => {
8040
8040
  const i = e[n];
8041
- return (n in t || at(o = i) && o[Ae]().matcherType === "optional") && Ie(i, t[n], r);
8041
+ return (n in t || ct(o = i) && o[ye]().matcherType === "optional") && Ie(i, t[n], r);
8042
8042
  var o;
8043
8043
  });
8044
8044
  }
8045
8045
  return Object.is(t, e);
8046
8046
  }, "o"), Oe = a((e) => {
8047
8047
  var t, r, n;
8048
- return Dt(e) ? at(e) ? (t = (r = (n = e[Ae]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? Qe(e, Oe) : Qe(Object.values(e), Oe) : [];
8049
- }, "s"), Qe = a((e, t) => e.reduce((r, n) => r.concat(t(n)), []), "c");
8048
+ return Dt(e) ? ct(e) ? (t = (r = (n = e[ye]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? Xe(e, Oe) : Xe(Object.values(e), Oe) : [];
8049
+ }, "s"), Xe = a((e, t) => e.reduce((r, n) => r.concat(t(n)), []), "c");
8050
8050
  function ae(e) {
8051
- return Object.assign(e, { optional: a(() => eo(e), "optional"), and: a((t) => V(e, t), "and"), or: a((t) => to(e, t), "or"), select: a((t) => t === void 0 ? qr(e) : qr(t, e), "select") });
8051
+ return Object.assign(e, { optional: a(() => ro(e), "optional"), and: a((t) => V(e, t), "and"), or: a((t) => no(e, t), "or"), select: a((t) => t === void 0 ? qr(e) : qr(t, e), "select") });
8052
8052
  }
8053
8053
  a(ae, "a");
8054
- function eo(e) {
8055
- return ae({ [Ae]: () => ({ match: a((t) => {
8054
+ function ro(e) {
8055
+ return ae({ [ye]: () => ({ match: a((t) => {
8056
8056
  let r = {};
8057
8057
  const n = a((i, o) => {
8058
8058
  r[i] = o;
@@ -8060,39 +8060,39 @@ function eo(e) {
8060
8060
  return t === void 0 ? (Oe(e).forEach((i) => n(i, void 0)), { matched: true, selections: r }) : { matched: Ie(e, t, n), selections: r };
8061
8061
  }, "match"), getSelectionKeys: a(() => Oe(e), "getSelectionKeys"), matcherType: "optional" }) });
8062
8062
  }
8063
- a(eo, "h");
8063
+ a(ro, "h");
8064
8064
  function V(...e) {
8065
- return ae({ [Ae]: () => ({ match: a((t) => {
8065
+ return ae({ [ye]: () => ({ match: a((t) => {
8066
8066
  let r = {};
8067
8067
  const n = a((i, o) => {
8068
8068
  r[i] = o;
8069
8069
  }, "r2");
8070
8070
  return { matched: e.every((i) => Ie(i, t, n)), selections: r };
8071
- }, "match"), getSelectionKeys: a(() => Qe(e, Oe), "getSelectionKeys"), matcherType: "and" }) });
8071
+ }, "match"), getSelectionKeys: a(() => Xe(e, Oe), "getSelectionKeys"), matcherType: "and" }) });
8072
8072
  }
8073
8073
  a(V, "d");
8074
- function to(...e) {
8075
- return ae({ [Ae]: () => ({ match: a((t) => {
8074
+ function no(...e) {
8075
+ return ae({ [ye]: () => ({ match: a((t) => {
8076
8076
  let r = {};
8077
8077
  const n = a((i, o) => {
8078
8078
  r[i] = o;
8079
8079
  }, "r2");
8080
- return Qe(e, Oe).forEach((i) => n(i, void 0)), { matched: e.some((i) => Ie(i, t, n)), selections: r };
8081
- }, "match"), getSelectionKeys: a(() => Qe(e, Oe), "getSelectionKeys"), matcherType: "or" }) });
8080
+ return Xe(e, Oe).forEach((i) => n(i, void 0)), { matched: e.some((i) => Ie(i, t, n)), selections: r };
8081
+ }, "match"), getSelectionKeys: a(() => Xe(e, Oe), "getSelectionKeys"), matcherType: "or" }) });
8082
8082
  }
8083
- a(to, "y");
8083
+ a(no, "y");
8084
8084
  function W(e) {
8085
- return { [Ae]: () => ({ match: a((t) => ({ matched: !!e(t) }), "match") }) };
8085
+ return { [ye]: () => ({ match: a((t) => ({ matched: !!e(t) }), "match") }) };
8086
8086
  }
8087
8087
  a(W, "p");
8088
8088
  function qr(...e) {
8089
8089
  const t = typeof e[0] == "string" ? e[0] : void 0, r = e.length === 2 ? e[1] : typeof e[0] == "string" ? void 0 : e[0];
8090
- return ae({ [Ae]: () => ({ match: a((n) => {
8091
- let i = { [t ?? st]: n };
8090
+ return ae({ [ye]: () => ({ match: a((n) => {
8091
+ let i = { [t ?? at]: n };
8092
8092
  return { matched: r === void 0 || Ie(r, n, (o, c) => {
8093
8093
  i[o] = c;
8094
8094
  }), selections: i };
8095
- }, "match"), getSelectionKeys: a(() => [t ?? st].concat(r === void 0 ? [] : Oe(r)), "getSelectionKeys") }) });
8095
+ }, "match"), getSelectionKeys: a(() => [t ?? at].concat(r === void 0 ? [] : Oe(r)), "getSelectionKeys") }) });
8096
8096
  }
8097
8097
  a(qr, "v");
8098
8098
  function Wr(e) {
@@ -8137,7 +8137,7 @@ De(W(Pe)), ae(W(function(e) {
8137
8137
  })), ae(W(function(e) {
8138
8138
  return e != null;
8139
8139
  }));
8140
- class ro extends Error {
8140
+ class io extends Error {
8141
8141
  static {
8142
8142
  a(this, "I");
8143
8143
  }
@@ -8152,11 +8152,11 @@ class ro extends Error {
8152
8152
  }
8153
8153
  }
8154
8154
  const Mt = { matched: false, value: void 0 };
8155
- function no(e) {
8156
- return new pt(e, Mt);
8155
+ function oo(e) {
8156
+ return new mt(e, Mt);
8157
8157
  }
8158
- a(no, "M");
8159
- class pt {
8158
+ a(oo, "M");
8159
+ class mt {
8160
8160
  static {
8161
8161
  a(this, "R");
8162
8162
  }
@@ -8169,20 +8169,20 @@ class pt {
8169
8169
  let i;
8170
8170
  t.length === 3 && typeof t[1] == "function" ? i = t[1] : t.length > 2 && n.push(...t.slice(1, t.length - 1));
8171
8171
  let o = false, c = {};
8172
- const l = a((_, p) => {
8173
- o = true, c[_] = p;
8174
- }, "u2"), d = !n.some((_) => Ie(_, this.input, l)) || i && !i(this.input) ? Mt : { matched: true, value: r(o ? st in c ? c[st] : c : this.input, this.input) };
8175
- return new pt(this.input, d);
8172
+ const l = a((R, h) => {
8173
+ o = true, c[R] = h;
8174
+ }, "u2"), m = !n.some((R) => Ie(R, this.input, l)) || i && !i(this.input) ? Mt : { matched: true, value: r(o ? at in c ? c[at] : c : this.input, this.input) };
8175
+ return new mt(this.input, m);
8176
8176
  }
8177
8177
  when(t, r) {
8178
8178
  if (this.state.matched) return this;
8179
8179
  const n = !!t(this.input);
8180
- return new pt(this.input, n ? { matched: true, value: r(this.input, this.input) } : Mt);
8180
+ return new mt(this.input, n ? { matched: true, value: r(this.input, this.input) } : Mt);
8181
8181
  }
8182
8182
  otherwise(t) {
8183
8183
  return this.state.matched ? this.state.value : t(this.input);
8184
8184
  }
8185
- exhaustive(t = io) {
8185
+ exhaustive(t = so) {
8186
8186
  return this.state.matched ? this.state.value : t(this.input);
8187
8187
  }
8188
8188
  run() {
@@ -8195,46 +8195,46 @@ class pt {
8195
8195
  return this;
8196
8196
  }
8197
8197
  }
8198
- function io(e) {
8199
- throw new ro(e);
8198
+ function so(e) {
8199
+ throw new io(e);
8200
8200
  }
8201
- a(io, "F");
8202
- const oo = "[REDACTED]", so = /* @__PURE__ */ new Set(["sha1", "_sha1", "pageref", "downloadsPath", "tracesDir", "pageId"]);
8201
+ a(so, "F");
8202
+ const ao = "[REDACTED]", co = /* @__PURE__ */ new Set(["sha1", "_sha1", "pageref", "downloadsPath", "tracesDir", "pageId"]);
8203
8203
  function oe({ sensitiveValues: e, str: t }) {
8204
- return e.reduce((r, n) => r.replaceAll(n, oo), t);
8204
+ return e.reduce((r, n) => r.replaceAll(n, ao), t);
8205
8205
  }
8206
8206
  a(oe, "scrubString");
8207
- function ao(e) {
8207
+ function uo(e) {
8208
8208
  return typeof e == "object" && e !== null && !Array.isArray(e);
8209
8209
  }
8210
- a(ao, "isRecord");
8211
- function Xe({ sensitiveValues: e, value: t }) {
8212
- return typeof t == "string" ? oe({ sensitiveValues: e, str: t }) : Array.isArray(t) ? t.map((r) => Xe({ sensitiveValues: e, value: r })) : ao(t) ? Ge({ obj: t, sensitiveValues: e }) : t;
8210
+ a(uo, "isRecord");
8211
+ function Ze({ sensitiveValues: e, value: t }) {
8212
+ return typeof t == "string" ? oe({ sensitiveValues: e, str: t }) : Array.isArray(t) ? t.map((r) => Ze({ sensitiveValues: e, value: r })) : uo(t) ? Ge({ obj: t, sensitiveValues: e }) : t;
8213
8213
  }
8214
- a(Xe, "scrubValue");
8215
- function co(e) {
8216
- return so.has(e) ? true : e.toLowerCase().endsWith("sha1");
8214
+ a(Ze, "scrubValue");
8215
+ function lo(e) {
8216
+ return co.has(e) ? true : e.toLowerCase().endsWith("sha1");
8217
8217
  }
8218
- a(co, "shouldPreserveKey");
8218
+ a(lo, "shouldPreserveKey");
8219
8219
  function Ge({ obj: e, sensitiveValues: t }) {
8220
- return Object.fromEntries(Object.entries(e).map(([r, n]) => [r, co(r) ? n : Xe({ sensitiveValues: t, value: n })]));
8220
+ return Object.fromEntries(Object.entries(e).map(([r, n]) => [r, lo(r) ? n : Ze({ sensitiveValues: t, value: n })]));
8221
8221
  }
8222
8222
  a(Ge, "scrubObject");
8223
8223
  function Kr({ error: e, sensitiveValues: t }) {
8224
8224
  return e ? { ...e, message: oe({ sensitiveValues: t, str: e.message }) } : void 0;
8225
8225
  }
8226
8226
  a(Kr, "scrubError");
8227
- function uo({ event: e, sensitiveValues: t }) {
8228
- return no(e).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: oe({ sensitiveValues: t, str: n.preview }), value: Xe({ sensitiveValues: t, value: n.value }) })), text: oe({ sensitiveValues: t, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }), title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: Kr({ error: r.error, sensitiveValues: t }), result: r.result !== void 0 ? Xe({ sensitiveValues: t, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: Kr({ error: r.error, sensitiveValues: t }), params: Ge({ obj: r.params, sensitiveValues: t }), result: r.result !== void 0 ? Xe({ sensitiveValues: t, value: r.result }) : void 0, title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? oe({ sensitiveValues: t, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: oe({ sensitiveValues: t, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: oe({ sensitiveValues: t, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: Ge({ obj: r.options, sensitiveValues: t }), title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
8227
+ function fo({ event: e, sensitiveValues: t }) {
8228
+ return oo(e).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: oe({ sensitiveValues: t, str: n.preview }), value: Ze({ sensitiveValues: t, value: n.value }) })), text: oe({ sensitiveValues: t, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }), title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: Kr({ error: r.error, sensitiveValues: t }), result: r.result !== void 0 ? Ze({ sensitiveValues: t, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: Kr({ error: r.error, sensitiveValues: t }), params: Ge({ obj: r.params, sensitiveValues: t }), result: r.result !== void 0 ? Ze({ sensitiveValues: t, value: r.result }) : void 0, title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? oe({ sensitiveValues: t, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: oe({ sensitiveValues: t, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: oe({ sensitiveValues: t, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: Ge({ obj: r.options, sensitiveValues: t }), title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
8229
8229
  }
8230
- a(uo, "scrubTraceEvent");
8231
- function lo({ content: e, sensitiveValues: t }) {
8230
+ a(fo, "scrubTraceEvent");
8231
+ function ho({ content: e, sensitiveValues: t }) {
8232
8232
  const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), c = r.decode(e).split(`
8233
8233
  `).map((l) => {
8234
8234
  if (!l.trim()) return l;
8235
8235
  try {
8236
- const d = JSON.parse(l), _ = uo({ event: d, sensitiveValues: t });
8237
- return JSON.stringify(_);
8236
+ const m = JSON.parse(l), R = fo({ event: m, sensitiveValues: t });
8237
+ return JSON.stringify(R);
8238
8238
  } catch {
8239
8239
  return oe({ sensitiveValues: t, str: l });
8240
8240
  }
@@ -8242,7 +8242,7 @@ function lo({ content: e, sensitiveValues: t }) {
8242
8242
  return n.encode(c.join(`
8243
8243
  `));
8244
8244
  }
8245
- a(lo, "scrubJsonLinesFile");
8245
+ a(ho, "scrubJsonLinesFile");
8246
8246
  function Vr({ content: e, sensitiveValues: t }) {
8247
8247
  const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), i = oe({ sensitiveValues: t, str: r.decode(e) });
8248
8248
  return n.encode(i);
@@ -8251,35 +8251,35 @@ a(Vr, "scrubTextFile");
8251
8251
  async function xt({ sensitiveValues: e, traceBuffer: t }) {
8252
8252
  const r = jr(e);
8253
8253
  if (r.length === 0) return new Uint8Array(t);
8254
- const n = [...r].sort((d, _) => _.length - d.length), i = zi(new Uint8Array(t)), o = Object.entries(i), c = await Promise.all(o.map(async ([d, _]) => [d, await fo({ content: _, filename: d, sensitiveValues: n })])), l = Object.fromEntries(c);
8255
- return Yi(l);
8254
+ const n = [...r].sort((m, R) => R.length - m.length), i = Qi(new Uint8Array(t)), o = Object.entries(i), c = await Promise.all(o.map(async ([m, R]) => [m, await po({ content: R, filename: m, sensitiveValues: n })])), l = Object.fromEntries(c);
8255
+ return Ji(l);
8256
8256
  }
8257
8257
  a(xt, "scrubTrace");
8258
- async function fo({ content: e, filename: t, sensitiveValues: r }) {
8258
+ async function po({ content: e, filename: t, sensitiveValues: r }) {
8259
8259
  const n = t.toLowerCase();
8260
- return n.endsWith(".trace") || n.endsWith(".network") ? lo({ content: e, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Vr({ content: e, sensitiveValues: r }) : n.startsWith("resources/") ? ho({ content: e, sensitiveValues: r }) : e;
8260
+ return n.endsWith(".trace") || n.endsWith(".network") ? ho({ content: e, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Vr({ content: e, sensitiveValues: r }) : n.startsWith("resources/") ? mo({ content: e, sensitiveValues: r }) : e;
8261
8261
  }
8262
- a(fo, "scrubFile");
8263
- async function ho({ content: e, sensitiveValues: t }) {
8264
- return await bi.isBinaryFile(Buffer.from(e)) ? e : Vr({ content: e, sensitiveValues: t });
8262
+ a(po, "scrubFile");
8263
+ async function mo({ content: e, sensitiveValues: t }) {
8264
+ return await vi.isBinaryFile(Buffer.from(e)) ? e : Vr({ content: e, sensitiveValues: t });
8265
8265
  }
8266
- a(ho, "scrubResourceFile");
8267
- async function po({ sensitiveValues: e, tracePath: t }) {
8266
+ a(mo, "scrubResourceFile");
8267
+ async function Eo({ sensitiveValues: e, tracePath: t }) {
8268
8268
  const r = [], n = node_fs.createReadStream(t);
8269
8269
  for await (const o of n) r.push(Uint8Array.from(o));
8270
8270
  const i = new Uint8Array(Buffer.concat(r));
8271
8271
  return xt({ sensitiveValues: e, traceBuffer: i });
8272
8272
  }
8273
- a(po, "scrubTraceFromPath");
8274
- async function mo({ sensitiveValues: e, traceFd: t, tracePath: r }) {
8273
+ a(Eo, "scrubTraceFromPath");
8274
+ async function _o({ sensitiveValues: e, traceFd: t, tracePath: r }) {
8275
8275
  const n = [], i = node_fs.createReadStream(r, { autoClose: true, fd: t });
8276
8276
  for await (const c of i) n.push(Uint8Array.from(c));
8277
8277
  const o = new Uint8Array(Buffer.concat(n));
8278
8278
  return xt({ sensitiveValues: e, traceBuffer: o });
8279
8279
  }
8280
- a(mo, "scrubTraceFromFd");
8280
+ a(_o, "scrubTraceFromFd");
8281
8281
  const Yr = { AUTHENTICATION_FAILED: 1008 };
8282
- class Eo {
8282
+ class go {
8283
8283
  static {
8284
8284
  a(this, "WebSocketClient");
8285
8285
  }
@@ -8298,8 +8298,8 @@ class Eo {
8298
8298
  isManualClose = false;
8299
8299
  isAuthenticated = false;
8300
8300
  authenticationFailed = false;
8301
- constructor({ apiKey: t, maxBufferSize: r = 1e3, maxReconnectAttempts: n = 3, onError: i, onMessage: o, projectId: c, reconnectDelay: l = 2e3, url: d }) {
8302
- this.url = d, this.apiKey = t, this.projectId = c, this.maxBufferSize = r, this.reconnectDelay = l, this.maxReconnectAttempts = n, this.onMessage = o, this.onError = i, this.connect();
8301
+ constructor({ apiKey: t, maxBufferSize: r = 1e3, maxReconnectAttempts: n = 3, onError: i, onMessage: o, projectId: c, reconnectDelay: l = 2e3, url: m }) {
8302
+ this.url = m, this.apiKey = t, this.projectId = c, this.maxBufferSize = r, this.reconnectDelay = l, this.maxReconnectAttempts = n, this.onMessage = o, this.onError = i, this.connect();
8303
8303
  }
8304
8304
  connect() {
8305
8305
  try {
@@ -8368,7 +8368,7 @@ class Eo {
8368
8368
  return [...this.buffer];
8369
8369
  }
8370
8370
  }
8371
- var _o = { detect({ env: e }) {
8371
+ var Io = { detect({ env: e }) {
8372
8372
  return !!e.APPVEYOR;
8373
8373
  }, configuration({ env: e }) {
8374
8374
  const t = e.APPVEYOR_PULL_REQUEST_NUMBER, r = !!t;
@@ -8378,44 +8378,44 @@ function zr(e) {
8378
8378
  return (/\d+(?!.*\d+)/.exec(e) || [])[0];
8379
8379
  }
8380
8380
  a(zr, "prNumber");
8381
- function Ze(e) {
8381
+ function et(e) {
8382
8382
  return e ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(e)[1] : void 0;
8383
8383
  }
8384
- a(Ze, "parseBranch");
8385
- var go = { detect({ env: e }) {
8384
+ a(et, "parseBranch");
8385
+ var So = { detect({ env: e }) {
8386
8386
  return !!e.BUILD_BUILDURI;
8387
8387
  }, configuration({ env: e }) {
8388
8388
  const t = e.SYSTEM_PULLREQUEST_PULLREQUESTID, r = !!t;
8389
- return { name: "Azure Pipelines", service: "azurePipelines", commit: e.BUILD_SOURCEVERSION, build: e.BUILD_BUILDNUMBER, branch: Ze(r ? e.SYSTEM_PULLREQUEST_TARGETBRANCH : e.BUILD_SOURCEBRANCH), pr: t, isPr: r, prBranch: Ze(r ? e.SYSTEM_PULLREQUEST_SOURCEBRANCH : void 0), root: e.BUILD_REPOSITORY_LOCALPATH };
8390
- } }, Io = { detect({ env: e }) {
8389
+ return { name: "Azure Pipelines", service: "azurePipelines", commit: e.BUILD_SOURCEVERSION, build: e.BUILD_BUILDNUMBER, branch: et(r ? e.SYSTEM_PULLREQUEST_TARGETBRANCH : e.BUILD_SOURCEBRANCH), pr: t, isPr: r, prBranch: et(r ? e.SYSTEM_PULLREQUEST_SOURCEBRANCH : void 0), root: e.BUILD_REPOSITORY_LOCALPATH };
8390
+ } }, Ro = { detect({ env: e }) {
8391
8391
  return !!e.bamboo_agentId;
8392
8392
  }, configuration({ env: e }) {
8393
8393
  return { name: "Bamboo", service: "bamboo", commit: e.bamboo_planRepository_1_revision, build: e.bamboo_buildNumber, buildUrl: e.bamboo_buildResultsUrl, branch: e.bamboo_planRepository_1_branchName, job: e.bamboo_buildKey, root: e.bamboo_build_working_directory };
8394
- } }, So = { detect({ env: e }) {
8394
+ } }, To = { detect({ env: e }) {
8395
8395
  return !!e.BITBUCKET_BUILD_NUMBER;
8396
8396
  }, configuration({ env: e }) {
8397
8397
  return { name: "Bitbucket Pipelines", service: "bitbucket", commit: e.BITBUCKET_COMMIT, tag: e.BITBUCKET_TAG, build: e.BITBUCKET_BUILD_NUMBER, buildUrl: `https://bitbucket.org/${e.BITBUCKET_REPO_FULL_NAME}/addon/pipelines/home#!/results/${e.BITBUCKET_BUILD_NUMBER}`, branch: e.BITBUCKET_BRANCH, slug: e.BITBUCKET_REPO_FULL_NAME, root: e.BITBUCKET_CLONE_DIR };
8398
- } }, Ro = { detect({ env: e }) {
8398
+ } }, wo = { detect({ env: e }) {
8399
8399
  return !!e.BITRISE_IO;
8400
8400
  }, configuration({ env: e }) {
8401
8401
  const t = e.BITRISE_PULL_REQUEST === "false" ? void 0 : e.BITRISE_PULL_REQUEST, r = !!t;
8402
8402
  return { name: "Bitrise", service: "bitrise", commit: e.BITRISE_GIT_COMMIT, tag: e.BITRISE_GIT_TAG, build: e.BITRISE_BUILD_NUMBER, buildUrl: e.BITRISE_BUILD_URL, branch: r ? e.BITRISEIO_GIT_BRANCH_DEST : e.BITRISE_GIT_BRANCH, pr: t, isPr: r, prBranch: r ? e.BITRISE_GIT_BRANCH : void 0, slug: e.BITRISE_APP_SLUG };
8403
- } }, To = { detect({ env: e }) {
8403
+ } }, yo = { detect({ env: e }) {
8404
8404
  return !!e.BUDDY_WORKSPACE_ID;
8405
8405
  }, configuration({ env: e }) {
8406
8406
  const t = zr(e.BUDDY_EXECUTION_PULL_REQUEST_ID), r = !!t;
8407
8407
  return { name: "Buddy", service: "buddy", commit: e.BUDDY_EXECUTION_REVISION, tag: e.BUDDY_EXECUTION_TAG, build: e.BUDDY_EXECUTION_ID, buildUrl: e.BUDDY_EXECUTION_URL, branch: r ? e.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH : e.BUDDY_EXECUTION_BRANCH, pr: t, isPr: r, slug: e.BUDDY_REPO_SLUG };
8408
8408
  } }, $e = { exports: {} }, Gt, Jr;
8409
- function wo() {
8409
+ function Ao() {
8410
8410
  if (Jr) return Gt;
8411
8411
  Jr = 1, Gt = n, n.sync = i;
8412
8412
  var e = je;
8413
8413
  function t(o, c) {
8414
8414
  var l = c.pathExt !== void 0 ? c.pathExt : process.env.PATHEXT;
8415
8415
  if (!l || (l = l.split(";"), l.indexOf("") !== -1)) return true;
8416
- for (var d = 0; d < l.length; d++) {
8417
- var _ = l[d].toLowerCase();
8418
- if (_ && o.substr(-_.length).toLowerCase() === _) return true;
8416
+ for (var m = 0; m < l.length; m++) {
8417
+ var R = l[m].toLowerCase();
8418
+ if (R && o.substr(-R.length).toLowerCase() === R) return true;
8419
8419
  }
8420
8420
  return false;
8421
8421
  }
@@ -8425,8 +8425,8 @@ function wo() {
8425
8425
  }
8426
8426
  a(r, "checkStat");
8427
8427
  function n(o, c, l) {
8428
- e.stat(o, function(d, _) {
8429
- l(d, d ? false : r(_, o, c));
8428
+ e.stat(o, function(m, R) {
8429
+ l(m, m ? false : r(R, o, c));
8430
8430
  });
8431
8431
  }
8432
8432
  a(n, "isexe");
@@ -8435,15 +8435,15 @@ function wo() {
8435
8435
  }
8436
8436
  return a(i, "sync"), Gt;
8437
8437
  }
8438
- a(wo, "requireWindows");
8438
+ a(Ao, "requireWindows");
8439
8439
  var $t, Qr;
8440
- function Ao() {
8440
+ function bo() {
8441
8441
  if (Qr) return $t;
8442
8442
  Qr = 1, $t = t, t.sync = r;
8443
8443
  var e = je;
8444
8444
  function t(o, c, l) {
8445
- e.stat(o, function(d, _) {
8446
- l(d, d ? false : n(_, c));
8445
+ e.stat(o, function(m, R) {
8446
+ l(m, m ? false : n(R, c));
8447
8447
  });
8448
8448
  }
8449
8449
  a(t, "isexe");
@@ -8456,24 +8456,24 @@ function Ao() {
8456
8456
  }
8457
8457
  a(n, "checkStat");
8458
8458
  function i(o, c) {
8459
- var l = o.mode, d = o.uid, _ = o.gid, p = c.uid !== void 0 ? c.uid : process.getuid && process.getuid(), w = c.gid !== void 0 ? c.gid : process.getgid && process.getgid(), C = parseInt("100", 8), U = parseInt("010", 8), D = parseInt("001", 8), M = C | U, b = l & D || l & U && _ === w || l & C && d === p || l & M && p === 0;
8459
+ var l = o.mode, m = o.uid, R = o.gid, h = c.uid !== void 0 ? c.uid : process.getuid && process.getuid(), T = c.gid !== void 0 ? c.gid : process.getgid && process.getgid(), C = parseInt("100", 8), v = parseInt("010", 8), D = parseInt("001", 8), M = C | v, b = l & D || l & v && R === T || l & C && m === h || l & M && h === 0;
8460
8460
  return b;
8461
8461
  }
8462
8462
  return a(i, "checkMode"), $t;
8463
8463
  }
8464
- a(Ao, "requireMode");
8464
+ a(bo, "requireMode");
8465
8465
  var Ht, Xr;
8466
- function yo() {
8466
+ function Co() {
8467
8467
  if (Xr) return Ht;
8468
8468
  Xr = 1;
8469
8469
  var e;
8470
- process.platform === "win32" || Ai.TESTING_WINDOWS ? e = wo() : e = Ao(), Ht = t, t.sync = r;
8470
+ process.platform === "win32" || bi.TESTING_WINDOWS ? e = Ao() : e = bo(), Ht = t, t.sync = r;
8471
8471
  function t(n, i, o) {
8472
8472
  if (typeof i == "function" && (o = i, i = {}), !o) {
8473
8473
  if (typeof Promise != "function") throw new TypeError("callback not provided");
8474
8474
  return new Promise(function(c, l) {
8475
- t(n, i || {}, function(d, _) {
8476
- d ? l(d) : c(_);
8475
+ t(n, i || {}, function(m, R) {
8476
+ m ? l(m) : c(R);
8477
8477
  });
8478
8478
  });
8479
8479
  }
@@ -8492,81 +8492,81 @@ function yo() {
8492
8492
  }
8493
8493
  return a(r, "sync"), Ht;
8494
8494
  }
8495
- a(yo, "requireIsexe");
8495
+ a(Co, "requireIsexe");
8496
8496
  var kt, Zr;
8497
- function bo() {
8497
+ function vo() {
8498
8498
  if (Zr) return kt;
8499
8499
  Zr = 1;
8500
- const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t = require$$0$1, r = e ? ";" : ":", n = yo(), i = a((d) => Object.assign(new Error(`not found: ${d}`), { code: "ENOENT" }), "getNotFoundError"), o = a((d, _) => {
8501
- const p = _.colon || r, w = d.match(/\//) || e && d.match(/\\/) ? [""] : [...e ? [process.cwd()] : [], ...(_.path || process.env.PATH || "").split(p)], C = e ? _.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", U = e ? C.split(p) : [""];
8502
- return e && d.indexOf(".") !== -1 && U[0] !== "" && U.unshift(""), { pathEnv: w, pathExt: U, pathExtExe: C };
8503
- }, "getPathInfo"), c = a((d, _, p) => {
8504
- typeof _ == "function" && (p = _, _ = {}), _ || (_ = {});
8505
- const { pathEnv: w, pathExt: C, pathExtExe: U } = o(d, _), D = [], M = a((O) => new Promise((A, L) => {
8506
- if (O === w.length) return _.all && D.length ? A(D) : L(i(d));
8507
- const x = w[O], v = /^".*"$/.test(x) ? x.slice(1, -1) : x, H = t.join(v, d), F = !v && /^\.[\\\/]/.test(d) ? d.slice(0, 2) + H : H;
8508
- A(b(F, O, 0));
8509
- }), "step"), b = a((O, A, L) => new Promise((x, v) => {
8510
- if (L === C.length) return x(M(A + 1));
8500
+ const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t = qe, r = e ? ";" : ":", n = Co(), i = a((m) => Object.assign(new Error(`not found: ${m}`), { code: "ENOENT" }), "getNotFoundError"), o = a((m, R) => {
8501
+ const h = R.colon || r, T = m.match(/\//) || e && m.match(/\\/) ? [""] : [...e ? [process.cwd()] : [], ...(R.path || process.env.PATH || "").split(h)], C = e ? R.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", v = e ? C.split(h) : [""];
8502
+ return e && m.indexOf(".") !== -1 && v[0] !== "" && v.unshift(""), { pathEnv: T, pathExt: v, pathExtExe: C };
8503
+ }, "getPathInfo"), c = a((m, R, h) => {
8504
+ typeof R == "function" && (h = R, R = {}), R || (R = {});
8505
+ const { pathEnv: T, pathExt: C, pathExtExe: v } = o(m, R), D = [], M = a((O) => new Promise((y, L) => {
8506
+ if (O === T.length) return R.all && D.length ? y(D) : L(i(m));
8507
+ const x = T[O], U = /^".*"$/.test(x) ? x.slice(1, -1) : x, H = t.join(U, m), F = !U && /^\.[\\\/]/.test(m) ? m.slice(0, 2) + H : H;
8508
+ y(b(F, O, 0));
8509
+ }), "step"), b = a((O, y, L) => new Promise((x, U) => {
8510
+ if (L === C.length) return x(M(y + 1));
8511
8511
  const H = C[L];
8512
- n(O + H, { pathExt: U }, (F, s) => {
8513
- if (!F && s) if (_.all) D.push(O + H);
8512
+ n(O + H, { pathExt: v }, (F, s) => {
8513
+ if (!F && s) if (R.all) D.push(O + H);
8514
8514
  else return x(O + H);
8515
- return x(b(O, A, L + 1));
8515
+ return x(b(O, y, L + 1));
8516
8516
  });
8517
8517
  }), "subStep");
8518
- return p ? M(0).then((O) => p(null, O), p) : M(0);
8519
- }, "which"), l = a((d, _) => {
8520
- _ = _ || {};
8521
- const { pathEnv: p, pathExt: w, pathExtExe: C } = o(d, _), U = [];
8522
- for (let D = 0; D < p.length; D++) {
8523
- const M = p[D], b = /^".*"$/.test(M) ? M.slice(1, -1) : M, O = t.join(b, d), A = !b && /^\.[\\\/]/.test(d) ? d.slice(0, 2) + O : O;
8524
- for (let L = 0; L < w.length; L++) {
8525
- const x = A + w[L];
8518
+ return h ? M(0).then((O) => h(null, O), h) : M(0);
8519
+ }, "which"), l = a((m, R) => {
8520
+ R = R || {};
8521
+ const { pathEnv: h, pathExt: T, pathExtExe: C } = o(m, R), v = [];
8522
+ for (let D = 0; D < h.length; D++) {
8523
+ const M = h[D], b = /^".*"$/.test(M) ? M.slice(1, -1) : M, O = t.join(b, m), y = !b && /^\.[\\\/]/.test(m) ? m.slice(0, 2) + O : O;
8524
+ for (let L = 0; L < T.length; L++) {
8525
+ const x = y + T[L];
8526
8526
  try {
8527
- if (n.sync(x, { pathExt: C })) if (_.all) U.push(x);
8527
+ if (n.sync(x, { pathExt: C })) if (R.all) v.push(x);
8528
8528
  else return x;
8529
8529
  } catch {
8530
8530
  }
8531
8531
  }
8532
8532
  }
8533
- if (_.all && U.length) return U;
8534
- if (_.nothrow) return null;
8535
- throw i(d);
8533
+ if (R.all && v.length) return v;
8534
+ if (R.nothrow) return null;
8535
+ throw i(m);
8536
8536
  }, "whichSync");
8537
8537
  return kt = c, c.sync = l, kt;
8538
8538
  }
8539
- a(bo, "requireWhich");
8540
- var ct = { exports: {} }, en;
8541
- function Co() {
8542
- if (en) return ct.exports;
8539
+ a(vo, "requireWhich");
8540
+ var ut = { exports: {} }, en;
8541
+ function Uo() {
8542
+ if (en) return ut.exports;
8543
8543
  en = 1;
8544
8544
  const e = a((t = {}) => {
8545
8545
  const r = t.env || process.env;
8546
8546
  return (t.platform || process.platform) !== "win32" ? "PATH" : Object.keys(r).reverse().find((i) => i.toUpperCase() === "PATH") || "Path";
8547
8547
  }, "pathKey");
8548
- return ct.exports = e, ct.exports.default = e, ct.exports;
8548
+ return ut.exports = e, ut.exports.default = e, ut.exports;
8549
8549
  }
8550
- a(Co, "requirePathKey");
8550
+ a(Uo, "requirePathKey");
8551
8551
  var Ft, tn;
8552
- function Uo() {
8552
+ function Bo() {
8553
8553
  if (tn) return Ft;
8554
8554
  tn = 1;
8555
- const e = require$$0$1, t = bo(), r = Co();
8555
+ const e = qe, t = vo(), r = Uo();
8556
8556
  function n(o, c) {
8557
- const l = o.options.env || process.env, d = process.cwd(), _ = o.options.cwd != null, p = _ && process.chdir !== void 0 && !process.chdir.disabled;
8558
- if (p) try {
8557
+ const l = o.options.env || process.env, m = process.cwd(), R = o.options.cwd != null, h = R && process.chdir !== void 0 && !process.chdir.disabled;
8558
+ if (h) try {
8559
8559
  process.chdir(o.options.cwd);
8560
8560
  } catch {
8561
8561
  }
8562
- let w;
8562
+ let T;
8563
8563
  try {
8564
- w = t.sync(o.command, { path: l[r({ env: l })], pathExt: c ? e.delimiter : void 0 });
8564
+ T = t.sync(o.command, { path: l[r({ env: l })], pathExt: c ? e.delimiter : void 0 });
8565
8565
  } catch {
8566
8566
  } finally {
8567
- p && process.chdir(d);
8567
+ h && process.chdir(m);
8568
8568
  }
8569
- return w && (w = e.resolve(_ ? o.options.cwd : "", w)), w;
8569
+ return T && (T = e.resolve(R ? o.options.cwd : "", T)), T;
8570
8570
  }
8571
8571
  a(n, "resolveCommandAttempt");
8572
8572
  function i(o) {
@@ -8574,10 +8574,10 @@ function Uo() {
8574
8574
  }
8575
8575
  return a(i, "resolveCommand"), Ft = i, Ft;
8576
8576
  }
8577
- a(Uo, "requireResolveCommand");
8578
- var ut = {}, rn;
8579
- function vo() {
8580
- if (rn) return ut;
8577
+ a(Bo, "requireResolveCommand");
8578
+ var lt = {}, rn;
8579
+ function Oo() {
8580
+ if (rn) return lt;
8581
8581
  rn = 1;
8582
8582
  const e = /([()\][%!^"`<>&|;, *?])/g;
8583
8583
  function t(n) {
@@ -8587,19 +8587,19 @@ function vo() {
8587
8587
  function r(n, i) {
8588
8588
  return n = `${n}`, n = n.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"'), n = n.replace(/(?=(\\+?)?)\1$/, "$1$1"), n = `"${n}"`, n = n.replace(e, "^$1"), i && (n = n.replace(e, "^$1")), n;
8589
8589
  }
8590
- return a(r, "escapeArgument"), ut.command = t, ut.argument = r, ut;
8590
+ return a(r, "escapeArgument"), lt.command = t, lt.argument = r, lt;
8591
8591
  }
8592
- a(vo, "require_escape");
8592
+ a(Oo, "require_escape");
8593
8593
  var jt, nn;
8594
- function Bo() {
8594
+ function Lo() {
8595
8595
  return nn || (nn = 1, jt = /^#!(.*)/), jt;
8596
8596
  }
8597
- a(Bo, "requireShebangRegex");
8597
+ a(Lo, "requireShebangRegex");
8598
8598
  var qt, on;
8599
- function Oo() {
8599
+ function Po() {
8600
8600
  if (on) return qt;
8601
8601
  on = 1;
8602
- const e = Bo();
8602
+ const e = Lo();
8603
8603
  return qt = a((t = "") => {
8604
8604
  const r = t.match(e);
8605
8605
  if (!r) return null;
@@ -8607,12 +8607,12 @@ function Oo() {
8607
8607
  return o === "env" ? i : i ? `${o} ${i}` : o;
8608
8608
  }, "shebangCommand"), qt;
8609
8609
  }
8610
- a(Oo, "requireShebangCommand");
8610
+ a(Po, "requireShebangCommand");
8611
8611
  var Wt, sn;
8612
- function Lo() {
8612
+ function No() {
8613
8613
  if (sn) return Wt;
8614
8614
  sn = 1;
8615
- const e = je, t = Oo();
8615
+ const e = je, t = Po();
8616
8616
  function r(n) {
8617
8617
  const o = Buffer.alloc(150);
8618
8618
  let c;
@@ -8624,40 +8624,40 @@ function Lo() {
8624
8624
  }
8625
8625
  return a(r, "readShebang"), Wt = r, Wt;
8626
8626
  }
8627
- a(Lo, "requireReadShebang");
8627
+ a(No, "requireReadShebang");
8628
8628
  var Kt, an;
8629
- function Po() {
8629
+ function Do() {
8630
8630
  if (an) return Kt;
8631
8631
  an = 1;
8632
- const e = require$$0$1, t = Uo(), r = vo(), n = Lo(), i = process.platform === "win32", o = /\.(?:com|exe)$/i, c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
8633
- function l(p) {
8634
- p.file = t(p);
8635
- const w = p.file && n(p.file);
8636
- return w ? (p.args.unshift(p.file), p.command = w, t(p)) : p.file;
8632
+ const e = qe, t = Bo(), r = Oo(), n = No(), i = process.platform === "win32", o = /\.(?:com|exe)$/i, c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
8633
+ function l(h) {
8634
+ h.file = t(h);
8635
+ const T = h.file && n(h.file);
8636
+ return T ? (h.args.unshift(h.file), h.command = T, t(h)) : h.file;
8637
8637
  }
8638
8638
  a(l, "detectShebang");
8639
- function d(p) {
8640
- if (!i) return p;
8641
- const w = l(p), C = !o.test(w);
8642
- if (p.options.forceShell || C) {
8643
- const U = c.test(w);
8644
- p.command = e.normalize(p.command), p.command = r.command(p.command), p.args = p.args.map((M) => r.argument(M, U));
8645
- const D = [p.command].concat(p.args).join(" ");
8646
- p.args = ["/d", "/s", "/c", `"${D}"`], p.command = process.env.comspec || "cmd.exe", p.options.windowsVerbatimArguments = true;
8647
- }
8648
- return p;
8649
- }
8650
- a(d, "parseNonShell");
8651
- function _(p, w, C) {
8652
- w && !Array.isArray(w) && (C = w, w = null), w = w ? w.slice(0) : [], C = Object.assign({}, C);
8653
- const U = { command: p, args: w, options: C, file: void 0, original: { command: p, args: w } };
8654
- return C.shell ? U : d(U);
8655
- }
8656
- return a(_, "parse"), Kt = _, Kt;
8657
- }
8658
- a(Po, "requireParse");
8639
+ function m(h) {
8640
+ if (!i) return h;
8641
+ const T = l(h), C = !o.test(T);
8642
+ if (h.options.forceShell || C) {
8643
+ const v = c.test(T);
8644
+ h.command = e.normalize(h.command), h.command = r.command(h.command), h.args = h.args.map((M) => r.argument(M, v));
8645
+ const D = [h.command].concat(h.args).join(" ");
8646
+ h.args = ["/d", "/s", "/c", `"${D}"`], h.command = process.env.comspec || "cmd.exe", h.options.windowsVerbatimArguments = true;
8647
+ }
8648
+ return h;
8649
+ }
8650
+ a(m, "parseNonShell");
8651
+ function R(h, T, C) {
8652
+ T && !Array.isArray(T) && (C = T, T = null), T = T ? T.slice(0) : [], C = Object.assign({}, C);
8653
+ const v = { command: h, args: T, options: C, file: void 0, original: { command: h, args: T } };
8654
+ return C.shell ? v : m(v);
8655
+ }
8656
+ return a(R, "parse"), Kt = R, Kt;
8657
+ }
8658
+ a(Do, "requireParse");
8659
8659
  var Vt, cn;
8660
- function No() {
8660
+ function Mo() {
8661
8661
  if (cn) return Vt;
8662
8662
  cn = 1;
8663
8663
  const e = process.platform === "win32";
@@ -8668,10 +8668,10 @@ function No() {
8668
8668
  function r(o, c) {
8669
8669
  if (!e) return;
8670
8670
  const l = o.emit;
8671
- o.emit = function(d, _) {
8672
- if (d === "exit") {
8673
- const p = n(_, c);
8674
- if (p) return l.call(o, "error", p);
8671
+ o.emit = function(m, R) {
8672
+ if (m === "exit") {
8673
+ const h = n(R, c);
8674
+ if (h) return l.call(o, "error", h);
8675
8675
  }
8676
8676
  return l.apply(o, arguments);
8677
8677
  };
@@ -8686,93 +8686,93 @@ function No() {
8686
8686
  }
8687
8687
  return a(i, "verifyENOENTSync"), Vt = { hookChildProcess: r, verifyENOENT: n, verifyENOENTSync: i, notFoundError: t }, Vt;
8688
8688
  }
8689
- a(No, "requireEnoent");
8689
+ a(Mo, "requireEnoent");
8690
8690
  var un;
8691
- function Do() {
8691
+ function xo() {
8692
8692
  if (un) return $e.exports;
8693
8693
  un = 1;
8694
- const e = require$$0$2, t = Po(), r = No();
8694
+ const e = require$$0$2, t = Do(), r = Mo();
8695
8695
  function n(o, c, l) {
8696
- const d = t(o, c, l), _ = e.spawn(d.command, d.args, d.options);
8697
- return r.hookChildProcess(_, d), _;
8696
+ const m = t(o, c, l), R = e.spawn(m.command, m.args, m.options);
8697
+ return r.hookChildProcess(R, m), R;
8698
8698
  }
8699
8699
  a(n, "spawn");
8700
8700
  function i(o, c, l) {
8701
- const d = t(o, c, l), _ = e.spawnSync(d.command, d.args, d.options);
8702
- return _.error = _.error || r.verifyENOENTSync(_.status, d), _;
8701
+ const m = t(o, c, l), R = e.spawnSync(m.command, m.args, m.options);
8702
+ return R.error = R.error || r.verifyENOENTSync(R.status, m), R;
8703
8703
  }
8704
8704
  return a(i, "spawnSync"), $e.exports = n, $e.exports.spawn = n, $e.exports.sync = i, $e.exports._parse = t, $e.exports._enoent = r, $e.exports;
8705
8705
  }
8706
- a(Do, "requireCrossSpawn");
8707
- var Mo = Do(), xo = Cr(Mo);
8708
- function Go(e) {
8706
+ a(xo, "requireCrossSpawn");
8707
+ var Go = xo(), $o = Cr(Go);
8708
+ function Ho(e) {
8709
8709
  const t = typeof e == "string" ? `
8710
8710
  ` : 10, r = typeof e == "string" ? "\r" : 13;
8711
8711
  return e[e.length - 1] === t && (e = e.slice(0, -1)), e[e.length - 1] === r && (e = e.slice(0, -1)), e;
8712
8712
  }
8713
- a(Go, "stripFinalNewline");
8713
+ a(Ho, "stripFinalNewline");
8714
8714
  function ln(e = {}) {
8715
8715
  const { env: t = process.env, platform: r = process.platform } = e;
8716
8716
  return r !== "win32" ? "PATH" : Object.keys(t).reverse().find((n) => n.toUpperCase() === "PATH") || "Path";
8717
8717
  }
8718
8718
  a(ln, "pathKey");
8719
- const $o = a(({ cwd: e = y.cwd(), path: t = y.env[ln()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
8719
+ const ko = a(({ cwd: e = y.cwd(), path: t = y.env[ln()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
8720
8720
  const o = e instanceof URL ? node_url.fileURLToPath(e) : e, c = path.resolve(o), l = [];
8721
- return r && Ho(l, c), i && ko(l, n, c), [...l, t].join(path.delimiter);
8722
- }, "npmRunPath"), Ho = a((e, t) => {
8721
+ return r && Fo(l, c), i && jo(l, n, c), [...l, t].join(path.delimiter);
8722
+ }, "npmRunPath"), Fo = a((e, t) => {
8723
8723
  let r;
8724
8724
  for (; r !== t; ) e.push(path.join(t, "node_modules/.bin")), r = t, t = path.resolve(t, "..");
8725
- }, "applyPreferLocal"), ko = a((e, t, r) => {
8725
+ }, "applyPreferLocal"), jo = a((e, t, r) => {
8726
8726
  const n = t instanceof URL ? node_url.fileURLToPath(t) : t;
8727
8727
  e.push(path.resolve(r, n, ".."));
8728
- }, "applyExecPath"), Fo = a(({ env: e = y.env, ...t } = {}) => {
8728
+ }, "applyExecPath"), qo = a(({ env: e = y.env, ...t } = {}) => {
8729
8729
  e = { ...e };
8730
8730
  const r = ln({ env: e });
8731
- return t.path = e[r], e[r] = $o(t), e;
8732
- }, "npmRunPathEnv"), jo = a(() => {
8731
+ return t.path = e[r], e[r] = ko(t), e;
8732
+ }, "npmRunPathEnv"), Wo = a(() => {
8733
8733
  const e = hn - fn + 1;
8734
- return Array.from({ length: e }, qo);
8735
- }, "getRealtimeSignals"), qo = a((e, t) => ({ name: `SIGRT${t + 1}`, number: fn + t, action: "terminate", description: "Application-specific signal (realtime)", standard: "posix" }), "getRealtimeSignal"), fn = 34, hn = 64, Wo = [{ 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" }], dn = a(() => {
8736
- const e = jo();
8737
- return [...Wo, ...e].map(Ko);
8738
- }, "getSignals"), Ko = a(({ name: e, number: t, description: r, action: n, forced: i = false, standard: o }) => {
8734
+ return Array.from({ length: e }, Ko);
8735
+ }, "getRealtimeSignals"), Ko = a((e, t) => ({ name: `SIGRT${t + 1}`, number: fn + t, action: "terminate", description: "Application-specific signal (realtime)", standard: "posix" }), "getRealtimeSignal"), fn = 34, hn = 64, Vo = [{ 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" }], dn = a(() => {
8736
+ const e = Wo();
8737
+ return [...Vo, ...e].map(Yo);
8738
+ }, "getSignals"), Yo = a(({ name: e, number: t, description: r, action: n, forced: i = false, standard: o }) => {
8739
8739
  const { signals: { [e]: c } } = node_os.constants, l = c !== void 0;
8740
8740
  return { name: e, number: l ? c : t, description: r, supported: l, action: n, forced: i, standard: o };
8741
- }, "normalizeSignal"), Vo = a(() => {
8741
+ }, "normalizeSignal"), zo = a(() => {
8742
8742
  const e = dn();
8743
- return Object.fromEntries(e.map(Yo));
8744
- }, "getSignalsByName"), Yo = a(({ name: e, number: t, description: r, supported: n, action: i, forced: o, standard: c }) => [e, { name: e, number: t, description: r, supported: n, action: i, forced: o, standard: c }], "getSignalByName"), zo = Vo(), Jo = a(() => {
8745
- const e = dn(), t = hn + 1, r = Array.from({ length: t }, (n, i) => Qo(i, e));
8743
+ return Object.fromEntries(e.map(Jo));
8744
+ }, "getSignalsByName"), Jo = a(({ name: e, number: t, description: r, supported: n, action: i, forced: o, standard: c }) => [e, { name: e, number: t, description: r, supported: n, action: i, forced: o, standard: c }], "getSignalByName"), Qo = zo(), Xo = a(() => {
8745
+ const e = dn(), t = hn + 1, r = Array.from({ length: t }, (n, i) => Zo(i, e));
8746
8746
  return Object.assign({}, ...r);
8747
- }, "getSignalsByNumber"), Qo = a((e, t) => {
8748
- const r = Xo(e, t);
8747
+ }, "getSignalsByNumber"), Zo = a((e, t) => {
8748
+ const r = es(e, t);
8749
8749
  if (r === void 0) return {};
8750
- const { name: n, description: i, supported: o, action: c, forced: l, standard: d } = r;
8751
- return { [e]: { name: n, number: e, description: i, supported: o, action: c, forced: l, standard: d } };
8752
- }, "getSignalByNumber"), Xo = a((e, t) => {
8750
+ const { name: n, description: i, supported: o, action: c, forced: l, standard: m } = r;
8751
+ return { [e]: { name: n, number: e, description: i, supported: o, action: c, forced: l, standard: m } };
8752
+ }, "getSignalByNumber"), es = a((e, t) => {
8753
8753
  const r = t.find(({ name: n }) => node_os.constants.signals[n] === e);
8754
8754
  return r !== void 0 ? r : t.find((n) => n.number === e);
8755
8755
  }, "findSignalByNumber");
8756
- Jo();
8757
- const Zo = a(({ timedOut: e, timeout: t, errorCode: r, signal: n, signalDescription: i, exitCode: o, isCanceled: c }) => e ? `timed out after ${t} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${i})` : o !== void 0 ? `failed with exit code ${o}` : "failed", "getErrorPrefix"), pn = a(({ stdout: e, stderr: t, all: r, error: n, signal: i, exitCode: o, command: c, escapedCommand: l, timedOut: d, isCanceled: _, killed: p, parsed: { options: { timeout: w, cwd: C = y.cwd() } } }) => {
8756
+ Xo();
8757
+ const ts = a(({ timedOut: e, timeout: t, errorCode: r, signal: n, signalDescription: i, exitCode: o, isCanceled: c }) => e ? `timed out after ${t} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${i})` : o !== void 0 ? `failed with exit code ${o}` : "failed", "getErrorPrefix"), pn = a(({ stdout: e, stderr: t, all: r, error: n, signal: i, exitCode: o, command: c, escapedCommand: l, timedOut: m, isCanceled: R, killed: h, parsed: { options: { timeout: T, cwd: C = y.cwd() } } }) => {
8758
8758
  o = o === null ? void 0 : o, i = i === null ? void 0 : i;
8759
- const U = i === void 0 ? void 0 : zo[i].description, D = n && n.code, b = `Command ${Zo({ timedOut: d, timeout: w, errorCode: D, signal: i, signalDescription: U, exitCode: o, isCanceled: _ })}: ${c}`, O = Object.prototype.toString.call(n) === "[object Error]", A = O ? `${b}
8760
- ${n.message}` : b, L = [A, t, e].filter(Boolean).join(`
8759
+ const v = i === void 0 ? void 0 : Qo[i].description, D = n && n.code, b = `Command ${ts({ timedOut: m, timeout: T, errorCode: D, signal: i, signalDescription: v, exitCode: o, isCanceled: R })}: ${c}`, O = Object.prototype.toString.call(n) === "[object Error]", y = O ? `${b}
8760
+ ${n.message}` : b, L = [y, t, e].filter(Boolean).join(`
8761
8761
  `);
8762
- return O ? (n.originalMessage = n.message, n.message = L) : n = new Error(L), n.shortMessage = A, n.command = c, n.escapedCommand = l, n.exitCode = o, n.signal = i, n.signalDescription = U, n.stdout = e, n.stderr = t, n.cwd = C, r !== void 0 && (n.all = r), "bufferedData" in n && delete n.bufferedData, n.failed = true, n.timedOut = !!d, n.isCanceled = _, n.killed = p && !d, n;
8763
- }, "makeError"), lt = ["stdin", "stdout", "stderr"], es = a((e) => lt.some((t) => e[t] !== void 0), "hasAlias"), ts = a((e) => {
8762
+ return O ? (n.originalMessage = n.message, n.message = L) : n = new Error(L), n.shortMessage = y, n.command = c, n.escapedCommand = l, n.exitCode = o, n.signal = i, n.signalDescription = v, n.stdout = e, n.stderr = t, n.cwd = C, r !== void 0 && (n.all = r), "bufferedData" in n && delete n.bufferedData, n.failed = true, n.timedOut = !!m, n.isCanceled = R, n.killed = h && !m, n;
8763
+ }, "makeError"), ft = ["stdin", "stdout", "stderr"], rs = a((e) => ft.some((t) => e[t] !== void 0), "hasAlias"), ns = a((e) => {
8764
8764
  if (!e) return;
8765
8765
  const { stdio: t } = e;
8766
- if (t === void 0) return lt.map((n) => e[n]);
8767
- if (es(e)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${lt.map((n) => `\`${n}\``).join(", ")}`);
8766
+ if (t === void 0) return ft.map((n) => e[n]);
8767
+ if (rs(e)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ft.map((n) => `\`${n}\``).join(", ")}`);
8768
8768
  if (typeof t == "string") return t;
8769
8769
  if (!Array.isArray(t)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);
8770
- const r = Math.max(t.length, lt.length);
8770
+ const r = Math.max(t.length, ft.length);
8771
8771
  return Array.from({ length: r }, (n, i) => t[i]);
8772
8772
  }, "normalizeStdio"), Fe = [];
8773
8773
  Fe.push("SIGHUP", "SIGINT", "SIGTERM"), process.platform !== "win32" && Fe.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT"), process.platform === "linux" && Fe.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
8774
- const ft = a((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"), Yt = Symbol.for("signal-exit emitter"), zt = globalThis, rs = Object.defineProperty.bind(Object);
8775
- class ns {
8774
+ const ht = a((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"), Yt = Symbol.for("signal-exit emitter"), zt = globalThis, is = Object.defineProperty.bind(Object);
8775
+ class os {
8776
8776
  static {
8777
8777
  a(this, "Emitter");
8778
8778
  }
@@ -8782,7 +8782,7 @@ class ns {
8782
8782
  id = Math.random();
8783
8783
  constructor() {
8784
8784
  if (zt[Yt]) return zt[Yt];
8785
- rs(zt, Yt, { value: this, writable: false, enumerable: false, configurable: false });
8785
+ is(zt, Yt, { value: this, writable: false, enumerable: false, configurable: false });
8786
8786
  }
8787
8787
  on(t, r) {
8788
8788
  this.listeners[t].push(r);
@@ -8804,14 +8804,14 @@ class mn {
8804
8804
  a(this, "SignalExitBase");
8805
8805
  }
8806
8806
  }
8807
- const is = a((e) => ({ onExit(t, r) {
8807
+ const ss = a((e) => ({ onExit(t, r) {
8808
8808
  return e.onExit(t, r);
8809
8809
  }, load() {
8810
8810
  return e.load();
8811
8811
  }, unload() {
8812
8812
  return e.unload();
8813
8813
  } }), "signalExitWrap");
8814
- class os extends mn {
8814
+ class as extends mn {
8815
8815
  static {
8816
8816
  a(this, "SignalExitFallback");
8817
8817
  }
@@ -8824,12 +8824,12 @@ class os extends mn {
8824
8824
  unload() {
8825
8825
  }
8826
8826
  }
8827
- class ss extends mn {
8827
+ class cs extends mn {
8828
8828
  static {
8829
8829
  a(this, "SignalExit");
8830
8830
  }
8831
8831
  #s = Jt.platform === "win32" ? "SIGINT" : "SIGHUP";
8832
- #t = new ns();
8832
+ #t = new os();
8833
8833
  #e;
8834
8834
  #i;
8835
8835
  #o;
@@ -8850,7 +8850,7 @@ class ss extends mn {
8850
8850
  this.#o = t.reallyExit, this.#i = t.emit;
8851
8851
  }
8852
8852
  onExit(t, r) {
8853
- if (!ft(this.#e)) return () => {
8853
+ if (!ht(this.#e)) return () => {
8854
8854
  };
8855
8855
  this.#r === false && this.load();
8856
8856
  const n = r?.alwaysLast ? "afterExit" : "exit";
@@ -8880,11 +8880,11 @@ class ss extends mn {
8880
8880
  }), this.#e.emit = this.#i, this.#e.reallyExit = this.#o, this.#t.count -= 1);
8881
8881
  }
8882
8882
  #a(t) {
8883
- return ft(this.#e) ? (this.#e.exitCode = t || 0, this.#t.emit("exit", this.#e.exitCode, null), this.#o.call(this.#e, this.#e.exitCode)) : 0;
8883
+ return ht(this.#e) ? (this.#e.exitCode = t || 0, this.#t.emit("exit", this.#e.exitCode, null), this.#o.call(this.#e, this.#e.exitCode)) : 0;
8884
8884
  }
8885
8885
  #c(t, ...r) {
8886
8886
  const n = this.#i;
8887
- if (t === "exit" && ft(this.#e)) {
8887
+ if (t === "exit" && ht(this.#e)) {
8888
8888
  typeof r[0] == "number" && (this.#e.exitCode = r[0]);
8889
8889
  const i = n.call(this.#e, t, ...r);
8890
8890
  return this.#t.emit("exit", this.#e.exitCode, null), i;
@@ -8892,13 +8892,13 @@ class ss extends mn {
8892
8892
  }
8893
8893
  }
8894
8894
  const Jt = globalThis.process;
8895
- is(ft(Jt) ? new ss(Jt) : new os());
8896
- function as(e) {
8895
+ ss(ht(Jt) ? new cs(Jt) : new as());
8896
+ function us(e) {
8897
8897
  return e !== null && typeof e == "object" && typeof e.pipe == "function";
8898
8898
  }
8899
- a(as, "isStream"), new TextEncoder();
8899
+ a(us, "isStream"), new TextEncoder();
8900
8900
  var Qt, En;
8901
- function cs() {
8901
+ function ls() {
8902
8902
  if (En) return Qt;
8903
8903
  En = 1;
8904
8904
  const { PassThrough: e } = require$$0;
@@ -8918,56 +8918,56 @@ function cs() {
8918
8918
  }
8919
8919
  }, "mergeStream"), Qt;
8920
8920
  }
8921
- a(cs, "requireMergeStream"), cs();
8922
- const us = a((e) => {
8921
+ a(ls, "requireMergeStream"), ls();
8922
+ const fs = a((e) => {
8923
8923
  if (e !== void 0) throw new TypeError("The `input` and `inputFile` options cannot be both set.");
8924
- }, "validateInputOptions"), ls = a(({ input: e, inputFile: t }) => typeof t != "string" ? e : (us(e), node_fs.readFileSync(t)), "getInputSync"), fs = a((e) => {
8925
- const t = ls(e);
8926
- if (as(t)) throw new TypeError("The `input` option cannot be a stream in sync mode");
8924
+ }, "validateInputOptions"), hs = a(({ input: e, inputFile: t }) => typeof t != "string" ? e : (fs(e), node_fs.readFileSync(t)), "getInputSync"), ds = a((e) => {
8925
+ const t = hs(e);
8926
+ if (us(t)) throw new TypeError("The `input` option cannot be a stream in sync mode");
8927
8927
  return t;
8928
- }, "handleInputSync"), hs = (async () => {
8928
+ }, "handleInputSync"), ps = (async () => {
8929
8929
  })().constructor.prototype;
8930
- ["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(hs, e)]);
8931
- const _n = a((e, t = []) => Array.isArray(t) ? [e, ...t] : [e], "normalizeArgs"), ds = /^[\w.-]+$/, ps = a((e) => typeof e != "string" || ds.test(e) ? e : `"${e.replaceAll('"', '\\"')}"`, "escapeArg"), ms = a((e, t) => _n(e, t).join(" "), "joinCommand"), Es = a((e, t) => _n(e, t).map((r) => ps(r)).join(" "), "getEscapedCommand"), _s = node_util.debuglog("execa").enabled, ht = a((e, t) => String(e).padStart(t, "0"), "padField"), gs = a(() => {
8930
+ ["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(ps, e)]);
8931
+ const _n = a((e, t = []) => Array.isArray(t) ? [e, ...t] : [e], "normalizeArgs"), ms = /^[\w.-]+$/, Es = a((e) => typeof e != "string" || ms.test(e) ? e : `"${e.replaceAll('"', '\\"')}"`, "escapeArg"), _s = a((e, t) => _n(e, t).join(" "), "joinCommand"), gs = a((e, t) => _n(e, t).map((r) => Es(r)).join(" "), "getEscapedCommand"), Is = node_util.debuglog("execa").enabled, dt = a((e, t) => String(e).padStart(t, "0"), "padField"), Ss = a(() => {
8932
8932
  const e = /* @__PURE__ */ new Date();
8933
- return `${ht(e.getHours(), 2)}:${ht(e.getMinutes(), 2)}:${ht(e.getSeconds(), 2)}.${ht(e.getMilliseconds(), 3)}`;
8934
- }, "getTimestamp"), Is = a((e, { verbose: t }) => {
8935
- t && y.stderr.write(`[${gs()}] ${e}
8933
+ return `${dt(e.getHours(), 2)}:${dt(e.getMinutes(), 2)}:${dt(e.getSeconds(), 2)}.${dt(e.getMilliseconds(), 3)}`;
8934
+ }, "getTimestamp"), Rs = a((e, { verbose: t }) => {
8935
+ t && y.stderr.write(`[${Ss()}] ${e}
8936
8936
  `);
8937
- }, "logCommand"), Ss = 1e3 * 1e3 * 100, Rs = a(({ env: e, extendEnv: t, preferLocal: r, localDir: n, execPath: i }) => {
8937
+ }, "logCommand"), Ts = 1e3 * 1e3 * 100, ws = a(({ env: e, extendEnv: t, preferLocal: r, localDir: n, execPath: i }) => {
8938
8938
  const o = t ? { ...y.env, ...e } : e;
8939
- return r ? Fo({ env: o, cwd: n, execPath: i }) : o;
8940
- }, "getEnv"), Ts = a((e, t, r = {}) => {
8941
- const n = xo._parse(e, t, r);
8942
- return e = n.command, t = n.args, r = n.options, r = { maxBuffer: Ss, 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: _s, ...r }, r.env = Rs(r), r.stdio = ts(r), y.platform === "win32" && path.basename(e, ".exe") === "cmd" && t.unshift("/q"), { file: e, args: t, options: r, parsed: n };
8943
- }, "handleArguments"), gn = a((e, t, r) => typeof t != "string" && !node_buffer.Buffer.isBuffer(t) ? r === void 0 ? void 0 : "" : e.stripFinalNewline ? Go(t) : t, "handleOutput");
8939
+ return r ? qo({ env: o, cwd: n, execPath: i }) : o;
8940
+ }, "getEnv"), ys = a((e, t, r = {}) => {
8941
+ const n = $o._parse(e, t, r);
8942
+ return e = n.command, t = n.args, r = n.options, r = { maxBuffer: Ts, 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: Is, ...r }, r.env = ws(r), r.stdio = ns(r), y.platform === "win32" && path.basename(e, ".exe") === "cmd" && t.unshift("/q"), { file: e, args: t, options: r, parsed: n };
8943
+ }, "handleArguments"), gn = a((e, t, r) => typeof t != "string" && !node_buffer.Buffer.isBuffer(t) ? r === void 0 ? void 0 : "" : e.stripFinalNewline ? Ho(t) : t, "handleOutput");
8944
8944
  function Xt(e, t, r) {
8945
- const n = Ts(e, t, r), i = ms(e, t), o = Es(e, t);
8946
- Is(o, n.options);
8947
- const c = fs(n.options);
8945
+ const n = ys(e, t, r), i = _s(e, t), o = gs(e, t);
8946
+ Rs(o, n.options);
8947
+ const c = ds(n.options);
8948
8948
  let l;
8949
8949
  try {
8950
8950
  l = childProcess.spawnSync(n.file, n.args, { ...n.options, input: c });
8951
- } catch (p) {
8952
- throw pn({ error: p, stdout: "", stderr: "", all: "", command: i, escapedCommand: o, parsed: n, timedOut: false, isCanceled: false, killed: false });
8951
+ } catch (h) {
8952
+ throw pn({ error: h, stdout: "", stderr: "", all: "", command: i, escapedCommand: o, parsed: n, timedOut: false, isCanceled: false, killed: false });
8953
8953
  }
8954
- const d = gn(n.options, l.stdout, l.error), _ = gn(n.options, l.stderr, l.error);
8954
+ const m = gn(n.options, l.stdout, l.error), R = gn(n.options, l.stderr, l.error);
8955
8955
  if (l.error || l.status !== 0 || l.signal !== null) {
8956
- const p = pn({ stdout: d, stderr: _, error: l.error, signal: l.signal, exitCode: l.status, command: i, escapedCommand: o, parsed: n, timedOut: l.error && l.error.code === "ETIMEDOUT", isCanceled: false, killed: l.signal !== null });
8957
- if (!n.options.reject) return p;
8958
- throw p;
8956
+ const h = pn({ stdout: m, stderr: R, error: l.error, signal: l.signal, exitCode: l.status, command: i, escapedCommand: o, parsed: n, timedOut: l.error && l.error.code === "ETIMEDOUT", isCanceled: false, killed: l.signal !== null });
8957
+ if (!n.options.reject) return h;
8958
+ throw h;
8959
8959
  }
8960
- return { command: i, escapedCommand: o, exitCode: 0, stdout: d, stderr: _, failed: false, timedOut: false, isCanceled: false, killed: false };
8960
+ return { command: i, escapedCommand: o, exitCode: 0, stdout: m, stderr: R, failed: false, timedOut: false, isCanceled: false, killed: false };
8961
8961
  }
8962
8962
  a(Xt, "execaSync");
8963
- function dt(e) {
8963
+ function pt(e) {
8964
8964
  try {
8965
8965
  return Xt("git", ["rev-parse", "HEAD"], e).stdout;
8966
8966
  } catch {
8967
8967
  return;
8968
8968
  }
8969
8969
  }
8970
- a(dt, "head");
8970
+ a(pt, "head");
8971
8971
  function Zt(e) {
8972
8972
  try {
8973
8973
  const t = Xt("git", ["rev-parse", "--abbrev-ref", "HEAD"], e).stdout;
@@ -8981,122 +8981,122 @@ function Zt(e) {
8981
8981
  }
8982
8982
  }
8983
8983
  a(Zt, "branch");
8984
- const In = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, ws = /^\/(.*)\.git$/;
8985
- function As(e) {
8984
+ const In = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, As = /^\/(.*)\.git$/;
8985
+ function bs(e) {
8986
8986
  if (e) {
8987
8987
  if (e.match(In)) return e.replace(In, "$1");
8988
8988
  try {
8989
- return new URL(e).pathname.replace(ws, "$1");
8989
+ return new URL(e).pathname.replace(As, "$1");
8990
8990
  } catch {
8991
8991
  return;
8992
8992
  }
8993
8993
  }
8994
8994
  }
8995
- a(As, "getSlugFromGitURL");
8996
- var ys = { detect({ env: e }) {
8995
+ a(bs, "getSlugFromGitURL");
8996
+ var Cs = { detect({ env: e }) {
8997
8997
  return !!e.BUILDKITE;
8998
8998
  }, configuration({ env: e }) {
8999
8999
  const t = e.BUILDKITE_PULL_REQUEST === "false" ? void 0 : e.BUILDKITE_PULL_REQUEST, r = !!t;
9000
- return { name: "Buildkite", service: "buildkite", build: e.BUILDKITE_BUILD_NUMBER, buildUrl: e.BUILDKITE_BUILD_URL, commit: e.BUILDKITE_COMMIT, tag: e.BUILDKITE_TAG, branch: r ? e.BUILDKITE_PULL_REQUEST_BASE_BRANCH : e.BUILDKITE_BRANCH, slug: As(e.BUILDKITE_REPO), pr: t, isPr: r, prBranch: r ? e.BUILDKITE_BRANCH : void 0, root: e.BUILDKITE_BUILD_CHECKOUT_PATH };
9001
- } }, bs = { detect({ env: e }) {
9000
+ return { name: "Buildkite", service: "buildkite", build: e.BUILDKITE_BUILD_NUMBER, buildUrl: e.BUILDKITE_BUILD_URL, commit: e.BUILDKITE_COMMIT, tag: e.BUILDKITE_TAG, branch: r ? e.BUILDKITE_PULL_REQUEST_BASE_BRANCH : e.BUILDKITE_BRANCH, slug: bs(e.BUILDKITE_REPO), pr: t, isPr: r, prBranch: r ? e.BUILDKITE_BRANCH : void 0, root: e.BUILDKITE_BUILD_CHECKOUT_PATH };
9001
+ } }, vs = { detect({ env: e }) {
9002
9002
  return !!e.CIRCLECI;
9003
9003
  }, configuration({ env: e }) {
9004
9004
  const t = e.CIRCLE_PR_NUMBER || zr(e.CIRCLE_PULL_REQUEST || e.CI_PULL_REQUEST), r = !!t;
9005
9005
  return { name: "CircleCI", service: "circleci", build: e.CIRCLE_BUILD_NUM, buildUrl: e.CIRCLE_BUILD_URL, job: `${e.CIRCLE_BUILD_NUM}.${e.CIRCLE_NODE_INDEX}`, commit: e.CIRCLE_SHA1, tag: e.CIRCLE_TAG, branch: r ? void 0 : e.CIRCLE_BRANCH, pr: t, isPr: r, prBranch: r ? e.CIRCLE_BRANCH : void 0, slug: `${e.CIRCLE_PROJECT_USERNAME}/${e.CIRCLE_PROJECT_REPONAME}` };
9006
9006
  } };
9007
9007
  const Sn = "https://cirrus-ci.com";
9008
- var Cs = { detect({ env: e }) {
9008
+ var Us = { detect({ env: e }) {
9009
9009
  return !!e.CIRRUS_CI;
9010
9010
  }, configuration({ env: e }) {
9011
9011
  const t = e.CIRRUS_PR, r = !!t;
9012
9012
  return { name: "Cirrus CI", service: "cirrus", commit: e.CIRRUS_CHANGE_IN_REPO, tag: e.CIRRUS_TAG, build: e.CIRRUS_BUILD_ID, buildUrl: `${Sn}/build/${e.CIRRUS_BUILD_ID}`, job: e.CIRRUS_TASK_ID, jobUrl: `${Sn}/task/${e.CIRRUS_TASK_ID}`, branch: r ? e.CIRRUS_BASE_BRANCH : e.CIRRUS_BRANCH, pr: t, isPr: r, prBranch: r ? e.CIRRUS_BRANCH : void 0, slug: e.CIRRUS_REPO_FULL_NAME, root: e.CIRRUS_WORKING_DIR };
9013
- } }, Us = { detect({ env: e }) {
9013
+ } }, Bs = { detect({ env: e }) {
9014
9014
  return e.CF_PAGES === "1";
9015
9015
  }, configuration({ env: e }) {
9016
9016
  return { name: "Cloudflare Pages", service: "cloudflarePages", commit: e.CF_PAGES_COMMIT_SHA, branch: e.CF_PAGES_BRANCH, root: e.PWD };
9017
- } }, vs = { detect({ env: e }) {
9017
+ } }, Os = { detect({ env: e }) {
9018
9018
  return !!e.CODEBUILD_BUILD_ID;
9019
9019
  }, configuration({ env: e, cwd: t }) {
9020
- return { name: "AWS CodeBuild", service: "codebuild", commit: dt({ env: e, cwd: t }), build: e.CODEBUILD_BUILD_ID, branch: Zt({ env: e, cwd: t }), buildUrl: `https://console.aws.amazon.com/codebuild/home?region=${e.AWS_REGION}#/builds/${e.CODEBUILD_BUILD_ID}/view/new`, root: e.PWD };
9021
- } }, Bs = { detect({ env: e }) {
9020
+ return { name: "AWS CodeBuild", service: "codebuild", commit: pt({ env: e, cwd: t }), build: e.CODEBUILD_BUILD_ID, branch: Zt({ env: e, cwd: t }), buildUrl: `https://console.aws.amazon.com/codebuild/home?region=${e.AWS_REGION}#/builds/${e.CODEBUILD_BUILD_ID}/view/new`, root: e.PWD };
9021
+ } }, Ls = { detect({ env: e }) {
9022
9022
  return !!e.CF_BUILD_ID;
9023
9023
  }, configuration({ env: e }) {
9024
9024
  const t = e.CF_PULL_REQUEST_NUMBER, r = !!t;
9025
9025
  return { name: "Codefresh", service: "codefresh", commit: e.CF_REVISION, build: e.CF_BUILD_ID, buildUrl: e.CF_BUILD_URL, branch: r ? e.CF_PULL_REQUEST_TARGET : e.CF_BRANCH, pr: t, isPr: r, prBranch: r ? e.CF_BRANCH : void 0, slug: `${e.CF_REPO_OWNER}/${e.CF_REPO_NAME}`, root: e.CF_VOLUME_PATH };
9026
- } }, Os = { detect({ env: e }) {
9026
+ } }, Ps = { detect({ env: e }) {
9027
9027
  return e.CI_NAME && e.CI_NAME === "codeship";
9028
9028
  }, configuration({ env: e }) {
9029
9029
  return { name: "Codeship", service: "codeship", build: e.CI_BUILD_NUMBER, buildUrl: e.CI_BUILD_URL, commit: e.CI_COMMIT_ID, branch: e.CI_BRANCH, slug: e.CI_REPO_NAME };
9030
- } }, Ls = { detect({ env: e }) {
9030
+ } }, Ns = { detect({ env: e }) {
9031
9031
  return !!e.DRONE;
9032
9032
  }, configuration({ env: e }) {
9033
9033
  const t = e.DRONE_BUILD_EVENT === "pull_request";
9034
9034
  return { name: "Drone", service: "drone", commit: e.DRONE_COMMIT_SHA, tag: e.DRONE_TAG, build: e.DRONE_BUILD_NUMBER, buildUrl: e.DRONE_BUILD_LINK, branch: t ? e.DRONE_TARGET_BRANCH : e.DRONE_BRANCH, job: e.DRONE_JOB_NUMBER, jobUrl: e.DRONE_BUILD_LINK, pr: e.DRONE_PULL_REQUEST, isPr: t, prBranch: t ? e.DRONE_SOURCE_BRANCH : void 0, slug: `${e.DRONE_REPO_OWNER}/${e.DRONE_REPO_NAME}`, root: e.DRONE_WORKSPACE };
9035
- } }, Ps = { configuration(e) {
9036
- return { commit: dt(e), branch: Zt(e) };
9035
+ } }, Ds = { configuration(e) {
9036
+ return { commit: pt(e), branch: Zt(e) };
9037
9037
  } };
9038
- const Ns = a(({ env: e }) => {
9038
+ const Ms = a(({ env: e }) => {
9039
9039
  try {
9040
9040
  const t = e.GITHUB_EVENT_PATH ? JSON.parse(node_fs.readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
9041
- if (t && t.pull_request) return { branch: t.pull_request.base ? Ze(t.pull_request.base.ref) : void 0, pr: t.pull_request.number };
9041
+ if (t && t.pull_request) return { branch: t.pull_request.base ? et(t.pull_request.base.ref) : void 0, pr: t.pull_request.number };
9042
9042
  } catch {
9043
9043
  }
9044
9044
  return { pr: void 0, branch: void 0 };
9045
- }, "getPrEvent"), Ds = a((e) => {
9045
+ }, "getPrEvent"), xs = a((e) => {
9046
9046
  const t = e.GITHUB_EVENT_PATH ? JSON.parse(node_fs.readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
9047
9047
  return t && t.pull_request ? t.pull_request.number : void 0;
9048
9048
  }, "getPrNumber");
9049
- var Ms = { detect({ env: e }) {
9049
+ var Gs = { detect({ env: e }) {
9050
9050
  return !!e.GITHUB_ACTIONS;
9051
9051
  }, configuration({ env: e, cwd: t }) {
9052
- const r = e.GITHUB_EVENT_NAME === "pull_request" || e.GITHUB_EVENT_NAME === "pull_request_target", n = Ze(e.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${Ds(e)}/merge` : e.GITHUB_REF);
9053
- return { name: "GitHub Actions", service: "github", commit: e.GITHUB_SHA, build: e.GITHUB_RUN_ID, buildUrl: `${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: e.GITHUB_REPOSITORY, root: e.GITHUB_WORKSPACE, ...r ? Ns({ env: e }) : void 0 };
9054
- } }, xs = { detect({ env: e }) {
9052
+ const r = e.GITHUB_EVENT_NAME === "pull_request" || e.GITHUB_EVENT_NAME === "pull_request_target", n = et(e.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${xs(e)}/merge` : e.GITHUB_REF);
9053
+ return { name: "GitHub Actions", service: "github", commit: e.GITHUB_SHA, build: e.GITHUB_RUN_ID, buildUrl: `${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: e.GITHUB_REPOSITORY, root: e.GITHUB_WORKSPACE, ...r ? Ms({ env: e }) : void 0 };
9054
+ } }, $s = { detect({ env: e }) {
9055
9055
  return !!e.GITLAB_CI;
9056
9056
  }, configuration({ env: e }) {
9057
9057
  const t = e.CI_MERGE_REQUEST_ID, r = !!t;
9058
9058
  return { name: "GitLab CI/CD", service: "gitlab", commit: e.CI_COMMIT_SHA, tag: e.CI_COMMIT_TAG, build: e.CI_PIPELINE_ID, buildUrl: `${e.CI_PROJECT_URL}/pipelines/${e.CI_PIPELINE_ID}`, job: e.CI_JOB_ID, jobUrl: `${e.CI_PROJECT_URL}/-/jobs/${e.CI_JOB_ID}`, branch: r ? e.CI_MERGE_REQUEST_TARGET_BRANCH_NAME : e.CI_COMMIT_REF_NAME, pr: t, isPr: r, prBranch: e.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME, slug: e.CI_PROJECT_PATH, root: e.CI_PROJECT_DIR };
9059
- } }, Gs = { detect({ env: e }) {
9059
+ } }, Hs = { detect({ env: e }) {
9060
9060
  return !!e.JENKINS_URL;
9061
9061
  }, configuration({ env: e, cwd: t }) {
9062
9062
  const r = e.ghprbPullId || e.gitlabMergeRequestId || e.CHANGE_ID, n = !!r, i = e.GIT_LOCAL_BRANCH || e.GIT_BRANCH || e.gitlabBranch || e.BRANCH_NAME;
9063
- return { name: "Jenkins", service: "jenkins", commit: e.ghprbActualCommit || e.GIT_COMMIT || dt({ env: e, cwd: t }), branch: n ? e.ghprbTargetBranch || e.gitlabTargetBranch : i, build: e.BUILD_NUMBER, buildUrl: e.BUILD_URL, root: e.WORKSPACE, pr: r, isPr: n, prBranch: n ? e.ghprbSourceBranch || e.gitlabSourceBranch || i : void 0 };
9064
- } }, $s = { detect({ env: e }) {
9063
+ return { name: "Jenkins", service: "jenkins", commit: e.ghprbActualCommit || e.GIT_COMMIT || pt({ env: e, cwd: t }), branch: n ? e.ghprbTargetBranch || e.gitlabTargetBranch : i, build: e.BUILD_NUMBER, buildUrl: e.BUILD_URL, root: e.WORKSPACE, pr: r, isPr: n, prBranch: n ? e.ghprbSourceBranch || e.gitlabSourceBranch || i : void 0 };
9064
+ } }, ks = { detect({ env: e }) {
9065
9065
  return e.NETLIFY === "true";
9066
9066
  }, configuration({ env: e }) {
9067
9067
  const t = e.PULL_REQUEST === "true";
9068
9068
  return { name: "Netlify", service: "netlify", commit: e.COMMIT_REF, build: e.DEPLOY_ID, buildUrl: `https://app.netlify.com/sites/${e.SITE_NAME}/deploys/${e.DEPLOY_ID}`, branch: t ? void 0 : e.HEAD, pr: e.REVIEW_ID, isPr: t, prBranch: t ? e.HEAD : void 0, slug: e.REPOSITORY_URL.match(/[^/:]+\/[^/]+?$/)[0], root: e.PWD };
9069
- } }, Hs = { detect({ env: e }) {
9069
+ } }, Fs = { detect({ env: e }) {
9070
9070
  return !!e.DISTELLI_APPNAME;
9071
9071
  }, configuration({ env: e }) {
9072
9072
  return { name: "Puppet", service: "puppet", build: e.DISTELLI_BUILDNUM, buildUrl: e.DISTELLI_RELEASE, commit: e.DISTELLI_RELREVISION, branch: e.DISTELLI_RELBRANCH, root: e.DISTELLI_INSTALLHOME };
9073
- } }, ks = { detect({ env: e }) {
9073
+ } }, js = { detect({ env: e }) {
9074
9074
  return !!e.SAILCI;
9075
9075
  }, configuration({ env: e }) {
9076
9076
  const t = e.SAIL_PULL_REQUEST_NUMBER, r = !!t;
9077
9077
  return { name: "Sail CI", service: "sail", commit: e.SAIL_COMMIT_SHA, branch: r ? void 0 : e.SAIL_COMMIT_BRANCH, pr: t, isPr: r, slug: `${e.SAIL_REPO_OWNER}/${e.SAIL_REPO_NAME}`, root: e.SAIL_CLONE_DIR };
9078
- } }, Fs = { detect({ env: e }) {
9078
+ } }, qs = { detect({ env: e }) {
9079
9079
  return !!e.SCREWDRIVER;
9080
9080
  }, configuration({ env: e }) {
9081
9081
  const t = e.SD_PULL_REQUEST, r = !!t;
9082
9082
  return { name: "Screwdriver.cd", service: "screwdriver", branch: r ? e.PR_BASE_BRANCH_NAME : e.GIT_BRANCH, prBranch: r ? e.PR_BRANCH_NAME : void 0, commit: e.SD_BUILD_SHA, build: e.SD_BUILD_ID, buildUrl: e.SD_UI_BUILD_URL, job: e.SD_JOB_ID, pr: t, isPr: r, slug: e.SD_PIPELINE_NAME, root: e.SD_ROOT_DIR };
9083
- } }, js = { detect({ env: e }) {
9083
+ } }, Ws = { detect({ env: e }) {
9084
9084
  return !!e.SCRUTINIZER;
9085
9085
  }, configuration({ env: e }) {
9086
9086
  const t = e.SCRUTINIZER_PR_NUMBER, r = !!t;
9087
9087
  return { name: "Scrutinizer", service: "scrutinizer", commit: e.SCRUTINIZER_SHA1, build: e.SCRUTINIZER_INSPECTION_UUID, branch: e.SCRUTINIZER_BRANCH, pr: t, isPr: r, prBranch: e.SCRUTINIZER_PR_SOURCE_BRANCH };
9088
- } }, qs = { detect({ env: e }) {
9088
+ } }, Ks = { detect({ env: e }) {
9089
9089
  return !!e.SEMAPHORE;
9090
9090
  }, configuration({ env: e, cwd: t }) {
9091
9091
  const r = e.SEMAPHORE_GIT_PR_NUMBER || e.PULL_REQUEST_NUMBER, n = !!r;
9092
- return { name: "Semaphore", service: "semaphore", commit: e.SEMAPHORE_GIT_SHA || dt({ env: e, cwd: t }), tag: e.SEMAPHORE_GIT_TAG_NAME, build: e.SEMAPHORE_JOB_ID || e.SEMAPHORE_BUILD_NUMBER, branch: e.SEMAPHORE_GIT_BRANCH || (n ? void 0 : e.BRANCH_NAME), pr: r, isPr: n, prBranch: e.SEMAPHORE_GIT_PR_BRANCH || (n ? e.BRANCH_NAME : void 0), slug: e.SEMAPHORE_GIT_REPO_SLUG || e.SEMAPHORE_REPO_SLUG, root: e.SEMAPHORE_GIT_DIR || e.SEMAPHORE_PROJECT_DIR };
9093
- } }, Ws = { detect({ env: e }) {
9092
+ return { name: "Semaphore", service: "semaphore", commit: e.SEMAPHORE_GIT_SHA || pt({ env: e, cwd: t }), tag: e.SEMAPHORE_GIT_TAG_NAME, build: e.SEMAPHORE_JOB_ID || e.SEMAPHORE_BUILD_NUMBER, branch: e.SEMAPHORE_GIT_BRANCH || (n ? void 0 : e.BRANCH_NAME), pr: r, isPr: n, prBranch: e.SEMAPHORE_GIT_PR_BRANCH || (n ? e.BRANCH_NAME : void 0), slug: e.SEMAPHORE_GIT_REPO_SLUG || e.SEMAPHORE_REPO_SLUG, root: e.SEMAPHORE_GIT_DIR || e.SEMAPHORE_PROJECT_DIR };
9093
+ } }, Vs = { detect({ env: e }) {
9094
9094
  return !!e.SHIPPABLE;
9095
9095
  }, configuration({ env: e }) {
9096
9096
  const t = e.IS_PULL_REQUEST === "true" ? e.PULL_REQUEST : void 0, r = !!t;
9097
9097
  return { name: "Shippable", service: "shippable", commit: e.COMMIT, tag: e.GIT_TAG_NAME, build: e.BUILD_NUMBER, buildUrl: e.BUILD_URL, branch: r ? e.BASE_BRANCH : e.BRANCH, job: e.JOB_NUMBER, pr: t, isPr: r, prBranch: r ? e.HEAD_BRANCH : void 0, slug: e.SHIPPABLE_REPO_SLUG, root: e.SHIPPABLE_BUILD_DIR };
9098
9098
  } }, He = {}, Rn;
9099
- function Ks() {
9099
+ function Ys() {
9100
9100
  if (Rn) return He;
9101
9101
  Rn = 1, Object.defineProperty(He, "__esModule", { value: true }), He.of = He.PropertiesFile = void 0;
9102
9102
  var e = t(je);
@@ -9113,28 +9113,28 @@ function Ks() {
9113
9113
  }
9114
9114
  makeKeys(o) {
9115
9115
  if (o && o.indexOf("#") !== 0) {
9116
- let c = ["=", ":"].map((p) => o.indexOf(p)).filter((p) => p > -1), l = Math.min(...c), d = o.substring(0, l).trim(), _ = o.substring(l + 1).trim();
9117
- if (this.objs.hasOwnProperty(d)) if (Array.isArray(this.objs[d])) this.objs[d].push(_);
9116
+ let c = ["=", ":"].map((h) => o.indexOf(h)).filter((h) => h > -1), l = Math.min(...c), m = o.substring(0, l).trim(), R = o.substring(l + 1).trim();
9117
+ if (this.objs.hasOwnProperty(m)) if (Array.isArray(this.objs[m])) this.objs[m].push(R);
9118
9118
  else {
9119
- let p = this.objs[d];
9120
- this.objs[d] = [p, _];
9119
+ let h = this.objs[m];
9120
+ this.objs[m] = [h, R];
9121
9121
  }
9122
9122
  else {
9123
- const p = _.replace(/"/g, '\\"').replace(/\\:/g, ":").replace(/\\=/g, "=");
9124
- this.objs[d] = unescape(JSON.parse('"' + p + '"'));
9123
+ const h = R.replace(/"/g, '\\"').replace(/\\:/g, ":").replace(/\\=/g, "=");
9124
+ this.objs[m] = unescape(JSON.parse('"' + h + '"'));
9125
9125
  }
9126
9126
  }
9127
9127
  }
9128
9128
  addFile(o) {
9129
- let l = e.default.readFileSync(o, "utf-8").split(/\r?\n/), d = this;
9130
- for (let _ = 0; _ < l.length; _++) {
9131
- let p = l[_];
9132
- for (; p.substring(p.length - 1) === "\\"; ) {
9133
- p = p.slice(0, -1);
9134
- let w = l[_ + 1];
9135
- p = p + w.trim(), _++;
9129
+ let l = e.default.readFileSync(o, "utf-8").split(/\r?\n/), m = this;
9130
+ for (let R = 0; R < l.length; R++) {
9131
+ let h = l[R];
9132
+ for (; h.substring(h.length - 1) === "\\"; ) {
9133
+ h = h.slice(0, -1);
9134
+ let T = l[R + 1];
9135
+ h = h + T.trim(), R++;
9136
9136
  }
9137
- d.makeKeys(p);
9137
+ m.makeKeys(h);
9138
9138
  }
9139
9139
  }
9140
9140
  of(...o) {
@@ -9143,7 +9143,7 @@ function Ks() {
9143
9143
  get(o, c) {
9144
9144
  if (this.objs.hasOwnProperty(o)) if (Array.isArray(this.objs[o])) {
9145
9145
  let l = [];
9146
- for (let d = 0; d < this.objs[o].length; d++) l[d] = this.interpolate(this.objs[o][d]);
9146
+ for (let m = 0; m < this.objs[o].length; m++) l[m] = this.interpolate(this.objs[o][m]);
9147
9147
  return l;
9148
9148
  } else return typeof this.objs[o] > "u" ? "" : this.interpolate(this.objs[o]);
9149
9149
  return c;
@@ -9167,12 +9167,12 @@ function Ks() {
9167
9167
  return l ? parseFloat(l) : c;
9168
9168
  }
9169
9169
  getBoolean(o, c) {
9170
- function l(_) {
9171
- return !/^(false|0)$/i.test(_) && !!_;
9170
+ function l(R) {
9171
+ return !/^(false|0)$/i.test(R) && !!R;
9172
9172
  }
9173
9173
  a(l, "parseBool");
9174
- let d = this.getLast(o);
9175
- return d ? l(d) : c || false;
9174
+ let m = this.getLast(o);
9175
+ return m ? l(m) : c || false;
9176
9176
  }
9177
9177
  set(o, c) {
9178
9178
  this.objs[o] = c;
@@ -9204,64 +9204,64 @@ function Ks() {
9204
9204
  }, "of2");
9205
9205
  return He.of = n, He;
9206
9206
  }
9207
- a(Ks, "requireDistNode");
9208
- var Vs = Ks(), Ys = Cr(Vs);
9207
+ a(Ys, "requireDistNode");
9208
+ var zs = Ys(), Js = Cr(zs);
9209
9209
  const er = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" }, Tn = a((e) => {
9210
9210
  try {
9211
- return Ys.of(e);
9211
+ return Js.of(e);
9212
9212
  } catch {
9213
9213
  return;
9214
9214
  }
9215
- }, "safeReadProperties"), zs = a(({ env: e, cwd: t }) => {
9215
+ }, "safeReadProperties"), Qs = a(({ env: e, cwd: t }) => {
9216
9216
  const r = e.TEAMCITY_BUILD_PROPERTIES_FILE ? Tn(e.TEAMCITY_BUILD_PROPERTIES_FILE) : void 0, n = r ? r.get("teamcity.configuration.properties.file") : void 0, i = n && Tn(n);
9217
9217
  return Object.fromEntries(Object.keys(er).map((o) => [o, (r ? r.get(er[o]) : void 0) || (i ? i.get(er[o]) : void 0) || (o === "branch" ? Zt({ env: e, cwd: t }) : void 0)]));
9218
9218
  }, "getProperties");
9219
- var Js = { detect({ env: e }) {
9219
+ var Xs = { detect({ env: e }) {
9220
9220
  return !!e.TEAMCITY_VERSION;
9221
9221
  }, configuration({ env: e, cwd: t }) {
9222
- return { name: "TeamCity", service: "teamcity", commit: e.BUILD_VCS_NUMBER, build: e.BUILD_NUMBER, slug: e.TEAMCITY_BUILDCONF_NAME, ...zs({ env: e, cwd: t }) };
9223
- } }, Qs = { detect({ env: e }) {
9222
+ return { name: "TeamCity", service: "teamcity", commit: e.BUILD_VCS_NUMBER, build: e.BUILD_NUMBER, slug: e.TEAMCITY_BUILDCONF_NAME, ...Qs({ env: e, cwd: t }) };
9223
+ } }, Zs = { detect({ env: e }) {
9224
9224
  return !!e.TRAVIS;
9225
9225
  }, configuration({ env: e }) {
9226
9226
  const t = e.TRAVIS_PULL_REQUEST === "false" ? void 0 : e.TRAVIS_PULL_REQUEST, r = !!t;
9227
9227
  return { name: "Travis CI", service: "travis", commit: e.TRAVIS_COMMIT, tag: e.TRAVIS_TAG, build: e.TRAVIS_BUILD_NUMBER, buildUrl: e.TRAVIS_BUILD_WEB_URL, branch: e.TRAVIS_BRANCH, job: e.TRAVIS_JOB_NUMBER, jobUrl: e.TRAVIS_JOB_WEB_URL, pr: t, isPr: r, prBranch: e.TRAVIS_PULL_REQUEST_BRANCH, slug: e.TRAVIS_REPO_SLUG, root: e.TRAVIS_BUILD_DIR };
9228
- } }, Xs = { detect({ env: e }) {
9228
+ } }, ea = { detect({ env: e }) {
9229
9229
  return !!e.VELA;
9230
9230
  }, configuration({ env: e }) {
9231
9231
  const t = e.VELA_BUILD_EVENT === "pull_request";
9232
9232
  return { name: "Vela", service: "vela", branch: t ? e.VELA_PULL_REQUEST_TARGET : e.VELA_BUILD_BRANCH, commit: e.VELA_BUILD_COMMIT, tag: e.VELA_BUILD_TAG, build: e.VELA_BUILD_NUMBER, buildUrl: e.VELA_BUILD_LINK, job: void 0, jobUrl: void 0, isPr: t, pr: e.VELA_BUILD_PULL_REQUEST, prBranch: e.VELA_PULL_REQUEST_SOURCE, slug: e.VELA_REPO_FULL_NAME, root: e.VELA_BUILD_WORKSPACE };
9233
- } }, Zs = { detect({ env: e }) {
9233
+ } }, ta = { detect({ env: e }) {
9234
9234
  return !!e.VERCEL || !!e.NOW_GITHUB_DEPLOYMENT;
9235
9235
  }, configuration({ env: e }) {
9236
9236
  const t = "Vercel", r = "vercel";
9237
9237
  return e.VERCEL ? { name: t, service: r, commit: e.VERCEL_GIT_COMMIT_SHA, branch: e.VERCEL_GIT_COMMIT_REF, slug: `${e.VERCEL_GIT_REPO_OWNER}/${e.VERCEL_GIT_REPO_SLUG}` } : { name: t, service: r, commit: e.NOW_GITHUB_COMMIT_SHA, branch: e.NOW_GITHUB_COMMIT_REF, slug: `${e.NOW_GITHUB_ORG}/${e.NOW_GITHUB_REPO}` };
9238
- } }, ea = { detect({ env: e }) {
9238
+ } }, ra = { detect({ env: e }) {
9239
9239
  return !!e.WERCKER_MAIN_PIPELINE_STARTED;
9240
9240
  }, configuration({ env: e }) {
9241
9241
  return { name: "Wercker", service: "wercker", commit: e.WERCKER_GIT_COMMIT, build: e.WERCKER_MAIN_PIPELINE_STARTED, buildUrl: e.WERCKER_RUN_URL, branch: e.WERCKER_GIT_BRANCH, slug: `${e.WERCKER_GIT_OWNER}/${e.WERCKER_GIT_REPOSITORY}`, root: e.WERCKER_ROOT };
9242
- } }, ta = { detect({ env: e }) {
9242
+ } }, na = { detect({ env: e }) {
9243
9243
  return e.CI && e.CI === "woodpecker";
9244
9244
  }, configuration({ env: e }) {
9245
9245
  const t = e.CI_PIPELINE_EVENT === "pull_request";
9246
9246
  return { name: "Woodpecker CI", service: "woodpecker", commit: e.CI_COMMIT_SHA, tag: e.CI_COMMIT_TAG, build: e.CI_PIPELINE_NUMBER, buildUrl: e.CI_PIPELINE_URL, branch: t ? e.CI_COMMIT_TARGET_BRANCH : e.CI_COMMIT_BRANCH, job: e.CI_STEP_NUMBER, jobUrl: e.CI_STEP_URL, pr: e.CI_COMMIT_PULL_REQUEST, isPr: t, prBranch: t ? e.CI_COMMIT_SOURCE_BRANCH : void 0, slug: `${e.CI_REPO_OWNER}/${e.CI_REPO_NAME}`, root: e.CI_WORKSPACE };
9247
- } }, ra = { detect({ env: e }) {
9247
+ } }, ia = { detect({ env: e }) {
9248
9248
  return !!e.JB_SPACE_EXECUTION_NUMBER;
9249
9249
  }, configuration({ env: e }) {
9250
9250
  const t = e.JB_SPACE_PROJECT_KEY, r = e.JB_SPACE_GIT_REPOSITORY_NAME;
9251
- return { name: "JetBrains Space", service: "jetbrainsSpace", commit: e.JB_SPACE_GIT_REVISION, build: e.JB_SPACE_EXECUTION_NUMBER, branch: Ze(e.JB_SPACE_GIT_BRANCH), slug: t && r ? `${t.toLowerCase()}/${r}` : void 0 };
9251
+ return { name: "JetBrains Space", service: "jetbrainsSpace", commit: e.JB_SPACE_GIT_REVISION, build: e.JB_SPACE_EXECUTION_NUMBER, branch: et(e.JB_SPACE_GIT_BRANCH), slug: t && r ? `${t.toLowerCase()}/${r}` : void 0 };
9252
9252
  } };
9253
- const tr = { appveyor: _o, azurePipelines: go, bamboo: Io, bitbucket: So, bitrise: Ro, buddy: To, buildkite: ys, circleci: bs, cirrus: Cs, cloudflarePages: Us, codebuild: vs, codefresh: Bs, codeship: Os, drone: Ls, github: Ms, gitlab: xs, jenkins: Gs, netlify: $s, puppet: Hs, sail: ks, screwdriver: Fs, scrutinizer: js, semaphore: qs, shippable: Ws, teamcity: Js, travis: Qs, vela: Xs, vercel: Zs, wercker: ea, woodpecker: ta, jetbrainsSpace: ra };
9253
+ const tr = { appveyor: Io, azurePipelines: So, bamboo: Ro, bitbucket: To, bitrise: wo, buddy: yo, buildkite: Cs, circleci: vs, cirrus: Us, cloudflarePages: Bs, codebuild: Os, codefresh: Ls, codeship: Ps, drone: Ns, github: Gs, gitlab: $s, jenkins: Hs, netlify: ks, puppet: Fs, sail: js, screwdriver: qs, scrutinizer: Ws, semaphore: Ks, shippable: Vs, teamcity: Xs, travis: Zs, vela: ea, vercel: ta, wercker: ra, woodpecker: na, jetbrainsSpace: ia };
9254
9254
  var rr = a(({ env: e = process.env, cwd: t = process.cwd() } = {}) => {
9255
9255
  for (const r of Object.keys(tr)) if (tr[r].detect({ env: e, cwd: t })) return { isCi: true, ...tr[r].configuration({ env: e, cwd: t }) };
9256
- return { isCi: !!e.CI, ...Ps.configuration({ env: e, cwd: t }) };
9256
+ return { isCi: !!e.CI, ...Ds.configuration({ env: e, cwd: t }) };
9257
9257
  }, "envCiModule");
9258
- const na = typeof rr == "function" ? rr : rr.default;
9259
- function ia() {
9260
- const e = na();
9261
- return { branch: process.env.GITHUB_HEAD_REF || e.branch, commit: { message: sa(), sha: e.commit }, isCI: e.isCi, pr: oa() };
9258
+ const oa = typeof rr == "function" ? rr : rr.default;
9259
+ function sa() {
9260
+ const e = oa();
9261
+ return { branch: process.env.GITHUB_HEAD_REF || e.branch, commit: { message: ca(), sha: e.commit }, isCI: e.isCi, pr: aa() };
9262
9262
  }
9263
- a(ia, "getGitInfo");
9264
- function oa() {
9263
+ a(sa, "getGitInfo");
9264
+ function aa() {
9265
9265
  try {
9266
9266
  const e = process.env.GITHUB_EVENT_PATH;
9267
9267
  if (e) {
@@ -9273,54 +9273,54 @@ function oa() {
9273
9273
  return;
9274
9274
  }
9275
9275
  }
9276
- a(oa, "getPRInfo");
9277
- function sa() {
9276
+ a(aa, "getPRInfo");
9277
+ function ca() {
9278
9278
  try {
9279
9279
  return require$$0$2.execSync("git log -1 --pretty=%B", { encoding: "utf-8", stdio: ["pipe", "pipe", "ignore"] }).trim();
9280
9280
  } catch {
9281
9281
  return;
9282
9282
  }
9283
9283
  }
9284
- a(sa, "getLastCommitMessage");
9285
- function aa() {
9284
+ a(ca, "getLastCommitMessage");
9285
+ function ua() {
9286
9286
  return { hostname: fr.hostname(), platform: fr.platform() };
9287
9287
  }
9288
- a(aa, "getMachineInfo");
9289
- const ca = new Error("request for lock canceled");
9290
- var ua = a(function(e, t, r, n) {
9288
+ a(ua, "getMachineInfo");
9289
+ const la = new Error("request for lock canceled");
9290
+ var fa = a(function(e, t, r, n) {
9291
9291
  function i(o) {
9292
9292
  return o instanceof r ? o : new r(function(c) {
9293
9293
  c(o);
9294
9294
  });
9295
9295
  }
9296
9296
  return a(i, "adopt"), new (r || (r = Promise))(function(o, c) {
9297
- function l(p) {
9297
+ function l(h) {
9298
9298
  try {
9299
- _(n.next(p));
9300
- } catch (w) {
9301
- c(w);
9299
+ R(n.next(h));
9300
+ } catch (T) {
9301
+ c(T);
9302
9302
  }
9303
9303
  }
9304
9304
  a(l, "fulfilled");
9305
- function d(p) {
9305
+ function m(h) {
9306
9306
  try {
9307
- _(n.throw(p));
9308
- } catch (w) {
9309
- c(w);
9307
+ R(n.throw(h));
9308
+ } catch (T) {
9309
+ c(T);
9310
9310
  }
9311
9311
  }
9312
- a(d, "rejected");
9313
- function _(p) {
9314
- p.done ? o(p.value) : i(p.value).then(l, d);
9312
+ a(m, "rejected");
9313
+ function R(h) {
9314
+ h.done ? o(h.value) : i(h.value).then(l, m);
9315
9315
  }
9316
- a(_, "step"), _((n = n.apply(e, t || [])).next());
9316
+ a(R, "step"), R((n = n.apply(e, t || [])).next());
9317
9317
  });
9318
9318
  }, "__awaiter$2");
9319
- class la {
9319
+ class ha {
9320
9320
  static {
9321
9321
  a(this, "Semaphore");
9322
9322
  }
9323
- constructor(t, r = ca) {
9323
+ constructor(t, r = la) {
9324
9324
  this._value = t, this._cancelError = r, this._queue = [], this._weightedWaiters = [];
9325
9325
  }
9326
9326
  acquire(t = 1, r = 0) {
@@ -9331,7 +9331,7 @@ class la {
9331
9331
  });
9332
9332
  }
9333
9333
  runExclusive(t) {
9334
- return ua(this, arguments, void 0, function* (r, n = 1, i = 0) {
9334
+ return fa(this, arguments, void 0, function* (r, n = 1, i = 0) {
9335
9335
  const [o, c] = yield this.acquire(n, i);
9336
9336
  try {
9337
9337
  return yield r(o);
@@ -9343,7 +9343,7 @@ class la {
9343
9343
  waitForUnlock(t = 1, r = 0) {
9344
9344
  if (t <= 0) throw new Error(`invalid weight ${t}: must be positive`);
9345
9345
  return this._couldLockImmediately(t, r) ? Promise.resolve() : new Promise((n) => {
9346
- this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []), fa(this._weightedWaiters[t - 1], { resolve: n, priority: r });
9346
+ this._weightedWaiters[t - 1] || (this._weightedWaiters[t - 1] = []), da(this._weightedWaiters[t - 1], { resolve: n, priority: r });
9347
9347
  });
9348
9348
  }
9349
9349
  isLocked() {
@@ -9394,54 +9394,54 @@ class la {
9394
9394
  return (this._queue.length === 0 || this._queue[0].priority < r) && t <= this._value;
9395
9395
  }
9396
9396
  }
9397
- function fa(e, t) {
9397
+ function da(e, t) {
9398
9398
  const r = wn(e, (n) => t.priority <= n.priority);
9399
9399
  e.splice(r + 1, 0, t);
9400
9400
  }
9401
- a(fa, "insertSorted");
9401
+ a(da, "insertSorted");
9402
9402
  function wn(e, t) {
9403
9403
  for (let r = e.length - 1; r >= 0; r--) if (t(e[r])) return r;
9404
9404
  return -1;
9405
9405
  }
9406
9406
  a(wn, "findIndexFromEnd");
9407
- var ha = a(function(e, t, r, n) {
9407
+ var pa = a(function(e, t, r, n) {
9408
9408
  function i(o) {
9409
9409
  return o instanceof r ? o : new r(function(c) {
9410
9410
  c(o);
9411
9411
  });
9412
9412
  }
9413
9413
  return a(i, "adopt"), new (r || (r = Promise))(function(o, c) {
9414
- function l(p) {
9414
+ function l(h) {
9415
9415
  try {
9416
- _(n.next(p));
9417
- } catch (w) {
9418
- c(w);
9416
+ R(n.next(h));
9417
+ } catch (T) {
9418
+ c(T);
9419
9419
  }
9420
9420
  }
9421
9421
  a(l, "fulfilled");
9422
- function d(p) {
9422
+ function m(h) {
9423
9423
  try {
9424
- _(n.throw(p));
9425
- } catch (w) {
9426
- c(w);
9424
+ R(n.throw(h));
9425
+ } catch (T) {
9426
+ c(T);
9427
9427
  }
9428
9428
  }
9429
- a(d, "rejected");
9430
- function _(p) {
9431
- p.done ? o(p.value) : i(p.value).then(l, d);
9429
+ a(m, "rejected");
9430
+ function R(h) {
9431
+ h.done ? o(h.value) : i(h.value).then(l, m);
9432
9432
  }
9433
- a(_, "step"), _((n = n.apply(e, t || [])).next());
9433
+ a(R, "step"), R((n = n.apply(e, t || [])).next());
9434
9434
  });
9435
9435
  }, "__awaiter$1");
9436
- class da {
9436
+ class ma {
9437
9437
  static {
9438
9438
  a(this, "Mutex");
9439
9439
  }
9440
9440
  constructor(t) {
9441
- this._semaphore = new la(1, t);
9441
+ this._semaphore = new ha(1, t);
9442
9442
  }
9443
9443
  acquire() {
9444
- return ha(this, arguments, void 0, function* (t = 0) {
9444
+ return pa(this, arguments, void 0, function* (t = 0) {
9445
9445
  const [, r] = yield this._semaphore.acquire(1, t);
9446
9446
  return r;
9447
9447
  });
@@ -9462,10 +9462,10 @@ class da {
9462
9462
  return this._semaphore.cancel();
9463
9463
  }
9464
9464
  }
9465
- function An(e, t) {
9465
+ function yn(e, t) {
9466
9466
  const r = e.length;
9467
9467
  let n = 0, i = 0;
9468
- const o = new da();
9468
+ const o = new ma();
9469
9469
  return t({ completed: n, errors: i, total: r }), e.map((c) => c.then(async (l) => (await o.runExclusive(() => {
9470
9470
  n++, t({ completed: n, errors: i, total: r });
9471
9471
  }), l)).catch(async (l) => {
@@ -9474,28 +9474,28 @@ function An(e, t) {
9474
9474
  }), l;
9475
9475
  }));
9476
9476
  }
9477
- a(An, "trackPromiseProgress");
9478
- function pa({ result: e, sensitiveValues: t }) {
9479
- return e.steps.map((r) => yn({ sensitiveValues: t, step: r }));
9477
+ a(yn, "trackPromiseProgress");
9478
+ function Ea({ result: e, sensitiveValues: t }) {
9479
+ return e.steps.map((r) => An({ sensitiveValues: t, step: r }));
9480
9480
  }
9481
- a(pa, "extractSteps");
9482
- function yn({ sensitiveValues: e, step: t }) {
9481
+ a(Ea, "extractSteps");
9482
+ function An({ sensitiveValues: e, step: t }) {
9483
9483
  const r = a((n) => n && e?.length ? oe({ sensitiveValues: e, str: n }) : n, "scrub");
9484
- return { category: t.category, duration: t.duration, error: t.error ? { message: r(t.error.message) || "Unknown error", stack: r(t.error.stack) } : void 0, location: t.location ? { column: t.location.column, file: t.location.file, line: t.location.line } : void 0, startedAt: new Date(t.startTime), steps: t.steps && t.steps.length > 0 ? t.steps.map((n) => yn({ sensitiveValues: e, step: n })) : void 0, title: r(t.title) ?? t.title };
9484
+ return { category: t.category, duration: t.duration, error: t.error ? { message: r(t.error.message) || "Unknown error", stack: r(t.error.stack) } : void 0, location: t.location ? { column: t.location.column, file: t.location.file, line: t.location.line } : void 0, startedAt: new Date(t.startTime), steps: t.steps && t.steps.length > 0 ? t.steps.map((n) => An({ sensitiveValues: e, step: n })) : void 0, title: r(t.title) ?? t.title };
9485
9485
  }
9486
- a(yn, "extractStep");
9487
- async function ma({ fileData: e, maxRetries: t = 3, uploadUrl: r }) {
9488
- await kn(async () => {
9486
+ a(An, "extractStep");
9487
+ async function _a({ fileData: e, maxRetries: t = 3, uploadUrl: r }) {
9488
+ await jn(async () => {
9489
9489
  const n = await fetch(r, { body: e, method: "PUT" });
9490
9490
  if (!n.ok) throw n.status >= 400 && n.status < 500 ? new pRetryExports.AbortError(`Upload failed with status ${n.status}: ${n.statusText}`) : new Error(`Upload failed with status ${n.status}: ${n.statusText}`);
9491
9491
  }, { minTimeout: 2e3, randomize: true, retries: t });
9492
9492
  }
9493
- a(ma, "uploadWithRetry");
9494
- const Ea = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", bn = 120 * 1e3, _a = a(({ notificationConfigs: e, suite: t }) => {
9493
+ a(_a, "uploadWithRetry");
9494
+ const ga = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", bn = 120 * 1e3, Ia = a(({ notificationConfigs: e, suite: t }) => {
9495
9495
  if (!e || e.length === 0) return;
9496
9496
  const r = new Set(t.allTests().map((i) => i.parent.project()?.name).filter(Boolean)), n = e.filter((i) => r.has(i.projectName));
9497
9497
  return n.length > 0 ? n : void 0;
9498
- }, "filterNotificationConfigsByRunningProjects"), ga = a((e) => e ? { configFile: e.configFile, forbidOnly: e.forbidOnly, fullyParallel: e.fullyParallel, globalSetup: e.globalSetup, globalTeardown: e.globalTeardown, globalTimeout: e.globalTimeout, grep: e.grep?.toString(), grepInvert: e.grepInvert?.toString(), maxFailures: e.maxFailures, metadata: e.metadata, preserveOutput: e.preserveOutput, quiet: e.quiet, reporter: e.reporter, reportSlowTests: e.reportSlowTests, rootDir: e.rootDir, shard: e.shard, updateSnapshots: e.updateSnapshots, version: e.version, webServer: e.webServer, workers: e.workers } : void 0, "extractConfigInfo"), Ia = a(({ absolutePath: e, rootDir: t }) => {
9498
+ }, "filterNotificationConfigsByRunningProjects"), Sa = a((e) => e ? { configFile: e.configFile, forbidOnly: e.forbidOnly, fullyParallel: e.fullyParallel, globalSetup: e.globalSetup, globalTeardown: e.globalTeardown, globalTimeout: e.globalTimeout, grep: e.grep?.toString(), grepInvert: e.grepInvert?.toString(), maxFailures: e.maxFailures, metadata: e.metadata, preserveOutput: e.preserveOutput, quiet: e.quiet, reporter: e.reporter, reportSlowTests: e.reportSlowTests, rootDir: e.rootDir, shard: e.shard, updateSnapshots: e.updateSnapshots, version: e.version, webServer: e.webServer, workers: e.workers } : void 0, "extractConfigInfo"), Ra = a(({ absolutePath: e, rootDir: t }) => {
9499
9499
  if (t && e.startsWith(t)) {
9500
9500
  const r = e.slice(t.length);
9501
9501
  return r.startsWith("/") ? r.slice(1) : r;
@@ -9530,16 +9530,16 @@ class Cn {
9530
9530
  const i = jr(t.sensitiveValues);
9531
9531
  this.sensitiveValues = [...i].sort((o, c) => c.length - o.length);
9532
9532
  }
9533
- this.wsClient = new Eo({ apiKey: r, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: a((i) => this.handleWebSocketError(i), "onError"), onMessage: a((i) => this.handleWebSocketMessage(i), "onMessage"), projectId: n, reconnectDelay: 2e3, url: Ea });
9533
+ this.wsClient = new go({ apiKey: r, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: a((i) => this.handleWebSocketError(i), "onError"), onMessage: a((i) => this.handleWebSocketMessage(i), "onMessage"), projectId: n, reconnectDelay: 2e3, url: ga });
9534
9534
  }
9535
9535
  onBegin(t, r) {
9536
9536
  if (this.isListMode = process.argv.includes("--list"), this.isListMode) return;
9537
9537
  r.allTests().length === 0 && process.exit(1), this.config = t, this.testSuiteRunId = this.getSuiteRunId(t), this.rootDir = t.rootDir, this.suiteData = this.extractSuiteInfo(t, r);
9538
- const i = _a({ notificationConfigs: this.notificationConfigs, suite: r });
9538
+ const i = Ia({ notificationConfigs: this.notificationConfigs, suite: r });
9539
9539
  this.filteredNotificationConfigs = i, this.pendingOperations.push(this.wsClient.sendEvent({ payload: { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, totalShards: this.config?.shard?.total } : void 0, status: "running" }, type: "suite_start" }));
9540
9540
  }
9541
9541
  getSuiteRunId(t) {
9542
- return getCiRunKey() ?? t.metadata?.testSuiteRunId ?? nt();
9542
+ return getCiRunKey() ?? t.metadata?.testSuiteRunId ?? it();
9543
9543
  }
9544
9544
  onTestBegin(t, r) {
9545
9545
  if (this.isListMode) return;
@@ -9550,20 +9550,20 @@ class Cn {
9550
9550
  if (this.isListMode) return;
9551
9551
  const n = this.extractTestCaseInfo(t, r);
9552
9552
  this.testCases.push(n), this.testStepsMap.set(n.id, r);
9553
- const i = pa({ result: r, sensitiveValues: this.sensitiveValues }), o = [...r.attachments, { contentType: "text/plain", name: "source-code", path: t.location.file }], c = (async () => {
9553
+ const i = Ea({ result: r, sensitiveValues: this.sensitiveValues }), o = [...r.attachments, { contentType: "text/plain", name: "source-code", path: t.location.file }], c = (async () => {
9554
9554
  const l = await this.extractAttachmentMetadata({ attachments: o, attemptNumber: n.attemptNumber, testId: n.id });
9555
- let d, _;
9556
- l.length > 0 && (d = `${n.id}-${n.attemptNumber}`, _ = new Promise((p) => {
9557
- this.pendingUploadUrlRequests.set(d, p);
9558
- }), this.pendingOperations.push(_));
9555
+ let m, R;
9556
+ l.length > 0 && (m = `${n.id}-${n.attemptNumber}`, R = new Promise((h) => {
9557
+ this.pendingUploadUrlRequests.set(m, h);
9558
+ }), this.pendingOperations.push(R));
9559
9559
  try {
9560
9560
  await this.wsClient.sendEvent({ payload: { ...n, attachments: l, steps: i }, type: "test_end" });
9561
- } catch (p) {
9562
- if (d && _) {
9563
- const w = this.pendingUploadUrlRequests.get(d);
9564
- w && (w(), this.pendingUploadUrlRequests.delete(d));
9561
+ } catch (h) {
9562
+ if (m && R) {
9563
+ const T = this.pendingUploadUrlRequests.get(m);
9564
+ T && (T(), this.pendingUploadUrlRequests.delete(m));
9565
9565
  }
9566
- throw p;
9566
+ throw h;
9567
9567
  }
9568
9568
  })();
9569
9569
  this.pendingOperations.push(c);
@@ -9573,41 +9573,50 @@ class Cn {
9573
9573
  this.pendingOperations.push(this.wsClient.sendEvent({ payload: { duration: t.duration, notificationRequest: this.filteredNotificationConfigs ? { notificationConfigs: this.filteredNotificationConfigs, totalShards: this.config?.shard?.total } : void 0, status: t.status === "timedout" ? "timedOut" : t.status, suiteId: this.testSuiteRunId }, type: "suite_end" })), Ie$1("[Stably reporter] Waiting for pending tasks to finish...");
9574
9574
  const r = Y();
9575
9575
  r.start("Waiting for tasks to finish...");
9576
- const n = Promise.allSettled(An(this.pendingOperations, ({ completed: d, errors: _, total: p }) => {
9577
- r.message(`${d}/${p} tasks finished${_ > 0 ? `, ${_} errors` : ""}`);
9578
- })), i = new Promise((d, _) => {
9576
+ const n = Promise.allSettled(yn(this.pendingOperations, ({ completed: h, errors: T, total: C }) => {
9577
+ r.message(`${h}/${C} tasks finished${T > 0 ? `, ${T} errors` : ""}`);
9578
+ })), i = new Promise((h, T) => {
9579
9579
  setTimeout(() => {
9580
- _(new Error(`Tasks timeout: Some operations did not complete within ${bn / 1e3}s`));
9580
+ T(new Error(`Tasks timeout: Some operations did not complete within ${bn / 1e3}s`));
9581
9581
  }, bn);
9582
9582
  });
9583
9583
  try {
9584
9584
  await Promise.race([n, i]);
9585
- } catch (d) {
9586
- const _ = d instanceof Error ? d.message : String(d);
9587
- console.warn(`[StablyAI reporter] Tasks timeout reached. Some operations may still be pending: ${_}`);
9585
+ } catch (h) {
9586
+ const T = h instanceof Error ? h.message : String(h);
9587
+ console.warn(`[StablyAI reporter] Tasks timeout reached. Some operations may still be pending: ${T}`);
9588
9588
  }
9589
9589
  this.wsClient.flushBuffer(), r.stop("All tasks finished");
9590
9590
  const o = Y();
9591
- o.start("Waiting for file uploads to finish..."), await Promise.allSettled(An(this.pendingUploads, ({ completed: d, errors: _, total: p }) => {
9592
- o.message(`${d}/${p} uploads finished${_ > 0 ? `, ${_} errors` : ""}`);
9591
+ o.start("Waiting for file uploads to finish..."), await Promise.allSettled(yn(this.pendingUploads, ({ completed: h, errors: T, total: C }) => {
9592
+ o.message(`${h}/${C} uploads finished${T > 0 ? `, ${T} errors` : ""}`);
9593
9593
  })), o.stop("All file uploads finished"), this.wsClient.close();
9594
- const c = this.createdSuiteRun?.name || this.suiteData?.title || "Test Suite", l = t.status === "failed" || t.status === "timedout";
9595
- Se$1(Ce.cyan(`\u2728 Suite "${Ce.bold(c)}" run complete!${this.createdSuiteRun ? `
9596
- \u{1F4CA} View results: ${Ce.bold(Ce.underline(this.createdSuiteRun.url))}` : ""}${l ? `
9594
+ try {
9595
+ const h = qe.join(this.rootDir, ".stably");
9596
+ je.mkdirSync(h, { recursive: true }), je.writeFileSync(qe.join(h, "last-run.json"), JSON.stringify({ runId: this.testSuiteRunId, timestamp: Date.now() }));
9597
+ } catch {
9598
+ }
9599
+ const c = this.createdSuiteRun?.name || this.suiteData?.title || "Test Suite", l = t.status === "failed" || t.status === "timedout", m = this.suiteData?.isCI ?? !!process.env.CI, R = l ? m ? `
9600
+
9601
+ \u{1F527} Auto-heal note:
9602
+ If a "stably fix" step runs right after this test run, it may have already fixed these failures.
9603
+ Check the logs under that "stably fix" step.` : `
9597
9604
 
9598
9605
  \u{1F527} To auto-heal failed tests, run:
9599
- ${Ce.bold(Ce.underline(`stably fix ${this.testSuiteRunId}`))}` : ""}`));
9606
+ ${Ce.bold(Ce.underline(`stably fix ${this.testSuiteRunId}`))}` : "";
9607
+ Se$1(Ce.cyan(`\u2728 Suite "${Ce.bold(c)}" run complete!${this.createdSuiteRun ? `
9608
+ \u{1F4CA} View results: ${Ce.bold(Ce.underline(this.createdSuiteRun.url))}` : ""}${R}`));
9600
9609
  }
9601
9610
  scrubSensitiveString(t) {
9602
9611
  return !t || !this.sensitiveValues?.length ? t : oe({ sensitiveValues: this.sensitiveValues, str: t });
9603
9612
  }
9604
9613
  extractSuiteInfo(t, r) {
9605
- const n = ia(), i = aa(), o = /* @__PURE__ */ new Date();
9606
- return { id: nt(), projectSettings: ga(t), startedAt: o, suiteId: this.testSuiteRunId, title: r.title || "Playwright Test Suite", createdAt: o, git: { branch: n.branch, commit: { message: n.commit.message, sha: n.commit.sha }, pr: n.pr }, isCI: n.isCI, shards: t.shard?.total ?? 1, workers: t.workers, machineInfo: i, updatedAt: o };
9614
+ const n = sa(), i = ua(), o = /* @__PURE__ */ new Date();
9615
+ return { id: it(), projectSettings: Sa(t), startedAt: o, suiteId: this.testSuiteRunId, title: r.title || "Playwright Test Suite", createdAt: o, git: { branch: n.branch, commit: { message: n.commit.message, sha: n.commit.sha }, pr: n.pr }, isCI: n.isCI, shards: t.shard?.total ?? 1, workers: t.workers, machineInfo: i, updatedAt: o };
9607
9616
  }
9608
9617
  extractTestCaseInfo(t, r) {
9609
- const n = Ia({ absolutePath: t.location.file, rootDir: this.rootDir }), i = t.parent.project(), o = i?.name, c = i?.use?.defaultBrowserType;
9610
- return { fullTitle: this.scrubSensitiveString(t.titlePath().join(" \u203A ")) ?? "", id: nt(), location: `${n}:${t.location.line}:${t.location.column}`, suiteId: this.testSuiteRunId, testIdentifier: t.id, title: this.scrubSensitiveString(t.title) ?? t.title, browserName: c, duration: r.duration, expectedStatus: t.expectedStatus, finishedAt: r.startTime && r.duration ? new Date(r.startTime.getTime() + r.duration) : void 0, outcome: t.outcome(), projectName: o, startedAt: new Date(r.startTime), status: r.status, attemptNumber: r.retry + 1, maxRetries: t.retries, retryCount: r.retry, errorMessage: this.scrubSensitiveString(r.error?.message), errorStack: this.scrubSensitiveString(r.error?.stack), errorType: r.error?.value, annotations: t.annotations.length > 0 ? t.annotations : void 0, tags: t.tags.length > 0 ? t.tags : void 0 };
9618
+ const n = Ra({ absolutePath: t.location.file, rootDir: this.rootDir }), i = t.parent.project(), o = i?.name, c = i?.use?.defaultBrowserType;
9619
+ return { fullTitle: this.scrubSensitiveString(t.titlePath().join(" \u203A ")) ?? "", id: it(), location: `${n}:${t.location.line}:${t.location.column}`, suiteId: this.testSuiteRunId, testIdentifier: t.id, title: this.scrubSensitiveString(t.title) ?? t.title, browserName: c, duration: r.duration, expectedStatus: t.expectedStatus, finishedAt: r.startTime && r.duration ? new Date(r.startTime.getTime() + r.duration) : void 0, outcome: t.outcome(), projectName: o, startedAt: new Date(r.startTime), status: r.status, attemptNumber: r.retry + 1, maxRetries: t.retries, retryCount: r.retry, errorMessage: this.scrubSensitiveString(r.error?.message), errorStack: this.scrubSensitiveString(r.error?.stack), errorType: r.error?.value, annotations: t.annotations.length > 0 ? t.annotations : void 0, tags: t.tags.length > 0 ? t.tags : void 0 };
9611
9620
  }
9612
9621
  async extractAttachmentMetadata({ attachments: t, attemptNumber: r, testId: n }) {
9613
9622
  return (await Promise.all(t.map((o) => this.processAttachment({ attachment: o, attemptNumber: r, testId: n })))).filter((o) => o !== void 0);
@@ -9618,7 +9627,7 @@ class Cn {
9618
9627
  i = t.name === "trace" && t.path && this.sensitiveValues && this.sensitiveValues.length > 0 ? je.openSync(t.path, "r") : void 0;
9619
9628
  const o = await this.getAttachmentFileData({ attachment: t, traceFd: i });
9620
9629
  if (!o) return;
9621
- const c = nt(), l = `${n}-${r}-${c}`;
9630
+ const c = it(), l = `${n}-${r}-${c}`;
9622
9631
  return this.attachmentFiles.set(l, o), { artifactId: c, attemptNumber: r, contentType: t.contentType, name: t.name, sizeBytes: o.length, testId: n };
9623
9632
  } catch (o) {
9624
9633
  const c = o instanceof Error ? o.message : String(o);
@@ -9640,7 +9649,7 @@ class Cn {
9640
9649
  return t.body ? Buffer.from(t.body) : t.path ? je.readFileSync(t.path) : void 0;
9641
9650
  }
9642
9651
  async scrubTraceFromFile({ attachmentPath: t, sensitiveValues: r, traceFd: n }) {
9643
- return n !== void 0 ? mo({ sensitiveValues: r, traceFd: n, tracePath: t }) : po({ sensitiveValues: r, tracePath: t });
9652
+ return n !== void 0 ? _o({ sensitiveValues: r, traceFd: n, tracePath: t }) : Eo({ sensitiveValues: r, tracePath: t });
9644
9653
  }
9645
9654
  handleWebSocketError(t) {
9646
9655
  t.code === Yr.AUTHENTICATION_FAILED && (console.error(Ce.bold(Ce.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);
@@ -9657,22 +9666,22 @@ class Cn {
9657
9666
  }
9658
9667
  async uploadAttachments(t, r, n) {
9659
9668
  const i = n.map(async ({ artifactId: o, name: c, uploadUrl: l }) => {
9660
- const d = `${t}-${r}-${o}`, _ = this.attachmentFiles.get(d);
9661
- if (_) try {
9662
- await ma({ fileData: _, maxRetries: 3, uploadUrl: l }), this.attachmentFiles.delete(d);
9663
- } catch (p) {
9664
- const w = p instanceof Error ? p.message : String(p);
9665
- console.error(`[StablyAI reporter] Failed to upload ${c} after retries: ${w}`);
9669
+ const m = `${t}-${r}-${o}`, R = this.attachmentFiles.get(m);
9670
+ if (R) try {
9671
+ await _a({ fileData: R, maxRetries: 3, uploadUrl: l }), this.attachmentFiles.delete(m);
9672
+ } catch (h) {
9673
+ const T = h instanceof Error ? h.message : String(h);
9674
+ console.error(`[StablyAI reporter] Failed to upload ${c} after retries: ${T}`);
9666
9675
  }
9667
9676
  });
9668
9677
  await Promise.allSettled(i);
9669
9678
  }
9670
9679
  }
9671
- function Sa(e) {
9680
+ function Ta(e) {
9672
9681
  return ["@stablyai/playwright-test/reporter", e];
9673
9682
  }
9674
- a(Sa, "stablyReporter");
9683
+ a(Ta, "stablyReporter");
9675
9684
 
9676
9685
  exports.Cn = Cn;
9677
- exports.Sa = Sa;
9678
- //# sourceMappingURL=index-NMVIqC6_.cjs.map
9686
+ exports.Ta = Ta;
9687
+ //# sourceMappingURL=index-Cjfxwz2m.cjs.map