UNPKG

create-nextpress

Version:

A CLI for creating Next.js projects with shadcn/ui, Prisma, better-auth, and zustand in the highest speed and performance

10 lines 93.7 kB
#!/usr/bin/env node var ku=Object.create;var _e=Object.defineProperty;var Mu=Object.getOwnPropertyDescriptor;var Su=Object.getOwnPropertyNames;var _u=Object.getPrototypeOf,Tu=Object.prototype.hasOwnProperty;var Ut=e=>{throw TypeError(e)};var $u=(e,t,u)=>t in e?_e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[t]=u;var zt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,u)=>(typeof require<"u"?require:t)[u]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var j=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ou=(e,t)=>{for(var u in t)_e(e,u,{get:t[u],enumerable:!0})},Pu=(e,t,u,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Su(t))!Tu.call(e,r)&&r!==u&&_e(e,r,{get:()=>t[r],enumerable:!(n=Mu(t,r))||n.enumerable});return e};var Iu=(e,t,u)=>(u=e!=null?ku(_u(e)):{},Pu(t||!e||!e.__esModule?_e(u,"default",{value:e,enumerable:!0}):u,e));var me=(e,t,u)=>$u(e,typeof t!="symbol"?t+"":t,u),Qe=(e,t,u)=>t.has(e)||Ut("Cannot "+u);var C=(e,t,u)=>(Qe(e,t,"read from private field"),u?u.call(e):t.get(e)),X=(e,t,u)=>t.has(e)?Ut("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,u),ee=(e,t,u,n)=>(Qe(e,t,"write to private field"),n?n.call(e,u):t.set(e,u),u),et=(e,t,u)=>(Qe(e,t,"access private method"),u);var vn=j((Ys,xn)=>{"use strict";xn.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 mt=j((Xs,kn)=>{"use strict";var xe=vn(),wn={};for(let e of Object.keys(xe))wn[xe[e]]=e;var p={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"]}};kn.exports=p;for(let e of Object.keys(p)){if(!("channels"in p[e]))throw new Error("missing channels property: "+e);if(!("labels"in p[e]))throw new Error("missing channel labels property: "+e);if(p[e].labels.length!==p[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:u}=p[e];delete p[e].channels,delete p[e].labels,Object.defineProperty(p[e],"channels",{value:t}),Object.defineProperty(p[e],"labels",{value:u})}p.rgb.hsl=function(e){let t=e[0]/255,u=e[1]/255,n=e[2]/255,r=Math.min(t,u,n),o=Math.max(t,u,n),i=o-r,l,c;o===r?l=0:t===o?l=(u-n)/i:u===o?l=2+(n-t)/i:n===o&&(l=4+(t-u)/i),l=Math.min(l*60,360),l<0&&(l+=360);let g=(r+o)/2;return o===r?c=0:g<=.5?c=i/(o+r):c=i/(2-o-r),[l,c*100,g*100]};p.rgb.hsv=function(e){let t,u,n,r,o,i=e[0]/255,l=e[1]/255,c=e[2]/255,g=Math.max(i,l,c),b=g-Math.min(i,l,c),m=function(x){return(g-x)/6/b+1/2};return b===0?(r=0,o=0):(o=b/g,t=m(i),u=m(l),n=m(c),i===g?r=n-u:l===g?r=1/3+t-n:c===g&&(r=2/3+u-t),r<0?r+=1:r>1&&(r-=1)),[r*360,o*100,g*100]};p.rgb.hwb=function(e){let t=e[0],u=e[1],n=e[2],r=p.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(u,n));return n=1-1/255*Math.max(t,Math.max(u,n)),[r,o*100,n*100]};p.rgb.cmyk=function(e){let t=e[0]/255,u=e[1]/255,n=e[2]/255,r=Math.min(1-t,1-u,1-n),o=(1-t-r)/(1-r)||0,i=(1-u-r)/(1-r)||0,l=(1-n-r)/(1-r)||0;return[o*100,i*100,l*100,r*100]};function Xr(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}p.rgb.keyword=function(e){let t=wn[e];if(t)return t;let u=1/0,n;for(let r of Object.keys(xe)){let o=xe[r],i=Xr(e,o);i<u&&(u=i,n=r)}return n};p.keyword.rgb=function(e){return xe[e]};p.rgb.xyz=function(e){let t=e[0]/255,u=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let r=t*.4124+u*.3576+n*.1805,o=t*.2126+u*.7152+n*.0722,i=t*.0193+u*.1192+n*.9505;return[r*100,o*100,i*100]};p.rgb.lab=function(e){let t=p.rgb.xyz(e),u=t[0],n=t[1],r=t[2];u/=95.047,n/=100,r/=108.883,u=u>.008856?u**(1/3):7.787*u+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let o=116*n-16,i=500*(u-n),l=200*(n-r);return[o,i,l]};p.hsl.rgb=function(e){let t=e[0]/360,u=e[1]/100,n=e[2]/100,r,o,i;if(u===0)return i=n*255,[i,i,i];n<.5?r=n*(1+u):r=n+u-n*u;let l=2*n-r,c=[0,0,0];for(let g=0;g<3;g++)o=t+1/3*-(g-1),o<0&&o++,o>1&&o--,6*o<1?i=l+(r-l)*6*o:2*o<1?i=r:3*o<2?i=l+(r-l)*(2/3-o)*6:i=l,c[g]=i*255;return c};p.hsl.hsv=function(e){let t=e[0],u=e[1]/100,n=e[2]/100,r=u,o=Math.max(n,.01);n*=2,u*=n<=1?n:2-n,r*=o<=1?o:2-o;let i=(n+u)/2,l=n===0?2*r/(o+r):2*u/(n+u);return[t,l*100,i*100]};p.hsv.rgb=function(e){let t=e[0]/60,u=e[1]/100,n=e[2]/100,r=Math.floor(t)%6,o=t-Math.floor(t),i=255*n*(1-u),l=255*n*(1-u*o),c=255*n*(1-u*(1-o));switch(n*=255,r){case 0:return[n,c,i];case 1:return[l,n,i];case 2:return[i,n,c];case 3:return[i,l,n];case 4:return[c,i,n];case 5:return[n,i,l]}};p.hsv.hsl=function(e){let t=e[0],u=e[1]/100,n=e[2]/100,r=Math.max(n,.01),o,i;i=(2-u)*n;let l=(2-u)*r;return o=u*r,o/=l<=1?l:2-l,o=o||0,i/=2,[t,o*100,i*100]};p.hwb.rgb=function(e){let t=e[0]/360,u=e[1]/100,n=e[2]/100,r=u+n,o;r>1&&(u/=r,n/=r);let i=Math.floor(6*t),l=1-n;o=6*t-i,(i&1)!==0&&(o=1-o);let c=u+o*(l-u),g,b,m;switch(i){default:case 6:case 0:g=l,b=c,m=u;break;case 1:g=c,b=l,m=u;break;case 2:g=u,b=l,m=c;break;case 3:g=u,b=c,m=l;break;case 4:g=c,b=u,m=l;break;case 5:g=l,b=u,m=c;break}return[g*255,b*255,m*255]};p.cmyk.rgb=function(e){let t=e[0]/100,u=e[1]/100,n=e[2]/100,r=e[3]/100,o=1-Math.min(1,t*(1-r)+r),i=1-Math.min(1,u*(1-r)+r),l=1-Math.min(1,n*(1-r)+r);return[o*255,i*255,l*255]};p.xyz.rgb=function(e){let t=e[0]/100,u=e[1]/100,n=e[2]/100,r,o,i;return r=t*3.2406+u*-1.5372+n*-.4986,o=t*-.9689+u*1.8758+n*.0415,i=t*.0557+u*-.204+n*1.057,r=r>.0031308?1.055*r**(1/2.4)-.055:r*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),[r*255,o*255,i*255]};p.xyz.lab=function(e){let t=e[0],u=e[1],n=e[2];t/=95.047,u/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let r=116*u-16,o=500*(t-u),i=200*(u-n);return[r,o,i]};p.lab.xyz=function(e){let t=e[0],u=e[1],n=e[2],r,o,i;o=(t+16)/116,r=u/500+o,i=o-n/200;let l=o**3,c=r**3,g=i**3;return o=l>.008856?l:(o-16/116)/7.787,r=c>.008856?c:(r-16/116)/7.787,i=g>.008856?g:(i-16/116)/7.787,r*=95.047,o*=100,i*=108.883,[r,o,i]};p.lab.lch=function(e){let t=e[0],u=e[1],n=e[2],r;r=Math.atan2(n,u)*360/2/Math.PI,r<0&&(r+=360);let i=Math.sqrt(u*u+n*n);return[t,i,r]};p.lch.lab=function(e){let t=e[0],u=e[1],r=e[2]/360*2*Math.PI,o=u*Math.cos(r),i=u*Math.sin(r);return[t,o,i]};p.rgb.ansi16=function(e,t=null){let[u,n,r]=e,o=t===null?p.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let i=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(u/255));return o===2&&(i+=60),i};p.hsv.ansi16=function(e){return p.rgb.ansi16(p.hsv.rgb(e),e[2])};p.rgb.ansi256=function(e){let t=e[0],u=e[1],n=e[2];return t===u&&u===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(u/255*5)+Math.round(n/255*5)};p.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 u=(~~(e>50)+1)*.5,n=(t&1)*u*255,r=(t>>1&1)*u*255,o=(t>>2&1)*u*255;return[n,r,o]};p.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let t,u=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,r=t%6/5*255;return[u,n,r]};p.rgb.hex=function(e){let u=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(u.length)+u};p.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 u=t[0];t[0].length===3&&(u=u.split("").map(l=>l+l).join(""));let n=parseInt(u,16),r=n>>16&255,o=n>>8&255,i=n&255;return[r,o,i]};p.rgb.hcg=function(e){let t=e[0]/255,u=e[1]/255,n=e[2]/255,r=Math.max(Math.max(t,u),n),o=Math.min(Math.min(t,u),n),i=r-o,l,c;return i<1?l=o/(1-i):l=0,i<=0?c=0:r===t?c=(u-n)/i%6:r===u?c=2+(n-t)/i:c=4+(t-u)/i,c/=6,c%=1,[c*360,i*100,l*100]};p.hsl.hcg=function(e){let t=e[1]/100,u=e[2]/100,n=u<.5?2*t*u:2*t*(1-u),r=0;return n<1&&(r=(u-.5*n)/(1-n)),[e[0],n*100,r*100]};p.hsv.hcg=function(e){let t=e[1]/100,u=e[2]/100,n=t*u,r=0;return n<1&&(r=(u-n)/(1-n)),[e[0],n*100,r*100]};p.hcg.rgb=function(e){let t=e[0]/360,u=e[1]/100,n=e[2]/100;if(u===0)return[n*255,n*255,n*255];let r=[0,0,0],o=t%1*6,i=o%1,l=1-i,c=0;switch(Math.floor(o)){case 0:r[0]=1,r[1]=i,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=i;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=i,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l}return c=(1-u)*n,[(u*r[0]+c)*255,(u*r[1]+c)*255,(u*r[2]+c)*255]};p.hcg.hsv=function(e){let t=e[1]/100,u=e[2]/100,n=t+u*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]};p.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]};p.hcg.hwb=function(e){let t=e[1]/100,u=e[2]/100,n=t+u*(1-t);return[e[0],(n-t)*100,(1-n)*100]};p.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};p.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};p.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};p.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};p.gray.hsl=function(e){return[0,0,e[0]]};p.gray.hsv=p.gray.hsl;p.gray.hwb=function(e){return[0,100,e[0]]};p.gray.cmyk=function(e){return[0,0,0,e[0]]};p.gray.lab=function(e){return[e[0],0,0]};p.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};p.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Sn=j((Js,Mn)=>{"use strict";var He=mt();function Jr(){let e={},t=Object.keys(He);for(let u=t.length,n=0;n<u;n++)e[t[n]]={distance:-1,parent:null};return e}function Zr(e){let t=Jr(),u=[e];for(t[e].distance=0;u.length;){let n=u.pop(),r=Object.keys(He[n]);for(let o=r.length,i=0;i<o;i++){let l=r[i],c=t[l];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,u.unshift(l))}}return t}function Qr(e,t){return function(u){return t(e(u))}}function eo(e,t){let u=[t[e].parent,e],n=He[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)u.unshift(t[r].parent),n=Qr(He[t[r].parent][r],n),r=t[r].parent;return n.conversion=u,n}Mn.exports=function(e){let t=Zr(e),u={},n=Object.keys(t);for(let r=n.length,o=0;o<r;o++){let i=n[o];t[i].parent!==null&&(u[i]=eo(i,t))}return u}});var Tn=j((Zs,_n)=>{"use strict";var Et=mt(),to=Sn(),Fe={},no=Object.keys(Et);function uo(e){let t=function(...u){let n=u[0];return n==null?n:(n.length>1&&(u=n),e(u))};return"conversion"in e&&(t.conversion=e.conversion),t}function ro(e){let t=function(...u){let n=u[0];if(n==null)return n;n.length>1&&(u=n);let r=e(u);if(typeof r=="object")for(let o=r.length,i=0;i<o;i++)r[i]=Math.round(r[i]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}no.forEach(e=>{Fe[e]={},Object.defineProperty(Fe[e],"channels",{value:Et[e].channels}),Object.defineProperty(Fe[e],"labels",{value:Et[e].labels});let t=to(e);Object.keys(t).forEach(n=>{let r=t[n];Fe[e][n]=ro(r),Fe[e][n].raw=uo(r)})});_n.exports=Fe});var jn=j((Qs,Rn)=>{"use strict";var $n=(e,t)=>(...u)=>`\x1B[${e(...u)+t}m`,On=(e,t)=>(...u)=>{let n=e(...u);return`\x1B[${38+t};5;${n}m`},Pn=(e,t)=>(...u)=>{let n=e(...u);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},We=e=>e,In=(e,t,u)=>[e,t,u],fe=(e,t,u)=>{Object.defineProperty(e,t,{get:()=>{let n=u();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Bt,he=(e,t,u,n)=>{Bt===void 0&&(Bt=Tn());let r=n?10:0,o={};for(let[i,l]of Object.entries(Bt)){let c=i==="ansi16"?"ansi":i;i===t?o[c]=e(u,r):typeof l=="object"&&(o[c]=e(l[t],r))}return o};function oo(){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[u,n]of Object.entries(t)){for(let[r,o]of Object.entries(n))t[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[r]=t[r],e.set(o[0],o[1]);Object.defineProperty(t,u,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",fe(t.color,"ansi",()=>he($n,"ansi16",We,!1)),fe(t.color,"ansi256",()=>he(On,"ansi256",We,!1)),fe(t.color,"ansi16m",()=>he(Pn,"rgb",In,!1)),fe(t.bgColor,"ansi",()=>he($n,"ansi16",We,!0)),fe(t.bgColor,"ansi256",()=>he(On,"ansi256",We,!0)),fe(t.bgColor,"ansi16m",()=>he(Pn,"rgb",In,!0)),t}Object.defineProperty(Rn,"exports",{enumerable:!0,get:oo})});var Ln=j((ei,Nn)=>{"use strict";Nn.exports=(e,t=process.argv)=>{let u=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(u+e),r=t.indexOf("--");return n!==-1&&(r===-1||n<r)}});var Wn=j((ti,Hn)=>{"use strict";var so=zt("os"),Gn=zt("tty"),G=Ln(),{env:I}=process,Q;G("no-color")||G("no-colors")||G("color=false")||G("color=never")?Q=0:(G("color")||G("colors")||G("color=true")||G("color=always"))&&(Q=1);"FORCE_COLOR"in I&&(I.FORCE_COLOR==="true"?Q=1:I.FORCE_COLOR==="false"?Q=0:Q=I.FORCE_COLOR.length===0?1:Math.min(parseInt(I.FORCE_COLOR,10),3));function At(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function yt(e,t){if(Q===0)return 0;if(G("color=16m")||G("color=full")||G("color=truecolor"))return 3;if(G("color=256"))return 2;if(e&&!t&&Q===void 0)return 0;let u=Q||0;if(I.TERM==="dumb")return u;if(process.platform==="win32"){let n=so.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in I)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in I)||I.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in I)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(I.TEAMCITY_VERSION)?1:0;if(I.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in I){let n=parseInt((I.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(I.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(I.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(I.TERM)||"COLORTERM"in I?1:u}function io(e){let t=yt(e,e&&e.isTTY);return At(t)}Hn.exports={supportsColor:io,stdout:At(yt(!0,Gn.isatty(1))),stderr:At(yt(!0,Gn.isatty(2)))}});var Un=j((ni,qn)=>{"use strict";var ao=(e,t,u)=>{let n=e.indexOf(t);if(n===-1)return e;let r=t.length,o=0,i="";do i+=e.substr(o,n-o)+t+u,o=n+r,n=e.indexOf(t,o);while(n!==-1);return i+=e.substr(o),i},Do=(e,t,u,n)=>{let r=0,o="";do{let i=e[n-1]==="\r";o+=e.substr(r,(i?n-1:n)-r)+t+(i?`\r `:` `)+u,r=n+1,n=e.indexOf(` `,r)}while(n!==-1);return o+=e.substr(r),o};qn.exports={stringReplaceAll:ao,stringEncaseCRLFWithFirstIndex:Do}});var Xn=j((ui,Yn)=>{"use strict";var lo=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,zn=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,co=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Fo=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,fo=new Map([["n",` `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Kn(e){let t=e[0]==="u",u=e[1]==="{";return t&&!u&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&u?String.fromCodePoint(parseInt(e.slice(2,-1),16)):fo.get(e)||e}function ho(e,t){let u=[],n=t.trim().split(/\s*,\s*/g),r;for(let o of n){let i=Number(o);if(!Number.isNaN(i))u.push(i);else if(r=o.match(co))u.push(r[2].replace(Fo,(l,c,g)=>c?Kn(c):g));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`)}return u}function go(e){zn.lastIndex=0;let t=[],u;for(;(u=zn.exec(e))!==null;){let n=u[1];if(u[2]){let r=ho(n,u[2]);t.push([n].concat(r))}else t.push([n])}return t}function Vn(e,t){let u={};for(let r of t)for(let o of r.styles)u[o[0]]=r.inverse?null:o.slice(1);let n=e;for(let[r,o]of Object.entries(u))if(Array.isArray(o)){if(!(r in n))throw new Error(`Unknown Chalk style: ${r}`);n=o.length>0?n[r](...o):n[r]}return n}Yn.exports=(e,t)=>{let u=[],n=[],r=[];if(t.replace(lo,(o,i,l,c,g,b)=>{if(i)r.push(Kn(i));else if(c){let m=r.join("");r=[],n.push(u.length===0?m:Vn(e,u)(m)),u.push({inverse:l,styles:go(c)})}else if(g){if(u.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Vn(e,u)(r.join(""))),r=[],u.pop()}else r.push(b)}),n.push(r.join("")),u.length>0){let o=`Chalk template literal is missing ${u.length} closing bracket${u.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var uu=j((ri,nu)=>{"use strict";var ve=jn(),{stdout:vt,stderr:wt}=Wn(),{stringReplaceAll:po,stringEncaseCRLFWithFirstIndex:bo}=Un(),{isArray:qe}=Array,Zn=["ansi","ansi","ansi256","ansi16m"],ge=Object.create(null),Co=(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 u=vt?vt.level:0;e.level=t.level===void 0?u:t.level},kt=class{constructor(t){return Qn(t)}},Qn=e=>{let t={};return Co(t,e),t.template=(...u)=>tu(t.template,...u),Object.setPrototypeOf(t,Ue.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=kt,t.template};function Ue(e){return Qn(e)}for(let[e,t]of Object.entries(ve))ge[e]={get(){let u=ze(this,Mt(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:u}),u}};ge.visible={get(){let e=ze(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var eu=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of eu)ge[e]={get(){let{level:t}=this;return function(...u){let n=Mt(ve.color[Zn[t]][e](...u),ve.color.close,this._styler);return ze(this,n,this._isEmpty)}}};for(let e of eu){let t="bg"+e[0].toUpperCase()+e.slice(1);ge[t]={get(){let{level:u}=this;return function(...n){let r=Mt(ve.bgColor[Zn[u]][e](...n),ve.bgColor.close,this._styler);return ze(this,r,this._isEmpty)}}}}var mo=Object.defineProperties(()=>{},{...ge,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Mt=(e,t,u)=>{let n,r;return u===void 0?(n=e,r=t):(n=u.openAll+e,r=t+u.closeAll),{open:e,close:t,openAll:n,closeAll:r,parent:u}},ze=(e,t,u)=>{let n=(...r)=>qe(r[0])&&qe(r[0].raw)?Jn(n,tu(n,...r)):Jn(n,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(n,mo),n._generator=e,n._styler=t,n._isEmpty=u,n},Jn=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let u=e._styler;if(u===void 0)return t;let{openAll:n,closeAll:r}=u;if(t.indexOf("\x1B")!==-1)for(;u!==void 0;)t=po(t,u.close,u.open),u=u.parent;let o=t.indexOf(` `);return o!==-1&&(t=bo(t,r,n,o)),n+t+r},xt,tu=(e,...t)=>{let[u]=t;if(!qe(u)||!qe(u.raw))return t.join(" ");let n=t.slice(1),r=[u.raw[0]];for(let o=1;o<u.length;o++)r.push(String(n[o-1]).replace(/[{}\\]/g,"\\$&"),String(u.raw[o]));return xt===void 0&&(xt=Xn()),xt(e,r.join(""))};Object.defineProperties(Ue.prototype,ge);var Ve=Ue();Ve.supportsColor=vt;Ve.stderr=Ue({level:wt?wt.level:0});Ve.stderr.supportsColor=wt;nu.exports=Ve});var ru=j((St,_t)=>{"use strict";(function(e,t){typeof St=="object"&&typeof _t<"u"?_t.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(St,function(){"use strict";function e(s){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},e(s)}var t=/^\s+/,u=/\s+$/;function n(s,D){if(s=s||"",D=D||{},s instanceof n)return s;if(!(this instanceof n))return new n(s,D);var a=r(s);this._originalInput=s,this._r=a.r,this._g=a.g,this._b=a.b,this._a=a.a,this._roundA=Math.round(100*this._a)/100,this._format=D.format||a.format,this._gradientType=D.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=a.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var D=this.toRgb();return(D.r*299+D.g*587+D.b*114)/1e3},getLuminance:function(){var D=this.toRgb(),a,F,h,f,E,y;return a=D.r/255,F=D.g/255,h=D.b/255,a<=.03928?f=a/12.92:f=Math.pow((a+.055)/1.055,2.4),F<=.03928?E=F/12.92:E=Math.pow((F+.055)/1.055,2.4),h<=.03928?y=h/12.92:y=Math.pow((h+.055)/1.055,2.4),.2126*f+.7152*E+.0722*y},setAlpha:function(D){return this._a=Ht(D),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var D=c(this._r,this._g,this._b);return{h:D.h*360,s:D.s,v:D.v,a:this._a}},toHsvString:function(){var D=c(this._r,this._g,this._b),a=Math.round(D.h*360),F=Math.round(D.s*100),h=Math.round(D.v*100);return this._a==1?"hsv("+a+", "+F+"%, "+h+"%)":"hsva("+a+", "+F+"%, "+h+"%, "+this._roundA+")"},toHsl:function(){var D=i(this._r,this._g,this._b);return{h:D.h*360,s:D.s,l:D.l,a:this._a}},toHslString:function(){var D=i(this._r,this._g,this._b),a=Math.round(D.h*360),F=Math.round(D.s*100),h=Math.round(D.l*100);return this._a==1?"hsl("+a+", "+F+"%, "+h+"%)":"hsla("+a+", "+F+"%, "+h+"%, "+this._roundA+")"},toHex:function(D){return b(this._r,this._g,this._b,D)},toHexString:function(D){return"#"+this.toHex(D)},toHex8:function(D){return m(this._r,this._g,this._b,this._a,D)},toHex8String:function(D){return"#"+this.toHex8(D)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(v(this._r,255)*100)+"%",g:Math.round(v(this._g,255)*100)+"%",b:Math.round(v(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(v(this._r,255)*100)+"%, "+Math.round(v(this._g,255)*100)+"%, "+Math.round(v(this._b,255)*100)+"%)":"rgba("+Math.round(v(this._r,255)*100)+"%, "+Math.round(v(this._g,255)*100)+"%, "+Math.round(v(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Bu[b(this._r,this._g,this._b,!0)]||!1},toFilter:function(D){var a="#"+x(this._r,this._g,this._b,this._a),F=a,h=this._gradientType?"GradientType = 1, ":"";if(D){var f=n(D);F="#"+x(f._r,f._g,f._b,f._a)}return"progid:DXImageTransform.Microsoft.gradient("+h+"startColorstr="+a+",endColorstr="+F+")"},toString:function(D){var a=!!D;D=D||this._format;var F=!1,h=this._a<1&&this._a>=0,f=!a&&h&&(D==="hex"||D==="hex6"||D==="hex3"||D==="hex4"||D==="hex8"||D==="name");return f?D==="name"&&this._a===0?this.toName():this.toRgbString():(D==="rgb"&&(F=this.toRgbString()),D==="prgb"&&(F=this.toPercentageRgbString()),(D==="hex"||D==="hex6")&&(F=this.toHexString()),D==="hex3"&&(F=this.toHexString(!0)),D==="hex4"&&(F=this.toHex8String(!0)),D==="hex8"&&(F=this.toHex8String()),D==="name"&&(F=this.toName()),D==="hsl"&&(F=this.toHslString()),D==="hsv"&&(F=this.toHsvString()),F||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(D,a){var F=D.apply(null,[this].concat([].slice.call(a)));return this._r=F._r,this._g=F._g,this._b=F._b,this.setAlpha(F._a),this},lighten:function(){return this._applyModification(U,arguments)},brighten:function(){return this._applyModification(Xe,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(P,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(K,arguments)},_applyCombination:function(D,a){return D.apply(null,[this].concat([].slice.call(a)))},analogous:function(){return this._applyCombination(mu,arguments)},complement:function(){return this._applyCombination(Je,arguments)},monochromatic:function(){return this._applyCombination(Eu,arguments)},splitcomplement:function(){return this._applyCombination(de,arguments)},triad:function(){return this._applyCombination(z,[3])},tetrad:function(){return this._applyCombination(z,[4])}},n.fromRatio=function(s,D){if(e(s)=="object"){var a={};for(var F in s)s.hasOwnProperty(F)&&(F==="a"?a[F]=s[F]:a[F]=be(s[F]));s=a}return n(s,D)};function r(s){var D={r:0,g:0,b:0},a=1,F=null,h=null,f=null,E=!1,y=!1;return typeof s=="string"&&(s=vu(s)),e(s)=="object"&&(Y(s.r)&&Y(s.g)&&Y(s.b)?(D=o(s.r,s.g,s.b),E=!0,y=String(s.r).substr(-1)==="%"?"prgb":"rgb"):Y(s.h)&&Y(s.s)&&Y(s.v)?(F=be(s.s),h=be(s.v),D=g(s.h,F,h),E=!0,y="hsv"):Y(s.h)&&Y(s.s)&&Y(s.l)&&(F=be(s.s),f=be(s.l),D=l(s.h,F,f),E=!0,y="hsl"),s.hasOwnProperty("a")&&(a=s.a)),a=Ht(a),{ok:E,format:s.format||y,r:Math.min(255,Math.max(D.r,0)),g:Math.min(255,Math.max(D.g,0)),b:Math.min(255,Math.max(D.b,0)),a}}function o(s,D,a){return{r:v(s,255)*255,g:v(D,255)*255,b:v(a,255)*255}}function i(s,D,a){s=v(s,255),D=v(D,255),a=v(a,255);var F=Math.max(s,D,a),h=Math.min(s,D,a),f,E,y=(F+h)/2;if(F==h)f=E=0;else{var S=F-h;switch(E=y>.5?S/(2-F-h):S/(F+h),F){case s:f=(D-a)/S+(D<a?6:0);break;case D:f=(a-s)/S+2;break;case a:f=(s-D)/S+4;break}f/=6}return{h:f,s:E,l:y}}function l(s,D,a){var F,h,f;s=v(s,360),D=v(D,100),a=v(a,100);function E(L,Ce,q){return q<0&&(q+=1),q>1&&(q-=1),q<1/6?L+(Ce-L)*6*q:q<1/2?Ce:q<2/3?L+(Ce-L)*(2/3-q)*6:L}if(D===0)F=h=f=a;else{var y=a<.5?a*(1+D):a+D-a*D,S=2*a-y;F=E(S,y,s+1/3),h=E(S,y,s),f=E(S,y,s-1/3)}return{r:F*255,g:h*255,b:f*255}}function c(s,D,a){s=v(s,255),D=v(D,255),a=v(a,255);var F=Math.max(s,D,a),h=Math.min(s,D,a),f,E,y=F,S=F-h;if(E=F===0?0:S/F,F==h)f=0;else{switch(F){case s:f=(D-a)/S+(D<a?6:0);break;case D:f=(a-s)/S+2;break;case a:f=(s-D)/S+4;break}f/=6}return{h:f,s:E,v:y}}function g(s,D,a){s=v(s,360)*6,D=v(D,100),a=v(a,100);var F=Math.floor(s),h=s-F,f=a*(1-D),E=a*(1-h*D),y=a*(1-(1-h)*D),S=F%6,L=[a,E,f,f,y,a][S],Ce=[y,a,a,E,f,f][S],q=[f,f,y,a,a,E][S];return{r:L*255,g:Ce*255,b:q*255}}function b(s,D,a,F){var h=[H(Math.round(s).toString(16)),H(Math.round(D).toString(16)),H(Math.round(a).toString(16))];return F&&h[0].charAt(0)==h[0].charAt(1)&&h[1].charAt(0)==h[1].charAt(1)&&h[2].charAt(0)==h[2].charAt(1)?h[0].charAt(0)+h[1].charAt(0)+h[2].charAt(0):h.join("")}function m(s,D,a,F,h){var f=[H(Math.round(s).toString(16)),H(Math.round(D).toString(16)),H(Math.round(a).toString(16)),H(Wt(F))];return h&&f[0].charAt(0)==f[0].charAt(1)&&f[1].charAt(0)==f[1].charAt(1)&&f[2].charAt(0)==f[2].charAt(1)&&f[3].charAt(0)==f[3].charAt(1)?f[0].charAt(0)+f[1].charAt(0)+f[2].charAt(0)+f[3].charAt(0):f.join("")}function x(s,D,a,F){var h=[H(Wt(F)),H(Math.round(s).toString(16)),H(Math.round(D).toString(16)),H(Math.round(a).toString(16))];return h.join("")}n.equals=function(s,D){return!s||!D?!1:n(s).toRgbString()==n(D).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function T(s,D){D=D===0?0:D||10;var a=n(s).toHsl();return a.s-=D/100,a.s=Se(a.s),n(a)}function P(s,D){D=D===0?0:D||10;var a=n(s).toHsl();return a.s+=D/100,a.s=Se(a.s),n(a)}function A(s){return n(s).desaturate(100)}function U(s,D){D=D===0?0:D||10;var a=n(s).toHsl();return a.l+=D/100,a.l=Se(a.l),n(a)}function Xe(s,D){D=D===0?0:D||10;var a=n(s).toRgb();return a.r=Math.max(0,Math.min(255,a.r-Math.round(255*-(D/100)))),a.g=Math.max(0,Math.min(255,a.g-Math.round(255*-(D/100)))),a.b=Math.max(0,Math.min(255,a.b-Math.round(255*-(D/100)))),n(a)}function $(s,D){D=D===0?0:D||10;var a=n(s).toHsl();return a.l-=D/100,a.l=Se(a.l),n(a)}function K(s,D){var a=n(s).toHsl(),F=(a.h+D)%360;return a.h=F<0?360+F:F,n(a)}function Je(s){var D=n(s).toHsl();return D.h=(D.h+180)%360,n(D)}function z(s,D){if(isNaN(D)||D<=0)throw new Error("Argument to polyad must be a positive number");for(var a=n(s).toHsl(),F=[n(s)],h=360/D,f=1;f<D;f++)F.push(n({h:(a.h+f*h)%360,s:a.s,l:a.l}));return F}function de(s){var D=n(s).toHsl(),a=D.h;return[n(s),n({h:(a+72)%360,s:D.s,l:D.l}),n({h:(a+216)%360,s:D.s,l:D.l})]}function mu(s,D,a){D=D||6,a=a||30;var F=n(s).toHsl(),h=360/a,f=[n(s)];for(F.h=(F.h-(h*D>>1)+720)%360;--D;)F.h=(F.h+h)%360,f.push(n(F));return f}function Eu(s,D){D=D||6;for(var a=n(s).toHsv(),F=a.h,h=a.s,f=a.v,E=[],y=1/D;D--;)E.push(n({h:F,s:h,v:f})),f=(f+y)%1;return E}n.mix=function(s,D,a){a=a===0?0:a||50;var F=n(s).toRgb(),h=n(D).toRgb(),f=a/100,E={r:(h.r-F.r)*f+F.r,g:(h.g-F.g)*f+F.g,b:(h.b-F.b)*f+F.b,a:(h.a-F.a)*f+F.a};return n(E)},n.readability=function(s,D){var a=n(s),F=n(D);return(Math.max(a.getLuminance(),F.getLuminance())+.05)/(Math.min(a.getLuminance(),F.getLuminance())+.05)},n.isReadable=function(s,D,a){var F=n.readability(s,D),h,f;switch(f=!1,h=wu(a),h.level+h.size){case"AAsmall":case"AAAlarge":f=F>=4.5;break;case"AAlarge":f=F>=3;break;case"AAAsmall":f=F>=7;break}return f},n.mostReadable=function(s,D,a){var F=null,h=0,f,E,y,S;a=a||{},E=a.includeFallbackColors,y=a.level,S=a.size;for(var L=0;L<D.length;L++)f=n.readability(s,D[L]),f>h&&(h=f,F=n(D[L]));return n.isReadable(s,F,{level:y,size:S})||!E?F:(a.includeFallbackColors=!1,n.mostReadable(s,["#fff","#000"],a))};var Ze=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Bu=n.hexNames=Au(Ze);function Au(s){var D={};for(var a in s)s.hasOwnProperty(a)&&(D[s[a]]=a);return D}function Ht(s){return s=parseFloat(s),(isNaN(s)||s<0||s>1)&&(s=1),s}function v(s,D){yu(s)&&(s="100%");var a=xu(s);return s=Math.min(D,Math.max(0,parseFloat(s))),a&&(s=parseInt(s*D,10)/100),Math.abs(s-D)<1e-6?1:s%D/parseFloat(D)}function Se(s){return Math.min(1,Math.max(0,s))}function R(s){return parseInt(s,16)}function yu(s){return typeof s=="string"&&s.indexOf(".")!=-1&&parseFloat(s)===1}function xu(s){return typeof s=="string"&&s.indexOf("%")!=-1}function H(s){return s.length==1?"0"+s:""+s}function be(s){return s<=1&&(s=s*100+"%"),s}function Wt(s){return Math.round(parseFloat(s)*255).toString(16)}function qt(s){return R(s)/255}var W=function(){var s="[-\\+]?\\d+%?",D="[-\\+]?\\d*\\.\\d+%?",a="(?:"+D+")|(?:"+s+")",F="[\\s|\\(]+("+a+")[,|\\s]+("+a+")[,|\\s]+("+a+")\\s*\\)?",h="[\\s|\\(]+("+a+")[,|\\s]+("+a+")[,|\\s]+("+a+")[,|\\s]+("+a+")\\s*\\)?";return{CSS_UNIT:new RegExp(a),rgb:new RegExp("rgb"+F),rgba:new RegExp("rgba"+h),hsl:new RegExp("hsl"+F),hsla:new RegExp("hsla"+h),hsv:new RegExp("hsv"+F),hsva:new RegExp("hsva"+h),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Y(s){return!!W.CSS_UNIT.exec(s)}function vu(s){s=s.replace(t,"").replace(u,"").toLowerCase();var D=!1;if(Ze[s])s=Ze[s],D=!0;else if(s=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var a;return(a=W.rgb.exec(s))?{r:a[1],g:a[2],b:a[3]}:(a=W.rgba.exec(s))?{r:a[1],g:a[2],b:a[3],a:a[4]}:(a=W.hsl.exec(s))?{h:a[1],s:a[2],l:a[3]}:(a=W.hsla.exec(s))?{h:a[1],s:a[2],l:a[3],a:a[4]}:(a=W.hsv.exec(s))?{h:a[1],s:a[2],v:a[3]}:(a=W.hsva.exec(s))?{h:a[1],s:a[2],v:a[3],a:a[4]}:(a=W.hex8.exec(s))?{r:R(a[1]),g:R(a[2]),b:R(a[3]),a:qt(a[4]),format:D?"name":"hex8"}:(a=W.hex6.exec(s))?{r:R(a[1]),g:R(a[2]),b:R(a[3]),format:D?"name":"hex"}:(a=W.hex4.exec(s))?{r:R(a[1]+""+a[1]),g:R(a[2]+""+a[2]),b:R(a[3]+""+a[3]),a:qt(a[4]+""+a[4]),format:D?"name":"hex8"}:(a=W.hex3.exec(s))?{r:R(a[1]+""+a[1]),g:R(a[2]+""+a[2]),b:R(a[3]+""+a[3]),format:D?"name":"hex"}:!1}function wu(s){var D,a;return s=s||{level:"AA",size:"small"},D=(s.level||"AA").toUpperCase(),a=(s.size||"small").toLowerCase(),D!=="AA"&&D!=="AAA"&&(D="AA"),a!=="small"&&a!=="large"&&(a="small"),{level:D,size:a}}return n})});var cu=j((oi,lu)=>{"use strict";var we=ru(),au={r:256,g:256,b:256,a:1},Du={h:360,s:1,v:1,a:1};function Ot(e,t,u){let n={};for(let r in e)e.hasOwnProperty(r)&&(n[r]=u===0?0:(t[r]-e[r])/u);return n}function Pt(e,t,u,n){let r={};for(let o in t)t.hasOwnProperty(o)&&(r[o]=e[o]*u+t[o],r[o]=r[o]<0?r[o]+n[o]:n[o]!==1?r[o]%n[o]:r[o]);return r}function Tt(e,t,u){let n=e.color.toRgb(),r=t.color.toRgb(),o=Ot(n,r,u),i=[e.color];for(let l=1;l<u;l++){let c=Pt(o,n,l,au);i.push(we(c))}return i}function ou(e,t,u,n){let r=e.color.toHsv(),o=t.color.toHsv();if(r.s===0||o.s===0)return Tt(e,t,u);let i;if(typeof n=="boolean")i=n;else{let b=r.h<o.h&&o.h-r.h<180||r.h>o.h&&r.h-o.h>180;i=n==="long"&&b||n==="short"&&!b}let l=Ot(r,o,u),c=[e.color],g;r.h<=o.h&&!i||r.h>=o.h&&i?g=o.h-r.h:i?g=360-o.h+r.h:g=360-r.h+o.h,l.h=Math.pow(-1,i?1:0)*Math.abs(g)/u;for(let b=1;b<u;b++){let m=Pt(l,r,b,Du);c.push(we(m))}return c}function su(e,t){let u=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<u)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let o=1;o<u;o++){let i=(t-1)*(e[o].pos-e[o-1].pos);n.push(Math.max(1,Math.round(i)))}let r=1;for(let o=u-1;o--;)r+=n[o];for(;r!==t;)if(r<t){let o=Math.min.apply(null,n);n[n.indexOf(o)]++,r++}else{let o=Math.max.apply(null,n);n[n.indexOf(o)]--,r--}return n}function iu(e,t,u,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let r,o;for(let c=0,g=e.length;c<g-1;c++)if(t>=e[c].pos&&t<e[c+1].pos){r=e[c],o=e[c+1];break}r||(r=o=e[e.length-1]);let i=Ot(r.color[u](),o.color[u](),(o.pos-r.pos)*100),l=Pt(i,r.color[u](),(t-r.pos)*100,n);return we(l)}var $t=class e{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let u=t[0].pos!==void 0,n=t.length,r=-1,o=!1;this.stops=t.map((i,l)=>{let c=i.pos!==void 0;if(u^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let g=i.color!==void 0;if(!g&&(o||l===0||l===n-1))throw new Error("Cannot define two consecutive position-only stops");if(o=!g,i={color:g?we(i.color):null,colorLess:!g,pos:i.pos},i.pos<0||i.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(i.pos<r)throw new Error("Color stops positions are not ordered");r=i.pos}else i={color:we(i.color!==void 0?i.color:i),pos:l/(n-1)};return i}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(u){t.push({color:u.color,pos:1-u.pos})}),new e(t.reverse())}loop(){let t=[],u=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{u.push({color:n.color,pos:1-n.pos/2})}),new e(t.concat(u.reverse()))}rgb(t){let u=su(this.stops,t),n=[];this.stops.forEach((r,o)=>{r.colorLess&&(r.color=Tt(this.stops[o-1],this.stops[o+1],2)[1])});for(let r=0,o=this.stops.length;r<o-1;r++){let i=Tt(this.stops[r],this.stops[r+1],u[r]);n.splice(n.length,0,...i)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,u){let n=su(this.stops,t),r=[];this.stops.forEach((o,i)=>{o.colorLess&&(o.color=ou(this.stops[i-1],this.stops[i+1],2,u)[1])});for(let o=0,i=this.stops.length;o<i-1;o++){let l=ou(this.stops[o],this.stops[o+1],n[o],u);r.splice(r.length,0,...l)}return r.push(this.stops[this.stops.length-1].color),r}css(t,u){t=t||"linear",u=u||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+u;return this.stops.forEach(function(r){n+=", "+(r.colorLess?"":r.color.toRgbString()+" ")+r.pos*100+"%"}),n+=")",n}rgbAt(t){return iu(this.stops,t,"toRgb",au)}hsvAt(t){return iu(this.stops,t,"toHsv",Du)}};lu.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new $t(e)}});var pu=j((si,Ke)=>{"use strict";var fu=uu(),Eo=cu(),Fu=/\s/g;function It(...e){let t=Eo.apply(this,e),u=(n,r)=>Bo(n?n.toString():"",t,r);return u.multiline=(n,r)=>Ao(n?n.toString():"",t,r),u}var hu=(e,t,u)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(u,t.hsvSpin.toLowerCase()):e.rgb(u);function Bo(e,t,u){let n=gu(u),r=Math.max(e.replace(Fu,"").length,t.stops.length),o=hu(t,n,r),i="";for(let l of e)i+=l.match(Fu)?l:fu.hex(o.shift().toHex())(l);return i}function Ao(e,t,u){let n=gu(u),r=e.split(` `),o=Math.max.apply(null,r.map(c=>c.length).concat([t.stops.length])),i=hu(t,n,o),l=[];for(let c of r){let g=i.slice(0),b="";for(let m of c)b+=fu.hex(g.shift().toHex())(m);l.push(b)}return l.join(` `)}function gu(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var ke={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};Ke.exports=It;for(let e in ke)Ke.exports[e]=t=>new It(ke[e].colors)(t,ke[e].options),Ke.exports[e].multiline=t=>new It(ke[e].colors).multiline(t,ke[e].options)});import*as _ from"@clack/prompts";import*as d from"picocolors";import{spawn as yo,execSync as xo}from"child_process";import{Command as vo}from"commander";import{cpus as Me}from"os";import Bn from"node:process";var ye={};Ou(ye,{beep:()=>ar,clearScreen:()=>rr,clearTerminal:()=>or,cursorBackward:()=>Wu,cursorDown:()=>Gu,cursorForward:()=>Hu,cursorGetPosition:()=>zu,cursorHide:()=>Yu,cursorLeft:()=>Yt,cursorMove:()=>Lu,cursorNextLine:()=>Vu,cursorPrevLine:()=>Ku,cursorRestorePosition:()=>Uu,cursorSavePosition:()=>qu,cursorShow:()=>Xu,cursorTo:()=>Nu,cursorUp:()=>Kt,enterAlternativeScreen:()=>sr,eraseDown:()=>er,eraseEndLine:()=>Zu,eraseLine:()=>Xt,eraseLines:()=>Ju,eraseScreen:()=>tt,eraseStartLine:()=>Qu,eraseUp:()=>tr,exitAlternativeScreen:()=>ir,iTerm:()=>cr,image:()=>lr,link:()=>Dr,scrollDown:()=>ur,scrollUp:()=>nr});import nt from"node:process";var Te=globalThis.window?.document!==void 0,$o=globalThis.process?.versions?.node!==void 0,Oo=globalThis.process?.versions?.bun!==void 0,Po=globalThis.Deno?.version?.deno!==void 0,Io=globalThis.process?.versions?.electron!==void 0,Ro=globalThis.navigator?.userAgent?.includes("jsdom")===!0,jo=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,No=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,Lo=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,Go=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,Ee=globalThis.navigator?.userAgentData?.platform,Ho=Ee==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",Wo=Ee==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",qo=Ee==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",Uo=Ee==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),zo=Ee==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android";var B="\x1B[",Ae="\x1B]",ie="\x07",Be=";",Vt=!Te&&nt.env.TERM_PROGRAM==="Apple_Terminal",Ru=!Te&&nt.platform==="win32",ju=Te?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:nt.cwd,Nu=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?B+(e+1)+"G":B+(t+1)+Be+(e+1)+"H"},Lu=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let u="";return e<0?u+=B+-e+"D":e>0&&(u+=B+e+"C"),t<0?u+=B+-t+"A":t>0&&(u+=B+t+"B"),u},Kt=(e=1)=>B+e+"A",Gu=(e=1)=>B+e+"B",Hu=(e=1)=>B+e+"C",Wu=(e=1)=>B+e+"D",Yt=B+"G",qu=Vt?"\x1B7":B+"s",Uu=Vt?"\x1B8":B+"u",zu=B+"6n",Vu=B+"E",Ku=B+"F",Yu=B+"?25l",Xu=B+"?25h",Ju=e=>{let t="";for(let u=0;u<e;u++)t+=Xt+(u<e-1?Kt():"");return e&&(t+=Yt),t},Zu=B+"K",Qu=B+"1K",Xt=B+"2K",er=B+"J",tr=B+"1J",tt=B+"2J",nr=B+"S",ur=B+"T",rr="\x1Bc",or=Ru?`${tt}${B}0f`:`${tt}${B}3J${B}H`,sr=B+"?1049h",ir=B+"?1049l",ar=ie,Dr=(e,t)=>[Ae,"8",Be,Be,t,ie,e,Ae,"8",Be,Be,ie].join(""),lr=(e,t={})=>{let u=`${Ae}1337;File=inline=1`;return t.width&&(u+=`;width=${t.width}`),t.height&&(u+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(u+=";preserveAspectRatio=0"),u+":"+Buffer.from(e).toString("base64")+ie},cr={setCwd:(e=ju())=>`${Ae}50;CurrentDir=${e}${ie}`,annotation(e,t={}){let u=`${Ae}1337;`,n=t.x!==void 0,r=t.y!==void 0;if((n||r)&&!(n&&r&&t.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replaceAll("|",""),u+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?u+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):u+=e,u+ie}};import rn from"node:process";import Re from"node:process";var Fr=(e,t,u,n)=>{if(u==="length"||u==="prototype"||u==="arguments"||u==="caller")return;let r=Object.getOwnPropertyDescriptor(e,u),o=Object.getOwnPropertyDescriptor(t,u);!fr(r,o)&&n||Object.defineProperty(e,u,o)},fr=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},hr=(e,t)=>{let u=Object.getPrototypeOf(t);u!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,u)},gr=(e,t)=>`/* Wrapped ${e}*/ ${t}`,pr=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),dr=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),br=(e,t,u)=>{let n=u===""?"":`with ${u.trim()}() `,r=gr.bind(null,n,t.toString());Object.defineProperty(r,"name",dr);let{writable:o,enumerable:i,configurable:l}=pr;Object.defineProperty(e,"toString",{val