@coana-tech/cli 14.12.14 → 14.12.16
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 +191 -176
- package/package.json +1 -1
- package/repos/coana-tech/alucard/alucard.jar +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
package/cli.mjs
CHANGED
|
@@ -4827,7 +4827,7 @@ var require_ms = __commonJS({
|
|
|
4827
4827
|
var h = m2 * 60;
|
|
4828
4828
|
var d3 = h * 24;
|
|
4829
4829
|
var w = d3 * 7;
|
|
4830
|
-
var
|
|
4830
|
+
var y9 = d3 * 365.25;
|
|
4831
4831
|
module2.exports = function(val2, options) {
|
|
4832
4832
|
options = options || {};
|
|
4833
4833
|
var type = typeof val2;
|
|
@@ -4859,7 +4859,7 @@ var require_ms = __commonJS({
|
|
|
4859
4859
|
case "yrs":
|
|
4860
4860
|
case "yr":
|
|
4861
4861
|
case "y":
|
|
4862
|
-
return n2 *
|
|
4862
|
+
return n2 * y9;
|
|
4863
4863
|
case "weeks":
|
|
4864
4864
|
case "week":
|
|
4865
4865
|
case "w":
|
|
@@ -10069,16 +10069,16 @@ var require_conversions = __commonJS({
|
|
|
10069
10069
|
var b = rgb[2] / 255;
|
|
10070
10070
|
var c3;
|
|
10071
10071
|
var m2;
|
|
10072
|
-
var
|
|
10072
|
+
var y9;
|
|
10073
10073
|
var k;
|
|
10074
10074
|
k = Math.min(1 - r2, 1 - g, 1 - b);
|
|
10075
10075
|
c3 = (1 - r2 - k) / (1 - k) || 0;
|
|
10076
10076
|
m2 = (1 - g - k) / (1 - k) || 0;
|
|
10077
|
-
|
|
10078
|
-
return [c3 * 100, m2 * 100,
|
|
10077
|
+
y9 = (1 - b - k) / (1 - k) || 0;
|
|
10078
|
+
return [c3 * 100, m2 * 100, y9 * 100, k * 100];
|
|
10079
10079
|
};
|
|
10080
|
-
function comparativeDistance(x2,
|
|
10081
|
-
return Math.pow(x2[0] -
|
|
10080
|
+
function comparativeDistance(x2, y9) {
|
|
10081
|
+
return Math.pow(x2[0] - y9[0], 2) + Math.pow(x2[1] - y9[1], 2) + Math.pow(x2[2] - y9[2], 2);
|
|
10082
10082
|
}
|
|
10083
10083
|
convert.rgb.keyword = function(rgb) {
|
|
10084
10084
|
var reversed = reverseKeywords[rgb];
|
|
@@ -10110,27 +10110,27 @@ var require_conversions = __commonJS({
|
|
|
10110
10110
|
g = g > 0.04045 ? Math.pow((g + 0.055) / 1.055, 2.4) : g / 12.92;
|
|
10111
10111
|
b = b > 0.04045 ? Math.pow((b + 0.055) / 1.055, 2.4) : b / 12.92;
|
|
10112
10112
|
var x2 = r2 * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
10113
|
-
var
|
|
10113
|
+
var y9 = r2 * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
10114
10114
|
var z = r2 * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
10115
|
-
return [x2 * 100,
|
|
10115
|
+
return [x2 * 100, y9 * 100, z * 100];
|
|
10116
10116
|
};
|
|
10117
10117
|
convert.rgb.lab = function(rgb) {
|
|
10118
10118
|
var xyz = convert.rgb.xyz(rgb);
|
|
10119
10119
|
var x2 = xyz[0];
|
|
10120
|
-
var
|
|
10120
|
+
var y9 = xyz[1];
|
|
10121
10121
|
var z = xyz[2];
|
|
10122
10122
|
var l5;
|
|
10123
10123
|
var a4;
|
|
10124
10124
|
var b;
|
|
10125
10125
|
x2 /= 95.047;
|
|
10126
|
-
|
|
10126
|
+
y9 /= 100;
|
|
10127
10127
|
z /= 108.883;
|
|
10128
10128
|
x2 = x2 > 8856e-6 ? Math.pow(x2, 1 / 3) : 7.787 * x2 + 16 / 116;
|
|
10129
|
-
|
|
10129
|
+
y9 = y9 > 8856e-6 ? Math.pow(y9, 1 / 3) : 7.787 * y9 + 16 / 116;
|
|
10130
10130
|
z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
|
|
10131
|
-
l5 = 116 *
|
|
10132
|
-
a4 = 500 * (x2 -
|
|
10133
|
-
b = 200 * (
|
|
10131
|
+
l5 = 116 * y9 - 16;
|
|
10132
|
+
a4 = 500 * (x2 - y9);
|
|
10133
|
+
b = 200 * (y9 - z);
|
|
10134
10134
|
return [l5, a4, b];
|
|
10135
10135
|
};
|
|
10136
10136
|
convert.hsl.rgb = function(hsl) {
|
|
@@ -10292,26 +10292,26 @@ var require_conversions = __commonJS({
|
|
|
10292
10292
|
convert.cmyk.rgb = function(cmyk) {
|
|
10293
10293
|
var c3 = cmyk[0] / 100;
|
|
10294
10294
|
var m2 = cmyk[1] / 100;
|
|
10295
|
-
var
|
|
10295
|
+
var y9 = cmyk[2] / 100;
|
|
10296
10296
|
var k = cmyk[3] / 100;
|
|
10297
10297
|
var r2;
|
|
10298
10298
|
var g;
|
|
10299
10299
|
var b;
|
|
10300
10300
|
r2 = 1 - Math.min(1, c3 * (1 - k) + k);
|
|
10301
10301
|
g = 1 - Math.min(1, m2 * (1 - k) + k);
|
|
10302
|
-
b = 1 - Math.min(1,
|
|
10302
|
+
b = 1 - Math.min(1, y9 * (1 - k) + k);
|
|
10303
10303
|
return [r2 * 255, g * 255, b * 255];
|
|
10304
10304
|
};
|
|
10305
10305
|
convert.xyz.rgb = function(xyz) {
|
|
10306
10306
|
var x2 = xyz[0] / 100;
|
|
10307
|
-
var
|
|
10307
|
+
var y9 = xyz[1] / 100;
|
|
10308
10308
|
var z = xyz[2] / 100;
|
|
10309
10309
|
var r2;
|
|
10310
10310
|
var g;
|
|
10311
10311
|
var b;
|
|
10312
|
-
r2 = x2 * 3.2406 +
|
|
10313
|
-
g = x2 * -0.9689 +
|
|
10314
|
-
b = x2 * 0.0557 +
|
|
10312
|
+
r2 = x2 * 3.2406 + y9 * -1.5372 + z * -0.4986;
|
|
10313
|
+
g = x2 * -0.9689 + y9 * 1.8758 + z * 0.0415;
|
|
10314
|
+
b = x2 * 0.0557 + y9 * -0.204 + z * 1.057;
|
|
10315
10315
|
r2 = r2 > 31308e-7 ? 1.055 * Math.pow(r2, 1 / 2.4) - 0.055 : r2 * 12.92;
|
|
10316
10316
|
g = g > 31308e-7 ? 1.055 * Math.pow(g, 1 / 2.4) - 0.055 : g * 12.92;
|
|
10317
10317
|
b = b > 31308e-7 ? 1.055 * Math.pow(b, 1 / 2.4) - 0.055 : b * 12.92;
|
|
@@ -10322,20 +10322,20 @@ var require_conversions = __commonJS({
|
|
|
10322
10322
|
};
|
|
10323
10323
|
convert.xyz.lab = function(xyz) {
|
|
10324
10324
|
var x2 = xyz[0];
|
|
10325
|
-
var
|
|
10325
|
+
var y9 = xyz[1];
|
|
10326
10326
|
var z = xyz[2];
|
|
10327
10327
|
var l5;
|
|
10328
10328
|
var a4;
|
|
10329
10329
|
var b;
|
|
10330
10330
|
x2 /= 95.047;
|
|
10331
|
-
|
|
10331
|
+
y9 /= 100;
|
|
10332
10332
|
z /= 108.883;
|
|
10333
10333
|
x2 = x2 > 8856e-6 ? Math.pow(x2, 1 / 3) : 7.787 * x2 + 16 / 116;
|
|
10334
|
-
|
|
10334
|
+
y9 = y9 > 8856e-6 ? Math.pow(y9, 1 / 3) : 7.787 * y9 + 16 / 116;
|
|
10335
10335
|
z = z > 8856e-6 ? Math.pow(z, 1 / 3) : 7.787 * z + 16 / 116;
|
|
10336
|
-
l5 = 116 *
|
|
10337
|
-
a4 = 500 * (x2 -
|
|
10338
|
-
b = 200 * (
|
|
10336
|
+
l5 = 116 * y9 - 16;
|
|
10337
|
+
a4 = 500 * (x2 - y9);
|
|
10338
|
+
b = 200 * (y9 - z);
|
|
10339
10339
|
return [l5, a4, b];
|
|
10340
10340
|
};
|
|
10341
10341
|
convert.lab.xyz = function(lab) {
|
|
@@ -10343,21 +10343,21 @@ var require_conversions = __commonJS({
|
|
|
10343
10343
|
var a4 = lab[1];
|
|
10344
10344
|
var b = lab[2];
|
|
10345
10345
|
var x2;
|
|
10346
|
-
var
|
|
10346
|
+
var y9;
|
|
10347
10347
|
var z;
|
|
10348
|
-
|
|
10349
|
-
x2 = a4 / 500 +
|
|
10350
|
-
z =
|
|
10351
|
-
var y22 = Math.pow(
|
|
10348
|
+
y9 = (l5 + 16) / 116;
|
|
10349
|
+
x2 = a4 / 500 + y9;
|
|
10350
|
+
z = y9 - b / 200;
|
|
10351
|
+
var y22 = Math.pow(y9, 3);
|
|
10352
10352
|
var x22 = Math.pow(x2, 3);
|
|
10353
10353
|
var z2 = Math.pow(z, 3);
|
|
10354
|
-
|
|
10354
|
+
y9 = y22 > 8856e-6 ? y22 : (y9 - 16 / 116) / 7.787;
|
|
10355
10355
|
x2 = x22 > 8856e-6 ? x22 : (x2 - 16 / 116) / 7.787;
|
|
10356
10356
|
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
10357
10357
|
x2 *= 95.047;
|
|
10358
|
-
|
|
10358
|
+
y9 *= 100;
|
|
10359
10359
|
z *= 108.883;
|
|
10360
|
-
return [x2,
|
|
10360
|
+
return [x2, y9, z];
|
|
10361
10361
|
};
|
|
10362
10362
|
convert.lab.lch = function(lab) {
|
|
10363
10363
|
var l5 = lab[0];
|
|
@@ -21380,11 +21380,11 @@ var require_conversions2 = __commonJS({
|
|
|
21380
21380
|
const k = Math.min(1 - r2, 1 - g, 1 - b);
|
|
21381
21381
|
const c3 = (1 - r2 - k) / (1 - k) || 0;
|
|
21382
21382
|
const m2 = (1 - g - k) / (1 - k) || 0;
|
|
21383
|
-
const
|
|
21384
|
-
return [c3 * 100, m2 * 100,
|
|
21383
|
+
const y9 = (1 - b - k) / (1 - k) || 0;
|
|
21384
|
+
return [c3 * 100, m2 * 100, y9 * 100, k * 100];
|
|
21385
21385
|
};
|
|
21386
|
-
function comparativeDistance(x2,
|
|
21387
|
-
return (x2[0] -
|
|
21386
|
+
function comparativeDistance(x2, y9) {
|
|
21387
|
+
return (x2[0] - y9[0]) ** 2 + (x2[1] - y9[1]) ** 2 + (x2[2] - y9[2]) ** 2;
|
|
21388
21388
|
}
|
|
21389
21389
|
convert.rgb.keyword = function(rgb) {
|
|
21390
21390
|
const reversed = reverseKeywords[rgb];
|
|
@@ -21414,24 +21414,24 @@ var require_conversions2 = __commonJS({
|
|
|
21414
21414
|
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
|
21415
21415
|
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
|
21416
21416
|
const x2 = r2 * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
21417
|
-
const
|
|
21417
|
+
const y9 = r2 * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
21418
21418
|
const z = r2 * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
21419
|
-
return [x2 * 100,
|
|
21419
|
+
return [x2 * 100, y9 * 100, z * 100];
|
|
21420
21420
|
};
|
|
21421
21421
|
convert.rgb.lab = function(rgb) {
|
|
21422
21422
|
const xyz = convert.rgb.xyz(rgb);
|
|
21423
21423
|
let x2 = xyz[0];
|
|
21424
|
-
let
|
|
21424
|
+
let y9 = xyz[1];
|
|
21425
21425
|
let z = xyz[2];
|
|
21426
21426
|
x2 /= 95.047;
|
|
21427
|
-
|
|
21427
|
+
y9 /= 100;
|
|
21428
21428
|
z /= 108.883;
|
|
21429
21429
|
x2 = x2 > 8856e-6 ? x2 ** (1 / 3) : 7.787 * x2 + 16 / 116;
|
|
21430
|
-
|
|
21430
|
+
y9 = y9 > 8856e-6 ? y9 ** (1 / 3) : 7.787 * y9 + 16 / 116;
|
|
21431
21431
|
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
21432
|
-
const l5 = 116 *
|
|
21433
|
-
const a4 = 500 * (x2 -
|
|
21434
|
-
const b = 200 * (
|
|
21432
|
+
const l5 = 116 * y9 - 16;
|
|
21433
|
+
const a4 = 500 * (x2 - y9);
|
|
21434
|
+
const b = 200 * (y9 - z);
|
|
21435
21435
|
return [l5, a4, b];
|
|
21436
21436
|
};
|
|
21437
21437
|
convert.hsl.rgb = function(hsl) {
|
|
@@ -21585,23 +21585,23 @@ var require_conversions2 = __commonJS({
|
|
|
21585
21585
|
convert.cmyk.rgb = function(cmyk) {
|
|
21586
21586
|
const c3 = cmyk[0] / 100;
|
|
21587
21587
|
const m2 = cmyk[1] / 100;
|
|
21588
|
-
const
|
|
21588
|
+
const y9 = cmyk[2] / 100;
|
|
21589
21589
|
const k = cmyk[3] / 100;
|
|
21590
21590
|
const r2 = 1 - Math.min(1, c3 * (1 - k) + k);
|
|
21591
21591
|
const g = 1 - Math.min(1, m2 * (1 - k) + k);
|
|
21592
|
-
const b = 1 - Math.min(1,
|
|
21592
|
+
const b = 1 - Math.min(1, y9 * (1 - k) + k);
|
|
21593
21593
|
return [r2 * 255, g * 255, b * 255];
|
|
21594
21594
|
};
|
|
21595
21595
|
convert.xyz.rgb = function(xyz) {
|
|
21596
21596
|
const x2 = xyz[0] / 100;
|
|
21597
|
-
const
|
|
21597
|
+
const y9 = xyz[1] / 100;
|
|
21598
21598
|
const z = xyz[2] / 100;
|
|
21599
21599
|
let r2;
|
|
21600
21600
|
let g;
|
|
21601
21601
|
let b;
|
|
21602
|
-
r2 = x2 * 3.2406 +
|
|
21603
|
-
g = x2 * -0.9689 +
|
|
21604
|
-
b = x2 * 0.0557 +
|
|
21602
|
+
r2 = x2 * 3.2406 + y9 * -1.5372 + z * -0.4986;
|
|
21603
|
+
g = x2 * -0.9689 + y9 * 1.8758 + z * 0.0415;
|
|
21604
|
+
b = x2 * 0.0557 + y9 * -0.204 + z * 1.057;
|
|
21605
21605
|
r2 = r2 > 31308e-7 ? 1.055 * r2 ** (1 / 2.4) - 0.055 : r2 * 12.92;
|
|
21606
21606
|
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
|
21607
21607
|
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
|
@@ -21612,17 +21612,17 @@ var require_conversions2 = __commonJS({
|
|
|
21612
21612
|
};
|
|
21613
21613
|
convert.xyz.lab = function(xyz) {
|
|
21614
21614
|
let x2 = xyz[0];
|
|
21615
|
-
let
|
|
21615
|
+
let y9 = xyz[1];
|
|
21616
21616
|
let z = xyz[2];
|
|
21617
21617
|
x2 /= 95.047;
|
|
21618
|
-
|
|
21618
|
+
y9 /= 100;
|
|
21619
21619
|
z /= 108.883;
|
|
21620
21620
|
x2 = x2 > 8856e-6 ? x2 ** (1 / 3) : 7.787 * x2 + 16 / 116;
|
|
21621
|
-
|
|
21621
|
+
y9 = y9 > 8856e-6 ? y9 ** (1 / 3) : 7.787 * y9 + 16 / 116;
|
|
21622
21622
|
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
21623
|
-
const l5 = 116 *
|
|
21624
|
-
const a4 = 500 * (x2 -
|
|
21625
|
-
const b = 200 * (
|
|
21623
|
+
const l5 = 116 * y9 - 16;
|
|
21624
|
+
const a4 = 500 * (x2 - y9);
|
|
21625
|
+
const b = 200 * (y9 - z);
|
|
21626
21626
|
return [l5, a4, b];
|
|
21627
21627
|
};
|
|
21628
21628
|
convert.lab.xyz = function(lab) {
|
|
@@ -21630,21 +21630,21 @@ var require_conversions2 = __commonJS({
|
|
|
21630
21630
|
const a4 = lab[1];
|
|
21631
21631
|
const b = lab[2];
|
|
21632
21632
|
let x2;
|
|
21633
|
-
let
|
|
21633
|
+
let y9;
|
|
21634
21634
|
let z;
|
|
21635
|
-
|
|
21636
|
-
x2 = a4 / 500 +
|
|
21637
|
-
z =
|
|
21638
|
-
const y22 =
|
|
21635
|
+
y9 = (l5 + 16) / 116;
|
|
21636
|
+
x2 = a4 / 500 + y9;
|
|
21637
|
+
z = y9 - b / 200;
|
|
21638
|
+
const y22 = y9 ** 3;
|
|
21639
21639
|
const x22 = x2 ** 3;
|
|
21640
21640
|
const z2 = z ** 3;
|
|
21641
|
-
|
|
21641
|
+
y9 = y22 > 8856e-6 ? y22 : (y9 - 16 / 116) / 7.787;
|
|
21642
21642
|
x2 = x22 > 8856e-6 ? x22 : (x2 - 16 / 116) / 7.787;
|
|
21643
21643
|
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
21644
21644
|
x2 *= 95.047;
|
|
21645
|
-
|
|
21645
|
+
y9 *= 100;
|
|
21646
21646
|
z *= 108.883;
|
|
21647
|
-
return [x2,
|
|
21647
|
+
return [x2, y9, z];
|
|
21648
21648
|
};
|
|
21649
21649
|
convert.lab.lch = function(lab) {
|
|
21650
21650
|
const l5 = lab[0];
|
|
@@ -26407,10 +26407,10 @@ var require_rules = __commonJS({
|
|
|
26407
26407
|
t: "fallback",
|
|
26408
26408
|
chunk: null
|
|
26409
26409
|
};
|
|
26410
|
-
function compareChunksByValue(x2,
|
|
26411
|
-
if (typeof x2.chunk === "string" && typeof
|
|
26410
|
+
function compareChunksByValue(x2, y9) {
|
|
26411
|
+
if (typeof x2.chunk === "string" && typeof y9.chunk === "string") {
|
|
26412
26412
|
const xChunk = x2.chunk;
|
|
26413
|
-
const yChunk =
|
|
26413
|
+
const yChunk = y9.chunk;
|
|
26414
26414
|
if (yChunk < xChunk) {
|
|
26415
26415
|
return 1;
|
|
26416
26416
|
} else if (xChunk < yChunk) {
|
|
@@ -26419,10 +26419,10 @@ var require_rules = __commonJS({
|
|
|
26419
26419
|
}
|
|
26420
26420
|
return 0;
|
|
26421
26421
|
}
|
|
26422
|
-
function compareChunksByInclusion(x2,
|
|
26423
|
-
if (typeof x2.chunk === "string" && typeof
|
|
26422
|
+
function compareChunksByInclusion(x2, y9) {
|
|
26423
|
+
if (typeof x2.chunk === "string" && typeof y9.chunk === "string") {
|
|
26424
26424
|
const xChunk = x2.chunk;
|
|
26425
|
-
const yChunk =
|
|
26425
|
+
const yChunk = y9.chunk;
|
|
26426
26426
|
if (yChunk.startsWith(xChunk)) {
|
|
26427
26427
|
return 1;
|
|
26428
26428
|
} else if (xChunk.startsWith(yChunk)) {
|
|
@@ -26451,8 +26451,8 @@ var require_rules = __commonJS({
|
|
|
26451
26451
|
otherRules.push(rule);
|
|
26452
26452
|
}
|
|
26453
26453
|
}
|
|
26454
|
-
chunkRules.sort((x2,
|
|
26455
|
-
chunkRules.sort((x2,
|
|
26454
|
+
chunkRules.sort((x2, y9) => compareChunksByValue(x2, y9));
|
|
26455
|
+
chunkRules.sort((x2, y9) => compareChunksByInclusion(x2, y9));
|
|
26456
26456
|
const res = [...numberRules, ...chunkRules, ...otherRules, ...fallbackRules];
|
|
26457
26457
|
return res;
|
|
26458
26458
|
}
|
|
@@ -27349,23 +27349,23 @@ var require_lib2 = __commonJS({
|
|
|
27349
27349
|
var getKey = (k) => typeof k === "function" ? k : (x2) => x2[k];
|
|
27350
27350
|
function compareByKey(a4, cmp = compare) {
|
|
27351
27351
|
const k = getKey(a4);
|
|
27352
|
-
return (x2,
|
|
27352
|
+
return (x2, y9) => cmp(k(x2), k(y9));
|
|
27353
27353
|
}
|
|
27354
27354
|
function compareByKeys2(a4, b, cmpA = compare, cmpB = compare) {
|
|
27355
27355
|
const ka = getKey(a4);
|
|
27356
27356
|
const kb = getKey(b);
|
|
27357
|
-
return (x2,
|
|
27358
|
-
let res = cmpA(ka(x2), ka(
|
|
27359
|
-
return res === 0 ? cmpB(kb(x2), kb(
|
|
27357
|
+
return (x2, y9) => {
|
|
27358
|
+
let res = cmpA(ka(x2), ka(y9));
|
|
27359
|
+
return res === 0 ? cmpB(kb(x2), kb(y9)) : res;
|
|
27360
27360
|
};
|
|
27361
27361
|
}
|
|
27362
27362
|
function compareByKeys3(a4, b, c3, cmpA = compare, cmpB = compare, cmpC = compare) {
|
|
27363
27363
|
const ka = getKey(a4);
|
|
27364
27364
|
const kb = getKey(b);
|
|
27365
27365
|
const kc = getKey(c3);
|
|
27366
|
-
return (x2,
|
|
27367
|
-
let res = cmpA(ka(x2), ka(
|
|
27368
|
-
return res === 0 ? (res = cmpB(kb(x2), kb(
|
|
27366
|
+
return (x2, y9) => {
|
|
27367
|
+
let res = cmpA(ka(x2), ka(y9));
|
|
27368
|
+
return res === 0 ? (res = cmpB(kb(x2), kb(y9))) === 0 ? cmpC(kc(x2), kc(y9)) : res : res;
|
|
27369
27369
|
};
|
|
27370
27370
|
}
|
|
27371
27371
|
function compareByKeys4(a4, b, c3, d3, cmpA = compare, cmpB = compare, cmpC = compare, cmpD = compare) {
|
|
@@ -27373,9 +27373,9 @@ var require_lib2 = __commonJS({
|
|
|
27373
27373
|
const kb = getKey(b);
|
|
27374
27374
|
const kc = getKey(c3);
|
|
27375
27375
|
const kd = getKey(d3);
|
|
27376
|
-
return (x2,
|
|
27377
|
-
let res = cmpA(ka(x2), ka(
|
|
27378
|
-
return res === 0 ? (res = cmpB(kb(x2), kb(
|
|
27376
|
+
return (x2, y9) => {
|
|
27377
|
+
let res = cmpA(ka(x2), ka(y9));
|
|
27378
|
+
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;
|
|
27379
27379
|
};
|
|
27380
27380
|
}
|
|
27381
27381
|
var compareNumAsc = (a4, b) => a4 - b;
|
|
@@ -27666,7 +27666,7 @@ var require_lib5 = __commonJS({
|
|
|
27666
27666
|
throw new OutOfBoundsError(index2);
|
|
27667
27667
|
};
|
|
27668
27668
|
var ensureIndex = (index2, min, max) => (index2 < min || index2 >= max) && outOfBounds(index2);
|
|
27669
|
-
var ensureIndex2 = (x2,
|
|
27669
|
+
var ensureIndex2 = (x2, y9, maxX, maxY) => (x2 < 0 || x2 >= maxX || y9 < 0 || y9 >= maxY) && outOfBounds([x2, y9]);
|
|
27670
27670
|
var UnsupportedOperationError = defError(() => "unsupported operation");
|
|
27671
27671
|
var unsupported = (msg) => {
|
|
27672
27672
|
throw new UnsupportedOperationError(msg);
|
|
@@ -28277,7 +28277,7 @@ var require_lib8 = __commonJS({
|
|
|
28277
28277
|
return lb;
|
|
28278
28278
|
}
|
|
28279
28279
|
let x2 = 0;
|
|
28280
|
-
let
|
|
28280
|
+
let y9;
|
|
28281
28281
|
let minDist;
|
|
28282
28282
|
let d0;
|
|
28283
28283
|
let d1;
|
|
@@ -28294,8 +28294,8 @@ var require_lib8 = __commonJS({
|
|
|
28294
28294
|
return d02 < d12 || d23 < d12 ? d02 > d23 ? d23 + 1 : d02 + 1 : equiv2(ay2, bx) ? d12 : d12 + 1;
|
|
28295
28295
|
};
|
|
28296
28296
|
const vector = [];
|
|
28297
|
-
for (
|
|
28298
|
-
vector.push(
|
|
28297
|
+
for (y9 = 0; y9 < la; y9++) {
|
|
28298
|
+
vector.push(y9 + 1, a4[offset + y9]);
|
|
28299
28299
|
}
|
|
28300
28300
|
const len = vector.length - 1;
|
|
28301
28301
|
const lb3 = lb - 3;
|
|
@@ -28306,15 +28306,15 @@ var require_lib8 = __commonJS({
|
|
|
28306
28306
|
bx3 = b[offset + (d3 = x2 + 3)];
|
|
28307
28307
|
dd = x2 += 4;
|
|
28308
28308
|
minDist = Infinity;
|
|
28309
|
-
for (
|
|
28310
|
-
dy = vector[
|
|
28311
|
-
ay = vector[
|
|
28309
|
+
for (y9 = 0; y9 < len; y9 += 2) {
|
|
28310
|
+
dy = vector[y9];
|
|
28311
|
+
ay = vector[y9 + 1];
|
|
28312
28312
|
d0 = _min(dy, d0, d1, bx0, ay);
|
|
28313
28313
|
d1 = _min(d0, d1, d22, bx1, ay);
|
|
28314
28314
|
d22 = _min(d1, d22, d3, bx2, ay);
|
|
28315
28315
|
dd = _min(d22, d3, dd, bx3, ay);
|
|
28316
28316
|
dd < minDist && (minDist = dd);
|
|
28317
|
-
vector[
|
|
28317
|
+
vector[y9] = dd;
|
|
28318
28318
|
d3 = d22;
|
|
28319
28319
|
d22 = d1;
|
|
28320
28320
|
d1 = d0;
|
|
@@ -28327,9 +28327,9 @@ var require_lib8 = __commonJS({
|
|
|
28327
28327
|
bx0 = b[offset + (d0 = x2)];
|
|
28328
28328
|
dd = ++x2;
|
|
28329
28329
|
minDist = Infinity;
|
|
28330
|
-
for (
|
|
28331
|
-
dy = vector[
|
|
28332
|
-
vector[
|
|
28330
|
+
for (y9 = 0; y9 < len; y9 += 2) {
|
|
28331
|
+
dy = vector[y9];
|
|
28332
|
+
vector[y9] = dd = _min(dy, d0, dd, bx0, vector[y9 + 1]);
|
|
28333
28333
|
dd < minDist && (minDist = dd);
|
|
28334
28334
|
d0 = dy;
|
|
28335
28335
|
}
|
|
@@ -28344,10 +28344,10 @@ var require_lib8 = __commonJS({
|
|
|
28344
28344
|
};
|
|
28345
28345
|
var first2 = (buf) => buf[0];
|
|
28346
28346
|
var peek = (buf) => buf[buf.length - 1];
|
|
28347
|
-
var swap = (arr, x2,
|
|
28347
|
+
var swap = (arr, x2, y9) => {
|
|
28348
28348
|
const t4 = arr[x2];
|
|
28349
|
-
arr[x2] = arr[
|
|
28350
|
-
arr[
|
|
28349
|
+
arr[x2] = arr[y9];
|
|
28350
|
+
arr[y9] = t4;
|
|
28351
28351
|
};
|
|
28352
28352
|
var multiSwap = (...xs) => {
|
|
28353
28353
|
const [b, c3, d3] = xs;
|
|
@@ -28356,28 +28356,28 @@ var require_lib8 = __commonJS({
|
|
|
28356
28356
|
case 0:
|
|
28357
28357
|
return swap;
|
|
28358
28358
|
case 1:
|
|
28359
|
-
return (a4, x2,
|
|
28360
|
-
swap(a4, x2,
|
|
28361
|
-
swap(b, x2,
|
|
28359
|
+
return (a4, x2, y9) => {
|
|
28360
|
+
swap(a4, x2, y9);
|
|
28361
|
+
swap(b, x2, y9);
|
|
28362
28362
|
};
|
|
28363
28363
|
case 2:
|
|
28364
|
-
return (a4, x2,
|
|
28365
|
-
swap(a4, x2,
|
|
28366
|
-
swap(b, x2,
|
|
28367
|
-
swap(c3, x2,
|
|
28364
|
+
return (a4, x2, y9) => {
|
|
28365
|
+
swap(a4, x2, y9);
|
|
28366
|
+
swap(b, x2, y9);
|
|
28367
|
+
swap(c3, x2, y9);
|
|
28368
28368
|
};
|
|
28369
28369
|
case 3:
|
|
28370
|
-
return (a4, x2,
|
|
28371
|
-
swap(a4, x2,
|
|
28372
|
-
swap(b, x2,
|
|
28373
|
-
swap(c3, x2,
|
|
28374
|
-
swap(d3, x2,
|
|
28370
|
+
return (a4, x2, y9) => {
|
|
28371
|
+
swap(a4, x2, y9);
|
|
28372
|
+
swap(b, x2, y9);
|
|
28373
|
+
swap(c3, x2, y9);
|
|
28374
|
+
swap(d3, x2, y9);
|
|
28375
28375
|
};
|
|
28376
28376
|
default:
|
|
28377
|
-
return (a4, x2,
|
|
28378
|
-
swap(a4, x2,
|
|
28377
|
+
return (a4, x2, y9) => {
|
|
28378
|
+
swap(a4, x2, y9);
|
|
28379
28379
|
for (let i6 = n2; --i6 >= 0; )
|
|
28380
|
-
swap(xs[i6], x2,
|
|
28380
|
+
swap(xs[i6], x2, y9);
|
|
28381
28381
|
};
|
|
28382
28382
|
}
|
|
28383
28383
|
};
|
|
@@ -32161,9 +32161,9 @@ var require_tokenizer = __commonJS({
|
|
|
32161
32161
|
function isNonAscii(cp3) {
|
|
32162
32162
|
return 128 <= cp3 && cp3 <= 55295 || 57344 <= cp3 && cp3 <= 1114111;
|
|
32163
32163
|
}
|
|
32164
|
-
function isValidDate(
|
|
32165
|
-
if (
|
|
32166
|
-
const maxDayOfMonth = m2 === 2 ?
|
|
32164
|
+
function isValidDate(y9, m2, d3) {
|
|
32165
|
+
if (y9 >= 0 && m2 <= 12 && m2 >= 1 && d3 >= 1) {
|
|
32166
|
+
const maxDayOfMonth = m2 === 2 ? y9 & 3 || !(y9 % 25) && y9 & 15 ? 28 : 29 : 30 + (m2 + (m2 >> 3) & 1);
|
|
32167
32167
|
return d3 <= maxDayOfMonth;
|
|
32168
32168
|
}
|
|
32169
32169
|
return false;
|
|
@@ -46881,7 +46881,7 @@ var require_ms3 = __commonJS({
|
|
|
46881
46881
|
var h = m2 * 60;
|
|
46882
46882
|
var d3 = h * 24;
|
|
46883
46883
|
var w = d3 * 7;
|
|
46884
|
-
var
|
|
46884
|
+
var y9 = d3 * 365.25;
|
|
46885
46885
|
module2.exports = function(val2, options) {
|
|
46886
46886
|
options = options || {};
|
|
46887
46887
|
var type = typeof val2;
|
|
@@ -46913,7 +46913,7 @@ var require_ms3 = __commonJS({
|
|
|
46913
46913
|
case "yrs":
|
|
46914
46914
|
case "yr":
|
|
46915
46915
|
case "y":
|
|
46916
|
-
return n2 *
|
|
46916
|
+
return n2 * y9;
|
|
46917
46917
|
case "weeks":
|
|
46918
46918
|
case "week":
|
|
46919
46919
|
case "w":
|
|
@@ -48620,11 +48620,11 @@ var require_brace_expansion = __commonJS({
|
|
|
48620
48620
|
function isPadded(el) {
|
|
48621
48621
|
return /^-?0\d/.test(el);
|
|
48622
48622
|
}
|
|
48623
|
-
function lte(i6,
|
|
48624
|
-
return i6 <=
|
|
48623
|
+
function lte(i6, y9) {
|
|
48624
|
+
return i6 <= y9;
|
|
48625
48625
|
}
|
|
48626
|
-
function gte2(i6,
|
|
48627
|
-
return i6 >=
|
|
48626
|
+
function gte2(i6, y9) {
|
|
48627
|
+
return i6 >= y9;
|
|
48628
48628
|
}
|
|
48629
48629
|
function expand2(str, isTop) {
|
|
48630
48630
|
var expansions = [];
|
|
@@ -48666,18 +48666,18 @@ var require_brace_expansion = __commonJS({
|
|
|
48666
48666
|
var N;
|
|
48667
48667
|
if (isSequence) {
|
|
48668
48668
|
var x2 = numeric(n2[0]);
|
|
48669
|
-
var
|
|
48669
|
+
var y9 = numeric(n2[1]);
|
|
48670
48670
|
var width = Math.max(n2[0].length, n2[1].length);
|
|
48671
48671
|
var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1;
|
|
48672
48672
|
var test2 = lte;
|
|
48673
|
-
var reverse =
|
|
48673
|
+
var reverse = y9 < x2;
|
|
48674
48674
|
if (reverse) {
|
|
48675
48675
|
incr *= -1;
|
|
48676
48676
|
test2 = gte2;
|
|
48677
48677
|
}
|
|
48678
48678
|
var pad = n2.some(isPadded);
|
|
48679
48679
|
N = [];
|
|
48680
|
-
for (var i6 = x2; test2(i6,
|
|
48680
|
+
for (var i6 = x2; test2(i6, y9); i6 += incr) {
|
|
48681
48681
|
var c3;
|
|
48682
48682
|
if (isAlphaSequence) {
|
|
48683
48683
|
c3 = String.fromCharCode(i6);
|
|
@@ -87012,8 +87012,8 @@ var require_lockfile = __commonJS({
|
|
|
87012
87012
|
}
|
|
87013
87013
|
};
|
|
87014
87014
|
module3.exports = function(it) {
|
|
87015
|
-
var O,
|
|
87016
|
-
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (
|
|
87015
|
+
var O, T4, B3;
|
|
87016
|
+
return it === void 0 ? "Undefined" : it === null ? "Null" : typeof (T4 = tryGet(O = Object(it), TAG)) == "string" ? T4 : ARG ? cof(O) : (B3 = cof(O)) == "Object" && typeof O.callee == "function" ? "Arguments" : B3;
|
|
87017
87017
|
};
|
|
87018
87018
|
},
|
|
87019
87019
|
/* 101 */
|
|
@@ -88263,11 +88263,11 @@ ${indent2}`);
|
|
|
88263
88263
|
function isPadded(el) {
|
|
88264
88264
|
return /^-?0\d/.test(el);
|
|
88265
88265
|
}
|
|
88266
|
-
function lte(i6,
|
|
88267
|
-
return i6 <=
|
|
88266
|
+
function lte(i6, y9) {
|
|
88267
|
+
return i6 <= y9;
|
|
88268
88268
|
}
|
|
88269
|
-
function gte2(i6,
|
|
88270
|
-
return i6 >=
|
|
88269
|
+
function gte2(i6, y9) {
|
|
88270
|
+
return i6 >= y9;
|
|
88271
88271
|
}
|
|
88272
88272
|
function expand2(str, isTop) {
|
|
88273
88273
|
var expansions = [];
|
|
@@ -88304,18 +88304,18 @@ ${indent2}`);
|
|
|
88304
88304
|
var N;
|
|
88305
88305
|
if (isSequence) {
|
|
88306
88306
|
var x2 = numeric(n2[0]);
|
|
88307
|
-
var
|
|
88307
|
+
var y9 = numeric(n2[1]);
|
|
88308
88308
|
var width = Math.max(n2[0].length, n2[1].length);
|
|
88309
88309
|
var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1;
|
|
88310
88310
|
var test2 = lte;
|
|
88311
|
-
var reverse =
|
|
88311
|
+
var reverse = y9 < x2;
|
|
88312
88312
|
if (reverse) {
|
|
88313
88313
|
incr *= -1;
|
|
88314
88314
|
test2 = gte2;
|
|
88315
88315
|
}
|
|
88316
88316
|
var pad = n2.some(isPadded);
|
|
88317
88317
|
N = [];
|
|
88318
|
-
for (var i6 = x2; test2(i6,
|
|
88318
|
+
for (var i6 = x2; test2(i6, y9); i6 += incr) {
|
|
88319
88319
|
var c3;
|
|
88320
88320
|
if (isAlphaSequence) {
|
|
88321
88321
|
c3 = String.fromCharCode(i6);
|
|
@@ -90217,7 +90217,7 @@ ${indent2}`);
|
|
|
90217
90217
|
var m2 = s4 * 60;
|
|
90218
90218
|
var h = m2 * 60;
|
|
90219
90219
|
var d3 = h * 24;
|
|
90220
|
-
var
|
|
90220
|
+
var y9 = d3 * 365.25;
|
|
90221
90221
|
module3.exports = function(val2, options) {
|
|
90222
90222
|
options = options || {};
|
|
90223
90223
|
var type = typeof val2;
|
|
@@ -90249,7 +90249,7 @@ ${indent2}`);
|
|
|
90249
90249
|
case "yrs":
|
|
90250
90250
|
case "yr":
|
|
90251
90251
|
case "y":
|
|
90252
|
-
return n2 *
|
|
90252
|
+
return n2 * y9;
|
|
90253
90253
|
case "days":
|
|
90254
90254
|
case "day":
|
|
90255
90255
|
case "d":
|
|
@@ -98310,12 +98310,12 @@ var require_webidl = __commonJS({
|
|
|
98310
98310
|
}
|
|
98311
98311
|
return V;
|
|
98312
98312
|
};
|
|
98313
|
-
webidl.converters.TypedArray = function(V,
|
|
98314
|
-
if (webidl.util.Type(V) !== "Object" || !types2.isTypedArray(V) || V.constructor.name !==
|
|
98313
|
+
webidl.converters.TypedArray = function(V, T4, opts = {}) {
|
|
98314
|
+
if (webidl.util.Type(V) !== "Object" || !types2.isTypedArray(V) || V.constructor.name !== T4.name) {
|
|
98315
98315
|
throw webidl.errors.conversionFailed({
|
|
98316
|
-
prefix: `${
|
|
98316
|
+
prefix: `${T4.name}`,
|
|
98317
98317
|
argument: `${V}`,
|
|
98318
|
-
types: [
|
|
98318
|
+
types: [T4.name]
|
|
98319
98319
|
});
|
|
98320
98320
|
}
|
|
98321
98321
|
if (opts.allowShared === false && types2.isSharedArrayBuffer(V.buffer)) {
|
|
@@ -112884,11 +112884,11 @@ var require_brace_expansion2 = __commonJS({
|
|
|
112884
112884
|
function isPadded(el) {
|
|
112885
112885
|
return /^-?0\d/.test(el);
|
|
112886
112886
|
}
|
|
112887
|
-
function lte(i6,
|
|
112888
|
-
return i6 <=
|
|
112887
|
+
function lte(i6, y9) {
|
|
112888
|
+
return i6 <= y9;
|
|
112889
112889
|
}
|
|
112890
|
-
function gte2(i6,
|
|
112891
|
-
return i6 >=
|
|
112890
|
+
function gte2(i6, y9) {
|
|
112891
|
+
return i6 >= y9;
|
|
112892
112892
|
}
|
|
112893
112893
|
function expand2(str, isTop) {
|
|
112894
112894
|
var expansions = [];
|
|
@@ -112925,18 +112925,18 @@ var require_brace_expansion2 = __commonJS({
|
|
|
112925
112925
|
var N;
|
|
112926
112926
|
if (isSequence) {
|
|
112927
112927
|
var x2 = numeric(n2[0]);
|
|
112928
|
-
var
|
|
112928
|
+
var y9 = numeric(n2[1]);
|
|
112929
112929
|
var width = Math.max(n2[0].length, n2[1].length);
|
|
112930
112930
|
var incr = n2.length == 3 ? Math.abs(numeric(n2[2])) : 1;
|
|
112931
112931
|
var test2 = lte;
|
|
112932
|
-
var reverse =
|
|
112932
|
+
var reverse = y9 < x2;
|
|
112933
112933
|
if (reverse) {
|
|
112934
112934
|
incr *= -1;
|
|
112935
112935
|
test2 = gte2;
|
|
112936
112936
|
}
|
|
112937
112937
|
var pad = n2.some(isPadded);
|
|
112938
112938
|
N = [];
|
|
112939
|
-
for (var i6 = x2; test2(i6,
|
|
112939
|
+
for (var i6 = x2; test2(i6, y9); i6 += incr) {
|
|
112940
112940
|
var c3;
|
|
112941
112941
|
if (isAlphaSequence) {
|
|
112942
112942
|
c3 = String.fromCharCode(i6);
|
|
@@ -120938,12 +120938,12 @@ var require_webidl2 = __commonJS({
|
|
|
120938
120938
|
}
|
|
120939
120939
|
return V;
|
|
120940
120940
|
};
|
|
120941
|
-
webidl.converters.TypedArray = function(V,
|
|
120942
|
-
if (webidl.util.Type(V) !== "Object" || !types2.isTypedArray(V) || V.constructor.name !==
|
|
120941
|
+
webidl.converters.TypedArray = function(V, T4, prefix, name, opts) {
|
|
120942
|
+
if (webidl.util.Type(V) !== "Object" || !types2.isTypedArray(V) || V.constructor.name !== T4.name) {
|
|
120943
120943
|
throw webidl.errors.conversionFailed({
|
|
120944
120944
|
prefix,
|
|
120945
120945
|
argument: `${name} ("${webidl.util.Stringify(V)}")`,
|
|
120946
|
-
types: [
|
|
120946
|
+
types: [T4.name]
|
|
120947
120947
|
});
|
|
120948
120948
|
}
|
|
120949
120949
|
if (opts?.allowShared === false && types2.isSharedArrayBuffer(V.buffer)) {
|
|
@@ -162868,10 +162868,10 @@ var require_lib28 = __commonJS({
|
|
|
162868
162868
|
function sign(x2) {
|
|
162869
162869
|
return x2 < 0 ? -1 : 1;
|
|
162870
162870
|
}
|
|
162871
|
-
function modulo(x2,
|
|
162872
|
-
const signMightNotMatch = x2 %
|
|
162873
|
-
if (sign(
|
|
162874
|
-
return signMightNotMatch +
|
|
162871
|
+
function modulo(x2, y9) {
|
|
162872
|
+
const signMightNotMatch = x2 % y9;
|
|
162873
|
+
if (sign(y9) !== sign(signMightNotMatch)) {
|
|
162874
|
+
return signMightNotMatch + y9;
|
|
162875
162875
|
}
|
|
162876
162876
|
return signMightNotMatch;
|
|
162877
162877
|
}
|
|
@@ -162995,11 +162995,11 @@ var require_lib28 = __commonJS({
|
|
|
162995
162995
|
if (Object.is(x2, -0)) {
|
|
162996
162996
|
return x2;
|
|
162997
162997
|
}
|
|
162998
|
-
const
|
|
162999
|
-
if (!Number.isFinite(
|
|
162998
|
+
const y9 = Math.fround(x2);
|
|
162999
|
+
if (!Number.isFinite(y9)) {
|
|
163000
163000
|
throw makeException(TypeError, "is outside the range of a single-precision floating-point value", options);
|
|
163001
163001
|
}
|
|
163002
|
-
return
|
|
163002
|
+
return y9;
|
|
163003
163003
|
};
|
|
163004
163004
|
exports2["unrestricted float"] = (value, options = {}) => {
|
|
163005
163005
|
const x2 = toNumber(value, options);
|
|
@@ -190387,10 +190387,10 @@ function i4(...e) {
|
|
|
190387
190387
|
var p2 = (e, a4) => {
|
|
190388
190388
|
let n2 = /* @__PURE__ */ new Map();
|
|
190389
190389
|
for (let [d3, t4] of e.entries()) {
|
|
190390
|
-
let
|
|
190391
|
-
if (
|
|
190392
|
-
let r2 = n2.get(
|
|
190393
|
-
r2 === void 0 && (r2 = [], n2.set(
|
|
190390
|
+
let y9 = a4(t4, d3, e);
|
|
190391
|
+
if (y9 !== void 0) {
|
|
190392
|
+
let r2 = n2.get(y9);
|
|
190393
|
+
r2 === void 0 && (r2 = [], n2.set(y9, r2)), r2.push(t4);
|
|
190394
190394
|
}
|
|
190395
190395
|
}
|
|
190396
190396
|
return Object.fromEntries(n2);
|
|
@@ -190422,8 +190422,8 @@ function u3(...a4) {
|
|
|
190422
190422
|
return u2(o5, a4, l3);
|
|
190423
190423
|
}
|
|
190424
190424
|
var o5 = (a4, r2) => a4.flatMap(r2);
|
|
190425
|
-
var l3 = (a4) => (r2, t4,
|
|
190426
|
-
let n2 = a4(r2, t4,
|
|
190425
|
+
var l3 = (a4) => (r2, t4, y9) => {
|
|
190426
|
+
let n2 = a4(r2, t4, y9);
|
|
190427
190427
|
return Array.isArray(n2) ? { done: false, hasNext: true, hasMany: true, next: n2 } : { done: false, hasNext: true, next: n2 };
|
|
190428
190428
|
};
|
|
190429
190429
|
|
|
@@ -208102,8 +208102,8 @@ function x(t4, ...o7) {
|
|
|
208102
208102
|
}
|
|
208103
208103
|
let a4 = [];
|
|
208104
208104
|
for (let i6 of n2) if (A(i6, a4, r2)) break;
|
|
208105
|
-
let { isSingle:
|
|
208106
|
-
n2 =
|
|
208105
|
+
let { isSingle: y9 } = r2.at(-1);
|
|
208106
|
+
n2 = y9 ? a4[0] : a4, p3 += r2.length;
|
|
208107
208107
|
}
|
|
208108
208108
|
return n2;
|
|
208109
208109
|
}
|
|
@@ -208111,8 +208111,8 @@ function A(t4, o7, n2) {
|
|
|
208111
208111
|
if (n2.length === 0) return o7.push(t4), false;
|
|
208112
208112
|
let u6 = t4, p3 = s3, e = false;
|
|
208113
208113
|
for (let [r2, a4] of n2.entries()) {
|
|
208114
|
-
let { index:
|
|
208115
|
-
if (i6.push(u6), p3 = a4(u6,
|
|
208114
|
+
let { index: y9, items: i6 } = a4;
|
|
208115
|
+
if (i6.push(u6), p3 = a4(u6, y9, i6), a4.index += 1, p3.hasNext) {
|
|
208116
208116
|
if (p3.hasMany ?? false) {
|
|
208117
208117
|
for (let l5 of p3.next) if (A(l5, o7, n2.slice(r2 + 1))) return true;
|
|
208118
208118
|
return e;
|
|
@@ -208146,6 +208146,18 @@ function f4(t4, i6) {
|
|
|
208146
208146
|
throw new Error("Wrong number of arguments");
|
|
208147
208147
|
}
|
|
208148
208148
|
|
|
208149
|
+
// ../../node_modules/.pnpm/remeda@2.14.0/node_modules/remeda/dist/chunk-6V34IXIA.js
|
|
208150
|
+
function T3(...n2) {
|
|
208151
|
+
return f4(y7, n2);
|
|
208152
|
+
}
|
|
208153
|
+
function y7(n2) {
|
|
208154
|
+
let u6 = n2, e = /* @__PURE__ */ new Set();
|
|
208155
|
+
return (t4, d3, i6) => {
|
|
208156
|
+
let r2 = u6(t4, d3, i6);
|
|
208157
|
+
return e.has(r2) ? s3 : (e.add(r2), { done: false, hasNext: true, next: t4 });
|
|
208158
|
+
};
|
|
208159
|
+
}
|
|
208160
|
+
|
|
208149
208161
|
// ../../node_modules/.pnpm/remeda@2.14.0/node_modules/remeda/dist/chunk-K26VP6CL.js
|
|
208150
208162
|
function u4(t4, n2, a4) {
|
|
208151
208163
|
let o7 = (r2) => t4(r2, ...n2);
|
|
@@ -210395,7 +210407,7 @@ function getAllToplevelAncestors(artifactMap, artifactId) {
|
|
|
210395
210407
|
findAncestors(artifactId);
|
|
210396
210408
|
return Array.from(toplevelAncestors);
|
|
210397
210409
|
}
|
|
210398
|
-
async function fetchArtifactsFromSocket(rootWorkingDirectory, manifestsTarHash) {
|
|
210410
|
+
async function fetchArtifactsFromSocket(rootWorkingDirectory, manifestsTarHash, mode) {
|
|
210399
210411
|
logger.info("Fetching artifacts from Socket backend using manifests tar hash", manifestsTarHash);
|
|
210400
210412
|
try {
|
|
210401
210413
|
const { artifacts } = await fetchArtifactsFromManifestsTarHash(manifestsTarHash);
|
|
@@ -210530,7 +210542,7 @@ async function fetchArtifactsFromSocket(rootWorkingDirectory, manifestsTarHash)
|
|
|
210530
210542
|
}
|
|
210531
210543
|
if (purlsFailedToFindWorkspace.size > 0) {
|
|
210532
210544
|
logger.warn(`Failed to find workspace for the following purls with vulnerabilities: ${Array.from(purlsFailedToFindWorkspace).join(", ")}.
|
|
210533
|
-
This means that we will not do a full reachability analysis for these vulnerabilities, but fallback to the results from the pre-computed reachability analysis
|
|
210545
|
+
${mode === "reachability" ? "This means that we will not do a full reachability analysis for these vulnerabilities, but fallback to the results from the pre-computed reachability analysis." : ""}`);
|
|
210534
210546
|
}
|
|
210535
210547
|
return {
|
|
210536
210548
|
artifacts,
|
|
@@ -225660,7 +225672,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
225660
225672
|
}
|
|
225661
225673
|
|
|
225662
225674
|
// dist/version.js
|
|
225663
|
-
var version2 = "14.12.
|
|
225675
|
+
var version2 = "14.12.16";
|
|
225664
225676
|
|
|
225665
225677
|
// dist/cli-core.js
|
|
225666
225678
|
var { mapValues, omit, partition, pick } = import_lodash15.default;
|
|
@@ -225809,7 +225821,7 @@ var CliCore = class {
|
|
|
225809
225821
|
async computeAndOutputReportSocketMode(otherModulesCommunicator) {
|
|
225810
225822
|
logger.info("Fetching artifacts from Socket backend");
|
|
225811
225823
|
this.sendProgress("SCAN_FOR_VULNERABILITIES", true, ".", ".");
|
|
225812
|
-
const { artifacts, ecosystemToWorkspaceToAnalysisData, ecosystemToWorkspaceToVulnerabilities } = await fetchArtifactsFromSocket(this.rootWorkingDirectory, this.options.manifestsTarHash);
|
|
225824
|
+
const { artifacts, ecosystemToWorkspaceToAnalysisData, ecosystemToWorkspaceToVulnerabilities } = await fetchArtifactsFromSocket(this.rootWorkingDirectory, this.options.manifestsTarHash, "reachability");
|
|
225813
225825
|
this.sendProgress("SCAN_FOR_VULNERABILITIES", false, ".", ".");
|
|
225814
225826
|
const subProjects = Object.entries(ecosystemToWorkspaceToAnalysisData).flatMap(([ecosystem, workspaceToAnalysisData]) => {
|
|
225815
225827
|
return Object.entries(workspaceToAnalysisData).map(([workspace, analysisData]) => {
|
|
@@ -226377,7 +226389,7 @@ ${upgrades.map((upgrade) => ` ${upgrade.purl} -> ${upgrade.upgradeVersion}`).joi
|
|
|
226377
226389
|
}
|
|
226378
226390
|
try {
|
|
226379
226391
|
const purlToUpgradeVersion = new Map(supportedUpgrades.map((upgrade) => [upgrade.purl, upgrade.upgradeVersion]));
|
|
226380
|
-
const { artifacts } = await fetchArtifactsFromSocket(path2, options.manifestsTarHash);
|
|
226392
|
+
const { artifacts } = await fetchArtifactsFromSocket(path2, options.manifestsTarHash, "upgrade-purls");
|
|
226381
226393
|
const ecosystemToSocketArtifactUpgrades = {};
|
|
226382
226394
|
artifacts.forEach((artifact, idx) => {
|
|
226383
226395
|
if (!artifact.name)
|
|
@@ -226403,7 +226415,7 @@ ${upgrades.map((upgrade) => ` ${upgrade.purl} -> ${upgrade.upgradeVersion}`).joi
|
|
|
226403
226415
|
await applySocketUpgrades(ecosystem, path2, upgrades2, artifacts, options.rangeStyle);
|
|
226404
226416
|
}
|
|
226405
226417
|
if (upgradePurlRunId) {
|
|
226406
|
-
await getSocketAPI().finalizeUpgradePurlRun(upgradePurlRunId, "
|
|
226418
|
+
await getSocketAPI().finalizeUpgradePurlRun(upgradePurlRunId, "succeeded");
|
|
226407
226419
|
}
|
|
226408
226420
|
return unsupportedUpgrades.length === 0 ? "fixed-all" : "fixed-some";
|
|
226409
226421
|
} catch (error) {
|
|
@@ -226527,7 +226539,10 @@ async function computeFixesAndUpgradePurls(path2, options, logFile) {
|
|
|
226527
226539
|
return;
|
|
226528
226540
|
}
|
|
226529
226541
|
try {
|
|
226530
|
-
const applyFixesStatus = await upgradePurl(path2, combinedFixes
|
|
226542
|
+
const applyFixesStatus = await upgradePurl(path2, T3(combinedFixes, (fix) => `${fix.purl}${fix.fixedVersion}`).map((fix) => ({
|
|
226543
|
+
purl: fix.purl,
|
|
226544
|
+
upgradeVersion: fix.fixedVersion
|
|
226545
|
+
})), {
|
|
226531
226546
|
debug: options.debug,
|
|
226532
226547
|
silent: options.silent,
|
|
226533
226548
|
runWithoutDocker: options.runWithoutDocker,
|
|
@@ -226549,7 +226564,7 @@ async function computeFixesAndUpgradePurls(path2, options, logFile) {
|
|
|
226549
226564
|
}
|
|
226550
226565
|
async function computeInputForComputingFixes(path2, options) {
|
|
226551
226566
|
if (options.manifestsTarHash) {
|
|
226552
|
-
const { artifacts: artifacts2 } = await fetchArtifactsFromSocket(path2, options.manifestsTarHash);
|
|
226567
|
+
const { artifacts: artifacts2 } = await fetchArtifactsFromSocket(path2, options.manifestsTarHash, "autofix");
|
|
226553
226568
|
const ghsaToVulnerableArtifactIds2 = {};
|
|
226554
226569
|
for (const [index2, artifact] of artifacts2.entries()) {
|
|
226555
226570
|
if (!artifact.vulnerabilities)
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|