tsx 3.14.0 → 4.1.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.
- package/README.md +9 -5
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.mjs +1 -1
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/esm/index.cjs +3 -3
- package/dist/esm/index.mjs +3 -3
- package/dist/index-212fbee2.mjs +14 -0
- package/dist/index-8582abce.cjs +14 -0
- package/dist/loader.cjs +1 -1
- package/dist/loader.mjs +1 -1
- package/dist/node-features-84a305a1.cjs +1 -0
- package/dist/node-features-a792cc3d.mjs +1 -0
- package/dist/package-18264ae7.mjs +1 -0
- package/dist/package-b3a6a647.cjs +1 -0
- package/dist/preflight.cjs +1 -1
- package/dist/preflight.mjs +1 -1
- package/dist/repl.cjs +1 -1
- package/dist/repl.mjs +1 -1
- package/dist/source-map.cjs +2 -2
- package/dist/source-map.mjs +2 -2
- package/dist/suppress-warnings.cjs +1 -1
- package/dist/suppress-warnings.mjs +1 -1
- package/package.json +5 -2
- package/dist/index-5f60304b.cjs +0 -22
- package/dist/index-9eae64fa.mjs +0 -22
- package/dist/node-features-53cd96d9.mjs +0 -1
- package/dist/node-features-ecef9e7b.cjs +0 -1
- package/dist/package-15561fbc.mjs +0 -1
- package/dist/package-70ca1027.cjs +0 -1
- /package/dist/{pkgroll_create-require-3c9491e9.cjs → pkgroll_create-require-2c626e8f.cjs} +0 -0
- /package/dist/{pkgroll_create-require-f1630a78.mjs → pkgroll_create-require-7c336f6d.mjs} +0 -0
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import ys from"tty";import{v as ws}from"./package-15561fbc.mjs";import{r as ot}from"./pkgroll_create-require-f1630a78.mjs";import{pathToFileURL as Rs,fileURLToPath as bs}from"url";import vs from"child_process";import K from"path";import ie from"fs";import{s as Bs}from"./node-features-53cd96d9.mjs";import gu,{constants as Ss}from"os";import $s from"events";import me from"util";import Ts from"stream";import"module";const xs="known-flag",Os="unknown-flag",Ns="argument",{stringify:_e}=JSON,Hs=/\B([A-Z])/g,Ps=t=>t.replace(Hs,"-$1").toLowerCase(),{hasOwnProperty:Ls}=Object.prototype,Ae=(t,e)=>Ls.call(t,e),Is=t=>Array.isArray(t),mu=t=>typeof t=="function"?[t,!1]:Is(t)?[t[0],!0]:mu(t.type),ks=(t,e)=>t===Boolean?e!=="false":e,Ms=(t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),Ws=/[\s.:=]/,Gs=t=>{const e=`Flag name ${_e(t)}`;if(t.length===0)throw new Error(`${e} cannot be empty`);if(t.length===1)throw new Error(`${e} must be longer than a character`);const u=t.match(Ws);if(u)throw new Error(`${e} cannot contain ${_e(u==null?void 0:u[0])}`)},js=t=>{const e={},u=(n,s)=>{if(Ae(e,n))throw new Error(`Duplicate flags named ${_e(n)}`);e[n]=s};for(const n in t){if(!Ae(t,n))continue;Gs(n);const s=t[n],r=[[],...mu(s),s];u(n,r);const i=Ps(n);if(n!==i&&u(i,r),"alias"in s&&typeof s.alias=="string"){const{alias:D}=s,o=`Flag alias ${_e(D)} for flag ${_e(n)}`;if(D.length===0)throw new Error(`${o} cannot be empty`);if(D.length>1)throw new Error(`${o} must be a single character`);u(D,r)}}return e},Us=(t,e)=>{const u={};for(const n in t){if(!Ae(t,n))continue;const[s,,r,i]=e[n];if(s.length===0&&"default"in i){let{default:D}=i;typeof D=="function"&&(D=D()),u[n]=D}else u[n]=r?s:s.pop()}return u},Ie="--",Ks=/[.:=]/,Vs=/^-{1,2}\w/,zs=t=>{if(!Vs.test(t))return;const e=!t.startsWith(Ie);let u=t.slice(e?1:2),n;const s=u.match(Ks);if(s){const{index:r}=s;n=u.slice(r+1),u=u.slice(0,r)}return[u,n,e]},Ys=(t,{onFlag:e,onArgument:u})=>{let n;const s=(r,i)=>{if(typeof n!="function")return!0;n(r,i),n=void 0};for(let r=0;r<t.length;r+=1){const i=t[r];if(i===Ie){s();const o=t.slice(r+1);u==null||u(o,[r],!0);break}const D=zs(i);if(D){if(s(),!e)continue;const[o,a,c]=D;if(c)for(let f=0;f<o.length;f+=1){s();const l=f===o.length-1;n=e(o[f],l?a:void 0,[r,f+1,l])}else n=e(o,a,[r])}else s(i,[r])&&(u==null||u([i],[r]))}s()},qs=(t,e)=>{for(const[u,n,s]of e.reverse()){if(n){const r=t[u];let i=r.slice(0,n);if(s||(i+=r.slice(n+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},_u=(t,e=process.argv.slice(2),{ignore:u}={})=>{const n=[],s=js(t),r={},i=[];return i[Ie]=[],Ys(e,{onFlag(D,o,a){const c=Ae(s,D);if(!(u!=null&&u(c?xs:Os,D,o))){if(c){const[f,l]=s[D],p=ks(l,o),C=(F,A)=>{n.push(a),A&&n.push(A),f.push(Ms(l,F||""))};return p===void 0?C:C(p)}Ae(r,D)||(r[D]=[]),r[D].push(o===void 0?!0:o),n.push(a)}},onArgument(D,o,a){u!=null&&u(Ns,e[o[0]])||(i.push(...D),a?(i[Ie]=D,e.splice(o[0])):n.push(o))}}),qs(e,n),{flags:Us(t,s),unknownFlags:r,_:i}};var Xs=Object.create,ke=Object.defineProperty,Qs=Object.defineProperties,Zs=Object.getOwnPropertyDescriptor,Js=Object.getOwnPropertyDescriptors,er=Object.getOwnPropertyNames,Au=Object.getOwnPropertySymbols,tr=Object.getPrototypeOf,yu=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,wu=(t,e,u)=>e in t?ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,Me=(t,e)=>{for(var u in e||(e={}))yu.call(e,u)&&wu(t,u,e[u]);if(Au)for(var u of Au(e))ur.call(e,u)&&wu(t,u,e[u]);return t},at=(t,e)=>Qs(t,Js(e)),nr=t=>ke(t,"__esModule",{value:!0}),sr=(t,e)=>()=>(t&&(e=t(t=0)),e),rr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ir=(t,e,u,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of er(e))!yu.call(t,s)&&(u||s!=="default")&&ke(t,s,{get:()=>e[s],enumerable:!(n=Zs(e,s))||n.enumerable});return t},Dr=(t,e)=>ir(nr(ke(t!=null?Xs(tr(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),U=sr(()=>{}),or=rr((t,e)=>{U(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\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DFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A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\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});U(),U(),U();var ar=t=>{var e,u,n;let s=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(s)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:s}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(n=t.stdoutColumns)!=null?n:s}};U(),U(),U(),U(),U();function lr({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}function Ru(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(lr(),"")}U();function cr(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}var fr=Dr(or(),1);function De(t){if(typeof t!="string"||t.length===0||(t=Ru(t),t.length===0))return 0;t=t.replace((0,fr.default)()," ");let e=0;for(let u=0;u<t.length;u++){let n=t.codePointAt(u);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&u++,e+=cr(n)?2:1)}return e}var bu=t=>Math.max(...t.split(`
|
|
2
|
+
import ys from"tty";import{v as ws}from"./package-18264ae7.mjs";import{r as ot}from"./pkgroll_create-require-7c336f6d.mjs";import{pathToFileURL as Rs,fileURLToPath as bs}from"url";import vs from"child_process";import K from"path";import ie from"fs";import{s as Bs}from"./node-features-a792cc3d.mjs";import gu,{constants as Ss}from"os";import $s from"events";import me from"util";import Ts from"stream";import"module";const xs="known-flag",Os="unknown-flag",Ns="argument",{stringify:_e}=JSON,Hs=/\B([A-Z])/g,Ps=t=>t.replace(Hs,"-$1").toLowerCase(),{hasOwnProperty:Ls}=Object.prototype,Ae=(t,e)=>Ls.call(t,e),Is=t=>Array.isArray(t),mu=t=>typeof t=="function"?[t,!1]:Is(t)?[t[0],!0]:mu(t.type),ks=(t,e)=>t===Boolean?e!=="false":e,Ms=(t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),Ws=/[\s.:=]/,Gs=t=>{const e=`Flag name ${_e(t)}`;if(t.length===0)throw new Error(`${e} cannot be empty`);if(t.length===1)throw new Error(`${e} must be longer than a character`);const u=t.match(Ws);if(u)throw new Error(`${e} cannot contain ${_e(u==null?void 0:u[0])}`)},js=t=>{const e={},u=(n,s)=>{if(Ae(e,n))throw new Error(`Duplicate flags named ${_e(n)}`);e[n]=s};for(const n in t){if(!Ae(t,n))continue;Gs(n);const s=t[n],r=[[],...mu(s),s];u(n,r);const i=Ps(n);if(n!==i&&u(i,r),"alias"in s&&typeof s.alias=="string"){const{alias:D}=s,o=`Flag alias ${_e(D)} for flag ${_e(n)}`;if(D.length===0)throw new Error(`${o} cannot be empty`);if(D.length>1)throw new Error(`${o} must be a single character`);u(D,r)}}return e},Us=(t,e)=>{const u={};for(const n in t){if(!Ae(t,n))continue;const[s,,r,i]=e[n];if(s.length===0&&"default"in i){let{default:D}=i;typeof D=="function"&&(D=D()),u[n]=D}else u[n]=r?s:s.pop()}return u},Ie="--",Ks=/[.:=]/,Vs=/^-{1,2}\w/,zs=t=>{if(!Vs.test(t))return;const e=!t.startsWith(Ie);let u=t.slice(e?1:2),n;const s=u.match(Ks);if(s){const{index:r}=s;n=u.slice(r+1),u=u.slice(0,r)}return[u,n,e]},Ys=(t,{onFlag:e,onArgument:u})=>{let n;const s=(r,i)=>{if(typeof n!="function")return!0;n(r,i),n=void 0};for(let r=0;r<t.length;r+=1){const i=t[r];if(i===Ie){s();const o=t.slice(r+1);u==null||u(o,[r],!0);break}const D=zs(i);if(D){if(s(),!e)continue;const[o,a,c]=D;if(c)for(let f=0;f<o.length;f+=1){s();const l=f===o.length-1;n=e(o[f],l?a:void 0,[r,f+1,l])}else n=e(o,a,[r])}else s(i,[r])&&(u==null||u([i],[r]))}s()},qs=(t,e)=>{for(const[u,n,s]of e.reverse()){if(n){const r=t[u];let i=r.slice(0,n);if(s||(i+=r.slice(n+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},_u=(t,e=process.argv.slice(2),{ignore:u}={})=>{const n=[],s=js(t),r={},i=[];return i[Ie]=[],Ys(e,{onFlag(D,o,a){const c=Ae(s,D);if(!(u!=null&&u(c?xs:Os,D,o))){if(c){const[f,l]=s[D],p=ks(l,o),C=(F,A)=>{n.push(a),A&&n.push(A),f.push(Ms(l,F||""))};return p===void 0?C:C(p)}Ae(r,D)||(r[D]=[]),r[D].push(o===void 0?!0:o),n.push(a)}},onArgument(D,o,a){u!=null&&u(Ns,e[o[0]])||(i.push(...D),a?(i[Ie]=D,e.splice(o[0])):n.push(o))}}),qs(e,n),{flags:Us(t,s),unknownFlags:r,_:i}};var Xs=Object.create,ke=Object.defineProperty,Qs=Object.defineProperties,Zs=Object.getOwnPropertyDescriptor,Js=Object.getOwnPropertyDescriptors,er=Object.getOwnPropertyNames,Au=Object.getOwnPropertySymbols,tr=Object.getPrototypeOf,yu=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,wu=(t,e,u)=>e in t?ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,Me=(t,e)=>{for(var u in e||(e={}))yu.call(e,u)&&wu(t,u,e[u]);if(Au)for(var u of Au(e))ur.call(e,u)&&wu(t,u,e[u]);return t},at=(t,e)=>Qs(t,Js(e)),nr=t=>ke(t,"__esModule",{value:!0}),sr=(t,e)=>()=>(t&&(e=t(t=0)),e),rr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ir=(t,e,u,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of er(e))!yu.call(t,s)&&(u||s!=="default")&&ke(t,s,{get:()=>e[s],enumerable:!(n=Zs(e,s))||n.enumerable});return t},Dr=(t,e)=>ir(nr(ke(t!=null?Xs(tr(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),U=sr(()=>{}),or=rr((t,e)=>{U(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\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83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69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DC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});U(),U(),U();var ar=t=>{var e,u,n;let s=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(s)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:s}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(n=t.stdoutColumns)!=null?n:s}};U(),U(),U(),U(),U();function lr({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}function Ru(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(lr(),"")}U();function cr(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}var fr=Dr(or(),1);function De(t){if(typeof t!="string"||t.length===0||(t=Ru(t),t.length===0))return 0;t=t.replace((0,fr.default)()," ");let e=0;for(let u=0;u<t.length;u++){let n=t.codePointAt(u);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&u++,e+=cr(n)?2:1)}return e}var bu=t=>Math.max(...t.split(`
|
|
3
3
|
`).map(De)),hr=t=>{let e=[];for(let u of t){let{length:n}=u,s=n-e.length;for(let r=0;r<s;r+=1)e.push(0);for(let r=0;r<n;r+=1){let i=bu(u[r]);i>e[r]&&(e[r]=i)}}return e};U();var vu=/^\d+%$/,Bu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},dr=(t,e)=>{var u;let n=[];for(let s=0;s<t.length;s+=1){let r=(u=e[s])!=null?u:"auto";if(typeof r=="number"||r==="auto"||r==="content-width"||typeof r=="string"&&vu.test(r)){n.push(at(Me({},Bu),{width:r,contentWidth:t[s]}));continue}if(r&&typeof r=="object"){let i=at(Me(Me({},Bu),r),{contentWidth:t[s]});i.horizontalPadding=i.paddingLeft+i.paddingRight,n.push(i);continue}throw new Error(`Invalid column width: ${JSON.stringify(r)}`)}return n};function Er(t,e){for(let u of t){let{width:n}=u;if(n==="content-width"&&(u.width=u.contentWidth),n==="auto"){let o=Math.min(20,u.contentWidth);u.width=o,u.autoOverflow=u.contentWidth-o}if(typeof n=="string"&&vu.test(n)){let o=Number.parseFloat(n.slice(0,-1))/100;u.width=Math.floor(e*o)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:s}=u,r=1,i=r+s;if(i>=e){let o=i-e,a=Math.ceil(u.paddingLeft/s*o),c=o-a;u.paddingLeft-=a,u.paddingRight-=c,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let D=e-u.horizontalPadding;u.width=Math.max(Math.min(u.width,D),r)}}var Su=()=>Object.assign([],{columns:0});function pr(t,e){let u=[Su()],[n]=u;for(let s of t){let r=s.width+s.horizontalPadding;n.columns+r>e&&(n=Su(),u.push(n)),n.push(s),n.columns+=r}for(let s of u){let r=s.reduce((l,p)=>l+p.width+p.horizontalPadding,0),i=e-r;if(i===0)continue;let D=s.filter(l=>"autoOverflow"in l),o=D.filter(l=>l.autoOverflow>0),a=o.reduce((l,p)=>l+p.autoOverflow,0),c=Math.min(a,i);for(let l of o){let p=Math.floor(l.autoOverflow/a*c);l.width+=p,i-=p}let f=Math.floor(i/D.length);for(let l=0;l<D.length;l+=1){let p=D[l];l===D.length-1?p.width+=i:p.width+=f,i-=f}}return u}function Cr(t,e,u){let n=dr(u,e);return Er(n,t),pr(n,t)}U(),U(),U();var lt=10,$u=(t=0)=>e=>`\x1B[${e+t}m`,Tu=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,xu=(t=0)=>(e,u,n)=>`\x1B[${38+t};2;${e};${u};${n}m`;function Fr(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[u,n]of Object.entries(e)){for(let[s,r]of Object.entries(n))e[s]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[s]=e[s],t.set(r[0],r[1]);Object.defineProperty(e,u,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=$u(),e.color.ansi256=Tu(),e.color.ansi16m=xu(),e.bgColor.ansi=$u(lt),e.bgColor.ansi256=Tu(lt),e.bgColor.ansi16m=xu(lt),Object.defineProperties(e,{rgbToAnsi256:{value:(u,n,s)=>u===n&&n===s?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(n/255*5)+Math.round(s/255*5),enumerable:!1},hexToRgb:{value:u=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!n)return[0,0,0];let{colorString:s}=n.groups;s.length===3&&(s=s.split("").map(i=>i+i).join(""));let r=Number.parseInt(s,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:u=>e.rgbToAnsi256(...e.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let n,s,r;if(u>=232)n=((u-232)*10+8)/255,s=n,r=n;else{u-=16;let o=u%36;n=Math.floor(u/36)/5,s=Math.floor(o/6)/5,r=o%6/5}let i=Math.max(n,s,r)*2;if(i===0)return 30;let D=30+(Math.round(r)<<2|Math.round(s)<<1|Math.round(n));return i===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(u,n,s)=>e.ansi256ToAnsi(e.rgbToAnsi256(u,n,s)),enumerable:!1},hexToAnsi:{value:u=>e.ansi256ToAnsi(e.hexToAnsi256(u)),enumerable:!1}}),e}var gr=Fr(),mr=gr,We=new Set(["\x1B","\x9B"]),_r=39,ct="\x07",Ou="[",Ar="]",Nu="m",ft=`${Ar}8;;`,Hu=t=>`${We.values().next().value}${Ou}${t}${Nu}`,Pu=t=>`${We.values().next().value}${ft}${t}${ct}`,yr=t=>t.split(" ").map(e=>De(e)),ht=(t,e,u)=>{let n=[...e],s=!1,r=!1,i=De(Ru(t[t.length-1]));for(let[D,o]of n.entries()){let a=De(o);if(i+a<=u?t[t.length-1]+=o:(t.push(o),i=0),We.has(o)&&(s=!0,r=n.slice(D+1).join("").startsWith(ft)),s){r?o===ct&&(s=!1,r=!1):o===Nu&&(s=!1);continue}i+=a,i===u&&D<n.length-1&&(t.push(""),i=0)}!i&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},wr=t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(De(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")},Rr=(t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let n="",s,r,i=yr(t),D=[""];for(let[a,c]of t.split(" ").entries()){u.trim!==!1&&(D[D.length-1]=D[D.length-1].trimStart());let f=De(D[D.length-1]);if(a!==0&&(f>=e&&(u.wordWrap===!1||u.trim===!1)&&(D.push(""),f=0),(f>0||u.trim===!1)&&(D[D.length-1]+=" ",f++)),u.hard&&i[a]>e){let l=e-f,p=1+Math.floor((i[a]-l-1)/e);Math.floor((i[a]-1)/e)<p&&D.push(""),ht(D,c,e);continue}if(f+i[a]>e&&f>0&&i[a]>0){if(u.wordWrap===!1&&f<e){ht(D,c,e);continue}D.push("")}if(f+i[a]>e&&u.wordWrap===!1){ht(D,c,e);continue}D[D.length-1]+=c}u.trim!==!1&&(D=D.map(a=>wr(a)));let o=[...D.join(`
|
|
4
4
|
`)];for(let[a,c]of o.entries()){if(n+=c,We.has(c)){let{groups:l}=new RegExp(`(?:\\${Ou}(?<code>\\d+)m|\\${ft}(?<uri>.*)${ct})`).exec(o.slice(a).join(""))||{groups:{}};if(l.code!==void 0){let p=Number.parseFloat(l.code);s=p===_r?void 0:p}else l.uri!==void 0&&(r=l.uri.length===0?void 0:l.uri)}let f=mr.codes.get(Number(s));o[a+1]===`
|
|
5
5
|
`?(r&&(n+=Pu("")),s&&f&&(n+=Hu(f))):c===`
|
|
@@ -19,7 +19,7 @@ import ys from"tty";import{v as ws}from"./package-15561fbc.mjs";import{r as ot}f
|
|
|
19
19
|
`:"")+(u?this.indentText({text:this.render(u),spaces:n}):"")}
|
|
20
20
|
`}table({tableData:e,tableOptions:u,tableBreakpoints:n}){return Br(e.map(s=>s.map(r=>this.render(r))),n?Tr(n):u)}flagParameter(e){return e===Boolean?"":e===String?"<string>":e===Number?"<number>":Array.isArray(e)?this.flagParameter(e[0]):"<value>"}flagOperator(e){return" "}flagName(e){const{flag:u,flagFormatted:n,aliasesEnabled:s,aliasFormatted:r}=e;let i="";if(r?i+=`${r}, `:s&&(i+=" "),i+=n,"placeholder"in u&&typeof u.placeholder=="string")i+=`${this.flagOperator(e)}${u.placeholder}`;else{const D=this.flagParameter("type"in u?u.type:u);D&&(i+=`${this.flagOperator(e)}${D}`)}return i}flagDefault(e){return JSON.stringify(e)}flagDescription({flag:e}){var n;let u="description"in e&&(n=e.description)!=null?n:"";if("default"in e){let{default:s}=e;typeof s=="function"&&(s=s()),s&&(u+=` (default: ${this.flagDefault(s)})`)}return u}render(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(u=>this.render(u)).join(`
|
|
21
21
|
`);if("type"in e&&this[e.type]){const u=this[e.type];if(typeof u=="function")return u.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const dt=/^[\w.-]+$/,{stringify:J}=JSON,Vr=/[|\\{}()[\]^$+*?.]/;function Et(t){const e=[];let u,n;for(const s of t){if(n)throw new Error(`Invalid parameter: Spread parameter ${J(n)} must be last`);const r=s[0],i=s[s.length-1];let D;if(r==="<"&&i===">"&&(D=!0,u))throw new Error(`Invalid parameter: Required parameter ${J(s)} cannot come after optional parameter ${J(u)}`);if(r==="["&&i==="]"&&(D=!1,u=s),D===void 0)throw new Error(`Invalid parameter: ${J(s)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let o=s.slice(1,-1);const a=o.slice(-3)==="...";a&&(n=s,o=o.slice(0,-3));const c=o.match(Vr);if(c)throw new Error(`Invalid parameter: ${J(s)}. Invalid character found ${J(c[0])}`);e.push({name:o,required:D,spread:a})}return e}function pt(t,e,u,n){for(let s=0;s<e.length;s+=1){const{name:r,required:i,spread:D}=e[s],o=xr(r);if(o in t)throw new Error(`Invalid parameter: ${J(r)} is used more than once.`);const a=D?u.slice(s):u[s];if(D&&(s=e.length),i&&(!a||D&&a.length===0))return console.error(`Error: Missing required parameter ${J(r)}
|
|
22
|
-
`),n(),process.exit(1);t[o]=a}}function zr(t){return t===void 0||t!==!1}function Mu(t,e,u,n){const s={...e.flags},r=e.version;r&&(s.version={type:Boolean,description:"Show version"});const{help:i}=e,D=zr(i);D&&!("help"in s)&&(s.help={type:Boolean,alias:"h",description:"Show help"});const o=_u(s,n,{ignore:e.ignoreArgv}),a=()=>{console.log(e.version)};if(r&&o.flags.version===!0)return a(),process.exit(0);const c=new Kr,f=D&&(i!=null&&i.render)?i.render:C=>c.render(C),l=C=>{const F=jr({...e,...C?{help:C}:{},flags:s});console.log(f(F,c))};if(D&&o.flags.help===!0)return l(),process.exit(0);if(e.parameters){let{parameters:C}=e,F=o._;const A=C.indexOf("--"),B=C.slice(A+1),H=Object.create(null);if(A>-1&&B.length>0){C=C.slice(0,A);const S=o._["--"];F=F.slice(0,-S.length||void 0),pt(H,Et(C),F,l),pt(H,Et(B),S,l)}else pt(H,Et(C),F,l);Object.assign(o._,H)}const p={...o,showVersion:a,showHelp:l};return typeof u=="function"&&u(p),{command:t,...p}}function Yr(t,e){const u=new Map;for(const n of e){const s=[n.options.name],{alias:r}=n.options;r&&(Array.isArray(r)?s.push(...r):s.push(r));for(const i of s){if(u.has(i))throw new Error(`Duplicate command name found: ${J(i)}`);u.set(i,n)}}return u.get(t)}function qr(t,e,u=process.argv.slice(2)){if(!t)throw new Error("Options is required");if("name"in t&&(!t.name||!dt.test(t.name)))throw new Error(`Invalid script name: ${J(t.name)}`);const n=u[0];if(t.commands&&dt.test(n)){const s=Yr(n,t.commands);if(s)return Mu(s.options.name,{...s.options,parent:t},s.callback,u.slice(1))}return Mu(void 0,t,e,u)}function Xr(t,e){if(!t)throw new Error("Command options are required");const{name:u}=t;if(t.name===void 0)throw new Error("Command name is required");if(!dt.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:t,callback:e}}var Qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fe={exports:{}},Ct,Wu;function Jr(){if(Wu)return Ct;Wu=1,Ct=n,n.sync=s;var t=ie;function e(r,i){var D=i.pathExt!==void 0?i.pathExt:process.env.PATHEXT;if(!D||(D=D.split(";"),D.indexOf("")!==-1))return!0;for(var o=0;o<D.length;o++){var a=D[o].toLowerCase();if(a&&r.substr(-a.length).toLowerCase()===a)return!0}return!1}function u(r,i,D){return!r.isSymbolicLink()&&!r.isFile()?!1:e(i,D)}function n(r,i,D){t.stat(r,function(o,a){D(o,o?!1:u(a,r,i))})}function s(r,i){return u(t.statSync(r),r,i)}return Ct}var Ft,Gu;function ei(){if(Gu)return Ft;Gu=1,Ft=e,e.sync=u;var t=ie;function e(r,i,D){t.stat(r,function(o,a){D(o,o?!1:n(a,i))})}function u(r,i){return n(t.statSync(r),i)}function n(r,i){return r.isFile()&&s(r,i)}function s(r,i){var D=r.mode,o=r.uid,a=r.gid,c=i.uid!==void 0?i.uid:process.getuid&&process.getuid(),f=i.gid!==void 0?i.gid:process.getgid&&process.getgid(),l=parseInt("100",8),p=parseInt("010",8),C=parseInt("001",8),F=l|p,A=D&C||D&p&&a===f||D&l&&o===c||D&F&&c===0;return A}return Ft}var Ge;process.platform==="win32"||Qr.TESTING_WINDOWS?Ge=Jr():Ge=ei();var ti=gt;gt.sync=ui;function gt(t,e,u){if(typeof e=="function"&&(u=e,e={}),!u){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,s){gt(t,e||{},function(r,i){r?s(r):n(i)})})}Ge(t,e||{},function(n,s){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,s=!1),u(n,s)})}function ui(t,e){try{return Ge.sync(t,e||{})}catch(u){if(e&&e.ignoreErrors||u.code==="EACCES")return!1;throw u}}const he=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",ju=K,ni=he?";":":",Uu=ti,Ku=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Vu=(t,e)=>{const u=e.colon||ni,n=t.match(/\//)||he&&t.match(/\\/)?[""]:[...he?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],s=he?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",r=he?s.split(u):[""];return he&&t.indexOf(".")!==-1&&r[0]!==""&&r.unshift(""),{pathEnv:n,pathExt:r,pathExtExe:s}},zu=(t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:n,pathExt:s,pathExtExe:r}=Vu(t,e),i=[],D=a=>new Promise((c,f)=>{if(a===n.length)return e.all&&i.length?c(i):f(Ku(t));const l=n[a],p=/^".*"$/.test(l)?l.slice(1,-1):l,C=ju.join(p,t),F=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+C:C;c(o(F,a,0))}),o=(a,c,f)=>new Promise((l,p)=>{if(f===s.length)return l(D(c+1));const C=s[f];Uu(a+C,{pathExt:r},(F,A)=>{if(!F&&A)if(e.all)i.push(a+C);else return l(a+C);return l(o(a,c,f+1))})});return u?D(0).then(a=>u(null,a),u):D(0)},si=(t,e)=>{e=e||{};const{pathEnv:u,pathExt:n,pathExtExe:s}=Vu(t,e),r=[];for(let i=0;i<u.length;i++){const D=u[i],o=/^".*"$/.test(D)?D.slice(1,-1):D,a=ju.join(o,t),c=!o&&/^\.[\\\/]/.test(t)?t.slice(0,2)+a:a;for(let f=0;f<n.length;f++){const l=c+n[f];try{if(Uu.sync(l,{pathExt:s}))if(e.all)r.push(l);else return l}catch{}}}if(e.all&&r.length)return r;if(e.nothrow)return null;throw Ku(t)};var ri=zu;zu.sync=si;var mt={exports:{}};const Yu=(t={})=>{const e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};mt.exports=Yu,mt.exports.default=Yu;var ii=mt.exports;const qu=K,Di=ri,oi=ii;function Xu(t,e){const u=t.options.env||process.env,n=process.cwd(),s=t.options.cwd!=null,r=s&&process.chdir!==void 0&&!process.chdir.disabled;if(r)try{process.chdir(t.options.cwd)}catch{}let i;try{i=Di.sync(t.command,{path:u[oi({env:u})],pathExt:e?qu.delimiter:void 0})}catch{}finally{r&&process.chdir(n)}return i&&(i=qu.resolve(s?t.options.cwd:"",i)),i}function ai(t){return Xu(t)||Xu(t,!0)}var li=ai,_t={};const At=/([()\][%!^"`<>&|;, *?])/g;function ci(t){return t=t.replace(At,"^$1"),t}function fi(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(At,"^$1"),e&&(t=t.replace(At,"^$1")),t}_t.command=ci,_t.argument=fi;var hi=/^#!(.*)/;const di=hi;var Ei=(t="")=>{const e=t.match(di);if(!e)return null;const[u,n]=e[0].replace(/#! ?/,"").split(" "),s=u.split("/").pop();return s==="env"?n:n?`${s} ${n}`:s};const yt=ie,pi=Ei;function Ci(t){const u=Buffer.alloc(150);let n;try{n=yt.openSync(t,"r"),yt.readSync(n,u,0,150,0),yt.closeSync(n)}catch{}return pi(u.toString())}var Fi=Ci;const gi=K,Qu=li,Zu=_t,mi=Fi,_i=process.platform==="win32",Ai=/\.(?:com|exe)$/i,yi=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function wi(t){t.file=Qu(t);const e=t.file&&mi(t.file);return e?(t.args.unshift(t.file),t.command=e,Qu(t)):t.file}function Ri(t){if(!_i)return t;const e=wi(t),u=!Ai.test(e);if(t.options.forceShell||u){const n=yi.test(e);t.command=gi.normalize(t.command),t.command=Zu.command(t.command),t.args=t.args.map(r=>Zu.argument(r,n));const s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function bi(t,e,u){e&&!Array.isArray(e)&&(u=e,e=null),e=e?e.slice(0):[],u=Object.assign({},u);const n={command:t,args:e,options:u,file:void 0,original:{command:t,args:e}};return u.shell?n:Ri(n)}var vi=bi;const wt=process.platform==="win32";function Rt(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Bi(t,e){if(!wt)return;const u=t.emit;t.emit=function(n,s){if(n==="exit"){const r=Ju(s,e);if(r)return u.call(t,"error",r)}return u.apply(t,arguments)}}function Ju(t,e){return wt&&t===1&&!e.file?Rt(e.original,"spawn"):null}function Si(t,e){return wt&&t===1&&!e.file?Rt(e.original,"spawnSync"):null}var $i={hookChildProcess:Bi,verifyENOENT:Ju,verifyENOENTSync:Si,notFoundError:Rt};const en=vs,bt=vi,vt=$i;function tn(t,e,u){const n=bt(t,e,u),s=en.spawn(n.command,n.args,n.options);return vt.hookChildProcess(s,n),s}function Ti(t,e,u){const n=bt(t,e,u),s=en.spawnSync(n.command,n.args,n.options);return s.error=s.error||vt.verifyENOENTSync(s.status,n),s}fe.exports=tn,fe.exports.spawn=tn,fe.exports.sync=Ti,fe.exports._parse=bt,fe.exports._enoent=vt;var xi=fe.exports,Oi=Zr(xi);function un(t,e){const u={...process.env},n=["inherit","inherit","inherit","ipc"];return e&&(e.noCache&&(u.ESBK_DISABLE_CACHE="1"),e.tsconfigPath&&(u.ESBK_TSCONFIG_PATH=e.tsconfigPath)),Oi(process.execPath,["--require",ot.resolve("./preflight.cjs"),Bs?"--import":"--loader",Rs(ot.resolve("./loader.mjs")).toString(),...t],{stdio:n,env:u})}var je={};const Ni=K,ee="\\\\/",nn=`[^${ee}]`,te="\\.",Hi="\\+",Pi="\\?",Ue="\\/",Li="(?=.)",sn="[^/]",Bt=`(?:${Ue}|$)`,rn=`(?:^|${Ue})`,St=`${te}{1,2}${Bt}`,Ii=`(?!${te})`,ki=`(?!${rn}${St})`,Mi=`(?!${te}{0,1}${Bt})`,Wi=`(?!${St})`,Gi=`[^.${Ue}]`,ji=`${sn}*?`,Dn={DOT_LITERAL:te,PLUS_LITERAL:Hi,QMARK_LITERAL:Pi,SLASH_LITERAL:Ue,ONE_CHAR:Li,QMARK:sn,END_ANCHOR:Bt,DOTS_SLASH:St,NO_DOT:Ii,NO_DOTS:ki,NO_DOT_SLASH:Mi,NO_DOTS_SLASH:Wi,QMARK_NO_DOT:Gi,STAR:ji,START_ANCHOR:rn},Ui={...Dn,SLASH_LITERAL:`[${ee}]`,QMARK:nn,STAR:`${nn}*?`,DOTS_SLASH:`${te}{1,2}(?:[${ee}]|$)`,NO_DOT:`(?!${te})`,NO_DOTS:`(?!(?:^|[${ee}])${te}{1,2}(?:[${ee}]|$))`,NO_DOT_SLASH:`(?!${te}{0,1}(?:[${ee}]|$))`,NO_DOTS_SLASH:`(?!${te}{1,2}(?:[${ee}]|$))`,QMARK_NO_DOT:`[^.${ee}]`,START_ANCHOR:`(?:^|[${ee}])`,END_ANCHOR:`(?:[${ee}]|$)`},Ki={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var Ke={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Ki,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Ni.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?Ui:Dn}};(function(t){const e=K,u=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=Ke;t.isObject=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),t.hasRegexChars=D=>r.test(D),t.isRegexChar=D=>D.length===1&&t.hasRegexChars(D),t.escapeRegex=D=>D.replace(i,"\\$1"),t.toPosixSlashes=D=>D.replace(n,"/"),t.removeBackslashes=D=>D.replace(s,o=>o==="\\"?"":o),t.supportsLookbehinds=()=>{const D=process.version.slice(1).split(".").map(Number);return D.length===3&&D[0]>=9||D[0]===8&&D[1]>=10},t.isWindows=D=>D&&typeof D.windows=="boolean"?D.windows:u===!0||e.sep==="\\",t.escapeLast=(D,o,a)=>{const c=D.lastIndexOf(o,a);return c===-1?D:D[c-1]==="\\"?t.escapeLast(D,o,c-1):`${D.slice(0,c)}\\${D.slice(c)}`},t.removePrefix=(D,o={})=>{let a=D;return a.startsWith("./")&&(a=a.slice(2),o.prefix="./"),a},t.wrapOutput=(D,o={},a={})=>{const c=a.contains?"":"^",f=a.contains?"":"$";let l=`${c}(?:${D})${f}`;return o.negated===!0&&(l=`(?:^(?!${l}).*$)`),l}})(je);const on=je,{CHAR_ASTERISK:$t,CHAR_AT:Vi,CHAR_BACKWARD_SLASH:ye,CHAR_COMMA:zi,CHAR_DOT:Tt,CHAR_EXCLAMATION_MARK:xt,CHAR_FORWARD_SLASH:an,CHAR_LEFT_CURLY_BRACE:Ot,CHAR_LEFT_PARENTHESES:Nt,CHAR_LEFT_SQUARE_BRACKET:Yi,CHAR_PLUS:qi,CHAR_QUESTION_MARK:ln,CHAR_RIGHT_CURLY_BRACE:Xi,CHAR_RIGHT_PARENTHESES:cn,CHAR_RIGHT_SQUARE_BRACKET:Qi}=Ke,fn=t=>t===an||t===ye,hn=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Zi=(t,e)=>{const u=e||{},n=t.length-1,s=u.parts===!0||u.scanToEnd===!0,r=[],i=[],D=[];let o=t,a=-1,c=0,f=0,l=!1,p=!1,C=!1,F=!1,A=!1,B=!1,H=!1,S=!1,X=!1,M=!1,ne=0,W,_,b={value:"",depth:0,isGlob:!1};const k=()=>a>=n,E=()=>o.charCodeAt(a+1),x=()=>(W=_,o.charCodeAt(++a));for(;a<n;){_=x();let G;if(_===ye){H=b.backslashes=!0,_=x(),_===Ot&&(B=!0);continue}if(B===!0||_===Ot){for(ne++;k()!==!0&&(_=x());){if(_===ye){H=b.backslashes=!0,x();continue}if(_===Ot){ne++;continue}if(B!==!0&&_===Tt&&(_=x())===Tt){if(l=b.isBrace=!0,C=b.isGlob=!0,M=!0,s===!0)continue;break}if(B!==!0&&_===zi){if(l=b.isBrace=!0,C=b.isGlob=!0,M=!0,s===!0)continue;break}if(_===Xi&&(ne--,ne===0)){B=!1,l=b.isBrace=!0,M=!0;break}}if(s===!0)continue;break}if(_===an){if(r.push(a),i.push(b),b={value:"",depth:0,isGlob:!1},M===!0)continue;if(W===Tt&&a===c+1){c+=2;continue}f=a+1;continue}if(u.noext!==!0&&(_===qi||_===Vi||_===$t||_===ln||_===xt)===!0&&E()===Nt){if(C=b.isGlob=!0,F=b.isExtglob=!0,M=!0,_===xt&&a===c&&(X=!0),s===!0){for(;k()!==!0&&(_=x());){if(_===ye){H=b.backslashes=!0,_=x();continue}if(_===cn){C=b.isGlob=!0,M=!0;break}}continue}break}if(_===$t){if(W===$t&&(A=b.isGlobstar=!0),C=b.isGlob=!0,M=!0,s===!0)continue;break}if(_===ln){if(C=b.isGlob=!0,M=!0,s===!0)continue;break}if(_===Yi){for(;k()!==!0&&(G=x());){if(G===ye){H=b.backslashes=!0,x();continue}if(G===Qi){p=b.isBracket=!0,C=b.isGlob=!0,M=!0;break}}if(s===!0)continue;break}if(u.nonegate!==!0&&_===xt&&a===c){S=b.negated=!0,c++;continue}if(u.noparen!==!0&&_===Nt){if(C=b.isGlob=!0,s===!0){for(;k()!==!0&&(_=x());){if(_===Nt){H=b.backslashes=!0,_=x();continue}if(_===cn){M=!0;break}}continue}break}if(C===!0){if(M=!0,s===!0)continue;break}}u.noext===!0&&(F=!1,C=!1);let $=o,se="",h="";c>0&&(se=o.slice(0,c),o=o.slice(c),f-=c),$&&C===!0&&f>0?($=o.slice(0,f),h=o.slice(f)):C===!0?($="",h=o):$=o,$&&$!==""&&$!=="/"&&$!==o&&fn($.charCodeAt($.length-1))&&($=$.slice(0,-1)),u.unescape===!0&&(h&&(h=on.removeBackslashes(h)),$&&H===!0&&($=on.removeBackslashes($)));const d={prefix:se,input:t,start:c,base:$,glob:h,isBrace:l,isBracket:p,isGlob:C,isExtglob:F,isGlobstar:A,negated:S,negatedExtglob:X};if(u.tokens===!0&&(d.maxDepth=0,fn(_)||i.push(b),d.tokens=i),u.parts===!0||u.tokens===!0){let G;for(let R=0;R<r.length;R++){const Q=G?G+1:c,Z=r[R],V=t.slice(Q,Z);u.tokens&&(R===0&&c!==0?(i[R].isPrefix=!0,i[R].value=se):i[R].value=V,hn(i[R]),d.maxDepth+=i[R].depth),(R!==0||V!=="")&&D.push(V),G=Z}if(G&&G+1<t.length){const R=t.slice(G+1);D.push(R),u.tokens&&(i[i.length-1].value=R,hn(i[i.length-1]),d.maxDepth+=i[i.length-1].depth)}d.slashes=r,d.parts=D}return d};var Ji=Zi;const Ve=Ke,z=je,{MAX_LENGTH:ze,POSIX_REGEX_SOURCE:eD,REGEX_NON_SPECIAL_CHARS:tD,REGEX_SPECIAL_CHARS_BACKREF:uD,REPLACEMENTS:dn}=Ve,nD=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();const u=`[${t.join("-")}]`;try{new RegExp(u)}catch{return t.map(s=>z.escapeRegex(s)).join("..")}return u},de=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Ht=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=dn[t]||t;const u={...e},n=typeof u.maxLength=="number"?Math.min(ze,u.maxLength):ze;let s=t.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);const r={type:"bos",value:"",output:u.prepend||""},i=[r],D=u.capture?"":"?:",o=z.isWindows(e),a=Ve.globChars(o),c=Ve.extglobChars(a),{DOT_LITERAL:f,PLUS_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:C,DOTS_SLASH:F,NO_DOT:A,NO_DOT_SLASH:B,NO_DOTS_SLASH:H,QMARK:S,QMARK_NO_DOT:X,STAR:M,START_ANCHOR:ne}=a,W=m=>`(${D}(?:(?!${ne}${m.dot?F:f}).)*?)`,_=u.dot?"":A,b=u.dot?S:X;let k=u.bash===!0?W(u):M;u.capture&&(k=`(${k})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const E={input:t,index:-1,start:0,dot:u.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};t=z.removePrefix(t,E),s=t.length;const x=[],$=[],se=[];let h=r,d;const G=()=>E.index===s-1,R=E.peek=(m=1)=>t[E.index+m],Q=E.advance=()=>t[++E.index]||"",Z=()=>t.slice(E.index+1),V=(m="",T=0)=>{E.consumed+=m,E.index+=T},Ne=m=>{E.output+=m.output!=null?m.output:m.value,V(m.value)},_s=()=>{let m=1;for(;R()==="!"&&(R(2)!=="("||R(3)==="?");)Q(),E.start++,m++;return m%2===0?!1:(E.negated=!0,E.start++,!0)},He=m=>{E[m]++,se.push(m)},re=m=>{E[m]--,se.pop()},w=m=>{if(h.type==="globstar"){const T=E.braces>0&&(m.type==="comma"||m.type==="brace"),g=m.extglob===!0||x.length&&(m.type==="pipe"||m.type==="paren");m.type!=="slash"&&m.type!=="paren"&&!T&&!g&&(E.output=E.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=k,E.output+=h.output)}if(x.length&&m.type!=="paren"&&(x[x.length-1].inner+=m.value),(m.value||m.output)&&Ne(m),h&&h.type==="text"&&m.type==="text"){h.value+=m.value,h.output=(h.output||"")+m.value;return}m.prev=h,i.push(m),h=m},Pe=(m,T)=>{const g={...c[T],conditions:1,inner:""};g.prev=h,g.parens=E.parens,g.output=E.output;const y=(u.capture?"(":"")+g.open;He("parens"),w({type:m,value:T,output:E.output?"":C}),w({type:"paren",extglob:!0,value:Q(),output:y}),x.push(g)},As=m=>{let T=m.close+(u.capture?")":""),g;if(m.type==="negate"){let y=k;if(m.inner&&m.inner.length>1&&m.inner.includes("/")&&(y=W(u)),(y!==k||G()||/^\)+$/.test(Z()))&&(T=m.close=`)$))${y}`),m.inner.includes("*")&&(g=Z())&&/^\.[^\\/.]+$/.test(g)){const O=Ht(g,{...e,fastpaths:!1}).output;T=m.close=`)${O})${y})`}m.prev.type==="bos"&&(E.negatedExtglob=!0)}w({type:"paren",extglob:!0,value:d,output:T}),re("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let m=!1,T=t.replace(uD,(g,y,O,j,P,Dt)=>j==="\\"?(m=!0,g):j==="?"?y?y+j+(P?S.repeat(P.length):""):Dt===0?b+(P?S.repeat(P.length):""):S.repeat(O.length):j==="."?f.repeat(O.length):j==="*"?y?y+j+(P?k:""):k:y?g:`\\${g}`);return m===!0&&(u.unescape===!0?T=T.replace(/\\/g,""):T=T.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),T===t&&u.contains===!0?(E.output=t,E):(E.output=z.wrapOutput(T,E,e),E)}for(;!G();){if(d=Q(),d==="\0")continue;if(d==="\\"){const g=R();if(g==="/"&&u.bash!==!0||g==="."||g===";")continue;if(!g){d+="\\",w({type:"text",value:d});continue}const y=/^\\+/.exec(Z());let O=0;if(y&&y[0].length>2&&(O=y[0].length,E.index+=O,O%2!==0&&(d+="\\")),u.unescape===!0?d=Q():d+=Q(),E.brackets===0){w({type:"text",value:d});continue}}if(E.brackets>0&&(d!=="]"||h.value==="["||h.value==="[^")){if(u.posix!==!1&&d===":"){const g=h.value.slice(1);if(g.includes("[")&&(h.posix=!0,g.includes(":"))){const y=h.value.lastIndexOf("["),O=h.value.slice(0,y),j=h.value.slice(y+2),P=eD[j];if(P){h.value=O+P,E.backtrack=!0,Q(),!r.output&&i.indexOf(h)===1&&(r.output=C);continue}}}(d==="["&&R()!==":"||d==="-"&&R()==="]")&&(d=`\\${d}`),d==="]"&&(h.value==="["||h.value==="[^")&&(d=`\\${d}`),u.posix===!0&&d==="!"&&h.value==="["&&(d="^"),h.value+=d,Ne({value:d});continue}if(E.quotes===1&&d!=='"'){d=z.escapeRegex(d),h.value+=d,Ne({value:d});continue}if(d==='"'){E.quotes=E.quotes===1?0:1,u.keepQuotes===!0&&w({type:"text",value:d});continue}if(d==="("){He("parens"),w({type:"paren",value:d});continue}if(d===")"){if(E.parens===0&&u.strictBrackets===!0)throw new SyntaxError(de("opening","("));const g=x[x.length-1];if(g&&E.parens===g.parens+1){As(x.pop());continue}w({type:"paren",value:d,output:E.parens?")":"\\)"}),re("parens");continue}if(d==="["){if(u.nobracket===!0||!Z().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(de("closing","]"));d=`\\${d}`}else He("brackets");w({type:"bracket",value:d});continue}if(d==="]"){if(u.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){w({type:"text",value:d,output:`\\${d}`});continue}if(E.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(de("opening","["));w({type:"text",value:d,output:`\\${d}`});continue}re("brackets");const g=h.value.slice(1);if(h.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(d=`/${d}`),h.value+=d,Ne({value:d}),u.literalBrackets===!1||z.hasRegexChars(g))continue;const y=z.escapeRegex(h.value);if(E.output=E.output.slice(0,-h.value.length),u.literalBrackets===!0){E.output+=y,h.value=y;continue}h.value=`(${D}${y}|${h.value})`,E.output+=h.value;continue}if(d==="{"&&u.nobrace!==!0){He("braces");const g={type:"brace",value:d,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};$.push(g),w(g);continue}if(d==="}"){const g=$[$.length-1];if(u.nobrace===!0||!g){w({type:"text",value:d,output:d});continue}let y=")";if(g.dots===!0){const O=i.slice(),j=[];for(let P=O.length-1;P>=0&&(i.pop(),O[P].type!=="brace");P--)O[P].type!=="dots"&&j.unshift(O[P].value);y=nD(j,u),E.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const O=E.output.slice(0,g.outputIndex),j=E.tokens.slice(g.tokensIndex);g.value=g.output="\\{",d=y="\\}",E.output=O;for(const P of j)E.output+=P.output||P.value}w({type:"brace",value:d,output:y}),re("braces"),$.pop();continue}if(d==="|"){x.length>0&&x[x.length-1].conditions++,w({type:"text",value:d});continue}if(d===","){let g=d;const y=$[$.length-1];y&&se[se.length-1]==="braces"&&(y.comma=!0,g="|"),w({type:"comma",value:d,output:g});continue}if(d==="/"){if(h.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",i.pop(),h=r;continue}w({type:"slash",value:d,output:p});continue}if(d==="."){if(E.braces>0&&h.type==="dot"){h.value==="."&&(h.output=f);const g=$[$.length-1];h.type="dots",h.output+=d,h.value+=d,g.dots=!0;continue}if(E.braces+E.parens===0&&h.type!=="bos"&&h.type!=="slash"){w({type:"text",value:d,output:f});continue}w({type:"dot",value:d,output:f});continue}if(d==="?"){if(!(h&&h.value==="(")&&u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("qmark",d);continue}if(h&&h.type==="paren"){const y=R();let O=d;if(y==="<"&&!z.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(Z()))&&(O=`\\${d}`),w({type:"text",value:d,output:O});continue}if(u.dot!==!0&&(h.type==="slash"||h.type==="bos")){w({type:"qmark",value:d,output:X});continue}w({type:"qmark",value:d,output:S});continue}if(d==="!"){if(u.noextglob!==!0&&R()==="("&&(R(2)!=="?"||!/[!=<:]/.test(R(3)))){Pe("negate",d);continue}if(u.nonegate!==!0&&E.index===0){_s();continue}}if(d==="+"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("plus",d);continue}if(h&&h.value==="("||u.regex===!1){w({type:"plus",value:d,output:l});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||E.parens>0){w({type:"plus",value:d});continue}w({type:"plus",value:l});continue}if(d==="@"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){w({type:"at",extglob:!0,value:d,output:""});continue}w({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);const g=tD.exec(Z());g&&(d+=g[0],E.index+=g[0].length),w({type:"text",value:d});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=d,h.output=k,E.backtrack=!0,E.globstar=!0,V(d);continue}let m=Z();if(u.noextglob!==!0&&/^\([^?]/.test(m)){Pe("star",d);continue}if(h.type==="star"){if(u.noglobstar===!0){V(d);continue}const g=h.prev,y=g.prev,O=g.type==="slash"||g.type==="bos",j=y&&(y.type==="star"||y.type==="globstar");if(u.bash===!0&&(!O||m[0]&&m[0]!=="/")){w({type:"star",value:d,output:""});continue}const P=E.braces>0&&(g.type==="comma"||g.type==="brace"),Dt=x.length&&(g.type==="pipe"||g.type==="paren");if(!O&&g.type!=="paren"&&!P&&!Dt){w({type:"star",value:d,output:""});continue}for(;m.slice(0,3)==="/**";){const Le=t[E.index+4];if(Le&&Le!=="/")break;m=m.slice(3),V("/**",3)}if(g.type==="bos"&&G()){h.type="globstar",h.value+=d,h.output=W(u),E.output=h.output,E.globstar=!0,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!j&&G()){E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=W(u)+(u.strictSlashes?")":"|$)"),h.value+=d,E.globstar=!0,E.output+=g.output+h.output,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&m[0]==="/"){const Le=m[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=`${W(u)}${p}|${p}${Le})`,h.value+=d,E.output+=g.output+h.output,E.globstar=!0,V(d+Q()),w({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&m[0]==="/"){h.type="globstar",h.value+=d,h.output=`(?:^|${p}|${W(u)}${p})`,E.output=h.output,E.globstar=!0,V(d+Q()),w({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-h.output.length),h.type="globstar",h.output=W(u),h.value+=d,E.output+=h.output,E.globstar=!0,V(d);continue}const T={type:"star",value:d,output:k};if(u.bash===!0){T.output=".*?",(h.type==="bos"||h.type==="slash")&&(T.output=_+T.output),w(T);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&u.regex===!0){T.output=d,w(T);continue}(E.index===E.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(E.output+=B,h.output+=B):u.dot===!0?(E.output+=H,h.output+=H):(E.output+=_,h.output+=_),R()!=="*"&&(E.output+=C,h.output+=C)),w(T)}for(;E.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(de("closing","]"));E.output=z.escapeLast(E.output,"["),re("brackets")}for(;E.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(de("closing",")"));E.output=z.escapeLast(E.output,"("),re("parens")}for(;E.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(de("closing","}"));E.output=z.escapeLast(E.output,"{"),re("braces")}if(u.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&w({type:"maybe_slash",value:"",output:`${p}?`}),E.backtrack===!0){E.output="";for(const m of E.tokens)E.output+=m.output!=null?m.output:m.value,m.suffix&&(E.output+=m.suffix)}return E};Ht.fastpaths=(t,e)=>{const u={...e},n=typeof u.maxLength=="number"?Math.min(ze,u.maxLength):ze,s=t.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);t=dn[t]||t;const r=z.isWindows(e),{DOT_LITERAL:i,SLASH_LITERAL:D,ONE_CHAR:o,DOTS_SLASH:a,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:l,STAR:p,START_ANCHOR:C}=Ve.globChars(r),F=u.dot?f:c,A=u.dot?l:c,B=u.capture?"":"?:",H={negated:!1,prefix:""};let S=u.bash===!0?".*?":p;u.capture&&(S=`(${S})`);const X=_=>_.noglobstar===!0?S:`(${B}(?:(?!${C}${_.dot?a:i}).)*?)`,M=_=>{switch(_){case"*":return`${F}${o}${S}`;case".*":return`${i}${o}${S}`;case"*.*":return`${F}${S}${i}${o}${S}`;case"*/*":return`${F}${S}${D}${o}${A}${S}`;case"**":return F+X(u);case"**/*":return`(?:${F}${X(u)}${D})?${A}${o}${S}`;case"**/*.*":return`(?:${F}${X(u)}${D})?${A}${S}${i}${o}${S}`;case"**/.*":return`(?:${F}${X(u)}${D})?${i}${o}${S}`;default:{const b=/^(.*?)\.(\w+)$/.exec(_);if(!b)return;const k=M(b[1]);return k?k+i+b[2]:void 0}}},ne=z.removePrefix(t,H);let W=M(ne);return W&&u.strictSlashes!==!0&&(W+=`${D}?`),W};var sD=Ht;const rD=K,iD=Ji,Pt=sD,Lt=je,DD=Ke,oD=t=>t&&typeof t=="object"&&!Array.isArray(t),N=(t,e,u=!1)=>{if(Array.isArray(t)){const c=t.map(l=>N(l,e,u));return l=>{for(const p of c){const C=p(l);if(C)return C}return!1}}const n=oD(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");const s=e||{},r=Lt.isWindows(e),i=n?N.compileRe(t,e):N.makeRe(t,e,!1,!0),D=i.state;delete i.state;let o=()=>!1;if(s.ignore){const c={...e,ignore:null,onMatch:null,onResult:null};o=N(s.ignore,c,u)}const a=(c,f=!1)=>{const{isMatch:l,match:p,output:C}=N.test(c,i,e,{glob:t,posix:r}),F={glob:t,state:D,regex:i,posix:r,input:c,output:C,match:p,isMatch:l};return typeof s.onResult=="function"&&s.onResult(F),l===!1?(F.isMatch=!1,f?F:!1):o(c)?(typeof s.onIgnore=="function"&&s.onIgnore(F),F.isMatch=!1,f?F:!1):(typeof s.onMatch=="function"&&s.onMatch(F),f?F:!0)};return u&&(a.state=D),a};N.test=(t,e,u,{glob:n,posix:s}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};const r=u||{},i=r.format||(s?Lt.toPosixSlashes:null);let D=t===n,o=D&&i?i(t):t;return D===!1&&(o=i?i(t):t,D=o===n),(D===!1||r.capture===!0)&&(r.matchBase===!0||r.basename===!0?D=N.matchBase(t,e,u,s):D=e.exec(o)),{isMatch:!!D,match:D,output:o}},N.matchBase=(t,e,u,n=Lt.isWindows(u))=>(e instanceof RegExp?e:N.makeRe(e,u)).test(rD.basename(t)),N.isMatch=(t,e,u)=>N(e,u)(t),N.parse=(t,e)=>Array.isArray(t)?t.map(u=>N.parse(u,e)):Pt(t,{...e,fastpaths:!1}),N.scan=(t,e)=>iD(t,e),N.compileRe=(t,e,u=!1,n=!1)=>{if(u===!0)return t.output;const s=e||{},r=s.contains?"":"^",i=s.contains?"":"$";let D=`${r}(?:${t.output})${i}`;t&&t.negated===!0&&(D=`^(?!${D}).*$`);const o=N.toRegex(D,e);return n===!0&&(o.state=t),o},N.makeRe=(t,e={},u=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(s.output=Pt.fastpaths(t,e)),s.output||(s=Pt(t,e)),N.compileRe(s,e,u,n)},N.toRegex=(t,e)=>{try{const u=e||{};return new RegExp(t,u.flags||(u.nocase?"i":""))}catch(u){if(e&&e.debug===!0)throw u;return/$^/}},N.constants=DD;var aD=N,En=aD;const we=ie,{Readable:lD}=Ts,Re=K,{promisify:Ye}=me,It=En,cD=Ye(we.readdir),fD=Ye(we.stat),pn=Ye(we.lstat),hD=Ye(we.realpath),dD="!",Cn="READDIRP_RECURSIVE_ERROR",ED=new Set(["ENOENT","EPERM","EACCES","ELOOP",Cn]),kt="files",Fn="directories",qe="files_directories",Xe="all",gn=[kt,Fn,qe,Xe],pD=t=>ED.has(t.code),[mn,CD]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),FD=process.platform==="win32"&&(mn>10||mn===10&&CD>=5),_n=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){const e=It(t.trim());return u=>e(u.basename)}if(Array.isArray(t)){const e=[],u=[];for(const n of t){const s=n.trim();s.charAt(0)===dD?u.push(It(s.slice(1))):e.push(It(s))}return u.length>0?e.length>0?n=>e.some(s=>s(n.basename))&&!u.some(s=>s(n.basename)):n=>!u.some(s=>s(n.basename)):n=>e.some(s=>s(n.basename))}}};class it extends lD{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:kt,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const u={...it.defaultOptions,...e},{root:n,type:s}=u;this._fileFilter=_n(u.fileFilter),this._directoryFilter=_n(u.directoryFilter);const r=u.lstat?pn:fD;FD?this._stat=i=>r(i,{bigint:!0}):this._stat=r,this._maxDepth=u.depth,this._wantsDir=[Fn,qe,Xe].includes(s),this._wantsFile=[kt,qe,Xe].includes(s),this._wantsEverything=s===Xe,this._root=Re.resolve(n),this._isDirent="Dirent"in we&&!u.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(n,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){const{path:u,depth:n,files:s=[]}=this.parent||{};if(s.length>0){const r=s.splice(0,e).map(i=>this._formatEntry(i,u));for(const i of await Promise.all(r)){if(this.destroyed)return;const D=await this._getEntryType(i);D==="directory"&&this._directoryFilter(i)?(n<=this._maxDepth&&this.parents.push(this._exploreDir(i.fullPath,n+1)),this._wantsDir&&(this.push(i),e--)):(D==="file"||this._includeAsFile(i))&&this._fileFilter(i)&&this._wantsFile&&(this.push(i),e--)}}else{const r=this.parents.pop();if(!r){this.push(null);break}if(this.parent=await r,this.destroyed)return}}}catch(u){this.destroy(u)}finally{this.reading=!1}}}async _exploreDir(e,u){let n;try{n=await cD(e,this._rdOptions)}catch(s){this._onError(s)}return{files:n,depth:u,path:e}}async _formatEntry(e,u){let n;try{const s=this._isDirent?e.name:e,r=Re.resolve(Re.join(u,s));n={path:Re.relative(this._root,r),fullPath:r,basename:s},n[this._statsProp]=this._isDirent?e:await this._stat(r)}catch(s){this._onError(s)}return n}_onError(e){pD(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){const u=e&&e[this._statsProp];if(u){if(u.isFile())return"file";if(u.isDirectory())return"directory";if(u&&u.isSymbolicLink()){const n=e.fullPath;try{const s=await hD(n),r=await pn(s);if(r.isFile())return"file";if(r.isDirectory()){const i=s.length;if(n.startsWith(s)&&n.substr(i,1)===Re.sep){const D=new Error(`Circular symlink detected: "${n}" points to "${s}"`);return D.code=Cn,this._onError(D)}return"directory"}}catch(s){this._onError(s)}}}}_includeAsFile(e){const u=e&&e[this._statsProp];return u&&this._wantsEverything&&!u.isDirectory()}}const Ee=(t,e={})=>{let u=e.entryType||e.type;if(u==="both"&&(u=qe),u&&(e.type=u),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(u&&!gn.includes(u))throw new Error(`readdirp: Invalid type passed. Use one of ${gn.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new it(e)},gD=(t,e={})=>new Promise((u,n)=>{const s=[];Ee(t,e).on("data",r=>s.push(r)).on("end",()=>u(s)).on("error",r=>n(r))});Ee.promise=gD,Ee.ReaddirpStream=it,Ee.default=Ee;var mD=Ee,Mt={exports:{}};/*!
|
|
22
|
+
`),n(),process.exit(1);t[o]=a}}function zr(t){return t===void 0||t!==!1}function Mu(t,e,u,n){const s={...e.flags},r=e.version;r&&(s.version={type:Boolean,description:"Show version"});const{help:i}=e,D=zr(i);D&&!("help"in s)&&(s.help={type:Boolean,alias:"h",description:"Show help"});const o=_u(s,n,{ignore:e.ignoreArgv}),a=()=>{console.log(e.version)};if(r&&o.flags.version===!0)return a(),process.exit(0);const c=new Kr,f=D&&(i!=null&&i.render)?i.render:C=>c.render(C),l=C=>{const F=jr({...e,...C?{help:C}:{},flags:s});console.log(f(F,c))};if(D&&o.flags.help===!0)return l(),process.exit(0);if(e.parameters){let{parameters:C}=e,F=o._;const A=C.indexOf("--"),B=C.slice(A+1),H=Object.create(null);if(A>-1&&B.length>0){C=C.slice(0,A);const S=o._["--"];F=F.slice(0,-S.length||void 0),pt(H,Et(C),F,l),pt(H,Et(B),S,l)}else pt(H,Et(C),F,l);Object.assign(o._,H)}const p={...o,showVersion:a,showHelp:l};return typeof u=="function"&&u(p),{command:t,...p}}function Yr(t,e){const u=new Map;for(const n of e){const s=[n.options.name],{alias:r}=n.options;r&&(Array.isArray(r)?s.push(...r):s.push(r));for(const i of s){if(u.has(i))throw new Error(`Duplicate command name found: ${J(i)}`);u.set(i,n)}}return u.get(t)}function qr(t,e,u=process.argv.slice(2)){if(!t)throw new Error("Options is required");if("name"in t&&(!t.name||!dt.test(t.name)))throw new Error(`Invalid script name: ${J(t.name)}`);const n=u[0];if(t.commands&&dt.test(n)){const s=Yr(n,t.commands);if(s)return Mu(s.options.name,{...s.options,parent:t},s.callback,u.slice(1))}return Mu(void 0,t,e,u)}function Xr(t,e){if(!t)throw new Error("Command options are required");const{name:u}=t;if(t.name===void 0)throw new Error("Command name is required");if(!dt.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:t,callback:e}}var Qr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Zr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fe={exports:{}},Ct,Wu;function Jr(){if(Wu)return Ct;Wu=1,Ct=n,n.sync=s;var t=ie;function e(r,i){var D=i.pathExt!==void 0?i.pathExt:process.env.PATHEXT;if(!D||(D=D.split(";"),D.indexOf("")!==-1))return!0;for(var o=0;o<D.length;o++){var a=D[o].toLowerCase();if(a&&r.substr(-a.length).toLowerCase()===a)return!0}return!1}function u(r,i,D){return!r.isSymbolicLink()&&!r.isFile()?!1:e(i,D)}function n(r,i,D){t.stat(r,function(o,a){D(o,o?!1:u(a,r,i))})}function s(r,i){return u(t.statSync(r),r,i)}return Ct}var Ft,Gu;function ei(){if(Gu)return Ft;Gu=1,Ft=e,e.sync=u;var t=ie;function e(r,i,D){t.stat(r,function(o,a){D(o,o?!1:n(a,i))})}function u(r,i){return n(t.statSync(r),i)}function n(r,i){return r.isFile()&&s(r,i)}function s(r,i){var D=r.mode,o=r.uid,a=r.gid,c=i.uid!==void 0?i.uid:process.getuid&&process.getuid(),f=i.gid!==void 0?i.gid:process.getgid&&process.getgid(),l=parseInt("100",8),p=parseInt("010",8),C=parseInt("001",8),F=l|p,A=D&C||D&p&&a===f||D&l&&o===c||D&F&&c===0;return A}return Ft}var Ge;process.platform==="win32"||Qr.TESTING_WINDOWS?Ge=Jr():Ge=ei();var ti=gt;gt.sync=ui;function gt(t,e,u){if(typeof e=="function"&&(u=e,e={}),!u){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,s){gt(t,e||{},function(r,i){r?s(r):n(i)})})}Ge(t,e||{},function(n,s){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,s=!1),u(n,s)})}function ui(t,e){try{return Ge.sync(t,e||{})}catch(u){if(e&&e.ignoreErrors||u.code==="EACCES")return!1;throw u}}const he=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",ju=K,ni=he?";":":",Uu=ti,Ku=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Vu=(t,e)=>{const u=e.colon||ni,n=t.match(/\//)||he&&t.match(/\\/)?[""]:[...he?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],s=he?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",r=he?s.split(u):[""];return he&&t.indexOf(".")!==-1&&r[0]!==""&&r.unshift(""),{pathEnv:n,pathExt:r,pathExtExe:s}},zu=(t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:n,pathExt:s,pathExtExe:r}=Vu(t,e),i=[],D=a=>new Promise((c,f)=>{if(a===n.length)return e.all&&i.length?c(i):f(Ku(t));const l=n[a],p=/^".*"$/.test(l)?l.slice(1,-1):l,C=ju.join(p,t),F=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+C:C;c(o(F,a,0))}),o=(a,c,f)=>new Promise((l,p)=>{if(f===s.length)return l(D(c+1));const C=s[f];Uu(a+C,{pathExt:r},(F,A)=>{if(!F&&A)if(e.all)i.push(a+C);else return l(a+C);return l(o(a,c,f+1))})});return u?D(0).then(a=>u(null,a),u):D(0)},si=(t,e)=>{e=e||{};const{pathEnv:u,pathExt:n,pathExtExe:s}=Vu(t,e),r=[];for(let i=0;i<u.length;i++){const D=u[i],o=/^".*"$/.test(D)?D.slice(1,-1):D,a=ju.join(o,t),c=!o&&/^\.[\\\/]/.test(t)?t.slice(0,2)+a:a;for(let f=0;f<n.length;f++){const l=c+n[f];try{if(Uu.sync(l,{pathExt:s}))if(e.all)r.push(l);else return l}catch{}}}if(e.all&&r.length)return r;if(e.nothrow)return null;throw Ku(t)};var ri=zu;zu.sync=si;var mt={exports:{}};const Yu=(t={})=>{const e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};mt.exports=Yu,mt.exports.default=Yu;var ii=mt.exports;const qu=K,Di=ri,oi=ii;function Xu(t,e){const u=t.options.env||process.env,n=process.cwd(),s=t.options.cwd!=null,r=s&&process.chdir!==void 0&&!process.chdir.disabled;if(r)try{process.chdir(t.options.cwd)}catch{}let i;try{i=Di.sync(t.command,{path:u[oi({env:u})],pathExt:e?qu.delimiter:void 0})}catch{}finally{r&&process.chdir(n)}return i&&(i=qu.resolve(s?t.options.cwd:"",i)),i}function ai(t){return Xu(t)||Xu(t,!0)}var li=ai,_t={};const At=/([()\][%!^"`<>&|;, *?])/g;function ci(t){return t=t.replace(At,"^$1"),t}function fi(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(At,"^$1"),e&&(t=t.replace(At,"^$1")),t}_t.command=ci,_t.argument=fi;var hi=/^#!(.*)/;const di=hi;var Ei=(t="")=>{const e=t.match(di);if(!e)return null;const[u,n]=e[0].replace(/#! ?/,"").split(" "),s=u.split("/").pop();return s==="env"?n:n?`${s} ${n}`:s};const yt=ie,pi=Ei;function Ci(t){const u=Buffer.alloc(150);let n;try{n=yt.openSync(t,"r"),yt.readSync(n,u,0,150,0),yt.closeSync(n)}catch{}return pi(u.toString())}var Fi=Ci;const gi=K,Qu=li,Zu=_t,mi=Fi,_i=process.platform==="win32",Ai=/\.(?:com|exe)$/i,yi=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function wi(t){t.file=Qu(t);const e=t.file&&mi(t.file);return e?(t.args.unshift(t.file),t.command=e,Qu(t)):t.file}function Ri(t){if(!_i)return t;const e=wi(t),u=!Ai.test(e);if(t.options.forceShell||u){const n=yi.test(e);t.command=gi.normalize(t.command),t.command=Zu.command(t.command),t.args=t.args.map(r=>Zu.argument(r,n));const s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function bi(t,e,u){e&&!Array.isArray(e)&&(u=e,e=null),e=e?e.slice(0):[],u=Object.assign({},u);const n={command:t,args:e,options:u,file:void 0,original:{command:t,args:e}};return u.shell?n:Ri(n)}var vi=bi;const wt=process.platform==="win32";function Rt(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function Bi(t,e){if(!wt)return;const u=t.emit;t.emit=function(n,s){if(n==="exit"){const r=Ju(s,e);if(r)return u.call(t,"error",r)}return u.apply(t,arguments)}}function Ju(t,e){return wt&&t===1&&!e.file?Rt(e.original,"spawn"):null}function Si(t,e){return wt&&t===1&&!e.file?Rt(e.original,"spawnSync"):null}var $i={hookChildProcess:Bi,verifyENOENT:Ju,verifyENOENTSync:Si,notFoundError:Rt};const en=vs,bt=vi,vt=$i;function tn(t,e,u){const n=bt(t,e,u),s=en.spawn(n.command,n.args,n.options);return vt.hookChildProcess(s,n),s}function Ti(t,e,u){const n=bt(t,e,u),s=en.spawnSync(n.command,n.args,n.options);return s.error=s.error||vt.verifyENOENTSync(s.status,n),s}fe.exports=tn,fe.exports.spawn=tn,fe.exports.sync=Ti,fe.exports._parse=bt,fe.exports._enoent=vt;var xi=fe.exports,Oi=Zr(xi);function un(t,e){const u={...process.env},n=["inherit","inherit","inherit","ipc"];return e&&(e.noCache&&(u.TSX_DISABLE_CACHE="1"),e.tsconfigPath&&(u.TSX_TSCONFIG_PATH=e.tsconfigPath)),Oi(process.execPath,["--require",ot.resolve("./preflight.cjs"),Bs?"--import":"--loader",Rs(ot.resolve("./loader.mjs")).toString(),...t],{stdio:n,env:u})}var je={};const Ni=K,ee="\\\\/",nn=`[^${ee}]`,te="\\.",Hi="\\+",Pi="\\?",Ue="\\/",Li="(?=.)",sn="[^/]",Bt=`(?:${Ue}|$)`,rn=`(?:^|${Ue})`,St=`${te}{1,2}${Bt}`,Ii=`(?!${te})`,ki=`(?!${rn}${St})`,Mi=`(?!${te}{0,1}${Bt})`,Wi=`(?!${St})`,Gi=`[^.${Ue}]`,ji=`${sn}*?`,Dn={DOT_LITERAL:te,PLUS_LITERAL:Hi,QMARK_LITERAL:Pi,SLASH_LITERAL:Ue,ONE_CHAR:Li,QMARK:sn,END_ANCHOR:Bt,DOTS_SLASH:St,NO_DOT:Ii,NO_DOTS:ki,NO_DOT_SLASH:Mi,NO_DOTS_SLASH:Wi,QMARK_NO_DOT:Gi,STAR:ji,START_ANCHOR:rn},Ui={...Dn,SLASH_LITERAL:`[${ee}]`,QMARK:nn,STAR:`${nn}*?`,DOTS_SLASH:`${te}{1,2}(?:[${ee}]|$)`,NO_DOT:`(?!${te})`,NO_DOTS:`(?!(?:^|[${ee}])${te}{1,2}(?:[${ee}]|$))`,NO_DOT_SLASH:`(?!${te}{0,1}(?:[${ee}]|$))`,NO_DOTS_SLASH:`(?!${te}{1,2}(?:[${ee}]|$))`,QMARK_NO_DOT:`[^.${ee}]`,START_ANCHOR:`(?:^|[${ee}])`,END_ANCHOR:`(?:[${ee}]|$)`},Ki={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var Ke={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Ki,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Ni.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?Ui:Dn}};(function(t){const e=K,u=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=Ke;t.isObject=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),t.hasRegexChars=D=>r.test(D),t.isRegexChar=D=>D.length===1&&t.hasRegexChars(D),t.escapeRegex=D=>D.replace(i,"\\$1"),t.toPosixSlashes=D=>D.replace(n,"/"),t.removeBackslashes=D=>D.replace(s,o=>o==="\\"?"":o),t.supportsLookbehinds=()=>{const D=process.version.slice(1).split(".").map(Number);return D.length===3&&D[0]>=9||D[0]===8&&D[1]>=10},t.isWindows=D=>D&&typeof D.windows=="boolean"?D.windows:u===!0||e.sep==="\\",t.escapeLast=(D,o,a)=>{const c=D.lastIndexOf(o,a);return c===-1?D:D[c-1]==="\\"?t.escapeLast(D,o,c-1):`${D.slice(0,c)}\\${D.slice(c)}`},t.removePrefix=(D,o={})=>{let a=D;return a.startsWith("./")&&(a=a.slice(2),o.prefix="./"),a},t.wrapOutput=(D,o={},a={})=>{const c=a.contains?"":"^",f=a.contains?"":"$";let l=`${c}(?:${D})${f}`;return o.negated===!0&&(l=`(?:^(?!${l}).*$)`),l}})(je);const on=je,{CHAR_ASTERISK:$t,CHAR_AT:Vi,CHAR_BACKWARD_SLASH:ye,CHAR_COMMA:zi,CHAR_DOT:Tt,CHAR_EXCLAMATION_MARK:xt,CHAR_FORWARD_SLASH:an,CHAR_LEFT_CURLY_BRACE:Ot,CHAR_LEFT_PARENTHESES:Nt,CHAR_LEFT_SQUARE_BRACKET:Yi,CHAR_PLUS:qi,CHAR_QUESTION_MARK:ln,CHAR_RIGHT_CURLY_BRACE:Xi,CHAR_RIGHT_PARENTHESES:cn,CHAR_RIGHT_SQUARE_BRACKET:Qi}=Ke,fn=t=>t===an||t===ye,hn=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},Zi=(t,e)=>{const u=e||{},n=t.length-1,s=u.parts===!0||u.scanToEnd===!0,r=[],i=[],D=[];let o=t,a=-1,c=0,f=0,l=!1,p=!1,C=!1,F=!1,A=!1,B=!1,H=!1,S=!1,X=!1,M=!1,ne=0,W,_,b={value:"",depth:0,isGlob:!1};const k=()=>a>=n,E=()=>o.charCodeAt(a+1),x=()=>(W=_,o.charCodeAt(++a));for(;a<n;){_=x();let G;if(_===ye){H=b.backslashes=!0,_=x(),_===Ot&&(B=!0);continue}if(B===!0||_===Ot){for(ne++;k()!==!0&&(_=x());){if(_===ye){H=b.backslashes=!0,x();continue}if(_===Ot){ne++;continue}if(B!==!0&&_===Tt&&(_=x())===Tt){if(l=b.isBrace=!0,C=b.isGlob=!0,M=!0,s===!0)continue;break}if(B!==!0&&_===zi){if(l=b.isBrace=!0,C=b.isGlob=!0,M=!0,s===!0)continue;break}if(_===Xi&&(ne--,ne===0)){B=!1,l=b.isBrace=!0,M=!0;break}}if(s===!0)continue;break}if(_===an){if(r.push(a),i.push(b),b={value:"",depth:0,isGlob:!1},M===!0)continue;if(W===Tt&&a===c+1){c+=2;continue}f=a+1;continue}if(u.noext!==!0&&(_===qi||_===Vi||_===$t||_===ln||_===xt)===!0&&E()===Nt){if(C=b.isGlob=!0,F=b.isExtglob=!0,M=!0,_===xt&&a===c&&(X=!0),s===!0){for(;k()!==!0&&(_=x());){if(_===ye){H=b.backslashes=!0,_=x();continue}if(_===cn){C=b.isGlob=!0,M=!0;break}}continue}break}if(_===$t){if(W===$t&&(A=b.isGlobstar=!0),C=b.isGlob=!0,M=!0,s===!0)continue;break}if(_===ln){if(C=b.isGlob=!0,M=!0,s===!0)continue;break}if(_===Yi){for(;k()!==!0&&(G=x());){if(G===ye){H=b.backslashes=!0,x();continue}if(G===Qi){p=b.isBracket=!0,C=b.isGlob=!0,M=!0;break}}if(s===!0)continue;break}if(u.nonegate!==!0&&_===xt&&a===c){S=b.negated=!0,c++;continue}if(u.noparen!==!0&&_===Nt){if(C=b.isGlob=!0,s===!0){for(;k()!==!0&&(_=x());){if(_===Nt){H=b.backslashes=!0,_=x();continue}if(_===cn){M=!0;break}}continue}break}if(C===!0){if(M=!0,s===!0)continue;break}}u.noext===!0&&(F=!1,C=!1);let $=o,se="",h="";c>0&&(se=o.slice(0,c),o=o.slice(c),f-=c),$&&C===!0&&f>0?($=o.slice(0,f),h=o.slice(f)):C===!0?($="",h=o):$=o,$&&$!==""&&$!=="/"&&$!==o&&fn($.charCodeAt($.length-1))&&($=$.slice(0,-1)),u.unescape===!0&&(h&&(h=on.removeBackslashes(h)),$&&H===!0&&($=on.removeBackslashes($)));const d={prefix:se,input:t,start:c,base:$,glob:h,isBrace:l,isBracket:p,isGlob:C,isExtglob:F,isGlobstar:A,negated:S,negatedExtglob:X};if(u.tokens===!0&&(d.maxDepth=0,fn(_)||i.push(b),d.tokens=i),u.parts===!0||u.tokens===!0){let G;for(let R=0;R<r.length;R++){const Q=G?G+1:c,Z=r[R],V=t.slice(Q,Z);u.tokens&&(R===0&&c!==0?(i[R].isPrefix=!0,i[R].value=se):i[R].value=V,hn(i[R]),d.maxDepth+=i[R].depth),(R!==0||V!=="")&&D.push(V),G=Z}if(G&&G+1<t.length){const R=t.slice(G+1);D.push(R),u.tokens&&(i[i.length-1].value=R,hn(i[i.length-1]),d.maxDepth+=i[i.length-1].depth)}d.slashes=r,d.parts=D}return d};var Ji=Zi;const Ve=Ke,z=je,{MAX_LENGTH:ze,POSIX_REGEX_SOURCE:eD,REGEX_NON_SPECIAL_CHARS:tD,REGEX_SPECIAL_CHARS_BACKREF:uD,REPLACEMENTS:dn}=Ve,nD=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();const u=`[${t.join("-")}]`;try{new RegExp(u)}catch{return t.map(s=>z.escapeRegex(s)).join("..")}return u},de=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Ht=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=dn[t]||t;const u={...e},n=typeof u.maxLength=="number"?Math.min(ze,u.maxLength):ze;let s=t.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);const r={type:"bos",value:"",output:u.prepend||""},i=[r],D=u.capture?"":"?:",o=z.isWindows(e),a=Ve.globChars(o),c=Ve.extglobChars(a),{DOT_LITERAL:f,PLUS_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:C,DOTS_SLASH:F,NO_DOT:A,NO_DOT_SLASH:B,NO_DOTS_SLASH:H,QMARK:S,QMARK_NO_DOT:X,STAR:M,START_ANCHOR:ne}=a,W=m=>`(${D}(?:(?!${ne}${m.dot?F:f}).)*?)`,_=u.dot?"":A,b=u.dot?S:X;let k=u.bash===!0?W(u):M;u.capture&&(k=`(${k})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const E={input:t,index:-1,start:0,dot:u.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};t=z.removePrefix(t,E),s=t.length;const x=[],$=[],se=[];let h=r,d;const G=()=>E.index===s-1,R=E.peek=(m=1)=>t[E.index+m],Q=E.advance=()=>t[++E.index]||"",Z=()=>t.slice(E.index+1),V=(m="",T=0)=>{E.consumed+=m,E.index+=T},Ne=m=>{E.output+=m.output!=null?m.output:m.value,V(m.value)},_s=()=>{let m=1;for(;R()==="!"&&(R(2)!=="("||R(3)==="?");)Q(),E.start++,m++;return m%2===0?!1:(E.negated=!0,E.start++,!0)},He=m=>{E[m]++,se.push(m)},re=m=>{E[m]--,se.pop()},w=m=>{if(h.type==="globstar"){const T=E.braces>0&&(m.type==="comma"||m.type==="brace"),g=m.extglob===!0||x.length&&(m.type==="pipe"||m.type==="paren");m.type!=="slash"&&m.type!=="paren"&&!T&&!g&&(E.output=E.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=k,E.output+=h.output)}if(x.length&&m.type!=="paren"&&(x[x.length-1].inner+=m.value),(m.value||m.output)&&Ne(m),h&&h.type==="text"&&m.type==="text"){h.value+=m.value,h.output=(h.output||"")+m.value;return}m.prev=h,i.push(m),h=m},Pe=(m,T)=>{const g={...c[T],conditions:1,inner:""};g.prev=h,g.parens=E.parens,g.output=E.output;const y=(u.capture?"(":"")+g.open;He("parens"),w({type:m,value:T,output:E.output?"":C}),w({type:"paren",extglob:!0,value:Q(),output:y}),x.push(g)},As=m=>{let T=m.close+(u.capture?")":""),g;if(m.type==="negate"){let y=k;if(m.inner&&m.inner.length>1&&m.inner.includes("/")&&(y=W(u)),(y!==k||G()||/^\)+$/.test(Z()))&&(T=m.close=`)$))${y}`),m.inner.includes("*")&&(g=Z())&&/^\.[^\\/.]+$/.test(g)){const O=Ht(g,{...e,fastpaths:!1}).output;T=m.close=`)${O})${y})`}m.prev.type==="bos"&&(E.negatedExtglob=!0)}w({type:"paren",extglob:!0,value:d,output:T}),re("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let m=!1,T=t.replace(uD,(g,y,O,j,P,Dt)=>j==="\\"?(m=!0,g):j==="?"?y?y+j+(P?S.repeat(P.length):""):Dt===0?b+(P?S.repeat(P.length):""):S.repeat(O.length):j==="."?f.repeat(O.length):j==="*"?y?y+j+(P?k:""):k:y?g:`\\${g}`);return m===!0&&(u.unescape===!0?T=T.replace(/\\/g,""):T=T.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),T===t&&u.contains===!0?(E.output=t,E):(E.output=z.wrapOutput(T,E,e),E)}for(;!G();){if(d=Q(),d==="\0")continue;if(d==="\\"){const g=R();if(g==="/"&&u.bash!==!0||g==="."||g===";")continue;if(!g){d+="\\",w({type:"text",value:d});continue}const y=/^\\+/.exec(Z());let O=0;if(y&&y[0].length>2&&(O=y[0].length,E.index+=O,O%2!==0&&(d+="\\")),u.unescape===!0?d=Q():d+=Q(),E.brackets===0){w({type:"text",value:d});continue}}if(E.brackets>0&&(d!=="]"||h.value==="["||h.value==="[^")){if(u.posix!==!1&&d===":"){const g=h.value.slice(1);if(g.includes("[")&&(h.posix=!0,g.includes(":"))){const y=h.value.lastIndexOf("["),O=h.value.slice(0,y),j=h.value.slice(y+2),P=eD[j];if(P){h.value=O+P,E.backtrack=!0,Q(),!r.output&&i.indexOf(h)===1&&(r.output=C);continue}}}(d==="["&&R()!==":"||d==="-"&&R()==="]")&&(d=`\\${d}`),d==="]"&&(h.value==="["||h.value==="[^")&&(d=`\\${d}`),u.posix===!0&&d==="!"&&h.value==="["&&(d="^"),h.value+=d,Ne({value:d});continue}if(E.quotes===1&&d!=='"'){d=z.escapeRegex(d),h.value+=d,Ne({value:d});continue}if(d==='"'){E.quotes=E.quotes===1?0:1,u.keepQuotes===!0&&w({type:"text",value:d});continue}if(d==="("){He("parens"),w({type:"paren",value:d});continue}if(d===")"){if(E.parens===0&&u.strictBrackets===!0)throw new SyntaxError(de("opening","("));const g=x[x.length-1];if(g&&E.parens===g.parens+1){As(x.pop());continue}w({type:"paren",value:d,output:E.parens?")":"\\)"}),re("parens");continue}if(d==="["){if(u.nobracket===!0||!Z().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(de("closing","]"));d=`\\${d}`}else He("brackets");w({type:"bracket",value:d});continue}if(d==="]"){if(u.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){w({type:"text",value:d,output:`\\${d}`});continue}if(E.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(de("opening","["));w({type:"text",value:d,output:`\\${d}`});continue}re("brackets");const g=h.value.slice(1);if(h.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(d=`/${d}`),h.value+=d,Ne({value:d}),u.literalBrackets===!1||z.hasRegexChars(g))continue;const y=z.escapeRegex(h.value);if(E.output=E.output.slice(0,-h.value.length),u.literalBrackets===!0){E.output+=y,h.value=y;continue}h.value=`(${D}${y}|${h.value})`,E.output+=h.value;continue}if(d==="{"&&u.nobrace!==!0){He("braces");const g={type:"brace",value:d,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};$.push(g),w(g);continue}if(d==="}"){const g=$[$.length-1];if(u.nobrace===!0||!g){w({type:"text",value:d,output:d});continue}let y=")";if(g.dots===!0){const O=i.slice(),j=[];for(let P=O.length-1;P>=0&&(i.pop(),O[P].type!=="brace");P--)O[P].type!=="dots"&&j.unshift(O[P].value);y=nD(j,u),E.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const O=E.output.slice(0,g.outputIndex),j=E.tokens.slice(g.tokensIndex);g.value=g.output="\\{",d=y="\\}",E.output=O;for(const P of j)E.output+=P.output||P.value}w({type:"brace",value:d,output:y}),re("braces"),$.pop();continue}if(d==="|"){x.length>0&&x[x.length-1].conditions++,w({type:"text",value:d});continue}if(d===","){let g=d;const y=$[$.length-1];y&&se[se.length-1]==="braces"&&(y.comma=!0,g="|"),w({type:"comma",value:d,output:g});continue}if(d==="/"){if(h.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",i.pop(),h=r;continue}w({type:"slash",value:d,output:p});continue}if(d==="."){if(E.braces>0&&h.type==="dot"){h.value==="."&&(h.output=f);const g=$[$.length-1];h.type="dots",h.output+=d,h.value+=d,g.dots=!0;continue}if(E.braces+E.parens===0&&h.type!=="bos"&&h.type!=="slash"){w({type:"text",value:d,output:f});continue}w({type:"dot",value:d,output:f});continue}if(d==="?"){if(!(h&&h.value==="(")&&u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("qmark",d);continue}if(h&&h.type==="paren"){const y=R();let O=d;if(y==="<"&&!z.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(Z()))&&(O=`\\${d}`),w({type:"text",value:d,output:O});continue}if(u.dot!==!0&&(h.type==="slash"||h.type==="bos")){w({type:"qmark",value:d,output:X});continue}w({type:"qmark",value:d,output:S});continue}if(d==="!"){if(u.noextglob!==!0&&R()==="("&&(R(2)!=="?"||!/[!=<:]/.test(R(3)))){Pe("negate",d);continue}if(u.nonegate!==!0&&E.index===0){_s();continue}}if(d==="+"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("plus",d);continue}if(h&&h.value==="("||u.regex===!1){w({type:"plus",value:d,output:l});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||E.parens>0){w({type:"plus",value:d});continue}w({type:"plus",value:l});continue}if(d==="@"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){w({type:"at",extglob:!0,value:d,output:""});continue}w({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);const g=tD.exec(Z());g&&(d+=g[0],E.index+=g[0].length),w({type:"text",value:d});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=d,h.output=k,E.backtrack=!0,E.globstar=!0,V(d);continue}let m=Z();if(u.noextglob!==!0&&/^\([^?]/.test(m)){Pe("star",d);continue}if(h.type==="star"){if(u.noglobstar===!0){V(d);continue}const g=h.prev,y=g.prev,O=g.type==="slash"||g.type==="bos",j=y&&(y.type==="star"||y.type==="globstar");if(u.bash===!0&&(!O||m[0]&&m[0]!=="/")){w({type:"star",value:d,output:""});continue}const P=E.braces>0&&(g.type==="comma"||g.type==="brace"),Dt=x.length&&(g.type==="pipe"||g.type==="paren");if(!O&&g.type!=="paren"&&!P&&!Dt){w({type:"star",value:d,output:""});continue}for(;m.slice(0,3)==="/**";){const Le=t[E.index+4];if(Le&&Le!=="/")break;m=m.slice(3),V("/**",3)}if(g.type==="bos"&&G()){h.type="globstar",h.value+=d,h.output=W(u),E.output=h.output,E.globstar=!0,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!j&&G()){E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=W(u)+(u.strictSlashes?")":"|$)"),h.value+=d,E.globstar=!0,E.output+=g.output+h.output,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&m[0]==="/"){const Le=m[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=`${W(u)}${p}|${p}${Le})`,h.value+=d,E.output+=g.output+h.output,E.globstar=!0,V(d+Q()),w({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&m[0]==="/"){h.type="globstar",h.value+=d,h.output=`(?:^|${p}|${W(u)}${p})`,E.output=h.output,E.globstar=!0,V(d+Q()),w({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-h.output.length),h.type="globstar",h.output=W(u),h.value+=d,E.output+=h.output,E.globstar=!0,V(d);continue}const T={type:"star",value:d,output:k};if(u.bash===!0){T.output=".*?",(h.type==="bos"||h.type==="slash")&&(T.output=_+T.output),w(T);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&u.regex===!0){T.output=d,w(T);continue}(E.index===E.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(E.output+=B,h.output+=B):u.dot===!0?(E.output+=H,h.output+=H):(E.output+=_,h.output+=_),R()!=="*"&&(E.output+=C,h.output+=C)),w(T)}for(;E.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(de("closing","]"));E.output=z.escapeLast(E.output,"["),re("brackets")}for(;E.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(de("closing",")"));E.output=z.escapeLast(E.output,"("),re("parens")}for(;E.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(de("closing","}"));E.output=z.escapeLast(E.output,"{"),re("braces")}if(u.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&w({type:"maybe_slash",value:"",output:`${p}?`}),E.backtrack===!0){E.output="";for(const m of E.tokens)E.output+=m.output!=null?m.output:m.value,m.suffix&&(E.output+=m.suffix)}return E};Ht.fastpaths=(t,e)=>{const u={...e},n=typeof u.maxLength=="number"?Math.min(ze,u.maxLength):ze,s=t.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);t=dn[t]||t;const r=z.isWindows(e),{DOT_LITERAL:i,SLASH_LITERAL:D,ONE_CHAR:o,DOTS_SLASH:a,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:l,STAR:p,START_ANCHOR:C}=Ve.globChars(r),F=u.dot?f:c,A=u.dot?l:c,B=u.capture?"":"?:",H={negated:!1,prefix:""};let S=u.bash===!0?".*?":p;u.capture&&(S=`(${S})`);const X=_=>_.noglobstar===!0?S:`(${B}(?:(?!${C}${_.dot?a:i}).)*?)`,M=_=>{switch(_){case"*":return`${F}${o}${S}`;case".*":return`${i}${o}${S}`;case"*.*":return`${F}${S}${i}${o}${S}`;case"*/*":return`${F}${S}${D}${o}${A}${S}`;case"**":return F+X(u);case"**/*":return`(?:${F}${X(u)}${D})?${A}${o}${S}`;case"**/*.*":return`(?:${F}${X(u)}${D})?${A}${S}${i}${o}${S}`;case"**/.*":return`(?:${F}${X(u)}${D})?${i}${o}${S}`;default:{const b=/^(.*?)\.(\w+)$/.exec(_);if(!b)return;const k=M(b[1]);return k?k+i+b[2]:void 0}}},ne=z.removePrefix(t,H);let W=M(ne);return W&&u.strictSlashes!==!0&&(W+=`${D}?`),W};var sD=Ht;const rD=K,iD=Ji,Pt=sD,Lt=je,DD=Ke,oD=t=>t&&typeof t=="object"&&!Array.isArray(t),N=(t,e,u=!1)=>{if(Array.isArray(t)){const c=t.map(l=>N(l,e,u));return l=>{for(const p of c){const C=p(l);if(C)return C}return!1}}const n=oD(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");const s=e||{},r=Lt.isWindows(e),i=n?N.compileRe(t,e):N.makeRe(t,e,!1,!0),D=i.state;delete i.state;let o=()=>!1;if(s.ignore){const c={...e,ignore:null,onMatch:null,onResult:null};o=N(s.ignore,c,u)}const a=(c,f=!1)=>{const{isMatch:l,match:p,output:C}=N.test(c,i,e,{glob:t,posix:r}),F={glob:t,state:D,regex:i,posix:r,input:c,output:C,match:p,isMatch:l};return typeof s.onResult=="function"&&s.onResult(F),l===!1?(F.isMatch=!1,f?F:!1):o(c)?(typeof s.onIgnore=="function"&&s.onIgnore(F),F.isMatch=!1,f?F:!1):(typeof s.onMatch=="function"&&s.onMatch(F),f?F:!0)};return u&&(a.state=D),a};N.test=(t,e,u,{glob:n,posix:s}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};const r=u||{},i=r.format||(s?Lt.toPosixSlashes:null);let D=t===n,o=D&&i?i(t):t;return D===!1&&(o=i?i(t):t,D=o===n),(D===!1||r.capture===!0)&&(r.matchBase===!0||r.basename===!0?D=N.matchBase(t,e,u,s):D=e.exec(o)),{isMatch:!!D,match:D,output:o}},N.matchBase=(t,e,u,n=Lt.isWindows(u))=>(e instanceof RegExp?e:N.makeRe(e,u)).test(rD.basename(t)),N.isMatch=(t,e,u)=>N(e,u)(t),N.parse=(t,e)=>Array.isArray(t)?t.map(u=>N.parse(u,e)):Pt(t,{...e,fastpaths:!1}),N.scan=(t,e)=>iD(t,e),N.compileRe=(t,e,u=!1,n=!1)=>{if(u===!0)return t.output;const s=e||{},r=s.contains?"":"^",i=s.contains?"":"$";let D=`${r}(?:${t.output})${i}`;t&&t.negated===!0&&(D=`^(?!${D}).*$`);const o=N.toRegex(D,e);return n===!0&&(o.state=t),o},N.makeRe=(t,e={},u=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(s.output=Pt.fastpaths(t,e)),s.output||(s=Pt(t,e)),N.compileRe(s,e,u,n)},N.toRegex=(t,e)=>{try{const u=e||{};return new RegExp(t,u.flags||(u.nocase?"i":""))}catch(u){if(e&&e.debug===!0)throw u;return/$^/}},N.constants=DD;var aD=N,En=aD;const we=ie,{Readable:lD}=Ts,Re=K,{promisify:Ye}=me,It=En,cD=Ye(we.readdir),fD=Ye(we.stat),pn=Ye(we.lstat),hD=Ye(we.realpath),dD="!",Cn="READDIRP_RECURSIVE_ERROR",ED=new Set(["ENOENT","EPERM","EACCES","ELOOP",Cn]),kt="files",Fn="directories",qe="files_directories",Xe="all",gn=[kt,Fn,qe,Xe],pD=t=>ED.has(t.code),[mn,CD]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),FD=process.platform==="win32"&&(mn>10||mn===10&&CD>=5),_n=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){const e=It(t.trim());return u=>e(u.basename)}if(Array.isArray(t)){const e=[],u=[];for(const n of t){const s=n.trim();s.charAt(0)===dD?u.push(It(s.slice(1))):e.push(It(s))}return u.length>0?e.length>0?n=>e.some(s=>s(n.basename))&&!u.some(s=>s(n.basename)):n=>!u.some(s=>s(n.basename)):n=>e.some(s=>s(n.basename))}}};class it extends lD{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:kt,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const u={...it.defaultOptions,...e},{root:n,type:s}=u;this._fileFilter=_n(u.fileFilter),this._directoryFilter=_n(u.directoryFilter);const r=u.lstat?pn:fD;FD?this._stat=i=>r(i,{bigint:!0}):this._stat=r,this._maxDepth=u.depth,this._wantsDir=[Fn,qe,Xe].includes(s),this._wantsFile=[kt,qe,Xe].includes(s),this._wantsEverything=s===Xe,this._root=Re.resolve(n),this._isDirent="Dirent"in we&&!u.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(n,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){const{path:u,depth:n,files:s=[]}=this.parent||{};if(s.length>0){const r=s.splice(0,e).map(i=>this._formatEntry(i,u));for(const i of await Promise.all(r)){if(this.destroyed)return;const D=await this._getEntryType(i);D==="directory"&&this._directoryFilter(i)?(n<=this._maxDepth&&this.parents.push(this._exploreDir(i.fullPath,n+1)),this._wantsDir&&(this.push(i),e--)):(D==="file"||this._includeAsFile(i))&&this._fileFilter(i)&&this._wantsFile&&(this.push(i),e--)}}else{const r=this.parents.pop();if(!r){this.push(null);break}if(this.parent=await r,this.destroyed)return}}}catch(u){this.destroy(u)}finally{this.reading=!1}}}async _exploreDir(e,u){let n;try{n=await cD(e,this._rdOptions)}catch(s){this._onError(s)}return{files:n,depth:u,path:e}}async _formatEntry(e,u){let n;try{const s=this._isDirent?e.name:e,r=Re.resolve(Re.join(u,s));n={path:Re.relative(this._root,r),fullPath:r,basename:s},n[this._statsProp]=this._isDirent?e:await this._stat(r)}catch(s){this._onError(s)}return n}_onError(e){pD(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){const u=e&&e[this._statsProp];if(u){if(u.isFile())return"file";if(u.isDirectory())return"directory";if(u&&u.isSymbolicLink()){const n=e.fullPath;try{const s=await hD(n),r=await pn(s);if(r.isFile())return"file";if(r.isDirectory()){const i=s.length;if(n.startsWith(s)&&n.substr(i,1)===Re.sep){const D=new Error(`Circular symlink detected: "${n}" points to "${s}"`);return D.code=Cn,this._onError(D)}return"directory"}}catch(s){this._onError(s)}}}}_includeAsFile(e){const u=e&&e[this._statsProp];return u&&this._wantsEverything&&!u.isDirectory()}}const Ee=(t,e={})=>{let u=e.entryType||e.type;if(u==="both"&&(u=qe),u&&(e.type=u),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(u&&!gn.includes(u))throw new Error(`readdirp: Invalid type passed. Use one of ${gn.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new it(e)},gD=(t,e={})=>new Promise((u,n)=>{const s=[];Ee(t,e).on("data",r=>s.push(r)).on("end",()=>u(s)).on("error",r=>n(r))});Ee.promise=gD,Ee.ReaddirpStream=it,Ee.default=Ee;var mD=Ee,Mt={exports:{}};/*!
|
|
23
23
|
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
24
24
|
*
|
|
25
25
|
* Copyright (c) 2014-2018, Jon Schlinkert.
|
package/dist/esm/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
2
|
-
The --loader flag was deprecated in Node v20.6.0`);const{port:t}=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var R=require("worker_threads"),S=require("../node-features-84a305a1.cjs"),b=require("module"),p=require("../source-map.cjs"),F=require("path"),g=require("url"),E=require("../index-8582abce.cjs"),x=require("../resolve-ts-path-43f50656.cjs"),d=require("get-tsconfig"),D=require("fs");require("source-map-support"),require("esbuild"),require("crypto"),require("os");function y(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var N=y(b),_=y(F),M=y(D);const A=()=>{const{port1:e,port2:t}=new R.MessageChannel;p.installSourceMapSupport(e),process.send&&e.addListener("message",r=>{r.type==="dependency"&&process.send(r)}),e.unref(),N.default.register("./index.mjs",{parentURL:typeof document>"u"?new(require("url")).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("esm/index.cjs",document.baseURI).href,data:{port:t},transferList:[t]})},f=new Map;async function I(e){if(f.has(e))return f.get(e);if(!await M.default.promises.access(e).then(()=>!0,()=>!1)){f.set(e,void 0);return}const r=await M.default.promises.readFile(e,"utf8");try{const o=JSON.parse(r);return f.set(e,o),o}catch{throw new Error(`Error parsing: ${e}`)}}async function J(e){let t=new URL("package.json",e);for(;!t.pathname.endsWith("/node_modules/package.json");){const r=g.fileURLToPath(t),o=await I(r);if(o)return o;const a=t;if(t=new URL("../package.json",t),t.pathname===a.pathname)break}}async function C(e){var t;const r=await J(e);return(t=r==null?void 0:r.type)!=null?t:"commonjs"}const l=process.env.TSX_TSCONFIG_PATH?{path:_.default.resolve(process.env.TSX_TSCONFIG_PATH),config:d.parseTsconfig(process.env.TSX_TSCONFIG_PATH)}:d.getTsconfig(),W=l&&d.createFilesMatcher(l),j=l&&d.createPathsMatcher(l),k="file://",w=/\.([cm]?ts|[tj]sx)($|\?)/,G=/\.json(?:$|\?)/,H=e=>{const t=_.default.extname(e);if(t===".json")return"json";if(t===".mjs"||t===".mts")return"module";if(t===".cjs"||t===".cts")return"commonjs"},X=e=>{const t=H(e);if(t)return t;if(w.test(e))return C(e)},q=p.installSourceMapSupport(),U=/\/(?:$|\?)/;let m,h=process.send?process.send.bind(process):void 0;const z=async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0`);const{port:t}=e;m=t,h=t.postMessage.bind(t)},K=({port:e})=>(m=e,h=e.postMessage.bind(e),`
|
|
3
3
|
const require = getBuiltin('module').createRequire("${typeof document>"u"?new(require("url")).URL("file:"+__filename).href:document.currentScript&&document.currentScript.src||new URL("esm/index.cjs",document.baseURI).href}");
|
|
4
4
|
require('tsx/source-map').installSourceMapSupport(port);
|
|
5
5
|
if (process.send) {
|
|
@@ -10,4 +10,4 @@ The --loader flag was deprecated in Node v20.6.0`);const{port:t}=e;_=t,w=t.postM
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
port.unref(); // Allows process to exit without waiting for port to close
|
|
13
|
-
`),
|
|
13
|
+
`),P=async(e,t,r)=>{const o=await e(t,r);return!o.format&&o.url.startsWith(k)&&(o.format=await X(o.url)),o},Q=[".js",".json",".ts",".tsx",".jsx"];async function T(e,t,r){const[o,a]=e.split("?");let c;for(const n of Q)try{return await P(r,o+n+(a?`?${a}`:""),t)}catch(s){if(c===void 0&&s instanceof Error){const{message:i}=s;s.message=s.message.replace(`${n}'`,"'"),s.stack=s.stack.replace(i,s.message),c=s}}throw c}async function L(e,t,r){const o=U.test(e),a=o?"index":"/index",[c,n]=e.split("?");try{return await T(c+a+(n?`?${n}`:""),t,r)}catch(s){if(!o)try{return await T(e,t,r)}catch{}const i=s,{message:u}=i;throw i.message=i.message.replace(`${a.replace("/",_.default.sep)}'`,"'"),i.stack=i.stack.replace(u,i.message),i}}const B=/^\.{1,2}\//,O=async function(e,t,r,o){var a;if(U.test(e))return await L(e,t,r);const c=e.startsWith(k)||B.test(e);if(j&&!c&&!((a=t.parentURL)!=null&&a.includes("/node_modules/"))){const n=j(e);for(const s of n)try{return await O(g.pathToFileURL(s).toString(),t,r)}catch{}}if(w.test(t.parentURL)){const n=x.resolveTsPath(e);if(n)for(const s of n)try{return await P(r,s,t)}catch(i){const{code:u}=i;if(u!=="ERR_MODULE_NOT_FOUND"&&u!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i}}try{return await P(r,e,t)}catch(n){if(n instanceof Error&&!o){const{code:s}=n;if(s==="ERR_UNSUPPORTED_DIR_IMPORT")try{return await L(e,t,r)}catch(i){if(i.code!=="ERR_PACKAGE_IMPORT_NOT_DEFINED")throw i}if(s==="ERR_MODULE_NOT_FOUND")try{return await T(e,t,r)}catch{}}throw n}},v=S.importAttributes?"importAttributes":"importAssertions",$=async function(e,t,r){var o;h&&h({type:"dependency",path:e}),G.test(e)&&(t[v]||(t[v]={}),t[v].type="json");const a=await r(e,t);if(!a.source)return a;const c=e.startsWith("file://")?g.fileURLToPath(e):e;let n=a.source.toString();if(p.shouldStripSourceMap&&(n=p.stripSourceMap(n)),a.format==="json"||w.test(e)){const s=await E.transform(n,c,{tsconfigRaw:(o=W)==null?void 0:o(c)});return{format:"module",source:q(s,e,m)}}if(a.format==="module"){const s=E.transformDynamicImport(c,n);s&&(a.source=q(s,e,m))}return a};S.supportsModuleRegister&&R.isMainThread&&A(),exports.globalPreload=K,exports.initialize=z,exports.load=$,exports.resolve=O;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{MessageChannel as
|
|
2
|
-
The --loader flag was deprecated in Node v20.6.0`);const{port:
|
|
1
|
+
import{MessageChannel as O,isMainThread as F}from"worker_threads";import{i as N,s as U}from"../node-features-a792cc3d.mjs";import v from"module";import{installSourceMapSupport as P,shouldStripSourceMap as A,stripSourceMap as D}from"../source-map.mjs";import h from"path";import{fileURLToPath as _,pathToFileURL as L}from"url";import{t as b,a as x}from"../index-212fbee2.mjs";import{r as J}from"../resolve-ts-path-a8cb04a4.mjs";import{parseTsconfig as I,getTsconfig as $,createFilesMatcher as C,createPathsMatcher as W}from"get-tsconfig";import T from"fs";import"source-map-support";import"esbuild";import"crypto";import"os";const q=()=>{const{port1:t,port2:r}=new O;P(t),process.send&&t.addListener("message",s=>{s.type==="dependency"&&process.send(s)}),t.unref(),v.register("./index.mjs",{parentURL:import.meta.url,data:{port:r},transferList:[r]})},m=new Map;async function G(t){if(m.has(t))return m.get(t);if(!await T.promises.access(t).then(()=>!0,()=>!1)){m.set(t,void 0);return}const s=await T.promises.readFile(t,"utf8");try{const o=JSON.parse(s);return m.set(t,o),o}catch{throw new Error(`Error parsing: ${t}`)}}async function H(t){let r=new URL("package.json",t);for(;!r.pathname.endsWith("/node_modules/package.json");){const s=_(r),o=await G(s);if(o)return o;const a=r;if(r=new URL("../package.json",r),r.pathname===a.pathname)break}}async function X(t){var r;const s=await H(t);return(r=s==null?void 0:s.type)!=null?r:"commonjs"}const f=process.env.TSX_TSCONFIG_PATH?{path:h.resolve(process.env.TSX_TSCONFIG_PATH),config:I(process.env.TSX_TSCONFIG_PATH)}:$(),K=f&&C(f),E=f&&W(f),k="file://",g=/\.([cm]?ts|[tj]sx)($|\?)/,Q=/\.json(?:$|\?)/,z=t=>{const r=h.extname(t);if(r===".json")return"json";if(r===".mjs"||r===".mts")return"module";if(r===".cjs"||r===".cts")return"commonjs"},B=t=>{const r=z(t);if(r)return r;if(g.test(t))return X(t)},M=P(),R=/\/(?:$|\?)/;let u,d=process.send?process.send.bind(process):void 0;const V=async t=>{if(!t)throw new Error(`tsx must be loaded with --import instead of --loader
|
|
2
|
+
The --loader flag was deprecated in Node v20.6.0`);const{port:r}=t;u=r,d=r.postMessage.bind(r)},Y=({port:t})=>(u=t,d=t.postMessage.bind(t),`
|
|
3
3
|
const require = getBuiltin('module').createRequire("${import.meta.url}");
|
|
4
4
|
require('tsx/source-map').installSourceMapSupport(port);
|
|
5
5
|
if (process.send) {
|
|
@@ -10,4 +10,4 @@ The --loader flag was deprecated in Node v20.6.0`);const{port:s}=t;h=s,g=s.postM
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
port.unref(); // Allows process to exit without waiting for port to close
|
|
13
|
-
`),
|
|
13
|
+
`),l=async(t,r,s)=>{const o=await t(r,s);return!o.format&&o.url.startsWith(k)&&(o.format=await B(o.url)),o},Z=[".js",".json",".ts",".tsx",".jsx"];async function y(t,r,s){const[o,a]=t.split("?");let c;for(const n of Z)try{return await l(s,o+n+(a?`?${a}`:""),r)}catch(e){if(c===void 0&&e instanceof Error){const{message:i}=e;e.message=e.message.replace(`${n}'`,"'"),e.stack=e.stack.replace(i,e.message),c=e}}throw c}async function S(t,r,s){const o=R.test(t),a=o?"index":"/index",[c,n]=t.split("?");try{return await y(c+a+(n?`?${n}`:""),r,s)}catch(e){if(!o)try{return await y(t,r,s)}catch{}const i=e,{message:p}=i;throw i.message=i.message.replace(`${a.replace("/",h.sep)}'`,"'"),i.stack=i.stack.replace(p,i.message),i}}const tt=/^\.{1,2}\//,j=async function(t,r,s,o){var a;if(R.test(t))return await S(t,r,s);const c=t.startsWith(k)||tt.test(t);if(E&&!c&&!((a=r.parentURL)!=null&&a.includes("/node_modules/"))){const n=E(t);for(const e of n)try{return await j(L(e).toString(),r,s)}catch{}}if(g.test(r.parentURL)){const n=J(t);if(n)for(const e of n)try{return await l(s,e,r)}catch(i){const{code:p}=i;if(p!=="ERR_MODULE_NOT_FOUND"&&p!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw i}}try{return await l(s,t,r)}catch(n){if(n instanceof Error&&!o){const{code:e}=n;if(e==="ERR_UNSUPPORTED_DIR_IMPORT")try{return await S(t,r,s)}catch(i){if(i.code!=="ERR_PACKAGE_IMPORT_NOT_DEFINED")throw i}if(e==="ERR_MODULE_NOT_FOUND")try{return await y(t,r,s)}catch{}}throw n}},w=N?"importAttributes":"importAssertions",rt=async function(t,r,s){var o;d&&d({type:"dependency",path:t}),Q.test(t)&&(r[w]||(r[w]={}),r[w].type="json");const a=await s(t,r);if(!a.source)return a;const c=t.startsWith("file://")?_(t):t;let n=a.source.toString();if(A&&(n=D(n)),a.format==="json"||g.test(t)){const e=await b(n,c,{tsconfigRaw:(o=K)==null?void 0:o(c)});return{format:"module",source:M(e,t,u)}}if(a.format==="module"){const e=x(c,n);e&&(a.source=M(e,t,u))}return a};U&&F&&q();export{Y as globalPreload,V as initialize,rt as load,j as resolve};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{pathToFileURL as Zt}from"url";import{version as Le,transformSync as Wt,transform as Vt}from"esbuild";import zt from"crypto";import F from"fs";import _ from"path";import Re from"os";const Fe=i=>zt.createHash("sha1").update(i).digest("hex"),xe=",".charCodeAt(0),eA=";".charCodeAt(0),ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ue=new Uint8Array(64),qe=new Uint8Array(128);for(let i=0;i<ve.length;i++){const e=ve.charCodeAt(i);Ue[i]=e,qe[e]=i}const Be=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(i){return Buffer.from(i.buffer,i.byteOffset,i.byteLength).toString()}}:{decode(i){let e="";for(let A=0;A<i.length;A++)e+=String.fromCharCode(i[A]);return e}};function tA(i){const e=new Int32Array(5),A=[];let r=0;do{const s=AA(i,r),a=[];let c=!0,C=0;e[0]=0;for(let h=r;h<s;h++){let g;h=T(i,h,e,0);const l=e[0];l<C&&(c=!1),C=l,Me(i,h,s)?(h=T(i,h,e,1),h=T(i,h,e,2),h=T(i,h,e,3),Me(i,h,s)?(h=T(i,h,e,4),g=[l,e[1],e[2],e[3],e[4]]):g=[l,e[1],e[2],e[3]]):g=[l],a.push(g)}c||nA(a),A.push(a),r=s+1}while(r<=i.length);return A}function AA(i,e){const A=i.indexOf(";",e);return A===-1?i.length:A}function T(i,e,A,r){let s=0,a=0,c=0;do{const h=i.charCodeAt(e++);c=qe[h],s|=(c&31)<<a,a+=5}while(c&32);const C=s&1;return s>>>=1,C&&(s=-2147483648|-s),A[r]+=s,e}function Me(i,e,A){return e>=A?!1:i.charCodeAt(e)!==xe}function nA(i){i.sort(rA)}function rA(i,e){return i[0]-e[0]}function Ge(i){const e=new Int32Array(5),A=1024*16,r=A-36,s=new Uint8Array(A),a=s.subarray(0,r);let c=0,C="";for(let h=0;h<i.length;h++){const g=i[h];if(h>0&&(c===A&&(C+=Be.decode(s),c=0),s[c++]=eA),g.length!==0){e[0]=0;for(let l=0;l<g.length;l++){const n=g[l];c>r&&(C+=Be.decode(a),s.copyWithin(0,r,c),c-=r),l>0&&(s[c++]=xe),c=$(s,c,e,n,0),n.length!==1&&(c=$(s,c,e,n,1),c=$(s,c,e,n,2),c=$(s,c,e,n,3),n.length!==4&&(c=$(s,c,e,n,4)))}}}return C+Be.decode(s.subarray(0,c))}function $(i,e,A,r,s){const a=r[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),i[e++]=Ue[C]}while(c>0);return e}class oe{constructor(e){this.bits=e instanceof oe?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}}class V{constructor(e,A,r){this.start=e,this.end=A,this.original=r,this.intro="",this.outro="",this.content=r,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 V(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 A=this;for(;A;)e(A),A=A.next}eachPrevious(e){let A=this;for(;A;)e(A),A=A.previous}edit(e,A,r){return this.content=e,r||(this.intro="",this.outro=""),this.storeName=A,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}split(e){const A=e-this.start,r=this.original.slice(0,A),s=this.original.slice(A);this.original=r;const a=new V(e,this.end,s);return a.outro=this.outro,this.outro="",this.end=e,this.edited?(a.edit("",!1),this.content=""):this.content=r,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;const A=this.content.replace(e,"");if(A.length)return A!==this.content&&(this.split(this.start+A.length).edit("",void 0,!0),this.edited&&this.edit(A,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 A=this.content.replace(e,"");if(A.length){if(A!==this.content){const r=this.split(this.end-A.length);this.edited&&r.edit(A,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 iA(){return typeof window<"u"&&typeof window.btoa=="function"?i=>window.btoa(unescape(encodeURIComponent(i))):typeof Buffer=="function"?i=>Buffer.from(i,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const sA=iA();class oA{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Ge(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,"+sA(this.toString())}}function aA(i){const e=i.split(`
|
|
2
|
+
`),A=e.filter(a=>/^\t+/.test(a)),r=e.filter(a=>/^ {2,}/.test(a));if(A.length===0&&r.length===0)return null;if(A.length>=r.length)return" ";const s=r.reduce((a,c)=>{const C=/^ +/.exec(c)[0].length;return Math.min(C,a)},1/0);return new Array(s+1).join(" ")}function cA(i,e){const A=i.split(/[/\\]/),r=e.split(/[/\\]/);for(A.pop();A[0]===r[0];)A.shift(),r.shift();if(A.length){let s=A.length;for(;s--;)A[s]=".."}return A.concat(r).join("/")}const QA=Object.prototype.toString;function lA(i){return QA.call(i)==="[object Object]"}function Ye(i){const e=i.split(`
|
|
3
|
+
`),A=[];for(let r=0,s=0;r<e.length;r++)A.push(s),s+=e[r].length+1;return function(s){let a=0,c=A.length;for(;a<c;){const g=a+c>>1;s<A[g]?c=g:a=g+1}const C=a-1,h=s-A[C];return{line:C,column:h}}}const hA=/\w/;class uA{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,A,r,s){if(A.length){const a=[this.generatedCodeColumn,e,r.line,r.column];s>=0&&a.push(s),this.rawSegments.push(a)}else this.pending&&this.rawSegments.push(this.pending);this.advance(A),this.pending=null}addUneditedChunk(e,A,r,s,a){let c=A.start,C=!0,h=!1;for(;c<A.end;){if(this.hires||C||a.has(c)){const g=[this.generatedCodeColumn,e,s.line,s.column];this.hires==="boundary"?hA.test(r[c])?h||(this.rawSegments.push(g),h=!0):(this.rawSegments.push(g),h=!1):this.rawSegments.push(g)}r[c]===`
|
|
4
|
+
`?(s.line+=1,s.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,C=!0):(s.column+=1,this.generatedCodeColumn+=1,C=!1),c+=1}this.pending=null}advance(e){if(!e)return;const A=e.split(`
|
|
5
|
+
`);if(A.length>1){for(let r=0;r<A.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=A[A.length-1].length}}const Z=`
|
|
6
|
+
`,O={insertLeft:!1,insertRight:!1,storeName:!1};class me{constructor(e,A={}){const r=new V(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:A.filename},indentExclusionRanges:{writable:!0,value:A.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new oe},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:A.ignoreList}}),this.byStart[0]=r,this.byEnd[e.length]=r}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,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(e);const r=this.byEnd[e];return r?r.appendLeft(A):this.intro+=A,this}appendRight(e,A){if(typeof A!="string")throw new TypeError("inserted content must be a string");this._split(e);const r=this.byStart[e];return r?r.appendRight(A):this.outro+=A,this}clone(){const e=new me(this.original,{filename:this.filename});let A=this.firstChunk,r=e.firstChunk=e.lastSearchedChunk=A.clone();for(;A;){e.byStart[r.start]=r,e.byEnd[r.end]=r;const s=A.next,a=s&&s.clone();a&&(r.next=a,a.previous=r,r=a),A=s}return e.lastChunk=r,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new oe(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};const A=0,r=Object.keys(this.storedNames),s=new uA(e.hires),a=Ye(this.original);return this.intro&&s.advance(this.intro),this.firstChunk.eachNext(c=>{const C=a(c.start);c.intro.length&&s.advance(c.intro),c.edited?s.addEdit(A,c.content,C,c.storeName?r.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?cA(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:r,mappings:s.raw,x_google_ignoreList:this.ignoreList?[A]:void 0}}generateMap(e){return new oA(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=aA(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,A){const r=/^[^\r\n]/gm;if(lA(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(l=>{for(let n=l[0];n<l[1];n+=1)s[n]=!0});let a=A.indentStart!==!1;const c=g=>a?`${e}${g}`:(a=!0,g);this.intro=this.intro.replace(r,c);let C=0,h=this.firstChunk;for(;h;){const g=h.end;if(h.edited)s[C]||(h.content=h.content.replace(r,c),h.content.length&&(a=h.content[h.content.length-1]===`
|
|
7
|
+
`));else for(C=h.start;C<g;){if(!s[C]){const l=this.original[C];l===`
|
|
8
|
+
`?a=!0:l!=="\r"&&a&&(a=!1,C===h.start||(this._splitChunk(h,C),h=h.next),h.prependRight(e))}C+=1}C=h.end,h=h.next}return this.outro=this.outro.replace(r,c),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,A){return O.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),O.insertLeft=!0),this.appendLeft(e,A)}insertRight(e,A){return O.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),O.insertRight=!0),this.prependRight(e,A)}move(e,A,r){if(r>=e&&r<=A)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(A),this._split(r);const s=this.byStart[e],a=this.byEnd[A],c=s.previous,C=a.next,h=this.byStart[r];if(!h&&a===this.lastChunk)return this;const g=h?h.previous:this.lastChunk;return c&&(c.next=C),C&&(C.previous=c),g&&(g.next=s),h&&(h.previous=a),s.previous||(this.firstChunk=a.next),a.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=g,a.next=h||null,g||(this.firstChunk=s),h||(this.lastChunk=a),this}overwrite(e,A,r,s){return s=s||{},this.update(e,A,r,{...s,overwrite:!s.contentOnly})}update(e,A,r,s){if(typeof r!="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&&(O.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),O.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],h=this.byEnd[A];if(C){let g=C;for(;g!==h;){if(g.next!==this.byStart[g.end])throw new Error("Cannot overwrite across a split point");g=g.next,g.edit("",!1)}C.edit(r,a,!c)}else{const g=new V(e,A,"").edit(r,a);h.next=g,g.previous=h}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 r=this.byEnd[e];return r?r.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 r=this.byStart[e];return r?r.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 r=this.byStart[e];for(;r;)r.intro="",r.outro="",r.edit(""),r=A>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(Z);if(e!==-1)return this.outro.substr(e+1);let A=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(e=r.outro.lastIndexOf(Z),e!==-1)return r.outro.substr(e+1)+A;A=r.outro+A}if(r.content.length>0){if(e=r.content.lastIndexOf(Z),e!==-1)return r.content.substr(e+1)+A;A=r.content+A}if(r.intro.length>0){if(e=r.intro.lastIndexOf(Z),e!==-1)return r.intro.substr(e+1)+A;A=r.intro+A}}while(r=r.previous);return e=this.intro.lastIndexOf(Z),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 r="",s=this.firstChunk;for(;s&&(s.start>e||s.end<=e);){if(s.start<A&&s.end>=A)return r;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)&&(r+=s.intro);const c=s.start<A&&s.end>=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,h=c?s.content.length+A-s.end:s.content.length;if(r+=s.content.slice(C,h),s.outro&&(!c||s.end===A)&&(r+=s.outro),c)break;s=s.next}return r}snip(e,A){const r=this.clone();return r.remove(0,e),r.remove(A,r.original.length),r}_split(e){if(this.byStart[e]||this.byEnd[e])return;let A=this.lastSearchedChunk;const r=e>A.end;for(;A;){if(A.contains(e))return this._splitChunk(A,e);A=r?this.byStart[A.end]:this.byEnd[A.start]}}_splitChunk(e,A){if(e.edited&&e.content.length){const s=Ye(this.original)(A);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} \u2013 "${e.original}")`)}const r=e.split(A);return this.byEnd[A]=e,this.byStart[A]=r,this.byEnd[r.end]=r,e===this.lastChunk&&(this.lastChunk=r),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 r=this.lastChunk;do{const s=r.end,a=r.trimEnd(A);if(r.end!==s&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),a)return!0;r=r.previous}while(r);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 r=this.firstChunk;do{const s=r.end,a=r.trimStart(A);if(r.end!==s&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),a)return!0;r=r.next}while(r);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,A){function r(a,c){return typeof A=="string"?A.replace(/\$(\$|&|\d+)/g,(C,h)=>h==="$"?"$":h==="&"?a[0]:+h<a.length?a[+h]:`$${h}`):A(...a,a.index,c,a.groups)}function s(a,c){let C;const h=[];for(;C=a.exec(c);)h.push(C);return h}if(e.global)s(e,this.original).forEach(c=>{c.index!=null&&this.overwrite(c.index,c.index+c[0].length,r(c,this.original))});else{const a=this.original.match(e);a&&a.index!=null&&this.overwrite(a.index,a.index+a[0].length,r(a,this.original))}return this}_replaceString(e,A){const{original:r}=this,s=r.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:r}=this,s=e.length;for(let a=r.indexOf(e);a!==-1;a=r.indexOf(e,a+s))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)}}const gA=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function _e(i,e="@"){if(!w)return Oe.then(()=>_e(i));const A=i.length+1,r=(w.__heap_base.value||w.__heap_base)+4*A-w.memory.buffer.byteLength;r>0&&w.memory.grow(Math.ceil(r/65536));const s=w.sa(A-1);if((gA?CA:fA)(i,new Uint16Array(w.memory.buffer,s,A)),!w.parse())throw Object.assign(new Error(`Parse error ${e}:${i.slice(0,w.e()).split(`
|
|
9
|
+
`).length}:${w.e()-i.lastIndexOf(`
|
|
10
|
+
`,w.e()-1)}`),{idx:w.e()});const a=[],c=[];for(;w.ri();){const h=w.is(),g=w.ie(),l=w.ai(),n=w.id(),p=w.ss(),y=w.se();let I;w.ip()&&(I=C(i.slice(n===-1?h-1:h,n===-1?g+1:g))),a.push({n:I,s:h,e:g,ss:p,se:y,d:n,a:l})}for(;w.re();){const h=w.es(),g=w.ee(),l=w.els(),n=w.ele(),p=i.slice(h,g),y=p[0],I=l<0?void 0:i.slice(l,n),S=I?I[0]:"";c.push({s:h,e:g,ls:l,le:n,n:y==='"'||y==="'"?C(p):p,ln:S==='"'||S==="'"?C(I):I})}function C(h){try{return(0,eval)(h)}catch{}}return[a,c,!!w.f()]}function fA(i,e){const A=i.length;let r=0;for(;r<A;){const s=i.charCodeAt(r);e[r++]=(255&s)<<8|s>>>8}}function CA(i,e){const A=i.length;let r=0;for(;r<A;)e[r]=i.charCodeAt(r++)}let w;const Oe=WebAssembly.compile((Ee="AGFzbQEAAAABKghgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gAn9/AAMvLgABAQICAgICAgICAgICAgICAgIAAwMDBAQAAAADAAAAAAMDAAUGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUGw8gALfwBBsPIACwdwEwZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAmFpAAgCaWQACQJpcAAKAmVzAAsCZWUADANlbHMADQNlbGUADgJyaQAPAnJlABABZgARBXBhcnNlABILX19oZWFwX2Jhc2UDAQqpPS5oAQF/QQAgADYC9AlBACgC0AkiASAAQQF0aiIAQQA7AQBBACAAQQJqIgA2AvgJQQAgADYC/AlBAEEANgLUCUEAQQA2AuQJQQBBADYC3AlBAEEANgLYCUEAQQA2AuwJQQBBADYC4AkgAQufAQEDf0EAKALkCSEEQQBBACgC/AkiBTYC5AlBACAENgLoCUEAIAVBIGo2AvwJIARBHGpB1AkgBBsgBTYCAEEAKALICSEEQQAoAsQJIQYgBSABNgIAIAUgADYCCCAFIAIgAkECakEAIAYgA0YbIAQgA0YbNgIMIAUgAzYCFCAFQQA2AhAgBSACNgIEIAVBADYCHCAFQQAoAsQJIANGOgAYC1YBAX9BACgC7AkiBEEQakHYCSAEG0EAKAL8CSIENgIAQQ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QCAQECAQsgAEEEaiEADAALC0EAIAI2AqAKECJBAA8LQQAgAjYCoApB3QALSQEDf0EAIQMCQCACRQ0AAkADQCAALQAAIgQgAS0AACIFRw0BIAFBAWohASAAQQFqIQAgAkF/aiICDQAMAgsLIAQgBWshAwsgAwsL4gECAEGACAvEAQAAeABwAG8AcgB0AG0AcABvAHIAdABlAHQAYQByAG8AbQB1AG4AYwB0AGkAbwBuAHMAcwBlAHIAdAB2AG8AeQBpAGUAZABlAGwAZQBjAG8AbgB0AGkAbgBpAG4AcwB0AGEAbgB0AHkAYgByAGUAYQByAGUAdAB1AHIAZABlAGIAdQBnAGcAZQBhAHcAYQBpAHQAaAByAHcAaABpAGwAZQBmAG8AcgBpAGYAYwBhAHQAYwBmAGkAbgBhAGwAbABlAGwAcwAAQcQJCxABAAAAAgAAAAAEAAAwOQAA",typeof Buffer<"u"?Buffer.from(Ee,"base64"):Uint8Array.from(atob(Ee),i=>i.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:i})=>{w=i});var Ee;let D,Ae,de,W=2<<19;const He=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(i,e){const A=i.length;let r=0;for(;r<A;)e[r]=i.charCodeAt(r++)}:function(i,e){const A=i.length;let r=0;for(;r<A;){const s=i.charCodeAt(r);e[r++]=(255&s)<<8|s>>>8}},BA="xportmportlassetaromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileforifcatcfinallels";let b,je,d;function EA(i,e="@"){b=i,je=e;const A=2*b.length+(2<<18);if(A>W||!D){for(;A>W;)W*=2;Ae=new ArrayBuffer(W),He(BA,new Uint16Array(Ae,16,105)),D=function(c,C,h){var g=new c.Int8Array(h),l=new c.Int16Array(h),n=new c.Int32Array(h),p=new c.Uint8Array(h),y=new c.Uint16Array(h),I=1024;function S(){var t=0,o=0,Q=0,f=0,B=0,u=0,U=0;U=I,I=I+10240|0,g[795]=1,l[395]=0,l[396]=0,n[67]=n[2],g[796]=0,n[66]=0,g[794]=0,n[68]=U+2048,n[69]=U,g[797]=0,t=(n[3]|0)+-2|0,n[70]=t,o=t+(n[64]<<1)|0,n[71]=o;e:for(;;){if(Q=t+2|0,n[70]=Q,t>>>0>=o>>>0){u=18;break}A:do switch(l[Q>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if(!(l[396]|0)&&j(Q)|0&&!(N(t+4|0,16,10)|0)&&(x(),(g[795]|0)==0)){u=9;break e}else u=17;break}case 105:{j(Q)|0&&!(N(t+4|0,26,10)|0)&&z(),u=17;break}case 59:{u=17;break}case 47:switch(l[t+4>>1]|0){case 47:{he();break A}case 42:{Qe(1);break A}default:{u=16;break e}}default:{u=16;break e}}while(0);(u|0)==17&&(u=0,n[67]=n[70]),t=n[70]|0,o=n[71]|0}(u|0)==9?(t=n[70]|0,n[67]=t,u=19):(u|0)==16?(g[795]=0,n[70]=t,u=19):(u|0)==18&&(g[794]|0?t=0:(t=Q,u=19));do if((u|0)==19){e:for(;;){if(o=t+2|0,n[70]=o,B=o,t>>>0>=(n[71]|0)>>>0){u=82;break}A:do switch(l[o>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{!(l[396]|0)&&j(o)|0&&!(N(t+4|0,16,10)|0)&&x(),u=81;break}case 105:{j(o)|0&&!(N(t+4|0,26,10)|0)&&z(),u=81;break}case 99:{j(o)|0&&!(N(t+4|0,36,8)|0)&&X(l[t+12>>1]|0)|0&&(g[797]=1),u=81;break}case 40:{B=n[68]|0,Q=l[396]|0,u=Q&65535,n[B+(u<<3)>>2]=1,f=n[67]|0,l[396]=Q+1<<16>>16,n[B+(u<<3)+4>>2]=f,u=81;break}case 41:{if(o=l[396]|0,!(o<<16>>16)){u=36;break e}u=o+-1<<16>>16,l[396]=u,f=l[395]|0,o=f&65535,f<<16>>16&&(n[(n[68]|0)+((u&65535)<<3)>>2]|0)==5&&(o=n[(n[69]|0)+(o+-1<<2)>>2]|0,Q=o+4|0,n[Q>>2]|0||(n[Q>>2]=B),n[o+12>>2]=t+4,l[395]=f+-1<<16>>16),u=81;break}case 123:{u=n[67]|0,B=n[61]|0,t=u;do if((l[u>>1]|0)==41&(B|0)!=0&&(n[B+4>>2]|0)==(u|0))if(o=n[62]|0,n[61]=o,o){n[o+28>>2]=0;break}else{n[57]=0;break}while(0);B=n[68]|0,f=l[396]|0,u=f&65535,n[B+(u<<3)>>2]=g[797]|0?6:2,l[396]=f+1<<16>>16,n[B+(u<<3)+4>>2]=t,g[797]=0,u=81;break}case 125:{if(t=l[396]|0,!(t<<16>>16)){u=49;break e}B=n[68]|0,u=t+-1<<16>>16,l[396]=u,(n[B+((u&65535)<<3)>>2]|0)==4&&De(),u=81;break}case 39:{L(39),u=81;break}case 34:{L(34),u=81;break}case 47:switch(l[t+4>>1]|0){case 47:{he();break A}case 42:{Qe(1);break A}default:{t=n[67]|0,f=l[t>>1]|0;t:do if(Jt(f)|0)switch(f<<16>>16){case 46:if(((l[t+-2>>1]|0)+-48&65535)<10){u=66;break t}else{u=69;break t}case 43:if((l[t+-2>>1]|0)==43){u=66;break t}else{u=69;break t}case 45:if((l[t+-2>>1]|0)==45){u=66;break t}else{u=69;break t}default:{u=69;break t}}else{switch(f<<16>>16){case 41:if(Rt(n[(n[68]|0)+(y[396]<<3)+4>>2]|0)|0){u=69;break t}else{u=66;break t}case 125:break;default:{u=66;break t}}o=n[68]|0,Q=y[396]|0,!(yt(n[o+(Q<<3)+4>>2]|0)|0)&&(n[o+(Q<<3)>>2]|0)!=6?u=66:u=69}while(0);t:do if((u|0)==66)if(u=0,Dt(t)|0)u=69;else{switch(f<<16>>16){case 0:{u=69;break t}case 47:{if(g[796]|0){u=69;break t}break}default:}Q=n[3]|0,o=f;do{if(t>>>0<=Q>>>0)break;t=t+-2|0,n[67]=t,o=l[t>>1]|0}while(!(le(o)|0));if(te(o)|0){do{if(t>>>0<=Q>>>0)break;t=t+-2|0,n[67]=t}while(te(l[t>>1]|0)|0);if(St(t)|0){ye(),g[796]=0,u=81;break A}else t=1}else t=1}while(0);(u|0)==69&&(ye(),t=0),g[796]=t,u=81;break A}}case 96:{B=n[68]|0,f=l[396]|0,u=f&65535,n[B+(u<<3)+4>>2]=n[67],l[396]=f+1<<16>>16,n[B+(u<<3)>>2]=3,De(),u=81;break}default:u=81}while(0);(u|0)==81&&(u=0,n[67]=n[70]),t=n[70]|0}if((u|0)==36){R(),t=0;break}else if((u|0)==49){R(),t=0;break}else if((u|0)==82){t=g[794]|0?0:(l[395]|l[396])<<16>>16==0;break}}while(0);return I=U,t|0}function x(){var t=0,o=0,Q=0,f=0,B=0,u=0,U=0,G=0,ue=0,ge=0,fe=0,Ce=0,k=0,m=0;G=n[70]|0,ue=n[63]|0,m=G+12|0,n[70]=m,Q=E(1)|0,t=n[70]|0,(t|0)==(m|0)&&!(ee(Q)|0)||(k=3);e:do if((k|0)==3){A:do switch(Q<<16>>16){case 123:{for(n[70]=t+2,t=E(1)|0,Q=n[70]|0;;){if(P(t)|0?(L(t),t=(n[70]|0)+2|0,n[70]=t):(v(t)|0,t=n[70]|0),E(1)|0,t=Ke(Q,t)|0,t<<16>>16==44&&(n[70]=(n[70]|0)+2,t=E(1)|0),o=Q,Q=n[70]|0,t<<16>>16==125){k=15;break}if((Q|0)==(o|0)){k=12;break}if(Q>>>0>(n[71]|0)>>>0){k=14;break}}if((k|0)==12){R();break e}else if((k|0)==14){R();break e}else if((k|0)==15){n[70]=Q+2;break A}break}case 42:{n[70]=t+2,E(1)|0,m=n[70]|0,Ke(m,m)|0;break}default:{switch(g[795]=0,Q<<16>>16){case 100:{switch(G=t+14|0,n[70]=G,(E(1)|0)<<16>>16){case 97:{o=n[70]|0,!(N(o+2|0,56,8)|0)&&(B=o+10|0,te(l[B>>1]|0)|0)&&(n[70]=B,E(0)|0,k=22);break}case 102:{k=22;break}case 99:{o=n[70]|0,!(N(o+2|0,36,8)|0)&&(f=o+10|0,m=l[f>>1]|0,X(m)|0|m<<16>>16==123)&&(n[70]=f,u=E(1)|0,u<<16>>16!=123)&&(Ce=u,k=31);break}default:}t:do if((k|0)==22&&(U=n[70]|0,(N(U+2|0,64,14)|0)==0)){if(Q=U+16|0,o=l[Q>>1]|0,!(X(o)|0))switch(o<<16>>16){case 40:case 42:break;default:break t}n[70]=Q,o=E(1)|0,o<<16>>16==42&&(n[70]=(n[70]|0)+2,o=E(1)|0),o<<16>>16!=40&&(Ce=o,k=31)}while(0);if((k|0)==31&&(ge=n[70]|0,v(Ce)|0,fe=n[70]|0,fe>>>0>ge>>>0)){Y(t,G,ge,fe),n[70]=(n[70]|0)+-2;break e}Y(t,G,0,0),n[70]=t+12;break e}case 97:{n[70]=t+10,E(0)|0,t=n[70]|0,k=35;break}case 102:{k=35;break}case 99:{if(!(N(t+2|0,36,8)|0)&&(o=t+10|0,le(l[o>>1]|0)|0)){n[70]=o,m=E(1)|0,k=n[70]|0,v(m)|0,m=n[70]|0,Y(k,m,k,m),n[70]=(n[70]|0)+-2;break e}t=t+4|0,n[70]=t;break}case 108:case 118:break;default:break e}if((k|0)==35){n[70]=t+16,t=E(1)|0,t<<16>>16==42&&(n[70]=(n[70]|0)+2,t=E(1)|0),k=n[70]|0,v(t)|0,m=n[70]|0,Y(k,m,k,m),n[70]=(n[70]|0)+-2;break e}n[70]=t+6,g[795]=0,Q=E(1)|0,t=n[70]|0,Q=(v(Q)|0|32)<<16>>16==123,f=n[70]|0,Q&&(n[70]=f+2,m=E(1)|0,t=n[70]|0,v(m)|0);t:for(;o=n[70]|0,(o|0)!=(t|0);){if(Y(t,o,t,o),o=E(1)|0,Q)switch(o<<16>>16){case 93:case 125:break e;default:}if(t=n[70]|0,o<<16>>16!=44){k=51;break}switch(n[70]=t+2,o=E(1)|0,t=n[70]|0,o<<16>>16){case 91:case 123:{k=51;break t}default:}v(o)|0}if((k|0)==51&&(n[70]=t+-2),!Q)break e;n[70]=f+-2;break e}}while(0);if(m=(E(1)|0)<<16>>16==102,t=n[70]|0,m&&!(N(t+2|0,50,6)|0))for(n[70]=t+8,ae(G,E(1)|0),t=ue|0?ue+16|0:232;;){if(t=n[t>>2]|0,!t)break e;n[t+12>>2]=0,n[t+8>>2]=0,t=t+16|0}n[70]=t+-2}while(0)}function z(){var t=0,o=0,Q=0,f=0,B=0,u=0;B=n[70]|0,t=B+12|0,n[70]=t;e:do switch((E(1)|0)<<16>>16){case 40:{if(o=n[68]|0,u=l[396]|0,Q=u&65535,n[o+(Q<<3)>>2]=5,t=n[70]|0,l[396]=u+1<<16>>16,n[o+(Q<<3)+4>>2]=t,(l[n[67]>>1]|0)!=46){switch(n[70]=t+2,u=E(1)|0,ce(B,n[70]|0,0,t),o=n[61]|0,Q=n[69]|0,B=l[395]|0,l[395]=B+1<<16>>16,n[Q+((B&65535)<<2)>>2]=o,u<<16>>16){case 39:{L(39);break}case 34:{L(34);break}default:{n[70]=(n[70]|0)+-2;break e}}switch(t=(n[70]|0)+2|0,n[70]=t,(E(1)|0)<<16>>16){case 44:{n[70]=(n[70]|0)+2,E(1)|0,B=n[61]|0,n[B+4>>2]=t,u=n[70]|0,n[B+16>>2]=u,g[B+24>>0]=1,n[70]=u+-2;break e}case 41:{l[396]=(l[396]|0)+-1<<16>>16,u=n[61]|0,n[u+4>>2]=t,n[u+12>>2]=(n[70]|0)+2,g[u+24>>0]=1,l[395]=(l[395]|0)+-1<<16>>16;break e}default:{n[70]=(n[70]|0)+-2;break e}}}break}case 46:{if(n[70]=(n[70]|0)+2,(E(1)|0)<<16>>16==109&&(o=n[70]|0,(N(o+2|0,44,6)|0)==0)){if(t=n[67]|0,!(Ne(t)|0)&&(l[t>>1]|0)==46)break e;ce(B,B,o+8|0,2)}break}case 42:case 39:case 34:{f=18;break}case 123:{if(t=n[70]|0,l[396]|0){n[70]=t+-2;break e}for(;!(t>>>0>=(n[71]|0)>>>0);){if(t=E(1)|0,P(t)|0)L(t);else if(t<<16>>16==125){f=33;break}t=(n[70]|0)+2|0,n[70]=t}if((f|0)==33&&(n[70]=(n[70]|0)+2),u=(E(1)|0)<<16>>16==102,t=n[70]|0,u&&N(t+2|0,50,6)|0){R();break e}if(n[70]=t+8,t=E(1)|0,P(t)|0){ae(B,t);break e}else{R();break e}}default:(n[70]|0)==(t|0)?n[70]=B+10:f=18}while(0);do if((f|0)==18){if(l[396]|0){n[70]=(n[70]|0)+-2;break}for(t=n[71]|0,o=n[70]|0;;){if(o>>>0>=t>>>0){f=25;break}if(Q=l[o>>1]|0,P(Q)|0){f=23;break}u=o+2|0,n[70]=u,o=u}if((f|0)==23){ae(B,Q);break}else if((f|0)==25){R();break}}while(0)}function ae(t,o){t=t|0,o=o|0;var Q=0,f=0;switch(Q=(n[70]|0)+2|0,o<<16>>16){case 39:{L(39),f=5;break}case 34:{L(34),f=5;break}default:R()}do if((f|0)==5){if(ce(t,Q,n[70]|0,1),n[70]=(n[70]|0)+2,o=E(0)|0,t=o<<16>>16==97,t?(Q=n[70]|0,N(Q+2|0,78,10)|0&&(f=11)):(Q=n[70]|0,o<<16>>16==119&&(l[Q+2>>1]|0)==105&&(l[Q+4>>1]|0)==116&&(l[Q+6>>1]|0)==104||(f=11)),(f|0)==11){n[70]=Q+-2;break}if(n[70]=Q+((t?6:4)<<1),(E(1)|0)<<16>>16!=123){n[70]=Q;break}t=n[70]|0,o=t;e:for(;;){switch(n[70]=o+2,o=E(1)|0,o<<16>>16){case 39:{L(39),n[70]=(n[70]|0)+2,o=E(1)|0;break}case 34:{L(34),n[70]=(n[70]|0)+2,o=E(1)|0;break}default:o=v(o)|0}if(o<<16>>16!=58){f=20;break}switch(n[70]=(n[70]|0)+2,(E(1)|0)<<16>>16){case 39:{L(39);break}case 34:{L(34);break}default:{f=24;break e}}switch(n[70]=(n[70]|0)+2,(E(1)|0)<<16>>16){case 125:{f=29;break e}case 44:break;default:{f=28;break e}}if(n[70]=(n[70]|0)+2,(E(1)|0)<<16>>16==125){f=29;break}o=n[70]|0}if((f|0)==20){n[70]=Q;break}else if((f|0)==24){n[70]=Q;break}else if((f|0)==28){n[70]=Q;break}else if((f|0)==29){f=n[61]|0,n[f+16>>2]=t,n[f+12>>2]=(n[70]|0)+2;break}}while(0)}function Dt(t){t=t|0;e:do switch(l[t>>1]|0){case 100:switch(l[t+-2>>1]|0){case 105:{t=J(t+-4|0,88,2)|0;break e}case 108:{t=J(t+-4|0,92,3)|0;break e}default:{t=0;break e}}case 101:switch(l[t+-2>>1]|0){case 115:switch(l[t+-4>>1]|0){case 108:{t=H(t+-6|0,101)|0;break e}case 97:{t=H(t+-6|0,99)|0;break e}default:{t=0;break e}}case 116:{t=J(t+-4|0,98,4)|0;break e}case 117:{t=J(t+-4|0,106,6)|0;break e}default:{t=0;break e}}case 102:{if((l[t+-2>>1]|0)==111&&(l[t+-4>>1]|0)==101)switch(l[t+-6>>1]|0){case 99:{t=J(t+-8|0,118,6)|0;break e}case 112:{t=J(t+-8|0,130,2)|0;break e}default:{t=0;break e}}else t=0;break}case 107:{t=J(t+-2|0,134,4)|0;break}case 110:{t=t+-2|0,H(t,105)|0?t=1:t=J(t,142,5)|0;break}case 111:{t=H(t+-2|0,100)|0;break}case 114:{t=J(t+-2|0,152,7)|0;break}case 116:{t=J(t+-2|0,166,4)|0;break}case 119:switch(l[t+-2>>1]|0){case 101:{t=H(t+-4|0,110)|0;break e}case 111:{t=J(t+-4|0,174,3)|0;break e}default:{t=0;break e}}default:t=0}while(0);return t|0}function De(){var t=0,o=0,Q=0,f=0;o=n[71]|0,Q=n[70]|0;e:for(;;){if(t=Q+2|0,Q>>>0>=o>>>0){o=10;break}switch(l[t>>1]|0){case 96:{o=7;break e}case 36:{if((l[Q+4>>1]|0)==123){o=6;break e}break}case 92:{t=Q+4|0;break}default:}Q=t}(o|0)==6?(t=Q+4|0,n[70]=t,o=n[68]|0,f=l[396]|0,Q=f&65535,n[o+(Q<<3)>>2]=4,l[396]=f+1<<16>>16,n[o+(Q<<3)+4>>2]=t):(o|0)==7?(n[70]=t,Q=n[68]|0,f=(l[396]|0)+-1<<16>>16,l[396]=f,(n[Q+((f&65535)<<3)>>2]|0)!=3&&R()):(o|0)==10&&(n[70]=t,R())}function E(t){t=t|0;var o=0,Q=0,f=0;Q=n[70]|0;e:do{o=l[Q>>1]|0;A:do if(o<<16>>16!=47)if(t){if(X(o)|0)break;break e}else{if(te(o)|0)break;break e}else switch(l[Q+2>>1]|0){case 47:{he();break A}case 42:{Qe(t);break A}default:{o=47;break e}}while(0);f=n[70]|0,Q=f+2|0,n[70]=Q}while(f>>>0<(n[71]|0)>>>0);return o|0}function L(t){t=t|0;var o=0,Q=0,f=0,B=0;for(B=n[71]|0,o=n[70]|0;;){if(f=o+2|0,o>>>0>=B>>>0){o=9;break}if(Q=l[f>>1]|0,Q<<16>>16==t<<16>>16){o=10;break}if(Q<<16>>16==92)Q=o+4|0,(l[Q>>1]|0)==13?(o=o+6|0,o=(l[o>>1]|0)==10?o:Q):o=Q;else if(Se(Q)|0){o=9;break}else o=f}(o|0)==9?(n[70]=f,R()):(o|0)==10&&(n[70]=f)}function Ke(t,o){t=t|0,o=o|0;var Q=0,f=0,B=0,u=0;return Q=n[70]|0,f=l[Q>>1]|0,u=(t|0)==(o|0),B=u?0:t,u=u?0:o,f<<16>>16==97&&(n[70]=Q+4,Q=E(1)|0,t=n[70]|0,P(Q)|0?(L(Q),o=(n[70]|0)+2|0,n[70]=o):(v(Q)|0,o=n[70]|0),f=E(1)|0,Q=n[70]|0),(Q|0)!=(t|0)&&Y(t,o,B,u),f|0}function ce(t,o,Q,f){t=t|0,o=o|0,Q=Q|0,f=f|0;var B=0,u=0;B=n[65]|0,n[65]=B+32,u=n[61]|0,n[(u|0?u+28|0:228)>>2]=B,n[62]=u,n[61]=B,n[B+8>>2]=t,(f|0)==2?t=Q:t=(f|0)==1?Q+2|0:0,n[B+12>>2]=t,n[B>>2]=o,n[B+4>>2]=Q,n[B+16>>2]=0,n[B+20>>2]=f,g[B+24>>0]=(f|0)==1&1,n[B+28>>2]=0}function Kt(){var t=0,o=0,Q=0;Q=n[71]|0,o=n[70]|0;e:for(;;){if(t=o+2|0,o>>>0>=Q>>>0){o=6;break}switch(l[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?(n[70]=t,R(),t=0):(o|0)==7&&(n[70]=t,t=93),t|0}function ye(){var t=0,o=0,Q=0;e:for(;;){if(t=n[70]|0,o=t+2|0,n[70]=o,t>>>0>=(n[71]|0)>>>0){Q=7;break}switch(l[o>>1]|0){case 13:case 10:{Q=7;break e}case 47:break e;case 91:{Kt()|0;break}case 92:{n[70]=t+4;break}default:}}(Q|0)==7&&R()}function yt(t){switch(t=t|0,l[t>>1]|0){case 62:{t=(l[t+-2>>1]|0)==61;break}case 41:case 59:{t=1;break}case 104:{t=J(t+-2|0,200,4)|0;break}case 121:{t=J(t+-2|0,208,6)|0;break}case 101:{t=J(t+-2|0,220,3)|0;break}default:t=0}return t|0}function Qe(t){t=t|0;var o=0,Q=0,f=0,B=0,u=0;for(B=(n[70]|0)+2|0,n[70]=B,Q=n[71]|0;o=B+2|0,!(B>>>0>=Q>>>0||(f=l[o>>1]|0,!t&&Se(f)|0));){if(f<<16>>16==42&&(l[B+4>>1]|0)==47){u=8;break}B=o}(u|0)==8&&(n[70]=o,o=B+4|0),n[70]=o}function N(t,o,Q){t=t|0,o=o|0,Q=Q|0;var f=0,B=0;e:do if(!Q)t=0;else{for(;f=g[t>>0]|0,B=g[o>>0]|0,f<<24>>24==B<<24>>24;)if(Q=Q+-1|0,Q)t=t+1|0,o=o+1|0;else{t=0;break e}t=(f&255)-(B&255)|0}while(0);return t|0}function ee(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(0);return t|0}function Jt(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(0);return 1}function Je(t){t=t|0;var o=0;o=l[t>>1]|0;e:do if((o+-9&65535)>=5){switch(o<<16>>16){case 160:case 32:{o=1;break e}default:}if(ee(o)|0)return o<<16>>16!=46|(Ne(t)|0)|0;o=0}else o=1;while(0);return o|0}function Nt(t){t=t|0;var o=0,Q=0,f=0,B=0;return Q=I,I=I+16|0,f=Q,n[f>>2]=0,n[64]=t,o=n[3]|0,B=o+(t<<1)|0,t=B+2|0,l[B>>1]=0,n[f>>2]=t,n[65]=t,n[57]=0,n[61]=0,n[59]=0,n[58]=0,n[63]=0,n[60]=0,I=Q,o|0}function J(t,o,Q){t=t|0,o=o|0,Q=Q|0;var f=0,B=0;return f=t+(0-Q<<1)|0,B=f+2|0,t=n[3]|0,B>>>0>=t>>>0&&!(N(B,o,Q<<1)|0)?(B|0)==(t|0)?t=1:t=Je(f)|0:t=0,t|0}function Y(t,o,Q,f){t=t|0,o=o|0,Q=Q|0,f=f|0;var B=0,u=0;B=n[65]|0,n[65]=B+20,u=n[63]|0,n[(u|0?u+16|0:232)>>2]=B,n[63]=B,n[B>>2]=t,n[B+4>>2]=o,n[B+8>>2]=Q,n[B+12>>2]=f,n[B+16>>2]=0}function St(t){switch(t=t|0,l[t>>1]|0){case 107:{t=J(t+-2|0,134,4)|0;break}case 101:{(l[t+-2>>1]|0)==117?t=J(t+-4|0,106,6)|0:t=0;break}default:t=0}return t|0}function H(t,o){t=t|0,o=o|0;var Q=0;return Q=n[3]|0,Q>>>0<=t>>>0&&(l[t>>1]|0)==o<<16>>16?(Q|0)==(t|0)?Q=1:Q=le(l[t+-2>>1]|0)|0:Q=0,Q|0}function le(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&(ee(t)|0)}while(0);return t|0}function he(){var t=0,o=0,Q=0;t=n[71]|0,Q=n[70]|0;e:for(;o=Q+2|0,!(Q>>>0>=t>>>0);)switch(l[o>>1]|0){case 13:case 10:break e;default:Q=o}n[70]=o}function v(t){for(t=t|0;!(X(t)|0||ee(t)|0);)if(t=(n[70]|0)+2|0,n[70]=t,t=l[t>>1]|0,!(t<<16>>16)){t=0;break}return t|0}function Lt(){var t=0;switch(t=n[(n[59]|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}function Rt(t){return t=t|0,!(J(t,180,5)|0)&&!(J(t,190,3)|0)?t=J(t,196,2)|0:t=1,t|0}function te(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}function Ne(t){return t=t|0,(l[t>>1]|0)==46&&(l[t+-2>>1]|0)==46?t=(l[t+-4>>1]|0)==46:t=0,t|0}function j(t){return t=t|0,(n[3]|0)==(t|0)?t=1:t=Je(t+-2|0)|0,t|0}function Ft(){var t=0;return t=n[(n[60]|0)+12>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}function xt(){var t=0;return t=n[(n[59]|0)+12>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}function vt(){var t=0;return t=n[(n[60]|0)+8>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}function Ut(){var t=0;return t=n[(n[59]|0)+16>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}function qt(){var t=0;return t=n[(n[59]|0)+4>>2]|0,t?t=t-(n[3]|0)>>1:t=-1,t|0}function Mt(){var t=0;return t=n[59]|0,t=n[(t|0?t+28|0:228)>>2]|0,n[59]=t,(t|0)!=0|0}function Gt(){var t=0;return t=n[60]|0,t=n[(t|0?t+16|0:232)>>2]|0,n[60]=t,(t|0)!=0|0}function R(){g[794]=1,n[66]=(n[70]|0)-(n[3]|0)>>1,n[70]=(n[71]|0)+2}function X(t){return t=t|0,(t|128)<<16>>16==160|(t+-9&65535)<5|0}function P(t){return t=t|0,t<<16>>16==39|t<<16>>16==34|0}function Yt(){return(n[(n[59]|0)+8>>2]|0)-(n[3]|0)>>1|0}function _t(){return(n[(n[60]|0)+4>>2]|0)-(n[3]|0)>>1|0}function Se(t){return t=t|0,t<<16>>16==13|t<<16>>16==10|0}function Ot(){return(n[n[59]>>2]|0)-(n[3]|0)>>1|0}function Ht(){return(n[n[60]>>2]|0)-(n[3]|0)>>1|0}function jt(){return p[(n[59]|0)+24>>0]|0|0}function Xt(t){t=t|0,n[3]=t}function Pt(){return(g[795]|0)!=0|0}function Tt(){return n[66]|0}function $t(t){return t=t|0,I=t+992+15&-16,992}return{su:$t,ai:Ut,e:Tt,ee:_t,ele:Ft,els:vt,es:Ht,f:Pt,id:Lt,ie:qt,ip:jt,is:Ot,p:S,re:Gt,ri:Mt,sa:Nt,se:xt,ses:Xt,ss:Yt}}(typeof self<"u"?self:global,{},Ae),de=D.su(W-(2<<17))}const r=b.length+1;D.ses(de),D.sa(r-1),He(b,new Uint16Array(Ae,de,r)),D.p()||(d=D.e(),q());const s=[],a=[];for(;D.ri();){const c=D.is(),C=D.ie(),h=D.ai(),g=D.id(),l=D.ss(),n=D.se();let p;D.ip()&&(p=we(g===-1?c:c+1,b.charCodeAt(g===-1?c-1:c))),s.push({n:p,s:c,e:C,ss:l,se:n,d:g,a:h})}for(;D.re();){const c=D.es(),C=D.ee(),h=D.els(),g=D.ele(),l=b.charCodeAt(c),n=h>=0?b.charCodeAt(h):-1;a.push({s:c,e:C,ls:h,le:g,n:l===34||l===39?we(c+1,l):b.slice(c,C),ln:h<0?void 0:n===34||n===39?we(h+1,n):b.slice(h,g)})}return[s,a,!!D.f()]}function we(i,e){d=i;let A="",r=d;for(;;){d>=b.length&&q();const s=b.charCodeAt(d);if(s===e)break;s===92?(A+=b.slice(r,d),A+=dA(),r=d):(s===8232||s===8233||Xe(s)&&q(),++d)}return A+=b.slice(r,d++),A}function dA(){let i=b.charCodeAt(++d);switch(++d,i){case 110:return`
|
|
11
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(Ie(2));case 117:return function(){const e=b.charCodeAt(d);let A;return e===123?(++d,A=Ie(b.indexOf("}",d)-d),++d,A>1114111&&q()):A=Ie(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:b.charCodeAt(d)===10&&++d;case 10:return"";case 56:case 57:q();default:if(i>=48&&i<=55){let e=b.substr(d-1,3).match(/^[0-7]+/)[0],A=parseInt(e,8);return A>255&&(e=e.slice(0,-1),A=parseInt(e,8)),d+=e.length-1,i=b.charCodeAt(d),e==="0"&&i!==56&&i!==57||q(),String.fromCharCode(A)}return Xe(i)?"":String.fromCharCode(i)}}function Ie(i){const e=d;let A=0,r=0;for(let s=0;s<i;++s,++d){let a,c=b.charCodeAt(d);if(c!==95){if(c>=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;r=c,A=16*A+a}else r!==95&&s!==0||q(),r=c}return r!==95&&d-e===i||q(),A}function Xe(i){return i===13||i===10}function q(){throw Object.assign(Error(`Parse error ${je}:${b.slice(0,d).split(`
|
|
12
|
+
`).length}:${d-b.lastIndexOf(`
|
|
13
|
+
`,d-1)}`),{idx:d})}let Pe=!1;Oe.then(()=>{Pe=!0});const Te=i=>Pe?_e(i):EA(i),$e="___tsxInteropDynamicImport",wA=`function ${$e}${function(i){const e="default",A=Object.keys(i);return A.length===1&&A[0]===e&&i[e]&&typeof i[e]=="object"&&"__esModule"in i[e]?i[e]:i}.toString().slice(8)}`,IA=`.then(${$e})`,kA=/\bimport\b/,ke=(i,e)=>{if(!kA.test(e))return;const A=Te(e)[0].filter(c=>c.d>-1);if(A.length===0)return;const r=new me(e);for(const c of A)r.appendRight(c.se,IA);r.append(wA);const s=r.toString(),a=r.generateMap({source:i,includeContent:!1});return{code:s,map:a}};function pA(i){try{const e=F.readFileSync(i,"utf8");return JSON.parse(e)}catch{}}const Ze=()=>Math.floor(Date.now()/1e8),We=Re.tmpdir(),Ve=()=>{},{geteuid:ze}=process,bA=ze?ze():Re.userInfo().username;class mA extends Map{cacheDirectory=_.join(We,`tsx-${bA}`);oldCacheDirectory=_.join(We,"tsx");cacheFiles;constructor(){super(),F.mkdirSync(this.cacheDirectory,{recursive:!0}),this.cacheFiles=F.readdirSync(this.cacheDirectory).map(e=>{const[A,r]=e.split("-");return{time:Number(A),key:r,fileName:e}}),setImmediate(()=>{this.expireDiskCache(),this.removeOldCacheDirectory()})}get(e){const A=super.get(e);if(A)return A;const r=this.cacheFiles.find(c=>c.key===e);if(!r)return;const s=_.join(this.cacheDirectory,r.fileName),a=pA(s);if(!a){F.promises.unlink(s).then(()=>{const c=this.cacheFiles.indexOf(r);this.cacheFiles.splice(c,1)},()=>{});return}return super.set(e,a),a}set(e,A){if(super.set(e,A),A){const r=Ze();F.promises.writeFile(_.join(this.cacheDirectory,`${r}-${e}`),JSON.stringify(A)).catch(Ve)}return this}expireDiskCache(){const e=Ze();for(const A of this.cacheFiles)e-A.time>7&&F.promises.unlink(_.join(this.cacheDirectory,A.fileName)).catch(Ve)}async removeOldCacheDirectory(){try{await F.promises.access(this.oldCacheDirectory).then(()=>!0)&&("rm"in F.promises?await F.promises.rm(this.oldCacheDirectory,{recursive:!0,force:!0}):await F.promises.rmdir(this.oldCacheDirectory,{recursive:!0}))}catch{}}}var ne=process.env.TSX_DISABLE_CACHE?new Map:new mA;const DA=/^[\w+.-]+:\/\//,KA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,yA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var K;(function(i){i[i.Empty=1]="Empty",i[i.Hash=2]="Hash",i[i.Query=3]="Query",i[i.RelativePath=4]="RelativePath",i[i.AbsolutePath=5]="AbsolutePath",i[i.SchemeRelative=6]="SchemeRelative",i[i.Absolute=7]="Absolute"})(K||(K={}));function JA(i){return DA.test(i)}function NA(i){return i.startsWith("//")}function et(i){return i.startsWith("/")}function SA(i){return i.startsWith("file:")}function tt(i){return/^[.?#]/.test(i)}function re(i){const e=KA.exec(i);return At(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function LA(i){const e=yA.exec(i),A=e[2];return At("file:","",e[1]||"","",et(A)?A:"/"+A,e[3]||"",e[4]||"")}function At(i,e,A,r,s,a,c){return{scheme:i,user:e,host:A,port:r,path:s,query:a,hash:c,type:K.Absolute}}function nt(i){if(NA(i)){const A=re("http:"+i);return A.scheme="",A.type=K.SchemeRelative,A}if(et(i)){const A=re("http://foo.com"+i);return A.scheme="",A.host="",A.type=K.AbsolutePath,A}if(SA(i))return LA(i);if(JA(i))return re(i);const e=re("http://foo.com/"+i);return e.scheme="",e.host="",e.type=i?i.startsWith("?")?K.Query:i.startsWith("#")?K.Hash:K.RelativePath:K.Empty,e}function RA(i){if(i.endsWith("/.."))return i;const e=i.lastIndexOf("/");return i.slice(0,e+1)}function FA(i,e){rt(e,e.type),i.path==="/"?i.path=e.path:i.path=RA(e.path)+i.path}function rt(i,e){const A=e<=K.RelativePath,r=i.path.split("/");let s=1,a=0,c=!1;for(let h=1;h<r.length;h++){const g=r[h];if(!g){c=!0;continue}if(c=!1,g!=="."){if(g===".."){a?(c=!0,a--,s--):A&&(r[s++]=g);continue}r[s++]=g,a++}}let C="";for(let h=1;h<s;h++)C+="/"+r[h];(!C||c&&!C.endsWith("/.."))&&(C+="/"),i.path=C}function xA(i,e){if(!i&&!e)return"";const A=nt(i);let r=A.type;if(e&&r!==K.Absolute){const a=nt(e),c=a.type;switch(r){case K.Empty:A.hash=a.hash;case K.Hash:A.query=a.query;case K.Query:case K.RelativePath:FA(A,a);case K.AbsolutePath:A.user=a.user,A.host=a.host,A.port=a.port;case K.SchemeRelative:A.scheme=a.scheme}c>r&&(r=c)}rt(A,r);const s=A.query+A.hash;switch(r){case K.Hash:case K.Query:return s;case K.RelativePath:{const a=A.path.slice(1);return a?tt(e||i)&&!tt(a)?"./"+a+s:a+s:s||"."}case K.AbsolutePath:return A.path+s;default:return A.scheme+"//"+A.user+A.host+A.port+A.path+s}}function it(i,e){return e&&!e.endsWith("/")&&(e+="/"),xA(i,e)}function vA(i){if(!i)return"";const e=i.lastIndexOf("/");return i.slice(0,e+1)}const M=0;function UA(i,e){const A=st(i,0);if(A===i.length)return i;e||(i=i.slice());for(let r=A;r<i.length;r=st(i,r+1))i[r]=MA(i[r],e);return i}function st(i,e){for(let A=e;A<i.length;A++)if(!qA(i[A]))return A;return i.length}function qA(i){for(let e=1;e<i.length;e++)if(i[e][M]<i[e-1][M])return!1;return!0}function MA(i,e){return e||(i=i.slice()),i.sort(GA)}function GA(i,e){return i[M]-e[M]}let ie=!1;function YA(i,e,A,r){for(;A<=r;){const s=A+(r-A>>1),a=i[s][M]-e;if(a===0)return ie=!0,s;a<0?A=s+1:r=s-1}return ie=!1,A-1}function _A(i,e,A){for(let r=A+1;r<i.length&&i[r][M]===e;A=r++);return A}function OA(i,e,A){for(let r=A-1;r>=0&&i[r][M]===e;A=r--);return A}function HA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function jA(i,e,A,r){const{lastKey:s,lastNeedle:a,lastIndex:c}=A;let C=0,h=i.length-1;if(r===s){if(e===a)return ie=c!==-1&&i[c][M]===e,c;e>=a?C=c===-1?0:c:h=c}return A.lastKey=r,A.lastNeedle=e,A.lastIndex=YA(i,e,C,h)}const ot=-1,XA=1;let pe,at;class ct{constructor(e,A){const r=typeof e=="string";if(!r&&e._decodedMemo)return e;const s=r?JSON.parse(e):e,{version:a,file:c,names:C,sourceRoot:h,sources:g,sourcesContent:l}=s;this.version=a,this.file=c,this.names=C,this.sourceRoot=h,this.sources=g,this.sourcesContent=l;const n=it(h||"",vA(A));this.resolvedSources=g.map(y=>it(y||"",n));const{mappings:p}=s;typeof p=="string"?(this._encoded=p,this._decoded=void 0):(this._encoded=void 0,this._decoded=UA(p,r)),this._decodedMemo=HA(),this._bySources=void 0,this._bySourceMemos=void 0}}pe=i=>i._decoded||(i._decoded=tA(i._encoded)),at=(i,e,A)=>{const r=pe(i);if(e>=r.length)return null;const s=r[e],a=PA(s,i._decodedMemo,e,A,XA);return a===-1?null:s[a]};function PA(i,e,A,r,s){let a=jA(i,r,e,A);return ie?a=(s===ot?_A:OA)(i,r,a):s===ot&&a++,a===-1||a===i.length?-1:a}let Qt,se;class lt{constructor(){this._indexes={__proto__:null},this.array=[]}}Qt=(i,e)=>i._indexes[e],se=(i,e)=>{const A=Qt(i,e);if(A!==void 0)return A;const{array:r,_indexes:s}=i;return s[e]=r.push(e)-1};const TA=0,$A=1,ZA=2,WA=3,VA=4,ht=-1;let ut,gt,be,ft,Ct;class zA{constructor({file:e,sourceRoot:A}={}){this._names=new lt,this._sources=new lt,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=A}}ut=(i,e,A,r,s,a,c,C)=>Ct(!0,i,e,A,r,s,a,c,C),gt=(i,e,A)=>{const{_sources:r,_sourcesContent:s}=i;s[se(r,e)]=A},be=i=>{const{file:e,sourceRoot:A,_mappings:r,_sources:s,_sourcesContent:a,_names:c}=i;return An(r),{version:3,file:e||void 0,names:c.array,sourceRoot:A||void 0,sources:s.array,sourcesContent:a,mappings:r}},ft=i=>{const e=be(i);return Object.assign(Object.assign({},e),{mappings:Ge(e.mappings)})},Ct=(i,e,A,r,s,a,c,C,h)=>{const{_mappings:g,_sources:l,_sourcesContent:n,_names:p}=e,y=en(g,A),I=tn(y,r);if(!s)return i&&nn(y,I)?void 0:Bt(y,I,[r]);const S=se(l,s),x=C?se(p,C):ht;if(S===n.length&&(n[S]=h!=null?h:null),!(i&&rn(y,I,S,a,c,x)))return Bt(y,I,C?[r,S,a,c,x]:[r,S,a,c])};function en(i,e){for(let A=i.length;A<=e;A++)i[A]=[];return i[e]}function tn(i,e){let A=i.length;for(let r=A-1;r>=0;A=r--){const s=i[r];if(e>=s[TA])break}return A}function Bt(i,e,A){for(let r=i.length;r>e;r--)i[r]=i[r-1];i[e]=A}function An(i){const{length:e}=i;let A=e;for(let r=A-1;r>=0&&!(i[r].length>0);A=r,r--);A<e&&(i.length=A)}function nn(i,e){return e===0?!0:i[e-1].length===1}function rn(i,e,A,r,s,a){if(e===0)return!1;const c=i[e-1];return c.length===1?!1:A===c[$A]&&r===c[ZA]&&s===c[WA]&&a===(c.length===5?c[VA]:ht)}const Et=dt("",-1,-1,"",null),sn=[];function dt(i,e,A,r,s){return{source:i,line:e,column:A,name:r,content:s}}function wt(i,e,A,r){return{map:i,sources:e,source:A,content:r}}function It(i,e){return wt(i,e,"",null)}function on(i,e){return wt(null,sn,i,e)}function an(i){const e=new zA({file:i.map.file}),{sources:A,map:r}=i,s=r.names,a=pe(r);for(let c=0;c<a.length;c++){const C=a[c];for(let h=0;h<C.length;h++){const g=C[h],l=g[0];let n=Et;if(g.length!==1){const z=A[g[1]];if(n=kt(z,g[2],g[3],g.length===5?s[g[4]]:""),n==null)continue}const{column:p,line:y,name:I,content:S,source:x}=n;ut(e,c,l,x,y,p,I),x&&S!=null&>(e,x,S)}}return e}function kt(i,e,A,r){if(!i.map)return dt(i.source,e,A,r,i.content);const s=at(i.map,e,A);return s==null?null:s.length===1?Et:kt(i.sources[s[1]],s[2],s[3],s.length===5?i.map.names[s[4]]:r)}function cn(i){return Array.isArray(i)?i:[i]}function Qn(i,e){const A=cn(i).map(a=>new ct(a,"")),r=A.pop();for(let a=0;a<A.length;a++)if(A[a].sources.length>1)throw new Error(`Transformation map ${a} must have exactly one source file.
|
|
14
|
+
Did you specify these with the most recent transformation maps first?`);let s=pt(r,e,"",0);for(let a=A.length-1;a>=0;a--)s=It(A[a],[s]);return s}function pt(i,e,A,r){const{resolvedSources:s,sourcesContent:a}=i,c=r+1,C=s.map((h,g)=>{const l={importer:A,depth:c,source:h||"",content:void 0},n=e(l.source,l),{source:p,content:y}=l;if(n)return pt(new ct(n,p),e,p,c);const I=y!==void 0?y:a?a[g]:null;return on(p,I)});return It(i,C)}class ln{constructor(e,A){const r=A.decodedMappings?be(e):ft(e);this.version=r.version,this.file=r.file,this.mappings=r.mappings,this.names=r.names,this.sourceRoot=r.sourceRoot,this.sources=r.sources,A.excludeContent||(this.sourcesContent=r.sourcesContent)}toString(){return JSON.stringify(this)}}function bt(i,e,A){const r=typeof A=="object"?A:{excludeContent:!!A,decodedMappings:!1},s=Qn(i,e);return new ln(an(s),r)}function hn(i,e,A){const r=[],s=[],a={code:e};for(const c of A){const C=c(i,a.code);C&&(Object.assign(a,C),r.unshift(C.map),C.warnings&&s.push(...C.warnings))}return{...a,map:bt(r,()=>null),warnings:s}}async function un(i,e,A){const r=[],s=[],a={code:e};for(const c of A){const C=await c(i,a.code);C&&(Object.assign(a,C),r.unshift(C.map),C.warnings&&s.push(...C.warnings))}return{...a,map:bt(r,()=>null),warnings:s}}const gn=process.versions.node,mt=i=>{const e={target:`node${gn}`,loader:"default",sourcemap:!0,minifyWhitespace:!0,keepNames:!0,...i};if(e.sourcefile){const{sourcefile:A}=e,r=_.extname(A);r?(r===".cts"||r===".mts")&&(e.sourcefile=`${A.slice(0,-3)}ts`):e.sourcefile+=".js"}return e};function fn(i,e,A){const r={};e.endsWith(".cjs")||e.endsWith(".cts")||(r["import.meta.url"]=`'${Zt(e)}'`);const s=mt({format:"cjs",sourcefile:e,define:r,banner:"(()=>{",footer:"})()",...A}),a=Fe(i+JSON.stringify(s)+Le);let c=ne.get(a);if(c||(c=hn(e,i,[(C,h)=>{const g=Wt(h,s);return s.sourcefile!==C&&(g.map=g.map.replace(JSON.stringify(s.sourcefile),JSON.stringify(C))),g},ke]),ne.set(a,c)),c.warnings&&c.warnings.length>0){const{warnings:C}=c;for(const h of C)console.error(h)}return c}async function Cn(i,e,A){const r=mt({format:"esm",sourcefile:e,...A}),s=Fe(i+JSON.stringify(r)+Le);let a=ne.get(s);if(a||(a=await un(e,i,[async(c,C)=>{const h=await Vt(C,r);return r.sourcefile!==c&&(h.map=h.map.replace(JSON.stringify(r.sourcefile),JSON.stringify(c))),h},ke]),ne.set(s,a)),a.warnings&&a.warnings.length>0){const{warnings:c}=a;for(const C of c)console.error(C)}return a}export{ke as a,fn as b,Te as p,Cn as t};
|