tsx 4.23.11 → 4.23.12

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.
@@ -0,0 +1,14 @@
1
+ var Xt=Object.defineProperty;var u=(s,e)=>Xt(s,"name",{value:e,configurable:!0});import J from"node:path";import{fileURLToPath as Yt,pathToFileURL as Qt}from"node:url";import{version as Se,transform as Zt,transformSync as Fe}from"esbuild";import Vt from"node:crypto";import{i as en,c as tn}from"./node-features-JeyyvQz6.mjs";import D from"node:fs";import nn from"node:os";import{t as rn}from"./temporary-directory-BDDVQOvU.mjs";const xe=u(s=>Vt.createHash("sha1").update(s).digest("hex"),"sha1");let E,oe,ve,Y=2<<19;const Be=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(s,e){const n=s.length;let i=0;for(;i<n;)e[i]=s.charCodeAt(i++)}:function(s,e){const n=s.length;let i=0;for(;i<n;){const o=s.charCodeAt(i);e[i++]=(255&o)<<8|o>>>8}},sn="xportmportlassforetaourceromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileifcatcfinallels";let I,Pe,C;function on(s,e="@"){I=s,Pe=e;const n=2*I.length+(2<<18);if(n>Y||!E){for(;n>Y;)Y*=2;oe=new ArrayBuffer(Y),Be(sn,new Uint16Array(oe,16,110)),E=function(l,p,g){var b=new l.Int8Array(g),d=new l.Int16Array(g),r=new l.Int32Array(g),S=new l.Uint8Array(g),O=new l.Uint16Array(g),_=1040;function N(){var t=0,c=0,h=0,f=0,m=0,w=0,y=0;y=_,_=_+10240|0,b[804]=1,b[803]=0,d[399]=0,d[400]=0,r[69]=r[2],b[805]=0,r[68]=0,b[802]=0,r[70]=y+2048,r[71]=y,b[806]=0,t=(r[3]|0)+-2|0,r[72]=t,c=t+(r[66]<<1)|0,r[73]=c;e:for(;;){if(h=t+2|0,r[72]=h,t>>>0>=c>>>0){f=18;break}t:do switch(d[h>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(d[400]|0)&&K(h)|0&&!(A(t+4|0,16,10)|0)&&($(),(b[804]|0)==0)){f=9;break e}else f=17;break}case 105:{K(h)|0&&!(A(t+4|0,26,10)|0)&&B(),f=17;break}case 59:{f=17;break}case 47:switch(d[t+4>>1]|0){case 47:{pe();break t}case 42:{ge(1);break t}default:{f=16;break e}}default:{f=16;break e}}while(!1);(f|0)==17&&(f=0,r[69]=r[72]),t=r[72]|0,c=r[73]|0}(f|0)==9?(t=r[72]|0,r[69]=t,f=19):(f|0)==16?(b[804]=0,r[72]=t,f=19):(f|0)==18&&(b[802]|0?t=0:(t=h,f=19));do if((f|0)==19){e:for(;;){if(c=t+2|0,r[72]=c,t>>>0>=(r[73]|0)>>>0){f=92;break}t:do switch(d[c>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(d[400]|0)&&K(c)|0&&!(A(t+4|0,16,10)|0)&&$(),f=91;break}case 105:{K(c)|0&&!(A(t+4|0,26,10)|0)&&B(),f=91;break}case 99:{K(c)|0&&!(A(t+4|0,36,8)|0)&&W(d[t+12>>1]|0)|0&&(b[806]=1),f=91;break}case 40:{h=r[70]|0,t=d[400]|0,f=t&65535,r[h+(f<<3)>>2]=1,c=r[69]|0,d[400]=t+1<<16>>16,r[h+(f<<3)+4>>2]=c,f=91;break}case 41:{if(c=d[400]|0,!(c<<16>>16)){f=36;break e}h=c+-1<<16>>16,d[400]=h,f=d[399]|0,c=f&65535,f<<16>>16&&(r[(r[70]|0)+((h&65535)<<3)>>2]|0)==5&&(c=r[(r[71]|0)+(c+-1<<2)>>2]|0,h=c+4|0,r[h>>2]|0||(r[h>>2]=(r[69]|0)+2),r[c+12>>2]=t+4,d[399]=f+-1<<16>>16),f=91;break}case 123:{f=r[69]|0,h=r[63]|0,t=f;do if((d[f>>1]|0)==41&(h|0)!=0&&(r[h+4>>2]|0)==(f|0))if(c=r[64]|0,r[63]=c,c){r[c+32>>2]=0;break}else{r[59]=0;break}while(!1);h=r[70]|0,c=d[400]|0,f=c&65535,r[h+(f<<3)>>2]=b[806]|0?6:2,d[400]=c+1<<16>>16,r[h+(f<<3)+4>>2]=t,b[806]=0,f=91;break}case 125:{if(t=d[400]|0,!(t<<16>>16)){f=49;break e}h=r[70]|0,f=t+-1<<16>>16,d[400]=f,(r[h+((f&65535)<<3)>>2]|0)==4&&De(),f=91;break}case 39:{R(39),f=91;break}case 34:{R(34),f=91;break}case 47:switch(d[t+4>>1]|0){case 47:{pe();break t}case 42:{ge(1);break t}default:{t=r[69]|0,c=d[t>>1]|0;n:do if(!(_t(c)|0))c<<16>>16==41?(h=d[400]|0,At(r[(r[70]|0)+((h&65535)<<3)+4>>2]|0)|0||(f=65)):f=64;else switch(c<<16>>16){case 46:if(((d[t+-2>>1]|0)+-48&65535)<10){f=64;break n}else break n;case 43:if((d[t+-2>>1]|0)==43){f=64;break n}else break n;case 45:if((d[t+-2>>1]|0)==45){f=64;break n}else break n;default:break n}while(!1);(f|0)==64&&(h=d[400]|0,f=65);n:do if((f|0)==65){if(f=0,h<<16>>16&&(m=r[70]|0,w=(h&65535)+-1|0,c<<16>>16==102?(r[m+(w<<3)>>2]|0)==1:0)){if((d[t+-2>>1]|0)==111&&L(r[m+(w<<3)+4>>2]|0,44,3)|0)break}else f=69;if((f|0)==69&&c<<16>>16==125&&(f=r[70]|0,h=h&65535,Et(r[f+(h<<3)+4>>2]|0)|0||(r[f+(h<<3)>>2]|0)==6))break;if(!(xt(t)|0)){switch(c<<16>>16){case 0:break n;case 47:{if(b[805]|0)break n;break}default:}if(f=r[65]|0,f|0&&t>>>0>=(r[f>>2]|0)>>>0&&t>>>0<=(r[f+4>>2]|0)>>>0){de(),b[805]=0,f=91;break t}h=r[3]|0;do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t,c=d[t>>1]|0}while(!(be(c)|0));if(se(c)|0){do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t}while(se(d[t>>1]|0)|0);if(Lt(t)|0){de(),b[805]=0,f=91;break t}}b[805]=1,f=91;break t}}while(!1);de(),b[805]=0,f=91;break t}}case 96:{h=r[70]|0,c=d[400]|0,f=c&65535,r[h+(f<<3)+4>>2]=r[69],d[400]=c+1<<16>>16,r[h+(f<<3)>>2]=3,De(),f=91;break}default:f=91}while(!1);(f|0)==91&&(f=0,r[69]=r[72]),t=r[72]|0}if((f|0)==36){M(),t=0;break}else if((f|0)==49){M(),t=0;break}else if((f|0)==92){t=b[802]|0?0:(d[399]|d[400])<<16>>16==0;break}}while(!1);return _=y,t|0}u(N,"b");function $(){var t=0,c=0,h=0,f=0,m=0,w=0,y=0,T=0,we=0,ke=0,Ce=0,ye=0,x=0,v=0;T=r[72]|0,we=r[65]|0,v=T+12|0,r[72]=v,h=k(1)|0,t=r[72]|0,(t|0)==(v|0)&&!(ie(h)|0)||(x=3);e:do if((x|0)==3){t:do switch(h<<16>>16){case 123:{for(r[72]=t+2,t=k(1)|0,c=r[72]|0;;){if(X(t)|0?(R(t),t=(r[72]|0)+2|0,r[72]=t):(j(t)|0,t=r[72]|0),k(1)|0,t=je(c,t)|0,t<<16>>16==44&&(r[72]=(r[72]|0)+2,t=k(1)|0),t<<16>>16==125){x=15;break}if(v=c,c=r[72]|0,(c|0)==(v|0)){x=12;break}if(c>>>0>(r[73]|0)>>>0){x=14;break}}if((x|0)==12){M();break e}else if((x|0)==14){M();break e}else if((x|0)==15){b[803]=1,r[72]=(r[72]|0)+2;break t}break}case 42:{r[72]=t+2,k(1)|0,v=r[72]|0,je(v,v)|0;break}default:{switch(b[804]=0,h<<16>>16){case 100:{switch(T=t+14|0,r[72]=T,(k(1)|0)<<16>>16){case 97:{c=r[72]|0,!(A(c+2|0,72,8)|0)&&(m=c+10|0,se(d[m>>1]|0)|0)&&(r[72]=m,k(0)|0,x=22);break}case 102:{x=22;break}case 99:{c=r[72]|0,!(A(c+2|0,36,8)|0)&&(f=c+10|0,v=d[f>>1]|0,W(v)|0|v<<16>>16==123)&&(r[72]=f,w=k(1)|0,w<<16>>16!=123)&&(ye=w,x=31);break}default:}n:do if((x|0)==22&&(y=r[72]|0,(A(y+2|0,80,14)|0)==0)){if(h=y+16|0,c=d[h>>1]|0,!(W(c)|0))switch(c<<16>>16){case 40:case 42:break;default:break n}r[72]=h,c=k(1)|0,c<<16>>16==42&&(r[72]=(r[72]|0)+2,c=k(1)|0),c<<16>>16!=40&&(ye=c,x=31)}while(!1);if((x|0)==31&&(ke=r[72]|0,j(ye)|0,Ce=r[72]|0,Ce>>>0>ke>>>0)){P(t,T,ke,Ce),r[72]=(r[72]|0)+-2;break e}P(t,T,0,0),r[72]=t+12;break e}case 97:{r[72]=t+10,k(0)|0,t=r[72]|0,x=35;break}case 102:{x=35;break}case 99:{if(!(A(t+2|0,36,8)|0)&&(c=t+10|0,be(d[c>>1]|0)|0)){r[72]=c,v=k(1)|0,x=r[72]|0,j(v)|0,v=r[72]|0,P(x,v,x,v),r[72]=(r[72]|0)+-2;break e}t=t+4|0,r[72]=t;break}case 108:case 118:break;default:break e}if((x|0)==35){r[72]=t+16,t=k(1)|0,t<<16>>16==42&&(r[72]=(r[72]|0)+2,t=k(1)|0),x=r[72]|0,j(t)|0,v=r[72]|0,P(x,v,x,v),r[72]=(r[72]|0)+-2;break e}r[72]=t+6,b[804]=0,h=k(1)|0,t=r[72]|0,h=(j(h)|0|32)<<16>>16==123,f=r[72]|0,h&&(r[72]=f+2,v=k(1)|0,t=r[72]|0,j(v)|0);n:for(;c=r[72]|0,(c|0)!=(t|0);){if(P(t,c,t,c),c=k(1)|0,h)switch(c<<16>>16){case 93:case 125:break e;default:}if(t=r[72]|0,c<<16>>16!=44){x=51;break}switch(r[72]=t+2,c=k(1)|0,t=r[72]|0,c<<16>>16){case 91:case 123:{x=51;break n}default:}j(c)|0}if((x|0)==51&&(r[72]=t+-2),!h)break e;r[72]=f+-2;break e}}while(!1);if(v=(k(1)|0)<<16>>16==102,t=r[72]|0,v&&!(A(t+2|0,66,6)|0))for(r[72]=t+8,H(T,k(1)|0,0),t=we|0?we+16|0:240;;){if(t=r[t>>2]|0,!t)break e;r[t+12>>2]=0,r[t+8>>2]=0,t=t+16|0}r[72]=t+-2}while(!1)}u($,"k");function B(){var t=0,c=0,h=0,f=0,m=0,w=0,y=0;m=r[72]|0,h=m+12|0,r[72]=h,f=k(1)|0,c=r[72]|0;e:do if(f<<16>>16!=46)f<<16>>16==115&c>>>0>h>>>0?!(A(c+2|0,56,10)|0)&&(t=c+12|0,W(d[t>>1]|0)|0)?w=14:(c=6,h=0,w=46):(t=f,h=0,w=15);else switch(r[72]=c+2,(k(1)|0)<<16>>16){case 109:{if(t=r[72]|0,A(t+2|0,50,6)|0||(c=r[69]|0,!(me(c)|0)&&(d[c>>1]|0)==46))break e;he(m,m,t+8|0,2);break e}case 115:{if(t=r[72]|0,A(t+2|0,56,10)|0||(c=r[69]|0,!(me(c)|0)&&(d[c>>1]|0)==46))break e;t=t+12|0,w=14;break e}default:break e}while(!1);(w|0)==14&&(r[72]=t,t=k(1)|0,h=1,w=15);e:do if((w|0)==15)switch(t<<16>>16){case 40:{if(c=r[70]|0,y=d[400]|0,f=y&65535,r[c+(f<<3)>>2]=5,t=r[72]|0,d[400]=y+1<<16>>16,r[c+(f<<3)+4>>2]=t,(d[r[69]>>1]|0)==46)break e;switch(r[72]=t+2,c=k(1)|0,he(m,r[72]|0,0,t),h?(t=r[63]|0,r[t+28>>2]=5):t=r[63]|0,m=r[71]|0,y=d[399]|0,d[399]=y+1<<16>>16,r[m+((y&65535)<<2)>>2]=t,c<<16>>16){case 39:{R(39);break}case 34:{R(34);break}default:{r[72]=(r[72]|0)+-2;break e}}switch(t=(r[72]|0)+2|0,r[72]=t,(k(1)|0)<<16>>16){case 44:{r[72]=(r[72]|0)+2,k(1)|0,m=r[63]|0,r[m+4>>2]=t,y=r[72]|0,r[m+16>>2]=y,b[m+24>>0]=1,r[72]=y+-2;break e}case 41:{d[400]=(d[400]|0)+-1<<16>>16,y=r[63]|0,r[y+4>>2]=t,r[y+12>>2]=(r[72]|0)+2,b[y+24>>0]=1,d[399]=(d[399]|0)+-1<<16>>16;break e}default:{r[72]=(r[72]|0)+-2;break e}}}case 123:{if(h){c=12,h=1,w=46;break e}if(t=r[72]|0,d[400]|0){r[72]=t+-2;break e}for(;!(t>>>0>=(r[73]|0)>>>0);){if(t=k(1)|0,X(t)|0)R(t);else if(t<<16>>16==125){w=36;break}t=(r[72]|0)+2|0,r[72]=t}if((w|0)==36&&(r[72]=(r[72]|0)+2),y=(k(1)|0)<<16>>16==102,t=r[72]|0,y&&A(t+2|0,66,6)|0){M();break e}if(r[72]=t+8,t=k(1)|0,X(t)|0){H(m,t,0);break e}else{M();break e}}default:{if(h){c=12,h=1,w=46;break e}switch(t<<16>>16){case 42:case 39:case 34:{h=0,w=48;break e}default:{c=6,h=0,w=46;break e}}}}while(!1);(w|0)==46&&(t=r[72]|0,(t|0)==(m+(c<<1)|0)?r[72]=t+-2:w=48);do if((w|0)==48){if(d[400]|0){r[72]=(r[72]|0)+-2;break}for(t=r[73]|0,c=r[72]|0;;){if(c>>>0>=t>>>0){w=55;break}if(f=d[c>>1]|0,X(f)|0){w=53;break}y=c+2|0,r[72]=y,c=y}if((w|0)==53){H(m,f,h);break}else if((w|0)==55){M();break}}while(!1)}u(B,"l");function H(t,c,h){t=t|0,c=c|0,h=h|0;var f=0,m=0;switch(f=(r[72]|0)+2|0,c<<16>>16){case 39:{R(39),m=5;break}case 34:{R(34),m=5;break}default:M()}do if((m|0)==5){if(he(t,f,r[72]|0,1),h&&(r[(r[63]|0)+28>>2]=4),r[72]=(r[72]|0)+2,c=k(0)|0,h=c<<16>>16==97,h?(f=r[72]|0,A(f+2|0,94,10)|0&&(m=13)):(f=r[72]|0,c<<16>>16==119&&(d[f+2>>1]|0)==105&&(d[f+4>>1]|0)==116&&(d[f+6>>1]|0)==104||(m=13)),(m|0)==13){r[72]=f+-2;break}if(r[72]=f+((h?6:4)<<1),(k(1)|0)<<16>>16!=123){r[72]=f;break}h=r[72]|0,c=h;e:for(;;){switch(r[72]=c+2,c=k(1)|0,c<<16>>16){case 39:{R(39),r[72]=(r[72]|0)+2,c=k(1)|0;break}case 34:{R(34),r[72]=(r[72]|0)+2,c=k(1)|0;break}default:c=j(c)|0}if(c<<16>>16!=58){m=22;break}switch(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16){case 39:{R(39);break}case 34:{R(34);break}default:{m=26;break e}}switch(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16){case 125:{m=31;break e}case 44:break;default:{m=30;break e}}if(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16==125){m=31;break}c=r[72]|0}if((m|0)==22){r[72]=f;break}else if((m|0)==26){r[72]=f;break}else if((m|0)==30){r[72]=f;break}else if((m|0)==31){m=r[63]|0,r[m+16>>2]=h,r[m+12>>2]=(r[72]|0)+2;break}}while(!1)}u(H,"u");function xt(t){t=t|0;e:do switch(d[t>>1]|0){case 100:switch(d[t+-2>>1]|0){case 105:{t=L(t+-4|0,104,2)|0;break e}case 108:{t=L(t+-4|0,108,3)|0;break e}default:{t=0;break e}}case 101:switch(d[t+-2>>1]|0){case 115:switch(d[t+-4>>1]|0){case 108:{t=G(t+-6|0,101)|0;break e}case 97:{t=G(t+-6|0,99)|0;break e}default:{t=0;break e}}case 116:{t=L(t+-4|0,114,4)|0;break e}case 117:{t=L(t+-4|0,122,6)|0;break e}default:{t=0;break e}}case 102:{if((d[t+-2>>1]|0)==111&&(d[t+-4>>1]|0)==101)switch(d[t+-6>>1]|0){case 99:{t=L(t+-8|0,134,6)|0;break e}case 112:{t=L(t+-8|0,146,2)|0;break e}default:{t=0;break e}}else t=0;break}case 107:{t=L(t+-2|0,150,4)|0;break}case 110:{t=t+-2|0,G(t,105)|0?t=1:t=L(t,158,5)|0;break}case 111:{t=G(t+-2|0,100)|0;break}case 114:{t=L(t+-2|0,168,7)|0;break}case 116:{t=L(t+-2|0,182,4)|0;break}case 119:switch(d[t+-2>>1]|0){case 101:{t=G(t+-4|0,110)|0;break e}case 111:{t=L(t+-4|0,190,3)|0;break e}default:{t=0;break e}}default:t=0}while(!1);return t|0}u(xt,"o");function De(){var t=0,c=0,h=0,f=0;c=r[73]|0,h=r[72]|0;e:for(;;){if(t=h+2|0,h>>>0>=c>>>0){c=10;break}switch(d[t>>1]|0){case 96:{c=7;break e}case 36:{if((d[h+4>>1]|0)==123){c=6;break e}break}case 92:{t=h+4|0;break}default:}h=t}(c|0)==6?(t=h+4|0,r[72]=t,c=r[70]|0,f=d[400]|0,h=f&65535,r[c+(h<<3)>>2]=4,d[400]=f+1<<16>>16,r[c+(h<<3)+4>>2]=t):(c|0)==7?(r[72]=t,h=r[70]|0,f=(d[400]|0)+-1<<16>>16,d[400]=f,(r[h+((f&65535)<<3)>>2]|0)!=3&&M()):(c|0)==10&&(r[72]=t,M())}u(De,"h");function k(t){t=t|0;var c=0,h=0,f=0;h=r[72]|0;e:do{c=d[h>>1]|0;t:do if(c<<16>>16!=47)if(t){if(W(c)|0)break;break e}else{if(se(c)|0)break;break e}else switch(d[h+2>>1]|0){case 47:{pe();break t}case 42:{ge(t);break t}default:{c=47;break e}}while(!1);f=r[72]|0,h=f+2|0,r[72]=h}while(f>>>0<(r[73]|0)>>>0);return c|0}u(k,"w");function he(t,c,h,f){t=t|0,c=c|0,h=h|0,f=f|0;var m=0,w=0;w=r[67]|0,r[67]=w+36,m=r[63]|0,r[(m|0?m+32|0:236)>>2]=w,r[64]=m,r[63]=w,r[w+8>>2]=t,(f|0)==2?(t=3,m=h):(m=(f|0)==1,t=m?1:2,m=m?h+2|0:0),r[w+12>>2]=m,r[w+28>>2]=t,r[w>>2]=c,r[w+4>>2]=h,r[w+16>>2]=0,r[w+20>>2]=f,c=(f|0)==1,b[w+24>>0]=c&1,r[w+32>>2]=0,c|(f|0)==2&&(b[803]=1)}u(he,"d");function R(t){t=t|0;var c=0,h=0,f=0,m=0;for(m=r[73]|0,c=r[72]|0;;){if(f=c+2|0,c>>>0>=m>>>0){c=9;break}if(h=d[f>>1]|0,h<<16>>16==t<<16>>16){c=10;break}if(h<<16>>16==92)h=c+4|0,(d[h>>1]|0)==13?(c=c+6|0,c=(d[c>>1]|0)==10?c:h):c=h;else if(Te(h)|0){c=9;break}else c=f}(c|0)==9?(r[72]=f,M()):(c|0)==10&&(r[72]=f)}u(R,"v");function je(t,c){t=t|0,c=c|0;var h=0,f=0,m=0,w=0;return h=r[72]|0,f=d[h>>1]|0,w=(t|0)==(c|0),m=w?0:t,w=w?0:c,f<<16>>16==97&&(r[72]=h+4,h=k(1)|0,t=r[72]|0,X(h)|0?(R(h),c=(r[72]|0)+2|0,r[72]=c):(j(h)|0,c=r[72]|0),f=k(1)|0,h=r[72]|0),(h|0)!=(t|0)&&P(t,c,m,w),f|0}u(je,"A");function vt(){var t=0,c=0,h=0;h=r[73]|0,c=r[72]|0;e:for(;;){if(t=c+2|0,c>>>0>=h>>>0){c=6;break}switch(d[t>>1]|0){case 13:case 10:{c=6;break e}case 93:{c=7;break e}case 92:{t=c+4|0;break}default:}c=t}return(c|0)==6?(r[72]=t,M(),t=0):(c|0)==7&&(r[72]=t,t=93),t|0}u(vt,"C");function de(){var t=0,c=0,h=0;e:for(;;){if(t=r[72]|0,c=t+2|0,r[72]=c,t>>>0>=(r[73]|0)>>>0){h=7;break}switch(d[c>>1]|0){case 13:case 10:{h=7;break e}case 47:break e;case 91:{vt()|0;break}case 92:{r[72]=t+4;break}default:}}(h|0)==7&&M()}u(de,"g");function Et(t){switch(t=t|0,d[t>>1]|0){case 62:{t=(d[t+-2>>1]|0)==61;break}case 41:case 59:{t=1;break}case 104:{t=L(t+-2|0,210,4)|0;break}case 121:{t=L(t+-2|0,218,6)|0;break}case 101:{t=L(t+-2|0,230,3)|0;break}default:t=0}return t|0}u(Et,"p");function ge(t){t=t|0;var c=0,h=0,f=0,m=0,w=0;for(m=(r[72]|0)+2|0,r[72]=m,h=r[73]|0;c=m+2|0,!(m>>>0>=h>>>0||(f=d[c>>1]|0,!t&&Te(f)|0));){if(f<<16>>16==42&&(d[m+4>>1]|0)==47){w=8;break}m=c}(w|0)==8&&(r[72]=c,c=m+4|0),r[72]=c}u(ge,"y");function A(t,c,h){t=t|0,c=c|0,h=h|0;var f=0,m=0;e:do if(!h)t=0;else{for(;f=b[t>>0]|0,m=b[c>>0]|0,f<<24>>24==m<<24>>24;)if(h=h+-1|0,h)t=t+1|0,c=c+1|0;else{t=0;break e}t=(f&255)-(m&255)|0}while(!1);return t|0}u(A,"m");function ie(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:{t=1;break}default:if((t&-8)<<16>>16==40|(t+-58&65535)<6)t=1;else{switch(t<<16>>16){case 91:case 93:case 94:{t=1;break e}default:}t=(t+-123&65535)<4}}while(!1);return t|0}u(ie,"I");function _t(t){t=t|0;e:do switch(t<<16>>16){case 38:case 37:case 33:break;default:if(!((t+-58&65535)<6|(t+-40&65535)<7&t<<16>>16!=41)){switch(t<<16>>16){case 91:case 94:break e;default:}return t<<16>>16!=125&(t+-123&65535)<4|0}}while(!1);return 1}u(_t,"U");function Ue(t){t=t|0;var c=0;c=d[t>>1]|0;e:do if((c+-9&65535)>=5){switch(c<<16>>16){case 160:case 32:{c=1;break e}default:}if(ie(c)|0)return c<<16>>16!=46|(me(t)|0)|0;c=0}else c=1;while(!1);return c|0}u(Ue,"x");function It(t){t=t|0;var c=0,h=0,f=0,m=0;return h=_,_=_+16|0,f=h,r[f>>2]=0,r[66]=t,c=r[3]|0,m=c+(t<<1)|0,t=m+2|0,d[m>>1]=0,r[f>>2]=t,r[67]=t,r[59]=0,r[63]=0,r[61]=0,r[60]=0,r[65]=0,r[62]=0,_=h,c|0}u(It,"S");function P(t,c,h,f){t=t|0,c=c|0,h=h|0,f=f|0;var m=0,w=0;m=r[67]|0,r[67]=m+20,w=r[65]|0,r[(w|0?w+16|0:240)>>2]=m,r[65]=m,r[m>>2]=t,r[m+4>>2]=c,r[m+8>>2]=h,r[m+12>>2]=f,r[m+16>>2]=0,b[803]=1}u(P,"O");function L(t,c,h){t=t|0,c=c|0,h=h|0;var f=0,m=0;return f=t+(0-h<<1)|0,m=f+2|0,t=r[3]|0,m>>>0>=t>>>0&&!(A(m,c,h<<1)|0)?(m|0)==(t|0)?t=1:t=Ue(f)|0:t=0,t|0}u(L,"$");function Lt(t){switch(t=t|0,d[t>>1]|0){case 107:{t=L(t+-2|0,150,4)|0;break}case 101:{(d[t+-2>>1]|0)==117?t=L(t+-4|0,122,6)|0:t=0;break}default:t=0}return t|0}u(Lt,"j");function G(t,c){t=t|0,c=c|0;var h=0;return h=r[3]|0,h>>>0<=t>>>0&&(d[t>>1]|0)==c<<16>>16?(h|0)==(t|0)?h=1:h=be(d[t+-2>>1]|0)|0:h=0,h|0}u(G,"B");function be(t){t=t|0;e:do if((t+-9&65535)<5)t=1;else{switch(t<<16>>16){case 32:case 160:{t=1;break e}default:}t=t<<16>>16!=46&(ie(t)|0)}while(!1);return t|0}u(be,"E");function pe(){var t=0,c=0,h=0;t=r[73]|0,h=r[72]|0;e:for(;c=h+2|0,!(h>>>0>=t>>>0);)switch(d[c>>1]|0){case 13:case 10:break e;default:h=c}r[72]=c}u(pe,"P");function j(t){for(t=t|0;!(W(t)|0||ie(t)|0);)if(t=(r[72]|0)+2|0,r[72]=t,t=d[t>>1]|0,!(t<<16>>16)){t=0;break}return t|0}u(j,"q");function Ot(){var t=0;switch(t=r[(r[61]|0)+20>>2]|0,t|0){case 1:{t=-1;break}case 2:{t=-2;break}default:t=t-(r[3]|0)>>1}return t|0}u(Ot,"z");function At(t){return t=t|0,!(L(t,196,5)|0)&&!(L(t,44,3)|0)?t=L(t,206,2)|0:t=1,t|0}u(At,"D");function se(t){switch(t=t|0,t<<16>>16){case 160:case 32:case 12:case 11:case 9:{t=1;break}default:t=0}return t|0}u(se,"F");function me(t){return t=t|0,(d[t>>1]|0)==46&&(d[t+-2>>1]|0)==46?t=(d[t+-4>>1]|0)==46:t=0,t|0}u(me,"G");function K(t){return t=t|0,(r[3]|0)==(t|0)?t=1:t=Ue(t+-2|0)|0,t|0}u(K,"H");function Nt(){var t=0;return t=r[(r[62]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}u(Nt,"J");function Rt(){var t=0;return t=r[(r[61]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}u(Rt,"K");function Mt(){var t=0;return t=r[(r[62]|0)+8>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}u(Mt,"L");function $t(){var t=0;return t=r[(r[61]|0)+16>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}u($t,"M");function Dt(){var t=0;return t=r[(r[61]|0)+4>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}u(Dt,"N");function jt(){var t=0;return t=r[61]|0,t=r[(t|0?t+32|0:236)>>2]|0,r[61]=t,(t|0)!=0|0}u(jt,"Q");function Ut(){var t=0;return t=r[62]|0,t=r[(t|0?t+16|0:240)>>2]|0,r[62]=t,(t|0)!=0|0}u(Ut,"R");function M(){b[802]=1,r[68]=(r[72]|0)-(r[3]|0)>>1,r[72]=(r[73]|0)+2}u(M,"T");function W(t){return t=t|0,(t|128)<<16>>16==160|(t+-9&65535)<5|0}u(W,"V");function X(t){return t=t|0,t<<16>>16==39|t<<16>>16==34|0}u(X,"W");function Tt(){return(r[(r[61]|0)+8>>2]|0)-(r[3]|0)>>1|0}u(Tt,"X");function Ft(){return(r[(r[62]|0)+4>>2]|0)-(r[3]|0)>>1|0}u(Ft,"Y");function Te(t){return t=t|0,t<<16>>16==13|t<<16>>16==10|0}u(Te,"Z");function Bt(){return(r[r[61]>>2]|0)-(r[3]|0)>>1|0}u(Bt,"_");function Pt(){return(r[r[62]>>2]|0)-(r[3]|0)>>1|0}u(Pt,"ee");function Wt(){return S[(r[61]|0)+24>>0]|0|0}u(Wt,"ae");function Jt(t){t=t|0,r[3]=t}u(Jt,"re");function qt(){return r[(r[61]|0)+28>>2]|0}u(qt,"ie");function zt(){return(b[803]|0)!=0|0}u(zt,"se");function Ht(){return(b[804]|0)!=0|0}u(Ht,"fe");function Gt(){return r[68]|0}u(Gt,"te");function Kt(t){return t=t|0,_=t+992+15&-16,992}return u(Kt,"ce"),{su:Kt,ai:$t,e:Gt,ee:Ft,ele:Nt,els:Mt,es:Pt,f:Ht,id:Ot,ie:Dt,ip:Wt,is:Bt,it:qt,ms:zt,p:N,re:Ut,ri:jt,sa:It,se:Rt,ses:Jt,ss:Tt}}(typeof self<"u"?self:global,{},oe),ve=E.su(Y-(2<<17))}const i=I.length+1;E.ses(ve),E.sa(i-1),Be(I,new Uint16Array(oe,ve,i)),E.p()||(C=E.e(),U());const o=[],a=[];for(;E.ri();){const l=E.is(),p=E.ie(),g=E.ai(),b=E.id(),d=E.ss(),r=E.se(),S=E.it();let O;E.ip()&&(O=Ee(b===-1?l:l+1,I.charCodeAt(b===-1?l-1:l))),o.push({t:S,n:O,s:l,e:p,ss:d,se:r,d:b,a:g})}for(;E.re();){const l=E.es(),p=E.ee(),g=E.els(),b=E.ele(),d=I.charCodeAt(l),r=g>=0?I.charCodeAt(g):-1;a.push({s:l,e:p,ls:g,le:b,n:d===34||d===39?Ee(l+1,d):I.slice(l,p),ln:g<0?void 0:r===34||r===39?Ee(g+1,r):I.slice(g,b)})}return[o,a,!!E.f(),!!E.ms()]}u(on,"parse");function Ee(s,e){C=s;let n="",i=C;for(;;){C>=I.length&&U();const o=I.charCodeAt(C);if(o===e)break;o===92?(n+=I.slice(i,C),n+=an(),i=C):(o===8232||o===8233||We(o)&&U(),++C)}return n+=I.slice(i,C++),n}u(Ee,"b");function an(){let s=I.charCodeAt(++C);switch(++C,s){case 110:return`
2
+ `;case 114:return"\r";case 120:return String.fromCharCode(_e(2));case 117:return function(){const e=I.charCodeAt(C);let n;return e===123?(++C,n=_e(I.indexOf("}",C)-C),++C,n>1114111&&U()):n=_e(4),n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode(55296+(n>>10),56320+(1023&n)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:I.charCodeAt(C)===10&&++C;case 10:return"";case 56:case 57:U();default:if(s>=48&&s<=55){let e=I.substr(C-1,3).match(/^[0-7]+/)[0],n=parseInt(e,8);return n>255&&(e=e.slice(0,-1),n=parseInt(e,8)),C+=e.length-1,s=I.charCodeAt(C),e==="0"&&s!==56&&s!==57||U(),String.fromCharCode(n)}return We(s)?"":String.fromCharCode(s)}}u(an,"k");function _e(s){const e=C;let n=0,i=0;for(let o=0;o<s;++o,++C){let a,l=I.charCodeAt(C);if(l!==95){if(l>=97)a=l-97+10;else if(l>=65)a=l-65+10;else{if(!(l>=48&&l<=57))break;a=l-48}if(a>=16)break;i=l,n=16*n+a}else i!==95&&o!==0||U(),i=l}return i!==95&&C-e===s||U(),n}u(_e,"l");function We(s){return s===13||s===10}u(We,"u");function U(){throw Object.assign(Error(`Parse error ${Pe}:${I.slice(0,C).split(`
3
+ `).length}:${C-I.lastIndexOf(`
4
+ `,C-1)}`),{idx:C})}u(U,"o");let Ie;typeof WebAssembly<"u"&&(async()=>{const{parse:s,init:e}=await import("./lexer-DQCqS3nf.mjs");await e,Ie=s})();const ae=u((s,e)=>Ie?Ie(s,e):on(s,e),"parseEsm"),cn=u(s=>{if(!s.includes("import")&&!s.includes("export"))return!1;try{return ae(s)[3]}catch{return!0}},"isESM");var ln=44,un=59,Je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qe=new Uint8Array(64),fn=new Uint8Array(128);for(let s=0;s<Je.length;s++){const e=Je.charCodeAt(s);qe[s]=e,fn[e]=s}function Q(s,e,n){let i=e-n;i=i<0?-i<<1|1:i<<1;do{let o=i&31;i>>>=5,i>0&&(o|=32),s.write(qe[o])}while(i>0);return e}u(Q,"encodeInteger$1");var ze=1024*16,He=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(s){return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString()}}:{decode(s){let e="";for(let n=0;n<s.length;n++)e+=String.fromCharCode(s[n]);return e}},hn=class{static{u(this,"StringWriter")}constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(ze)}write(s){const{buffer:e}=this;e[this.pos++]=s,this.pos===ze&&(this.out+=He.decode(e),this.pos=0)}flush(){const{buffer:s,out:e,pos:n}=this;return n>0?e+He.decode(s.subarray(0,n)):e}};function dn(s){const e=new hn;let n=0,i=0,o=0,a=0;for(let l=0;l<s.length;l++){const p=s[l];if(l>0&&e.write(un),p.length===0)continue;let g=0;for(let b=0;b<p.length;b++){const d=p[b];b>0&&e.write(ln),g=Q(e,d[0],g),d.length!==1&&(n=Q(e,d[1],n),i=Q(e,d[2],i),o=Q(e,d[3],o),d.length!==4&&(a=Q(e,d[4],a)))}}return e.flush()}u(dn,"encode$1");class fe{static{u(this,"BitSet")}constructor(e){this.bits=e instanceof fe?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class re{static{u(this,"Chunk")}constructor(e,n,i){this.start=e,this.end=n,this.original=i,this.intro="",this.outro="",this.content=i,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){const e=new re(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let n=this;for(;n;)e(n),n=n.next}eachPrevious(e){let n=this;for(;n;)e(n),n=n.previous}edit(e,n,i){return this.content=e,i||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){const n=e-this.start,i=this.original.slice(0,n),o=this.original.slice(n);this.original=i;const a=new re(e,this.end,o);return a.outro=this.outro,this.outro="",this.end=e,this.edited?(a.edit("",!1),this.content=""):this.content=i,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const n=this.content.replace(e,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;const n=this.content.replace(e,"");if(n.length){if(n!==this.content){const i=this.split(this.end-n.length);this.edited&&i.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}}function gn(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?s=>globalThis.btoa(unescape(encodeURIComponent(s))):typeof Buffer=="function"?s=>Buffer.from(s,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}u(gn,"getBtoa");const bn=gn();let pn=class{static{u(this,"SourceMap")}constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=dn(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+bn(this.toString())}};function mn(s){const e=s.split(`
5
+ `),n=e.filter(a=>/^\t+/.test(a)),i=e.filter(a=>/^ {2,}/.test(a));if(n.length===0&&i.length===0)return null;if(n.length>=i.length)return" ";const o=i.reduce((a,l)=>{const p=/^ +/.exec(l)[0].length;return Math.min(p,a)},1/0);return new Array(o+1).join(" ")}u(mn,"guessIndent");function wn(s,e){const n=s.split(/[/\\]/),i=e.split(/[/\\]/);for(n.pop();n[0]===i[0];)n.shift(),i.shift();if(n.length){let o=n.length;for(;o--;)n[o]=".."}return n.concat(i).join("/")}u(wn,"getRelativePath");const kn=Object.prototype.toString;function Cn(s){return kn.call(s)==="[object Object]"}u(Cn,"isObject");function Ge(s){const e=s.split(`
6
+ `),n=[];for(let i=0,o=0;i<e.length;i++)n.push(o),o+=e[i].length+1;return u(function(o){let a=0,l=n.length;for(;a<l;){const b=a+l>>1;o<n[b]?l=b:a=b+1}const p=a-1,g=o-n[p];return{line:p,column:g}},"locate")}u(Ge,"getLocator");const yn=/\w/;class Sn{static{u(this,"Mappings")}constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,n,i,o){if(n.length){const a=n.length-1;let l=n.indexOf(`
7
+ `,0),p=-1;for(;l>=0&&a>l;){const b=[this.generatedCodeColumn,e,i.line,i.column];o>=0&&b.push(o),this.rawSegments.push(b),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=l,l=n.indexOf(`
8
+ `,l+1)}const g=[this.generatedCodeColumn,e,i.line,i.column];o>=0&&g.push(o),this.rawSegments.push(g),this.advance(n.slice(p+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null}addUneditedChunk(e,n,i,o,a){let l=n.start,p=!0,g=!1;for(;l<n.end;){if(i[l]===`
9
+ `)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=!0,g=!1;else{if(this.hires||p||a.has(l)){const b=[this.generatedCodeColumn,e,o.line,o.column];this.hires==="boundary"?yn.test(i[l])?g||(this.rawSegments.push(b),g=!0):(this.rawSegments.push(b),g=!1):this.rawSegments.push(b)}o.column+=1,this.generatedCodeColumn+=1,p=!1}l+=1}this.pending=null}advance(e){if(!e)return;const n=e.split(`
10
+ `);if(n.length>1){for(let i=0;i<n.length-1;i++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=n[n.length-1].length}}const Z=`
11
+ `,q={insertLeft:!1,insertRight:!1,storeName:!1};class $e{static{u(this,"MagicString")}constructor(e,n={}){const i=new re(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:i},lastChunk:{writable:!0,value:i},lastSearchedChunk:{writable:!0,value:i},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new fe},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList},offset:{writable:!0,value:n.offset||0}}),this.byStart[0]=i,this.byEnd[e.length]=i}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.appendLeft(n):this.intro+=n,this}appendRight(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.appendRight(n):this.outro+=n,this}clone(){const e=new $e(this.original,{filename:this.filename,offset:this.offset});let n=this.firstChunk,i=e.firstChunk=e.lastSearchedChunk=n.clone();for(;n;){e.byStart[i.start]=i,e.byEnd[i.end]=i;const o=n.next,a=o&&o.clone();a&&(i.next=a,a.previous=i,i=a),n=o}return e.lastChunk=i,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new fe(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const n=0,i=Object.keys(this.storedNames),o=new Sn(e.hires),a=Ge(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(l=>{const p=a(l.start);l.intro.length&&o.advance(l.intro),l.edited?o.addEdit(n,l.content,p,l.storeName?i.indexOf(l.original):-1):o.addUneditedChunk(n,l,this.original,p,this.sourcemapLocations),l.outro.length&&o.advance(l.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?wn(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:i,mappings:o.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(e){return new pn(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=mn(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,n){const i=/^[^\r\n]/gm;if(Cn(e)&&(n=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;n=n||{};const o={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(d=>{for(let r=d[0];r<d[1];r+=1)o[r]=!0});let a=n.indentStart!==!1;const l=u(b=>a?`${e}${b}`:(a=!0,b),"replacer");this.intro=this.intro.replace(i,l);let p=0,g=this.firstChunk;for(;g;){const b=g.end;if(g.edited)o[p]||(g.content=g.content.replace(i,l),g.content.length&&(a=g.content[g.content.length-1]===`
12
+ `));else for(p=g.start;p<b;){if(!o[p]){const d=this.original[p];d===`
13
+ `?a=!0:d!=="\r"&&a&&(a=!1,p===g.start||(this._splitChunk(g,p),g=g.next),g.prependRight(e))}p+=1}p=g.end,g=g.next}return this.outro=this.outro.replace(i,l),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,n){return q.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),q.insertLeft=!0),this.appendLeft(e,n)}insertRight(e,n){return q.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),q.insertRight=!0),this.prependRight(e,n)}move(e,n,i){if(e=e+this.offset,n=n+this.offset,i=i+this.offset,i>=e&&i<=n)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(n),this._split(i);const o=this.byStart[e],a=this.byEnd[n],l=o.previous,p=a.next,g=this.byStart[i];if(!g&&a===this.lastChunk)return this;const b=g?g.previous:this.lastChunk;return l&&(l.next=p),p&&(p.previous=l),b&&(b.next=o),g&&(g.previous=a),o.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=b,a.next=g||null,b||(this.firstChunk=o),g||(this.lastChunk=a),this}overwrite(e,n,i,o){return o=o||{},this.update(e,n,i,{...o,overwrite:!o.contentOnly})}update(e,n,i,o){if(e=e+this.offset,n=n+this.offset,typeof i!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(e===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(n),o===!0&&(q.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),q.storeName=!0),o={storeName:!0});const a=o!==void 0?o.storeName:!1,l=o!==void 0?o.overwrite:!1;if(a){const b=this.original.slice(e,n);Object.defineProperty(this.storedNames,b,{writable:!0,value:!0,enumerable:!0})}const p=this.byStart[e],g=this.byEnd[n];if(p){let b=p;for(;b!==g;){if(b.next!==this.byStart[b.end])throw new Error("Cannot overwrite across a split point");b=b.next,b.edit("",!1)}p.edit(i,a,!l)}else{const b=new re(e,n,"").edit(i,a);g.next=b,b.previous=g}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.prependLeft(n):this.intro=n+this.intro,this}prependRight(e,n){if(e=e+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.prependRight(n):this.outro=n+this.outro,this}remove(e,n){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let i=this.byStart[e];for(;i;)i.intro="",i.outro="",i.edit(""),i=n>i.end?this.byStart[i.end]:null;return this}reset(e,n){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}if(e===n)return this;if(e<0||n>this.original.length)throw new Error("Character is out of bounds");if(e>n)throw new Error("end must be greater than start");this._split(e),this._split(n);let i=this.byStart[e];for(;i;)i.reset(),i=n>i.end?this.byStart[i.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(Z);if(e!==-1)return this.outro.substr(e+1);let n=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(e=i.outro.lastIndexOf(Z),e!==-1)return i.outro.substr(e+1)+n;n=i.outro+n}if(i.content.length>0){if(e=i.content.lastIndexOf(Z),e!==-1)return i.content.substr(e+1)+n;n=i.content+n}if(i.intro.length>0){if(e=i.intro.lastIndexOf(Z),e!==-1)return i.intro.substr(e+1)+n;n=i.intro+n}}while(i=i.previous);return e=this.intro.lastIndexOf(Z),e!==-1?this.intro.substr(e+1)+n:this.intro+n}slice(e=0,n=this.original.length-this.offset){if(e=e+this.offset,n=n+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;n<0;)n+=this.original.length}let i="",o=this.firstChunk;for(;o&&(o.start>e||o.end<=e);){if(o.start<n&&o.end>=n)return i;o=o.next}if(o&&o.edited&&o.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const a=o;for(;o;){o.intro&&(a!==o||o.start===e)&&(i+=o.intro);const l=o.start<n&&o.end>=n;if(l&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);const p=a===o?e-o.start:0,g=l?o.content.length+n-o.end:o.content.length;if(i+=o.content.slice(p,g),o.outro&&(!l||o.end===n)&&(i+=o.outro),l)break;o=o.next}return i}snip(e,n){const i=this.clone();return i.remove(0,e),i.remove(n,i.original.length),i}_split(e){if(this.byStart[e]||this.byEnd[e])return;let n=this.lastSearchedChunk,i=n;const o=e>n.end;for(;n;){if(n.contains(e))return this._splitChunk(n,e);if(n=o?this.byStart[n.end]:this.byEnd[n.start],n===i)return;i=n}}_splitChunk(e,n){if(e.edited&&e.content.length){const o=Ge(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${e.original}")`)}const i=e.split(n);return this.byEnd[n]=e,this.byStart[n]=i,this.byEnd[i.end]=i,e===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,n=this.firstChunk;for(;n;)e+=n.toString(),n=n.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,n=0;do n+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const n=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let i=this.lastChunk;do{const o=i.end,a=i.trimEnd(n);if(i.end!==o&&(this.lastChunk===i&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.previous}while(i);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const n=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let i=this.firstChunk;do{const o=i.end,a=i.trimStart(n);if(i.end!==o&&(i===this.lastChunk&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.next}while(i);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,n){function i(a,l){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(p,g)=>g==="$"?"$":g==="&"?a[0]:+g<a.length?a[+g]:`$${g}`):n(...a,a.index,l,a.groups)}u(i,"getReplacement");function o(a,l){let p;const g=[];for(;p=a.exec(l);)g.push(p);return g}if(u(o,"matchAll"),e.global)o(e,this.original).forEach(l=>{if(l.index!=null){const p=i(l,this.original);p!==l[0]&&this.overwrite(l.index,l.index+l[0].length,p)}});else{const a=this.original.match(e);if(a&&a.index!=null){const l=i(a,this.original);l!==a[0]&&this.overwrite(a.index,a.index+a[0].length,l)}}return this}_replaceString(e,n){const{original:i}=this,o=i.indexOf(e);return o!==-1&&this.overwrite(o,o+e.length,n),this}replace(e,n){return typeof e=="string"?this._replaceString(e,n):this._replaceRegexp(e,n)}_replaceAllString(e,n){const{original:i}=this,o=e.length;for(let a=i.indexOf(e);a!==-1;a=i.indexOf(e,a+o))i.slice(a,a+o)!==n&&this.overwrite(a,a+o,n);return this}replaceAll(e,n){if(typeof e=="string")return this._replaceAllString(e,n);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,n)}}const Le="2",xn=(s=>{const e="default";return s[e]&&typeof s[e]=="object"&&"__esModule"in s[e]?s[e]:s}).toString(),vn=`.then(${xn})`,ce=u((s,e,n)=>{if(n){if(!e.includes("import("))return}else if(!e.includes("import"))return;const o=ae(e,s)[0].filter(g=>g.d>-1);if(o.length===0)return;const a=new $e(e);for(const g of o)a.appendRight(g.se,vn);const l=a.toString(),p=a.generateMap({source:s,includeContent:!1,hires:"boundary"});return{code:l,map:p}},"transformDynamicImport"),Ke=u(s=>{try{const e=D.readFileSync(s,"utf8");return JSON.parse(e)}catch{}},"readJsonFile"),V=u(()=>{},"noop"),Xe=u(()=>Math.floor(Date.now()/1e8),"getTime"),En=/^(\d+)-([^-]+)$/;class _n extends Map{static{u(this,"FileCache")}cacheDirectory;oldCacheDirectory;diskCacheIndex;diskCacheEntries;constructor(e=rn,n=J.join(nn.tmpdir(),"tsx")){super(),this.cacheDirectory=e,this.oldCacheDirectory=n}getDiskCacheIndex(){if(this.diskCacheIndex)return this.diskCacheIndex;D.mkdirSync(this.cacheDirectory,{recursive:!0});const e=new Map,n=[];for(const i of D.readdirSync(this.cacheDirectory)){const o=En.exec(i);if(!o)continue;const a=Number(o[1]);if(!Number.isSafeInteger(a))continue;const l=o[2],p={time:a,key:l,fileName:i};n.push(p);const g=e.get(l);(!g||g.time<a)&&e.set(l,p)}return this.diskCacheIndex=e,this.diskCacheEntries=n,setImmediate(()=>{this.expireDiskCache().catch(V),this.removeOldCacheDirectory().catch(V)}),e}removeDiskCacheEntry(e){const n=this.diskCacheEntries.indexOf(e);if(n!==-1&&this.diskCacheEntries.splice(n,1),this.diskCacheIndex.get(e.key)===e){let i;for(const o of this.diskCacheEntries)o.key===e.key&&(!i||o.time>i.time)&&(i=o);i?this.diskCacheIndex.set(e.key,i):this.diskCacheIndex.delete(e.key)}}get(e){const n=super.get(e);if(n)return n;const i=this.getDiskCacheIndex();let o=i.get(e);for(;o;){const a=J.join(this.cacheDirectory,o.fileName),l=Ke(a);if(l)return super.set(e,l),l;this.removeDiskCacheEntry(o),D.promises.unlink(a).catch(V),o=i.get(e)}}set(e,n){if(super.set(e,n),n){const i=Xe(),o=`${i}-${e}`,a=this.getDiskCacheIndex(),l={time:i,key:e,fileName:o};D.promises.writeFile(J.join(this.cacheDirectory,o),JSON.stringify(n)).then(()=>{const p=a.get(e);p?.fileName===o&&this.removeDiskCacheEntry(p),a.set(e,l),this.diskCacheEntries.push(l)},V)}return this}async expireDiskCache(){this.getDiskCacheIndex();const e=Xe(),n=[];for(const i of this.diskCacheEntries)e-i.time>7&&n.push(D.promises.unlink(J.join(this.cacheDirectory,i.fileName)).then(()=>this.removeDiskCacheEntry(i),V));await Promise.all(n)}async removeOldCacheDirectory(){try{await D.promises.access(this.oldCacheDirectory).then(()=>!0)&&("rm"in D.promises?await D.promises.rm(this.oldCacheDirectory,{recursive:!0,force:!0}):await D.promises.rmdir(this.oldCacheDirectory,{recursive:!0}))}catch{}}}var z=process.env.TSX_DISABLE_CACHE?new Map:new _n;const Ye=44,In=59,Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ze=new Uint8Array(64),Ve=new Uint8Array(128);for(let s=0;s<Qe.length;s++){const e=Qe.charCodeAt(s);Ze[s]=e,Ve[e]=s}const Oe=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(s){return Buffer.from(s.buffer,s.byteOffset,s.byteLength).toString()}}:{decode(s){let e="";for(let n=0;n<s.length;n++)e+=String.fromCharCode(s[n]);return e}};function Ln(s){const e=new Int32Array(5),n=[];let i=0;do{const o=On(s,i),a=[];let l=!0,p=0;e[0]=0;for(let g=i;g<o;g++){let b;g=ee(s,g,e,0);const d=e[0];d<p&&(l=!1),p=d,et(s,g,o)?(g=ee(s,g,e,1),g=ee(s,g,e,2),g=ee(s,g,e,3),et(s,g,o)?(g=ee(s,g,e,4),b=[d,e[1],e[2],e[3],e[4]]):b=[d,e[1],e[2],e[3]]):b=[d],a.push(b)}l||An(a),n.push(a),i=o+1}while(i<=s.length);return n}u(Ln,"decode");function On(s,e){const n=s.indexOf(";",e);return n===-1?s.length:n}u(On,"indexOf");function ee(s,e,n,i){let o=0,a=0,l=0;do{const g=s.charCodeAt(e++);l=Ve[g],o|=(l&31)<<a,a+=5}while(l&32);const p=o&1;return o>>>=1,p&&(o=-2147483648|-o),n[i]+=o,e}u(ee,"decodeInteger");function et(s,e,n){return e>=n?!1:s.charCodeAt(e)!==Ye}u(et,"hasMoreVlq");function An(s){s.sort(Nn)}u(An,"sort");function Nn(s,e){return s[0]-e[0]}u(Nn,"sortComparator$1");function Rn(s){const e=new Int32Array(5),n=1024*16,i=n-36,o=new Uint8Array(n),a=o.subarray(0,i);let l=0,p="";for(let g=0;g<s.length;g++){const b=s[g];if(g>0&&(l===n&&(p+=Oe.decode(o),l=0),o[l++]=In),b.length!==0){e[0]=0;for(let d=0;d<b.length;d++){const r=b[d];l>i&&(p+=Oe.decode(a),o.copyWithin(0,i,l),l-=i),d>0&&(o[l++]=Ye),l=te(o,l,e,r,0),r.length!==1&&(l=te(o,l,e,r,1),l=te(o,l,e,r,2),l=te(o,l,e,r,3),r.length!==4&&(l=te(o,l,e,r,4)))}}}return p+Oe.decode(o.subarray(0,l))}u(Rn,"encode");function te(s,e,n,i,o){const a=i[o];let l=a-n[o];n[o]=a,l=l<0?-l<<1|1:l<<1;do{let p=l&31;l>>>=5,l>0&&(p|=32),s[e++]=Ze[p]}while(l>0);return e}u(te,"encodeInteger");const Mn=/^[\w+.-]+:\/\//,$n=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Dn=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function jn(s){return Mn.test(s)}u(jn,"isAbsoluteUrl");function Un(s){return s.startsWith("//")}u(Un,"isSchemeRelativeUrl");function tt(s){return s.startsWith("/")}u(tt,"isAbsolutePath");function Tn(s){return s.startsWith("file:")}u(Tn,"isFileUrl");function nt(s){return/^[.?#]/.test(s)}u(nt,"isRelative");function le(s){const e=$n.exec(s);return rt(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}u(le,"parseAbsoluteUrl");function Fn(s){const e=Dn.exec(s),n=e[2];return rt("file:","",e[1]||"","",tt(n)?n:"/"+n,e[3]||"",e[4]||"")}u(Fn,"parseFileUrl");function rt(s,e,n,i,o,a,l){return{scheme:s,user:e,host:n,port:i,path:o,query:a,hash:l,type:7}}u(rt,"makeUrl");function it(s){if(Un(s)){const n=le("http:"+s);return n.scheme="",n.type=6,n}if(tt(s)){const n=le("http://foo.com"+s);return n.scheme="",n.host="",n.type=5,n}if(Tn(s))return Fn(s);if(jn(s))return le(s);const e=le("http://foo.com/"+s);return e.scheme="",e.host="",e.type=s?s.startsWith("?")?3:s.startsWith("#")?2:4:1,e}u(it,"parseUrl");function Bn(s){if(s.endsWith("/.."))return s;const e=s.lastIndexOf("/");return s.slice(0,e+1)}u(Bn,"stripPathFilename");function Pn(s,e){st(e,e.type),s.path==="/"?s.path=e.path:s.path=Bn(e.path)+s.path}u(Pn,"mergePaths");function st(s,e){const n=e<=4,i=s.path.split("/");let o=1,a=0,l=!1;for(let g=1;g<i.length;g++){const b=i[g];if(!b){l=!0;continue}if(l=!1,b!=="."){if(b===".."){a?(l=!0,a--,o--):n&&(i[o++]=b);continue}i[o++]=b,a++}}let p="";for(let g=1;g<o;g++)p+="/"+i[g];(!p||l&&!p.endsWith("/.."))&&(p+="/"),s.path=p}u(st,"normalizePath");function Wn(s,e){if(!s&&!e)return"";const n=it(s);let i=n.type;if(e&&i!==7){const a=it(e),l=a.type;switch(i){case 1:n.hash=a.hash;case 2:n.query=a.query;case 3:case 4:Pn(n,a);case 5:n.user=a.user,n.host=a.host,n.port=a.port;case 6:n.scheme=a.scheme}l>i&&(i=l)}st(n,i);const o=n.query+n.hash;switch(i){case 2:case 3:return o;case 4:{const a=n.path.slice(1);return a?nt(e||s)&&!nt(a)?"./"+a+o:a+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}u(Wn,"resolve$1");function ot(s,e){return e&&!e.endsWith("/")&&(e+="/"),Wn(s,e)}u(ot,"resolve");function Jn(s){if(!s)return"";const e=s.lastIndexOf("/");return s.slice(0,e+1)}u(Jn,"stripFilename");const F=0;function qn(s,e){const n=at(s,0);if(n===s.length)return s;e||(s=s.slice());for(let i=n;i<s.length;i=at(s,i+1))s[i]=Hn(s[i],e);return s}u(qn,"maybeSort");function at(s,e){for(let n=e;n<s.length;n++)if(!zn(s[n]))return n;return s.length}u(at,"nextUnsortedSegmentLine");function zn(s){for(let e=1;e<s.length;e++)if(s[e][F]<s[e-1][F])return!1;return!0}u(zn,"isSorted");function Hn(s,e){return e||(s=s.slice()),s.sort(Gn)}u(Hn,"sortSegments");function Gn(s,e){return s[F]-e[F]}u(Gn,"sortComparator");let ue=!1;function Kn(s,e,n,i){for(;n<=i;){const o=n+(i-n>>1),a=s[o][F]-e;if(a===0)return ue=!0,o;a<0?n=o+1:i=o-1}return ue=!1,n-1}u(Kn,"binarySearch");function Xn(s,e,n){for(let i=n-1;i>=0&&s[i][F]===e;n=i--);return n}u(Xn,"lowerBound");function Yn(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}u(Yn,"memoizedState");function Qn(s,e,n,i){const{lastKey:o,lastNeedle:a,lastIndex:l}=n;let p=0,g=s.length-1;if(i===o){if(e===a)return ue=l!==-1&&s[l][F]===e,l;e>=a?p=l===-1?0:l:g=l}return n.lastKey=i,n.lastNeedle=e,n.lastIndex=Kn(s,e,p,g)}u(Qn,"memoizedBinarySearch");class ct{static{u(this,"TraceMap")}constructor(e,n){const i=typeof e=="string";if(!i&&e._decodedMemo)return e;const o=i?JSON.parse(e):e,{version:a,file:l,names:p,sourceRoot:g,sources:b,sourcesContent:d}=o;this.version=a,this.file=l,this.names=p||[],this.sourceRoot=g,this.sources=b,this.sourcesContent=d,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const r=ot(g||"",Jn(n));this.resolvedSources=b.map(O=>ot(O||"",r));const{mappings:S}=o;typeof S=="string"?(this._encoded=S,this._decoded=void 0):(this._encoded=void 0,this._decoded=qn(S,i)),this._decodedMemo=Yn(),this._bySources=void 0,this._bySourceMemos=void 0}}function Hr(s){return s}u(Hr,"cast$2");function lt(s){var e;return(e=s)._decoded||(e._decoded=Ln(s._encoded))}u(lt,"decodedMappings");function Zn(s,e,n){const i=lt(s);if(e>=i.length)return null;const o=i[e],a=Vn(o,s._decodedMemo,e,n);return a===-1?null:o[a]}u(Zn,"traceSegment");function Vn(s,e,n,i,o){let a=Qn(s,i,e,n);return ue&&(a=Xn(s,i,a)),a===-1||a===s.length?-1:a}u(Vn,"traceSegmentInternal");class Ae{static{u(this,"SetArray")}constructor(){this._indexes={__proto__:null},this.array=[]}}function Gr(s){return s}u(Gr,"cast$1");function ut(s,e){return s._indexes[e]}u(ut,"get");function ne(s,e){const n=ut(s,e);if(n!==void 0)return n;const{array:i,_indexes:o}=s,a=i.push(e);return o[e]=a-1}u(ne,"put");function er(s,e){const n=ut(s,e);if(n===void 0)return;const{array:i,_indexes:o}=s;for(let a=n+1;a<i.length;a++){const l=i[a];i[a-1]=l,o[l]--}o[e]=void 0,i.pop()}u(er,"remove");const tr=0,nr=1,rr=2,ir=3,sr=4,ft=-1;class or{static{u(this,"GenMapping")}constructor({file:e,sourceRoot:n}={}){this._names=new Ae,this._sources=new Ae,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new Ae}}function Kr(s){return s}u(Kr,"cast");const ar=u((s,e,n,i,o,a,l,p)=>fr(!0,s,e,n,i,o,a,l),"maybeAddSegment");function cr(s,e,n){const{_sources:i,_sourcesContent:o}=s,a=ne(i,e);o[a]=n}u(cr,"setSourceContent");function lr(s,e,n=!0){const{_sources:i,_sourcesContent:o,_ignoreList:a}=s,l=ne(i,e);l===o.length&&(o[l]=null),n?ne(a,l):er(a,l)}u(lr,"setIgnore");function ht(s){const{_mappings:e,_sources:n,_sourcesContent:i,_names:o,_ignoreList:a}=s;return gr(e),{version:3,file:s.file||void 0,names:o.array,sourceRoot:s.sourceRoot||void 0,sources:n.array,sourcesContent:i,mappings:e,ignoreList:a.array}}u(ht,"toDecodedMap");function ur(s){const e=ht(s);return Object.assign(Object.assign({},e),{mappings:Rn(e.mappings)})}u(ur,"toEncodedMap");function fr(s,e,n,i,o,a,l,p,g){const{_mappings:b,_sources:d,_sourcesContent:r,_names:S}=e,O=hr(b,n),_=dr(O,i);if(!o)return br(O,_)?void 0:dt(O,_,[i]);const N=ne(d,o),$=p?ne(S,p):ft;if(N===r.length&&(r[N]=null),!pr(O,_,N,a,l,$))return dt(O,_,p?[i,N,a,l,$]:[i,N,a,l])}u(fr,"addSegmentInternal");function hr(s,e){for(let n=s.length;n<=e;n++)s[n]=[];return s[e]}u(hr,"getLine");function dr(s,e){let n=s.length;for(let i=n-1;i>=0;n=i--){const o=s[i];if(e>=o[tr])break}return n}u(dr,"getColumnIndex");function dt(s,e,n){for(let i=s.length;i>e;i--)s[i]=s[i-1];s[e]=n}u(dt,"insert");function gr(s){const{length:e}=s;let n=e;for(let i=n-1;i>=0&&!(s[i].length>0);n=i,i--);n<e&&(s.length=n)}u(gr,"removeEmptyFinalLines");function br(s,e){return e===0?!0:s[e-1].length===1}u(br,"skipSourceless");function pr(s,e,n,i,o,a){if(e===0)return!1;const l=s[e-1];return l.length===1?!1:n===l[nr]&&i===l[rr]&&o===l[ir]&&a===(l.length===5?l[sr]:ft)}u(pr,"skipSource");const gt=bt("",-1,-1,"",null,!1),mr=[];function bt(s,e,n,i,o,a){return{source:s,line:e,column:n,name:i,content:o,ignore:a}}u(bt,"SegmentObject");function pt(s,e,n,i,o){return{map:s,sources:e,source:n,content:i,ignore:o}}u(pt,"Source");function mt(s,e){return pt(s,e,"",null,!1)}u(mt,"MapSource");function wr(s,e,n){return pt(null,mr,s,e,n)}u(wr,"OriginalSource");function kr(s){const e=new or({file:s.map.file}),{sources:n,map:i}=s,o=i.names,a=lt(i);for(let l=0;l<a.length;l++){const p=a[l];for(let g=0;g<p.length;g++){const b=p[g],d=b[0];let r=gt;if(b.length!==1){const H=n[b[1]];if(r=wt(H,b[2],b[3],b.length===5?o[b[4]]:""),r==null)continue}const{column:S,line:O,name:_,content:N,source:$,ignore:B}=r;ar(e,l,d,$,O,S,_),$&&N!=null&&cr(e,$,N),B&&lr(e,$,!0)}}return e}u(kr,"traceMappings");function wt(s,e,n,i){if(!s.map)return bt(s.source,e,n,i,s.content,s.ignore);const o=Zn(s.map,e,n);return o==null?null:o.length===1?gt:wt(s.sources[o[1]],o[2],o[3],o.length===5?s.map.names[o[4]]:i)}u(wt,"originalPositionFor");function Cr(s){return Array.isArray(s)?s:[s]}u(Cr,"asArray");function yr(s,e){const n=Cr(s).map(a=>new ct(a,"")),i=n.pop();for(let a=0;a<n.length;a++)if(n[a].sources.length>1)throw new Error(`Transformation map ${a} must have exactly one source file.
14
+ Did you specify these with the most recent transformation maps first?`);let o=kt(i,e,"",0);for(let a=n.length-1;a>=0;a--)o=mt(n[a],[o]);return o}u(yr,"buildSourceMapTree");function kt(s,e,n,i){const{resolvedSources:o,sourcesContent:a,ignoreList:l}=s,p=i+1,g=o.map((b,d)=>{const r={importer:n,depth:p,source:b||"",content:void 0,ignore:void 0},S=e(r.source,r),{source:O,content:_,ignore:N}=r;if(S)return kt(new ct(S,O),e,O,p);const $=_!==void 0?_:a?a[d]:null,B=N!==void 0?N:l?l.includes(d):!1;return wr(O,$,B)});return mt(s,g)}u(kt,"build");class Sr{static{u(this,"SourceMap")}constructor(e,n){const i=n.decodedMappings?ht(e):ur(e);this.version=i.version,this.file=i.file,this.mappings=i.mappings,this.names=i.names,this.ignoreList=i.ignoreList,this.sourceRoot=i.sourceRoot,this.sources=i.sources,n.excludeContent||(this.sourcesContent=i.sourcesContent)}toString(){return JSON.stringify(this)}}function Ct(s,e,n){const i={excludeContent:!!n,decodedMappings:!1},o=yr(s,e);return new Sr(kr(o),i)}u(Ct,"remapping");const yt=u((s,e,n)=>{const i=[],o={code:e};for(const a of n){const l=a(s,o.code);l&&(Object.assign(o,l),i.unshift(l.map))}return{...o,map:Ct(i,()=>null)}},"applyTransformersSync"),xr=u(async(s,e,n)=>{const i=[],o={code:e};for(const a of n){const l=await a(s,o.code);l&&(Object.assign(o,l),i.unshift(l.map))}return{...o,map:Ct(i,()=>null)}},"applyTransformers"),vr=u(s=>{const e=[];let n=!1,i=!0;for(let o=0;o<s.length;o+=1){let a=s[o];if(a==="\\"&&n){if(o+1===s.length)return e;o+=1,a=s[o]}else if(a===" "&&!n){i=!0;continue}else if(a==='"'){n=!n;continue}i?(e.push(a),i=!1):e[e.length-1]+=a}return e},"tokenizeNodeOptionsEnv"),St=u((s,e,n)=>{for(let i=0;i<e.length;i+=1){const o=e[i];if(o.length<=1||o[0]!=="-")continue;const a=o[1]==="-"?o.indexOf("="):-1;let l=a===-1?o:o.slice(0,a);l.includes("_",2)&&(l=l.slice(0,2)+l.slice(2).replaceAll("_","-"));for(const p of s.forms){const[g,b]=p;if(l!==g||(b===3||b===5)&&a===-1)continue;const d=b===4||b===5,r=b>=3?0:b;let S=d?p[2]:"";r===0&&!d&&(a===-1?(i+=1,S=e[i]??"",S[0]==="\\"&&S[1]==="-"&&(S=S.slice(1))):S=o.slice(a+1)),n=s.fold(S,n,r);break}}return n},"scanSource"),Er=u(s=>{let e=s.init();const n=process.env.NODE_OPTIONS;return n&&(e=St(s,vr(n),e)),e=St(s,process.execArgv,e),e},"getOptionValue"),_r=u((s,e,n)=>n===1,"setByEffect"),Ir=u((s,e)=>({forms:e,init:u(()=>s,"init"),fold:_r}),"booleanFlag"),Lr=Ir(!1,[["--inspect-brk-node",1],["--inspect-brk",1],["--inspect-wait",1],["--inspect",1],["--no-inspect",2]]),Or=Object.freeze({target:`node${process.versions.node}`,loader:"default"}),Ar=Er(Lr),Ne={...Or,sourcemap:!0,sourcesContent:!!process.env.NODE_V8_COVERAGE||Ar,minifyWhitespace:!0,keepNames:!0},Re=u(s=>{const e=s.sourcefile;if(e){const n=J.extname(e.split("?")[0]);n?n===".cts"||n===".mts"?s.sourcefile=`${e.slice(0,-3)}ts`:n===".mjs"&&(s.sourcefile=`${e.slice(0,-3)}js`):s.sourcefile+=".js"}return n=>(n.map&&(s.sourcefile!==e&&(n.map=n.map.replace(JSON.stringify(s.sourcefile),JSON.stringify(e))),n.map=JSON.parse(n.map)),n)},"patchOptions"),Me=u(s=>{throw s.name="TransformError",delete s.errors,delete s.warnings,s},"formatEsbuildError"),Nr=u((s,e)=>({...en(tn)?{dirname:J.dirname(s),filename:s}:{},url:e}),"getImportMeta"),Rr=u((s,e)=>{if(!s.includes("import"))return!1;try{return ae(s,e)[0].some(n=>n.d===-2)}catch{return!0}},"hasImportMeta"),Mr=u((s,e,n)=>{let i,o,a;if(e.startsWith("file://")){i=e;const r=new URL(e);o=Yt(r)}else[o,a]=e.split("?"),i=Qt(o)+(a?`?${a}`:"");const{cjsBanner:l,...p}=n??{},g={...Ne,format:"cjs",sourcefile:o,banner:`__filename=${JSON.stringify(o)};(()=>{${l??""}`,footer:"})()",platform:"node",...p};g.format==="cjs"&&!o.endsWith(".cjs")&&!o.endsWith(".cts")&&Rr(s,o)&&(g.define={...g.define,"import.meta":JSON.stringify(Nr(o,i))});const b=xe([s,i,JSON.stringify(g),Se,Le].join("-"));let d=z.get(b);return d||(d=yt(e,s,[(r,S)=>{const O=Re(g);let _;try{_=Fe(S,g)}catch(N){throw Me(N)}return O(_)},(r,S)=>ce(r,S,!0)]),z.set(b,d)),d},"transformSync"),$r=u(async(s,e,n)=>{const i={...Ne,format:"esm",sourcefile:e,...n},o=xe([s,JSON.stringify(i),Se,Le].join("-"));let a=z.get(o);return a||(a=await xr(e,s,[async(l,p)=>{const g=Re(i);let b;try{b=await Zt(p,i)}catch(d){throw Me(d)}return g(b)},(l,p)=>ce(l,p,!0)]),z.set(o,a)),a},"transform"),Dr=u((s,e,n)=>{const i={...Ne,format:"esm",sourcefile:e,...n},o=xe([s,JSON.stringify(i),Se,Le].join("-"));let a=z.get(o);return a||(a=yt(e,s,[(l,p)=>{const g=Re(i);let b;try{b=Fe(p,i)}catch(d){throw Me(d)}return g(b)},(l,p)=>ce(l,p,!0)]),z.set(o,a)),a},"transformEsmSync");export{Mr as a,ce as b,Dr as c,cn as i,ae as p,Ke as r,$r as t};
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-wDwCPFLq.cjs"),require("node:crypto"),require("node:module"),require("./register-CeSc3Ioe.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-q7m0qHzm.cjs"),r.require("./cjs/index.cjs"),exports.globalPreload=e.globalPreload,exports.initialize=e.initialize,exports.load=e.load,exports.resolve=e.resolve;
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-Ciecs-Zx.cjs"),require("node:crypto"),require("node:module"),require("./register-C557imBs.cjs"),require("node:url"),require("node:fs"),require("fs"),require("os"),require("path"),require("./index-6kqi0x0U.cjs"),require("esbuild"),require("./client-D3mGB526.cjs"),require("node:net"),require("node:util"),require("./index-BWFBUo6r.cjs"),require("node:fs/promises"),require("./require-DDxgG93A.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-loq3nxmB.mjs";import"node:crypto";import"node:module";import"./register-DyKhpi9B.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-D2vka2IK.mjs";r("./cjs/index.cjs");export{A as globalPreload,B as initialize,C as load,D as resolve};
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-C4vWVmug.mjs";import"node:crypto";import"node:module";import"./register-C9AniqUt.mjs";import"node:url";import"node:fs";import"fs";import"os";import"path";import"./index-DQtFPMc2.mjs";import"esbuild";import"./client-D_mPDF5S.mjs";import"node:net";import"node:util";import"./index-gbaejti9.mjs";import"node:fs/promises";import"./require-CywAB2e6.mjs";r("./cjs/index.cjs");export{A as globalPreload,B as initialize,C as load,D as resolve};
@@ -0,0 +1 @@
1
+ var r="4.23.12";export{r as v};
@@ -0,0 +1 @@
1
+ "use strict";var r="4.23.12";exports.version=r;
@@ -1,2 +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-DyKhpi9B.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
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-C9AniqUt.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-DQtFPMc2.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
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};
@@ -1,4 +1,4 @@
1
- "use strict";var vt=Object.defineProperty;var u=(e,t)=>vt(e,"name",{value:t,configurable:!0});var Et=require("./get-pipe-path-D4YM6rQt.cjs"),P=require("node:module"),m=require("node:path"),K=require("node:url"),U=require("node:fs"),Ct=require("fs"),jt=require("os"),Tt=require("path"),fe=require("./index-LWEOpzQe.cjs"),De=require("./client-D3mGB526.cjs"),St=require("node:util"),M=require("./index-BWFBUo6r.cjs"),Le=require("./node-features-CEjg7cMX.cjs");const Ue=u(e=>{if(!e.startsWith("data:text/javascript,"))return;const t=e.indexOf("?");if(t===-1)return;const n=new URLSearchParams(e.slice(t+1)).get("filePath");if(n)return n},"getOriginalFilePath"),Re=u(e=>{const t=Ue(e);return t&&(P._cache[t]=P._cache[e],delete P._cache[e],e=t),e},"interopCjsExports"),Fe=u(e=>e!==null&&typeof e=="object","A"),W=u((e,t)=>Object.assign(new Error(`[${e}]: ${t}`),{code:e}),"a"),Ie="ERR_INVALID_PACKAGE_CONFIG",de="ERR_INVALID_PACKAGE_TARGET",Ot="ERR_PACKAGE_PATH_NOT_EXPORTED",At=/^\d+$/,Pt=/^(\.{1,2}|node_modules)$/i,$t=/\/|\\/;var Ne=(e=>(e.Export="exports",e.Import="imports",e))(Ne||{});const he=u((e,t,r,n,s)=>{if(t==null)return[];if(typeof t=="string"){const[o,...a]=t.split($t);if(o===".."||a.some(i=>Pt.test(i)))throw W(de,`Invalid "${e}" target "${t}" defined in the package config`);return[s?t.replace(/\*/g,s):t]}if(Array.isArray(t))return t.flatMap(o=>he(e,o,r,n,s));if(Fe(t)){for(const o of Object.keys(t)){if(At.test(o))throw W(Ie,"Cannot contain numeric property keys");if(o==="default"||n.includes(o))return he(e,t[o],r,n,s)}return[]}throw W(de,`Invalid "${e}" target "${t}"`)},"f"),z="*",_t=u((e,t)=>{const r=e.indexOf(z),n=t.indexOf(z);return r===n?t.length>e.length:n>r},"m");function Dt(e,t){if(!t.includes(z)&&e.hasOwnProperty(t))return[t];let r,n;for(const s of Object.keys(e))if(s.includes(z)){const[o,a,i]=s.split(z);if(i===void 0&&t.startsWith(o)&&t.endsWith(a)){const h=t.slice(o.length,-a.length||void 0);h&&(!r||_t(r,s))&&(r=s,n=h)}}return[r,n]}u(Dt,"d");const Lt=u(e=>Object.keys(e).reduce((t,r)=>{const n=r===""||r[0]!==".";if(t===void 0||t===n)return n;throw W(Ie,'"exports" cannot contain some keys starting with "." and some not')},void 0),"p"),Ut=/^\w+:/,Rt=u((e,t,r)=>{if(!e)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof e=="string"||Array.isArray(e)||Fe(e)&&Lt(e))&&(e={".":e});const[n,s]=Dt(e,t),o=he(Ne.Export,e[n],t,r,s);if(o.length===0)throw W(Ot,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const a of o)if(!a.startsWith("./")&&!Ut.test(a))throw W(de,`Invalid "exports" target "${a}" defined in the package config`);return o},"v");var Ft=Object.defineProperty,c=u((e,t)=>Ft(e,"name",{value:t,configurable:!0}),"i");function A(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}u(A,"x"),c(A,"slash");const It=c((e,t)=>{const r=`readFileSync:${t}`;let n=e?.get(r);return n===void 0&&(n=U.readFileSync(t,"utf8"),e?.set(r,n)),n},"readFile"),_=c((e,t)=>{const r=`tryStat:${t}`;let n=e?.get(r);if(n===void 0){try{n=U.statSync(t)}catch{n=null}e?.set(r,n)}return n??void 0},"tryStat"),H=c((e,t,r)=>{for(;;){const n=m.posix.join(e,t);if(_(r,n))return n;const s=m.dirname(e);if(s===e)return;e=s}},"findUp");function Be(e,t=!1){const r=e.length;let n=0,s="",o=0,a=16,i=0,h=0,p=0,y=0,f=0;function v(l,C){let S=0,w=0;for(;S<l;){let x=e.charCodeAt(n);if(x>=48&&x<=57)w=w*16+x-48;else if(x>=65&&x<=70)w=w*16+x-65+10;else if(x>=97&&x<=102)w=w*16+x-97+10;else break;n++,S++}return S<l&&(w=-1),w}u(v,"A"),c(v,"scanHexDigits");function b(l){n=l,s="",o=0,a=16,f=0}u(b,"O"),c(b,"setPosition");function k(){let l=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&I(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&I(e.charCodeAt(n)))for(n++;n<e.length&&I(e.charCodeAt(n));)n++;else return f=3,e.substring(l,n);let C=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&I(e.charCodeAt(n))){for(n++;n<e.length&&I(e.charCodeAt(n));)n++;C=n}else f=3;return e.substring(l,C)}u(k,"h"),c(k,"scanNumber");function E(){let l="",C=n;for(;;){if(n>=r){l+=e.substring(C,n),f=2;break}const S=e.charCodeAt(n);if(S===34){l+=e.substring(C,n),n++;break}if(S===92){if(l+=e.substring(C,n),n++,n>=r){f=2;break}switch(e.charCodeAt(n++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
1
+ "use strict";var vt=Object.defineProperty;var u=(e,t)=>vt(e,"name",{value:t,configurable:!0});var Et=require("./get-pipe-path-D4YM6rQt.cjs"),P=require("node:module"),m=require("node:path"),K=require("node:url"),U=require("node:fs"),Ct=require("fs"),jt=require("os"),Tt=require("path"),fe=require("./index-6kqi0x0U.cjs"),De=require("./client-D3mGB526.cjs"),St=require("node:util"),M=require("./index-BWFBUo6r.cjs"),Le=require("./node-features-CEjg7cMX.cjs");const Ue=u(e=>{if(!e.startsWith("data:text/javascript,"))return;const t=e.indexOf("?");if(t===-1)return;const n=new URLSearchParams(e.slice(t+1)).get("filePath");if(n)return n},"getOriginalFilePath"),Re=u(e=>{const t=Ue(e);return t&&(P._cache[t]=P._cache[e],delete P._cache[e],e=t),e},"interopCjsExports"),Fe=u(e=>e!==null&&typeof e=="object","A"),W=u((e,t)=>Object.assign(new Error(`[${e}]: ${t}`),{code:e}),"a"),Ie="ERR_INVALID_PACKAGE_CONFIG",de="ERR_INVALID_PACKAGE_TARGET",Ot="ERR_PACKAGE_PATH_NOT_EXPORTED",At=/^\d+$/,Pt=/^(\.{1,2}|node_modules)$/i,$t=/\/|\\/;var Ne=(e=>(e.Export="exports",e.Import="imports",e))(Ne||{});const he=u((e,t,r,n,s)=>{if(t==null)return[];if(typeof t=="string"){const[o,...a]=t.split($t);if(o===".."||a.some(i=>Pt.test(i)))throw W(de,`Invalid "${e}" target "${t}" defined in the package config`);return[s?t.replace(/\*/g,s):t]}if(Array.isArray(t))return t.flatMap(o=>he(e,o,r,n,s));if(Fe(t)){for(const o of Object.keys(t)){if(At.test(o))throw W(Ie,"Cannot contain numeric property keys");if(o==="default"||n.includes(o))return he(e,t[o],r,n,s)}return[]}throw W(de,`Invalid "${e}" target "${t}"`)},"f"),z="*",_t=u((e,t)=>{const r=e.indexOf(z),n=t.indexOf(z);return r===n?t.length>e.length:n>r},"m");function Dt(e,t){if(!t.includes(z)&&e.hasOwnProperty(t))return[t];let r,n;for(const s of Object.keys(e))if(s.includes(z)){const[o,a,i]=s.split(z);if(i===void 0&&t.startsWith(o)&&t.endsWith(a)){const h=t.slice(o.length,-a.length||void 0);h&&(!r||_t(r,s))&&(r=s,n=h)}}return[r,n]}u(Dt,"d");const Lt=u(e=>Object.keys(e).reduce((t,r)=>{const n=r===""||r[0]!==".";if(t===void 0||t===n)return n;throw W(Ie,'"exports" cannot contain some keys starting with "." and some not')},void 0),"p"),Ut=/^\w+:/,Rt=u((e,t,r)=>{if(!e)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof e=="string"||Array.isArray(e)||Fe(e)&&Lt(e))&&(e={".":e});const[n,s]=Dt(e,t),o=he(Ne.Export,e[n],t,r,s);if(o.length===0)throw W(Ot,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const a of o)if(!a.startsWith("./")&&!Ut.test(a))throw W(de,`Invalid "exports" target "${a}" defined in the package config`);return o},"v");var Ft=Object.defineProperty,c=u((e,t)=>Ft(e,"name",{value:t,configurable:!0}),"i");function A(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}u(A,"x"),c(A,"slash");const It=c((e,t)=>{const r=`readFileSync:${t}`;let n=e?.get(r);return n===void 0&&(n=U.readFileSync(t,"utf8"),e?.set(r,n)),n},"readFile"),_=c((e,t)=>{const r=`tryStat:${t}`;let n=e?.get(r);if(n===void 0){try{n=U.statSync(t)}catch{n=null}e?.set(r,n)}return n??void 0},"tryStat"),H=c((e,t,r)=>{for(;;){const n=m.posix.join(e,t);if(_(r,n))return n;const s=m.dirname(e);if(s===e)return;e=s}},"findUp");function Be(e,t=!1){const r=e.length;let n=0,s="",o=0,a=16,i=0,h=0,p=0,y=0,f=0;function v(l,C){let S=0,w=0;for(;S<l;){let x=e.charCodeAt(n);if(x>=48&&x<=57)w=w*16+x-48;else if(x>=65&&x<=70)w=w*16+x-65+10;else if(x>=97&&x<=102)w=w*16+x-97+10;else break;n++,S++}return S<l&&(w=-1),w}u(v,"A"),c(v,"scanHexDigits");function b(l){n=l,s="",o=0,a=16,f=0}u(b,"O"),c(b,"setPosition");function k(){let l=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&I(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&I(e.charCodeAt(n)))for(n++;n<e.length&&I(e.charCodeAt(n));)n++;else return f=3,e.substring(l,n);let C=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&I(e.charCodeAt(n))){for(n++;n<e.length&&I(e.charCodeAt(n));)n++;C=n}else f=3;return e.substring(l,C)}u(k,"h"),c(k,"scanNumber");function E(){let l="",C=n;for(;;){if(n>=r){l+=e.substring(C,n),f=2;break}const S=e.charCodeAt(n);if(S===34){l+=e.substring(C,n),n++;break}if(S===92){if(l+=e.substring(C,n),n++,n>=r){f=2;break}switch(e.charCodeAt(n++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
2
2
  `;break;case 114:l+="\r";break;case 116:l+=" ";break;case 117:const w=v(4);w>=0?l+=String.fromCharCode(w):f=4;break;default:f=5}C=n;continue}if(S>=0&&S<=31)if(J(S)){l+=e.substring(C,n),f=2;break}else f=6;n++}return l}u(E,"D"),c(E,"scanString");function d(){if(s="",f=0,o=n,h=i,y=p,n>=r)return o=r,a=17;let l=e.charCodeAt(n);if(ne(l)){do n++,s+=String.fromCharCode(l),l=e.charCodeAt(n);while(ne(l));return a=15}if(J(l))return n++,s+=String.fromCharCode(l),l===13&&e.charCodeAt(n)===10&&(n++,s+=`
3
3
  `),i++,p=n,a=14;switch(l){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,s=E(),a=10;case 47:const C=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!J(e.charCodeAt(n));)n++;return s=e.substring(C,n),a=12}if(e.charCodeAt(n+1)===42){n+=2;const S=r-1;let w=!1;for(;n<S;){const x=e.charCodeAt(n);if(x===42&&e.charCodeAt(n+1)===47){n+=2,w=!0;break}n++,J(x)&&(x===13&&e.charCodeAt(n)===10&&n++,i++,p=n)}return w||(n++,f=1),s=e.substring(C,n),a=13}return s+=String.fromCharCode(l),n++,a=16;case 45:if(s+=String.fromCharCode(l),n++,n===r||!I(e.charCodeAt(n)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=k(),a=11;default:for(;n<r&&g(l);)n++,l=e.charCodeAt(n);if(o!==n){switch(s=e.substring(o,n),s){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return s+=String.fromCharCode(l),n++,a=16}}u(d,"c"),c(d,"scanNext");function g(l){if(ne(l)||J(l))return!1;switch(l){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}u(g,"p"),c(g,"isUnknownContentCharacter");function T(){let l;do l=d();while(l>=12&&l<=15);return l}return u(T,"b"),c(T,"scanNextNonTrivia"),{setPosition:b,getPosition:c(()=>n,"getPosition"),scan:t?T:d,getToken:c(()=>a,"getToken"),getTokenValue:c(()=>s,"getTokenValue"),getTokenOffset:c(()=>o,"getTokenOffset"),getTokenLength:c(()=>n-o,"getTokenLength"),getTokenStartLine:c(()=>h,"getTokenStartLine"),getTokenStartCharacter:c(()=>o-y,"getTokenStartCharacter"),getTokenError:c(()=>f,"getTokenError")}}u(Be,"Ne"),c(Be,"createScanner");function ne(e){return e===32||e===9}u(ne,"X"),c(ne,"isWhiteSpace");function J(e){return e===10||e===13}u(J,"P"),c(J,"isLineBreak");function I(e){return e>=48&&e<=57}u(I,"S"),c(I,"isDigit");var Me;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Me||(Me={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const V=200;new Array(V).fill(0).map((e,t)=>`
4
4
  `+" ".repeat(t)),new Array(V).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(V).fill(0).map((e,t)=>`\r
@@ -1,4 +1,4 @@
1
- var wt=Object.defineProperty;var p=(e,t)=>wt(e,"name",{value:t,configurable:!0});import{r as xt}from"./get-pipe-path-_tAJyU_v.mjs";import $ from"node:module";import h from"node:path";import{fileURLToPath as ee,pathToFileURL as Et}from"node:url";import F,{writeSync as vt,existsSync as Ct}from"node:fs";import jt from"fs";import Tt from"os";import St from"path";import{i as Ot,b as At,a as $t}from"./index-CVGQLgGk.mjs";import{p as Pe}from"./client-D_mPDF5S.mjs";import{inspect as Pt}from"node:util";import{b as _t,a as Dt,c as Lt,d as Ut,o as _e}from"./index-gbaejti9.mjs";import{i as Rt,r as Ft}from"./node-features-JeyyvQz6.mjs";const De=p(e=>{if(!e.startsWith("data:text/javascript,"))return;const t=e.indexOf("?");if(t===-1)return;const n=new URLSearchParams(e.slice(t+1)).get("filePath");if(n)return n},"getOriginalFilePath"),Le=p(e=>{const t=De(e);return t&&($._cache[t]=$._cache[e],delete $._cache[e],e=t),e},"interopCjsExports"),Ue=p(e=>e!==null&&typeof e=="object","A"),B=p((e,t)=>Object.assign(new Error(`[${e}]: ${t}`),{code:e}),"a"),Re="ERR_INVALID_PACKAGE_CONFIG",ue="ERR_INVALID_PACKAGE_TARGET",It="ERR_PACKAGE_PATH_NOT_EXPORTED",Nt=/^\d+$/,Wt=/^(\.{1,2}|node_modules)$/i,Bt=/\/|\\/;var Fe=(e=>(e.Export="exports",e.Import="imports",e))(Fe||{});const fe=p((e,t,r,n,s)=>{if(t==null)return[];if(typeof t=="string"){const[o,...a]=t.split(Bt);if(o===".."||a.some(i=>Wt.test(i)))throw B(ue,`Invalid "${e}" target "${t}" defined in the package config`);return[s?t.replace(/\*/g,s):t]}if(Array.isArray(t))return t.flatMap(o=>fe(e,o,r,n,s));if(Ue(t)){for(const o of Object.keys(t)){if(Nt.test(o))throw B(Re,"Cannot contain numeric property keys");if(o==="default"||n.includes(o))return fe(e,t[o],r,n,s)}return[]}throw B(ue,`Invalid "${e}" target "${t}"`)},"f"),G="*",Mt=p((e,t)=>{const r=e.indexOf(G),n=t.indexOf(G);return r===n?t.length>e.length:n>r},"m");function Jt(e,t){if(!t.includes(G)&&e.hasOwnProperty(t))return[t];let r,n;for(const s of Object.keys(e))if(s.includes(G)){const[o,a,i]=s.split(G);if(i===void 0&&t.startsWith(o)&&t.endsWith(a)){const m=t.slice(o.length,-a.length||void 0);m&&(!r||Mt(r,s))&&(r=s,n=m)}}return[r,n]}p(Jt,"d");const Vt=p(e=>Object.keys(e).reduce((t,r)=>{const n=r===""||r[0]!==".";if(t===void 0||t===n)return n;throw B(Re,'"exports" cannot contain some keys starting with "." and some not')},void 0),"p"),Qt=/^\w+:/,Gt=p((e,t,r)=>{if(!e)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof e=="string"||Array.isArray(e)||Ue(e)&&Vt(e))&&(e={".":e});const[n,s]=Jt(e,t),o=fe(Fe.Export,e[n],t,r,s);if(o.length===0)throw B(It,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const a of o)if(!a.startsWith("./")&&!Qt.test(a))throw B(ue,`Invalid "exports" target "${a}" defined in the package config`);return o},"v");var Kt=Object.defineProperty,c=p((e,t)=>Kt(e,"name",{value:t,configurable:!0}),"i");function A(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}p(A,"x"),c(A,"slash");const zt=c((e,t)=>{const r=`readFileSync:${t}`;let n=e?.get(r);return n===void 0&&(n=F.readFileSync(t,"utf8"),e?.set(r,n)),n},"readFile"),_=c((e,t)=>{const r=`tryStat:${t}`;let n=e?.get(r);if(n===void 0){try{n=F.statSync(t)}catch{n=null}e?.set(r,n)}return n??void 0},"tryStat"),K=c((e,t,r)=>{for(;;){const n=h.posix.join(e,t);if(_(r,n))return n;const s=h.dirname(e);if(s===e)return;e=s}},"findUp");function Ie(e,t=!1){const r=e.length;let n=0,s="",o=0,a=16,i=0,m=0,u=0,y=0,f=0;function E(l,C){let S=0,x=0;for(;S<l;){let w=e.charCodeAt(n);if(w>=48&&w<=57)x=x*16+w-48;else if(w>=65&&w<=70)x=x*16+w-65+10;else if(w>=97&&w<=102)x=x*16+w-97+10;else break;n++,S++}return S<l&&(x=-1),x}p(E,"A"),c(E,"scanHexDigits");function b(l){n=l,s="",o=0,a=16,f=0}p(b,"O"),c(b,"setPosition");function k(){let l=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&I(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&I(e.charCodeAt(n)))for(n++;n<e.length&&I(e.charCodeAt(n));)n++;else return f=3,e.substring(l,n);let C=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&I(e.charCodeAt(n))){for(n++;n<e.length&&I(e.charCodeAt(n));)n++;C=n}else f=3;return e.substring(l,C)}p(k,"h"),c(k,"scanNumber");function v(){let l="",C=n;for(;;){if(n>=r){l+=e.substring(C,n),f=2;break}const S=e.charCodeAt(n);if(S===34){l+=e.substring(C,n),n++;break}if(S===92){if(l+=e.substring(C,n),n++,n>=r){f=2;break}switch(e.charCodeAt(n++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
1
+ var wt=Object.defineProperty;var p=(e,t)=>wt(e,"name",{value:t,configurable:!0});import{r as xt}from"./get-pipe-path-_tAJyU_v.mjs";import $ from"node:module";import h from"node:path";import{fileURLToPath as ee,pathToFileURL as Et}from"node:url";import F,{writeSync as vt,existsSync as Ct}from"node:fs";import jt from"fs";import Tt from"os";import St from"path";import{i as Ot,b as At,a as $t}from"./index-DQtFPMc2.mjs";import{p as Pe}from"./client-D_mPDF5S.mjs";import{inspect as Pt}from"node:util";import{b as _t,a as Dt,c as Lt,d as Ut,o as _e}from"./index-gbaejti9.mjs";import{i as Rt,r as Ft}from"./node-features-JeyyvQz6.mjs";const De=p(e=>{if(!e.startsWith("data:text/javascript,"))return;const t=e.indexOf("?");if(t===-1)return;const n=new URLSearchParams(e.slice(t+1)).get("filePath");if(n)return n},"getOriginalFilePath"),Le=p(e=>{const t=De(e);return t&&($._cache[t]=$._cache[e],delete $._cache[e],e=t),e},"interopCjsExports"),Ue=p(e=>e!==null&&typeof e=="object","A"),B=p((e,t)=>Object.assign(new Error(`[${e}]: ${t}`),{code:e}),"a"),Re="ERR_INVALID_PACKAGE_CONFIG",ue="ERR_INVALID_PACKAGE_TARGET",It="ERR_PACKAGE_PATH_NOT_EXPORTED",Nt=/^\d+$/,Wt=/^(\.{1,2}|node_modules)$/i,Bt=/\/|\\/;var Fe=(e=>(e.Export="exports",e.Import="imports",e))(Fe||{});const fe=p((e,t,r,n,s)=>{if(t==null)return[];if(typeof t=="string"){const[o,...a]=t.split(Bt);if(o===".."||a.some(i=>Wt.test(i)))throw B(ue,`Invalid "${e}" target "${t}" defined in the package config`);return[s?t.replace(/\*/g,s):t]}if(Array.isArray(t))return t.flatMap(o=>fe(e,o,r,n,s));if(Ue(t)){for(const o of Object.keys(t)){if(Nt.test(o))throw B(Re,"Cannot contain numeric property keys");if(o==="default"||n.includes(o))return fe(e,t[o],r,n,s)}return[]}throw B(ue,`Invalid "${e}" target "${t}"`)},"f"),G="*",Mt=p((e,t)=>{const r=e.indexOf(G),n=t.indexOf(G);return r===n?t.length>e.length:n>r},"m");function Jt(e,t){if(!t.includes(G)&&e.hasOwnProperty(t))return[t];let r,n;for(const s of Object.keys(e))if(s.includes(G)){const[o,a,i]=s.split(G);if(i===void 0&&t.startsWith(o)&&t.endsWith(a)){const m=t.slice(o.length,-a.length||void 0);m&&(!r||Mt(r,s))&&(r=s,n=m)}}return[r,n]}p(Jt,"d");const Vt=p(e=>Object.keys(e).reduce((t,r)=>{const n=r===""||r[0]!==".";if(t===void 0||t===n)return n;throw B(Re,'"exports" cannot contain some keys starting with "." and some not')},void 0),"p"),Qt=/^\w+:/,Gt=p((e,t,r)=>{if(!e)throw new Error('"exports" is required');t=t===""?".":`./${t}`,(typeof e=="string"||Array.isArray(e)||Ue(e)&&Vt(e))&&(e={".":e});const[n,s]=Jt(e,t),o=fe(Fe.Export,e[n],t,r,s);if(o.length===0)throw B(It,t==="."?'No "exports" main defined':`Package subpath '${t}' is not defined by "exports"`);for(const a of o)if(!a.startsWith("./")&&!Qt.test(a))throw B(ue,`Invalid "exports" target "${a}" defined in the package config`);return o},"v");var Kt=Object.defineProperty,c=p((e,t)=>Kt(e,"name",{value:t,configurable:!0}),"i");function A(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}p(A,"x"),c(A,"slash");const zt=c((e,t)=>{const r=`readFileSync:${t}`;let n=e?.get(r);return n===void 0&&(n=F.readFileSync(t,"utf8"),e?.set(r,n)),n},"readFile"),_=c((e,t)=>{const r=`tryStat:${t}`;let n=e?.get(r);if(n===void 0){try{n=F.statSync(t)}catch{n=null}e?.set(r,n)}return n??void 0},"tryStat"),K=c((e,t,r)=>{for(;;){const n=h.posix.join(e,t);if(_(r,n))return n;const s=h.dirname(e);if(s===e)return;e=s}},"findUp");function Ie(e,t=!1){const r=e.length;let n=0,s="",o=0,a=16,i=0,m=0,u=0,y=0,f=0;function E(l,C){let S=0,x=0;for(;S<l;){let w=e.charCodeAt(n);if(w>=48&&w<=57)x=x*16+w-48;else if(w>=65&&w<=70)x=x*16+w-65+10;else if(w>=97&&w<=102)x=x*16+w-97+10;else break;n++,S++}return S<l&&(x=-1),x}p(E,"A"),c(E,"scanHexDigits");function b(l){n=l,s="",o=0,a=16,f=0}p(b,"O"),c(b,"setPosition");function k(){let l=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&I(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&I(e.charCodeAt(n)))for(n++;n<e.length&&I(e.charCodeAt(n));)n++;else return f=3,e.substring(l,n);let C=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&I(e.charCodeAt(n))){for(n++;n<e.length&&I(e.charCodeAt(n));)n++;C=n}else f=3;return e.substring(l,C)}p(k,"h"),c(k,"scanNumber");function v(){let l="",C=n;for(;;){if(n>=r){l+=e.substring(C,n),f=2;break}const S=e.charCodeAt(n);if(S===34){l+=e.substring(C,n),n++;break}if(S===92){if(l+=e.substring(C,n),n++,n>=r){f=2;break}switch(e.charCodeAt(n++)){case 34:l+='"';break;case 92:l+="\\";break;case 47:l+="/";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+=`
2
2
  `;break;case 114:l+="\r";break;case 116:l+=" ";break;case 117:const x=E(4);x>=0?l+=String.fromCharCode(x):f=4;break;default:f=5}C=n;continue}if(S>=0&&S<=31)if(M(S)){l+=e.substring(C,n),f=2;break}else f=6;n++}return l}p(v,"D"),c(v,"scanString");function d(){if(s="",f=0,o=n,m=i,y=u,n>=r)return o=r,a=17;let l=e.charCodeAt(n);if(te(l)){do n++,s+=String.fromCharCode(l),l=e.charCodeAt(n);while(te(l));return a=15}if(M(l))return n++,s+=String.fromCharCode(l),l===13&&e.charCodeAt(n)===10&&(n++,s+=`
3
3
  `),i++,u=n,a=14;switch(l){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,s=v(),a=10;case 47:const C=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!M(e.charCodeAt(n));)n++;return s=e.substring(C,n),a=12}if(e.charCodeAt(n+1)===42){n+=2;const S=r-1;let x=!1;for(;n<S;){const w=e.charCodeAt(n);if(w===42&&e.charCodeAt(n+1)===47){n+=2,x=!0;break}n++,M(w)&&(w===13&&e.charCodeAt(n)===10&&n++,i++,u=n)}return x||(n++,f=1),s=e.substring(C,n),a=13}return s+=String.fromCharCode(l),n++,a=16;case 45:if(s+=String.fromCharCode(l),n++,n===r||!I(e.charCodeAt(n)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=k(),a=11;default:for(;n<r&&g(l);)n++,l=e.charCodeAt(n);if(o!==n){switch(s=e.substring(o,n),s){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return s+=String.fromCharCode(l),n++,a=16}}p(d,"c"),c(d,"scanNext");function g(l){if(te(l)||M(l))return!1;switch(l){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}p(g,"p"),c(g,"isUnknownContentCharacter");function T(){let l;do l=d();while(l>=12&&l<=15);return l}return p(T,"b"),c(T,"scanNextNonTrivia"),{setPosition:b,getPosition:c(()=>n,"getPosition"),scan:t?T:d,getToken:c(()=>a,"getToken"),getTokenValue:c(()=>s,"getTokenValue"),getTokenOffset:c(()=>o,"getTokenOffset"),getTokenLength:c(()=>n-o,"getTokenLength"),getTokenStartLine:c(()=>m,"getTokenStartLine"),getTokenStartCharacter:c(()=>o-y,"getTokenStartCharacter"),getTokenError:c(()=>f,"getTokenError")}}p(Ie,"Ne"),c(Ie,"createScanner");function te(e){return e===32||e===9}p(te,"X"),c(te,"isWhiteSpace");function M(e){return e===10||e===13}p(M,"P"),c(M,"isLineBreak");function I(e){return e>=48&&e<=57}p(I,"S"),c(I,"isDigit");var Ne;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Ne||(Ne={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const J=200;new Array(J).fill(0).map((e,t)=>`
4
4
  `+" ".repeat(t)),new Array(J).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(J).fill(0).map((e,t)=>`\r
@@ -1,2 +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-CeSc3Ioe.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-wDwCPFLq.cjs",document.baseURI).href).toString(),new URL("esm/index.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:F&&F.src||new URL("register-wDwCPFLq.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-wDwCPFLq.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;
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-C557imBs.cjs"),h=require("node:url"),te=require("node:fs"),be=require("node:fs/promises"),y=require("./index-6kqi0x0U.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-Ciecs-Zx.cjs",document.baseURI).href).toString(),new URL("esm/index.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:F&&F.src||new URL("register-Ciecs-Zx.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-Ciecs-Zx.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;
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-CacrEa3Z.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}).
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-sd2gMcZx.cjs"),q=require("./index-6kqi0x0U.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-7qisTQEg.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}).
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-B13bX4zz.mjs";import{t as c}from"./index-DQtFPMc2.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-DyKhpi9B.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
+ 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-C9AniqUt.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-CeSc3Ioe.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;
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-C557imBs.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,6 +1,6 @@
1
1
  {
2
2
  "name": "tsx",
3
- "version": "4.23.11",
3
+ "version": "4.23.12",
4
4
  "description": "TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files",
5
5
  "keywords": [
6
6
  "cli",