tsx 4.23.8 → 4.23.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/index.cjs +1 -1
- package/dist/cjs/api/index.mjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.mjs +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/esm/api/index.cjs +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/index.cjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/loader.cjs +1 -1
- package/dist/loader.mjs +1 -1
- package/dist/package-CQQPX_Gw.cjs +1 -0
- package/dist/package-DD1BsAZe.mjs +1 -0
- package/dist/{register-DjEWBuYC.mjs → register--Y-HowfU.mjs} +1 -1
- package/dist/{register-CRHZwkwo.cjs → register-BxraCus2.cjs} +1 -1
- package/dist/register-Cn3U8bZT.cjs +2 -0
- package/dist/register-DdgZzFJi.mjs +2 -0
- package/dist/repl.cjs +1 -1
- package/dist/repl.mjs +1 -1
- package/dist/{require-DLrt45w5.mjs → require-CL1N-1Kt.mjs} +1 -1
- package/dist/{require-BomokLx3.cjs → require-DaO4qQ4U.cjs} +1 -1
- package/package.json +1 -1
- package/dist/package-CbP9_Eiu.cjs +0 -1
- package/dist/package-qeSTyjZj.mjs +0 -1
- package/dist/register-45NAB8gE.mjs +0 -2
- package/dist/register-BYFLLcJ9.cjs +0 -2
package/dist/cjs/api/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("../../get-pipe-path-D4YM6rQt.cjs");var r=require("../../register-
|
|
1
|
+
"use strict";require("../../get-pipe-path-D4YM6rQt.cjs");var r=require("../../register-BxraCus2.cjs"),e=require("../../require-DaO4qQ4U.cjs");require("module"),require("node:path"),require("../../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:module"),require("node:url"),require("node:fs"),require("fs"),require("os"),require("path"),require("../../index-LWEOpzQe.cjs"),require("esbuild"),require("node:crypto"),require("../../node-features-CEjg7cMX.cjs"),require("../../client-D3mGB526.cjs"),require("node:net"),require("node:util"),require("../../index-BWFBUo6r.cjs"),exports.register=r.register,exports.require=e.tsxRequire;
|
package/dist/cjs/api/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../get-pipe-path-_tAJyU_v.mjs";import{r as n}from"../../register-
|
|
1
|
+
import"../../get-pipe-path-_tAJyU_v.mjs";import{r as n}from"../../register--Y-HowfU.mjs";import{t as w}from"../../require-CL1N-1Kt.mjs";import"module";import"node:path";import"../../temporary-directory-BDDVQOvU.mjs";import"node:os";import"node:module";import"node:url";import"node:fs";import"fs";import"os";import"path";import"../../index-CVGQLgGk.mjs";import"esbuild";import"node:crypto";import"../../node-features-JeyyvQz6.mjs";import"../../client-D_mPDF5S.mjs";import"node:net";import"node:util";import"../../index-gbaejti9.mjs";export{n as register,w as require};
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("../register-
|
|
1
|
+
"use strict";var r=require("../register-BxraCus2.cjs");require("../get-pipe-path-D4YM6rQt.cjs"),require("module"),require("node:path"),require("../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:module"),require("node:url"),require("node:fs"),require("fs"),require("os"),require("path"),require("../index-LWEOpzQe.cjs"),require("esbuild"),require("node:crypto"),require("../node-features-CEjg7cMX.cjs"),require("../client-D3mGB526.cjs"),require("node:net"),require("node:util"),require("../index-BWFBUo6r.cjs"),r.register();
|
package/dist/cjs/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"../register-
|
|
1
|
+
import{r}from"../register--Y-HowfU.mjs";import"../get-pipe-path-_tAJyU_v.mjs";import"module";import"node:path";import"../temporary-directory-BDDVQOvU.mjs";import"node:os";import"node:module";import"node:url";import"node:fs";import"fs";import"os";import"path";import"../index-CVGQLgGk.mjs";import"esbuild";import"node:crypto";import"../node-features-JeyyvQz6.mjs";import"../client-D_mPDF5S.mjs";import"node:net";import"node:util";import"../index-gbaejti9.mjs";r();
|
package/dist/cli.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Tn=Object.create;var ht=Object.defineProperty;var xn=Object.getOwnPropertyDescriptor;var On=Object.getOwnPropertyNames;var Nn=Object.getPrototypeOf,Pn=Object.prototype.hasOwnProperty;var a=(t,e)=>ht(t,"name",{value:e,configurable:!0});var Hn=(t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of On(e))!Pn.call(t,n)&&n!==u&&ht(t,n,{get:()=>e[n],enumerable:!(r=xn(e,n))||r.enumerable});return t};var Ln=(t,e,u)=>(u=t!=null?Tn(Nn(t)):{},Hn(e||!t||!t.__esModule?ht(u,"default",{value:t,enumerable:!0}):u,t));var dt=require("node:os"),In=require("tty"),kn=require("./package-CbP9_Eiu.cjs"),he=require("./get-pipe-path-D4YM6rQt.cjs"),Ru=require("node:url"),Mn=require("child_process"),q=require("path"),De=require("fs"),ke=require("./node-features-CEjg7cMX.cjs"),Me=require("node:path"),We=require("node:fs"),Wn=require("events"),_e=require("util"),Gn=require("stream"),bu=require("os"),ne=require("./index-BWFBUo6r.cjs"),jn=require("node:net"),Un=require("./temporary-directory-B83uKxJF.cjs");require("module");const Kn="known-flag",Vn="unknown-flag",zn="argument",{stringify:Ae}=JSON,Yn=/\B([A-Z])/g,qn=a(t=>t.replace(Yn,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Xn}=Object.prototype,ye=a((t,e)=>Xn.call(t,e),"w$2"),Qn=a(t=>Array.isArray(t),"L$2"),vu=a(t=>typeof t=="function"?[t,!1]:Qn(t)?[t[0],!0]:vu(t.type),"b$2"),Zn=a((t,e)=>t===Boolean?e!=="false":e,"d$2"),Jn=a((t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),"m$1"),es=/[\s.:=]/,ts=a(t=>{const e=`Flag name ${Ae(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(es);if(u)throw new Error(`${e} cannot contain ${Ae(u?.[0])}`)},"B"),us=a(t=>{const e={},u=a((r,n)=>{if(ye(e,r))throw new Error(`Duplicate flags named ${Ae(r)}`);e[r]=n},"r");for(const r in t){if(!ye(t,r))continue;ts(r);const n=t[r],s=[[],...vu(n),n];u(r,s);const i=qn(r);if(r!==i&&u(i,s),"alias"in n&&typeof n.alias=="string"){const{alias:o}=n,D=`Flag alias ${Ae(o)} for flag ${Ae(r)}`;if(o.length===0)throw new Error(`${D} cannot be empty`);if(o.length>1)throw new Error(`${D} must be a single character`);u(o,s)}}return e},"K$1"),rs=a((t,e)=>{const u={};for(const r in t){if(!ye(t,r))continue;const[n,,s,i]=e[r];if(n.length===0&&"default"in i){let{default:o}=i;typeof o=="function"&&(o=o()),u[r]=o}else u[r]=s?n:n.pop()}return u},"_$2"),Ge="--",ns=/[.:=]/,ss=/^-{1,2}\w/,is=a(t=>{if(!ss.test(t))return;const e=!t.startsWith(Ge);let u=t.slice(e?1:2),r;const n=u.match(ns);if(n){const{index:s}=n;r=u.slice(s+1),u=u.slice(0,s)}return[u,r,e]},"N"),os=a((t,{onFlag:e,onArgument:u})=>{let r;const n=a((s,i)=>{if(typeof r!="function")return!0;r(s,i),r=void 0},"o");for(let s=0;s<t.length;s+=1){const i=t[s];if(i===Ge){n();const D=t.slice(s+1);u?.(D,[s],!0);break}const o=is(i);if(o){if(n(),!e)continue;const[D,l,f]=o;if(f)for(let h=0;h<D.length;h+=1){n();const c=h===D.length-1;r=e(D[h],c?l:void 0,[s,h+1,c])}else r=e(D,l,[s])}else n(i,[s])&&u?.([i],[s])}n()},"$$1"),Ds=a((t,e)=>{for(const[u,r,n]of e.reverse()){if(r){const s=t[u];let i=s.slice(0,r);if(n||(i+=s.slice(r+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},"E"),Su=a((t,e=process.argv.slice(2),{ignore:u}={})=>{const r=[],n=us(t),s={},i=[];return i[Ge]=[],os(e,{onFlag(o,D,l){const f=ye(n,o);if(!u?.(f?Kn:Vn,o,D)){if(f){const[h,c]=n[o],C=Zn(c,D),F=a((m,R)=>{r.push(l),R&&r.push(R),h.push(Jn(c,m||""))},"p");return C===void 0?F:F(C)}ye(s,o)||(s[o]=[]),s[o].push(D===void 0?!0:D),r.push(l)}},onArgument(o,D,l){u?.(zn,e[D[0]])||(i.push(...o),l?(i[Ge]=o,e.splice(D[0])):r.push(D))}}),Ds(e,r),{flags:rs(t,n),unknownFlags:s,_:i}},"U$2");var as=Object.create,je=Object.defineProperty,ls=Object.defineProperties,cs=Object.getOwnPropertyDescriptor,fs=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertyNames,Bu=Object.getOwnPropertySymbols,ds=Object.getPrototypeOf,$u=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Tu=a((t,e,u)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,"W$1"),Ue=a((t,e)=>{for(var u in e||(e={}))$u.call(e,u)&&Tu(t,u,e[u]);if(Bu)for(var u of Bu(e))Es.call(e,u)&&Tu(t,u,e[u]);return t},"p"),Et=a((t,e)=>ls(t,fs(e)),"c"),ps=a(t=>je(t,"__esModule",{value:!0}),"nD"),Cs=a((t,e)=>()=>(t&&(e=t(t=0)),e),"rD"),Fs=a((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"iD"),gs=a((t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hs(e))!$u.call(t,n)&&n!=="default"&&je(t,n,{get:a(()=>e[n],"get"),enumerable:!(r=cs(e,n))||r.enumerable});return t},"oD"),ms=a((t,e)=>gs(ps(je(t!=null?as(ds(t)):{},"default",{value:t,enumerable:!0})),t),"BD"),V=Cs(()=>{}),_s=Fs((t,e)=>{V(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});V(),V(),V();var As=a(t=>{var e,u,r;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(n)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:n}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(r=t.stdoutColumns)!=null?r:n}},"v");V(),V(),V(),V(),V();function ys({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}a(ys,"w$1");function xu(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(ys(),"")}a(xu,"d$1"),V();function ws(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}a(ws,"y$1");var Rs=ms(_s());function ae(t){if(typeof t!="string"||t.length===0||(t=xu(t),t.length===0))return 0;t=t.replace((0,Rs.default)()," ");let e=0;for(let u=0;u<t.length;u++){let r=t.codePointAt(u);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&u++,e+=ws(r)?2:1)}return e}a(ae,"g");var Ou=a(t=>Math.max(...t.split(`
|
|
1
|
+
"use strict";var Tn=Object.create;var ht=Object.defineProperty;var xn=Object.getOwnPropertyDescriptor;var On=Object.getOwnPropertyNames;var Nn=Object.getPrototypeOf,Pn=Object.prototype.hasOwnProperty;var a=(t,e)=>ht(t,"name",{value:e,configurable:!0});var Hn=(t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of On(e))!Pn.call(t,n)&&n!==u&&ht(t,n,{get:()=>e[n],enumerable:!(r=xn(e,n))||r.enumerable});return t};var Ln=(t,e,u)=>(u=t!=null?Tn(Nn(t)):{},Hn(e||!t||!t.__esModule?ht(u,"default",{value:t,enumerable:!0}):u,t));var dt=require("node:os"),In=require("tty"),kn=require("./package-CQQPX_Gw.cjs"),he=require("./get-pipe-path-D4YM6rQt.cjs"),Ru=require("node:url"),Mn=require("child_process"),q=require("path"),De=require("fs"),ke=require("./node-features-CEjg7cMX.cjs"),Me=require("node:path"),We=require("node:fs"),Wn=require("events"),_e=require("util"),Gn=require("stream"),bu=require("os"),ne=require("./index-BWFBUo6r.cjs"),jn=require("node:net"),Un=require("./temporary-directory-B83uKxJF.cjs");require("module");const Kn="known-flag",Vn="unknown-flag",zn="argument",{stringify:Ae}=JSON,Yn=/\B([A-Z])/g,qn=a(t=>t.replace(Yn,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Xn}=Object.prototype,ye=a((t,e)=>Xn.call(t,e),"w$2"),Qn=a(t=>Array.isArray(t),"L$2"),vu=a(t=>typeof t=="function"?[t,!1]:Qn(t)?[t[0],!0]:vu(t.type),"b$2"),Zn=a((t,e)=>t===Boolean?e!=="false":e,"d$2"),Jn=a((t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),"m$1"),es=/[\s.:=]/,ts=a(t=>{const e=`Flag name ${Ae(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(es);if(u)throw new Error(`${e} cannot contain ${Ae(u?.[0])}`)},"B"),us=a(t=>{const e={},u=a((r,n)=>{if(ye(e,r))throw new Error(`Duplicate flags named ${Ae(r)}`);e[r]=n},"r");for(const r in t){if(!ye(t,r))continue;ts(r);const n=t[r],s=[[],...vu(n),n];u(r,s);const i=qn(r);if(r!==i&&u(i,s),"alias"in n&&typeof n.alias=="string"){const{alias:o}=n,D=`Flag alias ${Ae(o)} for flag ${Ae(r)}`;if(o.length===0)throw new Error(`${D} cannot be empty`);if(o.length>1)throw new Error(`${D} must be a single character`);u(o,s)}}return e},"K$1"),rs=a((t,e)=>{const u={};for(const r in t){if(!ye(t,r))continue;const[n,,s,i]=e[r];if(n.length===0&&"default"in i){let{default:o}=i;typeof o=="function"&&(o=o()),u[r]=o}else u[r]=s?n:n.pop()}return u},"_$2"),Ge="--",ns=/[.:=]/,ss=/^-{1,2}\w/,is=a(t=>{if(!ss.test(t))return;const e=!t.startsWith(Ge);let u=t.slice(e?1:2),r;const n=u.match(ns);if(n){const{index:s}=n;r=u.slice(s+1),u=u.slice(0,s)}return[u,r,e]},"N"),os=a((t,{onFlag:e,onArgument:u})=>{let r;const n=a((s,i)=>{if(typeof r!="function")return!0;r(s,i),r=void 0},"o");for(let s=0;s<t.length;s+=1){const i=t[s];if(i===Ge){n();const D=t.slice(s+1);u?.(D,[s],!0);break}const o=is(i);if(o){if(n(),!e)continue;const[D,l,f]=o;if(f)for(let h=0;h<D.length;h+=1){n();const c=h===D.length-1;r=e(D[h],c?l:void 0,[s,h+1,c])}else r=e(D,l,[s])}else n(i,[s])&&u?.([i],[s])}n()},"$$1"),Ds=a((t,e)=>{for(const[u,r,n]of e.reverse()){if(r){const s=t[u];let i=s.slice(0,r);if(n||(i+=s.slice(r+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},"E"),Su=a((t,e=process.argv.slice(2),{ignore:u}={})=>{const r=[],n=us(t),s={},i=[];return i[Ge]=[],os(e,{onFlag(o,D,l){const f=ye(n,o);if(!u?.(f?Kn:Vn,o,D)){if(f){const[h,c]=n[o],C=Zn(c,D),F=a((m,R)=>{r.push(l),R&&r.push(R),h.push(Jn(c,m||""))},"p");return C===void 0?F:F(C)}ye(s,o)||(s[o]=[]),s[o].push(D===void 0?!0:D),r.push(l)}},onArgument(o,D,l){u?.(zn,e[D[0]])||(i.push(...o),l?(i[Ge]=o,e.splice(D[0])):r.push(D))}}),Ds(e,r),{flags:rs(t,n),unknownFlags:s,_:i}},"U$2");var as=Object.create,je=Object.defineProperty,ls=Object.defineProperties,cs=Object.getOwnPropertyDescriptor,fs=Object.getOwnPropertyDescriptors,hs=Object.getOwnPropertyNames,Bu=Object.getOwnPropertySymbols,ds=Object.getPrototypeOf,$u=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable,Tu=a((t,e,u)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,"W$1"),Ue=a((t,e)=>{for(var u in e||(e={}))$u.call(e,u)&&Tu(t,u,e[u]);if(Bu)for(var u of Bu(e))Es.call(e,u)&&Tu(t,u,e[u]);return t},"p"),Et=a((t,e)=>ls(t,fs(e)),"c"),ps=a(t=>je(t,"__esModule",{value:!0}),"nD"),Cs=a((t,e)=>()=>(t&&(e=t(t=0)),e),"rD"),Fs=a((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"iD"),gs=a((t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hs(e))!$u.call(t,n)&&n!=="default"&&je(t,n,{get:a(()=>e[n],"get"),enumerable:!(r=cs(e,n))||r.enumerable});return t},"oD"),ms=a((t,e)=>gs(ps(je(t!=null?as(ds(t)):{},"default",{value:t,enumerable:!0})),t),"BD"),V=Cs(()=>{}),_s=Fs((t,e)=>{V(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});V(),V(),V();var As=a(t=>{var e,u,r;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(n)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:n}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(r=t.stdoutColumns)!=null?r:n}},"v");V(),V(),V(),V(),V();function ys({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}a(ys,"w$1");function xu(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(ys(),"")}a(xu,"d$1"),V();function ws(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}a(ws,"y$1");var Rs=ms(_s());function ae(t){if(typeof t!="string"||t.length===0||(t=xu(t),t.length===0))return 0;t=t.replace((0,Rs.default)()," ");let e=0;for(let u=0;u<t.length;u++){let r=t.codePointAt(u);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&u++,e+=ws(r)?2:1)}return e}a(ae,"g");var Ou=a(t=>Math.max(...t.split(`
|
|
2
2
|
`).map(ae)),"b$1"),bs=a(t=>{let e=[];for(let u of t){let{length:r}=u,n=r-e.length;for(let s=0;s<n;s+=1)e.push(0);for(let s=0;s<r;s+=1){let i=Ou(u[s]);i>e[s]&&(e[s]=i)}}return e},"k$1");V();var Nu=/^\d+%$/,Pu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},vs=a((t,e)=>{var u;let r=[];for(let n=0;n<t.length;n+=1){let s=(u=e[n])!=null?u:"auto";if(typeof s=="number"||s==="auto"||s==="content-width"||typeof s=="string"&&Nu.test(s)){r.push(Et(Ue({},Pu),{width:s,contentWidth:t[n]}));continue}if(s&&typeof s=="object"){let i=Et(Ue(Ue({},Pu),s),{contentWidth:t[n]});i.horizontalPadding=i.paddingLeft+i.paddingRight,r.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(s)}`)}return r},"sD");function Ss(t,e){for(let u of t){let{width:r}=u;if(r==="content-width"&&(u.width=u.contentWidth),r==="auto"){let D=Math.min(20,u.contentWidth);u.width=D,u.autoOverflow=u.contentWidth-D}if(typeof r=="string"&&Nu.test(r)){let D=Number.parseFloat(r.slice(0,-1))/100;u.width=Math.floor(e*D)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:n}=u,s=1,i=s+n;if(i>=e){let D=i-e,l=Math.ceil(u.paddingLeft/n*D),f=D-l;u.paddingLeft-=l,u.paddingRight-=f,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let o=e-u.horizontalPadding;u.width=Math.max(Math.min(u.width,o),s)}}a(Ss,"aD");var Hu=a(()=>Object.assign([],{columns:0}),"G$1");function Bs(t,e){let u=[Hu()],[r]=u;for(let n of t){let s=n.width+n.horizontalPadding;r.columns+s>e&&(r=Hu(),u.push(r)),r.push(n),r.columns+=s}for(let n of u){let s=n.reduce((c,C)=>c+C.width+C.horizontalPadding,0),i=e-s;if(i===0)continue;let o=n.filter(c=>"autoOverflow"in c),D=o.filter(c=>c.autoOverflow>0),l=D.reduce((c,C)=>c+C.autoOverflow,0),f=Math.min(l,i);for(let c of D){let C=Math.floor(c.autoOverflow/l*f);c.width+=C,i-=C}let h=Math.floor(i/o.length);for(let c=0;c<o.length;c+=1){let C=o[c];c===o.length-1?C.width+=i:C.width+=h,i-=h}}return u}a(Bs,"lD");function $s(t,e,u){let r=vs(u,e);return Ss(r,t),Bs(r,t)}a($s,"Z$1"),V(),V(),V();var pt=10,Lu=a((t=0)=>e=>`\x1B[${e+t}m`,"U$1"),Iu=a((t=0)=>e=>`\x1B[${38+t};5;${e}m`,"V$1"),ku=a((t=0)=>(e,u,r)=>`\x1B[${38+t};2;${e};${u};${r}m`,"Y");function Ts(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[u,r]of Object.entries(e)){for(let[n,s]of Object.entries(r))e[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=e[n],t.set(s[0],s[1]);Object.defineProperty(e,u,{value:r,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Lu(),e.color.ansi256=Iu(),e.color.ansi16m=ku(),e.bgColor.ansi=Lu(pt),e.bgColor.ansi256=Iu(pt),e.bgColor.ansi16m=ku(pt),Object.defineProperties(e,{rgbToAnsi256:{value:a((u,r,n)=>u===r&&r===n?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),"value"),enumerable:!1},hexToRgb:{value:a(u=>{let r=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!r)return[0,0,0];let{colorString:n}=r.groups;n.length===3&&(n=n.split("").map(i=>i+i).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},"value"),enumerable:!1},hexToAnsi256:{value:a(u=>e.rgbToAnsi256(...e.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:a(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let r,n,s;if(u>=232)r=((u-232)*10+8)/255,n=r,s=r;else{u-=16;let D=u%36;r=Math.floor(u/36)/5,n=Math.floor(D/6)/5,s=D%6/5}let i=Math.max(r,n,s)*2;if(i===0)return 30;let o=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return i===2&&(o+=60),o},"value"),enumerable:!1},rgbToAnsi:{value:a((u,r,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(u,r,n)),"value"),enumerable:!1},hexToAnsi:{value:a(u=>e.ansi256ToAnsi(e.hexToAnsi256(u)),"value"),enumerable:!1}}),e}a(Ts,"AD");var xs=Ts(),Os=xs,Ke=new Set(["\x1B","\x9B"]),Ns=39,Ct="\x07",Mu="[",Ps="]",Wu="m",Ft=`${Ps}8;;`,Gu=a(t=>`${Ke.values().next().value}${Mu}${t}${Wu}`,"J$1"),ju=a(t=>`${Ke.values().next().value}${Ft}${t}${Ct}`,"Q"),Hs=a(t=>t.split(" ").map(e=>ae(e)),"hD"),gt=a((t,e,u)=>{let r=[...e],n=!1,s=!1,i=ae(xu(t[t.length-1]));for(let[o,D]of r.entries()){let l=ae(D);if(i+l<=u?t[t.length-1]+=D:(t.push(D),i=0),Ke.has(D)&&(n=!0,s=r.slice(o+1).join("").startsWith(Ft)),n){s?D===Ct&&(n=!1,s=!1):D===Wu&&(n=!1);continue}i+=l,i===u&&o<r.length-1&&(t.push(""),i=0)}!i&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},"S$1"),Ls=a(t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(ae(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")},"cD"),Is=a((t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let r="",n,s,i=Hs(t),o=[""];for(let[l,f]of t.split(" ").entries()){u.trim!==!1&&(o[o.length-1]=o[o.length-1].trimStart());let h=ae(o[o.length-1]);if(l!==0&&(h>=e&&(u.wordWrap===!1||u.trim===!1)&&(o.push(""),h=0),(h>0||u.trim===!1)&&(o[o.length-1]+=" ",h++)),u.hard&&i[l]>e){let c=e-h,C=1+Math.floor((i[l]-c-1)/e);Math.floor((i[l]-1)/e)<C&&o.push(""),gt(o,f,e);continue}if(h+i[l]>e&&h>0&&i[l]>0){if(u.wordWrap===!1&&h<e){gt(o,f,e);continue}o.push("")}if(h+i[l]>e&&u.wordWrap===!1){gt(o,f,e);continue}o[o.length-1]+=f}u.trim!==!1&&(o=o.map(l=>Ls(l)));let D=[...o.join(`
|
|
3
3
|
`)];for(let[l,f]of D.entries()){if(r+=f,Ke.has(f)){let{groups:c}=new RegExp(`(?:\\${Mu}(?<code>\\d+)m|\\${Ft}(?<uri>.*)${Ct})`).exec(D.slice(l).join(""))||{groups:{}};if(c.code!==void 0){let C=Number.parseFloat(c.code);n=C===Ns?void 0:C}else c.uri!==void 0&&(s=c.uri.length===0?void 0:c.uri)}let h=Os.codes.get(Number(n));D[l+1]===`
|
|
4
4
|
`?(s&&(r+=ju("")),n&&h&&(r+=Gu(h))):f===`
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
*/const iD=_e,Ur=sD,Kr=a(t=>t!==null&&typeof t=="object"&&!Array.isArray(t),"isObject"),oD=a(t=>e=>t===!0?Number(e):String(e),"transform"),Zt=a(t=>typeof t=="number"||typeof t=="string"&&t!=="","isValidValue"),ve=a(t=>Number.isInteger(+t),"isNumber"),Jt=a(t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},"zeros"),DD=a((t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,"stringify$3"),aD=a((t,e,u)=>{if(e>0){let r=t[0]==="-"?"-":"";r&&(t=t.slice(1)),t=r+t.padStart(r?e-1:e,"0")}return u===!1?String(t):t},"pad"),Vr=a((t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},"toMaxLen"),lD=a((t,e)=>{t.negatives.sort((i,o)=>i<o?-1:i>o?1:0),t.positives.sort((i,o)=>i<o?-1:i>o?1:0);let u=e.capture?"":"?:",r="",n="",s;return t.positives.length&&(r=t.positives.join("|")),t.negatives.length&&(n=`-(${u}${t.negatives.join("|")})`),r&&n?s=`${r}|${n}`:s=r||n,e.wrap?`(${u}${s})`:s},"toSequence"),zr=a((t,e,u,r)=>{if(u)return Ur(t,e,{wrap:!1,...r});let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},"toRange"),Yr=a((t,e,u)=>{if(Array.isArray(t)){let r=u.wrap===!0,n=u.capture?"":"?:";return r?`(${n}${t.join("|")})`:t.join("|")}return Ur(t,e,u)},"toRegex"),qr=a((...t)=>new RangeError("Invalid range arguments: "+iD.inspect(...t)),"rangeError"),Xr=a((t,e,u)=>{if(u.strictRanges===!0)throw qr([t,e]);return[]},"invalidRange"),cD=a((t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},"invalidStep"),fD=a((t,e,u=1,r={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(r.strictRanges===!0)throw qr([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let i=n>s,o=String(t),D=String(e),l=String(u);u=Math.max(Math.abs(u),1);let f=Jt(o)||Jt(D)||Jt(l),h=f?Math.max(o.length,D.length,l.length):0,c=f===!1&&DD(t,e,r)===!1,C=r.transform||oD(c);if(r.toRegex&&u===1)return zr(Vr(t,h),Vr(e,h),!0,r);let F={negatives:[],positives:[]},m=a(H=>F[H<0?"negatives":"positives"].push(Math.abs(H)),"push"),R=[],T=0;for(;i?n>=s:n<=s;)r.toRegex===!0&&u>1?m(n):R.push(aD(C(n,T),h,c)),n=i?n-u:n+u,T++;return r.toRegex===!0?u>1?lD(F,r):Yr(R,null,{wrap:!1,...r}):R},"fillNumbers"),hD=a((t,e,u=1,r={})=>{if(!ve(t)&&t.length>1||!ve(e)&&e.length>1)return Xr(t,e,r);let n=r.transform||(c=>String.fromCharCode(c)),s=`${t}`.charCodeAt(0),i=`${e}`.charCodeAt(0),o=s>i,D=Math.min(s,i),l=Math.max(s,i);if(r.toRegex&&u===1)return zr(D,l,!1,r);let f=[],h=0;for(;o?s>=i:s<=i;)f.push(n(s,h)),s=o?s-u:s+u,h++;return r.toRegex===!0?Yr(f,null,{wrap:!1,options:r}):f},"fillLetters"),ut=a((t,e,u,r={})=>{if(e==null&&Zt(t))return[t];if(!Zt(t)||!Zt(e))return Xr(t,e,r);if(typeof u=="function")return ut(t,e,1,{transform:u});if(Kr(u))return ut(t,e,0,u);let n={...r};return n.capture===!0&&(n.wrap=!0),u=u||n.step||1,ve(u)?ve(t)&&ve(e)?fD(t,e,u,n):hD(t,e,Math.max(Math.abs(u),1),n):u!=null&&!Kr(u)?cD(u,n):ut(t,e,1,u)},"fill$2");var Qr=ut;const dD=Qr,Zr=tt,ED=a((t,e={})=>{let u=a((r,n={})=>{let s=Zr.isInvalidBrace(n),i=r.invalid===!0&&e.escapeInvalid===!0,o=s===!0||i===!0,D=e.escapeInvalid===!0?"\\":"",l="";if(r.isOpen===!0||r.isClose===!0)return D+r.value;if(r.type==="open")return o?D+r.value:"(";if(r.type==="close")return o?D+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":o?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let f=Zr.reduce(r.nodes),h=dD(...f,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(r.nodes)for(let f of r.nodes)l+=u(f,r);return l},"walk");return u(t)},"compile$1");var pD=ED;const CD=Qr,Jr=Xt,Fe=tt,ce=a((t="",e="",u=!1)=>{let r=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?Fe.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)r.push(ce(s,e,u));else for(let s of e)u===!0&&typeof s=="string"&&(s=`{${s}}`),r.push(Array.isArray(s)?ce(n,s,u):n+s);return Fe.flatten(r)},"append"),FD=a((t,e={})=>{let u=e.rangeLimit===void 0?1e3:e.rangeLimit,r=a((n,s={})=>{n.queue=[];let i=s,o=s.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,o=i.queue;if(n.invalid||n.dollar){o.push(ce(o.pop(),Jr(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){o.push(ce(o.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=Fe.reduce(n.nodes);if(Fe.exceedsLimit(...h,e.step,u))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=CD(...h,e);c.length===0&&(c=Jr(n,e)),o.push(ce(o.pop(),c)),n.nodes=[];return}let D=Fe.encloseBrace(n),l=n.queue,f=n;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,l=f.queue;for(let h=0;h<n.nodes.length;h++){let c=n.nodes[h];if(c.type==="comma"&&n.type==="brace"){h===1&&l.push(""),l.push("");continue}if(c.type==="close"){o.push(ce(o.pop(),l,D));continue}if(c.value&&c.type!=="open"){l.push(ce(l.pop(),c.value));continue}c.nodes&&r(c,n)}return l},"walk");return Fe.flatten(r(t))},"expand$1");var gD=FD,mD={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
52
52
|
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const _D=Xt,{MAX_LENGTH:en,CHAR_BACKSLASH:eu,CHAR_BACKTICK:AD,CHAR_COMMA:yD,CHAR_DOT:wD,CHAR_LEFT_PARENTHESES:RD,CHAR_RIGHT_PARENTHESES:bD,CHAR_LEFT_CURLY_BRACE:vD,CHAR_RIGHT_CURLY_BRACE:SD,CHAR_LEFT_SQUARE_BRACKET:tn,CHAR_RIGHT_SQUARE_BRACKET:un,CHAR_DOUBLE_QUOTE:BD,CHAR_SINGLE_QUOTE:$D,CHAR_NO_BREAK_SPACE:TD,CHAR_ZERO_WIDTH_NOBREAK_SPACE:xD}=mD,OD=a((t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},r=typeof u.maxLength=="number"?Math.min(en,u.maxLength):en;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let n={type:"root",input:t,nodes:[]},s=[n],i=n,o=n,D=0,l=t.length,f=0,h=0,c;const C=a(()=>t[f++],"advance"),F=a(m=>{if(m.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&m.type==="text"){o.value+=m.value;return}return i.nodes.push(m),m.parent=i,m.prev=o,o=m,m},"push");for(F({type:"bos"});f<l;)if(i=s[s.length-1],c=C(),!(c===xD||c===TD)){if(c===eu){F({type:"text",value:(e.keepEscaping?c:"")+C()});continue}if(c===un){F({type:"text",value:"\\"+c});continue}if(c===tn){D++;let m;for(;f<l&&(m=C());){if(c+=m,m===tn){D++;continue}if(m===eu){c+=C();continue}if(m===un&&(D--,D===0))break}F({type:"text",value:c});continue}if(c===RD){i=F({type:"paren",nodes:[]}),s.push(i),F({type:"text",value:c});continue}if(c===bD){if(i.type!=="paren"){F({type:"text",value:c});continue}i=s.pop(),F({type:"text",value:c}),i=s[s.length-1];continue}if(c===BD||c===$D||c===AD){let m=c,R;for(e.keepQuotes!==!0&&(c="");f<l&&(R=C());){if(R===eu){c+=R+C();continue}if(R===m){e.keepQuotes===!0&&(c+=R);break}c+=R}F({type:"text",value:c});continue}if(c===vD){h++;let R={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||i.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};i=F(R),s.push(i),F({type:"open",value:c});continue}if(c===SD){if(i.type!=="brace"){F({type:"text",value:c});continue}let m="close";i=s.pop(),i.close=!0,F({type:m,value:c}),h--,i=s[s.length-1];continue}if(c===yD&&h>0){if(i.ranges>0){i.ranges=0;let m=i.nodes.shift();i.nodes=[m,{type:"text",value:_D(i)}]}F({type:"comma",value:c}),i.commas++;continue}if(c===wD&&h>0&&i.commas===0){let m=i.nodes;if(h===0||m.length===0){F({type:"text",value:c});continue}if(o.type==="dot"){if(i.range=[],o.value+=c,o.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,o.type="text";continue}i.ranges++,i.args=[];continue}if(o.type==="range"){m.pop();let R=m[m.length-1];R.value+=o.value+c,o=R,i.ranges--;continue}F({type:"dot",value:c});continue}F({type:"text",value:c})}do if(i=s.pop(),i.type!=="root"){i.nodes.forEach(T=>{T.nodes||(T.type==="open"&&(T.isOpen=!0),T.type==="close"&&(T.isClose=!0),T.nodes||(T.type="text"),T.invalid=!0)});let m=s[s.length-1],R=m.nodes.indexOf(i);m.nodes.splice(R,1,...i.nodes)}while(s.length>0);return F({type:"eos"}),n},"parse$1");var ND=OD;const rn=Xt,PD=pD,HD=gD,LD=ND,Q=a((t,e={})=>{let u=[];if(Array.isArray(t))for(let r of t){let n=Q.create(r,e);Array.isArray(n)?u.push(...n):u.push(n)}else u=[].concat(Q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u},"braces$1");Q.parse=(t,e={})=>LD(t,e),Q.stringify=(t,e={})=>rn(typeof t=="string"?Q.parse(t,e):t,e),Q.compile=(t,e={})=>(typeof t=="string"&&(t=Q.parse(t,e)),PD(t,e)),Q.expand=(t,e={})=>{typeof t=="string"&&(t=Q.parse(t,e));let u=HD(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},Q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Q.compile(t,e):Q.expand(t,e);var ID=Q,kD=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","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"],MD=kD;const WD=q,GD=MD,jD=new Set(GD);var UD=a(t=>jD.has(WD.extname(t).slice(1).toLowerCase()),"isBinaryPath$1"),rt={};(function(t){const{sep:e}=q,{platform:u}=process,r=bu;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_FLAG_MUST_SCAN_SUBDIRS=1,t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${e}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=n=>n,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=r.type()==="OS400"})(rt);const ie=De,G=q,{promisify:Se}=_e,KD=UD,{isWindows:VD,isLinux:zD,EMPTY_FN:YD,EMPTY_STR:qD,KEY_LISTENERS:ge,KEY_ERR:tu,KEY_RAW:Be,HANDLER_KEYS:XD,EV_CHANGE:nt,EV_ADD:st,EV_ADD_DIR:QD,EV_ERROR:nn,STR_DATA:ZD,STR_END:JD,BRACE_START:ea,STAR:ta}=rt,ua="watch",ra=Se(ie.open),sn=Se(ie.stat),na=Se(ie.lstat),sa=Se(ie.close),uu=Se(ie.realpath),ia={lstat:na,stat:sn},ru=a((t,e)=>{t instanceof Set?t.forEach(e):e(t)},"foreach"),$e=a((t,e,u)=>{let r=t[e];r instanceof Set||(t[e]=r=new Set([r])),r.add(u)},"addAndConvert"),oa=a(t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},"clearItem"),Te=a((t,e,u)=>{const r=t[e];r instanceof Set?r.delete(u):r===u&&delete t[e]},"delFromSet"),on=a(t=>t instanceof Set?t.size===0:!t,"isEmptySet"),it=new Map;function Dn(t,e,u,r,n){const s=a((i,o)=>{u(t),n(i,o,{watchedPath:t}),o&&t!==o&&ot(G.resolve(t,o),ge,G.join(t,o))},"handleEvent");try{return ie.watch(t,e,s)}catch(i){r(i)}}a(Dn,"createFsWatchInstance");const ot=a((t,e,u,r,n)=>{const s=it.get(t);s&&ru(s[e],i=>{i(u,r,n)})},"fsWatchBroadcast"),Da=a((t,e,u,r)=>{const{listener:n,errHandler:s,rawEmitter:i}=r;let o=it.get(e),D;if(!u.persistent)return D=Dn(t,u,n,s,i),D.close.bind(D);if(o)$e(o,ge,n),$e(o,tu,s),$e(o,Be,i);else{if(D=Dn(t,u,ot.bind(null,e,ge),s,ot.bind(null,e,Be)),!D)return;D.on(nn,async l=>{const f=ot.bind(null,e,tu);if(o.watcherUnusable=!0,VD&&l.code==="EPERM")try{const h=await ra(t,"r");await sa(h),f(l)}catch{}else f(l)}),o={listeners:n,errHandlers:s,rawEmitters:i,watcher:D},it.set(e,o)}return()=>{Te(o,ge,n),Te(o,tu,s),Te(o,Be,i),on(o.listeners)&&(o.watcher.close(),it.delete(e),XD.forEach(oa(o)),o.watcher=void 0,Object.freeze(o))}},"setFsWatchListener"),nu=new Map,aa=a((t,e,u,r)=>{const{listener:n,rawEmitter:s}=r;let i=nu.get(e);const o=i&&i.options;return o&&(o.persistent<u.persistent||o.interval>u.interval)&&(i.listeners,i.rawEmitters,ie.unwatchFile(e),i=void 0),i?($e(i,ge,n),$e(i,Be,s)):(i={listeners:n,rawEmitters:s,options:u,watcher:ie.watchFile(e,u,(D,l)=>{ru(i.rawEmitters,h=>{h(nt,e,{curr:D,prev:l})});const f=D.mtimeMs;(D.size!==l.size||f>l.mtimeMs||f===0)&&ru(i.listeners,h=>h(t,D))})},nu.set(e,i)),()=>{Te(i,ge,n),Te(i,Be,s),on(i.listeners)&&(nu.delete(e),ie.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}},"setFsWatchFileListener");let la=class{static{a(this,"NodeFsHandler")}constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const r=this.fsw.options,n=G.dirname(e),s=G.basename(e);this.fsw._getWatchedDir(n).add(s);const o=G.resolve(e),D={persistent:r.persistent};u||(u=YD);let l;return r.usePolling?(D.interval=r.enableBinaryInterval&&KD(s)?r.binaryInterval:r.interval,l=aa(e,o,D,{listener:u,rawEmitter:this.fsw._emitRaw})):l=Da(e,o,D,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(e,u,r){if(this.fsw.closed)return;const n=G.dirname(e),s=G.basename(e),i=this.fsw._getWatchedDir(n);let o=u;if(i.has(s))return;const D=a(async(f,h)=>{if(this.fsw._throttle(ua,e,5)){if(!h||h.mtimeMs===0)try{const c=await sn(e);if(this.fsw.closed)return;const C=c.atimeMs,F=c.mtimeMs;(!C||C<=F||F!==o.mtimeMs)&&this.fsw._emit(nt,e,c),zD&&o.ino!==c.ino?(this.fsw._closeFile(f),o=c,this.fsw._addPathCloser(f,this._watchWithNodeFs(e,D))):o=c}catch{this.fsw._remove(n,s)}else if(i.has(s)){const c=h.atimeMs,C=h.mtimeMs;(!c||c<=C||C!==o.mtimeMs)&&this.fsw._emit(nt,e,h),o=h}}},"listener"),l=this._watchWithNodeFs(e,D);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(st,e,0))return;this.fsw._emit(st,e,u)}return l}async _handleSymlink(e,u,r,n){if(this.fsw.closed)return;const s=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o;try{o=await uu(r)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(s)!==o&&(this.fsw._symlinkPaths.set(s,o),this.fsw._emit(nt,r,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(s,o),this.fsw._emit(st,r,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(e,u,r,n,s,i,o){if(e=G.join(e,qD),!r.hasGlob&&(o=this.fsw._throttle("readdir",e,1e3),!o))return;const D=this.fsw._getWatchedDir(r.path),l=new Set;let f=this.fsw._readdirp(e,{fileFilter:a(h=>r.filterPath(h),"fileFilter"),directoryFilter:a(h=>r.filterDir(h),"directoryFilter"),depth:0}).on(ZD,async h=>{if(this.fsw.closed){f=void 0;return}const c=h.path;let C=G.join(e,c);if(l.add(c),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,e,C,c))){if(this.fsw.closed){f=void 0;return}(c===n||!n&&!D.has(c))&&(this.fsw._incrReadyCount(),C=G.join(s,G.relative(s,C)),this._addToNodeFs(C,u,r,i+1))}}).on(nn,this._boundHandleError);return new Promise(h=>f.once(JD,()=>{if(this.fsw.closed){f=void 0;return}const c=o?o.clear():!1;h(),D.getChildren().filter(C=>C!==e&&!l.has(C)&&(!r.hasGlob||r.filterPath({fullPath:G.resolve(e,C)}))).forEach(C=>{this.fsw._remove(e,C)}),f=void 0,c&&this._handleRead(e,!1,r,n,s,i,o)}))}async _handleDir(e,u,r,n,s,i,o){const D=this.fsw._getWatchedDir(G.dirname(e)),l=D.has(G.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!s&&!l&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(QD,e,u),D.add(G.basename(e)),this.fsw._getWatchedDir(e);let f,h;const c=this.fsw.options.depth;if((c==null||n<=c)&&!this.fsw._symlinkPaths.has(o)){if(!s&&(await this._handleRead(e,r,i,s,e,n,f),this.fsw.closed))return;h=this._watchWithNodeFs(e,(C,F)=>{F&&F.mtimeMs===0||this._handleRead(C,!1,i,s,e,n,f)})}return h}async _addToNodeFs(e,u,r,n,s){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const o=this.fsw._getWatchHelpers(e,n);!o.hasGlob&&r&&(o.hasGlob=r.hasGlob,o.globFilter=r.globFilter,o.filterPath=D=>r.filterPath(D),o.filterDir=D=>r.filterDir(D));try{const D=await ia[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))return i(),!1;const l=this.fsw.options.followSymlinks&&!e.includes(ta)&&!e.includes(ea);let f;if(D.isDirectory()){const h=G.resolve(e),c=l?await uu(e):e;if(this.fsw.closed||(f=await this._handleDir(o.watchPath,D,u,n,s,o,c),this.fsw.closed))return;h!==c&&c!==void 0&&this.fsw._symlinkPaths.set(h,c)}else if(D.isSymbolicLink()){const h=l?await uu(e):e;if(this.fsw.closed)return;const c=G.dirname(o.watchPath);if(this.fsw._getWatchedDir(c).add(o.watchPath),this.fsw._emit(st,o.watchPath,D),f=await this._handleDir(c,D,u,n,e,o,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(G.resolve(e),h)}else f=this._handleFile(o.watchPath,D,u);return i(),this.fsw._addPathCloser(e,f),!1}catch(D){if(this.fsw._handleError(D))return i(),e}}};var ca=la,su={exports:{}};const iu=De,j=q,{promisify:ou}=_e;let me;try{me=he.require("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(me){const t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){const e=Number.parseInt(t[1],10),u=Number.parseInt(t[2],10);e===8&&u<16&&(me=void 0)}}const{EV_ADD:Du,EV_CHANGE:fa,EV_ADD_DIR:an,EV_UNLINK:Dt,EV_ERROR:ha,STR_DATA:da,STR_END:Ea,FSEVENT_CREATED:pa,FSEVENT_MODIFIED:Ca,FSEVENT_DELETED:Fa,FSEVENT_MOVED:ga,FSEVENT_UNKNOWN:ma,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:_a,FSEVENT_TYPE_FILE:Aa,FSEVENT_TYPE_DIRECTORY:xe,FSEVENT_TYPE_SYMLINK:ln,ROOT_GLOBSTAR:cn,DIR_SUFFIX:ya,DOT_SLASH:fn,FUNCTION_TYPE:au,EMPTY_FN:wa,IDENTITY_FN:Ra}=rt,ba=a(t=>isNaN(t)?{}:{depth:t},"Depth"),lu=ou(iu.stat),va=ou(iu.lstat),hn=ou(iu.realpath),Sa={stat:lu,lstat:va},fe=new Map,Ba=10,$a=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Ta=a((t,e)=>({stop:me.watch(t,e)}),"createFSEventsInstance");function xa(t,e,u,r){let n=j.extname(e)?j.dirname(e):e;const s=j.dirname(n);let i=fe.get(n);Oa(s)&&(n=s);const o=j.resolve(t),D=o!==e,l=a((h,c,C)=>{D&&(h=h.replace(e,o)),(h===o||!h.indexOf(o+j.sep))&&u(h,c,C)},"filteredListener");let f=!1;for(const h of fe.keys())if(e.indexOf(j.resolve(h)+j.sep)===0){n=h,i=fe.get(n),f=!0;break}return i||f?i.listeners.add(l):(i={listeners:new Set([l]),rawEmitter:r,watcher:Ta(n,(h,c)=>{if(!i.listeners.size||c&_a)return;const C=me.getInfo(h,c);i.listeners.forEach(F=>{F(h,c,C)}),i.rawEmitter(C.event,h,C)})},fe.set(n,i)),()=>{const h=i.listeners;if(h.delete(l),!h.size&&(fe.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}a(xa,"setFSEventsListener");const Oa=a(t=>{let e=0;for(const u of fe.keys())if(u.indexOf(t)===0&&(e++,e>=Ba))return!0;return!1},"couldConsolidate"),Na=a(()=>me&&fe.size<128,"canUse"),cu=a((t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=j.dirname(t))!==e;)u++;return u},"calcDepth"),dn=a((t,e)=>t.type===xe&&e.isDirectory()||t.type===ln&&e.isSymbolicLink()||t.type===Aa&&e.isFile(),"sameTypes");let Pa=class{static{a(this,"FsEventsHandler")}constructor(e){this.fsw=e}checkIgnored(e,u){const r=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return r.add(e),u&&u.isDirectory()&&r.add(e+cn),!0;r.delete(e),r.delete(e+cn)}addOrChange(e,u,r,n,s,i,o,D){const l=s.has(i)?fa:Du;this.handleEvent(l,e,u,r,n,s,i,o,D)}async checkExists(e,u,r,n,s,i,o,D){try{const l=await lu(e);if(this.fsw.closed)return;dn(o,l)?this.addOrChange(e,u,r,n,s,i,o,D):this.handleEvent(Dt,e,u,r,n,s,i,o,D)}catch(l){l.code==="EACCES"?this.addOrChange(e,u,r,n,s,i,o,D):this.handleEvent(Dt,e,u,r,n,s,i,o,D)}}handleEvent(e,u,r,n,s,i,o,D,l){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===Dt){const f=D.type===xe;(f||i.has(o))&&this.fsw._remove(s,o,f)}else{if(e===Du){if(D.type===xe&&this.fsw._getWatchedDir(u),D.type===ln&&l.followSymlinks){const h=l.depth===void 0?void 0:cu(r,n)+1;return this._addToFsEvents(u,!1,!0,h)}this.fsw._getWatchedDir(s).add(o)}const f=D.type===xe?e+ya:e;this.fsw._emit(f,u),f===an&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,r,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const s=this.fsw.options,o=xa(e,u,a(async(D,l,f)=>{if(this.fsw.closed||s.depth!==void 0&&cu(D,u)>s.depth)return;const h=r(j.join(e,j.relative(e,D)));if(n&&!n(h))return;const c=j.dirname(h),C=j.basename(h),F=this.fsw._getWatchedDir(f.type===xe?h:c);if($a.has(l)||f.event===ma)if(typeof s.ignored===au){let m;try{m=await lu(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,m))return;dn(f,m)?this.addOrChange(h,D,u,c,F,C,f,s):this.handleEvent(Dt,h,D,u,c,F,C,f,s)}else this.checkExists(h,D,u,c,F,C,f,s);else switch(f.event){case pa:case Ca:return this.addOrChange(h,D,u,c,F,C,f,s);case Fa:case ga:return this.checkExists(h,D,u,c,F,C,f,s)}},"watchCallback"),this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,u,r,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const s=await hn(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||e,i=>{let o=e;return s&&s!==fn?o=i.replace(s,e):i!==fn&&(o=j.join(e,i)),r(o)},!1,n)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,u,r,n,s){const i=r(e),o=u.isDirectory(),D=this.fsw._getWatchedDir(j.dirname(i)),l=j.basename(i);o&&this.fsw._getWatchedDir(i),!D.has(l)&&(D.add(l),(!n.ignoreInitial||s===!0)&&this.fsw._emit(o?an:Du,i,u))}initWatch(e,u,r,n){if(this.fsw.closed)return;const s=this._watchWithFsEvents(r.watchPath,j.resolve(e||r.watchPath),n,r.globFilter);this.fsw._addPathCloser(u,s)}async _addToFsEvents(e,u,r,n){if(this.fsw.closed)return;const s=this.fsw.options,i=typeof u===au?u:Ra,o=this.fsw._getWatchHelpers(e);try{const D=await Sa[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))throw null;if(D.isDirectory()){if(o.globFilter||this.emitAdd(i(e),D,i,s,r),n&&n>s.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:a(l=>o.filterPath(l),"fileFilter"),directoryFilter:a(l=>o.filterDir(l),"directoryFilter"),...ba(s.depth-(n||0))}).on(da,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!o.filterPath(l))return;const f=j.join(o.watchPath,l.path),{fullPath:h}=l;if(o.followSymlinks&&l.stats.isSymbolicLink()){const c=s.depth===void 0?void 0:cu(f,j.resolve(o.watchPath))+1;this._handleFsEventsSymlink(f,h,i,c)}else this.emitAdd(f,l.stats,i,s,r)}).on(ha,wa).on(Ea,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,D,i,s,r),this.fsw._emitReady()}catch(D){(!D||this.fsw._handleError(D))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&r!==!0)if(typeof u===au)this.initWatch(void 0,e,o,i);else{let D;try{D=await hn(o.watchPath)}catch{}this.initWatch(D,e,o,i)}}};su.exports=Pa,su.exports.canUse=Na;var Ha=su.exports;const{EventEmitter:La}=Wn,fu=De,x=q,{promisify:En}=_e,Ia=xo,hu=Io.default,ka=Xo,du=Yt,Ma=ID,Wa=$r,Ga=ca,pn=Ha,{EV_ALL:Eu,EV_READY:ja,EV_ADD:at,EV_CHANGE:Oe,EV_UNLINK:Cn,EV_ADD_DIR:Ua,EV_UNLINK_DIR:Ka,EV_RAW:Va,EV_ERROR:pu,STR_CLOSE:za,STR_END:Ya,BACK_SLASH_RE:qa,DOUBLE_SLASH_RE:Fn,SLASH_OR_BACK_SLASH_RE:Xa,DOT_RE:Qa,REPLACER_RE:Za,SLASH:Cu,SLASH_SLASH:Ja,BRACE_START:el,BANG:Fu,ONE_DOT:gn,TWO_DOTS:tl,GLOBSTAR:ul,SLASH_GLOBSTAR:gu,ANYMATCH_OPTS:mu,STRING_TYPE:_u,FUNCTION_TYPE:rl,EMPTY_STR:Au,EMPTY_FN:nl,isWindows:sl,isMacos:il,isIBMi:ol}=rt,Dl=En(fu.stat),al=En(fu.readdir),yu=a((t=[])=>Array.isArray(t)?t:[t],"arrify"),mn=a((t,e=[])=>(t.forEach(u=>{Array.isArray(u)?mn(u,e):e.push(u)}),e),"flatten"),_n=a(t=>{const e=mn(yu(t));if(!e.every(u=>typeof u===_u))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(yn)},"unifyPaths"),An=a(t=>{let e=t.replace(qa,Cu),u=!1;for(e.startsWith(Ja)&&(u=!0);e.match(Fn);)e=e.replace(Fn,Cu);return u&&(e=Cu+e),e},"toUnix"),yn=a(t=>An(x.normalize(An(t))),"normalizePathToUnix"),wn=a((t=Au)=>e=>typeof e!==_u?e:yn(x.isAbsolute(e)?e:x.join(t,e)),"normalizeIgnored"),ll=a((t,e)=>x.isAbsolute(t)?t:t.startsWith(Fu)?Fu+x.join(e,t.slice(1)):x.join(e,t),"getAbsolutePath"),J=a((t,e)=>t[e]===void 0,"undef");class cl{static{a(this,"DirEntry")}constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;u&&e!==gn&&e!==tl&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const r=this.path;try{await al(r)}catch{this._removeWatcher&&this._removeWatcher(x.dirname(r),x.basename(r))}}has(e){const{items:u}=this;if(u)return u.has(e)}getChildren(){const{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const fl="stat",hl="lstat";class dl{static{a(this,"WatchHelper")}constructor(e,u,r,n){this.fsw=n,this.path=e=e.replace(Za,Au),this.watchPath=u,this.fullWatchPath=x.resolve(u),this.hasGlob=u!==e,e===Au&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&r?void 0:!1,this.globFilter=this.hasGlob?hu(e,void 0,mu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=r,this.statMethod=r?fl:hl}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return x.join(this.watchPath,x.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const r=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===rl?this.globFilter(r):!0)&&this.fsw._isntIgnored(r,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(el)?Ma.expand(e):[e]).forEach(n=>{u.push(x.relative(this.watchPath,n).split(Xa))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let r=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((s,i)=>(s===ul&&(r=!0),r||!u[0][i]||hu(s,u[0][i],mu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class El extends La{static{a(this,"FSWatcher")}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,J(u,"persistent")&&(u.persistent=!0),J(u,"ignoreInitial")&&(u.ignoreInitial=!1),J(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),J(u,"interval")&&(u.interval=100),J(u,"binaryInterval")&&(u.binaryInterval=300),J(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,J(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),pn.canUse()||(u.useFsEvents=!1),J(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=il),ol&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const D=n.toLowerCase();D==="false"||D==="0"?u.usePolling=!1:D==="true"||D==="1"?u.usePolling=!0:u.usePolling=!!D}const s=process.env.CHOKIDAR_INTERVAL;s&&(u.interval=Number.parseInt(s,10)),J(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),J(u,"followSymlinks")&&(u.followSymlinks=!0),J(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=yu(u.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=nl,this._readyEmitted=!0,process.nextTick(()=>this.emit(ja)))},this._emitRaw=(...D)=>this.emit(Va,...D),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new pn(this):this._nodeFsHandler=new Ga(this),Object.freeze(u)}add(e,u,r){const{cwd:n,disableGlobbing:s}=this.options;this.closed=!1;let i=_n(e);return n&&(i=i.map(o=>{const D=ll(o,n);return s||!du(o)?D:Wa(D)})),i=i.filter(o=>o.startsWith(Fu)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+gu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount+=i.length),i.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async o=>{const D=await this._nodeFsHandler._addToNodeFs(o,!r,0,0,u);return D&&this._emitReady(),D})).then(o=>{this.closed||o.filter(D=>D).forEach(D=>{this.add(x.dirname(D),x.basename(u||D))})})),this}unwatch(e){if(this.closed)return this;const u=_n(e),{cwd:r}=this.options;return u.forEach(n=>{!x.isAbsolute(n)&&!this._closers.has(n)&&(r&&(n=x.join(r,n)),n=x.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+gu),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach(u=>u.forEach(r=>{const n=r();n instanceof Promise&&e.push(n)})),this._streams.forEach(u=>u.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(u=>u.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(u=>{this[`_${u}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach((u,r)=>{const n=this.options.cwd?x.relative(this.options.cwd,r):r;e[n||gn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==pu&&this.emit(Eu,...u)}async _emit(e,u,r,n,s){if(this.closed)return;const i=this.options;sl&&(u=x.normalize(u)),i.cwd&&(u=x.relative(i.cwd,u));const o=[e,u];s!==void 0?o.push(r,n,s):n!==void 0?o.push(r,n):r!==void 0&&o.push(r);const D=i.awaitWriteFinish;let l;if(D&&(l=this._pendingWrites.get(u)))return l.lastChange=new Date,this;if(i.atomic){if(e===Cn)return this._pendingUnlinks.set(u,o),setTimeout(()=>{this._pendingUnlinks.forEach((f,h)=>{this.emit(...f),this.emit(Eu,...f),this._pendingUnlinks.delete(h)})},typeof i.atomic=="number"?i.atomic:100),this;e===at&&this._pendingUnlinks.has(u)&&(e=o[0]=Oe,this._pendingUnlinks.delete(u))}if(D&&(e===at||e===Oe)&&this._readyEmitted){const f=a((h,c)=>{h?(e=o[0]=pu,o[1]=h,this.emitWithAll(e,o)):c&&(o.length>2?o[2]=c:o.push(c),this.emitWithAll(e,o))},"awfEmit");return this._awaitWriteFinish(u,D.stabilityThreshold,e,f),this}if(e===Oe&&!this._throttle(Oe,u,50))return this;if(i.alwaysStat&&r===void 0&&(e===at||e===Ua||e===Oe)){const f=i.cwd?x.join(i.cwd,u):u;let h;try{h=await Dl(f)}catch{}if(!h||this.closed)return;o.push(h)}return this.emitWithAll(e,o),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(pu,e),e||this.closed}_throttle(e,u,r){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),s=n.get(u);if(s)return s.count++,!1;let i;const o=a(()=>{const l=n.get(u),f=l?l.count:0;return n.delete(u),clearTimeout(i),l&&clearTimeout(l.timeoutObject),f},"clear");i=setTimeout(o,r);const D={timeoutObject:i,clear:o,count:0};return n.set(u,D),D}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,r,n){let s,i=e;this.options.cwd&&!x.isAbsolute(e)&&(i=x.join(this.options.cwd,e));const o=new Date,D=a(l=>{fu.stat(i,(f,h)=>{if(f||!this._pendingWrites.has(e)){f&&f.code!=="ENOENT"&&n(f);return}const c=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(e).lastChange=c);const C=this._pendingWrites.get(e);c-C.lastChange>=u?(this._pendingWrites.delete(e),n(void 0,h)):s=setTimeout(D,this.options.awaitWriteFinish.pollInterval,h)})},"awaitWriteFinish");this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:a(()=>(this._pendingWrites.delete(e),clearTimeout(s),r),"cancelWait")}),s=setTimeout(D,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Qa.test(e))return!0;if(!this._userIgnored){const{cwd:r}=this.options,n=this.options.ignored,s=n&&n.map(wn(r)),i=yu(s).filter(D=>typeof D===_u&&!du(D)).map(D=>D+gu),o=this._getGlobIgnored().map(wn(r)).concat(s,i);this._userIgnored=hu(o,void 0,mu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const r=u||this.options.disableGlobbing||!du(e)?e:ka(e),n=this.options.followSymlinks;return new dl(e,r,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=x.resolve(e);return this._watched.has(u)||this._watched.set(u,new cl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const r=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(r.toString(8)[0],10))}_remove(e,u,r){const n=x.join(e,u),s=x.resolve(n);if(r=r??(this._watched.has(n)||this._watched.has(s)),!this._throttle("remove",n,100))return;!r&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(n).getChildren().forEach(c=>this._remove(n,c));const D=this._getWatchedDir(e),l=D.has(u);D.remove(u),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let f=n;if(this.options.cwd&&(f=x.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===at)return;this._watched.delete(n),this._watched.delete(s);const h=r?Ka:Cn;l&&!this._isIgnored(n)&&this._emit(h,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const u=x.dirname(e);this._getWatchedDir(u).remove(x.basename(e))}_closeFile(e){const u=this._closers.get(e);u&&(u.forEach(r=>r()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let r=this._closers.get(e);r||(r=[],this._closers.set(e,r)),r.push(u)}_readdirp(e,u){if(this.closed)return;const r={type:Eu,alwaysStat:!0,lstat:!0,...u};let n=Ia(e,r);return this._streams.add(n),n.once(za,()=>{n=void 0}),n.once(Ya,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}var wu=El;const lt=a((t=!0)=>{let e=!1;return u=>{if(e||u==="unknown-flag")return!0;if(u==="argument")return e=!0,t}},"ignoreAfterArgument"),Rn=a((t,e=process.argv.slice(2))=>(Su(t,e,{ignore:lt()}),e),"removeArgvFlags"),pl=a(t=>{let e=Buffer.alloc(0);return u=>{for(e=Buffer.concat([e,u]);e.length>4;){const r=e.readInt32BE(0);if(e.length>=4+r){const n=e.slice(4,4+r);t(n),e=e.slice(4+r)}else break}}},"bufferData"),bn=a(async()=>{const t=jn.createServer(u=>{u.on("data",pl(r=>{const n=JSON.parse(r.toString());t.emit("data",n)}))}),e=he.getPipePath(process.pid);return await We.promises.mkdir(Un.tmpdir,{recursive:!0}),await We.promises.rm(e,{force:!0}),await new Promise((u,r)=>{t.listen(e,u),t.on("error",r)}),t.unref(),process.on("exit",()=>{if(t.close(),!he.isWindows)try{We.rmSync(e)}catch{}}),t},"createIpcServer"),Cl=a(()=>new Date().toLocaleTimeString(),"currentTime"),Ne=a((...t)=>console.log(ne.gray(Cl()),ne.lightCyan("[tsx]"),...t),"log"),Fl="\x1Bc",gl=a((t,e)=>{let u;return function(){u&&clearTimeout(u),u=setTimeout(()=>Reflect.apply(t,this,arguments),e)}},"debounce"),vn={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 (Deprecated: use --exclude)"},include:{type:[String],description:"Additional paths & globs to watch"},exclude:{type:[String],description:"Paths & globs to exclude from being watched"}},ml=Di({name:"watch",parameters:["<script path>"],flags:vn,help:{description:"Run the script and watch for changes"},ignoreArgv:lt(!1)},async t=>{const e=Rn(vn,process.argv.slice(3)),u={noCache:t.flags.noCache,tsconfigPath:t.flags.tsconfig,clearScreen:t.flags.clearScreen,include:t.flags.include,exclude:[...t.flags.ignore,...t.flags.exclude],ipc:!0};let r,n=!1;const s=process.cwd(),i=new Map,o=a((g,w)=>{const d=Me.resolve(w),b=i.get(d);if(g==="add"||g==="addDir"||g==="unlink"||g==="unlinkDir")b&&(clearTimeout(b.expiration),i.delete(d));else if(b)return`${g}:${b.path}`;let v;try{v=We.realpathSync.native(d)}catch{v=d}const W={path:v,expiration:setTimeout(()=>{i.get(d)===W&&i.delete(d)},1e3)};return W.expiration.unref(),i.set(d,W),`${g}:${v}`},"getEventKey"),D=t._.map(g=>Me.resolve(g));let l,f,h=!1;const c=new Map,C=a(g=>{const w=Me.resolve(g);return process.platform==="win32"?w.toLowerCase():w},"getPathKey"),F=new Set;for(const g of u.include)if(g.startsWith("!")){const w=g.slice(1);Pr(w)||F.add(C(w))}else Pr(g)||F.delete(C(g));(await bn()).on("data",g=>{if(g&&typeof g=="object"&&"type"in g&&g.type==="dependency"&&"path"in g&&typeof g.path=="string"){const w=g.path.startsWith("file:")?Ru.fileURLToPath(g.path):g.path;Me.isAbsolute(w)&&(F.has(C(w))?(f||(f=new wu({...I,disableGlobbing:!0}),f.on("all",(d,b)=>{Z("literal",d,b)})),f.add(w)):l.add(w))}});const R=a(()=>{if(!n)return cr(e,u)},"spawnProcess");let T=!1;const H=a(async(g,w="SIGTERM",d=5e3)=>{let b=!1;const v=new Promise(W=>{g.on("exit",E=>{b=!0,T=!1,W(E)})});return T=!0,g.kill(w),setTimeout(()=>{b||(Ne(ne.yellow(`Process didn't exit in ${Math.floor(d/1e3)}s. Force killing...`)),g.kill("SIGKILL"))},d),await v},"killProcess"),O=gl(async(g,w)=>{const d=g?`${g?ne.lightMagenta(g):""}${w?` in ${ne.lightGreen(`./${w}`)}`:""}`:"";if(T){Ne(d,ne.yellow("Process hasn't exited. Killing process...")),r.kill("SIGKILL");return}r&&(r.exitCode===null?(Ne(d,ne.yellow("Restarting...")),await H(r)):Ne(d,ne.yellow("Rerunning...")),u.clearScreen&&process.stdout.isTTY&&process.stdout.write(Fl)),r=R()},100),z=a(g=>{n=!0,r?.exitCode===null?(T&&Ne(ne.yellow("Previous process hasn't exited yet. Force killing...")),H(r,T?"SIGKILL":g).then(w=>{process.exit(w??0)},()=>{})):process.exit(128+dt.constants.signals[g])},"relaySignal");process.on("SIGINT",z),process.on("SIGTERM",z);const I={cwd:s,ignoreInitial:!0,ignored:["**/.*/**","**/.*","**/{node_modules,bower_components,vendor}/**",...u.exclude],ignorePermissionErrors:!0},Z=a((g,w,d)=>{if(!h)return;const b=o(w,d),v=c.get(b);if(v&&v.source!==g){clearTimeout(v.expiration),c.delete(b);return}v&&clearTimeout(v.expiration);const W={source:g,expiration:setTimeout(()=>{c.get(b)===W&&c.delete(b)},1e3)};W.expiration.unref(),c.set(b,W),O(w,d)},"handleWatchEvent");l=new wu({...I,disableGlobbing:!0}),l.on("all",(g,w)=>{Z("literal",g,w)});const M=a(g=>new Promise(w=>{g.once("ready",w)}),"waitForReady"),y=[M(l)];if(l.add(D),u.include.some(g=>!g.startsWith("!"))){const g=new wu(I);g.on("all",(w,d)=>{Z("include",w,d)}),y.push(M(g)),g.add(u.include)}await Promise.all(y),l.add(u.include.filter(g=>g.startsWith("!"))),h=!0,r=R(),process.stdin.on("data",()=>O("Return key"))}),_l=a((t,e)=>{let u;e.on("data",s=>{s&&s.type==="signal"&&u&&u(s.signal)});const r=a(()=>{const s=new Promise(i=>{setTimeout(()=>i(void 0),30),u=i});return s.then(()=>{u=void 0},()=>{}),s},"waitForSignalFromChild"),n=a(async s=>{await r()!==s&&(t.kill(s),await r()!==s&&(t.on("exit",()=>{const D=dt.constants.signals[s];process.exit(128+D)}),t.kill("SIGKILL")))},"relaySignalToChild");process.on("SIGINT",n),process.on("SIGTERM",n)},"relaySignals"),Sn={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}};Yu({name:"tsx",parameters:["[script path]"],commands:[ml],flags:{...Sn,version:{type:Boolean,alias:"v",description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1,ignoreArgv:lt()},async t=>{t.flags.version?process.stdout.write(`tsx v${kn.version}
|
|
53
53
|
node `):t.flags.help&&(t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"}),console.log(`${"-".repeat(45)}
|
|
54
|
-
`));const e={eval:{type:String,alias:"e"},print:{type:String,alias:"p"}},{_:u,flags:r}=Yu({flags:{...e,inputType:String,test:Boolean},help:!1,ignoreArgv:lt(!1)}),n=Rn({...Sn,...e}),i=["print","eval"].find(l=>!!r[l]);if(i){const{inputType:l}=r,f=r[i],{transformSync:h}=await import("esbuild"),c=h(f,{loader:"default",sourcefile:"/eval.ts",format:l==="module"?"esm":"cjs"});n.unshift(`--${i}`,c.code)}ke.isFeatureSupported(ke.testRunnerGlob)&&r.test&&u.length===0&&n.push("**/{test,test/**/*,test-*,*[.-_]test}.?(c|m)@(t|j)s");const o=await bn(),D=cr(n,{noCache:!!t.flags.noCache,tsconfigPath:t.flags.tsconfig});_l(D,o),process.send&&D.on("message",l=>{process.send(l)}),D.send&&process.on("message",l=>{D.send(l)}),D.on("close",l=>{l===null&&(l=dt.constants.signals[D.signalCode]+128),process.exit(l)})});
|
|
54
|
+
`));const e={eval:{type:String,alias:"e"},print:{type:String,alias:"p"}},{_:u,flags:r}=Yu({flags:{...e,inputType:String,test:Boolean},help:!1,ignoreArgv:lt(!1)}),n=Rn({...Sn,...e}),i=["print","eval"].find(l=>!!r[l]);if(i){const{inputType:l}=r,f=r[i],{transformSync:h}=await import("esbuild"),c=h(f,{loader:"default",sourcefile:"/eval.ts",format:l==="module"?"esm":"cjs"});n.unshift(`--${i}`,c.code)}ke.isFeatureSupported(ke.testRunnerGlob)&&r.test&&u.length===0&&n.push("**/{test,test/**/*,test-*,*[.-_]test}.?(c|m)@(t|j)s"),r.test&&n.unshift("--enable-source-maps");const o=await bn(),D=cr(n,{noCache:!!t.flags.noCache,tsconfigPath:t.flags.tsconfig});_l(D,o),process.send&&D.on("message",l=>{process.send(l)}),D.send&&process.on("message",l=>{D.send(l)}),D.on("close",l=>{l===null&&(l=dt.constants.signals[D.signalCode]+128),process.exit(l)})});
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var Bn=Object.defineProperty;var a=(t,e)=>Bn(t,"name",{value:e,configurable:!0});import{constants as ft}from"node:os";import $n from"tty";import{v as Tn}from"./package-qeSTyjZj.mjs";import{r as Ie,g as xn,i as On}from"./get-pipe-path-_tAJyU_v.mjs";import{pathToFileURL as Nn,fileURLToPath as Pn}from"node:url";import Hn from"child_process";import q from"path";import oe from"fs";import{i as yu,a as Ln,t as In}from"./node-features-JeyyvQz6.mjs";import ke from"node:path";import Me from"node:fs";import kn from"events";import ge from"util";import Mn from"stream";import wu from"os";import{g as Wn,l as Gn,y as me,e as jn,f as Un}from"./index-gbaejti9.mjs";import Kn from"node:net";import{t as Vn}from"./temporary-directory-BDDVQOvU.mjs";import"module";const zn="known-flag",Yn="unknown-flag",qn="argument",{stringify:_e}=JSON,Xn=/\B([A-Z])/g,Qn=a(t=>t.replace(Xn,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Zn}=Object.prototype,Ae=a((t,e)=>Zn.call(t,e),"w$2"),Jn=a(t=>Array.isArray(t),"L$2"),Ru=a(t=>typeof t=="function"?[t,!1]:Jn(t)?[t[0],!0]:Ru(t.type),"b$2"),er=a((t,e)=>t===Boolean?e!=="false":e,"d$2"),tr=a((t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),"m$1"),ur=/[\s.:=]/,sr=a(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(ur);if(u)throw new Error(`${e} cannot contain ${_e(u?.[0])}`)},"B"),nr=a(t=>{const e={},u=a((s,n)=>{if(Ae(e,s))throw new Error(`Duplicate flags named ${_e(s)}`);e[s]=n},"r");for(const s in t){if(!Ae(t,s))continue;sr(s);const n=t[s],r=[[],...Ru(n),n];u(s,r);const i=Qn(s);if(s!==i&&u(i,r),"alias"in n&&typeof n.alias=="string"){const{alias:o}=n,D=`Flag alias ${_e(o)} for flag ${_e(s)}`;if(o.length===0)throw new Error(`${D} cannot be empty`);if(o.length>1)throw new Error(`${D} must be a single character`);u(o,r)}}return e},"K$1"),rr=a((t,e)=>{const u={};for(const s in t){if(!Ae(t,s))continue;const[n,,r,i]=e[s];if(n.length===0&&"default"in i){let{default:o}=i;typeof o=="function"&&(o=o()),u[s]=o}else u[s]=r?n:n.pop()}return u},"_$2"),We="--",ir=/[.:=]/,or=/^-{1,2}\w/,Dr=a(t=>{if(!or.test(t))return;const e=!t.startsWith(We);let u=t.slice(e?1:2),s;const n=u.match(ir);if(n){const{index:r}=n;s=u.slice(r+1),u=u.slice(0,r)}return[u,s,e]},"N"),ar=a((t,{onFlag:e,onArgument:u})=>{let s;const n=a((r,i)=>{if(typeof s!="function")return!0;s(r,i),s=void 0},"o");for(let r=0;r<t.length;r+=1){const i=t[r];if(i===We){n();const D=t.slice(r+1);u?.(D,[r],!0);break}const o=Dr(i);if(o){if(n(),!e)continue;const[D,l,f]=o;if(f)for(let h=0;h<D.length;h+=1){n();const c=h===D.length-1;s=e(D[h],c?l:void 0,[r,h+1,c])}else s=e(D,l,[r])}else n(i,[r])&&u?.([i],[r])}n()},"$$1"),lr=a((t,e)=>{for(const[u,s,n]of e.reverse()){if(s){const r=t[u];let i=r.slice(0,s);if(n||(i+=r.slice(s+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},"E"),bu=a((t,e=process.argv.slice(2),{ignore:u}={})=>{const s=[],n=nr(t),r={},i=[];return i[We]=[],ar(e,{onFlag(o,D,l){const f=Ae(n,o);if(!u?.(f?zn:Yn,o,D)){if(f){const[h,c]=n[o],C=er(c,D),F=a((m,R)=>{s.push(l),R&&s.push(R),h.push(tr(c,m||""))},"p");return C===void 0?F:F(C)}Ae(r,o)||(r[o]=[]),r[o].push(D===void 0?!0:D),s.push(l)}},onArgument(o,D,l){u?.(qn,e[D[0]])||(i.push(...o),l?(i[We]=o,e.splice(D[0])):s.push(D))}}),lr(e,s),{flags:rr(t,n),unknownFlags:r,_:i}},"U$2");var cr=Object.create,Ge=Object.defineProperty,fr=Object.defineProperties,hr=Object.getOwnPropertyDescriptor,dr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertyNames,vu=Object.getOwnPropertySymbols,pr=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Bu=a((t,e,u)=>e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,"W$1"),je=a((t,e)=>{for(var u in e||(e={}))Su.call(e,u)&&Bu(t,u,e[u]);if(vu)for(var u of vu(e))Cr.call(e,u)&&Bu(t,u,e[u]);return t},"p"),ht=a((t,e)=>fr(t,dr(e)),"c"),Fr=a(t=>Ge(t,"__esModule",{value:!0}),"nD"),gr=a((t,e)=>()=>(t&&(e=t(t=0)),e),"rD"),mr=a((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"iD"),_r=a((t,e,u,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Er(e))!Su.call(t,n)&&n!=="default"&&Ge(t,n,{get:a(()=>e[n],"get"),enumerable:!(s=hr(e,n))||s.enumerable});return t},"oD"),Ar=a((t,e)=>_r(Fr(Ge(t!=null?cr(pr(t)):{},"default",{value:t,enumerable:!0})),t),"BD"),V=gr(()=>{}),yr=mr((t,e)=>{V(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});V(),V(),V();var wr=a(t=>{var e,u,s;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(n)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:n}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(s=t.stdoutColumns)!=null?s:n}},"v");V(),V(),V(),V(),V();function Rr({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")}a(Rr,"w$1");function $u(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Rr(),"")}a($u,"d$1"),V();function br(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}a(br,"y$1");var vr=Ar(yr());function De(t){if(typeof t!="string"||t.length===0||(t=$u(t),t.length===0))return 0;t=t.replace((0,vr.default)()," ");let e=0;for(let u=0;u<t.length;u++){let s=t.codePointAt(u);s<=31||s>=127&&s<=159||s>=768&&s<=879||(s>65535&&u++,e+=br(s)?2:1)}return e}a(De,"g");var Tu=a(t=>Math.max(...t.split(`
|
|
2
|
+
var Bn=Object.defineProperty;var a=(t,e)=>Bn(t,"name",{value:e,configurable:!0});import{constants as ft}from"node:os";import $n from"tty";import{v as Tn}from"./package-DD1BsAZe.mjs";import{r as Ie,g as xn,i as On}from"./get-pipe-path-_tAJyU_v.mjs";import{pathToFileURL as Nn,fileURLToPath as Pn}from"node:url";import Hn from"child_process";import q from"path";import oe from"fs";import{i as yu,a as Ln,t as In}from"./node-features-JeyyvQz6.mjs";import ke from"node:path";import Me from"node:fs";import kn from"events";import ge from"util";import Mn from"stream";import wu from"os";import{g as Wn,l as Gn,y as me,e as jn,f as Un}from"./index-gbaejti9.mjs";import Kn from"node:net";import{t as Vn}from"./temporary-directory-BDDVQOvU.mjs";import"module";const zn="known-flag",Yn="unknown-flag",qn="argument",{stringify:_e}=JSON,Xn=/\B([A-Z])/g,Qn=a(t=>t.replace(Xn,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Zn}=Object.prototype,Ae=a((t,e)=>Zn.call(t,e),"w$2"),Jn=a(t=>Array.isArray(t),"L$2"),Ru=a(t=>typeof t=="function"?[t,!1]:Jn(t)?[t[0],!0]:Ru(t.type),"b$2"),er=a((t,e)=>t===Boolean?e!=="false":e,"d$2"),tr=a((t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),"m$1"),ur=/[\s.:=]/,sr=a(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(ur);if(u)throw new Error(`${e} cannot contain ${_e(u?.[0])}`)},"B"),nr=a(t=>{const e={},u=a((s,n)=>{if(Ae(e,s))throw new Error(`Duplicate flags named ${_e(s)}`);e[s]=n},"r");for(const s in t){if(!Ae(t,s))continue;sr(s);const n=t[s],r=[[],...Ru(n),n];u(s,r);const i=Qn(s);if(s!==i&&u(i,r),"alias"in n&&typeof n.alias=="string"){const{alias:o}=n,D=`Flag alias ${_e(o)} for flag ${_e(s)}`;if(o.length===0)throw new Error(`${D} cannot be empty`);if(o.length>1)throw new Error(`${D} must be a single character`);u(o,r)}}return e},"K$1"),rr=a((t,e)=>{const u={};for(const s in t){if(!Ae(t,s))continue;const[n,,r,i]=e[s];if(n.length===0&&"default"in i){let{default:o}=i;typeof o=="function"&&(o=o()),u[s]=o}else u[s]=r?n:n.pop()}return u},"_$2"),We="--",ir=/[.:=]/,or=/^-{1,2}\w/,Dr=a(t=>{if(!or.test(t))return;const e=!t.startsWith(We);let u=t.slice(e?1:2),s;const n=u.match(ir);if(n){const{index:r}=n;s=u.slice(r+1),u=u.slice(0,r)}return[u,s,e]},"N"),ar=a((t,{onFlag:e,onArgument:u})=>{let s;const n=a((r,i)=>{if(typeof s!="function")return!0;s(r,i),s=void 0},"o");for(let r=0;r<t.length;r+=1){const i=t[r];if(i===We){n();const D=t.slice(r+1);u?.(D,[r],!0);break}const o=Dr(i);if(o){if(n(),!e)continue;const[D,l,f]=o;if(f)for(let h=0;h<D.length;h+=1){n();const c=h===D.length-1;s=e(D[h],c?l:void 0,[r,h+1,c])}else s=e(D,l,[r])}else n(i,[r])&&u?.([i],[r])}n()},"$$1"),lr=a((t,e)=>{for(const[u,s,n]of e.reverse()){if(s){const r=t[u];let i=r.slice(0,s);if(n||(i+=r.slice(s+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},"E"),bu=a((t,e=process.argv.slice(2),{ignore:u}={})=>{const s=[],n=nr(t),r={},i=[];return i[We]=[],ar(e,{onFlag(o,D,l){const f=Ae(n,o);if(!u?.(f?zn:Yn,o,D)){if(f){const[h,c]=n[o],C=er(c,D),F=a((m,R)=>{s.push(l),R&&s.push(R),h.push(tr(c,m||""))},"p");return C===void 0?F:F(C)}Ae(r,o)||(r[o]=[]),r[o].push(D===void 0?!0:D),s.push(l)}},onArgument(o,D,l){u?.(qn,e[D[0]])||(i.push(...o),l?(i[We]=o,e.splice(D[0])):s.push(D))}}),lr(e,s),{flags:rr(t,n),unknownFlags:r,_:i}},"U$2");var cr=Object.create,Ge=Object.defineProperty,fr=Object.defineProperties,hr=Object.getOwnPropertyDescriptor,dr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertyNames,vu=Object.getOwnPropertySymbols,pr=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Bu=a((t,e,u)=>e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,"W$1"),je=a((t,e)=>{for(var u in e||(e={}))Su.call(e,u)&&Bu(t,u,e[u]);if(vu)for(var u of vu(e))Cr.call(e,u)&&Bu(t,u,e[u]);return t},"p"),ht=a((t,e)=>fr(t,dr(e)),"c"),Fr=a(t=>Ge(t,"__esModule",{value:!0}),"nD"),gr=a((t,e)=>()=>(t&&(e=t(t=0)),e),"rD"),mr=a((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"iD"),_r=a((t,e,u,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Er(e))!Su.call(t,n)&&n!=="default"&&Ge(t,n,{get:a(()=>e[n],"get"),enumerable:!(s=hr(e,n))||s.enumerable});return t},"oD"),Ar=a((t,e)=>_r(Fr(Ge(t!=null?cr(pr(t)):{},"default",{value:t,enumerable:!0})),t),"BD"),V=gr(()=>{}),yr=mr((t,e)=>{V(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});V(),V(),V();var wr=a(t=>{var e,u,s;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(n)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:n}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(s=t.stdoutColumns)!=null?s:n}},"v");V(),V(),V(),V(),V();function Rr({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")}a(Rr,"w$1");function $u(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Rr(),"")}a($u,"d$1"),V();function br(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}a(br,"y$1");var vr=Ar(yr());function De(t){if(typeof t!="string"||t.length===0||(t=$u(t),t.length===0))return 0;t=t.replace((0,vr.default)()," ");let e=0;for(let u=0;u<t.length;u++){let s=t.codePointAt(u);s<=31||s>=127&&s<=159||s>=768&&s<=879||(s>65535&&u++,e+=br(s)?2:1)}return e}a(De,"g");var Tu=a(t=>Math.max(...t.split(`
|
|
3
3
|
`).map(De)),"b$1"),Sr=a(t=>{let e=[];for(let u of t){let{length:s}=u,n=s-e.length;for(let r=0;r<n;r+=1)e.push(0);for(let r=0;r<s;r+=1){let i=Tu(u[r]);i>e[r]&&(e[r]=i)}}return e},"k$1");V();var xu=/^\d+%$/,Ou={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Br=a((t,e)=>{var u;let s=[];for(let n=0;n<t.length;n+=1){let r=(u=e[n])!=null?u:"auto";if(typeof r=="number"||r==="auto"||r==="content-width"||typeof r=="string"&&xu.test(r)){s.push(ht(je({},Ou),{width:r,contentWidth:t[n]}));continue}if(r&&typeof r=="object"){let i=ht(je(je({},Ou),r),{contentWidth:t[n]});i.horizontalPadding=i.paddingLeft+i.paddingRight,s.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(r)}`)}return s},"sD");function $r(t,e){for(let u of t){let{width:s}=u;if(s==="content-width"&&(u.width=u.contentWidth),s==="auto"){let D=Math.min(20,u.contentWidth);u.width=D,u.autoOverflow=u.contentWidth-D}if(typeof s=="string"&&xu.test(s)){let D=Number.parseFloat(s.slice(0,-1))/100;u.width=Math.floor(e*D)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:n}=u,r=1,i=r+n;if(i>=e){let D=i-e,l=Math.ceil(u.paddingLeft/n*D),f=D-l;u.paddingLeft-=l,u.paddingRight-=f,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let o=e-u.horizontalPadding;u.width=Math.max(Math.min(u.width,o),r)}}a($r,"aD");var Nu=a(()=>Object.assign([],{columns:0}),"G$1");function Tr(t,e){let u=[Nu()],[s]=u;for(let n of t){let r=n.width+n.horizontalPadding;s.columns+r>e&&(s=Nu(),u.push(s)),s.push(n),s.columns+=r}for(let n of u){let r=n.reduce((c,C)=>c+C.width+C.horizontalPadding,0),i=e-r;if(i===0)continue;let o=n.filter(c=>"autoOverflow"in c),D=o.filter(c=>c.autoOverflow>0),l=D.reduce((c,C)=>c+C.autoOverflow,0),f=Math.min(l,i);for(let c of D){let C=Math.floor(c.autoOverflow/l*f);c.width+=C,i-=C}let h=Math.floor(i/o.length);for(let c=0;c<o.length;c+=1){let C=o[c];c===o.length-1?C.width+=i:C.width+=h,i-=h}}return u}a(Tr,"lD");function xr(t,e,u){let s=Br(u,e);return $r(s,t),Tr(s,t)}a(xr,"Z$1"),V(),V(),V();var dt=10,Pu=a((t=0)=>e=>`\x1B[${e+t}m`,"U$1"),Hu=a((t=0)=>e=>`\x1B[${38+t};5;${e}m`,"V$1"),Lu=a((t=0)=>(e,u,s)=>`\x1B[${38+t};2;${e};${u};${s}m`,"Y");function Or(){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,s]of Object.entries(e)){for(let[n,r]of Object.entries(s))e[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},s[n]=e[n],t.set(r[0],r[1]);Object.defineProperty(e,u,{value:s,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Pu(),e.color.ansi256=Hu(),e.color.ansi16m=Lu(),e.bgColor.ansi=Pu(dt),e.bgColor.ansi256=Hu(dt),e.bgColor.ansi16m=Lu(dt),Object.defineProperties(e,{rgbToAnsi256:{value:a((u,s,n)=>u===s&&s===n?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(s/255*5)+Math.round(n/255*5),"value"),enumerable:!1},hexToRgb:{value:a(u=>{let s=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!s)return[0,0,0];let{colorString:n}=s.groups;n.length===3&&(n=n.split("").map(i=>i+i).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},"value"),enumerable:!1},hexToAnsi256:{value:a(u=>e.rgbToAnsi256(...e.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:a(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let s,n,r;if(u>=232)s=((u-232)*10+8)/255,n=s,r=s;else{u-=16;let D=u%36;s=Math.floor(u/36)/5,n=Math.floor(D/6)/5,r=D%6/5}let i=Math.max(s,n,r)*2;if(i===0)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(s));return i===2&&(o+=60),o},"value"),enumerable:!1},rgbToAnsi:{value:a((u,s,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(u,s,n)),"value"),enumerable:!1},hexToAnsi:{value:a(u=>e.ansi256ToAnsi(e.hexToAnsi256(u)),"value"),enumerable:!1}}),e}a(Or,"AD");var Nr=Or(),Pr=Nr,Ue=new Set(["\x1B","\x9B"]),Hr=39,Et="\x07",Iu="[",Lr="]",ku="m",pt=`${Lr}8;;`,Mu=a(t=>`${Ue.values().next().value}${Iu}${t}${ku}`,"J$1"),Wu=a(t=>`${Ue.values().next().value}${pt}${t}${Et}`,"Q"),Ir=a(t=>t.split(" ").map(e=>De(e)),"hD"),Ct=a((t,e,u)=>{let s=[...e],n=!1,r=!1,i=De($u(t[t.length-1]));for(let[o,D]of s.entries()){let l=De(D);if(i+l<=u?t[t.length-1]+=D:(t.push(D),i=0),Ue.has(D)&&(n=!0,r=s.slice(o+1).join("").startsWith(pt)),n){r?D===Et&&(n=!1,r=!1):D===ku&&(n=!1);continue}i+=l,i===u&&o<s.length-1&&(t.push(""),i=0)}!i&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},"S$1"),kr=a(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("")},"cD"),Mr=a((t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let s="",n,r,i=Ir(t),o=[""];for(let[l,f]of t.split(" ").entries()){u.trim!==!1&&(o[o.length-1]=o[o.length-1].trimStart());let h=De(o[o.length-1]);if(l!==0&&(h>=e&&(u.wordWrap===!1||u.trim===!1)&&(o.push(""),h=0),(h>0||u.trim===!1)&&(o[o.length-1]+=" ",h++)),u.hard&&i[l]>e){let c=e-h,C=1+Math.floor((i[l]-c-1)/e);Math.floor((i[l]-1)/e)<C&&o.push(""),Ct(o,f,e);continue}if(h+i[l]>e&&h>0&&i[l]>0){if(u.wordWrap===!1&&h<e){Ct(o,f,e);continue}o.push("")}if(h+i[l]>e&&u.wordWrap===!1){Ct(o,f,e);continue}o[o.length-1]+=f}u.trim!==!1&&(o=o.map(l=>kr(l)));let D=[...o.join(`
|
|
4
4
|
`)];for(let[l,f]of D.entries()){if(s+=f,Ue.has(f)){let{groups:c}=new RegExp(`(?:\\${Iu}(?<code>\\d+)m|\\${pt}(?<uri>.*)${Et})`).exec(D.slice(l).join(""))||{groups:{}};if(c.code!==void 0){let C=Number.parseFloat(c.code);n=C===Hr?void 0:C}else c.uri!==void 0&&(r=c.uri.length===0?void 0:c.uri)}let h=Pr.codes.get(Number(n));D[l+1]===`
|
|
5
5
|
`?(r&&(s+=Wu("")),n&&h&&(s+=Mu(h))):f===`
|
|
@@ -52,4 +52,4 @@ var Bn=Object.defineProperty;var a=(t,e)=>Bn(t,"name",{value:e,configurable:!0})
|
|
|
52
52
|
*/const DD=ge,Gs=oD,js=a(t=>t!==null&&typeof t=="object"&&!Array.isArray(t),"isObject"),aD=a(t=>e=>t===!0?Number(e):String(e),"transform"),Xt=a(t=>typeof t=="number"||typeof t=="string"&&t!=="","isValidValue"),be=a(t=>Number.isInteger(+t),"isNumber"),Qt=a(t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},"zeros"),lD=a((t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,"stringify$3"),cD=a((t,e,u)=>{if(e>0){let s=t[0]==="-"?"-":"";s&&(t=t.slice(1)),t=s+t.padStart(s?e-1:e,"0")}return u===!1?String(t):t},"pad"),Us=a((t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},"toMaxLen"),fD=a((t,e)=>{t.negatives.sort((i,o)=>i<o?-1:i>o?1:0),t.positives.sort((i,o)=>i<o?-1:i>o?1:0);let u=e.capture?"":"?:",s="",n="",r;return t.positives.length&&(s=t.positives.join("|")),t.negatives.length&&(n=`-(${u}${t.negatives.join("|")})`),s&&n?r=`${s}|${n}`:r=s||n,e.wrap?`(${u}${r})`:r},"toSequence"),Ks=a((t,e,u,s)=>{if(u)return Gs(t,e,{wrap:!1,...s});let n=String.fromCharCode(t);if(t===e)return n;let r=String.fromCharCode(e);return`[${n}-${r}]`},"toRange"),Vs=a((t,e,u)=>{if(Array.isArray(t)){let s=u.wrap===!0,n=u.capture?"":"?:";return s?`(${n}${t.join("|")})`:t.join("|")}return Gs(t,e,u)},"toRegex"),zs=a((...t)=>new RangeError("Invalid range arguments: "+DD.inspect(...t)),"rangeError"),Ys=a((t,e,u)=>{if(u.strictRanges===!0)throw zs([t,e]);return[]},"invalidRange"),hD=a((t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},"invalidStep"),dD=a((t,e,u=1,s={})=>{let n=Number(t),r=Number(e);if(!Number.isInteger(n)||!Number.isInteger(r)){if(s.strictRanges===!0)throw zs([t,e]);return[]}n===0&&(n=0),r===0&&(r=0);let i=n>r,o=String(t),D=String(e),l=String(u);u=Math.max(Math.abs(u),1);let f=Qt(o)||Qt(D)||Qt(l),h=f?Math.max(o.length,D.length,l.length):0,c=f===!1&&lD(t,e,s)===!1,C=s.transform||aD(c);if(s.toRegex&&u===1)return Ks(Us(t,h),Us(e,h),!0,s);let F={negatives:[],positives:[]},m=a(H=>F[H<0?"negatives":"positives"].push(Math.abs(H)),"push"),R=[],T=0;for(;i?n>=r:n<=r;)s.toRegex===!0&&u>1?m(n):R.push(cD(C(n,T),h,c)),n=i?n-u:n+u,T++;return s.toRegex===!0?u>1?fD(F,s):Vs(R,null,{wrap:!1,...s}):R},"fillNumbers"),ED=a((t,e,u=1,s={})=>{if(!be(t)&&t.length>1||!be(e)&&e.length>1)return Ys(t,e,s);let n=s.transform||(c=>String.fromCharCode(c)),r=`${t}`.charCodeAt(0),i=`${e}`.charCodeAt(0),o=r>i,D=Math.min(r,i),l=Math.max(r,i);if(s.toRegex&&u===1)return Ks(D,l,!1,s);let f=[],h=0;for(;o?r>=i:r<=i;)f.push(n(r,h)),r=o?r-u:r+u,h++;return s.toRegex===!0?Vs(f,null,{wrap:!1,options:s}):f},"fillLetters"),tt=a((t,e,u,s={})=>{if(e==null&&Xt(t))return[t];if(!Xt(t)||!Xt(e))return Ys(t,e,s);if(typeof u=="function")return tt(t,e,1,{transform:u});if(js(u))return tt(t,e,0,u);let n={...s};return n.capture===!0&&(n.wrap=!0),u=u||n.step||1,be(u)?be(t)&&be(e)?dD(t,e,u,n):ED(t,e,Math.max(Math.abs(u),1),n):u!=null&&!js(u)?hD(u,n):tt(t,e,1,u)},"fill$2");var qs=tt;const pD=qs,Xs=et,CD=a((t,e={})=>{let u=a((s,n={})=>{let r=Xs.isInvalidBrace(n),i=s.invalid===!0&&e.escapeInvalid===!0,o=r===!0||i===!0,D=e.escapeInvalid===!0?"\\":"",l="";if(s.isOpen===!0||s.isClose===!0)return D+s.value;if(s.type==="open")return o?D+s.value:"(";if(s.type==="close")return o?D+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":o?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let f=Xs.reduce(s.nodes),h=pD(...f,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(s.nodes)for(let f of s.nodes)l+=u(f,s);return l},"walk");return u(t)},"compile$1");var FD=CD;const gD=qs,Qs=Yt,pe=et,le=a((t="",e="",u=!1)=>{let s=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?pe.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let r of n)s.push(le(r,e,u));else for(let r of e)u===!0&&typeof r=="string"&&(r=`{${r}}`),s.push(Array.isArray(r)?le(n,r,u):n+r);return pe.flatten(s)},"append"),mD=a((t,e={})=>{let u=e.rangeLimit===void 0?1e3:e.rangeLimit,s=a((n,r={})=>{n.queue=[];let i=r,o=r.queue;for(;i.type!=="brace"&&i.type!=="root"&&i.parent;)i=i.parent,o=i.queue;if(n.invalid||n.dollar){o.push(le(o.pop(),Qs(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){o.push(le(o.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let h=pe.reduce(n.nodes);if(pe.exceedsLimit(...h,e.step,u))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=gD(...h,e);c.length===0&&(c=Qs(n,e)),o.push(le(o.pop(),c)),n.nodes=[];return}let D=pe.encloseBrace(n),l=n.queue,f=n;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,l=f.queue;for(let h=0;h<n.nodes.length;h++){let c=n.nodes[h];if(c.type==="comma"&&n.type==="brace"){h===1&&l.push(""),l.push("");continue}if(c.type==="close"){o.push(le(o.pop(),l,D));continue}if(c.value&&c.type!=="open"){l.push(le(l.pop(),c.value));continue}c.nodes&&s(c,n)}return l},"walk");return pe.flatten(s(t))},"expand$1");var _D=mD,AD={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
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 yD=Yt,{MAX_LENGTH:Zs,CHAR_BACKSLASH:Zt,CHAR_BACKTICK:wD,CHAR_COMMA:RD,CHAR_DOT:bD,CHAR_LEFT_PARENTHESES:vD,CHAR_RIGHT_PARENTHESES:SD,CHAR_LEFT_CURLY_BRACE:BD,CHAR_RIGHT_CURLY_BRACE:$D,CHAR_LEFT_SQUARE_BRACKET:Js,CHAR_RIGHT_SQUARE_BRACKET:en,CHAR_DOUBLE_QUOTE:TD,CHAR_SINGLE_QUOTE:xD,CHAR_NO_BREAK_SPACE:OD,CHAR_ZERO_WIDTH_NOBREAK_SPACE:ND}=AD,PD=a((t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},s=typeof u.maxLength=="number"?Math.min(Zs,u.maxLength):Zs;if(t.length>s)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${s})`);let n={type:"root",input:t,nodes:[]},r=[n],i=n,o=n,D=0,l=t.length,f=0,h=0,c;const C=a(()=>t[f++],"advance"),F=a(m=>{if(m.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&m.type==="text"){o.value+=m.value;return}return i.nodes.push(m),m.parent=i,m.prev=o,o=m,m},"push");for(F({type:"bos"});f<l;)if(i=r[r.length-1],c=C(),!(c===ND||c===OD)){if(c===Zt){F({type:"text",value:(e.keepEscaping?c:"")+C()});continue}if(c===en){F({type:"text",value:"\\"+c});continue}if(c===Js){D++;let m;for(;f<l&&(m=C());){if(c+=m,m===Js){D++;continue}if(m===Zt){c+=C();continue}if(m===en&&(D--,D===0))break}F({type:"text",value:c});continue}if(c===vD){i=F({type:"paren",nodes:[]}),r.push(i),F({type:"text",value:c});continue}if(c===SD){if(i.type!=="paren"){F({type:"text",value:c});continue}i=r.pop(),F({type:"text",value:c}),i=r[r.length-1];continue}if(c===TD||c===xD||c===wD){let m=c,R;for(e.keepQuotes!==!0&&(c="");f<l&&(R=C());){if(R===Zt){c+=R+C();continue}if(R===m){e.keepQuotes===!0&&(c+=R);break}c+=R}F({type:"text",value:c});continue}if(c===BD){h++;let R={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||i.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};i=F(R),r.push(i),F({type:"open",value:c});continue}if(c===$D){if(i.type!=="brace"){F({type:"text",value:c});continue}let m="close";i=r.pop(),i.close=!0,F({type:m,value:c}),h--,i=r[r.length-1];continue}if(c===RD&&h>0){if(i.ranges>0){i.ranges=0;let m=i.nodes.shift();i.nodes=[m,{type:"text",value:yD(i)}]}F({type:"comma",value:c}),i.commas++;continue}if(c===bD&&h>0&&i.commas===0){let m=i.nodes;if(h===0||m.length===0){F({type:"text",value:c});continue}if(o.type==="dot"){if(i.range=[],o.value+=c,o.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,o.type="text";continue}i.ranges++,i.args=[];continue}if(o.type==="range"){m.pop();let R=m[m.length-1];R.value+=o.value+c,o=R,i.ranges--;continue}F({type:"dot",value:c});continue}F({type:"text",value:c})}do if(i=r.pop(),i.type!=="root"){i.nodes.forEach(T=>{T.nodes||(T.type==="open"&&(T.isOpen=!0),T.type==="close"&&(T.isClose=!0),T.nodes||(T.type="text"),T.invalid=!0)});let m=r[r.length-1],R=m.nodes.indexOf(i);m.nodes.splice(R,1,...i.nodes)}while(r.length>0);return F({type:"eos"}),n},"parse$1");var HD=PD;const tn=Yt,LD=FD,ID=_D,kD=HD,Q=a((t,e={})=>{let u=[];if(Array.isArray(t))for(let s of t){let n=Q.create(s,e);Array.isArray(n)?u.push(...n):u.push(n)}else u=[].concat(Q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u},"braces$1");Q.parse=(t,e={})=>kD(t,e),Q.stringify=(t,e={})=>tn(typeof t=="string"?Q.parse(t,e):t,e),Q.compile=(t,e={})=>(typeof t=="string"&&(t=Q.parse(t,e)),LD(t,e)),Q.expand=(t,e={})=>{typeof t=="string"&&(t=Q.parse(t,e));let u=ID(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},Q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Q.compile(t,e):Q.expand(t,e);var MD=Q,WD=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","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"],GD=WD;const jD=q,UD=GD,KD=new Set(UD);var VD=a(t=>KD.has(jD.extname(t).slice(1).toLowerCase()),"isBinaryPath$1"),ut={};(function(t){const{sep:e}=q,{platform:u}=process,s=wu;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_FLAG_MUST_SCAN_SUBDIRS=1,t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${e}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=n=>n,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=s.type()==="OS400"})(ut);const re=oe,G=q,{promisify:ve}=ge,zD=VD,{isWindows:YD,isLinux:qD,EMPTY_FN:XD,EMPTY_STR:QD,KEY_LISTENERS:Ce,KEY_ERR:Jt,KEY_RAW:Se,HANDLER_KEYS:ZD,EV_CHANGE:st,EV_ADD:nt,EV_ADD_DIR:JD,EV_ERROR:un,STR_DATA:ea,STR_END:ta,BRACE_START:ua,STAR:sa}=ut,na="watch",ra=ve(re.open),sn=ve(re.stat),ia=ve(re.lstat),oa=ve(re.close),eu=ve(re.realpath),Da={lstat:ia,stat:sn},tu=a((t,e)=>{t instanceof Set?t.forEach(e):e(t)},"foreach"),Be=a((t,e,u)=>{let s=t[e];s instanceof Set||(t[e]=s=new Set([s])),s.add(u)},"addAndConvert"),aa=a(t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},"clearItem"),$e=a((t,e,u)=>{const s=t[e];s instanceof Set?s.delete(u):s===u&&delete t[e]},"delFromSet"),nn=a(t=>t instanceof Set?t.size===0:!t,"isEmptySet"),rt=new Map;function rn(t,e,u,s,n){const r=a((i,o)=>{u(t),n(i,o,{watchedPath:t}),o&&t!==o&&it(G.resolve(t,o),Ce,G.join(t,o))},"handleEvent");try{return re.watch(t,e,r)}catch(i){s(i)}}a(rn,"createFsWatchInstance");const it=a((t,e,u,s,n)=>{const r=rt.get(t);r&&tu(r[e],i=>{i(u,s,n)})},"fsWatchBroadcast"),la=a((t,e,u,s)=>{const{listener:n,errHandler:r,rawEmitter:i}=s;let o=rt.get(e),D;if(!u.persistent)return D=rn(t,u,n,r,i),D.close.bind(D);if(o)Be(o,Ce,n),Be(o,Jt,r),Be(o,Se,i);else{if(D=rn(t,u,it.bind(null,e,Ce),r,it.bind(null,e,Se)),!D)return;D.on(un,async l=>{const f=it.bind(null,e,Jt);if(o.watcherUnusable=!0,YD&&l.code==="EPERM")try{const h=await ra(t,"r");await oa(h),f(l)}catch{}else f(l)}),o={listeners:n,errHandlers:r,rawEmitters:i,watcher:D},rt.set(e,o)}return()=>{$e(o,Ce,n),$e(o,Jt,r),$e(o,Se,i),nn(o.listeners)&&(o.watcher.close(),rt.delete(e),ZD.forEach(aa(o)),o.watcher=void 0,Object.freeze(o))}},"setFsWatchListener"),uu=new Map,ca=a((t,e,u,s)=>{const{listener:n,rawEmitter:r}=s;let i=uu.get(e);const o=i&&i.options;return o&&(o.persistent<u.persistent||o.interval>u.interval)&&(i.listeners,i.rawEmitters,re.unwatchFile(e),i=void 0),i?(Be(i,Ce,n),Be(i,Se,r)):(i={listeners:n,rawEmitters:r,options:u,watcher:re.watchFile(e,u,(D,l)=>{tu(i.rawEmitters,h=>{h(st,e,{curr:D,prev:l})});const f=D.mtimeMs;(D.size!==l.size||f>l.mtimeMs||f===0)&&tu(i.listeners,h=>h(t,D))})},uu.set(e,i)),()=>{$e(i,Ce,n),$e(i,Se,r),nn(i.listeners)&&(uu.delete(e),re.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}},"setFsWatchFileListener");let fa=class{static{a(this,"NodeFsHandler")}constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const s=this.fsw.options,n=G.dirname(e),r=G.basename(e);this.fsw._getWatchedDir(n).add(r);const o=G.resolve(e),D={persistent:s.persistent};u||(u=XD);let l;return s.usePolling?(D.interval=s.enableBinaryInterval&&zD(r)?s.binaryInterval:s.interval,l=ca(e,o,D,{listener:u,rawEmitter:this.fsw._emitRaw})):l=la(e,o,D,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(e,u,s){if(this.fsw.closed)return;const n=G.dirname(e),r=G.basename(e),i=this.fsw._getWatchedDir(n);let o=u;if(i.has(r))return;const D=a(async(f,h)=>{if(this.fsw._throttle(na,e,5)){if(!h||h.mtimeMs===0)try{const c=await sn(e);if(this.fsw.closed)return;const C=c.atimeMs,F=c.mtimeMs;(!C||C<=F||F!==o.mtimeMs)&&this.fsw._emit(st,e,c),qD&&o.ino!==c.ino?(this.fsw._closeFile(f),o=c,this.fsw._addPathCloser(f,this._watchWithNodeFs(e,D))):o=c}catch{this.fsw._remove(n,r)}else if(i.has(r)){const c=h.atimeMs,C=h.mtimeMs;(!c||c<=C||C!==o.mtimeMs)&&this.fsw._emit(st,e,h),o=h}}},"listener"),l=this._watchWithNodeFs(e,D);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(nt,e,0))return;this.fsw._emit(nt,e,u)}return l}async _handleSymlink(e,u,s,n){if(this.fsw.closed)return;const r=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o;try{o=await eu(s)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(r)!==o&&(this.fsw._symlinkPaths.set(r,o),this.fsw._emit(st,s,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(r,o),this.fsw._emit(nt,s,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(r))return!0;this.fsw._symlinkPaths.set(r,!0)}_handleRead(e,u,s,n,r,i,o){if(e=G.join(e,QD),!s.hasGlob&&(o=this.fsw._throttle("readdir",e,1e3),!o))return;const D=this.fsw._getWatchedDir(s.path),l=new Set;let f=this.fsw._readdirp(e,{fileFilter:a(h=>s.filterPath(h),"fileFilter"),directoryFilter:a(h=>s.filterDir(h),"directoryFilter"),depth:0}).on(ea,async h=>{if(this.fsw.closed){f=void 0;return}const c=h.path;let C=G.join(e,c);if(l.add(c),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,e,C,c))){if(this.fsw.closed){f=void 0;return}(c===n||!n&&!D.has(c))&&(this.fsw._incrReadyCount(),C=G.join(r,G.relative(r,C)),this._addToNodeFs(C,u,s,i+1))}}).on(un,this._boundHandleError);return new Promise(h=>f.once(ta,()=>{if(this.fsw.closed){f=void 0;return}const c=o?o.clear():!1;h(),D.getChildren().filter(C=>C!==e&&!l.has(C)&&(!s.hasGlob||s.filterPath({fullPath:G.resolve(e,C)}))).forEach(C=>{this.fsw._remove(e,C)}),f=void 0,c&&this._handleRead(e,!1,s,n,r,i,o)}))}async _handleDir(e,u,s,n,r,i,o){const D=this.fsw._getWatchedDir(G.dirname(e)),l=D.has(G.basename(e));!(s&&this.fsw.options.ignoreInitial)&&!r&&!l&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(JD,e,u),D.add(G.basename(e)),this.fsw._getWatchedDir(e);let f,h;const c=this.fsw.options.depth;if((c==null||n<=c)&&!this.fsw._symlinkPaths.has(o)){if(!r&&(await this._handleRead(e,s,i,r,e,n,f),this.fsw.closed))return;h=this._watchWithNodeFs(e,(C,F)=>{F&&F.mtimeMs===0||this._handleRead(C,!1,i,r,e,n,f)})}return h}async _addToNodeFs(e,u,s,n,r){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const o=this.fsw._getWatchHelpers(e,n);!o.hasGlob&&s&&(o.hasGlob=s.hasGlob,o.globFilter=s.globFilter,o.filterPath=D=>s.filterPath(D),o.filterDir=D=>s.filterDir(D));try{const D=await Da[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))return i(),!1;const l=this.fsw.options.followSymlinks&&!e.includes(sa)&&!e.includes(ua);let f;if(D.isDirectory()){const h=G.resolve(e),c=l?await eu(e):e;if(this.fsw.closed||(f=await this._handleDir(o.watchPath,D,u,n,r,o,c),this.fsw.closed))return;h!==c&&c!==void 0&&this.fsw._symlinkPaths.set(h,c)}else if(D.isSymbolicLink()){const h=l?await eu(e):e;if(this.fsw.closed)return;const c=G.dirname(o.watchPath);if(this.fsw._getWatchedDir(c).add(o.watchPath),this.fsw._emit(nt,o.watchPath,D),f=await this._handleDir(c,D,u,n,e,o,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(G.resolve(e),h)}else f=this._handleFile(o.watchPath,D,u);return i(),this.fsw._addPathCloser(e,f),!1}catch(D){if(this.fsw._handleError(D))return i(),e}}};var ha=fa,su={exports:{}};const nu=oe,j=q,{promisify:ru}=ge;let Fe;try{Fe=Ie("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:iu,EV_CHANGE:da,EV_ADD_DIR:on,EV_UNLINK:ot,EV_ERROR:Ea,STR_DATA:pa,STR_END:Ca,FSEVENT_CREATED:Fa,FSEVENT_MODIFIED:ga,FSEVENT_DELETED:ma,FSEVENT_MOVED:_a,FSEVENT_UNKNOWN:Aa,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:ya,FSEVENT_TYPE_FILE:wa,FSEVENT_TYPE_DIRECTORY:Te,FSEVENT_TYPE_SYMLINK:Dn,ROOT_GLOBSTAR:an,DIR_SUFFIX:Ra,DOT_SLASH:ln,FUNCTION_TYPE:ou,EMPTY_FN:ba,IDENTITY_FN:va}=ut,Sa=a(t=>isNaN(t)?{}:{depth:t},"Depth"),Du=ru(nu.stat),Ba=ru(nu.lstat),cn=ru(nu.realpath),$a={stat:Du,lstat:Ba},ce=new Map,Ta=10,xa=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Oa=a((t,e)=>({stop:Fe.watch(t,e)}),"createFSEventsInstance");function Na(t,e,u,s){let n=j.extname(e)?j.dirname(e):e;const r=j.dirname(n);let i=ce.get(n);Pa(r)&&(n=r);const o=j.resolve(t),D=o!==e,l=a((h,c,C)=>{D&&(h=h.replace(e,o)),(h===o||!h.indexOf(o+j.sep))&&u(h,c,C)},"filteredListener");let f=!1;for(const h of ce.keys())if(e.indexOf(j.resolve(h)+j.sep)===0){n=h,i=ce.get(n),f=!0;break}return i||f?i.listeners.add(l):(i={listeners:new Set([l]),rawEmitter:s,watcher:Oa(n,(h,c)=>{if(!i.listeners.size||c&ya)return;const C=Fe.getInfo(h,c);i.listeners.forEach(F=>{F(h,c,C)}),i.rawEmitter(C.event,h,C)})},ce.set(n,i)),()=>{const h=i.listeners;if(h.delete(l),!h.size&&(ce.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}a(Na,"setFSEventsListener");const Pa=a(t=>{let e=0;for(const u of ce.keys())if(u.indexOf(t)===0&&(e++,e>=Ta))return!0;return!1},"couldConsolidate"),Ha=a(()=>Fe&&ce.size<128,"canUse"),au=a((t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=j.dirname(t))!==e;)u++;return u},"calcDepth"),fn=a((t,e)=>t.type===Te&&e.isDirectory()||t.type===Dn&&e.isSymbolicLink()||t.type===wa&&e.isFile(),"sameTypes");let La=class{static{a(this,"FsEventsHandler")}constructor(e){this.fsw=e}checkIgnored(e,u){const s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return s.add(e),u&&u.isDirectory()&&s.add(e+an),!0;s.delete(e),s.delete(e+an)}addOrChange(e,u,s,n,r,i,o,D){const l=r.has(i)?da:iu;this.handleEvent(l,e,u,s,n,r,i,o,D)}async checkExists(e,u,s,n,r,i,o,D){try{const l=await Du(e);if(this.fsw.closed)return;fn(o,l)?this.addOrChange(e,u,s,n,r,i,o,D):this.handleEvent(ot,e,u,s,n,r,i,o,D)}catch(l){l.code==="EACCES"?this.addOrChange(e,u,s,n,r,i,o,D):this.handleEvent(ot,e,u,s,n,r,i,o,D)}}handleEvent(e,u,s,n,r,i,o,D,l){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===ot){const f=D.type===Te;(f||i.has(o))&&this.fsw._remove(r,o,f)}else{if(e===iu){if(D.type===Te&&this.fsw._getWatchedDir(u),D.type===Dn&&l.followSymlinks){const h=l.depth===void 0?void 0:au(s,n)+1;return this._addToFsEvents(u,!1,!0,h)}this.fsw._getWatchedDir(r).add(o)}const f=D.type===Te?e+Ra:e;this.fsw._emit(f,u),f===on&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,s,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const r=this.fsw.options,o=Na(e,u,a(async(D,l,f)=>{if(this.fsw.closed||r.depth!==void 0&&au(D,u)>r.depth)return;const h=s(j.join(e,j.relative(e,D)));if(n&&!n(h))return;const c=j.dirname(h),C=j.basename(h),F=this.fsw._getWatchedDir(f.type===Te?h:c);if(xa.has(l)||f.event===Aa)if(typeof r.ignored===ou){let m;try{m=await Du(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,m))return;fn(f,m)?this.addOrChange(h,D,u,c,F,C,f,r):this.handleEvent(ot,h,D,u,c,F,C,f,r)}else this.checkExists(h,D,u,c,F,C,f,r);else switch(f.event){case Fa:case ga:return this.addOrChange(h,D,u,c,F,C,f,r);case ma:case _a:return this.checkExists(h,D,u,c,F,C,f,r)}},"watchCallback"),this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,u,s,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const r=await cn(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(r))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(r||e,i=>{let o=e;return r&&r!==ln?o=i.replace(r,e):i!==ln&&(o=j.join(e,i)),s(o)},!1,n)}catch(r){if(this.fsw._handleError(r))return this.fsw._emitReady()}}}emitAdd(e,u,s,n,r){const i=s(e),o=u.isDirectory(),D=this.fsw._getWatchedDir(j.dirname(i)),l=j.basename(i);o&&this.fsw._getWatchedDir(i),!D.has(l)&&(D.add(l),(!n.ignoreInitial||r===!0)&&this.fsw._emit(o?on:iu,i,u))}initWatch(e,u,s,n){if(this.fsw.closed)return;const r=this._watchWithFsEvents(s.watchPath,j.resolve(e||s.watchPath),n,s.globFilter);this.fsw._addPathCloser(u,r)}async _addToFsEvents(e,u,s,n){if(this.fsw.closed)return;const r=this.fsw.options,i=typeof u===ou?u:va,o=this.fsw._getWatchHelpers(e);try{const D=await $a[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))throw null;if(D.isDirectory()){if(o.globFilter||this.emitAdd(i(e),D,i,r,s),n&&n>r.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:a(l=>o.filterPath(l),"fileFilter"),directoryFilter:a(l=>o.filterDir(l),"directoryFilter"),...Sa(r.depth-(n||0))}).on(pa,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!o.filterPath(l))return;const f=j.join(o.watchPath,l.path),{fullPath:h}=l;if(o.followSymlinks&&l.stats.isSymbolicLink()){const c=r.depth===void 0?void 0:au(f,j.resolve(o.watchPath))+1;this._handleFsEventsSymlink(f,h,i,c)}else this.emitAdd(f,l.stats,i,r,s)}).on(Ea,ba).on(Ca,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,D,i,r,s),this.fsw._emitReady()}catch(D){(!D||this.fsw._handleError(D))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(r.persistent&&s!==!0)if(typeof u===ou)this.initWatch(void 0,e,o,i);else{let D;try{D=await cn(o.watchPath)}catch{}this.initWatch(D,e,o,i)}}};su.exports=La,su.exports.canUse=Ha;var Ia=su.exports;const{EventEmitter:ka}=kn,lu=oe,x=q,{promisify:hn}=ge,Ma=No,cu=Mo.default,Wa=Zo,fu=Vt,Ga=MD,ja=Ss,Ua=ha,dn=Ia,{EV_ALL:hu,EV_READY:Ka,EV_ADD:Dt,EV_CHANGE:xe,EV_UNLINK:En,EV_ADD_DIR:Va,EV_UNLINK_DIR:za,EV_RAW:Ya,EV_ERROR:du,STR_CLOSE:qa,STR_END:Xa,BACK_SLASH_RE:Qa,DOUBLE_SLASH_RE:pn,SLASH_OR_BACK_SLASH_RE:Za,DOT_RE:Ja,REPLACER_RE:el,SLASH:Eu,SLASH_SLASH:tl,BRACE_START:ul,BANG:pu,ONE_DOT:Cn,TWO_DOTS:sl,GLOBSTAR:nl,SLASH_GLOBSTAR:Cu,ANYMATCH_OPTS:Fu,STRING_TYPE:gu,FUNCTION_TYPE:rl,EMPTY_STR:mu,EMPTY_FN:il,isWindows:ol,isMacos:Dl,isIBMi:al}=ut,ll=hn(lu.stat),cl=hn(lu.readdir),_u=a((t=[])=>Array.isArray(t)?t:[t],"arrify"),Fn=a((t,e=[])=>(t.forEach(u=>{Array.isArray(u)?Fn(u,e):e.push(u)}),e),"flatten"),gn=a(t=>{const e=Fn(_u(t));if(!e.every(u=>typeof u===gu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(_n)},"unifyPaths"),mn=a(t=>{let e=t.replace(Qa,Eu),u=!1;for(e.startsWith(tl)&&(u=!0);e.match(pn);)e=e.replace(pn,Eu);return u&&(e=Eu+e),e},"toUnix"),_n=a(t=>mn(x.normalize(mn(t))),"normalizePathToUnix"),An=a((t=mu)=>e=>typeof e!==gu?e:_n(x.isAbsolute(e)?e:x.join(t,e)),"normalizeIgnored"),fl=a((t,e)=>x.isAbsolute(t)?t:t.startsWith(pu)?pu+x.join(e,t.slice(1)):x.join(e,t),"getAbsolutePath"),J=a((t,e)=>t[e]===void 0,"undef");class hl{static{a(this,"DirEntry")}constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;u&&e!==Cn&&e!==sl&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const s=this.path;try{await cl(s)}catch{this._removeWatcher&&this._removeWatcher(x.dirname(s),x.basename(s))}}has(e){const{items:u}=this;if(u)return u.has(e)}getChildren(){const{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const dl="stat",El="lstat";class pl{static{a(this,"WatchHelper")}constructor(e,u,s,n){this.fsw=n,this.path=e=e.replace(el,mu),this.watchPath=u,this.fullWatchPath=x.resolve(u),this.hasGlob=u!==e,e===mu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?cu(e,void 0,Fu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(r=>{r.length>1&&r.pop()}),this.followSymlinks=s,this.statMethod=s?dl:El}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return x.join(this.watchPath,x.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const s=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===rl?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(ul)?Ga.expand(e):[e]).forEach(n=>{u.push(x.relative(this.watchPath,n).split(Za))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let s=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((r,i)=>(r===nl&&(s=!0),s||!u[0][i]||cu(r,u[0][i],Fu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class Cl extends ka{static{a(this,"FSWatcher")}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,J(u,"persistent")&&(u.persistent=!0),J(u,"ignoreInitial")&&(u.ignoreInitial=!1),J(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),J(u,"interval")&&(u.interval=100),J(u,"binaryInterval")&&(u.binaryInterval=300),J(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,J(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),dn.canUse()||(u.useFsEvents=!1),J(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=Dl),al&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const D=n.toLowerCase();D==="false"||D==="0"?u.usePolling=!1:D==="true"||D==="1"?u.usePolling=!0:u.usePolling=!!D}const r=process.env.CHOKIDAR_INTERVAL;r&&(u.interval=Number.parseInt(r,10)),J(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),J(u,"followSymlinks")&&(u.followSymlinks=!0),J(u,"awaitWriteFinish")&&(u.awaitWriteFinish=!1),u.awaitWriteFinish===!0&&(u.awaitWriteFinish={});const i=u.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=_u(u.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=il,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ka)))},this._emitRaw=(...D)=>this.emit(Ya,...D),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new dn(this):this._nodeFsHandler=new Ua(this),Object.freeze(u)}add(e,u,s){const{cwd:n,disableGlobbing:r}=this.options;this.closed=!1;let i=gn(e);return n&&(i=i.map(o=>{const D=fl(o,n);return r||!fu(o)?D:ja(D)})),i=i.filter(o=>o.startsWith(pu)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+Cu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount+=i.length),i.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async o=>{const D=await this._nodeFsHandler._addToNodeFs(o,!s,0,0,u);return D&&this._emitReady(),D})).then(o=>{this.closed||o.filter(D=>D).forEach(D=>{this.add(x.dirname(D),x.basename(u||D))})})),this}unwatch(e){if(this.closed)return this;const u=gn(e),{cwd:s}=this.options;return u.forEach(n=>{!x.isAbsolute(n)&&!this._closers.has(n)&&(s&&(n=x.join(s,n)),n=x.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+Cu),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(s=>{const n=s();n instanceof Promise&&e.push(n)})),this._streams.forEach(u=>u.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(u=>u.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(u=>{this[`_${u}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach((u,s)=>{const n=this.options.cwd?x.relative(this.options.cwd,s):s;e[n||Cn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==du&&this.emit(hu,...u)}async _emit(e,u,s,n,r){if(this.closed)return;const i=this.options;ol&&(u=x.normalize(u)),i.cwd&&(u=x.relative(i.cwd,u));const o=[e,u];r!==void 0?o.push(s,n,r):n!==void 0?o.push(s,n):s!==void 0&&o.push(s);const D=i.awaitWriteFinish;let l;if(D&&(l=this._pendingWrites.get(u)))return l.lastChange=new Date,this;if(i.atomic){if(e===En)return this._pendingUnlinks.set(u,o),setTimeout(()=>{this._pendingUnlinks.forEach((f,h)=>{this.emit(...f),this.emit(hu,...f),this._pendingUnlinks.delete(h)})},typeof i.atomic=="number"?i.atomic:100),this;e===Dt&&this._pendingUnlinks.has(u)&&(e=o[0]=xe,this._pendingUnlinks.delete(u))}if(D&&(e===Dt||e===xe)&&this._readyEmitted){const f=a((h,c)=>{h?(e=o[0]=du,o[1]=h,this.emitWithAll(e,o)):c&&(o.length>2?o[2]=c:o.push(c),this.emitWithAll(e,o))},"awfEmit");return this._awaitWriteFinish(u,D.stabilityThreshold,e,f),this}if(e===xe&&!this._throttle(xe,u,50))return this;if(i.alwaysStat&&s===void 0&&(e===Dt||e===Va||e===xe)){const f=i.cwd?x.join(i.cwd,u):u;let h;try{h=await ll(f)}catch{}if(!h||this.closed)return;o.push(h)}return this.emitWithAll(e,o),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(du,e),e||this.closed}_throttle(e,u,s){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),r=n.get(u);if(r)return r.count++,!1;let i;const o=a(()=>{const l=n.get(u),f=l?l.count:0;return n.delete(u),clearTimeout(i),l&&clearTimeout(l.timeoutObject),f},"clear");i=setTimeout(o,s);const D={timeoutObject:i,clear:o,count:0};return n.set(u,D),D}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,s,n){let r,i=e;this.options.cwd&&!x.isAbsolute(e)&&(i=x.join(this.options.cwd,e));const o=new Date,D=a(l=>{lu.stat(i,(f,h)=>{if(f||!this._pendingWrites.has(e)){f&&f.code!=="ENOENT"&&n(f);return}const c=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(e).lastChange=c);const C=this._pendingWrites.get(e);c-C.lastChange>=u?(this._pendingWrites.delete(e),n(void 0,h)):r=setTimeout(D,this.options.awaitWriteFinish.pollInterval,h)})},"awaitWriteFinish");this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:a(()=>(this._pendingWrites.delete(e),clearTimeout(r),s),"cancelWait")}),r=setTimeout(D,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Ja.test(e))return!0;if(!this._userIgnored){const{cwd:s}=this.options,n=this.options.ignored,r=n&&n.map(An(s)),i=_u(r).filter(D=>typeof D===gu&&!fu(D)).map(D=>D+Cu),o=this._getGlobIgnored().map(An(s)).concat(r,i);this._userIgnored=cu(o,void 0,Fu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const s=u||this.options.disableGlobbing||!fu(e)?e:Wa(e),n=this.options.followSymlinks;return new pl(e,s,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=x.resolve(e);return this._watched.has(u)||this._watched.set(u,new hl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const s=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(s.toString(8)[0],10))}_remove(e,u,s){const n=x.join(e,u),r=x.resolve(n);if(s=s??(this._watched.has(n)||this._watched.has(r)),!this._throttle("remove",n,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(n).getChildren().forEach(c=>this._remove(n,c));const D=this._getWatchedDir(e),l=D.has(u);D.remove(u),this._symlinkPaths.has(r)&&this._symlinkPaths.delete(r);let f=n;if(this.options.cwd&&(f=x.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===Dt)return;this._watched.delete(n),this._watched.delete(r);const h=s?za:En;l&&!this._isIgnored(n)&&this._emit(h,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const u=x.dirname(e);this._getWatchedDir(u).remove(x.basename(e))}_closeFile(e){const u=this._closers.get(e);u&&(u.forEach(s=>s()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let s=this._closers.get(e);s||(s=[],this._closers.set(e,s)),s.push(u)}_readdirp(e,u){if(this.closed)return;const s={type:hu,alwaysStat:!0,lstat:!0,...u};let n=Ma(e,s);return this._streams.add(n),n.once(qa,()=>{n=void 0}),n.once(Xa,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}var Au=Cl;const at=a((t=!0)=>{let e=!1;return u=>{if(e||u==="unknown-flag")return!0;if(u==="argument")return e=!0,t}},"ignoreAfterArgument"),yn=a((t,e=process.argv.slice(2))=>(bu(t,e,{ignore:at()}),e),"removeArgvFlags"),Fl=a(t=>{let e=Buffer.alloc(0);return u=>{for(e=Buffer.concat([e,u]);e.length>4;){const s=e.readInt32BE(0);if(e.length>=4+s){const n=e.slice(4,4+s);t(n),e=e.slice(4+s)}else break}}},"bufferData"),wn=a(async()=>{const t=Kn.createServer(u=>{u.on("data",Fl(s=>{const n=JSON.parse(s.toString());t.emit("data",n)}))}),e=xn(process.pid);return await Me.promises.mkdir(Vn,{recursive:!0}),await Me.promises.rm(e,{force:!0}),await new Promise((u,s)=>{t.listen(e,u),t.on("error",s)}),t.unref(),process.on("exit",()=>{if(t.close(),!On)try{Me.rmSync(e)}catch{}}),t},"createIpcServer"),gl=a(()=>new Date().toLocaleTimeString(),"currentTime"),Oe=a((...t)=>console.log(Wn(gl()),Gn("[tsx]"),...t),"log"),ml="\x1Bc",_l=a((t,e)=>{let u;return function(){u&&clearTimeout(u),u=setTimeout(()=>Reflect.apply(t,this,arguments),e)}},"debounce"),Rn={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 (Deprecated: use --exclude)"},include:{type:[String],description:"Additional paths & globs to watch"},exclude:{type:[String],description:"Paths & globs to exclude from being watched"}},Al=li({name:"watch",parameters:["<script path>"],flags:Rn,help:{description:"Run the script and watch for changes"},ignoreArgv:at(!1)},async t=>{const e=yn(Rn,process.argv.slice(3)),u={noCache:t.flags.noCache,tsconfigPath:t.flags.tsconfig,clearScreen:t.flags.clearScreen,include:t.flags.include,exclude:[...t.flags.ignore,...t.flags.exclude],ipc:!0};let s,n=!1;const r=process.cwd(),i=new Map,o=a((g,w)=>{const d=ke.resolve(w),b=i.get(d);if(g==="add"||g==="addDir"||g==="unlink"||g==="unlinkDir")b&&(clearTimeout(b.expiration),i.delete(d));else if(b)return`${g}:${b.path}`;let v;try{v=Me.realpathSync.native(d)}catch{v=d}const W={path:v,expiration:setTimeout(()=>{i.get(d)===W&&i.delete(d)},1e3)};return W.expiration.unref(),i.set(d,W),`${g}:${v}`},"getEventKey"),D=t._.map(g=>ke.resolve(g));let l,f,h=!1;const c=new Map,C=a(g=>{const w=ke.resolve(g);return process.platform==="win32"?w.toLowerCase():w},"getPathKey"),F=new Set;for(const g of u.include)if(g.startsWith("!")){const w=g.slice(1);Os(w)||F.add(C(w))}else Os(g)||F.delete(C(g));(await wn()).on("data",g=>{if(g&&typeof g=="object"&&"type"in g&&g.type==="dependency"&&"path"in g&&typeof g.path=="string"){const w=g.path.startsWith("file:")?Pn(g.path):g.path;ke.isAbsolute(w)&&(F.has(C(w))?(f||(f=new Au({...I,disableGlobbing:!0}),f.on("all",(d,b)=>{Z("literal",d,b)})),f.add(w)):l.add(w))}});const R=a(()=>{if(!n)return as(e,u)},"spawnProcess");let T=!1;const H=a(async(g,w="SIGTERM",d=5e3)=>{let b=!1;const v=new Promise(W=>{g.on("exit",E=>{b=!0,T=!1,W(E)})});return T=!0,g.kill(w),setTimeout(()=>{b||(Oe(me(`Process didn't exit in ${Math.floor(d/1e3)}s. Force killing...`)),g.kill("SIGKILL"))},d),await v},"killProcess"),O=_l(async(g,w)=>{const d=g?`${g?jn(g):""}${w?` in ${Un(`./${w}`)}`:""}`:"";if(T){Oe(d,me("Process hasn't exited. Killing process...")),s.kill("SIGKILL");return}s&&(s.exitCode===null?(Oe(d,me("Restarting...")),await H(s)):Oe(d,me("Rerunning...")),u.clearScreen&&process.stdout.isTTY&&process.stdout.write(ml)),s=R()},100),z=a(g=>{n=!0,s?.exitCode===null?(T&&Oe(me("Previous process hasn't exited yet. Force killing...")),H(s,T?"SIGKILL":g).then(w=>{process.exit(w??0)},()=>{})):process.exit(128+ft.signals[g])},"relaySignal");process.on("SIGINT",z),process.on("SIGTERM",z);const I={cwd:r,ignoreInitial:!0,ignored:["**/.*/**","**/.*","**/{node_modules,bower_components,vendor}/**",...u.exclude],ignorePermissionErrors:!0},Z=a((g,w,d)=>{if(!h)return;const b=o(w,d),v=c.get(b);if(v&&v.source!==g){clearTimeout(v.expiration),c.delete(b);return}v&&clearTimeout(v.expiration);const W={source:g,expiration:setTimeout(()=>{c.get(b)===W&&c.delete(b)},1e3)};W.expiration.unref(),c.set(b,W),O(w,d)},"handleWatchEvent");l=new Au({...I,disableGlobbing:!0}),l.on("all",(g,w)=>{Z("literal",g,w)});const M=a(g=>new Promise(w=>{g.once("ready",w)}),"waitForReady"),y=[M(l)];if(l.add(D),u.include.some(g=>!g.startsWith("!"))){const g=new Au(I);g.on("all",(w,d)=>{Z("include",w,d)}),y.push(M(g)),g.add(u.include)}await Promise.all(y),l.add(u.include.filter(g=>g.startsWith("!"))),h=!0,s=R(),process.stdin.on("data",()=>O("Return key"))}),yl=a((t,e)=>{let u;e.on("data",r=>{r&&r.type==="signal"&&u&&u(r.signal)});const s=a(()=>{const r=new Promise(i=>{setTimeout(()=>i(void 0),30),u=i});return r.then(()=>{u=void 0},()=>{}),r},"waitForSignalFromChild"),n=a(async r=>{await s()!==r&&(t.kill(r),await s()!==r&&(t.on("exit",()=>{const D=ft.signals[r];process.exit(128+D)}),t.kill("SIGKILL")))},"relaySignalToChild");process.on("SIGINT",n),process.on("SIGTERM",n)},"relaySignals"),bn={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}};Vu({name:"tsx",parameters:["[script path]"],commands:[Al],flags:{...bn,version:{type:Boolean,alias:"v",description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1,ignoreArgv:at()},async t=>{t.flags.version?process.stdout.write(`tsx v${Tn}
|
|
54
54
|
node `):t.flags.help&&(t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"}),console.log(`${"-".repeat(45)}
|
|
55
|
-
`));const e={eval:{type:String,alias:"e"},print:{type:String,alias:"p"}},{_:u,flags:s}=Vu({flags:{...e,inputType:String,test:Boolean},help:!1,ignoreArgv:at(!1)}),n=yn({...bn,...e}),i=["print","eval"].find(l=>!!s[l]);if(i){const{inputType:l}=s,f=s[i],{transformSync:h}=await import("esbuild"),c=h(f,{loader:"default",sourcefile:"/eval.ts",format:l==="module"?"esm":"cjs"});n.unshift(`--${i}`,c.code)}yu(In)&&s.test&&u.length===0&&n.push("**/{test,test/**/*,test-*,*[.-_]test}.?(c|m)@(t|j)s");const o=await wn(),D=as(n,{noCache:!!t.flags.noCache,tsconfigPath:t.flags.tsconfig});yl(D,o),process.send&&D.on("message",l=>{process.send(l)}),D.send&&process.on("message",l=>{D.send(l)}),D.on("close",l=>{l===null&&(l=ft.signals[D.signalCode]+128),process.exit(l)})});
|
|
55
|
+
`));const e={eval:{type:String,alias:"e"},print:{type:String,alias:"p"}},{_:u,flags:s}=Vu({flags:{...e,inputType:String,test:Boolean},help:!1,ignoreArgv:at(!1)}),n=yn({...bn,...e}),i=["print","eval"].find(l=>!!s[l]);if(i){const{inputType:l}=s,f=s[i],{transformSync:h}=await import("esbuild"),c=h(f,{loader:"default",sourcefile:"/eval.ts",format:l==="module"?"esm":"cjs"});n.unshift(`--${i}`,c.code)}yu(In)&&s.test&&u.length===0&&n.push("**/{test,test/**/*,test-*,*[.-_]test}.?(c|m)@(t|j)s"),s.test&&n.unshift("--enable-source-maps");const o=await wn(),D=as(n,{noCache:!!t.flags.noCache,tsconfigPath:t.flags.tsconfig});yl(D,o),process.send&&D.on("message",l=>{process.send(l)}),D.send&&process.on("message",l=>{D.send(l)}),D.on("close",l=>{l===null&&(l=ft.signals[D.signalCode]+128),process.exit(l)})});
|
package/dist/esm/api/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var m=Object.defineProperty;var q=(r,e)=>m(r,"name",{value:e,configurable:!0});var s=require("../../register-
|
|
1
|
+
"use strict";var m=Object.defineProperty;var q=(r,e)=>m(r,"name",{value:e,configurable:!0});var s=require("../../register-Cn3U8bZT.cjs"),c=require("node:crypto");require("../../get-pipe-path-D4YM6rQt.cjs");var t=require("../../register-BxraCus2.cjs");require("../../require-DaO4qQ4U.cjs");var n=require("../../node-features-CEjg7cMX.cjs");require("node:module"),require("node:worker_threads"),require("node:url"),require("node:fs"),require("node:fs/promises"),require("../../index-LWEOpzQe.cjs"),require("node:path"),require("esbuild"),require("node:os"),require("../../temporary-directory-B83uKxJF.cjs"),require("../../client-D3mGB526.cjs"),require("node:net"),require("module"),require("fs"),require("os"),require("path"),require("node:util"),require("../../index-BWFBUo6r.cjs");const g=q((r,e)=>{if(!e||typeof e=="object"&&!e.parentURL)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const i=typeof e=="string",u=i?e:e.parentURL,a=c.randomUUID(),o=t.register({namespace:a});return!n.isFeatureSupported(n.esmLoadReadFile)&&!t.isBarePackageNamePattern.test(r)&&t.cjsExtensionPattern.test(r)?Promise.resolve(o.require(r,u)):s.register({namespace:a,...i?{}:e}).import(r,u)},"tsImport");exports.register=s.register,exports.tsImport=g;
|
package/dist/esm/api/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var s=Object.defineProperty;var i=(t,r)=>s(t,"name",{value:r,configurable:!0});import{r as p}from"../../register-
|
|
1
|
+
var s=Object.defineProperty;var i=(t,r)=>s(t,"name",{value:r,configurable:!0});import{r as p}from"../../register-DdgZzFJi.mjs";import n from"node:crypto";import"../../get-pipe-path-_tAJyU_v.mjs";import{r as c,i as u,c as d}from"../../register--Y-HowfU.mjs";import"../../require-CL1N-1Kt.mjs";import{i as f,e as g}from"../../node-features-JeyyvQz6.mjs";import"node:module";import"node:worker_threads";import"node:url";import"node:fs";import"node:fs/promises";import"../../index-CVGQLgGk.mjs";import"node:path";import"esbuild";import"node:os";import"../../temporary-directory-BDDVQOvU.mjs";import"../../client-D_mPDF5S.mjs";import"node:net";import"module";import"fs";import"os";import"path";import"node:util";import"../../index-gbaejti9.mjs";const U=i((t,r)=>{if(!r||typeof r=="object"&&!r.parentURL)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const o=typeof r=="string",e=o?r:r.parentURL,m=n.randomUUID(),a=c({namespace:m});return!f(g)&&!u.test(t)&&d.test(t)?Promise.resolve(a.require(t,e)):p({namespace:m,...o?{}:r}).import(t,e)},"tsImport");export{p as register,U as tsImport};
|
package/dist/esm/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var o=(e,i)=>s(e,"name",{value:i,configurable:!0});var c=require("node:worker_threads"),a=require("../node-features-CEjg7cMX.cjs"),r=require("../register-
|
|
1
|
+
"use strict";var s=Object.defineProperty;var o=(e,i)=>s(e,"name",{value:i,configurable:!0});var c=require("node:worker_threads"),a=require("../node-features-CEjg7cMX.cjs"),r=require("../register-Cn3U8bZT.cjs");require("node:crypto"),require("../get-pipe-path-D4YM6rQt.cjs"),require("node:module"),require("node:path"),require("node:url"),require("../register-BxraCus2.cjs"),require("node:fs"),require("esbuild"),require("../index-LWEOpzQe.cjs"),require("../client-D3mGB526.cjs"),require("../require-DaO4qQ4U.cjs"),require("node:fs/promises"),require("module"),require("../temporary-directory-B83uKxJF.cjs"),require("node:os"),require("fs"),require("os"),require("path"),require("node:util"),require("../index-BWFBUo6r.cjs"),require("node:net");function q(e){var i=Object.create(null);return e&&Object.keys(e).forEach(function(t){if(t!=="default"){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,l.get?l:{enumerable:!0,get:o(function(){return e[t]},"get")})}}),i.default=e,Object.freeze(i)}o(q,"_interopNamespaceDefault");var n=q(c);(a.isFeatureSupported(a.moduleRegisterHooksCjsReload)&&!n.isInternalThread||a.isFeatureSupported(a.moduleRegister)&&n.isMainThread)&&r.register();const u=r.createDefaultData(),d=r.createInitialize(u),f=r.createGlobalPreload(u),p=r.createLoad(u),b=r.createResolve(u);exports.globalPreload=f,exports.initialize=d,exports.load=p,exports.resolve=b;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as o from"node:worker_threads";import{i as t,m as i,a as e}from"../node-features-JeyyvQz6.mjs";import{r as a,c as m,a as p,b as s,d as l,e as d}from"../register-
|
|
1
|
+
import*as o from"node:worker_threads";import{i as t,m as i,a as e}from"../node-features-JeyyvQz6.mjs";import{r as a,c as m,a as p,b as s,d as l,e as d}from"../register-DdgZzFJi.mjs";import"node:crypto";import"../get-pipe-path-_tAJyU_v.mjs";import"node:module";import"node:path";import"node:url";import"../register--Y-HowfU.mjs";import"node:fs";import"esbuild";import"../index-CVGQLgGk.mjs";import"../client-D_mPDF5S.mjs";import"../require-CL1N-1Kt.mjs";import"node:fs/promises";import"module";import"../temporary-directory-BDDVQOvU.mjs";import"node:os";import"fs";import"os";import"path";import"node:util";import"../index-gbaejti9.mjs";import"node:net";(t(i)&&!o.isInternalThread||t(e)&&o.isMainThread)&&a();const r=d(),c=m(r),n=p(r),f=s(r),u=l(r);export{n as globalPreload,c as initialize,f as load,u as resolve};
|
package/dist/loader.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("./get-pipe-path-D4YM6rQt.cjs"),e=require("./esm/index.cjs");require("module"),require("node:path"),require("./temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:worker_threads"),require("./node-features-CEjg7cMX.cjs"),require("./register-
|
|
1
|
+
"use strict";var r=require("./get-pipe-path-D4YM6rQt.cjs"),e=require("./esm/index.cjs");require("module"),require("node:path"),require("./temporary-directory-B83uKxJF.cjs"),require("node:os"),require("node:worker_threads"),require("./node-features-CEjg7cMX.cjs"),require("./register-Cn3U8bZT.cjs"),require("node:crypto"),require("node:module"),require("./register-BxraCus2.cjs"),require("node:url"),require("node:fs"),require("fs"),require("os"),require("path"),require("./index-LWEOpzQe.cjs"),require("esbuild"),require("./client-D3mGB526.cjs"),require("node:net"),require("node:util"),require("./index-BWFBUo6r.cjs"),require("node:fs/promises"),require("./require-DaO4qQ4U.cjs"),r.require("./cjs/index.cjs"),exports.globalPreload=e.globalPreload,exports.initialize=e.initialize,exports.load=e.load,exports.resolve=e.resolve;
|
package/dist/loader.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./get-pipe-path-_tAJyU_v.mjs";import{globalPreload as A,initialize as B,load as C,resolve as D}from"./esm/index.mjs";import"module";import"node:path";import"./temporary-directory-BDDVQOvU.mjs";import"node:os";import"node:worker_threads";import"./node-features-JeyyvQz6.mjs";import"./register-
|
|
1
|
+
import{r}from"./get-pipe-path-_tAJyU_v.mjs";import{globalPreload as A,initialize as B,load as C,resolve as D}from"./esm/index.mjs";import"module";import"node:path";import"./temporary-directory-BDDVQOvU.mjs";import"node:os";import"node:worker_threads";import"./node-features-JeyyvQz6.mjs";import"./register-DdgZzFJi.mjs";import"node:crypto";import"node:module";import"./register--Y-HowfU.mjs";import"node:url";import"node:fs";import"fs";import"os";import"path";import"./index-CVGQLgGk.mjs";import"esbuild";import"./client-D_mPDF5S.mjs";import"node:net";import"node:util";import"./index-gbaejti9.mjs";import"node:fs/promises";import"./require-CL1N-1Kt.mjs";r("./cjs/index.cjs");export{A as globalPreload,B as initialize,C as load,D as resolve};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r="4.23.10";exports.version=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r="4.23.10";export{r as v};
|
|
@@ -6,5 +6,5 @@ var bt=Object.defineProperty;var l=(e,t)=>bt(e,"name",{value:t,configurable:!0})
|
|
|
6
6
|
`+" ".repeat(t)),new Array(M).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(M).fill(0).map((e,t)=>`\r
|
|
7
7
|
`+" ".repeat(t));var ne;(function(e){e.DEFAULT={allowTrailingComma:!1}})(ne||(ne={}));function We(e,t=[],r=ne.DEFAULT){let n=null,s=[];const o=[];function a(i){Array.isArray(s)?s.push(i):n!==null&&(s[n]=i)}return l(a,"l"),c(a,"onValue"),Be(e,{onObjectBegin:c(()=>{const i={};a(i),o.push(s),s=i,n=null},"onObjectBegin"),onObjectProperty:c(i=>{n=i},"onObjectProperty"),onObjectEnd:c(()=>{s=o.pop()},"onObjectEnd"),onArrayBegin:c(()=>{const i=[];a(i),o.push(s),s=i,n=null},"onArrayBegin"),onArrayEnd:c(()=>{s=o.pop()},"onArrayEnd"),onLiteralValue:a,onError:c((i,m,u)=>{t.push({error:i,offset:m,length:u})},"onError")},r),s[0]}l(We,"Re"),c(We,"parse$1");function Be(e,t,r=ne.DEFAULT){const n=Ie(e,!1),s=[];let o=0;function a(j){return j?()=>o===0&&j(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}l(a,"l"),c(a,"toNoArgVisit");function i(j){return j?O=>o===0&&j(O,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}l(i,"g"),c(i,"toOneArgVisit");function m(j){return j?O=>o===0&&j(O,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>s.slice()):()=>!0}l(m,"m"),c(m,"toOneArgVisitWithPath");function u(j){return j?()=>{o>0?o++:j(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>s.slice())===!1&&(o=1)}:()=>!0}l(u,"k"),c(u,"toBeginVisit");function k(j){return j?()=>{o>0&&o--,o===0&&j(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}l(k,"w"),c(k,"toEndVisit");const f=u(t.onObjectBegin),v=m(t.onObjectProperty),b=k(t.onObjectEnd),y=u(t.onArrayBegin),E=k(t.onArrayEnd),d=m(t.onLiteralValue),g=i(t.onSeparator),T=a(t.onComment),p=i(t.onError),C=r&&r.disallowComments,S=r&&r.allowTrailingComma;function w(){for(;;){const j=n.scan();switch(n.getTokenError()){case 4:x(14);break;case 5:x(15);break;case 3:x(13);break;case 1:C||x(11);break;case 2:x(12);break;case 6:x(16);break}switch(j){case 12:case 13:C?x(10):T();break;case 16:x(1);break;case 15:case 14:break;default:return j}}}l(w,"v"),c(w,"scanNext");function x(j,O=[],$e=[]){if(p(j),O.length+$e.length>0){let q=n.getToken();for(;q!==17;){if(O.indexOf(q)!==-1){w();break}else if($e.indexOf(q)!==-1)break;q=w()}}}l(x,"d"),c(x,"handleError");function _(j){const O=n.getTokenValue();return j?d(O):(v(O),s.push(O)),w(),!0}l(_,"L"),c(_,"parseString");function L(){switch(n.getToken()){case 11:const j=n.getTokenValue();let O=Number(j);isNaN(O)&&(x(2),O=0),d(O);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return w(),!0}l(L,"B"),c(L,"parseLiteral");function P(){return n.getToken()!==10?(x(3,[],[2,5]),!1):(_(!1),n.getToken()===6?(g(":"),w(),Z()||x(4,[],[2,5])):x(5,[],[2,5]),s.pop(),!0)}l(P,"$"),c(P,"parseProperty");function W(){f(),w();let j=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(j||x(4,[],[]),g(","),w(),n.getToken()===2&&S)break}else j&&x(6,[],[]);P()||x(4,[],[2,5]),j=!0}return b(),n.getToken()!==2?x(7,[2],[]):w(),!0}l(W,"N"),c(W,"parseObject");function Ae(){y(),w();let j=!0,O=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(O||x(4,[],[]),g(","),w(),n.getToken()===4&&S)break}else O&&x(6,[],[]);j?(s.push(0),j=!1):s[s.length-1]++,Z()||x(4,[],[4,5]),O=!0}return E(),j||s.pop(),n.getToken()!==4?x(8,[4],[]):w(),!0}l(Ae,"$e"),c(Ae,"parseArray");function Z(){switch(n.getToken()){case 3:return Ae();case 1:return W();case 10:return _(!0);default:return L()}}return l(Z,"H"),c(Z,"parseValue"),w(),n.getToken()===17?r.allowEmptyContent?!0:(x(4,[],[]),!1):Z()?(n.getToken()!==17&&x(9,[],[]),!0):(x(4,[],[]),!1)}l(Be,"Pe"),c(Be,"visit");var Je;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Je||(Je={}));var Me;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Me||(Me={}));const zt=We;var Ve;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Ve||(Ve={}));const de=c((e,t)=>zt(Kt(t,e)),"readJsonc"),Ge=c(()=>{const{findPnpApi:e}=$;return e&&e(process.cwd())},"getPnpApi"),Ht="detectTypeScriptVersion:",Xt=c((e,t)=>{const r=`${Ht}${e}`,n=t?.get(r);if(n!==void 0)return n??void 0;let s;const o=Ge();if(o)try{s=o.resolveRequest("typescript/package.json",e)??void 0}catch{}s??=K(h.resolve(e),h.join("node_modules","typescript","package.json"),t);let a;if(s)try{const i=de(s,t);typeof i?.version=="string"&&(a=i.version)}catch{}return t?.set(r,a??null),a},"detectTypeScriptVersion"),N="package.json",re="tsconfig.json",Yt=c((e,t,r)=>{const n=$.createRequire(h.join(r,"tsconfig.json"));if(e!==t)try{return n.resolve(e)}catch{}try{return n.resolve(t)}catch{}try{return n.resolve(`${t}/${N}`)}catch{}},"resolvePackageEntryWithNode"),me=c((e,t,r,n)=>{const s=`resolveFromPackageJsonPath:${e}:${t}:${r}`;if(n?.has(s))return n.get(s)||!1;const o=de(e,n);if(!o)return;let a=t||re;if(!r&&o.exports)try{const[i]=Gt(o.exports,t,["require","types"]);a=i}catch{return n?.set(s,""),!1}else!t&&o.tsconfig&&(a=o.tsconfig);return a=h.join(e,"..",a),n?.set(s,a),a},"resolveFromPackageJsonPath"),Zt=c((e,t,r)=>{const n=`resolveExtendsPath:${e}:${t}`;if(r?.has(n))return r.get(n)||void 0;const s=qt(e,t,r);return r?.set(n,s||""),s},"resolveExtendsPath"),qt=c((e,t,r)=>{let n=e;if(e===".."&&(n=h.join(n,re)),e[0]==="."&&(n=h.resolve(t,n)),h.isAbsolute(n)){const d=D(r,n);if(d){if(d.isFile())return n}else if(!n.endsWith(".json")){const g=`${n}.json`;if(D(r,g))return g}return}const[s,...o]=e.split("/"),a=s[0]==="@"?`${s}/${o.shift()}`:s,i=o.join("/"),m=Ge();if(m){const{resolveRequest:d}=m;try{if(a===e){const g=d(h.join(a,N),t);if(g){const T=me(g,i,!1,r);if(T&&D(r,T))return T}}else{let g;try{g=d(e,t,{extensions:[".json"]})}catch{g=d(h.join(e,re),t)}if(g)return g}}catch{}}const u=Yt(e,a,t);let k;if(u){if(h.basename(u)!==N&&u.endsWith(".json"))return u;k=h.basename(u)===N?u:K(h.dirname(u),N,r)}const f=k&&h.dirname(k)||K(h.resolve(t),h.join("node_modules",a),r);if(!f||!D(r,f)?.isDirectory())return;const v=h.join(f,N);if(D(r,v)){const d=me(v,i,!1,r);if(d===!1)return;if(d&&D(r,d)?.isFile())return d}const b=h.join(f,i),y=b.endsWith(".json");if(!y){const d=`${b}.json`;if(D(r,d))return d}const E=D(r,b);if(E){if(E.isDirectory()){const d=h.join(b,N);if(D(r,d)){const T=me(d,"",!0,r);if(T&&D(r,T))return T}const g=h.join(b,re);if(D(r,g))return g}else if(y)return b}},"resolveExtendsPathUncached"),he=Symbol("implicitBaseUrl"),U="${configDir}",ge=/^\.{1,2}(\/.*)?$/,se=c(e=>{const t=A(e);return ge.test(t)?t:`./${t}`},"normalizeRelativePath"),en=c(e=>{const t={...e};if(t.strict){const r=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const n of r)t[n]===void 0&&(t[n]=!0)}if(t.composite&&(t.declaration??=!0,t.incremental??=!0),t.target){let r=t.target.toLowerCase();r==="es2015"&&(r="es6"),t.target=r,r==="esnext"&&(t.module??="es6",t.useDefineForClassFields??=!0),(r==="es6"||r==="es2016"||r==="es2017"||r==="es2018"||r==="es2019"||r==="es2020"||r==="es2021"||r==="es2022"||r==="es2023"||r==="es2024"||r==="es2025")&&(t.module??="es6"),(r==="es2022"||r==="es2023"||r==="es2024"||r==="es2025")&&(t.useDefineForClassFields??=!0)}if(t.module){let r=t.module.toLowerCase();if(r==="es2015"&&(r="es6"),t.module=r,(r==="es6"||r==="es2020"||r==="es2022"||r==="esnext"||r==="none"||r==="system"||r==="umd"||r==="amd")&&(t.moduleResolution??="classic"),r==="system"&&(t.allowSyntheticDefaultImports??=!0),(r==="node16"||r==="node18"||r==="node20"||r==="nodenext"||r==="preserve")&&(t.esModuleInterop??=!0,t.allowSyntheticDefaultImports??=!0),(r==="node16"||r==="node18"||r==="node20"||r==="nodenext")&&(t.moduleDetection??="force"),(r==="node16"||r==="node18")&&(t.target??="es2022",t.moduleResolution??="node16"),r==="node20"&&(t.target??="es2023",t.moduleResolution??="node16",t.resolveJsonModule??=!0),r==="nodenext"&&(t.target??="esnext",t.moduleResolution??="nodenext",t.resolveJsonModule??=!0),r==="node16"||r==="node18"||r==="node20"||r==="nodenext"){const n=t.target;(n==="es3"||n==="es2022"||n==="es2023"||n==="es2024"||n==="esnext")&&(t.useDefineForClassFields??=!0)}r==="preserve"&&(t.moduleResolution??="bundler")}if(t.moduleResolution){let r=t.moduleResolution.toLowerCase();r==="node"&&(r="node10"),t.moduleResolution=r,(r==="node16"||r==="nodenext"||r==="bundler")&&(t.resolvePackageJsonExports??=!0,t.resolvePackageJsonImports??=!0),r==="bundler"&&(t.allowSyntheticDefaultImports??=!0,t.resolveJsonModule??=!0)}for(const r of["jsx","moduleDetection","importsNotUsedAsValues","newLine"])t[r]&&(t[r]=t[r].toLowerCase());return t.esModuleInterop&&(t.allowSyntheticDefaultImports??=!0),t.verbatimModuleSyntax&&(t.isolatedModules??=!0,t.preserveConstEnums??=!0),t.isolatedModules&&(t.preserveConstEnums??=!0),t.rewriteRelativeImportExtensions&&(t.allowImportingTsExtensions??=!0),t.lib&&(t.lib=t.lib.map(r=>r.toLowerCase())),t.checkJs&&(t.allowJs??=!0),t},"normalizeCompilerOptions"),tn=c((e,t)=>{!t.has("target")&&!nn(e.module)&&(e.target="es3")},"applyV4Defaults"),nn=c(e=>e==="node16"||e==="node18"||e==="node20"||e==="nodenext","moduleDictatesTarget$1"),rn=c((e,t)=>{!t.has("target")&&!sn(e.module)&&(e.target="es5")},"applyV5Defaults"),sn=c(e=>e==="node16"||e==="node18"||e==="node20"||e==="nodenext","moduleDictatesTarget"),on=c((e,t)=>{t.has("strict")||(e.strict=!0),t.has("target")||(e.target="es2025"),t.has("module")||(e.module="es2022"),t.has("moduleResolution")||(e.moduleResolution="bundler"),t.has("rootDir")||(e.rootDir="."),t.has("types")||(e.types=[]),t.has("noUncheckedSideEffectImports")||(e.noUncheckedSideEffectImports=!0),t.has("libReplacement")||(e.libReplacement=!1)},"applyV6Defaults"),an=[[4,tn],[5,rn],[6,on]],cn=c(e=>{const t=/^v?(\d+)/.exec(e);return t?Number(t[1]):void 0},"parseMajor"),ln=c((e,t)=>{const r=cn(t);if(r===void 0)return;const n=new Set(Object.keys(e));for(const[s,o]of an)s<=r&&o(e,n)},"applyVersionDefaults"),ke=c((e,t)=>se(h.relative(e,t)),"pathRelative"),Qe=["files","include","exclude"],Ke=c((e,t,r)=>{const n=h.join(t,r),s=h.relative(e,n);return A(s)||"./"},"resolveAndRelativize"),pn=c((e,t,r)=>{const n=h.relative(e,t);if(!n)return r;const s=r.startsWith("./")?r.slice(2):r;return A(`${n}/${s}`)},"prefixPattern"),ze=["outDir","declarationDir"],oe=c((e,t)=>{if(e.startsWith(U))return A(h.join(t,e.slice(U.length)))},"interpolateConfigDir"),un=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],fn=c((e,t={})=>{if(e.length===0)throw new Error("Chain must not be empty");const{typescriptVersion:r}=t,n=new Map(e.map(f=>[f.path,f])),s=new Map,o=c(f=>{const v=s.get(f);if(v)return v;const b=n.get(f);if(!b)throw new Error(`Config not found in chain: ${f}`);const y=b.config,E=h.dirname(f);let d={...y,...y.compilerOptions&&{compilerOptions:{...y.compilerOptions}},...y.watchOptions&&{watchOptions:{...y.watchOptions}}};if(delete d.extends,d.compilerOptions?.paths&&!d.compilerOptions.baseUrl&&(d.compilerOptions[he]=E),y.extends){const g=Array.isArray(y.extends)?y.extends:[y.extends];for(const T of g.toReversed()){const p=o(T),C=h.dirname(T),{references:S,...w}=p;if(w.compilerOptions){const _={...w.compilerOptions};for(const L of["baseUrl","outDir","declarationDir","rootDir"]){const P=_[L];P&&!P.startsWith(U)&&(_[L]=Ke(E,C,P))}for(const L of["rootDirs","typeRoots"]){const P=_[L];P&&(_[L]=P.map(W=>W.startsWith(U)?W:Ke(E,C,W)))}w.compilerOptions=_}for(const _ of Qe){const L=w[_];L&&(w[_]=L.map(P=>P.startsWith(U)?P:pn(E,C,P)))}const x={...w,...d,compilerOptions:{...w.compilerOptions,...d.compilerOptions}};w.watchOptions&&(x.watchOptions={...w.watchOptions,...d.watchOptions}),d=x}}if(d.compilerOptions){const{compilerOptions:g}=d,T=["baseUrl","rootDir"];for(const p of T){const C=g[p];if(C&&!C.startsWith(U)){const S=h.resolve(E,C),w=ke(E,S);g[p]=w}}for(const p of ze){let C=g[p];C&&(Array.isArray(d.exclude)||(d.exclude=ze.map(S=>g[S]).filter(Boolean)),C.startsWith(U)||(C=se(C)),g[p]=C)}}else d.compilerOptions={};if(d.include&&(d.include=d.include.map(A)),d.files&&(d.files=d.files.map(g=>g.startsWith(U)?g:se(g))),d.watchOptions){const{watchOptions:g}=d;for(const T of["excludeDirectories","excludeFiles"])g[T]&&(g[T]=g[T].map(p=>A(h.resolve(E,p))));for(const T of["watchFile","watchDirectory","fallbackPolling"])if(g[T]){const p=g;p[T]=g[T].toLowerCase()}}return s.set(f,d),d},"resolveEntry"),a=e[0],i=o(a.path),m=h.dirname(a.path),u={...i,compilerOptions:i.compilerOptions?{...i.compilerOptions}:{}},{compilerOptions:k}=u;if(k){for(const f of un){const v=k[f];if(v){const b=oe(v,m);k[f]=b?ke(m,b):v}}for(const f of["rootDirs","typeRoots"]){const v=k[f];v&&(k[f]=v.map(b=>{const y=oe(b,m);return y?ke(m,y):se(b)}))}if(k.paths){const f={};for(const[v,b]of Object.entries(k.paths))f[v]=b.map(y=>oe(y,m)??y);k.paths=f}r&&ln(k,r),u.compilerOptions=en(k)}for(const f of Qe){const v=u[f];v&&(u[f]=v.map(b=>oe(b,m)??b))}return{path:a.path,config:u,sources:e.map(f=>f.path)}},"resolveExtendsChain"),dn=c((e,t={})=>{const{cache:r=new Map}=t,n=h.resolve(e),s=[],o=new Set,a=c((i,m)=>{const u=A(i);if(o.has(u))return;o.add(u);let k;try{k=de(i,r)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${i}`)}if(typeof k!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${i}`);const f=h.dirname(i);if(k.extends){const v=Array.isArray(k.extends),b=(v?k.extends:[k.extends]).map(E=>{const d=Zt(E,f,r);if(!d)throw new Error(`File '${E}' not found.`);const g=A(d);if(m.has(g)||g===u)throw new Error(`Circularity detected while resolving configuration: ${g}`);return g});k.extends=v?b:b[0],s.push({path:u,config:k});const y=new Set(m);y.add(u);for(const E of[...b].reverse())a(E,y)}else s.push({path:u,config:k})},"collect");return a(n,new Set),s},"getExtendsChain"),ye=c((e,t={})=>{const{cache:r=new Map,typescriptVersion:n="auto"}=t,s=dn(e,{cache:r});let o;return n==="auto"?o=Xt(h.dirname(s[0].path),r):n!==!1&&(o=n),fn(s,{typescriptVersion:o})},"readTsconfig");var mn=Object.defineProperty,ae=c((e,t)=>mn(e,"name",{value:t,configurable:!0}),"s");const He=ae(e=>{let t="";for(let r=0;r<e.length;r+=1){const n=e[r],s=n.toUpperCase();t+=n===s?n.toLowerCase():s}return t},"invertCase"),be=new Map,Xe=ae((e,t)=>{const r=Tt.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(r,""),!t.existsSync(He(r))}finally{try{t.unlinkSync(r)}catch{}}},"checkDirectoryCaseWithWrite"),hn=ae((e,t,r)=>{try{return Xe(e,r)}catch(n){if(t===void 0)return Xe(jt.tmpdir(),r);throw n}},"checkDirectoryCaseWithFallback"),gn=ae((e,t=Ct,r=!0)=>{const n=e??process.cwd();if(r&&be.has(n))return be.get(n);let s;const o=He(n);return o!==n&&t.existsSync(n)?s=!t.existsSync(o):s=hn(n,e,t),r&&be.set(n,s),s},"isFsCaseSensitive"),{join:Ye}=h.posix,xe={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},kn=c(e=>{const t=[...xe.ts],r=[...xe.cts],n=[...xe.mts];return e?.allowJs&&(t.push(".js",".jsx"),r.push(".cjs"),n.push(".mjs")),[...t,...r,...n]},"getSupportedExtensions"),yn=c(e=>{const t=[];if(!e)return t;const{outDir:r,declarationDir:n}=e;return r&&t.push(r),n&&t.push(n),t},"getDefaultExcludeSpec"),Ze=c(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),bn=["node_modules","bower_components","jspm_packages"],we=`(?!(${bn.join("|")})(/|$))`,xn=/(?:^|\/)[^.*?]+$/,qe="**/*",ie="[^/]",ve="[^./]",et=process.platform==="win32",wn=c(({config:e,path:t},r)=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or readTsconfig to resolve it.");if(!h.isAbsolute(t))throw new Error("The tsconfig path must be absolute");et&&(t=A(t));const n=h.dirname(t),{files:s,include:o,exclude:a,compilerOptions:i}=e,m=c(E=>h.isAbsolute(E)?E:Ye(n,E),"resolvePattern"),u=s?new Set(s.map(m)):void 0,k=kn(i),f=r?"":"i",v=(a||yn(i)).map(E=>{const d=m(E),g=Ze(d).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${ie}*`).replaceAll(String.raw`\?`,ie);return new RegExp(`^${g}($|/)`,f)}),b=s||o?o:[qe],y=b?b.map(E=>{let d=m(E);xn.test(d)&&(d=Ye(d,qe));const g=Ze(d).replaceAll(String.raw`/\*\*`,`(/${we}${ve}${ie}*)*?`).replaceAll(/(\/)?\\\*/g,(T,p)=>{const C=String.raw`(${ve}|(\.(?!min\.js$))?)*`;return p?`/${we}${ve}${C}`:C}).replaceAll(/(\/)?\\\?/g,(T,p)=>{const C=ie;return p?`/${we}${C}`:C});return new RegExp(`^${g}$`,f)}):void 0;return{filesSet:u,extensions:k,excludePatterns:v,includePatterns:y}},"compilePatterns"),tt=new WeakMap,Ee=c((e,t)=>{if(!h.isAbsolute(t))return!1;et&&(t=A(t));let r=tt.get(e);r||(r=wn(e,gn()),tt.set(e,r));const{filesSet:n,extensions:s,excludePatterns:o,includePatterns:a}=r;return n?.has(t)?!0:!s.some(i=>t.endsWith(i))||o.some(i=>i.test(t))?!1:!!(a&&a.some(i=>i.test(t)))},"isFileIncluded"),nt=c((e,t,r,n)=>{const s=h.resolve(e);let o=A(e);for(;;){const a=K(o,t,r);if(!a)return;const i=h.resolve(a),m=ye(i,{cache:r,typescriptVersion:n});if(Ee(m,s))return m;const u=h.dirname(a),k=h.dirname(u);if(k===u)return;o=k}},"findConfigApplicable"),vn=c((e=process.cwd(),t={})=>{const{configName:r="tsconfig.json",cache:n=new Map,includes:s=!1}=t;if(!s){const o=h.resolve(e);return h.basename(o)===r&&D(n,o)?.isFile()?A(o):K(A(e),r,n)}return nt(e,r,n,!1)?.path},"findTsconfig"),En=c((e=process.cwd(),t={})=>{const{configName:r="tsconfig.json",cache:n=new Map,includes:s=!1,typescriptVersion:o="auto"}=t;if(!s){const a=vn(e,{configName:r,cache:n});return a?ye(a,{cache:n,typescriptVersion:o}):void 0}return nt(e,r,n,o)},"getTsconfig"),Cn=/\*/g,rt=c((e,t)=>{const r=e.match(Cn);if(r&&r.length>1)throw new Error(t)},"assertStarCount"),jn=c(e=>{if(e.includes("*")){const[t,r]=e.split("*");return{prefix:t,suffix:r}}return e},"parsePattern"),Tn=c(({prefix:e,suffix:t},r)=>r.startsWith(e)&&r.endsWith(t),"isPatternMatch"),Sn=c((e,t,r)=>Object.entries(e).map(([n,s])=>(rt(n,`Pattern '${n}' can have at most one '*' character.`),{pattern:jn(n),substitutions:s.map(o=>{if(rt(o,`Substitution '${o}' in pattern '${n}' can have at most one '*' character.`),!t&&!ge.test(o)&&!h.isAbsolute(o))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return h.resolve(r,o)})})),"parsePaths"),On=c(e=>{const{compilerOptions:t}=e.config;if(!t)return null;const{baseUrl:r,paths:n}=t;if(!r&&!n)return null;const s=he in t&&t[he],o=h.resolve(h.dirname(e.path),r||s||"."),a=n?Sn(n,r,o):[],i=new Map,m=[];for(const u of a)typeof u.pattern=="string"?i.set(u.pattern,u.substitutions):m.push(u);return{exactEntries:i,patternEntries:m,resolvedBaseUrl:o,baseUrl:r}},"compilePaths"),st=new WeakMap,ot=c((e,t)=>{let r=st.get(e);if(r===void 0&&(r=On(e),st.set(e,r)),!r)return[];if(ge.test(t))return[];const{exactEntries:n,patternEntries:s,resolvedBaseUrl:o,baseUrl:a}=r,i=n.get(t);if(i)return i.map(A);let m,u=-1;for(const f of s)Tn(f.pattern,t)&&f.pattern.prefix.length>u&&(u=f.pattern.prefix.length,m=f);if(!m)return a?[A(h.join(o,t))]:[];const k=t.slice(m.pattern.prefix.length,t.length-m.pattern.suffix.length);return m.substitutions.map(f=>A(f.replace("*",k)))},"resolvePathAlias"),at=l(e=>{if(e)return ye(e);try{return En()??void 0}catch{}},"loadTsconfig"),An=`
|
|
8
8
|
//# sourceMappingURL=data:application/json;base64,`,it=l(()=>process.sourceMapsEnabled??!0,"shouldApplySourceMap"),Ce=l(({code:e,map:t})=>e+An+Buffer.from(JSON.stringify(t),"utf8").toString("base64"),"inlineSourceMap"),z=Symbol.for("tsx:global-cjs-loader-count"),H=globalThis,$n=l(()=>(H[z]??0)>0,"isGlobalCjsLoaderActive"),Pn=l(()=>(H[z]=(H[z]??0)+1,()=>{H[z]=Math.max((H[z]??1)-1,0)}),"activateGlobalCjsLoader"),je=l(e=>e[0]==="."&&(e[1]==="/"||e[1]==="."||e[2]==="/"),"isRelativePath"),V=l(e=>je(e)||h.isAbsolute(e),"isFilePath"),X="file://",Dn=[".ts",".tsx",".jsx",".mts",".cts"],ct=/\.([cm]?ts|[tj]sx)(?:$|[?#])/,_n=/\.(?:ts|tsx|jsx)(?:$|[?#])/,Ln=/[/\\].+\.(?:cts|cjs)(?:$|[?#])/,Un=/\.json(?:$|[?#])/,ce=/\/(?:$|[?#])/,Fn=/^(?:@[^/]+\/)?[^/\\]+$/,lt=`${h.sep}node_modules${h.sep}`,Te=l(e=>e?.split(h.sep).includes("node_modules")??!1,"isDependencyPath"),le=Number(process.env.TSX_DEBUG);le&&(De.enabled=!0,De.supportLevel=3);const pt=l(e=>(t,...r)=>{if(!le||t>le)return;const n=`${Lt(` tsx P${process.pid} `)} ${e}`,s=r.map(o=>typeof o=="string"?o:$t(o,{colors:!0})).join(" ");vt(1,`${n} ${s}
|
|
9
|
-
`)},"createLog"),G=pt(Pt(Dt(" CJS "))),Rn=pt(_t(" ESM ")),F=new Map,In=l(async e=>{if(F.has(e))return F.get(e);if(!await R.promises.access(e).then(()=>!0,()=>!1)){F.set(e,void 0);return}const r=await R.promises.readFile(e,"utf8");try{const n=JSON.parse(r);return F.set(e,n),n}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJson"),Nn=l(e=>{if(F.has(e))return F.get(e);if(!R.existsSync(e)){F.set(e,void 0);return}const t=R.readFileSync(e,"utf8");try{const r=JSON.parse(t);return F.set(e,r),r}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJsonSync"),Wn=l(async e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=ee(t),n=await In(r);if(n)return n;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}},"findPackageJson"),ut=l(e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=ee(t),n=Nn(r);if(n)return n;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}},"findPackageJsonSync"),Bn=l(async e=>(await Wn(e))?.type??"commonjs","getPackageType"),Jn=l(e=>ut(e)?.type??"commonjs","getPackageTypeSync"),Mn=l(e=>ut(e)?.type,"getNearestPackageTypeSync"),ft=[".js",".json"],dt=[".ts",".tsx",".jsx"],Vn=new Set([".json",".node"]),Gn=[...dt,...ft],Qn=[...ft,...dt],Y=Object.create(null);Y[".js"]=[".ts",".tsx",".js",".jsx"],Y[".jsx"]=[".tsx",".ts",".jsx",".js"],Y[".cjs"]=[".cts"],Y[".mjs"]=[".mts"];const Kn=new Set([".ts",".tsx",".mts",".cts"]),mt=l((e,t=!1)=>{const r=e.indexOf("?"),n=r===-1?e:e.slice(0,r),s=r===-1?"":e.slice(r);if(!t&&!V(n)&&!n.startsWith(X))return;const o=h.extname(n);if(Kn.has(o))return;const a=Y[o];if(a){const m=n.slice(0,-o.length);return a.map(u=>m+u+s)}return Vn.has(o)?void 0:(!(e.startsWith(X)||V(n))||n.includes(lt)||n.includes("/node_modules/")?Qn:Gn).map(m=>n+m+s)},"getExtensionResolution"),Se=l(e=>Array.from(e).length>0?`?${e.toString()}`:"","urlSearchParamsStringify"),zn=[".cts",".mts",".ts",".tsx",".jsx"],Hn=[".js",".cjs",".mjs"],ht=[".ts",".tsx",".jsx"],gt="module.exports",Xn=l(e=>{const t=h.extname(e);return t===".mjs"||t===".mts"||(t===".js"||t===".ts")&&Mn(wt(e).toString())!=="commonjs"},"isRequireEsmCandidate"),Oe=l((e,t,r,n)=>{const s=Object.getOwnPropertyDescriptor(e,t);s?.set?e[t]=r:(!s||s.configurable)&&Object.defineProperty(e,t,{value:r,enumerable:s?.enumerable||n?.enumerable,writable:n?.writable??(s?s.writable:!0),configurable:n?.configurable??(s?s.configurable:!0)})},"safeSet"),Yn=l((e,t,r,n)=>{const s=t[".js"],o=Ut(Ft),a=l((i,m)=>{if(e.enabled===!1)return s(i,m);const[u,k]=m.split("?");if((new URLSearchParams(k).get("namespace")??void 0)!==n)return s(i,m);G(2,"load",{filePath:m}),i.id
|
|
9
|
+
`)},"createLog"),G=pt(Pt(Dt(" CJS "))),Rn=pt(_t(" ESM ")),F=new Map,In=l(async e=>{if(F.has(e))return F.get(e);if(!await R.promises.access(e).then(()=>!0,()=>!1)){F.set(e,void 0);return}const r=await R.promises.readFile(e,"utf8");try{const n=JSON.parse(r);return F.set(e,n),n}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJson"),Nn=l(e=>{if(F.has(e))return F.get(e);if(!R.existsSync(e)){F.set(e,void 0);return}const t=R.readFileSync(e,"utf8");try{const r=JSON.parse(t);return F.set(e,r),r}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJsonSync"),Wn=l(async e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=ee(t),n=await In(r);if(n)return n;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}},"findPackageJson"),ut=l(e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=ee(t),n=Nn(r);if(n)return n;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}},"findPackageJsonSync"),Bn=l(async e=>(await Wn(e))?.type??"commonjs","getPackageType"),Jn=l(e=>ut(e)?.type??"commonjs","getPackageTypeSync"),Mn=l(e=>ut(e)?.type,"getNearestPackageTypeSync"),ft=[".js",".json"],dt=[".ts",".tsx",".jsx"],Vn=new Set([".json",".node"]),Gn=[...dt,...ft],Qn=[...ft,...dt],Y=Object.create(null);Y[".js"]=[".ts",".tsx",".js",".jsx"],Y[".jsx"]=[".tsx",".ts",".jsx",".js"],Y[".cjs"]=[".cts"],Y[".mjs"]=[".mts"];const Kn=new Set([".ts",".tsx",".mts",".cts"]),mt=l((e,t=!1)=>{const r=e.indexOf("?"),n=r===-1?e:e.slice(0,r),s=r===-1?"":e.slice(r);if(!t&&!V(n)&&!n.startsWith(X))return;const o=h.extname(n);if(Kn.has(o))return;const a=Y[o];if(a){const m=n.slice(0,-o.length);return a.map(u=>m+u+s)}return Vn.has(o)?void 0:(!(e.startsWith(X)||V(n))||n.includes(lt)||n.includes("/node_modules/")?Qn:Gn).map(m=>n+m+s)},"getExtensionResolution"),Se=l(e=>Array.from(e).length>0?`?${e.toString()}`:"","urlSearchParamsStringify"),zn=[".cts",".mts",".ts",".tsx",".jsx"],Hn=[".js",".cjs",".mjs"],ht=[".ts",".tsx",".jsx"],gt="module.exports",Xn=l(e=>{const t=h.extname(e);return t===".mjs"||t===".mts"||(t===".js"||t===".ts")&&Mn(wt(e).toString())!=="commonjs"},"isRequireEsmCandidate"),Oe=l((e,t,r,n)=>{const s=Object.getOwnPropertyDescriptor(e,t);s?.set?e[t]=r:(!s||s.configurable)&&Object.defineProperty(e,t,{value:r,enumerable:s?.enumerable||n?.enumerable,writable:n?.writable??(s?s.writable:!0),configurable:n?.configurable??(s?s.configurable:!0)})},"safeSet"),Yn=l((e,t,r,n)=>{const s=t[".js"],o=Ut(Ft),a=l((i,m)=>{if(e.enabled===!1)return s(i,m);const[u,k]=m.split("?");if((new URLSearchParams(k).get("namespace")??void 0)!==n)return s(i,m);G(2,"load",{filePath:m}),i.id?.startsWith("data:text/javascript,")&&(i.path=h.dirname(u)),Pe?.send&&Pe.send({type:"dependency",path:u});const v=zn.some(p=>u.endsWith(p)),b=Hn.some(p=>u.endsWith(p));if(!v&&!b)return s(i,u);let y=R.readFileSync(u,"utf8");const E=b&&!u.endsWith(".cjs")&&!u.endsWith(".cts")&&St(y),d=(v||E)&&r&&Ee(r,u)?r.config:void 0;if(u.endsWith(".cjs")){const p=Ot(m,y);p&&(y=it()?Ce(p):p.code)}else if(v||E){const p=At(y,m,{tsconfigRaw:d});y=it()?Ce(p):p.code}G(1,"loaded",{filePath:u}),i._compile(y,u),k&&$._cache[u]===i&&($._cache[m]=i,delete $._cache[u]);const{exports:g}=i;(o&&g&&(typeof g=="object"||typeof g=="function")?Object.getOwnPropertyDescriptor(g,gt):void 0)?.get&&Xn(u)&&(i.exports=g[gt])},"transformer");Oe(t,".js",a);for(const i of ht)Oe(t,i,a,{enumerable:!n,writable:!0,configurable:!0});return Oe(t,".mjs",a,{writable:!0,configurable:!0}),()=>{t[".js"]===a&&(t[".js"]=s);for(const i of[...ht,".mjs"])t[i]===a&&delete t[i]}},"createExtensions"),Zn=l(e=>t=>{if((t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),ce.test(t)){let r=h.join(t,"index");t.startsWith("./")&&(r=`./${r}`);try{return e(r)}catch{}}try{return e(t)}catch(r){const n=r;if(n.code==="MODULE_NOT_FOUND")try{return e(`${t}${h.sep}index`)}catch{}throw n}},"createImplicitResolver"),qn=l((e,t)=>{let r;return h.isAbsolute(e)?r=e:je(e)&&t&&(r=h.resolve(t,e)),r!==void 0&&!Et(r)},"candidateDoesntExist"),pe=l((e,t,r,n)=>{if(G(3,"resolveTsFilename",{request:t,isDirectory:ce.test(t)}),ce.test(t))return;const s=mt(t,n);if(s){for(const o of s)if(!qn(o,r))try{return e(o)}catch(a){const{code:i}=a;if(i!=="MODULE_NOT_FOUND"&&i!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw a}}},"resolveTsFilename"),er=l((e,t,r,n)=>s=>{if(G(3,"resolveTsFilename",{request:s,resolveTsExtensions:r,isFilePath:V(s)}),r&&V(s)){const o=pe(e,s,t,n);if(o)return o}try{return e(s)}catch(o){const a=o;if(r&&a.code==="MODULE_NOT_FOUND"){if(a.path){const m=a.message.match(/^Cannot find module '([^']+)'$/);if(m){const k=m[1],f=pe(e,k,t,n);if(f)return f}const u=a.message.match(/^Cannot find module '([^']+)'. Please verify that the package.json has a valid "main" entry$/);if(u){const k=u[1],f=pe(e,k,t,n);if(f)return f}}const i=pe(e,s,t,n);if(i)return i}throw a}},"createTsExtensionResolver"),kt="at cjsPreparseModuleExports (node:internal",tr=l(e=>{const t=e.stack.split(`
|
|
10
10
|
`).slice(1);return t[1].includes(kt)||t[2].includes(kt)},"isFromCjsLexer"),nr=l((e,t)=>{const r=e.split("?"),n=new URLSearchParams(r[1]);if(t?.filename){const s=_e(t.filename);let o;if(s){const m=s.split("?"),u=m[0];o=m[1];const f=new URLSearchParams(o).get("namespace");t.filename=u,t.path=h.dirname(u),t.paths=$._nodeModulePaths(t.path),f||($._cache[u]=t)}o||(o=t.filename.split("?")[1]);const i=new URLSearchParams(o).get("namespace");i&&n.append("namespace",i)}return[r[0],n,(s,o)=>(h.isAbsolute(s)&&!s.endsWith(".json")&&!s.endsWith(".node")&&!(o===0&&tr(new Error))&&(s+=Se(n)),s)]},"preserveQuery"),rr=l((e,t,r,n)=>{if(e.startsWith(X)&&(e=ee(e)),n&&!V(e)&&!Te(t?.filename)){const s=ot(n,e);for(const o of s)try{return r(o)}catch{}}return r(e)},"resolveTsPaths"),sr=l((e,t,r,n)=>(s,o,...a)=>{if(e.enabled===!1)return t(s,o,...a);s=Le(s);const[i,m,u]=nr(s,o);if((m.get("namespace")??void 0)!==n)return t(s,o,...a);G(2,"resolve",{request:s,parent:o?.filename??o,restOfArgs:a});let k=l(E=>t(E,o,...a),"nextResolveSimple");const f=Te(o?.filename),v=!!(n||o?.filename&&ct.test(o.filename)),b=!!(v||r?.config.compilerOptions?.allowJs&&!f);k=er(k,o?.path??void 0,b,v),k=Zn(k);const y=u(rr(i,o,k,r),a.length);return G(1,"resolved",{request:s,parent:o?.filename??o,resolved:y}),y},"createResolveFilename"),yt=l((e,t)=>{if(!t)throw new Error("The current file path (__filename or import.meta.url) must be provided in the second argument of tsx.require()");return e.startsWith(".")?((typeof t=="string"&&t.startsWith(X)||t instanceof URL)&&(t=ee(t)),h.resolve(h.dirname(t),e)):e},"resolveContext"),or=l(e=>{const{sourceMapsEnabled:t}=process,r={enabled:!0},n=at(process.env.TSX_TSCONFIG_PATH);process.setSourceMapsEnabled(!0);const s=$._resolveFilename,o=sr(r,s,n,e?.namespace);$._resolveFilename=o;const a=Yn(r,$._extensions,n,e?.namespace),i=e?.namespace?void 0:Pn(),m=l(()=>{t===!1&&process.setSourceMapsEnabled(!1),r.enabled=!1,$._resolveFilename===o&&($._resolveFilename=s),a(),i?.()},"unregister");if(e?.namespace){const u=l((f,v)=>{const b=yt(f,v),[y,E]=b.split("?"),d=new URLSearchParams(E);return e.namespace&&!y.startsWith("node:")&&d.set("namespace",e.namespace),xt(y+Se(d))},"scopedRequire");m.require=u;const k=l((f,v,b)=>{const y=yt(f,v),[E,d]=y.split("?"),g=new URLSearchParams(d);return e.namespace&&!E.startsWith("node:")&&g.set("namespace",e.namespace),o(E+Se(g),module,!1,b)},"scopedResolve");m.resolve=k,m.unregister=m}return m},"register");export{Jn as a,Rn as b,Ln as c,le as d,_n as e,Ce as f,Bn as g,ct as h,Fn as i,$n as j,Ee as k,at as l,X as m,Un as n,V as o,lt as p,Te as q,or as r,ce as s,Dn as t,mt as u,je as v,ot as w,Le as x};
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
`+" ".repeat(t)),new Array(V).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(V).fill(0).map((e,t)=>`\r
|
|
7
7
|
`+" ".repeat(t));var re;(function(e){e.DEFAULT={allowTrailingComma:!1}})(re||(re={}));function Me(e,t=[],r=re.DEFAULT){let n=null,s=[];const o=[];function a(i){Array.isArray(s)?s.push(i):n!==null&&(s[n]=i)}return l(a,"l"),c(a,"onValue"),Je(e,{onObjectBegin:c(()=>{const i={};a(i),o.push(s),s=i,n=null},"onObjectBegin"),onObjectProperty:c(i=>{n=i},"onObjectProperty"),onObjectEnd:c(()=>{s=o.pop()},"onObjectEnd"),onArrayBegin:c(()=>{const i=[];a(i),o.push(s),s=i,n=null},"onArrayBegin"),onArrayEnd:c(()=>{s=o.pop()},"onArrayEnd"),onLiteralValue:a,onError:c((i,h,p)=>{t.push({error:i,offset:h,length:p})},"onError")},r),s[0]}l(Me,"Re"),c(Me,"parse$1");function Je(e,t,r=re.DEFAULT){const n=Be(e,!1),s=[];let o=0;function a(j){return j?()=>o===0&&j(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}l(a,"l"),c(a,"toNoArgVisit");function i(j){return j?O=>o===0&&j(O,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}l(i,"g"),c(i,"toOneArgVisit");function h(j){return j?O=>o===0&&j(O,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>s.slice()):()=>!0}l(h,"m"),c(h,"toOneArgVisitWithPath");function p(j){return j?()=>{o>0?o++:j(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>s.slice())===!1&&(o=1)}:()=>!0}l(p,"k"),c(p,"toBeginVisit");function y(j){return j?()=>{o>0&&o--,o===0&&j(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter())}:()=>!0}l(y,"w"),c(y,"toEndVisit");const f=p(t.onObjectBegin),v=h(t.onObjectProperty),b=y(t.onObjectEnd),k=p(t.onArrayBegin),E=y(t.onArrayEnd),d=h(t.onLiteralValue),g=i(t.onSeparator),T=a(t.onComment),u=i(t.onError),C=r&&r.disallowComments,S=r&&r.allowTrailingComma;function w(){for(;;){const j=n.scan();switch(n.getTokenError()){case 4:x(14);break;case 5:x(15);break;case 3:x(13);break;case 1:C||x(11);break;case 2:x(12);break;case 6:x(16);break}switch(j){case 12:case 13:C?x(10):T();break;case 16:x(1);break;case 15:case 14:break;default:return j}}}l(w,"v"),c(w,"scanNext");function x(j,O=[],De=[]){if(u(j),O.length+De.length>0){let te=n.getToken();for(;te!==17;){if(O.indexOf(te)!==-1){w();break}else if(De.indexOf(te)!==-1)break;te=w()}}}l(x,"d"),c(x,"handleError");function L(j){const O=n.getTokenValue();return j?d(O):(v(O),s.push(O)),w(),!0}l(L,"L"),c(L,"parseString");function _(){switch(n.getToken()){case 11:const j=n.getTokenValue();let O=Number(j);isNaN(O)&&(x(2),O=0),d(O);break;case 7:d(null);break;case 8:d(!0);break;case 9:d(!1);break;default:return!1}return w(),!0}l(_,"B"),c(_,"parseLiteral");function $(){return n.getToken()!==10?(x(3,[],[2,5]),!1):(L(!1),n.getToken()===6?(g(":"),w(),ee()||x(4,[],[2,5])):x(5,[],[2,5]),s.pop(),!0)}l($,"$"),c($,"parseProperty");function B(){f(),w();let j=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(j||x(4,[],[]),g(","),w(),n.getToken()===2&&S)break}else j&&x(6,[],[]);$()||x(4,[],[2,5]),j=!0}return b(),n.getToken()!==2?x(7,[2],[]):w(),!0}l(B,"N"),c(B,"parseObject");function $e(){k(),w();let j=!0,O=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(O||x(4,[],[]),g(","),w(),n.getToken()===4&&S)break}else O&&x(6,[],[]);j?(s.push(0),j=!1):s[s.length-1]++,ee()||x(4,[],[4,5]),O=!0}return E(),j||s.pop(),n.getToken()!==4?x(8,[4],[]):w(),!0}l($e,"$e"),c($e,"parseArray");function ee(){switch(n.getToken()){case 3:return $e();case 1:return B();case 10:return L(!0);default:return _()}}return l(ee,"H"),c(ee,"parseValue"),w(),n.getToken()===17?r.allowEmptyContent?!0:(x(4,[],[]),!1):ee()?(n.getToken()!==17&&x(9,[],[]),!0):(x(4,[],[]),!1)}l(Je,"Pe"),c(Je,"visit");var Ve;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Ve||(Ve={}));var Ge;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(Ge||(Ge={}));const It=Me;var Qe;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Qe||(Qe={}));const me=c((e,t)=>It(Rt(t,e)),"readJsonc"),Ke=c(()=>{const{findPnpApi:e}=A;return e&&e(process.cwd())},"getPnpApi"),Nt="detectTypeScriptVersion:",Bt=c((e,t)=>{const r=`${Nt}${e}`,n=t?.get(r);if(n!==void 0)return n??void 0;let s;const o=Ke();if(o)try{s=o.resolveRequest("typescript/package.json",e)??void 0}catch{}s??=H(m.resolve(e),m.join("node_modules","typescript","package.json"),t);let a;if(s)try{const i=me(s,t);typeof i?.version=="string"&&(a=i.version)}catch{}return t?.set(r,a??null),a},"detectTypeScriptVersion"),N="package.json",se="tsconfig.json",Wt=c((e,t,r)=>{const n=A.createRequire(m.join(r,"tsconfig.json"));if(e!==t)try{return n.resolve(e)}catch{}try{return n.resolve(t)}catch{}try{return n.resolve(`${t}/${N}`)}catch{}},"resolvePackageEntryWithNode"),ge=c((e,t,r,n)=>{const s=`resolveFromPackageJsonPath:${e}:${t}:${r}`;if(n?.has(s))return n.get(s)||!1;const o=me(e,n);if(!o)return;let a=t||se;if(!r&&o.exports)try{const[i]=Ut(o.exports,t,["require","types"]);a=i}catch{return n?.set(s,""),!1}else!t&&o.tsconfig&&(a=o.tsconfig);return a=m.join(e,"..",a),n?.set(s,a),a},"resolveFromPackageJsonPath"),Mt=c((e,t,r)=>{const n=`resolveExtendsPath:${e}:${t}`;if(r?.has(n))return r.get(n)||void 0;const s=Jt(e,t,r);return r?.set(n,s||""),s},"resolveExtendsPath"),Jt=c((e,t,r)=>{let n=e;if(e===".."&&(n=m.join(n,se)),e[0]==="."&&(n=m.resolve(t,n)),m.isAbsolute(n)){const d=D(r,n);if(d){if(d.isFile())return n}else if(!n.endsWith(".json")){const g=`${n}.json`;if(D(r,g))return g}return}const[s,...o]=e.split("/"),a=s[0]==="@"?`${s}/${o.shift()}`:s,i=o.join("/"),h=Ke();if(h){const{resolveRequest:d}=h;try{if(a===e){const g=d(m.join(a,N),t);if(g){const T=ge(g,i,!1,r);if(T&&D(r,T))return T}}else{let g;try{g=d(e,t,{extensions:[".json"]})}catch{g=d(m.join(e,se),t)}if(g)return g}}catch{}}const p=Wt(e,a,t);let y;if(p){if(m.basename(p)!==N&&p.endsWith(".json"))return p;y=m.basename(p)===N?p:H(m.dirname(p),N,r)}const f=y&&m.dirname(y)||H(m.resolve(t),m.join("node_modules",a),r);if(!f||!D(r,f)?.isDirectory())return;const v=m.join(f,N);if(D(r,v)){const d=ge(v,i,!1,r);if(d===!1)return;if(d&&D(r,d)?.isFile())return d}const b=m.join(f,i),k=b.endsWith(".json");if(!k){const d=`${b}.json`;if(D(r,d))return d}const E=D(r,b);if(E){if(E.isDirectory()){const d=m.join(b,N);if(D(r,d)){const T=ge(d,"",!0,r);if(T&&D(r,T))return T}const g=m.join(b,se);if(D(r,g))return g}else if(k)return b}},"resolveExtendsPathUncached"),ye=Symbol("implicitBaseUrl"),F="${configDir}",ke=/^\.{1,2}(\/.*)?$/,oe=c(e=>{const t=P(e);return ke.test(t)?t:`./${t}`},"normalizeRelativePath"),Vt=c(e=>{const t={...e};if(t.strict){const r=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(const n of r)t[n]===void 0&&(t[n]=!0)}if(t.composite&&(t.declaration??=!0,t.incremental??=!0),t.target){let r=t.target.toLowerCase();r==="es2015"&&(r="es6"),t.target=r,r==="esnext"&&(t.module??="es6",t.useDefineForClassFields??=!0),(r==="es6"||r==="es2016"||r==="es2017"||r==="es2018"||r==="es2019"||r==="es2020"||r==="es2021"||r==="es2022"||r==="es2023"||r==="es2024"||r==="es2025")&&(t.module??="es6"),(r==="es2022"||r==="es2023"||r==="es2024"||r==="es2025")&&(t.useDefineForClassFields??=!0)}if(t.module){let r=t.module.toLowerCase();if(r==="es2015"&&(r="es6"),t.module=r,(r==="es6"||r==="es2020"||r==="es2022"||r==="esnext"||r==="none"||r==="system"||r==="umd"||r==="amd")&&(t.moduleResolution??="classic"),r==="system"&&(t.allowSyntheticDefaultImports??=!0),(r==="node16"||r==="node18"||r==="node20"||r==="nodenext"||r==="preserve")&&(t.esModuleInterop??=!0,t.allowSyntheticDefaultImports??=!0),(r==="node16"||r==="node18"||r==="node20"||r==="nodenext")&&(t.moduleDetection??="force"),(r==="node16"||r==="node18")&&(t.target??="es2022",t.moduleResolution??="node16"),r==="node20"&&(t.target??="es2023",t.moduleResolution??="node16",t.resolveJsonModule??=!0),r==="nodenext"&&(t.target??="esnext",t.moduleResolution??="nodenext",t.resolveJsonModule??=!0),r==="node16"||r==="node18"||r==="node20"||r==="nodenext"){const n=t.target;(n==="es3"||n==="es2022"||n==="es2023"||n==="es2024"||n==="esnext")&&(t.useDefineForClassFields??=!0)}r==="preserve"&&(t.moduleResolution??="bundler")}if(t.moduleResolution){let r=t.moduleResolution.toLowerCase();r==="node"&&(r="node10"),t.moduleResolution=r,(r==="node16"||r==="nodenext"||r==="bundler")&&(t.resolvePackageJsonExports??=!0,t.resolvePackageJsonImports??=!0),r==="bundler"&&(t.allowSyntheticDefaultImports??=!0,t.resolveJsonModule??=!0)}for(const r of["jsx","moduleDetection","importsNotUsedAsValues","newLine"])t[r]&&(t[r]=t[r].toLowerCase());return t.esModuleInterop&&(t.allowSyntheticDefaultImports??=!0),t.verbatimModuleSyntax&&(t.isolatedModules??=!0,t.preserveConstEnums??=!0),t.isolatedModules&&(t.preserveConstEnums??=!0),t.rewriteRelativeImportExtensions&&(t.allowImportingTsExtensions??=!0),t.lib&&(t.lib=t.lib.map(r=>r.toLowerCase())),t.checkJs&&(t.allowJs??=!0),t},"normalizeCompilerOptions"),Gt=c((e,t)=>{!t.has("target")&&!Qt(e.module)&&(e.target="es3")},"applyV4Defaults"),Qt=c(e=>e==="node16"||e==="node18"||e==="node20"||e==="nodenext","moduleDictatesTarget$1"),Kt=c((e,t)=>{!t.has("target")&&!zt(e.module)&&(e.target="es5")},"applyV5Defaults"),zt=c(e=>e==="node16"||e==="node18"||e==="node20"||e==="nodenext","moduleDictatesTarget"),Ht=c((e,t)=>{t.has("strict")||(e.strict=!0),t.has("target")||(e.target="es2025"),t.has("module")||(e.module="es2022"),t.has("moduleResolution")||(e.moduleResolution="bundler"),t.has("rootDir")||(e.rootDir="."),t.has("types")||(e.types=[]),t.has("noUncheckedSideEffectImports")||(e.noUncheckedSideEffectImports=!0),t.has("libReplacement")||(e.libReplacement=!1)},"applyV6Defaults"),Xt=[[4,Gt],[5,Kt],[6,Ht]],qt=c(e=>{const t=/^v?(\d+)/.exec(e);return t?Number(t[1]):void 0},"parseMajor"),Yt=c((e,t)=>{const r=qt(t);if(r===void 0)return;const n=new Set(Object.keys(e));for(const[s,o]of Xt)s<=r&&o(e,n)},"applyVersionDefaults"),be=c((e,t)=>oe(m.relative(e,t)),"pathRelative"),ze=["files","include","exclude"],He=c((e,t,r)=>{const n=m.join(t,r),s=m.relative(e,n);return P(s)||"./"},"resolveAndRelativize"),Zt=c((e,t,r)=>{const n=m.relative(e,t);if(!n)return r;const s=r.startsWith("./")?r.slice(2):r;return P(`${n}/${s}`)},"prefixPattern"),Xe=["outDir","declarationDir"],ae=c((e,t)=>{if(e.startsWith(F))return P(m.join(t,e.slice(F.length)))},"interpolateConfigDir"),en=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],tn=c((e,t={})=>{if(e.length===0)throw new Error("Chain must not be empty");const{typescriptVersion:r}=t,n=new Map(e.map(f=>[f.path,f])),s=new Map,o=c(f=>{const v=s.get(f);if(v)return v;const b=n.get(f);if(!b)throw new Error(`Config not found in chain: ${f}`);const k=b.config,E=m.dirname(f);let d={...k,...k.compilerOptions&&{compilerOptions:{...k.compilerOptions}},...k.watchOptions&&{watchOptions:{...k.watchOptions}}};if(delete d.extends,d.compilerOptions?.paths&&!d.compilerOptions.baseUrl&&(d.compilerOptions[ye]=E),k.extends){const g=Array.isArray(k.extends)?k.extends:[k.extends];for(const T of g.toReversed()){const u=o(T),C=m.dirname(T),{references:S,...w}=u;if(w.compilerOptions){const L={...w.compilerOptions};for(const _ of["baseUrl","outDir","declarationDir","rootDir"]){const $=L[_];$&&!$.startsWith(F)&&(L[_]=He(E,C,$))}for(const _ of["rootDirs","typeRoots"]){const $=L[_];$&&(L[_]=$.map(B=>B.startsWith(F)?B:He(E,C,B)))}w.compilerOptions=L}for(const L of ze){const _=w[L];_&&(w[L]=_.map($=>$.startsWith(F)?$:Zt(E,C,$)))}const x={...w,...d,compilerOptions:{...w.compilerOptions,...d.compilerOptions}};w.watchOptions&&(x.watchOptions={...w.watchOptions,...d.watchOptions}),d=x}}if(d.compilerOptions){const{compilerOptions:g}=d,T=["baseUrl","rootDir"];for(const u of T){const C=g[u];if(C&&!C.startsWith(F)){const S=m.resolve(E,C),w=be(E,S);g[u]=w}}for(const u of Xe){let C=g[u];C&&(Array.isArray(d.exclude)||(d.exclude=Xe.map(S=>g[S]).filter(Boolean)),C.startsWith(F)||(C=oe(C)),g[u]=C)}}else d.compilerOptions={};if(d.include&&(d.include=d.include.map(P)),d.files&&(d.files=d.files.map(g=>g.startsWith(F)?g:oe(g))),d.watchOptions){const{watchOptions:g}=d;for(const T of["excludeDirectories","excludeFiles"])g[T]&&(g[T]=g[T].map(u=>P(m.resolve(E,u))));for(const T of["watchFile","watchDirectory","fallbackPolling"])if(g[T]){const u=g;u[T]=g[T].toLowerCase()}}return s.set(f,d),d},"resolveEntry"),a=e[0],i=o(a.path),h=m.dirname(a.path),p={...i,compilerOptions:i.compilerOptions?{...i.compilerOptions}:{}},{compilerOptions:y}=p;if(y){for(const f of en){const v=y[f];if(v){const b=ae(v,h);y[f]=b?be(h,b):v}}for(const f of["rootDirs","typeRoots"]){const v=y[f];v&&(y[f]=v.map(b=>{const k=ae(b,h);return k?be(h,k):oe(b)}))}if(y.paths){const f={};for(const[v,b]of Object.entries(y.paths))f[v]=b.map(k=>ae(k,h)??k);y.paths=f}r&&Yt(y,r),p.compilerOptions=Vt(y)}for(const f of ze){const v=p[f];v&&(p[f]=v.map(b=>ae(b,h)??b))}return{path:a.path,config:p,sources:e.map(f=>f.path)}},"resolveExtendsChain"),nn=c((e,t={})=>{const{cache:r=new Map}=t,n=m.resolve(e),s=[],o=new Set,a=c((i,h)=>{const p=P(i);if(o.has(p))return;o.add(p);let y;try{y=me(i,r)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${i}`)}if(typeof y!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${i}`);const f=m.dirname(i);if(y.extends){const v=Array.isArray(y.extends),b=(v?y.extends:[y.extends]).map(E=>{const d=Mt(E,f,r);if(!d)throw new Error(`File '${E}' not found.`);const g=P(d);if(h.has(g)||g===p)throw new Error(`Circularity detected while resolving configuration: ${g}`);return g});y.extends=v?b:b[0],s.push({path:p,config:y});const k=new Set(h);k.add(p);for(const E of[...b].reverse())a(E,k)}else s.push({path:p,config:y})},"collect");return a(n,new Set),s},"getExtendsChain"),xe=c((e,t={})=>{const{cache:r=new Map,typescriptVersion:n="auto"}=t,s=nn(e,{cache:r});let o;return n==="auto"?o=Bt(m.dirname(s[0].path),r):n!==!1&&(o=n),tn(s,{typescriptVersion:o})},"readTsconfig");var rn=Object.defineProperty,ie=c((e,t)=>rn(e,"name",{value:t,configurable:!0}),"s");const qe=ie(e=>{let t="";for(let r=0;r<e.length;r+=1){const n=e[r],s=n.toUpperCase();t+=n===s?n.toLowerCase():s}return t},"invertCase"),we=new Map,Ye=ie((e,t)=>{const r=jt.join(e,`.is-fs-case-sensitive-test-${process.pid}`);try{return t.writeFileSync(r,""),!t.existsSync(qe(r))}finally{try{t.unlinkSync(r)}catch{}}},"checkDirectoryCaseWithWrite"),sn=ie((e,t,r)=>{try{return Ye(e,r)}catch(n){if(t===void 0)return Ye(Ct.tmpdir(),r);throw n}},"checkDirectoryCaseWithFallback"),on=ie((e,t=Et,r=!0)=>{const n=e??process.cwd();if(r&&we.has(n))return we.get(n);let s;const o=qe(n);return o!==n&&t.existsSync(n)?s=!t.existsSync(o):s=sn(n,e,t),r&&we.set(n,s),s},"isFsCaseSensitive"),{join:Ze}=m.posix,ve={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},an=c(e=>{const t=[...ve.ts],r=[...ve.cts],n=[...ve.mts];return e?.allowJs&&(t.push(".js",".jsx"),r.push(".cjs"),n.push(".mjs")),[...t,...r,...n]},"getSupportedExtensions"),cn=c(e=>{const t=[];if(!e)return t;const{outDir:r,declarationDir:n}=e;return r&&t.push(r),n&&t.push(n),t},"getDefaultExcludeSpec"),et=c(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),ln=["node_modules","bower_components","jspm_packages"],Ee=`(?!(${ln.join("|")})(/|$))`,un=/(?:^|\/)[^.*?]+$/,tt="**/*",ce="[^/]",Ce="[^./]",nt=process.platform==="win32",pn=c(({config:e,path:t},r)=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or readTsconfig to resolve it.");if(!m.isAbsolute(t))throw new Error("The tsconfig path must be absolute");nt&&(t=P(t));const n=m.dirname(t),{files:s,include:o,exclude:a,compilerOptions:i}=e,h=c(E=>m.isAbsolute(E)?E:Ze(n,E),"resolvePattern"),p=s?new Set(s.map(h)):void 0,y=an(i),f=r?"":"i",v=(a||cn(i)).map(E=>{const d=h(E),g=et(d).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${ce}*`).replaceAll(String.raw`\?`,ce);return new RegExp(`^${g}($|/)`,f)}),b=s||o?o:[tt],k=b?b.map(E=>{let d=h(E);un.test(d)&&(d=Ze(d,tt));const g=et(d).replaceAll(String.raw`/\*\*`,`(/${Ee}${Ce}${ce}*)*?`).replaceAll(/(\/)?\\\*/g,(T,u)=>{const C=String.raw`(${Ce}|(\.(?!min\.js$))?)*`;return u?`/${Ee}${Ce}${C}`:C}).replaceAll(/(\/)?\\\?/g,(T,u)=>{const C=ce;return u?`/${Ee}${C}`:C});return new RegExp(`^${g}$`,f)}):void 0;return{filesSet:p,extensions:y,excludePatterns:v,includePatterns:k}},"compilePatterns"),rt=new WeakMap,je=c((e,t)=>{if(!m.isAbsolute(t))return!1;nt&&(t=P(t));let r=rt.get(e);r||(r=pn(e,on()),rt.set(e,r));const{filesSet:n,extensions:s,excludePatterns:o,includePatterns:a}=r;return n?.has(t)?!0:!s.some(i=>t.endsWith(i))||o.some(i=>i.test(t))?!1:!!(a&&a.some(i=>i.test(t)))},"isFileIncluded"),st=c((e,t,r,n)=>{const s=m.resolve(e);let o=P(e);for(;;){const a=H(o,t,r);if(!a)return;const i=m.resolve(a),h=xe(i,{cache:r,typescriptVersion:n});if(je(h,s))return h;const p=m.dirname(a),y=m.dirname(p);if(y===p)return;o=y}},"findConfigApplicable"),fn=c((e=process.cwd(),t={})=>{const{configName:r="tsconfig.json",cache:n=new Map,includes:s=!1}=t;if(!s){const o=m.resolve(e);return m.basename(o)===r&&D(n,o)?.isFile()?P(o):H(P(e),r,n)}return st(e,r,n,!1)?.path},"findTsconfig"),dn=c((e=process.cwd(),t={})=>{const{configName:r="tsconfig.json",cache:n=new Map,includes:s=!1,typescriptVersion:o="auto"}=t;if(!s){const a=fn(e,{configName:r,cache:n});return a?xe(a,{cache:n,typescriptVersion:o}):void 0}return st(e,r,n,o)},"getTsconfig"),hn=/\*/g,ot=c((e,t)=>{const r=e.match(hn);if(r&&r.length>1)throw new Error(t)},"assertStarCount"),mn=c(e=>{if(e.includes("*")){const[t,r]=e.split("*");return{prefix:t,suffix:r}}return e},"parsePattern"),gn=c(({prefix:e,suffix:t},r)=>r.startsWith(e)&&r.endsWith(t),"isPatternMatch"),yn=c((e,t,r)=>Object.entries(e).map(([n,s])=>(ot(n,`Pattern '${n}' can have at most one '*' character.`),{pattern:mn(n),substitutions:s.map(o=>{if(ot(o,`Substitution '${o}' in pattern '${n}' can have at most one '*' character.`),!t&&!ke.test(o)&&!m.isAbsolute(o))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return m.resolve(r,o)})})),"parsePaths"),kn=c(e=>{const{compilerOptions:t}=e.config;if(!t)return null;const{baseUrl:r,paths:n}=t;if(!r&&!n)return null;const s=ye in t&&t[ye],o=m.resolve(m.dirname(e.path),r||s||"."),a=n?yn(n,r,o):[],i=new Map,h=[];for(const p of a)typeof p.pattern=="string"?i.set(p.pattern,p.substitutions):h.push(p);return{exactEntries:i,patternEntries:h,resolvedBaseUrl:o,baseUrl:r}},"compilePaths"),at=new WeakMap,it=c((e,t)=>{let r=at.get(e);if(r===void 0&&(r=kn(e),at.set(e,r)),!r)return[];if(ke.test(t))return[];const{exactEntries:n,patternEntries:s,resolvedBaseUrl:o,baseUrl:a}=r,i=n.get(t);if(i)return i.map(P);let h,p=-1;for(const f of s)gn(f.pattern,t)&&f.pattern.prefix.length>p&&(p=f.pattern.prefix.length,h=f);if(!h)return a?[P(m.join(o,t))]:[];const y=t.slice(h.pattern.prefix.length,t.length-h.pattern.suffix.length);return h.substitutions.map(f=>P(f.replace("*",y)))},"resolvePathAlias"),ct=l(e=>{if(e)return xe(e);try{return dn()??void 0}catch{}},"loadTsconfig"),bn=`
|
|
8
8
|
//# sourceMappingURL=data:application/json;base64,`,lt=l(()=>process.sourceMapsEnabled??!0,"shouldApplySourceMap"),Te=l(({code:e,map:t})=>e+bn+Buffer.from(JSON.stringify(t),"utf8").toString("base64"),"inlineSourceMap"),X=Symbol.for("tsx:global-cjs-loader-count"),q=globalThis,xn=l(()=>(q[X]??0)>0,"isGlobalCjsLoaderActive"),wn=l(()=>(q[X]=(q[X]??0)+1,()=>{q[X]=Math.max((q[X]??1)-1,0)}),"activateGlobalCjsLoader"),Se=l(e=>e[0]==="."&&(e[1]==="/"||e[1]==="."||e[2]==="/"),"isRelativePath"),G=l(e=>Se(e)||m.isAbsolute(e),"isFilePath"),Y="file://",vn=[".ts",".tsx",".jsx",".mts",".cts"],ut=/\.([cm]?ts|[tj]sx)(?:$|[?#])/,En=/\.(?:ts|tsx|jsx)(?:$|[?#])/,Cn=/[/\\].+\.(?:cts|cjs)(?:$|[?#])/,jn=/\.json(?:$|[?#])/,le=/\/(?:$|[?#])/,Tn=/^(?:@[^/]+\/)?[^/\\]+$/,pt=`${m.sep}node_modules${m.sep}`,Oe=l(e=>e?.split(m.sep).includes("node_modules")??!1,"isDependencyPath"),ue=Number(process.env.TSX_DEBUG);ue&&(W.options.enabled=!0,W.options.supportLevel=3);const ft=l(e=>(t,...r)=>{if(!ue||t>ue)return;const n=`${W.bgGray(` tsx P${process.pid} `)} ${e}`,s=r.map(o=>typeof o=="string"?o:Tt.inspect(o,{colors:!0})).join(" ");U.writeSync(1,`${n} ${s}
|
|
9
|
-
`)},"createLog"),Q=ft(W.bgLightYellow(W.black(" CJS "))),Sn=ft(W.bgBlue(" ESM ")),R=new Map,On=l(async e=>{if(R.has(e))return R.get(e);if(!await U.promises.access(e).then(()=>!0,()=>!1)){R.set(e,void 0);return}const r=await U.promises.readFile(e,"utf8");try{const n=JSON.parse(r);return R.set(e,n),n}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJson"),Pn=l(e=>{if(R.has(e))return R.get(e);if(!U.existsSync(e)){R.set(e,void 0);return}const t=U.readFileSync(e,"utf8");try{const r=JSON.parse(t);return R.set(e,r),r}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJsonSync"),An=l(async e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=K.fileURLToPath(t),n=await On(r);if(n)return n;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}},"findPackageJson"),dt=l(e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=K.fileURLToPath(t),n=Pn(r);if(n)return n;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}},"findPackageJsonSync"),$n=l(async e=>(await An(e))?.type??"commonjs","getPackageType"),Dn=l(e=>dt(e)?.type??"commonjs","getPackageTypeSync"),Ln=l(e=>dt(e)?.type,"getNearestPackageTypeSync"),ht=[".js",".json"],mt=[".ts",".tsx",".jsx"],_n=new Set([".json",".node"]),Un=[...mt,...ht],Fn=[...ht,...mt],Z=Object.create(null);Z[".js"]=[".ts",".tsx",".js",".jsx"],Z[".jsx"]=[".tsx",".ts",".jsx",".js"],Z[".cjs"]=[".cts"],Z[".mjs"]=[".mts"];const Rn=new Set([".ts",".tsx",".mts",".cts"]),gt=l((e,t=!1)=>{const r=e.indexOf("?"),n=r===-1?e:e.slice(0,r),s=r===-1?"":e.slice(r);if(!t&&!G(n)&&!n.startsWith(Y))return;const o=m.extname(n);if(Rn.has(o))return;const a=Z[o];if(a){const h=n.slice(0,-o.length);return a.map(p=>h+p+s)}return _n.has(o)?void 0:(!(e.startsWith(Y)||G(n))||n.includes(pt)||n.includes("/node_modules/")?Fn:Un).map(h=>n+h+s)},"getExtensionResolution"),Pe=l(e=>Array.from(e).length>0?`?${e.toString()}`:"","urlSearchParamsStringify"),In=[".cts",".mts",".ts",".tsx",".jsx"],Nn=[".js",".cjs",".mjs"],yt=[".ts",".tsx",".jsx"],kt="module.exports",Bn=l(e=>{const t=m.extname(e);return t===".mjs"||t===".mts"||(t===".js"||t===".ts")&&Ln(K.pathToFileURL(e).toString())!=="commonjs"},"isRequireEsmCandidate"),Ae=l((e,t,r,n)=>{const s=Object.getOwnPropertyDescriptor(e,t);s?.set?e[t]=r:(!s||s.configurable)&&Object.defineProperty(e,t,{value:r,enumerable:s?.enumerable||n?.enumerable,writable:n?.writable??(s?s.writable:!0),configurable:n?.configurable??(s?s.configurable:!0)})},"safeSet"),Wn=l((e,t,r,n)=>{const s=t[".js"],o=_e.isFeatureSupported(_e.requireEsm),a=l((i,h)=>{if(e.enabled===!1)return s(i,h);const[p,y]=h.split("?");if((new URLSearchParams(y).get("namespace")??void 0)!==n)return s(i,h);Q(2,"load",{filePath:h}),i.id
|
|
9
|
+
`)},"createLog"),Q=ft(W.bgLightYellow(W.black(" CJS "))),Sn=ft(W.bgBlue(" ESM ")),R=new Map,On=l(async e=>{if(R.has(e))return R.get(e);if(!await U.promises.access(e).then(()=>!0,()=>!1)){R.set(e,void 0);return}const r=await U.promises.readFile(e,"utf8");try{const n=JSON.parse(r);return R.set(e,n),n}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJson"),Pn=l(e=>{if(R.has(e))return R.get(e);if(!U.existsSync(e)){R.set(e,void 0);return}const t=U.readFileSync(e,"utf8");try{const r=JSON.parse(t);return R.set(e,r),r}catch{throw new Error(`Error parsing: ${e}`)}},"readPackageJsonSync"),An=l(async e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=K.fileURLToPath(t),n=await On(r);if(n)return n;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}},"findPackageJson"),dt=l(e=>{let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=K.fileURLToPath(t),n=Pn(r);if(n)return n;const s=t;if(t=new URL("../package.json",t),t.pathname===s.pathname)break}},"findPackageJsonSync"),$n=l(async e=>(await An(e))?.type??"commonjs","getPackageType"),Dn=l(e=>dt(e)?.type??"commonjs","getPackageTypeSync"),Ln=l(e=>dt(e)?.type,"getNearestPackageTypeSync"),ht=[".js",".json"],mt=[".ts",".tsx",".jsx"],_n=new Set([".json",".node"]),Un=[...mt,...ht],Fn=[...ht,...mt],Z=Object.create(null);Z[".js"]=[".ts",".tsx",".js",".jsx"],Z[".jsx"]=[".tsx",".ts",".jsx",".js"],Z[".cjs"]=[".cts"],Z[".mjs"]=[".mts"];const Rn=new Set([".ts",".tsx",".mts",".cts"]),gt=l((e,t=!1)=>{const r=e.indexOf("?"),n=r===-1?e:e.slice(0,r),s=r===-1?"":e.slice(r);if(!t&&!G(n)&&!n.startsWith(Y))return;const o=m.extname(n);if(Rn.has(o))return;const a=Z[o];if(a){const h=n.slice(0,-o.length);return a.map(p=>h+p+s)}return _n.has(o)?void 0:(!(e.startsWith(Y)||G(n))||n.includes(pt)||n.includes("/node_modules/")?Fn:Un).map(h=>n+h+s)},"getExtensionResolution"),Pe=l(e=>Array.from(e).length>0?`?${e.toString()}`:"","urlSearchParamsStringify"),In=[".cts",".mts",".ts",".tsx",".jsx"],Nn=[".js",".cjs",".mjs"],yt=[".ts",".tsx",".jsx"],kt="module.exports",Bn=l(e=>{const t=m.extname(e);return t===".mjs"||t===".mts"||(t===".js"||t===".ts")&&Ln(K.pathToFileURL(e).toString())!=="commonjs"},"isRequireEsmCandidate"),Ae=l((e,t,r,n)=>{const s=Object.getOwnPropertyDescriptor(e,t);s?.set?e[t]=r:(!s||s.configurable)&&Object.defineProperty(e,t,{value:r,enumerable:s?.enumerable||n?.enumerable,writable:n?.writable??(s?s.writable:!0),configurable:n?.configurable??(s?s.configurable:!0)})},"safeSet"),Wn=l((e,t,r,n)=>{const s=t[".js"],o=_e.isFeatureSupported(_e.requireEsm),a=l((i,h)=>{if(e.enabled===!1)return s(i,h);const[p,y]=h.split("?");if((new URLSearchParams(y).get("namespace")??void 0)!==n)return s(i,h);Q(2,"load",{filePath:h}),i.id?.startsWith("data:text/javascript,")&&(i.path=m.dirname(p)),Le.parent?.send&&Le.parent.send({type:"dependency",path:p});const v=In.some(u=>p.endsWith(u)),b=Nn.some(u=>p.endsWith(u));if(!v&&!b)return s(i,p);let k=U.readFileSync(p,"utf8");const E=b&&!p.endsWith(".cjs")&&!p.endsWith(".cts")&&fe.isESM(k),d=(v||E)&&r&&je(r,p)?r.config:void 0;if(p.endsWith(".cjs")){const u=fe.transformDynamicImport(h,k);u&&(k=lt()?Te(u):u.code)}else if(v||E){const u=fe.transformSync(k,h,{tsconfigRaw:d});k=lt()?Te(u):u.code}Q(1,"loaded",{filePath:p}),i._compile(k,p),y&&A._cache[p]===i&&(A._cache[h]=i,delete A._cache[p]);const{exports:g}=i;(o&&g&&(typeof g=="object"||typeof g=="function")?Object.getOwnPropertyDescriptor(g,kt):void 0)?.get&&Bn(p)&&(i.exports=g[kt])},"transformer");Ae(t,".js",a);for(const i of yt)Ae(t,i,a,{enumerable:!n,writable:!0,configurable:!0});return Ae(t,".mjs",a,{writable:!0,configurable:!0}),()=>{t[".js"]===a&&(t[".js"]=s);for(const i of[...yt,".mjs"])t[i]===a&&delete t[i]}},"createExtensions"),Mn=l(e=>t=>{if((t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),le.test(t)){let r=m.join(t,"index");t.startsWith("./")&&(r=`./${r}`);try{return e(r)}catch{}}try{return e(t)}catch(r){const n=r;if(n.code==="MODULE_NOT_FOUND")try{return e(`${t}${m.sep}index`)}catch{}throw n}},"createImplicitResolver"),Jn=l((e,t)=>{let r;return m.isAbsolute(e)?r=e:Se(e)&&t&&(r=m.resolve(t,e)),r!==void 0&&!U.existsSync(r)},"candidateDoesntExist"),pe=l((e,t,r,n)=>{if(Q(3,"resolveTsFilename",{request:t,isDirectory:le.test(t)}),le.test(t))return;const s=gt(t,n);if(s){for(const o of s)if(!Jn(o,r))try{return e(o)}catch(a){const{code:i}=a;if(i!=="MODULE_NOT_FOUND"&&i!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw a}}},"resolveTsFilename"),Vn=l((e,t,r,n)=>s=>{if(Q(3,"resolveTsFilename",{request:s,resolveTsExtensions:r,isFilePath:G(s)}),r&&G(s)){const o=pe(e,s,t,n);if(o)return o}try{return e(s)}catch(o){const a=o;if(r&&a.code==="MODULE_NOT_FOUND"){if(a.path){const h=a.message.match(/^Cannot find module '([^']+)'$/);if(h){const y=h[1],f=pe(e,y,t,n);if(f)return f}const p=a.message.match(/^Cannot find module '([^']+)'. Please verify that the package.json has a valid "main" entry$/);if(p){const y=p[1],f=pe(e,y,t,n);if(f)return f}}const i=pe(e,s,t,n);if(i)return i}throw a}},"createTsExtensionResolver"),bt="at cjsPreparseModuleExports (node:internal",Gn=l(e=>{const t=e.stack.split(`
|
|
10
10
|
`).slice(1);return t[1].includes(bt)||t[2].includes(bt)},"isFromCjsLexer"),Qn=l((e,t)=>{const r=e.split("?"),n=new URLSearchParams(r[1]);if(t?.filename){const s=Ue(t.filename);let o;if(s){const h=s.split("?"),p=h[0];o=h[1];const f=new URLSearchParams(o).get("namespace");t.filename=p,t.path=m.dirname(p),t.paths=A._nodeModulePaths(t.path),f||(A._cache[p]=t)}o||(o=t.filename.split("?")[1]);const i=new URLSearchParams(o).get("namespace");i&&n.append("namespace",i)}return[r[0],n,(s,o)=>(m.isAbsolute(s)&&!s.endsWith(".json")&&!s.endsWith(".node")&&!(o===0&&Gn(new Error))&&(s+=Pe(n)),s)]},"preserveQuery"),Kn=l((e,t,r,n)=>{if(e.startsWith(Y)&&(e=K.fileURLToPath(e)),n&&!G(e)&&!Oe(t?.filename)){const s=it(n,e);for(const o of s)try{return r(o)}catch{}}return r(e)},"resolveTsPaths"),zn=l((e,t,r,n)=>(s,o,...a)=>{if(e.enabled===!1)return t(s,o,...a);s=Fe(s);const[i,h,p]=Qn(s,o);if((h.get("namespace")??void 0)!==n)return t(s,o,...a);Q(2,"resolve",{request:s,parent:o?.filename??o,restOfArgs:a});let y=l(E=>t(E,o,...a),"nextResolveSimple");const f=Oe(o?.filename),v=!!(n||o?.filename&&ut.test(o.filename)),b=!!(v||r?.config.compilerOptions?.allowJs&&!f);y=Vn(y,o?.path??void 0,b,v),y=Mn(y);const k=p(Kn(i,o,y,r),a.length);return Q(1,"resolved",{request:s,parent:o?.filename??o,resolved:k}),k},"createResolveFilename"),xt=l((e,t)=>{if(!t)throw new Error("The current file path (__filename or import.meta.url) must be provided in the second argument of tsx.require()");return e.startsWith(".")?((typeof t=="string"&&t.startsWith(Y)||t instanceof URL)&&(t=K.fileURLToPath(t)),m.resolve(m.dirname(t),e)):e},"resolveContext"),Hn=l(e=>{const{sourceMapsEnabled:t}=process,r={enabled:!0},n=ct(process.env.TSX_TSCONFIG_PATH);process.setSourceMapsEnabled(!0);const s=A._resolveFilename,o=zn(r,s,n,e?.namespace);A._resolveFilename=o;const a=Wn(r,A._extensions,n,e?.namespace),i=e?.namespace?void 0:wn(),h=l(()=>{t===!1&&process.setSourceMapsEnabled(!1),r.enabled=!1,A._resolveFilename===o&&(A._resolveFilename=s),a(),i?.()},"unregister");if(e?.namespace){const p=l((f,v)=>{const b=xt(f,v),[k,E]=b.split("?"),d=new URLSearchParams(E);return e.namespace&&!k.startsWith("node:")&&d.set("namespace",e.namespace),vt.require(k+Pe(d))},"scopedRequire");h.require=p;const y=l((f,v,b)=>{const k=xt(f,v),[E,d]=k.split("?"),g=new URLSearchParams(d);return e.namespace&&!E.startsWith("node:")&&g.set("namespace",e.namespace),o(E+Pe(g),module,!1,b)},"scopedResolve");h.resolve=y,h.unregister=h}return h},"register");exports.cjsExtensionPattern=Cn,exports.debugEnabled=ue,exports.fileUrlPrefix=Y,exports.getExtensionResolution=gt,exports.getPackageType=$n,exports.getPackageTypeSync=Dn,exports.implicitTsExtensionsPattern=En,exports.inlineSourceMap=Te,exports.interopCjsExports=Fe,exports.isBarePackageNamePattern=Tn,exports.isDependencyPath=Oe,exports.isDirectoryPattern=le,exports.isFilePath=G,exports.isGlobalCjsLoaderActive=xn,exports.isJsonPattern=jn,exports.isRelativePath=Se,exports.je=je,exports.loadTsconfig=ct,exports.logEsm=Sn,exports.nodeModulesPath=pt,exports.register=Hn,exports.tsExtensions=vn,exports.tsExtensionsPattern=ut,exports.wt=it;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var Ie=Object.defineProperty;var l=(e,r)=>Ie(e,"name",{value:r,configurable:!0});var je=require("node:crypto"),w=require("node:module"),We=require("node:worker_threads"),R=require("./node-features-CEjg7cMX.cjs"),o=require("./register-BxraCus2.cjs"),h=require("node:url"),te=require("node:fs"),be=require("node:fs/promises"),y=require("./index-LWEOpzQe.cjs"),re=require("./client-D3mGB526.cjs"),S=require("node:path"),F=typeof document<"u"?document.currentScript:null;const Me=l(()=>({active:!0,parsedTsconfig:void 0}),"createDefaultData"),se=l(e=>{const r={active:!0,namespace:e?.namespace,onImport:e?.onImport,parsedTsconfig:void 0,port:e?.port,tsconfig:e?.tsconfig};return e?.tsconfig!==!1&&(r.parsedTsconfig=o.loadTsconfig(e?.tsconfig??process.env.TSX_TSCONFIG_PATH)),r},"createData"),Oe=l(e=>async r=>{if(!r)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(e,se(r)),r.port&&r.port.on("message",t=>{t==="deactivate"&&(e.active=!1,r.port.postMessage({type:"deactivated"}))})},"createInitialize"),$e=l(e=>()=>(e.parsedTsconfig=o.loadTsconfig(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"createGlobalPreload"),Ce=l(e=>{const{pathname:r}=new URL(e),t=S.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||o.tsExtensions.includes(t))return o.getPackageType(e)},"getFormatFromFileUrl"),Je=l(e=>{const{pathname:r}=new URL(e),t=S.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||o.tsExtensions.includes(t))return o.getPackageTypeSync(e)},"getFormatFromFileUrlSync"),ne="tsx-namespace",E=`${ne}=`,I="tsx-commonjs-export-preparse",_e=`${I}=1`,j="tsx-commonjs-virtual-query",W=new Map,Ne=/^data:/i,T=l(e=>Ne.test(e),"isDataUrl"),H=l((e,r)=>e.slice(1).split("&").filter(t=>t&&r.every(s=>!t.startsWith(s))).join("&"),"getQueryWithoutParameters"),_=l((e,r)=>{const t=H(e,r);return t?`?${t}`:""},"getSearchWithoutParameters"),qe=l(e=>e.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),Ae=l(e=>{const r=qe(e);if(/^\s*export\s*\*/.test(r))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(r))return"namespace";const t=r.match(/\{([^}]*)\}/)?.[1];if(t)return t.split(",").some(s=>{const n=s.trim().split(/\s+as\s+/)[0];return!!(n&&n!=="default")})?"named":void 0},"getCommonJsImportBinding"),xe=l((e,r,t)=>{const s=W.get(e);if(!s)return!1;try{const[n]=y.parseEsm(s);return n.some(a=>{if(a.d!==-1||a.n!==r)return!1;const i=Ae(s.slice(a.ss,a.s));return i==="named"||t&&i==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),v=l(e=>{const r=e.indexOf("?"),t=e.indexOf("#");if(T(e)){if(t===-1)return;const s=e.slice(t+1),n=s.lastIndexOf("&"),a=s.slice(n+1);return a.startsWith(E)?a.slice(E.length):void 0}if(!(r===-1||t!==-1&&t<r))return new URLSearchParams(e.slice(r,t===-1?void 0:t)).get(ne)??void 0},"getNamespace"),oe=R.isFeatureSupported(R.importAttributes)?"importAttributes":"importAssertions",ae=l(e=>e==="commonjs"||e==="commonjs-typescript","isCommonJsFormat"),ie=l(e=>e==="module-typescript"||e==="typescript","isModuleTypeScriptFormat"),Be=R.isFeatureSupported(R.esmLoadReadFile),Qe=[`${j}=`],N=[`${I}=`,`${j}=`],L=l((e,r)=>r.parsedTsconfig&&o.je(r.parsedTsconfig,e)?r.parsedTsconfig.config:void 0,"getTsconfigRaw"),De=l(e=>{if(!e.searchParams.has(j))return;const{pathname:r}=e,t=r.toLowerCase().lastIndexOf("%3f");if(t===-1)return;const s=new URL(e);return s.pathname=r.slice(0,t),s.search="",h.fileURLToPath(s)},"getFilePathFromVirtualQuery"),G=l(e=>{const r=e.startsWith(o.fileUrlPrefix)?new URL(e):void 0,t=r?h.fileURLToPath(r):e,s=r&&De(r),n=s||t,a=r&&s?h.pathToFileURL(n).toString()+_(r.search,Qe):e;return{fileUrl:r,filePath:n,loadUrl:a}},"getFileLoadContext"),ce=l((e,r)=>{if(!r?.search)return e;const t=_(r.search,N);return t?h.pathToFileURL(e).toString()+t:e},"getTransformPath"),le=l((e,r,t)=>{const s=[...r?H(r.search,[E,...N]).split("&").filter(Boolean):[],...t?[`namespace=${encodeURIComponent(t)}`]:[]].join("&");return s?`${e}?${s}`:e},"getFilePathWithQuery"),He=new TextDecoder,me=l(e=>typeof e=="string"?e:He.decode(e),"decodeSource"),Ge=l((e,r)=>{const t=new URL(r),s=r.startsWith(o.fileUrlPrefix)?G(r).filePath:void 0;if(T(r)){if(e.namespace){const a=`${E}${e.namespace}`;t.hash===`#${a}`?t.hash="":t.hash.endsWith(`&${a}`)&&(t.hash=t.hash.slice(0,-a.length-1))}}else t.searchParams.delete("tsx-namespace"),t.searchParams.delete(I),t.searchParams.delete(j);s&&(t.pathname=new URL(h.pathToFileURL(s)).pathname);const n=t.toString();return e.port&&e.port.postMessage({type:"load",url:n}),e.onImport?.(n),n},"notifyLoad"),de=l((e,r)=>{if(!e.active)return!1;const t=v(r);if(e.namespace!==t)return!1;const s=Ge(e,r);return re.parent.send&&re.parent.send({type:"dependency",path:s}),!0},"prepareLoad"),ue=l((e,r)=>{if(!o.isJsonPattern.test(e))return r;const t=r[oe];return t?.type?r:{...r,[oe]:{...t,type:"json"}}},"prepareJsonAttributes"),z=l(({conditions:e})=>e?.includes("require")===!0&&!e.includes("import"),"isCommonJsRequireContext$1"),ze=l(e=>{const r=l(async(t,s,n)=>{if(!de(e,t))return n(t,s);const a=v(t),{fileUrl:i,filePath:c,loadUrl:u}=G(t),f=ue(u,s),m=await n(u,f);o.logEsm(3,"loaded by next loader",{url:t,loadUrl:u,loaded:m});const d=i?.searchParams.has(I)===!0,p=m.format,g=i?new URL(h.pathToFileURL(c)):void 0;if(g&&i&&(g.search=_(i.search,N)),ae(p)&&i&&m.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const P=await be.readFile(h.pathToFileURL(c),"utf8"),C=y.isESM(P);if(p==="commonjs-typescript"||!c.endsWith(".js")||C){if(!Be){if(d&&C&&o.implicitTsExtensionsPattern.test(c)){const J=await y.transform(P,c,{define:{"import.meta.url":JSON.stringify(g.toString())},tsconfigRaw:L(c,e)});return W.set(t,J.code),{format:"module",source:o.inlineSourceMap(J)}}return m}if(!a&&!d&&!c.endsWith(".cts"))return m;const Z=!!(a||d||_(i.search,N)),ee=y.transformSync(P,ce(c,i),{cjsBanner:Z?`require = require("node:module").createRequire(${JSON.stringify(h.pathToFileURL(c).toString())});`:void 0,tsconfigRaw:L(c,e)});if(m.format="commonjs",m.source=o.inlineSourceMap(ee),Z){const J=le(c,i,a);m.responseURL=`data:text/javascript,${encodeURIComponent(ee.code)}?filePath=${encodeURIComponent(J)}`}return o.logEsm(3,"returning CJS export annotation",m),m}}if(!m.source)return m;const U=me(m.source),$=p==="json"&&!z(s);if(p==="commonjs-typescript"){const P=y.transformSync(U,c,{tsconfigRaw:L(c,e)});return{...m,format:"commonjs",source:o.inlineSourceMap(P)}}if($||ie(p)||o.tsExtensionsPattern.test(t)){const P=await y.transform(U,c,{tsconfigRaw:L(c,e)});return W.set(t,P.code),{format:"module",source:o.inlineSourceMap(P)}}if(m.format==="module"){const P=y.transformDynamicImport(c,U);P?(m.source=o.inlineSourceMap(P),W.set(t,P.code)):W.set(t,U)}return m},"load");return o.debugEnabled?async(t,s,n)=>{o.logEsm(2,"load",{url:t,context:s});const a=await r(t,s,n);return o.logEsm(1,"loaded",{url:t,result:a}),a}:r},"createLoad"),Xe=l(e=>{const r=l((t,s,n)=>{if(z(s)&&o.isGlobalCjsLoaderActive()||!de(e,t))return n(t,s);const a=v(t),{fileUrl:i,filePath:c,loadUrl:u}=G(t),f=ue(u,s),m=n(u,f);o.logEsm(3,"loaded by next loader",{url:t,loadUrl:u,loaded:m});const d=m.format;if(ae(d)&&R.isFeatureSupported(R.esmLoadReadFile)&&m.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const U=te.readFileSync(h.pathToFileURL(c),"utf8");if(d==="commonjs-typescript"||!c.endsWith(".js")||y.isESM(U)){const $=y.transformSync(U,ce(c,i),{tsconfigRaw:L(c,e)}),P=!a&&o.isGlobalCjsLoaderActive(),C=le(c,i,a);return m.format="commonjs",m.shouldBeReloadedByCJSLoader=P,m.source=o.inlineSourceMap($),P||(m.responseURL=`data:text/javascript,${encodeURIComponent($.code)}?filePath=${encodeURIComponent(C)}`),o.logEsm(3,"returning CJS export annotation",m),m}}if(!m.source)return m;const p=me(m.source),g=d==="json"&&!z(s);if(d==="commonjs-typescript"){const U=y.transformSync(p,c,{tsconfigRaw:L(c,e)});return{...m,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:o.inlineSourceMap(U)}}if(g||ie(d)||o.tsExtensionsPattern.test(t)){const U=y.transformEsmSync(p,c,{tsconfigRaw:L(c,e)});return{format:"module",source:o.inlineSourceMap(U)}}if(m.format==="module"){const U=y.transformDynamicImport(c,p);U&&(m.source=o.inlineSourceMap(U))}return m},"load");return o.debugEnabled?(t,s,n)=>{o.logEsm(2,"loadSync",{url:t,context:s});const a=r(t,s,n);return o.logEsm(1,"loadedSync",{url:t,result:a}),a}:r},"createLoadSync"),ke=l(e=>{if(o.isFilePath(e)||e.startsWith("#")||e.includes(":"))return!1;const r=e.split("/"),t=r[0]?.startsWith("@")?2:1;return r.length>t&&r.slice(0,t).every(Boolean)},"isBarePackageSubpath"),Ve=l(e=>{const r=e.lastIndexOf(o.nodeModulesPath);if(r===-1)return;const s=e.slice(r+o.nodeModulesPath.length).split(S.sep),n=s[0]?.startsWith("@")?2:1;if(!(s.length<=n||!s[n-1]))return S.join(e.slice(0,r),"node_modules",...s.slice(0,n))},"getPackageDirectory"),fe=l((e,r)=>{if(!ke(e)||!r.startsWith(o.fileUrlPrefix))return;const t=h.fileURLToPath(r),s=Ve(t);if(!s)return;const a=y.readJsonFile(S.join(s,"package.json"))?.exports;if(a!=null)return{kind:"root-exports"};const i=y.readJsonFile(S.join(t,"package.json"));return typeof i?.main!="string"||!i.main?{kind:"legacy-directory"}:{kind:"legacy-directory",mainUrl:h.pathToFileURL(S.resolve(t,i.main)).toString()}},"getPackageSubpathDirectoryInfo"),Ke=R.isFeatureSupported(R.esmLoadReadFile),pe=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,he=l(e=>!o.isFilePath(e)&&!pe.test(e),"isTsconfigPathAliasSpecifier"),q=l(e=>{if(e.url)return e.url;const r=e.message.match(/^Cannot find module '([^']+)'/);if(r){const[,s]=r;return s}const t=e.message.match(/^Cannot find package '([^']+)'/);if(t){const[,s]=t;if(!S.isAbsolute(s))return;const n=h.pathToFileURL(s);if(n.pathname.endsWith("/")&&(n.pathname+="package.json"),n.pathname.endsWith("/package.json")){const a=y.readJsonFile(n);if(a?.main)return new URL(a.main,n).toString()}else return n.toString()}},"getMissingPathFromNotFound"),b=l(e=>e==="ERR_MODULE_NOT_FOUND"||e==="MODULE_NOT_FOUND","isModuleNotFound"),A=l(e=>e instanceof Error&&(b(e.code)||e.code==="ERR_UNSUPPORTED_DIR_IMPORT"),"isDirectoryEntryMiss"),x=l(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext"),X=l(e=>{const r=e.indexOf("?"),t=e.indexOf("#");return r===-1?t:t===-1?r:Math.min(r,t)},"getUrlMetadataIndex"),ge=l((e,r)=>r||!o.isFilePath(e)&&!pe.test(e)?e.indexOf("?"):X(e),"getSpecifierMetadataIndex"),Pe=l(e=>{if(e?.startsWith(o.fileUrlPrefix))return h.fileURLToPath(new URL(e))},"getParentFilePath"),Ye=l(e=>{if(!e)return!1;const r=Pe(e);if(r)return o.tsExtensionsPattern.test(r);const t=X(e);return o.tsExtensionsPattern.test(t===-1?e:e.slice(0,t))},"isTypeScriptParent"),M=l(e=>{const r=Pe(e);return r!==void 0&&o.isDependencyPath(r)},"isParentDependency"),ye=l(e=>S.extname(new URL(e).pathname)===".js"&&o.isDependencyPath(h.fileURLToPath(e)),"isImplicitJavaScriptDependency"),Ue=l((e,r)=>Ye(e)||r&&!M(e),"resolvesTsExtensions"),Ze=l((e,r)=>{const t=X(e),s=t===-1?e:e.slice(0,t);try{if(s.startsWith(o.fileUrlPrefix))return h.fileURLToPath(s);if(S.isAbsolute(s))return s;if(o.isRelativePath(s)&&r?.startsWith(o.fileUrlPrefix))return h.fileURLToPath(new URL(s,r))}catch{}},"getProbeFilePath"),Se=l((e,r)=>{const t=Ze(e,r);return t!==void 0&&!te.existsSync(t)},"candidateDoesntExist"),B=l(async(e,r,t,s)=>{const n=o.getExtensionResolution(e);if(o.logEsm(3,"resolveExtensions",{url:e,context:r,throwError:s,tryPaths:n}),!n)return;let a;for(const i of n)if(!Se(i,r.parentURL))try{return await t(i,r)}catch(c){const{code:u}=c;if(!b(u)&&u!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(s){if(a===void 0)return t(n[0],r);throw a}},"resolveExtensions"),O=l((e,r,t,s)=>{const n=o.getExtensionResolution(e);if(o.logEsm(3,"resolveExtensionsSync",{url:e,context:r,throwError:s,tryPaths:n}),!n)return;let a;for(const i of n)if(!Se(i,r.parentURL))try{return t(i,r)}catch(c){const{code:u}=c;if(!b(u)&&u!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;a=c}if(s){if(a===void 0)return t(n[0],r);throw a}},"resolveExtensionsSync"),et=l(async(e,r,t,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,a=Ue(r.parentURL,n);if(o.logEsm(3,"resolveBase",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(o.fileUrlPrefix),isRelativePath:o.isRelativePath(e),resolveTsExtensions:a,allowJs:n}),(e.startsWith(o.fileUrlPrefix)||o.isRelativePath(e))&&a){const i=await B(e,r,t,void 0);if(o.logEsm(3,"resolveBase resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return await t(e,r)}catch(i){if(o.logEsm(3,"resolveBase error",{specifier:e,context:r,error:i}),i instanceof Error){const c=i;if(b(c.code)){const u=q(c);if(u){const f=await B(u,r,t,void 0);if(f)return f}}}throw i}},"resolveBase"),k=l((e,r,t,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,a=Ue(r.parentURL,n);if(o.logEsm(3,"resolveBaseSync",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(o.fileUrlPrefix),isRelativePath:o.isRelativePath(e),resolveTsExtensions:a,allowJs:n}),(e.startsWith(o.fileUrlPrefix)||o.isRelativePath(e))&&a){const i=O(e,r,t,void 0);if(o.logEsm(3,"resolveBaseSync resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return t(e,r)}catch(i){if(o.logEsm(3,"resolveBaseSync error",{specifier:e,context:r,error:i}),i instanceof Error){const c=i;if(b(c.code)){const u=q(c);if(u){const f=O(u,r,t,void 0);if(f)return f}}}throw i}},"resolveBaseSync"),V=l(async(e,r,t,s)=>{if(o.logEsm(3,"resolveDirectory",{specifier:e,context:r,isDirectory:o.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),o.isDirectoryPattern.test(e)){const n=new URL(e,r.parentURL);return n.pathname=S.join(n.pathname,"index"),await B(n.toString(),r,t,!0)}try{return await et(e,r,t,s)}catch(n){if(n instanceof Error){o.logEsm(3,"resolveDirectory error",{specifier:e,context:r,error:n});const a=n;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const i=q(a);if(i){if(e.startsWith("#"))throw n;const c=fe(e,i);if(c?.kind==="root-exports")throw n;if(c?.mainUrl){try{return await t(c.mainUrl,r)}catch(m){if(!A(m))throw m}try{return await V(c.mainUrl,r,t,s)}catch(m){if(!A(m))throw m}}const u=`${i}/index`,f=await B(u,r,t);if(f)return f}}}throw n}},"resolveDirectory"),K=l((e,r,t,s)=>{if(o.logEsm(3,"resolveDirectorySync",{specifier:e,context:r,isDirectory:o.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),o.isDirectoryPattern.test(e)){const n=x(r);if(n&&!o.isFilePath(e))return k(e,r,t,s);const a=new URL(e,r.parentURL);return a.pathname=S.join(a.pathname,"index"),n?O(h.fileURLToPath(a),r,t,!1)??k(e,r,t,s):O(a.toString(),r,t,!0)}try{return k(e,r,t,s)}catch(n){if(n instanceof Error){o.logEsm(3,"resolveDirectorySync error",{specifier:e,context:r,error:n});const a=n;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const i=q(a);if(i){if(e.startsWith("#"))throw n;const c=fe(e,i);if(c?.kind==="root-exports")throw n;if(c?.mainUrl){try{return t(c.mainUrl,r)}catch(m){if(!A(m))throw m}try{return K(c.mainUrl,r,t,s)}catch(m){if(!A(m))throw m}}const u=`${i}/index`,f=O(u,r,t);if(f)return f}}}throw n}},"resolveDirectorySync"),tt=l(async(e,r,t,s)=>{const n=he(e);if(o.logEsm(3,"resolveTsPaths",{specifier:e,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:M(r.parentURL)}),n&&s.parsedTsconfig&&!M(r.parentURL)){const a=o.wt(s.parsedTsconfig,e);o.logEsm(3,"resolveTsPaths",{possiblePaths:a});for(const i of a)try{return await V(h.pathToFileURL(i).toString(),r,t,s)}catch{}}return V(e,r,t,s)},"resolveTsPaths"),rt=l((e,r,t,s)=>{const n=he(e);if(o.logEsm(3,"resolveTsPathsSync",{specifier:e,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:M(r.parentURL)}),n&&s.parsedTsconfig&&!M(r.parentURL)){const a=o.wt(s.parsedTsconfig,e);o.logEsm(3,"resolveTsPathsSync",{possiblePaths:a});for(const i of a)try{return K(h.pathToFileURL(i).toString(),r,t,s)}catch{}}return K(e,r,t,s)},"resolveTsPathsSync"),Q="tsx://",Y=l((e,r)=>{const t=e.indexOf("#"),s=t===-1?e:e.slice(0,t),n=t===-1?"":e.slice(t);return`${s}${s.includes("?")?"&":"?"}${r}${n}`},"addQuery"),D=l((e,r)=>T(e)?`${e}${e.includes("#")?"&":"#"}${E}${r}`:Y(e,`${E}${r}`),"addNamespace"),Re=l((e,r)=>{const t=r.indexOf("#"),s=r[0]==="?"?r.slice(1,t===-1?void 0:t):"",n=t===-1?"":r.slice(t),a=e.indexOf("#"),i=a===-1?e:e.slice(0,a),c=a===-1?"":e.slice(a),u=s?Y(i,s):i;return new URL(`${u}${n||c}`).toString()},"mergeUrlMetadata"),ve=l((e,r,t)=>{if(r!=="commonjs"||!e.startsWith(o.fileUrlPrefix)||!o.implicitTsExtensionsPattern.test(e))return e;const s=new URL(e),n=[H(s.search,[E]),...t?[`namespace=${encodeURIComponent(t)}`]:[]].filter(Boolean).join("&");return n?(s.pathname+=`%3F${n}`,s.searchParams.set(j,"1"),s.toString()):e},"preserveCommonJsQueryIdentity"),st=l(e=>{const r=l(async(t,s,n)=>{if(!e.active||t.startsWith("node:"))return n(t,s);const a=s.parentURL&&v(s.parentURL);let i=T(t)?a:v(t)??a;if(e.namespace){let g;if(t.startsWith(Q)){try{g=JSON.parse(t.slice(Q.length))}catch{}g?.namespace&&(i=g.namespace)}if(e.namespace!==i)return n(t,s);g&&(t=g.specifier,s.parentURL=g.parentURL)}if(T(t)){const g=await n(t,s);return e.namespace?{...g,url:D(g.url,e.namespace)}:g}const c=ge(t,x(s)),u=c===-1?t:t.slice(0,c),f=c===-1?"":t.slice(c),m=await tt(u,s,n,e);if(o.logEsm(2,"nextResolve",{resolved:m}),m.format==="builtin")return m;const d={...m};d.url.startsWith(o.fileUrlPrefix)&&(d.format==="module-typescript"?d.format="module":d.format==="commonjs-typescript"?d.format="commonjs":!d.format&&!ye(d.url)&&(d.format=await Ce(d.url),o.logEsm(2,"getFormatFromFileUrl",{resolved:d,format:d.format}))),f&&(d.url=Re(d.url,f));const p=s.parentURL&&d.format==="commonjs"&&o.implicitTsExtensionsPattern.test(d.url)&&(new URL(s.parentURL).searchParams.has(I)||xe(s.parentURL,t,Ke));return i&&v(d.url)===void 0&&(d.url=D(d.url,i)),p&&(d.url=Y(d.url,_e)),(i||p)&&(d.url=ve(d.url,d.format,i)),d},"resolve");return o.debugEnabled?async(t,s,n)=>{o.logEsm(2,"resolve",{specifier:t,context:s});const a=await r(t,s,n);return o.logEsm(1,"resolved",{specifier:t,context:s,result:a}),a}:r},"createResolve"),nt=l(e=>{const r=l((t,s,n)=>{if(!e.active||t.startsWith("node:")||x(s)&&o.isGlobalCjsLoaderActive())return n(t,s);const a=s.parentURL&&v(s.parentURL);let i=T(t)?a:v(t)??a;if(e.namespace){let p;if(t.startsWith(Q)){try{p=JSON.parse(t.slice(Q.length))}catch{}p?.namespace&&(i=p.namespace)}if(e.namespace!==i)return n(t,s);p&&(t=p.specifier,s.parentURL=p.parentURL)}if(T(t)){const p=n(t,s);return e.namespace?{...p,url:D(p.url,e.namespace)}:p}const c=ge(t,x(s)),u=c===-1?t:t.slice(0,c),f=c===-1?"":t.slice(c),m=rt(u,s,n,e);if(o.logEsm(2,"nextResolve",{resolved:m}),m.format==="builtin")return m;const d={...m};return d.url.startsWith(o.fileUrlPrefix)&&(d.format==="module-typescript"?d.format="module":d.format==="commonjs-typescript"?d.format="commonjs":!d.format&&!ye(d.url)&&(d.format=Je(d.url),o.logEsm(2,"getFormatFromFileUrlSync",{resolved:d,format:d.format}))),f&&(d.url=Re(d.url,f)),i&&v(d.url)===void 0&&(d.url=D(d.url,i)),d.url=ve(d.url,d.format,i),d},"resolve");return o.debugEnabled?(t,s,n)=>{o.logEsm(2,"resolveSync",{specifier:t,context:s});const a=r(t,s,n);return o.logEsm(1,"resolvedSync",{specifier:t,context:s,result:a}),a}:r},"createResolveSync"),Ee=l(e=>(r,t)=>{if(!t)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const s=t.startsWith(o.fileUrlPrefix)?t:h.pathToFileURL(t).toString();return import(`tsx://${JSON.stringify({specifier:r,parentURL:s,namespace:e})}`)},"createScopedImport");let Te=!1;const ot=l(e=>{const r=[];for(let t=0;t<e.length;t+=1){const s=e[t];if(s==="--import"){const n=e[t+1];n&&r.push(n),t+=1}else s.startsWith("--import=")&&r.push(s.slice(9))}return r},"collectImportSpecifiers"),at=l(()=>[...(process.env.NODE_OPTIONS??"").matchAll(/(?:^|\s)--import(?:=|\s+)(\S+)/g)].map(([,e])=>e),"collectNodeOptionsImportSpecifiers"),Le=[new URL("loader.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:F&&F.src||new URL("register-Cn3U8bZT.cjs",document.baseURI).href).toString(),new URL("esm/index.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:F&&F.src||new URL("register-Cn3U8bZT.cjs",document.baseURI).href).toString()],it=new Set(["tsx","tsx/esm",...Le,...Le.map(e=>decodeURI(new URL(e).pathname))]),ct=l(e=>it.has(e),"isTsxImport"),we=l(e=>/\.(?:[cm]?ts|tsx)(?:[?#].*)?$/.test(e),"isTypeScriptImport"),lt=l(()=>{const e=ot(process.execArgv),r=e.findIndex(ct);return r>0&&e.slice(0,r).some(we)},"hasCliTypeScriptPreload"),mt=at().some(we)||lt(),Fe=typeof w.registerHooks=="function"&&R.isFeatureSupported(R.moduleRegisterHooksCjsReload)&&!mt,dt=l(e=>{if(!w.register&&!Fe)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!Te){const{_resolveFilename:c}=w;w._resolveFilename=(u,...f)=>c(o.interopCjsExports(u),...f),Te=!0}const{sourceMapsEnabled:r}=process;if(process.setSourceMapsEnabled(!0),Fe){const c=se({namespace:e?.namespace,onImport:e?.onImport,tsconfig:e?.tsconfig}),u=w.registerHooks({load:Xe(c),resolve:nt(c)}),f=l(async()=>{c.active=!1,u.deregister(),r===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return e?.namespace&&(f.import=Ee(e.namespace),f.unregister=f),f}const{port1:t,port2:s}=new We.MessageChannel;w.register(`./esm/index.mjs?${je.randomUUID()}`,{parentURL:typeof document>"u"?require("url").pathToFileURL(__filename).href:F&&F.src||new URL("register-Cn3U8bZT.cjs",document.baseURI).href,data:{port:s,namespace:e?.namespace,tsconfig:e?.tsconfig},transferList:[s]});const n=e?.onImport,a=n&&(c=>{c.type==="load"&&n(c.url)});a&&(t.on("message",a),t.unref());const i=l(()=>(r===!1&&process.setSourceMapsEnabled(!1),a&&t.off("message",a),t.postMessage("deactivate"),new Promise(c=>{const u=l(f=>{f.type==="deactivated"&&(c(),t.off("message",u))},"onDeactivated");t.on("message",u)})),"unregister");return e?.namespace&&(i.import=Ee(e.namespace),i.unregister=i),i},"register");exports.createDefaultData=Me,exports.createGlobalPreload=$e,exports.createInitialize=Oe,exports.createLoad=ze,exports.createResolve=st,exports.register=dt;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var Xt=Object.defineProperty;var c=(t,r)=>Xt(t,"name",{value:r,configurable:!0});import kt from"node:crypto";import j from"node:module";import{MessageChannel as zt}from"node:worker_threads";import{i as L,b as Vt,e as Y,m as Kt}from"./node-features-JeyyvQz6.mjs";import{l as ut,t as ft,g as Yt,a as Zt,d as A,b as u,e as Z,f as U,h as B,j as tt,k as te,m as P,n as ee,o as q,p as pt,q as ht,w as gt,s as Q,u as yt,v as F,x as re}from"./register--Y-HowfU.mjs";import{pathToFileURL as S,fileURLToPath as R}from"node:url";import{readFileSync as se,existsSync as ne}from"node:fs";import{readFile as oe}from"node:fs/promises";import{p as ae,i as Pt,t as St,a as H,b as vt,c as ie,r as et}from"./index-CVGQLgGk.mjs";import{p as Ut}from"./client-D_mPDF5S.mjs";import v from"node:path";const ce=c(()=>({active:!0,parsedTsconfig:void 0}),"createDefaultData"),wt=c(t=>{const r={active:!0,namespace:t?.namespace,onImport:t?.onImport,parsedTsconfig:void 0,port:t?.port,tsconfig:t?.tsconfig};return t?.tsconfig!==!1&&(r.parsedTsconfig=ut(t?.tsconfig??process.env.TSX_TSCONFIG_PATH)),r},"createData"),me=c(t=>async r=>{if(!r)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(t,wt(r)),r.port&&r.port.on("message",e=>{e==="deactivate"&&(t.active=!1,r.port.postMessage({type:"deactivated"}))})},"createInitialize"),de=c(t=>()=>(t.parsedTsconfig=ut(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"createGlobalPreload"),le=c(t=>{const{pathname:r}=new URL(t),e=v.extname(r);if(e===".mts"||e===".mjs")return"module";if(e===".cts"||e===".cjs")return"commonjs";if(e===".js"||ft.includes(e))return Yt(t)},"getFormatFromFileUrl"),ue=c(t=>{const{pathname:r}=new URL(t),e=v.extname(r);if(e===".mts"||e===".mjs")return"module";if(e===".cts"||e===".cjs")return"commonjs";if(e===".js"||ft.includes(e))return Zt(t)},"getFormatFromFileUrlSync"),Rt="tsx-namespace",I=`${Rt}=`,W="tsx-commonjs-export-preparse",fe=`${W}=1`,O="tsx-commonjs-virtual-query",$=new Map,pe=/^data:/i,T=c(t=>pe.test(t),"isDataUrl"),rt=c((t,r)=>t.slice(1).split("&").filter(e=>e&&r.every(s=>!e.startsWith(s))).join("&"),"getQueryWithoutParameters"),x=c((t,r)=>{const e=rt(t,r);return e?`?${e}`:""},"getSearchWithoutParameters"),he=c(t=>t.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),ge=c(t=>{const r=he(t);if(/^\s*export\s*\*/.test(r))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(r))return"namespace";const e=r.match(/\{([^}]*)\}/)?.[1];if(e)return e.split(",").some(s=>{const n=s.trim().split(/\s+as\s+/)[0];return!!(n&&n!=="default")})?"named":void 0},"getCommonJsImportBinding"),ye=c((t,r,e)=>{const s=$.get(t);if(!s)return!1;try{const[n]=ae(s);return n.some(o=>{if(o.d!==-1||o.n!==r)return!1;const a=ge(s.slice(o.ss,o.s));return a==="named"||e&&a==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),w=c(t=>{const r=t.indexOf("?"),e=t.indexOf("#");if(T(t)){if(e===-1)return;const s=t.slice(e+1),n=s.lastIndexOf("&"),o=s.slice(n+1);return o.startsWith(I)?o.slice(I.length):void 0}if(!(r===-1||e!==-1&&e<r))return new URLSearchParams(t.slice(r,e===-1?void 0:e)).get(Rt)??void 0},"getNamespace"),It=L(Vt)?"importAttributes":"importAssertions",Tt=c(t=>t==="commonjs"||t==="commonjs-typescript","isCommonJsFormat"),Et=c(t=>t==="module-typescript"||t==="typescript","isModuleTypeScriptFormat"),Pe=L(Y),Se=[`${O}=`],G=[`${W}=`,`${O}=`],E=c((t,r)=>r.parsedTsconfig&&te(r.parsedTsconfig,t)?r.parsedTsconfig.config:void 0,"getTsconfigRaw"),ve=c(t=>{if(!t.searchParams.has(O))return;const{pathname:r}=t,e=r.toLowerCase().lastIndexOf("%3f");if(e===-1)return;const s=new URL(t);return s.pathname=r.slice(0,e),s.search="",R(s)},"getFilePathFromVirtualQuery"),st=c(t=>{const r=t.startsWith(P)?new URL(t):void 0,e=r?R(r):t,s=r&&ve(r),n=s||e,o=r&&s?S(n).toString()+x(r.search,Se):t;return{fileUrl:r,filePath:n,loadUrl:o}},"getFileLoadContext"),jt=c((t,r)=>{if(!r?.search)return t;const e=x(r.search,G);return e?S(t).toString()+e:t},"getTransformPath"),Lt=c((t,r,e)=>{const s=[...r?rt(r.search,[I,...G]).split("&").filter(Boolean):[],...e?[`namespace=${encodeURIComponent(e)}`]:[]].join("&");return s?`${t}?${s}`:t},"getFilePathWithQuery"),Ue=new TextDecoder,Ft=c(t=>typeof t=="string"?t:Ue.decode(t),"decodeSource"),we=c((t,r)=>{const e=new URL(r),s=r.startsWith(P)?st(r).filePath:void 0;if(T(r)){if(t.namespace){const o=`${I}${t.namespace}`;e.hash===`#${o}`?e.hash="":e.hash.endsWith(`&${o}`)&&(e.hash=e.hash.slice(0,-o.length-1))}}else e.searchParams.delete("tsx-namespace"),e.searchParams.delete(W),e.searchParams.delete(O);s&&(e.pathname=new URL(S(s)).pathname);const n=e.toString();return t.port&&t.port.postMessage({type:"load",url:n}),t.onImport?.(n),n},"notifyLoad"),Wt=c((t,r)=>{if(!t.active)return!1;const e=w(r);if(t.namespace!==e)return!1;const s=we(t,r);return Ut.send&&Ut.send({type:"dependency",path:s}),!0},"prepareLoad"),Ot=c((t,r)=>{if(!ee.test(t))return r;const e=r[It];return e?.type?r:{...r,[It]:{...e,type:"json"}}},"prepareJsonAttributes"),nt=c(({conditions:t})=>t?.includes("require")===!0&&!t.includes("import"),"isCommonJsRequireContext$1"),Re=c(t=>{const r=c(async(e,s,n)=>{if(!Wt(t,e))return n(e,s);const o=w(e),{fileUrl:a,filePath:i,loadUrl:l}=st(e),f=Ot(l,s),m=await n(l,f);u(3,"loaded by next loader",{url:e,loadUrl:l,loaded:m});const d=a?.searchParams.has(W)===!0,p=m.format,h=a?new URL(S(i)):void 0;if(h&&a&&(h.search=x(a.search,G)),Tt(p)&&a&&m.responseURL?.startsWith("file:")&&!i.endsWith(".cjs")){const g=await oe(S(i),"utf8"),M=Pt(g);if(p==="commonjs-typescript"||!i.endsWith(".js")||M){if(!Pe){if(d&&M&&Z.test(i)){const _=await St(g,i,{define:{"import.meta.url":JSON.stringify(h.toString())},tsconfigRaw:E(i,t)});return $.set(e,_.code),{format:"module",source:U(_)}}return m}if(!o&&!d&&!i.endsWith(".cts"))return m;const dt=!!(o||d||x(a.search,G)),lt=H(g,jt(i,a),{cjsBanner:dt?`require = require("node:module").createRequire(${JSON.stringify(S(i).toString())});`:void 0,tsconfigRaw:E(i,t)});if(m.format="commonjs",m.source=U(lt),dt){const _=Lt(i,a,o);m.responseURL=`data:text/javascript,${encodeURIComponent(lt.code)}?filePath=${encodeURIComponent(_)}`}return u(3,"returning CJS export annotation",m),m}}if(!m.source)return m;const y=Ft(m.source),N=p==="json"&&!nt(s);if(p==="commonjs-typescript"){const g=H(y,i,{tsconfigRaw:E(i,t)});return{...m,format:"commonjs",source:U(g)}}if(N||Et(p)||B.test(e)){const g=await St(y,i,{tsconfigRaw:E(i,t)});return $.set(e,g.code),{format:"module",source:U(g)}}if(m.format==="module"){const g=vt(i,y);g?(m.source=U(g),$.set(e,g.code)):$.set(e,y)}return m},"load");return A?async(e,s,n)=>{u(2,"load",{url:e,context:s});const o=await r(e,s,n);return u(1,"loaded",{url:e,result:o}),o}:r},"createLoad"),Ie=c(t=>{const r=c((e,s,n)=>{if(nt(s)&&tt()||!Wt(t,e))return n(e,s);const o=w(e),{fileUrl:a,filePath:i,loadUrl:l}=st(e),f=Ot(l,s),m=n(l,f);u(3,"loaded by next loader",{url:e,loadUrl:l,loaded:m});const d=m.format;if(Tt(d)&&L(Y)&&m.responseURL?.startsWith("file:")&&!i.endsWith(".cjs")){const y=se(S(i),"utf8");if(d==="commonjs-typescript"||!i.endsWith(".js")||Pt(y)){const N=H(y,jt(i,a),{tsconfigRaw:E(i,t)}),g=!o&&tt(),M=Lt(i,a,o);return m.format="commonjs",m.shouldBeReloadedByCJSLoader=g,m.source=U(N),g||(m.responseURL=`data:text/javascript,${encodeURIComponent(N.code)}?filePath=${encodeURIComponent(M)}`),u(3,"returning CJS export annotation",m),m}}if(!m.source)return m;const p=Ft(m.source),h=d==="json"&&!nt(s);if(d==="commonjs-typescript"){const y=H(p,i,{tsconfigRaw:E(i,t)});return{...m,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:U(y)}}if(h||Et(d)||B.test(e)){const y=ie(p,i,{tsconfigRaw:E(i,t)});return{format:"module",source:U(y)}}if(m.format==="module"){const y=vt(i,p);y&&(m.source=U(y))}return m},"load");return A?(e,s,n)=>{u(2,"loadSync",{url:e,context:s});const o=r(e,s,n);return u(1,"loadedSync",{url:e,result:o}),o}:r},"createLoadSync"),Te=c(t=>{if(q(t)||t.startsWith("#")||t.includes(":"))return!1;const r=t.split("/"),e=r[0]?.startsWith("@")?2:1;return r.length>e&&r.slice(0,e).every(Boolean)},"isBarePackageSubpath"),Ee=c(t=>{const r=t.lastIndexOf(pt);if(r===-1)return;const s=t.slice(r+pt.length).split(v.sep),n=s[0]?.startsWith("@")?2:1;if(!(s.length<=n||!s[n-1]))return v.join(t.slice(0,r),"node_modules",...s.slice(0,n))},"getPackageDirectory"),$t=c((t,r)=>{if(!Te(t)||!r.startsWith(P))return;const e=R(r),s=Ee(e);if(!s)return;const o=et(v.join(s,"package.json"))?.exports;if(o!=null)return{kind:"root-exports"};const a=et(v.join(e,"package.json"));return typeof a?.main!="string"||!a.main?{kind:"legacy-directory"}:{kind:"legacy-directory",mainUrl:S(v.resolve(e,a.main)).toString()}},"getPackageSubpathDirectoryInfo"),je=L(Y),bt=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,Ct=c(t=>!q(t)&&!bt.test(t),"isTsconfigPathAliasSpecifier"),D=c(t=>{if(t.url)return t.url;const r=t.message.match(/^Cannot find module '([^']+)'/);if(r){const[,s]=r;return s}const e=t.message.match(/^Cannot find package '([^']+)'/);if(e){const[,s]=e;if(!v.isAbsolute(s))return;const n=S(s);if(n.pathname.endsWith("/")&&(n.pathname+="package.json"),n.pathname.endsWith("/package.json")){const o=et(n);if(o?.main)return new URL(o.main,n).toString()}else return n.toString()}},"getMissingPathFromNotFound"),b=c(t=>t==="ERR_MODULE_NOT_FOUND"||t==="MODULE_NOT_FOUND","isModuleNotFound"),X=c(t=>t instanceof Error&&(b(t.code)||t.code==="ERR_UNSUPPORTED_DIR_IMPORT"),"isDirectoryEntryMiss"),k=c(t=>t.conditions.includes("require")&&!t.conditions.includes("import"),"isCommonJsRequireContext"),ot=c(t=>{const r=t.indexOf("?"),e=t.indexOf("#");return r===-1?e:e===-1?r:Math.min(r,e)},"getUrlMetadataIndex"),Jt=c((t,r)=>r||!q(t)&&!bt.test(t)?t.indexOf("?"):ot(t),"getSpecifierMetadataIndex"),Nt=c(t=>{if(t?.startsWith(P))return R(new URL(t))},"getParentFilePath"),Le=c(t=>{if(!t)return!1;const r=Nt(t);if(r)return B.test(r);const e=ot(t);return B.test(e===-1?t:t.slice(0,e))},"isTypeScriptParent"),C=c(t=>{const r=Nt(t);return r!==void 0&&ht(r)},"isParentDependency"),Mt=c(t=>v.extname(new URL(t).pathname)===".js"&&ht(R(t)),"isImplicitJavaScriptDependency"),_t=c((t,r)=>Le(t)||r&&!C(t),"resolvesTsExtensions"),Fe=c((t,r)=>{const e=ot(t),s=e===-1?t:t.slice(0,e);try{if(s.startsWith(P))return R(s);if(v.isAbsolute(s))return s;if(F(s)&&r?.startsWith(P))return R(new URL(s,r))}catch{}},"getProbeFilePath"),At=c((t,r)=>{const e=Fe(t,r);return e!==void 0&&!ne(e)},"candidateDoesntExist"),z=c(async(t,r,e,s)=>{const n=yt(t);if(u(3,"resolveExtensions",{url:t,context:r,throwError:s,tryPaths:n}),!n)return;let o;for(const a of n)if(!At(a,r.parentURL))try{return await e(a,r)}catch(i){const{code:l}=i;if(!b(l)&&l!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i;o=i}if(s){if(o===void 0)return e(n[0],r);throw o}},"resolveExtensions"),J=c((t,r,e,s)=>{const n=yt(t);if(u(3,"resolveExtensionsSync",{url:t,context:r,throwError:s,tryPaths:n}),!n)return;let o;for(const a of n)if(!At(a,r.parentURL))try{return e(a,r)}catch(i){const{code:l}=i;if(!b(l)&&l!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i;o=i}if(s){if(o===void 0)return e(n[0],r);throw o}},"resolveExtensionsSync"),We=c(async(t,r,e,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,o=_t(r.parentURL,n);if(u(3,"resolveBase",{specifier:t,context:r,specifierStartsWithFileUrl:t.startsWith(P),isRelativePath:F(t),resolveTsExtensions:o,allowJs:n}),(t.startsWith(P)||F(t))&&o){const a=await z(t,r,e,void 0);if(u(3,"resolveBase resolved",{specifier:t,context:r,resolved:a}),a)return a}try{return await e(t,r)}catch(a){if(u(3,"resolveBase error",{specifier:t,context:r,error:a}),a instanceof Error){const i=a;if(b(i.code)){const l=D(i);if(l){const f=await z(l,r,e,void 0);if(f)return f}}}throw a}},"resolveBase"),at=c((t,r,e,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,o=_t(r.parentURL,n);if(u(3,"resolveBaseSync",{specifier:t,context:r,specifierStartsWithFileUrl:t.startsWith(P),isRelativePath:F(t),resolveTsExtensions:o,allowJs:n}),(t.startsWith(P)||F(t))&&o){const a=J(t,r,e,void 0);if(u(3,"resolveBaseSync resolved",{specifier:t,context:r,resolved:a}),a)return a}try{return e(t,r)}catch(a){if(u(3,"resolveBaseSync error",{specifier:t,context:r,error:a}),a instanceof Error){const i=a;if(b(i.code)){const l=D(i);if(l){const f=J(l,r,e,void 0);if(f)return f}}}throw a}},"resolveBaseSync"),it=c(async(t,r,e,s)=>{if(u(3,"resolveDirectory",{specifier:t,context:r,isDirectory:Q.test(t)}),(t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),Q.test(t)){const n=new URL(t,r.parentURL);return n.pathname=v.join(n.pathname,"index"),await z(n.toString(),r,e,!0)}try{return await We(t,r,e,s)}catch(n){if(n instanceof Error){u(3,"resolveDirectory error",{specifier:t,context:r,error:n});const o=n;if(o.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const a=D(o);if(a){if(t.startsWith("#"))throw n;const i=$t(t,a);if(i?.kind==="root-exports")throw n;if(i?.mainUrl){try{return await e(i.mainUrl,r)}catch(m){if(!X(m))throw m}try{return await it(i.mainUrl,r,e,s)}catch(m){if(!X(m))throw m}}const l=`${a}/index`,f=await z(l,r,e);if(f)return f}}}throw n}},"resolveDirectory"),ct=c((t,r,e,s)=>{if(u(3,"resolveDirectorySync",{specifier:t,context:r,isDirectory:Q.test(t)}),(t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),Q.test(t)){const n=k(r);if(n&&!q(t))return at(t,r,e,s);const o=new URL(t,r.parentURL);return o.pathname=v.join(o.pathname,"index"),n?J(R(o),r,e,!1)??at(t,r,e,s):J(o.toString(),r,e,!0)}try{return at(t,r,e,s)}catch(n){if(n instanceof Error){u(3,"resolveDirectorySync error",{specifier:t,context:r,error:n});const o=n;if(o.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const a=D(o);if(a){if(t.startsWith("#"))throw n;const i=$t(t,a);if(i?.kind==="root-exports")throw n;if(i?.mainUrl){try{return e(i.mainUrl,r)}catch(m){if(!X(m))throw m}try{return ct(i.mainUrl,r,e,s)}catch(m){if(!X(m))throw m}}const l=`${a}/index`,f=J(l,r,e);if(f)return f}}}throw n}},"resolveDirectorySync"),Oe=c(async(t,r,e,s)=>{const n=Ct(t);if(u(3,"resolveTsPaths",{specifier:t,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:C(r.parentURL)}),n&&s.parsedTsconfig&&!C(r.parentURL)){const o=gt(s.parsedTsconfig,t);u(3,"resolveTsPaths",{possiblePaths:o});for(const a of o)try{return await it(S(a).toString(),r,e,s)}catch{}}return it(t,r,e,s)},"resolveTsPaths"),$e=c((t,r,e,s)=>{const n=Ct(t);if(u(3,"resolveTsPathsSync",{specifier:t,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:C(r.parentURL)}),n&&s.parsedTsconfig&&!C(r.parentURL)){const o=gt(s.parsedTsconfig,t);u(3,"resolveTsPathsSync",{possiblePaths:o});for(const a of o)try{return ct(S(a).toString(),r,e,s)}catch{}}return ct(t,r,e,s)},"resolveTsPathsSync"),V="tsx://",mt=c((t,r)=>{const e=t.indexOf("#"),s=e===-1?t:t.slice(0,e),n=e===-1?"":t.slice(e);return`${s}${s.includes("?")?"&":"?"}${r}${n}`},"addQuery"),K=c((t,r)=>T(t)?`${t}${t.includes("#")?"&":"#"}${I}${r}`:mt(t,`${I}${r}`),"addNamespace"),Bt=c((t,r)=>{const e=r.indexOf("#"),s=r[0]==="?"?r.slice(1,e===-1?void 0:e):"",n=e===-1?"":r.slice(e),o=t.indexOf("#"),a=o===-1?t:t.slice(0,o),i=o===-1?"":t.slice(o),l=s?mt(a,s):a;return new URL(`${l}${n||i}`).toString()},"mergeUrlMetadata"),qt=c((t,r,e)=>{if(r!=="commonjs"||!t.startsWith(P)||!Z.test(t))return t;const s=new URL(t),n=[rt(s.search,[I]),...e?[`namespace=${encodeURIComponent(e)}`]:[]].filter(Boolean).join("&");return n?(s.pathname+=`%3F${n}`,s.searchParams.set(O,"1"),s.toString()):t},"preserveCommonJsQueryIdentity"),be=c(t=>{const r=c(async(e,s,n)=>{if(!t.active||e.startsWith("node:"))return n(e,s);const o=s.parentURL&&w(s.parentURL);let a=T(e)?o:w(e)??o;if(t.namespace){let h;if(e.startsWith(V)){try{h=JSON.parse(e.slice(V.length))}catch{}h?.namespace&&(a=h.namespace)}if(t.namespace!==a)return n(e,s);h&&(e=h.specifier,s.parentURL=h.parentURL)}if(T(e)){const h=await n(e,s);return t.namespace?{...h,url:K(h.url,t.namespace)}:h}const i=Jt(e,k(s)),l=i===-1?e:e.slice(0,i),f=i===-1?"":e.slice(i),m=await Oe(l,s,n,t);if(u(2,"nextResolve",{resolved:m}),m.format==="builtin")return m;const d={...m};d.url.startsWith(P)&&(d.format==="module-typescript"?d.format="module":d.format==="commonjs-typescript"?d.format="commonjs":!d.format&&!Mt(d.url)&&(d.format=await le(d.url),u(2,"getFormatFromFileUrl",{resolved:d,format:d.format}))),f&&(d.url=Bt(d.url,f));const p=s.parentURL&&d.format==="commonjs"&&Z.test(d.url)&&(new URL(s.parentURL).searchParams.has(W)||ye(s.parentURL,e,je));return a&&w(d.url)===void 0&&(d.url=K(d.url,a)),p&&(d.url=mt(d.url,fe)),(a||p)&&(d.url=qt(d.url,d.format,a)),d},"resolve");return A?async(e,s,n)=>{u(2,"resolve",{specifier:e,context:s});const o=await r(e,s,n);return u(1,"resolved",{specifier:e,context:s,result:o}),o}:r},"createResolve"),Ce=c(t=>{const r=c((e,s,n)=>{if(!t.active||e.startsWith("node:")||k(s)&&tt())return n(e,s);const o=s.parentURL&&w(s.parentURL);let a=T(e)?o:w(e)??o;if(t.namespace){let p;if(e.startsWith(V)){try{p=JSON.parse(e.slice(V.length))}catch{}p?.namespace&&(a=p.namespace)}if(t.namespace!==a)return n(e,s);p&&(e=p.specifier,s.parentURL=p.parentURL)}if(T(e)){const p=n(e,s);return t.namespace?{...p,url:K(p.url,t.namespace)}:p}const i=Jt(e,k(s)),l=i===-1?e:e.slice(0,i),f=i===-1?"":e.slice(i),m=$e(l,s,n,t);if(u(2,"nextResolve",{resolved:m}),m.format==="builtin")return m;const d={...m};return d.url.startsWith(P)&&(d.format==="module-typescript"?d.format="module":d.format==="commonjs-typescript"?d.format="commonjs":!d.format&&!Mt(d.url)&&(d.format=ue(d.url),u(2,"getFormatFromFileUrlSync",{resolved:d,format:d.format}))),f&&(d.url=Bt(d.url,f)),a&&w(d.url)===void 0&&(d.url=K(d.url,a)),d.url=qt(d.url,d.format,a),d},"resolve");return A?(e,s,n)=>{u(2,"resolveSync",{specifier:e,context:s});const o=r(e,s,n);return u(1,"resolvedSync",{specifier:e,context:s,result:o}),o}:r},"createResolveSync"),Qt=c(t=>(r,e)=>{if(!e)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const s=e.startsWith(P)?e:S(e).toString();return import(`tsx://${JSON.stringify({specifier:r,parentURL:s,namespace:t})}`)},"createScopedImport");let Ht=!1;const Je=c(t=>{const r=[];for(let e=0;e<t.length;e+=1){const s=t[e];if(s==="--import"){const n=t[e+1];n&&r.push(n),e+=1}else s.startsWith("--import=")&&r.push(s.slice(9))}return r},"collectImportSpecifiers"),Ne=c(()=>[...(process.env.NODE_OPTIONS??"").matchAll(/(?:^|\s)--import(?:=|\s+)(\S+)/g)].map(([,t])=>t),"collectNodeOptionsImportSpecifiers"),xt=[new URL("loader.mjs",import.meta.url).toString(),new URL("esm/index.mjs",import.meta.url).toString()],Me=new Set(["tsx","tsx/esm",...xt,...xt.map(t=>decodeURI(new URL(t).pathname))]),_e=c(t=>Me.has(t),"isTsxImport"),Gt=c(t=>/\.(?:[cm]?ts|tsx)(?:[?#].*)?$/.test(t),"isTypeScriptImport"),Ae=c(()=>{const t=Je(process.execArgv),r=t.findIndex(_e);return r>0&&t.slice(0,r).some(Gt)},"hasCliTypeScriptPreload"),Be=Ne().some(Gt)||Ae(),Dt=typeof j.registerHooks=="function"&&L(Kt)&&!Be,qe=c(t=>{if(!j.register&&!Dt)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!Ht){const{_resolveFilename:i}=j;j._resolveFilename=(l,...f)=>i(re(l),...f),Ht=!0}const{sourceMapsEnabled:r}=process;if(process.setSourceMapsEnabled(!0),Dt){const i=wt({namespace:t?.namespace,onImport:t?.onImport,tsconfig:t?.tsconfig}),l=j.registerHooks({load:Ie(i),resolve:Ce(i)}),f=c(async()=>{i.active=!1,l.deregister(),r===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return t?.namespace&&(f.import=Qt(t.namespace),f.unregister=f),f}const{port1:e,port2:s}=new zt;j.register(`./esm/index.mjs?${kt.randomUUID()}`,{parentURL:import.meta.url,data:{port:s,namespace:t?.namespace,tsconfig:t?.tsconfig},transferList:[s]});const n=t?.onImport,o=n&&(i=>{i.type==="load"&&n(i.url)});o&&(e.on("message",o),e.unref());const a=c(()=>(r===!1&&process.setSourceMapsEnabled(!1),o&&e.off("message",o),e.postMessage("deactivate"),new Promise(i=>{const l=c(f=>{f.type==="deactivated"&&(i(),e.off("message",l))},"onDeactivated");e.on("message",l)})),"unregister");return t?.namespace&&(a.import=Qt(t.namespace),a.unregister=a),a},"register");export{de as a,Re as b,me as c,be as d,ce as e,qe as r};
|
package/dist/repl.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var u=Object.defineProperty;var s=(e,r)=>u(e,"name",{value:r,configurable:!0});var c=require("node:repl"),l=require("./package-
|
|
1
|
+
"use strict";var u=Object.defineProperty;var s=(e,r)=>u(e,"name",{value:r,configurable:!0});var c=require("node:repl"),l=require("./package-CQQPX_Gw.cjs"),q=require("./index-LWEOpzQe.cjs");require("node:path"),require("node:url"),require("esbuild"),require("node:crypto"),require("./node-features-CEjg7cMX.cjs"),require("node:fs"),require("node:os"),require("./temporary-directory-B83uKxJF.cjs"),console.log(`Welcome to tsx v${l.version} (Node.js ${process.version}).
|
|
2
2
|
Type ".help" for more information.`);const i=c.start(),{eval:p}=i,v=s(async function(e,r,o,t){const a=await q.transform(e,o,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
|
3
3
|
`}));return p.call(this,a.code,r,o,t)},"preEval");i.eval=v;
|
package/dist/repl.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var p=Object.defineProperty;var t=(o,r)=>p(o,"name",{value:r,configurable:!0});import a from"node:repl";import{v as l}from"./package-
|
|
1
|
+
var p=Object.defineProperty;var t=(o,r)=>p(o,"name",{value:r,configurable:!0});import a from"node:repl";import{v as l}from"./package-DD1BsAZe.mjs";import{t as c}from"./index-CVGQLgGk.mjs";import"node:path";import"node:url";import"esbuild";import"node:crypto";import"./node-features-JeyyvQz6.mjs";import"node:fs";import"node:os";import"./temporary-directory-BDDVQOvU.mjs";console.log(`Welcome to tsx v${l} (Node.js ${process.version}).
|
|
2
2
|
Type ".help" for more information.`);const s=a.start(),{eval:f}=s,v=t(async function(o,r,e,i){const m=await c(o,e,{loader:"ts",tsconfigRaw:{compilerOptions:{preserveValueImports:!0}},define:{require:"global.require"}}).catch(n=>(console.log(n.message),{code:`
|
|
3
3
|
`}));return f.call(this,m.code,r,e,i)},"preEval");s.eval=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var a=(r,t)=>m(r,"name",{value:t,configurable:!0});import{r as o}from"./get-pipe-path-_tAJyU_v.mjs";import{r as n}from"./register-
|
|
1
|
+
var m=Object.defineProperty;var a=(r,t)=>m(r,"name",{value:t,configurable:!0});import{r as o}from"./get-pipe-path-_tAJyU_v.mjs";import{r as n}from"./register--Y-HowfU.mjs";let e;const s=a((r,t)=>(e||(e=n({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),i=a((r,t,c)=>(e||(e=n({namespace:Date.now().toString()})),e.resolve(r,t,c)),"resolve");i.paths=o.resolve.paths,s.resolve=i,s.main=o.main,s.extensions=o.extensions,s.cache=o.cache;export{s as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=Object.defineProperty;var a=(r,t)=>c(r,"name",{value:t,configurable:!0});var s=require("./get-pipe-path-D4YM6rQt.cjs"),n=require("./register-
|
|
1
|
+
"use strict";var c=Object.defineProperty;var a=(r,t)=>c(r,"name",{value:t,configurable:!0});var s=require("./get-pipe-path-D4YM6rQt.cjs"),n=require("./register-BxraCus2.cjs");let e;const i=a((r,t)=>(e||(e=n.register({namespace:Date.now().toString()})),e.require(r,t)),"tsxRequire"),o=a((r,t,u)=>(e||(e=n.register({namespace:Date.now().toString()})),e.resolve(r,t,u)),"resolve");o.paths=s.require.resolve.paths,i.resolve=o,i.main=s.require.main,i.extensions=s.require.extensions,i.cache=s.require.cache,exports.tsxRequire=i;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r="4.23.8";exports.version=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="4.23.8";export{r as v};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var kt=Object.defineProperty;var c=(t,r)=>kt(t,"name",{value:r,configurable:!0});import xt from"node:crypto";import T from"node:module";import{MessageChannel as Gt}from"node:worker_threads";import{i as E,b as Xt,e as K,m as zt}from"./node-features-JeyyvQz6.mjs";import{l as dt,t as lt,g as Vt,a as Kt,d as N,b as u,e as Y,f as v,h as _,j as Z,k as Yt,m as y,n as Zt,o as A,p as ut,q as ft,w as pt,s as B,u as ht,v as j,x as te}from"./register-DjEWBuYC.mjs";import{pathToFileURL as P,fileURLToPath as R}from"node:url";import{readFileSync as ee,existsSync as re}from"node:fs";import{readFile as se}from"node:fs/promises";import{p as ne,i as gt,t as yt,a as q,b as Pt,c as oe,r as tt}from"./index-CVGQLgGk.mjs";import{p as St}from"./client-D_mPDF5S.mjs";import S from"node:path";const ae=c(()=>({active:!0,parsedTsconfig:void 0}),"createDefaultData"),vt=c(t=>{const r={active:!0,namespace:t?.namespace,onImport:t?.onImport,parsedTsconfig:void 0,port:t?.port,tsconfig:t?.tsconfig};return t?.tsconfig!==!1&&(r.parsedTsconfig=dt(t?.tsconfig??process.env.TSX_TSCONFIG_PATH)),r},"createData"),ie=c(t=>async r=>{if(!r)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
-
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(t,vt(r)),r.port&&r.port.on("message",e=>{e==="deactivate"&&(t.active=!1,r.port.postMessage({type:"deactivated"}))})},"createInitialize"),ce=c(t=>()=>(t.parsedTsconfig=dt(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"createGlobalPreload"),me=c(t=>{const{pathname:r}=new URL(t),e=S.extname(r);if(e===".mts"||e===".mjs")return"module";if(e===".cts"||e===".cjs")return"commonjs";if(e===".js"||lt.includes(e))return Vt(t)},"getFormatFromFileUrl"),de=c(t=>{const{pathname:r}=new URL(t),e=S.extname(r);if(e===".mts"||e===".mjs")return"module";if(e===".cts"||e===".cjs")return"commonjs";if(e===".js"||lt.includes(e))return Kt(t)},"getFormatFromFileUrlSync"),Ut="tsx-namespace",Q=`${Ut}=`,L="tsx-commonjs-export-preparse",le=`${L}=1`,F="tsx-commonjs-virtual-query",W=new Map,et=c((t,r)=>t.slice(1).split("&").filter(e=>e&&r.every(s=>!e.startsWith(s))).join("&"),"getQueryWithoutParameters"),D=c((t,r)=>{const e=et(t,r);return e?`?${e}`:""},"getSearchWithoutParameters"),ue=c(t=>t.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),fe=c(t=>{const r=ue(t);if(/^\s*export\s*\*/.test(r))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(r))return"namespace";const e=r.match(/\{([^}]*)\}/)?.[1];if(e)return e.split(",").some(s=>{const n=s.trim().split(/\s+as\s+/)[0];return!!(n&&n!=="default")})?"named":void 0},"getCommonJsImportBinding"),pe=c((t,r,e)=>{const s=W.get(t);if(!s)return!1;try{const[n]=ne(s);return n.some(a=>{if(a.d!==-1||a.n!==r)return!1;const i=fe(s.slice(a.ss,a.s));return i==="named"||e&&i==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),U=c(t=>{const r=t.indexOf("?"),e=t.indexOf("#");if(!(r===-1||e!==-1&&e<r))return new URLSearchParams(t.slice(r,e===-1?void 0:e)).get(Ut)??void 0},"getNamespace"),Rt=E(Xt)?"importAttributes":"importAssertions",wt=c(t=>t==="commonjs"||t==="commonjs-typescript","isCommonJsFormat"),Tt=c(t=>t==="module-typescript"||t==="typescript","isModuleTypeScriptFormat"),he=E(K),ge=[`${F}=`],H=[`${L}=`,`${F}=`],w=c((t,r)=>r.parsedTsconfig&&Yt(r.parsedTsconfig,t)?r.parsedTsconfig.config:void 0,"getTsconfigRaw"),ye=c(t=>{if(!t.searchParams.has(F))return;const{pathname:r}=t,e=r.toLowerCase().lastIndexOf("%3f");if(e===-1)return;const s=new URL(t);return s.pathname=r.slice(0,e),s.search="",R(s)},"getFilePathFromVirtualQuery"),rt=c(t=>{const r=t.startsWith(y)?new URL(t):void 0,e=r?R(r):t,s=r&&ye(r),n=s||e,a=r&&s?P(n).toString()+D(r.search,ge):t;return{fileUrl:r,filePath:n,loadUrl:a}},"getFileLoadContext"),It=c((t,r)=>{if(!r?.search)return t;const e=D(r.search,H);return e?P(t).toString()+e:t},"getTransformPath"),Et=c((t,r,e)=>{const s=[...r?et(r.search,[Q,...H]).split("&").filter(Boolean):[],...e?[`namespace=${encodeURIComponent(e)}`]:[]].join("&");return s?`${t}?${s}`:t},"getFilePathWithQuery"),Pe=new TextDecoder,jt=c(t=>typeof t=="string"?t:Pe.decode(t),"decodeSource"),Se=c((t,r)=>{const e=new URL(r),s=r.startsWith(y)?rt(r).filePath:void 0;e.searchParams.delete("tsx-namespace"),e.searchParams.delete(L),e.searchParams.delete(F),s&&(e.pathname=new URL(P(s)).pathname);const n=e.toString();return t.port&&t.port.postMessage({type:"load",url:n}),t.onImport?.(n),n},"notifyLoad"),Lt=c((t,r)=>{if(!t.active)return!1;const e=U(r);if(t.namespace!==e)return!1;const s=Se(t,r);return St.send&&St.send({type:"dependency",path:s}),!0},"prepareLoad"),Ft=c((t,r)=>{if(!Zt.test(t))return r;const e=r[Rt];return e?.type?r:{...r,[Rt]:{...e,type:"json"}}},"prepareJsonAttributes"),st=c(({conditions:t})=>t?.includes("require")===!0&&!t.includes("import"),"isCommonJsRequireContext$1"),ve=c(t=>{const r=c(async(e,s,n)=>{if(!Lt(t,e))return n(e,s);const a=U(e),{fileUrl:i,filePath:m,loadUrl:d}=rt(e),l=Ft(d,s),o=await n(d,l);u(3,"loaded by next loader",{url:e,loadUrl:d,loaded:o});const f=i?.searchParams.has(L)===!0,p=o.format,I=i?new URL(P(m)):void 0;if(I&&i&&(I.search=D(i.search,H)),wt(p)&&i&&o.responseURL?.startsWith("file:")&&!m.endsWith(".cjs")){const h=await se(P(m),"utf8"),$=gt(h);if(p==="commonjs-typescript"||!m.endsWith(".js")||$){if(!he){if(f&&$&&Y.test(m)){const M=await yt(h,m,{define:{"import.meta.url":JSON.stringify(I.toString())},tsconfigRaw:w(m,t)});return W.set(e,M.code),{format:"module",source:v(M)}}return o}if(!a&&!f&&!m.endsWith(".cts"))return o;const ct=!!(a||f||D(i.search,H)),mt=q(h,It(m,i),{cjsBanner:ct?`require = require("node:module").createRequire(${JSON.stringify(P(m).toString())});`:void 0,tsconfigRaw:w(m,t)});if(o.format="commonjs",o.source=v(mt),ct){const M=Et(m,i,a);o.responseURL=`data:text/javascript,${encodeURIComponent(mt.code)}?filePath=${encodeURIComponent(M)}`}return u(3,"returning CJS export annotation",o),o}}if(!o.source)return o;const g=jt(o.source),J=p==="json"&&!st(s);if(p==="commonjs-typescript"){const h=q(g,m,{tsconfigRaw:w(m,t)});return{...o,format:"commonjs",source:v(h)}}if(J||Tt(p)||_.test(e)){const h=await yt(g,m,{tsconfigRaw:w(m,t)});return W.set(e,h.code),{format:"module",source:v(h)}}if(o.format==="module"){const h=Pt(m,g);h?(o.source=v(h),W.set(e,h.code)):W.set(e,g)}return o},"load");return N?async(e,s,n)=>{u(2,"load",{url:e,context:s});const a=await r(e,s,n);return u(1,"loaded",{url:e,result:a}),a}:r},"createLoad"),Ue=c(t=>{const r=c((e,s,n)=>{if(st(s)&&Z()||!Lt(t,e))return n(e,s);const a=U(e),{fileUrl:i,filePath:m,loadUrl:d}=rt(e),l=Ft(d,s),o=n(d,l);u(3,"loaded by next loader",{url:e,loadUrl:d,loaded:o});const f=o.format;if(wt(f)&&E(K)&&o.responseURL?.startsWith("file:")&&!m.endsWith(".cjs")){const g=ee(P(m),"utf8");if(f==="commonjs-typescript"||!m.endsWith(".js")||gt(g)){const J=q(g,It(m,i),{tsconfigRaw:w(m,t)}),h=!a&&Z(),$=Et(m,i,a);return o.format="commonjs",o.shouldBeReloadedByCJSLoader=h,o.source=v(J),h||(o.responseURL=`data:text/javascript,${encodeURIComponent(J.code)}?filePath=${encodeURIComponent($)}`),u(3,"returning CJS export annotation",o),o}}if(!o.source)return o;const p=jt(o.source),I=f==="json"&&!st(s);if(f==="commonjs-typescript"){const g=q(p,m,{tsconfigRaw:w(m,t)});return{...o,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:v(g)}}if(I||Tt(f)||_.test(e)){const g=oe(p,m,{tsconfigRaw:w(m,t)});return{format:"module",source:v(g)}}if(o.format==="module"){const g=Pt(m,p);g&&(o.source=v(g))}return o},"load");return N?(e,s,n)=>{u(2,"loadSync",{url:e,context:s});const a=r(e,s,n);return u(1,"loadedSync",{url:e,result:a}),a}:r},"createLoadSync"),Re=c(t=>{if(A(t)||t.startsWith("#")||t.includes(":"))return!1;const r=t.split("/"),e=r[0]?.startsWith("@")?2:1;return r.length>e&&r.slice(0,e).every(Boolean)},"isBarePackageSubpath"),we=c(t=>{const r=t.lastIndexOf(ut);if(r===-1)return;const s=t.slice(r+ut.length).split(S.sep),n=s[0]?.startsWith("@")?2:1;if(!(s.length<=n||!s[n-1]))return S.join(t.slice(0,r),"node_modules",...s.slice(0,n))},"getPackageDirectory"),Wt=c((t,r)=>{if(!Re(t)||!r.startsWith(y))return;const e=R(r),s=we(e);if(!s)return;const a=tt(S.join(s,"package.json"))?.exports;if(a!=null)return{kind:"root-exports"};const i=tt(S.join(e,"package.json"));return typeof i?.main!="string"||!i.main?{kind:"legacy-directory"}:{kind:"legacy-directory",mainUrl:P(S.resolve(e,i.main)).toString()}},"getPackageSubpathDirectoryInfo"),Te=E(K),Ot=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,bt=c(t=>!A(t)&&!Ot.test(t),"isTsconfigPathAliasSpecifier"),k=c(t=>{if(t.url)return t.url;const r=t.message.match(/^Cannot find module '([^']+)'/);if(r){const[,s]=r;return s}const e=t.message.match(/^Cannot find package '([^']+)'/);if(e){const[,s]=e;if(!S.isAbsolute(s))return;const n=P(s);if(n.pathname.endsWith("/")&&(n.pathname+="package.json"),n.pathname.endsWith("/package.json")){const a=tt(n);if(a?.main)return new URL(a.main,n).toString()}else return n.toString()}},"getMissingPathFromNotFound"),O=c(t=>t==="ERR_MODULE_NOT_FOUND"||t==="MODULE_NOT_FOUND","isModuleNotFound"),x=c(t=>t instanceof Error&&(O(t.code)||t.code==="ERR_UNSUPPORTED_DIR_IMPORT"),"isDirectoryEntryMiss"),G=c(t=>t.conditions.includes("require")&&!t.conditions.includes("import"),"isCommonJsRequireContext"),nt=c(t=>{const r=t.indexOf("?"),e=t.indexOf("#");return r===-1?e:e===-1?r:Math.min(r,e)},"getUrlMetadataIndex"),Ct=c((t,r)=>r||!A(t)&&!Ot.test(t)?t.indexOf("?"):nt(t),"getSpecifierMetadataIndex"),Jt=c(t=>{if(t?.startsWith(y))return R(new URL(t))},"getParentFilePath"),Ie=c(t=>{if(!t)return!1;const r=Jt(t);if(r)return _.test(r);const e=nt(t);return _.test(e===-1?t:t.slice(0,e))},"isTypeScriptParent"),b=c(t=>{const r=Jt(t);return r!==void 0&&ft(r)},"isParentDependency"),$t=c(t=>S.extname(new URL(t).pathname)===".js"&&ft(R(t)),"isImplicitJavaScriptDependency"),Mt=c((t,r)=>Ie(t)||r&&!b(t),"resolvesTsExtensions"),Ee=c((t,r)=>{const e=nt(t),s=e===-1?t:t.slice(0,e);try{if(s.startsWith(y))return R(s);if(S.isAbsolute(s))return s;if(j(s)&&r?.startsWith(y))return R(new URL(s,r))}catch{}},"getProbeFilePath"),Nt=c((t,r)=>{const e=Ee(t,r);return e!==void 0&&!re(e)},"candidateDoesntExist"),X=c(async(t,r,e,s)=>{const n=ht(t);if(u(3,"resolveExtensions",{url:t,context:r,throwError:s,tryPaths:n}),!n)return;let a;for(const i of n)if(!Nt(i,r.parentURL))try{return await e(i,r)}catch(m){const{code:d}=m;if(!O(d)&&d!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw m;a=m}if(s){if(a===void 0)return e(n[0],r);throw a}},"resolveExtensions"),C=c((t,r,e,s)=>{const n=ht(t);if(u(3,"resolveExtensionsSync",{url:t,context:r,throwError:s,tryPaths:n}),!n)return;let a;for(const i of n)if(!Nt(i,r.parentURL))try{return e(i,r)}catch(m){const{code:d}=m;if(!O(d)&&d!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw m;a=m}if(s){if(a===void 0)return e(n[0],r);throw a}},"resolveExtensionsSync"),je=c(async(t,r,e,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,a=Mt(r.parentURL,n);if(u(3,"resolveBase",{specifier:t,context:r,specifierStartsWithFileUrl:t.startsWith(y),isRelativePath:j(t),resolveTsExtensions:a,allowJs:n}),(t.startsWith(y)||j(t))&&a){const i=await X(t,r,e,void 0);if(u(3,"resolveBase resolved",{specifier:t,context:r,resolved:i}),i)return i}try{return await e(t,r)}catch(i){if(u(3,"resolveBase error",{specifier:t,context:r,error:i}),i instanceof Error){const m=i;if(O(m.code)){const d=k(m);if(d){const l=await X(d,r,e,void 0);if(l)return l}}}throw i}},"resolveBase"),ot=c((t,r,e,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,a=Mt(r.parentURL,n);if(u(3,"resolveBaseSync",{specifier:t,context:r,specifierStartsWithFileUrl:t.startsWith(y),isRelativePath:j(t),resolveTsExtensions:a,allowJs:n}),(t.startsWith(y)||j(t))&&a){const i=C(t,r,e,void 0);if(u(3,"resolveBaseSync resolved",{specifier:t,context:r,resolved:i}),i)return i}try{return e(t,r)}catch(i){if(u(3,"resolveBaseSync error",{specifier:t,context:r,error:i}),i instanceof Error){const m=i;if(O(m.code)){const d=k(m);if(d){const l=C(d,r,e,void 0);if(l)return l}}}throw i}},"resolveBaseSync"),at=c(async(t,r,e,s)=>{if(u(3,"resolveDirectory",{specifier:t,context:r,isDirectory:B.test(t)}),(t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),B.test(t)){const n=new URL(t,r.parentURL);return n.pathname=S.join(n.pathname,"index"),await X(n.toString(),r,e,!0)}try{return await je(t,r,e,s)}catch(n){if(n instanceof Error){u(3,"resolveDirectory error",{specifier:t,context:r,error:n});const a=n;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const i=k(a);if(i){if(t.startsWith("#"))throw n;const m=Wt(t,i);if(m?.kind==="root-exports")throw n;if(m?.mainUrl){try{return await e(m.mainUrl,r)}catch(o){if(!x(o))throw o}try{return await at(m.mainUrl,r,e,s)}catch(o){if(!x(o))throw o}}const d=`${i}/index`,l=await X(d,r,e);if(l)return l}}}throw n}},"resolveDirectory"),it=c((t,r,e,s)=>{if(u(3,"resolveDirectorySync",{specifier:t,context:r,isDirectory:B.test(t)}),(t==="."||t===".."||t.endsWith("/.."))&&(t+="/"),B.test(t)){const n=G(r);if(n&&!A(t))return ot(t,r,e,s);const a=new URL(t,r.parentURL);return a.pathname=S.join(a.pathname,"index"),n?C(R(a),r,e,!1)??ot(t,r,e,s):C(a.toString(),r,e,!0)}try{return ot(t,r,e,s)}catch(n){if(n instanceof Error){u(3,"resolveDirectorySync error",{specifier:t,context:r,error:n});const a=n;if(a.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const i=k(a);if(i){if(t.startsWith("#"))throw n;const m=Wt(t,i);if(m?.kind==="root-exports")throw n;if(m?.mainUrl){try{return e(m.mainUrl,r)}catch(o){if(!x(o))throw o}try{return it(m.mainUrl,r,e,s)}catch(o){if(!x(o))throw o}}const d=`${i}/index`,l=C(d,r,e);if(l)return l}}}throw n}},"resolveDirectorySync"),Le=c(async(t,r,e,s)=>{const n=bt(t);if(u(3,"resolveTsPaths",{specifier:t,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:b(r.parentURL)}),n&&s.parsedTsconfig&&!b(r.parentURL)){const a=pt(s.parsedTsconfig,t);u(3,"resolveTsPaths",{possiblePaths:a});for(const i of a)try{return await at(P(i).toString(),r,e,s)}catch{}}return at(t,r,e,s)},"resolveTsPaths"),Fe=c((t,r,e,s)=>{const n=bt(t);if(u(3,"resolveTsPathsSync",{specifier:t,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:b(r.parentURL)}),n&&s.parsedTsconfig&&!b(r.parentURL)){const a=pt(s.parsedTsconfig,t);u(3,"resolveTsPathsSync",{possiblePaths:a});for(const i of a)try{return it(P(i).toString(),r,e,s)}catch{}}return it(t,r,e,s)},"resolveTsPathsSync"),z="tsx://",V=c((t,r)=>{const e=t.indexOf("#"),s=e===-1?t:t.slice(0,e),n=e===-1?"":t.slice(e);return`${s}${s.includes("?")?"&":"?"}${r}${n}`},"addQuery"),_t=c((t,r)=>{const e=r.indexOf("#"),s=r[0]==="?"?r.slice(1,e===-1?void 0:e):"",n=e===-1?"":r.slice(e),a=t.indexOf("#"),i=a===-1?t:t.slice(0,a),m=a===-1?"":t.slice(a),d=s?V(i,s):i;return new URL(`${d}${n||m}`).toString()},"mergeUrlMetadata"),At=c((t,r,e)=>{if(r!=="commonjs"||!t.startsWith(y)||!Y.test(t))return t;const s=new URL(t),n=[et(s.search,[Q]),...e?[`namespace=${encodeURIComponent(e)}`]:[]].filter(Boolean).join("&");return n?(s.pathname+=`%3F${n}`,s.searchParams.set(F,"1"),s.toString()):t},"preserveCommonJsQueryIdentity"),We=c(t=>{const r=c(async(e,s,n)=>{if(!t.active||e.startsWith("node:"))return n(e,s);let a=U(e)??(s.parentURL&&U(s.parentURL));if(t.namespace){let p;if(e.startsWith(z)){try{p=JSON.parse(e.slice(z.length))}catch{}p?.namespace&&(a=p.namespace)}if(t.namespace!==a)return n(e,s);p&&(e=p.specifier,s.parentURL=p.parentURL)}const i=Ct(e,G(s)),m=i===-1?e:e.slice(0,i),d=i===-1?"":e.slice(i),l=await Le(m,s,n,t);if(u(2,"nextResolve",{resolved:l}),l.format==="builtin")return l;const o={...l};o.url.startsWith(y)&&(o.format==="module-typescript"?o.format="module":o.format==="commonjs-typescript"?o.format="commonjs":!o.format&&!$t(o.url)&&(o.format=await me(o.url),u(2,"getFormatFromFileUrl",{resolved:o,format:o.format}))),d&&(o.url=_t(o.url,d));const f=s.parentURL&&o.format==="commonjs"&&Y.test(o.url)&&(new URL(s.parentURL).searchParams.has(L)||pe(s.parentURL,e,Te));return a&&U(o.url)===void 0&&(o.url=V(o.url,`${Q}${a}`)),f&&(o.url=V(o.url,le)),(a||f)&&(o.url=At(o.url,o.format,a)),o},"resolve");return N?async(e,s,n)=>{u(2,"resolve",{specifier:e,context:s});const a=await r(e,s,n);return u(1,"resolved",{specifier:e,context:s,result:a}),a}:r},"createResolve"),Oe=c(t=>{const r=c((e,s,n)=>{if(!t.active||e.startsWith("node:")||G(s)&&Z())return n(e,s);let a=U(e)??(s.parentURL&&U(s.parentURL));if(t.namespace){let f;if(e.startsWith(z)){try{f=JSON.parse(e.slice(z.length))}catch{}f?.namespace&&(a=f.namespace)}if(t.namespace!==a)return n(e,s);f&&(e=f.specifier,s.parentURL=f.parentURL)}const i=Ct(e,G(s)),m=i===-1?e:e.slice(0,i),d=i===-1?"":e.slice(i),l=Fe(m,s,n,t);if(u(2,"nextResolve",{resolved:l}),l.format==="builtin")return l;const o={...l};return o.url.startsWith(y)&&(o.format==="module-typescript"?o.format="module":o.format==="commonjs-typescript"?o.format="commonjs":!o.format&&!$t(o.url)&&(o.format=de(o.url),u(2,"getFormatFromFileUrlSync",{resolved:o,format:o.format}))),d&&(o.url=_t(o.url,d)),a&&U(o.url)===void 0&&(o.url=V(o.url,`${Q}${a}`)),o.url=At(o.url,o.format,a),o},"resolve");return N?(e,s,n)=>{u(2,"resolveSync",{specifier:e,context:s});const a=r(e,s,n);return u(1,"resolvedSync",{specifier:e,context:s,result:a}),a}:r},"createResolveSync"),Bt=c(t=>(r,e)=>{if(!e)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const s=e.startsWith(y)?e:P(e).toString();return import(`tsx://${JSON.stringify({specifier:r,parentURL:s,namespace:t})}`)},"createScopedImport");let qt=!1;const be=c(t=>{const r=[];for(let e=0;e<t.length;e+=1){const s=t[e];if(s==="--import"){const n=t[e+1];n&&r.push(n),e+=1}else s.startsWith("--import=")&&r.push(s.slice(9))}return r},"collectImportSpecifiers"),Ce=c(()=>[...(process.env.NODE_OPTIONS??"").matchAll(/(?:^|\s)--import(?:=|\s+)(\S+)/g)].map(([,t])=>t),"collectNodeOptionsImportSpecifiers"),Qt=[new URL("loader.mjs",import.meta.url).toString(),new URL("esm/index.mjs",import.meta.url).toString()],Je=new Set(["tsx","tsx/esm",...Qt,...Qt.map(t=>decodeURI(new URL(t).pathname))]),$e=c(t=>Je.has(t),"isTsxImport"),Dt=c(t=>/\.(?:[cm]?ts|tsx)(?:[?#].*)?$/.test(t),"isTypeScriptImport"),Me=c(()=>{const t=be(process.execArgv),r=t.findIndex($e);return r>0&&t.slice(0,r).some(Dt)},"hasCliTypeScriptPreload"),Ne=Ce().some(Dt)||Me(),Ht=typeof T.registerHooks=="function"&&E(zt)&&!Ne,_e=c(t=>{if(!T.register&&!Ht)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!qt){const{_resolveFilename:m}=T;T._resolveFilename=(d,...l)=>m(te(d),...l),qt=!0}const{sourceMapsEnabled:r}=process;if(process.setSourceMapsEnabled(!0),Ht){const m=vt({namespace:t?.namespace,onImport:t?.onImport,tsconfig:t?.tsconfig}),d=T.registerHooks({load:Ue(m),resolve:Oe(m)}),l=c(async()=>{m.active=!1,d.deregister(),r===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return t?.namespace&&(l.import=Bt(t.namespace),l.unregister=l),l}const{port1:e,port2:s}=new Gt;T.register(`./esm/index.mjs?${xt.randomUUID()}`,{parentURL:import.meta.url,data:{port:s,namespace:t?.namespace,tsconfig:t?.tsconfig},transferList:[s]});const n=t?.onImport,a=n&&(m=>{m.type==="load"&&n(m.url)});a&&(e.on("message",a),e.unref());const i=c(()=>(r===!1&&process.setSourceMapsEnabled(!1),a&&e.off("message",a),e.postMessage("deactivate"),new Promise(m=>{const d=c(l=>{l.type==="deactivated"&&(m(),e.off("message",d))},"onDeactivated");e.on("message",d)})),"unregister");return t?.namespace&&(i.import=Bt(t.namespace),i.unregister=i),i},"register");export{ce as a,ve as b,ie as c,We as d,ae as e,_e as r};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var we=Object.defineProperty;var l=(e,r)=>we(e,"name",{value:r,configurable:!0});var Fe=require("node:crypto"),E=require("node:module"),Ie=require("node:worker_threads"),R=require("./node-features-CEjg7cMX.cjs"),o=require("./register-CRHZwkwo.cjs"),f=require("node:url"),Z=require("node:fs"),je=require("node:fs/promises"),P=require("./index-LWEOpzQe.cjs"),ee=require("./client-D3mGB526.cjs"),U=require("node:path"),T=typeof document<"u"?document.currentScript:null;const be=l(()=>({active:!0,parsedTsconfig:void 0}),"createDefaultData"),te=l(e=>{const r={active:!0,namespace:e?.namespace,onImport:e?.onImport,parsedTsconfig:void 0,port:e?.port,tsconfig:e?.tsconfig};return e?.tsconfig!==!1&&(r.parsedTsconfig=o.loadTsconfig(e?.tsconfig??process.env.TSX_TSCONFIG_PATH)),r},"createData"),We=l(e=>async r=>{if(!r)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
-
The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(e,te(r)),r.port&&r.port.on("message",t=>{t==="deactivate"&&(e.active=!1,r.port.postMessage({type:"deactivated"}))})},"createInitialize"),Me=l(e=>()=>(e.parsedTsconfig=o.loadTsconfig(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"createGlobalPreload"),Ce=l(e=>{const{pathname:r}=new URL(e),t=U.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||o.tsExtensions.includes(t))return o.getPackageType(e)},"getFormatFromFileUrl"),Oe=l(e=>{const{pathname:r}=new URL(e),t=U.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||o.tsExtensions.includes(t))return o.getPackageTypeSync(e)},"getFormatFromFileUrlSync"),re="tsx-namespace",J=`${re}=`,w="tsx-commonjs-export-preparse",Je=`${w}=1`,F="tsx-commonjs-virtual-query",I=new Map,Q=l((e,r)=>e.slice(1).split("&").filter(t=>t&&r.every(s=>!t.startsWith(s))).join("&"),"getQueryWithoutParameters"),_=l((e,r)=>{const t=Q(e,r);return t?`?${t}`:""},"getSearchWithoutParameters"),_e=l(e=>e.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),$e=l(e=>{const r=_e(e);if(/^\s*export\s*\*/.test(r))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(r))return"namespace";const t=r.match(/\{([^}]*)\}/)?.[1];if(t)return t.split(",").some(s=>{const n=s.trim().split(/\s+as\s+/)[0];return!!(n&&n!=="default")})?"named":void 0},"getCommonJsImportBinding"),qe=l((e,r,t)=>{const s=I.get(e);if(!s)return!1;try{const[n]=P.parseEsm(s);return n.some(i=>{if(i.d!==-1||i.n!==r)return!1;const c=$e(s.slice(i.ss,i.s));return c==="named"||t&&c==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),S=l(e=>{const r=e.indexOf("?"),t=e.indexOf("#");if(!(r===-1||t!==-1&&t<r))return new URLSearchParams(e.slice(r,t===-1?void 0:t)).get(re)??void 0},"getNamespace"),se=R.isFeatureSupported(R.importAttributes)?"importAttributes":"importAssertions",ne=l(e=>e==="commonjs"||e==="commonjs-typescript","isCommonJsFormat"),oe=l(e=>e==="module-typescript"||e==="typescript","isModuleTypeScriptFormat"),Ne=R.isFeatureSupported(R.esmLoadReadFile),xe=[`${F}=`],$=[`${w}=`,`${F}=`],v=l((e,r)=>r.parsedTsconfig&&o.je(r.parsedTsconfig,e)?r.parsedTsconfig.config:void 0,"getTsconfigRaw"),Ae=l(e=>{if(!e.searchParams.has(F))return;const{pathname:r}=e,t=r.toLowerCase().lastIndexOf("%3f");if(t===-1)return;const s=new URL(e);return s.pathname=r.slice(0,t),s.search="",f.fileURLToPath(s)},"getFilePathFromVirtualQuery"),H=l(e=>{const r=e.startsWith(o.fileUrlPrefix)?new URL(e):void 0,t=r?f.fileURLToPath(r):e,s=r&&Ae(r),n=s||t,i=r&&s?f.pathToFileURL(n).toString()+_(r.search,xe):e;return{fileUrl:r,filePath:n,loadUrl:i}},"getFileLoadContext"),ae=l((e,r)=>{if(!r?.search)return e;const t=_(r.search,$);return t?f.pathToFileURL(e).toString()+t:e},"getTransformPath"),ie=l((e,r,t)=>{const s=[...r?Q(r.search,[J,...$]).split("&").filter(Boolean):[],...t?[`namespace=${encodeURIComponent(t)}`]:[]].join("&");return s?`${e}?${s}`:e},"getFilePathWithQuery"),Be=new TextDecoder,ce=l(e=>typeof e=="string"?e:Be.decode(e),"decodeSource"),De=l((e,r)=>{const t=new URL(r),s=r.startsWith(o.fileUrlPrefix)?H(r).filePath:void 0;t.searchParams.delete("tsx-namespace"),t.searchParams.delete(w),t.searchParams.delete(F),s&&(t.pathname=new URL(f.pathToFileURL(s)).pathname);const n=t.toString();return e.port&&e.port.postMessage({type:"load",url:n}),e.onImport?.(n),n},"notifyLoad"),le=l((e,r)=>{if(!e.active)return!1;const t=S(r);if(e.namespace!==t)return!1;const s=De(e,r);return ee.parent.send&&ee.parent.send({type:"dependency",path:s}),!0},"prepareLoad"),me=l((e,r)=>{if(!o.isJsonPattern.test(e))return r;const t=r[se];return t?.type?r:{...r,[se]:{...t,type:"json"}}},"prepareJsonAttributes"),k=l(({conditions:e})=>e?.includes("require")===!0&&!e.includes("import"),"isCommonJsRequireContext$1"),Qe=l(e=>{const r=l(async(t,s,n)=>{if(!le(e,t))return n(t,s);const i=S(t),{fileUrl:c,filePath:m,loadUrl:d}=H(t),u=me(d,s),a=await n(d,u);o.logEsm(3,"loaded by next loader",{url:t,loadUrl:d,loaded:a});const p=c?.searchParams.has(w)===!0,h=a.format,L=c?new URL(f.pathToFileURL(m)):void 0;if(L&&c&&(L.search=_(c.search,$)),ne(h)&&c&&a.responseURL?.startsWith("file:")&&!m.endsWith(".cjs")){const g=await je.readFile(f.pathToFileURL(m),"utf8"),C=P.isESM(g);if(h==="commonjs-typescript"||!m.endsWith(".js")||C){if(!Ne){if(p&&C&&o.implicitTsExtensionsPattern.test(m)){const O=await P.transform(g,m,{define:{"import.meta.url":JSON.stringify(L.toString())},tsconfigRaw:v(m,e)});return I.set(t,O.code),{format:"module",source:o.inlineSourceMap(O)}}return a}if(!i&&!p&&!m.endsWith(".cts"))return a;const K=!!(i||p||_(c.search,$)),Y=P.transformSync(g,ae(m,c),{cjsBanner:K?`require = require("node:module").createRequire(${JSON.stringify(f.pathToFileURL(m).toString())});`:void 0,tsconfigRaw:v(m,e)});if(a.format="commonjs",a.source=o.inlineSourceMap(Y),K){const O=ie(m,c,i);a.responseURL=`data:text/javascript,${encodeURIComponent(Y.code)}?filePath=${encodeURIComponent(O)}`}return o.logEsm(3,"returning CJS export annotation",a),a}}if(!a.source)return a;const y=ce(a.source),M=h==="json"&&!k(s);if(h==="commonjs-typescript"){const g=P.transformSync(y,m,{tsconfigRaw:v(m,e)});return{...a,format:"commonjs",source:o.inlineSourceMap(g)}}if(M||oe(h)||o.tsExtensionsPattern.test(t)){const g=await P.transform(y,m,{tsconfigRaw:v(m,e)});return I.set(t,g.code),{format:"module",source:o.inlineSourceMap(g)}}if(a.format==="module"){const g=P.transformDynamicImport(m,y);g?(a.source=o.inlineSourceMap(g),I.set(t,g.code)):I.set(t,y)}return a},"load");return o.debugEnabled?async(t,s,n)=>{o.logEsm(2,"load",{url:t,context:s});const i=await r(t,s,n);return o.logEsm(1,"loaded",{url:t,result:i}),i}:r},"createLoad"),He=l(e=>{const r=l((t,s,n)=>{if(k(s)&&o.isGlobalCjsLoaderActive()||!le(e,t))return n(t,s);const i=S(t),{fileUrl:c,filePath:m,loadUrl:d}=H(t),u=me(d,s),a=n(d,u);o.logEsm(3,"loaded by next loader",{url:t,loadUrl:d,loaded:a});const p=a.format;if(ne(p)&&R.isFeatureSupported(R.esmLoadReadFile)&&a.responseURL?.startsWith("file:")&&!m.endsWith(".cjs")){const y=Z.readFileSync(f.pathToFileURL(m),"utf8");if(p==="commonjs-typescript"||!m.endsWith(".js")||P.isESM(y)){const M=P.transformSync(y,ae(m,c),{tsconfigRaw:v(m,e)}),g=!i&&o.isGlobalCjsLoaderActive(),C=ie(m,c,i);return a.format="commonjs",a.shouldBeReloadedByCJSLoader=g,a.source=o.inlineSourceMap(M),g||(a.responseURL=`data:text/javascript,${encodeURIComponent(M.code)}?filePath=${encodeURIComponent(C)}`),o.logEsm(3,"returning CJS export annotation",a),a}}if(!a.source)return a;const h=ce(a.source),L=p==="json"&&!k(s);if(p==="commonjs-typescript"){const y=P.transformSync(h,m,{tsconfigRaw:v(m,e)});return{...a,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:o.inlineSourceMap(y)}}if(L||oe(p)||o.tsExtensionsPattern.test(t)){const y=P.transformEsmSync(h,m,{tsconfigRaw:v(m,e)});return{format:"module",source:o.inlineSourceMap(y)}}if(a.format==="module"){const y=P.transformDynamicImport(m,h);y&&(a.source=o.inlineSourceMap(y))}return a},"load");return o.debugEnabled?(t,s,n)=>{o.logEsm(2,"loadSync",{url:t,context:s});const i=r(t,s,n);return o.logEsm(1,"loadedSync",{url:t,result:i}),i}:r},"createLoadSync"),ke=l(e=>{if(o.isFilePath(e)||e.startsWith("#")||e.includes(":"))return!1;const r=e.split("/"),t=r[0]?.startsWith("@")?2:1;return r.length>t&&r.slice(0,t).every(Boolean)},"isBarePackageSubpath"),Ge=l(e=>{const r=e.lastIndexOf(o.nodeModulesPath);if(r===-1)return;const s=e.slice(r+o.nodeModulesPath.length).split(U.sep),n=s[0]?.startsWith("@")?2:1;if(!(s.length<=n||!s[n-1]))return U.join(e.slice(0,r),"node_modules",...s.slice(0,n))},"getPackageDirectory"),de=l((e,r)=>{if(!ke(e)||!r.startsWith(o.fileUrlPrefix))return;const t=f.fileURLToPath(r),s=Ge(t);if(!s)return;const i=P.readJsonFile(U.join(s,"package.json"))?.exports;if(i!=null)return{kind:"root-exports"};const c=P.readJsonFile(U.join(t,"package.json"));return typeof c?.main!="string"||!c.main?{kind:"legacy-directory"}:{kind:"legacy-directory",mainUrl:f.pathToFileURL(U.resolve(t,c.main)).toString()}},"getPackageSubpathDirectoryInfo"),ze=R.isFeatureSupported(R.esmLoadReadFile),ue=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,fe=l(e=>!o.isFilePath(e)&&!ue.test(e),"isTsconfigPathAliasSpecifier"),q=l(e=>{if(e.url)return e.url;const r=e.message.match(/^Cannot find module '([^']+)'/);if(r){const[,s]=r;return s}const t=e.message.match(/^Cannot find package '([^']+)'/);if(t){const[,s]=t;if(!U.isAbsolute(s))return;const n=f.pathToFileURL(s);if(n.pathname.endsWith("/")&&(n.pathname+="package.json"),n.pathname.endsWith("/package.json")){const i=P.readJsonFile(n);if(i?.main)return new URL(i.main,n).toString()}else return n.toString()}},"getMissingPathFromNotFound"),j=l(e=>e==="ERR_MODULE_NOT_FOUND"||e==="MODULE_NOT_FOUND","isModuleNotFound"),N=l(e=>e instanceof Error&&(j(e.code)||e.code==="ERR_UNSUPPORTED_DIR_IMPORT"),"isDirectoryEntryMiss"),x=l(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext"),G=l(e=>{const r=e.indexOf("?"),t=e.indexOf("#");return r===-1?t:t===-1?r:Math.min(r,t)},"getUrlMetadataIndex"),pe=l((e,r)=>r||!o.isFilePath(e)&&!ue.test(e)?e.indexOf("?"):G(e),"getSpecifierMetadataIndex"),he=l(e=>{if(e?.startsWith(o.fileUrlPrefix))return f.fileURLToPath(new URL(e))},"getParentFilePath"),Xe=l(e=>{if(!e)return!1;const r=he(e);if(r)return o.tsExtensionsPattern.test(r);const t=G(e);return o.tsExtensionsPattern.test(t===-1?e:e.slice(0,t))},"isTypeScriptParent"),b=l(e=>{const r=he(e);return r!==void 0&&o.isDependencyPath(r)},"isParentDependency"),ge=l(e=>U.extname(new URL(e).pathname)===".js"&&o.isDependencyPath(f.fileURLToPath(e)),"isImplicitJavaScriptDependency"),Pe=l((e,r)=>Xe(e)||r&&!b(e),"resolvesTsExtensions"),Ve=l((e,r)=>{const t=G(e),s=t===-1?e:e.slice(0,t);try{if(s.startsWith(o.fileUrlPrefix))return f.fileURLToPath(s);if(U.isAbsolute(s))return s;if(o.isRelativePath(s)&&r?.startsWith(o.fileUrlPrefix))return f.fileURLToPath(new URL(s,r))}catch{}},"getProbeFilePath"),ye=l((e,r)=>{const t=Ve(e,r);return t!==void 0&&!Z.existsSync(t)},"candidateDoesntExist"),A=l(async(e,r,t,s)=>{const n=o.getExtensionResolution(e);if(o.logEsm(3,"resolveExtensions",{url:e,context:r,throwError:s,tryPaths:n}),!n)return;let i;for(const c of n)if(!ye(c,r.parentURL))try{return await t(c,r)}catch(m){const{code:d}=m;if(!j(d)&&d!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw m;i=m}if(s){if(i===void 0)return t(n[0],r);throw i}},"resolveExtensions"),W=l((e,r,t,s)=>{const n=o.getExtensionResolution(e);if(o.logEsm(3,"resolveExtensionsSync",{url:e,context:r,throwError:s,tryPaths:n}),!n)return;let i;for(const c of n)if(!ye(c,r.parentURL))try{return t(c,r)}catch(m){const{code:d}=m;if(!j(d)&&d!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw m;i=m}if(s){if(i===void 0)return t(n[0],r);throw i}},"resolveExtensionsSync"),Ke=l(async(e,r,t,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,i=Pe(r.parentURL,n);if(o.logEsm(3,"resolveBase",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(o.fileUrlPrefix),isRelativePath:o.isRelativePath(e),resolveTsExtensions:i,allowJs:n}),(e.startsWith(o.fileUrlPrefix)||o.isRelativePath(e))&&i){const c=await A(e,r,t,void 0);if(o.logEsm(3,"resolveBase resolved",{specifier:e,context:r,resolved:c}),c)return c}try{return await t(e,r)}catch(c){if(o.logEsm(3,"resolveBase error",{specifier:e,context:r,error:c}),c instanceof Error){const m=c;if(j(m.code)){const d=q(m);if(d){const u=await A(d,r,t,void 0);if(u)return u}}}throw c}},"resolveBase"),z=l((e,r,t,s)=>{const n=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1,i=Pe(r.parentURL,n);if(o.logEsm(3,"resolveBaseSync",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(o.fileUrlPrefix),isRelativePath:o.isRelativePath(e),resolveTsExtensions:i,allowJs:n}),(e.startsWith(o.fileUrlPrefix)||o.isRelativePath(e))&&i){const c=W(e,r,t,void 0);if(o.logEsm(3,"resolveBaseSync resolved",{specifier:e,context:r,resolved:c}),c)return c}try{return t(e,r)}catch(c){if(o.logEsm(3,"resolveBaseSync error",{specifier:e,context:r,error:c}),c instanceof Error){const m=c;if(j(m.code)){const d=q(m);if(d){const u=W(d,r,t,void 0);if(u)return u}}}throw c}},"resolveBaseSync"),X=l(async(e,r,t,s)=>{if(o.logEsm(3,"resolveDirectory",{specifier:e,context:r,isDirectory:o.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),o.isDirectoryPattern.test(e)){const n=new URL(e,r.parentURL);return n.pathname=U.join(n.pathname,"index"),await A(n.toString(),r,t,!0)}try{return await Ke(e,r,t,s)}catch(n){if(n instanceof Error){o.logEsm(3,"resolveDirectory error",{specifier:e,context:r,error:n});const i=n;if(i.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const c=q(i);if(c){if(e.startsWith("#"))throw n;const m=de(e,c);if(m?.kind==="root-exports")throw n;if(m?.mainUrl){try{return await t(m.mainUrl,r)}catch(a){if(!N(a))throw a}try{return await X(m.mainUrl,r,t,s)}catch(a){if(!N(a))throw a}}const d=`${c}/index`,u=await A(d,r,t);if(u)return u}}}throw n}},"resolveDirectory"),V=l((e,r,t,s)=>{if(o.logEsm(3,"resolveDirectorySync",{specifier:e,context:r,isDirectory:o.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),o.isDirectoryPattern.test(e)){const n=x(r);if(n&&!o.isFilePath(e))return z(e,r,t,s);const i=new URL(e,r.parentURL);return i.pathname=U.join(i.pathname,"index"),n?W(f.fileURLToPath(i),r,t,!1)??z(e,r,t,s):W(i.toString(),r,t,!0)}try{return z(e,r,t,s)}catch(n){if(n instanceof Error){o.logEsm(3,"resolveDirectorySync error",{specifier:e,context:r,error:n});const i=n;if(i.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const c=q(i);if(c){if(e.startsWith("#"))throw n;const m=de(e,c);if(m?.kind==="root-exports")throw n;if(m?.mainUrl){try{return t(m.mainUrl,r)}catch(a){if(!N(a))throw a}try{return V(m.mainUrl,r,t,s)}catch(a){if(!N(a))throw a}}const d=`${c}/index`,u=W(d,r,t);if(u)return u}}}throw n}},"resolveDirectorySync"),Ye=l(async(e,r,t,s)=>{const n=fe(e);if(o.logEsm(3,"resolveTsPaths",{specifier:e,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:b(r.parentURL)}),n&&s.parsedTsconfig&&!b(r.parentURL)){const i=o.wt(s.parsedTsconfig,e);o.logEsm(3,"resolveTsPaths",{possiblePaths:i});for(const c of i)try{return await X(f.pathToFileURL(c).toString(),r,t,s)}catch{}}return X(e,r,t,s)},"resolveTsPaths"),Ze=l((e,r,t,s)=>{const n=fe(e);if(o.logEsm(3,"resolveTsPathsSync",{specifier:e,context:r,tsconfigPathAliasSpecifier:n,tsconfig:s.parsedTsconfig,fromNodeModules:b(r.parentURL)}),n&&s.parsedTsconfig&&!b(r.parentURL)){const i=o.wt(s.parsedTsconfig,e);o.logEsm(3,"resolveTsPathsSync",{possiblePaths:i});for(const c of i)try{return V(f.pathToFileURL(c).toString(),r,t,s)}catch{}}return V(e,r,t,s)},"resolveTsPathsSync"),B="tsx://",D=l((e,r)=>{const t=e.indexOf("#"),s=t===-1?e:e.slice(0,t),n=t===-1?"":e.slice(t);return`${s}${s.includes("?")?"&":"?"}${r}${n}`},"addQuery"),Ue=l((e,r)=>{const t=r.indexOf("#"),s=r[0]==="?"?r.slice(1,t===-1?void 0:t):"",n=t===-1?"":r.slice(t),i=e.indexOf("#"),c=i===-1?e:e.slice(0,i),m=i===-1?"":e.slice(i),d=s?D(c,s):c;return new URL(`${d}${n||m}`).toString()},"mergeUrlMetadata"),Re=l((e,r,t)=>{if(r!=="commonjs"||!e.startsWith(o.fileUrlPrefix)||!o.implicitTsExtensionsPattern.test(e))return e;const s=new URL(e),n=[Q(s.search,[J]),...t?[`namespace=${encodeURIComponent(t)}`]:[]].filter(Boolean).join("&");return n?(s.pathname+=`%3F${n}`,s.searchParams.set(F,"1"),s.toString()):e},"preserveCommonJsQueryIdentity"),et=l(e=>{const r=l(async(t,s,n)=>{if(!e.active||t.startsWith("node:"))return n(t,s);let i=S(t)??(s.parentURL&&S(s.parentURL));if(e.namespace){let h;if(t.startsWith(B)){try{h=JSON.parse(t.slice(B.length))}catch{}h?.namespace&&(i=h.namespace)}if(e.namespace!==i)return n(t,s);h&&(t=h.specifier,s.parentURL=h.parentURL)}const c=pe(t,x(s)),m=c===-1?t:t.slice(0,c),d=c===-1?"":t.slice(c),u=await Ye(m,s,n,e);if(o.logEsm(2,"nextResolve",{resolved:u}),u.format==="builtin")return u;const a={...u};a.url.startsWith(o.fileUrlPrefix)&&(a.format==="module-typescript"?a.format="module":a.format==="commonjs-typescript"?a.format="commonjs":!a.format&&!ge(a.url)&&(a.format=await Ce(a.url),o.logEsm(2,"getFormatFromFileUrl",{resolved:a,format:a.format}))),d&&(a.url=Ue(a.url,d));const p=s.parentURL&&a.format==="commonjs"&&o.implicitTsExtensionsPattern.test(a.url)&&(new URL(s.parentURL).searchParams.has(w)||qe(s.parentURL,t,ze));return i&&S(a.url)===void 0&&(a.url=D(a.url,`${J}${i}`)),p&&(a.url=D(a.url,Je)),(i||p)&&(a.url=Re(a.url,a.format,i)),a},"resolve");return o.debugEnabled?async(t,s,n)=>{o.logEsm(2,"resolve",{specifier:t,context:s});const i=await r(t,s,n);return o.logEsm(1,"resolved",{specifier:t,context:s,result:i}),i}:r},"createResolve"),tt=l(e=>{const r=l((t,s,n)=>{if(!e.active||t.startsWith("node:")||x(s)&&o.isGlobalCjsLoaderActive())return n(t,s);let i=S(t)??(s.parentURL&&S(s.parentURL));if(e.namespace){let p;if(t.startsWith(B)){try{p=JSON.parse(t.slice(B.length))}catch{}p?.namespace&&(i=p.namespace)}if(e.namespace!==i)return n(t,s);p&&(t=p.specifier,s.parentURL=p.parentURL)}const c=pe(t,x(s)),m=c===-1?t:t.slice(0,c),d=c===-1?"":t.slice(c),u=Ze(m,s,n,e);if(o.logEsm(2,"nextResolve",{resolved:u}),u.format==="builtin")return u;const a={...u};return a.url.startsWith(o.fileUrlPrefix)&&(a.format==="module-typescript"?a.format="module":a.format==="commonjs-typescript"?a.format="commonjs":!a.format&&!ge(a.url)&&(a.format=Oe(a.url),o.logEsm(2,"getFormatFromFileUrlSync",{resolved:a,format:a.format}))),d&&(a.url=Ue(a.url,d)),i&&S(a.url)===void 0&&(a.url=D(a.url,`${J}${i}`)),a.url=Re(a.url,a.format,i),a},"resolve");return o.debugEnabled?(t,s,n)=>{o.logEsm(2,"resolveSync",{specifier:t,context:s});const i=r(t,s,n);return o.logEsm(1,"resolvedSync",{specifier:t,context:s,result:i}),i}:r},"createResolveSync"),Se=l(e=>(r,t)=>{if(!t)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const s=t.startsWith(o.fileUrlPrefix)?t:f.pathToFileURL(t).toString();return import(`tsx://${JSON.stringify({specifier:r,parentURL:s,namespace:e})}`)},"createScopedImport");let ve=!1;const rt=l(e=>{const r=[];for(let t=0;t<e.length;t+=1){const s=e[t];if(s==="--import"){const n=e[t+1];n&&r.push(n),t+=1}else s.startsWith("--import=")&&r.push(s.slice(9))}return r},"collectImportSpecifiers"),st=l(()=>[...(process.env.NODE_OPTIONS??"").matchAll(/(?:^|\s)--import(?:=|\s+)(\S+)/g)].map(([,e])=>e),"collectNodeOptionsImportSpecifiers"),Ee=[new URL("loader.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:T&&T.src||new URL("register-BYFLLcJ9.cjs",document.baseURI).href).toString(),new URL("esm/index.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:T&&T.src||new URL("register-BYFLLcJ9.cjs",document.baseURI).href).toString()],nt=new Set(["tsx","tsx/esm",...Ee,...Ee.map(e=>decodeURI(new URL(e).pathname))]),ot=l(e=>nt.has(e),"isTsxImport"),Te=l(e=>/\.(?:[cm]?ts|tsx)(?:[?#].*)?$/.test(e),"isTypeScriptImport"),at=l(()=>{const e=rt(process.execArgv),r=e.findIndex(ot);return r>0&&e.slice(0,r).some(Te)},"hasCliTypeScriptPreload"),it=st().some(Te)||at(),Le=typeof E.registerHooks=="function"&&R.isFeatureSupported(R.moduleRegisterHooksCjsReload)&&!it,ct=l(e=>{if(!E.register&&!Le)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!ve){const{_resolveFilename:m}=E;E._resolveFilename=(d,...u)=>m(o.interopCjsExports(d),...u),ve=!0}const{sourceMapsEnabled:r}=process;if(process.setSourceMapsEnabled(!0),Le){const m=te({namespace:e?.namespace,onImport:e?.onImport,tsconfig:e?.tsconfig}),d=E.registerHooks({load:He(m),resolve:tt(m)}),u=l(async()=>{m.active=!1,d.deregister(),r===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return e?.namespace&&(u.import=Se(e.namespace),u.unregister=u),u}const{port1:t,port2:s}=new Ie.MessageChannel;E.register(`./esm/index.mjs?${Fe.randomUUID()}`,{parentURL:typeof document>"u"?require("url").pathToFileURL(__filename).href:T&&T.src||new URL("register-BYFLLcJ9.cjs",document.baseURI).href,data:{port:s,namespace:e?.namespace,tsconfig:e?.tsconfig},transferList:[s]});const n=e?.onImport,i=n&&(m=>{m.type==="load"&&n(m.url)});i&&(t.on("message",i),t.unref());const c=l(()=>(r===!1&&process.setSourceMapsEnabled(!1),i&&t.off("message",i),t.postMessage("deactivate"),new Promise(m=>{const d=l(u=>{u.type==="deactivated"&&(m(),t.off("message",d))},"onDeactivated");t.on("message",d)})),"unregister");return e?.namespace&&(c.import=Se(e.namespace),c.unregister=c),c},"register");exports.createDefaultData=be,exports.createGlobalPreload=Me,exports.createInitialize=We,exports.createLoad=Qe,exports.createResolve=et,exports.register=ct;
|