tsx 3.5.1 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,53 +1,53 @@
1
1
  #!/usr/bin/env node
2
- var vn=Object.defineProperty,Bn=Object.defineProperties;var Sn=Object.getOwnPropertyDescriptors;var _u=Object.getOwnPropertySymbols;var $n=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable;var mu=(t,e,u)=>e in t?vn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,M=(t,e)=>{for(var u in e||(e={}))$n.call(e,u)&&mu(t,u,e[u]);if(_u)for(var u of _u(e))Tn.call(e,u)&&mu(t,u,e[u]);return t},De=(t,e)=>Bn(t,Sn(e));import{r as Le}from"./pkgroll_create-require-890b6873.js";import xn from"tty";import{v as On}from"./package-0f4ac2cf.js";import{pathToFileURL as Nn,fileURLToPath as Hn}from"url";import Pn from"child_process";import z from"path";import oe from"fs";import Ln from"events";import me from"util";import In from"stream";import Au from"os";import"module";var yu=/-(\w)/g,wu=t=>t.replace(yu,(e,u)=>u.toUpperCase()),Ru=/\B([A-Z])/g,kn=t=>t.replace(Ru,"-$1").toLowerCase(),{stringify:Ae}=JSON,{hasOwnProperty:Mn}=Object.prototype,Ie=(t,e)=>Mn.call(t,e),Wn=/^--?/,Gn=/[.:=]/,jn=t=>{let e=t.replace(Wn,""),u,r=e.match(Gn);if(r!=null&&r.index){let n=r.index;u=e.slice(n+1),e=e.slice(0,n)}return{flagName:e,flagValue:u}},Un=/[\s.:=]/,Kn=(t,e)=>{let u=`Invalid flag name ${Ae(e)}:`;if(e.length===0)throw new Error(`${u} flag name cannot be empty}`);if(e.length===1)throw new Error(`${u} single characters are reserved for aliases`);let r=e.match(Un);if(r)throw new Error(`${u} flag name cannot contain the character ${Ae(r==null?void 0:r[0])}`);let n;if(yu.test(e)?n=wu(e):Ru.test(e)&&(n=kn(e)),n&&Ie(t,n))throw new Error(`${u} collides with flag ${Ae(n)}`)};function Vn(t){let e=new Map;for(let u in t){if(!Ie(t,u))continue;Kn(t,u);let r=t[u];if(r&&typeof r=="object"){let{alias:n}=r;if(typeof n=="string"){if(n.length===0)throw new Error(`Invalid flag alias ${Ae(u)}: flag alias cannot be empty`);if(n.length>1)throw new Error(`Invalid flag alias ${Ae(u)}: flag aliases can only be a single-character`);if(e.has(n))throw new Error(`Flag collision: Alias "${n}" is already used`);e.set(n,{name:u,schema:r})}}}return e}var zn=t=>!t||typeof t=="function"?!1:Array.isArray(t)||Array.isArray(t.type),Yn=t=>{let e={};for(let u in t)Ie(t,u)&&(e[u]=zn(t[u])?[]:void 0);return e},ot=(t,e)=>t===Number&&e===""?Number.NaN:t===Boolean?e!=="false":e,qn=(t,e)=>{for(let u in t){if(!Ie(t,u))continue;let r=t[u];if(!r)continue;let n=e[u];if(!(n!==void 0&&!(Array.isArray(n)&&n.length===0))&&"default"in r){let s=r.default;typeof s=="function"&&(s=s()),e[u]=s}}},bu=(t,e)=>{if(!e)throw new Error(`Missing type on flag "${t}"`);return typeof e=="function"?e:Array.isArray(e)?e[0]:bu(t,e.type)},Xn=/^-[\da-z]+/i,Qn=/^--[\w-]{2,}/,at="--";function Zn(t,e=process.argv.slice(2)){let u=Vn(t),r={flags:Yn(t),unknownFlags:{},_:Object.assign([],{[at]:[]})},n,s=(i,o,a)=>{let c=bu(i,o);a=ot(c,a),a!==void 0&&!Number.isNaN(a)?Array.isArray(r.flags[i])?r.flags[i].push(c(a)):r.flags[i]=c(a):n=f=>{Array.isArray(r.flags[i])?r.flags[i].push(c(ot(c,f||""))):r.flags[i]=c(ot(c,f||"")),n=void 0}},D=(i,o)=>{i in r.unknownFlags||(r.unknownFlags[i]=[]),o!==void 0?r.unknownFlags[i].push(o):n=(a=!0)=>{r.unknownFlags[i].push(a),n=void 0}};for(let i=0;i<e.length;i+=1){let o=e[i];if(o===at){let c=e.slice(i+1);r._[at]=c,r._.push(...c);break}let a=Xn.test(o);if(Qn.test(o)||a){n&&n();let c=jn(o),{flagValue:f}=c,{flagName:l}=c;if(a){for(let p=0;p<l.length;p+=1){let F=l[p],A=u.get(F),B=p===l.length-1;A?s(A.name,A.schema,B?f:!0):D(F,B?f:!0)}continue}let C=t[l];if(!C){let p=wu(l);C=t[p],C&&(l=p)}if(!C){D(l,f);continue}s(l,C,f)}else n?n(o):r._.push(o)}return n&&n(),qn(t,r.flags),r}var Jn=Object.create,ke=Object.defineProperty,es=Object.defineProperties,ts=Object.getOwnPropertyDescriptor,us=Object.getOwnPropertyDescriptors,rs=Object.getOwnPropertyNames,vu=Object.getOwnPropertySymbols,ns=Object.getPrototypeOf,Bu=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable,Su=(t,e,u)=>e in t?ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,Me=(t,e)=>{for(var u in e||(e={}))Bu.call(e,u)&&Su(t,u,e[u]);if(vu)for(var u of vu(e))ss.call(e,u)&&Su(t,u,e[u]);return t},lt=(t,e)=>es(t,us(e)),is=t=>ke(t,"__esModule",{value:!0}),Ds=(t,e)=>()=>(t&&(e=t(t=0)),e),os=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),as=(t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of rs(e))!Bu.call(t,n)&&(u||n!=="default")&&ke(t,n,{get:()=>e[n],enumerable:!(r=ts(e,n))||r.enumerable});return t},ls=(t,e)=>as(is(ke(t!=null?Jn(ns(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),K=Ds(()=>{}),cs=os((t,e)=>{K(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});K(),K(),K();var fs=t=>{var e,u,r;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(n)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:n}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(r=t.stdoutColumns)!=null?r:n}};K(),K(),K(),K(),K();function hs({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}function $u(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(hs(),"")}K();function ds(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}var Es=ls(cs(),1);function ae(t){if(typeof t!="string"||t.length===0||(t=$u(t),t.length===0))return 0;t=t.replace((0,Es.default)()," ");let e=0;for(let u=0;u<t.length;u++){let r=t.codePointAt(u);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&u++,e+=ds(r)?2:1)}return e}var Tu=t=>Math.max(...t.split(`
3
- `).map(ae)),ps=t=>{let e=[];for(let u of t){let{length:r}=u,n=r-e.length;for(let s=0;s<n;s+=1)e.push(0);for(let s=0;s<r;s+=1){let D=Tu(u[s]);D>e[s]&&(e[s]=D)}}return e};K();var xu=/^\d+%$/,Ou={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Cs=(t,e)=>{var u;let r=[];for(let n=0;n<t.length;n+=1){let s=(u=e[n])!=null?u:"auto";if(typeof s=="number"||s==="auto"||s==="content-width"||typeof s=="string"&&xu.test(s)){r.push(lt(Me({},Ou),{width:s,contentWidth:t[n]}));continue}if(s&&typeof s=="object"){let D=lt(Me(Me({},Ou),s),{contentWidth:t[n]});D.horizontalPadding=D.paddingLeft+D.paddingRight,r.push(D);continue}throw new Error(`Invalid column width: ${JSON.stringify(s)}`)}return r};function Fs(t,e){for(let u of t){let{width:r}=u;if(r==="content-width"&&(u.width=u.contentWidth),r==="auto"){let o=Math.min(20,u.contentWidth);u.width=o,u.autoOverflow=u.contentWidth-o}if(typeof r=="string"&&xu.test(r)){let o=Number.parseFloat(r.slice(0,-1))/100;u.width=Math.floor(e*o)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:n}=u,s=1,D=s+n;if(D>=e){let o=D-e,a=Math.ceil(u.paddingLeft/n*o),c=o-a;u.paddingLeft-=a,u.paddingRight-=c,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let i=e-u.horizontalPadding;u.width=Math.max(Math.min(u.width,i),s)}}var Nu=()=>Object.assign([],{columns:0});function gs(t,e){let u=[Nu()],[r]=u;for(let n of t){let s=n.width+n.horizontalPadding;r.columns+s>e&&(r=Nu(),u.push(r)),r.push(n),r.columns+=s}for(let n of u){let s=n.reduce((l,C)=>l+C.width+C.horizontalPadding,0),D=e-s;if(D===0)continue;let i=n.filter(l=>"autoOverflow"in l),o=i.filter(l=>l.autoOverflow>0),a=o.reduce((l,C)=>l+C.autoOverflow,0),c=Math.min(a,D);for(let l of o){let C=Math.floor(l.autoOverflow/a*c);l.width+=C,D-=C}let f=Math.floor(D/i.length);for(let l=0;l<i.length;l+=1){let C=i[l];l===i.length-1?C.width+=D:C.width+=f,D-=f}}return u}function _s(t,e,u){let r=Cs(u,e);return Fs(r,t),gs(r,t)}K(),K(),K();var ct=10,Hu=(t=0)=>e=>`\x1B[${e+t}m`,Pu=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Lu=(t=0)=>(e,u,r)=>`\x1B[${38+t};2;${e};${u};${r}m`;function ms(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[u,r]of Object.entries(e)){for(let[n,s]of Object.entries(r))e[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=e[n],t.set(s[0],s[1]);Object.defineProperty(e,u,{value:r,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Hu(),e.color.ansi256=Pu(),e.color.ansi16m=Lu(),e.bgColor.ansi=Hu(ct),e.bgColor.ansi256=Pu(ct),e.bgColor.ansi16m=Lu(ct),Object.defineProperties(e,{rgbToAnsi256:{value:(u,r,n)=>u===r&&r===n?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:u=>{let r=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!r)return[0,0,0];let{colorString:n}=r.groups;n.length===3&&(n=n.split("").map(D=>D+D).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:u=>e.rgbToAnsi256(...e.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let r,n,s;if(u>=232)r=((u-232)*10+8)/255,n=r,s=r;else{u-=16;let o=u%36;r=Math.floor(u/36)/5,n=Math.floor(o/6)/5,s=o%6/5}let D=Math.max(r,n,s)*2;if(D===0)return 30;let i=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return D===2&&(i+=60),i},enumerable:!1},rgbToAnsi:{value:(u,r,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(u,r,n)),enumerable:!1},hexToAnsi:{value:u=>e.ansi256ToAnsi(e.hexToAnsi256(u)),enumerable:!1}}),e}var As=ms(),ys=As,We=new Set(["\x1B","\x9B"]),ws=39,ft="\x07",Iu="[",Rs="]",ku="m",ht=`${Rs}8;;`,Mu=t=>`${We.values().next().value}${Iu}${t}${ku}`,Wu=t=>`${We.values().next().value}${ht}${t}${ft}`,bs=t=>t.split(" ").map(e=>ae(e)),dt=(t,e,u)=>{let r=[...e],n=!1,s=!1,D=ae($u(t[t.length-1]));for(let[i,o]of r.entries()){let a=ae(o);if(D+a<=u?t[t.length-1]+=o:(t.push(o),D=0),We.has(o)&&(n=!0,s=r.slice(i+1).join("").startsWith(ht)),n){s?o===ft&&(n=!1,s=!1):o===ku&&(n=!1);continue}D+=a,D===u&&i<r.length-1&&(t.push(""),D=0)}!D&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},vs=t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(ae(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")},Bs=(t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let r="",n,s,D=bs(t),i=[""];for(let[a,c]of t.split(" ").entries()){u.trim!==!1&&(i[i.length-1]=i[i.length-1].trimStart());let f=ae(i[i.length-1]);if(a!==0&&(f>=e&&(u.wordWrap===!1||u.trim===!1)&&(i.push(""),f=0),(f>0||u.trim===!1)&&(i[i.length-1]+=" ",f++)),u.hard&&D[a]>e){let l=e-f,C=1+Math.floor((D[a]-l-1)/e);Math.floor((D[a]-1)/e)<C&&i.push(""),dt(i,c,e);continue}if(f+D[a]>e&&f>0&&D[a]>0){if(u.wordWrap===!1&&f<e){dt(i,c,e);continue}i.push("")}if(f+D[a]>e&&u.wordWrap===!1){dt(i,c,e);continue}i[i.length-1]+=c}u.trim!==!1&&(i=i.map(a=>vs(a)));let o=[...i.join(`
4
- `)];for(let[a,c]of o.entries()){if(r+=c,We.has(c)){let{groups:l}=new RegExp(`(?:\\${Iu}(?<code>\\d+)m|\\${ht}(?<uri>.*)${ft})`).exec(o.slice(a).join(""))||{groups:{}};if(l.code!==void 0){let C=Number.parseFloat(l.code);n=C===ws?void 0:C}else l.uri!==void 0&&(s=l.uri.length===0?void 0:l.uri)}let f=ys.codes.get(Number(n));o[a+1]===`
5
- `?(s&&(r+=Wu("")),n&&f&&(r+=Mu(f))):c===`
6
- `&&(n&&f&&(r+=Mu(n)),s&&(r+=Wu(s)))}return r};function Ss(t,e,u){return String(t).normalize().replace(/\r\n/g,`
2
+ var Lr=Object.defineProperty,kr=Object.defineProperties;var Mr=Object.getOwnPropertyDescriptors;var yu=Object.getOwnPropertySymbols;var Wr=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable;var wu=(t,e,u)=>e in t?Lr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,M=(t,e)=>{for(var u in e||(e={}))Wr.call(e,u)&&wu(t,u,e[u]);if(yu)for(var u of yu(e))jr.call(e,u)&&wu(t,u,e[u]);return t},De=(t,e)=>kr(t,Mr(e));import{r as ke}from"./pkgroll_create-require-aa02bf11.js";import Gr from"tty";import{v as Ur}from"./package-1447d2cf.js";import{pathToFileURL as Kr,fileURLToPath as Vr}from"url";import zr from"child_process";import z from"path";import oe from"fs";import Yr from"events";import ye from"util";import qr from"stream";import Ru from"os";import"module";const bu=/-(\w)/g,vu=t=>t.replace(bu,(e,u)=>u.toUpperCase()),Bu=/\B([A-Z])/g,Xr=t=>t.replace(Bu,"-$1").toLowerCase(),{stringify:we}=JSON,{hasOwnProperty:Qr}=Object.prototype,Me=(t,e)=>Qr.call(t,e),Zr=/^--?/,Jr=/[.:=]/,es=t=>{let e=t.replace(Zr,""),u;const n=e.match(Jr);if(n!=null&&n.index){const r=n.index;u=e.slice(r+1),e=e.slice(0,r)}return{flagName:e,flagValue:u}},ts=/[\s.:=]/,us=(t,e)=>{const u=`Invalid flag name ${we(e)}:`;if(e.length===0)throw new Error(`${u} flag name cannot be empty}`);if(e.length===1)throw new Error(`${u} single characters are reserved for aliases`);const n=e.match(ts);if(n)throw new Error(`${u} flag name cannot contain the character ${we(n==null?void 0:n[0])}`);let r;if(bu.test(e)?r=vu(e):Bu.test(e)&&(r=Xr(e)),r&&Me(t,r))throw new Error(`${u} collides with flag ${we(r)}`)};function ns(t){const e=new Map;for(const u in t){if(!Me(t,u))continue;us(t,u);const n=t[u];if(n&&typeof n=="object"){const{alias:r}=n;if(typeof r=="string"){if(r.length===0)throw new Error(`Invalid flag alias ${we(u)}: flag alias cannot be empty`);if(r.length>1)throw new Error(`Invalid flag alias ${we(u)}: flag aliases can only be a single-character`);if(e.has(r))throw new Error(`Flag collision: Alias "${r}" is already used`);e.set(r,{name:u,schema:n})}}}return e}const rs=t=>!t||typeof t=="function"?!1:Array.isArray(t)||Array.isArray(t.type),ss=t=>{const e={};for(const u in t)Me(t,u)&&(e[u]=rs(t[u])?[]:void 0);return e},lt=(t,e)=>t===Number&&e===""?Number.NaN:t===Boolean?e!=="false":e,is=(t,e)=>{for(const u in t){if(!Me(t,u))continue;const n=t[u];if(!n)continue;const r=e[u];if(!(r!==void 0&&!(Array.isArray(r)&&r.length===0))&&"default"in n){let s=n.default;typeof s=="function"&&(s=s()),e[u]=s}}},Su=(t,e)=>{if(!e)throw new Error(`Missing type on flag "${t}"`);return typeof e=="function"?e:Array.isArray(e)?e[0]:Su(t,e.type)},Ds=/^-[\da-z]+/i,os=/^--[\w-]{2,}/,ct="--";function ft(t,e=process.argv.slice(2),u={}){const n=ns(t),r={flags:ss(t),unknownFlags:{},_:Object.assign([],{[ct]:[]})};let s;const i=(o,a,c)=>{const f=Su(o,a);c=lt(f,c),c!==void 0&&!Number.isNaN(c)?Array.isArray(r.flags[o])?r.flags[o].push(f(c)):r.flags[o]=f(c):s=l=>{Array.isArray(r.flags[o])?r.flags[o].push(f(lt(f,l||""))):r.flags[o]=f(lt(f,l||"")),s=void 0}},D=(o,a)=>{o in r.unknownFlags||(r.unknownFlags[o]=[]),a!==void 0?r.unknownFlags[o].push(a):s=(c=!0)=>{r.unknownFlags[o].push(c),s=void 0}};for(let o=0;o<e.length;o+=1){const a=e[o];if(a===ct){const f=e.slice(o+1);r._[ct]=f,r._.push(...f);break}const c=Ds.test(a);if(os.test(a)||c){s&&s();const f=es(a),{flagValue:l}=f;let{flagName:p}=f;if(c){for(let F=0;F<p.length;F+=1){const y=p[F],b=n.get(y),N=F===p.length-1;b?i(b.name,b.schema,N?l:!0):u!=null&&u.ignoreUnknown?r._.push(a):D(y,N?l:!0)}continue}let C=t[p];if(!C){const F=vu(p);C=t[F],C&&(p=F)}if(!C){u!=null&&u.ignoreUnknown?r._.push(a):D(p,l);continue}i(p,C,l)}else s?s(a):r._.push(a)}return s&&s(),is(t,r.flags),r}var as=Object.create,We=Object.defineProperty,ls=Object.defineProperties,cs=Object.getOwnPropertyDescriptor,fs=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertyNames,$u=Object.getOwnPropertySymbols,ds=Object.getPrototypeOf,Tu=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,xu=(t,e,u)=>e in t?We(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,je=(t,e)=>{for(var u in e||(e={}))Tu.call(e,u)&&xu(t,u,e[u]);if($u)for(var u of $u(e))Es.call(e,u)&&xu(t,u,e[u]);return t},ht=(t,e)=>ls(t,fs(e)),ps=t=>We(t,"__esModule",{value:!0}),Cs=(t,e)=>()=>(t&&(e=t(t=0)),e),Fs=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),gs=(t,e,u,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of hs(e))!Tu.call(t,r)&&(u||r!=="default")&&We(t,r,{get:()=>e[r],enumerable:!(n=cs(e,r))||n.enumerable});return t},_s=(t,e)=>gs(ps(We(t!=null?as(ds(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),K=Cs(()=>{}),ms=Fs((t,e)=>{K(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});K(),K(),K();var As=t=>{var e,u,n;let r=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(r)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:r}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(n=t.stdoutColumns)!=null?n:r}};K(),K(),K(),K(),K();function ys({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}function Ou(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(ys(),"")}K();function ws(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}var Rs=_s(ms(),1);function ae(t){if(typeof t!="string"||t.length===0||(t=Ou(t),t.length===0))return 0;t=t.replace((0,Rs.default)()," ");let e=0;for(let u=0;u<t.length;u++){let n=t.codePointAt(u);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&u++,e+=ws(n)?2:1)}return e}var Nu=t=>Math.max(...t.split(`
3
+ `).map(ae)),bs=t=>{let e=[];for(let u of t){let{length:n}=u,r=n-e.length;for(let s=0;s<r;s+=1)e.push(0);for(let s=0;s<n;s+=1){let i=Nu(u[s]);i>e[s]&&(e[s]=i)}}return e};K();var Pu=/^\d+%$/,Hu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},vs=(t,e)=>{var u;let n=[];for(let r=0;r<t.length;r+=1){let s=(u=e[r])!=null?u:"auto";if(typeof s=="number"||s==="auto"||s==="content-width"||typeof s=="string"&&Pu.test(s)){n.push(ht(je({},Hu),{width:s,contentWidth:t[r]}));continue}if(s&&typeof s=="object"){let i=ht(je(je({},Hu),s),{contentWidth:t[r]});i.horizontalPadding=i.paddingLeft+i.paddingRight,n.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(s)}`)}return n};function Bs(t,e){for(let u of t){let{width:n}=u;if(n==="content-width"&&(u.width=u.contentWidth),n==="auto"){let o=Math.min(20,u.contentWidth);u.width=o,u.autoOverflow=u.contentWidth-o}if(typeof n=="string"&&Pu.test(n)){let o=Number.parseFloat(n.slice(0,-1))/100;u.width=Math.floor(e*o)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:r}=u,s=1,i=s+r;if(i>=e){let o=i-e,a=Math.ceil(u.paddingLeft/r*o),c=o-a;u.paddingLeft-=a,u.paddingRight-=c,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let D=e-u.horizontalPadding;u.width=Math.max(Math.min(u.width,D),s)}}var Iu=()=>Object.assign([],{columns:0});function Ss(t,e){let u=[Iu()],[n]=u;for(let r of t){let s=r.width+r.horizontalPadding;n.columns+s>e&&(n=Iu(),u.push(n)),n.push(r),n.columns+=s}for(let r of u){let s=r.reduce((l,p)=>l+p.width+p.horizontalPadding,0),i=e-s;if(i===0)continue;let D=r.filter(l=>"autoOverflow"in l),o=D.filter(l=>l.autoOverflow>0),a=o.reduce((l,p)=>l+p.autoOverflow,0),c=Math.min(a,i);for(let l of o){let p=Math.floor(l.autoOverflow/a*c);l.width+=p,i-=p}let f=Math.floor(i/D.length);for(let l=0;l<D.length;l+=1){let p=D[l];l===D.length-1?p.width+=i:p.width+=f,i-=f}}return u}function $s(t,e,u){let n=vs(u,e);return Bs(n,t),Ss(n,t)}K(),K(),K();var dt=10,Lu=(t=0)=>e=>`\x1B[${e+t}m`,ku=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Mu=(t=0)=>(e,u,n)=>`\x1B[${38+t};2;${e};${u};${n}m`;function Ts(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[u,n]of Object.entries(e)){for(let[r,s]of Object.entries(n))e[r]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[r]=e[r],t.set(s[0],s[1]);Object.defineProperty(e,u,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Lu(),e.color.ansi256=ku(),e.color.ansi16m=Mu(),e.bgColor.ansi=Lu(dt),e.bgColor.ansi256=ku(dt),e.bgColor.ansi16m=Mu(dt),Object.defineProperties(e,{rgbToAnsi256:{value:(u,n,r)=>u===n&&n===r?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:u=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!n)return[0,0,0];let{colorString:r}=n.groups;r.length===3&&(r=r.split("").map(i=>i+i).join(""));let s=Number.parseInt(r,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:u=>e.rgbToAnsi256(...e.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let n,r,s;if(u>=232)n=((u-232)*10+8)/255,r=n,s=n;else{u-=16;let o=u%36;n=Math.floor(u/36)/5,r=Math.floor(o/6)/5,s=o%6/5}let i=Math.max(n,r,s)*2;if(i===0)return 30;let D=30+(Math.round(s)<<2|Math.round(r)<<1|Math.round(n));return i===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(u,n,r)=>e.ansi256ToAnsi(e.rgbToAnsi256(u,n,r)),enumerable:!1},hexToAnsi:{value:u=>e.ansi256ToAnsi(e.hexToAnsi256(u)),enumerable:!1}}),e}var xs=Ts(),Os=xs,Ge=new Set(["\x1B","\x9B"]),Ns=39,Et="\x07",Wu="[",Ps="]",ju="m",pt=`${Ps}8;;`,Gu=t=>`${Ge.values().next().value}${Wu}${t}${ju}`,Uu=t=>`${Ge.values().next().value}${pt}${t}${Et}`,Hs=t=>t.split(" ").map(e=>ae(e)),Ct=(t,e,u)=>{let n=[...e],r=!1,s=!1,i=ae(Ou(t[t.length-1]));for(let[D,o]of n.entries()){let a=ae(o);if(i+a<=u?t[t.length-1]+=o:(t.push(o),i=0),Ge.has(o)&&(r=!0,s=n.slice(D+1).join("").startsWith(pt)),r){s?o===Et&&(r=!1,s=!1):o===ju&&(r=!1);continue}i+=a,i===u&&D<n.length-1&&(t.push(""),i=0)}!i&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},Is=t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(ae(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")},Ls=(t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let n="",r,s,i=Hs(t),D=[""];for(let[a,c]of t.split(" ").entries()){u.trim!==!1&&(D[D.length-1]=D[D.length-1].trimStart());let f=ae(D[D.length-1]);if(a!==0&&(f>=e&&(u.wordWrap===!1||u.trim===!1)&&(D.push(""),f=0),(f>0||u.trim===!1)&&(D[D.length-1]+=" ",f++)),u.hard&&i[a]>e){let l=e-f,p=1+Math.floor((i[a]-l-1)/e);Math.floor((i[a]-1)/e)<p&&D.push(""),Ct(D,c,e);continue}if(f+i[a]>e&&f>0&&i[a]>0){if(u.wordWrap===!1&&f<e){Ct(D,c,e);continue}D.push("")}if(f+i[a]>e&&u.wordWrap===!1){Ct(D,c,e);continue}D[D.length-1]+=c}u.trim!==!1&&(D=D.map(a=>Is(a)));let o=[...D.join(`
4
+ `)];for(let[a,c]of o.entries()){if(n+=c,Ge.has(c)){let{groups:l}=new RegExp(`(?:\\${Wu}(?<code>\\d+)m|\\${pt}(?<uri>.*)${Et})`).exec(o.slice(a).join(""))||{groups:{}};if(l.code!==void 0){let p=Number.parseFloat(l.code);r=p===Ns?void 0:p}else l.uri!==void 0&&(s=l.uri.length===0?void 0:l.uri)}let f=Os.codes.get(Number(r));o[a+1]===`
5
+ `?(s&&(n+=Uu("")),r&&f&&(n+=Gu(f))):c===`
6
+ `&&(r&&f&&(n+=Gu(r)),s&&(n+=Uu(s)))}return n};function ks(t,e,u){return String(t).normalize().replace(/\r\n/g,`
7
7
  `).split(`
8
- `).map(r=>Bs(r,e,u)).join(`
9
- `)}var Gu=t=>Array.from({length:t}).fill("");function $s(t,e){let u=[],r=0;for(let n of t){let s=0,D=n.map(o=>{var a;let c=(a=e[r])!=null?a:"";r+=1,o.preprocess&&(c=o.preprocess(c)),Tu(c)>o.width&&(c=Ss(c,o.width,{hard:!0}));let f=c.split(`
10
- `);if(o.postprocess){let{postprocess:l}=o;f=f.map((C,p)=>l.call(o,C,p))}return o.paddingTop&&f.unshift(...Gu(o.paddingTop)),o.paddingBottom&&f.push(...Gu(o.paddingBottom)),f.length>s&&(s=f.length),lt(Me({},o),{lines:f})}),i=[];for(let o=0;o<s;o+=1){let a=D.map(c=>{var f;let l=(f=c.lines[o])!=null?f:"",C=Number.isFinite(c.width)?" ".repeat(c.width-ae(l)):"",p=c.paddingLeftString;return c.align==="right"&&(p+=C),p+=l,c.align==="left"&&(p+=C),p+c.paddingRightString}).join("");i.push(a)}u.push(i.join(`
8
+ `).map(n=>Ls(n,e,u)).join(`
9
+ `)}var Ku=t=>Array.from({length:t}).fill("");function Ms(t,e){let u=[],n=0;for(let r of t){let s=0,i=r.map(o=>{var a;let c=(a=e[n])!=null?a:"";n+=1,o.preprocess&&(c=o.preprocess(c)),Nu(c)>o.width&&(c=ks(c,o.width,{hard:!0}));let f=c.split(`
10
+ `);if(o.postprocess){let{postprocess:l}=o;f=f.map((p,C)=>l.call(o,p,C))}return o.paddingTop&&f.unshift(...Ku(o.paddingTop)),o.paddingBottom&&f.push(...Ku(o.paddingBottom)),f.length>s&&(s=f.length),ht(je({},o),{lines:f})}),D=[];for(let o=0;o<s;o+=1){let a=i.map(c=>{var f;let l=(f=c.lines[o])!=null?f:"",p=Number.isFinite(c.width)?" ".repeat(c.width-ae(l)):"",C=c.paddingLeftString;return c.align==="right"&&(C+=p),C+=l,c.align==="left"&&(C+=p),C+c.paddingRightString}).join("");D.push(a)}u.push(D.join(`
11
11
  `))}return u.join(`
12
- `)}function Ts(t,e){if(!t||t.length===0)return"";let u=ps(t),r=u.length;if(r===0)return"";let{stdoutColumns:n,columns:s}=fs(e);if(s.length>r)throw new Error(`${s.length} columns defined, but only ${r} columns found`);let D=_s(n,s,u);return t.map(i=>$s(D,i)).join(`
13
- `)}K();var xs=["<",">","=",">=","<="];function Os(t){if(!xs.includes(t))throw new TypeError(`Invalid breakpoint operator: ${t}`)}function Ns(t){let e=Object.keys(t).map(u=>{let[r,n]=u.split(" ");Os(r);let s=Number.parseInt(n,10);if(Number.isNaN(s))throw new TypeError(`Invalid breakpoint value: ${n}`);let D=t[u];return{operator:r,breakpoint:s,value:D}}).sort((u,r)=>r.breakpoint-u.breakpoint);return u=>{var r;return(r=e.find(({operator:n,breakpoint:s})=>n==="="&&u===s||n===">"&&u>s||n==="<"&&u<s||n===">="&&u>=s||n==="<="&&u<=s))==null?void 0:r.value}}const Hs=t=>t.replace(/[-_ ](\w)/g,(e,u)=>u.toUpperCase()),Ps=t=>t.replace(/\B([A-Z])/g,"-$1").toLowerCase(),Ls={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:t=>t.trim()},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function Is(t){let e=!1;const u=Object.keys(t).sort((r,n)=>r.localeCompare(n)).map(r=>{const n=t[r],s="alias"in n;return s&&(e=!0),{name:r,flag:n,flagFormatted:`--${Ps(r)}`,aliasesEnabled:e,aliasFormatted:s?`-${n.alias}`:void 0}}).map(r=>(r.aliasesEnabled=e,[{type:"flagName",data:r},{type:"flagDescription",data:r}]));return{type:"table",data:{tableData:u,tableBreakpoints:Ls}}}const ju=t=>{var e;return!t||((e=t.version)!=null?e:t.help?t.help.version:void 0)},Uu=t=>{var e;const u="parent"in t&&((e=t.parent)==null?void 0:e.name);return(u?`${u} `:"")+t.name};function ks(t){var e;const u=[];t.name&&u.push(Uu(t));const r=(e=ju(t))!=null?e:"parent"in t&&ju(t.parent);if(r&&u.push(`v${r}`),u.length!==0)return{id:"name",type:"text",data:`${u.join(" ")}
14
- `}}function Ms(t){const{help:e}=t;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
15
- `}}function Ws(t){var e;const u=t.help||{};if("usage"in u)return u.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(u.usage)?u.usage.join(`
16
- `):u.usage}}:void 0;if(t.name){const r=[],n=[Uu(t)];if(t.flags&&Object.keys(t.flags).length>0&&n.push("[flags...]"),t.parameters&&t.parameters.length>0){const{parameters:s}=t,D=s.indexOf("--"),i=D>-1&&s.slice(D+1).some(o=>o.startsWith("<"));n.push(s.map(o=>o!=="--"?o:i?"--":"[--]").join(" "))}if(n.length>1&&r.push(n.join(" ")),"commands"in t&&((e=t.commands)==null?void 0:e.length)&&r.push(`${t.name} <command>`),r.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:r.join(`
17
- `)}}}}function Gs(t){var e;if(!("commands"in t)||!((e=t.commands)!=null&&e.length))return;const u=t.commands.map(r=>[r.options.name,r.options.help?r.options.help.description:""]);return{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u,tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}function js(t){if(!(!t.flags||Object.keys(t.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Is(t.flags),indentBody:0}}}function Us(t){const{help:e}=t;if(!e||!e.examples||e.examples.length===0)return;let{examples:u}=e;if(Array.isArray(u)&&(u=u.join(`
18
- `)),u)return{id:"examples",type:"section",data:{title:"Examples:",body:u}}}function Ks(t){if(!("alias"in t)||!t.alias)return;const{alias:e}=t,u=Array.isArray(e)?e.join(", "):e;return{id:"aliases",type:"section",data:{title:"Aliases:",body:u}}}const Vs=t=>[ks,Ms,Ws,Gs,js,Us,Ks].map(e=>e(t)).filter(e=>Boolean(e)),zs=xn.WriteStream.prototype.hasColors();class Ys{text(e){return e}bold(e){return zs?`\x1B[1m${e}\x1B[22m`:e.toLocaleUpperCase()}indentText({text:e,spaces:u}){return e.replace(/^/gm," ".repeat(u))}heading(e){return this.bold(e)}section({title:e,body:u,indentBody:r=2}){return`${(e?`${this.heading(e)}
19
- `:"")+(u?this.indentText({text:this.render(u),spaces:r}):"")}
20
- `}table({tableData:e,tableOptions:u,tableBreakpoints:r}){return Ts(e.map(n=>n.map(s=>this.render(s))),r?Ns(r):u)}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:u,flagFormatted:r,aliasesEnabled:n,aliasFormatted:s}=e;let D="";if(s?D+=`${s}, `:n&&(D+=" "),D+=r,"placeholder"in u&&typeof u.placeholder=="string")D+=`${this.flagOperator(e)}${u.placeholder}`;else{const i=this.flagParameter("type"in u?u.type:u);i&&(D+=`${this.flagOperator(e)}${i}`)}return D}flagDefault(e){return JSON.stringify(e)}flagDescription({flag:e}){var u;let r="description"in e&&(u=e.description)!=null?u:"";if("default"in e){let{default:n}=e;typeof n=="function"&&(n=n()),n&&(r+=` (default: ${this.flagDefault(n)})`)}return r}render(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(u=>this.render(u)).join(`
21
- `);if("type"in e&&this[e.type]){const u=this[e.type];if(typeof u=="function")return u.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const Et=/^[\w.-]+$/;var qs=Object.defineProperty,Xs=Object.defineProperties,Qs=Object.getOwnPropertyDescriptors,Ku=Object.getOwnPropertySymbols,Zs=Object.prototype.hasOwnProperty,Js=Object.prototype.propertyIsEnumerable,Vu=(t,e,u)=>e in t?qs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,he=(t,e)=>{for(var u in e||(e={}))Zs.call(e,u)&&Vu(t,u,e[u]);if(Ku)for(var u of Ku(e))Js.call(e,u)&&Vu(t,u,e[u]);return t},pt=(t,e)=>Xs(t,Qs(e));const{stringify:ee}=JSON,ei=/[|\\{}()[\]^$+*?.]/;function Ct(t){const e=[];let u,r;for(const n of t){if(r)throw new Error(`Invalid parameter: Spread parameter ${ee(r)} must be last`);const s=n[0],D=n[n.length-1];let i;if(s==="<"&&D===">"&&(i=!0,u))throw new Error(`Invalid parameter: Required parameter ${ee(n)} cannot come after optional parameter ${ee(u)}`);if(s==="["&&D==="]"&&(i=!1,u=n),i===void 0)throw new Error(`Invalid parameter: ${ee(n)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let o=n.slice(1,-1);const a=o.slice(-3)==="...";a&&(r=n,o=o.slice(0,-3));const c=o.match(ei);if(c)throw new Error(`Invalid parameter: ${ee(n)}. Invalid character found ${ee(c[0])}`);e.push({name:o,required:i,spread:a})}return e}function Ft(t,e,u,r){for(let n=0;n<e.length;n+=1){const{name:s,required:D,spread:i}=e[n],o=Hs(s);if(o in t)throw new Error(`Invalid parameter: ${ee(s)} is used more than once.`);const a=i?u.slice(n):u[n];if(i&&(n=e.length),D&&(!a||i&&a.length===0))return console.error(`Error: Missing required parameter ${ee(s)}
22
- `),r(),process.exit(1);t[o]=a}}function ti(t){return t===void 0||t!==!1}function zu(t,e,u,r){const n=he({},e.flags),s=e.version;s&&(n.version={type:Boolean,description:"Show version"});const{help:D}=e,i=ti(D);i&&!("help"in n)&&(n.help={type:Boolean,alias:"h",description:"Show help"});const o=Zn(n,r),a=()=>{console.log(e.version)};if(s&&o.flags.version===!0)return a(),process.exit(0);const c=new Ys,f=i&&(D==null?void 0:D.render)?D.render:p=>c.render(p),l=p=>{const F=Vs(pt(he(he({},e),p?{help:p}:{}),{flags:n}));console.log(f(F,c))};if(i&&o.flags.help===!0)return l(),process.exit(0);if(e.parameters){let{parameters:p}=e,F=o._;const A=p.indexOf("--"),B=p.slice(A+1),H=Object.create(null);if(A>-1&&B.length>0){p=p.slice(0,A);const S=o._["--"];F=F.slice(0,-S.length||void 0),Ft(H,Ct(p),F,l),Ft(H,Ct(B),S,l)}else Ft(H,Ct(p),F,l);Object.assign(o._,H)}const C=pt(he({},o),{showVersion:a,showHelp:l});return typeof u=="function"&&u(C),he({command:t},C)}function ui(t,e){const u=new Map;for(const r of e){const n=[r.options.name],{alias:s}=r.options;s&&(Array.isArray(s)?n.push(...s):n.push(s));for(const D of n){if(u.has(D))throw new Error(`Duplicate command name found: ${ee(D)}`);u.set(D,r)}}return u.get(t)}function ri(t,e,u=process.argv.slice(2)){if(!t)throw new Error("Options is required");if("name"in t&&(!t.name||!Et.test(t.name)))throw new Error(`Invalid script name: ${ee(t.name)}`);const r=u[0];if(t.commands&&Et.test(r)){const n=ui(r,t.commands);if(n)return zu(n.options.name,pt(he({},n.options),{parent:t}),n.callback,u.slice(1))}return zu(void 0,t,e,u)}function ni(t,e){if(!t)throw new Error("Command options are required");const{name:u}=t;if(t.name===void 0)throw new Error("Command name is required");if(!Et.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:t,callback:e}}var si=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},de={exports:{}},gt,Yu;function ii(){if(Yu)return gt;Yu=1,gt=r,r.sync=n;var t=oe;function e(s,D){var i=D.pathExt!==void 0?D.pathExt:process.env.PATHEXT;if(!i||(i=i.split(";"),i.indexOf("")!==-1))return!0;for(var o=0;o<i.length;o++){var a=i[o].toLowerCase();if(a&&s.substr(-a.length).toLowerCase()===a)return!0}return!1}function u(s,D,i){return!s.isSymbolicLink()&&!s.isFile()?!1:e(D,i)}function r(s,D,i){t.stat(s,function(o,a){i(o,o?!1:u(a,s,D))})}function n(s,D){return u(t.statSync(s),s,D)}return gt}var _t,qu;function Di(){if(qu)return _t;qu=1,_t=e,e.sync=u;var t=oe;function e(s,D,i){t.stat(s,function(o,a){i(o,o?!1:r(a,D))})}function u(s,D){return r(t.statSync(s),D)}function r(s,D){return s.isFile()&&n(s,D)}function n(s,D){var i=s.mode,o=s.uid,a=s.gid,c=D.uid!==void 0?D.uid:process.getuid&&process.getuid(),f=D.gid!==void 0?D.gid:process.getgid&&process.getgid(),l=parseInt("100",8),C=parseInt("010",8),p=parseInt("001",8),F=l|C,A=i&p||i&C&&a===f||i&l&&o===c||i&F&&c===0;return A}return _t}var Ge;process.platform==="win32"||si.TESTING_WINDOWS?Ge=ii():Ge=Di();var oi=mt;mt.sync=ai;function mt(t,e,u){if(typeof e=="function"&&(u=e,e={}),!u){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(r,n){mt(t,e||{},function(s,D){s?n(s):r(D)})})}Ge(t,e||{},function(r,n){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,n=!1),u(r,n)})}function ai(t,e){try{return Ge.sync(t,e||{})}catch(u){if(e&&e.ignoreErrors||u.code==="EACCES")return!1;throw u}}const Ee=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Xu=z,li=Ee?";":":",Qu=oi,Zu=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Ju=(t,e)=>{const u=e.colon||li,r=t.match(/\//)||Ee&&t.match(/\\/)?[""]:[...Ee?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],n=Ee?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ee?n.split(u):[""];return Ee&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:r,pathExt:s,pathExtExe:n}},er=(t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:r,pathExt:n,pathExtExe:s}=Ju(t,e),D=[],i=a=>new Promise((c,f)=>{if(a===r.length)return e.all&&D.length?c(D):f(Zu(t));const l=r[a],C=/^".*"$/.test(l)?l.slice(1,-1):l,p=Xu.join(C,t),F=!C&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;c(o(F,a,0))}),o=(a,c,f)=>new Promise((l,C)=>{if(f===n.length)return l(i(c+1));const p=n[f];Qu(a+p,{pathExt:s},(F,A)=>{if(!F&&A)if(e.all)D.push(a+p);else return l(a+p);return l(o(a,c,f+1))})});return u?i(0).then(a=>u(null,a),u):i(0)},ci=(t,e)=>{e=e||{};const{pathEnv:u,pathExt:r,pathExtExe:n}=Ju(t,e),s=[];for(let D=0;D<u.length;D++){const i=u[D],o=/^".*"$/.test(i)?i.slice(1,-1):i,a=Xu.join(o,t),c=!o&&/^\.[\\\/]/.test(t)?t.slice(0,2)+a:a;for(let f=0;f<r.length;f++){const l=c+r[f];try{if(Qu.sync(l,{pathExt:n}))if(e.all)s.push(l);else return l}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw Zu(t)};var fi=er;er.sync=ci;var At={exports:{}};const tr=(t={})=>{const e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};At.exports=tr,At.exports.default=tr;const ur=z,hi=fi,di=At.exports;function rr(t,e){const u=t.options.env||process.env,r=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let D;try{D=hi.sync(t.command,{path:u[di({env:u})],pathExt:e?ur.delimiter:void 0})}catch{}finally{s&&process.chdir(r)}return D&&(D=ur.resolve(n?t.options.cwd:"",D)),D}function Ei(t){return rr(t)||rr(t,!0)}var pi=Ei,yt={};const wt=/([()\][%!^"`<>&|;, *?])/g;function Ci(t){return t=t.replace(wt,"^$1"),t}function Fi(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(wt,"^$1"),e&&(t=t.replace(wt,"^$1")),t}yt.command=Ci,yt.argument=Fi;var gi=/^#!(.*)/;const _i=gi;var mi=(t="")=>{const e=t.match(_i);if(!e)return null;const[u,r]=e[0].replace(/#! ?/,"").split(" "),n=u.split("/").pop();return n==="env"?r:r?`${n} ${r}`:n};const Rt=oe,Ai=mi;function yi(t){const u=Buffer.alloc(150);let r;try{r=Rt.openSync(t,"r"),Rt.readSync(r,u,0,150,0),Rt.closeSync(r)}catch{}return Ai(u.toString())}var wi=yi;const Ri=z,nr=pi,sr=yt,bi=wi,vi=process.platform==="win32",Bi=/\.(?:com|exe)$/i,Si=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function $i(t){t.file=nr(t);const e=t.file&&bi(t.file);return e?(t.args.unshift(t.file),t.command=e,nr(t)):t.file}function Ti(t){if(!vi)return t;const e=$i(t),u=!Bi.test(e);if(t.options.forceShell||u){const r=Si.test(e);t.command=Ri.normalize(t.command),t.command=sr.command(t.command),t.args=t.args.map(s=>sr.argument(s,r));const n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function xi(t,e,u){e&&!Array.isArray(e)&&(u=e,e=null),e=e?e.slice(0):[],u=Object.assign({},u);const r={command:t,args:e,options:u,file:void 0,original:{command:t,args:e}};return u.shell?r:Ti(r)}var Oi=xi;const bt=process.platform==="win32";function vt(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Ni(t,e){if(!bt)return;const u=t.emit;t.emit=function(r,n){if(r==="exit"){const s=ir(n,e);if(s)return u.call(t,"error",s)}return u.apply(t,arguments)}}function ir(t,e){return bt&&t===1&&!e.file?vt(e.original,"spawn"):null}function Hi(t,e){return bt&&t===1&&!e.file?vt(e.original,"spawnSync"):null}var Pi={hookChildProcess:Ni,verifyENOENT:ir,verifyENOENTSync:Hi,notFoundError:vt};const Dr=Pn,Bt=Oi,St=Pi;function or(t,e,u){const r=Bt(t,e,u),n=Dr.spawn(r.command,r.args,r.options);return St.hookChildProcess(n,r),n}function Li(t,e,u){const r=Bt(t,e,u),n=Dr.spawnSync(r.command,r.args,r.options);return n.error=n.error||St.verifyENOENTSync(n.status,r),n}de.exports=or,de.exports.spawn=or,de.exports.sync=Li,de.exports._parse=Bt,de.exports._enoent=St;var Ii=Object.defineProperty,ar=Object.getOwnPropertySymbols,ki=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable,lr=(t,e,u)=>e in t?Ii(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,Wi=(t,e)=>{for(var u in e||(e={}))ki.call(e,u)&&lr(t,u,e[u]);if(ar)for(var u of ar(e))Mi.call(e,u)&&lr(t,u,e[u]);return t};function cr(t,e){const u=Wi({},process.env);e!=null&&e.noCache&&(u.ESBK_DISABLE_CACHE="1");const r=["inherit","inherit","inherit"];return e!=null&&e.ipc&&r.push("ipc"),de.exports(process.execPath,["--require",Le.resolve("./suppress-warnings.cjs"),"--loader",Nn(Le.resolve("./loader.js")).toString(),...t],{stdio:r,env:u})}var $t={exports:{}},je={};const Gi=z,te="\\\\/",fr=`[^${te}]`,ue="\\.",ji="\\+",Ui="\\?",Ue="\\/",Ki="(?=.)",hr="[^/]",Tt=`(?:${Ue}|$)`,dr=`(?:^|${Ue})`,xt=`${ue}{1,2}${Tt}`,Vi=`(?!${ue})`,zi=`(?!${dr}${xt})`,Yi=`(?!${ue}{0,1}${Tt})`,qi=`(?!${xt})`,Xi=`[^.${Ue}]`,Qi=`${hr}*?`,Er={DOT_LITERAL:ue,PLUS_LITERAL:ji,QMARK_LITERAL:Ui,SLASH_LITERAL:Ue,ONE_CHAR:Ki,QMARK:hr,END_ANCHOR:Tt,DOTS_SLASH:xt,NO_DOT:Vi,NO_DOTS:zi,NO_DOT_SLASH:Yi,NO_DOTS_SLASH:qi,QMARK_NO_DOT:Xi,STAR:Qi,START_ANCHOR:dr},Zi=De(M({},Er),{SLASH_LITERAL:`[${te}]`,QMARK:fr,STAR:`${fr}*?`,DOTS_SLASH:`${ue}{1,2}(?:[${te}]|$)`,NO_DOT:`(?!${ue})`,NO_DOTS:`(?!(?:^|[${te}])${ue}{1,2}(?:[${te}]|$))`,NO_DOT_SLASH:`(?!${ue}{0,1}(?:[${te}]|$))`,NO_DOTS_SLASH:`(?!${ue}{1,2}(?:[${te}]|$))`,QMARK_NO_DOT:`[^.${te}]`,START_ANCHOR:`(?:^|[${te}])`,END_ANCHOR:`(?:[${te}]|$)`}),Ji={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var Ke={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Ji,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Gi.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?Zi:Er}};(function(t){const e=z,u=process.platform==="win32",{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:D}=Ke;t.isObject=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),t.hasRegexChars=i=>s.test(i),t.isRegexChar=i=>i.length===1&&t.hasRegexChars(i),t.escapeRegex=i=>i.replace(D,"\\$1"),t.toPosixSlashes=i=>i.replace(r,"/"),t.removeBackslashes=i=>i.replace(n,o=>o==="\\"?"":o),t.supportsLookbehinds=()=>{const i=process.version.slice(1).split(".").map(Number);return i.length===3&&i[0]>=9||i[0]===8&&i[1]>=10},t.isWindows=i=>i&&typeof i.windows=="boolean"?i.windows:u===!0||e.sep==="\\",t.escapeLast=(i,o,a)=>{const c=i.lastIndexOf(o,a);return c===-1?i:i[c-1]==="\\"?t.escapeLast(i,o,c-1):`${i.slice(0,c)}\\${i.slice(c)}`},t.removePrefix=(i,o={})=>{let a=i;return a.startsWith("./")&&(a=a.slice(2),o.prefix="./"),a},t.wrapOutput=(i,o={},a={})=>{const c=a.contains?"":"^",f=a.contains?"":"$";let l=`${c}(?:${i})${f}`;return o.negated===!0&&(l=`(?:^(?!${l}).*$)`),l}})(je);const pr=je,{CHAR_ASTERISK:Ot,CHAR_AT:eD,CHAR_BACKWARD_SLASH:ye,CHAR_COMMA:tD,CHAR_DOT:Nt,CHAR_EXCLAMATION_MARK:Ht,CHAR_FORWARD_SLASH:Cr,CHAR_LEFT_CURLY_BRACE:Pt,CHAR_LEFT_PARENTHESES:Lt,CHAR_LEFT_SQUARE_BRACKET:uD,CHAR_PLUS:rD,CHAR_QUESTION_MARK:Fr,CHAR_RIGHT_CURLY_BRACE:nD,CHAR_RIGHT_PARENTHESES:gr,CHAR_RIGHT_SQUARE_BRACKET:sD}=Ke,_r=t=>t===Cr||t===ye,mr=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},iD=(t,e)=>{const u=e||{},r=t.length-1,n=u.parts===!0||u.scanToEnd===!0,s=[],D=[],i=[];let o=t,a=-1,c=0,f=0,l=!1,C=!1,p=!1,F=!1,A=!1,B=!1,H=!1,S=!1,Q=!1,W=!1,ne=0,G,m,b={value:"",depth:0,isGlob:!1};const k=()=>a>=r,E=()=>o.charCodeAt(a+1),x=()=>(G=m,o.charCodeAt(++a));for(;a<r;){m=x();let j;if(m===ye){H=b.backslashes=!0,m=x(),m===Pt&&(B=!0);continue}if(B===!0||m===Pt){for(ne++;k()!==!0&&(m=x());){if(m===ye){H=b.backslashes=!0,x();continue}if(m===Pt){ne++;continue}if(B!==!0&&m===Nt&&(m=x())===Nt){if(l=b.isBrace=!0,p=b.isGlob=!0,W=!0,n===!0)continue;break}if(B!==!0&&m===tD){if(l=b.isBrace=!0,p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===nD&&(ne--,ne===0)){B=!1,l=b.isBrace=!0,W=!0;break}}if(n===!0)continue;break}if(m===Cr){if(s.push(a),D.push(b),b={value:"",depth:0,isGlob:!1},W===!0)continue;if(G===Nt&&a===c+1){c+=2;continue}f=a+1;continue}if(u.noext!==!0&&(m===rD||m===eD||m===Ot||m===Fr||m===Ht)===!0&&E()===Lt){if(p=b.isGlob=!0,F=b.isExtglob=!0,W=!0,m===Ht&&a===c&&(Q=!0),n===!0){for(;k()!==!0&&(m=x());){if(m===ye){H=b.backslashes=!0,m=x();continue}if(m===gr){p=b.isGlob=!0,W=!0;break}}continue}break}if(m===Ot){if(G===Ot&&(A=b.isGlobstar=!0),p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===Fr){if(p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===uD){for(;k()!==!0&&(j=x());){if(j===ye){H=b.backslashes=!0,x();continue}if(j===sD){C=b.isBracket=!0,p=b.isGlob=!0,W=!0;break}}if(n===!0)continue;break}if(u.nonegate!==!0&&m===Ht&&a===c){S=b.negated=!0,c++;continue}if(u.noparen!==!0&&m===Lt){if(p=b.isGlob=!0,n===!0){for(;k()!==!0&&(m=x());){if(m===Lt){H=b.backslashes=!0,m=x();continue}if(m===gr){W=!0;break}}continue}break}if(p===!0){if(W=!0,n===!0)continue;break}}u.noext===!0&&(F=!1,p=!1);let $=o,se="",h="";c>0&&(se=o.slice(0,c),o=o.slice(c),f-=c),$&&p===!0&&f>0?($=o.slice(0,f),h=o.slice(f)):p===!0?($="",h=o):$=o,$&&$!==""&&$!=="/"&&$!==o&&_r($.charCodeAt($.length-1))&&($=$.slice(0,-1)),u.unescape===!0&&(h&&(h=pr.removeBackslashes(h)),$&&H===!0&&($=pr.removeBackslashes($)));const d={prefix:se,input:t,start:c,base:$,glob:h,isBrace:l,isBracket:C,isGlob:p,isExtglob:F,isGlobstar:A,negated:S,negatedExtglob:Q};if(u.tokens===!0&&(d.maxDepth=0,_r(m)||D.push(b),d.tokens=D),u.parts===!0||u.tokens===!0){let j;for(let R=0;R<s.length;R++){const Z=j?j+1:c,J=s[R],V=t.slice(Z,J);u.tokens&&(R===0&&c!==0?(D[R].isPrefix=!0,D[R].value=se):D[R].value=V,mr(D[R]),d.maxDepth+=D[R].depth),(R!==0||V!=="")&&i.push(V),j=J}if(j&&j+1<t.length){const R=t.slice(j+1);i.push(R),u.tokens&&(D[D.length-1].value=R,mr(D[D.length-1]),d.maxDepth+=D[D.length-1].depth)}d.slashes=s,d.parts=i}return d};var DD=iD;const Ve=Ke,Y=je,{MAX_LENGTH:ze,POSIX_REGEX_SOURCE:oD,REGEX_NON_SPECIAL_CHARS:aD,REGEX_SPECIAL_CHARS_BACKREF:lD,REPLACEMENTS:Ar}=Ve,cD=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();const u=`[${t.join("-")}]`;try{new RegExp(u)}catch{return t.map(n=>Y.escapeRegex(n)).join("..")}return u},pe=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,It=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=Ar[t]||t;const u=M({},e),r=typeof u.maxLength=="number"?Math.min(ze,u.maxLength):ze;let n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);const s={type:"bos",value:"",output:u.prepend||""},D=[s],i=u.capture?"":"?:",o=Y.isWindows(e),a=Ve.globChars(o),c=Ve.extglobChars(a),{DOT_LITERAL:f,PLUS_LITERAL:l,SLASH_LITERAL:C,ONE_CHAR:p,DOTS_SLASH:F,NO_DOT:A,NO_DOT_SLASH:B,NO_DOTS_SLASH:H,QMARK:S,QMARK_NO_DOT:Q,STAR:W,START_ANCHOR:ne}=a,G=_=>`(${i}(?:(?!${ne}${_.dot?F:f}).)*?)`,m=u.dot?"":A,b=u.dot?S:Q;let k=u.bash===!0?G(u):W;u.capture&&(k=`(${k})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const E={input:t,index:-1,start:0,dot:u.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:D};t=Y.removePrefix(t,E),n=t.length;const x=[],$=[],se=[];let h=s,d;const j=()=>E.index===n-1,R=E.peek=(_=1)=>t[E.index+_],Z=E.advance=()=>t[++E.index]||"",J=()=>t.slice(E.index+1),V=(_="",T=0)=>{E.consumed+=_,E.index+=T},Oe=_=>{E.output+=_.output!=null?_.output:_.value,V(_.value)},Rn=()=>{let _=1;for(;R()==="!"&&(R(2)!=="("||R(3)==="?");)Z(),E.start++,_++;return _%2===0?!1:(E.negated=!0,E.start++,!0)},Ne=_=>{E[_]++,se.push(_)},ie=_=>{E[_]--,se.pop()},w=_=>{if(h.type==="globstar"){const T=E.braces>0&&(_.type==="comma"||_.type==="brace"),g=_.extglob===!0||x.length&&(_.type==="pipe"||_.type==="paren");_.type!=="slash"&&_.type!=="paren"&&!T&&!g&&(E.output=E.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=k,E.output+=h.output)}if(x.length&&_.type!=="paren"&&(x[x.length-1].inner+=_.value),(_.value||_.output)&&Oe(_),h&&h.type==="text"&&_.type==="text"){h.value+=_.value,h.output=(h.output||"")+_.value;return}_.prev=h,D.push(_),h=_},He=(_,T)=>{const g=De(M({},c[T]),{conditions:1,inner:""});g.prev=h,g.parens=E.parens,g.output=E.output;const y=(u.capture?"(":"")+g.open;Ne("parens"),w({type:_,value:T,output:E.output?"":p}),w({type:"paren",extglob:!0,value:Z(),output:y}),x.push(g)},bn=_=>{let T=_.close+(u.capture?")":""),g;if(_.type==="negate"){let y=k;if(_.inner&&_.inner.length>1&&_.inner.includes("/")&&(y=G(u)),(y!==k||j()||/^\)+$/.test(J()))&&(T=_.close=`)$))${y}`),_.inner.includes("*")&&(g=J())&&/^\.[^\\/.]+$/.test(g)){const O=It(g,De(M({},e),{fastpaths:!1})).output;T=_.close=`)${O})${y})`}_.prev.type==="bos"&&(E.negatedExtglob=!0)}w({type:"paren",extglob:!0,value:d,output:T}),ie("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let _=!1,T=t.replace(lD,(g,y,O,U,P,Dt)=>U==="\\"?(_=!0,g):U==="?"?y?y+U+(P?S.repeat(P.length):""):Dt===0?b+(P?S.repeat(P.length):""):S.repeat(O.length):U==="."?f.repeat(O.length):U==="*"?y?y+U+(P?k:""):k:y?g:`\\${g}`);return _===!0&&(u.unescape===!0?T=T.replace(/\\/g,""):T=T.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),T===t&&u.contains===!0?(E.output=t,E):(E.output=Y.wrapOutput(T,E,e),E)}for(;!j();){if(d=Z(),d==="\0")continue;if(d==="\\"){const g=R();if(g==="/"&&u.bash!==!0||g==="."||g===";")continue;if(!g){d+="\\",w({type:"text",value:d});continue}const y=/^\\+/.exec(J());let O=0;if(y&&y[0].length>2&&(O=y[0].length,E.index+=O,O%2!==0&&(d+="\\")),u.unescape===!0?d=Z():d+=Z(),E.brackets===0){w({type:"text",value:d});continue}}if(E.brackets>0&&(d!=="]"||h.value==="["||h.value==="[^")){if(u.posix!==!1&&d===":"){const g=h.value.slice(1);if(g.includes("[")&&(h.posix=!0,g.includes(":"))){const y=h.value.lastIndexOf("["),O=h.value.slice(0,y),U=h.value.slice(y+2),P=oD[U];if(P){h.value=O+P,E.backtrack=!0,Z(),!s.output&&D.indexOf(h)===1&&(s.output=p);continue}}}(d==="["&&R()!==":"||d==="-"&&R()==="]")&&(d=`\\${d}`),d==="]"&&(h.value==="["||h.value==="[^")&&(d=`\\${d}`),u.posix===!0&&d==="!"&&h.value==="["&&(d="^"),h.value+=d,Oe({value:d});continue}if(E.quotes===1&&d!=='"'){d=Y.escapeRegex(d),h.value+=d,Oe({value:d});continue}if(d==='"'){E.quotes=E.quotes===1?0:1,u.keepQuotes===!0&&w({type:"text",value:d});continue}if(d==="("){Ne("parens"),w({type:"paren",value:d});continue}if(d===")"){if(E.parens===0&&u.strictBrackets===!0)throw new SyntaxError(pe("opening","("));const g=x[x.length-1];if(g&&E.parens===g.parens+1){bn(x.pop());continue}w({type:"paren",value:d,output:E.parens?")":"\\)"}),ie("parens");continue}if(d==="["){if(u.nobracket===!0||!J().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(pe("closing","]"));d=`\\${d}`}else Ne("brackets");w({type:"bracket",value:d});continue}if(d==="]"){if(u.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){w({type:"text",value:d,output:`\\${d}`});continue}if(E.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(pe("opening","["));w({type:"text",value:d,output:`\\${d}`});continue}ie("brackets");const g=h.value.slice(1);if(h.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(d=`/${d}`),h.value+=d,Oe({value:d}),u.literalBrackets===!1||Y.hasRegexChars(g))continue;const y=Y.escapeRegex(h.value);if(E.output=E.output.slice(0,-h.value.length),u.literalBrackets===!0){E.output+=y,h.value=y;continue}h.value=`(${i}${y}|${h.value})`,E.output+=h.value;continue}if(d==="{"&&u.nobrace!==!0){Ne("braces");const g={type:"brace",value:d,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};$.push(g),w(g);continue}if(d==="}"){const g=$[$.length-1];if(u.nobrace===!0||!g){w({type:"text",value:d,output:d});continue}let y=")";if(g.dots===!0){const O=D.slice(),U=[];for(let P=O.length-1;P>=0&&(D.pop(),O[P].type!=="brace");P--)O[P].type!=="dots"&&U.unshift(O[P].value);y=cD(U,u),E.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const O=E.output.slice(0,g.outputIndex),U=E.tokens.slice(g.tokensIndex);g.value=g.output="\\{",d=y="\\}",E.output=O;for(const P of U)E.output+=P.output||P.value}w({type:"brace",value:d,output:y}),ie("braces"),$.pop();continue}if(d==="|"){x.length>0&&x[x.length-1].conditions++,w({type:"text",value:d});continue}if(d===","){let g=d;const y=$[$.length-1];y&&se[se.length-1]==="braces"&&(y.comma=!0,g="|"),w({type:"comma",value:d,output:g});continue}if(d==="/"){if(h.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",D.pop(),h=s;continue}w({type:"slash",value:d,output:C});continue}if(d==="."){if(E.braces>0&&h.type==="dot"){h.value==="."&&(h.output=f);const g=$[$.length-1];h.type="dots",h.output+=d,h.value+=d,g.dots=!0;continue}if(E.braces+E.parens===0&&h.type!=="bos"&&h.type!=="slash"){w({type:"text",value:d,output:f});continue}w({type:"dot",value:d,output:f});continue}if(d==="?"){if(!(h&&h.value==="(")&&u.noextglob!==!0&&R()==="("&&R(2)!=="?"){He("qmark",d);continue}if(h&&h.type==="paren"){const y=R();let O=d;if(y==="<"&&!Y.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(J()))&&(O=`\\${d}`),w({type:"text",value:d,output:O});continue}if(u.dot!==!0&&(h.type==="slash"||h.type==="bos")){w({type:"qmark",value:d,output:Q});continue}w({type:"qmark",value:d,output:S});continue}if(d==="!"){if(u.noextglob!==!0&&R()==="("&&(R(2)!=="?"||!/[!=<:]/.test(R(3)))){He("negate",d);continue}if(u.nonegate!==!0&&E.index===0){Rn();continue}}if(d==="+"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){He("plus",d);continue}if(h&&h.value==="("||u.regex===!1){w({type:"plus",value:d,output:l});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||E.parens>0){w({type:"plus",value:d});continue}w({type:"plus",value:l});continue}if(d==="@"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){w({type:"at",extglob:!0,value:d,output:""});continue}w({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);const g=aD.exec(J());g&&(d+=g[0],E.index+=g[0].length),w({type:"text",value:d});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=d,h.output=k,E.backtrack=!0,E.globstar=!0,V(d);continue}let _=J();if(u.noextglob!==!0&&/^\([^?]/.test(_)){He("star",d);continue}if(h.type==="star"){if(u.noglobstar===!0){V(d);continue}const g=h.prev,y=g.prev,O=g.type==="slash"||g.type==="bos",U=y&&(y.type==="star"||y.type==="globstar");if(u.bash===!0&&(!O||_[0]&&_[0]!=="/")){w({type:"star",value:d,output:""});continue}const P=E.braces>0&&(g.type==="comma"||g.type==="brace"),Dt=x.length&&(g.type==="pipe"||g.type==="paren");if(!O&&g.type!=="paren"&&!P&&!Dt){w({type:"star",value:d,output:""});continue}for(;_.slice(0,3)==="/**";){const Pe=t[E.index+4];if(Pe&&Pe!=="/")break;_=_.slice(3),V("/**",3)}if(g.type==="bos"&&j()){h.type="globstar",h.value+=d,h.output=G(u),E.output=h.output,E.globstar=!0,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!U&&j()){E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=G(u)+(u.strictSlashes?")":"|$)"),h.value+=d,E.globstar=!0,E.output+=g.output+h.output,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&_[0]==="/"){const Pe=_[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=`${G(u)}${C}|${C}${Pe})`,h.value+=d,E.output+=g.output+h.output,E.globstar=!0,V(d+Z()),w({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&_[0]==="/"){h.type="globstar",h.value+=d,h.output=`(?:^|${C}|${G(u)}${C})`,E.output=h.output,E.globstar=!0,V(d+Z()),w({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-h.output.length),h.type="globstar",h.output=G(u),h.value+=d,E.output+=h.output,E.globstar=!0,V(d);continue}const T={type:"star",value:d,output:k};if(u.bash===!0){T.output=".*?",(h.type==="bos"||h.type==="slash")&&(T.output=m+T.output),w(T);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&u.regex===!0){T.output=d,w(T);continue}(E.index===E.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(E.output+=B,h.output+=B):u.dot===!0?(E.output+=H,h.output+=H):(E.output+=m,h.output+=m),R()!=="*"&&(E.output+=p,h.output+=p)),w(T)}for(;E.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(pe("closing","]"));E.output=Y.escapeLast(E.output,"["),ie("brackets")}for(;E.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(pe("closing",")"));E.output=Y.escapeLast(E.output,"("),ie("parens")}for(;E.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(pe("closing","}"));E.output=Y.escapeLast(E.output,"{"),ie("braces")}if(u.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&w({type:"maybe_slash",value:"",output:`${C}?`}),E.backtrack===!0){E.output="";for(const _ of E.tokens)E.output+=_.output!=null?_.output:_.value,_.suffix&&(E.output+=_.suffix)}return E};It.fastpaths=(t,e)=>{const u=M({},e),r=typeof u.maxLength=="number"?Math.min(ze,u.maxLength):ze,n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);t=Ar[t]||t;const s=Y.isWindows(e),{DOT_LITERAL:D,SLASH_LITERAL:i,ONE_CHAR:o,DOTS_SLASH:a,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:l,STAR:C,START_ANCHOR:p}=Ve.globChars(s),F=u.dot?f:c,A=u.dot?l:c,B=u.capture?"":"?:",H={negated:!1,prefix:""};let S=u.bash===!0?".*?":C;u.capture&&(S=`(${S})`);const Q=m=>m.noglobstar===!0?S:`(${B}(?:(?!${p}${m.dot?a:D}).)*?)`,W=m=>{switch(m){case"*":return`${F}${o}${S}`;case".*":return`${D}${o}${S}`;case"*.*":return`${F}${S}${D}${o}${S}`;case"*/*":return`${F}${S}${i}${o}${A}${S}`;case"**":return F+Q(u);case"**/*":return`(?:${F}${Q(u)}${i})?${A}${o}${S}`;case"**/*.*":return`(?:${F}${Q(u)}${i})?${A}${S}${D}${o}${S}`;case"**/.*":return`(?:${F}${Q(u)}${i})?${D}${o}${S}`;default:{const b=/^(.*?)\.(\w+)$/.exec(m);if(!b)return;const k=W(b[1]);return k?k+D+b[2]:void 0}}},ne=Y.removePrefix(t,H);let G=W(ne);return G&&u.strictSlashes!==!0&&(G+=`${i}?`),G};var fD=It;const hD=z,dD=DD,kt=fD,Mt=je,ED=Ke,pD=t=>t&&typeof t=="object"&&!Array.isArray(t),N=(t,e,u=!1)=>{if(Array.isArray(t)){const c=t.map(l=>N(l,e,u));return l=>{for(const C of c){const p=C(l);if(p)return p}return!1}}const r=pD(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");const n=e||{},s=Mt.isWindows(e),D=r?N.compileRe(t,e):N.makeRe(t,e,!1,!0),i=D.state;delete D.state;let o=()=>!1;if(n.ignore){const c=De(M({},e),{ignore:null,onMatch:null,onResult:null});o=N(n.ignore,c,u)}const a=(c,f=!1)=>{const{isMatch:l,match:C,output:p}=N.test(c,D,e,{glob:t,posix:s}),F={glob:t,state:i,regex:D,posix:s,input:c,output:p,match:C,isMatch:l};return typeof n.onResult=="function"&&n.onResult(F),l===!1?(F.isMatch=!1,f?F:!1):o(c)?(typeof n.onIgnore=="function"&&n.onIgnore(F),F.isMatch=!1,f?F:!1):(typeof n.onMatch=="function"&&n.onMatch(F),f?F:!0)};return u&&(a.state=i),a};N.test=(t,e,u,{glob:r,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};const s=u||{},D=s.format||(n?Mt.toPosixSlashes:null);let i=t===r,o=i&&D?D(t):t;return i===!1&&(o=D?D(t):t,i=o===r),(i===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?i=N.matchBase(t,e,u,n):i=e.exec(o)),{isMatch:Boolean(i),match:i,output:o}},N.matchBase=(t,e,u,r=Mt.isWindows(u))=>(e instanceof RegExp?e:N.makeRe(e,u)).test(hD.basename(t)),N.isMatch=(t,e,u)=>N(e,u)(t),N.parse=(t,e)=>Array.isArray(t)?t.map(u=>N.parse(u,e)):kt(t,De(M({},e),{fastpaths:!1})),N.scan=(t,e)=>dD(t,e),N.compileRe=(t,e,u=!1,r=!1)=>{if(u===!0)return t.output;const n=e||{},s=n.contains?"":"^",D=n.contains?"":"$";let i=`${s}(?:${t.output})${D}`;t&&t.negated===!0&&(i=`^(?!${i}).*$`);const o=N.toRegex(i,e);return r===!0&&(o.state=t),o},N.makeRe=(t,e={},u=!1,r=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=kt.fastpaths(t,e)),n.output||(n=kt(t,e)),N.compileRe(n,e,u,r)},N.toRegex=(t,e)=>{try{const u=e||{};return new RegExp(t,u.flags||(u.nocase?"i":""))}catch(u){if(e&&e.debug===!0)throw u;return/$^/}},N.constants=ED;var CD=N;(function(t){t.exports=CD})($t);const we=oe,{Readable:FD}=In,Re=z,{promisify:Ye}=me,Wt=$t.exports,gD=Ye(we.readdir),_D=Ye(we.stat),yr=Ye(we.lstat),mD=Ye(we.realpath),AD="!",wr="READDIRP_RECURSIVE_ERROR",yD=new Set(["ENOENT","EPERM","EACCES","ELOOP",wr]),Gt="files",Rr="directories",qe="files_directories",Xe="all",br=[Gt,Rr,qe,Xe],wD=t=>yD.has(t.code),[vr,RD]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),bD=process.platform==="win32"&&(vr>10||vr===10&&RD>=5),Br=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){const e=Wt(t.trim());return u=>e(u.basename)}if(Array.isArray(t)){const e=[],u=[];for(const r of t){const n=r.trim();n.charAt(0)===AD?u.push(Wt(n.slice(1))):e.push(Wt(n))}return u.length>0?e.length>0?r=>e.some(n=>n(r.basename))&&!u.some(n=>n(r.basename)):r=>!u.some(n=>n(r.basename)):r=>e.some(n=>n(r.basename))}}};class it extends FD{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:Gt,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const u=M(M({},it.defaultOptions),e),{root:r,type:n}=u;this._fileFilter=Br(u.fileFilter),this._directoryFilter=Br(u.directoryFilter);const s=u.lstat?yr:_D;bD?this._stat=D=>s(D,{bigint:!0}):this._stat=s,this._maxDepth=u.depth,this._wantsDir=[Rr,qe,Xe].includes(n),this._wantsFile=[Gt,qe,Xe].includes(n),this._wantsEverything=n===Xe,this._root=Re.resolve(r),this._isDirent="Dirent"in we&&!u.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(r,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){const{path:u,depth:r,files:n=[]}=this.parent||{};if(n.length>0){const s=n.splice(0,e).map(D=>this._formatEntry(D,u));for(const D of await Promise.all(s)){if(this.destroyed)return;const i=await this._getEntryType(D);i==="directory"&&this._directoryFilter(D)?(r<=this._maxDepth&&this.parents.push(this._exploreDir(D.fullPath,r+1)),this._wantsDir&&(this.push(D),e--)):(i==="file"||this._includeAsFile(D))&&this._fileFilter(D)&&this._wantsFile&&(this.push(D),e--)}}else{const s=this.parents.pop();if(!s){this.push(null);break}if(this.parent=await s,this.destroyed)return}}}catch(u){this.destroy(u)}finally{this.reading=!1}}}async _exploreDir(e,u){let r;try{r=await gD(e,this._rdOptions)}catch(n){this._onError(n)}return{files:r,depth:u,path:e}}async _formatEntry(e,u){let r;try{const n=this._isDirent?e.name:e,s=Re.resolve(Re.join(u,n));r={path:Re.relative(this._root,s),fullPath:s,basename:n},r[this._statsProp]=this._isDirent?e:await this._stat(s)}catch(n){this._onError(n)}return r}_onError(e){wD(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){const u=e&&e[this._statsProp];if(!!u){if(u.isFile())return"file";if(u.isDirectory())return"directory";if(u&&u.isSymbolicLink()){const r=e.fullPath;try{const n=await mD(r),s=await yr(n);if(s.isFile())return"file";if(s.isDirectory()){const D=n.length;if(r.startsWith(n)&&r.substr(D,1)===Re.sep){const i=new Error(`Circular symlink detected: "${r}" points to "${n}"`);return i.code=wr,this._onError(i)}return"directory"}}catch(n){this._onError(n)}}}}_includeAsFile(e){const u=e&&e[this._statsProp];return u&&this._wantsEverything&&!u.isDirectory()}}const Ce=(t,e={})=>{let u=e.entryType||e.type;if(u==="both"&&(u=qe),u&&(e.type=u),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(u&&!br.includes(u))throw new Error(`readdirp: Invalid type passed. Use one of ${br.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new it(e)},vD=(t,e={})=>new Promise((u,r)=>{const n=[];Ce(t,e).on("data",s=>n.push(s)).on("end",()=>u(n)).on("error",s=>r(s))});Ce.promise=vD,Ce.ReaddirpStream=it,Ce.default=Ce;var BD=Ce,jt={exports:{}};/*!
12
+ `)}function Ws(t,e){if(!t||t.length===0)return"";let u=bs(t),n=u.length;if(n===0)return"";let{stdoutColumns:r,columns:s}=As(e);if(s.length>n)throw new Error(`${s.length} columns defined, but only ${n} columns found`);let i=$s(r,s,u);return t.map(D=>Ms(i,D)).join(`
13
+ `)}K();var js=["<",">","=",">=","<="];function Gs(t){if(!js.includes(t))throw new TypeError(`Invalid breakpoint operator: ${t}`)}function Us(t){let e=Object.keys(t).map(u=>{let[n,r]=u.split(" ");Gs(n);let s=Number.parseInt(r,10);if(Number.isNaN(s))throw new TypeError(`Invalid breakpoint value: ${r}`);let i=t[u];return{operator:n,breakpoint:s,value:i}}).sort((u,n)=>n.breakpoint-u.breakpoint);return u=>{var n;return(n=e.find(({operator:r,breakpoint:s})=>r==="="&&u===s||r===">"&&u>s||r==="<"&&u<s||r===">="&&u>=s||r==="<="&&u<=s))==null?void 0:n.value}}const Ks=t=>t.replace(/[-_ ](\w)/g,(e,u)=>u.toUpperCase()),Vs=t=>t.replace(/\B([A-Z])/g,"-$1").toLowerCase(),zs={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:t=>t.trim()},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function Ys(t){let e=!1;const u=Object.keys(t).sort((n,r)=>n.localeCompare(r)).map(n=>{const r=t[n],s="alias"in r;return s&&(e=!0),{name:n,flag:r,flagFormatted:`--${Vs(n)}`,aliasesEnabled:e,aliasFormatted:s?`-${r.alias}`:void 0}}).map(n=>(n.aliasesEnabled=e,[{type:"flagName",data:n},{type:"flagDescription",data:n}]));return{type:"table",data:{tableData:u,tableBreakpoints:zs}}}const Vu=t=>{var e;return!t||((e=t.version)!=null?e:t.help?t.help.version:void 0)},zu=t=>{var e;const u="parent"in t&&((e=t.parent)==null?void 0:e.name);return(u?`${u} `:"")+t.name};function qs(t){var e;const u=[];t.name&&u.push(zu(t));const n=(e=Vu(t))!=null?e:"parent"in t&&Vu(t.parent);if(n&&u.push(`v${n}`),u.length!==0)return{id:"name",type:"text",data:`${u.join(" ")}
14
+ `}}function Xs(t){const{help:e}=t;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
15
+ `}}function Qs(t){var e;const u=t.help||{};if("usage"in u)return u.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(u.usage)?u.usage.join(`
16
+ `):u.usage}}:void 0;if(t.name){const n=[],r=[zu(t)];if(t.flags&&Object.keys(t.flags).length>0&&r.push("[flags...]"),t.parameters&&t.parameters.length>0){const{parameters:s}=t,i=s.indexOf("--"),D=i>-1&&s.slice(i+1).some(o=>o.startsWith("<"));r.push(s.map(o=>o!=="--"?o:D?"--":"[--]").join(" "))}if(r.length>1&&n.push(r.join(" ")),"commands"in t&&((e=t.commands)==null?void 0:e.length)&&n.push(`${t.name} <command>`),n.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:n.join(`
17
+ `)}}}}function Zs(t){var e;if(!("commands"in t)||!((e=t.commands)!=null&&e.length))return;const u=t.commands.map(n=>[n.options.name,n.options.help?n.options.help.description:""]);return{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u,tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}function Js(t){if(!(!t.flags||Object.keys(t.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Ys(t.flags),indentBody:0}}}function ei(t){const{help:e}=t;if(!e||!e.examples||e.examples.length===0)return;let{examples:u}=e;if(Array.isArray(u)&&(u=u.join(`
18
+ `)),u)return{id:"examples",type:"section",data:{title:"Examples:",body:u}}}function ti(t){if(!("alias"in t)||!t.alias)return;const{alias:e}=t,u=Array.isArray(e)?e.join(", "):e;return{id:"aliases",type:"section",data:{title:"Aliases:",body:u}}}const ui=t=>[qs,Xs,Qs,Zs,Js,ei,ti].map(e=>e(t)).filter(e=>Boolean(e)),ni=Gr.WriteStream.prototype.hasColors();class ri{text(e){return e}bold(e){return ni?`\x1B[1m${e}\x1B[22m`:e.toLocaleUpperCase()}indentText({text:e,spaces:u}){return e.replace(/^/gm," ".repeat(u))}heading(e){return this.bold(e)}section({title:e,body:u,indentBody:n=2}){return`${(e?`${this.heading(e)}
19
+ `:"")+(u?this.indentText({text:this.render(u),spaces:n}):"")}
20
+ `}table({tableData:e,tableOptions:u,tableBreakpoints:n}){return Ws(e.map(r=>r.map(s=>this.render(s))),n?Us(n):u)}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:u,flagFormatted:n,aliasesEnabled:r,aliasFormatted:s}=e;let i="";if(s?i+=`${s}, `:r&&(i+=" "),i+=n,"placeholder"in u&&typeof u.placeholder=="string")i+=`${this.flagOperator(e)}${u.placeholder}`;else{const D=this.flagParameter("type"in u?u.type:u);D&&(i+=`${this.flagOperator(e)}${D}`)}return i}flagDefault(e){return JSON.stringify(e)}flagDescription({flag:e}){var u;let n="description"in e&&(u=e.description)!=null?u:"";if("default"in e){let{default:r}=e;typeof r=="function"&&(r=r()),r&&(n+=` (default: ${this.flagDefault(r)})`)}return n}render(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(u=>this.render(u)).join(`
21
+ `);if("type"in e&&this[e.type]){const u=this[e.type];if(typeof u=="function")return u.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const Ft=/^[\w.-]+$/;var si=Object.defineProperty,ii=Object.defineProperties,Di=Object.getOwnPropertyDescriptors,Yu=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable,qu=(t,e,u)=>e in t?si(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,de=(t,e)=>{for(var u in e||(e={}))oi.call(e,u)&&qu(t,u,e[u]);if(Yu)for(var u of Yu(e))ai.call(e,u)&&qu(t,u,e[u]);return t},gt=(t,e)=>ii(t,Di(e));const{stringify:ee}=JSON,li=/[|\\{}()[\]^$+*?.]/;function _t(t){const e=[];let u,n;for(const r of t){if(n)throw new Error(`Invalid parameter: Spread parameter ${ee(n)} must be last`);const s=r[0],i=r[r.length-1];let D;if(s==="<"&&i===">"&&(D=!0,u))throw new Error(`Invalid parameter: Required parameter ${ee(r)} cannot come after optional parameter ${ee(u)}`);if(s==="["&&i==="]"&&(D=!1,u=r),D===void 0)throw new Error(`Invalid parameter: ${ee(r)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let o=r.slice(1,-1);const a=o.slice(-3)==="...";a&&(n=r,o=o.slice(0,-3));const c=o.match(li);if(c)throw new Error(`Invalid parameter: ${ee(r)}. Invalid character found ${ee(c[0])}`);e.push({name:o,required:D,spread:a})}return e}function mt(t,e,u,n){for(let r=0;r<e.length;r+=1){const{name:s,required:i,spread:D}=e[r],o=Ks(s);if(o in t)throw new Error(`Invalid parameter: ${ee(s)} is used more than once.`);const a=D?u.slice(r):u[r];if(D&&(r=e.length),i&&(!a||D&&a.length===0))return console.error(`Error: Missing required parameter ${ee(s)}
22
+ `),n(),process.exit(1);t[o]=a}}function ci(t){return t===void 0||t!==!1}function Xu(t,e,u,n){const r=de({},e.flags),s=e.version;s&&(r.version={type:Boolean,description:"Show version"});const{help:i}=e,D=ci(i);D&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const o=ft(r,n),a=()=>{console.log(e.version)};if(s&&o.flags.version===!0)return a(),process.exit(0);const c=new ri,f=D&&(i==null?void 0:i.render)?i.render:C=>c.render(C),l=C=>{const F=ui(gt(de(de({},e),C?{help:C}:{}),{flags:r}));console.log(f(F,c))};if(D&&o.flags.help===!0)return l(),process.exit(0);if(e.parameters){let{parameters:C}=e,F=o._;const y=C.indexOf("--"),b=C.slice(y+1),N=Object.create(null);if(y>-1&&b.length>0){C=C.slice(0,y);const S=o._["--"];F=F.slice(0,-S.length||void 0),mt(N,_t(C),F,l),mt(N,_t(b),S,l)}else mt(N,_t(C),F,l);Object.assign(o._,N)}const p=gt(de({},o),{showVersion:a,showHelp:l});return typeof u=="function"&&u(p),de({command:t},p)}function fi(t,e){const u=new Map;for(const n of e){const r=[n.options.name],{alias:s}=n.options;s&&(Array.isArray(s)?r.push(...s):r.push(s));for(const i of r){if(u.has(i))throw new Error(`Duplicate command name found: ${ee(i)}`);u.set(i,n)}}return u.get(t)}function hi(t,e,u=process.argv.slice(2)){if(!t)throw new Error("Options is required");if("name"in t&&(!t.name||!Ft.test(t.name)))throw new Error(`Invalid script name: ${ee(t.name)}`);const n=u[0];if(t.commands&&Ft.test(n)){const r=fi(n,t.commands);if(r)return Xu(r.options.name,gt(de({},r.options),{parent:t}),r.callback,u.slice(1))}return Xu(void 0,t,e,u)}function di(t,e){if(!t)throw new Error("Command options are required");const{name:u}=t;if(t.name===void 0)throw new Error("Command name is required");if(!Ft.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:t,callback:e}}var Ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ee={exports:{}},At,Qu;function pi(){if(Qu)return At;Qu=1,At=n,n.sync=r;var t=oe;function e(s,i){var D=i.pathExt!==void 0?i.pathExt:process.env.PATHEXT;if(!D||(D=D.split(";"),D.indexOf("")!==-1))return!0;for(var o=0;o<D.length;o++){var a=D[o].toLowerCase();if(a&&s.substr(-a.length).toLowerCase()===a)return!0}return!1}function u(s,i,D){return!s.isSymbolicLink()&&!s.isFile()?!1:e(i,D)}function n(s,i,D){t.stat(s,function(o,a){D(o,o?!1:u(a,s,i))})}function r(s,i){return u(t.statSync(s),s,i)}return At}var yt,Zu;function Ci(){if(Zu)return yt;Zu=1,yt=e,e.sync=u;var t=oe;function e(s,i,D){t.stat(s,function(o,a){D(o,o?!1:n(a,i))})}function u(s,i){return n(t.statSync(s),i)}function n(s,i){return s.isFile()&&r(s,i)}function r(s,i){var D=s.mode,o=s.uid,a=s.gid,c=i.uid!==void 0?i.uid:process.getuid&&process.getuid(),f=i.gid!==void 0?i.gid:process.getgid&&process.getgid(),l=parseInt("100",8),p=parseInt("010",8),C=parseInt("001",8),F=l|p,y=D&C||D&p&&a===f||D&l&&o===c||D&F&&c===0;return y}return yt}var Ue;process.platform==="win32"||Ei.TESTING_WINDOWS?Ue=pi():Ue=Ci();var Fi=wt;wt.sync=gi;function wt(t,e,u){if(typeof e=="function"&&(u=e,e={}),!u){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,r){wt(t,e||{},function(s,i){s?r(s):n(i)})})}Ue(t,e||{},function(n,r){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,r=!1),u(n,r)})}function gi(t,e){try{return Ue.sync(t,e||{})}catch(u){if(e&&e.ignoreErrors||u.code==="EACCES")return!1;throw u}}const pe=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Ju=z,_i=pe?";":":",en=Fi,tn=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),un=(t,e)=>{const u=e.colon||_i,n=t.match(/\//)||pe&&t.match(/\\/)?[""]:[...pe?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],r=pe?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=pe?r.split(u):[""];return pe&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:r}},nn=(t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:n,pathExt:r,pathExtExe:s}=un(t,e),i=[],D=a=>new Promise((c,f)=>{if(a===n.length)return e.all&&i.length?c(i):f(tn(t));const l=n[a],p=/^".*"$/.test(l)?l.slice(1,-1):l,C=Ju.join(p,t),F=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+C:C;c(o(F,a,0))}),o=(a,c,f)=>new Promise((l,p)=>{if(f===r.length)return l(D(c+1));const C=r[f];en(a+C,{pathExt:s},(F,y)=>{if(!F&&y)if(e.all)i.push(a+C);else return l(a+C);return l(o(a,c,f+1))})});return u?D(0).then(a=>u(null,a),u):D(0)},mi=(t,e)=>{e=e||{};const{pathEnv:u,pathExt:n,pathExtExe:r}=un(t,e),s=[];for(let i=0;i<u.length;i++){const D=u[i],o=/^".*"$/.test(D)?D.slice(1,-1):D,a=Ju.join(o,t),c=!o&&/^\.[\\\/]/.test(t)?t.slice(0,2)+a:a;for(let f=0;f<n.length;f++){const l=c+n[f];try{if(en.sync(l,{pathExt:r}))if(e.all)s.push(l);else return l}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw tn(t)};var Ai=nn;nn.sync=mi;var Rt={exports:{}};const rn=(t={})=>{const e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Rt.exports=rn,Rt.exports.default=rn;const sn=z,yi=Ai,wi=Rt.exports;function Dn(t,e){const u=t.options.env||process.env,n=process.cwd(),r=t.options.cwd!=null,s=r&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let i;try{i=yi.sync(t.command,{path:u[wi({env:u})],pathExt:e?sn.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return i&&(i=sn.resolve(r?t.options.cwd:"",i)),i}function Ri(t){return Dn(t)||Dn(t,!0)}var bi=Ri,bt={};const vt=/([()\][%!^"`<>&|;, *?])/g;function vi(t){return t=t.replace(vt,"^$1"),t}function Bi(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(vt,"^$1"),e&&(t=t.replace(vt,"^$1")),t}bt.command=vi,bt.argument=Bi;var Si=/^#!(.*)/;const $i=Si;var Ti=(t="")=>{const e=t.match($i);if(!e)return null;const[u,n]=e[0].replace(/#! ?/,"").split(" "),r=u.split("/").pop();return r==="env"?n:n?`${r} ${n}`:r};const Bt=oe,xi=Ti;function Oi(t){const u=Buffer.alloc(150);let n;try{n=Bt.openSync(t,"r"),Bt.readSync(n,u,0,150,0),Bt.closeSync(n)}catch{}return xi(u.toString())}var Ni=Oi;const Pi=z,on=bi,an=bt,Hi=Ni,Ii=process.platform==="win32",Li=/\.(?:com|exe)$/i,ki=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Mi(t){t.file=on(t);const e=t.file&&Hi(t.file);return e?(t.args.unshift(t.file),t.command=e,on(t)):t.file}function Wi(t){if(!Ii)return t;const e=Mi(t),u=!Li.test(e);if(t.options.forceShell||u){const n=ki.test(e);t.command=Pi.normalize(t.command),t.command=an.command(t.command),t.args=t.args.map(s=>an.argument(s,n));const r=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${r}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function ji(t,e,u){e&&!Array.isArray(e)&&(u=e,e=null),e=e?e.slice(0):[],u=Object.assign({},u);const n={command:t,args:e,options:u,file:void 0,original:{command:t,args:e}};return u.shell?n:Wi(n)}var Gi=ji;const St=process.platform==="win32";function $t(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Ui(t,e){if(!St)return;const u=t.emit;t.emit=function(n,r){if(n==="exit"){const s=ln(r,e);if(s)return u.call(t,"error",s)}return u.apply(t,arguments)}}function ln(t,e){return St&&t===1&&!e.file?$t(e.original,"spawn"):null}function Ki(t,e){return St&&t===1&&!e.file?$t(e.original,"spawnSync"):null}var Vi={hookChildProcess:Ui,verifyENOENT:ln,verifyENOENTSync:Ki,notFoundError:$t};const cn=zr,Tt=Gi,xt=Vi;function fn(t,e,u){const n=Tt(t,e,u),r=cn.spawn(n.command,n.args,n.options);return xt.hookChildProcess(r,n),r}function zi(t,e,u){const n=Tt(t,e,u),r=cn.spawnSync(n.command,n.args,n.options);return r.error=r.error||xt.verifyENOENTSync(r.status,n),r}Ee.exports=fn,Ee.exports.spawn=fn,Ee.exports.sync=zi,Ee.exports._parse=Tt,Ee.exports._enoent=xt;var Yi=Object.defineProperty,hn=Object.getOwnPropertySymbols,qi=Object.prototype.hasOwnProperty,Xi=Object.prototype.propertyIsEnumerable,dn=(t,e,u)=>e in t?Yi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,Qi=(t,e)=>{for(var u in e||(e={}))qi.call(e,u)&&dn(t,u,e[u]);if(hn)for(var u of hn(e))Xi.call(e,u)&&dn(t,u,e[u]);return t};function En(t,e){const u=Qi({},process.env),n=["inherit","inherit","inherit"];return e&&(e.noCache&&(u.ESBK_DISABLE_CACHE="1"),e.tsconfigPath&&(u.ESBK_TSCONFIG_PATH=e.tsconfigPath),e.ipc&&n.push("ipc")),Ee.exports(process.execPath,["--require",ke.resolve("./suppress-warnings.cjs"),"--loader",Kr(ke.resolve("./loader.js")).toString(),...t],{stdio:n,env:u})}var Ot={exports:{}},Ke={};const Zi=z,te="\\\\/",pn=`[^${te}]`,ue="\\.",Ji="\\+",eD="\\?",Ve="\\/",tD="(?=.)",Cn="[^/]",Nt=`(?:${Ve}|$)`,Fn=`(?:^|${Ve})`,Pt=`${ue}{1,2}${Nt}`,uD=`(?!${ue})`,nD=`(?!${Fn}${Pt})`,rD=`(?!${ue}{0,1}${Nt})`,sD=`(?!${Pt})`,iD=`[^.${Ve}]`,DD=`${Cn}*?`,gn={DOT_LITERAL:ue,PLUS_LITERAL:Ji,QMARK_LITERAL:eD,SLASH_LITERAL:Ve,ONE_CHAR:tD,QMARK:Cn,END_ANCHOR:Nt,DOTS_SLASH:Pt,NO_DOT:uD,NO_DOTS:nD,NO_DOT_SLASH:rD,NO_DOTS_SLASH:sD,QMARK_NO_DOT:iD,STAR:DD,START_ANCHOR:Fn},oD=De(M({},gn),{SLASH_LITERAL:`[${te}]`,QMARK:pn,STAR:`${pn}*?`,DOTS_SLASH:`${ue}{1,2}(?:[${te}]|$)`,NO_DOT:`(?!${ue})`,NO_DOTS:`(?!(?:^|[${te}])${ue}{1,2}(?:[${te}]|$))`,NO_DOT_SLASH:`(?!${ue}{0,1}(?:[${te}]|$))`,NO_DOTS_SLASH:`(?!${ue}{1,2}(?:[${te}]|$))`,QMARK_NO_DOT:`[^.${te}]`,START_ANCHOR:`(?:^|[${te}])`,END_ANCHOR:`(?:[${te}]|$)`}),aD={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var ze={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:aD,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Zi.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?oD:gn}};(function(t){const e=z,u=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=ze;t.isObject=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),t.hasRegexChars=D=>s.test(D),t.isRegexChar=D=>D.length===1&&t.hasRegexChars(D),t.escapeRegex=D=>D.replace(i,"\\$1"),t.toPosixSlashes=D=>D.replace(n,"/"),t.removeBackslashes=D=>D.replace(r,o=>o==="\\"?"":o),t.supportsLookbehinds=()=>{const D=process.version.slice(1).split(".").map(Number);return D.length===3&&D[0]>=9||D[0]===8&&D[1]>=10},t.isWindows=D=>D&&typeof D.windows=="boolean"?D.windows:u===!0||e.sep==="\\",t.escapeLast=(D,o,a)=>{const c=D.lastIndexOf(o,a);return c===-1?D:D[c-1]==="\\"?t.escapeLast(D,o,c-1):`${D.slice(0,c)}\\${D.slice(c)}`},t.removePrefix=(D,o={})=>{let a=D;return a.startsWith("./")&&(a=a.slice(2),o.prefix="./"),a},t.wrapOutput=(D,o={},a={})=>{const c=a.contains?"":"^",f=a.contains?"":"$";let l=`${c}(?:${D})${f}`;return o.negated===!0&&(l=`(?:^(?!${l}).*$)`),l}})(Ke);const _n=Ke,{CHAR_ASTERISK:Ht,CHAR_AT:lD,CHAR_BACKWARD_SLASH:Re,CHAR_COMMA:cD,CHAR_DOT:It,CHAR_EXCLAMATION_MARK:Lt,CHAR_FORWARD_SLASH:mn,CHAR_LEFT_CURLY_BRACE:kt,CHAR_LEFT_PARENTHESES:Mt,CHAR_LEFT_SQUARE_BRACKET:fD,CHAR_PLUS:hD,CHAR_QUESTION_MARK:An,CHAR_RIGHT_CURLY_BRACE:dD,CHAR_RIGHT_PARENTHESES:yn,CHAR_RIGHT_SQUARE_BRACKET:ED}=ze,wn=t=>t===mn||t===Re,Rn=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},pD=(t,e)=>{const u=e||{},n=t.length-1,r=u.parts===!0||u.scanToEnd===!0,s=[],i=[],D=[];let o=t,a=-1,c=0,f=0,l=!1,p=!1,C=!1,F=!1,y=!1,b=!1,N=!1,S=!1,Q=!1,W=!1,re=0,j,m,v={value:"",depth:0,isGlob:!1};const k=()=>a>=n,E=()=>o.charCodeAt(a+1),x=()=>(j=m,o.charCodeAt(++a));for(;a<n;){m=x();let G;if(m===Re){N=v.backslashes=!0,m=x(),m===kt&&(b=!0);continue}if(b===!0||m===kt){for(re++;k()!==!0&&(m=x());){if(m===Re){N=v.backslashes=!0,x();continue}if(m===kt){re++;continue}if(b!==!0&&m===It&&(m=x())===It){if(l=v.isBrace=!0,C=v.isGlob=!0,W=!0,r===!0)continue;break}if(b!==!0&&m===cD){if(l=v.isBrace=!0,C=v.isGlob=!0,W=!0,r===!0)continue;break}if(m===dD&&(re--,re===0)){b=!1,l=v.isBrace=!0,W=!0;break}}if(r===!0)continue;break}if(m===mn){if(s.push(a),i.push(v),v={value:"",depth:0,isGlob:!1},W===!0)continue;if(j===It&&a===c+1){c+=2;continue}f=a+1;continue}if(u.noext!==!0&&(m===hD||m===lD||m===Ht||m===An||m===Lt)===!0&&E()===Mt){if(C=v.isGlob=!0,F=v.isExtglob=!0,W=!0,m===Lt&&a===c&&(Q=!0),r===!0){for(;k()!==!0&&(m=x());){if(m===Re){N=v.backslashes=!0,m=x();continue}if(m===yn){C=v.isGlob=!0,W=!0;break}}continue}break}if(m===Ht){if(j===Ht&&(y=v.isGlobstar=!0),C=v.isGlob=!0,W=!0,r===!0)continue;break}if(m===An){if(C=v.isGlob=!0,W=!0,r===!0)continue;break}if(m===fD){for(;k()!==!0&&(G=x());){if(G===Re){N=v.backslashes=!0,x();continue}if(G===ED){p=v.isBracket=!0,C=v.isGlob=!0,W=!0;break}}if(r===!0)continue;break}if(u.nonegate!==!0&&m===Lt&&a===c){S=v.negated=!0,c++;continue}if(u.noparen!==!0&&m===Mt){if(C=v.isGlob=!0,r===!0){for(;k()!==!0&&(m=x());){if(m===Mt){N=v.backslashes=!0,m=x();continue}if(m===yn){W=!0;break}}continue}break}if(C===!0){if(W=!0,r===!0)continue;break}}u.noext===!0&&(F=!1,C=!1);let $=o,se="",h="";c>0&&(se=o.slice(0,c),o=o.slice(c),f-=c),$&&C===!0&&f>0?($=o.slice(0,f),h=o.slice(f)):C===!0?($="",h=o):$=o,$&&$!==""&&$!=="/"&&$!==o&&wn($.charCodeAt($.length-1))&&($=$.slice(0,-1)),u.unescape===!0&&(h&&(h=_n.removeBackslashes(h)),$&&N===!0&&($=_n.removeBackslashes($)));const d={prefix:se,input:t,start:c,base:$,glob:h,isBrace:l,isBracket:p,isGlob:C,isExtglob:F,isGlobstar:y,negated:S,negatedExtglob:Q};if(u.tokens===!0&&(d.maxDepth=0,wn(m)||i.push(v),d.tokens=i),u.parts===!0||u.tokens===!0){let G;for(let R=0;R<s.length;R++){const Z=G?G+1:c,J=s[R],V=t.slice(Z,J);u.tokens&&(R===0&&c!==0?(i[R].isPrefix=!0,i[R].value=se):i[R].value=V,Rn(i[R]),d.maxDepth+=i[R].depth),(R!==0||V!=="")&&D.push(V),G=J}if(G&&G+1<t.length){const R=t.slice(G+1);D.push(R),u.tokens&&(i[i.length-1].value=R,Rn(i[i.length-1]),d.maxDepth+=i[i.length-1].depth)}d.slashes=s,d.parts=D}return d};var CD=pD;const Ye=ze,Y=Ke,{MAX_LENGTH:qe,POSIX_REGEX_SOURCE:FD,REGEX_NON_SPECIAL_CHARS:gD,REGEX_SPECIAL_CHARS_BACKREF:_D,REPLACEMENTS:bn}=Ye,mD=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();const u=`[${t.join("-")}]`;try{new RegExp(u)}catch{return t.map(r=>Y.escapeRegex(r)).join("..")}return u},Ce=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Wt=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=bn[t]||t;const u=M({},e),n=typeof u.maxLength=="number"?Math.min(qe,u.maxLength):qe;let r=t.length;if(r>n)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${n}`);const s={type:"bos",value:"",output:u.prepend||""},i=[s],D=u.capture?"":"?:",o=Y.isWindows(e),a=Ye.globChars(o),c=Ye.extglobChars(a),{DOT_LITERAL:f,PLUS_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:C,DOTS_SLASH:F,NO_DOT:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:N,QMARK:S,QMARK_NO_DOT:Q,STAR:W,START_ANCHOR:re}=a,j=_=>`(${D}(?:(?!${re}${_.dot?F:f}).)*?)`,m=u.dot?"":y,v=u.dot?S:Q;let k=u.bash===!0?j(u):W;u.capture&&(k=`(${k})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const E={input:t,index:-1,start:0,dot:u.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};t=Y.removePrefix(t,E),r=t.length;const x=[],$=[],se=[];let h=s,d;const G=()=>E.index===r-1,R=E.peek=(_=1)=>t[E.index+_],Z=E.advance=()=>t[++E.index]||"",J=()=>t.slice(E.index+1),V=(_="",T=0)=>{E.consumed+=_,E.index+=T},Pe=_=>{E.output+=_.output!=null?_.output:_.value,V(_.value)},Hr=()=>{let _=1;for(;R()==="!"&&(R(2)!=="("||R(3)==="?");)Z(),E.start++,_++;return _%2===0?!1:(E.negated=!0,E.start++,!0)},He=_=>{E[_]++,se.push(_)},ie=_=>{E[_]--,se.pop()},w=_=>{if(h.type==="globstar"){const T=E.braces>0&&(_.type==="comma"||_.type==="brace"),g=_.extglob===!0||x.length&&(_.type==="pipe"||_.type==="paren");_.type!=="slash"&&_.type!=="paren"&&!T&&!g&&(E.output=E.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=k,E.output+=h.output)}if(x.length&&_.type!=="paren"&&(x[x.length-1].inner+=_.value),(_.value||_.output)&&Pe(_),h&&h.type==="text"&&_.type==="text"){h.value+=_.value,h.output=(h.output||"")+_.value;return}_.prev=h,i.push(_),h=_},Ie=(_,T)=>{const g=De(M({},c[T]),{conditions:1,inner:""});g.prev=h,g.parens=E.parens,g.output=E.output;const A=(u.capture?"(":"")+g.open;He("parens"),w({type:_,value:T,output:E.output?"":C}),w({type:"paren",extglob:!0,value:Z(),output:A}),x.push(g)},Ir=_=>{let T=_.close+(u.capture?")":""),g;if(_.type==="negate"){let A=k;if(_.inner&&_.inner.length>1&&_.inner.includes("/")&&(A=j(u)),(A!==k||G()||/^\)+$/.test(J()))&&(T=_.close=`)$))${A}`),_.inner.includes("*")&&(g=J())&&/^\.[^\\/.]+$/.test(g)){const O=Wt(g,De(M({},e),{fastpaths:!1})).output;T=_.close=`)${O})${A})`}_.prev.type==="bos"&&(E.negatedExtglob=!0)}w({type:"paren",extglob:!0,value:d,output:T}),ie("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let _=!1,T=t.replace(_D,(g,A,O,U,H,at)=>U==="\\"?(_=!0,g):U==="?"?A?A+U+(H?S.repeat(H.length):""):at===0?v+(H?S.repeat(H.length):""):S.repeat(O.length):U==="."?f.repeat(O.length):U==="*"?A?A+U+(H?k:""):k:A?g:`\\${g}`);return _===!0&&(u.unescape===!0?T=T.replace(/\\/g,""):T=T.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),T===t&&u.contains===!0?(E.output=t,E):(E.output=Y.wrapOutput(T,E,e),E)}for(;!G();){if(d=Z(),d==="\0")continue;if(d==="\\"){const g=R();if(g==="/"&&u.bash!==!0||g==="."||g===";")continue;if(!g){d+="\\",w({type:"text",value:d});continue}const A=/^\\+/.exec(J());let O=0;if(A&&A[0].length>2&&(O=A[0].length,E.index+=O,O%2!==0&&(d+="\\")),u.unescape===!0?d=Z():d+=Z(),E.brackets===0){w({type:"text",value:d});continue}}if(E.brackets>0&&(d!=="]"||h.value==="["||h.value==="[^")){if(u.posix!==!1&&d===":"){const g=h.value.slice(1);if(g.includes("[")&&(h.posix=!0,g.includes(":"))){const A=h.value.lastIndexOf("["),O=h.value.slice(0,A),U=h.value.slice(A+2),H=FD[U];if(H){h.value=O+H,E.backtrack=!0,Z(),!s.output&&i.indexOf(h)===1&&(s.output=C);continue}}}(d==="["&&R()!==":"||d==="-"&&R()==="]")&&(d=`\\${d}`),d==="]"&&(h.value==="["||h.value==="[^")&&(d=`\\${d}`),u.posix===!0&&d==="!"&&h.value==="["&&(d="^"),h.value+=d,Pe({value:d});continue}if(E.quotes===1&&d!=='"'){d=Y.escapeRegex(d),h.value+=d,Pe({value:d});continue}if(d==='"'){E.quotes=E.quotes===1?0:1,u.keepQuotes===!0&&w({type:"text",value:d});continue}if(d==="("){He("parens"),w({type:"paren",value:d});continue}if(d===")"){if(E.parens===0&&u.strictBrackets===!0)throw new SyntaxError(Ce("opening","("));const g=x[x.length-1];if(g&&E.parens===g.parens+1){Ir(x.pop());continue}w({type:"paren",value:d,output:E.parens?")":"\\)"}),ie("parens");continue}if(d==="["){if(u.nobracket===!0||!J().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(Ce("closing","]"));d=`\\${d}`}else He("brackets");w({type:"bracket",value:d});continue}if(d==="]"){if(u.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){w({type:"text",value:d,output:`\\${d}`});continue}if(E.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(Ce("opening","["));w({type:"text",value:d,output:`\\${d}`});continue}ie("brackets");const g=h.value.slice(1);if(h.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(d=`/${d}`),h.value+=d,Pe({value:d}),u.literalBrackets===!1||Y.hasRegexChars(g))continue;const A=Y.escapeRegex(h.value);if(E.output=E.output.slice(0,-h.value.length),u.literalBrackets===!0){E.output+=A,h.value=A;continue}h.value=`(${D}${A}|${h.value})`,E.output+=h.value;continue}if(d==="{"&&u.nobrace!==!0){He("braces");const g={type:"brace",value:d,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};$.push(g),w(g);continue}if(d==="}"){const g=$[$.length-1];if(u.nobrace===!0||!g){w({type:"text",value:d,output:d});continue}let A=")";if(g.dots===!0){const O=i.slice(),U=[];for(let H=O.length-1;H>=0&&(i.pop(),O[H].type!=="brace");H--)O[H].type!=="dots"&&U.unshift(O[H].value);A=mD(U,u),E.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const O=E.output.slice(0,g.outputIndex),U=E.tokens.slice(g.tokensIndex);g.value=g.output="\\{",d=A="\\}",E.output=O;for(const H of U)E.output+=H.output||H.value}w({type:"brace",value:d,output:A}),ie("braces"),$.pop();continue}if(d==="|"){x.length>0&&x[x.length-1].conditions++,w({type:"text",value:d});continue}if(d===","){let g=d;const A=$[$.length-1];A&&se[se.length-1]==="braces"&&(A.comma=!0,g="|"),w({type:"comma",value:d,output:g});continue}if(d==="/"){if(h.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",i.pop(),h=s;continue}w({type:"slash",value:d,output:p});continue}if(d==="."){if(E.braces>0&&h.type==="dot"){h.value==="."&&(h.output=f);const g=$[$.length-1];h.type="dots",h.output+=d,h.value+=d,g.dots=!0;continue}if(E.braces+E.parens===0&&h.type!=="bos"&&h.type!=="slash"){w({type:"text",value:d,output:f});continue}w({type:"dot",value:d,output:f});continue}if(d==="?"){if(!(h&&h.value==="(")&&u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Ie("qmark",d);continue}if(h&&h.type==="paren"){const A=R();let O=d;if(A==="<"&&!Y.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(A)||A==="<"&&!/<([!=]|\w+>)/.test(J()))&&(O=`\\${d}`),w({type:"text",value:d,output:O});continue}if(u.dot!==!0&&(h.type==="slash"||h.type==="bos")){w({type:"qmark",value:d,output:Q});continue}w({type:"qmark",value:d,output:S});continue}if(d==="!"){if(u.noextglob!==!0&&R()==="("&&(R(2)!=="?"||!/[!=<:]/.test(R(3)))){Ie("negate",d);continue}if(u.nonegate!==!0&&E.index===0){Hr();continue}}if(d==="+"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Ie("plus",d);continue}if(h&&h.value==="("||u.regex===!1){w({type:"plus",value:d,output:l});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||E.parens>0){w({type:"plus",value:d});continue}w({type:"plus",value:l});continue}if(d==="@"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){w({type:"at",extglob:!0,value:d,output:""});continue}w({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);const g=gD.exec(J());g&&(d+=g[0],E.index+=g[0].length),w({type:"text",value:d});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=d,h.output=k,E.backtrack=!0,E.globstar=!0,V(d);continue}let _=J();if(u.noextglob!==!0&&/^\([^?]/.test(_)){Ie("star",d);continue}if(h.type==="star"){if(u.noglobstar===!0){V(d);continue}const g=h.prev,A=g.prev,O=g.type==="slash"||g.type==="bos",U=A&&(A.type==="star"||A.type==="globstar");if(u.bash===!0&&(!O||_[0]&&_[0]!=="/")){w({type:"star",value:d,output:""});continue}const H=E.braces>0&&(g.type==="comma"||g.type==="brace"),at=x.length&&(g.type==="pipe"||g.type==="paren");if(!O&&g.type!=="paren"&&!H&&!at){w({type:"star",value:d,output:""});continue}for(;_.slice(0,3)==="/**";){const Le=t[E.index+4];if(Le&&Le!=="/")break;_=_.slice(3),V("/**",3)}if(g.type==="bos"&&G()){h.type="globstar",h.value+=d,h.output=j(u),E.output=h.output,E.globstar=!0,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!U&&G()){E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=j(u)+(u.strictSlashes?")":"|$)"),h.value+=d,E.globstar=!0,E.output+=g.output+h.output,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&_[0]==="/"){const Le=_[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=`${j(u)}${p}|${p}${Le})`,h.value+=d,E.output+=g.output+h.output,E.globstar=!0,V(d+Z()),w({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&_[0]==="/"){h.type="globstar",h.value+=d,h.output=`(?:^|${p}|${j(u)}${p})`,E.output=h.output,E.globstar=!0,V(d+Z()),w({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-h.output.length),h.type="globstar",h.output=j(u),h.value+=d,E.output+=h.output,E.globstar=!0,V(d);continue}const T={type:"star",value:d,output:k};if(u.bash===!0){T.output=".*?",(h.type==="bos"||h.type==="slash")&&(T.output=m+T.output),w(T);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&u.regex===!0){T.output=d,w(T);continue}(E.index===E.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(E.output+=b,h.output+=b):u.dot===!0?(E.output+=N,h.output+=N):(E.output+=m,h.output+=m),R()!=="*"&&(E.output+=C,h.output+=C)),w(T)}for(;E.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(Ce("closing","]"));E.output=Y.escapeLast(E.output,"["),ie("brackets")}for(;E.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(Ce("closing",")"));E.output=Y.escapeLast(E.output,"("),ie("parens")}for(;E.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(Ce("closing","}"));E.output=Y.escapeLast(E.output,"{"),ie("braces")}if(u.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&w({type:"maybe_slash",value:"",output:`${p}?`}),E.backtrack===!0){E.output="";for(const _ of E.tokens)E.output+=_.output!=null?_.output:_.value,_.suffix&&(E.output+=_.suffix)}return E};Wt.fastpaths=(t,e)=>{const u=M({},e),n=typeof u.maxLength=="number"?Math.min(qe,u.maxLength):qe,r=t.length;if(r>n)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${n}`);t=bn[t]||t;const s=Y.isWindows(e),{DOT_LITERAL:i,SLASH_LITERAL:D,ONE_CHAR:o,DOTS_SLASH:a,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:l,STAR:p,START_ANCHOR:C}=Ye.globChars(s),F=u.dot?f:c,y=u.dot?l:c,b=u.capture?"":"?:",N={negated:!1,prefix:""};let S=u.bash===!0?".*?":p;u.capture&&(S=`(${S})`);const Q=m=>m.noglobstar===!0?S:`(${b}(?:(?!${C}${m.dot?a:i}).)*?)`,W=m=>{switch(m){case"*":return`${F}${o}${S}`;case".*":return`${i}${o}${S}`;case"*.*":return`${F}${S}${i}${o}${S}`;case"*/*":return`${F}${S}${D}${o}${y}${S}`;case"**":return F+Q(u);case"**/*":return`(?:${F}${Q(u)}${D})?${y}${o}${S}`;case"**/*.*":return`(?:${F}${Q(u)}${D})?${y}${S}${i}${o}${S}`;case"**/.*":return`(?:${F}${Q(u)}${D})?${i}${o}${S}`;default:{const v=/^(.*?)\.(\w+)$/.exec(m);if(!v)return;const k=W(v[1]);return k?k+i+v[2]:void 0}}},re=Y.removePrefix(t,N);let j=W(re);return j&&u.strictSlashes!==!0&&(j+=`${D}?`),j};var AD=Wt;const yD=z,wD=CD,jt=AD,Gt=Ke,RD=ze,bD=t=>t&&typeof t=="object"&&!Array.isArray(t),P=(t,e,u=!1)=>{if(Array.isArray(t)){const c=t.map(l=>P(l,e,u));return l=>{for(const p of c){const C=p(l);if(C)return C}return!1}}const n=bD(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");const r=e||{},s=Gt.isWindows(e),i=n?P.compileRe(t,e):P.makeRe(t,e,!1,!0),D=i.state;delete i.state;let o=()=>!1;if(r.ignore){const c=De(M({},e),{ignore:null,onMatch:null,onResult:null});o=P(r.ignore,c,u)}const a=(c,f=!1)=>{const{isMatch:l,match:p,output:C}=P.test(c,i,e,{glob:t,posix:s}),F={glob:t,state:D,regex:i,posix:s,input:c,output:C,match:p,isMatch:l};return typeof r.onResult=="function"&&r.onResult(F),l===!1?(F.isMatch=!1,f?F:!1):o(c)?(typeof r.onIgnore=="function"&&r.onIgnore(F),F.isMatch=!1,f?F:!1):(typeof r.onMatch=="function"&&r.onMatch(F),f?F:!0)};return u&&(a.state=D),a};P.test=(t,e,u,{glob:n,posix:r}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};const s=u||{},i=s.format||(r?Gt.toPosixSlashes:null);let D=t===n,o=D&&i?i(t):t;return D===!1&&(o=i?i(t):t,D=o===n),(D===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?D=P.matchBase(t,e,u,r):D=e.exec(o)),{isMatch:Boolean(D),match:D,output:o}},P.matchBase=(t,e,u,n=Gt.isWindows(u))=>(e instanceof RegExp?e:P.makeRe(e,u)).test(yD.basename(t)),P.isMatch=(t,e,u)=>P(e,u)(t),P.parse=(t,e)=>Array.isArray(t)?t.map(u=>P.parse(u,e)):jt(t,De(M({},e),{fastpaths:!1})),P.scan=(t,e)=>wD(t,e),P.compileRe=(t,e,u=!1,n=!1)=>{if(u===!0)return t.output;const r=e||{},s=r.contains?"":"^",i=r.contains?"":"$";let D=`${s}(?:${t.output})${i}`;t&&t.negated===!0&&(D=`^(?!${D}).*$`);const o=P.toRegex(D,e);return n===!0&&(o.state=t),o},P.makeRe=(t,e={},u=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let r={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(r.output=jt.fastpaths(t,e)),r.output||(r=jt(t,e)),P.compileRe(r,e,u,n)},P.toRegex=(t,e)=>{try{const u=e||{};return new RegExp(t,u.flags||(u.nocase?"i":""))}catch(u){if(e&&e.debug===!0)throw u;return/$^/}},P.constants=RD;var vD=P;(function(t){t.exports=vD})(Ot);const be=oe,{Readable:BD}=qr,ve=z,{promisify:Xe}=ye,Ut=Ot.exports,SD=Xe(be.readdir),$D=Xe(be.stat),vn=Xe(be.lstat),TD=Xe(be.realpath),xD="!",Bn="READDIRP_RECURSIVE_ERROR",OD=new Set(["ENOENT","EPERM","EACCES","ELOOP",Bn]),Kt="files",Sn="directories",Qe="files_directories",Ze="all",$n=[Kt,Sn,Qe,Ze],ND=t=>OD.has(t.code),[Tn,PD]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),HD=process.platform==="win32"&&(Tn>10||Tn===10&&PD>=5),xn=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){const e=Ut(t.trim());return u=>e(u.basename)}if(Array.isArray(t)){const e=[],u=[];for(const n of t){const r=n.trim();r.charAt(0)===xD?u.push(Ut(r.slice(1))):e.push(Ut(r))}return u.length>0?e.length>0?n=>e.some(r=>r(n.basename))&&!u.some(r=>r(n.basename)):n=>!u.some(r=>r(n.basename)):n=>e.some(r=>r(n.basename))}}};class ot extends BD{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:Kt,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const u=M(M({},ot.defaultOptions),e),{root:n,type:r}=u;this._fileFilter=xn(u.fileFilter),this._directoryFilter=xn(u.directoryFilter);const s=u.lstat?vn:$D;HD?this._stat=i=>s(i,{bigint:!0}):this._stat=s,this._maxDepth=u.depth,this._wantsDir=[Sn,Qe,Ze].includes(r),this._wantsFile=[Kt,Qe,Ze].includes(r),this._wantsEverything=r===Ze,this._root=ve.resolve(n),this._isDirent="Dirent"in be&&!u.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(n,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){const{path:u,depth:n,files:r=[]}=this.parent||{};if(r.length>0){const s=r.splice(0,e).map(i=>this._formatEntry(i,u));for(const i of await Promise.all(s)){if(this.destroyed)return;const D=await this._getEntryType(i);D==="directory"&&this._directoryFilter(i)?(n<=this._maxDepth&&this.parents.push(this._exploreDir(i.fullPath,n+1)),this._wantsDir&&(this.push(i),e--)):(D==="file"||this._includeAsFile(i))&&this._fileFilter(i)&&this._wantsFile&&(this.push(i),e--)}}else{const s=this.parents.pop();if(!s){this.push(null);break}if(this.parent=await s,this.destroyed)return}}}catch(u){this.destroy(u)}finally{this.reading=!1}}}async _exploreDir(e,u){let n;try{n=await SD(e,this._rdOptions)}catch(r){this._onError(r)}return{files:n,depth:u,path:e}}async _formatEntry(e,u){let n;try{const r=this._isDirent?e.name:e,s=ve.resolve(ve.join(u,r));n={path:ve.relative(this._root,s),fullPath:s,basename:r},n[this._statsProp]=this._isDirent?e:await this._stat(s)}catch(r){this._onError(r)}return n}_onError(e){ND(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){const u=e&&e[this._statsProp];if(!!u){if(u.isFile())return"file";if(u.isDirectory())return"directory";if(u&&u.isSymbolicLink()){const n=e.fullPath;try{const r=await TD(n),s=await vn(r);if(s.isFile())return"file";if(s.isDirectory()){const i=r.length;if(n.startsWith(r)&&n.substr(i,1)===ve.sep){const D=new Error(`Circular symlink detected: "${n}" points to "${r}"`);return D.code=Bn,this._onError(D)}return"directory"}}catch(r){this._onError(r)}}}}_includeAsFile(e){const u=e&&e[this._statsProp];return u&&this._wantsEverything&&!u.isDirectory()}}const Fe=(t,e={})=>{let u=e.entryType||e.type;if(u==="both"&&(u=Qe),u&&(e.type=u),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(u&&!$n.includes(u))throw new Error(`readdirp: Invalid type passed. Use one of ${$n.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new ot(e)},ID=(t,e={})=>new Promise((u,n)=>{const r=[];Fe(t,e).on("data",s=>r.push(s)).on("end",()=>u(r)).on("error",s=>n(s))});Fe.promise=ID,Fe.ReaddirpStream=ot,Fe.default=Fe;var LD=Fe,Vt={exports:{}};/*!
23
23
  * normalize-path <https://github.com/jonschlinkert/normalize-path>
24
24
  *
25
25
  * Copyright (c) 2014-2018, Jon Schlinkert.
26
26
  * Released under the MIT License.
27
- */var Sr=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var u=t.length;if(u<=1)return t;var r="";if(u>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),r="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),r+s.join("/")};Object.defineProperty(jt.exports,"__esModule",{value:!0});const $r=$t.exports,SD=Sr,Tr="!",$D={returnIndex:!1},TD=t=>Array.isArray(t)?t:[t],xD=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){const u=$r(t,e);return r=>t===r||u(r)}return t instanceof RegExp?u=>t.test(u):u=>!1},xr=(t,e,u,r)=>{const n=Array.isArray(u),s=n?u[0]:u;if(!n&&typeof s!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(s));const D=SD(s);for(let o=0;o<e.length;o++)if(e[o](D))return r?-1:!1;const i=n&&[D].concat(u.slice(1));for(let o=0;o<t.length;o++){const a=t[o];if(n?a(...i):a(D))return r?o:!0}return r?-1:!1},Ut=(t,e,u=$D)=>{if(t==null)throw new TypeError("anymatch: specify first argument");const r=typeof u=="boolean"?{returnIndex:u}:u,n=r.returnIndex||!1,s=TD(t),D=s.filter(o=>typeof o=="string"&&o.charAt(0)===Tr).map(o=>o.slice(1)).map(o=>$r(o,r)),i=s.filter(o=>typeof o!="string"||typeof o=="string"&&o.charAt(0)!==Tr).map(o=>xD(o,r));return e==null?(o,a=!1)=>xr(i,D,o,typeof a=="boolean"?a:!1):xr(i,D,e,n)};Ut.default=Ut,jt.exports=Ut;/*!
27
+ */var On=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var u=t.length;if(u<=1)return t;var n="";if(u>4&&t[3]==="\\"){var r=t[2];(r==="?"||r===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),n="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")};Object.defineProperty(Vt.exports,"__esModule",{value:!0});const Nn=Ot.exports,kD=On,Pn="!",MD={returnIndex:!1},WD=t=>Array.isArray(t)?t:[t],jD=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){const u=Nn(t,e);return n=>t===n||u(n)}return t instanceof RegExp?u=>t.test(u):u=>!1},Hn=(t,e,u,n)=>{const r=Array.isArray(u),s=r?u[0]:u;if(!r&&typeof s!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(s));const i=kD(s);for(let o=0;o<e.length;o++)if(e[o](i))return n?-1:!1;const D=r&&[i].concat(u.slice(1));for(let o=0;o<t.length;o++){const a=t[o];if(r?a(...D):a(i))return n?o:!0}return n?-1:!1},zt=(t,e,u=MD)=>{if(t==null)throw new TypeError("anymatch: specify first argument");const n=typeof u=="boolean"?{returnIndex:u}:u,r=n.returnIndex||!1,s=WD(t),i=s.filter(o=>typeof o=="string"&&o.charAt(0)===Pn).map(o=>o.slice(1)).map(o=>Nn(o,n)),D=s.filter(o=>typeof o!="string"||typeof o=="string"&&o.charAt(0)!==Pn).map(o=>jD(o,n));return e==null?(o,a=!1)=>Hn(D,i,o,typeof a=="boolean"?a:!1):Hn(D,i,e,r)};zt.default=zt,Vt.exports=zt;/*!
28
28
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
29
29
  *
30
30
  * Copyright (c) 2014-2016, Jon Schlinkert.
31
31
  * Licensed under the MIT License.
32
- */var OD=function(e){if(typeof e!="string"||e==="")return!1;for(var u;u=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(u[2])return!0;e=e.slice(u.index+u[0].length)}return!1};/*!
32
+ */var GD=function(e){if(typeof e!="string"||e==="")return!1;for(var u;u=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(u[2])return!0;e=e.slice(u.index+u[0].length)}return!1};/*!
33
33
  * is-glob <https://github.com/jonschlinkert/is-glob>
34
34
  *
35
35
  * Copyright (c) 2014-2017, Jon Schlinkert.
36
36
  * Released under the MIT License.
37
- */var ND=OD,Or={"{":"}","(":")","[":"]"},HD=function(t){if(t[0]==="!")return!0;for(var e=0,u=-2,r=-2,n=-2,s=-2,D=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||r!==-1&&t[e]==="["&&t[e+1]!=="]"&&(r<e&&(r=t.indexOf("]",e)),r>e&&(D===-1||D>r||(D=t.indexOf("\\",e),D===-1||D>r)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(D=t.indexOf("\\",e),D===-1||D>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(D=t.indexOf("\\",e),D===-1||D>s))||u!==-1&&t[e]==="("&&t[e+1]!=="|"&&(u<e&&(u=t.indexOf("|",e)),u!==-1&&t[u+1]!==")"&&(s=t.indexOf(")",u),s>u&&(D=t.indexOf("\\",u),D===-1||D>s))))return!0;if(t[e]==="\\"){var i=t[e+1];e+=2;var o=Or[i];if(o){var a=t.indexOf(o,e);a!==-1&&(e=a+1)}if(t[e]==="!")return!0}else e++}return!1},PD=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var u=t[e+1];e+=2;var r=Or[u];if(r){var n=t.indexOf(r,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1},Nr=function(e,u){if(typeof e!="string"||e==="")return!1;if(ND(e))return!0;var r=HD;return u&&u.strict===!1&&(r=PD),r(e)},LD=Nr,ID=z.posix.dirname,kD=Au.platform()==="win32",Kt="/",MD=/\\/g,WD=/[\{\[].*[\}\]]$/,GD=/(^|[^\\])([\{\[]|\([^\)]+$)/,jD=/\\([\!\*\?\|\[\]\(\)\{\}])/g,UD=function(e,u){var r=Object.assign({flipBackslashes:!0},u);r.flipBackslashes&&kD&&e.indexOf(Kt)<0&&(e=e.replace(MD,Kt)),WD.test(e)&&(e+=Kt),e+="a";do e=ID(e);while(LD(e)||GD.test(e));return e.replace(jD,"$1")},Qe={};(function(t){t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,u)=>e.nodes.find(r=>r.type===u),t.exceedsLimit=(e,u,r=1,n)=>n===!1||!t.isInteger(e)||!t.isInteger(u)?!1:(Number(u)-Number(e))/Number(r)>=n,t.escapeNode=(e,u=0,r)=>{let n=e.nodes[u];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1,t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((u,r)=>(r.type==="text"&&u.push(r.value),r.type==="range"&&(r.type="text"),u),[]),t.flatten=(...e)=>{const u=[],r=n=>{for(let s=0;s<n.length;s++){let D=n[s];Array.isArray(D)?r(D):D!==void 0&&u.push(D)}return u};return r(e),u}})(Qe);const Hr=Qe;var Vt=(t,e={})=>{let u=(r,n={})=>{let s=e.escapeInvalid&&Hr.isInvalidBrace(n),D=r.invalid===!0&&e.escapeInvalid===!0,i="";if(r.value)return(s||D)&&Hr.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let o of r.nodes)i+=u(o);return i};return u(t)};/*!
37
+ */var UD=GD,In={"{":"}","(":")","[":"]"},KD=function(t){if(t[0]==="!")return!0;for(var e=0,u=-2,n=-2,r=-2,s=-2,i=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(i===-1||i>n||(i=t.indexOf("\\",e),i===-1||i>n)))||r!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(r=t.indexOf("}",e),r>e&&(i=t.indexOf("\\",e),i===-1||i>r))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(i=t.indexOf("\\",e),i===-1||i>s))||u!==-1&&t[e]==="("&&t[e+1]!=="|"&&(u<e&&(u=t.indexOf("|",e)),u!==-1&&t[u+1]!==")"&&(s=t.indexOf(")",u),s>u&&(i=t.indexOf("\\",u),i===-1||i>s))))return!0;if(t[e]==="\\"){var D=t[e+1];e+=2;var o=In[D];if(o){var a=t.indexOf(o,e);a!==-1&&(e=a+1)}if(t[e]==="!")return!0}else e++}return!1},VD=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var u=t[e+1];e+=2;var n=In[u];if(n){var r=t.indexOf(n,e);r!==-1&&(e=r+1)}if(t[e]==="!")return!0}else e++}return!1},Ln=function(e,u){if(typeof e!="string"||e==="")return!1;if(UD(e))return!0;var n=KD;return u&&u.strict===!1&&(n=VD),n(e)},zD=Ln,YD=z.posix.dirname,qD=Ru.platform()==="win32",Yt="/",XD=/\\/g,QD=/[\{\[].*[\}\]]$/,ZD=/(^|[^\\])([\{\[]|\([^\)]+$)/,JD=/\\([\!\*\?\|\[\]\(\)\{\}])/g,eo=function(e,u){var n=Object.assign({flipBackslashes:!0},u);n.flipBackslashes&&qD&&e.indexOf(Yt)<0&&(e=e.replace(XD,Yt)),QD.test(e)&&(e+=Yt),e+="a";do e=YD(e);while(zD(e)||ZD.test(e));return e.replace(JD,"$1")},Je={};(function(t){t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,u)=>e.nodes.find(n=>n.type===u),t.exceedsLimit=(e,u,n=1,r)=>r===!1||!t.isInteger(e)||!t.isInteger(u)?!1:(Number(u)-Number(e))/Number(n)>=r,t.escapeNode=(e,u=0,n)=>{let r=e.nodes[u];!r||(n&&r.type===n||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1,t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((u,n)=>(n.type==="text"&&u.push(n.value),n.type==="range"&&(n.type="text"),u),[]),t.flatten=(...e)=>{const u=[],n=r=>{for(let s=0;s<r.length;s++){let i=r[s];Array.isArray(i)?n(i):i!==void 0&&u.push(i)}return u};return n(e),u}})(Je);const kn=Je;var qt=(t,e={})=>{let u=(n,r={})=>{let s=e.escapeInvalid&&kn.isInvalidBrace(r),i=n.invalid===!0&&e.escapeInvalid===!0,D="";if(n.value)return(s||i)&&kn.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let o of n.nodes)D+=u(o);return D};return u(t)};/*!
38
38
  * is-number <https://github.com/jonschlinkert/is-number>
39
39
  *
40
40
  * Copyright (c) 2014-present, Jon Schlinkert.
41
41
  * Released under the MIT License.
42
- */var KD=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1};/*!
42
+ */var to=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1};/*!
43
43
  * to-regex-range <https://github.com/micromatch/to-regex-range>
44
44
  *
45
45
  * Copyright (c) 2015-present, Jon Schlinkert.
46
46
  * Released under the MIT License.
47
- */const Pr=KD,le=(t,e,u)=>{if(Pr(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Pr(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r=M({relaxZeros:!0},u);typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let n=String(r.relaxZeros),s=String(r.shorthand),D=String(r.capture),i=String(r.wrap),o=t+":"+e+"="+n+s+D+i;if(le.cache.hasOwnProperty(o))return le.cache[o].result;let a=Math.min(t,e),c=Math.max(t,e);if(Math.abs(a-c)===1){let F=t+"|"+e;return r.capture?`(${F})`:r.wrap===!1?F:`(?:${F})`}let f=Gr(t)||Gr(e),l={min:t,max:e,a,b:c},C=[],p=[];if(f&&(l.isPadded=f,l.maxLen=String(l.max).length),a<0){let F=c<0?Math.abs(c):1;p=Lr(F,Math.abs(a),l,r),a=l.a=0}return c>=0&&(C=Lr(a,c,l,r)),l.negatives=p,l.positives=C,l.result=VD(p,C),r.capture===!0?l.result=`(${l.result})`:r.wrap!==!1&&C.length+p.length>1&&(l.result=`(?:${l.result})`),le.cache[o]=l,l.result};function VD(t,e,u){let r=zt(t,e,"-",!1)||[],n=zt(e,t,"",!1)||[],s=zt(t,e,"-?",!0)||[];return r.concat(s).concat(n).join("|")}function zD(t,e){let u=1,r=1,n=kr(t,u),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),u+=1,n=kr(t,u);for(n=Mr(e+1,r)-1;t<n&&n<=e;)s.add(n),r+=1,n=Mr(e+1,r)-1;return s=[...s],s.sort(XD),s}function YD(t,e,u){if(t===e)return{pattern:t,count:[],digits:0};let r=qD(t,e),n=r.length,s="",D=0;for(let i=0;i<n;i++){let[o,a]=r[i];o===a?s+=o:o!=="0"||a!=="9"?s+=QD(o,a):D++}return D&&(s+=u.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[D],digits:n}}function Lr(t,e,u,r){let n=zD(t,e),s=[],D=t,i;for(let o=0;o<n.length;o++){let a=n[o],c=YD(String(D),String(a),r),f="";if(!u.isPadded&&i&&i.pattern===c.pattern){i.count.length>1&&i.count.pop(),i.count.push(c.count[0]),i.string=i.pattern+Wr(i.count),D=a+1;continue}u.isPadded&&(f=ZD(a,u,r)),c.string=f+c.pattern+Wr(c.count),s.push(c),D=a+1,i=c}return s}function zt(t,e,u,r,n){let s=[];for(let D of t){let{string:i}=D;!r&&!Ir(e,"string",i)&&s.push(u+i),r&&Ir(e,"string",i)&&s.push(u+i)}return s}function qD(t,e){let u=[];for(let r=0;r<t.length;r++)u.push([t[r],e[r]]);return u}function XD(t,e){return t>e?1:e>t?-1:0}function Ir(t,e,u){return t.some(r=>r[e]===u)}function kr(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Mr(t,e){return t-t%Math.pow(10,e)}function Wr(t){let[e=0,u=""]=t;return u||e>1?`{${e+(u?","+u:"")}}`:""}function QD(t,e,u){return`[${t}${e-t===1?"":"-"}${e}]`}function Gr(t){return/^-?(0+)\d/.test(t)}function ZD(t,e,u){if(!e.isPadded)return t;let r=Math.abs(e.maxLen-String(t).length),n=u.relaxZeros!==!1;switch(r){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${r}}`:`0{${r}}`}}le.cache={},le.clearCache=()=>le.cache={};var JD=le;/*!
47
+ */const Mn=to,le=(t,e,u)=>{if(Mn(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Mn(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n=M({relaxZeros:!0},u);typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let r=String(n.relaxZeros),s=String(n.shorthand),i=String(n.capture),D=String(n.wrap),o=t+":"+e+"="+r+s+i+D;if(le.cache.hasOwnProperty(o))return le.cache[o].result;let a=Math.min(t,e),c=Math.max(t,e);if(Math.abs(a-c)===1){let F=t+"|"+e;return n.capture?`(${F})`:n.wrap===!1?F:`(?:${F})`}let f=Vn(t)||Vn(e),l={min:t,max:e,a,b:c},p=[],C=[];if(f&&(l.isPadded=f,l.maxLen=String(l.max).length),a<0){let F=c<0?Math.abs(c):1;C=Wn(F,Math.abs(a),l,n),a=l.a=0}return c>=0&&(p=Wn(a,c,l,n)),l.negatives=C,l.positives=p,l.result=uo(C,p),n.capture===!0?l.result=`(${l.result})`:n.wrap!==!1&&p.length+C.length>1&&(l.result=`(?:${l.result})`),le.cache[o]=l,l.result};function uo(t,e,u){let n=Xt(t,e,"-",!1)||[],r=Xt(e,t,"",!1)||[],s=Xt(t,e,"-?",!0)||[];return n.concat(s).concat(r).join("|")}function no(t,e){let u=1,n=1,r=Gn(t,u),s=new Set([e]);for(;t<=r&&r<=e;)s.add(r),u+=1,r=Gn(t,u);for(r=Un(e+1,n)-1;t<r&&r<=e;)s.add(r),n+=1,r=Un(e+1,n)-1;return s=[...s],s.sort(io),s}function ro(t,e,u){if(t===e)return{pattern:t,count:[],digits:0};let n=so(t,e),r=n.length,s="",i=0;for(let D=0;D<r;D++){let[o,a]=n[D];o===a?s+=o:o!=="0"||a!=="9"?s+=Do(o,a):i++}return i&&(s+=u.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[i],digits:r}}function Wn(t,e,u,n){let r=no(t,e),s=[],i=t,D;for(let o=0;o<r.length;o++){let a=r[o],c=ro(String(i),String(a),n),f="";if(!u.isPadded&&D&&D.pattern===c.pattern){D.count.length>1&&D.count.pop(),D.count.push(c.count[0]),D.string=D.pattern+Kn(D.count),i=a+1;continue}u.isPadded&&(f=oo(a,u,n)),c.string=f+c.pattern+Kn(c.count),s.push(c),i=a+1,D=c}return s}function Xt(t,e,u,n,r){let s=[];for(let i of t){let{string:D}=i;!n&&!jn(e,"string",D)&&s.push(u+D),n&&jn(e,"string",D)&&s.push(u+D)}return s}function so(t,e){let u=[];for(let n=0;n<t.length;n++)u.push([t[n],e[n]]);return u}function io(t,e){return t>e?1:e>t?-1:0}function jn(t,e,u){return t.some(n=>n[e]===u)}function Gn(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Un(t,e){return t-t%Math.pow(10,e)}function Kn(t){let[e=0,u=""]=t;return u||e>1?`{${e+(u?","+u:"")}}`:""}function Do(t,e,u){return`[${t}${e-t===1?"":"-"}${e}]`}function Vn(t){return/^-?(0+)\d/.test(t)}function oo(t,e,u){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),r=u.relaxZeros!==!1;switch(n){case 0:return"";case 1:return r?"0?":"0";case 2:return r?"0{0,2}":"00";default:return r?`0{0,${n}}`:`0{${n}}`}}le.cache={},le.clearCache=()=>le.cache={};var ao=le;/*!
48
48
  * fill-range <https://github.com/jonschlinkert/fill-range>
49
49
  *
50
50
  * Copyright (c) 2014-present, Jon Schlinkert.
51
51
  * Licensed under the MIT License.
52
- */const eo=me,jr=JD,Ur=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),to=t=>e=>t===!0?Number(e):String(e),Yt=t=>typeof t=="number"||typeof t=="string"&&t!=="",be=t=>Number.isInteger(+t),qt=t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},uo=(t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,ro=(t,e,u)=>{if(e>0){let r=t[0]==="-"?"-":"";r&&(t=t.slice(1)),t=r+t.padStart(r?e-1:e,"0")}return u===!1?String(t):t},Kr=(t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},no=(t,e)=>{t.negatives.sort((D,i)=>D<i?-1:D>i?1:0),t.positives.sort((D,i)=>D<i?-1:D>i?1:0);let u=e.capture?"":"?:",r="",n="",s;return t.positives.length&&(r=t.positives.join("|")),t.negatives.length&&(n=`-(${u}${t.negatives.join("|")})`),r&&n?s=`${r}|${n}`:s=r||n,e.wrap?`(${u}${s})`:s},Vr=(t,e,u,r)=>{if(u)return jr(t,e,M({wrap:!1},r));let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},zr=(t,e,u)=>{if(Array.isArray(t)){let r=u.wrap===!0,n=u.capture?"":"?:";return r?`(${n}${t.join("|")})`:t.join("|")}return jr(t,e,u)},Yr=(...t)=>new RangeError("Invalid range arguments: "+eo.inspect(...t)),qr=(t,e,u)=>{if(u.strictRanges===!0)throw Yr([t,e]);return[]},so=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},io=(t,e,u=1,r={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(r.strictRanges===!0)throw Yr([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let D=n>s,i=String(t),o=String(e),a=String(u);u=Math.max(Math.abs(u),1);let c=qt(i)||qt(o)||qt(a),f=c?Math.max(i.length,o.length,a.length):0,l=c===!1&&uo(t,e,r)===!1,C=r.transform||to(l);if(r.toRegex&&u===1)return Vr(Kr(t,f),Kr(e,f),!0,r);let p={negatives:[],positives:[]},F=H=>p[H<0?"negatives":"positives"].push(Math.abs(H)),A=[],B=0;for(;D?n>=s:n<=s;)r.toRegex===!0&&u>1?F(n):A.push(ro(C(n,B),f,l)),n=D?n-u:n+u,B++;return r.toRegex===!0?u>1?no(p,r):zr(A,null,M({wrap:!1},r)):A},Do=(t,e,u=1,r={})=>{if(!be(t)&&t.length>1||!be(e)&&e.length>1)return qr(t,e,r);let n=r.transform||(l=>String.fromCharCode(l)),s=`${t}`.charCodeAt(0),D=`${e}`.charCodeAt(0),i=s>D,o=Math.min(s,D),a=Math.max(s,D);if(r.toRegex&&u===1)return Vr(o,a,!1,r);let c=[],f=0;for(;i?s>=D:s<=D;)c.push(n(s,f)),s=i?s-u:s+u,f++;return r.toRegex===!0?zr(c,null,{wrap:!1,options:r}):c},Ze=(t,e,u,r={})=>{if(e==null&&Yt(t))return[t];if(!Yt(t)||!Yt(e))return qr(t,e,r);if(typeof u=="function")return Ze(t,e,1,{transform:u});if(Ur(u))return Ze(t,e,0,u);let n=M({},r);return n.capture===!0&&(n.wrap=!0),u=u||n.step||1,be(u)?be(t)&&be(e)?io(t,e,u,n):Do(t,e,Math.max(Math.abs(u),1),n):u!=null&&!Ur(u)?so(u,n):Ze(t,e,1,u)};var Xr=Ze;const oo=Xr,Qr=Qe,ao=(t,e={})=>{let u=(r,n={})=>{let s=Qr.isInvalidBrace(n),D=r.invalid===!0&&e.escapeInvalid===!0,i=s===!0||D===!0,o=e.escapeInvalid===!0?"\\":"",a="";if(r.isOpen===!0||r.isClose===!0)return o+r.value;if(r.type==="open")return i?o+r.value:"(";if(r.type==="close")return i?o+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":i?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let c=Qr.reduce(r.nodes),f=oo(...c,De(M({},e),{wrap:!1,toRegex:!0}));if(f.length!==0)return c.length>1&&f.length>1?`(${f})`:f}if(r.nodes)for(let c of r.nodes)a+=u(c,r);return a};return u(t)};var lo=ao;const co=Xr,Zr=Vt,Fe=Qe,ce=(t="",e="",u=!1)=>{let r=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?Fe.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)r.push(ce(s,e,u));else for(let s of e)u===!0&&typeof s=="string"&&(s=`{${s}}`),r.push(Array.isArray(s)?ce(n,s,u):n+s);return Fe.flatten(r)},fo=(t,e={})=>{let u=e.rangeLimit===void 0?1e3:e.rangeLimit,r=(n,s={})=>{n.queue=[];let D=s,i=s.queue;for(;D.type!=="brace"&&D.type!=="root"&&D.parent;)D=D.parent,i=D.queue;if(n.invalid||n.dollar){i.push(ce(i.pop(),Zr(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){i.push(ce(i.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=Fe.reduce(n.nodes);if(Fe.exceedsLimit(...f,e.step,u))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=co(...f,e);l.length===0&&(l=Zr(n,e)),i.push(ce(i.pop(),l)),n.nodes=[];return}let o=Fe.encloseBrace(n),a=n.queue,c=n;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,a=c.queue;for(let f=0;f<n.nodes.length;f++){let l=n.nodes[f];if(l.type==="comma"&&n.type==="brace"){f===1&&a.push(""),a.push("");continue}if(l.type==="close"){i.push(ce(i.pop(),a,o));continue}if(l.value&&l.type!=="open"){a.push(ce(a.pop(),l.value));continue}l.nodes&&r(l,n)}return a};return Fe.flatten(r(t))};var ho=fo,Eo={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
53
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const po=Vt,{MAX_LENGTH:Jr,CHAR_BACKSLASH:Xt,CHAR_BACKTICK:Co,CHAR_COMMA:Fo,CHAR_DOT:go,CHAR_LEFT_PARENTHESES:_o,CHAR_RIGHT_PARENTHESES:mo,CHAR_LEFT_CURLY_BRACE:Ao,CHAR_RIGHT_CURLY_BRACE:yo,CHAR_LEFT_SQUARE_BRACKET:en,CHAR_RIGHT_SQUARE_BRACKET:tn,CHAR_DOUBLE_QUOTE:wo,CHAR_SINGLE_QUOTE:Ro,CHAR_NO_BREAK_SPACE:bo,CHAR_ZERO_WIDTH_NOBREAK_SPACE:vo}=Eo,Bo=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},r=typeof u.maxLength=="number"?Math.min(Jr,u.maxLength):Jr;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let n={type:"root",input:t,nodes:[]},s=[n],D=n,i=n,o=0,a=t.length,c=0,f=0,l;const C=()=>t[c++],p=F=>{if(F.type==="text"&&i.type==="dot"&&(i.type="text"),i&&i.type==="text"&&F.type==="text"){i.value+=F.value;return}return D.nodes.push(F),F.parent=D,F.prev=i,i=F,F};for(p({type:"bos"});c<a;)if(D=s[s.length-1],l=C(),!(l===vo||l===bo)){if(l===Xt){p({type:"text",value:(e.keepEscaping?l:"")+C()});continue}if(l===tn){p({type:"text",value:"\\"+l});continue}if(l===en){o++;let F;for(;c<a&&(F=C());){if(l+=F,F===en){o++;continue}if(F===Xt){l+=C();continue}if(F===tn&&(o--,o===0))break}p({type:"text",value:l});continue}if(l===_o){D=p({type:"paren",nodes:[]}),s.push(D),p({type:"text",value:l});continue}if(l===mo){if(D.type!=="paren"){p({type:"text",value:l});continue}D=s.pop(),p({type:"text",value:l}),D=s[s.length-1];continue}if(l===wo||l===Ro||l===Co){let F=l,A;for(e.keepQuotes!==!0&&(l="");c<a&&(A=C());){if(A===Xt){l+=A+C();continue}if(A===F){e.keepQuotes===!0&&(l+=A);break}l+=A}p({type:"text",value:l});continue}if(l===Ao){f++;let F=i.value&&i.value.slice(-1)==="$"||D.dollar===!0;D=p({type:"brace",open:!0,close:!1,dollar:F,depth:f,commas:0,ranges:0,nodes:[]}),s.push(D),p({type:"open",value:l});continue}if(l===yo){if(D.type!=="brace"){p({type:"text",value:l});continue}let F="close";D=s.pop(),D.close=!0,p({type:F,value:l}),f--,D=s[s.length-1];continue}if(l===Fo&&f>0){if(D.ranges>0){D.ranges=0;let F=D.nodes.shift();D.nodes=[F,{type:"text",value:po(D)}]}p({type:"comma",value:l}),D.commas++;continue}if(l===go&&f>0&&D.commas===0){let F=D.nodes;if(f===0||F.length===0){p({type:"text",value:l});continue}if(i.type==="dot"){if(D.range=[],i.value+=l,i.type="range",D.nodes.length!==3&&D.nodes.length!==5){D.invalid=!0,D.ranges=0,i.type="text";continue}D.ranges++,D.args=[];continue}if(i.type==="range"){F.pop();let A=F[F.length-1];A.value+=i.value+l,i=A,D.ranges--;continue}p({type:"dot",value:l});continue}p({type:"text",value:l})}do if(D=s.pop(),D.type!=="root"){D.nodes.forEach(B=>{B.nodes||(B.type==="open"&&(B.isOpen=!0),B.type==="close"&&(B.isClose=!0),B.nodes||(B.type="text"),B.invalid=!0)});let F=s[s.length-1],A=F.nodes.indexOf(D);F.nodes.splice(A,1,...D.nodes)}while(s.length>0);return p({type:"eos"}),n};var So=Bo;const un=Vt,$o=lo,To=ho,xo=So,q=(t,e={})=>{let u=[];if(Array.isArray(t))for(let r of t){let n=q.create(r,e);Array.isArray(n)?u.push(...n):u.push(n)}else u=[].concat(q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u};q.parse=(t,e={})=>xo(t,e),q.stringify=(t,e={})=>un(typeof t=="string"?q.parse(t,e):t,e),q.compile=(t,e={})=>(typeof t=="string"&&(t=q.parse(t,e)),$o(t,e)),q.expand=(t,e={})=>{typeof t=="string"&&(t=q.parse(t,e));let u=To(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?q.compile(t,e):q.expand(t,e);var Oo=q,rn={exports:{}},No=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"];(function(t){t.exports=No})(rn);const Ho=z,Po=rn.exports,Lo=new Set(Po);var Io=t=>Lo.has(Ho.extname(t).slice(1).toLowerCase()),Je={};(function(t){const{sep:e}=z,{platform:u}=process,r=Au;t.EV_ALL="all",t.EV_READY="ready",t.EV_ADD="add",t.EV_CHANGE="change",t.EV_ADD_DIR="addDir",t.EV_UNLINK="unlink",t.EV_UNLINK_DIR="unlinkDir",t.EV_RAW="raw",t.EV_ERROR="error",t.STR_DATA="data",t.STR_END="end",t.STR_CLOSE="close",t.FSEVENT_CREATED="created",t.FSEVENT_MODIFIED="modified",t.FSEVENT_DELETED="deleted",t.FSEVENT_MOVED="moved",t.FSEVENT_CLONED="cloned",t.FSEVENT_UNKNOWN="unknown",t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${e}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=n=>n,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=r.type()==="OS400"})(Je);const re=oe,L=z,{promisify:ve}=me,ko=Io,{isWindows:Mo,isLinux:Wo,EMPTY_FN:Go,EMPTY_STR:jo,KEY_LISTENERS:ge,KEY_ERR:Qt,KEY_RAW:Be,HANDLER_KEYS:Uo,EV_CHANGE:et,EV_ADD:tt,EV_ADD_DIR:Ko,EV_ERROR:nn,STR_DATA:Vo,STR_END:zo,BRACE_START:Yo,STAR:qo}=Je,Xo="watch",Qo=ve(re.open),sn=ve(re.stat),Zo=ve(re.lstat),Jo=ve(re.close),Zt=ve(re.realpath),ea={lstat:Zo,stat:sn},Jt=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},Se=(t,e,u)=>{let r=t[e];r instanceof Set||(t[e]=r=new Set([r])),r.add(u)},ta=t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},$e=(t,e,u)=>{const r=t[e];r instanceof Set?r.delete(u):r===u&&delete t[e]},Dn=t=>t instanceof Set?t.size===0:!t,ut=new Map;function on(t,e,u,r,n){const s=(D,i)=>{u(t),n(D,i,{watchedPath:t}),i&&t!==i&&rt(L.resolve(t,i),ge,L.join(t,i))};try{return re.watch(t,e,s)}catch(D){r(D)}}const rt=(t,e,u,r,n)=>{const s=ut.get(t);!s||Jt(s[e],D=>{D(u,r,n)})},ua=(t,e,u,r)=>{const{listener:n,errHandler:s,rawEmitter:D}=r;let i=ut.get(e),o;if(!u.persistent)return o=on(t,u,n,s,D),o.close.bind(o);if(i)Se(i,ge,n),Se(i,Qt,s),Se(i,Be,D);else{if(o=on(t,u,rt.bind(null,e,ge),s,rt.bind(null,e,Be)),!o)return;o.on(nn,async a=>{const c=rt.bind(null,e,Qt);if(i.watcherUnusable=!0,Mo&&a.code==="EPERM")try{const f=await Qo(t,"r");await Jo(f),c(a)}catch{}else c(a)}),i={listeners:n,errHandlers:s,rawEmitters:D,watcher:o},ut.set(e,i)}return()=>{$e(i,ge,n),$e(i,Qt,s),$e(i,Be,D),Dn(i.listeners)&&(i.watcher.close(),ut.delete(e),Uo.forEach(ta(i)),i.watcher=void 0,Object.freeze(i))}},eu=new Map,ra=(t,e,u,r)=>{const{listener:n,rawEmitter:s}=r;let D=eu.get(e);const i=D&&D.options;return i&&(i.persistent<u.persistent||i.interval>u.interval)&&(re.unwatchFile(e),D=void 0),D?(Se(D,ge,n),Se(D,Be,s)):(D={listeners:n,rawEmitters:s,options:u,watcher:re.watchFile(e,u,(o,a)=>{Jt(D.rawEmitters,f=>{f(et,e,{curr:o,prev:a})});const c=o.mtimeMs;(o.size!==a.size||c>a.mtimeMs||c===0)&&Jt(D.listeners,f=>f(t,o))})},eu.set(e,D)),()=>{$e(D,ge,n),$e(D,Be,s),Dn(D.listeners)&&(eu.delete(e),re.unwatchFile(e),D.options=D.watcher=void 0,Object.freeze(D))}};class na{constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const r=this.fsw.options,n=L.dirname(e),s=L.basename(e);this.fsw._getWatchedDir(n).add(s);const i=L.resolve(e),o={persistent:r.persistent};u||(u=Go);let a;return r.usePolling?(o.interval=r.enableBinaryInterval&&ko(s)?r.binaryInterval:r.interval,a=ra(e,i,o,{listener:u,rawEmitter:this.fsw._emitRaw})):a=ua(e,i,o,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),a}_handleFile(e,u,r){if(this.fsw.closed)return;const n=L.dirname(e),s=L.basename(e),D=this.fsw._getWatchedDir(n);let i=u;if(D.has(s))return;const o=async(c,f)=>{if(!!this.fsw._throttle(Xo,e,5)){if(!f||f.mtimeMs===0)try{const l=await sn(e);if(this.fsw.closed)return;const C=l.atimeMs,p=l.mtimeMs;(!C||C<=p||p!==i.mtimeMs)&&this.fsw._emit(et,e,l),Wo&&i.ino!==l.ino?(this.fsw._closeFile(c),i=l,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,o))):i=l}catch{this.fsw._remove(n,s)}else if(D.has(s)){const l=f.atimeMs,C=f.mtimeMs;(!l||l<=C||C!==i.mtimeMs)&&this.fsw._emit(et,e,f),i=f}}},a=this._watchWithNodeFs(e,o);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(tt,e,0))return;this.fsw._emit(tt,e,u)}return a}async _handleSymlink(e,u,r,n){if(this.fsw.closed)return;const s=e.fullPath,D=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let i;try{i=await Zt(r)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(D.has(n)?this.fsw._symlinkPaths.get(s)!==i&&(this.fsw._symlinkPaths.set(s,i),this.fsw._emit(et,r,e.stats)):(D.add(n),this.fsw._symlinkPaths.set(s,i),this.fsw._emit(tt,r,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(e,u,r,n,s,D,i){if(e=L.join(e,jo),!r.hasGlob&&(i=this.fsw._throttle("readdir",e,1e3),!i))return;const o=this.fsw._getWatchedDir(r.path),a=new Set;let c=this.fsw._readdirp(e,{fileFilter:f=>r.filterPath(f),directoryFilter:f=>r.filterDir(f),depth:0}).on(Vo,async f=>{if(this.fsw.closed){c=void 0;return}const l=f.path;let C=L.join(e,l);if(a.add(l),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,C,l))){if(this.fsw.closed){c=void 0;return}(l===n||!n&&!o.has(l))&&(this.fsw._incrReadyCount(),C=L.join(s,L.relative(s,C)),this._addToNodeFs(C,u,r,D+1))}}).on(nn,this._boundHandleError);return new Promise(f=>c.once(zo,()=>{if(this.fsw.closed){c=void 0;return}const l=i?i.clear():!1;f(),o.getChildren().filter(C=>C!==e&&!a.has(C)&&(!r.hasGlob||r.filterPath({fullPath:L.resolve(e,C)}))).forEach(C=>{this.fsw._remove(e,C)}),c=void 0,l&&this._handleRead(e,!1,r,n,s,D,i)}))}async _handleDir(e,u,r,n,s,D,i){const o=this.fsw._getWatchedDir(L.dirname(e)),a=o.has(L.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!s&&!a&&(!D.hasGlob||D.globFilter(e))&&this.fsw._emit(Ko,e,u),o.add(L.basename(e)),this.fsw._getWatchedDir(e);let c,f;const l=this.fsw.options.depth;if((l==null||n<=l)&&!this.fsw._symlinkPaths.has(i)){if(!s&&(await this._handleRead(e,r,D,s,e,n,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(C,p)=>{p&&p.mtimeMs===0||this._handleRead(C,!1,D,s,e,n,c)})}return f}async _addToNodeFs(e,u,r,n,s){const D=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return D(),!1;const i=this.fsw._getWatchHelpers(e,n);!i.hasGlob&&r&&(i.hasGlob=r.hasGlob,i.globFilter=r.globFilter,i.filterPath=o=>r.filterPath(o),i.filterDir=o=>r.filterDir(o));try{const o=await ea[i.statMethod](i.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(i.watchPath,o))return D(),!1;const a=this.fsw.options.followSymlinks&&!e.includes(qo)&&!e.includes(Yo);let c;if(o.isDirectory()){const f=L.resolve(e),l=a?await Zt(e):e;if(this.fsw.closed||(c=await this._handleDir(i.watchPath,o,u,n,s,i,l),this.fsw.closed))return;f!==l&&l!==void 0&&this.fsw._symlinkPaths.set(f,l)}else if(o.isSymbolicLink()){const f=a?await Zt(e):e;if(this.fsw.closed)return;const l=L.dirname(i.watchPath);if(this.fsw._getWatchedDir(l).add(i.watchPath),this.fsw._emit(tt,i.watchPath,o),c=await this._handleDir(l,o,u,n,e,i,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(L.resolve(e),f)}else c=this._handleFile(i.watchPath,o,u);return D(),this.fsw._addPathCloser(e,c),!1}catch(o){if(this.fsw._handleError(o))return D(),e}}}var sa=na,tu={exports:{}};const uu=oe,I=z,{promisify:ru}=me;let _e;try{_e=Le("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(_e){const t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){const e=Number.parseInt(t[1],10),u=Number.parseInt(t[2],10);e===8&&u<16&&(_e=void 0)}}const{EV_ADD:nu,EV_CHANGE:ia,EV_ADD_DIR:an,EV_UNLINK:nt,EV_ERROR:Da,STR_DATA:oa,STR_END:aa,FSEVENT_CREATED:la,FSEVENT_MODIFIED:ca,FSEVENT_DELETED:fa,FSEVENT_MOVED:ha,FSEVENT_UNKNOWN:da,FSEVENT_TYPE_FILE:Ea,FSEVENT_TYPE_DIRECTORY:Te,FSEVENT_TYPE_SYMLINK:ln,ROOT_GLOBSTAR:cn,DIR_SUFFIX:pa,DOT_SLASH:fn,FUNCTION_TYPE:su,EMPTY_FN:Ca,IDENTITY_FN:Fa}=Je,ga=t=>isNaN(t)?{}:{depth:t},iu=ru(uu.stat),_a=ru(uu.lstat),hn=ru(uu.realpath),ma={stat:iu,lstat:_a},fe=new Map,Aa=10,ya=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),wa=(t,e)=>({stop:_e.watch(t,e)});function Ra(t,e,u,r){let n=I.extname(e)?I.dirname(e):e;const s=I.dirname(n);let D=fe.get(n);ba(s)&&(n=s);const i=I.resolve(t),o=i!==e,a=(f,l,C)=>{o&&(f=f.replace(e,i)),(f===i||!f.indexOf(i+I.sep))&&u(f,l,C)};let c=!1;for(const f of fe.keys())if(e.indexOf(I.resolve(f)+I.sep)===0){n=f,D=fe.get(n),c=!0;break}return D||c?D.listeners.add(a):(D={listeners:new Set([a]),rawEmitter:r,watcher:wa(n,(f,l)=>{if(!D.listeners.size)return;const C=_e.getInfo(f,l);D.listeners.forEach(p=>{p(f,l,C)}),D.rawEmitter(C.event,f,C)})},fe.set(n,D)),()=>{const f=D.listeners;if(f.delete(a),!f.size&&(fe.delete(n),D.watcher))return D.watcher.stop().then(()=>{D.rawEmitter=D.watcher=void 0,Object.freeze(D)})}}const ba=t=>{let e=0;for(const u of fe.keys())if(u.indexOf(t)===0&&(e++,e>=Aa))return!0;return!1},va=()=>_e&&fe.size<128,Du=(t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=I.dirname(t))!==e;)u++;return u},dn=(t,e)=>t.type===Te&&e.isDirectory()||t.type===ln&&e.isSymbolicLink()||t.type===Ea&&e.isFile();class Ba{constructor(e){this.fsw=e}checkIgnored(e,u){const r=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return r.add(e),u&&u.isDirectory()&&r.add(e+cn),!0;r.delete(e),r.delete(e+cn)}addOrChange(e,u,r,n,s,D,i,o){const a=s.has(D)?ia:nu;this.handleEvent(a,e,u,r,n,s,D,i,o)}async checkExists(e,u,r,n,s,D,i,o){try{const a=await iu(e);if(this.fsw.closed)return;dn(i,a)?this.addOrChange(e,u,r,n,s,D,i,o):this.handleEvent(nt,e,u,r,n,s,D,i,o)}catch(a){a.code==="EACCES"?this.addOrChange(e,u,r,n,s,D,i,o):this.handleEvent(nt,e,u,r,n,s,D,i,o)}}handleEvent(e,u,r,n,s,D,i,o,a){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===nt){const c=o.type===Te;(c||D.has(i))&&this.fsw._remove(s,i,c)}else{if(e===nu){if(o.type===Te&&this.fsw._getWatchedDir(u),o.type===ln&&a.followSymlinks){const f=a.depth===void 0?void 0:Du(r,n)+1;return this._addToFsEvents(u,!1,!0,f)}this.fsw._getWatchedDir(s).add(i)}const c=o.type===Te?e+pa:e;this.fsw._emit(c,u),c===an&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,r,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const s=this.fsw.options,i=Ra(e,u,async(o,a,c)=>{if(this.fsw.closed||s.depth!==void 0&&Du(o,u)>s.depth)return;const f=r(I.join(e,I.relative(e,o)));if(n&&!n(f))return;const l=I.dirname(f),C=I.basename(f),p=this.fsw._getWatchedDir(c.type===Te?f:l);if(ya.has(a)||c.event===da)if(typeof s.ignored===su){let F;try{F=await iu(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,F))return;dn(c,F)?this.addOrChange(f,o,u,l,p,C,c,s):this.handleEvent(nt,f,o,u,l,p,C,c,s)}else this.checkExists(f,o,u,l,p,C,c,s);else switch(c.event){case la:case ca:return this.addOrChange(f,o,u,l,p,C,c,s);case fa:case ha:return this.checkExists(f,o,u,l,p,C,c,s)}},this.fsw._emitRaw);return this.fsw._emitReady(),i}async _handleFsEventsSymlink(e,u,r,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const s=await hn(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||e,D=>{let i=e;return s&&s!==fn?i=D.replace(s,e):D!==fn&&(i=I.join(e,D)),r(i)},!1,n)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,u,r,n,s){const D=r(e),i=u.isDirectory(),o=this.fsw._getWatchedDir(I.dirname(D)),a=I.basename(D);i&&this.fsw._getWatchedDir(D),!o.has(a)&&(o.add(a),(!n.ignoreInitial||s===!0)&&this.fsw._emit(i?an:nu,D,u))}initWatch(e,u,r,n){if(this.fsw.closed)return;const s=this._watchWithFsEvents(r.watchPath,I.resolve(e||r.watchPath),n,r.globFilter);this.fsw._addPathCloser(u,s)}async _addToFsEvents(e,u,r,n){if(this.fsw.closed)return;const s=this.fsw.options,D=typeof u===su?u:Fa,i=this.fsw._getWatchHelpers(e);try{const o=await ma[i.statMethod](i.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(i.watchPath,o))throw null;if(o.isDirectory()){if(i.globFilter||this.emitAdd(D(e),o,D,s,r),n&&n>s.depth)return;this.fsw._readdirp(i.watchPath,M({fileFilter:a=>i.filterPath(a),directoryFilter:a=>i.filterDir(a)},ga(s.depth-(n||0)))).on(oa,a=>{if(this.fsw.closed||a.stats.isDirectory()&&!i.filterPath(a))return;const c=I.join(i.watchPath,a.path),{fullPath:f}=a;if(i.followSymlinks&&a.stats.isSymbolicLink()){const l=s.depth===void 0?void 0:Du(c,I.resolve(i.watchPath))+1;this._handleFsEventsSymlink(c,f,D,l)}else this.emitAdd(c,a.stats,D,s,r)}).on(Da,Ca).on(aa,()=>{this.fsw._emitReady()})}else this.emitAdd(i.watchPath,o,D,s,r),this.fsw._emitReady()}catch(o){(!o||this.fsw._handleError(o))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&r!==!0)if(typeof u===su)this.initWatch(void 0,e,i,D);else{let o;try{o=await hn(i.watchPath)}catch{}this.initWatch(o,e,i,D)}}}tu.exports=Ba,tu.exports.canUse=va;const{EventEmitter:Sa}=Ln,ou=oe,v=z,{promisify:En}=me,$a=BD,au=jt.exports.default,Ta=UD,lu=Nr,xa=Oo,Oa=Sr,Na=sa,pn=tu.exports,{EV_ALL:cu,EV_READY:Ha,EV_ADD:st,EV_CHANGE:xe,EV_UNLINK:Cn,EV_ADD_DIR:Pa,EV_UNLINK_DIR:La,EV_RAW:Ia,EV_ERROR:fu,STR_CLOSE:ka,STR_END:Ma,BACK_SLASH_RE:Wa,DOUBLE_SLASH_RE:Fn,SLASH_OR_BACK_SLASH_RE:Ga,DOT_RE:ja,REPLACER_RE:Ua,SLASH:hu,SLASH_SLASH:Ka,BRACE_START:Va,BANG:du,ONE_DOT:gn,TWO_DOTS:za,GLOBSTAR:Ya,SLASH_GLOBSTAR:Eu,ANYMATCH_OPTS:pu,STRING_TYPE:Cu,FUNCTION_TYPE:qa,EMPTY_STR:Fu,EMPTY_FN:Xa,isWindows:Qa,isMacos:Za,isIBMi:Ja}=Je,el=En(ou.stat),tl=En(ou.readdir),gu=(t=[])=>Array.isArray(t)?t:[t],_n=(t,e=[])=>(t.forEach(u=>{Array.isArray(u)?_n(u,e):e.push(u)}),e),mn=t=>{const e=_n(gu(t));if(!e.every(u=>typeof u===Cu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(yn)},An=t=>{let e=t.replace(Wa,hu),u=!1;for(e.startsWith(Ka)&&(u=!0);e.match(Fn);)e=e.replace(Fn,hu);return u&&(e=hu+e),e},yn=t=>An(v.normalize(An(t))),wn=(t=Fu)=>e=>typeof e!==Cu?e:yn(v.isAbsolute(e)?e:v.join(t,e)),ul=(t,e)=>v.isAbsolute(t)?t:t.startsWith(du)?du+v.join(e,t.slice(1)):v.join(e,t),X=(t,e)=>t[e]===void 0;class rl{constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;!u||e!==gn&&e!==za&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const r=this.path;try{await tl(r)}catch{this._removeWatcher&&this._removeWatcher(v.dirname(r),v.basename(r))}}has(e){const{items:u}=this;if(!!u)return u.has(e)}getChildren(){const{items:e}=this;if(!!e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const nl="stat",sl="lstat";class il{constructor(e,u,r,n){this.fsw=n,this.path=e=e.replace(Ua,Fu),this.watchPath=u,this.fullWatchPath=v.resolve(u),this.hasGlob=u!==e,e===Fu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&r?void 0:!1,this.globFilter=this.hasGlob?au(e,void 0,pu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=r,this.statMethod=r?nl:sl}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return v.join(this.watchPath,v.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const r=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===qa?this.globFilter(r):!0)&&this.fsw._isntIgnored(r,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(Va)?xa.expand(e):[e]).forEach(n=>{u.push(v.relative(this.watchPath,n).split(Ga))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let r=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((s,D)=>(s===Ya&&(r=!0),r||!u[0][D]||au(s,u[0][D],pu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class Dl extends Sa{constructor(e){super();const u={};e&&Object.assign(u,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,X(u,"persistent")&&(u.persistent=!0),X(u,"ignoreInitial")&&(u.ignoreInitial=!1),X(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),X(u,"interval")&&(u.interval=100),X(u,"binaryInterval")&&(u.binaryInterval=300),X(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,X(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),pn.canUse()||(u.useFsEvents=!1),X(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=Za),Ja&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const o=n.toLowerCase();o==="false"||o==="0"?u.usePolling=!1:o==="true"||o==="1"?u.usePolling=!0:u.usePolling=!!o}const s=process.env.CHOKIDAR_INTERVAL;s&&(u.interval=Number.parseInt(s,10)),X(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),X(u,"followSymlinks")&&(u.followSymlinks=!0),X(u,"awaitWriteFinish")&&(u.awaitWriteFinish=!1),u.awaitWriteFinish===!0&&(u.awaitWriteFinish={});const D=u.awaitWriteFinish;D&&(D.stabilityThreshold||(D.stabilityThreshold=2e3),D.pollInterval||(D.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=gu(u.ignored));let i=0;this._emitReady=()=>{i++,i>=this._readyCount&&(this._emitReady=Xa,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ha)))},this._emitRaw=(...o)=>this.emit(Ia,...o),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new pn(this):this._nodeFsHandler=new Na(this),Object.freeze(u)}add(e,u,r){const{cwd:n,disableGlobbing:s}=this.options;this.closed=!1;let D=mn(e);return n&&(D=D.map(i=>{const o=ul(i,n);return s||!lu(i)?o:Oa(o)})),D=D.filter(i=>i.startsWith(du)?(this._ignoredPaths.add(i.slice(1)),!1):(this._ignoredPaths.delete(i),this._ignoredPaths.delete(i+Eu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=D.length),this.options.persistent&&(this._readyCount*=2),D.forEach(i=>this._fsEventsHandler._addToFsEvents(i))):(this._readyCount||(this._readyCount=0),this._readyCount+=D.length,Promise.all(D.map(async i=>{const o=await this._nodeFsHandler._addToNodeFs(i,!r,0,0,u);return o&&this._emitReady(),o})).then(i=>{this.closed||i.filter(o=>o).forEach(o=>{this.add(v.dirname(o),v.basename(u||o))})})),this}unwatch(e){if(this.closed)return this;const u=mn(e),{cwd:r}=this.options;return u.forEach(n=>{!v.isAbsolute(n)&&!this._closers.has(n)&&(r&&(n=v.join(r,n)),n=v.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+Eu),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach(u=>u.forEach(r=>{const n=r();n instanceof Promise&&e.push(n)})),this._streams.forEach(u=>u.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(u=>u.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(u=>{this[`_${u}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach((u,r)=>{const n=this.options.cwd?v.relative(this.options.cwd,r):r;e[n||gn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==fu&&this.emit(cu,...u)}async _emit(e,u,r,n,s){if(this.closed)return;const D=this.options;Qa&&(u=v.normalize(u)),D.cwd&&(u=v.relative(D.cwd,u));const i=[e,u];s!==void 0?i.push(r,n,s):n!==void 0?i.push(r,n):r!==void 0&&i.push(r);const o=D.awaitWriteFinish;let a;if(o&&(a=this._pendingWrites.get(u)))return a.lastChange=new Date,this;if(D.atomic){if(e===Cn)return this._pendingUnlinks.set(u,i),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(cu,...c),this._pendingUnlinks.delete(f)})},typeof D.atomic=="number"?D.atomic:100),this;e===st&&this._pendingUnlinks.has(u)&&(e=i[0]=xe,this._pendingUnlinks.delete(u))}if(o&&(e===st||e===xe)&&this._readyEmitted){const c=(f,l)=>{f?(e=i[0]=fu,i[1]=f,this.emitWithAll(e,i)):l&&(i.length>2?i[2]=l:i.push(l),this.emitWithAll(e,i))};return this._awaitWriteFinish(u,o.stabilityThreshold,e,c),this}if(e===xe&&!this._throttle(xe,u,50))return this;if(D.alwaysStat&&r===void 0&&(e===st||e===Pa||e===xe)){const c=D.cwd?v.join(D.cwd,u):u;let f;try{f=await el(c)}catch{}if(!f||this.closed)return;i.push(f)}return this.emitWithAll(e,i),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(fu,e),e||this.closed}_throttle(e,u,r){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),s=n.get(u);if(s)return s.count++,!1;let D;const i=()=>{const a=n.get(u),c=a?a.count:0;return n.delete(u),clearTimeout(D),a&&clearTimeout(a.timeoutObject),c};D=setTimeout(i,r);const o={timeoutObject:D,clear:i,count:0};return n.set(u,o),o}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,r,n){let s,D=e;this.options.cwd&&!v.isAbsolute(e)&&(D=v.join(this.options.cwd,e));const i=new Date,o=a=>{ou.stat(D,(c,f)=>{if(c||!this._pendingWrites.has(e)){c&&c.code!=="ENOENT"&&n(c);return}const l=Number(new Date);a&&f.size!==a.size&&(this._pendingWrites.get(e).lastChange=l);const C=this._pendingWrites.get(e);l-C.lastChange>=u?(this._pendingWrites.delete(e),n(void 0,f)):s=setTimeout(o,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:i,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(s),r)}),s=setTimeout(o,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&ja.test(e))return!0;if(!this._userIgnored){const{cwd:r}=this.options,n=this.options.ignored,s=n&&n.map(wn(r)),D=gu(s).filter(o=>typeof o===Cu&&!lu(o)).map(o=>o+Eu),i=this._getGlobIgnored().map(wn(r)).concat(s,D);this._userIgnored=au(i,void 0,pu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const r=u||this.options.disableGlobbing||!lu(e)?e:Ta(e),n=this.options.followSymlinks;return new il(e,r,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=v.resolve(e);return this._watched.has(u)||this._watched.set(u,new rl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const r=(e&&Number.parseInt(e.mode,10))&511,n=Number.parseInt(r.toString(8)[0],10);return Boolean(4&n)}_remove(e,u,r){const n=v.join(e,u),s=v.resolve(n);if(r=r!=null?r:this._watched.has(n)||this._watched.has(s),!this._throttle("remove",n,100))return;!r&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(n).getChildren().forEach(l=>this._remove(n,l));const o=this._getWatchedDir(e),a=o.has(u);o.remove(u),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let c=n;if(this.options.cwd&&(c=v.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===st)return;this._watched.delete(n),this._watched.delete(s);const f=r?La:Cn;a&&!this._isIgnored(n)&&this._emit(f,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const u=v.dirname(e);this._getWatchedDir(u).remove(v.basename(e))}_closeFile(e){const u=this._closers.get(e);!u||(u.forEach(r=>r()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let r=this._closers.get(e);r||(r=[],this._closers.set(e,r)),r.push(u)}_readdirp(e,u){if(this.closed)return;const r=M({type:cu,alwaysStat:!0,lstat:!0},u);let n=$a(e,r);return this._streams.add(n),n.once(ka,()=>{n=void 0}),n.once(Ma,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}const ol=(t,e)=>{const u=new Dl(e);return u.add(t),u};var al=ol;const ll="\x1Bc";function cl(t){return t&&"type"in t&&t.type==="dependency"}const fl=ni({name:"watch",parameters:["<script path>"],flags:{noCache:{type:Boolean,description:"Disable caching"}},help:{description:"Run the script and watch for changes"}},t=>{const e=process.argv.slice(3).filter(i=>i!=="--no-cache"&&i!=="--noCache"),u={noCache:Boolean(t.flags.noCache),ipc:!0};let r;function n(){r&&!r.killed&&r.exitCode===null&&r.kill(),process.stdout.write(ll),r=cr(e,u),r.on("message",i=>{if(cl(i)){const o=i.path.startsWith("file:")?Hn(i.path):i.path;o.startsWith("/")&&D.add(o)}})}n();function s(i){r&&r.kill(),process.exit(i)}process.once("SIGINT",()=>s(130)),process.once("SIGTERM",()=>s(143));const D=al(t._,{ignoreInitial:!0,ignored:["**/.*/**","**/{node_modules,bower_components,vendor}/**","**/dist/**"],ignorePermissionErrors:!0}).on("all",n);process.stdin.on("data",n)});ri({name:"tsx",parameters:["[script path]"],commands:[fl],flags:{noCache:{type:Boolean,description:"Disable caching"},version:{type:Boolean,description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1},t=>{if(t._.length===0){if(t.flags.version){console.log(On);return}if(t.flags.help){t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"});return}process.argv.push(Le.resolve("./repl"))}const e=process.argv.slice(2).filter(u=>u!=="--no-cache"&&u!=="--noCache");cr(e,{noCache:Boolean(t.flags.noCache)}).on("close",u=>process.exit(u))});
52
+ */const lo=ye,zn=ao,Yn=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),co=t=>e=>t===!0?Number(e):String(e),Qt=t=>typeof t=="number"||typeof t=="string"&&t!=="",Be=t=>Number.isInteger(+t),Zt=t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},fo=(t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,ho=(t,e,u)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return u===!1?String(t):t},qn=(t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},Eo=(t,e)=>{t.negatives.sort((i,D)=>i<D?-1:i>D?1:0),t.positives.sort((i,D)=>i<D?-1:i>D?1:0);let u=e.capture?"":"?:",n="",r="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(r=`-(${u}${t.negatives.join("|")})`),n&&r?s=`${n}|${r}`:s=n||r,e.wrap?`(${u}${s})`:s},Xn=(t,e,u,n)=>{if(u)return zn(t,e,M({wrap:!1},n));let r=String.fromCharCode(t);if(t===e)return r;let s=String.fromCharCode(e);return`[${r}-${s}]`},Qn=(t,e,u)=>{if(Array.isArray(t)){let n=u.wrap===!0,r=u.capture?"":"?:";return n?`(${r}${t.join("|")})`:t.join("|")}return zn(t,e,u)},Zn=(...t)=>new RangeError("Invalid range arguments: "+lo.inspect(...t)),Jn=(t,e,u)=>{if(u.strictRanges===!0)throw Zn([t,e]);return[]},po=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},Co=(t,e,u=1,n={})=>{let r=Number(t),s=Number(e);if(!Number.isInteger(r)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Zn([t,e]);return[]}r===0&&(r=0),s===0&&(s=0);let i=r>s,D=String(t),o=String(e),a=String(u);u=Math.max(Math.abs(u),1);let c=Zt(D)||Zt(o)||Zt(a),f=c?Math.max(D.length,o.length,a.length):0,l=c===!1&&fo(t,e,n)===!1,p=n.transform||co(l);if(n.toRegex&&u===1)return Xn(qn(t,f),qn(e,f),!0,n);let C={negatives:[],positives:[]},F=N=>C[N<0?"negatives":"positives"].push(Math.abs(N)),y=[],b=0;for(;i?r>=s:r<=s;)n.toRegex===!0&&u>1?F(r):y.push(ho(p(r,b),f,l)),r=i?r-u:r+u,b++;return n.toRegex===!0?u>1?Eo(C,n):Qn(y,null,M({wrap:!1},n)):y},Fo=(t,e,u=1,n={})=>{if(!Be(t)&&t.length>1||!Be(e)&&e.length>1)return Jn(t,e,n);let r=n.transform||(l=>String.fromCharCode(l)),s=`${t}`.charCodeAt(0),i=`${e}`.charCodeAt(0),D=s>i,o=Math.min(s,i),a=Math.max(s,i);if(n.toRegex&&u===1)return Xn(o,a,!1,n);let c=[],f=0;for(;D?s>=i:s<=i;)c.push(r(s,f)),s=D?s-u:s+u,f++;return n.toRegex===!0?Qn(c,null,{wrap:!1,options:n}):c},et=(t,e,u,n={})=>{if(e==null&&Qt(t))return[t];if(!Qt(t)||!Qt(e))return Jn(t,e,n);if(typeof u=="function")return et(t,e,1,{transform:u});if(Yn(u))return et(t,e,0,u);let r=M({},n);return r.capture===!0&&(r.wrap=!0),u=u||r.step||1,Be(u)?Be(t)&&Be(e)?Co(t,e,u,r):Fo(t,e,Math.max(Math.abs(u),1),r):u!=null&&!Yn(u)?po(u,r):et(t,e,1,u)};var er=et;const go=er,tr=Je,_o=(t,e={})=>{let u=(n,r={})=>{let s=tr.isInvalidBrace(r),i=n.invalid===!0&&e.escapeInvalid===!0,D=s===!0||i===!0,o=e.escapeInvalid===!0?"\\":"",a="";if(n.isOpen===!0||n.isClose===!0)return o+n.value;if(n.type==="open")return D?o+n.value:"(";if(n.type==="close")return D?o+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":D?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let c=tr.reduce(n.nodes),f=go(...c,De(M({},e),{wrap:!1,toRegex:!0}));if(f.length!==0)return c.length>1&&f.length>1?`(${f})`:f}if(n.nodes)for(let c of n.nodes)a+=u(c,n);return a};return u(t)};var mo=_o;const Ao=er,ur=qt,ge=Je,ce=(t="",e="",u=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?ge.flatten(e).map(r=>`{${r}}`):e;for(let r of t)if(Array.isArray(r))for(let s of r)n.push(ce(s,e,u));else for(let s of e)u===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?ce(r,s,u):r+s);return ge.flatten(n)},yo=(t,e={})=>{let u=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(r,s={})=>{r.queue=[];let i=s,D=s.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,D=i.queue;if(r.invalid||r.dollar){D.push(ce(D.pop(),ur(r,e)));return}if(r.type==="brace"&&r.invalid!==!0&&r.nodes.length===2){D.push(ce(D.pop(),["{}"]));return}if(r.nodes&&r.ranges>0){let f=ge.reduce(r.nodes);if(ge.exceedsLimit(...f,e.step,u))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=Ao(...f,e);l.length===0&&(l=ur(r,e)),D.push(ce(D.pop(),l)),r.nodes=[];return}let o=ge.encloseBrace(r),a=r.queue,c=r;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,a=c.queue;for(let f=0;f<r.nodes.length;f++){let l=r.nodes[f];if(l.type==="comma"&&r.type==="brace"){f===1&&a.push(""),a.push("");continue}if(l.type==="close"){D.push(ce(D.pop(),a,o));continue}if(l.value&&l.type!=="open"){a.push(ce(a.pop(),l.value));continue}l.nodes&&n(l,r)}return a};return ge.flatten(n(t))};var wo=yo,Ro={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
53
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const bo=qt,{MAX_LENGTH:nr,CHAR_BACKSLASH:Jt,CHAR_BACKTICK:vo,CHAR_COMMA:Bo,CHAR_DOT:So,CHAR_LEFT_PARENTHESES:$o,CHAR_RIGHT_PARENTHESES:To,CHAR_LEFT_CURLY_BRACE:xo,CHAR_RIGHT_CURLY_BRACE:Oo,CHAR_LEFT_SQUARE_BRACKET:rr,CHAR_RIGHT_SQUARE_BRACKET:sr,CHAR_DOUBLE_QUOTE:No,CHAR_SINGLE_QUOTE:Po,CHAR_NO_BREAK_SPACE:Ho,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Io}=Ro,Lo=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},n=typeof u.maxLength=="number"?Math.min(nr,u.maxLength):nr;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let r={type:"root",input:t,nodes:[]},s=[r],i=r,D=r,o=0,a=t.length,c=0,f=0,l;const p=()=>t[c++],C=F=>{if(F.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&F.type==="text"){D.value+=F.value;return}return i.nodes.push(F),F.parent=i,F.prev=D,D=F,F};for(C({type:"bos"});c<a;)if(i=s[s.length-1],l=p(),!(l===Io||l===Ho)){if(l===Jt){C({type:"text",value:(e.keepEscaping?l:"")+p()});continue}if(l===sr){C({type:"text",value:"\\"+l});continue}if(l===rr){o++;let F;for(;c<a&&(F=p());){if(l+=F,F===rr){o++;continue}if(F===Jt){l+=p();continue}if(F===sr&&(o--,o===0))break}C({type:"text",value:l});continue}if(l===$o){i=C({type:"paren",nodes:[]}),s.push(i),C({type:"text",value:l});continue}if(l===To){if(i.type!=="paren"){C({type:"text",value:l});continue}i=s.pop(),C({type:"text",value:l}),i=s[s.length-1];continue}if(l===No||l===Po||l===vo){let F=l,y;for(e.keepQuotes!==!0&&(l="");c<a&&(y=p());){if(y===Jt){l+=y+p();continue}if(y===F){e.keepQuotes===!0&&(l+=y);break}l+=y}C({type:"text",value:l});continue}if(l===xo){f++;let F=D.value&&D.value.slice(-1)==="$"||i.dollar===!0;i=C({type:"brace",open:!0,close:!1,dollar:F,depth:f,commas:0,ranges:0,nodes:[]}),s.push(i),C({type:"open",value:l});continue}if(l===Oo){if(i.type!=="brace"){C({type:"text",value:l});continue}let F="close";i=s.pop(),i.close=!0,C({type:F,value:l}),f--,i=s[s.length-1];continue}if(l===Bo&&f>0){if(i.ranges>0){i.ranges=0;let F=i.nodes.shift();i.nodes=[F,{type:"text",value:bo(i)}]}C({type:"comma",value:l}),i.commas++;continue}if(l===So&&f>0&&i.commas===0){let F=i.nodes;if(f===0||F.length===0){C({type:"text",value:l});continue}if(D.type==="dot"){if(i.range=[],D.value+=l,D.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,D.type="text";continue}i.ranges++,i.args=[];continue}if(D.type==="range"){F.pop();let y=F[F.length-1];y.value+=D.value+l,D=y,i.ranges--;continue}C({type:"dot",value:l});continue}C({type:"text",value:l})}do if(i=s.pop(),i.type!=="root"){i.nodes.forEach(b=>{b.nodes||(b.type==="open"&&(b.isOpen=!0),b.type==="close"&&(b.isClose=!0),b.nodes||(b.type="text"),b.invalid=!0)});let F=s[s.length-1],y=F.nodes.indexOf(i);F.nodes.splice(y,1,...i.nodes)}while(s.length>0);return C({type:"eos"}),r};var ko=Lo;const ir=qt,Mo=mo,Wo=wo,jo=ko,q=(t,e={})=>{let u=[];if(Array.isArray(t))for(let n of t){let r=q.create(n,e);Array.isArray(r)?u.push(...r):u.push(r)}else u=[].concat(q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u};q.parse=(t,e={})=>jo(t,e),q.stringify=(t,e={})=>ir(typeof t=="string"?q.parse(t,e):t,e),q.compile=(t,e={})=>(typeof t=="string"&&(t=q.parse(t,e)),Mo(t,e)),q.expand=(t,e={})=>{typeof t=="string"&&(t=q.parse(t,e));let u=Wo(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?q.compile(t,e):q.expand(t,e);var Go=q,Dr={exports:{}},Uo=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"];(function(t){t.exports=Uo})(Dr);const Ko=z,Vo=Dr.exports,zo=new Set(Vo);var Yo=t=>zo.has(Ko.extname(t).slice(1).toLowerCase()),tt={};(function(t){const{sep:e}=z,{platform:u}=process,n=Ru;t.EV_ALL="all",t.EV_READY="ready",t.EV_ADD="add",t.EV_CHANGE="change",t.EV_ADD_DIR="addDir",t.EV_UNLINK="unlink",t.EV_UNLINK_DIR="unlinkDir",t.EV_RAW="raw",t.EV_ERROR="error",t.STR_DATA="data",t.STR_END="end",t.STR_CLOSE="close",t.FSEVENT_CREATED="created",t.FSEVENT_MODIFIED="modified",t.FSEVENT_DELETED="deleted",t.FSEVENT_MOVED="moved",t.FSEVENT_CLONED="cloned",t.FSEVENT_UNKNOWN="unknown",t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${e}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=r=>r,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=n.type()==="OS400"})(tt);const ne=oe,I=z,{promisify:Se}=ye,qo=Yo,{isWindows:Xo,isLinux:Qo,EMPTY_FN:Zo,EMPTY_STR:Jo,KEY_LISTENERS:_e,KEY_ERR:eu,KEY_RAW:$e,HANDLER_KEYS:ea,EV_CHANGE:ut,EV_ADD:nt,EV_ADD_DIR:ta,EV_ERROR:or,STR_DATA:ua,STR_END:na,BRACE_START:ra,STAR:sa}=tt,ia="watch",Da=Se(ne.open),ar=Se(ne.stat),oa=Se(ne.lstat),aa=Se(ne.close),tu=Se(ne.realpath),la={lstat:oa,stat:ar},uu=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},Te=(t,e,u)=>{let n=t[e];n instanceof Set||(t[e]=n=new Set([n])),n.add(u)},ca=t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},xe=(t,e,u)=>{const n=t[e];n instanceof Set?n.delete(u):n===u&&delete t[e]},lr=t=>t instanceof Set?t.size===0:!t,rt=new Map;function cr(t,e,u,n,r){const s=(i,D)=>{u(t),r(i,D,{watchedPath:t}),D&&t!==D&&st(I.resolve(t,D),_e,I.join(t,D))};try{return ne.watch(t,e,s)}catch(i){n(i)}}const st=(t,e,u,n,r)=>{const s=rt.get(t);!s||uu(s[e],i=>{i(u,n,r)})},fa=(t,e,u,n)=>{const{listener:r,errHandler:s,rawEmitter:i}=n;let D=rt.get(e),o;if(!u.persistent)return o=cr(t,u,r,s,i),o.close.bind(o);if(D)Te(D,_e,r),Te(D,eu,s),Te(D,$e,i);else{if(o=cr(t,u,st.bind(null,e,_e),s,st.bind(null,e,$e)),!o)return;o.on(or,async a=>{const c=st.bind(null,e,eu);if(D.watcherUnusable=!0,Xo&&a.code==="EPERM")try{const f=await Da(t,"r");await aa(f),c(a)}catch{}else c(a)}),D={listeners:r,errHandlers:s,rawEmitters:i,watcher:o},rt.set(e,D)}return()=>{xe(D,_e,r),xe(D,eu,s),xe(D,$e,i),lr(D.listeners)&&(D.watcher.close(),rt.delete(e),ea.forEach(ca(D)),D.watcher=void 0,Object.freeze(D))}},nu=new Map,ha=(t,e,u,n)=>{const{listener:r,rawEmitter:s}=n;let i=nu.get(e);const D=i&&i.options;return D&&(D.persistent<u.persistent||D.interval>u.interval)&&(ne.unwatchFile(e),i=void 0),i?(Te(i,_e,r),Te(i,$e,s)):(i={listeners:r,rawEmitters:s,options:u,watcher:ne.watchFile(e,u,(o,a)=>{uu(i.rawEmitters,f=>{f(ut,e,{curr:o,prev:a})});const c=o.mtimeMs;(o.size!==a.size||c>a.mtimeMs||c===0)&&uu(i.listeners,f=>f(t,o))})},nu.set(e,i)),()=>{xe(i,_e,r),xe(i,$e,s),lr(i.listeners)&&(nu.delete(e),ne.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}};class da{constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const n=this.fsw.options,r=I.dirname(e),s=I.basename(e);this.fsw._getWatchedDir(r).add(s);const D=I.resolve(e),o={persistent:n.persistent};u||(u=Zo);let a;return n.usePolling?(o.interval=n.enableBinaryInterval&&qo(s)?n.binaryInterval:n.interval,a=ha(e,D,o,{listener:u,rawEmitter:this.fsw._emitRaw})):a=fa(e,D,o,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),a}_handleFile(e,u,n){if(this.fsw.closed)return;const r=I.dirname(e),s=I.basename(e),i=this.fsw._getWatchedDir(r);let D=u;if(i.has(s))return;const o=async(c,f)=>{if(!!this.fsw._throttle(ia,e,5)){if(!f||f.mtimeMs===0)try{const l=await ar(e);if(this.fsw.closed)return;const p=l.atimeMs,C=l.mtimeMs;(!p||p<=C||C!==D.mtimeMs)&&this.fsw._emit(ut,e,l),Qo&&D.ino!==l.ino?(this.fsw._closeFile(c),D=l,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,o))):D=l}catch{this.fsw._remove(r,s)}else if(i.has(s)){const l=f.atimeMs,p=f.mtimeMs;(!l||l<=p||p!==D.mtimeMs)&&this.fsw._emit(ut,e,f),D=f}}},a=this._watchWithNodeFs(e,o);if(!(n&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(nt,e,0))return;this.fsw._emit(nt,e,u)}return a}async _handleSymlink(e,u,n,r){if(this.fsw.closed)return;const s=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let D;try{D=await tu(n)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(r)?this.fsw._symlinkPaths.get(s)!==D&&(this.fsw._symlinkPaths.set(s,D),this.fsw._emit(ut,n,e.stats)):(i.add(r),this.fsw._symlinkPaths.set(s,D),this.fsw._emit(nt,n,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(e,u,n,r,s,i,D){if(e=I.join(e,Jo),!n.hasGlob&&(D=this.fsw._throttle("readdir",e,1e3),!D))return;const o=this.fsw._getWatchedDir(n.path),a=new Set;let c=this.fsw._readdirp(e,{fileFilter:f=>n.filterPath(f),directoryFilter:f=>n.filterDir(f),depth:0}).on(ua,async f=>{if(this.fsw.closed){c=void 0;return}const l=f.path;let p=I.join(e,l);if(a.add(l),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,p,l))){if(this.fsw.closed){c=void 0;return}(l===r||!r&&!o.has(l))&&(this.fsw._incrReadyCount(),p=I.join(s,I.relative(s,p)),this._addToNodeFs(p,u,n,i+1))}}).on(or,this._boundHandleError);return new Promise(f=>c.once(na,()=>{if(this.fsw.closed){c=void 0;return}const l=D?D.clear():!1;f(),o.getChildren().filter(p=>p!==e&&!a.has(p)&&(!n.hasGlob||n.filterPath({fullPath:I.resolve(e,p)}))).forEach(p=>{this.fsw._remove(e,p)}),c=void 0,l&&this._handleRead(e,!1,n,r,s,i,D)}))}async _handleDir(e,u,n,r,s,i,D){const o=this.fsw._getWatchedDir(I.dirname(e)),a=o.has(I.basename(e));!(n&&this.fsw.options.ignoreInitial)&&!s&&!a&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(ta,e,u),o.add(I.basename(e)),this.fsw._getWatchedDir(e);let c,f;const l=this.fsw.options.depth;if((l==null||r<=l)&&!this.fsw._symlinkPaths.has(D)){if(!s&&(await this._handleRead(e,n,i,s,e,r,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(p,C)=>{C&&C.mtimeMs===0||this._handleRead(p,!1,i,s,e,r,c)})}return f}async _addToNodeFs(e,u,n,r,s){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const D=this.fsw._getWatchHelpers(e,r);!D.hasGlob&&n&&(D.hasGlob=n.hasGlob,D.globFilter=n.globFilter,D.filterPath=o=>n.filterPath(o),D.filterDir=o=>n.filterDir(o));try{const o=await la[D.statMethod](D.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(D.watchPath,o))return i(),!1;const a=this.fsw.options.followSymlinks&&!e.includes(sa)&&!e.includes(ra);let c;if(o.isDirectory()){const f=I.resolve(e),l=a?await tu(e):e;if(this.fsw.closed||(c=await this._handleDir(D.watchPath,o,u,r,s,D,l),this.fsw.closed))return;f!==l&&l!==void 0&&this.fsw._symlinkPaths.set(f,l)}else if(o.isSymbolicLink()){const f=a?await tu(e):e;if(this.fsw.closed)return;const l=I.dirname(D.watchPath);if(this.fsw._getWatchedDir(l).add(D.watchPath),this.fsw._emit(nt,D.watchPath,o),c=await this._handleDir(l,o,u,r,e,D,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(I.resolve(e),f)}else c=this._handleFile(D.watchPath,o,u);return i(),this.fsw._addPathCloser(e,c),!1}catch(o){if(this.fsw._handleError(o))return i(),e}}}var Ea=da,ru={exports:{}};const su=oe,L=z,{promisify:iu}=ye;let me;try{me=ke("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(me){const t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){const e=Number.parseInt(t[1],10),u=Number.parseInt(t[2],10);e===8&&u<16&&(me=void 0)}}const{EV_ADD:Du,EV_CHANGE:pa,EV_ADD_DIR:fr,EV_UNLINK:it,EV_ERROR:Ca,STR_DATA:Fa,STR_END:ga,FSEVENT_CREATED:_a,FSEVENT_MODIFIED:ma,FSEVENT_DELETED:Aa,FSEVENT_MOVED:ya,FSEVENT_UNKNOWN:wa,FSEVENT_TYPE_FILE:Ra,FSEVENT_TYPE_DIRECTORY:Oe,FSEVENT_TYPE_SYMLINK:hr,ROOT_GLOBSTAR:dr,DIR_SUFFIX:ba,DOT_SLASH:Er,FUNCTION_TYPE:ou,EMPTY_FN:va,IDENTITY_FN:Ba}=tt,Sa=t=>isNaN(t)?{}:{depth:t},au=iu(su.stat),$a=iu(su.lstat),pr=iu(su.realpath),Ta={stat:au,lstat:$a},fe=new Map,xa=10,Oa=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Na=(t,e)=>({stop:me.watch(t,e)});function Pa(t,e,u,n){let r=L.extname(e)?L.dirname(e):e;const s=L.dirname(r);let i=fe.get(r);Ha(s)&&(r=s);const D=L.resolve(t),o=D!==e,a=(f,l,p)=>{o&&(f=f.replace(e,D)),(f===D||!f.indexOf(D+L.sep))&&u(f,l,p)};let c=!1;for(const f of fe.keys())if(e.indexOf(L.resolve(f)+L.sep)===0){r=f,i=fe.get(r),c=!0;break}return i||c?i.listeners.add(a):(i={listeners:new Set([a]),rawEmitter:n,watcher:Na(r,(f,l)=>{if(!i.listeners.size)return;const p=me.getInfo(f,l);i.listeners.forEach(C=>{C(f,l,p)}),i.rawEmitter(p.event,f,p)})},fe.set(r,i)),()=>{const f=i.listeners;if(f.delete(a),!f.size&&(fe.delete(r),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}const Ha=t=>{let e=0;for(const u of fe.keys())if(u.indexOf(t)===0&&(e++,e>=xa))return!0;return!1},Ia=()=>me&&fe.size<128,lu=(t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=L.dirname(t))!==e;)u++;return u},Cr=(t,e)=>t.type===Oe&&e.isDirectory()||t.type===hr&&e.isSymbolicLink()||t.type===Ra&&e.isFile();class La{constructor(e){this.fsw=e}checkIgnored(e,u){const n=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return n.add(e),u&&u.isDirectory()&&n.add(e+dr),!0;n.delete(e),n.delete(e+dr)}addOrChange(e,u,n,r,s,i,D,o){const a=s.has(i)?pa:Du;this.handleEvent(a,e,u,n,r,s,i,D,o)}async checkExists(e,u,n,r,s,i,D,o){try{const a=await au(e);if(this.fsw.closed)return;Cr(D,a)?this.addOrChange(e,u,n,r,s,i,D,o):this.handleEvent(it,e,u,n,r,s,i,D,o)}catch(a){a.code==="EACCES"?this.addOrChange(e,u,n,r,s,i,D,o):this.handleEvent(it,e,u,n,r,s,i,D,o)}}handleEvent(e,u,n,r,s,i,D,o,a){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===it){const c=o.type===Oe;(c||i.has(D))&&this.fsw._remove(s,D,c)}else{if(e===Du){if(o.type===Oe&&this.fsw._getWatchedDir(u),o.type===hr&&a.followSymlinks){const f=a.depth===void 0?void 0:lu(n,r)+1;return this._addToFsEvents(u,!1,!0,f)}this.fsw._getWatchedDir(s).add(D)}const c=o.type===Oe?e+ba:e;this.fsw._emit(c,u),c===fr&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,n,r){if(this.fsw.closed||this.fsw._isIgnored(e))return;const s=this.fsw.options,D=Pa(e,u,async(o,a,c)=>{if(this.fsw.closed||s.depth!==void 0&&lu(o,u)>s.depth)return;const f=n(L.join(e,L.relative(e,o)));if(r&&!r(f))return;const l=L.dirname(f),p=L.basename(f),C=this.fsw._getWatchedDir(c.type===Oe?f:l);if(Oa.has(a)||c.event===wa)if(typeof s.ignored===ou){let F;try{F=await au(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,F))return;Cr(c,F)?this.addOrChange(f,o,u,l,C,p,c,s):this.handleEvent(it,f,o,u,l,C,p,c,s)}else this.checkExists(f,o,u,l,C,p,c,s);else switch(c.event){case _a:case ma:return this.addOrChange(f,o,u,l,C,p,c,s);case Aa:case ya:return this.checkExists(f,o,u,l,C,p,c,s)}},this.fsw._emitRaw);return this.fsw._emitReady(),D}async _handleFsEventsSymlink(e,u,n,r){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const s=await pr(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||e,i=>{let D=e;return s&&s!==Er?D=i.replace(s,e):i!==Er&&(D=L.join(e,i)),n(D)},!1,r)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,u,n,r,s){const i=n(e),D=u.isDirectory(),o=this.fsw._getWatchedDir(L.dirname(i)),a=L.basename(i);D&&this.fsw._getWatchedDir(i),!o.has(a)&&(o.add(a),(!r.ignoreInitial||s===!0)&&this.fsw._emit(D?fr:Du,i,u))}initWatch(e,u,n,r){if(this.fsw.closed)return;const s=this._watchWithFsEvents(n.watchPath,L.resolve(e||n.watchPath),r,n.globFilter);this.fsw._addPathCloser(u,s)}async _addToFsEvents(e,u,n,r){if(this.fsw.closed)return;const s=this.fsw.options,i=typeof u===ou?u:Ba,D=this.fsw._getWatchHelpers(e);try{const o=await Ta[D.statMethod](D.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(D.watchPath,o))throw null;if(o.isDirectory()){if(D.globFilter||this.emitAdd(i(e),o,i,s,n),r&&r>s.depth)return;this.fsw._readdirp(D.watchPath,M({fileFilter:a=>D.filterPath(a),directoryFilter:a=>D.filterDir(a)},Sa(s.depth-(r||0)))).on(Fa,a=>{if(this.fsw.closed||a.stats.isDirectory()&&!D.filterPath(a))return;const c=L.join(D.watchPath,a.path),{fullPath:f}=a;if(D.followSymlinks&&a.stats.isSymbolicLink()){const l=s.depth===void 0?void 0:lu(c,L.resolve(D.watchPath))+1;this._handleFsEventsSymlink(c,f,i,l)}else this.emitAdd(c,a.stats,i,s,n)}).on(Ca,va).on(ga,()=>{this.fsw._emitReady()})}else this.emitAdd(D.watchPath,o,i,s,n),this.fsw._emitReady()}catch(o){(!o||this.fsw._handleError(o))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&n!==!0)if(typeof u===ou)this.initWatch(void 0,e,D,i);else{let o;try{o=await pr(D.watchPath)}catch{}this.initWatch(o,e,D,i)}}}ru.exports=La,ru.exports.canUse=Ia;const{EventEmitter:ka}=Yr,cu=oe,B=z,{promisify:Fr}=ye,Ma=LD,fu=Vt.exports.default,Wa=eo,hu=Ln,ja=Go,Ga=On,Ua=Ea,gr=ru.exports,{EV_ALL:du,EV_READY:Ka,EV_ADD:Dt,EV_CHANGE:Ne,EV_UNLINK:_r,EV_ADD_DIR:Va,EV_UNLINK_DIR:za,EV_RAW:Ya,EV_ERROR:Eu,STR_CLOSE:qa,STR_END:Xa,BACK_SLASH_RE:Qa,DOUBLE_SLASH_RE:mr,SLASH_OR_BACK_SLASH_RE:Za,DOT_RE:Ja,REPLACER_RE:el,SLASH:pu,SLASH_SLASH:tl,BRACE_START:ul,BANG:Cu,ONE_DOT:Ar,TWO_DOTS:nl,GLOBSTAR:rl,SLASH_GLOBSTAR:Fu,ANYMATCH_OPTS:gu,STRING_TYPE:_u,FUNCTION_TYPE:sl,EMPTY_STR:mu,EMPTY_FN:il,isWindows:Dl,isMacos:ol,isIBMi:al}=tt,ll=Fr(cu.stat),cl=Fr(cu.readdir),Au=(t=[])=>Array.isArray(t)?t:[t],yr=(t,e=[])=>(t.forEach(u=>{Array.isArray(u)?yr(u,e):e.push(u)}),e),wr=t=>{const e=yr(Au(t));if(!e.every(u=>typeof u===_u))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(br)},Rr=t=>{let e=t.replace(Qa,pu),u=!1;for(e.startsWith(tl)&&(u=!0);e.match(mr);)e=e.replace(mr,pu);return u&&(e=pu+e),e},br=t=>Rr(B.normalize(Rr(t))),vr=(t=mu)=>e=>typeof e!==_u?e:br(B.isAbsolute(e)?e:B.join(t,e)),fl=(t,e)=>B.isAbsolute(t)?t:t.startsWith(Cu)?Cu+B.join(e,t.slice(1)):B.join(e,t),X=(t,e)=>t[e]===void 0;class hl{constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;!u||e!==Ar&&e!==nl&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const n=this.path;try{await cl(n)}catch{this._removeWatcher&&this._removeWatcher(B.dirname(n),B.basename(n))}}has(e){const{items:u}=this;if(!!u)return u.has(e)}getChildren(){const{items:e}=this;if(!!e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const dl="stat",El="lstat";class pl{constructor(e,u,n,r){this.fsw=r,this.path=e=e.replace(el,mu),this.watchPath=u,this.fullWatchPath=B.resolve(u),this.hasGlob=u!==e,e===mu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&n?void 0:!1,this.globFilter=this.hasGlob?fu(e,void 0,gu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=n,this.statMethod=n?dl:El}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return B.join(this.watchPath,B.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const n=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===sl?this.globFilter(n):!0)&&this.fsw._isntIgnored(n,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(ul)?ja.expand(e):[e]).forEach(r=>{u.push(B.relative(this.watchPath,r).split(Za))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let n=!1;this.unmatchedGlob=!this.dirParts.some(r=>r.every((s,i)=>(s===rl&&(n=!0),n||!u[0][i]||fu(s,u[0][i],gu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class Cl extends ka{constructor(e){super();const u={};e&&Object.assign(u,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,X(u,"persistent")&&(u.persistent=!0),X(u,"ignoreInitial")&&(u.ignoreInitial=!1),X(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),X(u,"interval")&&(u.interval=100),X(u,"binaryInterval")&&(u.binaryInterval=300),X(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,X(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),gr.canUse()||(u.useFsEvents=!1),X(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=ol),al&&(u.usePolling=!0);const r=process.env.CHOKIDAR_USEPOLLING;if(r!==void 0){const o=r.toLowerCase();o==="false"||o==="0"?u.usePolling=!1:o==="true"||o==="1"?u.usePolling=!0:u.usePolling=!!o}const s=process.env.CHOKIDAR_INTERVAL;s&&(u.interval=Number.parseInt(s,10)),X(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),X(u,"followSymlinks")&&(u.followSymlinks=!0),X(u,"awaitWriteFinish")&&(u.awaitWriteFinish=!1),u.awaitWriteFinish===!0&&(u.awaitWriteFinish={});const i=u.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=Au(u.ignored));let D=0;this._emitReady=()=>{D++,D>=this._readyCount&&(this._emitReady=il,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ka)))},this._emitRaw=(...o)=>this.emit(Ya,...o),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new gr(this):this._nodeFsHandler=new Ua(this),Object.freeze(u)}add(e,u,n){const{cwd:r,disableGlobbing:s}=this.options;this.closed=!1;let i=wr(e);return r&&(i=i.map(D=>{const o=fl(D,r);return s||!hu(D)?o:Ga(o)})),i=i.filter(D=>D.startsWith(Cu)?(this._ignoredPaths.add(D.slice(1)),!1):(this._ignoredPaths.delete(D),this._ignoredPaths.delete(D+Fu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount*=2),i.forEach(D=>this._fsEventsHandler._addToFsEvents(D))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async D=>{const o=await this._nodeFsHandler._addToNodeFs(D,!n,0,0,u);return o&&this._emitReady(),o})).then(D=>{this.closed||D.filter(o=>o).forEach(o=>{this.add(B.dirname(o),B.basename(u||o))})})),this}unwatch(e){if(this.closed)return this;const u=wr(e),{cwd:n}=this.options;return u.forEach(r=>{!B.isAbsolute(r)&&!this._closers.has(r)&&(n&&(r=B.join(n,r)),r=B.resolve(r)),this._closePath(r),this._ignoredPaths.add(r),this._watched.has(r)&&this._ignoredPaths.add(r+Fu),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach(u=>u.forEach(n=>{const r=n();r instanceof Promise&&e.push(r)})),this._streams.forEach(u=>u.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(u=>u.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(u=>{this[`_${u}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach((u,n)=>{const r=this.options.cwd?B.relative(this.options.cwd,n):n;e[r||Ar]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==Eu&&this.emit(du,...u)}async _emit(e,u,n,r,s){if(this.closed)return;const i=this.options;Dl&&(u=B.normalize(u)),i.cwd&&(u=B.relative(i.cwd,u));const D=[e,u];s!==void 0?D.push(n,r,s):r!==void 0?D.push(n,r):n!==void 0&&D.push(n);const o=i.awaitWriteFinish;let a;if(o&&(a=this._pendingWrites.get(u)))return a.lastChange=new Date,this;if(i.atomic){if(e===_r)return this._pendingUnlinks.set(u,D),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(du,...c),this._pendingUnlinks.delete(f)})},typeof i.atomic=="number"?i.atomic:100),this;e===Dt&&this._pendingUnlinks.has(u)&&(e=D[0]=Ne,this._pendingUnlinks.delete(u))}if(o&&(e===Dt||e===Ne)&&this._readyEmitted){const c=(f,l)=>{f?(e=D[0]=Eu,D[1]=f,this.emitWithAll(e,D)):l&&(D.length>2?D[2]=l:D.push(l),this.emitWithAll(e,D))};return this._awaitWriteFinish(u,o.stabilityThreshold,e,c),this}if(e===Ne&&!this._throttle(Ne,u,50))return this;if(i.alwaysStat&&n===void 0&&(e===Dt||e===Va||e===Ne)){const c=i.cwd?B.join(i.cwd,u):u;let f;try{f=await ll(c)}catch{}if(!f||this.closed)return;D.push(f)}return this.emitWithAll(e,D),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(Eu,e),e||this.closed}_throttle(e,u,n){this._throttled.has(e)||this._throttled.set(e,new Map);const r=this._throttled.get(e),s=r.get(u);if(s)return s.count++,!1;let i;const D=()=>{const a=r.get(u),c=a?a.count:0;return r.delete(u),clearTimeout(i),a&&clearTimeout(a.timeoutObject),c};i=setTimeout(D,n);const o={timeoutObject:i,clear:D,count:0};return r.set(u,o),o}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,n,r){let s,i=e;this.options.cwd&&!B.isAbsolute(e)&&(i=B.join(this.options.cwd,e));const D=new Date,o=a=>{cu.stat(i,(c,f)=>{if(c||!this._pendingWrites.has(e)){c&&c.code!=="ENOENT"&&r(c);return}const l=Number(new Date);a&&f.size!==a.size&&(this._pendingWrites.get(e).lastChange=l);const p=this._pendingWrites.get(e);l-p.lastChange>=u?(this._pendingWrites.delete(e),r(void 0,f)):s=setTimeout(o,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:D,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(s),n)}),s=setTimeout(o,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Ja.test(e))return!0;if(!this._userIgnored){const{cwd:n}=this.options,r=this.options.ignored,s=r&&r.map(vr(n)),i=Au(s).filter(o=>typeof o===_u&&!hu(o)).map(o=>o+Fu),D=this._getGlobIgnored().map(vr(n)).concat(s,i);this._userIgnored=fu(D,void 0,gu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const n=u||this.options.disableGlobbing||!hu(e)?e:Wa(e),r=this.options.followSymlinks;return new pl(e,n,r,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=B.resolve(e);return this._watched.has(u)||this._watched.set(u,new hl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const n=(e&&Number.parseInt(e.mode,10))&511,r=Number.parseInt(n.toString(8)[0],10);return Boolean(4&r)}_remove(e,u,n){const r=B.join(e,u),s=B.resolve(r);if(n=n!=null?n:this._watched.has(r)||this._watched.has(s),!this._throttle("remove",r,100))return;!n&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(r).getChildren().forEach(l=>this._remove(r,l));const o=this._getWatchedDir(e),a=o.has(u);o.remove(u),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let c=r;if(this.options.cwd&&(c=B.relative(this.options.cwd,r)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===Dt)return;this._watched.delete(r),this._watched.delete(s);const f=n?za:_r;a&&!this._isIgnored(r)&&this._emit(f,r),this.options.useFsEvents||this._closePath(r)}_closePath(e){this._closeFile(e);const u=B.dirname(e);this._getWatchedDir(u).remove(B.basename(e))}_closeFile(e){const u=this._closers.get(e);!u||(u.forEach(n=>n()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let n=this._closers.get(e);n||(n=[],this._closers.set(e,n)),n.push(u)}_readdirp(e,u){if(this.closed)return;const n=M({type:du,alwaysStat:!0,lstat:!0},u);let r=Ma(e,n);return this._streams.add(r),r.once(qa,()=>{r=void 0}),r.once(Xa,()=>{r&&(this._streams.delete(r),r=void 0)}),r}}const Fl=(t,e)=>{const u=new Cl(e);return u.add(t),u};var gl=Fl;let he=!0;const Ae=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let Br=0;if(Ae.process&&Ae.process.env&&Ae.process.stdout){const{FORCE_COLOR:t,NODE_DISABLE_COLORS:e,TERM:u}=Ae.process.env;e||t==="0"?he=!1:t==="1"?he=!0:u==="dumb"?he=!1:"CI"in Ae.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(n=>n in Ae.process.env)?he=!0:he=process.stdout.isTTY,he&&(Br=u&&u.endsWith("-256color")?2:1)}let Sr={enabled:he,supportLevel:Br};function $r(t,e,u=1){const n=`\x1B[${t}m`,r=`\x1B[${e}m`,s=new RegExp(`\\x1b\\[${e}m`,"g");return i=>Sr.enabled&&Sr.supportLevel>=u?n+(""+i).replace(s,n)+r:""+i}const _l=$r(90,39),ml=$r(96,39),Al=()=>new Date().toLocaleTimeString(),yl=(...t)=>console.log(_l(Al()),ml("[tsx]"),...t),wl="\x1Bc";function Rl(t,e){let u;return()=>{u&&clearTimeout(u),u=setTimeout(()=>t(),e)}}function bl(t){return t&&"type"in t&&t.type==="dependency"}const Tr={noCache:{type:Boolean,description:"Disable caching",default:!1},clearScreen:{type:Boolean,description:"Clearing the screen on rerun",default:!0}},vl=di({name:"watch",parameters:["<script path>"],flags:Tr,help:{description:"Run the script and watch for changes"}},t=>{const e=ft(Tr,process.argv.slice(3),{ignoreUnknown:!0})._,u={noCache:t.flags.noCache,clearScreen:t.flags.clearScreen,ipc:!0};let n;const r=Rl(()=>{n&&!n.killed&&n.exitCode===null&&n.kill(),n&&yl("rerunning"),u.clearScreen&&process.stdout.write(wl),n=En(e,u),n.on("message",D=>{if(bl(D)){const o=D.path.startsWith("file:")?Vr(D.path):D.path;o.startsWith("/")&&i.add(o)}})},100);r();function s(D){n&&n.kill(),process.exit(D)}process.once("SIGINT",()=>s(130)),process.once("SIGTERM",()=>s(143));const i=gl(t._,{ignoreInitial:!0,ignored:["**/.*/**","**/{node_modules,bower_components,vendor}/**","**/dist/**"],ignorePermissionErrors:!0}).on("all",r);process.stdin.on("data",r)});var Bl=Object.defineProperty,Sl=Object.defineProperties,$l=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Tl=Object.prototype.hasOwnProperty,xl=Object.prototype.propertyIsEnumerable,Or=(t,e,u)=>e in t?Bl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,Ol=(t,e)=>{for(var u in e||(e={}))Tl.call(e,u)&&Or(t,u,e[u]);if(xr)for(var u of xr(e))xl.call(e,u)&&Or(t,u,e[u]);return t},Nl=(t,e)=>Sl(t,$l(e));const Nr={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}},Pr=Nl(Ol({},Nr),{version:{type:Boolean,description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}});hi({name:"tsx",parameters:["[script path]"],commands:[vl],flags:Pr,help:!1},t=>{const e=t._.length===0;if(e){if(t.flags.version){console.log(Ur);return}if(t.flags.help){t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"});return}process.argv.push(ke.resolve("./repl"))}const u=ft(e?Pr:Nr,process.argv.slice(2),{ignoreUnknown:!0})._;En(u,{noCache:Boolean(t.flags.noCache),tsconfigPath:t.flags.tsconfig}).on("close",n=>process.exit(n))});