@negoziator/ai-commit 1.2.25 → 1.2.27
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.
- package/dist/cli.mjs +68 -69
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,101 +1,100 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import Eu from"tty";import{Buffer as Qt}from"node:buffer";import H from"node:path";import qD,{ChildProcess as un}from"node:child_process";import y,{stdin as zD,stdout as KD}from"node:process";import Dn from"child_process";import q from"path";import Mu from"fs";import{fileURLToPath as VD}from"node:url";import en,{constants as YD}from"node:os";import JD from"assert";import ZD from"events";import{createWriteStream as tn,createReadStream as nn}from"node:fs";import rn from"buffer";import ju from"stream";import XD from"util";import{debuglog as on}from"node:util";import*as du from"node:readline";import QD from"node:readline";import{WriteStream as sn}from"node:tty";import T from"fs/promises";import ue from"os";import an from"https";import cn from"net";import ln from"tls";import Fn,{fileURLToPath as Cn,pathToFileURL as fn}from"url";const En="known-flag",dn="unknown-flag",pn="argument",{stringify:uu}=JSON,hn=/\B([A-Z])/g,mn=u=>u.replace(hn,"-$1").toLowerCase(),{hasOwnProperty:gn}=Object.prototype,Du=(u,D)=>gn.call(u,D),Bn=u=>Array.isArray(u),De=u=>typeof u=="function"?[u,!1]:Bn(u)?[u[0],!0]:De(u.type),bn=(u,D)=>u===Boolean?D!=="false":D,yn=(u,D)=>typeof D=="boolean"?D:u===Number&&D===""?Number.NaN:u(D),An=/[\s.:=]/,wn=u=>{const D=`Flag name ${uu(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(An);if(e)throw new Error(`${D} cannot contain ${uu(e?.[0])}`)},$n=u=>{const D={},e=(t,r)=>{if(Du(D,t))throw new Error(`Duplicate flags named ${uu(t)}`);D[t]=r};for(const t in u){if(!Du(u,t))continue;wn(t);const r=u[t],o=[[],...De(r),r];e(t,o);const n=mn(t);if(t!==n&&e(n,o),"alias"in r&&typeof r.alias=="string"){const{alias:s}=r,i=`Flag alias ${uu(s)} for flag ${uu(t)}`;if(s.length===0)throw new Error(`${i} cannot be empty`);if(s.length>1)throw new Error(`${i} must be a single character`);e(s,o)}}return D},vn=(u,D)=>{const e={};for(const t in u){if(!Du(u,t))continue;const[r,,o,n]=D[t];if(r.length===0&&"default"in n){let{default:s}=n;typeof s=="function"&&(s=s()),e[t]=s}else e[t]=o?r:r.pop()}return e},pu="--",xn=/[.:=]/,Sn=/^-{1,2}\w/,On=u=>{if(!Sn.test(u))return;const D=!u.startsWith(pu);let e=u.slice(D?1:2),t;const r=e.match(xn);if(r){const{index:o}=r;t=e.slice(o+1),e=e.slice(0,o)}return[e,t,D]},Tn=(u,{onFlag:D,onArgument:e})=>{let t;const r=(o,n)=>{if(typeof t!="function")return!0;t(o,n),t=void 0};for(let o=0;o<u.length;o+=1){const n=u[o];if(n===pu){r();const i=u.slice(o+1);e?.(i,[o],!0);break}const s=On(n);if(s){if(r(),!D)continue;const[i,l,F]=s;if(F)for(let a=0;a<i.length;a+=1){r();const c=a===i.length-1;t=D(i[a],c?l:void 0,[o,a+1,c])}else t=D(i,l,[o])}else r(n,[o])&&e?.([n],[o])}r()},In=(u,D)=>{for(const[e,t,r]of D.reverse()){if(t){const o=u[e];let n=o.slice(0,t);if(r||(n+=o.slice(t+1)),n!=="-"){u[e]=n;continue}}u.splice(e,1)}},Pn=(u,D=process.argv.slice(2),{ignore:e}={})=>{const t=[],r=$n(u),o={},n=[];return n[pu]=[],Tn(D,{onFlag(s,i,l){const F=Du(r,s);if(!e?.(F?En:dn,s,i)){if(F){const[a,c]=r[s],C=bn(c,i),f=(d,p)=>{t.push(l),p&&t.push(p),a.push(yn(c,d||""))};return C===void 0?f:f(C)}Du(o,s)||(o[s]=[]),o[s].push(i===void 0?!0:i),t.push(l)}},onArgument(s,i,l){e?.(pn,D[i[0]])||(n.push(...s),l?(n[pu]=s,D.splice(i[0])):t.push(i))}}),In(D,t),{flags:vn(u,r),unknownFlags:o,_:n}};var _n=Object.create,hu=Object.defineProperty,Rn=Object.defineProperties,kn=Object.getOwnPropertyDescriptor,Mn=Object.getOwnPropertyDescriptors,jn=Object.getOwnPropertyNames,ee=Object.getOwnPropertySymbols,Nn=Object.getPrototypeOf,te=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,ne=(u,D,e)=>D in u?hu(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,mu=(u,D)=>{for(var e in D||(D={}))te.call(D,e)&&ne(u,e,D[e]);if(ee)for(var e of ee(D))Ln.call(D,e)&&ne(u,e,D[e]);return u},Nu=(u,D)=>Rn(u,Mn(D)),Gn=u=>hu(u,"__esModule",{value:!0}),Un=(u,D)=>()=>(u&&(D=u(u=0)),D),Wn=(u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports),Hn=(u,D,e,t)=>{if(D&&typeof D=="object"||typeof D=="function")for(let r of jn(D))!te.call(u,r)&&(e||r!=="default")&&hu(u,r,{get:()=>D[r],enumerable:!(t=kn(D,r))||t.enumerable});return u},qn=(u,D)=>Hn(Gn(hu(u!=null?_n(Nn(u)):{},"default",!D&&u&&u.__esModule?{get:()=>u.default,enumerable:!0}:{value:u,enumerable:!0})),u),S=Un(()=>{}),zn=Wn((u,D)=>{S(),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}});S(),S(),S();var Kn=u=>{var D,e,t;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:(t=u.stdoutColumns)!=null?t:r}};S(),S(),S(),S(),S();function Vn({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")}function re(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Vn(),"")}S();function Yn(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}var Jn=qn(zn(),1);function j(u){if(typeof u!="string"||u.length===0||(u=re(u),u.length===0))return 0;u=u.replace((0,Jn.default)()," ");let D=0;for(let e=0;e<u.length;e++){let t=u.codePointAt(e);t<=31||t>=127&&t<=159||t>=768&&t<=879||(t>65535&&e++,D+=Yn(t)?2:1)}return D}var oe=u=>Math.max(...u.split(`
|
|
3
|
-
`).map(
|
|
4
|
-
`)];for(let[
|
|
5
|
-
`?(o&&(t+=
|
|
6
|
-
`&&(r&&a&&(t+=
|
|
2
|
+
import Cu from"tty";import{Buffer as Xt}from"node:buffer";import H from"node:path";import WD,{ChildProcess as Qt}from"node:child_process";import y,{stdin as HD,stdout as qD}from"node:process";import un from"child_process";import q from"path";import ku from"fs";import{fileURLToPath as zD}from"node:url";import Dn,{constants as KD}from"node:os";import VD from"assert";import YD from"events";import{createWriteStream as en,createReadStream as tn}from"node:fs";import nn from"buffer";import Ru from"stream";import JD from"util";import{debuglog as rn}from"node:util";import*as fu from"node:readline";import ZD from"node:readline";import{WriteStream as on}from"node:tty";import T from"fs/promises";import XD from"os";import sn from"https";import an from"net";import cn from"tls";import ln,{fileURLToPath as Fn,pathToFileURL as Cn}from"url";const fn="known-flag",dn="unknown-flag",En="argument",{stringify:uu}=JSON,pn=/\B([A-Z])/g,hn=u=>u.replace(pn,"-$1").toLowerCase(),{hasOwnProperty:mn}=Object.prototype,Du=(u,D)=>mn.call(u,D),gn=u=>Array.isArray(u),QD=u=>typeof u=="function"?[u,!1]:gn(u)?[u[0],!0]:QD(u.type),Bn=(u,D)=>u===Boolean?D!=="false":D,bn=(u,D)=>typeof D=="boolean"?D:u===Number&&D===""?Number.NaN:u(D),yn=/[\s.:=]/,An=u=>{const D=`Flag name ${uu(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(yn);if(e)throw new Error(`${D} cannot contain ${uu(e?.[0])}`)},wn=u=>{const D={},e=(t,r)=>{if(Du(D,t))throw new Error(`Duplicate flags named ${uu(t)}`);D[t]=r};for(const t in u){if(!Du(u,t))continue;An(t);const r=u[t],o=[[],...QD(r),r];e(t,o);const n=hn(t);if(t!==n&&e(n,o),"alias"in r&&typeof r.alias=="string"){const{alias:s}=r,i=`Flag alias ${uu(s)} for flag ${uu(t)}`;if(s.length===0)throw new Error(`${i} cannot be empty`);if(s.length>1)throw new Error(`${i} must be a single character`);e(s,o)}}return D},$n=(u,D)=>{const e={};for(const t in u){if(!Du(u,t))continue;const[r,,o,n]=D[t];if(r.length===0&&"default"in n){let{default:s}=n;typeof s=="function"&&(s=s()),e[t]=s}else e[t]=o?r:r.pop()}return e},du="--",vn=/[.:=]/,xn=/^-{1,2}\w/,Sn=u=>{if(!xn.test(u))return;const D=!u.startsWith(du);let e=u.slice(D?1:2),t;const r=e.match(vn);if(r){const{index:o}=r;t=e.slice(o+1),e=e.slice(0,o)}return[e,t,D]},On=(u,{onFlag:D,onArgument:e})=>{let t;const r=(o,n)=>{if(typeof t!="function")return!0;t(o,n),t=void 0};for(let o=0;o<u.length;o+=1){const n=u[o];if(n===du){r();const i=u.slice(o+1);e?.(i,[o],!0);break}const s=Sn(n);if(s){if(r(),!D)continue;const[i,c,F]=s;if(F)for(let a=0;a<i.length;a+=1){r();const l=a===i.length-1;t=D(i[a],l?c:void 0,[o,a+1,l])}else t=D(i,c,[o])}else r(n,[o])&&e?.([n],[o])}r()},Tn=(u,D)=>{for(const[e,t,r]of D.reverse()){if(t){const o=u[e];let n=o.slice(0,t);if(r||(n+=o.slice(t+1)),n!=="-"){u[e]=n;continue}}u.splice(e,1)}},In=(u,D=process.argv.slice(2),{ignore:e}={})=>{const t=[],r=wn(u),o={},n=[];return n[du]=[],On(D,{onFlag(s,i,c){const F=Du(r,s);if(!e?.(F?fn:dn,s,i)){if(F){const[a,l]=r[s],C=Bn(l,i),f=(d,p)=>{t.push(c),p&&t.push(p),a.push(bn(l,d||""))};return C===void 0?f:f(C)}Du(o,s)||(o[s]=[]),o[s].push(i===void 0?!0:i),t.push(c)}},onArgument(s,i,c){e?.(En,D[i[0]])||(n.push(...s),c?(n[du]=s,D.splice(i[0])):t.push(i))}}),Tn(D,t),{flags:$n(u,r),unknownFlags:o,_:n}};var Pn=Object.create,Eu=Object.defineProperty,_n=Object.defineProperties,kn=Object.getOwnPropertyDescriptor,Rn=Object.getOwnPropertyDescriptors,Mn=Object.getOwnPropertyNames,ue=Object.getOwnPropertySymbols,jn=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,ee=(u,D,e)=>D in u?Eu(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,pu=(u,D)=>{for(var e in D||(D={}))De.call(D,e)&&ee(u,e,D[e]);if(ue)for(var e of ue(D))Nn.call(D,e)&&ee(u,e,D[e]);return u},Mu=(u,D)=>_n(u,Rn(D)),Ln=u=>Eu(u,"__esModule",{value:!0}),Gn=(u,D)=>()=>(u&&(D=u(u=0)),D),Un=(u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports),Wn=(u,D,e,t)=>{if(D&&typeof D=="object"||typeof D=="function")for(let r of Mn(D))!De.call(u,r)&&r!=="default"&&Eu(u,r,{get:()=>D[r],enumerable:!(t=kn(D,r))||t.enumerable});return u},Hn=(u,D)=>Wn(Ln(Eu(u!=null?Pn(jn(u)):{},"default",{value:u,enumerable:!0})),u),S=Gn(()=>{}),qn=Un((u,D)=>{S(),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}});S(),S(),S();var zn=u=>{var D,e,t;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:(t=u.stdoutColumns)!=null?t:r}};S(),S(),S(),S(),S();function Kn({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")}function te(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Kn(),"")}S();function Vn(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}var Yn=Hn(qn());function N(u){if(typeof u!="string"||u.length===0||(u=te(u),u.length===0))return 0;u=u.replace((0,Yn.default)()," ");let D=0;for(let e=0;e<u.length;e++){let t=u.codePointAt(e);t<=31||t>=127&&t<=159||t>=768&&t<=879||(t>65535&&e++,D+=Vn(t)?2:1)}return D}var ne=u=>Math.max(...u.split(`
|
|
3
|
+
`).map(N)),Jn=u=>{let D=[];for(let e of u){let{length:t}=e,r=t-D.length;for(let o=0;o<r;o+=1)D.push(0);for(let o=0;o<t;o+=1){let n=ne(e[o]);n>D[o]&&(D[o]=n)}}return D};S();var re=/^\d+%$/,oe={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Zn=(u,D)=>{var e;let t=[];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"&&re.test(o)){t.push(Mu(pu({},oe),{width:o,contentWidth:u[r]}));continue}if(o&&typeof o=="object"){let n=Mu(pu(pu({},oe),o),{contentWidth:u[r]});n.horizontalPadding=n.paddingLeft+n.paddingRight,t.push(n);continue}throw new Error(`Invalid column width: ${JSON.stringify(o)}`)}return t};function Xn(u,D){for(let e of u){let{width:t}=e;if(t==="content-width"&&(e.width=e.contentWidth),t==="auto"){let i=Math.min(20,e.contentWidth);e.width=i,e.autoOverflow=e.contentWidth-i}if(typeof t=="string"&&re.test(t)){let i=Number.parseFloat(t.slice(0,-1))/100;e.width=Math.floor(D*i)-(e.paddingLeft+e.paddingRight)}let{horizontalPadding:r}=e,o=1,n=o+r;if(n>=D){let i=n-D,c=Math.ceil(e.paddingLeft/r*i),F=i-c;e.paddingLeft-=c,e.paddingRight-=F,e.horizontalPadding=e.paddingLeft+e.paddingRight}e.paddingLeftString=e.paddingLeft?" ".repeat(e.paddingLeft):"",e.paddingRightString=e.paddingRight?" ".repeat(e.paddingRight):"";let s=D-e.horizontalPadding;e.width=Math.max(Math.min(e.width,s),o)}}var se=()=>Object.assign([],{columns:0});function Qn(u,D){let e=[se()],[t]=e;for(let r of u){let o=r.width+r.horizontalPadding;t.columns+o>D&&(t=se(),e.push(t)),t.push(r),t.columns+=o}for(let r of e){let o=r.reduce((l,C)=>l+C.width+C.horizontalPadding,0),n=D-o;if(n===0)continue;let s=r.filter(l=>"autoOverflow"in l),i=s.filter(l=>l.autoOverflow>0),c=i.reduce((l,C)=>l+C.autoOverflow,0),F=Math.min(c,n);for(let l of i){let C=Math.floor(l.autoOverflow/c*F);l.width+=C,n-=C}let a=Math.floor(n/s.length);for(let l=0;l<s.length;l+=1){let C=s[l];l===s.length-1?C.width+=n:C.width+=a,n-=a}}return e}function ur(u,D,e){let t=Zn(e,D);return Xn(t,u),Qn(t,u)}S(),S(),S();var ju=10,ie=(u=0)=>D=>`\x1B[${D+u}m`,ae=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,ce=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`;function Dr(){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,t]of Object.entries(D)){for(let[r,o]of Object.entries(t))D[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},t[r]=D[r],u.set(o[0],o[1]);Object.defineProperty(D,e,{value:t,enumerable:!1})}return Object.defineProperty(D,"codes",{value:u,enumerable:!1}),D.color.close="\x1B[39m",D.bgColor.close="\x1B[49m",D.color.ansi=ie(),D.color.ansi256=ae(),D.color.ansi16m=ce(),D.bgColor.ansi=ie(ju),D.bgColor.ansi256=ae(ju),D.bgColor.ansi16m=ce(ju),Object.defineProperties(D,{rgbToAnsi256:{value:(e,t,r)=>e===t&&t===r?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(r/255*5),enumerable:!1},hexToRgb:{value:e=>{let t=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(e.toString(16));if(!t)return[0,0,0];let{colorString:r}=t.groups;r.length===3&&(r=r.split("").map(n=>n+n).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:e=>D.rgbToAnsi256(...D.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,r,o;if(e>=232)t=((e-232)*10+8)/255,r=t,o=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,r=Math.floor(i/6)/5,o=i%6/5}let n=Math.max(t,r,o)*2;if(n===0)return 30;let s=30+(Math.round(o)<<2|Math.round(r)<<1|Math.round(t));return n===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(e,t,r)=>D.ansi256ToAnsi(D.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>D.ansi256ToAnsi(D.hexToAnsi256(e)),enumerable:!1}}),D}var er=Dr(),tr=er,hu=new Set(["\x1B","\x9B"]),nr=39,Nu="\x07",le="[",rr="]",Fe="m",Lu=`${rr}8;;`,Ce=u=>`${hu.values().next().value}${le}${u}${Fe}`,fe=u=>`${hu.values().next().value}${Lu}${u}${Nu}`,or=u=>u.split(" ").map(D=>N(D)),Gu=(u,D,e)=>{let t=[...D],r=!1,o=!1,n=N(te(u[u.length-1]));for(let[s,i]of t.entries()){let c=N(i);if(n+c<=e?u[u.length-1]+=i:(u.push(i),n=0),hu.has(i)&&(r=!0,o=t.slice(s+1).join("").startsWith(Lu)),r){o?i===Nu&&(r=!1,o=!1):i===Fe&&(r=!1);continue}n+=c,n===e&&s<t.length-1&&(u.push(""),n=0)}!n&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},sr=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("")},ir=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,o,n=or(u),s=[""];for(let[c,F]of u.split(" ").entries()){e.trim!==!1&&(s[s.length-1]=s[s.length-1].trimStart());let a=N(s[s.length-1]);if(c!==0&&(a>=D&&(e.wordWrap===!1||e.trim===!1)&&(s.push(""),a=0),(a>0||e.trim===!1)&&(s[s.length-1]+=" ",a++)),e.hard&&n[c]>D){let l=D-a,C=1+Math.floor((n[c]-l-1)/D);Math.floor((n[c]-1)/D)<C&&s.push(""),Gu(s,F,D);continue}if(a+n[c]>D&&a>0&&n[c]>0){if(e.wordWrap===!1&&a<D){Gu(s,F,D);continue}s.push("")}if(a+n[c]>D&&e.wordWrap===!1){Gu(s,F,D);continue}s[s.length-1]+=F}e.trim!==!1&&(s=s.map(c=>sr(c)));let i=[...s.join(`
|
|
4
|
+
`)];for(let[c,F]of i.entries()){if(t+=F,hu.has(F)){let{groups:l}=new RegExp(`(?:\\${le}(?<code>\\d+)m|\\${Lu}(?<uri>.*)${Nu})`).exec(i.slice(c).join(""))||{groups:{}};if(l.code!==void 0){let C=Number.parseFloat(l.code);r=C===nr?void 0:C}else l.uri!==void 0&&(o=l.uri.length===0?void 0:l.uri)}let a=tr.codes.get(Number(r));i[c+1]===`
|
|
5
|
+
`?(o&&(t+=fe("")),r&&a&&(t+=Ce(a))):F===`
|
|
6
|
+
`&&(r&&a&&(t+=Ce(r)),o&&(t+=fe(o)))}return t};function ar(u,D,e){return String(u).normalize().replace(/\r\n/g,`
|
|
7
7
|
`).split(`
|
|
8
|
-
`).map(t=>
|
|
9
|
-
`)}var
|
|
10
|
-
`);if(i.postprocess){let{postprocess:
|
|
8
|
+
`).map(t=>ir(t,D,e)).join(`
|
|
9
|
+
`)}var de=u=>Array.from({length:u}).fill("");function cr(u,D){let e=[],t=0;for(let r of u){let o=0,n=r.map(i=>{var c;let F=(c=D[t])!=null?c:"";t+=1,i.preprocess&&(F=i.preprocess(F)),ne(F)>i.width&&(F=ar(F,i.width,{hard:!0}));let a=F.split(`
|
|
10
|
+
`);if(i.postprocess){let{postprocess:l}=i;a=a.map((C,f)=>l.call(i,C,f))}return i.paddingTop&&a.unshift(...de(i.paddingTop)),i.paddingBottom&&a.push(...de(i.paddingBottom)),a.length>o&&(o=a.length),Mu(pu({},i),{lines:a})}),s=[];for(let i=0;i<o;i+=1){let c=n.map(F=>{var a;let l=(a=F.lines[i])!=null?a:"",C=Number.isFinite(F.width)?" ".repeat(F.width-N(l)):"",f=F.paddingLeftString;return F.align==="right"&&(f+=C),f+=l,F.align==="left"&&(f+=C),f+F.paddingRightString}).join("");s.push(c)}e.push(s.join(`
|
|
11
11
|
`))}return e.join(`
|
|
12
|
-
`)}function
|
|
13
|
-
`)}S();var
|
|
14
|
-
`}}function
|
|
15
|
-
`}}function
|
|
16
|
-
`):D.usage}}:void 0;if(u.name){const e=[],t=[
|
|
17
|
-
`)}}}}function
|
|
18
|
-
`)),e)return{id:"examples",type:"section",data:{title:"Examples:",body:e}}}function
|
|
12
|
+
`)}function lr(u,D){if(!u||u.length===0)return"";let e=Jn(u),t=e.length;if(t===0)return"";let{stdoutColumns:r,columns:o}=zn(D);if(o.length>t)throw new Error(`${o.length} columns defined, but only ${t} columns found`);let n=ur(r,o,e);return u.map(s=>cr(n,s)).join(`
|
|
13
|
+
`)}S();var Fr=["<",">","=",">=","<="];function Cr(u){if(!Fr.includes(u))throw new TypeError(`Invalid breakpoint operator: ${u}`)}function fr(u){let D=Object.keys(u).map(e=>{let[t,r]=e.split(" ");Cr(t);let o=Number.parseInt(r,10);if(Number.isNaN(o))throw new TypeError(`Invalid breakpoint value: ${r}`);let n=u[e];return{operator:t,breakpoint:o,value:n}}).sort((e,t)=>t.breakpoint-e.breakpoint);return e=>{var t;return(t=D.find(({operator:r,breakpoint:o})=>r==="="&&e===o||r===">"&&e>o||r==="<"&&e<o||r===">="&&e>=o||r==="<="&&e<=o))==null?void 0:t.value}}const dr=u=>u.replace(/[\W_]([a-z\d])?/gi,(D,e)=>e?e.toUpperCase():""),Er=u=>u.replace(/\B([A-Z])/g,"-$1").toLowerCase(),pr={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:u=>u.trim()},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function hr(u){let D=!1;return{type:"table",data:{tableData:Object.keys(u).sort((e,t)=>e.localeCompare(t)).map(e=>{const t=u[e],r="alias"in t;return r&&(D=!0),{name:e,flag:t,flagFormatted:`--${Er(e)}`,aliasesEnabled:D,aliasFormatted:r?`-${t.alias}`:void 0}}).map(e=>(e.aliasesEnabled=D,[{type:"flagName",data:e},{type:"flagDescription",data:e}])),tableBreakpoints:pr}}}const Ee=u=>!u||(u.version??(u.help?u.help.version:void 0)),pe=u=>{const D="parent"in u&&u.parent?.name;return(D?`${D} `:"")+u.name};function mr(u){const D=[];u.name&&D.push(pe(u));const e=Ee(u)??("parent"in u&&Ee(u.parent));if(e&&D.push(`v${e}`),D.length!==0)return{id:"name",type:"text",data:`${D.join(" ")}
|
|
14
|
+
`}}function gr(u){const{help:D}=u;if(!(!D||!D.description))return{id:"description",type:"text",data:`${D.description}
|
|
15
|
+
`}}function Br(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=[],t=[pe(u)];if(u.flags&&Object.keys(u.flags).length>0&&t.push("[flags...]"),u.parameters&&u.parameters.length>0){const{parameters:r}=u,o=r.indexOf("--"),n=o>-1&&r.slice(o+1).some(s=>s.startsWith("<"));t.push(r.map(s=>s!=="--"?s:n?"--":"[--]").join(" "))}if(t.length>1&&e.push(t.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
|
+
`)}}}}function br(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}}}function yr(u){if(!(!u.flags||Object.keys(u.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:hr(u.flags),indentBody:0}}}function Ar(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}}}function wr(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}}}const $r=u=>[mr,gr,Br,br,yr,Ar,wr].map(D=>D(u)).filter(Boolean),vr=Cu.WriteStream.prototype.hasColors();let xr=class{text(D){return D}bold(D){return vr?`\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:t=2}){return`${(D?`${this.heading(D)}
|
|
19
19
|
`:"")+(e?this.indentText({text:this.render(e),spaces:t}):"")}
|
|
20
|
-
`}table({tableData:D,tableOptions:e,tableBreakpoints:t}){return
|
|
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)}`)}}const
|
|
22
|
-
`),t(),process.exit(1);u[i]=
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
${D}`,$o=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),vo=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),xo=(u,D,e)=>{const t=e===""?"":`with ${e.trim()}() `,r=wo.bind(null,t,D.toString());Object.defineProperty(r,"name",vo),Object.defineProperty(u,"toString",{...$o,value:r})};function So(u,D,{ignoreNonConfigurable:e=!1}={}){const{name:t}=u;for(const r of Reflect.ownKeys(D))bo(u,D,r,e);return Ao(u,D),xo(u,D,t),u}const bu=new WeakMap,Ne=(u,D={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let e,t=0;const r=u.displayName||u.name||"<anonymous>",o=function(...n){if(bu.set(o,++t),t===1)e=u.apply(this,n),u=null;else if(D.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return e};return So(o,u),bu.set(o,t),o};Ne.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 Oo=()=>{const u=Ge-Le+1;return Array.from({length:u},To)},To=(u,D)=>({name:`SIGRT${D+1}`,number:Le+D,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Le=34,Ge=64,Io=[{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"}],Ue=()=>{const u=Oo();return[...Io,...u].map(Po)},Po=({name:u,number:D,description:e,action:t,forced:r=!1,standard:o})=>{const{signals:{[u]:n}}=YD,s=n!==void 0;return{name:u,number:s?n:D,description:e,supported:s,action:t,forced:r,standard:o}},_o=()=>{const u=Ue();return Object.fromEntries(u.map(Ro))},Ro=({name:u,number:D,description:e,supported:t,action:r,forced:o,standard:n})=>[u,{name:u,number:D,description:e,supported:t,action:r,forced:o,standard:n}],ko=_o(),Mo=()=>{const u=Ue(),D=Ge+1,e=Array.from({length:D},(t,r)=>jo(r,u));return Object.assign({},...e)},jo=(u,D)=>{const e=No(u,D);if(e===void 0)return{};const{name:t,description:r,supported:o,action:n,forced:s,standard:i}=e;return{[u]:{name:t,number:u,description:r,supported:o,action:n,forced:s,standard:i}}},No=(u,D)=>{const e=D.find(({name:t})=>YD.signals[t]===u);return e!==void 0?e:D.find(t=>t.number===u)};Mo();const Lo=({timedOut:u,timeout:D,errorCode:e,signal:t,signalDescription:r,exitCode:o,isCanceled:n})=>u?`timed out after ${D} milliseconds`:n?"was canceled":e!==void 0?`failed with ${e}`:t!==void 0?`was killed with ${t} (${r})`:o!==void 0?`failed with exit code ${o}`:"failed",We=({stdout:u,stderr:D,all:e,error:t,signal:r,exitCode:o,command:n,escapedCommand:s,timedOut:i,isCanceled:l,killed:F,parsed:{options:{timeout:a,cwd:c=y.cwd()}}})=>{o=o===null?void 0:o,r=r===null?void 0:r;const C=r===void 0?void 0:ko[r].description,f=t&&t.code,p=`Command ${Lo({timedOut:i,timeout:a,errorCode:f,signal:r,signalDescription:C,exitCode:o,isCanceled:l})}: ${n}`,h=Object.prototype.toString.call(t)==="[object Error]",w=h?`${p}
|
|
20
|
+
`}table({tableData:D,tableOptions:e,tableBreakpoints:t}){return lr(D.map(r=>r.map(o=>this.render(o))),t?fr(t):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:t,aliasesEnabled:r,aliasFormatted:o}=D;let n="";if(o?n+=`${o}, `:r&&(n+=" "),n+=t,"placeholder"in e&&typeof e.placeholder=="string")n+=`${this.flagOperator(D)}${e.placeholder}`;else{const s=this.flagParameter("type"in e?e.type:e);s&&(n+=`${this.flagOperator(D)}${s}`)}return n}flagDefault(D){return JSON.stringify(D)}flagDescription({flag:D}){let e="description"in D?D.description??"":"";if("default"in D){let{default:t}=D;typeof t=="function"&&(t=t()),t&&(e+=` (default: ${this.flagDefault(t)})`)}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)}`)}};const Uu=/^[\w.-]+$/,{stringify:k}=JSON,Sr=/[|\\{}()[\]^$+*?.]/;function Wu(u){const D=[];let e,t;for(const r of u){if(t)throw new Error(`Invalid parameter: Spread parameter ${k(t)} must be last`);const o=r[0],n=r[r.length-1];let s;if(o==="<"&&n===">"&&(s=!0,e))throw new Error(`Invalid parameter: Required parameter ${k(r)} cannot come after optional parameter ${k(e)}`);if(o==="["&&n==="]"&&(s=!1,e=r),s===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&&(t=r,i=i.slice(0,-3));const F=i.match(Sr);if(F)throw new Error(`Invalid parameter: ${k(r)}. Invalid character found ${k(F[0])}`);D.push({name:i,required:s,spread:c})}return D}function Hu(u,D,e,t){for(let r=0;r<D.length;r+=1){const{name:o,required:n,spread:s}=D[r],i=dr(o);if(i in u)throw new Error(`Invalid parameter: ${k(o)} is used more than once.`);const c=s?e.slice(r):e[r];if(s&&(r=D.length),n&&(!c||s&&c.length===0))return console.error(`Error: Missing required parameter ${k(o)}
|
|
22
|
+
`),t(),process.exit(1);u[i]=c}}function Or(u){return u===void 0||u!==!1}function he(u,D,e,t){const r={...D.flags},o=D.version;o&&(r.version={type:Boolean,description:"Show version"});const{help:n}=D,s=Or(n);s&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const i=In(r,t,{ignore:D.ignoreArgv}),c=()=>{console.log(D.version)};if(o&&i.flags.version===!0)return c(),process.exit(0);const F=new xr,a=s&&n?.render?n.render:f=>F.render(f),l=f=>{const d=$r({...D,...f?{help:f}:{},flags:r});console.log(a(d,F))};if(s&&i.flags.help===!0)return l(),process.exit(0);if(D.parameters){let{parameters:f}=D,d=i._;const p=f.indexOf("--"),h=f.slice(p+1),w=Object.create(null);if(p>-1&&h.length>0){f=f.slice(0,p);const P=i._["--"];d=d.slice(0,-P.length||void 0),Hu(w,Wu(f),d,l),Hu(w,Wu(h),P,l)}else Hu(w,Wu(f),d,l);Object.assign(i._,w)}const C={...i,showVersion:c,showHelp:l};return typeof e=="function"&&e(C),{command:u,...C}}function Tr(u,D){const e=new Map;for(const t of D){const r=[t.options.name],{alias:o}=t.options;o&&(Array.isArray(o)?r.push(...o):r.push(o));for(const n of r){if(e.has(n))throw new Error(`Duplicate command name found: ${k(n)}`);e.set(n,t)}}return e.get(u)}function Ir(u,D,e=process.argv.slice(2)){if(!u)throw new Error("Options is required");if("name"in u&&(!u.name||!Uu.test(u.name)))throw new Error(`Invalid script name: ${k(u.name)}`);const t=e[0];if(u.commands&&Uu.test(t)){const r=Tr(t,u.commands);if(r)return he(r.options.name,{...r.options,parent:u},r.callback,e.slice(1))}return he(void 0,u,D,e)}function me(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(!Uu.test(e))throw new Error(`Invalid command name ${JSON.stringify(e)}. Command names must be one word.`);return{options:u,callback:D}}var ge="1.2.27",Pr="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 z(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var K={exports:{}},qu,Be;function _r(){if(Be)return qu;Be=1,qu=t,t.sync=r;var u=ku;function D(o,n){var s=n.pathExt!==void 0?n.pathExt:process.env.PATHEXT;if(!s||(s=s.split(";"),s.indexOf("")!==-1))return!0;for(var i=0;i<s.length;i++){var c=s[i].toLowerCase();if(c&&o.substr(-c.length).toLowerCase()===c)return!0}return!1}function e(o,n,s){return!o.isSymbolicLink()&&!o.isFile()?!1:D(n,s)}function t(o,n,s){u.stat(o,function(i,c){s(i,i?!1:e(c,o,n))})}function r(o,n){return e(u.statSync(o),o,n)}return qu}var zu,be;function kr(){if(be)return zu;be=1,zu=D,D.sync=e;var u=ku;function D(o,n,s){u.stat(o,function(i,c){s(i,i?!1:t(c,n))})}function e(o,n){return t(u.statSync(o),n)}function t(o,n){return o.isFile()&&r(o,n)}function r(o,n){var s=o.mode,i=o.uid,c=o.gid,F=n.uid!==void 0?n.uid:process.getuid&&process.getuid(),a=n.gid!==void 0?n.gid:process.getgid&&process.getgid(),l=parseInt("100",8),C=parseInt("010",8),f=parseInt("001",8),d=l|C,p=s&f||s&C&&c===a||s&l&&i===F||s&d&&F===0;return p}return zu}var mu;process.platform==="win32"||A.TESTING_WINDOWS?mu=_r():mu=kr();var Rr=Ku;Ku.sync=Mr;function Ku(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(t,r){Ku(u,D||{},function(o,n){o?r(o):t(n)})})}mu(u,D||{},function(t,r){t&&(t.code==="EACCES"||D&&D.ignoreErrors)&&(t=null,r=!1),e(t,r)})}function Mr(u,D){try{return mu.sync(u,D||{})}catch(e){if(D&&D.ignoreErrors||e.code==="EACCES")return!1;throw e}}const V=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",ye=q,jr=V?";":":",Ae=Rr,we=u=>Object.assign(new Error(`not found: ${u}`),{code:"ENOENT"}),$e=(u,D)=>{const e=D.colon||jr,t=u.match(/\//)||V&&u.match(/\\/)?[""]:[...V?[process.cwd()]:[],...(D.path||process.env.PATH||"").split(e)],r=V?D.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=V?r.split(e):[""];return V&&u.indexOf(".")!==-1&&o[0]!==""&&o.unshift(""),{pathEnv:t,pathExt:o,pathExtExe:r}},ve=(u,D,e)=>{typeof D=="function"&&(e=D,D={}),D||(D={});const{pathEnv:t,pathExt:r,pathExtExe:o}=$e(u,D),n=[],s=c=>new Promise((F,a)=>{if(c===t.length)return D.all&&n.length?F(n):a(we(u));const l=t[c],C=/^".*"$/.test(l)?l.slice(1,-1):l,f=ye.join(C,u),d=!C&&/^\.[\\\/]/.test(u)?u.slice(0,2)+f:f;F(i(d,c,0))}),i=(c,F,a)=>new Promise((l,C)=>{if(a===r.length)return l(s(F+1));const f=r[a];Ae(c+f,{pathExt:o},(d,p)=>{if(!d&&p)if(D.all)n.push(c+f);else return l(c+f);return l(i(c,F,a+1))})});return e?s(0).then(c=>e(null,c),e):s(0)},Nr=(u,D)=>{D=D||{};const{pathEnv:e,pathExt:t,pathExtExe:r}=$e(u,D),o=[];for(let n=0;n<e.length;n++){const s=e[n],i=/^".*"$/.test(s)?s.slice(1,-1):s,c=ye.join(i,u),F=!i&&/^\.[\\\/]/.test(u)?u.slice(0,2)+c:c;for(let a=0;a<t.length;a++){const l=F+t[a];try{if(Ae.sync(l,{pathExt:r}))if(D.all)o.push(l);else return l}catch{}}}if(D.all&&o.length)return o;if(D.nothrow)return null;throw we(u)};var Lr=ve;ve.sync=Nr;var Vu={exports:{}};const xe=(u={})=>{const D=u.env||process.env;return(u.platform||process.platform)!=="win32"?"PATH":Object.keys(D).reverse().find(t=>t.toUpperCase()==="PATH")||"Path"};Vu.exports=xe,Vu.exports.default=xe;var Gr=Vu.exports;const Se=q,Ur=Lr,Wr=Gr;function Oe(u,D){const e=u.options.env||process.env,t=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 n;try{n=Ur.sync(u.command,{path:e[Wr({env:e})],pathExt:D?Se.delimiter:void 0})}catch{}finally{o&&process.chdir(t)}return n&&(n=Se.resolve(r?u.options.cwd:"",n)),n}function Hr(u){return Oe(u)||Oe(u,!0)}var qr=Hr,Yu={};const Ju=/([()\][%!^"`<>&|;, *?])/g;function zr(u){return u=u.replace(Ju,"^$1"),u}function Kr(u,D){return u=`${u}`,u=u.replace(/(\\*)"/g,'$1$1\\"'),u=u.replace(/(\\*)$/,"$1$1"),u=`"${u}"`,u=u.replace(Ju,"^$1"),D&&(u=u.replace(Ju,"^$1")),u}Yu.command=zr,Yu.argument=Kr;var Vr=/^#!(.*)/;const Yr=Vr;var Jr=(u="")=>{const D=u.match(Yr);if(!D)return null;const[e,t]=D[0].replace(/#! ?/,"").split(" "),r=e.split("/").pop();return r==="env"?t:t?`${r} ${t}`:r};const Zu=ku,Zr=Jr;function Xr(u){const e=Buffer.alloc(150);let t;try{t=Zu.openSync(u,"r"),Zu.readSync(t,e,0,150,0),Zu.closeSync(t)}catch{}return Zr(e.toString())}var Qr=Xr;const uo=q,Te=qr,Ie=Yu,Do=Qr,eo=process.platform==="win32",to=/\.(?:com|exe)$/i,no=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function ro(u){u.file=Te(u);const D=u.file&&Do(u.file);return D?(u.args.unshift(u.file),u.command=D,Te(u)):u.file}function oo(u){if(!eo)return u;const D=ro(u),e=!to.test(D);if(u.options.forceShell||e){const t=no.test(D);u.command=uo.normalize(u.command),u.command=Ie.command(u.command),u.args=u.args.map(o=>Ie.argument(o,t));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}function so(u,D,e){D&&!Array.isArray(D)&&(e=D,D=null),D=D?D.slice(0):[],e=Object.assign({},e);const t={command:u,args:D,options:e,file:void 0,original:{command:u,args:D}};return e.shell?t:oo(t)}var io=so;const Xu=process.platform==="win32";function Qu(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})}function ao(u,D){if(!Xu)return;const e=u.emit;u.emit=function(t,r){if(t==="exit"){const o=Pe(r,D);if(o)return e.call(u,"error",o)}return e.apply(u,arguments)}}function Pe(u,D){return Xu&&u===1&&!D.file?Qu(D.original,"spawn"):null}function co(u,D){return Xu&&u===1&&!D.file?Qu(D.original,"spawnSync"):null}var lo={hookChildProcess:ao,verifyENOENT:Pe,verifyENOENTSync:co,notFoundError:Qu};const _e=un,uD=io,DD=lo;function ke(u,D,e){const t=uD(u,D,e),r=_e.spawn(t.command,t.args,t.options);return DD.hookChildProcess(r,t),r}function Fo(u,D,e){const t=uD(u,D,e),r=_e.spawnSync(t.command,t.args,t.options);return r.error=r.error||DD.verifyENOENTSync(r.status,t),r}K.exports=ke,K.exports.spawn=ke,K.exports.sync=Fo,K.exports._parse=uD,K.exports._enoent=DD;var Co=K.exports,fo=z(Co);function Eo(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}function Re(u={}){const{env:D=process.env,platform:e=process.platform}=u;return e!=="win32"?"PATH":Object.keys(D).reverse().find(t=>t.toUpperCase()==="PATH")||"Path"}const po=({cwd:u=y.cwd(),path:D=y.env[Re()],preferLocal:e=!0,execPath:t=y.execPath,addExecPath:r=!0}={})=>{const o=u instanceof URL?zD(u):u,n=H.resolve(o),s=[];return e&&ho(s,n),r&&mo(s,t,n),[...s,D].join(H.delimiter)},ho=(u,D)=>{let e;for(;e!==D;)u.push(H.join(D,"node_modules/.bin")),e=D,D=H.resolve(D,"..")},mo=(u,D,e)=>{const t=D instanceof URL?zD(D):D;u.push(H.resolve(e,t,".."))},go=({env:u=y.env,...D}={})=>{u={...u};const e=Re({env:u});return D.path=u[e],u[e]=po(D),u},Bo=(u,D,e,t)=>{if(e==="length"||e==="prototype"||e==="arguments"||e==="caller")return;const r=Object.getOwnPropertyDescriptor(u,e),o=Object.getOwnPropertyDescriptor(D,e);!bo(r,o)&&t||Object.defineProperty(u,e,o)},bo=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)},yo=(u,D)=>{const e=Object.getPrototypeOf(D);e!==Object.getPrototypeOf(u)&&Object.setPrototypeOf(u,e)},Ao=(u,D)=>`/* Wrapped ${u}*/
|
|
24
|
+
${D}`,wo=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),$o=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),vo=(u,D,e)=>{const t=e===""?"":`with ${e.trim()}() `,r=Ao.bind(null,t,D.toString());Object.defineProperty(r,"name",$o),Object.defineProperty(u,"toString",{...wo,value:r})};function xo(u,D,{ignoreNonConfigurable:e=!1}={}){const{name:t}=u;for(const r of Reflect.ownKeys(D))Bo(u,D,r,e);return yo(u,D),vo(u,D,t),u}const gu=new WeakMap,Me=(u,D={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let e,t=0;const r=u.displayName||u.name||"<anonymous>",o=function(...n){if(gu.set(o,++t),t===1)e=u.apply(this,n),u=null;else if(D.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return e};return xo(o,u),gu.set(o,t),o};Me.callCount=u=>{if(!gu.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return gu.get(u)};const So=()=>{const u=Ne-je+1;return Array.from({length:u},Oo)},Oo=(u,D)=>({name:`SIGRT${D+1}`,number:je+D,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),je=34,Ne=64,To=[{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"}],Le=()=>{const u=So();return[...To,...u].map(Io)},Io=({name:u,number:D,description:e,action:t,forced:r=!1,standard:o})=>{const{signals:{[u]:n}}=KD,s=n!==void 0;return{name:u,number:s?n:D,description:e,supported:s,action:t,forced:r,standard:o}},Po=()=>{const u=Le();return Object.fromEntries(u.map(_o))},_o=({name:u,number:D,description:e,supported:t,action:r,forced:o,standard:n})=>[u,{name:u,number:D,description:e,supported:t,action:r,forced:o,standard:n}],ko=Po(),Ro=()=>{const u=Le(),D=Ne+1,e=Array.from({length:D},(t,r)=>Mo(r,u));return Object.assign({},...e)},Mo=(u,D)=>{const e=jo(u,D);if(e===void 0)return{};const{name:t,description:r,supported:o,action:n,forced:s,standard:i}=e;return{[u]:{name:t,number:u,description:r,supported:o,action:n,forced:s,standard:i}}},jo=(u,D)=>{const e=D.find(({name:t})=>KD.signals[t]===u);return e!==void 0?e:D.find(t=>t.number===u)};Ro();const No=({timedOut:u,timeout:D,errorCode:e,signal:t,signalDescription:r,exitCode:o,isCanceled:n})=>u?`timed out after ${D} milliseconds`:n?"was canceled":e!==void 0?`failed with ${e}`:t!==void 0?`was killed with ${t} (${r})`:o!==void 0?`failed with exit code ${o}`:"failed",Ge=({stdout:u,stderr:D,all:e,error:t,signal:r,exitCode:o,command:n,escapedCommand:s,timedOut:i,isCanceled:c,killed:F,parsed:{options:{timeout:a,cwd:l=y.cwd()}}})=>{o=o===null?void 0:o,r=r===null?void 0:r;const C=r===void 0?void 0:ko[r].description,f=t&&t.code,p=`Command ${No({timedOut:i,timeout:a,errorCode:f,signal:r,signalDescription:C,exitCode:o,isCanceled:c})}: ${n}`,h=Object.prototype.toString.call(t)==="[object Error]",w=h?`${p}
|
|
26
25
|
${t.message}`:p,P=[w,D,u].filter(Boolean).join(`
|
|
27
|
-
`);return h?(t.originalMessage=t.message,t.message=P):t=new Error(P),t.shortMessage=w,t.command=n,t.escapedCommand=s,t.exitCode=o,t.signal=r,t.signalDescription=C,t.stdout=u,t.stderr=D,t.cwd=
|
|
28
|
-
`)},ks=1e3*1e3*100,Ms=({env:u,extendEnv:D,preferLocal:e,localDir:t,execPath:r})=>{const o=D?{...y.env,...u}:u;return e?Bo({env:o,cwd:t,execPath:r}):o},js=(u,D,e={})=>{const t=Eo._parse(u,D,e);return u=t.command,D=t.args,e=t.options,e={maxBuffer:ks,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:Ps,...e},e.env=Ms(e),e.stdio=Uo(e),y.platform==="win32"&&H.basename(u,".exe")==="cmd"&&D.unshift("/q"),{file:u,args:D,options:e,parsed:t}},lD=(u,D,e)=>typeof D!="string"&&!Qt.isBuffer(D)?e===void 0?void 0:"":u.stripFinalNewline?po(D):D;function J(u,D,e){const t=js(u,D,e),r=Ts(u,D),o=Is(u,D);Rs(o,t.options),rs(t.options);let n;try{n=qD.spawn(t.file,t.args,t.options)}catch(C){const f=new qD.ChildProcess,d=Promise.reject(We({error:C,stdout:"",stderr:"",all:"",command:r,escapedCommand:o,parsed:t,timedOut:!1,isCanceled:!1,killed:!1}));return Ze(f,d),f}const s=vs(n),i=ns(n,t.options,s),l=os(n,t.options,i),F={isCanceled:!1};n.kill=Zo.bind(null,n.kill.bind(n)),n.cancel=es.bind(null,n,F);const c=Ne(async()=>{const[{error:C,exitCode:f,signal:d,timedOut:p},h,w,P]=await As(n,t.options,l),fu=lD(t.options,h),M=lD(t.options,w),ku=lD(t.options,P);if(C||f!==0||d!==null){const W=We({error:C,exitCode:f,signal:d,stdout:fu,stderr:M,all:ku,command:r,escapedCommand:o,parsed:t,timedOut:p,isCanceled:F.isCanceled||(t.options.signal?t.options.signal.aborted:!1),killed:n.killed});if(!t.options.reject)return W;throw W}return{command:r,escapedCommand:o,exitCode:0,stdout:fu,stderr:M,all:ku,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return bs(n,t.options),n.all=ys(n,t.options),is(n),Ze(n,c),n}let G=!0;const Z=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let ru=0;if(Z.process&&Z.process.env&&Z.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:D,NO_COLOR:e,TERM:t,COLORTERM:r}=Z.process.env;D||e||u==="0"?G=!1:u==="1"||u==="2"||u==="3"?G=!0:t==="dumb"?G=!1:"CI"in Z.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in Z.process.env)?G=!0:G=process.stdout.isTTY,G&&(process.platform==="win32"||r&&(r==="truecolor"||r==="24bit")?ru=3:t&&(t.endsWith("-256color")||t.endsWith("256"))?ru=2:ru=1)}let Qe={enabled:G,supportLevel:ru};function ou(u,D,e=1){const t=`\x1B[${u}m`,r=`\x1B[${D}m`,o=new RegExp(`\\x1b\\[${D}m`,"g");return n=>Qe.enabled&&Qe.supportLevel>=e?t+(""+n).replace(o,t)+r:""+n}const FD=ou(2,22),ut=ou(30,39),vu=ou(31,39),su=ou(32,39),Dt=ou(46,49),CD="\x1B",b=`${CD}[`,Ns="\x07",fD={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:(u=1)=>`${b}${u}A`,down:(u=1)=>`${b}${u}B`,forward:(u=1)=>`${b}${u}C`,backward:(u=1)=>`${b}${u}D`,nextLine:(u=1)=>`${b}E`.repeat(u),prevLine:(u=1)=>`${b}F`.repeat(u),left:`${b}G`,hide:`${b}?25l`,show:`${b}?25h`,save:`${CD}7`,restore:`${CD}8`},Ls={up:(u=1)=>`${b}S`.repeat(u),down:(u=1)=>`${b}T`.repeat(u)},Gs={screen:`${b}2J`,up:(u=1)=>`${b}1J`.repeat(u),down:(u=1)=>`${b}J`.repeat(u),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?fD.up():"");return u&&(D+=fD.left),D}};var v={cursor:fD,scroll:Ls,erase:Gs,beep:Ns},ED={exports:{}};let Us=Eu,Ws=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||Us.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),g=(u,D,e=u)=>t=>{let r=""+t,o=r.indexOf(D,u.length);return~o?u+et(r,D,e,o)+D:u+r+D},et=(u,D,e,t)=>{let r=u.substring(0,t)+e,o=u.substring(t+D.length),n=o.indexOf(D);return~n?r+et(o,D,e,n):r+o},tt=(u=Ws)=>({isColorSupported:u,reset:u?D=>`\x1B[0m${D}\x1B[0m`:String,bold:u?g("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:u?g("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:u?g("\x1B[3m","\x1B[23m"):String,underline:u?g("\x1B[4m","\x1B[24m"):String,inverse:u?g("\x1B[7m","\x1B[27m"):String,hidden:u?g("\x1B[8m","\x1B[28m"):String,strikethrough:u?g("\x1B[9m","\x1B[29m"):String,black:u?g("\x1B[30m","\x1B[39m"):String,red:u?g("\x1B[31m","\x1B[39m"):String,green:u?g("\x1B[32m","\x1B[39m"):String,yellow:u?g("\x1B[33m","\x1B[39m"):String,blue:u?g("\x1B[34m","\x1B[39m"):String,magenta:u?g("\x1B[35m","\x1B[39m"):String,cyan:u?g("\x1B[36m","\x1B[39m"):String,white:u?g("\x1B[37m","\x1B[39m"):String,gray:u?g("\x1B[90m","\x1B[39m"):String,bgBlack:u?g("\x1B[40m","\x1B[49m"):String,bgRed:u?g("\x1B[41m","\x1B[49m"):String,bgGreen:u?g("\x1B[42m","\x1B[49m"):String,bgYellow:u?g("\x1B[43m","\x1B[49m"):String,bgBlue:u?g("\x1B[44m","\x1B[49m"):String,bgMagenta:u?g("\x1B[45m","\x1B[49m"):String,bgCyan:u?g("\x1B[46m","\x1B[49m"):String,bgWhite:u?g("\x1B[47m","\x1B[49m"):String});ED.exports=tt(),ED.exports.createColors=tt;var Hs=ED.exports,E=N(Hs);function qs({onlyFirst:u=!1}={}){const D=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(D,u?void 0:"g")}function nt(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(qs(),"")}function rt(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var ot={exports:{}};(function(u){var D={};u.exports=D,D.eastAsianWidth=function(t){var r=t.charCodeAt(0),o=t.length==2?t.charCodeAt(1):0,n=r;return 55296<=r&&r<=56319&&56320<=o&&o<=57343&&(r&=1023,o&=1023,n=r<<10|o,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"},D.characterLength=function(t){var r=this.eastAsianWidth(t);return r=="F"||r=="W"||r=="A"?2:1};function e(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}D.length=function(t){for(var r=e(t),o=0,n=0;n<r.length;n++)o=o+this.characterLength(r[n]);return o},D.slice=function(t,r,o){textLen=D.length(t),r=r||0,o=o||1,r<0&&(r=textLen+r),o<0&&(o=textLen+o);for(var n="",s=0,i=e(t),l=0;l<i.length;l++){var F=i[l],a=D.length(F);if(s>=r-(a==2?1:0))if(s+a<=o)n+=F;else break;s+=a}return n}})(ot);var zs=ot.exports;const Ks=rt(zs);var Vs=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};const Ys=rt(Vs);function iu(u,D={}){if(typeof u!="string"||u.length===0||(D={ambiguousIsNarrow:!0,...D},u=nt(u),u.length===0))return 0;u=u.replace(Ys()," ");const e=D.ambiguousIsNarrow?1:2;let t=0;for(const r of u){const o=r.codePointAt(0);if(!(o<=31||o>=127&&o<=159||o>=768&&o<=879))switch(Ks.eastAsianWidth(r)){case"F":case"W":t+=2;break;case"A":t+=e;break;default:t+=1}}return t}const dD=10,st=(u=0)=>D=>`\x1B[${D+u}m`,it=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,at=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,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 Js=Object.keys(B.color),Zs=Object.keys(B.bgColor);[...Js,...Zs];function Xs(){const u=new Map;for(const[D,e]of Object.entries(B)){for(const[t,r]of Object.entries(e))B[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=B[t],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=st(),B.color.ansi256=it(),B.color.ansi16m=at(),B.bgColor.ansi=st(dD),B.bgColor.ansi256=it(dD),B.bgColor.ansi16m=at(dD),Object.defineProperties(B,{rgbToAnsi256:{value:(D,e,t)=>D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5),enumerable:!1},hexToRgb:{value:D=>{const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(o=>o+o).join(""));const r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>B.rgbToAnsi256(...B.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value:D=>{if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;const s=D%36;e=Math.floor(D/36)/5,t=Math.floor(s/6)/5,r=s%6/5}const o=Math.max(e,t,r)*2;if(o===0)return 30;let n=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return o===2&&(n+=60),n},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>B.ansi256ToAnsi(B.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>B.ansi256ToAnsi(B.hexToAnsi256(D)),enumerable:!1}}),B}const Qs=Xs(),xu=new Set(["\x1B","\x9B"]),ui=39,pD="\x07",ct="[",Di="]",lt="m",hD=`${Di}8;;`,Ft=u=>`${xu.values().next().value}${ct}${u}${lt}`,Ct=u=>`${xu.values().next().value}${hD}${u}${pD}`,ei=u=>u.split(" ").map(D=>iu(D)),mD=(u,D,e)=>{const t=[...D];let r=!1,o=!1,n=iu(nt(u[u.length-1]));for(const[s,i]of t.entries()){const l=iu(i);if(n+l<=e?u[u.length-1]+=i:(u.push(i),n=0),xu.has(i)&&(r=!0,o=t.slice(s+1).join("").startsWith(hD)),r){o?i===pD&&(r=!1,o=!1):i===lt&&(r=!1);continue}n+=l,n===e&&s<t.length-1&&(u.push(""),n=0)}!n&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},ti=u=>{const D=u.split(" ");let e=D.length;for(;e>0&&!(iu(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},ni=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,o;const n=ei(u);let s=[""];for(const[l,F]of u.split(" ").entries()){e.trim!==!1&&(s[s.length-1]=s[s.length-1].trimStart());let a=iu(s[s.length-1]);if(l!==0&&(a>=D&&(e.wordWrap===!1||e.trim===!1)&&(s.push(""),a=0),(a>0||e.trim===!1)&&(s[s.length-1]+=" ",a++)),e.hard&&n[l]>D){const c=D-a,C=1+Math.floor((n[l]-c-1)/D);Math.floor((n[l]-1)/D)<C&&s.push(""),mD(s,F,D);continue}if(a+n[l]>D&&a>0&&n[l]>0){if(e.wordWrap===!1&&a<D){mD(s,F,D);continue}s.push("")}if(a+n[l]>D&&e.wordWrap===!1){mD(s,F,D);continue}s[s.length-1]+=F}e.trim!==!1&&(s=s.map(l=>ti(l)));const i=[...s.join(`
|
|
29
|
-
`)];for(const[
|
|
30
|
-
`?(o&&(t+=
|
|
31
|
-
`&&(r&&a&&(t+=
|
|
26
|
+
`);return h?(t.originalMessage=t.message,t.message=P):t=new Error(P),t.shortMessage=w,t.command=n,t.escapedCommand=s,t.exitCode=o,t.signal=r,t.signalDescription=C,t.stdout=u,t.stderr=D,t.cwd=l,e!==void 0&&(t.all=e),"bufferedData"in t&&delete t.bufferedData,t.failed=!0,t.timedOut=!!i,t.isCanceled=c,t.killed=F&&!i,t},Bu=["stdin","stdout","stderr"],Lo=u=>Bu.some(D=>u[D]!==void 0),Go=u=>{if(!u)return;const{stdio:D}=u;if(D===void 0)return Bu.map(t=>u[t]);if(Lo(u))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Bu.map(t=>`\`${t}\``).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},(t,r)=>D[r])};var Y={exports:{}},eD={exports:{}},Ue;function Uo(){return Ue||(Ue=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")}(eD)),eD.exports}var m=A.process;const L=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"};if(!L(m))Y.exports=function(){return function(){}};else{var Wo=VD,eu=Uo(),Ho=/^win/i.test(m.platform),bu=YD;typeof bu!="function"&&(bu=bu.EventEmitter);var $;m.__signal_exit_emitter__?$=m.__signal_exit_emitter__:($=m.__signal_exit_emitter__=new bu,$.count=0,$.emitted={}),$.infinite||($.setMaxListeners(1/0),$.infinite=!0),Y.exports=function(u,D){if(!L(A.process))return function(){};Wo.equal(typeof u,"function","a callback must be provided for exit handler"),tu===!1&&We();var e="exit";D&&D.alwaysLast&&(e="afterexit");var t=function(){$.removeListener(e,u),$.listeners("exit").length===0&&$.listeners("afterexit").length===0&&tD()};return $.on(e,u),t};var tD=function(){!tu||!L(A.process)||(tu=!1,eu.forEach(function(D){try{m.removeListener(D,nD[D])}catch{}}),m.emit=rD,m.reallyExit=He,$.count-=1)};Y.exports.unload=tD;var J=function(D,e,t){$.emitted[D]||($.emitted[D]=!0,$.emit(D,e,t))},nD={};eu.forEach(function(u){nD[u]=function(){if(L(A.process)){var e=m.listeners(u);e.length===$.count&&(tD(),J("exit",null,u),J("afterexit",null,u),Ho&&u==="SIGHUP"&&(u="SIGINT"),m.kill(m.pid,u))}}}),Y.exports.signals=function(){return eu};var tu=!1,We=function(){tu||!L(A.process)||(tu=!0,$.count+=1,eu=eu.filter(function(D){try{return m.on(D,nD[D]),!0}catch{return!1}}),m.emit=zo,m.reallyExit=qo)};Y.exports.load=We;var He=m.reallyExit,qo=function(D){L(A.process)&&(m.exitCode=D||0,J("exit",m.exitCode,null),J("afterexit",m.exitCode,null),He.call(m,m.exitCode))},rD=m.emit,zo=function(D,e){if(D==="exit"&&L(A.process)){e!==void 0&&(m.exitCode=e);var t=rD.apply(this,arguments);return J("exit",m.exitCode,null),J("afterexit",m.exitCode,null),t}else return rD.apply(this,arguments)}}var Ko=Y.exports,Vo=z(Ko);const Yo=1e3*5,Jo=(u,D="SIGTERM",e={})=>{const t=u(D);return Zo(u,D,e,t),t},Zo=(u,D,e,t)=>{if(!Xo(D,e,t))return;const r=us(e),o=setTimeout(()=>{u("SIGKILL")},r);o.unref&&o.unref()},Xo=(u,{forceKillAfterTimeout:D},e)=>Qo(u)&&D!==!1&&e,Qo=u=>u===Dn.constants.signals.SIGTERM||typeof u=="string"&&u.toUpperCase()==="SIGTERM",us=({forceKillAfterTimeout:u=!0})=>{if(u===!0)return Yo;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},Ds=(u,D)=>{u.kill()&&(D.isCanceled=!0)},es=(u,D,e)=>{u.kill(D),e(Object.assign(new Error("Timed out"),{timedOut:!0,signal:D}))},ts=(u,{timeout:D,killSignal:e="SIGTERM"},t)=>{if(D===0||D===void 0)return t;let r;const o=new Promise((s,i)=>{r=setTimeout(()=>{es(u,e,i)},D)}),n=t.finally(()=>{clearTimeout(r)});return Promise.race([o,n])},ns=({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})`)},rs=async(u,{cleanup:D,detached:e},t)=>{if(!D||e)return t;const r=Vo(()=>{u.kill()});return t.finally(()=>{r()})};function qe(u){return u!==null&&typeof u=="object"&&typeof u.pipe=="function"}function ze(u){return qe(u)&&u.writable!==!1&&typeof u._write=="function"&&typeof u._writableState=="object"}const os=u=>u instanceof Qt&&typeof u.then=="function",oD=(u,D,e)=>{if(typeof e=="string")return u[D].pipe(en(e)),u;if(ze(e))return u[D].pipe(e),u;if(!os(e))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!ze(e.stdin))throw new TypeError("The target child process's stdin must be available.");return u[D].pipe(e.stdin),e},ss=u=>{u.stdout!==null&&(u.pipeStdout=oD.bind(void 0,u,"stdout")),u.stderr!==null&&(u.pipeStderr=oD.bind(void 0,u,"stderr")),u.all!==void 0&&(u.pipeAll=oD.bind(void 0,u,"all"))};var nu={exports:{}};const{PassThrough:is}=Ru;var as=u=>{u={...u};const{array:D}=u;let{encoding:e}=u;const t=e==="buffer";let r=!1;D?r=!(e||t):e=e||"utf8",t&&(e=null);const o=new is({objectMode:r});e&&o.setEncoding(e);let n=0;const s=[];return o.on("data",i=>{s.push(i),r?n=s.length:n+=i.length}),o.getBufferedValue=()=>D?s:t?Buffer.concat(s,n):s.join(""),o.getBufferedLength=()=>n,o};const{constants:cs}=nn,ls=Ru,{promisify:Fs}=JD,Cs=as,fs=Fs(ls.pipeline);class Ke extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function sD(u,D){if(!u)throw new Error("Expected a stream");D={maxBuffer:1/0,...D};const{maxBuffer:e}=D,t=Cs(D);return await new Promise((r,o)=>{const n=s=>{s&&t.getBufferedLength()<=cs.MAX_LENGTH&&(s.bufferedData=t.getBufferedValue()),o(s)};(async()=>{try{await fs(u,t),r()}catch(s){n(s)}})(),t.on("data",()=>{t.getBufferedLength()>e&&n(new Ke)})}),t.getBufferedValue()}nu.exports=sD,nu.exports.buffer=(u,D)=>sD(u,{...D,encoding:"buffer"}),nu.exports.array=(u,D)=>sD(u,{...D,array:!0}),nu.exports.MaxBufferError=Ke;var ds=nu.exports,Ve=z(ds);const{PassThrough:Es}=Ru;var ps=function(){var u=[],D=new Es({objectMode:!0});return D.setMaxListeners(0),D.add=e,D.isEmpty=t,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)}function t(){return u.length==0}function r(o){u=u.filter(function(n){return n!==o}),!u.length&&D.readable&&D.end()}},hs=z(ps);const ms=u=>{if(u!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},gs=({input:u,inputFile:D})=>typeof D!="string"?u:(ms(u),tn(D)),Bs=(u,D)=>{const e=gs(D);e!==void 0&&(qe(e)?e.pipe(u.stdin):u.stdin.end(e))},bs=(u,{all:D})=>{if(!D||!u.stdout&&!u.stderr)return;const e=hs();return u.stdout&&e.add(u.stdout),u.stderr&&e.add(u.stderr),e},iD=async(u,D)=>{if(!(!u||D===void 0)){u.destroy();try{return await D}catch(e){return e.bufferedData}}},aD=(u,{encoding:D,buffer:e,maxBuffer:t})=>{if(!(!u||!e))return D?Ve(u,{encoding:D,maxBuffer:t}):Ve.buffer(u,{maxBuffer:t})},ys=async({stdout:u,stderr:D,all:e},{encoding:t,buffer:r,maxBuffer:o},n)=>{const s=aD(u,{encoding:t,buffer:r,maxBuffer:o}),i=aD(D,{encoding:t,buffer:r,maxBuffer:o}),c=aD(e,{encoding:t,buffer:r,maxBuffer:o*2});try{return await Promise.all([n,s,i,c])}catch(F){return Promise.all([{error:F,signal:F.signal,timedOut:F.timedOut},iD(u,s),iD(D,i),iD(e,c)])}},As=(async()=>{})().constructor.prototype,ws=["then","catch","finally"].map(u=>[u,Reflect.getOwnPropertyDescriptor(As,u)]),Ye=(u,D)=>{for(const[e,t]of ws){const r=typeof D=="function"?(...o)=>Reflect.apply(t.value,D(),o):t.value.bind(D);Reflect.defineProperty(u,e,{...t,value:r})}},$s=u=>new Promise((D,e)=>{u.on("exit",(t,r)=>{D({exitCode:t,signal:r})}),u.on("error",t=>{e(t)}),u.stdin&&u.stdin.on("error",t=>{e(t)})}),Je=(u,D=[])=>Array.isArray(D)?[u,...D]:[u],vs=/^[\w.-]+$/,xs=/"/g,Ss=u=>typeof u!="string"||vs.test(u)?u:`"${u.replace(xs,'\\"')}"`,Os=(u,D)=>Je(u,D).join(" "),Ts=(u,D)=>Je(u,D).map(e=>Ss(e)).join(" "),Is=rn("execa").enabled,yu=(u,D)=>String(u).padStart(D,"0"),Ps=()=>{const u=new Date;return`${yu(u.getHours(),2)}:${yu(u.getMinutes(),2)}:${yu(u.getSeconds(),2)}.${yu(u.getMilliseconds(),3)}`},_s=(u,{verbose:D})=>{D&&y.stderr.write(`[${Ps()}] ${u}
|
|
27
|
+
`)},ks=1e3*1e3*100,Rs=({env:u,extendEnv:D,preferLocal:e,localDir:t,execPath:r})=>{const o=D?{...y.env,...u}:u;return e?go({env:o,cwd:t,execPath:r}):o},Ms=(u,D,e={})=>{const t=fo._parse(u,D,e);return u=t.command,D=t.args,e=t.options,e={maxBuffer:ks,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:Is,...e},e.env=Rs(e),e.stdio=Go(e),y.platform==="win32"&&H.basename(u,".exe")==="cmd"&&D.unshift("/q"),{file:u,args:D,options:e,parsed:t}},cD=(u,D,e)=>typeof D!="string"&&!Xt.isBuffer(D)?e===void 0?void 0:"":u.stripFinalNewline?Eo(D):D;function Z(u,D,e){const t=Ms(u,D,e),r=Os(u,D),o=Ts(u,D);_s(o,t.options),ns(t.options);let n;try{n=WD.spawn(t.file,t.args,t.options)}catch(C){const f=new WD.ChildProcess,d=Promise.reject(Ge({error:C,stdout:"",stderr:"",all:"",command:r,escapedCommand:o,parsed:t,timedOut:!1,isCanceled:!1,killed:!1}));return Ye(f,d),f}const s=$s(n),i=ts(n,t.options,s),c=rs(n,t.options,i),F={isCanceled:!1};n.kill=Jo.bind(null,n.kill.bind(n)),n.cancel=Ds.bind(null,n,F);const l=Me(async()=>{const[{error:C,exitCode:f,signal:d,timedOut:p},h,w,P]=await ys(n,t.options,c),Fu=cD(t.options,h),j=cD(t.options,w),_u=cD(t.options,P);if(C||f!==0||d!==null){const W=Ge({error:C,exitCode:f,signal:d,stdout:Fu,stderr:j,all:_u,command:r,escapedCommand:o,parsed:t,timedOut:p,isCanceled:t.options.signal?t.options.signal.aborted:!1,killed:n.killed});if(!t.options.reject)return W;throw W}return{command:r,escapedCommand:o,exitCode:0,stdout:Fu,stderr:j,all:_u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Bs(n,t.options),n.all=bs(n,t.options),ss(n),Ye(n,l),n}let G=!0;const X=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let ru=0;if(X.process&&X.process.env&&X.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:D,NO_COLOR:e,TERM:t,COLORTERM:r}=X.process.env;D||e||u==="0"?G=!1:u==="1"||u==="2"||u==="3"?G=!0:t==="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")?ru=3:t&&(t.endsWith("-256color")||t.endsWith("256"))?ru=2:ru=1)}let Ze={enabled:G,supportLevel:ru};function ou(u,D,e=1){const t=`\x1B[${u}m`,r=`\x1B[${D}m`,o=new RegExp(`\\x1b\\[${D}m`,"g");return n=>Ze.enabled&&Ze.supportLevel>=e?t+(""+n).replace(o,t)+r:""+n}const lD=ou(2,22),Xe=ou(30,39),Au=ou(31,39),su=ou(32,39),Qe=ou(46,49),FD="\x1B",b=`${FD}[`,js="\x07",CD={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:(u=1)=>`${b}${u}A`,down:(u=1)=>`${b}${u}B`,forward:(u=1)=>`${b}${u}C`,backward:(u=1)=>`${b}${u}D`,nextLine:(u=1)=>`${b}E`.repeat(u),prevLine:(u=1)=>`${b}F`.repeat(u),left:`${b}G`,hide:`${b}?25l`,show:`${b}?25h`,save:`${FD}7`,restore:`${FD}8`},Ns={up:(u=1)=>`${b}S`.repeat(u),down:(u=1)=>`${b}T`.repeat(u)},Ls={screen:`${b}2J`,up:(u=1)=>`${b}1J`.repeat(u),down:(u=1)=>`${b}J`.repeat(u),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?CD.up():"");return u&&(D+=CD.left),D}};var v={cursor:CD,scroll:Ns,erase:Ls,beep:js},fD={exports:{}};let Gs=Cu,Us=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||Gs.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),g=(u,D,e=u)=>t=>{let r=""+t,o=r.indexOf(D,u.length);return~o?u+ut(r,D,e,o)+D:u+r+D},ut=(u,D,e,t)=>{let r=u.substring(0,t)+e,o=u.substring(t+D.length),n=o.indexOf(D);return~n?r+ut(o,D,e,n):r+o},Dt=(u=Us)=>({isColorSupported:u,reset:u?D=>`\x1B[0m${D}\x1B[0m`:String,bold:u?g("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:u?g("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:u?g("\x1B[3m","\x1B[23m"):String,underline:u?g("\x1B[4m","\x1B[24m"):String,inverse:u?g("\x1B[7m","\x1B[27m"):String,hidden:u?g("\x1B[8m","\x1B[28m"):String,strikethrough:u?g("\x1B[9m","\x1B[29m"):String,black:u?g("\x1B[30m","\x1B[39m"):String,red:u?g("\x1B[31m","\x1B[39m"):String,green:u?g("\x1B[32m","\x1B[39m"):String,yellow:u?g("\x1B[33m","\x1B[39m"):String,blue:u?g("\x1B[34m","\x1B[39m"):String,magenta:u?g("\x1B[35m","\x1B[39m"):String,cyan:u?g("\x1B[36m","\x1B[39m"):String,white:u?g("\x1B[37m","\x1B[39m"):String,gray:u?g("\x1B[90m","\x1B[39m"):String,bgBlack:u?g("\x1B[40m","\x1B[49m"):String,bgRed:u?g("\x1B[41m","\x1B[49m"):String,bgGreen:u?g("\x1B[42m","\x1B[49m"):String,bgYellow:u?g("\x1B[43m","\x1B[49m"):String,bgBlue:u?g("\x1B[44m","\x1B[49m"):String,bgMagenta:u?g("\x1B[45m","\x1B[49m"):String,bgCyan:u?g("\x1B[46m","\x1B[49m"):String,bgWhite:u?g("\x1B[47m","\x1B[49m"):String});fD.exports=Dt(),fD.exports.createColors=Dt;var Ws=fD.exports,E=z(Ws);function Hs({onlyFirst:u=!1}={}){const D=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(D,u?void 0:"g")}function et(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Hs(),"")}function tt(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var nt={exports:{}};(function(u){var D={};u.exports=D,D.eastAsianWidth=function(t){var r=t.charCodeAt(0),o=t.length==2?t.charCodeAt(1):0,n=r;return 55296<=r&&r<=56319&&56320<=o&&o<=57343&&(r&=1023,o&=1023,n=r<<10|o,n+=65536),n==12288||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":n==8361||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||n==172||n==175||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":n==161||n==164||167<=n&&n<=168||n==170||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||n==198||n==208||215<=n&&n<=216||222<=n&&n<=225||n==230||232<=n&&n<=234||236<=n&&n<=237||n==240||242<=n&&n<=243||247<=n&&n<=250||n==252||n==254||n==257||n==273||n==275||n==283||294<=n&&n<=295||n==299||305<=n&&n<=307||n==312||319<=n&&n<=322||n==324||328<=n&&n<=331||n==333||338<=n&&n<=339||358<=n&&n<=359||n==363||n==462||n==464||n==466||n==468||n==470||n==472||n==474||n==476||n==593||n==609||n==708||n==711||713<=n&&n<=715||n==717||n==720||728<=n&&n<=731||n==733||n==735||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||n==1025||1040<=n&&n<=1103||n==1105||n==8208||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||n==8240||8242<=n&&n<=8243||n==8245||n==8251||n==8254||n==8308||n==8319||8321<=n&&n<=8324||n==8364||n==8451||n==8453||n==8457||n==8467||n==8470||8481<=n&&n<=8482||n==8486||n==8491||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||n==8585||8592<=n&&n<=8601||8632<=n&&n<=8633||n==8658||n==8660||n==8679||n==8704||8706<=n&&n<=8707||8711<=n&&n<=8712||n==8715||n==8719||n==8721||n==8725||n==8730||8733<=n&&n<=8736||n==8739||n==8741||8743<=n&&n<=8748||n==8750||8756<=n&&n<=8759||8764<=n&&n<=8765||n==8776||n==8780||n==8786||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||n==8853||n==8857||n==8869||n==8895||n==8978||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||n==9675||9678<=n&&n<=9681||9698<=n&&n<=9701||n==9711||9733<=n&&n<=9734||n==9737||9742<=n&&n<=9743||9748<=n&&n<=9749||n==9756||n==9758||n==9792||n==9794||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||n==9839||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||n==9955||9960<=n&&n<=9983||n==10045||n==10071||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||n==65533||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"},D.characterLength=function(t){var r=this.eastAsianWidth(t);return r=="F"||r=="W"||r=="A"?2:1};function e(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}D.length=function(t){for(var r=e(t),o=0,n=0;n<r.length;n++)o=o+this.characterLength(r[n]);return o},D.slice=function(t,r,o){textLen=D.length(t),r=r||0,o=o||1,r<0&&(r=textLen+r),o<0&&(o=textLen+o);for(var n="",s=0,i=e(t),c=0;c<i.length;c++){var F=i[c],a=D.length(F);if(s>=r-(a==2?1:0))if(s+a<=o)n+=F;else break;s+=a}return n}})(nt);var qs=nt.exports;const zs=tt(qs);var Ks=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};const Vs=tt(Ks);function iu(u,D={}){if(typeof u!="string"||u.length===0||(D={ambiguousIsNarrow:!0,...D},u=et(u),u.length===0))return 0;u=u.replace(Vs()," ");const e=D.ambiguousIsNarrow?1:2;let t=0;for(const r of u){const o=r.codePointAt(0);if(!(o<=31||o>=127&&o<=159||o>=768&&o<=879))switch(zs.eastAsianWidth(r)){case"F":case"W":t+=2;break;case"A":t+=e;break;default:t+=1}}return t}const dD=10,rt=(u=0)=>D=>`\x1B[${D+u}m`,ot=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,st=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,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 Ys=Object.keys(B.color),Js=Object.keys(B.bgColor);[...Ys,...Js];function Zs(){const u=new Map;for(const[D,e]of Object.entries(B)){for(const[t,r]of Object.entries(e))B[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=B[t],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=rt(),B.color.ansi256=ot(),B.color.ansi16m=st(),B.bgColor.ansi=rt(dD),B.bgColor.ansi256=ot(dD),B.bgColor.ansi16m=st(dD),Object.defineProperties(B,{rgbToAnsi256:{value:(D,e,t)=>D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5),enumerable:!1},hexToRgb:{value:D=>{const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(o=>o+o).join(""));const r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>B.rgbToAnsi256(...B.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value:D=>{if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;const s=D%36;e=Math.floor(D/36)/5,t=Math.floor(s/6)/5,r=s%6/5}const o=Math.max(e,t,r)*2;if(o===0)return 30;let n=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return o===2&&(n+=60),n},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>B.ansi256ToAnsi(B.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>B.ansi256ToAnsi(B.hexToAnsi256(D)),enumerable:!1}}),B}const Xs=Zs(),wu=new Set(["\x1B","\x9B"]),Qs=39,ED="\x07",it="[",ui="]",at="m",pD=`${ui}8;;`,ct=u=>`${wu.values().next().value}${it}${u}${at}`,lt=u=>`${wu.values().next().value}${pD}${u}${ED}`,Di=u=>u.split(" ").map(D=>iu(D)),hD=(u,D,e)=>{const t=[...D];let r=!1,o=!1,n=iu(et(u[u.length-1]));for(const[s,i]of t.entries()){const c=iu(i);if(n+c<=e?u[u.length-1]+=i:(u.push(i),n=0),wu.has(i)&&(r=!0,o=t.slice(s+1).join("").startsWith(pD)),r){o?i===ED&&(r=!1,o=!1):i===at&&(r=!1);continue}n+=c,n===e&&s<t.length-1&&(u.push(""),n=0)}!n&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())},ei=u=>{const D=u.split(" ");let e=D.length;for(;e>0&&!(iu(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},ti=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,o;const n=Di(u);let s=[""];for(const[c,F]of u.split(" ").entries()){e.trim!==!1&&(s[s.length-1]=s[s.length-1].trimStart());let a=iu(s[s.length-1]);if(c!==0&&(a>=D&&(e.wordWrap===!1||e.trim===!1)&&(s.push(""),a=0),(a>0||e.trim===!1)&&(s[s.length-1]+=" ",a++)),e.hard&&n[c]>D){const l=D-a,C=1+Math.floor((n[c]-l-1)/D);Math.floor((n[c]-1)/D)<C&&s.push(""),hD(s,F,D);continue}if(a+n[c]>D&&a>0&&n[c]>0){if(e.wordWrap===!1&&a<D){hD(s,F,D);continue}s.push("")}if(a+n[c]>D&&e.wordWrap===!1){hD(s,F,D);continue}s[s.length-1]+=F}e.trim!==!1&&(s=s.map(c=>ei(c)));const i=[...s.join(`
|
|
28
|
+
`)];for(const[c,F]of i.entries()){if(t+=F,wu.has(F)){const{groups:l}=new RegExp(`(?:\\${it}(?<code>\\d+)m|\\${pD}(?<uri>.*)${ED})`).exec(i.slice(c).join(""))||{groups:{}};if(l.code!==void 0){const C=Number.parseFloat(l.code);r=C===Qs?void 0:C}else l.uri!==void 0&&(o=l.uri.length===0?void 0:l.uri)}const a=Xs.codes.get(Number(r));i[c+1]===`
|
|
29
|
+
`?(o&&(t+=lt("")),r&&a&&(t+=ct(a))):F===`
|
|
30
|
+
`&&(r&&a&&(t+=ct(r)),o&&(t+=lt(o)))}return t};function Ft(u,D,e){return String(u).normalize().replace(/\r\n/g,`
|
|
32
31
|
`).split(`
|
|
33
|
-
`).map(t=>
|
|
34
|
-
`)}var
|
|
32
|
+
`).map(t=>ti(t,D,e)).join(`
|
|
33
|
+
`)}var ni=Object.defineProperty,ri=(u,D,e)=>D in u?ni(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,_=(u,D,e)=>(ri(u,typeof D!="symbol"?D+"":D,e),e);function oi(u,D){if(u===D)return;const e=u.split(`
|
|
35
34
|
`),t=D.split(`
|
|
36
|
-
`),r=[];for(let o=0;o<Math.max(e.length,t.length);o++)e[o]!==t[o]&&r.push(o);return r}const
|
|
37
|
-
`)
|
|
38
|
-
`).length-1;this.output.write(v.cursor.move(-999,D*-1))}render(){const D=
|
|
35
|
+
`),r=[];for(let o=0;o<Math.max(e.length,t.length);o++)e[o]!==t[o]&&r.push(o);return r}const Ct=Symbol("clack:cancel");function ft(u){return u===Ct}function $u(u,D){u.isTTY&&u.setRawMode(D)}const dt=new Map([["k","up"],["j","down"],["h","left"],["l","right"]]),si=new Set(["up","down","left","right","space","enter"]);let Et=class{constructor({render:D,input:e=HD,output:t=qD,...r},o=!0){_(this,"input"),_(this,"output"),_(this,"rl"),_(this,"opts"),_(this,"_track",!1),_(this,"_render"),_(this,"_cursor",0),_(this,"state","initial"),_(this,"value"),_(this,"error",""),_(this,"subscribers",new Map),_(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=t}prompt(){const D=new on(0);return D._write=(e,t,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=ZD.createInterface({input:this.input,output:D,tabSize:2,prompt:"",escapeCodeTimeout:50}),ZD.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),$u(this.input,!0),this.output.on("resize",this.render),this.render(),new Promise((e,t)=>{this.once("submit",()=>{this.output.write(v.cursor.show),this.output.off("resize",this.render),$u(this.input,!1),e(this.value)}),this.once("cancel",()=>{this.output.write(v.cursor.show),this.output.off("resize",this.render),$u(this.input,!1),e(Ct)})})}on(D,e){const t=this.subscribers.get(D)??[];t.push({cb:e}),this.subscribers.set(D,t)}once(D,e){const t=this.subscribers.get(D)??[];t.push({cb:e,once:!0}),this.subscribers.set(D,t)}emit(D,...e){const t=this.subscribers.get(D)??[],r=[];for(const o of t)o.cb(...e),o.once&&r.push(()=>t.splice(t.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&&dt.has(e.name)&&this.emit("cursor",dt.get(e.name)),e?.name&&si.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 t=this.opts.validate(this.value);t&&(this.error=t,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
|
+
`),$u(this.input,!1),this.rl.close(),this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const D=Ft(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
|
|
37
|
+
`).length-1;this.output.write(v.cursor.move(-999,D*-1))}render(){const D=Ft(this._render(this)??"",process.stdout.columns,{hard:!0});if(D!==this._prevFrame){if(this.state==="initial")this.output.write(v.cursor.hide);else{const e=oi(this._prevFrame,D);if(this.restoreCursor(),e&&e?.length===1){const t=e[0];this.output.write(v.cursor.move(0,t)),this.output.write(v.erase.lines(1));const r=D.split(`
|
|
39
38
|
`);this.output.write(r[t]),this._prevFrame=D,this.output.write(v.cursor.move(0,r.length-t-1));return}else if(e&&e?.length>1){const t=e[0];this.output.write(v.cursor.move(0,t)),this.output.write(v.erase.down());const r=D.split(`
|
|
40
39
|
`).slice(t);this.output.write(r.join(`
|
|
41
|
-
`)),this._prevFrame=D;return}this.output.write(v.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}}class
|
|
42
|
-
${
|
|
40
|
+
`)),this._prevFrame=D;return}this.output.write(v.erase.down())}this.output.write(D),this.state==="initial"&&(this.state="active"),this._prevFrame=D}}};class ii extends Et{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(v.cursor.move(0,-1)),this.value=e,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}var ai=Object.defineProperty,ci=(u,D,e)=>D in u?ai(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,pt=(u,D,e)=>(ci(u,typeof D!="symbol"?D+"":D,e),e);let li=class extends Et{constructor(u){super(u,!1),pt(this,"options"),pt(this,"cursor",0),this.options=u.options,this.cursor=this.options.findIndex(({value:D})=>D===u.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",D=>{switch(D){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}};const Fi=globalThis.process.platform.startsWith("win");function Ci({input:u=HD,output:D=qD,overwrite:e=!0,hideCursor:t=!0}={}){const r=fu.createInterface({input:u,output:D,prompt:"",tabSize:1});fu.emitKeypressEvents(u,r),u.isTTY&&u.setRawMode(!0);const o=(n,{name:s})=>{if(String(n)===""&&process.exit(0),!e)return;let i=s==="return"?0:-1,c=s==="return"?-1:0;fu.moveCursor(D,i,c,()=>{fu.clearLine(D,1,()=>{u.once("keypress",o)})})};return t&&process.stdout.write(v.cursor.hide),u.once("keypress",o),()=>{u.off("keypress",o),t&&process.stdout.write(v.cursor.show),u.isTTY&&!Fi&&u.setRawMode(!1),r.terminal=!1,r.close()}}function fi(){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"}const mD=fi(),R=(u,D)=>mD?u:D,di=R("\u25C6","*"),ht=R("\u25A0","x"),mt=R("\u25B2","x"),gt=R("\u25C7","o"),Ei=R("\u250C","T"),I=R("\u2502","|"),gD=R("\u2514","\u2014"),BD=R("\u25CF",">"),bD=R("\u25CB"," "),Bt=u=>{switch(u){case"initial":case"active":return E.cyan(di);case"cancel":return E.red(ht);case"error":return E.yellow(mt);case"submit":return E.green(gt)}},pi=u=>{const D=u.active??"Yes",e=u.inactive??"No";return new ii({active:D,inactive:e,initialValue:u.initialValue??!0,render(){const t=`${E.gray(I)}
|
|
41
|
+
${Bt(this.state)} ${u.message}
|
|
43
42
|
`,r=this.value?D:e;switch(this.state){case"submit":return`${t}${E.gray(I)} ${E.dim(r)}`;case"cancel":return`${t}${E.gray(I)} ${E.strikethrough(E.dim(r))}
|
|
44
|
-
${E.gray(I)}`;default:return`${t}${E.cyan(I)} ${this.value?`${E.green(
|
|
45
|
-
${E.cyan(
|
|
46
|
-
`}}}).prompt()},
|
|
47
|
-
${
|
|
43
|
+
${E.gray(I)}`;default:return`${t}${E.cyan(I)} ${this.value?`${E.green(BD)} ${D}`:`${E.dim(bD)} ${E.dim(D)}`} ${E.dim("/")} ${this.value?`${E.dim(bD)} ${E.dim(e)}`:`${E.green(BD)} ${e}`}
|
|
44
|
+
${E.cyan(gD)}
|
|
45
|
+
`}}}).prompt()},hi=u=>{const D=(t,r)=>{const o=t.label??String(t.value);return r==="active"?`${E.green(BD)} ${o} ${t.hint?E.dim(`(${t.hint})`):""}`:r==="selected"?`${E.dim(o)}`:r==="cancelled"?`${E.strikethrough(E.dim(o))}`:`${E.dim(bD)} ${E.dim(o)}`};let e=0;return new li({options:u.options,initialValue:u.initialValue,render(){const t=`${E.gray(I)}
|
|
46
|
+
${Bt(this.state)} ${u.message}
|
|
48
47
|
`;switch(this.state){case"submit":return`${t}${E.gray(I)} ${D(this.options[this.cursor],"selected")}`;case"cancel":return`${t}${E.gray(I)} ${D(this.options[this.cursor],"cancelled")}
|
|
49
|
-
${E.gray(I)}`;default:{const r=u.maxItems===void 0?1/0:Math.max(u.maxItems,5);this.cursor>=e+r-3?e=Math.max(Math.min(this.cursor-r+3,this.options.length-r),0):this.cursor<e+2&&(e=Math.max(this.cursor-2,0));const o=r<this.options.length&&e>0,n=r<this.options.length&&e+r<this.options.length;return`${t}${E.cyan(I)} ${this.options.slice(e,e+r).map((s,i,
|
|
48
|
+
${E.gray(I)}`;default:{const r=u.maxItems===void 0?1/0:Math.max(u.maxItems,5);this.cursor>=e+r-3?e=Math.max(Math.min(this.cursor-r+3,this.options.length-r),0):this.cursor<e+2&&(e=Math.max(this.cursor-2,0));const o=r<this.options.length&&e>0,n=r<this.options.length&&e+r<this.options.length;return`${t}${E.cyan(I)} ${this.options.slice(e,e+r).map((s,i,c)=>i===0&&o||i===c.length-1&&n?E.dim("..."):D(s,i+e===this.cursor?"active":"inactive")).join(`
|
|
50
49
|
${E.cyan(I)} `)}
|
|
51
|
-
${E.cyan(
|
|
52
|
-
`}}}}).prompt()},
|
|
50
|
+
${E.cyan(gD)}
|
|
51
|
+
`}}}}).prompt()},bt=(u="")=>{process.stdout.write(`${E.gray(Ei)} ${u}
|
|
53
52
|
`)},U=(u="")=>{process.stdout.write(`${E.gray(I)}
|
|
54
|
-
${E.gray(
|
|
53
|
+
${E.gray(gD)} ${u}
|
|
55
54
|
|
|
56
|
-
`)},
|
|
57
|
-
`);let a=0,
|
|
58
|
-
`),e()},i=(F="")=>{o=F??o},
|
|
55
|
+
`)},yD=()=>{const u=mD?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],D=mD?80:120;let e,t,r=!1,o="";const n=(F="")=>{r=!0,e=Ci(),o=F.replace(/\.+$/,""),process.stdout.write(`${E.gray(I)}
|
|
56
|
+
`);let a=0,l=0;t=setInterval(()=>{const C=E.magenta(u[a]),f=".".repeat(Math.floor(l)).slice(0,3);process.stdout.write(v.cursor.move(-999,0)),process.stdout.write(v.erase.down(1)),process.stdout.write(`${C} ${o}${f}`),a=a+1<u.length?a+1:0,l=l<u.length?l+.125:0},D)},s=(F="",a=0)=>{o=F??o,r=!1,clearInterval(t);const l=a===0?E.green(gt):a===1?E.red(ht):E.red(mt);process.stdout.write(v.cursor.move(-999,0)),process.stdout.write(v.erase.down(1)),process.stdout.write(`${l} ${o}
|
|
57
|
+
`),e()},i=(F="")=>{o=F??o},c=F=>{const a=F>1?"Something went wrong":"Canceled";r&&s(a,F)};return process.on("uncaughtExceptionMonitor",()=>c(2)),process.on("unhandledRejection",()=>c(2)),process.on("SIGINT",()=>c(1)),process.on("SIGTERM",()=>c(1)),process.on("exit",c),{start:n,stop:s,message:i}};class O extends Error{}const AD=" ",vu=u=>{u instanceof Error&&!(u instanceof O)&&(u.stack&&console.error(lD(u.stack.split(`
|
|
59
58
|
`).slice(1).join(`
|
|
60
59
|
`))),console.error(`
|
|
61
|
-
${
|
|
62
|
-
${
|
|
63
|
-
`),diff:t}},
|
|
60
|
+
${AD}${lD(`aicommit v${ge}`)}`),console.error(`
|
|
61
|
+
${AD}Please open a Bug report with the information above:`),console.error(`${AD}https://github.com/NegoZiatoR/ai-commit/issues/new/choose`))},yt=async()=>{const{stdout:u,failed:D}=await Z("git",["rev-parse","--show-toplevel"],{reject:!1});if(D)throw new O("The current directory must be a Git repository!");return u},wD=u=>`:(exclude)${u}`,At=["package-lock.json","*.lock"].map(wD),wt=async u=>{const D=["diff","--cached","--diff-algorithm=minimal"],{stdout:e}=await Z("git",[...D,"--name-only",...At,...u?u.map(wD):[]]);if(!e)return;const{stdout:t}=await Z("git",[...D,...At,...u?u.map(wD):[]]);return{files:e.split(`
|
|
62
|
+
`),diff:t}},mi=u=>`Detected ${u.length.toLocaleString()} staged file${u.length>1?"s":""}`,{hasOwnProperty:$D}=Object.prototype,vD=(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
|
|
64
63
|
`:`
|
|
65
|
-
`,xD=(u,D)=>{const e=[];let t="";typeof D=="string"?D={section:D,whitespace:!1}:(D=D||Object.create(null),D.whitespace=D.whitespace===!0);const r=D.whitespace?" = ":"=";for(const o of Object.keys(u)){const n=u[o];if(n&&Array.isArray(n))for(const s of n)t+=X(o+"[]")+r+X(s)+Tu;else n&&typeof n=="object"?e.push(o):t+=X(o)+r+X(n)+Tu}D.section&&t.length&&(t="["+X(D.section)+"]"+Tu+t);for(const o of e){const n=xt(o).join("\\."),s=(D.section?D.section+".":"")+n,{whitespace:i}=D,l=xD(u[o],{section:s,whitespace:i});t.length&&l.length&&(t+=Tu),t+=l}return t},xt=u=>u.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(D=>D.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")),St=u=>{const D=Object.create(null);let e=D,t=null;const r=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,o=u.split(/[\r\n]+/g);for(const s of o){if(!s||s.match(/^\s*[;#]/))continue;const i=s.match(r);if(!i)continue;if(i[1]!==void 0){if(t=Iu(i[1]),t==="__proto__"){e=Object.create(null);continue}e=D[t]=D[t]||Object.create(null);continue}const l=Iu(i[2]),F=l.length>2&&l.slice(-2)==="[]",a=F?l.slice(0,-2):l;if(a==="__proto__")continue;const c=i[3]?Iu(i[4]):!0,C=c==="true"||c==="false"||c==="null"?JSON.parse(c):c;F&&(vD.call(e,a)?Array.isArray(e[a])||(e[a]=[e[a]]):e[a]=[]),Array.isArray(e[a])?e[a].push(C):e[a]=C}const n=[];for(const s of Object.keys(D)){if(!vD.call(D,s)||typeof D[s]!="object"||Array.isArray(D[s]))continue;const i=xt(s);e=D;const l=i.pop(),F=l.replace(/\\\./g,".");for(const a of i)a!=="__proto__"&&((!vD.call(e,a)||typeof e[a]!="object")&&(e[a]=Object.create(null)),e=e[a]);e===D&&F===l||(e[F]=D[s],n.push(s))}for(const s of n)delete D[s];return D},Ot=u=>u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'"),X=u=>typeof u!="string"||u.match(/[=\r\n]/)||u.match(/^\[/)||u.length>1&&Ot(u)||u!==u.trim()?JSON.stringify(u):u.split(";").join("\\;").split("#").join("\\#"),Iu=(u,D)=>{if(u=(u||"").trim(),Ot(u)){u.charAt(0)==="'"&&(u=u.slice(1,-1));try{u=JSON.parse(u)}catch{}}else{let e=!1,t="";for(let r=0,o=u.length;r<o;r++){const n=u.charAt(r);if(e)"\\;#".indexOf(n)!==-1?t+=n:t+="\\"+n,e=!1;else{if(";#".indexOf(n)!==-1)break;n==="\\"?e=!0:t+=n}}return e&&(t+="\\"),t.trim()}return u};var Bi={parse:St,decode:St,stringify:xD,encode:xD,safe:X,unsafe:Iu},Tt=N(Bi);const It=u=>T.lstat(u).then(()=>!0,()=>!1),bi=["","conventional"],{hasOwnProperty:yi}=Object.prototype,Pt=(u,D)=>yi.call(u,D),x=(u,D,e)=>{if(!D)throw new O(`Invalid config property ${u}: ${e}`)},Pu={OPENAI_KEY(u){if(!u)throw new O("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",bi.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-3.5-turbo":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}},SD=q.join(ue.homedir(),".aicommit"),_t=async()=>{if(!await It(SD))return Object.create(null);const D=await T.readFile(SD,"utf8");return Tt.parse(D)},OD=async(u,D)=>{const e=await _t(),t={};for(const r of Object.keys(Pu)){const o=Pu[r],n=u?.[r]??e[r];if(D)try{t[r]=o(n)}catch{}else t[r]=o(n)}return t},Ai=async u=>{const D=await _t();for(const[e,t]of u){if(!Pt(Pu,e))throw new O(`Invalid config property: ${e}`);const r=Pu[e](t);D[e]=r}await T.writeFile(SD,Tt.stringify(D),"utf8")};var TD={},ID={exports:{}},au={exports:{}},PD,Rt;function wi(){if(Rt)return PD;Rt=1;var u=1e3,D=u*60,e=D*60,t=e*24,r=t*7,o=t*365.25;PD=function(F,a){a=a||{};var c=typeof F;if(c==="string"&&F.length>0)return n(F);if(c==="number"&&isFinite(F))return a.long?i(F):s(F);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(F))};function n(F){if(F=String(F),!(F.length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(F);if(a){var c=parseFloat(a[1]),C=(a[2]||"ms").toLowerCase();switch(C){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*r;case"days":case"day":case"d":return c*t;case"hours":case"hour":case"hrs":case"hr":case"h":return c*e;case"minutes":case"minute":case"mins":case"min":case"m":return c*D;case"seconds":case"second":case"secs":case"sec":case"s":return c*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}function s(F){var a=Math.abs(F);return a>=t?Math.round(F/t)+"d":a>=e?Math.round(F/e)+"h":a>=D?Math.round(F/D)+"m":a>=u?Math.round(F/u)+"s":F+"ms"}function i(F){var a=Math.abs(F);return a>=t?l(F,a,t,"day"):a>=e?l(F,a,e,"hour"):a>=D?l(F,a,D,"minute"):a>=u?l(F,a,u,"second"):F+" ms"}function l(F,a,c,C){var f=a>=c*1.5;return Math.round(F/c)+" "+C+(f?"s":"")}return PD}var _D,kt;function Mt(){if(kt)return _D;kt=1;function u(D){t.debug=t,t.default=t,t.coerce=l,t.disable=n,t.enable=o,t.enabled=s,t.humanize=wi(),t.destroy=F,Object.keys(D).forEach(a=>{t[a]=D[a]}),t.names=[],t.skips=[],t.formatters={};function e(a){let c=0;for(let C=0;C<a.length;C++)c=(c<<5)-c+a.charCodeAt(C),c|=0;return t.colors[Math.abs(c)%t.colors.length]}t.selectColor=e;function t(a){let c,C=null,f,d;function p(...h){if(!p.enabled)return;const w=p,P=Number(new Date),fu=P-(c||P);w.diff=fu,w.prev=c,w.curr=P,c=P,h[0]=t.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let M=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(W,Zt)=>{if(W==="%%")return"%";M++;const HD=t.formatters[Zt];if(typeof HD=="function"){const Xt=h[M];W=HD.call(w,Xt),h.splice(M,1),M--}return W}),t.formatArgs.call(w,h),(w.log||t.log).apply(w,h)}return p.namespace=a,p.useColors=t.useColors(),p.color=t.selectColor(a),p.extend=r,p.destroy=t.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>C!==null?C:(f!==t.namespaces&&(f=t.namespaces,d=t.enabled(a)),d),set:h=>{C=h}}),typeof t.init=="function"&&t.init(p),p}function r(a,c){const C=t(this.namespace+(typeof c>"u"?":":c)+a);return C.log=this.log,C}function o(a){t.save(a),t.namespaces=a,t.names=[],t.skips=[];let c;const C=(typeof a=="string"?a:"").split(/[\s,]+/),f=C.length;for(c=0;c<f;c++)C[c]&&(a=C[c].replace(/\*/g,".*?"),a[0]==="-"?t.skips.push(new RegExp("^"+a.slice(1)+"$")):t.names.push(new RegExp("^"+a+"$")))}function n(){const a=[...t.names.map(i),...t.skips.map(i).map(c=>"-"+c)].join(",");return t.enable(""),a}function s(a){if(a[a.length-1]==="*")return!0;let c,C;for(c=0,C=t.skips.length;c<C;c++)if(t.skips[c].test(a))return!1;for(c=0,C=t.names.length;c<C;c++)if(t.names[c].test(a))return!0;return!1}function i(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}function l(a){return a instanceof Error?a.stack||a.message:a}function F(){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 t.enable(t.load()),t}return _D=u,_D}au.exports;var jt;function $i(){return jt||(jt=1,function(u,D){D.formatArgs=t,D.save=r,D.load=o,D.useColors=e,D.storage=n(),D.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`."))}})(),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(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function t(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 l="color: "+this.color;i.splice(1,0,l,"color: inherit");let F=0,a=0;i[0].replace(/%[a-zA-Z%]/g,c=>{c!=="%%"&&(F++,c==="%c"&&(a=F))}),i.splice(a,0,l)}D.log=console.debug||console.log||(()=>{});function r(i){try{i?D.storage.setItem("debug",i):D.storage.removeItem("debug")}catch{}}function o(){let i;try{i=D.storage.getItem("debug")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i}function n(){try{return localStorage}catch{}}u.exports=Mt()(D);const{formatters:s}=u.exports;s.j=function(i){try{return JSON.stringify(i)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(au,au.exports)),au.exports}var cu={exports:{}},RD,Nt;function vi(){return Nt||(Nt=1,RD=(u,D=process.argv)=>{const e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)}),RD}var kD,Lt;function xi(){if(Lt)return kD;Lt=1;const u=ue,D=Eu,e=vi(),{env:t}=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 t&&(t.FORCE_COLOR==="true"?r=1:t.FORCE_COLOR==="false"?r=0:r=t.FORCE_COLOR.length===0?1:Math.min(parseInt(t.FORCE_COLOR,10),3));function o(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}function n(i,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(i&&!l&&r===void 0)return 0;const F=r||0;if(t.TERM==="dumb")return F;if(process.platform==="win32"){const a=u.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in t)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(a=>a in t)||t.CI_NAME==="codeship"?1:F;if("TEAMCITY_VERSION"in t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(t.TEAMCITY_VERSION)?1:0;if(t.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in t){const a=parseInt((t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(t.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(t.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(t.TERM)||"COLORTERM"in t?1:F}function s(i){const l=n(i,i&&i.isTTY);return o(l)}return kD={supportsColor:s,stdout:o(n(!0,D.isatty(1))),stderr:o(n(!0,D.isatty(2)))},kD}cu.exports;var Gt;function Si(){return Gt||(Gt=1,function(u,D){const e=Eu,t=XD;D.init=F,D.log=s,D.formatArgs=o,D.save=i,D.load=l,D.useColors=r,D.destroy=t.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 c=xi();c&&(c.stderr||c).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(c=>/^debug_/i.test(c)).reduce((c,C)=>{const f=C.substring(6).toLowerCase().replace(/_([a-z])/g,(p,h)=>h.toUpperCase());let d=process.env[C];return/^(yes|on|true|enabled)$/i.test(d)?d=!0:/^(no|off|false|disabled)$/i.test(d)?d=!1:d==="null"?d=null:d=Number(d),c[f]=d,c},{});function r(){return"colors"in D.inspectOpts?!!D.inspectOpts.colors:e.isatty(process.stderr.fd)}function o(c){const{namespace:C,useColors:f}=this;if(f){const d=this.color,p="\x1B[3"+(d<8?d:"8;5;"+d),h=` ${p};1m${C} \x1B[0m`;c[0]=h+c[0].split(`
|
|
64
|
+
`,t=D.whitespace?" = ":"=",r=[],o=D.sort?Object.keys(u).sort():Object.keys(u);let n=0;D.align&&(n=M(o.filter(c=>u[c]===null||Array.isArray(u[c])||typeof u[c]!="object").map(c=>Array.isArray(u[c])?`${c}[]`:c).concat([""]).reduce((c,F)=>M(c).length>=M(F).length?c:F)).length);let s="";const i=D.bracketedArray?"[]":"";for(const c of o){const F=u[c];if(F&&Array.isArray(F))for(const a of F)s+=M(`${c}${i}`).padEnd(n," ")+t+M(a)+e;else F&&typeof F=="object"?r.push(c):s+=M(c).padEnd(n," ")+t+M(F)+e}D.section&&s.length&&(s="["+M(D.section)+"]"+(D.newline?e+e:e)+s);for(const c of r){const F=$t(c,".").join("\\."),a=(D.section?D.section+".":"")+F,l=vD(u[c],{...D,section:a});s.length&&l.length&&(s+=e),s+=l}return s};function $t(u,D){var e=0,t=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(t,r)),t=r+D.length}while(r!==-1);return o.push(u.slice(t)),o}const vt=(u,D={})=>{D.bracketedArray=D.bracketedArray!==!1;const e=Object.create(null);let t=e,r=null;const o=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,n=u.split(/[\r\n]+/g),s={};for(const c of n){if(!c||c.match(/^\s*[;#]/)||c.match(/^\s*$/))continue;const F=c.match(o);if(!F)continue;if(F[1]!==void 0){if(r=xu(F[1]),r==="__proto__"){t=Object.create(null);continue}t=e[r]=e[r]||Object.create(null);continue}const a=xu(F[2]);let l;D.bracketedArray?l=a.length>2&&a.slice(-2)==="[]":(s[a]=(s?.[a]||0)+1,l=s[a]>1);const C=l?a.slice(0,-2):a;if(C==="__proto__")continue;const f=F[3]?xu(F[4]):!0,d=f==="true"||f==="false"||f==="null"?JSON.parse(f):f;l&&($D.call(t,C)?Array.isArray(t[C])||(t[C]=[t[C]]):t[C]=[]),Array.isArray(t[C])?t[C].push(d):t[C]=d}const i=[];for(const c of Object.keys(e)){if(!$D.call(e,c)||typeof e[c]!="object"||Array.isArray(e[c]))continue;const F=$t(c,".");t=e;const a=F.pop(),l=a.replace(/\\\./g,".");for(const C of F)C!=="__proto__"&&((!$D.call(t,C)||typeof t[C]!="object")&&(t[C]=Object.create(null)),t=t[C]);t===e&&l===a||(t[l]=e[c],i.push(c))}for(const c of i)delete e[c];return e},xt=u=>u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'"),M=u=>typeof u!="string"||u.match(/[=\r\n]/)||u.match(/^\[/)||u.length>1&&xt(u)||u!==u.trim()?JSON.stringify(u):u.split(";").join("\\;").split("#").join("\\#"),xu=u=>{if(u=(u||"").trim(),xt(u)){u.charAt(0)==="'"&&(u=u.slice(1,-1));try{u=JSON.parse(u)}catch{}}else{let D=!1,e="";for(let t=0,r=u.length;t<r;t++){const o=u.charAt(t);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};var gi={parse:vt,decode:vt,stringify:vD,encode:vD,safe:M,unsafe:xu},St=z(gi);const Ot=u=>T.lstat(u).then(()=>!0,()=>!1),Bi=["","conventional"],{hasOwnProperty:bi}=Object.prototype,Tt=(u,D)=>bi.call(u,D),x=(u,D,e)=>{if(!D)throw new O(`Invalid config property ${u}: ${e}`)},Su={OPENAI_KEY(u){if(!u)throw new O("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",Bi.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-3.5-turbo":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}},xD=q.join(XD.homedir(),".aicommit"),It=async()=>{if(!await Ot(xD))return Object.create(null);const D=await T.readFile(xD,"utf8");return St.parse(D)},SD=async(u,D)=>{const e=await It(),t={};for(const r of Object.keys(Su)){const o=Su[r],n=u?.[r]??e[r];if(D)try{t[r]=o(n)}catch{}else t[r]=o(n)}return t},yi=async u=>{const D=await It();for(const[e,t]of u){if(!Tt(Su,e))throw new O(`Invalid config property: ${e}`);const r=Su[e](t);D[e]=r}await T.writeFile(xD,St.stringify(D),"utf8")};var OD={},TD={exports:{}},Ou={exports:{}},ID,Pt;function Ai(){if(Pt)return ID;Pt=1;var u=1e3,D=u*60,e=D*60,t=e*24,r=t*7,o=t*365.25;ID=function(F,a){a=a||{};var l=typeof F;if(l==="string"&&F.length>0)return n(F);if(l==="number"&&isFinite(F))return a.long?i(F):s(F);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(F))};function n(F){if(F=String(F),!(F.length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(F);if(a){var l=parseFloat(a[1]),C=(a[2]||"ms").toLowerCase();switch(C){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"weeks":case"week":case"w":return l*r;case"days":case"day":case"d":return l*t;case"hours":case"hour":case"hrs":case"hr":case"h":return l*e;case"minutes":case"minute":case"mins":case"min":case"m":return l*D;case"seconds":case"second":case"secs":case"sec":case"s":return l*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function s(F){var a=Math.abs(F);return a>=t?Math.round(F/t)+"d":a>=e?Math.round(F/e)+"h":a>=D?Math.round(F/D)+"m":a>=u?Math.round(F/u)+"s":F+"ms"}function i(F){var a=Math.abs(F);return a>=t?c(F,a,t,"day"):a>=e?c(F,a,e,"hour"):a>=D?c(F,a,D,"minute"):a>=u?c(F,a,u,"second"):F+" ms"}function c(F,a,l,C){var f=a>=l*1.5;return Math.round(F/l)+" "+C+(f?"s":"")}return ID}var PD,_t;function kt(){if(_t)return PD;_t=1;function u(D){t.debug=t,t.default=t,t.coerce=c,t.disable=n,t.enable=o,t.enabled=s,t.humanize=Ai(),t.destroy=F,Object.keys(D).forEach(a=>{t[a]=D[a]}),t.names=[],t.skips=[],t.formatters={};function e(a){let l=0;for(let C=0;C<a.length;C++)l=(l<<5)-l+a.charCodeAt(C),l|=0;return t.colors[Math.abs(l)%t.colors.length]}t.selectColor=e;function t(a){let l,C=null,f,d;function p(...h){if(!p.enabled)return;const w=p,P=Number(new Date),Fu=P-(l||P);w.diff=Fu,w.prev=l,w.curr=P,l=P,h[0]=t.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let j=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,(W,Jt)=>{if(W==="%%")return"%";j++;const UD=t.formatters[Jt];if(typeof UD=="function"){const Zt=h[j];W=UD.call(w,Zt),h.splice(j,1),j--}return W}),t.formatArgs.call(w,h),(w.log||t.log).apply(w,h)}return p.namespace=a,p.useColors=t.useColors(),p.color=t.selectColor(a),p.extend=r,p.destroy=t.destroy,Object.defineProperty(p,"enabled",{enumerable:!0,configurable:!1,get:()=>C!==null?C:(f!==t.namespaces&&(f=t.namespaces,d=t.enabled(a)),d),set:h=>{C=h}}),typeof t.init=="function"&&t.init(p),p}function r(a,l){const C=t(this.namespace+(typeof l>"u"?":":l)+a);return C.log=this.log,C}function o(a){t.save(a),t.namespaces=a,t.names=[],t.skips=[];let l;const C=(typeof a=="string"?a:"").split(/[\s,]+/),f=C.length;for(l=0;l<f;l++)C[l]&&(a=C[l].replace(/\*/g,".*?"),a[0]==="-"?t.skips.push(new RegExp("^"+a.slice(1)+"$")):t.names.push(new RegExp("^"+a+"$")))}function n(){const a=[...t.names.map(i),...t.skips.map(i).map(l=>"-"+l)].join(",");return t.enable(""),a}function s(a){if(a[a.length-1]==="*")return!0;let l,C;for(l=0,C=t.skips.length;l<C;l++)if(t.skips[l].test(a))return!1;for(l=0,C=t.names.length;l<C;l++)if(t.names[l].test(a))return!0;return!1}function i(a){return a.toString().substring(2,a.toString().length-2).replace(/\.\*\?$/,"*")}function c(a){return a instanceof Error?a.stack||a.message:a}function F(){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 t.enable(t.load()),t}return PD=u,PD}var Rt;function wi(){return Rt||(Rt=1,function(u,D){D.formatArgs=t,D.save=r,D.load=o,D.useColors=e,D.storage=n(),D.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`."))}})(),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(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function t(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 F=0,a=0;i[0].replace(/%[a-zA-Z%]/g,l=>{l!=="%%"&&(F++,l==="%c"&&(a=F))}),i.splice(a,0,c)}D.log=console.debug||console.log||(()=>{});function r(i){try{i?D.storage.setItem("debug",i):D.storage.removeItem("debug")}catch{}}function o(){let i;try{i=D.storage.getItem("debug")}catch{}return!i&&typeof process<"u"&&"env"in process&&(i=process.env.DEBUG),i}function n(){try{return localStorage}catch{}}u.exports=kt()(D);const{formatters:s}=u.exports;s.j=function(i){try{return JSON.stringify(i)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}(Ou,Ou.exports)),Ou.exports}var Tu={exports:{}},_D,Mt;function $i(){return Mt||(Mt=1,_D=(u,D=process.argv)=>{const e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)}),_D}var kD,jt;function vi(){if(jt)return kD;jt=1;const u=XD,D=Cu,e=$i(),{env:t}=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 t&&(t.FORCE_COLOR==="true"?r=1:t.FORCE_COLOR==="false"?r=0:r=t.FORCE_COLOR.length===0?1:Math.min(parseInt(t.FORCE_COLOR,10),3));function o(i){return i===0?!1:{level:i,hasBasic:!0,has256:i>=2,has16m:i>=3}}function n(i,c){if(r===0)return 0;if(e("color=16m")||e("color=full")||e("color=truecolor"))return 3;if(e("color=256"))return 2;if(i&&!c&&r===void 0)return 0;const F=r||0;if(t.TERM==="dumb")return F;if(process.platform==="win32"){const a=u.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in t)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(a=>a in t)||t.CI_NAME==="codeship"?1:F;if("TEAMCITY_VERSION"in t)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(t.TEAMCITY_VERSION)?1:0;if(t.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in t){const a=parseInt((t.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(t.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(t.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(t.TERM)||"COLORTERM"in t?1:F}function s(i){const c=n(i,i&&i.isTTY);return o(c)}return kD={supportsColor:s,stdout:o(n(!0,D.isatty(1))),stderr:o(n(!0,D.isatty(2)))},kD}var Nt;function xi(){return Nt||(Nt=1,function(u,D){const e=Cu,t=JD;D.init=F,D.log=s,D.formatArgs=o,D.save=i,D.load=c,D.useColors=r,D.destroy=t.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 l=vi();l&&(l.stderr||l).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(l=>/^debug_/i.test(l)).reduce((l,C)=>{const f=C.substring(6).toLowerCase().replace(/_([a-z])/g,(p,h)=>h.toUpperCase());let d=process.env[C];return/^(yes|on|true|enabled)$/i.test(d)?d=!0:/^(no|off|false|disabled)$/i.test(d)?d=!1:d==="null"?d=null:d=Number(d),l[f]=d,l},{});function r(){return"colors"in D.inspectOpts?!!D.inspectOpts.colors:e.isatty(process.stderr.fd)}function o(l){const{namespace:C,useColors:f}=this;if(f){const d=this.color,p="\x1B[3"+(d<8?d:"8;5;"+d),h=` ${p};1m${C} \x1B[0m`;l[0]=h+l[0].split(`
|
|
66
65
|
`).join(`
|
|
67
|
-
`+h),
|
|
68
|
-
`)}function i(
|
|
69
|
-
`).map(C=>C.trim()).join(" ")},a.O=function(
|
|
70
|
-
`).some(D=>D.indexOf("(https.js:")!==-1||D.indexOf("node:https:")!==-1)}function
|
|
66
|
+
`+h),l.push(p+"m+"+u.exports.humanize(this.diff)+"\x1B[0m")}else l[0]=n()+C+" "+l[0]}function n(){return D.inspectOpts.hideDate?"":new Date().toISOString()+" "}function s(...l){return process.stderr.write(t.format(...l)+`
|
|
67
|
+
`)}function i(l){l?process.env.DEBUG=l:delete process.env.DEBUG}function c(){return process.env.DEBUG}function F(l){l.inspectOpts={};const C=Object.keys(D.inspectOpts);for(let f=0;f<C.length;f++)l.inspectOpts[C[f]]=D.inspectOpts[C[f]]}u.exports=kt()(D);const{formatters:a}=u.exports;a.o=function(l){return this.inspectOpts.colors=this.useColors,t.inspect(l,this.inspectOpts).split(`
|
|
68
|
+
`).map(C=>C.trim()).join(" ")},a.O=function(l){return this.inspectOpts.colors=this.useColors,t.inspect(l,this.inspectOpts)}}(Tu,Tu.exports)),Tu.exports}typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?TD.exports=wi():TD.exports=xi();var RD=TD.exports,MD={};Object.defineProperty(MD,"__esModule",{value:!0});function Si(u){return function(D,e){return new Promise((t,r)=>{u.call(this,D,e,(o,n)=>{o?r(o):t(n)})})}}MD.default=Si;var Lt=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};const Oi=YD,Ti=Lt(RD),Ii=Lt(MD),au=Ti.default("agent-base");function Pi(u){return!!u&&typeof u.addRequest=="function"}function jD(){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)}function Iu(u,D){return new Iu.Agent(u,D)}(function(u){class D extends Oi.EventEmitter{constructor(t,r){super();let o=r;typeof t=="function"?this.callback=t:t&&(o=t),this.timeout=null,o&&typeof o.timeout=="number"&&(this.timeout=o.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:jD()?443:80}set defaultPort(t){this.explicitDefaultPort=t}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:jD()?"https:":"http:"}set protocol(t){this.explicitProtocol=t}callback(t,r,o){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(t,r){const o=Object.assign({},r);typeof o.secureEndpoint!="boolean"&&(o.secureEndpoint=jD()),o.host==null&&(o.host="localhost"),o.port==null&&(o.port=o.secureEndpoint?443:80),o.protocol==null&&(o.protocol=o.secureEndpoint?"https:":"http:"),o.host&&o.path&&delete o.path,delete o.agent,delete o.hostname,delete o._defaultAgent,delete o.defaultPort,delete o.createConnection,t._last=!0,t.shouldKeepAlive=!1;let n=!1,s=null;const i=o.timeout||this.timeout,c=C=>{t._hadError||(t.emit("error",C),t._hadError=!0)},F=()=>{s=null,n=!0;const C=new Error(`A "socket" was not created for HTTP request before ${i}ms`);C.code="ETIMEOUT",c(C)},a=C=>{n||(s!==null&&(clearTimeout(s),s=null),c(C))},l=C=>{if(n)return;if(s!=null&&(clearTimeout(s),s=null),Pi(C)){au("Callback returned another Agent instance %o",C.constructor.name),C.addRequest(t,o);return}if(C){C.once("free",()=>{this.freeSocket(C,o)}),t.onSocket(C);return}const f=new Error(`no Duplex stream was returned to agent-base for \`${t.method} ${t.path}\``);c(f)};if(typeof this.callback!="function"){c(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(au("Converting legacy callback function to promise"),this.promisifiedCallback=Ii.default(this.callback)):this.promisifiedCallback=this.callback),typeof i=="number"&&i>0&&(s=setTimeout(F,i)),"port"in o&&typeof o.port!="number"&&(o.port=Number(o.port));try{au("Resolving socket for %o request: %o",o.protocol,`${t.method} ${t.path}`),Promise.resolve(this.promisifiedCallback(t,o)).then(l,a)}catch(C){Promise.reject(C).catch(a)}}freeSocket(t,r){au("Freeing socket %o %o",t.constructor.name,r),t.destroy()}destroy(){au("Destroying agent %o",this.constructor.name)}}u.Agent=D,u.prototype=u.Agent.prototype})(Iu||(Iu={}));var _i=Iu,ND={},ki=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ND,"__esModule",{value:!0});const Ri=ki(RD),cu=Ri.default("https-proxy-agent:parse-proxy-response");function Mi(u){return new Promise((D,e)=>{let t=0;const r=[];function o(){const a=u.read();a?F(a):u.once("readable",o)}function n(){u.removeListener("end",i),u.removeListener("error",c),u.removeListener("close",s),u.removeListener("readable",o)}function s(a){cu("onclose had error %o",a)}function i(){cu("onend")}function c(a){n(),cu("onerror %o",a),e(a)}function F(a){r.push(a),t+=a.length;const l=Buffer.concat(r,t);if(l.indexOf(`\r
|
|
71
70
|
\r
|
|
72
|
-
`)===-1){
|
|
73
|
-
`)),d=+f.split(" ")[1];
|
|
74
|
-
`;t.auth&&(n["Proxy-Authorization"]=`Basic ${Buffer.from(t.auth).toString("base64")}`);let{host:
|
|
75
|
-
`;const
|
|
76
|
-
`);const{statusCode:C,buffered:f}=yield
|
|
77
|
-
${
|
|
78
|
-
${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"},null,2)}`},
|
|
79
|
-
`),
|
|
71
|
+
`)===-1){cu("have not received end of HTTP headers yet..."),o();return}const f=l.toString("ascii",0,l.indexOf(`\r
|
|
72
|
+
`)),d=+f.split(" ")[1];cu("got proxy server response: %o",f),D({statusCode:d,buffered:l})}u.on("error",c),u.on("close",s),u.on("end",i),o()})}ND.default=Mi;var ji=A&&A.__awaiter||function(u,D,e,t){function r(o){return o instanceof e?o:new e(function(n){n(o)})}return new(e||(e=Promise))(function(o,n){function s(F){try{c(t.next(F))}catch(a){n(a)}}function i(F){try{c(t.throw(F))}catch(a){n(a)}}function c(F){F.done?o(F.value):r(F.value).then(s,i)}c((t=t.apply(u,D||[])).next())})},Q=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(OD,"__esModule",{value:!0});const Gt=Q(an),Ut=Q(cn),Ni=Q(ln),Li=Q(VD),Gi=Q(RD),Ui=_i,Wi=Q(ND),lu=Gi.default("https-proxy-agent:agent");class Hi extends Ui.Agent{constructor(D){let e;if(typeof D=="string"?e=Ni.default.parse(D):e=D,!e)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");lu("creating new HttpsProxyAgent instance: %o",e),super(e);const t=Object.assign({},e);this.secureProxy=e.secureProxy||Ki(t.protocol),t.host=t.hostname||t.host,typeof t.port=="string"&&(t.port=parseInt(t.port,10)),!t.port&&t.host&&(t.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in t)&&(t.ALPNProtocols=["http 1.1"]),t.host&&t.path&&(delete t.path,delete t.pathname),this.proxy=t}callback(D,e){return ji(this,void 0,void 0,function*(){const{proxy:t,secureProxy:r}=this;let o;r?(lu("Creating `tls.Socket`: %o",t),o=Ut.default.connect(t)):(lu("Creating `net.Socket`: %o",t),o=Gt.default.connect(t));const n=Object.assign({},t.headers);let i=`CONNECT ${`${e.host}:${e.port}`} HTTP/1.1\r
|
|
73
|
+
`;t.auth&&(n["Proxy-Authorization"]=`Basic ${Buffer.from(t.auth).toString("base64")}`);let{host:c,port:F,secureEndpoint:a}=e;zi(F,a)||(c+=`:${F}`),n.Host=c,n.Connection="close";for(const p of Object.keys(n))i+=`${p}: ${n[p]}\r
|
|
74
|
+
`;const l=Wi.default(o);o.write(`${i}\r
|
|
75
|
+
`);const{statusCode:C,buffered:f}=yield l;if(C===200){if(D.once("socket",qi),e.secureEndpoint){lu("Upgrading socket connection to TLS");const p=e.servername||e.host;return Ut.default.connect(Object.assign(Object.assign({},Vi(e,"host","hostname","path","port")),{socket:o,servername:p}))}return o}o.destroy();const d=new Gt.default.Socket({writable:!1});return d.readable=!0,D.once("socket",p=>{lu("replaying proxy buffer for failed request"),Li.default(p.listenerCount("data")>0),p.push(f),p.push(null)}),d})}}OD.default=Hi;function qi(u){u.resume()}function zi(u,D){return!!(!D&&u===80||D&&u===443)}function Ki(u){return typeof u=="string"?/^https:?$/i.test(u):!1}function Vi(u,...D){const e={};let t;for(t in u)D.includes(t)||(e[t]=u[t]);return e}var Yi=A&&A.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};const LD=Yi(OD);function Wt(u){return new LD.default(u)}(function(u){u.HttpsProxyAgent=LD.default,u.prototype=LD.default.prototype})(Wt||(Wt={}));const Ji={"":"<commit message>",conventional:"<type>(<optional scope>): <commit message>"},Zi=u=>`The output response must be in format:
|
|
76
|
+
${Ji[u]}`,Xi={"":"",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"},null,2)}`},Qi=(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.",Xi[e],Zi(e)].filter(Boolean).join(`
|
|
78
|
+
`),ua=async(u,D,e,t,r,o)=>new Promise((n,s)=>{const i=JSON.stringify(t),c=sn.request({port:443,hostname:u,path:D,method:"POST",headers:{...e,"Content-Type":"application/json","Content-Length":Buffer.byteLength(i)},timeout:r,agent:void 0},F=>{const a=[];F.on("data",l=>a.push(l)),F.on("end",()=>{n({request:c,response:F,data:Buffer.concat(a).toString()})})});c.on("error",s),c.on("timeout",()=>{c.destroy(),s(new O(`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()}),Da=async(u,D,e,t)=>{const{response:r,data:o}=await ua("api.openai.com","/v1/chat/completions",{Authorization:`Bearer ${u}`},D,e);if(!r.statusCode||r.statusCode<200||r.statusCode>299){let n=`OpenAI API Error: ${r.statusCode} - ${r.statusMessage}`;throw o&&(n+=`
|
|
80
79
|
|
|
81
80
|
${o}`),r.statusCode===500&&(n+=`
|
|
82
81
|
|
|
83
|
-
Check the API status: https://status.openai.com`),new O(n)}return JSON.parse(o)},
|
|
84
|
-
${n.files.map(
|
|
85
|
-
`)}`);const{env:s}=process,i=await
|
|
82
|
+
Check the API status: https://status.openai.com`),new O(n)}return JSON.parse(o)},ea=u=>u.trim().replace(/[\n\r]/g,"").replace(/(\w)\.$/,"$1"),ta=u=>Array.from(new Set(u)),Ht=async(u,D,e,t,r,o,n,s,i)=>{try{const c=await Da(u,{model:D,messages:[{role:"system",content:Qi(e,o,n)},{role:"user",content:t}],temperature:i,top_p:1,frequency_penalty:0,presence_penalty:0,max_tokens:300,stream:!1,n:r},s);return ta(c.choices.filter(F=>F.message?.content).map(F=>ea(F.message.content)))}catch(c){const F=c;throw F.code==="ENOTFOUND"?new O(`Error connecting to ${F.hostname} (${F.syscall}). Are you connected to the internet?`):F}};var na=async(u,D,e,t,r)=>(async()=>{bt(Qe(Xe(" aicommit "))),await yt();const o=yD();e&&await Z("git",["add","--update"]),o.start("Detecting staged files");const n=await wt(D);if(!n)throw o.stop("Detecting staged files"),new O("No staged changes found. Stage your changes manually, or automatically stage all changes with the `--all` flag.");o.stop(`${mi(n.files)}:
|
|
83
|
+
${n.files.map(l=>` ${l}`).join(`
|
|
84
|
+
`)}`);const{env:s}=process,i=await SD({OPENAI_KEY:s.OPENAI_KEY||s.OPENAI_API_KEY,proxy:s.https_proxy||s.HTTPS_PROXY||s.http_proxy||s.HTTP_PROXY,generate:u?.toString(),type:t?.toString()}),c=yD();c.start("The AI is analyzing your changes");let F;try{F=await Ht(i.OPENAI_KEY,i.model,i.locale,n.diff,i.generate,i["max-length"],i.type,i.timeout,i.temperature)}finally{c.stop("Changes analyzed")}if(F.length===0)throw new O("No commit messages were generated. Try again.");let a;if(F.length===1){[a]=F;let l;if(i["auto-confirm"]?(l=!0,U(`${su("\u2714")} Auto confirmed commit message.
|
|
86
85
|
|
|
87
86
|
${a}
|
|
88
|
-
`)):
|
|
87
|
+
`)):l=await pi({message:`Use this commit message?
|
|
89
88
|
|
|
90
89
|
${a}
|
|
91
|
-
`}),!
|
|
90
|
+
`}),!l||ft(l)){U("Commit cancelled");return}}else{const l=await hi({message:`Pick a commit message to use: ${lD("(Ctrl+c to exit)")}`,options:F.map(C=>({label:C,value:C}))});if(ft(l)){U("Commit cancelled");return}a=l}if(i["prepend-reference"]){const{stdout:l}=await Z("git",["branch","--show-current"]),C=l.match(/([a-zA-Z])+-([0-9]+)/)?.[0];C?.length&&(a=`${C?.toUpperCase()}: ${a}`)}await Z("git",["commit","-m",a,...r]),U(`${su("\u2714")} Successfully committed!`)})().catch(o=>{U(`${Au("\u2716")} ${o.message}`),vu(o),process.exit(1)});const[GD,ra]=process.argv.slice(2);var oa=()=>(async()=>{if(!GD)throw new O('Commit message file path is missing. This file should be called from the "prepare-commit-msg" git hook');if(ra)return;const u=await wt();if(!u)return;bt(Qe(Xe(" aicommit ")));const{env:D}=process,e=await SD({proxy:D.https_proxy||D.HTTPS_PROXY||D.http_proxy||D.HTTP_PROXY}),t=yD();t.start("The AI is analyzing your changes");let r;try{r=await Ht(e.OPENAI_KEY,e.model,e.locale,u.diff,e.generate,e["max-length"],e.type,e.timeout,e.temperature)}finally{t.stop("Changes analyzed")}const n=await T.readFile(GD,"utf8")!=="",s=r.length>1;let i="";n&&(i=`# \u{1F916} AI generated commit${s?"s":""}
|
|
92
91
|
`),s?(n&&(i+=`# Select one of the following messages by uncommeting:
|
|
93
92
|
`),i+=`
|
|
94
|
-
${r.map(
|
|
93
|
+
${r.map(c=>`# ${c}`).join(`
|
|
95
94
|
`)}`):(n&&(i+=`# Edit the message below and commit:
|
|
96
95
|
`),i+=`
|
|
97
96
|
${r[0]}
|
|
98
|
-
`),await T.appendFile(
|
|
97
|
+
`),await T.appendFile(GD,i),U(`${su("\u2714")} Saved commit message!`)})().catch(u=>{U(`${Au("\u2716")} ${u.message}`),vu(u),process.exit(1)}),sa=me({name:"config",parameters:["<mode>","<key=value...>"]},u=>{(async()=>{const{mode:D,keyValue:e}=u._;if(D==="get"){const t=await SD({},!0);for(const r of e)Tt(t,r)&&console.log(`${r}=${t[r]}`);return}if(D==="set"){await yi(e.map(t=>t.split("=")));return}throw new O(`Invalid mode: ${D}`)})().catch(D=>{console.error(`${Au("\u2716")} ${D.message}`),vu(D),process.exit(1)})});const qt="prepare-commit-msg",zt=`.git/hooks/${qt}`,Pu=Fn(new URL("cli.mjs",import.meta.url)),ia=process.argv[1].replace(/\\/g,"/").endsWith(`/${zt}`),Kt=process.platform==="win32",Vt=`
|
|
99
98
|
#!/usr/bin/env node
|
|
100
|
-
import(${JSON.stringify(
|
|
101
|
-
`.trim();var
|
|
99
|
+
import(${JSON.stringify(Cn(Pu))})
|
|
100
|
+
`.trim();var aa=me({name:"hook",parameters:["<install/uninstall>"]},u=>{(async()=>{const D=await yt(),{installUninstall:e}=u._,t=q.join(D,zt),r=await Ot(t);if(e==="install"){if(r){if(await T.realpath(t).catch(()=>{})===Pu){console.warn("The hook is already installed");return}throw new O(`A different ${qt} hook seems to be installed. Please remove it before installing aicommit.`)}await T.mkdir(q.dirname(t),{recursive:!0}),Kt?await T.writeFile(t,Vt):(await T.symlink(Pu,t,"file"),await T.chmod(t,493)),console.log(`${su("\u2714")} Hook installed`);return}if(e==="uninstall"){if(!r){console.warn("Hook is not installed");return}if(Kt){if(await T.readFile(t,"utf8")!==Vt){console.warn("Hook is not installed");return}}else if(await T.realpath(t)!==Pu){console.warn("Hook is not installed");return}await T.rm(t),console.log(`${su("\u2714")} Hook uninstalled`);return}throw new O(`Invalid mode: ${e}`)})().catch(D=>{console.error(`${Au("\u2716")} ${D.message}`),vu(D),process.exit(1)})});const Yt=process.argv.slice(2);Ir({name:"aicommit",version:ge,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:[sa,aa],help:{description:Pr},ignoreArgv:u=>u==="unknown-flag"||u==="argument"},u=>{ia?oa():na(u.flags.generate,u.flags.exclude,u.flags.all,u.flags.type,Yt)},Yt);
|