tsx 4.21.0 → 4.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/api/index.cjs +1 -1
  3. package/dist/cjs/api/index.mjs +1 -1
  4. package/dist/cjs/index.cjs +1 -1
  5. package/dist/cjs/index.mjs +1 -1
  6. package/dist/cli.cjs +1 -1
  7. package/dist/cli.mjs +1 -1
  8. package/dist/client-D3mGB526.cjs +1 -0
  9. package/dist/client-D_mPDF5S.mjs +1 -0
  10. package/dist/esm/api/index.cjs +1 -1
  11. package/dist/esm/api/index.mjs +1 -1
  12. package/dist/esm/index.cjs +1 -2
  13. package/dist/esm/index.mjs +1 -2
  14. package/dist/get-pipe-path-D4YM6rQt.cjs +1 -0
  15. package/dist/get-pipe-path-_tAJyU_v.mjs +1 -0
  16. package/dist/index-C8LOAU3M.cjs +14 -0
  17. package/dist/index-CDeh32pY.mjs +14 -0
  18. package/dist/loader.cjs +1 -1
  19. package/dist/loader.mjs +1 -1
  20. package/dist/node-features-Bdn6JLJo.cjs +1 -0
  21. package/dist/node-features-Eq_kCbjt.mjs +1 -0
  22. package/dist/package-CTKdXtQo.cjs +1 -0
  23. package/dist/package-jo6LuyYP.mjs +1 -0
  24. package/dist/preflight.cjs +1 -1
  25. package/dist/preflight.mjs +1 -1
  26. package/dist/register-BQpI82el.mjs +10 -0
  27. package/dist/register-BwcD2ly9.cjs +2 -0
  28. package/dist/register-DJgoUG_Q.cjs +10 -0
  29. package/dist/register-lJYvHe5s.mjs +2 -0
  30. package/dist/repl.cjs +3 -3
  31. package/dist/repl.mjs +3 -3
  32. package/dist/{require-DQxpCAr4.mjs → require-CS-YsV04.mjs} +1 -1
  33. package/dist/{require-D4F1Lv60.cjs → require-CsVor_0B.cjs} +1 -1
  34. package/dist/temporary-directory-BDDVQOvU.mjs +1 -0
  35. package/package.json +3 -4
  36. package/dist/client-BQVF1NaW.mjs +0 -1
  37. package/dist/client-D6NvIMSC.cjs +0 -1
  38. package/dist/get-pipe-path-BHW2eJdv.mjs +0 -1
  39. package/dist/get-pipe-path-BoR10qr8.cjs +0 -1
  40. package/dist/index-7AaEi15b.mjs +0 -14
  41. package/dist/index-gckBtVBf.cjs +0 -14
  42. package/dist/node-features-_8ZFwP_x.mjs +0 -1
  43. package/dist/node-features-roYmp9jK.cjs +0 -1
  44. package/dist/package-CeBgXWuR.mjs +0 -1
  45. package/dist/package-Dxt5kIHw.cjs +0 -1
  46. package/dist/register-2sWVXuRQ.cjs +0 -1
  47. package/dist/register-B7jrtLTO.mjs +0 -1
  48. package/dist/register-CFH5oNdT.mjs +0 -4
  49. package/dist/register-D46fvsV_.cjs +0 -4
  50. package/dist/temporary-directory-CwHp0_NW.mjs +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsx",
3
- "version": "4.21.0",
3
+ "version": "4.22.0",
4
4
  "description": "TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files",
5
5
  "keywords": [
6
6
  "cli",
@@ -54,13 +54,12 @@
54
54
  "./preflight": "./dist/preflight.cjs",
55
55
  "./repl": "./dist/repl.mjs"
56
56
  },
57
- "homepage": "https://tsx.is",
57
+ "homepage": "https://tsx.hirok.io",
58
58
  "engines": {
59
59
  "node": ">=18.0.0"
60
60
  },
61
61
  "dependencies": {
62
- "esbuild": "~0.27.0",
63
- "get-tsconfig": "^4.7.5"
62
+ "esbuild": "~0.28.0"
64
63
  },
