git-publish 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +22 -22
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,28 +1,28 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var qe=Object.defineProperty;var s=(u,e)=>qe(u,"name",{value:e,configurable:!0});var g=require("node:path"),$=require("node:fs/promises"),ze=require("node:os"),k=require("node:process"),Ge=require("node:util"),Ou=require("node:url"),Ve=require("node:child_process"),iu=require("node:events"),ku=require("node:stream/promises"),Ue=require("node:readline/promises"),He=require("tasuku"),Mu=require("tty"),Ye=require("os"),Je=require("node:fs"),Ze=require("fast-glob"),Ke=require("tar-fs"),Xe=require("gunzip-maybe");function Qe(u){var e=Object.create(null);return u&&Object.keys(u).forEach(function(t){if(t!=="default"){var r=Object.getOwnPropertyDescriptor(u,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:s(function(){return u[t]},"get")})}}),e.default=u,Object.freeze(e)}s(Qe,"_interopNamespaceDefault");var ut=Qe(Ue);const et=s(u=>({start:k.hrtime.bigint(),command:u.map(e=>tt(Ge.stripVTControlCharacters(e))).join(" "),state:{stdout:"",stderr:"",output:"",isIterating:{},nonIterable:[!1,!1]}}),"getContext"),tt=s(u=>/[^\w./-]/.test(u)?`'${u.replaceAll("'","'\\''")}'`:u,"getCommandPart"),rt=s(({stdin:u,stdout:e,stderr:t,stdio:r=[u,e,t],env:o,preferLocal:n,cwd:D=".",...i})=>{const a=D instanceof URL?Ou.fileURLToPath(D):g.resolve(D),l=o?{...k.env,...o}:void 0,p=r[0]?.string;return{...i,input:p,stdio:p===void 0?r:["pipe",...r.slice(1)],env:n?ot(l??k.env,a):l,cwd:a}},"getOptions"),ot=s(({Path:u="",PATH:e=u,...t},r)=>{const o=e.split(g.delimiter),n=Ru([],g.resolve(r)).map(D=>g.join(D,"node_modules/.bin")).filter(D=>!o.includes(D));return{...t,PATH:[...n,e].filter(Boolean).join(g.delimiter)}},"addLocalPath"),Ru=s((u,e)=>u.at(-1)===e?u:Ru([...u,e],g.resolve(e,"..")),"getLocalPaths"),nt=s(async(u,e,t)=>await Dt(u,t)?[au(u),e.map(r=>ct(r)),{...t,shell:!0}]:[u,e,t],"applyForceShell"),Dt=s(async(u,{shell:e,cwd:t,env:r=k.env})=>k.platform==="win32"&&!e&&!await it(u,t,r),"shouldForceShell"),it=s((u,e,{Path:t="",PATH:r=t})=>Su.some(o=>u.toLowerCase().endsWith(o))||lt(u,e,r),"isExe"),at={},ju=s(u=>(...e)=>at[e.join("\0")]??=u(...e),"memoize"),st=ju($.access),lt=ju(async(u,e,t)=>{const r=t.split(g.delimiter).filter(Boolean).map(o=>o.replace(/^"(.*)"$/,"$1"));try{await Promise.any([e,...r].flatMap(o=>Su.map(n=>st(`${g.resolve(o,u)}${n}`))))}catch{return!1}return!0}),Su=[".exe",".com"],ct=s(u=>au(au(`"${u.replaceAll(/(\\*)"/g,'$1$1\\"').replace(/(\\*)$/,"$1$1")}"`)),"escapeArgument"),au=s(u=>u.replaceAll(/([()\][%!^"`<>&|;, *?])/g,"^$1"),"escapeFile"),Ft=s(async(u,{input:e},t)=>{const r=await u;e!==void 0&&r.stdin.end(e);const o=iu.once(r,"close");try{return await Promise.race([o,...r.stdio.filter(Boolean).map(n=>pt(n))]),ft(t,Iu(r)),Pu(t)}catch(n){throw await Promise.allSettled([o]),xu(n,r,t)}},"getResult"),pt=s(async u=>{for await(const[e]of iu.on(u,"error"))if(!["ERR_STREAM_PREMATURE_CLOSE","EPIPE"].includes(e?.code))throw e},"onStreamError"),ft=s(({command:u},{exitCode:e,signalName:t})=>{if(t!==void 0)throw new Z(`Command was terminated with ${t}: ${u}`);if(e!==void 0)throw new Z(`Command failed with exit code ${e}: ${u}`)},"checkFailure"),xu=s((u,e,t)=>Object.assign(dt(u,t),Iu(e),Pu(t)),"getResultError"),dt=s((u,{command:e})=>u instanceof Z?u:new Z(`Command failed: ${e}`,{cause:u}),"getErrorInstance");class Z extends Error{static{s(this,"SubprocessError")}name="SubprocessError"}const Iu=s(({exitCode:u,signalCode:e})=>({...u<1?{}:{exitCode:u},...e===null?{}:{signalName:e}}),"getErrorOutput"),Pu=s(({state:{stdout:u,stderr:e,output:t},command:r,start:o})=>({stdout:su(u),stderr:su(e),output:su(t),command:r,durationMs:Number(k.hrtime.bigint()-o)/1e6}),"getOutputs"),su=s(u=>u.at(-1)===`
3
- `?u.slice(0,u.at(-2)==="\r"?-2:-1):u,"getOutput"),ht=s(async(u,e,t,r)=>{try{["node","node.exe"].includes(u.toLowerCase())&&(u=k.execPath,e=[...k.execArgv.filter(n=>!n.startsWith("--inspect")),...e]),[u,e,t]=await nt(u,e,t),[u,e,t]=Et(u,e,t);const o=Ve.spawn(u,e,t);return _u(o.stdout,r,"stdout"),_u(o.stderr,r,"stderr"),o.once("error",()=>{}),await iu.once(o,"spawn"),o}catch(o){throw xu(o,{},r)}},"spawnSubprocess"),Et=s((u,e,t)=>t.shell&&e.length>0?[[u,...e].join(" "),[],t]:[u,e,t],"concatenateShell"),_u=s((u,{state:e},t)=>{u&&(u.setEncoding("utf8"),e.isIterating[t]||(e.isIterating[t]=!1,u.on("data",r=>{e[t]+=r,e.output+=r})))},"bufferOutput"),Ct=s(async u=>{const[[e,t]]=await Promise.all([Promise.allSettled(u),gt(u)]);if(t.reason)throw t.reason.pipedFrom=e.reason??e.value,t.reason;if(e.reason)throw e.reason;return{...t.value,pipedFrom:e.value}},"handlePipe"),gt=s(async u=>{try{const[{stdout:e},{stdin:t}]=await Promise.all(u.map(({nodeChildProcess:r})=>r));if(t===null)throw new Error('The "stdin" option must be set on the first "spawn()" call in the pipeline.');if(e===null)throw new Error('The "stdout" option must be set on the last "spawn()" call in the pipeline.');ku.pipeline(e,t).catch(()=>{})}catch(e){throw await Promise.allSettled(u.map(({nodeChildProcess:t})=>mt(t))),e}},"pipeStreams"),mt=s(async u=>{const{stdin:e}=await u;e.end()},"closeStdin"),Nu=s(async function*(u,{state:e},t,r){if(e.isIterating[t]===!1)throw new Error(`The subprocess must be iterated right away, for example:
4
- for await (const line of spawn(...)) { ... }`);e.isIterating[t]=!0;try{const{[t]:o}=await u.nodeChildProcess;if(!o){e.nonIterable[r]=!0;const n=e.nonIterable.every(Boolean)?"either the option `stdout` or `stderr`":`the option \`${t}\``;throw new TypeError(`The subprocess cannot be iterated unless ${n} is 'pipe'.`)}Bt(u),yield*ut.createInterface({input:o})}finally{await u}},"lineIterator"),Bt=s(async u=>{try{await u}catch{}},"handleErrors"),wt=s(async function*({state:u},...e){try{let t=[];for(;e.length>0;){t=e.map((i,a)=>t[a]??bt(i,a,u));const[{value:r,done:o},n]=await Promise.race(t.map((i,a)=>Promise.all([i,a]))),[D]=e.splice(n,1);t.splice(n,1),o||(e.push(D),yield r)}}finally{await Promise.all(e.map(t=>t.return()))}},"combineAsyncIterators"),bt=s(async(u,e,{nonIterable:t})=>{try{return await u.next()}catch(r){return yt(t,e)?u.return():u.throw(r)}},"getNext"),yt=s((u,e)=>u.every(Boolean)?e!==u.length-1:u[e],"shouldIgnoreError");function T(u,e,t,r){const[o=[],n={}]=Array.isArray(e)?[e,t]:[[],e],D=et([u,...o]),i=rt(n),a=ht(u,o,i,D);let l=Ft(a,i,D);Object.assign(l,{nodeChildProcess:a}),l=r?Ct([r,l]):l;const p=Nu(l,D,"stdout",0),F=Nu(l,D,"stderr",1);return Object.assign(l,{nodeChildProcess:a,stdout:p,stderr:F,[Symbol.asyncIterator]:()=>wt(D,p,F),pipe:s((f,c,d)=>T(f,c,d,l),"pipe")})}s(T,"spawn");var At=Object.defineProperty,A=s((u,e)=>At(u,"name",{value:e,configurable:!0}),"a");const vt="known-flag",$t="unknown-flag",Tt="argument",Ot=/\B([A-Z])/g,kt=A(u=>u.replaceAll(Ot,"-$1").toLowerCase(),"camelToKebab"),{hasOwnProperty:Mt}=Object.prototype,U=A((u,e)=>Mt.call(u,e),"hasOwn"),lu=A(u=>typeof u=="function"?[u,!1]:Array.isArray(u)?[u[0],!0]:lu(u.type),"parseFlagType"),Lu=A((u,e)=>u===Boolean?e!=="false":e,"normalizeBoolean"),Wu=A((u,e)=>typeof e=="boolean"?e:u===Number&&e===""?Number.NaN:u(e),"applyParser"),Rt=/[\s.:=]/,jt=A(u=>{const e=`Flag name "${u}"`;if(u.length===0)throw new Error(`${e} cannot be empty`);if(u.length===1)throw new Error(`${e} must be longer than a character`);const t=u.match(Rt);if(t)throw new Error(`${e} cannot contain "${t?.[0]}"`)},"validateFlagName"),cu=A((u,e,t)=>{if(U(u,e))throw new Error(`Duplicate flags named "${e}"`);u[e]=t},"setFlag"),St=A(u=>{const e={};for(const t in u){if(!U(u,t))continue;jt(t);const r=u[t],o=[[],...lu(r),r];cu(e,t,o);const n=kt(t);if(t!==n&&cu(e,n,o),"alias"in r&&typeof r.alias=="string"){const{alias:D}=r,i=`Flag alias "${D}" for flag "${t}"`;if(D.length===0)throw new Error(`${i} cannot be empty`);if(D.length>1)throw new Error(`${i} must be a single character`);cu(e,D,o)}}return e},"createRegistry"),xt=A((u,e)=>{const t={};for(const r in u){if(!U(u,r))continue;const[o,,n,D]=e[r];if(o.length===0&&"default"in D){let{default:i}=D;typeof i=="function"&&(i=i()),t[r]=i}else t[r]=n?o:o.pop()}return t},"finalizeFlags"),K="--",It=3,Pt=/^-{1,2}\w/,qu=A(u=>{if(!Pt.test(u))return;const e=!u.startsWith(K);let t=u.slice(e?1:2),r,o=-1;for(const n of["=",":","."]){const D=t.indexOf(n);D!==-1&&(o===-1||D<o)&&(o=D)}return o!==-1&&(r=t.slice(o+1),t=t.slice(0,o)),[t,r,e]},"parseFlagArgv"),zu=A((u,{onFlag:e,onArgument:t})=>{let r;const o=A((n,D)=>{if(typeof r!="function")return!0;r(n,D),r=void 0},"triggerValueCallback");for(let n=0;n<u.length;n+=1){const D=u[n];if(D===K){o();const a=u.slice(n+1);t?.(a,[n],!0);break}const i=qu(D);if(i){if(o(),!e)continue;const[a,l,p]=i;if(p)for(let F=0;F<a.length;F+=1){o();const f=F===a.length-1;r=e(a[F],f?l:void 0,[n,F+1,f])}else r=e(a,l,[n])}else o(D,[n])&&t?.([D],[n])}o()},"argvIterator"),Gu=A((u,e)=>{for(let t=e.length-1;t>=0;t-=1){const[r,o,n]=e[t];if(o){const D=u[r];let i=D.slice(0,o);if(n||(i+=D.slice(o+1)),i!=="-"){u[r]=i;continue}}u.splice(r,1)}},"spliceFromArgv"),_t=A((u,e=process.argv.slice(2),{ignore:t}={})=>{const r=[],o=St(u),n={},D=[];return D[K]=[],zu(e,{onFlag(i,a,l){const p=(l.length===It||i.length>1)&&U(o,i);if(!t?.(p?vt:$t,i,a)){if(p){const[F,f]=o[i],c=Lu(f,a),d=A((h,B)=>{r.push(l),B&&r.push(B),F.push(Wu(f,h||""))},"getFollowingValue");return c===void 0?d:d(c)}U(n,i)||(n[i]=[]),n[i].push(a===void 0?!0:a),r.push(l)}},onArgument:A((i,a,l)=>{t?.(Tt,e[a[0]])||(D.push(...i),l?(D[K]=i,e.splice(a[0])):r.push(a))},"onArgument")}),Gu(e,r),{flags:xt(u,o),unknownFlags:n,_:D}},"typeFlag");A((u,e,t=process.argv.slice(2))=>{const r=new Set(u.split(",").map(a=>qu(a)?.[0])),[o,n]=lu(e),D=[],i=[];return zu(t,{onFlag:A((a,l,p)=>{if(!r.has(a)||!n&&D.length>0)return;const F=Lu(o,l),f=A((c,d)=>{i.push(p),d&&i.push(d),D.push(Wu(o,c||""))},"getFollowingValue");return F===void 0?f:f(F)},"onFlag")}),Gu(t,i),n?D:D[0]},"getFlag");var Nt=Object.defineProperty,E=s((u,e)=>Nt(u,"name",{value:e,configurable:!0}),"n");const Lt=E(u=>{const e=process.stdout.columns??Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(e)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:e}:{columns:u.columns??[],stdoutColumns:u.stdoutColumns??e}},"getOptions");function Vu({onlyFirst:u=!1}={}){const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(e,u?void 0:"g")}s(Vu,"j"),E(Vu,"ansiRegex");const Wt=Vu();function Fu(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Wt,"")}s(Fu,"w"),E(Fu,"stripAnsi");function Uu(u){return u===161||u===164||u===167||u===168||u===170||u===173||u===174||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||u===198||u===208||u===215||u===216||u>=222&&u<=225||u===230||u>=232&&u<=234||u===236||u===237||u===240||u===242||u===243||u>=247&&u<=250||u===252||u===254||u===257||u===273||u===275||u===283||u===294||u===295||u===299||u>=305&&u<=307||u===312||u>=319&&u<=322||u===324||u>=328&&u<=331||u===333||u===338||u===339||u===358||u===359||u===363||u===462||u===464||u===466||u===468||u===470||u===472||u===474||u===476||u===593||u===609||u===708||u===711||u>=713&&u<=715||u===717||u===720||u>=728&&u<=731||u===733||u===735||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||u===1025||u>=1040&&u<=1103||u===1105||u===8208||u>=8211&&u<=8214||u===8216||u===8217||u===8220||u===8221||u>=8224&&u<=8226||u>=8228&&u<=8231||u===8240||u===8242||u===8243||u===8245||u===8251||u===8254||u===8308||u===8319||u>=8321&&u<=8324||u===8364||u===8451||u===8453||u===8457||u===8467||u===8470||u===8481||u===8482||u===8486||u===8491||u===8531||u===8532||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||u===8585||u>=8592&&u<=8601||u===8632||u===8633||u===8658||u===8660||u===8679||u===8704||u===8706||u===8707||u===8711||u===8712||u===8715||u===8719||u===8721||u===8725||u===8730||u>=8733&&u<=8736||u===8739||u===8741||u>=8743&&u<=8748||u===8750||u>=8756&&u<=8759||u===8764||u===8765||u===8776||u===8780||u===8786||u===8800||u===8801||u>=8804&&u<=8807||u===8810||u===8811||u===8814||u===8815||u===8834||u===8835||u===8838||u===8839||u===8853||u===8857||u===8869||u===8895||u===8978||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||u===9632||u===9633||u>=9635&&u<=9641||u===9650||u===9651||u===9654||u===9655||u===9660||u===9661||u===9664||u===9665||u>=9670&&u<=9672||u===9675||u>=9678&&u<=9681||u>=9698&&u<=9701||u===9711||u===9733||u===9734||u===9737||u===9742||u===9743||u===9756||u===9758||u===9792||u===9794||u===9824||u===9825||u>=9827&&u<=9829||u>=9831&&u<=9834||u===9836||u===9837||u===9839||u===9886||u===9887||u===9919||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||u===9955||u===9960||u===9961||u>=9963&&u<=9969||u===9972||u>=9974&&u<=9977||u===9979||u===9980||u===9982||u===9983||u===10045||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||u===65533||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||u===127375||u===127376||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109}s(Uu,"P$1"),E(Uu,"isAmbiguous");function Hu(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}s(Hu,"z$1"),E(Hu,"isFullWidth");function Yu(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u===94192||u===94193||u>=94208&&u<=100343||u>=100352&&u<=101589||u>=101631&&u<=101640||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128727||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129673||u>=129679&&u<=129734||u>=129742&&u<=129756||u>=129759&&u<=129769||u>=129776&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}s(Yu,"G$1"),E(Yu,"isWide");function Ju(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}s(Ju,"Z$1"),E(Ju,"validate");function Zu(u,{ambiguousAsWide:e=!1}={}){return Ju(u),Hu(u)||Yu(u)||e&&Uu(u)?2:1}s(Zu,"V$1"),E(Zu,"eastAsianWidth");var qt=E(()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"emojiRegex");const zt=new Intl.Segmenter,Gt=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function x(u,e={}){if(typeof u!="string"||u.length===0)return 0;const{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:r=!1}=e;if(r||(u=Fu(u)),u.length===0)return 0;let o=0;const n={ambiguousAsWide:!t};for(const{segment:D}of zt.segment(u)){const i=D.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!Gt.test(D)){if(qt().test(D)){o+=2;continue}o+=Zu(i,n)}}return o}s(x,"d"),E(x,"stringWidth");const Ku=E(u=>Math.max(...u.split(`
5
- `).map(e=>x(e))),"getLongestLineWidth"),Vt=E(u=>{const e=[];for(const t of u){const{length:r}=t,o=r-e.length;for(let n=0;n<o;n+=1)e.push(0);for(let n=0;n<r;n+=1){const D=Ku(t[n]);D>e[n]&&(e[n]=D)}}return e},"getColumnContentWidths"),Xu=/^\d+%$/,Qu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Ut=E((u,e)=>{const t=[];for(let r=0;r<u.length;r+=1){const o=e[r]??"auto";if(typeof o=="number"||o==="auto"||o==="content-width"||typeof o=="string"&&Xu.test(o)){t.push({...Qu,width:o,contentWidth:u[r]});continue}if(o&&typeof o=="object"){const n={...Qu,...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},"initColumns"),Ht=E((u,e)=>{for(const t of u){const{width:r}=t;if(r==="content-width"&&(t.width=t.contentWidth),r==="auto"){const a=Math.min(20,t.contentWidth);t.width=a,t.autoOverflow=t.contentWidth-a}if(typeof r=="string"&&Xu.test(r)){const a=Number.parseFloat(r.slice(0,-1))/100;t.width=Math.floor(e*a)-(t.paddingLeft+t.paddingRight)}const{horizontalPadding:o}=t,n=1,D=n+o;if(D>=e){const a=D-e,l=Math.ceil(t.paddingLeft/o*a),p=a-l;t.paddingLeft-=l,t.paddingRight-=p,t.horizontalPadding=t.paddingLeft+t.paddingRight}t.paddingLeftString=t.paddingLeft?" ".repeat(t.paddingLeft):"",t.paddingRightString=t.paddingRight?" ".repeat(t.paddingRight):"";const i=e-t.horizontalPadding;t.width=Math.max(Math.min(t.width,i),n)}},"resolveColumnWidths"),ue=E(()=>Object.assign([],{columns:0}),"makeRow"),Yt=E((u,e)=>{const t=[ue()];let[r]=t;for(const o of u){const n=o.width+o.horizontalPadding;r.columns+n>e&&(r=ue(),t.push(r)),r.push(o),r.columns+=n}for(const o of t){const n=o.reduce((f,c)=>f+c.width+c.horizontalPadding,0);let D=e-n;if(D===0)continue;const i=o.filter(f=>"autoOverflow"in f),a=i.filter(f=>f.autoOverflow>0),l=a.reduce((f,c)=>f+c.autoOverflow,0),p=Math.min(l,D);for(const f of a){const c=Math.floor(f.autoOverflow/l*p);f.width+=c,D-=c}const F=Math.floor(D/i.length);for(let f=0;f<i.length;f+=1){const c=i[f];f===i.length-1?c.width+=D:c.width+=F,D-=F}}return t},"balanceAuto"),Jt=E((u,e,t)=>{const r=Ut(t,e);return Ht(r,u),Yt(r,u)},"computeColumnWidths"),pu=10,ee=E((u=0)=>e=>`\x1B[${e+u}m`,"wrapAnsi16"),te=E((u=0)=>e=>`\x1B[${38+u};5;${e}m`,"wrapAnsi256"),re=E((u=0)=>(e,t,r)=>`\x1B[${38+u};2;${e};${t};${r}m`,"wrapAnsi16m"),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 Zt=Object.keys(b.color),Kt=Object.keys(b.bgColor);[...Zt,...Kt];function oe(){const u=new Map;for(const[e,t]of Object.entries(b)){for(const[r,o]of Object.entries(t))b[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},t[r]=b[r],u.set(o[0],o[1]);Object.defineProperty(b,e,{value:t,enumerable:!1})}return Object.defineProperty(b,"codes",{value:u,enumerable:!1}),b.color.close="\x1B[39m",b.bgColor.close="\x1B[49m",b.color.ansi=ee(),b.color.ansi256=te(),b.color.ansi16m=re(),b.bgColor.ansi=ee(pu),b.bgColor.ansi256=te(pu),b.bgColor.ansi16m=re(pu),Object.defineProperties(b,{rgbToAnsi256:{value:E((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),"value"),enumerable:!1},hexToRgb:{value:E(e=>{const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;r.length===3&&(r=[...r].map(n=>n+n).join(""));const o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},"value"),enumerable:!1},hexToAnsi256:{value:E(e=>b.rgbToAnsi256(...b.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value:E(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;const i=e%36;t=Math.floor(e/36)/5,r=Math.floor(i/6)/5,o=i%6/5}const n=Math.max(t,r,o)*2;if(n===0)return 30;let D=30+(Math.round(o)<<2|Math.round(r)<<1|Math.round(t));return n===2&&(D+=60),D},"value"),enumerable:!1},rgbToAnsi:{value:E((e,t,r)=>b.ansi256ToAnsi(b.rgbToAnsi256(e,t,r)),"value"),enumerable:!1},hexToAnsi:{value:E(e=>b.ansi256ToAnsi(b.hexToAnsi256(e)),"value"),enumerable:!1}}),b}s(oe,"FD"),E(oe,"assembleStyles");const Xt=oe(),X=new Set(["\x1B","\x9B"]),Qt=39,fu="\x07",ne="[",ur="]",De="m",Q=`${ur}8;;`,ie=E(u=>`${X.values().next().value}${ne}${u}${De}`,"wrapAnsiCode"),ae=E(u=>`${X.values().next().value}${Q}${u}${fu}`,"wrapAnsiHyperlink"),er=E(u=>u.split(" ").map(e=>x(e)),"wordLengths"),du=E((u,e,t)=>{const r=[...e];let o=!1,n=!1,D=x(Fu(u.at(-1)));for(const[i,a]of r.entries()){const l=x(a);if(D+l<=t?u[u.length-1]+=a:(u.push(a),D=0),X.has(a)&&(o=!0,n=r.slice(i+1,i+1+Q.length).join("")===Q),o){n?a===fu&&(o=!1,n=!1):a===De&&(o=!1);continue}D+=l,D===t&&i<r.length-1&&(u.push(""),D=0)}!D&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"wrapWord"),tr=E(u=>{const e=u.split(" ");let t=e.length;for(;t>0&&!(x(e[t-1])>0);)t--;return t===e.length?u:e.slice(0,t).join(" ")+e.slice(t).join("")},"stringVisibleTrimSpacesRight"),rr=E((u,e,t={})=>{if(t.trim!==!1&&u.trim()==="")return"";let r="",o,n;const D=er(u);let i=[""];for(const[F,f]of u.split(" ").entries()){t.trim!==!1&&(i[i.length-1]=i.at(-1).trimStart());let c=x(i.at(-1));if(F!==0&&(c>=e&&(t.wordWrap===!1||t.trim===!1)&&(i.push(""),c=0),(c>0||t.trim===!1)&&(i[i.length-1]+=" ",c++)),t.hard&&D[F]>e){const d=e-c,h=1+Math.floor((D[F]-d-1)/e);Math.floor((D[F]-1)/e)<h&&i.push(""),du(i,f,e);continue}if(c+D[F]>e&&c>0&&D[F]>0){if(t.wordWrap===!1&&c<e){du(i,f,e);continue}i.push("")}if(c+D[F]>e&&t.wordWrap===!1){du(i,f,e);continue}i[i.length-1]+=f}t.trim!==!1&&(i=i.map(F=>tr(F)));const a=i.join(`
6
- `),l=[...a];let p=0;for(const[F,f]of l.entries()){if(r+=f,X.has(f)){const{groups:d}=new RegExp(`(?:\\${ne}(?<code>\\d+)m|\\${Q}(?<uri>.*)${fu})`).exec(a.slice(p))||{groups:{}};if(d.code!==void 0){const h=Number.parseFloat(d.code);o=h===Qt?void 0:h}else d.uri!==void 0&&(n=d.uri.length===0?void 0:d.uri)}const c=Xt.codes.get(Number(o));l[F+1]===`
7
- `?(n&&(r+=ae("")),o&&c&&(r+=ie(c))):f===`
8
- `&&(o&&c&&(r+=ie(o)),n&&(r+=ae(n))),p+=f.length}return r},"exec");function se(u,e,t){return String(u).normalize().replaceAll(`\r
2
+ "use strict";var Ve=Object.defineProperty;var s=(u,e)=>Ve(u,"name",{value:e,configurable:!0});var g=require("node:path"),O=require("node:fs/promises"),fu=require("node:os"),y=require("node:process"),Ye=require("node:util"),xu=require("node:url"),He=require("node:child_process"),pu=require("node:events"),ju=require("node:stream/promises"),Je=require("node:readline/promises"),Ze=require("tasuku"),Ke=require("tty"),Su=require("node:tty"),Xe=require("process"),Qe=require("node:fs"),ut=require("fast-glob"),et=require("tar-fs"),tt=require("gunzip-maybe");function rt(u){var e=Object.create(null);return u&&Object.keys(u).forEach(function(t){if(t!=="default"){var r=Object.getOwnPropertyDescriptor(u,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:s(function(){return u[t]},"get")})}}),e.default=u,Object.freeze(e)}s(rt,"_interopNamespaceDefault");var nt=rt(Je);const ot=s(u=>({start:y.hrtime.bigint(),command:u.map(e=>Dt(Ye.stripVTControlCharacters(e))).join(" "),state:{stdout:"",stderr:"",output:"",isIterating:{},nonIterable:[!1,!1]}}),"getContext"),Dt=s(u=>/[^\w./-]/.test(u)?`'${u.replaceAll("'","'\\''")}'`:u,"getCommandPart"),it=s(({stdin:u,stdout:e,stderr:t,stdio:r=[u,e,t],env:n,preferLocal:o,cwd:D=".",...i})=>{const a=D instanceof URL?xu.fileURLToPath(D):g.resolve(D),l=n?{...y.env,...n}:void 0,c=r[0]?.string;return{...i,input:c,stdio:c===void 0?r:["pipe",...r.slice(1)],env:o?at(l??y.env,a):l,cwd:a}},"getOptions"),at=s(({Path:u="",PATH:e=u,...t},r)=>{const n=e.split(g.delimiter),o=Iu([],g.resolve(r)).map(D=>g.join(D,"node_modules/.bin")).filter(D=>!n.includes(D));return{...t,PATH:[...o,e].filter(Boolean).join(g.delimiter)}},"addLocalPath"),Iu=s((u,e)=>u.at(-1)===e?u:Iu([...u,e],g.resolve(e,"..")),"getLocalPaths"),st=s(async(u,e,t)=>await lt(u,t)?[du(u),e.map(r=>dt(r)),{...t,shell:!0}]:[u,e,t],"applyForceShell"),lt=s(async(u,{shell:e,cwd:t,env:r=y.env})=>y.platform==="win32"&&!e&&!await ct(u,t,r),"shouldForceShell"),ct=s((u,e,{Path:t="",PATH:r=t})=>Nu.some(n=>u.toLowerCase().endsWith(n))||pt(u,e,r),"isExe"),Ft={},Pu=s(u=>(...e)=>Ft[e.join("\0")]??=u(...e),"memoize"),ft=Pu(O.access),pt=Pu(async(u,e,t)=>{const r=t.split(g.delimiter).filter(Boolean).map(n=>n.replace(/^"(.*)"$/,"$1"));try{await Promise.any([e,...r].flatMap(n=>Nu.map(o=>ft(`${g.resolve(n,u)}${o}`))))}catch{return!1}return!0}),Nu=[".exe",".com"],dt=s(u=>du(du(`"${u.replaceAll(/(\\*)"/g,'$1$1\\"').replace(/(\\*)$/,"$1$1")}"`)),"escapeArgument"),du=s(u=>u.replaceAll(/([()\][%!^"`<>&|;, *?])/g,"^$1"),"escapeFile"),Et=s(async(u,{input:e},t)=>{const r=await u;e!==void 0&&r.stdin.end(e);const n=pu.once(r,"close");try{return await Promise.race([n,...r.stdio.filter(Boolean).map(o=>ht(o))]),Ct(t,Lu(r)),Wu(t)}catch(o){throw await Promise.allSettled([n]),_u(o,r,t)}},"getResult"),ht=s(async u=>{for await(const[e]of pu.on(u,"error"))if(!["ERR_STREAM_PREMATURE_CLOSE","EPIPE"].includes(e?.code))throw e},"onStreamError"),Ct=s(({command:u},{exitCode:e,signalName:t})=>{if(t!==void 0)throw new uu(`Command was terminated with ${t}: ${u}`);if(e!==void 0)throw new uu(`Command failed with exit code ${e}: ${u}`)},"checkFailure"),_u=s((u,e,t)=>Object.assign(gt(u,t),Lu(e),Wu(t)),"getResultError"),gt=s((u,{command:e})=>u instanceof uu?u:new uu(`Command failed: ${e}`,{cause:u}),"getErrorInstance");class uu extends Error{static{s(this,"SubprocessError")}name="SubprocessError"}const Lu=s(({exitCode:u,signalCode:e})=>({...u<1?{}:{exitCode:u},...e===null?{}:{signalName:e}}),"getErrorOutput"),Wu=s(({state:{stdout:u,stderr:e,output:t},command:r,start:n})=>({stdout:Eu(u),stderr:Eu(e),output:Eu(t),command:r,durationMs:Number(y.hrtime.bigint()-n)/1e6}),"getOutputs"),Eu=s(u=>u.at(-1)===`
3
+ `?u.slice(0,u.at(-2)==="\r"?-2:-1):u,"getOutput"),mt=s(async(u,e,t,r)=>{try{["node","node.exe"].includes(u.toLowerCase())&&(u=y.execPath,e=[...y.execArgv.filter(o=>!o.startsWith("--inspect")),...e]),[u,e,t]=await st(u,e,t),[u,e,t]=Bt(u,e,t);const n=He.spawn(u,e,t);return zu(n.stdout,r,"stdout"),zu(n.stderr,r,"stderr"),n.once("error",()=>{}),await pu.once(n,"spawn"),n}catch(n){throw _u(n,{},r)}},"spawnSubprocess"),Bt=s((u,e,t)=>t.shell&&e.length>0?[[u,...e].join(" "),[],t]:[u,e,t],"concatenateShell"),zu=s((u,{state:e},t)=>{u&&(u.setEncoding("utf8"),e.isIterating[t]||(e.isIterating[t]=!1,u.on("data",r=>{e[t]+=r,e.output+=r})))},"bufferOutput"),wt=s(async u=>{const[[e,t]]=await Promise.all([Promise.allSettled(u),bt(u)]);if(t.reason)throw t.reason.pipedFrom=e.reason??e.value,t.reason;if(e.reason)throw e.reason;return{...t.value,pipedFrom:e.value}},"handlePipe"),bt=s(async u=>{try{const[{stdout:e},{stdin:t}]=await Promise.all(u.map(({nodeChildProcess:r})=>r));if(t===null)throw new Error('The "stdin" option must be set on the first "spawn()" call in the pipeline.');if(e===null)throw new Error('The "stdout" option must be set on the last "spawn()" call in the pipeline.');ju.pipeline(e,t).catch(()=>{})}catch(e){throw await Promise.allSettled(u.map(({nodeChildProcess:t})=>At(t))),e}},"pipeStreams"),At=s(async u=>{const{stdin:e}=await u;e.end()},"closeStdin"),Gu=s(async function*(u,{state:e},t,r){if(e.isIterating[t]===!1)throw new Error(`The subprocess must be iterated right away, for example:
4
+ for await (const line of spawn(...)) { ... }`);e.isIterating[t]=!0;try{const{[t]:n}=await u.nodeChildProcess;if(!n){e.nonIterable[r]=!0;const o=e.nonIterable.every(Boolean)?"either the option `stdout` or `stderr`":`the option \`${t}\``;throw new TypeError(`The subprocess cannot be iterated unless ${o} is 'pipe'.`)}yt(u),yield*nt.createInterface({input:n})}finally{await u}},"lineIterator"),yt=s(async u=>{try{await u}catch{}},"handleErrors"),vt=s(async function*({state:u},...e){try{let t=[];for(;e.length>0;){t=e.map((i,a)=>t[a]??$t(i,a,u));const[{value:r,done:n},o]=await Promise.race(t.map((i,a)=>Promise.all([i,a]))),[D]=e.splice(o,1);t.splice(o,1),n||(e.push(D),yield r)}}finally{await Promise.all(e.map(t=>t.return()))}},"combineAsyncIterators"),$t=s(async(u,e,{nonIterable:t})=>{try{return await u.next()}catch(r){return Tt(t,e)?u.return():u.throw(r)}},"getNext"),Tt=s((u,e)=>u.every(Boolean)?e!==u.length-1:u[e],"shouldIgnoreError");function M(u,e,t,r){const[n=[],o={}]=Array.isArray(e)?[e,t]:[[],e],D=ot([u,...n]),i=it(o),a=mt(u,n,i,D);let l=Et(a,i,D);Object.assign(l,{nodeChildProcess:a}),l=r?wt([r,l]):l;const c=Gu(l,D,"stdout",0),d=Gu(l,D,"stderr",1);return Object.assign(l,{nodeChildProcess:a,stdout:c,stderr:d,[Symbol.asyncIterator]:()=>vt(D,c,d),pipe:s((f,F,p)=>M(f,F,p,l),"pipe")})}s(M,"spawn");var Ot=Object.defineProperty,$=s((u,e)=>Ot(u,"name",{value:e,configurable:!0}),"a");const Mt="known-flag",kt="unknown-flag",Rt="argument",xt=/\B([A-Z])/g,jt=$(u=>u.replaceAll(xt,"-$1").toLowerCase(),"camelToKebab"),{hasOwnProperty:St}=Object.prototype,J=$((u,e)=>St.call(u,e),"hasOwn"),hu=$(u=>typeof u=="function"?[u,!1]:Array.isArray(u)?[u[0],!0]:hu(u.type),"parseFlagType"),qu=$((u,e)=>u===Boolean?e!=="false":e,"normalizeBoolean"),Uu=$((u,e)=>typeof e=="boolean"?e:u===Number&&e===""?Number.NaN:u(e),"applyParser"),It=/[\s.:=]/,Pt=$(u=>{const e=`Flag name "${u}"`;if(u.length===0)throw new Error(`${e} cannot be empty`);if(u.length===1)throw new Error(`${e} must be longer than a character`);const t=u.match(It);if(t)throw new Error(`${e} cannot contain "${t?.[0]}"`)},"validateFlagName"),Cu=$((u,e,t)=>{if(J(u,e))throw new Error(`Duplicate flags named "${e}"`);u[e]=t},"setFlag"),Nt=$(u=>{const e={};for(const t in u){if(!J(u,t))continue;Pt(t);const r=u[t],n=[[],...hu(r),r];Cu(e,t,n);const o=jt(t);if(t!==o&&Cu(e,o,n),"alias"in r&&typeof r.alias=="string"){const{alias:D}=r,i=`Flag alias "${D}" for flag "${t}"`;if(D.length===0)throw new Error(`${i} cannot be empty`);if(D.length>1)throw new Error(`${i} must be a single character`);Cu(e,D,n)}}return e},"createRegistry"),_t=$((u,e)=>{const t={};for(const r in u){if(!J(u,r))continue;const[n,,o,D]=e[r];if(n.length===0&&"default"in D){let{default:i}=D;typeof i=="function"&&(i=i()),t[r]=i}else t[r]=o?n:n.pop()}return t},"finalizeFlags"),eu="--",Lt=3,Wt=/^-{1,2}\w/,Vu=$(u=>{if(!Wt.test(u))return;const e=!u.startsWith(eu);let t=u.slice(e?1:2),r,n=-1;for(const o of["=",":","."]){const D=t.indexOf(o);D!==-1&&(n===-1||D<n)&&(n=D)}return n!==-1&&(r=t.slice(n+1),t=t.slice(0,n)),[t,r,e]},"parseFlagArgv"),Yu=$((u,{onFlag:e,onArgument:t})=>{let r;const n=$((o,D)=>{if(typeof r!="function")return!0;r(o,D),r=void 0},"triggerValueCallback");for(let o=0;o<u.length;o+=1){const D=u[o];if(D===eu){n();const a=u.slice(o+1);t?.(a,[o],!0);break}const i=Vu(D);if(i){if(n(),!e)continue;const[a,l,c]=i;if(c)for(let d=0;d<a.length;d+=1){n();const f=d===a.length-1;r=e(a[d],f?l:void 0,[o,d+1,f])}else r=e(a,l,[o])}else n(D,[o])&&t?.([D],[o])}n()},"argvIterator"),Hu=$((u,e)=>{for(let t=e.length-1;t>=0;t-=1){const[r,n,o]=e[t];if(n){const D=u[r];let i=D.slice(0,n);if(o||(i+=D.slice(n+1)),i!=="-"){u[r]=i;continue}}u.splice(r,1)}},"spliceFromArgv"),zt=$((u,e=process.argv.slice(2),{ignore:t}={})=>{const r=[],n=Nt(u),o={},D=[];return D[eu]=[],Yu(e,{onFlag(i,a,l){const c=(l.length===Lt||i.length>1)&&J(n,i);if(!t?.(c?Mt:kt,i,a)){if(c){const[d,f]=n[i],F=qu(f,a),p=$((E,B)=>{r.push(l),B&&r.push(B),d.push(Uu(f,E||""))},"getFollowingValue");return F===void 0?p:p(F)}J(o,i)||(o[i]=[]),o[i].push(a===void 0?!0:a),r.push(l)}},onArgument:$((i,a,l)=>{t?.(Rt,e[a[0]])||(D.push(...i),l?(D[eu]=i,e.splice(a[0])):r.push(a))},"onArgument")}),Hu(e,r),{flags:_t(u,n),unknownFlags:o,_:D}},"typeFlag");$((u,e,t=process.argv.slice(2))=>{const r=new Set(u.split(",").map(a=>Vu(a)?.[0])),[n,o]=hu(e),D=[],i=[];return Yu(t,{onFlag:$((a,l,c)=>{if(!r.has(a)||!o&&D.length>0)return;const d=qu(n,l),f=$((F,p)=>{i.push(c),p&&i.push(p),D.push(Uu(n,F||""))},"getFollowingValue");return d===void 0?f:f(d)},"onFlag")}),Hu(t,i),o?D:D[0]},"getFlag");var Gt=Object.defineProperty,h=s((u,e)=>Gt(u,"name",{value:e,configurable:!0}),"n");const qt=h(u=>{const e=process.stdout.columns??Number.POSITIVE_INFINITY;return typeof u=="function"&&(u=u(e)),u||(u={}),Array.isArray(u)?{columns:u,stdoutColumns:e}:{columns:u.columns??[],stdoutColumns:u.stdoutColumns??e}},"getOptions");function Ju({onlyFirst:u=!1}={}){const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(e,u?void 0:"g")}s(Ju,"j"),h(Ju,"ansiRegex");const Ut=Ju();function gu(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Ut,"")}s(gu,"w"),h(gu,"stripAnsi");function Zu(u){return u===161||u===164||u===167||u===168||u===170||u===173||u===174||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||u===198||u===208||u===215||u===216||u>=222&&u<=225||u===230||u>=232&&u<=234||u===236||u===237||u===240||u===242||u===243||u>=247&&u<=250||u===252||u===254||u===257||u===273||u===275||u===283||u===294||u===295||u===299||u>=305&&u<=307||u===312||u>=319&&u<=322||u===324||u>=328&&u<=331||u===333||u===338||u===339||u===358||u===359||u===363||u===462||u===464||u===466||u===468||u===470||u===472||u===474||u===476||u===593||u===609||u===708||u===711||u>=713&&u<=715||u===717||u===720||u>=728&&u<=731||u===733||u===735||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||u===1025||u>=1040&&u<=1103||u===1105||u===8208||u>=8211&&u<=8214||u===8216||u===8217||u===8220||u===8221||u>=8224&&u<=8226||u>=8228&&u<=8231||u===8240||u===8242||u===8243||u===8245||u===8251||u===8254||u===8308||u===8319||u>=8321&&u<=8324||u===8364||u===8451||u===8453||u===8457||u===8467||u===8470||u===8481||u===8482||u===8486||u===8491||u===8531||u===8532||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||u===8585||u>=8592&&u<=8601||u===8632||u===8633||u===8658||u===8660||u===8679||u===8704||u===8706||u===8707||u===8711||u===8712||u===8715||u===8719||u===8721||u===8725||u===8730||u>=8733&&u<=8736||u===8739||u===8741||u>=8743&&u<=8748||u===8750||u>=8756&&u<=8759||u===8764||u===8765||u===8776||u===8780||u===8786||u===8800||u===8801||u>=8804&&u<=8807||u===8810||u===8811||u===8814||u===8815||u===8834||u===8835||u===8838||u===8839||u===8853||u===8857||u===8869||u===8895||u===8978||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||u===9632||u===9633||u>=9635&&u<=9641||u===9650||u===9651||u===9654||u===9655||u===9660||u===9661||u===9664||u===9665||u>=9670&&u<=9672||u===9675||u>=9678&&u<=9681||u>=9698&&u<=9701||u===9711||u===9733||u===9734||u===9737||u===9742||u===9743||u===9756||u===9758||u===9792||u===9794||u===9824||u===9825||u>=9827&&u<=9829||u>=9831&&u<=9834||u===9836||u===9837||u===9839||u===9886||u===9887||u===9919||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||u===9955||u===9960||u===9961||u>=9963&&u<=9969||u===9972||u>=9974&&u<=9977||u===9979||u===9980||u===9982||u===9983||u===10045||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||u===65533||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||u===127375||u===127376||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109}s(Zu,"P$1"),h(Zu,"isAmbiguous");function Ku(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}s(Ku,"z$1"),h(Ku,"isFullWidth");function Xu(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u===94192||u===94193||u>=94208&&u<=100343||u>=100352&&u<=101589||u>=101631&&u<=101640||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128727||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129673||u>=129679&&u<=129734||u>=129742&&u<=129756||u>=129759&&u<=129769||u>=129776&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}s(Xu,"G$1"),h(Xu,"isWide");function Qu(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}s(Qu,"Z$1"),h(Qu,"validate");function ue(u,{ambiguousAsWide:e=!1}={}){return Qu(u),Ku(u)||Xu(u)||e&&Zu(u)?2:1}s(ue,"V$1"),h(ue,"eastAsianWidth");var Vt=h(()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,"emojiRegex");const Yt=new Intl.Segmenter,Ht=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function P(u,e={}){if(typeof u!="string"||u.length===0)return 0;const{ambiguousIsNarrow:t=!0,countAnsiEscapeCodes:r=!1}=e;if(r||(u=gu(u)),u.length===0)return 0;let n=0;const o={ambiguousAsWide:!t};for(const{segment:D}of Yt.segment(u)){const i=D.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!Ht.test(D)){if(Vt().test(D)){n+=2;continue}n+=ue(i,o)}}return n}s(P,"d"),h(P,"stringWidth");const ee=h(u=>Math.max(...u.split(`
5
+ `).map(e=>P(e))),"getLongestLineWidth"),Jt=h(u=>{const e=[];for(const t of u){const{length:r}=t,n=r-e.length;for(let o=0;o<n;o+=1)e.push(0);for(let o=0;o<r;o+=1){const D=ee(t[o]);D>e[o]&&(e[o]=D)}}return e},"getColumnContentWidths"),te=/^\d+%$/,re={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Zt=h((u,e)=>{const t=[];for(let r=0;r<u.length;r+=1){const n=e[r]??"auto";if(typeof n=="number"||n==="auto"||n==="content-width"||typeof n=="string"&&te.test(n)){t.push({...re,width:n,contentWidth:u[r]});continue}if(n&&typeof n=="object"){const o={...re,...n,contentWidth:u[r]};o.horizontalPadding=o.paddingLeft+o.paddingRight,t.push(o);continue}throw new Error(`Invalid column width: ${JSON.stringify(n)}`)}return t},"initColumns"),Kt=h((u,e)=>{for(const t of u){const{width:r}=t;if(r==="content-width"&&(t.width=t.contentWidth),r==="auto"){const a=Math.min(20,t.contentWidth);t.width=a,t.autoOverflow=t.contentWidth-a}if(typeof r=="string"&&te.test(r)){const a=Number.parseFloat(r.slice(0,-1))/100;t.width=Math.floor(e*a)-(t.paddingLeft+t.paddingRight)}const{horizontalPadding:n}=t,o=1,D=o+n;if(D>=e){const a=D-e,l=Math.ceil(t.paddingLeft/n*a),c=a-l;t.paddingLeft-=l,t.paddingRight-=c,t.horizontalPadding=t.paddingLeft+t.paddingRight}t.paddingLeftString=t.paddingLeft?" ".repeat(t.paddingLeft):"",t.paddingRightString=t.paddingRight?" ".repeat(t.paddingRight):"";const i=e-t.horizontalPadding;t.width=Math.max(Math.min(t.width,i),o)}},"resolveColumnWidths"),ne=h(()=>Object.assign([],{columns:0}),"makeRow"),Xt=h((u,e)=>{const t=[ne()];let[r]=t;for(const n of u){const o=n.width+n.horizontalPadding;r.columns+o>e&&(r=ne(),t.push(r)),r.push(n),r.columns+=o}for(const n of t){const o=n.reduce((f,F)=>f+F.width+F.horizontalPadding,0);let D=e-o;if(D===0)continue;const i=n.filter(f=>"autoOverflow"in f),a=i.filter(f=>f.autoOverflow>0),l=a.reduce((f,F)=>f+F.autoOverflow,0),c=Math.min(l,D);for(const f of a){const F=Math.floor(f.autoOverflow/l*c);f.width+=F,D-=F}const d=Math.floor(D/i.length);for(let f=0;f<i.length;f+=1){const F=i[f];f===i.length-1?F.width+=D:F.width+=d,D-=d}}return t},"balanceAuto"),Qt=h((u,e,t)=>{const r=Zt(t,e);return Kt(r,u),Xt(r,u)},"computeColumnWidths"),mu=10,oe=h((u=0)=>e=>`\x1B[${e+u}m`,"wrapAnsi16"),De=h((u=0)=>e=>`\x1B[${38+u};5;${e}m`,"wrapAnsi256"),ie=h((u=0)=>(e,t,r)=>`\x1B[${38+u};2;${e};${t};${r}m`,"wrapAnsi16m"),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 ur=Object.keys(b.color),er=Object.keys(b.bgColor);[...ur,...er];function ae(){const u=new Map;for(const[e,t]of Object.entries(b)){for(const[r,n]of Object.entries(t))b[r]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},t[r]=b[r],u.set(n[0],n[1]);Object.defineProperty(b,e,{value:t,enumerable:!1})}return Object.defineProperty(b,"codes",{value:u,enumerable:!1}),b.color.close="\x1B[39m",b.bgColor.close="\x1B[49m",b.color.ansi=oe(),b.color.ansi256=De(),b.color.ansi16m=ie(),b.bgColor.ansi=oe(mu),b.bgColor.ansi256=De(mu),b.bgColor.ansi16m=ie(mu),Object.defineProperties(b,{rgbToAnsi256:{value:h((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),"value"),enumerable:!1},hexToRgb:{value:h(e=>{const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;r.length===3&&(r=[...r].map(o=>o+o).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,n&255]},"value"),enumerable:!1},hexToAnsi256:{value:h(e=>b.rgbToAnsi256(...b.hexToRgb(e)),"value"),enumerable:!1},ansi256ToAnsi:{value:h(e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,r,n;if(e>=232)t=((e-232)*10+8)/255,r=t,n=t;else{e-=16;const i=e%36;t=Math.floor(e/36)/5,r=Math.floor(i/6)/5,n=i%6/5}const o=Math.max(t,r,n)*2;if(o===0)return 30;let D=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return o===2&&(D+=60),D},"value"),enumerable:!1},rgbToAnsi:{value:h((e,t,r)=>b.ansi256ToAnsi(b.rgbToAnsi256(e,t,r)),"value"),enumerable:!1},hexToAnsi:{value:h(e=>b.ansi256ToAnsi(b.hexToAnsi256(e)),"value"),enumerable:!1}}),b}s(ae,"FD"),h(ae,"assembleStyles");const tr=ae(),tu=new Set(["\x1B","\x9B"]),rr=39,Bu="\x07",se="[",nr="]",le="m",ru=`${nr}8;;`,ce=h(u=>`${tu.values().next().value}${se}${u}${le}`,"wrapAnsiCode"),Fe=h(u=>`${tu.values().next().value}${ru}${u}${Bu}`,"wrapAnsiHyperlink"),or=h(u=>u.split(" ").map(e=>P(e)),"wordLengths"),wu=h((u,e,t)=>{const r=[...e];let n=!1,o=!1,D=P(gu(u.at(-1)));for(const[i,a]of r.entries()){const l=P(a);if(D+l<=t?u[u.length-1]+=a:(u.push(a),D=0),tu.has(a)&&(n=!0,o=r.slice(i+1,i+1+ru.length).join("")===ru),n){o?a===Bu&&(n=!1,o=!1):a===le&&(n=!1);continue}D+=l,D===t&&i<r.length-1&&(u.push(""),D=0)}!D&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},"wrapWord"),Dr=h(u=>{const e=u.split(" ");let t=e.length;for(;t>0&&!(P(e[t-1])>0);)t--;return t===e.length?u:e.slice(0,t).join(" ")+e.slice(t).join("")},"stringVisibleTrimSpacesRight"),ir=h((u,e,t={})=>{if(t.trim!==!1&&u.trim()==="")return"";let r="",n,o;const D=or(u);let i=[""];for(const[d,f]of u.split(" ").entries()){t.trim!==!1&&(i[i.length-1]=i.at(-1).trimStart());let F=P(i.at(-1));if(d!==0&&(F>=e&&(t.wordWrap===!1||t.trim===!1)&&(i.push(""),F=0),(F>0||t.trim===!1)&&(i[i.length-1]+=" ",F++)),t.hard&&D[d]>e){const p=e-F,E=1+Math.floor((D[d]-p-1)/e);Math.floor((D[d]-1)/e)<E&&i.push(""),wu(i,f,e);continue}if(F+D[d]>e&&F>0&&D[d]>0){if(t.wordWrap===!1&&F<e){wu(i,f,e);continue}i.push("")}if(F+D[d]>e&&t.wordWrap===!1){wu(i,f,e);continue}i[i.length-1]+=f}t.trim!==!1&&(i=i.map(d=>Dr(d)));const a=i.join(`
6
+ `),l=[...a];let c=0;for(const[d,f]of l.entries()){if(r+=f,tu.has(f)){const{groups:p}=new RegExp(`(?:\\${se}(?<code>\\d+)m|\\${ru}(?<uri>.*)${Bu})`).exec(a.slice(c))||{groups:{}};if(p.code!==void 0){const E=Number.parseFloat(p.code);n=E===rr?void 0:E}else p.uri!==void 0&&(o=p.uri.length===0?void 0:p.uri)}const F=tr.codes.get(Number(n));l[d+1]===`
7
+ `?(o&&(r+=Fe("")),n&&F&&(r+=ce(F))):f===`
8
+ `&&(n&&F&&(r+=ce(n)),o&&(r+=Fe(o))),c+=f.length}return r},"exec");function fe(u,e,t){return String(u).normalize().replaceAll(`\r
9
9
  `,`
10
10
  `).split(`
11
- `).map(r=>rr(r,e,t)).join(`
12
- `)}s(se,"BD"),E(se,"wrapAnsi");const le=E(u=>Array.from({length:u}).fill(""),"emptyLines"),or=E((u,e)=>{const t=[];let r=0;for(const o of u){let n=0;const D=o.map(a=>{let l=e[r]??"";r+=1,a.preprocess&&(l=a.preprocess(l)),Ku(l)>a.width&&(l=se(l,a.width,{hard:!0}));let p=l.split(`
13
- `);if(a.postprocess){const{postprocess:F}=a;p=p.map((f,c)=>F.call(a,f,c))}return a.paddingTop&&p.unshift(...le(a.paddingTop)),a.paddingBottom&&p.push(...le(a.paddingBottom)),p.length>n&&(n=p.length),{...a,lines:p}}),i=[];for(let a=0;a<n;a+=1){const l=D.map(p=>{const F=p.lines[a]??"",f=Number.isFinite(p.width)?" ".repeat(p.width-x(F)):"";let c=p.paddingLeftString;return p.align==="right"&&(c+=f),c+=F,p.align==="left"&&(c+=f),c+p.paddingRightString}).join("");i.push(l)}t.push(i.join(`
11
+ `).map(r=>ir(r,e,t)).join(`
12
+ `)}s(fe,"BD"),h(fe,"wrapAnsi");const pe=h(u=>Array.from({length:u}).fill(""),"emptyLines"),ar=h((u,e)=>{const t=[];let r=0;for(const n of u){let o=0;const D=n.map(a=>{let l=e[r]??"";r+=1,a.preprocess&&(l=a.preprocess(l)),ee(l)>a.width&&(l=fe(l,a.width,{hard:!0}));let c=l.split(`
13
+ `);if(a.postprocess){const{postprocess:d}=a;c=c.map((f,F)=>d.call(a,f,F))}return a.paddingTop&&c.unshift(...pe(a.paddingTop)),a.paddingBottom&&c.push(...pe(a.paddingBottom)),c.length>o&&(o=c.length),{...a,lines:c}}),i=[];for(let a=0;a<o;a+=1){const l=D.map(c=>{const d=c.lines[a]??"",f=Number.isFinite(c.width)?" ".repeat(c.width-P(d)):"";let F=c.paddingLeftString;return c.align==="right"&&(F+=f),F+=d,c.align==="left"&&(F+=f),F+c.paddingRightString}).join("");i.push(l)}t.push(i.join(`
14
14
  `))}return t.join(`
15
- `)},"renderRow"),nr=E((u,e)=>{if(!u||u.length===0)return"";const t=Vt(u),r=t.length;if(r===0)return"";const{stdoutColumns:o,columns:n}=Lt(e);if(n.length>r)throw new Error(`${n.length} columns defined, but only ${r} columns found`);const D=Jt(o,n,t);return u.map(i=>or(D,i)).join(`
16
- `)},"terminalColumns"),Dr=["<",">","=",">=","<="],ir=E(u=>{if(!Dr.includes(u))throw new TypeError(`Invalid breakpoint operator: ${u}`)},"assertOperator"),ar=E(u=>{const e=Object.keys(u).map(t=>{const[r,o]=t.split(" ");ir(r);const n=Number.parseInt(o,10);if(Number.isNaN(n))throw new TypeError(`Invalid breakpoint value: ${o}`);const D=u[t];return{operator:r,breakpoint:n,value:D}}).sort((t,r)=>r.breakpoint-t.breakpoint);return t=>e.find(({operator:r,breakpoint:o})=>r==="="&&t===o||r===">"&&t>o||r==="<"&&t<o||r===">="&&t>=o||r==="<="&&t<=o)?.value},"breakpoints");var sr=Object.defineProperty,m=s((u,e)=>sr(u,"name",{value:e,configurable:!0}),"o");const j=new Uint32Array(65536),lr=m((u,e)=>{const t=u.length,r=e.length,o=1<<t-1;let n=-1,D=0,i=t,a=t;for(;a--;)j[u.charCodeAt(a)]|=1<<a;for(a=0;a<r;a++){let l=j[e.charCodeAt(a)];const p=l|D;l|=(l&n)+n^n,D|=~(l|n),n&=l,D&o&&i++,n&o&&i--,D=D<<1|1,n=n<<1|~(p|D),D&=p}for(a=t;a--;)j[u.charCodeAt(a)]=0;return i},"myers_32"),cr=m((u,e)=>{const t=e.length,r=u.length,o=[],n=[],D=Math.ceil(t/32),i=Math.ceil(r/32);for(let d=0;d<D;d++)n[d]=-1,o[d]=0;let a=0;for(;a<i-1;a++){let d=0,h=-1;const B=a*32,y=Math.min(32,r)+B;for(let C=B;C<y;C++)j[u.charCodeAt(C)]|=1<<C;for(let C=0;C<t;C++){const w=j[e.charCodeAt(C)],v=n[C/32|0]>>>C&1,O=o[C/32|0]>>>C&1,G=w|d,V=((w|O)&h)+h^h|w|O;let S=d|~(V|h),I=h&V;S>>>31^v&&(n[C/32|0]^=1<<C),I>>>31^O&&(o[C/32|0]^=1<<C),S=S<<1|v,I=I<<1|O,h=I|~(G|S),d=S&G}for(let C=B;C<y;C++)j[u.charCodeAt(C)]=0}let l=0,p=-1;const F=a*32,f=Math.min(32,r-F)+F;for(let d=F;d<f;d++)j[u.charCodeAt(d)]|=1<<d;let c=r;for(let d=0;d<t;d++){const h=j[e.charCodeAt(d)],B=n[d/32|0]>>>d&1,y=o[d/32|0]>>>d&1,C=h|l,w=((h|y)&p)+p^p|h|y;let v=l|~(w|p),O=p&w;c+=v>>>r-1&1,c-=O>>>r-1&1,v>>>31^B&&(n[d/32|0]^=1<<d),O>>>31^y&&(o[d/32|0]^=1<<d),v=v<<1|B,O=O<<1|y,p=O|~(C|v),l=v&C}for(let d=F;d<f;d++)j[u.charCodeAt(d)]=0;return c},"myers_x"),ce=m((u,e)=>{if(u.length<e.length){const t=e;e=u,u=t}return e.length===0?u.length:u.length<=32?lr(u,e):cr(u,e)},"distance"),Fr=m((u,e)=>{let t=1/0,r=0;for(let o=0;o<e.length;o++){const n=ce(u,e[o]);n<t&&(t=n,r=o)}return e[r]},"closest"),pr=m(u=>u.replaceAll(/[\W_]([a-z\d])?/gi,(e,t)=>t?t.toUpperCase():""),"camelCase"),fr=m(u=>u.replaceAll(/\B([A-Z])/g,"-$1").toLowerCase(),"kebabCase"),dr={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:m(u=>u.trim(),"preprocess")},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function Fe(u){let e=!1;return{type:"table",data:{tableData:Object.keys(u).sort((t,r)=>t.localeCompare(r)).map(t=>{const r=u[t],o="alias"in r;return o&&(e=!0),{name:t,flag:r,flagFormatted:`--${fr(t)}`,aliasesEnabled:e,aliasFormatted:o?`-${r.alias}`:void 0}}).map(t=>(t.aliasesEnabled=e,[{type:"flagName",data:t},{type:"flagDescription",data:t}])),tableBreakpoints:dr}}}s(Fe,"z"),m(Fe,"renderFlags");const pe=m(u=>!u||(u.version??(u.help?u.help.version:void 0)),"getVersion"),fe=m(u=>{const e="parent"in u&&u.parent?.name;return(e?`${e} `:"")+u.name},"getName");function de(u){const e=[];u.name&&e.push(fe(u));const t=pe(u)??("parent"in u&&pe(u.parent));if(t&&e.push(`v${t}`),e.length!==0)return{id:"name",type:"text",data:`${e.join(" ")}
17
- `}}s(de,"K"),m(de,"getNameAndVersion");function he(u){const{help:e}=u;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
18
- `}}s(he,"Z"),m(he,"getDescription");function Ee(u){const e=u.help||{};if("usage"in e)return e.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(e.usage)?e.usage.join(`
19
- `):e.usage}}:void 0;if(u.name){const t=[],r=[fe(u)];if(u.flags&&Object.keys(u.flags).length>0&&r.push("[flags...]"),u.parameters&&u.parameters.length>0){const{parameters:o}=u,n=o.indexOf("--"),D=n!==-1&&o.slice(n+1).some(i=>i.startsWith("<"));r.push(o.map(i=>i!=="--"?i:D?"--":"[--]").join(" "))}if(r.length>1&&t.push(r.join(" ")),"commands"in u&&u.commands?.length&&t.push(`${u.name} <command>`),t.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:t.join(`
20
- `)}}}}s(Ee,"G"),m(Ee,"getUsage");function Ce(u){return!("commands"in u)||!u.commands?.length?void 0:{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u.commands.map(e=>{const{help:t}=e.options;return[e.options.name,typeof t=="object"&&t.description||""]}),tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}s(Ce,"Q"),m(Ce,"getCommands");function ge(u){if(!(!u.flags||Object.keys(u.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Fe(u.flags),indentBody:0}}}s(ge,"X"),m(ge,"getFlags");function me(u){const{help:e}=u;if(!e||!e.examples||e.examples.length===0)return;let{examples:t}=e;if(Array.isArray(t)&&(t=t.join(`
21
- `)),t)return{id:"examples",type:"section",data:{title:"Examples:",body:t}}}s(me,"Y"),m(me,"getExamples");function Be(u){if(!("alias"in u)||!u.alias)return;const{alias:e}=u;return{id:"aliases",type:"section",data:{title:"Aliases:",body:Array.isArray(e)?e.join(", "):e}}}s(Be,"ee"),m(Be,"getAliases");const hr=m(u=>[de,he,Ee,Ce,ge,me,Be].map(e=>e(u)).filter(Boolean),"generateHelp"),Er=Mu.WriteStream.prototype.hasColors();class Cr{static{s(this,"ne")}static{m(this,"Renderers")}text(e){return e}bold(e){return Er?`\x1B[1m${e}\x1B[22m`:e.toLocaleUpperCase()}indentText({text:e,spaces:t}){return e.replaceAll(/^/gm," ".repeat(t))}heading(e){return this.bold(e)}section({title:e,body:t,indentBody:r=2}){return`${(e?`${this.heading(e)}
15
+ `)},"renderRow"),sr=h((u,e)=>{if(!u||u.length===0)return"";const t=Jt(u),r=t.length;if(r===0)return"";const{stdoutColumns:n,columns:o}=qt(e);if(o.length>r)throw new Error(`${o.length} columns defined, but only ${r} columns found`);const D=Qt(n,o,t);return u.map(i=>ar(D,i)).join(`
16
+ `)},"terminalColumns"),lr=["<",">","=",">=","<="],cr=h(u=>{if(!lr.includes(u))throw new TypeError(`Invalid breakpoint operator: ${u}`)},"assertOperator"),Fr=h(u=>{const e=Object.keys(u).map(t=>{const[r,n]=t.split(" ");cr(r);const o=Number.parseInt(n,10);if(Number.isNaN(o))throw new TypeError(`Invalid breakpoint value: ${n}`);const D=u[t];return{operator:r,breakpoint:o,value:D}}).sort((t,r)=>r.breakpoint-t.breakpoint);return t=>e.find(({operator:r,breakpoint:n})=>r==="="&&t===n||r===">"&&t>n||r==="<"&&t<n||r===">="&&t>=n||r==="<="&&t<=n)?.value},"breakpoints");var fr=Object.defineProperty,m=s((u,e)=>fr(u,"name",{value:e,configurable:!0}),"o");const S=new Uint32Array(65536),pr=m((u,e)=>{const t=u.length,r=e.length,n=1<<t-1;let o=-1,D=0,i=t,a=t;for(;a--;)S[u.charCodeAt(a)]|=1<<a;for(a=0;a<r;a++){let l=S[e.charCodeAt(a)];const c=l|D;l|=(l&o)+o^o,D|=~(l|o),o&=l,D&n&&i++,o&n&&i--,D=D<<1|1,o=o<<1|~(c|D),D&=c}for(a=t;a--;)S[u.charCodeAt(a)]=0;return i},"myers_32"),dr=m((u,e)=>{const t=e.length,r=u.length,n=[],o=[],D=Math.ceil(t/32),i=Math.ceil(r/32);for(let p=0;p<D;p++)o[p]=-1,n[p]=0;let a=0;for(;a<i-1;a++){let p=0,E=-1;const B=a*32,v=Math.min(32,r)+B;for(let C=B;C<v;C++)S[u.charCodeAt(C)]|=1<<C;for(let C=0;C<t;C++){const w=S[e.charCodeAt(C)],T=o[C/32|0]>>>C&1,k=n[C/32|0]>>>C&1,Y=w|p,H=((w|k)&E)+E^E|w|k;let I=p|~(H|E),N=E&H;I>>>31^T&&(o[C/32|0]^=1<<C),N>>>31^k&&(n[C/32|0]^=1<<C),I=I<<1|T,N=N<<1|k,E=N|~(Y|I),p=I&Y}for(let C=B;C<v;C++)S[u.charCodeAt(C)]=0}let l=0,c=-1;const d=a*32,f=Math.min(32,r-d)+d;for(let p=d;p<f;p++)S[u.charCodeAt(p)]|=1<<p;let F=r;for(let p=0;p<t;p++){const E=S[e.charCodeAt(p)],B=o[p/32|0]>>>p&1,v=n[p/32|0]>>>p&1,C=E|l,w=((E|v)&c)+c^c|E|v;let T=l|~(w|c),k=c&w;F+=T>>>r-1&1,F-=k>>>r-1&1,T>>>31^B&&(o[p/32|0]^=1<<p),k>>>31^v&&(n[p/32|0]^=1<<p),T=T<<1|B,k=k<<1|v,c=k|~(C|T),l=T&C}for(let p=d;p<f;p++)S[u.charCodeAt(p)]=0;return F},"myers_x"),de=m((u,e)=>{if(u.length<e.length){const t=e;e=u,u=t}return e.length===0?u.length:u.length<=32?pr(u,e):dr(u,e)},"distance"),Er=m((u,e)=>{let t=1/0,r=0;for(let n=0;n<e.length;n++){const o=de(u,e[n]);o<t&&(t=o,r=n)}return e[r]},"closest"),hr=m(u=>u.replaceAll(/[\W_]([a-z\d])?/gi,(e,t)=>t?t.toUpperCase():""),"camelCase"),Cr=m(u=>u.replaceAll(/\B([A-Z])/g,"-$1").toLowerCase(),"kebabCase"),gr={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:m(u=>u.trim(),"preprocess")},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function Ee(u){let e=!1;return{type:"table",data:{tableData:Object.keys(u).sort((t,r)=>t.localeCompare(r)).map(t=>{const r=u[t],n="alias"in r;return n&&(e=!0),{name:t,flag:r,flagFormatted:`--${Cr(t)}`,aliasesEnabled:e,aliasFormatted:n?`-${r.alias}`:void 0}}).map(t=>(t.aliasesEnabled=e,[{type:"flagName",data:t},{type:"flagDescription",data:t}])),tableBreakpoints:gr}}}s(Ee,"z"),m(Ee,"renderFlags");const he=m(u=>!u||(u.version??(u.help?u.help.version:void 0)),"getVersion"),Ce=m(u=>{const e="parent"in u&&u.parent?.name;return(e?`${e} `:"")+u.name},"getName");function ge(u){const e=[];u.name&&e.push(Ce(u));const t=he(u)??("parent"in u&&he(u.parent));if(t&&e.push(`v${t}`),e.length!==0)return{id:"name",type:"text",data:`${e.join(" ")}
17
+ `}}s(ge,"K"),m(ge,"getNameAndVersion");function me(u){const{help:e}=u;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
18
+ `}}s(me,"Z"),m(me,"getDescription");function Be(u){const e=u.help||{};if("usage"in e)return e.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(e.usage)?e.usage.join(`
19
+ `):e.usage}}:void 0;if(u.name){const t=[],r=[Ce(u)];if(u.flags&&Object.keys(u.flags).length>0&&r.push("[flags...]"),u.parameters&&u.parameters.length>0){const{parameters:n}=u,o=n.indexOf("--"),D=o!==-1&&n.slice(o+1).some(i=>i.startsWith("<"));r.push(n.map(i=>i!=="--"?i:D?"--":"[--]").join(" "))}if(r.length>1&&t.push(r.join(" ")),"commands"in u&&u.commands?.length&&t.push(`${u.name} <command>`),t.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:t.join(`
20
+ `)}}}}s(Be,"G"),m(Be,"getUsage");function we(u){return!("commands"in u)||!u.commands?.length?void 0:{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u.commands.map(e=>{const{help:t}=e.options;return[e.options.name,typeof t=="object"&&t.description||""]}),tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}s(we,"Q"),m(we,"getCommands");function be(u){if(!(!u.flags||Object.keys(u.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Ee(u.flags),indentBody:0}}}s(be,"X"),m(be,"getFlags");function Ae(u){const{help:e}=u;if(!e||!e.examples||e.examples.length===0)return;let{examples:t}=e;if(Array.isArray(t)&&(t=t.join(`
21
+ `)),t)return{id:"examples",type:"section",data:{title:"Examples:",body:t}}}s(Ae,"Y"),m(Ae,"getExamples");function ye(u){if(!("alias"in u)||!u.alias)return;const{alias:e}=u;return{id:"aliases",type:"section",data:{title:"Aliases:",body:Array.isArray(e)?e.join(", "):e}}}s(ye,"ee"),m(ye,"getAliases");const mr=m(u=>[ge,me,Be,we,be,Ae,ye].map(e=>e(u)).filter(Boolean),"generateHelp"),Br=Ke.WriteStream.prototype.hasColors();class wr{static{s(this,"ne")}static{m(this,"Renderers")}text(e){return e}bold(e){return Br?`\x1B[1m${e}\x1B[22m`:e.toLocaleUpperCase()}indentText({text:e,spaces:t}){return e.replaceAll(/^/gm," ".repeat(t))}heading(e){return this.bold(e)}section({title:e,body:t,indentBody:r=2}){return`${(e?`${this.heading(e)}
22
22
  `:"")+(t?this.indentText({text:this.render(t),spaces:r}):"")}
23
- `}table({tableData:e,tableOptions:t,tableBreakpoints:r}){return nr(e.map(o=>o.map(n=>this.render(n))),r?ar(r):t)}flagParameter(e){return e===Boolean?"":e===String?"<string>":e===Number?"<number>":Array.isArray(e)?this.flagParameter(e[0]):"<value>"}flagOperator(e){return" "}flagName(e){const{flag:t,flagFormatted:r,aliasesEnabled:o,aliasFormatted:n}=e;let D="";if(n?D+=`${n}, `:o&&(D+=" "),D+=r,"placeholder"in t&&typeof t.placeholder=="string")D+=`${this.flagOperator(e)}${t.placeholder}`;else{const i=this.flagParameter("type"in t?t.type:t);i&&(D+=`${this.flagOperator(e)}${i}`)}return D}flagDefault(e){return JSON.stringify(e)}flagDescription({flag:e}){let t="description"in e?e.description??"":"";if("default"in e){let{default:r}=e;typeof r=="function"&&(r=r()),r&&(t+=` (default: ${this.flagDefault(r)})`)}return t}render(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>this.render(t)).join(`
24
- `);if("type"in e&&this[e.type]){const t=this[e.type];if(typeof t=="function")return t.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const hu=m(u=>u.length>0&&!u.includes(" "),"isValidScriptName"),{stringify:R}=JSON,gr=/[|\\{}()[\]^$+*?.]/;function Eu(u){const e=[];let t,r;for(const o of u){if(r)throw new Error(`Invalid parameter: Spread parameter ${R(r)} must be last`);const n=o[0],D=o.at(-1);let i;if(n==="<"&&D===">"&&(i=!0,t))throw new Error(`Invalid parameter: Required parameter ${R(o)} cannot come after optional parameter ${R(t)}`);if(n==="["&&D==="]"&&(i=!1,t=o),i===void 0)throw new Error(`Invalid parameter: ${R(o)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let a=o.slice(1,-1);const l=a.slice(-3)==="...";l&&(r=o,a=a.slice(0,-3));const p=a.match(gr);if(p)throw new Error(`Invalid parameter: ${R(o)}. Invalid character found ${R(p[0])}`);e.push({name:a,required:i,spread:l})}return e}s(Eu,"P"),m(Eu,"parseParameters");function Cu(u,e,t,r){for(let o=0;o<e.length;o+=1){const{name:n,required:D,spread:i}=e[o],a=pr(n);if(a in u)throw new Error(`Invalid parameter: ${R(n)} is used more than once.`);const l=i?t.slice(o):t[o];if(i&&(o=e.length),D&&(!l||i&&l.length===0))return console.error(`Error: Missing required parameter ${R(n)}
25
- `),r(),process.exit(1);u[a]=l}}s(Cu,"S"),m(Cu,"mapParametersToArguments");function we(u){return u!==!1}s(we,"se"),m(we,"helpEnabled");const mr=m(u=>{const e=[];for(const[t,r]of Object.entries(u))if(e.push(t),r&&typeof r=="object"&&"alias"in r){const{alias:o}=r;typeof o=="string"&&o?e.push(o):Array.isArray(o)&&e.push(...o.filter(Boolean))}return e},"getKnownFlagNames"),Br=m((u,e)=>{if(u.length<3||e.length===0)return;const t=Fr(u,e);return ce(u,t)<=2?t:void 0},"findClosestFlag"),wr=m((u,e)=>{const t=Object.keys(u);if(t.length!==0){for(const r of t){const o=Br(r,e),n=o?` (Did you mean --${o}?)`:"";console.error(`Error: Unknown flag: --${r}.${n}`)}process.exit(1)}},"handleUnknownFlags");function gu(u,e,t,r){const o={...e.flags},n=e.version&&!("version"in o);n&&(o.version={type:Boolean,description:"Show version"});const{help:D}=e,i=we(D);i&&!("help"in o)&&(o.help={type:Boolean,alias:"h",description:"Show help"});const a=_t(o,r,{ignore:e.ignoreArgv}),l=m(()=>{console.log(e.version)},"showVersion");if(n&&a.flags.version===!0)return l(),process.exit(0);const p=new Cr,F=i&&D?.render?D.render:h=>p.render(h),f=m(h=>{const B=hr({...e,...h?{help:h}:{},flags:o});console.log(F(B,p))},"showHelp");if(i&&a.flags.help===!0)return f(),process.exit(0);if((e.strictFlags??e.parent?.strictFlags)&&wr(a.unknownFlags,mr(o)),e.parameters){let{parameters:h}=e,B=a._;const y=h.indexOf("--"),C=h.slice(y+1),w=Object.create(null);let v=[];y>-1&&C.length>0&&(h=h.slice(0,y),v=a._["--"],B=B.slice(0,-v.length||void 0)),Cu(w,Eu(h),B,f),y>-1&&C.length>0&&Cu(w,Eu(C),v,f),Object.assign(a._,w)}const c={...a,showVersion:l,showHelp:f},d={command:u,...c};if(typeof t=="function"){const h=t(c);if(h&&"then"in h)return Object.assign(Promise.resolve(h),d)}return d}s(gu,"I"),m(gu,"cliBase");function be(u,e){const t=new Map;for(const r of e){const o=[r.options.name],{alias:n}=r.options;n&&(Array.isArray(n)?o.push(...n):o.push(n));for(const D of o){if(t.has(D))throw new Error(`Duplicate command name found: ${R(D)}`);t.set(D,r)}}return t.get(u)}s(be,"ce"),m(be,"getCommand");function ye(u,e,t=process.argv.slice(2)){if(!u)throw new Error("Options is required");if("name"in u&&(!u.name||!hu(u.name)))throw new Error(`Invalid script name: ${R(u.name)}`);const r=t[0];if(u.commands&&r&&hu(r)){const o=be(r,u.commands);if(o)return gu(o.options.name,{...o.options,parent:u},o.callback,t.slice(1))}return gu(void 0,u,e,t)}s(ye,"fe"),m(ye,"cli");function br(u,e){if(!u)throw new Error("Command options are required");const{name:t}=u;if(t===void 0)throw new Error("Command name is required");if(!hu(t))throw new Error(`Invalid command name ${JSON.stringify(t)}. Command names must be one word.`);return{options:u,callback:e}}s(br,"de"),m(br,"command");let Ae={};const ve=new WeakMap,$e={metric:[{from:0,to:1e3,unit:"B",long:"bytes"},{from:1e3,to:1e6,unit:"kB",long:"kilobytes"},{from:1e6,to:1e9,unit:"MB",long:"megabytes"},{from:1e9,to:1e12,unit:"GB",long:"gigabytes"},{from:1e12,to:1e15,unit:"TB",long:"terabytes"},{from:1e15,to:1e18,unit:"PB",long:"petabytes"},{from:1e18,to:1e21,unit:"EB",long:"exabytes"},{from:1e21,to:1e24,unit:"ZB",long:"zettabytes"},{from:1e24,to:1e27,unit:"YB",long:"yottabytes"}],metric_octet:[{from:0,to:1e3,unit:"o",long:"octets"},{from:1e3,to:1e6,unit:"ko",long:"kilooctets"},{from:1e6,to:1e9,unit:"Mo",long:"megaoctets"},{from:1e9,to:1e12,unit:"Go",long:"gigaoctets"},{from:1e12,to:1e15,unit:"To",long:"teraoctets"},{from:1e15,to:1e18,unit:"Po",long:"petaoctets"},{from:1e18,to:1e21,unit:"Eo",long:"exaoctets"},{from:1e21,to:1e24,unit:"Zo",long:"zettaoctets"},{from:1e24,to:1e27,unit:"Yo",long:"yottaoctets"}],iec:[{from:0,to:Math.pow(1024,1),unit:"B",long:"bytes"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"KiB",long:"kibibytes"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"MiB",long:"mebibytes"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"GiB",long:"gibibytes"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"TiB",long:"tebibytes"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"PiB",long:"pebibytes"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"EiB",long:"exbibytes"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"ZiB",long:"zebibytes"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"YiB",long:"yobibytes"}],iec_octet:[{from:0,to:Math.pow(1024,1),unit:"o",long:"octets"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"Kio",long:"kibioctets"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"Mio",long:"mebioctets"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"Gio",long:"gibioctets"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"Tio",long:"tebioctets"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"Pio",long:"pebioctets"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"Eio",long:"exbioctets"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"Zio",long:"zebioctets"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"Yio",long:"yobioctets"}]};class yr{static{s(this,"ByteSize")}constructor(e,t){t=Object.assign({units:"metric",precision:1,locale:void 0},Ae,t),ve.set(this,t),Object.assign($e,t.customUnits);const r=e<0?"-":"";e=Math.abs(e);const o=$e[t.units];if(o){const n=o.find(D=>e>=D.from&&e<D.to);if(n){const D=new Intl.NumberFormat(t.locale,{style:"decimal",maximumFractionDigits:t.precision}),i=n.from===0?r+D.format(e):r+D.format(e/n.from);this.value=i,this.unit=n.unit,this.long=n.long}else this.value=r+e,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${t.units}`)}toString(){const e=ve.get(this);return e.toStringFn?e.toStringFn.bind(this)():`${this.value} ${this.unit}`}}function mu(u,e){return new yr(u,e)}s(mu,"byteSize"),mu.defaultOptions=function(u){Ae=u};let L=!0;const q=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let H=0;if(q.process&&q.process.env&&q.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:e,NO_COLOR:t,TERM:r,COLORTERM:o}=q.process.env;e||t||u==="0"?L=!1:u==="1"||u==="2"||u==="3"?L=!0:r==="dumb"?L=!1:"CI"in q.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(n=>n in q.process.env)?L=!0:L=process.stdout.isTTY,L&&(process.platform==="win32"||o&&(o==="truecolor"||o==="24bit")?H=3:r&&(r.endsWith("-256color")||r.endsWith("256"))?H=2:H=1)}let Te={enabled:L,supportLevel:H};function Bu(u,e,t=1){const r=`\x1B[${u}m`,o=`\x1B[${e}m`,n=new RegExp(`\\x1b\\[${e}m`,"g");return D=>Te.enabled&&Te.supportLevel>=t?r+(""+D).replace(n,r)+o:""+D}s(Bu,"kolorist");const Oe=Bu(2,22),Ar=Bu(36,39),ke=Bu(94,39),wu=globalThis.window?.document!==void 0;globalThis.process?.versions?.node,globalThis.process?.versions?.bun,globalThis.Deno?.version?.deno,globalThis.process?.versions?.electron,globalThis.navigator?.userAgent?.includes("jsdom"),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope;const uu=globalThis.navigator?.userAgentData?.platform;uu==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform,uu==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform,uu==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform,uu==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform;const Me="\x1B]",Re="\x07",eu=";";!wu&&k.env.TERM_PROGRAM,!wu&&k.platform,wu||k.cwd;const vr=s((u,e)=>[Me,"8",eu,eu,e,Re,u,Me,"8",eu,eu,Re].join(""),"link");function $r(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}s($r,"getDefaultExportFromCjs");var bu,je;function Se(){return je||(je=1,bu=s((u,e=process.argv)=>{const t=u.startsWith("-")?"":u.length===1?"-":"--",r=e.indexOf(t+u),o=e.indexOf("--");return r!==-1&&(o===-1||r<o)},"hasFlag")),bu}s(Se,"requireHasFlag");var yu,xe;function Tr(){if(xe)return yu;xe=1;const u=Ye,e=Mu,t=Se(),{env:r}=process;let o;t("no-color")||t("no-colors")||t("color=false")||t("color=never")?o=0:(t("color")||t("colors")||t("color=true")||t("color=always"))&&(o=1),"FORCE_COLOR"in r&&(r.FORCE_COLOR==="true"?o=1:r.FORCE_COLOR==="false"?o=0:o=r.FORCE_COLOR.length===0?1:Math.min(parseInt(r.FORCE_COLOR,10),3));function n(a){return a===0?!1:{level:a,hasBasic:!0,has256:a>=2,has16m:a>=3}}s(n,"translateLevel");function D(a,l){if(o===0)return 0;if(t("color=16m")||t("color=full")||t("color=truecolor"))return 3;if(t("color=256"))return 2;if(a&&!l&&o===void 0)return 0;const p=o||0;if(r.TERM==="dumb")return p;if(process.platform==="win32"){const F=u.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(F=>F in r)||r.CI_NAME==="codeship"?1:p;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if(r.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in r){const F=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:p}s(D,"supportsColor");function i(a){const l=D(a,a&&a.isTTY);return n(l)}return s(i,"getSupportLevel"),yu={supportsColor:i,stdout:n(D(!0,e.isatty(1))),stderr:n(D(!0,e.isatty(2)))},yu}s(Tr,"requireSupportsColor");var Au,Ie;function Or(){if(Ie)return Au;Ie=1;const u=Tr(),e=Se();function t(o){if(/^\d{3,4}$/.test(o)){const D=/(\d{1,2})(\d{2})/.exec(o)||[];return{major:0,minor:parseInt(D[1],10),patch:parseInt(D[2],10)}}const n=(o||"").split(".").map(D=>parseInt(D,10));return{major:n[0],minor:n[1],patch:n[2]}}s(t,"parseVersion");function r(o){const{CI:n,FORCE_HYPERLINK:D,NETLIFY:i,TEAMCITY_VERSION:a,TERM_PROGRAM:l,TERM_PROGRAM_VERSION:p,VTE_VERSION:F,TERM:f}=process.env;if(D)return!(D.length>0&&parseInt(D,10)===0);if(e("no-hyperlink")||e("no-hyperlinks")||e("hyperlink=false")||e("hyperlink=never"))return!1;if(e("hyperlink=true")||e("hyperlink=always")||i)return!0;if(!u.supportsColor(o)||o&&!o.isTTY)return!1;if("WT_SESSION"in process.env)return!0;if(process.platform==="win32"||n||a)return!1;if(l){const c=t(p||"");switch(l){case"iTerm.app":return c.major===3?c.minor>=1:c.major>3;case"WezTerm":return c.major>=20200620;case"vscode":return c.major>1||c.major===1&&c.minor>=72;case"ghostty":return!0}}if(F){if(F==="0.50.0")return!1;const c=t(F);return c.major>0||c.minor>=50}switch(f){case"alacritty":return!0}return!1}return s(r,"supportsHyperlink"),Au={supportsHyperlink:r,stdout:r(process.stdout),stderr:r(process.stderr)},Au}s(Or,"requireSupportsHyperlinks");var kr=Or(),vu=$r(kr);function Y(u,e,{target:t="stdout",...r}={}){return vu[t]?vr(u,e):r.fallback===!1?u:typeof r.fallback=="function"?r.fallback(u,e):`${u} (\u200B${e}\u200B)`}s(Y,"terminalLink"),Y.isSupported=vu.stdout,Y.stderr=(u,e,t={})=>Y(u,e,{target:"stderr",...t}),Y.stderr.isSupported=vu.stderr;var Mr="git-publish",Rr="2.4.2",jr="Publish your npm package to a GitHub repository branch";const z=s(async(u,e,t)=>(await T(u,e,t)).stdout.trim(),"simpleSpawn"),Pe=s(u=>z("git",["status","--porcelain","--untracked-files=no"],u),"gitStatusTracked"),Sr=s(async()=>{if(await Pe().catch(e=>{throw e.stderr.includes("not a git repository")?new Error("Not in a git repository."):e}))throw new Error("The working tree is not clean. Please commit or stash your changes before publishing.")},"assertCleanTree"),xr=s(async()=>{try{return await z("git",["branch","--show-current"])}catch(u){try{return await z("git",["describe","--tags"])}catch(e){throw new Error(`Failed to get current branch name: ${u.stderr} ${e.stderr}`)}}},"getCurrentBranchOrTagName"),_e=s(async u=>z("git",["rev-parse","--short","HEAD"],u).catch(()=>{}),"getCurrentCommit"),Ne=s(async u=>{const e=await $.readFile(u,"utf8");try{return JSON.parse(e)}catch{throw new Error(`Failed to parse JSON file: ${u}`)}},"readJson"),Le=s(u=>u instanceof URL?Ou.fileURLToPath(u):u,"toPath");async function tu(u,{cwd:e=k.cwd(),type:t="file",stopAt:r}={}){let o=g.resolve(Le(e)??"");const{root:n}=g.parse(o);r=g.resolve(o,Le(r??n));const D=g.isAbsolute(u);for(;o;){const i=D?u:g.join(o,u);try{const a=await $.stat(i);if(t==="file"&&a.isFile()||t==="directory"&&a.isDirectory())return i}catch{}if(o===r||o===n)break;o=g.dirname(o)}}s(tu,"findUp");const Ir=s(async(u,e)=>{const t={cwd:u,stopAt:e};return await tu("pnpm-lock.yaml",t)?"pnpm":await tu("yarn.lock",t)?"yarn":await tu("bun.lockb",t)||await tu("bun.lock",t)?"bun":"npm"},"detectPackageManager"),Pr=s(async(u,e)=>{await $.mkdir(g.dirname(e),{recursive:!0}),await $.copyFile(u,e)},"copyFile"),ru=s(u=>typeof u=="object"&&u!==null&&"code"in u&&u.code!=="ENOENT","isNotEnoent"),_r=s(async(u,e,t,r,o,n)=>{await $.mkdir(t,{recursive:!0});const D=n.length>0,i=g.join(r,"package.json"),a=await Ne(i);if(a.files&&a.files.length>0){const c=D?g.join(e,n):e,d=await Promise.all(a.files.map(async B=>{const y=g.join(r,B);try{return(await $.stat(y)).isDirectory()?`${B}/**`:B}catch(C){if(ru(C))throw C;return B}})),h=await Ze(d,{cwd:r,dot:!0});for(const B of h){const y=g.join(r,B),C=g.join(c,B);await Pr(y,C)}}if(D){const c=g.join(e,"node_modules");await $.rm(c,{recursive:!0,force:!0});try{await $.symlink(g.join(o,"node_modules"),c,"dir")}catch(h){if(ru(h))throw h}const d=g.join(e,n,"node_modules");await $.rm(d,{recursive:!0,force:!0});try{await $.symlink(g.join(r,"node_modules"),d,"dir")}catch(h){if(ru(h))throw h}}else{const c=g.join(e,"node_modules");await $.rm(c,{recursive:!0,force:!0});try{await $.symlink(g.join(r,"node_modules"),c,"dir")}catch(d){if(ru(d))throw d}}const l=u==="bun"?["pm","pack","--destination",t]:["pack","--pack-destination",t],p=n?g.join(e,n):e;await T(u,l,{cwd:p});const f=(await $.readdir(t)).find(c=>c.endsWith(".tgz"));if(!f)throw new Error("No tarball found after pack");return g.join(t,f)},"packPackage"),Nr=s(async(u,e)=>{const t=[];return await ku.pipeline(Je.createReadStream(u),Xe(),Ke.extract(e,{map:s(r=>(r.name.startsWith("package/")&&(r.name=r.name.slice(8)),r.type==="file"&&r.name&&t.push({file:r.name,size:r.size||0}),r),"map")})),t.sort((r,o)=>r.file<o.file?-1:r.file>o.file?1:0),t},"extractTarball"),{stringify:J}=JSON;(async()=>{const u=ye({name:Mr,version:Rr,flags:{branch:{type:String,alias:"b",placeholder:"<branch name>",description:'The branch to publish the package to. Defaults to prefixing "npm/" to the current branch or tag name.'},remote:{type:String,alias:"r",placeholder:"<remote>",description:"The remote to push to.",default:"origin"},fresh:{type:Boolean,alias:"o",description:"Publish without a commit history. Warning: Force-pushes to remote"},dry:{type:Boolean,alias:"d",description:"Dry run mode. Will not commit or push to the remote."},force:{type:Boolean,alias:"f",description:"Skip checks and force publish."}},help:{description:jr}});await Sr();const e=process.cwd(),t=await z("git",["rev-parse","--show-toplevel"]),r=g.relative(t,e),o=await xr(),n=await _e(),D="package.json";try{await $.access(D)}catch{throw new Error("No package.json found in current working directory.")}const i=await Ne(D);if(i.private&&!u.flags.force)throw new Error("This package is marked as private. Use --force to publish it anyway.");const{branch:a,remote:l,fresh:p,dry:F}=u.flags,f=a||(r?`npm/${o}-${i.name}`:`npm/${o}`);await He(`Publishing branch ${J(o)} \u2192 ${J(f)}`,async({task:c,setTitle:d,setStatus:h,setOutput:B})=>{F&&h("Dry run");const y=`git-publish-${Date.now()}-${process.pid}`,C=g.join(ze.tmpdir(),"git-publish",y),w=g.join(C,"publish-worktree"),v=g.join(C,"pack-worktree"),O=g.join(C,"pack");let G=!1,V;try{V=await z("git",["remote","get-url",l])}catch{throw new Error(`Git remote ${J(l)} does not exist`)}let S;const I=await Ir(e,t),We=await c("Creating worktrees",async({setWarning:P})=>{if(F){P("");return}await T("git",["worktree","add","--force",w,"HEAD"]),await T("git",["worktree","add","--force",v,"HEAD"])});F||We.clear();try{const P=await c("Checking out branch",async({setWarning:N})=>{if(F){N("");return}let M=!1;p?M=!0:M="exitCode"in await T("git",["fetch","--depth=1",l,`${f}:${y}`],{cwd:w}).catch(Tu=>Tu),M?await T("git",["checkout","--orphan",y],{cwd:w}):await T("git",["symbolic-ref","HEAD",`refs/heads/${y}`],{cwd:w}),await T("git",["rm","--cached","-r",":/"],{cwd:w}).catch(()=>{}),await T("git",["clean","-fdx"],{cwd:w})});F||P.clear();const _=await c("Packing package",async({setWarning:N})=>{if(F){N("");return}const M=await _r(I,v,O,e,t,r);return await Nr(M,w)});F||_.clear();const ou=await c("Commiting publish assets",async({setWarning:N})=>{if(F){N("");return}await T("git",["add","-A"],{cwd:w});const M=await _.result;if(!M||M.length===0)throw new Error("No publish files found");const $u=M.reduce((W,{size:Du})=>W+Du,0);if(console.log(ke(`Publishing ${i.name}`)),console.log(M.map(({file:W,size:Du})=>`${W} ${Oe(mu(Du).toString())}`).join(`
23
+ `}table({tableData:e,tableOptions:t,tableBreakpoints:r}){return sr(e.map(n=>n.map(o=>this.render(o))),r?Fr(r):t)}flagParameter(e){return e===Boolean?"":e===String?"<string>":e===Number?"<number>":Array.isArray(e)?this.flagParameter(e[0]):"<value>"}flagOperator(e){return" "}flagName(e){const{flag:t,flagFormatted:r,aliasesEnabled:n,aliasFormatted:o}=e;let D="";if(o?D+=`${o}, `:n&&(D+=" "),D+=r,"placeholder"in t&&typeof t.placeholder=="string")D+=`${this.flagOperator(e)}${t.placeholder}`;else{const i=this.flagParameter("type"in t?t.type:t);i&&(D+=`${this.flagOperator(e)}${i}`)}return D}flagDefault(e){return JSON.stringify(e)}flagDescription({flag:e}){let t="description"in e?e.description??"":"";if("default"in e){let{default:r}=e;typeof r=="function"&&(r=r()),r&&(t+=` (default: ${this.flagDefault(r)})`)}return t}render(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>this.render(t)).join(`
24
+ `);if("type"in e&&this[e.type]){const t=this[e.type];if(typeof t=="function")return t.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const bu=m(u=>u.length>0&&!u.includes(" "),"isValidScriptName"),{stringify:j}=JSON,br=/[|\\{}()[\]^$+*?.]/;function Au(u){const e=[];let t,r;for(const n of u){if(r)throw new Error(`Invalid parameter: Spread parameter ${j(r)} must be last`);const o=n[0],D=n.at(-1);let i;if(o==="<"&&D===">"&&(i=!0,t))throw new Error(`Invalid parameter: Required parameter ${j(n)} cannot come after optional parameter ${j(t)}`);if(o==="["&&D==="]"&&(i=!1,t=n),i===void 0)throw new Error(`Invalid parameter: ${j(n)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let a=n.slice(1,-1);const l=a.slice(-3)==="...";l&&(r=n,a=a.slice(0,-3));const c=a.match(br);if(c)throw new Error(`Invalid parameter: ${j(n)}. Invalid character found ${j(c[0])}`);e.push({name:a,required:i,spread:l})}return e}s(Au,"P"),m(Au,"parseParameters");function yu(u,e,t,r){for(let n=0;n<e.length;n+=1){const{name:o,required:D,spread:i}=e[n],a=hr(o);if(a in u)throw new Error(`Invalid parameter: ${j(o)} is used more than once.`);const l=i?t.slice(n):t[n];if(i&&(n=e.length),D&&(!l||i&&l.length===0))return console.error(`Error: Missing required parameter ${j(o)}
25
+ `),r(),process.exit(1);u[a]=l}}s(yu,"S"),m(yu,"mapParametersToArguments");function ve(u){return u!==!1}s(ve,"se"),m(ve,"helpEnabled");const Ar=m(u=>{const e=[];for(const[t,r]of Object.entries(u))if(e.push(t),r&&typeof r=="object"&&"alias"in r){const{alias:n}=r;typeof n=="string"&&n?e.push(n):Array.isArray(n)&&e.push(...n.filter(Boolean))}return e},"getKnownFlagNames"),yr=m((u,e)=>{if(u.length<3||e.length===0)return;const t=Er(u,e);return de(u,t)<=2?t:void 0},"findClosestFlag"),vr=m((u,e)=>{const t=Object.keys(u);if(t.length!==0){for(const r of t){const n=yr(r,e),o=n?` (Did you mean --${n}?)`:"";console.error(`Error: Unknown flag: --${r}.${o}`)}process.exit(1)}},"handleUnknownFlags");function vu(u,e,t,r){const n={...e.flags},o=e.version&&!("version"in n);o&&(n.version={type:Boolean,description:"Show version"});const{help:D}=e,i=ve(D);i&&!("help"in n)&&(n.help={type:Boolean,alias:"h",description:"Show help"});const a=zt(n,r,{ignore:e.ignoreArgv}),l=m(()=>{console.log(e.version)},"showVersion");if(o&&a.flags.version===!0)return l(),process.exit(0);const c=new wr,d=i&&D?.render?D.render:E=>c.render(E),f=m(E=>{const B=mr({...e,...E?{help:E}:{},flags:n});console.log(d(B,c))},"showHelp");if(i&&a.flags.help===!0)return f(),process.exit(0);if((e.strictFlags??e.parent?.strictFlags)&&vr(a.unknownFlags,Ar(n)),e.parameters){let{parameters:E}=e,B=a._;const v=E.indexOf("--"),C=E.slice(v+1),w=Object.create(null);let T=[];v>-1&&C.length>0&&(E=E.slice(0,v),T=a._["--"],B=B.slice(0,-T.length||void 0)),yu(w,Au(E),B,f),v>-1&&C.length>0&&yu(w,Au(C),T,f),Object.assign(a._,w)}const F={...a,showVersion:l,showHelp:f},p={command:u,...F};if(typeof t=="function"){const E=t(F);if(E&&"then"in E)return Object.assign(Promise.resolve(E),p)}return p}s(vu,"I"),m(vu,"cliBase");function $e(u,e){const t=new Map;for(const r of e){const n=[r.options.name],{alias:o}=r.options;o&&(Array.isArray(o)?n.push(...o):n.push(o));for(const D of n){if(t.has(D))throw new Error(`Duplicate command name found: ${j(D)}`);t.set(D,r)}}return t.get(u)}s($e,"ce"),m($e,"getCommand");function Te(u,e,t=process.argv.slice(2)){if(!u)throw new Error("Options is required");if("name"in u&&(!u.name||!bu(u.name)))throw new Error(`Invalid script name: ${j(u.name)}`);const r=t[0];if(u.commands&&r&&bu(r)){const n=$e(r,u.commands);if(n)return vu(n.options.name,{...n.options,parent:u},n.callback,t.slice(1))}return vu(void 0,u,e,t)}s(Te,"fe"),m(Te,"cli");function $r(u,e){if(!u)throw new Error("Command options are required");const{name:t}=u;if(t===void 0)throw new Error("Command name is required");if(!bu(t))throw new Error(`Invalid command name ${JSON.stringify(t)}. Command names must be one word.`);return{options:u,callback:e}}s($r,"de"),m($r,"command");let Oe={};const Me=new WeakMap,ke={metric:[{from:0,to:1e3,unit:"B",long:"bytes"},{from:1e3,to:1e6,unit:"kB",long:"kilobytes"},{from:1e6,to:1e9,unit:"MB",long:"megabytes"},{from:1e9,to:1e12,unit:"GB",long:"gigabytes"},{from:1e12,to:1e15,unit:"TB",long:"terabytes"},{from:1e15,to:1e18,unit:"PB",long:"petabytes"},{from:1e18,to:1e21,unit:"EB",long:"exabytes"},{from:1e21,to:1e24,unit:"ZB",long:"zettabytes"},{from:1e24,to:1e27,unit:"YB",long:"yottabytes"}],metric_octet:[{from:0,to:1e3,unit:"o",long:"octets"},{from:1e3,to:1e6,unit:"ko",long:"kilooctets"},{from:1e6,to:1e9,unit:"Mo",long:"megaoctets"},{from:1e9,to:1e12,unit:"Go",long:"gigaoctets"},{from:1e12,to:1e15,unit:"To",long:"teraoctets"},{from:1e15,to:1e18,unit:"Po",long:"petaoctets"},{from:1e18,to:1e21,unit:"Eo",long:"exaoctets"},{from:1e21,to:1e24,unit:"Zo",long:"zettaoctets"},{from:1e24,to:1e27,unit:"Yo",long:"yottaoctets"}],iec:[{from:0,to:Math.pow(1024,1),unit:"B",long:"bytes"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"KiB",long:"kibibytes"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"MiB",long:"mebibytes"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"GiB",long:"gibibytes"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"TiB",long:"tebibytes"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"PiB",long:"pebibytes"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"EiB",long:"exbibytes"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"ZiB",long:"zebibytes"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"YiB",long:"yobibytes"}],iec_octet:[{from:0,to:Math.pow(1024,1),unit:"o",long:"octets"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"Kio",long:"kibioctets"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"Mio",long:"mebioctets"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"Gio",long:"gibioctets"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"Tio",long:"tebioctets"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"Pio",long:"pebioctets"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"Eio",long:"exbioctets"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"Zio",long:"zebioctets"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"Yio",long:"yobioctets"}]};class Tr{static{s(this,"ByteSize")}constructor(e,t){t=Object.assign({units:"metric",precision:1,locale:void 0},Oe,t),Me.set(this,t),Object.assign(ke,t.customUnits);const r=e<0?"-":"";e=Math.abs(e);const n=ke[t.units];if(n){const o=n.find(D=>e>=D.from&&e<D.to);if(o){const D=new Intl.NumberFormat(t.locale,{style:"decimal",maximumFractionDigits:t.precision}),i=o.from===0?r+D.format(e):r+D.format(e/o.from);this.value=i,this.unit=o.unit,this.long=o.long}else this.value=r+e,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${t.units}`)}toString(){const e=Me.get(this);return e.toStringFn?e.toStringFn.bind(this)():`${this.value} ${this.unit}`}}function $u(u,e){return new Tr(u,e)}s($u,"byteSize"),$u.defaultOptions=function(u){Oe=u};let z=!0;const q=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let Z=0;if(q.process&&q.process.env&&q.process.stdout){const{FORCE_COLOR:u,NODE_DISABLE_COLORS:e,NO_COLOR:t,TERM:r,COLORTERM:n}=q.process.env;e||t||u==="0"?z=!1:u==="1"||u==="2"||u==="3"?z=!0:r==="dumb"?z=!1:"CI"in q.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in q.process.env)?z=!0:z=process.stdout.isTTY,z&&(process.platform==="win32"||n&&(n==="truecolor"||n==="24bit")?Z=3:r&&(r.endsWith("-256color")||r.endsWith("256"))?Z=2:Z=1)}let Re={enabled:z,supportLevel:Z};function Tu(u,e,t=1){const r=`\x1B[${u}m`,n=`\x1B[${e}m`,o=new RegExp(`\\x1b\\[${e}m`,"g");return D=>Re.enabled&&Re.supportLevel>=t?r+(""+D).replace(o,r)+n:""+D}s(Tu,"kolorist");const xe=Tu(2,22),Or=Tu(36,39),je=Tu(94,39),K=globalThis.window?.document!==void 0;globalThis.process?.versions?.node,globalThis.process?.versions?.bun,globalThis.Deno?.version?.deno,globalThis.process?.versions?.electron,globalThis.navigator?.userAgent?.includes("jsdom"),typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope;const nu=globalThis.navigator?.userAgentData?.platform;nu==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform,nu==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform,nu==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform,nu==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform;const ou="\x1B[",Se="\x1B]",Ie="\x07",Du=";";!K&&y.env.TERM_PROGRAM;const Mr=!K&&y.platform==="win32",kr=!K&&(y.env.TERM?.startsWith("screen")||y.env.TERM?.startsWith("tmux")||y.env.TMUX!==void 0);K||y.cwd;const Pe=s(u=>kr?"\x1BPtmux;"+u.replaceAll("\x1B","\x1B\x1B")+"\x1B\\":u,"wrapOsc"),Ne=ou+"2J",Rr=s(()=>{if(K||!Mr)return!1;const u=fu.release().split("."),e=Number(u[0]),t=Number(u[2]??0);return e<10||e===10&&t<10586},"isOldWindows");Rr()?`${Ne}${ou}`:`${Ne}${ou}${ou}`;const xr=s((u,e)=>{const t=Pe(`${Se}8${Du}${Du}${e}${Ie}`),r=Pe(`${Se}8${Du}${Du}${Ie}`);return t+u+r},"link");function R(u,e=globalThis.Deno?globalThis.Deno.args:y.argv){const t=u.startsWith("-")?"":u.length===1?"-":"--",r=e.indexOf(t+u),n=e.indexOf("--");return r!==-1&&(n===-1||r<n)}s(R,"hasFlag$1");const{env:A}=y;let iu;R("no-color")||R("no-colors")||R("color=false")||R("color=never")?iu=0:(R("color")||R("colors")||R("color=true")||R("color=always"))&&(iu=1);function jr(){if(!("FORCE_COLOR"in A))return;if(A.FORCE_COLOR==="true")return 1;if(A.FORCE_COLOR==="false")return 0;if(A.FORCE_COLOR.length===0)return 1;const u=Math.min(Number.parseInt(A.FORCE_COLOR,10),3);if([0,1,2,3].includes(u))return u}s(jr,"envForceColor");function Sr(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}s(Sr,"translateLevel");function Ir(u,{streamIsTTY:e,sniffFlags:t=!0}={}){const r=jr();r!==void 0&&(iu=r);const n=t?iu:r;if(n===0)return 0;if(t){if(R("color=16m")||R("color=full")||R("color=truecolor"))return 3;if(R("color=256"))return 2}if("TF_BUILD"in A&&"AGENT_NAME"in A)return 1;if(u&&!e&&n===void 0)return 0;const o=n||0;if(A.TERM==="dumb")return o;if(y.platform==="win32"){const D=fu.release().split(".");return Number(D[0])>=10&&Number(D[2])>=10586?Number(D[2])>=14931?3:2:1}if("CI"in A)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(D=>D in A)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(D=>D in A)||A.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in A)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(A.TEAMCITY_VERSION)?1:0;if(A.COLORTERM==="truecolor"||A.TERM==="xterm-kitty"||A.TERM==="xterm-ghostty"||A.TERM==="wezterm")return 3;if("TERM_PROGRAM"in A){const D=Number.parseInt((A.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(A.TERM_PROGRAM){case"iTerm.app":return D>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(A.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(A.TERM)||"COLORTERM"in A?1:o}s(Ir,"_supportsColor");function Ou(u,e={}){const t=Ir(u,{streamIsTTY:u&&u.isTTY,...e});return Sr(t)}s(Ou,"createSupportsColor"),Ou({isTTY:Su.isatty(1)}),Ou({isTTY:Su.isatty(2)});function U(u,e=Xe.argv){const t=u.startsWith("-")?"":u.length===1?"-":"--",r=e.indexOf(t+u),n=e.indexOf("--");return r!==-1&&(n===-1||r<n)}s(U,"hasFlag");function _e(u=""){if(/^\d{3,4}$/.test(u)){const t=/(\d{1,2})(\d{2})/.exec(u)??[];return{major:0,minor:Number.parseInt(t[1],10),patch:Number.parseInt(t[2],10)}}const e=(u??"").split(".").map(t=>Number.parseInt(t,10));return{major:e[0],minor:e[1],patch:e[2]}}s(_e,"parseVersion");function Le(u){const{CI:e,CURSOR_TRACE_ID:t,FORCE_HYPERLINK:r,NETLIFY:n,TEAMCITY_VERSION:o,TERM_PROGRAM:D,TERM_PROGRAM_VERSION:i,VTE_VERSION:a,TERM:l}=y.env;if(r)return!(r.length>0&&Number.parseInt(r,10)===0);if(U("no-hyperlink")||U("no-hyperlinks")||U("hyperlink=false")||U("hyperlink=never"))return!1;if(U("hyperlink=true")||U("hyperlink=always")||n)return!0;if(!Ou(u)||u&&!u.isTTY)return!1;if("WT_SESSION"in y.env)return!0;if(y.platform==="win32"||e||o)return!1;if(D){const c=_e(i);switch(D){case"iTerm.app":return c.major===3?c.minor>=1:c.major>3;case"WezTerm":return/^0-unstable-\d{4}-\d{2}-\d{2}$/.test(i)?i.slice(11)>="2020-06-20":c.major>=20200620;case"vscode":return t?!0:c.major>1||c.major===1&&c.minor>=72;case"ghostty":return!0;case"zed":return!0}}if(a){if(a==="0.50.0")return!1;const c=_e(a);return c.major>0||c.minor>=50}switch(l){case"alacritty":return!0;case"xterm-kitty":return!0}return!1}s(Le,"createSupportsHyperlinks");const Mu={stdout:Le(y.stdout),stderr:Le(y.stderr)};function X(u,e,{target:t="stdout",...r}={}){return Mu[t]?xr(u,e):r.fallback===!1?u:typeof r.fallback=="function"?r.fallback(u,e):`${u} ${e}`}s(X,"terminalLink"),X.isSupported=Mu.stdout,X.stderr=(u,e,t={})=>X(u,e,{target:"stderr",...t}),X.stderr.isSupported=Mu.stderr;var Pr="git-publish",Nr="2.4.3",_r="Publish your npm package to a GitHub repository branch";const V=s(async(u,e,t)=>(await M(u,e,t)).stdout.trim(),"simpleSpawn"),We=s(u=>V("git",["status","--porcelain","--untracked-files=no"],u),"gitStatusTracked"),Lr=s(async()=>{if(await We().catch(e=>{throw e.stderr.includes("not a git repository")?new Error("Not in a git repository."):e}))throw new Error("The working tree is not clean. Please commit or stash your changes before publishing.")},"assertCleanTree"),Wr=s(async()=>{try{return await V("git",["branch","--show-current"])}catch(u){try{return await V("git",["describe","--tags"])}catch(e){throw new Error(`Failed to get current branch name: ${u.stderr} ${e.stderr}`)}}},"getCurrentBranchOrTagName"),ze=s(async u=>V("git",["rev-parse","--short","HEAD"],u).catch(()=>{}),"getCurrentCommit"),Ge=s(async u=>{const e=await O.readFile(u,"utf8");try{return JSON.parse(e)}catch{throw new Error(`Failed to parse JSON file: ${u}`)}},"readJson"),qe=s(u=>u instanceof URL?xu.fileURLToPath(u):u,"toPath");async function au(u,{cwd:e=y.cwd(),type:t="file",stopAt:r}={}){let n=g.resolve(qe(e)??"");const{root:o}=g.parse(n);r=g.resolve(n,qe(r??o));const D=g.isAbsolute(u);for(;n;){const i=D?u:g.join(n,u);try{const a=await O.stat(i);if(t==="file"&&a.isFile()||t==="directory"&&a.isDirectory())return i}catch{}if(n===r||n===o)break;n=g.dirname(n)}}s(au,"findUp");const zr=s(async(u,e)=>{const t={cwd:u,stopAt:e};return await au("pnpm-lock.yaml",t)?"pnpm":await au("yarn.lock",t)?"yarn":await au("bun.lockb",t)||await au("bun.lock",t)?"bun":"npm"},"detectPackageManager"),Gr=s(async(u,e)=>{await O.mkdir(g.dirname(e),{recursive:!0}),await O.copyFile(u,e)},"copyFile"),su=s(u=>typeof u=="object"&&u!==null&&"code"in u&&u.code!=="ENOENT","isNotEnoent"),qr=s(async(u,e,t,r,n,o)=>{await O.mkdir(t,{recursive:!0});const D=o.length>0,i=g.join(r,"package.json"),a=await Ge(i);if(a.files&&a.files.length>0){const F=D?g.join(e,o):e,p=await Promise.all(a.files.map(async B=>{const v=g.join(r,B);try{return(await O.stat(v)).isDirectory()?`${B}/**`:B}catch(C){if(su(C))throw C;return B}})),E=await ut(p,{cwd:r,dot:!0});for(const B of E){const v=g.join(r,B),C=g.join(F,B);await Gr(v,C)}}if(D){const F=g.join(e,"node_modules");await O.rm(F,{recursive:!0,force:!0});try{await O.symlink(g.join(n,"node_modules"),F,"dir")}catch(E){if(su(E))throw E}const p=g.join(e,o,"node_modules");await O.rm(p,{recursive:!0,force:!0});try{await O.symlink(g.join(r,"node_modules"),p,"dir")}catch(E){if(su(E))throw E}}else{const F=g.join(e,"node_modules");await O.rm(F,{recursive:!0,force:!0});try{await O.symlink(g.join(r,"node_modules"),F,"dir")}catch(p){if(su(p))throw p}}const l=u==="bun"?["pm","pack","--destination",t]:["pack","--pack-destination",t],c=o?g.join(e,o):e;await M(u,l,{cwd:c});const f=(await O.readdir(t)).find(F=>F.endsWith(".tgz"));if(!f)throw new Error("No tarball found after pack");return g.join(t,f)},"packPackage"),Ur=s(async(u,e)=>{const t=[];return await ju.pipeline(Qe.createReadStream(u),tt(),et.extract(e,{map:s(r=>(r.name.startsWith("package/")&&(r.name=r.name.slice(8)),r.type==="file"&&r.name&&t.push({file:r.name,size:r.size||0}),r),"map")})),t.sort((r,n)=>r.file<n.file?-1:r.file>n.file?1:0),t},"extractTarball"),{stringify:Q}=JSON;(async()=>{const u=Te({name:Pr,version:Nr,flags:{branch:{type:String,alias:"b",placeholder:"<branch name>",description:'The branch to publish the package to. Defaults to prefixing "npm/" to the current branch or tag name.'},remote:{type:String,alias:"r",placeholder:"<remote>",description:"The remote to push to.",default:"origin"},fresh:{type:Boolean,alias:"o",description:"Publish without a commit history. Warning: Force-pushes to remote"},dry:{type:Boolean,alias:"d",description:"Dry run mode. Will not commit or push to the remote."},force:{type:Boolean,alias:"f",description:"Skip checks and force publish."}},help:{description:_r}});await Lr();const e=process.cwd(),t=await V("git",["rev-parse","--show-toplevel"]),r=g.relative(t,e),n=await Wr(),o=await ze(),D="package.json";try{await O.access(D)}catch{throw new Error("No package.json found in current working directory.")}const i=await Ge(D);if(i.private&&!u.flags.force)throw new Error("This package is marked as private. Use --force to publish it anyway.");const{branch:a,remote:l,fresh:c,dry:d}=u.flags,f=a||(r?`npm/${n}-${i.name}`:`npm/${n}`);await Ze(`Publishing branch ${Q(n)} \u2192 ${Q(f)}`,async({task:F,setTitle:p,setStatus:E,setOutput:B})=>{d&&E("Dry run");const v=`git-publish-${Date.now()}-${process.pid}`,C=g.join(fu.tmpdir(),"git-publish",v),w=g.join(C,"publish-worktree"),T=g.join(C,"pack-worktree"),k=g.join(C,"pack");let Y=!1,H;try{H=await V("git",["remote","get-url",l])}catch{throw new Error(`Git remote ${Q(l)} does not exist`)}let I;const N=await zr(e,t),Ue=await F("Creating worktrees",async({setWarning:_})=>{if(d){_("");return}await M("git",["worktree","add","--force",w,"HEAD"]),await M("git",["worktree","add","--force",T,"HEAD"])});d||Ue.clear();try{const _=await F("Checking out branch",async({setWarning:W})=>{if(d){W("");return}let x=!1;c?x=!0:x="exitCode"in await M("git",["fetch","--depth=1",l,`${f}:${v}`],{cwd:w}).catch(Ru=>Ru),x?await M("git",["checkout","--orphan",v],{cwd:w}):await M("git",["symbolic-ref","HEAD",`refs/heads/${v}`],{cwd:w}),await M("git",["rm","--cached","-r",":/"],{cwd:w}).catch(()=>{}),await M("git",["clean","-fdx"],{cwd:w})});d||_.clear();const L=await F("Packing package",async({setWarning:W})=>{if(d){W("");return}const x=await qr(N,T,k,e,t,r);return await Ur(x,w)});d||L.clear();const lu=await F("Commiting publish assets",async({setWarning:W})=>{if(d){W("");return}await M("git",["add","-A"],{cwd:w});const x=await L.result;if(!x||x.length===0)throw new Error("No publish files found");const ku=x.reduce((G,{size:Fu})=>G+Fu,0);if(console.log(je(`Publishing ${i.name}`)),console.log(x.map(({file:G,size:Fu})=>`${G} ${xe($u(Fu).toString())}`).join(`
26
26
  `)),console.log(`
27
- ${ke("Total size")}`,mu($u).toString()),(await Pe({cwd:w})).length===0)console.warn("\u26A0\uFE0F No new changes found to commit.");else{let W=`Published from "${o}"`;n&&(W+=` (${n})`),await T("git",["-c","user.name=git-publish","-c","user.email=bot@git-publish","commit","--no-verify","-m",W,"--author=git-publish <bot@git-publish>"],{cwd:w})}S=await _e({cwd:w})});F||ou.clear();const nu=await c(`Pushing branch ${J(f)} to remote ${J(l)}`,async({setWarning:N})=>{if(F){N("");return}await T("git",["push",...p?["--force"]:[],"--no-verify",l,`HEAD:${f}`],{cwd:w}),G=!0});F||nu.clear()}finally{(await c("Cleaning up",async({setWarning:_})=>{if(F){_("");return}await T("git",["worktree","remove","--force",w]),await T("git",["worktree","remove","--force",v]),await T("git",["branch","-D",y]).catch(()=>{}),await $.rm(C,{recursive:!0,force:!0})})).clear()}if(G){const P=V.match(/github\.com:(.+)\.git$/);if(P){const[,_]=P,ou=Y(`${Ar(f)} ${Oe(`(${S})`)}`,`https://github.com/${_}/tree/${f}`);d(`Successfully published branch: ${ou}`);const nu=["Install command",`${I} i '${_}#${f}'`].join(`
28
- `);B(nu)}}})})().catch(u=>{console.error("Error:",u.message),process.exit(1)});
27
+ ${je("Total size")}`,$u(ku).toString()),(await We({cwd:w})).length===0)console.warn("\u26A0\uFE0F No new changes found to commit.");else{let G=`Published from "${n}"`;o&&(G+=` (${o})`),await M("git",["-c","user.name=git-publish","-c","user.email=bot@git-publish","commit","--no-verify","-m",G,"--author=git-publish <bot@git-publish>"],{cwd:w})}I=await ze({cwd:w})});d||lu.clear();const cu=await F(`Pushing branch ${Q(f)} to remote ${Q(l)}`,async({setWarning:W})=>{if(d){W("");return}await M("git",["push",...c?["--force"]:[],"--no-verify",l,`HEAD:${f}`],{cwd:w}),Y=!0});d||cu.clear()}finally{(await F("Cleaning up",async({setWarning:L})=>{if(d){L("");return}await M("git",["worktree","remove","--force",w]),await M("git",["worktree","remove","--force",T]),await M("git",["branch","-D",v]).catch(()=>{}),await O.rm(C,{recursive:!0,force:!0})})).clear()}if(Y){const _=H.match(/github\.com:(.+)\.git$/);if(_){const[,L]=_,lu=X(`${Or(f)} ${xe(`(${I})`)}`,`https://github.com/${L}/tree/${f}`);p(`Successfully published branch: ${lu}`);const cu=["Install command",`${N} i '${L}#${f}'`].join(`
28
+ `);B(cu)}}})})().catch(u=>{console.error("Error:",u.message),process.exit(1)});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-publish",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "Publish your npm package to a GitHub repository branch",
5
5
  "keywords": [
6
6
  "npm",
@@ -25,6 +25,6 @@
25
25
  "fast-glob": "^3.3.3",
26
26
  "gunzip-maybe": "^1.4.2",
27
27
  "tar-fs": "^3.1.1",
28
- "tasuku": "^2.0.5"
28
+ "tasuku": "^2.0.7"
29
29
  }
30
30
  }