ritik 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +25 -746
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,765 +1,44 @@
1
1
  #!/usr/bin/env node
2
- import{spawn as ye,exec as xe}from"node:child_process";import ve from"node:fs";import BD from"node:path";import{fileURLToPath as Le}from"node:url";import N from"node:process";import Se from"node:os";import mD from"node:tty";import*as Lu from"fs";import*as Su from"path";import{fileURLToPath as Te}from"url";import{styleText as j,stripVTControlCharacters as Ie}from"node:util";import*as $e from"node:readline";import{AsyncLocalStorage as Me,AsyncResource as Gu}from"node:async_hooks";import ke from"stream";import _e from"tty";var Oe="ritik",Ue="1.0.0",Pe="module",Ne="CLI Portfolio",je="dist/index.js",Ge={ritik:"dist/index.js"},We={node:">=20"},qe={build:"rollup -c",start:"rollup -c && node dist/index.js",lint:"next lint",clean:"rm -rf node_modules pnpm-lock.yaml && pnpm install",demo:"pnpm run build && vhs demo/demo.tape"},He={"@inquirer/prompts":"^8.2.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.3","@types/figlet":"^1.7.0","@types/node":"^25.0.9","@typescript-eslint/eslint-plugin":"^8.53.0","@typescript-eslint/parser":"^8.53.0",boxen:"^8.0.1",esbuild:"^0.27.2",eslint:"^9.39.2","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-import":"^2.32.0",rollup:"^4.55.1","rollup-plugin-esbuild":"^6.2.1",typescript:"^5.9.3"},Ve={access:"public",registry:"https://registry.npmjs.org/"},ze=["dist"],Ke={type:"git",url:"git+https://github.com/itzzritik/npx-ritik.git"},Ye=["ritik","nodejs","javascript","shell","cli","console","open-source","npm","portfolio","typescript","terminal","command-line","tui","dev","developer","npx"],Je={name:"Ritik Srivastava"},Xe="ISC",Ze={url:"https://github.com/itzzritik/npx-ritik/issues"},Qe="https://github.com/itzzritik/npx-ritik#readme",ut={figlet:"^1.9.4"},pD={name:Oe,version:Ue,type:Pe,description:Ne,main:je,bin:Ge,engines:We,scripts:qe,devDependencies:He,publishConfig:Ve,files:ze,repository:Ke,keywords:Ye,author:Je,license:Xe,bugs:Ze,homepage:Qe,dependencies:ut};const Dt={profileUrl:"https://raw.githubusercontent.com/itzzritik/itzzritik/refs/heads/main/profile/profile.json"},fu={theme:{primary:"cyanBright",secondary:"whiteBright",accent:"#f1c40f",borderStyle:"single",borderColor:"cyan"},ui:{title:"Portfolio",npx:"Npx",cmdTip:"Tip: Try cmd/ctrl + click on the links above",footer:["Open to meaningful conversations and interesting opportunities","Feel free to reach out for questions, collaborations, or a quick hello","I do my best to respond in a timely manner"]},messages:{email:{message:"Send me an email?",description:"Send a message \u2014 I promise low-latency replies.",success:"Email launched \u2014 preparing witty yet professional response."},resume:{message:"Checkout my Resume?",description:"Pulling the latest version of my resume from production.",success:"Thanks for reading \u2014 hope my resume speaks your language."},meeting:{message:"Schedule a Meeting?",description:"Scheduling a sync \u2014 adding coffee to the calendar... \u2615",success:"Meeting scheduled \u2014 time to build something great together."},exit:{message:"Exit.",description:"Ending session, but not the connection.",success:"Session ended \u2014 but DMs are always open."}}},et=async()=>{const u=await fetch(Dt.profileUrl);if(!u.ok)throw new Error(`Failed to fetch profile: ${u.statusText}`);const D=await u.json(),e={github:"#666666",x:"#1DA1F2"};return D.socialHandles=D.socialHandles.map(t=>({...t,color:e[t.platform]||t.color})),D},tt=u=>{const D=BD.dirname(Le(import.meta.url)),e=ve.existsSync(BD.join(D,"../src")),t=process.env.NPX_RITIK_REDIRECT==="true";return!e&&!t?(ye(`npx --yes ${u}@latest`,{stdio:"inherit",shell:!0,env:{...process.env,NPX_RITIK_REDIRECT:"true"}}).on("close",r=>{process.exit(r||0)}),!0):!1},ru="\x1B[0m",rt=u=>{const D=parseInt(u.replace("#",""),16);return[D>>16&255,D>>8&255,D&255]},nu={bold:u=>`\x1B[1m${u}${ru}`,dim:u=>`\x1B[2m${u}${ru}`,italic:u=>`\x1B[3m${u}${ru}`,inverse:u=>`\x1B[7m${u}${ru}`,bgWhite:u=>`\x1B[47m${u}${ru}`,bgWhiteBright:u=>`\x1B[107m${u}${ru}`,cyanBright:u=>`\x1B[96m${u}${ru}`,whiteBright:u=>`\x1B[97m${u}${ru}`,hex:u=>{const[D,e,t]=rt(u);return r=>`\x1B[38;2;${D};${e};${t}m${r}${ru}`}},pu=(u=D=>D)=>{const D=e=>u(e);return["dim","bold","italic","inverse","bgWhite","bgWhiteBright","cyanBright","whiteBright"].forEach(e=>{Object.defineProperty(D,e,{get:()=>pu(t=>u(nu[e](t)))})}),D},V={...nu,hex:u=>{const D=nu.hex(u);return pu(D)},bold:pu(nu.bold),dim:pu(nu.dim),italic:pu(nu.italic),cyanBright:nu.cyanBright,whiteBright:nu.whiteBright};var nt=Object.defineProperty,it=(u,D,e)=>D in u?nt(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,Tu=(u,D,e)=>it(u,typeof D!="symbol"?D+"":D,e);const lt=22,st=80,AD=lt+st+2,Iu=(u,D=" ")=>u.padStart(u.length+Math.floor((AD-u.length)/2),D).padEnd(AD,D),ot=u=>u.charAt(0).toUpperCase()+u.slice(1);class Ft{constructor(D){Tu(this,"frames",["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]),Tu(this,"interval",null),Tu(this,"current",0),Tu(this,"text"),this.text=D}start(){return process.stdout.write("\x1B[?25l"),this.interval=setInterval(()=>{process.stdout.write(`\r${V.cyanBright(this.frames[this.current])} ${this.text}`),this.current=(this.current+1)%this.frames.length},80),this}stop(){return this.interval&&(clearInterval(this.interval),this.interval=null,process.stdout.write("\r\x1B[K"),process.stdout.write("\x1B[?25h")),this}succeed(D){return this.stop(),console.log(`${V.hex("#00FF00")("\u2714")} ${D||this.text}`),this}fail(D){return this.stop(),console.log(`${V.hex("#FF0000")("\u2716")} ${D||this.text}`),this}}function at({onlyFirst:u=!1}={}){const r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,u?void 0:"g")}const ct=at();function bD(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(ct,"")}function ft(u){return u===161||u===164||u===167||u===168||u===170||u===173||u===174||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||u===198||u===208||u===215||u===216||u>=222&&u<=225||u===230||u>=232&&u<=234||u===236||u===237||u===240||u===242||u===243||u>=247&&u<=250||u===252||u===254||u===257||u===273||u===275||u===283||u===294||u===295||u===299||u>=305&&u<=307||u===312||u>=319&&u<=322||u===324||u>=328&&u<=331||u===333||u===338||u===339||u===358||u===359||u===363||u===462||u===464||u===466||u===468||u===470||u===472||u===474||u===476||u===593||u===609||u===708||u===711||u>=713&&u<=715||u===717||u===720||u>=728&&u<=731||u===733||u===735||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||u===1025||u>=1040&&u<=1103||u===1105||u===8208||u>=8211&&u<=8214||u===8216||u===8217||u===8220||u===8221||u>=8224&&u<=8226||u>=8228&&u<=8231||u===8240||u===8242||u===8243||u===8245||u===8251||u===8254||u===8308||u===8319||u>=8321&&u<=8324||u===8364||u===8451||u===8453||u===8457||u===8467||u===8470||u===8481||u===8482||u===8486||u===8491||u===8531||u===8532||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||u===8585||u>=8592&&u<=8601||u===8632||u===8633||u===8658||u===8660||u===8679||u===8704||u===8706||u===8707||u===8711||u===8712||u===8715||u===8719||u===8721||u===8725||u===8730||u>=8733&&u<=8736||u===8739||u===8741||u>=8743&&u<=8748||u===8750||u>=8756&&u<=8759||u===8764||u===8765||u===8776||u===8780||u===8786||u===8800||u===8801||u>=8804&&u<=8807||u===8810||u===8811||u===8814||u===8815||u===8834||u===8835||u===8838||u===8839||u===8853||u===8857||u===8869||u===8895||u===8978||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||u===9632||u===9633||u>=9635&&u<=9641||u===9650||u===9651||u===9654||u===9655||u===9660||u===9661||u===9664||u===9665||u>=9670&&u<=9672||u===9675||u>=9678&&u<=9681||u>=9698&&u<=9701||u===9711||u===9733||u===9734||u===9737||u===9742||u===9743||u===9756||u===9758||u===9792||u===9794||u===9824||u===9825||u>=9827&&u<=9829||u>=9831&&u<=9834||u===9836||u===9837||u===9839||u===9886||u===9887||u===9919||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||u===9955||u===9960||u===9961||u>=9963&&u<=9969||u===9972||u>=9974&&u<=9977||u===9979||u===9980||u===9982||u===9983||u===10045||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||u===65533||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||u===127375||u===127376||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109}function Ct(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}function ht(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u>=94192&&u<=94198||u>=94208&&u<=101589||u>=101631&&u<=101662||u>=101760&&u<=101874||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128728||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129674||u>=129678&&u<=129734||u===129736||u>=129741&&u<=129756||u>=129759&&u<=129770||u>=129775&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}function Et(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function dt(u,{ambiguousAsWide:D=!1}={}){return Et(u),Ct(u)||ht(u)||D&&ft(u)?2:1}var gt=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\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?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\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-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;const Bt=new Intl.Segmenter,mt=/^\p{Default_Ignorable_Code_Point}$/u;function Du(u,D={}){if(typeof u!="string"||u.length===0)return 0;const{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:t=!1}=D;if(t||(u=bD(u)),u.length===0)return 0;let r=0;const i={ambiguousAsWide:!e};for(const{segment:F}of Bt.segment(u)){const a=F.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!mt.test(F)){if(gt().test(F)){r+=2;continue}r+=dt(a,i)}}return r}const Wu=10,RD=(u=0)=>D=>`\x1B[${D+u}m`,wD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,yD=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,M={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(M.modifier);const pt=Object.keys(M.color),At=Object.keys(M.bgColor);[...pt,...At];function bt(){const u=new Map;for(const[D,e]of Object.entries(M)){for(const[t,r]of Object.entries(e))M[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=M[t],u.set(r[0],r[1]);Object.defineProperty(M,D,{value:e,enumerable:!1})}return Object.defineProperty(M,"codes",{value:u,enumerable:!1}),M.color.close="\x1B[39m",M.bgColor.close="\x1B[49m",M.color.ansi=RD(),M.color.ansi256=wD(),M.color.ansi16m=yD(),M.bgColor.ansi=RD(Wu),M.bgColor.ansi256=wD(Wu),M.bgColor.ansi16m=yD(Wu),Object.defineProperties(M,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(i=>i+i).join(""));const r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>M.rgbToAnsi256(...M.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;const a=D%36;e=Math.floor(D/36)/5,t=Math.floor(a/6)/5,r=a%6/5}const i=Math.max(e,t,r)*2;if(i===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return i===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>M.ansi256ToAnsi(M.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>M.ansi256ToAnsi(M.hexToAnsi256(D)),enumerable:!1}}),M}const eu=bt();function J(u,D=globalThis.Deno?globalThis.Deno.args:N.argv){const e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)}const{env:k}=N;let $u;J("no-color")||J("no-colors")||J("color=false")||J("color=never")?$u=0:(J("color")||J("colors")||J("color=true")||J("color=always"))&&($u=1);function Rt(){if("FORCE_COLOR"in k)return k.FORCE_COLOR==="true"?1:k.FORCE_COLOR==="false"?0:k.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(k.FORCE_COLOR,10),3)}function wt(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function yt(u,{streamIsTTY:D,sniffFlags:e=!0}={}){const t=Rt();t!==void 0&&($u=t);const r=e?$u:t;if(r===0)return 0;if(e){if(J("color=16m")||J("color=full")||J("color=truecolor"))return 3;if(J("color=256"))return 2}if("TF_BUILD"in k&&"AGENT_NAME"in k)return 1;if(u&&!D&&r===void 0)return 0;const i=r||0;if(k.TERM==="dumb")return i;if(N.platform==="win32"){const F=Se.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in k)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(F=>F in k)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(F=>F in k)||k.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in k)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(k.TEAMCITY_VERSION)?1:0;if(k.COLORTERM==="truecolor"||k.TERM==="xterm-kitty"||k.TERM==="xterm-ghostty"||k.TERM==="wezterm")return 3;if("TERM_PROGRAM"in k){const F=Number.parseInt((k.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(k.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(k.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(k.TERM)||"COLORTERM"in k?1:i}function xD(u,D={}){const e=yt(u,{streamIsTTY:u&&u.isTTY,...D});return wt(e)}const xt={stdout:xD({isTTY:mD.isatty(1)}),stderr:xD({isTTY:mD.isatty(2)})};function vt(u,D,e){let t=u.indexOf(D);if(t===-1)return u;const r=D.length;let i=0,F="";do F+=u.slice(i,t)+D+e,i=t+r,t=u.indexOf(D,i);while(t!==-1);return F+=u.slice(i),F}function Lt(u,D,e,t){let r=0,i="";do{const F=u[t-1]==="\r";i+=u.slice(r,F?t-1:t)+D+(F?`\r
2
+ import{spawn as ye,exec as xe}from"node:child_process";import ve from"node:fs";import BD from"node:path";import{fileURLToPath as Le}from"node:url";import N from"node:process";import Se from"node:os";import mD from"node:tty";import*as Lu from"fs";import*as Su from"path";import{fileURLToPath as Te}from"url";import{styleText as j,stripVTControlCharacters as Ie}from"node:util";import*as Me from"node:readline";import{AsyncLocalStorage as $e,AsyncResource as Wu}from"node:async_hooks";import ke from"stream";import _e from"tty";var Oe="ritik",Ue="1.0.2",Pe="module",Ne="CLI Portfolio",je="dist/index.js",We={ritik:"dist/index.js"},Ge={node:">=20"},qe={build:"rollup -c",start:"rollup -c && node dist/index.js",lint:"next lint",clean:"rm -rf node_modules pnpm-lock.yaml && pnpm install",demo:"pnpm run build && vhs demo/demo.tape"},He={"@inquirer/prompts":"^8.2.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.3","@types/figlet":"^1.7.0","@types/node":"^25.0.9","@typescript-eslint/eslint-plugin":"^8.53.0","@typescript-eslint/parser":"^8.53.0",boxen:"^8.0.1",esbuild:"^0.27.2",eslint:"^9.39.2","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-import":"^2.32.0",rollup:"^4.55.1","rollup-plugin-esbuild":"^6.2.1",typescript:"^5.9.3"},Ve={access:"public",registry:"https://registry.npmjs.org/"},ze=["dist"],Ke={type:"git",url:"git+https://github.com/itzzritik/npx-ritik.git"},Ye=["ritik","nodejs","javascript","shell","cli","console","open-source","npm","portfolio","typescript","terminal","command-line","tui","dev","developer","npx"],Je={name:"Ritik Srivastava"},Xe="ISC",Ze={url:"https://github.com/itzzritik/npx-ritik/issues"},Qe="https://github.com/itzzritik/npx-ritik#readme",ut={figlet:"^1.9.4"},pD={name:Oe,version:Ue,type:Pe,description:Ne,main:je,bin:We,engines:Ge,scripts:qe,devDependencies:He,publishConfig:Ve,files:ze,repository:Ke,keywords:Ye,author:Je,license:Xe,bugs:Ze,homepage:Qe,dependencies:ut};const Dt={profileUrl:"https://raw.githubusercontent.com/itzzritik/itzzritik/refs/heads/main/profile/profile.json"},fu={theme:{primary:"cyanBright",secondary:"whiteBright",accent:"#f1c40f",borderStyle:"single",borderColor:"cyan"},ui:{title:"Portfolio",npx:"Cli Portfolio",cmdTip:"Tip: Try cmd/ctrl + click on the links above",footer:["Open to meaningful conversations and interesting opportunities","Feel free to reach out for questions, collaborations, or a quick hello","I do my best to respond in a timely manner"]},messages:{email:{message:"Send me an email?",description:"Send a message \u2014 I promise low-latency replies.",success:"Email launched \u2014 preparing witty yet professional response."},resume:{message:"Checkout my Resume?",description:"Pulling the latest version of my resume from production.",success:"Thanks for reading \u2014 hope my resume speaks your language."},meeting:{message:"Schedule a Meeting?",description:"Scheduling a sync \u2014 adding coffee to the calendar... \u2615",success:"Meeting scheduled \u2014 time to build something great together."},exit:{message:"Exit.",description:"Ending session, but not the connection.",success:"Session ended \u2014 but DMs are always open."}}},et=async()=>{const u=await fetch(Dt.profileUrl);if(!u.ok)throw new Error(`Failed to fetch profile: ${u.statusText}`);const D=await u.json(),e={github:"#666666",x:"#1DA1F2"};return D.socialHandles=D.socialHandles.map(t=>({...t,color:e[t.platform]||t.color})),D},tt=async()=>{const u=await fetch("https://raw.githubusercontent.com/patorjk/figlet.js/master/fonts/ANSI%20Shadow.flf").then(D=>D.text());(await Promise.resolve().then(function(){return bn})).default.parseFont("ANSI Shadow",u)},rt=u=>{const D=BD.dirname(Le(import.meta.url)),e=ve.existsSync(BD.join(D,"../src")),t=process.env.NPX_RITIK_REDIRECT==="true";return!e&&!t?(ye(`npx --yes ${u}@latest`,{stdio:"inherit",shell:!0,env:{...process.env,NPX_RITIK_REDIRECT:"true"}}).on("close",r=>{process.exit(r||0)}),!0):!1},ru="\x1B[0m",nt=u=>{const D=parseInt(u.replace("#",""),16);return[D>>16&255,D>>8&255,D&255]},nu={bold:u=>`\x1B[1m${u}${ru}`,dim:u=>`\x1B[2m${u}${ru}`,italic:u=>`\x1B[3m${u}${ru}`,inverse:u=>`\x1B[7m${u}${ru}`,bgWhite:u=>`\x1B[47m${u}${ru}`,bgWhiteBright:u=>`\x1B[107m${u}${ru}`,cyanBright:u=>`\x1B[96m${u}${ru}`,whiteBright:u=>`\x1B[97m${u}${ru}`,hex:u=>{const[D,e,t]=nt(u);return r=>`\x1B[38;2;${D};${e};${t}m${r}${ru}`}},pu=(u=D=>D)=>{const D=e=>u(e);return["dim","bold","italic","inverse","bgWhite","bgWhiteBright","cyanBright","whiteBright"].forEach(e=>{Object.defineProperty(D,e,{get:()=>pu(t=>u(nu[e](t)))})}),D},uu={...nu,hex:u=>{const D=nu.hex(u);return pu(D)},bold:pu(nu.bold),dim:pu(nu.dim),italic:pu(nu.italic),cyanBright:nu.cyanBright,whiteBright:nu.whiteBright};var it=Object.defineProperty,lt=(u,D,e)=>D in u?it(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,Tu=(u,D,e)=>lt(u,typeof D!="symbol"?D+"":D,e);const st=22,ot=80,AD=st+ot+2,Iu=(u,D=" ")=>u.padStart(u.length+Math.floor((AD-u.length)/2),D).padEnd(AD,D),Ft=u=>u.charAt(0).toUpperCase()+u.slice(1);class at{constructor(D){Tu(this,"frames",["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]),Tu(this,"interval",null),Tu(this,"current",0),Tu(this,"text"),this.text=D}start(){return process.stdout.write("\x1B[?25l"),this.interval=setInterval(()=>{process.stdout.write(`\r${uu.cyanBright(this.frames[this.current])} ${this.text}`),this.current=(this.current+1)%this.frames.length},80),this}stop(){return this.interval&&(clearInterval(this.interval),this.interval=null,process.stdout.write("\r\x1B[K"),process.stdout.write("\x1B[?25h")),this}succeed(D){return this.stop(),console.log(`${uu.hex("#00FF00")("\u2714")} ${D||this.text}`),this}fail(D){return this.stop(),console.log(`${uu.hex("#FF0000")("\u2716")} ${D||this.text}`),this}}function ct({onlyFirst:u=!1}={}){const r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,u?void 0:"g")}const ft=ct();function bD(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(ft,"")}function Ct(u){return u===161||u===164||u===167||u===168||u===170||u===173||u===174||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||u===198||u===208||u===215||u===216||u>=222&&u<=225||u===230||u>=232&&u<=234||u===236||u===237||u===240||u===242||u===243||u>=247&&u<=250||u===252||u===254||u===257||u===273||u===275||u===283||u===294||u===295||u===299||u>=305&&u<=307||u===312||u>=319&&u<=322||u===324||u>=328&&u<=331||u===333||u===338||u===339||u===358||u===359||u===363||u===462||u===464||u===466||u===468||u===470||u===472||u===474||u===476||u===593||u===609||u===708||u===711||u>=713&&u<=715||u===717||u===720||u>=728&&u<=731||u===733||u===735||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||u===1025||u>=1040&&u<=1103||u===1105||u===8208||u>=8211&&u<=8214||u===8216||u===8217||u===8220||u===8221||u>=8224&&u<=8226||u>=8228&&u<=8231||u===8240||u===8242||u===8243||u===8245||u===8251||u===8254||u===8308||u===8319||u>=8321&&u<=8324||u===8364||u===8451||u===8453||u===8457||u===8467||u===8470||u===8481||u===8482||u===8486||u===8491||u===8531||u===8532||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||u===8585||u>=8592&&u<=8601||u===8632||u===8633||u===8658||u===8660||u===8679||u===8704||u===8706||u===8707||u===8711||u===8712||u===8715||u===8719||u===8721||u===8725||u===8730||u>=8733&&u<=8736||u===8739||u===8741||u>=8743&&u<=8748||u===8750||u>=8756&&u<=8759||u===8764||u===8765||u===8776||u===8780||u===8786||u===8800||u===8801||u>=8804&&u<=8807||u===8810||u===8811||u===8814||u===8815||u===8834||u===8835||u===8838||u===8839||u===8853||u===8857||u===8869||u===8895||u===8978||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||u===9632||u===9633||u>=9635&&u<=9641||u===9650||u===9651||u===9654||u===9655||u===9660||u===9661||u===9664||u===9665||u>=9670&&u<=9672||u===9675||u>=9678&&u<=9681||u>=9698&&u<=9701||u===9711||u===9733||u===9734||u===9737||u===9742||u===9743||u===9756||u===9758||u===9792||u===9794||u===9824||u===9825||u>=9827&&u<=9829||u>=9831&&u<=9834||u===9836||u===9837||u===9839||u===9886||u===9887||u===9919||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||u===9955||u===9960||u===9961||u>=9963&&u<=9969||u===9972||u>=9974&&u<=9977||u===9979||u===9980||u===9982||u===9983||u===10045||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||u===65533||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||u===127375||u===127376||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109}function ht(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}function Et(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u>=94192&&u<=94198||u>=94208&&u<=101589||u>=101631&&u<=101662||u>=101760&&u<=101874||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128728||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129674||u>=129678&&u<=129734||u===129736||u>=129741&&u<=129756||u>=129759&&u<=129770||u>=129775&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}function dt(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function gt(u,{ambiguousAsWide:D=!1}={}){return dt(u),ht(u)||Et(u)||D&&Ct(u)?2:1}var Bt=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\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?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\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-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;const mt=new Intl.Segmenter,pt=/^\p{Default_Ignorable_Code_Point}$/u;function Du(u,D={}){if(typeof u!="string"||u.length===0)return 0;const{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:t=!1}=D;if(t||(u=bD(u)),u.length===0)return 0;let r=0;const i={ambiguousAsWide:!e};for(const{segment:F}of mt.segment(u)){const a=F.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!pt.test(F)){if(Bt().test(F)){r+=2;continue}r+=gt(a,i)}}return r}const Gu=10,RD=(u=0)=>D=>`\x1B[${D+u}m`,wD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,yD=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,$={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($.modifier);const At=Object.keys($.color),bt=Object.keys($.bgColor);[...At,...bt];function Rt(){const u=new Map;for(const[D,e]of Object.entries($)){for(const[t,r]of Object.entries(e))$[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=$[t],u.set(r[0],r[1]);Object.defineProperty($,D,{value:e,enumerable:!1})}return Object.defineProperty($,"codes",{value:u,enumerable:!1}),$.color.close="\x1B[39m",$.bgColor.close="\x1B[49m",$.color.ansi=RD(),$.color.ansi256=wD(),$.color.ansi16m=yD(),$.bgColor.ansi=RD(Gu),$.bgColor.ansi256=wD(Gu),$.bgColor.ansi16m=yD(Gu),Object.defineProperties($,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(i=>i+i).join(""));const r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>$.rgbToAnsi256(...$.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;const a=D%36;e=Math.floor(D/36)/5,t=Math.floor(a/6)/5,r=a%6/5}const i=Math.max(e,t,r)*2;if(i===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return i===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>$.ansi256ToAnsi($.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>$.ansi256ToAnsi($.hexToAnsi256(D)),enumerable:!1}}),$}const eu=Rt();function Y(u,D=globalThis.Deno?globalThis.Deno.args:N.argv){const e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)}const{env:k}=N;let Mu;Y("no-color")||Y("no-colors")||Y("color=false")||Y("color=never")?Mu=0:(Y("color")||Y("colors")||Y("color=true")||Y("color=always"))&&(Mu=1);function wt(){if("FORCE_COLOR"in k)return k.FORCE_COLOR==="true"?1:k.FORCE_COLOR==="false"?0:k.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(k.FORCE_COLOR,10),3)}function yt(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function xt(u,{streamIsTTY:D,sniffFlags:e=!0}={}){const t=wt();t!==void 0&&(Mu=t);const r=e?Mu:t;if(r===0)return 0;if(e){if(Y("color=16m")||Y("color=full")||Y("color=truecolor"))return 3;if(Y("color=256"))return 2}if("TF_BUILD"in k&&"AGENT_NAME"in k)return 1;if(u&&!D&&r===void 0)return 0;const i=r||0;if(k.TERM==="dumb")return i;if(N.platform==="win32"){const F=Se.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in k)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(F=>F in k)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(F=>F in k)||k.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in k)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(k.TEAMCITY_VERSION)?1:0;if(k.COLORTERM==="truecolor"||k.TERM==="xterm-kitty"||k.TERM==="xterm-ghostty"||k.TERM==="wezterm")return 3;if("TERM_PROGRAM"in k){const F=Number.parseInt((k.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(k.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(k.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(k.TERM)||"COLORTERM"in k?1:i}function xD(u,D={}){const e=xt(u,{streamIsTTY:u&&u.isTTY,...D});return yt(e)}const vt={stdout:xD({isTTY:mD.isatty(1)}),stderr:xD({isTTY:mD.isatty(2)})};function Lt(u,D,e){let t=u.indexOf(D);if(t===-1)return u;const r=D.length;let i=0,F="";do F+=u.slice(i,t)+D+e,i=t+r,t=u.indexOf(D,i);while(t!==-1);return F+=u.slice(i),F}function St(u,D,e,t){let r=0,i="";do{const F=u[t-1]==="\r";i+=u.slice(r,F?t-1:t)+D+(F?`\r
3
3
  `:`
4
4
  `)+e,r=t+1,t=u.indexOf(`
5
- `,r)}while(t!==-1);return i+=u.slice(r),i}const{stdout:vD,stderr:LD}=xt,qu=Symbol("GENERATOR"),Cu=Symbol("STYLER"),Au=Symbol("IS_EMPTY"),SD=["ansi","ansi","ansi256","ansi16m"],hu=Object.create(null),St=(u,D={})=>{if(D.level&&!(Number.isInteger(D.level)&&D.level>=0&&D.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const e=vD?vD.level:0;u.level=D.level===void 0?e:D.level},Tt=u=>{const D=(...e)=>e.join(" ");return St(D,u),Object.setPrototypeOf(D,bu.prototype),D};function bu(u){return Tt(u)}Object.setPrototypeOf(bu.prototype,Function.prototype);for(const[u,D]of Object.entries(eu))hu[u]={get(){const e=Mu(this,Vu(D.open,D.close,this[Cu]),this[Au]);return Object.defineProperty(this,u,{value:e}),e}};hu.visible={get(){const u=Mu(this,this[Cu],!0);return Object.defineProperty(this,"visible",{value:u}),u}};const Hu=(u,D,e,...t)=>u==="rgb"?D==="ansi16m"?eu[e].ansi16m(...t):D==="ansi256"?eu[e].ansi256(eu.rgbToAnsi256(...t)):eu[e].ansi(eu.rgbToAnsi(...t)):u==="hex"?Hu("rgb",D,e,...eu.hexToRgb(...t)):eu[e][u](...t),It=["rgb","hex","ansi256"];for(const u of It){hu[u]={get(){const{level:e}=this;return function(...t){const r=Vu(Hu(u,SD[e],"color",...t),eu.color.close,this[Cu]);return Mu(this,r,this[Au])}}};const D="bg"+u[0].toUpperCase()+u.slice(1);hu[D]={get(){const{level:e}=this;return function(...t){const r=Vu(Hu(u,SD[e],"bgColor",...t),eu.bgColor.close,this[Cu]);return Mu(this,r,this[Au])}}}}const $t=Object.defineProperties(()=>{},{...hu,level:{enumerable:!0,get(){return this[qu].level},set(u){this[qu].level=u}}}),Vu=(u,D,e)=>{let t,r;return e===void 0?(t=u,r=D):(t=e.openAll+u,r=D+e.closeAll),{open:u,close:D,openAll:t,closeAll:r,parent:e}},Mu=(u,D,e)=>{const t=(...r)=>Mt(t,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(t,$t),t[qu]=u,t[Cu]=D,t[Au]=e,t},Mt=(u,D)=>{if(u.level<=0||!D)return u[Au]?"":D;let e=u[Cu];if(e===void 0)return D;const{openAll:t,closeAll:r}=e;if(D.includes("\x1B"))for(;e!==void 0;)D=vt(D,e.close,e.open),e=e.parent;const i=D.indexOf(`
6
- `);return i!==-1&&(D=Lt(D,r,t,i)),t+D+r};Object.defineProperties(bu.prototype,hu);const Eu=bu();bu({level:LD?LD.level:0});function TD(u){let D=0;for(const e of u.split(`
7
- `))D=Math.max(D,Du(e));return D}function ku(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var _u={exports:{}},kt={topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},_t={topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},Ot={topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},Ut={topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},Pt={topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},Nt={topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},jt={topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},Gt={topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"},Wt={single:kt,double:_t,round:Ot,bold:Ut,singleDouble:Pt,doubleSingle:Nt,classic:jt,arrow:Gt},ID;function qt(){if(ID)return _u.exports;ID=1;const u=Wt;return _u.exports=u,_u.exports.default=u,_u.exports}var Ht=qt(),Vt=ku(Ht);const zt=/[\p{Lu}]/u,Kt=/[\p{Ll}]/u,$D=/^[\p{Lu}](?![\p{Lu}])/gu,MD=/([\p{Alpha}\p{N}_]|$)/u,zu=/[_.\- ]+/,Yt=new RegExp("^"+zu.source),kD=new RegExp(zu.source+MD.source,"gu"),_D=new RegExp("\\d+"+MD.source,"gu"),Jt=(u,D,e,t)=>{let r=!1,i=!1,F=!1,a=!1;for(let B=0;B<u.length;B++){const g=u[B];a=B>2?u[B-3]==="-":!0,r&&zt.test(g)?(u=u.slice(0,B)+"-"+u.slice(B),r=!1,F=i,i=!0,B++):i&&F&&Kt.test(g)&&(!a||t)?(u=u.slice(0,B-1)+"-"+u.slice(B-1),F=i,i=!1,r=!0):(r=D(g)===g&&e(g)!==g,F=i,i=e(g)===g&&D(g)!==g)}return u},Xt=(u,D)=>($D.lastIndex=0,u.replaceAll($D,e=>D(e))),Zt=(u,D)=>(kD.lastIndex=0,_D.lastIndex=0,u.replaceAll(_D,(e,t,r)=>["_","-"].includes(u.charAt(r+e.length))?e:D(e)).replaceAll(kD,(e,t)=>D(t)));function Qt(u,D){if(!(typeof u=="string"||Array.isArray(u)))throw new TypeError("Expected the input to be `string | string[]`");if(D={pascalCase:!1,preserveConsecutiveUppercase:!1,...D},Array.isArray(u)?u=u.map(i=>i.trim()).filter(i=>i.length).join("-"):u=u.trim(),u.length===0)return"";const e=D.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(D.locale),t=D.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(D.locale);return u.length===1?zu.test(u)?"":D.pascalCase?t(u):e(u):(u!==e(u)&&(u=Jt(u,e,t,D.preserveConsecutiveUppercase)),u=u.replace(Yt,""),u=D.preserveConsecutiveUppercase?Xt(u,e):e(u),D.pascalCase&&(u=t(u.charAt(0))+u.slice(1)),Zt(u,t))}var Ou={exports:{}},Ku,OD;function ur(){return OD||(OD=1,Ku=({onlyFirst:u=!1}={})=>{const D=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(D,u?void 0:"g")}),Ku}var Yu,UD;function Dr(){if(UD)return Yu;UD=1;const u=ur();return Yu=D=>typeof D=="string"?D.replace(u(),""):D,Yu}var Uu={exports:{}},PD;function er(){if(PD)return Uu.exports;PD=1;const u=D=>Number.isNaN(D)?!1:D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141);return Uu.exports=u,Uu.exports.default=u,Uu.exports}var Ju,ND;function tr(){return ND||(ND=1,Ju=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\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\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])|\uD83C[\uDF3E\uDF73\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])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\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])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\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\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*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\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\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}),Ju}var jD;function rr(){if(jD)return Ou.exports;jD=1;const u=Dr(),D=er(),e=tr(),t=r=>{if(typeof r!="string"||r.length===0||(r=u(r),r.length===0))return 0;r=r.replace(e()," ");let i=0;for(let F=0;F<r.length;F++){const a=r.codePointAt(F);a<=31||a>=127&&a<=159||a>=768&&a<=879||(a>65535&&F++,i+=D(a)?2:1)}return i};return Ou.exports=t,Ou.exports.default=t,Ou.exports}var Xu,GD;function nr(){if(GD)return Xu;GD=1;const u=rr();function D(r,i){if(!r)return r;i=i||{};const F=i.align||"center";if(F==="left")return r;const a=i.split||`
8
- `,B=i.pad||" ",g=F!=="right"?e:t;let m=!1;Array.isArray(r)||(m=!0,r=String(r).split(a));let E,x=0;return r=r.map(function(b){return b=String(b),E=u(b),x=Math.max(E,x),{str:b,width:E}}).map(function(b){return new Array(g(x,b.width)+1).join(B)+b.str}),m?r.join(a):r}D.left=function(i){return D(i,{align:"left"})},D.center=function(i){return D(i,{align:"center"})},D.right=function(i){return D(i,{align:"right"})},Xu=D;function e(r,i){return Math.floor((r-i)/2)}function t(r,i){return r-i}return Xu}var ir=nr(),WD=ku(ir);const Zu=10,qD=(u=0)=>D=>`\x1B[${D+u}m`,HD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,VD=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,_={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(_.modifier);const lr=Object.keys(_.color),sr=Object.keys(_.bgColor);[...lr,...sr];function or(){const u=new Map;for(const[D,e]of Object.entries(_)){for(const[t,r]of Object.entries(e))_[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=_[t],u.set(r[0],r[1]);Object.defineProperty(_,D,{value:e,enumerable:!1})}return Object.defineProperty(_,"codes",{value:u,enumerable:!1}),_.color.close="\x1B[39m",_.bgColor.close="\x1B[49m",_.color.ansi=qD(),_.color.ansi256=HD(),_.color.ansi16m=VD(),_.bgColor.ansi=qD(Zu),_.bgColor.ansi256=HD(Zu),_.bgColor.ansi16m=VD(Zu),Object.defineProperties(_,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(i=>i+i).join(""));const r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>_.rgbToAnsi256(..._.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;const a=D%36;e=Math.floor(D/36)/5,t=Math.floor(a/6)/5,r=a%6/5}const i=Math.max(e,t,r)*2;if(i===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return i===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>_.ansi256ToAnsi(_.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>_.ansi256ToAnsi(_.hexToAnsi256(D)),enumerable:!1}}),_}const Fr=or(),Pu=new Set(["\x1B","\x9B"]),ar=39,Qu="\x07",zD="[",cr="]",KD="m",Nu=`${cr}8;;`,YD=u=>`${Pu.values().next().value}${zD}${u}${KD}`,JD=u=>`${Pu.values().next().value}${Nu}${u}${Qu}`,fr=u=>u.split(" ").map(D=>Du(D)),uD=(u,D,e)=>{const t=[...D];let r=!1,i=!1,F=Du(bD(u.at(-1)));for(const[a,B]of t.entries()){const g=Du(B);if(F+g<=e?u[u.length-1]+=B:(u.push(B),F=0),Pu.has(B)&&(r=!0,i=t.slice(a+1,a+1+Nu.length).join("")===Nu),r){i?B===Qu&&(r=!1,i=!1):B===KD&&(r=!1);continue}F+=g,F===e&&a<t.length-1&&(u.push(""),F=0)}!F&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},Cr=u=>{const D=u.split(" ");let e=D.length;for(;e>0&&!(Du(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},hr=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,i;const F=fr(u);let a=[""];for(const[E,x]of u.split(" ").entries()){e.trim!==!1&&(a[a.length-1]=a.at(-1).trimStart());let b=Du(a.at(-1));if(E!==0&&(b>=D&&(e.wordWrap===!1||e.trim===!1)&&(a.push(""),b=0),(b>0||e.trim===!1)&&(a[a.length-1]+=" ",b++)),e.hard&&F[E]>D){const S=D-b,T=1+Math.floor((F[E]-S-1)/D);Math.floor((F[E]-1)/D)<T&&a.push(""),uD(a,x,D);continue}if(b+F[E]>D&&b>0&&F[E]>0){if(e.wordWrap===!1&&b<D){uD(a,x,D);continue}a.push("")}if(b+F[E]>D&&e.wordWrap===!1){uD(a,x,D);continue}a[a.length-1]+=x}e.trim!==!1&&(a=a.map(E=>Cr(E)));const B=a.join(`
9
- `),g=[...B];let m=0;for(const[E,x]of g.entries()){if(t+=x,Pu.has(x)){const{groups:S}=new RegExp(`(?:\\${zD}(?<code>\\d+)m|\\${Nu}(?<uri>.*)${Qu})`).exec(B.slice(m))||{groups:{}};if(S.code!==void 0){const T=Number.parseFloat(S.code);r=T===ar?void 0:T}else S.uri!==void 0&&(i=S.uri.length===0?void 0:S.uri)}const b=Fr.codes.get(Number(r));g[E+1]===`
5
+ `,r)}while(t!==-1);return i+=u.slice(r),i}const{stdout:vD,stderr:LD}=vt,qu=Symbol("GENERATOR"),Cu=Symbol("STYLER"),Au=Symbol("IS_EMPTY"),SD=["ansi","ansi","ansi256","ansi16m"],hu=Object.create(null),Tt=(u,D={})=>{if(D.level&&!(Number.isInteger(D.level)&&D.level>=0&&D.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const e=vD?vD.level:0;u.level=D.level===void 0?e:D.level},It=u=>{const D=(...e)=>e.join(" ");return Tt(D,u),Object.setPrototypeOf(D,bu.prototype),D};function bu(u){return It(u)}Object.setPrototypeOf(bu.prototype,Function.prototype);for(const[u,D]of Object.entries(eu))hu[u]={get(){const e=$u(this,Vu(D.open,D.close,this[Cu]),this[Au]);return Object.defineProperty(this,u,{value:e}),e}};hu.visible={get(){const u=$u(this,this[Cu],!0);return Object.defineProperty(this,"visible",{value:u}),u}};const Hu=(u,D,e,...t)=>u==="rgb"?D==="ansi16m"?eu[e].ansi16m(...t):D==="ansi256"?eu[e].ansi256(eu.rgbToAnsi256(...t)):eu[e].ansi(eu.rgbToAnsi(...t)):u==="hex"?Hu("rgb",D,e,...eu.hexToRgb(...t)):eu[e][u](...t),Mt=["rgb","hex","ansi256"];for(const u of Mt){hu[u]={get(){const{level:e}=this;return function(...t){const r=Vu(Hu(u,SD[e],"color",...t),eu.color.close,this[Cu]);return $u(this,r,this[Au])}}};const D="bg"+u[0].toUpperCase()+u.slice(1);hu[D]={get(){const{level:e}=this;return function(...t){const r=Vu(Hu(u,SD[e],"bgColor",...t),eu.bgColor.close,this[Cu]);return $u(this,r,this[Au])}}}}const $t=Object.defineProperties(()=>{},{...hu,level:{enumerable:!0,get(){return this[qu].level},set(u){this[qu].level=u}}}),Vu=(u,D,e)=>{let t,r;return e===void 0?(t=u,r=D):(t=e.openAll+u,r=D+e.closeAll),{open:u,close:D,openAll:t,closeAll:r,parent:e}},$u=(u,D,e)=>{const t=(...r)=>kt(t,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(t,$t),t[qu]=u,t[Cu]=D,t[Au]=e,t},kt=(u,D)=>{if(u.level<=0||!D)return u[Au]?"":D;let e=u[Cu];if(e===void 0)return D;const{openAll:t,closeAll:r}=e;if(D.includes("\x1B"))for(;e!==void 0;)D=Lt(D,e.close,e.open),e=e.parent;const i=D.indexOf(`
6
+ `);return i!==-1&&(D=St(D,r,t,i)),t+D+r};Object.defineProperties(bu.prototype,hu);const Eu=bu();bu({level:LD?LD.level:0});function TD(u){let D=0;for(const e of u.split(`
7
+ `))D=Math.max(D,Du(e));return D}function ku(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var _u={exports:{}},_t={topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},Ot={topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},Ut={topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},Pt={topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},Nt={topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},jt={topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},Wt={topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},Gt={topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"},qt={single:_t,double:Ot,round:Ut,bold:Pt,singleDouble:Nt,doubleSingle:jt,classic:Wt,arrow:Gt},ID;function Ht(){if(ID)return _u.exports;ID=1;const u=qt;return _u.exports=u,_u.exports.default=u,_u.exports}var Vt=Ht(),zt=ku(Vt);const Kt=/[\p{Lu}]/u,Yt=/[\p{Ll}]/u,MD=/^[\p{Lu}](?![\p{Lu}])/gu,$D=/([\p{Alpha}\p{N}_]|$)/u,zu=/[_.\- ]+/,Jt=new RegExp("^"+zu.source),kD=new RegExp(zu.source+$D.source,"gu"),_D=new RegExp("\\d+"+$D.source,"gu"),Xt=(u,D,e,t)=>{let r=!1,i=!1,F=!1,a=!1;for(let B=0;B<u.length;B++){const g=u[B];a=B>2?u[B-3]==="-":!0,r&&Kt.test(g)?(u=u.slice(0,B)+"-"+u.slice(B),r=!1,F=i,i=!0,B++):i&&F&&Yt.test(g)&&(!a||t)?(u=u.slice(0,B-1)+"-"+u.slice(B-1),F=i,i=!1,r=!0):(r=D(g)===g&&e(g)!==g,F=i,i=e(g)===g&&D(g)!==g)}return u},Zt=(u,D)=>(MD.lastIndex=0,u.replaceAll(MD,e=>D(e))),Qt=(u,D)=>(kD.lastIndex=0,_D.lastIndex=0,u.replaceAll(_D,(e,t,r)=>["_","-"].includes(u.charAt(r+e.length))?e:D(e)).replaceAll(kD,(e,t)=>D(t)));function ur(u,D){if(!(typeof u=="string"||Array.isArray(u)))throw new TypeError("Expected the input to be `string | string[]`");if(D={pascalCase:!1,preserveConsecutiveUppercase:!1,...D},Array.isArray(u)?u=u.map(i=>i.trim()).filter(i=>i.length).join("-"):u=u.trim(),u.length===0)return"";const e=D.locale===!1?i=>i.toLowerCase():i=>i.toLocaleLowerCase(D.locale),t=D.locale===!1?i=>i.toUpperCase():i=>i.toLocaleUpperCase(D.locale);return u.length===1?zu.test(u)?"":D.pascalCase?t(u):e(u):(u!==e(u)&&(u=Xt(u,e,t,D.preserveConsecutiveUppercase)),u=u.replace(Jt,""),u=D.preserveConsecutiveUppercase?Zt(u,e):e(u),D.pascalCase&&(u=t(u.charAt(0))+u.slice(1)),Qt(u,t))}var Ou={exports:{}},Ku,OD;function Dr(){return OD||(OD=1,Ku=({onlyFirst:u=!1}={})=>{const D=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(D,u?void 0:"g")}),Ku}var Yu,UD;function er(){if(UD)return Yu;UD=1;const u=Dr();return Yu=D=>typeof D=="string"?D.replace(u(),""):D,Yu}var Uu={exports:{}},PD;function tr(){if(PD)return Uu.exports;PD=1;const u=D=>Number.isNaN(D)?!1:D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141);return Uu.exports=u,Uu.exports.default=u,Uu.exports}var Ju,ND;function rr(){return ND||(ND=1,Ju=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\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\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])|\uD83C[\uDF3E\uDF73\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])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\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])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\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\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*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\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\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}),Ju}var jD;function nr(){if(jD)return Ou.exports;jD=1;const u=er(),D=tr(),e=rr(),t=r=>{if(typeof r!="string"||r.length===0||(r=u(r),r.length===0))return 0;r=r.replace(e()," ");let i=0;for(let F=0;F<r.length;F++){const a=r.codePointAt(F);a<=31||a>=127&&a<=159||a>=768&&a<=879||(a>65535&&F++,i+=D(a)?2:1)}return i};return Ou.exports=t,Ou.exports.default=t,Ou.exports}var Xu,WD;function ir(){if(WD)return Xu;WD=1;const u=nr();function D(r,i){if(!r)return r;i=i||{};const F=i.align||"center";if(F==="left")return r;const a=i.split||`
8
+ `,B=i.pad||" ",g=F!=="right"?e:t;let m=!1;Array.isArray(r)||(m=!0,r=String(r).split(a));let d,x=0;return r=r.map(function(b){return b=String(b),d=u(b),x=Math.max(d,x),{str:b,width:d}}).map(function(b){return new Array(g(x,b.width)+1).join(B)+b.str}),m?r.join(a):r}D.left=function(i){return D(i,{align:"left"})},D.center=function(i){return D(i,{align:"center"})},D.right=function(i){return D(i,{align:"right"})},Xu=D;function e(r,i){return Math.floor((r-i)/2)}function t(r,i){return r-i}return Xu}var lr=ir(),GD=ku(lr);const Zu=10,qD=(u=0)=>D=>`\x1B[${D+u}m`,HD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,VD=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,_={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(_.modifier);const sr=Object.keys(_.color),or=Object.keys(_.bgColor);[...sr,...or];function Fr(){const u=new Map;for(const[D,e]of Object.entries(_)){for(const[t,r]of Object.entries(e))_[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=_[t],u.set(r[0],r[1]);Object.defineProperty(_,D,{value:e,enumerable:!1})}return Object.defineProperty(_,"codes",{value:u,enumerable:!1}),_.color.close="\x1B[39m",_.bgColor.close="\x1B[49m",_.color.ansi=qD(),_.color.ansi256=HD(),_.color.ansi16m=VD(),_.bgColor.ansi=qD(Zu),_.bgColor.ansi256=HD(Zu),_.bgColor.ansi16m=VD(Zu),Object.defineProperties(_,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(i=>i+i).join(""));const r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>_.rgbToAnsi256(..._.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;const a=D%36;e=Math.floor(D/36)/5,t=Math.floor(a/6)/5,r=a%6/5}const i=Math.max(e,t,r)*2;if(i===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return i===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>_.ansi256ToAnsi(_.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>_.ansi256ToAnsi(_.hexToAnsi256(D)),enumerable:!1}}),_}const ar=Fr(),Pu=new Set(["\x1B","\x9B"]),cr=39,Qu="\x07",zD="[",fr="]",KD="m",Nu=`${fr}8;;`,YD=u=>`${Pu.values().next().value}${zD}${u}${KD}`,JD=u=>`${Pu.values().next().value}${Nu}${u}${Qu}`,Cr=u=>u.split(" ").map(D=>Du(D)),uD=(u,D,e)=>{const t=[...D];let r=!1,i=!1,F=Du(bD(u.at(-1)));for(const[a,B]of t.entries()){const g=Du(B);if(F+g<=e?u[u.length-1]+=B:(u.push(B),F=0),Pu.has(B)&&(r=!0,i=t.slice(a+1,a+1+Nu.length).join("")===Nu),r){i?B===Qu&&(r=!1,i=!1):B===KD&&(r=!1);continue}F+=g,F===e&&a<t.length-1&&(u.push(""),F=0)}!F&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},hr=u=>{const D=u.split(" ");let e=D.length;for(;e>0&&!(Du(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},Er=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,i;const F=Cr(u);let a=[""];for(const[d,x]of u.split(" ").entries()){e.trim!==!1&&(a[a.length-1]=a.at(-1).trimStart());let b=Du(a.at(-1));if(d!==0&&(b>=D&&(e.wordWrap===!1||e.trim===!1)&&(a.push(""),b=0),(b>0||e.trim===!1)&&(a[a.length-1]+=" ",b++)),e.hard&&F[d]>D){const S=D-b,T=1+Math.floor((F[d]-S-1)/D);Math.floor((F[d]-1)/D)<T&&a.push(""),uD(a,x,D);continue}if(b+F[d]>D&&b>0&&F[d]>0){if(e.wordWrap===!1&&b<D){uD(a,x,D);continue}a.push("")}if(b+F[d]>D&&e.wordWrap===!1){uD(a,x,D);continue}a[a.length-1]+=x}e.trim!==!1&&(a=a.map(d=>hr(d)));const B=a.join(`
9
+ `),g=[...B];let m=0;for(const[d,x]of g.entries()){if(t+=x,Pu.has(x)){const{groups:S}=new RegExp(`(?:\\${zD}(?<code>\\d+)m|\\${Nu}(?<uri>.*)${Qu})`).exec(B.slice(m))||{groups:{}};if(S.code!==void 0){const T=Number.parseFloat(S.code);r=T===cr?void 0:T}else S.uri!==void 0&&(i=S.uri.length===0?void 0:S.uri)}const b=ar.codes.get(Number(r));g[d+1]===`
10
10
  `?(i&&(t+=JD("")),r&&b&&(t+=YD(b))):x===`
11
11
  `&&(r&&b&&(t+=YD(r)),i&&(t+=JD(i))),m+=x.length}return t};function DD(u,D,e){return String(u).normalize().replaceAll(`\r
12
12
  `,`
13
13
  `).split(`
14
- `).map(t=>hr(t,D,e)).join(`
14
+ `).map(t=>Er(t,D,e)).join(`
15
15
  `)}const iu=`
16
- `,z=" ",Ru="none",XD=()=>{const{env:u,stdout:D,stderr:e}=N;return D?.columns?D.columns:e?.columns?e.columns:u.COLUMNS?Number.parseInt(u.COLUMNS,10):80},ZD=u=>typeof u=="number"?{top:u,right:u*3,bottom:u,left:u*3}:{top:0,right:0,bottom:0,left:0,...u},wu=u=>u===Ru?0:2,Er=u=>{const D=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"];let e;if(u===Ru){u={};for(const t of D)u[t]=""}if(typeof u=="string"){if(e=Vt[u],!e)throw new TypeError(`Invalid border style: ${u}`)}else{typeof u?.vertical=="string"&&(u.left=u.vertical,u.right=u.vertical),typeof u?.horizontal=="string"&&(u.top=u.horizontal,u.bottom=u.horizontal);for(const t of D)if(u[t]===null||typeof u[t]!="string")throw new TypeError(`Invalid border style: ${t}`);e=u}return e},dr=(u,D,e)=>{let t="";const r=Du(u);switch(e){case"left":{t=u+D.slice(r);break}case"right":{t=D.slice(r)+u;break}default:{D=D.slice(r),D.length%2===1?(D=D.slice(Math.floor(D.length/2)),t=D.slice(1)+u+D):(D=D.slice(D.length/2),t=D+u+D);break}}return t},gr=(u,{padding:D,width:e,textAlignment:t,height:r})=>{u=WD(u,{align:t});let i=u.split(iu);const F=TD(u),a=e-D.left-D.right;if(F>a){const m=[];for(const E of i){const x=DD(E,a,{hard:!0}),S=WD(x,{align:t}).split(`
17
- `),T=Math.max(...S.map(A=>Du(A)));for(const A of S){let L;switch(t){case"center":{L=z.repeat((a-T)/2)+A;break}case"right":{L=z.repeat(a-T)+A;break}default:{L=A;break}}m.push(L)}}i=m}t==="center"&&F<a?i=i.map(m=>z.repeat((a-F)/2)+m):t==="right"&&F<a&&(i=i.map(m=>z.repeat(a-F)+m));const B=z.repeat(D.left),g=z.repeat(D.right);return i=i.map(m=>{const E=B+m+g;return E+z.repeat(e-Du(E))}),D.top>0&&(i=[...Array.from({length:D.top}).fill(z.repeat(e)),...i]),D.bottom>0&&(i=[...i,...Array.from({length:D.bottom}).fill(z.repeat(e))]),r&&i.length>r?i=i.slice(0,r):r&&i.length<r&&(i=[...i,...Array.from({length:r-i.length}).fill(z.repeat(e))]),i.join(iu)},Br=(u,D,e)=>{const t=m=>{const E=e.borderColor?Ar(e.borderColor)(m):m;return e.dimBorder?Eu.dim(E):E},r=m=>e.backgroundColor?br(e.backgroundColor)(m):m,i=Er(e.borderStyle),F=XD();let a=z.repeat(e.margin.left);if(e.float==="center"){const m=Math.max((F-D-wu(e.borderStyle))/2,0);a=z.repeat(m)}else if(e.float==="right"){const m=Math.max(F-D-e.margin.right-wu(e.borderStyle),0);a=z.repeat(m)}let B="";e.margin.top&&(B+=iu.repeat(e.margin.top)),(e.borderStyle!==Ru||e.title)&&(B+=t(a+i.topLeft+(e.title?dr(e.title,i.top.repeat(D),e.titleAlignment):i.top.repeat(D))+i.topRight)+iu);const g=u.split(iu);return B+=g.map(m=>a+t(i.left)+r(m)+t(i.right)).join(iu),e.borderStyle!==Ru&&(B+=iu+t(a+i.bottomLeft+i.bottom.repeat(D)+i.bottomRight)),e.margin.bottom&&(B+=iu.repeat(e.margin.bottom)),B},mr=u=>{if(u.fullscreen&&N?.stdout){let D=[N.stdout.columns,N.stdout.rows];typeof u.fullscreen=="function"&&(D=u.fullscreen(...D)),u.width||=D[0],u.height||=D[1]}return u.width&&=Math.max(1,u.width-wu(u.borderStyle)),u.height&&=Math.max(1,u.height-wu(u.borderStyle)),u},QD=(u,D)=>D===Ru?u:` ${u} `,pr=(u,D)=>{D=mr(D);const e=D.width!==void 0,t=XD(),r=wu(D.borderStyle),i=t-D.margin.left-D.margin.right-r,F=TD(DD(u,t-r,{hard:!0,trim:!1}))+D.padding.left+D.padding.right;if(D.title&&e?(D.title=D.title.slice(0,Math.max(0,D.width-2)),D.title&&=QD(D.title,D.borderStyle)):D.title&&(D.title=D.title.slice(0,Math.max(0,i-2)),D.title&&(D.title=QD(D.title,D.borderStyle),Du(D.title)>F&&(D.width=Du(D.title)))),D.width||=F,!e){if(D.margin.left&&D.margin.right&&D.width>i){const B=(t-D.width-r)/(D.margin.left+D.margin.right);D.margin.left=Math.max(0,Math.floor(D.margin.left*B)),D.margin.right=Math.max(0,Math.floor(D.margin.right*B))}D.width=Math.min(D.width,t-r-D.margin.left-D.margin.right)}return D.width-(D.padding.left+D.padding.right)<=0&&(D.padding.left=0,D.padding.right=0),D.height&&D.height-(D.padding.top+D.padding.bottom)<=0&&(D.padding.top=0,D.padding.bottom=0),D},eD=u=>u.match(/^#(?:[0-f]{3}){1,2}$/i),ue=u=>typeof u=="string"&&(Eu[u]??eD(u)),Ar=u=>eD(u)?Eu.hex(u):Eu[u],br=u=>eD(u)?Eu.bgHex(u):Eu[Qt(["bg",u])];function Rr(u,D){if(D={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...D},D.align&&(D.textAlignment=D.align),D.borderColor&&!ue(D.borderColor))throw new Error(`${D.borderColor} is not a valid borderColor`);if(D.backgroundColor&&!ue(D.backgroundColor))throw new Error(`${D.backgroundColor} is not a valid backgroundColor`);return D.padding=ZD(D.padding),D.margin=ZD(D.margin),D=pr(u,D),u=gr(u,D),Br(u,D.width,D)}const tD=(u,D=[])=>u.name==="up"||D.includes("vim")&&u.name==="k"||D.includes("emacs")&&u.ctrl&&u.name==="p",De=(u,D=[])=>u.name==="down"||D.includes("vim")&&u.name==="j"||D.includes("emacs")&&u.ctrl&&u.name==="n",wr=u=>u.name==="backspace",yr=u=>"1234567890".includes(u.name),xr=u=>u.name==="enter"||u.name==="return";class vr extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(D){super(),this.cause=D?.cause}}class Lr extends Error{name="CancelPromptError";message="Prompt was canceled"}class ee extends Error{name="ExitPromptError"}class Sr extends Error{name="HookError"}class te extends Error{name="ValidationError"}const re=new Me;function Tr(u){return{rl:u,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function Ir(u,D){const e=Tr(u);return re.run(e,()=>{function t(r){e.handleChange=()=>{e.index=0,r()},e.handleChange()}return D(t)})}function su(){const u=re.getStore();if(!u)throw new Sr("[Inquirer] Hook functions can only be called from within a prompt");return u}function ne(){return su().rl}function ie(u){const D=(...e)=>{const t=su();let r=!1;const i=t.handleChange;t.handleChange=()=>{r=!0};const F=u(...e);return r&&i(),t.handleChange=i,F};return Gu.bind(D)}function rD(u){const D=su(),{index:e}=D,t={get(){return D.hooks[e]},set(i){D.hooks[e]=i},initialized:e in D.hooks},r=u(t);return D.index++,r}function $r(){su().handleChange()}const yu={queue(u){const D=su(),{index:e}=D;D.hooksEffect.push(()=>{D.hooksCleanup[e]?.();const t=u(ne());if(t!=null&&typeof t!="function")throw new te("useEffect return value must be a cleanup function or nothing.");D.hooksCleanup[e]=t})},run(){const u=su();ie(()=>{u.hooksEffect.forEach(D=>{D()}),u.hooksEffect.length=0})()},clearAll(){const u=su();u.hooksCleanup.forEach(D=>{D?.()}),u.hooksEffect.length=0,u.hooksCleanup.length=0}};function xu(u){return rD(D=>{const e=Gu.bind(function(i){D.get()!==i&&(D.set(i),$r())});if(D.initialized)return[D.get(),e];const t=typeof u=="function"?u():u;return D.set(t),[t,e]})}function nD(u,D){rD(e=>{const t=e.get();(!Array.isArray(t)||D.some((i,F)=>!Object.is(i,t[F])))&&yu.queue(u),e.set(D)})}function Mr(){return N.platform!=="win32"?N.env.TERM!=="linux":!!N.env.WT_SESSION||!!N.env.TERMINUS_SUBLIME||N.env.ConEmuTask==="{cmd::Cmder}"||N.env.TERM_PROGRAM==="Terminus-Sublime"||N.env.TERM_PROGRAM==="vscode"||N.env.TERM==="xterm-256color"||N.env.TERM==="alacritty"||N.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const le={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},kr={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},_r={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Or={...le,...kr},Ur={...le,..._r},Pr=Mr(),iD=Pr?Or:Ur,Nr={prefix:{idle:j("blue","?"),done:j("green",iD.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(u=>j("yellow",u))},style:{answer:u=>j("cyan",u),message:u=>j("bold",u),error:u=>j("red",`> ${u}`),defaultAnswer:u=>j("dim",`(${u})`),help:u=>j("dim",u),highlight:u=>j("cyan",u),key:u=>j("cyan",j("bold",`<${u}>`))}};function se(u){if(typeof u!="object"||u===null)return!1;let D=u;for(;Object.getPrototypeOf(D)!==null;)D=Object.getPrototypeOf(D);return Object.getPrototypeOf(u)===D}function oe(...u){const D={};for(const e of u)for(const[t,r]of Object.entries(e)){const i=D[t];D[t]=se(i)&&se(r)?oe(i,r):r}return D}function Fe(...u){const D=[Nr,...u.filter(e=>e!=null)];return oe(...D)}function jr({status:u="idle",theme:D}){const[e,t]=xu(!1),[r,i]=xu(0),{prefix:F,spinner:a}=Fe(D);return nD(()=>{if(u==="loading"){let g,m=-1;const E=setTimeout(()=>{t(!0),g=setInterval(()=>{m=m+1,i(m%a.frames.length)},a.interval)},300);return()=>{clearTimeout(E),clearInterval(g)}}else t(!1)},[u]),e?a.frames[r]:typeof F=="string"?F:F[u==="loading"?"idle":u]??F.idle}function lD(u,D){return rD(e=>{const t=e.get();if(!t||t.dependencies.length!==D.length||t.dependencies.some((r,i)=>r!==D[i])){const r=u();return e.set({value:r,dependencies:D}),r}return t.value})}function sD(u){return xu({current:u})[0]}function Gr(u){const D=sD(u);D.current=u,nD(e=>{let t=!1;const r=ie((i,F)=>{t||D.current(F,e)});return e.input.on("keypress",r),()=>{t=!0,e.input.removeListener("keypress",r)}},[])}var oD,ae;function Wr(){if(ae)return oD;ae=1,oD=D;function u(e){const t={defaultWidth:0,output:process.stdout,tty:_e};return e?(Object.keys(t).forEach(function(r){e[r]||(e[r]=t[r])}),e):t}function D(e){const t=u(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){const r=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(r)&&r!==0)return r}return t.defaultWidth}return oD}var qr=Wr(),Hr=ku(qr);function FD(u,D){return u.split(`
16
+ `,V=" ",Ru="none",XD=()=>{const{env:u,stdout:D,stderr:e}=N;return D?.columns?D.columns:e?.columns?e.columns:u.COLUMNS?Number.parseInt(u.COLUMNS,10):80},ZD=u=>typeof u=="number"?{top:u,right:u*3,bottom:u,left:u*3}:{top:0,right:0,bottom:0,left:0,...u},wu=u=>u===Ru?0:2,dr=u=>{const D=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"];let e;if(u===Ru){u={};for(const t of D)u[t]=""}if(typeof u=="string"){if(e=zt[u],!e)throw new TypeError(`Invalid border style: ${u}`)}else{typeof u?.vertical=="string"&&(u.left=u.vertical,u.right=u.vertical),typeof u?.horizontal=="string"&&(u.top=u.horizontal,u.bottom=u.horizontal);for(const t of D)if(u[t]===null||typeof u[t]!="string")throw new TypeError(`Invalid border style: ${t}`);e=u}return e},gr=(u,D,e)=>{let t="";const r=Du(u);switch(e){case"left":{t=u+D.slice(r);break}case"right":{t=D.slice(r)+u;break}default:{D=D.slice(r),D.length%2===1?(D=D.slice(Math.floor(D.length/2)),t=D.slice(1)+u+D):(D=D.slice(D.length/2),t=D+u+D);break}}return t},Br=(u,{padding:D,width:e,textAlignment:t,height:r})=>{u=GD(u,{align:t});let i=u.split(iu);const F=TD(u),a=e-D.left-D.right;if(F>a){const m=[];for(const d of i){const x=DD(d,a,{hard:!0}),S=GD(x,{align:t}).split(`
17
+ `),T=Math.max(...S.map(A=>Du(A)));for(const A of S){let L;switch(t){case"center":{L=V.repeat((a-T)/2)+A;break}case"right":{L=V.repeat(a-T)+A;break}default:{L=A;break}}m.push(L)}}i=m}t==="center"&&F<a?i=i.map(m=>V.repeat((a-F)/2)+m):t==="right"&&F<a&&(i=i.map(m=>V.repeat(a-F)+m));const B=V.repeat(D.left),g=V.repeat(D.right);return i=i.map(m=>{const d=B+m+g;return d+V.repeat(e-Du(d))}),D.top>0&&(i=[...Array.from({length:D.top}).fill(V.repeat(e)),...i]),D.bottom>0&&(i=[...i,...Array.from({length:D.bottom}).fill(V.repeat(e))]),r&&i.length>r?i=i.slice(0,r):r&&i.length<r&&(i=[...i,...Array.from({length:r-i.length}).fill(V.repeat(e))]),i.join(iu)},mr=(u,D,e)=>{const t=m=>{const d=e.borderColor?br(e.borderColor)(m):m;return e.dimBorder?Eu.dim(d):d},r=m=>e.backgroundColor?Rr(e.backgroundColor)(m):m,i=dr(e.borderStyle),F=XD();let a=V.repeat(e.margin.left);if(e.float==="center"){const m=Math.max((F-D-wu(e.borderStyle))/2,0);a=V.repeat(m)}else if(e.float==="right"){const m=Math.max(F-D-e.margin.right-wu(e.borderStyle),0);a=V.repeat(m)}let B="";e.margin.top&&(B+=iu.repeat(e.margin.top)),(e.borderStyle!==Ru||e.title)&&(B+=t(a+i.topLeft+(e.title?gr(e.title,i.top.repeat(D),e.titleAlignment):i.top.repeat(D))+i.topRight)+iu);const g=u.split(iu);return B+=g.map(m=>a+t(i.left)+r(m)+t(i.right)).join(iu),e.borderStyle!==Ru&&(B+=iu+t(a+i.bottomLeft+i.bottom.repeat(D)+i.bottomRight)),e.margin.bottom&&(B+=iu.repeat(e.margin.bottom)),B},pr=u=>{if(u.fullscreen&&N?.stdout){let D=[N.stdout.columns,N.stdout.rows];typeof u.fullscreen=="function"&&(D=u.fullscreen(...D)),u.width||=D[0],u.height||=D[1]}return u.width&&=Math.max(1,u.width-wu(u.borderStyle)),u.height&&=Math.max(1,u.height-wu(u.borderStyle)),u},QD=(u,D)=>D===Ru?u:` ${u} `,Ar=(u,D)=>{D=pr(D);const e=D.width!==void 0,t=XD(),r=wu(D.borderStyle),i=t-D.margin.left-D.margin.right-r,F=TD(DD(u,t-r,{hard:!0,trim:!1}))+D.padding.left+D.padding.right;if(D.title&&e?(D.title=D.title.slice(0,Math.max(0,D.width-2)),D.title&&=QD(D.title,D.borderStyle)):D.title&&(D.title=D.title.slice(0,Math.max(0,i-2)),D.title&&(D.title=QD(D.title,D.borderStyle),Du(D.title)>F&&(D.width=Du(D.title)))),D.width||=F,!e){if(D.margin.left&&D.margin.right&&D.width>i){const B=(t-D.width-r)/(D.margin.left+D.margin.right);D.margin.left=Math.max(0,Math.floor(D.margin.left*B)),D.margin.right=Math.max(0,Math.floor(D.margin.right*B))}D.width=Math.min(D.width,t-r-D.margin.left-D.margin.right)}return D.width-(D.padding.left+D.padding.right)<=0&&(D.padding.left=0,D.padding.right=0),D.height&&D.height-(D.padding.top+D.padding.bottom)<=0&&(D.padding.top=0,D.padding.bottom=0),D},eD=u=>u.match(/^#(?:[0-f]{3}){1,2}$/i),ue=u=>typeof u=="string"&&(Eu[u]??eD(u)),br=u=>eD(u)?Eu.hex(u):Eu[u],Rr=u=>eD(u)?Eu.bgHex(u):Eu[ur(["bg",u])];function wr(u,D){if(D={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...D},D.align&&(D.textAlignment=D.align),D.borderColor&&!ue(D.borderColor))throw new Error(`${D.borderColor} is not a valid borderColor`);if(D.backgroundColor&&!ue(D.backgroundColor))throw new Error(`${D.backgroundColor} is not a valid backgroundColor`);return D.padding=ZD(D.padding),D.margin=ZD(D.margin),D=Ar(u,D),u=Br(u,D),mr(u,D.width,D)}const tD=(u,D=[])=>u.name==="up"||D.includes("vim")&&u.name==="k"||D.includes("emacs")&&u.ctrl&&u.name==="p",De=(u,D=[])=>u.name==="down"||D.includes("vim")&&u.name==="j"||D.includes("emacs")&&u.ctrl&&u.name==="n",yr=u=>u.name==="backspace",xr=u=>"1234567890".includes(u.name),vr=u=>u.name==="enter"||u.name==="return";class Lr extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(D){super(),this.cause=D?.cause}}class Sr extends Error{name="CancelPromptError";message="Prompt was canceled"}class ee extends Error{name="ExitPromptError"}class Tr extends Error{name="HookError"}class te extends Error{name="ValidationError"}const re=new $e;function Ir(u){return{rl:u,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function Mr(u,D){const e=Ir(u);return re.run(e,()=>{function t(r){e.handleChange=()=>{e.index=0,r()},e.handleChange()}return D(t)})}function su(){const u=re.getStore();if(!u)throw new Tr("[Inquirer] Hook functions can only be called from within a prompt");return u}function ne(){return su().rl}function ie(u){const D=(...e)=>{const t=su();let r=!1;const i=t.handleChange;t.handleChange=()=>{r=!0};const F=u(...e);return r&&i(),t.handleChange=i,F};return Wu.bind(D)}function rD(u){const D=su(),{index:e}=D,t={get(){return D.hooks[e]},set(i){D.hooks[e]=i},initialized:e in D.hooks},r=u(t);return D.index++,r}function $r(){su().handleChange()}const yu={queue(u){const D=su(),{index:e}=D;D.hooksEffect.push(()=>{D.hooksCleanup[e]?.();const t=u(ne());if(t!=null&&typeof t!="function")throw new te("useEffect return value must be a cleanup function or nothing.");D.hooksCleanup[e]=t})},run(){const u=su();ie(()=>{u.hooksEffect.forEach(D=>{D()}),u.hooksEffect.length=0})()},clearAll(){const u=su();u.hooksCleanup.forEach(D=>{D?.()}),u.hooksEffect.length=0,u.hooksCleanup.length=0}};function xu(u){return rD(D=>{const e=Wu.bind(function(i){D.get()!==i&&(D.set(i),$r())});if(D.initialized)return[D.get(),e];const t=typeof u=="function"?u():u;return D.set(t),[t,e]})}function nD(u,D){rD(e=>{const t=e.get();(!Array.isArray(t)||D.some((i,F)=>!Object.is(i,t[F])))&&yu.queue(u),e.set(D)})}function kr(){return N.platform!=="win32"?N.env.TERM!=="linux":!!N.env.WT_SESSION||!!N.env.TERMINUS_SUBLIME||N.env.ConEmuTask==="{cmd::Cmder}"||N.env.TERM_PROGRAM==="Terminus-Sublime"||N.env.TERM_PROGRAM==="vscode"||N.env.TERM==="xterm-256color"||N.env.TERM==="alacritty"||N.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const le={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},_r={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Or={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Ur={...le,..._r},Pr={...le,...Or},Nr=kr(),iD=Nr?Ur:Pr,jr={prefix:{idle:j("blue","?"),done:j("green",iD.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(u=>j("yellow",u))},style:{answer:u=>j("cyan",u),message:u=>j("bold",u),error:u=>j("red",`> ${u}`),defaultAnswer:u=>j("dim",`(${u})`),help:u=>j("dim",u),highlight:u=>j("cyan",u),key:u=>j("cyan",j("bold",`<${u}>`))}};function se(u){if(typeof u!="object"||u===null)return!1;let D=u;for(;Object.getPrototypeOf(D)!==null;)D=Object.getPrototypeOf(D);return Object.getPrototypeOf(u)===D}function oe(...u){const D={};for(const e of u)for(const[t,r]of Object.entries(e)){const i=D[t];D[t]=se(i)&&se(r)?oe(i,r):r}return D}function Fe(...u){const D=[jr,...u.filter(e=>e!=null)];return oe(...D)}function Wr({status:u="idle",theme:D}){const[e,t]=xu(!1),[r,i]=xu(0),{prefix:F,spinner:a}=Fe(D);return nD(()=>{if(u==="loading"){let g,m=-1;const d=setTimeout(()=>{t(!0),g=setInterval(()=>{m=m+1,i(m%a.frames.length)},a.interval)},300);return()=>{clearTimeout(d),clearInterval(g)}}else t(!1)},[u]),e?a.frames[r]:typeof F=="string"?F:F[u==="loading"?"idle":u]??F.idle}function lD(u,D){return rD(e=>{const t=e.get();if(!t||t.dependencies.length!==D.length||t.dependencies.some((r,i)=>r!==D[i])){const r=u();return e.set({value:r,dependencies:D}),r}return t.value})}function sD(u){return xu({current:u})[0]}function Gr(u){const D=sD(u);D.current=u,nD(e=>{let t=!1;const r=ie((i,F)=>{t||D.current(F,e)});return e.input.on("keypress",r),()=>{t=!0,e.input.removeListener("keypress",r)}},[])}var oD,ae;function qr(){if(ae)return oD;ae=1,oD=D;function u(e){const t={defaultWidth:0,output:process.stdout,tty:_e};return e?(Object.keys(t).forEach(function(r){e[r]||(e[r]=t[r])}),e):t}function D(e){const t=u(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){const r=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(r)&&r!==0)return r}return t.defaultWidth}return oD}var Hr=qr(),Vr=ku(Hr);function FD(u,D){return u.split(`
18
18
  `).flatMap(e=>DD(e,D,{trim:!1,hard:!0}).split(`
19
19
  `).map(t=>t.trimEnd())).join(`
20
- `)}function ce(){return Hr({defaultWidth:80,output:ne().output})}function Vr({active:u,renderedItems:D,pageSize:e,loop:t}){const r=sD({lastPointer:u,lastActive:void 0}),{lastPointer:i,lastActive:F}=r.current,a=Math.floor(e/2),B=D.reduce((E,x)=>E+x.length,0),g=D.slice(0,u).reduce((E,x)=>E+x.length,0);let m=g;if(B>e)if(t)m=i,F!=null&&F<u&&u-F<e&&(m=Math.min(a,Math.abs(u-F)===1?Math.min(i+(D[F]?.length??0),Math.max(g,i)):i+u-F));else{const E=D.slice(u).reduce((x,b)=>x+b.length,0);m=E<e-a?e-E:Math.min(g,a)}return r.current.lastPointer=m,r.current.lastActive=u,m}function zr({items:u,active:D,renderItem:e,pageSize:t,loop:r=!0}){const i=ce(),F=L=>(L%u.length+u.length)%u.length,a=u.map((L,I)=>L==null?[]:FD(e({item:L,index:I,isActive:I===D}),i).split(`
21
- `)),B=a.reduce((L,I)=>L+I.length,0),g=L=>a[L]??[],m=Vr({active:D,renderedItems:a,pageSize:t,loop:r}),E=g(D).slice(0,t),x=m+E.length<=t?m:t-E.length,b=Array.from({length:t});b.splice(x,E.length,...E);const S=new Set([D]);let T=x+E.length,A=F(D+1);for(;T<t&&!S.has(A)&&(r&&B>t?A!==D:A>D);){const I=g(A).slice(0,t-T);b.splice(T,I.length,...I),S.add(A),T+=I.length,A=F(A+1)}for(T=x-1,A=F(D-1);T>=0&&!S.has(A)&&(r&&B>t?A!==D:A<D);){const L=g(A),I=L.slice(Math.max(0,L.length-T-1));b.splice(T-I.length+1,I.length,...I),S.add(A),T-=I.length,A=F(A-1)}return b.filter(L=>typeof L=="string").join(`
22
- `)}var aD,fe;function Kr(){if(fe)return aD;fe=1;const u=ke;class D extends u{#e=null;constructor(t={}){super(t),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}#D(t,r){return this._dest?this._dest[t]:this._src?this._src[t]:r}#u(t,...r){typeof this._dest?.[t]=="function"&&this._dest[t](...r),typeof this._src?.[t]=="function"&&this._src[t](...r)}get isTTY(){return this.#e!==null?this.#e:this.#D("isTTY",!1)}set isTTY(t){this.#e=t}get rows(){return this.#D("rows")}get columns(){return this.#D("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(t){this._src=t}pipe(t,r){return this._dest=t,super.pipe(t,r)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.slice(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.slice(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)}end(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")}destroy(...t){return this.#u("destroy",...t)}destroySoon(...t){return this.#u("destroySoon",...t)}close(...t){return this.#u("close",...t)}}return aD=D,aD}var Yr=Kr(),Jr=ku(Yr);const du=[];du.push("SIGHUP","SIGINT","SIGTERM"),process.platform!=="win32"&&du.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&du.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const ju=u=>!!u&&typeof u=="object"&&typeof u.removeListener=="function"&&typeof u.emit=="function"&&typeof u.reallyExit=="function"&&typeof u.listeners=="function"&&typeof u.kill=="function"&&typeof u.pid=="number"&&typeof u.on=="function",cD=Symbol.for("signal-exit emitter"),fD=globalThis,Xr=Object.defineProperty.bind(Object);class Zr{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(fD[cD])return fD[cD];Xr(fD,cD,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,e){this.listeners[D].push(e)}removeListener(D,e){const t=this.listeners[D],r=t.indexOf(e);r!==-1&&(r===0&&t.length===1?t.length=0:t.splice(r,1))}emit(D,e,t){if(this.emitted[D])return!1;this.emitted[D]=!0;let r=!1;for(const i of this.listeners[D])r=i(e,t)===!0||r;return D==="exit"&&(r=this.emit("afterExit",e,t)||r),r}}class Ce{}const Qr=u=>({onExit(D,e){return u.onExit(D,e)},load(){return u.load()},unload(){return u.unload()}});class un extends Ce{onExit(){return()=>{}}load(){}unload(){}}class Dn extends Ce{#e=CD.platform==="win32"?"SIGINT":"SIGHUP";#D=new Zr;#u;#n;#i;#r={};#t=!1;constructor(D){super(),this.#u=D,this.#r={};for(const e of du)this.#r[e]=()=>{const t=this.#u.listeners(e);let{count:r}=this.#D;const i=D;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(r+=i.__signal_exit_emitter__.count),t.length===r){this.unload();const F=this.#D.emit("exit",null,e),a=e==="SIGHUP"?this.#e:e;F||D.kill(D.pid,a)}};this.#i=D.reallyExit,this.#n=D.emit}onExit(D,e){if(!ju(this.#u))return()=>{};this.#t===!1&&this.load();const t=e?.alwaysLast?"afterExit":"exit";return this.#D.on(t,D),()=>{this.#D.removeListener(t,D),this.#D.listeners.exit.length===0&&this.#D.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#t){this.#t=!0,this.#D.count+=1;for(const D of du)try{const e=this.#r[D];e&&this.#u.on(D,e)}catch{}this.#u.emit=(D,...e)=>this.#s(D,...e),this.#u.reallyExit=D=>this.#l(D)}}unload(){this.#t&&(this.#t=!1,du.forEach(D=>{const e=this.#r[D];if(!e)throw new Error("Listener not defined for signal: "+D);try{this.#u.removeListener(D,e)}catch{}}),this.#u.emit=this.#n,this.#u.reallyExit=this.#i,this.#D.count-=1)}#l(D){return ju(this.#u)?(this.#u.exitCode=D||0,this.#D.emit("exit",this.#u.exitCode,null),this.#i.call(this.#u,this.#u.exitCode)):0}#s(D,...e){const t=this.#n;if(D==="exit"&&ju(this.#u)){typeof e[0]=="number"&&(this.#u.exitCode=e[0]);const r=t.call(this.#u,D,...e);return this.#D.emit("exit",this.#u.exitCode,null),r}else return t.call(this.#u,D,...e)}}const CD=globalThis.process,{onExit:en}=Qr(ju(CD)?new Dn(CD):new un),ou="\x1B[",tn=ou+"G",rn=ou+"?25l",nn=ou+"?25h",he=(u=1)=>u>0?`${ou}${u}A`:"",Ee=(u=1)=>u>0?`${ou}${u}B`:"",de=(u,D)=>`${ou}${u+1}G`,ge=ou+"2K",Be=u=>u>0?(ge+he(1)).repeat(u-1)+ge+tn:"",me=u=>u.split(`
23
- `).length,ln=u=>u.split(`
24
- `).pop()??"";class sn{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(D){this.rl=D,this.cursorPos=D.getCursorPos()}write(D){this.rl.output.unmute(),this.rl.output.write(D),this.rl.output.mute()}render(D,e=""){const t=ln(D),r=Ie(t);let i=r;this.rl.line.length>0&&(i=i.slice(0,-this.rl.line.length)),this.rl.setPrompt(i),this.cursorPos=this.rl.getCursorPos();const F=ce();D=FD(D,F),e=FD(e,F),r.length%F===0&&(D+=`
20
+ `)}function ce(){return Vr({defaultWidth:80,output:ne().output})}function zr({active:u,renderedItems:D,pageSize:e,loop:t}){const r=sD({lastPointer:u,lastActive:void 0}),{lastPointer:i,lastActive:F}=r.current,a=Math.floor(e/2),B=D.reduce((d,x)=>d+x.length,0),g=D.slice(0,u).reduce((d,x)=>d+x.length,0);let m=g;if(B>e)if(t)m=i,F!=null&&F<u&&u-F<e&&(m=Math.min(a,Math.abs(u-F)===1?Math.min(i+(D[F]?.length??0),Math.max(g,i)):i+u-F));else{const d=D.slice(u).reduce((x,b)=>x+b.length,0);m=d<e-a?e-d:Math.min(g,a)}return r.current.lastPointer=m,r.current.lastActive=u,m}function Kr({items:u,active:D,renderItem:e,pageSize:t,loop:r=!0}){const i=ce(),F=L=>(L%u.length+u.length)%u.length,a=u.map((L,I)=>L==null?[]:FD(e({item:L,index:I,isActive:I===D}),i).split(`
21
+ `)),B=a.reduce((L,I)=>L+I.length,0),g=L=>a[L]??[],m=zr({active:D,renderedItems:a,pageSize:t,loop:r}),d=g(D).slice(0,t),x=m+d.length<=t?m:t-d.length,b=Array.from({length:t});b.splice(x,d.length,...d);const S=new Set([D]);let T=x+d.length,A=F(D+1);for(;T<t&&!S.has(A)&&(r&&B>t?A!==D:A>D);){const I=g(A).slice(0,t-T);b.splice(T,I.length,...I),S.add(A),T+=I.length,A=F(A+1)}for(T=x-1,A=F(D-1);T>=0&&!S.has(A)&&(r&&B>t?A!==D:A<D);){const L=g(A),I=L.slice(Math.max(0,L.length-T-1));b.splice(T-I.length+1,I.length,...I),S.add(A),T-=I.length,A=F(A-1)}return b.filter(L=>typeof L=="string").join(`
22
+ `)}var aD,fe;function Yr(){if(fe)return aD;fe=1;const u=ke;class D extends u{#e=null;constructor(t={}){super(t),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}#D(t,r){return this._dest?this._dest[t]:this._src?this._src[t]:r}#u(t,...r){typeof this._dest?.[t]=="function"&&this._dest[t](...r),typeof this._src?.[t]=="function"&&this._src[t](...r)}get isTTY(){return this.#e!==null?this.#e:this.#D("isTTY",!1)}set isTTY(t){this.#e=t}get rows(){return this.#D("rows")}get columns(){return this.#D("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(t){this._src=t}pipe(t,r){return this._dest=t,super.pipe(t,r)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.slice(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.slice(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)}end(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")}destroy(...t){return this.#u("destroy",...t)}destroySoon(...t){return this.#u("destroySoon",...t)}close(...t){return this.#u("close",...t)}}return aD=D,aD}var Jr=Yr(),Xr=ku(Jr);const du=[];du.push("SIGHUP","SIGINT","SIGTERM"),process.platform!=="win32"&&du.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&du.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const ju=u=>!!u&&typeof u=="object"&&typeof u.removeListener=="function"&&typeof u.emit=="function"&&typeof u.reallyExit=="function"&&typeof u.listeners=="function"&&typeof u.kill=="function"&&typeof u.pid=="number"&&typeof u.on=="function",cD=Symbol.for("signal-exit emitter"),fD=globalThis,Zr=Object.defineProperty.bind(Object);class Qr{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(fD[cD])return fD[cD];Zr(fD,cD,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,e){this.listeners[D].push(e)}removeListener(D,e){const t=this.listeners[D],r=t.indexOf(e);r!==-1&&(r===0&&t.length===1?t.length=0:t.splice(r,1))}emit(D,e,t){if(this.emitted[D])return!1;this.emitted[D]=!0;let r=!1;for(const i of this.listeners[D])r=i(e,t)===!0||r;return D==="exit"&&(r=this.emit("afterExit",e,t)||r),r}}class Ce{}const un=u=>({onExit(D,e){return u.onExit(D,e)},load(){return u.load()},unload(){return u.unload()}});class Dn extends Ce{onExit(){return()=>{}}load(){}unload(){}}class en extends Ce{#e=CD.platform==="win32"?"SIGINT":"SIGHUP";#D=new Qr;#u;#n;#i;#r={};#t=!1;constructor(D){super(),this.#u=D,this.#r={};for(const e of du)this.#r[e]=()=>{const t=this.#u.listeners(e);let{count:r}=this.#D;const i=D;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(r+=i.__signal_exit_emitter__.count),t.length===r){this.unload();const F=this.#D.emit("exit",null,e),a=e==="SIGHUP"?this.#e:e;F||D.kill(D.pid,a)}};this.#i=D.reallyExit,this.#n=D.emit}onExit(D,e){if(!ju(this.#u))return()=>{};this.#t===!1&&this.load();const t=e?.alwaysLast?"afterExit":"exit";return this.#D.on(t,D),()=>{this.#D.removeListener(t,D),this.#D.listeners.exit.length===0&&this.#D.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#t){this.#t=!0,this.#D.count+=1;for(const D of du)try{const e=this.#r[D];e&&this.#u.on(D,e)}catch{}this.#u.emit=(D,...e)=>this.#s(D,...e),this.#u.reallyExit=D=>this.#l(D)}}unload(){this.#t&&(this.#t=!1,du.forEach(D=>{const e=this.#r[D];if(!e)throw new Error("Listener not defined for signal: "+D);try{this.#u.removeListener(D,e)}catch{}}),this.#u.emit=this.#n,this.#u.reallyExit=this.#i,this.#D.count-=1)}#l(D){return ju(this.#u)?(this.#u.exitCode=D||0,this.#D.emit("exit",this.#u.exitCode,null),this.#i.call(this.#u,this.#u.exitCode)):0}#s(D,...e){const t=this.#n;if(D==="exit"&&ju(this.#u)){typeof e[0]=="number"&&(this.#u.exitCode=e[0]);const r=t.call(this.#u,D,...e);return this.#D.emit("exit",this.#u.exitCode,null),r}else return t.call(this.#u,D,...e)}}const CD=globalThis.process,{onExit:tn}=un(ju(CD)?new en(CD):new Dn),ou="\x1B[",rn=ou+"G",nn=ou+"?25l",ln=ou+"?25h",he=(u=1)=>u>0?`${ou}${u}A`:"",Ee=(u=1)=>u>0?`${ou}${u}B`:"",de=(u,D)=>`${ou}${u+1}G`,ge=ou+"2K",Be=u=>u>0?(ge+he(1)).repeat(u-1)+ge+rn:"",me=u=>u.split(`
23
+ `).length,sn=u=>u.split(`
24
+ `).pop()??"";class on{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(D){this.rl=D,this.cursorPos=D.getCursorPos()}write(D){this.rl.output.unmute(),this.rl.output.write(D),this.rl.output.mute()}render(D,e=""){const t=sn(D),r=Ie(t);let i=r;this.rl.line.length>0&&(i=i.slice(0,-this.rl.line.length)),this.rl.setPrompt(i),this.cursorPos=this.rl.getCursorPos();const F=ce();D=FD(D,F),e=FD(e,F),r.length%F===0&&(D+=`
25
25
  `);let a=D+(e?`
26
26
  `+e:"");const g=Math.floor(r.length/F)-this.cursorPos.rows+(e?me(e):0);g>0&&(a+=he(g)),a+=de(this.cursorPos.cols),this.write(Ee(this.extraLinesUnderPrompt)+Be(this.height)+a),this.extraLinesUnderPrompt=g,this.height=me(a)}checkCursorPos(){const D=this.rl.getCursorPos();D.cols!==this.cursorPos.cols&&(this.write(de(D.cols)),this.cursorPos=D)}done({clearContent:D}){this.rl.setPrompt("");let e=Ee(this.extraLinesUnderPrompt);e+=D?Be(this.height):`
27
- `,e+=nn,this.write(e),this.rl.close()}}class on extends Promise{static withResolver(){let D,e;return{promise:new Promise((r,i)=>{D=r,e=i}),resolve:D,reject:e}}}function Fn(){const u=Error.prepareStackTrace;let D=[];try{Error.prepareStackTrace=(e,t)=>{const r=t.slice(1);return D=r,r},new Error().stack}catch{return D}return Error.prepareStackTrace=u,D}function an(u){const D=Fn();return(t,r={})=>{const{input:i=process.stdin,signal:F}=r,a=new Set,B=new Jr;B.pipe(r.output??process.stdout);const g=$e.createInterface({terminal:!0,input:i,output:B}),m=new sn(g),{promise:E,resolve:x,reject:b}=on.withResolver(),S=()=>b(new Lr);if(F){const L=()=>b(new vr({cause:F.reason}));if(F.aborted)return L(),Object.assign(E,{cancel:S});F.addEventListener("abort",L),a.add(()=>F.removeEventListener("abort",L))}a.add(en((L,I)=>{b(new ee(`User force closed the prompt with ${L} ${I}`))}));const T=()=>b(new ee("User force closed the prompt with SIGINT"));g.on("SIGINT",T),a.add(()=>g.removeListener("SIGINT",T));const A=()=>m.checkCursorPos();return g.input.on("keypress",A),a.add(()=>g.input.removeListener("keypress",A)),Ir(g,L=>{const I=Gu.bind(()=>yu.clearAll());return g.on("close",I),a.add(()=>g.removeListener("close",I)),L(()=>{try{const O=u(t,au=>{setImmediate(()=>x(au))});if(O===void 0){const au=D[1]?.getFileName();throw new Error(`Prompt functions must return a string.
28
- at ${au}`)}const[Bu,Fu]=typeof O=="string"?[O]:O;m.render(Bu,Fu),yu.run()}catch(O){b(O)}}),Object.assign(E.then(O=>(yu.clearAll(),O),O=>{throw yu.clearAll(),O}).finally(()=>{a.forEach(O=>O()),m.done({clearContent:!!r.clearPromptOnDone}),B.end()}).then(()=>E),{cancel:S})})}}class vu{separator=j("dim",Array.from({length:15}).join(iD.line));type="separator";constructor(D){D&&(this.separator=D)}static isSeparator(D){return!!(D&&typeof D=="object"&&"type"in D&&D.type==="separator")}}const cn={icon:{cursor:iD.pointer},style:{disabled:u=>j("dim",`- ${u}`),description:u=>j("cyan",u),keysHelpTip:u=>u.map(([D,e])=>`${j("bold",D)} ${j("dim",e)}`).join(j("dim"," \u2022 "))},indexMode:"hidden",keybindings:[]};function gu(u){return!vu.isSeparator(u)&&!u.disabled}function fn(u){return u.map(D=>{if(vu.isSeparator(D))return D;if(typeof D!="object"||D===null||!("value"in D)){const r=String(D);return{value:D,name:r,short:r,disabled:!1}}const e=D.name??String(D.value),t={value:D.value,name:e,short:D.short??e,disabled:D.disabled??!1};return D.description&&(t.description=D.description),t})}var Cn=an((u,D)=>{const{loop:e=!0,pageSize:t=7}=u,r=Fe(cn,u.theme),{keybindings:i}=r,[F,a]=xu("idle"),B=jr({status:F,theme:r}),g=sD(),m=!i.includes("vim"),E=lD(()=>fn(u.choices),[u.choices]),x=lD(()=>{const $=E.findIndex(gu),G=E.findLastIndex(gu);if($===-1)throw new te("[select prompt] No selectable choices. All choices are disabled.");return{first:$,last:G}},[E]),b=lD(()=>"default"in u?E.findIndex($=>gu($)&&$.value===u.default):-1,[u.default,E]),[S,T]=xu(b===-1?x.first:b),A=E[S];Gr(($,G)=>{if(clearTimeout(g.current),xr($))a("done"),D(A.value);else if(tD($,i)||De($,i)){if(G.clearLine(0),e||tD($,i)&&S!==x.first||De($,i)&&S!==x.last){const tu=tD($,i)?-1:1;let W=S;do W=(W+tu+E.length)%E.length;while(!gu(E[W]));T(W)}}else if(yr($)&&!Number.isNaN(Number(G.line))){const tu=Number(G.line)-1;let W=-1;const K=E.findIndex(Z=>vu.isSeparator(Z)?!1:(W++,W===tu)),X=E[K];X!=null&&gu(X)&&T(K),g.current=setTimeout(()=>{G.clearLine(0)},700)}else if(wr($))G.clearLine(0);else if(m){const tu=G.line.toLowerCase(),W=E.findIndex(K=>vu.isSeparator(K)||!gu(K)?!1:K.name.toLowerCase().startsWith(tu));W!==-1&&T(W),g.current=setTimeout(()=>{G.clearLine(0)},700)}}),nD(()=>()=>{clearTimeout(g.current)},[]);const L=r.style.message(u.message,F),I=r.style.keysHelpTip([["\u2191\u2193","navigate"],["\u23CE","select"]]);let O=0;const Bu=zr({items:E,active:S,renderItem({item:$,isActive:G,index:tu}){if(vu.isSeparator($))return O++,` ${$.separator}`;const W=r.indexMode==="number"?`${tu+1-O}. `:"";if($.disabled){const Z=typeof $.disabled=="string"?$.disabled:"(disabled)";return r.style.disabled(`${W}${$.name} ${Z}`)}const K=G?r.style.highlight:Z=>Z,X=G?r.icon.cursor:" ";return K(`${X} ${W}${$.name}`)},pageSize:t,loop:e});if(F==="done")return[B,L,r.style.answer(A.short)].filter(Boolean).join(" ");const{description:Fu}=A;return`${[[B,L].filter(Boolean).join(" "),Bu," ",Fu?r.style.description(Fu):"",I].filter(Boolean).join(`
29
- `).trimEnd()}${rn}`});const hn={FULL_WIDTH:0,FITTING:1,SMUSHING:2,CONTROLLED_SMUSHING:3};class En{constructor(){this.comment="",this.numChars=0,this.options={}}}const hD=["1Row","3-D","3D Diagonal","3D-ASCII","3x5","4Max","5 Line Oblique","AMC 3 Line","AMC 3 Liv1","AMC AAA01","AMC Neko","AMC Razor","AMC Razor2","AMC Slash","AMC Slider","AMC Thin","AMC Tubes","AMC Untitled","ANSI Regular","ANSI Shadow","ANSI-Compact","ASCII 12","ASCII 9","ASCII New Roman","Acrobatic","Alligator","Alligator2","Alpha","Alphabet","Arrows","Avatar","B1FF","Babyface Lame","Babyface Leet","Banner","Banner3-D","Banner3","Banner4","Barbwire","Basic","Bear","Bell","Benjamin","Big ASCII 12","Big ASCII 9","Big Chief","Big Money-ne","Big Money-nw","Big Money-se","Big Money-sw","Big Mono 12","Big Mono 9","Big","Bigfig","Binary","Block","Blocks","Bloody","BlurVision ASCII","Bolger","Braced","Bright","Broadway KB","Broadway","Bubble","Bulbhead","Caligraphy","Caligraphy2","Calvin S","Cards","Catwalk","Chiseled","Chunky","Circle","Coinstak","Cola","Colossal","Computer","Contessa","Contrast","Cosmike","Cosmike2","Crawford","Crawford2","Crazy","Cricket","Cursive","Cyberlarge","Cybermedium","Cybersmall","Cygnet","DANC4","DOS Rebel","DWhistled","Dancing Font","Decimal","Def Leppard","Delta Corps Priest 1","DiamFont","Diamond","Diet Cola","Digital","Doh","Doom","Dot Matrix","Double Shorts","Double","Dr Pepper","Efti Chess","Efti Font","Efti Italic","Efti Piti","Efti Robot","Efti Wall","Efti Water","Electronic","Elite","Emboss 2","Emboss","Epic","Fender","Filter","Fire Font-k","Fire Font-s","Flipped","Flower Power","Four Tops","Fraktur","Fun Face","Fun Faces","Future","Fuzzy","Georgi16","Georgia11","Ghost","Ghoulish","Glenyn","Goofy","Gothic","Graceful","Gradient","Graffiti","Greek","Heart Left","Heart Right","Henry 3D","Hex","Hieroglyphs","Hollywood","Horizontal Left","Horizontal Right","ICL-1900","Impossible","Invita","Isometric1","Isometric2","Isometric3","Isometric4","Italic","Ivrit","JS Block Letters","JS Bracket Letters","JS Capital Curves","JS Cursive","JS Stick Letters","Jacky","Jazmine","Jerusalem","Katakana","Kban","Keyboard","Knob","Konto Slant","Konto","LCD","Larry 3D 2","Larry 3D","Lean","Letter","Letters","Lil Devil","Line Blocks","Linux","Lockergnome","Madrid","Marquee","Maxfour","Merlin1","Merlin2","Mike","Mini","Mirror","Mnemonic","Modular","Mono 12","Mono 9","Morse","Morse2","Moscow","Mshebrew210","Muzzle","NScript","NT Greek","NV Script","Nancyj-Fancy","Nancyj-Improved","Nancyj-Underlined","Nancyj","Nipples","O8","OS2","Octal","Ogre","Old Banner","Pagga","Patorjk's Cheese","Patorjk-HeX","Pawp","Peaks Slant","Peaks","Pebbles","Pepper","Poison","Puffy","Puzzle","Pyramid","Rammstein","Rebel","Rectangles","Red Phoenix","Relief","Relief2","Reverse","Roman","Rot13","Rotated","Rounded","Rowan Cap","Rozzo","RubiFont","Runic","Runyc","S Blood","SL Script","Santa Clara","Script","Serifcap","Shaded Blocky","Shadow","Shimrod","Short","Slant Relief","Slant","Slide","Small ASCII 12","Small ASCII 9","Small Block","Small Braille","Small Caps","Small Isometric1","Small Keyboard","Small Mono 12","Small Mono 9","Small Poison","Small Script","Small Shadow","Small Slant","Small Tengwar","Small","Soft","Speed","Spliff","Stacey","Stampate","Stampatello","Standard","Star Strips","Star Wars","Stellar","Stforek","Stick Letters","Stop","Straight","Stronger Than All","Sub-Zero","Swamp Land","Swan","Sweet","THIS","Tanja","Tengwar","Term","Terrace","Test1","The Edge","Thick","Thin","Thorned","Three Point","Ticks Slant","Ticks","Tiles","Tinker-Toy","Tmplr","Tombstone","Train","Trek","Tsalagi","Tubular","Twisted","Two Point","USA Flag","Univers","Upside Down Text","Varsity","Wavescape","Wavy","Weird","Wet Letter","Whimsy","WideTerm","Wow","miniwi"];function dn(u){return/[.*+?^${}()|[\]\\]/.test(u)?"\\"+u:u}const gn=(()=>{const{FULL_WIDTH:u=0,FITTING:D,SMUSHING:e,CONTROLLED_SMUSHING:t}=hn,r={},i={font:"Standard",fontPath:"./fonts",fetchFontIfMissing:!0};function F(s,o,n){const l=dn(s.trim().slice(-1))||"@",c=o===n-1?new RegExp(l+l+"?\\s*$"):new RegExp(l+"\\s*$");return s.replace(c,"")}function a(s=-1,o=null){let n={},l,c=[[16384,"vLayout",e],[8192,"vLayout",D],[4096,"vRule5",!0],[2048,"vRule4",!0],[1024,"vRule3",!0],[512,"vRule2",!0],[256,"vRule1",!0],[128,"hLayout",e],[64,"hLayout",D],[32,"hRule6",!0],[16,"hRule5",!0],[8,"hRule4",!0],[4,"hRule3",!0],[2,"hRule2",!0],[1,"hRule1",!0]];l=o!==null?o:s;for(const[f,h,C]of c)l>=f?(l-=f,n[h]===void 0&&(n[h]=C)):h!=="vLayout"&&h!=="hLayout"&&(n[h]=!1);return typeof n.hLayout>"u"?s===0?n.hLayout=D:s===-1?n.hLayout=u:n.hRule1||n.hRule2||n.hRule3||n.hRule4||n.hRule5||n.hRule6?n.hLayout=t:n.hLayout=e:n.hLayout===e&&(n.hRule1||n.hRule2||n.hRule3||n.hRule4||n.hRule5||n.hRule6)&&(n.hLayout=t),typeof n.vLayout>"u"?n.vRule1||n.vRule2||n.vRule3||n.vRule4||n.vRule5?n.vLayout=t:n.vLayout=u:n.vLayout===e&&(n.vRule1||n.vRule2||n.vRule3||n.vRule4||n.vRule5)&&(n.vLayout=t),n}function B(s,o,n=""){return s===o&&s!==n?s:!1}function g(s,o){let n="|/\\[]{}()<>";if(s==="_"){if(n.indexOf(o)!==-1)return o}else if(o==="_"&&n.indexOf(s)!==-1)return s;return!1}function m(s,o){let n="| /\\ [] {} () <>",l=n.indexOf(s),c=n.indexOf(o);if(l!==-1&&c!==-1&&l!==c&&Math.abs(l-c)!==1){const f=Math.max(l,c),h=f+1;return n.substring(f,h)}return!1}function E(s,o){let n="[] {} ()",l=n.indexOf(s),c=n.indexOf(o);return l!==-1&&c!==-1&&Math.abs(l-c)<=1?"|":!1}function x(s,o){return{"/\\":"|","\\/":"Y","><":"X"}[s+o]||!1}function b(s,o,n=""){return s===n&&o===n?n:!1}function S(s,o){return s===o?s:!1}function T(s,o){return g(s,o)}function A(s,o){return m(s,o)}function L(s,o){return s==="-"&&o==="_"||s==="_"&&o==="-"?"=":!1}function I(s,o){return s==="|"&&o==="|"?"|":!1}function O(s,o,n){return o===" "||o===""||o===n&&s!==" "?s:o}function Bu(s,o,n){if(n.fittingRules&&n.fittingRules.vLayout===u)return"invalid";let l,c=Math.min(s.length,o.length),f,h,C=!1,d;if(c===0)return"invalid";for(l=0;l<c;l++)if(f=s.substring(l,l+1),h=o.substring(l,l+1),f!==" "&&h!==" "){if(n.fittingRules&&n.fittingRules.vLayout===D)return"invalid";if(n.fittingRules&&n.fittingRules.vLayout===e)return"end";if(I(f,h)){C=C||!1;continue}if(d=!1,d=n.fittingRules&&n.fittingRules.vRule1?S(f,h):d,d=!d&&n.fittingRules&&n.fittingRules.vRule2?T(f,h):d,d=!d&&n.fittingRules&&n.fittingRules.vRule3?A(f,h):d,d=!d&&n.fittingRules&&n.fittingRules.vRule4?L(f,h):d,C=!0,!d)return"invalid"}return C?"end":"valid"}function Fu(s,o,n){let l=s.length,c=s.length,f,h,C,d=1,p,w,R;for(;d<=l;){for(f=s.slice(Math.max(0,c-d),c),h=o.slice(0,Math.min(l,d)),C=h.length,R="",p=0;p<C;p++)if(w=Bu(f[p],h[p],n),w==="end")R=w;else if(w==="invalid"){R=w;break}else R===""&&(R="valid");if(R==="invalid"){d--;break}if(R==="end")break;R==="valid"&&d++}return Math.min(l,d)}function au(s,o,n){let l,c=Math.min(s.length,o.length),f,h,C="",d;const p=n.fittingRules||{};for(l=0;l<c;l++)f=s.substring(l,l+1),h=o.substring(l,l+1),f!==" "&&h!==" "?p.vLayout===D||p.vLayout===e?C+=O(f,h):(d=!1,d=p.vRule5?I(f,h):d,d=!d&&p.vRule1?S(f,h):d,d=!d&&p.vRule2?T(f,h):d,d=!d&&p.vRule3?A(f,h):d,d=!d&&p.vRule4?L(f,h):d,C+=d):C+=O(f,h);return C}function $(s,o,n,l){let c=s.length,f=o.length,h=s.slice(0,Math.max(0,c-n)),C=s.slice(Math.max(0,c-n),c),d=o.slice(0,Math.min(n,f)),p,w,R,y=[],v;for(w=C.length,p=0;p<w;p++)p>=f?R=C[p]:R=au(C[p],d[p],l),y.push(R);return v=o.slice(Math.min(n,f),f),[...h,...y,...v]}function G(s,o){const n=" ".repeat(o);return s.map(l=>l+n)}function tu(s,o,n){let l=s[0].length,c=o[0].length,f;return l>c?o=G(o,l-c):c>l&&(s=G(s,c-l)),f=Fu(s,o,n),$(s,o,f,n)}function W(s,o,n){const l=n.fittingRules||{};if(l.hLayout===u)return 0;let c,f=s.length,h=o.length,C=f,d=1,p=!1,w,R,y,v;if(f===0)return 0;u:for(;d<=C;){const Q=f-d;for(w=s.substring(Q,Q+d),R=o.substring(0,Math.min(d,h)),c=0;c<Math.min(d,h);c++)if(y=w.substring(c,c+1),v=R.substring(c,c+1),y!==" "&&v!==" "){if(l.hLayout===D){d=d-1;break u}else if(l.hLayout===e){(y===n.hardBlank||v===n.hardBlank)&&(d=d-1);break u}else if(p=!0,!(l.hRule1&&B(y,v,n.hardBlank)||l.hRule2&&g(y,v)||l.hRule3&&m(y,v)||l.hRule4&&E(y,v)||l.hRule5&&x(y,v)||l.hRule6&&b(y,v,n.hardBlank))){d=d-1;break u}}if(p)break;d++}return Math.min(C,d)}function K(s,o,n,l){let c,f,h=[],C,d,p,w,R,y,v,Q;const q=l.fittingRules||{};if(typeof l.height!="number")throw new Error("height is not defined.");for(c=0;c<l.height;c++){v=s[c],Q=o[c],R=v.length,y=Q.length,C=R-n,d=v.slice(0,Math.max(0,C)),p="";const mu=Math.max(0,R-n);let uu=v.substring(mu,mu+n),lu=Q.substring(0,Math.min(n,y));for(f=0;f<n;f++){let Y=f<R?uu.substring(f,f+1):" ",H=f<y?lu.substring(f,f+1):" ";if(Y!==" "&&H!==" ")if(q.hLayout===D||q.hLayout===e)p+=O(Y,H,l.hardBlank);else{const we=q.hRule1&&B(Y,H,l.hardBlank)||q.hRule2&&g(Y,H)||q.hRule3&&m(Y,H)||q.hRule4&&E(Y,H)||q.hRule5&&x(Y,H)||q.hRule6&&b(Y,H,l.hardBlank)||O(Y,H,l.hardBlank);p+=we}else p+=O(Y,H,l.hardBlank)}n>=y?w="":w=Q.substring(n,n+Math.max(0,y-n)),h[c]=d+p+w}return h}function X(s){return new Array(s).fill("")}const Z=function(s){return Math.max(...s.map(o=>o.length))};function cu(s,o,n){return s.reduce(function(l,c){return K(l,c.fig,c.overlap||0,n)},X(o))}function pe(s,o,n){for(let l=s.length-1;l>0;l--){const c=cu(s.slice(0,l),o,n);if(Z(c)<=n.width)return{outputFigText:c,chars:s.slice(l)}}return{outputFigText:X(o),chars:s}}function Ae(s,o,n){let l,c,f=0,h,C,d,p=n.height,w=[],R,y={chars:[],overlap:f},v=[],Q,q,mu,uu,lu;if(typeof p!="number")throw new Error("height is not defined.");C=X(p);const Y=n.fittingRules||{};for(n.printDirection===1&&(s=s.split("").reverse().join("")),d=s.length,l=0;l<d;l++)if(Q=s.substring(l,l+1),q=Q.match(/\s/),c=o[Q.charCodeAt(0)],uu=null,c){if(Y.hLayout!==u){for(f=1e4,h=0;h<p;h++)f=Math.min(f,W(C[h],c[h],n));f=f===1e4?0:f}if(n.width>0&&(n.whitespaceBreak?(mu=cu(y.chars.concat([{fig:c,overlap:f}]),p,n),uu=cu(v.concat([{fig:mu,overlap:y.overlap}]),p,n),R=Z(uu)):(uu=K(C,c,f,n),R=Z(uu)),R>=n.width&&l>0&&(n.whitespaceBreak?(C=cu(v.slice(0,-1),p,n),v.length>1&&(w.push(C),C=X(p)),v=[]):(w.push(C),C=X(p)))),n.width>0&&n.whitespaceBreak&&((!q||l===d-1)&&y.chars.push({fig:c,overlap:f}),q||l===d-1)){for(lu=null;uu=cu(y.chars,p,n),R=Z(uu),R>=n.width;)lu=pe(y.chars,p,n),y={chars:lu.chars},w.push(lu.outputFigText);R>0&&(lu?v.push({fig:uu,overlap:1}):v.push({fig:uu,overlap:y.overlap})),q&&(v.push({fig:c,overlap:f}),C=X(p)),l===d-1&&(C=cu(v,p,n)),y={chars:[],overlap:f};continue}C=K(C,c,f,n)}return Z(C)>0&&w.push(C),n.showHardBlanks||w.forEach(function(H){for(d=H.length,h=0;h<d;h++)H[h]=H[h].replace(new RegExp("\\"+n.hardBlank,"g")," ")}),s===""&&w.length===0&&w.push(new Array(p).fill("")),w}const be=function(s,o){let n;const l=o.fittingRules||{};if(s==="default")n={hLayout:l.hLayout,hRule1:l.hRule1,hRule2:l.hRule2,hRule3:l.hRule3,hRule4:l.hRule4,hRule5:l.hRule5,hRule6:l.hRule6};else if(s==="full")n={hLayout:u,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(s==="fitted")n={hLayout:D,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(s==="controlled smushing")n={hLayout:t,hRule1:!0,hRule2:!0,hRule3:!0,hRule4:!0,hRule5:!0,hRule6:!0};else if(s==="universal smushing")n={hLayout:e,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else return;return n},Re=function(s,o){let n={};const l=o.fittingRules||{};if(s==="default")n={vLayout:l.vLayout,vRule1:l.vRule1,vRule2:l.vRule2,vRule3:l.vRule3,vRule4:l.vRule4,vRule5:l.vRule5};else if(s==="full")n={vLayout:u,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(s==="fitted")n={vLayout:D,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(s==="controlled smushing")n={vLayout:t,vRule1:!0,vRule2:!0,vRule3:!0,vRule4:!0,vRule5:!0};else if(s==="universal smushing")n={vLayout:e,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else return;return n},dD=function(s,o,n){n=n.replace(/\r\n/g,`
27
+ `,e+=ln,this.write(e),this.rl.close()}}class Fn extends Promise{static withResolver(){let D,e;return{promise:new Promise((r,i)=>{D=r,e=i}),resolve:D,reject:e}}}function an(){const u=Error.prepareStackTrace;let D=[];try{Error.prepareStackTrace=(e,t)=>{const r=t.slice(1);return D=r,r},new Error().stack}catch{return D}return Error.prepareStackTrace=u,D}function cn(u){const D=an();return(t,r={})=>{const{input:i=process.stdin,signal:F}=r,a=new Set,B=new Xr;B.pipe(r.output??process.stdout);const g=Me.createInterface({terminal:!0,input:i,output:B}),m=new on(g),{promise:d,resolve:x,reject:b}=Fn.withResolver(),S=()=>b(new Sr);if(F){const L=()=>b(new Lr({cause:F.reason}));if(F.aborted)return L(),Object.assign(d,{cancel:S});F.addEventListener("abort",L),a.add(()=>F.removeEventListener("abort",L))}a.add(tn((L,I)=>{b(new ee(`User force closed the prompt with ${L} ${I}`))}));const T=()=>b(new ee("User force closed the prompt with SIGINT"));g.on("SIGINT",T),a.add(()=>g.removeListener("SIGINT",T));const A=()=>m.checkCursorPos();return g.input.on("keypress",A),a.add(()=>g.input.removeListener("keypress",A)),Mr(g,L=>{const I=Wu.bind(()=>yu.clearAll());return g.on("close",I),a.add(()=>g.removeListener("close",I)),L(()=>{try{const O=u(t,au=>{setImmediate(()=>x(au))});if(O===void 0){const au=D[1]?.getFileName();throw new Error(`Prompt functions must return a string.
28
+ at ${au}`)}const[Bu,Fu]=typeof O=="string"?[O]:O;m.render(Bu,Fu),yu.run()}catch(O){b(O)}}),Object.assign(d.then(O=>(yu.clearAll(),O),O=>{throw yu.clearAll(),O}).finally(()=>{a.forEach(O=>O()),m.done({clearContent:!!r.clearPromptOnDone}),B.end()}).then(()=>d),{cancel:S})})}}class vu{separator=j("dim",Array.from({length:15}).join(iD.line));type="separator";constructor(D){D&&(this.separator=D)}static isSeparator(D){return!!(D&&typeof D=="object"&&"type"in D&&D.type==="separator")}}const fn={icon:{cursor:iD.pointer},style:{disabled:u=>j("dim",`- ${u}`),description:u=>j("cyan",u),keysHelpTip:u=>u.map(([D,e])=>`${j("bold",D)} ${j("dim",e)}`).join(j("dim"," \u2022 "))},indexMode:"hidden",keybindings:[]};function gu(u){return!vu.isSeparator(u)&&!u.disabled}function Cn(u){return u.map(D=>{if(vu.isSeparator(D))return D;if(typeof D!="object"||D===null||!("value"in D)){const r=String(D);return{value:D,name:r,short:r,disabled:!1}}const e=D.name??String(D.value),t={value:D.value,name:e,short:D.short??e,disabled:D.disabled??!1};return D.description&&(t.description=D.description),t})}var hn=cn((u,D)=>{const{loop:e=!0,pageSize:t=7}=u,r=Fe(fn,u.theme),{keybindings:i}=r,[F,a]=xu("idle"),B=Wr({status:F,theme:r}),g=sD(),m=!i.includes("vim"),d=lD(()=>Cn(u.choices),[u.choices]),x=lD(()=>{const M=d.findIndex(gu),W=d.findLastIndex(gu);if(M===-1)throw new te("[select prompt] No selectable choices. All choices are disabled.");return{first:M,last:W}},[d]),b=lD(()=>"default"in u?d.findIndex(M=>gu(M)&&M.value===u.default):-1,[u.default,d]),[S,T]=xu(b===-1?x.first:b),A=d[S];Gr((M,W)=>{if(clearTimeout(g.current),vr(M))a("done"),D(A.value);else if(tD(M,i)||De(M,i)){if(W.clearLine(0),e||tD(M,i)&&S!==x.first||De(M,i)&&S!==x.last){const tu=tD(M,i)?-1:1;let G=S;do G=(G+tu+d.length)%d.length;while(!gu(d[G]));T(G)}}else if(xr(M)&&!Number.isNaN(Number(W.line))){const tu=Number(W.line)-1;let G=-1;const z=d.findIndex(X=>vu.isSeparator(X)?!1:(G++,G===tu)),J=d[z];J!=null&&gu(J)&&T(z),g.current=setTimeout(()=>{W.clearLine(0)},700)}else if(yr(M))W.clearLine(0);else if(m){const tu=W.line.toLowerCase(),G=d.findIndex(z=>vu.isSeparator(z)||!gu(z)?!1:z.name.toLowerCase().startsWith(tu));G!==-1&&T(G),g.current=setTimeout(()=>{W.clearLine(0)},700)}}),nD(()=>()=>{clearTimeout(g.current)},[]);const L=r.style.message(u.message,F),I=r.style.keysHelpTip([["\u2191\u2193","navigate"],["\u23CE","select"]]);let O=0;const Bu=Kr({items:d,active:S,renderItem({item:M,isActive:W,index:tu}){if(vu.isSeparator(M))return O++,` ${M.separator}`;const G=r.indexMode==="number"?`${tu+1-O}. `:"";if(M.disabled){const X=typeof M.disabled=="string"?M.disabled:"(disabled)";return r.style.disabled(`${G}${M.name} ${X}`)}const z=W?r.style.highlight:X=>X,J=W?r.icon.cursor:" ";return z(`${J} ${G}${M.name}`)},pageSize:t,loop:e});if(F==="done")return[B,L,r.style.answer(A.short)].filter(Boolean).join(" ");const{description:Fu}=A;return`${[[B,L].filter(Boolean).join(" "),Bu," ",Fu?r.style.description(Fu):"",I].filter(Boolean).join(`
29
+ `).trimEnd()}${nn}`});const En={FULL_WIDTH:0,FITTING:1,SMUSHING:2,CONTROLLED_SMUSHING:3};class dn{constructor(){this.comment="",this.numChars=0,this.options={}}}const hD=["1Row","3-D","3D Diagonal","3D-ASCII","3x5","4Max","5 Line Oblique","AMC 3 Line","AMC 3 Liv1","AMC AAA01","AMC Neko","AMC Razor","AMC Razor2","AMC Slash","AMC Slider","AMC Thin","AMC Tubes","AMC Untitled","ANSI Regular","ANSI Shadow","ANSI-Compact","ASCII 12","ASCII 9","ASCII New Roman","Acrobatic","Alligator","Alligator2","Alpha","Alphabet","Arrows","Avatar","B1FF","Babyface Lame","Babyface Leet","Banner","Banner3-D","Banner3","Banner4","Barbwire","Basic","Bear","Bell","Benjamin","Big ASCII 12","Big ASCII 9","Big Chief","Big Money-ne","Big Money-nw","Big Money-se","Big Money-sw","Big Mono 12","Big Mono 9","Big","Bigfig","Binary","Block","Blocks","Bloody","BlurVision ASCII","Bolger","Braced","Bright","Broadway KB","Broadway","Bubble","Bulbhead","Caligraphy","Caligraphy2","Calvin S","Cards","Catwalk","Chiseled","Chunky","Circle","Coinstak","Cola","Colossal","Computer","Contessa","Contrast","Cosmike","Cosmike2","Crawford","Crawford2","Crazy","Cricket","Cursive","Cyberlarge","Cybermedium","Cybersmall","Cygnet","DANC4","DOS Rebel","DWhistled","Dancing Font","Decimal","Def Leppard","Delta Corps Priest 1","DiamFont","Diamond","Diet Cola","Digital","Doh","Doom","Dot Matrix","Double Shorts","Double","Dr Pepper","Efti Chess","Efti Font","Efti Italic","Efti Piti","Efti Robot","Efti Wall","Efti Water","Electronic","Elite","Emboss 2","Emboss","Epic","Fender","Filter","Fire Font-k","Fire Font-s","Flipped","Flower Power","Four Tops","Fraktur","Fun Face","Fun Faces","Future","Fuzzy","Georgi16","Georgia11","Ghost","Ghoulish","Glenyn","Goofy","Gothic","Graceful","Gradient","Graffiti","Greek","Heart Left","Heart Right","Henry 3D","Hex","Hieroglyphs","Hollywood","Horizontal Left","Horizontal Right","ICL-1900","Impossible","Invita","Isometric1","Isometric2","Isometric3","Isometric4","Italic","Ivrit","JS Block Letters","JS Bracket Letters","JS Capital Curves","JS Cursive","JS Stick Letters","Jacky","Jazmine","Jerusalem","Katakana","Kban","Keyboard","Knob","Konto Slant","Konto","LCD","Larry 3D 2","Larry 3D","Lean","Letter","Letters","Lil Devil","Line Blocks","Linux","Lockergnome","Madrid","Marquee","Maxfour","Merlin1","Merlin2","Mike","Mini","Mirror","Mnemonic","Modular","Mono 12","Mono 9","Morse","Morse2","Moscow","Mshebrew210","Muzzle","NScript","NT Greek","NV Script","Nancyj-Fancy","Nancyj-Improved","Nancyj-Underlined","Nancyj","Nipples","O8","OS2","Octal","Ogre","Old Banner","Pagga","Patorjk's Cheese","Patorjk-HeX","Pawp","Peaks Slant","Peaks","Pebbles","Pepper","Poison","Puffy","Puzzle","Pyramid","Rammstein","Rebel","Rectangles","Red Phoenix","Relief","Relief2","Reverse","Roman","Rot13","Rotated","Rounded","Rowan Cap","Rozzo","RubiFont","Runic","Runyc","S Blood","SL Script","Santa Clara","Script","Serifcap","Shaded Blocky","Shadow","Shimrod","Short","Slant Relief","Slant","Slide","Small ASCII 12","Small ASCII 9","Small Block","Small Braille","Small Caps","Small Isometric1","Small Keyboard","Small Mono 12","Small Mono 9","Small Poison","Small Script","Small Shadow","Small Slant","Small Tengwar","Small","Soft","Speed","Spliff","Stacey","Stampate","Stampatello","Standard","Star Strips","Star Wars","Stellar","Stforek","Stick Letters","Stop","Straight","Stronger Than All","Sub-Zero","Swamp Land","Swan","Sweet","THIS","Tanja","Tengwar","Term","Terrace","Test1","The Edge","Thick","Thin","Thorned","Three Point","Ticks Slant","Ticks","Tiles","Tinker-Toy","Tmplr","Tombstone","Train","Trek","Tsalagi","Tubular","Twisted","Two Point","USA Flag","Univers","Upside Down Text","Varsity","Wavescape","Wavy","Weird","Wet Letter","Whimsy","WideTerm","Wow","miniwi"];function gn(u){return/[.*+?^${}()|[\]\\]/.test(u)?"\\"+u:u}const Bn=(()=>{const{FULL_WIDTH:u=0,FITTING:D,SMUSHING:e,CONTROLLED_SMUSHING:t}=En,r={},i={font:"Standard",fontPath:"./fonts",fetchFontIfMissing:!0};function F(s,o,n){const l=gn(s.trim().slice(-1))||"@",c=o===n-1?new RegExp(l+l+"?\\s*$"):new RegExp(l+"\\s*$");return s.replace(c,"")}function a(s=-1,o=null){let n={},l,c=[[16384,"vLayout",e],[8192,"vLayout",D],[4096,"vRule5",!0],[2048,"vRule4",!0],[1024,"vRule3",!0],[512,"vRule2",!0],[256,"vRule1",!0],[128,"hLayout",e],[64,"hLayout",D],[32,"hRule6",!0],[16,"hRule5",!0],[8,"hRule4",!0],[4,"hRule3",!0],[2,"hRule2",!0],[1,"hRule1",!0]];l=o!==null?o:s;for(const[f,h,C]of c)l>=f?(l-=f,n[h]===void 0&&(n[h]=C)):h!=="vLayout"&&h!=="hLayout"&&(n[h]=!1);return typeof n.hLayout>"u"?s===0?n.hLayout=D:s===-1?n.hLayout=u:n.hRule1||n.hRule2||n.hRule3||n.hRule4||n.hRule5||n.hRule6?n.hLayout=t:n.hLayout=e:n.hLayout===e&&(n.hRule1||n.hRule2||n.hRule3||n.hRule4||n.hRule5||n.hRule6)&&(n.hLayout=t),typeof n.vLayout>"u"?n.vRule1||n.vRule2||n.vRule3||n.vRule4||n.vRule5?n.vLayout=t:n.vLayout=u:n.vLayout===e&&(n.vRule1||n.vRule2||n.vRule3||n.vRule4||n.vRule5)&&(n.vLayout=t),n}function B(s,o,n=""){return s===o&&s!==n?s:!1}function g(s,o){let n="|/\\[]{}()<>";if(s==="_"){if(n.indexOf(o)!==-1)return o}else if(o==="_"&&n.indexOf(s)!==-1)return s;return!1}function m(s,o){let n="| /\\ [] {} () <>",l=n.indexOf(s),c=n.indexOf(o);if(l!==-1&&c!==-1&&l!==c&&Math.abs(l-c)!==1){const f=Math.max(l,c),h=f+1;return n.substring(f,h)}return!1}function d(s,o){let n="[] {} ()",l=n.indexOf(s),c=n.indexOf(o);return l!==-1&&c!==-1&&Math.abs(l-c)<=1?"|":!1}function x(s,o){return{"/\\":"|","\\/":"Y","><":"X"}[s+o]||!1}function b(s,o,n=""){return s===n&&o===n?n:!1}function S(s,o){return s===o?s:!1}function T(s,o){return g(s,o)}function A(s,o){return m(s,o)}function L(s,o){return s==="-"&&o==="_"||s==="_"&&o==="-"?"=":!1}function I(s,o){return s==="|"&&o==="|"?"|":!1}function O(s,o,n){return o===" "||o===""||o===n&&s!==" "?s:o}function Bu(s,o,n){if(n.fittingRules&&n.fittingRules.vLayout===u)return"invalid";let l,c=Math.min(s.length,o.length),f,h,C=!1,E;if(c===0)return"invalid";for(l=0;l<c;l++)if(f=s.substring(l,l+1),h=o.substring(l,l+1),f!==" "&&h!==" "){if(n.fittingRules&&n.fittingRules.vLayout===D)return"invalid";if(n.fittingRules&&n.fittingRules.vLayout===e)return"end";if(I(f,h)){C=C||!1;continue}if(E=!1,E=n.fittingRules&&n.fittingRules.vRule1?S(f,h):E,E=!E&&n.fittingRules&&n.fittingRules.vRule2?T(f,h):E,E=!E&&n.fittingRules&&n.fittingRules.vRule3?A(f,h):E,E=!E&&n.fittingRules&&n.fittingRules.vRule4?L(f,h):E,C=!0,!E)return"invalid"}return C?"end":"valid"}function Fu(s,o,n){let l=s.length,c=s.length,f,h,C,E=1,p,w,R;for(;E<=l;){for(f=s.slice(Math.max(0,c-E),c),h=o.slice(0,Math.min(l,E)),C=h.length,R="",p=0;p<C;p++)if(w=Bu(f[p],h[p],n),w==="end")R=w;else if(w==="invalid"){R=w;break}else R===""&&(R="valid");if(R==="invalid"){E--;break}if(R==="end")break;R==="valid"&&E++}return Math.min(l,E)}function au(s,o,n){let l,c=Math.min(s.length,o.length),f,h,C="",E;const p=n.fittingRules||{};for(l=0;l<c;l++)f=s.substring(l,l+1),h=o.substring(l,l+1),f!==" "&&h!==" "?p.vLayout===D||p.vLayout===e?C+=O(f,h):(E=!1,E=p.vRule5?I(f,h):E,E=!E&&p.vRule1?S(f,h):E,E=!E&&p.vRule2?T(f,h):E,E=!E&&p.vRule3?A(f,h):E,E=!E&&p.vRule4?L(f,h):E,C+=E):C+=O(f,h);return C}function M(s,o,n,l){let c=s.length,f=o.length,h=s.slice(0,Math.max(0,c-n)),C=s.slice(Math.max(0,c-n),c),E=o.slice(0,Math.min(n,f)),p,w,R,y=[],v;for(w=C.length,p=0;p<w;p++)p>=f?R=C[p]:R=au(C[p],E[p],l),y.push(R);return v=o.slice(Math.min(n,f),f),[...h,...y,...v]}function W(s,o){const n=" ".repeat(o);return s.map(l=>l+n)}function tu(s,o,n){let l=s[0].length,c=o[0].length,f;return l>c?o=W(o,l-c):c>l&&(s=W(s,c-l)),f=Fu(s,o,n),M(s,o,f,n)}function G(s,o,n){const l=n.fittingRules||{};if(l.hLayout===u)return 0;let c,f=s.length,h=o.length,C=f,E=1,p=!1,w,R,y,v;if(f===0)return 0;u:for(;E<=C;){const Z=f-E;for(w=s.substring(Z,Z+E),R=o.substring(0,Math.min(E,h)),c=0;c<Math.min(E,h);c++)if(y=w.substring(c,c+1),v=R.substring(c,c+1),y!==" "&&v!==" "){if(l.hLayout===D){E=E-1;break u}else if(l.hLayout===e){(y===n.hardBlank||v===n.hardBlank)&&(E=E-1);break u}else if(p=!0,!(l.hRule1&&B(y,v,n.hardBlank)||l.hRule2&&g(y,v)||l.hRule3&&m(y,v)||l.hRule4&&d(y,v)||l.hRule5&&x(y,v)||l.hRule6&&b(y,v,n.hardBlank))){E=E-1;break u}}if(p)break;E++}return Math.min(C,E)}function z(s,o,n,l){let c,f,h=[],C,E,p,w,R,y,v,Z;const q=l.fittingRules||{};if(typeof l.height!="number")throw new Error("height is not defined.");for(c=0;c<l.height;c++){v=s[c],Z=o[c],R=v.length,y=Z.length,C=R-n,E=v.slice(0,Math.max(0,C)),p="";const mu=Math.max(0,R-n);let Q=v.substring(mu,mu+n),lu=Z.substring(0,Math.min(n,y));for(f=0;f<n;f++){let K=f<R?Q.substring(f,f+1):" ",H=f<y?lu.substring(f,f+1):" ";if(K!==" "&&H!==" ")if(q.hLayout===D||q.hLayout===e)p+=O(K,H,l.hardBlank);else{const we=q.hRule1&&B(K,H,l.hardBlank)||q.hRule2&&g(K,H)||q.hRule3&&m(K,H)||q.hRule4&&d(K,H)||q.hRule5&&x(K,H)||q.hRule6&&b(K,H,l.hardBlank)||O(K,H,l.hardBlank);p+=we}else p+=O(K,H,l.hardBlank)}n>=y?w="":w=Z.substring(n,n+Math.max(0,y-n)),h[c]=E+p+w}return h}function J(s){return new Array(s).fill("")}const X=function(s){return Math.max(...s.map(o=>o.length))};function cu(s,o,n){return s.reduce(function(l,c){return z(l,c.fig,c.overlap||0,n)},J(o))}function pe(s,o,n){for(let l=s.length-1;l>0;l--){const c=cu(s.slice(0,l),o,n);if(X(c)<=n.width)return{outputFigText:c,chars:s.slice(l)}}return{outputFigText:J(o),chars:s}}function Ae(s,o,n){let l,c,f=0,h,C,E,p=n.height,w=[],R,y={chars:[],overlap:f},v=[],Z,q,mu,Q,lu;if(typeof p!="number")throw new Error("height is not defined.");C=J(p);const K=n.fittingRules||{};for(n.printDirection===1&&(s=s.split("").reverse().join("")),E=s.length,l=0;l<E;l++)if(Z=s.substring(l,l+1),q=Z.match(/\s/),c=o[Z.charCodeAt(0)],Q=null,c){if(K.hLayout!==u){for(f=1e4,h=0;h<p;h++)f=Math.min(f,G(C[h],c[h],n));f=f===1e4?0:f}if(n.width>0&&(n.whitespaceBreak?(mu=cu(y.chars.concat([{fig:c,overlap:f}]),p,n),Q=cu(v.concat([{fig:mu,overlap:y.overlap}]),p,n),R=X(Q)):(Q=z(C,c,f,n),R=X(Q)),R>=n.width&&l>0&&(n.whitespaceBreak?(C=cu(v.slice(0,-1),p,n),v.length>1&&(w.push(C),C=J(p)),v=[]):(w.push(C),C=J(p)))),n.width>0&&n.whitespaceBreak&&((!q||l===E-1)&&y.chars.push({fig:c,overlap:f}),q||l===E-1)){for(lu=null;Q=cu(y.chars,p,n),R=X(Q),R>=n.width;)lu=pe(y.chars,p,n),y={chars:lu.chars},w.push(lu.outputFigText);R>0&&(lu?v.push({fig:Q,overlap:1}):v.push({fig:Q,overlap:y.overlap})),q&&(v.push({fig:c,overlap:f}),C=J(p)),l===E-1&&(C=cu(v,p,n)),y={chars:[],overlap:f};continue}C=z(C,c,f,n)}return X(C)>0&&w.push(C),n.showHardBlanks||w.forEach(function(H){for(E=H.length,h=0;h<E;h++)H[h]=H[h].replace(new RegExp("\\"+n.hardBlank,"g")," ")}),s===""&&w.length===0&&w.push(new Array(p).fill("")),w}const be=function(s,o){let n;const l=o.fittingRules||{};if(s==="default")n={hLayout:l.hLayout,hRule1:l.hRule1,hRule2:l.hRule2,hRule3:l.hRule3,hRule4:l.hRule4,hRule5:l.hRule5,hRule6:l.hRule6};else if(s==="full")n={hLayout:u,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(s==="fitted")n={hLayout:D,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(s==="controlled smushing")n={hLayout:t,hRule1:!0,hRule2:!0,hRule3:!0,hRule4:!0,hRule5:!0,hRule6:!0};else if(s==="universal smushing")n={hLayout:e,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else return;return n},Re=function(s,o){let n={};const l=o.fittingRules||{};if(s==="default")n={vLayout:l.vLayout,vRule1:l.vRule1,vRule2:l.vRule2,vRule3:l.vRule3,vRule4:l.vRule4,vRule5:l.vRule5};else if(s==="full")n={vLayout:u,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(s==="fitted")n={vLayout:D,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(s==="controlled smushing")n={vLayout:t,vRule1:!0,vRule2:!0,vRule3:!0,vRule4:!0,vRule5:!0};else if(s==="universal smushing")n={vLayout:e,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else return;return n},dD=function(s,o,n){n=n.replace(/\r\n/g,`
30
30
  `).replace(/\r/g,`
31
31
  `);let l=n.split(`
32
32
  `),c=[],f,h,C;for(h=l.length,f=0;f<h;f++)c=c.concat(Ae(l[f],r[s],o));for(h=c.length,C=c[0],f=1;f<h;f++)C=tu(C,c[f],o);return C?C.join(`
33
33
  `):""};function gD(s,o){let n;if(typeof structuredClone<"u"?n=structuredClone(s):n=JSON.parse(JSON.stringify(s)),n.showHardBlanks=o.showHardBlanks||!1,n.width=o.width||-1,n.whitespaceBreak=o.whitespaceBreak||!1,o.horizontalLayout){const l=be(o.horizontalLayout,s);l&&Object.assign(n.fittingRules,l)}if(o.verticalLayout){const l=Re(o.verticalLayout,s);l&&Object.assign(n.fittingRules,l)}return n.printDirection=o.printDirection!==null&&o.printDirection!==void 0?o.printDirection:s.printDirection,n}const U=async function(s,o,n){return U.text(s,o,n)};return U.text=async function(s,o,n){s=s+"";let l,c;typeof o=="function"?(c=o,l={font:i.font}):typeof o=="string"?(l={font:o},c=n):o?(l=o,c=n):(l={font:i.font},c=n);const f=l.font||i.font;try{const h=await U.loadFont(f),C=h?dD(f,gD(h,l),s):"";return c&&c(null,C),C}catch(h){const C=h instanceof Error?h:new Error(String(h));if(c)return c(C),"";throw C}},U.textSync=function(s,o){s=s+"",typeof o=="string"?o={font:o}:o=o||{};const n=o.font||i.font;let l=gD(U.loadFontSync(n),o);return dD(n,l,s)},U.metadata=async function(s,o){s=s+"";try{const n=await U.loadFont(s);if(!n)throw new Error("Error loading font.");const l=r[s]||{},c=[n,l.comment||""];return o&&o(null,n,l.comment),c}catch(n){const l=n instanceof Error?n:new Error(String(n));if(o)return o(l),null;throw l}},U.defaults=function(s){return s&&typeof s=="object"&&Object.assign(i,s),typeof structuredClone<"u"?structuredClone(i):JSON.parse(JSON.stringify(i))},U.parseFont=function(s,o,n=!0){if(r[s]&&!n)return r[s].options;o=o.replace(/\r\n/g,`
34
34
  `).replace(/\r/g,`
35
- `);const l=new En,c=o.split(`
35
+ `);const l=new dn,c=o.split(`
36
36
  `),f=c.shift();if(!f)throw new Error("Invalid font file: missing header");const h=f.split(" "),C={hardBlank:h[0].substring(5,6),height:parseInt(h[1],10),baseline:parseInt(h[2],10),maxLength:parseInt(h[3],10),oldLayout:parseInt(h[4],10),numCommentLines:parseInt(h[5],10),printDirection:h[6]?parseInt(h[6],10):0,fullLayout:h[7]?parseInt(h[7],10):null,codeTagCount:h[8]?parseInt(h[8],10):null};if((C.hardBlank||"").length!==1||[C.height,C.baseline,C.maxLength,C.oldLayout,C.numCommentLines].some(w=>w==null||isNaN(w)))throw new Error("FIGlet header contains invalid values.");if(C.height==null||C.numCommentLines==null)throw new Error("FIGlet header contains invalid values.");C.fittingRules=a(C.oldLayout,C.fullLayout),l.options=C;const p=[];for(let w=32;w<=126;w++)p.push(w);if(p.push(196,214,220,228,246,252,223),c.length<C.numCommentLines+C.height*p.length)throw new Error(`FIGlet file is missing data. Line length: ${c.length}. Comment lines: ${C.numCommentLines}. Height: ${C.height}. Num chars: ${p.length}.`);for(l.comment=c.splice(0,C.numCommentLines).join(`
37
- `),l.numChars=0;c.length>0&&l.numChars<p.length;){const w=p[l.numChars];l[w]=c.splice(0,C.height);for(let R=0;R<C.height;R++)typeof l[w][R]>"u"?l[w][R]="":l[w][R]=F(l[w][R],R,C.height);l.numChars++}for(;c.length>0;){const w=c.shift();if(!w||w.trim()==="")break;let R=w.split(" ")[0],y;if(/^-?0[xX][0-9a-fA-F]+$/.test(R))y=parseInt(R,16);else if(/^-?0[0-7]+$/.test(R))y=parseInt(R,8);else if(/^-?[0-9]+$/.test(R))y=parseInt(R,10);else throw new Error(`Error parsing data. Invalid data: ${R}`);if(y===-1||y<-2147483648||y>2147483647){const v=y===-1?"The char code -1 is not permitted.":`The char code cannot be ${y<-2147483648?"less than -2147483648":"greater than 2147483647"}.`;throw new Error(`Error parsing data. ${v}`)}l[y]=c.splice(0,C.height);for(let v=0;v<C.height;v++)typeof l[y][v]>"u"?l[y][v]="":l[y][v]=F(l[y][v],v,C.height);l.numChars++}return r[s]=l,C},U.loadedFonts=()=>Object.keys(r),U.clearLoadedFonts=()=>{Object.keys(r).forEach(s=>{delete r[s]})},U.loadFont=async function(s,o){if(r[s]){const n=r[s].options;return o&&o(null,n),Promise.resolve(n)}try{if(!i.fetchFontIfMissing)throw new Error(`Font is not loaded: ${s}`);const n=await fetch(`${i.fontPath}/${s}.flf`);if(!n.ok)throw new Error(`Network response was not ok: ${n.status}`);const l=await n.text(),c=U.parseFont(s,l);return o&&o(null,c),c}catch(n){const l=n instanceof Error?n:new Error(String(n));if(o)return o(l),null;throw l}},U.loadFontSync=function(s){if(r[s])return r[s].options;throw new Error("Synchronous font loading is not implemented for the browser, it will only work for fonts already loaded.")},U.preloadFonts=async function(s,o){try{for(const n of s){const l=await fetch(`${i.fontPath}/${n}.flf`);if(!l.ok)throw new Error(`Failed to preload fonts. Error fetching font: ${n}, status code: ${l.statusText}`);const c=await l.text();U.parseFont(n,c)}o&&o()}catch(n){const l=n instanceof Error?n:new Error(String(n));if(o){o(l);return}throw n}},U.fonts=function(s){return new Promise(function(o,n){o(hD),s&&s(null,hD)})},U.fontsSync=function(){return hD},U.figFonts=r,U})(),Bn=Te(import.meta.url),mn=Su.dirname(Bn),pn=Su.join(mn,"/../fonts/"),P=gn;P.defaults({fontPath:pn}),P.loadFont=function(u,D){return new Promise((e,t)=>{if(P.figFonts[u]){D&&D(null,P.figFonts[u].options),e(P.figFonts[u].options);return}Lu.readFile(Su.join(P.defaults().fontPath,u+".flf"),{encoding:"utf-8"},(r,i)=>{if(r){D&&D(r),t(r);return}i=i+"";try{const F=P.parseFont(u,i);D&&D(null,F),e(F)}catch(F){const a=F instanceof Error?F:new Error(String(F));D&&D(a),t(a)}})})},P.loadFontSync=function(u){if(P.figFonts[u])return P.figFonts[u].options;const D=Lu.readFileSync(Su.join(P.defaults().fontPath,u+".flf"),{encoding:"utf-8"})+"";return P.parseFont(u,D)},P.fonts=function(u){return new Promise((D,e)=>{const t=[];Lu.readdir(P.defaults().fontPath,(r,i)=>{if(r){u&&u(r),e(r);return}i.forEach(F=>{/\.flf$/.test(F)&&t.push(F.replace(/\.flf$/,""))}),u&&u(null,t),D(t)})})},P.fontsSync=function(){const u=[];return Lu.readdirSync(P.defaults().fontPath).forEach(D=>{/\.flf$/.test(D)&&u.push(D.replace(/\.flf$/,""))}),u};var An=`flf2a$ 7 7 13 0 7 0 64 0
38
- Font Author: ?
39
-
40
- More Info:
41
-
42
- https://web.archive.org/web/20120819044459/http://www.roysac.com/thedrawfonts-tdf.asp
43
-
44
- FIGFont created with: http://patorjk.com/figfont-editor
45
- $ $@
46
- $ $@
47
- $ $@
48
- $ $@
49
- $ $@
50
- $ $@
51
- $ $@@
52
- \u2588\u2588\u2557@
53
- \u2588\u2588\u2551@
54
- \u2588\u2588\u2551@
55
- \u255A\u2550\u255D@
56
- \u2588\u2588\u2557@
57
- \u255A\u2550\u255D@
58
- @@
59
- @
60
- @
61
- @
62
- @
63
- @
64
- @
65
- @@
66
- \u2588\u2588\u2557 \u2588\u2588\u2557 @
67
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
68
- \u255A\u2588\u2588\u2554\u2550\u2588\u2588\u2554\u255D@
69
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
70
- \u255A\u2588\u2588\u2554\u2550\u2588\u2588\u2554\u255D@
71
- \u255A\u2550\u255D \u255A\u2550\u255D @
72
- @@
73
- \u2584\u2584\u2588\u2588\u2588\u2584\u2584\xB7@
74
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D@
75
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
76
- \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551@
77
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551@
78
- \u255A\u2550\u2580\u2580\u2580\u2550\u2550\u255D@
79
- @@
80
- \u2588\u2588\u2557 \u2588\u2588\u2557@
81
- \u255A\u2550\u255D\u2588\u2588\u2554\u255D@
82
- \u2588\u2588\u2554\u255D @
83
- \u2588\u2588\u2554\u255D @
84
- \u2588\u2588\u2554\u255D\u2588\u2588\u2557@
85
- \u255A\u2550\u255D \u255A\u2550\u255D@
86
- @@
87
- \u2588\u2588\u2557 @
88
- \u2588\u2588\u2551 @
89
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
90
- \u2588\u2588\u2554\u2550\u2588\u2588\u2554\u2550\u255D@
91
- \u2588\u2588\u2588\u2588\u2588\u2588\u2551 @
92
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
93
- @@
94
- @
95
- @
96
- @
97
- @
98
- @
99
- @
100
- @@
101
- \u2588\u2588\u2557@
102
- \u2588\u2588\u2554\u255D@
103
- \u2588\u2588\u2551 @
104
- \u2588\u2588\u2551 @
105
- \u255A\u2588\u2588\u2557@
106
- \u255A\u2550\u255D@
107
- @@
108
- \u2588\u2588\u2557 @
109
- \u255A\u2588\u2588\u2557@
110
- \u2588\u2588\u2551@
111
- \u2588\u2588\u2551@
112
- \u2588\u2588\u2554\u255D@
113
- \u255A\u2550\u255D @
114
- @@
115
- @
116
- \u2584 \u2588\u2588\u2557\u2584@
117
- \u2588\u2588\u2588\u2588\u2557@
118
- \u2580\u255A\u2588\u2588\u2554\u2580@
119
- \u255A\u2550\u255D @
120
- @
121
- @@
122
- @
123
- @
124
- @
125
- @
126
- @
127
- @
128
- @@
129
- @
130
- @
131
- @
132
- @
133
- \u2584\u2588\u2557@
134
- \u255A\u2550\u255D@
135
- @@
136
- @
137
- @
138
- \u2588\u2588\u2588\u2588\u2588\u2557@
139
- \u255A\u2550\u2550\u2550\u2550\u255D@
140
- @
141
- @
142
- @@
143
- @
144
- @
145
- @
146
- @
147
- \u2588\u2588\u2557@
148
- \u255A\u2550\u255D@
149
- @@
150
- \u2588\u2588\u2557@
151
- \u2588\u2588\u2554\u255D@
152
- \u2588\u2588\u2554\u255D @
153
- \u2588\u2588\u2554\u255D @
154
- \u2588\u2588\u2554\u255D @
155
- \u255A\u2550\u255D @
156
- @@
157
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
158
- \u2588\u2588\u2554\u2550\u2588\u2588\u2588\u2588\u2557@
159
- \u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2551@
160
- \u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551@
161
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
162
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
163
- @@
164
- \u2588\u2588\u2557@
165
- \u2588\u2588\u2588\u2551@
166
- \u255A\u2588\u2588\u2551@
167
- \u2588\u2588\u2551@
168
- \u2588\u2588\u2551@
169
- \u255A\u2550\u255D@
170
- @@
171
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
172
- \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2557@
173
- \u2588\u2588\u2588\u2588\u2588\u2554\u255D@
174
- \u2588\u2588\u2554\u2550\u2550\u2550\u255D @
175
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
176
- \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D@
177
- @@
178
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
179
- \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2557@
180
- \u2588\u2588\u2588\u2588\u2588\u2554\u255D@
181
- \u255A\u2550\u2550\u2550\u2588\u2588\u2557@
182
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
183
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
184
- @@
185
- \u2588\u2588\u2557 \u2588\u2588\u2557@
186
- \u2588\u2588\u2551 \u2588\u2588\u2551@
187
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551@
188
- \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551@
189
- \u2588\u2588\u2551@
190
- \u255A\u2550\u255D@
191
- @@
192
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
193
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D@
194
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
195
- \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551@
196
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551@
197
- \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D@
198
- @@
199
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
200
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D @
201
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
202
- \u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557@
203
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
204
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
205
- @@
206
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
207
- \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551@
208
- \u2588\u2588\u2554\u255D@
209
- \u2588\u2588\u2554\u255D @
210
- \u2588\u2588\u2551 @
211
- \u255A\u2550\u255D @
212
- @@
213
- \u2588\u2588\u2588\u2588\u2588\u2557 @
214
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
215
- \u255A\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
216
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
217
- \u255A\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
218
- \u255A\u2550\u2550\u2550\u2550\u255D @
219
- @@
220
- \u2588\u2588\u2588\u2588\u2588\u2557 @
221
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
222
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2551@
223
- \u255A\u2550\u2550\u2550\u2588\u2588\u2551@
224
- \u2588\u2588\u2588\u2588\u2588\u2554\u255D@
225
- \u255A\u2550\u2550\u2550\u2550\u255D @
226
- @@
227
- @
228
- \u2588\u2588\u2557@
229
- \u255A\u2550\u255D@
230
- \u2588\u2588\u2557@
231
- \u255A\u2550\u255D@
232
- @
233
- @@
234
- @
235
- \u2588\u2588\u2557@
236
- \u255A\u2550\u255D@
237
- \u2584\u2588\u2557@
238
- \u2580\u2550\u255D@
239
- @
240
- @@
241
- \u2588\u2588\u2557@
242
- \u2588\u2588\u2554\u255D@
243
- \u2588\u2588\u2554\u255D @
244
- \u255A\u2588\u2588\u2557 @
245
- \u255A\u2588\u2588\u2557@
246
- \u255A\u2550\u255D@
247
- @@
248
- @
249
- @
250
- @
251
- @
252
- @
253
- @
254
- @@
255
- \u2588\u2588\u2557 @
256
- \u255A\u2588\u2588\u2557 @
257
- \u255A\u2588\u2588\u2557@
258
- \u2588\u2588\u2554\u255D@
259
- \u2588\u2588\u2554\u255D @
260
- \u255A\u2550\u255D @
261
- @@
262
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
263
- \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2557@
264
- \u2584\u2588\u2588\u2588\u2554\u255D@
265
- \u2580\u2580\u2550\u2550\u255D @
266
- \u2588\u2588\u2557 @
267
- \u255A\u2550\u255D @
268
- @@
269
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
270
- \u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557@
271
- \u2588\u2588\u2551\u2588\u2588\u2557\u2588\u2588\u2551@
272
- \u2588\u2588\u2551\u2588\u2588\u2551\u2588\u2588\u2551@
273
- \u255A\u2588\u2551\u2588\u2588\u2588\u2588\u2554\u255D@
274
- \u255A\u255D\u255A\u2550\u2550\u2550\u255D @
275
- @@
276
- \u2588\u2588\u2588\u2588\u2588\u2557 @
277
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
278
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551@
279
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551@
280
- \u2588\u2588\u2551 \u2588\u2588\u2551@
281
- \u255A\u2550\u255D \u255A\u2550\u255D@
282
- @@
283
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
284
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
285
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
286
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
287
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
288
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
289
- @@
290
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557@
291
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D@
292
- \u2588\u2588\u2551 @
293
- \u2588\u2588\u2551 @
294
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
295
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D@
296
- @@
297
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
298
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
299
- \u2588\u2588\u2551 \u2588\u2588\u2551@
300
- \u2588\u2588\u2551 \u2588\u2588\u2551@
301
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
302
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
303
- @@
304
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
305
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D@
306
- \u2588\u2588\u2588\u2588\u2588\u2557 @
307
- \u2588\u2588\u2554\u2550\u2550\u255D @
308
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
309
- \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D@
310
- @@
311
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
312
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D@
313
- \u2588\u2588\u2588\u2588\u2588\u2557 @
314
- \u2588\u2588\u2554\u2550\u2550\u255D @
315
- \u2588\u2588\u2551 @
316
- \u255A\u2550\u255D @
317
- @@
318
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
319
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D @
320
- \u2588\u2588\u2551 \u2588\u2588\u2588\u2557@
321
- \u2588\u2588\u2551 \u2588\u2588\u2551@
322
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
323
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
324
- @@
325
- \u2588\u2588\u2557 \u2588\u2588\u2557@
326
- \u2588\u2588\u2551 \u2588\u2588\u2551@
327
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551@
328
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551@
329
- \u2588\u2588\u2551 \u2588\u2588\u2551@
330
- \u255A\u2550\u255D \u255A\u2550\u255D@
331
- @@
332
- \u2588\u2588\u2557@
333
- \u2588\u2588\u2551@
334
- \u2588\u2588\u2551@
335
- \u2588\u2588\u2551@
336
- \u2588\u2588\u2551@
337
- \u255A\u2550\u255D@
338
- @@
339
- \u2588\u2588\u2557@
340
- \u2588\u2588\u2551@
341
- \u2588\u2588\u2551@
342
- \u2588\u2588 \u2588\u2588\u2551@
343
- \u255A\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
344
- \u255A\u2550\u2550\u2550\u2550\u255D @
345
- @@
346
- \u2588\u2588\u2557 \u2588\u2588\u2557@
347
- \u2588\u2588\u2551 \u2588\u2588\u2554\u255D@
348
- \u2588\u2588\u2588\u2588\u2588\u2554\u255D @
349
- \u2588\u2588\u2554\u2550\u2588\u2588\u2557 @
350
- \u2588\u2588\u2551 \u2588\u2588\u2557@
351
- \u255A\u2550\u255D \u255A\u2550\u255D@
352
- @@
353
- \u2588\u2588\u2557 @
354
- \u2588\u2588\u2551 @
355
- \u2588\u2588\u2551 @
356
- \u2588\u2588\u2551 @
357
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
358
- \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D@
359
- @@
360
- \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557@
361
- \u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551@
362
- \u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551@
363
- \u2588\u2588\u2551\u255A\u2588\u2588\u2554\u255D\u2588\u2588\u2551@
364
- \u2588\u2588\u2551 \u255A\u2550\u255D \u2588\u2588\u2551@
365
- \u255A\u2550\u255D \u255A\u2550\u255D@
366
- @@
367
- \u2588\u2588\u2588\u2557 \u2588\u2588\u2557@
368
- \u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551@
369
- \u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551@
370
- \u2588\u2588\u2551\u255A\u2588\u2588\u2557\u2588\u2588\u2551@
371
- \u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551@
372
- \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D@
373
- @@
374
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
375
- \u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557@
376
- \u2588\u2588\u2551 \u2588\u2588\u2551@
377
- \u2588\u2588\u2551 \u2588\u2588\u2551@
378
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
379
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
380
- @@
381
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
382
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
383
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
384
- \u2588\u2588\u2554\u2550\u2550\u2550\u255D @
385
- \u2588\u2588\u2551 @
386
- \u255A\u2550\u255D @
387
- @@
388
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
389
- \u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557@
390
- \u2588\u2588\u2551 \u2588\u2588\u2551@
391
- \u2588\u2588\u2551\u2584\u2584 \u2588\u2588\u2551@
392
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
393
- \u255A\u2550\u2550\u2580\u2580\u2550\u255D @
394
- @@
395
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
396
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
397
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
398
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
399
- \u2588\u2588\u2551 \u2588\u2588\u2551@
400
- \u255A\u2550\u255D \u255A\u2550\u255D@
401
- @@
402
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
403
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D@
404
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
405
- \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551@
406
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551@
407
- \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D@
408
- @@
409
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
410
- \u255A\u2550\u2550\u2588\u2588\u2554\u2550\u2550\u255D@
411
- \u2588\u2588\u2551 @
412
- \u2588\u2588\u2551 @
413
- \u2588\u2588\u2551 @
414
- \u255A\u2550\u255D @
415
- @@
416
- \u2588\u2588\u2557 \u2588\u2588\u2557@
417
- \u2588\u2588\u2551 \u2588\u2588\u2551@
418
- \u2588\u2588\u2551 \u2588\u2588\u2551@
419
- \u2588\u2588\u2551 \u2588\u2588\u2551@
420
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
421
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
422
- @@
423
- \u2588\u2588\u2557 \u2588\u2588\u2557@
424
- \u2588\u2588\u2551 \u2588\u2588\u2551@
425
- \u2588\u2588\u2551 \u2588\u2588\u2551@
426
- \u255A\u2588\u2588\u2557 \u2588\u2588\u2554\u255D@
427
- \u255A\u2588\u2588\u2588\u2588\u2554\u255D @
428
- \u255A\u2550\u2550\u2550\u255D @
429
- @@
430
- \u2588\u2588\u2557 \u2588\u2588\u2557@
431
- \u2588\u2588\u2551 \u2588\u2588\u2551@
432
- \u2588\u2588\u2551 \u2588\u2557 \u2588\u2588\u2551@
433
- \u2588\u2588\u2551\u2588\u2588\u2588\u2557\u2588\u2588\u2551@
434
- \u255A\u2588\u2588\u2588\u2554\u2588\u2588\u2588\u2554\u255D@
435
- \u255A\u2550\u2550\u255D\u255A\u2550\u2550\u255D @
436
- @@
437
- \u2588\u2588\u2557 \u2588\u2588\u2557@
438
- \u255A\u2588\u2588\u2557\u2588\u2588\u2554\u255D@
439
- \u255A\u2588\u2588\u2588\u2554\u255D @
440
- \u2588\u2588\u2554\u2588\u2588\u2557 @
441
- \u2588\u2588\u2554\u255D \u2588\u2588\u2557@
442
- \u255A\u2550\u255D \u255A\u2550\u255D@
443
- @@
444
- \u2588\u2588\u2557 \u2588\u2588\u2557@
445
- \u255A\u2588\u2588\u2557 \u2588\u2588\u2554\u255D@
446
- \u255A\u2588\u2588\u2588\u2588\u2554\u255D @
447
- \u255A\u2588\u2588\u2554\u255D @
448
- \u2588\u2588\u2551 @
449
- \u255A\u2550\u255D @
450
- @@
451
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
452
- \u255A\u2550\u2550\u2588\u2588\u2588\u2554\u255D@
453
- \u2588\u2588\u2588\u2554\u255D @
454
- \u2588\u2588\u2588\u2554\u255D @
455
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
456
- \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D@
457
- @@
458
- \u2588\u2588\u2588\u2557@
459
- \u2588\u2588\u2554\u255D@
460
- \u2588\u2588\u2551 @
461
- \u2588\u2588\u2551 @
462
- \u2588\u2588\u2588\u2557@
463
- \u255A\u2550\u2550\u255D@
464
- @@
465
- @
466
- @
467
- @
468
- @
469
- @
470
- @
471
- @@
472
- \u2588\u2588\u2588\u2557@
473
- \u255A\u2588\u2588\u2551@
474
- \u2588\u2588\u2551@
475
- \u2588\u2588\u2551@
476
- \u2588\u2588\u2588\u2551@
477
- \u255A\u2550\u2550\u255D@
478
- @@
479
- \u2588\u2588\u2588\u2557 @
480
- \u2588\u2588\u2554\u2588\u2588\u2557@
481
- \u255A\u2550\u255D\u255A\u2550\u255D@
482
- @
483
- @
484
- @
485
- @@
486
- @
487
- @
488
- @
489
- @
490
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
491
- \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D@
492
- @@
493
- @
494
- @
495
- @
496
- @
497
- @
498
- @
499
- @@
500
- \u2588\u2588\u2588\u2588\u2588\u2557 @
501
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
502
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551@
503
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551@
504
- \u2588\u2588\u2551 \u2588\u2588\u2551@
505
- \u255A\u2550\u255D \u255A\u2550\u255D@
506
- @@
507
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
508
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
509
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
510
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
511
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
512
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
513
- @@
514
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557@
515
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D@
516
- \u2588\u2588\u2551 @
517
- \u2588\u2588\u2551 @
518
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
519
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D@
520
- @@
521
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
522
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
523
- \u2588\u2588\u2551 \u2588\u2588\u2551@
524
- \u2588\u2588\u2551 \u2588\u2588\u2551@
525
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
526
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
527
- @@
528
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
529
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D@
530
- \u2588\u2588\u2588\u2588\u2588\u2557 @
531
- \u2588\u2588\u2554\u2550\u2550\u255D @
532
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
533
- \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D@
534
- @@
535
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
536
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D@
537
- \u2588\u2588\u2588\u2588\u2588\u2557 @
538
- \u2588\u2588\u2554\u2550\u2550\u255D @
539
- \u2588\u2588\u2551 @
540
- \u255A\u2550\u255D @
541
- @@
542
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
543
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D @
544
- \u2588\u2588\u2551 \u2588\u2588\u2588\u2557@
545
- \u2588\u2588\u2551 \u2588\u2588\u2551@
546
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
547
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
548
- @@
549
- \u2588\u2588\u2557 \u2588\u2588\u2557@
550
- \u2588\u2588\u2551 \u2588\u2588\u2551@
551
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551@
552
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551@
553
- \u2588\u2588\u2551 \u2588\u2588\u2551@
554
- \u255A\u2550\u255D \u255A\u2550\u255D@
555
- @@
556
- \u2588\u2588\u2557@
557
- \u2588\u2588\u2551@
558
- \u2588\u2588\u2551@
559
- \u2588\u2588\u2551@
560
- \u2588\u2588\u2551@
561
- \u255A\u2550\u255D@
562
- @@
563
- \u2588\u2588\u2557@
564
- \u2588\u2588\u2551@
565
- \u2588\u2588\u2551@
566
- \u2588\u2588 \u2588\u2588\u2551@
567
- \u255A\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
568
- \u255A\u2550\u2550\u2550\u2550\u255D @
569
- @@
570
- \u2588\u2588\u2557 \u2588\u2588\u2557@
571
- \u2588\u2588\u2551 \u2588\u2588\u2554\u255D@
572
- \u2588\u2588\u2588\u2588\u2588\u2554\u255D @
573
- \u2588\u2588\u2554\u2550\u2588\u2588\u2557 @
574
- \u2588\u2588\u2551 \u2588\u2588\u2557@
575
- \u255A\u2550\u255D \u255A\u2550\u255D@
576
- @@
577
- \u2588\u2588\u2557 @
578
- \u2588\u2588\u2551 @
579
- \u2588\u2588\u2551 @
580
- \u2588\u2588\u2551 @
581
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
582
- \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D@
583
- @@
584
- \u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557@
585
- \u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2551@
586
- \u2588\u2588\u2554\u2588\u2588\u2588\u2588\u2554\u2588\u2588\u2551@
587
- \u2588\u2588\u2551\u255A\u2588\u2588\u2554\u255D\u2588\u2588\u2551@
588
- \u2588\u2588\u2551 \u255A\u2550\u255D \u2588\u2588\u2551@
589
- \u255A\u2550\u255D \u255A\u2550\u255D@
590
- @@
591
- \u2588\u2588\u2588\u2557 \u2588\u2588\u2557@
592
- \u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551@
593
- \u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551@
594
- \u2588\u2588\u2551\u255A\u2588\u2588\u2557\u2588\u2588\u2551@
595
- \u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551@
596
- \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D@
597
- @@
598
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
599
- \u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557@
600
- \u2588\u2588\u2551 \u2588\u2588\u2551@
601
- \u2588\u2588\u2551 \u2588\u2588\u2551@
602
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
603
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
604
- @@
605
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
606
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
607
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
608
- \u2588\u2588\u2554\u2550\u2550\u2550\u255D @
609
- \u2588\u2588\u2551 @
610
- \u255A\u2550\u255D @
611
- @@
612
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
613
- \u2588\u2588\u2554\u2550\u2550\u2550\u2588\u2588\u2557@
614
- \u2588\u2588\u2551 \u2588\u2588\u2551@
615
- \u2588\u2588\u2551\u2584\u2584 \u2588\u2588\u2551@
616
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
617
- \u255A\u2550\u2550\u2580\u2580\u2550\u255D @
618
- @@
619
- \u2588\u2588\u2588\u2588\u2588\u2588\u2557 @
620
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
621
- \u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
622
- \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557@
623
- \u2588\u2588\u2551 \u2588\u2588\u2551@
624
- \u255A\u2550\u255D \u255A\u2550\u255D@
625
- @@
626
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
627
- \u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D@
628
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
629
- \u255A\u2550\u2550\u2550\u2550\u2588\u2588\u2551@
630
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551@
631
- \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D@
632
- @@
633
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
634
- \u255A\u2550\u2550\u2588\u2588\u2554\u2550\u2550\u255D@
635
- \u2588\u2588\u2551 @
636
- \u2588\u2588\u2551 @
637
- \u2588\u2588\u2551 @
638
- \u255A\u2550\u255D @
639
- @@
640
- \u2588\u2588\u2557 \u2588\u2588\u2557@
641
- \u2588\u2588\u2551 \u2588\u2588\u2551@
642
- \u2588\u2588\u2551 \u2588\u2588\u2551@
643
- \u2588\u2588\u2551 \u2588\u2588\u2551@
644
- \u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D@
645
- \u255A\u2550\u2550\u2550\u2550\u2550\u255D @
646
- @@
647
- \u2588\u2588\u2557 \u2588\u2588\u2557@
648
- \u2588\u2588\u2551 \u2588\u2588\u2551@
649
- \u2588\u2588\u2551 \u2588\u2588\u2551@
650
- \u255A\u2588\u2588\u2557 \u2588\u2588\u2554\u255D@
651
- \u255A\u2588\u2588\u2588\u2588\u2554\u255D @
652
- \u255A\u2550\u2550\u2550\u255D @
653
- @@
654
- \u2588\u2588\u2557 \u2588\u2588\u2557@
655
- \u2588\u2588\u2551 \u2588\u2588\u2551@
656
- \u2588\u2588\u2551 \u2588\u2557 \u2588\u2588\u2551@
657
- \u2588\u2588\u2551\u2588\u2588\u2588\u2557\u2588\u2588\u2551@
658
- \u255A\u2588\u2588\u2588\u2554\u2588\u2588\u2588\u2554\u255D@
659
- \u255A\u2550\u2550\u255D\u255A\u2550\u2550\u255D @
660
- @@
661
- \u2588\u2588\u2557 \u2588\u2588\u2557@
662
- \u255A\u2588\u2588\u2557\u2588\u2588\u2554\u255D@
663
- \u255A\u2588\u2588\u2588\u2554\u255D @
664
- \u2588\u2588\u2554\u2588\u2588\u2557 @
665
- \u2588\u2588\u2554\u255D \u2588\u2588\u2557@
666
- \u255A\u2550\u255D \u255A\u2550\u255D@
667
- @@
668
- \u2588\u2588\u2557 \u2588\u2588\u2557@
669
- \u255A\u2588\u2588\u2557 \u2588\u2588\u2554\u255D@
670
- \u255A\u2588\u2588\u2588\u2588\u2554\u255D @
671
- \u255A\u2588\u2588\u2554\u255D @
672
- \u2588\u2588\u2551 @
673
- \u255A\u2550\u255D @
674
- @@
675
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
676
- \u255A\u2550\u2550\u2588\u2588\u2588\u2554\u255D@
677
- \u2588\u2588\u2588\u2554\u255D @
678
- \u2588\u2588\u2588\u2554\u255D @
679
- \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557@
680
- \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D@
681
- @@
682
- @
683
- @
684
- @
685
- @
686
- @
687
- @
688
- @@
689
- @
690
- @
691
- @
692
- @
693
- @
694
- @
695
- @@
696
- @
697
- @
698
- @
699
- @
700
- @
701
- @
702
- @@
703
- @
704
- @
705
- @
706
- @
707
- @
708
- @
709
- @@
710
- @
711
- @
712
- @
713
- @
714
- @
715
- @
716
- @@
717
- @
718
- @
719
- @
720
- @
721
- @
722
- @
723
- @@
724
- @
725
- @
726
- @
727
- @
728
- @
729
- @
730
- @@
731
- @
732
- @
733
- @
734
- @
735
- @
736
- @
737
- @@
738
- @
739
- @
740
- @
741
- @
742
- @
743
- @
744
- @@
745
- @
746
- @
747
- @
748
- @
749
- @
750
- @
751
- @@
752
- @
753
- @
754
- @
755
- @
756
- @
757
- @
758
- @@`;const ED=u=>{let D;const e=process.platform;e==="darwin"?D=`open "${u}"`:e==="win32"?D=`start "" "${u}"`:D=`xdg-open "${u}"`,xe(D,t=>{})};P.parseFont("ANSI Shadow",An);const bn=u=>{const{theme:D,ui:e}=u.config,{name:t,website:r,displayEmail:i,currentRole:F,npx:a}=u.personal,B=t.split(" ")?.[0],g=r||`https://${i.replace(/.*@/,"")}`,m=V[D.secondary]||V.whiteBright,E=P.textSync(t.toUpperCase().replace(" ",`
759
- `),{font:"ANSI Shadow"}),x=[...u.socialHandles.map(A=>({label:ot(A.platform),value:`${A.url}/${A.handle}`,color:A.color})),{label:e.title,value:g,color:D.accent},{label:e.npx,value:a||`npx ${B.toLowerCase()}`,color:"#cb3837"}],b=Math.max(...x.map(A=>A.label.length)),S=Math.max(...x.map(A=>A.value.length)),T=[null,...E.split(`
760
- `).map(A=>V.bold.whiteBright(Iu(A))),m(Iu(F.toUpperCase())),null,...x.map(A=>{const L=A.label.padEnd(b," "),I=A.value.padEnd(S," ");return V.hex(A.color).bgWhiteBright.inverse(Iu(` ${L} : ${I} `))}),null,...e?.footer?.map(A=>V.italic(m(Iu(A))))||[],null];console.log(Rr(T.join(`
761
- `),{margin:1,float:"center",textAlignment:"center",borderStyle:D.borderStyle,borderColor:D.borderColor})),console.log(e.cmdTip)};var Rn=(u=>(u.EMAIL="email",u.RESUME="resume",u.MEETING="meeting",u.EXIT="exit",u))(Rn||{});const wn=u=>{const{messages:D,theme:e}=u.config,t=V[e.primary]||V.cyanBright,r=V[e.secondary]||V.whiteBright,i=D,F=(B,g,m)=>{const E=i[B];return{name:m?E.message.replace(m,t(m)):E.message,value:g,description:r(`
762
- `+E.description)}},a={email:()=>{ED(`mailto:${u.personal.displayEmail}?subject=Hi%20${u.personal.name.split(" ")?.[0]}!`),console.log(`
37
+ `),l.numChars=0;c.length>0&&l.numChars<p.length;){const w=p[l.numChars];l[w]=c.splice(0,C.height);for(let R=0;R<C.height;R++)typeof l[w][R]>"u"?l[w][R]="":l[w][R]=F(l[w][R],R,C.height);l.numChars++}for(;c.length>0;){const w=c.shift();if(!w||w.trim()==="")break;let R=w.split(" ")[0],y;if(/^-?0[xX][0-9a-fA-F]+$/.test(R))y=parseInt(R,16);else if(/^-?0[0-7]+$/.test(R))y=parseInt(R,8);else if(/^-?[0-9]+$/.test(R))y=parseInt(R,10);else throw new Error(`Error parsing data. Invalid data: ${R}`);if(y===-1||y<-2147483648||y>2147483647){const v=y===-1?"The char code -1 is not permitted.":`The char code cannot be ${y<-2147483648?"less than -2147483648":"greater than 2147483647"}.`;throw new Error(`Error parsing data. ${v}`)}l[y]=c.splice(0,C.height);for(let v=0;v<C.height;v++)typeof l[y][v]>"u"?l[y][v]="":l[y][v]=F(l[y][v],v,C.height);l.numChars++}return r[s]=l,C},U.loadedFonts=()=>Object.keys(r),U.clearLoadedFonts=()=>{Object.keys(r).forEach(s=>{delete r[s]})},U.loadFont=async function(s,o){if(r[s]){const n=r[s].options;return o&&o(null,n),Promise.resolve(n)}try{if(!i.fetchFontIfMissing)throw new Error(`Font is not loaded: ${s}`);const n=await fetch(`${i.fontPath}/${s}.flf`);if(!n.ok)throw new Error(`Network response was not ok: ${n.status}`);const l=await n.text(),c=U.parseFont(s,l);return o&&o(null,c),c}catch(n){const l=n instanceof Error?n:new Error(String(n));if(o)return o(l),null;throw l}},U.loadFontSync=function(s){if(r[s])return r[s].options;throw new Error("Synchronous font loading is not implemented for the browser, it will only work for fonts already loaded.")},U.preloadFonts=async function(s,o){try{for(const n of s){const l=await fetch(`${i.fontPath}/${n}.flf`);if(!l.ok)throw new Error(`Failed to preload fonts. Error fetching font: ${n}, status code: ${l.statusText}`);const c=await l.text();U.parseFont(n,c)}o&&o()}catch(n){const l=n instanceof Error?n:new Error(String(n));if(o){o(l);return}throw n}},U.fonts=function(s){return new Promise(function(o,n){o(hD),s&&s(null,hD)})},U.fontsSync=function(){return hD},U.figFonts=r,U})(),mn=Te(import.meta.url),pn=Su.dirname(mn),An=Su.join(pn,"/../fonts/"),P=Bn;P.defaults({fontPath:An}),P.loadFont=function(u,D){return new Promise((e,t)=>{if(P.figFonts[u]){D&&D(null,P.figFonts[u].options),e(P.figFonts[u].options);return}Lu.readFile(Su.join(P.defaults().fontPath,u+".flf"),{encoding:"utf-8"},(r,i)=>{if(r){D&&D(r),t(r);return}i=i+"";try{const F=P.parseFont(u,i);D&&D(null,F),e(F)}catch(F){const a=F instanceof Error?F:new Error(String(F));D&&D(a),t(a)}})})},P.loadFontSync=function(u){if(P.figFonts[u])return P.figFonts[u].options;const D=Lu.readFileSync(Su.join(P.defaults().fontPath,u+".flf"),{encoding:"utf-8"})+"";return P.parseFont(u,D)},P.fonts=function(u){return new Promise((D,e)=>{const t=[];Lu.readdir(P.defaults().fontPath,(r,i)=>{if(r){u&&u(r),e(r);return}i.forEach(F=>{/\.flf$/.test(F)&&t.push(F.replace(/\.flf$/,""))}),u&&u(null,t),D(t)})})},P.fontsSync=function(){const u=[];return Lu.readdirSync(P.defaults().fontPath).forEach(D=>{/\.flf$/.test(D)&&u.push(D.replace(/\.flf$/,""))}),u};var bn=Object.freeze({__proto__:null,default:P});const ED=u=>{let D;const e=process.platform;e==="darwin"?D=`open "${u}"`:e==="win32"?D=`start "" "${u}"`:D=`xdg-open "${u}"`,xe(D,t=>{})},Rn=u=>{const{theme:D,ui:e}=u.config,{name:t,website:r,displayEmail:i,currentRole:F,npx:a}=u.personal,B=t.split(" ")?.[0],g=r||`https://${i.replace(/.*@/,"")}`,m=uu[D.secondary]||uu.whiteBright,d=P.textSync(t.toUpperCase().replace(" ",`
38
+ `),{font:"ANSI Shadow"}),x=[...u.socialHandles.map(A=>({label:Ft(A.platform),value:`${A.url}/${A.handle}`,color:A.color})),{label:e.title,value:g,color:D.accent},{label:e.npx,value:a||`npx ${B.toLowerCase()}`,color:"#cb3837"}],b=Math.max(...x.map(A=>A.label.length)),S=Math.max(...x.map(A=>A.value.length)),T=[null,...d.split(`
39
+ `).map(A=>uu.bold.whiteBright(Iu(A))),m(Iu(F.toUpperCase())),null,...x.map(A=>{const L=A.label.padEnd(b," "),I=A.value.padEnd(S," ");return uu.hex(A.color).bgWhiteBright.inverse(Iu(` ${L} : ${I} `))}),null,...e?.footer?.map(A=>uu.italic(m(Iu(A))))||[],null];console.log(wr(T.join(`
40
+ `),{margin:1,float:"center",textAlignment:"center",borderStyle:D.borderStyle,borderColor:D.borderColor})),console.log(e.cmdTip)};var wn=(u=>(u.EMAIL="email",u.RESUME="resume",u.MEETING="meeting",u.EXIT="exit",u))(wn||{});const yn=u=>{const{messages:D,theme:e}=u.config,[t,r]=[e.primary,e.secondary].map(a=>uu[a]||uu.whiteBright),i=(a,B)=>{const g=D[a],m=g?.message||"",d=g?.description||"";return{name:B?m.replace(B,t(B)):m,value:a,description:r(`
41
+ `+d)}},F={email:()=>{ED(`mailto:${u.personal.displayEmail}?subject=Hi%20${u.personal.name.split(" ")?.[0]}!`),console.log(`
763
42
 
764
43
  ${D.email.success}
765
44
  `)},resume:()=>{ED(u.personal.resume||"https://cv.ritik.me"),console.log(`
@@ -771,6 +50,6 @@ ${D.meeting.success}
771
50
  `)},exit:()=>console.log(`
772
51
 
773
52
  ${D.exit.success}
774
- `)};Cn({message:"Choose an Action",choices:[F("email","email","email"),F("resume","resume","Resume"),F("meeting","meeting","Meeting"),F("exit","exit")]}).then(B=>a[B]())},yn=async()=>{if(console.clear(),tt(pD.name))return;const u=new Ft("Fetching profile data...").start();try{const D=await et();D.config={theme:{...fu.theme,...D.config?.theme},ui:{...fu.ui,...D.config?.ui},messages:{email:{...fu.messages?.email,...D.config?.messages?.email},resume:{...fu.messages?.resume,...D.config?.messages?.resume},meeting:{...fu.messages?.meeting,...D.config?.messages?.meeting},exit:{...fu.messages?.exit,...D.config?.messages?.exit}}},u.succeed(`Profile loaded (${V.dim(`v${pD.version}`)})`),bn(D),wn(D)}catch(D){u.fail("Failed to load profile"),D instanceof Error?console.error(`
53
+ `)};hn({message:"Choose an Action",choices:[i("email","email"),i("resume","Resume"),i("meeting","Meeting"),i("exit")]}).then(a=>F[a]())},xn=async()=>{if(console.clear(),rt(pD.name))return;const u=new at("Fetching data...").start();try{const[D]=await Promise.all([et(),tt()]);D.config={theme:{...fu.theme,...D.config?.theme},ui:{...fu.ui,...D.config?.ui},messages:{email:{...fu.messages?.email,...D.config?.messages?.email},resume:{...fu.messages?.resume,...D.config?.messages?.resume},meeting:{...fu.messages?.meeting,...D.config?.messages?.meeting},exit:{...fu.messages?.exit,...D.config?.messages?.exit}}},u.succeed(`Welcome to ${D.personal.name.split(" ")?.[0]}'s Cli Portfolio ${uu.dim(`- v${pD.version}`)}`),Rn(D),yn(D)}catch(D){u.fail("Failed to load profile"),D instanceof Error?console.error(`
775
54
  Error: ${D.message}`):console.error(`
776
- An unknown error occurred.`),process.exit(1)}};yn();
55
+ An unknown error occurred.`),process.exit(1)}};xn();