package.dist.index-BsW12Ot9.cjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsx Show documentation
Show all versions of tsx Show documentation
TypeScript Execute (tsx): Node.js enhanced with esbuild to run TypeScript & ESM files
The newest version!
"use strict";var Pt=Object.defineProperty;var l=(n,e)=>Pt(n,"name",{value:e,configurable:!0});var Tt=require("node:url"),ie=require("esbuild"),Zt=require("node:crypto"),x=require("node:fs"),Z=require("node:path"),$t=require("node:os"),Vt=require("./temporary-directory-B83uKxJF.cjs");const Je=l(n=>Zt.createHash("sha1").update(n).digest("hex"),"sha1"),Re=44,Wt=59,Ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ve=new Uint8Array(64),xe=new Uint8Array(128);for(let n=0;n>>=1,C&&(s=-2147483648|-s),A[i]+=s,e}l($,"decodeInteger");function Fe(n,e,A){return e>=A?!1:n.charCodeAt(e)!==Re}l(Fe,"hasMoreVlq");function tA(n){n.sort(AA)}l(tA,"sort");function AA(n,e){return n[0]-e[0]}l(AA,"sortComparator$1");function Me(n){const e=new Int32Array(5),A=1024*16,i=A-36,s=new Uint8Array(A),a=s.subarray(0,i);let c=0,C="";for(let Q=0;Q0&&(c===A&&(C+=we.decode(s),c=0),s[c++]=Wt),g.length!==0){e[0]=0;for(let f=0;fi&&(C+=we.decode(a),s.copyWithin(0,i,c),c-=i),f>0&&(s[c++]=Re),c=V(s,c,e,r,0),r.length!==1&&(c=V(s,c,e,r,1),c=V(s,c,e,r,2),c=V(s,c,e,r,3),r.length!==4&&(c=V(s,c,e,r,4)))}}}return C+we.decode(s.subarray(0,c))}l(Me,"encode");function V(n,e,A,i,s){const a=i[s];let c=a-A[s];A[s]=a,c=c<0?-c<<1|1:c<<1;do{let C=c&31;c>>>=5,c>0&&(C|=32),n[e++]=ve[C]}while(c>0);return e}l(V,"encodeInteger");class ce{static{l(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 te{static{l(this,"Chunk")}constructor(e,A,i){this.start=e,this.end=A,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 te(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.startglobalThis.btoa(unescape(encodeURIComponent(n))):typeof Buffer=="function"?n=>Buffer.from(n,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}l(rA,"getBtoa");const iA=rA();let nA=class{static{l(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=Me(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,"+iA(this.toString())}};function sA(n){const e=n.split(`
`),A=e.filter(a=>/^\t+/.test(a)),i=e.filter(a=>/^ {2,}/.test(a));if(A.length===0&&i.length===0)return null;if(A.length>=i.length)return" ";const s=i.reduce((a,c)=>{const C=/^ +/.exec(c)[0].length;return Math.min(C,a)},1/0);return new Array(s+1).join(" ")}l(sA,"guessIndent");function oA(n,e){const A=n.split(/[/\\]/),i=e.split(/[/\\]/);for(A.pop();A[0]===i[0];)A.shift(),i.shift();if(A.length){let s=A.length;for(;s--;)A[s]=".."}return A.concat(i).join("/")}l(oA,"getRelativePath");const aA=Object.prototype.toString;function cA(n){return aA.call(n)==="[object Object]"}l(cA,"isObject");function Ge(n){const e=n.split(`
`),A=[];for(let i=0,s=0;i>1;s=0&&a>c;){const g=[this.generatedCodeColumn,e,i.line,i.column];s>=0&&g.push(s),this.rawSegments.push(g),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,C=c,c=A.indexOf(`
`,c+1)}const Q=[this.generatedCodeColumn,e,i.line,i.column];s>=0&&Q.push(s),this.rawSegments.push(Q),this.advance(A.slice(C+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(A));this.pending=null}addUneditedChunk(e,A,i,s,a){let c=A.start,C=!0,Q=!1;for(;c1){for(let i=0;i{const C=a(c.start);c.intro.length&&s.advance(c.intro),c.edited?s.addEdit(A,c.content,C,c.storeName?i.indexOf(c.original):-1):s.addUneditedChunk(A,c,this.original,C,this.sourcemapLocations),c.outro.length&&s.advance(c.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?oA(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:i,mappings:s.raw,x_google_ignoreList:this.ignoreList?[A]:void 0}}generateMap(e){return new nA(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=sA(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,A){const i=/^[^\r\n]/gm;if(cA(e)&&(A=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;A=A||{};const s={};A.exclude&&(typeof A.exclude[0]=="number"?[A.exclude]:A.exclude).forEach(f=>{for(let r=f[0];ra?`${e}${g}`:(a=!0,g),"replacer");this.intro=this.intro.replace(i,c);let C=0,Q=this.firstChunk;for(;Q;){const g=Q.end;if(Q.edited)s[C]||(Q.content=Q.content.replace(i,c),Q.content.length&&(a=Q.content[Q.content.length-1]===`
`));else for(C=Q.start;C=e&&i<=A)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(A),this._split(i);const s=this.byStart[e],a=this.byEnd[A],c=s.previous,C=a.next,Q=this.byStart[i];if(!Q&&a===this.lastChunk)return this;const g=Q?Q.previous:this.lastChunk;return c&&(c.next=C),C&&(C.previous=c),g&&(g.next=s),Q&&(Q.previous=a),s.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=g,a.next=Q||null,g||(this.firstChunk=s),Q||(this.lastChunk=a),this}overwrite(e,A,i,s){return s=s||{},this.update(e,A,i,{...s,overwrite:!s.contentOnly})}update(e,A,i,s){if(typeof i!="string")throw new TypeError("replacement content must be a string");for(;e<0;)e+=this.original.length;for(;A<0;)A+=this.original.length;if(A>this.original.length)throw new Error("end is out of bounds");if(e===A)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(A),s===!0&&(_.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),_.storeName=!0),s={storeName:!0});const a=s!==void 0?s.storeName:!1,c=s!==void 0?s.overwrite:!1;if(a){const g=this.original.slice(e,A);Object.defineProperty(this.storedNames,g,{writable:!0,value:!0,enumerable:!0})}const C=this.byStart[e],Q=this.byEnd[A];if(C){let g=C;for(;g!==Q;){if(g.next!==this.byStart[g.end])throw new Error("Cannot overwrite across a split point");g=g.next,g.edit("",!1)}C.edit(i,a,!c)}else{const g=new te(e,A,"").edit(i,a);Q.next=g,g.previous=Q}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byEnd[e];return i?i.prependLeft(A):this.intro=A+this.intro,this}prependRight(e,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(e);const i=this.byStart[e];return i?i.prependRight(A):this.outro=A+this.outro,this}remove(e,A){for(;e<0;)e+=this.original.length;for(;A<0;)A+=this.original.length;if(e===A)return this;if(e<0||A>this.original.length)throw new Error("Character is out of bounds");if(e>A)throw new Error("end must be greater than start");this._split(e),this._split(A);let i=this.byStart[e];for(;i;)i.intro="",i.outro="",i.edit(""),i=A>i.end?this.byStart[i.end]:null;return this}reset(e,A){for(;e<0;)e+=this.original.length;for(;A<0;)A+=this.original.length;if(e===A)return this;if(e<0||A>this.original.length)throw new Error("Character is out of bounds");if(e>A)throw new Error("end must be greater than start");this._split(e),this._split(A);let i=this.byStart[e];for(;i;)i.reset(),i=A>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(W);if(e!==-1)return this.outro.substr(e+1);let A=this.outro,i=this.lastChunk;do{if(i.outro.length>0){if(e=i.outro.lastIndexOf(W),e!==-1)return i.outro.substr(e+1)+A;A=i.outro+A}if(i.content.length>0){if(e=i.content.lastIndexOf(W),e!==-1)return i.content.substr(e+1)+A;A=i.content+A}if(i.intro.length>0){if(e=i.intro.lastIndexOf(W),e!==-1)return i.intro.substr(e+1)+A;A=i.intro+A}}while(i=i.previous);return e=this.intro.lastIndexOf(W),e!==-1?this.intro.substr(e+1)+A:this.intro+A}slice(e=0,A=this.original.length){for(;e<0;)e+=this.original.length;for(;A<0;)A+=this.original.length;let i="",s=this.firstChunk;for(;s&&(s.start>e||s.end<=e);){if(s.start=A)return i;s=s.next}if(s&&s.edited&&s.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);const a=s;for(;s;){s.intro&&(a!==s||s.start===e)&&(i+=s.intro);const c=s.start=A;if(c&&s.edited&&s.end!==A)throw new Error(`Cannot use replaced character ${A} as slice end anchor.`);const C=a===s?e-s.start:0,Q=c?s.content.length+A-s.end:s.content.length;if(i+=s.content.slice(C,Q),s.outro&&(!c||s.end===A)&&(i+=s.outro),c)break;s=s.next}return i}snip(e,A){const i=this.clone();return i.remove(0,e),i.remove(A,i.original.length),i}_split(e){if(this.byStart[e]||this.byEnd[e])return;let A=this.lastSearchedChunk;const i=e>A.end;for(;A;){if(A.contains(e))return this._splitChunk(A,e);A=i?this.byStart[A.end]:this.byEnd[A.start]}}_splitChunk(e,A){if(e.edited&&e.content.length){const s=Ge(this.original)(A);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} \u2013 "${e.original}")`)}const i=e.split(A);return this.byEnd[A]=e,this.byStart[A]=i,this.byEnd[i.end]=i,e===this.lastChunk&&(this.lastChunk=i),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,A=this.firstChunk;for(;A;)e+=A.toString(),A=A.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,A=0;do A+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return A}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){const A=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(A,""),this.outro.length)return!0;let i=this.lastChunk;do{const s=i.end,a=i.trimEnd(A);if(i.end!==s&&(this.lastChunk===i&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.previous}while(i);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){const A=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(A,""),this.intro.length)return!0;let i=this.firstChunk;do{const s=i.end,a=i.trimStart(A);if(i.end!==s&&(i===this.lastChunk&&(this.lastChunk=i.next),this.byEnd[i.end]=i,this.byStart[i.next.start]=i.next,this.byEnd[i.next.end]=i.next),a)return!0;i=i.next}while(i);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,A){function i(a,c){return typeof A=="string"?A.replace(/\$(\$|&|\d+)/g,(C,Q)=>Q==="$"?"$":Q==="&"?a[0]:+Q{if(c.index!=null){const C=i(c,this.original);C!==c[0]&&this.overwrite(c.index,c.index+c[0].length,C)}});else{const a=this.original.match(e);if(a&&a.index!=null){const c=i(a,this.original);c!==a[0]&&this.overwrite(a.index,a.index+a[0].length,c)}}return this}_replaceString(e,A){const{original:i}=this,s=i.indexOf(e);return s!==-1&&this.overwrite(s,s+e.length,A),this}replace(e,A){return typeof e=="string"?this._replaceString(e,A):this._replaceRegexp(e,A)}_replaceAllString(e,A){const{original:i}=this,s=e.length;for(let a=i.indexOf(e);a!==-1;a=i.indexOf(e,a+s))i.slice(a,a+s)!==A&&this.overwrite(a,a+s,A);return this}replaceAll(e,A){if(typeof e=="string")return this._replaceAllString(e,A);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,A)}}var Ye;(function(n){n[n.Static=1]="Static",n[n.Dynamic=2]="Dynamic",n[n.ImportMeta=3]="ImportMeta",n[n.StaticSourcePhase=4]="StaticSourcePhase",n[n.DynamicSourcePhase=5]="DynamicSourcePhase"})(Ye||(Ye={}));const lA=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function He(n,e="@"){if(!w)return qe.then(()=>He(n));const A=n.length+1,i=(w.__heap_base.value||w.__heap_base)+4*A-w.memory.buffer.byteLength;i>0&&w.memory.grow(Math.ceil(i/65536));const s=w.sa(A-1);if((lA?QA:fA)(n,new Uint16Array(w.memory.buffer,s,A)),!w.parse())throw Object.assign(new Error(`Parse error ${e}:${n.slice(0,w.e()).split(`
`).length}:${w.e()-n.lastIndexOf(`
`,w.e()-1)}`),{idx:w.e()});const a=[],c=[];for(;w.ri();){const Q=w.is(),g=w.ie(),f=w.it(),r=w.ai(),m=w.id(),K=w.ss(),p=w.se();let S;w.ip()&&(S=C(n.slice(m===-1?Q-1:Q,m===-1?g+1:g))),a.push({n:S,t:f,s:Q,e:g,ss:K,se:p,d:m,a:r})}for(;w.re();){const Q=w.es(),g=w.ee(),f=w.els(),r=w.ele(),m=n.slice(Q,g),K=m[0],p=f<0?void 0:n.slice(f,r),S=p?p[0]:"";c.push({s:Q,e:g,ls:f,le:r,n:K==='"'||K==="'"?C(m):m,ln:S==='"'||S==="'"?C(p):p})}function C(Q){try{return(0,eval)(Q)}catch{}}return l(C,"k"),[a,c,!!w.f(),!!w.ms()]}l(He,"parse$1");function fA(n,e){const A=n.length;let i=0;for(;i>>8}}l(fA,"Q");function QA(n,e){const A=n.length;let i=0;for(;in.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:n})=>{w=n});var ke;let y,ne,Ie,z=2<<19;const Oe=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(n,e){const A=n.length;let i=0;for(;i>>8}},gA="xportmportlassforetaourceromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileifcatcfinallels";let L,_e,k;function CA(n,e="@"){L=n,_e=e;const A=2*L.length+(2<<18);if(A>z||!y){for(;A>z;)z*=2;ne=new ArrayBuffer(z),Oe(gA,new Uint16Array(ne,16,110)),y=function(c,C,Q){var g=new c.Int8Array(Q),f=new c.Int16Array(Q),r=new c.Int32Array(Q),m=new c.Uint8Array(Q),K=new c.Uint16Array(Q),p=1040;function S(){var t=0,o=0,h=0,u=0,E=0,B=0,I=0;I=p,p=p+10240|0,g[804]=1,g[803]=0,f[399]=0,f[400]=0,r[69]=r[2],g[805]=0,r[68]=0,g[802]=0,r[70]=I+2048,r[71]=I,g[806]=0,t=(r[3]|0)+-2|0,r[72]=t,o=t+(r[66]<<1)|0,r[73]=o;e:for(;;){if(h=t+2|0,r[72]=h,t>>>0>=o>>>0){u=18;break}t:do switch(f[h>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(f[400]|0)&&P(h)|0&&!(J(t+4|0,16,10)|0)&&(v(),(g[804]|0)==0)){u=9;break e}else u=17;break}case 105:{P(h)|0&&!(J(t+4|0,26,10)|0)&&H(),u=17;break}case 59:{u=17;break}case 47:switch(f[t+4>>1]|0){case 47:{Qe();break t}case 42:{le(1);break t}default:{u=16;break e}}default:{u=16;break e}}while(!1);(u|0)==17&&(u=0,r[69]=r[72]),t=r[72]|0,o=r[73]|0}(u|0)==9?(t=r[72]|0,r[69]=t,u=19):(u|0)==16?(g[804]=0,r[72]=t,u=19):(u|0)==18&&(g[802]|0?t=0:(t=h,u=19));do if((u|0)==19){e:for(;;){if(o=t+2|0,r[72]=o,t>>>0>=(r[73]|0)>>>0){u=92;break}t:do switch(f[o>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(f[400]|0)&&P(o)|0&&!(J(t+4|0,16,10)|0)&&v(),u=91;break}case 105:{P(o)|0&&!(J(t+4|0,26,10)|0)&&H(),u=91;break}case 99:{P(o)|0&&!(J(t+4|0,36,8)|0)&&O(f[t+12>>1]|0)|0&&(g[806]=1),u=91;break}case 40:{h=r[70]|0,t=f[400]|0,u=t&65535,r[h+(u<<3)>>2]=1,o=r[69]|0,f[400]=t+1<<16>>16,r[h+(u<<3)+4>>2]=o,u=91;break}case 41:{if(o=f[400]|0,!(o<<16>>16)){u=36;break e}h=o+-1<<16>>16,f[400]=h,u=f[399]|0,o=u&65535,u<<16>>16&&(r[(r[70]|0)+((h&65535)<<3)>>2]|0)==5&&(o=r[(r[71]|0)+(o+-1<<2)>>2]|0,h=o+4|0,r[h>>2]|0||(r[h>>2]=(r[69]|0)+2),r[o+12>>2]=t+4,f[399]=u+-1<<16>>16),u=91;break}case 123:{u=r[69]|0,h=r[63]|0,t=u;do if((f[u>>1]|0)==41&(h|0)!=0&&(r[h+4>>2]|0)==(u|0))if(o=r[64]|0,r[63]=o,o){r[o+32>>2]=0;break}else{r[59]=0;break}while(!1);h=r[70]|0,o=f[400]|0,u=o&65535,r[h+(u<<3)>>2]=g[806]|0?6:2,f[400]=o+1<<16>>16,r[h+(u<<3)+4>>2]=t,g[806]=0,u=91;break}case 125:{if(t=f[400]|0,!(t<<16>>16)){u=49;break e}h=r[70]|0,u=t+-1<<16>>16,f[400]=u,(r[h+((u&65535)<<3)>>2]|0)==4&&ye(),u=91;break}case 39:{R(39),u=91;break}case 34:{R(34),u=91;break}case 47:switch(f[t+4>>1]|0){case 47:{Qe();break t}case 42:{le(1);break t}default:{t=r[69]|0,o=f[t>>1]|0;A:do if(!(bt(o)|0))o<<16>>16==41?(h=f[400]|0,yt(r[(r[70]|0)+((h&65535)<<3)+4>>2]|0)|0||(u=65)):u=64;else switch(o<<16>>16){case 46:if(((f[t+-2>>1]|0)+-48&65535)<10){u=64;break A}else break A;case 43:if((f[t+-2>>1]|0)==43){u=64;break A}else break A;case 45:if((f[t+-2>>1]|0)==45){u=64;break A}else break A;default:break A}while(!1);(u|0)==64&&(h=f[400]|0,u=65);A:do if((u|0)==65){if(u=0,h<<16>>16&&(E=r[70]|0,B=(h&65535)+-1|0,o<<16>>16==102?(r[E+(B<<3)>>2]|0)==1:0)){if((f[t+-2>>1]|0)==111&&N(r[E+(B<<3)+4>>2]|0,44,3)|0)break}else u=69;if((u|0)==69&&o<<16>>16==125&&(u=r[70]|0,h=h&65535,pt(r[u+(h<<3)+4>>2]|0)|0||(r[u+(h<<3)>>2]|0)==6))break;if(!(kt(t)|0)){switch(o<<16>>16){case 0:break A;case 47:{if(g[805]|0)break A;break}default:}if(u=r[65]|0,u|0&&t>>>0>=(r[u>>2]|0)>>>0&&t>>>0<=(r[u+4>>2]|0)>>>0){he(),g[805]=0,u=91;break t}h=r[3]|0;do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t,o=f[t>>1]|0}while(!(fe(o)|0));if(re(o)|0){do{if(t>>>0<=h>>>0)break;t=t+-2|0,r[69]=t}while(re(f[t>>1]|0)|0);if(Kt(t)|0){he(),g[805]=0,u=91;break t}}g[805]=1,u=91;break t}}while(!1);he(),g[805]=0,u=91;break t}}case 96:{h=r[70]|0,o=f[400]|0,u=o&65535,r[h+(u<<3)+4>>2]=r[69],f[400]=o+1<<16>>16,r[h+(u<<3)>>2]=3,ye(),u=91;break}default:u=91}while(!1);(u|0)==91&&(u=0,r[69]=r[72]),t=r[72]|0}if((u|0)==36){U(),t=0;break}else if((u|0)==49){U(),t=0;break}else if((u|0)==92){t=g[802]|0?0:(f[399]|f[400])<<16>>16==0;break}}while(!1);return p=I,t|0}l(S,"b");function v(){var t=0,o=0,h=0,u=0,E=0,B=0,I=0,G=0,Ce=0,Ee=0,Be=0,de=0,b=0,D=0;G=r[72]|0,Ce=r[65]|0,D=G+12|0,r[72]=D,h=d(1)|0,t=r[72]|0,(t|0)==(D|0)&&!(Ae(h)|0)||(b=3);e:do if((b|0)==3){t:do switch(h<<16>>16){case 123:{for(r[72]=t+2,t=d(1)|0,o=r[72]|0;;){if(T(t)|0?(R(t),t=(r[72]|0)+2|0,r[72]=t):(F(t)|0,t=r[72]|0),d(1)|0,t=Le(o,t)|0,t<<16>>16==44&&(r[72]=(r[72]|0)+2,t=d(1)|0),t<<16>>16==125){b=15;break}if(D=o,o=r[72]|0,(o|0)==(D|0)){b=12;break}if(o>>>0>(r[73]|0)>>>0){b=14;break}}if((b|0)==12){U();break e}else if((b|0)==14){U();break e}else if((b|0)==15){g[803]=1,r[72]=(r[72]|0)+2;break t}break}case 42:{r[72]=t+2,d(1)|0,D=r[72]|0,Le(D,D)|0;break}default:{switch(g[804]=0,h<<16>>16){case 100:{switch(G=t+14|0,r[72]=G,(d(1)|0)<<16>>16){case 97:{o=r[72]|0,!(J(o+2|0,72,8)|0)&&(E=o+10|0,re(f[E>>1]|0)|0)&&(r[72]=E,d(0)|0,b=22);break}case 102:{b=22;break}case 99:{o=r[72]|0,!(J(o+2|0,36,8)|0)&&(u=o+10|0,D=f[u>>1]|0,O(D)|0|D<<16>>16==123)&&(r[72]=u,B=d(1)|0,B<<16>>16!=123)&&(de=B,b=31);break}default:}A:do if((b|0)==22&&(I=r[72]|0,(J(I+2|0,80,14)|0)==0)){if(h=I+16|0,o=f[h>>1]|0,!(O(o)|0))switch(o<<16>>16){case 40:case 42:break;default:break A}r[72]=h,o=d(1)|0,o<<16>>16==42&&(r[72]=(r[72]|0)+2,o=d(1)|0),o<<16>>16!=40&&(de=o,b=31)}while(!1);if((b|0)==31&&(Ee=r[72]|0,F(de)|0,Be=r[72]|0,Be>>>0>Ee>>>0)){q(t,G,Ee,Be),r[72]=(r[72]|0)+-2;break e}q(t,G,0,0),r[72]=t+12;break e}case 97:{r[72]=t+10,d(0)|0,t=r[72]|0,b=35;break}case 102:{b=35;break}case 99:{if(!(J(t+2|0,36,8)|0)&&(o=t+10|0,fe(f[o>>1]|0)|0)){r[72]=o,D=d(1)|0,b=r[72]|0,F(D)|0,D=r[72]|0,q(b,D,b,D),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((b|0)==35){r[72]=t+16,t=d(1)|0,t<<16>>16==42&&(r[72]=(r[72]|0)+2,t=d(1)|0),b=r[72]|0,F(t)|0,D=r[72]|0,q(b,D,b,D),r[72]=(r[72]|0)+-2;break e}r[72]=t+6,g[804]=0,h=d(1)|0,t=r[72]|0,h=(F(h)|0|32)<<16>>16==123,u=r[72]|0,h&&(r[72]=u+2,D=d(1)|0,t=r[72]|0,F(D)|0);A:for(;o=r[72]|0,(o|0)!=(t|0);){if(q(t,o,t,o),o=d(1)|0,h)switch(o<<16>>16){case 93:case 125:break e;default:}if(t=r[72]|0,o<<16>>16!=44){b=51;break}switch(r[72]=t+2,o=d(1)|0,t=r[72]|0,o<<16>>16){case 91:case 123:{b=51;break A}default:}F(o)|0}if((b|0)==51&&(r[72]=t+-2),!h)break e;r[72]=u+-2;break e}}while(!1);if(D=(d(1)|0)<<16>>16==102,t=r[72]|0,D&&!(J(t+2|0,66,6)|0))for(r[72]=t+8,j(G,d(1)|0,0),t=Ce|0?Ce+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)}l(v,"k");function H(){var t=0,o=0,h=0,u=0,E=0,B=0,I=0;E=r[72]|0,h=E+12|0,r[72]=h,u=d(1)|0,o=r[72]|0;e:do if(u<<16>>16!=46)u<<16>>16==115&o>>>0>h>>>0?!(J(o+2|0,56,10)|0)&&(t=o+12|0,O(f[t>>1]|0)|0)?B=14:(o=6,h=0,B=46):(t=u,h=0,B=15);else switch(r[72]=o+2,(d(1)|0)<<16>>16){case 109:{if(t=r[72]|0,J(t+2|0,50,6)|0||(o=r[69]|0,!(ge(o)|0)&&(f[o>>1]|0)==46))break e;ue(E,E,t+8|0,2);break e}case 115:{if(t=r[72]|0,J(t+2|0,56,10)|0||(o=r[69]|0,!(ge(o)|0)&&(f[o>>1]|0)==46))break e;t=t+12|0,B=14;break e}default:break e}while(!1);(B|0)==14&&(r[72]=t,t=d(1)|0,h=1,B=15);e:do if((B|0)==15)switch(t<<16>>16){case 40:{if(o=r[70]|0,I=f[400]|0,u=I&65535,r[o+(u<<3)>>2]=5,t=r[72]|0,f[400]=I+1<<16>>16,r[o+(u<<3)+4>>2]=t,(f[r[69]>>1]|0)==46)break e;switch(r[72]=t+2,o=d(1)|0,ue(E,r[72]|0,0,t),h?(t=r[63]|0,r[t+28>>2]=5):t=r[63]|0,E=r[71]|0,I=f[399]|0,f[399]=I+1<<16>>16,r[E+((I&65535)<<2)>>2]=t,o<<16>>16){case 39:{R(39);break}case 34:{R(34);break}default:{r[72]=(r[72]|0)+-2;break e}}switch(t=(r[72]|0)+2|0,r[72]=t,(d(1)|0)<<16>>16){case 44:{r[72]=(r[72]|0)+2,d(1)|0,E=r[63]|0,r[E+4>>2]=t,I=r[72]|0,r[E+16>>2]=I,g[E+24>>0]=1,r[72]=I+-2;break e}case 41:{f[400]=(f[400]|0)+-1<<16>>16,I=r[63]|0,r[I+4>>2]=t,r[I+12>>2]=(r[72]|0)+2,g[I+24>>0]=1,f[399]=(f[399]|0)+-1<<16>>16;break e}default:{r[72]=(r[72]|0)+-2;break e}}}case 123:{if(h){o=12,h=1,B=46;break e}if(t=r[72]|0,f[400]|0){r[72]=t+-2;break e}for(;!(t>>>0>=(r[73]|0)>>>0);){if(t=d(1)|0,T(t)|0)R(t);else if(t<<16>>16==125){B=36;break}t=(r[72]|0)+2|0,r[72]=t}if((B|0)==36&&(r[72]=(r[72]|0)+2),I=(d(1)|0)<<16>>16==102,t=r[72]|0,I&&J(t+2|0,66,6)|0){U();break e}if(r[72]=t+8,t=d(1)|0,T(t)|0){j(E,t,0);break e}else{U();break e}}default:{if(h){o=12,h=1,B=46;break e}switch(t<<16>>16){case 42:case 39:case 34:{h=0,B=48;break e}default:{o=6,h=0,B=46;break e}}}}while(!1);(B|0)==46&&(t=r[72]|0,(t|0)==(E+(o<<1)|0)?r[72]=t+-2:B=48);do if((B|0)==48){if(f[400]|0){r[72]=(r[72]|0)+-2;break}for(t=r[73]|0,o=r[72]|0;;){if(o>>>0>=t>>>0){B=55;break}if(u=f[o>>1]|0,T(u)|0){B=53;break}I=o+2|0,r[72]=I,o=I}if((B|0)==53){j(E,u,h);break}else if((B|0)==55){U();break}}while(!1)}l(H,"l");function j(t,o,h){t=t|0,o=o|0,h=h|0;var u=0,E=0;switch(u=(r[72]|0)+2|0,o<<16>>16){case 39:{R(39),E=5;break}case 34:{R(34),E=5;break}default:U()}do if((E|0)==5){if(ue(t,u,r[72]|0,1),h&&(r[(r[63]|0)+28>>2]=4),r[72]=(r[72]|0)+2,o=d(0)|0,h=o<<16>>16==97,h?(u=r[72]|0,J(u+2|0,94,10)|0&&(E=13)):(u=r[72]|0,o<<16>>16==119&&(f[u+2>>1]|0)==105&&(f[u+4>>1]|0)==116&&(f[u+6>>1]|0)==104||(E=13)),(E|0)==13){r[72]=u+-2;break}if(r[72]=u+((h?6:4)<<1),(d(1)|0)<<16>>16!=123){r[72]=u;break}h=r[72]|0,o=h;e:for(;;){switch(r[72]=o+2,o=d(1)|0,o<<16>>16){case 39:{R(39),r[72]=(r[72]|0)+2,o=d(1)|0;break}case 34:{R(34),r[72]=(r[72]|0)+2,o=d(1)|0;break}default:o=F(o)|0}if(o<<16>>16!=58){E=22;break}switch(r[72]=(r[72]|0)+2,(d(1)|0)<<16>>16){case 39:{R(39);break}case 34:{R(34);break}default:{E=26;break e}}switch(r[72]=(r[72]|0)+2,(d(1)|0)<<16>>16){case 125:{E=31;break e}case 44:break;default:{E=30;break e}}if(r[72]=(r[72]|0)+2,(d(1)|0)<<16>>16==125){E=31;break}o=r[72]|0}if((E|0)==22){r[72]=u;break}else if((E|0)==26){r[72]=u;break}else if((E|0)==30){r[72]=u;break}else if((E|0)==31){E=r[63]|0,r[E+16>>2]=h,r[E+12>>2]=(r[72]|0)+2;break}}while(!1)}l(j,"u");function kt(t){t=t|0;e:do switch(f[t>>1]|0){case 100:switch(f[t+-2>>1]|0){case 105:{t=N(t+-4|0,104,2)|0;break e}case 108:{t=N(t+-4|0,108,3)|0;break e}default:{t=0;break e}}case 101:switch(f[t+-2>>1]|0){case 115:switch(f[t+-4>>1]|0){case 108:{t=X(t+-6|0,101)|0;break e}case 97:{t=X(t+-6|0,99)|0;break e}default:{t=0;break e}}case 116:{t=N(t+-4|0,114,4)|0;break e}case 117:{t=N(t+-4|0,122,6)|0;break e}default:{t=0;break e}}case 102:{if((f[t+-2>>1]|0)==111&&(f[t+-4>>1]|0)==101)switch(f[t+-6>>1]|0){case 99:{t=N(t+-8|0,134,6)|0;break e}case 112:{t=N(t+-8|0,146,2)|0;break e}default:{t=0;break e}}else t=0;break}case 107:{t=N(t+-2|0,150,4)|0;break}case 110:{t=t+-2|0,X(t,105)|0?t=1:t=N(t,158,5)|0;break}case 111:{t=X(t+-2|0,100)|0;break}case 114:{t=N(t+-2|0,168,7)|0;break}case 116:{t=N(t+-2|0,182,4)|0;break}case 119:switch(f[t+-2>>1]|0){case 101:{t=X(t+-4|0,110)|0;break e}case 111:{t=N(t+-4|0,190,3)|0;break e}default:{t=0;break e}}default:t=0}while(!1);return t|0}l(kt,"o");function ye(){var t=0,o=0,h=0,u=0;o=r[73]|0,h=r[72]|0;e:for(;;){if(t=h+2|0,h>>>0>=o>>>0){o=10;break}switch(f[t>>1]|0){case 96:{o=7;break e}case 36:{if((f[h+4>>1]|0)==123){o=6;break e}break}case 92:{t=h+4|0;break}default:}h=t}(o|0)==6?(t=h+4|0,r[72]=t,o=r[70]|0,u=f[400]|0,h=u&65535,r[o+(h<<3)>>2]=4,f[400]=u+1<<16>>16,r[o+(h<<3)+4>>2]=t):(o|0)==7?(r[72]=t,h=r[70]|0,u=(f[400]|0)+-1<<16>>16,f[400]=u,(r[h+((u&65535)<<3)>>2]|0)!=3&&U()):(o|0)==10&&(r[72]=t,U())}l(ye,"h");function d(t){t=t|0;var o=0,h=0,u=0;h=r[72]|0;e:do{o=f[h>>1]|0;t:do if(o<<16>>16!=47)if(t){if(O(o)|0)break;break e}else{if(re(o)|0)break;break e}else switch(f[h+2>>1]|0){case 47:{Qe();break t}case 42:{le(t);break t}default:{o=47;break e}}while(!1);u=r[72]|0,h=u+2|0,r[72]=h}while(u>>>0<(r[73]|0)>>>0);return o|0}l(d,"w");function ue(t,o,h,u){t=t|0,o=o|0,h=h|0,u=u|0;var E=0,B=0;B=r[67]|0,r[67]=B+36,E=r[63]|0,r[(E|0?E+32|0:236)>>2]=B,r[64]=E,r[63]=B,r[B+8>>2]=t,(u|0)==2?(t=3,E=h):(E=(u|0)==1,t=E?1:2,E=E?h+2|0:0),r[B+12>>2]=E,r[B+28>>2]=t,r[B>>2]=o,r[B+4>>2]=h,r[B+16>>2]=0,r[B+20>>2]=u,o=(u|0)==1,g[B+24>>0]=o&1,r[B+32>>2]=0,o|(u|0)==2&&(g[803]=1)}l(ue,"d");function R(t){t=t|0;var o=0,h=0,u=0,E=0;for(E=r[73]|0,o=r[72]|0;;){if(u=o+2|0,o>>>0>=E>>>0){o=9;break}if(h=f[u>>1]|0,h<<16>>16==t<<16>>16){o=10;break}if(h<<16>>16==92)h=o+4|0,(f[h>>1]|0)==13?(o=o+6|0,o=(f[o>>1]|0)==10?o:h):o=h;else if(Se(h)|0){o=9;break}else o=u}(o|0)==9?(r[72]=u,U()):(o|0)==10&&(r[72]=u)}l(R,"v");function Le(t,o){t=t|0,o=o|0;var h=0,u=0,E=0,B=0;return h=r[72]|0,u=f[h>>1]|0,B=(t|0)==(o|0),E=B?0:t,B=B?0:o,u<<16>>16==97&&(r[72]=h+4,h=d(1)|0,t=r[72]|0,T(h)|0?(R(h),o=(r[72]|0)+2|0,r[72]=o):(F(h)|0,o=r[72]|0),u=d(1)|0,h=r[72]|0),(h|0)!=(t|0)&&q(t,o,E,B),u|0}l(Le,"A");function It(){var t=0,o=0,h=0;h=r[73]|0,o=r[72]|0;e:for(;;){if(t=o+2|0,o>>>0>=h>>>0){o=6;break}switch(f[t>>1]|0){case 13:case 10:{o=6;break e}case 93:{o=7;break e}case 92:{t=o+4|0;break}default:}o=t}return(o|0)==6?(r[72]=t,U(),t=0):(o|0)==7&&(r[72]=t,t=93),t|0}l(It,"C");function he(){var t=0,o=0,h=0;e:for(;;){if(t=r[72]|0,o=t+2|0,r[72]=o,t>>>0>=(r[73]|0)>>>0){h=7;break}switch(f[o>>1]|0){case 13:case 10:{h=7;break e}case 47:break e;case 91:{It()|0;break}case 92:{r[72]=t+4;break}default:}}(h|0)==7&&U()}l(he,"g");function pt(t){switch(t=t|0,f[t>>1]|0){case 62:{t=(f[t+-2>>1]|0)==61;break}case 41:case 59:{t=1;break}case 104:{t=N(t+-2|0,210,4)|0;break}case 121:{t=N(t+-2|0,218,6)|0;break}case 101:{t=N(t+-2|0,230,3)|0;break}default:t=0}return t|0}l(pt,"p");function le(t){t=t|0;var o=0,h=0,u=0,E=0,B=0;for(E=(r[72]|0)+2|0,r[72]=E,h=r[73]|0;o=E+2|0,!(E>>>0>=h>>>0||(u=f[o>>1]|0,!t&&Se(u)|0));){if(u<<16>>16==42&&(f[E+4>>1]|0)==47){B=8;break}E=o}(B|0)==8&&(r[72]=o,o=E+4|0),r[72]=o}l(le,"y");function J(t,o,h){t=t|0,o=o|0,h=h|0;var u=0,E=0;e:do if(!h)t=0;else{for(;u=g[t>>0]|0,E=g[o>>0]|0,u<<24>>24==E<<24>>24;)if(h=h+-1|0,h)t=t+1|0,o=o+1|0;else{t=0;break e}t=(u&255)-(E&255)|0}while(!1);return t|0}l(J,"m");function Ae(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}l(Ae,"I");function bt(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}l(bt,"U");function Ne(t){t=t|0;var o=0;o=f[t>>1]|0;e:do if((o+-9&65535)>=5){switch(o<<16>>16){case 160:case 32:{o=1;break e}default:}if(Ae(o)|0)return o<<16>>16!=46|(ge(t)|0)|0;o=0}else o=1;while(!1);return o|0}l(Ne,"x");function mt(t){t=t|0;var o=0,h=0,u=0,E=0;return h=p,p=p+16|0,u=h,r[u>>2]=0,r[66]=t,o=r[3]|0,E=o+(t<<1)|0,t=E+2|0,f[E>>1]=0,r[u>>2]=t,r[67]=t,r[59]=0,r[63]=0,r[61]=0,r[60]=0,r[65]=0,r[62]=0,p=h,o|0}l(mt,"S");function q(t,o,h,u){t=t|0,o=o|0,h=h|0,u=u|0;var E=0,B=0;E=r[67]|0,r[67]=E+20,B=r[65]|0,r[(B|0?B+16|0:240)>>2]=E,r[65]=E,r[E>>2]=t,r[E+4>>2]=o,r[E+8>>2]=h,r[E+12>>2]=u,r[E+16>>2]=0,g[803]=1}l(q,"O");function N(t,o,h){t=t|0,o=o|0,h=h|0;var u=0,E=0;return u=t+(0-h<<1)|0,E=u+2|0,t=r[3]|0,E>>>0>=t>>>0&&!(J(E,o,h<<1)|0)?(E|0)==(t|0)?t=1:t=Ne(u)|0:t=0,t|0}l(N,"$");function Kt(t){switch(t=t|0,f[t>>1]|0){case 107:{t=N(t+-2|0,150,4)|0;break}case 101:{(f[t+-2>>1]|0)==117?t=N(t+-4|0,122,6)|0:t=0;break}default:t=0}return t|0}l(Kt,"j");function X(t,o){t=t|0,o=o|0;var h=0;return h=r[3]|0,h>>>0<=t>>>0&&(f[t>>1]|0)==o<<16>>16?(h|0)==(t|0)?h=1:h=fe(f[t+-2>>1]|0)|0:h=0,h|0}l(X,"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&(Ae(t)|0)}while(!1);return t|0}l(fe,"E");function Qe(){var t=0,o=0,h=0;t=r[73]|0,h=r[72]|0;e:for(;o=h+2|0,!(h>>>0>=t>>>0);)switch(f[o>>1]|0){case 13:case 10:break e;default:h=o}r[72]=o}l(Qe,"P");function F(t){for(t=t|0;!(O(t)|0||Ae(t)|0);)if(t=(r[72]|0)+2|0,r[72]=t,t=f[t>>1]|0,!(t<<16>>16)){t=0;break}return t|0}l(F,"q");function Dt(){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}l(Dt,"z");function yt(t){return t=t|0,!(N(t,196,5)|0)&&!(N(t,44,3)|0)?t=N(t,206,2)|0:t=1,t|0}l(yt,"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}l(re,"F");function ge(t){return t=t|0,(f[t>>1]|0)==46&&(f[t+-2>>1]|0)==46?t=(f[t+-4>>1]|0)==46:t=0,t|0}l(ge,"G");function P(t){return t=t|0,(r[3]|0)==(t|0)?t=1:t=Ne(t+-2|0)|0,t|0}l(P,"H");function Lt(){var t=0;return t=r[(r[62]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}l(Lt,"J");function Nt(){var t=0;return t=r[(r[61]|0)+12>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}l(Nt,"K");function St(){var t=0;return t=r[(r[62]|0)+8>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}l(St,"L");function Jt(){var t=0;return t=r[(r[61]|0)+16>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}l(Jt,"M");function Rt(){var t=0;return t=r[(r[61]|0)+4>>2]|0,t?t=t-(r[3]|0)>>1:t=-1,t|0}l(Rt,"N");function Ut(){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}l(Ut,"Q");function vt(){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}l(vt,"R");function U(){g[802]=1,r[68]=(r[72]|0)-(r[3]|0)>>1,r[72]=(r[73]|0)+2}l(U,"T");function O(t){return t=t|0,(t|128)<<16>>16==160|(t+-9&65535)<5|0}l(O,"V");function T(t){return t=t|0,t<<16>>16==39|t<<16>>16==34|0}l(T,"W");function xt(){return(r[(r[61]|0)+8>>2]|0)-(r[3]|0)>>1|0}l(xt,"X");function Ft(){return(r[(r[62]|0)+4>>2]|0)-(r[3]|0)>>1|0}l(Ft,"Y");function Se(t){return t=t|0,t<<16>>16==13|t<<16>>16==10|0}l(Se,"Z");function Mt(){return(r[r[61]>>2]|0)-(r[3]|0)>>1|0}l(Mt,"_");function Gt(){return(r[r[62]>>2]|0)-(r[3]|0)>>1|0}l(Gt,"ee");function Yt(){return m[(r[61]|0)+24>>0]|0|0}l(Yt,"ae");function Ht(t){t=t|0,r[3]=t}l(Ht,"re");function qt(){return r[(r[61]|0)+28>>2]|0}l(qt,"ie");function Ot(){return(g[803]|0)!=0|0}l(Ot,"se");function _t(){return(g[804]|0)!=0|0}l(_t,"fe");function jt(){return r[68]|0}l(jt,"te");function Xt(t){return t=t|0,p=t+992+15&-16,992}return l(Xt,"ce"),{su:Xt,ai:Jt,e:jt,ee:Ft,ele:Lt,els:St,es:Gt,f:_t,id:Dt,ie:Rt,ip:Yt,is:Mt,it:qt,ms:Ot,p:S,re:vt,ri:Ut,sa:mt,se:Nt,ses:Ht,ss:xt}}(typeof self<"u"?self:global,{},ne),Ie=y.su(z-(2<<17))}const i=L.length+1;y.ses(Ie),y.sa(i-1),Oe(L,new Uint16Array(ne,Ie,i)),y.p()||(k=y.e(),M());const s=[],a=[];for(;y.ri();){const c=y.is(),C=y.ie(),Q=y.ai(),g=y.id(),f=y.ss(),r=y.se(),m=y.it();let K;y.ip()&&(K=pe(g===-1?c:c+1,L.charCodeAt(g===-1?c-1:c))),s.push({t:m,n:K,s:c,e:C,ss:f,se:r,d:g,a:Q})}for(;y.re();){const c=y.es(),C=y.ee(),Q=y.els(),g=y.ele(),f=L.charCodeAt(c),r=Q>=0?L.charCodeAt(Q):-1;a.push({s:c,e:C,ls:Q,le:g,n:f===34||f===39?pe(c+1,f):L.slice(c,C),ln:Q<0?void 0:r===34||r===39?pe(Q+1,r):L.slice(Q,g)})}return[s,a,!!y.f(),!!y.ms()]}l(CA,"parse");function pe(n,e){k=n;let A="",i=k;for(;;){k>=L.length&&M();const s=L.charCodeAt(k);if(s===e)break;s===92?(A+=L.slice(i,k),A+=EA(),i=k):(s===8232||s===8233||je(s)&&M(),++k)}return A+=L.slice(i,k++),A}l(pe,"b");function EA(){let n=L.charCodeAt(++k);switch(++k,n){case 110:return`
`;case 114:return"\r";case 120:return String.fromCharCode(be(2));case 117:return function(){const e=L.charCodeAt(k);let A;return e===123?(++k,A=be(L.indexOf("}",k)-k),++k,A>1114111&&M()):A=be(4),A<=65535?String.fromCharCode(A):(A-=65536,String.fromCharCode(55296+(A>>10),56320+(1023&A)))}();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:L.charCodeAt(k)===10&&++k;case 10:return"";case 56:case 57:M();default:if(n>=48&&n<=55){let e=L.substr(k-1,3).match(/^[0-7]+/)[0],A=parseInt(e,8);return A>255&&(e=e.slice(0,-1),A=parseInt(e,8)),k+=e.length-1,n=L.charCodeAt(k),e==="0"&&n!==56&&n!==57||M(),String.fromCharCode(A)}return je(n)?"":String.fromCharCode(n)}}l(EA,"k");function be(n){const e=k;let A=0,i=0;for(let s=0;s=97)a=c-97+10;else if(c>=65)a=c-65+10;else{if(!(c>=48&&c<=57))break;a=c-48}if(a>=16)break;i=c,A=16*A+a}else i!==95&&s!==0||M(),i=c}return i!==95&&k-e===n||M(),A}l(be,"l");function je(n){return n===13||n===10}l(je,"u");function M(){throw Object.assign(Error(`Parse error ${_e}:${L.slice(0,k).split(`
`).length}:${k-L.lastIndexOf(`
`,k-1)}`),{idx:k})}l(M,"o");let Xe=!1;qe.then(()=>{Xe=!0});const Pe=l((n,e)=>Xe?He(n,e):CA(n,e),"parseEsm"),BA=l(n=>{if(!n.includes("import")&&!n.includes("export"))return!1;try{return Pe(n)[3]}catch{return!0}},"isESM"),Te="2",dA=(n=>{const e="default";return n[e]&&typeof n[e]=="object"&&"__esModule"in n[e]?n[e]:n}).toString(),wA=`.then(${dA})`,me=l((n,e,A)=>{if(A){if(!e.includes("import("))return}else if(!e.includes("import"))return;const s=Pe(e,n)[0].filter(Q=>Q.d>-1);if(s.length===0)return;const a=new De(e);for(const Q of s)a.appendRight(Q.se,wA);const c=a.toString(),C=a.generateMap({source:n,includeContent:!1,hires:"boundary"});return{code:c,map:C}},"transformDynamicImport"),Ze=l(n=>{try{const e=x.readFileSync(n,"utf8");return JSON.parse(e)}catch{}},"readJsonFile"),$e=l(()=>{},"noop"),Ve=l(()=>Math.floor(Date.now()/1e8),"getTime");class kA extends Map{static{l(this,"FileCache")}cacheDirectory=Vt.tmpdir;oldCacheDirectory=Z.join($t.tmpdir(),"tsx");cacheFiles;constructor(){super(),x.mkdirSync(this.cacheDirectory,{recursive:!0}),this.cacheFiles=x.readdirSync(this.cacheDirectory).map(e=>{const[A,i]=e.split("-");return{time:Number(A),key:i,fileName:e}}),setImmediate(()=>{this.expireDiskCache(),this.removeOldCacheDirectory()})}get(e){const A=super.get(e);if(A)return A;const i=this.cacheFiles.find(c=>c.key===e);if(!i)return;const s=Z.join(this.cacheDirectory,i.fileName),a=Ze(s);if(!a){x.promises.unlink(s).then(()=>{const c=this.cacheFiles.indexOf(i);this.cacheFiles.splice(c,1)},()=>{});return}return super.set(e,a),a}set(e,A){if(super.set(e,A),A){const i=Ve();x.promises.writeFile(Z.join(this.cacheDirectory,`${i}-${e}`),JSON.stringify(A)).catch($e)}return this}expireDiskCache(){const e=Ve();for(const A of this.cacheFiles)e-A.time>7&&x.promises.unlink(Z.join(this.cacheDirectory,A.fileName)).catch($e)}async removeOldCacheDirectory(){try{await x.promises.access(this.oldCacheDirectory).then(()=>!0)&&("rm"in x.promises?await x.promises.rm(this.oldCacheDirectory,{recursive:!0,force:!0}):await x.promises.rmdir(this.oldCacheDirectory,{recursive:!0}))}catch{}}}var se=process.env.TSX_DISABLE_CACHE?new Map:new kA;const IA=/^[\w+.-]+:\/\//,pA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,bA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function mA(n){return IA.test(n)}l(mA,"isAbsoluteUrl");function KA(n){return n.startsWith("//")}l(KA,"isSchemeRelativeUrl");function We(n){return n.startsWith("/")}l(We,"isAbsolutePath");function DA(n){return n.startsWith("file:")}l(DA,"isFileUrl");function ze(n){return/^[.?#]/.test(n)}l(ze,"isRelative");function oe(n){const e=pA.exec(n);return et(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}l(oe,"parseAbsoluteUrl");function yA(n){const e=bA.exec(n),A=e[2];return et("file:","",e[1]||"","",We(A)?A:"/"+A,e[3]||"",e[4]||"")}l(yA,"parseFileUrl");function et(n,e,A,i,s,a,c){return{scheme:n,user:e,host:A,port:i,path:s,query:a,hash:c,type:7}}l(et,"makeUrl");function tt(n){if(KA(n)){const A=oe("http:"+n);return A.scheme="",A.type=6,A}if(We(n)){const A=oe("http://foo.com"+n);return A.scheme="",A.host="",A.type=5,A}if(DA(n))return yA(n);if(mA(n))return oe(n);const e=oe("http://foo.com/"+n);return e.scheme="",e.host="",e.type=n?n.startsWith("?")?3:n.startsWith("#")?2:4:1,e}l(tt,"parseUrl");function LA(n){if(n.endsWith("/.."))return n;const e=n.lastIndexOf("/");return n.slice(0,e+1)}l(LA,"stripPathFilename");function NA(n,e){At(e,e.type),n.path==="/"?n.path=e.path:n.path=LA(e.path)+n.path}l(NA,"mergePaths");function At(n,e){const A=e<=4,i=n.path.split("/");let s=1,a=0,c=!1;for(let Q=1;Qi&&(i=c)}At(A,i);const s=A.query+A.hash;switch(i){case 2:case 3:return s;case 4:{const a=A.path.slice(1);return a?ze(e||n)&&!ze(a)?"./"+a+s:a+s:s||"."}case 5:return A.path+s;default:return A.scheme+"//"+A.user+A.host+A.port+A.path+s}}l(SA,"resolve$1");function rt(n,e){return e&&!e.endsWith("/")&&(e+="/"),SA(n,e)}l(rt,"resolve");function JA(n){if(!n)return"";const e=n.lastIndexOf("/");return n.slice(0,e+1)}l(JA,"stripFilename");const Y=0;function RA(n,e){const A=it(n,0);if(A===n.length)return n;e||(n=n.slice());for(let i=A;i>1),a=n[s][Y]-e;if(a===0)return ae=!0,s;a<0?A=s+1:i=s-1}return ae=!1,A-1}l(FA,"binarySearch");function MA(n,e,A){for(let i=A-1;i>=0&&n[i][Y]===e;A=i--);return A}l(MA,"lowerBound");function GA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}l(GA,"memoizedState");function YA(n,e,A,i){const{lastKey:s,lastNeedle:a,lastIndex:c}=A;let C=0,Q=n.length-1;if(i===s){if(e===a)return ae=c!==-1&&n[c][Y]===e,c;e>=a?C=c===-1?0:c:Q=c}return A.lastKey=i,A.lastNeedle=e,A.lastIndex=FA(n,e,C,Q)}l(YA,"memoizedBinarySearch");class nt{static{l(this,"TraceMap")}constructor(e,A){const i=typeof e=="string";if(!i&&e._decodedMemo)return e;const s=i?JSON.parse(e):e,{version:a,file:c,names:C,sourceRoot:Q,sources:g,sourcesContent:f}=s;this.version=a,this.file=c,this.names=C||[],this.sourceRoot=Q,this.sources=g,this.sourcesContent=f,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const r=rt(Q||"",JA(A));this.resolvedSources=g.map(K=>rt(K||"",r));const{mappings:m}=s;typeof m=="string"?(this._encoded=m,this._decoded=void 0):(this._encoded=void 0,this._decoded=RA(m,i)),this._decodedMemo=GA(),this._bySources=void 0,this._bySourceMemos=void 0}}function dr(n){return n}l(dr,"cast$2");function st(n){var e;return(e=n)._decoded||(e._decoded=zt(n._encoded))}l(st,"decodedMappings");function HA(n,e,A){const i=st(n);if(e>=i.length)return null;const s=i[e],a=qA(s,n._decodedMemo,e,A);return a===-1?null:s[a]}l(HA,"traceSegment");function qA(n,e,A,i,s){let a=YA(n,i,e,A);return ae&&(a=MA(n,i,a)),a===-1||a===n.length?-1:a}l(qA,"traceSegmentInternal");class Ke{static{l(this,"SetArray")}constructor(){this._indexes={__proto__:null},this.array=[]}}function wr(n){return n}l(wr,"cast$1");function ot(n,e){return n._indexes[e]}l(ot,"get");function ee(n,e){const A=ot(n,e);if(A!==void 0)return A;const{array:i,_indexes:s}=n,a=i.push(e);return s[e]=a-1}l(ee,"put");function OA(n,e){const A=ot(n,e);if(A===void 0)return;const{array:i,_indexes:s}=n;for(let a=A+1;aer(!0,n,e,A,i,s,a,c),"maybeAddSegment");function VA(n,e,A){const{_sources:i,_sourcesContent:s}=n,a=ee(i,e);s[a]=A}l(VA,"setSourceContent");function WA(n,e,A=!0){const{_sources:i,_sourcesContent:s,_ignoreList:a}=n,c=ee(i,e);c===s.length&&(s[c]=null),A?ee(a,c):OA(a,c)}l(WA,"setIgnore");function ct(n){const{_mappings:e,_sources:A,_sourcesContent:i,_names:s,_ignoreList:a}=n;return rr(e),{version:3,file:n.file||void 0,names:s.array,sourceRoot:n.sourceRoot||void 0,sources:A.array,sourcesContent:i,mappings:e,ignoreList:a.array}}l(ct,"toDecodedMap");function zA(n){const e=ct(n);return Object.assign(Object.assign({},e),{mappings:Me(e.mappings)})}l(zA,"toEncodedMap");function er(n,e,A,i,s,a,c,C,Q){const{_mappings:g,_sources:f,_sourcesContent:r,_names:m}=e,K=tr(g,A),p=Ar(K,i);if(!s)return ir(K,p)?void 0:ut(K,p,[i]);const S=ee(f,s),v=C?ee(m,C):at;if(S===r.length&&(r[S]=null),!nr(K,p,S,a,c,v))return ut(K,p,C?[i,S,a,c,v]:[i,S,a,c])}l(er,"addSegmentInternal");function tr(n,e){for(let A=n.length;A<=e;A++)n[A]=[];return n[e]}l(tr,"getLine");function Ar(n,e){let A=n.length;for(let i=A-1;i>=0;A=i--){const s=n[i];if(e>=s[_A])break}return A}l(Ar,"getColumnIndex");function ut(n,e,A){for(let i=n.length;i>e;i--)n[i]=n[i-1];n[e]=A}l(ut,"insert");function rr(n){const{length:e}=n;let A=e;for(let i=A-1;i>=0&&!(n[i].length>0);A=i,i--);Anew nt(a,"")),i=A.pop();for(let a=0;a1)throw new Error(`Transformation map ${a} must have exactly one source file.
Did you specify these with the most recent transformation maps first?`);let s=Ct(i,e,"",0);for(let a=A.length-1;a>=0;a--)s=Qt(A[a],[s]);return s}l(ur,"buildSourceMapTree");function Ct(n,e,A,i){const{resolvedSources:s,sourcesContent:a,ignoreList:c}=n,C=i+1,Q=s.map((g,f)=>{const r={importer:A,depth:C,source:g||"",content:void 0,ignore:void 0},m=e(r.source,r),{source:K,content:p,ignore:S}=r;if(m)return Ct(new nt(m,K),e,K,C);const v=p!==void 0?p:a?a[f]:null,H=S!==void 0?S:c?c.includes(f):!1;return or(K,v,H)});return Qt(n,Q)}l(Ct,"build");class hr{static{l(this,"SourceMap")}constructor(e,A){const i=A.decodedMappings?ct(e):zA(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,A.excludeContent||(this.sourcesContent=i.sourcesContent)}toString(){return JSON.stringify(this)}}function Et(n,e,A){const i={excludeContent:!!A,decodedMappings:!1},s=ur(n,e);return new hr(ar(s),i)}l(Et,"remapping");const lr=l((n,e,A)=>{const i=[],s={code:e};for(const a of A){const c=a(n,s.code);c&&(Object.assign(s,c),i.unshift(c.map))}return{...s,map:Et(i,()=>null)}},"applyTransformersSync"),fr=l(async(n,e,A)=>{const i=[],s={code:e};for(const a of A){const c=await a(n,s.code);c&&(Object.assign(s,c),i.unshift(c.map))}return{...s,map:Et(i,()=>null)}},"applyTransformers"),Qr=Object.freeze({target:`node${process.versions.node}`,loader:"default"}),Bt={...Qr,sourcemap:!0,sourcesContent:!!process.env.NODE_V8_COVERAGE,minifyWhitespace:!0,keepNames:!0},dt=l(n=>{const e=n.sourcefile;if(e){const A=Z.extname(e.split("?")[0]);A?A===".cts"||A===".mts"?n.sourcefile=`${e.slice(0,-3)}ts`:A===".mjs"&&(n.sourcefile=`${e.slice(0,-3)}js`):n.sourcefile+=".js"}return A=>(A.map&&(n.sourcefile!==e&&(A.map=A.map.replace(JSON.stringify(n.sourcefile),JSON.stringify(e))),A.map=JSON.parse(A.map)),A)},"patchOptions"),wt=l(n=>{throw n.name="TransformError",delete n.errors,delete n.warnings,n},"formatEsbuildError"),gr=l((n,e,A)=>{const[i,s]=e.split("?"),a={};i.endsWith(".cjs")||i.endsWith(".cts")||(a["import.meta.url"]=JSON.stringify(Tt.pathToFileURL(i)+(s?`?${s}`:"")));const c={...Bt,format:"cjs",sourcefile:i,define:a,banner:"(()=>{",footer:"})()",platform:"node",...A},C=Je([n,JSON.stringify(c),ie.version,Te].join("-"));let Q=se.get(C);return Q||(Q=lr(e,n,[(g,f)=>{const r=dt(c);let m;try{m=ie.transformSync(f,c)}catch(K){throw wt(K)}return r(m)},(g,f)=>me(g,f,!0)]),se.set(C,Q)),Q},"transformSync"),Cr=l(async(n,e,A)=>{const i={...Bt,format:"esm",sourcefile:e,...A},s=Je([n,JSON.stringify(i),ie.version,Te].join("-"));let a=se.get(s);return a||(a=await fr(e,n,[async(c,C)=>{const Q=dt(i);let g;try{g=await ie.transform(C,i)}catch(f){throw wt(f)}return Q(g)},(c,C)=>me(c,C,!0)]),se.set(s,a)),a},"transform");exports.isESM=BA,exports.readJsonFile=Ze,exports.transform=Cr,exports.transformDynamicImport=me,exports.transformSync=gr;