@coana-tech/cli 15.1.0 → 15.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli.mjs CHANGED
@@ -13382,7 +13382,7 @@ var require_ms = __commonJS({
13382
13382
  var h = m4 * 60;
13383
13383
  var d4 = h * 24;
13384
13384
  var w = d4 * 7;
13385
- var y9 = d4 * 365.25;
13385
+ var y8 = d4 * 365.25;
13386
13386
  module2.exports = function(val2, options) {
13387
13387
  options = options || {};
13388
13388
  var type = typeof val2;
@@ -13414,7 +13414,7 @@ var require_ms = __commonJS({
13414
13414
  case "yrs":
13415
13415
  case "yr":
13416
13416
  case "y":
13417
- return n2 * y9;
13417
+ return n2 * y8;
13418
13418
  case "weeks":
13419
13419
  case "week":
13420
13420
  case "w":
@@ -17960,7 +17960,7 @@ var require_ms2 = __commonJS({
17960
17960
  var h = m4 * 60;
17961
17961
  var d4 = h * 24;
17962
17962
  var w = d4 * 7;
17963
- var y9 = d4 * 365.25;
17963
+ var y8 = d4 * 365.25;
17964
17964
  module2.exports = function(val2, options) {
17965
17965
  options = options || {};
17966
17966
  var type = typeof val2;
@@ -17992,7 +17992,7 @@ var require_ms2 = __commonJS({
17992
17992
  case "yrs":
17993
17993
  case "yr":
17994
17994
  case "y":
17995
- return n2 * y9;
17995
+ return n2 * y8;
17996
17996
  case "weeks":
17997
17997
  case "week":
17998
17998
  case "w":
@@ -23202,16 +23202,16 @@ var require_conversions = __commonJS({
23202
23202
  var b = rgb[2] / 255;
23203
23203
  var c3;
23204
23204
  var m4;
23205
- var y9;
23205
+ var y8;
23206
23206
  var k;
23207
23207
  k = Math.min(1 - r3, 1 - g, 1 - b);
23208
23208
  c3 = (1 - r3 - k) / (1 - k) || 0;
23209
23209
  m4 = (1 - g - k) / (1 - k) || 0;
23210
- y9 = (1 - b - k) / (1 - k) || 0;
23211
- return [c3 * 100, m4 * 100, y9 * 100, k * 100];
23210
+ y8 = (1 - b - k) / (1 - k) || 0;
23211
+ return [c3 * 100, m4 * 100, y8 * 100, k * 100];
23212
23212
  };
23213
- function comparativeDistance(x2, y9) {
23214
- return Math.pow(x2[0] - y9[0], 2) + Math.pow(x2[1] - y9[1], 2) + Math.pow(x2[2] - y9[2], 2);
23213
+ function comparativeDistance(x2, y8) {
23214
+ return Math.pow(x2[0] - y8[0], 2) + Math.pow(x2[1] - y8[1], 2) + Math.pow(x2[2] - y8[2], 2);
23215
23215
  }
23216
23216
  convert.rgb.keyword = function(rgb) {
23217
23217
  var reversed = reverseKeywords[rgb];
@@ -23243,27 +23243,27 @@ var require_conversions = __commonJS({
23243
23243
  g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92;
23244
23244
  b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;
23245
23245
  var x2 = r3 * 0.4124 + g * 0.3576 + b * 0.1805;
23246
- var y9 = r3 * 0.2126 + g * 0.7152 + b * 0.0722;
23246
+ var y8 = r3 * 0.2126 + g * 0.7152 + b * 0.0722;
23247
23247
  var z = r3 * 0.0193 + g * 0.1192 + b * 0.9505;
23248
- return [x2 * 100, y9 * 100, z * 100];
23248
+ return [x2 * 100, y8 * 100, z * 100];
23249
23249
  };
23250
23250
  convert.rgb.lab = function(rgb) {
23251
23251
  var xyz = convert.rgb.xyz(rgb);
23252
23252
  var x2 = xyz[0];
23253
- var y9 = xyz[1];
23253
+ var y8 = xyz[1];
23254
23254
  var z = xyz[2];
23255
23255
  var l6;
23256
23256
  var a4;
23257
23257
  var b;
23258
23258
  x2 /= 95.047;
23259
- y9 /= 100;
23259
+ y8 /= 100;
23260
23260
  z /= 108.883;
23261
23261
  x2 = x2 > 8856e-6 ? Math.pow(x2, 1 / 3) : 7.787 * x2 + 16 / 116;
23262
- y9 = y9 > 8856e-6 ? Math.pow(y9, 1 / 3) : 7.787 * y9 + 16 / 116;
23262
+ y8 = y8 > 8856e-6 ? Math.pow(y8, 1 / 3) : 7.787 * y8 + 16 / 116;
23263
23263
  z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
23264
- l6 = 116 * y9 - 16;
23265
- a4 = 500 * (x2 - y9);
23266
- b = 200 * (y9 - z);
23264
+ l6 = 116 * y8 - 16;
23265
+ a4 = 500 * (x2 - y8);
23266
+ b = 200 * (y8 - z);
23267
23267
  return [l6, a4, b];
23268
23268
  };
23269
23269
  convert.hsl.rgb = function(hsl) {
@@ -23327,10 +23327,10 @@ var require_conversions = __commonJS({
23327
23327
  var s6 = hsv[1] / 100;
23328
23328
  var v = hsv[2] / 100;
23329
23329
  var hi = Math.floor(h) % 6;
23330
- var f6 = h - Math.floor(h);
23330
+ var f5 = h - Math.floor(h);
23331
23331
  var p3 = 255 * v * (1 - s6);
23332
- var q5 = 255 * v * (1 - s6 * f6);
23333
- var t4 = 255 * v * (1 - s6 * (1 - f6));
23332
+ var q5 = 255 * v * (1 - s6 * f5);
23333
+ var t4 = 255 * v * (1 - s6 * (1 - f5));
23334
23334
  v *= 255;
23335
23335
  switch (hi) {
23336
23336
  case 0:
@@ -23370,7 +23370,7 @@ var require_conversions = __commonJS({
23370
23370
  var ratio = wh + bl;
23371
23371
  var i7;
23372
23372
  var v;
23373
- var f6;
23373
+ var f5;
23374
23374
  var n2;
23375
23375
  if (ratio > 1) {
23376
23376
  wh /= ratio;
@@ -23378,11 +23378,11 @@ var require_conversions = __commonJS({
23378
23378
  }
23379
23379
  i7 = Math.floor(6 * h);
23380
23380
  v = 1 - bl;
23381
- f6 = 6 * h - i7;
23381
+ f5 = 6 * h - i7;
23382
23382
  if ((i7 & 1) !== 0) {
23383
- f6 = 1 - f6;
23383
+ f5 = 1 - f5;
23384
23384
  }
23385
- n2 = wh + f6 * (v - wh);
23385
+ n2 = wh + f5 * (v - wh);
23386
23386
  var r3;
23387
23387
  var g;
23388
23388
  var b;
@@ -23425,26 +23425,26 @@ var require_conversions = __commonJS({
23425
23425
  convert.cmyk.rgb = function(cmyk) {
23426
23426
  var c3 = cmyk[0] / 100;
23427
23427
  var m4 = cmyk[1] / 100;
23428
- var y9 = cmyk[2] / 100;
23428
+ var y8 = cmyk[2] / 100;
23429
23429
  var k = cmyk[3] / 100;
23430
23430
  var r3;
23431
23431
  var g;
23432
23432
  var b;
23433
23433
  r3 = 1 - Math.min(1, c3 * (1 - k) + k);
23434
23434
  g = 1 - Math.min(1, m4 * (1 - k) + k);
23435
- b = 1 - Math.min(1, y9 * (1 - k) + k);
23435
+ b = 1 - Math.min(1, y8 * (1 - k) + k);
23436
23436
  return [r3 * 255, g * 255, b * 255];
23437
23437
  };
23438
23438
  convert.xyz.rgb = function(xyz) {
23439
23439
  var x2 = xyz[0] / 100;
23440
- var y9 = xyz[1] / 100;
23440
+ var y8 = xyz[1] / 100;
23441
23441
  var z = xyz[2] / 100;
23442
23442
  var r3;
23443
23443
  var g;
23444
23444
  var b;
23445
- r3 = x2 * 3.2406 + y9 * -1.5372 + z * -0.4986;
23446
- g = x2 * -0.9689 + y9 * 1.8758 + z * 0.0415;
23447
- b = x2 * 0.0557 + y9 * -0.204 + z * 1.057;
23445
+ r3 = x2 * 3.2406 + y8 * -1.5372 + z * -0.4986;
23446
+ g = x2 * -0.9689 + y8 * 1.8758 + z * 0.0415;
23447
+ b = x2 * 0.0557 + y8 * -0.204 + z * 1.057;
23448
23448
  r3 = r3 > 31308e-7 ? 1.055 * Math.pow(r3, 1 / 2.4) - 0.055 : r3 * 12.92;
23449
23449
  g = g > 31308e-7 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : g * 12.92;
23450
23450
  b = b > 31308e-7 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : b * 12.92;
@@ -23455,20 +23455,20 @@ var require_conversions = __commonJS({
23455
23455
  };
23456
23456
  convert.xyz.lab = function(xyz) {
23457
23457
  var x2 = xyz[0];
23458
- var y9 = xyz[1];
23458
+ var y8 = xyz[1];
23459
23459
  var z = xyz[2];
23460
23460
  var l6;
23461
23461
  var a4;
23462
23462
  var b;
23463
23463
  x2 /= 95.047;
23464
- y9 /= 100;
23464
+ y8 /= 100;
23465
23465
  z /= 108.883;
23466
23466
  x2 = x2 > 8856e-6 ? Math.pow(x2, 1 / 3) : 7.787 * x2 + 16 / 116;
23467
- y9 = y9 > 8856e-6 ? Math.pow(y9, 1 / 3) : 7.787 * y9 + 16 / 116;
23467
+ y8 = y8 > 8856e-6 ? Math.pow(y8, 1 / 3) : 7.787 * y8 + 16 / 116;
23468
23468
  z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
23469
- l6 = 116 * y9 - 16;
23470
- a4 = 500 * (x2 - y9);
23471
- b = 200 * (y9 - z);
23469
+ l6 = 116 * y8 - 16;
23470
+ a4 = 500 * (x2 - y8);
23471
+ b = 200 * (y8 - z);
23472
23472
  return [l6, a4, b];
23473
23473
  };
23474
23474
  convert.lab.xyz = function(lab) {
@@ -23476,21 +23476,21 @@ var require_conversions = __commonJS({
23476
23476
  var a4 = lab[1];
23477
23477
  var b = lab[2];
23478
23478
  var x2;
23479
- var y9;
23479
+ var y8;
23480
23480
  var z;
23481
- y9 = (l6 + 16) / 116;
23482
- x2 = a4 / 500 + y9;
23483
- z = y9 - b / 200;
23484
- var y22 = Math.pow(y9, 3);
23481
+ y8 = (l6 + 16) / 116;
23482
+ x2 = a4 / 500 + y8;
23483
+ z = y8 - b / 200;
23484
+ var y22 = Math.pow(y8, 3);
23485
23485
  var x22 = Math.pow(x2, 3);
23486
23486
  var z2 = Math.pow(z, 3);
23487
- y9 = y22 > 8856e-6 ? y22 : (y9 - 16 / 116) / 7.787;
23487
+ y8 = y22 > 8856e-6 ? y22 : (y8 - 16 / 116) / 7.787;
23488
23488
  x2 = x22 > 8856e-6 ? x22 : (x2 - 16 / 116) / 7.787;
23489
23489
  z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
23490
23490
  x2 *= 95.047;
23491
- y9 *= 100;
23491
+ y8 *= 100;
23492
23492
  z *= 108.883;
23493
- return [x2, y9, z];
23493
+ return [x2, y8, z];
23494
23494
  };
23495
23495
  convert.lab.lch = function(lab) {
23496
23496
  var l6 = lab[0];
@@ -23633,26 +23633,26 @@ var require_conversions = __commonJS({
23633
23633
  var s6 = hsl[1] / 100;
23634
23634
  var l6 = hsl[2] / 100;
23635
23635
  var c3 = 1;
23636
- var f6 = 0;
23636
+ var f5 = 0;
23637
23637
  if (l6 < 0.5) {
23638
23638
  c3 = 2 * s6 * l6;
23639
23639
  } else {
23640
23640
  c3 = 2 * s6 * (1 - l6);
23641
23641
  }
23642
23642
  if (c3 < 1) {
23643
- f6 = (l6 - 0.5 * c3) / (1 - c3);
23643
+ f5 = (l6 - 0.5 * c3) / (1 - c3);
23644
23644
  }
23645
- return [hsl[0], c3 * 100, f6 * 100];
23645
+ return [hsl[0], c3 * 100, f5 * 100];
23646
23646
  };
23647
23647
  convert.hsv.hcg = function(hsv) {
23648
23648
  var s6 = hsv[1] / 100;
23649
23649
  var v = hsv[2] / 100;
23650
23650
  var c3 = s6 * v;
23651
- var f6 = 0;
23651
+ var f5 = 0;
23652
23652
  if (c3 < 1) {
23653
- f6 = (v - c3) / (1 - c3);
23653
+ f5 = (v - c3) / (1 - c3);
23654
23654
  }
23655
- return [hsv[0], c3 * 100, f6 * 100];
23655
+ return [hsv[0], c3 * 100, f5 * 100];
23656
23656
  };
23657
23657
  convert.hcg.rgb = function(hcg) {
23658
23658
  var h = hcg[0] / 360;
@@ -23708,11 +23708,11 @@ var require_conversions = __commonJS({
23708
23708
  var c3 = hcg[1] / 100;
23709
23709
  var g = hcg[2] / 100;
23710
23710
  var v = c3 + g * (1 - c3);
23711
- var f6 = 0;
23711
+ var f5 = 0;
23712
23712
  if (v > 0) {
23713
- f6 = c3 / v;
23713
+ f5 = c3 / v;
23714
23714
  }
23715
- return [hcg[0], f6 * 100, v * 100];
23715
+ return [hcg[0], f5 * 100, v * 100];
23716
23716
  };
23717
23717
  convert.hcg.hsl = function(hcg) {
23718
23718
  var c3 = hcg[1] / 100;
@@ -32800,11 +32800,11 @@ var require_conversions2 = __commonJS({
32800
32800
  const k = Math.min(1 - r3, 1 - g, 1 - b);
32801
32801
  const c3 = (1 - r3 - k) / (1 - k) || 0;
32802
32802
  const m4 = (1 - g - k) / (1 - k) || 0;
32803
- const y9 = (1 - b - k) / (1 - k) || 0;
32804
- return [c3 * 100, m4 * 100, y9 * 100, k * 100];
32803
+ const y8 = (1 - b - k) / (1 - k) || 0;
32804
+ return [c3 * 100, m4 * 100, y8 * 100, k * 100];
32805
32805
  };
32806
- function comparativeDistance(x2, y9) {
32807
- return (x2[0] - y9[0]) ** 2 + (x2[1] - y9[1]) ** 2 + (x2[2] - y9[2]) ** 2;
32806
+ function comparativeDistance(x2, y8) {
32807
+ return (x2[0] - y8[0]) ** 2 + (x2[1] - y8[1]) ** 2 + (x2[2] - y8[2]) ** 2;
32808
32808
  }
32809
32809
  convert.rgb.keyword = function(rgb) {
32810
32810
  const reversed = reverseKeywords[rgb];
@@ -32834,24 +32834,24 @@ var require_conversions2 = __commonJS({
32834
32834
  g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
32835
32835
  b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
32836
32836
  const x2 = r3 * 0.4124 + g * 0.3576 + b * 0.1805;
32837
- const y9 = r3 * 0.2126 + g * 0.7152 + b * 0.0722;
32837
+ const y8 = r3 * 0.2126 + g * 0.7152 + b * 0.0722;
32838
32838
  const z = r3 * 0.0193 + g * 0.1192 + b * 0.9505;
32839
- return [x2 * 100, y9 * 100, z * 100];
32839
+ return [x2 * 100, y8 * 100, z * 100];
32840
32840
  };
32841
32841
  convert.rgb.lab = function(rgb) {
32842
32842
  const xyz = convert.rgb.xyz(rgb);
32843
32843
  let x2 = xyz[0];
32844
- let y9 = xyz[1];
32844
+ let y8 = xyz[1];
32845
32845
  let z = xyz[2];
32846
32846
  x2 /= 95.047;
32847
- y9 /= 100;
32847
+ y8 /= 100;
32848
32848
  z /= 108.883;
32849
32849
  x2 = x2 > 8856e-6 ? x2 ** (1 / 3) : 7.787 * x2 + 16 / 116;
32850
- y9 = y9 > 8856e-6 ? y9 ** (1 / 3) : 7.787 * y9 + 16 / 116;
32850
+ y8 = y8 > 8856e-6 ? y8 ** (1 / 3) : 7.787 * y8 + 16 / 116;
32851
32851
  z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
32852
- const l6 = 116 * y9 - 16;
32853
- const a4 = 500 * (x2 - y9);
32854
- const b = 200 * (y9 - z);
32852
+ const l6 = 116 * y8 - 16;
32853
+ const a4 = 500 * (x2 - y8);
32854
+ const b = 200 * (y8 - z);
32855
32855
  return [l6, a4, b];
32856
32856
  };
32857
32857
  convert.hsl.rgb = function(hsl) {
@@ -32911,10 +32911,10 @@ var require_conversions2 = __commonJS({
32911
32911
  const s6 = hsv[1] / 100;
32912
32912
  let v = hsv[2] / 100;
32913
32913
  const hi = Math.floor(h) % 6;
32914
- const f6 = h - Math.floor(h);
32914
+ const f5 = h - Math.floor(h);
32915
32915
  const p3 = 255 * v * (1 - s6);
32916
- const q5 = 255 * v * (1 - s6 * f6);
32917
- const t4 = 255 * v * (1 - s6 * (1 - f6));
32916
+ const q5 = 255 * v * (1 - s6 * f5);
32917
+ const t4 = 255 * v * (1 - s6 * (1 - f5));
32918
32918
  v *= 255;
32919
32919
  switch (hi) {
32920
32920
  case 0:
@@ -32951,18 +32951,18 @@ var require_conversions2 = __commonJS({
32951
32951
  let wh = hwb[1] / 100;
32952
32952
  let bl = hwb[2] / 100;
32953
32953
  const ratio = wh + bl;
32954
- let f6;
32954
+ let f5;
32955
32955
  if (ratio > 1) {
32956
32956
  wh /= ratio;
32957
32957
  bl /= ratio;
32958
32958
  }
32959
32959
  const i7 = Math.floor(6 * h);
32960
32960
  const v = 1 - bl;
32961
- f6 = 6 * h - i7;
32961
+ f5 = 6 * h - i7;
32962
32962
  if ((i7 & 1) !== 0) {
32963
- f6 = 1 - f6;
32963
+ f5 = 1 - f5;
32964
32964
  }
32965
- const n2 = wh + f6 * (v - wh);
32965
+ const n2 = wh + f5 * (v - wh);
32966
32966
  let r3;
32967
32967
  let g;
32968
32968
  let b;
@@ -33005,23 +33005,23 @@ var require_conversions2 = __commonJS({
33005
33005
  convert.cmyk.rgb = function(cmyk) {
33006
33006
  const c3 = cmyk[0] / 100;
33007
33007
  const m4 = cmyk[1] / 100;
33008
- const y9 = cmyk[2] / 100;
33008
+ const y8 = cmyk[2] / 100;
33009
33009
  const k = cmyk[3] / 100;
33010
33010
  const r3 = 1 - Math.min(1, c3 * (1 - k) + k);
33011
33011
  const g = 1 - Math.min(1, m4 * (1 - k) + k);
33012
- const b = 1 - Math.min(1, y9 * (1 - k) + k);
33012
+ const b = 1 - Math.min(1, y8 * (1 - k) + k);
33013
33013
  return [r3 * 255, g * 255, b * 255];
33014
33014
  };
33015
33015
  convert.xyz.rgb = function(xyz) {
33016
33016
  const x2 = xyz[0] / 100;
33017
- const y9 = xyz[1] / 100;
33017
+ const y8 = xyz[1] / 100;
33018
33018
  const z = xyz[2] / 100;
33019
33019
  let r3;
33020
33020
  let g;
33021
33021
  let b;
33022
- r3 = x2 * 3.2406 + y9 * -1.5372 + z * -0.4986;
33023
- g = x2 * -0.9689 + y9 * 1.8758 + z * 0.0415;
33024
- b = x2 * 0.0557 + y9 * -0.204 + z * 1.057;
33022
+ r3 = x2 * 3.2406 + y8 * -1.5372 + z * -0.4986;
33023
+ g = x2 * -0.9689 + y8 * 1.8758 + z * 0.0415;
33024
+ b = x2 * 0.0557 + y8 * -0.204 + z * 1.057;
33025
33025
  r3 = r3 > 31308e-7 ? 1.055 * r3 ** (1 / 2.4) - 0.055 : r3 * 12.92;
33026
33026
  g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
33027
33027
  b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
@@ -33032,17 +33032,17 @@ var require_conversions2 = __commonJS({
33032
33032
  };
33033
33033
  convert.xyz.lab = function(xyz) {
33034
33034
  let x2 = xyz[0];
33035
- let y9 = xyz[1];
33035
+ let y8 = xyz[1];
33036
33036
  let z = xyz[2];
33037
33037
  x2 /= 95.047;
33038
- y9 /= 100;
33038
+ y8 /= 100;
33039
33039
  z /= 108.883;
33040
33040
  x2 = x2 > 8856e-6 ? x2 ** (1 / 3) : 7.787 * x2 + 16 / 116;
33041
- y9 = y9 > 8856e-6 ? y9 ** (1 / 3) : 7.787 * y9 + 16 / 116;
33041
+ y8 = y8 > 8856e-6 ? y8 ** (1 / 3) : 7.787 * y8 + 16 / 116;
33042
33042
  z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
33043
- const l6 = 116 * y9 - 16;
33044
- const a4 = 500 * (x2 - y9);
33045
- const b = 200 * (y9 - z);
33043
+ const l6 = 116 * y8 - 16;
33044
+ const a4 = 500 * (x2 - y8);
33045
+ const b = 200 * (y8 - z);
33046
33046
  return [l6, a4, b];
33047
33047
  };
33048
33048
  convert.lab.xyz = function(lab) {
@@ -33050,21 +33050,21 @@ var require_conversions2 = __commonJS({
33050
33050
  const a4 = lab[1];
33051
33051
  const b = lab[2];
33052
33052
  let x2;
33053
- let y9;
33053
+ let y8;
33054
33054
  let z;
33055
- y9 = (l6 + 16) / 116;
33056
- x2 = a4 / 500 + y9;
33057
- z = y9 - b / 200;
33058
- const y22 = y9 ** 3;
33055
+ y8 = (l6 + 16) / 116;
33056
+ x2 = a4 / 500 + y8;
33057
+ z = y8 - b / 200;
33058
+ const y22 = y8 ** 3;
33059
33059
  const x22 = x2 ** 3;
33060
33060
  const z2 = z ** 3;
33061
- y9 = y22 > 8856e-6 ? y22 : (y9 - 16 / 116) / 7.787;
33061
+ y8 = y22 > 8856e-6 ? y22 : (y8 - 16 / 116) / 7.787;
33062
33062
  x2 = x22 > 8856e-6 ? x22 : (x2 - 16 / 116) / 7.787;
33063
33063
  z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
33064
33064
  x2 *= 95.047;
33065
- y9 *= 100;
33065
+ y8 *= 100;
33066
33066
  z *= 108.883;
33067
- return [x2, y9, z];
33067
+ return [x2, y8, z];
33068
33068
  };
33069
33069
  convert.lab.lch = function(lab) {
33070
33070
  const l6 = lab[0];
@@ -33200,21 +33200,21 @@ var require_conversions2 = __commonJS({
33200
33200
  const s6 = hsl[1] / 100;
33201
33201
  const l6 = hsl[2] / 100;
33202
33202
  const c3 = l6 < 0.5 ? 2 * s6 * l6 : 2 * s6 * (1 - l6);
33203
- let f6 = 0;
33203
+ let f5 = 0;
33204
33204
  if (c3 < 1) {
33205
- f6 = (l6 - 0.5 * c3) / (1 - c3);
33205
+ f5 = (l6 - 0.5 * c3) / (1 - c3);
33206
33206
  }
33207
- return [hsl[0], c3 * 100, f6 * 100];
33207
+ return [hsl[0], c3 * 100, f5 * 100];
33208
33208
  };
33209
33209
  convert.hsv.hcg = function(hsv) {
33210
33210
  const s6 = hsv[1] / 100;
33211
33211
  const v = hsv[2] / 100;
33212
33212
  const c3 = s6 * v;
33213
- let f6 = 0;
33213
+ let f5 = 0;
33214
33214
  if (c3 < 1) {
33215
- f6 = (v - c3) / (1 - c3);
33215
+ f5 = (v - c3) / (1 - c3);
33216
33216
  }
33217
- return [hsv[0], c3 * 100, f6 * 100];
33217
+ return [hsv[0], c3 * 100, f5 * 100];
33218
33218
  };
33219
33219
  convert.hcg.rgb = function(hcg) {
33220
33220
  const h = hcg[0] / 360;
@@ -33270,11 +33270,11 @@ var require_conversions2 = __commonJS({
33270
33270
  const c3 = hcg[1] / 100;
33271
33271
  const g = hcg[2] / 100;
33272
33272
  const v = c3 + g * (1 - c3);
33273
- let f6 = 0;
33273
+ let f5 = 0;
33274
33274
  if (v > 0) {
33275
- f6 = c3 / v;
33275
+ f5 = c3 / v;
33276
33276
  }
33277
- return [hcg[0], f6 * 100, v * 100];
33277
+ return [hcg[0], f5 * 100, v * 100];
33278
33278
  };
33279
33279
  convert.hcg.hsl = function(hcg) {
33280
33280
  const c3 = hcg[1] / 100;
@@ -42465,10 +42465,10 @@ var require_rules = __commonJS({
42465
42465
  t: "fallback",
42466
42466
  chunk: null
42467
42467
  };
42468
- function compareChunksByValue(x2, y9) {
42469
- if (typeof x2.chunk === "string" && typeof y9.chunk === "string") {
42468
+ function compareChunksByValue(x2, y8) {
42469
+ if (typeof x2.chunk === "string" && typeof y8.chunk === "string") {
42470
42470
  const xChunk = x2.chunk;
42471
- const yChunk = y9.chunk;
42471
+ const yChunk = y8.chunk;
42472
42472
  if (yChunk < xChunk) {
42473
42473
  return 1;
42474
42474
  } else if (xChunk < yChunk) {
@@ -42477,10 +42477,10 @@ var require_rules = __commonJS({
42477
42477
  }
42478
42478
  return 0;
42479
42479
  }
42480
- function compareChunksByInclusion(x2, y9) {
42481
- if (typeof x2.chunk === "string" && typeof y9.chunk === "string") {
42480
+ function compareChunksByInclusion(x2, y8) {
42481
+ if (typeof x2.chunk === "string" && typeof y8.chunk === "string") {
42482
42482
  const xChunk = x2.chunk;
42483
- const yChunk = y9.chunk;
42483
+ const yChunk = y8.chunk;
42484
42484
  if (yChunk.startsWith(xChunk)) {
42485
42485
  return 1;
42486
42486
  } else if (xChunk.startsWith(yChunk)) {
@@ -42509,8 +42509,8 @@ var require_rules = __commonJS({
42509
42509
  otherRules.push(rule);
42510
42510
  }
42511
42511
  }
42512
- chunkRules.sort((x2, y9) => compareChunksByValue(x2, y9));
42513
- chunkRules.sort((x2, y9) => compareChunksByInclusion(x2, y9));
42512
+ chunkRules.sort((x2, y8) => compareChunksByValue(x2, y8));
42513
+ chunkRules.sort((x2, y8) => compareChunksByInclusion(x2, y8));
42514
42514
  const res = [...numberRules, ...chunkRules, ...otherRules, ...fallbackRules];
42515
42515
  return res;
42516
42516
  }
@@ -43297,11 +43297,11 @@ var require_lib = __commonJS({
43297
43297
  inotify_dispatch(listeners[e.id], e);
43298
43298
  inotify_dispatch(listeners[EVENT_ALL], e);
43299
43299
  },
43300
- __listener(listeners, f6, scope) {
43300
+ __listener(listeners, f5, scope) {
43301
43301
  let i7 = listeners.length;
43302
43302
  while (--i7 >= 0) {
43303
43303
  const l6 = listeners[i7];
43304
- if (l6[0] === f6 && l6[1] === scope) {
43304
+ if (l6[0] === f5 && l6[1] === scope) {
43305
43305
  break;
43306
43306
  }
43307
43307
  }
@@ -43407,23 +43407,23 @@ var require_lib2 = __commonJS({
43407
43407
  var getKey = (k) => typeof k === "function" ? k : (x2) => x2[k];
43408
43408
  function compareByKey(a4, cmp = compare) {
43409
43409
  const k = getKey(a4);
43410
- return (x2, y9) => cmp(k(x2), k(y9));
43410
+ return (x2, y8) => cmp(k(x2), k(y8));
43411
43411
  }
43412
43412
  function compareByKeys2(a4, b, cmpA = compare, cmpB = compare) {
43413
43413
  const ka = getKey(a4);
43414
43414
  const kb = getKey(b);
43415
- return (x2, y9) => {
43416
- let res = cmpA(ka(x2), ka(y9));
43417
- return res === 0 ? cmpB(kb(x2), kb(y9)) : res;
43415
+ return (x2, y8) => {
43416
+ let res = cmpA(ka(x2), ka(y8));
43417
+ return res === 0 ? cmpB(kb(x2), kb(y8)) : res;
43418
43418
  };
43419
43419
  }
43420
43420
  function compareByKeys3(a4, b, c3, cmpA = compare, cmpB = compare, cmpC = compare) {
43421
43421
  const ka = getKey(a4);
43422
43422
  const kb = getKey(b);
43423
43423
  const kc = getKey(c3);
43424
- return (x2, y9) => {
43425
- let res = cmpA(ka(x2), ka(y9));
43426
- return res === 0 ? (res = cmpB(kb(x2), kb(y9))) === 0 ? cmpC(kc(x2), kc(y9)) : res : res;
43424
+ return (x2, y8) => {
43425
+ let res = cmpA(ka(x2), ka(y8));
43426
+ return res === 0 ? (res = cmpB(kb(x2), kb(y8))) === 0 ? cmpC(kc(x2), kc(y8)) : res : res;
43427
43427
  };
43428
43428
  }
43429
43429
  function compareByKeys4(a4, b, c3, d4, cmpA = compare, cmpB = compare, cmpC = compare, cmpD = compare) {
@@ -43431,9 +43431,9 @@ var require_lib2 = __commonJS({
43431
43431
  const kb = getKey(b);
43432
43432
  const kc = getKey(c3);
43433
43433
  const kd = getKey(d4);
43434
- return (x2, y9) => {
43435
- let res = cmpA(ka(x2), ka(y9));
43436
- return res === 0 ? (res = cmpB(kb(x2), kb(y9))) === 0 ? (res = cmpC(kc(x2), kc(y9))) === 0 ? cmpD(kd(x2), kd(y9)) : res : res : res;
43434
+ return (x2, y8) => {
43435
+ let res = cmpA(ka(x2), ka(y8));
43436
+ return res === 0 ? (res = cmpB(kb(x2), kb(y8))) === 0 ? (res = cmpC(kc(x2), kc(y8))) === 0 ? cmpD(kd(x2), kd(y8)) : res : res : res;
43437
43437
  };
43438
43438
  }
43439
43439
  var compareNumAsc = (a4, b) => a4 - b;
@@ -43724,7 +43724,7 @@ var require_lib5 = __commonJS({
43724
43724
  throw new OutOfBoundsError(index2);
43725
43725
  };
43726
43726
  var ensureIndex = (index2, min, max) => (index2 < min || index2 >= max) && outOfBounds(index2);
43727
- var ensureIndex2 = (x2, y9, maxX, maxY) => (x2 < 0 || x2 >= maxX || y9 < 0 || y9 >= maxY) && outOfBounds([x2, y9]);
43727
+ var ensureIndex2 = (x2, y8, maxX, maxY) => (x2 < 0 || x2 >= maxX || y8 < 0 || y8 >= maxY) && outOfBounds([x2, y8]);
43728
43728
  var UnsupportedOperationError = defError(() => "unsupported operation");
43729
43729
  var unsupported = (msg) => {
43730
43730
  throw new UnsupportedOperationError(msg);
@@ -44335,7 +44335,7 @@ var require_lib8 = __commonJS({
44335
44335
  return lb;
44336
44336
  }
44337
44337
  let x2 = 0;
44338
- let y9;
44338
+ let y8;
44339
44339
  let minDist;
44340
44340
  let d0;
44341
44341
  let d1;
@@ -44352,8 +44352,8 @@ var require_lib8 = __commonJS({
44352
44352
  return d02 < d12 || d23 < d12 ? d02 > d23 ? d23 + 1 : d02 + 1 : equiv2(ay2, bx) ? d12 : d12 + 1;
44353
44353
  };
44354
44354
  const vector = [];
44355
- for (y9 = 0; y9 < la; y9++) {
44356
- vector.push(y9 + 1, a4[offset + y9]);
44355
+ for (y8 = 0; y8 < la; y8++) {
44356
+ vector.push(y8 + 1, a4[offset + y8]);
44357
44357
  }
44358
44358
  const len = vector.length - 1;
44359
44359
  const lb3 = lb - 3;
@@ -44364,15 +44364,15 @@ var require_lib8 = __commonJS({
44364
44364
  bx3 = b[offset + (d32 = x2 + 3)];
44365
44365
  dd = x2 += 4;
44366
44366
  minDist = Infinity;
44367
- for (y9 = 0; y9 < len; y9 += 2) {
44368
- dy = vector[y9];
44369
- ay = vector[y9 + 1];
44367
+ for (y8 = 0; y8 < len; y8 += 2) {
44368
+ dy = vector[y8];
44369
+ ay = vector[y8 + 1];
44370
44370
  d0 = _min(dy, d0, d1, bx0, ay);
44371
44371
  d1 = _min(d0, d1, d22, bx1, ay);
44372
44372
  d22 = _min(d1, d22, d32, bx2, ay);
44373
44373
  dd = _min(d22, d32, dd, bx3, ay);
44374
44374
  dd < minDist && (minDist = dd);
44375
- vector[y9] = dd;
44375
+ vector[y8] = dd;
44376
44376
  d32 = d22;
44377
44377
  d22 = d1;
44378
44378
  d1 = d0;
@@ -44385,9 +44385,9 @@ var require_lib8 = __commonJS({
44385
44385
  bx0 = b[offset + (d0 = x2)];
44386
44386
  dd = ++x2;
44387
44387
  minDist = Infinity;
44388
- for (y9 = 0; y9 < len; y9 += 2) {
44389
- dy = vector[y9];
44390
- vector[y9] = dd = _min(dy, d0, dd, bx0, vector[y9 + 1]);
44388
+ for (y8 = 0; y8 < len; y8 += 2) {
44389
+ dy = vector[y8];
44390
+ vector[y8] = dd = _min(dy, d0, dd, bx0, vector[y8 + 1]);
44391
44391
  dd < minDist && (minDist = dd);
44392
44392
  d0 = dy;
44393
44393
  }
@@ -44402,10 +44402,10 @@ var require_lib8 = __commonJS({
44402
44402
  };
44403
44403
  var first2 = (buf) => buf[0];
44404
44404
  var peek = (buf) => buf[buf.length - 1];
44405
- var swap = (arr, x2, y9) => {
44405
+ var swap = (arr, x2, y8) => {
44406
44406
  const t4 = arr[x2];
44407
- arr[x2] = arr[y9];
44408
- arr[y9] = t4;
44407
+ arr[x2] = arr[y8];
44408
+ arr[y8] = t4;
44409
44409
  };
44410
44410
  var multiSwap = (...xs) => {
44411
44411
  const [b, c3, d4] = xs;
@@ -44414,28 +44414,28 @@ var require_lib8 = __commonJS({
44414
44414
  case 0:
44415
44415
  return swap;
44416
44416
  case 1:
44417
- return (a4, x2, y9) => {
44418
- swap(a4, x2, y9);
44419
- swap(b, x2, y9);
44417
+ return (a4, x2, y8) => {
44418
+ swap(a4, x2, y8);
44419
+ swap(b, x2, y8);
44420
44420
  };
44421
44421
  case 2:
44422
- return (a4, x2, y9) => {
44423
- swap(a4, x2, y9);
44424
- swap(b, x2, y9);
44425
- swap(c3, x2, y9);
44422
+ return (a4, x2, y8) => {
44423
+ swap(a4, x2, y8);
44424
+ swap(b, x2, y8);
44425
+ swap(c3, x2, y8);
44426
44426
  };
44427
44427
  case 3:
44428
- return (a4, x2, y9) => {
44429
- swap(a4, x2, y9);
44430
- swap(b, x2, y9);
44431
- swap(c3, x2, y9);
44432
- swap(d4, x2, y9);
44428
+ return (a4, x2, y8) => {
44429
+ swap(a4, x2, y8);
44430
+ swap(b, x2, y8);
44431
+ swap(c3, x2, y8);
44432
+ swap(d4, x2, y8);
44433
44433
  };
44434
44434
  default:
44435
- return (a4, x2, y9) => {
44436
- swap(a4, x2, y9);
44435
+ return (a4, x2, y8) => {
44436
+ swap(a4, x2, y8);
44437
44437
  for (let i7 = n2; --i7 >= 0; )
44438
- swap(xs[i7], x2, y9);
44438
+ swap(xs[i7], x2, y8);
44439
44439
  };
44440
44440
  }
44441
44441
  };
@@ -44492,7 +44492,7 @@ var require_lib8 = __commonJS({
44492
44492
  return j < 0;
44493
44493
  };
44494
44494
  var swizzle = (order) => {
44495
- const [a4, b, c3, d4, e, f6, g, h] = order;
44495
+ const [a4, b, c3, d4, e, f5, g, h] = order;
44496
44496
  switch (order.length) {
44497
44497
  case 0:
44498
44498
  return () => [];
@@ -44507,11 +44507,11 @@ var require_lib8 = __commonJS({
44507
44507
  case 5:
44508
44508
  return (x2) => [x2[a4], x2[b], x2[c3], x2[d4], x2[e]];
44509
44509
  case 6:
44510
- return (x2) => [x2[a4], x2[b], x2[c3], x2[d4], x2[e], x2[f6]];
44510
+ return (x2) => [x2[a4], x2[b], x2[c3], x2[d4], x2[e], x2[f5]];
44511
44511
  case 7:
44512
- return (x2) => [x2[a4], x2[b], x2[c3], x2[d4], x2[e], x2[f6], x2[g]];
44512
+ return (x2) => [x2[a4], x2[b], x2[c3], x2[d4], x2[e], x2[f5], x2[g]];
44513
44513
  case 8:
44514
- return (x2) => [x2[a4], x2[b], x2[c3], x2[d4], x2[e], x2[f6], x2[g], x2[h]];
44514
+ return (x2) => [x2[a4], x2[b], x2[c3], x2[d4], x2[e], x2[f5], x2[g], x2[h]];
44515
44515
  default:
44516
44516
  return (x2) => {
44517
44517
  const res = [];
@@ -48219,9 +48219,9 @@ var require_tokenizer = __commonJS({
48219
48219
  function isNonAscii(cp5) {
48220
48220
  return 128 <= cp5 && cp5 <= 55295 || 57344 <= cp5 && cp5 <= 1114111;
48221
48221
  }
48222
- function isValidDate(y9, m4, d4) {
48223
- if (y9 >= 0 && m4 <= 12 && m4 >= 1 && d4 >= 1) {
48224
- const maxDayOfMonth = m4 === 2 ? y9 & 3 || !(y9 % 25) && y9 & 15 ? 28 : 29 : 30 + (m4 + (m4 >> 3) & 1);
48222
+ function isValidDate(y8, m4, d4) {
48223
+ if (y8 >= 0 && m4 <= 12 && m4 >= 1 && d4 >= 1) {
48224
+ const maxDayOfMonth = m4 === 2 ? y8 & 3 || !(y8 % 25) && y8 & 15 ? 28 : 29 : 30 + (m4 + (m4 >> 3) & 1);
48225
48225
  return d4 <= maxDayOfMonth;
48226
48226
  }
48227
48227
  return false;
@@ -51188,11 +51188,11 @@ var require_brace_expansion = __commonJS({
51188
51188
  function isPadded(el) {
51189
51189
  return /^-?0\d/.test(el);
51190
51190
  }
51191
- function lte(i7, y9) {
51192
- return i7 <= y9;
51191
+ function lte(i7, y8) {
51192
+ return i7 <= y8;
51193
51193
  }
51194
- function gte2(i7, y9) {
51195
- return i7 >= y9;
51194
+ function gte2(i7, y8) {
51195
+ return i7 >= y8;
51196
51196
  }
51197
51197
  function expand2(str, isTop) {
51198
51198
  var expansions = [];
@@ -51234,18 +51234,18 @@ var require_brace_expansion = __commonJS({
51234
51234
  var N;
51235
51235
  if (isSequence) {
51236
51236
  var x2 = numeric(n2[0]);
51237
- var y9 = numeric(n2[1]);
51237
+ var y8 = numeric(n2[1]);
51238
51238
  var width = Math.max(n2[0].length, n2[1].length);
51239
51239
  var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1;
51240
51240
  var test2 = lte;
51241
- var reverse = y9 < x2;
51241
+ var reverse = y8 < x2;
51242
51242
  if (reverse) {
51243
51243
  incr *= -1;
51244
51244
  test2 = gte2;
51245
51245
  }
51246
51246
  var pad = n2.some(isPadded);
51247
51247
  N = [];
51248
- for (var i7 = x2; test2(i7, y9); i7 += incr) {
51248
+ for (var i7 = x2; test2(i7, y8); i7 += incr) {
51249
51249
  var c3;
51250
51250
  if (isAlphaSequence) {
51251
51251
  c3 = String.fromCharCode(i7);
@@ -54286,8 +54286,8 @@ var require_includesWith = __commonJS({
54286
54286
  // ../../node_modules/.pnpm/@pnpm+ramda@0.28.1/node_modules/@pnpm/ramda/src/internal/_functionName.js
54287
54287
  var require_functionName = __commonJS({
54288
54288
  "../../node_modules/.pnpm/@pnpm+ramda@0.28.1/node_modules/@pnpm/ramda/src/internal/_functionName.js"(exports2, module2) {
54289
- function _functionName(f6) {
54290
- var match2 = String(f6).match(/^function (\w*)/);
54289
+ function _functionName(f5) {
54290
+ var match2 = String(f5).match(/^function (\w*)/);
54291
54291
  return match2 == null ? "" : match2[1];
54292
54292
  }
54293
54293
  module2.exports = _functionName;
@@ -61619,7 +61619,7 @@ var require_agent = __commonJS({
61619
61619
  reqTimeoutListenerCount
61620
61620
  );
61621
61621
  if (debug.enabled) {
61622
- debug("timeout listeners: %s", socket.listeners("timeout").map((f6) => f6.name).join(", "));
61622
+ debug("timeout listeners: %s", socket.listeners("timeout").map((f5) => f5.name).join(", "));
61623
61623
  }
61624
61624
  agent.timeoutSocketCount++;
61625
61625
  const name2 = agent.getName(options);
@@ -61762,7 +61762,7 @@ var require_lru_cache = __commonJS({
61762
61762
  this.aborted = true;
61763
61763
  const e = { type, target: this };
61764
61764
  this.onabort(e);
61765
- this._listeners.forEach((f6) => f6(e), this);
61765
+ this._listeners.forEach((f5) => f5(e), this);
61766
61766
  }
61767
61767
  }
61768
61768
  onabort() {
@@ -61774,7 +61774,7 @@ var require_lru_cache = __commonJS({
61774
61774
  }
61775
61775
  removeEventListener(ev, fn2) {
61776
61776
  if (ev === "abort") {
61777
- this._listeners = this._listeners.filter((f6) => f6 !== fn2);
61777
+ this._listeners = this._listeners.filter((f5) => f5 !== fn2);
61778
61778
  }
61779
61779
  }
61780
61780
  };
@@ -68037,9 +68037,9 @@ var require_xmap = __commonJS({
68037
68037
  var _curry2 = require_curry2();
68038
68038
  var _xfBase = require_xfBase();
68039
68039
  var XMap = /* @__PURE__ */ function() {
68040
- function XMap2(f6, xf) {
68040
+ function XMap2(f5, xf) {
68041
68041
  this.xf = xf;
68042
- this.f = f6;
68042
+ this.f = f5;
68043
68043
  }
68044
68044
  XMap2.prototype["@@transducer/init"] = _xfBase.init;
68045
68045
  XMap2.prototype["@@transducer/result"] = _xfBase.result;
@@ -68048,8 +68048,8 @@ var require_xmap = __commonJS({
68048
68048
  };
68049
68049
  return XMap2;
68050
68050
  }();
68051
- var _xmap = /* @__PURE__ */ _curry2(function _xmap2(f6, xf) {
68052
- return new XMap(f6, xf);
68051
+ var _xmap = /* @__PURE__ */ _curry2(function _xmap2(f5, xf) {
68052
+ return new XMap(f5, xf);
68053
68053
  });
68054
68054
  module2.exports = _xmap;
68055
68055
  }
@@ -70375,7 +70375,7 @@ var require_lockfile = __commonJS({
70375
70375
  function(module3, exports3, __webpack_require__) {
70376
70376
  "use strict";
70377
70377
  var NODE_ENV = process.env.NODE_ENV;
70378
- var invariant = function(condition, format6, a4, b, c3, d4, e, f6) {
70378
+ var invariant = function(condition, format6, a4, b, c3, d4, e, f5) {
70379
70379
  if (NODE_ENV !== "production") {
70380
70380
  if (format6 === void 0) {
70381
70381
  throw new Error("invariant requires an error message argument");
@@ -70388,7 +70388,7 @@ var require_lockfile = __commonJS({
70388
70388
  "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
70389
70389
  );
70390
70390
  } else {
70391
- var args2 = [a4, b, c3, d4, e, f6];
70391
+ var args2 = [a4, b, c3, d4, e, f5];
70392
70392
  var argIndex = 0;
70393
70393
  error = new Error(
70394
70394
  format6.replace(/%s/g, function() {
@@ -71967,8 +71967,8 @@ var require_lockfile = __commonJS({
71967
71967
  minimatch2.match = function(list2, pattern, options) {
71968
71968
  options = options || {};
71969
71969
  var mm = new Minimatch2(pattern, options);
71970
- list2 = list2.filter(function(f6) {
71971
- return mm.match(f6);
71970
+ list2 = list2.filter(function(f5) {
71971
+ return mm.match(f5);
71972
71972
  });
71973
71973
  if (mm.options.nonull && !list2.length) {
71974
71974
  list2.push(pattern);
@@ -71976,28 +71976,28 @@ var require_lockfile = __commonJS({
71976
71976
  return list2;
71977
71977
  };
71978
71978
  Minimatch2.prototype.match = match2;
71979
- function match2(f6, partial) {
71980
- this.debug("match", f6, this.pattern);
71979
+ function match2(f5, partial) {
71980
+ this.debug("match", f5, this.pattern);
71981
71981
  if (this.comment) return false;
71982
- if (this.empty) return f6 === "";
71983
- if (f6 === "/" && partial) return true;
71982
+ if (this.empty) return f5 === "";
71983
+ if (f5 === "/" && partial) return true;
71984
71984
  var options = this.options;
71985
71985
  if (path9.sep !== "/") {
71986
- f6 = f6.split(path9.sep).join("/");
71986
+ f5 = f5.split(path9.sep).join("/");
71987
71987
  }
71988
- f6 = f6.split(slashSplit);
71989
- this.debug(this.pattern, "split", f6);
71988
+ f5 = f5.split(slashSplit);
71989
+ this.debug(this.pattern, "split", f5);
71990
71990
  var set = this.set;
71991
71991
  this.debug(this.pattern, "set", set);
71992
71992
  var filename;
71993
71993
  var i7;
71994
- for (i7 = f6.length - 1; i7 >= 0; i7--) {
71995
- filename = f6[i7];
71994
+ for (i7 = f5.length - 1; i7 >= 0; i7--) {
71995
+ filename = f5[i7];
71996
71996
  if (filename) break;
71997
71997
  }
71998
71998
  for (i7 = 0; i7 < set.length; i7++) {
71999
71999
  var pattern = set[i7];
72000
- var file = f6;
72000
+ var file = f5;
72001
72001
  if (options.matchBase && pattern.length === 1) {
72002
72002
  file = [filename];
72003
72003
  }
@@ -72020,11 +72020,11 @@ var require_lockfile = __commonJS({
72020
72020
  for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
72021
72021
  this.debug("matchOne loop");
72022
72022
  var p3 = pattern[pi];
72023
- var f6 = file[fi];
72024
- this.debug(pattern, p3, f6);
72023
+ var f5 = file[fi];
72024
+ this.debug(pattern, p3, f5);
72025
72025
  if (p3 === false) return false;
72026
72026
  if (p3 === GLOBSTAR2) {
72027
- this.debug("GLOBSTAR", [pattern, p3, f6]);
72027
+ this.debug("GLOBSTAR", [pattern, p3, f5]);
72028
72028
  var fr = fi;
72029
72029
  var pr = pi + 1;
72030
72030
  if (pr === pl) {
@@ -72058,14 +72058,14 @@ var require_lockfile = __commonJS({
72058
72058
  var hit;
72059
72059
  if (typeof p3 === "string") {
72060
72060
  if (options.nocase) {
72061
- hit = f6.toLowerCase() === p3.toLowerCase();
72061
+ hit = f5.toLowerCase() === p3.toLowerCase();
72062
72062
  } else {
72063
- hit = f6 === p3;
72063
+ hit = f5 === p3;
72064
72064
  }
72065
- this.debug("string match", p3, f6, hit);
72065
+ this.debug("string match", p3, f5, hit);
72066
72066
  } else {
72067
- hit = f6.match(p3);
72068
- this.debug("pattern match", p3, f6, hit);
72067
+ hit = f5.match(p3);
72068
+ this.debug("pattern match", p3, f5, hit);
72069
72069
  }
72070
72070
  if (!hit) return false;
72071
72071
  }
@@ -72107,25 +72107,25 @@ var require_lockfile = __commonJS({
72107
72107
  });
72108
72108
  });
72109
72109
  function once9(fn2) {
72110
- var f6 = function() {
72111
- if (f6.called) return f6.value;
72112
- f6.called = true;
72113
- return f6.value = fn2.apply(this, arguments);
72110
+ var f5 = function() {
72111
+ if (f5.called) return f5.value;
72112
+ f5.called = true;
72113
+ return f5.value = fn2.apply(this, arguments);
72114
72114
  };
72115
- f6.called = false;
72116
- return f6;
72115
+ f5.called = false;
72116
+ return f5;
72117
72117
  }
72118
72118
  function onceStrict(fn2) {
72119
- var f6 = function() {
72120
- if (f6.called)
72121
- throw new Error(f6.onceError);
72122
- f6.called = true;
72123
- return f6.value = fn2.apply(this, arguments);
72119
+ var f5 = function() {
72120
+ if (f5.called)
72121
+ throw new Error(f5.onceError);
72122
+ f5.called = true;
72123
+ return f5.value = fn2.apply(this, arguments);
72124
72124
  };
72125
72125
  var name2 = fn2.name || "Function wrapped with `once`";
72126
- f6.onceError = name2 + " shouldn't be called more than once";
72127
- f6.called = false;
72128
- return f6;
72126
+ f5.onceError = name2 + " shouldn't be called more than once";
72127
+ f5.called = false;
72128
+ return f5;
72129
72129
  }
72130
72130
  },
72131
72131
  ,
@@ -72384,8 +72384,8 @@ var require_lockfile = __commonJS({
72384
72384
  Glob2.prototype._mark = function(p3) {
72385
72385
  return common.mark(this, p3);
72386
72386
  };
72387
- Glob2.prototype._makeAbs = function(f6) {
72388
- return common.makeAbs(this, f6);
72387
+ Glob2.prototype._makeAbs = function(f5) {
72388
+ return common.makeAbs(this, f5);
72389
72389
  };
72390
72390
  Glob2.prototype.abort = function() {
72391
72391
  this.aborted = true;
@@ -72619,14 +72619,14 @@ var require_lockfile = __commonJS({
72619
72619
  this.cache[abs] = entries;
72620
72620
  return cb(null, entries);
72621
72621
  };
72622
- Glob2.prototype._readdirError = function(f6, er, cb) {
72622
+ Glob2.prototype._readdirError = function(f5, er, cb) {
72623
72623
  if (this.aborted)
72624
72624
  return;
72625
72625
  switch (er.code) {
72626
72626
  case "ENOTSUP":
72627
72627
  // https://github.com/isaacs/node-glob/issues/205
72628
72628
  case "ENOTDIR":
72629
- var abs = this._makeAbs(f6);
72629
+ var abs = this._makeAbs(f5);
72630
72630
  this.cache[abs] = "FILE";
72631
72631
  if (abs === this.cwdAbs) {
72632
72632
  var error = new Error(er.code + " invalid cwd " + this.cwd);
@@ -72641,10 +72641,10 @@ var require_lockfile = __commonJS({
72641
72641
  case "ELOOP":
72642
72642
  case "ENAMETOOLONG":
72643
72643
  case "UNKNOWN":
72644
- this.cache[this._makeAbs(f6)] = false;
72644
+ this.cache[this._makeAbs(f5)] = false;
72645
72645
  break;
72646
72646
  default:
72647
- this.cache[this._makeAbs(f6)] = false;
72647
+ this.cache[this._makeAbs(f5)] = false;
72648
72648
  if (this.strict) {
72649
72649
  this.emit("error", er);
72650
72650
  this.abort();
@@ -72709,10 +72709,10 @@ var require_lockfile = __commonJS({
72709
72709
  this._emitMatch(index2, prefix);
72710
72710
  cb();
72711
72711
  };
72712
- Glob2.prototype._stat = function(f6, cb) {
72713
- var abs = this._makeAbs(f6);
72714
- var needDir = f6.slice(-1) === "/";
72715
- if (f6.length > this.maxLength)
72712
+ Glob2.prototype._stat = function(f5, cb) {
72713
+ var abs = this._makeAbs(f5);
72714
+ var needDir = f5.slice(-1) === "/";
72715
+ if (f5.length > this.maxLength)
72716
72716
  return cb();
72717
72717
  if (!this.stat && ownProp(this.cache, abs)) {
72718
72718
  var c3 = this.cache[abs];
@@ -72744,21 +72744,21 @@ var require_lockfile = __commonJS({
72744
72744
  if (lstat3 && lstat3.isSymbolicLink()) {
72745
72745
  return fs11.stat(abs, function(er2, stat6) {
72746
72746
  if (er2)
72747
- self2._stat2(f6, abs, null, lstat3, cb);
72747
+ self2._stat2(f5, abs, null, lstat3, cb);
72748
72748
  else
72749
- self2._stat2(f6, abs, er2, stat6, cb);
72749
+ self2._stat2(f5, abs, er2, stat6, cb);
72750
72750
  });
72751
72751
  } else {
72752
- self2._stat2(f6, abs, er, lstat3, cb);
72752
+ self2._stat2(f5, abs, er, lstat3, cb);
72753
72753
  }
72754
72754
  }
72755
72755
  };
72756
- Glob2.prototype._stat2 = function(f6, abs, er, stat5, cb) {
72756
+ Glob2.prototype._stat2 = function(f5, abs, er, stat5, cb) {
72757
72757
  if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) {
72758
72758
  this.statCache[abs] = false;
72759
72759
  return cb();
72760
72760
  }
72761
- var needDir = f6.slice(-1) === "/";
72761
+ var needDir = f5.slice(-1) === "/";
72762
72762
  this.statCache[abs] = stat5;
72763
72763
  if (abs.slice(-1) === "/" && stat5 && !stat5.isDirectory())
72764
72764
  return cb(null, false, stat5);
@@ -73907,16 +73907,16 @@ var require_lockfile = __commonJS({
73907
73907
  }
73908
73908
  return m4;
73909
73909
  }
73910
- function makeAbs(self2, f6) {
73911
- var abs = f6;
73912
- if (f6.charAt(0) === "/") {
73913
- abs = path9.join(self2.root, f6);
73914
- } else if (isAbsolute2(f6) || f6 === "") {
73915
- abs = f6;
73910
+ function makeAbs(self2, f5) {
73911
+ var abs = f5;
73912
+ if (f5.charAt(0) === "/") {
73913
+ abs = path9.join(self2.root, f5);
73914
+ } else if (isAbsolute2(f5) || f5 === "") {
73915
+ abs = f5;
73916
73916
  } else if (self2.changedCwd) {
73917
- abs = path9.resolve(self2.cwd, f6);
73917
+ abs = path9.resolve(self2.cwd, f5);
73918
73918
  } else {
73919
- abs = path9.resolve(f6);
73919
+ abs = path9.resolve(f5);
73920
73920
  }
73921
73921
  if (process.platform === "win32")
73922
73922
  abs = abs.replace(/\\/g, "/");
@@ -73944,9 +73944,9 @@ var require_lockfile = __commonJS({
73944
73944
  var fs11 = __webpack_require__(3);
73945
73945
  var _0777 = parseInt("0777", 8);
73946
73946
  module3.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
73947
- function mkdirP(p3, opts, f6, made) {
73947
+ function mkdirP(p3, opts, f5, made) {
73948
73948
  if (typeof opts === "function") {
73949
- f6 = opts;
73949
+ f5 = opts;
73950
73950
  opts = {};
73951
73951
  } else if (!opts || typeof opts !== "object") {
73952
73952
  opts = { mode: opts };
@@ -73957,7 +73957,7 @@ var require_lockfile = __commonJS({
73957
73957
  mode = _0777 & ~process.umask();
73958
73958
  }
73959
73959
  if (!made) made = null;
73960
- var cb = f6 || function() {
73960
+ var cb = f5 || function() {
73961
73961
  };
73962
73962
  p3 = path9.resolve(p3);
73963
73963
  xfs.mkdir(p3, mode, function(er) {
@@ -74558,11 +74558,11 @@ ${indent3}`);
74558
74558
  function isPadded(el) {
74559
74559
  return /^-?0\d/.test(el);
74560
74560
  }
74561
- function lte(i7, y9) {
74562
- return i7 <= y9;
74561
+ function lte(i7, y8) {
74562
+ return i7 <= y8;
74563
74563
  }
74564
- function gte2(i7, y9) {
74565
- return i7 >= y9;
74564
+ function gte2(i7, y8) {
74565
+ return i7 >= y8;
74566
74566
  }
74567
74567
  function expand2(str, isTop) {
74568
74568
  var expansions = [];
@@ -74599,18 +74599,18 @@ ${indent3}`);
74599
74599
  var N;
74600
74600
  if (isSequence) {
74601
74601
  var x2 = numeric(n2[0]);
74602
- var y9 = numeric(n2[1]);
74602
+ var y8 = numeric(n2[1]);
74603
74603
  var width = Math.max(n2[0].length, n2[1].length);
74604
74604
  var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1;
74605
74605
  var test2 = lte;
74606
- var reverse = y9 < x2;
74606
+ var reverse = y8 < x2;
74607
74607
  if (reverse) {
74608
74608
  incr *= -1;
74609
74609
  test2 = gte2;
74610
74610
  }
74611
74611
  var pad = n2.some(isPadded);
74612
74612
  N = [];
74613
- for (var i7 = x2; test2(i7, y9); i7 += incr) {
74613
+ for (var i7 = x2; test2(i7, y8); i7 += incr) {
74614
74614
  var c3;
74615
74615
  if (isAlphaSequence) {
74616
74616
  c3 = String.fromCharCode(i7);
@@ -74779,16 +74779,16 @@ ${indent3}`);
74779
74779
  var iterFn = ITERATOR ? function() {
74780
74780
  return iterable;
74781
74781
  } : getIterFn(iterable);
74782
- var f6 = ctx(fn2, that, entries ? 2 : 1);
74782
+ var f5 = ctx(fn2, that, entries ? 2 : 1);
74783
74783
  var index2 = 0;
74784
74784
  var length, step, iterator2, result;
74785
74785
  if (typeof iterFn != "function") throw TypeError(iterable + " is not iterable!");
74786
74786
  if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index2; index2++) {
74787
- result = entries ? f6(anObject(step = iterable[index2])[0], step[1]) : f6(iterable[index2]);
74787
+ result = entries ? f5(anObject(step = iterable[index2])[0], step[1]) : f5(iterable[index2]);
74788
74788
  if (result === BREAK || result === RETURN) return result;
74789
74789
  }
74790
74790
  else for (iterator2 = iterFn.call(iterable); !(step = iterator2.next()).done; ) {
74791
- result = call(iterator2, f6, step.value, entries);
74791
+ result = call(iterator2, f5, step.value, entries);
74792
74792
  if (result === BREAK || result === RETURN) return result;
74793
74793
  }
74794
74794
  };
@@ -76288,12 +76288,12 @@ ${indent3}`);
76288
76288
  this.cache[abs] = entries;
76289
76289
  return entries;
76290
76290
  };
76291
- GlobSync.prototype._readdirError = function(f6, er) {
76291
+ GlobSync.prototype._readdirError = function(f5, er) {
76292
76292
  switch (er.code) {
76293
76293
  case "ENOTSUP":
76294
76294
  // https://github.com/isaacs/node-glob/issues/205
76295
76295
  case "ENOTDIR":
76296
- var abs = this._makeAbs(f6);
76296
+ var abs = this._makeAbs(f5);
76297
76297
  this.cache[abs] = "FILE";
76298
76298
  if (abs === this.cwdAbs) {
76299
76299
  var error = new Error(er.code + " invalid cwd " + this.cwd);
@@ -76307,10 +76307,10 @@ ${indent3}`);
76307
76307
  case "ELOOP":
76308
76308
  case "ENAMETOOLONG":
76309
76309
  case "UNKNOWN":
76310
- this.cache[this._makeAbs(f6)] = false;
76310
+ this.cache[this._makeAbs(f5)] = false;
76311
76311
  break;
76312
76312
  default:
76313
- this.cache[this._makeAbs(f6)] = false;
76313
+ this.cache[this._makeAbs(f5)] = false;
76314
76314
  if (this.strict)
76315
76315
  throw er;
76316
76316
  if (!this.silent)
@@ -76360,10 +76360,10 @@ ${indent3}`);
76360
76360
  prefix = prefix.replace(/\\/g, "/");
76361
76361
  this._emitMatch(index2, prefix);
76362
76362
  };
76363
- GlobSync.prototype._stat = function(f6) {
76364
- var abs = this._makeAbs(f6);
76365
- var needDir = f6.slice(-1) === "/";
76366
- if (f6.length > this.maxLength)
76363
+ GlobSync.prototype._stat = function(f5) {
76364
+ var abs = this._makeAbs(f5);
76365
+ var needDir = f5.slice(-1) === "/";
76366
+ if (f5.length > this.maxLength)
76367
76367
  return false;
76368
76368
  if (!this.stat && ownProp(this.cache, abs)) {
76369
76369
  var c3 = this.cache[abs];
@@ -76408,8 +76408,8 @@ ${indent3}`);
76408
76408
  GlobSync.prototype._mark = function(p3) {
76409
76409
  return common.mark(this, p3);
76410
76410
  };
76411
- GlobSync.prototype._makeAbs = function(f6) {
76412
- return common.makeAbs(this, f6);
76411
+ GlobSync.prototype._makeAbs = function(f5) {
76412
+ return common.makeAbs(this, f5);
76413
76413
  };
76414
76414
  },
76415
76415
  ,
@@ -76512,7 +76512,7 @@ ${indent3}`);
76512
76512
  var m4 = s6 * 60;
76513
76513
  var h = m4 * 60;
76514
76514
  var d4 = h * 24;
76515
- var y9 = d4 * 365.25;
76515
+ var y8 = d4 * 365.25;
76516
76516
  module3.exports = function(val2, options) {
76517
76517
  options = options || {};
76518
76518
  var type = typeof val2;
@@ -76544,7 +76544,7 @@ ${indent3}`);
76544
76544
  case "yrs":
76545
76545
  case "yr":
76546
76546
  case "y":
76547
- return n2 * y9;
76547
+ return n2 * y8;
76548
76548
  case "days":
76549
76549
  case "day":
76550
76550
  case "d":
@@ -76797,8 +76797,8 @@ ${indent3}`);
76797
76797
  if (n2 === 0)
76798
76798
  return options.rmdir(p3, cb);
76799
76799
  var errState;
76800
- files.forEach(function(f6) {
76801
- rimraf(path9.join(p3, f6), options, function(er2) {
76800
+ files.forEach(function(f5) {
76801
+ rimraf(path9.join(p3, f5), options, function(er2) {
76802
76802
  if (errState)
76803
76803
  return;
76804
76804
  if (er2)
@@ -76874,8 +76874,8 @@ ${indent3}`);
76874
76874
  function rmkidsSync(p3, options) {
76875
76875
  assert17(p3);
76876
76876
  assert17(options);
76877
- options.readdirSync(p3).forEach(function(f6) {
76878
- rimrafSync(path9.join(p3, f6), options);
76877
+ options.readdirSync(p3).forEach(function(f5) {
76878
+ rimrafSync(path9.join(p3, f5), options);
76879
76879
  });
76880
76880
  var retries = isWindows4 ? 100 : 1;
76881
76881
  var i7 = 0;
@@ -88790,9 +88790,9 @@ var require_float4 = __commonJS({
88790
88790
  const node = new Scalar.Scalar(parseFloat(str.replace(/_/g, "")));
88791
88791
  const dot = str.indexOf(".");
88792
88792
  if (dot !== -1) {
88793
- const f6 = str.substring(dot + 1).replace(/_/g, "");
88794
- if (f6[f6.length - 1] === "0")
88795
- node.minFractionDigits = f6.length;
88793
+ const f5 = str.substring(dot + 1).replace(/_/g, "");
88794
+ if (f5[f5.length - 1] === "0")
88795
+ node.minFractionDigits = f5.length;
88796
88796
  }
88797
88797
  return node;
88798
88798
  },
@@ -119202,11 +119202,11 @@ var require_brace_expansion2 = __commonJS({
119202
119202
  function isPadded(el) {
119203
119203
  return /^-?0\d/.test(el);
119204
119204
  }
119205
- function lte(i7, y9) {
119206
- return i7 <= y9;
119205
+ function lte(i7, y8) {
119206
+ return i7 <= y8;
119207
119207
  }
119208
- function gte2(i7, y9) {
119209
- return i7 >= y9;
119208
+ function gte2(i7, y8) {
119209
+ return i7 >= y8;
119210
119210
  }
119211
119211
  function expand2(str, isTop) {
119212
119212
  var expansions = [];
@@ -119243,18 +119243,18 @@ var require_brace_expansion2 = __commonJS({
119243
119243
  var N;
119244
119244
  if (isSequence) {
119245
119245
  var x2 = numeric(n2[0]);
119246
- var y9 = numeric(n2[1]);
119246
+ var y8 = numeric(n2[1]);
119247
119247
  var width = Math.max(n2[0].length, n2[1].length);
119248
119248
  var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1;
119249
119249
  var test2 = lte;
119250
- var reverse = y9 < x2;
119250
+ var reverse = y8 < x2;
119251
119251
  if (reverse) {
119252
119252
  incr *= -1;
119253
119253
  test2 = gte2;
119254
119254
  }
119255
119255
  var pad = n2.some(isPadded);
119256
119256
  N = [];
119257
- for (var i7 = x2; test2(i7, y9); i7 += incr) {
119257
+ for (var i7 = x2; test2(i7, y8); i7 += incr) {
119258
119258
  var c3;
119259
119259
  if (isAlphaSequence) {
119260
119260
  c3 = String.fromCharCode(i7);
@@ -119749,37 +119749,37 @@ var require_minimatch = __commonJS({
119749
119749
  minimatch2.match = function(list2, pattern, options) {
119750
119750
  options = options || {};
119751
119751
  var mm = new Minimatch2(pattern, options);
119752
- list2 = list2.filter(function(f6) {
119753
- return mm.match(f6);
119752
+ list2 = list2.filter(function(f5) {
119753
+ return mm.match(f5);
119754
119754
  });
119755
119755
  if (mm.options.nonull && !list2.length) {
119756
119756
  list2.push(pattern);
119757
119757
  }
119758
119758
  return list2;
119759
119759
  };
119760
- Minimatch2.prototype.match = function match2(f6, partial) {
119760
+ Minimatch2.prototype.match = function match2(f5, partial) {
119761
119761
  if (typeof partial === "undefined") partial = this.partial;
119762
- this.debug("match", f6, this.pattern);
119762
+ this.debug("match", f5, this.pattern);
119763
119763
  if (this.comment) return false;
119764
- if (this.empty) return f6 === "";
119765
- if (f6 === "/" && partial) return true;
119764
+ if (this.empty) return f5 === "";
119765
+ if (f5 === "/" && partial) return true;
119766
119766
  var options = this.options;
119767
119767
  if (path9.sep !== "/") {
119768
- f6 = f6.split(path9.sep).join("/");
119768
+ f5 = f5.split(path9.sep).join("/");
119769
119769
  }
119770
- f6 = f6.split(slashSplit);
119771
- this.debug(this.pattern, "split", f6);
119770
+ f5 = f5.split(slashSplit);
119771
+ this.debug(this.pattern, "split", f5);
119772
119772
  var set = this.set;
119773
119773
  this.debug(this.pattern, "set", set);
119774
119774
  var filename;
119775
119775
  var i7;
119776
- for (i7 = f6.length - 1; i7 >= 0; i7--) {
119777
- filename = f6[i7];
119776
+ for (i7 = f5.length - 1; i7 >= 0; i7--) {
119777
+ filename = f5[i7];
119778
119778
  if (filename) break;
119779
119779
  }
119780
119780
  for (i7 = 0; i7 < set.length; i7++) {
119781
119781
  var pattern = set[i7];
119782
- var file = f6;
119782
+ var file = f5;
119783
119783
  if (options.matchBase && pattern.length === 1) {
119784
119784
  file = [filename];
119785
119785
  }
@@ -119802,11 +119802,11 @@ var require_minimatch = __commonJS({
119802
119802
  for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
119803
119803
  this.debug("matchOne loop");
119804
119804
  var p3 = pattern[pi];
119805
- var f6 = file[fi];
119806
- this.debug(pattern, p3, f6);
119805
+ var f5 = file[fi];
119806
+ this.debug(pattern, p3, f5);
119807
119807
  if (p3 === false) return false;
119808
119808
  if (p3 === GLOBSTAR2) {
119809
- this.debug("GLOBSTAR", [pattern, p3, f6]);
119809
+ this.debug("GLOBSTAR", [pattern, p3, f5]);
119810
119810
  var fr = fi;
119811
119811
  var pr = pi + 1;
119812
119812
  if (pr === pl) {
@@ -119839,11 +119839,11 @@ var require_minimatch = __commonJS({
119839
119839
  }
119840
119840
  var hit;
119841
119841
  if (typeof p3 === "string") {
119842
- hit = f6 === p3;
119843
- this.debug("string match", p3, f6, hit);
119842
+ hit = f5 === p3;
119843
+ this.debug("string match", p3, f5, hit);
119844
119844
  } else {
119845
- hit = f6.match(p3);
119846
- this.debug("pattern match", p3, f6, hit);
119845
+ hit = f5.match(p3);
119846
+ this.debug("pattern match", p3, f5, hit);
119847
119847
  }
119848
119848
  if (!hit) return false;
119849
119849
  }
@@ -120047,16 +120047,16 @@ var require_common6 = __commonJS({
120047
120047
  }
120048
120048
  return m4;
120049
120049
  }
120050
- function makeAbs(self2, f6) {
120051
- var abs = f6;
120052
- if (f6.charAt(0) === "/") {
120053
- abs = path9.join(self2.root, f6);
120054
- } else if (isAbsolute2(f6) || f6 === "") {
120055
- abs = f6;
120050
+ function makeAbs(self2, f5) {
120051
+ var abs = f5;
120052
+ if (f5.charAt(0) === "/") {
120053
+ abs = path9.join(self2.root, f5);
120054
+ } else if (isAbsolute2(f5) || f5 === "") {
120055
+ abs = f5;
120056
120056
  } else if (self2.changedCwd) {
120057
- abs = path9.resolve(self2.cwd, f6);
120057
+ abs = path9.resolve(self2.cwd, f5);
120058
120058
  } else {
120059
- abs = path9.resolve(f6);
120059
+ abs = path9.resolve(f5);
120060
120060
  }
120061
120061
  if (process.platform === "win32")
120062
120062
  abs = abs.replace(/\\/g, "/");
@@ -120308,12 +120308,12 @@ var require_sync = __commonJS({
120308
120308
  this.cache[abs] = entries;
120309
120309
  return entries;
120310
120310
  };
120311
- GlobSync.prototype._readdirError = function(f6, er) {
120311
+ GlobSync.prototype._readdirError = function(f5, er) {
120312
120312
  switch (er.code) {
120313
120313
  case "ENOTSUP":
120314
120314
  // https://github.com/isaacs/node-glob/issues/205
120315
120315
  case "ENOTDIR":
120316
- var abs = this._makeAbs(f6);
120316
+ var abs = this._makeAbs(f5);
120317
120317
  this.cache[abs] = "FILE";
120318
120318
  if (abs === this.cwdAbs) {
120319
120319
  var error = new Error(er.code + " invalid cwd " + this.cwd);
@@ -120327,10 +120327,10 @@ var require_sync = __commonJS({
120327
120327
  case "ELOOP":
120328
120328
  case "ENAMETOOLONG":
120329
120329
  case "UNKNOWN":
120330
- this.cache[this._makeAbs(f6)] = false;
120330
+ this.cache[this._makeAbs(f5)] = false;
120331
120331
  break;
120332
120332
  default:
120333
- this.cache[this._makeAbs(f6)] = false;
120333
+ this.cache[this._makeAbs(f5)] = false;
120334
120334
  if (this.strict)
120335
120335
  throw er;
120336
120336
  if (!this.silent)
@@ -120380,10 +120380,10 @@ var require_sync = __commonJS({
120380
120380
  prefix = prefix.replace(/\\/g, "/");
120381
120381
  this._emitMatch(index2, prefix);
120382
120382
  };
120383
- GlobSync.prototype._stat = function(f6) {
120384
- var abs = this._makeAbs(f6);
120385
- var needDir = f6.slice(-1) === "/";
120386
- if (f6.length > this.maxLength)
120383
+ GlobSync.prototype._stat = function(f5) {
120384
+ var abs = this._makeAbs(f5);
120385
+ var needDir = f5.slice(-1) === "/";
120386
+ if (f5.length > this.maxLength)
120387
120387
  return false;
120388
120388
  if (!this.stat && ownProp(this.cache, abs)) {
120389
120389
  var c3 = this.cache[abs];
@@ -120428,8 +120428,8 @@ var require_sync = __commonJS({
120428
120428
  GlobSync.prototype._mark = function(p3) {
120429
120429
  return common.mark(this, p3);
120430
120430
  };
120431
- GlobSync.prototype._makeAbs = function(f6) {
120432
- return common.makeAbs(this, f6);
120431
+ GlobSync.prototype._makeAbs = function(f5) {
120432
+ return common.makeAbs(this, f5);
120433
120433
  };
120434
120434
  }
120435
120435
  });
@@ -120485,25 +120485,25 @@ var require_once2 = __commonJS({
120485
120485
  });
120486
120486
  });
120487
120487
  function once9(fn2) {
120488
- var f6 = function() {
120489
- if (f6.called) return f6.value;
120490
- f6.called = true;
120491
- return f6.value = fn2.apply(this, arguments);
120488
+ var f5 = function() {
120489
+ if (f5.called) return f5.value;
120490
+ f5.called = true;
120491
+ return f5.value = fn2.apply(this, arguments);
120492
120492
  };
120493
- f6.called = false;
120494
- return f6;
120493
+ f5.called = false;
120494
+ return f5;
120495
120495
  }
120496
120496
  function onceStrict(fn2) {
120497
- var f6 = function() {
120498
- if (f6.called)
120499
- throw new Error(f6.onceError);
120500
- f6.called = true;
120501
- return f6.value = fn2.apply(this, arguments);
120497
+ var f5 = function() {
120498
+ if (f5.called)
120499
+ throw new Error(f5.onceError);
120500
+ f5.called = true;
120501
+ return f5.value = fn2.apply(this, arguments);
120502
120502
  };
120503
120503
  var name2 = fn2.name || "Function wrapped with `once`";
120504
- f6.onceError = name2 + " shouldn't be called more than once";
120505
- f6.called = false;
120506
- return f6;
120504
+ f5.onceError = name2 + " shouldn't be called more than once";
120505
+ f5.called = false;
120506
+ return f5;
120507
120507
  }
120508
120508
  }
120509
120509
  });
@@ -120719,8 +120719,8 @@ var require_glob = __commonJS({
120719
120719
  Glob2.prototype._mark = function(p3) {
120720
120720
  return common.mark(this, p3);
120721
120721
  };
120722
- Glob2.prototype._makeAbs = function(f6) {
120723
- return common.makeAbs(this, f6);
120722
+ Glob2.prototype._makeAbs = function(f5) {
120723
+ return common.makeAbs(this, f5);
120724
120724
  };
120725
120725
  Glob2.prototype.abort = function() {
120726
120726
  this.aborted = true;
@@ -120956,14 +120956,14 @@ var require_glob = __commonJS({
120956
120956
  this.cache[abs] = entries;
120957
120957
  return cb(null, entries);
120958
120958
  };
120959
- Glob2.prototype._readdirError = function(f6, er, cb) {
120959
+ Glob2.prototype._readdirError = function(f5, er, cb) {
120960
120960
  if (this.aborted)
120961
120961
  return;
120962
120962
  switch (er.code) {
120963
120963
  case "ENOTSUP":
120964
120964
  // https://github.com/isaacs/node-glob/issues/205
120965
120965
  case "ENOTDIR":
120966
- var abs = this._makeAbs(f6);
120966
+ var abs = this._makeAbs(f5);
120967
120967
  this.cache[abs] = "FILE";
120968
120968
  if (abs === this.cwdAbs) {
120969
120969
  var error = new Error(er.code + " invalid cwd " + this.cwd);
@@ -120978,10 +120978,10 @@ var require_glob = __commonJS({
120978
120978
  case "ELOOP":
120979
120979
  case "ENAMETOOLONG":
120980
120980
  case "UNKNOWN":
120981
- this.cache[this._makeAbs(f6)] = false;
120981
+ this.cache[this._makeAbs(f5)] = false;
120982
120982
  break;
120983
120983
  default:
120984
- this.cache[this._makeAbs(f6)] = false;
120984
+ this.cache[this._makeAbs(f5)] = false;
120985
120985
  if (this.strict) {
120986
120986
  this.emit("error", er);
120987
120987
  this.abort();
@@ -121046,10 +121046,10 @@ var require_glob = __commonJS({
121046
121046
  this._emitMatch(index2, prefix);
121047
121047
  cb();
121048
121048
  };
121049
- Glob2.prototype._stat = function(f6, cb) {
121050
- var abs = this._makeAbs(f6);
121051
- var needDir = f6.slice(-1) === "/";
121052
- if (f6.length > this.maxLength)
121049
+ Glob2.prototype._stat = function(f5, cb) {
121050
+ var abs = this._makeAbs(f5);
121051
+ var needDir = f5.slice(-1) === "/";
121052
+ if (f5.length > this.maxLength)
121053
121053
  return cb();
121054
121054
  if (!this.stat && ownProp(this.cache, abs)) {
121055
121055
  var c3 = this.cache[abs];
@@ -121081,21 +121081,21 @@ var require_glob = __commonJS({
121081
121081
  if (lstat3 && lstat3.isSymbolicLink()) {
121082
121082
  return self2.fs.stat(abs, function(er2, stat6) {
121083
121083
  if (er2)
121084
- self2._stat2(f6, abs, null, lstat3, cb);
121084
+ self2._stat2(f5, abs, null, lstat3, cb);
121085
121085
  else
121086
- self2._stat2(f6, abs, er2, stat6, cb);
121086
+ self2._stat2(f5, abs, er2, stat6, cb);
121087
121087
  });
121088
121088
  } else {
121089
- self2._stat2(f6, abs, er, lstat3, cb);
121089
+ self2._stat2(f5, abs, er, lstat3, cb);
121090
121090
  }
121091
121091
  }
121092
121092
  };
121093
- Glob2.prototype._stat2 = function(f6, abs, er, stat5, cb) {
121093
+ Glob2.prototype._stat2 = function(f5, abs, er, stat5, cb) {
121094
121094
  if (er && (er.code === "ENOENT" || er.code === "ENOTDIR")) {
121095
121095
  this.statCache[abs] = false;
121096
121096
  return cb();
121097
121097
  }
121098
- var needDir = f6.slice(-1) === "/";
121098
+ var needDir = f5.slice(-1) === "/";
121099
121099
  this.statCache[abs] = stat5;
121100
121100
  if (abs.slice(-1) === "/" && stat5 && !stat5.isDirectory())
121101
121101
  return cb(null, false, stat5);
@@ -121294,8 +121294,8 @@ var require_rimraf2 = __commonJS({
121294
121294
  if (n2 === 0)
121295
121295
  return options.rmdir(p3, cb);
121296
121296
  let errState;
121297
- files.forEach((f6) => {
121298
- rimraf(path9.join(p3, f6), options, (er2) => {
121297
+ files.forEach((f5) => {
121298
+ rimraf(path9.join(p3, f5), options, (er2) => {
121299
121299
  if (errState)
121300
121300
  return;
121301
121301
  if (er2)
@@ -121370,7 +121370,7 @@ var require_rimraf2 = __commonJS({
121370
121370
  var rmkidsSync = (p3, options) => {
121371
121371
  assert17(p3);
121372
121372
  assert17(options);
121373
- options.readdirSync(p3).forEach((f6) => rimrafSync(path9.join(p3, f6), options));
121373
+ options.readdirSync(p3).forEach((f5) => rimrafSync(path9.join(p3, f5), options));
121374
121374
  const retries = isWindows4 ? 100 : 1;
121375
121375
  let i7 = 0;
121376
121376
  do {
@@ -150352,9 +150352,9 @@ var require_float6 = __commonJS({
150352
150352
  const node = new Scalar.Scalar(parseFloat(str.replace(/_/g, "")));
150353
150353
  const dot = str.indexOf(".");
150354
150354
  if (dot !== -1) {
150355
- const f6 = str.substring(dot + 1).replace(/_/g, "");
150356
- if (f6[f6.length - 1] === "0")
150357
- node.minFractionDigits = f6.length;
150355
+ const f5 = str.substring(dot + 1).replace(/_/g, "");
150356
+ if (f5[f5.length - 1] === "0")
150357
+ node.minFractionDigits = f5.length;
150358
150358
  }
150359
150359
  return node;
150360
150360
  },
@@ -172340,10 +172340,10 @@ var require_lib29 = __commonJS({
172340
172340
  function sign(x2) {
172341
172341
  return x2 < 0 ? -1 : 1;
172342
172342
  }
172343
- function modulo(x2, y9) {
172344
- const signMightNotMatch = x2 % y9;
172345
- if (sign(y9) !== sign(signMightNotMatch)) {
172346
- return signMightNotMatch + y9;
172343
+ function modulo(x2, y8) {
172344
+ const signMightNotMatch = x2 % y8;
172345
+ if (sign(y8) !== sign(signMightNotMatch)) {
172346
+ return signMightNotMatch + y8;
172347
172347
  }
172348
172348
  return signMightNotMatch;
172349
172349
  }
@@ -172467,11 +172467,11 @@ var require_lib29 = __commonJS({
172467
172467
  if (Object.is(x2, -0)) {
172468
172468
  return x2;
172469
172469
  }
172470
- const y9 = Math.fround(x2);
172471
- if (!Number.isFinite(y9)) {
172470
+ const y8 = Math.fround(x2);
172471
+ if (!Number.isFinite(y8)) {
172472
172472
  throw makeException(TypeError, "is outside the range of a single-precision floating-point value", options);
172473
172473
  }
172474
- return y9;
172474
+ return y8;
172475
172475
  };
172476
172476
  exports2["unrestricted float"] = (value2, options = {}) => {
172477
172477
  const x2 = toNumber(value2, options);
@@ -199062,8 +199062,8 @@ var require_WebClient = __commonJS({
199062
199062
  function reject(value2) {
199063
199063
  resume("throw", value2);
199064
199064
  }
199065
- function settle2(f6, v) {
199066
- if (f6(v), q5.shift(), q5.length) resume(q5[0][0], q5[0][1]);
199065
+ function settle2(f5, v) {
199066
+ if (f5(v), q5.shift(), q5.length) resume(q5[0][0], q5[0][1]);
199067
199067
  }
199068
199068
  };
199069
199069
  var __asyncValues = exports2 && exports2.__asyncValues || function(o7) {
@@ -199731,8 +199731,8 @@ function x(t4, ...o7) {
199731
199731
  }
199732
199732
  let a4 = [];
199733
199733
  for (let i7 of n2) if (A(i7, a4, r3)) break;
199734
- let { isSingle: y9 } = r3.at(-1);
199735
- n2 = y9 ? a4[0] : a4, p3 += r3.length;
199734
+ let { isSingle: y8 } = r3.at(-1);
199735
+ n2 = y8 ? a4[0] : a4, p3 += r3.length;
199736
199736
  }
199737
199737
  return n2;
199738
199738
  }
@@ -199740,8 +199740,8 @@ function A(t4, o7, n2) {
199740
199740
  if (n2.length === 0) return o7.push(t4), false;
199741
199741
  let u8 = t4, p3 = s, e = false;
199742
199742
  for (let [r3, a4] of n2.entries()) {
199743
- let { index: y9, items: i7 } = a4;
199744
- if (i7.push(u8), p3 = a4(u8, y9, i7), a4.index += 1, p3.hasNext) {
199743
+ let { index: y8, items: i7 } = a4;
199744
+ if (i7.push(u8), p3 = a4(u8, y8, i7), a4.index += 1, p3.hasNext) {
199745
199745
  if (p3.hasMany ?? false) {
199746
199746
  for (let l6 of p3.next) if (A(l6, o7, n2.slice(r3 + 1))) return true;
199747
199747
  return e;
@@ -199817,9 +199817,9 @@ function m(r3, n2) {
199817
199817
  }
199818
199818
  function u3(r3, n2, ...e) {
199819
199819
  let o7 = typeof r3 == "function" ? r3 : r3[0], a4 = typeof r3 == "function" ? "asc" : r3[1], { [a4]: t4 } = T, i7 = n2 === void 0 ? void 0 : u3(n2, ...e);
199820
- return (y9, c3) => {
199821
- let l6 = o7(y9), p3 = o7(c3);
199822
- return t4(l6, p3) ? 1 : t4(p3, l6) ? -1 : i7?.(y9, c3) ?? 0;
199820
+ return (y8, c3) => {
199821
+ let l6 = o7(y8), p3 = o7(c3);
199822
+ return t4(l6, p3) ? 1 : t4(p3, l6) ? -1 : i7?.(y8, c3) ?? 0;
199823
199823
  };
199824
199824
  }
199825
199825
  function s2(r3) {
@@ -199840,29 +199840,14 @@ function c(n2, r3) {
199840
199840
  return o7;
199841
199841
  }
199842
199842
 
199843
- // ../../node_modules/.pnpm/remeda@2.14.0/node_modules/remeda/dist/chunk-RLZQTLGN.js
199844
- function y(...t4) {
199845
- return u2(f3, t4);
199846
- }
199847
- function f3(t4, e) {
199848
- if (!i2(e, 1)) return { ...t4 };
199849
- if (!i2(e, 2)) {
199850
- let { [e[0]]: r3, ...m4 } = t4;
199851
- return m4;
199852
- }
199853
- let o7 = { ...t4 };
199854
- for (let r3 of e) delete o7[r3];
199855
- return o7;
199856
- }
199857
-
199858
199843
  // ../../node_modules/.pnpm/remeda@2.14.0/node_modules/remeda/dist/chunk-5KH5J3AC.js
199859
199844
  function l(...n2) {
199860
199845
  return m(u4, n2);
199861
199846
  }
199862
- function u4(n2, y9) {
199847
+ function u4(n2, y8) {
199863
199848
  if (!i2(n2, 2)) return n2[0];
199864
199849
  let [e] = n2, [, ...i7] = n2;
199865
- for (let r3 of i7) y9(r3, e) < 0 && (e = r3);
199850
+ for (let r3 of i7) y8(r3, e) < 0 && (e = r3);
199866
199851
  return e;
199867
199852
  }
199868
199853
 
@@ -203578,7 +203563,7 @@ var o2 = (t4) => ({ hasNext: true, next: t4, done: false });
203578
203563
 
203579
203564
  // ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-3GOCSNFN.js
203580
203565
  function C(t4, ...o7) {
203581
- let n2 = t4, u8 = o7.map((e) => "lazy" in e ? y2(e) : void 0), p3 = 0;
203566
+ let n2 = t4, u8 = o7.map((e) => "lazy" in e ? y(e) : void 0), p3 = 0;
203582
203567
  for (; p3 < o7.length; ) {
203583
203568
  if (u8[p3] === void 0 || !B2(n2)) {
203584
203569
  let i7 = o7[p3];
@@ -203591,20 +203576,20 @@ function C(t4, ...o7) {
203591
203576
  if (l6 === void 0 || (r3.push(l6), l6.isSingle)) break;
203592
203577
  }
203593
203578
  let a4 = [];
203594
- for (let i7 of n2) if (f4(i7, a4, r3)) break;
203579
+ for (let i7 of n2) if (f3(i7, a4, r3)) break;
203595
203580
  let { isSingle: s6 } = r3.at(-1);
203596
203581
  n2 = s6 ? a4[0] : a4, p3 += r3.length;
203597
203582
  }
203598
203583
  return n2;
203599
203584
  }
203600
- function f4(t4, o7, n2) {
203585
+ function f3(t4, o7, n2) {
203601
203586
  if (n2.length === 0) return o7.push(t4), false;
203602
203587
  let u8 = t4, p3 = s3, e = false;
203603
203588
  for (let [r3, a4] of n2.entries()) {
203604
203589
  let { index: s6, items: i7 } = a4;
203605
203590
  if (i7.push(u8), p3 = a4(u8, s6, i7), a4.index += 1, p3.hasNext) {
203606
203591
  if (p3.hasMany ?? false) {
203607
- for (let l6 of p3.next) if (f4(l6, o7, n2.slice(r3 + 1))) return true;
203592
+ for (let l6 of p3.next) if (f3(l6, o7, n2.slice(r3 + 1))) return true;
203608
203593
  return e;
203609
203594
  }
203610
203595
  u8 = p3.next;
@@ -203614,7 +203599,7 @@ function f4(t4, o7, n2) {
203614
203599
  }
203615
203600
  return p3.hasNext && o7.push(u8), e;
203616
203601
  }
203617
- function y2(t4) {
203602
+ function y(t4) {
203618
203603
  let { lazy: o7, lazyArgs: n2 } = t4, u8 = o7(...n2);
203619
203604
  return Object.assign(u8, { isSingle: o7.single ?? false, index: 0, items: [] });
203620
203605
  }
@@ -203623,7 +203608,7 @@ function B2(t4) {
203623
203608
  }
203624
203609
 
203625
203610
  // ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-LFJW7BOT.js
203626
- function y3(t4, i7) {
203611
+ function y2(t4, i7) {
203627
203612
  let a4 = i7.length - t4.length;
203628
203613
  if (a4 === 1) {
203629
203614
  let [n2, ...r3] = i7;
@@ -203638,9 +203623,9 @@ function y3(t4, i7) {
203638
203623
 
203639
203624
  // ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-7ZI6JRPB.js
203640
203625
  function T2(...e) {
203641
- return y3(y4, e);
203626
+ return y2(y3, e);
203642
203627
  }
203643
- function y4(e) {
203628
+ function y3(e) {
203644
203629
  let u8 = e, n2 = /* @__PURE__ */ new Set();
203645
203630
  return (t4, i7, d4) => {
203646
203631
  let r3 = u8(t4, i7, d4);
@@ -203650,7 +203635,7 @@ function y4(e) {
203650
203635
 
203651
203636
  // ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-OXJMERKM.js
203652
203637
  function m2(...e) {
203653
- return y3(s4, e);
203638
+ return y2(s4, e);
203654
203639
  }
203655
203640
  var s4 = (e) => (t4, n2, o7) => o7.findIndex((u8, i7) => n2 === i7 || e(t4, u8)) === n2 ? { done: false, hasNext: true, next: t4 } : s3;
203656
203641
 
@@ -203675,7 +203660,7 @@ function r2(...t4) {
203675
203660
 
203676
203661
  // ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-QJLMYOTX.js
203677
203662
  function i3(...e) {
203678
- return y3(a2, e);
203663
+ return y2(a2, e);
203679
203664
  }
203680
203665
  function a2() {
203681
203666
  let e = /* @__PURE__ */ new Set();
@@ -203731,10 +203716,10 @@ function i6(...e) {
203731
203716
  var p2 = (e, a4) => {
203732
203717
  let n2 = /* @__PURE__ */ new Map();
203733
203718
  for (let [d4, t4] of e.entries()) {
203734
- let y9 = a4(t4, d4, e);
203735
- if (y9 !== void 0) {
203736
- let r3 = n2.get(y9);
203737
- r3 === void 0 && (r3 = [], n2.set(y9, r3)), r3.push(t4);
203719
+ let y8 = a4(t4, d4, e);
203720
+ if (y8 !== void 0) {
203721
+ let r3 = n2.get(y8);
203722
+ r3 === void 0 && (r3 = [], n2.set(y8, r3)), r3.push(t4);
203738
203723
  }
203739
203724
  }
203740
203725
  return Object.fromEntries(n2);
@@ -203742,9 +203727,9 @@ var p2 = (e, a4) => {
203742
203727
 
203743
203728
  // ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-B6PG574O.js
203744
203729
  function c2(...e) {
203745
- return u6(y5, e);
203730
+ return u6(y4, e);
203746
203731
  }
203747
- function y5(e, o7) {
203732
+ function y4(e, o7) {
203748
203733
  let r3 = {};
203749
203734
  for (let [a4, n2] of e.entries()) {
203750
203735
  let d4 = o7(n2, a4, e);
@@ -203754,7 +203739,7 @@ function y5(e, o7) {
203754
203739
  }
203755
203740
 
203756
203741
  // ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-XPCYQPKH.js
203757
- function y6(e, t4) {
203742
+ function y5(e, t4) {
203758
203743
  return typeof e == "object" ? a3(e, t4) : u5(a3, e === void 0 ? [] : [e], o5);
203759
203744
  }
203760
203745
  var a3 = (e, t4) => t4 === void 0 ? e.flat() : e.flat(t4);
@@ -203766,8 +203751,8 @@ function u7(...a4) {
203766
203751
  return u6(o6, a4, l4);
203767
203752
  }
203768
203753
  var o6 = (a4, r3) => a4.flatMap(r3);
203769
- var l4 = (a4) => (r3, t4, y9) => {
203770
- let n2 = a4(r3, t4, y9);
203754
+ var l4 = (a4) => (r3, t4, y8) => {
203755
+ let n2 = a4(r3, t4, y8);
203771
203756
  return Array.isArray(n2) ? { done: false, hasNext: true, hasMany: true, next: n2 } : { done: false, hasNext: true, next: n2 };
203772
203757
  };
203773
203758
 
@@ -203783,13 +203768,13 @@ function t3(...r3) {
203783
203768
 
203784
203769
  // ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-P6LAFGAN.js
203785
203770
  function T3(...a4) {
203786
- return u6(l5, a4, y7);
203771
+ return u6(l5, a4, y6);
203787
203772
  }
203788
203773
  var l5 = (a4, r3) => a4.filter(r3);
203789
- var y7 = (a4) => (r3, t4, o7) => a4(r3, t4, o7) ? { done: false, hasNext: true, next: r3 } : s3;
203774
+ var y6 = (a4) => (r3, t4, o7) => a4(r3, t4, o7) ? { done: false, hasNext: true, next: r3 } : s3;
203790
203775
 
203791
203776
  // ../../node_modules/.pnpm/remeda@2.21.2/node_modules/remeda/dist/chunk-WFMWIRTS.js
203792
- function f5(...e) {
203777
+ function f4(...e) {
203793
203778
  return u6(s5, e);
203794
203779
  }
203795
203780
  function s5(e, n2) {
@@ -203805,6 +203790,41 @@ function s5(e, n2) {
203805
203790
  return u8;
203806
203791
  }
203807
203792
 
203793
+ // ../shared-types/src/vulnerabilities.ts
203794
+ var PURL_Type = /* @__PURE__ */ ((PURL_Type2) => {
203795
+ PURL_Type2["ALPM"] = "alpm";
203796
+ PURL_Type2["APK"] = "apk";
203797
+ PURL_Type2["BITBUCKET"] = "bitbucket";
203798
+ PURL_Type2["COCOAPODS"] = "cocoapods";
203799
+ PURL_Type2["CARGO"] = "cargo";
203800
+ PURL_Type2["COMPOSER"] = "composer";
203801
+ PURL_Type2["CONAN"] = "conan";
203802
+ PURL_Type2["CONDA"] = "conda";
203803
+ PURL_Type2["CRAN"] = "cran";
203804
+ PURL_Type2["DEB"] = "deb";
203805
+ PURL_Type2["DOCKER"] = "docker";
203806
+ PURL_Type2["GEM"] = "gem";
203807
+ PURL_Type2["GENERIC"] = "generic";
203808
+ PURL_Type2["GITHUB"] = "github";
203809
+ PURL_Type2["GOLANG"] = "golang";
203810
+ PURL_Type2["HACKAGE"] = "hackage";
203811
+ PURL_Type2["HEX"] = "hex";
203812
+ PURL_Type2["HUGGINGFACE"] = "huggingface";
203813
+ PURL_Type2["MAVEN"] = "maven";
203814
+ PURL_Type2["MLFLOW"] = "mlflow";
203815
+ PURL_Type2["NPM"] = "npm";
203816
+ PURL_Type2["NUGET"] = "nuget";
203817
+ PURL_Type2["QPKG"] = "qpkg";
203818
+ PURL_Type2["OCI"] = "oci";
203819
+ PURL_Type2["PUB"] = "pub";
203820
+ PURL_Type2["PYPI"] = "pypi";
203821
+ PURL_Type2["RPM"] = "rpm";
203822
+ PURL_Type2["SWID"] = "swid";
203823
+ PURL_Type2["SWIFT"] = "swift";
203824
+ PURL_Type2["UNKNOWN"] = "unknown";
203825
+ return PURL_Type2;
203826
+ })(PURL_Type || {});
203827
+
203808
203828
  // ../web-compat-utils/src/purl-utils.ts
203809
203829
  function getPurlType(ecosystem) {
203810
203830
  switch (ecosystem) {
@@ -204397,22 +204417,29 @@ async function getLatestBucketsSocket(subprojectPath, workspacePath) {
204397
204417
  return void 0;
204398
204418
  }
204399
204419
  }
204400
- async function useSocketComputeFixEndpoint(autofixRunId, artifacts, vulnerableArtifactIdsForGhsas, config3) {
204420
+ async function fetchFixesFromAPI(params) {
204421
+ const urlParams = new URLSearchParams();
204422
+ urlParams.set("tar_hash", params.tarHash);
204423
+ const vulnIds = params.vulnerabilityIds.includes("all") ? "*" : params.vulnerabilityIds.join(",");
204424
+ urlParams.set("vulnerability_ids", vulnIds);
204425
+ if (params.allowMajorUpdates !== void 0) {
204426
+ urlParams.set("allow_major_updates", String(params.allowMajorUpdates));
204427
+ }
204428
+ if (params.minimumReleaseAge) {
204429
+ urlParams.set("minimum_release_age", params.minimumReleaseAge);
204430
+ }
204431
+ if (params.includeAllDetectedGhsas) {
204432
+ urlParams.set("include_all_detected_ghsas", "true");
204433
+ }
204434
+ if (params.autofixRunId) {
204435
+ urlParams.set("autofix_run_id", params.autofixRunId);
204436
+ }
204401
204437
  try {
204402
- const url2 = getSocketApiUrl("fixes/compute-fixes");
204403
- const data2 = {
204404
- autofixRunId,
204405
- artifacts,
204406
- vulnerableArtifactIndexes: vulnerableArtifactIdsForGhsas,
204407
- config: config3
204408
- };
204409
- return (await axios2.post(url2, data2, { headers: getAuthHeaders() })).data;
204438
+ const url2 = getSocketApiUrl(`orgs/${process.env.SOCKET_ORG_SLUG}/fixes?${urlParams.toString()}`);
204439
+ return (await axios2.get(url2, { headers: getAuthHeaders() })).data;
204410
204440
  } catch (error) {
204411
- handleError(error, "Request to compute fixes failed", false);
204412
- return {
204413
- type: "error",
204414
- message: "Error during computation"
204415
- };
204441
+ handleError(error, "Request to compute fixes failed", true);
204442
+ throw new Error("we should never reach this point");
204416
204443
  }
204417
204444
  }
204418
204445
  async function augmentArtifactsWithVulnerabilities(components) {
@@ -207866,17 +207893,17 @@ var twos = (buf) => {
207866
207893
  var flipped = false;
207867
207894
  for (var i7 = len - 1; i7 > -1; i7--) {
207868
207895
  var byte = Number(buf[i7]);
207869
- var f6;
207896
+ var f5;
207870
207897
  if (flipped) {
207871
- f6 = onesComp(byte);
207898
+ f5 = onesComp(byte);
207872
207899
  } else if (byte === 0) {
207873
- f6 = byte;
207900
+ f5 = byte;
207874
207901
  } else {
207875
207902
  flipped = true;
207876
- f6 = twosComp(byte);
207903
+ f5 = twosComp(byte);
207877
207904
  }
207878
- if (f6 !== 0) {
207879
- sum -= f6 * Math.pow(256, len - i7 - 1);
207905
+ if (f5 !== 0) {
207906
+ sum -= f5 * Math.pow(256, len - i7 - 1);
207880
207907
  }
207881
207908
  }
207882
207909
  return sum;
@@ -208895,7 +208922,7 @@ var onReadEntryFunction = (opt) => {
208895
208922
  } : (e) => e.resume();
208896
208923
  };
208897
208924
  var filesFilter = (opt, files) => {
208898
- const map2 = new Map(files.map((f6) => [stripTrailingSlashes(f6), true]));
208925
+ const map2 = new Map(files.map((f5) => [stripTrailingSlashes(f5), true]));
208899
208926
  const filter6 = opt.filter;
208900
208927
  const mapHas = (file, r3 = "") => {
208901
208928
  const root3 = r3 || parse2(file).root || ".";
@@ -210714,8 +210741,8 @@ var PathReservations = class {
210714
210741
  if (typeof q0 === "function") {
210715
210742
  next2.add(q0);
210716
210743
  } else {
210717
- for (const f6 of q0) {
210718
- next2.add(f6);
210744
+ for (const f5 of q0) {
210745
+ next2.add(f5);
210719
210746
  }
210720
210747
  }
210721
210748
  }
@@ -211977,6 +212004,111 @@ function handleNexeBinaryMode() {
211977
212004
  }
211978
212005
  }
211979
212006
 
212007
+ // ../web-compat-utils/src/package-manager-utils.ts
212008
+ var ALL_PACKAGE_MANAGERS = [
212009
+ "NPM",
212010
+ "PNPM",
212011
+ "YARN",
212012
+ "RUSH",
212013
+ "MAVEN",
212014
+ "GRADLE",
212015
+ "SBT",
212016
+ "POETRY",
212017
+ "PIP_REQUIREMENTS",
212018
+ "PIPENV",
212019
+ "GO",
212020
+ "CARGO",
212021
+ "NUGET",
212022
+ "RUBYGEMS",
212023
+ "COMPOSER"
212024
+ ];
212025
+ var FILTERABLE_PACKAGE_MANAGER_SET = new Set(ALL_PACKAGE_MANAGERS);
212026
+ function getFilterablePackageManagers() {
212027
+ return ALL_PACKAGE_MANAGERS;
212028
+ }
212029
+ function isFilterablePackageManager(value2) {
212030
+ return FILTERABLE_PACKAGE_MANAGER_SET.has(value2);
212031
+ }
212032
+ var PURL_TYPE_TO_SOLE_PACKAGE_MANAGER = {
212033
+ ["golang" /* GOLANG */]: "GO",
212034
+ ["cargo" /* CARGO */]: "CARGO",
212035
+ ["nuget" /* NUGET */]: "NUGET",
212036
+ ["gem" /* GEM */]: "RUBYGEMS",
212037
+ ["composer" /* COMPOSER */]: "COMPOSER"
212038
+ };
212039
+ function basenameOf(file) {
212040
+ const lastSlash = Math.max(file.lastIndexOf("/"), file.lastIndexOf("\\"));
212041
+ return lastSlash === -1 ? file : file.slice(lastSlash + 1);
212042
+ }
212043
+ function getPackageManagersForManifestFile(file) {
212044
+ const base = basenameOf(file);
212045
+ switch (base) {
212046
+ case "package-lock.json":
212047
+ case "npm-shrinkwrap.json":
212048
+ return ["NPM"];
212049
+ case "pnpm-lock.yaml":
212050
+ case "pnpm-lock.yml":
212051
+ return ["PNPM"];
212052
+ case "yarn.lock":
212053
+ return ["YARN"];
212054
+ case "pom.xml":
212055
+ return ["MAVEN"];
212056
+ case "gradle.lockfile":
212057
+ case "build.gradle":
212058
+ case "build.gradle.kts":
212059
+ case "settings.gradle":
212060
+ case "settings.gradle.kts":
212061
+ return ["GRADLE"];
212062
+ case "build.sbt":
212063
+ return ["SBT"];
212064
+ case "poetry.lock":
212065
+ return ["POETRY"];
212066
+ case "Pipfile":
212067
+ case "Pipfile.lock":
212068
+ return ["PIPENV"];
212069
+ case "go.mod":
212070
+ case "go.sum":
212071
+ return ["GO"];
212072
+ case "Cargo.toml":
212073
+ case "Cargo.lock":
212074
+ return ["CARGO"];
212075
+ case "packages.config":
212076
+ return ["NUGET"];
212077
+ case "Gemfile":
212078
+ case "Gemfile.lock":
212079
+ return ["RUBYGEMS"];
212080
+ case "composer.json":
212081
+ case "composer.lock":
212082
+ return ["COMPOSER"];
212083
+ }
212084
+ if (base.endsWith(".sbt")) return ["SBT"];
212085
+ if (base.endsWith(".csproj") || base.endsWith(".fsproj") || base.endsWith(".vbproj")) return ["NUGET"];
212086
+ if (base.endsWith(".gemspec")) return ["RUBYGEMS"];
212087
+ if (/^requirements[\w.-]*\.txt$/.test(base)) return ["PIP_REQUIREMENTS"];
212088
+ const normalized = file.replace(/\\/g, "/");
212089
+ if (/(^|\/)requirements\/[^/]+\.txt$/.test(normalized)) return ["PIP_REQUIREMENTS"];
212090
+ return [];
212091
+ }
212092
+ function getPackageManagersFromManifestFiles(manifestFiles, purlType) {
212093
+ const result = /* @__PURE__ */ new Set();
212094
+ for (const file of manifestFiles ?? []) {
212095
+ for (const pm of getPackageManagersForManifestFile(file)) {
212096
+ result.add(pm);
212097
+ }
212098
+ }
212099
+ if (result.size === 0 && purlType != null) {
212100
+ const fallback = PURL_TYPE_TO_SOLE_PACKAGE_MANAGER[purlType];
212101
+ if (fallback) result.add(fallback);
212102
+ }
212103
+ return result;
212104
+ }
212105
+ function getPackageManagersForArtifact(artifact) {
212106
+ return getPackageManagersFromManifestFiles(
212107
+ (artifact.manifestFiles ?? []).map((ref) => ref.file),
212108
+ artifact.type
212109
+ );
212110
+ }
212111
+
211980
212112
  // ../../node_modules/.pnpm/kleur@4.1.5/node_modules/kleur/index.mjs
211981
212113
  var FORCE_COLOR;
211982
212114
  var NODE_DISABLE_COLORS;
@@ -217132,7 +217264,7 @@ var MavenFixingManager = class {
217132
217264
  if (pmInfo.packageManager !== "MAVEN") {
217133
217265
  throw Error(`fixing data for package manager 'MAVEN' required, got ${pmInfo.packageManager}`);
217134
217266
  }
217135
- const validateFile = (f6) => f6;
217267
+ const validateFile = (f5) => f5;
217136
217268
  const dependencyTrees = fixingInfo.dependencyTrees;
217137
217269
  const workspacePaths = Object.keys(fixes);
217138
217270
  const directPatchResults = [];
@@ -217554,8 +217686,8 @@ var PomUpgradeHandler = class {
217554
217686
  this.rootDir = rootDir;
217555
217687
  this.validFiles = validFiles;
217556
217688
  }
217557
- validateFile = (f6) => {
217558
- return this.validFiles.has(f6) ? f6 : void 0;
217689
+ validateFile = (f5) => {
217690
+ return this.validFiles.has(f5) ? f5 : void 0;
217559
217691
  };
217560
217692
  async handle(ctxt) {
217561
217693
  const patches = [];
@@ -217564,7 +217696,7 @@ var PomUpgradeHandler = class {
217564
217696
  const artifact = ctxt.artifacts[idx];
217565
217697
  await asyncForEach(
217566
217698
  i3(
217567
- artifact.manifestFiles?.map((ref) => ref.file).filter((f6) => !ctxt.wsFilter || ctxt.wsFilter(dirname9(f6) || ".")).map((f6) => resolve12(this.rootDir, f6)).filter(this.validateFile) ?? []
217699
+ artifact.manifestFiles?.map((ref) => ref.file).filter((f5) => !ctxt.wsFilter || ctxt.wsFilter(dirname9(f5) || ".")).map((f5) => resolve12(this.rootDir, f5)).filter(this.validateFile) ?? []
217568
217700
  ),
217569
217701
  async (validatedManifestFile) => {
217570
217702
  const res = await this.getDirectDependencyPatches(validatedManifestFile, idx, upgradeVersion, ctxt);
@@ -217583,7 +217715,7 @@ var PomUpgradeHandler = class {
217583
217715
  i3(
217584
217716
  artifact.toplevelAncestors?.flatMap(
217585
217717
  (ancestorId) => ctxt.artifacts.find((a4) => a4.id === ancestorId)?.manifestFiles?.map((m4) => m4.file) ?? []
217586
- )?.map((f6) => resolve12(this.rootDir, f6)).filter(this.validateFile) ?? []
217718
+ )?.map((f5) => resolve12(this.rootDir, f5)).filter(this.validateFile) ?? []
217587
217719
  ),
217588
217720
  async (validatedManifestFile) => {
217589
217721
  const res = await this.getTransitiveDependencyPatches(validatedManifestFile, idx, upgradeVersion, ctxt);
@@ -217627,7 +217759,7 @@ var PomUpgradeHandler = class {
217627
217759
  "Computing remaining upgrades",
217628
217760
  async () => await computeSocketFactArtifacts(
217629
217761
  this.rootDir,
217630
- Array.from(this.validFiles).map((f6) => relative4(this.rootDir, f6))
217762
+ Array.from(this.validFiles).map((f5) => relative4(this.rootDir, f5))
217631
217763
  )
217632
217764
  ) : ctxt.artifacts;
217633
217765
  if (!recomputedArtifacts) {
@@ -217649,7 +217781,7 @@ var PomUpgradeHandler = class {
217649
217781
  newArtifact.toplevelAncestors?.flatMap(
217650
217782
  (ancestorId) => recomputedArtifacts.find((a4) => a4.id === ancestorId)?.manifestFiles?.map((m4) => m4.file) ?? []
217651
217783
  ) ?? []
217652
- ).map((f6) => resolve12(this.rootDir, f6)).filter(this.validateFile)
217784
+ ).map((f5) => resolve12(this.rootDir, f5)).filter(this.validateFile)
217653
217785
  );
217654
217786
  await asyncForEach(validatedManifestFiles, async (validatedManifestFile) => {
217655
217787
  const dependency = await this.getFallbackDependency(
@@ -218066,8 +218198,8 @@ var GradleLockfileUpgradeHandler = class {
218066
218198
  this.rootDir = rootDir;
218067
218199
  this.validFiles = validFiles;
218068
218200
  }
218069
- validateFile = (f6) => {
218070
- return this.validFiles.has(f6) ? f6 : void 0;
218201
+ validateFile = (f5) => {
218202
+ return this.validFiles.has(f5) ? f5 : void 0;
218071
218203
  };
218072
218204
  async handle(ctxt) {
218073
218205
  const patches = await asyncFlatMap(
@@ -218081,7 +218213,7 @@ var GradleLockfileUpgradeHandler = class {
218081
218213
  const artifact = ctxt.artifacts[idx];
218082
218214
  const toplevelAncestors = artifact.toplevelAncestors?.map((ancestorId) => ctxt.artifacts.find((a4) => a4.id === ancestorId)).filter((ancestor) => ancestor !== void 0);
218083
218215
  const validatedManifestFiles = i3(
218084
- (artifact.manifestFiles?.map((ref) => ref.file) ?? []).concat(toplevelAncestors?.flatMap(({ manifestFiles }) => manifestFiles?.map((m4) => m4.file) ?? []) ?? []).filter((f6) => !ctxt.wsFilter || ctxt.wsFilter(dirname10(f6) || ".")).map((f6) => resolve14(this.rootDir, f6)).filter(this.validateFile)
218216
+ (artifact.manifestFiles?.map((ref) => ref.file) ?? []).concat(toplevelAncestors?.flatMap(({ manifestFiles }) => manifestFiles?.map((m4) => m4.file) ?? []) ?? []).filter((f5) => !ctxt.wsFilter || ctxt.wsFilter(dirname10(f5) || ".")).map((f5) => resolve14(this.rootDir, f5)).filter(this.validateFile)
218085
218217
  );
218086
218218
  await asyncForEach(validatedManifestFiles, async (validatedManifestFile) => {
218087
218219
  let lockFile;
@@ -218339,8 +218471,8 @@ var SbtUpgradeHandler = class {
218339
218471
  this.rootDir = rootDir;
218340
218472
  this.validFiles = validFiles;
218341
218473
  }
218342
- validateFile = (f6) => {
218343
- return this.validFiles.has(f6) ? f6 : void 0;
218474
+ validateFile = (f5) => {
218475
+ return this.validFiles.has(f5) ? f5 : void 0;
218344
218476
  };
218345
218477
  async handle(ctxt) {
218346
218478
  const patches = [];
@@ -218352,7 +218484,7 @@ var SbtUpgradeHandler = class {
218352
218484
  artifact.toplevelAncestors?.flatMap(
218353
218485
  (ancestorId) => ctxt.artifacts.find((a4) => a4.id === ancestorId)?.manifestFiles?.map((m4) => m4.file) ?? []
218354
218486
  ) ?? []
218355
- ).map((f6) => resolve15(this.rootDir, f6)).filter(this.validateFile)
218487
+ ).map((f5) => resolve15(this.rootDir, f5)).filter(this.validateFile)
218356
218488
  );
218357
218489
  await asyncForEach(validatedManifestFiles, async (validatedManifestFile) => {
218358
218490
  const workspacePath = findSbtWorkspace(validatedManifestFile);
@@ -219511,54 +219643,54 @@ var minimatch = (p3, pattern, options = {}) => {
219511
219643
  return new Minimatch(pattern, options).match(p3);
219512
219644
  };
219513
219645
  var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
219514
- var starDotExtTest = (ext2) => (f6) => !f6.startsWith(".") && f6.endsWith(ext2);
219515
- var starDotExtTestDot = (ext2) => (f6) => f6.endsWith(ext2);
219646
+ var starDotExtTest = (ext2) => (f5) => !f5.startsWith(".") && f5.endsWith(ext2);
219647
+ var starDotExtTestDot = (ext2) => (f5) => f5.endsWith(ext2);
219516
219648
  var starDotExtTestNocase = (ext2) => {
219517
219649
  ext2 = ext2.toLowerCase();
219518
- return (f6) => !f6.startsWith(".") && f6.toLowerCase().endsWith(ext2);
219650
+ return (f5) => !f5.startsWith(".") && f5.toLowerCase().endsWith(ext2);
219519
219651
  };
219520
219652
  var starDotExtTestNocaseDot = (ext2) => {
219521
219653
  ext2 = ext2.toLowerCase();
219522
- return (f6) => f6.toLowerCase().endsWith(ext2);
219654
+ return (f5) => f5.toLowerCase().endsWith(ext2);
219523
219655
  };
219524
219656
  var starDotStarRE = /^\*+\.\*+$/;
219525
- var starDotStarTest = (f6) => !f6.startsWith(".") && f6.includes(".");
219526
- var starDotStarTestDot = (f6) => f6 !== "." && f6 !== ".." && f6.includes(".");
219657
+ var starDotStarTest = (f5) => !f5.startsWith(".") && f5.includes(".");
219658
+ var starDotStarTestDot = (f5) => f5 !== "." && f5 !== ".." && f5.includes(".");
219527
219659
  var dotStarRE = /^\.\*+$/;
219528
- var dotStarTest = (f6) => f6 !== "." && f6 !== ".." && f6.startsWith(".");
219660
+ var dotStarTest = (f5) => f5 !== "." && f5 !== ".." && f5.startsWith(".");
219529
219661
  var starRE = /^\*+$/;
219530
- var starTest = (f6) => f6.length !== 0 && !f6.startsWith(".");
219531
- var starTestDot = (f6) => f6.length !== 0 && f6 !== "." && f6 !== "..";
219662
+ var starTest = (f5) => f5.length !== 0 && !f5.startsWith(".");
219663
+ var starTestDot = (f5) => f5.length !== 0 && f5 !== "." && f5 !== "..";
219532
219664
  var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
219533
219665
  var qmarksTestNocase = ([$0, ext2 = ""]) => {
219534
219666
  const noext = qmarksTestNoExt([$0]);
219535
219667
  if (!ext2)
219536
219668
  return noext;
219537
219669
  ext2 = ext2.toLowerCase();
219538
- return (f6) => noext(f6) && f6.toLowerCase().endsWith(ext2);
219670
+ return (f5) => noext(f5) && f5.toLowerCase().endsWith(ext2);
219539
219671
  };
219540
219672
  var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
219541
219673
  const noext = qmarksTestNoExtDot([$0]);
219542
219674
  if (!ext2)
219543
219675
  return noext;
219544
219676
  ext2 = ext2.toLowerCase();
219545
- return (f6) => noext(f6) && f6.toLowerCase().endsWith(ext2);
219677
+ return (f5) => noext(f5) && f5.toLowerCase().endsWith(ext2);
219546
219678
  };
219547
219679
  var qmarksTestDot = ([$0, ext2 = ""]) => {
219548
219680
  const noext = qmarksTestNoExtDot([$0]);
219549
- return !ext2 ? noext : (f6) => noext(f6) && f6.endsWith(ext2);
219681
+ return !ext2 ? noext : (f5) => noext(f5) && f5.endsWith(ext2);
219550
219682
  };
219551
219683
  var qmarksTest = ([$0, ext2 = ""]) => {
219552
219684
  const noext = qmarksTestNoExt([$0]);
219553
- return !ext2 ? noext : (f6) => noext(f6) && f6.endsWith(ext2);
219685
+ return !ext2 ? noext : (f5) => noext(f5) && f5.endsWith(ext2);
219554
219686
  };
219555
219687
  var qmarksTestNoExt = ([$0]) => {
219556
219688
  const len = $0.length;
219557
- return (f6) => f6.length === len && !f6.startsWith(".");
219689
+ return (f5) => f5.length === len && !f5.startsWith(".");
219558
219690
  };
219559
219691
  var qmarksTestNoExtDot = ([$0]) => {
219560
219692
  const len = $0.length;
219561
- return (f6) => f6.length === len && f6 !== "." && f6 !== "..";
219693
+ return (f5) => f5.length === len && f5 !== "." && f5 !== "..";
219562
219694
  };
219563
219695
  var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
219564
219696
  var path8 = {
@@ -219625,7 +219757,7 @@ var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe()
219625
219757
  minimatch.makeRe = makeRe;
219626
219758
  var match = (list2, pattern, options = {}) => {
219627
219759
  const mm = new Minimatch(pattern, options);
219628
- list2 = list2.filter((f6) => mm.match(f6));
219760
+ list2 = list2.filter((f5) => mm.match(f5));
219629
219761
  if (mm.options.nonull && !list2.length) {
219630
219762
  list2.push(pattern);
219631
219763
  }
@@ -220017,13 +220149,13 @@ var Minimatch = class {
220017
220149
  for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
220018
220150
  this.debug("matchOne loop");
220019
220151
  var p3 = pattern[pi];
220020
- var f6 = file[fi];
220021
- this.debug(pattern, p3, f6);
220152
+ var f5 = file[fi];
220153
+ this.debug(pattern, p3, f5);
220022
220154
  if (p3 === false) {
220023
220155
  return false;
220024
220156
  }
220025
220157
  if (p3 === GLOBSTAR) {
220026
- this.debug("GLOBSTAR", [pattern, p3, f6]);
220158
+ this.debug("GLOBSTAR", [pattern, p3, f5]);
220027
220159
  var fr = fi;
220028
220160
  var pr = pi + 1;
220029
220161
  if (pr === pl) {
@@ -220059,11 +220191,11 @@ var Minimatch = class {
220059
220191
  }
220060
220192
  let hit;
220061
220193
  if (typeof p3 === "string") {
220062
- hit = f6 === p3;
220063
- this.debug("string match", p3, f6, hit);
220194
+ hit = f5 === p3;
220195
+ this.debug("string match", p3, f5, hit);
220064
220196
  } else {
220065
- hit = p3.test(f6);
220066
- this.debug("pattern match", p3, f6, hit);
220197
+ hit = p3.test(f5);
220198
+ this.debug("pattern match", p3, f5, hit);
220067
220199
  }
220068
220200
  if (!hit)
220069
220201
  return false;
@@ -220121,8 +220253,8 @@ var Minimatch = class {
220121
220253
  let re = set.map((pattern) => {
220122
220254
  const pp = pattern.map((p3) => {
220123
220255
  if (p3 instanceof RegExp) {
220124
- for (const f6 of p3.flags.split(""))
220125
- flags.add(f6);
220256
+ for (const f5 of p3.flags.split(""))
220257
+ flags.add(f5);
220126
220258
  }
220127
220259
  return typeof p3 === "string" ? regExpEscape2(p3) : p3 === GLOBSTAR ? GLOBSTAR : p3._src;
220128
220260
  });
@@ -220167,22 +220299,22 @@ var Minimatch = class {
220167
220299
  return p3.split(/\/+/);
220168
220300
  }
220169
220301
  }
220170
- match(f6, partial = this.partial) {
220171
- this.debug("match", f6, this.pattern);
220302
+ match(f5, partial = this.partial) {
220303
+ this.debug("match", f5, this.pattern);
220172
220304
  if (this.comment) {
220173
220305
  return false;
220174
220306
  }
220175
220307
  if (this.empty) {
220176
- return f6 === "";
220308
+ return f5 === "";
220177
220309
  }
220178
- if (f6 === "/" && partial) {
220310
+ if (f5 === "/" && partial) {
220179
220311
  return true;
220180
220312
  }
220181
220313
  const options = this.options;
220182
220314
  if (this.isWindows) {
220183
- f6 = f6.split("\\").join("/");
220315
+ f5 = f5.split("\\").join("/");
220184
220316
  }
220185
- const ff = this.slashSplit(f6);
220317
+ const ff = this.slashSplit(f5);
220186
220318
  this.debug(this.pattern, "split", ff);
220187
220319
  const set = this.set;
220188
220320
  this.debug(this.pattern, "set", set);
@@ -225244,13 +225376,13 @@ var NpmEcosystemFixingManager = class {
225244
225376
  await this.applySecurityFixesSpecificPackageManager(fixes);
225245
225377
  if (directDependenciesToBump.length === 0) return;
225246
225378
  await applySeries(["prod", "dev"], async (type) => {
225247
- const packagesOfType = directDependenciesToBump.filter((f6) => directDependencyToPackageType[f6.dependencyName] === type).map((f6) => `${f6.dependencyName}@${f6.fixedVersion}`);
225379
+ const packagesOfType = directDependenciesToBump.filter((f5) => directDependencyToPackageType[f5.dependencyName] === type).map((f5) => `${f5.dependencyName}@${f5.fixedVersion}`);
225248
225380
  if (packagesOfType.length === 0) return;
225249
225381
  await that.installSpecificPackages(workspacePath, type === "dev", packagesOfType);
225250
225382
  });
225251
225383
  }
225252
225384
  async getDirectDependenciesToBump(_workspacePath, dependencyTree, fix) {
225253
- return fix.filter((f6) => dependencyTree.dependencies?.includes(f6.dependencyIdentifier));
225385
+ return fix.filter((f5) => dependencyTree.dependencies?.includes(f5.dependencyIdentifier));
225254
225386
  }
225255
225387
  };
225256
225388
 
@@ -225376,7 +225508,7 @@ var PnpmFixingManager = class extends NpmEcosystemFixingManager {
225376
225508
  return lockFile;
225377
225509
  }
225378
225510
  async getDirectDependenciesToBump(workspacePath, dependencyTree, fix) {
225379
- const directDepFixes = fix.filter((f6) => dependencyTree.dependencies?.includes(f6.dependencyIdentifier));
225511
+ const directDepFixes = fix.filter((f5) => dependencyTree.dependencies?.includes(f5.dependencyIdentifier));
225380
225512
  const lockFileYaml = await this.getLockFileYaml();
225381
225513
  const wsImporters = lockFileYaml.importers[workspacePath];
225382
225514
  const directDepsToBump = directDepFixes.filter((fix2) => {
@@ -225992,8 +226124,8 @@ var NpmSocketUpgradeManager = class {
225992
226124
  const subprojectToUpgrade = /* @__PURE__ */ new Map();
225993
226125
  const workspaceToSubproject = /* @__PURE__ */ new Map();
225994
226126
  const lockFiles = manifestFiles.filter(
225995
- (f6) => ["package-lock.json", "pnpm-lock.yml", "pnpm-lock.yaml", "yarn.lock"].some(
225996
- (lockFile) => basename7(f6) === lockFile
226127
+ (f5) => ["package-lock.json", "pnpm-lock.yml", "pnpm-lock.yaml", "yarn.lock"].some(
226128
+ (lockFile) => basename7(f5) === lockFile
225997
226129
  )
225998
226130
  ) ?? [];
225999
226131
  for (const lockFile of lockFiles) {
@@ -226246,14 +226378,14 @@ var Cache = class _Cache {
226246
226378
  }
226247
226379
  // Converts key to lowercase before performing the set if absent
226248
226380
  // Returns the associated value
226249
- computeIfAbsent(key, f6) {
226381
+ computeIfAbsent(key, f5) {
226250
226382
  const lowerKey = key.toLowerCase();
226251
- this.cache[lowerKey] ??= f6();
226383
+ this.cache[lowerKey] ??= f5();
226252
226384
  return this.cache[lowerKey];
226253
226385
  }
226254
- compute(key, f6) {
226386
+ compute(key, f5) {
226255
226387
  const lowerKey = key.toLowerCase();
226256
- this.cache[lowerKey] ??= f6(this.cache[lowerKey]);
226388
+ this.cache[lowerKey] ??= f5(this.cache[lowerKey]);
226257
226389
  return this.cache[lowerKey];
226258
226390
  }
226259
226391
  putIfAbsent(key, value2) {
@@ -228398,7 +228530,7 @@ async function handleCompileItem(project, child) {
228398
228530
  absolute: true
228399
228531
  });
228400
228532
  const removeSet = new Set(filesToRemove);
228401
- project.sourceFiles = project.sourceFiles.filter((f6) => !removeSet.has(f6));
228533
+ project.sourceFiles = project.sourceFiles.filter((f5) => !removeSet.has(f5));
228402
228534
  } catch (err) {
228403
228535
  logger.debug(
228404
228536
  `Failed to glob Compile Remove pattern ${evaluatedRemove} in ${relative11(project.rootDir, project.validatedProjectPath)}: ${err}`
@@ -228590,8 +228722,8 @@ var NuGetSocketUpgradeManager = class {
228590
228722
  const fullPath = resolve26(this.rootDir, file);
228591
228723
  caseInsensitiveManifestFileMap.set(fullPath, fullPath);
228592
228724
  }
228593
- const validateFile = (f6) => {
228594
- return caseInsensitiveManifestFileMap.get(f6);
228725
+ const validateFile = (f5) => {
228726
+ return caseInsensitiveManifestFileMap.get(f5);
228595
228727
  };
228596
228728
  const updatePatches = await this.collectUpdatePatches(ctxt, validateFile) ?? [];
228597
228729
  await applyPatches("NUGET", this.rootDir, updatePatches, ctxt);
@@ -228620,7 +228752,7 @@ var NuGetSocketUpgradeManager = class {
228620
228752
  newArtifact.toplevelAncestors?.flatMap(
228621
228753
  (ancestorId) => recomputedArtifacts.find((a4) => a4.id === ancestorId)?.manifestFiles?.map((m4) => m4.file) ?? []
228622
228754
  ) ?? []
228623
- ).filter((f6) => !ctxt.wsFilter || ctxt.wsFilter(dirname16(f6) || "."))
228755
+ ).filter((f5) => !ctxt.wsFilter || ctxt.wsFilter(dirname16(f5) || "."))
228624
228756
  // Don't update excluded workspaces
228625
228757
  );
228626
228758
  await asyncForEach(manifestFiles, async (manifestFile) => {
@@ -228648,7 +228780,7 @@ var NuGetSocketUpgradeManager = class {
228648
228780
  artifact.toplevelAncestors?.flatMap(
228649
228781
  (ancestorId) => ctxt.artifacts.find((a4) => a4.id === ancestorId)?.manifestFiles?.map((m4) => m4.file) ?? []
228650
228782
  ) ?? []
228651
- ).filter((f6) => !ctxt.wsFilter || ctxt.wsFilter(dirname16(f6) || "."))
228783
+ ).filter((f5) => !ctxt.wsFilter || ctxt.wsFilter(dirname16(f5) || "."))
228652
228784
  // Don't update pom in excluded workspaces,
228653
228785
  );
228654
228786
  for (const manifestFile of manifestFilesForArtifact) {
@@ -229774,7 +229906,7 @@ var PipSocketUpgradeManager = class {
229774
229906
  uvLockMatcher = (0, import_picomatch8.default)("uv.lock", { basename: true });
229775
229907
  poetryLockMatcher = (0, import_picomatch8.default)("poetry.lock", { basename: true });
229776
229908
  async applySocketArtifactUpgrades(ctxt) {
229777
- const pyprojectTomlFiles = ctxt.manifestFiles.filter((f6) => this.pyprojectTomlMatcher(f6));
229909
+ const pyprojectTomlFiles = ctxt.manifestFiles.filter((f5) => this.pyprojectTomlMatcher(f5));
229778
229910
  const patches = [];
229779
229911
  const uvLockFilesToValidate = /* @__PURE__ */ new Set();
229780
229912
  const lockFileToDepTree = /* @__PURE__ */ new Map();
@@ -229831,7 +229963,7 @@ var PipSocketUpgradeManager = class {
229831
229963
  const isDirectDep = matchingNodes.some((node) => projectInfo.direct.has(node.nodeKey));
229832
229964
  if (isDirectDep) {
229833
229965
  const tomlFile = [rootTomlFile, ...memberTomlFiles ?? []].find(
229834
- (f6) => (dirname20(f6) || ".") === projectDir
229966
+ (f5) => (dirname20(f5) || ".") === projectDir
229835
229967
  );
229836
229968
  if (tomlFile) {
229837
229969
  patches.push(
@@ -233257,7 +233389,7 @@ ${vulnerabilityFixes.map((fix) => ` ${fix.dependencyName} (${fix.dependencyIdent
233257
233389
  }
233258
233390
  function computeInfoAboutOutdatedObjects(outdatedFixIds) {
233259
233391
  return outdatedFixIds.map(([fix, fixes]) => `The original solution associated with fixId ${prettyStringFixDto(fix)} is outdated. Coana has found the updated solution:
233260
- ${fixes.fix.vulnerabilityFixes.map((f6) => ` - ${f6.dependencyName} from v${f6.currentVersion} to v${f6.fixedVersion}`).join("\n")}`).join("\n\n");
233392
+ ${fixes.fix.vulnerabilityFixes.map((f5) => ` - ${f5.dependencyName} from v${f5.currentVersion} to v${f5.fixedVersion}`).join("\n")}`).join("\n\n");
233261
233393
  }
233262
233394
  async function verifyFixes(fixes, otherModulesCommunicator, rootPath) {
233263
233395
  const pathsForEachFixIdData = fixes.map(({ vulnerabilityInstance: v }) => `${v.subprojectPath}/${v.workspacePath}-${v.ecosystem}`);
@@ -233709,7 +233841,7 @@ function generateUrlToRepoSourceLocation(sourceLocation, repoUrl, commit, subpro
233709
233841
 
233710
233842
  // ../web-compat-utils/src/vulnerability-augment-with-details.ts
233711
233843
  async function augmentVulnerabilitiesWithDetails(vulnerabilities, getVulnerabilityMetadata2) {
233712
- const vulnerabilityChunks = f5(vulnerabilities, 100);
233844
+ const vulnerabilityChunks = f4(vulnerabilities, 100);
233713
233845
  const chunksWithDetails = await Promise.all(
233714
233846
  vulnerabilityChunks.map(async (chunk) => {
233715
233847
  const packages = chunk.map((vi) => ({
@@ -233732,7 +233864,7 @@ async function augmentVulnerabilitiesWithDetails(vulnerabilities, getVulnerabili
233732
233864
  }
233733
233865
  })
233734
233866
  );
233735
- return y6(chunksWithDetails);
233867
+ return y5(chunksWithDetails);
233736
233868
  }
233737
233869
 
233738
233870
  // dist/internal/github-pr-tools.js
@@ -234520,8 +234652,8 @@ function assertDefined(value2) {
234520
234652
  import { basename as basename10 } from "path";
234521
234653
  function getEcosystemsFromManifestFileNames(fileNames) {
234522
234654
  const ecosystems = /* @__PURE__ */ new Set();
234523
- for (const f6 of fileNames) {
234524
- const base = basename10(f6);
234655
+ for (const f5 of fileNames) {
234656
+ const base = basename10(f5);
234525
234657
  if (/^package(-lock)?\.json$|pnpm-lock\.yaml|yarn\.lock|rush\.json/.test(base))
234526
234658
  ecosystems.add("NPM");
234527
234659
  if (/^pom\.xml$|^gradlew$|^build\.sbt$/.test(base))
@@ -234596,13 +234728,13 @@ function getNpmChecks(command, manifestFileNames) {
234596
234728
  }
234597
234729
  } else {
234598
234730
  const files = manifestFileNames ?? [];
234599
- if (files.some((f6) => f6.endsWith("package-lock.json")) && !nexe) {
234731
+ if (files.some((f5) => f5.endsWith("package-lock.json")) && !nexe) {
234600
234732
  checks.push(checkTool("npm", "NPM", "Required for NPM dependency management. Install from https://nodejs.org"));
234601
234733
  }
234602
- if (files.some((f6) => f6.endsWith("pnpm-lock.yaml"))) {
234734
+ if (files.some((f5) => f5.endsWith("pnpm-lock.yaml"))) {
234603
234735
  checks.push(checkTool("pnpm", "NPM", "Required for pnpm dependency management. Install from https://pnpm.io"));
234604
234736
  }
234605
- if (files.some((f6) => f6.endsWith("yarn.lock"))) {
234737
+ if (files.some((f5) => f5.endsWith("yarn.lock"))) {
234606
234738
  checks.push(checkTool("yarn", "NPM", "Required for Yarn dependency management. Install from https://yarnpkg.com"));
234607
234739
  }
234608
234740
  }
@@ -234618,7 +234750,7 @@ function getPipChecks(command, manifestFileNames) {
234618
234750
  }
234619
234751
  } else {
234620
234752
  const files = manifestFileNames ?? [];
234621
- if (files.some((f6) => f6.endsWith("uv.lock")) && !nexe) {
234753
+ if (files.some((f5) => f5.endsWith("uv.lock")) && !nexe) {
234622
234754
  checks.push(checkTool("uv", "Python (PIP)", "Required for Python dependency management. Install from https://docs.astral.sh/uv/"));
234623
234755
  }
234624
234756
  }
@@ -234862,112 +234994,102 @@ ${vulnerabilityFixes.map((fix) => ` ${fix.dependencyName} from ${fix.currentVers
234862
234994
  };
234863
234995
 
234864
234996
  // dist/cli-compute-fixes-and-upgrade-purls.js
234997
+ var PURL_TYPE_VALUES = new Set(Object.values(PURL_Type));
234998
+ function toPurlType(s6) {
234999
+ return s6 != null && PURL_TYPE_VALUES.has(s6) ? s6 : void 0;
235000
+ }
234865
235001
  async function computeFixesAndUpgradePurls(path9, options, logFile) {
234866
- const autofixRunId = options.manifestsTarHash && await getSocketAPI().registerAutofixOrUpgradePurlRun(options.manifestsTarHash, options, "autofix");
234867
- const { artifacts, ghsaToVulnerableArtifactIds, socketFactArtifacts } = await computeInputForComputingFixes(options);
234868
- if (Object.keys(ghsaToVulnerableArtifactIds).length === 0) {
234869
- logger.info("Found no vulnerabilities in the project");
234870
- return { type: "no-vulnerabilities-found" };
234871
- }
235002
+ if (!options.manifestsTarHash)
235003
+ throw new Error("Manifests tar hash is required for computing fixes");
235004
+ const autofixRunId = await getSocketAPI().registerAutofixOrUpgradePurlRun(options.manifestsTarHash, options, "autofix");
234872
235005
  if (options.applyFixesTo.length === 0) {
234873
- logger.info("Vulnerabilities found:", Object.keys(ghsaToVulnerableArtifactIds).join(", "));
234874
- logger.info("Consider running the tool again, requesting a fix for one of the detected vulnerabilities");
234875
- return { type: "no-ghsas-fix-requested", ghsas: Object.keys(ghsaToVulnerableArtifactIds) };
234876
- }
234877
- const ghsaToVulnerableArtifactIdsToApplyBeforePurlTypeFilter = options.applyFixesTo.includes("all") ? ghsaToVulnerableArtifactIds : Object.fromEntries(Object.entries(ghsaToVulnerableArtifactIds).filter(([ghsa]) => options.applyFixesTo.includes(ghsa)));
234878
- const ghsaToVulnerableArtifactIdsToApply = {};
234879
- for (const [ghsa, artifactIds] of Object.entries(ghsaToVulnerableArtifactIdsToApplyBeforePurlTypeFilter)) {
234880
- const filteredIds = artifactIds.filter((id) => {
234881
- const artifact = socketFactArtifacts[id];
234882
- if (!options.purlTypes || options.purlTypes.includes(artifact.type)) {
234883
- return true;
235006
+ const { artifacts: artifacts2 } = await fetchArtifactsFromManifestsTarHash(options.manifestsTarHash);
235007
+ const ghsas = /* @__PURE__ */ new Set();
235008
+ for (const artifact of artifacts2) {
235009
+ for (const vuln of artifact.vulnerabilities ?? []) {
235010
+ ghsas.add(vuln.ghsaId);
234884
235011
  }
234885
- logger.warn(`Skipping upgrade for ${purlToString(artifact)} (${ghsa}) - type '${artifact.type}' not in specified types: ${options.purlTypes.join(", ")}`);
234886
- return false;
234887
- });
234888
- if (filteredIds.length > 0) {
234889
- ghsaToVulnerableArtifactIdsToApply[ghsa] = filteredIds;
234890
235012
  }
235013
+ if (ghsas.size === 0) {
235014
+ logger.info("Found no vulnerabilities in the project");
235015
+ return { type: "no-vulnerabilities-found" };
235016
+ }
235017
+ logger.info("Vulnerabilities found:", [...ghsas].join(", "));
235018
+ logger.info("Consider running the tool again, requesting a fix for one of the detected vulnerabilities");
235019
+ return { type: "no-ghsas-fix-requested", ghsas: [...ghsas] };
235020
+ }
235021
+ let apiResponse;
235022
+ const needsAllDetectedGhsas = !options.applyFixesTo.includes("all");
235023
+ try {
235024
+ apiResponse = await fetchFixesFromAPI({
235025
+ tarHash: options.manifestsTarHash,
235026
+ vulnerabilityIds: options.applyFixesTo,
235027
+ allowMajorUpdates: !options.disableMajorUpdates,
235028
+ minimumReleaseAge: options.minimumReleaseAge,
235029
+ includeAllDetectedGhsas: needsAllDetectedGhsas || void 0,
235030
+ autofixRunId
235031
+ });
235032
+ } catch (error) {
235033
+ logger.debug(`Error stack: ${error.stack}`);
235034
+ throw new Error(`Unable to compute fixes for the requested vulnerabilities: ${prettyApplyFixesTo(options.applyFixesTo)}`, { cause: error });
234891
235035
  }
234892
- if (Object.keys(ghsaToVulnerableArtifactIdsToApply).length === 0) {
235036
+ if (Object.keys(apiResponse.fixDetails).length === 0) {
235037
+ if (options.applyFixesTo.includes("all")) {
235038
+ logger.info("Found no vulnerabilities in the project");
235039
+ return { type: "no-vulnerabilities-found" };
235040
+ }
234893
235041
  logger.info("There is no overlap between the requested fixes and the detected vulnerabilities");
234894
235042
  logger.info("Consider running the tool again, requesting a fix for one of the detected vulnerabilities");
234895
- logger.info("Detected vulnerabilities:", Object.keys(ghsaToVulnerableArtifactIds).join(", "));
235043
+ if (apiResponse.allDetectedGhsas?.length) {
235044
+ logger.info("Detected vulnerabilities:", apiResponse.allDetectedGhsas.join(", "));
235045
+ }
234896
235046
  return { type: "selected-vulnerabilities-do-not-affect-the-current-project" };
234897
235047
  }
234898
- const computedFix = await useSocketComputeFixEndpoint(autofixRunId, artifacts, ghsaToVulnerableArtifactIdsToApply, {
234899
- noMajorUpdates: options.disableMajorUpdates,
234900
- minimumReleaseAgeInMinutes: options.minimumReleaseAgeInMinutes
234901
- });
234902
- if (computedFix.type !== "success") {
234903
- throw new Error(`Unable to compute fixes for the requested vulnerabilities: ${prettyApplyFixesTo(options.applyFixesTo)}`);
234904
- }
234905
- let hasLoggedFailureHeader = false;
234906
- const ghsasWithFailedArtifacts = Object.entries(computedFix.ghsaToResult).filter(([ghsa, result]) => {
234907
- if (!result.failedArtifacts?.length)
234908
- return false;
234909
- if (!hasLoggedFailureHeader) {
234910
- logger.info("Unable to compute fixes for some vulnerabilities:");
234911
- hasLoggedFailureHeader = true;
234912
- }
234913
- logger.info(`- ${ghsa}:`);
234914
- for (const id of result.failedArtifacts) {
234915
- for (const { chain: chain2, reason } of result.failedArtifactDetails?.[id] ?? [{}]) {
234916
- const chainWithoutLast = chain2?.slice(0, -1);
234917
- const via = chainWithoutLast?.length ? ` (via ${chainWithoutLast.map((i7) => purlToString(artifacts[i7])).join(" -> ")})` : "";
234918
- logger.info(` \u2022 ${purlToString(artifacts[id])}${via}`);
234919
- logger.info(` \u26A0 ${reason ?? "Unknown error"}`);
234920
- }
235048
+ const filteredFixDetails = filterFixDetails(apiResponse.fixDetails, options.purlTypes, options.packageManagers);
235049
+ const hadFixesBeforeFilter = Object.values(apiResponse.fixDetails).some(hasFixData);
235050
+ const hasFixesAfterFilter = Object.values(filteredFixDetails).some(hasFixData);
235051
+ const hasAnyFilter = options.purlTypes != null || options.packageManagers != null;
235052
+ if (hasAnyFilter && hadFixesBeforeFilter && !hasFixesAfterFilter) {
235053
+ logger.info("There is no overlap between the requested fixes and the detected vulnerabilities");
235054
+ logger.info("Consider running the tool again, requesting a fix for one of the detected vulnerabilities");
235055
+ const detectedList = apiResponse.allDetectedGhsas ?? Object.keys(apiResponse.fixDetails);
235056
+ if (detectedList.length) {
235057
+ logger.info("Detected vulnerabilities:", detectedList.join(", "));
234921
235058
  }
234922
- return true;
234923
- });
234924
- const fixesFound = Object.entries(computedFix.ghsaToResult).filter(([_, result]) => result.fixes && result.fixes.length > 0);
235059
+ return { type: "selected-vulnerabilities-do-not-affect-the-current-project" };
235060
+ }
235061
+ logUnfixableEntries(filteredFixDetails);
235062
+ const ghsasWithFailures = Object.entries(filteredFixDetails).filter(([, detail]) => hasFailures(detail)).map(([ghsa]) => ghsa);
234925
235063
  if (options.showAffectedDirectDependencies) {
234926
- return computeDirectDependencyUpgrades(artifacts, fixesFound);
235064
+ return computeDirectDependencyUpgrades(filteredFixDetails);
234927
235065
  }
234928
- const simplePurlToIndices = /* @__PURE__ */ new Map();
234929
- socketFactArtifacts.forEach((a4, idx) => {
234930
- const simplePurlStr = simplePurl(a4.type, a4.namespace ?? null, a4.name ?? null, a4.version ?? null);
234931
- if (!simplePurlToIndices.has(simplePurlStr)) {
234932
- simplePurlToIndices.set(simplePurlStr, []);
234933
- }
234934
- simplePurlToIndices.get(simplePurlStr).push(idx);
234935
- });
234936
- const upgrades = /* @__PURE__ */ new Map();
234937
- for (const [, result] of fixesFound) {
234938
- for (const fix of result.fixes) {
234939
- const purl = import_packageurl_js.PackageURL.fromString(fix.purl);
234940
- const simplePurlStr = simplePurl(purl.type, purl.namespace ?? null, purl.name, purl.version ?? null);
234941
- const indices = simplePurlToIndices.get(simplePurlStr);
234942
- if (!indices)
234943
- throw Error("Could not find artifacts for purl");
234944
- for (const idx of indices) {
234945
- const existingFixedVersion = upgrades.get(idx);
234946
- const ecosystem = getAdvisoryEcosystemFromPurlType(artifacts[idx].type);
234947
- if (!ecosystem) {
234948
- logger.warn(`Skipping upgrade for unsupported ecosystem: ${artifacts[idx].type}`);
234949
- continue;
234950
- }
234951
- if (!existingFixedVersion || versionSatisfiesRelation(ecosystem, existingFixedVersion, "<", fix.fixedVersion)) {
234952
- upgrades.set(idx, fix.fixedVersion);
234953
- }
234954
- }
235066
+ const fixesToApply = [];
235067
+ const ghsasWithFixes = [];
235068
+ for (const [ghsa, detail] of Object.entries(filteredFixDetails)) {
235069
+ if (hasFixData(detail)) {
235070
+ fixesToApply.push(...detail.value.fixDetails.fixes);
235071
+ ghsasWithFixes.push(ghsa);
234955
235072
  }
234956
235073
  }
234957
235074
  if (options.dryRun) {
234958
235075
  logger.info("Computed fixes:");
234959
- for (const [ghsa, result] of fixesFound) {
234960
- logger.info(` - ${ghsa}:`);
234961
- for (const fix of result.fixes) {
234962
- logger.info(` - ${fix.purl} -> ${fix.fixedVersion}`);
235076
+ const fixes = {};
235077
+ for (const [ghsa, detail] of Object.entries(filteredFixDetails)) {
235078
+ if (hasFixData(detail)) {
235079
+ logger.info(` - ${ghsa}:`);
235080
+ fixes[ghsa] = detail.value.fixDetails.fixes.map((fix) => {
235081
+ logger.info(` - ${fix.purl} -> ${fix.fixedVersion}`);
235082
+ return { purl: fix.purl, fixedVersion: fix.fixedVersion };
235083
+ });
234963
235084
  }
234964
235085
  }
234965
235086
  return {
234966
235087
  type: "dry-run-result",
234967
- fixes: Object.fromEntries(fixesFound.map(([ghsa, result]) => [ghsa, result.fixes])),
234968
- ...ghsasWithFailedArtifacts.length > 0 && { failedToFix: ghsasWithFailedArtifacts.map(([ghsa]) => ghsa) }
235088
+ fixes,
235089
+ ...ghsasWithFailures.length > 0 && { failedToFix: ghsasWithFailures }
234969
235090
  };
234970
235091
  }
235092
+ const { artifacts, upgrades } = buildArtifactsAndUpgrades(fixesToApply);
234971
235093
  if (upgrades.size === 0) {
234972
235094
  if (autofixRunId) {
234973
235095
  await getSocketAPI().finalizeAutofixRun(autofixRunId, "fixed-none", void 0, await logger.getLogContent(logFile));
@@ -234975,7 +235097,7 @@ async function computeFixesAndUpgradePurls(path9, options, logFile) {
234975
235097
  throw new Error(`Unable to compute fixes for any of the requested vulnerabilities: ${prettyApplyFixesTo(options.applyFixesTo)}`);
234976
235098
  }
234977
235099
  try {
234978
- const applyFixesStatus = await upgradePurl(path9, upgrades, socketFactArtifacts, {
235100
+ const applyFixesStatus = await upgradePurl(path9, upgrades, artifacts, {
234979
235101
  debug: options.debug,
234980
235102
  silent: options.silent,
234981
235103
  runWithoutDocker: options.runWithoutDocker,
@@ -234987,13 +235109,16 @@ async function computeFixesAndUpgradePurls(path9, options, logFile) {
234987
235109
  disableExternalToolChecks: options.disableExternalToolChecks
234988
235110
  }, autofixRunId) ?? "fixed-all";
234989
235111
  if (autofixRunId) {
234990
- const allGhsasFailed = fixesFound.length === 0;
234991
- await getSocketAPI().finalizeAutofixRun(autofixRunId, ghsasWithFailedArtifacts.length === 0 && applyFixesStatus === "fixed-all" ? "fixed-all" : allGhsasFailed || applyFixesStatus === "fixed-none" ? "fixed-none" : "fixed-some", void 0, await logger.getLogContent(logFile));
235112
+ const allGhsasFailed = ghsasWithFixes.length === 0;
235113
+ await getSocketAPI().finalizeAutofixRun(autofixRunId, ghsasWithFailures.length === 0 && applyFixesStatus === "fixed-all" ? "fixed-all" : allGhsasFailed || applyFixesStatus === "fixed-none" ? "fixed-none" : "fixed-some", void 0, await logger.getLogContent(logFile));
234992
235114
  }
234993
- return {
234994
- type: "applied-fixes",
234995
- fixes: Object.fromEntries(fixesFound.map(([ghsa, result]) => [ghsa, result.fixes]))
234996
- };
235115
+ const fixes = {};
235116
+ for (const [ghsa, detail] of Object.entries(filteredFixDetails)) {
235117
+ if (hasFixData(detail)) {
235118
+ fixes[ghsa] = detail.value.fixDetails.fixes.map((f5) => ({ purl: f5.purl, fixedVersion: f5.fixedVersion }));
235119
+ }
235120
+ }
235121
+ return { type: "applied-fixes", fixes };
234997
235122
  } catch (error) {
234998
235123
  logger.debug(`Error stack: ${error.stack}`);
234999
235124
  if (autofixRunId) {
@@ -235002,51 +235127,158 @@ async function computeFixesAndUpgradePurls(path9, options, logFile) {
235002
235127
  throw error;
235003
235128
  }
235004
235129
  }
235005
- async function computeInputForComputingFixes(options) {
235006
- if (!options.manifestsTarHash)
235007
- throw new Error("Manifests tar hash is required for computing fixes");
235008
- const { artifacts } = await fetchArtifactsFromManifestsTarHash(options.manifestsTarHash);
235009
- const ghsaToVulnerableArtifactIds = {};
235010
- for (const [index2, artifact] of artifacts.entries()) {
235011
- if (!artifact.vulnerabilities)
235012
- continue;
235013
- for (const vulnerability of artifact.vulnerabilities) {
235014
- if (!(ghsaToVulnerableArtifactIds[vulnerability.ghsaId] ??= []).includes(index2)) {
235015
- ghsaToVulnerableArtifactIds[vulnerability.ghsaId].push(index2);
235130
+ function hasFixData(detail) {
235131
+ return (detail.type === "fixFound" || detail.type === "partialFixFound") && (detail.value.fixDetails?.fixes.length ?? 0) > 0;
235132
+ }
235133
+ function filterFixDetails(fixDetails, purlTypes, packageManagers) {
235134
+ if (!purlTypes && !packageManagers)
235135
+ return fixDetails;
235136
+ const allowedTypes = purlTypes ? new Set(purlTypes) : void 0;
235137
+ const tryParse = (purl) => {
235138
+ try {
235139
+ return import_packageurl_js.PackageURL.fromString(purl);
235140
+ } catch (err) {
235141
+ logger.warn(`Skipping purl that failed to parse: ${purl} (${err?.message ?? "unknown error"})`);
235142
+ return void 0;
235143
+ }
235144
+ };
235145
+ const matches = (purl, manifestFiles, ghsa) => {
235146
+ const parsed = tryParse(purl);
235147
+ if (parsed === void 0)
235148
+ return true;
235149
+ if (allowedTypes) {
235150
+ const purlType = toPurlType(parsed.type);
235151
+ if (purlType === void 0 || !allowedTypes.has(purlType)) {
235152
+ logger.warn(`Skipping upgrade for ${purl} (${ghsa}) - type '${parsed.type}' not in specified types: ${purlTypes.join(", ")}`);
235153
+ return false;
235154
+ }
235155
+ }
235156
+ if (packageManagers) {
235157
+ const pms = getPackageManagersFromManifestFiles(manifestFiles, parsed.type);
235158
+ if (pms.size === 0) {
235159
+ logger.warn(`Could not determine package manager for ${purl} (${ghsa}) from manifest files [${manifestFiles.join(", ") || "none"}] \u2014 including in --package-managers results`);
235160
+ return true;
235016
235161
  }
235162
+ if (!packageManagers.some((pm) => pms.has(pm))) {
235163
+ logger.warn(`Skipping upgrade for ${purl} (${ghsa}) - package manager(s) [${[...pms].join(", ")}] not in specified package managers: ${packageManagers.join(", ")}`);
235164
+ return false;
235165
+ }
235166
+ }
235167
+ return true;
235168
+ };
235169
+ const filtered = {};
235170
+ for (const [ghsa, detail] of Object.entries(fixDetails)) {
235171
+ if (detail.type === "fixFound" || detail.type === "partialFixFound") {
235172
+ const filteredFixes = (detail.value.fixDetails?.fixes ?? []).filter((fix) => matches(fix.purl, fix.manifestFiles, ghsa));
235173
+ const filteredUnfixable = detail.type === "partialFixFound" ? (detail.value.fixDetails?.unfixablePurls ?? []).filter((u8) => matches(u8.purl, u8.manifestFiles, ghsa)) : void 0;
235174
+ filtered[ghsa] = {
235175
+ ...detail,
235176
+ value: {
235177
+ ...detail.value,
235178
+ fixDetails: {
235179
+ ...detail.value.fixDetails,
235180
+ fixes: filteredFixes,
235181
+ ...filteredUnfixable !== void 0 && { unfixablePurls: filteredUnfixable }
235182
+ }
235183
+ }
235184
+ };
235185
+ } else if (detail.type === "fixNotApplicable" || detail.type === "noFixAvailable") {
235186
+ const filteredVuln = (detail.value.vulnerableArtifacts ?? []).filter((v) => matches(v.purl, v.manifestFiles, ghsa));
235187
+ filtered[ghsa] = {
235188
+ ...detail,
235189
+ value: { ...detail.value, vulnerableArtifacts: filteredVuln }
235190
+ };
235191
+ } else {
235192
+ filtered[ghsa] = detail;
235017
235193
  }
235018
235194
  }
235019
- const sbomTaskArtifacts = artifacts.map((artifact) => ({
235020
- type: artifact.type,
235021
- name: artifact.name ?? "",
235022
- version: artifact.version ?? "",
235023
- namespace: artifact.namespace ?? void 0,
235024
- adj: artifact.dependencies?.map((dep) => artifacts.findIndex((a4) => a4.id === dep)) ?? [],
235025
- direct: artifact.direct,
235026
- topLevelAncestors: artifact.toplevelAncestors?.map((ancestor) => artifacts.findIndex((a4) => a4.id === ancestor)) ?? []
235027
- }));
235028
- return { artifacts: sbomTaskArtifacts, ghsaToVulnerableArtifactIds, socketFactArtifacts: artifacts };
235195
+ return filtered;
235196
+ }
235197
+ function hasFailures(detail) {
235198
+ switch (detail.type) {
235199
+ case "fixFound":
235200
+ return false;
235201
+ case "partialFixFound":
235202
+ return (detail.value.fixDetails?.unfixablePurls?.length ?? 0) > 0;
235203
+ case "fixNotApplicable":
235204
+ case "noFixAvailable":
235205
+ return (detail.value.vulnerableArtifacts?.length ?? 0) > 0;
235206
+ case "errorComputingFix":
235207
+ return true;
235208
+ }
235209
+ }
235210
+ function logUnfixableEntries(fixDetails) {
235211
+ let hasLoggedHeader = false;
235212
+ const logHeader = () => {
235213
+ if (hasLoggedHeader)
235214
+ return;
235215
+ logger.info("Unable to compute fixes for some vulnerabilities:");
235216
+ hasLoggedHeader = true;
235217
+ };
235218
+ for (const [ghsa, detail] of Object.entries(fixDetails)) {
235219
+ const entries = unfixableEntriesForDetail(detail, ghsa);
235220
+ if (entries.length === 0)
235221
+ continue;
235222
+ logHeader();
235223
+ logger.info(`- ${ghsa}:`);
235224
+ for (const { purl, chain: chain2, reason } of entries) {
235225
+ const via = chain2 && chain2.length > 0 ? ` (via ${chain2.join(" -> ")})` : "";
235226
+ logger.info(` \u2022 ${purl}${via}`);
235227
+ logger.info(` \u26A0 ${reason}`);
235228
+ }
235229
+ }
235230
+ }
235231
+ function unfixableEntriesForDetail(detail, ghsa) {
235232
+ switch (detail.type) {
235233
+ case "fixFound":
235234
+ return [];
235235
+ case "partialFixFound": {
235236
+ const unfixable = detail.value.fixDetails?.unfixablePurls ?? [];
235237
+ return unfixable.flatMap((u8) => {
235238
+ const reasons = u8.reasons?.length ? u8.reasons : u8.reason ? [u8.reason] : ["Unknown error"];
235239
+ const chain2 = u8.dependencyChain?.slice(0, -1);
235240
+ return reasons.map((reason) => ({ purl: u8.purl, chain: chain2, reason }));
235241
+ });
235242
+ }
235243
+ case "fixNotApplicable":
235244
+ return (detail.value.vulnerableArtifacts ?? []).map((a4) => ({
235245
+ purl: a4.purl,
235246
+ reason: "Unknown error"
235247
+ }));
235248
+ case "noFixAvailable":
235249
+ return (detail.value.vulnerableArtifacts ?? []).map((a4) => ({
235250
+ purl: a4.purl,
235251
+ reason: "Unknown error"
235252
+ }));
235253
+ case "errorComputingFix":
235254
+ return [
235255
+ {
235256
+ purl: ghsa,
235257
+ reason: detail.value.message ?? "Unknown error"
235258
+ }
235259
+ ];
235260
+ }
235029
235261
  }
235030
- async function computeDirectDependencyUpgrades(artifacts, fixesFound) {
235031
- const purlToArtifact = Object.fromEntries(artifacts.map((a4) => [simplePurl(a4.type, a4.namespace ?? null, a4.name ?? "", a4.version ?? null), a4]));
235262
+ function computeDirectDependencyUpgrades(fixDetails) {
235032
235263
  const packageFixes = {};
235033
- for (const [ghsa, result2] of fixesFound) {
235264
+ for (const [ghsa, detail] of Object.entries(fixDetails)) {
235265
+ if (!hasFixData(detail))
235266
+ continue;
235267
+ const fixes = detail.value.fixDetails.fixes;
235034
235268
  const directUpdates = {};
235035
- for (const directFix of result2.fixes.filter((fix) => purlToArtifact[fix.purl]?.direct)) {
235269
+ for (const directFix of fixes.filter((f5) => f5.direct)) {
235036
235270
  directUpdates[directFix.purl] = { fixedVersion: directFix.fixedVersion };
235037
235271
  }
235038
235272
  const directUpdatePurls = Object.keys(directUpdates);
235039
- for (const indirectFix of result2.fixes.filter((fix) => !purlToArtifact[fix.purl]?.direct)) {
235040
- const directDependencies = purlToArtifact[indirectFix.purl]?.topLevelAncestors;
235041
- for (const directDependency of directDependencies) {
235042
- const artifact = artifacts[directDependency];
235043
- const purl = simplePurl(artifact.type, artifact.namespace ?? null, artifact.name ?? "", artifact.version ?? null);
235044
- if (directUpdatePurls.includes(purl))
235273
+ for (const indirectFix of fixes.filter((f5) => !f5.direct)) {
235274
+ for (const ancestor of indirectFix.toplevelAncestors) {
235275
+ if (directUpdatePurls.includes(ancestor.purl))
235045
235276
  continue;
235046
- if (directUpdates[purl]) {
235047
- (directUpdates[purl].transitiveFixes ??= []).push(indirectFix);
235277
+ const transitiveFix = { purl: indirectFix.purl, fixedVersion: indirectFix.fixedVersion };
235278
+ if (directUpdates[ancestor.purl]) {
235279
+ (directUpdates[ancestor.purl].transitiveFixes ??= []).push(transitiveFix);
235048
235280
  } else {
235049
- directUpdates[purl] = { transitiveFixes: [indirectFix] };
235281
+ directUpdates[ancestor.purl] = { transitiveFixes: [transitiveFix] };
235050
235282
  }
235051
235283
  }
235052
235284
  }
@@ -235061,6 +235293,95 @@ async function computeDirectDependencyUpgrades(artifacts, fixesFound) {
235061
235293
  logger.info("Affected direct dependencies and suggested upgrades (the --show-affected-direct-dependencies option implicitly disables applying the upgrades):", JSON.stringify(result, null, 2));
235062
235294
  return result;
235063
235295
  }
235296
+ function buildArtifactsAndUpgrades(fixes) {
235297
+ const artifacts = [];
235298
+ const idToIndex = /* @__PURE__ */ new Map();
235299
+ const upgrades = /* @__PURE__ */ new Map();
235300
+ const warnedEmptyAncestors = /* @__PURE__ */ new Set();
235301
+ function tryParse(purl) {
235302
+ try {
235303
+ return import_packageurl_js.PackageURL.fromString(purl);
235304
+ } catch (err) {
235305
+ logger.warn(`Skipping purl that failed to parse: ${purl} (${err?.message ?? "unknown error"})`);
235306
+ return void 0;
235307
+ }
235308
+ }
235309
+ function upsertArtifact(next2, replaceKnownGood) {
235310
+ const existing = idToIndex.get(next2.id);
235311
+ if (existing === void 0) {
235312
+ artifacts.push(next2);
235313
+ idToIndex.set(next2.id, artifacts.length - 1);
235314
+ return artifacts.length - 1;
235315
+ }
235316
+ if (replaceKnownGood) {
235317
+ artifacts[existing] = { ...artifacts[existing], ...next2 };
235318
+ }
235319
+ return existing;
235320
+ }
235321
+ for (const fix of fixes) {
235322
+ const parsed = tryParse(fix.purl);
235323
+ if (!parsed?.name) {
235324
+ logger.warn(`Skipping fix with invalid purl (missing name): ${fix.purl}`);
235325
+ continue;
235326
+ }
235327
+ const purlType = toPurlType(parsed.type);
235328
+ if (!purlType) {
235329
+ logger.warn(`Skipping upgrade for unsupported ecosystem: ${parsed.type}`);
235330
+ continue;
235331
+ }
235332
+ const ecosystem = getAdvisoryEcosystemFromPurlType(purlType);
235333
+ if (!ecosystem) {
235334
+ logger.warn(`Skipping upgrade for unsupported ecosystem: ${parsed.type}`);
235335
+ continue;
235336
+ }
235337
+ const idx = upsertArtifact({
235338
+ id: fix.purl,
235339
+ type: purlType,
235340
+ namespace: parsed.namespace ?? void 0,
235341
+ name: parsed.name,
235342
+ version: parsed.version ?? void 0,
235343
+ direct: fix.direct,
235344
+ dev: fix.dev,
235345
+ dead: false,
235346
+ manifestFiles: fix.manifestFilesWithOffsets,
235347
+ toplevelAncestors: fix.toplevelAncestors.map((a4) => a4.purl)
235348
+ }, true);
235349
+ for (const ancestor of fix.toplevelAncestors) {
235350
+ const parsedAncestor = tryParse(ancestor.purl);
235351
+ if (!parsedAncestor)
235352
+ continue;
235353
+ const ancestorPurlType = toPurlType(parsedAncestor.type);
235354
+ if (!ancestorPurlType) {
235355
+ logger.warn(`Skipping ancestor for unsupported ecosystem: ${parsedAncestor.type}`);
235356
+ continue;
235357
+ }
235358
+ if (!fix.direct && ancestor.manifestFiles.length === 0) {
235359
+ if (!warnedEmptyAncestors.has(ancestor.purl)) {
235360
+ warnedEmptyAncestors.add(ancestor.purl);
235361
+ logger.warn(`No manifest file available for ancestor ${ancestor.purl} (needed to patch transitive fixes); skipping ancestor.`);
235362
+ }
235363
+ continue;
235364
+ }
235365
+ upsertArtifact({
235366
+ id: ancestor.purl,
235367
+ type: ancestorPurlType,
235368
+ namespace: parsedAncestor.namespace ?? void 0,
235369
+ name: parsedAncestor.name ?? "",
235370
+ version: parsedAncestor.version ?? void 0,
235371
+ direct: true,
235372
+ dev: false,
235373
+ dead: false,
235374
+ manifestFiles: ancestor.manifestFiles,
235375
+ toplevelAncestors: []
235376
+ }, false);
235377
+ }
235378
+ const existing = upgrades.get(idx);
235379
+ if (!existing || versionSatisfiesRelation(ecosystem, existing, "<", fix.fixedVersion)) {
235380
+ upgrades.set(idx, fix.fixedVersion);
235381
+ }
235382
+ }
235383
+ return { artifacts, upgrades };
235384
+ }
235064
235385
  function prettyApplyFixesTo(applyFixesToOption) {
235065
235386
  if (applyFixesToOption.includes("all")) {
235066
235387
  return "all vulnerabilities";
@@ -251507,7 +251828,7 @@ var FixesTask = class {
251507
251828
  );
251508
251829
  return {
251509
251830
  potentialVersionsForFix,
251510
- vulnerabilityFixes: vulnerabilityFixes.filter((f6) => f6.currentVersion !== f6.fixedVersion)
251831
+ vulnerabilityFixes: vulnerabilityFixes.filter((f5) => f5.currentVersion !== f5.fixedVersion)
251511
251832
  };
251512
251833
  }
251513
251834
  async chooseFixesFromPotentialVersionsForFix(vulnChainDetails, potentialVersionsForFix) {
@@ -252094,7 +252415,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
252094
252415
  }
252095
252416
 
252096
252417
  // dist/version.js
252097
- var version3 = "15.1.0";
252418
+ var version3 = "15.2.0";
252098
252419
 
252099
252420
  // dist/cli-core.js
252100
252421
  var { mapValues, omit, partition, pickBy: pickBy2 } = import_lodash15.default;
@@ -253025,33 +253346,33 @@ Subproject: ${subproject}`);
253025
253346
  }, Number(this.options.concurrency));
253026
253347
  if (allFailures.length > 0) {
253027
253348
  this.logAggregatedInstallErrors(allFailures);
253028
- const allFailed = allFailures.flatMap((f6) => f6.failedPackages);
253349
+ const allFailed = allFailures.flatMap((f5) => f5.failedPackages);
253029
253350
  throw new InstallError2(allFailed);
253030
253351
  }
253031
253352
  }
253032
253353
  logAggregatedInstallErrors(failures) {
253033
253354
  const displayLines = [""];
253034
- const goFailures = failures.filter((f6) => f6.ecosystem === "GO");
253035
- const installFailures = failures.filter((f6) => f6.ecosystem !== "GO");
253355
+ const goFailures = failures.filter((f5) => f5.ecosystem === "GO");
253356
+ const installFailures = failures.filter((f5) => f5.ecosystem !== "GO");
253036
253357
  if (installFailures.length > 0) {
253037
253358
  displayLines.push(kleur_default.red().bold("Installation Errors"));
253038
253359
  displayLines.push("The following packages failed to install during dependency pre-installation:");
253039
253360
  displayLines.push("");
253040
253361
  const byEcosystem = /* @__PURE__ */ new Map();
253041
- for (const f6 of installFailures) {
253042
- if (!byEcosystem.has(f6.ecosystem))
253043
- byEcosystem.set(f6.ecosystem, []);
253044
- byEcosystem.get(f6.ecosystem).push(f6);
253362
+ for (const f5 of installFailures) {
253363
+ if (!byEcosystem.has(f5.ecosystem))
253364
+ byEcosystem.set(f5.ecosystem, []);
253365
+ byEcosystem.get(f5.ecosystem).push(f5);
253045
253366
  }
253046
253367
  for (const [ecosystem, ecosystemFailures] of byEcosystem) {
253047
253368
  displayLines.push(kleur_default.bold(` ${ecosystem}:`));
253048
- for (const f6 of ecosystemFailures) {
253049
- const pkgList = f6.failedPackages.sort();
253369
+ for (const f5 of ecosystemFailures) {
253370
+ const pkgList = f5.failedPackages.sort();
253050
253371
  const pkgLines = pkgList.slice(0, 10).map((pkg) => ` - ${pkg}`);
253051
253372
  if (pkgList.length > 10) {
253052
253373
  pkgLines.push(` ... and ${pkgList.length - 10} more`);
253053
253374
  }
253054
- displayLines.push(` ${f6.workspace}:`);
253375
+ displayLines.push(` ${f5.workspace}:`);
253055
253376
  displayLines.push(...pkgLines);
253056
253377
  }
253057
253378
  displayLines.push("");
@@ -253062,8 +253383,8 @@ Subproject: ${subproject}`);
253062
253383
  displayLines.push(kleur_default.red().bold("Build Errors"));
253063
253384
  displayLines.push("The following Go projects failed to build:");
253064
253385
  displayLines.push("");
253065
- for (const f6 of goFailures) {
253066
- displayLines.push(` ${f6.workspace}`);
253386
+ for (const f5 of goFailures) {
253387
+ displayLines.push(` ${f5.workspace}`);
253067
253388
  }
253068
253389
  displayLines.push("");
253069
253390
  }
@@ -253477,6 +253798,16 @@ async function writeAnalysisDebugInfo(outputFilePath, ecosystemToWorkspaceToVuln
253477
253798
 
253478
253799
  // dist/index.js
253479
253800
  handleNexeBinaryMode();
253801
+ function normalizeAndValidatePackageManagers(values) {
253802
+ if (!values)
253803
+ return void 0;
253804
+ const normalized = values.map((v) => v.toUpperCase());
253805
+ const invalid = normalized.filter((v) => !isFilterablePackageManager(v));
253806
+ if (invalid.length > 0) {
253807
+ throw new Error(`Invalid package manager(s): ${invalid.join(", ")}. Supported values are: ${getFilterablePackageManagers().join(", ")}`);
253808
+ }
253809
+ return normalized;
253810
+ }
253480
253811
  var program2 = new Command();
253481
253812
  var run2 = new Command();
253482
253813
  run2.name("run").argument("<path>", "File system path to folder containing the project").option("-o, --output-dir <path>", "Write json report to <path>/coana-report.json").option("-d, --debug", "Enable debug logging", false).option("-s, --silent", "Silence all debug/warning output", false).option("--silent-spinner", "Silence spinner", "CI" in process.env || !process.stdin.isTTY).option("-p, --print-report", "Print the report to the console", false).option("--offline-database <path>", "Path to a coana-offline-db.json file for running the CLI without internet connectivity", void 0).option("-t, --timeout <timeout>", "Set API <timeout> in milliseconds to Coana backend.", "300000").option("-a, --analysis-timeout <timeout>", "Set <timeout> in seconds for each reachability analysis run").option("--memory-limit <memoryInMB>", "Set memory limit for analysis to <memoryInMB> megabytes of memory.", "8192").option("-c, --concurrency <concurrency>", "Set the maximum number of concurrent reachability analysis runs. It's recommended to choose a concurrency level that ensures that each analysis run has at least the --memory-limit amount of memory available. NPM reachability analysis does not support concurrent execution, so the concurrency level is ignored for NPM.", "1").option("--api-key <key>", "Set the Coana dashboard API key. By setting you also enable the dashboard integration.").addOption(new Option("--write-report-to-file", "Write the report dashboard-compatible report to dashboard-report.json. This report may help the Coana team debug issues with the report insertion mechanism.").default(false).hideHelp()).option("--project-name <repoName>", "Set the name of the repository. Used for dashboard integration.").option("--repo-url <repoUrl>", "Set the URL of the repository. Used for dashboard integration.").option("--include-dirs <relativeDirs...>", "globs for directories to include from the detection of subprojects (space-separated)(use relative paths from the project root). Notice, projects that are not included may still be scanned if they are referenced from included projects.").option("--exclude-dirs <relativeDirs...>", "globs for directories to exclude from the detection of subprojects (space-separated)(use relative paths from the project root). Notice, excluded projects may still be scanned if they are referenced from non-excluded projects.").option("--disable-analysis-splitting", "Limits Coana to at most 1 reachability analysis run per workspace").option("--print-analysis-log-file", "Store log output from the JavaScript/TypeScript reachability analysis in the file js-analysis.log file in the root of each workspace", false).option("--entry-points <entryPoints...>", "List of files to analyze for root workspace. The reachability analysis automatically analyzes all files used by the entry points. If not provided, all JavaScript and TypeScript files are considered entry points. For non-root workspaces, all JavaScript and TypeScript files are analyzed as well.").option("--include-projects-with-no-reachability-support", "Also runs Coana on projects where we support traditional SCA, but does not yet support reachability analysis.", false).option("--ecosystems <ecosystems...>", "List of ecosystems to analyze (space-separated). Currently NPM, PIP, MAVEN, NUGET and GO are supported. Default is all supported ecosystems.").addOption(new Option("--purl-types <purlTypes...>", "List of PURL types to analyze (space-separated). Currently npm, pypi, maven, nuget, golang and cargo are supported. Default is all supported purl types.").hideHelp()).option("--changed-files <files...>", "List of files that have changed. If provided, Coana only analyzes workspaces and modules that contain changed files.").option("--disable-report-submission", "Disable the submission of the report to the Coana dashboard. Used by the pipeline blocking feature.", false).option("--disable-analytics-sharing", "Disable analytics sharing.", false).option("--provider-project <path>", "File system path to folder containing the provider project (Only supported for Maven, Gradle, and SBT)").option("--provider-workspaces <dirs...>", "List of workspaces that build the provided runtime environment (Only supported for Maven, Gradle, and SBT)", (paths) => paths.split(" ")).option("--lightweight-reachability", "Runs Coana in lightweight mode. This increases analysis speed but also raises the risk of Coana misclassifying the reachability of certain complex vulnerabilities. Recommended only for use with Coana Guardrail mode.", false).addOption(new Option("--run-without-docker", "Run package managers and reachability analyzers without using docker").default(process.env.RUN_WITHOUT_DOCKER === "true").hideHelp()).addOption(new Option("--run-env <env>", "Specifies the environment in which the CLI is run. So far only MANAGED_SCAN and UNKNOWN are supported.").default("UNKNOWN").choices(["UNKNOWN", "MANAGED_SCAN"]).hideHelp()).addOption(new Option("--guardrail-mode", "Run Coana in guardrail mode. This mode is used to prevent new reachable vulnerabilities from being introduced into the codebase. Usually run as a CI check when pushing new commits to a pull request.")).option("--ignore-failing-workspaces", "Continue processing when a workspace fails instead of exiting. Failed workspaces will be logged at termination.", false).option("--reach-continue-on-install-errors", "Continue analysis when package installation fails, falling back to precomputed (Tier 2) reachability results. By default, the CLI halts on installation errors in socket mode.", process.env.COANA_REACH_CONTINUE_ON_INSTALL_ERRORS === "true" || process.env.COANA_CONTINUE_ON_INSTALL_ERRORS === "true" || void 0).option("--reach-continue-on-analysis-errors", "Continue analysis when errors occur (timeouts, OOM, parse errors, etc.), falling back to precomputed (Tier 2) reachability results. By default, the CLI halts on analysis errors in socket mode.", process.env.COANA_REACH_CONTINUE_ON_ANALYSIS_ERRORS === "true" || void 0).option("--reach-continue-on-no-source-files", "Continue analysis when a workspace contains no source files for its ecosystem. By default, the CLI halts in socket mode.", process.env.COANA_REACH_CONTINUE_ON_NO_SOURCE_FILES === "true" || void 0).option("--reach-continue-on-missing-lock-files", "Continue analysis when a Gradle or SBT project is missing its lock file (or Gradle version catalog / pre-generated SBOM). By default, the CLI halts in socket mode.", process.env.COANA_REACH_CONTINUE_ON_MISSING_LOCK_FILES === "true" || void 0).addOption(new Option("--socket-mode <output-file>", "Run Coana in socket mode and write report to <output-file>").hideHelp()).addOption(new Option("--manifests-tar-hash <hash>", "Hash of the tarball containing all manifest files already uploaded to Socket. If provided, Socket will be used for computing dependency trees.").hideHelp()).option("--skip-cache-usage", "Do not attempt to use cached analysis configuration from previous runs", false).addOption(new Option("--lazy-mode", "Enable lazy analysis mode for JavaScript/TypeScript. This can significantly speed up analysis by only analyzing code that is actually relevant for the vulnerabilities being analyzed.").default(false).implies({ legacyJsAnalysisEngine: true }).hideHelp()).addOption(new Option("--legacy-js-analysis-engine", "Use the legacy Jelly engine for JavaScript/TypeScript reachability analysis instead of SPAR-JS.").default(false).hideHelp()).addOption(new Option("--min-severity <severity>", "Set the minimum severity of vulnerabilities to analyze. Supported severities are info, low, moderate, high and critical.").choices(["info", "INFO", "low", "LOW", "moderate", "MODERATE", "high", "HIGH", "critical", "CRITICAL"])).option("--use-unreachable-from-precomputation", "Skip the reachability analysis for vulnerabilities that are already known to be unreachable from the precomputed reachability analysis (Tier 2).", false).addOption(new Option("--use-only-pregenerated-sboms", "Only include artifacts that have CDX or SPDX files in their manifest files.").default(false).hideHelp()).option("--disable-external-tool-checks", "Disable validation of external tools (npm, python, go, etc.) before running analysis.", false).version(version3).configureHelp({ sortOptions: true }).action(async (path9, options) => {
@@ -253496,7 +253827,7 @@ applyFixes.name("apply-fixes").argument("<path>", "File system path to the folde
253496
253827
  await applyFix(path9, fixIds, options);
253497
253828
  }).configureHelp({ sortOptions: true });
253498
253829
  var computeFixesAndUpgradePurlsCmd = new Command();
253499
- computeFixesAndUpgradePurlsCmd.name("compute-fixes-and-upgrade-purls").argument("<path>", "File system path to the folder containing the project").option("-a, --apply-fixes-to <ghsas...>", 'GHSA IDs to compute fixes for. Use "all" to compute fixes for all vulnerabilities.', []).option("--dry-run", "Show what changes would be made without actually making them", false).option("-i, --include <patterns...>", "Glob patterns to include workspaces").option("-e, --exclude <patterns...>", "Glob patterns to exclude workspaces").option("-d, --debug", "Enable debug logging", false).option("-s, --silent", "Silence all debug/warning output", false).option("--silent-spinner", "Silence spinner", "CI" in process.env || !process.stdin.isTTY).option("--range-style <style>", 'Range style to use for the output. Currently only "pin" is supported and it only works for npm.').option("--disable-major-updates", "Do not suggest major updates. If only major update are available, the fix will not be applied.", false).option("-o, --output-file <file>", "Writes output to a JSON file").option("--minimum-release-age <minimumReleaseAge>", "Do not allow upgrades to package versions that are newer than minimumReleaseAge. Format is 2m, 5h, 3d or 1w").option("--show-affected-direct-dependencies", "Show the affected direct dependencies for each vulnerability and what upgrades could fix them - does not apply the upgrades.", false).option("--purl-types <purlTypes...>", "List of PURL types to filter artifacts by (space-separated). Only vulnerabilities from artifacts matching these types will be included.").addOption(new Option("--run-without-docker", "Run package managers without using docker").default(process.env.RUN_WITHOUT_DOCKER === "true").hideHelp()).addOption(new Option("--manifests-tar-hash <hash>", "Hash of the tarball containing all manifest files already uploaded to Socket. If provided, Socket will be used for computing dependency trees.").hideHelp()).option("--disable-external-tool-checks", "Disable validation of external tools (npm, python, go, etc.) before running analysis.", false).version(version3).action(async (path9, options) => {
253830
+ computeFixesAndUpgradePurlsCmd.name("compute-fixes-and-upgrade-purls").argument("<path>", "File system path to the folder containing the project").option("-a, --apply-fixes-to <ghsas...>", 'GHSA IDs to compute fixes for. Use "all" to compute fixes for all vulnerabilities.', []).option("--dry-run", "Show what changes would be made without actually making them", false).option("-i, --include <patterns...>", "Glob patterns to include workspaces").option("-e, --exclude <patterns...>", "Glob patterns to exclude workspaces").option("-d, --debug", "Enable debug logging", false).option("-s, --silent", "Silence all debug/warning output", false).option("--silent-spinner", "Silence spinner", "CI" in process.env || !process.stdin.isTTY).option("--range-style <style>", 'Range style to use for the output. Currently only "pin" is supported and it only works for npm.').option("--disable-major-updates", "Do not suggest major updates. If only major update are available, the fix will not be applied.", false).option("-o, --output-file <file>", "Writes output to a JSON file").option("--minimum-release-age <minimumReleaseAge>", "Do not allow upgrades to package versions that are newer than minimumReleaseAge. Format is 2m, 5h, 3d or 1w").option("--show-affected-direct-dependencies", "Show the affected direct dependencies for each vulnerability and what upgrades could fix them - does not apply the upgrades.", false).option("--purl-types <purlTypes...>", "List of PURL types to filter artifacts by (space-separated). Only vulnerabilities from artifacts matching these types will be included.").option("--package-managers <packageManagers...>", `List of package managers to filter artifacts by (space-separated, e.g. NPM PNPM YARN POETRY GRADLE). Valid values: ${getFilterablePackageManagers().join(", ")}. When combined with --purl-types, both filters must match.`).addOption(new Option("--run-without-docker", "Run package managers without using docker").default(process.env.RUN_WITHOUT_DOCKER === "true").hideHelp()).addOption(new Option("--manifests-tar-hash <hash>", "Hash of the tarball containing all manifest files already uploaded to Socket. If provided, Socket will be used for computing dependency trees.").hideHelp()).option("--disable-external-tool-checks", "Disable validation of external tools (npm, python, go, etc.) before running analysis.", false).version(version3).action(async (path9, options) => {
253500
253831
  checkNotWindows();
253501
253832
  process.env.DOCKER_IMAGE_TAG ??= version3;
253502
253833
  if (options.outputFile && !options.outputFile.endsWith(".json")) {
@@ -253509,10 +253840,14 @@ computeFixesAndUpgradePurlsCmd.name("compute-fixes-and-upgrade-purls").argument(
253509
253840
  throw new Error('Range style must be "pin"');
253510
253841
  }
253511
253842
  options.purlTypes = options.purlTypes?.map((t4) => t4.toLowerCase());
253843
+ options.packageManagers = normalizeAndValidatePackageManagers(options.packageManagers);
253512
253844
  const tmpDir = await mkdtemp2(join35(tmpdir5(), "compute-fixes-and-upgrade-purls-"));
253513
253845
  const logFile = join35(tmpDir, "compute-fixes-and-upgrade-purls.log");
253514
253846
  logger.initWinstonLogger(options.debug, logFile);
253515
253847
  try {
253848
+ if (options.minimumReleaseAge) {
253849
+ validateMinimumReleaseAge(options.minimumReleaseAge);
253850
+ }
253516
253851
  await initializeComputeFixesAndUpgradePurls(path9, options);
253517
253852
  if (!options.exclude) {
253518
253853
  const ignorePaths = await inferExcludeDirsFromConfigurationFiles(path9);
@@ -253526,11 +253861,7 @@ computeFixesAndUpgradePurlsCmd.name("compute-fixes-and-upgrade-purls").argument(
253526
253861
  });
253527
253862
  }
253528
253863
  }
253529
- const optionsToUse = {
253530
- ...y(options, ["minimumReleaseAge"]),
253531
- minimumReleaseAgeInMinutes: options.minimumReleaseAge ? parseMinimumReleaseAgeToMinutes(options.minimumReleaseAge) : void 0
253532
- };
253533
- const output = await computeFixesAndUpgradePurls(path9, optionsToUse, logFile);
253864
+ const output = await computeFixesAndUpgradePurls(path9, options, logFile);
253534
253865
  if (options.outputFile) {
253535
253866
  const outputFile = resolve44(options.outputFile);
253536
253867
  await mkdir7(dirname27(outputFile), { recursive: true });
@@ -253569,10 +253900,20 @@ compareReportsCommand.name("compare-reports").argument("<baselineReportPath>", "
253569
253900
  await compareReports(baselineReport, newReport, options);
253570
253901
  });
253571
253902
  var findVulnerabilities = new Command();
253572
- findVulnerabilities.name("find-vulnerabilities").requiredOption("--manifests-tar-hash <hash>", "Hash of the tarball containing all manifest files already uploaded to Socket.").option("--purl-types <purlTypes...>", "List of PURL types to filter artifacts by (space-separated). Only vulnerabilities from artifacts matching these types will be included.").action(async (options) => {
253903
+ findVulnerabilities.name("find-vulnerabilities").requiredOption("--manifests-tar-hash <hash>", "Hash of the tarball containing all manifest files already uploaded to Socket.").option("--purl-types <purlTypes...>", "List of PURL types to filter artifacts by (space-separated). Only vulnerabilities from artifacts matching these types will be included.").option("--package-managers <packageManagers...>", `List of package managers to filter artifacts by (space-separated, e.g. NPM PNPM YARN POETRY GRADLE). Valid values: ${getFilterablePackageManagers().join(", ")}. When combined with --purl-types, both filters must match.`).action(async (options) => {
253573
253904
  const purlTypes = options.purlTypes?.map((t4) => t4.toLowerCase());
253905
+ const packageManagers = normalizeAndValidatePackageManagers(options.packageManagers);
253574
253906
  const { artifacts } = await fetchArtifactsFromManifestsTarHash(options.manifestsTarHash);
253575
- const filteredArtifacts = purlTypes ? artifacts.filter((a4) => purlTypes.includes(a4.type)) : artifacts;
253907
+ const filteredArtifacts = artifacts.filter((a4) => {
253908
+ if (purlTypes && !purlTypes.includes(a4.type))
253909
+ return false;
253910
+ if (packageManagers) {
253911
+ const artifactPMs = getPackageManagersForArtifact(a4);
253912
+ if (artifactPMs.size > 0 && !packageManagers.some((pm) => artifactPMs.has(pm)))
253913
+ return false;
253914
+ }
253915
+ return true;
253916
+ });
253576
253917
  console.log(JSON.stringify(i(filteredArtifacts.flatMap((a4) => a4.vulnerabilities?.map((v) => v.ghsaId) ?? []))));
253577
253918
  });
253578
253919
  var generateAnalysisDebugInfo = new Command();
@@ -253632,21 +253973,9 @@ ${succeeded}/${total} workspaces were upgraded successfully.`));
253632
253973
  More details available in log file: ${logFile}`);
253633
253974
  process.exit(1);
253634
253975
  }
253635
- function parseMinimumReleaseAgeToMinutes(minimumReleaseAge) {
253636
- const match2 = minimumReleaseAge.match(/^(\d+)([mhdw])$/);
253637
- if (!match2)
253976
+ function validateMinimumReleaseAge(minimumReleaseAge) {
253977
+ if (!/^\d+[mhdw]$/.test(minimumReleaseAge)) {
253638
253978
  throw new Error("Invalid minimum release age. Format is 2m, 5h, 3d or 1w");
253639
- const value2 = parseInt(match2[1]);
253640
- const unit = match2[2];
253641
- switch (unit) {
253642
- case "m":
253643
- return value2;
253644
- case "h":
253645
- return value2 * 60;
253646
- case "d":
253647
- return value2 * 60 * 24;
253648
- case "w":
253649
- return value2 * 60 * 24 * 7;
253650
253979
  }
253651
253980
  }
253652
253981
  export {