65
64
  "optionalDependencies": {
66
65
  "fsevents": "~2.3.3"
@@ -1 +0,0 @@
1
- var a=Object.defineProperty;var o=(e,n)=>a(e,"name",{value:n,configurable:!0});import p from"node:net";import{g}from"./get-pipe-path-BHW2eJdv.mjs";const m=o(()=>new Promise(e=>{const n=g(process.ppid),t=p.createConnection(n,()=>{e(o(i=>{const r=Buffer.from(JSON.stringify(i)),s=Buffer.alloc(4);s.writeInt32BE(r.length,0),t.write(Buffer.concat([s,r]))},"sendToParent"))});t.on("error",()=>{e()}),t.unref()}),"connectToServer"),c={send:void 0},f=m();f.then(e=>{c.send=e},()=>{});export{f as c,c as p};
@@ -1 +0,0 @@
1
- "use strict";var f=Object.defineProperty;var r=(e,n)=>f(e,"name",{value:n,configurable:!0});var p=require("node:net"),u=require("./get-pipe-path-BoR10qr8.cjs");const g=r(()=>new Promise(e=>{const n=u.getPipePath(process.ppid),t=p.createConnection(n,()=>{e(r(a=>{const o=Buffer.from(JSON.stringify(a)),c=Buffer.alloc(4);c.writeInt32BE(o.length,0),t.write(Buffer.concat([c,o]))},"sendToParent"))});t.on("error",()=>{e()}),t.unref()}),"connectToServer"),s={send:void 0},i=g();i.then(e=>{s.send=e},()=>{}),exports.connectingToServer=i,exports.parent=s;
@@ -1 +0,0 @@
1
- var p=Object.defineProperty;var e=(t,r)=>p(t,"name",{value:r,configurable:!0});import{createRequire as o}from"module";import a from"node:path";import{t as s}from"./temporary-directory-CwHp0_NW.mjs";var m=o(import.meta.url);const i=process.platform==="win32",n=e(t=>{const r=a.join(s,`${t}.pipe`);return i?`\\\\?\\pipe\\${r}`:r},"getPipePath");export{n as g,i,m as r};
@@ -1 +0,0 @@
1
- "use strict";var u=Object.defineProperty;var t=(r,e)=>u(r,"name",{value:e,configurable:!0});var d=require("module"),n=require("node:path"),p=require("./temporary-directory-B83uKxJF.cjs"),s=typeof document<"u"?document.currentScript:null,o=require;const i=process.platform==="win32",c=t(r=>{const e=n.join(p.tmpdir,`${r}.pipe`);return i?`\\\\?\\pipe\\${e}`:e},"getPipePath");exports.getPipePath=c,exports.isWindows=i,exports.require=o;
@@ -1,14 +0,0 @@
1
- var Pt=Object.defineProperty;var f=(s,e)=>Pt(s,"name",{value:e,configurable:!0});import{fileURLToPath as Jt,pathToFileURL as Gt}from"node:url";import{version as Ae,transformSync as qt,transform as zt}from"esbuild";import Ht from"node:crypto";import U from"node:fs";import X from"node:path";import Xt from"node:os";import{t as Kt}from"./temporary-directory-CwHp0_NW.mjs";const Ne=f(s=>Ht.createHash("sha1").update(s).digest("hex"),"sha1"),Ie=44,Yt=59,Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$e=new Uint8Array(64),Ue=new Uint8Array(128);for(let s=0;s<Me.length;s++){const e=Me.charCodeAt(s);$e[s]=e,Ue[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 n=0;n<s.length;n++)e+=String.fromCharCode(s[n]);return e}};function Qt(s){const e=new Int32Array(5),n=[];let i=0;do{const o=Zt(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||Vt(c),n.push(c),i=o+1}while(i<=s.length);return n}f(Qt,"decode");function Zt(s,e){const n=s.indexOf(";",e);return n===-1?s.length:n}f(Zt,"indexOf");function K(s,e,n,i){let o=0,c=0,u=0;do{const g=s.charCodeAt(e++);u=Ue[g],o|=(u&31)<<c,c+=5}while(u&32);const p=o&1;return o>>>=1,p&&(o=-2147483648|-o),n[i]+=o,e}f(K,"decodeInteger");function je(s,e,n){return e>=n?!1:s.charCodeAt(e)!==Ie}f(je,"hasMoreVlq");function Vt(s){s.sort(en)}f(Vt,"sort");function en(s,e){return s[0]-e[0]}f(en,"sortComparator$1");function De(s){const e=new Int32Array(5),n=1024*16,i=n-36,o=new Uint8Array(n),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===n&&(p+=me.decode(o),u=0),o[u++]=Yt),b.length!==0){e[0]=0;for(let d=0;d<b.length;d++){const r=b[d];u>i&&(p+=me.decode(c),o.copyWithin(0,i,u),u-=i),d>0&&(o[u++]=Ie),u=Y(o,u,e,r,0),r.length!==1&&(u=Y(o,u,e,r,1),u=Y(o,u,e,r,2),u=Y(o,u,e,r,3),r.length!==4&&(u=Y(o,u,e,r,4)))}}}return p+me.decode(o.subarray(0,u))}f(De,"encode");function Y(s,e,n,i,o){const c=i[o];let u=c-n[o];n[o]=c,u=u<0?-u<<1|1:u<<1;do{let p=u&31;u>>>=5,u>0&&(p|=32),s[e++]=$e[p]}while(u>0);return e}f(Y,"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,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 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 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 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 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 tn(){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(tn,"getBtoa");const nn=tn();let rn=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,"+nn(this.toString())}};function sn(s){const e=s.split(`
2
- `),n=e.filter(c=>/^\t+/.test(c)),i=e.filter(c=>/^ {2,}/.test(c));if(n.length===0&&i.length===0)return null;if(n.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(sn,"guessIndent");function on(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("/")}f(on,"getRelativePath");const an=Object.prototype.toString;function cn(s){return an.call(s)==="[object Object]"}f(cn,"isObject");function Te(s){const e=s.split(`
3
- `),n=[];for(let i=0,o=0;i<e.length;i++)n.push(o),o+=e[i].length+1;return f(function(o){let c=0,u=n.length;for(;c<u;){const b=c+u>>1;o<n[b]?u=b:c=b+1}const p=c-1,g=o-n[p];return{line:p,column:g}},"locate")}f(Te,"getLocator");const un=/\w/;class ln{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,n,i,o){if(n.length){const c=n.length-1;let u=n.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=n.indexOf(`
5
- `,u+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,c){let u=n.start,p=!0,g=!1;for(;u<n.end;){if(this.hires||p||c.has(u)){const b=[this.generatedCodeColumn,e,o.line,o.column];this.hires==="boundary"?un.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 n=e.split(`
7
- `);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 Q=`
8
- `,J={insertLeft:!1,insertRight:!1,storeName:!1};class _e{static{f(this,"MagicString")}constructor(e,n={}){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:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new ae},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.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,n){if(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(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});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,c=o&&o.clone();c&&(i.next=c,c.previous=i,i=c),n=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 n=0,i=Object.keys(this.storedNames),o=new ln(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(n,u.content,p,u.storeName?i.indexOf(u.original):-1):o.addUneditedChunk(n,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?on(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 rn(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=sn(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 c=n.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,n){return J.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),J.insertLeft=!0),this.appendLeft(e,n)}insertRight(e,n){return J.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),J.insertRight=!0),this.prependRight(e,n)}move(e,n,i){if(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],c=this.byEnd[n],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,n,i,o){return o=o||{},this.update(e,n,i,{...o,overwrite:!o.contentOnly})}update(e,n,i,o){if(typeof i!="string")throw new TypeError("replacement content must be a string");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&&(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,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,c,!u)}else{const b=new ee(e,n,"").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,n){if(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(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){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){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(Q);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(Q),e!==-1)return i.outro.substr(e+1)+n;n=i.outro+n}if(i.content.length>0){if(e=i.content.lastIndexOf(Q),e!==-1)return i.content.substr(e+1)+n;n=i.content+n}if(i.intro.length>0){if(e=i.intro.lastIndexOf(Q),e!==-1)return i.intro.substr(e+1)+n;n=i.intro+n}}while(i=i.previous);return e=this.intro.lastIndexOf(Q),e!==-1?this.intro.substr(e+1)+n:this.intro+n}slice(e=0,n=this.original.length){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 c=o;for(;o;){o.intro&&(c!==o||o.start===e)&&(i+=o.intro);const u=o.start<n&&o.end>=n;if(u&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);const p=c===o?e-o.start:0,g=u?o.content.length+n-o.end:o.content.length;if(i+=o.content.slice(p,g),o.outro&&(!u||o.end===n)&&(i+=o.outro),u)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;const i=e>n.end;for(;n;){if(n.contains(e))return this._splitChunk(n,e);n=i?this.byStart[n.end]:this.byEnd[n.start]}}_splitChunk(e,n){if(e.edited&&e.content.length){const o=Te(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,c=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),c)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,c=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),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,n){function i(c,u){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(p,g)=>g==="$"?"$":g==="&"?c[0]:+g<c.length?c[+g]:`$${g}`):n(...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,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 c=i.indexOf(e);c!==-1;c=i.indexOf(e,c+o))i.slice(c,c+o)!==n&&this.overwrite(c,c+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)}}let v,re,ke,Z=2<<19;const Fe=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}},hn="xportmportlassforetaourceromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileifcatcfinallels";let _,We,y;function fn(s,e="@"){_=s,We=e;const n=2*_.length+(2<<18);if(n>Z||!v){for(;n>Z;)Z*=2;re=new ArrayBuffer(Z),Fe(hn,new Uint16Array(re,16,110)),v=function(u,p,g){var b=new u.Int8Array(g),d=new u.Int16Array(g),r=new u.Int32Array(g),R=new u.Uint8Array(g),L=new u.Uint16Array(g),E=1040;function N(){var t=0,a=0,h=0,l=0,w=0,m=0,C=0;C=E,E=E+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]=C+2048,r[71]=C,b[806]=0,t=(r[3]|0)+-2|0,r[72]=t,a=t+(r[66]<<1)|0,r[73]=a;e:for(;;){if(h=t+2|0,r[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)&&($(),(b[804]|0)==0)){l=9;break e}else l=17;break}case 105:{z(h)|0&&!(A(t+4|0,26,10)|0)&&W(),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,r[69]=r[72]),t=r[72]|0,a=r[73]|0}(l|0)==9?(t=r[72]|0,r[69]=t,l=19):(l|0)==16?(b[804]=0,r[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,r[72]=a,t>>>0>=(r[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)&&$(),l=91;break}case 105:{z(a)|0&&!(A(t+4|0,26,10)|0)&&W(),l=91;break}case 99:{z(a)|0&&!(A(t+4|0,36,8)|0)&&P(d[t+12>>1]|0)|0&&(b[806]=1),l=91;break}case 40:{h=r[70]|0,t=d[400]|0,l=t&65535,r[h+(l<<3)>>2]=1,a=r[69]|0,d[400]=t+1<<16>>16,r[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&&(r[(r[70]|0)+((h&65535)<<3)>>2]|0)==5&&(a=r[(r[71]|0)+(a+-1<<2)>>2]|0,h=a+4|0,r[h>>2]|0||(r[h>>2]=(r[69]|0)+2),r[a+12>>2]=t+4,d[399]=l+-1<<16>>16),l=91;break}case 123:{l=r[69]|0,h=r[63]|0,t=l;do if((d[l>>1]|0)==41&(h|0)!=0&&(r[h+4>>2]|0)==(l|0))if(a=r[64]|0,r[63]=a,a){r[a+32>>2]=0;break}else{r[59]=0;break}while(!1);h=r[70]|0,a=d[400]|0,l=a&65535,r[h+(l<<3)>>2]=b[806]|0?6:2,d[400]=a+1<<16>>16,r[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=r[70]|0,l=t+-1<<16>>16,d[400]=l,(r[h+((l&65535)<<3)>>2]|0)==4&&Ee(),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=r[69]|0,a=d[t>>1]|0;n:do if(!(kt(a)|0))a<<16>>16==41?(h=d[400]|0,xt(r[(r[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 n}else break n;case 43:if((d[t+-2>>1]|0)==43){l=64;break n}else break n;case 45:if((d[t+-2>>1]|0)==45){l=64;break n}else break n;default:break n}while(!1);(l|0)==64&&(h=d[400]|0,l=65);n:do if((l|0)==65){if(l=0,h<<16>>16&&(w=r[70]|0,m=(h&65535)+-1|0,a<<16>>16==102?(r[w+(m<<3)>>2]|0)==1:0)){if((d[t+-2>>1]|0)==111&&O(r[w+(m<<3)+4>>2]|0,44,3)|0)break}else l=69;if((l|0)==69&&a<<16>>16==125&&(l=r[70]|0,h=h&65535,mt(r[l+(h<<3)+4>>2]|0)|0||(r[l+(h<<3)>>2]|0)==6))break;if(!(pt(t)|0)){switch(a<<16>>16){case 0:break n;case 47:{if(b[805]|0)break n;break}default:}if(l=r[65]|0,l|0&&t>>>0>=(r[l>>2]|0)>>>0&&t>>>0<=(r[l+4>>2]|0)>>>0){ue(),b[805]=0,l=91;break t}h=r[3]|0;do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t,a=d[t>>1]|0}while(!(he(a)|0));if(ne(a)|0){do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t}while(ne(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=r[70]|0,a=d[400]|0,l=a&65535,r[h+(l<<3)+4>>2]=r[69],d[400]=a+1<<16>>16,r[h+(l<<3)>>2]=3,Ee(),l=91;break}default:l=91}while(!1);(l|0)==91&&(l=0,r[69]=r[72]),t=r[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 E=C,t|0}f(N,"b");function $(){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=r[72]|0,ge=r[65]|0,x=T+12|0,r[72]=x,h=k(1)|0,t=r[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(r[72]=t+2,t=k(1)|0,a=r[72]|0;;){if(H(t)|0?(I(t),t=(r[72]|0)+2|0,r[72]=t):(j(t)|0,t=r[72]|0),k(1)|0,t=Le(a,t)|0,t<<16>>16==44&&(r[72]=(r[72]|0)+2,t=k(1)|0),t<<16>>16==125){S=15;break}if(x=a,a=r[72]|0,(a|0)==(x|0)){S=12;break}if(a>>>0>(r[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,r[72]=(r[72]|0)+2;break t}break}case 42:{r[72]=t+2,k(1)|0,x=r[72]|0,Le(x,x)|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:{a=r[72]|0,!(A(a+2|0,72,8)|0)&&(w=a+10|0,ne(d[w>>1]|0)|0)&&(r[72]=w,k(0)|0,S=22);break}case 102:{S=22;break}case 99:{a=r[72]|0,!(A(a+2|0,36,8)|0)&&(l=a+10|0,x=d[l>>1]|0,P(x)|0|x<<16>>16==123)&&(r[72]=l,m=k(1)|0,m<<16>>16!=123)&&(we=m,S=31);break}default:}n:do if((S|0)==22&&(C=r[72]|0,(A(C+2|0,80,14)|0)==0)){if(h=C+16|0,a=d[h>>1]|0,!(P(a)|0))switch(a<<16>>16){case 40:case 42:break;default:break n}r[72]=h,a=k(1)|0,a<<16>>16==42&&(r[72]=(r[72]|0)+2,a=k(1)|0),a<<16>>16!=40&&(we=a,S=31)}while(!1);if((S|0)==31&&(be=r[72]|0,j(we)|0,pe=r[72]|0,pe>>>0>be>>>0)){B(t,T,be,pe),r[72]=(r[72]|0)+-2;break e}B(t,T,0,0),r[72]=t+12;break e}case 97:{r[72]=t+10,k(0)|0,t=r[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)){r[72]=a,x=k(1)|0,S=r[72]|0,j(x)|0,x=r[72]|0,B(S,x,S,x),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((S|0)==35){r[72]=t+16,t=k(1)|0,t<<16>>16==42&&(r[72]=(r[72]|0)+2,t=k(1)|0),S=r[72]|0,j(t)|0,x=r[72]|0,B(S,x,S,x),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,l=r[72]|0,h&&(r[72]=l+2,x=k(1)|0,t=r[72]|0,j(x)|0);n:for(;a=r[72]|0,(a|0)!=(t|0);){if(B(t,a,t,a),a=k(1)|0,h)switch(a<<16>>16){case 93:case 125:break e;default:}if(t=r[72]|0,a<<16>>16!=44){S=51;break}switch(r[72]=t+2,a=k(1)|0,t=r[72]|0,a<<16>>16){case 91:case 123:{S=51;break n}default:}j(a)|0}if((S|0)==51&&(r[72]=t+-2),!h)break e;r[72]=l+-2;break e}}while(!1);if(x=(k(1)|0)<<16>>16==102,t=r[72]|0,x&&!(A(t+2|0,66,6)|0))for(r[72]=t+8,G(T,k(1)|0,0),t=ge|0?ge+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)}f($,"k");function W(){var t=0,a=0,h=0,l=0,w=0,m=0,C=0;w=r[72]|0,h=w+12|0,r[72]=h,l=k(1)|0,a=r[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,P(d[t>>1]|0)|0)?m=14:(a=6,h=0,m=46):(t=l,h=0,m=15);else switch(r[72]=a+2,(k(1)|0)<<16>>16){case 109:{if(t=r[72]|0,A(t+2|0,50,6)|0||(a=r[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=r[72]|0,A(t+2|0,56,10)|0||(a=r[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&&(r[72]=t,t=k(1)|0,h=1,m=15);e:do if((m|0)==15)switch(t<<16>>16){case 40:{if(a=r[70]|0,C=d[400]|0,l=C&65535,r[a+(l<<3)>>2]=5,t=r[72]|0,d[400]=C+1<<16>>16,r[a+(l<<3)+4>>2]=t,(d[r[69]>>1]|0)==46)break e;switch(r[72]=t+2,a=k(1)|0,ce(w,r[72]|0,0,t),h?(t=r[63]|0,r[t+28>>2]=5):t=r[63]|0,w=r[71]|0,C=d[399]|0,d[399]=C+1<<16>>16,r[w+((C&65535)<<2)>>2]=t,a<<16>>16){case 39:{I(39);break}case 34:{I(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,w=r[63]|0,r[w+4>>2]=t,C=r[72]|0,r[w+16>>2]=C,b[w+24>>0]=1,r[72]=C+-2;break e}case 41:{d[400]=(d[400]|0)+-1<<16>>16,C=r[63]|0,r[C+4>>2]=t,r[C+12>>2]=(r[72]|0)+2,b[C+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){a=12,h=1,m=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,H(t)|0)I(t);else if(t<<16>>16==125){m=36;break}t=(r[72]|0)+2|0,r[72]=t}if((m|0)==36&&(r[72]=(r[72]|0)+2),C=(k(1)|0)<<16>>16==102,t=r[72]|0,C&&A(t+2|0,66,6)|0){M();break e}if(r[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=r[72]|0,(t|0)==(w+(a<<1)|0)?r[72]=t+-2:m=48);do if((m|0)==48){if(d[400]|0){r[72]=(r[72]|0)+-2;break}for(t=r[73]|0,a=r[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,r[72]=C,a=C}if((m|0)==53){G(w,l,h);break}else if((m|0)==55){M();break}}while(!1)}f(W,"l");function G(t,a,h){t=t|0,a=a|0,h=h|0;var l=0,w=0;switch(l=(r[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,r[72]|0,1),h&&(r[(r[63]|0)+28>>2]=4),r[72]=(r[72]|0)+2,a=k(0)|0,h=a<<16>>16==97,h?(l=r[72]|0,A(l+2|0,94,10)|0&&(w=13)):(l=r[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){r[72]=l+-2;break}if(r[72]=l+((h?6:4)<<1),(k(1)|0)<<16>>16!=123){r[72]=l;break}h=r[72]|0,a=h;e:for(;;){switch(r[72]=a+2,a=k(1)|0,a<<16>>16){case 39:{I(39),r[72]=(r[72]|0)+2,a=k(1)|0;break}case 34:{I(34),r[72]=(r[72]|0)+2,a=k(1)|0;break}default:a=j(a)|0}if(a<<16>>16!=58){w=22;break}switch(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16){case 39:{I(39);break}case 34:{I(34);break}default:{w=26;break e}}switch(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16){case 125:{w=31;break e}case 44:break;default:{w=30;break e}}if(r[72]=(r[72]|0)+2,(k(1)|0)<<16>>16==125){w=31;break}a=r[72]|0}if((w|0)==22){r[72]=l;break}else if((w|0)==26){r[72]=l;break}else if((w|0)==30){r[72]=l;break}else if((w|0)==31){w=r[63]|0,r[w+16>>2]=h,r[w+12>>2]=(r[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=O(t+-4|0,104,2)|0;break e}case 108:{t=O(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=O(t+-4|0,114,4)|0;break e}case 117:{t=O(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=O(t+-8|0,134,6)|0;break e}case 112:{t=O(t+-8|0,146,2)|0;break e}default:{t=0;break e}}else t=0;break}case 107:{t=O(t+-2|0,150,4)|0;break}case 110:{t=t+-2|0,q(t,105)|0?t=1:t=O(t,158,5)|0;break}case 111:{t=q(t+-2|0,100)|0;break}case 114:{t=O(t+-2|0,168,7)|0;break}case 116:{t=O(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=O(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 Ee(){var t=0,a=0,h=0,l=0;a=r[73]|0,h=r[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,r[72]=t,a=r[70]|0,l=d[400]|0,h=l&65535,r[a+(h<<3)>>2]=4,d[400]=l+1<<16>>16,r[a+(h<<3)+4>>2]=t):(a|0)==7?(r[72]=t,h=r[70]|0,l=(d[400]|0)+-1<<16>>16,d[400]=l,(r[h+((l&65535)<<3)>>2]|0)!=3&&M()):(a|0)==10&&(r[72]=t,M())}f(Ee,"h");function k(t){t=t|0;var a=0,h=0,l=0;h=r[72]|0;e:do{a=d[h>>1]|0;t:do if(a<<16>>16!=47)if(t){if(P(a)|0)break;break e}else{if(ne(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=r[72]|0,h=l+2|0,r[72]=h}while(l>>>0<(r[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=r[67]|0,r[67]=m+36,w=r[63]|0,r[(w|0?w+32|0:236)>>2]=m,r[64]=w,r[63]=m,r[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),r[m+12>>2]=w,r[m+28>>2]=t,r[m>>2]=a,r[m+4>>2]=h,r[m+16>>2]=0,r[m+20>>2]=l,a=(l|0)==1,b[m+24>>0]=a&1,r[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=r[73]|0,a=r[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?(r[72]=l,M()):(a|0)==10&&(r[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=r[72]|0,l=d[h>>1]|0,m=(t|0)==(a|0),w=m?0:t,m=m?0:a,l<<16>>16==97&&(r[72]=h+4,h=k(1)|0,t=r[72]|0,H(h)|0?(I(h),a=(r[72]|0)+2|0,r[72]=a):(j(h)|0,a=r[72]|0),l=k(1)|0,h=r[72]|0),(h|0)!=(t|0)&&B(t,a,w,m),l|0}f(Le,"A");function wt(){var t=0,a=0,h=0;h=r[73]|0,a=r[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?(r[72]=t,M(),t=0):(a|0)==7&&(r[72]=t,t=93),t|0}f(wt,"C");function ue(){var t=0,a=0,h=0;e:for(;;){if(t=r[72]|0,a=t+2|0,r[72]=a,t>>>0>=(r[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:{r[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=O(t+-2|0,210,4)|0;break}case 121:{t=O(t+-2|0,218,6)|0;break}case 101:{t=O(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=(r[72]|0)+2|0,r[72]=w,h=r[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&&(r[72]=a,a=w+4|0),r[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=E,E=E+16|0,l=h,r[l>>2]=0,r[66]=t,a=r[3]|0,w=a+(t<<1)|0,t=w+2|0,d[w>>1]=0,r[l>>2]=t,r[67]=t,r[59]=0,r[63]=0,r[61]=0,r[60]=0,r[65]=0,r[62]=0,E=h,a|0}f(yt,"S");function B(t,a,h,l){t=t|0,a=a|0,h=h|0,l=l|0;var w=0,m=0;w=r[67]|0,r[67]=w+20,m=r[65]|0,r[(m|0?m+16|0:240)>>2]=w,r[65]=w,r[w>>2]=t,r[w+4>>2]=a,r[w+8>>2]=h,r[w+12>>2]=l,r[w+16>>2]=0,b[803]=1}f(B,"O");function O(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=r[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(O,"$");function Ct(t){switch(t=t|0,d[t>>1]|0){case 107:{t=O(t+-2|0,150,4)|0;break}case 101:{(d[t+-2>>1]|0)==117?t=O(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=r[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=r[73]|0,h=r[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}r[72]=a}f(fe,"P");function j(t){for(t=t|0;!(P(t)|0||te(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}f(j,"q");function St(){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}f(St,"z");function xt(t){return t=t|0,!(O(t,196,5)|0)&&!(O(t,44,3)|0)?t=O(t,206,2)|0:t=1,t|0}f(xt,"D");function ne(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(ne,"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,(r[3]|0)==(t|0)?t=1:t=Oe(t+-2|0)|0,t|0}f(z,"H");function vt(){var t=0;return t=r[(r[62]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(vt,"J");function _t(){var t=0;return t=r[(r[61]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(_t,"K");function Et(){var t=0;return t=r[(r[62]|0)+8>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Et,"L");function Lt(){var t=0;return t=r[(r[61]|0)+16>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Lt,"M");function Ot(){var t=0;return t=r[(r[61]|0)+4>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}f(Ot,"N");function Rt(){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}f(Rt,"Q");function At(){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}f(At,"R");function M(){b[802]=1,r[68]=(r[72]|0)-(r[3]|0)>>1,r[72]=(r[73]|0)+2}f(M,"T");function P(t){return t=t|0,(t|128)<<16>>16==160|(t+-9&65535)<5|0}f(P,"V");function H(t){return t=t|0,t<<16>>16==39|t<<16>>16==34|0}f(H,"W");function Nt(){return(r[(r[61]|0)+8>>2]|0)-(r[3]|0)>>1|0}f(Nt,"X");function It(){return(r[(r[62]|0)+4>>2]|0)-(r[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(r[r[61]>>2]|0)-(r[3]|0)>>1|0}f(Mt,"_");function $t(){return(r[r[62]>>2]|0)-(r[3]|0)>>1|0}f($t,"ee");function Ut(){return R[(r[61]|0)+24>>0]|0|0}f(Ut,"ae");function jt(t){t=t|0,r[3]=t}f(jt,"re");function Dt(){return r[(r[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 Wt(){return r[68]|0}f(Wt,"te");function Bt(t){return t=t|0,E=t+992+15&-16,992}return f(Bt,"ce"),{su:Bt,ai:Lt,e:Wt,ee:It,ele:vt,els:Et,es:$t,f:Ft,id:St,ie:Ot,ip:Ut,is:Mt,it:Dt,ms:Tt,p:N,re:At,ri:Rt,sa:yt,se:_t,ses:jt,ss:Nt}}(typeof self<"u"?self:global,{},re),ke=v.su(Z-(2<<17))}const i=_.length+1;v.ses(ke),v.sa(i-1),Fe(_,new Uint16Array(re,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(),r=v.se(),R=v.it();let L;v.ip()&&(L=ye(b===-1?u:u+1,_.charCodeAt(b===-1?u-1:u))),o.push({t:R,n:L,s:u,e:p,ss:d,se:r,d:b,a:g})}for(;v.re();){const u=v.es(),p=v.ee(),g=v.els(),b=v.ele(),d=_.charCodeAt(u),r=g>=0?_.charCodeAt(g):-1;c.push({s:u,e:p,ls:g,le:b,n:d===34||d===39?ye(u+1,d):_.slice(u,p),ln:g<0?void 0:r===34||r===39?ye(g+1,r):_.slice(g,b)})}return[o,c,!!v.f(),!!v.ms()]}f(fn,"parse");function ye(s,e){y=s;let n="",i=y;for(;;){y>=_.length&&D();const o=_.charCodeAt(y);if(o===e)break;o===92?(n+=_.slice(i,y),n+=dn(),i=y):(o===8232||o===8233||Be(o)&&D(),++y)}return n+=_.slice(i,y++),n}f(ye,"b");function dn(){let s=_.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=_.charCodeAt(y);let n;return e===123?(++y,n=Ce(_.indexOf("}",y)-y),++y,n>1114111&&D()):n=Ce(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:_.charCodeAt(y)===10&&++y;case 10:return"";case 56:case 57:D();default:if(s>=48&&s<=55){let e=_.substr(y-1,3).match(/^[0-7]+/)[0],n=parseInt(e,8);return n>255&&(e=e.slice(0,-1),n=parseInt(e,8)),y+=e.length-1,s=_.charCodeAt(y),e==="0"&&s!==56&&s!==57||D(),String.fromCharCode(n)}return Be(s)?"":String.fromCharCode(s)}}f(dn,"k");function Ce(s){const e=y;let n=0,i=0;for(let o=0;o<s;++o,++y){let c,u=_.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,n=16*n+c}else i!==95&&o!==0||D(),i=u}return i!==95&&y-e===s||D(),n}f(Ce,"l");function Be(s){return s===13||s===10}f(Be,"u");function D(){throw Object.assign(Error(`Parse error ${We}:${_.slice(0,y).split(`
12
- `).length}:${y-_.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 Pe=f((s,e)=>Se?Se(s,e):fn(s,e),"parseEsm"),gn=f(s=>{if(!s.includes("import")&&!s.includes("export"))return!1;try{return Pe(s)[3]}catch{return!0}},"isESM"),Je="2",bn=(s=>{const e="default";return s[e]&&typeof s[e]=="object"&&"__esModule"in s[e]?s[e]:s}).toString(),pn=`.then(${bn})`,xe=f((s,e,n)=>{if(n){if(!e.includes("import("))return}else if(!e.includes("import"))return;const o=Pe(e,s)[0].filter(g=>g.d>-1);if(o.length===0)return;const c=new _e(e);for(const g of o)c.appendRight(g.se,pn);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=U.readFileSync(s,"utf8");return JSON.parse(e)}catch{}},"readJsonFile"),qe=f(()=>{},"noop"),ze=f(()=>Math.floor(Date.now()/1e8),"getTime");class wn extends Map{static{f(this,"FileCache")}cacheDirectory=Kt;oldCacheDirectory=X.join(Xt.tmpdir(),"tsx");cacheFiles;constructor(){super(),U.mkdirSync(this.cacheDirectory,{recursive:!0}),this.cacheFiles=U.readdirSync(this.cacheDirectory).map(e=>{const[n,i]=e.split("-");return{time:Number(n),key:i,fileName:e}}),setImmediate(()=>{this.expireDiskCache(),this.removeOldCacheDirectory()})}get(e){const n=super.get(e);if(n)return n;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){U.promises.unlink(o).then(()=>{const u=this.cacheFiles.indexOf(i);this.cacheFiles.splice(u,1)},()=>{});return}return super.set(e,c),c}set(e,n){if(super.set(e,n),n){const i=ze();U.promises.writeFile(X.join(this.cacheDirectory,`${i}-${e}`),JSON.stringify(n)).catch(qe)}return this}expireDiskCache(){const e=ze();for(const n of this.cacheFiles)e-n.time>7&&U.promises.unlink(X.join(this.cacheDirectory,n.fileName)).catch(qe)}async removeOldCacheDirectory(){try{await U.promises.access(this.oldCacheDirectory).then(()=>!0)&&("rm"in U.promises?await U.promises.rm(this.oldCacheDirectory,{recursive:!0,force:!0}):await U.promises.rmdir(this.oldCacheDirectory,{recursive:!0}))}catch{}}}var ie=process.env.TSX_DISABLE_CACHE?new Map:new wn;const mn=/^[\w+.-]+:\/\//,kn=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,yn=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function Cn(s){return mn.test(s)}f(Cn,"isAbsoluteUrl");function Sn(s){return s.startsWith("//")}f(Sn,"isSchemeRelativeUrl");function He(s){return s.startsWith("/")}f(He,"isAbsolutePath");function xn(s){return s.startsWith("file:")}f(xn,"isFileUrl");function Xe(s){return/^[.?#]/.test(s)}f(Xe,"isRelative");function se(s){const e=kn.exec(s);return Ke(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}f(se,"parseAbsoluteUrl");function vn(s){const e=yn.exec(s),n=e[2];return Ke("file:","",e[1]||"","",He(n)?n:"/"+n,e[3]||"",e[4]||"")}f(vn,"parseFileUrl");function Ke(s,e,n,i,o,c,u){return{scheme:s,user:e,host:n,port:i,path:o,query:c,hash:u,type:7}}f(Ke,"makeUrl");function Ye(s){if(Sn(s)){const n=se("http:"+s);return n.scheme="",n.type=6,n}if(He(s)){const n=se("http://foo.com"+s);return n.scheme="",n.host="",n.type=5,n}if(xn(s))return vn(s);if(Cn(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(Ye,"parseUrl");function _n(s){if(s.endsWith("/.."))return s;const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(_n,"stripPathFilename");function En(s,e){Qe(e,e.type),s.path==="/"?s.path=e.path:s.path=_n(e.path)+s.path}f(En,"mergePaths");function Qe(s,e){const n=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--):n&&(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(Qe,"normalizePath");function Ln(s,e){if(!s&&!e)return"";const n=Ye(s);let i=n.type;if(e&&i!==7){const c=Ye(e),u=c.type;switch(i){case 1:n.hash=c.hash;case 2:n.query=c.query;case 3:case 4:En(n,c);case 5:n.user=c.user,n.host=c.host,n.port=c.port;case 6:n.scheme=c.scheme}u>i&&(i=u)}Qe(n,i);const o=n.query+n.hash;switch(i){case 2:case 3:return o;case 4:{const c=n.path.slice(1);return c?Xe(e||s)&&!Xe(c)?"./"+c+o:c+o:o||"."}case 5:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}f(Ln,"resolve$1");function Ze(s,e){return e&&!e.endsWith("/")&&(e+="/"),Ln(s,e)}f(Ze,"resolve");function On(s){if(!s)return"";const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(On,"stripFilename");const F=0;function Rn(s,e){const n=Ve(s,0);if(n===s.length)return s;e||(s=s.slice());for(let i=n;i<s.length;i=Ve(s,i+1))s[i]=Nn(s[i],e);return s}f(Rn,"maybeSort");function Ve(s,e){for(let n=e;n<s.length;n++)if(!An(s[n]))return n;return s.length}f(Ve,"nextUnsortedSegmentLine");function An(s){for(let e=1;e<s.length;e++)if(s[e][F]<s[e-1][F])return!1;return!0}f(An,"isSorted");function Nn(s,e){return e||(s=s.slice()),s.sort(In)}f(Nn,"sortSegments");function In(s,e){return s[F]-e[F]}f(In,"sortComparator");let oe=!1;function Mn(s,e,n,i){for(;n<=i;){const o=n+(i-n>>1),c=s[o][F]-e;if(c===0)return oe=!0,o;c<0?n=o+1:i=o-1}return oe=!1,n-1}f(Mn,"binarySearch");function $n(s,e,n){for(let i=n-1;i>=0&&s[i][F]===e;n=i--);return n}f($n,"lowerBound");function Un(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}f(Un,"memoizedState");function jn(s,e,n,i){const{lastKey:o,lastNeedle:c,lastIndex:u}=n;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 n.lastKey=i,n.lastNeedle=e,n.lastIndex=Mn(s,e,p,g)}f(jn,"memoizedBinarySearch");class et{static{f(this,"TraceMap")}constructor(e,n){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 r=Ze(g||"",On(n));this.resolvedSources=b.map(L=>Ze(L||"",r));const{mappings:R}=o;typeof R=="string"?(this._encoded=R,this._decoded=void 0):(this._encoded=void 0,this._decoded=Rn(R,i)),this._decodedMemo=Un(),this._bySources=void 0,this._bySourceMemos=void 0}}function vr(s){return s}f(vr,"cast$2");function tt(s){var e;return(e=s)._decoded||(e._decoded=Qt(s._encoded))}f(tt,"decodedMappings");function Dn(s,e,n){const i=tt(s);if(e>=i.length)return null;const o=i[e],c=Tn(o,s._decodedMemo,e,n);return c===-1?null:o[c]}f(Dn,"traceSegment");function Tn(s,e,n,i,o){let c=jn(s,i,e,n);return oe&&(c=$n(s,i,c)),c===-1||c===s.length?-1:c}f(Tn,"traceSegmentInternal");class ve{static{f(this,"SetArray")}constructor(){this._indexes={__proto__:null},this.array=[]}}function _r(s){return s}f(_r,"cast$1");function nt(s,e){return s._indexes[e]}f(nt,"get");function V(s,e){const n=nt(s,e);if(n!==void 0)return n;const{array:i,_indexes:o}=s,c=i.push(e);return o[e]=c-1}f(V,"put");function Fn(s,e){const n=nt(s,e);if(n===void 0)return;const{array:i,_indexes:o}=s;for(let c=n+1;c<i.length;c++){const u=i[c];i[c-1]=u,o[u]--}o[e]=void 0,i.pop()}f(Fn,"remove");const Wn=0,Bn=1,Pn=2,Jn=3,Gn=4,rt=-1;class qn{static{f(this,"GenMapping")}constructor({file:e,sourceRoot:n}={}){this._names=new ve,this._sources=new ve,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new ve}}function Er(s){return s}f(Er,"cast");const zn=f((s,e,n,i,o,c,u,p)=>Yn(!0,s,e,n,i,o,c,u),"maybeAddSegment");function Hn(s,e,n){const{_sources:i,_sourcesContent:o}=s,c=V(i,e);o[c]=n}f(Hn,"setSourceContent");function Xn(s,e,n=!0){const{_sources:i,_sourcesContent:o,_ignoreList:c}=s,u=V(i,e);u===o.length&&(o[u]=null),n?V(c,u):Fn(c,u)}f(Xn,"setIgnore");function it(s){const{_mappings:e,_sources:n,_sourcesContent:i,_names:o,_ignoreList:c}=s;return Vn(e),{version:3,file:s.file||void 0,names:o.array,sourceRoot:s.sourceRoot||void 0,sources:n.array,sourcesContent:i,mappings:e,ignoreList:c.array}}f(it,"toDecodedMap");function Kn(s){const e=it(s);return Object.assign(Object.assign({},e),{mappings:De(e.mappings)})}f(Kn,"toEncodedMap");function Yn(s,e,n,i,o,c,u,p,g){const{_mappings:b,_sources:d,_sourcesContent:r,_names:R}=e,L=Qn(b,n),E=Zn(L,i);if(!o)return er(L,E)?void 0:st(L,E,[i]);const N=V(d,o),$=p?V(R,p):rt;if(N===r.length&&(r[N]=null),!tr(L,E,N,c,u,$))return st(L,E,p?[i,N,c,u,$]:[i,N,c,u])}f(Yn,"addSegmentInternal");function Qn(s,e){for(let n=s.length;n<=e;n++)s[n]=[];return s[e]}f(Qn,"getLine");function Zn(s,e){let n=s.length;for(let i=n-1;i>=0;n=i--){const o=s[i];if(e>=o[Wn])break}return n}f(Zn,"getColumnIndex");function st(s,e,n){for(let i=s.length;i>e;i--)s[i]=s[i-1];s[e]=n}f(st,"insert");function Vn(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)}f(Vn,"removeEmptyFinalLines");function er(s,e){return e===0?!0:s[e-1].length===1}f(er,"skipSourceless");function tr(s,e,n,i,o,c){if(e===0)return!1;const u=s[e-1];return u.length===1?!1:n===u[Bn]&&i===u[Pn]&&o===u[Jn]&&c===(u.length===5?u[Gn]:rt)}f(tr,"skipSource");const ot=at("",-1,-1,"",null,!1),nr=[];function at(s,e,n,i,o,c){return{source:s,line:e,column:n,name:i,content:o,ignore:c}}f(at,"SegmentObject");function ct(s,e,n,i,o){return{map:s,sources:e,source:n,content:i,ignore:o}}f(ct,"Source");function ut(s,e){return ct(s,e,"",null,!1)}f(ut,"MapSource");function rr(s,e,n){return ct(null,nr,s,e,n)}f(rr,"OriginalSource");function ir(s){const e=new qn({file:s.map.file}),{sources:n,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 r=ot;if(b.length!==1){const G=n[b[1]];if(r=lt(G,b[2],b[3],b.length===5?o[b[4]]:""),r==null)continue}const{column:R,line:L,name:E,content:N,source:$,ignore:W}=r;zn(e,u,d,$,L,R,E),$&&N!=null&&Hn(e,$,N),W&&Xn(e,$,!0)}}return e}f(ir,"traceMappings");function lt(s,e,n,i){if(!s.map)return at(s.source,e,n,i,s.content,s.ignore);const o=Dn(s.map,e,n);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 sr(s){return Array.isArray(s)?s:[s]}f(sr,"asArray");function or(s,e){const n=sr(s).map(c=>new et(c,"")),i=n.pop();for(let c=0;c<n.length;c++)if(n[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=n.length-1;c>=0;c--)o=ut(n[c],[o]);return o}f(or,"buildSourceMapTree");function ht(s,e,n,i){const{resolvedSources:o,sourcesContent:c,ignoreList:u}=s,p=i+1,g=o.map((b,d)=>{const r={importer:n,depth:p,source:b||"",content:void 0,ignore:void 0},R=e(r.source,r),{source:L,content:E,ignore:N}=r;if(R)return ht(new et(R,L),e,L,p);const $=E!==void 0?E:c?c[d]:null,W=N!==void 0?N:u?u.includes(d):!1;return rr(L,$,W)});return ut(s,g)}f(ht,"build");class ar{static{f(this,"SourceMap")}constructor(e,n){const i=n.decodedMappings?it(e):Kn(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 ft(s,e,n){const i={excludeContent:!!n,decodedMappings:!1},o=or(s,e);return new ar(ir(o),i)}f(ft,"remapping");const cr=f((s,e,n)=>{const i=[],o={code:e};for(const c of n){const u=c(s,o.code);u&&(Object.assign(o,u),i.unshift(u.map))}return{...o,map:ft(i,()=>null)}},"applyTransformersSync"),ur=f(async(s,e,n)=>{const i=[],o={code:e};for(const c of n){const u=await c(s,o.code);u&&(Object.assign(o,u),i.unshift(u.map))}return{...o,map:ft(i,()=>null)}},"applyTransformers"),lr=Object.freeze({target:`node${process.versions.node}`,loader:"default"}),hr=/^--inspect(?:-brk|-port|-publish-uid|-wait)?(?:=|$)/,fr=process.execArgv.some(s=>hr.test(s)),dt={...lr,sourcemap:!0,sourcesContent:!!process.env.NODE_V8_COVERAGE||fr,minifyWhitespace:!0,keepNames:!0},gt=f(s=>{const e=s.sourcefile;if(e){const n=X.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"),bt=f(s=>{throw s.name="TransformError",delete s.errors,delete s.warnings,s},"formatEsbuildError"),dr=f((s,e,n)=>{const i={};let o,c,u;if(e.startsWith("file://")){o=e;const d=new URL(e);c=Jt(d)}else[c,u]=e.split("?"),o=Gt(c)+(u?`?${u}`:"");c.endsWith(".cjs")||c.endsWith(".cts")||(i["import.meta.url"]=JSON.stringify(o));const p={...dt,format:"cjs",sourcefile:c,define:i,banner:`__filename=${JSON.stringify(c)};(()=>{`,footer:"})()",platform:"node",...n},g=Ne([s,JSON.stringify(p),Ae,Je].join("-"));let b=ie.get(g);return b||(b=cr(e,s,[(d,r)=>{const R=gt(p);let L;try{L=qt(r,p)}catch(E){throw bt(E)}return R(L)},(d,r)=>xe(d,r,!0)]),ie.set(g,b)),b},"transformSync"),gr=f(async(s,e,n)=>{const i={...dt,format:"esm",sourcefile:e,...n},o=Ne([s,JSON.stringify(i),Ae,Je].join("-"));let c=ie.get(o);return c||(c=await ur(e,s,[async(u,p)=>{const g=gt(i);let b;try{b=await zt(p,i)}catch(d){throw bt(d)}return g(b)},(u,p)=>xe(u,p,!0)]),ie.set(o,c)),c},"transform");export{dr as a,xe as b,gn as i,Ge as r,gr as t};
@@ -1,14 +0,0 @@
1
- "use strict";var Bt=Object.defineProperty;var f=(s,e)=>Bt(s,"name",{value:e,configurable:!0});var Ne=require("node:url"),ne=require("esbuild"),Jt=require("node:crypto"),j=require("node:fs"),X=require("node:path"),Gt=require("node:os"),zt=require("./temporary-directory-B83uKxJF.cjs");const Ie=f(s=>Jt.createHash("sha1").update(s).digest("hex"),"sha1"),Me=44,Ht=59,Ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",je=new Uint8Array(64),$e=new Uint8Array(128);for(let s=0;s<Ue.length;s++){const e=Ue.charCodeAt(s);je[s]=e,$e[e]=s}const ke=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 Xt(s){const e=new Int32Array(5),r=[];let i=0;do{const o=Kt(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,De(s,g,o)?(g=K(s,g,e,1),g=K(s,g,e,2),g=K(s,g,e,3),De(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||Yt(c),r.push(c),i=o+1}while(i<=s.length);return r}f(Xt,"decode");function Kt(s,e){const r=s.indexOf(";",e);return r===-1?s.length:r}f(Kt,"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 De(s,e,r){return e>=r?!1:s.charCodeAt(e)!==Me}f(De,"hasMoreVlq");function Yt(s){s.sort(Qt)}f(Yt,"sort");function Qt(s,e){return s[0]-e[0]}f(Qt,"sortComparator$1");function Te(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+=ke.decode(o),u=0),o[u++]=Ht),b.length!==0){e[0]=0;for(let d=0;d<b.length;d++){const n=b[d];u>i&&(p+=ke.decode(c),o.copyWithin(0,i,u),u-=i),d>0&&(o[u++]=Me),u=Y(o,u,e,n,0),n.length!==1&&(u=Y(o,u,e,n,1),u=Y(o,u,e,n,2),u=Y(o,u,e,n,3),n.length!==4&&(u=Y(o,u,e,n,4)))}}}return p+ke.decode(o.subarray(0,u))}f(Te,"encode");function Y(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++]=je[p]}while(u>0);return e}f(Y,"encodeInteger");class ce{static{f(this,"BitSet")}constructor(e){this.bits=e instanceof ce?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 Zt(){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(Zt,"getBtoa");const Vt=Zt();let er=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=Te(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,"+Vt(this.toString())}};function tr(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(tr,"guessIndent");function rr(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(rr,"getRelativePath");const nr=Object.prototype.toString;function ir(s){return nr.call(s)==="[object Object]"}f(ir,"isObject");function Fe(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(Fe,"getLocator");const sr=/\w/;class or{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"?sr.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 Q=`
8
- `,B={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 ce},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 ce(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 or(e.hires),c=Fe(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?rr(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 er(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=tr(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(ir(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 B.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),B.insertLeft=!0),this.appendLeft(e,r)}insertRight(e,r){return B.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),B.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&&(B.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),B.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(Q);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(Q),e!==-1)return i.outro.substr(e+1)+r;r=i.outro+r}if(i.content.length>0){if(e=i.content.lastIndexOf(Q),e!==-1)return i.content.substr(e+1)+r;r=i.content+r}if(i.intro.length>0){if(e=i.intro.lastIndexOf(Q),e!==-1)return i.intro.substr(e+1)+r;r=i.intro+r}}while(i=i.previous);return e=this.intro.lastIndexOf(Q),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=Fe(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 x,ie,ye,Z=2<<19;const Pe=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}},ar="xportmportlassforetaourceromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileifcatcfinallels";let _,We,y;function cr(s,e="@"){_=s,We=e;const r=2*_.length+(2<<18);if(r>Z||!x){for(;r>Z;)Z*=2;ie=new ArrayBuffer(Z),Pe(ar,new Uint16Array(ie,16,110)),x=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),E=1040;function N(){var t=0,a=0,h=0,l=0,w=0,m=0,C=0;C=E,E=E+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:{de();break t}case 42:{he(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)&&q(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&&Le(),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:{de();break t}case 42:{he(1);break t}default:{t=n[69]|0,a=d[t>>1]|0;r:do if(!(yt(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&&O(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,kt(n[l+(h<<3)+4>>2]|0)|0||(n[l+(h<<3)>>2]|0)==6))break;if(!(wt(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){le(),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(!(fe(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(St(t)|0){le(),b[805]=0,l=91;break t}}b[805]=1,l=91;break t}}while(!1);le(),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,Le(),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 E=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,be=0,pe=0,we=0,me=0,S=0,v=0;T=n[72]|0,be=n[65]|0,v=T+12|0,n[72]=v,h=k(1)|0,t=n[72]|0,(t|0)==(v|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):($(t)|0,t=n[72]|0),k(1)|0,t=Oe(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(v=a,a=n[72]|0,(a|0)==(v|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,v=n[72]|0,Oe(v,v)|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,v=d[l>>1]|0,q(v)|0|v<<16>>16==123)&&(n[72]=l,m=k(1)|0,m<<16>>16!=123)&&(me=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,!(q(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&&(me=a,S=31)}while(!1);if((S|0)==31&&(pe=n[72]|0,$(me)|0,we=n[72]|0,we>>>0>pe>>>0)){W(t,T,pe,we),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,fe(d[a>>1]|0)|0)){n[72]=a,v=k(1)|0,S=n[72]|0,$(v)|0,v=n[72]|0,W(S,v,S,v),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,$(t)|0,v=n[72]|0,W(S,v,S,v),n[72]=(n[72]|0)+-2;break e}n[72]=t+6,b[804]=0,h=k(1)|0,t=n[72]|0,h=($(h)|0|32)<<16>>16==123,l=n[72]|0,h&&(n[72]=l+2,v=k(1)|0,t=n[72]|0,$(v)|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:}$(a)|0}if((S|0)==51&&(n[72]=t+-2),!h)break e;n[72]=l+-2;break e}}while(!1);if(v=(k(1)|0)<<16>>16==102,t=n[72]|0,v&&!(A(t+2|0,66,6)|0))for(n[72]=t+8,J(T,k(1)|0,0),t=be|0?be+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,q(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,!(ge(a)|0)&&(d[a>>1]|0)==46))break e;ue(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,!(ge(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,ue(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){J(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){J(w,l,h);break}else if((m|0)==55){M();break}}while(!1)}f(P,"l");function J(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(ue(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=$(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(J,"u");function wt(t){t=t|0;e:do switch(d[t>>1]|0){case 100:switch(d[t+-2>>1]|0){case 105:{t=O(t+-4|0,104,2)|0;break e}case 108:{t=O(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=O(t+-4|0,114,4)|0;break e}case 117:{t=O(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=O(t+-8|0,134,6)|0;break e}case 112:{t=O(t+-8|0,146,2)|0;break e}default:{t=0;break e}}else t=0;break}case 107:{t=O(t+-2|0,150,4)|0;break}case 110:{t=t+-2|0,G(t,105)|0?t=1:t=O(t,158,5)|0;break}case 111:{t=G(t+-2|0,100)|0;break}case 114:{t=O(t+-2|0,168,7)|0;break}case 116:{t=O(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=O(t+-4|0,190,3)|0;break e}default:{t=0;break e}}default:t=0}while(!1);return t|0}f(wt,"o");function Le(){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(Le,"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(q(a)|0)break;break e}else{if(re(a)|0)break;break e}else switch(d[h+2>>1]|0){case 47:{de();break t}case 42:{he(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 ue(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(ue,"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(Ae(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 Oe(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):($(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(Oe,"A");function mt(){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(mt,"C");function le(){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:{mt()|0;break}case 92:{n[72]=t+4;break}default:}}(h|0)==7&&M()}f(le,"g");function kt(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=O(t+-2|0,210,4)|0;break}case 121:{t=O(t+-2|0,218,6)|0;break}case 101:{t=O(t+-2|0,230,3)|0;break}default:t=0}return t|0}f(kt,"p");function he(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&&Ae(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(he,"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 yt(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(yt,"U");function Re(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|(ge(t)|0)|0;a=0}else a=1;while(!1);return a|0}f(Re,"x");function Ct(t){t=t|0;var a=0,h=0,l=0,w=0;return h=E,E=E+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,E=h,a|0}f(Ct,"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 O(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=Re(l)|0:t=0,t|0}f(O,"$");function St(t){switch(t=t|0,d[t>>1]|0){case 107:{t=O(t+-2|0,150,4)|0;break}case 101:{(d[t+-2>>1]|0)==117?t=O(t+-4|0,122,6)|0:t=0;break}default:t=0}return t|0}f(St,"j");function G(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=fe(d[t+-2>>1]|0)|0:h=0,h|0}f(G,"B");function fe(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(fe,"E");function de(){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(de,"P");function $(t){for(t=t|0;!(q(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($,"q");function vt(){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(vt,"z");function xt(t){return t=t|0,!(O(t,196,5)|0)&&!(O(t,44,3)|0)?t=O(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 ge(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(ge,"G");function z(t){return t=t|0,(n[3]|0)==(t|0)?t=1:t=Re(t+-2|0)|0,t|0}f(z,"H");function _t(){var t=0;return t=n[(n[62]|0)+12>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}f(_t,"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 Lt(){var t=0;return t=n[(n[62]|0)+8>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}f(Lt,"L");function Ot(){var t=0;return t=n[(n[61]|0)+16>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}f(Ot,"M");function Rt(){var t=0;return t=n[(n[61]|0)+4>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}f(Rt,"N");function At(){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(At,"Q");function Nt(){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(Nt,"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 q(t){return t=t|0,(t|128)<<16>>16==160|(t+-9&65535)<5|0}f(q,"V");function H(t){return t=t|0,t<<16>>16==39|t<<16>>16==34|0}f(H,"W");function It(){return(n[(n[61]|0)+8>>2]|0)-(n[3]|0)>>1|0}f(It,"X");function Mt(){return(n[(n[62]|0)+4>>2]|0)-(n[3]|0)>>1|0}f(Mt,"Y");function Ae(t){return t=t|0,t<<16>>16==13|t<<16>>16==10|0}f(Ae,"Z");function Ut(){return(n[n[61]>>2]|0)-(n[3]|0)>>1|0}f(Ut,"_");function jt(){return(n[n[62]>>2]|0)-(n[3]|0)>>1|0}f(jt,"ee");function $t(){return R[(n[61]|0)+24>>0]|0|0}f($t,"ae");function Dt(t){t=t|0,n[3]=t}f(Dt,"re");function Tt(){return n[(n[61]|0)+28>>2]|0}f(Tt,"ie");function Ft(){return(b[803]|0)!=0|0}f(Ft,"se");function Pt(){return(b[804]|0)!=0|0}f(Pt,"fe");function Wt(){return n[68]|0}f(Wt,"te");function qt(t){return t=t|0,E=t+992+15&-16,992}return f(qt,"ce"),{su:qt,ai:Ot,e:Wt,ee:Mt,ele:_t,els:Lt,es:jt,f:Pt,id:vt,ie:Rt,ip:$t,is:Ut,it:Tt,ms:Ft,p:N,re:Nt,ri:At,sa:Ct,se:Et,ses:Dt,ss:It}}(typeof self<"u"?self:global,{},ie),ye=x.su(Z-(2<<17))}const i=_.length+1;x.ses(ye),x.sa(i-1),Pe(_,new Uint16Array(ie,ye,i)),x.p()||(y=x.e(),D());const o=[],c=[];for(;x.ri();){const u=x.is(),p=x.ie(),g=x.ai(),b=x.id(),d=x.ss(),n=x.se(),R=x.it();let L;x.ip()&&(L=Ce(b===-1?u:u+1,_.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(;x.re();){const u=x.es(),p=x.ee(),g=x.els(),b=x.ele(),d=_.charCodeAt(u),n=g>=0?_.charCodeAt(g):-1;c.push({s:u,e:p,ls:g,le:b,n:d===34||d===39?Ce(u+1,d):_.slice(u,p),ln:g<0?void 0:n===34||n===39?Ce(g+1,n):_.slice(g,b)})}return[o,c,!!x.f(),!!x.ms()]}f(cr,"parse");function Ce(s,e){y=s;let r="",i=y;for(;;){y>=_.length&&D();const o=_.charCodeAt(y);if(o===e)break;o===92?(r+=_.slice(i,y),r+=ur(),i=y):(o===8232||o===8233||qe(o)&&D(),++y)}return r+=_.slice(i,y++),r}f(Ce,"b");function ur(){let s=_.charCodeAt(++y);switch(++y,s){case 110:return`
11
- `;case 114:return"\r";case 120:return String.fromCharCode(Se(2));case 117:return function(){const e=_.charCodeAt(y);let r;return e===123?(++y,r=Se(_.indexOf("}",y)-y),++y,r>1114111&&D()):r=Se(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:_.charCodeAt(y)===10&&++y;case 10:return"";case 56:case 57:D();default:if(s>=48&&s<=55){let 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=_.charCodeAt(y),e==="0"&&s!==56&&s!==57||D(),String.fromCharCode(r)}return qe(s)?"":String.fromCharCode(s)}}f(ur,"k");function Se(s){const e=y;let r=0,i=0;for(let o=0;o<s;++o,++y){let c,u=_.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(Se,"l");function qe(s){return s===13||s===10}f(qe,"u");function D(){throw Object.assign(Error(`Parse error ${We}:${_.slice(0,y).split(`
12
- `).length}:${y-_.lastIndexOf(`
13
- `,y-1)}`),{idx:y})}f(D,"o");let ve;typeof WebAssembly<"u"&&(async()=>{const{parse:s,init:e}=await Promise.resolve().then(function(){return require("./lexer-DgIbo0BU.cjs")});await e,ve=s})();const Be=f((s,e)=>ve?ve(s,e):cr(s,e),"parseEsm"),lr=f(s=>{if(!s.includes("import")&&!s.includes("export"))return!1;try{return Be(s)[3]}catch{return!0}},"isESM"),Je="2",hr=(s=>{const e="default";return s[e]&&typeof s[e]=="object"&&"__esModule"in s[e]?s[e]:s}).toString(),fr=`.then(${hr})`,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,fr);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=j.readFileSync(s,"utf8");return JSON.parse(e)}catch{}},"readJsonFile"),ze=f(()=>{},"noop"),He=f(()=>Math.floor(Date.now()/1e8),"getTime");class dr extends Map{static{f(this,"FileCache")}cacheDirectory=zt.tmpdir;oldCacheDirectory=X.join(Gt.tmpdir(),"tsx");cacheFiles;constructor(){super(),j.mkdirSync(this.cacheDirectory,{recursive:!0}),this.cacheFiles=j.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){j.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=He();j.promises.writeFile(X.join(this.cacheDirectory,`${i}-${e}`),JSON.stringify(r)).catch(ze)}return this}expireDiskCache(){const e=He();for(const r of this.cacheFiles)e-r.time>7&&j.promises.unlink(X.join(this.cacheDirectory,r.fileName)).catch(ze)}async removeOldCacheDirectory(){try{await j.promises.access(this.oldCacheDirectory).then(()=>!0)&&("rm"in j.promises?await j.promises.rm(this.oldCacheDirectory,{recursive:!0,force:!0}):await j.promises.rmdir(this.oldCacheDirectory,{recursive:!0}))}catch{}}}var se=process.env.TSX_DISABLE_CACHE?new Map:new dr;const gr=/^[\w+.-]+:\/\//,br=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,pr=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function wr(s){return gr.test(s)}f(wr,"isAbsoluteUrl");function mr(s){return s.startsWith("//")}f(mr,"isSchemeRelativeUrl");function Xe(s){return s.startsWith("/")}f(Xe,"isAbsolutePath");function kr(s){return s.startsWith("file:")}f(kr,"isFileUrl");function Ke(s){return/^[.?#]/.test(s)}f(Ke,"isRelative");function oe(s){const e=br.exec(s);return Ye(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}f(oe,"parseAbsoluteUrl");function yr(s){const e=pr.exec(s),r=e[2];return Ye("file:","",e[1]||"","",Xe(r)?r:"/"+r,e[3]||"",e[4]||"")}f(yr,"parseFileUrl");function Ye(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(Ye,"makeUrl");function Qe(s){if(mr(s)){const r=oe("http:"+s);return r.scheme="",r.type=6,r}if(Xe(s)){const r=oe("http://foo.com"+s);return r.scheme="",r.host="",r.type=5,r}if(kr(s))return yr(s);if(wr(s))return oe(s);const e=oe("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 Cr(s){if(s.endsWith("/.."))return s;const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(Cr,"stripPathFilename");function Sr(s,e){Ze(e,e.type),s.path==="/"?s.path=e.path:s.path=Cr(e.path)+s.path}f(Sr,"mergePaths");function Ze(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(Ze,"normalizePath");function vr(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:Sr(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)}Ze(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?Ke(e||s)&&!Ke(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(vr,"resolve$1");function Ve(s,e){return e&&!e.endsWith("/")&&(e+="/"),vr(s,e)}f(Ve,"resolve");function xr(s){if(!s)return"";const e=s.lastIndexOf("/");return s.slice(0,e+1)}f(xr,"stripFilename");const F=0;function _r(s,e){const r=et(s,0);if(r===s.length)return s;e||(s=s.slice());for(let i=r;i<s.length;i=et(s,i+1))s[i]=Lr(s[i],e);return s}f(_r,"maybeSort");function et(s,e){for(let r=e;r<s.length;r++)if(!Er(s[r]))return r;return s.length}f(et,"nextUnsortedSegmentLine");function Er(s){for(let e=1;e<s.length;e++)if(s[e][F]<s[e-1][F])return!1;return!0}f(Er,"isSorted");function Lr(s,e){return e||(s=s.slice()),s.sort(Or)}f(Lr,"sortSegments");function Or(s,e){return s[F]-e[F]}f(Or,"sortComparator");let ae=!1;function Rr(s,e,r,i){for(;r<=i;){const o=r+(i-r>>1),c=s[o][F]-e;if(c===0)return ae=!0,o;c<0?r=o+1:i=o-1}return ae=!1,r-1}f(Rr,"binarySearch");function Ar(s,e,r){for(let i=r-1;i>=0&&s[i][F]===e;r=i--);return r}f(Ar,"lowerBound");function Nr(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}f(Nr,"memoizedState");function Ir(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 ae=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=Rr(s,e,p,g)}f(Ir,"memoizedBinarySearch");class tt{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=Ve(g||"",xr(r));this.resolvedSources=b.map(L=>Ve(L||"",n));const{mappings:R}=o;typeof R=="string"?(this._encoded=R,this._decoded=void 0):(this._encoded=void 0,this._decoded=_r(R,i)),this._decodedMemo=Nr(),this._bySources=void 0,this._bySourceMemos=void 0}}function gn(s){return s}f(gn,"cast$2");function rt(s){var e;return(e=s)._decoded||(e._decoded=Xt(s._encoded))}f(rt,"decodedMappings");function Mr(s,e,r){const i=rt(s);if(e>=i.length)return null;const o=i[e],c=Ur(o,s._decodedMemo,e,r);return c===-1?null:o[c]}f(Mr,"traceSegment");function Ur(s,e,r,i,o){let c=Ir(s,i,e,r);return ae&&(c=Ar(s,i,c)),c===-1||c===s.length?-1:c}f(Ur,"traceSegmentInternal");class _e{static{f(this,"SetArray")}constructor(){this._indexes={__proto__:null},this.array=[]}}function bn(s){return s}f(bn,"cast$1");function nt(s,e){return s._indexes[e]}f(nt,"get");function V(s,e){const r=nt(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 jr(s,e){const r=nt(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(jr,"remove");const $r=0,Dr=1,Tr=2,Fr=3,Pr=4,it=-1;class Wr{static{f(this,"GenMapping")}constructor({file:e,sourceRoot:r}={}){this._names=new _e,this._sources=new _e,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=r,this._ignoreList=new _e}}function pn(s){return s}f(pn,"cast");const qr=f((s,e,r,i,o,c,u,p)=>zr(!0,s,e,r,i,o,c,u),"maybeAddSegment");function Br(s,e,r){const{_sources:i,_sourcesContent:o}=s,c=V(i,e);o[c]=r}f(Br,"setSourceContent");function Jr(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):jr(c,u)}f(Jr,"setIgnore");function st(s){const{_mappings:e,_sources:r,_sourcesContent:i,_names:o,_ignoreList:c}=s;return Kr(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(st,"toDecodedMap");function Gr(s){const e=st(s);return Object.assign(Object.assign({},e),{mappings:Te(e.mappings)})}f(Gr,"toEncodedMap");function zr(s,e,r,i,o,c,u,p,g){const{_mappings:b,_sources:d,_sourcesContent:n,_names:R}=e,L=Hr(b,r),E=Xr(L,i);if(!o)return Yr(L,E)?void 0:ot(L,E,[i]);const N=V(d,o),U=p?V(R,p):it;if(N===n.length&&(n[N]=null),!Qr(L,E,N,c,u,U))return ot(L,E,p?[i,N,c,u,U]:[i,N,c,u])}f(zr,"addSegmentInternal");function Hr(s,e){for(let r=s.length;r<=e;r++)s[r]=[];return s[e]}f(Hr,"getLine");function Xr(s,e){let r=s.length;for(let i=r-1;i>=0;r=i--){const o=s[i];if(e>=o[$r])break}return r}f(Xr,"getColumnIndex");function ot(s,e,r){for(let i=s.length;i>e;i--)s[i]=s[i-1];s[e]=r}f(ot,"insert");function Kr(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(Kr,"removeEmptyFinalLines");function Yr(s,e){return e===0?!0:s[e-1].length===1}f(Yr,"skipSourceless");function Qr(s,e,r,i,o,c){if(e===0)return!1;const u=s[e-1];return u.length===1?!1:r===u[Dr]&&i===u[Tr]&&o===u[Fr]&&c===(u.length===5?u[Pr]:it)}f(Qr,"skipSource");const at=ct("",-1,-1,"",null,!1),Zr=[];function ct(s,e,r,i,o,c){return{source:s,line:e,column:r,name:i,content:o,ignore:c}}f(ct,"SegmentObject");function ut(s,e,r,i,o){return{map:s,sources:e,source:r,content:i,ignore:o}}f(ut,"Source");function lt(s,e){return ut(s,e,"",null,!1)}f(lt,"MapSource");function Vr(s,e,r){return ut(null,Zr,s,e,r)}f(Vr,"OriginalSource");function en(s){const e=new Wr({file:s.map.file}),{sources:r,map:i}=s,o=i.names,c=rt(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=at;if(b.length!==1){const J=r[b[1]];if(n=ht(J,b[2],b[3],b.length===5?o[b[4]]:""),n==null)continue}const{column:R,line:L,name:E,content:N,source:U,ignore:P}=n;qr(e,u,d,U,L,R,E),U&&N!=null&&Br(e,U,N),P&&Jr(e,U,!0)}}return e}f(en,"traceMappings");function ht(s,e,r,i){if(!s.map)return ct(s.source,e,r,i,s.content,s.ignore);const o=Mr(s.map,e,r);return o==null?null:o.length===1?at:ht(s.sources[o[1]],o[2],o[3],o.length===5?s.map.names[o[4]]:i)}f(ht,"originalPositionFor");function tn(s){return Array.isArray(s)?s:[s]}f(tn,"asArray");function rn(s,e){const r=tn(s).map(c=>new tt(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=ft(i,e,"",0);for(let c=r.length-1;c>=0;c--)o=lt(r[c],[o]);return o}f(rn,"buildSourceMapTree");function ft(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:E,ignore:N}=n;if(R)return ft(new tt(R,L),e,L,p);const U=E!==void 0?E:c?c[d]:null,P=N!==void 0?N:u?u.includes(d):!1;return Vr(L,U,P)});return lt(s,g)}f(ft,"build");class nn{static{f(this,"SourceMap")}constructor(e,r){const i=r.decodedMappings?st(e):Gr(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 dt(s,e,r){const i={excludeContent:!!r,decodedMappings:!1},o=rn(s,e);return new nn(en(o),i)}f(dt,"remapping");const sn=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:dt(i,()=>null)}},"applyTransformersSync"),on=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:dt(i,()=>null)}},"applyTransformers"),an=Object.freeze({target:`node${process.versions.node}`,loader:"default"}),cn=/^--inspect(?:-brk|-port|-publish-uid|-wait)?(?:=|$)/,un=process.execArgv.some(s=>cn.test(s)),gt={...an,sourcemap:!0,sourcesContent:!!process.env.NODE_V8_COVERAGE||un,minifyWhitespace:!0,keepNames:!0},bt=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"),pt=f(s=>{throw s.name="TransformError",delete s.errors,delete s.warnings,s},"formatEsbuildError"),ln=f((s,e,r)=>{const i={};let o,c,u;if(e.startsWith("file://")){o=e;const d=new URL(e);c=Ne.fileURLToPath(d)}else[c,u]=e.split("?"),o=Ne.pathToFileURL(c)+(u?`?${u}`:"");c.endsWith(".cjs")||c.endsWith(".cts")||(i["import.meta.url"]=JSON.stringify(o));const p={...gt,format:"cjs",sourcefile:c,define:i,banner:`__filename=${JSON.stringify(c)};(()=>{`,footer:"})()",platform:"node",...r},g=Ie([s,JSON.stringify(p),ne.version,Je].join("-"));let b=se.get(g);return b||(b=sn(e,s,[(d,n)=>{const R=bt(p);let L;try{L=ne.transformSync(n,p)}catch(E){throw pt(E)}return R(L)},(d,n)=>xe(d,n,!0)]),se.set(g,b)),b},"transformSync"),hn=f(async(s,e,r)=>{const i={...gt,format:"esm",sourcefile:e,...r},o=Ie([s,JSON.stringify(i),ne.version,Je].join("-"));let c=se.get(o);return c||(c=await on(e,s,[async(u,p)=>{const g=bt(i);let b;try{b=await ne.transform(p,i)}catch(d){throw pt(d)}return g(b)},(u,p)=>xe(u,p,!0)]),se.set(o,c)),c},"transform");exports.isESM=lr,exports.readJsonFile=Ge,exports.transform=hn,exports.transformDynamicImport=xe,exports.transformSync=ln;
@@ -1 +0,0 @@
1
- var i=Object.defineProperty;var o=(e,t)=>i(e,"name",{value:t,configurable:!0});const n=o((e,t)=>{const r=e[0]-t[0];if(r===0){const s=e[1]-t[1];return s===0?e[2]>=t[2]:s>0}return r>0},"isVersionGreaterOrEqual"),a=process.versions.node.split(".").map(Number),u=o((e,t=a)=>{for(let r=0;r<e.length;r+=1){const s=e[r];if(r===e.length-1||t[0]===s[0])return n(t,s)}return!1},"isFeatureSupported"),c=[[18,19,0],[20,6,0]],f=[[18,19,0],[20,10,0],[21,0,0]],l=[[21,0,0]],m=[[20,11,0],[21,3,0]];export{f as a,m as e,u as i,c as m,l 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.21.0";export{r as v};
@@ -1 +0,0 @@
1
- "use strict";var r="4.21.0";exports.version=r;
@@ -1 +0,0 @@
1
- "use strict";var g=Object.defineProperty;var o=(r,s)=>g(r,"name",{value:s,configurable:!0});var p=require("node:module"),v=require("node:worker_threads"),f=require("./register-D46fvsV_.cjs"),h=require("node:url"),m=typeof document<"u"?document.currentScript:null;const w=o(r=>(s,e)=>{if(!e)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const n=e.startsWith(f.fileUrlPrefix)?e:h.pathToFileURL(e).toString();return import(`tsx://${JSON.stringify({specifier:s,parentURL:n,namespace:r})}`)},"createScopedImport");let l=!1;const _=o(r=>{if(!p.register)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(!l){const{_resolveFilename:t}=p;p._resolveFilename=(c,...u)=>t(f.interopCjsExports(c),...u),l=!0}const{sourceMapsEnabled:s}=process;process.setSourceMapsEnabled(!0);const{port1:e,port2:n}=new v.MessageChannel;p.register(`./esm/index.mjs?${Date.now()}`,{parentURL:typeof document>"u"?require("url").pathToFileURL(__filename).href:m&&m.src||new URL("register-2sWVXuRQ.cjs",document.baseURI).href,data:{port:n,namespace:r?.namespace,tsconfig:r?.tsconfig},transferList:[n]});const d=r?.onImport,a=d&&(t=>{t.type==="load"&&d(t.url)});a&&(e.on("message",a),e.unref());const i=o(()=>(s===!1&&process.setSourceMapsEnabled(!1),a&&e.off("message",a),e.postMessage("deactivate"),new Promise(t=>{const c=o(u=>{u.type==="deactivated"&&(t(),e.off("message",c))},"onDeactivated");e.on("message",c)})),"unregister");return r?.namespace&&(i.import=w(r.namespace),i.unregister=i),i},"register");exports.register=_;
@@ -1 +0,0 @@
1
- var d=Object.defineProperty;var o=(r,s)=>d(r,"name",{value:s,configurable:!0});import m from"node:module";import{MessageChannel as u}from"node:worker_threads";import{f as g,a as v}from"./register-CFH5oNdT.mjs";import{pathToFileURL as h}from"node:url";const w=o(r=>(s,e)=>{if(!e)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const a=e.startsWith(g)?e:h(e).toString();return import(`tsx://${JSON.stringify({specifier:s,parentURL:a,namespace:r})}`)},"createScopedImport");let l=!1;const E=o(r=>{if(!m.register)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(!l){const{_resolveFilename:t}=m;m._resolveFilename=(p,...c)=>t(v(p),...c),l=!0}const{sourceMapsEnabled:s}=process;process.setSourceMapsEnabled(!0);const{port1:e,port2:a}=new u;m.register(`./esm/index.mjs?${Date.now()}`,{parentURL:import.meta.url,data:{port:a,namespace:r?.namespace,tsconfig:r?.tsconfig},transferList:[a]});const f=r?.onImport,n=f&&(t=>{t.type==="load"&&f(t.url)});n&&(e.on("message",n),e.unref());const i=o(()=>(s===!1&&process.setSourceMapsEnabled(!1),n&&e.off("message",n),e.postMessage("deactivate"),new Promise(t=>{const p=o(c=>{c.type==="deactivated"&&(t(),e.off("message",p))},"onDeactivated");e.on("message",p)})),"unregister");return r?.namespace&&(i.import=w(r.namespace),i.unregister=i),i},"register");export{E as r};
@@ -1,4 +0,0 @@
1
- var K=Object.defineProperty;var o=(s,e)=>K(s,"name",{value:e,configurable:!0});import{r as Y}from"./get-pipe-path-BHW2eJdv.mjs";import d from"node:module";import p from"node:path";import{fileURLToPath as O}from"node:url";import{parseTsconfig as V,getTsconfig as Z,createFilesMatcher as q,createPathsMatcher as ee}from"get-tsconfig";import se,{writeSync as te}from"node:fs";import{b as ne,i as ae,a as re}from"./index-7AaEi15b.mjs";import{p as U}from"./client-BQVF1NaW.mjs";import{inspect as oe}from"node:util";import{b as ce,a as ie,c as le,d as fe,o as W}from"./index-gbaejti9.mjs";const R=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"),D=o(s=>{const e=R(s);return e&&(d._cache[e]=d._cache[s],delete d._cache[s],s=e),s},"interopCjsExports"),me=o(s=>{const e=s.indexOf(":");if(e!==-1)return s.slice(0,e)},"getScheme"),N=o(s=>s[0]==="."&&(s[1]==="/"||s[1]==="."||s[2]==="/"),"isRelativePath"),j=o(s=>N(s)||p.isAbsolute(s),"isFilePath"),pe=o(s=>{if(j(s))return!0;const e=me(s);return e&&e!=="node"},"requestAcceptsQuery"),y="file://",he=[".ts",".tsx",".jsx",".mts",".cts"],C=/\.([cm]?ts|[tj]sx)($|\?)/,de=/[/\\].+\.(?:cts|cjs)(?:$|\?)/,ue=/\.json($|\?)/,E=/\/(?:$|\?)/,ge=/^(?:@[^/]+\/)?[^/\\]+$/,Q=`${p.sep}node_modules${p.sep}`;let M,_,S=!1;const A=o(s=>{let e=null;if(s){const a=p.resolve(s);e={path:a,config:V(a)}}else{try{e=Z()}catch{}if(!e)return}M=q(e),_=ee(e),S=e?.config.compilerOptions?.allowJs??!1},"loadTsconfig"),T=o(s=>Array.from(s).length>0?`?${s.toString()}`:"","urlSearchParamsStringify"),Pe=`
2
- //# sourceMappingURL=data:application/json;base64,`,I=o(()=>process.sourceMapsEnabled??!0,"shouldApplySourceMap"),F=o(({code:s,map:e})=>s+Pe+Buffer.from(JSON.stringify(e),"utf8").toString("base64"),"inlineSourceMap"),v=Number(process.env.TSX_DEBUG);v&&(W.enabled=!0,W.supportLevel=3);const J=o(s=>(e,...a)=>{if(!v||e>v)return;const n=`${fe(` tsx P${process.pid} `)} ${s}`,t=a.map(r=>typeof r=="string"?r:oe(r,{colors:!0})).join(" ");te(1,`${n} ${t}
3
- `)},"createLog"),P=J(ce(ie(" CJS "))),je=J(le(" ESM ")),be=[".cts",".mts",".ts",".tsx",".jsx"],xe=[".js",".cjs",".mjs"],k=[".ts",".tsx",".jsx"],$=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"),ye=o((s,e,a)=>{const n=e[".js"],t=o((r,c)=>{if(s.enabled===!1)return n(r,c);const[i,f]=c.split("?");if((new URLSearchParams(f).get("namespace")??void 0)!==a)return n(r,c);P(2,"load",{filePath:c}),r.id.startsWith("data:text/javascript,")&&(r.path=p.dirname(i)),U?.send&&U.send({type:"dependency",path:i});const u=be.some(m=>i.endsWith(m)),g=xe.some(m=>i.endsWith(m));if(!u&&!g)return n(r,i);let h=se.readFileSync(i,"utf8");if(i.endsWith(".cjs")){const m=ne(c,h);m&&(h=I()?F(m):m.code)}else if(u||ae(h)){const m=re(h,c,{tsconfigRaw:M?.(i)});h=I()?F(m):m.code}P(1,"loaded",{filePath:i}),r._compile(h,i)},"transformer");$(e,".js",t);for(const r of k)$(e,r,t,{enumerable:!a,writable:!0,configurable:!0});return $(e,".mjs",t,{writable:!0,configurable:!0}),()=>{e[".js"]===t&&(e[".js"]=n);for(const r of[...k,".mjs"])e[r]===t&&delete e[r]}},"createExtensions"),Ee=o(s=>e=>{if((e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),E.test(e)){let a=p.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}${p.sep}index.js`)}catch{}throw n}},"createImplicitResolver"),B=[".js",".json"],G=[".ts",".tsx",".jsx"],_e=[...G,...B],Se=[...B,...G],b=Object.create(null);b[".js"]=[".ts",".tsx",".js",".jsx"],b[".jsx"]=[".tsx",".ts",".jsx",".js"],b[".cjs"]=[".cts"],b[".mjs"]=[".mts"];const X=o(s=>{const e=s.split("?"),a=e[1]?`?${e[1]}`:"",[n]=e,t=p.extname(n),r=[],c=b[t];if(c){const f=n.slice(0,-t.length);r.push(...c.map(l=>f+l+a))}const i=!(s.startsWith(y)||j(n))||n.includes(Q)||n.includes("/node_modules/")?Se:_e;return r.push(...i.map(f=>n+f+a)),r},"mapTsExtensions"),w=o((s,e,a)=>{if(P(3,"resolveTsFilename",{request:e,isDirectory:E.test(e),isTsParent:a,allowJs:S}),E.test(e)||!a&&!S)return;const n=X(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"),ve=o((s,e)=>a=>{if(P(3,"resolveTsFilename",{request:a,isTsParent:e,isFilePath:j(a)}),j(a)){const n=w(s,a,e);if(n)return n}try{return s(a)}catch(n){const t=n;if(t.code==="MODULE_NOT_FOUND"){if(t.path){const c=t.message.match(/^Cannot find module '([^']+)'$/);if(c){const f=c[1],l=w(s,f,e);if(l)return l}const i=t.message.match(/^Cannot find module '([^']+)'. Please verify that the package.json has a valid "main" entry$/);if(i){const f=i[1],l=w(s,f,e);if(l)return l}}const r=w(s,a,e);if(r)return r}throw t}},"createTsExtensionResolver"),z="at cjsPreparseModuleExports (node:internal",we=o(s=>{const e=s.stack.split(`
4
- `).slice(1);return e[1].includes(z)||e[2].includes(z)},"isFromCjsLexer"),Me=o((s,e)=>{const a=s.split("?"),n=new URLSearchParams(a[1]);if(e?.filename){const t=R(e.filename);let r;if(t){const f=t.split("?"),l=f[0];r=f[1],e.filename=l,e.path=p.dirname(l),e.paths=d._nodeModulePaths(e.path),d._cache[l]=e}r||(r=e.filename.split("?")[1]);const i=new URLSearchParams(r).get("namespace");i&&n.append("namespace",i)}return[a[0],n,(t,r)=>(p.isAbsolute(t)&&!t.endsWith(".json")&&!t.endsWith(".node")&&!(r===0&&we(new Error))&&(t+=T(n)),t)]},"preserveQuery"),Te=o((s,e,a)=>{if(s.startsWith(y)&&(s=O(s)),_&&!j(s)&&!e?.filename?.includes(Q)){const n=_(s);for(const t of n)try{return a(t)}catch{}}return a(s)},"resolveTsPaths"),Fe=o((s,e,a)=>(n,t,...r)=>{if(s.enabled===!1)return e(n,t,...r);n=D(n);const[c,i,f]=Me(n,t);if((i.get("namespace")??void 0)!==a)return e(n,t,...r);P(2,"resolve",{request:n,parent:t?.filename??t,restOfArgs:r});let l=o(g=>e(g,t,...r),"nextResolveSimple");l=ve(l,!!(a||t?.filename&&C.test(t.filename))),l=Ee(l);const u=f(Te(c,t,l),r.length);return P(1,"resolved",{request:n,parent:t?.filename??t,resolved:u}),u},"createResolveFilename"),H=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(y)||e instanceof URL)&&(e=O(e)),p.resolve(p.dirname(e),s)):s},"resolveContext"),$e=o(s=>{const{sourceMapsEnabled:e}=process,a={enabled:!0};A(process.env.TSX_TSCONFIG_PATH),process.setSourceMapsEnabled(!0);const n=d._resolveFilename,t=Fe(a,n,s?.namespace);d._resolveFilename=t;const r=ye(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 i=o((l,u)=>{const g=H(l,u),[h,m]=g.split("?"),x=new URLSearchParams(m);return s.namespace&&!h.startsWith("node:")&&x.set("namespace",s.namespace),Y(h+T(x))},"scopedRequire");c.require=i;const f=o((l,u,g)=>{const h=H(l,u),[m,x]=h.split("?"),L=new URLSearchParams(x);return s.namespace&&!m.startsWith("node:")&&L.set("namespace",s.namespace),t(m+T(L),module,!1,g)},"scopedResolve");c.resolve=f,c.unregister=c}return c},"register");export{D as a,ue as b,de as c,je as d,C as e,y as f,M as g,F as h,ge as i,v as j,pe as k,A as l,_ as m,E as n,X as o,N as p,S as q,$e as r,he as t};
@@ -1,4 +0,0 @@
1
- "use strict";var K=Object.defineProperty;var o=(s,e)=>K(s,"name",{value:e,configurable:!0});var Y=require("./get-pipe-path-BoR10qr8.cjs"),u=require("node:module"),m=require("node:path"),L=require("node:url"),b=require("get-tsconfig"),O=require("node:fs"),w=require("./index-gckBtVBf.cjs"),R=require("./client-D6NvIMSC.cjs"),V=require("node:util"),g=require("./index-BWFBUo6r.cjs");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"),D=o(s=>{const e=W(s);return e&&(u._cache[e]=u._cache[s],delete u._cache[s],s=e),s},"interopCjsExports"),Z=o(s=>{const e=s.indexOf(":");if(e!==-1)return s.slice(0,e)},"getScheme"),N=o(s=>s[0]==="."&&(s[1]==="/"||s[1]==="."||s[2]==="/"),"isRelativePath"),j=o(s=>N(s)||m.isAbsolute(s),"isFilePath"),q=o(s=>{if(j(s))return!0;const e=Z(s);return e&&e!=="node"},"requestAcceptsQuery"),v="file://",ee=[".ts",".tsx",".jsx",".mts",".cts"],C=/\.([cm]?ts|[tj]sx)($|\?)/,se=/[/\\].+\.(?:cts|cjs)(?:$|\?)/,te=/\.json($|\?)/,_=/\/(?:$|\?)/,ne=/^(?:@[^/]+\/)?[^/\\]+$/,J=`${m.sep}node_modules${m.sep}`;exports.fileMatcher=void 0,exports.tsconfigPathsMatcher=void 0,exports.allowJs=!1;const Q=o(s=>{let e=null;if(s){const r=m.resolve(s);e={path:r,config:b.parseTsconfig(r)}}else{try{e=b.getTsconfig()}catch{}if(!e)return}exports.fileMatcher=b.createFilesMatcher(e),exports.tsconfigPathsMatcher=b.createPathsMatcher(e),exports.allowJs=e?.config.compilerOptions?.allowJs??!1},"loadTsconfig"),T=o(s=>Array.from(s).length>0?`?${s.toString()}`:"","urlSearchParamsStringify"),re=`
2
- //# sourceMappingURL=data:application/json;base64,`,A=o(()=>process.sourceMapsEnabled??!0,"shouldApplySourceMap"),$=o(({code:s,map:e})=>s+re+Buffer.from(JSON.stringify(e),"utf8").toString("base64"),"inlineSourceMap"),M=Number(process.env.TSX_DEBUG);M&&(g.options.enabled=!0,g.options.supportLevel=3);const I=o(s=>(e,...r)=>{if(!M||e>M)return;const n=`${g.bgGray(` tsx P${process.pid} `)} ${s}`,t=r.map(a=>typeof a=="string"?a:V.inspect(a,{colors:!0})).join(" ");O.writeSync(1,`${n} ${t}
3
- `)},"createLog"),x=I(g.bgLightYellow(g.black(" CJS "))),ae=I(g.bgBlue(" ESM ")),oe=[".cts",".mts",".ts",".tsx",".jsx"],ie=[".js",".cjs",".mjs"],k=[".ts",".tsx",".jsx"],F=o((s,e,r,n)=>{const t=Object.getOwnPropertyDescriptor(s,e);t?.set?s[e]=r:(!t||t.configurable)&&Object.defineProperty(s,e,{value:r,enumerable:t?.enumerable||n?.enumerable,writable:n?.writable??(t?t.writable:!0),configurable:n?.configurable??(t?t.configurable:!0)})},"safeSet"),ce=o((s,e,r)=>{const n=e[".js"],t=o((a,i)=>{if(s.enabled===!1)return n(a,i);const[c,f]=i.split("?");if((new URLSearchParams(f).get("namespace")??void 0)!==r)return n(a,i);x(2,"load",{filePath:i}),a.id.startsWith("data:text/javascript,")&&(a.path=m.dirname(c)),R.parent?.send&&R.parent.send({type:"dependency",path:c});const p=oe.some(h=>c.endsWith(h)),P=ie.some(h=>c.endsWith(h));if(!p&&!P)return n(a,c);let d=O.readFileSync(c,"utf8");if(c.endsWith(".cjs")){const h=w.transformDynamicImport(i,d);h&&(d=A()?$(h):h.code)}else if(p||w.isESM(d)){const h=w.transformSync(d,i,{tsconfigRaw:exports.fileMatcher?.(c)});d=A()?$(h):h.code}x(1,"loaded",{filePath:c}),a._compile(d,c)},"transformer");F(e,".js",t);for(const a of k)F(e,a,t,{enumerable:!r,writable:!0,configurable:!0});return F(e,".mjs",t,{writable:!0,configurable:!0}),()=>{e[".js"]===t&&(e[".js"]=n);for(const a of[...k,".mjs"])e[a]===t&&delete e[a]}},"createExtensions"),le=o(s=>e=>{if((e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),_.test(e)){let r=m.join(e,"index.js");e.startsWith("./")&&(r=`./${r}`);try{return s(r)}catch{}}try{return s(e)}catch(r){const n=r;if(n.code==="MODULE_NOT_FOUND")try{return s(`${e}${m.sep}index.js`)}catch{}throw n}},"createImplicitResolver"),B=[".js",".json"],G=[".ts",".tsx",".jsx"],fe=[...G,...B],he=[...B,...G],y=Object.create(null);y[".js"]=[".ts",".tsx",".js",".jsx"],y[".jsx"]=[".tsx",".ts",".jsx",".js"],y[".cjs"]=[".cts"],y[".mjs"]=[".mts"];const X=o(s=>{const e=s.split("?"),r=e[1]?`?${e[1]}`:"",[n]=e,t=m.extname(n),a=[],i=y[t];if(i){const f=n.slice(0,-t.length);a.push(...i.map(l=>f+l+r))}const c=!(s.startsWith(v)||j(n))||n.includes(J)||n.includes("/node_modules/")?he:fe;return a.push(...c.map(f=>n+f+r)),a},"mapTsExtensions"),S=o((s,e,r)=>{if(x(3,"resolveTsFilename",{request:e,isDirectory:_.test(e),isTsParent:r,allowJs:exports.allowJs}),_.test(e)||!r&&!exports.allowJs)return;const n=X(e);if(n)for(const t of n)try{return s(t)}catch(a){const{code:i}=a;if(i!=="MODULE_NOT_FOUND"&&i!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw a}},"resolveTsFilename"),me=o((s,e)=>r=>{if(x(3,"resolveTsFilename",{request:r,isTsParent:e,isFilePath:j(r)}),j(r)){const n=S(s,r,e);if(n)return n}try{return s(r)}catch(n){const t=n;if(t.code==="MODULE_NOT_FOUND"){if(t.path){const i=t.message.match(/^Cannot find module '([^']+)'$/);if(i){const f=i[1],l=S(s,f,e);if(l)return l}const c=t.message.match(/^Cannot find module '([^']+)'. Please verify that the package.json has a valid "main" entry$/);if(c){const f=c[1],l=S(s,f,e);if(l)return l}}const a=S(s,r,e);if(a)return a}throw t}},"createTsExtensionResolver"),z="at cjsPreparseModuleExports (node:internal",de=o(s=>{const e=s.stack.split(`
4
- `).slice(1);return e[1].includes(z)||e[2].includes(z)},"isFromCjsLexer"),ue=o((s,e)=>{const r=s.split("?"),n=new URLSearchParams(r[1]);if(e?.filename){const t=W(e.filename);let a;if(t){const f=t.split("?"),l=f[0];a=f[1],e.filename=l,e.path=m.dirname(l),e.paths=u._nodeModulePaths(e.path),u._cache[l]=e}a||(a=e.filename.split("?")[1]);const c=new URLSearchParams(a).get("namespace");c&&n.append("namespace",c)}return[r[0],n,(t,a)=>(m.isAbsolute(t)&&!t.endsWith(".json")&&!t.endsWith(".node")&&!(a===0&&de(new Error))&&(t+=T(n)),t)]},"preserveQuery"),pe=o((s,e,r)=>{if(s.startsWith(v)&&(s=L.fileURLToPath(s)),exports.tsconfigPathsMatcher&&!j(s)&&!e?.filename?.includes(J)){const n=exports.tsconfigPathsMatcher(s);for(const t of n)try{return r(t)}catch{}}return r(s)},"resolveTsPaths"),Pe=o((s,e,r)=>(n,t,...a)=>{if(s.enabled===!1)return e(n,t,...a);n=D(n);const[i,c,f]=ue(n,t);if((c.get("namespace")??void 0)!==r)return e(n,t,...a);x(2,"resolve",{request:n,parent:t?.filename??t,restOfArgs:a});let l=o(P=>e(P,t,...a),"nextResolveSimple");l=me(l,!!(r||t?.filename&&C.test(t.filename))),l=le(l);const p=f(pe(i,t,l),a.length);return x(1,"resolved",{request:n,parent:t?.filename??t,resolved:p}),p},"createResolveFilename"),H=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(v)||e instanceof URL)&&(e=L.fileURLToPath(e)),m.resolve(m.dirname(e),s)):s},"resolveContext"),ge=o(s=>{const{sourceMapsEnabled:e}=process,r={enabled:!0};Q(process.env.TSX_TSCONFIG_PATH),process.setSourceMapsEnabled(!0);const n=u._resolveFilename,t=Pe(r,n,s?.namespace);u._resolveFilename=t;const a=ce(r,u._extensions,s?.namespace),i=o(()=>{e===!1&&process.setSourceMapsEnabled(!1),r.enabled=!1,u._resolveFilename===t&&(u._resolveFilename=n),a()},"unregister");if(s?.namespace){const c=o((l,p)=>{const P=H(l,p),[d,h]=P.split("?"),E=new URLSearchParams(h);return s.namespace&&!d.startsWith("node:")&&E.set("namespace",s.namespace),Y.require(d+T(E))},"scopedRequire");i.require=c;const f=o((l,p,P)=>{const d=H(l,p),[h,E]=d.split("?"),U=new URLSearchParams(E);return s.namespace&&!h.startsWith("node:")&&U.set("namespace",s.namespace),t(h+T(U),module,!1,P)},"scopedResolve");i.resolve=f,i.unregister=i}return i},"register");exports.cjsExtensionPattern=se,exports.debugEnabled=M,exports.fileUrlPrefix=v,exports.inlineSourceMap=$,exports.interopCjsExports=D,exports.isBarePackageNamePattern=ne,exports.isDirectoryPattern=_,exports.isJsonPattern=te,exports.isRelativePath=N,exports.loadTsconfig=Q,exports.logEsm=ae,exports.mapTsExtensions=X,exports.register=ge,exports.requestAcceptsQuery=q,exports.tsExtensions=ee,exports.tsExtensionsPattern=C;
@@ -1 +0,0 @@
1
- import r from"node:path";import o from"node:os";const{geteuid:t}=process,s=t?t():o.userInfo().username,e=r.join(o.tmpdir(),`tsx-${s}`);export{e as t};