@visulima/colorize 1.4.12 → 1.4.13

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE.md +27 -0
  3. package/README.md +54 -54
  4. package/dist/gradient.cjs +3 -14
  5. package/dist/gradient.d.cts +1 -79
  6. package/dist/gradient.d.mts +34 -0
  7. package/dist/gradient.d.ts +1 -79
  8. package/dist/gradient.mjs +3 -0
  9. package/dist/index.browser.d.mts +65 -0
  10. package/dist/index.browser.d.ts +3 -66
  11. package/dist/index.browser.mjs +1 -0
  12. package/dist/index.server.cjs +2 -13
  13. package/dist/index.server.d.cts +3 -1
  14. package/dist/index.server.d.mts +65 -0
  15. package/dist/index.server.d.ts +3 -66
  16. package/dist/index.server.mjs +1 -0
  17. package/dist/packem_shared/Colorize-BG7_2JWK.mjs +2 -0
  18. package/dist/packem_shared/Colorize-gGSr400y.mjs +1 -0
  19. package/dist/packem_shared/GradientBuilder-Bn5OODm9.cjs +1 -0
  20. package/dist/packem_shared/GradientBuilder-CL8ERRQu.mjs +1 -0
  21. package/dist/packem_shared/colorize.server-BayBPE0C.mjs +2 -0
  22. package/dist/packem_shared/colorize.server-BdZzymFP.cjs +2 -0
  23. package/dist/packem_shared/convertHexToRgb-CSiKB7t1.mjs +1 -0
  24. package/dist/packem_shared/convertHexToRgb-DN4AQa3T.cjs +1 -0
  25. package/dist/packem_shared/rgbToAnsi256-D4IPvnol.cjs +1 -0
  26. package/dist/packem_shared/rgbToAnsi256-YETEPW8R.mjs +1 -0
  27. package/dist/packem_shared/types-CoLB2PX2.d.mjs +67 -0
  28. package/dist/packem_shared/types-CoLB2PX2.d.mts +67 -0
  29. package/dist/packem_shared/types-CuuGv4d0.d.cts +81 -0
  30. package/dist/packem_shared/types-CuuGv4d0.d.mjs +81 -0
  31. package/dist/packem_shared/types-CuuGv4d0.d.mts +81 -0
  32. package/dist/template.cjs +2 -15
  33. package/dist/template.d.cts +4 -64
  34. package/dist/template.d.mts +7 -0
  35. package/dist/template.d.ts +4 -64
  36. package/dist/template.mjs +2 -0
  37. package/dist/utils.cjs +1 -10
  38. package/dist/utils.d.cts +1 -1
  39. package/dist/utils.d.mts +9 -0
  40. package/dist/utils.d.ts +1 -1
  41. package/dist/utils.mjs +1 -0
  42. package/package.json +41 -64
  43. package/dist/gradient.cjs.map +0 -1
  44. package/dist/gradient.js +0 -10
  45. package/dist/gradient.js.map +0 -1
  46. package/dist/index.browser.js +0 -5
  47. package/dist/index.browser.js.map +0 -1
  48. package/dist/index.server.cjs.map +0 -1
  49. package/dist/index.server.js +0 -8
  50. package/dist/index.server.js.map +0 -1
  51. package/dist/template.cjs.map +0 -1
  52. package/dist/template.js +0 -9
  53. package/dist/template.js.map +0 -1
  54. package/dist/utils.cjs.map +0 -1
  55. package/dist/utils.js +0 -5
  56. package/dist/utils.js.map +0 -1
@@ -1,13 +1,2 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var isAnsiColorSupported = require('@visulima/is-ansi-color-supported');
6
-
7
- function y({onlyFirst:r=!1}={}){let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(n,r?void 0:"g")}var g=(r,e,n)=>e>r?e:r>n?n:r;var D=r=>{let[,e]=/([a-f\d]{3,6})/i.exec(r)??[],n=e?e.length:0;if(n===3)e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2];else if(n!==6)return [0,0,0];let o=Number.parseInt(e,16);return [o>>16&255,o>>8&255,o&255]};var f=(r,e,n)=>r===e&&e===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/51)+6*Math.round(e/51)+Math.round(n/51),c=r=>{let e,n,o;if(r<8)return 30+r;if(r<16)return 90+(r-8);if(r>=232)e=n=o=((r-232)*10+8)/255;else {r-=16;let b=r%36;e=Math.floor(r/36)/5,n=Math.floor(b/6)/5,o=b%6/5;}let a=Math.max(e,n,o)*2;if(a===0)return 30;let l=30+(Math.round(o)<<2|Math.round(n)<<1|Math.round(e));return a===2?l+60:l},C=(r,e,n)=>c(f(r,e,n));var s=39,i=49,T=10,d=isAnsiColorSupported.isStdoutColorSupported(),P={close:"",open:""},t=d>0?(r,e)=>({close:"\x1B["+e+"m",open:"\x1B["+r+"m"}):()=>P,w=r=>(e,n,o)=>r(f(Number(e),Number(n),Number(o))),M=r=>e=>{let[n,o,a]=D(e);return r(n,o,a)},h=r=>t("38;5;"+r,s),x=r=>t("48;5;"+r,i),m=(r,e,n)=>t("38;2;"+r+";"+e+";"+n,s),p=(r,e,n)=>t("48;2;"+r+";"+e+";"+n,i);d===1?(h=r=>t(c(Number(r)),s),x=r=>t(c(Number(r))+T,i),m=(r,e,n)=>t(C(Number(r),Number(e),Number(n)),s),p=(r,e,n)=>t(C(Number(r),Number(e),Number(n))+T,i)):d===2&&(m=w(h),p=w(x));var A={bold:t(1,22),dim:t(2,22),hidden:t(8,28),inverse:t(7,27),italic:t(3,23),overline:t(53,55),reset:t(0,0),strike:t(9,29),strikethrough:t(9,29),underline:t(4,24),visible:P},k={bgBlack:t(40,i),bgBlackBright:t(100,i),bgBlue:t(44,i),bgBlueBright:t(104,i),bgCyan:t(46,i),bgCyanBright:t(106,i),bgGray:t(100,i),bgGreen:t(42,i),bgGreenBright:t(102,i),bgGrey:t(100,i),bgMagenta:t(45,i),bgMagentaBright:t(105,i),bgRed:t(41,i),bgRedBright:t(101,i),bgWhite:t(47,i),bgWhiteBright:t(107,i),bgYellow:t(43,i),bgYellowBright:t(103,i),black:t(30,s),blackBright:t(90,s),blue:t(34,s),blueBright:t(94,s),cyan:t(36,s),cyanBright:t(96,s),gray:t(90,s),green:t(32,s),greenBright:t(92,s),grey:t(90,s),magenta:t(35,s),magentaBright:t(95,s),red:t(31,s),redBright:t(91,s),white:t(37,s),whiteBright:t(97,s),yellow:t(33,s),yellowBright:t(93,s)},B={bg:r=>x(g(r,0,255)),bgHex:M(p),bgRgb:(r,e,n)=>p(g(r,0,255),g(e,0,255),g(n,0,255)),fg:r=>h(g(r,0,255)),hex:M(m),rgb:(r,e,n)=>m(g(r,0,255),g(e,0,255),g(n,0,255))};var v=(r,e,n)=>{if(e==="")return r;let o=r.indexOf(e);if(o<0)return r;let a=e.length,l=0,b="";for(;~o;)b+=r.slice(l,o)+n,l=o+a,o=r.indexOf(e,l);return b+r.slice(l)};var u={},R=null,j=(r,e,n)=>{if(!r)return "";let o=r.raw==null?r+"":String.raw(r,...e);if(o.includes("\x1B"))for(let a=n;a;a=a.props)o=v(o,a.close,a.open);return o.includes(`
8
- `)&&(o=o.replace(/(\r*\n)/g,n.closeStack+"$1"+n.openStack)),n.openStack+o+n.closeStack},S=({props:r},{close:e,open:n})=>{let o=(r?.openStack??"")+n,a=e+(r?.closeStack??""),l=(b,...N)=>j(b,N,l.props);return Object.setPrototypeOf(l,R),l.props={close:e,closeStack:a,open:n,openStack:o,props:r},l.open=o,l.close=a,l},O=function(){let r=e=>e+"";r.strip=e=>e.replaceAll(y(),"");for(let e in k)u[e]={get(){let n=S(this,k[e]);return Object.defineProperty(this,e,{value:n}),n}};for(let e in A)u[e]={get(){let n=S(this,A[e]);return Object.defineProperty(this,e,{value:n}),n}};return R=Object.defineProperties({},u),Object.setPrototypeOf(r,R),r};for(let r in B)u[r]={get(){return (...e)=>S(this,B[r](...e))}};u.ansi256=u.fg;u.bgAnsi256=u.bg;var z=O;var L=new z,_=L,rr=z;
9
-
10
- module.exports = _;
11
- module.exports.Colorize = rr;
12
- //# sourceMappingURL=index.server.cjs.map
13
- //# sourceMappingURL=index.server.cjs.map
1
+ "use strict";var G=Object.defineProperty;var g=(e,r)=>G(e,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const H=require("@visulima/is-ansi-color-supported");var Z=Object.defineProperty,_=g((e,r)=>Z(e,"name",{value:r,configurable:!0}),"u$1");function N({onlyFirst:e=!1}={}){const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}g(N,"a$1");_(N,"ansiRegex");var F=Object.defineProperty,q=g((e,r)=>F(e,"name",{value:r,configurable:!0}),"c$2");const u=q((e,r,n)=>r>e?r:e>n?n:e,"clamp");var W=Object.defineProperty,Y=g((e,r)=>W(e,"name",{value:r,configurable:!0}),"e$2");const D=Y(e=>{let[,r]=/([a-f\d]{3,6})/i.exec(e)??[];const n=r?r.length:0;if(n===3)r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2];else if(n!==6)return[0,0,0];const o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},"convertHexToRgb");var E=Object.defineProperty,S=g((e,r)=>E(e,"name",{value:r,configurable:!0}),"e$1");const w=S((e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/51)+6*Math.round(r/51)+Math.round(n/51),"rgbToAnsi256"),m=S(e=>{let r,n,o;if(e<8)return 30+e;if(e<16)return 90+(e-8);if(e>=232)r=n=o=((e-232)*10+8)/255;else{e-=16;const f=e%36;r=Math.floor(e/36)/5,n=Math.floor(f/6)/5,o=f%6/5}const c=Math.max(r,n,o)*2;if(c===0)return 30;const l=30+(Math.round(o)<<2|Math.round(n)<<1|Math.round(r));return c===2?l+60:l},"ansi256To16"),x=S((e,r,n)=>m(w(e,r,n)),"rgbToAnsi16");var I=Object.defineProperty,s=g((e,r)=>I(e,"name",{value:r,configurable:!0}),"b");const a=39,i=49,R=10,v=H.isStdoutColorSupported(),T={close:"",open:""},t=v>0?(e,r)=>({close:"\x1B["+r+"m",open:"\x1B["+e+"m"}):()=>T,k=s(e=>(r,n,o)=>e(w(Number(r),Number(n),Number(o))),"createRgbFunction"),M=s(e=>r=>{const[n,o,c]=D(r);return e(n,o,c)},"createHexFunction");let B=s(e=>t("38;5;"+e,a),"createAnsi256"),y=s(e=>t("48;5;"+e,i),"createBgAnsi256"),p=s((e,r,n)=>t("38;2;"+e+";"+r+";"+n,a),"createRgb"),h=s((e,r,n)=>t("48;2;"+e+";"+r+";"+n,i),"createBgRgb");v===1?(B=s(e=>t(m(Number(e)),a),"createAnsi256"),y=s(e=>t(m(Number(e))+R,i),"createBgAnsi256"),p=s((e,r,n)=>t(x(Number(e),Number(r),Number(n)),a),"createRgb"),h=s((e,r,n)=>t(x(Number(e),Number(r),Number(n))+R,i),"createBgRgb")):v===2&&(p=k(B),h=k(y));const j={bold:t(1,22),dim:t(2,22),hidden:t(8,28),inverse:t(7,27),italic:t(3,23),overline:t(53,55),reset:t(0,0),strike:t(9,29),strikethrough:t(9,29),underline:t(4,24),visible:T},P={bgBlack:t(40,i),bgBlackBright:t(100,i),bgBlue:t(44,i),bgBlueBright:t(104,i),bgCyan:t(46,i),bgCyanBright:t(106,i),bgGray:t(100,i),bgGreen:t(42,i),bgGreenBright:t(102,i),bgGrey:t(100,i),bgMagenta:t(45,i),bgMagentaBright:t(105,i),bgRed:t(41,i),bgRedBright:t(101,i),bgWhite:t(47,i),bgWhiteBright:t(107,i),bgYellow:t(43,i),bgYellowBright:t(103,i),black:t(30,a),blackBright:t(90,a),blue:t(34,a),blueBright:t(94,a),cyan:t(36,a),cyanBright:t(96,a),gray:t(90,a),green:t(32,a),greenBright:t(92,a),grey:t(90,a),magenta:t(35,a),magentaBright:t(95,a),red:t(31,a),redBright:t(91,a),white:t(37,a),whiteBright:t(97,a),yellow:t(33,a),yellowBright:t(93,a)},$={bg:s(e=>y(u(e,0,255)),"bg"),bgHex:M(h),bgRgb:s((e,r,n)=>h(u(e,0,255),u(r,0,255),u(n,0,255)),"bgRgb"),fg:s(e=>B(u(e,0,255)),"fg"),hex:M(p),rgb:s((e,r,n)=>p(u(e,0,255),u(r,0,255),u(n,0,255)),"rgb")};var J=Object.defineProperty,K=g((e,r)=>J(e,"name",{value:r,configurable:!0}),"s");const L=K((e,r,n)=>{if(r==="")return e;let o=e.indexOf(r);if(o<0)return e;const c=r.length;let l=0,f="";for(;~o;)f+=e.slice(l,o)+n,l=o+c,o=e.indexOf(r,l);return f+e.slice(l)},"stringReplaceAll");var Q=Object.defineProperty,d=g((e,r)=>Q(e,"name",{value:r,configurable:!0}),"a");const b={};let A=null;const U=d((e,r,n)=>{if(!e)return"";let o=e.raw==null?e+"":String.raw(e,...r);if(o.includes("\x1B"))for(let c=n;c;c=c.props)o=L(o,c.close,c.open);return o.includes(`
2
+ `)&&(o=o.replace(/(\r*\n)/g,n.closeStack+"$1"+n.openStack)),n.openStack+o+n.closeStack},"wrapText"),O=d(({props:e},{close:r,open:n})=>{const o=(e?.openStack??"")+n,c=r+(e?.closeStack??""),l=d((f,...z)=>U(f,z,l.props),"style");return Object.setPrototypeOf(l,A),l.props={close:r,closeStack:c,open:n,openStack:o,props:e},l.open=o,l.close=c,l},"createStyle"),C=d(function(){const e=d(r=>r+"","self");e.strip=r=>r.replaceAll(N(),"");for(const r in P)b[r]={get(){const n=O(this,P[r]);return Object.defineProperty(this,r,{value:n}),n}};for(const r in j)b[r]={get(){const n=O(this,j[r]);return Object.defineProperty(this,r,{value:n}),n}};return A=Object.defineProperties({},b),Object.setPrototypeOf(e,A),e},"Colorize");for(const e in $)b[e]={get(){return(...r)=>O(this,$[e](...r))}};b.ansi256=b.fg;b.bgAnsi256=b.bg;const V=new C,X=C;module.exports=V;module.exports.Colorize=X;
@@ -68,4 +68,6 @@ declare const _default: ColorizeType;
68
68
 
