@storm-software/esbuild 0.53.83 → 0.53.85
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/README.md +1 -1
- package/bin/esbuild.cjs +82 -1560
- package/package.json +11 -11
package/bin/esbuild.cjs
CHANGED
|
@@ -1703,1567 +1703,90 @@ var require_build = __commonJS({
|
|
|
1703
1703
|
}
|
|
1704
1704
|
});
|
|
1705
1705
|
|
|
1706
|
-
// ../../node_modules/.pnpm/
|
|
1707
|
-
var
|
|
1708
|
-
"../../node_modules/.pnpm/
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
"
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
"
|
|
1719
|
-
"blanchedalmond": [255, 235, 205],
|
|
1720
|
-
"blue": [0, 0, 255],
|
|
1721
|
-
"blueviolet": [138, 43, 226],
|
|
1722
|
-
"brown": [165, 42, 42],
|
|
1723
|
-
"burlywood": [222, 184, 135],
|
|
1724
|
-
"cadetblue": [95, 158, 160],
|
|
1725
|
-
"chartreuse": [127, 255, 0],
|
|
1726
|
-
"chocolate": [210, 105, 30],
|
|
1727
|
-
"coral": [255, 127, 80],
|
|
1728
|
-
"cornflowerblue": [100, 149, 237],
|
|
1729
|
-
"cornsilk": [255, 248, 220],
|
|
1730
|
-
"crimson": [220, 20, 60],
|
|
1731
|
-
"cyan": [0, 255, 255],
|
|
1732
|
-
"darkblue": [0, 0, 139],
|
|
1733
|
-
"darkcyan": [0, 139, 139],
|
|
1734
|
-
"darkgoldenrod": [184, 134, 11],
|
|
1735
|
-
"darkgray": [169, 169, 169],
|
|
1736
|
-
"darkgreen": [0, 100, 0],
|
|
1737
|
-
"darkgrey": [169, 169, 169],
|
|
1738
|
-
"darkkhaki": [189, 183, 107],
|
|
1739
|
-
"darkmagenta": [139, 0, 139],
|
|
1740
|
-
"darkolivegreen": [85, 107, 47],
|
|
1741
|
-
"darkorange": [255, 140, 0],
|
|
1742
|
-
"darkorchid": [153, 50, 204],
|
|
1743
|
-
"darkred": [139, 0, 0],
|
|
1744
|
-
"darksalmon": [233, 150, 122],
|
|
1745
|
-
"darkseagreen": [143, 188, 143],
|
|
1746
|
-
"darkslateblue": [72, 61, 139],
|
|
1747
|
-
"darkslategray": [47, 79, 79],
|
|
1748
|
-
"darkslategrey": [47, 79, 79],
|
|
1749
|
-
"darkturquoise": [0, 206, 209],
|
|
1750
|
-
"darkviolet": [148, 0, 211],
|
|
1751
|
-
"deeppink": [255, 20, 147],
|
|
1752
|
-
"deepskyblue": [0, 191, 255],
|
|
1753
|
-
"dimgray": [105, 105, 105],
|
|
1754
|
-
"dimgrey": [105, 105, 105],
|
|
1755
|
-
"dodgerblue": [30, 144, 255],
|
|
1756
|
-
"firebrick": [178, 34, 34],
|
|
1757
|
-
"floralwhite": [255, 250, 240],
|
|
1758
|
-
"forestgreen": [34, 139, 34],
|
|
1759
|
-
"fuchsia": [255, 0, 255],
|
|
1760
|
-
"gainsboro": [220, 220, 220],
|
|
1761
|
-
"ghostwhite": [248, 248, 255],
|
|
1762
|
-
"gold": [255, 215, 0],
|
|
1763
|
-
"goldenrod": [218, 165, 32],
|
|
1764
|
-
"gray": [128, 128, 128],
|
|
1765
|
-
"green": [0, 128, 0],
|
|
1766
|
-
"greenyellow": [173, 255, 47],
|
|
1767
|
-
"grey": [128, 128, 128],
|
|
1768
|
-
"honeydew": [240, 255, 240],
|
|
1769
|
-
"hotpink": [255, 105, 180],
|
|
1770
|
-
"indianred": [205, 92, 92],
|
|
1771
|
-
"indigo": [75, 0, 130],
|
|
1772
|
-
"ivory": [255, 255, 240],
|
|
1773
|
-
"khaki": [240, 230, 140],
|
|
1774
|
-
"lavender": [230, 230, 250],
|
|
1775
|
-
"lavenderblush": [255, 240, 245],
|
|
1776
|
-
"lawngreen": [124, 252, 0],
|
|
1777
|
-
"lemonchiffon": [255, 250, 205],
|
|
1778
|
-
"lightblue": [173, 216, 230],
|
|
1779
|
-
"lightcoral": [240, 128, 128],
|
|
1780
|
-
"lightcyan": [224, 255, 255],
|
|
1781
|
-
"lightgoldenrodyellow": [250, 250, 210],
|
|
1782
|
-
"lightgray": [211, 211, 211],
|
|
1783
|
-
"lightgreen": [144, 238, 144],
|
|
1784
|
-
"lightgrey": [211, 211, 211],
|
|
1785
|
-
"lightpink": [255, 182, 193],
|
|
1786
|
-
"lightsalmon": [255, 160, 122],
|
|
1787
|
-
"lightseagreen": [32, 178, 170],
|
|
1788
|
-
"lightskyblue": [135, 206, 250],
|
|
1789
|
-
"lightslategray": [119, 136, 153],
|
|
1790
|
-
"lightslategrey": [119, 136, 153],
|
|
1791
|
-
"lightsteelblue": [176, 196, 222],
|
|
1792
|
-
"lightyellow": [255, 255, 224],
|
|
1793
|
-
"lime": [0, 255, 0],
|
|
1794
|
-
"limegreen": [50, 205, 50],
|
|
1795
|
-
"linen": [250, 240, 230],
|
|
1796
|
-
"magenta": [255, 0, 255],
|
|
1797
|
-
"maroon": [128, 0, 0],
|
|
1798
|
-
"mediumaquamarine": [102, 205, 170],
|
|
1799
|
-
"mediumblue": [0, 0, 205],
|
|
1800
|
-
"mediumorchid": [186, 85, 211],
|
|
1801
|
-
"mediumpurple": [147, 112, 219],
|
|
1802
|
-
"mediumseagreen": [60, 179, 113],
|
|
1803
|
-
"mediumslateblue": [123, 104, 238],
|
|
1804
|
-
"mediumspringgreen": [0, 250, 154],
|
|
1805
|
-
"mediumturquoise": [72, 209, 204],
|
|
1806
|
-
"mediumvioletred": [199, 21, 133],
|
|
1807
|
-
"midnightblue": [25, 25, 112],
|
|
1808
|
-
"mintcream": [245, 255, 250],
|
|
1809
|
-
"mistyrose": [255, 228, 225],
|
|
1810
|
-
"moccasin": [255, 228, 181],
|
|
1811
|
-
"navajowhite": [255, 222, 173],
|
|
1812
|
-
"navy": [0, 0, 128],
|
|
1813
|
-
"oldlace": [253, 245, 230],
|
|
1814
|
-
"olive": [128, 128, 0],
|
|
1815
|
-
"olivedrab": [107, 142, 35],
|
|
1816
|
-
"orange": [255, 165, 0],
|
|
1817
|
-
"orangered": [255, 69, 0],
|
|
1818
|
-
"orchid": [218, 112, 214],
|
|
1819
|
-
"palegoldenrod": [238, 232, 170],
|
|
1820
|
-
"palegreen": [152, 251, 152],
|
|
1821
|
-
"paleturquoise": [175, 238, 238],
|
|
1822
|
-
"palevioletred": [219, 112, 147],
|
|
1823
|
-
"papayawhip": [255, 239, 213],
|
|
1824
|
-
"peachpuff": [255, 218, 185],
|
|
1825
|
-
"peru": [205, 133, 63],
|
|
1826
|
-
"pink": [255, 192, 203],
|
|
1827
|
-
"plum": [221, 160, 221],
|
|
1828
|
-
"powderblue": [176, 224, 230],
|
|
1829
|
-
"purple": [128, 0, 128],
|
|
1830
|
-
"rebeccapurple": [102, 51, 153],
|
|
1831
|
-
"red": [255, 0, 0],
|
|
1832
|
-
"rosybrown": [188, 143, 143],
|
|
1833
|
-
"royalblue": [65, 105, 225],
|
|
1834
|
-
"saddlebrown": [139, 69, 19],
|
|
1835
|
-
"salmon": [250, 128, 114],
|
|
1836
|
-
"sandybrown": [244, 164, 96],
|
|
1837
|
-
"seagreen": [46, 139, 87],
|
|
1838
|
-
"seashell": [255, 245, 238],
|
|
1839
|
-
"sienna": [160, 82, 45],
|
|
1840
|
-
"silver": [192, 192, 192],
|
|
1841
|
-
"skyblue": [135, 206, 235],
|
|
1842
|
-
"slateblue": [106, 90, 205],
|
|
1843
|
-
"slategray": [112, 128, 144],
|
|
1844
|
-
"slategrey": [112, 128, 144],
|
|
1845
|
-
"snow": [255, 250, 250],
|
|
1846
|
-
"springgreen": [0, 255, 127],
|
|
1847
|
-
"steelblue": [70, 130, 180],
|
|
1848
|
-
"tan": [210, 180, 140],
|
|
1849
|
-
"teal": [0, 128, 128],
|
|
1850
|
-
"thistle": [216, 191, 216],
|
|
1851
|
-
"tomato": [255, 99, 71],
|
|
1852
|
-
"turquoise": [64, 224, 208],
|
|
1853
|
-
"violet": [238, 130, 238],
|
|
1854
|
-
"wheat": [245, 222, 179],
|
|
1855
|
-
"white": [255, 255, 255],
|
|
1856
|
-
"whitesmoke": [245, 245, 245],
|
|
1857
|
-
"yellow": [255, 255, 0],
|
|
1858
|
-
"yellowgreen": [154, 205, 50]
|
|
1859
|
-
};
|
|
1860
|
-
}
|
|
1861
|
-
});
|
|
1862
|
-
|
|
1863
|
-
// ../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js
|
|
1864
|
-
var require_conversions = __commonJS({
|
|
1865
|
-
"../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js"(exports2, module2) {
|
|
1866
|
-
var cssKeywords = require_color_name();
|
|
1867
|
-
var reverseKeywords = {};
|
|
1868
|
-
for (const key of Object.keys(cssKeywords)) {
|
|
1869
|
-
reverseKeywords[cssKeywords[key]] = key;
|
|
1870
|
-
}
|
|
1871
|
-
var convert = {
|
|
1872
|
-
rgb: { channels: 3, labels: "rgb" },
|
|
1873
|
-
hsl: { channels: 3, labels: "hsl" },
|
|
1874
|
-
hsv: { channels: 3, labels: "hsv" },
|
|
1875
|
-
hwb: { channels: 3, labels: "hwb" },
|
|
1876
|
-
cmyk: { channels: 4, labels: "cmyk" },
|
|
1877
|
-
xyz: { channels: 3, labels: "xyz" },
|
|
1878
|
-
lab: { channels: 3, labels: "lab" },
|
|
1879
|
-
lch: { channels: 3, labels: "lch" },
|
|
1880
|
-
hex: { channels: 1, labels: ["hex"] },
|
|
1881
|
-
keyword: { channels: 1, labels: ["keyword"] },
|
|
1882
|
-
ansi16: { channels: 1, labels: ["ansi16"] },
|
|
1883
|
-
ansi256: { channels: 1, labels: ["ansi256"] },
|
|
1884
|
-
hcg: { channels: 3, labels: ["h", "c", "g"] },
|
|
1885
|
-
apple: { channels: 3, labels: ["r16", "g16", "b16"] },
|
|
1886
|
-
gray: { channels: 1, labels: ["gray"] }
|
|
1887
|
-
};
|
|
1888
|
-
module2.exports = convert;
|
|
1889
|
-
for (const model of Object.keys(convert)) {
|
|
1890
|
-
if (!("channels" in convert[model])) {
|
|
1891
|
-
throw new Error("missing channels property: " + model);
|
|
1892
|
-
}
|
|
1893
|
-
if (!("labels" in convert[model])) {
|
|
1894
|
-
throw new Error("missing channel labels property: " + model);
|
|
1895
|
-
}
|
|
1896
|
-
if (convert[model].labels.length !== convert[model].channels) {
|
|
1897
|
-
throw new Error("channel and label counts mismatch: " + model);
|
|
1898
|
-
}
|
|
1899
|
-
const { channels, labels } = convert[model];
|
|
1900
|
-
delete convert[model].channels;
|
|
1901
|
-
delete convert[model].labels;
|
|
1902
|
-
Object.defineProperty(convert[model], "channels", { value: channels });
|
|
1903
|
-
Object.defineProperty(convert[model], "labels", { value: labels });
|
|
1904
|
-
}
|
|
1905
|
-
convert.rgb.hsl = function(rgb) {
|
|
1906
|
-
const r = rgb[0] / 255;
|
|
1907
|
-
const g = rgb[1] / 255;
|
|
1908
|
-
const b = rgb[2] / 255;
|
|
1909
|
-
const min = Math.min(r, g, b);
|
|
1910
|
-
const max = Math.max(r, g, b);
|
|
1911
|
-
const delta = max - min;
|
|
1912
|
-
let h;
|
|
1913
|
-
let s;
|
|
1914
|
-
if (max === min) {
|
|
1915
|
-
h = 0;
|
|
1916
|
-
} else if (r === max) {
|
|
1917
|
-
h = (g - b) / delta;
|
|
1918
|
-
} else if (g === max) {
|
|
1919
|
-
h = 2 + (b - r) / delta;
|
|
1920
|
-
} else if (b === max) {
|
|
1921
|
-
h = 4 + (r - g) / delta;
|
|
1922
|
-
}
|
|
1923
|
-
h = Math.min(h * 60, 360);
|
|
1924
|
-
if (h < 0) {
|
|
1925
|
-
h += 360;
|
|
1926
|
-
}
|
|
1927
|
-
const l = (min + max) / 2;
|
|
1928
|
-
if (max === min) {
|
|
1929
|
-
s = 0;
|
|
1930
|
-
} else if (l <= 0.5) {
|
|
1931
|
-
s = delta / (max + min);
|
|
1932
|
-
} else {
|
|
1933
|
-
s = delta / (2 - max - min);
|
|
1934
|
-
}
|
|
1935
|
-
return [h, s * 100, l * 100];
|
|
1936
|
-
};
|
|
1937
|
-
convert.rgb.hsv = function(rgb) {
|
|
1938
|
-
let rdif;
|
|
1939
|
-
let gdif;
|
|
1940
|
-
let bdif;
|
|
1941
|
-
let h;
|
|
1942
|
-
let s;
|
|
1943
|
-
const r = rgb[0] / 255;
|
|
1944
|
-
const g = rgb[1] / 255;
|
|
1945
|
-
const b = rgb[2] / 255;
|
|
1946
|
-
const v = Math.max(r, g, b);
|
|
1947
|
-
const diff = v - Math.min(r, g, b);
|
|
1948
|
-
const diffc = function(c) {
|
|
1949
|
-
return (v - c) / 6 / diff + 1 / 2;
|
|
1950
|
-
};
|
|
1951
|
-
if (diff === 0) {
|
|
1952
|
-
h = 0;
|
|
1953
|
-
s = 0;
|
|
1954
|
-
} else {
|
|
1955
|
-
s = diff / v;
|
|
1956
|
-
rdif = diffc(r);
|
|
1957
|
-
gdif = diffc(g);
|
|
1958
|
-
bdif = diffc(b);
|
|
1959
|
-
if (r === v) {
|
|
1960
|
-
h = bdif - gdif;
|
|
1961
|
-
} else if (g === v) {
|
|
1962
|
-
h = 1 / 3 + rdif - bdif;
|
|
1963
|
-
} else if (b === v) {
|
|
1964
|
-
h = 2 / 3 + gdif - rdif;
|
|
1965
|
-
}
|
|
1966
|
-
if (h < 0) {
|
|
1967
|
-
h += 1;
|
|
1968
|
-
} else if (h > 1) {
|
|
1969
|
-
h -= 1;
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
return [
|
|
1973
|
-
h * 360,
|
|
1974
|
-
s * 100,
|
|
1975
|
-
v * 100
|
|
1976
|
-
];
|
|
1977
|
-
};
|
|
1978
|
-
convert.rgb.hwb = function(rgb) {
|
|
1979
|
-
const r = rgb[0];
|
|
1980
|
-
const g = rgb[1];
|
|
1981
|
-
let b = rgb[2];
|
|
1982
|
-
const h = convert.rgb.hsl(rgb)[0];
|
|
1983
|
-
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
|
1984
|
-
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
|
1985
|
-
return [h, w * 100, b * 100];
|
|
1986
|
-
};
|
|
1987
|
-
convert.rgb.cmyk = function(rgb) {
|
|
1988
|
-
const r = rgb[0] / 255;
|
|
1989
|
-
const g = rgb[1] / 255;
|
|
1990
|
-
const b = rgb[2] / 255;
|
|
1991
|
-
const k = Math.min(1 - r, 1 - g, 1 - b);
|
|
1992
|
-
const c = (1 - r - k) / (1 - k) || 0;
|
|
1993
|
-
const m = (1 - g - k) / (1 - k) || 0;
|
|
1994
|
-
const y = (1 - b - k) / (1 - k) || 0;
|
|
1995
|
-
return [c * 100, m * 100, y * 100, k * 100];
|
|
1996
|
-
};
|
|
1997
|
-
function comparativeDistance(x, y) {
|
|
1998
|
-
return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
|
|
1999
|
-
}
|
|
2000
|
-
convert.rgb.keyword = function(rgb) {
|
|
2001
|
-
const reversed = reverseKeywords[rgb];
|
|
2002
|
-
if (reversed) {
|
|
2003
|
-
return reversed;
|
|
2004
|
-
}
|
|
2005
|
-
let currentClosestDistance = Infinity;
|
|
2006
|
-
let currentClosestKeyword;
|
|
2007
|
-
for (const keyword of Object.keys(cssKeywords)) {
|
|
2008
|
-
const value = cssKeywords[keyword];
|
|
2009
|
-
const distance = comparativeDistance(rgb, value);
|
|
2010
|
-
if (distance < currentClosestDistance) {
|
|
2011
|
-
currentClosestDistance = distance;
|
|
2012
|
-
currentClosestKeyword = keyword;
|
|
2013
|
-
}
|
|
2014
|
-
}
|
|
2015
|
-
return currentClosestKeyword;
|
|
2016
|
-
};
|
|
2017
|
-
convert.keyword.rgb = function(keyword) {
|
|
2018
|
-
return cssKeywords[keyword];
|
|
2019
|
-
};
|
|
2020
|
-
convert.rgb.xyz = function(rgb) {
|
|
2021
|
-
let r = rgb[0] / 255;
|
|
2022
|
-
let g = rgb[1] / 255;
|
|
2023
|
-
let b = rgb[2] / 255;
|
|
2024
|
-
r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
|
|
2025
|
-
g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
|
|
2026
|
-
b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
|
|
2027
|
-
const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
|
|
2028
|
-
const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
|
|
2029
|
-
const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
|
|
2030
|
-
return [x * 100, y * 100, z * 100];
|
|
2031
|
-
};
|
|
2032
|
-
convert.rgb.lab = function(rgb) {
|
|
2033
|
-
const xyz = convert.rgb.xyz(rgb);
|
|
2034
|
-
let x = xyz[0];
|
|
2035
|
-
let y = xyz[1];
|
|
2036
|
-
let z = xyz[2];
|
|
2037
|
-
x /= 95.047;
|
|
2038
|
-
y /= 100;
|
|
2039
|
-
z /= 108.883;
|
|
2040
|
-
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
2041
|
-
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
2042
|
-
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
2043
|
-
const l = 116 * y - 16;
|
|
2044
|
-
const a = 500 * (x - y);
|
|
2045
|
-
const b = 200 * (y - z);
|
|
2046
|
-
return [l, a, b];
|
|
2047
|
-
};
|
|
2048
|
-
convert.hsl.rgb = function(hsl) {
|
|
2049
|
-
const h = hsl[0] / 360;
|
|
2050
|
-
const s = hsl[1] / 100;
|
|
2051
|
-
const l = hsl[2] / 100;
|
|
2052
|
-
let t2;
|
|
2053
|
-
let t3;
|
|
2054
|
-
let val;
|
|
2055
|
-
if (s === 0) {
|
|
2056
|
-
val = l * 255;
|
|
2057
|
-
return [val, val, val];
|
|
2058
|
-
}
|
|
2059
|
-
if (l < 0.5) {
|
|
2060
|
-
t2 = l * (1 + s);
|
|
2061
|
-
} else {
|
|
2062
|
-
t2 = l + s - l * s;
|
|
2063
|
-
}
|
|
2064
|
-
const t1 = 2 * l - t2;
|
|
2065
|
-
const rgb = [0, 0, 0];
|
|
2066
|
-
for (let i = 0; i < 3; i++) {
|
|
2067
|
-
t3 = h + 1 / 3 * -(i - 1);
|
|
2068
|
-
if (t3 < 0) {
|
|
2069
|
-
t3++;
|
|
2070
|
-
}
|
|
2071
|
-
if (t3 > 1) {
|
|
2072
|
-
t3--;
|
|
2073
|
-
}
|
|
2074
|
-
if (6 * t3 < 1) {
|
|
2075
|
-
val = t1 + (t2 - t1) * 6 * t3;
|
|
2076
|
-
} else if (2 * t3 < 1) {
|
|
2077
|
-
val = t2;
|
|
2078
|
-
} else if (3 * t3 < 2) {
|
|
2079
|
-
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
|
2080
|
-
} else {
|
|
2081
|
-
val = t1;
|
|
2082
|
-
}
|
|
2083
|
-
rgb[i] = val * 255;
|
|
2084
|
-
}
|
|
2085
|
-
return rgb;
|
|
2086
|
-
};
|
|
2087
|
-
convert.hsl.hsv = function(hsl) {
|
|
2088
|
-
const h = hsl[0];
|
|
2089
|
-
let s = hsl[1] / 100;
|
|
2090
|
-
let l = hsl[2] / 100;
|
|
2091
|
-
let smin = s;
|
|
2092
|
-
const lmin = Math.max(l, 0.01);
|
|
2093
|
-
l *= 2;
|
|
2094
|
-
s *= l <= 1 ? l : 2 - l;
|
|
2095
|
-
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
|
2096
|
-
const v = (l + s) / 2;
|
|
2097
|
-
const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
|
|
2098
|
-
return [h, sv * 100, v * 100];
|
|
2099
|
-
};
|
|
2100
|
-
convert.hsv.rgb = function(hsv) {
|
|
2101
|
-
const h = hsv[0] / 60;
|
|
2102
|
-
const s = hsv[1] / 100;
|
|
2103
|
-
let v = hsv[2] / 100;
|
|
2104
|
-
const hi = Math.floor(h) % 6;
|
|
2105
|
-
const f = h - Math.floor(h);
|
|
2106
|
-
const p = 255 * v * (1 - s);
|
|
2107
|
-
const q = 255 * v * (1 - s * f);
|
|
2108
|
-
const t = 255 * v * (1 - s * (1 - f));
|
|
2109
|
-
v *= 255;
|
|
2110
|
-
switch (hi) {
|
|
2111
|
-
case 0:
|
|
2112
|
-
return [v, t, p];
|
|
2113
|
-
case 1:
|
|
2114
|
-
return [q, v, p];
|
|
2115
|
-
case 2:
|
|
2116
|
-
return [p, v, t];
|
|
2117
|
-
case 3:
|
|
2118
|
-
return [p, q, v];
|
|
2119
|
-
case 4:
|
|
2120
|
-
return [t, p, v];
|
|
2121
|
-
case 5:
|
|
2122
|
-
return [v, p, q];
|
|
2123
|
-
}
|
|
2124
|
-
};
|
|
2125
|
-
convert.hsv.hsl = function(hsv) {
|
|
2126
|
-
const h = hsv[0];
|
|
2127
|
-
const s = hsv[1] / 100;
|
|
2128
|
-
const v = hsv[2] / 100;
|
|
2129
|
-
const vmin = Math.max(v, 0.01);
|
|
2130
|
-
let sl;
|
|
2131
|
-
let l;
|
|
2132
|
-
l = (2 - s) * v;
|
|
2133
|
-
const lmin = (2 - s) * vmin;
|
|
2134
|
-
sl = s * vmin;
|
|
2135
|
-
sl /= lmin <= 1 ? lmin : 2 - lmin;
|
|
2136
|
-
sl = sl || 0;
|
|
2137
|
-
l /= 2;
|
|
2138
|
-
return [h, sl * 100, l * 100];
|
|
2139
|
-
};
|
|
2140
|
-
convert.hwb.rgb = function(hwb) {
|
|
2141
|
-
const h = hwb[0] / 360;
|
|
2142
|
-
let wh = hwb[1] / 100;
|
|
2143
|
-
let bl = hwb[2] / 100;
|
|
2144
|
-
const ratio = wh + bl;
|
|
2145
|
-
let f;
|
|
2146
|
-
if (ratio > 1) {
|
|
2147
|
-
wh /= ratio;
|
|
2148
|
-
bl /= ratio;
|
|
2149
|
-
}
|
|
2150
|
-
const i = Math.floor(6 * h);
|
|
2151
|
-
const v = 1 - bl;
|
|
2152
|
-
f = 6 * h - i;
|
|
2153
|
-
if ((i & 1) !== 0) {
|
|
2154
|
-
f = 1 - f;
|
|
2155
|
-
}
|
|
2156
|
-
const n = wh + f * (v - wh);
|
|
2157
|
-
let r;
|
|
2158
|
-
let g;
|
|
2159
|
-
let b;
|
|
2160
|
-
switch (i) {
|
|
2161
|
-
default:
|
|
2162
|
-
case 6:
|
|
2163
|
-
case 0:
|
|
2164
|
-
r = v;
|
|
2165
|
-
g = n;
|
|
2166
|
-
b = wh;
|
|
2167
|
-
break;
|
|
2168
|
-
case 1:
|
|
2169
|
-
r = n;
|
|
2170
|
-
g = v;
|
|
2171
|
-
b = wh;
|
|
2172
|
-
break;
|
|
2173
|
-
case 2:
|
|
2174
|
-
r = wh;
|
|
2175
|
-
g = v;
|
|
2176
|
-
b = n;
|
|
2177
|
-
break;
|
|
2178
|
-
case 3:
|
|
2179
|
-
r = wh;
|
|
2180
|
-
g = n;
|
|
2181
|
-
b = v;
|
|
2182
|
-
break;
|
|
2183
|
-
case 4:
|
|
2184
|
-
r = n;
|
|
2185
|
-
g = wh;
|
|
2186
|
-
b = v;
|
|
2187
|
-
break;
|
|
2188
|
-
case 5:
|
|
2189
|
-
r = v;
|
|
2190
|
-
g = wh;
|
|
2191
|
-
b = n;
|
|
2192
|
-
break;
|
|
2193
|
-
}
|
|
2194
|
-
return [r * 255, g * 255, b * 255];
|
|
2195
|
-
};
|
|
2196
|
-
convert.cmyk.rgb = function(cmyk) {
|
|
2197
|
-
const c = cmyk[0] / 100;
|
|
2198
|
-
const m = cmyk[1] / 100;
|
|
2199
|
-
const y = cmyk[2] / 100;
|
|
2200
|
-
const k = cmyk[3] / 100;
|
|
2201
|
-
const r = 1 - Math.min(1, c * (1 - k) + k);
|
|
2202
|
-
const g = 1 - Math.min(1, m * (1 - k) + k);
|
|
2203
|
-
const b = 1 - Math.min(1, y * (1 - k) + k);
|
|
2204
|
-
return [r * 255, g * 255, b * 255];
|
|
2205
|
-
};
|
|
2206
|
-
convert.xyz.rgb = function(xyz) {
|
|
2207
|
-
const x = xyz[0] / 100;
|
|
2208
|
-
const y = xyz[1] / 100;
|
|
2209
|
-
const z = xyz[2] / 100;
|
|
2210
|
-
let r;
|
|
2211
|
-
let g;
|
|
2212
|
-
let b;
|
|
2213
|
-
r = x * 3.2406 + y * -1.5372 + z * -0.4986;
|
|
2214
|
-
g = x * -0.9689 + y * 1.8758 + z * 0.0415;
|
|
2215
|
-
b = x * 0.0557 + y * -0.204 + z * 1.057;
|
|
2216
|
-
r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
|
|
2217
|
-
g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
|
|
2218
|
-
b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
|
|
2219
|
-
r = Math.min(Math.max(0, r), 1);
|
|
2220
|
-
g = Math.min(Math.max(0, g), 1);
|
|
2221
|
-
b = Math.min(Math.max(0, b), 1);
|
|
2222
|
-
return [r * 255, g * 255, b * 255];
|
|
2223
|
-
};
|
|
2224
|
-
convert.xyz.lab = function(xyz) {
|
|
2225
|
-
let x = xyz[0];
|
|
2226
|
-
let y = xyz[1];
|
|
2227
|
-
let z = xyz[2];
|
|
2228
|
-
x /= 95.047;
|
|
2229
|
-
y /= 100;
|
|
2230
|
-
z /= 108.883;
|
|
2231
|
-
x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
|
|
2232
|
-
y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
|
|
2233
|
-
z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
|
|
2234
|
-
const l = 116 * y - 16;
|
|
2235
|
-
const a = 500 * (x - y);
|
|
2236
|
-
const b = 200 * (y - z);
|
|
2237
|
-
return [l, a, b];
|
|
2238
|
-
};
|
|
2239
|
-
convert.lab.xyz = function(lab) {
|
|
2240
|
-
const l = lab[0];
|
|
2241
|
-
const a = lab[1];
|
|
2242
|
-
const b = lab[2];
|
|
2243
|
-
let x;
|
|
2244
|
-
let y;
|
|
2245
|
-
let z;
|
|
2246
|
-
y = (l + 16) / 116;
|
|
2247
|
-
x = a / 500 + y;
|
|
2248
|
-
z = y - b / 200;
|
|
2249
|
-
const y2 = y ** 3;
|
|
2250
|
-
const x2 = x ** 3;
|
|
2251
|
-
const z2 = z ** 3;
|
|
2252
|
-
y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
|
|
2253
|
-
x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
|
|
2254
|
-
z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
|
|
2255
|
-
x *= 95.047;
|
|
2256
|
-
y *= 100;
|
|
2257
|
-
z *= 108.883;
|
|
2258
|
-
return [x, y, z];
|
|
2259
|
-
};
|
|
2260
|
-
convert.lab.lch = function(lab) {
|
|
2261
|
-
const l = lab[0];
|
|
2262
|
-
const a = lab[1];
|
|
2263
|
-
const b = lab[2];
|
|
2264
|
-
let h;
|
|
2265
|
-
const hr = Math.atan2(b, a);
|
|
2266
|
-
h = hr * 360 / 2 / Math.PI;
|
|
2267
|
-
if (h < 0) {
|
|
2268
|
-
h += 360;
|
|
2269
|
-
}
|
|
2270
|
-
const c = Math.sqrt(a * a + b * b);
|
|
2271
|
-
return [l, c, h];
|
|
2272
|
-
};
|
|
2273
|
-
convert.lch.lab = function(lch) {
|
|
2274
|
-
const l = lch[0];
|
|
2275
|
-
const c = lch[1];
|
|
2276
|
-
const h = lch[2];
|
|
2277
|
-
const hr = h / 360 * 2 * Math.PI;
|
|
2278
|
-
const a = c * Math.cos(hr);
|
|
2279
|
-
const b = c * Math.sin(hr);
|
|
2280
|
-
return [l, a, b];
|
|
2281
|
-
};
|
|
2282
|
-
convert.rgb.ansi16 = function(args, saturation = null) {
|
|
2283
|
-
const [r, g, b] = args;
|
|
2284
|
-
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
|
|
2285
|
-
value = Math.round(value / 50);
|
|
2286
|
-
if (value === 0) {
|
|
2287
|
-
return 30;
|
|
2288
|
-
}
|
|
2289
|
-
let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
|
|
2290
|
-
if (value === 2) {
|
|
2291
|
-
ansi += 60;
|
|
2292
|
-
}
|
|
2293
|
-
return ansi;
|
|
2294
|
-
};
|
|
2295
|
-
convert.hsv.ansi16 = function(args) {
|
|
2296
|
-
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
|
2297
|
-
};
|
|
2298
|
-
convert.rgb.ansi256 = function(args) {
|
|
2299
|
-
const r = args[0];
|
|
2300
|
-
const g = args[1];
|
|
2301
|
-
const b = args[2];
|
|
2302
|
-
if (r === g && g === b) {
|
|
2303
|
-
if (r < 8) {
|
|
2304
|
-
return 16;
|
|
2305
|
-
}
|
|
2306
|
-
if (r > 248) {
|
|
2307
|
-
return 231;
|
|
2308
|
-
}
|
|
2309
|
-
return Math.round((r - 8) / 247 * 24) + 232;
|
|
2310
|
-
}
|
|
2311
|
-
const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
|
|
2312
|
-
return ansi;
|
|
2313
|
-
};
|
|
2314
|
-
convert.ansi16.rgb = function(args) {
|
|
2315
|
-
let color = args % 10;
|
|
2316
|
-
if (color === 0 || color === 7) {
|
|
2317
|
-
if (args > 50) {
|
|
2318
|
-
color += 3.5;
|
|
2319
|
-
}
|
|
2320
|
-
color = color / 10.5 * 255;
|
|
2321
|
-
return [color, color, color];
|
|
2322
|
-
}
|
|
2323
|
-
const mult = (~~(args > 50) + 1) * 0.5;
|
|
2324
|
-
const r = (color & 1) * mult * 255;
|
|
2325
|
-
const g = (color >> 1 & 1) * mult * 255;
|
|
2326
|
-
const b = (color >> 2 & 1) * mult * 255;
|
|
2327
|
-
return [r, g, b];
|
|
2328
|
-
};
|
|
2329
|
-
convert.ansi256.rgb = function(args) {
|
|
2330
|
-
if (args >= 232) {
|
|
2331
|
-
const c = (args - 232) * 10 + 8;
|
|
2332
|
-
return [c, c, c];
|
|
2333
|
-
}
|
|
2334
|
-
args -= 16;
|
|
2335
|
-
let rem;
|
|
2336
|
-
const r = Math.floor(args / 36) / 5 * 255;
|
|
2337
|
-
const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
|
2338
|
-
const b = rem % 6 / 5 * 255;
|
|
2339
|
-
return [r, g, b];
|
|
2340
|
-
};
|
|
2341
|
-
convert.rgb.hex = function(args) {
|
|
2342
|
-
const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
|
|
2343
|
-
const string = integer.toString(16).toUpperCase();
|
|
2344
|
-
return "000000".substring(string.length) + string;
|
|
2345
|
-
};
|
|
2346
|
-
convert.hex.rgb = function(args) {
|
|
2347
|
-
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
2348
|
-
if (!match) {
|
|
2349
|
-
return [0, 0, 0];
|
|
2350
|
-
}
|
|
2351
|
-
let colorString = match[0];
|
|
2352
|
-
if (match[0].length === 3) {
|
|
2353
|
-
colorString = colorString.split("").map((char) => {
|
|
2354
|
-
return char + char;
|
|
2355
|
-
}).join("");
|
|
2356
|
-
}
|
|
2357
|
-
const integer = parseInt(colorString, 16);
|
|
2358
|
-
const r = integer >> 16 & 255;
|
|
2359
|
-
const g = integer >> 8 & 255;
|
|
2360
|
-
const b = integer & 255;
|
|
2361
|
-
return [r, g, b];
|
|
2362
|
-
};
|
|
2363
|
-
convert.rgb.hcg = function(rgb) {
|
|
2364
|
-
const r = rgb[0] / 255;
|
|
2365
|
-
const g = rgb[1] / 255;
|
|
2366
|
-
const b = rgb[2] / 255;
|
|
2367
|
-
const max = Math.max(Math.max(r, g), b);
|
|
2368
|
-
const min = Math.min(Math.min(r, g), b);
|
|
2369
|
-
const chroma = max - min;
|
|
2370
|
-
let grayscale;
|
|
2371
|
-
let hue;
|
|
2372
|
-
if (chroma < 1) {
|
|
2373
|
-
grayscale = min / (1 - chroma);
|
|
2374
|
-
} else {
|
|
2375
|
-
grayscale = 0;
|
|
2376
|
-
}
|
|
2377
|
-
if (chroma <= 0) {
|
|
2378
|
-
hue = 0;
|
|
2379
|
-
} else if (max === r) {
|
|
2380
|
-
hue = (g - b) / chroma % 6;
|
|
2381
|
-
} else if (max === g) {
|
|
2382
|
-
hue = 2 + (b - r) / chroma;
|
|
2383
|
-
} else {
|
|
2384
|
-
hue = 4 + (r - g) / chroma;
|
|
2385
|
-
}
|
|
2386
|
-
hue /= 6;
|
|
2387
|
-
hue %= 1;
|
|
2388
|
-
return [hue * 360, chroma * 100, grayscale * 100];
|
|
2389
|
-
};
|
|
2390
|
-
convert.hsl.hcg = function(hsl) {
|
|
2391
|
-
const s = hsl[1] / 100;
|
|
2392
|
-
const l = hsl[2] / 100;
|
|
2393
|
-
const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
|
|
2394
|
-
let f = 0;
|
|
2395
|
-
if (c < 1) {
|
|
2396
|
-
f = (l - 0.5 * c) / (1 - c);
|
|
2397
|
-
}
|
|
2398
|
-
return [hsl[0], c * 100, f * 100];
|
|
2399
|
-
};
|
|
2400
|
-
convert.hsv.hcg = function(hsv) {
|
|
2401
|
-
const s = hsv[1] / 100;
|
|
2402
|
-
const v = hsv[2] / 100;
|
|
2403
|
-
const c = s * v;
|
|
2404
|
-
let f = 0;
|
|
2405
|
-
if (c < 1) {
|
|
2406
|
-
f = (v - c) / (1 - c);
|
|
2407
|
-
}
|
|
2408
|
-
return [hsv[0], c * 100, f * 100];
|
|
2409
|
-
};
|
|
2410
|
-
convert.hcg.rgb = function(hcg) {
|
|
2411
|
-
const h = hcg[0] / 360;
|
|
2412
|
-
const c = hcg[1] / 100;
|
|
2413
|
-
const g = hcg[2] / 100;
|
|
2414
|
-
if (c === 0) {
|
|
2415
|
-
return [g * 255, g * 255, g * 255];
|
|
2416
|
-
}
|
|
2417
|
-
const pure = [0, 0, 0];
|
|
2418
|
-
const hi = h % 1 * 6;
|
|
2419
|
-
const v = hi % 1;
|
|
2420
|
-
const w = 1 - v;
|
|
2421
|
-
let mg = 0;
|
|
2422
|
-
switch (Math.floor(hi)) {
|
|
2423
|
-
case 0:
|
|
2424
|
-
pure[0] = 1;
|
|
2425
|
-
pure[1] = v;
|
|
2426
|
-
pure[2] = 0;
|
|
2427
|
-
break;
|
|
2428
|
-
case 1:
|
|
2429
|
-
pure[0] = w;
|
|
2430
|
-
pure[1] = 1;
|
|
2431
|
-
pure[2] = 0;
|
|
2432
|
-
break;
|
|
2433
|
-
case 2:
|
|
2434
|
-
pure[0] = 0;
|
|
2435
|
-
pure[1] = 1;
|
|
2436
|
-
pure[2] = v;
|
|
2437
|
-
break;
|
|
2438
|
-
case 3:
|
|
2439
|
-
pure[0] = 0;
|
|
2440
|
-
pure[1] = w;
|
|
2441
|
-
pure[2] = 1;
|
|
2442
|
-
break;
|
|
2443
|
-
case 4:
|
|
2444
|
-
pure[0] = v;
|
|
2445
|
-
pure[1] = 0;
|
|
2446
|
-
pure[2] = 1;
|
|
2447
|
-
break;
|
|
2448
|
-
default:
|
|
2449
|
-
pure[0] = 1;
|
|
2450
|
-
pure[1] = 0;
|
|
2451
|
-
pure[2] = w;
|
|
2452
|
-
}
|
|
2453
|
-
mg = (1 - c) * g;
|
|
2454
|
-
return [
|
|
2455
|
-
(c * pure[0] + mg) * 255,
|
|
2456
|
-
(c * pure[1] + mg) * 255,
|
|
2457
|
-
(c * pure[2] + mg) * 255
|
|
2458
|
-
];
|
|
2459
|
-
};
|
|
2460
|
-
convert.hcg.hsv = function(hcg) {
|
|
2461
|
-
const c = hcg[1] / 100;
|
|
2462
|
-
const g = hcg[2] / 100;
|
|
2463
|
-
const v = c + g * (1 - c);
|
|
2464
|
-
let f = 0;
|
|
2465
|
-
if (v > 0) {
|
|
2466
|
-
f = c / v;
|
|
2467
|
-
}
|
|
2468
|
-
return [hcg[0], f * 100, v * 100];
|
|
2469
|
-
};
|
|
2470
|
-
convert.hcg.hsl = function(hcg) {
|
|
2471
|
-
const c = hcg[1] / 100;
|
|
2472
|
-
const g = hcg[2] / 100;
|
|
2473
|
-
const l = g * (1 - c) + 0.5 * c;
|
|
2474
|
-
let s = 0;
|
|
2475
|
-
if (l > 0 && l < 0.5) {
|
|
2476
|
-
s = c / (2 * l);
|
|
2477
|
-
} else if (l >= 0.5 && l < 1) {
|
|
2478
|
-
s = c / (2 * (1 - l));
|
|
2479
|
-
}
|
|
2480
|
-
return [hcg[0], s * 100, l * 100];
|
|
2481
|
-
};
|
|
2482
|
-
convert.hcg.hwb = function(hcg) {
|
|
2483
|
-
const c = hcg[1] / 100;
|
|
2484
|
-
const g = hcg[2] / 100;
|
|
2485
|
-
const v = c + g * (1 - c);
|
|
2486
|
-
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
|
2487
|
-
};
|
|
2488
|
-
convert.hwb.hcg = function(hwb) {
|
|
2489
|
-
const w = hwb[1] / 100;
|
|
2490
|
-
const b = hwb[2] / 100;
|
|
2491
|
-
const v = 1 - b;
|
|
2492
|
-
const c = v - w;
|
|
2493
|
-
let g = 0;
|
|
2494
|
-
if (c < 1) {
|
|
2495
|
-
g = (v - c) / (1 - c);
|
|
2496
|
-
}
|
|
2497
|
-
return [hwb[0], c * 100, g * 100];
|
|
2498
|
-
};
|
|
2499
|
-
convert.apple.rgb = function(apple) {
|
|
2500
|
-
return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
|
|
2501
|
-
};
|
|
2502
|
-
convert.rgb.apple = function(rgb) {
|
|
2503
|
-
return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
|
|
2504
|
-
};
|
|
2505
|
-
convert.gray.rgb = function(args) {
|
|
2506
|
-
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
|
2507
|
-
};
|
|
2508
|
-
convert.gray.hsl = function(args) {
|
|
2509
|
-
return [0, 0, args[0]];
|
|
2510
|
-
};
|
|
2511
|
-
convert.gray.hsv = convert.gray.hsl;
|
|
2512
|
-
convert.gray.hwb = function(gray) {
|
|
2513
|
-
return [0, 100, gray[0]];
|
|
2514
|
-
};
|
|
2515
|
-
convert.gray.cmyk = function(gray) {
|
|
2516
|
-
return [0, 0, 0, gray[0]];
|
|
2517
|
-
};
|
|
2518
|
-
convert.gray.lab = function(gray) {
|
|
2519
|
-
return [gray[0], 0, 0];
|
|
2520
|
-
};
|
|
2521
|
-
convert.gray.hex = function(gray) {
|
|
2522
|
-
const val = Math.round(gray[0] / 100 * 255) & 255;
|
|
2523
|
-
const integer = (val << 16) + (val << 8) + val;
|
|
2524
|
-
const string = integer.toString(16).toUpperCase();
|
|
2525
|
-
return "000000".substring(string.length) + string;
|
|
2526
|
-
};
|
|
2527
|
-
convert.rgb.gray = function(rgb) {
|
|
2528
|
-
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
|
2529
|
-
return [val / 255 * 100];
|
|
2530
|
-
};
|
|
2531
|
-
}
|
|
2532
|
-
});
|
|
2533
|
-
|
|
2534
|
-
// ../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js
|
|
2535
|
-
var require_route = __commonJS({
|
|
2536
|
-
"../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js"(exports2, module2) {
|
|
2537
|
-
var conversions = require_conversions();
|
|
2538
|
-
function buildGraph() {
|
|
2539
|
-
const graph = {};
|
|
2540
|
-
const models = Object.keys(conversions);
|
|
2541
|
-
for (let len = models.length, i = 0; i < len; i++) {
|
|
2542
|
-
graph[models[i]] = {
|
|
2543
|
-
// http://jsperf.com/1-vs-infinity
|
|
2544
|
-
// micro-opt, but this is simple.
|
|
2545
|
-
distance: -1,
|
|
2546
|
-
parent: null
|
|
2547
|
-
};
|
|
2548
|
-
}
|
|
2549
|
-
return graph;
|
|
2550
|
-
}
|
|
2551
|
-
function deriveBFS(fromModel) {
|
|
2552
|
-
const graph = buildGraph();
|
|
2553
|
-
const queue = [fromModel];
|
|
2554
|
-
graph[fromModel].distance = 0;
|
|
2555
|
-
while (queue.length) {
|
|
2556
|
-
const current = queue.pop();
|
|
2557
|
-
const adjacents = Object.keys(conversions[current]);
|
|
2558
|
-
for (let len = adjacents.length, i = 0; i < len; i++) {
|
|
2559
|
-
const adjacent = adjacents[i];
|
|
2560
|
-
const node = graph[adjacent];
|
|
2561
|
-
if (node.distance === -1) {
|
|
2562
|
-
node.distance = graph[current].distance + 1;
|
|
2563
|
-
node.parent = current;
|
|
2564
|
-
queue.unshift(adjacent);
|
|
2565
|
-
}
|
|
2566
|
-
}
|
|
2567
|
-
}
|
|
2568
|
-
return graph;
|
|
2569
|
-
}
|
|
2570
|
-
function link(from, to) {
|
|
2571
|
-
return function(args) {
|
|
2572
|
-
return to(from(args));
|
|
2573
|
-
};
|
|
2574
|
-
}
|
|
2575
|
-
function wrapConversion(toModel, graph) {
|
|
2576
|
-
const path = [graph[toModel].parent, toModel];
|
|
2577
|
-
let fn = conversions[graph[toModel].parent][toModel];
|
|
2578
|
-
let cur = graph[toModel].parent;
|
|
2579
|
-
while (graph[cur].parent) {
|
|
2580
|
-
path.unshift(graph[cur].parent);
|
|
2581
|
-
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
2582
|
-
cur = graph[cur].parent;
|
|
2583
|
-
}
|
|
2584
|
-
fn.conversion = path;
|
|
2585
|
-
return fn;
|
|
2586
|
-
}
|
|
2587
|
-
module2.exports = function(fromModel) {
|
|
2588
|
-
const graph = deriveBFS(fromModel);
|
|
2589
|
-
const conversion = {};
|
|
2590
|
-
const models = Object.keys(graph);
|
|
2591
|
-
for (let len = models.length, i = 0; i < len; i++) {
|
|
2592
|
-
const toModel = models[i];
|
|
2593
|
-
const node = graph[toModel];
|
|
2594
|
-
if (node.parent === null) {
|
|
2595
|
-
continue;
|
|
2596
|
-
}
|
|
2597
|
-
conversion[toModel] = wrapConversion(toModel, graph);
|
|
2598
|
-
}
|
|
2599
|
-
return conversion;
|
|
2600
|
-
};
|
|
2601
|
-
}
|
|
2602
|
-
});
|
|
2603
|
-
|
|
2604
|
-
// ../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js
|
|
2605
|
-
var require_color_convert = __commonJS({
|
|
2606
|
-
"../../node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"(exports2, module2) {
|
|
2607
|
-
var conversions = require_conversions();
|
|
2608
|
-
var route = require_route();
|
|
2609
|
-
var convert = {};
|
|
2610
|
-
var models = Object.keys(conversions);
|
|
2611
|
-
function wrapRaw(fn) {
|
|
2612
|
-
const wrappedFn = function(...args) {
|
|
2613
|
-
const arg0 = args[0];
|
|
2614
|
-
if (arg0 === void 0 || arg0 === null) {
|
|
2615
|
-
return arg0;
|
|
2616
|
-
}
|
|
2617
|
-
if (arg0.length > 1) {
|
|
2618
|
-
args = arg0;
|
|
2619
|
-
}
|
|
2620
|
-
return fn(args);
|
|
2621
|
-
};
|
|
2622
|
-
if ("conversion" in fn) {
|
|
2623
|
-
wrappedFn.conversion = fn.conversion;
|
|
2624
|
-
}
|
|
2625
|
-
return wrappedFn;
|
|
2626
|
-
}
|
|
2627
|
-
function wrapRounded(fn) {
|
|
2628
|
-
const wrappedFn = function(...args) {
|
|
2629
|
-
const arg0 = args[0];
|
|
2630
|
-
if (arg0 === void 0 || arg0 === null) {
|
|
2631
|
-
return arg0;
|
|
2632
|
-
}
|
|
2633
|
-
if (arg0.length > 1) {
|
|
2634
|
-
args = arg0;
|
|
2635
|
-
}
|
|
2636
|
-
const result = fn(args);
|
|
2637
|
-
if (typeof result === "object") {
|
|
2638
|
-
for (let len = result.length, i = 0; i < len; i++) {
|
|
2639
|
-
result[i] = Math.round(result[i]);
|
|
2640
|
-
}
|
|
2641
|
-
}
|
|
2642
|
-
return result;
|
|
2643
|
-
};
|
|
2644
|
-
if ("conversion" in fn) {
|
|
2645
|
-
wrappedFn.conversion = fn.conversion;
|
|
2646
|
-
}
|
|
2647
|
-
return wrappedFn;
|
|
2648
|
-
}
|
|
2649
|
-
models.forEach((fromModel) => {
|
|
2650
|
-
convert[fromModel] = {};
|
|
2651
|
-
Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
|
|
2652
|
-
Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
|
|
2653
|
-
const routes = route(fromModel);
|
|
2654
|
-
const routeModels = Object.keys(routes);
|
|
2655
|
-
routeModels.forEach((toModel) => {
|
|
2656
|
-
const fn = routes[toModel];
|
|
2657
|
-
convert[fromModel][toModel] = wrapRounded(fn);
|
|
2658
|
-
convert[fromModel][toModel].raw = wrapRaw(fn);
|
|
2659
|
-
});
|
|
2660
|
-
});
|
|
2661
|
-
module2.exports = convert;
|
|
2662
|
-
}
|
|
2663
|
-
});
|
|
2664
|
-
|
|
2665
|
-
// ../../node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js
|
|
2666
|
-
var require_ansi_styles = __commonJS({
|
|
2667
|
-
"../../node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js"(exports2, module2) {
|
|
2668
|
-
"use strict";
|
|
2669
|
-
var wrapAnsi16 = (fn, offset) => (...args) => {
|
|
2670
|
-
const code = fn(...args);
|
|
2671
|
-
return `\x1B[${code + offset}m`;
|
|
2672
|
-
};
|
|
2673
|
-
var wrapAnsi256 = (fn, offset) => (...args) => {
|
|
2674
|
-
const code = fn(...args);
|
|
2675
|
-
return `\x1B[${38 + offset};5;${code}m`;
|
|
2676
|
-
};
|
|
2677
|
-
var wrapAnsi16m = (fn, offset) => (...args) => {
|
|
2678
|
-
const rgb = fn(...args);
|
|
2679
|
-
return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
|
|
2680
|
-
};
|
|
2681
|
-
var ansi2ansi = (n) => n;
|
|
2682
|
-
var rgb2rgb = (r, g, b) => [r, g, b];
|
|
2683
|
-
var setLazyProperty = (object, property, get) => {
|
|
2684
|
-
Object.defineProperty(object, property, {
|
|
2685
|
-
get: () => {
|
|
2686
|
-
const value = get();
|
|
2687
|
-
Object.defineProperty(object, property, {
|
|
2688
|
-
value,
|
|
2689
|
-
enumerable: true,
|
|
2690
|
-
configurable: true
|
|
2691
|
-
});
|
|
2692
|
-
return value;
|
|
2693
|
-
},
|
|
2694
|
-
enumerable: true,
|
|
2695
|
-
configurable: true
|
|
2696
|
-
});
|
|
2697
|
-
};
|
|
2698
|
-
var colorConvert;
|
|
2699
|
-
var makeDynamicStyles = (wrap, targetSpace, identity, isBackground) => {
|
|
2700
|
-
if (colorConvert === void 0) {
|
|
2701
|
-
colorConvert = require_color_convert();
|
|
2702
|
-
}
|
|
2703
|
-
const offset = isBackground ? 10 : 0;
|
|
2704
|
-
const styles = {};
|
|
2705
|
-
for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
|
|
2706
|
-
const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
|
|
2707
|
-
if (sourceSpace === targetSpace) {
|
|
2708
|
-
styles[name] = wrap(identity, offset);
|
|
2709
|
-
} else if (typeof suite === "object") {
|
|
2710
|
-
styles[name] = wrap(suite[targetSpace], offset);
|
|
2711
|
-
}
|
|
2712
|
-
}
|
|
2713
|
-
return styles;
|
|
2714
|
-
};
|
|
2715
|
-
function assembleStyles() {
|
|
2716
|
-
const codes = /* @__PURE__ */ new Map();
|
|
2717
|
-
const styles = {
|
|
2718
|
-
modifier: {
|
|
2719
|
-
reset: [0, 0],
|
|
2720
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
2721
|
-
bold: [1, 22],
|
|
2722
|
-
dim: [2, 22],
|
|
2723
|
-
italic: [3, 23],
|
|
2724
|
-
underline: [4, 24],
|
|
2725
|
-
inverse: [7, 27],
|
|
2726
|
-
hidden: [8, 28],
|
|
2727
|
-
strikethrough: [9, 29]
|
|
2728
|
-
},
|
|
2729
|
-
color: {
|
|
2730
|
-
black: [30, 39],
|
|
2731
|
-
red: [31, 39],
|
|
2732
|
-
green: [32, 39],
|
|
2733
|
-
yellow: [33, 39],
|
|
2734
|
-
blue: [34, 39],
|
|
2735
|
-
magenta: [35, 39],
|
|
2736
|
-
cyan: [36, 39],
|
|
2737
|
-
white: [37, 39],
|
|
2738
|
-
// Bright color
|
|
2739
|
-
blackBright: [90, 39],
|
|
2740
|
-
redBright: [91, 39],
|
|
2741
|
-
greenBright: [92, 39],
|
|
2742
|
-
yellowBright: [93, 39],
|
|
2743
|
-
blueBright: [94, 39],
|
|
2744
|
-
magentaBright: [95, 39],
|
|
2745
|
-
cyanBright: [96, 39],
|
|
2746
|
-
whiteBright: [97, 39]
|
|
2747
|
-
},
|
|
2748
|
-
bgColor: {
|
|
2749
|
-
bgBlack: [40, 49],
|
|
2750
|
-
bgRed: [41, 49],
|
|
2751
|
-
bgGreen: [42, 49],
|
|
2752
|
-
bgYellow: [43, 49],
|
|
2753
|
-
bgBlue: [44, 49],
|
|
2754
|
-
bgMagenta: [45, 49],
|
|
2755
|
-
bgCyan: [46, 49],
|
|
2756
|
-
bgWhite: [47, 49],
|
|
2757
|
-
// Bright color
|
|
2758
|
-
bgBlackBright: [100, 49],
|
|
2759
|
-
bgRedBright: [101, 49],
|
|
2760
|
-
bgGreenBright: [102, 49],
|
|
2761
|
-
bgYellowBright: [103, 49],
|
|
2762
|
-
bgBlueBright: [104, 49],
|
|
2763
|
-
bgMagentaBright: [105, 49],
|
|
2764
|
-
bgCyanBright: [106, 49],
|
|
2765
|
-
bgWhiteBright: [107, 49]
|
|
2766
|
-
}
|
|
2767
|
-
};
|
|
2768
|
-
styles.color.gray = styles.color.blackBright;
|
|
2769
|
-
styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
|
|
2770
|
-
styles.color.grey = styles.color.blackBright;
|
|
2771
|
-
styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
|
|
2772
|
-
for (const [groupName, group] of Object.entries(styles)) {
|
|
2773
|
-
for (const [styleName, style] of Object.entries(group)) {
|
|
2774
|
-
styles[styleName] = {
|
|
2775
|
-
open: `\x1B[${style[0]}m`,
|
|
2776
|
-
close: `\x1B[${style[1]}m`
|
|
2777
|
-
};
|
|
2778
|
-
group[styleName] = styles[styleName];
|
|
2779
|
-
codes.set(style[0], style[1]);
|
|
2780
|
-
}
|
|
2781
|
-
Object.defineProperty(styles, groupName, {
|
|
2782
|
-
value: group,
|
|
2783
|
-
enumerable: false
|
|
2784
|
-
});
|
|
2785
|
-
}
|
|
2786
|
-
Object.defineProperty(styles, "codes", {
|
|
2787
|
-
value: codes,
|
|
2788
|
-
enumerable: false
|
|
2789
|
-
});
|
|
2790
|
-
styles.color.close = "\x1B[39m";
|
|
2791
|
-
styles.bgColor.close = "\x1B[49m";
|
|
2792
|
-
setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
2793
|
-
setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
2794
|
-
setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
2795
|
-
setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
2796
|
-
setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
2797
|
-
setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
2798
|
-
return styles;
|
|
2799
|
-
}
|
|
2800
|
-
Object.defineProperty(module2, "exports", {
|
|
2801
|
-
enumerable: true,
|
|
2802
|
-
get: assembleStyles
|
|
2803
|
-
});
|
|
2804
|
-
}
|
|
2805
|
-
});
|
|
2806
|
-
|
|
2807
|
-
// ../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js
|
|
2808
|
-
var require_has_flag = __commonJS({
|
|
2809
|
-
"../../node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js"(exports2, module2) {
|
|
2810
|
-
"use strict";
|
|
2811
|
-
module2.exports = (flag, argv = process.argv) => {
|
|
2812
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
2813
|
-
const position = argv.indexOf(prefix + flag);
|
|
2814
|
-
const terminatorPosition = argv.indexOf("--");
|
|
2815
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
2816
|
-
};
|
|
2817
|
-
}
|
|
2818
|
-
});
|
|
2819
|
-
|
|
2820
|
-
// ../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js
|
|
2821
|
-
var require_supports_color = __commonJS({
|
|
2822
|
-
"../../node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.js"(exports2, module2) {
|
|
2823
|
-
"use strict";
|
|
2824
|
-
var os = require("os");
|
|
2825
|
-
var tty = require("tty");
|
|
2826
|
-
var hasFlag = require_has_flag();
|
|
2827
|
-
var { env } = process;
|
|
2828
|
-
var forceColor;
|
|
2829
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
2830
|
-
forceColor = 0;
|
|
2831
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
2832
|
-
forceColor = 1;
|
|
2833
|
-
}
|
|
2834
|
-
if ("FORCE_COLOR" in env) {
|
|
2835
|
-
if (env.FORCE_COLOR === "true") {
|
|
2836
|
-
forceColor = 1;
|
|
2837
|
-
} else if (env.FORCE_COLOR === "false") {
|
|
2838
|
-
forceColor = 0;
|
|
2839
|
-
} else {
|
|
2840
|
-
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
2841
|
-
}
|
|
2842
|
-
}
|
|
2843
|
-
function translateLevel(level) {
|
|
2844
|
-
if (level === 0) {
|
|
2845
|
-
return false;
|
|
2846
|
-
}
|
|
2847
|
-
return {
|
|
2848
|
-
level,
|
|
2849
|
-
hasBasic: true,
|
|
2850
|
-
has256: level >= 2,
|
|
2851
|
-
has16m: level >= 3
|
|
2852
|
-
};
|
|
2853
|
-
}
|
|
2854
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
2855
|
-
if (forceColor === 0) {
|
|
2856
|
-
return 0;
|
|
2857
|
-
}
|
|
2858
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
2859
|
-
return 3;
|
|
2860
|
-
}
|
|
2861
|
-
if (hasFlag("color=256")) {
|
|
2862
|
-
return 2;
|
|
2863
|
-
}
|
|
2864
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
2865
|
-
return 0;
|
|
2866
|
-
}
|
|
2867
|
-
const min = forceColor || 0;
|
|
2868
|
-
if (env.TERM === "dumb") {
|
|
2869
|
-
return min;
|
|
2870
|
-
}
|
|
2871
|
-
if (process.platform === "win32") {
|
|
2872
|
-
const osRelease = os.release().split(".");
|
|
2873
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
2874
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2875
|
-
}
|
|
2876
|
-
return 1;
|
|
2877
|
-
}
|
|
2878
|
-
if ("CI" in env) {
|
|
2879
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
2880
|
-
return 1;
|
|
2881
|
-
}
|
|
2882
|
-
return min;
|
|
2883
|
-
}
|
|
2884
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
2885
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
2886
|
-
}
|
|
2887
|
-
if (env.COLORTERM === "truecolor") {
|
|
2888
|
-
return 3;
|
|
2889
|
-
}
|
|
2890
|
-
if ("TERM_PROGRAM" in env) {
|
|
2891
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
2892
|
-
switch (env.TERM_PROGRAM) {
|
|
2893
|
-
case "iTerm.app":
|
|
2894
|
-
return version >= 3 ? 3 : 2;
|
|
2895
|
-
case "Apple_Terminal":
|
|
2896
|
-
return 2;
|
|
2897
|
-
}
|
|
2898
|
-
}
|
|
2899
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
2900
|
-
return 2;
|
|
2901
|
-
}
|
|
2902
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
2903
|
-
return 1;
|
|
2904
|
-
}
|
|
2905
|
-
if ("COLORTERM" in env) {
|
|
2906
|
-
return 1;
|
|
2907
|
-
}
|
|
2908
|
-
return min;
|
|
2909
|
-
}
|
|
2910
|
-
function getSupportLevel(stream) {
|
|
2911
|
-
const level = supportsColor(stream, stream && stream.isTTY);
|
|
2912
|
-
return translateLevel(level);
|
|
2913
|
-
}
|
|
2914
|
-
module2.exports = {
|
|
2915
|
-
supportsColor: getSupportLevel,
|
|
2916
|
-
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
2917
|
-
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
2918
|
-
};
|
|
2919
|
-
}
|
|
2920
|
-
});
|
|
2921
|
-
|
|
2922
|
-
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js
|
|
2923
|
-
var require_util = __commonJS({
|
|
2924
|
-
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/util.js"(exports2, module2) {
|
|
2925
|
-
"use strict";
|
|
2926
|
-
var stringReplaceAll = (string, substring, replacer) => {
|
|
2927
|
-
let index = string.indexOf(substring);
|
|
2928
|
-
if (index === -1) {
|
|
2929
|
-
return string;
|
|
2930
|
-
}
|
|
2931
|
-
const substringLength = substring.length;
|
|
2932
|
-
let endIndex = 0;
|
|
2933
|
-
let returnValue = "";
|
|
2934
|
-
do {
|
|
2935
|
-
returnValue += string.substr(endIndex, index - endIndex) + substring + replacer;
|
|
2936
|
-
endIndex = index + substringLength;
|
|
2937
|
-
index = string.indexOf(substring, endIndex);
|
|
2938
|
-
} while (index !== -1);
|
|
2939
|
-
returnValue += string.substr(endIndex);
|
|
2940
|
-
return returnValue;
|
|
2941
|
-
};
|
|
2942
|
-
var stringEncaseCRLFWithFirstIndex = (string, prefix, postfix, index) => {
|
|
2943
|
-
let endIndex = 0;
|
|
2944
|
-
let returnValue = "";
|
|
1706
|
+
// ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
1707
|
+
var require_picocolors = __commonJS({
|
|
1708
|
+
"../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports2, module2) {
|
|
1709
|
+
var p = process || {};
|
|
1710
|
+
var argv = p.argv || [];
|
|
1711
|
+
var env = p.env || {};
|
|
1712
|
+
var isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
1713
|
+
var formatter = (open, close, replace = open) => (input) => {
|
|
1714
|
+
let string = "" + input, index = string.indexOf(close, open.length);
|
|
1715
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
1716
|
+
};
|
|
1717
|
+
var replaceClose = (string, close, replace, index) => {
|
|
1718
|
+
let result = "", cursor = 0;
|
|
2945
1719
|
do {
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
module2.exports = {
|
|
2955
|
-
stringReplaceAll,
|
|
2956
|
-
stringEncaseCRLFWithFirstIndex
|
|
2957
|
-
};
|
|
2958
|
-
}
|
|
2959
|
-
});
|
|
2960
|
-
|
|
2961
|
-
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js
|
|
2962
|
-
var require_templates = __commonJS({
|
|
2963
|
-
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/templates.js"(exports2, module2) {
|
|
2964
|
-
"use strict";
|
|
2965
|
-
var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
2966
|
-
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
2967
|
-
var STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
|
2968
|
-
var ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
|
|
2969
|
-
var ESCAPES = /* @__PURE__ */ new Map([
|
|
2970
|
-
["n", "\n"],
|
|
2971
|
-
["r", "\r"],
|
|
2972
|
-
["t", " "],
|
|
2973
|
-
["b", "\b"],
|
|
2974
|
-
["f", "\f"],
|
|
2975
|
-
["v", "\v"],
|
|
2976
|
-
["0", "\0"],
|
|
2977
|
-
["\\", "\\"],
|
|
2978
|
-
["e", "\x1B"],
|
|
2979
|
-
["a", "\x07"]
|
|
2980
|
-
]);
|
|
2981
|
-
function unescape(c) {
|
|
2982
|
-
const u = c[0] === "u";
|
|
2983
|
-
const bracket = c[1] === "{";
|
|
2984
|
-
if (u && !bracket && c.length === 5 || c[0] === "x" && c.length === 3) {
|
|
2985
|
-
return String.fromCharCode(parseInt(c.slice(1), 16));
|
|
2986
|
-
}
|
|
2987
|
-
if (u && bracket) {
|
|
2988
|
-
return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
|
|
2989
|
-
}
|
|
2990
|
-
return ESCAPES.get(c) || c;
|
|
2991
|
-
}
|
|
2992
|
-
function parseArguments(name, arguments_) {
|
|
2993
|
-
const results = [];
|
|
2994
|
-
const chunks = arguments_.trim().split(/\s*,\s*/g);
|
|
2995
|
-
let matches;
|
|
2996
|
-
for (const chunk of chunks) {
|
|
2997
|
-
const number = Number(chunk);
|
|
2998
|
-
if (!Number.isNaN(number)) {
|
|
2999
|
-
results.push(number);
|
|
3000
|
-
} else if (matches = chunk.match(STRING_REGEX)) {
|
|
3001
|
-
results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
|
|
3002
|
-
} else {
|
|
3003
|
-
throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
|
|
3004
|
-
}
|
|
3005
|
-
}
|
|
3006
|
-
return results;
|
|
3007
|
-
}
|
|
3008
|
-
function parseStyle(style) {
|
|
3009
|
-
STYLE_REGEX.lastIndex = 0;
|
|
3010
|
-
const results = [];
|
|
3011
|
-
let matches;
|
|
3012
|
-
while ((matches = STYLE_REGEX.exec(style)) !== null) {
|
|
3013
|
-
const name = matches[1];
|
|
3014
|
-
if (matches[2]) {
|
|
3015
|
-
const args = parseArguments(name, matches[2]);
|
|
3016
|
-
results.push([name].concat(args));
|
|
3017
|
-
} else {
|
|
3018
|
-
results.push([name]);
|
|
3019
|
-
}
|
|
3020
|
-
}
|
|
3021
|
-
return results;
|
|
3022
|
-
}
|
|
3023
|
-
function buildStyle(chalk, styles) {
|
|
3024
|
-
const enabled = {};
|
|
3025
|
-
for (const layer of styles) {
|
|
3026
|
-
for (const style of layer.styles) {
|
|
3027
|
-
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
3028
|
-
}
|
|
3029
|
-
}
|
|
3030
|
-
let current = chalk;
|
|
3031
|
-
for (const [styleName, styles2] of Object.entries(enabled)) {
|
|
3032
|
-
if (!Array.isArray(styles2)) {
|
|
3033
|
-
continue;
|
|
3034
|
-
}
|
|
3035
|
-
if (!(styleName in current)) {
|
|
3036
|
-
throw new Error(`Unknown Chalk style: ${styleName}`);
|
|
3037
|
-
}
|
|
3038
|
-
current = styles2.length > 0 ? current[styleName](...styles2) : current[styleName];
|
|
3039
|
-
}
|
|
3040
|
-
return current;
|
|
3041
|
-
}
|
|
3042
|
-
module2.exports = (chalk, temporary) => {
|
|
3043
|
-
const styles = [];
|
|
3044
|
-
const chunks = [];
|
|
3045
|
-
let chunk = [];
|
|
3046
|
-
temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
|
|
3047
|
-
if (escapeCharacter) {
|
|
3048
|
-
chunk.push(unescape(escapeCharacter));
|
|
3049
|
-
} else if (style) {
|
|
3050
|
-
const string = chunk.join("");
|
|
3051
|
-
chunk = [];
|
|
3052
|
-
chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
|
|
3053
|
-
styles.push({ inverse, styles: parseStyle(style) });
|
|
3054
|
-
} else if (close) {
|
|
3055
|
-
if (styles.length === 0) {
|
|
3056
|
-
throw new Error("Found extraneous } in Chalk template literal");
|
|
3057
|
-
}
|
|
3058
|
-
chunks.push(buildStyle(chalk, styles)(chunk.join("")));
|
|
3059
|
-
chunk = [];
|
|
3060
|
-
styles.pop();
|
|
3061
|
-
} else {
|
|
3062
|
-
chunk.push(character);
|
|
3063
|
-
}
|
|
3064
|
-
});
|
|
3065
|
-
chunks.push(chunk.join(""));
|
|
3066
|
-
if (styles.length > 0) {
|
|
3067
|
-
const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? "" : "s"} (\`}\`)`;
|
|
3068
|
-
throw new Error(errMessage);
|
|
3069
|
-
}
|
|
3070
|
-
return chunks.join("");
|
|
3071
|
-
};
|
|
3072
|
-
}
|
|
3073
|
-
});
|
|
3074
|
-
|
|
3075
|
-
// ../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js
|
|
3076
|
-
var require_source = __commonJS({
|
|
3077
|
-
"../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/source/index.js"(exports2, module2) {
|
|
3078
|
-
"use strict";
|
|
3079
|
-
var ansiStyles = require_ansi_styles();
|
|
3080
|
-
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
3081
|
-
var {
|
|
3082
|
-
stringReplaceAll,
|
|
3083
|
-
stringEncaseCRLFWithFirstIndex
|
|
3084
|
-
} = require_util();
|
|
3085
|
-
var { isArray } = Array;
|
|
3086
|
-
var levelMapping = [
|
|
3087
|
-
"ansi",
|
|
3088
|
-
"ansi",
|
|
3089
|
-
"ansi256",
|
|
3090
|
-
"ansi16m"
|
|
3091
|
-
];
|
|
3092
|
-
var styles = /* @__PURE__ */ Object.create(null);
|
|
3093
|
-
var applyOptions = (object, options = {}) => {
|
|
3094
|
-
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
3095
|
-
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
3096
|
-
}
|
|
3097
|
-
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
3098
|
-
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
3099
|
-
};
|
|
3100
|
-
var ChalkClass = class {
|
|
3101
|
-
constructor(options) {
|
|
3102
|
-
return chalkFactory(options);
|
|
3103
|
-
}
|
|
3104
|
-
};
|
|
3105
|
-
var chalkFactory = (options) => {
|
|
3106
|
-
const chalk2 = {};
|
|
3107
|
-
applyOptions(chalk2, options);
|
|
3108
|
-
chalk2.template = (...arguments_) => chalkTag(chalk2.template, ...arguments_);
|
|
3109
|
-
Object.setPrototypeOf(chalk2, Chalk.prototype);
|
|
3110
|
-
Object.setPrototypeOf(chalk2.template, chalk2);
|
|
3111
|
-
chalk2.template.constructor = () => {
|
|
3112
|
-
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
3113
|
-
};
|
|
3114
|
-
chalk2.template.Instance = ChalkClass;
|
|
3115
|
-
return chalk2.template;
|
|
3116
|
-
};
|
|
3117
|
-
function Chalk(options) {
|
|
3118
|
-
return chalkFactory(options);
|
|
3119
|
-
}
|
|
3120
|
-
for (const [styleName, style] of Object.entries(ansiStyles)) {
|
|
3121
|
-
styles[styleName] = {
|
|
3122
|
-
get() {
|
|
3123
|
-
const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
|
|
3124
|
-
Object.defineProperty(this, styleName, { value: builder });
|
|
3125
|
-
return builder;
|
|
3126
|
-
}
|
|
3127
|
-
};
|
|
3128
|
-
}
|
|
3129
|
-
styles.visible = {
|
|
3130
|
-
get() {
|
|
3131
|
-
const builder = createBuilder(this, this._styler, true);
|
|
3132
|
-
Object.defineProperty(this, "visible", { value: builder });
|
|
3133
|
-
return builder;
|
|
3134
|
-
}
|
|
3135
|
-
};
|
|
3136
|
-
var usedModels = ["rgb", "hex", "keyword", "hsl", "hsv", "hwb", "ansi", "ansi256"];
|
|
3137
|
-
for (const model of usedModels) {
|
|
3138
|
-
styles[model] = {
|
|
3139
|
-
get() {
|
|
3140
|
-
const { level } = this;
|
|
3141
|
-
return function(...arguments_) {
|
|
3142
|
-
const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
|
|
3143
|
-
return createBuilder(this, styler, this._isEmpty);
|
|
3144
|
-
};
|
|
3145
|
-
}
|
|
3146
|
-
};
|
|
3147
|
-
}
|
|
3148
|
-
for (const model of usedModels) {
|
|
3149
|
-
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
3150
|
-
styles[bgModel] = {
|
|
3151
|
-
get() {
|
|
3152
|
-
const { level } = this;
|
|
3153
|
-
return function(...arguments_) {
|
|
3154
|
-
const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
|
|
3155
|
-
return createBuilder(this, styler, this._isEmpty);
|
|
3156
|
-
};
|
|
3157
|
-
}
|
|
3158
|
-
};
|
|
3159
|
-
}
|
|
3160
|
-
var proto = Object.defineProperties(() => {
|
|
3161
|
-
}, {
|
|
3162
|
-
...styles,
|
|
3163
|
-
level: {
|
|
3164
|
-
enumerable: true,
|
|
3165
|
-
get() {
|
|
3166
|
-
return this._generator.level;
|
|
3167
|
-
},
|
|
3168
|
-
set(level) {
|
|
3169
|
-
this._generator.level = level;
|
|
3170
|
-
}
|
|
3171
|
-
}
|
|
3172
|
-
});
|
|
3173
|
-
var createStyler = (open, close, parent) => {
|
|
3174
|
-
let openAll;
|
|
3175
|
-
let closeAll;
|
|
3176
|
-
if (parent === void 0) {
|
|
3177
|
-
openAll = open;
|
|
3178
|
-
closeAll = close;
|
|
3179
|
-
} else {
|
|
3180
|
-
openAll = parent.openAll + open;
|
|
3181
|
-
closeAll = close + parent.closeAll;
|
|
3182
|
-
}
|
|
1720
|
+
result += string.substring(cursor, index) + replace;
|
|
1721
|
+
cursor = index + close.length;
|
|
1722
|
+
index = string.indexOf(close, cursor);
|
|
1723
|
+
} while (~index);
|
|
1724
|
+
return result + string.substring(cursor);
|
|
1725
|
+
};
|
|
1726
|
+
var createColors = (enabled = isColorSupported) => {
|
|
1727
|
+
let f = enabled ? formatter : () => String;
|
|
3183
1728
|
return {
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
1729
|
+
isColorSupported: enabled,
|
|
1730
|
+
reset: f("\x1B[0m", "\x1B[0m"),
|
|
1731
|
+
bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
1732
|
+
dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
1733
|
+
italic: f("\x1B[3m", "\x1B[23m"),
|
|
1734
|
+
underline: f("\x1B[4m", "\x1B[24m"),
|
|
1735
|
+
inverse: f("\x1B[7m", "\x1B[27m"),
|
|
1736
|
+
hidden: f("\x1B[8m", "\x1B[28m"),
|
|
1737
|
+
strikethrough: f("\x1B[9m", "\x1B[29m"),
|
|
1738
|
+
black: f("\x1B[30m", "\x1B[39m"),
|
|
1739
|
+
red: f("\x1B[31m", "\x1B[39m"),
|
|
1740
|
+
green: f("\x1B[32m", "\x1B[39m"),
|
|
1741
|
+
yellow: f("\x1B[33m", "\x1B[39m"),
|
|
1742
|
+
blue: f("\x1B[34m", "\x1B[39m"),
|
|
1743
|
+
magenta: f("\x1B[35m", "\x1B[39m"),
|
|
1744
|
+
cyan: f("\x1B[36m", "\x1B[39m"),
|
|
1745
|
+
white: f("\x1B[37m", "\x1B[39m"),
|
|
1746
|
+
gray: f("\x1B[90m", "\x1B[39m"),
|
|
1747
|
+
bgBlack: f("\x1B[40m", "\x1B[49m"),
|
|
1748
|
+
bgRed: f("\x1B[41m", "\x1B[49m"),
|
|
1749
|
+
bgGreen: f("\x1B[42m", "\x1B[49m"),
|
|
1750
|
+
bgYellow: f("\x1B[43m", "\x1B[49m"),
|
|
1751
|
+
bgBlue: f("\x1B[44m", "\x1B[49m"),
|
|
1752
|
+
bgMagenta: f("\x1B[45m", "\x1B[49m"),
|
|
1753
|
+
bgCyan: f("\x1B[46m", "\x1B[49m"),
|
|
1754
|
+
bgWhite: f("\x1B[47m", "\x1B[49m"),
|
|
1755
|
+
blackBright: f("\x1B[90m", "\x1B[39m"),
|
|
1756
|
+
redBright: f("\x1B[91m", "\x1B[39m"),
|
|
1757
|
+
greenBright: f("\x1B[92m", "\x1B[39m"),
|
|
1758
|
+
yellowBright: f("\x1B[93m", "\x1B[39m"),
|
|
1759
|
+
blueBright: f("\x1B[94m", "\x1B[39m"),
|
|
1760
|
+
magentaBright: f("\x1B[95m", "\x1B[39m"),
|
|
1761
|
+
cyanBright: f("\x1B[96m", "\x1B[39m"),
|
|
1762
|
+
whiteBright: f("\x1B[97m", "\x1B[39m"),
|
|
1763
|
+
bgBlackBright: f("\x1B[100m", "\x1B[49m"),
|
|
1764
|
+
bgRedBright: f("\x1B[101m", "\x1B[49m"),
|
|
1765
|
+
bgGreenBright: f("\x1B[102m", "\x1B[49m"),
|
|
1766
|
+
bgYellowBright: f("\x1B[103m", "\x1B[49m"),
|
|
1767
|
+
bgBlueBright: f("\x1B[104m", "\x1B[49m"),
|
|
1768
|
+
bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
|
|
1769
|
+
bgCyanBright: f("\x1B[106m", "\x1B[49m"),
|
|
1770
|
+
bgWhiteBright: f("\x1B[107m", "\x1B[49m")
|
|
3189
1771
|
};
|
|
3190
1772
|
};
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
|
|
3194
|
-
return applyStyle(builder, chalkTag(builder, ...arguments_));
|
|
3195
|
-
}
|
|
3196
|
-
return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
3197
|
-
};
|
|
3198
|
-
Object.setPrototypeOf(builder, proto);
|
|
3199
|
-
builder._generator = self2;
|
|
3200
|
-
builder._styler = _styler;
|
|
3201
|
-
builder._isEmpty = _isEmpty;
|
|
3202
|
-
return builder;
|
|
3203
|
-
};
|
|
3204
|
-
var applyStyle = (self2, string) => {
|
|
3205
|
-
if (self2.level <= 0 || !string) {
|
|
3206
|
-
return self2._isEmpty ? "" : string;
|
|
3207
|
-
}
|
|
3208
|
-
let styler = self2._styler;
|
|
3209
|
-
if (styler === void 0) {
|
|
3210
|
-
return string;
|
|
3211
|
-
}
|
|
3212
|
-
const { openAll, closeAll } = styler;
|
|
3213
|
-
if (string.indexOf("\x1B") !== -1) {
|
|
3214
|
-
while (styler !== void 0) {
|
|
3215
|
-
string = stringReplaceAll(string, styler.close, styler.open);
|
|
3216
|
-
styler = styler.parent;
|
|
3217
|
-
}
|
|
3218
|
-
}
|
|
3219
|
-
const lfIndex = string.indexOf("\n");
|
|
3220
|
-
if (lfIndex !== -1) {
|
|
3221
|
-
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
3222
|
-
}
|
|
3223
|
-
return openAll + string + closeAll;
|
|
3224
|
-
};
|
|
3225
|
-
var template;
|
|
3226
|
-
var chalkTag = (chalk2, ...strings) => {
|
|
3227
|
-
const [firstString] = strings;
|
|
3228
|
-
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
3229
|
-
return strings.join(" ");
|
|
3230
|
-
}
|
|
3231
|
-
const arguments_ = strings.slice(1);
|
|
3232
|
-
const parts = [firstString.raw[0]];
|
|
3233
|
-
for (let i = 1; i < firstString.length; i++) {
|
|
3234
|
-
parts.push(
|
|
3235
|
-
String(arguments_[i - 1]).replace(/[{}\\]/g, "\\$&"),
|
|
3236
|
-
String(firstString.raw[i])
|
|
3237
|
-
);
|
|
3238
|
-
}
|
|
3239
|
-
if (template === void 0) {
|
|
3240
|
-
template = require_templates();
|
|
3241
|
-
}
|
|
3242
|
-
return template(chalk2, parts.join(""));
|
|
3243
|
-
};
|
|
3244
|
-
Object.defineProperties(Chalk.prototype, styles);
|
|
3245
|
-
var chalk = Chalk();
|
|
3246
|
-
chalk.supportsColor = stdoutColor;
|
|
3247
|
-
chalk.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
3248
|
-
chalk.stderr.supportsColor = stderrColor;
|
|
3249
|
-
module2.exports = chalk;
|
|
1773
|
+
module2.exports = createColors();
|
|
1774
|
+
module2.exports.createColors = createColors;
|
|
3250
1775
|
}
|
|
3251
1776
|
});
|
|
3252
1777
|
|
|
3253
|
-
// ../../node_modules/.pnpm/nx@22.
|
|
1778
|
+
// ../../node_modules/.pnpm/nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5.13__@swc+types@0._f0f9b27671d05bdbd0153da3f84a242d/node_modules/nx/src/utils/code-frames.js
|
|
3254
1779
|
var require_code_frames = __commonJS({
|
|
3255
|
-
"../../node_modules/.pnpm/nx@22.
|
|
1780
|
+
"../../node_modules/.pnpm/nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5.13__@swc+types@0._f0f9b27671d05bdbd0153da3f84a242d/node_modules/nx/src/utils/code-frames.js"(exports2) {
|
|
3256
1781
|
"use strict";
|
|
3257
1782
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3258
1783
|
exports2.codeFrameColumns = codeFrameColumns;
|
|
3259
|
-
var
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
};
|
|
3266
|
-
}
|
|
1784
|
+
var pc = require_picocolors();
|
|
1785
|
+
var defs = {
|
|
1786
|
+
gutter: pc.gray,
|
|
1787
|
+
marker: (text) => pc.red(pc.bold(text)),
|
|
1788
|
+
message: (text) => pc.red(pc.bold(text))
|
|
1789
|
+
};
|
|
3267
1790
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
3268
1791
|
function getMarkerLines(loc, source, opts = {}) {
|
|
3269
1792
|
const startLoc = {
|
|
@@ -3319,7 +1842,6 @@ var require_code_frames = __commonJS({
|
|
|
3319
1842
|
return { start, end, markerLines };
|
|
3320
1843
|
}
|
|
3321
1844
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
3322
|
-
const defs = getDefs(chalk);
|
|
3323
1845
|
const lines = rawLines.split(NEWLINE);
|
|
3324
1846
|
const { start, end, markerLines } = getMarkerLines(loc, lines, opts);
|
|
3325
1847
|
const numberMaxWidth = String(end).length;
|
|
@@ -3346,14 +1868,14 @@ var require_code_frames = __commonJS({
|
|
|
3346
1868
|
return ` ${defs.gutter(gutter)}${line}`;
|
|
3347
1869
|
}
|
|
3348
1870
|
}).join("\n");
|
|
3349
|
-
return
|
|
1871
|
+
return pc.reset(frame);
|
|
3350
1872
|
}
|
|
3351
1873
|
}
|
|
3352
1874
|
});
|
|
3353
1875
|
|
|
3354
|
-
// ../../node_modules/.pnpm/nx@22.
|
|
1876
|
+
// ../../node_modules/.pnpm/nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5.13__@swc+types@0._f0f9b27671d05bdbd0153da3f84a242d/node_modules/nx/src/utils/json.js
|
|
3355
1877
|
var require_json = __commonJS({
|
|
3356
|
-
"../../node_modules/.pnpm/nx@22.
|
|
1878
|
+
"../../node_modules/.pnpm/nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5.13__@swc+types@0._f0f9b27671d05bdbd0153da3f84a242d/node_modules/nx/src/utils/json.js"(exports2) {
|
|
3357
1879
|
"use strict";
|
|
3358
1880
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3359
1881
|
exports2.stripJsonComments = void 0;
|
|
@@ -10127,9 +8649,9 @@ var require_js_yaml = __commonJS({
|
|
|
10127
8649
|
}
|
|
10128
8650
|
});
|
|
10129
8651
|
|
|
10130
|
-
// ../../node_modules/.pnpm/nx@22.
|
|
8652
|
+
// ../../node_modules/.pnpm/nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5.13__@swc+types@0._f0f9b27671d05bdbd0153da3f84a242d/node_modules/nx/src/utils/fileutils.js
|
|
10131
8653
|
var require_fileutils = __commonJS({
|
|
10132
|
-
"../../node_modules/.pnpm/nx@22.
|
|
8654
|
+
"../../node_modules/.pnpm/nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5.13__@swc+types@0._f0f9b27671d05bdbd0153da3f84a242d/node_modules/nx/src/utils/fileutils.js"(exports2) {
|
|
10133
8655
|
"use strict";
|
|
10134
8656
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10135
8657
|
exports2.readJsonFile = readJsonFile;
|
|
@@ -10234,9 +8756,9 @@ var require_fileutils = __commonJS({
|
|
|
10234
8756
|
}
|
|
10235
8757
|
});
|
|
10236
8758
|
|
|
10237
|
-
// ../../node_modules/.pnpm/nx@22.
|
|
8759
|
+
// ../../node_modules/.pnpm/nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5.13__@swc+types@0._f0f9b27671d05bdbd0153da3f84a242d/node_modules/nx/src/utils/workspace-root.js
|
|
10238
8760
|
var require_workspace_root = __commonJS({
|
|
10239
|
-
"../../node_modules/.pnpm/nx@22.
|
|
8761
|
+
"../../node_modules/.pnpm/nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5.13__@swc+types@0._f0f9b27671d05bdbd0153da3f84a242d/node_modules/nx/src/utils/workspace-root.js"(exports2) {
|
|
10240
8762
|
"use strict";
|
|
10241
8763
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10242
8764
|
exports2.workspaceRoot = void 0;
|
|
@@ -10269,9 +8791,9 @@ var require_workspace_root = __commonJS({
|
|
|
10269
8791
|
}
|
|
10270
8792
|
});
|
|
10271
8793
|
|
|
10272
|
-
// ../../node_modules/.pnpm/nx@22.
|
|
8794
|
+
// ../../node_modules/.pnpm/nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5.13__@swc+types@0._f0f9b27671d05bdbd0153da3f84a242d/node_modules/nx/src/utils/find-workspace-root.js
|
|
10273
8795
|
var require_find_workspace_root = __commonJS({
|
|
10274
|
-
"../../node_modules/.pnpm/nx@22.
|
|
8796
|
+
"../../node_modules/.pnpm/nx@22.5.1_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5.13__@swc+types@0._f0f9b27671d05bdbd0153da3f84a242d/node_modules/nx/src/utils/find-workspace-root.js"(exports2) {
|
|
10275
8797
|
"use strict";
|
|
10276
8798
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10277
8799
|
exports2.findWorkspaceRoot = findWorkspaceRoot2;
|