tsx 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import ws from"tty";import{transformSync as Rs}from"esbuild";import{v as bs}from"./package-c3cf89e0.mjs";import{r as at}from"./pkgroll_create-require-82fe4d50.mjs";import{pathToFileURL as vs,fileURLToPath as Bs}from"url";import Ss from"child_process";import K from"path";import ie from"fs";import{s as $s}from"./node-features-a792cc3d.mjs";import gu,{constants as Ts}from"os";import xs from"events";import me from"util";import Os from"stream";import"module";const Ns="known-flag",Hs="unknown-flag",Ps="argument",{stringify:_e}=JSON,Ls=/\B([A-Z])/g,Is=t=>t.replace(Ls,"-$1").toLowerCase(),{hasOwnProperty:ks}=Object.prototype,Ae=(t,e)=>ks.call(t,e),Ms=t=>Array.isArray(t),mu=t=>typeof t=="function"?[t,!1]:Ms(t)?[t[0],!0]:mu(t.type),Ws=(t,e)=>t===Boolean?e!=="false":e,Gs=(t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),js=/[\s.:=]/,Us=t=>{const e=`Flag name ${_e(t)}`;if(t.length===0)throw new Error(`${e} cannot be empty`);if(t.length===1)throw new Error(`${e} must be longer than a character`);const u=t.match(js);if(u)throw new Error(`${e} cannot contain ${_e(u==null?void 0:u[0])}`)},Ks=t=>{const e={},u=(n,s)=>{if(Ae(e,n))throw new Error(`Duplicate flags named ${_e(n)}`);e[n]=s};for(const n in t){if(!Ae(t,n))continue;Us(n);const s=t[n],r=[[],...mu(s),s];u(n,r);const i=Is(n);if(n!==i&&u(i,r),"alias"in s&&typeof s.alias=="string"){const{alias:D}=s,o=`Flag alias ${_e(D)} for flag ${_e(n)}`;if(D.length===0)throw new Error(`${o} cannot be empty`);if(D.length>1)throw new Error(`${o} must be a single character`);u(D,r)}}return e},Vs=(t,e)=>{const u={};for(const n in t){if(!Ae(t,n))continue;const[s,,r,i]=e[n];if(s.length===0&&"default"in i){let{default:D}=i;typeof D=="function"&&(D=D()),u[n]=D}else u[n]=r?s:s.pop()}return u},Ie="--",zs=/[.:=]/,Ys=/^-{1,2}\w/,qs=t=>{if(!Ys.test(t))return;const e=!t.startsWith(Ie);let u=t.slice(e?1:2),n;const s=u.match(zs);if(s){const{index:r}=s;n=u.slice(r+1),u=u.slice(0,r)}return[u,n,e]},Xs=(t,{onFlag:e,onArgument:u})=>{let n;const s=(r,i)=>{if(typeof n!="function")return!0;n(r,i),n=void 0};for(let r=0;r<t.length;r+=1){const i=t[r];if(i===Ie){s();const o=t.slice(r+1);u==null||u(o,[r],!0);break}const D=qs(i);if(D){if(s(),!e)continue;const[o,a,c]=D;if(c)for(let f=0;f<o.length;f+=1){s();const l=f===o.length-1;n=e(o[f],l?a:void 0,[r,f+1,l])}else n=e(o,a,[r])}else s(i,[r])&&(u==null||u([i],[r]))}s()},Qs=(t,e)=>{for(const[u,n,s]of e.reverse()){if(n){const r=t[u];let i=r.slice(0,n);if(s||(i+=r.slice(n+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},_u=(t,e=process.argv.slice(2),{ignore:u}={})=>{const n=[],s=Ks(t),r={},i=[];return i[Ie]=[],Xs(e,{onFlag(D,o,a){const c=Ae(s,D);if(!(u!=null&&u(c?Ns:Hs,D,o))){if(c){const[f,l]=s[D],p=Ws(l,o),C=(F,A)=>{n.push(a),A&&n.push(A),f.push(Gs(l,F||""))};return p===void 0?C:C(p)}Ae(r,D)||(r[D]=[]),r[D].push(o===void 0?!0:o),n.push(a)}},onArgument(D,o,a){u!=null&&u(Ps,e[o[0]])||(i.push(...D),a?(i[Ie]=D,e.splice(o[0])):n.push(o))}}),Qs(e,n),{flags:Vs(t,s),unknownFlags:r,_:i}};var Zs=Object.create,ke=Object.defineProperty,Js=Object.defineProperties,er=Object.getOwnPropertyDescriptor,tr=Object.getOwnPropertyDescriptors,ur=Object.getOwnPropertyNames,Au=Object.getOwnPropertySymbols,nr=Object.getPrototypeOf,yu=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,wu=(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={}))yu.call(e,u)&&wu(t,u,e[u]);if(Au)for(var u of Au(e))sr.call(e,u)&&wu(t,u,e[u]);return t},lt=(t,e)=>Js(t,tr(e)),rr=t=>ke(t,"__esModule",{value:!0}),ir=(t,e)=>()=>(t&&(e=t(t=0)),e),Dr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),or=(t,e,u,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ur(e))!yu.call(t,s)&&(u||s!=="default")&&ke(t,s,{get:()=>e[s],enumerable:!(n=er(e,s))||n.enumerable});return t},ar=(t,e)=>or(rr(ke(t!=null?Zs(nr(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),U=ir(()=>{}),lr=Dr((t,e)=>{U(),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]|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D[\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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1C\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\u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DDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});U(),U(),U();var cr=t=>{var e,u,n;let s=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(s)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:s}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(n=t.stdoutColumns)!=null?n:s}};U(),U(),U(),U(),U();function fr({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 Ru(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(fr(),"")}U();function hr(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 dr=ar(lr(),1);function De(t){if(typeof t!="string"||t.length===0||(t=Ru(t),t.length===0))return 0;t=t.replace((0,dr.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+=hr(n)?2:1)}return e}var bu=t=>Math.max(...t.split(`
2
+ import ws from"tty";import{transformSync as Rs}from"esbuild";import{v as bs}from"./package-9e1fc2a5.mjs";import{r as at}from"./pkgroll_create-require-b92e8e0d.mjs";import{pathToFileURL as vs,fileURLToPath as Bs}from"url";import Ss from"child_process";import K from"path";import ie from"fs";import{s as $s}from"./node-features-2541e522.mjs";import gu,{constants as Ts}from"os";import xs from"events";import me from"util";import Os from"stream";import"module";const Ns="known-flag",Hs="unknown-flag",Ps="argument",{stringify:_e}=JSON,Ls=/\B([A-Z])/g,Is=t=>t.replace(Ls,"-$1").toLowerCase(),{hasOwnProperty:ks}=Object.prototype,Ae=(t,e)=>ks.call(t,e),Ms=t=>Array.isArray(t),mu=t=>typeof t=="function"?[t,!1]:Ms(t)?[t[0],!0]:mu(t.type),Ws=(t,e)=>t===Boolean?e!=="false":e,Gs=(t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),js=/[\s.:=]/,Us=t=>{const e=`Flag name ${_e(t)}`;if(t.length===0)throw new Error(`${e} cannot be empty`);if(t.length===1)throw new Error(`${e} must be longer than a character`);const u=t.match(js);if(u)throw new Error(`${e} cannot contain ${_e(u==null?void 0:u[0])}`)},Ks=t=>{const e={},u=(n,s)=>{if(Ae(e,n))throw new Error(`Duplicate flags named ${_e(n)}`);e[n]=s};for(const n in t){if(!Ae(t,n))continue;Us(n);const s=t[n],r=[[],...mu(s),s];u(n,r);const i=Is(n);if(n!==i&&u(i,r),"alias"in s&&typeof s.alias=="string"){const{alias:D}=s,o=`Flag alias ${_e(D)} for flag ${_e(n)}`;if(D.length===0)throw new Error(`${o} cannot be empty`);if(D.length>1)throw new Error(`${o} must be a single character`);u(D,r)}}return e},Vs=(t,e)=>{const u={};for(const n in t){if(!Ae(t,n))continue;const[s,,r,i]=e[n];if(s.length===0&&"default"in i){let{default:D}=i;typeof D=="function"&&(D=D()),u[n]=D}else u[n]=r?s:s.pop()}return u},Ie="--",zs=/[.:=]/,Ys=/^-{1,2}\w/,qs=t=>{if(!Ys.test(t))return;const e=!t.startsWith(Ie);let u=t.slice(e?1:2),n;const s=u.match(zs);if(s){const{index:r}=s;n=u.slice(r+1),u=u.slice(0,r)}return[u,n,e]},Xs=(t,{onFlag:e,onArgument:u})=>{let n;const s=(r,i)=>{if(typeof n!="function")return!0;n(r,i),n=void 0};for(let r=0;r<t.length;r+=1){const i=t[r];if(i===Ie){s();const o=t.slice(r+1);u==null||u(o,[r],!0);break}const D=qs(i);if(D){if(s(),!e)continue;const[o,a,c]=D;if(c)for(let f=0;f<o.length;f+=1){s();const l=f===o.length-1;n=e(o[f],l?a:void 0,[r,f+1,l])}else n=e(o,a,[r])}else s(i,[r])&&(u==null||u([i],[r]))}s()},Qs=(t,e)=>{for(const[u,n,s]of e.reverse()){if(n){const r=t[u];let i=r.slice(0,n);if(s||(i+=r.slice(n+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},_u=(t,e=process.argv.slice(2),{ignore:u}={})=>{const n=[],s=Ks(t),r={},i=[];return i[Ie]=[],Xs(e,{onFlag(D,o,a){const c=Ae(s,D);if(!(u!=null&&u(c?Ns:Hs,D,o))){if(c){const[f,l]=s[D],p=Ws(l,o),C=(F,A)=>{n.push(a),A&&n.push(A),f.push(Gs(l,F||""))};return p===void 0?C:C(p)}Ae(r,D)||(r[D]=[]),r[D].push(o===void 0?!0:o),n.push(a)}},onArgument(D,o,a){u!=null&&u(Ps,e[o[0]])||(i.push(...D),a?(i[Ie]=D,e.splice(o[0])):n.push(o))}}),Qs(e,n),{flags:Vs(t,s),unknownFlags:r,_:i}};var Zs=Object.create,ke=Object.defineProperty,Js=Object.defineProperties,er=Object.getOwnPropertyDescriptor,tr=Object.getOwnPropertyDescriptors,ur=Object.getOwnPropertyNames,Au=Object.getOwnPropertySymbols,nr=Object.getPrototypeOf,yu=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,wu=(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={}))yu.call(e,u)&&wu(t,u,e[u]);if(Au)for(var u of Au(e))sr.call(e,u)&&wu(t,u,e[u]);return t},lt=(t,e)=>Js(t,tr(e)),rr=t=>ke(t,"__esModule",{value:!0}),ir=(t,e)=>()=>(t&&(e=t(t=0)),e),Dr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),or=(t,e,u,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ur(e))!yu.call(t,s)&&(u||s!=="default")&&ke(t,s,{get:()=>e[s],enumerable:!(n=er(e,s))||n.enumerable});return t},ar=(t,e)=>or(rr(ke(t!=null?Zs(nr(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),U=ir(()=>{}),lr=Dr((t,e)=>{U(),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[\uDC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7C\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\uDFF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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}});U(),U(),U();var cr=t=>{var e,u,n;let s=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(s)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:s}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(n=t.stdoutColumns)!=null?n:s}};U(),U(),U(),U(),U();function fr({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 Ru(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(fr(),"")}U();function hr(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 dr=ar(lr(),1);function De(t){if(typeof t!="string"||t.length===0||(t=Ru(t),t.length===0))return 0;t=t.replace((0,dr.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+=hr(n)?2:1)}return e}var bu=t=>Math.max(...t.split(`
3
3
  `).map(De)),Er=t=>{let e=[];for(let u of t){let{length:n}=u,s=n-e.length;for(let r=0;r<s;r+=1)e.push(0);for(let r=0;r<n;r+=1){let i=bu(u[r]);i>e[r]&&(e[r]=i)}}return e};U();var vu=/^\d+%$/,Bu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},pr=(t,e)=>{var u;let n=[];for(let s=0;s<t.length;s+=1){let r=(u=e[s])!=null?u:"auto";if(typeof r=="number"||r==="auto"||r==="content-width"||typeof r=="string"&&vu.test(r)){n.push(lt(Me({},Bu),{width:r,contentWidth:t[s]}));continue}if(r&&typeof r=="object"){let i=lt(Me(Me({},Bu),r),{contentWidth:t[s]});i.horizontalPadding=i.paddingLeft+i.paddingRight,n.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(r)}`)}return n};function Cr(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"&&vu.test(n)){let o=Number.parseFloat(n.slice(0,-1))/100;u.width=Math.floor(e*o)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:s}=u,r=1,i=r+s;if(i>=e){let o=i-e,a=Math.ceil(u.paddingLeft/s*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),r)}}var Su=()=>Object.assign([],{columns:0});function Fr(t,e){let u=[Su()],[n]=u;for(let s of t){let r=s.width+s.horizontalPadding;n.columns+r>e&&(n=Su(),u.push(n)),n.push(s),n.columns+=r}for(let s of u){let r=s.reduce((l,p)=>l+p.width+p.horizontalPadding,0),i=e-r;if(i===0)continue;let D=s.filter(l=>"autoOverflow"in l),o=D.filter(l=>l.autoOverflow>0),a=o.reduce((l,p)=>l+p.autoOverflow,0),c=Math.min(a,i);for(let l of o){let p=Math.floor(l.autoOverflow/a*c);l.width+=p,i-=p}let f=Math.floor(i/D.length);for(let l=0;l<D.length;l+=1){let p=D[l];l===D.length-1?p.width+=i:p.width+=f,i-=f}}return u}function gr(t,e,u){let n=pr(u,e);return Cr(n,t),Fr(n,t)}U(),U(),U();var ct=10,$u=(t=0)=>e=>`\x1B[${e+t}m`,Tu=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,xu=(t=0)=>(e,u,n)=>`\x1B[${38+t};2;${e};${u};${n}m`;function mr(){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[s,r]of Object.entries(n))e[s]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[s]=e[s],t.set(r[0],r[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=$u(),e.color.ansi256=Tu(),e.color.ansi16m=xu(),e.bgColor.ansi=$u(ct),e.bgColor.ansi256=Tu(ct),e.bgColor.ansi16m=xu(ct),Object.defineProperties(e,{rgbToAnsi256:{value:(u,n,s)=>u===n&&n===s?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(s/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:s}=n.groups;s.length===3&&(s=s.split("").map(i=>i+i).join(""));let r=Number.parseInt(s,16);return[r>>16&255,r>>8&255,r&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,s,r;if(u>=232)n=((u-232)*10+8)/255,s=n,r=n;else{u-=16;let o=u%36;n=Math.floor(u/36)/5,s=Math.floor(o/6)/5,r=o%6/5}let i=Math.max(n,s,r)*2;if(i===0)return 30;let D=30+(Math.round(r)<<2|Math.round(s)<<1|Math.round(n));return i===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(u,n,s)=>e.ansi256ToAnsi(e.rgbToAnsi256(u,n,s)),enumerable:!1},hexToAnsi:{value:u=>e.ansi256ToAnsi(e.hexToAnsi256(u)),enumerable:!1}}),e}var _r=mr(),Ar=_r,We=new Set(["\x1B","\x9B"]),yr=39,ft="\x07",Ou="[",wr="]",Nu="m",ht=`${wr}8;;`,Hu=t=>`${We.values().next().value}${Ou}${t}${Nu}`,Pu=t=>`${We.values().next().value}${ht}${t}${ft}`,Rr=t=>t.split(" ").map(e=>De(e)),dt=(t,e,u)=>{let n=[...e],s=!1,r=!1,i=De(Ru(t[t.length-1]));for(let[D,o]of n.entries()){let a=De(o);if(i+a<=u?t[t.length-1]+=o:(t.push(o),i=0),We.has(o)&&(s=!0,r=n.slice(D+1).join("").startsWith(ht)),s){r?o===ft&&(s=!1,r=!1):o===Nu&&(s=!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())},br=t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(De(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")},vr=(t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let n="",s,r,i=Rr(t),D=[""];for(let[a,c]of t.split(" ").entries()){u.trim!==!1&&(D[D.length-1]=D[D.length-1].trimStart());let f=De(D[D.length-1]);if(a!==0&&(f>=e&&(u.wordWrap===!1||u.trim===!1)&&(D.push(""),f=0),(f>0||u.trim===!1)&&(D[D.length-1]+=" ",f++)),u.hard&&i[a]>e){let l=e-f,p=1+Math.floor((i[a]-l-1)/e);Math.floor((i[a]-1)/e)<p&&D.push(""),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=>br(a)));let o=[...D.join(`
4
4
  `)];for(let[a,c]of o.entries()){if(n+=c,We.has(c)){let{groups:l}=new RegExp(`(?:\\${Ou}(?<code>\\d+)m|\\${ht}(?<uri>.*)${ft})`).exec(o.slice(a).join(""))||{groups:{}};if(l.code!==void 0){let p=Number.parseFloat(l.code);s=p===yr?void 0:p}else l.uri!==void 0&&(r=l.uri.length===0?void 0:l.uri)}let f=Ar.codes.get(Number(s));o[a+1]===`
5
5
  `?(r&&(n+=Pu("")),s&&f&&(n+=Hu(f))):c===`
@@ -50,6 +50,6 @@ import ws from"tty";import{transformSync as Rs}from"esbuild";import{v as bs}from
50
50
  * Copyright (c) 2014-present, Jon Schlinkert.
51
51
  * Licensed under the MIT License.
52
52
  */const qD=me,Ln=YD,In=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),XD=t=>e=>t===!0?Number(e):String(e),Vt=t=>typeof t=="number"||typeof t=="string"&&t!=="",be=t=>Number.isInteger(+t),zt=t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},QD=(t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,ZD=(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},kn=(t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},JD=(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="",s="",r;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(s=`-(${u}${t.negatives.join("|")})`),n&&s?r=`${n}|${s}`:r=n||s,e.wrap?`(${u}${r})`:r},Mn=(t,e,u,n)=>{if(u)return Ln(t,e,{wrap:!1,...n});let s=String.fromCharCode(t);if(t===e)return s;let r=String.fromCharCode(e);return`[${s}-${r}]`},Wn=(t,e,u)=>{if(Array.isArray(t)){let n=u.wrap===!0,s=u.capture?"":"?:";return n?`(${s}${t.join("|")})`:t.join("|")}return Ln(t,e,u)},Gn=(...t)=>new RangeError("Invalid range arguments: "+qD.inspect(...t)),jn=(t,e,u)=>{if(u.strictRanges===!0)throw Gn([t,e]);return[]},eo=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},to=(t,e,u=1,n={})=>{let s=Number(t),r=Number(e);if(!Number.isInteger(s)||!Number.isInteger(r)){if(n.strictRanges===!0)throw Gn([t,e]);return[]}s===0&&(s=0),r===0&&(r=0);let i=s>r,D=String(t),o=String(e),a=String(u);u=Math.max(Math.abs(u),1);let c=zt(D)||zt(o)||zt(a),f=c?Math.max(D.length,o.length,a.length):0,l=c===!1&&QD(t,e,n)===!1,p=n.transform||XD(l);if(n.toRegex&&u===1)return Mn(kn(t,f),kn(e,f),!0,n);let C={negatives:[],positives:[]},F=H=>C[H<0?"negatives":"positives"].push(Math.abs(H)),A=[],B=0;for(;i?s>=r:s<=r;)n.toRegex===!0&&u>1?F(s):A.push(ZD(p(s,B),f,l)),s=i?s-u:s+u,B++;return n.toRegex===!0?u>1?JD(C,n):Wn(A,null,{wrap:!1,...n}):A},uo=(t,e,u=1,n={})=>{if(!be(t)&&t.length>1||!be(e)&&e.length>1)return jn(t,e,n);let s=n.transform||(l=>String.fromCharCode(l)),r=`${t}`.charCodeAt(0),i=`${e}`.charCodeAt(0),D=r>i,o=Math.min(r,i),a=Math.max(r,i);if(n.toRegex&&u===1)return Mn(o,a,!1,n);let c=[],f=0;for(;D?r>=i:r<=i;)c.push(s(r,f)),r=D?r-u:r+u,f++;return n.toRegex===!0?Wn(c,null,{wrap:!1,options:n}):c},Ze=(t,e,u,n={})=>{if(e==null&&Vt(t))return[t];if(!Vt(t)||!Vt(e))return jn(t,e,n);if(typeof u=="function")return Ze(t,e,1,{transform:u});if(In(u))return Ze(t,e,0,u);let s={...n};return s.capture===!0&&(s.wrap=!0),u=u||s.step||1,be(u)?be(t)&&be(e)?to(t,e,u,s):uo(t,e,Math.max(Math.abs(u),1),s):u!=null&&!In(u)?eo(u,s):Ze(t,e,1,u)};var Un=Ze;const no=Un,Kn=Qe,so=(t,e={})=>{let u=(n,s={})=>{let r=Kn.isInvalidBrace(s),i=n.invalid===!0&&e.escapeInvalid===!0,D=r===!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=Kn.reduce(n.nodes),f=no(...c,{...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 ro=so;const io=Un,Vn=Ut,pe=Qe,ae=(t="",e="",u=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?pe.flatten(e).map(s=>`{${s}}`):e;for(let s of t)if(Array.isArray(s))for(let r of s)n.push(ae(r,e,u));else for(let r of e)u===!0&&typeof r=="string"&&(r=`{${r}}`),n.push(Array.isArray(r)?ae(s,r,u):s+r);return pe.flatten(n)},Do=(t,e={})=>{let u=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(s,r={})=>{s.queue=[];let i=r,D=r.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,D=i.queue;if(s.invalid||s.dollar){D.push(ae(D.pop(),Vn(s,e)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){D.push(ae(D.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let f=pe.reduce(s.nodes);if(pe.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=io(...f,e);l.length===0&&(l=Vn(s,e)),D.push(ae(D.pop(),l)),s.nodes=[];return}let o=pe.encloseBrace(s),a=s.queue,c=s;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,a=c.queue;for(let f=0;f<s.nodes.length;f++){let l=s.nodes[f];if(l.type==="comma"&&s.type==="brace"){f===1&&a.push(""),a.push("");continue}if(l.type==="close"){D.push(ae(D.pop(),a,o));continue}if(l.value&&l.type!=="open"){a.push(ae(a.pop(),l.value));continue}l.nodes&&n(l,s)}return a};return pe.flatten(n(t))};var oo=Do,ao={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 lo=Ut,{MAX_LENGTH:zn,CHAR_BACKSLASH:Yt,CHAR_BACKTICK:co,CHAR_COMMA:fo,CHAR_DOT:ho,CHAR_LEFT_PARENTHESES:Eo,CHAR_RIGHT_PARENTHESES:po,CHAR_LEFT_CURLY_BRACE:Co,CHAR_RIGHT_CURLY_BRACE:Fo,CHAR_LEFT_SQUARE_BRACKET:Yn,CHAR_RIGHT_SQUARE_BRACKET:qn,CHAR_DOUBLE_QUOTE:go,CHAR_SINGLE_QUOTE:mo,CHAR_NO_BREAK_SPACE:_o,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ao}=ao,yo=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},n=typeof u.maxLength=="number"?Math.min(zn,u.maxLength):zn;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let s={type:"root",input:t,nodes:[]},r=[s],i=s,D=s,o=0,a=t.length,c=0,f=0,l;const p=()=>t[c++],C=F=>{if(F.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&F.type==="text"){D.value+=F.value;return}return i.nodes.push(F),F.parent=i,F.prev=D,D=F,F};for(C({type:"bos"});c<a;)if(i=r[r.length-1],l=p(),!(l===Ao||l===_o)){if(l===Yt){C({type:"text",value:(e.keepEscaping?l:"")+p()});continue}if(l===qn){C({type:"text",value:"\\"+l});continue}if(l===Yn){o++;let F;for(;c<a&&(F=p());){if(l+=F,F===Yn){o++;continue}if(F===Yt){l+=p();continue}if(F===qn&&(o--,o===0))break}C({type:"text",value:l});continue}if(l===Eo){i=C({type:"paren",nodes:[]}),r.push(i),C({type:"text",value:l});continue}if(l===po){if(i.type!=="paren"){C({type:"text",value:l});continue}i=r.pop(),C({type:"text",value:l}),i=r[r.length-1];continue}if(l===go||l===mo||l===co){let F=l,A;for(e.keepQuotes!==!0&&(l="");c<a&&(A=p());){if(A===Yt){l+=A+p();continue}if(A===F){e.keepQuotes===!0&&(l+=A);break}l+=A}C({type:"text",value:l});continue}if(l===Co){f++;let A={type:"brace",open:!0,close:!1,dollar:D.value&&D.value.slice(-1)==="$"||i.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};i=C(A),r.push(i),C({type:"open",value:l});continue}if(l===Fo){if(i.type!=="brace"){C({type:"text",value:l});continue}let F="close";i=r.pop(),i.close=!0,C({type:F,value:l}),f--,i=r[r.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:lo(i)}]}C({type:"comma",value:l}),i.commas++;continue}if(l===ho&&f>0&&i.commas===0){let F=i.nodes;if(f===0||F.length===0){C({type:"text",value:l});continue}if(D.type==="dot"){if(i.range=[],D.value+=l,D.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,D.type="text";continue}i.ranges++,i.args=[];continue}if(D.type==="range"){F.pop();let A=F[F.length-1];A.value+=D.value+l,D=A,i.ranges--;continue}C({type:"dot",value:l});continue}C({type:"text",value:l})}do if(i=r.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=r[r.length-1],A=F.nodes.indexOf(i);F.nodes.splice(A,1,...i.nodes)}while(r.length>0);return C({type:"eos"}),s};var wo=yo;const Xn=Ut,Ro=ro,bo=oo,vo=wo,Y=(t,e={})=>{let u=[];if(Array.isArray(t))for(let n of t){let s=Y.create(n,e);Array.isArray(s)?u.push(...s):u.push(s)}else u=[].concat(Y.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u};Y.parse=(t,e={})=>vo(t,e),Y.stringify=(t,e={})=>Xn(typeof t=="string"?Y.parse(t,e):t,e),Y.compile=(t,e={})=>(typeof t=="string"&&(t=Y.parse(t,e)),Ro(t,e)),Y.expand=(t,e={})=>{typeof t=="string"&&(t=Y.parse(t,e));let u=bo(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},Y.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Y.compile(t,e):Y.expand(t,e);var Bo=Y,So=["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"],$o=So;const To=K,xo=$o,Oo=new Set(xo);var No=t=>Oo.has(To.extname(t).slice(1).toLowerCase()),Je={};(function(t){const{sep:e}=K,{platform:u}=process,n=gu;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=s=>s,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=n.type()==="OS400"})(Je);const ue=ie,L=K,{promisify:ve}=me,Ho=No,{isWindows:Po,isLinux:Lo,EMPTY_FN:Io,EMPTY_STR:ko,KEY_LISTENERS:Ce,KEY_ERR:qt,KEY_RAW:Be,HANDLER_KEYS:Mo,EV_CHANGE:et,EV_ADD:tt,EV_ADD_DIR:Wo,EV_ERROR:Qn,STR_DATA:Go,STR_END:jo,BRACE_START:Uo,STAR:Ko}=Je,Vo="watch",zo=ve(ue.open),Zn=ve(ue.stat),Yo=ve(ue.lstat),qo=ve(ue.close),Xt=ve(ue.realpath),Xo={lstat:Yo,stat:Zn},Qt=(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)},Qo=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]},Jn=t=>t instanceof Set?t.size===0:!t,ut=new Map;function es(t,e,u,n,s){const r=(i,D)=>{u(t),s(i,D,{watchedPath:t}),D&&t!==D&&nt(L.resolve(t,D),Ce,L.join(t,D))};try{return ue.watch(t,e,r)}catch(i){n(i)}}const nt=(t,e,u,n,s)=>{const r=ut.get(t);r&&Qt(r[e],i=>{i(u,n,s)})},Zo=(t,e,u,n)=>{const{listener:s,errHandler:r,rawEmitter:i}=n;let D=ut.get(e),o;if(!u.persistent)return o=es(t,u,s,r,i),o.close.bind(o);if(D)Se(D,Ce,s),Se(D,qt,r),Se(D,Be,i);else{if(o=es(t,u,nt.bind(null,e,Ce),r,nt.bind(null,e,Be)),!o)return;o.on(Qn,async a=>{const c=nt.bind(null,e,qt);if(D.watcherUnusable=!0,Po&&a.code==="EPERM")try{const f=await zo(t,"r");await qo(f),c(a)}catch{}else c(a)}),D={listeners:s,errHandlers:r,rawEmitters:i,watcher:o},ut.set(e,D)}return()=>{$e(D,Ce,s),$e(D,qt,r),$e(D,Be,i),Jn(D.listeners)&&(D.watcher.close(),ut.delete(e),Mo.forEach(Qo(D)),D.watcher=void 0,Object.freeze(D))}},Zt=new Map,Jo=(t,e,u,n)=>{const{listener:s,rawEmitter:r}=n;let i=Zt.get(e);const D=i&&i.options;return D&&(D.persistent<u.persistent||D.interval>u.interval)&&(i.listeners,i.rawEmitters,ue.unwatchFile(e),i=void 0),i?(Se(i,Ce,s),Se(i,Be,r)):(i={listeners:s,rawEmitters:r,options:u,watcher:ue.watchFile(e,u,(o,a)=>{Qt(i.rawEmitters,f=>{f(et,e,{curr:o,prev:a})});const c=o.mtimeMs;(o.size!==a.size||c>a.mtimeMs||c===0)&&Qt(i.listeners,f=>f(t,o))})},Zt.set(e,i)),()=>{$e(i,Ce,s),$e(i,Be,r),Jn(i.listeners)&&(Zt.delete(e),ue.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}};class ea{constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const n=this.fsw.options,s=L.dirname(e),r=L.basename(e);this.fsw._getWatchedDir(s).add(r);const D=L.resolve(e),o={persistent:n.persistent};u||(u=Io);let a;return n.usePolling?(o.interval=n.enableBinaryInterval&&Ho(r)?n.binaryInterval:n.interval,a=Jo(e,D,o,{listener:u,rawEmitter:this.fsw._emitRaw})):a=Zo(e,D,o,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),a}_handleFile(e,u,n){if(this.fsw.closed)return;const s=L.dirname(e),r=L.basename(e),i=this.fsw._getWatchedDir(s);let D=u;if(i.has(r))return;const o=async(c,f)=>{if(this.fsw._throttle(Vo,e,5)){if(!f||f.mtimeMs===0)try{const l=await Zn(e);if(this.fsw.closed)return;const p=l.atimeMs,C=l.mtimeMs;(!p||p<=C||C!==D.mtimeMs)&&this.fsw._emit(et,e,l),Lo&&D.ino!==l.ino?(this.fsw._closeFile(c),D=l,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,o))):D=l}catch{this.fsw._remove(s,r)}else if(i.has(r)){const l=f.atimeMs,p=f.mtimeMs;(!l||l<=p||p!==D.mtimeMs)&&this.fsw._emit(et,e,f),D=f}}},a=this._watchWithNodeFs(e,o);if(!(n&&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,n,s){if(this.fsw.closed)return;const r=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let D;try{D=await Xt(n)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(s)?this.fsw._symlinkPaths.get(r)!==D&&(this.fsw._symlinkPaths.set(r,D),this.fsw._emit(et,n,e.stats)):(i.add(s),this.fsw._symlinkPaths.set(r,D),this.fsw._emit(tt,n,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(r))return!0;this.fsw._symlinkPaths.set(r,!0)}_handleRead(e,u,n,s,r,i,D){if(e=L.join(e,ko),!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(Go,async f=>{if(this.fsw.closed){c=void 0;return}const l=f.path;let p=L.join(e,l);if(a.add(l),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,p,l))){if(this.fsw.closed){c=void 0;return}(l===s||!s&&!o.has(l))&&(this.fsw._incrReadyCount(),p=L.join(r,L.relative(r,p)),this._addToNodeFs(p,u,n,i+1))}}).on(Qn,this._boundHandleError);return new Promise(f=>c.once(jo,()=>{if(this.fsw.closed){c=void 0;return}const l=D?D.clear():!1;f(),o.getChildren().filter(p=>p!==e&&!a.has(p)&&(!n.hasGlob||n.filterPath({fullPath:L.resolve(e,p)}))).forEach(p=>{this.fsw._remove(e,p)}),c=void 0,l&&this._handleRead(e,!1,n,s,r,i,D)}))}async _handleDir(e,u,n,s,r,i,D){const o=this.fsw._getWatchedDir(L.dirname(e)),a=o.has(L.basename(e));!(n&&this.fsw.options.ignoreInitial)&&!r&&!a&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(Wo,e,u),o.add(L.basename(e)),this.fsw._getWatchedDir(e);let c,f;const l=this.fsw.options.depth;if((l==null||s<=l)&&!this.fsw._symlinkPaths.has(D)){if(!r&&(await this._handleRead(e,n,i,r,e,s,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(p,C)=>{C&&C.mtimeMs===0||this._handleRead(p,!1,i,r,e,s,c)})}return f}async _addToNodeFs(e,u,n,s,r){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const D=this.fsw._getWatchHelpers(e,s);!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 Xo[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(Ko)&&!e.includes(Uo);let c;if(o.isDirectory()){const f=L.resolve(e),l=a?await Xt(e):e;if(this.fsw.closed||(c=await this._handleDir(D.watchPath,o,u,s,r,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 Xt(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,s,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 ta=ea,Jt={exports:{}};const eu=ie,I=K,{promisify:tu}=me;let Fe;try{Fe=at("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(Fe){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&&(Fe=void 0)}}const{EV_ADD:uu,EV_CHANGE:ua,EV_ADD_DIR:ts,EV_UNLINK:st,EV_ERROR:na,STR_DATA:sa,STR_END:ra,FSEVENT_CREATED:ia,FSEVENT_MODIFIED:Da,FSEVENT_DELETED:oa,FSEVENT_MOVED:aa,FSEVENT_UNKNOWN:la,FSEVENT_TYPE_FILE:ca,FSEVENT_TYPE_DIRECTORY:Te,FSEVENT_TYPE_SYMLINK:us,ROOT_GLOBSTAR:ns,DIR_SUFFIX:fa,DOT_SLASH:ss,FUNCTION_TYPE:nu,EMPTY_FN:ha,IDENTITY_FN:da}=Je,Ea=t=>isNaN(t)?{}:{depth:t},su=tu(eu.stat),pa=tu(eu.lstat),rs=tu(eu.realpath),Ca={stat:su,lstat:pa},le=new Map,Fa=10,ga=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),ma=(t,e)=>({stop:Fe.watch(t,e)});function _a(t,e,u,n){let s=I.extname(e)?I.dirname(e):e;const r=I.dirname(s);let i=le.get(s);Aa(r)&&(s=r);const D=I.resolve(t),o=D!==e,a=(f,l,p)=>{o&&(f=f.replace(e,D)),(f===D||!f.indexOf(D+I.sep))&&u(f,l,p)};let c=!1;for(const f of le.keys())if(e.indexOf(I.resolve(f)+I.sep)===0){s=f,i=le.get(s),c=!0;break}return i||c?i.listeners.add(a):(i={listeners:new Set([a]),rawEmitter:n,watcher:ma(s,(f,l)=>{if(!i.listeners.size)return;const p=Fe.getInfo(f,l);i.listeners.forEach(C=>{C(f,l,p)}),i.rawEmitter(p.event,f,p)})},le.set(s,i)),()=>{const f=i.listeners;if(f.delete(a),!f.size&&(le.delete(s),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}const Aa=t=>{let e=0;for(const u of le.keys())if(u.indexOf(t)===0&&(e++,e>=Fa))return!0;return!1},ya=()=>Fe&&le.size<128,ru=(t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=I.dirname(t))!==e;)u++;return u},is=(t,e)=>t.type===Te&&e.isDirectory()||t.type===us&&e.isSymbolicLink()||t.type===ca&&e.isFile();class wa{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+ns),!0;n.delete(e),n.delete(e+ns)}addOrChange(e,u,n,s,r,i,D,o){const a=r.has(i)?ua:uu;this.handleEvent(a,e,u,n,s,r,i,D,o)}async checkExists(e,u,n,s,r,i,D,o){try{const a=await su(e);if(this.fsw.closed)return;is(D,a)?this.addOrChange(e,u,n,s,r,i,D,o):this.handleEvent(st,e,u,n,s,r,i,D,o)}catch(a){a.code==="EACCES"?this.addOrChange(e,u,n,s,r,i,D,o):this.handleEvent(st,e,u,n,s,r,i,D,o)}}handleEvent(e,u,n,s,r,i,D,o,a){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===st){const c=o.type===Te;(c||i.has(D))&&this.fsw._remove(r,D,c)}else{if(e===uu){if(o.type===Te&&this.fsw._getWatchedDir(u),o.type===us&&a.followSymlinks){const f=a.depth===void 0?void 0:ru(n,s)+1;return this._addToFsEvents(u,!1,!0,f)}this.fsw._getWatchedDir(r).add(D)}const c=o.type===Te?e+fa:e;this.fsw._emit(c,u),c===ts&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,n,s){if(this.fsw.closed||this.fsw._isIgnored(e))return;const r=this.fsw.options,D=_a(e,u,async(o,a,c)=>{if(this.fsw.closed||r.depth!==void 0&&ru(o,u)>r.depth)return;const f=n(I.join(e,I.relative(e,o)));if(s&&!s(f))return;const l=I.dirname(f),p=I.basename(f),C=this.fsw._getWatchedDir(c.type===Te?f:l);if(ga.has(a)||c.event===la)if(typeof r.ignored===nu){let F;try{F=await su(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,F))return;is(c,F)?this.addOrChange(f,o,u,l,C,p,c,r):this.handleEvent(st,f,o,u,l,C,p,c,r)}else this.checkExists(f,o,u,l,C,p,c,r);else switch(c.event){case ia:case Da:return this.addOrChange(f,o,u,l,C,p,c,r);case oa:case aa:return this.checkExists(f,o,u,l,C,p,c,r)}},this.fsw._emitRaw);return this.fsw._emitReady(),D}async _handleFsEventsSymlink(e,u,n,s){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const r=await rs(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(r))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(r||e,i=>{let D=e;return r&&r!==ss?D=i.replace(r,e):i!==ss&&(D=I.join(e,i)),n(D)},!1,s)}catch(r){if(this.fsw._handleError(r))return this.fsw._emitReady()}}}emitAdd(e,u,n,s,r){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),(!s.ignoreInitial||r===!0)&&this.fsw._emit(D?ts:uu,i,u))}initWatch(e,u,n,s){if(this.fsw.closed)return;const r=this._watchWithFsEvents(n.watchPath,I.resolve(e||n.watchPath),s,n.globFilter);this.fsw._addPathCloser(u,r)}async _addToFsEvents(e,u,n,s){if(this.fsw.closed)return;const r=this.fsw.options,i=typeof u===nu?u:da,D=this.fsw._getWatchHelpers(e);try{const o=await Ca[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,r,n),s&&s>r.depth)return;this.fsw._readdirp(D.watchPath,{fileFilter:a=>D.filterPath(a),directoryFilter:a=>D.filterDir(a),...Ea(r.depth-(s||0))}).on(sa,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=r.depth===void 0?void 0:ru(c,I.resolve(D.watchPath))+1;this._handleFsEventsSymlink(c,f,i,l)}else this.emitAdd(c,a.stats,i,r,n)}).on(na,ha).on(ra,()=>{this.fsw._emitReady()})}else this.emitAdd(D.watchPath,o,i,r,n),this.fsw._emitReady()}catch(o){(!o||this.fsw._handleError(o))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(r.persistent&&n!==!0)if(typeof u===nu)this.initWatch(void 0,e,D,i);else{let o;try{o=await rs(D.watchPath)}catch{}this.initWatch(o,e,D,i)}}}Jt.exports=wa,Jt.exports.canUse=ya;var Ra=Jt.exports;const{EventEmitter:ba}=xs,iu=ie,v=K,{promisify:Ds}=me,va=_D,Du=vD.default,Ba=kD,ou=Bn,Sa=Bo,$a=yn,Ta=ta,os=Ra,{EV_ALL:au,EV_READY:xa,EV_ADD:rt,EV_CHANGE:xe,EV_UNLINK:as,EV_ADD_DIR:Oa,EV_UNLINK_DIR:Na,EV_RAW:Ha,EV_ERROR:lu,STR_CLOSE:Pa,STR_END:La,BACK_SLASH_RE:Ia,DOUBLE_SLASH_RE:ls,SLASH_OR_BACK_SLASH_RE:ka,DOT_RE:Ma,REPLACER_RE:Wa,SLASH:cu,SLASH_SLASH:Ga,BRACE_START:ja,BANG:fu,ONE_DOT:cs,TWO_DOTS:Ua,GLOBSTAR:Ka,SLASH_GLOBSTAR:hu,ANYMATCH_OPTS:du,STRING_TYPE:Eu,FUNCTION_TYPE:Va,EMPTY_STR:pu,EMPTY_FN:za,isWindows:Ya,isMacos:qa,isIBMi:Xa}=Je,Qa=Ds(iu.stat),Za=Ds(iu.readdir),Cu=(t=[])=>Array.isArray(t)?t:[t],fs=(t,e=[])=>(t.forEach(u=>{Array.isArray(u)?fs(u,e):e.push(u)}),e),hs=t=>{const e=fs(Cu(t));if(!e.every(u=>typeof u===Eu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(Es)},ds=t=>{let e=t.replace(Ia,cu),u=!1;for(e.startsWith(Ga)&&(u=!0);e.match(ls);)e=e.replace(ls,cu);return u&&(e=cu+e),e},Es=t=>ds(v.normalize(ds(t))),ps=(t=pu)=>e=>typeof e!==Eu?e:Es(v.isAbsolute(e)?e:v.join(t,e)),Ja=(t,e)=>v.isAbsolute(t)?t:t.startsWith(fu)?fu+v.join(e,t.slice(1)):v.join(e,t),q=(t,e)=>t[e]===void 0;class el{constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;u&&e!==cs&&e!==Ua&&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 Za(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 tl="stat",ul="lstat";class nl{constructor(e,u,n,s){this.fsw=s,this.path=e=e.replace(Wa,pu),this.watchPath=u,this.fullWatchPath=v.resolve(u),this.hasGlob=u!==e,e===pu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&n?void 0:!1,this.globFilter=this.hasGlob?Du(e,void 0,du):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(r=>{r.length>1&&r.pop()}),this.followSymlinks=n,this.statMethod=n?tl:ul}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===Va?this.globFilter(n):!0)&&this.fsw._isntIgnored(n,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(ja)?Sa.expand(e):[e]).forEach(s=>{u.push(v.relative(this.watchPath,s).split(ka))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let n=!1;this.unmatchedGlob=!this.dirParts.some(s=>s.every((r,i)=>(r===Ka&&(n=!0),n||!u[0][i]||Du(r,u[0][i],du))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class sl extends ba{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,q(u,"persistent")&&(u.persistent=!0),q(u,"ignoreInitial")&&(u.ignoreInitial=!1),q(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),q(u,"interval")&&(u.interval=100),q(u,"binaryInterval")&&(u.binaryInterval=300),q(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,q(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),os.canUse()||(u.useFsEvents=!1),q(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=qa),Xa&&(u.usePolling=!0);const s=process.env.CHOKIDAR_USEPOLLING;if(s!==void 0){const o=s.toLowerCase();o==="false"||o==="0"?u.usePolling=!1:o==="true"||o==="1"?u.usePolling=!0:u.usePolling=!!o}const r=process.env.CHOKIDAR_INTERVAL;r&&(u.interval=Number.parseInt(r,10)),q(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),q(u,"followSymlinks")&&(u.followSymlinks=!0),q(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=Cu(u.ignored));let D=0;this._emitReady=()=>{D++,D>=this._readyCount&&(this._emitReady=za,this._readyEmitted=!0,process.nextTick(()=>this.emit(xa)))},this._emitRaw=(...o)=>this.emit(Ha,...o),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new os(this):this._nodeFsHandler=new Ta(this),Object.freeze(u)}add(e,u,n){const{cwd:s,disableGlobbing:r}=this.options;this.closed=!1;let i=hs(e);return s&&(i=i.map(D=>{const o=Ja(D,s);return r||!ou(D)?o:$a(o)})),i=i.filter(D=>D.startsWith(fu)?(this._ignoredPaths.add(D.slice(1)),!1):(this._ignoredPaths.delete(D),this._ignoredPaths.delete(D+hu),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=hs(e),{cwd:n}=this.options;return u.forEach(s=>{!v.isAbsolute(s)&&!this._closers.has(s)&&(n&&(s=v.join(n,s)),s=v.resolve(s)),this._closePath(s),this._ignoredPaths.add(s),this._watched.has(s)&&this._ignoredPaths.add(s+hu),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 s=n();s instanceof Promise&&e.push(s)})),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 s=this.options.cwd?v.relative(this.options.cwd,n):n;e[s||cs]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==lu&&this.emit(au,...u)}async _emit(e,u,n,s,r){if(this.closed)return;const i=this.options;Ya&&(u=v.normalize(u)),i.cwd&&(u=v.relative(i.cwd,u));const D=[e,u];r!==void 0?D.push(n,s,r):s!==void 0?D.push(n,s):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===as)return this._pendingUnlinks.set(u,D),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(au,...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]=lu,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===Oa||e===xe)){const c=i.cwd?v.join(i.cwd,u):u;let f;try{f=await Qa(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(lu,e),e||this.closed}_throttle(e,u,n){this._throttled.has(e)||this._throttled.set(e,new Map);const s=this._throttled.get(e),r=s.get(u);if(r)return r.count++,!1;let i;const D=()=>{const a=s.get(u),c=a?a.count:0;return s.delete(u),clearTimeout(i),a&&clearTimeout(a.timeoutObject),c};i=setTimeout(D,n);const o={timeoutObject:i,clear:D,count:0};return s.set(u,o),o}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,n,s){let r,i=e;this.options.cwd&&!v.isAbsolute(e)&&(i=v.join(this.options.cwd,e));const D=new Date,o=a=>{iu.stat(i,(c,f)=>{if(c||!this._pendingWrites.has(e)){c&&c.code!=="ENOENT"&&s(c);return}const l=Number(new Date);a&&f.size!==a.size&&(this._pendingWrites.get(e).lastChange=l);const p=this._pendingWrites.get(e);l-p.lastChange>=u?(this._pendingWrites.delete(e),s(void 0,f)):r=setTimeout(o,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:D,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(r),n)}),r=setTimeout(o,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Ma.test(e))return!0;if(!this._userIgnored){const{cwd:n}=this.options,s=this.options.ignored,r=s&&s.map(ps(n)),i=Cu(r).filter(o=>typeof o===Eu&&!ou(o)).map(o=>o+hu),D=this._getGlobIgnored().map(ps(n)).concat(r,i);this._userIgnored=Du(D,void 0,du)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const n=u||this.options.disableGlobbing||!ou(e)?e:Ba(e),s=this.options.followSymlinks;return new nl(e,n,s,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 el(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const n=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(n.toString(8)[0],10))}_remove(e,u,n){const s=v.join(e,u),r=v.resolve(s);if(n=n!=null?n:this._watched.has(s)||this._watched.has(r),!this._throttle("remove",s,100))return;!n&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(s).getChildren().forEach(l=>this._remove(s,l));const o=this._getWatchedDir(e),a=o.has(u);o.remove(u),this._symlinkPaths.has(r)&&this._symlinkPaths.delete(r);let c=s;if(this.options.cwd&&(c=v.relative(this.options.cwd,s)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===rt)return;this._watched.delete(s),this._watched.delete(r);const f=n?Na:as;a&&!this._isIgnored(s)&&this._emit(f,s),this.options.useFsEvents||this._closePath(s)}_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={type:au,alwaysStat:!0,lstat:!0,...u};let s=va(e,n);return this._streams.add(s),s.once(Pa,()=>{s=void 0}),s.once(La,()=>{s&&(this._streams.delete(s),s=void 0)}),s}}const rl=(t,e)=>{const u=new sl(e);return u.add(t),u};var il=rl;const it=(t=!0)=>{let e=!1;return u=>{if(e||u==="unknown-flag")return!0;if(u==="argument")return e=!0,t}},Cs=(t,e=process.argv.slice(2))=>(_u(t,e,{ignore:it()}),e);let ce=!0;const ge=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let Oe=0;if(ge.process&&ge.process.env&&ge.process.stdout){const{FORCE_COLOR:t,NODE_DISABLE_COLORS:e,NO_COLOR:u,TERM:n,COLORTERM:s}=ge.process.env;e||u||t==="0"?ce=!1:t==="1"||t==="2"||t==="3"?ce=!0:n==="dumb"?ce=!1:"CI"in ge.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(r=>r in ge.process.env)?ce=!0:ce=process.stdout.isTTY,ce&&(process.platform==="win32"||s&&(s==="truecolor"||s==="24bit")?Oe=3:n&&(n.endsWith("-256color")||n.endsWith("256"))?Oe=2:Oe=1)}let Fs={enabled:ce,supportLevel:Oe};function gs(t,e,u=1){const n=`\x1B[${t}m`,s=`\x1B[${e}m`,r=new RegExp(`\\x1b\\[${e}m`,"g");return i=>Fs.enabled&&Fs.supportLevel>=u?n+(""+i).replace(r,n)+s:""+i}const Dl=gs(90,39),ol=gs(96,39),al=()=>new Date().toLocaleTimeString(),Fu=(...t)=>console.log(Dl(al()),ol("[tsx]"),...t),ll="\x1Bc";function cl(t,e){let u;return()=>{u&&clearTimeout(u),u=setTimeout(()=>t(),e)}}const fl=async t=>{const e=new Promise(u=>{t.on("exit",u)});t.kill(),await e},ms={noCache:{type:Boolean,description:"Disable caching",default:!1},tsconfig:{type:String,description:"Custom tsconfig.json path"},clearScreen:{type:Boolean,description:"Clearing the screen on rerun",default:!0},ignore:{type:[String],description:"Paths & globs to exclude from being watched"}},hl=Qr({name:"watch",parameters:["<script path>"],flags:ms,help:{description:"Run the script and watch for changes"},ignoreArgv:it(!1)},t=>{const e=Cs(ms,process.argv.slice(3)),u={noCache:t.flags.noCache,tsconfigPath:t.flags.tsconfig,clearScreen:t.flags.clearScreen,ignore:t.flags.ignore,ipc:!0};let n;const s=()=>{const c=nn(e,u);return c.on("message",f=>{if(f&&typeof f=="object"&&"type"in f&&f.type==="dependency"&&"path"in f&&typeof f.path=="string"){const l=f.path.startsWith("file:")?Bs(f.path):f.path;K.isAbsolute(l)&&a.add(l)}}),c};let r=!1;const i=cl(async()=>{if(r){Fu("forcing restart"),n.kill("SIGKILL");return}(n==null?void 0:n.exitCode)===null?(Fu("restarting"),r=!0,await fl(n),r=!1):Fu("rerunning"),u.clearScreen&&process.stdout.write(ll),n=s()},100);i();function D(c){process.exit(128+Ts.signals[c])}function o(c){n&&n.exitCode===null?(n.on("close",()=>D(c)),n.kill(c)):D(c)}process.once("SIGINT",o),process.once("SIGTERM",o);const a=il(t._,{cwd:process.cwd(),ignoreInitial:!0,ignored:["**/.*/**","**/.*","**/{node_modules,bower_components,vendor}/**",...u.ignore],ignorePermissionErrors:!0}).on("all",i);process.stdin.on("data",i)}),_s={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}};Wu({name:"tsx",parameters:["[script path]"],commands:[hl],flags:{..._s,version:{type:Boolean,alias:"v",description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1,ignoreArgv:it()},t=>{t.flags.version?process.stdout.write(`tsx v${bs}
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 lo=Ut,{MAX_LENGTH:zn,CHAR_BACKSLASH:Yt,CHAR_BACKTICK:co,CHAR_COMMA:fo,CHAR_DOT:ho,CHAR_LEFT_PARENTHESES:Eo,CHAR_RIGHT_PARENTHESES:po,CHAR_LEFT_CURLY_BRACE:Co,CHAR_RIGHT_CURLY_BRACE:Fo,CHAR_LEFT_SQUARE_BRACKET:Yn,CHAR_RIGHT_SQUARE_BRACKET:qn,CHAR_DOUBLE_QUOTE:go,CHAR_SINGLE_QUOTE:mo,CHAR_NO_BREAK_SPACE:_o,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ao}=ao,yo=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},n=typeof u.maxLength=="number"?Math.min(zn,u.maxLength):zn;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let s={type:"root",input:t,nodes:[]},r=[s],i=s,D=s,o=0,a=t.length,c=0,f=0,l;const p=()=>t[c++],C=F=>{if(F.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&F.type==="text"){D.value+=F.value;return}return i.nodes.push(F),F.parent=i,F.prev=D,D=F,F};for(C({type:"bos"});c<a;)if(i=r[r.length-1],l=p(),!(l===Ao||l===_o)){if(l===Yt){C({type:"text",value:(e.keepEscaping?l:"")+p()});continue}if(l===qn){C({type:"text",value:"\\"+l});continue}if(l===Yn){o++;let F;for(;c<a&&(F=p());){if(l+=F,F===Yn){o++;continue}if(F===Yt){l+=p();continue}if(F===qn&&(o--,o===0))break}C({type:"text",value:l});continue}if(l===Eo){i=C({type:"paren",nodes:[]}),r.push(i),C({type:"text",value:l});continue}if(l===po){if(i.type!=="paren"){C({type:"text",value:l});continue}i=r.pop(),C({type:"text",value:l}),i=r[r.length-1];continue}if(l===go||l===mo||l===co){let F=l,A;for(e.keepQuotes!==!0&&(l="");c<a&&(A=p());){if(A===Yt){l+=A+p();continue}if(A===F){e.keepQuotes===!0&&(l+=A);break}l+=A}C({type:"text",value:l});continue}if(l===Co){f++;let A={type:"brace",open:!0,close:!1,dollar:D.value&&D.value.slice(-1)==="$"||i.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};i=C(A),r.push(i),C({type:"open",value:l});continue}if(l===Fo){if(i.type!=="brace"){C({type:"text",value:l});continue}let F="close";i=r.pop(),i.close=!0,C({type:F,value:l}),f--,i=r[r.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:lo(i)}]}C({type:"comma",value:l}),i.commas++;continue}if(l===ho&&f>0&&i.commas===0){let F=i.nodes;if(f===0||F.length===0){C({type:"text",value:l});continue}if(D.type==="dot"){if(i.range=[],D.value+=l,D.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,D.type="text";continue}i.ranges++,i.args=[];continue}if(D.type==="range"){F.pop();let A=F[F.length-1];A.value+=D.value+l,D=A,i.ranges--;continue}C({type:"dot",value:l});continue}C({type:"text",value:l})}do if(i=r.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=r[r.length-1],A=F.nodes.indexOf(i);F.nodes.splice(A,1,...i.nodes)}while(r.length>0);return C({type:"eos"}),s};var wo=yo;const Xn=Ut,Ro=ro,bo=oo,vo=wo,Y=(t,e={})=>{let u=[];if(Array.isArray(t))for(let n of t){let s=Y.create(n,e);Array.isArray(s)?u.push(...s):u.push(s)}else u=[].concat(Y.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u};Y.parse=(t,e={})=>vo(t,e),Y.stringify=(t,e={})=>Xn(typeof t=="string"?Y.parse(t,e):t,e),Y.compile=(t,e={})=>(typeof t=="string"&&(t=Y.parse(t,e)),Ro(t,e)),Y.expand=(t,e={})=>{typeof t=="string"&&(t=Y.parse(t,e));let u=bo(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},Y.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Y.compile(t,e):Y.expand(t,e);var Bo=Y,So=["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"],$o=So;const To=K,xo=$o,Oo=new Set(xo);var No=t=>Oo.has(To.extname(t).slice(1).toLowerCase()),Je={};(function(t){const{sep:e}=K,{platform:u}=process,n=gu;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=s=>s,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=n.type()==="OS400"})(Je);const ue=ie,L=K,{promisify:ve}=me,Ho=No,{isWindows:Po,isLinux:Lo,EMPTY_FN:Io,EMPTY_STR:ko,KEY_LISTENERS:Ce,KEY_ERR:qt,KEY_RAW:Be,HANDLER_KEYS:Mo,EV_CHANGE:et,EV_ADD:tt,EV_ADD_DIR:Wo,EV_ERROR:Qn,STR_DATA:Go,STR_END:jo,BRACE_START:Uo,STAR:Ko}=Je,Vo="watch",zo=ve(ue.open),Zn=ve(ue.stat),Yo=ve(ue.lstat),qo=ve(ue.close),Xt=ve(ue.realpath),Xo={lstat:Yo,stat:Zn},Qt=(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)},Qo=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]},Jn=t=>t instanceof Set?t.size===0:!t,ut=new Map;function es(t,e,u,n,s){const r=(i,D)=>{u(t),s(i,D,{watchedPath:t}),D&&t!==D&&nt(L.resolve(t,D),Ce,L.join(t,D))};try{return ue.watch(t,e,r)}catch(i){n(i)}}const nt=(t,e,u,n,s)=>{const r=ut.get(t);r&&Qt(r[e],i=>{i(u,n,s)})},Zo=(t,e,u,n)=>{const{listener:s,errHandler:r,rawEmitter:i}=n;let D=ut.get(e),o;if(!u.persistent)return o=es(t,u,s,r,i),o.close.bind(o);if(D)Se(D,Ce,s),Se(D,qt,r),Se(D,Be,i);else{if(o=es(t,u,nt.bind(null,e,Ce),r,nt.bind(null,e,Be)),!o)return;o.on(Qn,async a=>{const c=nt.bind(null,e,qt);if(D.watcherUnusable=!0,Po&&a.code==="EPERM")try{const f=await zo(t,"r");await qo(f),c(a)}catch{}else c(a)}),D={listeners:s,errHandlers:r,rawEmitters:i,watcher:o},ut.set(e,D)}return()=>{$e(D,Ce,s),$e(D,qt,r),$e(D,Be,i),Jn(D.listeners)&&(D.watcher.close(),ut.delete(e),Mo.forEach(Qo(D)),D.watcher=void 0,Object.freeze(D))}},Zt=new Map,Jo=(t,e,u,n)=>{const{listener:s,rawEmitter:r}=n;let i=Zt.get(e);const D=i&&i.options;return D&&(D.persistent<u.persistent||D.interval>u.interval)&&(i.listeners,i.rawEmitters,ue.unwatchFile(e),i=void 0),i?(Se(i,Ce,s),Se(i,Be,r)):(i={listeners:s,rawEmitters:r,options:u,watcher:ue.watchFile(e,u,(o,a)=>{Qt(i.rawEmitters,f=>{f(et,e,{curr:o,prev:a})});const c=o.mtimeMs;(o.size!==a.size||c>a.mtimeMs||c===0)&&Qt(i.listeners,f=>f(t,o))})},Zt.set(e,i)),()=>{$e(i,Ce,s),$e(i,Be,r),Jn(i.listeners)&&(Zt.delete(e),ue.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}};let ea=class{constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const n=this.fsw.options,s=L.dirname(e),r=L.basename(e);this.fsw._getWatchedDir(s).add(r);const D=L.resolve(e),o={persistent:n.persistent};u||(u=Io);let a;return n.usePolling?(o.interval=n.enableBinaryInterval&&Ho(r)?n.binaryInterval:n.interval,a=Jo(e,D,o,{listener:u,rawEmitter:this.fsw._emitRaw})):a=Zo(e,D,o,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),a}_handleFile(e,u,n){if(this.fsw.closed)return;const s=L.dirname(e),r=L.basename(e),i=this.fsw._getWatchedDir(s);let D=u;if(i.has(r))return;const o=async(c,f)=>{if(this.fsw._throttle(Vo,e,5)){if(!f||f.mtimeMs===0)try{const l=await Zn(e);if(this.fsw.closed)return;const p=l.atimeMs,C=l.mtimeMs;(!p||p<=C||C!==D.mtimeMs)&&this.fsw._emit(et,e,l),Lo&&D.ino!==l.ino?(this.fsw._closeFile(c),D=l,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,o))):D=l}catch{this.fsw._remove(s,r)}else if(i.has(r)){const l=f.atimeMs,p=f.mtimeMs;(!l||l<=p||p!==D.mtimeMs)&&this.fsw._emit(et,e,f),D=f}}},a=this._watchWithNodeFs(e,o);if(!(n&&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,n,s){if(this.fsw.closed)return;const r=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let D;try{D=await Xt(n)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(s)?this.fsw._symlinkPaths.get(r)!==D&&(this.fsw._symlinkPaths.set(r,D),this.fsw._emit(et,n,e.stats)):(i.add(s),this.fsw._symlinkPaths.set(r,D),this.fsw._emit(tt,n,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(r))return!0;this.fsw._symlinkPaths.set(r,!0)}_handleRead(e,u,n,s,r,i,D){if(e=L.join(e,ko),!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(Go,async f=>{if(this.fsw.closed){c=void 0;return}const l=f.path;let p=L.join(e,l);if(a.add(l),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,p,l))){if(this.fsw.closed){c=void 0;return}(l===s||!s&&!o.has(l))&&(this.fsw._incrReadyCount(),p=L.join(r,L.relative(r,p)),this._addToNodeFs(p,u,n,i+1))}}).on(Qn,this._boundHandleError);return new Promise(f=>c.once(jo,()=>{if(this.fsw.closed){c=void 0;return}const l=D?D.clear():!1;f(),o.getChildren().filter(p=>p!==e&&!a.has(p)&&(!n.hasGlob||n.filterPath({fullPath:L.resolve(e,p)}))).forEach(p=>{this.fsw._remove(e,p)}),c=void 0,l&&this._handleRead(e,!1,n,s,r,i,D)}))}async _handleDir(e,u,n,s,r,i,D){const o=this.fsw._getWatchedDir(L.dirname(e)),a=o.has(L.basename(e));!(n&&this.fsw.options.ignoreInitial)&&!r&&!a&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(Wo,e,u),o.add(L.basename(e)),this.fsw._getWatchedDir(e);let c,f;const l=this.fsw.options.depth;if((l==null||s<=l)&&!this.fsw._symlinkPaths.has(D)){if(!r&&(await this._handleRead(e,n,i,r,e,s,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(p,C)=>{C&&C.mtimeMs===0||this._handleRead(p,!1,i,r,e,s,c)})}return f}async _addToNodeFs(e,u,n,s,r){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const D=this.fsw._getWatchHelpers(e,s);!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 Xo[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(Ko)&&!e.includes(Uo);let c;if(o.isDirectory()){const f=L.resolve(e),l=a?await Xt(e):e;if(this.fsw.closed||(c=await this._handleDir(D.watchPath,o,u,s,r,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 Xt(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,s,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 ta=ea,Jt={exports:{}};const eu=ie,I=K,{promisify:tu}=me;let Fe;try{Fe=at("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(Fe){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&&(Fe=void 0)}}const{EV_ADD:uu,EV_CHANGE:ua,EV_ADD_DIR:ts,EV_UNLINK:st,EV_ERROR:na,STR_DATA:sa,STR_END:ra,FSEVENT_CREATED:ia,FSEVENT_MODIFIED:Da,FSEVENT_DELETED:oa,FSEVENT_MOVED:aa,FSEVENT_UNKNOWN:la,FSEVENT_TYPE_FILE:ca,FSEVENT_TYPE_DIRECTORY:Te,FSEVENT_TYPE_SYMLINK:us,ROOT_GLOBSTAR:ns,DIR_SUFFIX:fa,DOT_SLASH:ss,FUNCTION_TYPE:nu,EMPTY_FN:ha,IDENTITY_FN:da}=Je,Ea=t=>isNaN(t)?{}:{depth:t},su=tu(eu.stat),pa=tu(eu.lstat),rs=tu(eu.realpath),Ca={stat:su,lstat:pa},le=new Map,Fa=10,ga=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),ma=(t,e)=>({stop:Fe.watch(t,e)});function _a(t,e,u,n){let s=I.extname(e)?I.dirname(e):e;const r=I.dirname(s);let i=le.get(s);Aa(r)&&(s=r);const D=I.resolve(t),o=D!==e,a=(f,l,p)=>{o&&(f=f.replace(e,D)),(f===D||!f.indexOf(D+I.sep))&&u(f,l,p)};let c=!1;for(const f of le.keys())if(e.indexOf(I.resolve(f)+I.sep)===0){s=f,i=le.get(s),c=!0;break}return i||c?i.listeners.add(a):(i={listeners:new Set([a]),rawEmitter:n,watcher:ma(s,(f,l)=>{if(!i.listeners.size)return;const p=Fe.getInfo(f,l);i.listeners.forEach(C=>{C(f,l,p)}),i.rawEmitter(p.event,f,p)})},le.set(s,i)),()=>{const f=i.listeners;if(f.delete(a),!f.size&&(le.delete(s),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}const Aa=t=>{let e=0;for(const u of le.keys())if(u.indexOf(t)===0&&(e++,e>=Fa))return!0;return!1},ya=()=>Fe&&le.size<128,ru=(t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=I.dirname(t))!==e;)u++;return u},is=(t,e)=>t.type===Te&&e.isDirectory()||t.type===us&&e.isSymbolicLink()||t.type===ca&&e.isFile();let wa=class{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+ns),!0;n.delete(e),n.delete(e+ns)}addOrChange(e,u,n,s,r,i,D,o){const a=r.has(i)?ua:uu;this.handleEvent(a,e,u,n,s,r,i,D,o)}async checkExists(e,u,n,s,r,i,D,o){try{const a=await su(e);if(this.fsw.closed)return;is(D,a)?this.addOrChange(e,u,n,s,r,i,D,o):this.handleEvent(st,e,u,n,s,r,i,D,o)}catch(a){a.code==="EACCES"?this.addOrChange(e,u,n,s,r,i,D,o):this.handleEvent(st,e,u,n,s,r,i,D,o)}}handleEvent(e,u,n,s,r,i,D,o,a){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===st){const c=o.type===Te;(c||i.has(D))&&this.fsw._remove(r,D,c)}else{if(e===uu){if(o.type===Te&&this.fsw._getWatchedDir(u),o.type===us&&a.followSymlinks){const f=a.depth===void 0?void 0:ru(n,s)+1;return this._addToFsEvents(u,!1,!0,f)}this.fsw._getWatchedDir(r).add(D)}const c=o.type===Te?e+fa:e;this.fsw._emit(c,u),c===ts&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,n,s){if(this.fsw.closed||this.fsw._isIgnored(e))return;const r=this.fsw.options,D=_a(e,u,async(o,a,c)=>{if(this.fsw.closed||r.depth!==void 0&&ru(o,u)>r.depth)return;const f=n(I.join(e,I.relative(e,o)));if(s&&!s(f))return;const l=I.dirname(f),p=I.basename(f),C=this.fsw._getWatchedDir(c.type===Te?f:l);if(ga.has(a)||c.event===la)if(typeof r.ignored===nu){let F;try{F=await su(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,F))return;is(c,F)?this.addOrChange(f,o,u,l,C,p,c,r):this.handleEvent(st,f,o,u,l,C,p,c,r)}else this.checkExists(f,o,u,l,C,p,c,r);else switch(c.event){case ia:case Da:return this.addOrChange(f,o,u,l,C,p,c,r);case oa:case aa:return this.checkExists(f,o,u,l,C,p,c,r)}},this.fsw._emitRaw);return this.fsw._emitReady(),D}async _handleFsEventsSymlink(e,u,n,s){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const r=await rs(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(r))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(r||e,i=>{let D=e;return r&&r!==ss?D=i.replace(r,e):i!==ss&&(D=I.join(e,i)),n(D)},!1,s)}catch(r){if(this.fsw._handleError(r))return this.fsw._emitReady()}}}emitAdd(e,u,n,s,r){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),(!s.ignoreInitial||r===!0)&&this.fsw._emit(D?ts:uu,i,u))}initWatch(e,u,n,s){if(this.fsw.closed)return;const r=this._watchWithFsEvents(n.watchPath,I.resolve(e||n.watchPath),s,n.globFilter);this.fsw._addPathCloser(u,r)}async _addToFsEvents(e,u,n,s){if(this.fsw.closed)return;const r=this.fsw.options,i=typeof u===nu?u:da,D=this.fsw._getWatchHelpers(e);try{const o=await Ca[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,r,n),s&&s>r.depth)return;this.fsw._readdirp(D.watchPath,{fileFilter:a=>D.filterPath(a),directoryFilter:a=>D.filterDir(a),...Ea(r.depth-(s||0))}).on(sa,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=r.depth===void 0?void 0:ru(c,I.resolve(D.watchPath))+1;this._handleFsEventsSymlink(c,f,i,l)}else this.emitAdd(c,a.stats,i,r,n)}).on(na,ha).on(ra,()=>{this.fsw._emitReady()})}else this.emitAdd(D.watchPath,o,i,r,n),this.fsw._emitReady()}catch(o){(!o||this.fsw._handleError(o))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(r.persistent&&n!==!0)if(typeof u===nu)this.initWatch(void 0,e,D,i);else{let o;try{o=await rs(D.watchPath)}catch{}this.initWatch(o,e,D,i)}}};Jt.exports=wa,Jt.exports.canUse=ya;var Ra=Jt.exports;const{EventEmitter:ba}=xs,iu=ie,v=K,{promisify:Ds}=me,va=_D,Du=vD.default,Ba=kD,ou=Bn,Sa=Bo,$a=yn,Ta=ta,os=Ra,{EV_ALL:au,EV_READY:xa,EV_ADD:rt,EV_CHANGE:xe,EV_UNLINK:as,EV_ADD_DIR:Oa,EV_UNLINK_DIR:Na,EV_RAW:Ha,EV_ERROR:lu,STR_CLOSE:Pa,STR_END:La,BACK_SLASH_RE:Ia,DOUBLE_SLASH_RE:ls,SLASH_OR_BACK_SLASH_RE:ka,DOT_RE:Ma,REPLACER_RE:Wa,SLASH:cu,SLASH_SLASH:Ga,BRACE_START:ja,BANG:fu,ONE_DOT:cs,TWO_DOTS:Ua,GLOBSTAR:Ka,SLASH_GLOBSTAR:hu,ANYMATCH_OPTS:du,STRING_TYPE:Eu,FUNCTION_TYPE:Va,EMPTY_STR:pu,EMPTY_FN:za,isWindows:Ya,isMacos:qa,isIBMi:Xa}=Je,Qa=Ds(iu.stat),Za=Ds(iu.readdir),Cu=(t=[])=>Array.isArray(t)?t:[t],fs=(t,e=[])=>(t.forEach(u=>{Array.isArray(u)?fs(u,e):e.push(u)}),e),hs=t=>{const e=fs(Cu(t));if(!e.every(u=>typeof u===Eu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(Es)},ds=t=>{let e=t.replace(Ia,cu),u=!1;for(e.startsWith(Ga)&&(u=!0);e.match(ls);)e=e.replace(ls,cu);return u&&(e=cu+e),e},Es=t=>ds(v.normalize(ds(t))),ps=(t=pu)=>e=>typeof e!==Eu?e:Es(v.isAbsolute(e)?e:v.join(t,e)),Ja=(t,e)=>v.isAbsolute(t)?t:t.startsWith(fu)?fu+v.join(e,t.slice(1)):v.join(e,t),q=(t,e)=>t[e]===void 0;class el{constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;u&&e!==cs&&e!==Ua&&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 Za(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 tl="stat",ul="lstat";class nl{constructor(e,u,n,s){this.fsw=s,this.path=e=e.replace(Wa,pu),this.watchPath=u,this.fullWatchPath=v.resolve(u),this.hasGlob=u!==e,e===pu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&n?void 0:!1,this.globFilter=this.hasGlob?Du(e,void 0,du):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(r=>{r.length>1&&r.pop()}),this.followSymlinks=n,this.statMethod=n?tl:ul}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===Va?this.globFilter(n):!0)&&this.fsw._isntIgnored(n,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(ja)?Sa.expand(e):[e]).forEach(s=>{u.push(v.relative(this.watchPath,s).split(ka))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let n=!1;this.unmatchedGlob=!this.dirParts.some(s=>s.every((r,i)=>(r===Ka&&(n=!0),n||!u[0][i]||Du(r,u[0][i],du))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class sl extends ba{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,q(u,"persistent")&&(u.persistent=!0),q(u,"ignoreInitial")&&(u.ignoreInitial=!1),q(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),q(u,"interval")&&(u.interval=100),q(u,"binaryInterval")&&(u.binaryInterval=300),q(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,q(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),os.canUse()||(u.useFsEvents=!1),q(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=qa),Xa&&(u.usePolling=!0);const s=process.env.CHOKIDAR_USEPOLLING;if(s!==void 0){const o=s.toLowerCase();o==="false"||o==="0"?u.usePolling=!1:o==="true"||o==="1"?u.usePolling=!0:u.usePolling=!!o}const r=process.env.CHOKIDAR_INTERVAL;r&&(u.interval=Number.parseInt(r,10)),q(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),q(u,"followSymlinks")&&(u.followSymlinks=!0),q(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=Cu(u.ignored));let D=0;this._emitReady=()=>{D++,D>=this._readyCount&&(this._emitReady=za,this._readyEmitted=!0,process.nextTick(()=>this.emit(xa)))},this._emitRaw=(...o)=>this.emit(Ha,...o),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new os(this):this._nodeFsHandler=new Ta(this),Object.freeze(u)}add(e,u,n){const{cwd:s,disableGlobbing:r}=this.options;this.closed=!1;let i=hs(e);return s&&(i=i.map(D=>{const o=Ja(D,s);return r||!ou(D)?o:$a(o)})),i=i.filter(D=>D.startsWith(fu)?(this._ignoredPaths.add(D.slice(1)),!1):(this._ignoredPaths.delete(D),this._ignoredPaths.delete(D+hu),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=hs(e),{cwd:n}=this.options;return u.forEach(s=>{!v.isAbsolute(s)&&!this._closers.has(s)&&(n&&(s=v.join(n,s)),s=v.resolve(s)),this._closePath(s),this._ignoredPaths.add(s),this._watched.has(s)&&this._ignoredPaths.add(s+hu),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 s=n();s instanceof Promise&&e.push(s)})),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 s=this.options.cwd?v.relative(this.options.cwd,n):n;e[s||cs]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==lu&&this.emit(au,...u)}async _emit(e,u,n,s,r){if(this.closed)return;const i=this.options;Ya&&(u=v.normalize(u)),i.cwd&&(u=v.relative(i.cwd,u));const D=[e,u];r!==void 0?D.push(n,s,r):s!==void 0?D.push(n,s):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===as)return this._pendingUnlinks.set(u,D),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(au,...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]=lu,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===Oa||e===xe)){const c=i.cwd?v.join(i.cwd,u):u;let f;try{f=await Qa(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(lu,e),e||this.closed}_throttle(e,u,n){this._throttled.has(e)||this._throttled.set(e,new Map);const s=this._throttled.get(e),r=s.get(u);if(r)return r.count++,!1;let i;const D=()=>{const a=s.get(u),c=a?a.count:0;return s.delete(u),clearTimeout(i),a&&clearTimeout(a.timeoutObject),c};i=setTimeout(D,n);const o={timeoutObject:i,clear:D,count:0};return s.set(u,o),o}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,n,s){let r,i=e;this.options.cwd&&!v.isAbsolute(e)&&(i=v.join(this.options.cwd,e));const D=new Date,o=a=>{iu.stat(i,(c,f)=>{if(c||!this._pendingWrites.has(e)){c&&c.code!=="ENOENT"&&s(c);return}const l=Number(new Date);a&&f.size!==a.size&&(this._pendingWrites.get(e).lastChange=l);const p=this._pendingWrites.get(e);l-p.lastChange>=u?(this._pendingWrites.delete(e),s(void 0,f)):r=setTimeout(o,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:D,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(r),n)}),r=setTimeout(o,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Ma.test(e))return!0;if(!this._userIgnored){const{cwd:n}=this.options,s=this.options.ignored,r=s&&s.map(ps(n)),i=Cu(r).filter(o=>typeof o===Eu&&!ou(o)).map(o=>o+hu),D=this._getGlobIgnored().map(ps(n)).concat(r,i);this._userIgnored=Du(D,void 0,du)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const n=u||this.options.disableGlobbing||!ou(e)?e:Ba(e),s=this.options.followSymlinks;return new nl(e,n,s,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 el(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const n=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(n.toString(8)[0],10))}_remove(e,u,n){const s=v.join(e,u),r=v.resolve(s);if(n=n!=null?n:this._watched.has(s)||this._watched.has(r),!this._throttle("remove",s,100))return;!n&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(s).getChildren().forEach(l=>this._remove(s,l));const o=this._getWatchedDir(e),a=o.has(u);o.remove(u),this._symlinkPaths.has(r)&&this._symlinkPaths.delete(r);let c=s;if(this.options.cwd&&(c=v.relative(this.options.cwd,s)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===rt)return;this._watched.delete(s),this._watched.delete(r);const f=n?Na:as;a&&!this._isIgnored(s)&&this._emit(f,s),this.options.useFsEvents||this._closePath(s)}_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={type:au,alwaysStat:!0,lstat:!0,...u};let s=va(e,n);return this._streams.add(s),s.once(Pa,()=>{s=void 0}),s.once(La,()=>{s&&(this._streams.delete(s),s=void 0)}),s}}const rl=(t,e)=>{const u=new sl(e);return u.add(t),u};var il=rl;const it=(t=!0)=>{let e=!1;return u=>{if(e||u==="unknown-flag")return!0;if(u==="argument")return e=!0,t}},Cs=(t,e=process.argv.slice(2))=>(_u(t,e,{ignore:it()}),e);let ce=!0;const ge=typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{};let Oe=0;if(ge.process&&ge.process.env&&ge.process.stdout){const{FORCE_COLOR:t,NODE_DISABLE_COLORS:e,NO_COLOR:u,TERM:n,COLORTERM:s}=ge.process.env;e||u||t==="0"?ce=!1:t==="1"||t==="2"||t==="3"?ce=!0:n==="dumb"?ce=!1:"CI"in ge.process.env&&["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(r=>r in ge.process.env)?ce=!0:ce=process.stdout.isTTY,ce&&(process.platform==="win32"||s&&(s==="truecolor"||s==="24bit")?Oe=3:n&&(n.endsWith("-256color")||n.endsWith("256"))?Oe=2:Oe=1)}let Fs={enabled:ce,supportLevel:Oe};function gs(t,e,u=1){const n=`\x1B[${t}m`,s=`\x1B[${e}m`,r=new RegExp(`\\x1b\\[${e}m`,"g");return i=>Fs.enabled&&Fs.supportLevel>=u?n+(""+i).replace(r,n)+s:""+i}const Dl=gs(90,39),ol=gs(96,39),al=()=>new Date().toLocaleTimeString(),Fu=(...t)=>console.log(Dl(al()),ol("[tsx]"),...t),ll="\x1Bc";function cl(t,e){let u;return()=>{u&&clearTimeout(u),u=setTimeout(()=>t(),e)}}const fl=async t=>{const e=new Promise(u=>{t.on("exit",u)});t.kill(),await e},ms={noCache:{type:Boolean,description:"Disable caching",default:!1},tsconfig:{type:String,description:"Custom tsconfig.json path"},clearScreen:{type:Boolean,description:"Clearing the screen on rerun",default:!0},ignore:{type:[String],description:"Paths & globs to exclude from being watched"}},hl=Qr({name:"watch",parameters:["<script path>"],flags:ms,help:{description:"Run the script and watch for changes"},ignoreArgv:it(!1)},t=>{const e=Cs(ms,process.argv.slice(3)),u={noCache:t.flags.noCache,tsconfigPath:t.flags.tsconfig,clearScreen:t.flags.clearScreen,ignore:t.flags.ignore,ipc:!0};let n;const s=()=>{const c=nn(e,u);return c.on("message",f=>{if(f&&typeof f=="object"&&"type"in f&&f.type==="dependency"&&"path"in f&&typeof f.path=="string"){const l=f.path.startsWith("file:")?Bs(f.path):f.path;K.isAbsolute(l)&&a.add(l)}}),c};let r=!1;const i=cl(async()=>{if(r){Fu("forcing restart"),n.kill("SIGKILL");return}(n==null?void 0:n.exitCode)===null?(Fu("restarting"),r=!0,await fl(n),r=!1):Fu("rerunning"),u.clearScreen&&process.stdout.write(ll),n=s()},100);i();function D(c){process.exit(128+Ts.signals[c])}function o(c){n&&n.exitCode===null?(n.on("close",()=>D(c)),n.kill(c)):D(c)}process.once("SIGINT",o),process.once("SIGTERM",o);const a=il(t._,{cwd:process.cwd(),ignoreInitial:!0,ignored:["**/.*/**","**/.*","**/{node_modules,bower_components,vendor}/**",...u.ignore],ignorePermissionErrors:!0}).on("all",i);process.stdin.on("data",i)}),_s={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}};Wu({name:"tsx",parameters:["[script path]"],commands:[hl],flags:{..._s,version:{type:Boolean,alias:"v",description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1,ignoreArgv:it()},t=>{t.flags.version?process.stdout.write(`tsx v${bs}
54
54
  node `):t.flags.help&&(t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"}),console.log(`${"-".repeat(45)}
55
55
  `));const e={eval:{type:String,alias:"e"},print:{type:String,alias:"p"}},{flags:u}=Wu({flags:{...e,inputType:String},help:!1,ignoreArgv:it()}),n=Cs({..._s,...e}),r=["print","eval"].find(o=>!!u[o]);if(r){const{inputType:o}=u,a=u[r],c=Rs(a,{loader:"default",sourcefile:"/eval.ts",format:o==="module"?"esm":"cjs"});n.push(`--${r}`,c.code)}const i=nn(n,{noCache:!!t.flags.noCache,tsconfigPath:t.flags.tsconfig}),D=async o=>{await Promise.race([new Promise(c=>{function f(l){l&&l.type==="kill"&&(c(l.signal),i.off("message",f))}i.on("message",f)}),new Promise(c=>{setTimeout(c,10)})])||i.kill(o)};process.on("SIGINT",D),process.on("SIGTERM",D),i.on("close",o=>process.exit(o))});
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var v=require("worker_threads"),R=require("../node-features-84a305a1.cjs"),b=require("module"),E=require("../source-map.cjs"),F=require("path"),h=require("url"),S=require("../index-798b46f9.cjs"),x=require("../resolve-ts-path-43f50656.cjs"),d=require("get-tsconfig"),D=require("fs");require("source-map-support"),require("esbuild"),require("crypto"),require("os");function g(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var N=g(b),y=g(F),M=g(D);const A=()=>{const{port1:e,port2:t}=new v.MessageChannel;E.installSourceMapSupport(e),process.send&&e.addListener("message",r=>{r.type==="dependency"&&process.send(r)}),e.unref(),N.default.register("./index.mjs",{parentURL:typeof document>"u"?new(require("url")).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("esm/index.cjs",document.baseURI).href,data:{port:t},transferList:[t]})},p=new Map;async function I(e){if(p.has(e))return p.get(e);if(!await M.default.promises.access(e).then(()=>!0,()=>!1)){p.set(e,void 0);return}const r=await M.default.promises.readFile(e,"utf8");try{const n=JSON.parse(r);return p.set(e,n),n}catch{throw new Error(`Error parsing: ${e}`)}}async function J(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=h.fileURLToPath(t),n=await I(r);if(n)return n;const o=t;if(t=new URL("../package.json",t),t.pathname===o.pathname)break}}async function C(e){var t;const r=await J(e);return(t=r==null?void 0:r.type)!=null?t:"commonjs"}const f=process.env.TSX_TSCONFIG_PATH?{path:y.default.resolve(process.env.TSX_TSCONFIG_PATH),config:d.parseTsconfig(process.env.TSX_TSCONFIG_PATH)}:d.getTsconfig(),W=f&&d.createFilesMatcher(f),j=f&&d.createPathsMatcher(f),k="file://",_=/\.([cm]?ts|[tj]sx)($|\?)/,G=/\.json(?:$|\?)/,H=e=>{const t=y.default.extname(e);if(t===".json")return"json";if(t===".mjs"||t===".mts")return"module";if(t===".cjs"||t===".cts")return"commonjs"},X=e=>{const t=H(e);if(t)return t;if(_.test(e))return C(e)},q=E.installSourceMapSupport(),U=/\/(?:$|\?)/;let l,m=process.send?process.send.bind(process):void 0;const z=async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader
2
- The --loader flag was deprecated in Node v20.6.0`);const{port:t}=e;l=t,m=t.postMessage.bind(t)},K=({port:e})=>(l=e,m=e.postMessage.bind(e),`
3
- const require = getBuiltin('module').createRequire("${typeof document>"u"?new(require("url")).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("esm/index.cjs",document.baseURI).href}");
1
+ "use strict";var R=require("worker_threads"),v=require("../node-features-a3d031eb.cjs"),O=require("module"),E=require("../source-map.cjs"),g=require("path"),y=require("url"),k=require("../index-129c7da4.cjs"),b=require("../resolve-ts-path-3fca13b7.cjs"),p=require("get-tsconfig"),q=require("fs");require("source-map-support"),require("esbuild"),require("crypto"),require("os");var d=typeof document<"u"?document.currentScript:null;const x=()=>{const{port1:e,port2:t}=new R.MessageChannel;E.installSourceMapSupport(e),process.send&&e.addListener("message",r=>{r.type==="dependency"&&process.send(r)}),e.unref(),O.register("./index.mjs",{parentURL:typeof document>"u"?require("url").pathToFileURL(__filename).href:d&&d.src||new URL("esm/index.cjs",document.baseURI).href,data:{port:t},transferList:[t]})},f=new Map;async function N(e){if(f.has(e))return f.get(e);if(!await q.promises.access(e).then(()=>!0,()=>!1)){f.set(e,void 0);return}const r=await q.promises.readFile(e,"utf8");try{const o=JSON.parse(r);return f.set(e,o),o}catch{throw new Error(`Error parsing: ${e}`)}}async function A(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=y.fileURLToPath(t),o=await N(r);if(o)return o;const n=t;if(t=new URL("../package.json",t),t.pathname===n.pathname)break}}async function D(e){var t;const r=await A(e);return(t=r==null?void 0:r.type)!=null?t:"commonjs"}const m=process.env.TSX_TSCONFIG_PATH?{path:g.resolve(process.env.TSX_TSCONFIG_PATH),config:p.parseTsconfig(process.env.TSX_TSCONFIG_PATH)}:p.getTsconfig(),I=m&&p.createFilesMatcher(m),S=m&&p.createPathsMatcher(m),U="file://",w=/\.([cm]?ts|[tj]sx)($|\?)/,J=/\.json(?:$|\?)/,C=e=>{const t=g.extname(e);if(t===".json")return"json";if(t===".mjs"||t===".mts")return"module";if(t===".cjs"||t===".cts")return"commonjs"},W=e=>{const t=C(e);if(t)return t;if(w.test(e))return D(e)},M=E.installSourceMapSupport(),j=/\/(?:$|\?)/;let l,h=process.send?process.send.bind(process):void 0;const G=async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader
2
+ The --loader flag was deprecated in Node v20.6.0`);const{port:t}=e;l=t,h=t.postMessage.bind(t)},H=({port:e})=>(l=e,h=e.postMessage.bind(e),`
3
+ const require = getBuiltin('module').createRequire("${typeof document>"u"?require("url").pathToFileURL(__filename).href:d&&d.src||new URL("esm/index.cjs",document.baseURI).href}");
4
4
  require('tsx/source-map').installSourceMapSupport(port);
5
5
  if (process.send) {
6
6
  port.addListener('message', (message) => {
@@ -10,4 +10,4 @@ The --loader flag was deprecated in Node v20.6.0`);const{port:t}=e;l=t,m=t.postM
10
10
  });
11
11
  }
12
12
  port.unref(); // Allows process to exit without waiting for port to close
13
- `),w=async(e,t,r)=>{const n=await e(t,r);return!n.format&&n.url.startsWith(k)&&(n.format=await X(n.url)),n},Q=[".js",".json",".ts",".tsx",".jsx"];async function P(e,t,r){const[n,o]=e.split("?");let c;for(const a of Q)try{return await w(r,n+a+(o?`?${o}`:""),t)}catch(s){if(c===void 0&&s instanceof Error){const{message:i}=s;s.message=s.message.replace(`${a}'`,"'"),s.stack=s.stack.replace(i,s.message),c=s}}throw c}async function L(e,t,r){const n=U.test(e),o=n?"index":"/index",[c,a]=e.split("?");try{return await P(c+o+(a?`?${a}`:""),t,r)}catch(s){if(!n)try{return await P(e,t,r)}catch{}const i=s,{message:u}=i;throw i.message=i.message.replace(`${o.replace("/",y.default.sep)}'`,"'"),i.stack=i.stack.replace(u,i.message),i}}const B=/^\.{1,2}\//,O=async function(e,t,r,n){var o;if(U.test(e))return await L(e,t,r);const c=e.startsWith(k)||B.test(e);if(j&&!c&&!((o=t.parentURL)!=null&&o.includes("/node_modules/"))){const a=j(e);for(const s of a)try{return await O(h.pathToFileURL(s).toString(),t,r)}catch{}}if(_.test(t.parentURL)){const a=x.resolveTsPath(e);if(a)for(const s of a)try{return await w(r,s,t)}catch(i){const{code:u}=i;if(u!=="ERR_MODULE_NOT_FOUND"&&u!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i}}try{return await w(r,e,t)}catch(a){if(a instanceof Error&&!n){const{code:s}=a;if(s==="ERR_UNSUPPORTED_DIR_IMPORT")try{return await L(e,t,r)}catch(i){if(i.code!=="ERR_PACKAGE_IMPORT_NOT_DEFINED")throw i}if(s==="ERR_MODULE_NOT_FOUND")try{return await P(e,t,r)}catch{}}throw a}},T=R.importAttributes?"importAttributes":"importAssertions",$=async function(e,t,r){var n;m&&m({type:"dependency",path:e}),G.test(e)&&(t[T]||(t[T]={}),t[T].type="json");const o=await r(e,t);if(!o.source)return o;const c=e.startsWith("file://")?h.fileURLToPath(e):e,a=o.source.toString();if(o.format==="json"||_.test(e)){const s=await S.transform(a,c,{tsconfigRaw:(n=W)==null?void 0:n(c)});return{format:"module",source:q(s,e,l)}}if(o.format==="module"){const s=S.transformDynamicImport(c,a);s&&(o.source=q(s,e,l))}return o};R.supportsModuleRegister&&v.isMainThread&&A(),exports.globalPreload=K,exports.initialize=z,exports.load=$,exports.resolve=O;
13
+ `),_=async(e,t,r)=>{const o=await e(t,r);return!o.format&&o.url.startsWith(U)&&(o.format=await W(o.url)),o},X=[".js",".json",".ts",".tsx",".jsx"];async function P(e,t,r){const[o,n]=e.split("?");let c;for(const a of X)try{return await _(r,o+a+(n?`?${n}`:""),t)}catch(s){if(c===void 0&&s instanceof Error){const{message:i}=s;s.message=s.message.replace(`${a}'`,"'"),s.stack=s.stack.replace(i,s.message),c=s}}throw c}async function L(e,t,r){const o=j.test(e),n=o?"index":"/index",[c,a]=e.split("?");try{return await P(c+n+(a?`?${a}`:""),t,r)}catch(s){if(!o)try{return await P(e,t,r)}catch{}const i=s,{message:u}=i;throw i.message=i.message.replace(`${n.replace("/",g.sep)}'`,"'"),i.stack=i.stack.replace(u,i.message),i}}const z=/^\.{1,2}\//,F=async function(e,t,r,o){var n;if(j.test(e))return await L(e,t,r);const c=e.startsWith(U)||z.test(e);if(S&&!c&&!((n=t.parentURL)!=null&&n.includes("/node_modules/"))){const a=S(e);for(const s of a)try{return await F(y.pathToFileURL(s).toString(),t,r)}catch{}}if(w.test(t.parentURL)){const a=b.resolveTsPath(e);if(a)for(const s of a)try{return await _(r,s,t)}catch(i){const{code:u}=i;if(u!=="ERR_MODULE_NOT_FOUND"&&u!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i}}try{return await _(r,e,t)}catch(a){if(a instanceof Error&&!o){const{code:s}=a;if(s==="ERR_UNSUPPORTED_DIR_IMPORT")try{return await L(e,t,r)}catch(i){if(i.code!=="ERR_PACKAGE_IMPORT_NOT_DEFINED")throw i}if(s==="ERR_MODULE_NOT_FOUND")try{return await P(e,t,r)}catch{}}throw a}},T=v.importAttributes?"importAttributes":"importAssertions",K=async function(e,t,r){var o;h&&h({type:"dependency",path:e}),J.test(e)&&(t[T]||(t[T]={}),t[T].type="json");const n=await r(e,t);if(!n.source)return n;const c=e.startsWith("file://")?y.fileURLToPath(e):e,a=n.source.toString();if(n.format==="json"||w.test(e)){const s=await k.transform(a,c,{tsconfigRaw:(o=I)==null?void 0:o(c)});return{format:"module",source:M(s,e,l)}}if(n.format==="module"){const s=k.transformDynamicImport(c,a);s&&(n.source=M(s,e,l))}return n};v.supportsModuleRegister&&R.isMainThread&&x(),exports.globalPreload=H,exports.initialize=G,exports.load=K,exports.resolve=F;
@@ -1,4 +1,4 @@
1
- import{MessageChannel as S,isMainThread as F}from"worker_threads";import{i as N,s as U}from"../node-features-a792cc3d.mjs";import v from"module";import{installSourceMapSupport as P}from"../source-map.mjs";import g from"path";import{fileURLToPath as _,pathToFileURL as A}from"url";import{t as D,a as L}from"../index-a948fc61.mjs";import{r as b}from"../resolve-ts-path-a8cb04a4.mjs";import{parseTsconfig as x,getTsconfig as J,createFilesMatcher as I,createPathsMatcher as $}from"get-tsconfig";import T from"fs";import"source-map-support";import"esbuild";import"crypto";import"os";const C=()=>{const{port1:t,port2:s}=new S;P(t),process.send&&t.addListener("message",r=>{r.type==="dependency"&&process.send(r)}),t.unref(),v.register("./index.mjs",{parentURL:import.meta.url,data:{port:s},transferList:[s]})},m=new Map;async function W(t){if(m.has(t))return m.get(t);if(!await T.promises.access(t).then(()=>!0,()=>!1)){m.set(t,void 0);return}const r=await T.promises.readFile(t,"utf8");try{const o=JSON.parse(r);return m.set(t,o),o}catch{throw new Error(`Error parsing: ${t}`)}}async function q(t){let s=new URL("package.json",t);for(;!s.pathname.endsWith("/node_modules/package.json");){const r=_(s),o=await W(r);if(o)return o;const n=s;if(s=new URL("../package.json",s),s.pathname===n.pathname)break}}async function G(t){var s;const r=await q(t);return(s=r==null?void 0:r.type)!=null?s:"commonjs"}const f=process.env.TSX_TSCONFIG_PATH?{path:g.resolve(process.env.TSX_TSCONFIG_PATH),config:x(process.env.TSX_TSCONFIG_PATH)}:J(),H=f&&I(f),E=f&&$(f),k="file://",h=/\.([cm]?ts|[tj]sx)($|\?)/,X=/\.json(?:$|\?)/,K=t=>{const s=g.extname(t);if(s===".json")return"json";if(s===".mjs"||s===".mts")return"module";if(s===".cjs"||s===".cts")return"commonjs"},Q=t=>{const s=K(t);if(s)return s;if(h.test(t))return G(t)},R=P(),M=/\/(?:$|\?)/;let u,d=process.send?process.send.bind(process):void 0;const z=async t=>{if(!t)throw new Error(`tsx must be loaded with --import instead of --loader
1
+ import{MessageChannel as S,isMainThread as F}from"worker_threads";import{i as N,s as U}from"../node-features-2541e522.mjs";import v from"module";import{installSourceMapSupport as P}from"../source-map.mjs";import g from"path";import{fileURLToPath as _,pathToFileURL as A}from"url";import{t as D,a as L}from"../index-449380c0.mjs";import{r as b}from"../resolve-ts-path-eb3847f5.mjs";import{parseTsconfig as x,getTsconfig as J,createFilesMatcher as I,createPathsMatcher as $}from"get-tsconfig";import T from"fs";import"source-map-support";import"esbuild";import"crypto";import"os";const C=()=>{const{port1:t,port2:s}=new S;P(t),process.send&&t.addListener("message",r=>{r.type==="dependency"&&process.send(r)}),t.unref(),v.register("./index.mjs",{parentURL:import.meta.url,data:{port:s},transferList:[s]})},m=new Map;async function W(t){if(m.has(t))return m.get(t);if(!await T.promises.access(t).then(()=>!0,()=>!1)){m.set(t,void 0);return}const r=await T.promises.readFile(t,"utf8");try{const o=JSON.parse(r);return m.set(t,o),o}catch{throw new Error(`Error parsing: ${t}`)}}async function q(t){let s=new URL("package.json",t);for(;!s.pathname.endsWith("/node_modules/package.json");){const r=_(s),o=await W(r);if(o)return o;const n=s;if(s=new URL("../package.json",s),s.pathname===n.pathname)break}}async function G(t){var s;const r=await q(t);return(s=r==null?void 0:r.type)!=null?s:"commonjs"}const f=process.env.TSX_TSCONFIG_PATH?{path:g.resolve(process.env.TSX_TSCONFIG_PATH),config:x(process.env.TSX_TSCONFIG_PATH)}:J(),H=f&&I(f),E=f&&$(f),k="file://",h=/\.([cm]?ts|[tj]sx)($|\?)/,X=/\.json(?:$|\?)/,K=t=>{const s=g.extname(t);if(s===".json")return"json";if(s===".mjs"||s===".mts")return"module";if(s===".cjs"||s===".cts")return"commonjs"},Q=t=>{const s=K(t);if(s)return s;if(h.test(t))return G(t)},R=P(),M=/\/(?:$|\?)/;let u,d=process.send?process.send.bind(process):void 0;const z=async t=>{if(!t)throw new Error(`tsx must be loaded with --import instead of --loader
2
2
  The --loader flag was deprecated in Node v20.6.0`);const{port:s}=t;u=s,d=s.postMessage.bind(s)},B=({port:t})=>(u=t,d=t.postMessage.bind(t),`
3
3
  const require = getBuiltin('module').createRequire("${import.meta.url}");
4
4
  require('tsx/source-map').installSourceMapSupport(port);
@@ -0,0 +1,16 @@
1
+ "use strict";var Vt=require("url"),te=require("esbuild"),zt=require("crypto"),v=require("fs"),G=require("path"),Re=require("os");const ve=i=>zt.createHash("sha1").update(i).digest("hex"),Fe=",".charCodeAt(0),eA=";".charCodeAt(0),xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ue=new Uint8Array(64),qe=new Uint8Array(128);for(let i=0;i<xe.length;i++){const e=xe.charCodeAt(i);Ue[i]=e,qe[e]=i}const Be=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(i){return Buffer.from(i.buffer,i.byteOffset,i.byteLength).toString()}}:{decode(i){let e="";for(let A=0;A<i.length;A++)e+=String.fromCharCode(i[A]);return e}};function tA(i){const e=new Int32Array(5),A=[];let r=0;do{const s=AA(i,r),a=[];let c=!0,C=0;e[0]=0;for(let h=r;h<s;h++){let g;h=X(i,h,e,0);const u=e[0];u<C&&(c=!1),C=u,Me(i,h,s)?(h=X(i,h,e,1),h=X(i,h,e,2),h=X(i,h,e,3),Me(i,h,s)?(h=X(i,h,e,4),g=[u,e[1],e[2],e[3],e[4]]):g=[u,e[1],e[2],e[3]]):g=[u],a.push(g)}c||nA(a),A.push(a),r=s+1}while(r<=i.length);return A}function AA(i,e){const A=i.indexOf(";",e);return A===-1?i.length:A}function X(i,e,A,r){let s=0,a=0,c=0;do{const h=i.charCodeAt(e++);c=qe[h],s|=(c&31)<<a,a+=5}while(c&32);const C=s&1;return s>>>=1,C&&(s=-2147483648|-s),A[r]+=s,e}function Me(i,e,A){return e>=A?!1:i.charCodeAt(e)!==Fe}function nA(i){i.sort(rA)}function rA(i,e){return i[0]-e[0]}function Ye(i){const e=new Int32Array(5),A=1024*16,r=A-36,s=new Uint8Array(A),a=s.subarray(0,r);let c=0,C="";for(let h=0;h<i.length;h++){const g=i[h];if(h>0&&(c===A&&(C+=Be.decode(s),c=0),s[c++]=eA),g.length!==0){e[0]=0;for(let u=0;u<g.length;u++){const n=g[u];c>r&&(C+=Be.decode(a),s.copyWithin(0,r,c),c-=r),u>0&&(s[c++]=Fe),c=$(s,c,e,n,0),n.length!==1&&(c=$(s,c,e,n,1),c=$(s,c,e,n,2),c=$(s,c,e,n,3),n.length!==4&&(c=$(s,c,e,n,4)))}}}return C+Be.decode(s.subarray(0,c))}function $(i,e,A,r,s){const a=r[s];let c=a-A[s];A[s]=a,c=c<0?-c<<1|1:c<<1;do{let C=c&31;c>>>=5,c>0&&(C|=32),i[e++]=Ue[C]}while(c>0);return e}class oe{constructor(e){this.bits=e instanceof oe?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class W{constructor(e,A,r){this.start=e,this.end=A,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new W(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let A=this;for(;A;)e(A),A=A.next}eachPrevious(e){let A=this;for(;A;)e(A),A=A.previous}edit(e,A,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=A,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}split(e){const A=e-this.start,r=this.original.slice(0,A),s=this.original.slice(A);this.original=r;const a=new W(e,this.end,s);return a.outro=this.outro,this.outro="",this.end=e,this.edited?(a.edit("",!1),this.content=""):this.content=r,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const A=this.content.replace(e,"");if(A.length)return A!==this.content&&(this.split(this.start+A.length).edit("",void 0,!0),this.edited&&this.edit(A,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const A=this.content.replace(e,"");if(A.length){if(A!==this.content){const r=this.split(this.end-A.length);this.edited&&r.edit(A,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}}function iA(){return typeof window<"u"&&typeof window.btoa=="function"?i=>window.btoa(unescape(encodeURIComponent(i))):typeof Buffer=="function"?i=>Buffer.from(i,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const sA=iA();let oA=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Ye(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+sA(this.toString())}};function aA(i){const e=i.split(`
2
+ `),A=e.filter(a=>/^\t+/.test(a)),r=e.filter(a=>/^ {2,}/.test(a));if(A.length===0&&r.length===0)return null;if(A.length>=r.length)return" ";const s=r.reduce((a,c)=>{const C=/^ +/.exec(c)[0].length;return Math.min(C,a)},1/0);return new Array(s+1).join(" ")}function cA(i,e){const A=i.split(/[/\\]/),r=e.split(/[/\\]/);for(A.pop();A[0]===r[0];)A.shift(),r.shift();if(A.length){let s=A.length;for(;s--;)A[s]=".."}return A.concat(r).join("/")}const QA=Object.prototype.toString;function lA(i){return QA.call(i)==="[object Object]"}function Ge(i){const e=i.split(`
3
+ `),A=[];for(let r=0,s=0;r<e.length;r++)A.push(s),s+=e[r].length+1;return function(s){let a=0,c=A.length;for(;a<c;){const g=a+c>>1;s<A[g]?c=g:a=g+1}const C=a-1,h=s-A[C];return{line:C,column:h}}}const uA=/\w/;class hA{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,A,r,s){if(A.length){let a=A.indexOf(`
4
+ `,0),c=-1;for(;a>=0;){const h=[this.generatedCodeColumn,e,r.line,r.column];s>=0&&h.push(s),this.rawSegments.push(h),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,c=a,a=A.indexOf(`
5
+ `,a+1)}const C=[this.generatedCodeColumn,e,r.line,r.column];s>=0&&C.push(s),this.rawSegments.push(C),this.advance(A.slice(c+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(A));this.pending=null}addUneditedChunk(e,A,r,s,a){let c=A.start,C=!0,h=!1;for(;c<A.end;){if(this.hires||C||a.has(c)){const g=[this.generatedCodeColumn,e,s.line,s.column];this.hires==="boundary"?uA.test(r[c])?h||(this.rawSegments.push(g),h=!0):(this.rawSegments.push(g),h=!1):this.rawSegments.push(g)}r[c]===`
6
+ `?(s.line+=1,s.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,C=!0):(s.column+=1,this.generatedCodeColumn+=1,C=!1),c+=1}this.pending=null}advance(e){if(!e)return;const A=e.split(`
7
+ `);if(A.length>1){for(let r=0;r<A.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=A[A.length-1].length}}const T=`
8
+ `,O={insertLeft:!1,insertRight:!1,storeName:!1};class Ke{constructor(e,A={}){const r=new W(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:A.filename},indentExclusionRanges:{writable:!0,value:A.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new oe},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:A.ignoreList}}),this.byStart[0]=r,this.byEnd[e.length]=r}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(e);const r=this.byEnd[e];return r?r.appendLeft(A):this.intro+=A,this}appendRight(e,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(e);const r=this.byStart[e];return r?r.appendRight(A):this.outro+=A,this}clone(){const e=new Ke(this.original,{filename:this.filename});let A=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=A.clone();for(;A;){e.byStart[r.start]=r,e.byEnd[r.end]=r;const s=A.next,a=s&&s.clone();a&&(r.next=a,a.previous=r,r=a),A=s}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new oe(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const A=0,r=Object.keys(this.storedNames),s=new hA(e.hires),a=Ge(this.original);return this.intro&&s.advance(this.intro),this.firstChunk.eachNext(c=>{const C=a(c.start);c.intro.length&&s.advance(c.intro),c.edited?s.addEdit(A,c.content,C,c.storeName?r.indexOf(c.original):-1):s.addUneditedChunk(A,c,this.original,C,this.sourcemapLocations),c.outro.length&&s.advance(c.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?cA(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:r,mappings:s.raw,x_google_ignoreList:this.ignoreList?[A]:void 0}}generateMap(e){return new oA(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=aA(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,A){const r=/^[^\r\n]/gm;if(lA(e)&&(A=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;A=A||{};const s={};A.exclude&&(typeof A.exclude[0]=="number"?[A.exclude]:A.exclude).forEach(u=>{for(let n=u[0];n<u[1];n+=1)s[n]=!0});let a=A.indentStart!==!1;const c=g=>a?`${e}${g}`:(a=!0,g);this.intro=this.intro.replace(r,c);let C=0,h=this.firstChunk;for(;h;){const g=h.end;if(h.edited)s[C]||(h.content=h.content.replace(r,c),h.content.length&&(a=h.content[h.content.length-1]===`
9
+ `));else for(C=h.start;C<g;){if(!s[C]){const u=this.original[C];u===`
10
+ `?a=!0:u!=="\r"&&a&&(a=!1,C===h.start||(this._splitChunk(h,C),h=h.next),h.prependRight(e))}C+=1}C=h.end,h=h.next}return this.outro=this.outro.replace(r,c),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,A){return O.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),O.insertLeft=!0),this.appendLeft(e,A)}insertRight(e,A){return O.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),O.insertRight=!0),this.prependRight(e,A)}move(e,A,r){if(r>=e&&r<=A)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(A),this._split(r);const s=this.byStart[e],a=this.byEnd[A],c=s.previous,C=a.next,h=this.byStart[r];if(!h&&a===this.lastChunk)return this;const g=h?h.previous:this.lastChunk;return c&&(c.next=C),C&&(C.previous=c),g&&(g.next=s),h&&(h.previous=a),s.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=g,a.next=h||null,g||(this.firstChunk=s),h||(this.lastChunk=a),this}overwrite(e,A,r,s){return s=s||{},this.update(e,A,r,{...s,overwrite:!s.contentOnly})}update(e,A,r,s){if(typeof r!="string")throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;A<0;)A+=this.original.length;if(A>this.original.length)throw new Error("end is out of bounds");if(e===A)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(A),s===!0&&(O.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),O.storeName=!0),s={storeName:!0});const a=s!==void 0?s.storeName:!1,c=s!==void 0?s.overwrite:!1;if(a){const g=this.original.slice(e,A);Object.defineProperty(this.storedNames,g,{writable:!0,value:!0,enumerable:!0})}const C=this.byStart[e],h=this.byEnd[A];if(C){let g=C;for(;g!==h;){if(g.next!==this.byStart[g.end])throw new Error("Cannot overwrite across a split point");g=g.next,g.edit("",!1)}C.edit(r,a,!c)}else{const g=new W(e,A,"").edit(r,a);h.next=g,g.previous=h}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(e);const r=this.byEnd[e];return r?r.prependLeft(A):this.intro=A+this.intro,this}prependRight(e,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(e);const r=this.byStart[e];return r?r.prependRight(A):this.outro=A+this.outro,this}remove(e,A){for(;e<0;)e+=this.original.length;for(;A<0;)A+=this.original.length;if(e===A)return this;if(e<0||A>this.original.length)throw new Error("Character is out of bounds");if(e>A)throw new Error("end must be greater than start");this._split(e),this._split(A);let r=this.byStart[e];for(;r;)r.intro="",r.outro="",r.edit(""),r=A>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(T);if(e!==-1)return this.outro.substr(e+1);let A=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(e=r.outro.lastIndexOf(T),e!==-1)return r.outro.substr(e+1)+A;A=r.outro+A}if(r.content.length>0){if(e=r.content.lastIndexOf(T),e!==-1)return r.content.substr(e+1)+A;A=r.content+A}if(r.intro.length>0){if(e=r.intro.lastIndexOf(T),e!==-1)return r.intro.substr(e+1)+A;A=r.intro+A}}while(r=r.previous);return e=this.intro.lastIndexOf(T),e!==-1?this.intro.substr(e+1)+A:this.intro+A}slice(e=0,A=this.original.length){for(;e<0;)e+=this.original.length;for(;A<0;)A+=this.original.length;let r="",s=this.firstChunk;for(;s&&(s.start>e||s.end<=e);){if(s.start<A&&s.end>=A)return r;s=s.next}if(s&&s.edited&&s.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const a=s;for(;s;){s.intro&&(a!==s||s.start===e)&&(r+=s.intro);const c=s.start<A&&s.end>=A;if(c&&s.edited&&s.end!==A)throw new Error(`Cannot use replaced character ${A} as slice end anchor.`);const C=a===s?e-s.start:0,h=c?s.content.length+A-s.end:s.content.length;if(r+=s.content.slice(C,h),s.outro&&(!c||s.end===A)&&(r+=s.outro),c)break;s=s.next}return r}snip(e,A){const r=this.clone();return r.remove(0,e),r.remove(A,r.original.length),r}_split(e){if(this.byStart[e]||this.byEnd[e])return;let A=this.lastSearchedChunk;const r=e>A.end;for(;A;){if(A.contains(e))return this._splitChunk(A,e);A=r?this.byStart[A.end]:this.byEnd[A.start]}}_splitChunk(e,A){if(e.edited&&e.content.length){const s=Ge(this.original)(A);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} \u2013 "${e.original}")`)}const r=e.split(A);return this.byEnd[A]=e,this.byStart[A]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,A=this.firstChunk;for(;A;)e+=A.toString(),A=A.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,A=0;do A+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return A}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const A=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(A,""),this.outro.length)return!0;let r=this.lastChunk;do{const s=r.end,a=r.trimEnd(A);if(r.end!==s&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),a)return!0;r=r.previous}while(r);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const A=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(A,""),this.intro.length)return!0;let r=this.firstChunk;do{const s=r.end,a=r.trimStart(A);if(r.end!==s&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),a)return!0;r=r.next}while(r);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,A){function r(a,c){return typeof A=="string"?A.replace(/\$(\$|&|\d+)/g,(C,h)=>h==="$"?"$":h==="&"?a[0]:+h<a.length?a[+h]:`$${h}`):A(...a,a.index,c,a.groups)}function s(a,c){let C;const h=[];for(;C=a.exec(c);)h.push(C);return h}if(e.global)s(e,this.original).forEach(c=>{c.index!=null&&this.overwrite(c.index,c.index+c[0].length,r(c,this.original))});else{const a=this.original.match(e);a&&a.index!=null&&this.overwrite(a.index,a.index+a[0].length,r(a,this.original))}return this}_replaceString(e,A){const{original:r}=this,s=r.indexOf(e);return s!==-1&&this.overwrite(s,s+e.length,A),this}replace(e,A){return typeof e=="string"?this._replaceString(e,A):this._replaceRegexp(e,A)}_replaceAllString(e,A){const{original:r}=this,s=e.length;for(let a=r.indexOf(e);a!==-1;a=r.indexOf(e,a+s))this.overwrite(a,a+s,A);return this}replaceAll(e,A){if(typeof e=="string")return this._replaceAllString(e,A);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,A)}}const fA=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function Oe(i,e="@"){if(!k)return _e.then(()=>Oe(i));const A=i.length+1,r=(k.__heap_base.value||k.__heap_base)+4*A-k.memory.buffer.byteLength;r>0&&k.memory.grow(Math.ceil(r/65536));const s=k.sa(A-1);if((fA?CA:gA)(i,new Uint16Array(k.memory.buffer,s,A)),!k.parse())throw Object.assign(new Error(`Parse error ${e}:${i.slice(0,k.e()).split(`
11
+ `).length}:${k.e()-i.lastIndexOf(`
12
+ `,k.e()-1)}`),{idx:k.e()});const a=[],c=[];for(;k.ri();){const h=k.is(),g=k.ie(),u=k.ai(),n=k.id(),b=k.ss(),y=k.se();let w;k.ip()&&(w=C(i.slice(n===-1?h-1:h,n===-1?g+1:g))),a.push({n:w,s:h,e:g,ss:b,se:y,d:n,a:u})}for(;k.re();){const h=k.es(),g=k.ee(),u=k.els(),n=k.ele(),b=i.slice(h,g),y=b[0],w=u<0?void 0:i.slice(u,n),L=w?w[0]:"";c.push({s:h,e:g,ls:u,le:n,n:y==='"'||y==="'"?C(b):b,ln:L==='"'||L==="'"?C(w):w})}function C(h){try{return(0,eval)(h)}catch{}}return[a,c,!!k.f(),!!k.ms()]}function gA(i,e){const A=i.length;let r=0;for(;r<A;){const s=i.charCodeAt(r);e[r++]=(255&s)<<8|s>>>8}}function CA(i,e){const A=i.length;let r=0;for(;r<A;)e[r]=i.charCodeAt(r++)}let k;const _e=WebAssembly.compile((de="AGFzbQEAAAABKghgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gAn9/AAMwLwABAQICAgICAgICAgICAgICAgICAAMDAwQEAAAAAwAAAAADAwAFBgAAAAcABgIFBAUBcAEBAQUDAQABBg8CfwFBsPIAC38AQbDyAAsHdRQGbWVtb3J5AgACc2EAAAFlAAMCaXMABAJpZQAFAnNzAAYCc2UABwJhaQAIAmlkAAkCaXAACgJlcwALAmVlAAwDZWxzAA0DZWxlAA4CcmkADwJyZQAQAWYAEQJtcwASBXBhcnNlABMLX19oZWFwX2Jhc2UDAQryPS9oAQF/QQAgADYC9AlBACgC0AkiASAAQQF0aiIAQQA7AQBBACAAQQJqIgA2AvgJQQAgADYC/AlBAEEANgLUCUEAQQA2AuQJQQBBADYC3AlBAEEANgLYCUEAQQA2AuwJQQBBADYC4AkgAQu+AQEDf0EAKALkCSEEQQBBACgC/AkiBTYC5AlBACAENgLoCUEAIAVBIGo2AvwJIARBHGpB1AkgBBsgBTYCAEEAKALICSEEQQAoAsQJIQYgBSABNgIAIAUgADYCCCAFIAIgAkECakEAIAYgA0YbIAQgA0YbNgIMIAUgAzYCFCAFQQA2AhAgBSACNgIEIAVBADYCHCAFQQAoAsQJIANGIgI6ABgCQAJAIAINAEEAKALICSADRw0BC0EAQQE6AIAKCwteAQF/QQAoAuwJIgRBEGpB2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A0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgKkChAjQQAPC0EAIAI2AqQKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+IBAgBBgAgLxAEAAHgAcABvAHIAdABtAHAAbwByAHQAZQB0AGEAcgBvAG0AdQBuAGMAdABpAG8AbgBzAHMAZQByAHQAdgBvAHkAaQBlAGQAZQBsAGUAYwBvAG4AdABpAG4AaQBuAHMAdABhAG4AdAB5AGIAcgBlAGEAcgBlAHQAdQByAGQAZQBiAHUAZwBnAGUAYQB3AGEAaQB0AGgAcgB3AGgAaQBsAGUAZgBvAHIAaQBmAGMAYQB0AGMAZgBpAG4AYQBsAGwAZQBsAHMAAEHECQsQAQAAAAIAAAAABAAAMDkAAA==",typeof Buffer<"u"?Buffer.from(de,"base64"):Uint8Array.from(atob(de),i=>i.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:i})=>{k=i});var de;let m,Ae,ke,Z=2<<19;const He=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(i,e){const A=i.length;let r=0;for(;r<A;)e[r]=i.charCodeAt(r++)}:function(i,e){const A=i.length;let r=0;for(;r<A;){const s=i.charCodeAt(r);e[r++]=(255&s)<<8|s>>>8}},EA="xportmportlassetaromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let K,je,d;function BA(i,e="@"){K=i,je=e;const A=2*K.length+(2<<18);if(A>Z||!m){for(;A>Z;)Z*=2;Ae=new ArrayBuffer(Z),He(EA,new Uint16Array(Ae,16,105)),m=function(c,C,h){var g=new c.Int8Array(h),u=new c.Int16Array(h),n=new c.Int32Array(h),b=new c.Uint8Array(h),y=new c.Uint16Array(h),w=1024;function L(){var t=0,o=0,l=0,f=0,Q=0,E=0;E=w,w=w+10240|0,g[796]=1,g[795]=0,u[395]=0,u[396]=0,n[67]=n[2],g[797]=0,n[66]=0,g[794]=0,n[68]=E+2048,n[69]=E,g[798]=0,t=(n[3]|0)+-2|0,n[70]=t,o=t+(n[64]<<1)|0,n[71]=o;e:for(;;){if(l=t+2|0,n[70]=l,t>>>0>=o>>>0){Q=18;break}A:do switch(u[l>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(u[396]|0)&&H(l)|0&&!(S(t+4|0,16,10)|0)&&(F(),(g[796]|0)==0)){Q=9;break e}else Q=17;break}case 105:{H(l)|0&&!(S(t+4|0,26,10)|0)&&V(),Q=17;break}case 59:{Q=17;break}case 47:switch(u[t+4>>1]|0){case 47:{ue();break A}case 42:{Qe(1);break A}default:{Q=16;break e}}default:{Q=16;break e}}while(0);(Q|0)==17&&(Q=0,n[67]=n[70]),t=n[70]|0,o=n[71]|0}(Q|0)==9?(t=n[70]|0,n[67]=t,Q=19):(Q|0)==16?(g[796]=0,n[70]=t,Q=19):(Q|0)==18&&(g[794]|0?t=0:(t=l,Q=19));do if((Q|0)==19){e:for(;;){if(o=t+2|0,n[70]=o,t>>>0>=(n[71]|0)>>>0){Q=82;break}A:do switch(u[o>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(u[396]|0)&&H(o)|0&&!(S(t+4|0,16,10)|0)&&F(),Q=81;break}case 105:{H(o)|0&&!(S(t+4|0,26,10)|0)&&V(),Q=81;break}case 99:{H(o)|0&&!(S(t+4|0,36,8)|0)&&j(u[t+12>>1]|0)|0&&(g[798]=1),Q=81;break}case 40:{f=n[68]|0,o=u[396]|0,Q=o&65535,n[f+(Q<<3)>>2]=1,l=n[67]|0,u[396]=o+1<<16>>16,n[f+(Q<<3)+4>>2]=l,Q=81;break}case 41:{if(o=u[396]|0,!(o<<16>>16)){Q=36;break e}Q=o+-1<<16>>16,u[396]=Q,f=u[395]|0,o=f&65535,f<<16>>16&&(n[(n[68]|0)+((Q&65535)<<3)>>2]|0)==5&&(o=n[(n[69]|0)+(o+-1<<2)>>2]|0,l=o+4|0,n[l>>2]|0||(n[l>>2]=(n[67]|0)+2),n[o+12>>2]=t+4,u[395]=f+-1<<16>>16),Q=81;break}case 123:{Q=n[67]|0,f=n[61]|0,t=Q;do if((u[Q>>1]|0)==41&(f|0)!=0&&(n[f+4>>2]|0)==(Q|0))if(o=n[62]|0,n[61]=o,o){n[o+28>>2]=0;break}else{n[57]=0;break}while(0);f=n[68]|0,l=u[396]|0,Q=l&65535,n[f+(Q<<3)>>2]=g[798]|0?6:2,u[396]=l+1<<16>>16,n[f+(Q<<3)+4>>2]=t,g[798]=0,Q=81;break}case 125:{if(t=u[396]|0,!(t<<16>>16)){Q=49;break e}f=n[68]|0,Q=t+-1<<16>>16,u[396]=Q,(n[f+((Q&65535)<<3)>>2]|0)==4&&De(),Q=81;break}case 39:{J(39),Q=81;break}case 34:{J(34),Q=81;break}case 47:switch(u[t+4>>1]|0){case 47:{ue();break A}case 42:{Qe(1);break A}default:{t=n[67]|0,f=u[t>>1]|0;t:do if(St(f)|0)switch(f<<16>>16){case 46:if(((u[t+-2>>1]|0)+-48&65535)<10){Q=66;break t}else{Q=69;break t}case 43:if((u[t+-2>>1]|0)==43){Q=66;break t}else{Q=69;break t}case 45:if((u[t+-2>>1]|0)==45){Q=66;break t}else{Q=69;break t}default:{Q=69;break t}}else{switch(f<<16>>16){case 41:if(vt(n[(n[68]|0)+(y[396]<<3)+4>>2]|0)|0){Q=69;break t}else{Q=66;break t}case 125:break;default:{Q=66;break t}}o=n[68]|0,l=y[396]|0,!(Nt(n[o+(l<<3)+4>>2]|0)|0)&&(n[o+(l<<3)>>2]|0)!=6?Q=66:Q=69}while(0);t:do if((Q|0)==66)if(Q=0,Dt(t)|0)Q=69;else{switch(f<<16>>16){case 0:{Q=69;break t}case 47:{if(g[797]|0){Q=69;break t}break}default:}l=n[3]|0,o=f;do{if(t>>>0<=l>>>0)break;t=t+-2|0,n[67]=t,o=u[t>>1]|0}while(!(le(o)|0));if(ee(o)|0){do{if(t>>>0<=l>>>0)break;t=t+-2|0,n[67]=t}while(ee(u[t>>1]|0)|0);if(Jt(t)|0){Ne(),g[797]=0,Q=81;break A}else t=1}else t=1}while(0);(Q|0)==69&&(Ne(),t=0),g[797]=t,Q=81;break A}}case 96:{f=n[68]|0,l=u[396]|0,Q=l&65535,n[f+(Q<<3)+4>>2]=n[67],u[396]=l+1<<16>>16,n[f+(Q<<3)>>2]=3,De(),Q=81;break}default:Q=81}while(0);(Q|0)==81&&(Q=0,n[67]=n[70]),t=n[70]|0}if((Q|0)==36){R(),t=0;break}else if((Q|0)==49){R(),t=0;break}else if((Q|0)==82){t=g[794]|0?0:(u[395]|u[396])<<16>>16==0;break}}while(0);return w=E,t|0}function F(){var t=0,o=0,l=0,f=0,Q=0,E=0,he=0,M=0,fe=0,ge=0,Ce=0,Ee=0,I=0,p=0;M=n[70]|0,fe=n[63]|0,p=M+12|0,n[70]=p,l=B(1)|0,t=n[70]|0,(t|0)==(p|0)&&!(z(l)|0)||(I=3);e:do if((I|0)==3){A:do switch(l<<16>>16){case 123:{for(n[70]=t+2,t=B(1)|0,o=n[70]|0;;){if(P(t)|0?(J(t),t=(n[70]|0)+2|0,n[70]=t):(x(t)|0,t=n[70]|0),B(1)|0,t=ye(o,t)|0,t<<16>>16==44&&(n[70]=(n[70]|0)+2,t=B(1)|0),t<<16>>16==125){I=15;break}if(p=o,o=n[70]|0,(o|0)==(p|0)){I=12;break}if(o>>>0>(n[71]|0)>>>0){I=14;break}}if((I|0)==12){R();break e}else if((I|0)==14){R();break e}else if((I|0)==15){g[795]=1,n[70]=(n[70]|0)+2;break A}break}case 42:{n[70]=t+2,B(1)|0,p=n[70]|0,ye(p,p)|0;break}default:{switch(g[796]=0,l<<16>>16){case 100:{switch(M=t+14|0,n[70]=M,(B(1)|0)<<16>>16){case 97:{o=n[70]|0,!(S(o+2|0,56,8)|0)&&(Q=o+10|0,ee(u[Q>>1]|0)|0)&&(n[70]=Q,B(0)|0,I=22);break}case 102:{I=22;break}case 99:{o=n[70]|0,!(S(o+2|0,36,8)|0)&&(f=o+10|0,p=u[f>>1]|0,j(p)|0|p<<16>>16==123)&&(n[70]=f,E=B(1)|0,E<<16>>16!=123)&&(Ee=E,I=31);break}default:}t:do if((I|0)==22&&(he=n[70]|0,(S(he+2|0,64,14)|0)==0)){if(l=he+16|0,o=u[l>>1]|0,!(j(o)|0))switch(o<<16>>16){case 40:case 42:break;default:break t}n[70]=l,o=B(1)|0,o<<16>>16==42&&(n[70]=(n[70]|0)+2,o=B(1)|0),o<<16>>16!=40&&(Ee=o,I=31)}while(0);if((I|0)==31&&(ge=n[70]|0,x(Ee)|0,Ce=n[70]|0,Ce>>>0>ge>>>0)){Y(t,M,ge,Ce),n[70]=(n[70]|0)+-2;break e}Y(t,M,0,0),n[70]=t+12;break e}case 97:{n[70]=t+10,B(0)|0,t=n[70]|0,I=35;break}case 102:{I=35;break}case 99:{if(!(S(t+2|0,36,8)|0)&&(o=t+10|0,le(u[o>>1]|0)|0)){n[70]=o,p=B(1)|0,I=n[70]|0,x(p)|0,p=n[70]|0,Y(I,p,I,p),n[70]=(n[70]|0)+-2;break e}t=t+4|0,n[70]=t;break}case 108:case 118:break;default:break e}if((I|0)==35){n[70]=t+16,t=B(1)|0,t<<16>>16==42&&(n[70]=(n[70]|0)+2,t=B(1)|0),I=n[70]|0,x(t)|0,p=n[70]|0,Y(I,p,I,p),n[70]=(n[70]|0)+-2;break e}n[70]=t+6,g[796]=0,l=B(1)|0,t=n[70]|0,l=(x(l)|0|32)<<16>>16==123,f=n[70]|0,l&&(n[70]=f+2,p=B(1)|0,t=n[70]|0,x(p)|0);t:for(;o=n[70]|0,(o|0)!=(t|0);){if(Y(t,o,t,o),o=B(1)|0,l)switch(o<<16>>16){case 93:case 125:break e;default:}if(t=n[70]|0,o<<16>>16!=44){I=51;break}switch(n[70]=t+2,o=B(1)|0,t=n[70]|0,o<<16>>16){case 91:case 123:{I=51;break t}default:}x(o)|0}if((I|0)==51&&(n[70]=t+-2),!l)break e;n[70]=f+-2;break e}}while(0);if(p=(B(1)|0)<<16>>16==102,t=n[70]|0,p&&!(S(t+2|0,50,6)|0))for(n[70]=t+8,ae(M,B(1)|0),t=fe|0?fe+16|0:232;;){if(t=n[t>>2]|0,!t)break e;n[t+12>>2]=0,n[t+8>>2]=0,t=t+16|0}n[70]=t+-2}while(0)}function V(){var t=0,o=0,l=0,f=0,Q=0,E=0;Q=n[70]|0,t=Q+12|0,n[70]=t;e:do switch((B(1)|0)<<16>>16){case 40:{if(o=n[68]|0,E=u[396]|0,l=E&65535,n[o+(l<<3)>>2]=5,t=n[70]|0,u[396]=E+1<<16>>16,n[o+(l<<3)+4>>2]=t,(u[n[67]>>1]|0)!=46){switch(n[70]=t+2,E=B(1)|0,ce(Q,n[70]|0,0,t),o=n[61]|0,l=n[69]|0,Q=u[395]|0,u[395]=Q+1<<16>>16,n[l+((Q&65535)<<2)>>2]=o,E<<16>>16){case 39:{J(39);break}case 34:{J(34);break}default:{n[70]=(n[70]|0)+-2;break e}}switch(t=(n[70]|0)+2|0,n[70]=t,(B(1)|0)<<16>>16){case 44:{n[70]=(n[70]|0)+2,B(1)|0,Q=n[61]|0,n[Q+4>>2]=t,E=n[70]|0,n[Q+16>>2]=E,g[Q+24>>0]=1,n[70]=E+-2;break e}case 41:{u[396]=(u[396]|0)+-1<<16>>16,E=n[61]|0,n[E+4>>2]=t,n[E+12>>2]=(n[70]|0)+2,g[E+24>>0]=1,u[395]=(u[395]|0)+-1<<16>>16;break e}default:{n[70]=(n[70]|0)+-2;break e}}}break}case 46:{if(n[70]=(n[70]|0)+2,(B(1)|0)<<16>>16==109&&(o=n[70]|0,(S(o+2|0,44,6)|0)==0)){if(t=n[67]|0,!(Le(t)|0)&&(u[t>>1]|0)==46)break e;ce(Q,Q,o+8|0,2)}break}case 42:case 39:case 34:{f=18;break}case 123:{if(t=n[70]|0,u[396]|0){n[70]=t+-2;break e}for(;!(t>>>0>=(n[71]|0)>>>0);){if(t=B(1)|0,P(t)|0)J(t);else if(t<<16>>16==125){f=33;break}t=(n[70]|0)+2|0,n[70]=t}if((f|0)==33&&(n[70]=(n[70]|0)+2),E=(B(1)|0)<<16>>16==102,t=n[70]|0,E&&S(t+2|0,50,6)|0){R();break e}if(n[70]=t+8,t=B(1)|0,P(t)|0){ae(Q,t);break e}else{R();break e}}default:(n[70]|0)==(t|0)?n[70]=Q+10:f=18}while(0);do if((f|0)==18){if(u[396]|0){n[70]=(n[70]|0)+-2;break}for(t=n[71]|0,o=n[70]|0;;){if(o>>>0>=t>>>0){f=25;break}if(l=u[o>>1]|0,P(l)|0){f=23;break}E=o+2|0,n[70]=E,o=E}if((f|0)==23){ae(Q,l);break}else if((f|0)==25){R();break}}while(0)}function ae(t,o){t=t|0,o=o|0;var l=0,f=0;switch(l=(n[70]|0)+2|0,o<<16>>16){case 39:{J(39),f=5;break}case 34:{J(34),f=5;break}default:R()}do if((f|0)==5){if(ce(t,l,n[70]|0,1),n[70]=(n[70]|0)+2,o=B(0)|0,t=o<<16>>16==97,t?(l=n[70]|0,S(l+2|0,78,10)|0&&(f=11)):(l=n[70]|0,o<<16>>16==119&&(u[l+2>>1]|0)==105&&(u[l+4>>1]|0)==116&&(u[l+6>>1]|0)==104||(f=11)),(f|0)==11){n[70]=l+-2;break}if(n[70]=l+((t?6:4)<<1),(B(1)|0)<<16>>16!=123){n[70]=l;break}t=n[70]|0,o=t;e:for(;;){switch(n[70]=o+2,o=B(1)|0,o<<16>>16){case 39:{J(39),n[70]=(n[70]|0)+2,o=B(1)|0;break}case 34:{J(34),n[70]=(n[70]|0)+2,o=B(1)|0;break}default:o=x(o)|0}if(o<<16>>16!=58){f=20;break}switch(n[70]=(n[70]|0)+2,(B(1)|0)<<16>>16){case 39:{J(39);break}case 34:{J(34);break}default:{f=24;break e}}switch(n[70]=(n[70]|0)+2,(B(1)|0)<<16>>16){case 125:{f=29;break e}case 44:break;default:{f=28;break e}}if(n[70]=(n[70]|0)+2,(B(1)|0)<<16>>16==125){f=29;break}o=n[70]|0}if((f|0)==20){n[70]=l;break}else if((f|0)==24){n[70]=l;break}else if((f|0)==28){n[70]=l;break}else if((f|0)==29){f=n[61]|0,n[f+16>>2]=t,n[f+12>>2]=(n[70]|0)+2;break}}while(0)}function Dt(t){t=t|0;e:do switch(u[t>>1]|0){case 100:switch(u[t+-2>>1]|0){case 105:{t=N(t+-4|0,88,2)|0;break e}case 108:{t=N(t+-4|0,92,3)|0;break e}default:{t=0;break e}}case 101:switch(u[t+-2>>1]|0){case 115:switch(u[t+-4>>1]|0){case 108:{t=_(t+-6|0,101)|0;break e}case 97:{t=_(t+-6|0,99)|0;break e}default:{t=0;break e}}case 116:{t=N(t+-4|0,98,4)|0;break e}case 117:{t=N(t+-4|0,106,6)|0;break e}default:{t=0;break e}}case 102:{if((u[t+-2>>1]|0)==111&&(u[t+-4>>1]|0)==101)switch(u[t+-6>>1]|0){case 99:{t=N(t+-8|0,118,6)|0;break e}case 112:{t=N(t+-8|0,130,2)|0;break e}default:{t=0;break e}}else t=0;break}case 107:{t=N(t+-2|0,134,4)|0;break}case 110:{t=t+-2|0,_(t,105)|0?t=1:t=N(t,142,5)|0;break}case 111:{t=_(t+-2|0,100)|0;break}case 114:{t=N(t+-2|0,152,7)|0;break}case 116:{t=N(t+-2|0,166,4)|0;break}case 119:switch(u[t+-2>>1]|0){case 101:{t=_(t+-4|0,110)|0;break e}case 111:{t=N(t+-4|0,174,3)|0;break e}default:{t=0;break e}}default:t=0}while(0);return t|0}function De(){var t=0,o=0,l=0,f=0;o=n[71]|0,l=n[70]|0;e:for(;;){if(t=l+2|0,l>>>0>=o>>>0){o=10;break}switch(u[t>>1]|0){case 96:{o=7;break e}case 36:{if((u[l+4>>1]|0)==123){o=6;break e}break}case 92:{t=l+4|0;break}default:}l=t}(o|0)==6?(t=l+4|0,n[70]=t,o=n[68]|0,f=u[396]|0,l=f&65535,n[o+(l<<3)>>2]=4,u[396]=f+1<<16>>16,n[o+(l<<3)+4>>2]=t):(o|0)==7?(n[70]=t,l=n[68]|0,f=(u[396]|0)+-1<<16>>16,u[396]=f,(n[l+((f&65535)<<3)>>2]|0)!=3&&R()):(o|0)==10&&(n[70]=t,R())}function B(t){t=t|0;var o=0,l=0,f=0;l=n[70]|0;e:do{o=u[l>>1]|0;A:do if(o<<16>>16!=47)if(t){if(j(o)|0)break;break e}else{if(ee(o)|0)break;break e}else switch(u[l+2>>1]|0){case 47:{ue();break A}case 42:{Qe(t);break A}default:{o=47;break e}}while(0);f=n[70]|0,l=f+2|0,n[70]=l}while(f>>>0<(n[71]|0)>>>0);return o|0}function J(t){t=t|0;var o=0,l=0,f=0,Q=0;for(Q=n[71]|0,o=n[70]|0;;){if(f=o+2|0,o>>>0>=Q>>>0){o=9;break}if(l=u[f>>1]|0,l<<16>>16==t<<16>>16){o=10;break}if(l<<16>>16==92)l=o+4|0,(u[l>>1]|0)==13?(o=o+6|0,o=(u[o>>1]|0)==10?o:l):o=l;else if(Je(l)|0){o=9;break}else o=f}(o|0)==9?(n[70]=f,R()):(o|0)==10&&(n[70]=f)}function ce(t,o,l,f){t=t|0,o=o|0,l=l|0,f=f|0;var Q=0,E=0;Q=n[65]|0,n[65]=Q+32,E=n[61]|0,n[(E|0?E+28|0:228)>>2]=Q,n[62]=E,n[61]=Q,n[Q+8>>2]=t,(f|0)==2?t=l:t=(f|0)==1?l+2|0:0,n[Q+12>>2]=t,n[Q>>2]=o,n[Q+4>>2]=l,n[Q+16>>2]=0,n[Q+20>>2]=f,E=(f|0)==1,g[Q+24>>0]=E&1,n[Q+28>>2]=0,E|(f|0)==2&&(g[795]=1)}function ye(t,o){t=t|0,o=o|0;var l=0,f=0,Q=0,E=0;return l=n[70]|0,f=u[l>>1]|0,E=(t|0)==(o|0),Q=E?0:t,E=E?0:o,f<<16>>16==97&&(n[70]=l+4,l=B(1)|0,t=n[70]|0,P(l)|0?(J(l),o=(n[70]|0)+2|0,n[70]=o):(x(l)|0,o=n[70]|0),f=B(1)|0,l=n[70]|0),(l|0)!=(t|0)&&Y(t,o,Q,E),f|0}function yt(){var t=0,o=0,l=0;l=n[71]|0,o=n[70]|0;e:for(;;){if(t=o+2|0,o>>>0>=l>>>0){o=6;break}switch(u[t>>1]|0){case 13:case 10:{o=6;break e}case 93:{o=7;break e}case 92:{t=o+4|0;break}default:}o=t}return(o|0)==6?(n[70]=t,R(),t=0):(o|0)==7&&(n[70]=t,t=93),t|0}function Ne(){var t=0,o=0,l=0;e:for(;;){if(t=n[70]|0,o=t+2|0,n[70]=o,t>>>0>=(n[71]|0)>>>0){l=7;break}switch(u[o>>1]|0){case 13:case 10:{l=7;break e}case 47:break e;case 91:{yt()|0;break}case 92:{n[70]=t+4;break}default:}}(l|0)==7&&R()}function Nt(t){switch(t=t|0,u[t>>1]|0){case 62:{t=(u[t+-2>>1]|0)==61;break}case 41:case 59:{t=1;break}case 104:{t=N(t+-2|0,200,4)|0;break}case 121:{t=N(t+-2|0,208,6)|0;break}case 101:{t=N(t+-2|0,220,3)|0;break}default:t=0}return t|0}function Qe(t){t=t|0;var o=0,l=0,f=0,Q=0,E=0;for(Q=(n[70]|0)+2|0,n[70]=Q,l=n[71]|0;o=Q+2|0,!(Q>>>0>=l>>>0||(f=u[o>>1]|0,!t&&Je(f)|0));){if(f<<16>>16==42&&(u[Q+4>>1]|0)==47){E=8;break}Q=o}(E|0)==8&&(n[70]=o,o=Q+4|0),n[70]=o}function S(t,o,l){t=t|0,o=o|0,l=l|0;var f=0,Q=0;e:do if(!l)t=0;else{for(;f=g[t>>0]|0,Q=g[o>>0]|0,f<<24>>24==Q<<24>>24;)if(l=l+-1|0,l)t=t+1|0,o=o+1|0;else{t=0;break e}t=(f&255)-(Q&255)|0}while(0);return t|0}function z(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:{t=1;break}default:if((t&-8)<<16>>16==40|(t+-58&65535)<6)t=1;else{switch(t<<16>>16){case 91:case 93:case 94:{t=1;break e}default:}t=(t+-123&65535)<4}}while(0);return t|0}function St(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:break;default:if(!((t+-58&65535)<6|(t+-40&65535)<7&t<<16>>16!=41)){switch(t<<16>>16){case 91:case 94:break e;default:}return t<<16>>16!=125&(t+-123&65535)<4|0}}while(0);return 1}function Se(t){t=t|0;var o=0;o=u[t>>1]|0;e:do if((o+-9&65535)>=5){switch(o<<16>>16){case 160:case 32:{o=1;break e}default:}if(z(o)|0)return o<<16>>16!=46|(Le(t)|0)|0;o=0}else o=1;while(0);return o|0}function Lt(t){t=t|0;var o=0,l=0,f=0,Q=0;return l=w,w=w+16|0,f=l,n[f>>2]=0,n[64]=t,o=n[3]|0,Q=o+(t<<1)|0,t=Q+2|0,u[Q>>1]=0,n[f>>2]=t,n[65]=t,n[57]=0,n[61]=0,n[59]=0,n[58]=0,n[63]=0,n[60]=0,w=l,o|0}function Y(t,o,l,f){t=t|0,o=o|0,l=l|0,f=f|0;var Q=0,E=0;Q=n[65]|0,n[65]=Q+20,E=n[63]|0,n[(E|0?E+16|0:232)>>2]=Q,n[63]=Q,n[Q>>2]=t,n[Q+4>>2]=o,n[Q+8>>2]=l,n[Q+12>>2]=f,n[Q+16>>2]=0,g[795]=1}function N(t,o,l){t=t|0,o=o|0,l=l|0;var f=0,Q=0;return f=t+(0-l<<1)|0,Q=f+2|0,t=n[3]|0,Q>>>0>=t>>>0&&!(S(Q,o,l<<1)|0)?(Q|0)==(t|0)?t=1:t=Se(f)|0:t=0,t|0}function Jt(t){switch(t=t|0,u[t>>1]|0){case 107:{t=N(t+-2|0,134,4)|0;break}case 101:{(u[t+-2>>1]|0)==117?t=N(t+-4|0,106,6)|0:t=0;break}default:t=0}return t|0}function _(t,o){t=t|0,o=o|0;var l=0;return l=n[3]|0,l>>>0<=t>>>0&&(u[t>>1]|0)==o<<16>>16?(l|0)==(t|0)?l=1:l=le(u[t+-2>>1]|0)|0:l=0,l|0}function le(t){t=t|0;e:do if((t+-9&65535)<5)t=1;else{switch(t<<16>>16){case 32:case 160:{t=1;break e}default:}t=t<<16>>16!=46&(z(t)|0)}while(0);return t|0}function ue(){var t=0,o=0,l=0;t=n[71]|0,l=n[70]|0;e:for(;o=l+2|0,!(l>>>0>=t>>>0);)switch(u[o>>1]|0){case 13:case 10:break e;default:l=o}n[70]=o}function x(t){for(t=t|0;!(j(t)|0||z(t)|0);)if(t=(n[70]|0)+2|0,n[70]=t,t=u[t>>1]|0,!(t<<16>>16)){t=0;break}return t|0}function Rt(){var t=0;switch(t=n[(n[59]|0)+20>>2]|0,t|0){case 1:{t=-1;break}case 2:{t=-2;break}default:t=t-(n[3]|0)>>1}return t|0}function vt(t){return t=t|0,!(N(t,180,5)|0)&&!(N(t,190,3)|0)?t=N(t,196,2)|0:t=1,t|0}function ee(t){switch(t=t|0,t<<16>>16){case 160:case 32:case 12:case 11:case 9:{t=1;break}default:t=0}return t|0}function Le(t){return t=t|0,(u[t>>1]|0)==46&&(u[t+-2>>1]|0)==46?t=(u[t+-4>>1]|0)==46:t=0,t|0}function H(t){return t=t|0,(n[3]|0)==(t|0)?t=1:t=Se(t+-2|0)|0,t|0}function Ft(){var t=0;return t=n[(n[60]|0)+12>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}function xt(){var t=0;return t=n[(n[59]|0)+12>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}function Ut(){var t=0;return t=n[(n[60]|0)+8>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}function qt(){var t=0;return t=n[(n[59]|0)+16>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}function Mt(){var t=0;return t=n[(n[59]|0)+4>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}function Yt(){var t=0;return t=n[59]|0,t=n[(t|0?t+28|0:228)>>2]|0,n[59]=t,(t|0)!=0|0}function Gt(){var t=0;return t=n[60]|0,t=n[(t|0?t+16|0:232)>>2]|0,n[60]=t,(t|0)!=0|0}function R(){g[794]=1,n[66]=(n[70]|0)-(n[3]|0)>>1,n[70]=(n[71]|0)+2}function j(t){return t=t|0,(t|128)<<16>>16==160|(t+-9&65535)<5|0}function P(t){return t=t|0,t<<16>>16==39|t<<16>>16==34|0}function Ot(){return(n[(n[59]|0)+8>>2]|0)-(n[3]|0)>>1|0}function _t(){return(n[(n[60]|0)+4>>2]|0)-(n[3]|0)>>1|0}function Je(t){return t=t|0,t<<16>>16==13|t<<16>>16==10|0}function Ht(){return(n[n[59]>>2]|0)-(n[3]|0)>>1|0}function jt(){return(n[n[60]>>2]|0)-(n[3]|0)>>1|0}function Pt(){return b[(n[59]|0)+24>>0]|0|0}function Xt(t){t=t|0,n[3]=t}function $t(){return(g[795]|0)!=0|0}function Tt(){return(g[796]|0)!=0|0}function Zt(){return n[66]|0}function Wt(t){return t=t|0,w=t+992+15&-16,992}return{su:Wt,ai:qt,e:Zt,ee:_t,ele:Ft,els:Ut,es:jt,f:Tt,id:Rt,ie:Mt,ip:Pt,is:Ht,ms:$t,p:L,re:Gt,ri:Yt,sa:Lt,se:xt,ses:Xt,ss:Ot}}(typeof self<"u"?self:global,{},Ae),ke=m.su(Z-(2<<17))}const r=K.length+1;m.ses(ke),m.sa(r-1),He(K,new Uint16Array(Ae,ke,r)),m.p()||(d=m.e(),U());const s=[],a=[];for(;m.ri();){const c=m.is(),C=m.ie(),h=m.ai(),g=m.id(),u=m.ss(),n=m.se();let b;m.ip()&&(b=we(g===-1?c:c+1,K.charCodeAt(g===-1?c-1:c))),s.push({n:b,s:c,e:C,ss:u,se:n,d:g,a:h})}for(;m.re();){const c=m.es(),C=m.ee(),h=m.els(),g=m.ele(),u=K.charCodeAt(c),n=h>=0?K.charCodeAt(h):-1;a.push({s:c,e:C,ls:h,le:g,n:u===34||u===39?we(c+1,u):K.slice(c,C),ln:h<0?void 0:n===34||n===39?we(h+1,n):K.slice(h,g)})}return[s,a,!!m.f(),!!m.ms()]}function we(i,e){d=i;let A="",r=d;for(;;){d>=K.length&&U();const s=K.charCodeAt(d);if(s===e)break;s===92?(A+=K.slice(r,d),A+=dA(),r=d):(s===8232||s===8233||Pe(s)&&U(),++d)}return A+=K.slice(r,d++),A}function dA(){let i=K.charCodeAt(++d);switch(++d,i){case 110:return`
13
+ `;case 114:return"\r";case 120:return String.fromCharCode(Ie(2));case 117:return function(){const e=K.charCodeAt(d);let A;return e===123?(++d,A=Ie(K.indexOf("}",d)-d),++d,A>1114111&&U()):A=Ie(4),A<=65535?String.fromCharCode(A):(A-=65536,String.fromCharCode(55296+(A>>10),56320+(1023&A)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:K.charCodeAt(d)===10&&++d;case 10:return"";case 56:case 57:U();default:if(i>=48&&i<=55){let e=K.substr(d-1,3).match(/^[0-7]+/)[0],A=parseInt(e,8);return A>255&&(e=e.slice(0,-1),A=parseInt(e,8)),d+=e.length-1,i=K.charCodeAt(d),e==="0"&&i!==56&&i!==57||U(),String.fromCharCode(A)}return Pe(i)?"":String.fromCharCode(i)}}function Ie(i){const e=d;let A=0,r=0;for(let s=0;s<i;++s,++d){let a,c=K.charCodeAt(d);if(c!==95){if(c>=97)a=c-97+10;else if(c>=65)a=c-65+10;else{if(!(c>=48&&c<=57))break;a=c-48}if(a>=16)break;r=c,A=16*A+a}else r!==95&&s!==0||U(),r=c}return r!==95&&d-e===i||U(),A}function Pe(i){return i===13||i===10}function U(){throw Object.assign(Error(`Parse error ${je}:${K.slice(0,d).split(`
14
+ `).length}:${d-K.lastIndexOf(`
15
+ `,d-1)}`),{idx:d})}let Xe=!1;_e.then(()=>{Xe=!0});const $e=i=>Xe?Oe(i):BA(i),Te="1",kA=(i=>{const e="default",A=Object.keys(i);return A.length===1&&A[0]===e&&i[e]&&typeof i[e]=="object"&&"__esModule"in i[e]?i[e]:i}).toString(),wA=`.then(${kA})`,pe=(i,e)=>{if(!e.includes("import"))return;const A=$e(e)[0].filter(c=>c.d>-1);if(A.length===0)return;const r=new Ke(e);for(const c of A)r.appendRight(c.se,wA);const s=r.toString(),a=r.generateMap({source:i,includeContent:!1,hires:"boundary"});return{code:s,map:a}},IA=i=>{try{const e=v.readFileSync(i,"utf8");return JSON.parse(e)}catch{}},Ze=()=>Math.floor(Date.now()/1e8),We=Re.tmpdir(),Ve=()=>{},{geteuid:ze}=process,pA=ze?ze():Re.userInfo().username;class bA extends Map{cacheDirectory=G.join(We,`tsx-${pA}`);oldCacheDirectory=G.join(We,"tsx");cacheFiles;constructor(){super(),v.mkdirSync(this.cacheDirectory,{recursive:!0}),this.cacheFiles=v.readdirSync(this.cacheDirectory).map(e=>{const[A,r]=e.split("-");return{time:Number(A),key:r,fileName:e}}),setImmediate(()=>{this.expireDiskCache(),this.removeOldCacheDirectory()})}get(e){const A=super.get(e);if(A)return A;const r=this.cacheFiles.find(c=>c.key===e);if(!r)return;const s=G.join(this.cacheDirectory,r.fileName),a=IA(s);if(!a){v.promises.unlink(s).then(()=>{const c=this.cacheFiles.indexOf(r);this.cacheFiles.splice(c,1)},()=>{});return}return super.set(e,a),a}set(e,A){if(super.set(e,A),A){const r=Ze();v.promises.writeFile(G.join(this.cacheDirectory,`${r}-${e}`),JSON.stringify(A)).catch(Ve)}return this}expireDiskCache(){const e=Ze();for(const A of this.cacheFiles)e-A.time>7&&v.promises.unlink(G.join(this.cacheDirectory,A.fileName)).catch(Ve)}async removeOldCacheDirectory(){try{await v.promises.access(this.oldCacheDirectory).then(()=>!0)&&("rm"in v.promises?await v.promises.rm(this.oldCacheDirectory,{recursive:!0,force:!0}):await v.promises.rmdir(this.oldCacheDirectory,{recursive:!0}))}catch{}}}var ne=process.env.TSX_DISABLE_CACHE?new Map:new bA;const mA=/^[\w+.-]+:\/\//,KA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,DA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var D;(function(i){i[i.Empty=1]="Empty",i[i.Hash=2]="Hash",i[i.Query=3]="Query",i[i.RelativePath=4]="RelativePath",i[i.AbsolutePath=5]="AbsolutePath",i[i.SchemeRelative=6]="SchemeRelative",i[i.Absolute=7]="Absolute"})(D||(D={}));function yA(i){return mA.test(i)}function NA(i){return i.startsWith("//")}function et(i){return i.startsWith("/")}function SA(i){return i.startsWith("file:")}function tt(i){return/^[.?#]/.test(i)}function re(i){const e=KA.exec(i);return At(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function LA(i){const e=DA.exec(i),A=e[2];return At("file:","",e[1]||"","",et(A)?A:"/"+A,e[3]||"",e[4]||"")}function At(i,e,A,r,s,a,c){return{scheme:i,user:e,host:A,port:r,path:s,query:a,hash:c,type:D.Absolute}}function nt(i){if(NA(i)){const A=re("http:"+i);return A.scheme="",A.type=D.SchemeRelative,A}if(et(i)){const A=re("http://foo.com"+i);return A.scheme="",A.host="",A.type=D.AbsolutePath,A}if(SA(i))return LA(i);if(yA(i))return re(i);const e=re("http://foo.com/"+i);return e.scheme="",e.host="",e.type=i?i.startsWith("?")?D.Query:i.startsWith("#")?D.Hash:D.RelativePath:D.Empty,e}function JA(i){if(i.endsWith("/.."))return i;const e=i.lastIndexOf("/");return i.slice(0,e+1)}function RA(i,e){rt(e,e.type),i.path==="/"?i.path=e.path:i.path=JA(e.path)+i.path}function rt(i,e){const A=e<=D.RelativePath,r=i.path.split("/");let s=1,a=0,c=!1;for(let h=1;h<r.length;h++){const g=r[h];if(!g){c=!0;continue}if(c=!1,g!=="."){if(g===".."){a?(c=!0,a--,s--):A&&(r[s++]=g);continue}r[s++]=g,a++}}let C="";for(let h=1;h<s;h++)C+="/"+r[h];(!C||c&&!C.endsWith("/.."))&&(C+="/"),i.path=C}function vA(i,e){if(!i&&!e)return"";const A=nt(i);let r=A.type;if(e&&r!==D.Absolute){const a=nt(e),c=a.type;switch(r){case D.Empty:A.hash=a.hash;case D.Hash:A.query=a.query;case D.Query:case D.RelativePath:RA(A,a);case D.AbsolutePath:A.user=a.user,A.host=a.host,A.port=a.port;case D.SchemeRelative:A.scheme=a.scheme}c>r&&(r=c)}rt(A,r);const s=A.query+A.hash;switch(r){case D.Hash:case D.Query:return s;case D.RelativePath:{const a=A.path.slice(1);return a?tt(e||i)&&!tt(a)?"./"+a+s:a+s:s||"."}case D.AbsolutePath:return A.path+s;default:return A.scheme+"//"+A.user+A.host+A.port+A.path+s}}function it(i,e){return e&&!e.endsWith("/")&&(e+="/"),vA(i,e)}function FA(i){if(!i)return"";const e=i.lastIndexOf("/");return i.slice(0,e+1)}const q=0;function xA(i,e){const A=st(i,0);if(A===i.length)return i;e||(i=i.slice());for(let r=A;r<i.length;r=st(i,r+1))i[r]=qA(i[r],e);return i}function st(i,e){for(let A=e;A<i.length;A++)if(!UA(i[A]))return A;return i.length}function UA(i){for(let e=1;e<i.length;e++)if(i[e][q]<i[e-1][q])return!1;return!0}function qA(i,e){return e||(i=i.slice()),i.sort(MA)}function MA(i,e){return i[q]-e[q]}let ie=!1;function YA(i,e,A,r){for(;A<=r;){const s=A+(r-A>>1),a=i[s][q]-e;if(a===0)return ie=!0,s;a<0?A=s+1:r=s-1}return ie=!1,A-1}function GA(i,e,A){for(let r=A+1;r<i.length&&i[r][q]===e;A=r++);return A}function OA(i,e,A){for(let r=A-1;r>=0&&i[r][q]===e;A=r--);return A}function _A(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function HA(i,e,A,r){const{lastKey:s,lastNeedle:a,lastIndex:c}=A;let C=0,h=i.length-1;if(r===s){if(e===a)return ie=c!==-1&&i[c][q]===e,c;e>=a?C=c===-1?0:c:h=c}return A.lastKey=r,A.lastNeedle=e,A.lastIndex=YA(i,e,C,h)}const ot=-1,jA=1;let be,at;class ct{constructor(e,A){const r=typeof e=="string";if(!r&&e._decodedMemo)return e;const s=r?JSON.parse(e):e,{version:a,file:c,names:C,sourceRoot:h,sources:g,sourcesContent:u}=s;this.version=a,this.file=c,this.names=C,this.sourceRoot=h,this.sources=g,this.sourcesContent=u;const n=it(h||"",FA(A));this.resolvedSources=g.map(y=>it(y||"",n));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=xA(b,r)),this._decodedMemo=_A(),this._bySources=void 0,this._bySourceMemos=void 0}}be=i=>i._decoded||(i._decoded=tA(i._encoded)),at=(i,e,A)=>{const r=be(i);if(e>=r.length)return null;const s=r[e],a=PA(s,i._decodedMemo,e,A,jA);return a===-1?null:s[a]};function PA(i,e,A,r,s){let a=HA(i,r,e,A);return ie?a=(s===ot?GA:OA)(i,r,a):s===ot&&a++,a===-1||a===i.length?-1:a}let Qt,se;class lt{constructor(){this._indexes={__proto__:null},this.array=[]}}Qt=(i,e)=>i._indexes[e],se=(i,e)=>{const A=Qt(i,e);if(A!==void 0)return A;const{array:r,_indexes:s}=i;return s[e]=r.push(e)-1};const XA=0,$A=1,TA=2,ZA=3,WA=4,ut=-1;let ht,ft,me,gt,Ct;class VA{constructor({file:e,sourceRoot:A}={}){this._names=new lt,this._sources=new lt,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=A}}ht=(i,e,A,r,s,a,c,C)=>Ct(!0,i,e,A,r,s,a,c,C),ft=(i,e,A)=>{const{_sources:r,_sourcesContent:s}=i;s[se(r,e)]=A},me=i=>{const{file:e,sourceRoot:A,_mappings:r,_sources:s,_sourcesContent:a,_names:c}=i;return tn(r),{version:3,file:e||void 0,names:c.array,sourceRoot:A||void 0,sources:s.array,sourcesContent:a,mappings:r}},gt=i=>{const e=me(i);return Object.assign(Object.assign({},e),{mappings:Ye(e.mappings)})},Ct=(i,e,A,r,s,a,c,C,h)=>{const{_mappings:g,_sources:u,_sourcesContent:n,_names:b}=e,y=zA(g,A),w=en(y,r);if(!s)return i&&An(y,w)?void 0:Et(y,w,[r]);const L=se(u,s),F=C?se(b,C):ut;if(L===n.length&&(n[L]=h!=null?h:null),!(i&&nn(y,w,L,a,c,F)))return Et(y,w,C?[r,L,a,c,F]:[r,L,a,c])};function zA(i,e){for(let A=i.length;A<=e;A++)i[A]=[];return i[e]}function en(i,e){let A=i.length;for(let r=A-1;r>=0;A=r--){const s=i[r];if(e>=s[XA])break}return A}function Et(i,e,A){for(let r=i.length;r>e;r--)i[r]=i[r-1];i[e]=A}function tn(i){const{length:e}=i;let A=e;for(let r=A-1;r>=0&&!(i[r].length>0);A=r,r--);A<e&&(i.length=A)}function An(i,e){return e===0?!0:i[e-1].length===1}function nn(i,e,A,r,s,a){if(e===0)return!1;const c=i[e-1];return c.length===1?!1:A===c[$A]&&r===c[TA]&&s===c[ZA]&&a===(c.length===5?c[WA]:ut)}const Bt=dt("",-1,-1,"",null),rn=[];function dt(i,e,A,r,s){return{source:i,line:e,column:A,name:r,content:s}}function kt(i,e,A,r){return{map:i,sources:e,source:A,content:r}}function wt(i,e){return kt(i,e,"",null)}function sn(i,e){return kt(null,rn,i,e)}function on(i){const e=new VA({file:i.map.file}),{sources:A,map:r}=i,s=r.names,a=be(r);for(let c=0;c<a.length;c++){const C=a[c];for(let h=0;h<C.length;h++){const g=C[h],u=g[0];let n=Bt;if(g.length!==1){const V=A[g[1]];if(n=It(V,g[2],g[3],g.length===5?s[g[4]]:""),n==null)continue}const{column:b,line:y,name:w,content:L,source:F}=n;ht(e,c,u,F,y,b,w),F&&L!=null&&ft(e,F,L)}}return e}function It(i,e,A,r){if(!i.map)return dt(i.source,e,A,r,i.content);const s=at(i.map,e,A);return s==null?null:s.length===1?Bt:It(i.sources[s[1]],s[2],s[3],s.length===5?i.map.names[s[4]]:r)}function an(i){return Array.isArray(i)?i:[i]}function cn(i,e){const A=an(i).map(a=>new ct(a,"")),r=A.pop();for(let a=0;a<A.length;a++)if(A[a].sources.length>1)throw new Error(`Transformation map ${a} must have exactly one source file.
16
+ Did you specify these with the most recent transformation maps first?`);let s=pt(r,e,"",0);for(let a=A.length-1;a>=0;a--)s=wt(A[a],[s]);return s}function pt(i,e,A,r){const{resolvedSources:s,sourcesContent:a}=i,c=r+1,C=s.map((h,g)=>{const u={importer:A,depth:c,source:h||"",content:void 0},n=e(u.source,u),{source:b,content:y}=u;if(n)return pt(new ct(n,b),e,b,c);const w=y!==void 0?y:a?a[g]:null;return sn(b,w)});return wt(i,C)}class Qn{constructor(e,A){const r=A.decodedMappings?me(e):gt(e);this.version=r.version,this.file=r.file,this.mappings=r.mappings,this.names=r.names,this.sourceRoot=r.sourceRoot,this.sources=r.sources,A.excludeContent||(this.sourcesContent=r.sourcesContent)}toString(){return JSON.stringify(this)}}function bt(i,e,A){const r=typeof A=="object"?A:{excludeContent:!!A,decodedMappings:!1},s=cn(i,e);return new Qn(on(s),r)}const ln=(i,e,A)=>{const r=[],s=[],a={code:e};for(const c of A){const C=c(i,a.code);C&&(Object.assign(a,C),r.unshift(C.map),C.warnings&&s.push(...C.warnings))}return{...a,map:bt(r,()=>null),warnings:s}},un=async(i,e,A)=>{const r=[],s=[],a={code:e};for(const c of A){const C=await c(i,a.code);C&&(Object.assign(a,C),r.unshift(C.map),C.warnings&&s.push(...C.warnings))}return{...a,map:bt(r,()=>null),warnings:s}},hn=Object.freeze({target:`node${process.versions.node}`,loader:"default"}),mt={...hn,sourcemap:!0,minifyWhitespace:!0,keepNames:!0},Kt=i=>{const e=i.sourcefile;if(e){const A=G.extname(e);A?(A===".cts"||A===".mts")&&(i.sourcefile=`${e.slice(0,-3)}ts`):i.sourcefile+=".js"}return A=>(A.map&&(i.sourcefile!==e&&(A.map=A.map.replace(JSON.stringify(i.sourcefile),JSON.stringify(e))),A.map=JSON.parse(A.map)),A)};function fn(i,e,A){const r={};e.endsWith(".cjs")||e.endsWith(".cts")||(r["import.meta.url"]=`'${Vt.pathToFileURL(e)}'`);const s={...mt,format:"cjs",sourcefile:e,define:r,banner:"(()=>{",footer:"})()",...A},a=ve([i,JSON.stringify(s),te.version,Te].join("-"));let c=ne.get(a);if(c||(c=ln(e,i,[(C,h)=>Kt(s)(te.transformSync(h,s)),pe]),ne.set(a,c)),c.warnings&&c.warnings.length>0){const{warnings:C}=c;for(const h of C)console.error(h)}return c}async function gn(i,e,A){const r={...mt,format:"esm",sourcefile:e,...A},s=ve([i,JSON.stringify(r),te.version,Te].join("-"));let a=ne.get(s);if(a||(a=await un(e,i,[async(c,C)=>Kt(r)(await te.transform(C,r)),pe]),ne.set(s,a)),a.warnings&&a.warnings.length>0){const{warnings:c}=a;for(const C of c)console.error(C)}return a}exports.parseEsm=$e,exports.transform=gn,exports.transformDynamicImport=pe,exports.transformSync=fn;