@negoziator/ai-commit 1.2.143 → 1.2.145

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/cli.mjs +86 -84
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -1,100 +1,102 @@
1
1
  #!/usr/bin/env node
2
- var cn=Object.defineProperty;var s=(u,D)=>cn(u,"name",{value:D,configurable:!0});var uu,Du;import Lu from"tty";import{Buffer as ln}from"node:buffer";import z from"node:path";import ee,{ChildProcess as Fn}from"node:child_process";import y,{stdin as te,stdout as ne}from"node:process";import Cn from"child_process";import q from"path";import Gu from"fs";import{fileURLToPath as re}from"node:url";import fn,{constants as oe}from"node:os";import se from"assert";import ie from"events";import{createWriteStream as dn,createReadStream as En}from"node:fs";import pn from"buffer";import Wu from"stream";import ae from"util";import{debuglog as hn}from"node:util";import*as du from"node:readline";import ce from"node:readline";import{WriteStream as mn}from"node:tty";import T from"fs/promises";import le from"os";import gn from"https";import Bn from"net";import bn from"tls";import yn,{fileURLToPath as An,pathToFileURL as wn}from"url";const $n="known-flag",vn="unknown-flag",xn="argument",{stringify:eu}=JSON,Sn=/\B([A-Z])/g,On=s(u=>u.replace(Sn,"-$1").toLowerCase(),"v$2"),{hasOwnProperty:Tn}=Object.prototype,tu=s((u,D)=>Tn.call(u,D),"w$3"),In=s(u=>Array.isArray(u),"L$3"),Fe=s(u=>typeof u=="function"?[u,!1]:In(u)?[u[0],!0]:Fe(u.type),"b$3"),Pn=s((u,D)=>u===Boolean?D!=="false":D,"d$3"),kn=s((u,D)=>typeof D=="boolean"?D:u===Number&&D===""?Number.NaN:u(D),"m$1"),_n=/[\s.:=]/,Rn=s(u=>{const D=`Flag name ${eu(u)}`;if(u.length===0)throw new Error(`${D} cannot be empty`);if(u.length===1)throw new Error(`${D} must be longer than a character`);const e=u.match(_n);if(e)throw new Error(`${D} cannot contain ${eu(e?.[0])}`)},"B"),Mn=s(u=>{const D={},e=s((n,r)=>{if(tu(D,n))throw new Error(`Duplicate flags named ${eu(n)}`);D[n]=r},"r");for(const n in u){if(!tu(u,n))continue;Rn(n);const r=u[n],o=[[],...Fe(r),r];e(n,o);const t=On(n);if(n!==t&&e(t,o),"alias"in r&&typeof r.alias=="string"){const{alias:i}=r,a=`Flag alias ${eu(i)} for flag ${eu(n)}`;if(i.length===0)throw new Error(`${a} cannot be empty`);if(i.length>1)throw new Error(`${a} must be a single character`);e(i,o)}}return D},"K$2"),jn=s((u,D)=>{const e={};for(const n in u){if(!tu(u,n))continue;const[r,,o,t]=D[n];if(r.length===0&&"default"in t){let{default:i}=t;typeof i=="function"&&(i=i()),e[n]=i}else e[n]=o?r:r.pop()}return e},"_$3"),Eu="--",Nn=/[.:=]/,Ln=/^-{1,2}\w/,Gn=s(u=>{if(!Ln.test(u))return;const D=!u.startsWith(Eu);let e=u.slice(D?1:2),n;const r=e.match(Nn);if(r){const{index:o}=r;n=e.slice(o+1),e=e.slice(0,o)}return[e,n,D]},"N$1"),Wn=s((u,{onFlag:D,onArgument:e})=>{let n;const r=s((o,t)=>{if(typeof n!="function")return!0;n(o,t),n=void 0},"o");for(let o=0;o<u.length;o+=1){const t=u[o];if(t===Eu){r();const a=u.slice(o+1);e?.(a,[o],!0);break}const i=Gn(t);if(i){if(r(),!D)continue;const[a,l,C]=i;if(C)for(let c=0;c<a.length;c+=1){r();const F=c===a.length-1;n=D(a[c],F?l:void 0,[o,c+1,F])}else n=D(a,l,[o])}else r(t,[o])&&e?.([t],[o])}r()},"$$2"),Un=s((u,D)=>{for(const[e,n,r]of D.reverse()){if(n){const o=u[e];let t=o.slice(0,n);if(r||(t+=o.slice(n+1)),t!=="-"){u[e]=t;continue}}u.splice(e,1)}},"E$1"),zn=s((u,D=process.argv.slice(2),{ignore:e}={})=>{const n=[],r=Mn(u),o={},t=[];return t[Eu]=[],Wn(D,{onFlag(i,a,l){const C=tu(r,i);if(!e?.(C?$n:vn,i,a)){if(C){const[c,F]=r[i],f=Pn(F,a),d=s((E,p)=>{n.push(l),p&&n.push(p),c.push(kn(F,E||""))},"p");return f===void 0?d:d(f)}tu(o,i)||(o[i]=[]),o[i].push(a===void 0?!0:a),n.push(l)}},onArgument(i,a,l){e?.(xn,D[a[0]])||(t.push(...i),l?(t[Eu]=i,D.splice(a[0])):n.push(a))}}),Un(D,n),{flags:jn(u,r),unknownFlags:o,_:t}},"U$2");var qn=Object.create,pu=Object.defineProperty,Hn=Object.defineProperties,Yn=Object.getOwnPropertyDescriptor,Kn=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Jn=Object.getPrototypeOf,fe=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,de=s((u,D,e)=>D in u?pu(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,"W$2"),hu=s((u,D)=>{for(var e in D||(D={}))fe.call(D,e)&&de(u,e,D[e]);if(Ce)for(var e of Ce(D))Zn.call(D,e)&&de(u,e,D[e]);return u},"p$1"),Uu=s((u,D)=>Hn(u,Kn(D)),"c"),Xn=s(u=>pu(u,"__esModule",{value:!0}),"nD$1"),Qn=s((u,D)=>()=>(u&&(D=u(u=0)),D),"rD$1"),ur=s((u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports),"iD$1"),Dr=s((u,D,e,n)=>{if(D&&typeof D=="object"||typeof D=="function")for(let r of Vn(D))!fe.call(u,r)&&r!=="default"&&pu(u,r,{get:s(()=>D[r],"get"),enumerable:!(n=Yn(D,r))||n.enumerable});return u},"oD$1"),er=s((u,D)=>Dr(Xn(pu(u!=null?qn(Jn(u)):{},"default",{value:u,enumerable:!0})),u),"BD$1"),O=Qn(()=>{}),tr=ur((u,D)=>{O(),D.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\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]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\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-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\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[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});O(),O(),O();var nr=s(u=>{var D,e,n;let r=(D=process.stdout.columns)!=null?D:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(r)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:r}:{columns:(e=u.columns)!=null?e:[],stdoutColumns:(n=u.stdoutColumns)!=null?n:r}},"v$1");O(),O(),O(),O(),O();function rr({onlyFirst:u=!1}={}){let 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")}s(rr,"w$2");function Ee(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(rr(),"")}s(Ee,"d$2"),O();function or(u){return Number.isInteger(u)?u>=4352&&(u<=4447||u===9001||u===9002||11904<=u&&u<=12871&&u!==12351||12880<=u&&u<=19903||19968<=u&&u<=42182||43360<=u&&u<=43388||44032<=u&&u<=55203||63744<=u&&u<=64255||65040<=u&&u<=65049||65072<=u&&u<=65131||65281<=u&&u<=65376||65504<=u&&u<=65510||110592<=u&&u<=110593||127488<=u&&u<=127569||131072<=u&&u<=262141):!1}s(or,"y$3");var sr=er(tr());function N(u){if(typeof u!="string"||u.length===0||(u=Ee(u),u.length===0))return 0;u=u.replace((0,sr.default)()," ");let D=0;for(let e=0;e<u.length;e++){let n=u.codePointAt(e);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&e++,D+=or(n)?2:1)}return D}s(N,"g$1");var pe=s(u=>Math.max(...u.split(`
3
- `).map(N)),"b$2"),ir=s(u=>{let D=[];for(let e of u){let{length:n}=e,r=n-D.length;for(let o=0;o<r;o+=1)D.push(0);for(let o=0;o<n;o+=1){let t=pe(e[o]);t>D[o]&&(D[o]=t)}}return D},"k$1");O();var he=/^\d+%$/,me={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},ar=s((u,D)=>{var e;let n=[];for(let r=0;r<u.length;r+=1){let o=(e=D[r])!=null?e:"auto";if(typeof o=="number"||o==="auto"||o==="content-width"||typeof o=="string"&&he.test(o)){n.push(Uu(hu({},me),{width:o,contentWidth:u[r]}));continue}if(o&&typeof o=="object"){let t=Uu(hu(hu({},me),o),{contentWidth:u[r]});t.horizontalPadding=t.paddingLeft+t.paddingRight,n.push(t);continue}throw new Error(`Invalid column width: ${JSON.stringify(o)}`)}return n},"sD$1");function cr(u,D){for(let e of u){let{width:n}=e;if(n==="content-width"&&(e.width=e.contentWidth),n==="auto"){let a=Math.min(20,e.contentWidth);e.width=a,e.autoOverflow=e.contentWidth-a}if(typeof n=="string"&&he.test(n)){let a=Number.parseFloat(n.slice(0,-1))/100;e.width=Math.floor(D*a)-(e.paddingLeft+e.paddingRight)}let{horizontalPadding:r}=e,o=1,t=o+r;if(t>=D){let a=t-D,l=Math.ceil(e.paddingLeft/r*a),C=a-l;e.paddingLeft-=l,e.paddingRight-=C,e.horizontalPadding=e.paddingLeft+e.paddingRight}e.paddingLeftString=e.paddingLeft?" ".repeat(e.paddingLeft):"",e.paddingRightString=e.paddingRight?" ".repeat(e.paddingRight):"";let i=D-e.horizontalPadding;e.width=Math.max(Math.min(e.width,i),o)}}s(cr,"aD$1");var ge=s(()=>Object.assign([],{columns:0}),"G$1");function lr(u,D){let e=[ge()],[n]=e;for(let r of u){let o=r.width+r.horizontalPadding;n.columns+o>D&&(n=ge(),e.push(n)),n.push(r),n.columns+=o}for(let r of e){let o=r.reduce((F,f)=>F+f.width+f.horizontalPadding,0),t=D-o;if(t===0)continue;let i=r.filter(F=>"autoOverflow"in F),a=i.filter(F=>F.autoOverflow>0),l=a.reduce((F,f)=>F+f.autoOverflow,0),C=Math.min(l,t);for(let F of a){let f=Math.floor(F.autoOverflow/l*C);F.width+=f,t-=f}let c=Math.floor(t/i.length);for(let F=0;F<i.length;F+=1){let f=i[F];F===i.length-1?f.width+=t:f.width+=c,t-=c}}return e}s(lr,"lD$1");function Fr(u,D,e){let n=ar(e,D);return cr(n,u),lr(n,u)}s(Fr,"Z$2"),O(),O(),O();var zu=10,Be=s((u=0)=>D=>`\x1B[${D+u}m`,"U$1"),be=s((u=0)=>D=>`\x1B[${38+u};5;${D}m`,"V$3"),ye=s((u=0)=>(D,e,n)=>`\x1B[${38+u};2;${D};${e};${n}m`,"Y$1");function Cr(){let u=new Map,D={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],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};D.color.gray=D.color.blackBright,D.bgColor.bgGray=D.bgColor.bgBlackBright,D.color.grey=D.color.blackBright,D.bgColor.bgGrey=D.bgColor.bgBlackBright;for(let[e,n]of Object.entries(D)){for(let[r,o]of Object.entries(n))D[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[r]=D[r],u.set(o[0],o[1]);Object.defineProperty(D,e,{value:n,enumerable:!1})}return Object.defineProperty(D,"codes",{value:u,enumerable:!1}),D.color.close="\x1B[39m",D.bgColor.close="\x1B[49m",D.color.ansi=Be(),D.color.ansi256=be(),D.color.ansi16m=ye(),D.bgColor.ansi=Be(zu),D.bgColor.ansi256=be(zu),D.bgColor.ansi16m=ye(zu),Object.defineProperties(D,{rgbToAnsi256:{value:s((e,n,r)=>e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5),"value"),enumerable:!1},hexToRgb:{value:s(e=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(e.toString(16));if(!n)return[0,0,0];let{colorString:r}=n.groups;r.length===3&&(r=r.split("").map(t=>t+t).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},"value"),enumerable:!1},hexToAnsi256:{value:s(e=>D.rgbToAnsi256(...D.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value:s(e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let n,r,o;if(e>=232)n=((e-232)*10+8)/255,r=n,o=n;else{e-=16;let a=e%36;n=Math.floor(e/36)/5,r=Math.floor(a/6)/5,o=a%6/5}let t=Math.max(n,r,o)*2;if(t===0)return 30;let i=30+(Math.round(o)<<2|Math.round(r)<<1|Math.round(n));return t===2&&(i+=60),i},"value"),enumerable:!1},rgbToAnsi:{value:s((e,n,r)=>D.ansi256ToAnsi(D.rgbToAnsi256(e,n,r)),"value"),enumerable:!1},hexToAnsi:{value:s(e=>D.ansi256ToAnsi(D.hexToAnsi256(e)),"value"),enumerable:!1}}),D}s(Cr,"AD");var fr=Cr(),dr=fr,mu=new Set(["\x1B","\x9B"]),Er=39,qu="\x07",Ae="[",pr="]",we="m",Hu=`${pr}8;;`,$e=s(u=>`${mu.values().next().value}${Ae}${u}${we}`,"J$2"),ve=s(u=>`${mu.values().next().value}${Hu}${u}${qu}`,"Q$2"),hr=s(u=>u.split(" ").map(D=>N(D)),"hD$1"),Yu=s((u,D,e)=>{let n=[...D],r=!1,o=!1,t=N(Ee(u[u.length-1]));for(let[i,a]of n.entries()){let l=N(a);if(t+l<=e?u[u.length-1]+=a:(u.push(a),t=0),mu.has(a)&&(r=!0,o=n.slice(i+1).join("").startsWith(Hu)),r){o?a===qu&&(r=!1,o=!1):a===we&&(r=!1);continue}t+=l,t===e&&i<n.length-1&&(u.push(""),t=0)}!t&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"S$2"),mr=s(u=>{let D=u.split(" "),e=D.length;for(;e>0&&!(N(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},"cD"),gr=s((u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let n="",r,o,t=hr(u),i=[""];for(let[l,C]of u.split(" ").entries()){e.trim!==!1&&(i[i.length-1]=i[i.length-1].trimStart());let c=N(i[i.length-1]);if(l!==0&&(c>=D&&(e.wordWrap===!1||e.trim===!1)&&(i.push(""),c=0),(c>0||e.trim===!1)&&(i[i.length-1]+=" ",c++)),e.hard&&t[l]>D){let F=D-c,f=1+Math.floor((t[l]-F-1)/D);Math.floor((t[l]-1)/D)<f&&i.push(""),Yu(i,C,D);continue}if(c+t[l]>D&&c>0&&t[l]>0){if(e.wordWrap===!1&&c<D){Yu(i,C,D);continue}i.push("")}if(c+t[l]>D&&e.wordWrap===!1){Yu(i,C,D);continue}i[i.length-1]+=C}e.trim!==!1&&(i=i.map(l=>mr(l)));let a=[...i.join(`
4
- `)];for(let[l,C]of a.entries()){if(n+=C,mu.has(C)){let{groups:F}=new RegExp(`(?:\\${Ae}(?<code>\\d+)m|\\${Hu}(?<uri>.*)${qu})`).exec(a.slice(l).join(""))||{groups:{}};if(F.code!==void 0){let f=Number.parseFloat(F.code);r=f===Er?void 0:f}else F.uri!==void 0&&(o=F.uri.length===0?void 0:F.uri)}let c=dr.codes.get(Number(r));a[l+1]===`
5
- `?(o&&(n+=ve("")),r&&c&&(n+=$e(c))):C===`
6
- `&&(r&&c&&(n+=$e(r)),o&&(n+=ve(o)))}return n},"dD");function Br(u,D,e){return String(u).normalize().replace(/\r\n/g,`
2
+ var Ht=Object.defineProperty;var o=(u,e)=>Ht(u,"name",{value:e,configurable:!0});import Pu from"tty";import{Buffer as Yt}from"node:buffer";import Y from"node:path";import Le,{ChildProcess as Vt}from"node:child_process";import v,{stdin as Ge,stdout as qe}from"node:process";import Kt from"child_process";import V from"path";import Ru from"fs";import{fileURLToPath as We}from"node:url";import Jt,{constants as Ue}from"node:os";import ze from"assert";import He from"events";import{createWriteStream as Xt,createReadStream as Zt}from"node:fs";import Qt from"buffer";import _u from"stream";import Ye from"util";import{debuglog as un}from"node:util";import*as cu from"node:readline";import Ve from"node:readline";import{WriteStream as en}from"node:tty";import I from"fs/promises";import Ke from"os";import Dn from"https";import tn from"net";import nn from"tls";import rn,{fileURLToPath as on,pathToFileURL as sn}from"url";const an="known-flag",cn="unknown-flag",ln="argument",{stringify:eu}=JSON,Fn=/\B([A-Z])/g,Cn=o(u=>u.replace(Fn,"-$1").toLowerCase(),"v$2"),{hasOwnProperty:fn}=Object.prototype,Du=o((u,e)=>fn.call(u,e),"w$3"),dn=o(u=>Array.isArray(u),"L$4"),Je=o(u=>typeof u=="function"?[u,!1]:dn(u)?[u[0],!0]:Je(u.type),"b$2"),En=o((u,e)=>u===Boolean?e!=="false":e,"d$3"),pn=o((u,e)=>typeof e=="boolean"?e:u===Number&&e===""?Number.NaN:u(e),"m$3"),hn=/[\s.:=]/,mn=o(u=>{const e=`Flag name ${eu(u)}`;if(u.length===0)throw new Error(`${e} cannot be empty`);if(u.length===1)throw new Error(`${e} must be longer than a character`);const t=u.match(hn);if(t)throw new Error(`${e} cannot contain ${eu(t?.[0])}`)},"B$1"),gn=o(u=>{const e={},t=o((n,r)=>{if(Du(e,n))throw new Error(`Duplicate flags named ${eu(n)}`);e[n]=r},"r");for(const n in u){if(!Du(u,n))continue;mn(n);const r=u[n],s=[[],...Je(r),r];t(n,s);const D=Cn(n);if(n!==D&&t(D,s),"alias"in r&&typeof r.alias=="string"){const{alias:a}=r,i=`Flag alias ${eu(a)} for flag ${eu(n)}`;if(a.length===0)throw new Error(`${i} cannot be empty`);if(a.length>1)throw new Error(`${i} must be a single character`);t(a,s)}}return e},"K$1"),Bn=o((u,e)=>{const t={};for(const n in u){if(!Du(u,n))continue;const[r,,s,D]=e[n];if(r.length===0&&"default"in D){let{default:a}=D;typeof a=="function"&&(a=a()),t[n]=a}else t[n]=s?r:r.pop()}return t},"_$3"),lu="--",bn=/[.:=]/,yn=/^-{1,2}\w/,An=o(u=>{if(!yn.test(u))return;const e=!u.startsWith(lu);let t=u.slice(e?1:2),n;const r=t.match(bn);if(r){const{index:s}=r;n=t.slice(s+1),t=t.slice(0,s)}return[t,n,e]},"N$1"),wn=o((u,{onFlag:e,onArgument:t})=>{let n;const r=o((s,D)=>{if(typeof n!="function")return!0;n(s,D),n=void 0},"o");for(let s=0;s<u.length;s+=1){const D=u[s];if(D===lu){r();const i=u.slice(s+1);t?.(i,[s],!0);break}const a=An(D);if(a){if(r(),!e)continue;const[i,c,l]=a;if(l)for(let C=0;C<i.length;C+=1){r();const F=C===i.length-1;n=e(i[C],F?c:void 0,[s,C+1,F])}else n=e(i,c,[s])}else r(D,[s])&&t?.([D],[s])}r()},"$$2"),vn=o((u,e)=>{for(const[t,n,r]of e.reverse()){if(n){const s=u[t];let D=s.slice(0,n);if(r||(D+=s.slice(n+1)),D!=="-"){u[t]=D;continue}}u.splice(t,1)}},"E$1"),$n=o((u,e=process.argv.slice(2),{ignore:t}={})=>{const n=[],r=gn(u),s={},D=[];return D[lu]=[],wn(e,{onFlag(a,i,c){const l=Du(r,a);if(!t?.(l?an:cn,a,i)){if(l){const[C,F]=r[a],E=En(F,i),f=o((g,d)=>{n.push(c),d&&n.push(d),C.push(pn(F,g||""))},"p");return E===void 0?f:f(E)}Du(s,a)||(s[a]=[]),s[a].push(i===void 0?!0:i),n.push(c)}},onArgument(a,i,c){t?.(ln,e[i[0]])||(D.push(...a),c?(D[lu]=a,e.splice(i[0])):n.push(i))}}),vn(e,n),{flags:Bn(u,r),unknownFlags:s,_:D}},"U$2");var xn=Object.create,Fu=Object.defineProperty,Sn=Object.defineProperties,On=Object.getOwnPropertyDescriptor,Tn=Object.getOwnPropertyDescriptors,In=Object.getOwnPropertyNames,Xe=Object.getOwnPropertySymbols,Pn=Object.getPrototypeOf,Ze=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Qe=o((u,e,t)=>e in u?Fu(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,"W$2"),Cu=o((u,e)=>{for(var t in e||(e={}))Ze.call(e,t)&&Qe(u,t,e[t]);if(Xe)for(var t of Xe(e))Rn.call(e,t)&&Qe(u,t,e[t]);return u},"p$1"),ku=o((u,e)=>Sn(u,Tn(e)),"c"),_n=o(u=>Fu(u,"__esModule",{value:!0}),"nD$1"),kn=o((u,e)=>()=>(u&&(e=u(u=0)),e),"rD$1"),Mn=o((u,e)=>()=>(e||u((e={exports:{}}).exports,e),e.exports),"iD$1"),jn=o((u,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of In(e))!Ze.call(u,r)&&r!=="default"&&Fu(u,r,{get:o(()=>e[r],"get"),enumerable:!(n=On(e,r))||n.enumerable});return u},"oD$1"),Nn=o((u,e)=>jn(_n(Fu(u!=null?xn(Pn(u)):{},"default",{value:u,enumerable:!0})),u),"BD$1"),T=kn(()=>{}),Ln=Mn((u,e)=>{T(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\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]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\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-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\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[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});T(),T(),T();var Gn=o(u=>{var e,t,n;let r=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(r)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:r}:{columns:(t=u.columns)!=null?t:[],stdoutColumns:(n=u.stdoutColumns)!=null?n:r}},"v$1");T(),T(),T(),T(),T();function qn({onlyFirst:u=!1}={}){let e=["[\\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(e,u?void 0:"g")}o(qn,"w$2");function uD(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(qn(),"")}o(uD,"d$2"),T();function Wn(u){return Number.isInteger(u)?u>=4352&&(u<=4447||u===9001||u===9002||11904<=u&&u<=12871&&u!==12351||12880<=u&&u<=19903||19968<=u&&u<=42182||43360<=u&&u<=43388||44032<=u&&u<=55203||63744<=u&&u<=64255||65040<=u&&u<=65049||65072<=u&&u<=65131||65281<=u&&u<=65376||65504<=u&&u<=65510||110592<=u&&u<=110593||127488<=u&&u<=127569||131072<=u&&u<=262141):!1}o(Wn,"y$3");var Un=Nn(Ln());function q(u){if(typeof u!="string"||u.length===0||(u=uD(u),u.length===0))return 0;u=u.replace((0,Un.default)()," ");let e=0;for(let t=0;t<u.length;t++){let n=u.codePointAt(t);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&t++,e+=Wn(n)?2:1)}return e}o(q,"g");var eD=o(u=>Math.max(...u.split(`
3
+ `).map(q)),"b$1"),zn=o(u=>{let e=[];for(let t of u){let{length:n}=t,r=n-e.length;for(let s=0;s<r;s+=1)e.push(0);for(let s=0;s<n;s+=1){let D=eD(t[s]);D>e[s]&&(e[s]=D)}}return e},"k$2");T();var DD=/^\d+%$/,tD={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Hn=o((u,e)=>{var t;let n=[];for(let r=0;r<u.length;r+=1){let s=(t=e[r])!=null?t:"auto";if(typeof s=="number"||s==="auto"||s==="content-width"||typeof s=="string"&&DD.test(s)){n.push(ku(Cu({},tD),{width:s,contentWidth:u[r]}));continue}if(s&&typeof s=="object"){let D=ku(Cu(Cu({},tD),s),{contentWidth:u[r]});D.horizontalPadding=D.paddingLeft+D.paddingRight,n.push(D);continue}throw new Error(`Invalid column width: ${JSON.stringify(s)}`)}return n},"sD$1");function Yn(u,e){for(let t of u){let{width:n}=t;if(n==="content-width"&&(t.width=t.contentWidth),n==="auto"){let i=Math.min(20,t.contentWidth);t.width=i,t.autoOverflow=t.contentWidth-i}if(typeof n=="string"&&DD.test(n)){let i=Number.parseFloat(n.slice(0,-1))/100;t.width=Math.floor(e*i)-(t.paddingLeft+t.paddingRight)}let{horizontalPadding:r}=t,s=1,D=s+r;if(D>=e){let i=D-e,c=Math.ceil(t.paddingLeft/r*i),l=i-c;t.paddingLeft-=c,t.paddingRight-=l,t.horizontalPadding=t.paddingLeft+t.paddingRight}t.paddingLeftString=t.paddingLeft?" ".repeat(t.paddingLeft):"",t.paddingRightString=t.paddingRight?" ".repeat(t.paddingRight):"";let a=e-t.horizontalPadding;t.width=Math.max(Math.min(t.width,a),s)}}o(Yn,"aD$1");var nD=o(()=>Object.assign([],{columns:0}),"G$2");function Vn(u,e){let t=[nD()],[n]=t;for(let r of u){let s=r.width+r.horizontalPadding;n.columns+s>e&&(n=nD(),t.push(n)),n.push(r),n.columns+=s}for(let r of t){let s=r.reduce((F,E)=>F+E.width+E.horizontalPadding,0),D=e-s;if(D===0)continue;let a=r.filter(F=>"autoOverflow"in F),i=a.filter(F=>F.autoOverflow>0),c=i.reduce((F,E)=>F+E.autoOverflow,0),l=Math.min(c,D);for(let F of i){let E=Math.floor(F.autoOverflow/c*l);F.width+=E,D-=E}let C=Math.floor(D/a.length);for(let F=0;F<a.length;F+=1){let E=a[F];F===a.length-1?E.width+=D:E.width+=C,D-=C}}return t}o(Vn,"lD");function Kn(u,e,t){let n=Hn(t,e);return Yn(n,u),Vn(n,u)}o(Kn,"Z$1"),T(),T(),T();var Mu=10,rD=o((u=0)=>e=>`\x1B[${e+u}m`,"U$1"),oD=o((u=0)=>e=>`\x1B[${38+u};5;${e}m`,"V$3"),sD=o((u=0)=>(e,t,n)=>`\x1B[${38+u};2;${e};${t};${n}m`,"Y");function Jn(){let u=new Map,e={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],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,n]of Object.entries(e)){for(let[r,s]of Object.entries(n))e[r]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[r]=e[r],u.set(s[0],s[1]);Object.defineProperty(e,t,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:u,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=rD(),e.color.ansi256=oD(),e.color.ansi16m=sD(),e.bgColor.ansi=rD(Mu),e.bgColor.ansi256=oD(Mu),e.bgColor.ansi16m=sD(Mu),Object.defineProperties(e,{rgbToAnsi256:{value:o((t,n,r)=>t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5),"value"),enumerable:!1},hexToRgb:{value:o(t=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!n)return[0,0,0];let{colorString:r}=n.groups;r.length===3&&(r=r.split("").map(D=>D+D).join(""));let s=Number.parseInt(r,16);return[s>>16&255,s>>8&255,s&255]},"value"),enumerable:!1},hexToAnsi256:{value:o(t=>e.rgbToAnsi256(...e.hexToRgb(t)),"value"),enumerable:!1},ansi256ToAnsi:{value:o(t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,r,s;if(t>=232)n=((t-232)*10+8)/255,r=n,s=n;else{t-=16;let i=t%36;n=Math.floor(t/36)/5,r=Math.floor(i/6)/5,s=i%6/5}let D=Math.max(n,r,s)*2;if(D===0)return 30;let a=30+(Math.round(s)<<2|Math.round(r)<<1|Math.round(n));return D===2&&(a+=60),a},"value"),enumerable:!1},rgbToAnsi:{value:o((t,n,r)=>e.ansi256ToAnsi(e.rgbToAnsi256(t,n,r)),"value"),enumerable:!1},hexToAnsi:{value:o(t=>e.ansi256ToAnsi(e.hexToAnsi256(t)),"value"),enumerable:!1}}),e}o(Jn,"AD$1");var Xn=Jn(),Zn=Xn,fu=new Set(["\x1B","\x9B"]),Qn=39,ju="\x07",iD="[",ur="]",aD="m",Nu=`${ur}8;;`,cD=o(u=>`${fu.values().next().value}${iD}${u}${aD}`,"J$2"),lD=o(u=>`${fu.values().next().value}${Nu}${u}${ju}`,"Q$1"),er=o(u=>u.split(" ").map(e=>q(e)),"hD$1"),Lu=o((u,e,t)=>{let n=[...e],r=!1,s=!1,D=q(uD(u[u.length-1]));for(let[a,i]of n.entries()){let c=q(i);if(D+c<=t?u[u.length-1]+=i:(u.push(i),D=0),fu.has(i)&&(r=!0,s=n.slice(a+1).join("").startsWith(Nu)),r){s?i===ju&&(r=!1,s=!1):i===aD&&(r=!1);continue}D+=c,D===t&&a<n.length-1&&(u.push(""),D=0)}!D&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"S$2"),Dr=o(u=>{let e=u.split(" "),t=e.length;for(;t>0&&!(q(e[t-1])>0);)t--;return t===e.length?u:e.slice(0,t).join(" ")+e.slice(t).join("")},"cD$1"),tr=o((u,e,t={})=>{if(t.trim!==!1&&u.trim()==="")return"";let n="",r,s,D=er(u),a=[""];for(let[c,l]of u.split(" ").entries()){t.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let C=q(a[a.length-1]);if(c!==0&&(C>=e&&(t.wordWrap===!1||t.trim===!1)&&(a.push(""),C=0),(C>0||t.trim===!1)&&(a[a.length-1]+=" ",C++)),t.hard&&D[c]>e){let F=e-C,E=1+Math.floor((D[c]-F-1)/e);Math.floor((D[c]-1)/e)<E&&a.push(""),Lu(a,l,e);continue}if(C+D[c]>e&&C>0&&D[c]>0){if(t.wordWrap===!1&&C<e){Lu(a,l,e);continue}a.push("")}if(C+D[c]>e&&t.wordWrap===!1){Lu(a,l,e);continue}a[a.length-1]+=l}t.trim!==!1&&(a=a.map(c=>Dr(c)));let i=[...a.join(`
4
+ `)];for(let[c,l]of i.entries()){if(n+=l,fu.has(l)){let{groups:F}=new RegExp(`(?:\\${iD}(?<code>\\d+)m|\\${Nu}(?<uri>.*)${ju})`).exec(i.slice(c).join(""))||{groups:{}};if(F.code!==void 0){let E=Number.parseFloat(F.code);r=E===Qn?void 0:E}else F.uri!==void 0&&(s=F.uri.length===0?void 0:F.uri)}let C=Zn.codes.get(Number(r));i[c+1]===`
5
+ `?(s&&(n+=lD("")),r&&C&&(n+=cD(C))):l===`
6
+ `&&(r&&C&&(n+=cD(r)),s&&(n+=lD(s)))}return n},"dD");function nr(u,e,t){return String(u).normalize().replace(/\r\n/g,`
7
7
  `).split(`
8
- `).map(n=>gr(n,D,e)).join(`
9
- `)}s(Br,"T$3");var xe=s(u=>Array.from({length:u}).fill(""),"X$1");function br(u,D){let e=[],n=0;for(let r of u){let o=0,t=r.map(a=>{var l;let C=(l=D[n])!=null?l:"";n+=1,a.preprocess&&(C=a.preprocess(C)),pe(C)>a.width&&(C=Br(C,a.width,{hard:!0}));let c=C.split(`
10
- `);if(a.postprocess){let{postprocess:F}=a;c=c.map((f,d)=>F.call(a,f,d))}return a.paddingTop&&c.unshift(...xe(a.paddingTop)),a.paddingBottom&&c.push(...xe(a.paddingBottom)),c.length>o&&(o=c.length),Uu(hu({},a),{lines:c})}),i=[];for(let a=0;a<o;a+=1){let l=t.map(C=>{var c;let F=(c=C.lines[a])!=null?c:"",f=Number.isFinite(C.width)?" ".repeat(C.width-N(F)):"",d=C.paddingLeftString;return C.align==="right"&&(d+=f),d+=F,C.align==="left"&&(d+=f),d+C.paddingRightString}).join("");i.push(l)}e.push(i.join(`
11
- `))}return e.join(`
12
- `)}s(br,"P$2");function yr(u,D){if(!u||u.length===0)return"";let e=ir(u),n=e.length;if(n===0)return"";let{stdoutColumns:r,columns:o}=nr(D);if(o.length>n)throw new Error(`${o.length} columns defined, but only ${n} columns found`);let t=Fr(r,o,e);return u.map(i=>br(t,i)).join(`
13
- `)}s(yr,"mD"),O();var Ar=["<",">","=",">=","<="];function wr(u){if(!Ar.includes(u))throw new TypeError(`Invalid breakpoint operator: ${u}`)}s(wr,"xD$1");function $r(u){let D=Object.keys(u).map(e=>{let[n,r]=e.split(" ");wr(n);let o=Number.parseInt(r,10);if(Number.isNaN(o))throw new TypeError(`Invalid breakpoint value: ${r}`);let t=u[e];return{operator:n,breakpoint:o,value:t}}).sort((e,n)=>n.breakpoint-e.breakpoint);return e=>{var n;return(n=D.find(({operator:r,breakpoint:o})=>r==="="&&e===o||r===">"&&e>o||r==="<"&&e<o||r===">="&&e>=o||r==="<="&&e<=o))==null?void 0:n.value}}s($r,"wD$1");const vr=s(u=>u.replace(/[\W_]([a-z\d])?/gi,(D,e)=>e?e.toUpperCase():""),"S$1"),xr=s(u=>u.replace(/\B([A-Z])/g,"-$1").toLowerCase(),"q$1"),Sr={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:s(u=>u.trim(),"preprocess")},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function Or(u){let D=!1;return{type:"table",data:{tableData:Object.keys(u).sort((e,n)=>e.localeCompare(n)).map(e=>{const n=u[e],r="alias"in n;return r&&(D=!0),{name:e,flag:n,flagFormatted:`--${xr(e)}`,aliasesEnabled:D,aliasFormatted:r?`-${n.alias}`:void 0}}).map(e=>(e.aliasesEnabled=D,[{type:"flagName",data:e},{type:"flagDescription",data:e}])),tableBreakpoints:Sr}}}s(Or,"D");const Se=s(u=>!u||(u.version??(u.help?u.help.version:void 0)),"A$1"),Oe=s(u=>{const D="parent"in u&&u.parent?.name;return(D?`${D} `:"")+u.name},"C$1");function Tr(u){const D=[];u.name&&D.push(Oe(u));const e=Se(u)??("parent"in u&&Se(u.parent));if(e&&D.push(`v${e}`),D.length!==0)return{id:"name",type:"text",data:`${D.join(" ")}
14
- `}}s(Tr,"R$1");function Ir(u){const{help:D}=u;if(!(!D||!D.description))return{id:"description",type:"text",data:`${D.description}
15
- `}}s(Ir,"L$1");function Pr(u){const D=u.help||{};if("usage"in D)return D.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(D.usage)?D.usage.join(`
16
- `):D.usage}}:void 0;if(u.name){const e=[],n=[Oe(u)];if(u.flags&&Object.keys(u.flags).length>0&&n.push("[flags...]"),u.parameters&&u.parameters.length>0){const{parameters:r}=u,o=r.indexOf("--"),t=o>-1&&r.slice(o+1).some(i=>i.startsWith("<"));n.push(r.map(i=>i!=="--"?i:t?"--":"[--]").join(" "))}if(n.length>1&&e.push(n.join(" ")),"commands"in u&&u.commands?.length&&e.push(`${u.name} <command>`),e.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:e.join(`
17
- `)}}}}s(Pr,"T$2");function kr(u){return!("commands"in u)||!u.commands?.length?void 0:{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u.commands.map(D=>[D.options.name,D.options.help?D.options.help.description:""]),tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}s(kr,"_$1");function _r(u){if(!(!u.flags||Object.keys(u.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Or(u.flags),indentBody:0}}}s(_r,"k");function Rr(u){const{help:D}=u;if(!D||!D.examples||D.examples.length===0)return;let{examples:e}=D;if(Array.isArray(e)&&(e=e.join(`
18
- `)),e)return{id:"examples",type:"section",data:{title:"Examples:",body:e}}}s(Rr,"F");function Mr(u){if(!("alias"in u)||!u.alias)return;const{alias:D}=u;return{id:"aliases",type:"section",data:{title:"Aliases:",body:Array.isArray(D)?D.join(", "):D}}}s(Mr,"H");const jr=s(u=>[Tr,Ir,Pr,kr,_r,Rr,Mr].map(D=>D(u)).filter(Boolean),"U"),Nr=Lu.WriteStream.prototype.hasColors();let Lr=(uu=class{text(D){return D}bold(D){return Nr?`\x1B[1m${D}\x1B[22m`:D.toLocaleUpperCase()}indentText({text:D,spaces:e}){return D.replace(/^/gm," ".repeat(e))}heading(D){return this.bold(D)}section({title:D,body:e,indentBody:n=2}){return`${(D?`${this.heading(D)}
19
- `:"")+(e?this.indentText({text:this.render(e),spaces:n}):"")}
20
- `}table({tableData:D,tableOptions:e,tableBreakpoints:n}){return yr(D.map(r=>r.map(o=>this.render(o))),n?$r(n):e)}flagParameter(D){return D===Boolean?"":D===String?"<string>":D===Number?"<number>":Array.isArray(D)?this.flagParameter(D[0]):"<value>"}flagOperator(D){return" "}flagName(D){const{flag:e,flagFormatted:n,aliasesEnabled:r,aliasFormatted:o}=D;let t="";if(o?t+=`${o}, `:r&&(t+=" "),t+=n,"placeholder"in e&&typeof e.placeholder=="string")t+=`${this.flagOperator(D)}${e.placeholder}`;else{const i=this.flagParameter("type"in e?e.type:e);i&&(t+=`${this.flagOperator(D)}${i}`)}return t}flagDefault(D){return JSON.stringify(D)}flagDescription({flag:D}){let e="description"in D?D.description??"":"";if("default"in D){let{default:n}=D;typeof n=="function"&&(n=n()),n&&(e+=` (default: ${this.flagDefault(n)})`)}return e}render(D){if(typeof D=="string")return D;if(Array.isArray(D))return D.map(e=>this.render(e)).join(`
21
- `);if("type"in D&&this[D.type]){const e=this[D.type];if(typeof e=="function")return e.call(this,D.data)}throw new Error(`Invalid node type: ${JSON.stringify(D)}`)}},s(uu,"M"),uu);const Ku=/^[\w.-]+$/,{stringify:_}=JSON,Gr=/[|\\{}()[\]^$+*?.]/;function Vu(u){const D=[];let e,n;for(const r of u){if(n)throw new Error(`Invalid parameter: Spread parameter ${_(n)} must be last`);const o=r[0],t=r[r.length-1];let i;if(o==="<"&&t===">"&&(i=!0,e))throw new Error(`Invalid parameter: Required parameter ${_(r)} cannot come after optional parameter ${_(e)}`);if(o==="["&&t==="]"&&(i=!1,e=r),i===void 0)throw new Error(`Invalid parameter: ${_(r)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let a=r.slice(1,-1);const l=a.slice(-3)==="...";l&&(n=r,a=a.slice(0,-3));const C=a.match(Gr);if(C)throw new Error(`Invalid parameter: ${_(r)}. Invalid character found ${_(C[0])}`);D.push({name:a,required:i,spread:l})}return D}s(Vu,"w$1");function Ju(u,D,e,n){for(let r=0;r<D.length;r+=1){const{name:o,required:t,spread:i}=D[r],a=vr(o);if(a in u)throw new Error(`Invalid parameter: ${_(o)} is used more than once.`);const l=i?e.slice(r):e[r];if(i&&(r=D.length),t&&(!l||i&&l.length===0))return console.error(`Error: Missing required parameter ${_(o)}
22
- `),n(),process.exit(1);u[a]=l}}s(Ju,"b$1");function Wr(u){return u===void 0||u!==!1}s(Wr,"W$1");function Te(u,D,e,n){const r={...D.flags},o=D.version;o&&(r.version={type:Boolean,description:"Show version"});const{help:t}=D,i=Wr(t);i&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const a=zn(r,n,{ignore:D.ignoreArgv}),l=s(()=>{console.log(D.version)},"f");if(o&&a.flags.version===!0)return l(),process.exit(0);const C=new Lr,c=i&&t?.render?t.render:d=>C.render(d),F=s(d=>{const E=jr({...D,...d?{help:d}:{},flags:r});console.log(c(E,C))},"u");if(i&&a.flags.help===!0)return F(),process.exit(0);if(D.parameters){let{parameters:d}=D,E=a._;const p=d.indexOf("--"),m=d.slice(p+1),$=Object.create(null);if(p>-1&&m.length>0){d=d.slice(0,p);const P=a._["--"];E=E.slice(0,-P.length||void 0),Ju($,Vu(d),E,F),Ju($,Vu(m),P,F)}else Ju($,Vu(d),E,F);Object.assign(a._,$)}const f={...a,showVersion:l,showHelp:F};return typeof e=="function"&&e(f),{command:u,...f}}s(Te,"x$1");function Ur(u,D){const e=new Map;for(const n of D){const r=[n.options.name],{alias:o}=n.options;o&&(Array.isArray(o)?r.push(...o):r.push(o));for(const t of r){if(e.has(t))throw new Error(`Duplicate command name found: ${_(t)}`);e.set(t,n)}}return e.get(u)}s(Ur,"z$1");function zr(u,D,e=process.argv.slice(2)){if(!u)throw new Error("Options is required");if("name"in u&&(!u.name||!Ku.test(u.name)))throw new Error(`Invalid script name: ${_(u.name)}`);const n=e[0];if(u.commands&&Ku.test(n)){const r=Ur(n,u.commands);if(r)return Te(r.options.name,{...r.options,parent:u},r.callback,e.slice(1))}return Te(void 0,u,D,e)}s(zr,"Z$1");function Ie(u,D){if(!u)throw new Error("Command options are required");const{name:e}=u;if(u.name===void 0)throw new Error("Command name is required");if(!Ku.test(e))throw new Error(`Invalid command name ${JSON.stringify(e)}. Command names must be one word.`);return{options:u,callback:D}}s(Ie,"G");var Pe="1.2.143",qr="Writes your git commit messages for you with AI",A=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function H(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}s(H,"getDefaultExportFromCjs");var Y={exports:{}},Zu,ke;function Hr(){if(ke)return Zu;ke=1,Zu=n,n.sync=r;var u=Gu;function D(o,t){var i=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!i||(i=i.split(";"),i.indexOf("")!==-1))return!0;for(var a=0;a<i.length;a++){var l=i[a].toLowerCase();if(l&&o.substr(-l.length).toLowerCase()===l)return!0}return!1}s(D,"checkPathExt");function e(o,t,i){return!o.isSymbolicLink()&&!o.isFile()?!1:D(t,i)}s(e,"checkStat");function n(o,t,i){u.stat(o,function(a,l){i(a,a?!1:e(l,o,t))})}s(n,"isexe");function r(o,t){return e(u.statSync(o),o,t)}return s(r,"sync"),Zu}s(Hr,"requireWindows");var Xu,_e;function Yr(){if(_e)return Xu;_e=1,Xu=D,D.sync=e;var u=Gu;function D(o,t,i){u.stat(o,function(a,l){i(a,a?!1:n(l,t))})}s(D,"isexe");function e(o,t){return n(u.statSync(o),t)}s(e,"sync");function n(o,t){return o.isFile()&&r(o,t)}s(n,"checkStat");function r(o,t){var i=o.mode,a=o.uid,l=o.gid,C=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),c=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),F=parseInt("100",8),f=parseInt("010",8),d=parseInt("001",8),E=F|f,p=i&d||i&f&&l===c||i&F&&a===C||i&E&&C===0;return p}return s(r,"checkMode"),Xu}s(Yr,"requireMode");var gu;process.platform==="win32"||A.TESTING_WINDOWS?gu=Hr():gu=Yr();var Kr=Qu;Qu.sync=Vr;function Qu(u,D,e){if(typeof D=="function"&&(e=D,D={}),!e){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,r){Qu(u,D||{},function(o,t){o?r(o):n(t)})})}gu(u,D||{},function(n,r){n&&(n.code==="EACCES"||D&&D.ignoreErrors)&&(n=null,r=!1),e(n,r)})}s(Qu,"isexe$1");function Vr(u,D){try{return gu.sync(u,D||{})}catch(e){if(D&&D.ignoreErrors||e.code==="EACCES")return!1;throw e}}s(Vr,"sync");const K=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Re=q,Jr=K?";":":",Me=Kr,je=s(u=>Object.assign(new Error(`not found: ${u}`),{code:"ENOENT"}),"getNotFoundError"),Ne=s((u,D)=>{const e=D.colon||Jr,n=u.match(/\//)||K&&u.match(/\\/)?[""]:[...K?[process.cwd()]:[],...(D.path||process.env.PATH||"").split(e)],r=K?D.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=K?r.split(e):[""];return K&&u.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:r}},"getPathInfo"),Le=s((u,D,e)=>{typeof D=="function"&&(e=D,D={}),D||(D={});const{pathEnv:n,pathExt:r,pathExtExe:o}=Ne(u,D),t=[],i=s(l=>new Promise((C,c)=>{if(l===n.length)return D.all&&t.length?C(t):c(je(u));const F=n[l],f=/^".*"$/.test(F)?F.slice(1,-1):F,d=Re.join(f,u),E=!f&&/^\.[\\\/]/.test(u)?u.slice(0,2)+d:d;C(a(E,l,0))}),"step"),a=s((l,C,c)=>new Promise((F,f)=>{if(c===r.length)return F(i(C+1));const d=r[c];Me(l+d,{pathExt:o},(E,p)=>{if(!E&&p)if(D.all)t.push(l+d);else return F(l+d);return F(a(l,C,c+1))})}),"subStep");return e?i(0).then(l=>e(null,l),e):i(0)},"which$1"),Zr=s((u,D)=>{D=D||{};const{pathEnv:e,pathExt:n,pathExtExe:r}=Ne(u,D),o=[];for(let t=0;t<e.length;t++){const i=e[t],a=/^".*"$/.test(i)?i.slice(1,-1):i,l=Re.join(a,u),C=!a&&/^\.[\\\/]/.test(u)?u.slice(0,2)+l:l;for(let c=0;c<n.length;c++){const F=C+n[c];try{if(Me.sync(F,{pathExt:r}))if(D.all)o.push(F);else return F}catch{}}}if(D.all&&o.length)return o;if(D.nothrow)return null;throw je(u)},"whichSync");var Xr=Le;Le.sync=Zr;var uD={exports:{}};const Ge=s((u={})=>{const D=u.env||process.env;return(u.platform||process.platform)!=="win32"?"PATH":Object.keys(D).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"},"pathKey$1");uD.exports=Ge,uD.exports.default=Ge;var Qr=uD.exports;const We=q,uo=Xr,Do=Qr;function Ue(u,D){const e=u.options.env||process.env,n=process.cwd(),r=u.options.cwd!=null,o=r&&process.chdir!==void 0&&!process.chdir.disabled;if(o)try{process.chdir(u.options.cwd)}catch{}let t;try{t=uo.sync(u.command,{path:e[Do({env:e})],pathExt:D?We.delimiter:void 0})}catch{}finally{o&&process.chdir(n)}return t&&(t=We.resolve(r?u.options.cwd:"",t)),t}s(Ue,"resolveCommandAttempt");function eo(u){return Ue(u)||Ue(u,!0)}s(eo,"resolveCommand$1");var to=eo,DD={};const eD=/([()\][%!^"`<>&|;, *?])/g;function no(u){return u=u.replace(eD,"^$1"),u}s(no,"escapeCommand");function ro(u,D){return u=`${u}`,u=u.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),u=u.replace(/(?=(\\+?)?)\1$/,"$1$1"),u=`"${u}"`,u=u.replace(eD,"^$1"),D&&(u=u.replace(eD,"^$1")),u}s(ro,"escapeArgument"),DD.command=no,DD.argument=ro;var oo=/^#!(.*)/;const so=oo;var io=s((u="")=>{const D=u.match(so);if(!D)return null;const[e,n]=D[0].replace(/#! ?/,"").split(" "),r=e.split("/").pop();return r==="env"?n:n?`${r} ${n}`:r},"shebangCommand$1");const tD=Gu,ao=io;function co(u){const e=Buffer.alloc(150);let n;try{n=tD.openSync(u,"r"),tD.readSync(n,e,0,150,0),tD.closeSync(n)}catch{}return ao(e.toString())}s(co,"readShebang$1");var lo=co;const Fo=q,ze=to,qe=DD,Co=lo,fo=process.platform==="win32",Eo=/\.(?:com|exe)$/i,po=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function ho(u){u.file=ze(u);const D=u.file&&Co(u.file);return D?(u.args.unshift(u.file),u.command=D,ze(u)):u.file}s(ho,"detectShebang");function mo(u){if(!fo)return u;const D=ho(u),e=!Eo.test(D);if(u.options.forceShell||e){const n=po.test(D);u.command=Fo.normalize(u.command),u.command=qe.command(u.command),u.args=u.args.map(o=>qe.argument(o,n));const r=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${r}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}s(mo,"parseNonShell");function go(u,D,e){D&&!Array.isArray(D)&&(e=D,D=null),D=D?D.slice(0):[],e=Object.assign({},e);const n={command:u,args:D,options:e,file:void 0,original:{command:u,args:D}};return e.shell?n:mo(n)}s(go,"parse$1");var Bo=go;const nD=process.platform==="win32";function rD(u,D){return Object.assign(new Error(`${D} ${u.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${D} ${u.command}`,path:u.command,spawnargs:u.args})}s(rD,"notFoundError");function bo(u,D){if(!nD)return;const e=u.emit;u.emit=function(n,r){if(n==="exit"){const o=He(r,D);if(o)return e.call(u,"error",o)}return e.apply(u,arguments)}}s(bo,"hookChildProcess");function He(u,D){return nD&&u===1&&!D.file?rD(D.original,"spawn"):null}s(He,"verifyENOENT");function yo(u,D){return nD&&u===1&&!D.file?rD(D.original,"spawnSync"):null}s(yo,"verifyENOENTSync");var Ao={hookChildProcess:bo,verifyENOENT:He,verifyENOENTSync:yo,notFoundError:rD};const Ye=Cn,oD=Bo,sD=Ao;function Ke(u,D,e){const n=oD(u,D,e),r=Ye.spawn(n.command,n.args,n.options);return sD.hookChildProcess(r,n),r}s(Ke,"spawn");function wo(u,D,e){const n=oD(u,D,e),r=Ye.spawnSync(n.command,n.args,n.options);return r.error=r.error||sD.verifyENOENTSync(r.status,n),r}s(wo,"spawnSync"),Y.exports=Ke,Y.exports.spawn=Ke,Y.exports.sync=wo,Y.exports._parse=oD,Y.exports._enoent=sD;var $o=Y.exports,vo=H($o);function xo(u){const D=typeof u=="string"?`
23
- `:10,e=typeof u=="string"?"\r":13;return u[u.length-1]===D&&(u=u.slice(0,-1)),u[u.length-1]===e&&(u=u.slice(0,-1)),u}s(xo,"stripFinalNewline");function Ve(u={}){const{env:D=process.env,platform:e=process.platform}=u;return e!=="win32"?"PATH":Object.keys(D).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}s(Ve,"pathKey");const So=s(({cwd:u=y.cwd(),path:D=y.env[Ve()],preferLocal:e=!0,execPath:n=y.execPath,addExecPath:r=!0}={})=>{const o=u instanceof URL?re(u):u,t=z.resolve(o),i=[];return e&&Oo(i,t),r&&To(i,n,t),[...i,D].join(z.delimiter)},"npmRunPath"),Oo=s((u,D)=>{let e;for(;e!==D;)u.push(z.join(D,"node_modules/.bin")),e=D,D=z.resolve(D,"..")},"applyPreferLocal"),To=s((u,D,e)=>{const n=D instanceof URL?re(D):D;u.push(z.resolve(e,n,".."))},"applyExecPath"),Io=s(({env:u=y.env,...D}={})=>{u={...u};const e=Ve({env:u});return D.path=u[e],u[e]=So(D),u},"npmRunPathEnv"),Po=s((u,D,e,n)=>{if(e==="length"||e==="prototype"||e==="arguments"||e==="caller")return;const r=Object.getOwnPropertyDescriptor(u,e),o=Object.getOwnPropertyDescriptor(D,e);!ko(r,o)&&n||Object.defineProperty(u,e,o)},"copyProperty"),ko=s(function(u,D){return u===void 0||u.configurable||u.writable===D.writable&&u.enumerable===D.enumerable&&u.configurable===D.configurable&&(u.writable||u.value===D.value)},"canCopyProperty"),_o=s((u,D)=>{const e=Object.getPrototypeOf(D);e!==Object.getPrototypeOf(u)&&Object.setPrototypeOf(u,e)},"changePrototype"),Ro=s((u,D)=>`/* Wrapped ${u}*/
24
- ${D}`,"wrappedToString"),Mo=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),jo=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),No=s((u,D,e)=>{const n=e===""?"":`with ${e.trim()}() `,r=Ro.bind(null,n,D.toString());Object.defineProperty(r,"name",jo),Object.defineProperty(u,"toString",{...Mo,value:r})},"changeToString");function Lo(u,D,{ignoreNonConfigurable:e=!1}={}){const{name:n}=u;for(const r of Reflect.ownKeys(D))Po(u,D,r,e);return _o(u,D),No(u,D,n),u}s(Lo,"mimicFunction");const Bu=new WeakMap,Je=s((u,D={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let e,n=0;const r=u.displayName||u.name||"<anonymous>",o=s(function(...t){if(Bu.set(o,++n),n===1)e=u.apply(this,t),u=null;else if(D.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return e},"onetime");return Lo(o,u),Bu.set(o,n),o},"onetime");Je.callCount=u=>{if(!Bu.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return Bu.get(u)};const Go=s(()=>{const u=Xe-Ze+1;return Array.from({length:u},Wo)},"getRealtimeSignals"),Wo=s((u,D)=>({name:`SIGRT${D+1}`,number:Ze+D,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),"getRealtimeSignal"),Ze=34,Xe=64,Uo=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],Qe=s(()=>{const u=Go();return[...Uo,...u].map(zo)},"getSignals"),zo=s(({name:u,number:D,description:e,action:n,forced:r=!1,standard:o})=>{const{signals:{[u]:t}}=oe,i=t!==void 0;return{name:u,number:i?t:D,description:e,supported:i,action:n,forced:r,standard:o}},"normalizeSignal"),qo=s(()=>{const u=Qe();return Object.fromEntries(u.map(Ho))},"getSignalsByName"),Ho=s(({name:u,number:D,description:e,supported:n,action:r,forced:o,standard:t})=>[u,{name:u,number:D,description:e,supported:n,action:r,forced:o,standard:t}],"getSignalByName"),Yo=qo(),Ko=s(()=>{const u=Qe(),D=Xe+1,e=Array.from({length:D},(n,r)=>Vo(r,u));return Object.assign({},...e)},"getSignalsByNumber"),Vo=s((u,D)=>{const e=Jo(u,D);if(e===void 0)return{};const{name:n,description:r,supported:o,action:t,forced:i,standard:a}=e;return{[u]:{name:n,number:u,description:r,supported:o,action:t,forced:i,standard:a}}},"getSignalByNumber"),Jo=s((u,D)=>{const e=D.find(({name:n})=>oe.signals[n]===u);return e!==void 0?e:D.find(n=>n.number===u)},"findSignalByNumber");Ko();const Zo=s(({timedOut:u,timeout:D,errorCode:e,signal:n,signalDescription:r,exitCode:o,isCanceled:t})=>u?`timed out after ${D} milliseconds`:t?"was canceled":e!==void 0?`failed with ${e}`:n!==void 0?`was killed with ${n} (${r})`:o!==void 0?`failed with exit code ${o}`:"failed","getErrorPrefix"),ut=s(({stdout:u,stderr:D,all:e,error:n,signal:r,exitCode:o,command:t,escapedCommand:i,timedOut:a,isCanceled:l,killed:C,parsed:{options:{timeout:c,cwd:F=y.cwd()}}})=>{o=o===null?void 0:o,r=r===null?void 0:r;const f=r===void 0?void 0:Yo[r].description,d=n&&n.code,p=`Command ${Zo({timedOut:a,timeout:c,errorCode:d,signal:r,signalDescription:f,exitCode:o,isCanceled:l})}: ${t}`,m=Object.prototype.toString.call(n)==="[object Error]",$=m?`${p}
25
- ${n.message}`:p,P=[$,D,u].filter(Boolean).join(`
26
- `);return m?(n.originalMessage=n.message,n.message=P):n=new Error(P),n.shortMessage=$,n.command=t,n.escapedCommand=i,n.exitCode=o,n.signal=r,n.signalDescription=f,n.stdout=u,n.stderr=D,n.cwd=F,e!==void 0&&(n.all=e),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!a,n.isCanceled=l,n.killed=C&&!a,n},"makeError"),bu=["stdin","stdout","stderr"],Xo=s(u=>bu.some(D=>u[D]!==void 0),"hasAlias"),Qo=s(u=>{if(!u)return;const{stdio:D}=u;if(D===void 0)return bu.map(n=>u[n]);if(Xo(u))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${bu.map(n=>`\`${n}\``).join(", ")}`);if(typeof D=="string")return D;if(!Array.isArray(D))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof D}\``);const e=Math.max(D.length,bu.length);return Array.from({length:e},(n,r)=>D[r])},"normalizeStdio");var V={exports:{}},iD={exports:{}},Dt;function us(){return Dt||(Dt=1,function(u){u.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&u.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&u.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(iD)),iD.exports}s(us,"requireSignals");var g=A.process;const L=s(function(u){return 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"},"processOk");if(!L(g))V.exports=function(){return function(){}};else{var Ds=se,nu=us(),es=/^win/i.test(g.platform),yu=ie;typeof yu!="function"&&(yu=yu.EventEmitter);var v;g.__signal_exit_emitter__?v=g.__signal_exit_emitter__:(v=g.__signal_exit_emitter__=new yu,v.count=0,v.emitted={}),v.infinite||(v.setMaxListeners(1/0),v.infinite=!0),V.exports=function(u,D){if(!L(A.process))return function(){};Ds.equal(typeof u,"function","a callback must be provided for exit handler"),ru===!1&&et();var e="exit";D&&D.alwaysLast&&(e="afterexit");var n=s(function(){v.removeListener(e,u),v.listeners("exit").length===0&&v.listeners("afterexit").length===0&&aD()},"remove");return v.on(e,u),n};var aD=s(function(){!ru||!L(A.process)||(ru=!1,nu.forEach(function(D){try{g.removeListener(D,cD[D])}catch{}}),g.emit=lD,g.reallyExit=tt,v.count-=1)},"unload");V.exports.unload=aD;var J=s(function(D,e,n){v.emitted[D]||(v.emitted[D]=!0,v.emit(D,e,n))},"emit"),cD={};nu.forEach(function(u){cD[u]=s(function(){if(L(A.process)){var e=g.listeners(u);e.length===v.count&&(aD(),J("exit",null,u),J("afterexit",null,u),es&&u==="SIGHUP"&&(u="SIGINT"),g.kill(g.pid,u))}},"listener")}),V.exports.signals=function(){return nu};var ru=!1,et=s(function(){ru||!L(A.process)||(ru=!0,v.count+=1,nu=nu.filter(function(D){try{return g.on(D,cD[D]),!0}catch{return!1}}),g.emit=ns,g.reallyExit=ts)},"load");V.exports.load=et;var tt=g.reallyExit,ts=s(function(D){L(A.process)&&(g.exitCode=D||0,J("exit",g.exitCode,null),J("afterexit",g.exitCode,null),tt.call(g,g.exitCode))},"processReallyExit"),lD=g.emit,ns=s(function(D,e){if(D==="exit"&&L(A.process)){e!==void 0&&(g.exitCode=e);var n=lD.apply(this,arguments);return J("exit",g.exitCode,null),J("afterexit",g.exitCode,null),n}else return lD.apply(this,arguments)},"processEmit")}var rs=V.exports,os=H(rs);const ss=1e3*5,is=s((u,D="SIGTERM",e={})=>{const n=u(D);return as(u,D,e,n),n},"spawnedKill"),as=s((u,D,e,n)=>{if(!cs(D,e,n))return;const r=Fs(e),o=setTimeout(()=>{u("SIGKILL")},r);o.unref&&o.unref()},"setKillTimeout"),cs=s((u,{forceKillAfterTimeout:D},e)=>ls(u)&&D!==!1&&e,"shouldForceKill"),ls=s(u=>u===fn.constants.signals.SIGTERM||typeof u=="string"&&u.toUpperCase()==="SIGTERM","isSigterm"),Fs=s(({forceKillAfterTimeout:u=!0})=>{if(u===!0)return ss;if(!Number.isFinite(u)||u<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${u}\` (${typeof u})`);return u},"getForceKillAfterTimeout"),Cs=s((u,D)=>{u.kill()&&(D.isCanceled=!0)},"spawnedCancel"),fs=s((u,D,e)=>{u.kill(D),e(Object.assign(new Error("Timed out"),{timedOut:!0,signal:D}))},"timeoutKill"),ds=s((u,{timeout:D,killSignal:e="SIGTERM"},n)=>{if(D===0||D===void 0)return n;let r;const o=new Promise((i,a)=>{r=setTimeout(()=>{fs(u,e,a)},D)}),t=n.finally(()=>{clearTimeout(r)});return Promise.race([o,t])},"setupTimeout"),Es=s(({timeout:u})=>{if(u!==void 0&&(!Number.isFinite(u)||u<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${u}\` (${typeof u})`)},"validateTimeout"),ps=s(async(u,{cleanup:D,detached:e},n)=>{if(!D||e)return n;const r=os(()=>{u.kill()});return n.finally(()=>{r()})},"setExitHandler");function nt(u){return u!==null&&typeof u=="object"&&typeof u.pipe=="function"}s(nt,"isStream");function rt(u){return nt(u)&&u.writable!==!1&&typeof u._write=="function"&&typeof u._writableState=="object"}s(rt,"isWritableStream");const hs=s(u=>u instanceof Fn&&typeof u.then=="function","isExecaChildProcess"),FD=s((u,D,e)=>{if(typeof e=="string")return u[D].pipe(dn(e)),u;if(rt(e))return u[D].pipe(e),u;if(!hs(e))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!rt(e.stdin))throw new TypeError("The target child process's stdin must be available.");return u[D].pipe(e.stdin),e},"pipeToTarget"),ms=s(u=>{u.stdout!==null&&(u.pipeStdout=FD.bind(void 0,u,"stdout")),u.stderr!==null&&(u.pipeStderr=FD.bind(void 0,u,"stderr")),u.all!==void 0&&(u.pipeAll=FD.bind(void 0,u,"all"))},"addPipeMethods");var ou={exports:{}};const{PassThrough:gs}=Wu;var Bs=s(u=>{u={...u};const{array:D}=u;let{encoding:e}=u;const n=e==="buffer";let r=!1;D?r=!(e||n):e=e||"utf8",n&&(e=null);const o=new gs({objectMode:r});e&&o.setEncoding(e);let t=0;const i=[];return o.on("data",a=>{i.push(a),r?t=i.length:t+=a.length}),o.getBufferedValue=()=>D?i:n?Buffer.concat(i,t):i.join(""),o.getBufferedLength=()=>t,o},"bufferStream$1");const{constants:bs}=pn,ys=Wu,{promisify:As}=ae,ws=Bs,$s=As(ys.pipeline),JD=class JD extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};s(JD,"MaxBufferError");let Au=JD;async function CD(u,D){if(!u)throw new Error("Expected a stream");D={maxBuffer:1/0,...D};const{maxBuffer:e}=D,n=ws(D);return await new Promise((r,o)=>{const t=s(i=>{i&&n.getBufferedLength()<=bs.MAX_LENGTH&&(i.bufferedData=n.getBufferedValue()),o(i)},"rejectPromise");(async()=>{try{await $s(u,n),r()}catch(i){t(i)}})(),n.on("data",()=>{n.getBufferedLength()>e&&t(new Au)})}),n.getBufferedValue()}s(CD,"getStream"),ou.exports=CD,ou.exports.buffer=(u,D)=>CD(u,{...D,encoding:"buffer"}),ou.exports.array=(u,D)=>CD(u,{...D,array:!0}),ou.exports.MaxBufferError=Au;var vs=ou.exports,ot=H(vs);const{PassThrough:xs}=Wu;var Ss=s(function(){var u=[],D=new xs({objectMode:!0});return D.setMaxListeners(0),D.add=e,D.isEmpty=n,D.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(e),D;function e(o){return Array.isArray(o)?(o.forEach(e),this):(u.push(o),o.once("end",r.bind(null,o)),o.once("error",D.emit.bind(D,"error")),o.pipe(D,{end:!1}),this)}s(e,"add");function n(){return u.length==0}s(n,"isEmpty");function r(o){u=u.filter(function(t){return t!==o}),!u.length&&D.readable&&D.end()}s(r,"remove")},"mergeStream"),Os=H(Ss);const Ts=s(u=>{if(u!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},"validateInputOptions"),Is=s(({input:u,inputFile:D})=>typeof D!="string"?u:(Ts(u),En(D)),"getInput"),Ps=s((u,D)=>{const e=Is(D);e!==void 0&&(nt(e)?e.pipe(u.stdin):u.stdin.end(e))},"handleInput"),ks=s((u,{all:D})=>{if(!D||!u.stdout&&!u.stderr)return;const e=Os();return u.stdout&&e.add(u.stdout),u.stderr&&e.add(u.stderr),e},"makeAllStream"),fD=s(async(u,D)=>{if(!(!u||D===void 0)){u.destroy();try{return await D}catch(e){return e.bufferedData}}},"getBufferedData"),dD=s((u,{encoding:D,buffer:e,maxBuffer:n})=>{if(!(!u||!e))return D?ot(u,{encoding:D,maxBuffer:n}):ot.buffer(u,{maxBuffer:n})},"getStreamPromise"),_s=s(async({stdout:u,stderr:D,all:e},{encoding:n,buffer:r,maxBuffer:o},t)=>{const i=dD(u,{encoding:n,buffer:r,maxBuffer:o}),a=dD(D,{encoding:n,buffer:r,maxBuffer:o}),l=dD(e,{encoding:n,buffer:r,maxBuffer:o*2});try{return await Promise.all([t,i,a,l])}catch(C){return Promise.all([{error:C,signal:C.signal,timedOut:C.timedOut},fD(u,i),fD(D,a),fD(e,l)])}},"getSpawnedResult"),Rs=(async()=>{})().constructor.prototype,Ms=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(Rs,u)]),st=s((u,D)=>{for(const[e,n]of Ms){const r=typeof D=="function"?(...o)=>Reflect.apply(n.value,D(),o):n.value.bind(D);Reflect.defineProperty(u,e,{...n,value:r})}},"mergePromise"),js=s(u=>new Promise((D,e)=>{u.on("exit",(n,r)=>{D({exitCode:n,signal:r})}),u.on("error",n=>{e(n)}),u.stdin&&u.stdin.on("error",n=>{e(n)})}),"getSpawnedPromise"),it=s((u,D=[])=>Array.isArray(D)?[u,...D]:[u],"normalizeArgs"),Ns=/^[\w.-]+$/,Ls=/"/g,Gs=s(u=>typeof u!="string"||Ns.test(u)?u:`"${u.replace(Ls,'\\"')}"`,"escapeArg"),Ws=s((u,D)=>it(u,D).join(" "),"joinCommand"),Us=s((u,D)=>it(u,D).map(e=>Gs(e)).join(" "),"getEscapedCommand"),zs=hn("execa").enabled,wu=s((u,D)=>String(u).padStart(D,"0"),"padField"),qs=s(()=>{const u=new Date;return`${wu(u.getHours(),2)}:${wu(u.getMinutes(),2)}:${wu(u.getSeconds(),2)}.${wu(u.getMilliseconds(),3)}`},"getTimestamp"),Hs=s((u,{verbose:D})=>{D&&y.stderr.write(`[${qs()}] ${u}
27
- `)},"logCommand"),Ys=1e3*1e3*100,Ks=s(({env:u,extendEnv:D,preferLocal:e,localDir:n,execPath:r})=>{const o=D?{...y.env,...u}:u;return e?Io({env:o,cwd:n,execPath:r}):o},"getEnv"),Vs=s((u,D,e={})=>{const n=vo._parse(u,D,e);return u=n.command,D=n.args,e=n.options,e={maxBuffer:Ys,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:e.cwd||y.cwd(),execPath:y.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:zs,...e},e.env=Ks(e),e.stdio=Qo(e),y.platform==="win32"&&z.basename(u,".exe")==="cmd"&&D.unshift("/q"),{file:u,args:D,options:e,parsed:n}},"handleArguments"),ED=s((u,D,e)=>typeof D!="string"&&!ln.isBuffer(D)?e===void 0?void 0:"":u.stripFinalNewline?xo(D):D,"handleOutput");function Z(u,D,e){const n=Vs(u,D,e),r=Ws(u,D),o=Us(u,D);Hs(o,n.options),Es(n.options);let t;try{t=ee.spawn(n.file,n.args,n.options)}catch(f){const d=new ee.ChildProcess,E=Promise.reject(ut({error:f,stdout:"",stderr:"",all:"",command:r,escapedCommand:o,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return st(d,E),d}const i=js(t),a=ds(t,n.options,i),l=ps(t,n.options,a),C={isCanceled:!1};t.kill=is.bind(null,t.kill.bind(t)),t.cancel=Cs.bind(null,t,C);const F=Je(s(async()=>{const[{error:f,exitCode:d,signal:E,timedOut:p},m,$,P]=await _s(t,n.options,l),fu=ED(n.options,m),j=ED(n.options,$),Nu=ED(n.options,P);if(f||d!==0||E!==null){const U=ut({error:f,exitCode:d,signal:E,stdout:fu,stderr:j,all:Nu,command:r,escapedCommand:o,parsed:n,timedOut:p,isCanceled:n.options.signal?n.options.signal.aborted:!1,killed:t.killed});if(!n.options.reject)return U;throw U}return{command:r,escapedCommand:o,exitCode:0,stdout:fu,stderr:j,all:Nu,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},"handlePromise"));return Ps(t,n.options),t.all=ks(t,n.options),ms(t),st(t,F),t}s(Z,"execa");let G=!0;const X=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let su=0;if(X.process&&X.process.env&&X.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:D,NO_COLOR:e,TERM:n,COLORTERM:r}=X.process.env;D||e||u==="0"?G=!1:u==="1"||u==="2"||u==="3"?G=!0:n==="dumb"?G=!1:"CI"in X.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in X.process.env)?G=!0:G=process.stdout.isTTY,G&&(process.platform==="win32"||r&&(r==="truecolor"||r==="24bit")?su=3:n&&(n.endsWith("-256color")||n.endsWith("256"))?su=2:su=1)}let at={enabled:G,supportLevel:su};function iu(u,D,e=1){const n=`\x1B[${u}m`,r=`\x1B[${D}m`,o=new RegExp(`\\x1b\\[${D}m`,"g");return t=>at.enabled&&at.supportLevel>=e?n+(""+t).replace(o,n)+r:""+t}s(iu,"kolorist");const pD=iu(2,22),ct=iu(30,39),$u=iu(31,39),au=iu(32,39),lt=iu(46,49),hD="\x1B",b=`${hD}[`,Js="\x07",mD={to(u,D){return D?`${b}${D+1};${u+1}H`:`${b}${u+1}G`},move(u,D){let e="";return u<0?e+=`${b}${-u}D`:u>0&&(e+=`${b}${u}C`),D<0?e+=`${b}${-D}A`:D>0&&(e+=`${b}${D}B`),e},up:s((u=1)=>`${b}${u}A`,"up"),down:s((u=1)=>`${b}${u}B`,"down"),forward:s((u=1)=>`${b}${u}C`,"forward"),backward:s((u=1)=>`${b}${u}D`,"backward"),nextLine:s((u=1)=>`${b}E`.repeat(u),"nextLine"),prevLine:s((u=1)=>`${b}F`.repeat(u),"prevLine"),left:`${b}G`,hide:`${b}?25l`,show:`${b}?25h`,save:`${hD}7`,restore:`${hD}8`},Zs={up:s((u=1)=>`${b}S`.repeat(u),"up"),down:s((u=1)=>`${b}T`.repeat(u),"down")},Xs={screen:`${b}2J`,up:s((u=1)=>`${b}1J`.repeat(u),"up"),down:s((u=1)=>`${b}J`.repeat(u),"down"),line:`${b}2K`,lineEnd:`${b}K`,lineStart:`${b}1K`,lines(u){let D="";for(let e=0;e<u;e++)D+=this.line+(e<u-1?mD.up():"");return u&&(D+=mD.left),D}};var w={cursor:mD,scroll:Zs,erase:Xs,beep:Js},gD={exports:{}};let vu=process||{},Ft=vu.argv||[],xu=vu.env||{},Qs=!(xu.NO_COLOR||Ft.includes("--no-color"))&&(!!xu.FORCE_COLOR||Ft.includes("--color")||vu.platform==="win32"||(vu.stdout||{}).isTTY&&xu.TERM!=="dumb"||!!xu.CI),ui=s((u,D,e=u)=>n=>{let r=""+n,o=r.indexOf(D,u.length);return~o?u+Di(r,D,e,o)+D:u+r+D},"formatter"),Di=s((u,D,e,n)=>{let r="",o=0;do r+=u.substring(o,n)+e,o=n+D.length,n=u.indexOf(D,o);while(~n);return r+u.substring(o)},"replaceClose"),Ct=s((u=Qs)=>{let D=u?ui:()=>String;return{isColorSupported:u,reset:D("\x1B[0m","\x1B[0m"),bold:D("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:D("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:D("\x1B[3m","\x1B[23m"),underline:D("\x1B[4m","\x1B[24m"),inverse:D("\x1B[7m","\x1B[27m"),hidden:D("\x1B[8m","\x1B[28m"),strikethrough:D("\x1B[9m","\x1B[29m"),black:D("\x1B[30m","\x1B[39m"),red:D("\x1B[31m","\x1B[39m"),green:D("\x1B[32m","\x1B[39m"),yellow:D("\x1B[33m","\x1B[39m"),blue:D("\x1B[34m","\x1B[39m"),magenta:D("\x1B[35m","\x1B[39m"),cyan:D("\x1B[36m","\x1B[39m"),white:D("\x1B[37m","\x1B[39m"),gray:D("\x1B[90m","\x1B[39m"),bgBlack:D("\x1B[40m","\x1B[49m"),bgRed:D("\x1B[41m","\x1B[49m"),bgGreen:D("\x1B[42m","\x1B[49m"),bgYellow:D("\x1B[43m","\x1B[49m"),bgBlue:D("\x1B[44m","\x1B[49m"),bgMagenta:D("\x1B[45m","\x1B[49m"),bgCyan:D("\x1B[46m","\x1B[49m"),bgWhite:D("\x1B[47m","\x1B[49m"),blackBright:D("\x1B[90m","\x1B[39m"),redBright:D("\x1B[91m","\x1B[39m"),greenBright:D("\x1B[92m","\x1B[39m"),yellowBright:D("\x1B[93m","\x1B[39m"),blueBright:D("\x1B[94m","\x1B[39m"),magentaBright:D("\x1B[95m","\x1B[39m"),cyanBright:D("\x1B[96m","\x1B[39m"),whiteBright:D("\x1B[97m","\x1B[39m"),bgBlackBright:D("\x1B[100m","\x1B[49m"),bgRedBright:D("\x1B[101m","\x1B[49m"),bgGreenBright:D("\x1B[102m","\x1B[49m"),bgYellowBright:D("\x1B[103m","\x1B[49m"),bgBlueBright:D("\x1B[104m","\x1B[49m"),bgMagentaBright:D("\x1B[105m","\x1B[49m"),bgCyanBright:D("\x1B[106m","\x1B[49m"),bgWhiteBright:D("\x1B[107m","\x1B[49m")}},"createColors");gD.exports=Ct(),gD.exports.createColors=Ct;var ei=gD.exports,h=H(ei);function ti({onlyFirst:u=!1}={}){const D=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(D,u?void 0:"g")}s(ti,"q");const ni=ti();function ft(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(ni,"")}s(ft,"S");function dt(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}s(dt,"T$1");var Et={exports:{}};(function(u){var D={};u.exports=D,D.eastAsianWidth=function(n){var r=n.charCodeAt(0),o=n.length==2?n.charCodeAt(1):0,t=r;return 55296<=r&&r<=56319&&56320<=o&&o<=57343&&(r&=1023,o&=1023,t=r<<10|o,t+=65536),t==12288||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":t==8361||65377<=t&&t<=65470||65474<=t&&t<=65479||65482<=t&&t<=65487||65490<=t&&t<=65495||65498<=t&&t<=65500||65512<=t&&t<=65518?"H":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":32<=t&&t<=126||162<=t&&t<=163||165<=t&&t<=166||t==172||t==175||10214<=t&&t<=10221||10629<=t&&t<=10630?"Na":t==161||t==164||167<=t&&t<=168||t==170||173<=t&&t<=174||176<=t&&t<=180||182<=t&&t<=186||188<=t&&t<=191||t==198||t==208||215<=t&&t<=216||222<=t&&t<=225||t==230||232<=t&&t<=234||236<=t&&t<=237||t==240||242<=t&&t<=243||247<=t&&t<=250||t==252||t==254||t==257||t==273||t==275||t==283||294<=t&&t<=295||t==299||305<=t&&t<=307||t==312||319<=t&&t<=322||t==324||328<=t&&t<=331||t==333||338<=t&&t<=339||358<=t&&t<=359||t==363||t==462||t==464||t==466||t==468||t==470||t==472||t==474||t==476||t==593||t==609||t==708||t==711||713<=t&&t<=715||t==717||t==720||728<=t&&t<=731||t==733||t==735||768<=t&&t<=879||913<=t&&t<=929||931<=t&&t<=937||945<=t&&t<=961||963<=t&&t<=969||t==1025||1040<=t&&t<=1103||t==1105||t==8208||8211<=t&&t<=8214||8216<=t&&t<=8217||8220<=t&&t<=8221||8224<=t&&t<=8226||8228<=t&&t<=8231||t==8240||8242<=t&&t<=8243||t==8245||t==8251||t==8254||t==8308||t==8319||8321<=t&&t<=8324||t==8364||t==8451||t==8453||t==8457||t==8467||t==8470||8481<=t&&t<=8482||t==8486||t==8491||8531<=t&&t<=8532||8539<=t&&t<=8542||8544<=t&&t<=8555||8560<=t&&t<=8569||t==8585||8592<=t&&t<=8601||8632<=t&&t<=8633||t==8658||t==8660||t==8679||t==8704||8706<=t&&t<=8707||8711<=t&&t<=8712||t==8715||t==8719||t==8721||t==8725||t==8730||8733<=t&&t<=8736||t==8739||t==8741||8743<=t&&t<=8748||t==8750||8756<=t&&t<=8759||8764<=t&&t<=8765||t==8776||t==8780||t==8786||8800<=t&&t<=8801||8804<=t&&t<=8807||8810<=t&&t<=8811||8814<=t&&t<=8815||8834<=t&&t<=8835||8838<=t&&t<=8839||t==8853||t==8857||t==8869||t==8895||t==8978||9312<=t&&t<=9449||9451<=t&&t<=9547||9552<=t&&t<=9587||9600<=t&&t<=9615||9618<=t&&t<=9621||9632<=t&&t<=9633||9635<=t&&t<=9641||9650<=t&&t<=9651||9654<=t&&t<=9655||9660<=t&&t<=9661||9664<=t&&t<=9665||9670<=t&&t<=9672||t==9675||9678<=t&&t<=9681||9698<=t&&t<=9701||t==9711||9733<=t&&t<=9734||t==9737||9742<=t&&t<=9743||9748<=t&&t<=9749||t==9756||t==9758||t==9792||t==9794||9824<=t&&t<=9825||9827<=t&&t<=9829||9831<=t&&t<=9834||9836<=t&&t<=9837||t==9839||9886<=t&&t<=9887||9918<=t&&t<=9919||9924<=t&&t<=9933||9935<=t&&t<=9953||t==9955||9960<=t&&t<=9983||t==10045||t==10071||10102<=t&&t<=10111||11093<=t&&t<=11097||12872<=t&&t<=12879||57344<=t&&t<=63743||65024<=t&&t<=65039||t==65533||127232<=t&&t<=127242||127248<=t&&t<=127277||127280<=t&&t<=127337||127344<=t&&t<=127386||917760<=t&&t<=917999||983040<=t&&t<=1048573||1048576<=t&&t<=1114109?"A":"N"},D.characterLength=function(n){var r=this.eastAsianWidth(n);return r=="F"||r=="W"||r=="A"?2:1};function e(n){return n.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}s(e,"F"),D.length=function(n){for(var r=e(n),o=0,t=0;t<r.length;t++)o=o+this.characterLength(r[t]);return o},D.slice=function(n,r,o){textLen=D.length(n),r=r||0,o=o||1,r<0&&(r=textLen+r),o<0&&(o=textLen+o);for(var t="",i=0,a=e(n),l=0;l<a.length;l++){var C=a[l],c=D.length(C);if(i>=r-(c==2?1:0))if(i+c<=o)t+=C;else break;i+=c}return t}})(Et);var ri=Et.exports;const oi=dt(ri);var si=s(function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\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]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\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-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\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[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},"DD");const ii=dt(si);function cu(u,D={}){if(typeof u!="string"||u.length===0||(D={ambiguousIsNarrow:!0,...D},u=ft(u),u.length===0))return 0;u=u.replace(ii()," ");const e=D.ambiguousIsNarrow?1:2;let n=0;for(const r of u){const o=r.codePointAt(0);if(!(o<=31||o>=127&&o<=159||o>=768&&o<=879))switch(oi.eastAsianWidth(r)){case"F":case"W":n+=2;break;case"A":n+=e;break;default:n+=1}}return n}s(cu,"A");const BD=10,pt=s((u=0)=>D=>`\x1B[${D+u}m`,"M$1"),ht=s((u=0)=>D=>`\x1B[${38+u};5;${D}m`,"P$1"),mt=s((u=0)=>(D,e,n)=>`\x1B[${38+u};2;${D};${e};${n}m`,"W"),B={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(B.modifier);const ai=Object.keys(B.color),ci=Object.keys(B.bgColor);[...ai,...ci];function li(){const u=new Map;for(const[D,e]of Object.entries(B)){for(const[n,r]of Object.entries(e))B[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[n]=B[n],u.set(r[0],r[1]);Object.defineProperty(B,D,{value:e,enumerable:!1})}return Object.defineProperty(B,"codes",{value:u,enumerable:!1}),B.color.close="\x1B[39m",B.bgColor.close="\x1B[49m",B.color.ansi=pt(),B.color.ansi256=ht(),B.color.ansi16m=mt(),B.bgColor.ansi=pt(BD),B.bgColor.ansi256=ht(BD),B.bgColor.ansi16m=mt(BD),Object.defineProperties(B,{rgbToAnsi256:{value:s((D,e,n)=>D===e&&e===n?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(n/255*5),"value"),enumerable:!1},hexToRgb:{value:s(D=>{const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[n]=e;n.length===3&&(n=[...n].map(o=>o+o).join(""));const r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},"value"),enumerable:!1},hexToAnsi256:{value:s(D=>B.rgbToAnsi256(...B.hexToRgb(D)),"value"),enumerable:!1},ansi256ToAnsi:{value:s(D=>{if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,n,r;if(D>=232)e=((D-232)*10+8)/255,n=e,r=e;else{D-=16;const i=D%36;e=Math.floor(D/36)/5,n=Math.floor(i/6)/5,r=i%6/5}const o=Math.max(e,n,r)*2;if(o===0)return 30;let t=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(e));return o===2&&(t+=60),t},"value"),enumerable:!1},rgbToAnsi:{value:s((D,e,n)=>B.ansi256ToAnsi(B.rgbToAnsi256(D,e,n)),"value"),enumerable:!1},hexToAnsi:{value:s(D=>B.ansi256ToAnsi(B.hexToAnsi256(D)),"value"),enumerable:!1}}),B}s(li,"tD");const Fi=li(),Su=new Set(["\x1B","\x9B"]),Ci=39,bD="\x07",gt="[",fi="]",Bt="m",yD=`${fi}8;;`,bt=s(u=>`${Su.values().next().value}${gt}${u}${Bt}`,"N"),yt=s(u=>`${Su.values().next().value}${yD}${u}${bD}`,"L"),di=s(u=>u.split(" ").map(D=>cu(D)),"rD"),AD=s((u,D,e)=>{const n=[...D];let r=!1,o=!1,t=cu(ft(u[u.length-1]));for(const[i,a]of n.entries()){const l=cu(a);if(t+l<=e?u[u.length-1]+=a:(u.push(a),t=0),Su.has(a)&&(r=!0,o=n.slice(i+1).join("").startsWith(yD)),r){o?a===bD&&(r=!1,o=!1):a===Bt&&(r=!1);continue}t+=l,t===e&&i<n.length-1&&(u.push(""),t=0)}!t&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"y$1"),Ei=s(u=>{const D=u.split(" ");let e=D.length;for(;e>0&&!(cu(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},"ED"),pi=s((u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let n="",r,o;const t=di(u);let i=[""];for(const[l,C]of u.split(" ").entries()){e.trim!==!1&&(i[i.length-1]=i[i.length-1].trimStart());let c=cu(i[i.length-1]);if(l!==0&&(c>=D&&(e.wordWrap===!1||e.trim===!1)&&(i.push(""),c=0),(c>0||e.trim===!1)&&(i[i.length-1]+=" ",c++)),e.hard&&t[l]>D){const F=D-c,f=1+Math.floor((t[l]-F-1)/D);Math.floor((t[l]-1)/D)<f&&i.push(""),AD(i,C,D);continue}if(c+t[l]>D&&c>0&&t[l]>0){if(e.wordWrap===!1&&c<D){AD(i,C,D);continue}i.push("")}if(c+t[l]>D&&e.wordWrap===!1){AD(i,C,D);continue}i[i.length-1]+=C}e.trim!==!1&&(i=i.map(l=>Ei(l)));const a=[...i.join(`
28
- `)];for(const[l,C]of a.entries()){if(n+=C,Su.has(C)){const{groups:F}=new RegExp(`(?:\\${gt}(?<code>\\d+)m|\\${yD}(?<uri>.*)${bD})`).exec(a.slice(l).join(""))||{groups:{}};if(F.code!==void 0){const f=Number.parseFloat(F.code);r=f===Ci?void 0:f}else F.uri!==void 0&&(o=F.uri.length===0?void 0:F.uri)}const c=Fi.codes.get(Number(r));a[l+1]===`
29
- `?(o&&(n+=yt("")),r&&c&&(n+=bt(c))):C===`
30
- `&&(r&&c&&(n+=bt(r)),o&&(n+=yt(o)))}return n},"oD");function At(u,D,e){return String(u).normalize().replace(/\r\n/g,`
8
+ `).map(n=>tr(n,e,t)).join(`
9
+ `)}o(nr,"T$3");var FD=o(u=>Array.from({length:u}).fill(""),"X$2");function rr(u,e){let t=[],n=0;for(let r of u){let s=0,D=r.map(i=>{var c;let l=(c=e[n])!=null?c:"";n+=1,i.preprocess&&(l=i.preprocess(l)),eD(l)>i.width&&(l=nr(l,i.width,{hard:!0}));let C=l.split(`
10
+ `);if(i.postprocess){let{postprocess:F}=i;C=C.map((E,f)=>F.call(i,E,f))}return i.paddingTop&&C.unshift(...FD(i.paddingTop)),i.paddingBottom&&C.push(...FD(i.paddingBottom)),C.length>s&&(s=C.length),ku(Cu({},i),{lines:C})}),a=[];for(let i=0;i<s;i+=1){let c=D.map(l=>{var C;let F=(C=l.lines[i])!=null?C:"",E=Number.isFinite(l.width)?" ".repeat(l.width-q(F)):"",f=l.paddingLeftString;return l.align==="right"&&(f+=E),f+=F,l.align==="left"&&(f+=E),f+l.paddingRightString}).join("");a.push(c)}t.push(a.join(`
11
+ `))}return t.join(`
12
+ `)}o(rr,"P$1");function or(u,e){if(!u||u.length===0)return"";let t=zn(u),n=t.length;if(n===0)return"";let{stdoutColumns:r,columns:s}=Gn(e);if(s.length>n)throw new Error(`${s.length} columns defined, but only ${n} columns found`);let D=Kn(r,s,t);return u.map(a=>rr(D,a)).join(`
13
+ `)}o(or,"mD"),T();var sr=["<",">","=",">=","<="];function ir(u){if(!sr.includes(u))throw new TypeError(`Invalid breakpoint operator: ${u}`)}o(ir,"xD$1");function ar(u){let e=Object.keys(u).map(t=>{let[n,r]=t.split(" ");ir(n);let s=Number.parseInt(r,10);if(Number.isNaN(s))throw new TypeError(`Invalid breakpoint value: ${r}`);let D=u[t];return{operator:n,breakpoint:s,value:D}}).sort((t,n)=>n.breakpoint-t.breakpoint);return t=>{var n;return(n=e.find(({operator:r,breakpoint:s})=>r==="="&&t===s||r===">"&&t>s||r==="<"&&t<s||r===">="&&t>=s||r==="<="&&t<=s))==null?void 0:n.value}}o(ar,"wD");const cr=o(u=>u.replace(/[\W_]([a-z\d])?/gi,(e,t)=>t?t.toUpperCase():""),"S$1"),lr=o(u=>u.replace(/\B([A-Z])/g,"-$1").toLowerCase(),"q$1"),Fr={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:o(u=>u.trim(),"preprocess")},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function Cr(u){let e=!1;return{type:"table",data:{tableData:Object.keys(u).sort((t,n)=>t.localeCompare(n)).map(t=>{const n=u[t],r="alias"in n;return r&&(e=!0),{name:t,flag:n,flagFormatted:`--${lr(t)}`,aliasesEnabled:e,aliasFormatted:r?`-${n.alias}`:void 0}}).map(t=>(t.aliasesEnabled=e,[{type:"flagName",data:t},{type:"flagDescription",data:t}])),tableBreakpoints:Fr}}}o(Cr,"D");const CD=o(u=>!u||(u.version??(u.help?u.help.version:void 0)),"A$2"),fD=o(u=>{const e="parent"in u&&u.parent?.name;return(e?`${e} `:"")+u.name},"C");function fr(u){const e=[];u.name&&e.push(fD(u));const t=CD(u)??("parent"in u&&CD(u.parent));if(t&&e.push(`v${t}`),e.length!==0)return{id:"name",type:"text",data:`${e.join(" ")}
14
+ `}}o(fr,"R$1");function dr(u){const{help:e}=u;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
15
+ `}}o(dr,"L$2");function Er(u){const e=u.help||{};if("usage"in e)return e.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(e.usage)?e.usage.join(`
16
+ `):e.usage}}:void 0;if(u.name){const t=[],n=[fD(u)];if(u.flags&&Object.keys(u.flags).length>0&&n.push("[flags...]"),u.parameters&&u.parameters.length>0){const{parameters:r}=u,s=r.indexOf("--"),D=s>-1&&r.slice(s+1).some(a=>a.startsWith("<"));n.push(r.map(a=>a!=="--"?a:D?"--":"[--]").join(" "))}if(n.length>1&&t.push(n.join(" ")),"commands"in u&&u.commands?.length&&t.push(`${u.name} <command>`),t.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:t.join(`
17
+ `)}}}}o(Er,"T$2");function pr(u){return!("commands"in u)||!u.commands?.length?void 0:{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u.commands.map(e=>[e.options.name,e.options.help?e.options.help.description:""]),tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}o(pr,"_$1");function hr(u){if(!(!u.flags||Object.keys(u.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Cr(u.flags),indentBody:0}}}o(hr,"k$1");function mr(u){const{help:e}=u;if(!e||!e.examples||e.examples.length===0)return;let{examples:t}=e;if(Array.isArray(t)&&(t=t.join(`
18
+ `)),t)return{id:"examples",type:"section",data:{title:"Examples:",body:t}}}o(mr,"F");function gr(u){if(!("alias"in u)||!u.alias)return;const{alias:e}=u;return{id:"aliases",type:"section",data:{title:"Aliases:",body:Array.isArray(e)?e.join(", "):e}}}o(gr,"H");const Br=o(u=>[fr,dr,Er,pr,hr,mr,gr].map(e=>e(u)).filter(Boolean),"U"),br=Pu.WriteStream.prototype.hasColors(),Re=class Re{text(e){return e}bold(e){return br?`\x1B[1m${e}\x1B[22m`:e.toLocaleUpperCase()}indentText({text:e,spaces:t}){return e.replace(/^/gm," ".repeat(t))}heading(e){return this.bold(e)}section({title:e,body:t,indentBody:n=2}){return`${(e?`${this.heading(e)}
19
+ `:"")+(t?this.indentText({text:this.render(t),spaces:n}):"")}
20
+ `}table({tableData:e,tableOptions:t,tableBreakpoints:n}){return or(e.map(r=>r.map(s=>this.render(s))),n?ar(n):t)}flagParameter(e){return e===Boolean?"":e===String?"<string>":e===Number?"<number>":Array.isArray(e)?this.flagParameter(e[0]):"<value>"}flagOperator(e){return" "}flagName(e){const{flag:t,flagFormatted:n,aliasesEnabled:r,aliasFormatted:s}=e;let D="";if(s?D+=`${s}, `:r&&(D+=" "),D+=n,"placeholder"in t&&typeof t.placeholder=="string")D+=`${this.flagOperator(e)}${t.placeholder}`;else{const a=this.flagParameter("type"in t?t.type:t);a&&(D+=`${this.flagOperator(e)}${a}`)}return D}flagDefault(e){return JSON.stringify(e)}flagDescription({flag:e}){let t="description"in e?e.description??"":"";if("default"in e){let{default:n}=e;typeof n=="function"&&(n=n()),n&&(t+=` (default: ${this.flagDefault(n)})`)}return t}render(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>this.render(t)).join(`
21
+ `);if("type"in e&&this[e.type]){const t=this[e.type];if(typeof t=="function")return t.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}};o(Re,"M");let Gu=Re;const qu=/^[\w.-]+$/,{stringify:k}=JSON,yr=/[|\\{}()[\]^$+*?.]/;function Wu(u){const e=[];let t,n;for(const r of u){if(n)throw new Error(`Invalid parameter: Spread parameter ${k(n)} must be last`);const s=r[0],D=r[r.length-1];let a;if(s==="<"&&D===">"&&(a=!0,t))throw new Error(`Invalid parameter: Required parameter ${k(r)} cannot come after optional parameter ${k(t)}`);if(s==="["&&D==="]"&&(a=!1,t=r),a===void 0)throw new Error(`Invalid parameter: ${k(r)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let i=r.slice(1,-1);const c=i.slice(-3)==="...";c&&(n=r,i=i.slice(0,-3));const l=i.match(yr);if(l)throw new Error(`Invalid parameter: ${k(r)}. Invalid character found ${k(l[0])}`);e.push({name:i,required:a,spread:c})}return e}o(Wu,"w$1");function Uu(u,e,t,n){for(let r=0;r<e.length;r+=1){const{name:s,required:D,spread:a}=e[r],i=cr(s);if(i in u)throw new Error(`Invalid parameter: ${k(s)} is used more than once.`);const c=a?t.slice(r):t[r];if(a&&(r=e.length),D&&(!c||a&&c.length===0))return console.error(`Error: Missing required parameter ${k(s)}
22
+ `),n(),process.exit(1);u[i]=c}}o(Uu,"b");function Ar(u){return u===void 0||u!==!1}o(Ar,"W$1");function dD(u,e,t,n){const r={...e.flags},s=e.version;s&&(r.version={type:Boolean,description:"Show version"});const{help:D}=e,a=Ar(D);a&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const i=$n(r,n,{ignore:e.ignoreArgv}),c=o(()=>{console.log(e.version)},"f");if(s&&i.flags.version===!0)return c(),process.exit(0);const l=new Gu,C=a&&D?.render?D.render:f=>l.render(f),F=o(f=>{const g=Br({...e,...f?{help:f}:{},flags:r});console.log(C(g,l))},"u");if(a&&i.flags.help===!0)return F(),process.exit(0);if(e.parameters){let{parameters:f}=e,g=i._;const d=f.indexOf("--"),p=f.slice(d+1),h=Object.create(null);if(d>-1&&p.length>0){f=f.slice(0,d);const m=i._["--"];g=g.slice(0,-m.length||void 0),Uu(h,Wu(f),g,F),Uu(h,Wu(p),m,F)}else Uu(h,Wu(f),g,F);Object.assign(i._,h)}const E={...i,showVersion:c,showHelp:F};return typeof t=="function"&&t(E),{command:u,...E}}o(dD,"x$1");function wr(u,e){const t=new Map;for(const n of e){const r=[n.options.name],{alias:s}=n.options;s&&(Array.isArray(s)?r.push(...s):r.push(s));for(const D of r){if(t.has(D))throw new Error(`Duplicate command name found: ${k(D)}`);t.set(D,n)}}return t.get(u)}o(wr,"z$1");function vr(u,e,t=process.argv.slice(2)){if(!u)throw new Error("Options is required");if("name"in u&&(!u.name||!qu.test(u.name)))throw new Error(`Invalid script name: ${k(u.name)}`);const n=t[0];if(u.commands&&qu.test(n)){const r=wr(n,u.commands);if(r)return dD(r.options.name,{...r.options,parent:u},r.callback,t.slice(1))}return dD(void 0,u,e,t)}o(vr,"Z");function ED(u,e){if(!u)throw new Error("Command options are required");const{name:t}=u;if(u.name===void 0)throw new Error("Command name is required");if(!qu.test(t))throw new Error(`Invalid command name ${JSON.stringify(t)}. Command names must be one word.`);return{options:u,callback:e}}o(ED,"G$1");var pD="1.2.145",$r="Writes your git commit messages for you with AI",G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}o(K,"getDefaultExportFromCjs");var W={exports:{}},zu,hD;function xr(){if(hD)return zu;hD=1,zu=n,n.sync=r;var u=Ru;function e(s,D){var a=D.pathExt!==void 0?D.pathExt:process.env.PATHEXT;if(!a||(a=a.split(";"),a.indexOf("")!==-1))return!0;for(var i=0;i<a.length;i++){var c=a[i].toLowerCase();if(c&&s.substr(-c.length).toLowerCase()===c)return!0}return!1}o(e,"checkPathExt");function t(s,D,a){return!s.isSymbolicLink()&&!s.isFile()?!1:e(D,a)}o(t,"checkStat");function n(s,D,a){u.stat(s,function(i,c){a(i,i?!1:t(c,s,D))})}o(n,"isexe");function r(s,D){return t(u.statSync(s),s,D)}return o(r,"sync"),zu}o(xr,"requireWindows");var Hu,mD;function Sr(){if(mD)return Hu;mD=1,Hu=e,e.sync=t;var u=Ru;function e(s,D,a){u.stat(s,function(i,c){a(i,i?!1:n(c,D))})}o(e,"isexe");function t(s,D){return n(u.statSync(s),D)}o(t,"sync");function n(s,D){return s.isFile()&&r(s,D)}o(n,"checkStat");function r(s,D){var a=s.mode,i=s.uid,c=s.gid,l=D.uid!==void 0?D.uid:process.getuid&&process.getuid(),C=D.gid!==void 0?D.gid:process.getgid&&process.getgid(),F=parseInt("100",8),E=parseInt("010",8),f=parseInt("001",8),g=F|E,d=a&f||a&E&&c===C||a&F&&i===l||a&g&&l===0;return d}return o(r,"checkMode"),Hu}o(Sr,"requireMode");var Yu,gD;function Or(){if(gD)return Yu;gD=1;var u;process.platform==="win32"||G.TESTING_WINDOWS?u=xr():u=Sr(),Yu=e,e.sync=t;function e(n,r,s){if(typeof r=="function"&&(s=r,r={}),!s){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(D,a){e(n,r||{},function(i,c){i?a(i):D(c)})})}u(n,r||{},function(D,a){D&&(D.code==="EACCES"||r&&r.ignoreErrors)&&(D=null,a=!1),s(D,a)})}o(e,"isexe");function t(n,r){try{return u.sync(n,r||{})}catch(s){if(r&&r.ignoreErrors||s.code==="EACCES")return!1;throw s}}return o(t,"sync"),Yu}o(Or,"requireIsexe");var Vu,BD;function Tr(){if(BD)return Vu;BD=1;const u=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",e=V,t=u?";":":",n=Or(),r=o(i=>Object.assign(new Error(`not found: ${i}`),{code:"ENOENT"}),"getNotFoundError"),s=o((i,c)=>{const l=c.colon||t,C=i.match(/\//)||u&&i.match(/\\/)?[""]:[...u?[process.cwd()]:[],...(c.path||process.env.PATH||"").split(l)],F=u?c.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",E=u?F.split(l):[""];return u&&i.indexOf(".")!==-1&&E[0]!==""&&E.unshift(""),{pathEnv:C,pathExt:E,pathExtExe:F}},"getPathInfo"),D=o((i,c,l)=>{typeof c=="function"&&(l=c,c={}),c||(c={});const{pathEnv:C,pathExt:F,pathExtExe:E}=s(i,c),f=[],g=o(p=>new Promise((h,m)=>{if(p===C.length)return c.all&&f.length?h(f):m(r(i));const b=C[p],A=/^".*"$/.test(b)?b.slice(1,-1):b,y=e.join(A,i),O=!A&&/^\.[\\\/]/.test(i)?i.slice(0,2)+y:y;h(d(O,p,0))}),"step"),d=o((p,h,m)=>new Promise((b,A)=>{if(m===F.length)return b(g(h+1));const y=F[m];n(p+y,{pathExt:E},(O,N)=>{if(!O&&N)if(c.all)f.push(p+y);else return b(p+y);return b(d(p,h,m+1))})}),"subStep");return l?g(0).then(p=>l(null,p),l):g(0)},"which"),a=o((i,c)=>{c=c||{};const{pathEnv:l,pathExt:C,pathExtExe:F}=s(i,c),E=[];for(let f=0;f<l.length;f++){const g=l[f],d=/^".*"$/.test(g)?g.slice(1,-1):g,p=e.join(d,i),h=!d&&/^\.[\\\/]/.test(i)?i.slice(0,2)+p:p;for(let m=0;m<C.length;m++){const b=h+C[m];try{if(n.sync(b,{pathExt:F}))if(c.all)E.push(b);else return b}catch{}}}if(c.all&&E.length)return E;if(c.nothrow)return null;throw r(i)},"whichSync");return Vu=D,D.sync=a,Vu}o(Tr,"requireWhich");var du={exports:{}},bD;function Ir(){if(bD)return du.exports;bD=1;const u=o((e={})=>{const t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"},"pathKey");return du.exports=u,du.exports.default=u,du.exports}o(Ir,"requirePathKey");var Ku,yD;function Pr(){if(yD)return Ku;yD=1;const u=V,e=Tr(),t=Ir();function n(s,D){const a=s.options.env||process.env,i=process.cwd(),c=s.options.cwd!=null,l=c&&process.chdir!==void 0&&!process.chdir.disabled;if(l)try{process.chdir(s.options.cwd)}catch{}let C;try{C=e.sync(s.command,{path:a[t({env:a})],pathExt:D?u.delimiter:void 0})}catch{}finally{l&&process.chdir(i)}return C&&(C=u.resolve(c?s.options.cwd:"",C)),C}o(n,"resolveCommandAttempt");function r(s){return n(s)||n(s,!0)}return o(r,"resolveCommand"),Ku=r,Ku}o(Pr,"requireResolveCommand");var Eu={},AD;function Rr(){if(AD)return Eu;AD=1;const u=/([()\][%!^"`<>&|;, *?])/g;function e(n){return n=n.replace(u,"^$1"),n}o(e,"escapeCommand");function t(n,r){return n=`${n}`,n=n.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),n=n.replace(/(?=(\\+?)?)\1$/,"$1$1"),n=`"${n}"`,n=n.replace(u,"^$1"),r&&(n=n.replace(u,"^$1")),n}return o(t,"escapeArgument"),Eu.command=e,Eu.argument=t,Eu}o(Rr,"require_escape");var Ju,wD;function _r(){return wD||(wD=1,Ju=/^#!(.*)/),Ju}o(_r,"requireShebangRegex");var Xu,vD;function kr(){if(vD)return Xu;vD=1;const u=_r();return Xu=o((e="")=>{const t=e.match(u);if(!t)return null;const[n,r]=t[0].replace(/#! ?/,"").split(" "),s=n.split("/").pop();return s==="env"?r:r?`${s} ${r}`:s},"shebangCommand"),Xu}o(kr,"requireShebangCommand");var Zu,$D;function Mr(){if($D)return Zu;$D=1;const u=Ru,e=kr();function t(n){const s=Buffer.alloc(150);let D;try{D=u.openSync(n,"r"),u.readSync(D,s,0,150,0),u.closeSync(D)}catch{}return e(s.toString())}return o(t,"readShebang"),Zu=t,Zu}o(Mr,"requireReadShebang");var Qu,xD;function jr(){if(xD)return Qu;xD=1;const u=V,e=Pr(),t=Rr(),n=Mr(),r=process.platform==="win32",s=/\.(?:com|exe)$/i,D=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function a(l){l.file=e(l);const C=l.file&&n(l.file);return C?(l.args.unshift(l.file),l.command=C,e(l)):l.file}o(a,"detectShebang");function i(l){if(!r)return l;const C=a(l),F=!s.test(C);if(l.options.forceShell||F){const E=D.test(C);l.command=u.normalize(l.command),l.command=t.command(l.command),l.args=l.args.map(g=>t.argument(g,E));const f=[l.command].concat(l.args).join(" ");l.args=["/d","/s","/c",`"${f}"`],l.command=process.env.comspec||"cmd.exe",l.options.windowsVerbatimArguments=!0}return l}o(i,"parseNonShell");function c(l,C,F){C&&!Array.isArray(C)&&(F=C,C=null),C=C?C.slice(0):[],F=Object.assign({},F);const E={command:l,args:C,options:F,file:void 0,original:{command:l,args:C}};return F.shell?E:i(E)}return o(c,"parse"),Qu=c,Qu}o(jr,"requireParse");var ue,SD;function Nr(){if(SD)return ue;SD=1;const u=process.platform==="win32";function e(s,D){return Object.assign(new Error(`${D} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${D} ${s.command}`,path:s.command,spawnargs:s.args})}o(e,"notFoundError");function t(s,D){if(!u)return;const a=s.emit;s.emit=function(i,c){if(i==="exit"){const l=n(c,D);if(l)return a.call(s,"error",l)}return a.apply(s,arguments)}}o(t,"hookChildProcess");function n(s,D){return u&&s===1&&!D.file?e(D.original,"spawn"):null}o(n,"verifyENOENT");function r(s,D){return u&&s===1&&!D.file?e(D.original,"spawnSync"):null}return o(r,"verifyENOENTSync"),ue={hookChildProcess:t,verifyENOENT:n,verifyENOENTSync:r,notFoundError:e},ue}o(Nr,"requireEnoent");var OD;function Lr(){if(OD)return W.exports;OD=1;const u=Kt,e=jr(),t=Nr();function n(s,D,a){const i=e(s,D,a),c=u.spawn(i.command,i.args,i.options);return t.hookChildProcess(c,i),c}o(n,"spawn");function r(s,D,a){const i=e(s,D,a),c=u.spawnSync(i.command,i.args,i.options);return c.error=c.error||t.verifyENOENTSync(c.status,i),c}return o(r,"spawnSync"),W.exports=n,W.exports.spawn=n,W.exports.sync=r,W.exports._parse=e,W.exports._enoent=t,W.exports}o(Lr,"requireCrossSpawn");var Gr=Lr(),qr=K(Gr);function Wr(u){const e=typeof u=="string"?`
23
+ `:10,t=typeof u=="string"?"\r":13;return u[u.length-1]===e&&(u=u.slice(0,-1)),u[u.length-1]===t&&(u=u.slice(0,-1)),u}o(Wr,"stripFinalNewline");function TD(u={}){const{env:e=process.env,platform:t=process.platform}=u;return t!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"}o(TD,"pathKey");const Ur=o(({cwd:u=v.cwd(),path:e=v.env[TD()],preferLocal:t=!0,execPath:n=v.execPath,addExecPath:r=!0}={})=>{const s=u instanceof URL?We(u):u,D=Y.resolve(s),a=[];return t&&zr(a,D),r&&Hr(a,n,D),[...a,e].join(Y.delimiter)},"npmRunPath"),zr=o((u,e)=>{let t;for(;t!==e;)u.push(Y.join(e,"node_modules/.bin")),t=e,e=Y.resolve(e,"..")},"applyPreferLocal"),Hr=o((u,e,t)=>{const n=e instanceof URL?We(e):e;u.push(Y.resolve(t,n,".."))},"applyExecPath"),Yr=o(({env:u=v.env,...e}={})=>{u={...u};const t=TD({env:u});return e.path=u[t],u[t]=Ur(e),u},"npmRunPathEnv"),Vr=o((u,e,t,n)=>{if(t==="length"||t==="prototype"||t==="arguments"||t==="caller")return;const r=Object.getOwnPropertyDescriptor(u,t),s=Object.getOwnPropertyDescriptor(e,t);!Kr(r,s)&&n||Object.defineProperty(u,t,s)},"copyProperty"),Kr=o(function(u,e){return u===void 0||u.configurable||u.writable===e.writable&&u.enumerable===e.enumerable&&u.configurable===e.configurable&&(u.writable||u.value===e.value)},"canCopyProperty"),Jr=o((u,e)=>{const t=Object.getPrototypeOf(e);t!==Object.getPrototypeOf(u)&&Object.setPrototypeOf(u,t)},"changePrototype"),Xr=o((u,e)=>`/* Wrapped ${u}*/
24
+ ${e}`,"wrappedToString"),Zr=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Qr=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),uo=o((u,e,t)=>{const n=t===""?"":`with ${t.trim()}() `,r=Xr.bind(null,n,e.toString());Object.defineProperty(r,"name",Qr),Object.defineProperty(u,"toString",{...Zr,value:r})},"changeToString");function eo(u,e,{ignoreNonConfigurable:t=!1}={}){const{name:n}=u;for(const r of Reflect.ownKeys(e))Vr(u,e,r,t);return Jr(u,e),uo(u,e,n),u}o(eo,"mimicFunction");const pu=new WeakMap,ID=o((u,e={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let t,n=0;const r=u.displayName||u.name||"<anonymous>",s=o(function(...D){if(pu.set(s,++n),n===1)t=u.apply(this,D),u=null;else if(e.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return t},"onetime");return eo(s,u),pu.set(s,n),s},"onetime");ID.callCount=u=>{if(!pu.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return pu.get(u)};const Do=o(()=>{const u=RD-PD+1;return Array.from({length:u},to)},"getRealtimeSignals"),to=o((u,e)=>({name:`SIGRT${e+1}`,number:PD+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),"getRealtimeSignal"),PD=34,RD=64,no=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],_D=o(()=>{const u=Do();return[...no,...u].map(ro)},"getSignals"),ro=o(({name:u,number:e,description:t,action:n,forced:r=!1,standard:s})=>{const{signals:{[u]:D}}=Ue,a=D!==void 0;return{name:u,number:a?D:e,description:t,supported:a,action:n,forced:r,standard:s}},"normalizeSignal"),oo=o(()=>{const u=_D();return Object.fromEntries(u.map(so))},"getSignalsByName"),so=o(({name:u,number:e,description:t,supported:n,action:r,forced:s,standard:D})=>[u,{name:u,number:e,description:t,supported:n,action:r,forced:s,standard:D}],"getSignalByName"),io=oo(),ao=o(()=>{const u=_D(),e=RD+1,t=Array.from({length:e},(n,r)=>co(r,u));return Object.assign({},...t)},"getSignalsByNumber"),co=o((u,e)=>{const t=lo(u,e);if(t===void 0)return{};const{name:n,description:r,supported:s,action:D,forced:a,standard:i}=t;return{[u]:{name:n,number:u,description:r,supported:s,action:D,forced:a,standard:i}}},"getSignalByNumber"),lo=o((u,e)=>{const t=e.find(({name:n})=>Ue.signals[n]===u);return t!==void 0?t:e.find(n=>n.number===u)},"findSignalByNumber");ao();const Fo=o(({timedOut:u,timeout:e,errorCode:t,signal:n,signalDescription:r,exitCode:s,isCanceled:D})=>u?`timed out after ${e} milliseconds`:D?"was canceled":t!==void 0?`failed with ${t}`:n!==void 0?`was killed with ${n} (${r})`:s!==void 0?`failed with exit code ${s}`:"failed","getErrorPrefix"),kD=o(({stdout:u,stderr:e,all:t,error:n,signal:r,exitCode:s,command:D,escapedCommand:a,timedOut:i,isCanceled:c,killed:l,parsed:{options:{timeout:C,cwd:F=v.cwd()}}})=>{s=s===null?void 0:s,r=r===null?void 0:r;const E=r===void 0?void 0:io[r].description,f=n&&n.code,d=`Command ${Fo({timedOut:i,timeout:C,errorCode:f,signal:r,signalDescription:E,exitCode:s,isCanceled:c})}: ${D}`,p=Object.prototype.toString.call(n)==="[object Error]",h=p?`${d}
25
+ ${n.message}`:d,m=[h,e,u].filter(Boolean).join(`
26
+ `);return p?(n.originalMessage=n.message,n.message=m):n=new Error(m),n.shortMessage=h,n.command=D,n.escapedCommand=a,n.exitCode=s,n.signal=r,n.signalDescription=E,n.stdout=u,n.stderr=e,n.cwd=F,t!==void 0&&(n.all=t),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!i,n.isCanceled=c,n.killed=l&&!i,n},"makeError"),hu=["stdin","stdout","stderr"],Co=o(u=>hu.some(e=>u[e]!==void 0),"hasAlias"),fo=o(u=>{if(!u)return;const{stdio:e}=u;if(e===void 0)return hu.map(n=>u[n]);if(Co(u))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${hu.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);const t=Math.max(e.length,hu.length);return Array.from({length:t},(n,r)=>e[r])},"normalizeStdio");var U={exports:{}},ee={exports:{}},MD;function Eo(){return MD||(MD=1,function(u){u.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&u.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&u.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(ee)),ee.exports}o(Eo,"requireSignals");var jD;function po(){if(jD)return U.exports;jD=1;var u=G.process;const e=o(function(d){return d&&typeof d=="object"&&typeof d.removeListener=="function"&&typeof d.emit=="function"&&typeof d.reallyExit=="function"&&typeof d.listeners=="function"&&typeof d.kill=="function"&&typeof d.pid=="number"&&typeof d.on=="function"},"processOk");if(!e(u))U.exports=function(){return function(){}};else{var t=ze,n=Eo(),r=/^win/i.test(u.platform),s=He;typeof s!="function"&&(s=s.EventEmitter);var D;u.__signal_exit_emitter__?D=u.__signal_exit_emitter__:(D=u.__signal_exit_emitter__=new s,D.count=0,D.emitted={}),D.infinite||(D.setMaxListeners(1/0),D.infinite=!0),U.exports=function(d,p){if(!e(G.process))return function(){};t.equal(typeof d,"function","a callback must be provided for exit handler"),l===!1&&C();var h="exit";p&&p.alwaysLast&&(h="afterexit");var m=o(function(){D.removeListener(h,d),D.listeners("exit").length===0&&D.listeners("afterexit").length===0&&a()},"remove");return D.on(h,d),m};var a=o(function(){!l||!e(G.process)||(l=!1,n.forEach(function(p){try{u.removeListener(p,c[p])}catch{}}),u.emit=f,u.reallyExit=F,D.count-=1)},"unload");U.exports.unload=a;var i=o(function(p,h,m){D.emitted[p]||(D.emitted[p]=!0,D.emit(p,h,m))},"emit"),c={};n.forEach(function(d){c[d]=o(function(){if(e(G.process)){var h=u.listeners(d);h.length===D.count&&(a(),i("exit",null,d),i("afterexit",null,d),r&&d==="SIGHUP"&&(d="SIGINT"),u.kill(u.pid,d))}},"listener")}),U.exports.signals=function(){return n};var l=!1,C=o(function(){l||!e(G.process)||(l=!0,D.count+=1,n=n.filter(function(p){try{return u.on(p,c[p]),!0}catch{return!1}}),u.emit=g,u.reallyExit=E)},"load");U.exports.load=C;var F=u.reallyExit,E=o(function(p){e(G.process)&&(u.exitCode=p||0,i("exit",u.exitCode,null),i("afterexit",u.exitCode,null),F.call(u,u.exitCode))},"processReallyExit"),f=u.emit,g=o(function(p,h){if(p==="exit"&&e(G.process)){h!==void 0&&(u.exitCode=h);var m=f.apply(this,arguments);return i("exit",u.exitCode,null),i("afterexit",u.exitCode,null),m}else return f.apply(this,arguments)},"processEmit")}return U.exports}o(po,"requireSignalExit");var ho=po(),mo=K(ho);const go=1e3*5,Bo=o((u,e="SIGTERM",t={})=>{const n=u(e);return bo(u,e,t,n),n},"spawnedKill"),bo=o((u,e,t,n)=>{if(!yo(e,t,n))return;const r=wo(t),s=setTimeout(()=>{u("SIGKILL")},r);s.unref&&s.unref()},"setKillTimeout"),yo=o((u,{forceKillAfterTimeout:e},t)=>Ao(u)&&e!==!1&&t,"shouldForceKill"),Ao=o(u=>u===Jt.constants.signals.SIGTERM||typeof u=="string"&&u.toUpperCase()==="SIGTERM","isSigterm"),wo=o(({forceKillAfterTimeout:u=!0})=>{if(u===!0)return go;if(!Number.isFinite(u)||u<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${u}\` (${typeof u})`);return u},"getForceKillAfterTimeout"),vo=o((u,e)=>{u.kill()&&(e.isCanceled=!0)},"spawnedCancel"),$o=o((u,e,t)=>{u.kill(e),t(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},"timeoutKill"),xo=o((u,{timeout:e,killSignal:t="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let r;const s=new Promise((a,i)=>{r=setTimeout(()=>{$o(u,t,i)},e)}),D=n.finally(()=>{clearTimeout(r)});return Promise.race([s,D])},"setupTimeout"),So=o(({timeout:u})=>{if(u!==void 0&&(!Number.isFinite(u)||u<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${u}\` (${typeof u})`)},"validateTimeout"),Oo=o(async(u,{cleanup:e,detached:t},n)=>{if(!e||t)return n;const r=mo(()=>{u.kill()});return n.finally(()=>{r()})},"setExitHandler");function ND(u){return u!==null&&typeof u=="object"&&typeof u.pipe=="function"}o(ND,"isStream");function LD(u){return ND(u)&&u.writable!==!1&&typeof u._write=="function"&&typeof u._writableState=="object"}o(LD,"isWritableStream");const To=o(u=>u instanceof Vt&&typeof u.then=="function","isExecaChildProcess"),De=o((u,e,t)=>{if(typeof t=="string")return u[e].pipe(Xt(t)),u;if(LD(t))return u[e].pipe(t),u;if(!To(t))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!LD(t.stdin))throw new TypeError("The target child process's stdin must be available.");return u[e].pipe(t.stdin),t},"pipeToTarget"),Io=o(u=>{u.stdout!==null&&(u.pipeStdout=De.bind(void 0,u,"stdout")),u.stderr!==null&&(u.pipeStderr=De.bind(void 0,u,"stderr")),u.all!==void 0&&(u.pipeAll=De.bind(void 0,u,"all"))},"addPipeMethods");var J={exports:{}},te,GD;function Po(){if(GD)return te;GD=1;const{PassThrough:u}=_u;return te=o(e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const r=n==="buffer";let s=!1;t?s=!(n||r):n=n||"utf8",r&&(n=null);const D=new u({objectMode:s});n&&D.setEncoding(n);let a=0;const i=[];return D.on("data",c=>{i.push(c),s?a=i.length:a+=c.length}),D.getBufferedValue=()=>t?i:r?Buffer.concat(i,a):i.join(""),D.getBufferedLength=()=>a,D},"bufferStream"),te}o(Po,"requireBufferStream");var qD;function Ro(){if(qD)return J.exports;qD=1;const{constants:u}=Qt,e=_u,{promisify:t}=Ye,n=Po(),r=t(e.pipeline),a=class a extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};o(a,"MaxBufferError");let s=a;async function D(i,c){if(!i)throw new Error("Expected a stream");c={maxBuffer:1/0,...c};const{maxBuffer:l}=c,C=n(c);return await new Promise((F,E)=>{const f=o(g=>{g&&C.getBufferedLength()<=u.MAX_LENGTH&&(g.bufferedData=C.getBufferedValue()),E(g)},"rejectPromise");(async()=>{try{await r(i,C),F()}catch(g){f(g)}})(),C.on("data",()=>{C.getBufferedLength()>l&&f(new s)})}),C.getBufferedValue()}return o(D,"getStream"),J.exports=D,J.exports.buffer=(i,c)=>D(i,{...c,encoding:"buffer"}),J.exports.array=(i,c)=>D(i,{...c,array:!0}),J.exports.MaxBufferError=s,J.exports}o(Ro,"requireGetStream");var _o=Ro(),WD=K(_o),ne,UD;function ko(){if(UD)return ne;UD=1;const{PassThrough:u}=_u;return ne=o(function(){var e=[],t=new u({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=r,t.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(n),t;function n(D){return Array.isArray(D)?(D.forEach(n),this):(e.push(D),D.once("end",s.bind(null,D)),D.once("error",t.emit.bind(t,"error")),D.pipe(t,{end:!1}),this)}o(n,"add");function r(){return e.length==0}o(r,"isEmpty");function s(D){e=e.filter(function(a){return a!==D}),!e.length&&t.readable&&t.end()}o(s,"remove")},"mergeStream$1"),ne}o(ko,"requireMergeStream");var Mo=ko(),jo=K(Mo);const No=o(u=>{if(u!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},"validateInputOptions"),Lo=o(({input:u,inputFile:e})=>typeof e!="string"?u:(No(u),Zt(e)),"getInput"),Go=o((u,e)=>{const t=Lo(e);t!==void 0&&(ND(t)?t.pipe(u.stdin):u.stdin.end(t))},"handleInput"),qo=o((u,{all:e})=>{if(!e||!u.stdout&&!u.stderr)return;const t=jo();return u.stdout&&t.add(u.stdout),u.stderr&&t.add(u.stderr),t},"makeAllStream"),re=o(async(u,e)=>{if(!(!u||e===void 0)){u.destroy();try{return await e}catch(t){return t.bufferedData}}},"getBufferedData"),oe=o((u,{encoding:e,buffer:t,maxBuffer:n})=>{if(!(!u||!t))return e?WD(u,{encoding:e,maxBuffer:n}):WD.buffer(u,{maxBuffer:n})},"getStreamPromise"),Wo=o(async({stdout:u,stderr:e,all:t},{encoding:n,buffer:r,maxBuffer:s},D)=>{const a=oe(u,{encoding:n,buffer:r,maxBuffer:s}),i=oe(e,{encoding:n,buffer:r,maxBuffer:s}),c=oe(t,{encoding:n,buffer:r,maxBuffer:s*2});try{return await Promise.all([D,a,i,c])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},re(u,a),re(e,i),re(t,c)])}},"getSpawnedResult"),Uo=(async()=>{})().constructor.prototype,zo=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(Uo,u)]),zD=o((u,e)=>{for(const[t,n]of zo){const r=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(u,t,{...n,value:r})}},"mergePromise"),Ho=o(u=>new Promise((e,t)=>{u.on("exit",(n,r)=>{e({exitCode:n,signal:r})}),u.on("error",n=>{t(n)}),u.stdin&&u.stdin.on("error",n=>{t(n)})}),"getSpawnedPromise"),HD=o((u,e=[])=>Array.isArray(e)?[u,...e]:[u],"normalizeArgs"),Yo=/^[\w.-]+$/,Vo=/"/g,Ko=o(u=>typeof u!="string"||Yo.test(u)?u:`"${u.replace(Vo,'\\"')}"`,"escapeArg"),Jo=o((u,e)=>HD(u,e).join(" "),"joinCommand"),Xo=o((u,e)=>HD(u,e).map(t=>Ko(t)).join(" "),"getEscapedCommand"),Zo=un("execa").enabled,mu=o((u,e)=>String(u).padStart(e,"0"),"padField"),Qo=o(()=>{const u=new Date;return`${mu(u.getHours(),2)}:${mu(u.getMinutes(),2)}:${mu(u.getSeconds(),2)}.${mu(u.getMilliseconds(),3)}`},"getTimestamp"),us=o((u,{verbose:e})=>{e&&v.stderr.write(`[${Qo()}] ${u}
27
+ `)},"logCommand"),es=1e3*1e3*100,Ds=o(({env:u,extendEnv:e,preferLocal:t,localDir:n,execPath:r})=>{const s=e?{...v.env,...u}:u;return t?Yr({env:s,cwd:n,execPath:r}):s},"getEnv"),ts=o((u,e,t={})=>{const n=qr._parse(u,e,t);return u=n.command,e=n.args,t=n.options,t={maxBuffer:es,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:t.cwd||v.cwd(),execPath:v.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Zo,...t},t.env=Ds(t),t.stdio=fo(t),v.platform==="win32"&&Y.basename(u,".exe")==="cmd"&&e.unshift("/q"),{file:u,args:e,options:t,parsed:n}},"handleArguments"),se=o((u,e,t)=>typeof e!="string"&&!Yt.isBuffer(e)?t===void 0?void 0:"":u.stripFinalNewline?Wr(e):e,"handleOutput");function X(u,e,t){const n=ts(u,e,t),r=Jo(u,e),s=Xo(u,e);us(s,n.options),So(n.options);let D;try{D=Le.spawn(n.file,n.args,n.options)}catch(E){const f=new Le.ChildProcess,g=Promise.reject(kD({error:E,stdout:"",stderr:"",all:"",command:r,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return zD(f,g),f}const a=Ho(D),i=xo(D,n.options,a),c=Oo(D,n.options,i),l={isCanceled:!1};D.kill=Bo.bind(null,D.kill.bind(D)),D.cancel=vo.bind(null,D,l);const F=ID(o(async()=>{const[{error:E,exitCode:f,signal:g,timedOut:d},p,h,m]=await Wo(D,n.options,c),b=se(n.options,p),A=se(n.options,h),y=se(n.options,m);if(E||f!==0||g!==null){const O=kD({error:E,exitCode:f,signal:g,stdout:b,stderr:A,all:y,command:r,escapedCommand:s,parsed:n,timedOut:d,isCanceled:n.options.signal?n.options.signal.aborted:!1,killed:D.killed});if(!n.options.reject)return O;throw O}return{command:r,escapedCommand:s,exitCode:0,stdout:b,stderr:A,all:y,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},"handlePromise"));return Go(D,n.options),D.all=qo(D,n.options),Io(D),zD(D,F),D}o(X,"execa");let z=!0;const Z=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let tu=0;if(Z.process&&Z.process.env&&Z.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:e,NO_COLOR:t,TERM:n,COLORTERM:r}=Z.process.env;e||t||u==="0"?z=!1:u==="1"||u==="2"||u==="3"?z=!0:n==="dumb"?z=!1:"CI"in Z.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in Z.process.env)?z=!0:z=process.stdout.isTTY,z&&(process.platform==="win32"||r&&(r==="truecolor"||r==="24bit")?tu=3:n&&(n.endsWith("-256color")||n.endsWith("256"))?tu=2:tu=1)}let YD={enabled:z,supportLevel:tu};function nu(u,e,t=1){const n=`\x1B[${u}m`,r=`\x1B[${e}m`,s=new RegExp(`\\x1b\\[${e}m`,"g");return D=>YD.enabled&&YD.supportLevel>=t?n+(""+D).replace(s,n)+r:""+D}o(nu,"kolorist");const ie=nu(2,22),VD=nu(30,39),gu=nu(31,39),ru=nu(32,39),KD=nu(46,49);var ae,JD;function ns(){if(JD)return ae;JD=1;const u="\x1B",e=`${u}[`,t="\x07",n={to(D,a){return a?`${e}${a+1};${D+1}H`:`${e}${D+1}G`},move(D,a){let i="";return D<0?i+=`${e}${-D}D`:D>0&&(i+=`${e}${D}C`),a<0?i+=`${e}${-a}A`:a>0&&(i+=`${e}${a}B`),i},up:o((D=1)=>`${e}${D}A`,"up"),down:o((D=1)=>`${e}${D}B`,"down"),forward:o((D=1)=>`${e}${D}C`,"forward"),backward:o((D=1)=>`${e}${D}D`,"backward"),nextLine:o((D=1)=>`${e}E`.repeat(D),"nextLine"),prevLine:o((D=1)=>`${e}F`.repeat(D),"prevLine"),left:`${e}G`,hide:`${e}?25l`,show:`${e}?25h`,save:`${u}7`,restore:`${u}8`},r={up:o((D=1)=>`${e}S`.repeat(D),"up"),down:o((D=1)=>`${e}T`.repeat(D),"down")},s={screen:`${e}2J`,up:o((D=1)=>`${e}1J`.repeat(D),"up"),down:o((D=1)=>`${e}J`.repeat(D),"down"),line:`${e}2K`,lineEnd:`${e}K`,lineStart:`${e}1K`,lines(D){let a="";for(let i=0;i<D;i++)a+=this.line+(i<D-1?n.up():"");return D&&(a+=n.left),a}};return ae={cursor:n,scroll:r,erase:s,beep:t},ae}o(ns,"requireSrc$2");var x=ns(),Bu={exports:{}},XD;function rs(){if(XD)return Bu.exports;XD=1;let u=process||{},e=u.argv||[],t=u.env||{},n=!(t.NO_COLOR||e.includes("--no-color"))&&(!!t.FORCE_COLOR||e.includes("--color")||u.platform==="win32"||(u.stdout||{}).isTTY&&t.TERM!=="dumb"||!!t.CI),r=o((a,i,c=a)=>l=>{let C=""+l,F=C.indexOf(i,a.length);return~F?a+s(C,i,c,F)+i:a+C+i},"formatter"),s=o((a,i,c,l)=>{let C="",F=0;do C+=a.substring(F,l)+c,F=l+i.length,l=a.indexOf(i,F);while(~l);return C+a.substring(F)},"replaceClose"),D=o((a=n)=>{let i=a?r:()=>String;return{isColorSupported:a,reset:i("\x1B[0m","\x1B[0m"),bold:i("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:i("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:i("\x1B[3m","\x1B[23m"),underline:i("\x1B[4m","\x1B[24m"),inverse:i("\x1B[7m","\x1B[27m"),hidden:i("\x1B[8m","\x1B[28m"),strikethrough:i("\x1B[9m","\x1B[29m"),black:i("\x1B[30m","\x1B[39m"),red:i("\x1B[31m","\x1B[39m"),green:i("\x1B[32m","\x1B[39m"),yellow:i("\x1B[33m","\x1B[39m"),blue:i("\x1B[34m","\x1B[39m"),magenta:i("\x1B[35m","\x1B[39m"),cyan:i("\x1B[36m","\x1B[39m"),white:i("\x1B[37m","\x1B[39m"),gray:i("\x1B[90m","\x1B[39m"),bgBlack:i("\x1B[40m","\x1B[49m"),bgRed:i("\x1B[41m","\x1B[49m"),bgGreen:i("\x1B[42m","\x1B[49m"),bgYellow:i("\x1B[43m","\x1B[49m"),bgBlue:i("\x1B[44m","\x1B[49m"),bgMagenta:i("\x1B[45m","\x1B[49m"),bgCyan:i("\x1B[46m","\x1B[49m"),bgWhite:i("\x1B[47m","\x1B[49m"),blackBright:i("\x1B[90m","\x1B[39m"),redBright:i("\x1B[91m","\x1B[39m"),greenBright:i("\x1B[92m","\x1B[39m"),yellowBright:i("\x1B[93m","\x1B[39m"),blueBright:i("\x1B[94m","\x1B[39m"),magentaBright:i("\x1B[95m","\x1B[39m"),cyanBright:i("\x1B[96m","\x1B[39m"),whiteBright:i("\x1B[97m","\x1B[39m"),bgBlackBright:i("\x1B[100m","\x1B[49m"),bgRedBright:i("\x1B[101m","\x1B[49m"),bgGreenBright:i("\x1B[102m","\x1B[49m"),bgYellowBright:i("\x1B[103m","\x1B[49m"),bgBlueBright:i("\x1B[104m","\x1B[49m"),bgMagentaBright:i("\x1B[105m","\x1B[49m"),bgCyanBright:i("\x1B[106m","\x1B[49m"),bgWhiteBright:i("\x1B[107m","\x1B[49m")}},"createColors");return Bu.exports=D(),Bu.exports.createColors=D,Bu.exports}o(rs,"requirePicocolors");var os=rs(),B=K(os);function ss({onlyFirst:u=!1}={}){const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(e,u?void 0:"g")}o(ss,"J");const is=ss();function ZD(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(is,"")}o(ZD,"T$1");function QD(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}o(QD,"O");var ut={exports:{}};(function(u){var e={};u.exports=e,e.eastAsianWidth=function(n){var r=n.charCodeAt(0),s=n.length==2?n.charCodeAt(1):0,D=r;return 55296<=r&&r<=56319&&56320<=s&&s<=57343&&(r&=1023,s&=1023,D=r<<10|s,D+=65536),D==12288||65281<=D&&D<=65376||65504<=D&&D<=65510?"F":D==8361||65377<=D&&D<=65470||65474<=D&&D<=65479||65482<=D&&D<=65487||65490<=D&&D<=65495||65498<=D&&D<=65500||65512<=D&&D<=65518?"H":4352<=D&&D<=4447||4515<=D&&D<=4519||4602<=D&&D<=4607||9001<=D&&D<=9002||11904<=D&&D<=11929||11931<=D&&D<=12019||12032<=D&&D<=12245||12272<=D&&D<=12283||12289<=D&&D<=12350||12353<=D&&D<=12438||12441<=D&&D<=12543||12549<=D&&D<=12589||12593<=D&&D<=12686||12688<=D&&D<=12730||12736<=D&&D<=12771||12784<=D&&D<=12830||12832<=D&&D<=12871||12880<=D&&D<=13054||13056<=D&&D<=19903||19968<=D&&D<=42124||42128<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||55216<=D&&D<=55238||55243<=D&&D<=55291||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65106||65108<=D&&D<=65126||65128<=D&&D<=65131||110592<=D&&D<=110593||127488<=D&&D<=127490||127504<=D&&D<=127546||127552<=D&&D<=127560||127568<=D&&D<=127569||131072<=D&&D<=194367||177984<=D&&D<=196605||196608<=D&&D<=262141?"W":32<=D&&D<=126||162<=D&&D<=163||165<=D&&D<=166||D==172||D==175||10214<=D&&D<=10221||10629<=D&&D<=10630?"Na":D==161||D==164||167<=D&&D<=168||D==170||173<=D&&D<=174||176<=D&&D<=180||182<=D&&D<=186||188<=D&&D<=191||D==198||D==208||215<=D&&D<=216||222<=D&&D<=225||D==230||232<=D&&D<=234||236<=D&&D<=237||D==240||242<=D&&D<=243||247<=D&&D<=250||D==252||D==254||D==257||D==273||D==275||D==283||294<=D&&D<=295||D==299||305<=D&&D<=307||D==312||319<=D&&D<=322||D==324||328<=D&&D<=331||D==333||338<=D&&D<=339||358<=D&&D<=359||D==363||D==462||D==464||D==466||D==468||D==470||D==472||D==474||D==476||D==593||D==609||D==708||D==711||713<=D&&D<=715||D==717||D==720||728<=D&&D<=731||D==733||D==735||768<=D&&D<=879||913<=D&&D<=929||931<=D&&D<=937||945<=D&&D<=961||963<=D&&D<=969||D==1025||1040<=D&&D<=1103||D==1105||D==8208||8211<=D&&D<=8214||8216<=D&&D<=8217||8220<=D&&D<=8221||8224<=D&&D<=8226||8228<=D&&D<=8231||D==8240||8242<=D&&D<=8243||D==8245||D==8251||D==8254||D==8308||D==8319||8321<=D&&D<=8324||D==8364||D==8451||D==8453||D==8457||D==8467||D==8470||8481<=D&&D<=8482||D==8486||D==8491||8531<=D&&D<=8532||8539<=D&&D<=8542||8544<=D&&D<=8555||8560<=D&&D<=8569||D==8585||8592<=D&&D<=8601||8632<=D&&D<=8633||D==8658||D==8660||D==8679||D==8704||8706<=D&&D<=8707||8711<=D&&D<=8712||D==8715||D==8719||D==8721||D==8725||D==8730||8733<=D&&D<=8736||D==8739||D==8741||8743<=D&&D<=8748||D==8750||8756<=D&&D<=8759||8764<=D&&D<=8765||D==8776||D==8780||D==8786||8800<=D&&D<=8801||8804<=D&&D<=8807||8810<=D&&D<=8811||8814<=D&&D<=8815||8834<=D&&D<=8835||8838<=D&&D<=8839||D==8853||D==8857||D==8869||D==8895||D==8978||9312<=D&&D<=9449||9451<=D&&D<=9547||9552<=D&&D<=9587||9600<=D&&D<=9615||9618<=D&&D<=9621||9632<=D&&D<=9633||9635<=D&&D<=9641||9650<=D&&D<=9651||9654<=D&&D<=9655||9660<=D&&D<=9661||9664<=D&&D<=9665||9670<=D&&D<=9672||D==9675||9678<=D&&D<=9681||9698<=D&&D<=9701||D==9711||9733<=D&&D<=9734||D==9737||9742<=D&&D<=9743||9748<=D&&D<=9749||D==9756||D==9758||D==9792||D==9794||9824<=D&&D<=9825||9827<=D&&D<=9829||9831<=D&&D<=9834||9836<=D&&D<=9837||D==9839||9886<=D&&D<=9887||9918<=D&&D<=9919||9924<=D&&D<=9933||9935<=D&&D<=9953||D==9955||9960<=D&&D<=9983||D==10045||D==10071||10102<=D&&D<=10111||11093<=D&&D<=11097||12872<=D&&D<=12879||57344<=D&&D<=63743||65024<=D&&D<=65039||D==65533||127232<=D&&D<=127242||127248<=D&&D<=127277||127280<=D&&D<=127337||127344<=D&&D<=127386||917760<=D&&D<=917999||983040<=D&&D<=1048573||1048576<=D&&D<=1114109?"A":"N"},e.characterLength=function(n){var r=this.eastAsianWidth(n);return r=="F"||r=="W"||r=="A"?2:1};function t(n){return n.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}o(t,"F"),e.length=function(n){for(var r=t(n),s=0,D=0;D<r.length;D++)s=s+this.characterLength(r[D]);return s},e.slice=function(n,r,s){textLen=e.length(n),r=r||0,s=s||1,r<0&&(r=textLen+r),s<0&&(s=textLen+s);for(var D="",a=0,i=t(n),c=0;c<i.length;c++){var l=i[c],C=e.length(l);if(a>=r-(C==2?1:0))if(a+C<=s)D+=l;else break;a+=C}return D}})(ut);var as=ut.exports;const cs=QD(as);var ls=o(function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\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]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\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-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\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[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},"uD");const Fs=QD(ls);function ou(u,e={}){if(typeof u!="string"||u.length===0||(e={ambiguousIsNarrow:!0,...e},u=ZD(u),u.length===0))return 0;u=u.replace(Fs()," ");const t=e.ambiguousIsNarrow?1:2;let n=0;for(const r of u){const s=r.codePointAt(0);if(!(s<=31||s>=127&&s<=159||s>=768&&s<=879))switch(cs.eastAsianWidth(r)){case"F":case"W":n+=2;break;case"A":n+=t;break;default:n+=1}}return n}o(ou,"p");const ce=10,et=o((u=0)=>e=>`\x1B[${e+u}m`,"L$1"),Dt=o((u=0)=>e=>`\x1B[${38+u};5;${e}m`,"W"),tt=o((u=0)=>(e,t,n)=>`\x1B[${38+u};2;${e};${t};${n}m`,"N"),w={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(w.modifier);const Cs=Object.keys(w.color),fs=Object.keys(w.bgColor);[...Cs,...fs];function ds(){const u=new Map;for(const[e,t]of Object.entries(w)){for(const[n,r]of Object.entries(t))w[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},t[n]=w[n],u.set(r[0],r[1]);Object.defineProperty(w,e,{value:t,enumerable:!1})}return Object.defineProperty(w,"codes",{value:u,enumerable:!1}),w.color.close="\x1B[39m",w.bgColor.close="\x1B[49m",w.color.ansi=et(),w.color.ansi256=Dt(),w.color.ansi16m=tt(),w.bgColor.ansi=et(ce),w.bgColor.ansi256=Dt(ce),w.bgColor.ansi16m=tt(ce),Object.defineProperties(w,{rgbToAnsi256:{value:o((e,t,n)=>e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5),"value"),enumerable:!1},hexToRgb:{value:o(e=>{const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(s=>s+s).join(""));const r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},"value"),enumerable:!1},hexToAnsi256:{value:o(e=>w.rgbToAnsi256(...w.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value:o(e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;const a=e%36;t=Math.floor(e/36)/5,n=Math.floor(a/6)/5,r=a%6/5}const s=Math.max(t,n,r)*2;if(s===0)return 30;let D=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return s===2&&(D+=60),D},"value"),enumerable:!1},rgbToAnsi:{value:o((e,t,n)=>w.ansi256ToAnsi(w.rgbToAnsi256(e,t,n)),"value"),enumerable:!1},hexToAnsi:{value:o(e=>w.ansi256ToAnsi(w.hexToAnsi256(e)),"value"),enumerable:!1}}),w}o(ds,"sD");const Es=ds(),bu=new Set(["\x1B","\x9B"]),ps=39,le="\x07",nt="[",hs="]",rt="m",Fe=`${hs}8;;`,ot=o(u=>`${bu.values().next().value}${nt}${u}${rt}`,"V$1"),st=o(u=>`${bu.values().next().value}${Fe}${u}${le}`,"z"),ms=o(u=>u.split(" ").map(e=>ou(e)),"ED"),Ce=o((u,e,t)=>{const n=[...e];let r=!1,s=!1,D=ou(ZD(u[u.length-1]));for(const[a,i]of n.entries()){const c=ou(i);if(D+c<=t?u[u.length-1]+=i:(u.push(i),D=0),bu.has(i)&&(r=!0,s=n.slice(a+1).join("").startsWith(Fe)),r){s?i===le&&(r=!1,s=!1):i===rt&&(r=!1);continue}D+=c,D===t&&a<n.length-1&&(u.push(""),D=0)}!D&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"_"),gs=o(u=>{const e=u.split(" ");let t=e.length;for(;t>0&&!(ou(e[t-1])>0);)t--;return t===e.length?u:e.slice(0,t).join(" ")+e.slice(t).join("")},"nD"),Bs=o((u,e,t={})=>{if(t.trim!==!1&&u.trim()==="")return"";let n="",r,s;const D=ms(u);let a=[""];for(const[c,l]of u.split(" ").entries()){t.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let C=ou(a[a.length-1]);if(c!==0&&(C>=e&&(t.wordWrap===!1||t.trim===!1)&&(a.push(""),C=0),(C>0||t.trim===!1)&&(a[a.length-1]+=" ",C++)),t.hard&&D[c]>e){const F=e-C,E=1+Math.floor((D[c]-F-1)/e);Math.floor((D[c]-1)/e)<E&&a.push(""),Ce(a,l,e);continue}if(C+D[c]>e&&C>0&&D[c]>0){if(t.wordWrap===!1&&C<e){Ce(a,l,e);continue}a.push("")}if(C+D[c]>e&&t.wordWrap===!1){Ce(a,l,e);continue}a[a.length-1]+=l}t.trim!==!1&&(a=a.map(c=>gs(c)));const i=[...a.join(`
28
+ `)];for(const[c,l]of i.entries()){if(n+=l,bu.has(l)){const{groups:F}=new RegExp(`(?:\\${nt}(?<code>\\d+)m|\\${Fe}(?<uri>.*)${le})`).exec(i.slice(c).join(""))||{groups:{}};if(F.code!==void 0){const E=Number.parseFloat(F.code);r=E===ps?void 0:E}else F.uri!==void 0&&(s=F.uri.length===0?void 0:F.uri)}const C=Es.codes.get(Number(r));i[c+1]===`
29
+ `?(s&&(n+=st("")),r&&C&&(n+=ot(C))):l===`
30
+ `&&(r&&C&&(n+=ot(r)),s&&(n+=st(s)))}return n},"oD");function it(u,e,t){return String(u).normalize().replace(/\r\n/g,`
31
31
  `).split(`
32
- `).map(n=>pi(n,D,e)).join(`
33
- `)}s(At,"R");var hi=Object.defineProperty,mi=s((u,D,e)=>D in u?hi(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,"aD"),k=s((u,D,e)=>(mi(u,typeof D!="symbol"?D+"":D,e),e),"a$1");function gi(u,D){if(u===D)return;const e=u.split(`
34
- `),n=D.split(`
35
- `),r=[];for(let o=0;o<Math.max(e.length,n.length);o++)e[o]!==n[o]&&r.push(o);return r}s(gi,"hD");const wt=Symbol("clack:cancel");function $t(u){return u===wt}s($t,"lD");function Ou(u,D){u.isTTY&&u.setRawMode(D)}s(Ou,"v");const vt=new Map([["k","up"],["j","down"],["h","left"],["l","right"]]),Bi=new Set(["up","down","left","right","space","enter"]),ZD=class ZD{constructor({render:D,input:e=te,output:n=ne,...r},o=!0){k(this,"input"),k(this,"output"),k(this,"rl"),k(this,"opts"),k(this,"_track",!1),k(this,"_render"),k(this,"_cursor",0),k(this,"state","initial"),k(this,"value"),k(this,"error",""),k(this,"subscribers",new Map),k(this,"_prevFrame",""),this.opts=r,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=D.bind(this),this._track=o,this.input=e,this.output=n}prompt(){const D=new mn(0);return D._write=(e,n,r)=>{this._track&&(this.value=this.rl.line.replace(/\t/g,""),this._cursor=this.rl.cursor,this.emit("value",this.value)),r()},this.input.pipe(D),this.rl=ce.createInterface({input:this.input,output:D,tabSize:2,prompt:"",escapeCodeTimeout:50}),ce.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),Ou(this.input,!0),this.output.on("resize",this.render),this.render(),new Promise((e,n)=>{this.once("submit",()=>{this.output.write(w.cursor.show),this.output.off("resize",this.render),Ou(this.input,!1),e(this.value)}),this.once("cancel",()=>{this.output.write(w.cursor.show),this.output.off("resize",this.render),Ou(this.input,!1),e(wt)})})}on(D,e){const n=this.subscribers.get(D)??[];n.push({cb:e}),this.subscribers.set(D,n)}once(D,e){const n=this.subscribers.get(D)??[];n.push({cb:e,once:!0}),this.subscribers.set(D,n)}emit(D,...e){const n=this.subscribers.get(D)??[],r=[];for(const o of n)o.cb(...e),o.once&&r.push(()=>n.splice(n.indexOf(o),1));for(const o of r)o()}unsubscribe(){this.subscribers.clear()}onKeypress(D,e){if(this.state==="error"&&(this.state="active"),e?.name&&!this._track&&vt.has(e.name)&&this.emit("cursor",vt.get(e.name)),e?.name&&Bi.has(e.name)&&this.emit("cursor",e.name),D&&(D.toLowerCase()==="y"||D.toLowerCase()==="n")&&this.emit("confirm",D.toLowerCase()==="y"),D===" "&&this.opts.placeholder&&(this.value||(this.rl.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),D&&this.emit("key",D.toLowerCase()),e?.name==="return"){if(this.opts.validate){const n=this.opts.validate(this.value);n&&(this.error=n,this.state="error",this.rl.write(this.value))}this.state!=="error"&&(this.state="submit")}D===""&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
36
- `),Ou(this.input,!1),this.rl.close(),this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const D=At(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
37
- `).length-1;this.output.write(w.cursor.move(-999,D*-1))}render(){const D=At(this._render(this)??"",process.stdout.columns,{hard:!0});if(D!==this._prevFrame){if(this.state==="initial")this.output.write(w.cursor.hide);else{const e=gi(this._prevFrame,D);if(this.restoreCursor(),e&&e?.length===1){const n=e[0];this.output.write(w.cursor.move(0,n)),this.output.write(w.erase.lines(1));const r=D.split(`
38
- `);this.output.write(r[n]),this._prevFrame=D,this.output.write(w.cursor.move(0,r.length-n-1));return}else if(e&&e?.length>1){const n=e[0];this.output.write(w.cursor.move(0,n)),this.output.write(w.erase.down());const r=D.split(`
32
+ `).map(n=>Bs(n,e,t)).join(`
33
+ `)}o(it,"G");const bs=["up","down","left","right","space","enter","cancel"],yu={actions:new Set(bs),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function fe(u,e){if(typeof u=="string")return yu.aliases.get(u)===e;for(const t of u)if(t!==void 0&&fe(t,e))return!0;return!1}o(fe,"k");function ys(u,e){if(u===e)return;const t=u.split(`
34
+ `),n=e.split(`
35
+ `),r=[];for(let s=0;s<Math.max(t.length,n.length);s++)t[s]!==n[s]&&r.push(s);return r}o(ys,"hD");const As=globalThis.process.platform.startsWith("win"),de=Symbol("clack:cancel");function at(u){return u===de}o(at,"BD");function Au(u,e){const t=u;t.isTTY&&t.setRawMode(e)}o(Au,"d");function ws({input:u=Ge,output:e=qe,overwrite:t=!0,hideCursor:n=!0}={}){const r=cu.createInterface({input:u,output:e,prompt:"",tabSize:1});cu.emitKeypressEvents(u,r),u.isTTY&&u.setRawMode(!0);const s=o((D,{name:a,sequence:i})=>{const c=String(D);if(fe([c,a,i],"cancel")){n&&e.write(x.cursor.show),process.exit(0);return}if(!t)return;const l=a==="return"?0:-1,C=a==="return"?-1:0;cu.moveCursor(e,l,C,()=>{cu.clearLine(e,1,()=>{u.once("keypress",s)})})},"i");return n&&e.write(x.cursor.hide),u.once("keypress",s),()=>{u.off("keypress",s),n&&e.write(x.cursor.show),u.isTTY&&!As&&u.setRawMode(!1),r.terminal=!1,r.close()}}o(ws,"cD");var vs=Object.defineProperty,$s=o((u,e,t)=>e in u?vs(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,"pD"),P=o((u,e,t)=>($s(u,typeof e!="symbol"?e+"":e,t),t),"l");const _e=class _e{constructor(e,t=!0){P(this,"input"),P(this,"output"),P(this,"_abortSignal"),P(this,"rl"),P(this,"opts"),P(this,"_render"),P(this,"_track",!1),P(this,"_prevFrame",""),P(this,"_subscribers",new Map),P(this,"_cursor",0),P(this,"state","initial"),P(this,"error",""),P(this,"value");const{input:n=Ge,output:r=qe,render:s,signal:D,...a}=e;this.opts=a,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=s.bind(this),this._track=t,this._abortSignal=D,this.input=n,this.output=r}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){const n=this._subscribers.get(e)??[];n.push(t),this._subscribers.set(e,n)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){const n=this._subscribers.get(e)??[],r=[];for(const s of n)s.cb(...t),s.once&&r.push(()=>n.splice(n.indexOf(s),1));for(const s of r)s()}prompt(){return new Promise((e,t)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),e(de);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}const n=new en(0);n._write=(r,s,D)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),D()},this.input.pipe(n),this.rl=Ve.createInterface({input:this.input,output:n,tabSize:2,prompt:"",escapeCodeTimeout:50}),Ve.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),Au(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(x.cursor.show),this.output.off("resize",this.render),Au(this.input,!1),e(this.value)}),this.once("cancel",()=>{this.output.write(x.cursor.show),this.output.off("resize",this.render),Au(this.input,!1),e(de)})})}onKeypress(e,t){if(this.state==="error"&&(this.state="active"),t?.name&&(!this._track&&yu.aliases.has(t.name)&&this.emit("cursor",yu.aliases.get(t.name)),yu.actions.has(t.name)&&this.emit("cursor",t.name)),e&&(e.toLowerCase()==="y"||e.toLowerCase()==="n")&&this.emit("confirm",e.toLowerCase()==="y"),e===" "&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),e&&this.emit("key",e.toLowerCase()),t?.name==="return"){if(this.opts.validate){const n=this.opts.validate(this.value);n&&(this.error=n,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}fe([e,t?.name,t?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
36
+ `),Au(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const e=it(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
37
+ `).length-1;this.output.write(x.cursor.move(-999,e*-1))}render(){const e=it(this._render(this)??"",process.stdout.columns,{hard:!0});if(e!==this._prevFrame){if(this.state==="initial")this.output.write(x.cursor.hide);else{const t=ys(this._prevFrame,e);if(this.restoreCursor(),t&&t?.length===1){const n=t[0];this.output.write(x.cursor.move(0,n)),this.output.write(x.erase.lines(1));const r=e.split(`
38
+ `);this.output.write(r[n]),this._prevFrame=e,this.output.write(x.cursor.move(0,r.length-n-1));return}if(t&&t?.length>1){const n=t[0];this.output.write(x.cursor.move(0,n)),this.output.write(x.erase.down());const r=e.split(`
39
39
  `).slice(n);this.output.write(r.join(`
40
- `)),this._prevFrame=D;return}this.output.write(w.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}};s(ZD,"x");let Tu=ZD;const XD=class XD extends Tu{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",e=>{this.output.write(w.cursor.move(0,-1)),this.value=e,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};s(XD,"BD");let wD=XD;var bi=Object.defineProperty,yi=s((u,D,e)=>D in u?bi(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,"yD"),xt=s((u,D,e)=>(yi(u,typeof D!="symbol"?D+"":D,e),e),"Z");let Ai=(Du=class extends Tu{constructor(D){super(D,!1),xt(this,"options"),xt(this,"cursor",0),this.options=D.options,this.cursor=this.options.findIndex(({value:e})=>e===D.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",e=>{switch(e){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}},s(Du,"$D"),Du);const wi=globalThis.process.platform.startsWith("win");function $i({input:u=te,output:D=ne,overwrite:e=!0,hideCursor:n=!0}={}){const r=du.createInterface({input:u,output:D,prompt:"",tabSize:1});du.emitKeypressEvents(u,r),u.isTTY&&u.setRawMode(!0);const o=s((t,{name:i})=>{if(String(t)===""){n&&D.write(w.cursor.show),process.exit(0);return}if(!e)return;let a=i==="return"?0:-1,l=i==="return"?-1:0;du.moveCursor(D,a,l,()=>{du.clearLine(D,1,()=>{u.once("keypress",o)})})},"C");return n&&D.write(w.cursor.hide),u.once("keypress",o),()=>{u.off("keypress",o),n&&D.write(w.cursor.show),u.isTTY&&!wi&&u.setRawMode(!1),r.terminal=!1,r.close()}}s($i,"OD");function vi(){return y.platform!=="win32"?y.env.TERM!=="linux":!!y.env.CI||!!y.env.WT_SESSION||!!y.env.TERMINUS_SUBLIME||y.env.ConEmuTask==="{cmd::Cmder}"||y.env.TERM_PROGRAM==="Terminus-Sublime"||y.env.TERM_PROGRAM==="vscode"||y.env.TERM==="xterm-256color"||y.env.TERM==="alacritty"||y.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}s(vi,"K");const $D=vi(),R=s((u,D)=>$D?u:D,"u"),xi=R("\u25C6","*"),St=R("\u25A0","x"),Ot=R("\u25B2","x"),Tt=R("\u25C7","o"),Si=R("\u250C","T"),I=R("\u2502","|"),vD=R("\u2514","\u2014"),xD=R("\u25CF",">"),SD=R("\u25CB"," "),It=s(u=>{switch(u){case"initial":case"active":return h.cyan(xi);case"cancel":return h.red(St);case"error":return h.yellow(Ot);case"submit":return h.green(Tt)}},"y"),Oi=s(u=>{const{cursor:D,options:e,style:n}=u,r=u.maxItems??1/0,o=Math.max(process.stdout.rows-4,0),t=Math.min(o,Math.max(r,5));let i=0;D>=i+t-3?i=Math.max(Math.min(D-t+3,e.length-t),0):D<i+2&&(i=Math.max(D-2,0));const a=t<e.length&&i>0,l=t<e.length&&i+t<e.length;return e.slice(i,i+t).map((C,c,F)=>{const f=c===0&&a,d=c===F.length-1&&l;return f||d?h.dim("..."):n(C,c+i===D)})},"E"),Ti=s(u=>{const D=u.active??"Yes",e=u.inactive??"No";return new wD({active:D,inactive:e,initialValue:u.initialValue??!0,render(){const n=`${h.gray(I)}
41
- ${It(this.state)} ${u.message}
42
- `,r=this.value?D:e;switch(this.state){case"submit":return`${n}${h.gray(I)} ${h.dim(r)}`;case"cancel":return`${n}${h.gray(I)} ${h.strikethrough(h.dim(r))}
43
- ${h.gray(I)}`;default:return`${n}${h.cyan(I)} ${this.value?`${h.green(xD)} ${D}`:`${h.dim(SD)} ${h.dim(D)}`} ${h.dim("/")} ${this.value?`${h.dim(SD)} ${h.dim(e)}`:`${h.green(xD)} ${e}`}
44
- ${h.cyan(vD)}
45
- `}}}).prompt()},"ce"),Ii=s(u=>{const D=s((e,n)=>{const r=e.label??String(e.value);switch(n){case"selected":return`${h.dim(r)}`;case"active":return`${h.green(xD)} ${r} ${e.hint?h.dim(`(${e.hint})`):""}`;case"cancelled":return`${h.strikethrough(h.dim(r))}`;default:return`${h.dim(SD)} ${h.dim(r)}`}},"n");return new Ai({options:u.options,initialValue:u.initialValue,render(){const e=`${h.gray(I)}
46
- ${It(this.state)} ${u.message}
47
- `;switch(this.state){case"submit":return`${e}${h.gray(I)} ${D(this.options[this.cursor],"selected")}`;case"cancel":return`${e}${h.gray(I)} ${D(this.options[this.cursor],"cancelled")}
48
- ${h.gray(I)}`;default:return`${e}${h.cyan(I)} ${Oi({cursor:this.cursor,options:this.options,maxItems:u.maxItems,style:s((n,r)=>D(n,r?"active":"inactive"),"style")}).join(`
49
- ${h.cyan(I)} `)}
50
- ${h.cyan(vD)}
51
- `}}}).prompt()},"le"),Pt=s((u="")=>{process.stdout.write(`${h.gray(Si)} ${u}
52
- `)},"pe"),W=s((u="")=>{process.stdout.write(`${h.gray(I)}
53
- ${h.gray(vD)} ${u}
40
+ `)),this._prevFrame=e;return}this.output.write(x.erase.down())}this.output.write(e),this.state==="initial"&&(this.state="active"),this._prevFrame=e}}};o(_e,"x");let wu=_e;const ke=class ke extends wu{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",t=>{this.output.write(x.cursor.move(0,-1)),this.value=t,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}};o(ke,"fD");let Ee=ke;var xs=Object.defineProperty,Ss=o((u,e,t)=>e in u?xs(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t,"SD"),ct=o((u,e,t)=>(Ss(u,typeof e!="symbol"?e+"":e,t),t),"q");const Me=class Me extends wu{constructor(e){super(e,!1),ct(this,"options"),ct(this,"cursor",0),this.options=e.options,this.cursor=this.options.findIndex(({value:t})=>t===e.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",t=>{switch(t){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}};o(Me,"jD");let pe=Me;function Os(){return v.platform!=="win32"?v.env.TERM!=="linux":!!v.env.CI||!!v.env.WT_SESSION||!!v.env.TERMINUS_SUBLIME||v.env.ConEmuTask==="{cmd::Cmder}"||v.env.TERM_PROGRAM==="Terminus-Sublime"||v.env.TERM_PROGRAM==="vscode"||v.env.TERM==="xterm-256color"||v.env.TERM==="alacritty"||v.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}o(Os,"X");const he=Os(),j=o((u,e)=>he?u:e,"u"),Ts=j("\u25C6","*"),lt=j("\u25A0","x"),Ft=j("\u25B2","x"),Ct=j("\u25C7","o"),Is=j("\u250C","T"),R=j("\u2502","|"),me=j("\u2514","\u2014"),ge=j("\u25CF",">"),Be=j("\u25CB"," "),ft=o(u=>{switch(u){case"initial":case"active":return B.cyan(Ts);case"cancel":return B.red(lt);case"error":return B.yellow(Ft);case"submit":return B.green(Ct)}},"y"),Ps=o(u=>{const{cursor:e,options:t,style:n}=u,r=u.maxItems??Number.POSITIVE_INFINITY,s=Math.max(process.stdout.rows-4,0),D=Math.min(s,Math.max(r,5));let a=0;e>=a+D-3?a=Math.max(Math.min(e-D+3,t.length-D),0):e<a+2&&(a=Math.max(e-2,0));const i=D<t.length&&a>0,c=D<t.length&&a+D<t.length;return t.slice(a,a+D).map((l,C,F)=>{const E=C===0&&i,f=C===F.length-1&&c;return E||f?B.dim("..."):n(l,C+a===e)})},"A"),Rs=o(u=>{const e=u.active??"Yes",t=u.inactive??"No";return new Ee({active:e,inactive:t,initialValue:u.initialValue??!0,render(){const n=`${B.gray(R)}
41
+ ${ft(this.state)} ${u.message}
42
+ `,r=this.value?e:t;switch(this.state){case"submit":return`${n}${B.gray(R)} ${B.dim(r)}`;case"cancel":return`${n}${B.gray(R)} ${B.strikethrough(B.dim(r))}
43
+ ${B.gray(R)}`;default:return`${n}${B.cyan(R)} ${this.value?`${B.green(ge)} ${e}`:`${B.dim(Be)} ${B.dim(e)}`} ${B.dim("/")} ${this.value?`${B.dim(Be)} ${B.dim(t)}`:`${B.green(ge)} ${t}`}
44
+ ${B.cyan(me)}
45
+ `}}}).prompt()},"me"),_s=o(u=>{const e=o((t,n)=>{const r=t.label??String(t.value);switch(n){case"selected":return`${B.dim(r)}`;case"active":return`${B.green(ge)} ${r} ${t.hint?B.dim(`(${t.hint})`):""}`;case"cancelled":return`${B.strikethrough(B.dim(r))}`;default:return`${B.dim(Be)} ${B.dim(r)}`}},"n");return new pe({options:u.options,initialValue:u.initialValue,render(){const t=`${B.gray(R)}
46
+ ${ft(this.state)} ${u.message}
47
+ `;switch(this.state){case"submit":return`${t}${B.gray(R)} ${e(this.options[this.cursor],"selected")}`;case"cancel":return`${t}${B.gray(R)} ${e(this.options[this.cursor],"cancelled")}
48
+ ${B.gray(R)}`;default:return`${t}${B.cyan(R)} ${Ps({cursor:this.cursor,options:this.options,maxItems:u.maxItems,style:o((n,r)=>e(n,r?"active":"inactive"),"style")}).join(`
49
+ ${B.cyan(R)} `)}
50
+ ${B.cyan(me)}
51
+ `}}}).prompt()},"de"),dt=o((u="")=>{process.stdout.write(`${B.gray(Is)} ${u}
52
+ `)},"we"),H=o((u="")=>{process.stdout.write(`${B.gray(R)}
53
+ ${B.gray(me)} ${u}
54
54
 
55
- `)},"ge"),OD=s(()=>{const u=$D?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],D=$D?80:120;let e,n,r=!1,o="";const t=s(f=>{const d=f>1?"Something went wrong":"Canceled";r&&F(d,f)},"c"),i=s(()=>t(2),"l"),a=s(()=>t(1),"d"),l=s(()=>{process.on("uncaughtExceptionMonitor",i),process.on("unhandledRejection",i),process.on("SIGINT",a),process.on("SIGTERM",a),process.on("exit",t)},"p"),C=s(()=>{process.removeListener("uncaughtExceptionMonitor",i),process.removeListener("unhandledRejection",i),process.removeListener("SIGINT",a),process.removeListener("SIGTERM",a),process.removeListener("exit",t)},"S"),c=s((f="")=>{r=!0,e=$i(),o=f.replace(/\.+$/,""),process.stdout.write(`${h.gray(I)}
56
- `);let d=0,E=0;l(),n=setInterval(()=>{const p=h.magenta(u[d]),m=".".repeat(Math.floor(E)).slice(0,3);process.stdout.write(w.cursor.move(-999,0)),process.stdout.write(w.erase.down(1)),process.stdout.write(`${p} ${o}${m}`),d=d+1<u.length?d+1:0,E=E<u.length?E+.125:0},D)},"f"),F=s((f="",d=0)=>{o=f??o,r=!1,clearInterval(n);const E=d===0?h.green(Tt):d===1?h.red(St):h.red(Ot);process.stdout.write(w.cursor.move(-999,0)),process.stdout.write(w.erase.down(1)),process.stdout.write(`${E} ${o}
57
- `),C(),e()},"x");return{start:c,stop:F,message:s((f="")=>{o=f??o},"message")}},"_"),QD=class QD extends Error{};s(QD,"KnownError");let S=QD;const TD=" ",Iu=s(u=>{u instanceof Error&&!(u instanceof S)&&(u.stack&&console.error(pD(u.stack.split(`
55
+ `)},"fe"),be=o(()=>{const u=he?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],e=he?80:120,t=process.env.CI==="true";let n,r,s=!1,D="",a;const i=o(p=>{const h=p>1?"Something went wrong":"Canceled";s&&d(h,p)},"$"),c=o(()=>i(2),"d"),l=o(()=>i(1),"w"),C=o(()=>{process.on("uncaughtExceptionMonitor",c),process.on("unhandledRejection",c),process.on("SIGINT",l),process.on("SIGTERM",l),process.on("exit",i)},"b"),F=o(()=>{process.removeListener("uncaughtExceptionMonitor",c),process.removeListener("unhandledRejection",c),process.removeListener("SIGINT",l),process.removeListener("SIGTERM",l),process.removeListener("exit",i)},"C"),E=o(()=>{if(a===void 0)return;t&&process.stdout.write(`
56
+ `);const p=a.split(`
57
+ `);process.stdout.write(x.cursor.move(-999,p.length-1)),process.stdout.write(x.erase.down(p.length))},"I"),f=o(p=>p.replace(/\.+$/,""),"x"),g=o((p="")=>{s=!0,n=ws(),D=f(p),process.stdout.write(`${B.gray(R)}
58
+ `);let h=0,m=0;C(),r=setInterval(()=>{if(t&&D===a)return;E(),a=D;const b=B.magenta(u[h]),A=t?"...":".".repeat(Math.floor(m)).slice(0,3);process.stdout.write(`${b} ${D}${A}`),h=h+1<u.length?h+1:0,m=m<u.length?m+.125:0},e)},"N"),d=o((p="",h=0)=>{s=!1,clearInterval(r),E();const m=h===0?B.green(Ct):h===1?B.red(lt):B.red(Ft);D=f(p??D),process.stdout.write(`${m} ${D}
59
+ `),F(),n()},"k");return{start:g,stop:d,message:o((p="")=>{D=f(p??D)},"message")}},"L"),je=class je extends Error{};o(je,"KnownError");let S=je;const ye=" ",vu=o(u=>{u instanceof Error&&!(u instanceof S)&&(u.stack&&console.error(ie(u.stack.split(`
58
60
  `).slice(1).join(`
59
61
  `))),console.error(`
60
- ${TD}${pD(`aicommit v${Pe}`)}`),console.error(`
61
- ${TD}Please open a Bug report with the information above:`),console.error(`${TD}https://github.com/NegoZiatoR/ai-commit/issues/new/choose`))},"handleCliError"),kt=s(async()=>{const{stdout:u,failed:D}=await Z("git",["rev-parse","--show-toplevel"],{reject:!1});if(D)throw new S("The current directory must be a Git repository!");return u},"assertGitRepo"),ID=s(u=>`:(exclude)${u}`,"excludeFromDiff"),_t=["package-lock.json","*.lock"].map(ID),Rt=s(async u=>{const D=["diff","--cached","--diff-algorithm=minimal"],{stdout:e}=await Z("git",[...D,"--name-only",..._t,...u?u.map(ID):[]]);if(!e)return;const{stdout:n}=await Z("git",[...D,..._t,...u?u.map(ID):[]]);return{files:e.split(`
62
- `),diff:n}},"getStagedDiff"),Pi=s(u=>`Detected ${u.length.toLocaleString()} staged file${u.length>1?"s":""}`,"getDetectedMessage"),{hasOwnProperty:PD}=Object.prototype,kD=s((u,D={})=>{typeof D=="string"&&(D={section:D}),D.align=D.align===!0,D.newline=D.newline===!0,D.sort=D.sort===!0,D.whitespace=D.whitespace===!0||D.align===!0,D.platform=D.platform||typeof process<"u"&&process.platform,D.bracketedArray=D.bracketedArray!==!1;const e=D.platform==="win32"?`\r
62
+ ${ye}${ie(`aicommit v${pD}`)}`),console.error(`
63
+ ${ye}Please open a Bug report with the information above:`),console.error(`${ye}https://github.com/NegoZiatoR/ai-commit/issues/new/choose`))},"handleCliError"),Et=o(async()=>{const{stdout:u,failed:e}=await X("git",["rev-parse","--show-toplevel"],{reject:!1});if(e)throw new S("The current directory must be a Git repository!");return u},"assertGitRepo"),Ae=o(u=>`:(exclude)${u}`,"excludeFromDiff"),pt=["package-lock.json","*.lock"].map(Ae),ht=o(async u=>{const e=["diff","--cached","--diff-algorithm=minimal"],{stdout:t}=await X("git",[...e,"--name-only",...pt,...u?u.map(Ae):[]]);if(!t)return;const{stdout:n}=await X("git",[...e,...pt,...u?u.map(Ae):[]]);return{files:t.split(`
64
+ `),diff:n}},"getStagedDiff"),ks=o(u=>`Detected ${u.length.toLocaleString()} staged file${u.length>1?"s":""}`,"getDetectedMessage");var we,mt;function Ms(){if(mt)return we;mt=1;const{hasOwnProperty:u}=Object.prototype,e=o((a,i={})=>{typeof i=="string"&&(i={section:i}),i.align=i.align===!0,i.newline=i.newline===!0,i.sort=i.sort===!0,i.whitespace=i.whitespace===!0||i.align===!0,i.platform=i.platform||typeof process<"u"&&process.platform,i.bracketedArray=i.bracketedArray!==!1;const c=i.platform==="win32"?`\r
63
65
  `:`
64
- `,n=D.whitespace?" = ":"=",r=[],o=D.sort?Object.keys(u).sort():Object.keys(u);let t=0;D.align&&(t=M(o.filter(l=>u[l]===null||Array.isArray(u[l])||typeof u[l]!="object").map(l=>Array.isArray(u[l])?`${l}[]`:l).concat([""]).reduce((l,C)=>M(l).length>=M(C).length?l:C)).length);let i="";const a=D.bracketedArray?"[]":"";for(const l of o){const C=u[l];if(C&&Array.isArray(C))for(const c of C)i+=M(`${l}${a}`).padEnd(t," ")+n+M(c)+e;else C&&typeof C=="object"?r.push(l):i+=M(l).padEnd(t," ")+n+M(C)+e}D.section&&i.length&&(i="["+M(D.section)+"]"+(D.newline?e+e:e)+i);for(const l of r){const C=Mt(l,".").join("\\."),c=(D.section?D.section+".":"")+C,F=kD(u[l],{...D,section:c});i.length&&F.length&&(i+=e),i+=F}return i},"encode");function Mt(u,D){var e=0,n=0,r=0,o=[];do if(r=u.indexOf(D,e),r!==-1){if(e=r+D.length,r>0&&u[r-1]==="\\")continue;o.push(u.slice(n,r)),n=r+D.length}while(r!==-1);return o.push(u.slice(n)),o}s(Mt,"splitSections");const jt=s((u,D={})=>{D.bracketedArray=D.bracketedArray!==!1;const e=Object.create(null);let n=e,r=null;const o=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,t=u.split(/[\r\n]+/g),i={};for(const l of t){if(!l||l.match(/^\s*[;#]/)||l.match(/^\s*$/))continue;const C=l.match(o);if(!C)continue;if(C[1]!==void 0){if(r=Pu(C[1]),r==="__proto__"){n=Object.create(null);continue}n=e[r]=e[r]||Object.create(null);continue}const c=Pu(C[2]);let F;D.bracketedArray?F=c.length>2&&c.slice(-2)==="[]":(i[c]=(i?.[c]||0)+1,F=i[c]>1);const f=F&&c.endsWith("[]")?c.slice(0,-2):c;if(f==="__proto__")continue;const d=C[3]?Pu(C[4]):!0,E=d==="true"||d==="false"||d==="null"?JSON.parse(d):d;F&&(PD.call(n,f)?Array.isArray(n[f])||(n[f]=[n[f]]):n[f]=[]),Array.isArray(n[f])?n[f].push(E):n[f]=E}const a=[];for(const l of Object.keys(e)){if(!PD.call(e,l)||typeof e[l]!="object"||Array.isArray(e[l]))continue;const C=Mt(l,".");n=e;const c=C.pop(),F=c.replace(/\\\./g,".");for(const f of C)f!=="__proto__"&&((!PD.call(n,f)||typeof n[f]!="object")&&(n[f]=Object.create(null)),n=n[f]);n===e&&F===c||(n[F]=e[l],a.push(l))}for(const l of a)delete e[l];return e},"decode"),Nt=s(u=>u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'"),"isQuoted"),M=s(u=>typeof u!="string"||u.match(/[=\r\n]/)||u.match(/^\[/)||u.length>1&&Nt(u)||u!==u.trim()?JSON.stringify(u):u.split(";").join("\\;").split("#").join("\\#"),"safe"),Pu=s(u=>{if(u=(u||"").trim(),Nt(u)){u.charAt(0)==="'"&&(u=u.slice(1,-1));try{u=JSON.parse(u)}catch{}}else{let D=!1,e="";for(let n=0,r=u.length;n<r;n++){const o=u.charAt(n);if(D)"\\;#".indexOf(o)!==-1?e+=o:e+="\\"+o,D=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?D=!0:e+=o}}return D&&(e+="\\"),e.trim()}return u},"unsafe");var ki={parse:jt,decode:jt,stringify:kD,encode:kD,safe:M,unsafe:Pu},Lt=H(ki);const Gt=s(u=>T.lstat(u).then(()=>!0,()=>!1),"fileExists"),_i=["","conventional"],{hasOwnProperty:Ri}=Object.prototype,Wt=s((u,D)=>Ri.call(u,D),"hasOwn"),x=s((u,D,e)=>{if(!D)throw new S(`Invalid config property ${u}: ${e}`)},"parseAssert"),ku={OPENAI_KEY(u){if(!u)throw new S("Please set your OpenAI API key via `aicommit config set OPENAI_KEY=<your token>`");return x("OPENAI_KEY",u.startsWith("sk-"),'Must start with "sk-"'),u},locale(u){return u?(x("locale",u,"Cannot be empty"),x("locale",/^[a-z-]+$/i.test(u),"Must be a valid locale (letters and dashes/underscores). You can consult the list of codes in: https://wikipedia.org/wiki/List_of_ISO_639-1_codes"),u):"en"},generate(u){if(!u)return 1;x("generate",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return x("generate",D>0,"Must be greater than 0"),x("generate",D<=5,"Must be less or equal to 5"),D},type(u){return u?(x("type",_i.includes(u),"Invalid commit type"),u):""},proxy(u){if(!(!u||u.length===0))return x("proxy",/^https?:\/\//.test(u),"Must be a valid URL"),u},model(u){return!u||u.length===0?"gpt-4o-mini":u},timeout(u){if(!u)return 1e4;x("timeout",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return x("timeout",D>=500,"Must be greater than 500ms"),D},temperature(u){if(!u)return .2;x("temperature",/^(2|\d)(\.\d{1,2})?$/.test(u),"Must be decimal between 0 and 2");const D=Number(u);return x("temperature",D>0,"Must be greater than 0"),x("temperature",D<=2,"Must be less than or equal to 2"),D},"max-length"(u){if(!u)return 50;x("max-length",/^\d+$/.test(u),"Must be an integer");const D=Number(u);return x("max-length",D>=20,"Must be greater than 20 characters"),D},"auto-confirm"(u){return u?typeof u=="boolean"?u:(x("auto-confirm",/^(?:true|false)$/.test(u),"Must be a boolean"),u==="true"):!1},"prepend-reference"(u){return u?typeof u=="boolean"?u:(x("prepend-reference",/^(?:true|false)$/.test(u),"Must be a boolean"),u==="true"):!1}},_D=q.join(le.homedir(),".aicommit"),Ut=s(async()=>{if(!await Gt(_D))return Object.create(null);const D=await T.readFile(_D,"utf8");return Lt.parse(D)},"readConfigFile"),RD=s(async(u,D)=>{const e=await Ut(),n={};for(const r of Object.keys(ku)){const o=ku[r],t=u?.[r]??e[r];if(D)try{n[r]=o(t)}catch{}else n[r]=o(t)}return n},"getConfig"),Mi=s(async u=>{const D=await Ut();for(const[e,n]of u){if(!Wt(ku,e))throw new S(`Invalid config property: ${e}`);const r=ku[e](n);D[e]=r}await T.writeFile(_D,Lt.stringify(D),"utf8")},"setConfigs");var MD={},jD={exports:{}},_u={exports:{}},ND,zt;function ji(){if(zt)return ND;zt=1;var u=1e3,D=u*60,e=D*60,n=e*24,r=n*7,o=n*365.25;ND=s(function(C,c){c=c||{};var F=typeof C;if(F==="string"&&C.length>0)return t(C);if(F==="number"&&isFinite(C))return c.long?a(C):i(C);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(C))},"ms");function t(C){if(C=String(C),!(C.length>100)){var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(C);if(c){var F=parseFloat(c[1]),f=(c[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return F*o;case"weeks":case"week":case"w":return F*r;case"days":case"day":case"d":return F*n;case"hours":case"hour":case"hrs":case"hr":case"h":return F*e;case"minutes":case"minute":case"mins":case"min":case"m":return F*D;case"seconds":case"second":case"secs":case"sec":case"s":return F*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return F;default:return}}}}s(t,"parse");function i(C){var c=Math.abs(C);return c>=n?Math.round(C/n)+"d":c>=e?Math.round(C/e)+"h":c>=D?Math.round(C/D)+"m":c>=u?Math.round(C/u)+"s":C+"ms"}s(i,"fmtShort");function a(C){var c=Math.abs(C);return c>=n?l(C,c,n,"day"):c>=e?l(C,c,e,"hour"):c>=D?l(C,c,D,"minute"):c>=u?l(C,c,u,"second"):C+" ms"}s(a,"fmtLong");function l(C,c,F,f){var d=c>=F*1.5;return Math.round(C/F)+" "+f+(d?"s":"")}return s(l,"plural"),ND}s(ji,"requireMs");var LD,qt;function Ht(){if(qt)return LD;qt=1;function u(D){n.debug=n,n.default=n,n.coerce=l,n.disable=i,n.enable=o,n.enabled=a,n.humanize=ji(),n.destroy=C,Object.keys(D).forEach(c=>{n[c]=D[c]}),n.names=[],n.skips=[],n.formatters={};function e(c){let F=0;for(let f=0;f<c.length;f++)F=(F<<5)-F+c.charCodeAt(f),F|=0;return n.colors[Math.abs(F)%n.colors.length]}s(e,"selectColor"),n.selectColor=e;function n(c){let F,f=null,d,E;function p(...m){if(!p.enabled)return;const $=p,P=Number(new Date),fu=P-(F||P);$.diff=fu,$.prev=F,$.curr=P,F=P,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let j=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(U,sn)=>{if(U==="%%")return"%";j++;const De=n.formatters[sn];if(typeof De=="function"){const an=m[j];U=De.call($,an),m.splice(j,1),j--}return U}),n.formatArgs.call($,m),($.log||n.log).apply($,m)}return s(p,"debug"),p.namespace=c,p.useColors=n.useColors(),p.color=n.selectColor(c),p.extend=r,p.destroy=n.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:s(()=>f!==null?f:(d!==n.namespaces&&(d=n.namespaces,E=n.enabled(c)),E),"get"),set:s(m=>{f=m},"set")}),typeof n.init=="function"&&n.init(p),p}s(n,"createDebug");function r(c,F){const f=n(this.namespace+(typeof F>"u"?":":F)+c);return f.log=this.log,f}s(r,"extend");function o(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];const F=(typeof c=="string"?c:"").trim().replace(" ",",").split(",").filter(Boolean);for(const f of F)f[0]==="-"?n.skips.push(f.slice(1)):n.names.push(f)}s(o,"enable");function t(c,F){let f=0,d=0,E=-1,p=0;for(;f<c.length;)if(d<F.length&&(F[d]===c[f]||F[d]==="*"))F[d]==="*"?(E=d,p=f,d++):(f++,d++);else if(E!==-1)d=E+1,p++,f=p;else return!1;for(;d<F.length&&F[d]==="*";)d++;return d===F.length}s(t,"matchesTemplate");function i(){const c=[...n.names,...n.skips.map(F=>"-"+F)].join(",");return n.enable(""),c}s(i,"disable");function a(c){for(const F of n.skips)if(t(c,F))return!1;for(const F of n.names)if(t(c,F))return!0;return!1}s(a,"enabled");function l(c){return c instanceof Error?c.stack||c.message:c}s(l,"coerce");function C(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s(C,"destroy"),n.enable(n.load()),n}return s(u,"setup"),LD=u,LD}s(Ht,"requireCommon");var Yt;function Ni(){return Yt||(Yt=1,function(u,D){D.formatArgs=n,D.save=r,D.load=o,D.useColors=e,D.storage=t(),D.destroy=(()=>{let a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),D.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function e(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}s(e,"useColors");function n(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+u.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;a.splice(1,0,l,"color: inherit");let C=0,c=0;a[0].replace(/%[a-zA-Z%]/g,F=>{F!=="%%"&&(C++,F==="%c"&&(c=C))}),a.splice(c,0,l)}s(n,"formatArgs"),D.log=console.debug||console.log||(()=>{});function r(a){try{a?D.storage.setItem("debug",a):D.storage.removeItem("debug")}catch{}}s(r,"save");function o(){let a;try{a=D.storage.getItem("debug")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=process.env.DEBUG),a}s(o,"load");function t(){try{return localStorage}catch{}}s(t,"localstorage"),u.exports=Ht()(D);const{formatters:i}=u.exports;i.j=function(a){try{return JSON.stringify(a)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(_u,_u.exports)),_u.exports}s(Ni,"requireBrowser");var Ru={exports:{}},GD,Kt;function Li(){return Kt||(Kt=1,GD=s((u,D=process.argv)=>{const e=u.startsWith("-")?"":u.length===1?"-":"--",n=D.indexOf(e+u),r=D.indexOf("--");return n!==-1&&(r===-1||n<r)},"hasFlag")),GD}s(Li,"requireHasFlag");var WD,Vt;function Gi(){if(Vt)return WD;Vt=1;const u=le,D=Lu,e=Li(),{env:n}=process;let r;e("no-color")||e("no-colors")||e("color=false")||e("color=never")?r=0:(e("color")||e("colors")||e("color=true")||e("color=always"))&&(r=1),"FORCE_COLOR"in n&&(n.FORCE_COLOR==="true"?r=1:n.FORCE_COLOR==="false"?r=0:r=n.FORCE_COLOR.length===0?1:Math.min(parseInt(n.FORCE_COLOR,10),3));function o(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}s(o,"translateLevel");function t(a,l){if(r===0)return 0;if(e("color=16m")||e("color=full")||e("color=truecolor"))return 3;if(e("color=256"))return 2;if(a&&!l&&r===void 0)return 0;const C=r||0;if(n.TERM==="dumb")return C;if(process.platform==="win32"){const c=u.release().split(".");return Number(c[0])>=10&&Number(c[2])>=10586?Number(c[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(c=>c in n)||n.CI_NAME==="codeship"?1:C;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if(n.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in n){const c=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return c>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:C}s(t,"supportsColor");function i(a){const l=t(a,a&&a.isTTY);return o(l)}return s(i,"getSupportLevel"),WD={supportsColor:i,stdout:o(t(!0,D.isatty(1))),stderr:o(t(!0,D.isatty(2)))},WD}s(Gi,"requireSupportsColor");var Jt;function Wi(){return Jt||(Jt=1,function(u,D){const e=Lu,n=ae;D.init=C,D.log=i,D.formatArgs=o,D.save=a,D.load=l,D.useColors=r,D.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),D.colors=[6,2,3,4,5,1];try{const F=Gi();F&&(F.stderr||F).level>=2&&(D.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}D.inspectOpts=Object.keys(process.env).filter(F=>/^debug_/i.test(F)).reduce((F,f)=>{const d=f.substring(6).toLowerCase().replace(/_([a-z])/g,(p,m)=>m.toUpperCase());let E=process.env[f];return/^(yes|on|true|enabled)$/i.test(E)?E=!0:/^(no|off|false|disabled)$/i.test(E)?E=!1:E==="null"?E=null:E=Number(E),F[d]=E,F},{});function r(){return"colors"in D.inspectOpts?!!D.inspectOpts.colors:e.isatty(process.stderr.fd)}s(r,"useColors");function o(F){const{namespace:f,useColors:d}=this;if(d){const E=this.color,p="\x1B[3"+(E<8?E:"8;5;"+E),m=` ${p};1m${f} \x1B[0m`;F[0]=m+F[0].split(`
66
+ `,l=i.whitespace?" = ":"=",C=[],F=i.sort?Object.keys(a).sort():Object.keys(a);let E=0;i.align&&(E=s(F.filter(d=>a[d]===null||Array.isArray(a[d])||typeof a[d]!="object").map(d=>Array.isArray(a[d])?`${d}[]`:d).concat([""]).reduce((d,p)=>s(d).length>=s(p).length?d:p)).length);let f="";const g=i.bracketedArray?"[]":"";for(const d of F){const p=a[d];if(p&&Array.isArray(p))for(const h of p)f+=s(`${d}${g}`).padEnd(E," ")+l+s(h)+c;else p&&typeof p=="object"?C.push(d):f+=s(d).padEnd(E," ")+l+s(p)+c}i.section&&f.length&&(f="["+s(i.section)+"]"+(i.newline?c+c:c)+f);for(const d of C){const p=t(d,".").join("\\."),h=(i.section?i.section+".":"")+p,m=e(a[d],{...i,section:h});f.length&&m.length&&(f+=c),f+=m}return f},"encode");function t(a,i){var c=0,l=0,C=0,F=[];do if(C=a.indexOf(i,c),C!==-1){if(c=C+i.length,C>0&&a[C-1]==="\\")continue;F.push(a.slice(l,C)),l=C+i.length}while(C!==-1);return F.push(a.slice(l)),F}o(t,"splitSections");const n=o((a,i={})=>{i.bracketedArray=i.bracketedArray!==!1;const c=Object.create(null);let l=c,C=null;const F=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,E=a.split(/[\r\n]+/g),f={};for(const d of E){if(!d||d.match(/^\s*[;#]/)||d.match(/^\s*$/))continue;const p=d.match(F);if(!p)continue;if(p[1]!==void 0){if(C=D(p[1]),C==="__proto__"){l=Object.create(null);continue}l=c[C]=c[C]||Object.create(null);continue}const h=D(p[2]);let m;i.bracketedArray?m=h.length>2&&h.slice(-2)==="[]":(f[h]=(f?.[h]||0)+1,m=f[h]>1);const b=m&&h.endsWith("[]")?h.slice(0,-2):h;if(b==="__proto__")continue;const A=p[3]?D(p[4]):!0,y=A==="true"||A==="false"||A==="null"?JSON.parse(A):A;m&&(u.call(l,b)?Array.isArray(l[b])||(l[b]=[l[b]]):l[b]=[]),Array.isArray(l[b])?l[b].push(y):l[b]=y}const g=[];for(const d of Object.keys(c)){if(!u.call(c,d)||typeof c[d]!="object"||Array.isArray(c[d]))continue;const p=t(d,".");l=c;const h=p.pop(),m=h.replace(/\\\./g,".");for(const b of p)b!=="__proto__"&&((!u.call(l,b)||typeof l[b]!="object")&&(l[b]=Object.create(null)),l=l[b]);l===c&&m===h||(l[m]=c[d],g.push(d))}for(const d of g)delete c[d];return c},"decode"),r=o(a=>a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"),"isQuoted"),s=o(a=>typeof a!="string"||a.match(/[=\r\n]/)||a.match(/^\[/)||a.length>1&&r(a)||a!==a.trim()?JSON.stringify(a):a.split(";").join("\\;").split("#").join("\\#"),"safe"),D=o(a=>{if(a=(a||"").trim(),r(a)){a.charAt(0)==="'"&&(a=a.slice(1,-1));try{a=JSON.parse(a)}catch{}}else{let i=!1,c="";for(let l=0,C=a.length;l<C;l++){const F=a.charAt(l);if(i)"\\;#".indexOf(F)!==-1?c+=F:c+="\\"+F,i=!1;else{if(";#".indexOf(F)!==-1)break;F==="\\"?i=!0:c+=F}}return i&&(c+="\\"),c.trim()}return a},"unsafe");return we={parse:n,decode:n,stringify:e,encode:e,safe:s,unsafe:D},we}o(Ms,"requireIni");var js=Ms(),gt=K(js);const Bt=o(u=>I.lstat(u).then(()=>!0,()=>!1),"fileExists"),Ns=["","conventional"],{hasOwnProperty:Ls}=Object.prototype,bt=o((u,e)=>Ls.call(u,e),"hasOwn"),$=o((u,e,t)=>{if(!e)throw new S(`Invalid config property ${u}: ${t}`)},"parseAssert"),$u={OPENAI_KEY(u){if(!u)throw new S("Please set your OpenAI API key via `aicommit config set OPENAI_KEY=<your token>`");return $("OPENAI_KEY",u.startsWith("sk-"),'Must start with "sk-"'),u},locale(u){return u?($("locale",u,"Cannot be empty"),$("locale",/^[a-z-]+$/i.test(u),"Must be a valid locale (letters and dashes/underscores). You can consult the list of codes in: https://wikipedia.org/wiki/List_of_ISO_639-1_codes"),u):"en"},generate(u){if(!u)return 1;$("generate",/^\d+$/.test(u),"Must be an integer");const e=Number(u);return $("generate",e>0,"Must be greater than 0"),$("generate",e<=5,"Must be less or equal to 5"),e},type(u){return u?($("type",Ns.includes(u),"Invalid commit type"),u):""},proxy(u){if(!(!u||u.length===0))return $("proxy",/^https?:\/\//.test(u),"Must be a valid URL"),u},model(u){return!u||u.length===0?"gpt-4o-mini":u},timeout(u){if(!u)return 1e4;$("timeout",/^\d+$/.test(u),"Must be an integer");const e=Number(u);return $("timeout",e>=500,"Must be greater than 500ms"),e},temperature(u){if(!u)return .2;$("temperature",/^(2|\d)(\.\d{1,2})?$/.test(u),"Must be decimal between 0 and 2");const e=Number(u);return $("temperature",e>0,"Must be greater than 0"),$("temperature",e<=2,"Must be less than or equal to 2"),e},"max-length"(u){if(!u)return 50;$("max-length",/^\d+$/.test(u),"Must be an integer");const e=Number(u);return $("max-length",e>=20,"Must be greater than 20 characters"),e},"auto-confirm"(u){return u?typeof u=="boolean"?u:($("auto-confirm",/^(?:true|false)$/.test(u),"Must be a boolean"),u==="true"):!1},"prepend-reference"(u){return u?typeof u=="boolean"?u:($("prepend-reference",/^(?:true|false)$/.test(u),"Must be a boolean"),u==="true"):!1}},ve=V.join(Ke.homedir(),".aicommit"),yt=o(async()=>{if(!await Bt(ve))return Object.create(null);const e=await I.readFile(ve,"utf8");return gt.parse(e)},"readConfigFile"),$e=o(async(u,e)=>{const t=await yt(),n={};for(const r of Object.keys($u)){const s=$u[r],D=u?.[r]??t[r];if(e)try{n[r]=s(D)}catch{}else n[r]=s(D)}return n},"getConfig"),Gs=o(async u=>{const e=await yt();for(const[t,n]of u){if(!bt($u,t))throw new S(`Invalid config property: ${t}`);const r=$u[t](n);e[t]=r}await I.writeFile(ve,gt.stringify(e),"utf8")},"setConfigs");var Q={},xu={exports:{}},Su={exports:{}},xe,At;function qs(){if(At)return xe;At=1;var u=1e3,e=u*60,t=e*60,n=t*24,r=n*7,s=n*365.25;xe=o(function(l,C){C=C||{};var F=typeof l;if(F==="string"&&l.length>0)return D(l);if(F==="number"&&isFinite(l))return C.long?i(l):a(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))},"ms");function D(l){if(l=String(l),!(l.length>100)){var C=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(C){var F=parseFloat(C[1]),E=(C[2]||"ms").toLowerCase();switch(E){case"years":case"year":case"yrs":case"yr":case"y":return F*s;case"weeks":case"week":case"w":return F*r;case"days":case"day":case"d":return F*n;case"hours":case"hour":case"hrs":case"hr":case"h":return F*t;case"minutes":case"minute":case"mins":case"min":case"m":return F*e;case"seconds":case"second":case"secs":case"sec":case"s":return F*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return F;default:return}}}}o(D,"parse");function a(l){var C=Math.abs(l);return C>=n?Math.round(l/n)+"d":C>=t?Math.round(l/t)+"h":C>=e?Math.round(l/e)+"m":C>=u?Math.round(l/u)+"s":l+"ms"}o(a,"fmtShort");function i(l){var C=Math.abs(l);return C>=n?c(l,C,n,"day"):C>=t?c(l,C,t,"hour"):C>=e?c(l,C,e,"minute"):C>=u?c(l,C,u,"second"):l+" ms"}o(i,"fmtLong");function c(l,C,F,E){var f=C>=F*1.5;return Math.round(l/F)+" "+E+(f?"s":"")}return o(c,"plural"),xe}o(qs,"requireMs");var Se,wt;function vt(){if(wt)return Se;wt=1;function u(e){n.debug=n,n.default=n,n.coerce=c,n.disable=a,n.enable=s,n.enabled=i,n.humanize=qs(),n.destroy=l,Object.keys(e).forEach(C=>{n[C]=e[C]}),n.names=[],n.skips=[],n.formatters={};function t(C){let F=0;for(let E=0;E<C.length;E++)F=(F<<5)-F+C.charCodeAt(E),F|=0;return n.colors[Math.abs(F)%n.colors.length]}o(t,"selectColor"),n.selectColor=t;function n(C){let F,E=null,f,g;function d(...p){if(!d.enabled)return;const h=d,m=Number(new Date),b=m-(F||m);h.diff=b,h.prev=F,h.curr=m,F=m,p[0]=n.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");let A=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,(O,N)=>{if(O==="%%")return"%";A++;const M=n.formatters[N];if(typeof M=="function"){const _=p[A];O=M.call(h,_),p.splice(A,1),A--}return O}),n.formatArgs.call(h,p),(h.log||n.log).apply(h,p)}return o(d,"debug"),d.namespace=C,d.useColors=n.useColors(),d.color=n.selectColor(C),d.extend=r,d.destroy=n.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:o(()=>E!==null?E:(f!==n.namespaces&&(f=n.namespaces,g=n.enabled(C)),g),"get"),set:o(p=>{E=p},"set")}),typeof n.init=="function"&&n.init(d),d}o(n,"createDebug");function r(C,F){const E=n(this.namespace+(typeof F>"u"?":":F)+C);return E.log=this.log,E}o(r,"extend");function s(C){n.save(C),n.namespaces=C,n.names=[],n.skips=[];const F=(typeof C=="string"?C:"").trim().replace(" ",",").split(",").filter(Boolean);for(const E of F)E[0]==="-"?n.skips.push(E.slice(1)):n.names.push(E)}o(s,"enable");function D(C,F){let E=0,f=0,g=-1,d=0;for(;E<C.length;)if(f<F.length&&(F[f]===C[E]||F[f]==="*"))F[f]==="*"?(g=f,d=E,f++):(E++,f++);else if(g!==-1)f=g+1,d++,E=d;else return!1;for(;f<F.length&&F[f]==="*";)f++;return f===F.length}o(D,"matchesTemplate");function a(){const C=[...n.names,...n.skips.map(F=>"-"+F)].join(",");return n.enable(""),C}o(a,"disable");function i(C){for(const F of n.skips)if(D(C,F))return!1;for(const F of n.names)if(D(C,F))return!0;return!1}o(i,"enabled");function c(C){return C instanceof Error?C.stack||C.message:C}o(c,"coerce");function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return o(l,"destroy"),n.enable(n.load()),n}return o(u,"setup"),Se=u,Se}o(vt,"requireCommon");var $t;function Ws(){return $t||($t=1,function(u,e){e.formatArgs=n,e.save=r,e.load=s,e.useColors=t,e.storage=D(),e.destroy=(()=>{let i=!1;return()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let i;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(i=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(i[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}o(t,"useColors");function n(i){if(i[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+i[0]+(this.useColors?"%c ":" ")+"+"+u.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;i.splice(1,0,c,"color: inherit");let l=0,C=0;i[0].replace(/%[a-zA-Z%]/g,F=>{F!=="%%"&&(l++,F==="%c"&&(C=l))}),i.splice(C,0,c)}o(n,"formatArgs"),e.log=console.debug||console.log||(()=>{});function r(i){try{i?e.storage.setItem("debug",i):e.storage.removeItem("debug")}catch{}}o(r,"save");function s(){let i;try{i=e.storage.getItem("debug")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i}o(s,"load");function D(){try{return localStorage}catch{}}o(D,"localstorage"),u.exports=vt()(e);const{formatters:a}=u.exports;a.j=function(i){try{return JSON.stringify(i)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}(Su,Su.exports)),Su.exports}o(Ws,"requireBrowser");var Ou={exports:{}},Oe,xt;function Us(){return xt||(xt=1,Oe=o((u,e=process.argv)=>{const t=u.startsWith("-")?"":u.length===1?"-":"--",n=e.indexOf(t+u),r=e.indexOf("--");return n!==-1&&(r===-1||n<r)},"hasFlag")),Oe}o(Us,"requireHasFlag");var Te,St;function zs(){if(St)return Te;St=1;const u=Ke,e=Pu,t=Us(),{env:n}=process;let r;t("no-color")||t("no-colors")||t("color=false")||t("color=never")?r=0:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(r=1),"FORCE_COLOR"in n&&(n.FORCE_COLOR==="true"?r=1:n.FORCE_COLOR==="false"?r=0:r=n.FORCE_COLOR.length===0?1:Math.min(parseInt(n.FORCE_COLOR,10),3));function s(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}o(s,"translateLevel");function D(i,c){if(r===0)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(i&&!c&&r===void 0)return 0;const l=r||0;if(n.TERM==="dumb")return l;if(process.platform==="win32"){const C=u.release().split(".");return Number(C[0])>=10&&Number(C[2])>=10586?Number(C[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(C=>C in n)||n.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if(n.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in n){const C=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return C>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:l}o(D,"supportsColor");function a(i){const c=D(i,i&&i.isTTY);return s(c)}return o(a,"getSupportLevel"),Te={supportsColor:a,stdout:s(D(!0,e.isatty(1))),stderr:s(D(!0,e.isatty(2)))},Te}o(zs,"requireSupportsColor");var Ot;function Hs(){return Ot||(Ot=1,function(u,e){const t=Pu,n=Ye;e.init=l,e.log=a,e.formatArgs=s,e.save=i,e.load=c,e.useColors=r,e.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{const F=zs();F&&(F.stderr||F).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(F=>/^debug_/i.test(F)).reduce((F,E)=>{const f=E.substring(6).toLowerCase().replace(/_([a-z])/g,(d,p)=>p.toUpperCase());let g=process.env[E];return/^(yes|on|true|enabled)$/i.test(g)?g=!0:/^(no|off|false|disabled)$/i.test(g)?g=!1:g==="null"?g=null:g=Number(g),F[f]=g,F},{});function r(){return"colors"in e.inspectOpts?!!e.inspectOpts.colors:t.isatty(process.stderr.fd)}o(r,"useColors");function s(F){const{namespace:E,useColors:f}=this;if(f){const g=this.color,d="\x1B[3"+(g<8?g:"8;5;"+g),p=` ${d};1m${E} \x1B[0m`;F[0]=p+F[0].split(`
65
67
  `).join(`
66
- `+m),F.push(p+"m+"+u.exports.humanize(this.diff)+"\x1B[0m")}else F[0]=t()+f+" "+F[0]}s(o,"formatArgs");function t(){return D.inspectOpts.hideDate?"":new Date().toISOString()+" "}s(t,"getDate");function i(...F){return process.stderr.write(n.formatWithOptions(D.inspectOpts,...F)+`
67
- `)}s(i,"log");function a(F){F?process.env.DEBUG=F:delete process.env.DEBUG}s(a,"save");function l(){return process.env.DEBUG}s(l,"load");function C(F){F.inspectOpts={};const f=Object.keys(D.inspectOpts);for(let d=0;d<f.length;d++)F.inspectOpts[f[d]]=D.inspectOpts[f[d]]}s(C,"init"),u.exports=Ht()(D);const{formatters:c}=u.exports;c.o=function(F){return this.inspectOpts.colors=this.useColors,n.inspect(F,this.inspectOpts).split(`
68
- `).map(f=>f.trim()).join(" ")},c.O=function(F){return this.inspectOpts.colors=this.useColors,n.inspect(F,this.inspectOpts)}}(Ru,Ru.exports)),Ru.exports}s(Wi,"requireNode"),typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?jD.exports=Ni():jD.exports=Wi();var UD=jD.exports,zD={};Object.defineProperty(zD,"__esModule",{value:!0});function Ui(u){return function(D,e){return new Promise((n,r)=>{u.call(this,D,e,(o,t)=>{o?r(o):n(t)})})}}s(Ui,"promisify"),zD.default=Ui;var Zt=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};const zi=ie,qi=Zt(UD),Hi=Zt(zD),lu=qi.default("agent-base");function Yi(u){return!!u&&typeof u.addRequest=="function"}s(Yi,"isAgent");function qD(){const{stack:u}=new Error;return typeof u!="string"?!1:u.split(`
69
- `).some(D=>D.indexOf("(https.js:")!==-1||D.indexOf("node:https:")!==-1)}s(qD,"isSecureEndpoint");function Mu(u,D){return new Mu.Agent(u,D)}s(Mu,"createAgent"),function(u){const e=class e extends zi.EventEmitter{constructor(r,o){super();let t=o;typeof r=="function"?this.callback=r:r&&(t=r),this.timeout=null,t&&typeof t.timeout=="number"&&(this.timeout=t.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:qD()?443:80}set defaultPort(r){this.explicitDefaultPort=r}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:qD()?"https:":"http:"}set protocol(r){this.explicitProtocol=r}callback(r,o,t){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(r,o){const t=Object.assign({},o);typeof t.secureEndpoint!="boolean"&&(t.secureEndpoint=qD()),t.host==null&&(t.host="localhost"),t.port==null&&(t.port=t.secureEndpoint?443:80),t.protocol==null&&(t.protocol=t.secureEndpoint?"https:":"http:"),t.host&&t.path&&delete t.path,delete t.agent,delete t.hostname,delete t._defaultAgent,delete t.defaultPort,delete t.createConnection,r._last=!0,r.shouldKeepAlive=!1;let i=!1,a=null;const l=t.timeout||this.timeout,C=s(d=>{r._hadError||(r.emit("error",d),r._hadError=!0)},"onerror"),c=s(()=>{a=null,i=!0;const d=new Error(`A "socket" was not created for HTTP request before ${l}ms`);d.code="ETIMEOUT",C(d)},"ontimeout"),F=s(d=>{i||(a!==null&&(clearTimeout(a),a=null),C(d))},"callbackError"),f=s(d=>{if(i)return;if(a!=null&&(clearTimeout(a),a=null),Yi(d)){lu("Callback returned another Agent instance %o",d.constructor.name),d.addRequest(r,t);return}if(d){d.once("free",()=>{this.freeSocket(d,t)}),r.onSocket(d);return}const E=new Error(`no Duplex stream was returned to agent-base for \`${r.method} ${r.path}\``);C(E)},"onsocket");if(typeof this.callback!="function"){C(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(lu("Converting legacy callback function to promise"),this.promisifiedCallback=Hi.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(a=setTimeout(c,l)),"port"in t&&typeof t.port!="number"&&(t.port=Number(t.port));try{lu("Resolving socket for %o request: %o",t.protocol,`${r.method} ${r.path}`),Promise.resolve(this.promisifiedCallback(r,t)).then(f,F)}catch(d){Promise.reject(d).catch(F)}}freeSocket(r,o){lu("Freeing socket %o %o",r.constructor.name,o),r.destroy()}destroy(){lu("Destroying agent %o",this.constructor.name)}};s(e,"Agent");let D=e;u.Agent=D,u.prototype=u.Agent.prototype}(Mu||(Mu={}));var Ki=Mu,HD={},Vi=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(HD,"__esModule",{value:!0});const Ji=Vi(UD),Fu=Ji.default("https-proxy-agent:parse-proxy-response");function Zi(u){return new Promise((D,e)=>{let n=0;const r=[];function o(){const c=u.read();c?C(c):u.once("readable",o)}s(o,"read");function t(){u.removeListener("end",a),u.removeListener("error",l),u.removeListener("close",i),u.removeListener("readable",o)}s(t,"cleanup");function i(c){Fu("onclose had error %o",c)}s(i,"onclose");function a(){Fu("onend")}s(a,"onend");function l(c){t(),Fu("onerror %o",c),e(c)}s(l,"onerror");function C(c){r.push(c),n+=c.length;const F=Buffer.concat(r,n);if(F.indexOf(`\r
68
+ `+p),F.push(d+"m+"+u.exports.humanize(this.diff)+"\x1B[0m")}else F[0]=D()+E+" "+F[0]}o(s,"formatArgs");function D(){return e.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(D,"getDate");function a(...F){return process.stderr.write(n.formatWithOptions(e.inspectOpts,...F)+`
69
+ `)}o(a,"log");function i(F){F?process.env.DEBUG=F:delete process.env.DEBUG}o(i,"save");function c(){return process.env.DEBUG}o(c,"load");function l(F){F.inspectOpts={};const E=Object.keys(e.inspectOpts);for(let f=0;f<E.length;f++)F.inspectOpts[E[f]]=e.inspectOpts[E[f]]}o(l,"init"),u.exports=vt()(e);const{formatters:C}=u.exports;C.o=function(F){return this.inspectOpts.colors=this.useColors,n.inspect(F,this.inspectOpts).split(`
70
+ `).map(E=>E.trim()).join(" ")},C.O=function(F){return this.inspectOpts.colors=this.useColors,n.inspect(F,this.inspectOpts)}}(Ou,Ou.exports)),Ou.exports}o(Hs,"requireNode");var Tt;function Ie(){return Tt||(Tt=1,typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?xu.exports=Ws():xu.exports=Hs()),xu.exports}o(Ie,"requireSrc$1");var Tu={},It;function Ys(){if(It)return Tu;It=1,Object.defineProperty(Tu,"__esModule",{value:!0});function u(e){return function(t,n){return new Promise((r,s)=>{e.call(this,t,n,(D,a)=>{D?s(D):r(a)})})}}return o(u,"promisify$1"),Tu.default=u,Tu}o(Ys,"requirePromisify");var su,Pt;function Vs(){if(Pt)return su;Pt=1;var u=su&&su.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};const e=He,t=u(Ie()),n=u(Ys()),r=t.default("agent-base");function s(i){return!!i&&typeof i.addRequest=="function"}o(s,"isAgent");function D(){const{stack:i}=new Error;return typeof i!="string"?!1:i.split(`
71
+ `).some(c=>c.indexOf("(https.js:")!==-1||c.indexOf("node:https:")!==-1)}o(D,"isSecureEndpoint");function a(i,c){return new a.Agent(i,c)}return o(a,"createAgent"),function(i){const l=class l extends e.EventEmitter{constructor(F,E){super();let f=E;typeof F=="function"?this.callback=F:F&&(f=F),this.timeout=null,f&&typeof f.timeout=="number"&&(this.timeout=f.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:D()?443:80}set defaultPort(F){this.explicitDefaultPort=F}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:D()?"https:":"http:"}set protocol(F){this.explicitProtocol=F}callback(F,E,f){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(F,E){const f=Object.assign({},E);typeof f.secureEndpoint!="boolean"&&(f.secureEndpoint=D()),f.host==null&&(f.host="localhost"),f.port==null&&(f.port=f.secureEndpoint?443:80),f.protocol==null&&(f.protocol=f.secureEndpoint?"https:":"http:"),f.host&&f.path&&delete f.path,delete f.agent,delete f.hostname,delete f._defaultAgent,delete f.defaultPort,delete f.createConnection,F._last=!0,F.shouldKeepAlive=!1;let g=!1,d=null;const p=f.timeout||this.timeout,h=o(y=>{F._hadError||(F.emit("error",y),F._hadError=!0)},"onerror"),m=o(()=>{d=null,g=!0;const y=new Error(`A "socket" was not created for HTTP request before ${p}ms`);y.code="ETIMEOUT",h(y)},"ontimeout"),b=o(y=>{g||(d!==null&&(clearTimeout(d),d=null),h(y))},"callbackError"),A=o(y=>{if(g)return;if(d!=null&&(clearTimeout(d),d=null),s(y)){r("Callback returned another Agent instance %o",y.constructor.name),y.addRequest(F,f);return}if(y){y.once("free",()=>{this.freeSocket(y,f)}),F.onSocket(y);return}const O=new Error(`no Duplex stream was returned to agent-base for \`${F.method} ${F.path}\``);h(O)},"onsocket");if(typeof this.callback!="function"){h(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(r("Converting legacy callback function to promise"),this.promisifiedCallback=n.default(this.callback)):this.promisifiedCallback=this.callback),typeof p=="number"&&p>0&&(d=setTimeout(m,p)),"port"in f&&typeof f.port!="number"&&(f.port=Number(f.port));try{r("Resolving socket for %o request: %o",f.protocol,`${F.method} ${F.path}`),Promise.resolve(this.promisifiedCallback(F,f)).then(A,b)}catch(y){Promise.reject(y).catch(b)}}freeSocket(F,E){r("Freeing socket %o %o",F.constructor.name,E),F.destroy()}destroy(){r("Destroying agent %o",this.constructor.name)}};o(l,"Agent");let c=l;i.Agent=c,i.prototype=i.Agent.prototype}(a),su=a,su}o(Vs,"requireSrc");var iu={},Rt;function Ks(){if(Rt)return iu;Rt=1;var u=iu.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(iu,"__esModule",{value:!0});const t=u(Ie()).default("https-proxy-agent:parse-proxy-response");function n(r){return new Promise((s,D)=>{let a=0;const i=[];function c(){const g=r.read();g?f(g):r.once("readable",c)}o(c,"read");function l(){r.removeListener("end",F),r.removeListener("error",E),r.removeListener("close",C),r.removeListener("readable",c)}o(l,"cleanup");function C(g){t("onclose had error %o",g)}o(C,"onclose");function F(){t("onend")}o(F,"onend");function E(g){l(),t("onerror %o",g),D(g)}o(E,"onerror");function f(g){i.push(g),a+=g.length;const d=Buffer.concat(i,a);if(d.indexOf(`\r
70
72
  \r
71
- `)===-1){Fu("have not received end of HTTP headers yet..."),o();return}const d=F.toString("ascii",0,F.indexOf(`\r
72
- `)),E=+d.split(" ")[1];Fu("got proxy server response: %o",d),D({statusCode:E,buffered:F})}s(C,"ondata"),u.on("error",l),u.on("close",i),u.on("end",a),o()})}s(Zi,"parseProxyResponse"),HD.default=Zi;var Xi=A&&A.__awaiter||function(u,D,e,n){function r(o){return o instanceof e?o:new e(function(t){t(o)})}return s(r,"adopt"),new(e||(e=Promise))(function(o,t){function i(C){try{l(n.next(C))}catch(c){t(c)}}s(i,"fulfilled");function a(C){try{l(n.throw(C))}catch(c){t(c)}}s(a,"rejected");function l(C){C.done?o(C.value):r(C.value).then(i,a)}s(l,"step"),l((n=n.apply(u,D||[])).next())})},Q=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(MD,"__esModule",{value:!0});const Xt=Q(Bn),Qt=Q(bn),Qi=Q(yn),ua=Q(se),Da=Q(UD),ea=Ki,ta=Q(HD),Cu=Da.default("https-proxy-agent:agent"),ue=class ue extends ea.Agent{constructor(D){let e;if(typeof D=="string"?e=Qi.default.parse(D):e=D,!e)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");Cu("creating new HttpsProxyAgent instance: %o",e),super(e);const n=Object.assign({},e);this.secureProxy=e.secureProxy||oa(n.protocol),n.host=n.hostname||n.host,typeof n.port=="string"&&(n.port=parseInt(n.port,10)),!n.port&&n.host&&(n.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in n)&&(n.ALPNProtocols=["http 1.1"]),n.host&&n.path&&(delete n.path,delete n.pathname),this.proxy=n}callback(D,e){return Xi(this,void 0,void 0,function*(){const{proxy:n,secureProxy:r}=this;let o;r?(Cu("Creating `tls.Socket`: %o",n),o=Qt.default.connect(n)):(Cu("Creating `net.Socket`: %o",n),o=Xt.default.connect(n));const t=Object.assign({},n.headers);let a=`CONNECT ${`${e.host}:${e.port}`} HTTP/1.1\r
73
- `;n.auth&&(t["Proxy-Authorization"]=`Basic ${Buffer.from(n.auth).toString("base64")}`);let{host:l,port:C,secureEndpoint:c}=e;ra(C,c)||(l+=`:${C}`),t.Host=l,t.Connection="close";for(const p of Object.keys(t))a+=`${p}: ${t[p]}\r
74
- `;const F=ta.default(o);o.write(`${a}\r
75
- `);const{statusCode:f,buffered:d}=yield F;if(f===200){if(D.once("socket",na),e.secureEndpoint){Cu("Upgrading socket connection to TLS");const p=e.servername||e.host;return Qt.default.connect(Object.assign(Object.assign({},sa(e,"host","hostname","path","port")),{socket:o,servername:p}))}return o}o.destroy();const E=new Xt.default.Socket({writable:!1});return E.readable=!0,D.once("socket",p=>{Cu("replaying proxy buffer for failed request"),ua.default(p.listenerCount("data")>0),p.push(d),p.push(null)}),E})}};s(ue,"HttpsProxyAgent");let YD=ue;MD.default=YD;function na(u){u.resume()}s(na,"resume");function ra(u,D){return!!(!D&&u===80||D&&u===443)}s(ra,"isDefaultPort");function oa(u){return typeof u=="string"?/^https:?$/i.test(u):!1}s(oa,"isHTTPS");function sa(u,...D){const e={};let n;for(n in u)D.includes(n)||(e[n]=u[n]);return e}s(sa,"omit");var ia=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};const KD=ia(MD);function un(u){return new KD.default(u)}s(un,"createHttpsProxyAgent"),function(u){u.HttpsProxyAgent=KD.default,u.prototype=KD.default.prototype}(un||(un={}));const aa={"":"<commit message>",conventional:"<type>(<optional scope>): <commit message>"},ca=s(u=>`The output response must be in format:
76
- ${aa[u]}`,"specifyCommitFormat"),la={"":"",conventional:`Choose a type from the type-to-description JSON below that best describes the git diff:
77
- ${JSON.stringify({docs:"Documentation only changes",style:"Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",refactor:"A code change that neither fixes a bug nor adds a feature",perf:"A code change that improves performance",test:"Adding missing tests or correcting existing tests",build:"Changes that affect the build system or external dependencies",ci:"Changes to our CI configuration files and scripts",chore:"Other changes that don't modify src or test files",revert:"Reverts a previous commit",feat:"A new feature",fix:"A bug fix",data:"Data only changes"},null,2)}`},Fa=s((u,D,e)=>["Generate a concise git commit message written in present tense for the following code diff with the given specifications below:",`Message language: ${u}`,`Commit message must be a maximum of ${D} characters.`,"Exclude anything unnecessary such as translation. Your entire response will be passed directly into git commit.","Try to focus on why the code changes was made and not only summarize the changes.",la[e],ca(e)].filter(Boolean).join(`
78
- `),"generatePrompt"),Ca=s(async(u,D,e,n,r,o)=>new Promise((t,i)=>{const a=JSON.stringify(n),l=gn.request({port:443,hostname:u,path:D,method:"POST",headers:{...e,"Content-Type":"application/json","Content-Length":Buffer.byteLength(a)},timeout:r,agent:void 0},C=>{const c=[];C.on("data",F=>c.push(F)),C.on("end",()=>{t({request:l,response:C,data:Buffer.concat(c).toString()})})});l.on("error",i),l.on("timeout",()=>{l.destroy(),i(new S(`Time out error: request took over ${r}ms. Try increasing the \`timeout\` config, or checking the OpenAI API status https://status.openai.com`))}),l.write(a),l.end()}),"httpsPost"),fa=s(async(u,D,e,n)=>{const{response:r,data:o}=await Ca("api.openai.com","/v1/chat/completions",{Authorization:`Bearer ${u}`},D,e);if(!r.statusCode||r.statusCode<200||r.statusCode>299){let t=`OpenAI API Error: ${r.statusCode} - ${r.statusMessage}`;throw o&&(t+=`
73
+ `)===-1){t("have not received end of HTTP headers yet..."),c();return}const h=d.toString("ascii",0,d.indexOf(`\r
74
+ `)),m=+h.split(" ")[1];t("got proxy server response: %o",h),s({statusCode:m,buffered:d})}o(f,"ondata"),r.on("error",E),r.on("close",C),r.on("end",F),c()})}return o(n,"parseProxyResponse$1"),iu.default=n,iu}o(Ks,"requireParseProxyResponse");var _t;function Js(){if(_t)return Q;_t=1;var u=Q.__awaiter||function(d,p,h,m){function b(A){return A instanceof h?A:new h(function(y){y(A)})}return o(b,"adopt"),new(h||(h=Promise))(function(A,y){function O(_){try{M(m.next(_))}catch(uu){y(uu)}}o(O,"fulfilled");function N(_){try{M(m.throw(_))}catch(uu){y(uu)}}o(N,"rejected");function M(_){_.done?A(_.value):b(_.value).then(O,N)}o(M,"step"),M((m=m.apply(d,p||[])).next())})},e=Q.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(Q,"__esModule",{value:!0});const t=e(tn),n=e(nn),r=e(rn),s=e(ze),D=e(Ie()),a=Vs(),i=e(Ks()),c=D.default("https-proxy-agent:agent"),g=class g extends a.Agent{constructor(p){let h;if(typeof p=="string"?h=r.default.parse(p):h=p,!h)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");c("creating new HttpsProxyAgent instance: %o",h),super(h);const m=Object.assign({},h);this.secureProxy=h.secureProxy||E(m.protocol),m.host=m.hostname||m.host,typeof m.port=="string"&&(m.port=parseInt(m.port,10)),!m.port&&m.host&&(m.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in m)&&(m.ALPNProtocols=["http 1.1"]),m.host&&m.path&&(delete m.path,delete m.pathname),this.proxy=m}callback(p,h){return u(this,void 0,void 0,function*(){const{proxy:m,secureProxy:b}=this;let A;b?(c("Creating `tls.Socket`: %o",m),A=n.default.connect(m)):(c("Creating `net.Socket`: %o",m),A=t.default.connect(m));const y=Object.assign({},m.headers);let N=`CONNECT ${`${h.host}:${h.port}`} HTTP/1.1\r
75
+ `;m.auth&&(y["Proxy-Authorization"]=`Basic ${Buffer.from(m.auth).toString("base64")}`);let{host:M,port:_,secureEndpoint:uu}=h;F(_,uu)||(M+=`:${_}`),y.Host=M,y.Connection="close";for(const L of Object.keys(y))N+=`${L}: ${y[L]}\r
76
+ `;const Wt=i.default(A);A.write(`${N}\r
77
+ `);const{statusCode:Ut,buffered:zt}=yield Wt;if(Ut===200){if(p.once("socket",C),h.secureEndpoint){c("Upgrading socket connection to TLS");const L=h.servername||h.host;return n.default.connect(Object.assign(Object.assign({},f(h,"host","hostname","path","port")),{socket:A,servername:L}))}return A}A.destroy();const Ne=new t.default.Socket({writable:!1});return Ne.readable=!0,p.once("socket",L=>{c("replaying proxy buffer for failed request"),s.default(L.listenerCount("data")>0),L.push(zt),L.push(null)}),Ne})}};o(g,"HttpsProxyAgent");let l=g;Q.default=l;function C(d){d.resume()}o(C,"resume");function F(d,p){return!!(!p&&d===80||p&&d===443)}o(F,"isDefaultPort");function E(d){return typeof d=="string"?/^https:?$/i.test(d):!1}o(E,"isHTTPS");function f(d,...p){const h={};let m;for(m in d)p.includes(m)||(h[m]=d[m]);return h}return o(f,"omit"),Q}o(Js,"requireAgent");var au,kt;function Xs(){if(kt)return au;kt=1;var u=au&&au.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};const e=u(Js());function t(n){return new e.default(n)}return o(t,"createHttpsProxyAgent"),function(n){n.HttpsProxyAgent=e.default,n.prototype=e.default.prototype}(t),au=t,au}o(Xs,"requireDist"),Xs();const Zs={"":"<commit message>",conventional:"<type>(<optional scope>): <commit message>"},Qs=o(u=>`The output response must be in format:
78
+ ${Zs[u]}`,"specifyCommitFormat"),ui={"":"",conventional:`Choose a type from the type-to-description JSON below that best describes the git diff:
79
+ ${JSON.stringify({docs:"Documentation only changes",style:"Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)",refactor:"A code change that neither fixes a bug nor adds a feature",perf:"A code change that improves performance",test:"Adding missing tests or correcting existing tests",build:"Changes that affect the build system or external dependencies",ci:"Changes to our CI configuration files and scripts",chore:"Other changes that don't modify src or test files",revert:"Reverts a previous commit",feat:"A new feature",fix:"A bug fix",data:"Data only changes"},null,2)}`},ei=o((u,e,t)=>["Generate a concise git commit message written in present tense for the following code diff with the given specifications below:",`Message language: ${u}`,`Commit message must be a maximum of ${e} characters.`,"Exclude anything unnecessary such as translation. Your entire response will be passed directly into git commit.","Try to focus on why the code changes was made and not only summarize the changes.",ui[t],Qs(t)].filter(Boolean).join(`
80
+ `),"generatePrompt"),Di=o(async(u,e,t,n,r,s)=>new Promise((D,a)=>{const i=JSON.stringify(n),c=Dn.request({port:443,hostname:u,path:e,method:"POST",headers:{...t,"Content-Type":"application/json","Content-Length":Buffer.byteLength(i)},timeout:r,agent:void 0},l=>{const C=[];l.on("data",F=>C.push(F)),l.on("end",()=>{D({request:c,response:l,data:Buffer.concat(C).toString()})})});c.on("error",a),c.on("timeout",()=>{c.destroy(),a(new S(`Time out error: request took over ${r}ms. Try increasing the \`timeout\` config, or checking the OpenAI API status https://status.openai.com`))}),c.write(i),c.end()}),"httpsPost"),ti=o(async(u,e,t,n)=>{const{response:r,data:s}=await Di("api.openai.com","/v1/chat/completions",{Authorization:`Bearer ${u}`},e,t);if(!r.statusCode||r.statusCode<200||r.statusCode>299){let D=`OpenAI API Error: ${r.statusCode} - ${r.statusMessage}`;throw s&&(D+=`
79
81
 
80
- ${o}`),r.statusCode===500&&(t+=`
82
+ ${s}`),r.statusCode===500&&(D+=`
81
83
 
82
- Check the API status: https://status.openai.com`),new S(t)}return JSON.parse(o)},"createChatCompletion"),da=s(u=>u.trim().replace(/[\n\r]/g,"").replace(/(\w)\.$/,"$1"),"sanitizeMessage"),Ea=s(u=>Array.from(new Set(u)),"deduplicateMessages"),Dn=s(async(u,D,e,n,r,o,t,i,a)=>{try{const l=await fa(u,{model:D,messages:[{role:"system",content:Fa(e,o,t)},{role:"user",content:n}],temperature:a,top_p:1,frequency_penalty:0,presence_penalty:0,max_tokens:300,stream:!1,n:r},i);return Ea(l.choices.filter(C=>C.message?.content).map(C=>da(C.message.content)))}catch(l){const C=l;throw C.code==="ENOTFOUND"?new S(`Error connecting to ${C.hostname} (${C.syscall}). Are you connected to the internet?`):C}},"generateCommitMessage");var pa=s(async(u,D,e,n,r)=>(async()=>{Pt(lt(ct(" aicommit "))),await kt();const o=OD();e&&await Z("git",["add","--update"]),o.start("Detecting staged files");const t=await Rt(D);if(!t)throw o.stop("Detecting staged files"),new S("No staged changes found. Stage your changes manually, or automatically stage all changes with the `--all` flag.");o.stop(`${Pi(t.files)}:
83
- ${t.files.map(F=>` ${F}`).join(`
84
- `)}`);const{env:i}=process,a=await RD({OPENAI_KEY:i.OPENAI_KEY||i.OPENAI_API_KEY,proxy:i.https_proxy||i.HTTPS_PROXY||i.http_proxy||i.HTTP_PROXY,generate:u?.toString(),type:n?.toString()}),l=OD();l.start("The AI is analyzing your changes");let C;try{C=await Dn(a.OPENAI_KEY,a.model,a.locale,t.diff,a.generate,a["max-length"],a.type,a.timeout,a.temperature)}finally{l.stop("Changes analyzed")}if(C.length===0)throw new S("No commit messages were generated. Try again.");let c;if(C.length===1){[c]=C;let F;if(a["auto-confirm"]?(F=!0,W(`${au("\u2714")} Auto confirmed commit message.
84
+ Check the API status: https://status.openai.com`),new S(D)}return JSON.parse(s)},"createChatCompletion"),ni=o(u=>u.trim().replace(/[\n\r]/g,"").replace(/(\w)\.$/,"$1"),"sanitizeMessage"),ri=o(u=>Array.from(new Set(u)),"deduplicateMessages"),Mt=o(async(u,e,t,n,r,s,D,a,i)=>{try{const c=await ti(u,{model:e,messages:[{role:"system",content:ei(t,s,D)},{role:"user",content:n}],temperature:i,top_p:1,frequency_penalty:0,presence_penalty:0,max_tokens:300,stream:!1,n:r},a);return ri(c.choices.filter(l=>l.message?.content).map(l=>ni(l.message.content)))}catch(c){const l=c;throw l.code==="ENOTFOUND"?new S(`Error connecting to ${l.hostname} (${l.syscall}). Are you connected to the internet?`):l}},"generateCommitMessage");var oi=o(async(u,e,t,n,r)=>(async()=>{dt(KD(VD(" aicommit "))),await Et();const s=be();t&&await X("git",["add","--update"]),s.start("Detecting staged files");const D=await ht(e);if(!D)throw s.stop("Detecting staged files"),new S("No staged changes found. Stage your changes manually, or automatically stage all changes with the `--all` flag.");s.stop(`${ks(D.files)}:
85
+ ${D.files.map(F=>` ${F}`).join(`
86
+ `)}`);const{env:a}=process,i=await $e({OPENAI_KEY:a.OPENAI_KEY||a.OPENAI_API_KEY,proxy:a.https_proxy||a.HTTPS_PROXY||a.http_proxy||a.HTTP_PROXY,generate:u?.toString(),type:n?.toString()}),c=be();c.start("The AI is analyzing your changes");let l;try{l=await Mt(i.OPENAI_KEY,i.model,i.locale,D.diff,i.generate,i["max-length"],i.type,i.timeout,i.temperature)}finally{c.stop("Changes analyzed")}if(l.length===0)throw new S("No commit messages were generated. Try again.");let C;if(l.length===1){[C]=l;let F;if(i["auto-confirm"]?(F=!0,H(`${ru("\u2714")} Auto confirmed commit message.
85
87
 
86
- ${c}
87
- `)):F=await Ti({message:`Use this commit message?
88
+ ${C}
89
+ `)):F=await Rs({message:`Use this commit message?
88
90
 
89
- ${c}
90
- `}),!F||$t(F)){W("Commit cancelled");return}}else{const F=await Ii({message:`Pick a commit message to use: ${pD("(Ctrl+c to exit)")}`,options:C.map(f=>({label:f,value:f}))});if($t(F)){W("Commit cancelled");return}c=F}if(a["prepend-reference"]){const{stdout:F}=await Z("git",["branch","--show-current"]),f=F.match(/([a-zA-Z])+-([0-9]+)/)?.[0];f?.length&&(c=`${f?.toUpperCase()}: ${c}`)}await Z("git",["commit","-m",c,...r]),W(`${au("\u2714")} Successfully committed!`)})().catch(o=>{W(`${$u("\u2716")} ${o.message}`),Iu(o),process.exit(1)}),"aicommit");const[VD,ha]=process.argv.slice(2);var ma=s(()=>(async()=>{if(!VD)throw new S('Commit message file path is missing. This file should be called from the "prepare-commit-msg" git hook');if(ha)return;const u=await Rt();if(!u)return;Pt(lt(ct(" aicommit ")));const{env:D}=process,e=await RD({proxy:D.https_proxy||D.HTTPS_PROXY||D.http_proxy||D.HTTP_PROXY}),n=OD();n.start("The AI is analyzing your changes");let r;try{r=await Dn(e.OPENAI_KEY,e.model,e.locale,u.diff,e.generate,e["max-length"],e.type,e.timeout,e.temperature)}finally{n.stop("Changes analyzed")}const t=await T.readFile(VD,"utf8")!=="",i=r.length>1;let a="";t&&(a=`# \u{1F916} AI generated commit${i?"s":""}
91
- `),i?(t&&(a+=`# Select one of the following messages by uncommeting:
92
- `),a+=`
93
- ${r.map(l=>`# ${l}`).join(`
94
- `)}`):(t&&(a+=`# Edit the message below and commit:
95
- `),a+=`
91
+ ${C}
92
+ `}),!F||at(F)){H("Commit cancelled");return}}else{const F=await _s({message:`Pick a commit message to use: ${ie("(Ctrl+c to exit)")}`,options:l.map(E=>({label:E,value:E}))});if(at(F)){H("Commit cancelled");return}C=F}if(i["prepend-reference"]){const{stdout:F}=await X("git",["branch","--show-current"]),E=F.match(/([a-zA-Z])+-([0-9]+)/)?.[0];E?.length&&(C=`${E?.toUpperCase()}: ${C}`)}await X("git",["commit","-m",C,...r]),H(`${ru("\u2714")} Successfully committed!`)})().catch(s=>{H(`${gu("\u2716")} ${s.message}`),vu(s),process.exit(1)}),"aicommit");const[Pe,si]=process.argv.slice(2);var ii=o(()=>(async()=>{if(!Pe)throw new S('Commit message file path is missing. This file should be called from the "prepare-commit-msg" git hook');if(si)return;const u=await ht();if(!u)return;dt(KD(VD(" aicommit ")));const{env:e}=process,t=await $e({proxy:e.https_proxy||e.HTTPS_PROXY||e.http_proxy||e.HTTP_PROXY}),n=be();n.start("The AI is analyzing your changes");let r;try{r=await Mt(t.OPENAI_KEY,t.model,t.locale,u.diff,t.generate,t["max-length"],t.type,t.timeout,t.temperature)}finally{n.stop("Changes analyzed")}const D=await I.readFile(Pe,"utf8")!=="",a=r.length>1;let i="";D&&(i=`# \u{1F916} AI generated commit${a?"s":""}
93
+ `),a?(D&&(i+=`# Select one of the following messages by uncommeting:
94
+ `),i+=`
95
+ ${r.map(c=>`# ${c}`).join(`
96
+ `)}`):(D&&(i+=`# Edit the message below and commit:
97
+ `),i+=`
96
98
  ${r[0]}
97
- `),await T.appendFile(VD,a),W(`${au("\u2714")} Saved commit message!`)})().catch(u=>{W(`${$u("\u2716")} ${u.message}`),Iu(u),process.exit(1)}),"prepareCommitMessageHook"),ga=Ie({name:"config",parameters:["<mode>","<key=value...>"]},u=>{(async()=>{const{mode:D,keyValue:e}=u._;if(D==="get"){const n=await RD({},!0);for(const r of e)Wt(n,r)&&console.log(`${r}=${n[r]}`);return}if(D==="set"){await Mi(e.map(n=>n.split("=")));return}throw new S(`Invalid mode: ${D}`)})().catch(D=>{console.error(`${$u("\u2716")} ${D.message}`),Iu(D),process.exit(1)})});const en="prepare-commit-msg",tn=`.git/hooks/${en}`,ju=An(new URL("cli.mjs",import.meta.url)),Ba=process.argv[1].replace(/\\/g,"/").endsWith(`/${tn}`),nn=process.platform==="win32",rn=`
99
+ `),await I.appendFile(Pe,i),H(`${ru("\u2714")} Saved commit message!`)})().catch(u=>{H(`${gu("\u2716")} ${u.message}`),vu(u),process.exit(1)}),"prepareCommitMessageHook"),ai=ED({name:"config",parameters:["<mode>","<key=value...>"]},u=>{(async()=>{const{mode:e,keyValue:t}=u._;if(e==="get"){const n=await $e({},!0);for(const r of t)bt(n,r)&&console.log(`${r}=${n[r]}`);return}if(e==="set"){await Gs(t.map(n=>n.split("=")));return}throw new S(`Invalid mode: ${e}`)})().catch(e=>{console.error(`${gu("\u2716")} ${e.message}`),vu(e),process.exit(1)})});const jt="prepare-commit-msg",Nt=`.git/hooks/${jt}`,Iu=on(new URL("cli.mjs",import.meta.url)),ci=process.argv[1].replace(/\\/g,"/").endsWith(`/${Nt}`),Lt=process.platform==="win32",Gt=`
98
100
  #!/usr/bin/env node
99
- import(${JSON.stringify(wn(ju))})
100
- `.trim();var ba=Ie({name:"hook",parameters:["<install/uninstall>"]},u=>{(async()=>{const D=await kt(),{installUninstall:e}=u._,n=q.join(D,tn),r=await Gt(n);if(e==="install"){if(r){if(await T.realpath(n).catch(()=>{})===ju){console.warn("The hook is already installed");return}throw new S(`A different ${en} hook seems to be installed. Please remove it before installing aicommit.`)}await T.mkdir(q.dirname(n),{recursive:!0}),nn?await T.writeFile(n,rn):(await T.symlink(ju,n,"file"),await T.chmod(n,493)),console.log(`${au("\u2714")} Hook installed`);return}if(e==="uninstall"){if(!r){console.warn("Hook is not installed");return}if(nn){if(await T.readFile(n,"utf8")!==rn){console.warn("Hook is not installed");return}}else if(await T.realpath(n)!==ju){console.warn("Hook is not installed");return}await T.rm(n),console.log(`${au("\u2714")} Hook uninstalled`);return}throw new S(`Invalid mode: ${e}`)})().catch(D=>{console.error(`${$u("\u2716")} ${D.message}`),Iu(D),process.exit(1)})});const on=process.argv.slice(2);zr({name:"aicommit",version:Pe,flags:{generate:{type:Number,description:"Number of messages to generate (Warning: generating multiple costs more) (default: 1)",alias:"g"},exclude:{type:[String],description:"Files to exclude from AI analysis",alias:"x"},all:{type:Boolean,description:"Automatically stage changes in tracked files for the commit",alias:"a",default:!1},type:{type:String,description:"Type of commit message to generate",alias:"t"}},commands:[ga,ba],help:{description:qr},ignoreArgv:s(u=>u==="unknown-flag"||u==="argument","ignoreArgv")},u=>{Ba?ma():pa(u.flags.generate,u.flags.exclude,u.flags.all,u.flags.type,on)},on);
101
+ import(${JSON.stringify(sn(Iu))})
102
+ `.trim();var li=ED({name:"hook",parameters:["<install/uninstall>"]},u=>{(async()=>{const e=await Et(),{installUninstall:t}=u._,n=V.join(e,Nt),r=await Bt(n);if(t==="install"){if(r){if(await I.realpath(n).catch(()=>{})===Iu){console.warn("The hook is already installed");return}throw new S(`A different ${jt} hook seems to be installed. Please remove it before installing aicommit.`)}await I.mkdir(V.dirname(n),{recursive:!0}),Lt?await I.writeFile(n,Gt):(await I.symlink(Iu,n,"file"),await I.chmod(n,493)),console.log(`${ru("\u2714")} Hook installed`);return}if(t==="uninstall"){if(!r){console.warn("Hook is not installed");return}if(Lt){if(await I.readFile(n,"utf8")!==Gt){console.warn("Hook is not installed");return}}else if(await I.realpath(n)!==Iu){console.warn("Hook is not installed");return}await I.rm(n),console.log(`${ru("\u2714")} Hook uninstalled`);return}throw new S(`Invalid mode: ${t}`)})().catch(e=>{console.error(`${gu("\u2716")} ${e.message}`),vu(e),process.exit(1)})});const qt=process.argv.slice(2);vr({name:"aicommit",version:pD,flags:{generate:{type:Number,description:"Number of messages to generate (Warning: generating multiple costs more) (default: 1)",alias:"g"},exclude:{type:[String],description:"Files to exclude from AI analysis",alias:"x"},all:{type:Boolean,description:"Automatically stage changes in tracked files for the commit",alias:"a",default:!1},type:{type:String,description:"Type of commit message to generate",alias:"t"}},commands:[ai,li],help:{description:$r},ignoreArgv:o(u=>u==="unknown-flag"||u==="argument","ignoreArgv")},u=>{ci?ii():oi(u.flags.generate,u.flags.exclude,u.flags.all,u.flags.type,qt)},qt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@negoziator/ai-commit",
3
- "version": "1.2.143",
3
+ "version": "1.2.145",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },