{"version":3,"sources":["../../src/utils/color.ts"],"names":["Color","Chalk","color","template","makeTemplate","t","makeTaggedTemplate"],"mappings":";;;;;AACA,cAAA,EAAA;AAUO,IAAMA,KAAkDC,GAAAA;AAElDC,IAAAA,KAAAA,GAAkD,IAAIF,KAAAA;AAEtDG,IAAAA,QAAAA,GAAWC,aAAaF,KAAAA;AAsBxBG,IAAAA,CAAAA,GAAIC,mBAAmBJ,KAAAA","file":"chunk-INGMXGE4.mjs","sourcesContent":["\n// export const Color = typeof Chalk\nimport { Chalk, type ChalkInstance, Options } from 'chalk';\nimport { makeTaggedTemplate, makeTemplate } from 'chalk-template';\n\nexport type ColorInstance = ChalkInstance & {\n    [P in keyof ChalkInstance]: (str: string) => string\n}\nexport type ColorConstructor = new (options?: Options) => ColorInstance;\n\n\nexport const Color: new (options?: Options) => ColorInstance = Chalk as any;\n/** @see https://github.com/chalk/chalk */\nexport const color                                           = new Color();\n\nexport const template = makeTemplate(color);\n\n/**\n *\n * Blocks are delimited by an opening curly brace ({), a style, some content, and a closing curly brace (}).\n * Template styles are chained exactly like normal Chalk styles.\n *\n * @see https://github.com/chalk/chalk-template\n * @example\n * console.log(c`\n *    There are also {#FF0000 shorthand hex styles} for\n *    both the {#ABCDEF foreground}, {#:123456 background},\n *    or {#ABCDEF:123456 both}.\n *\n *    There are {bold 5280 feet} in a mile.\n *    In {bold ${miles} miles}, there are {green.bold ${calculateFeet(miles)} feet}.\n * `)\n *\n * // Template styles are chained exactly like normal Chalk styles. The following two statements are equivalent\n * console.log(chalk.bold.rgb(10, 100, 200)('Hello!'));\n * console.log(chalkTemplate`{bold.rgb(10,100,200) Hello!}`);\n */\nexport const t = makeTaggedTemplate(color);\n\n"]}