tsx 4.19.4 → 4.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/index.cjs +1 -1
- package/dist/cjs/api/index.d.cts +1 -1
- package/dist/cjs/api/index.d.mts +1 -1
- package/dist/cjs/api/index.mjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.mjs +1 -1
- package/dist/cli.cjs +26 -26
- package/dist/cli.mjs +26 -26
- package/dist/esm/api/index.cjs +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/index.cjs +4 -2
- package/dist/esm/index.mjs +4 -2
- package/dist/index-7AaEi15b.mjs +14 -0
- package/dist/index-BWFBUo6r.cjs +1 -0
- package/dist/index-gbaejti9.mjs +1 -0
- package/dist/{index-CylV0-__.cjs → index-gckBtVBf.cjs} +10 -10
- package/dist/loader.cjs +1 -1
- package/dist/loader.mjs +1 -1
- package/dist/{node-features-_8ZFwP_x.mjs → node-features-Bp94mr_V.mjs} +1 -1
- package/dist/node-features-C11kbLv2.cjs +1 -0
- package/dist/package-B_gbmOHT.mjs +1 -0
- package/dist/package-CeX1x2ts.cjs +1 -0
- package/dist/register-BXA4IaYH.cjs +4 -0
- package/dist/{register-DulCUUwh.cjs → register-D9k8ayxd.cjs} +1 -1
- package/dist/{register-hc1YoAqe.mjs → register-DRJeZPTf.mjs} +1 -1
- package/dist/register-DqTWLVYd.mjs +4 -0
- package/dist/repl.cjs +1 -1
- package/dist/repl.mjs +1 -1
- package/dist/{require-BLYAcZms.mjs → require-CLFX0w80.mjs} +1 -1
- package/dist/{require-0KjtDnPR.cjs → require-CwOSHjvM.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-DGv_vkxZ.mjs +0 -14
- package/dist/node-features-roYmp9jK.cjs +0 -1
- package/dist/package-B719QM9h.mjs +0 -1
- package/dist/package-BuXLp0ll.cjs +0 -1
- package/dist/register-CuoYSLaL.mjs +0 -3
- package/dist/register-D2KMMyKp.cjs +0 -3
package/dist/index-DGv_vkxZ.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var Bt=Object.defineProperty;var f=(s,e)=>Bt(s,"name",{value:e,configurable:!0});import{pathToFileURL as Jt}from"node:url";import{version as Ae,transformSync as Gt,transform as qt}from"esbuild";import zt from"node:crypto";import $ from"node:fs";import X from"node:path";import Ht from"node:os";import{t as Xt}from"./temporary-directory-CwHp0_NW.mjs";const Ne=f(s=>zt.createHash("sha1").update(s).digest("hex"),"sha1"),Ie=44,Kt=59,Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ue=new Uint8Array(64),$e=new Uint8Array(128);for(let s=0;s<Me.length;s++){const e=Me.charCodeAt(s);Ue[s]=e,$e[e]=s}const me=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 r=0;r<s.length;r++)e+=String.fromCharCode(s[r]);return e}};function Qt(s){const e=new Int32Array(5),r=[];let i=0;do{const o=Yt(s,i),c=[];let u=!0,p=0;e[0]=0;for(let g=i;g<o;g++){let b;g=K(s,g,e,0);const d=e[0];d<p&&(u=!1),p=d,je(s,g,o)?(g=K(s,g,e,1),g=K(s,g,e,2),g=K(s,g,e,3),je(s,g,o)?(g=K(s,g,e,4),b=[d,e[1],e[2],e[3],e[4]]):b=[d,e[1],e[2],e[3]]):b=[d],c.push(b)}u||Zt(c),r.push(c),i=o+1}while(i<=s.length);return r}f(Qt,"decode");function Yt(s,e){const r=s.indexOf(";",e);return r===-1?s.length:r}f(Yt,"indexOf");function K(s,e,r,i){let o=0,c=0,u=0;do{const g=s.charCodeAt(e++);u=$e[g],o|=(u&31)<<c,c+=5}while(u&32);const p=o&1;return o>>>=1,p&&(o=-2147483648|-o),r[i]+=o,e}f(K,"decodeInteger");function je(s,e,r){return e>=r?!1:s.charCodeAt(e)!==Ie}f(je,"hasMoreVlq");function Zt(s){s.sort(Vt)}f(Zt,"sort");function Vt(s,e){return s[0]-e[0]}f(Vt,"sortComparator$1");function De(s){const e=new Int32Array(5),r=1024*16,i=r-36,o=new Uint8Array(r),c=o.subarray(0,i);let u=0,p="";for(let g=0;g<s.length;g++){const b=s[g];if(g>0&&(u===r&&(p+=me.decode(o),u=0),o[u++]=Kt),b.length!==0){e[0]=0;for(let d=0;d<b.length;d++){const n=b[d];u>i&&(p+=me.decode(c),o.copyWithin(0,i,u),u-=i),d>0&&(o[u++]=Ie),u=Q(o,u,e,n,0),n.length!==1&&(u=Q(o,u,e,n,1),u=Q(o,u,e,n,2),u=Q(o,u,e,n,3),n.length!==4&&(u=Q(o,u,e,n,4)))}}}return p+me.decode(o.subarray(0,u))}f(De,"encode");function Q(s,e,r,i,o){const c=i[o];let u=c-r[o];r[o]=c,u=u<0?-u<<1|1:u<<1;do{let p=u&31;u>>>=5,u>0&&(p|=32),s[e++]=Ue[p]}while(u>0);return e}f(Q,"encodeInteger");class ae{static{f(this,"BitSet")}constructor(e){this.bits=e instanceof ae?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class ee{static{f(this,"Chunk")}constructor(e,r,i){this.start=e,this.end=r,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 ee(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 r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,i){return this.content=e,i||(this.intro="",this.outro=""),this.storeName=r,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 r=e-this.start,i=this.original.slice(0,r),o=this.original.slice(r);this.original=i;const c=new ee(e,this.end,o);return c.outro=this.outro,this.outro="",this.end=e,this.edited?(c.edit("",!1),this.content=""):this.content=i,c.next=this.next,c.next&&(c.next.previous=c),c.previous=this,this.next=c,c}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,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 r=this.content.replace(e,"");if(r.length){if(r!==this.content){const i=this.split(this.end-r.length);this.edited&&i.edit(r,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 er(){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.")}}f(er,"getBtoa");const tr=er();let rr=class{static{f(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=De(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+tr(this.toString())}};function nr(s){const e=s.split(`
|
|
2
|
-
`),r=e.filter(c=>/^\t+/.test(c)),i=e.filter(c=>/^ {2,}/.test(c));if(r.length===0&&i.length===0)return null;if(r.length>=i.length)return" ";const o=i.reduce((c,u)=>{const p=/^ +/.exec(u)[0].length;return Math.min(p,c)},1/0);return new Array(o+1).join(" ")}f(nr,"guessIndent");function ir(s,e){const r=s.split(/[/\\]/),i=e.split(/[/\\]/);for(r.pop();r[0]===i[0];)r.shift(),i.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(i).join("/")}f(ir,"getRelativePath");const sr=Object.prototype.toString;function or(s){return sr.call(s)==="[object Object]"}f(or,"isObject");function Te(s){const e=s.split(`
|
|
3
|
-
`),r=[];for(let i=0,o=0;i<e.length;i++)r.push(o),o+=e[i].length+1;return f(function(o){let c=0,u=r.length;for(;c<u;){const b=c+u>>1;o<r[b]?u=b:c=b+1}const p=c-1,g=o-r[p];return{line:p,column:g}},"locate")}f(Te,"getLocator");const ar=/\w/;class cr{static{f(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,r,i,o){if(r.length){const c=r.length-1;let u=r.indexOf(`
|
|
4
|
-
`,0),p=-1;for(;u>=0&&c>u;){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=u,u=r.indexOf(`
|
|
5
|
-
`,u+1)}const g=[this.generatedCodeColumn,e,i.line,i.column];o>=0&&g.push(o),this.rawSegments.push(g),this.advance(r.slice(p+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(e,r,i,o,c){let u=r.start,p=!0,g=!1;for(;u<r.end;){if(this.hires||p||c.has(u)){const b=[this.generatedCodeColumn,e,o.line,o.column];this.hires==="boundary"?ar.test(i[u])?g||(this.rawSegments.push(b),g=!0):(this.rawSegments.push(b),g=!1):this.rawSegments.push(b)}i[u]===`
|
|
6
|
-
`?(o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,p=!0):(o.column+=1,this.generatedCodeColumn+=1,p=!1),u+=1}this.pending=null}advance(e){if(!e)return;const r=e.split(`
|
|
7
|
-
`);if(r.length>1){for(let i=0;i<r.length-1;i++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}}const Y=`
|
|
8
|
-
`,J={insertLeft:!1,insertRight:!1,storeName:!1};class Ee{static{f(this,"MagicString")}constructor(e,r={}){const i=new ee(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:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new ae},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList}}),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,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.appendLeft(r):this.intro+=r,this}appendRight(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.appendRight(r):this.outro+=r,this}clone(){const e=new Ee(this.original,{filename:this.filename});let r=this.firstChunk,i=e.firstChunk=e.lastSearchedChunk=r.clone();for(;r;){e.byStart[i.start]=i,e.byEnd[i.end]=i;const o=r.next,c=o&&o.clone();c&&(i.next=c,c.previous=i,i=c),r=o}return e.lastChunk=i,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new ae(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const r=0,i=Object.keys(this.storedNames),o=new cr(e.hires),c=Te(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(u=>{const p=c(u.start);u.intro.length&&o.advance(u.intro),u.edited?o.addEdit(r,u.content,p,u.storeName?i.indexOf(u.original):-1):o.addUneditedChunk(r,u,this.original,p,this.sourcemapLocations),u.outro.length&&o.advance(u.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?ir(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:i,mappings:o.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(e){return new rr(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=nr(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,r){const i=/^[^\r\n]/gm;if(or(e)&&(r=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;r=r||{};const o={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(d=>{for(let n=d[0];n<d[1];n+=1)o[n]=!0});let c=r.indentStart!==!1;const u=f(b=>c?`${e}${b}`:(c=!0,b),"replacer");this.intro=this.intro.replace(i,u);let p=0,g=this.firstChunk;for(;g;){const b=g.end;if(g.edited)o[p]||(g.content=g.content.replace(i,u),g.content.length&&(c=g.content[g.content.length-1]===`
|
|
9
|
-
`));else for(p=g.start;p<b;){if(!o[p]){const d=this.original[p];d===`
|
|
10
|
-
`?c=!0:d!=="\r"&&c&&(c=!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,u),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,r){return J.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),J.insertLeft=!0),this.appendLeft(e,r)}insertRight(e,r){return J.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),J.insertRight=!0),this.prependRight(e,r)}move(e,r,i){if(i>=e&&i<=r)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(r),this._split(i);const o=this.byStart[e],c=this.byEnd[r],u=o.previous,p=c.next,g=this.byStart[i];if(!g&&c===this.lastChunk)return this;const b=g?g.previous:this.lastChunk;return u&&(u.next=p),p&&(p.previous=u),b&&(b.next=o),g&&(g.previous=c),o.previous||(this.firstChunk=c.next),c.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=b,c.next=g||null,b||(this.firstChunk=o),g||(this.lastChunk=c),this}overwrite(e,r,i,o){return o=o||{},this.update(e,r,i,{...o,overwrite:!o.contentOnly})}update(e,r,i,o){if(typeof i!="string")throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length;if(r>this.original.length)throw new Error("end is out of bounds");if(e===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(r),o===!0&&(J.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),J.storeName=!0),o={storeName:!0});const c=o!==void 0?o.storeName:!1,u=o!==void 0?o.overwrite:!1;if(c){const b=this.original.slice(e,r);Object.defineProperty(this.storedNames,b,{writable:!0,value:!0,enumerable:!0})}const p=this.byStart[e],g=this.byEnd[r];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,c,!u)}else{const b=new ee(e,r,"").edit(i,c);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,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.prependLeft(r):this.intro=r+this.intro,this}prependRight(e,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.prependRight(r):this.outro=r+this.outro,this}remove(e,r){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length;if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let i=this.byStart[e];for(;i;)i.intro="",i.outro="",i.edit(""),i=r>i.end?this.byStart[i.end]:null;return this}reset(e,r){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length;if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let i=this.byStart[e];for(;i;)i.reset(),i=r>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(Y);if(e!==-1)return this.outro.substr(e+1);let r=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(e=i.outro.lastIndexOf(Y),e!==-1)return i.outro.substr(e+1)+r;r=i.outro+r}if(i.content.length>0){if(e=i.content.lastIndexOf(Y),e!==-1)return i.content.substr(e+1)+r;r=i.content+r}if(i.intro.length>0){if(e=i.intro.lastIndexOf(Y),e!==-1)return i.intro.substr(e+1)+r;r=i.intro+r}}while(i=i.previous);return e=this.intro.lastIndexOf(Y),e!==-1?this.intro.substr(e+1)+r:this.intro+r}slice(e=0,r=this.original.length){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length;let i="",o=this.firstChunk;for(;o&&(o.start>e||o.end<=e);){if(o.start<r&&o.end>=r)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 c=o;for(;o;){o.intro&&(c!==o||o.start===e)&&(i+=o.intro);const u=o.start<r&&o.end>=r;if(u&&o.edited&&o.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);const p=c===o?e-o.start:0,g=u?o.content.length+r-o.end:o.content.length;if(i+=o.content.slice(p,g),o.outro&&(!u||o.end===r)&&(i+=o.outro),u)break;o=o.next}return i}snip(e,r){const i=this.clone();return i.remove(0,e),i.remove(r,i.original.length),i}_split(e){if(this.byStart[e]||this.byEnd[e])return;let r=this.lastSearchedChunk;const i=e>r.end;for(;r;){if(r.contains(e))return this._splitChunk(r,e);r=i?this.byStart[r.end]:this.byEnd[r.start]}}_splitChunk(e,r){if(e.edited&&e.content.length){const o=Te(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${e.original}")`)}const i=e.split(r);return this.byEnd[r]=e,this.byStart[r]=i,this.byEnd[i.end]=i,e===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,r=this.firstChunk;for(;r;)e+=r.toString(),r=r.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,r=0;do r+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const r=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let i=this.lastChunk;do{const o=i.end,c=i.trimEnd(r);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),c)return!0;i=i.previous}while(i);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const r=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let i=this.firstChunk;do{const o=i.end,c=i.trimStart(r);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),c)return!0;i=i.next}while(i);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,r){function i(c,u){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(p,g)=>g==="$"?"$":g==="&"?c[0]:+g<c.length?c[+g]:`$${g}`):r(...c,c.index,u,c.groups)}f(i,"getReplacement");function o(c,u){let p;const g=[];for(;p=c.exec(u);)g.push(p);return g}if(f(o,"matchAll"),e.global)o(e,this.original).forEach(u=>{if(u.index!=null){const p=i(u,this.original);p!==u[0]&&this.overwrite(u.index,u.index+u[0].length,p)}});else{const c=this.original.match(e);if(c&&c.index!=null){const u=i(c,this.original);u!==c[0]&&this.overwrite(c.index,c.index+c[0].length,u)}}return this}_replaceString(e,r){const{original:i}=this,o=i.indexOf(e);return o!==-1&&this.overwrite(o,o+e.length,r),this}replace(e,r){return typeof e=="string"?this._replaceString(e,r):this._replaceRegexp(e,r)}_replaceAllString(e,r){const{original:i}=this,o=e.length;for(let c=i.indexOf(e);c!==-1;c=i.indexOf(e,c+o))i.slice(c,c+o)!==r&&this.overwrite(c,c+o,r);return this}replaceAll(e,r){if(typeof e=="string")return this._replaceAllString(e,r);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,r)}}let v,ne,ke,Z=2<<19;const Fe=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(s,e){const r=s.length;let i=0;for(;i<r;)e[i]=s.charCodeAt(i++)}:function(s,e){const r=s.length;let i=0;for(;i<r;){const o=s.charCodeAt(i);e[i++]=(255&o)<<8|o>>>8}},ur="xportmportlassforetaourceromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileifcatcfinallels";let E,Pe,y;function lr(s,e="@"){E=s,Pe=e;const r=2*E.length+(2<<18);if(r>Z||!v){for(;r>Z;)Z*=2;ne=new ArrayBuffer(Z),Fe(ur,new Uint16Array(ne,16,110)),v=function(u,p,g){var b=new u.Int8Array(g),d=new u.Int16Array(g),n=new u.Int32Array(g),R=new u.Uint8Array(g),L=new u.Uint16Array(g),O=1040;function N(){var t=0,a=0,h=0,l=0,w=0,m=0,C=0;C=O,O=O+10240|0,b[804]=1,b[803]=0,d[399]=0,d[400]=0,n[69]=n[2],b[805]=0,n[68]=0,b[802]=0,n[70]=C+2048,n[71]=C,b[806]=0,t=(n[3]|0)+-2|0,n[72]=t,a=t+(n[66]<<1)|0,n[73]=a;e:for(;;){if(h=t+2|0,n[72]=h,t>>>0>=a>>>0){l=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)&&z(h)|0&&!(A(t+4|0,16,10)|0)&&(U(),(b[804]|0)==0)){l=9;break e}else l=17;break}case 105:{z(h)|0&&!(A(t+4|0,26,10)|0)&&P(),l=17;break}case 59:{l=17;break}case 47:switch(d[t+4>>1]|0){case 47:{fe();break t}case 42:{le(1);break t}default:{l=16;break e}}default:{l=16;break e}}while(!1);(l|0)==17&&(l=0,n[69]=n[72]),t=n[72]|0,a=n[73]|0}(l|0)==9?(t=n[72]|0,n[69]=t,l=19):(l|0)==16?(b[804]=0,n[72]=t,l=19):(l|0)==18&&(b[802]|0?t=0:(t=h,l=19));do if((l|0)==19){e:for(;;){if(a=t+2|0,n[72]=a,t>>>0>=(n[73]|0)>>>0){l=92;break}t:do switch(d[a>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(d[400]|0)&&z(a)|0&&!(A(t+4|0,16,10)|0)&&U(),l=91;break}case 105:{z(a)|0&&!(A(t+4|0,26,10)|0)&&P(),l=91;break}case 99:{z(a)|0&&!(A(t+4|0,36,8)|0)&&B(d[t+12>>1]|0)|0&&(b[806]=1),l=91;break}case 40:{h=n[70]|0,t=d[400]|0,l=t&65535,n[h+(l<<3)>>2]=1,a=n[69]|0,d[400]=t+1<<16>>16,n[h+(l<<3)+4>>2]=a,l=91;break}case 41:{if(a=d[400]|0,!(a<<16>>16)){l=36;break e}h=a+-1<<16>>16,d[400]=h,l=d[399]|0,a=l&65535,l<<16>>16&&(n[(n[70]|0)+((h&65535)<<3)>>2]|0)==5&&(a=n[(n[71]|0)+(a+-1<<2)>>2]|0,h=a+4|0,n[h>>2]|0||(n[h>>2]=(n[69]|0)+2),n[a+12>>2]=t+4,d[399]=l+-1<<16>>16),l=91;break}case 123:{l=n[69]|0,h=n[63]|0,t=l;do if((d[l>>1]|0)==41&(h|0)!=0&&(n[h+4>>2]|0)==(l|0))if(a=n[64]|0,n[63]=a,a){n[a+32>>2]=0;break}else{n[59]=0;break}while(!1);h=n[70]|0,a=d[400]|0,l=a&65535,n[h+(l<<3)>>2]=b[806]|0?6:2,d[400]=a+1<<16>>16,n[h+(l<<3)+4>>2]=t,b[806]=0,l=91;break}case 125:{if(t=d[400]|0,!(t<<16>>16)){l=49;break e}h=n[70]|0,l=t+-1<<16>>16,d[400]=l,(n[h+((l&65535)<<3)>>2]|0)==4&&_e(),l=91;break}case 39:{I(39),l=91;break}case 34:{I(34),l=91;break}case 47:switch(d[t+4>>1]|0){case 47:{fe();break t}case 42:{le(1);break t}default:{t=n[69]|0,a=d[t>>1]|0;r:do if(!(kt(a)|0))a<<16>>16==41?(h=d[400]|0,xt(n[(n[70]|0)+((h&65535)<<3)+4>>2]|0)|0||(l=65)):l=64;else switch(a<<16>>16){case 46:if(((d[t+-2>>1]|0)+-48&65535)<10){l=64;break r}else break r;case 43:if((d[t+-2>>1]|0)==43){l=64;break r}else break r;case 45:if((d[t+-2>>1]|0)==45){l=64;break r}else break r;default:break r}while(!1);(l|0)==64&&(h=d[400]|0,l=65);r:do if((l|0)==65){if(l=0,h<<16>>16&&(w=n[70]|0,m=(h&65535)+-1|0,a<<16>>16==102?(n[w+(m<<3)>>2]|0)==1:0)){if((d[t+-2>>1]|0)==111&&_(n[w+(m<<3)+4>>2]|0,44,3)|0)break}else l=69;if((l|0)==69&&a<<16>>16==125&&(l=n[70]|0,h=h&65535,mt(n[l+(h<<3)+4>>2]|0)|0||(n[l+(h<<3)>>2]|0)==6))break;if(!(pt(t)|0)){switch(a<<16>>16){case 0:break r;case 47:{if(b[805]|0)break r;break}default:}if(l=n[65]|0,l|0&&t>>>0>=(n[l>>2]|0)>>>0&&t>>>0<=(n[l+4>>2]|0)>>>0){ue(),b[805]=0,l=91;break t}h=n[3]|0;do{if(t>>>0<=h>>>0)break;t=t+-2|0,n[69]=t,a=d[t>>1]|0}while(!(he(a)|0));if(re(a)|0){do{if(t>>>0<=h>>>0)break;t=t+-2|0,n[69]=t}while(re(d[t>>1]|0)|0);if(Ct(t)|0){ue(),b[805]=0,l=91;break t}}b[805]=1,l=91;break t}}while(!1);ue(),b[805]=0,l=91;break t}}case 96:{h=n[70]|0,a=d[400]|0,l=a&65535,n[h+(l<<3)+4>>2]=n[69],d[400]=a+1<<16>>16,n[h+(l<<3)>>2]=3,_e(),l=91;break}default:l=91}while(!1);(l|0)==91&&(l=0,n[69]=n[72]),t=n[72]|0}if((l|0)==36){M(),t=0;break}else if((l|0)==49){M(),t=0;break}else if((l|0)==92){t=b[802]|0?0:(d[399]|d[400])<<16>>16==0;break}}while(!1);return O=C,t|0}f(N,"b");function U(){var t=0,a=0,h=0,l=0,w=0,m=0,C=0,T=0,ge=0,be=0,pe=0,we=0,S=0,x=0;T=n[72]|0,ge=n[65]|0,x=T+12|0,n[72]=x,h=k(1)|0,t=n[72]|0,(t|0)==(x|0)&&!(te(h)|0)||(S=3);e:do if((S|0)==3){t:do switch(h<<16>>16){case 123:{for(n[72]=t+2,t=k(1)|0,a=n[72]|0;;){if(H(t)|0?(I(t),t=(n[72]|0)+2|0,n[72]=t):(j(t)|0,t=n[72]|0),k(1)|0,t=Le(a,t)|0,t<<16>>16==44&&(n[72]=(n[72]|0)+2,t=k(1)|0),t<<16>>16==125){S=15;break}if(x=a,a=n[72]|0,(a|0)==(x|0)){S=12;break}if(a>>>0>(n[73]|0)>>>0){S=14;break}}if((S|0)==12){M();break e}else if((S|0)==14){M();break e}else if((S|0)==15){b[803]=1,n[72]=(n[72]|0)+2;break t}break}case 42:{n[72]=t+2,k(1)|0,x=n[72]|0,Le(x,x)|0;break}default:{switch(b[804]=0,h<<16>>16){case 100:{switch(T=t+14|0,n[72]=T,(k(1)|0)<<16>>16){case 97:{a=n[72]|0,!(A(a+2|0,72,8)|0)&&(w=a+10|0,re(d[w>>1]|0)|0)&&(n[72]=w,k(0)|0,S=22);break}case 102:{S=22;break}case 99:{a=n[72]|0,!(A(a+2|0,36,8)|0)&&(l=a+10|0,x=d[l>>1]|0,B(x)|0|x<<16>>16==123)&&(n[72]=l,m=k(1)|0,m<<16>>16!=123)&&(we=m,S=31);break}default:}r:do if((S|0)==22&&(C=n[72]|0,(A(C+2|0,80,14)|0)==0)){if(h=C+16|0,a=d[h>>1]|0,!(B(a)|0))switch(a<<16>>16){case 40:case 42:break;default:break r}n[72]=h,a=k(1)|0,a<<16>>16==42&&(n[72]=(n[72]|0)+2,a=k(1)|0),a<<16>>16!=40&&(we=a,S=31)}while(!1);if((S|0)==31&&(be=n[72]|0,j(we)|0,pe=n[72]|0,pe>>>0>be>>>0)){W(t,T,be,pe),n[72]=(n[72]|0)+-2;break e}W(t,T,0,0),n[72]=t+12;break e}case 97:{n[72]=t+10,k(0)|0,t=n[72]|0,S=35;break}case 102:{S=35;break}case 99:{if(!(A(t+2|0,36,8)|0)&&(a=t+10|0,he(d[a>>1]|0)|0)){n[72]=a,x=k(1)|0,S=n[72]|0,j(x)|0,x=n[72]|0,W(S,x,S,x),n[72]=(n[72]|0)+-2;break e}t=t+4|0,n[72]=t;break}case 108:case 118:break;default:break e}if((S|0)==35){n[72]=t+16,t=k(1)|0,t<<16>>16==42&&(n[72]=(n[72]|0)+2,t=k(1)|0),S=n[72]|0,j(t)|0,x=n[72]|0,W(S,x,S,x),n[72]=(n[72]|0)+-2;break e}n[72]=t+6,b[804]=0,h=k(1)|0,t=n[72]|0,h=(j(h)|0|32)<<16>>16==123,l=n[72]|0,h&&(n[72]=l+2,x=k(1)|0,t=n[72]|0,j(x)|0);r:for(;a=n[72]|0,(a|0)!=(t|0);){if(W(t,a,t,a),a=k(1)|0,h)switch(a<<16>>16){case 93:case 125:break e;default:}if(t=n[72]|0,a<<16>>16!=44){S=51;break}switch(n[72]=t+2,a=k(1)|0,t=n[72]|0,a<<16>>16){case 91:case 123:{S=51;break r}default:}j(a)|0}if((S|0)==51&&(n[72]=t+-2),!h)break e;n[72]=l+-2;break e}}while(!1);if(x=(k(1)|0)<<16>>16==102,t=n[72]|0,x&&!(A(t+2|0,66,6)|0))for(n[72]=t+8,G(T,k(1)|0,0),t=ge|0?ge+16|0:240;;){if(t=n[t>>2]|0,!t)break e;n[t+12>>2]=0,n[t+8>>2]=0,t=t+16|0}n[72]=t+-2}while(!1)}f(U,"k");function P(){var t=0,a=0,h=0,l=0,w=0,m=0,C=0;w=n[72]|0,h=w+12|0,n[72]=h,l=k(1)|0,a=n[72]|0;e:do if(l<<16>>16!=46)l<<16>>16==115&a>>>0>h>>>0?!(A(a+2|0,56,10)|0)&&(t=a+12|0,B(d[t>>1]|0)|0)?m=14:(a=6,h=0,m=46):(t=l,h=0,m=15);else switch(n[72]=a+2,(k(1)|0)<<16>>16){case 109:{if(t=n[72]|0,A(t+2|0,50,6)|0||(a=n[69]|0,!(de(a)|0)&&(d[a>>1]|0)==46))break e;ce(w,w,t+8|0,2);break e}case 115:{if(t=n[72]|0,A(t+2|0,56,10)|0||(a=n[69]|0,!(de(a)|0)&&(d[a>>1]|0)==46))break e;t=t+12|0,m=14;break e}default:break e}while(!1);(m|0)==14&&(n[72]=t,t=k(1)|0,h=1,m=15);e:do if((m|0)==15)switch(t<<16>>16){case 40:{if(a=n[70]|0,C=d[400]|0,l=C&65535,n[a+(l<<3)>>2]=5,t=n[72]|0,d[400]=C+1<<16>>16,n[a+(l<<3)+4>>2]=t,(d[n[69]>>1]|0)==46)break e;switch(n[72]=t+2,a=k(1)|0,ce(w,n[72]|0,0,t),h?(t=n[63]|0,n[t+28>>2]=5):t=n[63]|0,w=n[71]|0,C=d[399]|0,d[399]=C+1<<16>>16,n[w+((C&65535)<<2)>>2]=t,a<<16>>16){case 39:{I(39);break}case 34:{I(34);break}default:{n[72]=(n[72]|0)+-2;break e}}switch(t=(n[72]|0)+2|0,n[72]=t,(k(1)|0)<<16>>16){case 44:{n[72]=(n[72]|0)+2,k(1)|0,w=n[63]|0,n[w+4>>2]=t,C=n[72]|0,n[w+16>>2]=C,b[w+24>>0]=1,n[72]=C+-2;break e}case 41:{d[400]=(d[400]|0)+-1<<16>>16,C=n[63]|0,n[C+4>>2]=t,n[C+12>>2]=(n[72]|0)+2,b[C+24>>0]=1,d[399]=(d[399]|0)+-1<<16>>16;break e}default:{n[72]=(n[72]|0)+-2;break e}}}case 123:{if(h){a=12,h=1,m=46;break e}if(t=n[72]|0,d[400]|0){n[72]=t+-2;break e}for(;!(t>>>0>=(n[73]|0)>>>0);){if(t=k(1)|0,H(t)|0)I(t);else if(t<<16>>16==125){m=36;break}t=(n[72]|0)+2|0,n[72]=t}if((m|0)==36&&(n[72]=(n[72]|0)+2),C=(k(1)|0)<<16>>16==102,t=n[72]|0,C&&A(t+2|0,66,6)|0){M();break e}if(n[72]=t+8,t=k(1)|0,H(t)|0){G(w,t,0);break e}else{M();break e}}default:{if(h){a=12,h=1,m=46;break e}switch(t<<16>>16){case 42:case 39:case 34:{h=0,m=48;break e}default:{a=6,h=0,m=46;break e}}}}while(!1);(m|0)==46&&(t=n[72]|0,(t|0)==(w+(a<<1)|0)?n[72]=t+-2:m=48);do if((m|0)==48){if(d[400]|0){n[72]=(n[72]|0)+-2;break}for(t=n[73]|0,a=n[72]|0;;){if(a>>>0>=t>>>0){m=55;break}if(l=d[a>>1]|0,H(l)|0){m=53;break}C=a+2|0,n[72]=C,a=C}if((m|0)==53){G(w,l,h);break}else if((m|0)==55){M();break}}while(!1)}f(P,"l");function G(t,a,h){t=t|0,a=a|0,h=h|0;var l=0,w=0;switch(l=(n[72]|0)+2|0,a<<16>>16){case 39:{I(39),w=5;break}case 34:{I(34),w=5;break}default:M()}do if((w|0)==5){if(ce(t,l,n[72]|0,1),h&&(n[(n[63]|0)+28>>2]=4),n[72]=(n[72]|0)+2,a=k(0)|0,h=a<<16>>16==97,h?(l=n[72]|0,A(l+2|0,94,10)|0&&(w=13)):(l=n[72]|0,a<<16>>16==119&&(d[l+2>>1]|0)==105&&(d[l+4>>1]|0)==116&&(d[l+6>>1]|0)==104||(w=13)),(w|0)==13){n[72]=l+-2;break}if(n[72]=l+((h?6:4)<<1),(k(1)|0)<<16>>16!=123){n[72]=l;break}h=n[72]|0,a=h;e:for(;;){switch(n[72]=a+2,a=k(1)|0,a<<16>>16){case 39:{I(39),n[72]=(n[72]|0)+2,a=k(1)|0;break}case 34:{I(34),n[72]=(n[72]|0)+2,a=k(1)|0;break}default:a=j(a)|0}if(a<<16>>16!=58){w=22;break}switch(n[72]=(n[72]|0)+2,(k(1)|0)<<16>>16){case 39:{I(39);break}case 34:{I(34);break}default:{w=26;break e}}switch(n[72]=(n[72]|0)+2,(k(1)|0)<<16>>16){case 125:{w=31;break e}case 44:break;default:{w=30;break e}}if(n[72]=(n[72]|0)+2,(k(1)|0)<<16>>16==125){w=31;break}a=n[72]|0}if((w|0)==22){n[72]=l;break}else if((w|0)==26){n[72]=l;break}else if((w|0)==30){n[72]=l;break}else if((w|0)==31){w=n[63]|0,n[w+16>>2]=h,n[w+12>>2]=(n[72]|0)+2;break}}while(!1)}f(G,"u");function pt(t){t=t|0;e:do switch(d[t>>1]|0){case 100:switch(d[t+-2>>1]|0){case 105:{t=_(t+-4|0,104,2)|0;break e}case 108:{t=_(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=q(t+-6|0,101)|0;break e}case 97:{t=q(t+-6|0,99)|0;break e}default:{t=0;break e}}case 116:{t=_(t+-4|0,114,4)|0;break e}case 117:{t=_(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=_(t+-8|0,134,6)|0;break e}case 112:{t=_(t+-8|0,146,2)|0;break e}default:{t=0;break e}}else t=0;break}case 107:{t=_(t+-2|0,150,4)|0;break}case 110:{t=t+-2|0,q(t,105)|0?t=1:t=_(t,158,5)|0;break}case 111:{t=q(t+-2|0,100)|0;break}case 114:{t=_(t+-2|0,168,7)|0;break}case 116:{t=_(t+-2|0,182,4)|0;break}case 119:switch(d[t+-2>>1]|0){case 101:{t=q(t+-4|0,110)|0;break e}case 111:{t=_(t+-4|0,190,3)|0;break e}default:{t=0;break e}}default:t=0}while(!1);return t|0}f(pt,"o");function _e(){var t=0,a=0,h=0,l=0;a=n[73]|0,h=n[72]|0;e:for(;;){if(t=h+2|0,h>>>0>=a>>>0){a=10;break}switch(d[t>>1]|0){case 96:{a=7;break e}case 36:{if((d[h+4>>1]|0)==123){a=6;break e}break}case 92:{t=h+4|0;break}default:}h=t}(a|0)==6?(t=h+4|0,n[72]=t,a=n[70]|0,l=d[400]|0,h=l&65535,n[a+(h<<3)>>2]=4,d[400]=l+1<<16>>16,n[a+(h<<3)+4>>2]=t):(a|0)==7?(n[72]=t,h=n[70]|0,l=(d[400]|0)+-1<<16>>16,d[400]=l,(n[h+((l&65535)<<3)>>2]|0)!=3&&M()):(a|0)==10&&(n[72]=t,M())}f(_e,"h");function k(t){t=t|0;var a=0,h=0,l=0;h=n[72]|0;e:do{a=d[h>>1]|0;t:do if(a<<16>>16!=47)if(t){if(B(a)|0)break;break e}else{if(re(a)|0)break;break e}else switch(d[h+2>>1]|0){case 47:{fe();break t}case 42:{le(t);break t}default:{a=47;break e}}while(!1);l=n[72]|0,h=l+2|0,n[72]=h}while(l>>>0<(n[73]|0)>>>0);return a|0}f(k,"w");function ce(t,a,h,l){t=t|0,a=a|0,h=h|0,l=l|0;var w=0,m=0;m=n[67]|0,n[67]=m+36,w=n[63]|0,n[(w|0?w+32|0:236)>>2]=m,n[64]=w,n[63]=m,n[m+8>>2]=t,(l|0)==2?(t=3,w=h):(w=(l|0)==1,t=w?1:2,w=w?h+2|0:0),n[m+12>>2]=w,n[m+28>>2]=t,n[m>>2]=a,n[m+4>>2]=h,n[m+16>>2]=0,n[m+20>>2]=l,a=(l|0)==1,b[m+24>>0]=a&1,n[m+32>>2]=0,a|(l|0)==2&&(b[803]=1)}f(ce,"d");function I(t){t=t|0;var a=0,h=0,l=0,w=0;for(w=n[73]|0,a=n[72]|0;;){if(l=a+2|0,a>>>0>=w>>>0){a=9;break}if(h=d[l>>1]|0,h<<16>>16==t<<16>>16){a=10;break}if(h<<16>>16==92)h=a+4|0,(d[h>>1]|0)==13?(a=a+6|0,a=(d[a>>1]|0)==10?a:h):a=h;else if(Re(h)|0){a=9;break}else a=l}(a|0)==9?(n[72]=l,M()):(a|0)==10&&(n[72]=l)}f(I,"v");function Le(t,a){t=t|0,a=a|0;var h=0,l=0,w=0,m=0;return h=n[72]|0,l=d[h>>1]|0,m=(t|0)==(a|0),w=m?0:t,m=m?0:a,l<<16>>16==97&&(n[72]=h+4,h=k(1)|0,t=n[72]|0,H(h)|0?(I(h),a=(n[72]|0)+2|0,n[72]=a):(j(h)|0,a=n[72]|0),l=k(1)|0,h=n[72]|0),(h|0)!=(t|0)&&W(t,a,w,m),l|0}f(Le,"A");function wt(){var t=0,a=0,h=0;h=n[73]|0,a=n[72]|0;e:for(;;){if(t=a+2|0,a>>>0>=h>>>0){a=6;break}switch(d[t>>1]|0){case 13:case 10:{a=6;break e}case 93:{a=7;break e}case 92:{t=a+4|0;break}default:}a=t}return(a|0)==6?(n[72]=t,M(),t=0):(a|0)==7&&(n[72]=t,t=93),t|0}f(wt,"C");function ue(){var t=0,a=0,h=0;e:for(;;){if(t=n[72]|0,a=t+2|0,n[72]=a,t>>>0>=(n[73]|0)>>>0){h=7;break}switch(d[a>>1]|0){case 13:case 10:{h=7;break e}case 47:break e;case 91:{wt()|0;break}case 92:{n[72]=t+4;break}default:}}(h|0)==7&&M()}f(ue,"g");function mt(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=_(t+-2|0,210,4)|0;break}case 121:{t=_(t+-2|0,218,6)|0;break}case 101:{t=_(t+-2|0,230,3)|0;break}default:t=0}return t|0}f(mt,"p");function le(t){t=t|0;var a=0,h=0,l=0,w=0,m=0;for(w=(n[72]|0)+2|0,n[72]=w,h=n[73]|0;a=w+2|0,!(w>>>0>=h>>>0||(l=d[a>>1]|0,!t&&Re(l)|0));){if(l<<16>>16==42&&(d[w+4>>1]|0)==47){m=8;break}w=a}(m|0)==8&&(n[72]=a,a=w+4|0),n[72]=a}f(le,"y");function A(t,a,h){t=t|0,a=a|0,h=h|0;var l=0,w=0;e:do if(!h)t=0;else{for(;l=b[t>>0]|0,w=b[a>>0]|0,l<<24>>24==w<<24>>24;)if(h=h+-1|0,h)t=t+1|0,a=a+1|0;else{t=0;break e}t=(l&255)-(w&255)|0}while(!1);return t|0}f(A,"m");function te(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}f(te,"I");function kt(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}f(kt,"U");function Oe(t){t=t|0;var a=0;a=d[t>>1]|0;e:do if((a+-9&65535)>=5){switch(a<<16>>16){case 160:case 32:{a=1;break e}default:}if(te(a)|0)return a<<16>>16!=46|(de(t)|0)|0;a=0}else a=1;while(!1);return a|0}f(Oe,"x");function yt(t){t=t|0;var a=0,h=0,l=0,w=0;return h=O,O=O+16|0,l=h,n[l>>2]=0,n[66]=t,a=n[3]|0,w=a+(t<<1)|0,t=w+2|0,d[w>>1]=0,n[l>>2]=t,n[67]=t,n[59]=0,n[63]=0,n[61]=0,n[60]=0,n[65]=0,n[62]=0,O=h,a|0}f(yt,"S");function W(t,a,h,l){t=t|0,a=a|0,h=h|0,l=l|0;var w=0,m=0;w=n[67]|0,n[67]=w+20,m=n[65]|0,n[(m|0?m+16|0:240)>>2]=w,n[65]=w,n[w>>2]=t,n[w+4>>2]=a,n[w+8>>2]=h,n[w+12>>2]=l,n[w+16>>2]=0,b[803]=1}f(W,"O");function _(t,a,h){t=t|0,a=a|0,h=h|0;var l=0,w=0;return l=t+(0-h<<1)|0,w=l+2|0,t=n[3]|0,w>>>0>=t>>>0&&!(A(w,a,h<<1)|0)?(w|0)==(t|0)?t=1:t=Oe(l)|0:t=0,t|0}f(_,"$");function Ct(t){switch(t=t|0,d[t>>1]|0){case 107:{t=_(t+-2|0,150,4)|0;break}case 101:{(d[t+-2>>1]|0)==117?t=_(t+-4|0,122,6)|0:t=0;break}default:t=0}return t|0}f(Ct,"j");function q(t,a){t=t|0,a=a|0;var h=0;return h=n[3]|0,h>>>0<=t>>>0&&(d[t>>1]|0)==a<<16>>16?(h|0)==(t|0)?h=1:h=he(d[t+-2>>1]|0)|0:h=0,h|0}f(q,"B");function he(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&(te(t)|0)}while(!1);return t|0}f(he,"E");function fe(){var t=0,a=0,h=0;t=n[73]|0,h=n[72]|0;e:for(;a=h+2|0,!(h>>>0>=t>>>0);)switch(d[a>>1]|0){case 13:case 10:break e;default:h=a}n[72]=a}f(fe,"P");function j(t){for(t=t|0;!(B(t)|0||te(t)|0);)if(t=(n[72]|0)+2|0,n[72]=t,t=d[t>>1]|0,!(t<<16>>16)){t=0;break}return t|0}f(j,"q");function St(){var t=0;switch(t=n[(n[61]|0)+20>>2]|0,t|0){case 1:{t=-1;break}case 2:{t=-2;break}default:t=t-(n[3]|0)>>1}return t|0}f(St,"z");function xt(t){return t=t|0,!(_(t,196,5)|0)&&!(_(t,44,3)|0)?t=_(t,206,2)|0:t=1,t|0}f(xt,"D");function re(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}f(re,"F");function de(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}f(de,"G");function z(t){return t=t|0,(n[3]|0)==(t|0)?t=1:t=Oe(t+-2|0)|0,t|0}f(z,"H");function vt(){var t=0;return t=n[(n[62]|0)+12>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}f(vt,"J");function Et(){var t=0;return t=n[(n[61]|0)+12>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}f(Et,"K");function _t(){var t=0;return t=n[(n[62]|0)+8>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}f(_t,"L");function Lt(){var t=0;return t=n[(n[61]|0)+16>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}f(Lt,"M");function Ot(){var t=0;return t=n[(n[61]|0)+4>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}f(Ot,"N");function Rt(){var t=0;return t=n[61]|0,t=n[(t|0?t+32|0:236)>>2]|0,n[61]=t,(t|0)!=0|0}f(Rt,"Q");function At(){var t=0;return t=n[62]|0,t=n[(t|0?t+16|0:240)>>2]|0,n[62]=t,(t|0)!=0|0}f(At,"R");function M(){b[802]=1,n[68]=(n[72]|0)-(n[3]|0)>>1,n[72]=(n[73]|0)+2}f(M,"T");function B(t){return t=t|0,(t|128)<<16>>16==160|(t+-9&65535)<5|0}f(B,"V");function H(t){return t=t|0,t<<16>>16==39|t<<16>>16==34|0}f(H,"W");function Nt(){return(n[(n[61]|0)+8>>2]|0)-(n[3]|0)>>1|0}f(Nt,"X");function It(){return(n[(n[62]|0)+4>>2]|0)-(n[3]|0)>>1|0}f(It,"Y");function Re(t){return t=t|0,t<<16>>16==13|t<<16>>16==10|0}f(Re,"Z");function Mt(){return(n[n[61]>>2]|0)-(n[3]|0)>>1|0}f(Mt,"_");function Ut(){return(n[n[62]>>2]|0)-(n[3]|0)>>1|0}f(Ut,"ee");function $t(){return R[(n[61]|0)+24>>0]|0|0}f($t,"ae");function jt(t){t=t|0,n[3]=t}f(jt,"re");function Dt(){return n[(n[61]|0)+28>>2]|0}f(Dt,"ie");function Tt(){return(b[803]|0)!=0|0}f(Tt,"se");function Ft(){return(b[804]|0)!=0|0}f(Ft,"fe");function Pt(){return n[68]|0}f(Pt,"te");function Wt(t){return t=t|0,O=t+992+15&-16,992}return f(Wt,"ce"),{su:Wt,ai:Lt,e:Pt,ee:It,ele:vt,els:_t,es:Ut,f:Ft,id:St,ie:Ot,ip:$t,is:Mt,it:Dt,ms:Tt,p:N,re:At,ri:Rt,sa:yt,se:Et,ses:jt,ss:Nt}}(typeof self<"u"?self:global,{},ne),ke=v.su(Z-(2<<17))}const i=E.length+1;v.ses(ke),v.sa(i-1),Fe(E,new Uint16Array(ne,ke,i)),v.p()||(y=v.e(),D());const o=[],c=[];for(;v.ri();){const u=v.is(),p=v.ie(),g=v.ai(),b=v.id(),d=v.ss(),n=v.se(),R=v.it();let L;v.ip()&&(L=ye(b===-1?u:u+1,E.charCodeAt(b===-1?u-1:u))),o.push({t:R,n:L,s:u,e:p,ss:d,se:n,d:b,a:g})}for(;v.re();){const u=v.es(),p=v.ee(),g=v.els(),b=v.ele(),d=E.charCodeAt(u),n=g>=0?E.charCodeAt(g):-1;c.push({s:u,e:p,ls:g,le:b,n:d===34||d===39?ye(u+1,d):E.slice(u,p),ln:g<0?void 0:n===34||n===39?ye(g+1,n):E.slice(g,b)})}return[o,c,!!v.f(),!!v.ms()]}f(lr,"parse");function ye(s,e){y=s;let r="",i=y;for(;;){y>=E.length&&D();const o=E.charCodeAt(y);if(o===e)break;o===92?(r+=E.slice(i,y),r+=hr(),i=y):(o===8232||o===8233||We(o)&&D(),++y)}return r+=E.slice(i,y++),r}f(ye,"b");function hr(){let s=E.charCodeAt(++y);switch(++y,s){case 110:return`
|
|
11
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(Ce(2));case 117:return function(){const e=E.charCodeAt(y);let r;return e===123?(++y,r=Ce(E.indexOf("}",y)-y),++y,r>1114111&&D()):r=Ce(4),r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode(55296+(r>>10),56320+(1023&r)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:E.charCodeAt(y)===10&&++y;case 10:return"";case 56:case 57:D();default:if(s>=48&&s<=55){let e=E.substr(y-1,3).match(/^[0-7]+/)[0],r=parseInt(e,8);return r>255&&(e=e.slice(0,-1),r=parseInt(e,8)),y+=e.length-1,s=E.charCodeAt(y),e==="0"&&s!==56&&s!==57||D(),String.fromCharCode(r)}return We(s)?"":String.fromCharCode(s)}}f(hr,"k");function Ce(s){const e=y;let r=0,i=0;for(let o=0;o<s;++o,++y){let c,u=E.charCodeAt(y);if(u!==95){if(u>=97)c=u-97+10;else if(u>=65)c=u-65+10;else{if(!(u>=48&&u<=57))break;c=u-48}if(c>=16)break;i=u,r=16*r+c}else i!==95&&o!==0||D(),i=u}return i!==95&&y-e===s||D(),r}f(Ce,"l");function We(s){return s===13||s===10}f(We,"u");function D(){throw Object.assign(Error(`Parse error ${Pe}:${E.slice(0,y).split(`
|
|
12
|
-
`).length}:${y-E.lastIndexOf(`
|
|
13
|
-
`,y-1)}`),{idx:y})}f(D,"o");let Se;typeof WebAssembly<"u"&&(async()=>{const{parse:s,init:e}=await import("./lexer-DQCqS3nf.mjs");await e,Se=s})();const Be=f((s,e)=>Se?Se(s,e):lr(s,e),"parseEsm"),fr=f(s=>{if(!s.includes("import")&&!s.includes("export"))return!1;try{return Be(s)[3]}catch{return!0}},"isESM"),Je="2",dr=(s=>{const e="default";return s[e]&&typeof s[e]=="object"&&"__esModule"in s[e]?s[e]:s}).toString(),gr=`.then(${dr})`,xe=f((s,e,r)=>{if(r){if(!e.includes("import("))return}else if(!e.includes("import"))return;const o=Be(e,s)[0].filter(g=>g.d>-1);if(o.length===0)return;const c=new Ee(e);for(const g of o)c.appendRight(g.se,gr);const u=c.toString(),p=c.generateMap({source:s,includeContent:!1,hires:"boundary"});return{code:u,map:p}},"transformDynamicImport"),Ge=f(s=>{try{const e=$.readFileSync(s,"utf8");return JSON.parse(e)}catch{}},"readJsonFile"),qe=f(()=>{},"noop"),ze=f(()=>Math.floor(Date.now()/1e8),"getTime");class br extends Map{static{f(this,"FileCache")}cacheDirectory=Xt;oldCacheDirectory=X.join(Ht.tmpdir(),"tsx");cacheFiles;constructor(){super(),$.mkdirSync(this.cacheDirectory,{recursive:!0}),this.cacheFiles=$.readdirSync(this.cacheDirectory).map(e=>{const[r,i]=e.split("-");return{time:Number(r),key:i,fileName:e}}),setImmediate(()=>{this.expireDiskCache(),this.removeOldCacheDirectory()})}get(e){const r=super.get(e);if(r)return r;const i=this.cacheFiles.find(u=>u.key===e);if(!i)return;const o=X.join(this.cacheDirectory,i.fileName),c=Ge(o);if(!c){$.promises.unlink(o).then(()=>{const u=this.cacheFiles.indexOf(i);this.cacheFiles.splice(u,1)},()=>{});return}return super.set(e,c),c}set(e,r){if(super.set(e,r),r){const i=ze();$.promises.writeFile(X.join(this.cacheDirectory,`${i}-${e}`),JSON.stringify(r)).catch(qe)}return this}expireDiskCache(){const e=ze();for(const r of this.cacheFiles)e-r.time>7&&$.promises.unlink(X.join(this.cacheDirectory,r.fileName)).catch(qe)}async removeOldCacheDirectory(){try{await $.promises.access(this.oldCacheDirectory).then(()=>!0)&&("rm"in $.promises?await $.promises.rm(this.oldCacheDirectory,{recursive:!0,force:!0}):await $.promises.rmdir(this.oldCacheDirectory,{recursive:!0}))}catch{}}}var ie=process.env.TSX_DISABLE_CACHE?new Map:new br;const pr=/^[\w+.-]+:\/\//,wr=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,mr=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function kr(s){return pr.test(s)}f(kr,"isAbsoluteUrl");function yr(s){return s.startsWith("//")}f(yr,"isSchemeRelativeUrl");function He(s){return s.startsWith("/")}f(He,"isAbsolutePath");function Cr(s){return s.startsWith("file:")}f(Cr,"isFileUrl");function Xe(s){return/^[.?#]/.test(s)}f(Xe,"isRelative");function se(s){const e=wr.exec(s);return Ke(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}f(se,"parseAbsoluteUrl");function Sr(s){const e=mr.exec(s),r=e[2];return Ke("file:","",e[1]||"","",He(r)?r:"/"+r,e[3]||"",e[4]||"")}f(Sr,"parseFileUrl");function Ke(s,e,r,i,o,c,u){return{scheme:s,user:e,host:r,port:i,path:o,query:c,hash:u,type:7}}f(Ke,"makeUrl");function Qe(s){if(yr(s)){const r=se("http:"+s);return r.scheme="",r.type=6,r}if(He(s)){const r=se("http://foo.com"+s);return r.scheme="",r.host="",r.type=5,r}if(Cr(s))return Sr(s);if(kr(s))return se(s);const e=se("http://foo.com/"+s);return e.scheme="",e.host="",e.type=s?s.startsWith("?")?3:s.startsWith("#")?2:4:1,e}f(Qe,"parseUrl");function xr(s){if(s.endsWith("/.."))return s;const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(xr,"stripPathFilename");function vr(s,e){Ye(e,e.type),s.path==="/"?s.path=e.path:s.path=xr(e.path)+s.path}f(vr,"mergePaths");function Ye(s,e){const r=e<=4,i=s.path.split("/");let o=1,c=0,u=!1;for(let g=1;g<i.length;g++){const b=i[g];if(!b){u=!0;continue}if(u=!1,b!=="."){if(b===".."){c?(u=!0,c--,o--):r&&(i[o++]=b);continue}i[o++]=b,c++}}let p="";for(let g=1;g<o;g++)p+="/"+i[g];(!p||u&&!p.endsWith("/.."))&&(p+="/"),s.path=p}f(Ye,"normalizePath");function Er(s,e){if(!s&&!e)return"";const r=Qe(s);let i=r.type;if(e&&i!==7){const c=Qe(e),u=c.type;switch(i){case 1:r.hash=c.hash;case 2:r.query=c.query;case 3:case 4:vr(r,c);case 5:r.user=c.user,r.host=c.host,r.port=c.port;case 6:r.scheme=c.scheme}u>i&&(i=u)}Ye(r,i);const o=r.query+r.hash;switch(i){case 2:case 3:return o;case 4:{const c=r.path.slice(1);return c?Xe(e||s)&&!Xe(c)?"./"+c+o:c+o:o||"."}case 5:return r.path+o;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+o}}f(Er,"resolve$1");function Ze(s,e){return e&&!e.endsWith("/")&&(e+="/"),Er(s,e)}f(Ze,"resolve");function _r(s){if(!s)return"";const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(_r,"stripFilename");const F=0;function Lr(s,e){const r=Ve(s,0);if(r===s.length)return s;e||(s=s.slice());for(let i=r;i<s.length;i=Ve(s,i+1))s[i]=Rr(s[i],e);return s}f(Lr,"maybeSort");function Ve(s,e){for(let r=e;r<s.length;r++)if(!Or(s[r]))return r;return s.length}f(Ve,"nextUnsortedSegmentLine");function Or(s){for(let e=1;e<s.length;e++)if(s[e][F]<s[e-1][F])return!1;return!0}f(Or,"isSorted");function Rr(s,e){return e||(s=s.slice()),s.sort(Ar)}f(Rr,"sortSegments");function Ar(s,e){return s[F]-e[F]}f(Ar,"sortComparator");let oe=!1;function Nr(s,e,r,i){for(;r<=i;){const o=r+(i-r>>1),c=s[o][F]-e;if(c===0)return oe=!0,o;c<0?r=o+1:i=o-1}return oe=!1,r-1}f(Nr,"binarySearch");function Ir(s,e,r){for(let i=r-1;i>=0&&s[i][F]===e;r=i--);return r}f(Ir,"lowerBound");function Mr(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}f(Mr,"memoizedState");function Ur(s,e,r,i){const{lastKey:o,lastNeedle:c,lastIndex:u}=r;let p=0,g=s.length-1;if(i===o){if(e===c)return oe=u!==-1&&s[u][F]===e,u;e>=c?p=u===-1?0:u:g=u}return r.lastKey=i,r.lastNeedle=e,r.lastIndex=Nr(s,e,p,g)}f(Ur,"memoizedBinarySearch");class et{static{f(this,"TraceMap")}constructor(e,r){const i=typeof e=="string";if(!i&&e._decodedMemo)return e;const o=i?JSON.parse(e):e,{version:c,file:u,names:p,sourceRoot:g,sources:b,sourcesContent:d}=o;this.version=c,this.file=u,this.names=p||[],this.sourceRoot=g,this.sources=b,this.sourcesContent=d,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const n=Ze(g||"",_r(r));this.resolvedSources=b.map(L=>Ze(L||"",n));const{mappings:R}=o;typeof R=="string"?(this._encoded=R,this._decoded=void 0):(this._encoded=void 0,this._decoded=Lr(R,i)),this._decodedMemo=Mr(),this._bySources=void 0,this._bySourceMemos=void 0}}function xn(s){return s}f(xn,"cast$2");function tt(s){var e;return(e=s)._decoded||(e._decoded=Qt(s._encoded))}f(tt,"decodedMappings");function $r(s,e,r){const i=tt(s);if(e>=i.length)return null;const o=i[e],c=jr(o,s._decodedMemo,e,r);return c===-1?null:o[c]}f($r,"traceSegment");function jr(s,e,r,i,o){let c=Ur(s,i,e,r);return oe&&(c=Ir(s,i,c)),c===-1||c===s.length?-1:c}f(jr,"traceSegmentInternal");class ve{static{f(this,"SetArray")}constructor(){this._indexes={__proto__:null},this.array=[]}}function vn(s){return s}f(vn,"cast$1");function rt(s,e){return s._indexes[e]}f(rt,"get");function V(s,e){const r=rt(s,e);if(r!==void 0)return r;const{array:i,_indexes:o}=s,c=i.push(e);return o[e]=c-1}f(V,"put");function Dr(s,e){const r=rt(s,e);if(r===void 0)return;const{array:i,_indexes:o}=s;for(let c=r+1;c<i.length;c++){const u=i[c];i[c-1]=u,o[u]--}o[e]=void 0,i.pop()}f(Dr,"remove");const Tr=0,Fr=1,Pr=2,Wr=3,Br=4,nt=-1;class Jr{static{f(this,"GenMapping")}constructor({file:e,sourceRoot:r}={}){this._names=new ve,this._sources=new ve,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=r,this._ignoreList=new ve}}function En(s){return s}f(En,"cast");const Gr=f((s,e,r,i,o,c,u,p)=>Xr(!0,s,e,r,i,o,c,u),"maybeAddSegment");function qr(s,e,r){const{_sources:i,_sourcesContent:o}=s,c=V(i,e);o[c]=r}f(qr,"setSourceContent");function zr(s,e,r=!0){const{_sources:i,_sourcesContent:o,_ignoreList:c}=s,u=V(i,e);u===o.length&&(o[u]=null),r?V(c,u):Dr(c,u)}f(zr,"setIgnore");function it(s){const{_mappings:e,_sources:r,_sourcesContent:i,_names:o,_ignoreList:c}=s;return Yr(e),{version:3,file:s.file||void 0,names:o.array,sourceRoot:s.sourceRoot||void 0,sources:r.array,sourcesContent:i,mappings:e,ignoreList:c.array}}f(it,"toDecodedMap");function Hr(s){const e=it(s);return Object.assign(Object.assign({},e),{mappings:De(e.mappings)})}f(Hr,"toEncodedMap");function Xr(s,e,r,i,o,c,u,p,g){const{_mappings:b,_sources:d,_sourcesContent:n,_names:R}=e,L=Kr(b,r),O=Qr(L,i);if(!o)return Zr(L,O)?void 0:st(L,O,[i]);const N=V(d,o),U=p?V(R,p):nt;if(N===n.length&&(n[N]=null),!Vr(L,O,N,c,u,U))return st(L,O,p?[i,N,c,u,U]:[i,N,c,u])}f(Xr,"addSegmentInternal");function Kr(s,e){for(let r=s.length;r<=e;r++)s[r]=[];return s[e]}f(Kr,"getLine");function Qr(s,e){let r=s.length;for(let i=r-1;i>=0;r=i--){const o=s[i];if(e>=o[Tr])break}return r}f(Qr,"getColumnIndex");function st(s,e,r){for(let i=s.length;i>e;i--)s[i]=s[i-1];s[e]=r}f(st,"insert");function Yr(s){const{length:e}=s;let r=e;for(let i=r-1;i>=0&&!(s[i].length>0);r=i,i--);r<e&&(s.length=r)}f(Yr,"removeEmptyFinalLines");function Zr(s,e){return e===0?!0:s[e-1].length===1}f(Zr,"skipSourceless");function Vr(s,e,r,i,o,c){if(e===0)return!1;const u=s[e-1];return u.length===1?!1:r===u[Fr]&&i===u[Pr]&&o===u[Wr]&&c===(u.length===5?u[Br]:nt)}f(Vr,"skipSource");const ot=at("",-1,-1,"",null,!1),en=[];function at(s,e,r,i,o,c){return{source:s,line:e,column:r,name:i,content:o,ignore:c}}f(at,"SegmentObject");function ct(s,e,r,i,o){return{map:s,sources:e,source:r,content:i,ignore:o}}f(ct,"Source");function ut(s,e){return ct(s,e,"",null,!1)}f(ut,"MapSource");function tn(s,e,r){return ct(null,en,s,e,r)}f(tn,"OriginalSource");function rn(s){const e=new Jr({file:s.map.file}),{sources:r,map:i}=s,o=i.names,c=tt(i);for(let u=0;u<c.length;u++){const p=c[u];for(let g=0;g<p.length;g++){const b=p[g],d=b[0];let n=ot;if(b.length!==1){const G=r[b[1]];if(n=lt(G,b[2],b[3],b.length===5?o[b[4]]:""),n==null)continue}const{column:R,line:L,name:O,content:N,source:U,ignore:P}=n;Gr(e,u,d,U,L,R,O),U&&N!=null&&qr(e,U,N),P&&zr(e,U,!0)}}return e}f(rn,"traceMappings");function lt(s,e,r,i){if(!s.map)return at(s.source,e,r,i,s.content,s.ignore);const o=$r(s.map,e,r);return o==null?null:o.length===1?ot:lt(s.sources[o[1]],o[2],o[3],o.length===5?s.map.names[o[4]]:i)}f(lt,"originalPositionFor");function nn(s){return Array.isArray(s)?s:[s]}f(nn,"asArray");function sn(s,e){const r=nn(s).map(c=>new et(c,"")),i=r.pop();for(let c=0;c<r.length;c++)if(r[c].sources.length>1)throw new Error(`Transformation map ${c} must have exactly one source file.
|
|
14
|
-
Did you specify these with the most recent transformation maps first?`);let o=ht(i,e,"",0);for(let c=r.length-1;c>=0;c--)o=ut(r[c],[o]);return o}f(sn,"buildSourceMapTree");function ht(s,e,r,i){const{resolvedSources:o,sourcesContent:c,ignoreList:u}=s,p=i+1,g=o.map((b,d)=>{const n={importer:r,depth:p,source:b||"",content:void 0,ignore:void 0},R=e(n.source,n),{source:L,content:O,ignore:N}=n;if(R)return ht(new et(R,L),e,L,p);const U=O!==void 0?O:c?c[d]:null,P=N!==void 0?N:u?u.includes(d):!1;return tn(L,U,P)});return ut(s,g)}f(ht,"build");class on{static{f(this,"SourceMap")}constructor(e,r){const i=r.decodedMappings?it(e):Hr(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,r.excludeContent||(this.sourcesContent=i.sourcesContent)}toString(){return JSON.stringify(this)}}function ft(s,e,r){const i={excludeContent:!!r,decodedMappings:!1},o=sn(s,e);return new on(rn(o),i)}f(ft,"remapping");const an=f((s,e,r)=>{const i=[],o={code:e};for(const c of r){const u=c(s,o.code);u&&(Object.assign(o,u),i.unshift(u.map))}return{...o,map:ft(i,()=>null)}},"applyTransformersSync"),cn=f(async(s,e,r)=>{const i=[],o={code:e};for(const c of r){const u=await c(s,o.code);u&&(Object.assign(o,u),i.unshift(u.map))}return{...o,map:ft(i,()=>null)}},"applyTransformers"),un=Object.freeze({target:`node${process.versions.node}`,loader:"default"}),ln=/^--inspect(?:-brk|-port|-publish-uid|-wait)?(?:=|$)/,hn=process.execArgv.some(s=>ln.test(s)),dt={...un,sourcemap:!0,sourcesContent:!!process.env.NODE_V8_COVERAGE||hn,minifyWhitespace:!0,keepNames:!0},gt=f(s=>{const e=s.sourcefile;if(e){const r=X.extname(e.split("?")[0]);r?r===".cts"||r===".mts"?s.sourcefile=`${e.slice(0,-3)}ts`:r===".mjs"&&(s.sourcefile=`${e.slice(0,-3)}js`):s.sourcefile+=".js"}return r=>(r.map&&(s.sourcefile!==e&&(r.map=r.map.replace(JSON.stringify(s.sourcefile),JSON.stringify(e))),r.map=JSON.parse(r.map)),r)},"patchOptions"),bt=f(s=>{throw s.name="TransformError",delete s.errors,delete s.warnings,s},"formatEsbuildError"),fn=f((s,e,r)=>{const[i,o]=e.split("?"),c={};i.endsWith(".cjs")||i.endsWith(".cts")||(c["import.meta.url"]=JSON.stringify(Jt(i)+(o?`?${o}`:"")));const u={...dt,format:"cjs",sourcefile:i,define:c,banner:"(()=>{",footer:"})()",platform:"node",...r},p=Ne([s,JSON.stringify(u),Ae,Je].join("-"));let g=ie.get(p);return g||(g=an(e,s,[(b,d)=>{const n=gt(u);let R;try{R=Gt(d,u)}catch(L){throw bt(L)}return n(R)},(b,d)=>xe(b,d,!0)]),ie.set(p,g)),g},"transformSync"),dn=f(async(s,e,r)=>{const i={...dt,format:"esm",sourcefile:e,...r},o=Ne([s,JSON.stringify(i),Ae,Je].join("-"));let c=ie.get(o);return c||(c=await cn(e,s,[async(u,p)=>{const g=gt(i);let b;try{b=await qt(p,i)}catch(d){throw bt(d)}return g(b)},(u,p)=>xe(u,p,!0)]),ie.set(o,c)),c},"transform");export{fn as a,xe as b,fr as i,Ge as r,dn as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var i=Object.defineProperty;var s=(e,t)=>i(e,"name",{value:t,configurable:!0});const n=s((e,t)=>{const r=e[0]-t[0];if(r===0){const o=e[1]-t[1];return o===0?e[2]>=t[2]:o>0}return r>0},"isVersionGreaterOrEqual"),u=process.versions.node.split(".").map(Number),l=s((e,t=u)=>{for(let r=0;r<e.length;r+=1){const o=e[r];if(r===e.length-1||t[0]===o[0])return n(t,o)}return!1},"isFeatureSupported"),a=[[18,19,0],[20,6,0]],c=[[18,19,0],[20,10,0],[21,0,0]],d=[[21,0,0]],f=[[20,11,0],[21,3,0]];exports.esmLoadReadFile=f,exports.importAttributes=c,exports.isFeatureSupported=l,exports.moduleRegister=a,exports.testRunnerGlob=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r="4.19.4";export{r as v};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r="4.19.4";exports.version=r;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var z=Object.defineProperty;var o=(s,e)=>z(s,"name",{value:e,configurable:!0});import{r as G}from"./get-pipe-path-BHW2eJdv.mjs";import d from"node:module";import h from"node:path";import{fileURLToPath as F}from"node:url";import{parseTsconfig as H,getTsconfig as X,createFilesMatcher as K,createPathsMatcher as V}from"get-tsconfig";import Y from"node:fs";import{b as Z,i as q,a as ee}from"./index-DGv_vkxZ.mjs";import{p as U}from"./client-BQVF1NaW.mjs";const W=o(s=>{if(!s.startsWith("data:text/javascript,"))return;const e=s.indexOf("?");if(e===-1)return;const n=new URLSearchParams(s.slice(e+1)).get("filePath");if(n)return n},"getOriginalFilePath"),$=o(s=>{const e=W(s);return e&&(d._cache[e]=d._cache[s],delete d._cache[s],s=e),s},"interopCjsExports"),se=o(s=>{const e=s.indexOf(":");if(e!==-1)return s.slice(0,e)},"getScheme"),L=o(s=>s[0]==="."&&(s[1]==="/"||s[1]==="."||s[2]==="/"),"isRelativePath"),y=o(s=>L(s)||h.isAbsolute(s),"isFilePath"),te=o(s=>{if(y(s))return!0;const e=se(s);return e&&e!=="node"},"requestAcceptsQuery"),x="file://",R=/\.([cm]?ts|[tj]sx)($|\?)/,ne=/[/\\].+\.(?:cts|cjs)(?:$|\?)/,ae=/\.json($|\?)/,_=/\/(?:$|\?)/,re=/^(?:@[^/]+\/)?[^/\\]+$/,D=`${h.sep}node_modules${h.sep}`;let S,E,w=!1;const N=o(s=>{let e=null;if(s){const a=h.resolve(s);e={path:a,config:H(a)}}else{try{e=X()}catch{}if(!e)return}S=K(e),E=V(e),w=e?.config.compilerOptions?.allowJs??!1},"loadTsconfig"),M=o(s=>Array.from(s).length>0?`?${s.toString()}`:"","urlSearchParamsStringify"),oe=`
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,`,C=o(()=>process.sourceMapsEnabled??!0,"shouldApplySourceMap"),v=o(({code:s,map:e})=>s+oe+Buffer.from(JSON.stringify(e),"utf8").toString("base64"),"inlineSourceMap"),ce=[".cts",".mts",".ts",".tsx",".jsx"],ie=[".js",".cjs",".mjs"],A=[".ts",".tsx",".jsx"],T=o((s,e,a,n)=>{const t=Object.getOwnPropertyDescriptor(s,e);t?.set?s[e]=a:(!t||t.configurable)&&Object.defineProperty(s,e,{value:a,enumerable:t?.enumerable||n?.enumerable,writable:n?.writable??(t?t.writable:!0),configurable:n?.configurable??(t?t.configurable:!0)})},"safeSet"),le=o((s,e,a)=>{const n=e[".js"],t=o((r,c)=>{if(s.enabled===!1)return n(r,c);const[l,f]=c.split("?");if((new URLSearchParams(f).get("namespace")??void 0)!==a)return n(r,c);r.id.startsWith("data:text/javascript,")&&(r.path=h.dirname(l)),U?.send&&U.send({type:"dependency",path:l});const u=ce.some(m=>l.endsWith(m)),P=ie.some(m=>l.endsWith(m));if(!u&&!P)return n(r,l);let p=Y.readFileSync(l,"utf8");if(l.endsWith(".cjs")){const m=Z(c,p);m&&(p=C()?v(m):m.code)}else if(u||q(p)){const m=ee(p,c,{tsconfigRaw:S?.(l)});p=C()?v(m):m.code}r._compile(p,l)},"transformer");T(e,".js",t);for(const r of A)T(e,r,t,{enumerable:!a,writable:!0,configurable:!0});return T(e,".mjs",t,{writable:!0,configurable:!0}),()=>{e[".js"]===t&&(e[".js"]=n);for(const r of[...A,".mjs"])e[r]===t&&delete e[r]}},"createExtensions"),fe=o(s=>e=>{if((e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),_.test(e)){let a=h.join(e,"index.js");e.startsWith("./")&&(a=`./${a}`);try{return s(a)}catch{}}try{return s(e)}catch(a){const n=a;if(n.code==="MODULE_NOT_FOUND")try{return s(`${e}${h.sep}index.js`)}catch{}throw n}},"createImplicitResolver"),Q=[".js",".json"],I=[".ts",".tsx",".jsx"],me=[...I,...Q],he=[...Q,...I],g=Object.create(null);g[".js"]=[".ts",".tsx",".js",".jsx"],g[".jsx"]=[".tsx",".ts",".jsx",".js"],g[".cjs"]=[".cts"],g[".mjs"]=[".mts"];const k=o(s=>{const e=s.split("?"),a=e[1]?`?${e[1]}`:"",[n]=e,t=h.extname(n),r=[],c=g[t];if(c){const f=n.slice(0,-t.length);r.push(...c.map(i=>f+i+a))}const l=!(s.startsWith(x)||y(n))||n.includes(D)||n.includes("/node_modules/")?he:me;return r.push(...l.map(f=>n+f+a)),r},"mapTsExtensions"),b=o((s,e,a)=>{if(_.test(e)||!a&&!w)return;const n=k(e);if(n)for(const t of n)try{return s(t)}catch(r){const{code:c}=r;if(c!=="MODULE_NOT_FOUND"&&c!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw r}},"resolveTsFilename"),pe=o((s,e)=>a=>{if(y(a)){const n=b(s,a,e);if(n)return n}try{return s(a)}catch(n){const t=n;if(t.code==="MODULE_NOT_FOUND"){if(typeof t.path=="string"&&t.path.endsWith(`${h.sep}package.json`)){const c=t.message.match(/^Cannot find module '([^']+)'$/);if(c){const f=c[1],i=b(s,f,e);if(i)return i}const l=t.message.match(/^Cannot find module '([^']+)'. Please verify that the package.json has a valid "main" entry$/);if(l){const f=l[1],i=b(s,f,e);if(i)return i}}const r=b(s,a,e);if(r)return r}throw t}},"createTsExtensionResolver"),J="at cjsPreparseModuleExports (node:internal",de=o(s=>{const e=s.stack.split(`
|
|
3
|
-
`).slice(1);return e[1].includes(J)||e[2].includes(J)},"isFromCjsLexer"),ue=o((s,e)=>{const a=s.split("?"),n=new URLSearchParams(a[1]);if(e?.filename){const t=W(e.filename);let r;if(t){const f=t.split("?"),i=f[0];r=f[1],e.filename=i,e.path=h.dirname(i),e.paths=d._nodeModulePaths(e.path),d._cache[i]=e}r||(r=e.filename.split("?")[1]);const l=new URLSearchParams(r).get("namespace");l&&n.append("namespace",l)}return[a[0],n,(t,r)=>(h.isAbsolute(t)&&!t.endsWith(".json")&&!t.endsWith(".node")&&!(r===0&&de(new Error))&&(t+=M(n)),t)]},"preserveQuery"),Pe=o((s,e,a)=>{if(s.startsWith(x)&&(s=F(s)),E&&!y(s)&&!e?.filename?.includes(D)){const n=E(s);for(const t of n)try{return a(t)}catch{}}return a(s)},"resolveTsPaths"),ge=o((s,e,a)=>(n,t,...r)=>{if(s.enabled===!1)return e(n,t,...r);n=$(n);const[c,l,f]=ue(n,t);if((l.get("namespace")??void 0)!==a)return e(n,t,...r);let i=o(P=>e(P,t,...r),"nextResolveSimple");i=pe(i,!!(a||t?.filename&&R.test(t.filename))),i=fe(i);const u=Pe(c,t,i);return f(u,r.length)},"createResolveFilename"),B=o((s,e)=>{if(!e)throw new Error("The current file path (__filename or import.meta.url) must be provided in the second argument of tsx.require()");return s.startsWith(".")?((typeof e=="string"&&e.startsWith(x)||e instanceof URL)&&(e=F(e)),h.resolve(h.dirname(e),s)):s},"resolveContext"),je=o(s=>{const{sourceMapsEnabled:e}=process,a={enabled:!0};N(process.env.TSX_TSCONFIG_PATH),process.setSourceMapsEnabled(!0);const n=d._resolveFilename,t=ge(a,n,s?.namespace);d._resolveFilename=t;const r=le(a,d._extensions,s?.namespace),c=o(()=>{e===!1&&process.setSourceMapsEnabled(!1),a.enabled=!1,d._resolveFilename===t&&(d._resolveFilename=n),r()},"unregister");if(s?.namespace){const l=o((i,u)=>{const P=B(i,u),[p,m]=P.split("?"),j=new URLSearchParams(m);return s.namespace&&!p.startsWith("node:")&&j.set("namespace",s.namespace),G(p+M(j))},"scopedRequire");c.require=l;const f=o((i,u,P)=>{const p=B(i,u),[m,j]=p.split("?"),O=new URLSearchParams(j);return s.namespace&&!m.startsWith("node:")&&O.set("namespace",s.namespace),t(m+M(O),module,!1,P)},"scopedResolve");c.resolve=f,c.unregister=c}return c},"register");export{$ as a,ae as b,ne as c,S as d,v as e,x as f,te as g,E as h,re as i,_ as j,L as k,N as l,k as m,w as n,je as r,R as t};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";var B=Object.defineProperty;var c=(t,e)=>B(t,"name",{value:e,configurable:!0});var z=require("./get-pipe-path-BoR10qr8.cjs"),p=require("node:module"),m=require("node:path"),O=require("node:url"),x=require("get-tsconfig"),G=require("node:fs"),v=require("./index-CylV0-__.cjs"),U=require("./client-D6NvIMSC.cjs");const F=c(t=>{if(!t.startsWith("data:text/javascript,"))return;const e=t.indexOf("?");if(e===-1)return;const n=new URLSearchParams(t.slice(e+1)).get("filePath");if(n)return n},"getOriginalFilePath"),R=c(t=>{const e=F(t);return e&&(p._cache[e]=p._cache[t],delete p._cache[t],t=e),t},"interopCjsExports"),H=c(t=>{const e=t.indexOf(":");if(e!==-1)return t.slice(0,e)},"getScheme"),W=c(t=>t[0]==="."&&(t[1]==="/"||t[1]==="."||t[2]==="/"),"isRelativePath"),y=c(t=>W(t)||m.isAbsolute(t),"isFilePath"),X=c(t=>{if(y(t))return!0;const e=H(t);return e&&e!=="node"},"requestAcceptsQuery"),E="file://",L=/\.([cm]?ts|[tj]sx)($|\?)/,K=/[/\\].+\.(?:cts|cjs)(?:$|\?)/,V=/\.json($|\?)/,_=/\/(?:$|\?)/,Y=/^(?:@[^/]+\/)?[^/\\]+$/,$=`${m.sep}node_modules${m.sep}`;exports.fileMatcher=void 0,exports.tsconfigPathsMatcher=void 0,exports.allowJs=!1;const D=c(t=>{let e=null;if(t){const r=m.resolve(t);e={path:r,config:x.parseTsconfig(r)}}else{try{e=x.getTsconfig()}catch{}if(!e)return}exports.fileMatcher=x.createFilesMatcher(e),exports.tsconfigPathsMatcher=x.createPathsMatcher(e),exports.allowJs=e?.config.compilerOptions?.allowJs??!1},"loadTsconfig"),M=c(t=>Array.from(t).length>0?`?${t.toString()}`:"","urlSearchParamsStringify"),Z=`
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,`,N=c(()=>process.sourceMapsEnabled??!0,"shouldApplySourceMap"),S=c(({code:t,map:e})=>t+Z+Buffer.from(JSON.stringify(e),"utf8").toString("base64"),"inlineSourceMap"),q=[".cts",".mts",".ts",".tsx",".jsx"],ee=[".js",".cjs",".mjs"],C=[".ts",".tsx",".jsx"],w=c((t,e,r,n)=>{const s=Object.getOwnPropertyDescriptor(t,e);s?.set?t[e]=r:(!s||s.configurable)&&Object.defineProperty(t,e,{value:r,enumerable:s?.enumerable||n?.enumerable,writable:n?.writable??(s?s.writable:!0),configurable:n?.configurable??(s?s.configurable:!0)})},"safeSet"),te=c((t,e,r)=>{const n=e[".js"],s=c((a,i)=>{if(t.enabled===!1)return n(a,i);const[l,f]=i.split("?");if((new URLSearchParams(f).get("namespace")??void 0)!==r)return n(a,i);a.id.startsWith("data:text/javascript,")&&(a.path=m.dirname(l)),U.parent?.send&&U.parent.send({type:"dependency",path:l});const d=q.some(h=>l.endsWith(h)),P=ee.some(h=>l.endsWith(h));if(!d&&!P)return n(a,l);let u=G.readFileSync(l,"utf8");if(l.endsWith(".cjs")){const h=v.transformDynamicImport(i,u);h&&(u=N()?S(h):h.code)}else if(d||v.isESM(u)){const h=v.transformSync(u,i,{tsconfigRaw:exports.fileMatcher?.(l)});u=N()?S(h):h.code}a._compile(u,l)},"transformer");w(e,".js",s);for(const a of C)w(e,a,s,{enumerable:!r,writable:!0,configurable:!0});return w(e,".mjs",s,{writable:!0,configurable:!0}),()=>{e[".js"]===s&&(e[".js"]=n);for(const a of[...C,".mjs"])e[a]===s&&delete e[a]}},"createExtensions"),se=c(t=>e=>{if((e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),_.test(e)){let r=m.join(e,"index.js");e.startsWith("./")&&(r=`./${r}`);try{return t(r)}catch{}}try{return t(e)}catch(r){const n=r;if(n.code==="MODULE_NOT_FOUND")try{return t(`${e}${m.sep}index.js`)}catch{}throw n}},"createImplicitResolver"),A=[".js",".json"],J=[".ts",".tsx",".jsx"],ne=[...J,...A],re=[...A,...J],g=Object.create(null);g[".js"]=[".ts",".tsx",".js",".jsx"],g[".jsx"]=[".tsx",".ts",".jsx",".js"],g[".cjs"]=[".cts"],g[".mjs"]=[".mts"];const Q=c(t=>{const e=t.split("?"),r=e[1]?`?${e[1]}`:"",[n]=e,s=m.extname(n),a=[],i=g[s];if(i){const f=n.slice(0,-s.length);a.push(...i.map(o=>f+o+r))}const l=!(t.startsWith(E)||y(n))||n.includes($)||n.includes("/node_modules/")?re:ne;return a.push(...l.map(f=>n+f+r)),a},"mapTsExtensions"),b=c((t,e,r)=>{if(_.test(e)||!r&&!exports.allowJs)return;const n=Q(e);if(n)for(const s of n)try{return t(s)}catch(a){const{code:i}=a;if(i!=="MODULE_NOT_FOUND"&&i!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw a}},"resolveTsFilename"),ae=c((t,e)=>r=>{if(y(r)){const n=b(t,r,e);if(n)return n}try{return t(r)}catch(n){const s=n;if(s.code==="MODULE_NOT_FOUND"){if(typeof s.path=="string"&&s.path.endsWith(`${m.sep}package.json`)){const i=s.message.match(/^Cannot find module '([^']+)'$/);if(i){const f=i[1],o=b(t,f,e);if(o)return o}const l=s.message.match(/^Cannot find module '([^']+)'. Please verify that the package.json has a valid "main" entry$/);if(l){const f=l[1],o=b(t,f,e);if(o)return o}}const a=b(t,r,e);if(a)return a}throw s}},"createTsExtensionResolver"),I="at cjsPreparseModuleExports (node:internal",ce=c(t=>{const e=t.stack.split(`
|
|
3
|
-
`).slice(1);return e[1].includes(I)||e[2].includes(I)},"isFromCjsLexer"),ie=c((t,e)=>{const r=t.split("?"),n=new URLSearchParams(r[1]);if(e?.filename){const s=F(e.filename);let a;if(s){const f=s.split("?"),o=f[0];a=f[1],e.filename=o,e.path=m.dirname(o),e.paths=p._nodeModulePaths(e.path),p._cache[o]=e}a||(a=e.filename.split("?")[1]);const l=new URLSearchParams(a).get("namespace");l&&n.append("namespace",l)}return[r[0],n,(s,a)=>(m.isAbsolute(s)&&!s.endsWith(".json")&&!s.endsWith(".node")&&!(a===0&&ce(new Error))&&(s+=M(n)),s)]},"preserveQuery"),oe=c((t,e,r)=>{if(t.startsWith(E)&&(t=O.fileURLToPath(t)),exports.tsconfigPathsMatcher&&!y(t)&&!e?.filename?.includes($)){const n=exports.tsconfigPathsMatcher(t);for(const s of n)try{return r(s)}catch{}}return r(t)},"resolveTsPaths"),le=c((t,e,r)=>(n,s,...a)=>{if(t.enabled===!1)return e(n,s,...a);n=R(n);const[i,l,f]=ie(n,s);if((l.get("namespace")??void 0)!==r)return e(n,s,...a);let o=c(P=>e(P,s,...a),"nextResolveSimple");o=ae(o,!!(r||s?.filename&&L.test(s.filename))),o=se(o);const d=oe(i,s,o);return f(d,a.length)},"createResolveFilename"),k=c((t,e)=>{if(!e)throw new Error("The current file path (__filename or import.meta.url) must be provided in the second argument of tsx.require()");return t.startsWith(".")?((typeof e=="string"&&e.startsWith(E)||e instanceof URL)&&(e=O.fileURLToPath(e)),m.resolve(m.dirname(e),t)):t},"resolveContext"),fe=c(t=>{const{sourceMapsEnabled:e}=process,r={enabled:!0};D(process.env.TSX_TSCONFIG_PATH),process.setSourceMapsEnabled(!0);const n=p._resolveFilename,s=le(r,n,t?.namespace);p._resolveFilename=s;const a=te(r,p._extensions,t?.namespace),i=c(()=>{e===!1&&process.setSourceMapsEnabled(!1),r.enabled=!1,p._resolveFilename===s&&(p._resolveFilename=n),a()},"unregister");if(t?.namespace){const l=c((o,d)=>{const P=k(o,d),[u,h]=P.split("?"),j=new URLSearchParams(h);return t.namespace&&!u.startsWith("node:")&&j.set("namespace",t.namespace),z.require(u+M(j))},"scopedRequire");i.require=l;const f=c((o,d,P)=>{const u=k(o,d),[h,j]=u.split("?"),T=new URLSearchParams(j);return t.namespace&&!h.startsWith("node:")&&T.set("namespace",t.namespace),s(h+M(T),module,!1,P)},"scopedResolve");i.resolve=f,i.unregister=i}return i},"register");exports.cjsExtensionPattern=K,exports.fileUrlPrefix=E,exports.inlineSourceMap=S,exports.interopCjsExports=R,exports.isBarePackageNamePattern=Y,exports.isDirectoryPattern=_,exports.isJsonPattern=V,exports.isRelativePath=W,exports.loadTsconfig=D,exports.mapTsExtensions=Q,exports.register=fe,exports.requestAcceptsQuery=X,exports.tsExtensionsPattern=L;
|