Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@techor/log

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@techor/log - npm Package Compare versions

Comparing version 1.2.7 to 2.0.1

14

dist/index.js

@@ -1,12 +0,12 @@

var at=Object.create;var F=Object.defineProperty;var ut=Object.getOwnPropertyDescriptor;var ft=Object.getOwnPropertyNames;var gt=Object.getPrototypeOf,pt=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mt=(e,t)=>{for(var r in t)F(e,r,{get:t[r],enumerable:!0})},he=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ft(t))!pt.call(e,o)&&o!==r&&F(e,o,{get:()=>t[o],enumerable:!(n=ut(t,o))||n.enumerable});return e};var h=(e,t,r)=>(r=e!=null?at(gt(e)):{},he(t||!e||!e.__esModule?F(r,"default",{value:e,enumerable:!0}):r,e)),ht=e=>he(F({},"__esModule",{value:!0}),e);var be=v((Xt,de)=>{"use strict";de.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]}});var ee=v((Ht,ke)=>{var L=be(),ye={};for(let e of Object.keys(L))ye[L[e]]=e;var c={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"]}};ke.exports=c;for(let e of Object.keys(c)){if(!("channels"in c[e]))throw new Error("missing channels property: "+e);if(!("labels"in c[e]))throw new Error("missing channel labels property: "+e);if(c[e].labels.length!==c[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=c[e];delete c[e].channels,delete c[e].labels,Object.defineProperty(c[e],"channels",{value:t}),Object.defineProperty(c[e],"labels",{value:r})}c.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),s=Math.max(t,r,n),i=s-o,l,a;s===o?l=0:t===s?l=(r-n)/i:r===s?l=2+(n-t)/i:n===s&&(l=4+(t-r)/i),l=Math.min(l*60,360),l<0&&(l+=360);let u=(o+s)/2;return s===o?a=0:u<=.5?a=i/(s+o):a=i/(2-s-o),[l,a*100,u*100]};c.rgb.hsv=function(e){let t,r,n,o,s,i=e[0]/255,l=e[1]/255,a=e[2]/255,u=Math.max(i,l,a),p=u-Math.min(i,l,a),m=function(Z){return(u-Z)/6/p+1/2};return p===0?(o=0,s=0):(s=p/u,t=m(i),r=m(l),n=m(a),i===u?o=n-r:l===u?o=1/3+t-n:a===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,s*100,u*100]};c.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],o=c.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,s*100,n*100]};c.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n),s=(1-t-o)/(1-o)||0,i=(1-r-o)/(1-o)||0,l=(1-n-o)/(1-o)||0;return[s*100,i*100,l*100,o*100]};function bt(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}c.rgb.keyword=function(e){let t=ye[e];if(t)return t;let r=1/0,n;for(let o of Object.keys(L)){let s=L[o],i=bt(e,s);i<r&&(r=i,n=o)}return n};c.keyword.rgb=function(e){return L[e]};c.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let o=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,i=t*.0193+r*.1192+n*.9505;return[o*100,s*100,i*100]};c.rgb.lab=function(e){let t=c.rgb.xyz(e),r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let s=116*n-16,i=500*(r-n),l=200*(n-o);return[s,i,l]};c.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o,s,i;if(r===0)return i=n*255,[i,i,i];n<.5?o=n*(1+r):o=n+r-n*r;let l=2*n-o,a=[0,0,0];for(let u=0;u<3;u++)s=t+1/3*-(u-1),s<0&&s++,s>1&&s--,6*s<1?i=l+(o-l)*6*s:2*s<1?i=o:3*s<2?i=l+(o-l)*(2/3-s)*6:i=l,a[u]=i*255;return a};c.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=s<=1?s:2-s;let i=(n+r)/2,l=n===0?2*o/(s+o):2*r/(n+r);return[t,l*100,i*100]};c.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),i=255*n*(1-r),l=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,o){case 0:return[n,a,i];case 1:return[l,n,i];case 2:return[i,n,a];case 3:return[i,l,n];case 4:return[a,i,n];case 5:return[n,i,l]}};c.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01),s,i;i=(2-r)*n;let l=(2-r)*o;return s=r*o,s/=l<=1?l:2-l,s=s||0,i/=2,[t,s*100,i*100]};c.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o=r+n,s;o>1&&(r/=o,n/=o);let i=Math.floor(6*t),l=1-n;s=6*t-i,i&1&&(s=1-s);let a=r+s*(l-r),u,p,m;switch(i){default:case 6:case 0:u=l,p=a,m=r;break;case 1:u=a,p=l,m=r;break;case 2:u=r,p=l,m=a;break;case 3:u=r,p=a,m=l;break;case 4:u=a,p=r,m=l;break;case 5:u=l,p=r,m=a;break}return[u*255,p*255,m*255]};c.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100,s=1-Math.min(1,t*(1-o)+o),i=1-Math.min(1,r*(1-o)+o),l=1-Math.min(1,n*(1-o)+o);return[s*255,i*255,l*255]};c.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o,s,i;return o=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,i=t*.0557+r*-.204+n*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),[o*255,s*255,i*255]};c.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let o=116*r-16,s=500*(t-r),i=200*(r-n);return[o,s,i]};c.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],o,s,i;s=(t+16)/116,o=r/500+s,i=s-n/200;let l=s**3,a=o**3,u=i**3;return s=l>.008856?l:(s-16/116)/7.787,o=a>.008856?a:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o*=95.047,s*=100,i*=108.883,[o,s,i]};c.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],o;o=Math.atan2(n,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+n*n);return[t,i,o]};c.lch.lab=function(e){let t=e[0],r=e[1],o=e[2]/360*2*Math.PI,s=r*Math.cos(o),i=r*Math.sin(o);return[t,s,i]};c.rgb.ansi16=function(e,t=null){let[r,n,o]=e,s=t===null?c.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let i=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(i+=60),i};c.hsv.ansi16=function(e){return c.rgb.ansi16(c.hsv.rgb(e),e[2])};c.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};c.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,o=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,o,s]};c.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,n,o]};c.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};c.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(l=>l+l).join(""));let n=parseInt(r,16),o=n>>16&255,s=n>>8&255,i=n&255;return[o,s,i]};c.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),i=o-s,l,a;return i<1?l=s/(1-i):l=0,i<=0?a=0:o===t?a=(r-n)/i%6:o===r?a=2+(n-t)/i:a=4+(t-r)/i,a/=6,a%=1,[a*360,i*100,l*100]};c.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],n*100,o*100]};c.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],n*100,o*100]};c.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let o=[0,0,0],s=t%1*6,i=s%1,l=1-i,a=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return a=(1-r)*n,[(r*o[0]+a)*255,(r*o[1]+a)*255,(r*o[2]+a)*255]};c.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),o=0;return n>0&&(o=t/n),[e[0],o*100,n*100]};c.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],o*100,n*100]};c.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};c.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,o=n-t,s=0;return o<1&&(s=(n-o)/(1-o)),[e[0],o*100,s*100]};c.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};c.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};c.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};c.gray.hsl=function(e){return[0,0,e[0]]};c.gray.hsv=c.gray.hsl;c.gray.hwb=function(e){return[0,100,e[0]]};c.gray.cmyk=function(e){return[0,0,0,e[0]]};c.gray.lab=function(e){return[e[0],0,0]};c.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};c.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var we=v((Zt,ve)=>{var I=ee();function yt(){let e={},t=Object.keys(I);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function kt(e){let t=yt(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),o=Object.keys(I[n]);for(let s=o.length,i=0;i<s;i++){let l=o[i],a=t[l];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(l))}}return t}function vt(e,t){return function(r){return t(e(r))}}function wt(e,t){let r=[t[e].parent,e],n=I[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=vt(I[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}ve.exports=function(e){let t=kt(e),r={},n=Object.keys(t);for(let o=n.length,s=0;s<o;s++){let i=n[s];t[i].parent!==null&&(r[i]=wt(i,t))}return r}});var Oe=v((Qt,xe)=>{var te=ee(),xt=we(),$={},Ot=Object.keys(te);function $t(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Et(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let o=e(r);if(typeof o=="object")for(let s=o.length,i=0;i<s;i++)o[i]=Math.round(o[i]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}Ot.forEach(e=>{$[e]={},Object.defineProperty($[e],"channels",{value:te[e].channels}),Object.defineProperty($[e],"labels",{value:te[e].labels});let t=xt(e);Object.keys(t).forEach(n=>{let o=t[n];$[e][n]=Et(o),$[e][n].raw=$t(o)})});xe.exports=$});var Le=v((er,je)=>{"use strict";var $e=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,Ee=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},Ce=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},P=e=>e,Me=(e,t,r)=>[e,t,r],E=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},re,C=(e,t,r,n)=>{re===void 0&&(re=Oe());let o=n?10:0,s={};for(let[i,l]of Object.entries(re)){let a=i==="ansi16"?"ansi":i;i===t?s[a]=e(r,o):typeof l=="object"&&(s[a]=e(l[t],o))}return s};function Ct(){let e=new Map,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(let[r,n]of Object.entries(t)){for(let[o,s]of Object.entries(n))t[o]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[o]=t[o],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",E(t.color,"ansi",()=>C($e,"ansi16",P,!1)),E(t.color,"ansi256",()=>C(Ee,"ansi256",P,!1)),E(t.color,"ansi16m",()=>C(Ce,"rgb",Me,!1)),E(t.bgColor,"ansi",()=>C($e,"ansi16",P,!0)),E(t.bgColor,"ansi256",()=>C(Ee,"ansi256",P,!0)),E(t.bgColor,"ansi16m",()=>C(Ce,"rgb",Me,!0)),t}Object.defineProperty(je,"exports",{enumerable:!0,get:Ct})});var Be=v((tr,Re)=>{"use strict";Re.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var Ae=v((rr,Se)=>{"use strict";var Mt=require("os"),Ne=require("tty"),k=Be(),{env:d}=process,x;k("no-color")||k("no-colors")||k("color=false")||k("color=never")?x=0:(k("color")||k("colors")||k("color=true")||k("color=always"))&&(x=1);"FORCE_COLOR"in d&&(d.FORCE_COLOR==="true"?x=1:d.FORCE_COLOR==="false"?x=0:x=d.FORCE_COLOR.length===0?1:Math.min(parseInt(d.FORCE_COLOR,10),3));function ne(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function oe(e,t){if(x===0)return 0;if(k("color=16m")||k("color=full")||k("color=truecolor"))return 3;if(k("color=256"))return 2;if(e&&!t&&x===void 0)return 0;let r=x||0;if(d.TERM==="dumb")return r;if(process.platform==="win32"){let n=Mt.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in d)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in d)||d.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in d)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(d.TEAMCITY_VERSION)?1:0;if(d.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in d){let n=parseInt((d.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(d.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(d.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(d.TERM)||"COLORTERM"in d?1:r}function jt(e){let t=oe(e,e&&e.isTTY);return ne(t)}Se.exports={supportsColor:jt,stdout:ne(oe(!0,Ne.isatty(1))),stderr:ne(oe(!0,Ne.isatty(2)))}});var Fe=v((nr,Te)=>{"use strict";var Lt=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let o=t.length,s=0,i="";do i+=e.substr(s,n-s)+t+r,s=n+o,n=e.indexOf(t,s);while(n!==-1);return i+=e.substr(s),i},Rt=(e,t,r,n)=>{let o=0,s="";do{let i=e[n-1]==="\r";s+=e.substr(o,(i?n-1:n)-o)+t+(i?`\r
var gt=Object.create;var F=Object.defineProperty;var pt=Object.getOwnPropertyDescriptor;var mt=Object.getOwnPropertyNames;var ht=Object.getPrototypeOf,dt=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bt=(e,t)=>{for(var r in t)F(e,r,{get:t[r],enumerable:!0})},de=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mt(t))!dt.call(e,o)&&o!==r&&F(e,o,{get:()=>t[o],enumerable:!(n=pt(t,o))||n.enumerable});return e};var h=(e,t,r)=>(r=e!=null?gt(ht(e)):{},de(t||!e||!e.__esModule?F(r,"default",{value:e,enumerable:!0}):r,e)),yt=e=>de(F({},"__esModule",{value:!0}),e);var ye=v((Ht,be)=>{"use strict";be.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]}});var te=v((Zt,ve)=>{var L=ye(),ke={};for(let e of Object.keys(L))ke[L[e]]=e;var c={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"]}};ve.exports=c;for(let e of Object.keys(c)){if(!("channels"in c[e]))throw new Error("missing channels property: "+e);if(!("labels"in c[e]))throw new Error("missing channel labels property: "+e);if(c[e].labels.length!==c[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=c[e];delete c[e].channels,delete c[e].labels,Object.defineProperty(c[e],"channels",{value:t}),Object.defineProperty(c[e],"labels",{value:r})}c.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(t,r,n),s=Math.max(t,r,n),i=s-o,l,a;s===o?l=0:t===s?l=(r-n)/i:r===s?l=2+(n-t)/i:n===s&&(l=4+(t-r)/i),l=Math.min(l*60,360),l<0&&(l+=360);let u=(o+s)/2;return s===o?a=0:u<=.5?a=i/(s+o):a=i/(2-s-o),[l,a*100,u*100]};c.rgb.hsv=function(e){let t,r,n,o,s,i=e[0]/255,l=e[1]/255,a=e[2]/255,u=Math.max(i,l,a),p=u-Math.min(i,l,a),m=function(Q){return(u-Q)/6/p+1/2};return p===0?(o=0,s=0):(s=p/u,t=m(i),r=m(l),n=m(a),i===u?o=n-r:l===u?o=1/3+t-n:a===u&&(o=2/3+r-t),o<0?o+=1:o>1&&(o-=1)),[o*360,s*100,u*100]};c.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],o=c.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[o,s*100,n*100]};c.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.min(1-t,1-r,1-n),s=(1-t-o)/(1-o)||0,i=(1-r-o)/(1-o)||0,l=(1-n-o)/(1-o)||0;return[s*100,i*100,l*100,o*100]};function vt(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}c.rgb.keyword=function(e){let t=ke[e];if(t)return t;let r=1/0,n;for(let o of Object.keys(L)){let s=L[o],i=vt(e,s);i<r&&(r=i,n=o)}return n};c.keyword.rgb=function(e){return L[e]};c.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let o=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,i=t*.0193+r*.1192+n*.9505;return[o*100,s*100,i*100]};c.rgb.lab=function(e){let t=c.rgb.xyz(e),r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let s=116*n-16,i=500*(r-n),l=200*(n-o);return[s,i,l]};c.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o,s,i;if(r===0)return i=n*255,[i,i,i];n<.5?o=n*(1+r):o=n+r-n*r;let l=2*n-o,a=[0,0,0];for(let u=0;u<3;u++)s=t+1/3*-(u-1),s<0&&s++,s>1&&s--,6*s<1?i=l+(o-l)*6*s:2*s<1?i=o:3*s<2?i=l+(o-l)*(2/3-s)*6:i=l,a[u]=i*255;return a};c.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,o*=s<=1?s:2-s;let i=(n+r)/2,l=n===0?2*o/(s+o):2*r/(n+r);return[t,l*100,i*100]};c.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,o=Math.floor(t)%6,s=t-Math.floor(t),i=255*n*(1-r),l=255*n*(1-r*s),a=255*n*(1-r*(1-s));switch(n*=255,o){case 0:return[n,a,i];case 1:return[l,n,i];case 2:return[i,n,a];case 3:return[i,l,n];case 4:return[a,i,n];case 5:return[n,i,l]}};c.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,o=Math.max(n,.01),s,i;i=(2-r)*n;let l=(2-r)*o;return s=r*o,s/=l<=1?l:2-l,s=s||0,i/=2,[t,s*100,i*100]};c.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,o=r+n,s;o>1&&(r/=o,n/=o);let i=Math.floor(6*t),l=1-n;s=6*t-i,i&1&&(s=1-s);let a=r+s*(l-r),u,p,m;switch(i){default:case 6:case 0:u=l,p=a,m=r;break;case 1:u=a,p=l,m=r;break;case 2:u=r,p=l,m=a;break;case 3:u=r,p=a,m=l;break;case 4:u=a,p=r,m=l;break;case 5:u=l,p=r,m=a;break}return[u*255,p*255,m*255]};c.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o=e[3]/100,s=1-Math.min(1,t*(1-o)+o),i=1-Math.min(1,r*(1-o)+o),l=1-Math.min(1,n*(1-o)+o);return[s*255,i*255,l*255]};c.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,o,s,i;return o=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,i=t*.0557+r*-.204+n*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),[o*255,s*255,i*255]};c.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let o=116*r-16,s=500*(t-r),i=200*(r-n);return[o,s,i]};c.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],o,s,i;s=(t+16)/116,o=r/500+s,i=s-n/200;let l=s**3,a=o**3,u=i**3;return s=l>.008856?l:(s-16/116)/7.787,o=a>.008856?a:(o-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o*=95.047,s*=100,i*=108.883,[o,s,i]};c.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],o;o=Math.atan2(n,r)*360/2/Math.PI,o<0&&(o+=360);let i=Math.sqrt(r*r+n*n);return[t,i,o]};c.lch.lab=function(e){let t=e[0],r=e[1],o=e[2]/360*2*Math.PI,s=r*Math.cos(o),i=r*Math.sin(o);return[t,s,i]};c.rgb.ansi16=function(e,t=null){let[r,n,o]=e,s=t===null?c.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let i=30+(Math.round(o/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(i+=60),i};c.hsv.ansi16=function(e){return c.rgb.ansi16(c.hsv.rgb(e),e[2])};c.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};c.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,o=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,o,s]};c.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[r,n,o]};c.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};c.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(l=>l+l).join(""));let n=parseInt(r,16),o=n>>16&255,s=n>>8&255,i=n&255;return[o,s,i]};c.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,o=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),i=o-s,l,a;return i<1?l=s/(1-i):l=0,i<=0?a=0:o===t?a=(r-n)/i%6:o===r?a=2+(n-t)/i:a=4+(t-r)/i,a/=6,a%=1,[a*360,i*100,l*100]};c.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),o=0;return n<1&&(o=(r-.5*n)/(1-n)),[e[0],n*100,o*100]};c.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,o=0;return n<1&&(o=(r-n)/(1-n)),[e[0],n*100,o*100]};c.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let o=[0,0,0],s=t%1*6,i=s%1,l=1-i,a=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return a=(1-r)*n,[(r*o[0]+a)*255,(r*o[1]+a)*255,(r*o[2]+a)*255]};c.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),o=0;return n>0&&(o=t/n),[e[0],o*100,n*100]};c.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],o*100,n*100]};c.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};c.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,o=n-t,s=0;return o<1&&(s=(n-o)/(1-o)),[e[0],o*100,s*100]};c.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};c.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};c.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};c.gray.hsl=function(e){return[0,0,e[0]]};c.gray.hsv=c.gray.hsl;c.gray.hwb=function(e){return[0,100,e[0]]};c.gray.cmyk=function(e){return[0,0,0,e[0]]};c.gray.lab=function(e){return[e[0],0,0]};c.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};c.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var xe=v((Qt,we)=>{var I=te();function wt(){let e={},t=Object.keys(I);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function xt(e){let t=wt(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),o=Object.keys(I[n]);for(let s=o.length,i=0;i<s;i++){let l=o[i],a=t[l];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(l))}}return t}function Ot(e,t){return function(r){return t(e(r))}}function $t(e,t){let r=[t[e].parent,e],n=I[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)r.unshift(t[o].parent),n=Ot(I[t[o].parent][o],n),o=t[o].parent;return n.conversion=r,n}we.exports=function(e){let t=xt(e),r={},n=Object.keys(t);for(let o=n.length,s=0;s<o;s++){let i=n[s];t[i].parent!==null&&(r[i]=$t(i,t))}return r}});var $e=v((er,Oe)=>{var re=te(),Et=xe(),$={},Ct=Object.keys(re);function Mt(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function jt(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let o=e(r);if(typeof o=="object")for(let s=o.length,i=0;i<s;i++)o[i]=Math.round(o[i]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}Ct.forEach(e=>{$[e]={},Object.defineProperty($[e],"channels",{value:re[e].channels}),Object.defineProperty($[e],"labels",{value:re[e].labels});let t=Et(e);Object.keys(t).forEach(n=>{let o=t[n];$[e][n]=jt(o),$[e][n].raw=Mt(o)})});Oe.exports=$});var Re=v((tr,Le)=>{"use strict";var Ee=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,Ce=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},Me=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},P=e=>e,je=(e,t,r)=>[e,t,r],E=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},ne,C=(e,t,r,n)=>{ne===void 0&&(ne=$e());let o=n?10:0,s={};for(let[i,l]of Object.entries(ne)){let a=i==="ansi16"?"ansi":i;i===t?s[a]=e(r,o):typeof l=="object"&&(s[a]=e(l[t],o))}return s};function Lt(){let e=new Map,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(let[r,n]of Object.entries(t)){for(let[o,s]of Object.entries(n))t[o]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[o]=t[o],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",E(t.color,"ansi",()=>C(Ee,"ansi16",P,!1)),E(t.color,"ansi256",()=>C(Ce,"ansi256",P,!1)),E(t.color,"ansi16m",()=>C(Me,"rgb",je,!1)),E(t.bgColor,"ansi",()=>C(Ee,"ansi16",P,!0)),E(t.bgColor,"ansi256",()=>C(Ce,"ansi256",P,!0)),E(t.bgColor,"ansi16m",()=>C(Me,"rgb",je,!0)),t}Object.defineProperty(Le,"exports",{enumerable:!0,get:Lt})});var Ne=v((rr,Be)=>{"use strict";Be.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return n!==-1&&(o===-1||n<o)}});var Te=v((nr,Ae)=>{"use strict";var Rt=require("os"),Se=require("tty"),k=Ne(),{env:d}=process,x;k("no-color")||k("no-colors")||k("color=false")||k("color=never")?x=0:(k("color")||k("colors")||k("color=true")||k("color=always"))&&(x=1);"FORCE_COLOR"in d&&(d.FORCE_COLOR==="true"?x=1:d.FORCE_COLOR==="false"?x=0:x=d.FORCE_COLOR.length===0?1:Math.min(parseInt(d.FORCE_COLOR,10),3));function oe(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function se(e,t){if(x===0)return 0;if(k("color=16m")||k("color=full")||k("color=truecolor"))return 3;if(k("color=256"))return 2;if(e&&!t&&x===void 0)return 0;let r=x||0;if(d.TERM==="dumb")return r;if(process.platform==="win32"){let n=Rt.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in d)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in d)||d.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in d)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(d.TEAMCITY_VERSION)?1:0;if(d.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in d){let n=parseInt((d.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(d.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(d.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(d.TERM)||"COLORTERM"in d?1:r}function Bt(e){let t=se(e,e&&e.isTTY);return oe(t)}Ae.exports={supportsColor:Bt,stdout:oe(se(!0,Se.isatty(1))),stderr:oe(se(!0,Se.isatty(2)))}});var _e=v((or,Fe)=>{"use strict";var Nt=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let o=t.length,s=0,i="";do i+=e.substr(s,n-s)+t+r,s=n+o,n=e.indexOf(t,s);while(n!==-1);return i+=e.substr(s),i},St=(e,t,r,n)=>{let o=0,s="";do{let i=e[n-1]==="\r";s+=e.substr(o,(i?n-1:n)-o)+t+(i?`\r
`:`
`)+r,o=n+1,n=e.indexOf(`
`,o)}while(n!==-1);return s+=e.substr(o),s};Te.exports={stringReplaceAll:Lt,stringEncaseCRLFWithFirstIndex:Rt}});var Ge=v((or,qe)=>{"use strict";var Bt=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,_e=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Nt=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,St=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,At=new Map([["n",`
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Pe(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):At.get(e)||e}function Tt(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),o;for(let s of n){let i=Number(s);if(!Number.isNaN(i))r.push(i);else if(o=s.match(Nt))r.push(o[2].replace(St,(l,a,u)=>a?Pe(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function Ft(e){_e.lastIndex=0;let t=[],r;for(;(r=_e.exec(e))!==null;){let n=r[1];if(r[2]){let o=Tt(n,r[2]);t.push([n].concat(o))}else t.push([n])}return t}function Ie(e,t){let r={};for(let o of t)for(let s of o.styles)r[s[0]]=o.inverse?null:s.slice(1);let n=e;for(let[o,s]of Object.entries(r))if(Array.isArray(s)){if(!(o in n))throw new Error(`Unknown Chalk style: ${o}`);n=s.length>0?n[o](...s):n[o]}return n}qe.exports=(e,t)=>{let r=[],n=[],o=[];if(t.replace(Bt,(s,i,l,a,u,p)=>{if(i)o.push(Pe(i));else if(a){let m=o.join("");o=[],n.push(r.length===0?m:Ie(e,r)(m)),r.push({inverse:l,styles:Ft(a)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Ie(e,r)(o.join(""))),o=[],r.pop()}else o.push(p)}),n.push(o.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var b=v((sr,Ue)=>{"use strict";var R=Le(),{stdout:ie,stderr:le}=Ae(),{stringReplaceAll:_t,stringEncaseCRLFWithFirstIndex:It}=Fe(),ze=["ansi","ansi","ansi256","ansi16m"],M=Object.create(null),Pt=(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");let r=ie?ie.level:0;e.level=t.level===void 0?r:t.level},ce=class{constructor(t){return We(t)}},We=e=>{let t={};return Pt(t,e),t.template=(...r)=>zt(t.template,...r),Object.setPrototypeOf(t,q.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=ce,t.template};function q(e){return We(e)}for(let[e,t]of Object.entries(R))M[e]={get(){let r=G(this,ae(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};M.visible={get(){let e=G(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ye=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Ye)M[e]={get(){let{level:t}=this;return function(...r){let n=ae(R.color[ze[t]][e](...r),R.color.close,this._styler);return G(this,n,this._isEmpty)}}};for(let e of Ye){let t="bg"+e[0].toUpperCase()+e.slice(1);M[t]={get(){let{level:r}=this;return function(...n){let o=ae(R.bgColor[ze[r]][e](...n),R.bgColor.close,this._styler);return G(this,o,this._isEmpty)}}}}var qt=Object.defineProperties(()=>{},{...M,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),ae=(e,t,r)=>{let n,o;return r===void 0?(n=e,o=t):(n=r.openAll+e,o=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:o,parent:r}},G=(e,t,r)=>{let n=(...o)=>Gt(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,qt),n._generator=e,n._styler=t,n._isEmpty=r,n},Gt=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:o}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=_t(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
`);return s!==-1&&(t=It(t,o,n,s)),n+t+o},se,zt=(e,...t)=>{let[r]=t;if(!Array.isArray(r))return t.join(" ");let n=t.slice(1),o=[r.raw[0]];for(let s=1;s<r.length;s++)o.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return se===void 0&&(se=Ge()),se(e,o.join(""))};Object.defineProperties(q.prototype,M);var z=q();z.supportsColor=ie;z.stderr=q({level:le?le.level:0});z.stderr.supportsColor=le;Ue.exports=z});var st=v((Pr,pe)=>{"use strict";function Wt(e){var t=void 0;typeof e=="string"?t=[e]:t=e.raw;for(var r="",n=0;n<t.length;n++)r+=t[n].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),n<(arguments.length<=1?0:arguments.length-1)&&(r+=arguments.length<=n+1?void 0:arguments[n+1]);var o=r.split(`
`,o)}while(n!==-1);return s+=e.substr(o),s};Fe.exports={stringReplaceAll:Nt,stringEncaseCRLFWithFirstIndex:St}});var ze=v((sr,Ge)=>{"use strict";var At=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ie=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Tt=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ft=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,_t=new Map([["n",`
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function qe(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):_t.get(e)||e}function It(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),o;for(let s of n){let i=Number(s);if(!Number.isNaN(i))r.push(i);else if(o=s.match(Tt))r.push(o[2].replace(Ft,(l,a,u)=>a?qe(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function Pt(e){Ie.lastIndex=0;let t=[],r;for(;(r=Ie.exec(e))!==null;){let n=r[1];if(r[2]){let o=It(n,r[2]);t.push([n].concat(o))}else t.push([n])}return t}function Pe(e,t){let r={};for(let o of t)for(let s of o.styles)r[s[0]]=o.inverse?null:s.slice(1);let n=e;for(let[o,s]of Object.entries(r))if(Array.isArray(s)){if(!(o in n))throw new Error(`Unknown Chalk style: ${o}`);n=s.length>0?n[o](...s):n[o]}return n}Ge.exports=(e,t)=>{let r=[],n=[],o=[];if(t.replace(At,(s,i,l,a,u,p)=>{if(i)o.push(qe(i));else if(a){let m=o.join("");o=[],n.push(r.length===0?m:Pe(e,r)(m)),r.push({inverse:l,styles:Pt(a)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Pe(e,r)(o.join(""))),o=[],r.pop()}else o.push(p)}),n.push(o.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var b=v((ir,De)=>{"use strict";var R=Re(),{stdout:le,stderr:ce}=Te(),{stringReplaceAll:qt,stringEncaseCRLFWithFirstIndex:Gt}=_e(),{isArray:q}=Array,Ye=["ansi","ansi","ansi256","ansi16m"],M=Object.create(null),zt=(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");let r=le?le.level:0;e.level=t.level===void 0?r:t.level},ae=class{constructor(t){return Ue(t)}},Ue=e=>{let t={};return zt(t,e),t.template=(...r)=>Ke(t.template,...r),Object.setPrototypeOf(t,G.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=ae,t.template};function G(e){return Ue(e)}for(let[e,t]of Object.entries(R))M[e]={get(){let r=z(this,ue(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};M.visible={get(){let e=z(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ve=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Ve)M[e]={get(){let{level:t}=this;return function(...r){let n=ue(R.color[Ye[t]][e](...r),R.color.close,this._styler);return z(this,n,this._isEmpty)}}};for(let e of Ve){let t="bg"+e[0].toUpperCase()+e.slice(1);M[t]={get(){let{level:r}=this;return function(...n){let o=ue(R.bgColor[Ye[r]][e](...n),R.bgColor.close,this._styler);return z(this,o,this._isEmpty)}}}}var Wt=Object.defineProperties(()=>{},{...M,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),ue=(e,t,r)=>{let n,o;return r===void 0?(n=e,o=t):(n=r.openAll+e,o=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:o,parent:r}},z=(e,t,r)=>{let n=(...o)=>q(o[0])&&q(o[0].raw)?We(n,Ke(n,...o)):We(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,Wt),n._generator=e,n._styler=t,n._isEmpty=r,n},We=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:o}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=qt(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
`);return s!==-1&&(t=Gt(t,o,n,s)),n+t+o},ie,Ke=(e,...t)=>{let[r]=t;if(!q(r)||!q(r.raw))return t.join(" ");let n=t.slice(1),o=[r.raw[0]];for(let s=1;s<r.length;s++)o.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return ie===void 0&&(ie=ze()),ie(e,o.join(""))};Object.defineProperties(G.prototype,M);var W=G();W.supportsColor=le;W.stderr=G({level:ce?ce.level:0});W.stderr.supportsColor=ce;De.exports=W});var ct=v((qr,me)=>{"use strict";function Yt(e){var t=void 0;typeof e=="string"?t=[e]:t=e.raw;for(var r="",n=0;n<t.length;n++)r+=t[n].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),n<(arguments.length<=1?0:arguments.length-1)&&(r+=arguments.length<=n+1?void 0:arguments[n+1]);var o=r.split(`
`),s=null;return o.forEach(function(i){var l=i.match(/^(\s+)\S+/);if(l){var a=l[1].length;s?s=Math.min(s,a):s=a}}),s!==null&&(r=o.map(function(i){return i[0]===" "?i.slice(s):i}).join(`
`)),r=r.trim(),r.replace(/\\n/g,`
`)}typeof pe<"u"&&(pe.exports=Wt)});var Ut={};mt(Ut,{a:()=>B,add:()=>B,chalk:()=>ct.default,conflict:()=>Y,d:()=>j,default:()=>Yt,del:()=>j,e:()=>N,error:()=>N,fail:()=>X,i:()=>T,info:()=>T,invalid:()=>A,o:()=>S,ok:()=>U,paint:()=>y,pass:()=>D,success:()=>V,tree:()=>J,valid:()=>S,warn:()=>K,x:()=>A});module.exports=ht(Ut);var w=(e,t)=>{if(!e)throw new Error(t)};var dt=e=>{let t={joined:!0,spacerNoNeighbour:" ",spacerNeighbour:"\u2502 ",keyNoNeighbour:"\u2514\u2500 ",keyNeighbour:"\u251C\u2500 ",separator:": ",renderFn:r=>["boolean","string","number"].includes(typeof r)?r:void 0,sortFn:null,breakCircularWith:" (circular ref.)",...e};return w(Object.keys(t).length===9,"Unexpected Option(s) provided"),w(typeof t.joined=="boolean",'Option "joined" has invalid format'),w(typeof t.spacerNoNeighbour=="string",'Option "spacerNoNeighbour" has invalid format'),w(typeof t.spacerNeighbour=="string",'Option "spacerNeighbour" has invalid format'),w(typeof t.keyNoNeighbour=="string",'Option "keyNoNeighbour" has invalid format'),w(typeof t.keyNeighbour=="string",'Option "keyNeighbour" has invalid format'),w(typeof t.separator=="string",'Option "separator" has invalid format'),w(typeof t.renderFn=="function",'Option "renderFn" has invalid format'),w(typeof t.sortFn=="function"||t.sortFn===null,'Option "sortFn" has invalid format'),w(typeof t.breakCircularWith=="string"||t.breakCircularWith===null,'Option "breakCircularWith" has invalid format'),t},_=(e,t={})=>{let r=dt(t),n=[],o=r.renderFn(e);o!==void 0&&n.push(String(o));let s=u=>r.sortFn===null?u.reverse():u.sort((p,m)=>r.sortFn(m,p)),i=[],l=s(Object.keys(e)).map(u=>[u]),a=[e];for(;l.length!==0;){let u=l.pop(),p=a[u.length-1][u[u.length-1]],m=r.breakCircularWith!==null&&a.includes(p);i[u.length-1]=l.length!==0&&l[l.length-1].length===u.length;let Z=r.renderFn(p);n.push([i.slice(0,u.length-1).map(Q=>Q?r.spacerNeighbour:r.spacerNoNeighbour).join(""),i[u.length-1]?r.keyNeighbour:r.keyNoNeighbour,u[u.length-1],Z===void 0?"":`${r.separator}${p}`,m?r.breakCircularWith:""].join("")),p instanceof Object&&!Array.isArray(p)&&!m&&(l.push(...s(Object.keys(p)).map(Q=>u.concat(Q))),a[u.length]=p)}return r.joined===!0?n.join(`
`):n};var Ve=h(b());var W=h(b());var g=h(b());function y(e){return e.split(" ").map(t=>t.replace(/^(\d*\.?\d*)$/g,`${g.default.blue("$1")}`).replace(/^(\d*\.?\d*)(YB|ZB|EB|PB|TB|GB|MB|KB|B|mb|kb|kB|bit|zs|as|fs|ps|ns|µs|ms|s|m|h|d|m|y)$/g,`${g.default.cyan("$1")}${g.default.magenta("$2")}`).replace(/^((?:[0-1]?[0-9]|[2][0-3]):[0-5][0-9]:[0-5][0-9] (?:AM|PM)?)$/g,`${g.default.dim("$1")}`).replace(/^\[(.*?)\]$/g,`${g.default.dim("[")}${g.default.magenta("$1")}${g.default.dim("]")}`).replace(/^`(.*?)`$/g,`${g.default.dim("`")}$1${g.default.dim("`")}`).replace(/^\((.*?)\)$/g,`${g.default.dim("(")}$1${g.default.dim(")")}`).replace(/^<(.*?)>$/g,`${g.default.dim("<")}${g.default.gray("$1")}${g.default.dim(">")}`).replace(/->/g,g.default.dim("\u2192")).replace(/<-/g,g.default.dim("\u2190")).replace(/^\$t$/g,`${g.default.dim(new Date().toLocaleTimeString())}`).replace(/^\*\*(.*?)\*\*$/g,`${g.default.bold.white("$1")}`).replace(/^~~(.*?)~~$/g,`${g.default.strikethrough("$1")}`).replace(/^__(.*?)__$/g,`${g.default.underline("$1")}`).replace(/^\.\.(.*?)\.\.$/g,`${g.default.dim("$1")}`).replace(/^!!(.*?)!!$/g,`${g.default.yellow("$1")}`).replace(/^\*(.*?)\*$/g,`${g.default.italic("$1")}`).replace(/^_(.*?)_$/g,`${g.default.italic("$1")}`).replace(/^\+(.*?)\+$/g,`${g.default.green("$1")}`).replace(/^-(.*?)-$/g,`${g.default.red("$1")}`)).join(" ")}function f(e,t){let r="";if(Array.isArray(e))for(let n=0;n<e.length;n++)r+=ue(e[n])+ue(t[n]);else r=[e,...t].map(n=>ue(n)).join(" ");return y(r)}var ue=e=>e?Array.isArray(e)?e.map(t=>{switch(typeof t){case"string":return`'${W.default.yellow(t)}'`;case"number":case"boolean":return W.default.blue(t);default:return t}}).join(W.default.gray(", ")):e:"";var B=(e,...t)=>{let r=Ve.default.green("+")+" "+f(e,t);return console.log(r),r};var Ke=h(b());var N=(e,...t)=>{let r=Ke.default.bgRed.bold.white(" \u{1D5EB} ERROR ")+" "+f(e,t);return console.log(r),r};var fe=h(b());var Y=(e,...t)=>{let r=fe.default.bgYellow.bold.white(" \u26A0\uFE0F CONFLICT ")+" "+fe.default.yellow(f(e,t));return console.log(r),r};var De=h(b());var U=(e,...t)=>{let r=De.default.green("\u2713 ")+f(e,t);return console.log(r),r};var Je=h(b());var j=(e,...t)=>{let r=Je.default.red("-")+" "+f(e,t);return console.log(r),r};var Xe=h(b());var S=(e,...t)=>{let r=Xe.default.green("\u25CB ")+f(e,t);return console.log(r),r};var He=h(b());var A=(e,...t)=>{let r=He.default.red("\u2717 ")+f(e,t);return console.log(r),r};var Ze=h(b());var T=(e,...t)=>{let r=Ze.default.cyan("\u{1D4F2}")+" "+f(e,t);return console.log(r),r};var Qe=h(b());var V=(e,...t)=>{let r=Qe.default.green("\u23FA Success ")+f(e,t);return console.log(r),r};var et=h(b());var K=(e,...t)=>{let r=et.default.yellow("\u23FA Warn ")+f(e,t);return console.log(r),r};var tt=h(b());var D=(e,...t)=>{let r=tt.default.bgGreen.bold.white(" \u2713 PASS ")+" "+f(e,t);return console.log(r),r};var J=e=>{let t=_(nt(rt(JSON.parse(JSON.stringify(e)))),{spacerNeighbour:y("..\u2502..")+" ",keyNoNeighbour:y("..\u2514\u2500..")+" ",keyNeighbour:y("..\u251C\u2500..")+" ",separator:y("..:..")+" "});return console.log(t),t};function rt(e){for(let t in e){let r=e[t];typeof r=="object"?r!==null&&!Object.keys(r).length?delete e[t]:e[t]=rt(r):r===void 0&&delete e[t]}return e}function nt(e){for(let t in e){let r=e[t];Array.isArray(r)?e[t]=r.map(n=>y(`**${n}**`)).join(y("..,..")):typeof r=="object"?nt(r):e[t]=y(`**${r}**`)}return e}var ot=h(b());var X=(e,...t)=>{let r=ot.default.red("\u23FA Fail ")+f(e,t);return console.log(r),r};var ge=(e,...t)=>{let r=y("$t ")+f(e,t);return console.log(r),r};var it=h(st()),H=h(b());function lt(e){let{message:t,stack:r}=typeof e=="string"?new Error(e):e,n={};return(0,it.default)(r.replace(t,"").replace(/^Error: /,"")).split(`
`).forEach(o=>{n[o.split(" ").map(s=>s.replace(/^\((.+)\)$/,`${H.default.cyan("$1")}`).replace(/\./g,`${H.default.dim(".")}`).replace(/^at$/,i=>H.default.dim(i))).join(" ")]=null}),{message:t.trim().replace(/Error: /g,""),stackTree:n}}var O=h(b()),me=(e,...t)=>{if(e instanceof Error){let{message:r,stackTree:n}=lt(e);return console.log(""),console.log(O.default.bgRed.bold.white(" \u{1D5EB} ERROR ")+" "+O.default.bold.red(r)),console.log(_(n,{spacerNeighbour:O.default.redBright.dim("\u2502\u2000\u2000"),keyNoNeighbour:O.default.redBright.dim("\u2514\u2500\u2000"),keyNeighbour:O.default.redBright.dim("\u251C\u2500 "),separator:O.default.redBright.dim(":\u2000")})),console.log(""),r}else{let r=f(e,t);return console.log(r),r}};Object.assign(me,{a:B,add:B,d:j,del:j,delete:j,o:S,valid:S,x:A,invalid:A,i:T,info:T,e:N,error:N,t:ge,timestamp:ge,success:V,fail:X,warn:K,pass:D,conflict:Y,ok:U,tree:J,paint:y});var ct=h(b());var Yt=me;0&&(module.exports={a,add,chalk,conflict,d,del,e,error,fail,i,info,invalid,o,ok,paint,pass,success,tree,valid,warn,x});
`)}typeof me<"u"&&(me.exports=Yt)});var Vt={};bt(Vt,{a:()=>B,add:()=>B,chalk:()=>ft.default,conflict:()=>U,d:()=>j,default:()=>Ut,del:()=>j,e:()=>N,error:()=>N,fail:()=>H,i:()=>T,info:()=>T,invalid:()=>A,o:()=>S,ok:()=>V,paint:()=>y,pass:()=>J,success:()=>K,tree:()=>X,valid:()=>S,warn:()=>D,x:()=>A});module.exports=yt(Vt);var w=(e,t)=>{if(!e)throw new Error(t)};var kt=e=>{let t={joined:!0,spacerNoNeighbour:" ",spacerNeighbour:"\u2502 ",keyNoNeighbour:"\u2514\u2500 ",keyNeighbour:"\u251C\u2500 ",separator:": ",renderFn:r=>["boolean","string","number"].includes(typeof r)?r:void 0,sortFn:null,breakCircularWith:" (circular ref.)",...e};return w(Object.keys(t).length===9,"Unexpected Option(s) provided"),w(typeof t.joined=="boolean",'Option "joined" has invalid format'),w(typeof t.spacerNoNeighbour=="string",'Option "spacerNoNeighbour" has invalid format'),w(typeof t.spacerNeighbour=="string",'Option "spacerNeighbour" has invalid format'),w(typeof t.keyNoNeighbour=="string",'Option "keyNoNeighbour" has invalid format'),w(typeof t.keyNeighbour=="string",'Option "keyNeighbour" has invalid format'),w(typeof t.separator=="string",'Option "separator" has invalid format'),w(typeof t.renderFn=="function",'Option "renderFn" has invalid format'),w(typeof t.sortFn=="function"||t.sortFn===null,'Option "sortFn" has invalid format'),w(typeof t.breakCircularWith=="string"||t.breakCircularWith===null,'Option "breakCircularWith" has invalid format'),t},_=(e,t={})=>{let r=kt(t),n=[],o=r.renderFn(e);o!==void 0&&n.push(String(o));let s=u=>r.sortFn===null?u.reverse():u.sort((p,m)=>r.sortFn(m,p)),i=[],l=s(Object.keys(e)).map(u=>[u]),a=[e];for(;l.length!==0;){let u=l.pop(),p=a[u.length-1][u[u.length-1]],m=r.breakCircularWith!==null&&a.includes(p);i[u.length-1]=l.length!==0&&l[l.length-1].length===u.length;let Q=r.renderFn(p);n.push([i.slice(0,u.length-1).map(ee=>ee?r.spacerNeighbour:r.spacerNoNeighbour).join(""),i[u.length-1]?r.keyNeighbour:r.keyNoNeighbour,u[u.length-1],Q===void 0?"":`${r.separator}${p}`,m?r.breakCircularWith:""].join("")),p instanceof Object&&!Array.isArray(p)&&!m&&(l.push(...s(Object.keys(p)).map(ee=>u.concat(ee))),a[u.length]=p)}return r.joined===!0?n.join(`
`):n};var Je=h(b());var Y=h(b());var g=h(b());function y(e){return e.split(" ").map(t=>t.replace(/^(\d*\.?\d*)$/g,`${g.default.blue("$1")}`).replace(/^(\d*\.?\d*)(YB|ZB|EB|PB|TB|GB|MB|KB|B|mb|kb|kB|bit|zs|as|fs|ps|ns|µs|ms|s|m|h|d|m|y)$/g,`${g.default.cyan("$1")}${g.default.magenta("$2")}`).replace(/^((?:[0-1]?[0-9]|[2][0-3]):[0-5][0-9]:[0-5][0-9] (?:AM|PM)?)$/g,`${g.default.dim("$1")}`).replace(/^\[(.*?)\]$/g,`${g.default.dim("[")}${g.default.magenta("$1")}${g.default.dim("]")}`).replace(/^`(.*?)`$/g,`${g.default.dim("`")}$1${g.default.dim("`")}`).replace(/^\((.*?)\)$/g,`${g.default.dim("(")}$1${g.default.dim(")")}`).replace(/^<(.*?)>$/g,`${g.default.dim("<")}${g.default.gray("$1")}${g.default.dim(">")}`).replace(/->/g,g.default.dim("\u2192")).replace(/<-/g,g.default.dim("\u2190")).replace(/^\$t$/g,`${g.default.dim(new Date().toLocaleTimeString())}`).replace(/^\*\*(.*?)\*\*$/g,`${g.default.bold.white("$1")}`).replace(/^~~(.*?)~~$/g,`${g.default.strikethrough("$1")}`).replace(/^__(.*?)__$/g,`${g.default.underline("$1")}`).replace(/^\.\.(.*?)\.\.$/g,`${g.default.dim("$1")}`).replace(/^!!(.*?)!!$/g,`${g.default.yellow("$1")}`).replace(/^\*(.*?)\*$/g,`${g.default.italic("$1")}`).replace(/^_(.*?)_$/g,`${g.default.italic("$1")}`).replace(/^\+(.*?)\+$/g,`${g.default.green("$1")}`).replace(/^-(.*?)-$/g,`${g.default.red("$1")}`)).join(" ")}function f(e,t){let r="";if(Array.isArray(e))for(let n=0;n<e.length;n++)r+=fe(e[n])+fe(t[n]);else r=[e,...t].map(n=>fe(n)).join(" ");return y(r)}var fe=e=>e?Array.isArray(e)?e.map(t=>{switch(typeof t){case"string":return`'${Y.default.yellow(t)}'`;case"number":case"boolean":return Y.default.blue(t);default:return t}}).join(Y.default.gray(", ")):e:"";var B=(e,...t)=>{let r=Je.default.green("+")+" "+f(e,t);return console.log(r),r};var Xe=h(b());var N=(e,...t)=>{let r=Xe.default.bgRed.bold.white(" \u{1D5EB} ERROR ")+" "+f(e,t);return console.log(r),r};var ge=h(b());var U=(e,...t)=>{let r=ge.default.bgYellow.bold.white(" \u26A0\uFE0F CONFLICT ")+" "+ge.default.yellow(f(e,t));return console.log(r),r};var He=h(b());var V=(e,...t)=>{let r=He.default.green("\u2713 ")+f(e,t);return console.log(r),r};var Ze=h(b());var j=(e,...t)=>{let r=Ze.default.red("-")+" "+f(e,t);return console.log(r),r};var Qe=h(b());var S=(e,...t)=>{let r=Qe.default.green("\u25CB ")+f(e,t);return console.log(r),r};var et=h(b());var A=(e,...t)=>{let r=et.default.red("\u2717 ")+f(e,t);return console.log(r),r};var tt=h(b());var T=(e,...t)=>{let r=tt.default.cyan("\u{1D4F2}")+" "+f(e,t);return console.log(r),r};var rt=h(b());var K=(e,...t)=>{let r=rt.default.green("\u23FA Success ")+f(e,t);return console.log(r),r};var nt=h(b());var D=(e,...t)=>{let r=nt.default.yellow("\u23FA Warn ")+f(e,t);return console.log(r),r};var ot=h(b());var J=(e,...t)=>{let r=ot.default.bgGreen.bold.white(" \u2713 PASS ")+" "+f(e,t);return console.log(r),r};var X=e=>{let t=_(it(st(JSON.parse(JSON.stringify(e)))),{spacerNeighbour:y("..\u2502..")+" ",keyNoNeighbour:y("..\u2514\u2500..")+" ",keyNeighbour:y("..\u251C\u2500..")+" ",separator:y("..:..")+" "});return console.log(t),t};function st(e){for(let t in e){let r=e[t];typeof r=="object"?r!==null&&!Object.keys(r).length?delete e[t]:e[t]=st(r):r===void 0&&delete e[t]}return e}function it(e){for(let t in e){let r=e[t];Array.isArray(r)?e[t]=r.map(n=>y(`**${n}**`)).join(y("..,..")):typeof r=="object"?it(r):e[t]=y(`**${r}**`)}return e}var lt=h(b());var H=(e,...t)=>{let r=lt.default.red("\u23FA Fail ")+f(e,t);return console.log(r),r};var pe=(e,...t)=>{let r=y("$t ")+f(e,t);return console.log(r),r};var at=h(ct()),Z=h(b());function ut(e){let{message:t,stack:r}=typeof e=="string"?new Error(e):e,n={};return(0,at.default)(r.replace(t,"").replace(/^Error: /,"")).split(`
`).forEach(o=>{n[o.split(" ").map(s=>s.replace(/^\((.+)\)$/,`${Z.default.cyan("$1")}`).replace(/\./g,`${Z.default.dim(".")}`).replace(/^at$/,i=>Z.default.dim(i))).join(" ")]=null}),{message:t.trim().replace(/Error: /g,""),stackTree:n}}var O=h(b()),he=(e,...t)=>{if(e instanceof Error){let{message:r,stackTree:n}=ut(e);return console.log(""),console.log(O.default.bgRed.bold.white(" \u{1D5EB} ERROR ")+" "+O.default.bold.red(r)),console.log(_(n,{spacerNeighbour:O.default.redBright.dim("\u2502\u2000\u2000"),keyNoNeighbour:O.default.redBright.dim("\u2514\u2500\u2000"),keyNeighbour:O.default.redBright.dim("\u251C\u2500 "),separator:O.default.redBright.dim(":\u2000")})),console.log(""),r}else{let r=f(e,t);return console.log(r),r}};Object.assign(he,{a:B,add:B,d:j,del:j,delete:j,o:S,valid:S,x:A,invalid:A,i:T,info:T,e:N,error:N,t:pe,timestamp:pe,success:K,fail:H,warn:D,pass:J,conflict:U,ok:V,tree:X,paint:y});var ft=h(b());var Ut=he;0&&(module.exports={a,add,chalk,conflict,d,del,e,error,fail,i,info,invalid,o,ok,paint,pass,success,tree,valid,warn,x});
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

{"name":"@techor/log","license":"MIT","scripts":{"build:cjs":"esbuild src/index.ts --bundle --outfile=dist/index.js --format=cjs --minify --sourcemap --platform=node","build:esm":"esbuild src/index.ts --bundle --outfile=dist/index.mjs --format=esm --minify --sourcemap --platform=node","build:type":"tsc --emitDeclarationOnly --preserveWatchOutput","build":"npm run build:cjs && npm run build:esm && npm run build:type","dev":"conc 'npm:build:* -- --watch'","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"description":"A set of human-friendly and beautiful console log syntax","author":{"name":"Aron","email":"i@aron.tw","url":"https://aron.tw"},"homepage":"https://github.com/1aron/techor","bugs":{"url":"https://github.com/1aron/techor/issues"},"repository":{"type":"git","url":"https://github.com/1aron/techor.git","directory":"packages/log"},"keywords":["console","log","chalk","semantic"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"sideEffects":false,"publishConfig":{"access":"public"},"devDependencies":{"chalk":"^4.0.0","dedent":"^0.7.0","object-treeify":"^3.3.1"},"version":"1.2.7"}
{"name":"@techor/log","license":"MIT","scripts":{"build:cjs":"esbuild src/index.ts --bundle --outfile=dist/index.js --format=cjs --minify --sourcemap --platform=node","build:esm":"esbuild src/index.ts --bundle --outfile=dist/index.mjs --format=esm --minify --sourcemap --platform=node","build:type":"tsc --emitDeclarationOnly --preserveWatchOutput","build":"npm run build:cjs && npm run build:esm && npm run build:type","dev":"conc 'npm:build:* -- --watch'","test":"jest","type-check":"tsc --noEmit","lint":"eslint src"},"description":"A set of human-friendly and beautiful console log syntax","author":{"name":"Aron","email":"i@aron.tw","url":"https://aron.tw"},"homepage":"https://github.com/1aron/techor","bugs":{"url":"https://github.com/1aron/techor/issues"},"repository":{"type":"git","url":"https://github.com/1aron/techor.git","directory":"packages/log"},"keywords":["console","log","chalk","semantic"],"main":"./dist/index.js","jsnext:main":"./dist/index.mjs","esnext":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs","types":"./dist/index.d.ts"}},"files":["dist"],"sideEffects":false,"publishConfig":{"access":"public"},"devDependencies":{"chalk":"^4.0.0","dedent":"^0.7.0","object-treeify":"^3.3.1"},"version":"2.0.1"}

@@ -73,3 +73,3 @@ <br>

log`5:24:11 AM test`
log`dist/index.cjs.map 15.5KB`
log`dist/index.js.map 15.5KB`
log`$t show timestamp`

@@ -76,0 +76,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc