@modern-js/utils 2.69.7 → 3.0.0-alpha.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/dist/cjs/cli/alias.js +76 -70
- package/dist/cjs/cli/applyOptionsChain.js +44 -45
- package/dist/cjs/cli/babel.js +100 -119
- package/dist/cjs/cli/commands.js +61 -59
- package/dist/cjs/cli/common.js +45 -37
- package/dist/cjs/cli/config.js +36 -30
- package/dist/cjs/cli/constants.js +124 -161
- package/dist/cjs/cli/ensure.js +52 -45
- package/dist/cjs/cli/fs.js +41 -38
- package/dist/cjs/cli/get/config.js +43 -38
- package/dist/cjs/cli/get/data.js +108 -125
- package/dist/cjs/cli/get/index.js +109 -58
- package/dist/cjs/cli/index.js +202 -63
- package/dist/cjs/cli/is/config.js +75 -71
- package/dist/cjs/cli/is/env.js +49 -37
- package/dist/cjs/cli/is/index.js +76 -25
- package/dist/cjs/cli/is/project.js +139 -135
- package/dist/cjs/cli/is/type.js +65 -49
- package/dist/cjs/cli/logger.js +36 -27
- package/dist/cjs/cli/monorepo.js +100 -96
- package/dist/cjs/cli/package.js +85 -82
- package/dist/cjs/cli/path.js +101 -82
- package/dist/cjs/cli/port.js +71 -74
- package/dist/cjs/cli/prettyInstructions.js +106 -116
- package/dist/cjs/cli/require.js +116 -136
- package/dist/cjs/cli/route.js +67 -77
- package/dist/cjs/cli/runtimeExports.js +16 -70
- package/dist/cjs/cli/version.js +53 -42
- package/dist/cjs/cli/watch.js +79 -72
- package/dist/cjs/compiled.js +199 -128
- package/dist/cjs/import.js +58 -33
- package/dist/cjs/index.js +69 -23
- package/dist/cjs/universal/constants.js +77 -67
- package/dist/cjs/universal/index.js +33 -25
- package/dist/cjs/universal/path.js +33 -27
- package/dist/cjs/universal/pluginDagSort.js +69 -68
- package/dist/compiled/address/index.js +171 -1
- package/dist/compiled/browserslist/index.js +1329 -1
- package/dist/compiled/chalk/index.js +2368 -1
- package/dist/compiled/chokidar/index.js +4138 -16
- package/dist/compiled/chokidar/index.js.LICENSE.txt +41 -0
- package/dist/compiled/commander/index.js +1540 -1
- package/dist/compiled/debug/index.js +621 -1
- package/dist/compiled/dotenv/index.js +101 -1
- package/dist/compiled/dotenv-expand/index.js +54 -1
- package/dist/compiled/execa/index.js +1738 -1
- package/dist/compiled/fast-glob/index.js +4645 -17
- package/dist/compiled/fast-glob/index.js.LICENSE.txt +38 -0
- package/dist/compiled/filesize/index.js +193 -4
- package/dist/compiled/filesize/index.js.LICENSE.txt +7 -0
- package/dist/compiled/fs-extra/index.js +2222 -1
- package/dist/compiled/glob/index.js +2011 -1
- package/dist/compiled/globby/index.js +690 -1
- package/dist/compiled/gzip-size/index.js +157 -1
- package/dist/compiled/import-lazy/index.js +45 -1
- package/dist/compiled/inquirer/index.js +20162 -4
- package/dist/compiled/inquirer/index.js.LICENSE.txt +7 -0
- package/dist/compiled/js-yaml/index.js +2188 -1
- package/dist/compiled/json5/index.js +983 -1
- package/dist/compiled/lodash/index.js +0 -4
- package/dist/compiled/mime-types/index.js +108 -6
- package/dist/compiled/mime-types/index.js.LICENSE.txt +13 -0
- package/dist/compiled/minimist/index.js +202 -1
- package/dist/compiled/nanoid/index.js +83 -1
- package/dist/compiled/ora/index.js +3936 -3
- package/dist/compiled/ora/index.js.LICENSE.txt +1 -0
- package/dist/compiled/pkg-up/index.js +177 -1
- package/dist/compiled/semver/index.js +1779 -1
- package/dist/compiled/signale/index.js +1704 -1
- package/dist/compiled/slash/index.js +32 -1
- package/dist/compiled/strip-ansi/index.js +34 -1
- package/dist/compiled/tsconfig-paths/index.js +629 -1
- package/dist/compiled/upath/index.js +135 -1
- package/dist/compiled/url-join/index.js +61 -1
- package/dist/compiled/webpack-chain/index.js +1475 -1
- package/dist/esm/cli/alias.mjs +31 -0
- package/dist/esm/cli/applyOptionsChain.mjs +16 -0
- package/dist/esm/cli/babel.mjs +76 -0
- package/dist/esm/cli/commands.mjs +23 -0
- package/dist/esm/cli/common.mjs +11 -0
- package/dist/esm/cli/config.mjs +5 -0
- package/dist/esm/cli/constants.mjs +29 -0
- package/dist/esm/cli/ensure.mjs +9 -0
- package/dist/esm/cli/fs.mjs +9 -0
- package/dist/esm/cli/get/config.mjs +14 -0
- package/dist/esm/cli/get/data.mjs +57 -0
- package/dist/esm/cli/get/index.mjs +18 -0
- package/dist/{esm-node/cli/index.js → esm/cli/index.mjs} +0 -1
- package/dist/esm/cli/is/config.mjs +34 -0
- package/dist/esm/cli/is/env.mjs +6 -0
- package/dist/esm/cli/is/project.mjs +104 -0
- package/dist/esm/cli/is/type.mjs +26 -0
- package/dist/esm/cli/logger.mjs +2 -0
- package/dist/esm/cli/monorepo.mjs +50 -0
- package/dist/esm/cli/package.mjs +51 -0
- package/dist/esm/cli/path.mjs +35 -0
- package/dist/esm/cli/port.mjs +35 -0
- package/dist/esm/cli/prettyInstructions.mjs +68 -0
- package/dist/esm/cli/require.mjs +79 -0
- package/dist/esm/cli/route.mjs +36 -0
- package/dist/esm/cli/runtimeExports.mjs +0 -0
- package/dist/esm/cli/version.mjs +21 -0
- package/dist/esm/cli/watch.mjs +40 -0
- package/dist/esm/compiled.mjs +115 -0
- package/dist/esm/import.mjs +25 -0
- package/dist/esm/universal/constants.mjs +13 -0
- package/dist/{esm-node/universal/index.js → esm/universal/index.mjs} +1 -3
- package/dist/esm/universal/path.mjs +2 -0
- package/dist/esm/universal/pluginDagSort.mjs +41 -0
- package/dist/esm-node/cli/alias.mjs +31 -0
- package/dist/esm-node/cli/applyOptionsChain.mjs +16 -0
- package/dist/esm-node/cli/babel.mjs +76 -0
- package/dist/esm-node/cli/commands.mjs +23 -0
- package/dist/esm-node/cli/common.mjs +11 -0
- package/dist/esm-node/cli/config.mjs +5 -0
- package/dist/esm-node/cli/constants.mjs +29 -0
- package/dist/esm-node/cli/ensure.mjs +9 -0
- package/dist/esm-node/cli/fs.mjs +9 -0
- package/dist/esm-node/cli/get/config.mjs +14 -0
- package/dist/esm-node/cli/get/data.mjs +57 -0
- package/dist/esm-node/cli/get/index.mjs +18 -0
- package/dist/esm-node/cli/index.mjs +22 -0
- package/dist/esm-node/cli/is/config.mjs +34 -0
- package/dist/esm-node/cli/is/env.mjs +6 -0
- package/dist/esm-node/cli/is/index.mjs +4 -0
- package/dist/esm-node/cli/is/project.mjs +104 -0
- package/dist/esm-node/cli/is/type.mjs +26 -0
- package/dist/esm-node/cli/logger.mjs +2 -0
- package/dist/esm-node/cli/monorepo.mjs +50 -0
- package/dist/esm-node/cli/package.mjs +51 -0
- package/dist/esm-node/cli/path.mjs +35 -0
- package/dist/esm-node/cli/port.mjs +35 -0
- package/dist/esm-node/cli/prettyInstructions.mjs +68 -0
- package/dist/esm-node/cli/require.mjs +79 -0
- package/dist/esm-node/cli/route.mjs +36 -0
- package/dist/esm-node/cli/runtimeExports.mjs +0 -0
- package/dist/esm-node/cli/version.mjs +21 -0
- package/dist/esm-node/cli/watch.mjs +40 -0
- package/dist/esm-node/compiled.mjs +115 -0
- package/dist/esm-node/import.mjs +25 -0
- package/dist/esm-node/index.mjs +3 -0
- package/dist/esm-node/universal/constants.mjs +13 -0
- package/dist/esm-node/universal/index.mjs +2 -0
- package/dist/esm-node/universal/path.mjs +2 -0
- package/dist/esm-node/universal/pluginDagSort.mjs +41 -0
- package/dist/types/cli/constants.d.ts +2 -26
- package/dist/types/cli/get/data.d.ts +0 -1
- package/dist/types/cli/index.d.ts +0 -1
- package/dist/types/cli/is/config.d.ts +1 -1
- package/dist/types/cli/runtimeExports.d.ts +1 -4
- package/dist/types/cli/watch.d.ts +1 -1
- package/dist/types/compiled.d.ts +0 -5
- package/dist/types/universal/constants.d.ts +4 -7
- package/package.json +27 -27
- package/rslib.config.mts +140 -0
- package/dist/cjs/cli/action.js +0 -55
- package/dist/cjs/universal/formatWebpack.js +0 -127
- package/dist/esm/cli/action.js +0 -68
- package/dist/esm/cli/alias.js +0 -43
- package/dist/esm/cli/applyOptionsChain.js +0 -29
- package/dist/esm/cli/babel.js +0 -122
- package/dist/esm/cli/commands.js +0 -39
- package/dist/esm/cli/common.js +0 -20
- package/dist/esm/cli/config.js +0 -11
- package/dist/esm/cli/constants.js +0 -114
- package/dist/esm/cli/ensure.js +0 -16
- package/dist/esm/cli/fs.js +0 -65
- package/dist/esm/cli/get/config.js +0 -19
- package/dist/esm/cli/get/data.js +0 -143
- package/dist/esm/cli/get/index.js +0 -38
- package/dist/esm/cli/index.js +0 -23
- package/dist/esm/cli/is/config.js +0 -70
- package/dist/esm/cli/is/env.js +0 -22
- package/dist/esm/cli/is/index.js +0 -4
- package/dist/esm/cli/is/project.js +0 -146
- package/dist/esm/cli/is/type.js +0 -39
- package/dist/esm/cli/logger.js +0 -5
- package/dist/esm/cli/monorepo.js +0 -82
- package/dist/esm/cli/package.js +0 -203
- package/dist/esm/cli/path.js +0 -66
- package/dist/esm/cli/port.js +0 -97
- package/dist/esm/cli/prettyInstructions.js +0 -102
- package/dist/esm/cli/require.js +0 -235
- package/dist/esm/cli/route.js +0 -64
- package/dist/esm/cli/runtimeExports.js +0 -44
- package/dist/esm/cli/version.js +0 -26
- package/dist/esm/cli/watch.js +0 -112
- package/dist/esm/compiled.js +0 -66
- package/dist/esm/import.js +0 -11
- package/dist/esm/index.js +0 -3
- package/dist/esm/universal/constants.js +0 -32
- package/dist/esm/universal/formatWebpack.js +0 -95
- package/dist/esm/universal/index.js +0 -4
- package/dist/esm/universal/path.js +0 -6
- package/dist/esm/universal/pluginDagSort.js +0 -73
- package/dist/esm-node/cli/action.js +0 -30
- package/dist/esm-node/cli/alias.js +0 -40
- package/dist/esm-node/cli/applyOptionsChain.js +0 -27
- package/dist/esm-node/cli/babel.js +0 -107
- package/dist/esm-node/cli/commands.js +0 -39
- package/dist/esm-node/cli/common.js +0 -15
- package/dist/esm-node/cli/config.js +0 -9
- package/dist/esm-node/cli/constants.js +0 -114
- package/dist/esm-node/cli/ensure.js +0 -14
- package/dist/esm-node/cli/fs.js +0 -18
- package/dist/esm-node/cli/get/config.js +0 -19
- package/dist/esm-node/cli/get/data.js +0 -96
- package/dist/esm-node/cli/get/index.js +0 -22
- package/dist/esm-node/cli/is/config.js +0 -50
- package/dist/esm-node/cli/is/env.js +0 -12
- package/dist/esm-node/cli/is/project.js +0 -105
- package/dist/esm-node/cli/is/type.js +0 -36
- package/dist/esm-node/cli/logger.js +0 -5
- package/dist/esm-node/cli/monorepo.js +0 -67
- package/dist/esm-node/cli/package.js +0 -66
- package/dist/esm-node/cli/path.js +0 -48
- package/dist/esm-node/cli/port.js +0 -48
- package/dist/esm-node/cli/prettyInstructions.js +0 -90
- package/dist/esm-node/cli/require.js +0 -111
- package/dist/esm-node/cli/route.js +0 -60
- package/dist/esm-node/cli/runtimeExports.js +0 -38
- package/dist/esm-node/cli/version.js +0 -26
- package/dist/esm-node/cli/watch.js +0 -45
- package/dist/esm-node/compiled.js +0 -66
- package/dist/esm-node/import.js +0 -11
- package/dist/esm-node/universal/constants.js +0 -32
- package/dist/esm-node/universal/formatWebpack.js +0 -102
- package/dist/esm-node/universal/path.js +0 -6
- package/dist/esm-node/universal/pluginDagSort.js +0 -50
- package/dist/types/cli/action.d.ts +0 -2
- package/dist/types/universal/formatWebpack.d.ts +0 -26
- /package/dist/{esm-node/cli/is/index.js → esm/cli/is/index.mjs} +0 -0
- /package/dist/{esm-node/index.js → esm/index.mjs} +0 -0
|
@@ -1 +1,2368 @@
|
|
|
1
|
-
(()=>{var e={44:(e,t,n)=>{"use strict";e=n.nmd(e);const wrapAnsi16=(e,t)=>(...n)=>{const r=e(...n);return`[${r+t}m`};const wrapAnsi256=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,n)=>[e,t,n];const setLazyProperty=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true});return r},enumerable:true,configurable:true})};let r;const makeDynamicStyles=(e,t,s,o)=>{if(r===undefined){r=n(767)}const l=o?10:0;const c={};for(const[n,o]of Object.entries(r)){const r=n==="ansi16"?"ansi":n;if(n===t){c[r]=e(s,l)}else if(typeof o==="object"){c[r]=e(o[t],l)}}return c};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,s]of Object.entries(r)){t[n]={open:`[${s[0]}m`,close:`[${s[1]}m`};r[n]=t[n];e.set(s[0],s[1])}Object.defineProperty(t,n,{value:r,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},584:(e,t,n)=>{"use strict";const r=n(44);const{stdout:s,stderr:o}=n(242);const{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:c}=n(905);const{isArray:i}=Array;const a=["ansi","ansi","ansi256","ansi16m"];const u=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const n=s?s.level:0;e.level=t.level===undefined?n:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(r)){u[e]={get(){const n=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:n});return n}}}u.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const h=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of h){u[e]={get(){const{level:t}=this;return function(...n){const s=createStyler(r.color[a[t]][e](...n),r.color.close,this._styler);return createBuilder(this,s,this._isEmpty)}}}}for(const e of h){const t="bg"+e[0].toUpperCase()+e.slice(1);u[t]={get(){const{level:t}=this;return function(...n){const s=createStyler(r.bgColor[a[t]][e](...n),r.bgColor.close,this._styler);return createBuilder(this,s,this._isEmpty)}}}}const f=Object.defineProperties((()=>{}),{...u,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,n)=>{let r;let s;if(n===undefined){r=e;s=t}else{r=n.openAll+e;s=t+n.closeAll}return{open:e,close:t,openAll:r,closeAll:s,parent:n}};const createBuilder=(e,t,n)=>{const builder=(...e)=>{if(i(e[0])&&i(e[0].raw)){return applyStyle(builder,chalkTag(builder,...e))}return applyStyle(builder,e.length===1?""+e[0]:e.join(" "))};Object.setPrototypeOf(builder,f);builder._generator=e;builder._styler=t;builder._isEmpty=n;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let n=e._styler;if(n===undefined){return t}const{openAll:r,closeAll:s}=n;if(t.indexOf("")!==-1){while(n!==undefined){t=l(t,n.close,n.open);n=n.parent}}const o=t.indexOf("\n");if(o!==-1){t=c(t,s,r,o)}return r+t+s};let g;const chalkTag=(e,...t)=>{const[r]=t;if(!i(r)||!i(r.raw)){return t.join(" ")}const s=t.slice(1);const o=[r.raw[0]];for(let e=1;e<r.length;e++){o.push(String(s[e-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[e]))}if(g===undefined){g=n(654)}return g(e,o.join(""))};Object.defineProperties(Chalk.prototype,u);const b=Chalk();b.supportsColor=s;b.stderr=Chalk({level:o?o.level:0});b.stderr.supportsColor=o;e.exports=b},654:e=>{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const r=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const s=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const n=e[1]==="{";if(t&&!n&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&n){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return o.get(e)||e}function parseArguments(e,t){const n=[];const o=t.trim().split(/\s*,\s*/g);let l;for(const t of o){const o=Number(t);if(!Number.isNaN(o)){n.push(o)}else if(l=t.match(r)){n.push(l[2].replace(s,((e,t,n)=>t?unescape(t):n)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return n}function parseStyle(e){n.lastIndex=0;const t=[];let r;while((r=n.exec(e))!==null){const e=r[1];if(r[2]){const n=parseArguments(e,r[2]);t.push([e].concat(n))}else{t.push([e])}}return t}function buildStyle(e,t){const n={};for(const e of t){for(const t of e.styles){n[t[0]]=e.inverse?null:t.slice(1)}}let r=e;for(const[e,t]of Object.entries(n)){if(!Array.isArray(t)){continue}if(!(e in r)){throw new Error(`Unknown Chalk style: ${e}`)}r=t.length>0?r[e](...t):r[e]}return r}e.exports=(e,n)=>{const r=[];const s=[];let o=[];n.replace(t,((t,n,l,c,i,a)=>{if(n){o.push(unescape(n))}else if(c){const t=o.join("");o=[];s.push(r.length===0?t:buildStyle(e,r)(t));r.push({inverse:l,styles:parseStyle(c)})}else if(i){if(r.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,r)(o.join("")));o=[];r.pop()}else{o.push(a)}}));s.push(o.join(""));if(r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")}},905:e=>{"use strict";const stringReplaceAll=(e,t,n)=>{let r=e.indexOf(t);if(r===-1){return e}const s=t.length;let o=0;let l="";do{l+=e.substr(o,r-o)+t+n;o=r+s;r=e.indexOf(t,o)}while(r!==-1);l+=e.substr(o);return l};const stringEncaseCRLFWithFirstIndex=(e,t,n,r)=>{let s=0;let o="";do{const l=e[r-1]==="\r";o+=e.substr(s,(l?r-1:r)-s)+t+(l?"\r\n":"\n")+n;s=r+1;r=e.indexOf("\n",s)}while(r!==-1);o+=e.substr(s);return o};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},226:(e,t,n)=>{const r=n(866);const s={};for(const e of Object.keys(r)){s[r[e]]=e}const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e])){throw new Error("missing channels property: "+e)}if(!("labels"in o[e])){throw new Error("missing channel labels property: "+e)}if(o[e].labels.length!==o[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:n}=o[e];delete o[e].channels;delete o[e].labels;Object.defineProperty(o[e],"channels",{value:t});Object.defineProperty(o[e],"labels",{value:n})}o.rgb.hsl=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const s=Math.min(t,n,r);const o=Math.max(t,n,r);const l=o-s;let c;let i;if(o===s){c=0}else if(t===o){c=(n-r)/l}else if(n===o){c=2+(r-t)/l}else if(r===o){c=4+(t-n)/l}c=Math.min(c*60,360);if(c<0){c+=360}const a=(s+o)/2;if(o===s){i=0}else if(a<=.5){i=l/(o+s)}else{i=l/(2-o-s)}return[c,i*100,a*100]};o.rgb.hsv=function(e){let t;let n;let r;let s;let o;const l=e[0]/255;const c=e[1]/255;const i=e[2]/255;const a=Math.max(l,c,i);const u=a-Math.min(l,c,i);const diffc=function(e){return(a-e)/6/u+1/2};if(u===0){s=0;o=0}else{o=u/a;t=diffc(l);n=diffc(c);r=diffc(i);if(l===a){s=r-n}else if(c===a){s=1/3+t-r}else if(i===a){s=2/3+n-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,o*100,a*100]};o.rgb.hwb=function(e){const t=e[0];const n=e[1];let r=e[2];const s=o.rgb.hsl(e)[0];const l=1/255*Math.min(t,Math.min(n,r));r=1-1/255*Math.max(t,Math.max(n,r));return[s,l*100,r*100]};o.rgb.cmyk=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const s=Math.min(1-t,1-n,1-r);const o=(1-t-s)/(1-s)||0;const l=(1-n-s)/(1-s)||0;const c=(1-r-s)/(1-s)||0;return[o*100,l*100,c*100,s*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}o.rgb.keyword=function(e){const t=s[e];if(t){return t}let n=Infinity;let o;for(const t of Object.keys(r)){const s=r[t];const l=comparativeDistance(e,s);if(l<n){n=l;o=t}}return o};o.keyword.rgb=function(e){return r[e]};o.rgb.xyz=function(e){let t=e[0]/255;let n=e[1]/255;let r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const s=t*.4124+n*.3576+r*.1805;const o=t*.2126+n*.7152+r*.0722;const l=t*.0193+n*.1192+r*.9505;return[s*100,o*100,l*100]};o.rgb.lab=function(e){const t=o.rgb.xyz(e);let n=t[0];let r=t[1];let s=t[2];n/=95.047;r/=100;s/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;const l=116*r-16;const c=500*(n-r);const i=200*(r-s);return[l,c,i]};o.hsl.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;let s;let o;let l;if(n===0){l=r*255;return[l,l,l]}if(r<.5){s=r*(1+n)}else{s=r+n-r*n}const c=2*r-s;const i=[0,0,0];for(let e=0;e<3;e++){o=t+1/3*-(e-1);if(o<0){o++}if(o>1){o--}if(6*o<1){l=c+(s-c)*6*o}else if(2*o<1){l=s}else if(3*o<2){l=c+(s-c)*(2/3-o)*6}else{l=c}i[e]=l*255}return i};o.hsl.hsv=function(e){const t=e[0];let n=e[1]/100;let r=e[2]/100;let s=n;const o=Math.max(r,.01);r*=2;n*=r<=1?r:2-r;s*=o<=1?o:2-o;const l=(r+n)/2;const c=r===0?2*s/(o+s):2*n/(r+n);return[t,c*100,l*100]};o.hsv.rgb=function(e){const t=e[0]/60;const n=e[1]/100;let r=e[2]/100;const s=Math.floor(t)%6;const o=t-Math.floor(t);const l=255*r*(1-n);const c=255*r*(1-n*o);const i=255*r*(1-n*(1-o));r*=255;switch(s){case 0:return[r,i,l];case 1:return[c,r,l];case 2:return[l,r,i];case 3:return[l,c,r];case 4:return[i,l,r];case 5:return[r,l,c]}};o.hsv.hsl=function(e){const t=e[0];const n=e[1]/100;const r=e[2]/100;const s=Math.max(r,.01);let o;let l;l=(2-n)*r;const c=(2-n)*s;o=n*s;o/=c<=1?c:2-c;o=o||0;l/=2;return[t,o*100,l*100]};o.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100;let r=e[2]/100;const s=n+r;let o;if(s>1){n/=s;r/=s}const l=Math.floor(6*t);const c=1-r;o=6*t-l;if((l&1)!==0){o=1-o}const i=n+o*(c-n);let a;let u;let h;switch(l){default:case 6:case 0:a=c;u=i;h=n;break;case 1:a=i;u=c;h=n;break;case 2:a=n;u=c;h=i;break;case 3:a=n;u=i;h=c;break;case 4:a=i;u=n;h=c;break;case 5:a=c;u=n;h=i;break}return[a*255,u*255,h*255]};o.cmyk.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;const s=e[3]/100;const o=1-Math.min(1,t*(1-s)+s);const l=1-Math.min(1,n*(1-s)+s);const c=1-Math.min(1,r*(1-s)+s);return[o*255,l*255,c*255]};o.xyz.rgb=function(e){const t=e[0]/100;const n=e[1]/100;const r=e[2]/100;let s;let o;let l;s=t*3.2406+n*-1.5372+r*-.4986;o=t*-.9689+n*1.8758+r*.0415;l=t*.0557+n*-.204+r*1.057;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92;s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);l=Math.min(Math.max(0,l),1);return[s*255,o*255,l*255]};o.xyz.lab=function(e){let t=e[0];let n=e[1];let r=e[2];t/=95.047;n/=100;r/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const s=116*n-16;const o=500*(t-n);const l=200*(n-r);return[s,o,l]};o.lab.xyz=function(e){const t=e[0];const n=e[1];const r=e[2];let s;let o;let l;o=(t+16)/116;s=n/500+o;l=o-r/200;const c=o**3;const i=s**3;const a=l**3;o=c>.008856?c:(o-16/116)/7.787;s=i>.008856?i:(s-16/116)/7.787;l=a>.008856?a:(l-16/116)/7.787;s*=95.047;o*=100;l*=108.883;return[s,o,l]};o.lab.lch=function(e){const t=e[0];const n=e[1];const r=e[2];let s;const o=Math.atan2(r,n);s=o*360/2/Math.PI;if(s<0){s+=360}const l=Math.sqrt(n*n+r*r);return[t,l,s]};o.lch.lab=function(e){const t=e[0];const n=e[1];const r=e[2];const s=r/360*2*Math.PI;const o=n*Math.cos(s);const l=n*Math.sin(s);return[t,o,l]};o.rgb.ansi16=function(e,t=null){const[n,r,s]=e;let l=t===null?o.rgb.hsv(e)[2]:t;l=Math.round(l/50);if(l===0){return 30}let c=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(n/255));if(l===2){c+=60}return c};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){const t=e[0];const n=e[1];const r=e[2];if(t===n&&n===r){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const s=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return s};o.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const n=(~~(e>50)+1)*.5;const r=(t&1)*n*255;const s=(t>>1&1)*n*255;const o=(t>>2&1)*n*255;return[r,s,o]};o.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const n=Math.floor(e/36)/5*255;const r=Math.floor((t=e%36)/6)/5*255;const s=t%6/5*255;return[n,r,s]};o.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let n=t[0];if(t[0].length===3){n=n.split("").map((e=>e+e)).join("")}const r=parseInt(n,16);const s=r>>16&255;const o=r>>8&255;const l=r&255;return[s,o,l]};o.rgb.hcg=function(e){const t=e[0]/255;const n=e[1]/255;const r=e[2]/255;const s=Math.max(Math.max(t,n),r);const o=Math.min(Math.min(t,n),r);const l=s-o;let c;let i;if(l<1){c=o/(1-l)}else{c=0}if(l<=0){i=0}else if(s===t){i=(n-r)/l%6}else if(s===n){i=2+(r-t)/l}else{i=4+(t-n)/l}i/=6;i%=1;return[i*360,l*100,c*100]};o.hsl.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=n<.5?2*t*n:2*t*(1-n);let s=0;if(r<1){s=(n-.5*r)/(1-r)}return[e[0],r*100,s*100]};o.hsv.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=t*n;let s=0;if(r<1){s=(n-r)/(1-r)}return[e[0],r*100,s*100]};o.hcg.rgb=function(e){const t=e[0]/360;const n=e[1]/100;const r=e[2]/100;if(n===0){return[r*255,r*255,r*255]}const s=[0,0,0];const o=t%1*6;const l=o%1;const c=1-l;let i=0;switch(Math.floor(o)){case 0:s[0]=1;s[1]=l;s[2]=0;break;case 1:s[0]=c;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=l;break;case 3:s[0]=0;s[1]=c;s[2]=1;break;case 4:s[0]=l;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=c}i=(1-n)*r;return[(n*s[0]+i)*255,(n*s[1]+i)*255,(n*s[2]+i)*255]};o.hcg.hsv=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);let s=0;if(r>0){s=t/r}return[e[0],s*100,r*100]};o.hcg.hsl=function(e){const t=e[1]/100;const n=e[2]/100;const r=n*(1-t)+.5*t;let s=0;if(r>0&&r<.5){s=t/(2*r)}else if(r>=.5&&r<1){s=t/(2*(1-r))}return[e[0],s*100,r*100]};o.hcg.hwb=function(e){const t=e[1]/100;const n=e[2]/100;const r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};o.hwb.hcg=function(e){const t=e[1]/100;const n=e[2]/100;const r=1-n;const s=r-t;let o=0;if(s<1){o=(r-s)/(1-s)}return[e[0],s*100,o*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=function(e){return[0,0,e[0]]};o.gray.hsv=o.gray.hsl;o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const n=(t<<16)+(t<<8)+t;const r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},767:(e,t,n)=>{const r=n(226);const s=n(392);const o={};const l=Object.keys(r);function wrapRaw(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const n=t[0];if(n===undefined||n===null){return n}if(n.length>1){t=n}const r=e(t);if(typeof r==="object"){for(let e=r.length,t=0;t<e;t++){r[t]=Math.round(r[t])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}l.forEach((e=>{o[e]={};Object.defineProperty(o[e],"channels",{value:r[e].channels});Object.defineProperty(o[e],"labels",{value:r[e].labels});const t=s(e);const n=Object.keys(t);n.forEach((n=>{const r=t[n];o[e][n]=wrapRounded(r);o[e][n].raw=wrapRaw(r)}))}));e.exports=o},392:(e,t,n)=>{const r=n(226);function buildGraph(){const e={};const t=Object.keys(r);for(let n=t.length,r=0;r<n;r++){e[t[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const n=[e];t[e].distance=0;while(n.length){const e=n.pop();const s=Object.keys(r[e]);for(let r=s.length,o=0;o<r;o++){const r=s[o];const l=t[r];if(l.distance===-1){l.distance=t[e].distance+1;l.parent=e;n.unshift(r)}}}return t}function link(e,t){return function(n){return t(e(n))}}function wrapConversion(e,t){const n=[t[e].parent,e];let s=r[t[e].parent][e];let o=t[e].parent;while(t[o].parent){n.unshift(t[o].parent);s=link(r[t[o].parent][o],s);o=t[o].parent}s.conversion=n;return s}e.exports=function(e){const t=deriveBFS(e);const n={};const r=Object.keys(t);for(let e=r.length,s=0;s<e;s++){const e=r[s];const o=t[e];if(o.parent===null){continue}n[e]=wrapConversion(e,t)}return n}},866:e=>{"use strict";e.exports={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]}},975:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const r=t.indexOf(n+e);const s=t.indexOf("--");return r!==-1&&(s===-1||r<s)}},242:(e,t,n)=>{"use strict";const r=n(37);const s=n(224);const o=n(975);const{env:l}=process;let c;if(o("no-color")||o("no-colors")||o("color=false")||o("color=never")){c=0}else if(o("color")||o("colors")||o("color=true")||o("color=always")){c=1}if("FORCE_COLOR"in l){if(l.FORCE_COLOR==="true"){c=1}else if(l.FORCE_COLOR==="false"){c=0}else{c=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(c===0){return 0}if(o("color=16m")||o("color=full")||o("color=truecolor")){return 3}if(o("color=256")){return 2}if(e&&!t&&c===undefined){return 0}const n=c||0;if(l.TERM==="dumb"){return n}if(process.platform==="win32"){const e=r.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in l){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in l))||l.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in l){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0}if(l.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in l){const e=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(l.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)){return 1}if("COLORTERM"in l){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},37:e=>{"use strict";e.exports=require("os")},224:e=>{"use strict";e.exports=require("tty")}};var t={};function __nccwpck_require__(n){var r=t[n];if(r!==undefined){return r.exports}var s=t[n]={id:n,loaded:false,exports:{}};var o=true;try{e[n](s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete t[n]}s.loaded=true;return s.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(584);module.exports=n})();
|
|
1
|
+
(()=>{
|
|
2
|
+
var e = {
|
|
3
|
+
44: (e, t, n)=>{
|
|
4
|
+
"use strict";
|
|
5
|
+
e = n.nmd(e);
|
|
6
|
+
const wrapAnsi16 = (e, t)=>(...n)=>{
|
|
7
|
+
const r = e(...n);
|
|
8
|
+
return `[${r + t}m`;
|
|
9
|
+
};
|
|
10
|
+
const wrapAnsi256 = (e, t)=>(...n)=>{
|
|
11
|
+
const r = e(...n);
|
|
12
|
+
return `[${38 + t};5;${r}m`;
|
|
13
|
+
};
|
|
14
|
+
const wrapAnsi16m = (e, t)=>(...n)=>{
|
|
15
|
+
const r = e(...n);
|
|
16
|
+
return `[${38 + t};2;${r[0]};${r[1]};${r[2]}m`;
|
|
17
|
+
};
|
|
18
|
+
const ansi2ansi = (e)=>e;
|
|
19
|
+
const rgb2rgb = (e, t, n)=>[
|
|
20
|
+
e,
|
|
21
|
+
t,
|
|
22
|
+
n
|
|
23
|
+
];
|
|
24
|
+
const setLazyProperty = (e, t, n)=>{
|
|
25
|
+
Object.defineProperty(e, t, {
|
|
26
|
+
get: ()=>{
|
|
27
|
+
const r = n();
|
|
28
|
+
Object.defineProperty(e, t, {
|
|
29
|
+
value: r,
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true
|
|
32
|
+
});
|
|
33
|
+
return r;
|
|
34
|
+
},
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
let r;
|
|
40
|
+
const makeDynamicStyles = (e, t, s, o)=>{
|
|
41
|
+
if (void 0 === r) r = n(767);
|
|
42
|
+
const l = o ? 10 : 0;
|
|
43
|
+
const c = {};
|
|
44
|
+
for (const [n, o] of Object.entries(r)){
|
|
45
|
+
const r = "ansi16" === n ? "ansi" : n;
|
|
46
|
+
if (n === t) c[r] = e(s, l);
|
|
47
|
+
else if ("object" == typeof o) c[r] = e(o[t], l);
|
|
48
|
+
}
|
|
49
|
+
return c;
|
|
50
|
+
};
|
|
51
|
+
function assembleStyles() {
|
|
52
|
+
const e = new Map;
|
|
53
|
+
const t = {
|
|
54
|
+
modifier: {
|
|
55
|
+
reset: [
|
|
56
|
+
0,
|
|
57
|
+
0
|
|
58
|
+
],
|
|
59
|
+
bold: [
|
|
60
|
+
1,
|
|
61
|
+
22
|
|
62
|
+
],
|
|
63
|
+
dim: [
|
|
64
|
+
2,
|
|
65
|
+
22
|
|
66
|
+
],
|
|
67
|
+
italic: [
|
|
68
|
+
3,
|
|
69
|
+
23
|
|
70
|
+
],
|
|
71
|
+
underline: [
|
|
72
|
+
4,
|
|
73
|
+
24
|
|
74
|
+
],
|
|
75
|
+
inverse: [
|
|
76
|
+
7,
|
|
77
|
+
27
|
|
78
|
+
],
|
|
79
|
+
hidden: [
|
|
80
|
+
8,
|
|
81
|
+
28
|
|
82
|
+
],
|
|
83
|
+
strikethrough: [
|
|
84
|
+
9,
|
|
85
|
+
29
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
color: {
|
|
89
|
+
black: [
|
|
90
|
+
30,
|
|
91
|
+
39
|
|
92
|
+
],
|
|
93
|
+
red: [
|
|
94
|
+
31,
|
|
95
|
+
39
|
|
96
|
+
],
|
|
97
|
+
green: [
|
|
98
|
+
32,
|
|
99
|
+
39
|
|
100
|
+
],
|
|
101
|
+
yellow: [
|
|
102
|
+
33,
|
|
103
|
+
39
|
|
104
|
+
],
|
|
105
|
+
blue: [
|
|
106
|
+
34,
|
|
107
|
+
39
|
|
108
|
+
],
|
|
109
|
+
magenta: [
|
|
110
|
+
35,
|
|
111
|
+
39
|
|
112
|
+
],
|
|
113
|
+
cyan: [
|
|
114
|
+
36,
|
|
115
|
+
39
|
|
116
|
+
],
|
|
117
|
+
white: [
|
|
118
|
+
37,
|
|
119
|
+
39
|
|
120
|
+
],
|
|
121
|
+
blackBright: [
|
|
122
|
+
90,
|
|
123
|
+
39
|
|
124
|
+
],
|
|
125
|
+
redBright: [
|
|
126
|
+
91,
|
|
127
|
+
39
|
|
128
|
+
],
|
|
129
|
+
greenBright: [
|
|
130
|
+
92,
|
|
131
|
+
39
|
|
132
|
+
],
|
|
133
|
+
yellowBright: [
|
|
134
|
+
93,
|
|
135
|
+
39
|
|
136
|
+
],
|
|
137
|
+
blueBright: [
|
|
138
|
+
94,
|
|
139
|
+
39
|
|
140
|
+
],
|
|
141
|
+
magentaBright: [
|
|
142
|
+
95,
|
|
143
|
+
39
|
|
144
|
+
],
|
|
145
|
+
cyanBright: [
|
|
146
|
+
96,
|
|
147
|
+
39
|
|
148
|
+
],
|
|
149
|
+
whiteBright: [
|
|
150
|
+
97,
|
|
151
|
+
39
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
bgColor: {
|
|
155
|
+
bgBlack: [
|
|
156
|
+
40,
|
|
157
|
+
49
|
|
158
|
+
],
|
|
159
|
+
bgRed: [
|
|
160
|
+
41,
|
|
161
|
+
49
|
|
162
|
+
],
|
|
163
|
+
bgGreen: [
|
|
164
|
+
42,
|
|
165
|
+
49
|
|
166
|
+
],
|
|
167
|
+
bgYellow: [
|
|
168
|
+
43,
|
|
169
|
+
49
|
|
170
|
+
],
|
|
171
|
+
bgBlue: [
|
|
172
|
+
44,
|
|
173
|
+
49
|
|
174
|
+
],
|
|
175
|
+
bgMagenta: [
|
|
176
|
+
45,
|
|
177
|
+
49
|
|
178
|
+
],
|
|
179
|
+
bgCyan: [
|
|
180
|
+
46,
|
|
181
|
+
49
|
|
182
|
+
],
|
|
183
|
+
bgWhite: [
|
|
184
|
+
47,
|
|
185
|
+
49
|
|
186
|
+
],
|
|
187
|
+
bgBlackBright: [
|
|
188
|
+
100,
|
|
189
|
+
49
|
|
190
|
+
],
|
|
191
|
+
bgRedBright: [
|
|
192
|
+
101,
|
|
193
|
+
49
|
|
194
|
+
],
|
|
195
|
+
bgGreenBright: [
|
|
196
|
+
102,
|
|
197
|
+
49
|
|
198
|
+
],
|
|
199
|
+
bgYellowBright: [
|
|
200
|
+
103,
|
|
201
|
+
49
|
|
202
|
+
],
|
|
203
|
+
bgBlueBright: [
|
|
204
|
+
104,
|
|
205
|
+
49
|
|
206
|
+
],
|
|
207
|
+
bgMagentaBright: [
|
|
208
|
+
105,
|
|
209
|
+
49
|
|
210
|
+
],
|
|
211
|
+
bgCyanBright: [
|
|
212
|
+
106,
|
|
213
|
+
49
|
|
214
|
+
],
|
|
215
|
+
bgWhiteBright: [
|
|
216
|
+
107,
|
|
217
|
+
49
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
t.color.gray = t.color.blackBright;
|
|
222
|
+
t.bgColor.bgGray = t.bgColor.bgBlackBright;
|
|
223
|
+
t.color.grey = t.color.blackBright;
|
|
224
|
+
t.bgColor.bgGrey = t.bgColor.bgBlackBright;
|
|
225
|
+
for (const [n, r] of Object.entries(t)){
|
|
226
|
+
for (const [n, s] of Object.entries(r)){
|
|
227
|
+
t[n] = {
|
|
228
|
+
open: `[${s[0]}m`,
|
|
229
|
+
close: `[${s[1]}m`
|
|
230
|
+
};
|
|
231
|
+
r[n] = t[n];
|
|
232
|
+
e.set(s[0], s[1]);
|
|
233
|
+
}
|
|
234
|
+
Object.defineProperty(t, n, {
|
|
235
|
+
value: r,
|
|
236
|
+
enumerable: false
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
Object.defineProperty(t, "codes", {
|
|
240
|
+
value: e,
|
|
241
|
+
enumerable: false
|
|
242
|
+
});
|
|
243
|
+
t.color.close = "[39m";
|
|
244
|
+
t.bgColor.close = "[49m";
|
|
245
|
+
setLazyProperty(t.color, "ansi", ()=>makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
|
|
246
|
+
setLazyProperty(t.color, "ansi256", ()=>makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
|
|
247
|
+
setLazyProperty(t.color, "ansi16m", ()=>makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
|
|
248
|
+
setLazyProperty(t.bgColor, "ansi", ()=>makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
|
|
249
|
+
setLazyProperty(t.bgColor, "ansi256", ()=>makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
|
|
250
|
+
setLazyProperty(t.bgColor, "ansi16m", ()=>makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
|
|
251
|
+
return t;
|
|
252
|
+
}
|
|
253
|
+
Object.defineProperty(e, "exports", {
|
|
254
|
+
enumerable: true,
|
|
255
|
+
get: assembleStyles
|
|
256
|
+
});
|
|
257
|
+
},
|
|
258
|
+
584: (e, t, n)=>{
|
|
259
|
+
"use strict";
|
|
260
|
+
const r = n(44);
|
|
261
|
+
const { stdout: s, stderr: o } = n(242);
|
|
262
|
+
const { stringReplaceAll: l, stringEncaseCRLFWithFirstIndex: c } = n(905);
|
|
263
|
+
const { isArray: i } = Array;
|
|
264
|
+
const a = [
|
|
265
|
+
"ansi",
|
|
266
|
+
"ansi",
|
|
267
|
+
"ansi256",
|
|
268
|
+
"ansi16m"
|
|
269
|
+
];
|
|
270
|
+
const u = Object.create(null);
|
|
271
|
+
const applyOptions = (e, t = {})=>{
|
|
272
|
+
if (t.level && !(Number.isInteger(t.level) && t.level >= 0 && t.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
|
|
273
|
+
const n = s ? s.level : 0;
|
|
274
|
+
e.level = void 0 === t.level ? n : t.level;
|
|
275
|
+
};
|
|
276
|
+
class ChalkClass {
|
|
277
|
+
constructor(e){
|
|
278
|
+
return chalkFactory(e);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
const chalkFactory = (e)=>{
|
|
282
|
+
const t = {};
|
|
283
|
+
applyOptions(t, e);
|
|
284
|
+
t.template = (...e)=>chalkTag(t.template, ...e);
|
|
285
|
+
Object.setPrototypeOf(t, Chalk.prototype);
|
|
286
|
+
Object.setPrototypeOf(t.template, t);
|
|
287
|
+
t.template.constructor = ()=>{
|
|
288
|
+
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
289
|
+
};
|
|
290
|
+
t.template.Instance = ChalkClass;
|
|
291
|
+
return t.template;
|
|
292
|
+
};
|
|
293
|
+
function Chalk(e) {
|
|
294
|
+
return chalkFactory(e);
|
|
295
|
+
}
|
|
296
|
+
for (const [e, t] of Object.entries(r))u[e] = {
|
|
297
|
+
get () {
|
|
298
|
+
const n = createBuilder(this, createStyler(t.open, t.close, this._styler), this._isEmpty);
|
|
299
|
+
Object.defineProperty(this, e, {
|
|
300
|
+
value: n
|
|
301
|
+
});
|
|
302
|
+
return n;
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
u.visible = {
|
|
306
|
+
get () {
|
|
307
|
+
const e = createBuilder(this, this._styler, true);
|
|
308
|
+
Object.defineProperty(this, "visible", {
|
|
309
|
+
value: e
|
|
310
|
+
});
|
|
311
|
+
return e;
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
const h = [
|
|
315
|
+
"rgb",
|
|
316
|
+
"hex",
|
|
317
|
+
"keyword",
|
|
318
|
+
"hsl",
|
|
319
|
+
"hsv",
|
|
320
|
+
"hwb",
|
|
321
|
+
"ansi",
|
|
322
|
+
"ansi256"
|
|
323
|
+
];
|
|
324
|
+
for (const e of h)u[e] = {
|
|
325
|
+
get () {
|
|
326
|
+
const { level: t } = this;
|
|
327
|
+
return function(...n) {
|
|
328
|
+
const s = createStyler(r.color[a[t]][e](...n), r.color.close, this._styler);
|
|
329
|
+
return createBuilder(this, s, this._isEmpty);
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
for (const e of h){
|
|
334
|
+
const t = "bg" + e[0].toUpperCase() + e.slice(1);
|
|
335
|
+
u[t] = {
|
|
336
|
+
get () {
|
|
337
|
+
const { level: t } = this;
|
|
338
|
+
return function(...n) {
|
|
339
|
+
const s = createStyler(r.bgColor[a[t]][e](...n), r.bgColor.close, this._styler);
|
|
340
|
+
return createBuilder(this, s, this._isEmpty);
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
const f = Object.defineProperties(()=>{}, {
|
|
346
|
+
...u,
|
|
347
|
+
level: {
|
|
348
|
+
enumerable: true,
|
|
349
|
+
get () {
|
|
350
|
+
return this._generator.level;
|
|
351
|
+
},
|
|
352
|
+
set (e) {
|
|
353
|
+
this._generator.level = e;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
const createStyler = (e, t, n)=>{
|
|
358
|
+
let r;
|
|
359
|
+
let s;
|
|
360
|
+
if (void 0 === n) {
|
|
361
|
+
r = e;
|
|
362
|
+
s = t;
|
|
363
|
+
} else {
|
|
364
|
+
r = n.openAll + e;
|
|
365
|
+
s = t + n.closeAll;
|
|
366
|
+
}
|
|
367
|
+
return {
|
|
368
|
+
open: e,
|
|
369
|
+
close: t,
|
|
370
|
+
openAll: r,
|
|
371
|
+
closeAll: s,
|
|
372
|
+
parent: n
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
const createBuilder = (e, t, n)=>{
|
|
376
|
+
const builder = (...e)=>{
|
|
377
|
+
if (i(e[0]) && i(e[0].raw)) return applyStyle(builder, chalkTag(builder, ...e));
|
|
378
|
+
return applyStyle(builder, 1 === e.length ? "" + e[0] : e.join(" "));
|
|
379
|
+
};
|
|
380
|
+
Object.setPrototypeOf(builder, f);
|
|
381
|
+
builder._generator = e;
|
|
382
|
+
builder._styler = t;
|
|
383
|
+
builder._isEmpty = n;
|
|
384
|
+
return builder;
|
|
385
|
+
};
|
|
386
|
+
const applyStyle = (e, t)=>{
|
|
387
|
+
if (e.level <= 0 || !t) return e._isEmpty ? "" : t;
|
|
388
|
+
let n = e._styler;
|
|
389
|
+
if (void 0 === n) return t;
|
|
390
|
+
const { openAll: r, closeAll: s } = n;
|
|
391
|
+
if (-1 !== t.indexOf("")) while(void 0 !== n){
|
|
392
|
+
t = l(t, n.close, n.open);
|
|
393
|
+
n = n.parent;
|
|
394
|
+
}
|
|
395
|
+
const o = t.indexOf("\n");
|
|
396
|
+
if (-1 !== o) t = c(t, s, r, o);
|
|
397
|
+
return r + t + s;
|
|
398
|
+
};
|
|
399
|
+
let g;
|
|
400
|
+
const chalkTag = (e, ...t)=>{
|
|
401
|
+
const [r] = t;
|
|
402
|
+
if (!i(r) || !i(r.raw)) return t.join(" ");
|
|
403
|
+
const s = t.slice(1);
|
|
404
|
+
const o = [
|
|
405
|
+
r.raw[0]
|
|
406
|
+
];
|
|
407
|
+
for(let e = 1; e < r.length; e++)o.push(String(s[e - 1]).replace(/[{}\\]/g, "\\$&"), String(r.raw[e]));
|
|
408
|
+
if (void 0 === g) g = n(654);
|
|
409
|
+
return g(e, o.join(""));
|
|
410
|
+
};
|
|
411
|
+
Object.defineProperties(Chalk.prototype, u);
|
|
412
|
+
const b = Chalk();
|
|
413
|
+
b.supportsColor = s;
|
|
414
|
+
b.stderr = Chalk({
|
|
415
|
+
level: o ? o.level : 0
|
|
416
|
+
});
|
|
417
|
+
b.stderr.supportsColor = o;
|
|
418
|
+
e.exports = b;
|
|
419
|
+
},
|
|
420
|
+
654: (e)=>{
|
|
421
|
+
"use strict";
|
|
422
|
+
const t = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
423
|
+
const n = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
424
|
+
const r = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
|
|
425
|
+
const s = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
|
|
426
|
+
const o = new Map([
|
|
427
|
+
[
|
|
428
|
+
"n",
|
|
429
|
+
"\n"
|
|
430
|
+
],
|
|
431
|
+
[
|
|
432
|
+
"r",
|
|
433
|
+
"\r"
|
|
434
|
+
],
|
|
435
|
+
[
|
|
436
|
+
"t",
|
|
437
|
+
"\t"
|
|
438
|
+
],
|
|
439
|
+
[
|
|
440
|
+
"b",
|
|
441
|
+
"\b"
|
|
442
|
+
],
|
|
443
|
+
[
|
|
444
|
+
"f",
|
|
445
|
+
"\f"
|
|
446
|
+
],
|
|
447
|
+
[
|
|
448
|
+
"v",
|
|
449
|
+
"\v"
|
|
450
|
+
],
|
|
451
|
+
[
|
|
452
|
+
"0",
|
|
453
|
+
"\0"
|
|
454
|
+
],
|
|
455
|
+
[
|
|
456
|
+
"\\",
|
|
457
|
+
"\\"
|
|
458
|
+
],
|
|
459
|
+
[
|
|
460
|
+
"e",
|
|
461
|
+
""
|
|
462
|
+
],
|
|
463
|
+
[
|
|
464
|
+
"a",
|
|
465
|
+
""
|
|
466
|
+
]
|
|
467
|
+
]);
|
|
468
|
+
function unescape(e) {
|
|
469
|
+
const t = "u" === e[0];
|
|
470
|
+
const n = "{" === e[1];
|
|
471
|
+
if (t && !n && 5 === e.length || "x" === e[0] && 3 === e.length) return String.fromCharCode(parseInt(e.slice(1), 16));
|
|
472
|
+
if (t && n) return String.fromCodePoint(parseInt(e.slice(2, -1), 16));
|
|
473
|
+
return o.get(e) || e;
|
|
474
|
+
}
|
|
475
|
+
function parseArguments(e, t) {
|
|
476
|
+
const n = [];
|
|
477
|
+
const o = t.trim().split(/\s*,\s*/g);
|
|
478
|
+
let l;
|
|
479
|
+
for (const t of o){
|
|
480
|
+
const o = Number(t);
|
|
481
|
+
if (Number.isNaN(o)) if (l = t.match(r)) n.push(l[2].replace(s, (e, t, n)=>t ? unescape(t) : n));
|
|
482
|
+
else throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);
|
|
483
|
+
else n.push(o);
|
|
484
|
+
}
|
|
485
|
+
return n;
|
|
486
|
+
}
|
|
487
|
+
function parseStyle(e) {
|
|
488
|
+
n.lastIndex = 0;
|
|
489
|
+
const t = [];
|
|
490
|
+
let r;
|
|
491
|
+
while(null !== (r = n.exec(e))){
|
|
492
|
+
const e = r[1];
|
|
493
|
+
if (r[2]) {
|
|
494
|
+
const n = parseArguments(e, r[2]);
|
|
495
|
+
t.push([
|
|
496
|
+
e
|
|
497
|
+
].concat(n));
|
|
498
|
+
} else t.push([
|
|
499
|
+
e
|
|
500
|
+
]);
|
|
501
|
+
}
|
|
502
|
+
return t;
|
|
503
|
+
}
|
|
504
|
+
function buildStyle(e, t) {
|
|
505
|
+
const n = {};
|
|
506
|
+
for (const e of t)for (const t of e.styles)n[t[0]] = e.inverse ? null : t.slice(1);
|
|
507
|
+
let r = e;
|
|
508
|
+
for (const [e, t] of Object.entries(n))if (Array.isArray(t)) {
|
|
509
|
+
if (!(e in r)) throw new Error(`Unknown Chalk style: ${e}`);
|
|
510
|
+
r = t.length > 0 ? r[e](...t) : r[e];
|
|
511
|
+
}
|
|
512
|
+
return r;
|
|
513
|
+
}
|
|
514
|
+
e.exports = (e, n)=>{
|
|
515
|
+
const r = [];
|
|
516
|
+
const s = [];
|
|
517
|
+
let o = [];
|
|
518
|
+
n.replace(t, (t, n, l, c, i, a)=>{
|
|
519
|
+
if (n) o.push(unescape(n));
|
|
520
|
+
else if (c) {
|
|
521
|
+
const t = o.join("");
|
|
522
|
+
o = [];
|
|
523
|
+
s.push(0 === r.length ? t : buildStyle(e, r)(t));
|
|
524
|
+
r.push({
|
|
525
|
+
inverse: l,
|
|
526
|
+
styles: parseStyle(c)
|
|
527
|
+
});
|
|
528
|
+
} else if (i) {
|
|
529
|
+
if (0 === r.length) throw new Error("Found extraneous } in Chalk template literal");
|
|
530
|
+
s.push(buildStyle(e, r)(o.join("")));
|
|
531
|
+
o = [];
|
|
532
|
+
r.pop();
|
|
533
|
+
} else o.push(a);
|
|
534
|
+
});
|
|
535
|
+
s.push(o.join(""));
|
|
536
|
+
if (r.length > 0) {
|
|
537
|
+
const e = `Chalk template literal is missing ${r.length} closing bracket${1 === r.length ? "" : "s"} (\`}\`)`;
|
|
538
|
+
throw new Error(e);
|
|
539
|
+
}
|
|
540
|
+
return s.join("");
|
|
541
|
+
};
|
|
542
|
+
},
|
|
543
|
+
905: (e)=>{
|
|
544
|
+
"use strict";
|
|
545
|
+
const stringReplaceAll = (e, t, n)=>{
|
|
546
|
+
let r = e.indexOf(t);
|
|
547
|
+
if (-1 === r) return e;
|
|
548
|
+
const s = t.length;
|
|
549
|
+
let o = 0;
|
|
550
|
+
let l = "";
|
|
551
|
+
do {
|
|
552
|
+
l += e.substr(o, r - o) + t + n;
|
|
553
|
+
o = r + s;
|
|
554
|
+
r = e.indexOf(t, o);
|
|
555
|
+
}while (-1 !== r);
|
|
556
|
+
l += e.substr(o);
|
|
557
|
+
return l;
|
|
558
|
+
};
|
|
559
|
+
const stringEncaseCRLFWithFirstIndex = (e, t, n, r)=>{
|
|
560
|
+
let s = 0;
|
|
561
|
+
let o = "";
|
|
562
|
+
do {
|
|
563
|
+
const l = "\r" === e[r - 1];
|
|
564
|
+
o += e.substr(s, (l ? r - 1 : r) - s) + t + (l ? "\r\n" : "\n") + n;
|
|
565
|
+
s = r + 1;
|
|
566
|
+
r = e.indexOf("\n", s);
|
|
567
|
+
}while (-1 !== r);
|
|
568
|
+
o += e.substr(s);
|
|
569
|
+
return o;
|
|
570
|
+
};
|
|
571
|
+
e.exports = {
|
|
572
|
+
stringReplaceAll: stringReplaceAll,
|
|
573
|
+
stringEncaseCRLFWithFirstIndex: stringEncaseCRLFWithFirstIndex
|
|
574
|
+
};
|
|
575
|
+
},
|
|
576
|
+
226: (e, t, n)=>{
|
|
577
|
+
const r = n(866);
|
|
578
|
+
const s = {};
|
|
579
|
+
for (const e of Object.keys(r))s[r[e]] = e;
|
|
580
|
+
const o = {
|
|
581
|
+
rgb: {
|
|
582
|
+
channels: 3,
|
|
583
|
+
labels: "rgb"
|
|
584
|
+
},
|
|
585
|
+
hsl: {
|
|
586
|
+
channels: 3,
|
|
587
|
+
labels: "hsl"
|
|
588
|
+
},
|
|
589
|
+
hsv: {
|
|
590
|
+
channels: 3,
|
|
591
|
+
labels: "hsv"
|
|
592
|
+
},
|
|
593
|
+
hwb: {
|
|
594
|
+
channels: 3,
|
|
595
|
+
labels: "hwb"
|
|
596
|
+
},
|
|
597
|
+
cmyk: {
|
|
598
|
+
channels: 4,
|
|
599
|
+
labels: "cmyk"
|
|
600
|
+
},
|
|
601
|
+
xyz: {
|
|
602
|
+
channels: 3,
|
|
603
|
+
labels: "xyz"
|
|
604
|
+
},
|
|
605
|
+
lab: {
|
|
606
|
+
channels: 3,
|
|
607
|
+
labels: "lab"
|
|
608
|
+
},
|
|
609
|
+
lch: {
|
|
610
|
+
channels: 3,
|
|
611
|
+
labels: "lch"
|
|
612
|
+
},
|
|
613
|
+
hex: {
|
|
614
|
+
channels: 1,
|
|
615
|
+
labels: [
|
|
616
|
+
"hex"
|
|
617
|
+
]
|
|
618
|
+
},
|
|
619
|
+
keyword: {
|
|
620
|
+
channels: 1,
|
|
621
|
+
labels: [
|
|
622
|
+
"keyword"
|
|
623
|
+
]
|
|
624
|
+
},
|
|
625
|
+
ansi16: {
|
|
626
|
+
channels: 1,
|
|
627
|
+
labels: [
|
|
628
|
+
"ansi16"
|
|
629
|
+
]
|
|
630
|
+
},
|
|
631
|
+
ansi256: {
|
|
632
|
+
channels: 1,
|
|
633
|
+
labels: [
|
|
634
|
+
"ansi256"
|
|
635
|
+
]
|
|
636
|
+
},
|
|
637
|
+
hcg: {
|
|
638
|
+
channels: 3,
|
|
639
|
+
labels: [
|
|
640
|
+
"h",
|
|
641
|
+
"c",
|
|
642
|
+
"g"
|
|
643
|
+
]
|
|
644
|
+
},
|
|
645
|
+
apple: {
|
|
646
|
+
channels: 3,
|
|
647
|
+
labels: [
|
|
648
|
+
"r16",
|
|
649
|
+
"g16",
|
|
650
|
+
"b16"
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
gray: {
|
|
654
|
+
channels: 1,
|
|
655
|
+
labels: [
|
|
656
|
+
"gray"
|
|
657
|
+
]
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
e.exports = o;
|
|
661
|
+
for (const e of Object.keys(o)){
|
|
662
|
+
if (!("channels" in o[e])) throw new Error("missing channels property: " + e);
|
|
663
|
+
if (!("labels" in o[e])) throw new Error("missing channel labels property: " + e);
|
|
664
|
+
if (o[e].labels.length !== o[e].channels) throw new Error("channel and label counts mismatch: " + e);
|
|
665
|
+
const { channels: t, labels: n } = o[e];
|
|
666
|
+
delete o[e].channels;
|
|
667
|
+
delete o[e].labels;
|
|
668
|
+
Object.defineProperty(o[e], "channels", {
|
|
669
|
+
value: t
|
|
670
|
+
});
|
|
671
|
+
Object.defineProperty(o[e], "labels", {
|
|
672
|
+
value: n
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
o.rgb.hsl = function(e) {
|
|
676
|
+
const t = e[0] / 255;
|
|
677
|
+
const n = e[1] / 255;
|
|
678
|
+
const r = e[2] / 255;
|
|
679
|
+
const s = Math.min(t, n, r);
|
|
680
|
+
const o = Math.max(t, n, r);
|
|
681
|
+
const l = o - s;
|
|
682
|
+
let c;
|
|
683
|
+
let i;
|
|
684
|
+
if (o === s) c = 0;
|
|
685
|
+
else if (t === o) c = (n - r) / l;
|
|
686
|
+
else if (n === o) c = 2 + (r - t) / l;
|
|
687
|
+
else if (r === o) c = 4 + (t - n) / l;
|
|
688
|
+
c = Math.min(60 * c, 360);
|
|
689
|
+
if (c < 0) c += 360;
|
|
690
|
+
const a = (s + o) / 2;
|
|
691
|
+
i = o === s ? 0 : a <= .5 ? l / (o + s) : l / (2 - o - s);
|
|
692
|
+
return [
|
|
693
|
+
c,
|
|
694
|
+
100 * i,
|
|
695
|
+
100 * a
|
|
696
|
+
];
|
|
697
|
+
};
|
|
698
|
+
o.rgb.hsv = function(e) {
|
|
699
|
+
let t;
|
|
700
|
+
let n;
|
|
701
|
+
let r;
|
|
702
|
+
let s;
|
|
703
|
+
let o;
|
|
704
|
+
const l = e[0] / 255;
|
|
705
|
+
const c = e[1] / 255;
|
|
706
|
+
const i = e[2] / 255;
|
|
707
|
+
const a = Math.max(l, c, i);
|
|
708
|
+
const u = a - Math.min(l, c, i);
|
|
709
|
+
const diffc = function(e) {
|
|
710
|
+
return (a - e) / 6 / u + 0.5;
|
|
711
|
+
};
|
|
712
|
+
if (0 === u) {
|
|
713
|
+
s = 0;
|
|
714
|
+
o = 0;
|
|
715
|
+
} else {
|
|
716
|
+
o = u / a;
|
|
717
|
+
t = diffc(l);
|
|
718
|
+
n = diffc(c);
|
|
719
|
+
r = diffc(i);
|
|
720
|
+
if (l === a) s = r - n;
|
|
721
|
+
else if (c === a) s = 1 / 3 + t - r;
|
|
722
|
+
else if (i === a) s = 2 / 3 + n - t;
|
|
723
|
+
if (s < 0) s += 1;
|
|
724
|
+
else if (s > 1) s -= 1;
|
|
725
|
+
}
|
|
726
|
+
return [
|
|
727
|
+
360 * s,
|
|
728
|
+
100 * o,
|
|
729
|
+
100 * a
|
|
730
|
+
];
|
|
731
|
+
};
|
|
732
|
+
o.rgb.hwb = function(e) {
|
|
733
|
+
const t = e[0];
|
|
734
|
+
const n = e[1];
|
|
735
|
+
let r = e[2];
|
|
736
|
+
const s = o.rgb.hsl(e)[0];
|
|
737
|
+
const l = 1 / 255 * Math.min(t, Math.min(n, r));
|
|
738
|
+
r = 1 - 1 / 255 * Math.max(t, Math.max(n, r));
|
|
739
|
+
return [
|
|
740
|
+
s,
|
|
741
|
+
100 * l,
|
|
742
|
+
100 * r
|
|
743
|
+
];
|
|
744
|
+
};
|
|
745
|
+
o.rgb.cmyk = function(e) {
|
|
746
|
+
const t = e[0] / 255;
|
|
747
|
+
const n = e[1] / 255;
|
|
748
|
+
const r = e[2] / 255;
|
|
749
|
+
const s = Math.min(1 - t, 1 - n, 1 - r);
|
|
750
|
+
const o = (1 - t - s) / (1 - s) || 0;
|
|
751
|
+
const l = (1 - n - s) / (1 - s) || 0;
|
|
752
|
+
const c = (1 - r - s) / (1 - s) || 0;
|
|
753
|
+
return [
|
|
754
|
+
100 * o,
|
|
755
|
+
100 * l,
|
|
756
|
+
100 * c,
|
|
757
|
+
100 * s
|
|
758
|
+
];
|
|
759
|
+
};
|
|
760
|
+
function comparativeDistance(e, t) {
|
|
761
|
+
return (e[0] - t[0]) ** 2 + (e[1] - t[1]) ** 2 + (e[2] - t[2]) ** 2;
|
|
762
|
+
}
|
|
763
|
+
o.rgb.keyword = function(e) {
|
|
764
|
+
const t = s[e];
|
|
765
|
+
if (t) return t;
|
|
766
|
+
let n = 1 / 0;
|
|
767
|
+
let o;
|
|
768
|
+
for (const t of Object.keys(r)){
|
|
769
|
+
const s = r[t];
|
|
770
|
+
const l = comparativeDistance(e, s);
|
|
771
|
+
if (l < n) {
|
|
772
|
+
n = l;
|
|
773
|
+
o = t;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
return o;
|
|
777
|
+
};
|
|
778
|
+
o.keyword.rgb = function(e) {
|
|
779
|
+
return r[e];
|
|
780
|
+
};
|
|
781
|
+
o.rgb.xyz = function(e) {
|
|
782
|
+
let t = e[0] / 255;
|
|
783
|
+
let n = e[1] / 255;
|
|
784
|
+
let r = e[2] / 255;
|
|
785
|
+
t = t > .04045 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
|
|
786
|
+
n = n > .04045 ? ((n + .055) / 1.055) ** 2.4 : n / 12.92;
|
|
787
|
+
r = r > .04045 ? ((r + .055) / 1.055) ** 2.4 : r / 12.92;
|
|
788
|
+
const s = .4124 * t + .3576 * n + .1805 * r;
|
|
789
|
+
const o = .2126 * t + .7152 * n + .0722 * r;
|
|
790
|
+
const l = .0193 * t + .1192 * n + .9505 * r;
|
|
791
|
+
return [
|
|
792
|
+
100 * s,
|
|
793
|
+
100 * o,
|
|
794
|
+
100 * l
|
|
795
|
+
];
|
|
796
|
+
};
|
|
797
|
+
o.rgb.lab = function(e) {
|
|
798
|
+
const t = o.rgb.xyz(e);
|
|
799
|
+
let n = t[0];
|
|
800
|
+
let r = t[1];
|
|
801
|
+
let s = t[2];
|
|
802
|
+
n /= 95.047;
|
|
803
|
+
r /= 100;
|
|
804
|
+
s /= 108.883;
|
|
805
|
+
n = n > .008856 ? n ** (1 / 3) : 7.787 * n + 16 / 116;
|
|
806
|
+
r = r > .008856 ? r ** (1 / 3) : 7.787 * r + 16 / 116;
|
|
807
|
+
s = s > .008856 ? s ** (1 / 3) : 7.787 * s + 16 / 116;
|
|
808
|
+
const l = 116 * r - 16;
|
|
809
|
+
const c = 500 * (n - r);
|
|
810
|
+
const i = 200 * (r - s);
|
|
811
|
+
return [
|
|
812
|
+
l,
|
|
813
|
+
c,
|
|
814
|
+
i
|
|
815
|
+
];
|
|
816
|
+
};
|
|
817
|
+
o.hsl.rgb = function(e) {
|
|
818
|
+
const t = e[0] / 360;
|
|
819
|
+
const n = e[1] / 100;
|
|
820
|
+
const r = e[2] / 100;
|
|
821
|
+
let s;
|
|
822
|
+
let o;
|
|
823
|
+
let l;
|
|
824
|
+
if (0 === n) {
|
|
825
|
+
l = 255 * r;
|
|
826
|
+
return [
|
|
827
|
+
l,
|
|
828
|
+
l,
|
|
829
|
+
l
|
|
830
|
+
];
|
|
831
|
+
}
|
|
832
|
+
s = r < .5 ? r * (1 + n) : r + n - r * n;
|
|
833
|
+
const c = 2 * r - s;
|
|
834
|
+
const i = [
|
|
835
|
+
0,
|
|
836
|
+
0,
|
|
837
|
+
0
|
|
838
|
+
];
|
|
839
|
+
for(let e = 0; e < 3; e++){
|
|
840
|
+
o = t + 1 / 3 * -(e - 1);
|
|
841
|
+
if (o < 0) o++;
|
|
842
|
+
if (o > 1) o--;
|
|
843
|
+
l = 6 * o < 1 ? c + (s - c) * 6 * o : 2 * o < 1 ? s : 3 * o < 2 ? c + (s - c) * (2 / 3 - o) * 6 : c;
|
|
844
|
+
i[e] = 255 * l;
|
|
845
|
+
}
|
|
846
|
+
return i;
|
|
847
|
+
};
|
|
848
|
+
o.hsl.hsv = function(e) {
|
|
849
|
+
const t = e[0];
|
|
850
|
+
let n = e[1] / 100;
|
|
851
|
+
let r = e[2] / 100;
|
|
852
|
+
let s = n;
|
|
853
|
+
const o = Math.max(r, .01);
|
|
854
|
+
r *= 2;
|
|
855
|
+
n *= r <= 1 ? r : 2 - r;
|
|
856
|
+
s *= o <= 1 ? o : 2 - o;
|
|
857
|
+
const l = (r + n) / 2;
|
|
858
|
+
const c = 0 === r ? 2 * s / (o + s) : 2 * n / (r + n);
|
|
859
|
+
return [
|
|
860
|
+
t,
|
|
861
|
+
100 * c,
|
|
862
|
+
100 * l
|
|
863
|
+
];
|
|
864
|
+
};
|
|
865
|
+
o.hsv.rgb = function(e) {
|
|
866
|
+
const t = e[0] / 60;
|
|
867
|
+
const n = e[1] / 100;
|
|
868
|
+
let r = e[2] / 100;
|
|
869
|
+
const s = Math.floor(t) % 6;
|
|
870
|
+
const o = t - Math.floor(t);
|
|
871
|
+
const l = 255 * r * (1 - n);
|
|
872
|
+
const c = 255 * r * (1 - n * o);
|
|
873
|
+
const i = 255 * r * (1 - n * (1 - o));
|
|
874
|
+
r *= 255;
|
|
875
|
+
switch(s){
|
|
876
|
+
case 0:
|
|
877
|
+
return [
|
|
878
|
+
r,
|
|
879
|
+
i,
|
|
880
|
+
l
|
|
881
|
+
];
|
|
882
|
+
case 1:
|
|
883
|
+
return [
|
|
884
|
+
c,
|
|
885
|
+
r,
|
|
886
|
+
l
|
|
887
|
+
];
|
|
888
|
+
case 2:
|
|
889
|
+
return [
|
|
890
|
+
l,
|
|
891
|
+
r,
|
|
892
|
+
i
|
|
893
|
+
];
|
|
894
|
+
case 3:
|
|
895
|
+
return [
|
|
896
|
+
l,
|
|
897
|
+
c,
|
|
898
|
+
r
|
|
899
|
+
];
|
|
900
|
+
case 4:
|
|
901
|
+
return [
|
|
902
|
+
i,
|
|
903
|
+
l,
|
|
904
|
+
r
|
|
905
|
+
];
|
|
906
|
+
case 5:
|
|
907
|
+
return [
|
|
908
|
+
r,
|
|
909
|
+
l,
|
|
910
|
+
c
|
|
911
|
+
];
|
|
912
|
+
}
|
|
913
|
+
};
|
|
914
|
+
o.hsv.hsl = function(e) {
|
|
915
|
+
const t = e[0];
|
|
916
|
+
const n = e[1] / 100;
|
|
917
|
+
const r = e[2] / 100;
|
|
918
|
+
const s = Math.max(r, .01);
|
|
919
|
+
let o;
|
|
920
|
+
let l;
|
|
921
|
+
l = (2 - n) * r;
|
|
922
|
+
const c = (2 - n) * s;
|
|
923
|
+
o = n * s;
|
|
924
|
+
o /= c <= 1 ? c : 2 - c;
|
|
925
|
+
o = o || 0;
|
|
926
|
+
l /= 2;
|
|
927
|
+
return [
|
|
928
|
+
t,
|
|
929
|
+
100 * o,
|
|
930
|
+
100 * l
|
|
931
|
+
];
|
|
932
|
+
};
|
|
933
|
+
o.hwb.rgb = function(e) {
|
|
934
|
+
const t = e[0] / 360;
|
|
935
|
+
let n = e[1] / 100;
|
|
936
|
+
let r = e[2] / 100;
|
|
937
|
+
const s = n + r;
|
|
938
|
+
let o;
|
|
939
|
+
if (s > 1) {
|
|
940
|
+
n /= s;
|
|
941
|
+
r /= s;
|
|
942
|
+
}
|
|
943
|
+
const l = Math.floor(6 * t);
|
|
944
|
+
const c = 1 - r;
|
|
945
|
+
o = 6 * t - l;
|
|
946
|
+
if ((1 & l) !== 0) o = 1 - o;
|
|
947
|
+
const i = n + o * (c - n);
|
|
948
|
+
let a;
|
|
949
|
+
let u;
|
|
950
|
+
let h;
|
|
951
|
+
switch(l){
|
|
952
|
+
default:
|
|
953
|
+
case 6:
|
|
954
|
+
case 0:
|
|
955
|
+
a = c;
|
|
956
|
+
u = i;
|
|
957
|
+
h = n;
|
|
958
|
+
break;
|
|
959
|
+
case 1:
|
|
960
|
+
a = i;
|
|
961
|
+
u = c;
|
|
962
|
+
h = n;
|
|
963
|
+
break;
|
|
964
|
+
case 2:
|
|
965
|
+
a = n;
|
|
966
|
+
u = c;
|
|
967
|
+
h = i;
|
|
968
|
+
break;
|
|
969
|
+
case 3:
|
|
970
|
+
a = n;
|
|
971
|
+
u = i;
|
|
972
|
+
h = c;
|
|
973
|
+
break;
|
|
974
|
+
case 4:
|
|
975
|
+
a = i;
|
|
976
|
+
u = n;
|
|
977
|
+
h = c;
|
|
978
|
+
break;
|
|
979
|
+
case 5:
|
|
980
|
+
a = c;
|
|
981
|
+
u = n;
|
|
982
|
+
h = i;
|
|
983
|
+
break;
|
|
984
|
+
}
|
|
985
|
+
return [
|
|
986
|
+
255 * a,
|
|
987
|
+
255 * u,
|
|
988
|
+
255 * h
|
|
989
|
+
];
|
|
990
|
+
};
|
|
991
|
+
o.cmyk.rgb = function(e) {
|
|
992
|
+
const t = e[0] / 100;
|
|
993
|
+
const n = e[1] / 100;
|
|
994
|
+
const r = e[2] / 100;
|
|
995
|
+
const s = e[3] / 100;
|
|
996
|
+
const o = 1 - Math.min(1, t * (1 - s) + s);
|
|
997
|
+
const l = 1 - Math.min(1, n * (1 - s) + s);
|
|
998
|
+
const c = 1 - Math.min(1, r * (1 - s) + s);
|
|
999
|
+
return [
|
|
1000
|
+
255 * o,
|
|
1001
|
+
255 * l,
|
|
1002
|
+
255 * c
|
|
1003
|
+
];
|
|
1004
|
+
};
|
|
1005
|
+
o.xyz.rgb = function(e) {
|
|
1006
|
+
const t = e[0] / 100;
|
|
1007
|
+
const n = e[1] / 100;
|
|
1008
|
+
const r = e[2] / 100;
|
|
1009
|
+
let s;
|
|
1010
|
+
let o;
|
|
1011
|
+
let l;
|
|
1012
|
+
s = 3.2406 * t + -1.5372 * n + -0.4986 * r;
|
|
1013
|
+
o = -0.9689 * t + 1.8758 * n + .0415 * r;
|
|
1014
|
+
l = .0557 * t + -0.204 * n + 1.057 * r;
|
|
1015
|
+
s = s > .0031308 ? 1.055 * s ** (1 / 2.4) - .055 : 12.92 * s;
|
|
1016
|
+
o = o > .0031308 ? 1.055 * o ** (1 / 2.4) - .055 : 12.92 * o;
|
|
1017
|
+
l = l > .0031308 ? 1.055 * l ** (1 / 2.4) - .055 : 12.92 * l;
|
|
1018
|
+
s = Math.min(Math.max(0, s), 1);
|
|
1019
|
+
o = Math.min(Math.max(0, o), 1);
|
|
1020
|
+
l = Math.min(Math.max(0, l), 1);
|
|
1021
|
+
return [
|
|
1022
|
+
255 * s,
|
|
1023
|
+
255 * o,
|
|
1024
|
+
255 * l
|
|
1025
|
+
];
|
|
1026
|
+
};
|
|
1027
|
+
o.xyz.lab = function(e) {
|
|
1028
|
+
let t = e[0];
|
|
1029
|
+
let n = e[1];
|
|
1030
|
+
let r = e[2];
|
|
1031
|
+
t /= 95.047;
|
|
1032
|
+
n /= 100;
|
|
1033
|
+
r /= 108.883;
|
|
1034
|
+
t = t > .008856 ? t ** (1 / 3) : 7.787 * t + 16 / 116;
|
|
1035
|
+
n = n > .008856 ? n ** (1 / 3) : 7.787 * n + 16 / 116;
|
|
1036
|
+
r = r > .008856 ? r ** (1 / 3) : 7.787 * r + 16 / 116;
|
|
1037
|
+
const s = 116 * n - 16;
|
|
1038
|
+
const o = 500 * (t - n);
|
|
1039
|
+
const l = 200 * (n - r);
|
|
1040
|
+
return [
|
|
1041
|
+
s,
|
|
1042
|
+
o,
|
|
1043
|
+
l
|
|
1044
|
+
];
|
|
1045
|
+
};
|
|
1046
|
+
o.lab.xyz = function(e) {
|
|
1047
|
+
const t = e[0];
|
|
1048
|
+
const n = e[1];
|
|
1049
|
+
const r = e[2];
|
|
1050
|
+
let s;
|
|
1051
|
+
let o;
|
|
1052
|
+
let l;
|
|
1053
|
+
o = (t + 16) / 116;
|
|
1054
|
+
s = n / 500 + o;
|
|
1055
|
+
l = o - r / 200;
|
|
1056
|
+
const c = o ** 3;
|
|
1057
|
+
const i = s ** 3;
|
|
1058
|
+
const a = l ** 3;
|
|
1059
|
+
o = c > .008856 ? c : (o - 16 / 116) / 7.787;
|
|
1060
|
+
s = i > .008856 ? i : (s - 16 / 116) / 7.787;
|
|
1061
|
+
l = a > .008856 ? a : (l - 16 / 116) / 7.787;
|
|
1062
|
+
s *= 95.047;
|
|
1063
|
+
o *= 100;
|
|
1064
|
+
l *= 108.883;
|
|
1065
|
+
return [
|
|
1066
|
+
s,
|
|
1067
|
+
o,
|
|
1068
|
+
l
|
|
1069
|
+
];
|
|
1070
|
+
};
|
|
1071
|
+
o.lab.lch = function(e) {
|
|
1072
|
+
const t = e[0];
|
|
1073
|
+
const n = e[1];
|
|
1074
|
+
const r = e[2];
|
|
1075
|
+
let s;
|
|
1076
|
+
const o = Math.atan2(r, n);
|
|
1077
|
+
s = 360 * o / 2 / Math.PI;
|
|
1078
|
+
if (s < 0) s += 360;
|
|
1079
|
+
const l = Math.sqrt(n * n + r * r);
|
|
1080
|
+
return [
|
|
1081
|
+
t,
|
|
1082
|
+
l,
|
|
1083
|
+
s
|
|
1084
|
+
];
|
|
1085
|
+
};
|
|
1086
|
+
o.lch.lab = function(e) {
|
|
1087
|
+
const t = e[0];
|
|
1088
|
+
const n = e[1];
|
|
1089
|
+
const r = e[2];
|
|
1090
|
+
const s = r / 360 * 2 * Math.PI;
|
|
1091
|
+
const o = n * Math.cos(s);
|
|
1092
|
+
const l = n * Math.sin(s);
|
|
1093
|
+
return [
|
|
1094
|
+
t,
|
|
1095
|
+
o,
|
|
1096
|
+
l
|
|
1097
|
+
];
|
|
1098
|
+
};
|
|
1099
|
+
o.rgb.ansi16 = function(e, t = null) {
|
|
1100
|
+
const [n, r, s] = e;
|
|
1101
|
+
let l = null === t ? o.rgb.hsv(e)[2] : t;
|
|
1102
|
+
l = Math.round(l / 50);
|
|
1103
|
+
if (0 === l) return 30;
|
|
1104
|
+
let c = 30 + (Math.round(s / 255) << 2 | Math.round(r / 255) << 1 | Math.round(n / 255));
|
|
1105
|
+
if (2 === l) c += 60;
|
|
1106
|
+
return c;
|
|
1107
|
+
};
|
|
1108
|
+
o.hsv.ansi16 = function(e) {
|
|
1109
|
+
return o.rgb.ansi16(o.hsv.rgb(e), e[2]);
|
|
1110
|
+
};
|
|
1111
|
+
o.rgb.ansi256 = function(e) {
|
|
1112
|
+
const t = e[0];
|
|
1113
|
+
const n = e[1];
|
|
1114
|
+
const r = e[2];
|
|
1115
|
+
if (t === n && n === r) {
|
|
1116
|
+
if (t < 8) return 16;
|
|
1117
|
+
if (t > 248) return 231;
|
|
1118
|
+
return Math.round((t - 8) / 247 * 24) + 232;
|
|
1119
|
+
}
|
|
1120
|
+
const s = 16 + 36 * Math.round(t / 255 * 5) + 6 * Math.round(n / 255 * 5) + Math.round(r / 255 * 5);
|
|
1121
|
+
return s;
|
|
1122
|
+
};
|
|
1123
|
+
o.ansi16.rgb = function(e) {
|
|
1124
|
+
let t = e % 10;
|
|
1125
|
+
if (0 === t || 7 === t) {
|
|
1126
|
+
if (e > 50) t += 3.5;
|
|
1127
|
+
t = t / 10.5 * 255;
|
|
1128
|
+
return [
|
|
1129
|
+
t,
|
|
1130
|
+
t,
|
|
1131
|
+
t
|
|
1132
|
+
];
|
|
1133
|
+
}
|
|
1134
|
+
const n = (~~(e > 50) + 1) * .5;
|
|
1135
|
+
const r = (1 & t) * n * 255;
|
|
1136
|
+
const s = (t >> 1 & 1) * n * 255;
|
|
1137
|
+
const o = (t >> 2 & 1) * n * 255;
|
|
1138
|
+
return [
|
|
1139
|
+
r,
|
|
1140
|
+
s,
|
|
1141
|
+
o
|
|
1142
|
+
];
|
|
1143
|
+
};
|
|
1144
|
+
o.ansi256.rgb = function(e) {
|
|
1145
|
+
if (e >= 232) {
|
|
1146
|
+
const t = (e - 232) * 10 + 8;
|
|
1147
|
+
return [
|
|
1148
|
+
t,
|
|
1149
|
+
t,
|
|
1150
|
+
t
|
|
1151
|
+
];
|
|
1152
|
+
}
|
|
1153
|
+
e -= 16;
|
|
1154
|
+
let t;
|
|
1155
|
+
const n = Math.floor(e / 36) / 5 * 255;
|
|
1156
|
+
const r = Math.floor((t = e % 36) / 6) / 5 * 255;
|
|
1157
|
+
const s = t % 6 / 5 * 255;
|
|
1158
|
+
return [
|
|
1159
|
+
n,
|
|
1160
|
+
r,
|
|
1161
|
+
s
|
|
1162
|
+
];
|
|
1163
|
+
};
|
|
1164
|
+
o.rgb.hex = function(e) {
|
|
1165
|
+
const t = ((255 & Math.round(e[0])) << 16) + ((255 & Math.round(e[1])) << 8) + (255 & Math.round(e[2]));
|
|
1166
|
+
const n = t.toString(16).toUpperCase();
|
|
1167
|
+
return "000000".substring(n.length) + n;
|
|
1168
|
+
};
|
|
1169
|
+
o.hex.rgb = function(e) {
|
|
1170
|
+
const t = e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
1171
|
+
if (!t) return [
|
|
1172
|
+
0,
|
|
1173
|
+
0,
|
|
1174
|
+
0
|
|
1175
|
+
];
|
|
1176
|
+
let n = t[0];
|
|
1177
|
+
if (3 === t[0].length) n = n.split("").map((e)=>e + e).join("");
|
|
1178
|
+
const r = parseInt(n, 16);
|
|
1179
|
+
const s = r >> 16 & 255;
|
|
1180
|
+
const o = r >> 8 & 255;
|
|
1181
|
+
const l = 255 & r;
|
|
1182
|
+
return [
|
|
1183
|
+
s,
|
|
1184
|
+
o,
|
|
1185
|
+
l
|
|
1186
|
+
];
|
|
1187
|
+
};
|
|
1188
|
+
o.rgb.hcg = function(e) {
|
|
1189
|
+
const t = e[0] / 255;
|
|
1190
|
+
const n = e[1] / 255;
|
|
1191
|
+
const r = e[2] / 255;
|
|
1192
|
+
const s = Math.max(Math.max(t, n), r);
|
|
1193
|
+
const o = Math.min(Math.min(t, n), r);
|
|
1194
|
+
const l = s - o;
|
|
1195
|
+
let c;
|
|
1196
|
+
let i;
|
|
1197
|
+
c = l < 1 ? o / (1 - l) : 0;
|
|
1198
|
+
i = l <= 0 ? 0 : s === t ? (n - r) / l % 6 : s === n ? 2 + (r - t) / l : 4 + (t - n) / l;
|
|
1199
|
+
i /= 6;
|
|
1200
|
+
i %= 1;
|
|
1201
|
+
return [
|
|
1202
|
+
360 * i,
|
|
1203
|
+
100 * l,
|
|
1204
|
+
100 * c
|
|
1205
|
+
];
|
|
1206
|
+
};
|
|
1207
|
+
o.hsl.hcg = function(e) {
|
|
1208
|
+
const t = e[1] / 100;
|
|
1209
|
+
const n = e[2] / 100;
|
|
1210
|
+
const r = n < .5 ? 2 * t * n : 2 * t * (1 - n);
|
|
1211
|
+
let s = 0;
|
|
1212
|
+
if (r < 1) s = (n - .5 * r) / (1 - r);
|
|
1213
|
+
return [
|
|
1214
|
+
e[0],
|
|
1215
|
+
100 * r,
|
|
1216
|
+
100 * s
|
|
1217
|
+
];
|
|
1218
|
+
};
|
|
1219
|
+
o.hsv.hcg = function(e) {
|
|
1220
|
+
const t = e[1] / 100;
|
|
1221
|
+
const n = e[2] / 100;
|
|
1222
|
+
const r = t * n;
|
|
1223
|
+
let s = 0;
|
|
1224
|
+
if (r < 1) s = (n - r) / (1 - r);
|
|
1225
|
+
return [
|
|
1226
|
+
e[0],
|
|
1227
|
+
100 * r,
|
|
1228
|
+
100 * s
|
|
1229
|
+
];
|
|
1230
|
+
};
|
|
1231
|
+
o.hcg.rgb = function(e) {
|
|
1232
|
+
const t = e[0] / 360;
|
|
1233
|
+
const n = e[1] / 100;
|
|
1234
|
+
const r = e[2] / 100;
|
|
1235
|
+
if (0 === n) return [
|
|
1236
|
+
255 * r,
|
|
1237
|
+
255 * r,
|
|
1238
|
+
255 * r
|
|
1239
|
+
];
|
|
1240
|
+
const s = [
|
|
1241
|
+
0,
|
|
1242
|
+
0,
|
|
1243
|
+
0
|
|
1244
|
+
];
|
|
1245
|
+
const o = t % 1 * 6;
|
|
1246
|
+
const l = o % 1;
|
|
1247
|
+
const c = 1 - l;
|
|
1248
|
+
let i = 0;
|
|
1249
|
+
switch(Math.floor(o)){
|
|
1250
|
+
case 0:
|
|
1251
|
+
s[0] = 1;
|
|
1252
|
+
s[1] = l;
|
|
1253
|
+
s[2] = 0;
|
|
1254
|
+
break;
|
|
1255
|
+
case 1:
|
|
1256
|
+
s[0] = c;
|
|
1257
|
+
s[1] = 1;
|
|
1258
|
+
s[2] = 0;
|
|
1259
|
+
break;
|
|
1260
|
+
case 2:
|
|
1261
|
+
s[0] = 0;
|
|
1262
|
+
s[1] = 1;
|
|
1263
|
+
s[2] = l;
|
|
1264
|
+
break;
|
|
1265
|
+
case 3:
|
|
1266
|
+
s[0] = 0;
|
|
1267
|
+
s[1] = c;
|
|
1268
|
+
s[2] = 1;
|
|
1269
|
+
break;
|
|
1270
|
+
case 4:
|
|
1271
|
+
s[0] = l;
|
|
1272
|
+
s[1] = 0;
|
|
1273
|
+
s[2] = 1;
|
|
1274
|
+
break;
|
|
1275
|
+
default:
|
|
1276
|
+
s[0] = 1;
|
|
1277
|
+
s[1] = 0;
|
|
1278
|
+
s[2] = c;
|
|
1279
|
+
}
|
|
1280
|
+
i = (1 - n) * r;
|
|
1281
|
+
return [
|
|
1282
|
+
(n * s[0] + i) * 255,
|
|
1283
|
+
(n * s[1] + i) * 255,
|
|
1284
|
+
(n * s[2] + i) * 255
|
|
1285
|
+
];
|
|
1286
|
+
};
|
|
1287
|
+
o.hcg.hsv = function(e) {
|
|
1288
|
+
const t = e[1] / 100;
|
|
1289
|
+
const n = e[2] / 100;
|
|
1290
|
+
const r = t + n * (1 - t);
|
|
1291
|
+
let s = 0;
|
|
1292
|
+
if (r > 0) s = t / r;
|
|
1293
|
+
return [
|
|
1294
|
+
e[0],
|
|
1295
|
+
100 * s,
|
|
1296
|
+
100 * r
|
|
1297
|
+
];
|
|
1298
|
+
};
|
|
1299
|
+
o.hcg.hsl = function(e) {
|
|
1300
|
+
const t = e[1] / 100;
|
|
1301
|
+
const n = e[2] / 100;
|
|
1302
|
+
const r = n * (1 - t) + .5 * t;
|
|
1303
|
+
let s = 0;
|
|
1304
|
+
if (r > 0 && r < .5) s = t / (2 * r);
|
|
1305
|
+
else if (r >= .5 && r < 1) s = t / (2 * (1 - r));
|
|
1306
|
+
return [
|
|
1307
|
+
e[0],
|
|
1308
|
+
100 * s,
|
|
1309
|
+
100 * r
|
|
1310
|
+
];
|
|
1311
|
+
};
|
|
1312
|
+
o.hcg.hwb = function(e) {
|
|
1313
|
+
const t = e[1] / 100;
|
|
1314
|
+
const n = e[2] / 100;
|
|
1315
|
+
const r = t + n * (1 - t);
|
|
1316
|
+
return [
|
|
1317
|
+
e[0],
|
|
1318
|
+
(r - t) * 100,
|
|
1319
|
+
(1 - r) * 100
|
|
1320
|
+
];
|
|
1321
|
+
};
|
|
1322
|
+
o.hwb.hcg = function(e) {
|
|
1323
|
+
const t = e[1] / 100;
|
|
1324
|
+
const n = e[2] / 100;
|
|
1325
|
+
const r = 1 - n;
|
|
1326
|
+
const s = r - t;
|
|
1327
|
+
let o = 0;
|
|
1328
|
+
if (s < 1) o = (r - s) / (1 - s);
|
|
1329
|
+
return [
|
|
1330
|
+
e[0],
|
|
1331
|
+
100 * s,
|
|
1332
|
+
100 * o
|
|
1333
|
+
];
|
|
1334
|
+
};
|
|
1335
|
+
o.apple.rgb = function(e) {
|
|
1336
|
+
return [
|
|
1337
|
+
e[0] / 65535 * 255,
|
|
1338
|
+
e[1] / 65535 * 255,
|
|
1339
|
+
e[2] / 65535 * 255
|
|
1340
|
+
];
|
|
1341
|
+
};
|
|
1342
|
+
o.rgb.apple = function(e) {
|
|
1343
|
+
return [
|
|
1344
|
+
e[0] / 255 * 65535,
|
|
1345
|
+
e[1] / 255 * 65535,
|
|
1346
|
+
e[2] / 255 * 65535
|
|
1347
|
+
];
|
|
1348
|
+
};
|
|
1349
|
+
o.gray.rgb = function(e) {
|
|
1350
|
+
return [
|
|
1351
|
+
e[0] / 100 * 255,
|
|
1352
|
+
e[0] / 100 * 255,
|
|
1353
|
+
e[0] / 100 * 255
|
|
1354
|
+
];
|
|
1355
|
+
};
|
|
1356
|
+
o.gray.hsl = function(e) {
|
|
1357
|
+
return [
|
|
1358
|
+
0,
|
|
1359
|
+
0,
|
|
1360
|
+
e[0]
|
|
1361
|
+
];
|
|
1362
|
+
};
|
|
1363
|
+
o.gray.hsv = o.gray.hsl;
|
|
1364
|
+
o.gray.hwb = function(e) {
|
|
1365
|
+
return [
|
|
1366
|
+
0,
|
|
1367
|
+
100,
|
|
1368
|
+
e[0]
|
|
1369
|
+
];
|
|
1370
|
+
};
|
|
1371
|
+
o.gray.cmyk = function(e) {
|
|
1372
|
+
return [
|
|
1373
|
+
0,
|
|
1374
|
+
0,
|
|
1375
|
+
0,
|
|
1376
|
+
e[0]
|
|
1377
|
+
];
|
|
1378
|
+
};
|
|
1379
|
+
o.gray.lab = function(e) {
|
|
1380
|
+
return [
|
|
1381
|
+
e[0],
|
|
1382
|
+
0,
|
|
1383
|
+
0
|
|
1384
|
+
];
|
|
1385
|
+
};
|
|
1386
|
+
o.gray.hex = function(e) {
|
|
1387
|
+
const t = 255 & Math.round(e[0] / 100 * 255);
|
|
1388
|
+
const n = (t << 16) + (t << 8) + t;
|
|
1389
|
+
const r = n.toString(16).toUpperCase();
|
|
1390
|
+
return "000000".substring(r.length) + r;
|
|
1391
|
+
};
|
|
1392
|
+
o.rgb.gray = function(e) {
|
|
1393
|
+
const t = (e[0] + e[1] + e[2]) / 3;
|
|
1394
|
+
return [
|
|
1395
|
+
t / 255 * 100
|
|
1396
|
+
];
|
|
1397
|
+
};
|
|
1398
|
+
},
|
|
1399
|
+
767: (e, t, n)=>{
|
|
1400
|
+
const r = n(226);
|
|
1401
|
+
const s = n(392);
|
|
1402
|
+
const o = {};
|
|
1403
|
+
const l = Object.keys(r);
|
|
1404
|
+
function wrapRaw(e) {
|
|
1405
|
+
const wrappedFn = function(...t) {
|
|
1406
|
+
const n = t[0];
|
|
1407
|
+
if (null == n) return n;
|
|
1408
|
+
if (n.length > 1) t = n;
|
|
1409
|
+
return e(t);
|
|
1410
|
+
};
|
|
1411
|
+
if ("conversion" in e) wrappedFn.conversion = e.conversion;
|
|
1412
|
+
return wrappedFn;
|
|
1413
|
+
}
|
|
1414
|
+
function wrapRounded(e) {
|
|
1415
|
+
const wrappedFn = function(...t) {
|
|
1416
|
+
const n = t[0];
|
|
1417
|
+
if (null == n) return n;
|
|
1418
|
+
if (n.length > 1) t = n;
|
|
1419
|
+
const r = e(t);
|
|
1420
|
+
if ("object" == typeof r) for(let e = r.length, t = 0; t < e; t++)r[t] = Math.round(r[t]);
|
|
1421
|
+
return r;
|
|
1422
|
+
};
|
|
1423
|
+
if ("conversion" in e) wrappedFn.conversion = e.conversion;
|
|
1424
|
+
return wrappedFn;
|
|
1425
|
+
}
|
|
1426
|
+
l.forEach((e)=>{
|
|
1427
|
+
o[e] = {};
|
|
1428
|
+
Object.defineProperty(o[e], "channels", {
|
|
1429
|
+
value: r[e].channels
|
|
1430
|
+
});
|
|
1431
|
+
Object.defineProperty(o[e], "labels", {
|
|
1432
|
+
value: r[e].labels
|
|
1433
|
+
});
|
|
1434
|
+
const t = s(e);
|
|
1435
|
+
const n = Object.keys(t);
|
|
1436
|
+
n.forEach((n)=>{
|
|
1437
|
+
const r = t[n];
|
|
1438
|
+
o[e][n] = wrapRounded(r);
|
|
1439
|
+
o[e][n].raw = wrapRaw(r);
|
|
1440
|
+
});
|
|
1441
|
+
});
|
|
1442
|
+
e.exports = o;
|
|
1443
|
+
},
|
|
1444
|
+
392: (e, t, n)=>{
|
|
1445
|
+
const r = n(226);
|
|
1446
|
+
function buildGraph() {
|
|
1447
|
+
const e = {};
|
|
1448
|
+
const t = Object.keys(r);
|
|
1449
|
+
for(let n = t.length, r = 0; r < n; r++)e[t[r]] = {
|
|
1450
|
+
distance: -1,
|
|
1451
|
+
parent: null
|
|
1452
|
+
};
|
|
1453
|
+
return e;
|
|
1454
|
+
}
|
|
1455
|
+
function deriveBFS(e) {
|
|
1456
|
+
const t = buildGraph();
|
|
1457
|
+
const n = [
|
|
1458
|
+
e
|
|
1459
|
+
];
|
|
1460
|
+
t[e].distance = 0;
|
|
1461
|
+
while(n.length){
|
|
1462
|
+
const e = n.pop();
|
|
1463
|
+
const s = Object.keys(r[e]);
|
|
1464
|
+
for(let r = s.length, o = 0; o < r; o++){
|
|
1465
|
+
const r = s[o];
|
|
1466
|
+
const l = t[r];
|
|
1467
|
+
if (-1 === l.distance) {
|
|
1468
|
+
l.distance = t[e].distance + 1;
|
|
1469
|
+
l.parent = e;
|
|
1470
|
+
n.unshift(r);
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
return t;
|
|
1475
|
+
}
|
|
1476
|
+
function link(e, t) {
|
|
1477
|
+
return function(n) {
|
|
1478
|
+
return t(e(n));
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
function wrapConversion(e, t) {
|
|
1482
|
+
const n = [
|
|
1483
|
+
t[e].parent,
|
|
1484
|
+
e
|
|
1485
|
+
];
|
|
1486
|
+
let s = r[t[e].parent][e];
|
|
1487
|
+
let o = t[e].parent;
|
|
1488
|
+
while(t[o].parent){
|
|
1489
|
+
n.unshift(t[o].parent);
|
|
1490
|
+
s = link(r[t[o].parent][o], s);
|
|
1491
|
+
o = t[o].parent;
|
|
1492
|
+
}
|
|
1493
|
+
s.conversion = n;
|
|
1494
|
+
return s;
|
|
1495
|
+
}
|
|
1496
|
+
e.exports = function(e) {
|
|
1497
|
+
const t = deriveBFS(e);
|
|
1498
|
+
const n = {};
|
|
1499
|
+
const r = Object.keys(t);
|
|
1500
|
+
for(let e = r.length, s = 0; s < e; s++){
|
|
1501
|
+
const e = r[s];
|
|
1502
|
+
const o = t[e];
|
|
1503
|
+
if (null !== o.parent) n[e] = wrapConversion(e, t);
|
|
1504
|
+
}
|
|
1505
|
+
return n;
|
|
1506
|
+
};
|
|
1507
|
+
},
|
|
1508
|
+
866: (e)=>{
|
|
1509
|
+
"use strict";
|
|
1510
|
+
e.exports = {
|
|
1511
|
+
aliceblue: [
|
|
1512
|
+
240,
|
|
1513
|
+
248,
|
|
1514
|
+
255
|
|
1515
|
+
],
|
|
1516
|
+
antiquewhite: [
|
|
1517
|
+
250,
|
|
1518
|
+
235,
|
|
1519
|
+
215
|
|
1520
|
+
],
|
|
1521
|
+
aqua: [
|
|
1522
|
+
0,
|
|
1523
|
+
255,
|
|
1524
|
+
255
|
|
1525
|
+
],
|
|
1526
|
+
aquamarine: [
|
|
1527
|
+
127,
|
|
1528
|
+
255,
|
|
1529
|
+
212
|
|
1530
|
+
],
|
|
1531
|
+
azure: [
|
|
1532
|
+
240,
|
|
1533
|
+
255,
|
|
1534
|
+
255
|
|
1535
|
+
],
|
|
1536
|
+
beige: [
|
|
1537
|
+
245,
|
|
1538
|
+
245,
|
|
1539
|
+
220
|
|
1540
|
+
],
|
|
1541
|
+
bisque: [
|
|
1542
|
+
255,
|
|
1543
|
+
228,
|
|
1544
|
+
196
|
|
1545
|
+
],
|
|
1546
|
+
black: [
|
|
1547
|
+
0,
|
|
1548
|
+
0,
|
|
1549
|
+
0
|
|
1550
|
+
],
|
|
1551
|
+
blanchedalmond: [
|
|
1552
|
+
255,
|
|
1553
|
+
235,
|
|
1554
|
+
205
|
|
1555
|
+
],
|
|
1556
|
+
blue: [
|
|
1557
|
+
0,
|
|
1558
|
+
0,
|
|
1559
|
+
255
|
|
1560
|
+
],
|
|
1561
|
+
blueviolet: [
|
|
1562
|
+
138,
|
|
1563
|
+
43,
|
|
1564
|
+
226
|
|
1565
|
+
],
|
|
1566
|
+
brown: [
|
|
1567
|
+
165,
|
|
1568
|
+
42,
|
|
1569
|
+
42
|
|
1570
|
+
],
|
|
1571
|
+
burlywood: [
|
|
1572
|
+
222,
|
|
1573
|
+
184,
|
|
1574
|
+
135
|
|
1575
|
+
],
|
|
1576
|
+
cadetblue: [
|
|
1577
|
+
95,
|
|
1578
|
+
158,
|
|
1579
|
+
160
|
|
1580
|
+
],
|
|
1581
|
+
chartreuse: [
|
|
1582
|
+
127,
|
|
1583
|
+
255,
|
|
1584
|
+
0
|
|
1585
|
+
],
|
|
1586
|
+
chocolate: [
|
|
1587
|
+
210,
|
|
1588
|
+
105,
|
|
1589
|
+
30
|
|
1590
|
+
],
|
|
1591
|
+
coral: [
|
|
1592
|
+
255,
|
|
1593
|
+
127,
|
|
1594
|
+
80
|
|
1595
|
+
],
|
|
1596
|
+
cornflowerblue: [
|
|
1597
|
+
100,
|
|
1598
|
+
149,
|
|
1599
|
+
237
|
|
1600
|
+
],
|
|
1601
|
+
cornsilk: [
|
|
1602
|
+
255,
|
|
1603
|
+
248,
|
|
1604
|
+
220
|
|
1605
|
+
],
|
|
1606
|
+
crimson: [
|
|
1607
|
+
220,
|
|
1608
|
+
20,
|
|
1609
|
+
60
|
|
1610
|
+
],
|
|
1611
|
+
cyan: [
|
|
1612
|
+
0,
|
|
1613
|
+
255,
|
|
1614
|
+
255
|
|
1615
|
+
],
|
|
1616
|
+
darkblue: [
|
|
1617
|
+
0,
|
|
1618
|
+
0,
|
|
1619
|
+
139
|
|
1620
|
+
],
|
|
1621
|
+
darkcyan: [
|
|
1622
|
+
0,
|
|
1623
|
+
139,
|
|
1624
|
+
139
|
|
1625
|
+
],
|
|
1626
|
+
darkgoldenrod: [
|
|
1627
|
+
184,
|
|
1628
|
+
134,
|
|
1629
|
+
11
|
|
1630
|
+
],
|
|
1631
|
+
darkgray: [
|
|
1632
|
+
169,
|
|
1633
|
+
169,
|
|
1634
|
+
169
|
|
1635
|
+
],
|
|
1636
|
+
darkgreen: [
|
|
1637
|
+
0,
|
|
1638
|
+
100,
|
|
1639
|
+
0
|
|
1640
|
+
],
|
|
1641
|
+
darkgrey: [
|
|
1642
|
+
169,
|
|
1643
|
+
169,
|
|
1644
|
+
169
|
|
1645
|
+
],
|
|
1646
|
+
darkkhaki: [
|
|
1647
|
+
189,
|
|
1648
|
+
183,
|
|
1649
|
+
107
|
|
1650
|
+
],
|
|
1651
|
+
darkmagenta: [
|
|
1652
|
+
139,
|
|
1653
|
+
0,
|
|
1654
|
+
139
|
|
1655
|
+
],
|
|
1656
|
+
darkolivegreen: [
|
|
1657
|
+
85,
|
|
1658
|
+
107,
|
|
1659
|
+
47
|
|
1660
|
+
],
|
|
1661
|
+
darkorange: [
|
|
1662
|
+
255,
|
|
1663
|
+
140,
|
|
1664
|
+
0
|
|
1665
|
+
],
|
|
1666
|
+
darkorchid: [
|
|
1667
|
+
153,
|
|
1668
|
+
50,
|
|
1669
|
+
204
|
|
1670
|
+
],
|
|
1671
|
+
darkred: [
|
|
1672
|
+
139,
|
|
1673
|
+
0,
|
|
1674
|
+
0
|
|
1675
|
+
],
|
|
1676
|
+
darksalmon: [
|
|
1677
|
+
233,
|
|
1678
|
+
150,
|
|
1679
|
+
122
|
|
1680
|
+
],
|
|
1681
|
+
darkseagreen: [
|
|
1682
|
+
143,
|
|
1683
|
+
188,
|
|
1684
|
+
143
|
|
1685
|
+
],
|
|
1686
|
+
darkslateblue: [
|
|
1687
|
+
72,
|
|
1688
|
+
61,
|
|
1689
|
+
139
|
|
1690
|
+
],
|
|
1691
|
+
darkslategray: [
|
|
1692
|
+
47,
|
|
1693
|
+
79,
|
|
1694
|
+
79
|
|
1695
|
+
],
|
|
1696
|
+
darkslategrey: [
|
|
1697
|
+
47,
|
|
1698
|
+
79,
|
|
1699
|
+
79
|
|
1700
|
+
],
|
|
1701
|
+
darkturquoise: [
|
|
1702
|
+
0,
|
|
1703
|
+
206,
|
|
1704
|
+
209
|
|
1705
|
+
],
|
|
1706
|
+
darkviolet: [
|
|
1707
|
+
148,
|
|
1708
|
+
0,
|
|
1709
|
+
211
|
|
1710
|
+
],
|
|
1711
|
+
deeppink: [
|
|
1712
|
+
255,
|
|
1713
|
+
20,
|
|
1714
|
+
147
|
|
1715
|
+
],
|
|
1716
|
+
deepskyblue: [
|
|
1717
|
+
0,
|
|
1718
|
+
191,
|
|
1719
|
+
255
|
|
1720
|
+
],
|
|
1721
|
+
dimgray: [
|
|
1722
|
+
105,
|
|
1723
|
+
105,
|
|
1724
|
+
105
|
|
1725
|
+
],
|
|
1726
|
+
dimgrey: [
|
|
1727
|
+
105,
|
|
1728
|
+
105,
|
|
1729
|
+
105
|
|
1730
|
+
],
|
|
1731
|
+
dodgerblue: [
|
|
1732
|
+
30,
|
|
1733
|
+
144,
|
|
1734
|
+
255
|
|
1735
|
+
],
|
|
1736
|
+
firebrick: [
|
|
1737
|
+
178,
|
|
1738
|
+
34,
|
|
1739
|
+
34
|
|
1740
|
+
],
|
|
1741
|
+
floralwhite: [
|
|
1742
|
+
255,
|
|
1743
|
+
250,
|
|
1744
|
+
240
|
|
1745
|
+
],
|
|
1746
|
+
forestgreen: [
|
|
1747
|
+
34,
|
|
1748
|
+
139,
|
|
1749
|
+
34
|
|
1750
|
+
],
|
|
1751
|
+
fuchsia: [
|
|
1752
|
+
255,
|
|
1753
|
+
0,
|
|
1754
|
+
255
|
|
1755
|
+
],
|
|
1756
|
+
gainsboro: [
|
|
1757
|
+
220,
|
|
1758
|
+
220,
|
|
1759
|
+
220
|
|
1760
|
+
],
|
|
1761
|
+
ghostwhite: [
|
|
1762
|
+
248,
|
|
1763
|
+
248,
|
|
1764
|
+
255
|
|
1765
|
+
],
|
|
1766
|
+
gold: [
|
|
1767
|
+
255,
|
|
1768
|
+
215,
|
|
1769
|
+
0
|
|
1770
|
+
],
|
|
1771
|
+
goldenrod: [
|
|
1772
|
+
218,
|
|
1773
|
+
165,
|
|
1774
|
+
32
|
|
1775
|
+
],
|
|
1776
|
+
gray: [
|
|
1777
|
+
128,
|
|
1778
|
+
128,
|
|
1779
|
+
128
|
|
1780
|
+
],
|
|
1781
|
+
green: [
|
|
1782
|
+
0,
|
|
1783
|
+
128,
|
|
1784
|
+
0
|
|
1785
|
+
],
|
|
1786
|
+
greenyellow: [
|
|
1787
|
+
173,
|
|
1788
|
+
255,
|
|
1789
|
+
47
|
|
1790
|
+
],
|
|
1791
|
+
grey: [
|
|
1792
|
+
128,
|
|
1793
|
+
128,
|
|
1794
|
+
128
|
|
1795
|
+
],
|
|
1796
|
+
honeydew: [
|
|
1797
|
+
240,
|
|
1798
|
+
255,
|
|
1799
|
+
240
|
|
1800
|
+
],
|
|
1801
|
+
hotpink: [
|
|
1802
|
+
255,
|
|
1803
|
+
105,
|
|
1804
|
+
180
|
|
1805
|
+
],
|
|
1806
|
+
indianred: [
|
|
1807
|
+
205,
|
|
1808
|
+
92,
|
|
1809
|
+
92
|
|
1810
|
+
],
|
|
1811
|
+
indigo: [
|
|
1812
|
+
75,
|
|
1813
|
+
0,
|
|
1814
|
+
130
|
|
1815
|
+
],
|
|
1816
|
+
ivory: [
|
|
1817
|
+
255,
|
|
1818
|
+
255,
|
|
1819
|
+
240
|
|
1820
|
+
],
|
|
1821
|
+
khaki: [
|
|
1822
|
+
240,
|
|
1823
|
+
230,
|
|
1824
|
+
140
|
|
1825
|
+
],
|
|
1826
|
+
lavender: [
|
|
1827
|
+
230,
|
|
1828
|
+
230,
|
|
1829
|
+
250
|
|
1830
|
+
],
|
|
1831
|
+
lavenderblush: [
|
|
1832
|
+
255,
|
|
1833
|
+
240,
|
|
1834
|
+
245
|
|
1835
|
+
],
|
|
1836
|
+
lawngreen: [
|
|
1837
|
+
124,
|
|
1838
|
+
252,
|
|
1839
|
+
0
|
|
1840
|
+
],
|
|
1841
|
+
lemonchiffon: [
|
|
1842
|
+
255,
|
|
1843
|
+
250,
|
|
1844
|
+
205
|
|
1845
|
+
],
|
|
1846
|
+
lightblue: [
|
|
1847
|
+
173,
|
|
1848
|
+
216,
|
|
1849
|
+
230
|
|
1850
|
+
],
|
|
1851
|
+
lightcoral: [
|
|
1852
|
+
240,
|
|
1853
|
+
128,
|
|
1854
|
+
128
|
|
1855
|
+
],
|
|
1856
|
+
lightcyan: [
|
|
1857
|
+
224,
|
|
1858
|
+
255,
|
|
1859
|
+
255
|
|
1860
|
+
],
|
|
1861
|
+
lightgoldenrodyellow: [
|
|
1862
|
+
250,
|
|
1863
|
+
250,
|
|
1864
|
+
210
|
|
1865
|
+
],
|
|
1866
|
+
lightgray: [
|
|
1867
|
+
211,
|
|
1868
|
+
211,
|
|
1869
|
+
211
|
|
1870
|
+
],
|
|
1871
|
+
lightgreen: [
|
|
1872
|
+
144,
|
|
1873
|
+
238,
|
|
1874
|
+
144
|
|
1875
|
+
],
|
|
1876
|
+
lightgrey: [
|
|
1877
|
+
211,
|
|
1878
|
+
211,
|
|
1879
|
+
211
|
|
1880
|
+
],
|
|
1881
|
+
lightpink: [
|
|
1882
|
+
255,
|
|
1883
|
+
182,
|
|
1884
|
+
193
|
|
1885
|
+
],
|
|
1886
|
+
lightsalmon: [
|
|
1887
|
+
255,
|
|
1888
|
+
160,
|
|
1889
|
+
122
|
|
1890
|
+
],
|
|
1891
|
+
lightseagreen: [
|
|
1892
|
+
32,
|
|
1893
|
+
178,
|
|
1894
|
+
170
|
|
1895
|
+
],
|
|
1896
|
+
lightskyblue: [
|
|
1897
|
+
135,
|
|
1898
|
+
206,
|
|
1899
|
+
250
|
|
1900
|
+
],
|
|
1901
|
+
lightslategray: [
|
|
1902
|
+
119,
|
|
1903
|
+
136,
|
|
1904
|
+
153
|
|
1905
|
+
],
|
|
1906
|
+
lightslategrey: [
|
|
1907
|
+
119,
|
|
1908
|
+
136,
|
|
1909
|
+
153
|
|
1910
|
+
],
|
|
1911
|
+
lightsteelblue: [
|
|
1912
|
+
176,
|
|
1913
|
+
196,
|
|
1914
|
+
222
|
|
1915
|
+
],
|
|
1916
|
+
lightyellow: [
|
|
1917
|
+
255,
|
|
1918
|
+
255,
|
|
1919
|
+
224
|
|
1920
|
+
],
|
|
1921
|
+
lime: [
|
|
1922
|
+
0,
|
|
1923
|
+
255,
|
|
1924
|
+
0
|
|
1925
|
+
],
|
|
1926
|
+
limegreen: [
|
|
1927
|
+
50,
|
|
1928
|
+
205,
|
|
1929
|
+
50
|
|
1930
|
+
],
|
|
1931
|
+
linen: [
|
|
1932
|
+
250,
|
|
1933
|
+
240,
|
|
1934
|
+
230
|
|
1935
|
+
],
|
|
1936
|
+
magenta: [
|
|
1937
|
+
255,
|
|
1938
|
+
0,
|
|
1939
|
+
255
|
|
1940
|
+
],
|
|
1941
|
+
maroon: [
|
|
1942
|
+
128,
|
|
1943
|
+
0,
|
|
1944
|
+
0
|
|
1945
|
+
],
|
|
1946
|
+
mediumaquamarine: [
|
|
1947
|
+
102,
|
|
1948
|
+
205,
|
|
1949
|
+
170
|
|
1950
|
+
],
|
|
1951
|
+
mediumblue: [
|
|
1952
|
+
0,
|
|
1953
|
+
0,
|
|
1954
|
+
205
|
|
1955
|
+
],
|
|
1956
|
+
mediumorchid: [
|
|
1957
|
+
186,
|
|
1958
|
+
85,
|
|
1959
|
+
211
|
|
1960
|
+
],
|
|
1961
|
+
mediumpurple: [
|
|
1962
|
+
147,
|
|
1963
|
+
112,
|
|
1964
|
+
219
|
|
1965
|
+
],
|
|
1966
|
+
mediumseagreen: [
|
|
1967
|
+
60,
|
|
1968
|
+
179,
|
|
1969
|
+
113
|
|
1970
|
+
],
|
|
1971
|
+
mediumslateblue: [
|
|
1972
|
+
123,
|
|
1973
|
+
104,
|
|
1974
|
+
238
|
|
1975
|
+
],
|
|
1976
|
+
mediumspringgreen: [
|
|
1977
|
+
0,
|
|
1978
|
+
250,
|
|
1979
|
+
154
|
|
1980
|
+
],
|
|
1981
|
+
mediumturquoise: [
|
|
1982
|
+
72,
|
|
1983
|
+
209,
|
|
1984
|
+
204
|
|
1985
|
+
],
|
|
1986
|
+
mediumvioletred: [
|
|
1987
|
+
199,
|
|
1988
|
+
21,
|
|
1989
|
+
133
|
|
1990
|
+
],
|
|
1991
|
+
midnightblue: [
|
|
1992
|
+
25,
|
|
1993
|
+
25,
|
|
1994
|
+
112
|
|
1995
|
+
],
|
|
1996
|
+
mintcream: [
|
|
1997
|
+
245,
|
|
1998
|
+
255,
|
|
1999
|
+
250
|
|
2000
|
+
],
|
|
2001
|
+
mistyrose: [
|
|
2002
|
+
255,
|
|
2003
|
+
228,
|
|
2004
|
+
225
|
|
2005
|
+
],
|
|
2006
|
+
moccasin: [
|
|
2007
|
+
255,
|
|
2008
|
+
228,
|
|
2009
|
+
181
|
|
2010
|
+
],
|
|
2011
|
+
navajowhite: [
|
|
2012
|
+
255,
|
|
2013
|
+
222,
|
|
2014
|
+
173
|
|
2015
|
+
],
|
|
2016
|
+
navy: [
|
|
2017
|
+
0,
|
|
2018
|
+
0,
|
|
2019
|
+
128
|
|
2020
|
+
],
|
|
2021
|
+
oldlace: [
|
|
2022
|
+
253,
|
|
2023
|
+
245,
|
|
2024
|
+
230
|
|
2025
|
+
],
|
|
2026
|
+
olive: [
|
|
2027
|
+
128,
|
|
2028
|
+
128,
|
|
2029
|
+
0
|
|
2030
|
+
],
|
|
2031
|
+
olivedrab: [
|
|
2032
|
+
107,
|
|
2033
|
+
142,
|
|
2034
|
+
35
|
|
2035
|
+
],
|
|
2036
|
+
orange: [
|
|
2037
|
+
255,
|
|
2038
|
+
165,
|
|
2039
|
+
0
|
|
2040
|
+
],
|
|
2041
|
+
orangered: [
|
|
2042
|
+
255,
|
|
2043
|
+
69,
|
|
2044
|
+
0
|
|
2045
|
+
],
|
|
2046
|
+
orchid: [
|
|
2047
|
+
218,
|
|
2048
|
+
112,
|
|
2049
|
+
214
|
|
2050
|
+
],
|
|
2051
|
+
palegoldenrod: [
|
|
2052
|
+
238,
|
|
2053
|
+
232,
|
|
2054
|
+
170
|
|
2055
|
+
],
|
|
2056
|
+
palegreen: [
|
|
2057
|
+
152,
|
|
2058
|
+
251,
|
|
2059
|
+
152
|
|
2060
|
+
],
|
|
2061
|
+
paleturquoise: [
|
|
2062
|
+
175,
|
|
2063
|
+
238,
|
|
2064
|
+
238
|
|
2065
|
+
],
|
|
2066
|
+
palevioletred: [
|
|
2067
|
+
219,
|
|
2068
|
+
112,
|
|
2069
|
+
147
|
|
2070
|
+
],
|
|
2071
|
+
papayawhip: [
|
|
2072
|
+
255,
|
|
2073
|
+
239,
|
|
2074
|
+
213
|
|
2075
|
+
],
|
|
2076
|
+
peachpuff: [
|
|
2077
|
+
255,
|
|
2078
|
+
218,
|
|
2079
|
+
185
|
|
2080
|
+
],
|
|
2081
|
+
peru: [
|
|
2082
|
+
205,
|
|
2083
|
+
133,
|
|
2084
|
+
63
|
|
2085
|
+
],
|
|
2086
|
+
pink: [
|
|
2087
|
+
255,
|
|
2088
|
+
192,
|
|
2089
|
+
203
|
|
2090
|
+
],
|
|
2091
|
+
plum: [
|
|
2092
|
+
221,
|
|
2093
|
+
160,
|
|
2094
|
+
221
|
|
2095
|
+
],
|
|
2096
|
+
powderblue: [
|
|
2097
|
+
176,
|
|
2098
|
+
224,
|
|
2099
|
+
230
|
|
2100
|
+
],
|
|
2101
|
+
purple: [
|
|
2102
|
+
128,
|
|
2103
|
+
0,
|
|
2104
|
+
128
|
|
2105
|
+
],
|
|
2106
|
+
rebeccapurple: [
|
|
2107
|
+
102,
|
|
2108
|
+
51,
|
|
2109
|
+
153
|
|
2110
|
+
],
|
|
2111
|
+
red: [
|
|
2112
|
+
255,
|
|
2113
|
+
0,
|
|
2114
|
+
0
|
|
2115
|
+
],
|
|
2116
|
+
rosybrown: [
|
|
2117
|
+
188,
|
|
2118
|
+
143,
|
|
2119
|
+
143
|
|
2120
|
+
],
|
|
2121
|
+
royalblue: [
|
|
2122
|
+
65,
|
|
2123
|
+
105,
|
|
2124
|
+
225
|
|
2125
|
+
],
|
|
2126
|
+
saddlebrown: [
|
|
2127
|
+
139,
|
|
2128
|
+
69,
|
|
2129
|
+
19
|
|
2130
|
+
],
|
|
2131
|
+
salmon: [
|
|
2132
|
+
250,
|
|
2133
|
+
128,
|
|
2134
|
+
114
|
|
2135
|
+
],
|
|
2136
|
+
sandybrown: [
|
|
2137
|
+
244,
|
|
2138
|
+
164,
|
|
2139
|
+
96
|
|
2140
|
+
],
|
|
2141
|
+
seagreen: [
|
|
2142
|
+
46,
|
|
2143
|
+
139,
|
|
2144
|
+
87
|
|
2145
|
+
],
|
|
2146
|
+
seashell: [
|
|
2147
|
+
255,
|
|
2148
|
+
245,
|
|
2149
|
+
238
|
|
2150
|
+
],
|
|
2151
|
+
sienna: [
|
|
2152
|
+
160,
|
|
2153
|
+
82,
|
|
2154
|
+
45
|
|
2155
|
+
],
|
|
2156
|
+
silver: [
|
|
2157
|
+
192,
|
|
2158
|
+
192,
|
|
2159
|
+
192
|
|
2160
|
+
],
|
|
2161
|
+
skyblue: [
|
|
2162
|
+
135,
|
|
2163
|
+
206,
|
|
2164
|
+
235
|
|
2165
|
+
],
|
|
2166
|
+
slateblue: [
|
|
2167
|
+
106,
|
|
2168
|
+
90,
|
|
2169
|
+
205
|
|
2170
|
+
],
|
|
2171
|
+
slategray: [
|
|
2172
|
+
112,
|
|
2173
|
+
128,
|
|
2174
|
+
144
|
|
2175
|
+
],
|
|
2176
|
+
slategrey: [
|
|
2177
|
+
112,
|
|
2178
|
+
128,
|
|
2179
|
+
144
|
|
2180
|
+
],
|
|
2181
|
+
snow: [
|
|
2182
|
+
255,
|
|
2183
|
+
250,
|
|
2184
|
+
250
|
|
2185
|
+
],
|
|
2186
|
+
springgreen: [
|
|
2187
|
+
0,
|
|
2188
|
+
255,
|
|
2189
|
+
127
|
|
2190
|
+
],
|
|
2191
|
+
steelblue: [
|
|
2192
|
+
70,
|
|
2193
|
+
130,
|
|
2194
|
+
180
|
|
2195
|
+
],
|
|
2196
|
+
tan: [
|
|
2197
|
+
210,
|
|
2198
|
+
180,
|
|
2199
|
+
140
|
|
2200
|
+
],
|
|
2201
|
+
teal: [
|
|
2202
|
+
0,
|
|
2203
|
+
128,
|
|
2204
|
+
128
|
|
2205
|
+
],
|
|
2206
|
+
thistle: [
|
|
2207
|
+
216,
|
|
2208
|
+
191,
|
|
2209
|
+
216
|
|
2210
|
+
],
|
|
2211
|
+
tomato: [
|
|
2212
|
+
255,
|
|
2213
|
+
99,
|
|
2214
|
+
71
|
|
2215
|
+
],
|
|
2216
|
+
turquoise: [
|
|
2217
|
+
64,
|
|
2218
|
+
224,
|
|
2219
|
+
208
|
|
2220
|
+
],
|
|
2221
|
+
violet: [
|
|
2222
|
+
238,
|
|
2223
|
+
130,
|
|
2224
|
+
238
|
|
2225
|
+
],
|
|
2226
|
+
wheat: [
|
|
2227
|
+
245,
|
|
2228
|
+
222,
|
|
2229
|
+
179
|
|
2230
|
+
],
|
|
2231
|
+
white: [
|
|
2232
|
+
255,
|
|
2233
|
+
255,
|
|
2234
|
+
255
|
|
2235
|
+
],
|
|
2236
|
+
whitesmoke: [
|
|
2237
|
+
245,
|
|
2238
|
+
245,
|
|
2239
|
+
245
|
|
2240
|
+
],
|
|
2241
|
+
yellow: [
|
|
2242
|
+
255,
|
|
2243
|
+
255,
|
|
2244
|
+
0
|
|
2245
|
+
],
|
|
2246
|
+
yellowgreen: [
|
|
2247
|
+
154,
|
|
2248
|
+
205,
|
|
2249
|
+
50
|
|
2250
|
+
]
|
|
2251
|
+
};
|
|
2252
|
+
},
|
|
2253
|
+
975: (e)=>{
|
|
2254
|
+
"use strict";
|
|
2255
|
+
e.exports = (e, t = process.argv)=>{
|
|
2256
|
+
const n = e.startsWith("-") ? "" : 1 === e.length ? "-" : "--";
|
|
2257
|
+
const r = t.indexOf(n + e);
|
|
2258
|
+
const s = t.indexOf("--");
|
|
2259
|
+
return -1 !== r && (-1 === s || r < s);
|
|
2260
|
+
};
|
|
2261
|
+
},
|
|
2262
|
+
242: (e, t, n)=>{
|
|
2263
|
+
"use strict";
|
|
2264
|
+
const r = n(37);
|
|
2265
|
+
const s = n(224);
|
|
2266
|
+
const o = n(975);
|
|
2267
|
+
const { env: l } = process;
|
|
2268
|
+
let c;
|
|
2269
|
+
if (o("no-color") || o("no-colors") || o("color=false") || o("color=never")) c = 0;
|
|
2270
|
+
else if (o("color") || o("colors") || o("color=true") || o("color=always")) c = 1;
|
|
2271
|
+
if ("FORCE_COLOR" in l) c = "true" === l.FORCE_COLOR ? 1 : "false" === l.FORCE_COLOR ? 0 : 0 === l.FORCE_COLOR.length ? 1 : Math.min(parseInt(l.FORCE_COLOR, 10), 3);
|
|
2272
|
+
function translateLevel(e) {
|
|
2273
|
+
if (0 === e) return false;
|
|
2274
|
+
return {
|
|
2275
|
+
level: e,
|
|
2276
|
+
hasBasic: true,
|
|
2277
|
+
has256: e >= 2,
|
|
2278
|
+
has16m: e >= 3
|
|
2279
|
+
};
|
|
2280
|
+
}
|
|
2281
|
+
function supportsColor(e, t) {
|
|
2282
|
+
if (0 === c) return 0;
|
|
2283
|
+
if (o("color=16m") || o("color=full") || o("color=truecolor")) return 3;
|
|
2284
|
+
if (o("color=256")) return 2;
|
|
2285
|
+
if (e && !t && void 0 === c) return 0;
|
|
2286
|
+
const n = c || 0;
|
|
2287
|
+
if ("dumb" === l.TERM) return n;
|
|
2288
|
+
if ("win32" === process.platform) {
|
|
2289
|
+
const e = r.release().split(".");
|
|
2290
|
+
if (Number(e[0]) >= 10 && Number(e[2]) >= 10586) return Number(e[2]) >= 14931 ? 3 : 2;
|
|
2291
|
+
return 1;
|
|
2292
|
+
}
|
|
2293
|
+
if ("CI" in l) {
|
|
2294
|
+
if ([
|
|
2295
|
+
"TRAVIS",
|
|
2296
|
+
"CIRCLECI",
|
|
2297
|
+
"APPVEYOR",
|
|
2298
|
+
"GITLAB_CI",
|
|
2299
|
+
"GITHUB_ACTIONS",
|
|
2300
|
+
"BUILDKITE"
|
|
2301
|
+
].some((e)=>e in l) || "codeship" === l.CI_NAME) return 1;
|
|
2302
|
+
return n;
|
|
2303
|
+
}
|
|
2304
|
+
if ("TEAMCITY_VERSION" in l) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION) ? 1 : 0;
|
|
2305
|
+
if ("truecolor" === l.COLORTERM) return 3;
|
|
2306
|
+
if ("TERM_PROGRAM" in l) {
|
|
2307
|
+
const e = parseInt((l.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
2308
|
+
switch(l.TERM_PROGRAM){
|
|
2309
|
+
case "iTerm.app":
|
|
2310
|
+
return e >= 3 ? 3 : 2;
|
|
2311
|
+
case "Apple_Terminal":
|
|
2312
|
+
return 2;
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
if (/-256(color)?$/i.test(l.TERM)) return 2;
|
|
2316
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)) return 1;
|
|
2317
|
+
if ("COLORTERM" in l) return 1;
|
|
2318
|
+
return n;
|
|
2319
|
+
}
|
|
2320
|
+
function getSupportLevel(e) {
|
|
2321
|
+
const t = supportsColor(e, e && e.isTTY);
|
|
2322
|
+
return translateLevel(t);
|
|
2323
|
+
}
|
|
2324
|
+
e.exports = {
|
|
2325
|
+
supportsColor: getSupportLevel,
|
|
2326
|
+
stdout: translateLevel(supportsColor(true, s.isatty(1))),
|
|
2327
|
+
stderr: translateLevel(supportsColor(true, s.isatty(2)))
|
|
2328
|
+
};
|
|
2329
|
+
},
|
|
2330
|
+
37: (e)=>{
|
|
2331
|
+
"use strict";
|
|
2332
|
+
e.exports = require("os");
|
|
2333
|
+
},
|
|
2334
|
+
224: (e)=>{
|
|
2335
|
+
"use strict";
|
|
2336
|
+
e.exports = require("tty");
|
|
2337
|
+
}
|
|
2338
|
+
};
|
|
2339
|
+
var t = {};
|
|
2340
|
+
function __nccwpck_require__(n) {
|
|
2341
|
+
var r = t[n];
|
|
2342
|
+
if (void 0 !== r) return r.exports;
|
|
2343
|
+
var s = t[n] = {
|
|
2344
|
+
id: n,
|
|
2345
|
+
loaded: false,
|
|
2346
|
+
exports: {}
|
|
2347
|
+
};
|
|
2348
|
+
var o = true;
|
|
2349
|
+
try {
|
|
2350
|
+
e[n](s, s.exports, __nccwpck_require__);
|
|
2351
|
+
o = false;
|
|
2352
|
+
} finally{
|
|
2353
|
+
if (o) delete t[n];
|
|
2354
|
+
}
|
|
2355
|
+
s.loaded = true;
|
|
2356
|
+
return s.exports;
|
|
2357
|
+
}
|
|
2358
|
+
(()=>{
|
|
2359
|
+
__nccwpck_require__.nmd = (e)=>{
|
|
2360
|
+
e.paths = [];
|
|
2361
|
+
if (!e.children) e.children = [];
|
|
2362
|
+
return e;
|
|
2363
|
+
};
|
|
2364
|
+
})();
|
|
2365
|
+
if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
|
|
2366
|
+
var n = __nccwpck_require__(584);
|
|
2367
|
+
module.exports = n;
|
|
2368
|
+
})();
|