UNPKG

vibe-tools

Version:
63 lines (60 loc) 99.7 kB
import { createRequire } from 'module'; const require = createRequire(import.meta.url); var du=Object.defineProperty;var i=(u,e)=>du(u,"name",{value:e,configurable:!0});var rD=(u,e)=>()=>(u&&(e=u(u=0)),e);var iD=(u,e)=>{for(var t in e)du(u,t,{get:e[t],enumerable:!0})};var Yu={};iD(Yu,{kCancel:()=>Wu,prompt:()=>qu});import"node:util";import A,{stdin as wD,stdout as xD}from"node:process";import yu from"node:readline";import{WriteStream as _D}from"node:tty";function ID(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function $D(){if(wu)return uu;wu=1;let u="\x1B",e=`${u}[`,t="\x07",o={to(D,n){return n?`${e}${n+1};${D+1}H`:`${e}${D+1}G`},move(D,n){let a="";return D<0?a+=`${e}${-D}D`:D>0&&(a+=`${e}${D}C`),n<0?a+=`${e}${-n}A`:n>0&&(a+=`${e}${n}B`),a},up:i((D=1)=>`${e}${D}A`,"up"),down:i((D=1)=>`${e}${D}B`,"down"),forward:i((D=1)=>`${e}${D}C`,"forward"),backward:i((D=1)=>`${e}${D}D`,"backward"),nextLine:i((D=1)=>`${e}E`.repeat(D),"nextLine"),prevLine:i((D=1)=>`${e}F`.repeat(D),"prevLine"),left:`${e}G`,hide:`${e}?25l`,show:`${e}?25h`,save:`${u}7`,restore:`${u}8`},r={up:i((D=1)=>`${e}S`.repeat(D),"up"),down:i((D=1)=>`${e}T`.repeat(D),"down")},s={screen:`${e}2J`,up:i((D=1)=>`${e}1J`.repeat(D),"up"),down:i((D=1)=>`${e}J`.repeat(D),"down"),line:`${e}2K`,lineEnd:`${e}K`,lineStart:`${e}1K`,lines(D){let n="";for(let a=0;a<D;a++)n+=this.line+(a<D-1?o.up():"");return D&&(n+=o.left),n}};return uu={cursor:o,scroll:r,erase:s,beep:t},uu}function TD(){if(xu)return M.exports;xu=1;let u=process||{},e=u.argv||[],t=u.env||{},o=!(t.NO_COLOR||e.includes("--no-color"))&&(!!t.FORCE_COLOR||e.includes("--color")||u.platform==="win32"||(u.stdout||{}).isTTY&&t.TERM!=="dumb"||!!t.CI),r=i((n,a,C=n)=>E=>{let c=""+E,d=c.indexOf(a,n.length);return~d?n+s(c,a,C,d)+a:n+c+a},"formatter"),s=i((n,a,C,E)=>{let c="",d=0;do c+=n.substring(d,E)+C,d=E+a.length,E=n.indexOf(a,d);while(~E);return c+n.substring(d)},"replaceClose"),D=i((n=o)=>{let a=n?r:()=>String;return{isColorSupported:n,reset:a("\x1B[0m","\x1B[0m"),bold:a("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:a("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:a("\x1B[3m","\x1B[23m"),underline:a("\x1B[4m","\x1B[24m"),inverse:a("\x1B[7m","\x1B[27m"),hidden:a("\x1B[8m","\x1B[28m"),strikethrough:a("\x1B[9m","\x1B[29m"),black:a("\x1B[30m","\x1B[39m"),red:a("\x1B[31m","\x1B[39m"),green:a("\x1B[32m","\x1B[39m"),yellow:a("\x1B[33m","\x1B[39m"),blue:a("\x1B[34m","\x1B[39m"),magenta:a("\x1B[35m","\x1B[39m"),cyan:a("\x1B[36m","\x1B[39m"),white:a("\x1B[37m","\x1B[39m"),gray:a("\x1B[90m","\x1B[39m"),bgBlack:a("\x1B[40m","\x1B[49m"),bgRed:a("\x1B[41m","\x1B[49m"),bgGreen:a("\x1B[42m","\x1B[49m"),bgYellow:a("\x1B[43m","\x1B[49m"),bgBlue:a("\x1B[44m","\x1B[49m"),bgMagenta:a("\x1B[45m","\x1B[49m"),bgCyan:a("\x1B[46m","\x1B[49m"),bgWhite:a("\x1B[47m","\x1B[49m"),blackBright:a("\x1B[90m","\x1B[39m"),redBright:a("\x1B[91m","\x1B[39m"),greenBright:a("\x1B[92m","\x1B[39m"),yellowBright:a("\x1B[93m","\x1B[39m"),blueBright:a("\x1B[94m","\x1B[39m"),magentaBright:a("\x1B[95m","\x1B[39m"),cyanBright:a("\x1B[96m","\x1B[39m"),whiteBright:a("\x1B[97m","\x1B[39m"),bgBlackBright:a("\x1B[100m","\x1B[49m"),bgRedBright:a("\x1B[101m","\x1B[49m"),bgGreenBright:a("\x1B[102m","\x1B[49m"),bgYellowBright:a("\x1B[103m","\x1B[49m"),bgBlueBright:a("\x1B[104m","\x1B[49m"),bgMagentaBright:a("\x1B[105m","\x1B[49m"),bgCyanBright:a("\x1B[106m","\x1B[49m"),bgWhiteBright:a("\x1B[107m","\x1B[49m")}},"createColors");return M.exports=D(),M.exports.createColors=D,M.exports}function kD({onlyFirst:u=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(e,u?void 0:"g")}function Mu(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(OD,"")}function Nu(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}function L(u,e={}){if(typeof u!="string"||u.length===0||(e={ambiguousIsNarrow:!0,...e},u=Mu(u),u.length===0))return 0;u=u.replace(MD()," ");let t=e.ambiguousIsNarrow?1:2,o=0;for(let r of u){let s=r.codePointAt(0);if(!(s<=31||s>=127&&s<=159||s>=768&&s<=879))switch(RD.eastAsianWidth(r)){case"F":case"W":o+=2;break;case"A":o+=t;break;default:o+=1}}return o}function GD(){let u=new Map;for(let[e,t]of Object.entries(p)){for(let[o,r]of Object.entries(t))p[o]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},t[o]=p[o],u.set(r[0],r[1]);Object.defineProperty(p,e,{value:t,enumerable:!1})}return Object.defineProperty(p,"codes",{value:u,enumerable:!1}),p.color.close="\x1B[39m",p.bgColor.close="\x1B[49m",p.color.ansi=_u(),p.color.ansi256=Iu(),p.color.ansi16m=$u(),p.bgColor.ansi=_u(Du),p.bgColor.ansi256=Iu(Du),p.bgColor.ansi16m=$u(Du),Object.defineProperties(p,{rgbToAnsi256:{value:i((e,t,o)=>e===t&&t===o?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(o/255*5),"value"),enumerable:!1},hexToRgb:{value:i(e=>{let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[o]=t;o.length===3&&(o=[...o].map(s=>s+s).join(""));let r=Number.parseInt(o,16);return[r>>16&255,r>>8&255,r&255]},"value"),enumerable:!1},hexToAnsi256:{value:i(e=>p.rgbToAnsi256(...p.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value:i(e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,o,r;if(e>=232)t=((e-232)*10+8)/255,o=t,r=t;else{e-=16;let n=e%36;t=Math.floor(e/36)/5,o=Math.floor(n/6)/5,r=n%6/5}let s=Math.max(t,o,r)*2;if(s===0)return 30;let D=30+(Math.round(r)<<2|Math.round(o)<<1|Math.round(t));return s===2&&(D+=60),D},"value"),enumerable:!1},rgbToAnsi:{value:i((e,t,o)=>p.ansi256ToAnsi(p.rgbToAnsi256(e,t,o)),"value"),enumerable:!1},hexToAnsi:{value:i(e=>p.ansi256ToAnsi(p.hexToAnsi256(e)),"value"),enumerable:!1}}),p}function ku(u,e,t){return String(u).normalize().replace(/\r\n/g,` `).split(` `).map(o=>HD(o,e,t)).join(` `)}function ju(u,e){if(typeof u=="string")return U.aliases.get(u)===e;for(let t of u)if(t!==void 0&&ju(t,e))return!0;return!1}function KD(u,e){if(u===e)return;let t=u.split(` `),o=e.split(` `),r=[];for(let s=0;s<Math.max(t.length,o.length);s++)t[s]!==o[s]&&r.push(s);return r}function N(u,e){let t=u;t.isTTY&&t.setRawMode(e)}function te(){return A.platform!=="win32"?A.env.TERM!=="linux":!!A.env.CI||!!A.env.WT_SESSION||!!A.env.TERMINUS_SUBLIME||A.env.ConEmuTask==="{cmd::Cmder}"||A.env.TERM_PROGRAM==="Terminus-Sublime"||A.env.TERM_PROGRAM==="vscode"||A.env.TERM==="xterm-256color"||A.env.TERM==="alacritty"||A.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}async function qu(u,e={}){let t=i(o=>{if(typeof o!="symbol"||o.toString()!=="Symbol(clack:cancel)")return o;switch(e.cancel){case"reject":{let r=new Error("Prompt cancelled.");throw r.name="ConsolaPromptCancelledError",Error.captureStackTrace&&Error.captureStackTrace(r,qu),r}case"undefined":return;case"null":return null;case"symbol":return Wu;default:case"default":return e.default??e.initial}},"handleCancel");if(!e.type||e.type==="text")return await le({message:u,defaultValue:e.default,placeholder:e.placeholder,initialValue:e.initial}).then(t);if(e.type==="confirm")return await ce({message:u,initialValue:e.initial}).then(t);if(e.type==="select")return await Ce({message:u,options:e.options.map(o=>typeof o=="string"?{value:o,label:o}:o),initialValue:e.initial}).then(t);if(e.type==="multiselect")return await Ee({message:u,options:e.options.map(o=>typeof o=="string"?{value:o,label:o}:o),required:e.required,initialValues:e.initial}).then(t);throw new Error(`Unknown prompt type: ${e.type}`)}var uu,wu,v,M,xu,SD,F,OD,Uu,LD,RD,PD,MD,Du,_u,Iu,$u,p,ND,UD,VD,G,jD,au,Gu,WD,Vu,Fu,Tu,Su,qD,eu,YD,HD,zD,U,Ou,JD,ZD,b,S,tu,XD,QD,Lu,ue,De,ee,Ru,ou,ru,oe,y,re,ie,se,ne,h,k,iu,su,ae,Pu,Fe,V,nu,le,ce,Ce,Ee,Wu,Hu=rD(()=>{i(ID,"getDefaultExportFromCjs");i($D,"requireSrc");v=$D(),M={exports:{}};i(TD,"requirePicocolors");SD=TD(),F=ID(SD);i(kD,"J");OD=kD();i(Mu,"T$1");i(Nu,"O");Uu={exports:{}};(function(u){var e={};u.exports=e,e.eastAsianWidth=function(o){var r=o.charCodeAt(0),s=o.length==2?o.charCodeAt(1):0,D=r;return 55296<=r&&r<=56319&&56320<=s&&s<=57343&&(r&=1023,s&=1023,D=r<<10|s,D+=65536),D==12288||65281<=D&&D<=65376||65504<=D&&D<=65510?"F":D==8361||65377<=D&&D<=65470||65474<=D&&D<=65479||65482<=D&&D<=65487||65490<=D&&D<=65495||65498<=D&&D<=65500||65512<=D&&D<=65518?"H":4352<=D&&D<=4447||4515<=D&&D<=4519||4602<=D&&D<=4607||9001<=D&&D<=9002||11904<=D&&D<=11929||11931<=D&&D<=12019||12032<=D&&D<=12245||12272<=D&&D<=12283||12289<=D&&D<=12350||12353<=D&&D<=12438||12441<=D&&D<=12543||12549<=D&&D<=12589||12593<=D&&D<=12686||12688<=D&&D<=12730||12736<=D&&D<=12771||12784<=D&&D<=12830||12832<=D&&D<=12871||12880<=D&&D<=13054||13056<=D&&D<=19903||19968<=D&&D<=42124||42128<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||55216<=D&&D<=55238||55243<=D&&D<=55291||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65106||65108<=D&&D<=65126||65128<=D&&D<=65131||110592<=D&&D<=110593||127488<=D&&D<=127490||127504<=D&&D<=127546||127552<=D&&D<=127560||127568<=D&&D<=127569||131072<=D&&D<=194367||177984<=D&&D<=196605||196608<=D&&D<=262141?"W":32<=D&&D<=126||162<=D&&D<=163||165<=D&&D<=166||D==172||D==175||10214<=D&&D<=10221||10629<=D&&D<=10630?"Na":D==161||D==164||167<=D&&D<=168||D==170||173<=D&&D<=174||176<=D&&D<=180||182<=D&&D<=186||188<=D&&D<=191||D==198||D==208||215<=D&&D<=216||222<=D&&D<=225||D==230||232<=D&&D<=234||236<=D&&D<=237||D==240||242<=D&&D<=243||247<=D&&D<=250||D==252||D==254||D==257||D==273||D==275||D==283||294<=D&&D<=295||D==299||305<=D&&D<=307||D==312||319<=D&&D<=322||D==324||328<=D&&D<=331||D==333||338<=D&&D<=339||358<=D&&D<=359||D==363||D==462||D==464||D==466||D==468||D==470||D==472||D==474||D==476||D==593||D==609||D==708||D==711||713<=D&&D<=715||D==717||D==720||728<=D&&D<=731||D==733||D==735||768<=D&&D<=879||913<=D&&D<=929||931<=D&&D<=937||945<=D&&D<=961||963<=D&&D<=969||D==1025||1040<=D&&D<=1103||D==1105||D==8208||8211<=D&&D<=8214||8216<=D&&D<=8217||8220<=D&&D<=8221||8224<=D&&D<=8226||8228<=D&&D<=8231||D==8240||8242<=D&&D<=8243||D==8245||D==8251||D==8254||D==8308||D==8319||8321<=D&&D<=8324||D==8364||D==8451||D==8453||D==8457||D==8467||D==8470||8481<=D&&D<=8482||D==8486||D==8491||8531<=D&&D<=8532||8539<=D&&D<=8542||8544<=D&&D<=8555||8560<=D&&D<=8569||D==8585||8592<=D&&D<=8601||8632<=D&&D<=8633||D==8658||D==8660||D==8679||D==8704||8706<=D&&D<=8707||8711<=D&&D<=8712||D==8715||D==8719||D==8721||D==8725||D==8730||8733<=D&&D<=8736||D==8739||D==8741||8743<=D&&D<=8748||D==8750||8756<=D&&D<=8759||8764<=D&&D<=8765||D==8776||D==8780||D==8786||8800<=D&&D<=8801||8804<=D&&D<=8807||8810<=D&&D<=8811||8814<=D&&D<=8815||8834<=D&&D<=8835||8838<=D&&D<=8839||D==8853||D==8857||D==8869||D==8895||D==8978||9312<=D&&D<=9449||9451<=D&&D<=9547||9552<=D&&D<=9587||9600<=D&&D<=9615||9618<=D&&D<=9621||9632<=D&&D<=9633||9635<=D&&D<=9641||9650<=D&&D<=9651||9654<=D&&D<=9655||9660<=D&&D<=9661||9664<=D&&D<=9665||9670<=D&&D<=9672||D==9675||9678<=D&&D<=9681||9698<=D&&D<=9701||D==9711||9733<=D&&D<=9734||D==9737||9742<=D&&D<=9743||9748<=D&&D<=9749||D==9756||D==9758||D==9792||D==9794||9824<=D&&D<=9825||9827<=D&&D<=9829||9831<=D&&D<=9834||9836<=D&&D<=9837||D==9839||9886<=D&&D<=9887||9918<=D&&D<=9919||9924<=D&&D<=9933||9935<=D&&D<=9953||D==9955||9960<=D&&D<=9983||D==10045||D==10071||10102<=D&&D<=10111||11093<=D&&D<=11097||12872<=D&&D<=12879||57344<=D&&D<=63743||65024<=D&&D<=65039||D==65533||127232<=D&&D<=127242||127248<=D&&D<=127277||127280<=D&&D<=127337||127344<=D&&D<=127386||917760<=D&&D<=917999||983040<=D&&D<=1048573||1048576<=D&&D<=1114109?"A":"N"},e.characterLength=function(o){var r=this.eastAsianWidth(o);return r=="F"||r=="W"||r=="A"?2:1};function t(o){return o.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}i(t,"F"),e.length=function(o){for(var r=t(o),s=0,D=0;D<r.length;D++)s=s+this.characterLength(r[D]);return s},e.slice=function(o,r,s){textLen=e.length(o),r=r||0,s=s||1,r<0&&(r=textLen+r),s<0&&(s=textLen+s);for(var D="",n=0,a=t(o),C=0;C<a.length;C++){var E=a[C],c=e.length(E);if(n>=r-(c==2?1:0))if(n+c<=s)D+=E;else break;n+=c}return D}})(Uu);LD=Uu.exports,RD=Nu(LD),PD=i(function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\u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\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(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DEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934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39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},"uD"),MD=Nu(PD);i(L,"A$1");Du=10,_u=i((u=0)=>e=>`\x1B[${e+u}m`,"L$1"),Iu=i((u=0)=>e=>`\x1B[${38+u};5;${e}m`,"N"),$u=i((u=0)=>(e,t,o)=>`\x1B[${38+u};2;${e};${t};${o}m`,"I"),p={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(p.modifier);ND=Object.keys(p.color),UD=Object.keys(p.bgColor);[...ND,...UD];i(GD,"sD");VD=GD(),G=new Set(["\x1B","\x9B"]),jD=39,au="\x07",Gu="[",WD="]",Vu="m",Fu=`${WD}8;;`,Tu=i(u=>`${G.values().next().value}${Gu}${u}${Vu}`,"V$1"),Su=i(u=>`${G.values().next().value}${Fu}${u}${au}`,"z"),qD=i(u=>u.split(" ").map(e=>L(e)),"ED"),eu=i((u,e,t)=>{let o=[...e],r=!1,s=!1,D=L(Mu(u[u.length-1]));for(let[n,a]of o.entries()){let C=L(a);if(D+C<=t?u[u.length-1]+=a:(u.push(a),D=0),G.has(a)&&(r=!0,s=o.slice(n+1).join("").startsWith(Fu)),r){s?a===au&&(r=!1,s=!1):a===Vu&&(r=!1);continue}D+=C,D===t&&n<o.length-1&&(u.push(""),D=0)}!D&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"_"),YD=i(u=>{let e=u.split(" "),t=e.length;for(;t>0&&!(L(e[t-1])>0);)t--;return t===e.length?u:e.slice(0,t).join(" ")+e.slice(t).join("")},"nD"),HD=i((u,e,t={})=>{if(t.trim!==!1&&u.trim()==="")return"";let o="",r,s,D=qD(u),n=[""];for(let[C,E]of u.split(" ").entries()){t.trim!==!1&&(n[n.length-1]=n[n.length-1].trimStart());let c=L(n[n.length-1]);if(C!==0&&(c>=e&&(t.wordWrap===!1||t.trim===!1)&&(n.push(""),c=0),(c>0||t.trim===!1)&&(n[n.length-1]+=" ",c++)),t.hard&&D[C]>e){let d=e-c,m=1+Math.floor((D[C]-d-1)/e);Math.floor((D[C]-1)/e)<m&&n.push(""),eu(n,E,e);continue}if(c+D[C]>e&&c>0&&D[C]>0){if(t.wordWrap===!1&&c<e){eu(n,E,e);continue}n.push("")}if(c+D[C]>e&&t.wordWrap===!1){eu(n,E,e);continue}n[n.length-1]+=E}t.trim!==!1&&(n=n.map(C=>YD(C)));let a=[...n.join(` `)];for(let[C,E]of a.entries()){if(o+=E,G.has(E)){let{groups:d}=new RegExp(`(?:\\${Gu}(?<code>\\d+)m|\\${Fu}(?<uri>.*)${au})`).exec(a.slice(C).join(""))||{groups:{}};if(d.code!==void 0){let m=Number.parseFloat(d.code);r=m===jD?void 0:m}else d.uri!==void 0&&(s=d.uri.length===0?void 0:d.uri)}let c=VD.codes.get(Number(r));a[C+1]===` `?(s&&(o+=Su("")),r&&c&&(o+=Tu(c))):E===` `&&(r&&c&&(o+=Tu(r)),s&&(o+=Su(s)))}return o},"oD");i(ku,"G");zD=["up","down","left","right","space","enter","cancel"],U={actions:new Set(zD),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};i(ju,"k$1");i(KD,"lD");globalThis.process.platform.startsWith("win");Ou=Symbol("clack:cancel");i(N,"d$1");JD=Object.defineProperty,ZD=i((u,e,t)=>e in u?JD(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,"pD"),b=i((u,e,t)=>(ZD(u,typeof e!="symbol"?e+"":e,t),t),"h"),S=class{static{i(this,"x")}constructor(e,t=!0){b(this,"input"),b(this,"output"),b(this,"_abortSignal"),b(this,"rl"),b(this,"opts"),b(this,"_render"),b(this,"_track",!1),b(this,"_prevFrame",""),b(this,"_subscribers",new Map),b(this,"_cursor",0),b(this,"state","initial"),b(this,"error",""),b(this,"value");let{input:o=wD,output:r=xD,render:s,signal:D,...n}=e;this.opts=n,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=s.bind(this),this._track=t,this._abortSignal=D,this.input=o,this.output=r}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){let o=this._subscribers.get(e)??[];o.push(t),this._subscribers.set(e,o)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){let o=this._subscribers.get(e)??[],r=[];for(let s of o)s.cb(...t),s.once&&r.push(()=>o.splice(o.indexOf(s),1));for(let s of r)s()}prompt(){return new Promise((e,t)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),e(Ou);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let o=new _D(0);o._write=(r,s,D)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),D()},this.input.pipe(o),this.rl=yu.createInterface({input:this.input,output:o,tabSize:2,prompt:"",escapeCodeTimeout:50}),yu.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),N(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(v.cursor.show),this.output.off("resize",this.render),N(this.input,!1),e(this.value)}),this.once("cancel",()=>{this.output.write(v.cursor.show),this.output.off("resize",this.render),N(this.input,!1),e(Ou)})})}onKeypress(e,t){if(this.state==="error"&&(this.state="active"),t?.name&&(!this._track&&U.aliases.has(t.name)&&this.emit("cursor",U.aliases.get(t.name)),U.actions.has(t.name)&&this.emit("cursor",t.name)),e&&(e.toLowerCase()==="y"||e.toLowerCase()==="n")&&this.emit("confirm",e.toLowerCase()==="y"),e===" "&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),e&&this.emit("key",e.toLowerCase()),t?.name==="return"){if(this.opts.validate){let o=this.opts.validate(this.value);o&&(this.error=o instanceof Error?o.message:o,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}ju([e,t?.name,t?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(` `),N(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let e=ku(this._prevFrame,process.stdout.columns,{hard:!0}).split(` `).length-1;this.output.write(v.cursor.move(-999,e*-1))}render(){let e=ku(this._render(this)??"",process.stdout.columns,{hard:!0});if(e!==this._prevFrame){if(this.state==="initial")this.output.write(v.cursor.hide);else{let t=KD(this._prevFrame,e);if(this.restoreCursor(),t&&t?.length===1){let o=t[0];this.output.write(v.cursor.move(0,o)),this.output.write(v.erase.lines(1));let r=e.split(` `);this.output.write(r[o]),this._prevFrame=e,this.output.write(v.cursor.move(0,r.length-o-1));return}if(t&&t?.length>1){let o=t[0];this.output.write(v.cursor.move(0,o)),this.output.write(v.erase.down());let r=e.split(` `).slice(o);this.output.write(r.join(` `)),this._prevFrame=e;return}this.output.write(v.erase.down())}this.output.write(e),this.state==="initial"&&(this.state="active"),this._prevFrame=e}}},tu=class extends S{static{i(this,"fD")}get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",t=>{this.output.write(v.cursor.move(0,-1)),this.value=t,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}},XD=Object.defineProperty,QD=i((u,e,t)=>e in u?XD(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,"mD"),Lu=i((u,e,t)=>(QD(u,typeof e!="symbol"?e+"":e,t),t),"Y"),ue=class extends S{static{i(this,"wD")}constructor(u){super(u,!1),Lu(this,"options"),Lu(this,"cursor",0),this.options=u.options,this.value=[...u.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:e})=>e===u.cursorAt),0),this.on("key",e=>{e==="a"&&this.toggleAll()}),this.on("cursor",e=>{switch(e){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}get _value(){return this.options[this.cursor].value}toggleAll(){let u=this.value.length===this.options.length;this.value=u?[]:this.options.map(e=>e.value)}toggleValue(){let u=this.value.includes(this._value);this.value=u?this.value.filter(e=>e!==this._value):[...this.value,this._value]}},De=Object.defineProperty,ee=i((u,e,t)=>e in u?De(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,"$D"),Ru=i((u,e,t)=>(ee(u,typeof e!="symbol"?e+"":e,t),t),"q"),ou=class extends S{static{i(this,"jD")}constructor(e){super(e,!1),Ru(this,"options"),Ru(this,"cursor",0),this.options=e.options,this.cursor=this.options.findIndex(({value:t})=>t===e.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",t=>{switch(t){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}},ru=class extends S{static{i(this,"PD")}get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let e=this.value.slice(0,this.cursor),[t,...o]=this.value.slice(this.cursor);return`${e}${F.inverse(t)}${o.join("")}`}get cursor(){return this._cursor}constructor(e){super(e),this.on("finalize",()=>{this.value||(this.value=e.defaultValue)})}};i(te,"ce");oe=te(),y=i((u,e)=>oe?u:e,"u"),re=y("\u276F",">"),ie=y("\u25A0","x"),se=y("\u25B2","x"),ne=y("\u2714","\u221A"),h=y(""),k=y(""),iu=y("\u25CF",">"),su=y("\u25CB"," "),ae=y("\u25FB","[\u2022]"),Pu=y("\u25FC","[+]"),Fe=y("\u25FB","[ ]"),V=i(u=>{switch(u){case"initial":case"active":return F.cyan(re);case"cancel":return F.red(ie);case"error":return F.yellow(se);case"submit":return F.green(ne)}},"w"),nu=i(u=>{let{cursor:e,options:t,style:o}=u,r=u.maxItems??Number.POSITIVE_INFINITY,s=Math.max(process.stdout.rows-4,0),D=Math.min(s,Math.max(r,5)),n=0;e>=n+D-3?n=Math.max(Math.min(e-D+3,t.length-D),0):e<n+2&&(n=Math.max(e-2,0));let a=D<t.length&&n>0,C=D<t.length&&n+D<t.length;return t.slice(n,n+D).map((E,c,d)=>{let m=c===0&&a,w=c===d.length-1&&C;return m||w?F.dim("..."):o(E,c+n===e)})},"B"),le=i(u=>new ru({validate:u.validate,placeholder:u.placeholder,defaultValue:u.defaultValue,initialValue:u.initialValue,render(){let e=`${F.gray(h)} ${V(this.state)} ${u.message} `,t=u.placeholder?F.inverse(u.placeholder[0])+F.dim(u.placeholder.slice(1)):F.inverse(F.hidden("_")),o=this.value?this.valueWithCursor:t;switch(this.state){case"error":return`${e.trim()} ${F.yellow(h)} ${o} ${F.yellow(k)} ${F.yellow(this.error)} `;case"submit":return`${e}${F.gray(h)} ${F.dim(this.value||u.placeholder)}`;case"cancel":return`${e}${F.gray(h)} ${F.strikethrough(F.dim(this.value??""))}${this.value?.trim()?` ${F.gray(h)}`:""}`;default:return`${e}${F.cyan(h)} ${o} ${F.cyan(k)} `}}}).prompt(),"he"),ce=i(u=>{let e=u.active??"Yes",t=u.inactive??"No";return new tu({active:e,inactive:t,initialValue:u.initialValue??!0,render(){let o=`${F.gray(h)} ${V(this.state)} ${u.message} `,r=this.value?e:t;switch(this.state){case"submit":return`${o}${F.gray(h)} ${F.dim(r)}`;case"cancel":return`${o}${F.gray(h)} ${F.strikethrough(F.dim(r))} ${F.gray(h)}`;default:return`${o}${F.cyan(h)} ${this.value?`${F.green(iu)} ${e}`:`${F.dim(su)} ${F.dim(e)}`} ${F.dim("/")} ${this.value?`${F.dim(su)} ${F.dim(t)}`:`${F.green(iu)} ${t}`} ${F.cyan(k)} `}}}).prompt()},"ye"),Ce=i(u=>{let e=i((t,o)=>{let r=t.label??String(t.value);switch(o){case"selected":return`${F.dim(r)}`;case"active":return`${F.green(iu)} ${r} ${t.hint?F.dim(`(${t.hint})`):""}`;case"cancelled":return`${F.strikethrough(F.dim(r))}`;default:return`${F.dim(su)} ${F.dim(r)}`}},"n");return new ou({options:u.options,initialValue:u.initialValue,render(){let t=`${F.gray(h)} ${V(this.state)} ${u.message} `;switch(this.state){case"submit":return`${t}${F.gray(h)} ${e(this.options[this.cursor],"selected")}`;case"cancel":return`${t}${F.gray(h)} ${e(this.options[this.cursor],"cancelled")} ${F.gray(h)}`;default:return`${t}${F.cyan(h)} ${nu({cursor:this.cursor,options:this.options,maxItems:u.maxItems,style:i((o,r)=>e(o,r?"active":"inactive"),"style")}).join(` ${F.cyan(h)} `)} ${F.cyan(k)} `}}}).prompt()},"ve"),Ee=i(u=>{let e=i((t,o)=>{let r=t.label??String(t.value);return o==="active"?`${F.cyan(ae)} ${r} ${t.hint?F.dim(`(${t.hint})`):""}`:o==="selected"?`${F.green(Pu)} ${F.dim(r)}`:o==="cancelled"?`${F.strikethrough(F.dim(r))}`:o==="active-selected"?`${F.green(Pu)} ${r} ${t.hint?F.dim(`(${t.hint})`):""}`:o==="submitted"?`${F.dim(r)}`:`${F.dim(Fe)} ${F.dim(r)}`},"n");return new ue({options:u.options,initialValues:u.initialValues,required:u.required??!0,cursorAt:u.cursorAt,validate(t){if(this.required&&t.length===0)return`Please select at least one option. ${F.reset(F.dim(`Press ${F.gray(F.bgWhite(F.inverse(" space ")))} to select, ${F.gray(F.bgWhite(F.inverse(" enter ")))} to submit`))}`},render(){let t=`${F.gray(h)} ${V(this.state)} ${u.message} `,o=i((r,s)=>{let D=this.value.includes(r.value);return s&&D?e(r,"active-selected"):D?e(r,"selected"):e(r,s?"active":"inactive")},"r");switch(this.state){case"submit":return`${t}${F.gray(h)} ${this.options.filter(({value:r})=>this.value.includes(r)).map(r=>e(r,"submitted")).join(F.dim(", "))||F.dim("none")}`;case"cancel":{let r=this.options.filter(({value:s})=>this.value.includes(s)).map(s=>e(s,"cancelled")).join(F.dim(", "));return`${t}${F.gray(h)} ${r.trim()?`${r} ${F.gray(h)}`:""}`}case"error":{let r=this.error.split(` `).map((s,D)=>D===0?`${F.yellow(k)} ${F.yellow(s)}`:` ${s}`).join(` `);return`${t+F.yellow(h)} ${nu({options:this.options,cursor:this.cursor,maxItems:u.maxItems,style:o}).join(` ${F.yellow(h)} `)} ${r} `}default:return`${t}${F.cyan(h)} ${nu({options:this.options,cursor:this.cursor,maxItems:u.maxItems,style:o}).join(` ${F.cyan(h)} `)} ${F.cyan(k)} `}}}).prompt()},"fe");`${F.gray(h)}`;Wu=Symbol.for("cancel");i(qu,"prompt")});import{readFileSync as Ht,existsSync as zt,statSync as Kt}from"node:fs";import{join as eD,dirname as Zt}from"node:path";import{homedir as st}from"node:os";import{promises as uo}from"node:fs";import{readFileSync as Qe,existsSync as ut}from"node:fs";import{join as Dt,dirname as et,resolve as tt}from"node:path";import{fileURLToPath as ot}from"node:url";import{exec as rt}from"node:child_process";import{promisify as it}from"node:util";var B={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},J={silent:{level:-1},fatal:{level:B.fatal},error:{level:B.error},warn:{level:B.warn},log:{level:B.log},info:{level:B.info},success:{level:B.success},fail:{level:B.fail},ready:{level:B.info},start:{level:B.info},box:{level:B.info},debug:{level:B.debug},trace:{level:B.trace},verbose:{level:B.verbose}};function H(u){if(u===null||typeof u!="object")return!1;let e=Object.getPrototypeOf(u);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in u?!1:Symbol.toStringTag in u?Object.prototype.toString.call(u)==="[object Module]":!0}i(H,"isPlainObject$1");function Z(u,e,t=".",o){if(!H(e))return Z(u,{},t,o);let r=Object.assign({},e);for(let s in u){if(s==="__proto__"||s==="constructor")continue;let D=u[s];D!=null&&(o&&o(r,s,D,t)||(Array.isArray(D)&&Array.isArray(r[s])?r[s]=[...D,...r[s]]:H(D)&&H(r[s])?r[s]=Z(D,r[s],(t?`${t}.`:"")+s.toString(),o):r[s]=D))}return r}i(Z,"_defu");function sD(u){return(...e)=>e.reduce((t,o)=>Z(t,o,"",u),{})}i(sD,"createDefu");var nD=sD();function aD(u){return Object.prototype.toString.call(u)==="[object Object]"}i(aD,"isPlainObject");function FD(u){return!(!aD(u)||!u.message&&!u.args||u.stack)}i(FD,"isLogObj");var z=!1,hu=[],f=class u{static{i(this,"Consola")}options;_lastLog;_mockFn;constructor(e={}){let t=e.types||J;this.options=nD({...e,defaults:{...e.defaults},level:K(e.level,t),reporters:[...e.reporters||[]]},{types:J,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(let o in t){let r={type:o,...this.options.defaults,...t[o]};this[o]=this._wrapLogFn(r),this[o].raw=this._wrapLogFn(r,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=K(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){let t=new u({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){let t=this.options.reporters.indexOf(e);if(t!==-1)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(let e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(let e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=o=>{this[t].raw(String(o).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){z=!0}resumeLogs(){z=!1;let e=hu.splice(0);for(let t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){let t=e||this.options.mockFn;if(this._mockFn=t,typeof t=="function")for(let o in this.options.types)this[o]=t(o,this.options.types[o])||this[o],this[o].raw=this[o]}_wrapLogFn(e,t){return(...o)=>{if(z){hu.push([this,e,o,t]);return}return this._logFn(e,o,t)}}_logFn(e,t,o){if((e.level||0)>this.level)return!1;let r={date:new Date,args:[],...e,level:K(e.level,this.options.types)};!o&&t.length===1&&FD(t[0])?Object.assign(r,t[0]):r.args=[...t],r.message&&(r.args.unshift(r.message),delete r.message),r.additional&&(Array.isArray(r.additional)||(r.additional=r.additional.split(` `)),r.args.push(` `+r.additional.join(` `)),delete r.additional),r.type=typeof r.type=="string"?r.type.toLowerCase():"log",r.tag=typeof r.tag=="string"?r.tag:"";let s=i((n=!1)=>{let a=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&a>0){let C=[...this._lastLog.object.args];a>1&&C.push(`(repeated ${a} times)`),this._log({...this._lastLog.object,args:C}),this._lastLog.count=1}n&&(this._lastLog.object=r,this._log(r))},"resolveLog");clearTimeout(this._lastLog.timeout);let D=this._lastLog.time&&r.date?r.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=r.date,D<this.options.throttle)try{let n=JSON.stringify([r.type,r.tag,r.args]),a=this._lastLog.serialized===n;if(this._lastLog.serialized=n,a&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(s,this.options.throttle);return}}catch{}s(!0)}_log(e){for(let t of this.options.reporters)t.log(e,{options:this.options})}};function K(u,e={},t=3){return u===void 0?t:typeof u=="number"?u:e[u]&&e[u].level!==void 0?e[u].level:t}i(K,"_normalizeLogLevel");f.prototype.add=f.prototype.addReporter;f.prototype.remove=f.prototype.removeReporter;f.prototype.clear=f.prototype.removeReporter;f.prototype.withScope=f.prototype.withTag;f.prototype.mock=f.prototype.mockTypes;f.prototype.pause=f.prototype.pauseLogs;f.prototype.resume=f.prototype.resumeLogs;function pu(u={}){return new f(u)}i(pu,"createConsola");import{formatWithOptions as mu}from"node:util";import{sep as lD}from"node:path";function Q(u,e){let t=process.cwd()+lD;return u.split(` `).splice(e.split(` `).length).map(r=>r.trim().replace("file://","").replace(t,""))}i(Q,"parseStack");function cD(u,e){return(e.__write||e.write).call(e,u)}i(cD,"writeStream");var X=i(u=>u?`[${u}]`:"","bracket"),O=class{static{i(this,"BasicReporter")}formatStack(e,t,o){let r=" ".repeat((o?.errorLevel||0)+1);return r+Q(e,t).join(` ${r}`)}formatError(e,t){let o=e.message??mu(t,e),r=e.stack?this.formatStack(e.stack,o,t):"",s=t?.errorLevel||0,D=s>0?`${" ".repeat(s)}[cause]: `:"",n=e.cause?` `+this.formatError(e.cause,{...t,errorLevel:s+1}):"";return D+o+` `+r+n}formatArgs(e,t){let o=e.map(r=>r&&typeof r.stack=="string"?this.formatError(r,t):r);return mu(t,...o)}formatDate(e,t){return t.date?e.toLocaleTimeString():""}filterAndJoin(e){return e.filter(Boolean).join(" ")}formatLogObj(e,t){let o=this.formatArgs(e.args,t);return e.type==="box"?` `+[X(e.tag),e.title&&e.title,...o.split(` `)].filter(Boolean).map(r=>" > "+r).join(` `)+` `:this.filterAndJoin([X(e.type),X(e.tag),o])}log(e,t){let o=this.formatLogObj(e,{columns:t.options.stdout.columns||0,...t.options.formatOptions});return cD(o+` `,e.level<2?t.options.stderr||process.stderr:t.options.stdout||process.stdout)}};import zu from"node:process";import*as P from"node:tty";var{env:I={},argv:gu=[],platform:CD=""}=typeof process>"u"?{}:process,ED="NO_COLOR"in I||gu.includes("--no-color"),dD="FORCE_COLOR"in I||gu.includes("--color"),hD=CD==="win32",bu=I.TERM==="dumb",pD=P&&P.isatty&&P.isatty(1)&&I.TERM&&!bu,mD="CI"in I&&("GITHUB_ACTIONS"in I||"GITLAB_CI"in I||"CIRCLECI"in I),fD=!ED&&(dD||hD&&!bu||pD||mD);function Au(u,e,t,o,r=e.slice(0,Math.max(0,u))+o,s=e.slice(Math.max(0,u+t.length)),D=s.indexOf(t)){return r+(D<0?s:Au(D,s,t,o))}i(Au,"replaceClose");functi