69
69
  declare const Colorize: new () => ColorizeType;
70
70
 
71
- export { type AnsiColors, type AnsiStyles, Colorize, type ColorizeType, _default as default };
71
+ export { type AnsiColors, type AnsiStyles, Colorize, type ColorizeType, };
72
+
73
+ export = _default;
@@ -0,0 +1,65 @@
1
+ import { C as ColorizeType } from './packem_shared/types-CoLB2PX2.mjs';
2
+ export { A as AnsiColors, a as AnsiStyles } from './packem_shared/types-CoLB2PX2.mjs';
3
+
4
+ declare const Colorize: new () => ColorizeType;
5
+
6
+ declare const _default: ColorizeType;
7
+
8
+ declare const ansi256: (code: number) => ColorizeType;
9
+ declare const bg: (code: number) => ColorizeType;
10
+ declare const bgAnsi256: (code: number) => ColorizeType;
11
+ declare const bgBlack: ColorizeType;
12
+ declare const bgBlackBright: ColorizeType;
13
+ declare const bgBlue: ColorizeType;
14
+ declare const bgBlueBright: ColorizeType;
15
+ declare const bgCyan: ColorizeType;
16
+ declare const bgCyanBright: ColorizeType;
17
+ declare const bgGray: ColorizeType;
18
+ declare const bgGreen: ColorizeType;
19
+ declare const bgGreenBright: ColorizeType;
20
+ declare const bgGrey: ColorizeType;
21
+ declare const bgHex: (color: `#${string}`) => ColorizeType;
22
+ declare const bgMagenta: ColorizeType;
23
+ declare const bgMagentaBright: ColorizeType;
24
+ declare const bgRed: ColorizeType;
25
+ declare const bgRedBright: ColorizeType;
26
+ declare const bgRgb: (red: number, green: number, blue: number) => ColorizeType;
27
+ declare const bgWhite: ColorizeType;
28
+ declare const bgWhiteBright: ColorizeType;
29
+ declare const bgYellow: ColorizeType;
30
+ declare const bgYellowBright: ColorizeType;
31
+ declare const black: ColorizeType;
32
+ declare const blackBright: ColorizeType;
33
+ declare const blue: ColorizeType;
34
+ declare const blueBright: ColorizeType;
35
+ declare const bold: ColorizeType;
36
+ declare const cyan: ColorizeType;
37
+ declare const cyanBright: ColorizeType;
38
+ declare const dim: ColorizeType;
39
+ declare const fg: (code: number) => ColorizeType;
40
+ declare const gray: ColorizeType;
41
+ declare const green: ColorizeType;
42
+ declare const greenBright: ColorizeType;
43
+ declare const grey: ColorizeType;
44
+ declare const hex: (color: `#${string}`) => ColorizeType;
45
+ declare const hidden: ColorizeType;
46
+ declare const inverse: ColorizeType;
47
+ declare const italic: ColorizeType;
48
+ declare const magenta: ColorizeType;
49
+ declare const magentaBright: ColorizeType;
50
+ declare const overline: ColorizeType;
51
+ declare const red: ColorizeType;
52
+ declare const redBright: ColorizeType;
53
+ declare const reset: ColorizeType;
54
+ declare const rgb: (red: number, green: number, blue: number) => ColorizeType;
55
+ declare const strike: ColorizeType;
56
+ declare const strikethrough: ColorizeType;
57
+ declare const strip: (string: string) => string;
58
+ declare const underline: ColorizeType;
59
+ declare const visible: ColorizeType;
60
+ declare const white: ColorizeType;
61
+ declare const whiteBright: ColorizeType;
62
+ declare const yellow: ColorizeType;
63
+ declare const yellowBright: ColorizeType;
64
+
65
+ export { Colorize, ColorizeType, ansi256, bg, bgAnsi256, bgBlack, bgBlackBright, bgBlue, bgBlueBright, bgCyan, bgCyanBright, bgGray, bgGreen, bgGreenBright, bgGrey, bgHex, bgMagenta, bgMagentaBright, bgRed, bgRedBright, bgRgb, bgWhite, bgWhiteBright, bgYellow, bgYellowBright, black, blackBright, blue, blueBright, bold, cyan, cyanBright, _default as default, dim, fg, gray, green, greenBright, grey, hex, hidden, inverse, italic, magenta, magentaBright, overline, red, redBright, reset, rgb, strike, strikethrough, strip, underline, visible, white, whiteBright, yellow, yellowBright };
@@ -1,68 +1,5 @@
1
- type ColorValueHex = `#${string}`;
2
- interface ColorizeType {
3
- (string: number | string): string;
4
- (string: TemplateStringsArray, ...parameters: string[]): string;
5
- ansi256: (code: number) => this;
6
- bg: (code: number) => this;
7
- bgAnsi256: (code: number) => this;
8
- readonly bgBlack: this;
9
- readonly bgBlackBright: this;
10
- readonly bgBlue: this;
11
- readonly bgBlueBright: this;
12
- readonly bgCyan: this;
13
- readonly bgCyanBright: this;
14
- readonly bgGray: this;
15
- readonly bgGreen: this;
16
- readonly bgGreenBright: this;
17
- readonly bgGrey: this;
18
- bgHex: (color: ColorValueHex) => this;
19
- readonly bgMagenta: this;
20
- readonly bgMagentaBright: this;
21
- readonly bgRed: this;
22
- readonly bgRedBright: this;
23
- bgRgb: (red: number, green: number, blue: number) => this;
24
- readonly bgWhite: this;
25
- readonly bgWhiteBright: this;
26
- readonly bgYellow: this;
27
- readonly bgYellowBright: this;
28
- readonly black: this;
29
- readonly blackBright: this;
30
- readonly blue: this;
31
- readonly blueBright: this;
32
- readonly bold: this;
33
- readonly close: string;
34
- readonly cyan: this;
35
- readonly cyanBright: this;
36
- readonly dim: this;
37
- fg: (code: number) => this;
38
- readonly gray: this;
39
- readonly green: this;
40
- readonly greenBright: this;
41
- readonly grey: this;
42
- hex: (color: ColorValueHex) => this;
43
- readonly hidden: this;
44
- readonly inverse: this;
45
- readonly italic: this;
46
- readonly magenta: this;
47
- readonly magentaBright: this;
48
- readonly open: string;
49
- readonly overline: this;
50
- readonly red: this;
51
- readonly redBright: this;
52
- readonly reset: this;
53
- rgb: (red: number, green: number, blue: number) => this;
54
- readonly strike: this;
55
- readonly strikethrough: this;
56
- strip: (string: string) => string;
57
- readonly underline: this;
58
- readonly visible: this;
59
- readonly white: this;
60
- readonly whiteBright: this;
61
- readonly yellow: this;
62
- readonly yellowBright: this;
63
- }
64
- type AnsiStyles = "bold" | "dim" | "hidden" | "inverse" | "italic" | "overline" | "reset" | "strike" | "strikethrough" | "underline" | "visible";
65
- type AnsiColors = "bgBlack" | "bgBlackBright" | "bgBlue" | "bgBlueBright" | "bgCyan" | "bgCyanBright" | "bgGray" | "bgGreen" | "bgGreenBright" | "bgGrey" | "bgMagenta" | "bgMagentaBright" | "bgRed" | "bgRedBright" | "bgWhite" | "bgWhiteBright" | "bgYellow" | "bgYellowBright" | "black" | "blackBright" | "blue" | "blueBright" | "cyan" | "cyanBright" | "gray" | "green" | "greenBright" | "grey" | "magenta" | "magentaBright" | "red" | "redBright" | "white" | "whiteBright" | "yellow" | "yellowBright";
1
+ import { C as ColorizeType } from './packem_shared/types-CoLB2PX2.d.mjs';
2
+ export { A as AnsiColors, a as AnsiStyles } from './packem_shared/types-CoLB2PX2.d.mjs';
66
3
 
