@terrazzo/plugin-sass 0.10.0 → 0.10.1
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/CHANGELOG.md +12 -0
- package/dist/index.js +223 -205
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -517,9 +517,9 @@ var parse_default$1 = parse$1;
|
|
|
517
517
|
function parseRgb$1(color, parsed) {
|
|
518
518
|
if (!parsed || parsed[0] !== "rgb" && parsed[0] !== "rgba") return void 0;
|
|
519
519
|
const res = { mode: "rgb" };
|
|
520
|
-
const [, r$1, g, b, alpha] = parsed;
|
|
521
|
-
if (r$1.type === Tok$1.Hue || g.type === Tok$1.Hue || b.type === Tok$1.Hue) return void 0;
|
|
522
|
-
if (r$1.type !== Tok$1.None) res.r = r$1.type === Tok$1.Number ? r$1.value / 255 : r$1.value / 100;
|
|
520
|
+
const [, r$1$1, g, b, alpha] = parsed;
|
|
521
|
+
if (r$1$1.type === Tok$1.Hue || g.type === Tok$1.Hue || b.type === Tok$1.Hue) return void 0;
|
|
522
|
+
if (r$1$1.type !== Tok$1.None) res.r = r$1$1.type === Tok$1.Number ? r$1$1.value / 255 : r$1$1.value / 100;
|
|
523
523
|
if (g.type !== Tok$1.None) res.g = g.type === Tok$1.Number ? g.value / 255 : g.value / 100;
|
|
524
524
|
if (b.type !== Tok$1.None) res.b = b.type === Tok$1.Number ? b.value / 255 : b.value / 100;
|
|
525
525
|
if (alpha.type !== Tok$1.None) res.alpha = Math.min(1, Math.max(0, alpha.type === Tok$1.Number ? alpha.value : alpha.value / 100));
|
|
@@ -608,14 +608,14 @@ const definition$15$1 = {
|
|
|
608
608
|
var definition_default$12$1 = definition$15$1;
|
|
609
609
|
const linearize$2$1 = (v = 0) => Math.pow(Math.abs(v), 563 / 256) * Math.sign(v);
|
|
610
610
|
const convertA98ToXyz65$1 = (a98) => {
|
|
611
|
-
let r$1 = linearize$2$1(a98.r);
|
|
611
|
+
let r$1$1 = linearize$2$1(a98.r);
|
|
612
612
|
let g = linearize$2$1(a98.g);
|
|
613
613
|
let b = linearize$2$1(a98.b);
|
|
614
614
|
let res = {
|
|
615
615
|
mode: "xyz65",
|
|
616
|
-
x: .5766690429101305 * r$1 + .1855582379065463 * g + .1882286462349947 * b,
|
|
617
|
-
y: .297344975250536 * r$1 + .6273635662554661 * g + .0752914584939979 * b,
|
|
618
|
-
z: .0270313613864123 * r$1 + .0706888525358272 * g + .9913375368376386 * b
|
|
616
|
+
x: .5766690429101305 * r$1$1 + .1855582379065463 * g + .1882286462349947 * b,
|
|
617
|
+
y: .297344975250536 * r$1$1 + .6273635662554661 * g + .0752914584939979 * b,
|
|
618
|
+
z: .0270313613864123 * r$1$1 + .0706888525358272 * g + .9913375368376386 * b
|
|
619
619
|
};
|
|
620
620
|
if (a98.alpha !== void 0) res.alpha = a98.alpha;
|
|
621
621
|
return res;
|
|
@@ -641,10 +641,10 @@ const fn$3$1 = (c$1$1 = 0) => {
|
|
|
641
641
|
if (abs <= .04045) return c$1$1 / 12.92;
|
|
642
642
|
return (Math.sign(c$1$1) || 1) * Math.pow((abs + .055) / 1.055, 2.4);
|
|
643
643
|
};
|
|
644
|
-
const convertRgbToLrgb$1 = ({ r: r$1, g, b, alpha }) => {
|
|
644
|
+
const convertRgbToLrgb$1 = ({ r: r$1$1, g, b, alpha }) => {
|
|
645
645
|
let res = {
|
|
646
646
|
mode: "lrgb",
|
|
647
|
-
r: fn$3$1(r$1),
|
|
647
|
+
r: fn$3$1(r$1$1),
|
|
648
648
|
g: fn$3$1(g),
|
|
649
649
|
b: fn$3$1(b)
|
|
650
650
|
};
|
|
@@ -653,12 +653,12 @@ const convertRgbToLrgb$1 = ({ r: r$1, g, b, alpha }) => {
|
|
|
653
653
|
};
|
|
654
654
|
var convertRgbToLrgb_default$1 = convertRgbToLrgb$1;
|
|
655
655
|
const convertRgbToXyz65$1 = (rgb$2) => {
|
|
656
|
-
let { r: r$1, g, b, alpha } = convertRgbToLrgb_default$1(rgb$2);
|
|
656
|
+
let { r: r$1$1, g, b, alpha } = convertRgbToLrgb_default$1(rgb$2);
|
|
657
657
|
let res = {
|
|
658
658
|
mode: "xyz65",
|
|
659
|
-
x: .4123907992659593 * r$1 + .357584339383878 * g + .1804807884018343 * b,
|
|
660
|
-
y: .2126390058715102 * r$1 + .715168678767756 * g + .0721923153607337 * b,
|
|
661
|
-
z: .0193308187155918 * r$1 + .119194779794626 * g + .9505321522496607 * b
|
|
659
|
+
x: .4123907992659593 * r$1$1 + .357584339383878 * g + .1804807884018343 * b,
|
|
660
|
+
y: .2126390058715102 * r$1$1 + .715168678767756 * g + .0721923153607337 * b,
|
|
661
|
+
z: .0193308187155918 * r$1$1 + .119194779794626 * g + .9505321522496607 * b
|
|
662
662
|
};
|
|
663
663
|
if (alpha !== void 0) res.alpha = alpha;
|
|
664
664
|
return res;
|
|
@@ -669,10 +669,10 @@ const fn$2$1 = (c$1$1 = 0) => {
|
|
|
669
669
|
if (abs > .0031308) return (Math.sign(c$1$1) || 1) * (1.055 * Math.pow(abs, 1 / 2.4) - .055);
|
|
670
670
|
return c$1$1 * 12.92;
|
|
671
671
|
};
|
|
672
|
-
const convertLrgbToRgb$1 = ({ r: r$1, g, b, alpha }, mode = "rgb") => {
|
|
672
|
+
const convertLrgbToRgb$1 = ({ r: r$1$1, g, b, alpha }, mode = "rgb") => {
|
|
673
673
|
let res = {
|
|
674
674
|
mode,
|
|
675
|
-
r: fn$2$1(r$1),
|
|
675
|
+
r: fn$2$1(r$1$1),
|
|
676
676
|
g: fn$2$1(g),
|
|
677
677
|
b: fn$2$1(b)
|
|
678
678
|
};
|
|
@@ -770,17 +770,17 @@ function convertHslToRgb$1({ h, s, l, alpha }) {
|
|
|
770
770
|
if (alpha !== void 0) res.alpha = alpha;
|
|
771
771
|
return res;
|
|
772
772
|
}
|
|
773
|
-
function convertRgbToHsl$1({ r: r$1, g, b, alpha }) {
|
|
774
|
-
if (r$1 === void 0) r$1 = 0;
|
|
773
|
+
function convertRgbToHsl$1({ r: r$1$1, g, b, alpha }) {
|
|
774
|
+
if (r$1$1 === void 0) r$1$1 = 0;
|
|
775
775
|
if (g === void 0) g = 0;
|
|
776
776
|
if (b === void 0) b = 0;
|
|
777
|
-
let M = Math.max(r$1, g, b), m = Math.min(r$1, g, b);
|
|
777
|
+
let M = Math.max(r$1$1, g, b), m = Math.min(r$1$1, g, b);
|
|
778
778
|
let res = {
|
|
779
779
|
mode: "hsl",
|
|
780
780
|
s: M === m ? 0 : (M - m) / (1 - Math.abs(M + m - 1)),
|
|
781
781
|
l: .5 * (M + m)
|
|
782
782
|
};
|
|
783
|
-
if (M - m !== 0) res.h = (M === r$1 ? (g - b) / (M - m) + (g < b) * 6 : M === g ? (b - r$1) / (M - m) + 2 : (r$1 - g) / (M - m) + 4) * 60;
|
|
783
|
+
if (M - m !== 0) res.h = (M === r$1$1 ? (g - b) / (M - m) + (g < b) * 6 : M === g ? (b - r$1$1) / (M - m) + 2 : (r$1$1 - g) / (M - m) + 4) * 60;
|
|
784
784
|
if (alpha !== void 0) res.alpha = alpha;
|
|
785
785
|
return res;
|
|
786
786
|
}
|
|
@@ -968,17 +968,17 @@ function convertHsvToRgb$1({ h, s, v, alpha }) {
|
|
|
968
968
|
if (alpha !== void 0) res.alpha = alpha;
|
|
969
969
|
return res;
|
|
970
970
|
}
|
|
971
|
-
function convertRgbToHsv$1({ r: r$1, g, b, alpha }) {
|
|
972
|
-
if (r$1 === void 0) r$1 = 0;
|
|
971
|
+
function convertRgbToHsv$1({ r: r$1$1, g, b, alpha }) {
|
|
972
|
+
if (r$1$1 === void 0) r$1$1 = 0;
|
|
973
973
|
if (g === void 0) g = 0;
|
|
974
974
|
if (b === void 0) b = 0;
|
|
975
|
-
let M = Math.max(r$1, g, b), m = Math.min(r$1, g, b);
|
|
975
|
+
let M = Math.max(r$1$1, g, b), m = Math.min(r$1$1, g, b);
|
|
976
976
|
let res = {
|
|
977
977
|
mode: "hsv",
|
|
978
978
|
s: M === 0 ? 0 : 1 - m / M,
|
|
979
979
|
v: M
|
|
980
980
|
};
|
|
981
|
-
if (M - m !== 0) res.h = (M === r$1 ? (g - b) / (M - m) + (g < b) * 6 : M === g ? (b - r$1) / (M - m) + 2 : (r$1 - g) / (M - m) + 4) * 60;
|
|
981
|
+
if (M - m !== 0) res.h = (M === r$1$1 ? (g - b) / (M - m) + (g < b) * 6 : M === g ? (b - r$1$1) / (M - m) + 2 : (r$1$1 - g) / (M - m) + 4) * 60;
|
|
982
982
|
if (alpha !== void 0) res.alpha = alpha;
|
|
983
983
|
return res;
|
|
984
984
|
}
|
|
@@ -1139,12 +1139,12 @@ var convertXyz50ToRgb_default$1 = convertXyz50ToRgb$1;
|
|
|
1139
1139
|
const convertLabToRgb$1 = (lab) => convertXyz50ToRgb_default$1(convertLabToXyz50_default$1(lab));
|
|
1140
1140
|
var convertLabToRgb_default$1 = convertLabToRgb$1;
|
|
1141
1141
|
const convertRgbToXyz50$1 = (rgb$2) => {
|
|
1142
|
-
let { r: r$1, g, b, alpha } = convertRgbToLrgb_default$1(rgb$2);
|
|
1142
|
+
let { r: r$1$1, g, b, alpha } = convertRgbToLrgb_default$1(rgb$2);
|
|
1143
1143
|
let res = {
|
|
1144
1144
|
mode: "xyz50",
|
|
1145
|
-
x: .436065742824811 * r$1 + .3851514688337912 * g + .14307845442264197 * b,
|
|
1146
|
-
y: .22249319175623702 * r$1 + .7168870538238823 * g + .06061979053616537 * b,
|
|
1147
|
-
z: .013923904500943465 * r$1 + .09708128566574634 * g + .7140993584005155 * b
|
|
1145
|
+
x: .436065742824811 * r$1$1 + .3851514688337912 * g + .14307845442264197 * b,
|
|
1146
|
+
y: .22249319175623702 * r$1$1 + .7168870538238823 * g + .06061979053616537 * b,
|
|
1147
|
+
z: .013923904500943465 * r$1$1 + .09708128566574634 * g + .7140993584005155 * b
|
|
1148
1148
|
};
|
|
1149
1149
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1150
1150
|
return res;
|
|
@@ -1204,8 +1204,8 @@ const definition$10$1 = {
|
|
|
1204
1204
|
],
|
|
1205
1205
|
ranges: {
|
|
1206
1206
|
l: [0, 100],
|
|
1207
|
-
a: [-
|
|
1208
|
-
b: [-
|
|
1207
|
+
a: [-125, 125],
|
|
1208
|
+
b: [-125, 125]
|
|
1209
1209
|
},
|
|
1210
1210
|
parse: [parseLab_default$1],
|
|
1211
1211
|
serialize: (c$1$1) => `lab(${c$1$1.l !== void 0 ? c$1$1.l : "none"} ${c$1$1.a !== void 0 ? c$1$1.a : "none"} ${c$1$1.b !== void 0 ? c$1$1.b : "none"}${c$1$1.alpha < 1 ? ` / ${c$1$1.alpha}` : ""})`,
|
|
@@ -1281,8 +1281,8 @@ const definition$9$1 = {
|
|
|
1281
1281
|
},
|
|
1282
1282
|
ranges: {
|
|
1283
1283
|
l: [0, 100],
|
|
1284
|
-
a: [-
|
|
1285
|
-
b: [-
|
|
1284
|
+
a: [-125, 125],
|
|
1285
|
+
b: [-125, 125]
|
|
1286
1286
|
}
|
|
1287
1287
|
};
|
|
1288
1288
|
var definition_default$4$1 = definition$9$1;
|
|
@@ -1381,31 +1381,31 @@ const convertOklabToLrgb$1 = ({ l, a, b, alpha }) => {
|
|
|
1381
1381
|
if (l === void 0) l = 0;
|
|
1382
1382
|
if (a === void 0) a = 0;
|
|
1383
1383
|
if (b === void 0) b = 0;
|
|
1384
|
-
let L = Math.pow(l
|
|
1385
|
-
let M = Math.pow(l
|
|
1386
|
-
let S = Math.pow(l
|
|
1384
|
+
let L = Math.pow(l + .3963377773761749 * a + .2158037573099136 * b, 3);
|
|
1385
|
+
let M = Math.pow(l - .1055613458156586 * a - .0638541728258133 * b, 3);
|
|
1386
|
+
let S = Math.pow(l - .0894841775298119 * a - 1.2914855480194092 * b, 3);
|
|
1387
1387
|
let res = {
|
|
1388
1388
|
mode: "lrgb",
|
|
1389
|
-
r: 4.
|
|
1390
|
-
g: -1.
|
|
1391
|
-
b: -.
|
|
1389
|
+
r: 4.076741636075957 * L - 3.3077115392580616 * M + .2309699031821044 * S,
|
|
1390
|
+
g: -1.2684379732850317 * L + 2.6097573492876887 * M - .3413193760026573 * S,
|
|
1391
|
+
b: -.0041960761386756 * L - .7034186179359362 * M + 1.7076146940746117 * S
|
|
1392
1392
|
};
|
|
1393
1393
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1394
1394
|
return res;
|
|
1395
1395
|
};
|
|
1396
1396
|
var convertOklabToLrgb_default$1 = convertOklabToLrgb$1;
|
|
1397
|
-
const convertLrgbToOklab$1 = ({ r: r$1, g, b, alpha }) => {
|
|
1398
|
-
if (r$1 === void 0) r$1 = 0;
|
|
1397
|
+
const convertLrgbToOklab$1 = ({ r: r$1$1, g, b, alpha }) => {
|
|
1398
|
+
if (r$1$1 === void 0) r$1$1 = 0;
|
|
1399
1399
|
if (g === void 0) g = 0;
|
|
1400
1400
|
if (b === void 0) b = 0;
|
|
1401
|
-
let L = Math.cbrt(.
|
|
1402
|
-
let M = Math.cbrt(.
|
|
1403
|
-
let S = Math.cbrt(.
|
|
1401
|
+
let L = Math.cbrt(.412221469470763 * r$1$1 + .5363325372617348 * g + .0514459932675022 * b);
|
|
1402
|
+
let M = Math.cbrt(.2119034958178252 * r$1$1 + .6806995506452344 * g + .1073969535369406 * b);
|
|
1403
|
+
let S = Math.cbrt(.0883024591900564 * r$1$1 + .2817188391361215 * g + .6299787016738222 * b);
|
|
1404
1404
|
let res = {
|
|
1405
1405
|
mode: "oklab",
|
|
1406
|
-
l: .
|
|
1407
|
-
a: 1.
|
|
1408
|
-
b: .
|
|
1406
|
+
l: .210454268309314 * L + .7936177747023054 * M - .0040720430116193 * S,
|
|
1407
|
+
a: 1.9779985324311684 * L - 2.42859224204858 * M + .450593709617411 * S,
|
|
1408
|
+
b: .0259040424655478 * L + .7827717124575296 * M - .8086757549230774 * S
|
|
1409
1409
|
};
|
|
1410
1410
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1411
1411
|
return res;
|
|
@@ -1489,12 +1489,12 @@ const definition$5$1 = {
|
|
|
1489
1489
|
};
|
|
1490
1490
|
var definition_default$8$1 = definition$5$1;
|
|
1491
1491
|
const convertP3ToXyz65$1 = (rgb$2) => {
|
|
1492
|
-
let { r: r$1, g, b, alpha } = convertRgbToLrgb_default$1(rgb$2);
|
|
1492
|
+
let { r: r$1$1, g, b, alpha } = convertRgbToLrgb_default$1(rgb$2);
|
|
1493
1493
|
let res = {
|
|
1494
1494
|
mode: "xyz65",
|
|
1495
|
-
x: .486570948648216 * r$1 + .265667693169093 * g + .1982172852343625 * b,
|
|
1496
|
-
y: .2289745640697487 * r$1 + .6917385218365062 * g + .079286914093745 * b,
|
|
1497
|
-
z: 0 * r$1 + .0451133818589026 * g + 1.043944368900976 * b
|
|
1495
|
+
x: .486570948648216 * r$1$1 + .265667693169093 * g + .1982172852343625 * b,
|
|
1496
|
+
y: .2289745640697487 * r$1$1 + .6917385218365062 * g + .079286914093745 * b,
|
|
1497
|
+
z: 0 * r$1$1 + .0451133818589026 * g + 1.043944368900976 * b
|
|
1498
1498
|
};
|
|
1499
1499
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1500
1500
|
return res;
|
|
@@ -1553,14 +1553,14 @@ const linearize$1$1 = (v = 0) => {
|
|
|
1553
1553
|
return v / 16;
|
|
1554
1554
|
};
|
|
1555
1555
|
const convertProphotoToXyz50$1 = (prophoto) => {
|
|
1556
|
-
let r$1 = linearize$1$1(prophoto.r);
|
|
1556
|
+
let r$1$1 = linearize$1$1(prophoto.r);
|
|
1557
1557
|
let g = linearize$1$1(prophoto.g);
|
|
1558
1558
|
let b = linearize$1$1(prophoto.b);
|
|
1559
1559
|
let res = {
|
|
1560
1560
|
mode: "xyz50",
|
|
1561
|
-
x: .7977666449006423 * r$1 + .1351812974005331 * g + .0313477341283922 * b,
|
|
1562
|
-
y: .2880748288194013 * r$1 + .7118352342418731 * g + 899369387256e-16 * b,
|
|
1563
|
-
z: 0 * r$1 + 0 * g + .8251046025104602 * b
|
|
1561
|
+
x: .7977666449006423 * r$1$1 + .1351812974005331 * g + .0313477341283922 * b,
|
|
1562
|
+
y: .2880748288194013 * r$1$1 + .7118352342418731 * g + 899369387256e-16 * b,
|
|
1563
|
+
z: 0 * r$1$1 + 0 * g + .8251046025104602 * b
|
|
1564
1564
|
};
|
|
1565
1565
|
if (prophoto.alpha !== void 0) res.alpha = prophoto.alpha;
|
|
1566
1566
|
return res;
|
|
@@ -1610,14 +1610,14 @@ const linearize$3 = (v = 0) => {
|
|
|
1610
1610
|
return (Math.sign(v) || 1) * Math.pow((abs + α$2 - 1) / α$2, 1 / .45);
|
|
1611
1611
|
};
|
|
1612
1612
|
const convertRec2020ToXyz65$1 = (rec2020) => {
|
|
1613
|
-
let r$1 = linearize$3(rec2020.r);
|
|
1613
|
+
let r$1$1 = linearize$3(rec2020.r);
|
|
1614
1614
|
let g = linearize$3(rec2020.g);
|
|
1615
1615
|
let b = linearize$3(rec2020.b);
|
|
1616
1616
|
let res = {
|
|
1617
1617
|
mode: "xyz65",
|
|
1618
|
-
x: .6369580483012911 * r$1 + .1446169035862083 * g + .1688809751641721 * b,
|
|
1619
|
-
y: .262700212011267 * r$1 + .6779980715188708 * g + .059301716469862 * b,
|
|
1620
|
-
z: 0 * r$1 + .0280726930490874 * g + 1.0609850577107909 * b
|
|
1618
|
+
x: .6369580483012911 * r$1$1 + .1446169035862083 * g + .1688809751641721 * b,
|
|
1619
|
+
y: .262700212011267 * r$1$1 + .6779980715188708 * g + .059301716469862 * b,
|
|
1620
|
+
z: 0 * r$1$1 + .0280726930490874 * g + 1.0609850577107909 * b
|
|
1621
1621
|
};
|
|
1622
1622
|
if (rec2020.alpha !== void 0) res.alpha = rec2020.alpha;
|
|
1623
1623
|
return res;
|
|
@@ -1901,10 +1901,10 @@ const modeOkhsv$1 = {
|
|
|
1901
1901
|
}
|
|
1902
1902
|
};
|
|
1903
1903
|
var modeOkhsv_default$1 = modeOkhsv$1;
|
|
1904
|
-
const r = (value, precision) => Math.round(value * (precision = Math.pow(10, precision))) / precision;
|
|
1905
|
-
const round = (precision = 4) => (value) => typeof value === "number" ? r(value, precision) : value;
|
|
1906
|
-
var round_default = round;
|
|
1907
|
-
let twoDecimals = round_default(2);
|
|
1904
|
+
const r$1 = (value, precision) => Math.round(value * (precision = Math.pow(10, precision))) / precision;
|
|
1905
|
+
const round$1 = (precision = 4) => (value) => typeof value === "number" ? r$1(value, precision) : value;
|
|
1906
|
+
var round_default$1 = round$1;
|
|
1907
|
+
let twoDecimals = round_default$1(2);
|
|
1908
1908
|
const rgb$1 = converter_default$1("rgb");
|
|
1909
1909
|
const hsl = converter_default$1("hsl");
|
|
1910
1910
|
const rgb = converter_default$1("rgb");
|
|
@@ -1926,10 +1926,16 @@ const converters$2 = {
|
|
|
1926
1926
|
xyz50: useMode$1(definition_default$13$1),
|
|
1927
1927
|
xyz65: useMode$1(definition_default$14$1)
|
|
1928
1928
|
};
|
|
1929
|
+
const DEPTH_ROUNDING$1 = {
|
|
1930
|
+
24: round_default$1(4),
|
|
1931
|
+
30: round_default$1(4),
|
|
1932
|
+
36: round_default$1(5),
|
|
1933
|
+
48: round_default$1(6)
|
|
1934
|
+
};
|
|
1929
1935
|
const FORMAT_ID = "css";
|
|
1930
1936
|
|
|
1931
1937
|
//#endregion
|
|
1932
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
1938
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/rgb/parseNumber.js
|
|
1933
1939
|
const parseNumber = (color, len) => {
|
|
1934
1940
|
if (typeof color !== "number") return;
|
|
1935
1941
|
if (len === 3) return {
|
|
@@ -1962,7 +1968,7 @@ const parseNumber = (color, len) => {
|
|
|
1962
1968
|
var parseNumber_default = parseNumber;
|
|
1963
1969
|
|
|
1964
1970
|
//#endregion
|
|
1965
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
1971
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/colors/named.js
|
|
1966
1972
|
const named = {
|
|
1967
1973
|
aliceblue: 15792383,
|
|
1968
1974
|
antiquewhite: 16444375,
|
|
@@ -2116,14 +2122,14 @@ const named = {
|
|
|
2116
2122
|
var named_default = named;
|
|
2117
2123
|
|
|
2118
2124
|
//#endregion
|
|
2119
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2125
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/rgb/parseNamed.js
|
|
2120
2126
|
const parseNamed = (color) => {
|
|
2121
2127
|
return parseNumber_default(named_default[color.toLowerCase()], 6);
|
|
2122
2128
|
};
|
|
2123
2129
|
var parseNamed_default = parseNamed;
|
|
2124
2130
|
|
|
2125
2131
|
//#endregion
|
|
2126
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2132
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/rgb/parseHex.js
|
|
2127
2133
|
const hex = /^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i;
|
|
2128
2134
|
const parseHex = (color) => {
|
|
2129
2135
|
let match;
|
|
@@ -2132,7 +2138,7 @@ const parseHex = (color) => {
|
|
|
2132
2138
|
var parseHex_default = parseHex;
|
|
2133
2139
|
|
|
2134
2140
|
//#endregion
|
|
2135
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2141
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/util/regex.js
|
|
2136
2142
|
const num$1 = "([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)";
|
|
2137
2143
|
const num_none = `(?:${num$1}|none)`;
|
|
2138
2144
|
const per = `${num$1}%`;
|
|
@@ -2145,7 +2151,7 @@ const c = `\\s*,\\s*`;
|
|
|
2145
2151
|
const rx_num_per_none = new RegExp("^" + num_per_none + "$");
|
|
2146
2152
|
|
|
2147
2153
|
//#endregion
|
|
2148
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2154
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/rgb/parseRgbLegacy.js
|
|
2149
2155
|
const rgb_num_old = new RegExp(`^rgba?\\(\\s*${num$1}${c}${num$1}${c}${num$1}\\s*(?:,\\s*${num_per}\\s*)?\\)$`);
|
|
2150
2156
|
const rgb_per_old = new RegExp(`^rgba?\\(\\s*${per}${c}${per}${c}${per}\\s*(?:,\\s*${num_per}\\s*)?\\)$`);
|
|
2151
2157
|
const parseRgbLegacy = (color) => {
|
|
@@ -2167,7 +2173,7 @@ const parseRgbLegacy = (color) => {
|
|
|
2167
2173
|
var parseRgbLegacy_default = parseRgbLegacy;
|
|
2168
2174
|
|
|
2169
2175
|
//#endregion
|
|
2170
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2176
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/_prepare.js
|
|
2171
2177
|
const prepare = (color, mode) => color === void 0 ? void 0 : typeof color !== "object" ? parse_default(color) : color.mode !== void 0 ? color : mode ? {
|
|
2172
2178
|
...color,
|
|
2173
2179
|
mode
|
|
@@ -2175,12 +2181,12 @@ const prepare = (color, mode) => color === void 0 ? void 0 : typeof color !== "o
|
|
|
2175
2181
|
var _prepare_default = prepare;
|
|
2176
2182
|
|
|
2177
2183
|
//#endregion
|
|
2178
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2184
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/converter.js
|
|
2179
2185
|
const converter = (target_mode = "rgb") => (color) => (color = _prepare_default(color, target_mode)) !== void 0 ? color.mode === target_mode ? color : converters$1[color.mode][target_mode] ? converters$1[color.mode][target_mode](color) : target_mode === "rgb" ? converters$1[color.mode].rgb(color) : converters$1.rgb[target_mode](converters$1[color.mode].rgb(color)) : void 0;
|
|
2180
2186
|
var converter_default = converter;
|
|
2181
2187
|
|
|
2182
2188
|
//#endregion
|
|
2183
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2189
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/modes.js
|
|
2184
2190
|
const converters$1 = {};
|
|
2185
2191
|
const modes = {};
|
|
2186
2192
|
const parsers = [];
|
|
@@ -2220,7 +2226,7 @@ const useParser = (parser, mode) => {
|
|
|
2220
2226
|
};
|
|
2221
2227
|
|
|
2222
2228
|
//#endregion
|
|
2223
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2229
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/parse.js
|
|
2224
2230
|
const IdentStartCodePoint = /[^\x00-\x7F]|[a-zA-Z_]/;
|
|
2225
2231
|
const IdentCodePoint = /[^\x00-\x7F]|[-\w]/;
|
|
2226
2232
|
const Tok = {
|
|
@@ -2474,13 +2480,13 @@ const parse = (color) => {
|
|
|
2474
2480
|
var parse_default = parse;
|
|
2475
2481
|
|
|
2476
2482
|
//#endregion
|
|
2477
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2483
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/rgb/parseRgb.js
|
|
2478
2484
|
function parseRgb(color, parsed) {
|
|
2479
2485
|
if (!parsed || parsed[0] !== "rgb" && parsed[0] !== "rgba") return void 0;
|
|
2480
2486
|
const res = { mode: "rgb" };
|
|
2481
|
-
const [, r$
|
|
2482
|
-
if (r$
|
|
2483
|
-
if (r$
|
|
2487
|
+
const [, r$2, g, b, alpha] = parsed;
|
|
2488
|
+
if (r$2.type === Tok.Hue || g.type === Tok.Hue || b.type === Tok.Hue) return void 0;
|
|
2489
|
+
if (r$2.type !== Tok.None) res.r = r$2.type === Tok.Number ? r$2.value / 255 : r$2.value / 100;
|
|
2484
2490
|
if (g.type !== Tok.None) res.g = g.type === Tok.Number ? g.value / 255 : g.value / 100;
|
|
2485
2491
|
if (b.type !== Tok.None) res.b = b.type === Tok.Number ? b.value / 255 : b.value / 100;
|
|
2486
2492
|
if (alpha.type !== Tok.None) res.alpha = Math.min(1, Math.max(0, alpha.type === Tok.Number ? alpha.value : alpha.value / 100));
|
|
@@ -2489,7 +2495,7 @@ function parseRgb(color, parsed) {
|
|
|
2489
2495
|
var parseRgb_default = parseRgb;
|
|
2490
2496
|
|
|
2491
2497
|
//#endregion
|
|
2492
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2498
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/rgb/parseTransparent.js
|
|
2493
2499
|
const parseTransparent = (c$2) => c$2 === "transparent" ? {
|
|
2494
2500
|
mode: "rgb",
|
|
2495
2501
|
r: 0,
|
|
@@ -2500,11 +2506,11 @@ const parseTransparent = (c$2) => c$2 === "transparent" ? {
|
|
|
2500
2506
|
var parseTransparent_default = parseTransparent;
|
|
2501
2507
|
|
|
2502
2508
|
//#endregion
|
|
2503
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2509
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/interpolate/lerp.js
|
|
2504
2510
|
const lerp = (a, b, t) => a + t * (b - a);
|
|
2505
2511
|
|
|
2506
2512
|
//#endregion
|
|
2507
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2513
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/interpolate/piecewise.js
|
|
2508
2514
|
const get_classes = (arr) => {
|
|
2509
2515
|
let classes = [];
|
|
2510
2516
|
for (let i = 0; i < arr.length - 1; i++) {
|
|
@@ -2527,11 +2533,11 @@ const interpolatorPiecewise = (interpolator) => (arr) => {
|
|
|
2527
2533
|
};
|
|
2528
2534
|
|
|
2529
2535
|
//#endregion
|
|
2530
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2536
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/interpolate/linear.js
|
|
2531
2537
|
const interpolatorLinear = interpolatorPiecewise(lerp);
|
|
2532
2538
|
|
|
2533
2539
|
//#endregion
|
|
2534
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2540
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/fixup/alpha.js
|
|
2535
2541
|
const fixupAlpha = (arr) => {
|
|
2536
2542
|
let some_defined = false;
|
|
2537
2543
|
let res = arr.map((v) => {
|
|
@@ -2545,7 +2551,7 @@ const fixupAlpha = (arr) => {
|
|
|
2545
2551
|
};
|
|
2546
2552
|
|
|
2547
2553
|
//#endregion
|
|
2548
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2554
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/rgb/definition.js
|
|
2549
2555
|
const definition$15 = {
|
|
2550
2556
|
mode: "rgb",
|
|
2551
2557
|
channels: [
|
|
@@ -2587,17 +2593,17 @@ const definition$15 = {
|
|
|
2587
2593
|
var definition_default$12 = definition$15;
|
|
2588
2594
|
|
|
2589
2595
|
//#endregion
|
|
2590
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2596
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/a98/convertA98ToXyz65.js
|
|
2591
2597
|
const linearize$2 = (v = 0) => Math.pow(Math.abs(v), 563 / 256) * Math.sign(v);
|
|
2592
2598
|
const convertA98ToXyz65 = (a98) => {
|
|
2593
|
-
let r$
|
|
2599
|
+
let r$2 = linearize$2(a98.r);
|
|
2594
2600
|
let g = linearize$2(a98.g);
|
|
2595
2601
|
let b = linearize$2(a98.b);
|
|
2596
2602
|
let res = {
|
|
2597
2603
|
mode: "xyz65",
|
|
2598
|
-
x: .5766690429101305 * r$
|
|
2599
|
-
y: .297344975250536 * r$
|
|
2600
|
-
z: .0270313613864123 * r$
|
|
2604
|
+
x: .5766690429101305 * r$2 + .1855582379065463 * g + .1882286462349947 * b,
|
|
2605
|
+
y: .297344975250536 * r$2 + .6273635662554661 * g + .0752914584939979 * b,
|
|
2606
|
+
z: .0270313613864123 * r$2 + .0706888525358272 * g + .9913375368376386 * b
|
|
2601
2607
|
};
|
|
2602
2608
|
if (a98.alpha !== void 0) res.alpha = a98.alpha;
|
|
2603
2609
|
return res;
|
|
@@ -2605,7 +2611,7 @@ const convertA98ToXyz65 = (a98) => {
|
|
|
2605
2611
|
var convertA98ToXyz65_default = convertA98ToXyz65;
|
|
2606
2612
|
|
|
2607
2613
|
//#endregion
|
|
2608
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2614
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/a98/convertXyz65ToA98.js
|
|
2609
2615
|
const gamma$2 = (v) => Math.pow(Math.abs(v), 256 / 563) * Math.sign(v);
|
|
2610
2616
|
const convertXyz65ToA98 = ({ x, y, z, alpha }) => {
|
|
2611
2617
|
if (x === void 0) x = 0;
|
|
@@ -2623,16 +2629,16 @@ const convertXyz65ToA98 = ({ x, y, z, alpha }) => {
|
|
|
2623
2629
|
var convertXyz65ToA98_default = convertXyz65ToA98;
|
|
2624
2630
|
|
|
2625
2631
|
//#endregion
|
|
2626
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2632
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lrgb/convertRgbToLrgb.js
|
|
2627
2633
|
const fn$3 = (c$2 = 0) => {
|
|
2628
2634
|
const abs = Math.abs(c$2);
|
|
2629
2635
|
if (abs <= .04045) return c$2 / 12.92;
|
|
2630
2636
|
return (Math.sign(c$2) || 1) * Math.pow((abs + .055) / 1.055, 2.4);
|
|
2631
2637
|
};
|
|
2632
|
-
const convertRgbToLrgb = ({ r: r$
|
|
2638
|
+
const convertRgbToLrgb = ({ r: r$2, g, b, alpha }) => {
|
|
2633
2639
|
let res = {
|
|
2634
2640
|
mode: "lrgb",
|
|
2635
|
-
r: fn$3(r$
|
|
2641
|
+
r: fn$3(r$2),
|
|
2636
2642
|
g: fn$3(g),
|
|
2637
2643
|
b: fn$3(b)
|
|
2638
2644
|
};
|
|
@@ -2642,14 +2648,14 @@ const convertRgbToLrgb = ({ r: r$1, g, b, alpha }) => {
|
|
|
2642
2648
|
var convertRgbToLrgb_default = convertRgbToLrgb;
|
|
2643
2649
|
|
|
2644
2650
|
//#endregion
|
|
2645
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2651
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/xyz65/convertRgbToXyz65.js
|
|
2646
2652
|
const convertRgbToXyz65 = (rgb$2) => {
|
|
2647
|
-
let { r: r$
|
|
2653
|
+
let { r: r$2, g, b, alpha } = convertRgbToLrgb_default(rgb$2);
|
|
2648
2654
|
let res = {
|
|
2649
2655
|
mode: "xyz65",
|
|
2650
|
-
x: .4123907992659593 * r$
|
|
2651
|
-
y: .2126390058715102 * r$
|
|
2652
|
-
z: .0193308187155918 * r$
|
|
2656
|
+
x: .4123907992659593 * r$2 + .357584339383878 * g + .1804807884018343 * b,
|
|
2657
|
+
y: .2126390058715102 * r$2 + .715168678767756 * g + .0721923153607337 * b,
|
|
2658
|
+
z: .0193308187155918 * r$2 + .119194779794626 * g + .9505321522496607 * b
|
|
2653
2659
|
};
|
|
2654
2660
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2655
2661
|
return res;
|
|
@@ -2657,16 +2663,16 @@ const convertRgbToXyz65 = (rgb$2) => {
|
|
|
2657
2663
|
var convertRgbToXyz65_default = convertRgbToXyz65;
|
|
2658
2664
|
|
|
2659
2665
|
//#endregion
|
|
2660
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2666
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lrgb/convertLrgbToRgb.js
|
|
2661
2667
|
const fn$2 = (c$2 = 0) => {
|
|
2662
2668
|
const abs = Math.abs(c$2);
|
|
2663
2669
|
if (abs > .0031308) return (Math.sign(c$2) || 1) * (1.055 * Math.pow(abs, 1 / 2.4) - .055);
|
|
2664
2670
|
return c$2 * 12.92;
|
|
2665
2671
|
};
|
|
2666
|
-
const convertLrgbToRgb = ({ r: r$
|
|
2672
|
+
const convertLrgbToRgb = ({ r: r$2, g, b, alpha }, mode = "rgb") => {
|
|
2667
2673
|
let res = {
|
|
2668
2674
|
mode,
|
|
2669
|
-
r: fn$2(r$
|
|
2675
|
+
r: fn$2(r$2),
|
|
2670
2676
|
g: fn$2(g),
|
|
2671
2677
|
b: fn$2(b)
|
|
2672
2678
|
};
|
|
@@ -2676,7 +2682,7 @@ const convertLrgbToRgb = ({ r: r$1, g, b, alpha }, mode = "rgb") => {
|
|
|
2676
2682
|
var convertLrgbToRgb_default = convertLrgbToRgb;
|
|
2677
2683
|
|
|
2678
2684
|
//#endregion
|
|
2679
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2685
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/xyz65/convertXyz65ToRgb.js
|
|
2680
2686
|
const convertXyz65ToRgb = ({ x, y, z, alpha }) => {
|
|
2681
2687
|
if (x === void 0) x = 0;
|
|
2682
2688
|
if (y === void 0) y = 0;
|
|
@@ -2692,7 +2698,7 @@ const convertXyz65ToRgb = ({ x, y, z, alpha }) => {
|
|
|
2692
2698
|
var convertXyz65ToRgb_default = convertXyz65ToRgb;
|
|
2693
2699
|
|
|
2694
2700
|
//#endregion
|
|
2695
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2701
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/a98/definition.js
|
|
2696
2702
|
const definition$14 = {
|
|
2697
2703
|
...definition_default$12,
|
|
2698
2704
|
mode: "a98",
|
|
@@ -2710,12 +2716,12 @@ const definition$14 = {
|
|
|
2710
2716
|
var definition_default = definition$14;
|
|
2711
2717
|
|
|
2712
2718
|
//#endregion
|
|
2713
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2719
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/util/normalizeHue.js
|
|
2714
2720
|
const normalizeHue = (hue$3) => (hue$3 = hue$3 % 360) < 0 ? hue$3 + 360 : hue$3;
|
|
2715
2721
|
var normalizeHue_default = normalizeHue;
|
|
2716
2722
|
|
|
2717
2723
|
//#endregion
|
|
2718
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2724
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hsl/convertHslToRgb.js
|
|
2719
2725
|
function convertHslToRgb({ h, s, l, alpha }) {
|
|
2720
2726
|
h = normalizeHue_default(h !== void 0 ? h : 0);
|
|
2721
2727
|
if (s === void 0) s = 0;
|
|
@@ -2778,24 +2784,24 @@ function convertHslToRgb({ h, s, l, alpha }) {
|
|
|
2778
2784
|
}
|
|
2779
2785
|
|
|
2780
2786
|
//#endregion
|
|
2781
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2782
|
-
function convertRgbToHsl({ r: r$
|
|
2783
|
-
if (r$
|
|
2787
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hsl/convertRgbToHsl.js
|
|
2788
|
+
function convertRgbToHsl({ r: r$2, g, b, alpha }) {
|
|
2789
|
+
if (r$2 === void 0) r$2 = 0;
|
|
2784
2790
|
if (g === void 0) g = 0;
|
|
2785
2791
|
if (b === void 0) b = 0;
|
|
2786
|
-
let M = Math.max(r$
|
|
2792
|
+
let M = Math.max(r$2, g, b), m = Math.min(r$2, g, b);
|
|
2787
2793
|
let res = {
|
|
2788
2794
|
mode: "hsl",
|
|
2789
2795
|
s: M === m ? 0 : (M - m) / (1 - Math.abs(M + m - 1)),
|
|
2790
2796
|
l: .5 * (M + m)
|
|
2791
2797
|
};
|
|
2792
|
-
if (M - m !== 0) res.h = (M === r$
|
|
2798
|
+
if (M - m !== 0) res.h = (M === r$2 ? (g - b) / (M - m) + (g < b) * 6 : M === g ? (b - r$2) / (M - m) + 2 : (r$2 - g) / (M - m) + 4) * 60;
|
|
2793
2799
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2794
2800
|
return res;
|
|
2795
2801
|
}
|
|
2796
2802
|
|
|
2797
2803
|
//#endregion
|
|
2798
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2804
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/util/hue.js
|
|
2799
2805
|
const hueToDeg = (val, unit) => {
|
|
2800
2806
|
switch (unit) {
|
|
2801
2807
|
case "deg": return +val;
|
|
@@ -2807,7 +2813,7 @@ const hueToDeg = (val, unit) => {
|
|
|
2807
2813
|
var hue_default = hueToDeg;
|
|
2808
2814
|
|
|
2809
2815
|
//#endregion
|
|
2810
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2816
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hsl/parseHslLegacy.js
|
|
2811
2817
|
const hsl_old = new RegExp(`^hsla?\\(\\s*${hue$1}${c}${per}${c}${per}\\s*(?:,\\s*${num_per}\\s*)?\\)$`);
|
|
2812
2818
|
const parseHslLegacy = (color) => {
|
|
2813
2819
|
let match = color.match(hsl_old);
|
|
@@ -2824,7 +2830,7 @@ const parseHslLegacy = (color) => {
|
|
|
2824
2830
|
var parseHslLegacy_default = parseHslLegacy;
|
|
2825
2831
|
|
|
2826
2832
|
//#endregion
|
|
2827
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2833
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hsl/parseHsl.js
|
|
2828
2834
|
function parseHsl(color, parsed) {
|
|
2829
2835
|
if (!parsed || parsed[0] !== "hsl" && parsed[0] !== "hsla") return void 0;
|
|
2830
2836
|
const res = { mode: "hsl" };
|
|
@@ -2847,7 +2853,7 @@ function parseHsl(color, parsed) {
|
|
|
2847
2853
|
var parseHsl_default = parseHsl;
|
|
2848
2854
|
|
|
2849
2855
|
//#endregion
|
|
2850
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2856
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/fixup/hue.js
|
|
2851
2857
|
const hue = (hues, fn$5) => {
|
|
2852
2858
|
return hues.map((hue$3, idx, arr) => {
|
|
2853
2859
|
if (hue$3 === void 0) return hue$3;
|
|
@@ -2866,7 +2872,7 @@ const hue = (hues, fn$5) => {
|
|
|
2866
2872
|
const fixupHueShorter = (arr) => hue(arr, (d) => Math.abs(d) <= 180 ? d : d - 360 * Math.sign(d));
|
|
2867
2873
|
|
|
2868
2874
|
//#endregion
|
|
2869
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2875
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/difference.js
|
|
2870
2876
|
const differenceHueSaturation = (std, smp) => {
|
|
2871
2877
|
if (std.h === void 0 || smp.h === void 0 || !std.s || !smp.s) return 0;
|
|
2872
2878
|
let std_h = normalizeHue_default(std.h);
|
|
@@ -2890,7 +2896,7 @@ const differenceHueChroma = (std, smp) => {
|
|
|
2890
2896
|
};
|
|
2891
2897
|
|
|
2892
2898
|
//#endregion
|
|
2893
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2899
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/average.js
|
|
2894
2900
|
const averageAngle = (val) => {
|
|
2895
2901
|
let sum = val.reduce((sum$1, val$1) => {
|
|
2896
2902
|
if (val$1 !== void 0) {
|
|
@@ -2908,7 +2914,7 @@ const averageAngle = (val) => {
|
|
|
2908
2914
|
};
|
|
2909
2915
|
|
|
2910
2916
|
//#endregion
|
|
2911
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2917
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hsl/definition.js
|
|
2912
2918
|
const definition$13 = {
|
|
2913
2919
|
mode: "hsl",
|
|
2914
2920
|
toMode: { rgb: convertHslToRgb },
|
|
@@ -2941,7 +2947,7 @@ const definition$13 = {
|
|
|
2941
2947
|
var definition_default$1 = definition$13;
|
|
2942
2948
|
|
|
2943
2949
|
//#endregion
|
|
2944
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
2950
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hsv/convertHsvToRgb.js
|
|
2945
2951
|
function convertHsvToRgb({ h, s, v, alpha }) {
|
|
2946
2952
|
h = normalizeHue_default(h !== void 0 ? h : 0);
|
|
2947
2953
|
if (s === void 0) s = 0;
|
|
@@ -3003,24 +3009,24 @@ function convertHsvToRgb({ h, s, v, alpha }) {
|
|
|
3003
3009
|
}
|
|
3004
3010
|
|
|
3005
3011
|
//#endregion
|
|
3006
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3007
|
-
function convertRgbToHsv({ r: r$
|
|
3008
|
-
if (r$
|
|
3012
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hsv/convertRgbToHsv.js
|
|
3013
|
+
function convertRgbToHsv({ r: r$2, g, b, alpha }) {
|
|
3014
|
+
if (r$2 === void 0) r$2 = 0;
|
|
3009
3015
|
if (g === void 0) g = 0;
|
|
3010
3016
|
if (b === void 0) b = 0;
|
|
3011
|
-
let M = Math.max(r$
|
|
3017
|
+
let M = Math.max(r$2, g, b), m = Math.min(r$2, g, b);
|
|
3012
3018
|
let res = {
|
|
3013
3019
|
mode: "hsv",
|
|
3014
3020
|
s: M === 0 ? 0 : 1 - m / M,
|
|
3015
3021
|
v: M
|
|
3016
3022
|
};
|
|
3017
|
-
if (M - m !== 0) res.h = (M === r$
|
|
3023
|
+
if (M - m !== 0) res.h = (M === r$2 ? (g - b) / (M - m) + (g < b) * 6 : M === g ? (b - r$2) / (M - m) + 2 : (r$2 - g) / (M - m) + 4) * 60;
|
|
3018
3024
|
if (alpha !== void 0) res.alpha = alpha;
|
|
3019
3025
|
return res;
|
|
3020
3026
|
}
|
|
3021
3027
|
|
|
3022
3028
|
//#endregion
|
|
3023
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3029
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hsv/definition.js
|
|
3024
3030
|
const definition$12 = {
|
|
3025
3031
|
mode: "hsv",
|
|
3026
3032
|
toMode: { rgb: convertHsvToRgb },
|
|
@@ -3053,7 +3059,7 @@ const definition$12 = {
|
|
|
3053
3059
|
var definition_default$15 = definition$12;
|
|
3054
3060
|
|
|
3055
3061
|
//#endregion
|
|
3056
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3062
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hwb/convertHwbToRgb.js
|
|
3057
3063
|
function convertHwbToRgb({ h, w, b, alpha }) {
|
|
3058
3064
|
if (w === void 0) w = 0;
|
|
3059
3065
|
if (b === void 0) b = 0;
|
|
@@ -3071,7 +3077,7 @@ function convertHwbToRgb({ h, w, b, alpha }) {
|
|
|
3071
3077
|
}
|
|
3072
3078
|
|
|
3073
3079
|
//#endregion
|
|
3074
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3080
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hwb/convertRgbToHwb.js
|
|
3075
3081
|
function convertRgbToHwb(rgba) {
|
|
3076
3082
|
let hsv = convertRgbToHsv(rgba);
|
|
3077
3083
|
if (hsv === void 0) return void 0;
|
|
@@ -3088,7 +3094,7 @@ function convertRgbToHwb(rgba) {
|
|
|
3088
3094
|
}
|
|
3089
3095
|
|
|
3090
3096
|
//#endregion
|
|
3091
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3097
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hwb/parseHwb.js
|
|
3092
3098
|
function ParseHwb(color, parsed) {
|
|
3093
3099
|
if (!parsed || parsed[0] !== "hwb") return void 0;
|
|
3094
3100
|
const res = { mode: "hwb" };
|
|
@@ -3111,7 +3117,7 @@ function ParseHwb(color, parsed) {
|
|
|
3111
3117
|
var parseHwb_default = ParseHwb;
|
|
3112
3118
|
|
|
3113
3119
|
//#endregion
|
|
3114
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3120
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/hwb/definition.js
|
|
3115
3121
|
const definition$11 = {
|
|
3116
3122
|
mode: "hwb",
|
|
3117
3123
|
toMode: { rgb: convertHwbToRgb },
|
|
@@ -3144,12 +3150,12 @@ const definition$11 = {
|
|
|
3144
3150
|
var definition_default$2 = definition$11;
|
|
3145
3151
|
|
|
3146
3152
|
//#endregion
|
|
3147
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3153
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/xyz50/constants.js
|
|
3148
3154
|
const k$1 = Math.pow(29, 3) / Math.pow(3, 3);
|
|
3149
3155
|
const e$1 = Math.pow(6, 3) / Math.pow(29, 3);
|
|
3150
3156
|
|
|
3151
3157
|
//#endregion
|
|
3152
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3158
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/constants.js
|
|
3153
3159
|
const D50 = {
|
|
3154
3160
|
X: .3457 / .3585,
|
|
3155
3161
|
Y: 1,
|
|
@@ -3164,7 +3170,7 @@ const k$2 = Math.pow(29, 3) / Math.pow(3, 3);
|
|
|
3164
3170
|
const e$2 = Math.pow(6, 3) / Math.pow(29, 3);
|
|
3165
3171
|
|
|
3166
3172
|
//#endregion
|
|
3167
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3173
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lab/convertLabToXyz50.js
|
|
3168
3174
|
let fn$1 = (v) => Math.pow(v, 3) > e$1 ? Math.pow(v, 3) : (116 * v - 16) / k$1;
|
|
3169
3175
|
const convertLabToXyz50 = ({ l, a, b, alpha }) => {
|
|
3170
3176
|
if (l === void 0) l = 0;
|
|
@@ -3185,7 +3191,7 @@ const convertLabToXyz50 = ({ l, a, b, alpha }) => {
|
|
|
3185
3191
|
var convertLabToXyz50_default = convertLabToXyz50;
|
|
3186
3192
|
|
|
3187
3193
|
//#endregion
|
|
3188
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3194
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/xyz50/convertXyz50ToRgb.js
|
|
3189
3195
|
const convertXyz50ToRgb = ({ x, y, z, alpha }) => {
|
|
3190
3196
|
if (x === void 0) x = 0;
|
|
3191
3197
|
if (y === void 0) y = 0;
|
|
@@ -3201,19 +3207,19 @@ const convertXyz50ToRgb = ({ x, y, z, alpha }) => {
|
|
|
3201
3207
|
var convertXyz50ToRgb_default = convertXyz50ToRgb;
|
|
3202
3208
|
|
|
3203
3209
|
//#endregion
|
|
3204
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3210
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lab/convertLabToRgb.js
|
|
3205
3211
|
const convertLabToRgb = (lab) => convertXyz50ToRgb_default(convertLabToXyz50_default(lab));
|
|
3206
3212
|
var convertLabToRgb_default = convertLabToRgb;
|
|
3207
3213
|
|
|
3208
3214
|
//#endregion
|
|
3209
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3215
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/xyz50/convertRgbToXyz50.js
|
|
3210
3216
|
const convertRgbToXyz50 = (rgb$2) => {
|
|
3211
|
-
let { r: r$
|
|
3217
|
+
let { r: r$2, g, b, alpha } = convertRgbToLrgb_default(rgb$2);
|
|
3212
3218
|
let res = {
|
|
3213
3219
|
mode: "xyz50",
|
|
3214
|
-
x: .436065742824811 * r$
|
|
3215
|
-
y: .22249319175623702 * r$
|
|
3216
|
-
z: .013923904500943465 * r$
|
|
3220
|
+
x: .436065742824811 * r$2 + .3851514688337912 * g + .14307845442264197 * b,
|
|
3221
|
+
y: .22249319175623702 * r$2 + .7168870538238823 * g + .06061979053616537 * b,
|
|
3222
|
+
z: .013923904500943465 * r$2 + .09708128566574634 * g + .7140993584005155 * b
|
|
3217
3223
|
};
|
|
3218
3224
|
if (alpha !== void 0) res.alpha = alpha;
|
|
3219
3225
|
return res;
|
|
@@ -3221,7 +3227,7 @@ const convertRgbToXyz50 = (rgb$2) => {
|
|
|
3221
3227
|
var convertRgbToXyz50_default = convertRgbToXyz50;
|
|
3222
3228
|
|
|
3223
3229
|
//#endregion
|
|
3224
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3230
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lab/convertXyz50ToLab.js
|
|
3225
3231
|
const f$1 = (value) => value > e$1 ? Math.cbrt(value) : (k$1 * value + 16) / 116;
|
|
3226
3232
|
const convertXyz50ToLab = ({ x, y, z, alpha }) => {
|
|
3227
3233
|
if (x === void 0) x = 0;
|
|
@@ -3242,7 +3248,7 @@ const convertXyz50ToLab = ({ x, y, z, alpha }) => {
|
|
|
3242
3248
|
var convertXyz50ToLab_default = convertXyz50ToLab;
|
|
3243
3249
|
|
|
3244
3250
|
//#endregion
|
|
3245
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3251
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lab/convertRgbToLab.js
|
|
3246
3252
|
const convertRgbToLab = (rgb$2) => {
|
|
3247
3253
|
let res = convertXyz50ToLab_default(convertRgbToXyz50_default(rgb$2));
|
|
3248
3254
|
if (rgb$2.r === rgb$2.b && rgb$2.b === rgb$2.g) res.a = res.b = 0;
|
|
@@ -3251,7 +3257,7 @@ const convertRgbToLab = (rgb$2) => {
|
|
|
3251
3257
|
var convertRgbToLab_default = convertRgbToLab;
|
|
3252
3258
|
|
|
3253
3259
|
//#endregion
|
|
3254
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3260
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lab/parseLab.js
|
|
3255
3261
|
function parseLab(color, parsed) {
|
|
3256
3262
|
if (!parsed || parsed[0] !== "lab") return void 0;
|
|
3257
3263
|
const res = { mode: "lab" };
|
|
@@ -3266,7 +3272,7 @@ function parseLab(color, parsed) {
|
|
|
3266
3272
|
var parseLab_default = parseLab;
|
|
3267
3273
|
|
|
3268
3274
|
//#endregion
|
|
3269
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3275
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lab/definition.js
|
|
3270
3276
|
const definition$10 = {
|
|
3271
3277
|
mode: "lab",
|
|
3272
3278
|
toMode: {
|
|
@@ -3285,8 +3291,8 @@ const definition$10 = {
|
|
|
3285
3291
|
],
|
|
3286
3292
|
ranges: {
|
|
3287
3293
|
l: [0, 100],
|
|
3288
|
-
a: [-
|
|
3289
|
-
b: [-
|
|
3294
|
+
a: [-125, 125],
|
|
3295
|
+
b: [-125, 125]
|
|
3290
3296
|
},
|
|
3291
3297
|
parse: [parseLab_default],
|
|
3292
3298
|
serialize: (c$2) => `lab(${c$2.l !== void 0 ? c$2.l : "none"} ${c$2.a !== void 0 ? c$2.a : "none"} ${c$2.b !== void 0 ? c$2.b : "none"}${c$2.alpha < 1 ? ` / ${c$2.alpha}` : ""})`,
|
|
@@ -3303,12 +3309,12 @@ const definition$10 = {
|
|
|
3303
3309
|
var definition_default$3 = definition$10;
|
|
3304
3310
|
|
|
3305
3311
|
//#endregion
|
|
3306
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3312
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/xyz65/constants.js
|
|
3307
3313
|
const k = Math.pow(29, 3) / Math.pow(3, 3);
|
|
3308
3314
|
const e = Math.pow(6, 3) / Math.pow(29, 3);
|
|
3309
3315
|
|
|
3310
3316
|
//#endregion
|
|
3311
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3317
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lab65/convertLab65ToXyz65.js
|
|
3312
3318
|
let fn = (v) => Math.pow(v, 3) > e ? Math.pow(v, 3) : (116 * v - 16) / k;
|
|
3313
3319
|
const convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
|
|
3314
3320
|
if (l === void 0) l = 0;
|
|
@@ -3329,12 +3335,12 @@ const convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
|
|
|
3329
3335
|
var convertLab65ToXyz65_default = convertLab65ToXyz65;
|
|
3330
3336
|
|
|
3331
3337
|
//#endregion
|
|
3332
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3338
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lab65/convertLab65ToRgb.js
|
|
3333
3339
|
const convertLab65ToRgb = (lab) => convertXyz65ToRgb_default(convertLab65ToXyz65_default(lab));
|
|
3334
3340
|
var convertLab65ToRgb_default = convertLab65ToRgb;
|
|
3335
3341
|
|
|
3336
3342
|
//#endregion
|
|
3337
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3343
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lab65/convertXyz65ToLab65.js
|
|
3338
3344
|
const f = (value) => value > e ? Math.cbrt(value) : (k * value + 16) / 116;
|
|
3339
3345
|
const convertXyz65ToLab65 = ({ x, y, z, alpha }) => {
|
|
3340
3346
|
if (x === void 0) x = 0;
|
|
@@ -3355,7 +3361,7 @@ const convertXyz65ToLab65 = ({ x, y, z, alpha }) => {
|
|
|
3355
3361
|
var convertXyz65ToLab65_default = convertXyz65ToLab65;
|
|
3356
3362
|
|
|
3357
3363
|
//#endregion
|
|
3358
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3364
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lab65/convertRgbToLab65.js
|
|
3359
3365
|
const convertRgbToLab65 = (rgb$2) => {
|
|
3360
3366
|
let res = convertXyz65ToLab65_default(convertRgbToXyz65_default(rgb$2));
|
|
3361
3367
|
if (rgb$2.r === rgb$2.b && rgb$2.b === rgb$2.g) res.a = res.b = 0;
|
|
@@ -3364,7 +3370,7 @@ const convertRgbToLab65 = (rgb$2) => {
|
|
|
3364
3370
|
var convertRgbToLab65_default = convertRgbToLab65;
|
|
3365
3371
|
|
|
3366
3372
|
//#endregion
|
|
3367
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3373
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lab65/definition.js
|
|
3368
3374
|
const definition$9 = {
|
|
3369
3375
|
...definition_default$3,
|
|
3370
3376
|
mode: "lab65",
|
|
@@ -3380,14 +3386,14 @@ const definition$9 = {
|
|
|
3380
3386
|
},
|
|
3381
3387
|
ranges: {
|
|
3382
3388
|
l: [0, 100],
|
|
3383
|
-
a: [-
|
|
3384
|
-
b: [-
|
|
3389
|
+
a: [-125, 125],
|
|
3390
|
+
b: [-125, 125]
|
|
3385
3391
|
}
|
|
3386
3392
|
};
|
|
3387
3393
|
var definition_default$4 = definition$9;
|
|
3388
3394
|
|
|
3389
3395
|
//#endregion
|
|
3390
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3396
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lch/convertLabToLch.js
|
|
3391
3397
|
const convertLabToLch = ({ l, a, b, alpha }, mode = "lch") => {
|
|
3392
3398
|
if (a === void 0) a = 0;
|
|
3393
3399
|
if (b === void 0) b = 0;
|
|
@@ -3404,7 +3410,7 @@ const convertLabToLch = ({ l, a, b, alpha }, mode = "lch") => {
|
|
|
3404
3410
|
var convertLabToLch_default = convertLabToLch;
|
|
3405
3411
|
|
|
3406
3412
|
//#endregion
|
|
3407
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3413
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lch/convertLchToLab.js
|
|
3408
3414
|
const convertLchToLab = ({ l, c: c$2, h, alpha }, mode = "lab") => {
|
|
3409
3415
|
if (h === void 0) h = 0;
|
|
3410
3416
|
let res = {
|
|
@@ -3419,7 +3425,7 @@ const convertLchToLab = ({ l, c: c$2, h, alpha }, mode = "lab") => {
|
|
|
3419
3425
|
var convertLchToLab_default = convertLchToLab;
|
|
3420
3426
|
|
|
3421
3427
|
//#endregion
|
|
3422
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3428
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lch/parseLch.js
|
|
3423
3429
|
function parseLch(color, parsed) {
|
|
3424
3430
|
if (!parsed || parsed[0] !== "lch") return void 0;
|
|
3425
3431
|
const res = { mode: "lch" };
|
|
@@ -3439,7 +3445,7 @@ function parseLch(color, parsed) {
|
|
|
3439
3445
|
var parseLch_default = parseLch;
|
|
3440
3446
|
|
|
3441
3447
|
//#endregion
|
|
3442
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3448
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lch/definition.js
|
|
3443
3449
|
const definition$8 = {
|
|
3444
3450
|
mode: "lch",
|
|
3445
3451
|
toMode: {
|
|
@@ -3481,7 +3487,7 @@ const definition$8 = {
|
|
|
3481
3487
|
var definition_default$5 = definition$8;
|
|
3482
3488
|
|
|
3483
3489
|
//#endregion
|
|
3484
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3490
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/lrgb/definition.js
|
|
3485
3491
|
const definition$7 = {
|
|
3486
3492
|
...definition_default$12,
|
|
3487
3493
|
mode: "lrgb",
|
|
@@ -3493,19 +3499,19 @@ const definition$7 = {
|
|
|
3493
3499
|
var definition_default$6 = definition$7;
|
|
3494
3500
|
|
|
3495
3501
|
//#endregion
|
|
3496
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3502
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/oklab/convertOklabToLrgb.js
|
|
3497
3503
|
const convertOklabToLrgb = ({ l, a, b, alpha }) => {
|
|
3498
3504
|
if (l === void 0) l = 0;
|
|
3499
3505
|
if (a === void 0) a = 0;
|
|
3500
3506
|
if (b === void 0) b = 0;
|
|
3501
|
-
let L = Math.pow(l
|
|
3502
|
-
let M = Math.pow(l
|
|
3503
|
-
let S = Math.pow(l
|
|
3507
|
+
let L = Math.pow(l + .3963377773761749 * a + .2158037573099136 * b, 3);
|
|
3508
|
+
let M = Math.pow(l - .1055613458156586 * a - .0638541728258133 * b, 3);
|
|
3509
|
+
let S = Math.pow(l - .0894841775298119 * a - 1.2914855480194092 * b, 3);
|
|
3504
3510
|
let res = {
|
|
3505
3511
|
mode: "lrgb",
|
|
3506
|
-
r: 4.
|
|
3507
|
-
g: -1.
|
|
3508
|
-
b: -.
|
|
3512
|
+
r: 4.076741636075957 * L - 3.3077115392580616 * M + .2309699031821044 * S,
|
|
3513
|
+
g: -1.2684379732850317 * L + 2.6097573492876887 * M - .3413193760026573 * S,
|
|
3514
|
+
b: -.0041960761386756 * L - .7034186179359362 * M + 1.7076146940746117 * S
|
|
3509
3515
|
};
|
|
3510
3516
|
if (alpha !== void 0) res.alpha = alpha;
|
|
3511
3517
|
return res;
|
|
@@ -3513,19 +3519,19 @@ const convertOklabToLrgb = ({ l, a, b, alpha }) => {
|
|
|
3513
3519
|
var convertOklabToLrgb_default = convertOklabToLrgb;
|
|
3514
3520
|
|
|
3515
3521
|
//#endregion
|
|
3516
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3517
|
-
const convertLrgbToOklab = ({ r: r$
|
|
3518
|
-
if (r$
|
|
3522
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/oklab/convertLrgbToOklab.js
|
|
3523
|
+
const convertLrgbToOklab = ({ r: r$2, g, b, alpha }) => {
|
|
3524
|
+
if (r$2 === void 0) r$2 = 0;
|
|
3519
3525
|
if (g === void 0) g = 0;
|
|
3520
3526
|
if (b === void 0) b = 0;
|
|
3521
|
-
let L = Math.cbrt(.
|
|
3522
|
-
let M = Math.cbrt(.
|
|
3523
|
-
let S = Math.cbrt(.
|
|
3527
|
+
let L = Math.cbrt(.412221469470763 * r$2 + .5363325372617348 * g + .0514459932675022 * b);
|
|
3528
|
+
let M = Math.cbrt(.2119034958178252 * r$2 + .6806995506452344 * g + .1073969535369406 * b);
|
|
3529
|
+
let S = Math.cbrt(.0883024591900564 * r$2 + .2817188391361215 * g + .6299787016738222 * b);
|
|
3524
3530
|
let res = {
|
|
3525
3531
|
mode: "oklab",
|
|
3526
|
-
l: .
|
|
3527
|
-
a: 1.
|
|
3528
|
-
b: .
|
|
3532
|
+
l: .210454268309314 * L + .7936177747023054 * M - .0040720430116193 * S,
|
|
3533
|
+
a: 1.9779985324311684 * L - 2.42859224204858 * M + .450593709617411 * S,
|
|
3534
|
+
b: .0259040424655478 * L + .7827717124575296 * M - .8086757549230774 * S
|
|
3529
3535
|
};
|
|
3530
3536
|
if (alpha !== void 0) res.alpha = alpha;
|
|
3531
3537
|
return res;
|
|
@@ -3533,7 +3539,7 @@ const convertLrgbToOklab = ({ r: r$1, g, b, alpha }) => {
|
|
|
3533
3539
|
var convertLrgbToOklab_default = convertLrgbToOklab;
|
|
3534
3540
|
|
|
3535
3541
|
//#endregion
|
|
3536
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3542
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/oklab/convertRgbToOklab.js
|
|
3537
3543
|
const convertRgbToOklab = (rgb$2) => {
|
|
3538
3544
|
let res = convertLrgbToOklab_default(convertRgbToLrgb_default(rgb$2));
|
|
3539
3545
|
if (rgb$2.r === rgb$2.b && rgb$2.b === rgb$2.g) res.a = res.b = 0;
|
|
@@ -3542,12 +3548,12 @@ const convertRgbToOklab = (rgb$2) => {
|
|
|
3542
3548
|
var convertRgbToOklab_default = convertRgbToOklab;
|
|
3543
3549
|
|
|
3544
3550
|
//#endregion
|
|
3545
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3551
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/oklab/convertOklabToRgb.js
|
|
3546
3552
|
const convertOklabToRgb = (c$2) => convertLrgbToRgb_default(convertOklabToLrgb_default(c$2));
|
|
3547
3553
|
var convertOklabToRgb_default = convertOklabToRgb;
|
|
3548
3554
|
|
|
3549
3555
|
//#endregion
|
|
3550
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3556
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/oklab/parseOklab.js
|
|
3551
3557
|
function parseOklab(color, parsed) {
|
|
3552
3558
|
if (!parsed || parsed[0] !== "oklab") return void 0;
|
|
3553
3559
|
const res = { mode: "oklab" };
|
|
@@ -3562,7 +3568,7 @@ function parseOklab(color, parsed) {
|
|
|
3562
3568
|
var parseOklab_default = parseOklab;
|
|
3563
3569
|
|
|
3564
3570
|
//#endregion
|
|
3565
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3571
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/oklab/definition.js
|
|
3566
3572
|
const definition$6 = {
|
|
3567
3573
|
...definition_default$3,
|
|
3568
3574
|
mode: "oklab",
|
|
@@ -3585,7 +3591,7 @@ const definition$6 = {
|
|
|
3585
3591
|
var definition_default$7 = definition$6;
|
|
3586
3592
|
|
|
3587
3593
|
//#endregion
|
|
3588
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3594
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/oklch/parseOklch.js
|
|
3589
3595
|
function parseOklch(color, parsed) {
|
|
3590
3596
|
if (!parsed || parsed[0] !== "oklch") return void 0;
|
|
3591
3597
|
const res = { mode: "oklch" };
|
|
@@ -3605,7 +3611,7 @@ function parseOklch(color, parsed) {
|
|
|
3605
3611
|
var parseOklch_default = parseOklch;
|
|
3606
3612
|
|
|
3607
3613
|
//#endregion
|
|
3608
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3614
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/oklch/definition.js
|
|
3609
3615
|
const definition$5 = {
|
|
3610
3616
|
...definition_default$5,
|
|
3611
3617
|
mode: "oklch",
|
|
@@ -3628,14 +3634,14 @@ const definition$5 = {
|
|
|
3628
3634
|
var definition_default$8 = definition$5;
|
|
3629
3635
|
|
|
3630
3636
|
//#endregion
|
|
3631
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3637
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/p3/convertP3ToXyz65.js
|
|
3632
3638
|
const convertP3ToXyz65 = (rgb$2) => {
|
|
3633
|
-
let { r: r$
|
|
3639
|
+
let { r: r$2, g, b, alpha } = convertRgbToLrgb_default(rgb$2);
|
|
3634
3640
|
let res = {
|
|
3635
3641
|
mode: "xyz65",
|
|
3636
|
-
x: .486570948648216 * r$
|
|
3637
|
-
y: .2289745640697487 * r$
|
|
3638
|
-
z: 0 * r$
|
|
3642
|
+
x: .486570948648216 * r$2 + .265667693169093 * g + .1982172852343625 * b,
|
|
3643
|
+
y: .2289745640697487 * r$2 + .6917385218365062 * g + .079286914093745 * b,
|
|
3644
|
+
z: 0 * r$2 + .0451133818589026 * g + 1.043944368900976 * b
|
|
3639
3645
|
};
|
|
3640
3646
|
if (alpha !== void 0) res.alpha = alpha;
|
|
3641
3647
|
return res;
|
|
@@ -3643,7 +3649,7 @@ const convertP3ToXyz65 = (rgb$2) => {
|
|
|
3643
3649
|
var convertP3ToXyz65_default = convertP3ToXyz65;
|
|
3644
3650
|
|
|
3645
3651
|
//#endregion
|
|
3646
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3652
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/p3/convertXyz65ToP3.js
|
|
3647
3653
|
const convertXyz65ToP3 = ({ x, y, z, alpha }) => {
|
|
3648
3654
|
if (x === void 0) x = 0;
|
|
3649
3655
|
if (y === void 0) y = 0;
|
|
@@ -3659,7 +3665,7 @@ const convertXyz65ToP3 = ({ x, y, z, alpha }) => {
|
|
|
3659
3665
|
var convertXyz65ToP3_default = convertXyz65ToP3;
|
|
3660
3666
|
|
|
3661
3667
|
//#endregion
|
|
3662
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3668
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/p3/definition.js
|
|
3663
3669
|
const definition$4 = {
|
|
3664
3670
|
...definition_default$12,
|
|
3665
3671
|
mode: "p3",
|
|
@@ -3677,7 +3683,7 @@ const definition$4 = {
|
|
|
3677
3683
|
var definition_default$9 = definition$4;
|
|
3678
3684
|
|
|
3679
3685
|
//#endregion
|
|
3680
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3686
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/prophoto/convertXyz50ToProphoto.js
|
|
3681
3687
|
const gamma$1 = (v) => {
|
|
3682
3688
|
let abs = Math.abs(v);
|
|
3683
3689
|
if (abs >= 1 / 512) return Math.sign(v) * Math.pow(abs, 1 / 1.8);
|
|
@@ -3699,21 +3705,21 @@ const convertXyz50ToProphoto = ({ x, y, z, alpha }) => {
|
|
|
3699
3705
|
var convertXyz50ToProphoto_default = convertXyz50ToProphoto;
|
|
3700
3706
|
|
|
3701
3707
|
//#endregion
|
|
3702
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3708
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/prophoto/convertProphotoToXyz50.js
|
|
3703
3709
|
const linearize$1 = (v = 0) => {
|
|
3704
3710
|
let abs = Math.abs(v);
|
|
3705
3711
|
if (abs >= 16 / 512) return Math.sign(v) * Math.pow(abs, 1.8);
|
|
3706
3712
|
return v / 16;
|
|
3707
3713
|
};
|
|
3708
3714
|
const convertProphotoToXyz50 = (prophoto) => {
|
|
3709
|
-
let r$
|
|
3715
|
+
let r$2 = linearize$1(prophoto.r);
|
|
3710
3716
|
let g = linearize$1(prophoto.g);
|
|
3711
3717
|
let b = linearize$1(prophoto.b);
|
|
3712
3718
|
let res = {
|
|
3713
3719
|
mode: "xyz50",
|
|
3714
|
-
x: .7977666449006423 * r$
|
|
3715
|
-
y: .2880748288194013 * r$
|
|
3716
|
-
z: 0 * r$
|
|
3720
|
+
x: .7977666449006423 * r$2 + .1351812974005331 * g + .0313477341283922 * b,
|
|
3721
|
+
y: .2880748288194013 * r$2 + .7118352342418731 * g + 899369387256e-16 * b,
|
|
3722
|
+
z: 0 * r$2 + 0 * g + .8251046025104602 * b
|
|
3717
3723
|
};
|
|
3718
3724
|
if (prophoto.alpha !== void 0) res.alpha = prophoto.alpha;
|
|
3719
3725
|
return res;
|
|
@@ -3721,7 +3727,7 @@ const convertProphotoToXyz50 = (prophoto) => {
|
|
|
3721
3727
|
var convertProphotoToXyz50_default = convertProphotoToXyz50;
|
|
3722
3728
|
|
|
3723
3729
|
//#endregion
|
|
3724
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3730
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/prophoto/definition.js
|
|
3725
3731
|
const definition$3 = {
|
|
3726
3732
|
...definition_default$12,
|
|
3727
3733
|
mode: "prophoto",
|
|
@@ -3739,7 +3745,7 @@ const definition$3 = {
|
|
|
3739
3745
|
var definition_default$10 = definition$3;
|
|
3740
3746
|
|
|
3741
3747
|
//#endregion
|
|
3742
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3748
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/rec2020/convertXyz65ToRec2020.js
|
|
3743
3749
|
const α$1 = 1.09929682680944;
|
|
3744
3750
|
const β$1 = .018053968510807;
|
|
3745
3751
|
const gamma = (v) => {
|
|
@@ -3763,7 +3769,7 @@ const convertXyz65ToRec2020 = ({ x, y, z, alpha }) => {
|
|
|
3763
3769
|
var convertXyz65ToRec2020_default = convertXyz65ToRec2020;
|
|
3764
3770
|
|
|
3765
3771
|
//#endregion
|
|
3766
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3772
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/rec2020/convertRec2020ToXyz65.js
|
|
3767
3773
|
const α = 1.09929682680944;
|
|
3768
3774
|
const β = .018053968510807;
|
|
3769
3775
|
const linearize = (v = 0) => {
|
|
@@ -3772,14 +3778,14 @@ const linearize = (v = 0) => {
|
|
|
3772
3778
|
return (Math.sign(v) || 1) * Math.pow((abs + α - 1) / α, 1 / .45);
|
|
3773
3779
|
};
|
|
3774
3780
|
const convertRec2020ToXyz65 = (rec2020) => {
|
|
3775
|
-
let r$
|
|
3781
|
+
let r$2 = linearize(rec2020.r);
|
|
3776
3782
|
let g = linearize(rec2020.g);
|
|
3777
3783
|
let b = linearize(rec2020.b);
|
|
3778
3784
|
let res = {
|
|
3779
3785
|
mode: "xyz65",
|
|
3780
|
-
x: .6369580483012911 * r$
|
|
3781
|
-
y: .262700212011267 * r$
|
|
3782
|
-
z: 0 * r$
|
|
3786
|
+
x: .6369580483012911 * r$2 + .1446169035862083 * g + .1688809751641721 * b,
|
|
3787
|
+
y: .262700212011267 * r$2 + .6779980715188708 * g + .059301716469862 * b,
|
|
3788
|
+
z: 0 * r$2 + .0280726930490874 * g + 1.0609850577107909 * b
|
|
3783
3789
|
};
|
|
3784
3790
|
if (rec2020.alpha !== void 0) res.alpha = rec2020.alpha;
|
|
3785
3791
|
return res;
|
|
@@ -3787,7 +3793,7 @@ const convertRec2020ToXyz65 = (rec2020) => {
|
|
|
3787
3793
|
var convertRec2020ToXyz65_default = convertRec2020ToXyz65;
|
|
3788
3794
|
|
|
3789
3795
|
//#endregion
|
|
3790
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3796
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/rec2020/definition.js
|
|
3791
3797
|
const definition$2 = {
|
|
3792
3798
|
...definition_default$12,
|
|
3793
3799
|
mode: "rec2020",
|
|
@@ -3805,7 +3811,7 @@ const definition$2 = {
|
|
|
3805
3811
|
var definition_default$11 = definition$2;
|
|
3806
3812
|
|
|
3807
3813
|
//#endregion
|
|
3808
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3814
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/xyz50/definition.js
|
|
3809
3815
|
const definition$1 = {
|
|
3810
3816
|
mode: "xyz50",
|
|
3811
3817
|
parse: ["xyz-d50"],
|
|
@@ -3842,7 +3848,7 @@ const definition$1 = {
|
|
|
3842
3848
|
var definition_default$13 = definition$1;
|
|
3843
3849
|
|
|
3844
3850
|
//#endregion
|
|
3845
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3851
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/xyz65/convertXyz65ToXyz50.js
|
|
3846
3852
|
const convertXyz65ToXyz50 = (xyz65) => {
|
|
3847
3853
|
let { x, y, z, alpha } = xyz65;
|
|
3848
3854
|
if (x === void 0) x = 0;
|
|
@@ -3860,7 +3866,7 @@ const convertXyz65ToXyz50 = (xyz65) => {
|
|
|
3860
3866
|
var convertXyz65ToXyz50_default = convertXyz65ToXyz50;
|
|
3861
3867
|
|
|
3862
3868
|
//#endregion
|
|
3863
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3869
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/xyz65/convertXyz50ToXyz65.js
|
|
3864
3870
|
const convertXyz50ToXyz65 = (xyz50) => {
|
|
3865
3871
|
let { x, y, z, alpha } = xyz50;
|
|
3866
3872
|
if (x === void 0) x = 0;
|
|
@@ -3878,7 +3884,7 @@ const convertXyz50ToXyz65 = (xyz50) => {
|
|
|
3878
3884
|
var convertXyz50ToXyz65_default = convertXyz50ToXyz65;
|
|
3879
3885
|
|
|
3880
3886
|
//#endregion
|
|
3881
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3887
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/xyz65/definition.js
|
|
3882
3888
|
const definition = {
|
|
3883
3889
|
mode: "xyz65",
|
|
3884
3890
|
toMode: {
|
|
@@ -3915,7 +3921,7 @@ const definition = {
|
|
|
3915
3921
|
var definition_default$14 = definition;
|
|
3916
3922
|
|
|
3917
3923
|
//#endregion
|
|
3918
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
3924
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/okhsl/helpers.js
|
|
3919
3925
|
function toe(x) {
|
|
3920
3926
|
const k_1 = .206;
|
|
3921
3927
|
const k_2 = .03;
|
|
@@ -4001,7 +4007,7 @@ function get_ST_max(a_, b_, cusp = null) {
|
|
|
4001
4007
|
}
|
|
4002
4008
|
|
|
4003
4009
|
//#endregion
|
|
4004
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
4010
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/okhsv/convertOklabToOkhsv.js
|
|
4005
4011
|
function convertOklabToOkhsv(lab) {
|
|
4006
4012
|
let l = lab.l !== void 0 ? lab.l : 0;
|
|
4007
4013
|
let a = lab.a !== void 0 ? lab.a : 0;
|
|
@@ -4037,7 +4043,7 @@ function convertOklabToOkhsv(lab) {
|
|
|
4037
4043
|
}
|
|
4038
4044
|
|
|
4039
4045
|
//#endregion
|
|
4040
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
4046
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/okhsv/convertOkhsvToOklab.js
|
|
4041
4047
|
function convertOkhsvToOklab(hsv) {
|
|
4042
4048
|
const ret = { mode: "oklab" };
|
|
4043
4049
|
if (hsv.alpha !== void 0) ret.alpha = hsv.alpha;
|
|
@@ -4068,7 +4074,7 @@ function convertOkhsvToOklab(hsv) {
|
|
|
4068
4074
|
}
|
|
4069
4075
|
|
|
4070
4076
|
//#endregion
|
|
4071
|
-
//#region ../../node_modules/.pnpm/culori@4.0.
|
|
4077
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/okhsv/modeOkhsv.js
|
|
4072
4078
|
const modeOkhsv = {
|
|
4073
4079
|
...definition_default$15,
|
|
4074
4080
|
mode: "okhsv",
|
|
@@ -4091,6 +4097,12 @@ const modeOkhsv = {
|
|
|
4091
4097
|
};
|
|
4092
4098
|
var modeOkhsv_default = modeOkhsv;
|
|
4093
4099
|
|
|
4100
|
+
//#endregion
|
|
4101
|
+
//#region ../../node_modules/.pnpm/culori@4.0.2/node_modules/culori/src/round.js
|
|
4102
|
+
const r = (value, precision) => Math.round(value * (precision = Math.pow(10, precision))) / precision;
|
|
4103
|
+
const round = (precision = 4) => (value) => typeof value === "number" ? r(value, precision) : value;
|
|
4104
|
+
var round_default = round;
|
|
4105
|
+
|
|
4094
4106
|
//#endregion
|
|
4095
4107
|
//#region ../token-tools/dist/css.js
|
|
4096
4108
|
const CSS_VAR_RE = /(?:(\p{Uppercase_Letter}?[\p{Lowercase_Letter}\p{Number}]+|[\p{Uppercase_Letter}\p{Number}]+|[\u{80}-\u{10FFFF}\p{Number}]+)|.)/u;
|
|
@@ -4123,6 +4135,12 @@ const converters = {
|
|
|
4123
4135
|
xyz50: useMode(definition_default$13),
|
|
4124
4136
|
xyz65: useMode(definition_default$14)
|
|
4125
4137
|
};
|
|
4138
|
+
const DEPTH_ROUNDING = {
|
|
4139
|
+
24: round_default(4),
|
|
4140
|
+
30: round_default(4),
|
|
4141
|
+
36: round_default(5),
|
|
4142
|
+
48: round_default(6)
|
|
4143
|
+
};
|
|
4126
4144
|
|
|
4127
4145
|
//#endregion
|
|
4128
4146
|
//#region ../../node_modules/.pnpm/wildcard-match@5.1.4/node_modules/wildcard-match/build/index.es.mjs
|