tsx 4.2.0 → 4.3.0
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/README.md +90 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.mjs +1 -1
- package/dist/cli.cjs +26 -26
- package/dist/cli.mjs +2 -2
- package/dist/esm/index.cjs +4 -4
- package/dist/esm/index.mjs +3 -3
- package/dist/index-a0bec4d2.mjs +17 -0
- package/dist/index-bb73d2cd.cjs +17 -0
- package/dist/loader.cjs +1 -1
- package/dist/loader.mjs +1 -1
- package/dist/node-features-57cbd763.cjs +1 -0
- package/dist/node-features-ef8dee58.mjs +1 -0
- package/dist/package-47993f5d.mjs +1 -0
- package/dist/package-a03af1f4.cjs +1 -0
- package/dist/pkgroll_create-require-c530e400.cjs +1 -0
- package/dist/preflight.cjs +1 -1
- package/dist/preflight.mjs +1 -1
- package/dist/repl.cjs +3 -3
- package/dist/repl.mjs +1 -1
- package/dist/resolve-ts-path-3fca13b7.cjs +1 -0
- package/dist/source-map.cjs +2 -2
- package/dist/source-map.mjs +2 -2
- package/package.json +2 -3
- package/dist/index-798b46f9.cjs +0 -14
- package/dist/index-a948fc61.mjs +0 -14
- package/dist/node-features-84a305a1.cjs +0 -1
- package/dist/node-features-a792cc3d.mjs +0 -1
- package/dist/package-a7e4efe9.cjs +0 -1
- package/dist/package-c3cf89e0.mjs +0 -1
- package/dist/pkgroll_create-require-a306261c.cjs +0 -1
- package/dist/resolve-ts-path-43f50656.cjs +0 -1
- /package/dist/{pkgroll_create-require-82fe4d50.mjs → pkgroll_create-require-b92e8e0d.mjs} +0 -0
- /package/dist/{resolve-ts-path-a8cb04a4.mjs → resolve-ts-path-eb3847f5.mjs} +0 -0
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]|\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\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83E[\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\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\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});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-47993f5d.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-ef8dee58.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[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uD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]|\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\uD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C\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});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))});
|
package/dist/esm/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
The --loader flag was deprecated in Node v20.6.0`);const{port:t}=e;l=t
|
|
3
|
-
const require = getBuiltin('module').createRequire("${typeof document>"u"?
|
|
1
|
+
"use strict";var T=require("worker_threads"),R=require("../node-features-57cbd763.cjs"),F=require("module"),v=require("../source-map.cjs"),h=require("path"),g=require("url"),E=require("../index-bb73d2cd.cjs"),O=require("../resolve-ts-path-3fca13b7.cjs"),p=require("get-tsconfig"),k=require("fs");require("esbuild"),require("crypto"),require("os");var d=typeof document<"u"?document.currentScript:null;const b=()=>{const{port1:e,port2:t}=new T.MessageChannel;v.installSourceMapSupport(),process.send&&e.addListener("message",r=>{r.type==="dependency"&&process.send(r)}),e.unref(),F.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 x(e){if(f.has(e))return f.get(e);if(!await k.promises.access(e).then(()=>!0,()=>!1)){f.set(e,void 0);return}const r=await k.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 N(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=g.fileURLToPath(t),o=await x(r);if(o)return o;const n=t;if(t=new URL("../package.json",t),t.pathname===n.pathname)break}}async function A(e){var t;const r=await N(e);return(t=r==null?void 0:r.type)!=null?t:"commonjs"}const m=process.env.TSX_TSCONFIG_PATH?{path:h.resolve(process.env.TSX_TSCONFIG_PATH),config:p.parseTsconfig(process.env.TSX_TSCONFIG_PATH)}:p.getTsconfig(),D=m&&p.createFilesMatcher(m),S=m&&p.createPathsMatcher(m),U="file://",y=/\.([cm]?ts|[tj]sx)($|\?)/,I=/\.json(?:$|\?)/,J=e=>{const t=h.extname(e);if(t===".json")return"json";if(t===".mjs"||t===".mts")return"module";if(t===".cjs"||t===".cts")return"commonjs"},C=e=>{const t=J(e);if(t)return t;if(y.test(e))return A(e)},q=v.installSourceMapSupport(),M=/\/(?:$|\?)/;let l=process.send?process.send.bind(process):void 0;const W=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.postMessage.bind(t)},G=({port:e})=>(l=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
|
|
13
|
+
`),w=async(e,t,r)=>{const o=await e(t,r);return!o.format&&o.url.startsWith(U)&&(o.format=await C(o.url)),o},H=[".js",".json",".ts",".tsx",".jsx"];async function _(e,t,r){const[o,n]=e.split("?");let c;for(const a of H)try{return await w(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 j(e,t,r){const o=M.test(e),n=o?"index":"/index",[c,a]=e.split("?");try{return await _(c+n+(a?`?${a}`:""),t,r)}catch(s){if(!o)try{return await _(e,t,r)}catch{}const i=s,{message:u}=i;throw i.message=i.message.replace(`${n.replace("/",h.sep)}'`,"'"),i.stack=i.stack.replace(u,i.message),i}}const X=/^\.{1,2}\//,L=async function(e,t,r,o){var n;if(M.test(e))return await j(e,t,r);const c=e.startsWith(U)||X.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 L(g.pathToFileURL(s).toString(),t,r)}catch{}}if(y.test(t.parentURL)){const a=O.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&&!o){const{code:s}=a;if(s==="ERR_UNSUPPORTED_DIR_IMPORT")try{return await j(e,t,r)}catch(i){if(i.code!=="ERR_PACKAGE_IMPORT_NOT_DEFINED")throw i}if(s==="ERR_MODULE_NOT_FOUND")try{return await _(e,t,r)}catch{}}throw a}},P=R.importAttributes?"importAttributes":"importAssertions",$=async function(e,t,r){var o;l&&l({type:"dependency",path:e}),I.test(e)&&(t[P]||(t[P]={}),t[P].type="json");const n=await r(e,t);if(!n.source)return n;const c=e.startsWith("file://")?g.fileURLToPath(e):e,a=n.source.toString();if(n.format==="json"||y.test(e)){const s=await E.transform(a,c,{tsconfigRaw:(o=D)==null?void 0:o(c)});return{format:"module",source:q(s)}}if(n.format==="module"){const s=E.transformDynamicImport(c,a);s&&(n.source=q(s))}return n};R.supportsModuleRegister&&T.isMainThread&&b(),exports.globalPreload=G,exports.initialize=W,exports.load=$,exports.resolve=L;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{MessageChannel as
|
|
2
|
-
The --loader flag was deprecated in Node v20.6.0`);const{port:s}=t;u=s
|
|
1
|
+
import{MessageChannel as O,isMainThread as S}from"worker_threads";import{i as F,s as N}from"../node-features-ef8dee58.mjs";import U from"module";import{installSourceMapSupport as w}from"../source-map.mjs";import d from"path";import{fileURLToPath as _,pathToFileURL as b}from"url";import{b as v,t as A}from"../index-a0bec4d2.mjs";import{r as D}from"../resolve-ts-path-eb3847f5.mjs";import{parseTsconfig as L,getTsconfig as x,createFilesMatcher as J,createPathsMatcher as I}from"get-tsconfig";import P from"fs";import"esbuild";import"crypto";import"os";const $=()=>{const{port1:t,port2:s}=new O;w(),process.send&&t.addListener("message",r=>{r.type==="dependency"&&process.send(r)}),t.unref(),U.register("./index.mjs",{parentURL:import.meta.url,data:{port:s},transferList:[s]})},m=new Map;async function C(t){if(m.has(t))return m.get(t);if(!await P.promises.access(t).then(()=>!0,()=>!1)){m.set(t,void 0);return}const r=await P.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 W(t){let s=new URL("package.json",t);for(;!s.pathname.endsWith("/node_modules/package.json");){const r=_(s),o=await C(r);if(o)return o;const n=s;if(s=new URL("../package.json",s),s.pathname===n.pathname)break}}async function q(t){var s;const r=await W(t);return(s=r==null?void 0:r.type)!=null?s:"commonjs"}const f=process.env.TSX_TSCONFIG_PATH?{path:d.resolve(process.env.TSX_TSCONFIG_PATH),config:L(process.env.TSX_TSCONFIG_PATH)}:x(),G=f&&J(f),T=f&&I(f),E="file://",g=/\.([cm]?ts|[tj]sx)($|\?)/,H=/\.json(?:$|\?)/,X=t=>{const s=d.extname(t);if(s===".json")return"json";if(s===".mjs"||s===".mts")return"module";if(s===".cjs"||s===".cts")return"commonjs"},K=t=>{const s=X(t);if(s)return s;if(g.test(t))return q(t)},k=w(),R=/\/(?:$|\?)/;let u=process.send?process.send.bind(process):void 0;const Q=async t=>{if(!t)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:s}=t;u=s.postMessage.bind(s)},z=({port:t})=>(u=t.postMessage.bind(t),`
|
|
3
3
|
const require = getBuiltin('module').createRequire("${import.meta.url}");
|
|
4
4
|
require('tsx/source-map').installSourceMapSupport(port);
|
|
5
5
|
if (process.send) {
|
|
@@ -10,4 +10,4 @@ The --loader flag was deprecated in Node v20.6.0`);const{port:s}=t;u=s,d=s.postM
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
port.unref(); // Allows process to exit without waiting for port to close
|
|
13
|
-
`),
|
|
13
|
+
`),h=async(t,s,r)=>{const o=await t(s,r);return!o.format&&o.url.startsWith(E)&&(o.format=await K(o.url)),o},B=[".js",".json",".ts",".tsx",".jsx"];async function l(t,s,r){const[o,n]=t.split("?");let c;for(const a of B)try{return await h(r,o+a+(n?`?${n}`:""),s)}catch(e){if(c===void 0&&e instanceof Error){const{message:i}=e;e.message=e.message.replace(`${a}'`,"'"),e.stack=e.stack.replace(i,e.message),c=e}}throw c}async function M(t,s,r){const o=R.test(t),n=o?"index":"/index",[c,a]=t.split("?");try{return await l(c+n+(a?`?${a}`:""),s,r)}catch(e){if(!o)try{return await l(t,s,r)}catch{}const i=e,{message:p}=i;throw i.message=i.message.replace(`${n.replace("/",d.sep)}'`,"'"),i.stack=i.stack.replace(p,i.message),i}}const V=/^\.{1,2}\//,j=async function(t,s,r,o){var n;if(R.test(t))return await M(t,s,r);const c=t.startsWith(E)||V.test(t);if(T&&!c&&!((n=s.parentURL)!=null&&n.includes("/node_modules/"))){const a=T(t);for(const e of a)try{return await j(b(e).toString(),s,r)}catch{}}if(g.test(s.parentURL)){const a=D(t);if(a)for(const e of a)try{return await h(r,e,s)}catch(i){const{code:p}=i;if(p!=="ERR_MODULE_NOT_FOUND"&&p!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i}}try{return await h(r,t,s)}catch(a){if(a instanceof Error&&!o){const{code:e}=a;if(e==="ERR_UNSUPPORTED_DIR_IMPORT")try{return await M(t,s,r)}catch(i){if(i.code!=="ERR_PACKAGE_IMPORT_NOT_DEFINED")throw i}if(e==="ERR_MODULE_NOT_FOUND")try{return await l(t,s,r)}catch{}}throw a}},y=F?"importAttributes":"importAssertions",Y=async function(t,s,r){var o;u&&u({type:"dependency",path:t}),H.test(t)&&(s[y]||(s[y]={}),s[y].type="json");const n=await r(t,s);if(!n.source)return n;const c=t.startsWith("file://")?_(t):t,a=n.source.toString();if(n.format==="json"||g.test(t)){const e=await v(a,c,{tsconfigRaw:(o=G)==null?void 0:o(c)});return{format:"module",source:k(e)}}if(n.format==="module"){const e=A(c,a);e&&(n.source=k(e))}return n};N&&S&&$();export{z as globalPreload,Q as initialize,Y as load,j as resolve};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{pathToFileURL as zt}from"url";import{version as Je,transformSync as eA,transform as tA}from"esbuild";import AA from"crypto";import v from"fs";import G from"path";import Re from"os";const ve=i=>AA.createHash("sha1").update(i).digest("hex"),Fe=",".charCodeAt(0),rA=";".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 Ee=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 nA(i){const e=new Int32Array(5),A=[];let n=0;do{const s=iA(i,n),a=[];let c=!0,g=0;e[0]=0;for(let u=n;u<s;u++){let C;u=X(i,u,e,0);const h=e[0];h<g&&(c=!1),g=h,Me(i,u,s)?(u=X(i,u,e,1),u=X(i,u,e,2),u=X(i,u,e,3),Me(i,u,s)?(u=X(i,u,e,4),C=[h,e[1],e[2],e[3],e[4]]):C=[h,e[1],e[2],e[3]]):C=[h],a.push(C)}c||sA(a),A.push(a),n=s+1}while(n<=i.length);return A}function iA(i,e){const A=i.indexOf(";",e);return A===-1?i.length:A}function X(i,e,A,n){let s=0,a=0,c=0;do{const u=i.charCodeAt(e++);c=qe[u],s|=(c&31)<<a,a+=5}while(c&32);const g=s&1;return s>>>=1,g&&(s=-2147483648|-s),A[n]+=s,e}function Me(i,e,A){return e>=A?!1:i.charCodeAt(e)!==Fe}function sA(i){i.sort(oA)}function oA(i,e){return i[0]-e[0]}function Ye(i){const e=new Int32Array(5),A=1024*16,n=A-36,s=new Uint8Array(A),a=s.subarray(0,n);let c=0,g="";for(let u=0;u<i.length;u++){const C=i[u];if(u>0&&(c===A&&(g+=Ee.decode(s),c=0),s[c++]=rA),C.length!==0){e[0]=0;for(let h=0;h<C.length;h++){const r=C[h];c>n&&(g+=Ee.decode(a),s.copyWithin(0,n,c),c-=n),h>0&&(s[c++]=Fe),c=$(s,c,e,r,0),r.length!==1&&(c=$(s,c,e,r,1),c=$(s,c,e,r,2),c=$(s,c,e,r,3),r.length!==4&&(c=$(s,c,e,r,4)))}}}return g+Ee.decode(s.subarray(0,c))}function $(i,e,A,n,s){const a=n[s];let c=a-A[s];A[s]=a,c=c<0?-c<<1|1:c<<1;do{let g=c&31;c>>>=5,c>0&&(g|=32),i[e++]=Ue[g]}while(c>0);return e}class se{constructor(e){this.bits=e instanceof se?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,n){this.start=e,this.end=A,this.original=n,this.intro="",this.outro="",this.content=n,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,n){return this.content=e,n||(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,n=this.original.slice(0,A),s=this.original.slice(A);this.original=n;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=n,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 n=this.split(this.end-A.length);this.edited&&n.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 aA(){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 cA=aA();let QA=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,"+cA(this.toString())}};function lA(i){const e=i.split(`
|
|
2
|
+
`),A=e.filter(a=>/^\t+/.test(a)),n=e.filter(a=>/^ {2,}/.test(a));if(A.length===0&&n.length===0)return null;if(A.length>=n.length)return" ";const s=n.reduce((a,c)=>{const g=/^ +/.exec(c)[0].length;return Math.min(g,a)},1/0);return new Array(s+1).join(" ")}function hA(i,e){const A=i.split(/[/\\]/),n=e.split(/[/\\]/);for(A.pop();A[0]===n[0];)A.shift(),n.shift();if(A.length){let s=A.length;for(;s--;)A[s]=".."}return A.concat(n).join("/")}const uA=Object.prototype.toString;function fA(i){return uA.call(i)==="[object Object]"}function Ge(i){const e=i.split(`
|
|
3
|
+
`),A=[];for(let n=0,s=0;n<e.length;n++)A.push(s),s+=e[n].length+1;return function(s){let a=0,c=A.length;for(;a<c;){const C=a+c>>1;s<A[C]?c=C:a=C+1}const g=a-1,u=s-A[g];return{line:g,column:u}}}const CA=/\w/;class gA{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,n,s){if(A.length){let a=A.indexOf(`
|
|
4
|
+
`,0),c=-1;for(;a>=0;){const u=[this.generatedCodeColumn,e,n.line,n.column];s>=0&&u.push(s),this.rawSegments.push(u),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,c=a,a=A.indexOf(`
|
|
5
|
+
`,a+1)}const g=[this.generatedCodeColumn,e,n.line,n.column];s>=0&&g.push(s),this.rawSegments.push(g),this.advance(A.slice(c+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(A));this.pending=null}addUneditedChunk(e,A,n,s,a){let c=A.start,g=!0,u=!1;for(;c<A.end;){if(this.hires||g||a.has(c)){const C=[this.generatedCodeColumn,e,s.line,s.column];this.hires==="boundary"?CA.test(n[c])?u||(this.rawSegments.push(C),u=!0):(this.rawSegments.push(C),u=!1):this.rawSegments.push(C)}n[c]===`
|
|
6
|
+
`?(s.line+=1,s.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,g=!0):(s.column+=1,this.generatedCodeColumn+=1,g=!1),c+=1}this.pending=null}advance(e){if(!e)return;const A=e.split(`
|
|
7
|
+
`);if(A.length>1){for(let n=0;n<A.length-1;n++)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 me{constructor(e,A={}){const n=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:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},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 se},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:A.ignoreList}}),this.byStart[0]=n,this.byEnd[e.length]=n}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 n=this.byEnd[e];return n?n.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 n=this.byStart[e];return n?n.appendRight(A):this.outro+=A,this}clone(){const e=new me(this.original,{filename:this.filename});let A=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=A.clone();for(;A;){e.byStart[n.start]=n,e.byEnd[n.end]=n;const s=A.next,a=s&&s.clone();a&&(n.next=a,a.previous=n,n=a),A=s}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new se(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const A=0,n=Object.keys(this.storedNames),s=new gA(e.hires),a=Ge(this.original);return this.intro&&s.advance(this.intro),this.firstChunk.eachNext(c=>{const g=a(c.start);c.intro.length&&s.advance(c.intro),c.edited?s.addEdit(A,c.content,g,c.storeName?n.indexOf(c.original):-1):s.addUneditedChunk(A,c,this.original,g,this.sourcemapLocations),c.outro.length&&s.advance(c.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?hA(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:n,mappings:s.raw,x_google_ignoreList:this.ignoreList?[A]:void 0}}generateMap(e){return new QA(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=lA(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,A){const n=/^[^\r\n]/gm;if(fA(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(h=>{for(let r=h[0];r<h[1];r+=1)s[r]=!0});let a=A.indentStart!==!1;const c=C=>a?`${e}${C}`:(a=!0,C);this.intro=this.intro.replace(n,c);let g=0,u=this.firstChunk;for(;u;){const C=u.end;if(u.edited)s[g]||(u.content=u.content.replace(n,c),u.content.length&&(a=u.content[u.content.length-1]===`
|
|
9
|
+
`));else for(g=u.start;g<C;){if(!s[g]){const h=this.original[g];h===`
|
|
10
|
+
`?a=!0:h!=="\r"&&a&&(a=!1,g===u.start||(this._splitChunk(u,g),u=u.next),u.prependRight(e))}g+=1}g=u.end,u=u.next}return this.outro=this.outro.replace(n,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,n){if(n>=e&&n<=A)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(A),this._split(n);const s=this.byStart[e],a=this.byEnd[A],c=s.previous,g=a.next,u=this.byStart[n];if(!u&&a===this.lastChunk)return this;const C=u?u.previous:this.lastChunk;return c&&(c.next=g),g&&(g.previous=c),C&&(C.next=s),u&&(u.previous=a),s.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=C,a.next=u||null,C||(this.firstChunk=s),u||(this.lastChunk=a),this}overwrite(e,A,n,s){return s=s||{},this.update(e,A,n,{...s,overwrite:!s.contentOnly})}update(e,A,n,s){if(typeof n!="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 C=this.original.slice(e,A);Object.defineProperty(this.storedNames,C,{writable:!0,value:!0,enumerable:!0})}const g=this.byStart[e],u=this.byEnd[A];if(g){let C=g;for(;C!==u;){if(C.next!==this.byStart[C.end])throw new Error("Cannot overwrite across a split point");C=C.next,C.edit("",!1)}g.edit(n,a,!c)}else{const C=new W(e,A,"").edit(n,a);u.next=C,C.previous=u}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 n=this.byEnd[e];return n?n.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 n=this.byStart[e];return n?n.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 n=this.byStart[e];for(;n;)n.intro="",n.outro="",n.edit(""),n=A>n.end?this.byStart[n.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,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(T),e!==-1)return n.outro.substr(e+1)+A;A=n.outro+A}if(n.content.length>0){if(e=n.content.lastIndexOf(T),e!==-1)return n.content.substr(e+1)+A;A=n.content+A}if(n.intro.length>0){if(e=n.intro.lastIndexOf(T),e!==-1)return n.intro.substr(e+1)+A;A=n.intro+A}}while(n=n.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 n="",s=this.firstChunk;for(;s&&(s.start>e||s.end<=e);){if(s.start<A&&s.end>=A)return n;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)&&(n+=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 g=a===s?e-s.start:0,u=c?s.content.length+A-s.end:s.content.length;if(n+=s.content.slice(g,u),s.outro&&(!c||s.end===A)&&(n+=s.outro),c)break;s=s.next}return n}snip(e,A){const n=this.clone();return n.remove(0,e),n.remove(A,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let A=this.lastSearchedChunk;const n=e>A.end;for(;A;){if(A.contains(e))return this._splitChunk(A,e);A=n?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 n=e.split(A);return this.byEnd[A]=e,this.byStart[A]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),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 n=this.lastChunk;do{const s=n.end,a=n.trimEnd(A);if(n.end!==s&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),a)return!0;n=n.previous}while(n);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 n=this.firstChunk;do{const s=n.end,a=n.trimStart(A);if(n.end!==s&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),a)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,A){function n(a,c){return typeof A=="string"?A.replace(/\$(\$|&|\d+)/g,(g,u)=>u==="$"?"$":u==="&"?a[0]:+u<a.length?a[+u]:`$${u}`):A(...a,a.index,c,a.groups)}function s(a,c){let g;const u=[];for(;g=a.exec(c);)u.push(g);return u}if(e.global)s(e,this.original).forEach(c=>{c.index!=null&&this.overwrite(c.index,c.index+c[0].length,n(c,this.original))});else{const a=this.original.match(e);a&&a.index!=null&&this.overwrite(a.index,a.index+a[0].length,n(a,this.original))}return this}_replaceString(e,A){const{original:n}=this,s=n.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:n}=this,s=e.length;for(let a=n.indexOf(e);a!==-1;a=n.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 EA=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function Oe(i,e="@"){if(!k)return _e.then(()=>Oe(i));const A=i.length+1,n=(k.__heap_base.value||k.__heap_base)+4*A-k.memory.buffer.byteLength;n>0&&k.memory.grow(Math.ceil(n/65536));const s=k.sa(A-1);if((EA?dA:BA)(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 u=k.is(),C=k.ie(),h=k.ai(),r=k.id(),b=k.ss(),y=k.se();let I;k.ip()&&(I=g(i.slice(r===-1?u-1:u,r===-1?C+1:C))),a.push({n:I,s:u,e:C,ss:b,se:y,d:r,a:h})}for(;k.re();){const u=k.es(),C=k.ee(),h=k.els(),r=k.ele(),b=i.slice(u,C),y=b[0],I=h<0?void 0:i.slice(h,r),L=I?I[0]:"";c.push({s:u,e:C,ls:h,le:r,n:y==='"'||y==="'"?g(b):b,ln:L==='"'||L==="'"?g(I):I})}function g(u){try{return(0,eval)(u)}catch{}}return[a,c,!!k.f(),!!k.ms()]}function BA(i,e){const A=i.length;let n=0;for(;n<A;){const s=i.charCodeAt(n);e[n++]=(255&s)<<8|s>>>8}}function dA(i,e){const A=i.length;let n=0;for(;n<A;)e[n]=i.charCodeAt(n++)}let k;const _e=WebAssembly.compile((Be="AGFzbQEAAAABKghgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gAn9/AAMwLwABAQICAgICAgICAgICAgICAgICAAMDAwQEAAAAAwAAAAADAwAFBgAAAAcABgIFBAUBcAEBAQUDAQABBg8CfwFBsPIAC38AQbDyAAsHdRQGbWVtb3J5AgACc2EAAAFlAAMCaXMABAJpZQAFAnNzAAYCc2UABwJhaQAIAmlkAAkCaXAACgJlcwALAmVlAAwDZWxzAA0DZWxlAA4CcmkADwJyZQAQAWYAEQJtcwASBXBhcnNlABMLX19oZWFwX2Jhc2UDAQryPS9oAQF/QQAgADYC9AlBACgC0AkiASAAQQF0aiIAQQA7AQBBACAAQQJqIgA2AvgJQQAgADYC/AlBAEEANgLUCUEAQQA2AuQJQQBBADYC3AlBAEEANgLYCUEAQQA2AuwJQQBBADYC4AkgAQu+AQEDf0EAKALkCSEEQQBBACgC/AkiBTYC5AlBACAENgLoCUEAIAVBIGo2AvwJIARBHGpB1AkgBBsgBTYCAEEAKALICSEEQQAoAsQJIQYgBSABNgIAIAUgADYCCCAFIAIgAkECakEAIAYgA0YbIAQgA0YbNg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QQAoAqQKQQJqIgQ2AqQKC0EBECghA0EAKAKkCiECCwJAIAIgBUYNACAFIARBACAAIAAgAUYiAhtBACABIAIbEAILIAMLcgEEf0EAKAKkCiEAQQAoAqgKIQECQAJAA0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgKkChAjQQAPC0EAIAI2AqQKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+IBAgBBgAgLxAEAAHgAcABvAHIAdABtAHAAbwByAHQAZQB0AGEAcgBvAG0AdQBuAGMAdABpAG8AbgBzAHMAZQByAHQAdgBvAHkAaQBlAGQAZQBsAGUAYwBvAG4AdABpAG4AaQBuAHMAdABhAG4AdAB5AGIAcgBlAGEAcgBlAHQAdQByAGQAZQBiAHUAZwBnAGUAYQB3AGEAaQB0AGgAcgB3AGgAaQBsAGUAZgBvAHIAaQBmAGMAYQB0AGMAZgBpAG4AYQBsAGwAZQBsAHMAAEHECQsQAQAAAAIAAAAABAAAMDkAAA==",typeof Buffer<"u"?Buffer.from(Be,"base64"):Uint8Array.from(atob(Be),i=>i.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:i})=>{k=i});var Be;let m,te,de,Z=2<<19;const He=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(i,e){const A=i.length;let n=0;for(;n<A;)e[n]=i.charCodeAt(n++)}:function(i,e){const A=i.length;let n=0;for(;n<A;){const s=i.charCodeAt(n);e[n++]=(255&s)<<8|s>>>8}},kA="xportmportlassetaromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let K,je,d;function IA(i,e="@"){K=i,je=e;const A=2*K.length+(2<<18);if(A>Z||!m){for(;A>Z;)Z*=2;te=new ArrayBuffer(Z),He(kA,new Uint16Array(te,16,105)),m=function(c,g,u){var C=new c.Int8Array(u),h=new c.Int16Array(u),r=new c.Int32Array(u),b=new c.Uint8Array(u),y=new c.Uint16Array(u),I=1024;function L(){var t=0,o=0,l=0,f=0,Q=0,E=0;E=I,I=I+10240|0,C[796]=1,C[795]=0,h[395]=0,h[396]=0,r[67]=r[2],C[797]=0,r[66]=0,C[794]=0,r[68]=E+2048,r[69]=E,C[798]=0,t=(r[3]|0)+-2|0,r[70]=t,o=t+(r[64]<<1)|0,r[71]=o;e:for(;;){if(l=t+2|0,r[70]=l,t>>>0>=o>>>0){Q=18;break}A:do switch(h[l>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(h[396]|0)&&H(l)|0&&!(S(t+4|0,16,10)|0)&&(F(),(C[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(h[t+4>>1]|0){case 47:{le();break A}case 42:{ce(1);break A}default:{Q=16;break e}}default:{Q=16;break e}}while(0);(Q|0)==17&&(Q=0,r[67]=r[70]),t=r[70]|0,o=r[71]|0}(Q|0)==9?(t=r[70]|0,r[67]=t,Q=19):(Q|0)==16?(C[796]=0,r[70]=t,Q=19):(Q|0)==18&&(C[794]|0?t=0:(t=l,Q=19));do if((Q|0)==19){e:for(;;){if(o=t+2|0,r[70]=o,t>>>0>=(r[71]|0)>>>0){Q=82;break}A:do switch(h[o>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(h[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(h[t+12>>1]|0)|0&&(C[798]=1),Q=81;break}case 40:{f=r[68]|0,o=h[396]|0,Q=o&65535,r[f+(Q<<3)>>2]=1,l=r[67]|0,h[396]=o+1<<16>>16,r[f+(Q<<3)+4>>2]=l,Q=81;break}case 41:{if(o=h[396]|0,!(o<<16>>16)){Q=36;break e}Q=o+-1<<16>>16,h[396]=Q,f=h[395]|0,o=f&65535,f<<16>>16&&(r[(r[68]|0)+((Q&65535)<<3)>>2]|0)==5&&(o=r[(r[69]|0)+(o+-1<<2)>>2]|0,l=o+4|0,r[l>>2]|0||(r[l>>2]=(r[67]|0)+2),r[o+12>>2]=t+4,h[395]=f+-1<<16>>16),Q=81;break}case 123:{Q=r[67]|0,f=r[61]|0,t=Q;do if((h[Q>>1]|0)==41&(f|0)!=0&&(r[f+4>>2]|0)==(Q|0))if(o=r[62]|0,r[61]=o,o){r[o+28>>2]=0;break}else{r[57]=0;break}while(0);f=r[68]|0,l=h[396]|0,Q=l&65535,r[f+(Q<<3)>>2]=C[798]|0?6:2,h[396]=l+1<<16>>16,r[f+(Q<<3)+4>>2]=t,C[798]=0,Q=81;break}case 125:{if(t=h[396]|0,!(t<<16>>16)){Q=49;break e}f=r[68]|0,Q=t+-1<<16>>16,h[396]=Q,(r[f+((Q&65535)<<3)>>2]|0)==4&&Ke(),Q=81;break}case 39:{J(39),Q=81;break}case 34:{J(34),Q=81;break}case 47:switch(h[t+4>>1]|0){case 47:{le();break A}case 42:{ce(1);break A}default:{t=r[67]|0,f=h[t>>1]|0;t:do if(Lt(f)|0)switch(f<<16>>16){case 46:if(((h[t+-2>>1]|0)+-48&65535)<10){Q=66;break t}else{Q=69;break t}case 43:if((h[t+-2>>1]|0)==43){Q=66;break t}else{Q=69;break t}case 45:if((h[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(Ft(r[(r[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=r[68]|0,l=y[396]|0,!(St(r[o+(l<<3)+4>>2]|0)|0)&&(r[o+(l<<3)>>2]|0)!=6?Q=66:Q=69}while(0);t:do if((Q|0)==66)if(Q=0,yt(t)|0)Q=69;else{switch(f<<16>>16){case 0:{Q=69;break t}case 47:{if(C[797]|0){Q=69;break t}break}default:}l=r[3]|0,o=f;do{if(t>>>0<=l>>>0)break;t=t+-2|0,r[67]=t,o=h[t>>1]|0}while(!(Qe(o)|0));if(ee(o)|0){do{if(t>>>0<=l>>>0)break;t=t+-2|0,r[67]=t}while(ee(h[t>>1]|0)|0);if(Rt(t)|0){ye(),C[797]=0,Q=81;break A}else t=1}else t=1}while(0);(Q|0)==69&&(ye(),t=0),C[797]=t,Q=81;break A}}case 96:{f=r[68]|0,l=h[396]|0,Q=l&65535,r[f+(Q<<3)+4>>2]=r[67],h[396]=l+1<<16>>16,r[f+(Q<<3)>>2]=3,Ke(),Q=81;break}default:Q=81}while(0);(Q|0)==81&&(Q=0,r[67]=r[70]),t=r[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=C[794]|0?0:(h[395]|h[396])<<16>>16==0;break}}while(0);return I=E,t|0}function F(){var t=0,o=0,l=0,f=0,Q=0,E=0,he=0,M=0,ue=0,fe=0,Ce=0,ge=0,w=0,p=0;M=r[70]|0,ue=r[63]|0,p=M+12|0,r[70]=p,l=B(1)|0,t=r[70]|0,(t|0)==(p|0)&&!(z(l)|0)||(w=3);e:do if((w|0)==3){A:do switch(l<<16>>16){case 123:{for(r[70]=t+2,t=B(1)|0,o=r[70]|0;;){if(P(t)|0?(J(t),t=(r[70]|0)+2|0,r[70]=t):(x(t)|0,t=r[70]|0),B(1)|0,t=De(o,t)|0,t<<16>>16==44&&(r[70]=(r[70]|0)+2,t=B(1)|0),t<<16>>16==125){w=15;break}if(p=o,o=r[70]|0,(o|0)==(p|0)){w=12;break}if(o>>>0>(r[71]|0)>>>0){w=14;break}}if((w|0)==12){R();break e}else if((w|0)==14){R();break e}else if((w|0)==15){C[795]=1,r[70]=(r[70]|0)+2;break A}break}case 42:{r[70]=t+2,B(1)|0,p=r[70]|0,De(p,p)|0;break}default:{switch(C[796]=0,l<<16>>16){case 100:{switch(M=t+14|0,r[70]=M,(B(1)|0)<<16>>16){case 97:{o=r[70]|0,!(S(o+2|0,56,8)|0)&&(Q=o+10|0,ee(h[Q>>1]|0)|0)&&(r[70]=Q,B(0)|0,w=22);break}case 102:{w=22;break}case 99:{o=r[70]|0,!(S(o+2|0,36,8)|0)&&(f=o+10|0,p=h[f>>1]|0,j(p)|0|p<<16>>16==123)&&(r[70]=f,E=B(1)|0,E<<16>>16!=123)&&(ge=E,w=31);break}default:}t:do if((w|0)==22&&(he=r[70]|0,(S(he+2|0,64,14)|0)==0)){if(l=he+16|0,o=h[l>>1]|0,!(j(o)|0))switch(o<<16>>16){case 40:case 42:break;default:break t}r[70]=l,o=B(1)|0,o<<16>>16==42&&(r[70]=(r[70]|0)+2,o=B(1)|0),o<<16>>16!=40&&(ge=o,w=31)}while(0);if((w|0)==31&&(fe=r[70]|0,x(ge)|0,Ce=r[70]|0,Ce>>>0>fe>>>0)){Y(t,M,fe,Ce),r[70]=(r[70]|0)+-2;break e}Y(t,M,0,0),r[70]=t+12;break e}case 97:{r[70]=t+10,B(0)|0,t=r[70]|0,w=35;break}case 102:{w=35;break}case 99:{if(!(S(t+2|0,36,8)|0)&&(o=t+10|0,Qe(h[o>>1]|0)|0)){r[70]=o,p=B(1)|0,w=r[70]|0,x(p)|0,p=r[70]|0,Y(w,p,w,p),r[70]=(r[70]|0)+-2;break e}t=t+4|0,r[70]=t;break}case 108:case 118:break;default:break e}if((w|0)==35){r[70]=t+16,t=B(1)|0,t<<16>>16==42&&(r[70]=(r[70]|0)+2,t=B(1)|0),w=r[70]|0,x(t)|0,p=r[70]|0,Y(w,p,w,p),r[70]=(r[70]|0)+-2;break e}r[70]=t+6,C[796]=0,l=B(1)|0,t=r[70]|0,l=(x(l)|0|32)<<16>>16==123,f=r[70]|0,l&&(r[70]=f+2,p=B(1)|0,t=r[70]|0,x(p)|0);t:for(;o=r[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=r[70]|0,o<<16>>16!=44){w=51;break}switch(r[70]=t+2,o=B(1)|0,t=r[70]|0,o<<16>>16){case 91:case 123:{w=51;break t}default:}x(o)|0}if((w|0)==51&&(r[70]=t+-2),!l)break e;r[70]=f+-2;break e}}while(0);if(p=(B(1)|0)<<16>>16==102,t=r[70]|0,p&&!(S(t+2|0,50,6)|0))for(r[70]=t+8,oe(M,B(1)|0),t=ue|0?ue+16|0:232;;){if(t=r[t>>2]|0,!t)break e;r[t+12>>2]=0,r[t+8>>2]=0,t=t+16|0}r[70]=t+-2}while(0)}function V(){var t=0,o=0,l=0,f=0,Q=0,E=0;Q=r[70]|0,t=Q+12|0,r[70]=t;e:do switch((B(1)|0)<<16>>16){case 40:{if(o=r[68]|0,E=h[396]|0,l=E&65535,r[o+(l<<3)>>2]=5,t=r[70]|0,h[396]=E+1<<16>>16,r[o+(l<<3)+4>>2]=t,(h[r[67]>>1]|0)!=46){switch(r[70]=t+2,E=B(1)|0,ae(Q,r[70]|0,0,t),o=r[61]|0,l=r[69]|0,Q=h[395]|0,h[395]=Q+1<<16>>16,r[l+((Q&65535)<<2)>>2]=o,E<<16>>16){case 39:{J(39);break}case 34:{J(34);break}default:{r[70]=(r[70]|0)+-2;break e}}switch(t=(r[70]|0)+2|0,r[70]=t,(B(1)|0)<<16>>16){case 44:{r[70]=(r[70]|0)+2,B(1)|0,Q=r[61]|0,r[Q+4>>2]=t,E=r[70]|0,r[Q+16>>2]=E,C[Q+24>>0]=1,r[70]=E+-2;break e}case 41:{h[396]=(h[396]|0)+-1<<16>>16,E=r[61]|0,r[E+4>>2]=t,r[E+12>>2]=(r[70]|0)+2,C[E+24>>0]=1,h[395]=(h[395]|0)+-1<<16>>16;break e}default:{r[70]=(r[70]|0)+-2;break e}}}break}case 46:{if(r[70]=(r[70]|0)+2,(B(1)|0)<<16>>16==109&&(o=r[70]|0,(S(o+2|0,44,6)|0)==0)){if(t=r[67]|0,!(Se(t)|0)&&(h[t>>1]|0)==46)break e;ae(Q,Q,o+8|0,2)}break}case 42:case 39:case 34:{f=18;break}case 123:{if(t=r[70]|0,h[396]|0){r[70]=t+-2;break e}for(;!(t>>>0>=(r[71]|0)>>>0);){if(t=B(1)|0,P(t)|0)J(t);else if(t<<16>>16==125){f=33;break}t=(r[70]|0)+2|0,r[70]=t}if((f|0)==33&&(r[70]=(r[70]|0)+2),E=(B(1)|0)<<16>>16==102,t=r[70]|0,E&&S(t+2|0,50,6)|0){R();break e}if(r[70]=t+8,t=B(1)|0,P(t)|0){oe(Q,t);break e}else{R();break e}}default:(r[70]|0)==(t|0)?r[70]=Q+10:f=18}while(0);do if((f|0)==18){if(h[396]|0){r[70]=(r[70]|0)+-2;break}for(t=r[71]|0,o=r[70]|0;;){if(o>>>0>=t>>>0){f=25;break}if(l=h[o>>1]|0,P(l)|0){f=23;break}E=o+2|0,r[70]=E,o=E}if((f|0)==23){oe(Q,l);break}else if((f|0)==25){R();break}}while(0)}function oe(t,o){t=t|0,o=o|0;var l=0,f=0;switch(l=(r[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(ae(t,l,r[70]|0,1),r[70]=(r[70]|0)+2,o=B(0)|0,t=o<<16>>16==97,t?(l=r[70]|0,S(l+2|0,78,10)|0&&(f=11)):(l=r[70]|0,o<<16>>16==119&&(h[l+2>>1]|0)==105&&(h[l+4>>1]|0)==116&&(h[l+6>>1]|0)==104||(f=11)),(f|0)==11){r[70]=l+-2;break}if(r[70]=l+((t?6:4)<<1),(B(1)|0)<<16>>16!=123){r[70]=l;break}t=r[70]|0,o=t;e:for(;;){switch(r[70]=o+2,o=B(1)|0,o<<16>>16){case 39:{J(39),r[70]=(r[70]|0)+2,o=B(1)|0;break}case 34:{J(34),r[70]=(r[70]|0)+2,o=B(1)|0;break}default:o=x(o)|0}if(o<<16>>16!=58){f=20;break}switch(r[70]=(r[70]|0)+2,(B(1)|0)<<16>>16){case 39:{J(39);break}case 34:{J(34);break}default:{f=24;break e}}switch(r[70]=(r[70]|0)+2,(B(1)|0)<<16>>16){case 125:{f=29;break e}case 44:break;default:{f=28;break e}}if(r[70]=(r[70]|0)+2,(B(1)|0)<<16>>16==125){f=29;break}o=r[70]|0}if((f|0)==20){r[70]=l;break}else if((f|0)==24){r[70]=l;break}else if((f|0)==28){r[70]=l;break}else if((f|0)==29){f=r[61]|0,r[f+16>>2]=t,r[f+12>>2]=(r[70]|0)+2;break}}while(0)}function yt(t){t=t|0;e:do switch(h[t>>1]|0){case 100:switch(h[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(h[t+-2>>1]|0){case 115:switch(h[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((h[t+-2>>1]|0)==111&&(h[t+-4>>1]|0)==101)switch(h[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(h[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 Ke(){var t=0,o=0,l=0,f=0;o=r[71]|0,l=r[70]|0;e:for(;;){if(t=l+2|0,l>>>0>=o>>>0){o=10;break}switch(h[t>>1]|0){case 96:{o=7;break e}case 36:{if((h[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,r[70]=t,o=r[68]|0,f=h[396]|0,l=f&65535,r[o+(l<<3)>>2]=4,h[396]=f+1<<16>>16,r[o+(l<<3)+4>>2]=t):(o|0)==7?(r[70]=t,l=r[68]|0,f=(h[396]|0)+-1<<16>>16,h[396]=f,(r[l+((f&65535)<<3)>>2]|0)!=3&&R()):(o|0)==10&&(r[70]=t,R())}function B(t){t=t|0;var o=0,l=0,f=0;l=r[70]|0;e:do{o=h[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(h[l+2>>1]|0){case 47:{le();break A}case 42:{ce(t);break A}default:{o=47;break e}}while(0);f=r[70]|0,l=f+2|0,r[70]=l}while(f>>>0<(r[71]|0)>>>0);return o|0}function J(t){t=t|0;var o=0,l=0,f=0,Q=0;for(Q=r[71]|0,o=r[70]|0;;){if(f=o+2|0,o>>>0>=Q>>>0){o=9;break}if(l=h[f>>1]|0,l<<16>>16==t<<16>>16){o=10;break}if(l<<16>>16==92)l=o+4|0,(h[l>>1]|0)==13?(o=o+6|0,o=(h[o>>1]|0)==10?o:l):o=l;else if(Le(l)|0){o=9;break}else o=f}(o|0)==9?(r[70]=f,R()):(o|0)==10&&(r[70]=f)}function ae(t,o,l,f){t=t|0,o=o|0,l=l|0,f=f|0;var Q=0,E=0;Q=r[65]|0,r[65]=Q+32,E=r[61]|0,r[(E|0?E+28|0:228)>>2]=Q,r[62]=E,r[61]=Q,r[Q+8>>2]=t,(f|0)==2?t=l:t=(f|0)==1?l+2|0:0,r[Q+12>>2]=t,r[Q>>2]=o,r[Q+4>>2]=l,r[Q+16>>2]=0,r[Q+20>>2]=f,E=(f|0)==1,C[Q+24>>0]=E&1,r[Q+28>>2]=0,E|(f|0)==2&&(C[795]=1)}function De(t,o){t=t|0,o=o|0;var l=0,f=0,Q=0,E=0;return l=r[70]|0,f=h[l>>1]|0,E=(t|0)==(o|0),Q=E?0:t,E=E?0:o,f<<16>>16==97&&(r[70]=l+4,l=B(1)|0,t=r[70]|0,P(l)|0?(J(l),o=(r[70]|0)+2|0,r[70]=o):(x(l)|0,o=r[70]|0),f=B(1)|0,l=r[70]|0),(l|0)!=(t|0)&&Y(t,o,Q,E),f|0}function Nt(){var t=0,o=0,l=0;l=r[71]|0,o=r[70]|0;e:for(;;){if(t=o+2|0,o>>>0>=l>>>0){o=6;break}switch(h[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?(r[70]=t,R(),t=0):(o|0)==7&&(r[70]=t,t=93),t|0}function ye(){var t=0,o=0,l=0;e:for(;;){if(t=r[70]|0,o=t+2|0,r[70]=o,t>>>0>=(r[71]|0)>>>0){l=7;break}switch(h[o>>1]|0){case 13:case 10:{l=7;break e}case 47:break e;case 91:{Nt()|0;break}case 92:{r[70]=t+4;break}default:}}(l|0)==7&&R()}function St(t){switch(t=t|0,h[t>>1]|0){case 62:{t=(h[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 ce(t){t=t|0;var o=0,l=0,f=0,Q=0,E=0;for(Q=(r[70]|0)+2|0,r[70]=Q,l=r[71]|0;o=Q+2|0,!(Q>>>0>=l>>>0||(f=h[o>>1]|0,!t&&Le(f)|0));){if(f<<16>>16==42&&(h[Q+4>>1]|0)==47){E=8;break}Q=o}(E|0)==8&&(r[70]=o,o=Q+4|0),r[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=C[t>>0]|0,Q=C[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 Lt(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 Ne(t){t=t|0;var o=0;o=h[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|(Se(t)|0)|0;o=0}else o=1;while(0);return o|0}function Jt(t){t=t|0;var o=0,l=0,f=0,Q=0;return l=I,I=I+16|0,f=l,r[f>>2]=0,r[64]=t,o=r[3]|0,Q=o+(t<<1)|0,t=Q+2|0,h[Q>>1]=0,r[f>>2]=t,r[65]=t,r[57]=0,r[61]=0,r[59]=0,r[58]=0,r[63]=0,r[60]=0,I=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=r[65]|0,r[65]=Q+20,E=r[63]|0,r[(E|0?E+16|0:232)>>2]=Q,r[63]=Q,r[Q>>2]=t,r[Q+4>>2]=o,r[Q+8>>2]=l,r[Q+12>>2]=f,r[Q+16>>2]=0,C[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=r[3]|0,Q>>>0>=t>>>0&&!(S(Q,o,l<<1)|0)?(Q|0)==(t|0)?t=1:t=Ne(f)|0:t=0,t|0}function Rt(t){switch(t=t|0,h[t>>1]|0){case 107:{t=N(t+-2|0,134,4)|0;break}case 101:{(h[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=r[3]|0,l>>>0<=t>>>0&&(h[t>>1]|0)==o<<16>>16?(l|0)==(t|0)?l=1:l=Qe(h[t+-2>>1]|0)|0:l=0,l|0}function Qe(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 le(){var t=0,o=0,l=0;t=r[71]|0,l=r[70]|0;e:for(;o=l+2|0,!(l>>>0>=t>>>0);)switch(h[o>>1]|0){case 13:case 10:break e;default:l=o}r[70]=o}function x(t){for(t=t|0;!(j(t)|0||z(t)|0);)if(t=(r[70]|0)+2|0,r[70]=t,t=h[t>>1]|0,!(t<<16>>16)){t=0;break}return t|0}function vt(){var t=0;switch(t=r[(r[59]|0)+20>>2]|0,t|0){case 1:{t=-1;break}case 2:{t=-2;break}default:t=t-(r[3]|0)>>1}return t|0}function Ft(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 Se(t){return t=t|0,(h[t>>1]|0)==46&&(h[t+-2>>1]|0)==46?t=(h[t+-4>>1]|0)==46:t=0,t|0}function H(t){return t=t|0,(r[3]|0)==(t|0)?t=1:t=Ne(t+-2|0)|0,t|0}function xt(){var t=0;return t=r[(r[60]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}function Ut(){var t=0;return t=r[(r[59]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}function qt(){var t=0;return t=r[(r[60]|0)+8>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}function Mt(){var t=0;return t=r[(r[59]|0)+16>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}function Yt(){var t=0;return t=r[(r[59]|0)+4>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}function Gt(){var t=0;return t=r[59]|0,t=r[(t|0?t+28|0:228)>>2]|0,r[59]=t,(t|0)!=0|0}function Ot(){var t=0;return t=r[60]|0,t=r[(t|0?t+16|0:232)>>2]|0,r[60]=t,(t|0)!=0|0}function R(){C[794]=1,r[66]=(r[70]|0)-(r[3]|0)>>1,r[70]=(r[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 _t(){return(r[(r[59]|0)+8>>2]|0)-(r[3]|0)>>1|0}function Ht(){return(r[(r[60]|0)+4>>2]|0)-(r[3]|0)>>1|0}function Le(t){return t=t|0,t<<16>>16==13|t<<16>>16==10|0}function jt(){return(r[r[59]>>2]|0)-(r[3]|0)>>1|0}function Pt(){return(r[r[60]>>2]|0)-(r[3]|0)>>1|0}function Xt(){return b[(r[59]|0)+24>>0]|0|0}function $t(t){t=t|0,r[3]=t}function Tt(){return(C[795]|0)!=0|0}function Zt(){return(C[796]|0)!=0|0}function Wt(){return r[66]|0}function Vt(t){return t=t|0,I=t+992+15&-16,992}return{su:Vt,ai:Mt,e:Wt,ee:Ht,ele:xt,els:qt,es:Pt,f:Zt,id:vt,ie:Yt,ip:Xt,is:jt,ms:Tt,p:L,re:Ot,ri:Gt,sa:Jt,se:Ut,ses:$t,ss:_t}}(typeof self<"u"?self:global,{},te),de=m.su(Z-(2<<17))}const n=K.length+1;m.ses(de),m.sa(n-1),He(K,new Uint16Array(te,de,n)),m.p()||(d=m.e(),U());const s=[],a=[];for(;m.ri();){const c=m.is(),g=m.ie(),u=m.ai(),C=m.id(),h=m.ss(),r=m.se();let b;m.ip()&&(b=ke(C===-1?c:c+1,K.charCodeAt(C===-1?c-1:c))),s.push({n:b,s:c,e:g,ss:h,se:r,d:C,a:u})}for(;m.re();){const c=m.es(),g=m.ee(),u=m.els(),C=m.ele(),h=K.charCodeAt(c),r=u>=0?K.charCodeAt(u):-1;a.push({s:c,e:g,ls:u,le:C,n:h===34||h===39?ke(c+1,h):K.slice(c,g),ln:u<0?void 0:r===34||r===39?ke(u+1,r):K.slice(u,C)})}return[s,a,!!m.f(),!!m.ms()]}function ke(i,e){d=i;let A="",n=d;for(;;){d>=K.length&&U();const s=K.charCodeAt(d);if(s===e)break;s===92?(A+=K.slice(n,d),A+=wA(),n=d):(s===8232||s===8233||Pe(s)&&U(),++d)}return A+=K.slice(n,d++),A}function wA(){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,n=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;n=c,A=16*A+a}else n!==95&&s!==0||U(),n=c}return n!==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):IA(i),Te="2",pA=(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(),bA=`.then(${pA})`,we=(i,e)=>{if(!e.includes("import"))return;const A=$e(e)[0].filter(c=>c.d>-1);if(A.length===0)return;const n=new me(e);for(const c of A)n.appendRight(c.se,bA);const s=n.toString(),a=n.generateMap({source:i,includeContent:!1,hires:"boundary"});return{code:s,map:a}},mA=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,KA=ze?ze():Re.userInfo().username;class DA extends Map{cacheDirectory=G.join(We,`tsx-${KA}`);oldCacheDirectory=G.join(We,"tsx");cacheFiles;constructor(){super(),v.mkdirSync(this.cacheDirectory,{recursive:!0}),this.cacheFiles=v.readdirSync(this.cacheDirectory).map(e=>{const[A,n]=e.split("-");return{time:Number(A),key:n,fileName:e}}),setImmediate(()=>{this.expireDiskCache(),this.removeOldCacheDirectory()})}get(e){const A=super.get(e);if(A)return A;const n=this.cacheFiles.find(c=>c.key===e);if(!n)return;const s=G.join(this.cacheDirectory,n.fileName),a=mA(s);if(!a){v.promises.unlink(s).then(()=>{const c=this.cacheFiles.indexOf(n);this.cacheFiles.splice(c,1)},()=>{});return}return super.set(e,a),a}set(e,A){if(super.set(e,A),A){const n=Ze();v.promises.writeFile(G.join(this.cacheDirectory,`${n}-${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 Ae=process.env.TSX_DISABLE_CACHE?new Map:new DA;const yA=/^[\w+.-]+:\/\//,NA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,SA=/^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 LA(i){return yA.test(i)}function JA(i){return i.startsWith("//")}function et(i){return i.startsWith("/")}function RA(i){return i.startsWith("file:")}function tt(i){return/^[.?#]/.test(i)}function re(i){const e=NA.exec(i);return At(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function vA(i){const e=SA.exec(i),A=e[2];return At("file:","",e[1]||"","",et(A)?A:"/"+A,e[3]||"",e[4]||"")}function At(i,e,A,n,s,a,c){return{scheme:i,user:e,host:A,port:n,path:s,query:a,hash:c,type:D.Absolute}}function rt(i){if(JA(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(RA(i))return vA(i);if(LA(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 FA(i){if(i.endsWith("/.."))return i;const e=i.lastIndexOf("/");return i.slice(0,e+1)}function xA(i,e){nt(e,e.type),i.path==="/"?i.path=e.path:i.path=FA(e.path)+i.path}function nt(i,e){const A=e<=D.RelativePath,n=i.path.split("/");let s=1,a=0,c=!1;for(let u=1;u<n.length;u++){const C=n[u];if(!C){c=!0;continue}if(c=!1,C!=="."){if(C===".."){a?(c=!0,a--,s--):A&&(n[s++]=C);continue}n[s++]=C,a++}}let g="";for(let u=1;u<s;u++)g+="/"+n[u];(!g||c&&!g.endsWith("/.."))&&(g+="/"),i.path=g}function UA(i,e){if(!i&&!e)return"";const A=rt(i);let n=A.type;if(e&&n!==D.Absolute){const a=rt(e),c=a.type;switch(n){case D.Empty:A.hash=a.hash;case D.Hash:A.query=a.query;case D.Query:case D.RelativePath:xA(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>n&&(n=c)}nt(A,n);const s=A.query+A.hash;switch(n){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+="/"),UA(i,e)}function qA(i){if(!i)return"";const e=i.lastIndexOf("/");return i.slice(0,e+1)}const q=0;function MA(i,e){const A=st(i,0);if(A===i.length)return i;e||(i=i.slice());for(let n=A;n<i.length;n=st(i,n+1))i[n]=GA(i[n],e);return i}function st(i,e){for(let A=e;A<i.length;A++)if(!YA(i[A]))return A;return i.length}function YA(i){for(let e=1;e<i.length;e++)if(i[e][q]<i[e-1][q])return!1;return!0}function GA(i,e){return e||(i=i.slice()),i.sort(OA)}function OA(i,e){return i[q]-e[q]}let ne=!1;function _A(i,e,A,n){for(;A<=n;){const s=A+(n-A>>1),a=i[s][q]-e;if(a===0)return ne=!0,s;a<0?A=s+1:n=s-1}return ne=!1,A-1}function HA(i,e,A){for(let n=A+1;n<i.length&&i[n][q]===e;A=n++);return A}function jA(i,e,A){for(let n=A-1;n>=0&&i[n][q]===e;A=n--);return A}function PA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function XA(i,e,A,n){const{lastKey:s,lastNeedle:a,lastIndex:c}=A;let g=0,u=i.length-1;if(n===s){if(e===a)return ne=c!==-1&&i[c][q]===e,c;e>=a?g=c===-1?0:c:u=c}return A.lastKey=n,A.lastNeedle=e,A.lastIndex=_A(i,e,g,u)}const ot=-1,$A=1;let pe,at;class ct{constructor(e,A){const n=typeof e=="string";if(!n&&e._decodedMemo)return e;const s=n?JSON.parse(e):e,{version:a,file:c,names:g,sourceRoot:u,sources:C,sourcesContent:h}=s;this.version=a,this.file=c,this.names=g,this.sourceRoot=u,this.sources=C,this.sourcesContent=h;const r=it(u||"",qA(A));this.resolvedSources=C.map(y=>it(y||"",r));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=MA(b,n)),this._decodedMemo=PA(),this._bySources=void 0,this._bySourceMemos=void 0}}pe=i=>i._decoded||(i._decoded=nA(i._encoded)),at=(i,e,A)=>{const n=pe(i);if(e>=n.length)return null;const s=n[e],a=TA(s,i._decodedMemo,e,A,$A);return a===-1?null:s[a]};function TA(i,e,A,n,s){let a=XA(i,n,e,A);return ne?a=(s===ot?HA:jA)(i,n,a):s===ot&&a++,a===-1||a===i.length?-1:a}let Qt,ie;class lt{constructor(){this._indexes={__proto__:null},this.array=[]}}Qt=(i,e)=>i._indexes[e],ie=(i,e)=>{const A=Qt(i,e);if(A!==void 0)return A;const{array:n,_indexes:s}=i;return s[e]=n.push(e)-1};const ZA=0,WA=1,VA=2,zA=3,er=4,ht=-1;let ut,ft,be,Ct,gt;class tr{constructor({file:e,sourceRoot:A}={}){this._names=new lt,this._sources=new lt,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=A}}ut=(i,e,A,n,s,a,c,g)=>gt(!0,i,e,A,n,s,a,c,g),ft=(i,e,A)=>{const{_sources:n,_sourcesContent:s}=i;s[ie(n,e)]=A},be=i=>{const{file:e,sourceRoot:A,_mappings:n,_sources:s,_sourcesContent:a,_names:c}=i;return nr(n),{version:3,file:e||void 0,names:c.array,sourceRoot:A||void 0,sources:s.array,sourcesContent:a,mappings:n}},Ct=i=>{const e=be(i);return Object.assign(Object.assign({},e),{mappings:Ye(e.mappings)})},gt=(i,e,A,n,s,a,c,g,u)=>{const{_mappings:C,_sources:h,_sourcesContent:r,_names:b}=e,y=Ar(C,A),I=rr(y,n);if(!s)return i&&ir(y,I)?void 0:Et(y,I,[n]);const L=ie(h,s),F=g?ie(b,g):ht;if(L===r.length&&(r[L]=u!=null?u:null),!(i&&sr(y,I,L,a,c,F)))return Et(y,I,g?[n,L,a,c,F]:[n,L,a,c])};function Ar(i,e){for(let A=i.length;A<=e;A++)i[A]=[];return i[e]}function rr(i,e){let A=i.length;for(let n=A-1;n>=0;A=n--){const s=i[n];if(e>=s[ZA])break}return A}function Et(i,e,A){for(let n=i.length;n>e;n--)i[n]=i[n-1];i[e]=A}function nr(i){const{length:e}=i;let A=e;for(let n=A-1;n>=0&&!(i[n].length>0);A=n,n--);A<e&&(i.length=A)}function ir(i,e){return e===0?!0:i[e-1].length===1}function sr(i,e,A,n,s,a){if(e===0)return!1;const c=i[e-1];return c.length===1?!1:A===c[WA]&&n===c[VA]&&s===c[zA]&&a===(c.length===5?c[er]:ht)}const Bt=dt("",-1,-1,"",null),or=[];function dt(i,e,A,n,s){return{source:i,line:e,column:A,name:n,content:s}}function kt(i,e,A,n){return{map:i,sources:e,source:A,content:n}}function It(i,e){return kt(i,e,"",null)}function ar(i,e){return kt(null,or,i,e)}function cr(i){const e=new tr({file:i.map.file}),{sources:A,map:n}=i,s=n.names,a=pe(n);for(let c=0;c<a.length;c++){const g=a[c];for(let u=0;u<g.length;u++){const C=g[u],h=C[0];let r=Bt;if(C.length!==1){const V=A[C[1]];if(r=wt(V,C[2],C[3],C.length===5?s[C[4]]:""),r==null)continue}const{column:b,line:y,name:I,content:L,source:F}=r;ut(e,c,h,F,y,b,I),F&&L!=null&&ft(e,F,L)}}return e}function wt(i,e,A,n){if(!i.map)return dt(i.source,e,A,n,i.content);const s=at(i.map,e,A);return s==null?null:s.length===1?Bt:wt(i.sources[s[1]],s[2],s[3],s.length===5?i.map.names[s[4]]:n)}function Qr(i){return Array.isArray(i)?i:[i]}function lr(i,e){const A=Qr(i).map(a=>new ct(a,"")),n=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(n,e,"",0);for(let a=A.length-1;a>=0;a--)s=It(A[a],[s]);return s}function pt(i,e,A,n){const{resolvedSources:s,sourcesContent:a}=i,c=n+1,g=s.map((u,C)=>{const h={importer:A,depth:c,source:u||"",content:void 0},r=e(h.source,h),{source:b,content:y}=h;if(r)return pt(new ct(r,b),e,b,c);const I=y!==void 0?y:a?a[C]:null;return ar(b,I)});return It(i,g)}class hr{constructor(e,A){const n=A.decodedMappings?be(e):Ct(e);this.version=n.version,this.file=n.file,this.mappings=n.mappings,this.names=n.names,this.sourceRoot=n.sourceRoot,this.sources=n.sources,A.excludeContent||(this.sourcesContent=n.sourcesContent)}toString(){return JSON.stringify(this)}}function bt(i,e,A){const n=typeof A=="object"?A:{excludeContent:!!A,decodedMappings:!1},s=lr(i,e);return new hr(cr(s),n)}const ur=(i,e,A)=>{const n=[],s={code:e};for(const a of A){const c=a(i,s.code);c&&(Object.assign(s,c),n.unshift(c.map))}return{...s,map:bt(n,()=>null)}},fr=async(i,e,A)=>{const n=[],s={code:e};for(const a of A){const c=await a(i,s.code);c&&(Object.assign(s,c),n.unshift(c.map))}return{...s,map:bt(n,()=>null)}},Cr=Object.freeze({target:`node${process.versions.node}`,loader:"default"}),mt={...Cr,sourcemap:!0,sourcesContent:!1,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)},Dt=i=>{const[e]=i.errors;let A=`[esbuild Error]: ${e.text}`;if(e.location){const{file:n,line:s,column:a}=e.location;A+=`
|
|
17
|
+
at ${n}:${s}:${a}`}console.error(A),process.exit(1)};function gr(i,e,A){const n={};e.endsWith(".cjs")||e.endsWith(".cts")||(n["import.meta.url"]=`'${zt(e)}'`);const s={...mt,format:"cjs",sourcefile:e,define:n,banner:"(()=>{",footer:"})()",...A},a=ve([i,JSON.stringify(s),Je,Te].join("-"));let c=Ae.get(a);return c||(c=ur(e,i,[(g,u)=>{const C=Kt(s);try{return C(eA(u,s))}catch(h){Dt(h)}},we]),Ae.set(a,c)),c}async function Er(i,e,A){const n={...mt,format:"esm",sourcefile:e,...A},s=ve([i,JSON.stringify(n),Je,Te].join("-"));let a=Ae.get(s);return a||(a=await fr(e,i,[async(c,g)=>{const u=Kt(n);try{return u(await tA(g,n))}catch(C){Dt(C)}},we]),Ae.set(s,a)),a}export{gr as a,Er as b,$e as p,we as t};
|