67
4
  declare const Colorize: new () => ColorizeType;
68
5
 
@@ -125,4 +62,4 @@ declare const whiteBright: ColorizeType;
125
62
  declare const yellow: ColorizeType;
126
63
  declare const yellowBright: ColorizeType;
127
64
 
128
- export { type AnsiColors, type AnsiStyles, Colorize, type ColorizeType, ansi256, bg, bgAnsi256, bgBlack, bgBlackBright, bgBlue, bgBlueBright, bgCyan, bgCyanBright, bgGray, bgGreen, bgGreenBright, bgGrey, bgHex, bgMagenta, bgMagentaBright, bgRed, bgRedBright, bgRgb, bgWhite, bgWhiteBright, bgYellow, bgYellowBright, black, blackBright, blue, blueBright, bold, cyan, cyanBright, _default as default, dim, fg, gray, green, greenBright, grey, hex, hidden, inverse, italic, magenta, magentaBright, overline, red, redBright, reset, rgb, strike, strikethrough, strip, underline, visible, white, whiteBright, yellow, yellowBright };
65
+ export { Colorize, ColorizeType, ansi256, bg, bgAnsi256, bgBlack, bgBlackBright, bgBlue, bgBlueBright, bgCyan, bgCyanBright, bgGray, bgGreen, bgGreenBright, bgGrey, bgHex, bgMagenta, bgMagentaBright, bgRed, bgRedBright, bgRgb, bgWhite, bgWhiteBright, bgYellow, bgYellowBright, black, blackBright, blue, blueBright, bold, cyan, cyanBright, _default as default, dim, fg, gray, green, greenBright, grey, hex, hidden, inverse, italic, magenta, magentaBright, overline, red, redBright, reset, rgb, strike, strikethrough, strip, underline, visible, white, whiteBright, yellow, yellowBright };
@@ -0,0 +1 @@
1
+ import g from"./packem_shared/Colorize-BG7_2JWK.mjs";const e=new g,{ansi256:i,bg:t,bgAnsi256:b,bgBlack:h,bgBlackBright:a,bgBlue:l,bgBlueBright:n,bgCyan:B,bgCyanBright:o,bgGray:s,bgGreen:d,bgGreenBright:y,bgGrey:c,bgHex:u,bgMagenta:w,bgMagentaBright:k,bgRed:m,bgRedBright:G,bgRgb:f,bgWhite:p,bgWhiteBright:v,bgYellow:x,bgYellowBright:C,black:R,blackBright:M,blue:W,blueBright:Y,bold:z,cyan:A,cyanBright:H,dim:j,fg:q,gray:D,green:E,greenBright:F,grey:I,hex:J,hidden:K,inverse:L,italic:N,magenta:O,magentaBright:P,overline:Q,red:S,redBright:T,reset:U,rgb:V,strike:X,strikethrough:Z,strip:_,underline:$,visible:gg,white:eg,whiteBright:rg,yellow:ig,yellowBright:tg}=e;export{g as Colorize,i as ansi256,t as bg,b as bgAnsi256,h as bgBlack,a as bgBlackBright,l as bgBlue,n as bgBlueBright,B as bgCyan,o as bgCyanBright,s as bgGray,d as bgGreen,y as bgGreenBright,c as bgGrey,u as bgHex,w as bgMagenta,k as bgMagentaBright,m as bgRed,G as bgRedBright,f as bgRgb,p as bgWhite,v as bgWhiteBright,x as bgYellow,C as bgYellowBright,R as black,M as blackBright,W as blue,Y as blueBright,z as bold,A as cyan,H as cyanBright,e as default,j as dim,q as fg,D as gray,E as green,F as greenBright,I as grey,J as hex,K as hidden,L as inverse,N as italic,O as magenta,P as magentaBright,Q as overline,S as red,T as redBright,U as reset,V as rgb,X as strike,Z as strikethrough,_ as strip,$ as underline,gg as visible,eg as white,rg as whiteBright,ig as yellow,tg as yellowBright};
@@ -0,0 +1,2 @@
1
+ var z=Object.defineProperty;var s=(e,r)=>z(e,"name",{value:r,configurable:!0});import{isStdoutColorSupported as G}from"@visulima/is-ansi-color-supported";var H=Object.defineProperty,Z=s((e,r)=>H(e,"name",{value:r,configurable:!0}),"u$1");function $({onlyFirst:e=!1}={}){const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}s($,"a$1");Z($,"ansiRegex");var F=Object.defineProperty,W=s((e,r)=>F(e,"name",{value:r,configurable:!0}),"c$2");const b=W((e,r,n)=>r>e?r:e>n?n:e,"clamp");var Y=Object.defineProperty,_=s((e,r)=>Y(e,"name",{value:r,configurable:!0}),"e$1");const q=_(e=>{let[,r]=/([a-f\d]{3,6})/i.exec(e)??[];const n=r?r.length:0;if(n===3)r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2];else if(n!==6)return[0,0,0];const o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},"convertHexToRgb");var D=Object.defineProperty,O=s((e,r)=>D(e,"name",{value:r,configurable:!0}),"e");const w=O((e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/51)+6*Math.round(r/51)+Math.round(n/51),"rgbToAnsi256"),m=O(e=>{let r,n,o;if(e<8)return 30+e;if(e<16)return 90+(e-8);if(e>=232)r=n=o=((e-232)*10+8)/255;else{e-=16;const f=e%36;r=Math.floor(e/36)/5,n=Math.floor(f/6)/5,o=f%6/5}const c=Math.max(r,n,o)*2;if(c===0)return 30;const l=30+(Math.round(o)<<2|Math.round(n)<<1|Math.round(r));return c===2?l+60:l},"ansi256To16"),R=O((e,r,n)=>m(w(e,r,n)),"rgbToAnsi16");var E=Object.defineProperty,g=s((e,r)=>E(e,"name",{value:r,configurable:!0}),"b");const a=39,i=49,k=10,B=G(),T={close:"",open:""},t=B>0?(e,r)=>({close:"\x1B["+r+"m",open:"\x1B["+e+"m"}):()=>T,S=g(e=>(r,n,o)=>e(w(Number(r),Number(n),Number(o))),"createRgbFunction"),j=g(e=>r=>{const[n,o,c]=q(r);return e(n,o,c)},"createHexFunction");let v=g(e=>t("38;5;"+e,a),"createAnsi256"),y=g(e=>t("48;5;"+e,i),"createBgAnsi256"),d=g((e,r,n)=>t("38;2;"+e+";"+r+";"+n,a),"createRgb"),h=g((e,r,n)=>t("48;2;"+e+";"+r+";"+n,i),"createBgRgb");B===1?(v=g(e=>t(m(Number(e)),a),"createAnsi256"),y=g(e=>t(m(Number(e))+k,i),"createBgAnsi256"),d=g((e,r,n)=>t(R(Number(e),Number(r),Number(n)),a),"createRgb"),h=g((e,r,n)=>t(R(Number(e),Number(r),Number(n))+k,i),"createBgRgb")):B===2&&(d=S(v),h=S(y));const M={bold:t(1,22),dim:t(2,22),hidden:t(8,28),inverse:t(7,27),italic:t(3,23),overline:t(53,55),reset:t(0,0),strike:t(9,29),strikethrough:t(9,29),underline:t(4,24),visible:T},P={bgBlack:t(40,i),bgBlackBright:t(100,i),bgBlue:t(44,i),bgBlueBright:t(104,i),bgCyan:t(46,i),bgCyanBright:t(106,i),bgGray:t(100,i),bgGreen:t(42,i),bgGreenBright:t(102,i),bgGrey:t(100,i),bgMagenta:t(45,i),bgMagentaBright:t(105,i),bgRed:t(41,i),bgRedBright:t(101,i),bgWhite:t(47,i),bgWhiteBright:t(107,i),bgYellow:t(43,i),bgYellowBright:t(103,i),black:t(30,a),blackBright:t(90,a),blue:t(34,a),blueBright:t(94,a),cyan:t(36,a),cyanBright:t(96,a),gray:t(90,a),green:t(32,a),greenBright:t(92,a),grey:t(90,a),magenta:t(35,a),magentaBright:t(95,a),red:t(31,a),redBright:t(91,a),white:t(37,a),whiteBright:t(97,a),yellow:t(33,a),yellowBright:t(93,a)},N={bg:g(e=>y(b(e,0,255)),"bg"),bgHex:j(h),bgRgb:g((e,r,n)=>h(b(e,0,255),b(r,0,255),b(n,0,255)),"bgRgb"),fg:g(e=>v(b(e,0,255)),"fg"),hex:j(d),rgb:g((e,r,n)=>d(b(e,0,255),b(r,0,255),b(n,0,255)),"rgb")};var I=Object.defineProperty,J=s((e,r)=>I(e,"name",{value:r,configurable:!0}),"s");const K=J((e,r,n)=>{if(r==="")return e;let o=e.indexOf(r);if(o<0)return e;const c=r.length;let l=0,f="";for(;~o;)f+=e.slice(l,o)+n,l=o+c,o=e.indexOf(r,l);return f+e.slice(l)},"stringReplaceAll");var L=Object.defineProperty,p=s((e,r)=>L(e,"name",{value:r,configurable:!0}),"a");const u={};let x=null;const Q=p((e,r,n)=>{if(!e)return"";let o=e.raw==null?e+"":String.raw(e,...r);if(o.includes("\x1B"))for(let c=n;c;c=c.props)o=K(o,c.close,c.open);return o.includes(`
2
+ `)&&(o=o.replace(/(\r*\n)/g,n.closeStack+"$1"+n.openStack)),n.openStack+o+n.closeStack},"wrapText"),A=p(({props:e},{close:r,open:n})=>{const o=(e?.openStack??"")+n,c=r+(e?.closeStack??""),l=p((f,...C)=>Q(f,C,l.props),"style");return Object.setPrototypeOf(l,x),l.props={close:r,closeStack:c,open:n,openStack:o,props:e},l.open=o,l.close=c,l},"createStyle"),X=p(function(){const e=p(r=>r+"","self");e.strip=r=>r.replaceAll($(),"");for(const r in P)u[r]={get(){const n=A(this,P[r]);return Object.defineProperty(this,r,{value:n}),n}};for(const r in M)u[r]={get(){const n=A(this,M[r]);return Object.defineProperty(this,r,{value:n}),n}};return x=Object.defineProperties({},u),Object.setPrototypeOf(e,x),e},"Colorize");for(const e in N)u[e]={get(){return(...r)=>A(this,N[e](...r))}};u.ansi256=u.fg;u.bgAnsi256=u.bg;export{X as default};
@@ -0,0 +1 @@
1
+ var v=Object.defineProperty;var i=(f,o)=>v(f,"name",{value:o,configurable:!0});const h={0:"#000",1:"#800",2:"#080",3:"#880",4:"#008",5:"#808",6:"#088",7:"#ccc",8:"#444",9:"#f00",10:"#0f0",11:"#ff0",12:"#00f",13:"#f0f",14:"#0ff",15:"#fff",16:"#000",17:"#00005f",18:"#000087",19:"#0000af",20:"#0000d7",21:"#0000ff",22:"#005f00",23:"#005f5f",24:"#005f87",25:"#005faf",26:"#005fd7",27:"#005fff",28:"#008700",29:"#00875f",30:"#008787",31:"#0087af",32:"#0087d7",33:"#0087ff",34:"#00af00",35:"#00af5f",36:"#00af87",37:"#00afaf",38:"#00afd7",39:"#00afff",40:"#00d700",41:"#00d75f",42:"#00d787",43:"#00d7af",44:"#00d7d7",45:"#00d7ff",46:"#00ff00",47:"#00ff5f",48:"#00ff87",49:"#00ffaf",50:"#00ffd7",51:"#00ffff",52:"#5f0000",53:"#5f005f",54:"#5f0087",55:"#5f00af",56:"#5f00d7",57:"#5f00ff",58:"#5f5f00",59:"#5f5f5f",60:"#5f5f87",61:"#5f5faf",62:"#5f5fd7",63:"#5f5fff",64:"#5f8700",65:"#5f875f",66:"#5f8787",67:"#5f87af",68:"#5f87d7",69:"#5f87ff",70:"#5faf00",71:"#5faf5f",72:"#5faf87",73:"#5fafaf",74:"#5fafd7",75:"#5fafff",76:"#5fd700",77:"#5fd75f",78:"#5fd787",79:"#5fd7af",80:"#5fd7d7",81:"#5fd7ff",82:"#5fff00",83:"#5fff5f",84:"#5fff87",85:"#5fffaf",86:"#5fffd7",87:"#5fffff",88:"#870000",89:"#87005f",90:"#870087",91:"#8700af",92:"#8700d7",93:"#8700ff",94:"#875f00",95:"#875f5f",96:"#875f87",97:"#875faf",98:"#875fd7",99:"#875fff",100:"#878700",101:"#87875f",102:"#878787",103:"#8787af",104:"#8787d7",105:"#8787ff",106:"#87af00",107:"#87af5f",108:"#87af87",109:"#87afaf",110:"#87afd7",111:"#87afff",112:"#87d700",113:"#87d75f",114:"#87d787",115:"#87d7af",116:"#87d7d7",117:"#87d7ff",118:"#87ff00",119:"#87ff5f",120:"#87ff87",121:"#87ffaf",122:"#87ffd7",123:"#87ffff",124:"#af0000",125:"#af005f",126:"#af0087",127:"#af00af",128:"#af00d7",129:"#af00ff",130:"#af5f00",131:"#af5f5f",132:"#af5f87",133:"#af5faf",134:"#af5fd7",135:"#af5fff",136:"#af8700",137:"#af875f",138:"#af8787",139:"#af87af",140:"#af87d7",141:"#af87ff",142:"#afaf00",143:"#afaf5f",144:"#afaf87",145:"#afafaf",146:"#afafd7",147:"#afafff",148:"#afd700",149:"#afd75f",150:"#afd787",151:"#afd7af",152:"#afd7d7",153:"#afd7ff",154:"#afff00",155:"#afff5f",156:"#afff87",157:"#afffaf",158:"#afffd7",159:"#afffff",160:"#d70000",161:"#d7005f",162:"#d70087",163:"#d700af",164:"#d700d7",165:"#d700ff",166:"#d75f00",167:"#d75f5f",168:"#d75f87",169:"#d75faf",170:"#d75fd7",171:"#d75fff",172:"#d78700",173:"#d7875f",174:"#d78787",175:"#d787af",176:"#d787d7",177:"#d787ff",178:"#d7af00",179:"#d7af5f",180:"#d7af87",181:"#d7afaf",182:"#d7afd7",183:"#d7afff",184:"#d7d700",185:"#d7d75f",186:"#d7d787",187:"#d7d7af",188:"#d7d7d7",189:"#d7d7ff",190:"#d7ff00",191:"#d7ff5f",192:"#d7ff87",193:"#d7ffaf",194:"#d7ffd7",195:"#d7ffff",196:"#ff0000",197:"#ff005f",198:"#ff0087",199:"#ff00af",200:"#ff00d7",201:"#ff00ff",202:"#ff5f00",203:"#ff5f5f",204:"#ff5f87",205:"#ff5faf",206:"#ff5fd7",207:"#ff5fff",208:"#ff8700",209:"#ff875f",210:"#ff8787",211:"#ff87af",212:"#ff87d7",213:"#ff87ff",214:"#ffaf00",215:"#ffaf5f",216:"#ffaf87",217:"#ffafaf",218:"#ffafd7",219:"#ffafff",220:"#ffd700",221:"#ffd75f",222:"#ffd787",223:"#ffd7af",224:"#ffd7d7",225:"#ffd7ff",226:"#ffff00",227:"#ffff5f",228:"#ffff87",229:"#ffffaf",230:"#ffffd7",231:"#ffffff",232:"#080808",233:"#121212",234:"#1c1c1c",235:"#262626",236:"#303030",237:"#3a3a3a",238:"#444444",239:"#4e4e4e",240:"#585858",241:"#626262",242:"#6c6c6c",243:"#767676",244:"#808080",245:"#8a8a8a",246:"#949494",247:"#9e9e9e",248:"#a8a8a8",249:"#b2b2b2",250:"#bcbcbc",251:"#c6c6c6",252:"#d0d0d0",253:"#dadada",254:"#e4e4e4",255:"#eeeeee"};var j=Object.defineProperty,l=i((f,o)=>j(f,"name",{value:o,configurable:!0}),"r");const k={bold:"font-weight: bold;",dim:"opacity: 0.5;",hidden:"visibility: hidden;",inverse:"background-color: currentColor; color: background-color;",italic:"font-style: italic;",overline:"text-decoration: overline;",reset:"color: inherit",strike:"text-decoration: line-through;",strikethrough:"text-decoration: line-through;",underline:"text-decoration: underline;",visible:"opacity: 0;"},y={bgBlack:"background-color: black; color: white;",bgBlackBright:"background-color: #666; color: white;",bgBlue:"background-color: blue; color: white;",bgBlueBright:"background-color: #55f; color: white;",bgCyan:"background-color: cyan; color: black;",bgCyanBright:"background-color: #5ff; color: black;",bgGray:"background-color: #666; color: white;",bgGreen:"background-color: green; color: white;",bgGreenBright:"background-color: #5f5; color: white;",bgGrey:"background-color: #666; color: white;",bgMagenta:"background-color: magenta; color: white;",bgMagentaBright:"background-color: #f5f; color: white;",bgRed:"background-color: red; color: white;",bgRedBright:"background-color: #f55; color: white;",bgWhite:"background-color: white; color: black;",bgWhiteBright:"background-color: #eee; color: black;",bgYellow:"background-color: yellow; color: black;",bgYellowBright:"background-color: #ff5; color: black;",black:"color: black;",blackBright:"color: #666;",blue:"color: blue;",blueBright:"color: #55f;",cyan:"color: cyan;",cyanBright:"color: #5ff;",gray:"color: #666;",green:"color: green;",greenBright:"color: #5f5;",grey:"color: #666;",magenta:"color: magenta;",magentaBright:"color: #f5f;",red:"color: red;",redBright:"color: #f55;",white:"color: white;",whiteBright:"color: #eee;",yellow:"color: yellow;",yellowBright:"color: #ff5;"},p={bg:l(f=>"background-color: "+h[f]+";","bg"),bgHex:l(f=>"background-color: "+f+";","bgHex"),bgRgb:l((f,o,r)=>"background-color: rgb("+f+","+o+","+r+");","bgRgb"),fg:l(f=>"color: "+h[f]+";","fg"),hex:l(f=>"color:"+f+";","hex"),rgb:l((f,o,r)=>"color: rgb("+f+","+o+","+r+");","rgb")};var O=Object.defineProperty,n=i((f,o)=>O(f,"name",{value:o,configurable:!0}),"a");const c={};let b=null;const w=n(f=>{const o={};return f.replace(/(?<=^|;)\s*([^:]+)\s*:\s*([^;]+)\s*/g,(r,e,a)=>(o[e]=a,a)),o},"cssStringToObject"),s=n(({props:f},o)=>{let r=o;if(f?.cssStack){const a=w(o),d=w(f.cssStack);for(const t in d)a[t]===void 0&&(a[t]=d[t]);r=JSON.stringify(a).replace(/["{}]/g,"").replace(/,/g,";")+";"}const e=n((a,...d)=>{if(!a)return[];if(typeof a=="string"&&a.includes("%c")){const g=a.match(/(?<=,).*;/g);return["%c"+a.replace(/,.*;/g,""),e.css,...g??[]]}if(typeof a=="number"||typeof a=="string")return["%c"+a,e.css];if(a.raw!==null&&Array.isArray(d)&&d.length>0){const g=String.raw(a,...d),B=g.match(/(?<=,).*;/g);return["%c"+g.replace(/,.*;/g,""),e.css,...(B??[]).join("").split(",").filter(Boolean)]}const[t,...u]=a;return u.unshift(e.css),[((t+"").includes("%c")?"":"%c")+(t+""),u.join("")]},"style");return Object.setPrototypeOf(e,b),e.props={css:o,cssStack:r,props:f},e.css=r,e},"createStyle"),x=n(function(){const f=n(o=>o+"","self");f.strip=o=>o;for(const o in y)c[o]={get(){const r=s(this,y[o]);return Object.defineProperty(this,o,{value:r}),r}};for(const o in k)c[o]={get(){const r=s(this,k[o]);return Object.defineProperty(this,o,{value:r}),r}};return b=Object.defineProperties({},c),Object.setPrototypeOf(f,b),f},"WebColorize");for(const f in p)c[f]={get(){return(...o)=>s(this,p[f](...o))}};c.ansi256=c.fg;c.bgAnsi256=c.bg;export{x as default};
@@ -0,0 +1 @@
1
+ "use strict";var S=Object.defineProperty;var g=(i,e)=>S(i,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./convertHexToRgb-DN4AQa3T.cjs"),y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var j=Object.defineProperty,x=g((i,e)=>j(i,"name",{value:e,configurable:!0}),"i");const w=x((i,e)=>{const s=i.length;if(e=Number.parseInt(e.toString(),10),Number.isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<s)throw new Error("Number of steps cannot be inferior to number of stops");const t=[];for(let r=1;r<s;r++){const n=(e-1)*(i[r].position-i[r-1].position);t.push(Math.max(1,Math.round(n)))}let o=1;for(let r=s-1;r--;)o+=t[r];for(;o!==e;)if(o<e){const r=Math.min(...t);t[t.indexOf(r)]++,o++}else{const r=Math.max(...t);t[t.indexOf(r)]--,o--}return t},"computeSubSteps");var T=Object.defineProperty,P=g((i,e)=>T(i,"name",{value:e,configurable:!0}),"c$1");const R=P((i,e,s)=>{let t=0,o=0,r=0;const n=Math.floor(i/60),a=i/60-n,l=s*(1-e),c=s*(1-a*e),p=s*(1-(1-a)*e);return n%6===0?(t=s,o=p,r=l):n%6===1?(t=c,o=s,r=l):n%6===2?(t=l,o=s,r=p):n%6===3?(t=l,o=c,r=s):n%6===4?(t=p,o=l,r=s):n%6===5&&(t=s,o=l,r=c),{b:Math.round(r*255),g:Math.round(o*255),r:Math.round(t*255)}},"hsvToRgb");var H=Object.defineProperty,k=g((i,e)=>H(i,"name",{value:e,configurable:!0}),"b$1");const M=k(({b:i,g:e,r:s})=>{let t,o,r,n=0,a=0;s/=255,e/=255,i/=255;const l=Math.max(s,e,i),c=l-Math.min(s,e,i),p=k(h=>(l-h)/6/c+1/2,"diffc");return c!==0&&(a=c/l,t=p(s),o=p(e),r=p(i),l===s?n=r-o:l===e?n=.3333333333333333+t-r:l===i&&(n=.6666666666666666+o-t),n<0?n+=1:n>1&&(n-=1)),{h:n*360,s:a,v:l}},"rgbToHsv");var N=Object.defineProperty,f=g((i,e)=>N(i,"name",{value:e,configurable:!0}),"c");const A={b:256,g:256,r:256},C={h:360,s:1,v:1},q=f((i,e,s)=>{const t={};for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=s===0?0:(e[o]-i[o])/s);return t},"calculateStepSize"),E=f((i,e,s,t)=>{const o={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(o[r]=i[r]*s+e[r],o[r]=o[r]<0?o[r]+t[r]:t[r]===1?o[r]:o[r]%t[r]);return o},"interpolate"),m=f((i,e,s)=>{const t={b:i.color[2],g:i.color[1],r:i.color[0]},o={b:e.color[2],g:e.color[1],r:e.color[0]},r=q(t,o,s),n=[{...t}];for(let a=1;a<s;a++){const l=E(r,t,a,A);n.push({b:Math.floor(l.b),g:Math.floor(l.g),r:Math.floor(l.r)})}return n},"interpolateRgb"),O=f((i,e,s,t)=>{const o=M({b:i.color[2],g:i.color[1],r:i.color[0]}),r=M({b:e.color[2],g:e.color[1],r:e.color[0]});if(o.s===0||r.s===0)return m(i,e,s);let n;if(typeof t=="boolean")n=t;else{const p=o.h<r.h&&r.h-o.h<180||o.h>r.h&&o.h-r.h>180;n=t==="long"&&p||t==="short"&&!p}const a=q(o,r,s),l=[{b:i.color[2],g:i.color[1],r:i.color[0]}];let c;o.h<=r.h&&!n||o.h>=r.h&&n?c=r.h-o.h:n?c=360-r.h+o.h:c=360-o.h+r.h,a.h=(-1)**(n?1:0)*Math.abs(c)/s;for(let p=1;p<s;p++){const h=E(a,o,p,C);l.push(R(h.h,h.s,h.v))}return l},"interpolateHsv");var I=Object.defineProperty,L=g((i,e)=>I(i,"name",{value:e,configurable:!0}),"b");class b{static{g(this,"GradientBuilder")}static{L(this,"GradientBuilder")}#o;stops;constructor(e,s){if(this.#o=e,this.stops=[],s.length<2)throw new Error("Invalid number of stops (< 2)");const t=s[0].position!==void 0;let o=s.length,r=-1,n=!1;for(const[a,l]of s.entries()){let c={};const p=l.position!==void 0;if(t!==p)throw new Error("Cannot mix positioned and non-positioned color stops");if(p){const h=l,u=h.color!==void 0;if(!u&&(n||a===0||a===o-1))throw new Error("Cannot define two consecutive position-only stops");n=!u;let d;if(u&&(Array.isArray(h.color)?d=h.color:typeof h.color=="string"?d=h.color.includes("#")?v.convertHexToRgb(h.color):y[h.color]:h.color.r!==void 0&&h.color.g!==void 0&&h.color.b&&(d=[h.color.r,h.color.g,h.color.b])),c={color:d,colorLess:!u,position:h.position},c.position<0||c.position>1)throw new Error("Color stops positions must be between 0 and 1");if(c.position<r)throw new Error("Color stops positions are not ordered");r=c.position}else if(Array.isArray(l))c={color:l,position:a/(o-1)};else if(typeof l=="string")c={color:l.includes("#")?v.convertHexToRgb(l):y[l],position:a/(o-1)};else if(l.r!==void 0&&l.g!==void 0&&l.b!==void 0)c={color:[l.r,l.g,l.b],position:a/(o-1)};else throw new Error("Invalid color stop");this.stops.push(c)}this.stops[0].position!==0&&(this.stops.unshift({color:this.stops[0].color,position:0}),o++),this.stops[o-1].position!==1&&this.stops.push({color:this.stops[o-1].color,position:1})}reverse(){const e=[];for(const s of this.stops){const t={...s};t.position=1-s.position,e.push(t)}return new b(this.#o,e.reverse())}loop(){const e=[],s=[];for(const t of this.stops)e.push({color:t.color,position:(t.position||0)/2});for(const t of this.stops.slice(0,-1))s.push({color:t.color,position:1-(t.position||0)/2});return new b(this.#o,[...e,...s.reverse()])}rgb(e){const s=w(this.stops,e),t=[];this.stops.forEach((o,r)=>{if(o.colorLess){const n=m(this.stops[r-1],this.stops[r+1],2);o.color=[n[1].r,n[1].g,n[1].b]}});for(let o=0,r=this.stops.length;o<r-1;o++){const n=m(this.stops[o],this.stops[o+1],s[o]);t.splice(t.length,0,...n.map(a=>this.#o.rgb(a.r,a.g,a.b)))}return t.push(this.#o.rgb(...this.stops.at(-1).color)),t}hsv(e,s=!1){const t=w(this.stops,e),o=[];this.stops.forEach((r,n)=>{if(r.colorLess){const a=O(this.stops[n-1],this.stops[n+1],2,s);r.color=[a[1].r,a[1].g,a[1].b]}});for(let r=0,n=this.stops.length;r<n-1;r++){const a=O(this.stops[r],this.stops[r+1],t[r],s);o.splice(o.length,0,...a.map(l=>this.#o.rgb(l.r,l.g,l.b)))}return o.push(this.#o.rgb(...this.stops.at(-1).color)),o}}exports.GradientBuilder=b;
@@ -0,0 +1 @@
1
+ var j=Object.defineProperty;var g=(i,t)=>j(i,"name",{value:t,configurable:!0});import{convertHexToRgb as v}from"./convertHexToRgb-CSiKB7t1.mjs";const y={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};var x=Object.defineProperty,S=g((i,t)=>x(i,"name",{value:t,configurable:!0}),"i");const w=S((i,t)=>{const s=i.length;if(t=Number.parseInt(t.toString(),10),Number.isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<s)throw new Error("Number of steps cannot be inferior to number of stops");const e=[];for(let r=1;r<s;r++){const n=(t-1)*(i[r].position-i[r-1].position);e.push(Math.max(1,Math.round(n)))}let o=1;for(let r=s-1;r--;)o+=e[r];for(;o!==t;)if(o<t){const r=Math.min(...e);e[e.indexOf(r)]++,o++}else{const r=Math.max(...e);e[e.indexOf(r)]--,o--}return e},"computeSubSteps");var P=Object.defineProperty,N=g((i,t)=>P(i,"name",{value:t,configurable:!0}),"c$1");const R=N((i,t,s)=>{let e=0,o=0,r=0;const n=Math.floor(i/60),a=i/60-n,l=s*(1-t),c=s*(1-a*t),p=s*(1-(1-a)*t);return n%6===0?(e=s,o=p,r=l):n%6===1?(e=c,o=s,r=l):n%6===2?(e=l,o=s,r=p):n%6===3?(e=l,o=c,r=s):n%6===4?(e=p,o=l,r=s):n%6===5&&(e=s,o=l,r=c),{b:Math.round(r*255),g:Math.round(o*255),r:Math.round(e*255)}},"hsvToRgb");var T=Object.defineProperty,k=g((i,t)=>T(i,"name",{value:t,configurable:!0}),"b$1");const M=k(({b:i,g:t,r:s})=>{let e,o,r,n=0,a=0;s/=255,t/=255,i/=255;const l=Math.max(s,t,i),c=l-Math.min(s,t,i),p=k(h=>(l-h)/6/c+1/2,"diffc");return c!==0&&(a=c/l,e=p(s),o=p(t),r=p(i),l===s?n=r-o:l===t?n=.3333333333333333+e-r:l===i&&(n=.6666666666666666+o-e),n<0?n+=1:n>1&&(n-=1)),{h:n*360,s:a,v:l}},"rgbToHsv");var H=Object.defineProperty,b=g((i,t)=>H(i,"name",{value:t,configurable:!0}),"c");const A={b:256,g:256,r:256},C={h:360,s:1,v:1},E=b((i,t,s)=>{const e={};for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=s===0?0:(t[o]-i[o])/s);return e},"calculateStepSize"),q=b((i,t,s,e)=>{const o={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=i[r]*s+t[r],o[r]=o[r]<0?o[r]+e[r]:e[r]===1?o[r]:o[r]%e[r]);return o},"interpolate"),f=b((i,t,s)=>{const e={b:i.color[2],g:i.color[1],r:i.color[0]},o={b:t.color[2],g:t.color[1],r:t.color[0]},r=E(e,o,s),n=[{...e}];for(let a=1;a<s;a++){const l=q(r,e,a,A);n.push({b:Math.floor(l.b),g:Math.floor(l.g),r:Math.floor(l.r)})}return n},"interpolateRgb"),O=b((i,t,s,e)=>{const o=M({b:i.color[2],g:i.color[1],r:i.color[0]}),r=M({b:t.color[2],g:t.color[1],r:t.color[0]});if(o.s===0||r.s===0)return f(i,t,s);let n;if(typeof e=="boolean")n=e;else{const p=o.h<r.h&&r.h-o.h<180||o.h>r.h&&o.h-r.h>180;n=e==="long"&&p||e==="short"&&!p}const a=E(o,r,s),l=[{b:i.color[2],g:i.color[1],r:i.color[0]}];let c;o.h<=r.h&&!n||o.h>=r.h&&n?c=r.h-o.h:n?c=360-r.h+o.h:c=360-o.h+r.h,a.h=(-1)**(n?1:0)*Math.abs(c)/s;for(let p=1;p<s;p++){const h=q(a,o,p,C);l.push(R(h.h,h.s,h.v))}return l},"interpolateHsv");var I=Object.defineProperty,L=g((i,t)=>I(i,"name",{value:t,configurable:!0}),"b");class m{static{g(this,"GradientBuilder")}static{L(this,"GradientBuilder")}#o;stops;constructor(t,s){if(this.#o=t,this.stops=[],s.length<2)throw new Error("Invalid number of stops (< 2)");const e=s[0].position!==void 0;let o=s.length,r=-1,n=!1;for(const[a,l]of s.entries()){let c={};const p=l.position!==void 0;if(e!==p)throw new Error("Cannot mix positioned and non-positioned color stops");if(p){const h=l,u=h.color!==void 0;if(!u&&(n||a===0||a===o-1))throw new Error("Cannot define two consecutive position-only stops");n=!u;let d;if(u&&(Array.isArray(h.color)?d=h.color:typeof h.color=="string"?d=h.color.includes("#")?v(h.color):y[h.color]:h.color.r!==void 0&&h.color.g!==void 0&&h.color.b&&(d=[h.color.r,h.color.g,h.color.b])),c={color:d,colorLess:!u,position:h.position},c.position<0||c.position>1)throw new Error("Color stops positions must be between 0 and 1");if(c.position<r)throw new Error("Color stops positions are not ordered");r=c.position}else if(Array.isArray(l))c={color:l,position:a/(o-1)};else if(typeof l=="string")c={color:l.includes("#")?v(l):y[l],position:a/(o-1)};else if(l.r!==void 0&&l.g!==void 0&&l.b!==void 0)c={color:[l.r,l.g,l.b],position:a/(o-1)};else throw new Error("Invalid color stop");this.stops.push(c)}this.stops[0].position!==0&&(this.stops.unshift({color:this.stops[0].color,position:0}),o++),this.stops[o-1].position!==1&&this.stops.push({color:this.stops[o-1].color,position:1})}reverse(){const t=[];for(const s of this.stops){const e={...s};e.position=1-s.position,t.push(e)}return new m(this.#o,t.reverse())}loop(){const t=[],s=[];for(const e of this.stops)t.push({color:e.color,position:(e.position||0)/2});for(const e of this.stops.slice(0,-1))s.push({color:e.color,position:1-(e.position||0)/2});return new m(this.#o,[...t,...s.reverse()])}rgb(t){const s=w(this.stops,t),e=[];this.stops.forEach((o,r)=>{if(o.colorLess){const n=f(this.stops[r-1],this.stops[r+1],2);o.color=[n[1].r,n[1].g,n[1].b]}});for(let o=0,r=this.stops.length;o<r-1;o++){const n=f(this.stops[o],this.stops[o+1],s[o]);e.splice(e.length,0,...n.map(a=>this.#o.rgb(a.r,a.g,a.b)))}return e.push(this.#o.rgb(...this.stops.at(-1).color)),e}hsv(t,s=!1){const e=w(this.stops,t),o=[];this.stops.forEach((r,n)=>{if(r.colorLess){const a=O(this.stops[n-1],this.stops[n+1],2,s);r.color=[a[1].r,a[1].g,a[1].b]}});for(let r=0,n=this.stops.length;r<n-1;r++){const a=O(this.stops[r],this.stops[r+1],e[r],s);o.splice(o.length,0,...a.map(l=>this.#o.rgb(l.r,l.g,l.b)))}return o.push(this.#o.rgb(...this.stops.at(-1).color)),o}}export{m as GradientBuilder};
@@ -0,0 +1,2 @@
1
+ var T=Object.defineProperty;var u=(e,r)=>T(e,"name",{value:r,configurable:!0});import{isStdoutColorSupported as z}from"@visulima/is-ansi-color-supported";import{convertHexToRgb as G}from"./convertHexToRgb-CSiKB7t1.mjs";import{rgbToAnsi256 as Z,ansi256To16 as R,rgbToAnsi16 as x}from"./rgbToAnsi256-YETEPW8R.mjs";var F=Object.defineProperty,H=u((e,r)=>F(e,"name",{value:r,configurable:!0}),"u$1");function w({onlyFirst:e=!1}={}){const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}u(w,"a$1");H(w,"ansiRegex");var M=Object.defineProperty,W=u((e,r)=>M(e,"name",{value:r,configurable:!0}),"c$2");const s=W((e,r,n)=>r>e?r:e>n?n:e,"clamp");var Y=Object.defineProperty,g=u((e,r)=>Y(e,"name",{value:r,configurable:!0}),"b");const o=39,i=49,A=10,m=z(),$={close:"",open:""},t=m>0?(e,r)=>({close:"\x1B["+r+"m",open:"\x1B["+e+"m"}):()=>$,O=g(e=>(r,n,c)=>e(Z(Number(r),Number(n),Number(c))),"createRgbFunction"),S=g(e=>r=>{const[n,c,a]=G(r);return e(n,c,a)},"createHexFunction");let B=g(e=>t("38;5;"+e,o),"createAnsi256"),y=g(e=>t("48;5;"+e,i),"createBgAnsi256"),d=g((e,r,n)=>t("38;2;"+e+";"+r+";"+n,o),"createRgb"),h=g((e,r,n)=>t("48;2;"+e+";"+r+";"+n,i),"createBgRgb");m===1?(B=g(e=>t(R(Number(e)),o),"createAnsi256"),y=g(e=>t(R(Number(e))+A,i),"createBgAnsi256"),d=g((e,r,n)=>t(x(Number(e),Number(r),Number(n)),o),"createRgb"),h=g((e,r,n)=>t(x(Number(e),Number(r),Number(n))+A,i),"createBgRgb")):m===2&&(d=O(B),h=O(y));const j={bold:t(1,22),dim:t(2,22),hidden:t(8,28),inverse:t(7,27),italic:t(3,23),overline:t(53,55),reset:t(0,0),strike:t(9,29),strikethrough:t(9,29),underline:t(4,24),visible:$},N={bgBlack:t(40,i),bgBlackBright:t(100,i),bgBlue:t(44,i),bgBlueBright:t(104,i),bgCyan:t(46,i),bgCyanBright:t(106,i),bgGray:t(100,i),bgGreen:t(42,i),bgGreenBright:t(102,i),bgGrey:t(100,i),bgMagenta:t(45,i),bgMagentaBright:t(105,i),bgRed:t(41,i),bgRedBright:t(101,i),bgWhite:t(47,i),bgWhiteBright:t(107,i),bgYellow:t(43,i),bgYellowBright:t(103,i),black:t(30,o),blackBright:t(90,o),blue:t(34,o),blueBright:t(94,o),cyan:t(36,o),cyanBright:t(96,o),gray:t(90,o),green:t(32,o),greenBright:t(92,o),grey:t(90,o),magenta:t(35,o),magentaBright:t(95,o),red:t(31,o),redBright:t(91,o),white:t(37,o),whiteBright:t(97,o),yellow:t(33,o),yellowBright:t(93,o)},P={bg:g(e=>y(s(e,0,255)),"bg"),bgHex:S(h),bgRgb:g((e,r,n)=>h(s(e,0,255),s(r,0,255),s(n,0,255)),"bgRgb"),fg:g(e=>B(s(e,0,255)),"fg"),hex:S(d),rgb:g((e,r,n)=>d(s(e,0,255),s(r,0,255),s(n,0,255)),"rgb")};var _=Object.defineProperty,q=u((e,r)=>_(e,"name",{value:r,configurable:!0}),"s");const D=q((e,r,n)=>{if(r==="")return e;let c=e.indexOf(r);if(c<0)return e;const a=r.length;let l=0,f="";for(;~c;)f+=e.slice(l,c)+n,l=c+a,c=e.indexOf(r,l);return f+e.slice(l)},"stringReplaceAll");var E=Object.defineProperty,p=u((e,r)=>E(e,"name",{value:r,configurable:!0}),"a");const b={};let v=null;const I=p((e,r,n)=>{if(!e)return"";let c=e.raw==null?e+"":String.raw(e,...r);if(c.includes("\x1B"))for(let a=n;a;a=a.props)c=D(c,a.close,a.open);return c.includes(`
2
+ `)&&(c=c.replace(/(\r*\n)/g,n.closeStack+"$1"+n.openStack)),n.openStack+c+n.closeStack},"wrapText"),k=p(({props:e},{close:r,open:n})=>{const c=(e?.openStack??"")+n,a=r+(e?.closeStack??""),l=p((f,...C)=>I(f,C,l.props),"style");return Object.setPrototypeOf(l,v),l.props={close:r,closeStack:a,open:n,openStack:c,props:e},l.open=c,l.close=a,l},"createStyle"),U=p(function(){const e=p(r=>r+"","self");e.strip=r=>r.replaceAll(w(),"");for(const r in N)b[r]={get(){const n=k(this,N[r]);return Object.defineProperty(this,r,{value:n}),n}};for(const r in j)b[r]={get(){const n=k(this,j[r]);return Object.defineProperty(this,r,{value:n}),n}};return v=Object.defineProperties({},b),Object.setPrototypeOf(e,v),e},"Colorize");for(const e in P)b[e]={get(){return(...r)=>k(this,P[e](...r))}};b.ansi256=b.fg;b.bgAnsi256=b.bg;export{U as m};
@@ -0,0 +1,2 @@
1
+ "use strict";var $=Object.defineProperty;var u=(e,r)=>$(e,"name",{value:r,configurable:!0});const C=require("@visulima/is-ansi-color-supported"),q=require("./convertHexToRgb-DN4AQa3T.cjs"),p=require("./rgbToAnsi256-D4IPvnol.cjs");var z=Object.defineProperty,G=u((e,r)=>z(e,"name",{value:r,configurable:!0}),"u$1");function P({onlyFirst:e=!1}={}){const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}u(P,"a$1");G(P,"ansiRegex");var H=Object.defineProperty,Z=u((e,r)=>H(e,"name",{value:r,configurable:!0}),"c$2");const s=Z((e,r,n)=>r>e?r:e>n?n:e,"clamp");var F=Object.defineProperty,g=u((e,r)=>F(e,"name",{value:r,configurable:!0}),"b");const o=39,i=49,k=10,m=C.isStdoutColorSupported(),w={close:"",open:""},t=m>0?(e,r)=>({close:"\x1B["+r+"m",open:"\x1B["+e+"m"}):()=>w,S=g(e=>(r,n,c)=>e(p.rgbToAnsi256(Number(r),Number(n),Number(c))),"createRgbFunction"),x=g(e=>r=>{const[n,c,a]=q.convertHexToRgb(r);return e(n,c,a)},"createHexFunction");let y=g(e=>t("38;5;"+e,o),"createAnsi256"),v=g(e=>t("48;5;"+e,i),"createBgAnsi256"),h=g((e,r,n)=>t("38;2;"+e+";"+r+";"+n,o),"createRgb"),B=g((e,r,n)=>t("48;2;"+e+";"+r+";"+n,i),"createBgRgb");m===1?(y=g(e=>t(p.ansi256To16(Number(e)),o),"createAnsi256"),v=g(e=>t(p.ansi256To16(Number(e))+k,i),"createBgAnsi256"),h=g((e,r,n)=>t(p.rgbToAnsi16(Number(e),Number(r),Number(n)),o),"createRgb"),B=g((e,r,n)=>t(p.rgbToAnsi16(Number(e),Number(r),Number(n))+k,i),"createBgRgb")):m===2&&(h=S(y),B=S(v));const O={bold:t(1,22),dim:t(2,22),hidden:t(8,28),inverse:t(7,27),italic:t(3,23),overline:t(53,55),reset:t(0,0),strike:t(9,29),strikethrough:t(9,29),underline:t(4,24),visible:w},j={bgBlack:t(40,i),bgBlackBright:t(100,i),bgBlue:t(44,i),bgBlueBright:t(104,i),bgCyan:t(46,i),bgCyanBright:t(106,i),bgGray:t(100,i),bgGreen:t(42,i),bgGreenBright:t(102,i),bgGrey:t(100,i),bgMagenta:t(45,i),bgMagentaBright:t(105,i),bgRed:t(41,i),bgRedBright:t(101,i),bgWhite:t(47,i),bgWhiteBright:t(107,i),bgYellow:t(43,i),bgYellowBright:t(103,i),black:t(30,o),blackBright:t(90,o),blue:t(34,o),blueBright:t(94,o),cyan:t(36,o),cyanBright:t(96,o),gray:t(90,o),green:t(32,o),greenBright:t(92,o),grey:t(90,o),magenta:t(35,o),magentaBright:t(95,o),red:t(31,o),redBright:t(91,o),white:t(37,o),whiteBright:t(97,o),yellow:t(33,o),yellowBright:t(93,o)},N={bg:g(e=>v(s(e,0,255)),"bg"),bgHex:x(B),bgRgb:g((e,r,n)=>B(s(e,0,255),s(r,0,255),s(n,0,255)),"bgRgb"),fg:g(e=>y(s(e,0,255)),"fg"),hex:x(h),rgb:g((e,r,n)=>h(s(e,0,255),s(r,0,255),s(n,0,255)),"rgb")};var M=Object.defineProperty,W=u((e,r)=>M(e,"name",{value:r,configurable:!0}),"s");const Y=W((e,r,n)=>{if(r==="")return e;let c=e.indexOf(r);if(c<0)return e;const a=r.length;let l=0,f="";for(;~c;)f+=e.slice(l,c)+n,l=c+a,c=e.indexOf(r,l);return f+e.slice(l)},"stringReplaceAll");var _=Object.defineProperty,d=u((e,r)=>_(e,"name",{value:r,configurable:!0}),"a");const b={};let A=null;const D=d((e,r,n)=>{if(!e)return"";let c=e.raw==null?e+"":String.raw(e,...r);if(c.includes("\x1B"))for(let a=n;a;a=a.props)c=Y(c,a.close,a.open);return c.includes(`
2
+ `)&&(c=c.replace(/(\r*\n)/g,n.closeStack+"$1"+n.openStack)),n.openStack+c+n.closeStack},"wrapText"),R=d(({props:e},{close:r,open:n})=>{const c=(e?.openStack??"")+n,a=r+(e?.closeStack??""),l=d((f,...T)=>D(f,T,l.props),"style");return Object.setPrototypeOf(l,A),l.props={close:r,closeStack:a,open:n,openStack:c,props:e},l.open=c,l.close=a,l},"createStyle"),E=d(function(){const e=d(r=>r+"","self");e.strip=r=>r.replaceAll(P(),"");for(const r in j)b[r]={get(){const n=R(this,j[r]);return Object.defineProperty(this,r,{value:n}),n}};for(const r in O)b[r]={get(){const n=R(this,O[r]);return Object.defineProperty(this,r,{value:n}),n}};return A=Object.defineProperties({},b),Object.setPrototypeOf(e,A),e},"Colorize");for(const e in N)b[e]={get(){return(...r)=>R(this,N[e](...r))}};b.ansi256=b.fg;b.bgAnsi256=b.bg;exports.m=E;
@@ -0,0 +1 @@
1
+ var c=Object.defineProperty;var o=(r,e)=>c(r,"name",{value:e,configurable:!0});var a=Object.defineProperty,i=o((r,e)=>a(r,"name",{value:e,configurable:!0}),"e");const b=i(r=>{let[,e]=/([a-f\d]{3,6})/i.exec(r)??[];const n=e?e.length:0;if(n===3)e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2];else if(n!==6)return[0,0,0];const t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,t&255]},"convertHexToRgb");export{b as convertHexToRgb};
@@ -0,0 +1 @@
1
+ "use strict";var c=Object.defineProperty;var o=(t,e)=>c(t,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a=Object.defineProperty,i=o((t,e)=>a(t,"name",{value:e,configurable:!0}),"e");const b=i(t=>{let[,e]=/([a-f\d]{3,6})/i.exec(t)??[];const n=e?e.length:0;if(n===3)e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2];else if(n!==6)return[0,0,0];const r=Number.parseInt(e,16);return[r>>16&255,r>>8&255,r&255]},"convertHexToRgb");exports.convertHexToRgb=b;
@@ -0,0 +1 @@
1
+ "use strict";var d=Object.defineProperty;var s=(o,n)=>d(o,"name",{value:n,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var h=Object.defineProperty,e=s((o,n)=>h(o,"name",{value:n,configurable:!0}),"e");const b=e((o,n,t)=>o===n&&n===t?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/51)+6*Math.round(n/51)+Math.round(t/51),"rgbToAnsi256"),M=e(o=>{let n,t,a;if(o<8)return 30+o;if(o<16)return 90+(o-8);if(o>=232)n=t=a=((o-232)*10+8)/255;else{o-=16;const u=o%36;n=Math.floor(o/36)/5,t=Math.floor(u/6)/5,a=u%6/5}const r=Math.max(n,t,a)*2;if(r===0)return 30;const i=30+(Math.round(a)<<2|Math.round(t)<<1|Math.round(n));return r===2?i+60:i},"ansi256To16"),T=e((o,n,t)=>M(b(o,n,t)),"rgbToAnsi16");exports.ansi256To16=M;exports.rgbToAnsi16=T;exports.rgbToAnsi256=b;
@@ -0,0 +1 @@
1
+ var h=Object.defineProperty;var s=(o,n)=>h(o,"name",{value:n,configurable:!0});var M=Object.defineProperty,e=s((o,n)=>M(o,"name",{value:n,configurable:!0}),"e");const d=e((o,n,t)=>o===n&&n===t?o<8?16:o>248?231:Math.round((o-8)/247*24)+232:16+36*Math.round(o/51)+6*Math.round(n/51)+Math.round(t/51),"rgbToAnsi256"),f=e(o=>{let n,t,a;if(o<8)return 30+o;if(o<16)return 90+(o-8);if(o>=232)n=t=a=((o-232)*10+8)/255;else{o-=16;const i=o%36;n=Math.floor(o/36)/5,t=Math.floor(i/6)/5,a=i%6/5}const r=Math.max(n,t,a)*2;if(r===0)return 30;const u=30+(Math.round(a)<<2|Math.round(t)<<1|Math.round(n));return r===2?u+60:u},"ansi256To16"),c=e((o,n,t)=>f(d(o,n,t)),"rgbToAnsi16");export{f as ansi256To16,c as rgbToAnsi16,d as rgbToAnsi256};
@@ -0,0 +1,67 @@
1
+ type ColorValueHex = `#${string}`;
2
+ interface ColorizeType {
3
+ (string: number | string): string;
4
+ (string: TemplateStringsArray, ...parameters: string[]): string;
5
+ ansi256: (code: number) => this;
6
+ bg: (code: number) => this;
7
+ bgAnsi256: (code: number) => this;
8
+ readonly bgBlack: this;
9
+ readonly bgBlackBright: this;
10
+ readonly bgBlue: this;
11
+ readonly bgBlueBright: this;
12
+ readonly bgCyan: this;
13
+ readonly bgCyanBright: this;
14
+ readonly bgGray: this;
15
+ readonly bgGreen: this;
16
+ readonly bgGreenBright: this;
17
+ readonly bgGrey: this;
18
+ bgHex: (color: ColorValueHex) => this;
19
+ readonly bgMagenta: this;
20
+ readonly bgMagentaBright: this;
21
+ readonly bgRed: this;
22
+ readonly bgRedBright: this;
23
+ bgRgb: (red: number, green: number, blue: number) => this;
24
+ readonly bgWhite: this;
25
+ readonly bgWhiteBright: this;
26
+ readonly bgYellow: this;
27
+ readonly bgYellowBright: this;
28
+ readonly black: this;
29
+ readonly blackBright: this;
30
+ readonly blue: this;
31
+ readonly blueBright: this;
32
+ readonly bold: this;
33
+ readonly close: string;
34
+ readonly cyan: this;
35
+ readonly cyanBright: this;
36
+ readonly dim: this;
37
+ fg: (code: number) => this;
38
+ readonly gray: this;
39
+ readonly green: this;
40
+ readonly greenBright: this;
41
+ readonly grey: this;
42
+ hex: (color: ColorValueHex) => this;
43
+ readonly hidden: this;
44
+ readonly inverse: this;
45
+ readonly italic: this;
46
+ readonly magenta: this;
47
+ readonly magentaBright: this;
48
+ readonly open: string;
49
+ readonly overline: this;
50
+ readonly red: this;
51
+ readonly redBright: this;
52
+ readonly reset: this;
53
+ rgb: (red: number, green: number, blue: number) => this;
54
+ readonly strike: this;
55
+ readonly strikethrough: this;
56
+ strip: (string: string) => string;
57
+ readonly underline: this;
58
+ readonly visible: this;
59
+ readonly white: this;
60
+ readonly whiteBright: this;
61
+ readonly yellow: this;
62
+ readonly yellowBright: this;
63
+ }
64
+ type AnsiStyles = "bold" | "dim" | "hidden" | "inverse" | "italic" | "overline" | "reset" | "strike" | "strikethrough" | "underline" | "visible";
65
+ type AnsiColors = "bgBlack" | "bgBlackBright" | "bgBlue" | "bgBlueBright" | "bgCyan" | "bgCyanBright" | "bgGray" | "bgGreen" | "bgGreenBright" | "bgGrey" | "bgMagenta" | "bgMagentaBright" | "bgRed" | "bgRedBright" | "bgWhite" | "bgWhiteBright" | "bgYellow" | "bgYellowBright" | "black" | "blackBright" | "blue" | "blueBright" | "cyan" | "cyanBright" | "gray" | "green" | "greenBright" | "grey" | "magenta" | "magentaBright" | "red" | "redBright" | "white" | "whiteBright" | "yellow" | "yellowBright";
66
+
67
+ export type { AnsiColors as A, ColorizeType as C, AnsiStyles as a };
@@ -0,0 +1,67 @@
1
+ type ColorValueHex = `#${string}`;
2
+ interface ColorizeType {
3
+ (string: number | string): string;
4
+ (string: TemplateStringsArray, ...parameters: string[]): string;
5
+ ansi256: (code: number) => this;
6
+ bg: (code: number) => this;
7
+ bgAnsi256: (code: number) => this;
8
+ readonly bgBlack: this;
9
+ readonly bgBlackBright: this;
10
+ readonly bgBlue: this;
11
+ readonly bgBlueBright: this;
12
+ readonly bgCyan: this;
13
+ readonly bgCyanBright: this;
14
+ readonly bgGray: this;
15
+ readonly bgGreen: this;
16
+ readonly bgGreenBright: this;
17
+ readonly bgGrey: this;
18
+ bgHex: (color: ColorValueHex) => this;
19
+ readonly bgMagenta: this;
20
+ readonly bgMagentaBright: this;
21
+ readonly bgRed: this;
22
+ readonly bgRedBright: this;
23
+ bgRgb: (red: number, green: number, blue: number) => this;
24
+ readonly bgWhite: this;
25
+ readonly bgWhiteBright: this;
26
+ readonly bgYellow: this;
27
+ readonly bgYellowBright: this;
28
+ readonly black: this;
29
+ readonly blackBright: this;
30
+ readonly blue: this;
31
+ readonly blueBright: this;
32
+ readonly bold: this;
33
+ readonly close: string;
34
+ readonly cyan: this;
35
+ readonly cyanBright: this;
36
+ readonly dim: this;
37
+ fg: (code: number) => this;
38
+ readonly gray: this;
39
+ readonly green: this;
40
+ readonly greenBright: this;
41
+ readonly grey: this;
42
+ hex: (color: ColorValueHex) => this;
43
+ readonly hidden: this;
44
+ readonly inverse: this;
45
+ readonly italic: this;
46
+ readonly magenta: this;
47
+ readonly magentaBright: this;
48
+ readonly open: string;
49
+ readonly overline: this;
50
+ readonly red: this;
51
+ readonly redBright: this;
52
+ readonly reset: this;
53
+ rgb: (red: number, green: number, blue: number) => this;
54
+ readonly strike: this;
55
+ readonly strikethrough: this;
56
+ strip: (string: string) => string;
57
+ readonly underline: this;
58
+ readonly visible: this;
59
+ readonly white: this;
60
+ readonly whiteBright: this;
61
+ readonly yellow: this;
62
+ readonly yellowBright: this;
63
+ }
64
+ type AnsiStyles = "bold" | "dim" | "hidden" | "inverse" | "italic" | "overline" | "reset" | "strike" | "strikethrough" | "underline" | "visible";
65
+ type AnsiColors = "bgBlack" | "bgBlackBright" | "bgBlue" | "bgBlueBright" | "bgCyan" | "bgCyanBright" | "bgGray" | "bgGreen" | "bgGreenBright" | "bgGrey" | "bgMagenta" | "bgMagentaBright" | "bgRed" | "bgRedBright" | "bgWhite" | "bgWhiteBright" | "bgYellow" | "bgYellowBright" | "black" | "blackBright" | "blue" | "blueBright" | "cyan" | "cyanBright" | "gray" | "green" | "greenBright" | "grey" | "magenta" | "magentaBright" | "red" | "redBright" | "white" | "whiteBright" | "yellow" | "yellowBright";
66
+
67
+ export type { AnsiColors as A, ColorizeType as C, AnsiStyles as a };
@@ -0,0 +1,81 @@
1
+ type ColorValueHex = `#${string}`;
2
+ interface ColorizeType {
3
+ (string: number | string): string;
4
+ (string: TemplateStringsArray, ...parameters: string[]): string;
5
+ ansi256: (code: number) => this;
6
+ bg: (code: number) => this;
7
+ bgAnsi256: (code: number) => this;
8
+ readonly bgBlack: this;
9
+ readonly bgBlackBright: this;
10
+ readonly bgBlue: this;
11
+ readonly bgBlueBright: this;
12
+ readonly bgCyan: this;
13
+ readonly bgCyanBright: this;
14
+ readonly bgGray: this;
15
+ readonly bgGreen: this;
16
+ readonly bgGreenBright: this;
17
+ readonly bgGrey: this;
18
+ bgHex: (color: ColorValueHex) => this;
19
+ readonly bgMagenta: this;
20
+ readonly bgMagentaBright: this;
21
+ readonly bgRed: this;
22
+ readonly bgRedBright: this;
23
+ bgRgb: (red: number, green: number, blue: number) => this;
24
+ readonly bgWhite: this;
25
+ readonly bgWhiteBright: this;
26
+ readonly bgYellow: this;
27
+ readonly bgYellowBright: this;
28
+ readonly black: this;
29
+ readonly blackBright: this;
30
+ readonly blue: this;
31
+ readonly blueBright: this;
32
+ readonly bold: this;
33
+ readonly close: string;
34
+ readonly cyan: this;
35
+ readonly cyanBright: this;
36
+ readonly dim: this;
37
+ fg: (code: number) => this;
38
+ readonly gray: this;
39
+ readonly green: this;
40
+ readonly greenBright: this;
41
+ readonly grey: this;
42
+ hex: (color: ColorValueHex) => this;
43
+ readonly hidden: this;
44
+ readonly inverse: this;
45
+ readonly italic: this;
46
+ readonly magenta: this;
47
+ readonly magentaBright: this;
48
+ readonly open: string;
49
+ readonly overline: this;
50
+ readonly red: this;
51
+ readonly redBright: this;
52
+ readonly reset: this;
53
+ rgb: (red: number, green: number, blue: number) => this;
54
+ readonly strike: this;
55
+ readonly strikethrough: this;
56
+ strip: (string: string) => string;
57
+ readonly underline: this;
58
+ readonly visible: this;
59
+ readonly white: this;
60
+ readonly whiteBright: this;
61
+ readonly yellow: this;
62
+ readonly yellowBright: this;
63
+ }
64
+ type CssColorName = "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "magenta" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "orangered" | "orchid" | "palegoldenrod" | "palegreen" | "paleturquoise" | "palevioletred" | "papayawhip" | "peachpuff" | "peru" | "pink" | "plum" | "powderblue" | "purple" | "rebeccapurple" | "red" | "rosybrown" | "royalblue" | "saddlebrown" | "salmon" | "sandybrown" | "seagreen" | "seashell" | "sienna" | "silver" | "skyblue" | "slateblue" | "slategray" | "slategrey" | "snow" | "springgreen" | "steelblue" | "tan" | "teal" | "thistle" | "tomato" | "turquoise" | "violet" | "wheat" | "white" | "whitesmoke" | "yellow" | "yellowgreen";
65
+ type StopInput = {
66
+ color?: ColorValueHex | CssColorName | RGB | [number, number, number];
67
+ colorLess?: boolean;
68
+ position: number;
69
+ };
70
+ type StopOutput = {
71
+ color: [number, number, number] | undefined;
72
+ colorLess?: boolean;
73
+ position: number;
74
+ };
75
+ type RGB = {
76
+ b: number;
77
+ g: number;
78
+ r: number;
79
+ };
80
+
81
+ export type { ColorizeType as C, RGB as R, StopOutput as S, ColorValueHex as a, CssColorName as b, StopInput as c };