tsx 3.4.1 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.cjs ADDED
@@ -0,0 +1,52 @@
1
+ "use strict";var $n=Object.defineProperty,Sn=Object.defineProperties;var Tn=Object.getOwnPropertyDescriptors;var mu=Object.getOwnPropertySymbols;var xn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable;var Au=(t,e,u)=>e in t?$n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,M=(t,e)=>{for(var u in e||(e={}))xn.call(e,u)&&Au(t,u,e[u]);if(mu)for(var u of mu(e))On.call(e,u)&&Au(t,u,e[u]);return t},ae=(t,e)=>Sn(t,Tn(e));var Ie=require("./pkgroll_create-require-d7ed1b4a.cjs"),Nn=require("tty"),Hn=require("./package-80b512a7.cjs"),yu=require("url"),Pn=require("child_process"),Ln=require("path"),In=require("fs"),kn=require("events"),Mn=require("util"),Wn=require("stream"),jn=require("os");require("module");function ie(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Gn=ie(Nn),Un=ie(Pn),z=ie(Ln),oe=ie(In),Kn=ie(kn),Ae=ie(Mn),Vn=ie(Wn),wu=ie(jn),Ru=/-(\w)/g,bu=t=>t.replace(Ru,(e,u)=>u.toUpperCase()),vu=/\B([A-Z])/g,zn=t=>t.replace(vu,"-$1").toLowerCase(),{stringify:ye}=JSON,{hasOwnProperty:Yn}=Object.prototype,ke=(t,e)=>Yn.call(t,e),qn=/^--?/,Xn=/[.:=]/,Qn=t=>{let e=t.replace(qn,""),u,r=e.match(Xn);if(r!=null&&r.index){let n=r.index;u=e.slice(n+1),e=e.slice(0,n)}return{flagName:e,flagValue:u}},Zn=/[\s.:=]/,Jn=(t,e)=>{let u=`Invalid flag name ${ye(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(Zn);if(r)throw new Error(`${u} flag name cannot contain the character ${ye(r==null?void 0:r[0])}`);let n;if(Ru.test(e)?n=bu(e):vu.test(e)&&(n=zn(e)),n&&ke(t,n))throw new Error(`${u} collides with flag ${ye(n)}`)};function es(t){let e=new Map;for(let u in t){if(!ke(t,u))continue;Jn(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 ${ye(u)}: flag alias cannot be empty`);if(n.length>1)throw new Error(`Invalid flag alias ${ye(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 ts=t=>!t||typeof t=="function"?!1:Array.isArray(t)||Array.isArray(t.type),us=t=>{let e={};for(let u in t)ke(t,u)&&(e[u]=ts(t[u])?[]:void 0);return e},ot=(t,e)=>t===Number&&e===""?Number.NaN:t===Boolean?e!=="false":e,rs=(t,e)=>{for(let u in t){if(!ke(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)},ns=/^-[\da-z]+/i,ss=/^--[\w-]{2,}/,lt="--";function is(t,e=process.argv.slice(2)){let u=es(t),r={flags:us(t),unknownFlags:{},_:Object.assign([],{[lt]:[]})},n,s=(D,a,o)=>{let c=Bu(D,a);o=ot(c,o),o!==void 0&&!Number.isNaN(o)?Array.isArray(r.flags[D])?r.flags[D].push(c(o)):r.flags[D]=c(o):n=f=>{Array.isArray(r.flags[D])?r.flags[D].push(c(ot(c,f||""))):r.flags[D]=c(ot(c,f||"")),n=void 0}},i=(D,a)=>{D in r.unknownFlags||(r.unknownFlags[D]=[]),a!==void 0?r.unknownFlags[D].push(a):n=(o=!0)=>{r.unknownFlags[D].push(o),n=void 0}};for(let D=0;D<e.length;D+=1){let a=e[D];if(a===lt){let c=e.slice(D+1);r._[lt]=c,r._.push(...c);break}let o=ns.test(a);if(ss.test(a)||o){n&&n();let c=Qn(a),{flagValue:f}=c,{flagName:l}=c;if(o){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):i(F,B?f:!0)}continue}let C=t[l];if(!C){let p=bu(l);C=t[p],C&&(l=p)}if(!C){i(l,f);continue}s(l,C,f)}else n?n(a):r._.push(a)}return n&&n(),rs(t,r.flags),r}var Ds=Object.create,Me=Object.defineProperty,as=Object.defineProperties,os=Object.getOwnPropertyDescriptor,ls=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertyNames,$u=Object.getOwnPropertySymbols,fs=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,Tu=(t,e,u)=>e in t?Me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,We=(t,e)=>{for(var u in e||(e={}))Su.call(e,u)&&Tu(t,u,e[u]);if($u)for(var u of $u(e))hs.call(e,u)&&Tu(t,u,e[u]);return t},ct=(t,e)=>as(t,ls(e)),ds=t=>Me(t,"__esModule",{value:!0}),Es=(t,e)=>()=>(t&&(e=t(t=0)),e),ps=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Cs=(t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of cs(e))!Su.call(t,n)&&(u||n!=="default")&&Me(t,n,{get:()=>e[n],enumerable:!(r=os(e,n))||r.enumerable});return t},Fs=(t,e)=>Cs(ds(Me(t!=null?Ds(fs(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),K=Es(()=>{}),gs=ps((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 _s=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 ms({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 xu(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(ms(),"")}K();function As(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 ys=Fs(gs(),1);function le(t){if(typeof t!="string"||t.length===0||(t=xu(t),t.length===0))return 0;t=t.replace((0,ys.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+=As(r)?2:1)}return e}var Ou=t=>Math.max(...t.split(`
2
+ `).map(le)),ws=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 i=Ou(u[s]);i>e[s]&&(e[s]=i)}}return e};K();var Nu=/^\d+%$/,Hu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Rs=(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"&&Nu.test(s)){r.push(ct(We({},Hu),{width:s,contentWidth:t[n]}));continue}if(s&&typeof s=="object"){let i=ct(We(We({},Hu),s),{contentWidth:t[n]});i.horizontalPadding=i.paddingLeft+i.paddingRight,r.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(s)}`)}return r};function bs(t,e){for(let u of t){let{width:r}=u;if(r==="content-width"&&(u.width=u.contentWidth),r==="auto"){let a=Math.min(20,u.contentWidth);u.width=a,u.autoOverflow=u.contentWidth-a}if(typeof r=="string"&&Nu.test(r)){let a=Number.parseFloat(r.slice(0,-1))/100;u.width=Math.floor(e*a)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:n}=u,s=1,i=s+n;if(i>=e){let a=i-e,o=Math.ceil(u.paddingLeft/n*a),c=a-o;u.paddingLeft-=o,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 Pu=()=>Object.assign([],{columns:0});function vs(t,e){let u=[Pu()],[r]=u;for(let n of t){let s=n.width+n.horizontalPadding;r.columns+s>e&&(r=Pu(),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),i=e-s;if(i===0)continue;let D=n.filter(l=>"autoOverflow"in l),a=D.filter(l=>l.autoOverflow>0),o=a.reduce((l,C)=>l+C.autoOverflow,0),c=Math.min(o,i);for(let l of a){let C=Math.floor(l.autoOverflow/o*c);l.width+=C,i-=C}let f=Math.floor(i/D.length);for(let l=0;l<D.length;l+=1){let C=D[l];l===D.length-1?C.width+=i:C.width+=f,i-=f}}return u}function Bs(t,e,u){let r=Rs(u,e);return bs(r,t),vs(r,t)}K(),K(),K();var ft=10,Lu=(t=0)=>e=>`\x1B[${e+t}m`,Iu=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,ku=(t=0)=>(e,u,r)=>`\x1B[${38+t};2;${e};${u};${r}m`;function $s(){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=Lu(),e.color.ansi256=Iu(),e.color.ansi16m=ku(),e.bgColor.ansi=Lu(ft),e.bgColor.ansi256=Iu(ft),e.bgColor.ansi16m=ku(ft),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(i=>i+i).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 a=u%36;r=Math.floor(u/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let D=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(D+=60),D},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 Ss=$s(),Ts=Ss,je=new Set(["\x1B","\x9B"]),xs=39,ht="\x07",Mu="[",Os="]",Wu="m",dt=`${Os}8;;`,ju=t=>`${je.values().next().value}${Mu}${t}${Wu}`,Gu=t=>`${je.values().next().value}${dt}${t}${ht}`,Ns=t=>t.split(" ").map(e=>le(e)),Et=(t,e,u)=>{let r=[...e],n=!1,s=!1,i=le(xu(t[t.length-1]));for(let[D,a]of r.entries()){let o=le(a);if(i+o<=u?t[t.length-1]+=a:(t.push(a),i=0),je.has(a)&&(n=!0,s=r.slice(D+1).join("").startsWith(dt)),n){s?a===ht&&(n=!1,s=!1):a===Wu&&(n=!1);continue}i+=o,i===u&&D<r.length-1&&(t.push(""),i=0)}!i&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},Hs=t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(le(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")},Ps=(t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let r="",n,s,i=Ns(t),D=[""];for(let[o,c]of t.split(" ").entries()){u.trim!==!1&&(D[D.length-1]=D[D.length-1].trimStart());let f=le(D[D.length-1]);if(o!==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[o]>e){let l=e-f,C=1+Math.floor((i[o]-l-1)/e);Math.floor((i[o]-1)/e)<C&&D.push(""),Et(D,c,e);continue}if(f+i[o]>e&&f>0&&i[o]>0){if(u.wordWrap===!1&&f<e){Et(D,c,e);continue}D.push("")}if(f+i[o]>e&&u.wordWrap===!1){Et(D,c,e);continue}D[D.length-1]+=c}u.trim!==!1&&(D=D.map(o=>Hs(o)));let a=[...D.join(`
3
+ `)];for(let[o,c]of a.entries()){if(r+=c,je.has(c)){let{groups:l}=new RegExp(`(?:\\${Mu}(?<code>\\d+)m|\\${dt}(?<uri>.*)${ht})`).exec(a.slice(o).join(""))||{groups:{}};if(l.code!==void 0){let C=Number.parseFloat(l.code);n=C===xs?void 0:C}else l.uri!==void 0&&(s=l.uri.length===0?void 0:l.uri)}let f=Ts.codes.get(Number(n));a[o+1]===`
4
+ `?(s&&(r+=Gu("")),n&&f&&(r+=ju(f))):c===`
5
+ `&&(n&&f&&(r+=ju(n)),s&&(r+=Gu(s)))}return r};function Ls(t,e,u){return String(t).normalize().replace(/\r\n/g,`
6
+ `).split(`
7
+ `).map(r=>Ps(r,e,u)).join(`
8
+ `)}var Uu=t=>Array.from({length:t}).fill("");function Is(t,e){let u=[],r=0;for(let n of t){let s=0,i=n.map(a=>{var o;let c=(o=e[r])!=null?o:"";r+=1,a.preprocess&&(c=a.preprocess(c)),Ou(c)>a.width&&(c=Ls(c,a.width,{hard:!0}));let f=c.split(`
9
+ `);if(a.postprocess){let{postprocess:l}=a;f=f.map((C,p)=>l.call(a,C,p))}return a.paddingTop&&f.unshift(...Uu(a.paddingTop)),a.paddingBottom&&f.push(...Uu(a.paddingBottom)),f.length>s&&(s=f.length),ct(We({},a),{lines:f})}),D=[];for(let a=0;a<s;a+=1){let o=i.map(c=>{var f;let l=(f=c.lines[a])!=null?f:"",C=Number.isFinite(c.width)?" ".repeat(c.width-le(l)):"",p=c.paddingLeftString;return c.align==="right"&&(p+=C),p+=l,c.align==="left"&&(p+=C),p+c.paddingRightString}).join("");D.push(o)}u.push(D.join(`
10
+ `))}return u.join(`
11
+ `)}function ks(t,e){if(!t||t.length===0)return"";let u=ws(t),r=u.length;if(r===0)return"";let{stdoutColumns:n,columns:s}=_s(e);if(s.length>r)throw new Error(`${s.length} columns defined, but only ${r} columns found`);let i=Bs(n,s,u);return t.map(D=>Is(i,D)).join(`
12
+ `)}K();var Ms=["<",">","=",">=","<="];function Ws(t){if(!Ms.includes(t))throw new TypeError(`Invalid breakpoint operator: ${t}`)}function js(t){let e=Object.keys(t).map(u=>{let[r,n]=u.split(" ");Ws(r);let s=Number.parseInt(n,10);if(Number.isNaN(s))throw new TypeError(`Invalid breakpoint value: ${n}`);let i=t[u];return{operator:r,breakpoint:s,value:i}}).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 Gs=t=>t.replace(/[-_ ](\w)/g,(e,u)=>u.toUpperCase()),Us=t=>t.replace(/\B([A-Z])/g,"-$1").toLowerCase(),Ks={"> 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 Vs(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:`--${Us(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:Ks}}}const Ku=t=>{var e;return!t||((e=t.version)!=null?e:t.help?t.help.version:void 0)},Vu=t=>{var e;const u="parent"in t&&((e=t.parent)==null?void 0:e.name);return(u?`${u} `:"")+t.name};function zs(t){var e;const u=[];t.name&&u.push(Vu(t));const r=(e=Ku(t))!=null?e:"parent"in t&&Ku(t.parent);if(r&&u.push(`v${r}`),u.length!==0)return{id:"name",type:"text",data:`${u.join(" ")}
13
+ `}}function Ys(t){const{help:e}=t;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
14
+ `}}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(`
15
+ `):u.usage}}:void 0;if(t.name){const r=[],n=[Vu(t)];if(t.flags&&Object.keys(t.flags).length>0&&n.push("[flags...]"),t.parameters&&t.parameters.length>0){const{parameters:s}=t,i=s.indexOf("--"),D=i>-1&&s.slice(i+1).some(a=>a.startsWith("<"));n.push(s.map(a=>a!=="--"?a:D?"--":"[--]").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(`
16
+ `)}}}}function Xs(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 Qs(t){if(!(!t.flags||Object.keys(t.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Vs(t.flags),indentBody:0}}}function Zs(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(`
17
+ `)),u)return{id:"examples",type:"section",data:{title:"Examples:",body:u}}}function Js(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 ei=t=>[zs,Ys,qs,Xs,Qs,Zs,Js].map(e=>e(t)).filter(e=>Boolean(e)),ti=Gn.default.WriteStream.prototype.hasColors();class ui{text(e){return e}bold(e){return ti?`\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)}
18
+ `:"")+(u?this.indentText({text:this.render(u),spaces:r}):"")}
19
+ `}table({tableData:e,tableOptions:u,tableBreakpoints:r}){return ks(e.map(n=>n.map(s=>this.render(s))),r?js(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 i="";if(s?i+=`${s}, `:n&&(i+=" "),i+=r,"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 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(`
20
+ `);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 pt=/^[\w.-]+$/;var ri=Object.defineProperty,ni=Object.defineProperties,si=Object.getOwnPropertyDescriptors,zu=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Yu=(t,e,u)=>e in t?ri(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,de=(t,e)=>{for(var u in e||(e={}))ii.call(e,u)&&Yu(t,u,e[u]);if(zu)for(var u of zu(e))Di.call(e,u)&&Yu(t,u,e[u]);return t},Ct=(t,e)=>ni(t,si(e));const{stringify:ee}=JSON,ai=/[|\\{}()[\]^$+*?.]/;function Ft(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],i=n[n.length-1];let D;if(s==="<"&&i===">"&&(D=!0,u))throw new Error(`Invalid parameter: Required parameter ${ee(n)} cannot come after optional parameter ${ee(u)}`);if(s==="["&&i==="]"&&(D=!1,u=n),D===void 0)throw new Error(`Invalid parameter: ${ee(n)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let a=n.slice(1,-1);const o=a.slice(-3)==="...";o&&(r=n,a=a.slice(0,-3));const c=a.match(ai);if(c)throw new Error(`Invalid parameter: ${ee(n)}. Invalid character found ${ee(c[0])}`);e.push({name:a,required:D,spread:o})}return e}function gt(t,e,u,r){for(let n=0;n<e.length;n+=1){const{name:s,required:i,spread:D}=e[n],a=Gs(s);if(a in t)throw new Error(`Invalid parameter: ${ee(s)} is used more than once.`);const o=D?u.slice(n):u[n];if(D&&(n=e.length),i&&(!o||D&&o.length===0))return console.error(`Error: Missing required parameter ${ee(s)}
21
+ `),r(),process.exit(1);t[a]=o}}function oi(t){return t===void 0||t!==!1}function qu(t,e,u,r){const n=de({},e.flags),s=e.version;s&&(n.version={type:Boolean,description:"Show version"});const{help:i}=e,D=oi(i);D&&!("help"in n)&&(n.help={type:Boolean,alias:"h",description:"Show help"});const a=is(n,r),o=()=>{console.log(e.version)};if(s&&a.flags.version===!0)return o(),process.exit(0);const c=new ui,f=D&&(i==null?void 0:i.render)?i.render:p=>c.render(p),l=p=>{const F=ei(Ct(de(de({},e),p?{help:p}:{}),{flags:n}));console.log(f(F,c))};if(D&&a.flags.help===!0)return l(),process.exit(0);if(e.parameters){let{parameters:p}=e,F=a._;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 $=a._["--"];F=F.slice(0,-$.length||void 0),gt(H,Ft(p),F,l),gt(H,Ft(B),$,l)}else gt(H,Ft(p),F,l);Object.assign(a._,H)}const C=Ct(de({},a),{showVersion:o,showHelp:l});return typeof u=="function"&&u(C),de({command:t},C)}function li(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 i of n){if(u.has(i))throw new Error(`Duplicate command name found: ${ee(i)}`);u.set(i,r)}}return u.get(t)}function ci(t,e,u=process.argv.slice(2)){if(!t)throw new Error("Options is required");if("name"in t&&(!t.name||!pt.test(t.name)))throw new Error(`Invalid script name: ${ee(t.name)}`);const r=u[0];if(t.commands&&pt.test(r)){const n=li(r,t.commands);if(n)return qu(n.options.name,Ct(de({},n.options),{parent:t}),n.callback,u.slice(1))}return qu(void 0,t,e,u)}function fi(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(!pt.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:t,callback:e}}var hi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ee={exports:{}},_t,Xu;function di(){if(Xu)return _t;Xu=1,_t=r,r.sync=n;var t=oe.default;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 a=0;a<D.length;a++){var o=D[a].toLowerCase();if(o&&s.substr(-o.length).toLowerCase()===o)return!0}return!1}function u(s,i,D){return!s.isSymbolicLink()&&!s.isFile()?!1:e(i,D)}function r(s,i,D){t.stat(s,function(a,o){D(a,a?!1:u(o,s,i))})}function n(s,i){return u(t.statSync(s),s,i)}return _t}var mt,Qu;function Ei(){if(Qu)return mt;Qu=1,mt=e,e.sync=u;var t=oe.default;function e(s,i,D){t.stat(s,function(a,o){D(a,a?!1:r(o,i))})}function u(s,i){return r(t.statSync(s),i)}function r(s,i){return s.isFile()&&n(s,i)}function n(s,i){var D=s.mode,a=s.uid,o=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),C=parseInt("010",8),p=parseInt("001",8),F=l|C,A=D&p||D&C&&o===f||D&l&&a===c||D&F&&c===0;return A}return mt}var Ge;process.platform==="win32"||hi.TESTING_WINDOWS?Ge=di():Ge=Ei();var pi=At;At.sync=Ci;function At(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){At(t,e||{},function(s,i){s?n(s):r(i)})})}Ge(t,e||{},function(r,n){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,n=!1),u(r,n)})}function Ci(t,e){try{return Ge.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",Zu=z.default,Fi=pe?";":":",Ju=pi,er=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),tr=(t,e)=>{const u=e.colon||Fi,r=t.match(/\//)||pe&&t.match(/\\/)?[""]:[...pe?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],n=pe?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=pe?n.split(u):[""];return pe&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:r,pathExt:s,pathExtExe:n}},ur=(t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:r,pathExt:n,pathExtExe:s}=tr(t,e),i=[],D=o=>new Promise((c,f)=>{if(o===r.length)return e.all&&i.length?c(i):f(er(t));const l=r[o],C=/^".*"$/.test(l)?l.slice(1,-1):l,p=Zu.join(C,t),F=!C&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;c(a(F,o,0))}),a=(o,c,f)=>new Promise((l,C)=>{if(f===n.length)return l(D(c+1));const p=n[f];Ju(o+p,{pathExt:s},(F,A)=>{if(!F&&A)if(e.all)i.push(o+p);else return l(o+p);return l(a(o,c,f+1))})});return u?D(0).then(o=>u(null,o),u):D(0)},gi=(t,e)=>{e=e||{};const{pathEnv:u,pathExt:r,pathExtExe:n}=tr(t,e),s=[];for(let i=0;i<u.length;i++){const D=u[i],a=/^".*"$/.test(D)?D.slice(1,-1):D,o=Zu.join(a,t),c=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+o:o;for(let f=0;f<r.length;f++){const l=c+r[f];try{if(Ju.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 er(t)};var _i=ur;ur.sync=gi;var yt={exports:{}};const rr=(t={})=>{const e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};yt.exports=rr,yt.exports.default=rr;const nr=z.default,mi=_i,Ai=yt.exports;function sr(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 i;try{i=mi.sync(t.command,{path:u[Ai({env:u})],pathExt:e?nr.delimiter:void 0})}catch{}finally{s&&process.chdir(r)}return i&&(i=nr.resolve(n?t.options.cwd:"",i)),i}function yi(t){return sr(t)||sr(t,!0)}var wi=yi,wt={};const Rt=/([()\][%!^"`<>&|;, *?])/g;function Ri(t){return t=t.replace(Rt,"^$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(Rt,"^$1"),e&&(t=t.replace(Rt,"^$1")),t}wt.command=Ri,wt.argument=bi;var vi=/^#!(.*)/;const Bi=vi;var $i=(t="")=>{const e=t.match(Bi);if(!e)return null;const[u,r]=e[0].replace(/#! ?/,"").split(" "),n=u.split("/").pop();return n==="env"?r:r?`${n} ${r}`:n};const bt=oe.default,Si=$i;function Ti(t){const u=Buffer.alloc(150);let r;try{r=bt.openSync(t,"r"),bt.readSync(r,u,0,150,0),bt.closeSync(r)}catch{}return Si(u.toString())}var xi=Ti;const Oi=z.default,ir=wi,Dr=wt,Ni=xi,Hi=process.platform==="win32",Pi=/\.(?:com|exe)$/i,Li=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ii(t){t.file=ir(t);const e=t.file&&Ni(t.file);return e?(t.args.unshift(t.file),t.command=e,ir(t)):t.file}function ki(t){if(!Hi)return t;const e=Ii(t),u=!Pi.test(e);if(t.options.forceShell||u){const r=Li.test(e);t.command=Oi.normalize(t.command),t.command=Dr.command(t.command),t.args=t.args.map(s=>Dr.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 Mi(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:ki(r)}var Wi=Mi;const vt=process.platform==="win32";function Bt(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 ji(t,e){if(!vt)return;const u=t.emit;t.emit=function(r,n){if(r==="exit"){const s=ar(n,e);if(s)return u.call(t,"error",s)}return u.apply(t,arguments)}}function ar(t,e){return vt&&t===1&&!e.file?Bt(e.original,"spawn"):null}function Gi(t,e){return vt&&t===1&&!e.file?Bt(e.original,"spawnSync"):null}var Ui={hookChildProcess:ji,verifyENOENT:ar,verifyENOENTSync:Gi,notFoundError:Bt};const or=Un.default,$t=Wi,St=Ui;function lr(t,e,u){const r=$t(t,e,u),n=or.spawn(r.command,r.args,r.options);return St.hookChildProcess(n,r),n}function Ki(t,e,u){const r=$t(t,e,u),n=or.spawnSync(r.command,r.args,r.options);return n.error=n.error||St.verifyENOENTSync(n.status,r),n}Ee.exports=lr,Ee.exports.spawn=lr,Ee.exports.sync=Ki,Ee.exports._parse=$t,Ee.exports._enoent=St;var Vi=Object.defineProperty,cr=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,fr=(t,e,u)=>e in t?Vi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,qi=(t,e)=>{for(var u in e||(e={}))zi.call(e,u)&&fr(t,u,e[u]);if(cr)for(var u of cr(e))Yi.call(e,u)&&fr(t,u,e[u]);return t};function hr(t,e){const u=qi({},process.env);e!=null&&e.noCache&&(u.ESBK_DISABLE_CACHE="1");const r=["inherit","inherit","inherit"];return e!=null&&e.ipc&&r.push("ipc"),Ee.exports(process.execPath,["--require",Ie.require.resolve("./suppress-warnings.cjs"),"--loader",yu.pathToFileURL(Ie.require.resolve("./loader.js")).toString(),...t],{stdio:r,env:u})}var Tt={exports:{}},Ue={};const Xi=z.default,te="\\\\/",dr=`[^${te}]`,ue="\\.",Qi="\\+",Zi="\\?",Ke="\\/",Ji="(?=.)",Er="[^/]",xt=`(?:${Ke}|$)`,pr=`(?:^|${Ke})`,Ot=`${ue}{1,2}${xt}`,eD=`(?!${ue})`,tD=`(?!${pr}${Ot})`,uD=`(?!${ue}{0,1}${xt})`,rD=`(?!${Ot})`,nD=`[^.${Ke}]`,sD=`${Er}*?`,Cr={DOT_LITERAL:ue,PLUS_LITERAL:Qi,QMARK_LITERAL:Zi,SLASH_LITERAL:Ke,ONE_CHAR:Ji,QMARK:Er,END_ANCHOR:xt,DOTS_SLASH:Ot,NO_DOT:eD,NO_DOTS:tD,NO_DOT_SLASH:uD,NO_DOTS_SLASH:rD,QMARK_NO_DOT:nD,STAR:sD,START_ANCHOR:pr},iD=ae(M({},Cr),{SLASH_LITERAL:`[${te}]`,QMARK:dr,STAR:`${dr}*?`,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}]|$)`}),DD={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 Ve={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:DD,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:Xi.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?iD:Cr}};(function(t){const e=z.default,u=process.platform==="win32",{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=Ve;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(r,"/"),t.removeBackslashes=D=>D.replace(n,a=>a==="\\"?"":a),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,a,o)=>{const c=D.lastIndexOf(a,o);return c===-1?D:D[c-1]==="\\"?t.escapeLast(D,a,c-1):`${D.slice(0,c)}\\${D.slice(c)}`},t.removePrefix=(D,a={})=>{let o=D;return o.startsWith("./")&&(o=o.slice(2),a.prefix="./"),o},t.wrapOutput=(D,a={},o={})=>{const c=o.contains?"":"^",f=o.contains?"":"$";let l=`${c}(?:${D})${f}`;return a.negated===!0&&(l=`(?:^(?!${l}).*$)`),l}})(Ue);const Fr=Ue,{CHAR_ASTERISK:Nt,CHAR_AT:aD,CHAR_BACKWARD_SLASH:we,CHAR_COMMA:oD,CHAR_DOT:Ht,CHAR_EXCLAMATION_MARK:Pt,CHAR_FORWARD_SLASH:gr,CHAR_LEFT_CURLY_BRACE:Lt,CHAR_LEFT_PARENTHESES:It,CHAR_LEFT_SQUARE_BRACKET:lD,CHAR_PLUS:cD,CHAR_QUESTION_MARK:_r,CHAR_RIGHT_CURLY_BRACE:fD,CHAR_RIGHT_PARENTHESES:mr,CHAR_RIGHT_SQUARE_BRACKET:hD}=Ve,Ar=t=>t===gr||t===we,yr=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},dD=(t,e)=>{const u=e||{},r=t.length-1,n=u.parts===!0||u.scanToEnd===!0,s=[],i=[],D=[];let a=t,o=-1,c=0,f=0,l=!1,C=!1,p=!1,F=!1,A=!1,B=!1,H=!1,$=!1,Q=!1,W=!1,ne=0,j,m,b={value:"",depth:0,isGlob:!1};const k=()=>o>=r,E=()=>a.charCodeAt(o+1),x=()=>(j=m,a.charCodeAt(++o));for(;o<r;){m=x();let G;if(m===we){H=b.backslashes=!0,m=x(),m===Lt&&(B=!0);continue}if(B===!0||m===Lt){for(ne++;k()!==!0&&(m=x());){if(m===we){H=b.backslashes=!0,x();continue}if(m===Lt){ne++;continue}if(B!==!0&&m===Ht&&(m=x())===Ht){if(l=b.isBrace=!0,p=b.isGlob=!0,W=!0,n===!0)continue;break}if(B!==!0&&m===oD){if(l=b.isBrace=!0,p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===fD&&(ne--,ne===0)){B=!1,l=b.isBrace=!0,W=!0;break}}if(n===!0)continue;break}if(m===gr){if(s.push(o),i.push(b),b={value:"",depth:0,isGlob:!1},W===!0)continue;if(j===Ht&&o===c+1){c+=2;continue}f=o+1;continue}if(u.noext!==!0&&(m===cD||m===aD||m===Nt||m===_r||m===Pt)===!0&&E()===It){if(p=b.isGlob=!0,F=b.isExtglob=!0,W=!0,m===Pt&&o===c&&(Q=!0),n===!0){for(;k()!==!0&&(m=x());){if(m===we){H=b.backslashes=!0,m=x();continue}if(m===mr){p=b.isGlob=!0,W=!0;break}}continue}break}if(m===Nt){if(j===Nt&&(A=b.isGlobstar=!0),p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===_r){if(p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===lD){for(;k()!==!0&&(G=x());){if(G===we){H=b.backslashes=!0,x();continue}if(G===hD){C=b.isBracket=!0,p=b.isGlob=!0,W=!0;break}}if(n===!0)continue;break}if(u.nonegate!==!0&&m===Pt&&o===c){$=b.negated=!0,c++;continue}if(u.noparen!==!0&&m===It){if(p=b.isGlob=!0,n===!0){for(;k()!==!0&&(m=x());){if(m===It){H=b.backslashes=!0,m=x();continue}if(m===mr){W=!0;break}}continue}break}if(p===!0){if(W=!0,n===!0)continue;break}}u.noext===!0&&(F=!1,p=!1);let S=a,se="",h="";c>0&&(se=a.slice(0,c),a=a.slice(c),f-=c),S&&p===!0&&f>0?(S=a.slice(0,f),h=a.slice(f)):p===!0?(S="",h=a):S=a,S&&S!==""&&S!=="/"&&S!==a&&Ar(S.charCodeAt(S.length-1))&&(S=S.slice(0,-1)),u.unescape===!0&&(h&&(h=Fr.removeBackslashes(h)),S&&H===!0&&(S=Fr.removeBackslashes(S)));const d={prefix:se,input:t,start:c,base:S,glob:h,isBrace:l,isBracket:C,isGlob:p,isExtglob:F,isGlobstar:A,negated:$,negatedExtglob:Q};if(u.tokens===!0&&(d.maxDepth=0,Ar(m)||i.push(b),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,yr(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,yr(i[i.length-1]),d.maxDepth+=i[i.length-1].depth)}d.slashes=s,d.parts=D}return d};var ED=dD;const ze=Ve,Y=Ue,{MAX_LENGTH:Ye,POSIX_REGEX_SOURCE:pD,REGEX_NON_SPECIAL_CHARS:CD,REGEX_SPECIAL_CHARS_BACKREF:FD,REPLACEMENTS:wr}=ze,gD=(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},Ce=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,kt=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=wr[t]||t;const u=M({},e),r=typeof u.maxLength=="number"?Math.min(Ye,u.maxLength):Ye;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||""},i=[s],D=u.capture?"":"?:",a=Y.isWindows(e),o=ze.globChars(a),c=ze.extglobChars(o),{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:$,QMARK_NO_DOT:Q,STAR:W,START_ANCHOR:ne}=o,j=_=>`(${D}(?:(?!${ne}${_.dot?F:f}).)*?)`,m=u.dot?"":A,b=u.dot?$: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),n=t.length;const x=[],S=[],se=[];let h=s,d;const G=()=>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},Ne=_=>{E.output+=_.output!=null?_.output:_.value,V(_.value)},vn=()=>{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(_)},De=_=>{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)&&Ne(_),h&&h.type==="text"&&_.type==="text"){h.value+=_.value,h.output=(h.output||"")+_.value;return}_.prev=h,i.push(_),h=_},Pe=(_,T)=>{const g=ae(M({},c[T]),{conditions:1,inner:""});g.prev=h,g.parens=E.parens,g.output=E.output;const y=(u.capture?"(":"")+g.open;He("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=j(u)),(y!==k||G()||/^\)+$/.test(J()))&&(T=_.close=`)$))${y}`),_.inner.includes("*")&&(g=J())&&/^\.[^\\/.]+$/.test(g)){const O=kt(g,ae(M({},e),{fastpaths:!1})).output;T=_.close=`)${O})${y})`}_.prev.type==="bos"&&(E.negatedExtglob=!0)}w({type:"paren",extglob:!0,value:d,output:T}),De("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let _=!1,T=t.replace(FD,(g,y,O,U,P,at)=>U==="\\"?(_=!0,g):U==="?"?y?y+U+(P?$.repeat(P.length):""):at===0?b+(P?$.repeat(P.length):""):$.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(;!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 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=pD[U];if(P){h.value=O+P,E.backtrack=!0,Z(),!s.output&&i.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,Ne({value:d});continue}if(E.quotes===1&&d!=='"'){d=Y.escapeRegex(d),h.value+=d,Ne({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){Bn(x.pop());continue}w({type:"paren",value:d,output:E.parens?")":"\\)"}),De("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}De("brackets");const g=h.value.slice(1);if(h.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(d=`/${d}`),h.value+=d,Ne({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=`(${D}${y}|${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};S.push(g),w(g);continue}if(d==="}"){const g=S[S.length-1];if(u.nobrace===!0||!g){w({type:"text",value:d,output:d});continue}let y=")";if(g.dots===!0){const O=i.slice(),U=[];for(let P=O.length-1;P>=0&&(i.pop(),O[P].type!=="brace");P--)O[P].type!=="dots"&&U.unshift(O[P].value);y=gD(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}),De("braces"),S.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=S[S.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="",i.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=S[S.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)!=="?"){Pe("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:$});continue}if(d==="!"){if(u.noextglob!==!0&&R()==="("&&(R(2)!=="?"||!/[!=<:]/.test(R(3)))){Pe("negate",d);continue}if(u.nonegate!==!0&&E.index===0){vn();continue}}if(d==="+"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("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=CD.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(_)){Pe("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"),at=x.length&&(g.type==="pipe"||g.type==="paren");if(!O&&g.type!=="paren"&&!P&&!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)}${C}|${C}${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=`(?:^|${C}|${j(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=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+=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(Ce("closing","]"));E.output=Y.escapeLast(E.output,"["),De("brackets")}for(;E.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(Ce("closing",")"));E.output=Y.escapeLast(E.output,"("),De("parens")}for(;E.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(Ce("closing","}"));E.output=Y.escapeLast(E.output,"{"),De("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};kt.fastpaths=(t,e)=>{const u=M({},e),r=typeof u.maxLength=="number"?Math.min(Ye,u.maxLength):Ye,n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);t=wr[t]||t;const s=Y.isWindows(e),{DOT_LITERAL:i,SLASH_LITERAL:D,ONE_CHAR:a,DOTS_SLASH:o,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:l,STAR:C,START_ANCHOR:p}=ze.globChars(s),F=u.dot?f:c,A=u.dot?l:c,B=u.capture?"":"?:",H={negated:!1,prefix:""};let $=u.bash===!0?".*?":C;u.capture&&($=`(${$})`);const Q=m=>m.noglobstar===!0?$:`(${B}(?:(?!${p}${m.dot?o:i}).)*?)`,W=m=>{switch(m){case"*":return`${F}${a}${$}`;case".*":return`${i}${a}${$}`;case"*.*":return`${F}${$}${i}${a}${$}`;case"*/*":return`${F}${$}${D}${a}${A}${$}`;case"**":return F+Q(u);case"**/*":return`(?:${F}${Q(u)}${D})?${A}${a}${$}`;case"**/*.*":return`(?:${F}${Q(u)}${D})?${A}${$}${i}${a}${$}`;case"**/.*":return`(?:${F}${Q(u)}${D})?${i}${a}${$}`;default:{const b=/^(.*?)\.(\w+)$/.exec(m);if(!b)return;const k=W(b[1]);return k?k+i+b[2]:void 0}}},ne=Y.removePrefix(t,H);let j=W(ne);return j&&u.strictSlashes!==!0&&(j+=`${D}?`),j};var _D=kt;const mD=z.default,AD=ED,Mt=_D,Wt=Ue,yD=Ve,wD=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=wD(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=Wt.isWindows(e),i=r?N.compileRe(t,e):N.makeRe(t,e,!1,!0),D=i.state;delete i.state;let a=()=>!1;if(n.ignore){const c=ae(M({},e),{ignore:null,onMatch:null,onResult:null});a=N(n.ignore,c,u)}const o=(c,f=!1)=>{const{isMatch:l,match:C,output:p}=N.test(c,i,e,{glob:t,posix:s}),F={glob:t,state:D,regex:i,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):a(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&&(o.state=D),o};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||{},i=s.format||(n?Wt.toPosixSlashes:null);let D=t===r,a=D&&i?i(t):t;return D===!1&&(a=i?i(t):t,D=a===r),(D===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?D=N.matchBase(t,e,u,n):D=e.exec(a)),{isMatch:Boolean(D),match:D,output:a}},N.matchBase=(t,e,u,r=Wt.isWindows(u))=>(e instanceof RegExp?e:N.makeRe(e,u)).test(mD.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)):Mt(t,ae(M({},e),{fastpaths:!1})),N.scan=(t,e)=>AD(t,e),N.compileRe=(t,e,u=!1,r=!1)=>{if(u===!0)return t.output;const n=e||{},s=n.contains?"":"^",i=n.contains?"":"$";let D=`${s}(?:${t.output})${i}`;t&&t.negated===!0&&(D=`^(?!${D}).*$`);const a=N.toRegex(D,e);return r===!0&&(a.state=t),a},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=Mt.fastpaths(t,e)),n.output||(n=Mt(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=yD;var RD=N;(function(t){t.exports=RD})(Tt);const Re=oe.default,{Readable:bD}=Vn.default,be=z.default,{promisify:qe}=Ae.default,jt=Tt.exports,vD=qe(Re.readdir),BD=qe(Re.stat),Rr=qe(Re.lstat),$D=qe(Re.realpath),SD="!",br="READDIRP_RECURSIVE_ERROR",TD=new Set(["ENOENT","EPERM","EACCES","ELOOP",br]),Gt="files",vr="directories",Xe="files_directories",Qe="all",Br=[Gt,vr,Xe,Qe],xD=t=>TD.has(t.code),[$r,OD]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),ND=process.platform==="win32"&&($r>10||$r===10&&OD>=5),Sr=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){const e=jt(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)===SD?u.push(jt(n.slice(1))):e.push(jt(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 Dt extends bD{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({},Dt.defaultOptions),e),{root:r,type:n}=u;this._fileFilter=Sr(u.fileFilter),this._directoryFilter=Sr(u.directoryFilter);const s=u.lstat?Rr:BD;ND?this._stat=i=>s(i,{bigint:!0}):this._stat=s,this._maxDepth=u.depth,this._wantsDir=[vr,Xe,Qe].includes(n),this._wantsFile=[Gt,Xe,Qe].includes(n),this._wantsEverything=n===Qe,this._root=be.resolve(r),this._isDirent="Dirent"in Re&&!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(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)?(r<=this._maxDepth&&this.parents.push(this._exploreDir(i.fullPath,r+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 r;try{r=await vD(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=be.resolve(be.join(u,n));r={path:be.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){xD(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 $D(r),s=await Rr(n);if(s.isFile())return"file";if(s.isDirectory()){const i=n.length;if(r.startsWith(n)&&r.substr(i,1)===be.sep){const D=new Error(`Circular symlink detected: "${r}" points to "${n}"`);return D.code=br,this._onError(D)}return"directory"}}catch(n){this._onError(n)}}}}_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=Xe),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 Dt(e)},HD=(t,e={})=>new Promise((u,r)=>{const n=[];Fe(t,e).on("data",s=>n.push(s)).on("end",()=>u(n)).on("error",s=>r(s))});Fe.promise=HD,Fe.ReaddirpStream=Dt,Fe.default=Fe;var PD=Fe,Ut={exports:{}};/*!
22
+ * normalize-path <https://github.com/jonschlinkert/normalize-path>
23
+ *
24
+ * Copyright (c) 2014-2018, Jon Schlinkert.
25
+ * Released under the MIT License.
26
+ */var Tr=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(Ut.exports,"__esModule",{value:!0});const xr=Tt.exports,LD=Tr,Or="!",ID={returnIndex:!1},kD=t=>Array.isArray(t)?t:[t],MD=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){const u=xr(t,e);return r=>t===r||u(r)}return t instanceof RegExp?u=>t.test(u):u=>!1},Nr=(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 i=LD(s);for(let a=0;a<e.length;a++)if(e[a](i))return r?-1:!1;const D=n&&[i].concat(u.slice(1));for(let a=0;a<t.length;a++){const o=t[a];if(n?o(...D):o(i))return r?a:!0}return r?-1:!1},Kt=(t,e,u=ID)=>{if(t==null)throw new TypeError("anymatch: specify first argument");const r=typeof u=="boolean"?{returnIndex:u}:u,n=r.returnIndex||!1,s=kD(t),i=s.filter(a=>typeof a=="string"&&a.charAt(0)===Or).map(a=>a.slice(1)).map(a=>xr(a,r)),D=s.filter(a=>typeof a!="string"||typeof a=="string"&&a.charAt(0)!==Or).map(a=>MD(a,r));return e==null?(a,o=!1)=>Nr(D,i,a,typeof o=="boolean"?o:!1):Nr(D,i,e,n)};Kt.default=Kt,Ut.exports=Kt;/*!
27
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
28
+ *
29
+ * Copyright (c) 2014-2016, Jon Schlinkert.
30
+ * Licensed under the MIT License.
31
+ */var WD=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
+ * is-glob <https://github.com/jonschlinkert/is-glob>
33
+ *
34
+ * Copyright (c) 2014-2017, Jon Schlinkert.
35
+ * Released under the MIT License.
36
+ */var jD=WD,Hr={"{":"}","(":")","[":"]"},GD=function(t){if(t[0]==="!")return!0;for(var e=0,u=-2,r=-2,n=-2,s=-2,i=-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&&(i===-1||i>r||(i=t.indexOf("\\",e),i===-1||i>r)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(i=t.indexOf("\\",e),i===-1||i>n))||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 a=Hr[D];if(a){var o=t.indexOf(a,e);o!==-1&&(e=o+1)}if(t[e]==="!")return!0}else e++}return!1},UD=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=Hr[u];if(r){var n=t.indexOf(r,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1},Pr=function(e,u){if(typeof e!="string"||e==="")return!1;if(jD(e))return!0;var r=GD;return u&&u.strict===!1&&(r=UD),r(e)},KD=Pr,VD=z.default.posix.dirname,zD=wu.default.platform()==="win32",Vt="/",YD=/\\/g,qD=/[\{\[].*[\}\]]$/,XD=/(^|[^\\])([\{\[]|\([^\)]+$)/,QD=/\\([\!\*\?\|\[\]\(\)\{\}])/g,ZD=function(e,u){var r=Object.assign({flipBackslashes:!0},u);r.flipBackslashes&&zD&&e.indexOf(Vt)<0&&(e=e.replace(YD,Vt)),qD.test(e)&&(e+=Vt),e+="a";do e=VD(e);while(KD(e)||XD.test(e));return e.replace(QD,"$1")},Ze={};(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 i=n[s];Array.isArray(i)?r(i):i!==void 0&&u.push(i)}return u};return r(e),u}})(Ze);const Lr=Ze;var zt=(t,e={})=>{let u=(r,n={})=>{let s=e.escapeInvalid&&Lr.isInvalidBrace(n),i=r.invalid===!0&&e.escapeInvalid===!0,D="";if(r.value)return(s||i)&&Lr.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let a of r.nodes)D+=u(a);return D};return u(t)};/*!
37
+ * is-number <https://github.com/jonschlinkert/is-number>
38
+ *
39
+ * Copyright (c) 2014-present, Jon Schlinkert.
40
+ * Released under the MIT License.
41
+ */var JD=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1};/*!
42
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
43
+ *
44
+ * Copyright (c) 2015-present, Jon Schlinkert.
45
+ * Released under the MIT License.
46
+ */const Ir=JD,ce=(t,e,u)=>{if(Ir(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Ir(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),i=String(r.capture),D=String(r.wrap),a=t+":"+e+"="+n+s+i+D;if(ce.cache.hasOwnProperty(a))return ce.cache[a].result;let o=Math.min(t,e),c=Math.max(t,e);if(Math.abs(o-c)===1){let F=t+"|"+e;return r.capture?`(${F})`:r.wrap===!1?F:`(?:${F})`}let f=Ur(t)||Ur(e),l={min:t,max:e,a:o,b:c},C=[],p=[];if(f&&(l.isPadded=f,l.maxLen=String(l.max).length),o<0){let F=c<0?Math.abs(c):1;p=kr(F,Math.abs(o),l,r),o=l.a=0}return c>=0&&(C=kr(o,c,l,r)),l.negatives=p,l.positives=C,l.result=ea(p,C),r.capture===!0?l.result=`(${l.result})`:r.wrap!==!1&&C.length+p.length>1&&(l.result=`(?:${l.result})`),ce.cache[a]=l,l.result};function ea(t,e,u){let r=Yt(t,e,"-",!1)||[],n=Yt(e,t,"",!1)||[],s=Yt(t,e,"-?",!0)||[];return r.concat(s).concat(n).join("|")}function ta(t,e){let u=1,r=1,n=Wr(t,u),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),u+=1,n=Wr(t,u);for(n=jr(e+1,r)-1;t<n&&n<=e;)s.add(n),r+=1,n=jr(e+1,r)-1;return s=[...s],s.sort(na),s}function ua(t,e,u){if(t===e)return{pattern:t,count:[],digits:0};let r=ra(t,e),n=r.length,s="",i=0;for(let D=0;D<n;D++){let[a,o]=r[D];a===o?s+=a:a!=="0"||o!=="9"?s+=sa(a,o):i++}return i&&(s+=u.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[i],digits:n}}function kr(t,e,u,r){let n=ta(t,e),s=[],i=t,D;for(let a=0;a<n.length;a++){let o=n[a],c=ua(String(i),String(o),r),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+Gr(D.count),i=o+1;continue}u.isPadded&&(f=ia(o,u,r)),c.string=f+c.pattern+Gr(c.count),s.push(c),i=o+1,D=c}return s}function Yt(t,e,u,r,n){let s=[];for(let i of t){let{string:D}=i;!r&&!Mr(e,"string",D)&&s.push(u+D),r&&Mr(e,"string",D)&&s.push(u+D)}return s}function ra(t,e){let u=[];for(let r=0;r<t.length;r++)u.push([t[r],e[r]]);return u}function na(t,e){return t>e?1:e>t?-1:0}function Mr(t,e,u){return t.some(r=>r[e]===u)}function Wr(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function jr(t,e){return t-t%Math.pow(10,e)}function Gr(t){let[e=0,u=""]=t;return u||e>1?`{${e+(u?","+u:"")}}`:""}function sa(t,e,u){return`[${t}${e-t===1?"":"-"}${e}]`}function Ur(t){return/^-?(0+)\d/.test(t)}function ia(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}}`}}ce.cache={},ce.clearCache=()=>ce.cache={};var Da=ce;/*!
47
+ * fill-range <https://github.com/jonschlinkert/fill-range>
48
+ *
49
+ * Copyright (c) 2014-present, Jon Schlinkert.
50
+ * Licensed under the MIT License.
51
+ */const aa=Ae.default,Kr=Da,Vr=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),oa=t=>e=>t===!0?Number(e):String(e),qt=t=>typeof t=="number"||typeof t=="string"&&t!=="",ve=t=>Number.isInteger(+t),Xt=t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},la=(t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,ca=(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},zr=(t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},fa=(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?"":"?:",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},Yr=(t,e,u,r)=>{if(u)return Kr(t,e,M({wrap:!1},r));let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},qr=(t,e,u)=>{if(Array.isArray(t)){let r=u.wrap===!0,n=u.capture?"":"?:";return r?`(${n}${t.join("|")})`:t.join("|")}return Kr(t,e,u)},Xr=(...t)=>new RangeError("Invalid range arguments: "+aa.inspect(...t)),Qr=(t,e,u)=>{if(u.strictRanges===!0)throw Xr([t,e]);return[]},ha=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},da=(t,e,u=1,r={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(r.strictRanges===!0)throw Xr([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let i=n>s,D=String(t),a=String(e),o=String(u);u=Math.max(Math.abs(u),1);let c=Xt(D)||Xt(a)||Xt(o),f=c?Math.max(D.length,a.length,o.length):0,l=c===!1&&la(t,e,r)===!1,C=r.transform||oa(l);if(r.toRegex&&u===1)return Yr(zr(t,f),zr(e,f),!0,r);let p={negatives:[],positives:[]},F=H=>p[H<0?"negatives":"positives"].push(Math.abs(H)),A=[],B=0;for(;i?n>=s:n<=s;)r.toRegex===!0&&u>1?F(n):A.push(ca(C(n,B),f,l)),n=i?n-u:n+u,B++;return r.toRegex===!0?u>1?fa(p,r):qr(A,null,M({wrap:!1},r)):A},Ea=(t,e,u=1,r={})=>{if(!ve(t)&&t.length>1||!ve(e)&&e.length>1)return Qr(t,e,r);let n=r.transform||(l=>String.fromCharCode(l)),s=`${t}`.charCodeAt(0),i=`${e}`.charCodeAt(0),D=s>i,a=Math.min(s,i),o=Math.max(s,i);if(r.toRegex&&u===1)return Yr(a,o,!1,r);let c=[],f=0;for(;D?s>=i:s<=i;)c.push(n(s,f)),s=D?s-u:s+u,f++;return r.toRegex===!0?qr(c,null,{wrap:!1,options:r}):c},Je=(t,e,u,r={})=>{if(e==null&&qt(t))return[t];if(!qt(t)||!qt(e))return Qr(t,e,r);if(typeof u=="function")return Je(t,e,1,{transform:u});if(Vr(u))return Je(t,e,0,u);let n=M({},r);return n.capture===!0&&(n.wrap=!0),u=u||n.step||1,ve(u)?ve(t)&&ve(e)?da(t,e,u,n):Ea(t,e,Math.max(Math.abs(u),1),n):u!=null&&!Vr(u)?ha(u,n):Je(t,e,1,u)};var Zr=Je;const pa=Zr,Jr=Ze,Ca=(t,e={})=>{let u=(r,n={})=>{let s=Jr.isInvalidBrace(n),i=r.invalid===!0&&e.escapeInvalid===!0,D=s===!0||i===!0,a=e.escapeInvalid===!0?"\\":"",o="";if(r.isOpen===!0||r.isClose===!0)return a+r.value;if(r.type==="open")return D?a+r.value:"(";if(r.type==="close")return D?a+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":D?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let c=Jr.reduce(r.nodes),f=pa(...c,ae(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)o+=u(c,r);return o};return u(t)};var Fa=Ca;const ga=Zr,en=zt,ge=Ze,fe=(t="",e="",u=!1)=>{let r=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?ge.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)r.push(fe(s,e,u));else for(let s of e)u===!0&&typeof s=="string"&&(s=`{${s}}`),r.push(Array.isArray(s)?fe(n,s,u):n+s);return ge.flatten(r)},_a=(t,e={})=>{let u=e.rangeLimit===void 0?1e3:e.rangeLimit,r=(n,s={})=>{n.queue=[];let i=s,D=s.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,D=i.queue;if(n.invalid||n.dollar){D.push(fe(D.pop(),en(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){D.push(fe(D.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=ge.reduce(n.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=ga(...f,e);l.length===0&&(l=en(n,e)),D.push(fe(D.pop(),l)),n.nodes=[];return}let a=ge.encloseBrace(n),o=n.queue,c=n;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,o=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&&o.push(""),o.push("");continue}if(l.type==="close"){D.push(fe(D.pop(),o,a));continue}if(l.value&&l.type!=="open"){o.push(fe(o.pop(),l.value));continue}l.nodes&&r(l,n)}return o};return ge.flatten(r(t))};var ma=_a,Aa={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:`
52
+ `,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 ya=zt,{MAX_LENGTH:tn,CHAR_BACKSLASH:Qt,CHAR_BACKTICK:wa,CHAR_COMMA:Ra,CHAR_DOT:ba,CHAR_LEFT_PARENTHESES:va,CHAR_RIGHT_PARENTHESES:Ba,CHAR_LEFT_CURLY_BRACE:$a,CHAR_RIGHT_CURLY_BRACE:Sa,CHAR_LEFT_SQUARE_BRACKET:un,CHAR_RIGHT_SQUARE_BRACKET:rn,CHAR_DOUBLE_QUOTE:Ta,CHAR_SINGLE_QUOTE:xa,CHAR_NO_BREAK_SPACE:Oa,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Na}=Aa,Ha=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},r=typeof u.maxLength=="number"?Math.min(tn,u.maxLength):tn;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let n={type:"root",input:t,nodes:[]},s=[n],i=n,D=n,a=0,o=t.length,c=0,f=0,l;const C=()=>t[c++],p=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(p({type:"bos"});c<o;)if(i=s[s.length-1],l=C(),!(l===Na||l===Oa)){if(l===Qt){p({type:"text",value:(e.keepEscaping?l:"")+C()});continue}if(l===rn){p({type:"text",value:"\\"+l});continue}if(l===un){a++;let F;for(;c<o&&(F=C());){if(l+=F,F===un){a++;continue}if(F===Qt){l+=C();continue}if(F===rn&&(a--,a===0))break}p({type:"text",value:l});continue}if(l===va){i=p({type:"paren",nodes:[]}),s.push(i),p({type:"text",value:l});continue}if(l===Ba){if(i.type!=="paren"){p({type:"text",value:l});continue}i=s.pop(),p({type:"text",value:l}),i=s[s.length-1];continue}if(l===Ta||l===xa||l===wa){let F=l,A;for(e.keepQuotes!==!0&&(l="");c<o&&(A=C());){if(A===Qt){l+=A+C();continue}if(A===F){e.keepQuotes===!0&&(l+=A);break}l+=A}p({type:"text",value:l});continue}if(l===$a){f++;let F=D.value&&D.value.slice(-1)==="$"||i.dollar===!0;i=p({type:"brace",open:!0,close:!1,dollar:F,depth:f,commas:0,ranges:0,nodes:[]}),s.push(i),p({type:"open",value:l});continue}if(l===Sa){if(i.type!=="brace"){p({type:"text",value:l});continue}let F="close";i=s.pop(),i.close=!0,p({type:F,value:l}),f--,i=s[s.length-1];continue}if(l===Ra&&f>0){if(i.ranges>0){i.ranges=0;let F=i.nodes.shift();i.nodes=[F,{type:"text",value:ya(i)}]}p({type:"comma",value:l}),i.commas++;continue}if(l===ba&&f>0&&i.commas===0){let F=i.nodes;if(f===0||F.length===0){p({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 A=F[F.length-1];A.value+=D.value+l,D=A,i.ranges--;continue}p({type:"dot",value:l});continue}p({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],A=F.nodes.indexOf(i);F.nodes.splice(A,1,...i.nodes)}while(s.length>0);return p({type:"eos"}),n};var Pa=Ha;const nn=zt,La=Fa,Ia=ma,ka=Pa,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={})=>ka(t,e),q.stringify=(t,e={})=>nn(typeof t=="string"?q.parse(t,e):t,e),q.compile=(t,e={})=>(typeof t=="string"&&(t=q.parse(t,e)),La(t,e)),q.expand=(t,e={})=>{typeof t=="string"&&(t=q.parse(t,e));let u=Ia(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 Ma=q,sn={exports:{}},Wa=["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=Wa})(sn);const ja=z.default,Ga=sn.exports,Ua=new Set(Ga);var Ka=t=>Ua.has(ja.extname(t).slice(1).toLowerCase()),et={};(function(t){const{sep:e}=z.default,{platform:u}=process,r=wu.default;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"})(et);const re=oe.default,L=z.default,{promisify:Be}=Ae.default,Va=Ka,{isWindows:za,isLinux:Ya,EMPTY_FN:qa,EMPTY_STR:Xa,KEY_LISTENERS:_e,KEY_ERR:Zt,KEY_RAW:$e,HANDLER_KEYS:Qa,EV_CHANGE:tt,EV_ADD:ut,EV_ADD_DIR:Za,EV_ERROR:Dn,STR_DATA:Ja,STR_END:eo,BRACE_START:to,STAR:uo}=et,ro="watch",no=Be(re.open),an=Be(re.stat),so=Be(re.lstat),io=Be(re.close),Jt=Be(re.realpath),Do={lstat:so,stat:an},eu=(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)},ao=t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},Te=(t,e,u)=>{const r=t[e];r instanceof Set?r.delete(u):r===u&&delete t[e]},on=t=>t instanceof Set?t.size===0:!t,rt=new Map;function ln(t,e,u,r,n){const s=(i,D)=>{u(t),n(i,D,{watchedPath:t}),D&&t!==D&&nt(L.resolve(t,D),_e,L.join(t,D))};try{return re.watch(t,e,s)}catch(i){r(i)}}const nt=(t,e,u,r,n)=>{const s=rt.get(t);!s||eu(s[e],i=>{i(u,r,n)})},oo=(t,e,u,r)=>{const{listener:n,errHandler:s,rawEmitter:i}=r;let D=rt.get(e),a;if(!u.persistent)return a=ln(t,u,n,s,i),a.close.bind(a);if(D)Se(D,_e,n),Se(D,Zt,s),Se(D,$e,i);else{if(a=ln(t,u,nt.bind(null,e,_e),s,nt.bind(null,e,$e)),!a)return;a.on(Dn,async o=>{const c=nt.bind(null,e,Zt);if(D.watcherUnusable=!0,za&&o.code==="EPERM")try{const f=await no(t,"r");await io(f),c(o)}catch{}else c(o)}),D={listeners:n,errHandlers:s,rawEmitters:i,watcher:a},rt.set(e,D)}return()=>{Te(D,_e,n),Te(D,Zt,s),Te(D,$e,i),on(D.listeners)&&(D.watcher.close(),rt.delete(e),Qa.forEach(ao(D)),D.watcher=void 0,Object.freeze(D))}},tu=new Map,lo=(t,e,u,r)=>{const{listener:n,rawEmitter:s}=r;let i=tu.get(e);const D=i&&i.options;return D&&(D.persistent<u.persistent||D.interval>u.interval)&&(re.unwatchFile(e),i=void 0),i?(Se(i,_e,n),Se(i,$e,s)):(i={listeners:n,rawEmitters:s,options:u,watcher:re.watchFile(e,u,(a,o)=>{eu(i.rawEmitters,f=>{f(tt,e,{curr:a,prev:o})});const c=a.mtimeMs;(a.size!==o.size||c>o.mtimeMs||c===0)&&eu(i.listeners,f=>f(t,a))})},tu.set(e,i)),()=>{Te(i,_e,n),Te(i,$e,s),on(i.listeners)&&(tu.delete(e),re.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}};class co{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 D=L.resolve(e),a={persistent:r.persistent};u||(u=qa);let o;return r.usePolling?(a.interval=r.enableBinaryInterval&&Va(s)?r.binaryInterval:r.interval,o=lo(e,D,a,{listener:u,rawEmitter:this.fsw._emitRaw})):o=oo(e,D,a,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),o}_handleFile(e,u,r){if(this.fsw.closed)return;const n=L.dirname(e),s=L.basename(e),i=this.fsw._getWatchedDir(n);let D=u;if(i.has(s))return;const a=async(c,f)=>{if(!!this.fsw._throttle(ro,e,5)){if(!f||f.mtimeMs===0)try{const l=await an(e);if(this.fsw.closed)return;const C=l.atimeMs,p=l.mtimeMs;(!C||C<=p||p!==D.mtimeMs)&&this.fsw._emit(tt,e,l),Ya&&D.ino!==l.ino?(this.fsw._closeFile(c),D=l,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,a))):D=l}catch{this.fsw._remove(n,s)}else if(i.has(s)){const l=f.atimeMs,C=f.mtimeMs;(!l||l<=C||C!==D.mtimeMs)&&this.fsw._emit(tt,e,f),D=f}}},o=this._watchWithNodeFs(e,a);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(ut,e,0))return;this.fsw._emit(ut,e,u)}return o}async _handleSymlink(e,u,r,n){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 Jt(r)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(s)!==D&&(this.fsw._symlinkPaths.set(s,D),this.fsw._emit(tt,r,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(s,D),this.fsw._emit(ut,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,i,D){if(e=L.join(e,Xa),!r.hasGlob&&(D=this.fsw._throttle("readdir",e,1e3),!D))return;const a=this.fsw._getWatchedDir(r.path),o=new Set;let c=this.fsw._readdirp(e,{fileFilter:f=>r.filterPath(f),directoryFilter:f=>r.filterDir(f),depth:0}).on(Ja,async f=>{if(this.fsw.closed){c=void 0;return}const l=f.path;let C=L.join(e,l);if(o.add(l),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,C,l))){if(this.fsw.closed){c=void 0;return}(l===n||!n&&!a.has(l))&&(this.fsw._incrReadyCount(),C=L.join(s,L.relative(s,C)),this._addToNodeFs(C,u,r,i+1))}}).on(Dn,this._boundHandleError);return new Promise(f=>c.once(eo,()=>{if(this.fsw.closed){c=void 0;return}const l=D?D.clear():!1;f(),a.getChildren().filter(C=>C!==e&&!o.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,i,D)}))}async _handleDir(e,u,r,n,s,i,D){const a=this.fsw._getWatchedDir(L.dirname(e)),o=a.has(L.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!s&&!o&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(Za,e,u),a.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(D)){if(!s&&(await this._handleRead(e,r,i,s,e,n,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(C,p)=>{p&&p.mtimeMs===0||this._handleRead(C,!1,i,s,e,n,c)})}return f}async _addToNodeFs(e,u,r,n,s){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const D=this.fsw._getWatchHelpers(e,n);!D.hasGlob&&r&&(D.hasGlob=r.hasGlob,D.globFilter=r.globFilter,D.filterPath=a=>r.filterPath(a),D.filterDir=a=>r.filterDir(a));try{const a=await Do[D.statMethod](D.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(D.watchPath,a))return i(),!1;const o=this.fsw.options.followSymlinks&&!e.includes(uo)&&!e.includes(to);let c;if(a.isDirectory()){const f=L.resolve(e),l=o?await Jt(e):e;if(this.fsw.closed||(c=await this._handleDir(D.watchPath,a,u,n,s,D,l),this.fsw.closed))return;f!==l&&l!==void 0&&this.fsw._symlinkPaths.set(f,l)}else if(a.isSymbolicLink()){const f=o?await Jt(e):e;if(this.fsw.closed)return;const l=L.dirname(D.watchPath);if(this.fsw._getWatchedDir(l).add(D.watchPath),this.fsw._emit(ut,D.watchPath,a),c=await this._handleDir(l,a,u,n,e,D,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(L.resolve(e),f)}else c=this._handleFile(D.watchPath,a,u);return i(),this.fsw._addPathCloser(e,c),!1}catch(a){if(this.fsw._handleError(a))return i(),e}}}var fo=co,uu={exports:{}};const ru=oe.default,I=z.default,{promisify:nu}=Ae.default;let me;try{me=Ie.require("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:su,EV_CHANGE:ho,EV_ADD_DIR:cn,EV_UNLINK:st,EV_ERROR:Eo,STR_DATA:po,STR_END:Co,FSEVENT_CREATED:Fo,FSEVENT_MODIFIED:go,FSEVENT_DELETED:_o,FSEVENT_MOVED:mo,FSEVENT_UNKNOWN:Ao,FSEVENT_TYPE_FILE:yo,FSEVENT_TYPE_DIRECTORY:xe,FSEVENT_TYPE_SYMLINK:fn,ROOT_GLOBSTAR:hn,DIR_SUFFIX:wo,DOT_SLASH:dn,FUNCTION_TYPE:iu,EMPTY_FN:Ro,IDENTITY_FN:bo}=et,vo=t=>isNaN(t)?{}:{depth:t},Du=nu(ru.stat),Bo=nu(ru.lstat),En=nu(ru.realpath),$o={stat:Du,lstat:Bo},he=new Map,So=10,To=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),xo=(t,e)=>({stop:me.watch(t,e)});function Oo(t,e,u,r){let n=I.extname(e)?I.dirname(e):e;const s=I.dirname(n);let i=he.get(n);No(s)&&(n=s);const D=I.resolve(t),a=D!==e,o=(f,l,C)=>{a&&(f=f.replace(e,D)),(f===D||!f.indexOf(D+I.sep))&&u(f,l,C)};let c=!1;for(const f of he.keys())if(e.indexOf(I.resolve(f)+I.sep)===0){n=f,i=he.get(n),c=!0;break}return i||c?i.listeners.add(o):(i={listeners:new Set([o]),rawEmitter:r,watcher:xo(n,(f,l)=>{if(!i.listeners.size)return;const C=me.getInfo(f,l);i.listeners.forEach(p=>{p(f,l,C)}),i.rawEmitter(C.event,f,C)})},he.set(n,i)),()=>{const f=i.listeners;if(f.delete(o),!f.size&&(he.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}const No=t=>{let e=0;for(const u of he.keys())if(u.indexOf(t)===0&&(e++,e>=So))return!0;return!1},Ho=()=>me&&he.size<128,au=(t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=I.dirname(t))!==e;)u++;return u},pn=(t,e)=>t.type===xe&&e.isDirectory()||t.type===fn&&e.isSymbolicLink()||t.type===yo&&e.isFile();class Po{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+hn),!0;r.delete(e),r.delete(e+hn)}addOrChange(e,u,r,n,s,i,D,a){const o=s.has(i)?ho:su;this.handleEvent(o,e,u,r,n,s,i,D,a)}async checkExists(e,u,r,n,s,i,D,a){try{const o=await Du(e);if(this.fsw.closed)return;pn(D,o)?this.addOrChange(e,u,r,n,s,i,D,a):this.handleEvent(st,e,u,r,n,s,i,D,a)}catch(o){o.code==="EACCES"?this.addOrChange(e,u,r,n,s,i,D,a):this.handleEvent(st,e,u,r,n,s,i,D,a)}}handleEvent(e,u,r,n,s,i,D,a,o){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===st){const c=a.type===xe;(c||i.has(D))&&this.fsw._remove(s,D,c)}else{if(e===su){if(a.type===xe&&this.fsw._getWatchedDir(u),a.type===fn&&o.followSymlinks){const f=o.depth===void 0?void 0:au(r,n)+1;return this._addToFsEvents(u,!1,!0,f)}this.fsw._getWatchedDir(s).add(D)}const c=a.type===xe?e+wo:e;this.fsw._emit(c,u),c===cn&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,r,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const s=this.fsw.options,D=Oo(e,u,async(a,o,c)=>{if(this.fsw.closed||s.depth!==void 0&&au(a,u)>s.depth)return;const f=r(I.join(e,I.relative(e,a)));if(n&&!n(f))return;const l=I.dirname(f),C=I.basename(f),p=this.fsw._getWatchedDir(c.type===xe?f:l);if(To.has(o)||c.event===Ao)if(typeof s.ignored===iu){let F;try{F=await Du(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,F))return;pn(c,F)?this.addOrChange(f,a,u,l,p,C,c,s):this.handleEvent(st,f,a,u,l,p,C,c,s)}else this.checkExists(f,a,u,l,p,C,c,s);else switch(c.event){case Fo:case go:return this.addOrChange(f,a,u,l,p,C,c,s);case _o:case mo:return this.checkExists(f,a,u,l,p,C,c,s)}},this.fsw._emitRaw);return this.fsw._emitReady(),D}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 En(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!==dn?D=i.replace(s,e):i!==dn&&(D=I.join(e,i)),r(D)},!1,n)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,u,r,n,s){const i=r(e),D=u.isDirectory(),a=this.fsw._getWatchedDir(I.dirname(i)),o=I.basename(i);D&&this.fsw._getWatchedDir(i),!a.has(o)&&(a.add(o),(!n.ignoreInitial||s===!0)&&this.fsw._emit(D?cn:su,i,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,i=typeof u===iu?u:bo,D=this.fsw._getWatchHelpers(e);try{const a=await $o[D.statMethod](D.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(D.watchPath,a))throw null;if(a.isDirectory()){if(D.globFilter||this.emitAdd(i(e),a,i,s,r),n&&n>s.depth)return;this.fsw._readdirp(D.watchPath,M({fileFilter:o=>D.filterPath(o),directoryFilter:o=>D.filterDir(o)},vo(s.depth-(n||0)))).on(po,o=>{if(this.fsw.closed||o.stats.isDirectory()&&!D.filterPath(o))return;const c=I.join(D.watchPath,o.path),{fullPath:f}=o;if(D.followSymlinks&&o.stats.isSymbolicLink()){const l=s.depth===void 0?void 0:au(c,I.resolve(D.watchPath))+1;this._handleFsEventsSymlink(c,f,i,l)}else this.emitAdd(c,o.stats,i,s,r)}).on(Eo,Ro).on(Co,()=>{this.fsw._emitReady()})}else this.emitAdd(D.watchPath,a,i,s,r),this.fsw._emitReady()}catch(a){(!a||this.fsw._handleError(a))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&r!==!0)if(typeof u===iu)this.initWatch(void 0,e,D,i);else{let a;try{a=await En(D.watchPath)}catch{}this.initWatch(a,e,D,i)}}}uu.exports=Po,uu.exports.canUse=Ho;const{EventEmitter:Lo}=Kn.default,ou=oe.default,v=z.default,{promisify:Cn}=Ae.default,Io=PD,lu=Ut.exports.default,ko=ZD,cu=Pr,Mo=Ma,Wo=Tr,jo=fo,Fn=uu.exports,{EV_ALL:fu,EV_READY:Go,EV_ADD:it,EV_CHANGE:Oe,EV_UNLINK:gn,EV_ADD_DIR:Uo,EV_UNLINK_DIR:Ko,EV_RAW:Vo,EV_ERROR:hu,STR_CLOSE:zo,STR_END:Yo,BACK_SLASH_RE:qo,DOUBLE_SLASH_RE:_n,SLASH_OR_BACK_SLASH_RE:Xo,DOT_RE:Qo,REPLACER_RE:Zo,SLASH:du,SLASH_SLASH:Jo,BRACE_START:el,BANG:Eu,ONE_DOT:mn,TWO_DOTS:tl,GLOBSTAR:ul,SLASH_GLOBSTAR:pu,ANYMATCH_OPTS:Cu,STRING_TYPE:Fu,FUNCTION_TYPE:rl,EMPTY_STR:gu,EMPTY_FN:nl,isWindows:sl,isMacos:il,isIBMi:Dl}=et,al=Cn(ou.stat),ol=Cn(ou.readdir),_u=(t=[])=>Array.isArray(t)?t:[t],An=(t,e=[])=>(t.forEach(u=>{Array.isArray(u)?An(u,e):e.push(u)}),e),yn=t=>{const e=An(_u(t));if(!e.every(u=>typeof u===Fu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(Rn)},wn=t=>{let e=t.replace(qo,du),u=!1;for(e.startsWith(Jo)&&(u=!0);e.match(_n);)e=e.replace(_n,du);return u&&(e=du+e),e},Rn=t=>wn(v.normalize(wn(t))),bn=(t=gu)=>e=>typeof e!==Fu?e:Rn(v.isAbsolute(e)?e:v.join(t,e)),ll=(t,e)=>v.isAbsolute(t)?t:t.startsWith(Eu)?Eu+v.join(e,t.slice(1)):v.join(e,t),X=(t,e)=>t[e]===void 0;class cl{constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;!u||e!==mn&&e!==tl&&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 ol(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 fl="stat",hl="lstat";class dl{constructor(e,u,r,n){this.fsw=n,this.path=e=e.replace(Zo,gu),this.watchPath=u,this.fullWatchPath=v.resolve(u),this.hasGlob=u!==e,e===gu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&r?void 0:!1,this.globFilter=this.hasGlob?lu(e,void 0,Cu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=r,this.statMethod=r?fl:hl}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===rl?this.globFilter(r):!0)&&this.fsw._isntIgnored(r,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(el)?Mo.expand(e):[e]).forEach(n=>{u.push(v.relative(this.watchPath,n).split(Xo))}),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,i)=>(s===ul&&(r=!0),r||!u[0][i]||lu(s,u[0][i],Cu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class El extends Lo{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),Fn.canUse()||(u.useFsEvents=!1),X(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=il),Dl&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const a=n.toLowerCase();a==="false"||a==="0"?u.usePolling=!1:a==="true"||a==="1"?u.usePolling=!0:u.usePolling=!!a}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=_u(u.ignored));let D=0;this._emitReady=()=>{D++,D>=this._readyCount&&(this._emitReady=nl,this._readyEmitted=!0,process.nextTick(()=>this.emit(Go)))},this._emitRaw=(...a)=>this.emit(Vo,...a),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new Fn(this):this._nodeFsHandler=new jo(this),Object.freeze(u)}add(e,u,r){const{cwd:n,disableGlobbing:s}=this.options;this.closed=!1;let i=yn(e);return n&&(i=i.map(D=>{const a=ll(D,n);return s||!cu(D)?a:Wo(a)})),i=i.filter(D=>D.startsWith(Eu)?(this._ignoredPaths.add(D.slice(1)),!1):(this._ignoredPaths.delete(D),this._ignoredPaths.delete(D+pu),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 a=await this._nodeFsHandler._addToNodeFs(D,!r,0,0,u);return a&&this._emitReady(),a})).then(D=>{this.closed||D.filter(a=>a).forEach(a=>{this.add(v.dirname(a),v.basename(u||a))})})),this}unwatch(e){if(this.closed)return this;const u=yn(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+pu),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||mn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==hu&&this.emit(fu,...u)}async _emit(e,u,r,n,s){if(this.closed)return;const i=this.options;sl&&(u=v.normalize(u)),i.cwd&&(u=v.relative(i.cwd,u));const D=[e,u];s!==void 0?D.push(r,n,s):n!==void 0?D.push(r,n):r!==void 0&&D.push(r);const a=i.awaitWriteFinish;let o;if(a&&(o=this._pendingWrites.get(u)))return o.lastChange=new Date,this;if(i.atomic){if(e===gn)return this._pendingUnlinks.set(u,D),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(fu,...c),this._pendingUnlinks.delete(f)})},typeof i.atomic=="number"?i.atomic:100),this;e===it&&this._pendingUnlinks.has(u)&&(e=D[0]=Oe,this._pendingUnlinks.delete(u))}if(a&&(e===it||e===Oe)&&this._readyEmitted){const c=(f,l)=>{f?(e=D[0]=hu,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,a.stabilityThreshold,e,c),this}if(e===Oe&&!this._throttle(Oe,u,50))return this;if(i.alwaysStat&&r===void 0&&(e===it||e===Uo||e===Oe)){const c=i.cwd?v.join(i.cwd,u):u;let f;try{f=await al(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(hu,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 i;const D=()=>{const o=n.get(u),c=o?o.count:0;return n.delete(u),clearTimeout(i),o&&clearTimeout(o.timeoutObject),c};i=setTimeout(D,r);const a={timeoutObject:i,clear:D,count:0};return n.set(u,a),a}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,r,n){let s,i=e;this.options.cwd&&!v.isAbsolute(e)&&(i=v.join(this.options.cwd,e));const D=new Date,a=o=>{ou.stat(i,(c,f)=>{if(c||!this._pendingWrites.has(e)){c&&c.code!=="ENOENT"&&n(c);return}const l=Number(new Date);o&&f.size!==o.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(a,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:D,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(s),r)}),s=setTimeout(a,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Qo.test(e))return!0;if(!this._userIgnored){const{cwd:r}=this.options,n=this.options.ignored,s=n&&n.map(bn(r)),i=_u(s).filter(a=>typeof a===Fu&&!cu(a)).map(a=>a+pu),D=this._getGlobIgnored().map(bn(r)).concat(s,i);this._userIgnored=lu(D,void 0,Cu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const r=u||this.options.disableGlobbing||!cu(e)?e:ko(e),n=this.options.followSymlinks;return new dl(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 cl(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 a=this._getWatchedDir(e),o=a.has(u);a.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()===it)return;this._watched.delete(n),this._watched.delete(s);const f=r?Ko:gn;o&&!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:fu,alwaysStat:!0,lstat:!0},u);let n=Io(e,r);return this._streams.add(n),n.once(zo,()=>{n=void 0}),n.once(Yo,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}const pl=(t,e)=>{const u=new El(e);return u.add(t),u};var Cl=pl;const Fl="\x1Bc";function gl(t){return t&&"type"in t&&t.type==="dependency"}const _l=fi({name:"watch",parameters:["<script path>"],flags:{noCache:{type:Boolean,description:"Disable caching"}},help:{description:"Run the script and watch for changes"}},t=>{const e={noCache:Boolean(t.flags.noCache),ipc:!0};let u;function r(){u&&!u.killed&&u.exitCode===null&&u.kill(),process.stdout.write(Fl),u=hr(t._,e),u.on("message",i=>{if(gl(i)){const D=i.path.startsWith("file:")?yu.fileURLToPath(i.path):i.path;D.startsWith("/")&&s.add(D)}})}r();function n(i){u&&u.kill(),process.exit(i)}process.once("SIGINT",()=>n(130)),process.once("SIGTERM",()=>n(143));const s=Cl(t._,{ignoreInitial:!0,ignored:["**/.*/**","**/{node_modules,bower_components,vendor}/**","**/dist/**"],ignorePermissionErrors:!0}).on("all",r);process.stdin.on("data",r)});ci({name:"tsx",parameters:["[script path]"],commands:[_l],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(Hn.version);return}if(t.flags.help){t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"});return}process.argv.push(Ie.require.resolve("./repl"))}const e=process.argv.slice(2).filter(u=>u!=="--no-cache"&&u!=="--noCache");hr(e,{noCache:Boolean(t.flags.noCache)}).on("close",u=>process.exit(u))});
package/dist/cli.js CHANGED
@@ -1,53 +1,53 @@
1
1
  #!/usr/bin/env node
2
- var Br=Object.defineProperty,Sr=Object.defineProperties;var $r=Object.getOwnPropertyDescriptors;var mu=Object.getOwnPropertySymbols;var Tr=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable;var _u=(t,e,u)=>e in t?Br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,M=(t,e)=>{for(var u in e||(e={}))Tr.call(e,u)&&_u(t,u,e[u]);if(mu)for(var u of mu(e))xr.call(e,u)&&_u(t,u,e[u]);return t},De=(t,e)=>Sr(t,$r(e));import{r as Dt}from"./pkgroll_create-require-97f6f9e8.js";import Or from"tty";import{v as Nr}from"./package-fb1d7b77.js";import{pathToFileURL as Pr,fileURLToPath as Hr}from"url";import Lr from"child_process";import z from"path";import oe from"fs";import Ir,{Transform as kr}from"stream";import Mr from"events";import _e from"util";import Au from"os";import"module";var yu=/-(\w)/g,wu=t=>t.replace(yu,(e,u)=>u.toUpperCase()),Ru=/\B([A-Z])/g,Wr=t=>t.replace(Ru,"-$1").toLowerCase(),{stringify:Ae}=JSON,{hasOwnProperty:Gr}=Object.prototype,Le=(t,e)=>Gr.call(t,e),jr=/^--?/,Ur=/[.:=]/,Kr=t=>{let e=t.replace(jr,""),u,n=e.match(Ur);if(n!=null&&n.index){let r=n.index;u=e.slice(r+1),e=e.slice(0,r)}return{flagName:e,flagValue:u}},Vr=/[\s.:=]/,zr=(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 n=e.match(Vr);if(n)throw new Error(`${u} flag name cannot contain the character ${Ae(n==null?void 0:n[0])}`);let r;if(yu.test(e)?r=wu(e):Ru.test(e)&&(r=Wr(e)),r&&Le(t,r))throw new Error(`${u} collides with flag ${Ae(r)}`)};function Yr(t){let e=new Map;for(let u in t){if(!Le(t,u))continue;zr(t,u);let n=t[u];if(n&&typeof n=="object"){let{alias:r}=n;if(typeof r=="string"){if(r.length===0)throw new Error(`Invalid flag alias ${Ae(u)}: flag alias cannot be empty`);if(r.length>1)throw new Error(`Invalid flag alias ${Ae(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}var qr=t=>!t||typeof t=="function"?!1:Array.isArray(t)||Array.isArray(t.type),Xr=t=>{let e={};for(let u in t)Le(t,u)&&(e[u]=qr(t[u])?[]:void 0);return e},ot=(t,e)=>t===Number&&e===""?Number.NaN:t===Boolean?e!=="false":e,Qr=(t,e)=>{for(let u in t){if(!Le(t,u))continue;let n=t[u];if(!n)continue;let 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}}},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)},Zr=/^-[\da-z]+/i,Jr=/^--[\w-]{2,}/,at="--";function es(t,e=process.argv.slice(2)){let u=Yr(t),n={flags:Xr(t),unknownFlags:{},_:Object.assign([],{[at]:[]})},r,s=(D,o,a)=>{let c=bu(D,o);a=ot(c,a),a!==void 0&&!Number.isNaN(a)?Array.isArray(n.flags[D])?n.flags[D].push(c(a)):n.flags[D]=c(a):r=f=>{Array.isArray(n.flags[D])?n.flags[D].push(c(ot(c,f||""))):n.flags[D]=c(ot(c,f||"")),r=void 0}},i=(D,o)=>{D in n.unknownFlags||(n.unknownFlags[D]=[]),o!==void 0?n.unknownFlags[D].push(o):r=(a=!0)=>{n.unknownFlags[D].push(a),r=void 0}};for(let D=0;D<e.length;D+=1){let o=e[D];if(o===at){let c=e.slice(D+1);n._[at]=c,n._.push(...c);break}let a=Zr.test(o);if(Jr.test(o)||a){r&&r();let c=Kr(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):i(F,B?f:!0)}continue}let C=t[l];if(!C){let p=wu(l);C=t[p],C&&(l=p)}if(!C){i(l,f);continue}s(l,C,f)}else r?r(o):n._.push(o)}return r&&r(),Qr(t,n.flags),n}var ts=Object.create,Ie=Object.defineProperty,us=Object.defineProperties,ns=Object.getOwnPropertyDescriptor,rs=Object.getOwnPropertyDescriptors,ss=Object.getOwnPropertyNames,vu=Object.getOwnPropertySymbols,is=Object.getPrototypeOf,Bu=Object.prototype.hasOwnProperty,Ds=Object.prototype.propertyIsEnumerable,Su=(t,e,u)=>e in t?Ie(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,ke=(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))Ds.call(e,u)&&Su(t,u,e[u]);return t},lt=(t,e)=>us(t,rs(e)),os=t=>Ie(t,"__esModule",{value:!0}),as=(t,e)=>()=>(t&&(e=t(t=0)),e),ls=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),cs=(t,e,u,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ss(e))!Bu.call(t,r)&&(u||r!=="default")&&Ie(t,r,{get:()=>e[r],enumerable:!(n=ns(e,r))||n.enumerable});return t},fs=(t,e)=>cs(os(Ie(t!=null?ts(is(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),K=as(()=>{}),hs=ls((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 ds=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 Es({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(Es(),"")}K();function ps(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 Cs=fs(hs(),1);function ae(t){if(typeof t!="string"||t.length===0||(t=$u(t),t.length===0))return 0;t=t.replace((0,Cs.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+=ps(n)?2:1)}return e}var Tu=t=>Math.max(...t.split(`
3
- `).map(ae)),Fs=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=Tu(u[s]);i>e[s]&&(e[s]=i)}}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:""},gs=(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"&&xu.test(s)){n.push(lt(ke({},Ou),{width:s,contentWidth:t[r]}));continue}if(s&&typeof s=="object"){let i=lt(ke(ke({},Ou),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 ms(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"&&xu.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 Nu=()=>Object.assign([],{columns:0});function _s(t,e){let u=[Nu()],[n]=u;for(let r of t){let s=r.width+r.horizontalPadding;n.columns+s>e&&(n=Nu(),u.push(n)),n.push(r),n.columns+=s}for(let r of u){let s=r.reduce((l,C)=>l+C.width+C.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,C)=>l+C.autoOverflow,0),c=Math.min(a,i);for(let l of o){let C=Math.floor(l.autoOverflow/a*c);l.width+=C,i-=C}let f=Math.floor(i/D.length);for(let l=0;l<D.length;l+=1){let C=D[l];l===D.length-1?C.width+=i:C.width+=f,i-=f}}return u}function As(t,e,u){let n=gs(u,e);return ms(n,t),_s(n,t)}K(),K(),K();var ct=10,Pu=(t=0)=>e=>`\x1B[${e+t}m`,Hu=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,Lu=(t=0)=>(e,u,n)=>`\x1B[${38+t};2;${e};${u};${n}m`;function ys(){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=Pu(),e.color.ansi256=Hu(),e.color.ansi16m=Lu(),e.bgColor.ansi=Pu(ct),e.bgColor.ansi256=Hu(ct),e.bgColor.ansi16m=Lu(ct),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 ws=ys(),Rs=ws,Me=new Set(["\x1B","\x9B"]),bs=39,ft="\x07",Iu="[",vs="]",ku="m",ht=`${vs}8;;`,Mu=t=>`${Me.values().next().value}${Iu}${t}${ku}`,Wu=t=>`${Me.values().next().value}${ht}${t}${ft}`,Bs=t=>t.split(" ").map(e=>ae(e)),dt=(t,e,u)=>{let n=[...e],r=!1,s=!1,i=ae($u(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),Me.has(o)&&(r=!0,s=n.slice(D+1).join("").startsWith(ht)),r){s?o===ft&&(r=!1,s=!1):o===ku&&(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())},Ss=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("")},$s=(t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let n="",r,s,i=Bs(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,C=1+Math.floor((i[a]-l-1)/e);Math.floor((i[a]-1)/e)<C&&D.push(""),dt(D,c,e);continue}if(f+i[a]>e&&f>0&&i[a]>0){if(u.wordWrap===!1&&f<e){dt(D,c,e);continue}D.push("")}if(f+i[a]>e&&u.wordWrap===!1){dt(D,c,e);continue}D[D.length-1]+=c}u.trim!==!1&&(D=D.map(a=>Ss(a)));let o=[...D.join(`
4
- `)];for(let[a,c]of o.entries()){if(n+=c,Me.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);r=C===bs?void 0:C}else l.uri!==void 0&&(s=l.uri.length===0?void 0:l.uri)}let f=Rs.codes.get(Number(r));o[a+1]===`
5
- `?(s&&(n+=Wu("")),r&&f&&(n+=Mu(f))):c===`
6
- `&&(r&&f&&(n+=Mu(r)),s&&(n+=Wu(s)))}return n};function Ts(t,e,u){return String(t).normalize().replace(/\r\n/g,`
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-91c05cc3.js";import xn from"tty";import{v as On}from"./package-f202b71b.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=(D,o,a)=>{let c=bu(D,o);a=ot(c,a),a!==void 0&&!Number.isNaN(a)?Array.isArray(r.flags[D])?r.flags[D].push(c(a)):r.flags[D]=c(a):n=f=>{Array.isArray(r.flags[D])?r.flags[D].push(c(ot(c,f||""))):r.flags[D]=c(ot(c,f||"")),n=void 0}},i=(D,o)=>{D in r.unknownFlags||(r.unknownFlags[D]=[]),o!==void 0?r.unknownFlags[D].push(o):n=(a=!0)=>{r.unknownFlags[D].push(a),n=void 0}};for(let D=0;D<e.length;D+=1){let o=e[D];if(o===at){let c=e.slice(D+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):i(F,B?f:!0)}continue}let C=t[l];if(!C){let p=wu(l);C=t[p],C&&(l=p)}if(!C){i(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 i=Tu(u[s]);i>e[s]&&(e[s]=i)}}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 i=lt(Me(Me({},Ou),s),{contentWidth:t[n]});i.horizontalPadding=i.paddingLeft+i.paddingRight,r.push(i);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,i=s+n;if(i>=e){let o=i-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 D=e-u.horizontalPadding;u.width=Math.max(Math.min(u.width,D),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),i=e-s;if(i===0)continue;let D=n.filter(l=>"autoOverflow"in l),o=D.filter(l=>l.autoOverflow>0),a=o.reduce((l,C)=>l+C.autoOverflow,0),c=Math.min(a,i);for(let l of o){let C=Math.floor(l.autoOverflow/a*c);l.width+=C,i-=C}let f=Math.floor(i/D.length);for(let l=0;l<D.length;l+=1){let C=D[l];l===D.length-1?C.width+=i:C.width+=f,i-=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(i=>i+i).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 i=Math.max(r,n,s)*2;if(i===0)return 30;let D=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(D+=60),D},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,i=ae($u(t[t.length-1]));for(let[D,o]of r.entries()){let a=ae(o);if(i+a<=u?t[t.length-1]+=o:(t.push(o),i=0),We.has(o)&&(n=!0,s=r.slice(D+1).join("").startsWith(ht)),n){s?o===ft&&(n=!1,s=!1):o===ku&&(n=!1);continue}i+=a,i===u&&D<r.length-1&&(t.push(""),i=0)}!i&&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,i=bs(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,C=1+Math.floor((i[a]-l-1)/e);Math.floor((i[a]-1)/e)<C&&D.push(""),dt(D,c,e);continue}if(f+i[a]>e&&f>0&&i[a]>0){if(u.wordWrap===!1&&f<e){dt(D,c,e);continue}D.push("")}if(f+i[a]>e&&u.wordWrap===!1){dt(D,c,e);continue}D[D.length-1]+=c}u.trim!==!1&&(D=D.map(a=>vs(a)));let o=[...D.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,`
7
7
  `).split(`
8
- `).map(n=>$s(n,e,u)).join(`
9
- `)}var Gu=t=>Array.from({length:t}).fill("");function xs(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)),Tu(c)>o.width&&(c=Ts(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(ke({},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:"",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("");D.push(a)}u.push(D.join(`
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,i=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})}),D=[];for(let o=0;o<s;o+=1){let a=i.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("");D.push(a)}u.push(D.join(`
11
11
  `))}return u.join(`
12
- `)}function Os(t,e){if(!t||t.length===0)return"";let u=Fs(t),n=u.length;if(n===0)return"";let{stdoutColumns:r,columns:s}=ds(e);if(s.length>n)throw new Error(`${s.length} columns defined, but only ${n} columns found`);let i=As(r,s,u);return t.map(D=>xs(i,D)).join(`
13
- `)}K();var Ns=["<",">","=",">=","<="];function Ps(t){if(!Ns.includes(t))throw new TypeError(`Invalid breakpoint operator: ${t}`)}function Hs(t){let e=Object.keys(t).map(u=>{let[n,r]=u.split(" ");Ps(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 Ls=t=>t.replace(/[-_ ](\w)/g,(e,u)=>u.toUpperCase()),Is=t=>t.replace(/\B([A-Z])/g,"-$1").toLowerCase(),ks={"> 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 Ms(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:`--${Is(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:ks}}}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 Ws(t){var e;const u=[];t.name&&u.push(Uu(t));const n=(e=ju(t))!=null?e:"parent"in t&&ju(t.parent);if(n&&u.push(`v${n}`),u.length!==0)return{id:"name",type:"text",data:`${u.join(" ")}
14
- `}}function Gs(t){const{help:e}=t;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
15
- `}}function js(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=[Uu(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 Us(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 Ks(t){if(!(!t.flags||Object.keys(t.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Ms(t.flags),indentBody:0}}}function Vs(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 zs(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 Ys=t=>[Ws,Gs,js,Us,Ks,Vs,zs].map(e=>e(t)).filter(e=>Boolean(e)),qs=Or.WriteStream.prototype.hasColors();class Xs{text(e){return e}bold(e){return qs?`\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 Os(e.map(r=>r.map(s=>this.render(s))),n?Hs(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 Et=/^[\w.-]+$/;var Qs=Object.defineProperty,Zs=Object.defineProperties,Js=Object.getOwnPropertyDescriptors,Ku=Object.getOwnPropertySymbols,ei=Object.prototype.hasOwnProperty,ti=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={}))ei.call(e,u)&&Vu(t,u,e[u]);if(Ku)for(var u of Ku(e))ti.call(e,u)&&Vu(t,u,e[u]);return t},pt=(t,e)=>Zs(t,Js(e));const{stringify:ee}=JSON,ui=/[|\\{}()[\]^$+*?.]/;function Ct(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(ui);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 Ft(t,e,u,n){for(let r=0;r<e.length;r+=1){const{name:s,required:i,spread:D}=e[r],o=Ls(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 ni(t){return t===void 0||t!==!1}function zu(t,e,u,n){const r=he({},e.flags),s=e.version;s&&(r.version={type:Boolean,description:"Show version"});const{help:i}=e,D=ni(i);D&&!("help"in r)&&(r.help={type:Boolean,alias:"h",description:"Show help"});const o=es(r,n),a=()=>{console.log(e.version)};if(s&&o.flags.version===!0)return a(),process.exit(0);const c=new Xs,f=D&&(i==null?void 0:i.render)?i.render:p=>c.render(p),l=p=>{const F=Ys(pt(he(he({},e),p?{help:p}:{}),{flags:r}));console.log(f(F,c))};if(D&&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),P=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(P,Ct(p),F,l),Ft(P,Ct(B),S,l)}else Ft(P,Ct(p),F,l);Object.assign(o._,P)}const C=pt(he({},o),{showVersion:a,showHelp:l});return typeof u=="function"&&u(C),he({command:t},C)}function ri(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 si(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 n=u[0];if(t.commands&&Et.test(n)){const r=ri(n,t.commands);if(r)return zu(r.options.name,pt(he({},r.options),{parent:t}),r.callback,u.slice(1))}return zu(void 0,t,e,u)}function ii(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 Di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},de={exports:{}},gt,Yu;function oi(){if(Yu)return gt;Yu=1,gt=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 gt}var mt,qu;function ai(){if(qu)return mt;qu=1,mt=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),C=parseInt("010",8),p=parseInt("001",8),F=l|C,A=D&p||D&C&&a===f||D&l&&o===c||D&F&&c===0;return A}return mt}var We;process.platform==="win32"||Di.TESTING_WINDOWS?We=oi():We=ai();var li=_t;_t.sync=ci;function _t(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){_t(t,e||{},function(s,i){s?r(s):n(i)})})}We(t,e||{},function(n,r){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,r=!1),u(n,r)})}function ci(t,e){try{return We.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,fi=Ee?";":":",Qu=li,Zu=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Ju=(t,e)=>{const u=e.colon||fi,n=t.match(/\//)||Ee&&t.match(/\\/)?[""]:[...Ee?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],r=Ee?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ee?r.split(u):[""];return Ee&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:r}},en=(t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:n,pathExt:r,pathExtExe:s}=Ju(t,e),i=[],D=a=>new Promise((c,f)=>{if(a===n.length)return e.all&&i.length?c(i):f(Zu(t));const l=n[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===r.length)return l(D(c+1));const p=r[f];Qu(a+p,{pathExt:s},(F,A)=>{if(!F&&A)if(e.all)i.push(a+p);else return l(a+p);return l(o(a,c,f+1))})});return u?D(0).then(a=>u(null,a),u):D(0)},hi=(t,e)=>{e=e||{};const{pathEnv:u,pathExt:n,pathExtExe:r}=Ju(t,e),s=[];for(let i=0;i<u.length;i++){const D=u[i],o=/^".*"$/.test(D)?D.slice(1,-1):D,a=Xu.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(Qu.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 Zu(t)};var di=en;en.sync=hi;var At={exports:{}};const tn=(t={})=>{const e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};At.exports=tn,At.exports.default=tn;const un=z,Ei=di,pi=At.exports;function nn(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=Ei.sync(t.command,{path:u[pi({env:u})],pathExt:e?un.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return i&&(i=un.resolve(r?t.options.cwd:"",i)),i}function Ci(t){return nn(t)||nn(t,!0)}var Fi=Ci,yt={};const wt=/([()\][%!^"`<>&|;, *?])/g;function gi(t){return t=t.replace(wt,"^$1"),t}function mi(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=gi,yt.argument=mi;var _i=/^#!(.*)/;const Ai=_i;var yi=(t="")=>{const e=t.match(Ai);if(!e)return null;const[u,n]=e[0].replace(/#! ?/,"").split(" "),r=u.split("/").pop();return r==="env"?n:n?`${r} ${n}`:r};const Rt=oe,wi=yi;function Ri(t){const u=Buffer.alloc(150);let n;try{n=Rt.openSync(t,"r"),Rt.readSync(n,u,0,150,0),Rt.closeSync(n)}catch{}return wi(u.toString())}var bi=Ri;const vi=z,rn=Fi,sn=yt,Bi=bi,Si=process.platform==="win32",$i=/\.(?:com|exe)$/i,Ti=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function xi(t){t.file=rn(t);const e=t.file&&Bi(t.file);return e?(t.args.unshift(t.file),t.command=e,rn(t)):t.file}function Oi(t){if(!Si)return t;const e=xi(t),u=!$i.test(e);if(t.options.forceShell||u){const n=Ti.test(e);t.command=vi.normalize(t.command),t.command=sn.command(t.command),t.args=t.args.map(s=>sn.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 Ni(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:Oi(n)}var Pi=Ni;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 Hi(t,e){if(!bt)return;const u=t.emit;t.emit=function(n,r){if(n==="exit"){const s=Dn(r,e);if(s)return u.call(t,"error",s)}return u.apply(t,arguments)}}function Dn(t,e){return bt&&t===1&&!e.file?vt(e.original,"spawn"):null}function Li(t,e){return bt&&t===1&&!e.file?vt(e.original,"spawnSync"):null}var Ii={hookChildProcess:Hi,verifyENOENT:Dn,verifyENOENTSync:Li,notFoundError:vt};const on=Lr,Bt=Pi,St=Ii;function an(t,e,u){const n=Bt(t,e,u),r=on.spawn(n.command,n.args,n.options);return St.hookChildProcess(r,n),r}function ki(t,e,u){const n=Bt(t,e,u),r=on.spawnSync(n.command,n.args,n.options);return r.error=r.error||St.verifyENOENTSync(r.status,n),r}de.exports=an,de.exports.spawn=an,de.exports.sync=ki,de.exports._parse=Bt,de.exports._enoent=St;const Mi="(Use `node --trace-warnings ...` to show where the warning was created)",ln=/^\(node:\d+\) (.+)\n/m,Wi=()=>{const t=["ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time","ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time","ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time"];let e=!0,u=0;return new kr({transform(n,r,s){if(!e)return s(null,n);u+=1,u>10&&(e=!1);const i=n.toString(),D=i.match(ln);if(!D)return s(null,n);const[,o]=D,a=t.indexOf(o);if(a===-1)return s(null,n);t.splice(a,1),t.length===0&&(e=!1);const c=i.replace(ln,"").replace(Mi,"").trim();s(null,c)}})};var Gi=Object.defineProperty,cn=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,fn=(t,e,u)=>e in t?Gi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,Ki=(t,e)=>{for(var u in e||(e={}))ji.call(e,u)&&fn(t,u,e[u]);if(cn)for(var u of cn(e))Ui.call(e,u)&&fn(t,u,e[u]);return t};function hn(t,e){const u=Ki({},process.env);e!=null&&e.noCache&&(u.ESBK_DISABLE_CACHE="1");const n=["inherit","inherit","pipe"];e!=null&&e.ipc&&n.push("ipc");const r=de.exports(process.execPath,["--loader",Pr(Dt.resolve("./loader.js")).toString(),...t],{stdio:n,env:u});return r.stderr.pipe(Wi()).pipe(process.stderr),r}var $t={exports:{}},Ge={};const Vi=z,te="\\\\/",dn=`[^${te}]`,ue="\\.",zi="\\+",Yi="\\?",je="\\/",qi="(?=.)",En="[^/]",Tt=`(?:${je}|$)`,pn=`(?:^|${je})`,xt=`${ue}{1,2}${Tt}`,Xi=`(?!${ue})`,Qi=`(?!${pn}${xt})`,Zi=`(?!${ue}{0,1}${Tt})`,Ji=`(?!${xt})`,eD=`[^.${je}]`,tD=`${En}*?`,Cn={DOT_LITERAL:ue,PLUS_LITERAL:zi,QMARK_LITERAL:Yi,SLASH_LITERAL:je,ONE_CHAR:qi,QMARK:En,END_ANCHOR:Tt,DOTS_SLASH:xt,NO_DOT:Xi,NO_DOTS:Qi,NO_DOT_SLASH:Zi,NO_DOTS_SLASH:Ji,QMARK_NO_DOT:eD,STAR:tD,START_ANCHOR:pn},uD=De(M({},Cn),{SLASH_LITERAL:`[${te}]`,QMARK:dn,STAR:`${dn}*?`,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}]|$)`}),nD={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 Ue={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:nD,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:Vi.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?uD:Cn}};(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}=Ue;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}})(Ge);const Fn=Ge,{CHAR_ASTERISK:Ot,CHAR_AT:rD,CHAR_BACKWARD_SLASH:ye,CHAR_COMMA:sD,CHAR_DOT:Nt,CHAR_EXCLAMATION_MARK:Pt,CHAR_FORWARD_SLASH:gn,CHAR_LEFT_CURLY_BRACE:Ht,CHAR_LEFT_PARENTHESES:Lt,CHAR_LEFT_SQUARE_BRACKET:iD,CHAR_PLUS:DD,CHAR_QUESTION_MARK:mn,CHAR_RIGHT_CURLY_BRACE:oD,CHAR_RIGHT_PARENTHESES:_n,CHAR_RIGHT_SQUARE_BRACKET:aD}=Ue,An=t=>t===gn||t===ye,yn=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},lD=(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,C=!1,p=!1,F=!1,A=!1,B=!1,P=!1,S=!1,Q=!1,W=!1,re=0,G,_,b={value:"",depth:0,isGlob:!1};const k=()=>a>=n,E=()=>o.charCodeAt(a+1),x=()=>(G=_,o.charCodeAt(++a));for(;a<n;){_=x();let j;if(_===ye){P=b.backslashes=!0,_=x(),_===Ht&&(B=!0);continue}if(B===!0||_===Ht){for(re++;k()!==!0&&(_=x());){if(_===ye){P=b.backslashes=!0,x();continue}if(_===Ht){re++;continue}if(B!==!0&&_===Nt&&(_=x())===Nt){if(l=b.isBrace=!0,p=b.isGlob=!0,W=!0,r===!0)continue;break}if(B!==!0&&_===sD){if(l=b.isBrace=!0,p=b.isGlob=!0,W=!0,r===!0)continue;break}if(_===oD&&(re--,re===0)){B=!1,l=b.isBrace=!0,W=!0;break}}if(r===!0)continue;break}if(_===gn){if(s.push(a),i.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&&(_===DD||_===rD||_===Ot||_===mn||_===Pt)===!0&&E()===Lt){if(p=b.isGlob=!0,F=b.isExtglob=!0,W=!0,_===Pt&&a===c&&(Q=!0),r===!0){for(;k()!==!0&&(_=x());){if(_===ye){P=b.backslashes=!0,_=x();continue}if(_===_n){p=b.isGlob=!0,W=!0;break}}continue}break}if(_===Ot){if(G===Ot&&(A=b.isGlobstar=!0),p=b.isGlob=!0,W=!0,r===!0)continue;break}if(_===mn){if(p=b.isGlob=!0,W=!0,r===!0)continue;break}if(_===iD){for(;k()!==!0&&(j=x());){if(j===ye){P=b.backslashes=!0,x();continue}if(j===aD){C=b.isBracket=!0,p=b.isGlob=!0,W=!0;break}}if(r===!0)continue;break}if(u.nonegate!==!0&&_===Pt&&a===c){S=b.negated=!0,c++;continue}if(u.noparen!==!0&&_===Lt){if(p=b.isGlob=!0,r===!0){for(;k()!==!0&&(_=x());){if(_===Lt){P=b.backslashes=!0,_=x();continue}if(_===_n){W=!0;break}}continue}break}if(p===!0){if(W=!0,r===!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&&An($.charCodeAt($.length-1))&&($=$.slice(0,-1)),u.unescape===!0&&(h&&(h=Fn.removeBackslashes(h)),$&&P===!0&&($=Fn.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,An(_)||i.push(b),d.tokens=i),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?(i[R].isPrefix=!0,i[R].value=se):i[R].value=V,yn(i[R]),d.maxDepth+=i[R].depth),(R!==0||V!=="")&&D.push(V),j=J}if(j&&j+1<t.length){const R=t.slice(j+1);D.push(R),u.tokens&&(i[i.length-1].value=R,yn(i[i.length-1]),d.maxDepth+=i[i.length-1].depth)}d.slashes=s,d.parts=D}return d};var cD=lD;const Ke=Ue,Y=Ge,{MAX_LENGTH:Ve,POSIX_REGEX_SOURCE:fD,REGEX_NON_SPECIAL_CHARS:hD,REGEX_SPECIAL_CHARS_BACKREF:dD,REPLACEMENTS:wn}=Ke,ED=(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},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=wn[t]||t;const u=M({},e),n=typeof u.maxLength=="number"?Math.min(Ve,u.maxLength):Ve;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=Ke.globChars(o),c=Ke.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:P,QMARK:S,QMARK_NO_DOT:Q,STAR:W,START_ANCHOR:re}=a,G=m=>`(${D}(?:(?!${re}${m.dot?F:f}).)*?)`,_=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:i};t=Y.removePrefix(t,E),r=t.length;const x=[],$=[],se=[];let h=s,d;const j=()=>E.index===r-1,R=E.peek=(m=1)=>t[E.index+m],Z=E.advance=()=>t[++E.index]||"",J=()=>t.slice(E.index+1),V=(m="",T=0)=>{E.consumed+=m,E.index+=T},Oe=m=>{E.output+=m.output!=null?m.output:m.value,V(m.value)},br=()=>{let m=1;for(;R()==="!"&&(R(2)!=="("||R(3)==="?");)Z(),E.start++,m++;return m%2===0?!1:(E.negated=!0,E.start++,!0)},Ne=m=>{E[m]++,se.push(m)},ie=m=>{E[m]--,se.pop()},w=m=>{if(h.type==="globstar"){const T=E.braces>0&&(m.type==="comma"||m.type==="brace"),g=m.extglob===!0||x.length&&(m.type==="pipe"||m.type==="paren");m.type!=="slash"&&m.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&&m.type!=="paren"&&(x[x.length-1].inner+=m.value),(m.value||m.output)&&Oe(m),h&&h.type==="text"&&m.type==="text"){h.value+=m.value,h.output=(h.output||"")+m.value;return}m.prev=h,i.push(m),h=m},Pe=(m,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:m,value:T,output:E.output?"":p}),w({type:"paren",extglob:!0,value:Z(),output:y}),x.push(g)},vr=m=>{let T=m.close+(u.capture?")":""),g;if(m.type==="negate"){let y=k;if(m.inner&&m.inner.length>1&&m.inner.includes("/")&&(y=G(u)),(y!==k||j()||/^\)+$/.test(J()))&&(T=m.close=`)$))${y}`),m.inner.includes("*")&&(g=J())&&/^\.[^\\/.]+$/.test(g)){const O=It(g,De(M({},e),{fastpaths:!1})).output;T=m.close=`)${O})${y})`}m.prev.type==="bos"&&(E.negatedExtglob=!0)}w({type:"paren",extglob:!0,value:d,output:T}),ie("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let m=!1,T=t.replace(dD,(g,y,O,U,H,it)=>U==="\\"?(m=!0,g):U==="?"?y?y+U+(H?S.repeat(H.length):""):it===0?b+(H?S.repeat(H.length):""):S.repeat(O.length):U==="."?f.repeat(O.length):U==="*"?y?y+U+(H?k:""):k:y?g:`\\${g}`);return m===!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),H=fD[U];if(H){h.value=O+H,E.backtrack=!0,Z(),!s.output&&i.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){vr(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=`(${D}${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=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);y=ED(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 H of U)E.output+=H.output||H.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="",i.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)!=="?"){Pe("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)))){Pe("negate",d);continue}if(u.nonegate!==!0&&E.index===0){br();continue}}if(d==="+"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("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=hD.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 m=J();if(u.noextglob!==!0&&/^\([^?]/.test(m)){Pe("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||m[0]&&m[0]!=="/")){w({type:"star",value:d,output:""});continue}const H=E.braces>0&&(g.type==="comma"||g.type==="brace"),it=x.length&&(g.type==="pipe"||g.type==="paren");if(!O&&g.type!=="paren"&&!H&&!it){w({type:"star",value:d,output:""});continue}for(;m.slice(0,3)==="/**";){const He=t[E.index+4];if(He&&He!=="/")break;m=m.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"&&m[0]==="/"){const He=m[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}${He})`,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"&&m[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=_+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+=P,h.output+=P):(E.output+=_,h.output+=_),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 m of E.tokens)E.output+=m.output!=null?m.output:m.value,m.suffix&&(E.output+=m.suffix)}return E};It.fastpaths=(t,e)=>{const u=M({},e),n=typeof u.maxLength=="number"?Math.min(Ve,u.maxLength):Ve,r=t.length;if(r>n)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${n}`);t=wn[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:C,START_ANCHOR:p}=Ke.globChars(s),F=u.dot?f:c,A=u.dot?l:c,B=u.capture?"":"?:",P={negated:!1,prefix:""};let S=u.bash===!0?".*?":C;u.capture&&(S=`(${S})`);const Q=_=>_.noglobstar===!0?S:`(${B}(?:(?!${p}${_.dot?a:i}).)*?)`,W=_=>{switch(_){case"*":return`${F}${o}${S}`;case".*":return`${i}${o}${S}`;case"*.*":return`${F}${S}${i}${o}${S}`;case"*/*":return`${F}${S}${D}${o}${A}${S}`;case"**":return F+Q(u);case"**/*":return`(?:${F}${Q(u)}${D})?${A}${o}${S}`;case"**/*.*":return`(?:${F}${Q(u)}${D})?${A}${S}${i}${o}${S}`;case"**/.*":return`(?:${F}${Q(u)}${D})?${i}${o}${S}`;default:{const b=/^(.*?)\.(\w+)$/.exec(_);if(!b)return;const k=W(b[1]);return k?k+i+b[2]:void 0}}},re=Y.removePrefix(t,P);let G=W(re);return G&&u.strictSlashes!==!0&&(G+=`${D}?`),G};var pD=It;const CD=z,FD=cD,kt=pD,Mt=Ge,gD=Ue,mD=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 n=mD(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=Mt.isWindows(e),i=n?N.compileRe(t,e):N.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=N(r.ignore,c,u)}const a=(c,f=!1)=>{const{isMatch:l,match:C,output:p}=N.test(c,i,e,{glob:t,posix:s}),F={glob:t,state:D,regex:i,posix:s,input:c,output:p,match:C,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};N.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?Mt.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=N.matchBase(t,e,u,r):D=e.exec(o)),{isMatch:Boolean(D),match:D,output:o}},N.matchBase=(t,e,u,n=Mt.isWindows(u))=>(e instanceof RegExp?e:N.makeRe(e,u)).test(CD.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)=>FD(t,e),N.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=N.toRegex(D,e);return n===!0&&(o.state=t),o},N.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=kt.fastpaths(t,e)),r.output||(r=kt(t,e)),N.compileRe(r,e,u,n)},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=gD;var _D=N;(function(t){t.exports=_D})($t);const we=oe,{Readable:AD}=Ir,Re=z,{promisify:ze}=_e,Wt=$t.exports,yD=ze(we.readdir),wD=ze(we.stat),Rn=ze(we.lstat),RD=ze(we.realpath),bD="!",bn="READDIRP_RECURSIVE_ERROR",vD=new Set(["ENOENT","EPERM","EACCES","ELOOP",bn]),Gt="files",vn="directories",Ye="files_directories",qe="all",Bn=[Gt,vn,Ye,qe],BD=t=>vD.has(t.code),[Sn,SD]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),$D=process.platform==="win32"&&(Sn>10||Sn===10&&SD>=5),$n=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 n of t){const r=n.trim();r.charAt(0)===bD?u.push(Wt(r.slice(1))):e.push(Wt(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 st extends AD{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({},st.defaultOptions),e),{root:n,type:r}=u;this._fileFilter=$n(u.fileFilter),this._directoryFilter=$n(u.directoryFilter);const s=u.lstat?Rn:wD;$D?this._stat=i=>s(i,{bigint:!0}):this._stat=s,this._maxDepth=u.depth,this._wantsDir=[vn,Ye,qe].includes(r),this._wantsFile=[Gt,Ye,qe].includes(r),this._wantsEverything=r===qe,this._root=Re.resolve(n),this._isDirent="Dirent"in we&&!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 yD(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=Re.resolve(Re.join(u,r));n={path:Re.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){BD(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 RD(n),s=await Rn(r);if(s.isFile())return"file";if(s.isDirectory()){const i=r.length;if(n.startsWith(r)&&n.substr(i,1)===Re.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 Ce=(t,e={})=>{let u=e.entryType||e.type;if(u==="both"&&(u=Ye),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&&!Bn.includes(u))throw new Error(`readdirp: Invalid type passed. Use one of ${Bn.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new st(e)},TD=(t,e={})=>new Promise((u,n)=>{const r=[];Ce(t,e).on("data",s=>r.push(s)).on("end",()=>u(r)).on("error",s=>n(s))});Ce.promise=TD,Ce.ReaddirpStream=st,Ce.default=Ce;var xD=Ce,jt={exports:{}};/*!
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 i=_s(n,s,u);return t.map(D=>$s(i,D)).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 i=t[u];return{operator:r,breakpoint:s,value:i}}).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,i=s.indexOf("--"),D=i>-1&&s.slice(i+1).some(o=>o.startsWith("<"));n.push(s.map(o=>o!=="--"?o:D?"--":"[--]").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 i="";if(s?i+=`${s}, `:n&&(i+=" "),i+=r,"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 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],i=n[n.length-1];let D;if(s==="<"&&i===">"&&(D=!0,u))throw new Error(`Invalid parameter: Required parameter ${ee(n)} cannot come after optional parameter ${ee(u)}`);if(s==="["&&i==="]"&&(D=!1,u=n),D===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:D,spread:a})}return e}function Ft(t,e,u,r){for(let n=0;n<e.length;n+=1){const{name:s,required:i,spread:D}=e[n],o=Hs(s);if(o in t)throw new Error(`Invalid parameter: ${ee(s)} is used more than once.`);const a=D?u.slice(n):u[n];if(D&&(n=e.length),i&&(!a||D&&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:i}=e,D=ti(i);D&&!("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=D&&(i==null?void 0:i.render)?i.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(D&&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 i of n){if(u.has(i))throw new Error(`Duplicate command name found: ${ee(i)}`);u.set(i,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,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 r(s,i,D){t.stat(s,function(o,a){D(o,o?!1:u(a,s,i))})}function n(s,i){return u(t.statSync(s),s,i)}return gt}var _t,qu;function Di(){if(qu)return _t;qu=1,_t=e,e.sync=u;var t=oe;function e(s,i,D){t.stat(s,function(o,a){D(o,o?!1:r(a,i))})}function u(s,i){return r(t.statSync(s),i)}function r(s,i){return s.isFile()&&n(s,i)}function n(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),C=parseInt("010",8),p=parseInt("001",8),F=l|C,A=D&p||D&C&&a===f||D&l&&o===c||D&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,i){s?n(s):r(i)})})}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),i=[],D=a=>new Promise((c,f)=>{if(a===r.length)return e.all&&i.length?c(i):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(D(c+1));const p=n[f];Qu(a+p,{pathExt:s},(F,A)=>{if(!F&&A)if(e.all)i.push(a+p);else return l(a+p);return l(o(a,c,f+1))})});return u?D(0).then(a=>u(null,a),u):D(0)},ci=(t,e)=>{e=e||{};const{pathEnv:u,pathExt:r,pathExtExe:n}=Ju(t,e),s=[];for(let i=0;i<u.length;i++){const D=u[i],o=/^".*"$/.test(D)?D.slice(1,-1):D,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 i;try{i=hi.sync(t.command,{path:u[di({env:u})],pathExt:e?ur.delimiter:void 0})}catch{}finally{s&&process.chdir(r)}return i&&(i=ur.resolve(n?t.options.cwd:"",i)),i}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:i}=Ke;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(r,"/"),t.removeBackslashes=D=>D.replace(n,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}})(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=[],i=[],D=[];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),i.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)||i.push(b),d.tokens=i),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?(i[R].isPrefix=!0,i[R].value=se):i[R].value=V,mr(i[R]),d.maxDepth+=i[R].depth),(R!==0||V!=="")&&D.push(V),j=J}if(j&&j+1<t.length){const R=t.slice(j+1);D.push(R),u.tokens&&(i[i.length-1].value=R,mr(i[i.length-1]),d.maxDepth+=i[i.length-1].depth)}d.slashes=s,d.parts=D}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||""},i=[s],D=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=_=>`(${D}(?:(?!${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:i};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,i.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&&i.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=`(${D}${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=i.slice(),U=[];for(let P=O.length-1;P>=0&&(i.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="",i.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:i,SLASH_LITERAL:D,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: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}${A}${S}`;case"**":return F+Q(u);case"**/*":return`(?:${F}${Q(u)}${D})?${A}${o}${S}`;case"**/*.*":return`(?:${F}${Q(u)}${D})?${A}${S}${i}${o}${S}`;case"**/.*":return`(?:${F}${Q(u)}${D})?${i}${o}${S}`;default:{const b=/^(.*?)\.(\w+)$/.exec(m);if(!b)return;const k=W(b[1]);return k?k+i+b[2]:void 0}}},ne=Y.removePrefix(t,H);let G=W(ne);return G&&u.strictSlashes!==!0&&(G+=`${D}?`),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),i=r?N.compileRe(t,e):N.makeRe(t,e,!1,!0),D=i.state;delete i.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,i,e,{glob:t,posix:s}),F={glob:t,state:D,regex:i,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=D),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||{},i=s.format||(n?Mt.toPosixSlashes:null);let D=t===r,o=D&&i?i(t):t;return D===!1&&(o=i?i(t):t,D=o===r),(D===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?D=N.matchBase(t,e,u,n):D=e.exec(o)),{isMatch:Boolean(D),match:D,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?"":"^",i=n.contains?"":"$";let D=`${s}(?:${t.output})${i}`;t&&t.negated===!0&&(D=`^(?!${D}).*$`);const o=N.toRegex(D,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=i=>s(i,{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(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)?(r<=this._maxDepth&&this.parents.push(this._exploreDir(i.fullPath,r+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 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 i=n.length;if(r.startsWith(n)&&r.substr(i,1)===Re.sep){const D=new Error(`Circular symlink detected: "${r}" points to "${n}"`);return D.code=wr,this._onError(D)}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:{}};/*!
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 Tn=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(jt.exports,"__esModule",{value:!0});const xn=$t.exports,OD=Tn,On="!",ND={returnIndex:!1},PD=t=>Array.isArray(t)?t:[t],HD=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){const u=xn(t,e);return n=>t===n||u(n)}return t instanceof RegExp?u=>t.test(u):u=>!1},Nn=(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=OD(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},Ut=(t,e,u=ND)=>{if(t==null)throw new TypeError("anymatch: specify first argument");const n=typeof u=="boolean"?{returnIndex:u}:u,r=n.returnIndex||!1,s=PD(t),i=s.filter(o=>typeof o=="string"&&o.charAt(0)===On).map(o=>o.slice(1)).map(o=>xn(o,n)),D=s.filter(o=>typeof o!="string"||typeof o=="string"&&o.charAt(0)!==On).map(o=>HD(o,n));return e==null?(o,a=!1)=>Nn(D,i,o,typeof a=="boolean"?a:!1):Nn(D,i,e,r)};Ut.default=Ut,jt.exports=Ut;/*!
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 i=SD(s);for(let o=0;o<e.length;o++)if(e[o](i))return r?-1:!1;const D=n&&[i].concat(u.slice(1));for(let o=0;o<t.length;o++){const a=t[o];if(n?a(...D):a(i))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),i=s.filter(o=>typeof o=="string"&&o.charAt(0)===Tr).map(o=>o.slice(1)).map(o=>$r(o,r)),D=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(D,i,o,typeof a=="boolean"?a:!1):xr(D,i,e,n)};Ut.default=Ut,jt.exports=Ut;/*!
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 LD=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 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};/*!
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 ID=LD,Pn={"{":"}","(":")","[":"]"},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=Pn[D];if(o){var a=t.indexOf(o,e);a!==-1&&(e=a+1)}if(t[e]==="!")return!0}else e++}return!1},MD=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=Pn[u];if(n){var r=t.indexOf(n,e);r!==-1&&(e=r+1)}if(t[e]==="!")return!0}else e++}return!1},Hn=function(e,u){if(typeof e!="string"||e==="")return!1;if(ID(e))return!0;var n=kD;return u&&u.strict===!1&&(n=MD),n(e)},WD=Hn,GD=z.posix.dirname,jD=Au.platform()==="win32",Kt="/",UD=/\\/g,KD=/[\{\[].*[\}\]]$/,VD=/(^|[^\\])([\{\[]|\([^\)]+$)/,zD=/\\([\!\*\?\|\[\]\(\)\{\}])/g,YD=function(e,u){var n=Object.assign({flipBackslashes:!0},u);n.flipBackslashes&&jD&&e.indexOf(Kt)<0&&(e=e.replace(UD,Kt)),KD.test(e)&&(e+=Kt),e+="a";do e=GD(e);while(WD(e)||VD.test(e));return e.replace(zD,"$1")},Xe={};(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}})(Xe);const Ln=Xe;var Vt=(t,e={})=>{let u=(n,r={})=>{let s=e.escapeInvalid&&Ln.isInvalidBrace(r),i=n.invalid===!0&&e.escapeInvalid===!0,D="";if(n.value)return(s||i)&&Ln.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)};/*!
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,i=-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&&(i===-1||i>r||(i=t.indexOf("\\",e),i===-1||i>r)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(i=t.indexOf("\\",e),i===-1||i>n))||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=Or[D];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 i=n[s];Array.isArray(i)?r(i):i!==void 0&&u.push(i)}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),i=r.invalid===!0&&e.escapeInvalid===!0,D="";if(r.value)return(s||i)&&Hr.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let o of r.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 qD=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1};/*!
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};/*!
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 In=qD,le=(t,e,u)=>{if(In(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(In(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=Un(t)||Un(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=kn(F,Math.abs(a),l,n),a=l.a=0}return c>=0&&(C=kn(a,c,l,n)),l.negatives=p,l.positives=C,l.result=XD(p,C),n.capture===!0?l.result=`(${l.result})`:n.wrap!==!1&&C.length+p.length>1&&(l.result=`(?:${l.result})`),le.cache[o]=l,l.result};function XD(t,e,u){let n=zt(t,e,"-",!1)||[],r=zt(e,t,"",!1)||[],s=zt(t,e,"-?",!0)||[];return n.concat(s).concat(r).join("|")}function QD(t,e){let u=1,n=1,r=Wn(t,u),s=new Set([e]);for(;t<=r&&r<=e;)s.add(r),u+=1,r=Wn(t,u);for(r=Gn(e+1,n)-1;t<r&&r<=e;)s.add(r),n+=1,r=Gn(e+1,n)-1;return s=[...s],s.sort(eo),s}function ZD(t,e,u){if(t===e)return{pattern:t,count:[],digits:0};let n=JD(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+=to(o,a):i++}return i&&(s+=u.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[i],digits:r}}function kn(t,e,u,n){let r=QD(t,e),s=[],i=t,D;for(let o=0;o<r.length;o++){let a=r[o],c=ZD(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+jn(D.count),i=a+1;continue}u.isPadded&&(f=uo(a,u,n)),c.string=f+c.pattern+jn(c.count),s.push(c),i=a+1,D=c}return s}function zt(t,e,u,n,r){let s=[];for(let i of t){let{string:D}=i;!n&&!Mn(e,"string",D)&&s.push(u+D),n&&Mn(e,"string",D)&&s.push(u+D)}return s}function JD(t,e){let u=[];for(let n=0;n<t.length;n++)u.push([t[n],e[n]]);return u}function eo(t,e){return t>e?1:e>t?-1:0}function Mn(t,e,u){return t.some(n=>n[e]===u)}function Wn(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function Gn(t,e){return t-t%Math.pow(10,e)}function jn(t){let[e=0,u=""]=t;return u||e>1?`{${e+(u?","+u:"")}}`:""}function to(t,e,u){return`[${t}${e-t===1?"":"-"}${e}]`}function Un(t){return/^-?(0+)\d/.test(t)}function uo(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 no=le;/*!
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),i=String(r.capture),D=String(r.wrap),o=t+":"+e+"="+n+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 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="",i=0;for(let D=0;D<n;D++){let[o,a]=r[D];o===a?s+=o:o!=="0"||a!=="9"?s+=QD(o,a):i++}return i&&(s+=u.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[i],digits:n}}function Lr(t,e,u,r){let n=zD(t,e),s=[],i=t,D;for(let o=0;o<n.length;o++){let a=n[o],c=YD(String(i),String(a),r),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+Wr(D.count),i=a+1;continue}u.isPadded&&(f=ZD(a,u,r)),c.string=f+c.pattern+Wr(c.count),s.push(c),i=a+1,D=c}return s}function zt(t,e,u,r,n){let s=[];for(let i of t){let{string:D}=i;!r&&!Ir(e,"string",D)&&s.push(u+D),r&&Ir(e,"string",D)&&s.push(u+D)}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;/*!
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 ro=_e,Kn=no,Vn=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),so=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},io=(t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,Do=(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},zn=(t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},oo=(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},Yn=(t,e,u,n)=>{if(u)return Kn(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 Kn(t,e,u)},Xn=(...t)=>new RangeError("Invalid range arguments: "+ro.inspect(...t)),Qn=(t,e,u)=>{if(u.strictRanges===!0)throw Xn([t,e]);return[]},ao=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},lo=(t,e,u=1,n={})=>{let r=Number(t),s=Number(e);if(!Number.isInteger(r)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Xn([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=qt(D)||qt(o)||qt(a),f=c?Math.max(D.length,o.length,a.length):0,l=c===!1&&io(t,e,n)===!1,C=n.transform||so(l);if(n.toRegex&&u===1)return Yn(zn(t,f),zn(e,f),!0,n);let p={negatives:[],positives:[]},F=P=>p[P<0?"negatives":"positives"].push(Math.abs(P)),A=[],B=0;for(;i?r>=s:r<=s;)n.toRegex===!0&&u>1?F(r):A.push(Do(C(r,B),f,l)),r=i?r-u:r+u,B++;return n.toRegex===!0?u>1?oo(p,n):qn(A,null,M({wrap:!1},n)):A},co=(t,e,u=1,n={})=>{if(!be(t)&&t.length>1||!be(e)&&e.length>1)return Qn(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 Yn(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},Qe=(t,e,u,n={})=>{if(e==null&&Yt(t))return[t];if(!Yt(t)||!Yt(e))return Qn(t,e,n);if(typeof u=="function")return Qe(t,e,1,{transform:u});if(Vn(u))return Qe(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)?lo(t,e,u,r):co(t,e,Math.max(Math.abs(u),1),r):u!=null&&!Vn(u)?ao(u,r):Qe(t,e,1,u)};var Zn=Qe;const fo=Zn,Jn=Xe,ho=(t,e={})=>{let u=(n,r={})=>{let s=Jn.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=Jn.reduce(n.nodes),f=fo(...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 Eo=ho;const po=Zn,er=Vt,Fe=Xe,ce=(t="",e="",u=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?Fe.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 Fe.flatten(n)},Co=(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(),er(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=Fe.reduce(r.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=po(...f,e);l.length===0&&(l=er(r,e)),D.push(ce(D.pop(),l)),r.nodes=[];return}let o=Fe.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 Fe.flatten(n(t))};var Fo=Co,go={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 mo=Vt,{MAX_LENGTH:tr,CHAR_BACKSLASH:Xt,CHAR_BACKTICK:_o,CHAR_COMMA:Ao,CHAR_DOT:yo,CHAR_LEFT_PARENTHESES:wo,CHAR_RIGHT_PARENTHESES:Ro,CHAR_LEFT_CURLY_BRACE:bo,CHAR_RIGHT_CURLY_BRACE:vo,CHAR_LEFT_SQUARE_BRACKET:ur,CHAR_RIGHT_SQUARE_BRACKET:nr,CHAR_DOUBLE_QUOTE:Bo,CHAR_SINGLE_QUOTE:So,CHAR_NO_BREAK_SPACE:$o,CHAR_ZERO_WIDTH_NOBREAK_SPACE:To}=go,xo=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},n=typeof u.maxLength=="number"?Math.min(tr,u.maxLength):tr;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 C=()=>t[c++],p=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(p({type:"bos"});c<a;)if(i=s[s.length-1],l=C(),!(l===To||l===$o)){if(l===Xt){p({type:"text",value:(e.keepEscaping?l:"")+C()});continue}if(l===nr){p({type:"text",value:"\\"+l});continue}if(l===ur){o++;let F;for(;c<a&&(F=C());){if(l+=F,F===ur){o++;continue}if(F===Xt){l+=C();continue}if(F===nr&&(o--,o===0))break}p({type:"text",value:l});continue}if(l===wo){i=p({type:"paren",nodes:[]}),s.push(i),p({type:"text",value:l});continue}if(l===Ro){if(i.type!=="paren"){p({type:"text",value:l});continue}i=s.pop(),p({type:"text",value:l}),i=s[s.length-1];continue}if(l===Bo||l===So||l===_o){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===bo){f++;let F=D.value&&D.value.slice(-1)==="$"||i.dollar===!0;i=p({type:"brace",open:!0,close:!1,dollar:F,depth:f,commas:0,ranges:0,nodes:[]}),s.push(i),p({type:"open",value:l});continue}if(l===vo){if(i.type!=="brace"){p({type:"text",value:l});continue}let F="close";i=s.pop(),i.close=!0,p({type:F,value:l}),f--,i=s[s.length-1];continue}if(l===Ao&&f>0){if(i.ranges>0){i.ranges=0;let F=i.nodes.shift();i.nodes=[F,{type:"text",value:mo(i)}]}p({type:"comma",value:l}),i.commas++;continue}if(l===yo&&f>0&&i.commas===0){let F=i.nodes;if(f===0||F.length===0){p({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 A=F[F.length-1];A.value+=D.value+l,D=A,i.ranges--;continue}p({type:"dot",value:l});continue}p({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],A=F.nodes.indexOf(i);F.nodes.splice(A,1,...i.nodes)}while(s.length>0);return p({type:"eos"}),r};var Oo=xo;const rr=Vt,No=Eo,Po=Fo,Ho=Oo,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={})=>Ho(t,e),q.stringify=(t,e={})=>rr(typeof t=="string"?q.parse(t,e):t,e),q.compile=(t,e={})=>(typeof t=="string"&&(t=q.parse(t,e)),No(t,e)),q.expand=(t,e={})=>{typeof t=="string"&&(t=q.parse(t,e));let u=Po(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 Lo=q,sr={exports:{}},Io=["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=Io})(sr);const ko=z,Mo=sr.exports,Wo=new Set(Mo);var Go=t=>Wo.has(ko.extname(t).slice(1).toLowerCase()),Ze={};(function(t){const{sep:e}=z,{platform:u}=process,n=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=r=>r,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=n.type()==="OS400"})(Ze);const ne=oe,L=z,{promisify:ve}=_e,jo=Go,{isWindows:Uo,isLinux:Ko,EMPTY_FN:Vo,EMPTY_STR:zo,KEY_LISTENERS:ge,KEY_ERR:Qt,KEY_RAW:Be,HANDLER_KEYS:Yo,EV_CHANGE:Je,EV_ADD:et,EV_ADD_DIR:qo,EV_ERROR:ir,STR_DATA:Xo,STR_END:Qo,BRACE_START:Zo,STAR:Jo}=Ze,ea="watch",ta=ve(ne.open),Dr=ve(ne.stat),ua=ve(ne.lstat),na=ve(ne.close),Zt=ve(ne.realpath),ra={lstat:ua,stat:Dr},Jt=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},Se=(t,e,u)=>{let n=t[e];n instanceof Set||(t[e]=n=new Set([n])),n.add(u)},sa=t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},$e=(t,e,u)=>{const n=t[e];n instanceof Set?n.delete(u):n===u&&delete t[e]},or=t=>t instanceof Set?t.size===0:!t,tt=new Map;function ar(t,e,u,n,r){const s=(i,D)=>{u(t),r(i,D,{watchedPath:t}),D&&t!==D&&ut(L.resolve(t,D),ge,L.join(t,D))};try{return ne.watch(t,e,s)}catch(i){n(i)}}const ut=(t,e,u,n,r)=>{const s=tt.get(t);!s||Jt(s[e],i=>{i(u,n,r)})},ia=(t,e,u,n)=>{const{listener:r,errHandler:s,rawEmitter:i}=n;let D=tt.get(e),o;if(!u.persistent)return o=ar(t,u,r,s,i),o.close.bind(o);if(D)Se(D,ge,r),Se(D,Qt,s),Se(D,Be,i);else{if(o=ar(t,u,ut.bind(null,e,ge),s,ut.bind(null,e,Be)),!o)return;o.on(ir,async a=>{const c=ut.bind(null,e,Qt);if(D.watcherUnusable=!0,Uo&&a.code==="EPERM")try{const f=await ta(t,"r");await na(f),c(a)}catch{}else c(a)}),D={listeners:r,errHandlers:s,rawEmitters:i,watcher:o},tt.set(e,D)}return()=>{$e(D,ge,r),$e(D,Qt,s),$e(D,Be,i),or(D.listeners)&&(D.watcher.close(),tt.delete(e),Yo.forEach(sa(D)),D.watcher=void 0,Object.freeze(D))}},eu=new Map,Da=(t,e,u,n)=>{const{listener:r,rawEmitter:s}=n;let i=eu.get(e);const D=i&&i.options;return D&&(D.persistent<u.persistent||D.interval>u.interval)&&(ne.unwatchFile(e),i=void 0),i?(Se(i,ge,r),Se(i,Be,s)):(i={listeners:r,rawEmitters:s,options:u,watcher:ne.watchFile(e,u,(o,a)=>{Jt(i.rawEmitters,f=>{f(Je,e,{curr:o,prev:a})});const c=o.mtimeMs;(o.size!==a.size||c>a.mtimeMs||c===0)&&Jt(i.listeners,f=>f(t,o))})},eu.set(e,i)),()=>{$e(i,ge,r),$e(i,Be,s),or(i.listeners)&&(eu.delete(e),ne.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}};class oa{constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const n=this.fsw.options,r=L.dirname(e),s=L.basename(e);this.fsw._getWatchedDir(r).add(s);const D=L.resolve(e),o={persistent:n.persistent};u||(u=Vo);let a;return n.usePolling?(o.interval=n.enableBinaryInterval&&jo(s)?n.binaryInterval:n.interval,a=Da(e,D,o,{listener:u,rawEmitter:this.fsw._emitRaw})):a=ia(e,D,o,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),a}_handleFile(e,u,n){if(this.fsw.closed)return;const r=L.dirname(e),s=L.basename(e),i=this.fsw._getWatchedDir(r);let D=u;if(i.has(s))return;const o=async(c,f)=>{if(!!this.fsw._throttle(ea,e,5)){if(!f||f.mtimeMs===0)try{const l=await Dr(e);if(this.fsw.closed)return;const C=l.atimeMs,p=l.mtimeMs;(!C||C<=p||p!==D.mtimeMs)&&this.fsw._emit(Je,e,l),Ko&&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,C=f.mtimeMs;(!l||l<=C||C!==D.mtimeMs)&&this.fsw._emit(Je,e,f),D=f}}},a=this._watchWithNodeFs(e,o);if(!(n&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(et,e,0))return;this.fsw._emit(et,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 Zt(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(Je,n,e.stats)):(i.add(r),this.fsw._symlinkPaths.set(s,D),this.fsw._emit(et,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=L.join(e,zo),!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(Xo,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===r||!r&&!o.has(l))&&(this.fsw._incrReadyCount(),C=L.join(s,L.relative(s,C)),this._addToNodeFs(C,u,n,i+1))}}).on(ir,this._boundHandleError);return new Promise(f=>c.once(Qo,()=>{if(this.fsw.closed){c=void 0;return}const l=D?D.clear():!1;f(),o.getChildren().filter(C=>C!==e&&!a.has(C)&&(!n.hasGlob||n.filterPath({fullPath:L.resolve(e,C)}))).forEach(C=>{this.fsw._remove(e,C)}),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(L.dirname(e)),a=o.has(L.basename(e));!(n&&this.fsw.options.ignoreInitial)&&!s&&!a&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(qo,e,u),o.add(L.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,(C,p)=>{p&&p.mtimeMs===0||this._handleRead(C,!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 ra[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(Jo)&&!e.includes(Zo);let c;if(o.isDirectory()){const f=L.resolve(e),l=a?await Zt(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 Zt(e):e;if(this.fsw.closed)return;const l=L.dirname(D.watchPath);if(this.fsw._getWatchedDir(l).add(D.watchPath),this.fsw._emit(et,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(L.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 aa=oa,tu={exports:{}};const uu=oe,I=z,{promisify:nu}=_e;let me;try{me=Dt("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:ru,EV_CHANGE:la,EV_ADD_DIR:lr,EV_UNLINK:nt,EV_ERROR:ca,STR_DATA:fa,STR_END:ha,FSEVENT_CREATED:da,FSEVENT_MODIFIED:Ea,FSEVENT_DELETED:pa,FSEVENT_MOVED:Ca,FSEVENT_UNKNOWN:Fa,FSEVENT_TYPE_FILE:ga,FSEVENT_TYPE_DIRECTORY:Te,FSEVENT_TYPE_SYMLINK:cr,ROOT_GLOBSTAR:fr,DIR_SUFFIX:ma,DOT_SLASH:hr,FUNCTION_TYPE:su,EMPTY_FN:_a,IDENTITY_FN:Aa}=Ze,ya=t=>isNaN(t)?{}:{depth:t},iu=nu(uu.stat),wa=nu(uu.lstat),dr=nu(uu.realpath),Ra={stat:iu,lstat:wa},fe=new Map,ba=10,va=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Ba=(t,e)=>({stop:me.watch(t,e)});function Sa(t,e,u,n){let r=I.extname(e)?I.dirname(e):e;const s=I.dirname(r);let i=fe.get(r);$a(s)&&(r=s);const D=I.resolve(t),o=D!==e,a=(f,l,C)=>{o&&(f=f.replace(e,D)),(f===D||!f.indexOf(D+I.sep))&&u(f,l,C)};let c=!1;for(const f of fe.keys())if(e.indexOf(I.resolve(f)+I.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:Ba(r,(f,l)=>{if(!i.listeners.size)return;const C=me.getInfo(f,l);i.listeners.forEach(p=>{p(f,l,C)}),i.rawEmitter(C.event,f,C)})},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 $a=t=>{let e=0;for(const u of fe.keys())if(u.indexOf(t)===0&&(e++,e>=ba))return!0;return!1},Ta=()=>me&&fe.size<128,Du=(t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=I.dirname(t))!==e;)u++;return u},Er=(t,e)=>t.type===Te&&e.isDirectory()||t.type===cr&&e.isSymbolicLink()||t.type===ga&&e.isFile();class xa{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+fr),!0;n.delete(e),n.delete(e+fr)}addOrChange(e,u,n,r,s,i,D,o){const a=s.has(i)?la:ru;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 iu(e);if(this.fsw.closed)return;Er(D,a)?this.addOrChange(e,u,n,r,s,i,D,o):this.handleEvent(nt,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(nt,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===nt){const c=o.type===Te;(c||i.has(D))&&this.fsw._remove(s,D,c)}else{if(e===ru){if(o.type===Te&&this.fsw._getWatchedDir(u),o.type===cr&&a.followSymlinks){const f=a.depth===void 0?void 0:Du(n,r)+1;return this._addToFsEvents(u,!1,!0,f)}this.fsw._getWatchedDir(s).add(D)}const c=o.type===Te?e+ma:e;this.fsw._emit(c,u),c===lr&&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=Sa(e,u,async(o,a,c)=>{if(this.fsw.closed||s.depth!==void 0&&Du(o,u)>s.depth)return;const f=n(I.join(e,I.relative(e,o)));if(r&&!r(f))return;const l=I.dirname(f),C=I.basename(f),p=this.fsw._getWatchedDir(c.type===Te?f:l);if(va.has(a)||c.event===Fa)if(typeof s.ignored===su){let F;try{F=await iu(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,F))return;Er(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 da:case Ea:return this.addOrChange(f,o,u,l,p,C,c,s);case pa:case Ca:return this.checkExists(f,o,u,l,p,C,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 dr(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!==hr?D=i.replace(s,e):i!==hr&&(D=I.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(I.dirname(i)),a=I.basename(i);D&&this.fsw._getWatchedDir(i),!o.has(a)&&(o.add(a),(!r.ignoreInitial||s===!0)&&this.fsw._emit(D?lr:ru,i,u))}initWatch(e,u,n,r){if(this.fsw.closed)return;const s=this._watchWithFsEvents(n.watchPath,I.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===su?u:Aa,D=this.fsw._getWatchHelpers(e);try{const o=await Ra[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)},ya(s.depth-(r||0)))).on(fa,a=>{if(this.fsw.closed||a.stats.isDirectory()&&!D.filterPath(a))return;const c=I.join(D.watchPath,a.path),{fullPath:f}=a;if(D.followSymlinks&&a.stats.isSymbolicLink()){const l=s.depth===void 0?void 0:Du(c,I.resolve(D.watchPath))+1;this._handleFsEventsSymlink(c,f,i,l)}else this.emitAdd(c,a.stats,i,s,n)}).on(ca,_a).on(ha,()=>{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===su)this.initWatch(void 0,e,D,i);else{let o;try{o=await dr(D.watchPath)}catch{}this.initWatch(o,e,D,i)}}}tu.exports=xa,tu.exports.canUse=Ta;const{EventEmitter:Oa}=Mr,ou=oe,v=z,{promisify:pr}=_e,Na=xD,au=jt.exports.default,Pa=YD,lu=Hn,Ha=Lo,La=Tn,Ia=aa,Cr=tu.exports,{EV_ALL:cu,EV_READY:ka,EV_ADD:rt,EV_CHANGE:xe,EV_UNLINK:Fr,EV_ADD_DIR:Ma,EV_UNLINK_DIR:Wa,EV_RAW:Ga,EV_ERROR:fu,STR_CLOSE:ja,STR_END:Ua,BACK_SLASH_RE:Ka,DOUBLE_SLASH_RE:gr,SLASH_OR_BACK_SLASH_RE:Va,DOT_RE:za,REPLACER_RE:Ya,SLASH:hu,SLASH_SLASH:qa,BRACE_START:Xa,BANG:du,ONE_DOT:mr,TWO_DOTS:Qa,GLOBSTAR:Za,SLASH_GLOBSTAR:Eu,ANYMATCH_OPTS:pu,STRING_TYPE:Cu,FUNCTION_TYPE:Ja,EMPTY_STR:Fu,EMPTY_FN:el,isWindows:tl,isMacos:ul,isIBMi:nl}=Ze,rl=pr(ou.stat),sl=pr(ou.readdir),gu=(t=[])=>Array.isArray(t)?t:[t],_r=(t,e=[])=>(t.forEach(u=>{Array.isArray(u)?_r(u,e):e.push(u)}),e),Ar=t=>{const e=_r(gu(t));if(!e.every(u=>typeof u===Cu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(wr)},yr=t=>{let e=t.replace(Ka,hu),u=!1;for(e.startsWith(qa)&&(u=!0);e.match(gr);)e=e.replace(gr,hu);return u&&(e=hu+e),e},wr=t=>yr(v.normalize(yr(t))),Rr=(t=Fu)=>e=>typeof e!==Cu?e:wr(v.isAbsolute(e)?e:v.join(t,e)),il=(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 Dl{constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;!u||e!==mr&&e!==Qa&&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 sl(n)}catch{this._removeWatcher&&this._removeWatcher(v.dirname(n),v.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 ol="stat",al="lstat";class ll{constructor(e,u,n,r){this.fsw=r,this.path=e=e.replace(Ya,Fu),this.watchPath=u,this.fullWatchPath=v.resolve(u),this.hasGlob=u!==e,e===Fu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&n?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=n,this.statMethod=n?ol:al}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 n=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===Ja?this.globFilter(n):!0)&&this.fsw._isntIgnored(n,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(Xa)?Ha.expand(e):[e]).forEach(r=>{u.push(v.relative(this.watchPath,r).split(Va))}),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===Za&&(n=!0),n||!u[0][i]||au(s,u[0][i],pu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class cl extends Oa{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),Cr.canUse()||(u.useFsEvents=!1),X(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=ul),nl&&(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=gu(u.ignored));let D=0;this._emitReady=()=>{D++,D>=this._readyCount&&(this._emitReady=el,this._readyEmitted=!0,process.nextTick(()=>this.emit(ka)))},this._emitRaw=(...o)=>this.emit(Ga,...o),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new Cr(this):this._nodeFsHandler=new Ia(this),Object.freeze(u)}add(e,u,n){const{cwd:r,disableGlobbing:s}=this.options;this.closed=!1;let i=Ar(e);return r&&(i=i.map(D=>{const o=il(D,r);return s||!lu(D)?o:La(o)})),i=i.filter(D=>D.startsWith(du)?(this._ignoredPaths.add(D.slice(1)),!1):(this._ignoredPaths.delete(D),this._ignoredPaths.delete(D+Eu),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(v.dirname(o),v.basename(u||o))})})),this}unwatch(e){if(this.closed)return this;const u=Ar(e),{cwd:n}=this.options;return u.forEach(r=>{!v.isAbsolute(r)&&!this._closers.has(r)&&(n&&(r=v.join(n,r)),r=v.resolve(r)),this._closePath(r),this._ignoredPaths.add(r),this._watched.has(r)&&this._ignoredPaths.add(r+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(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?v.relative(this.options.cwd,n):n;e[r||mr]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==fu&&this.emit(cu,...u)}async _emit(e,u,n,r,s){if(this.closed)return;const i=this.options;tl&&(u=v.normalize(u)),i.cwd&&(u=v.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===Fr)return this._pendingUnlinks.set(u,D),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(cu,...c),this._pendingUnlinks.delete(f)})},typeof i.atomic=="number"?i.atomic:100),this;e===rt&&this._pendingUnlinks.has(u)&&(e=D[0]=xe,this._pendingUnlinks.delete(u))}if(o&&(e===rt||e===xe)&&this._readyEmitted){const c=(f,l)=>{f?(e=D[0]=fu,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===xe&&!this._throttle(xe,u,50))return this;if(i.alwaysStat&&n===void 0&&(e===rt||e===Ma||e===xe)){const c=i.cwd?v.join(i.cwd,u):u;let f;try{f=await rl(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(fu,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&&!v.isAbsolute(e)&&(i=v.join(this.options.cwd,e));const D=new Date,o=a=>{ou.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 C=this._pendingWrites.get(e);l-C.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&&za.test(e))return!0;if(!this._userIgnored){const{cwd:n}=this.options,r=this.options.ignored,s=r&&r.map(Rr(n)),i=gu(s).filter(o=>typeof o===Cu&&!lu(o)).map(o=>o+Eu),D=this._getGlobIgnored().map(Rr(n)).concat(s,i);this._userIgnored=au(D,void 0,pu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const n=u||this.options.disableGlobbing||!lu(e)?e:Pa(e),r=this.options.followSymlinks;return new ll(e,n,r,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 Dl(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=v.join(e,u),s=v.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=v.relative(this.options.cwd,r)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===rt)return;this._watched.delete(r),this._watched.delete(s);const f=n?Wa:Fr;a&&!this._isIgnored(r)&&this._emit(f,r),this.options.useFsEvents||this._closePath(r)}_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(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:cu,alwaysStat:!0,lstat:!0},u);let r=Na(e,n);return this._streams.add(r),r.once(ja,()=>{r=void 0}),r.once(Ua,()=>{r&&(this._streams.delete(r),r=void 0)}),r}}const fl=(t,e)=>{const u=new cl(e);return u.add(t),u};var hl=fl;const dl="\x1Bc";function El(t){return t&&"type"in t&&t.type==="dependency"}const pl=ii({name:"watch",parameters:["<script path>"],flags:{noCache:{type:Boolean,description:"Disable caching"}},help:{description:"Run the script and watch for changes"}},t=>{const e={noCache:Boolean(t.flags.noCache),ipc:!0};let u;function n(){u&&!u.killed&&u.exitCode===null&&u.kill(),process.stdout.write(dl),u=hn(t._,e),u.on("message",i=>{if(El(i)){const D=i.path.startsWith("file:")?Hr(i.path):i.path;D.startsWith("/")&&s.add(D)}})}n();function r(i){u&&u.kill(),process.exit(i)}process.once("SIGINT",()=>r(130)),process.once("SIGTERM",()=>r(143));const s=hl(t._,{ignoreInitial:!0,ignored:["**/.*/**","**/{node_modules,bower_components,vendor}/**","**/dist/**"],ignorePermissionErrors:!0}).on("all",n);process.stdin.on("data",n)});si({name:"tsx",parameters:["[script path]"],commands:[pl],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(Nr);return}if(t.flags.help){t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"});return}process.argv.push(Dt.resolve("./repl"))}const e=process.argv.slice(2).filter(u=>u!=="--no-cache"&&u!=="--noCache");hn(e,{noCache:Boolean(t.flags.noCache)}).on("close",u=>process.exit(u))});
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((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?"":"?:",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 i=n>s,D=String(t),o=String(e),a=String(u);u=Math.max(Math.abs(u),1);let c=qt(D)||qt(o)||qt(a),f=c?Math.max(D.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(;i?n>=s:n<=s;)r.toRegex===!0&&u>1?F(n):A.push(ro(C(n,B),f,l)),n=i?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),i=`${e}`.charCodeAt(0),D=s>i,o=Math.min(s,i),a=Math.max(s,i);if(r.toRegex&&u===1)return Vr(o,a,!1,r);let c=[],f=0;for(;D?s>=i:s<=i;)c.push(n(s,f)),s=D?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),i=r.invalid===!0&&e.escapeInvalid===!0,D=s===!0||i===!0,o=e.escapeInvalid===!0?"\\":"",a="";if(r.isOpen===!0||r.isClose===!0)return o+r.value;if(r.type==="open")return D?o+r.value:"(";if(r.type==="close")return D?o+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":D?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 i=s,D=s.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,D=i.queue;if(n.invalid||n.dollar){D.push(ce(D.pop(),Zr(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){D.push(ce(D.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)),D.push(ce(D.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"){D.push(ce(D.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],i=n,D=n,o=0,a=t.length,c=0,f=0,l;const C=()=>t[c++],p=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(p({type:"bos"});c<a;)if(i=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){i=p({type:"paren",nodes:[]}),s.push(i),p({type:"text",value:l});continue}if(l===mo){if(i.type!=="paren"){p({type:"text",value:l});continue}i=s.pop(),p({type:"text",value:l}),i=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=D.value&&D.value.slice(-1)==="$"||i.dollar===!0;i=p({type:"brace",open:!0,close:!1,dollar:F,depth:f,commas:0,ranges:0,nodes:[]}),s.push(i),p({type:"open",value:l});continue}if(l===yo){if(i.type!=="brace"){p({type:"text",value:l});continue}let F="close";i=s.pop(),i.close=!0,p({type:F,value:l}),f--,i=s[s.length-1];continue}if(l===Fo&&f>0){if(i.ranges>0){i.ranges=0;let F=i.nodes.shift();i.nodes=[F,{type:"text",value:po(i)}]}p({type:"comma",value:l}),i.commas++;continue}if(l===go&&f>0&&i.commas===0){let F=i.nodes;if(f===0||F.length===0){p({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 A=F[F.length-1];A.value+=D.value+l,D=A,i.ranges--;continue}p({type:"dot",value:l});continue}p({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],A=F.nodes.indexOf(i);F.nodes.splice(A,1,...i.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=(i,D)=>{u(t),n(i,D,{watchedPath:t}),D&&t!==D&&rt(L.resolve(t,D),ge,L.join(t,D))};try{return re.watch(t,e,s)}catch(i){r(i)}}const rt=(t,e,u,r,n)=>{const s=ut.get(t);!s||Jt(s[e],i=>{i(u,r,n)})},ua=(t,e,u,r)=>{const{listener:n,errHandler:s,rawEmitter:i}=r;let D=ut.get(e),o;if(!u.persistent)return o=on(t,u,n,s,i),o.close.bind(o);if(D)Se(D,ge,n),Se(D,Qt,s),Se(D,Be,i);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(D.watcherUnusable=!0,Mo&&a.code==="EPERM")try{const f=await Qo(t,"r");await Jo(f),c(a)}catch{}else c(a)}),D={listeners:n,errHandlers:s,rawEmitters:i,watcher:o},ut.set(e,D)}return()=>{$e(D,ge,n),$e(D,Qt,s),$e(D,Be,i),Dn(D.listeners)&&(D.watcher.close(),ut.delete(e),Uo.forEach(ta(D)),D.watcher=void 0,Object.freeze(D))}},eu=new Map,ra=(t,e,u,r)=>{const{listener:n,rawEmitter:s}=r;let i=eu.get(e);const D=i&&i.options;return D&&(D.persistent<u.persistent||D.interval>u.interval)&&(re.unwatchFile(e),i=void 0),i?(Se(i,ge,n),Se(i,Be,s)):(i={listeners:n,rawEmitters:s,options:u,watcher:re.watchFile(e,u,(o,a)=>{Jt(i.rawEmitters,f=>{f(et,e,{curr:o,prev:a})});const c=o.mtimeMs;(o.size!==a.size||c>a.mtimeMs||c===0)&&Jt(i.listeners,f=>f(t,o))})},eu.set(e,i)),()=>{$e(i,ge,n),$e(i,Be,s),Dn(i.listeners)&&(eu.delete(e),re.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}};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 D=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,D,o,{listener:u,rawEmitter:this.fsw._emitRaw})):a=ua(e,D,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),i=this.fsw._getWatchedDir(n);let D=u;if(i.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!==D.mtimeMs)&&this.fsw._emit(et,e,l),Wo&&D.ino!==l.ino?(this.fsw._closeFile(c),D=l,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,o))):D=l}catch{this.fsw._remove(n,s)}else if(i.has(s)){const l=f.atimeMs,C=f.mtimeMs;(!l||l<=C||C!==D.mtimeMs)&&this.fsw._emit(et,e,f),D=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,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let D;try{D=await Zt(r)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(s)!==D&&(this.fsw._symlinkPaths.set(s,D),this.fsw._emit(et,r,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(s,D),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,i,D){if(e=L.join(e,jo),!r.hasGlob&&(D=this.fsw._throttle("readdir",e,1e3),!D))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,i+1))}}).on(nn,this._boundHandleError);return new Promise(f=>c.once(zo,()=>{if(this.fsw.closed){c=void 0;return}const l=D?D.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,i,D)}))}async _handleDir(e,u,r,n,s,i,D){const o=this.fsw._getWatchedDir(L.dirname(e)),a=o.has(L.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!s&&!a&&(!i.hasGlob||i.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(D)){if(!s&&(await this._handleRead(e,r,i,s,e,n,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(C,p)=>{p&&p.mtimeMs===0||this._handleRead(C,!1,i,s,e,n,c)})}return f}async _addToNodeFs(e,u,r,n,s){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const D=this.fsw._getWatchHelpers(e,n);!D.hasGlob&&r&&(D.hasGlob=r.hasGlob,D.globFilter=r.globFilter,D.filterPath=o=>r.filterPath(o),D.filterDir=o=>r.filterDir(o));try{const o=await ea[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(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(D.watchPath,o,u,n,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 Zt(e):e;if(this.fsw.closed)return;const l=L.dirname(D.watchPath);if(this.fsw._getWatchedDir(l).add(D.watchPath),this.fsw._emit(tt,D.watchPath,o),c=await this._handleDir(l,o,u,n,e,D,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(L.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 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 i=fe.get(n);ba(s)&&(n=s);const D=I.resolve(t),o=D!==e,a=(f,l,C)=>{o&&(f=f.replace(e,D)),(f===D||!f.indexOf(D+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,i=fe.get(n),c=!0;break}return i||c?i.listeners.add(a):(i={listeners:new Set([a]),rawEmitter:r,watcher:wa(n,(f,l)=>{if(!i.listeners.size)return;const C=_e.getInfo(f,l);i.listeners.forEach(p=>{p(f,l,C)}),i.rawEmitter(C.event,f,C)})},fe.set(n,i)),()=>{const f=i.listeners;if(f.delete(a),!f.size&&(fe.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}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,i,D,o){const a=s.has(i)?ia:nu;this.handleEvent(a,e,u,r,n,s,i,D,o)}async checkExists(e,u,r,n,s,i,D,o){try{const a=await iu(e);if(this.fsw.closed)return;dn(D,a)?this.addOrChange(e,u,r,n,s,i,D,o):this.handleEvent(nt,e,u,r,n,s,i,D,o)}catch(a){a.code==="EACCES"?this.addOrChange(e,u,r,n,s,i,D,o):this.handleEvent(nt,e,u,r,n,s,i,D,o)}}handleEvent(e,u,r,n,s,i,D,o,a){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===nt){const c=o.type===Te;(c||i.has(D))&&this.fsw._remove(s,D,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(D)}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,D=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(),D}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,i=>{let D=e;return s&&s!==fn?D=i.replace(s,e):i!==fn&&(D=I.join(e,i)),r(D)},!1,n)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,u,r,n,s){const i=r(e),D=u.isDirectory(),o=this.fsw._getWatchedDir(I.dirname(i)),a=I.basename(i);D&&this.fsw._getWatchedDir(i),!o.has(a)&&(o.add(a),(!n.ignoreInitial||s===!0)&&this.fsw._emit(D?an:nu,i,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,i=typeof u===su?u:Fa,D=this.fsw._getWatchHelpers(e);try{const o=await ma[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,r),n&&n>s.depth)return;this.fsw._readdirp(D.watchPath,M({fileFilter:a=>D.filterPath(a),directoryFilter:a=>D.filterDir(a)},ga(s.depth-(n||0)))).on(oa,a=>{if(this.fsw.closed||a.stats.isDirectory()&&!D.filterPath(a))return;const c=I.join(D.watchPath,a.path),{fullPath:f}=a;if(D.followSymlinks&&a.stats.isSymbolicLink()){const l=s.depth===void 0?void 0:Du(c,I.resolve(D.watchPath))+1;this._handleFsEventsSymlink(c,f,i,l)}else this.emitAdd(c,a.stats,i,s,r)}).on(Da,Ca).on(aa,()=>{this.fsw._emitReady()})}else this.emitAdd(D.watchPath,o,i,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,D,i);else{let o;try{o=await hn(D.watchPath)}catch{}this.initWatch(o,e,D,i)}}}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,i)=>(s===Ya&&(r=!0),r||!u[0][i]||au(s,u[0][i],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 i=u.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=gu(u.ignored));let D=0;this._emitReady=()=>{D++,D>=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 i=mn(e);return n&&(i=i.map(D=>{const o=ul(D,n);return s||!lu(D)?o:Oa(o)})),i=i.filter(D=>D.startsWith(du)?(this._ignoredPaths.add(D.slice(1)),!1):(this._ignoredPaths.delete(D),this._ignoredPaths.delete(D+Eu),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,!r,0,0,u);return o&&this._emitReady(),o})).then(D=>{this.closed||D.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 i=this.options;Qa&&(u=v.normalize(u)),i.cwd&&(u=v.relative(i.cwd,u));const D=[e,u];s!==void 0?D.push(r,n,s):n!==void 0?D.push(r,n):r!==void 0&&D.push(r);const o=i.awaitWriteFinish;let a;if(o&&(a=this._pendingWrites.get(u)))return a.lastChange=new Date,this;if(i.atomic){if(e===Cn)return this._pendingUnlinks.set(u,D),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(cu,...c),this._pendingUnlinks.delete(f)})},typeof i.atomic=="number"?i.atomic:100),this;e===st&&this._pendingUnlinks.has(u)&&(e=D[0]=xe,this._pendingUnlinks.delete(u))}if(o&&(e===st||e===xe)&&this._readyEmitted){const c=(f,l)=>{f?(e=D[0]=fu,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===xe&&!this._throttle(xe,u,50))return this;if(i.alwaysStat&&r===void 0&&(e===st||e===Pa||e===xe)){const c=i.cwd?v.join(i.cwd,u):u;let f;try{f=await el(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(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 i;const D=()=>{const a=n.get(u),c=a?a.count:0;return n.delete(u),clearTimeout(i),a&&clearTimeout(a.timeoutObject),c};i=setTimeout(D,r);const o={timeoutObject:i,clear:D,count:0};return n.set(u,o),o}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,r,n){let s,i=e;this.options.cwd&&!v.isAbsolute(e)&&(i=v.join(this.options.cwd,e));const D=new Date,o=a=>{ou.stat(i,(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:D,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)),i=gu(s).filter(o=>typeof o===Cu&&!lu(o)).map(o=>o+Eu),D=this._getGlobIgnored().map(wn(r)).concat(s,i);this._userIgnored=au(D,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={noCache:Boolean(t.flags.noCache),ipc:!0};let u;function r(){u&&!u.killed&&u.exitCode===null&&u.kill(),process.stdout.write(ll),u=cr(t._,e),u.on("message",i=>{if(cl(i)){const D=i.path.startsWith("file:")?Hn(i.path):i.path;D.startsWith("/")&&s.add(D)}})}r();function n(i){u&&u.kill(),process.exit(i)}process.once("SIGINT",()=>n(130)),process.once("SIGTERM",()=>n(143));const s=al(t._,{ignoreInitial:!0,ignored:["**/.*/**","**/{node_modules,bower_components,vendor}/**","**/dist/**"],ignorePermissionErrors:!0}).on("all",r);process.stdin.on("data",r)});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))});
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("./pkgroll_create-require-d7ed1b4a.cjs"),r=require("@esbuild-kit/esm-loader");require("module"),t.require("@esbuild-kit/cjs-loader"),Object.keys(r).forEach(function(e){e!=="default"&&!exports.hasOwnProperty(e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})});
package/dist/loader.js CHANGED
@@ -1 +1 @@
1
- import{r}from"./pkgroll_create-require-97f6f9e8.js";export*from"@esbuild-kit/esm-loader";import"module";r("@esbuild-kit/cjs-loader");
1
+ import{r}from"./pkgroll_create-require-91c05cc3.js";export*from"@esbuild-kit/esm-loader";import"module";r("@esbuild-kit/cjs-loader");
@@ -0,0 +1 @@
1
+ "use strict";var r="3.4.2";exports.version=r;
@@ -0,0 +1 @@
1
+ var r="3.4.2";export{r as v};
@@ -0,0 +1 @@
1
+ "use strict";var r=require("module"),e=require;exports.require=e;
package/dist/repl.cjs ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";var c=require("repl"),n=require("@esbuild-kit/core-utils"),i=require("./package-80b512a7.cjs");function u(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var f=u(c);console.log(`Welcome to tsx v${i.version} (Node.js ${process.version}).
2
+ Type ".help" for more information.`);const r=f.default.start(),{eval:p}=r,d=async function(e,t,o,a){const s=await n.transform(e,".ts").catch(l=>(console.log(l.message),{code:`
3
+ `}));return p.call(this,s.code,t,o,a)};r.eval=d;
package/dist/repl.js CHANGED
@@ -1,3 +1,3 @@
1
- import c from"repl";import{transform as l}from"@esbuild-kit/core-utils";import{v as m}from"./package-fb1d7b77.js";console.log(`Welcome to tsx v${m} (Node.js ${process.version}).
1
+ import c from"repl";import{transform as l}from"@esbuild-kit/core-utils";import{v as m}from"./package-f202b71b.js";console.log(`Welcome to tsx v${m} (Node.js ${process.version}).
2
2
  Type ".help" for more information.`);const o=c.start(),{eval:i}=o,f=async function(e,r,t,s){const n=await l(e,".ts").catch(a=>(console.log(a.message),{code:`
3
3
  `}));return i.call(this,n.code,r,t,s)};o.eval=f;
@@ -0,0 +1 @@
1
+ "use strict";const a=new Set(["--experimental-loader is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature. This feature could change at any time"]),{emit:n}=process;process.emit=function(e,t){if(!(e==="warning"&&a.has(t.message)))return Reflect.apply(n,this,arguments)};
@@ -0,0 +1 @@
1
+ const t=new Set(["--experimental-loader is an experimental feature. This feature could change at any time","Custom ESM Loaders is an experimental feature. This feature could change at any time"]),{emit:n}=process;process.emit=function(e,a){if(!(e==="warning"&&t.has(a.message)))return Reflect.apply(n,this,arguments)};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsx",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files",
5
5
  "keywords": [
6
6
  "esbuild",
@@ -24,6 +24,7 @@
24
24
  "exports": {
25
25
  ".": "./dist/loader.js",
26
26
  "./cli": "./dist/cli.js",
27
+ "./suppress-warnings": "./dist/suppress-warnings.cjs",
27
28
  "./repl": "./dist/repl.js"
28
29
  },
29
30
  "bin": "./dist/cli.js",
@@ -37,7 +38,7 @@
37
38
  "dependencies": {
38
39
  "@esbuild-kit/cjs-loader": "^2.0.1",
39
40
  "@esbuild-kit/core-utils": "^1.2.0",
40
- "@esbuild-kit/esm-loader": "^2.1.2"
41
+ "@esbuild-kit/esm-loader": "^2.1.3"
41
42
  },
42
43
  "optionalDependencies": {
43
44
  "fsevents": "~2.3.2"
@@ -1 +0,0 @@
1
- var r="3.4.1";export{r as v};