@visulima/packem 2.0.0-alpha.87 → 2.0.0-alpha.89

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.
@@ -1,6 +1,6 @@
1
1
  import{createFilter as qu}from"@rollup/pluginutils";import Af,{createRequire as Y}from"node:module";import{installPackage as Cf}from"@antfu/install-pkg";import{H as ee,B as V,E as Ye,P as Ae,Z as Sn,V as Vu,w as Vt,R as Yu,v as zu,_ as wf}from"./utils-Bsoe7qJG.js";import Sf from"node:url";import Ff from"util";import{ResolverFactory as Of}from"oxc-resolver";import{EXCLUDE_REGEXP as Nf}from"@visulima/packem-share/constants";const Ut=0,Gn=4,Xu=Symbol("findUpStop"),Lf=/"(?:[^"\\]|\\.)*"|\/\/[^\r\n]*|\/\*[\s\S]*?\*\//g;var xf=Object.defineProperty,kf=(t,e)=>xf(t,"name",{value:e,configurable:!0}),Pf=Object.defineProperty,Bf=kf((t,e)=>Pf(t,"name",{value:e,configurable:!0}),"n");const ne=Bf(t=>{if(!t||!(t instanceof URL)&&typeof t!="string")throw new TypeError("Path must be a non-empty string or URL.")},"assertValidFileOrDirectoryPath");var If=Object.defineProperty,_f=(t,e)=>If(t,"name",{value:e,configurable:!0}),Rf=Object.defineProperty,Tf=_f((t,e)=>Rf(t,"name",{value:e,configurable:!0}),"i");const ze=Tf(t=>{if(t.isFile())return"file";if(t.isDirectory())return"dir";if(t.isSymbolicLink())return"symlink"},"getFileInfoType");var jf=Object.defineProperty,Ju=(t,e)=>jf(t,"name",{value:e,configurable:!0});const Mf=Y(import.meta.url),or=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Gf=Ju(t=>{if(typeof or<"u"&&or.versions&&or.versions.node){const[e,r]=or.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return or.getBuiltinModule(t)}return Mf(t)},"__cjs_getBuiltinModule"),{lstat:Bo,mkdir:Uf}=Gf("node:fs/promises");var Hf=Object.defineProperty,Kf=Ju((t,e)=>Hf(t,"name",{value:e,configurable:!0}),"o");const vi=Kf(async t=>{ne(t);try{const e=await Bo(t);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(ze(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{await Uf(t,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const r=await Bo(t);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(ze(r))}'`,{cause:e})}},"ensureDir");var Wf=Object.defineProperty,Qu=(t,e)=>Wf(t,"name",{value:e,configurable:!0});const qf=Y(import.meta.url),ur=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Vf=Qu(t=>{if(typeof ur<"u"&&ur.versions&&ur.versions.node){const[e,r]=ur.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return ur.getBuiltinModule(t)}return qf(t)},"__cjs_getBuiltinModule"),{lstatSync:Io,mkdirSync:Yf}=Vf("node:fs");var zf=Object.defineProperty,Xf=Qu((t,e)=>zf(t,"name",{value:e,configurable:!0}),"o");const $i=Xf(t=>{ne(t);try{const e=Io(t);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(ze(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{Yf(t,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const r=Io(t);if(!r.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(ze(r))}'`,{cause:e})}},"ensureDirSync");var Jf=Object.defineProperty,Zu=(t,e)=>Jf(t,"name",{value:e,configurable:!0});const Qf=Y(import.meta.url),ar=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Zf=Zu(t=>{if(typeof ar<"u"&&ar.versions&&ar.versions.node){const[e,r]=ar.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return ar.getBuiltinModule(t)}return Qf(t)},"__cjs_getBuiltinModule"),{lstat:eh,writeFile:th}=Zf("node:fs/promises");var rh=Object.defineProperty,nh=Zu((t,e)=>rh(t,"name",{value:e,configurable:!0}),"o");nh(async t=>{ne(t);try{const e=await eh(t);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(ze(e))}'`)}catch(e){if(e.code==="ENOENT"){await vi(ee(V(t))),await th(t,new Uint8Array);return}throw e}},"ensureFile");var sh=Object.defineProperty,ea=(t,e)=>sh(t,"name",{value:e,configurable:!0});const ih=Y(import.meta.url),cr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,oh=ea(t=>{if(typeof cr<"u"&&cr.versions&&cr.versions.node){const[e,r]=cr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return cr.getBuiltinModule(t)}return ih(t)},"__cjs_getBuiltinModule"),{lstatSync:uh,writeFileSync:ah}=oh("node:fs");var ch=Object.defineProperty,lh=ea((t,e)=>ch(t,"name",{value:e,configurable:!0}),"o");lh(t=>{ne(t);try{const e=uh(t);if(!e.isFile())throw new Error(`Ensure path exists, expected 'file', got '${String(ze(e))}'`)}catch(e){if(e.code==="ENOENT"){$i(ee(V(t))),ah(t,new Uint8Array);return}throw e}},"ensureFileSync");var fh=Object.defineProperty,hh=(t,e)=>fh(t,"name",{value:e,configurable:!0}),ph=Object.defineProperty,dh=hh((t,e)=>ph(t,"name",{value:e,configurable:!0}),"d");const Ht=dh((t,e)=>!!e.ino&&!!e.dev&&e.ino===t.ino&&e.dev===t.dev,"isStatsIdentical");var mh=Object.defineProperty,ta=(t,e)=>mh(t,"name",{value:e,configurable:!0});const gh=Y(import.meta.url),lr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yh=ta(t=>{if(typeof lr<"u"&&lr.versions&&lr.versions.node){const[e,r]=lr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return lr.getBuiltinModule(t)}return gh(t)},"__cjs_getBuiltinModule"),{lstat:_o,link:Dh}=yh("node:fs/promises");var Eh=Object.defineProperty,bh=ta((t,e)=>Eh(t,"name",{value:e,configurable:!0}),"i");bh(async(t,e)=>{ne(t),ne(e),t=Ye(V(t)),e=Ye(V(e));let r;try{r=await _o(e)}catch{}let n;try{n=await _o(t)}catch(s){const i=s;throw i.message=i.message.replace("lstat","ensureLink"),i}r&&Ht(n,r)||(await vi(ee(e)),await Dh(t,e))},"ensureLink");var vh=Object.defineProperty,ra=(t,e)=>vh(t,"name",{value:e,configurable:!0});const $h=Y(import.meta.url),fr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ah=ra(t=>{if(typeof fr<"u"&&fr.versions&&fr.versions.node){const[e,r]=fr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return fr.getBuiltinModule(t)}return $h(t)},"__cjs_getBuiltinModule"),{lstatSync:Ro,linkSync:Ch}=Ah("node:fs");var wh=Object.defineProperty,Sh=ra((t,e)=>wh(t,"name",{value:e,configurable:!0}),"m");Sh((t,e)=>{ne(t),ne(e),t=Ye(V(t)),e=Ye(V(e));let r;try{r=Ro(e)}catch{}let n;try{n=Ro(t)}catch(s){const i=s;throw i.message=i.message.replace("lstat","ensureLink"),i}r&&Ht(n,r)||($i(ee(e)),Ch(t,e))},"ensureLinkSync");var Fh=Object.defineProperty,Oh=(t,e)=>Fh(t,"name",{value:e,configurable:!0}),Nh=Object.defineProperty,Lh=Oh((t,e)=>Nh(t,"name",{value:e,configurable:!0}),"i");const na=Lh((t,e)=>typeof t!="string"?t:t.startsWith("./")?Ae(t):typeof e=="string"?Ae(ee(e),t):new URL(t,e),"resolveSymlinkTarget");var xh=Object.defineProperty,sa=(t,e)=>xh(t,"name",{value:e,configurable:!0}),kh=Object.defineProperty,Ph=sa((t,e)=>kh(t,"name",{value:e,configurable:!0}),"t");let Fn=class extends Error{static{sa(this,"n")}static{Ph(this,"AlreadyExistsError")}constructor(e){super(`EEXIST: ${e}`)}get code(){return"EEXIST"}set code(e){throw new Error("Cannot overwrite code EEXIST")}get name(){return"AlreadyExistsError"}set name(e){throw new Error("Cannot overwrite name of AlreadyExistsError")}};var Bh=Object.defineProperty,ia=(t,e)=>Bh(t,"name",{value:e,configurable:!0});const Ih=Y(import.meta.url),hr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_h=ia(t=>{if(typeof hr<"u"&&hr.versions&&hr.versions.node){const[e,r]=hr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return hr.getBuiltinModule(t)}return Ih(t)},"__cjs_getBuiltinModule"),{lstat:ys,stat:ln,symlink:Rh,readlink:Th}=_h("node:fs/promises");var jh=Object.defineProperty,Mh=ia((t,e)=>jh(t,"name",{value:e,configurable:!0}),"m");const Gh=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);Mh(async(t,e,r)=>{ne(t),ne(e);const n=na(t,e);e=Ye(V(e));try{if((await ys(e)).isSymbolicLink()&&Ht(await ln(n),await ln(e))){const[u,a]=await Promise.all([ln(n),ln(e)]);if(Ht(u,a))return}}catch{}const s=await ys(n),i=ze(s);await vi(ee(e));let o=r??"file";r||(Gh?o="junction":o=i==="dir"?"dir":"file");try{await Rh(Ye(V(n)),e,o)}catch(u){if(u.code!=="EEXIST")throw u;const a=await ys(e);if(!a.isSymbolicLink())throw new Fn(`A ${String(ze(a))} already exists at the path: ${e}`);const c=await Th(e),l=Ye(Ae(c));if(l!==n)throw new Fn(`A symlink targeting to an undesired path already exists: ${e} -> ${l}`)}},"ensureSymlink");var Uh=Object.defineProperty,oa=(t,e)=>Uh(t,"name",{value:e,configurable:!0});const Hh=Y(import.meta.url),pr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Kh=oa(t=>{if(typeof pr<"u"&&pr.versions&&pr.versions.node){const[e,r]=pr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return pr.getBuiltinModule(t)}return Hh(t)},"__cjs_getBuiltinModule"),{lstatSync:Ds,statSync:fn,symlinkSync:Wh,readlinkSync:qh}=Kh("node:fs");var Vh=Object.defineProperty,Yh=oa((t,e)=>Vh(t,"name",{value:e,configurable:!0}),"p");const zh=process.platform==="win32"||/^(?:msys|cygwin)$/.test(process.env.OSTYPE);Yh((t,e,r)=>{ne(t),ne(e);const n=na(t,e);e=Ye(V(e));try{if(Ds(e).isSymbolicLink()&&Ht(fn(n),fn(e))){const u=fn(n),a=fn(e);if(Ht(u,a))return}}catch{}const s=Ds(n),i=ze(s);$i(ee(e));let o=r??"file";r||(zh?o="junction":o=i==="dir"?"dir":"file");try{Wh(Ye(V(n)),e,o)}catch(u){if(u.code!=="EEXIST")throw u;const a=Ds(e);if(!a.isSymbolicLink())throw new Fn(`A ${String(ze(a))} already exists at the path: ${e}`);const c=qh(e),l=Ye(Ae(c));if(l!==n)throw new Fn(`A symlink targeting to an undesired path already exists: ${e} -> ${l}`)}},"ensureSymlinkSync");var Xh=Object.defineProperty,Jh=(t,e)=>Xh(t,"name",{value:e,configurable:!0});Y(import.meta.url);var Qh=Object.defineProperty,ua=Jh((t,e)=>Qh(t,"name",{value:e,configurable:!0}),"r");const aa=/\r?\n/g,Zh=`
2
2
  `,To=`\r
3
- `;ua(t=>{const e=t.match(aa);if(!e||e.length===0)return null;const r=e.filter(s=>s===To).length,n=e.length-r;return r>n?To:Zh},"detect");ua((t,e)=>t.replaceAll(aa,e),"format");var ep=Object.defineProperty,ca=(t,e)=>ep(t,"name",{value:e,configurable:!0}),tp=Object.defineProperty,rp=ca((t,e)=>tp(t,"name",{value:e,configurable:!0}),"t");let On=class extends Error{static{ca(this,"i")}static{rp(this,"WalkError")}root;constructor(e,r){super(`${e instanceof Error?e.message:String(e)} for path "${r}"`),this.cause=e,this.root=r}get name(){return"WalkError"}set name(e){throw new Error("Cannot overwrite name of WalkError")}};var np=Object.defineProperty,la=(t,e)=>np(t,"name",{value:e,configurable:!0}),sp=Object.defineProperty,ip=la((t,e)=>sp(t,"name",{value:e,configurable:!0}),"g");const Nn=ip(t=>{const e=t.replace(/\.\*/g,".([^/]*)").replace(/\*\*/g,"(.*)").replace(/(?<!\.)\*(?!\*)/g,"([^/]*)").replace(/\?/g,"[^/]").replace(/\.(?!\*)/g,String.raw`\.`).replace(/\{/g,"(").replace(/\}/g,")").replace(/,/g,"|").replace(/\[!(.*?)\]/g,"[^$1]");return new RegExp(`^${e}$`)},"globToRegExp");var op=Object.defineProperty,up=la((t,e)=>op(t,"name",{value:e,configurable:!0}),"n");const mt=up((t,e,r,n)=>Array.isArray(e)&&e.length>0&&!e.some(s=>t.endsWith(s))||r&&!r.some(s=>s.test(t))?!1:!n?.some(s=>s.test(t)),"walkInclude");var ap=Object.defineProperty,Ai=(t,e)=>ap(t,"name",{value:e,configurable:!0});const cp=Y(import.meta.url),dr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,lp=Ai(t=>{if(typeof dr<"u"&&dr.versions&&dr.versions.node){const[e,r]=dr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return dr.getBuiltinModule(t)}return cp(t)},"__cjs_getBuiltinModule"),{readdir:fp,realpath:hp,stat:pp}=lp("node:fs/promises");var dp=Object.defineProperty,Re=Ai((t,e)=>dp(t,"name",{value:e,configurable:!0}),"r");const mp=Re(async t=>{const e=Sn(t),r=Vu(e),n=await pp(e);return{isDirectory:Re(()=>n.isDirectory(),"isDirectory"),isFile:Re(()=>n.isFile(),"isFile"),isSymbolicLink:Re(()=>n.isSymbolicLink(),"isSymbolicLink"),name:r,path:e}},"_createWalkEntry");async function*Un(t,{extensions:e,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:s=!0,includeSymlinks:i=!0,match:o,maxDepth:u=Number.POSITIVE_INFINITY,skip:a}={}){if(ne(t),u<0)return;const c=o?o.map(h=>typeof h=="string"?Nn(h):h):void 0,l=a?a.map(h=>typeof h=="string"?Nn(h):h):void 0;if(t=Ae(V(t)),n&&mt(t,e,c,l)&&(yield await mp(t)),!(u<1||!mt(t,void 0,void 0,l)))try{const h=await fp(t,{withFileTypes:!0});for(const d of h){let D=Vt(t,d.name);if(d.isSymbolicLink())if(r)D=await hp(D);else if(i&&mt(D,e,c,l)){yield{isDirectory:Re(()=>d.isDirectory(),"isDirectory"),isFile:Re(()=>d.isFile(),"isFile"),isSymbolicLink:Re(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:D};continue}else continue;d.isDirectory()?yield*Un(D,{extensions:e,followSymlinks:r,includeDirs:n,includeFiles:s,includeSymlinks:i,match:c,maxDepth:u-1,skip:l}):d.isFile()&&s&&mt(D,e,c,l)&&(yield{isDirectory:Re(()=>d.isDirectory(),"isDirectory"),isFile:Re(()=>d.isFile(),"isFile"),isSymbolicLink:Re(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:D})}}catch(h){throw h instanceof On?h:new On(h,t)}}Ai(Un,"g");Re(Un,"walk");var gp=Object.defineProperty,yp=(t,e)=>gp(t,"name",{value:e,configurable:!0}),Dp=Object.defineProperty,Ep=yp((t,e)=>Dp(t,"name",{value:e,configurable:!0}),"e");Ep(async(t,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const r=[];for await(const n of Un(t,e))r.push(n.path);return r},"collect");var bp=Object.defineProperty,Ci=(t,e)=>bp(t,"name",{value:e,configurable:!0});const vp=Y(import.meta.url),mr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$p=Ci(t=>{if(typeof mr<"u"&&mr.versions&&mr.versions.node){const[e,r]=mr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return mr.getBuiltinModule(t)}return vp(t)},"__cjs_getBuiltinModule"),{readdirSync:Ap,realpathSync:Cp,statSync:wp}=$p("node:fs");var Sp=Object.defineProperty,Te=Ci((t,e)=>Sp(t,"name",{value:e,configurable:!0}),"t");const Fp=Te(t=>{const e=Sn(t),r=wp(e);return{isDirectory:Te(()=>r.isDirectory(),"isDirectory"),isFile:Te(()=>r.isFile(),"isFile"),isSymbolicLink:Te(()=>r.isSymbolicLink(),"isSymbolicLink"),name:Vu(e),path:e}},"_createWalkEntry");function*Hn(t,{extensions:e,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:s=!0,includeSymlinks:i=!0,match:o,maxDepth:u=Number.POSITIVE_INFINITY,skip:a}={}){if(ne(t),u<0)return;const c=o?o.map(h=>typeof h=="string"?Nn(h):h):void 0,l=a?a.map(h=>typeof h=="string"?Nn(h):h):void 0;if(t=Ae(V(t)),n&&mt(t,e,c,l)&&(yield Fp(t)),!(u<1||!mt(t,void 0,void 0,l)))try{const h=Ap(t,{withFileTypes:!0});for(const d of h){let D=Vt(t,d.name);if(d.isSymbolicLink())if(r)D=Cp(D);else if(i&&mt(D,e,c,l)){yield{isDirectory:Te(()=>d.isDirectory(),"isDirectory"),isFile:Te(()=>d.isFile(),"isFile"),isSymbolicLink:Te(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:Sn(D)};continue}else continue;d.isDirectory()?yield*Hn(D,{extensions:e,followSymlinks:r,includeDirs:n,includeFiles:s,includeSymlinks:i,match:c,maxDepth:u-1,skip:l}):d.isFile()&&s&&mt(D,e,c,l)&&(yield{isDirectory:Te(()=>d.isDirectory(),"isDirectory"),isFile:Te(()=>d.isFile(),"isFile"),isSymbolicLink:Te(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:Sn(D)})}}catch(h){throw h instanceof On?h:new On(h,t)}}Ci(Hn,"b");Te(Hn,"walkSync");var Op=Object.defineProperty,Np=(t,e)=>Op(t,"name",{value:e,configurable:!0}),Lp=Object.defineProperty,xp=Np((t,e)=>Lp(t,"name",{value:e,configurable:!0}),"n");xp((t,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const r=[];for(const n of Hn(t,e))r.push(n.path);return r},"collectSync");var kp=Object.defineProperty,fa=(t,e)=>kp(t,"name",{value:e,configurable:!0});const Pp=Y(import.meta.url),gr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ha=fa(t=>{if(typeof gr<"u"&&gr.versions&&gr.versions.node){const[e,r]=gr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return gr.getBuiltinModule(t)}return Pp(t)},"__cjs_getBuiltinModule"),{stat:Bp,lstat:Ip}=ha("node:fs/promises"),{fileURLToPath:_p}=ha("node:url");var Rp=Object.defineProperty,jo=fa((t,e)=>Rp(t,"name",{value:e,configurable:!0}),"n");const pa=jo(async(t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=e.cwd?V(e.cwd):process.cwd();let n=Ae(r);const{root:s}=Yu(n),i=V(e.stopAt??s),o=Ae(n,i),u=e.type??"file",a=jo(async function(l){return typeof t=="function"?[await t(l)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");e.allowSymlinks??=!0;const c=e.allowSymlinks?Bp:Ip;for(;n&&n!==o&&n!==s;){const l=await a(n);for(let h of l){if(h===Xu)return;if(h===void 0)continue;Buffer.isBuffer(h)?h=h.toString():h instanceof URL&&(h=_p(h));const d=zu(h)?h:Ae(n,h);try{const D=await c(d);if(u==="file"&&D.isFile()||u==="directory"&&D.isDirectory())return d}catch{}}n=ee(n)}},"findUp");var Tp=Object.defineProperty,da=(t,e)=>Tp(t,"name",{value:e,configurable:!0});const jp=Y(import.meta.url),yr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ma=da(t=>{if(typeof yr<"u"&&yr.versions&&yr.versions.node){const[e,r]=yr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return yr.getBuiltinModule(t)}return jp(t)},"__cjs_getBuiltinModule"),{statSync:Mp,lstatSync:Gp}=ma("node:fs"),{fileURLToPath:Up}=ma("node:url");var Hp=Object.defineProperty,Mo=da((t,e)=>Hp(t,"name",{value:e,configurable:!0}),"o");const ga=Mo((t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=e.cwd?V(e.cwd):process.cwd();let n=Ae(r);const{root:s}=Yu(n),i=V(e.stopAt??s),o=Ae(n,i),u=e.type??"file",a=Mo(function(l){return typeof t=="function"?[t(l)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");e.allowSymlinks??=!0;const c=e.allowSymlinks?Mp:Gp;for(;n&&n!==o&&n!==s;){for(let l of a(n)){if(l===Xu)return;if(l===void 0)continue;Buffer.isBuffer(l)?l=l.toString():l instanceof URL&&(l=Up(l));const h=zu(l)?l:Ae(n,l);try{const d=c(h);if(u==="file"&&d.isFile()||u==="directory"&&d.isDirectory())return h}catch{}}n=ee(n)}},"findUpSync");var Kp=Object.defineProperty,Yt=(t,e)=>Kp(t,"name",{value:e,configurable:!0}),Wp=Object.defineProperty,Kt=Yt((t,e)=>Wp(t,"name",{value:e,configurable:!0}),"t");function zr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}Yt(zr,"getDefaultExportFromCjs");Kt(zr,"getDefaultExportFromCjs");function ya(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}Yt(ya,"getDefaultExportFromNamespaceIfPresent");Kt(ya,"getDefaultExportFromNamespaceIfPresent");function Da(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")&&Object.keys(t).length===1?t.default:t}Yt(Da,"getDefaultExportFromNamespaceIfNotNamed");Kt(Da,"getDefaultExportFromNamespaceIfNotNamed");function Ea(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=Kt(Yt(function n(){var s=!1;try{s=this instanceof n}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)},"a"),"a");r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:Kt(function(){return t[n]},"get")})}),r}Yt(Ea,"getAugmentedNamespace");Kt(Ea,"getAugmentedNamespace");var qp=Object.defineProperty,Me=(t,e)=>qp(t,"name",{value:e,configurable:!0}),Go={},Es,Uo;function Xr(){if(Uo)return Es;Uo=1;const t="[^\\\\/]",e=Symbol("unignore"),r="\\.",n="\\+",s="\\?",i="\\/",o="(?=.)",u="[^/]",a=`(?:${i}|$)`,c=`(?:^|${i})`,l=`${r}{1,2}${a}`,h=`(?!${r})`,d=`(?!${c}${l})`,D=`(?!${r}{0,1}${a})`,b=`(?!${l})`,p=`[^.${i}]`,g=`${u}*?`,m="/",v={DOT_LITERAL:r,PLUS_LITERAL:n,QMARK_LITERAL:s,SLASH_LITERAL:i,ONE_CHAR:o,QMARK:u,END_ANCHOR:a,DOTS_SLASH:l,NO_DOT:h,NO_DOTS:d,NO_DOT_SLASH:D,NO_DOTS_SLASH:b,QMARK_NO_DOT:p,STAR:g,START_ANCHOR:c,SEP:m},$={...v,SLASH_LITERAL:"[\\\\/]",QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${r}{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[\\\\/])${r}{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},f={__proto__:null,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"};return Es={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:f,UNIGNORE:e,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:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},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,extglobChars(E){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${E.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(E){return E===!0?$:v}},Es}Me(Xr,"requireConstants");var Ho;function Jr(){return Ho||(Ho=1,(function(t){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:s}=Xr();t.isObject=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),t.hasRegexChars=i=>n.test(i),t.isRegexChar=i=>i.length===1&&t.hasRegexChars(i),t.escapeRegex=i=>i.replace(s,"\\$1"),t.toPosixSlashes=i=>i.replace(e,"/"),t.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const i=navigator.platform.toLowerCase();return i==="win32"||i==="windows"}return process.platform?process.platform==="win32":!1},t.removeBackslashes=i=>i.replace(r,o=>o==="\\"?"":o),t.escapeLast=(i,o,u)=>{const a=i.lastIndexOf(o,u);return a===-1?i:i[a-1]==="\\"?t.escapeLast(i,o,a-1):`${i.slice(0,a)}\\${i.slice(a)}`},t.removePrefix=(i,o={})=>{let u=i;return u.startsWith("./")&&(u=u.slice(2),o.prefix="./"),u},t.wrapOutput=(i,o={},u={})=>{const a=u.contains?"":"^",c=u.contains?"":"$";let l=`${a}(?:${i})${c}`;return o.negated===!0&&(l=`(?:^(?!${l}).*$)`),l},t.basename=(i,{windows:o}={})=>{const u=i.split(o?/[\\/]/:"/"),a=u[u.length-1];return a===""?u[u.length-2]:a}})(Go)),Go}Me(Jr,"requireUtils");var bs,Ko;function ba(){if(Ko)return bs;Ko=1;var t=Object.defineProperty,e=Me((f,E)=>t(f,"name",{value:E,configurable:!0}),"k");const r=Jr(),{CHAR_ASTERISK:n,CHAR_AT:s,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:o,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:D,CHAR_QUESTION_MARK:b,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:m}=Xr(),v=e(f=>f===c||f===i,"isPathSeparator"),$=e(f=>{f.isPrefix!==!0&&(f.depth=f.isGlobstar?1/0:1)},"depth");return bs=e((f,E)=>{const y=E||{},C=f.length-1,A=y.parts===!0||y.scanToEnd===!0,N=[],k=[],_=[];let U=f,be=-1,he=0,Ue=0,Ce=!1,He=!1,se=!1,Qe=!1,bt=!1,Ke=!1,J=!1,We=!1,vt=!1,we=!1,ve=0,Oe,M,W={value:"",depth:0,isGlob:!1};const F=e(()=>be>=C,"eos"),Fe=e(()=>U.charCodeAt(be+1),"peek"),pe=e(()=>(Oe=M,U.charCodeAt(++be)),"advance");for(;be<C;){M=pe();let z;if(M===i){J=W.backslashes=!0,M=pe(),M===l&&(Ke=!0);continue}if(Ke===!0||M===l){for(ve++;F()!==!0&&(M=pe());){if(M===i){J=W.backslashes=!0,pe();continue}if(M===l){ve++;continue}if(Ke!==!0&&M===u&&(M=pe())===u){if(Ce=W.isBrace=!0,se=W.isGlob=!0,we=!0,A===!0)continue;break}if(Ke!==!0&&M===o){if(Ce=W.isBrace=!0,se=W.isGlob=!0,we=!0,A===!0)continue;break}if(M===p&&(ve--,ve===0)){Ke=!1,Ce=W.isBrace=!0,we=!0;break}}if(A===!0)continue;break}if(M===c){if(N.push(be),k.push(W),W={value:"",depth:0,isGlob:!1},we===!0)continue;if(Oe===u&&be===he+1){he+=2;continue}Ue=be+1;continue}if(y.noext!==!0&&(M===D||M===s||M===n||M===b||M===a)&&Fe()===h){if(se=W.isGlob=!0,Qe=W.isExtglob=!0,we=!0,M===a&&be===he&&(vt=!0),A===!0){for(;F()!==!0&&(M=pe());){if(M===i){J=W.backslashes=!0,M=pe();continue}if(M===g){se=W.isGlob=!0,we=!0;break}}continue}break}if(M===n){if(Oe===n&&(bt=W.isGlobstar=!0),se=W.isGlob=!0,we=!0,A===!0)continue;break}if(M===b){if(se=W.isGlob=!0,we=!0,A===!0)continue;break}if(M===d){for(;F()!==!0&&(z=pe());){if(z===i){J=W.backslashes=!0,pe();continue}if(z===m){He=W.isBracket=!0,se=W.isGlob=!0,we=!0;break}}if(A===!0)continue;break}if(y.nonegate!==!0&&M===a&&be===he){We=W.negated=!0,he++;continue}if(y.noparen!==!0&&M===h){if(se=W.isGlob=!0,A===!0){for(;F()!==!0&&(M=pe());){if(M===h){J=W.backslashes=!0,M=pe();continue}if(M===g){we=!0;break}}continue}break}if(se===!0){if(we=!0,A===!0)continue;break}}y.noext===!0&&(Qe=!1,se=!1);let ue=U,w="",S="";he>0&&(w=U.slice(0,he),U=U.slice(he),Ue-=he),ue&&se===!0&&Ue>0?(ue=U.slice(0,Ue),S=U.slice(Ue)):se===!0?(ue="",S=U):ue=U,ue&&ue!==""&&ue!=="/"&&ue!==U&&v(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),y.unescape===!0&&(S&&(S=r.removeBackslashes(S)),ue&&J===!0&&(ue=r.removeBackslashes(ue)));const xe={prefix:w,input:f,start:he,base:ue,glob:S,isBrace:Ce,isBracket:He,isGlob:se,isExtglob:Qe,isGlobstar:bt,negated:We,negatedExtglob:vt};if(y.tokens===!0&&(xe.maxDepth=0,v(M)||k.push(W),xe.tokens=k),y.parts===!0||y.tokens===!0){let z;for(let ie=0;ie<N.length;ie++){const Ze=z?z+1:he,Ne=N[ie],ft=f.slice(Ze,Ne);y.tokens&&(ie===0&&he!==0?(k[ie].isPrefix=!0,k[ie].value=w):k[ie].value=ft,$(k[ie]),xe.maxDepth+=k[ie].depth),(ie!==0||ft!=="")&&_.push(ft),z=Ne}if(z&&z+1<f.length){const ie=f.slice(z+1);_.push(ie),y.tokens&&(k[k.length-1].value=ie,$(k[k.length-1]),xe.maxDepth+=k[k.length-1].depth)}xe.slashes=N,xe.parts=_}return xe},"scan"),bs}Me(ba,"requireScan");var vs,Wo;function va(){if(Wo)return vs;Wo=1;var t=Object.defineProperty,e=Me((f,E)=>t(f,"name",{value:E,configurable:!0}),"y");const r=Xr(),n=Jr(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:a}=r,c=e((f,E)=>typeof E.expandRange=="function"?E.expandRange(...f,E):(f.sort(),`[${f.join("-")}]`),"expandRange"),l=e((f,E)=>`Missing ${f}: "${E}" - use "\\\\${E}" to match literal characters`,"syntaxError"),h=e(f=>{const E=[];let y=0,C=0,A=0,N="",k=!1;for(const _ of f){if(k===!0){N+=_,k=!1;continue}if(_==="\\"){N+=_,k=!0;continue}if(_==='"'){A=A===1?0:1,N+=_;continue}if(A===0){if(_==="[")y++;else if(_==="]"&&y>0)y--;else if(y===0){if(_==="(")C++;else if(_===")"&&C>0)C--;else if(_==="|"&&C===0){E.push(N),N="";continue}}}N+=_}return E.push(N),E},"splitTopLevel"),d=e(f=>{let E=!1;for(const y of f){if(E===!0){E=!1;continue}if(y==="\\"){E=!0;continue}if(/[?*+@!()[\]{}]/.test(y))return!1}return!0},"isPlainBranch"),D=e(f=>{let E=f.trim(),y=!0;for(;y===!0;)y=!1,/^@\([^\\()[\]{}|]+\)$/.test(E)&&(E=E.slice(2,-1),y=!0);if(d(E))return E.replace(/\\(.)/g,"$1")},"normalizeSimpleBranch"),b=e(f=>{const E=f.map(D).filter(Boolean);for(let y=0;y<E.length;y++)for(let C=y+1;C<E.length;C++){const A=E[y],N=E[C],k=A[0];if(!(!k||A!==k.repeat(A.length)||N!==k.repeat(N.length))&&(A===N||A.startsWith(N)||N.startsWith(A)))return!0}return!1},"hasRepeatedCharPrefixOverlap"),p=e((f,E=!0)=>{if(f[0]!=="+"&&f[0]!=="*"||f[1]!=="(")return;let y=0,C=0,A=0,N=!1;for(let k=1;k<f.length;k++){const _=f[k];if(N===!0){N=!1;continue}if(_==="\\"){N=!0;continue}if(_==='"'){A=A===1?0:1;continue}if(A!==1){if(_==="["){y++;continue}if(_==="]"&&y>0){y--;continue}if(!(y>0)){if(_==="("){C++;continue}if(_===")"&&(C--,C===0))return E===!0&&k!==f.length-1?void 0:{type:f[0],body:f.slice(2,k),end:k}}}}},"parseRepeatedExtglob"),g=e(f=>{let E=0;const y=[];for(;E<f.length;){const C=p(f.slice(E),!1);if(!C||C.type!=="*")return;const A=h(C.body).map(k=>k.trim());if(A.length!==1)return;const N=D(A[0]);if(!N||N.length!==1)return;y.push(N),E+=C.end+1}return y.length<1?void 0:`${y.length===1?n.escapeRegex(y[0]):`[${y.map(C=>n.escapeRegex(C)).join("")}]`}*`},"getStarExtglobSequenceOutput"),m=e(f=>{let E=0,y=f.trim(),C=p(y);for(;C;)E++,y=C.body.trim(),C=p(y);return E},"repeatedExtglobRecursion"),v=e((f,E)=>{if(E.maxExtglobRecursion===!1)return{risky:!1};const y=typeof E.maxExtglobRecursion=="number"?E.maxExtglobRecursion:r.DEFAULT_MAX_EXTGLOB_RECURSION,C=h(f).map(A=>A.trim());if(C.length>1&&(C.some(A=>A==="")||C.some(A=>/^[*?]+$/.test(A))||b(C)))return{risky:!0};for(const A of C){const N=g(A);if(N)return{risky:!0,safeOutput:N};if(m(A)>y)return{risky:!0}}return{risky:!1}},"analyzeRepeatedExtglob"),$=e((f,E)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=a[f]||f;const y={...E},C=typeof y.maxLength=="number"?Math.min(s,y.maxLength):s;let A=f.length;if(A>C)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${C}`);const N={type:"bos",value:"",output:y.prepend||""},k=[N],_=y.capture?"":"?:",U=r.globChars(y.windows),be=r.extglobChars(U),{DOT_LITERAL:he,PLUS_LITERAL:Ue,SLASH_LITERAL:Ce,ONE_CHAR:He,DOTS_SLASH:se,NO_DOT:Qe,NO_DOT_SLASH:bt,NO_DOTS_SLASH:Ke,QMARK:J,QMARK_NO_DOT:We,STAR:vt,START_ANCHOR:we}=U,ve=e(P=>`(${_}(?:(?!${we}${P.dot?se:he}).)*?)`,"globstar"),Oe=y.dot?"":Qe,M=y.dot?J:We;let W=y.bash===!0?ve(y):vt;y.capture&&(W=`(${W})`),typeof y.noext=="boolean"&&(y.noextglob=y.noext);const F={input:f,index:-1,start:0,dot:y.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:k};f=n.removePrefix(f,F),A=f.length;const Fe=[],pe=[],ue=[];let w=N,S;const xe=e(()=>F.index===A-1,"eos"),z=F.peek=(P=1)=>f[F.index+P],ie=F.advance=()=>f[++F.index]||"",Ze=e(()=>f.slice(F.index+1),"remaining"),Ne=e((P="",te=0)=>{F.consumed+=P,F.index+=te},"consume"),ft=e(P=>{F.output+=P.output!=null?P.output:P.value,Ne(P.value)},"append"),vf=e(()=>{let P=1;for(;z()==="!"&&(z(2)!=="("||z(3)==="?");)ie(),F.start++,P++;return P%2===0?!1:(F.negated=!0,F.start++,!0)},"negate"),an=e(P=>{F[P]++,ue.push(P)},"increment"),ht=e(P=>{F[P]--,ue.pop()},"decrement"),H=e(P=>{if(w.type==="globstar"){const te=F.braces>0&&(P.type==="comma"||P.type==="brace"),x=P.extglob===!0||Fe.length&&(P.type==="pipe"||P.type==="paren");P.type!=="slash"&&P.type!=="paren"&&!te&&!x&&(F.output=F.output.slice(0,-w.output.length),w.type="star",w.value="*",w.output=W,F.output+=w.output)}if(Fe.length&&P.type!=="paren"&&(Fe[Fe.length-1].inner+=P.value),(P.value||P.output)&&ft(P),w&&w.type==="text"&&P.type==="text"){w.output=(w.output||w.value)+P.value,w.value+=P.value;return}P.prev=w,k.push(P),w=P},"push"),cn=e((P,te)=>{const x={...be[te],conditions:1,inner:""};x.prev=w,x.parens=F.parens,x.output=F.output,x.startIndex=F.index,x.tokensIndex=k.length;const K=(y.capture?"(":"")+x.open;an("parens"),H({type:P,value:te,output:F.output?"":He}),H({type:"paren",extglob:!0,value:ie(),output:K}),Fe.push(x)},"extglobOpen"),$f=e(P=>{const te=f.slice(P.startIndex,F.index+1),x=f.slice(P.startIndex+2,F.index),K=v(x,y);if((P.type==="plus"||P.type==="star")&&K.risky){const X=K.safeOutput?(P.output?"":He)+(y.capture?`(${K.safeOutput})`:K.safeOutput):void 0,qe=k[P.tokensIndex];qe.type="text",qe.value=te,qe.output=X||n.escapeRegex(te);for(let Ve=P.tokensIndex+1;Ve<k.length;Ve++)k[Ve].value="",k[Ve].output="",delete k[Ve].suffix;F.output=P.output+qe.output,F.backtrack=!0,H({type:"paren",extglob:!0,value:S,output:""}),ht("parens");return}let oe=P.close+(y.capture?")":""),de;if(P.type==="negate"){let X=W;if(P.inner&&P.inner.length>1&&P.inner.includes("/")&&(X=ve(y)),(X!==W||xe()||/^\)+$/.test(Ze()))&&(oe=P.close=`)$))${X}`),P.inner.includes("*")&&(de=Ze())&&/^\.[^\\/.]+$/.test(de)){const qe=$(de,{...E,fastpaths:!1}).output;oe=P.close=`)${qe})${X})`}P.prev.type==="bos"&&(F.negatedExtglob=!0)}H({type:"paren",extglob:!0,value:S,output:oe}),ht("parens")},"extglobClose");if(y.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let P=!1,te=f.replace(u,(x,K,oe,de,X,qe)=>de==="\\"?(P=!0,x):de==="?"?K?K+de+(X?J.repeat(X.length):""):qe===0?M+(X?J.repeat(X.length):""):J.repeat(oe.length):de==="."?he.repeat(oe.length):de==="*"?K?K+de+(X?W:""):W:K?x:`\\${x}`);return P===!0&&(y.unescape===!0?te=te.replace(/\\/g,""):te=te.replace(/\\+/g,x=>x.length%2===0?"\\\\":x?"\\":"")),te===f&&y.contains===!0?(F.output=f,F):(F.output=n.wrapOutput(te,F,E),F)}for(;!xe();){if(S=ie(),S==="\0")continue;if(S==="\\"){const x=z();if(x==="/"&&y.bash!==!0||x==="."||x===";")continue;if(!x){S+="\\",H({type:"text",value:S});continue}const K=/^\\+/.exec(Ze());let oe=0;if(K&&K[0].length>2&&(oe=K[0].length,F.index+=oe,oe%2!==0&&(S+="\\")),y.unescape===!0?S=ie():S+=ie(),F.brackets===0){H({type:"text",value:S});continue}}if(F.brackets>0&&(S!=="]"||w.value==="["||w.value==="[^")){if(y.posix!==!1&&S===":"){const x=w.value.slice(1);if(x.includes("[")&&(w.posix=!0,x.includes(":"))){const K=w.value.lastIndexOf("["),oe=w.value.slice(0,K),de=w.value.slice(K+2),X=i[de];if(X){w.value=oe+X,F.backtrack=!0,ie(),!N.output&&k.indexOf(w)===1&&(N.output=He);continue}}}(S==="["&&z()!==":"||S==="-"&&z()==="]")&&(S=`\\${S}`),S==="]"&&(w.value==="["||w.value==="[^")&&(S=`\\${S}`),y.posix===!0&&S==="!"&&w.value==="["&&(S="^"),w.value+=S,ft({value:S});continue}if(F.quotes===1&&S!=='"'){S=n.escapeRegex(S),w.value+=S,ft({value:S});continue}if(S==='"'){F.quotes=F.quotes===1?0:1,y.keepQuotes===!0&&H({type:"text",value:S});continue}if(S==="("){an("parens"),H({type:"paren",value:S});continue}if(S===")"){if(F.parens===0&&y.strictBrackets===!0)throw new SyntaxError(l("opening","("));const x=Fe[Fe.length-1];if(x&&F.parens===x.parens+1){$f(Fe.pop());continue}H({type:"paren",value:S,output:F.parens?")":"\\)"}),ht("parens");continue}if(S==="["){if(y.nobracket===!0||!Ze().includes("]")){if(y.nobracket!==!0&&y.strictBrackets===!0)throw new SyntaxError(l("closing","]"));S=`\\${S}`}else an("brackets");H({type:"bracket",value:S});continue}if(S==="]"){if(y.nobracket===!0||w&&w.type==="bracket"&&w.value.length===1){H({type:"text",value:S,output:`\\${S}`});continue}if(F.brackets===0){if(y.strictBrackets===!0)throw new SyntaxError(l("opening","["));H({type:"text",value:S,output:`\\${S}`});continue}ht("brackets");const x=w.value.slice(1);if(w.posix!==!0&&x[0]==="^"&&!x.includes("/")&&(S=`/${S}`),w.value+=S,ft({value:S}),y.literalBrackets===!1||n.hasRegexChars(x))continue;const K=n.escapeRegex(w.value);if(F.output=F.output.slice(0,-w.value.length),y.literalBrackets===!0){F.output+=K,w.value=K;continue}w.value=`(${_}${K}|${w.value})`,F.output+=w.value;continue}if(S==="{"&&y.nobrace!==!0){an("braces");const x={type:"brace",value:S,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};pe.push(x),H(x);continue}if(S==="}"){const x=pe[pe.length-1];if(y.nobrace===!0||!x){H({type:"text",value:S,output:S});continue}let K=")";if(x.dots===!0){const oe=k.slice(),de=[];for(let X=oe.length-1;X>=0&&(k.pop(),oe[X].type!=="brace");X--)oe[X].type!=="dots"&&de.unshift(oe[X].value);K=c(de,y),F.backtrack=!0}if(x.comma!==!0&&x.dots!==!0){const oe=F.output.slice(0,x.outputIndex),de=F.tokens.slice(x.tokensIndex);x.value=x.output="\\{",S=K="\\}",F.output=oe;for(const X of de)F.output+=X.output||X.value}H({type:"brace",value:S,output:K}),ht("braces"),pe.pop();continue}if(S==="|"){Fe.length>0&&Fe[Fe.length-1].conditions++,H({type:"text",value:S});continue}if(S===","){let x=S;const K=pe[pe.length-1];K&&ue[ue.length-1]==="braces"&&(K.comma=!0,x="|"),H({type:"comma",value:S,output:x});continue}if(S==="/"){if(w.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",k.pop(),w=N;continue}H({type:"slash",value:S,output:Ce});continue}if(S==="."){if(F.braces>0&&w.type==="dot"){w.value==="."&&(w.output=he);const x=pe[pe.length-1];w.type="dots",w.output+=S,w.value+=S,x.dots=!0;continue}if(F.braces+F.parens===0&&w.type!=="bos"&&w.type!=="slash"){H({type:"text",value:S,output:he});continue}H({type:"dot",value:S,output:he});continue}if(S==="?"){if(!(w&&w.value==="(")&&y.noextglob!==!0&&z()==="("&&z(2)!=="?"){cn("qmark",S);continue}if(w&&w.type==="paren"){const x=z();let K=S;(w.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(Ze()))&&(K=`\\${S}`),H({type:"text",value:S,output:K});continue}if(y.dot!==!0&&(w.type==="slash"||w.type==="bos")){H({type:"qmark",value:S,output:We});continue}H({type:"qmark",value:S,output:J});continue}if(S==="!"){if(y.noextglob!==!0&&z()==="("&&(z(2)!=="?"||!/[!=<:]/.test(z(3)))){cn("negate",S);continue}if(y.nonegate!==!0&&F.index===0){vf();continue}}if(S==="+"){if(y.noextglob!==!0&&z()==="("&&z(2)!=="?"){cn("plus",S);continue}if(w&&w.value==="("||y.regex===!1){H({type:"plus",value:S,output:Ue});continue}if(w&&(w.type==="bracket"||w.type==="paren"||w.type==="brace")||F.parens>0){H({type:"plus",value:S});continue}H({type:"plus",value:Ue});continue}if(S==="@"){if(y.noextglob!==!0&&z()==="("&&z(2)!=="?"){H({type:"at",extglob:!0,value:S,output:""});continue}H({type:"text",value:S});continue}if(S!=="*"){(S==="$"||S==="^")&&(S=`\\${S}`);const x=o.exec(Ze());x&&(S+=x[0],F.index+=x[0].length),H({type:"text",value:S});continue}if(w&&(w.type==="globstar"||w.star===!0)){w.type="star",w.star=!0,w.value+=S,w.output=W,F.backtrack=!0,F.globstar=!0,Ne(S);continue}let P=Ze();if(y.noextglob!==!0&&/^\([^?]/.test(P)){cn("star",S);continue}if(w.type==="star"){if(y.noglobstar===!0){Ne(S);continue}const x=w.prev,K=x.prev,oe=x.type==="slash"||x.type==="bos",de=K&&(K.type==="star"||K.type==="globstar");if(y.bash===!0&&(!oe||P[0]&&P[0]!=="/")){H({type:"star",value:S,output:""});continue}const X=F.braces>0&&(x.type==="comma"||x.type==="brace"),qe=Fe.length&&(x.type==="pipe"||x.type==="paren");if(!oe&&x.type!=="paren"&&!X&&!qe){H({type:"star",value:S,output:""});continue}for(;P.slice(0,3)==="/**";){const Ve=f[F.index+4];if(Ve&&Ve!=="/")break;P=P.slice(3),Ne("/**",3)}if(x.type==="bos"&&xe()){w.type="globstar",w.value+=S,w.output=ve(y),F.output=w.output,F.globstar=!0,Ne(S);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&!de&&xe()){F.output=F.output.slice(0,-(x.output+w.output).length),x.output=`(?:${x.output}`,w.type="globstar",w.output=ve(y)+(y.strictSlashes?")":"|$)"),w.value+=S,F.globstar=!0,F.output+=x.output+w.output,Ne(S);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&P[0]==="/"){const Ve=P[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(x.output+w.output).length),x.output=`(?:${x.output}`,w.type="globstar",w.output=`${ve(y)}${Ce}|${Ce}${Ve})`,w.value+=S,F.output+=x.output+w.output,F.globstar=!0,Ne(S+ie()),H({type:"slash",value:"/",output:""});continue}if(x.type==="bos"&&P[0]==="/"){w.type="globstar",w.value+=S,w.output=`(?:^|${Ce}|${ve(y)}${Ce})`,F.output=w.output,F.globstar=!0,Ne(S+ie()),H({type:"slash",value:"/",output:""});continue}if(X&&P[0]==="/"){w.type="globstar",w.value+=S,w.output=`(?:^|${Ce}|${ve(y)}${Ce})`,F.output+=w.output,F.globstar=!0,Ne(S+ie()),H({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-w.output.length),w.type="globstar",w.output=ve(y),w.value+=S,F.output+=w.output,F.globstar=!0,Ne(S);continue}const te={type:"star",value:S,output:W};if(y.bash===!0){te.output=".*?",(w.type==="bos"||w.type==="slash")&&(te.output=Oe+te.output),H(te);continue}if(w&&(w.type==="bracket"||w.type==="paren")&&y.regex===!0){te.output=S,H(te);continue}(F.index===F.start||w.type==="slash"||w.type==="dot")&&(w.type==="dot"?(F.output+=bt,w.output+=bt):y.dot===!0?(F.output+=Ke,w.output+=Ke):(F.output+=Oe,w.output+=Oe),z()!=="*"&&(F.output+=He,w.output+=He)),H(te)}for(;F.brackets>0;){if(y.strictBrackets===!0)throw new SyntaxError(l("closing","]"));F.output=n.escapeLast(F.output,"["),ht("brackets")}for(;F.parens>0;){if(y.strictBrackets===!0)throw new SyntaxError(l("closing",")"));F.output=n.escapeLast(F.output,"("),ht("parens")}for(;F.braces>0;){if(y.strictBrackets===!0)throw new SyntaxError(l("closing","}"));F.output=n.escapeLast(F.output,"{"),ht("braces")}if(y.strictSlashes!==!0&&(w.type==="star"||w.type==="bracket")&&H({type:"maybe_slash",value:"",output:`${Ce}?`}),F.backtrack===!0){F.output="";for(const P of F.tokens)F.output+=P.output!=null?P.output:P.value,P.suffix&&(F.output+=P.suffix)}return F},"parse");return $.fastpaths=(f,E)=>{const y={...E},C=typeof y.maxLength=="number"?Math.min(s,y.maxLength):s,A=f.length;if(A>C)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${C}`);f=a[f]||f;const{DOT_LITERAL:N,SLASH_LITERAL:k,ONE_CHAR:_,DOTS_SLASH:U,NO_DOT:be,NO_DOTS:he,NO_DOTS_SLASH:Ue,STAR:Ce,START_ANCHOR:He}=r.globChars(y.windows),se=y.dot?he:be,Qe=y.dot?Ue:be,bt=y.capture?"":"?:",Ke={negated:!1,prefix:""};let J=y.bash===!0?".*?":Ce;y.capture&&(J=`(${J})`);const We=e(Oe=>Oe.noglobstar===!0?J:`(${bt}(?:(?!${He}${Oe.dot?U:N}).)*?)`,"globstar"),vt=e(Oe=>{switch(Oe){case"*":return`${se}${_}${J}`;case".*":return`${N}${_}${J}`;case"*.*":return`${se}${J}${N}${_}${J}`;case"*/*":return`${se}${J}${k}${_}${Qe}${J}`;case"**":return se+We(y);case"**/*":return`(?:${se}${We(y)}${k})?${Qe}${_}${J}`;case"**/*.*":return`(?:${se}${We(y)}${k})?${Qe}${J}${N}${_}${J}`;case"**/.*":return`(?:${se}${We(y)}${k})?${N}${_}${J}`;default:{const M=/^(.*?)\.(\w+)$/.exec(Oe);if(!M)return;const W=vt(M[1]);return W?W+N+M[2]:void 0}}},"create"),we=n.removePrefix(f,Ke);let ve=vt(we);return ve&&y.strictSlashes!==!0&&(ve+=`${k}?`),ve},vs=$,vs}Me(va,"requireParse");var $s,qo;function $a(){if(qo)return $s;qo=1;var t=Object.defineProperty,e=Me((a,c)=>t(a,"name",{value:c,configurable:!0}),"h");const r=ba(),n=va(),s=Jr(),i=Xr(),o=e(a=>a&&typeof a=="object"&&!Array.isArray(a),"isObject"),u=e((a,c,l=!1)=>{if(Array.isArray(a)){const v=a.map($=>u($,c,l));return e($=>{for(const f of v){const E=f($);if(E)return E}return!1},"arrayMatcher")}const h=o(a)&&a.tokens&&a.input;if(a===""||typeof a!="string"&&!h)throw new TypeError("Expected pattern to be a non-empty string");const d=c||{},D=d.windows,b=h?u.compileRe(a,c):u.makeRe(a,c,!1,!0),p=b.state;delete b.state;let g=e(()=>!1,"isIgnored");if(d.ignore){const v={...c,ignore:null,onMatch:null,onResult:null};g=u(d.ignore,v,l)}const m=e((v,$=!1)=>{const{isMatch:f,match:E,output:y}=u.test(v,b,c,{glob:a,posix:D}),C={glob:a,state:p,regex:b,posix:D,input:v,output:y,match:E,isMatch:f};if(typeof d.onResult=="function"&&d.onResult(C),f===!1)return C.isMatch=!1,$?C:!1;e:if(g(v)){if(typeof d.onIgnore=="function"&&d.onIgnore(C)===i.UNIGNORE){C.isMatch=!0;break e}return C.isMatch=!1,$?C:!1}return typeof d.onMatch=="function"&&d.onMatch(C),$?C:!0},"matcher");return l&&(m.state=p),m},"picomatch");return u.test=(a,c,l,{glob:h,posix:d}={})=>{if(typeof a!="string")throw new TypeError("Expected input to be a string");if(a==="")return{isMatch:!1,output:""};const D=l||{},b=D.format||(d?s.toPosixSlashes:null);let p=a===h,g=p&&b?b(a):a;return p===!1&&(g=b?b(a):a,p=g===h),(p===!1||D.capture===!0)&&(D.matchBase===!0||D.basename===!0?p=u.matchBase(a,c,l,d):p=c.exec(g)),{isMatch:!!p,match:p,output:g}},u.matchBase=(a,c,l)=>(c instanceof RegExp?c:u.makeRe(c,l)).test(s.basename(a)),u.isMatch=(a,c,l)=>u(c,l)(a),u.parse=(a,c)=>Array.isArray(a)?a.map(l=>u.parse(l,c)):n(a,{...c,fastpaths:!1}),u.scan=(a,c)=>r(a,c),u.compileRe=(a,c,l=!1,h=!1)=>{if(l===!0)return a.output;const d=c||{},D=d.contains?"":"^",b=d.contains?"":"$";let p=`${D}(?:${a.output})${b}`;a&&a.negated===!0&&(p=`^(?!${p}).*$`);const g=u.toRegex(p,c);return h===!0&&(g.state=a),g},u.makeRe=(a,c={},l=!1,h=!1)=>{if(!a||typeof a!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return c.fastpaths!==!1&&(a[0]==="."||a[0]==="*")&&(d.output=n.fastpaths(a,c)),d.output||(d=n(a,c)),u.compileRe(d,c,l,h)},u.toRegex=(a,c)=>{try{const l=c||{};return new RegExp(a,l.flags||(l.nocase?"i":""))}catch(l){if(c&&c.debug===!0)throw l;return/$^/}},u.constants=i,$s=u,$s}Me($a,"requirePicomatch$1");var As,Vo;function Aa(){if(Vo)return As;Vo=1;var t=Object.defineProperty,e=Me((i,o)=>t(i,"name",{value:o,configurable:!0}),"c");const r=$a(),n=Jr();function s(i,o,u=!1){return o&&(o.windows===null||o.windows===void 0)&&(o={...o,windows:n.isWindows()}),r(i,o,u)}return Me(s,"picomatch"),e(s,"picomatch"),Object.assign(s,r),As=s,As}Me(Aa,"requirePicomatch");var Vp=Aa();const nt=zr(Vp);var Yp=Object.defineProperty,R=(t,e)=>Yp(t,"name",{value:e,configurable:!0});const zp=Y(import.meta.url),Dr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Qr=R(t=>{if(typeof Dr<"u"&&Dr.versions&&Dr.versions.node){const[e,r]=Dr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Dr.getBuiltinModule(t)}return zp(t)},"__cjs_getBuiltinModule"),Yo=Qr("fs"),Xp={...Yo,default:Yo},{statSync:Jp,stat:Qp,realpathSync:Zp,realpath:ed,readdirSync:td,readdir:rd}=Qr("fs"),{sep:Ca,basename:nd,dirname:ci,resolve:wa,normalize:sd,relative:id,posix:St,isAbsolute:od}=Qr("path"),{fileURLToPath:ud}=Qr("url"),{createRequire:ad}=Qr("module");var cd=Object.defineProperty,I=R((t,e)=>cd(t,"name",{value:e,configurable:!0}),"r"),zo=ad(import.meta.url);function wi(t){let e=sd(t);return e.length>1&&e[e.length-1]===Ca&&(e=e.substring(0,e.length-1)),e}R(wi,"M$1");I(wi,"cleanPath");const ld=/[\\/]/g;function Kn(t,e){return t.replace(ld,e)}R(Kn,"D$1");I(Kn,"convertSlashes");const fd=/^[a-z]:[\\/]$/i;function Si(t){return t==="/"||fd.test(t)}R(Si,"T$1");I(Si,"isRootDirectory");function Mr(t,e){const{resolvePaths:r,normalizePath:n,pathSeparator:s}=e,i=process.platform==="win32"&&t.includes("/")||t.startsWith(".");if(r&&(t=wa(t)),(n||i)&&(t=wi(t)),t===".")return"";const o=t[t.length-1]!==s;return Kn(o?t+s:t,s)}R(Mr,"w");I(Mr,"normalizePath");function Wn(t,e){return e+t}R(Wn,"P");I(Wn,"joinPathWithBasePath");function Fi(t,e){return function(r,n){return n.startsWith(t)?n.slice(t.length)+r:Kn(id(t,n),e.pathSeparator)+e.pathSeparator+r}}R(Fi,"X");I(Fi,"joinPathWithRelativePath");function Oi(t){return t}R(Oi,"H");I(Oi,"joinPath");function Ni(t,e,r){return e+t+r}R(Ni,"U$1");I(Ni,"joinDirectoryPath");function Li(t,e){const{relativePaths:r,includeBasePath:n}=e;return r&&t?Fi(t,e):n?Wn:Oi}R(Li,"J");I(Li,"build$7");function xi(t){return function(e,r){r.push(e.substring(t.length)||".")}}R(xi,"K$1");I(xi,"pushDirectoryWithRelativePath");function ki(t){return function(e,r,n){const s=e.substring(t.length)||".";n.every(i=>i(s,!0))&&r.push(s)}}R(ki,"V");I(ki,"pushDirectoryFilterWithRelativePath");const hd=I((t,e)=>{e.push(t||".")},"pushDirectory"),pd=I((t,e,r)=>{const n=t||".";r.every(s=>s(n,!0))&&e.push(n)},"pushDirectoryFilter"),dd=I(()=>{},"empty$2");function Pi(t,e){const{includeDirs:r,filters:n,relativePaths:s}=e;return r?s?n&&n.length?ki(t):xi(t):n&&n.length?pd:hd:dd}R(Pi,"st$1");I(Pi,"build$6");const md=I((t,e,r,n)=>{n.every(s=>s(t,!1))&&r.files++},"pushFileFilterAndCount"),gd=I((t,e,r,n)=>{n.every(s=>s(t,!1))&&e.push(t)},"pushFileFilter"),yd=I((t,e,r,n)=>{r.files++},"pushFileCount"),Dd=I((t,e)=>{e.push(t)},"pushFile"),Ed=I(()=>{},"empty$1");function Bi(t){const{excludeFiles:e,filters:r,onlyCounts:n}=t;return e?Ed:r&&r.length?n?md:gd:n?yd:Dd}R(Bi,"ut$1");I(Bi,"build$5");const bd=I(t=>t,"getArray"),vd=I(()=>[""].slice(0,0),"getArrayGroup");function Ii(t){return t.group?vd:bd}R(Ii,"ct$1");I(Ii,"build$4");const $d=I((t,e,r)=>{t.push({directory:e,files:r,dir:e})},"groupFiles"),Ad=I(()=>{},"empty");function _i(t){return t.group?$d:Ad}R(_i,"ft$1");I(_i,"build$3");const Cd=I(function(t,e,r){const{queue:n,fs:s,options:{suppressErrors:i}}=e;n.enqueue(),s.realpath(t,(o,u)=>{if(o)return n.dequeue(i?null:o,e);s.stat(u,(a,c)=>{if(a)return n.dequeue(i?null:a,e);if(c.isDirectory()&&qn(t,u,e))return n.dequeue(null,e);r(c,u),n.dequeue(null,e)})})},"resolveSymlinksAsync"),wd=I(function(t,e,r){const{queue:n,fs:s,options:{suppressErrors:i}}=e;n.enqueue();try{const o=s.realpathSync(t),u=s.statSync(o);if(u.isDirectory()&&qn(t,o,e))return;r(u,o)}catch(o){if(!i)throw o}},"resolveSymlinks");function Ri(t,e){return!t.resolveSymlinks||t.excludeSymlinks?null:e?wd:Cd}R(Ri,"gt$1");I(Ri,"build$2");function qn(t,e,r){if(r.options.useRealPaths)return Ti(e,r);let n=ci(t),s=1;for(;n!==r.root&&s<2;){const i=r.symlinks.get(n);i&&(i===e||i.startsWith(e)||e.startsWith(i))?s++:n=ci(n)}return r.symlinks.set(t,e),s>1}R(qn,"E$1");I(qn,"isRecursive");function Ti(t,e){return e.visited.includes(t+e.options.pathSeparator)}R(Ti,"dt$1");I(Ti,"isRecursiveUsingRealPaths");const Sd=I(t=>t.counts,"onlyCountsSync"),Fd=I(t=>t.groups,"groupsSync"),Od=I(t=>t.paths,"defaultSync"),Nd=I(t=>t.paths.slice(0,t.options.maxFiles),"limitFilesSync"),Ld=I((t,e,r)=>(zt(e,r,t.counts,t.options.suppressErrors),null),"onlyCountsAsync"),xd=I((t,e,r)=>(zt(e,r,t.paths,t.options.suppressErrors),null),"defaultAsync"),kd=I((t,e,r)=>(zt(e,r,t.paths.slice(0,t.options.maxFiles),t.options.suppressErrors),null),"limitFilesAsync"),Pd=I((t,e,r)=>(zt(e,r,t.groups,t.options.suppressErrors),null),"groupsAsync");function zt(t,e,r,n){e(t&&!n?t:null,r)}R(zt,"y");I(zt,"report");function ji(t,e){const{onlyCounts:r,group:n,maxFiles:s}=t;return r?e?Sd:Ld:n?e?Fd:Pd:s?e?Nd:kd:e?Od:xd}R(ji,"Et");I(ji,"build$1");const Sa={withFileTypes:!0},Bd=I((t,e,r,n,s)=>{if(t.queue.enqueue(),n<0)return t.queue.dequeue(null,t);const{fs:i}=t;t.visited.push(e),t.counts.directories++,i.readdir(e||".",Sa,(o,u=[])=>{s(u,r,n),t.queue.dequeue(t.options.suppressErrors?null:o,t)})},"walkAsync"),Id=I((t,e,r,n,s)=>{const{fs:i}=t;if(n<0)return;t.visited.push(e),t.counts.directories++;let o=[];try{o=i.readdirSync(e||".",Sa)}catch(u){if(!t.options.suppressErrors)throw u}s(o,r,n)},"walkSync");function Mi(t){return t?Id:Bd}R(Mi,"xt$1");I(Mi,"build");var _d=class{static{R(this,"_t")}static{I(this,"Queue")}count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,e){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,e),t&&(e.controller.abort(),this.onQueueEmpty=void 0))}},Rd=class{static{R(this,"At")}static{I(this,"Counter")}_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}},Td=class{static{R(this,"Wt")}static{I(this,"Aborter")}aborted=!1;abort(){this.aborted=!0}},Fa=class{static{R(this,"q")}static{I(this,"Walker")}root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(t,e,r){this.isSynchronous=!r,this.callbackInvoker=ji(e,this.isSynchronous),this.root=Mr(t,e),this.state={root:Si(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Rd,options:e,queue:new _d((n,s)=>this.callbackInvoker(s,n,r)),symlinks:new Map,visited:[""].slice(0,0),controller:new Td,fs:e.fs||Xp},this.joinPath=Li(this.root,e),this.pushDirectory=Pi(this.root,e),this.pushFile=Bi(e),this.getArray=Ii(e),this.groupFiles=_i(e),this.resolveSymlink=Ri(e,this.isSynchronous),this.walkDirectory=Mi(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=I((t,e,r)=>{const{paths:n,options:{filters:s,resolveSymlinks:i,excludeSymlinks:o,exclude:u,maxFiles:a,signal:c,useRealPaths:l,pathSeparator:h},controller:d}=this.state;if(d.aborted||c&&c.aborted||a&&n.length>a)return;const D=this.getArray(this.state.paths);for(let b=0;b<t.length;++b){const p=t[b];if(p.isFile()||p.isSymbolicLink()&&!i&&!o){const g=this.joinPath(p.name,e);this.pushFile(g,D,this.state.counts,s)}else if(p.isDirectory()){let g=Ni(p.name,e,this.state.options.pathSeparator);if(u&&u(p.name,g))continue;this.pushDirectory(g,n,s),this.walkDirectory(this.state,g,g,r-1,this.walk)}else if(this.resolveSymlink&&p.isSymbolicLink()){let g=Wn(p.name,e);this.resolveSymlink(g,this.state,(m,v)=>{if(m.isDirectory()){if(v=Mr(v,this.state.options),u&&u(p.name,l?v:g+h))return;this.walkDirectory(this.state,v,l?v:g+h,r-1,this.walk)}else{v=l?v:g;const $=nd(v),f=Mr(ci(v),this.state.options);v=this.joinPath($,f),this.pushFile(v,D,this.state.counts,s)}})}}this.groupFiles(this.state.groups,e,D)},"walk")};function Gi(t,e){return new Promise((r,n)=>{Vn(t,e,(s,i)=>{if(s)return n(s);r(i)})})}R(Gi,"Ct");I(Gi,"promise");function Vn(t,e,r){new Fa(t,e,r).start()}R(Vn,"x");I(Vn,"callback");function Ui(t,e){return new Fa(t,e).start()}R(Ui,"jt");I(Ui,"sync");var Xo=class{static{R(this,"F")}static{I(this,"APIBuilder")}constructor(t,e){this.root=t,this.options=e}withPromise(){return Gi(this.root,this.options)}withCallback(t){Vn(this.root,this.options,t)}sync(){return Ui(this.root,this.options)}};let Oa=null;try{zo.resolve("picomatch"),Oa=zo("picomatch")}catch{}var jd=class{static{R(this,"$t")}static{I(this,"Builder")}globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:Ca,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new Xo(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,r){return this.options={...this.options,...r},new Xo(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...r){const n=this.globFunction||Oa;if(!n)throw new Error("Please specify a glob function to use glob matching.");var s=this.globCache[e.join("\0")];return s||(s=n(e,...r),this.globCache[e.join("\0")]=s),this.options.filters.push(i=>s(i)),this}},Md=Object.defineProperty,me=R((t,e)=>Md(t,"name",{value:e,configurable:!0}),"a");const Gd=Array.isArray,Na=/\\/g,La=process.platform==="win32",Ud=/^(\/?\.\.)+$/;function Ln(t,e={}){const r=t.length,n=Array(r),s=Array(r);let i,o;for(i=0;i<r;i++){const u=Yn(t[i]);n[i]=u;const a=u.length,c=Array(a);for(o=0;o<a;o++)c[o]=nt(u[o],e);s[i]=c}return u=>{const a=u.split("/");if(a[0]===".."&&Ud.test(u))return!0;for(i=0;i<r;i++){const c=n[i],l=s[i],h=a.length,d=Math.min(h,c.length);for(o=0;o<d;){const D=c[o];if(D.includes("/"))return!0;if(!l[o](a[o]))break;if(!e.noglobstar&&D==="**")return!0;o++}if(o===h)return!0}return!1}}R(Ln,"D");me(Ln,"getPartialMatcher");const Hd=/^[A-Z]:\/$/i,Kd=La?t=>Hd.test(t):t=>t==="/";function xn(t,e,r){if(t===e||e.startsWith(`${t}/`)){if(r){const s=t.length+ +!Kd(t);return(i,o)=>i.slice(s,o?-1:void 0)||"."}const n=e.slice(t.length+1);return n?(s,i)=>{if(s===".")return n;const o=`${n}/${s}`;return i?o.slice(0,-1):o}:(s,i)=>i&&s!=="."?s.slice(0,-1):s}return r?n=>St.relative(t,n)||".":n=>St.relative(t,`${e}/${n}`)||"."}R(xn,"M");me(xn,"buildFormat");function Hi(t,e){if(e.startsWith(`${t}/`)){const r=e.slice(t.length+1);return n=>`${r}/${n}`}return r=>{const n=St.relative(t,`${e}/${r}`);return r[r.length-1]==="/"&&n!==""?`${n}/`:n||"."}}R(Hi,"at");me(Hi,"buildRelative");const Wd={parts:!0};function Yn(t){var e;const r=nt.scan(t,Wd);return!((e=r.parts)===null||e===void 0)&&e.length?r.parts:[t]}R(Yn,"N");me(Yn,"splitPattern");const qd=/\\(?![()[\]{}!+@])/g;function xa(t){return Pa(t)}R(xa,"ut");me(xa,"convertPosixPathToPattern");function ka(t){return Ba(t).replace(qd,"/")}R(ka,"ft");me(ka,"convertWin32PathToPattern");const Vd=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,Yd=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,Pa=me(t=>t.replace(Vd,"\\$&"),"escapePosixPath"),Ba=me(t=>t.replace(Yd,"\\$&"),"escapeWin32Path"),zd=La?Ba:Pa;function Ki(t,e){if(e?.caseSensitiveMatch===!1)return!0;const r=nt.scan(t);return r.isGlob||r.negated}R(Ki,"k");me(Ki,"isDynamicPattern");function Ft(...t){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...t)}R(Ft,"E");me(Ft,"log");function zn(t){return typeof t=="string"?[t]:t??[]}R(zn,"W");me(zn,"ensureStringArray");const Xd=/^(\/?\.\.)+/,Jd=/\\(?=[()[\]{}!*+?@|])/g;function Gr(t,e,r,n){var s;const i=e.cwd;let o=t;t[t.length-1]==="/"&&(o=t.slice(0,-1));const u=o.lastIndexOf("/"),a=(u===-1?o:o.slice(u+1)).startsWith("!(");o[o.length-1]!=="*"&&!a&&e.expandDirectories&&(o+="/**");const c=zd(i);o=od(o.replace(Jd,""))?St.relative(c,o):St.normalize(o);const l=(s=Xd.exec(o))===null||s===void 0?void 0:s[0],h=Yn(o);if(l){const D=(l.length+1)/3;let b=0;const p=c.split("/");for(;b<D&&h[b+D]===p[p.length+b-D];)o=o.slice(0,(D-b-1)*3)+o.slice((D-b)*3+h[b+D].length+1)||".",b++;const g=St.join(i,l.slice(b*3));g[0]!=="."&&r.root.length>g.length&&(r.root=g,r.depthOffset=-D+b)}if(!n&&r.depthOffset>=0){var d;(d=r.commonPath)!==null&&d!==void 0||(r.commonPath=h);const D=[],b=Math.min(r.commonPath.length,h.length);for(let p=0;p<b;p++){const g=h[p];if(g==="**"&&!h[p+1]){D.pop();break}if(p===h.length-1||g!==r.commonPath[p]||Ki(g))break;D.push(g)}r.depthOffset=D.length,r.commonPath=D,r.root=D.length>0?St.join(i,...D):i}return o}R(Gr,"$");me(Gr,"normalizePattern");function Wi(t,e,r){const n=[],s=[],i=[];for(const o of t.ignore)o&&(o[0]!=="!"||o[1]==="("?s.push(Gr(o,t,r,!0)):i.push(o.slice(1)));for(const o of e)o&&(o[0]!=="!"||o[1]==="("?n.push(Gr(o,t,r,!1)):(o[1]!=="!"||o[2]==="(")&&s.push(Gr(o.slice(1),t,r,!0)));return{match:n,ignore:s,unignore:i}}R(Wi,"St");me(Wi,"processPatterns");function qi(t,e){const r=t.cwd,n={root:r,depthOffset:0},s=Wi(t,e,n);t.debug&&Ft("internal processing patterns:",s);const{absolute:i,caseSensitiveMatch:o,debug:u,dot:a,followSymbolicLinks:c,onlyDirectories:l}=t,h=n.root.replace(Na,""),d={dot:a,nobrace:t.braceExpansion===!1,nocase:!o,noextglob:t.extglob===!1,noglobstar:t.globstar===!1,posix:!0},D=s.unignore.length>0,b=D?nt(s.unignore,d):void 0,p=D?Ln(s.unignore,d):void 0,g=nt(s.match,{...d,ignore:s.ignore,onIgnore:b?N=>b(N.output)&&nt.constants.UNIGNORE:void 0}),m=nt(s.ignore,d),v=Ln(s.match,d),$=xn(r,h,i),f=i?$:xn(r,h,!0),E=s.match.length>0&&s.match.every(N=>N==="**"||N==="**/*"),y=s.ignore.length>0||D||!E?(N,k)=>{const _=f(k,!0);return _==="."||p&&p(_)?!1:!v(_)||m(_)}:void 0;let C;t.deep!==void 0&&(C=Math.round(t.deep-n.depthOffset));const A=new jd({filters:[u?(N,k)=>{const _=$(N,k),U=g(_);return U&&Ft(`matched ${_}`),U}:(N,k)=>{const _=$(N,k);return g(_)}],exclude:u&&y?(N,k)=>{const _=y(N,k);return Ft(`${_?"skipped":"crawling"} ${k}`),_}:y,fs:t.fs,pathSeparator:"/",relativePaths:!i,resolvePaths:i,includeBasePath:i,resolveSymlinks:c,excludeSymlinks:!c,excludeFiles:l,includeDirs:l||!t.onlyFiles,maxDepth:C,signal:t.signal}).crawl(h);return t.debug&&Ft("internal properties:",{...n,root:h}),[A,r!==h&&!i&&Hi(r,h)]}R(qi,"vt");me(qi,"buildCrawler");function Xn(t,e){if(e)for(let r=t.length-1;r>=0;r--)t[r]=e(t[r]);return t}R(Xn,"U");me(Xn,"formatPaths");const Qd={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function Vi(t){const e={...Qd,...t};return e.cwd=(e.cwd instanceof URL?ud(e.cwd):wa(e.cwd)).replace(Na,"/"),e.ignore=zn(e.ignore),e.fs&&(e.fs={readdir:e.fs.readdir||rd,readdirSync:e.fs.readdirSync||td,realpath:e.fs.realpath||ed,realpathSync:e.fs.realpathSync||Zp,stat:e.fs.stat||Qp,statSync:e.fs.statSync||Jp}),e.debug&&Ft("globbing with options:",e),e}R(Vi,"pt");me(Vi,"getOptions");function Jn(t,e={}){var r;if(t&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");const n=Gd(t)||typeof t=="string",s=zn((r=n?t:t.patterns)!==null&&r!==void 0?r:"**/*"),i=Vi(n?e:t);return s.length>0?qi(i,s):[]}R(Jn,"G");me(Jn,"getCrawler");async function Yi(t,e){const[r,n]=Jn(t,e);return r?Xn(await r.withPromise(),n):[]}R(Yi,"bt");me(Yi,"glob");function zi(t,e){const[r,n]=Jn(t,e);return r?Xn(r.sync(),n):[]}R(zi,"xt");me(zi,"globSync");var Zd=Object.defineProperty,e0=(t,e)=>Zd(t,"name",{value:e,configurable:!0}),t0=Object.defineProperty,r0=e0((t,e)=>t0(t,"name",{value:e,configurable:!0}),"r");const $1=r0(async(t,e)=>await Yi(t,e),"glob");var n0=Object.defineProperty,s0=(t,e)=>n0(t,"name",{value:e,configurable:!0}),i0=Object.defineProperty,o0=s0((t,e)=>i0(t,"name",{value:e,configurable:!0}),"n");o0((t,e)=>zi(t,e),"globSync");var u0=Object.defineProperty,Qn=(t,e)=>u0(t,"name",{value:e,configurable:!0}),Cs,Jo;function Ia(){if(Jo)return Cs;Jo=1;var t=Object.defineProperty,e=Qn((r,n)=>t(r,"name",{value:n,configurable:!0}),"l");/*!
3
+ `;ua(t=>{const e=t.match(aa);if(!e||e.length===0)return null;const r=e.filter(s=>s===To).length,n=e.length-r;return r>n?To:Zh},"detect");ua((t,e)=>t.replaceAll(aa,e),"format");var ep=Object.defineProperty,ca=(t,e)=>ep(t,"name",{value:e,configurable:!0}),tp=Object.defineProperty,rp=ca((t,e)=>tp(t,"name",{value:e,configurable:!0}),"t");let On=class extends Error{static{ca(this,"i")}static{rp(this,"WalkError")}root;constructor(e,r){super(`${e instanceof Error?e.message:String(e)} for path "${r}"`),this.cause=e,this.root=r}get name(){return"WalkError"}set name(e){throw new Error("Cannot overwrite name of WalkError")}};var np=Object.defineProperty,la=(t,e)=>np(t,"name",{value:e,configurable:!0}),sp=Object.defineProperty,ip=la((t,e)=>sp(t,"name",{value:e,configurable:!0}),"g");const Nn=ip(t=>{const e=t.replace(/\.\*/g,".([^/]*)").replace(/\*\*/g,"(.*)").replace(/(?<!\.)\*(?!\*)/g,"([^/]*)").replace(/\?/g,"[^/]").replace(/\.(?!\*)/g,String.raw`\.`).replace(/\{/g,"(").replace(/\}/g,")").replace(/,/g,"|").replace(/\[!(.*?)\]/g,"[^$1]");return new RegExp(`^${e}$`)},"globToRegExp");var op=Object.defineProperty,up=la((t,e)=>op(t,"name",{value:e,configurable:!0}),"n");const mt=up((t,e,r,n)=>Array.isArray(e)&&e.length>0&&!e.some(s=>t.endsWith(s))||r&&!r.some(s=>s.test(t))?!1:!n?.some(s=>s.test(t)),"walkInclude");var ap=Object.defineProperty,Ai=(t,e)=>ap(t,"name",{value:e,configurable:!0});const cp=Y(import.meta.url),dr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,lp=Ai(t=>{if(typeof dr<"u"&&dr.versions&&dr.versions.node){const[e,r]=dr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return dr.getBuiltinModule(t)}return cp(t)},"__cjs_getBuiltinModule"),{readdir:fp,realpath:hp,stat:pp}=lp("node:fs/promises");var dp=Object.defineProperty,Re=Ai((t,e)=>dp(t,"name",{value:e,configurable:!0}),"r");const mp=Re(async t=>{const e=Sn(t),r=Vu(e),n=await pp(e);return{isDirectory:Re(()=>n.isDirectory(),"isDirectory"),isFile:Re(()=>n.isFile(),"isFile"),isSymbolicLink:Re(()=>n.isSymbolicLink(),"isSymbolicLink"),name:r,path:e}},"_createWalkEntry");async function*Un(t,{extensions:e,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:s=!0,includeSymlinks:i=!0,match:o,maxDepth:u=Number.POSITIVE_INFINITY,skip:a}={}){if(ne(t),u<0)return;const c=o?o.map(h=>typeof h=="string"?Nn(h):h):void 0,l=a?a.map(h=>typeof h=="string"?Nn(h):h):void 0;if(t=Ae(V(t)),n&&mt(t,e,c,l)&&(yield await mp(t)),!(u<1||!mt(t,void 0,void 0,l)))try{const h=await fp(t,{withFileTypes:!0});for(const d of h){let D=Vt(t,d.name);if(d.isSymbolicLink())if(r)D=await hp(D);else if(i&&mt(D,e,c,l)){yield{isDirectory:Re(()=>d.isDirectory(),"isDirectory"),isFile:Re(()=>d.isFile(),"isFile"),isSymbolicLink:Re(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:D};continue}else continue;d.isDirectory()?yield*Un(D,{extensions:e,followSymlinks:r,includeDirs:n,includeFiles:s,includeSymlinks:i,match:c,maxDepth:u-1,skip:l}):d.isFile()&&s&&mt(D,e,c,l)&&(yield{isDirectory:Re(()=>d.isDirectory(),"isDirectory"),isFile:Re(()=>d.isFile(),"isFile"),isSymbolicLink:Re(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:D})}}catch(h){throw h instanceof On?h:new On(h,t)}}Ai(Un,"g");Re(Un,"walk");var gp=Object.defineProperty,yp=(t,e)=>gp(t,"name",{value:e,configurable:!0}),Dp=Object.defineProperty,Ep=yp((t,e)=>Dp(t,"name",{value:e,configurable:!0}),"e");Ep(async(t,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const r=[];for await(const n of Un(t,e))r.push(n.path);return r},"collect");var bp=Object.defineProperty,Ci=(t,e)=>bp(t,"name",{value:e,configurable:!0});const vp=Y(import.meta.url),mr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$p=Ci(t=>{if(typeof mr<"u"&&mr.versions&&mr.versions.node){const[e,r]=mr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return mr.getBuiltinModule(t)}return vp(t)},"__cjs_getBuiltinModule"),{readdirSync:Ap,realpathSync:Cp,statSync:wp}=$p("node:fs");var Sp=Object.defineProperty,Te=Ci((t,e)=>Sp(t,"name",{value:e,configurable:!0}),"t");const Fp=Te(t=>{const e=Sn(t),r=wp(e);return{isDirectory:Te(()=>r.isDirectory(),"isDirectory"),isFile:Te(()=>r.isFile(),"isFile"),isSymbolicLink:Te(()=>r.isSymbolicLink(),"isSymbolicLink"),name:Vu(e),path:e}},"_createWalkEntry");function*Hn(t,{extensions:e,followSymlinks:r=!1,includeDirs:n=!0,includeFiles:s=!0,includeSymlinks:i=!0,match:o,maxDepth:u=Number.POSITIVE_INFINITY,skip:a}={}){if(ne(t),u<0)return;const c=o?o.map(h=>typeof h=="string"?Nn(h):h):void 0,l=a?a.map(h=>typeof h=="string"?Nn(h):h):void 0;if(t=Ae(V(t)),n&&mt(t,e,c,l)&&(yield Fp(t)),!(u<1||!mt(t,void 0,void 0,l)))try{const h=Ap(t,{withFileTypes:!0});for(const d of h){let D=Vt(t,d.name);if(d.isSymbolicLink())if(r)D=Cp(D);else if(i&&mt(D,e,c,l)){yield{isDirectory:Te(()=>d.isDirectory(),"isDirectory"),isFile:Te(()=>d.isFile(),"isFile"),isSymbolicLink:Te(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:Sn(D)};continue}else continue;d.isDirectory()?yield*Hn(D,{extensions:e,followSymlinks:r,includeDirs:n,includeFiles:s,includeSymlinks:i,match:c,maxDepth:u-1,skip:l}):d.isFile()&&s&&mt(D,e,c,l)&&(yield{isDirectory:Te(()=>d.isDirectory(),"isDirectory"),isFile:Te(()=>d.isFile(),"isFile"),isSymbolicLink:Te(()=>d.isSymbolicLink(),"isSymbolicLink"),name:d.name,path:Sn(D)})}}catch(h){throw h instanceof On?h:new On(h,t)}}Ci(Hn,"b");Te(Hn,"walkSync");var Op=Object.defineProperty,Np=(t,e)=>Op(t,"name",{value:e,configurable:!0}),Lp=Object.defineProperty,xp=Np((t,e)=>Lp(t,"name",{value:e,configurable:!0}),"n");xp((t,e={})=>{Array.isArray(e.extensions)||(e.extensions=["js","mjs","cjs","ts"]);const r=[];for(const n of Hn(t,e))r.push(n.path);return r},"collectSync");var kp=Object.defineProperty,fa=(t,e)=>kp(t,"name",{value:e,configurable:!0});const Pp=Y(import.meta.url),gr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ha=fa(t=>{if(typeof gr<"u"&&gr.versions&&gr.versions.node){const[e,r]=gr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return gr.getBuiltinModule(t)}return Pp(t)},"__cjs_getBuiltinModule"),{stat:Bp,lstat:Ip}=ha("node:fs/promises"),{fileURLToPath:_p}=ha("node:url");var Rp=Object.defineProperty,jo=fa((t,e)=>Rp(t,"name",{value:e,configurable:!0}),"n");const pa=jo(async(t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=e.cwd?V(e.cwd):process.cwd();let n=Ae(r);const{root:s}=Yu(n),i=V(e.stopAt??s),o=Ae(n,i),u=e.type??"file",a=jo(async function(l){return typeof t=="function"?[await t(l)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");e.allowSymlinks??=!0;const c=e.allowSymlinks?Bp:Ip;for(;n&&n!==o&&n!==s;){const l=await a(n);for(let h of l){if(h===Xu)return;if(h===void 0)continue;Buffer.isBuffer(h)?h=h.toString():h instanceof URL&&(h=_p(h));const d=zu(h)?h:Ae(n,h);try{const D=await c(d);if(u==="file"&&D.isFile()||u==="directory"&&D.isDirectory())return d}catch{}}n=ee(n)}},"findUp");var Tp=Object.defineProperty,da=(t,e)=>Tp(t,"name",{value:e,configurable:!0});const jp=Y(import.meta.url),yr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ma=da(t=>{if(typeof yr<"u"&&yr.versions&&yr.versions.node){const[e,r]=yr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return yr.getBuiltinModule(t)}return jp(t)},"__cjs_getBuiltinModule"),{statSync:Mp,lstatSync:Gp}=ma("node:fs"),{fileURLToPath:Up}=ma("node:url");var Hp=Object.defineProperty,Mo=da((t,e)=>Hp(t,"name",{value:e,configurable:!0}),"o");const ga=Mo((t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const r=e.cwd?V(e.cwd):process.cwd();let n=Ae(r);const{root:s}=Yu(n),i=V(e.stopAt??s),o=Ae(n,i),u=e.type??"file",a=Mo(function(l){return typeof t=="function"?[t(l)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]},"getMatchers");e.allowSymlinks??=!0;const c=e.allowSymlinks?Mp:Gp;for(;n&&n!==o&&n!==s;){for(let l of a(n)){if(l===Xu)return;if(l===void 0)continue;Buffer.isBuffer(l)?l=l.toString():l instanceof URL&&(l=Up(l));const h=zu(l)?l:Ae(n,l);try{const d=c(h);if(u==="file"&&d.isFile()||u==="directory"&&d.isDirectory())return h}catch{}}n=ee(n)}},"findUpSync");var Kp=Object.defineProperty,Yt=(t,e)=>Kp(t,"name",{value:e,configurable:!0}),Wp=Object.defineProperty,Kt=Yt((t,e)=>Wp(t,"name",{value:e,configurable:!0}),"t");function zr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}Yt(zr,"getDefaultExportFromCjs");Kt(zr,"getDefaultExportFromCjs");function ya(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}Yt(ya,"getDefaultExportFromNamespaceIfPresent");Kt(ya,"getDefaultExportFromNamespaceIfPresent");function Da(t){return t&&Object.prototype.hasOwnProperty.call(t,"default")&&Object.keys(t).length===1?t.default:t}Yt(Da,"getDefaultExportFromNamespaceIfNotNamed");Kt(Da,"getDefaultExportFromNamespaceIfNotNamed");function Ea(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=Kt(Yt(function n(){var s=!1;try{s=this instanceof n}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)},"a"),"a");r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:Kt(function(){return t[n]},"get")})}),r}Yt(Ea,"getAugmentedNamespace");Kt(Ea,"getAugmentedNamespace");var qp=Object.defineProperty,Me=(t,e)=>qp(t,"name",{value:e,configurable:!0}),Go={},Es,Uo;function Xr(){if(Uo)return Es;Uo=1;const t="[^\\\\/]",e=Symbol("unignore"),r="\\.",n="\\+",s="\\?",i="\\/",o="(?=.)",u="[^/]",a=`(?:${i}|$)`,c=`(?:^|${i})`,l=`${r}{1,2}${a}`,h=`(?!${r})`,d=`(?!${c}${l})`,D=`(?!${r}{0,1}${a})`,b=`(?!${l})`,p=`[^.${i}]`,g=`${u}*?`,m="/",v={DOT_LITERAL:r,PLUS_LITERAL:n,QMARK_LITERAL:s,SLASH_LITERAL:i,ONE_CHAR:o,QMARK:u,END_ANCHOR:a,DOTS_SLASH:l,NO_DOT:h,NO_DOTS:d,NO_DOT_SLASH:D,NO_DOTS_SLASH:b,QMARK_NO_DOT:p,STAR:g,START_ANCHOR:c,SEP:m},$={...v,SLASH_LITERAL:"[\\\\/]",QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${r}{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[\\\\/])${r}{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},f={__proto__:null,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"};return Es={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:f,UNIGNORE:e,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:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},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,extglobChars(E){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${E.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(E){return E===!0?$:v}},Es}Me(Xr,"requireConstants");var Ho;function Jr(){return Ho||(Ho=1,(function(t){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:r,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:s}=Xr();t.isObject=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),t.hasRegexChars=i=>n.test(i),t.isRegexChar=i=>i.length===1&&t.hasRegexChars(i),t.escapeRegex=i=>i.replace(s,"\\$1"),t.toPosixSlashes=i=>i.replace(e,"/"),t.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const i=navigator.platform.toLowerCase();return i==="win32"||i==="windows"}return process.platform?process.platform==="win32":!1},t.removeBackslashes=i=>i.replace(r,o=>o==="\\"?"":o),t.escapeLast=(i,o,u)=>{const a=i.lastIndexOf(o,u);return a===-1?i:i[a-1]==="\\"?t.escapeLast(i,o,a-1):`${i.slice(0,a)}\\${i.slice(a)}`},t.removePrefix=(i,o={})=>{let u=i;return u.startsWith("./")&&(u=u.slice(2),o.prefix="./"),u},t.wrapOutput=(i,o={},u={})=>{const a=u.contains?"":"^",c=u.contains?"":"$";let l=`${a}(?:${i})${c}`;return o.negated===!0&&(l=`(?:^(?!${l}).*$)`),l},t.basename=(i,{windows:o}={})=>{const u=i.split(o?/[\\/]/:"/"),a=u[u.length-1];return a===""?u[u.length-2]:a}})(Go)),Go}Me(Jr,"requireUtils");var bs,Ko;function ba(){if(Ko)return bs;Ko=1;var t=Object.defineProperty,e=Me((f,E)=>t(f,"name",{value:E,configurable:!0}),"k");const r=Jr(),{CHAR_ASTERISK:n,CHAR_AT:s,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:o,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:D,CHAR_QUESTION_MARK:b,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:m}=Xr(),v=e(f=>f===c||f===i,"isPathSeparator"),$=e(f=>{f.isPrefix!==!0&&(f.depth=f.isGlobstar?1/0:1)},"depth");return bs=e((f,E)=>{const y=E||{},C=f.length-1,A=y.parts===!0||y.scanToEnd===!0,N=[],k=[],_=[];let U=f,be=-1,he=0,Ue=0,Ce=!1,He=!1,se=!1,Qe=!1,bt=!1,Ke=!1,J=!1,We=!1,vt=!1,we=!1,ve=0,Oe,M,W={value:"",depth:0,isGlob:!1};const F=e(()=>be>=C,"eos"),Fe=e(()=>U.charCodeAt(be+1),"peek"),pe=e(()=>(Oe=M,U.charCodeAt(++be)),"advance");for(;be<C;){M=pe();let z;if(M===i){J=W.backslashes=!0,M=pe(),M===l&&(Ke=!0);continue}if(Ke===!0||M===l){for(ve++;F()!==!0&&(M=pe());){if(M===i){J=W.backslashes=!0,pe();continue}if(M===l){ve++;continue}if(Ke!==!0&&M===u&&(M=pe())===u){if(Ce=W.isBrace=!0,se=W.isGlob=!0,we=!0,A===!0)continue;break}if(Ke!==!0&&M===o){if(Ce=W.isBrace=!0,se=W.isGlob=!0,we=!0,A===!0)continue;break}if(M===p&&(ve--,ve===0)){Ke=!1,Ce=W.isBrace=!0,we=!0;break}}if(A===!0)continue;break}if(M===c){if(N.push(be),k.push(W),W={value:"",depth:0,isGlob:!1},we===!0)continue;if(Oe===u&&be===he+1){he+=2;continue}Ue=be+1;continue}if(y.noext!==!0&&(M===D||M===s||M===n||M===b||M===a)&&Fe()===h){if(se=W.isGlob=!0,Qe=W.isExtglob=!0,we=!0,M===a&&be===he&&(vt=!0),A===!0){for(;F()!==!0&&(M=pe());){if(M===i){J=W.backslashes=!0,M=pe();continue}if(M===g){se=W.isGlob=!0,we=!0;break}}continue}break}if(M===n){if(Oe===n&&(bt=W.isGlobstar=!0),se=W.isGlob=!0,we=!0,A===!0)continue;break}if(M===b){if(se=W.isGlob=!0,we=!0,A===!0)continue;break}if(M===d){for(;F()!==!0&&(z=pe());){if(z===i){J=W.backslashes=!0,pe();continue}if(z===m){He=W.isBracket=!0,se=W.isGlob=!0,we=!0;break}}if(A===!0)continue;break}if(y.nonegate!==!0&&M===a&&be===he){We=W.negated=!0,he++;continue}if(y.noparen!==!0&&M===h){if(se=W.isGlob=!0,A===!0){for(;F()!==!0&&(M=pe());){if(M===h){J=W.backslashes=!0,M=pe();continue}if(M===g){we=!0;break}}continue}break}if(se===!0){if(we=!0,A===!0)continue;break}}y.noext===!0&&(Qe=!1,se=!1);let ue=U,w="",S="";he>0&&(w=U.slice(0,he),U=U.slice(he),Ue-=he),ue&&se===!0&&Ue>0?(ue=U.slice(0,Ue),S=U.slice(Ue)):se===!0?(ue="",S=U):ue=U,ue&&ue!==""&&ue!=="/"&&ue!==U&&v(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),y.unescape===!0&&(S&&(S=r.removeBackslashes(S)),ue&&J===!0&&(ue=r.removeBackslashes(ue)));const xe={prefix:w,input:f,start:he,base:ue,glob:S,isBrace:Ce,isBracket:He,isGlob:se,isExtglob:Qe,isGlobstar:bt,negated:We,negatedExtglob:vt};if(y.tokens===!0&&(xe.maxDepth=0,v(M)||k.push(W),xe.tokens=k),y.parts===!0||y.tokens===!0){let z;for(let ie=0;ie<N.length;ie++){const Ze=z?z+1:he,Ne=N[ie],ft=f.slice(Ze,Ne);y.tokens&&(ie===0&&he!==0?(k[ie].isPrefix=!0,k[ie].value=w):k[ie].value=ft,$(k[ie]),xe.maxDepth+=k[ie].depth),(ie!==0||ft!=="")&&_.push(ft),z=Ne}if(z&&z+1<f.length){const ie=f.slice(z+1);_.push(ie),y.tokens&&(k[k.length-1].value=ie,$(k[k.length-1]),xe.maxDepth+=k[k.length-1].depth)}xe.slashes=N,xe.parts=_}return xe},"scan"),bs}Me(ba,"requireScan");var vs,Wo;function va(){if(Wo)return vs;Wo=1;var t=Object.defineProperty,e=Me((f,E)=>t(f,"name",{value:E,configurable:!0}),"y");const r=Xr(),n=Jr(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:a}=r,c=e((f,E)=>typeof E.expandRange=="function"?E.expandRange(...f,E):(f.sort(),`[${f.join("-")}]`),"expandRange"),l=e((f,E)=>`Missing ${f}: "${E}" - use "\\\\${E}" to match literal characters`,"syntaxError"),h=e(f=>{const E=[];let y=0,C=0,A=0,N="",k=!1;for(const _ of f){if(k===!0){N+=_,k=!1;continue}if(_==="\\"){N+=_,k=!0;continue}if(_==='"'){A=A===1?0:1,N+=_;continue}if(A===0){if(_==="[")y++;else if(_==="]"&&y>0)y--;else if(y===0){if(_==="(")C++;else if(_===")"&&C>0)C--;else if(_==="|"&&C===0){E.push(N),N="";continue}}}N+=_}return E.push(N),E},"splitTopLevel"),d=e(f=>{let E=!1;for(const y of f){if(E===!0){E=!1;continue}if(y==="\\"){E=!0;continue}if(/[?*+@!()[\]{}]/.test(y))return!1}return!0},"isPlainBranch"),D=e(f=>{let E=f.trim(),y=!0;for(;y===!0;)y=!1,/^@\([^\\()[\]{}|]+\)$/.test(E)&&(E=E.slice(2,-1),y=!0);if(d(E))return E.replace(/\\(.)/g,"$1")},"normalizeSimpleBranch"),b=e(f=>{const E=f.map(D).filter(Boolean);for(let y=0;y<E.length;y++)for(let C=y+1;C<E.length;C++){const A=E[y],N=E[C],k=A[0];if(!(!k||A!==k.repeat(A.length)||N!==k.repeat(N.length))&&(A===N||A.startsWith(N)||N.startsWith(A)))return!0}return!1},"hasRepeatedCharPrefixOverlap"),p=e((f,E=!0)=>{if(f[0]!=="+"&&f[0]!=="*"||f[1]!=="(")return;let y=0,C=0,A=0,N=!1;for(let k=1;k<f.length;k++){const _=f[k];if(N===!0){N=!1;continue}if(_==="\\"){N=!0;continue}if(_==='"'){A=A===1?0:1;continue}if(A!==1){if(_==="["){y++;continue}if(_==="]"&&y>0){y--;continue}if(!(y>0)){if(_==="("){C++;continue}if(_===")"&&(C--,C===0))return E===!0&&k!==f.length-1?void 0:{type:f[0],body:f.slice(2,k),end:k}}}}},"parseRepeatedExtglob"),g=e(f=>{let E=0;const y=[];for(;E<f.length;){const C=p(f.slice(E),!1);if(!C||C.type!=="*")return;const A=h(C.body).map(k=>k.trim());if(A.length!==1)return;const N=D(A[0]);if(!N||N.length!==1)return;y.push(N),E+=C.end+1}return y.length<1?void 0:`${y.length===1?n.escapeRegex(y[0]):`[${y.map(C=>n.escapeRegex(C)).join("")}]`}*`},"getStarExtglobSequenceOutput"),m=e(f=>{let E=0,y=f.trim(),C=p(y);for(;C;)E++,y=C.body.trim(),C=p(y);return E},"repeatedExtglobRecursion"),v=e((f,E)=>{if(E.maxExtglobRecursion===!1)return{risky:!1};const y=typeof E.maxExtglobRecursion=="number"?E.maxExtglobRecursion:r.DEFAULT_MAX_EXTGLOB_RECURSION,C=h(f).map(A=>A.trim());if(C.length>1&&(C.some(A=>A==="")||C.some(A=>/^[*?]+$/.test(A))||b(C)))return{risky:!0};for(const A of C){const N=g(A);if(N)return{risky:!0,safeOutput:N};if(m(A)>y)return{risky:!0}}return{risky:!1}},"analyzeRepeatedExtglob"),$=e((f,E)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=a[f]||f;const y={...E},C=typeof y.maxLength=="number"?Math.min(s,y.maxLength):s;let A=f.length;if(A>C)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${C}`);const N={type:"bos",value:"",output:y.prepend||""},k=[N],_=y.capture?"":"?:",U=r.globChars(y.windows),be=r.extglobChars(U),{DOT_LITERAL:he,PLUS_LITERAL:Ue,SLASH_LITERAL:Ce,ONE_CHAR:He,DOTS_SLASH:se,NO_DOT:Qe,NO_DOT_SLASH:bt,NO_DOTS_SLASH:Ke,QMARK:J,QMARK_NO_DOT:We,STAR:vt,START_ANCHOR:we}=U,ve=e(P=>`(${_}(?:(?!${we}${P.dot?se:he}).)*?)`,"globstar"),Oe=y.dot?"":Qe,M=y.dot?J:We;let W=y.bash===!0?ve(y):vt;y.capture&&(W=`(${W})`),typeof y.noext=="boolean"&&(y.noextglob=y.noext);const F={input:f,index:-1,start:0,dot:y.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:k};f=n.removePrefix(f,F),A=f.length;const Fe=[],pe=[],ue=[];let w=N,S;const xe=e(()=>F.index===A-1,"eos"),z=F.peek=(P=1)=>f[F.index+P],ie=F.advance=()=>f[++F.index]||"",Ze=e(()=>f.slice(F.index+1),"remaining"),Ne=e((P="",te=0)=>{F.consumed+=P,F.index+=te},"consume"),ft=e(P=>{F.output+=P.output!=null?P.output:P.value,Ne(P.value)},"append"),vf=e(()=>{let P=1;for(;z()==="!"&&(z(2)!=="("||z(3)==="?");)ie(),F.start++,P++;return P%2===0?!1:(F.negated=!0,F.start++,!0)},"negate"),an=e(P=>{F[P]++,ue.push(P)},"increment"),ht=e(P=>{F[P]--,ue.pop()},"decrement"),H=e(P=>{if(w.type==="globstar"){const te=F.braces>0&&(P.type==="comma"||P.type==="brace"),x=P.extglob===!0||Fe.length&&(P.type==="pipe"||P.type==="paren");P.type!=="slash"&&P.type!=="paren"&&!te&&!x&&(F.output=F.output.slice(0,-w.output.length),w.type="star",w.value="*",w.output=W,F.output+=w.output)}if(Fe.length&&P.type!=="paren"&&(Fe[Fe.length-1].inner+=P.value),(P.value||P.output)&&ft(P),w&&w.type==="text"&&P.type==="text"){w.output=(w.output||w.value)+P.value,w.value+=P.value;return}P.prev=w,k.push(P),w=P},"push"),cn=e((P,te)=>{const x={...be[te],conditions:1,inner:""};x.prev=w,x.parens=F.parens,x.output=F.output,x.startIndex=F.index,x.tokensIndex=k.length;const K=(y.capture?"(":"")+x.open;an("parens"),H({type:P,value:te,output:F.output?"":He}),H({type:"paren",extglob:!0,value:ie(),output:K}),Fe.push(x)},"extglobOpen"),$f=e(P=>{const te=f.slice(P.startIndex,F.index+1),x=f.slice(P.startIndex+2,F.index),K=v(x,y);if((P.type==="plus"||P.type==="star")&&K.risky){const X=K.safeOutput?(P.output?"":He)+(y.capture?`(${K.safeOutput})`:K.safeOutput):void 0,qe=k[P.tokensIndex];qe.type="text",qe.value=te,qe.output=X||n.escapeRegex(te);for(let Ve=P.tokensIndex+1;Ve<k.length;Ve++)k[Ve].value="",k[Ve].output="",delete k[Ve].suffix;F.output=P.output+qe.output,F.backtrack=!0,H({type:"paren",extglob:!0,value:S,output:""}),ht("parens");return}let oe=P.close+(y.capture?")":""),de;if(P.type==="negate"){let X=W;if(P.inner&&P.inner.length>1&&P.inner.includes("/")&&(X=ve(y)),(X!==W||xe()||/^\)+$/.test(Ze()))&&(oe=P.close=`)$))${X}`),P.inner.includes("*")&&(de=Ze())&&/^\.[^\\/.]+$/.test(de)){const qe=$(de,{...E,fastpaths:!1}).output;oe=P.close=`)${qe})${X})`}P.prev.type==="bos"&&(F.negatedExtglob=!0)}H({type:"paren",extglob:!0,value:S,output:oe}),ht("parens")},"extglobClose");if(y.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let P=!1,te=f.replace(u,(x,K,oe,de,X,qe)=>de==="\\"?(P=!0,x):de==="?"?K?K+de+(X?J.repeat(X.length):""):qe===0?M+(X?J.repeat(X.length):""):J.repeat(oe.length):de==="."?he.repeat(oe.length):de==="*"?K?K+de+(X?W:""):W:K?x:`\\${x}`);return P===!0&&(y.unescape===!0?te=te.replace(/\\/g,""):te=te.replace(/\\+/g,x=>x.length%2===0?"\\\\":x?"\\":"")),te===f&&y.contains===!0?(F.output=f,F):(F.output=n.wrapOutput(te,F,E),F)}for(;!xe();){if(S=ie(),S==="\0")continue;if(S==="\\"){const x=z();if(x==="/"&&y.bash!==!0||x==="."||x===";")continue;if(!x){S+="\\",H({type:"text",value:S});continue}const K=/^\\+/.exec(Ze());let oe=0;if(K&&K[0].length>2&&(oe=K[0].length,F.index+=oe,oe%2!==0&&(S+="\\")),y.unescape===!0?S=ie():S+=ie(),F.brackets===0){H({type:"text",value:S});continue}}if(F.brackets>0&&(S!=="]"||w.value==="["||w.value==="[^")){if(y.posix!==!1&&S===":"){const x=w.value.slice(1);if(x.includes("[")&&(w.posix=!0,x.includes(":"))){const K=w.value.lastIndexOf("["),oe=w.value.slice(0,K),de=w.value.slice(K+2),X=i[de];if(X){w.value=oe+X,F.backtrack=!0,ie(),!N.output&&k.indexOf(w)===1&&(N.output=He);continue}}}(S==="["&&z()!==":"||S==="-"&&z()==="]")&&(S=`\\${S}`),S==="]"&&(w.value==="["||w.value==="[^")&&(S=`\\${S}`),y.posix===!0&&S==="!"&&w.value==="["&&(S="^"),w.value+=S,ft({value:S});continue}if(F.quotes===1&&S!=='"'){S=n.escapeRegex(S),w.value+=S,ft({value:S});continue}if(S==='"'){F.quotes=F.quotes===1?0:1,y.keepQuotes===!0&&H({type:"text",value:S});continue}if(S==="("){an("parens"),H({type:"paren",value:S});continue}if(S===")"){if(F.parens===0&&y.strictBrackets===!0)throw new SyntaxError(l("opening","("));const x=Fe[Fe.length-1];if(x&&F.parens===x.parens+1){$f(Fe.pop());continue}H({type:"paren",value:S,output:F.parens?")":"\\)"}),ht("parens");continue}if(S==="["){if(y.nobracket===!0||!Ze().includes("]")){if(y.nobracket!==!0&&y.strictBrackets===!0)throw new SyntaxError(l("closing","]"));S=`\\${S}`}else an("brackets");H({type:"bracket",value:S});continue}if(S==="]"){if(y.nobracket===!0||w&&w.type==="bracket"&&w.value.length===1){H({type:"text",value:S,output:`\\${S}`});continue}if(F.brackets===0){if(y.strictBrackets===!0)throw new SyntaxError(l("opening","["));H({type:"text",value:S,output:`\\${S}`});continue}ht("brackets");const x=w.value.slice(1);if(w.posix!==!0&&x[0]==="^"&&!x.includes("/")&&(S=`/${S}`),w.value+=S,ft({value:S}),y.literalBrackets===!1||n.hasRegexChars(x))continue;const K=n.escapeRegex(w.value);if(F.output=F.output.slice(0,-w.value.length),y.literalBrackets===!0){F.output+=K,w.value=K;continue}w.value=`(${_}${K}|${w.value})`,F.output+=w.value;continue}if(S==="{"&&y.nobrace!==!0){an("braces");const x={type:"brace",value:S,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};pe.push(x),H(x);continue}if(S==="}"){const x=pe[pe.length-1];if(y.nobrace===!0||!x){H({type:"text",value:S,output:S});continue}let K=")";if(x.dots===!0){const oe=k.slice(),de=[];for(let X=oe.length-1;X>=0&&(k.pop(),oe[X].type!=="brace");X--)oe[X].type!=="dots"&&de.unshift(oe[X].value);K=c(de,y),F.backtrack=!0}if(x.comma!==!0&&x.dots!==!0){const oe=F.output.slice(0,x.outputIndex),de=F.tokens.slice(x.tokensIndex);x.value=x.output="\\{",S=K="\\}",F.output=oe;for(const X of de)F.output+=X.output||X.value}H({type:"brace",value:S,output:K}),ht("braces"),pe.pop();continue}if(S==="|"){Fe.length>0&&Fe[Fe.length-1].conditions++,H({type:"text",value:S});continue}if(S===","){let x=S;const K=pe[pe.length-1];K&&ue[ue.length-1]==="braces"&&(K.comma=!0,x="|"),H({type:"comma",value:S,output:x});continue}if(S==="/"){if(w.type==="dot"&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",k.pop(),w=N;continue}H({type:"slash",value:S,output:Ce});continue}if(S==="."){if(F.braces>0&&w.type==="dot"){w.value==="."&&(w.output=he);const x=pe[pe.length-1];w.type="dots",w.output+=S,w.value+=S,x.dots=!0;continue}if(F.braces+F.parens===0&&w.type!=="bos"&&w.type!=="slash"){H({type:"text",value:S,output:he});continue}H({type:"dot",value:S,output:he});continue}if(S==="?"){if(!(w&&w.value==="(")&&y.noextglob!==!0&&z()==="("&&z(2)!=="?"){cn("qmark",S);continue}if(w&&w.type==="paren"){const x=z();let K=S;(w.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(Ze()))&&(K=`\\${S}`),H({type:"text",value:S,output:K});continue}if(y.dot!==!0&&(w.type==="slash"||w.type==="bos")){H({type:"qmark",value:S,output:We});continue}H({type:"qmark",value:S,output:J});continue}if(S==="!"){if(y.noextglob!==!0&&z()==="("&&(z(2)!=="?"||!/[!=<:]/.test(z(3)))){cn("negate",S);continue}if(y.nonegate!==!0&&F.index===0){vf();continue}}if(S==="+"){if(y.noextglob!==!0&&z()==="("&&z(2)!=="?"){cn("plus",S);continue}if(w&&w.value==="("||y.regex===!1){H({type:"plus",value:S,output:Ue});continue}if(w&&(w.type==="bracket"||w.type==="paren"||w.type==="brace")||F.parens>0){H({type:"plus",value:S});continue}H({type:"plus",value:Ue});continue}if(S==="@"){if(y.noextglob!==!0&&z()==="("&&z(2)!=="?"){H({type:"at",extglob:!0,value:S,output:""});continue}H({type:"text",value:S});continue}if(S!=="*"){(S==="$"||S==="^")&&(S=`\\${S}`);const x=o.exec(Ze());x&&(S+=x[0],F.index+=x[0].length),H({type:"text",value:S});continue}if(w&&(w.type==="globstar"||w.star===!0)){w.type="star",w.star=!0,w.value+=S,w.output=W,F.backtrack=!0,F.globstar=!0,Ne(S);continue}let P=Ze();if(y.noextglob!==!0&&/^\([^?]/.test(P)){cn("star",S);continue}if(w.type==="star"){if(y.noglobstar===!0){Ne(S);continue}const x=w.prev,K=x.prev,oe=x.type==="slash"||x.type==="bos",de=K&&(K.type==="star"||K.type==="globstar");if(y.bash===!0&&(!oe||P[0]&&P[0]!=="/")){H({type:"star",value:S,output:""});continue}const X=F.braces>0&&(x.type==="comma"||x.type==="brace"),qe=Fe.length&&(x.type==="pipe"||x.type==="paren");if(!oe&&x.type!=="paren"&&!X&&!qe){H({type:"star",value:S,output:""});continue}for(;P.slice(0,3)==="/**";){const Ve=f[F.index+4];if(Ve&&Ve!=="/")break;P=P.slice(3),Ne("/**",3)}if(x.type==="bos"&&xe()){w.type="globstar",w.value+=S,w.output=ve(y),F.output=w.output,F.globstar=!0,Ne(S);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&!de&&xe()){F.output=F.output.slice(0,-(x.output+w.output).length),x.output=`(?:${x.output}`,w.type="globstar",w.output=ve(y)+(y.strictSlashes?")":"|$)"),w.value+=S,F.globstar=!0,F.output+=x.output+w.output,Ne(S);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&P[0]==="/"){const Ve=P[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(x.output+w.output).length),x.output=`(?:${x.output}`,w.type="globstar",w.output=`${ve(y)}${Ce}|${Ce}${Ve})`,w.value+=S,F.output+=x.output+w.output,F.globstar=!0,Ne(S+ie()),H({type:"slash",value:"/",output:""});continue}if(x.type==="bos"&&P[0]==="/"){w.type="globstar",w.value+=S,w.output=`(?:^|${Ce}|${ve(y)}${Ce})`,F.output=w.output,F.globstar=!0,Ne(S+ie()),H({type:"slash",value:"/",output:""});continue}if(X&&P[0]==="/"){w.type="globstar",w.value+=S,w.output=`(?:^|${Ce}|${ve(y)}${Ce})`,F.output+=w.output,F.globstar=!0,Ne(S+ie()),H({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-w.output.length),w.type="globstar",w.output=ve(y),w.value+=S,F.output+=w.output,F.globstar=!0,Ne(S);continue}const te={type:"star",value:S,output:W};if(y.bash===!0){te.output=".*?",(w.type==="bos"||w.type==="slash")&&(te.output=Oe+te.output),H(te);continue}if(w&&(w.type==="bracket"||w.type==="paren")&&y.regex===!0){te.output=S,H(te);continue}(F.index===F.start||w.type==="slash"||w.type==="dot")&&(w.type==="dot"?(F.output+=bt,w.output+=bt):y.dot===!0?(F.output+=Ke,w.output+=Ke):(F.output+=Oe,w.output+=Oe),z()!=="*"&&(F.output+=He,w.output+=He)),H(te)}for(;F.brackets>0;){if(y.strictBrackets===!0)throw new SyntaxError(l("closing","]"));F.output=n.escapeLast(F.output,"["),ht("brackets")}for(;F.parens>0;){if(y.strictBrackets===!0)throw new SyntaxError(l("closing",")"));F.output=n.escapeLast(F.output,"("),ht("parens")}for(;F.braces>0;){if(y.strictBrackets===!0)throw new SyntaxError(l("closing","}"));F.output=n.escapeLast(F.output,"{"),ht("braces")}if(y.strictSlashes!==!0&&(w.type==="star"||w.type==="bracket")&&H({type:"maybe_slash",value:"",output:`${Ce}?`}),F.backtrack===!0){F.output="";for(const P of F.tokens)F.output+=P.output!=null?P.output:P.value,P.suffix&&(F.output+=P.suffix)}return F},"parse");return $.fastpaths=(f,E)=>{const y={...E},C=typeof y.maxLength=="number"?Math.min(s,y.maxLength):s,A=f.length;if(A>C)throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${C}`);f=a[f]||f;const{DOT_LITERAL:N,SLASH_LITERAL:k,ONE_CHAR:_,DOTS_SLASH:U,NO_DOT:be,NO_DOTS:he,NO_DOTS_SLASH:Ue,STAR:Ce,START_ANCHOR:He}=r.globChars(y.windows),se=y.dot?he:be,Qe=y.dot?Ue:be,bt=y.capture?"":"?:",Ke={negated:!1,prefix:""};let J=y.bash===!0?".*?":Ce;y.capture&&(J=`(${J})`);const We=e(Oe=>Oe.noglobstar===!0?J:`(${bt}(?:(?!${He}${Oe.dot?U:N}).)*?)`,"globstar"),vt=e(Oe=>{switch(Oe){case"*":return`${se}${_}${J}`;case".*":return`${N}${_}${J}`;case"*.*":return`${se}${J}${N}${_}${J}`;case"*/*":return`${se}${J}${k}${_}${Qe}${J}`;case"**":return se+We(y);case"**/*":return`(?:${se}${We(y)}${k})?${Qe}${_}${J}`;case"**/*.*":return`(?:${se}${We(y)}${k})?${Qe}${J}${N}${_}${J}`;case"**/.*":return`(?:${se}${We(y)}${k})?${N}${_}${J}`;default:{const M=/^(.*?)\.(\w+)$/.exec(Oe);if(!M)return;const W=vt(M[1]);return W?W+N+M[2]:void 0}}},"create"),we=n.removePrefix(f,Ke);let ve=vt(we);return ve&&y.strictSlashes!==!0&&(ve+=`${k}?`),ve},vs=$,vs}Me(va,"requireParse");var $s,qo;function $a(){if(qo)return $s;qo=1;var t=Object.defineProperty,e=Me((a,c)=>t(a,"name",{value:c,configurable:!0}),"h");const r=ba(),n=va(),s=Jr(),i=Xr(),o=e(a=>a&&typeof a=="object"&&!Array.isArray(a),"isObject"),u=e((a,c,l=!1)=>{if(Array.isArray(a)){const v=a.map($=>u($,c,l));return e($=>{for(const f of v){const E=f($);if(E)return E}return!1},"arrayMatcher")}const h=o(a)&&a.tokens&&a.input;if(a===""||typeof a!="string"&&!h)throw new TypeError("Expected pattern to be a non-empty string");const d=c||{},D=d.windows,b=h?u.compileRe(a,c):u.makeRe(a,c,!1,!0),p=b.state;delete b.state;let g=e(()=>!1,"isIgnored");if(d.ignore){const v={...c,ignore:null,onMatch:null,onResult:null};g=u(d.ignore,v,l)}const m=e((v,$=!1)=>{const{isMatch:f,match:E,output:y}=u.test(v,b,c,{glob:a,posix:D}),C={glob:a,state:p,regex:b,posix:D,input:v,output:y,match:E,isMatch:f};if(typeof d.onResult=="function"&&d.onResult(C),f===!1)return C.isMatch=!1,$?C:!1;e:if(g(v)){if(typeof d.onIgnore=="function"&&d.onIgnore(C)===i.UNIGNORE){C.isMatch=!0;break e}return C.isMatch=!1,$?C:!1}return typeof d.onMatch=="function"&&d.onMatch(C),$?C:!0},"matcher");return l&&(m.state=p),m},"picomatch");return u.test=(a,c,l,{glob:h,posix:d}={})=>{if(typeof a!="string")throw new TypeError("Expected input to be a string");if(a==="")return{isMatch:!1,output:""};const D=l||{},b=D.format||(d?s.toPosixSlashes:null);let p=a===h,g=p&&b?b(a):a;return p===!1&&(g=b?b(a):a,p=g===h),(p===!1||D.capture===!0)&&(D.matchBase===!0||D.basename===!0?p=u.matchBase(a,c,l,d):p=c.exec(g)),{isMatch:!!p,match:p,output:g}},u.matchBase=(a,c,l)=>(c instanceof RegExp?c:u.makeRe(c,l)).test(s.basename(a)),u.isMatch=(a,c,l)=>u(c,l)(a),u.parse=(a,c)=>Array.isArray(a)?a.map(l=>u.parse(l,c)):n(a,{...c,fastpaths:!1}),u.scan=(a,c)=>r(a,c),u.compileRe=(a,c,l=!1,h=!1)=>{if(l===!0)return a.output;const d=c||{},D=d.contains?"":"^",b=d.contains?"":"$";let p=`${D}(?:${a.output})${b}`;a&&a.negated===!0&&(p=`^(?!${p}).*$`);const g=u.toRegex(p,c);return h===!0&&(g.state=a),g},u.makeRe=(a,c={},l=!1,h=!1)=>{if(!a||typeof a!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return c.fastpaths!==!1&&(a[0]==="."||a[0]==="*")&&(d.output=n.fastpaths(a,c)),d.output||(d=n(a,c)),u.compileRe(d,c,l,h)},u.toRegex=(a,c)=>{try{const l=c||{};return new RegExp(a,l.flags||(l.nocase?"i":""))}catch(l){if(c&&c.debug===!0)throw l;return/$^/}},u.constants=i,$s=u,$s}Me($a,"requirePicomatch$1");var As,Vo;function Aa(){if(Vo)return As;Vo=1;var t=Object.defineProperty,e=Me((i,o)=>t(i,"name",{value:o,configurable:!0}),"c");const r=$a(),n=Jr();function s(i,o,u=!1){return o&&(o.windows===null||o.windows===void 0)&&(o={...o,windows:n.isWindows()}),r(i,o,u)}return Me(s,"picomatch"),e(s,"picomatch"),Object.assign(s,r),As=s,As}Me(Aa,"requirePicomatch");var Vp=Aa();const nt=zr(Vp);var Yp=Object.defineProperty,R=(t,e)=>Yp(t,"name",{value:e,configurable:!0});const zp=Y(import.meta.url),Dr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Qr=R(t=>{if(typeof Dr<"u"&&Dr.versions&&Dr.versions.node){const[e,r]=Dr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Dr.getBuiltinModule(t)}return zp(t)},"__cjs_getBuiltinModule"),Yo=Qr("fs"),Xp={...Yo,default:Yo},{statSync:Jp,stat:Qp,realpathSync:Zp,realpath:ed,readdirSync:td,readdir:rd}=Qr("fs"),{sep:Ca,basename:nd,dirname:ai,resolve:wa,normalize:sd,relative:id,posix:St,isAbsolute:od}=Qr("path"),{fileURLToPath:ud}=Qr("url"),{createRequire:ad}=Qr("module");var cd=Object.defineProperty,I=R((t,e)=>cd(t,"name",{value:e,configurable:!0}),"r"),zo=ad(import.meta.url);function wi(t){let e=sd(t);return e.length>1&&e[e.length-1]===Ca&&(e=e.substring(0,e.length-1)),e}R(wi,"M$1");I(wi,"cleanPath");const ld=/[\\/]/g;function Kn(t,e){return t.replace(ld,e)}R(Kn,"D$1");I(Kn,"convertSlashes");const fd=/^[a-z]:[\\/]$/i;function Si(t){return t==="/"||fd.test(t)}R(Si,"T$1");I(Si,"isRootDirectory");function Mr(t,e){const{resolvePaths:r,normalizePath:n,pathSeparator:s}=e,i=process.platform==="win32"&&t.includes("/")||t.startsWith(".");if(r&&(t=wa(t)),(n||i)&&(t=wi(t)),t===".")return"";const o=t[t.length-1]!==s;return Kn(o?t+s:t,s)}R(Mr,"w");I(Mr,"normalizePath");function Wn(t,e){return e+t}R(Wn,"P");I(Wn,"joinPathWithBasePath");function Fi(t,e){return function(r,n){return n.startsWith(t)?n.slice(t.length)+r:Kn(id(t,n),e.pathSeparator)+e.pathSeparator+r}}R(Fi,"X");I(Fi,"joinPathWithRelativePath");function Oi(t){return t}R(Oi,"H");I(Oi,"joinPath");function Ni(t,e,r){return e+t+r}R(Ni,"U$1");I(Ni,"joinDirectoryPath");function Li(t,e){const{relativePaths:r,includeBasePath:n}=e;return r&&t?Fi(t,e):n?Wn:Oi}R(Li,"J");I(Li,"build$7");function xi(t){return function(e,r){r.push(e.substring(t.length)||".")}}R(xi,"K$1");I(xi,"pushDirectoryWithRelativePath");function ki(t){return function(e,r,n){const s=e.substring(t.length)||".";n.every(i=>i(s,!0))&&r.push(s)}}R(ki,"V");I(ki,"pushDirectoryFilterWithRelativePath");const hd=I((t,e)=>{e.push(t||".")},"pushDirectory"),pd=I((t,e,r)=>{const n=t||".";r.every(s=>s(n,!0))&&e.push(n)},"pushDirectoryFilter"),dd=I(()=>{},"empty$2");function Pi(t,e){const{includeDirs:r,filters:n,relativePaths:s}=e;return r?s?n&&n.length?ki(t):xi(t):n&&n.length?pd:hd:dd}R(Pi,"st$1");I(Pi,"build$6");const md=I((t,e,r,n)=>{n.every(s=>s(t,!1))&&r.files++},"pushFileFilterAndCount"),gd=I((t,e,r,n)=>{n.every(s=>s(t,!1))&&e.push(t)},"pushFileFilter"),yd=I((t,e,r,n)=>{r.files++},"pushFileCount"),Dd=I((t,e)=>{e.push(t)},"pushFile"),Ed=I(()=>{},"empty$1");function Bi(t){const{excludeFiles:e,filters:r,onlyCounts:n}=t;return e?Ed:r&&r.length?n?md:gd:n?yd:Dd}R(Bi,"ut$1");I(Bi,"build$5");const bd=I(t=>t,"getArray"),vd=I(()=>[""].slice(0,0),"getArrayGroup");function Ii(t){return t.group?vd:bd}R(Ii,"ct$1");I(Ii,"build$4");const $d=I((t,e,r)=>{t.push({directory:e,files:r,dir:e})},"groupFiles"),Ad=I(()=>{},"empty");function _i(t){return t.group?$d:Ad}R(_i,"ft$1");I(_i,"build$3");const Cd=I(function(t,e,r){const{queue:n,fs:s,options:{suppressErrors:i}}=e;n.enqueue(),s.realpath(t,(o,u)=>{if(o)return n.dequeue(i?null:o,e);s.stat(u,(a,c)=>{if(a)return n.dequeue(i?null:a,e);if(c.isDirectory()&&qn(t,u,e))return n.dequeue(null,e);r(c,u),n.dequeue(null,e)})})},"resolveSymlinksAsync"),wd=I(function(t,e,r){const{queue:n,fs:s,options:{suppressErrors:i}}=e;n.enqueue();try{const o=s.realpathSync(t),u=s.statSync(o);if(u.isDirectory()&&qn(t,o,e))return;r(u,o)}catch(o){if(!i)throw o}},"resolveSymlinks");function Ri(t,e){return!t.resolveSymlinks||t.excludeSymlinks?null:e?wd:Cd}R(Ri,"gt$1");I(Ri,"build$2");function qn(t,e,r){if(r.options.useRealPaths)return Ti(e,r);let n=ai(t),s=1;for(;n!==r.root&&s<2;){const i=r.symlinks.get(n);i&&(i===e||i.startsWith(e)||e.startsWith(i))?s++:n=ai(n)}return r.symlinks.set(t,e),s>1}R(qn,"E$1");I(qn,"isRecursive");function Ti(t,e){return e.visited.includes(t+e.options.pathSeparator)}R(Ti,"dt$1");I(Ti,"isRecursiveUsingRealPaths");const Sd=I(t=>t.counts,"onlyCountsSync"),Fd=I(t=>t.groups,"groupsSync"),Od=I(t=>t.paths,"defaultSync"),Nd=I(t=>t.paths.slice(0,t.options.maxFiles),"limitFilesSync"),Ld=I((t,e,r)=>(zt(e,r,t.counts,t.options.suppressErrors),null),"onlyCountsAsync"),xd=I((t,e,r)=>(zt(e,r,t.paths,t.options.suppressErrors),null),"defaultAsync"),kd=I((t,e,r)=>(zt(e,r,t.paths.slice(0,t.options.maxFiles),t.options.suppressErrors),null),"limitFilesAsync"),Pd=I((t,e,r)=>(zt(e,r,t.groups,t.options.suppressErrors),null),"groupsAsync");function zt(t,e,r,n){e(t&&!n?t:null,r)}R(zt,"y");I(zt,"report");function ji(t,e){const{onlyCounts:r,group:n,maxFiles:s}=t;return r?e?Sd:Ld:n?e?Fd:Pd:s?e?Nd:kd:e?Od:xd}R(ji,"Et");I(ji,"build$1");const Sa={withFileTypes:!0},Bd=I((t,e,r,n,s)=>{if(t.queue.enqueue(),n<0)return t.queue.dequeue(null,t);const{fs:i}=t;t.visited.push(e),t.counts.directories++,i.readdir(e||".",Sa,(o,u=[])=>{s(u,r,n),t.queue.dequeue(t.options.suppressErrors?null:o,t)})},"walkAsync"),Id=I((t,e,r,n,s)=>{const{fs:i}=t;if(n<0)return;t.visited.push(e),t.counts.directories++;let o=[];try{o=i.readdirSync(e||".",Sa)}catch(u){if(!t.options.suppressErrors)throw u}s(o,r,n)},"walkSync");function Mi(t){return t?Id:Bd}R(Mi,"xt$1");I(Mi,"build");var _d=class{static{R(this,"_t")}static{I(this,"Queue")}count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,e){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,e),t&&(e.controller.abort(),this.onQueueEmpty=void 0))}},Rd=class{static{R(this,"At")}static{I(this,"Counter")}_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}},Td=class{static{R(this,"Wt")}static{I(this,"Aborter")}aborted=!1;abort(){this.aborted=!0}},Fa=class{static{R(this,"q")}static{I(this,"Walker")}root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(t,e,r){this.isSynchronous=!r,this.callbackInvoker=ji(e,this.isSynchronous),this.root=Mr(t,e),this.state={root:Si(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Rd,options:e,queue:new _d((n,s)=>this.callbackInvoker(s,n,r)),symlinks:new Map,visited:[""].slice(0,0),controller:new Td,fs:e.fs||Xp},this.joinPath=Li(this.root,e),this.pushDirectory=Pi(this.root,e),this.pushFile=Bi(e),this.getArray=Ii(e),this.groupFiles=_i(e),this.resolveSymlink=Ri(e,this.isSynchronous),this.walkDirectory=Mi(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=I((t,e,r)=>{const{paths:n,options:{filters:s,resolveSymlinks:i,excludeSymlinks:o,exclude:u,maxFiles:a,signal:c,useRealPaths:l,pathSeparator:h},controller:d}=this.state;if(d.aborted||c&&c.aborted||a&&n.length>a)return;const D=this.getArray(this.state.paths);for(let b=0;b<t.length;++b){const p=t[b];if(p.isFile()||p.isSymbolicLink()&&!i&&!o){const g=this.joinPath(p.name,e);this.pushFile(g,D,this.state.counts,s)}else if(p.isDirectory()){let g=Ni(p.name,e,this.state.options.pathSeparator);if(u&&u(p.name,g))continue;this.pushDirectory(g,n,s),this.walkDirectory(this.state,g,g,r-1,this.walk)}else if(this.resolveSymlink&&p.isSymbolicLink()){let g=Wn(p.name,e);this.resolveSymlink(g,this.state,(m,v)=>{if(m.isDirectory()){if(v=Mr(v,this.state.options),u&&u(p.name,l?v:g+h))return;this.walkDirectory(this.state,v,l?v:g+h,r-1,this.walk)}else{v=l?v:g;const $=nd(v),f=Mr(ai(v),this.state.options);v=this.joinPath($,f),this.pushFile(v,D,this.state.counts,s)}})}}this.groupFiles(this.state.groups,e,D)},"walk")};function Gi(t,e){return new Promise((r,n)=>{Vn(t,e,(s,i)=>{if(s)return n(s);r(i)})})}R(Gi,"Ct");I(Gi,"promise");function Vn(t,e,r){new Fa(t,e,r).start()}R(Vn,"x");I(Vn,"callback");function Ui(t,e){return new Fa(t,e).start()}R(Ui,"jt");I(Ui,"sync");var Xo=class{static{R(this,"F")}static{I(this,"APIBuilder")}constructor(t,e){this.root=t,this.options=e}withPromise(){return Gi(this.root,this.options)}withCallback(t){Vn(this.root,this.options,t)}sync(){return Ui(this.root,this.options)}};let Oa=null;try{zo.resolve("picomatch"),Oa=zo("picomatch")}catch{}var jd=class{static{R(this,"$t")}static{I(this,"Builder")}globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:Ca,filters:[]};globFunction;constructor(e){this.options={...this.options,...e},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(e){return this.options.pathSeparator=e,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(e){return this.options.maxDepth=e,this}withMaxFiles(e){return this.options.maxFiles=e,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:e=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=e,this.withFullPaths()}withAbortSignal(e){return this.options.signal=e,this}normalize(){return this.options.normalizePath=!0,this}filter(e){return this.options.filters.push(e),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(e){return this.options.exclude=e,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(e){return new Xo(e||".",this.options)}withGlobFunction(e){return this.globFunction=e,this}crawlWithOptions(e,r){return this.options={...this.options,...r},new Xo(e||".",this.options)}glob(...e){return this.globFunction?this.globWithOptions(e):this.globWithOptions(e,{dot:!0})}globWithOptions(e,...r){const n=this.globFunction||Oa;if(!n)throw new Error("Please specify a glob function to use glob matching.");var s=this.globCache[e.join("\0")];return s||(s=n(e,...r),this.globCache[e.join("\0")]=s),this.options.filters.push(i=>s(i)),this}},Md=Object.defineProperty,me=R((t,e)=>Md(t,"name",{value:e,configurable:!0}),"a");const Gd=Array.isArray,Na=/\\/g,La=process.platform==="win32",Ud=/^(\/?\.\.)+$/;function Ln(t,e={}){const r=t.length,n=Array(r),s=Array(r);let i,o;for(i=0;i<r;i++){const u=Yn(t[i]);n[i]=u;const a=u.length,c=Array(a);for(o=0;o<a;o++)c[o]=nt(u[o],e);s[i]=c}return u=>{const a=u.split("/");if(a[0]===".."&&Ud.test(u))return!0;for(i=0;i<r;i++){const c=n[i],l=s[i],h=a.length,d=Math.min(h,c.length);for(o=0;o<d;){const D=c[o];if(D.includes("/"))return!0;if(!l[o](a[o]))break;if(!e.noglobstar&&D==="**")return!0;o++}if(o===h)return!0}return!1}}R(Ln,"D");me(Ln,"getPartialMatcher");const Hd=/^[A-Z]:\/$/i,Kd=La?t=>Hd.test(t):t=>t==="/";function xn(t,e,r){if(t===e||e.startsWith(`${t}/`)){if(r){const s=t.length+ +!Kd(t);return(i,o)=>i.slice(s,o?-1:void 0)||"."}const n=e.slice(t.length+1);return n?(s,i)=>{if(s===".")return n;const o=`${n}/${s}`;return i?o.slice(0,-1):o}:(s,i)=>i&&s!=="."?s.slice(0,-1):s}return r?n=>St.relative(t,n)||".":n=>St.relative(t,`${e}/${n}`)||"."}R(xn,"M");me(xn,"buildFormat");function Hi(t,e){if(e.startsWith(`${t}/`)){const r=e.slice(t.length+1);return n=>`${r}/${n}`}return r=>{const n=St.relative(t,`${e}/${r}`);return r[r.length-1]==="/"&&n!==""?`${n}/`:n||"."}}R(Hi,"at");me(Hi,"buildRelative");const Wd={parts:!0};function Yn(t){var e;const r=nt.scan(t,Wd);return!((e=r.parts)===null||e===void 0)&&e.length?r.parts:[t]}R(Yn,"N");me(Yn,"splitPattern");const qd=/\\(?![()[\]{}!+@])/g;function xa(t){return Pa(t)}R(xa,"ut");me(xa,"convertPosixPathToPattern");function ka(t){return Ba(t).replace(qd,"/")}R(ka,"ft");me(ka,"convertWin32PathToPattern");const Vd=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,Yd=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,Pa=me(t=>t.replace(Vd,"\\$&"),"escapePosixPath"),Ba=me(t=>t.replace(Yd,"\\$&"),"escapeWin32Path"),zd=La?Ba:Pa;function Ki(t,e){if(e?.caseSensitiveMatch===!1)return!0;const r=nt.scan(t);return r.isGlob||r.negated}R(Ki,"k");me(Ki,"isDynamicPattern");function Ft(...t){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...t)}R(Ft,"E");me(Ft,"log");function zn(t){return typeof t=="string"?[t]:t??[]}R(zn,"W");me(zn,"ensureStringArray");const Xd=/^(\/?\.\.)+/,Jd=/\\(?=[()[\]{}!*+?@|])/g;function Gr(t,e,r,n){var s;const i=e.cwd;let o=t;t[t.length-1]==="/"&&(o=t.slice(0,-1));const u=o.lastIndexOf("/"),a=(u===-1?o:o.slice(u+1)).startsWith("!(");o[o.length-1]!=="*"&&!a&&e.expandDirectories&&(o+="/**");const c=zd(i);o=od(o.replace(Jd,""))?St.relative(c,o):St.normalize(o);const l=(s=Xd.exec(o))===null||s===void 0?void 0:s[0],h=Yn(o);if(l){const D=(l.length+1)/3;let b=0;const p=c.split("/");for(;b<D&&h[b+D]===p[p.length+b-D];)o=o.slice(0,(D-b-1)*3)+o.slice((D-b)*3+h[b+D].length+1)||".",b++;const g=St.join(i,l.slice(b*3));g[0]!=="."&&r.root.length>g.length&&(r.root=g,r.depthOffset=-D+b)}if(!n&&r.depthOffset>=0){var d;(d=r.commonPath)!==null&&d!==void 0||(r.commonPath=h);const D=[],b=Math.min(r.commonPath.length,h.length);for(let p=0;p<b;p++){const g=h[p];if(g==="**"&&!h[p+1]){D.pop();break}if(p===h.length-1||g!==r.commonPath[p]||Ki(g))break;D.push(g)}r.depthOffset=D.length,r.commonPath=D,r.root=D.length>0?St.join(i,...D):i}return o}R(Gr,"$");me(Gr,"normalizePattern");function Wi(t,e,r){const n=[],s=[],i=[];for(const o of t.ignore)o&&(o[0]!=="!"||o[1]==="("?s.push(Gr(o,t,r,!0)):i.push(o.slice(1)));for(const o of e)o&&(o[0]!=="!"||o[1]==="("?n.push(Gr(o,t,r,!1)):(o[1]!=="!"||o[2]==="(")&&s.push(Gr(o.slice(1),t,r,!0)));return{match:n,ignore:s,unignore:i}}R(Wi,"St");me(Wi,"processPatterns");function qi(t,e){const r=t.cwd,n={root:r,depthOffset:0},s=Wi(t,e,n);t.debug&&Ft("internal processing patterns:",s);const{absolute:i,caseSensitiveMatch:o,debug:u,dot:a,followSymbolicLinks:c,onlyDirectories:l}=t,h=n.root.replace(Na,""),d={dot:a,nobrace:t.braceExpansion===!1,nocase:!o,noextglob:t.extglob===!1,noglobstar:t.globstar===!1,posix:!0},D=s.unignore.length>0,b=D?nt(s.unignore,d):void 0,p=D?Ln(s.unignore,d):void 0,g=nt(s.match,{...d,ignore:s.ignore,onIgnore:b?N=>b(N.output)&&nt.constants.UNIGNORE:void 0}),m=nt(s.ignore,d),v=Ln(s.match,d),$=xn(r,h,i),f=i?$:xn(r,h,!0),E=s.match.length>0&&s.match.every(N=>N==="**"||N==="**/*"),y=s.ignore.length>0||D||!E?(N,k)=>{const _=f(k,!0);return _==="."||p&&p(_)?!1:!v(_)||m(_)}:void 0;let C;t.deep!==void 0&&(C=Math.round(t.deep-n.depthOffset));const A=new jd({filters:[u?(N,k)=>{const _=$(N,k),U=g(_);return U&&Ft(`matched ${_}`),U}:(N,k)=>{const _=$(N,k);return g(_)}],exclude:u&&y?(N,k)=>{const _=y(N,k);return Ft(`${_?"skipped":"crawling"} ${k}`),_}:y,fs:t.fs,pathSeparator:"/",relativePaths:!i,resolvePaths:i,includeBasePath:i,resolveSymlinks:c,excludeSymlinks:!c,excludeFiles:l,includeDirs:l||!t.onlyFiles,maxDepth:C,signal:t.signal}).crawl(h);return t.debug&&Ft("internal properties:",{...n,root:h}),[A,r!==h&&!i&&Hi(r,h)]}R(qi,"vt");me(qi,"buildCrawler");function Xn(t,e){if(e)for(let r=t.length-1;r>=0;r--)t[r]=e(t[r]);return t}R(Xn,"U");me(Xn,"formatPaths");const Qd={caseSensitiveMatch:!0,cwd:process.cwd(),debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function Vi(t){const e={...Qd,...t};return e.cwd=(e.cwd instanceof URL?ud(e.cwd):wa(e.cwd)).replace(Na,"/"),e.ignore=zn(e.ignore),e.fs&&(e.fs={readdir:e.fs.readdir||rd,readdirSync:e.fs.readdirSync||td,realpath:e.fs.realpath||ed,realpathSync:e.fs.realpathSync||Zp,stat:e.fs.stat||Qp,statSync:e.fs.statSync||Jp}),e.debug&&Ft("globbing with options:",e),e}R(Vi,"pt");me(Vi,"getOptions");function Jn(t,e={}){var r;if(t&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");const n=Gd(t)||typeof t=="string",s=zn((r=n?t:t.patterns)!==null&&r!==void 0?r:"**/*"),i=Vi(n?e:t);return s.length>0?qi(i,s):[]}R(Jn,"G");me(Jn,"getCrawler");async function Yi(t,e){const[r,n]=Jn(t,e);return r?Xn(await r.withPromise(),n):[]}R(Yi,"bt");me(Yi,"glob");function zi(t,e){const[r,n]=Jn(t,e);return r?Xn(r.sync(),n):[]}R(zi,"xt");me(zi,"globSync");var Zd=Object.defineProperty,e0=(t,e)=>Zd(t,"name",{value:e,configurable:!0}),t0=Object.defineProperty,r0=e0((t,e)=>t0(t,"name",{value:e,configurable:!0}),"r");const C1=r0(async(t,e)=>await Yi(t,e),"glob");var n0=Object.defineProperty,s0=(t,e)=>n0(t,"name",{value:e,configurable:!0}),i0=Object.defineProperty,o0=s0((t,e)=>i0(t,"name",{value:e,configurable:!0}),"n");o0((t,e)=>zi(t,e),"globSync");var u0=Object.defineProperty,Qn=(t,e)=>u0(t,"name",{value:e,configurable:!0}),Cs,Jo;function Ia(){if(Jo)return Cs;Jo=1;var t=Object.defineProperty,e=Qn((r,n)=>t(r,"name",{value:n,configurable:!0}),"l");/*!
4
4
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
5
5
  *
6
6
  * Copyright (c) 2014-2016, Jon Schlinkert.
@@ -10,7 +10,7 @@ import{createFilter as qu}from"@rollup/pluginutils";import Af,{createRequire as
10
10
  *
11
11
  * Copyright (c) 2014-2017, Jon Schlinkert.
12
12
  * Released under the MIT License.
13
- */var r=Ia(),n={"{":"}","(":")","[":"]"},s=e(function(o){if(o[0]==="!")return!0;for(var u=0,a=-2,c=-2,l=-2,h=-2,d=-2;u<o.length;){if(o[u]==="*"||o[u+1]==="?"&&/[\].+)]/.test(o[u])||c!==-1&&o[u]==="["&&o[u+1]!=="]"&&(c<u&&(c=o.indexOf("]",u)),c>u&&(d===-1||d>c||(d=o.indexOf("\\",u),d===-1||d>c)))||l!==-1&&o[u]==="{"&&o[u+1]!=="}"&&(l=o.indexOf("}",u),l>u&&(d=o.indexOf("\\",u),d===-1||d>l))||h!==-1&&o[u]==="("&&o[u+1]==="?"&&/[:!=]/.test(o[u+2])&&o[u+3]!==")"&&(h=o.indexOf(")",u),h>u&&(d=o.indexOf("\\",u),d===-1||d>h))||a!==-1&&o[u]==="("&&o[u+1]!=="|"&&(a<u&&(a=o.indexOf("|",u)),a!==-1&&o[a+1]!==")"&&(h=o.indexOf(")",a),h>a&&(d=o.indexOf("\\",a),d===-1||d>h))))return!0;if(o[u]==="\\"){var D=o[u+1];u+=2;var b=n[D];if(b){var p=o.indexOf(b,u);p!==-1&&(u=p+1)}if(o[u]==="!")return!0}else u++}return!1},"strictCheck"),i=e(function(o){if(o[0]==="!")return!0;for(var u=0;u<o.length;){if(/[*?{}()[\]]/.test(o[u]))return!0;if(o[u]==="\\"){var a=o[u+1];u+=2;var c=n[a];if(c){var l=o.indexOf(c,u);l!==-1&&(u=l+1)}if(o[u]==="!")return!0}else u++}return!1},"relaxedCheck");return ws=e(function(o,u){if(typeof o!="string"||o==="")return!1;if(r(o))return!0;var a=s;return u&&u.strict===!1&&(a=i),a(o)},"isGlob"),ws}Qn(Xi,"requireIsGlob");var a0=Object.defineProperty,Mt=(t,e)=>a0(t,"name",{value:e,configurable:!0});const c0=Y(import.meta.url),Er=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_a=Mt(t=>{if(typeof Er<"u"&&Er.versions&&Er.versions.node){const[e,r]=Er.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Er.getBuiltinModule(t)}return c0(t)},"__cjs_getBuiltinModule"),l0=_a("path"),f0=_a("os");var Ss,Zo;function Ra(){if(Zo)return Ss;Zo=1;var t=Object.defineProperty,e=Mt((l,h)=>t(l,"name",{value:h,configurable:!0}),"n"),r=Xi(),n=l0.posix.dirname,s=f0.platform()==="win32",i="/",o=/\\/g,u=/\\([!*?|[\](){}])/g;Ss=e(function(l,h){var d=Object.assign({flipBackslashes:!0},h);d.flipBackslashes&&s&&l.indexOf(i)<0&&(l=l.replace(o,i)),a(l)&&(l+=i),l+="a";do l=n(l);while(c(l));return l.replace(u,"$1")},"globParent");function a(l){var h=l.slice(-1),d;switch(h){case"}":d="{";break;case"]":d="[";break;default:return!1}var D=l.indexOf(d);return D<0?!1:l.slice(D+1,-1).includes(i)}Mt(a,"isEnclosure"),e(a,"isEnclosure");function c(l){return/\([^()]+$/.test(l)||l[0]==="{"||l[0]==="["||/[^\\][{[]/.test(l)?!0:r(l)}return Mt(c,"isGlobby"),e(c,"isGlobby"),Ss}Mt(Ra,"requireGlobParent");var h0=Ra();const p0=zr(h0);var d0=Object.defineProperty,m0=Mt((t,e)=>d0(t,"name",{value:e,configurable:!0}),"e");const A1=m0((t,e)=>p0(t,e),"globParent");var g0=Object.defineProperty,Ji=(t,e)=>g0(t,"name",{value:e,configurable:!0});const y0=Y(import.meta.url),br=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,D0=Ji(t=>{if(typeof br<"u"&&br.versions&&br.versions.node){const[e,r]=br.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return br.getBuiltinModule(t)}return y0(t)},"__cjs_getBuiltinModule"),{access:E0}=D0("node:fs/promises");var b0=Object.defineProperty,v0=Ji((t,e)=>b0(t,"name",{value:e,configurable:!0}),"o");async function ot(t,e=Ut){ne(t),t=V(t);try{return await E0(t,e),!0}catch{return!1}}Ji(ot,"m");v0(ot,"isAccessible");var $0=Object.defineProperty,Qi=(t,e)=>$0(t,"name",{value:e,configurable:!0});const A0=Y(import.meta.url),vr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,C0=Qi(t=>{if(typeof vr<"u"&&vr.versions&&vr.versions.node){const[e,r]=vr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return vr.getBuiltinModule(t)}return A0(t)},"__cjs_getBuiltinModule"),{accessSync:w0}=C0("node:fs");var S0=Object.defineProperty,F0=Qi((t,e)=>S0(t,"name",{value:e,configurable:!0}),"o");function ut(t,e=Ut){ne(t),t=V(t);try{return w0(t,e),!0}catch{return!1}}Qi(ut,"m");F0(ut,"isAccessibleSync");var O0=Object.defineProperty,N0=(t,e)=>O0(t,"name",{value:e,configurable:!0}),L0=Xi();const x0=zr(L0);var k0=Object.defineProperty,P0=N0((t,e)=>k0(t,"name",{value:e,configurable:!0}),"s");P0((t,e)=>x0(t,e),"isGlob");var B0=Object.defineProperty,I0=(t,e)=>B0(t,"name",{value:e,configurable:!0}),_0=Object.defineProperty,Ta=I0((t,e)=>_0(t,"name",{value:e,configurable:!0}),"i");Ta((t,e,r)=>{const n=nt(e,r);return Array.isArray(t)?t.some(s=>n(s)):n(t)},"match");Ta((t,e)=>{const r=nt(t,e);return n=>r(n)},"matcher");var R0=Object.defineProperty,Xt=(t,e)=>R0(t,"name",{value:e,configurable:!0});const T0=Y(import.meta.url),It=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ja=Xt(t=>{if(typeof It<"u"&&It.versions&&It.versions.node){const[e,r]=It.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return It.getBuiltinModule(t)}return T0(t)},"__cjs_getBuiltinModule"),{cwd:Zn}=It,{mkdir:j0,rename:M0,copyFile:G0,unlink:U0}=ja("node:fs/promises"),{mkdirSync:H0,renameSync:K0,copyFileSync:W0,unlinkSync:q0}=ja("node:fs");var V0=Object.defineProperty,Ma=Xt((t,e)=>V0(t,"name",{value:e,configurable:!0}),"o");let Y0=class extends Error{static{Xt(this,"a")}static{Ma(this,"SameDirectoryError")}constructor(e,r){super(`Source directory "${ee(e)}" does not match destination directory "${ee(r)}"`),this.name="SameDirectoryError"}};const Ga=Ma((t,e)=>{if(!t||!e)throw new Error("Source and destination paths must not be empty");if(ee(t)!==ee(e))throw new Y0(t,e)},"validateSameDirectory");var z0=Object.defineProperty,X0=Xt((t,e)=>z0(t,"name",{value:e,configurable:!0}),"m$1");const Ua=X0(async(t,e,{cwd:r,directoryMode:n,overwrite:s,validateDirectory:i})=>{if(r&&(t=Ae(r,t),e=Ae(r,e)),i&&Ga(t,e),!s&&await ot(e))throw new Error(`The destination file exists: ${e}`);await j0(ee(e),{mode:n,recursive:!0});try{await M0(t,e)}catch(o){if(o.code==="EXDEV")await G0(t,e),await U0(t);else throw o}},"internalMoveFile");var J0=Object.defineProperty,Q0=Xt((t,e)=>J0(t,"name",{value:e,configurable:!0}),"m");const Ha=Q0((t,e,{cwd:r,directoryMode:n,overwrite:s,validateDirectory:i})=>{if(r&&(t=Ae(r,t),e=Ae(r,e)),i&&Ga(t,e),!s&&ut(e))throw new Error(`The destination file exists: ${e}`);H0(ee(e),{mode:n,recursive:!0});try{K0(t,e)}catch(o){if(o.code==="EXDEV")W0(t,e),q0(t);else throw o}},"internalMoveFileSync");var Z0=Object.defineProperty,es=Xt((t,e)=>Z0(t,"name",{value:e,configurable:!0}),"i");es(async(t,e,r={})=>{const n={overwrite:!0,validateDirectory:!1,...r,cwd:r.cwd?V(r.cwd):Zn()};await Ua(t,e,n)},"move");es((t,e,r)=>{const n={overwrite:!0,validateDirectory:!1,...r};n.cwd=n.cwd?V(n.cwd):Zn(),Ha(t,e,n)},"moveSync");es(async(t,e,r)=>{const n={overwrite:!0,...r,validateDirectory:!0};n.cwd=n.cwd?V(n.cwd):Zn(),await Ua(t,e,n)},"rename");es((t,e,r)=>{const n={overwrite:!0,...r,validateDirectory:!0};n.cwd=n.cwd?V(n.cwd):Zn(),Ha(t,e,n)},"renameSync");var em=Object.defineProperty,Ka=(t,e)=>em(t,"name",{value:e,configurable:!0}),tm=Object.defineProperty,rm=Ka((t,e)=>tm(t,"name",{value:e,configurable:!0}),"o");let li=class extends Error{static{Ka(this,"n")}static{rm(this,"PermissionError")}constructor(e){super(`EPERM: Operation not permitted, ${e}`)}get code(){return"EPERM"}set code(e){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(e){throw new Error("Cannot overwrite name of PermissionError")}};var nm=Object.defineProperty,Wa=(t,e)=>nm(t,"name",{value:e,configurable:!0});const sm=Y(import.meta.url),$r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,qa=Wa(t=>{if(typeof $r<"u"&&$r.versions&&$r.versions.node){const[e,r]=$r.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return $r.getBuiltinModule(t)}return sm(t)},"__cjs_getBuiltinModule"),{readFile:im}=qa("node:fs/promises"),{unzip:om,brotliDecompress:um}=qa("node:zlib");var am=Object.defineProperty,Va=Wa((t,e)=>am(t,"name",{value:e,configurable:!0}),"n");const cm={brotli:um,gzip:om,none:Va((t,e)=>{e(null,t)},"none")},Zi=Va(async(t,e)=>{if(ne(t),t=V(t),!await ot(t))throw new li(`unable to read the non-accessible file: ${t}`);if(!await ot(t,Gn))throw new Error(`Unable to read the non-readable file: ${t}`);const{buffer:r,compression:n,encoding:s,flag:i}=e??{};return await im(t,i?{encoding:s,flag:i}:{encoding:s}).then(async o=>await new Promise((u,a)=>{cm[n??"none"](o,(c,l)=>{c?a(c):u(r?l:l.toString())})})).catch(o=>{throw o})},"readFile");var lm=Object.defineProperty,Ya=(t,e)=>lm(t,"name",{value:e,configurable:!0});const fm=Y(import.meta.url),Ar=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,za=Ya(t=>{if(typeof Ar<"u"&&Ar.versions&&Ar.versions.node){const[e,r]=Ar.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Ar.getBuiltinModule(t)}return fm(t)},"__cjs_getBuiltinModule"),{readFileSync:hm}=za("node:fs"),{unzipSync:pm,brotliDecompressSync:dm}=za("node:zlib");var mm=Object.defineProperty,Xa=Ya((t,e)=>mm(t,"name",{value:e,configurable:!0}),"r");const gm={brotli:dm,gzip:pm,none:Xa(t=>t,"none")},eo=Xa((t,e)=>{if(ne(t),t=V(t),!ut(t))throw new li(`unable to read the non-accessible file: ${t}`);if(!ut(t,Gn))throw new li(`invalid access to read file at: ${t}`);const{buffer:r,compression:n,encoding:s,flag:i}=e??{},o=hm(t,i?{encoding:s,flag:i}:{encoding:s}),u=gm[n??"none"],a=u(o);return r?a:a.toString()},"readFileSync");var ym=Object.defineProperty,Ja=(t,e)=>ym(t,"name",{value:e,configurable:!0}),Dm=Object.defineProperty,Em=Ja((t,e)=>Dm(t,"name",{value:e,configurable:!0}),"A"),bm=Object.defineProperty,to=Em((t,e)=>bm(t,"name",{value:e,configurable:!0}),"$"),vm=Object.defineProperty,$m=to((t,e)=>vm(t,"name",{value:e,configurable:!0}),"r$1");const Am=$m(t=>t.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
13
+ */var r=Ia(),n={"{":"}","(":")","[":"]"},s=e(function(o){if(o[0]==="!")return!0;for(var u=0,a=-2,c=-2,l=-2,h=-2,d=-2;u<o.length;){if(o[u]==="*"||o[u+1]==="?"&&/[\].+)]/.test(o[u])||c!==-1&&o[u]==="["&&o[u+1]!=="]"&&(c<u&&(c=o.indexOf("]",u)),c>u&&(d===-1||d>c||(d=o.indexOf("\\",u),d===-1||d>c)))||l!==-1&&o[u]==="{"&&o[u+1]!=="}"&&(l=o.indexOf("}",u),l>u&&(d=o.indexOf("\\",u),d===-1||d>l))||h!==-1&&o[u]==="("&&o[u+1]==="?"&&/[:!=]/.test(o[u+2])&&o[u+3]!==")"&&(h=o.indexOf(")",u),h>u&&(d=o.indexOf("\\",u),d===-1||d>h))||a!==-1&&o[u]==="("&&o[u+1]!=="|"&&(a<u&&(a=o.indexOf("|",u)),a!==-1&&o[a+1]!==")"&&(h=o.indexOf(")",a),h>a&&(d=o.indexOf("\\",a),d===-1||d>h))))return!0;if(o[u]==="\\"){var D=o[u+1];u+=2;var b=n[D];if(b){var p=o.indexOf(b,u);p!==-1&&(u=p+1)}if(o[u]==="!")return!0}else u++}return!1},"strictCheck"),i=e(function(o){if(o[0]==="!")return!0;for(var u=0;u<o.length;){if(/[*?{}()[\]]/.test(o[u]))return!0;if(o[u]==="\\"){var a=o[u+1];u+=2;var c=n[a];if(c){var l=o.indexOf(c,u);l!==-1&&(u=l+1)}if(o[u]==="!")return!0}else u++}return!1},"relaxedCheck");return ws=e(function(o,u){if(typeof o!="string"||o==="")return!1;if(r(o))return!0;var a=s;return u&&u.strict===!1&&(a=i),a(o)},"isGlob"),ws}Qn(Xi,"requireIsGlob");var a0=Object.defineProperty,Mt=(t,e)=>a0(t,"name",{value:e,configurable:!0});const c0=Y(import.meta.url),Er=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,_a=Mt(t=>{if(typeof Er<"u"&&Er.versions&&Er.versions.node){const[e,r]=Er.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Er.getBuiltinModule(t)}return c0(t)},"__cjs_getBuiltinModule"),l0=_a("path"),f0=_a("os");var Ss,Zo;function Ra(){if(Zo)return Ss;Zo=1;var t=Object.defineProperty,e=Mt((l,h)=>t(l,"name",{value:h,configurable:!0}),"n"),r=Xi(),n=l0.posix.dirname,s=f0.platform()==="win32",i="/",o=/\\/g,u=/\\([!*?|[\](){}])/g;Ss=e(function(l,h){var d=Object.assign({flipBackslashes:!0},h);d.flipBackslashes&&s&&l.indexOf(i)<0&&(l=l.replace(o,i)),a(l)&&(l+=i),l+="a";do l=n(l);while(c(l));return l.replace(u,"$1")},"globParent");function a(l){var h=l.slice(-1),d;switch(h){case"}":d="{";break;case"]":d="[";break;default:return!1}var D=l.indexOf(d);return D<0?!1:l.slice(D+1,-1).includes(i)}Mt(a,"isEnclosure"),e(a,"isEnclosure");function c(l){return/\([^()]+$/.test(l)||l[0]==="{"||l[0]==="["||/[^\\][{[]/.test(l)?!0:r(l)}return Mt(c,"isGlobby"),e(c,"isGlobby"),Ss}Mt(Ra,"requireGlobParent");var h0=Ra();const p0=zr(h0);var d0=Object.defineProperty,m0=Mt((t,e)=>d0(t,"name",{value:e,configurable:!0}),"e");const w1=m0((t,e)=>p0(t,e),"globParent");var g0=Object.defineProperty,Ji=(t,e)=>g0(t,"name",{value:e,configurable:!0});const y0=Y(import.meta.url),br=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,D0=Ji(t=>{if(typeof br<"u"&&br.versions&&br.versions.node){const[e,r]=br.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return br.getBuiltinModule(t)}return y0(t)},"__cjs_getBuiltinModule"),{access:E0}=D0("node:fs/promises");var b0=Object.defineProperty,v0=Ji((t,e)=>b0(t,"name",{value:e,configurable:!0}),"o");async function ot(t,e=Ut){ne(t),t=V(t);try{return await E0(t,e),!0}catch{return!1}}Ji(ot,"m");v0(ot,"isAccessible");var $0=Object.defineProperty,Qi=(t,e)=>$0(t,"name",{value:e,configurable:!0});const A0=Y(import.meta.url),vr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,C0=Qi(t=>{if(typeof vr<"u"&&vr.versions&&vr.versions.node){const[e,r]=vr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return vr.getBuiltinModule(t)}return A0(t)},"__cjs_getBuiltinModule"),{accessSync:w0}=C0("node:fs");var S0=Object.defineProperty,F0=Qi((t,e)=>S0(t,"name",{value:e,configurable:!0}),"o");function ut(t,e=Ut){ne(t),t=V(t);try{return w0(t,e),!0}catch{return!1}}Qi(ut,"m");F0(ut,"isAccessibleSync");var O0=Object.defineProperty,N0=(t,e)=>O0(t,"name",{value:e,configurable:!0}),L0=Xi();const x0=zr(L0);var k0=Object.defineProperty,P0=N0((t,e)=>k0(t,"name",{value:e,configurable:!0}),"s");P0((t,e)=>x0(t,e),"isGlob");var B0=Object.defineProperty,I0=(t,e)=>B0(t,"name",{value:e,configurable:!0}),_0=Object.defineProperty,Ta=I0((t,e)=>_0(t,"name",{value:e,configurable:!0}),"i");Ta((t,e,r)=>{const n=nt(e,r);return Array.isArray(t)?t.some(s=>n(s)):n(t)},"match");Ta((t,e)=>{const r=nt(t,e);return n=>r(n)},"matcher");var R0=Object.defineProperty,Xt=(t,e)=>R0(t,"name",{value:e,configurable:!0});const T0=Y(import.meta.url),It=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ja=Xt(t=>{if(typeof It<"u"&&It.versions&&It.versions.node){const[e,r]=It.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return It.getBuiltinModule(t)}return T0(t)},"__cjs_getBuiltinModule"),{cwd:Zn}=It,{mkdir:j0,rename:M0,copyFile:G0,unlink:U0}=ja("node:fs/promises"),{mkdirSync:H0,renameSync:K0,copyFileSync:W0,unlinkSync:q0}=ja("node:fs");var V0=Object.defineProperty,Ma=Xt((t,e)=>V0(t,"name",{value:e,configurable:!0}),"o");let Y0=class extends Error{static{Xt(this,"a")}static{Ma(this,"SameDirectoryError")}constructor(e,r){super(`Source directory "${ee(e)}" does not match destination directory "${ee(r)}"`),this.name="SameDirectoryError"}};const Ga=Ma((t,e)=>{if(!t||!e)throw new Error("Source and destination paths must not be empty");if(ee(t)!==ee(e))throw new Y0(t,e)},"validateSameDirectory");var z0=Object.defineProperty,X0=Xt((t,e)=>z0(t,"name",{value:e,configurable:!0}),"m$1");const Ua=X0(async(t,e,{cwd:r,directoryMode:n,overwrite:s,validateDirectory:i})=>{if(r&&(t=Ae(r,t),e=Ae(r,e)),i&&Ga(t,e),!s&&await ot(e))throw new Error(`The destination file exists: ${e}`);await j0(ee(e),{mode:n,recursive:!0});try{await M0(t,e)}catch(o){if(o.code==="EXDEV")await G0(t,e),await U0(t);else throw o}},"internalMoveFile");var J0=Object.defineProperty,Q0=Xt((t,e)=>J0(t,"name",{value:e,configurable:!0}),"m");const Ha=Q0((t,e,{cwd:r,directoryMode:n,overwrite:s,validateDirectory:i})=>{if(r&&(t=Ae(r,t),e=Ae(r,e)),i&&Ga(t,e),!s&&ut(e))throw new Error(`The destination file exists: ${e}`);H0(ee(e),{mode:n,recursive:!0});try{K0(t,e)}catch(o){if(o.code==="EXDEV")W0(t,e),q0(t);else throw o}},"internalMoveFileSync");var Z0=Object.defineProperty,es=Xt((t,e)=>Z0(t,"name",{value:e,configurable:!0}),"i");es(async(t,e,r={})=>{const n={overwrite:!0,validateDirectory:!1,...r,cwd:r.cwd?V(r.cwd):Zn()};await Ua(t,e,n)},"move");es((t,e,r)=>{const n={overwrite:!0,validateDirectory:!1,...r};n.cwd=n.cwd?V(n.cwd):Zn(),Ha(t,e,n)},"moveSync");es(async(t,e,r)=>{const n={overwrite:!0,...r,validateDirectory:!0};n.cwd=n.cwd?V(n.cwd):Zn(),await Ua(t,e,n)},"rename");es((t,e,r)=>{const n={overwrite:!0,...r,validateDirectory:!0};n.cwd=n.cwd?V(n.cwd):Zn(),Ha(t,e,n)},"renameSync");var em=Object.defineProperty,Ka=(t,e)=>em(t,"name",{value:e,configurable:!0}),tm=Object.defineProperty,rm=Ka((t,e)=>tm(t,"name",{value:e,configurable:!0}),"o");let ci=class extends Error{static{Ka(this,"n")}static{rm(this,"PermissionError")}constructor(e){super(`EPERM: Operation not permitted, ${e}`)}get code(){return"EPERM"}set code(e){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(e){throw new Error("Cannot overwrite name of PermissionError")}};var nm=Object.defineProperty,Wa=(t,e)=>nm(t,"name",{value:e,configurable:!0});const sm=Y(import.meta.url),$r=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,qa=Wa(t=>{if(typeof $r<"u"&&$r.versions&&$r.versions.node){const[e,r]=$r.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return $r.getBuiltinModule(t)}return sm(t)},"__cjs_getBuiltinModule"),{readFile:im}=qa("node:fs/promises"),{unzip:om,brotliDecompress:um}=qa("node:zlib");var am=Object.defineProperty,Va=Wa((t,e)=>am(t,"name",{value:e,configurable:!0}),"n");const cm={brotli:um,gzip:om,none:Va((t,e)=>{e(null,t)},"none")},Zi=Va(async(t,e)=>{if(ne(t),t=V(t),!await ot(t))throw new ci(`unable to read the non-accessible file: ${t}`);if(!await ot(t,Gn))throw new Error(`Unable to read the non-readable file: ${t}`);const{buffer:r,compression:n,encoding:s,flag:i}=e??{};return await im(t,i?{encoding:s,flag:i}:{encoding:s}).then(async o=>await new Promise((u,a)=>{cm[n??"none"](o,(c,l)=>{c?a(c):u(r?l:l.toString())})})).catch(o=>{throw o})},"readFile");var lm=Object.defineProperty,Ya=(t,e)=>lm(t,"name",{value:e,configurable:!0});const fm=Y(import.meta.url),Ar=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,za=Ya(t=>{if(typeof Ar<"u"&&Ar.versions&&Ar.versions.node){const[e,r]=Ar.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Ar.getBuiltinModule(t)}return fm(t)},"__cjs_getBuiltinModule"),{readFileSync:hm}=za("node:fs"),{unzipSync:pm,brotliDecompressSync:dm}=za("node:zlib");var mm=Object.defineProperty,Xa=Ya((t,e)=>mm(t,"name",{value:e,configurable:!0}),"r");const gm={brotli:dm,gzip:pm,none:Xa(t=>t,"none")},eo=Xa((t,e)=>{if(ne(t),t=V(t),!ut(t))throw new ci(`unable to read the non-accessible file: ${t}`);if(!ut(t,Gn))throw new ci(`invalid access to read file at: ${t}`);const{buffer:r,compression:n,encoding:s,flag:i}=e??{},o=hm(t,i?{encoding:s,flag:i}:{encoding:s}),u=gm[n??"none"],a=u(o);return r?a:a.toString()},"readFileSync");var ym=Object.defineProperty,Ja=(t,e)=>ym(t,"name",{value:e,configurable:!0}),Dm=Object.defineProperty,Em=Ja((t,e)=>Dm(t,"name",{value:e,configurable:!0}),"A"),bm=Object.defineProperty,to=Em((t,e)=>bm(t,"name",{value:e,configurable:!0}),"$"),vm=Object.defineProperty,$m=to((t,e)=>vm(t,"name",{value:e,configurable:!0}),"r$1");const Am=$m(t=>t.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
14
14
  `),"normalizeLF"),Cm=globalThis.process??Object.create(null),eu={versions:{}},tu=new Proxy(Cm,{get(t,e){if(e in t)return t[e];if(e in eu)return eu[e]}});var wm=Object.defineProperty,Sm=to((t,e)=>wm(t,"name",{value:e,configurable:!0}),"b");const Fm=Sm((t,e,r,n)=>{const s={column:0,line:-1,...t.start},i={...s,...t.end},o=s.line,u=s.column,a=i.line,c=i.column;let l=Math.max(o-(r+1),0),h=Math.min(e.length,a+n);o===-1&&(l=0),a===-1&&(h=e.length);const d=a-o,D={};if(d)for(let b=0;b<=d;b++){const p=b+o;if(!u)D[p]=!0;else if(b===0){const g=e[p-1]?.length;D[p]=[u,(g??0)-u+1]}else if(b===d)D[p]=[0,c];else{const g=e[p-b]?.length;D[p]=[0,g]}}else u===c?D[o]=u?[u,0]:!0:D[o]=[u,(c??0)-(u??0)];return{end:h,markerLines:D,start:l}},"getMarkerLines");var Om=Object.defineProperty,hn=to((t,e)=>Om(t,"name",{value:e,configurable:!0}),"t");const Nm=tu.platform==="win32"&&!tu.env?.WT_SESSION?">":"❯",Lm=hn((t,e,r)=>{const n={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...r,color:{gutter:hn(b=>b,"gutter"),marker:hn(b=>b,"marker"),message:hn(b=>b,"message"),...r?.color}},s=typeof e.start.column=="number";let i=Am(t).split(`
15
15
  `);typeof n.tabWidth=="number"&&(i=i.map(b=>b.replaceAll(" "," ".repeat(n.tabWidth))));const{end:o,markerLines:u,start:a}=Fm(e,i,n.linesAbove,n.linesBelow),c=String(o).length,{gutter:l,marker:h,message:d}=n.color;let D=i.slice(a,o).map((b,p)=>{const g=a+1+p,m=u[g],v=` ${String(g)}`.slice(-c),$=!u[g+1],f=` ${v}${n.showGutter?" |":""}`;if(m){let E="";if(Array.isArray(m)){const y=b.replaceAll(/[^\t]/g," ").slice(0,Math.max(m[0]-1,0)),C=m[1]||1;E=[`
16
16
  `,n.prefix+l(f.replaceAll(/\d/g," "))," ",y,h("^").repeat(C)].join(""),$&&n.message&&(E+=` ${d(n.message)}`)}return[n.prefix+h(Nm),l(f),b.length>0?` ${b}`:"",E].join("")}return`${n.prefix} ${l(f)}${b.length>0?` ${b}`:""}`}).join(`
@@ -18,18 +18,18 @@ import{createFilter as qu}from"@rollup/pluginutils";import Af,{createRequire as
18
18
  ${D}`),D},"codeFrame");var xm=Object.defineProperty,km=Ja((t,e)=>xm(t,"name",{value:e,configurable:!0}),"s"),Pm=Object.defineProperty,Bm=km((t,e)=>Pm(t,"name",{value:e,configurable:!0}),"o"),Im=Object.defineProperty,ro=Bm((t,e)=>Im(t,"name",{value:e,configurable:!0}),"l");const ru=ro((t,e)=>{let r=0,n=e.length-2;for(;r<n;){const s=r+(n-r>>1);if(t<e[s])n=s-1;else if(t>=e[s+1])r=s+1;else{r=s;break}}return r},"binarySearch"),_m=/\n|\r(?!\n)/,Rm=ro(t=>t.split(_m).reduce((e,r)=>(e.push(e.at(-1)+r.length+1),e),[0]),"getLineStartIndexes"),Tm=ro((t,e,r)=>{const n=r?.skipChecks??!1;if(!n&&(!Array.isArray(t)&&typeof t!="string"||(typeof t=="string"||Array.isArray(t))&&t.length===0))return{column:0,line:0};if(!n&&(typeof e!="number"||typeof t=="string"&&e>=t.length||Array.isArray(t)&&e+1>=t.at(-1)))return{column:0,line:0};if(typeof t=="string"){const i=Rm(t),o=ru(e,i);return{column:e-i[o]+1,line:o+1}}const s=ru(e,t);return{column:e-t[s]+1,line:s+1}},"indexToLineColumn");var jm=Object.defineProperty,Qa=(t,e)=>jm(t,"name",{value:e,configurable:!0}),Mm=Object.defineProperty,Gm=Qa((t,e)=>Mm(t,"name",{value:e,configurable:!0}),"i");let Um=class extends Error{static{Qa(this,"t")}static{Gm(this,"JSONError")}fileName;codeFrame;name="JSONError";#n;constructor(e){super(),this.#n=e}get message(){return`${this.#n}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
19
19
 
20
20
  ${this.codeFrame}
21
- `:""}`}set message(e){this.#n=e}};var Hm=Object.defineProperty,Za=(t,e)=>Hm(t,"name",{value:e,configurable:!0}),Km=Object.defineProperty,Zr=Za((t,e)=>Km(t,"name",{value:e,configurable:!0}),"a");const Wm=Zr(t=>String.raw`\u{${t.codePointAt(0).toString(16)}}`,"getCodePoint"),qm=Zr((t,e,r)=>Lm(t,{start:e},{tabWidth:!1,...r}),"generateCodeFrame"),Vm=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,Ym=Zr((t,e)=>{const r=Vm.exec(e);if(!r)return;const[,n,s,i]=r;if(s&&i)return{column:Number(i),line:Number(s)};let o=Number(n);return o===t.length&&(o=t.length-1),Tm(t,o)},"getErrorLocation"),zm=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,Xm=Zr(t=>t.replace(zm,(e,r,n)=>`"${n}"(${Wm(n)})`),"addCodePointToUnexpectedToken");function Jt(t,e,r,n){typeof e=="string"&&(typeof r=="object"&&(n=r),r=e,e=void 0);let s;try{return JSON.parse(t,e)}catch(u){s=u.message}let i;t?(i=Ym(t,s),s=Xm(s)):s+=" while parsing empty string";const o=new Um(s);throw o.fileName=r,i&&(o.codeFrame=qm(t,i,n)),o}Za(Jt,"E");Zr(Jt,"parseJson");var Jm=Object.defineProperty,ec=(t,e)=>Jm(t,"name",{value:e,configurable:!0}),Qm=Object.defineProperty,Zm=ec((t,e)=>Qm(t,"name",{value:e,configurable:!0}),"i");async function no(t,e,r){typeof e=="object"&&(r=e,e=void 0);const n=await Zi(t,{buffer:!0,encoding:void 0});let s=new TextDecoder().decode(n);const{beforeParse:i,color:o}=r??{};return typeof i=="function"&&(s=i(s)),Jt(s,e,V(t),{color:o})}ec(no,"c");Zm(no,"readJson");var eg=Object.defineProperty,tc=(t,e)=>eg(t,"name",{value:e,configurable:!0}),tg=Object.defineProperty,rg=tc((t,e)=>tg(t,"name",{value:e,configurable:!0}),"r");function so(t,e,r){typeof e=="object"&&(r=e,e=void 0);const n=eo(t,{buffer:!0,encoding:void 0});let s=new TextDecoder().decode(n);const{beforeParse:i,color:o}=r??{};return typeof i=="function"&&(s=i(s)),Jt(s,e,V(t),{color:o})}tc(so,"J");rg(so,"readJsonSync");var ng=Object.defineProperty,sg=(t,e)=>ng(t,"name",{value:e,configurable:!0}),ig=Object.defineProperty,og=sg((t,e)=>ig(t,"name",{value:e,configurable:!0}),"t");const ts=og(t=>{const e={force:!0,recursive:!0};return t?.maxRetries!==void 0&&(e.maxRetries=t.maxRetries),t?.retryDelay!==void 0&&(e.retryDelay=t.retryDelay),e},"buildRmOptions");var ug=Object.defineProperty,rc=(t,e)=>ug(t,"name",{value:e,configurable:!0});const ag=Y(import.meta.url),Cr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,nc=rc(t=>{if(typeof Cr<"u"&&Cr.versions&&Cr.versions.node){const[e,r]=Cr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Cr.getBuiltinModule(t)}return ag(t)},"__cjs_getBuiltinModule"),{existsSync:cg}=nc("node:fs"),{mkdir:lg,readdir:fg,rm:hg}=nc("node:fs/promises");var pg=Object.defineProperty,dg=rc((t,e)=>pg(t,"name",{value:e,configurable:!0}),"o");dg(async(t,e)=>{if(ne(t),!cg(t)){await lg(t,{recursive:!0});return}const r=await fg(t),n=ts(e);for(const s of r)await hg(Vt(V(t),s),n)},"emptyDir");var mg=Object.defineProperty,sc=(t,e)=>mg(t,"name",{value:e,configurable:!0});const gg=Y(import.meta.url),wr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yg=sc(t=>{if(typeof wr<"u"&&wr.versions&&wr.versions.node){const[e,r]=wr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return wr.getBuiltinModule(t)}return gg(t)},"__cjs_getBuiltinModule"),{existsSync:Dg,mkdirSync:Eg,readdirSync:bg,rmSync:vg}=yg("node:fs");var $g=Object.defineProperty,Ag=sc((t,e)=>$g(t,"name",{value:e,configurable:!0}),"o");Ag((t,e)=>{if(ne(t),!Dg(t)){Eg(t,{recursive:!0});return}const r=ts(e);for(const n of bg(t))vg(Vt(V(t),n),r)},"emptyDirSync");var Cg=Object.defineProperty,ic=(t,e)=>Cg(t,"name",{value:e,configurable:!0});const wg=Y(import.meta.url),Sr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Sg=ic(t=>{if(typeof Sr<"u"&&Sr.versions&&Sr.versions.node){const[e,r]=Sr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Sr.getBuiltinModule(t)}return wg(t)},"__cjs_getBuiltinModule"),{unlink:Fg,rm:Og}=Sg("node:fs/promises");var Ng=Object.defineProperty,Lg=ic((t,e)=>Ng(t,"name",{value:e,configurable:!0}),"i");Lg(async(t,e={})=>{ne(t);try{await Fg(t)}catch{}try{await Og(t,ts(e))}catch{}},"remove");var xg=Object.defineProperty,oc=(t,e)=>xg(t,"name",{value:e,configurable:!0});const kg=Y(import.meta.url),Fr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Pg=oc(t=>{if(typeof Fr<"u"&&Fr.versions&&Fr.versions.node){const[e,r]=Fr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Fr.getBuiltinModule(t)}return kg(t)},"__cjs_getBuiltinModule"),{unlinkSync:Bg,rmSync:Ig}=Pg("node:fs");var _g=Object.defineProperty,Rg=oc((t,e)=>_g(t,"name",{value:e,configurable:!0}),"o");Rg((t,e={})=>{ne(t);try{Bg(t)}catch{}try{Ig(t,ts(e))}catch{}},"removeSync");var Tg=Object.defineProperty,jg=(t,e)=>Tg(t,"name",{value:e,configurable:!0});Y(import.meta.url);const Mg=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,{platform:Gg}=Mg;var Ug=Object.defineProperty,Dt=jg((t,e)=>Ug(t,"name",{value:e,configurable:!0}),"l");const $t="unnamed",Hg=128,nu={'"':"ˮ","*":"⁎","/":"⁄",":":"꞉","<":"‹",">":"›","?":"ʔ","\\":"∖","|":"ǀ"},Kg=/[\u0000-\u001F\u0080-\u009F]/g,Wg=/^(?:\.+[/\\]+)+|^\.+$/g,fi=/^(?:con|prn|aux|nul|com\d|lpt\d)$/i,qg=/[<>:"/\\|?*]/g,Vg=/\//g,qr=new Set([" "," ","."]),en=Dt((t,e)=>e>0&&e<t.length-1,"hasExtension"),Yg=Dt((t,e)=>{const r=t.lastIndexOf(".");if(!en(t,r))return t.slice(0,e);const n=t.slice(0,r),s=t.slice(r),i=e-s.length;return i>0?`${n.slice(0,i)}${s}`:t.slice(0,e)},"truncateWithExtension"),su=Dt(t=>{let e=0,r=t.length;for(;e<r;){const n=t[e];if(n===void 0||!qr.has(n))break;e+=1}for(;r>e;){const n=t[r-1];if(n===void 0||!qr.has(n))break;r-=1}return t.slice(e,r)},"trimSpacesAndPeriods"),zg=Dt(t=>{const e=t.lastIndexOf(".");if(en(t,e)){const n=t.slice(0,e),s=t.slice(e);let i=n;for(;i.length>0;){const o=i.at(-1);if(o===void 0||!qr.has(o))break;i=i.slice(0,-1)}return i.length===0?s.slice(1):`${i}${s}`}let r=t;for(;r.length>0;){const n=r.at(-1);if(n===void 0||!qr.has(n))break;r=r.slice(0,-1)}return r},"cleanWindowsName"),Xg=Dt(t=>{const e=t.lastIndexOf(".");if(en(t,e))return!1;if(fi.test(t))return!0;let r=t;for(;r.length>0;){const n=r.at(-1);if(n===void 0||!qr.has(n))break;r=r.slice(0,-1)}return!!(r.length>0&&fi.test(r))},"isWindowsReservedName"),Jg=Dt(t=>{const e=t.lastIndexOf(".");if(en(t,e)){const s=t.slice(0,e),i=t.slice(e),o=su(s);return o.length===0?void 0:`${o}${i}`}const r=t.trim();if(r.length>0&&r[0]==="."&&r.length<=5&&r.indexOf(".",1)===-1)return;const n=su(t);if(n.length!==0)return n},"cleanFat32Name"),Qg=Dt(t=>{const e=t?.filesystem??"auto";return e==="auto"?Gg==="win32"?"win32":"unix":e==="darwin"?"unix":e},"getFileSystemType");Dt((t,e)=>{if(typeof t!="string"||t.length===0)return $t;const r=Qg(e);let n=t;if(n=n.replace(Kg,""),n.length===0||(n=n.replace(Wg,""),n.length===0))return $t;if(r==="win32"||r==="fat32"){const i=n.lastIndexOf(".");if(!en(n,i)&&fi.test(n))return $t}if(n=r==="win32"||r==="fat32"?n.replaceAll(qg,i=>nu[i]??""):n.replaceAll(Vg,nu["/"]),n=n.trim(),(r==="win32"||r==="fat32")&&(Xg(n)||r==="win32"&&(n=zg(n),n.length===0)))return $t;if(r==="fat32"){const i=Jg(n);if(i===void 0)return $t;n=i}if(n.length===0)return $t;const s=e?.maxLength??Hg;return n.length>s&&(n=Yg(n,s),n.length===0)?$t:n},"sanitize");var Zg=Object.defineProperty,ey=(t,e)=>Zg(t,"name",{value:e,configurable:!0}),ty=Object.defineProperty,ry=ey((t,e)=>ty(t,"name",{value:e,configurable:!0}),"e");const uc=ry(t=>{if(typeof t!="string"&&!(t instanceof ArrayBuffer)&&!ArrayBuffer.isView(t))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"assertValidFileContents");var ny=Object.defineProperty,sy=(t,e)=>ny(t,"name",{value:e,configurable:!0}),iy=Object.defineProperty,oy=sy((t,e)=>iy(t,"name",{value:e,configurable:!0}),"f");const uy=new TextEncoder,ac=oy(t=>{if(t instanceof Uint8Array)return t;if(typeof t=="string")return uy.encode(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t)){const e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return new Uint8Array(e)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},"toUint8Array");var ay=Object.defineProperty,cc=(t,e)=>ay(t,"name",{value:e,configurable:!0});const cy=Y(import.meta.url),Or=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ly=cc(t=>{if(typeof Or<"u"&&Or.versions&&Or.versions.node){const[e,r]=Or.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Or.getBuiltinModule(t)}return cy(t)},"__cjs_getBuiltinModule"),{mkdir:fy,writeFile:hy,stat:py,rename:iu,chown:dy,chmod:my,unlink:gy}=ly("node:fs/promises");var yy=Object.defineProperty,Dy=cc((t,e)=>yy(t,"name",{value:e,configurable:!0}),"d");const lc=Dy(async(t,e,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},ne(t),uc(e),t=V(t);const n=`${t}.tmp`;try{const s=await ot(t,Ut);if(!s&&r.recursive){const o=ee(t);await ot(o,Ut)||await fy(o,{recursive:!0})}let i;if(await hy(n,ac(e),{encoding:r.encoding,flag:r.flag}),s&&!r.overwrite&&(i=await py(t),r.chown??={gid:i.gid,uid:i.uid},await iu(t,`${t}.bak`)),r.chown)try{await dy(n,r.chown.uid,r.chown.gid)}catch{}await my(n,i&&!r.mode?i.mode:r.mode??438),await iu(n,t)}catch(s){throw new Error(`Failed to write file at: ${t} - ${s.message}`,{cause:s})}finally{await ot(n)&&await gy(`${t}.tmp`)}},"writeFile");var Ey=Object.defineProperty,fc=(t,e)=>Ey(t,"name",{value:e,configurable:!0});const by=Y(import.meta.url),Nr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vy=fc(t=>{if(typeof Nr<"u"&&Nr.versions&&Nr.versions.node){const[e,r]=Nr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Nr.getBuiltinModule(t)}return by(t)},"__cjs_getBuiltinModule"),{mkdirSync:$y,writeFileSync:Ay,statSync:Cy,renameSync:ou,chownSync:wy,chmodSync:Sy,unlinkSync:Fy}=vy("node:fs");var Oy=Object.defineProperty,Ny=fc((t,e)=>Oy(t,"name",{value:e,configurable:!0}),"f");const hc=Ny((t,e,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},ne(t),uc(e),t=V(t);const n=`${t}.tmp`;try{const s=ut(t,Ut);if(!s&&r.recursive){const o=ee(t);ut(o,Ut)||$y(o,{recursive:!0})}let i;if(Ay(n,ac(e),{encoding:r.encoding,flag:r.flag}),s&&!r.overwrite&&(i=Cy(t),r.chown??={gid:i.gid,uid:i.uid},ou(t,`${t}.bak`)),r.chown)try{wy(n,r.chown.uid,r.chown.gid)}catch{}Sy(n,i&&!r.mode?i.mode:r.mode??438),ou(n,t)}catch(s){throw new Error(`Failed to write file at: ${t} - ${s.message}`,{cause:s})}finally{ut(n)&&Fy(`${t}.tmp`)}},"writeFileSync");var Ly=Object.defineProperty,Et=(t,e)=>Ly(t,"name",{value:e,configurable:!0}),xy=Object.defineProperty,kt=Et((t,e)=>xy(t,"name",{value:e,configurable:!0}),"i");const ky=/^(?:( )+|\t+)/,tn="space";function kn(t,e,r){return t&&e===tn&&r===1}Et(kn,"I");kt(kn,"shouldIgnoreSingleSpace");function Pn(t,e){const r=new Map;let n=0,s,i;for(const o of t.split(/\n/g)){if(!o)continue;const u=o.match(ky);if(u===null)n=0,s="";else{const a=u[0].length,c=u[1]?tn:"tab";if(kn(e,c,a))continue;c!==s&&(n=0),s=c;let l=1,h=0;const d=a-n;if(n=a,d===0)l=0,h=1;else{const b=Math.abs(d);if(kn(e,c,b))continue;i=io(c,b)}const D=r.get(i);r.set(i,D===void 0?[1,0]:[D[0]+l,D[1]+h])}}return r}Et(Pn,"h");kt(Pn,"makeIndentsMap");function io(t,e){return(t===tn?"s":"t")+String(e)}Et(io,"m");kt(io,"encodeIndentsKey");function oo(t){const e=t[0]==="s"?tn:"tab",r=Number(t.slice(1));return{type:e,amount:r}}Et(oo,"_");kt(oo,"decodeIndentsKey");function uo(t){let e,r=0,n=0;for(const[s,[i,o]]of t)(i>r||i===r&&o>n)&&(r=i,n=o,e=s);return e}Et(uo,"k");kt(uo,"getMostUsedKey");function ao(t,e){return(t===tn?" ":" ").repeat(e)}Et(ao,"D");kt(ao,"makeIndentString");function rs(t){if(typeof t!="string")throw new TypeError("Expected a string");let e=Pn(t,!0);e.size===0&&(e=Pn(t,!1));const r=uo(e);let n,s=0,i="";return r!==void 0&&({type:n,amount:s}=oo(r),i=ao(n,s)),{amount:s,type:n,indent:i}}Et(rs,"C");kt(rs,"detectIndent");var Py=Object.defineProperty,pc=(t,e)=>Py(t,"name",{value:e,configurable:!0});const By=Y(import.meta.url),Lr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Iy=pc(t=>{if(typeof Lr<"u"&&Lr.versions&&Lr.versions.node){const[e,r]=Lr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Lr.getBuiltinModule(t)}return By(t)},"__cjs_getBuiltinModule"),{readFile:_y}=Iy("node:fs/promises");var Ry=Object.defineProperty,Ty=pc((t,e)=>Ry(t,"name",{value:e,configurable:!0}),"r");const jy=Ty(async(t,e,r={})=>{const{detectIndent:n,indent:s,replacer:i,stringify:o=JSON.stringify,...u}={indent:" ",...r};let a=s,c=`
21
+ `:""}`}set message(e){this.#n=e}};var Hm=Object.defineProperty,Za=(t,e)=>Hm(t,"name",{value:e,configurable:!0}),Km=Object.defineProperty,Zr=Za((t,e)=>Km(t,"name",{value:e,configurable:!0}),"a");const Wm=Zr(t=>String.raw`\u{${t.codePointAt(0).toString(16)}}`,"getCodePoint"),qm=Zr((t,e,r)=>Lm(t,{start:e},{tabWidth:!1,...r}),"generateCodeFrame"),Vm=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,Ym=Zr((t,e)=>{const r=Vm.exec(e);if(!r)return;const[,n,s,i]=r;if(s&&i)return{column:Number(i),line:Number(s)};let o=Number(n);return o===t.length&&(o=t.length-1),Tm(t,o)},"getErrorLocation"),zm=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,Xm=Zr(t=>t.replace(zm,(e,r,n)=>`"${n}"(${Wm(n)})`),"addCodePointToUnexpectedToken");function Jt(t,e,r,n){typeof e=="string"&&(typeof r=="object"&&(n=r),r=e,e=void 0);let s;try{return JSON.parse(t,e)}catch(u){s=u.message}let i;t?(i=Ym(t,s),s=Xm(s)):s+=" while parsing empty string";const o=new Um(s);throw o.fileName=r,i&&(o.codeFrame=qm(t,i,n)),o}Za(Jt,"E");Zr(Jt,"parseJson");var Jm=Object.defineProperty,ec=(t,e)=>Jm(t,"name",{value:e,configurable:!0}),Qm=Object.defineProperty,Zm=ec((t,e)=>Qm(t,"name",{value:e,configurable:!0}),"i");async function no(t,e,r){typeof e=="object"&&(r=e,e=void 0);const n=await Zi(t,{buffer:!0,encoding:void 0});let s=new TextDecoder().decode(n);const{beforeParse:i,color:o}=r??{};return typeof i=="function"&&(s=i(s)),Jt(s,e,V(t),{color:o})}ec(no,"c");Zm(no,"readJson");var eg=Object.defineProperty,tc=(t,e)=>eg(t,"name",{value:e,configurable:!0}),tg=Object.defineProperty,rg=tc((t,e)=>tg(t,"name",{value:e,configurable:!0}),"r");function so(t,e,r){typeof e=="object"&&(r=e,e=void 0);const n=eo(t,{buffer:!0,encoding:void 0});let s=new TextDecoder().decode(n);const{beforeParse:i,color:o}=r??{};return typeof i=="function"&&(s=i(s)),Jt(s,e,V(t),{color:o})}tc(so,"J");rg(so,"readJsonSync");var ng=Object.defineProperty,sg=(t,e)=>ng(t,"name",{value:e,configurable:!0}),ig=Object.defineProperty,og=sg((t,e)=>ig(t,"name",{value:e,configurable:!0}),"t");const ts=og(t=>{const e={force:!0,recursive:!0};return t?.maxRetries!==void 0&&(e.maxRetries=t.maxRetries),t?.retryDelay!==void 0&&(e.retryDelay=t.retryDelay),e},"buildRmOptions");var ug=Object.defineProperty,rc=(t,e)=>ug(t,"name",{value:e,configurable:!0});const ag=Y(import.meta.url),Cr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,nc=rc(t=>{if(typeof Cr<"u"&&Cr.versions&&Cr.versions.node){const[e,r]=Cr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Cr.getBuiltinModule(t)}return ag(t)},"__cjs_getBuiltinModule"),{existsSync:cg}=nc("node:fs"),{mkdir:lg,readdir:fg,rm:hg}=nc("node:fs/promises");var pg=Object.defineProperty,dg=rc((t,e)=>pg(t,"name",{value:e,configurable:!0}),"o");dg(async(t,e)=>{if(ne(t),!cg(t)){await lg(t,{recursive:!0});return}const r=await fg(t),n=ts(e);for(const s of r)await hg(Vt(V(t),s),n)},"emptyDir");var mg=Object.defineProperty,sc=(t,e)=>mg(t,"name",{value:e,configurable:!0});const gg=Y(import.meta.url),wr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yg=sc(t=>{if(typeof wr<"u"&&wr.versions&&wr.versions.node){const[e,r]=wr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return wr.getBuiltinModule(t)}return gg(t)},"__cjs_getBuiltinModule"),{existsSync:Dg,mkdirSync:Eg,readdirSync:bg,rmSync:vg}=yg("node:fs");var $g=Object.defineProperty,Ag=sc((t,e)=>$g(t,"name",{value:e,configurable:!0}),"o");Ag((t,e)=>{if(ne(t),!Dg(t)){Eg(t,{recursive:!0});return}const r=ts(e);for(const n of bg(t))vg(Vt(V(t),n),r)},"emptyDirSync");var Cg=Object.defineProperty,ic=(t,e)=>Cg(t,"name",{value:e,configurable:!0});const wg=Y(import.meta.url),Sr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Sg=ic(t=>{if(typeof Sr<"u"&&Sr.versions&&Sr.versions.node){const[e,r]=Sr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Sr.getBuiltinModule(t)}return wg(t)},"__cjs_getBuiltinModule"),{unlink:Fg,rm:Og}=Sg("node:fs/promises");var Ng=Object.defineProperty,Lg=ic((t,e)=>Ng(t,"name",{value:e,configurable:!0}),"i");Lg(async(t,e={})=>{ne(t);try{await Fg(t)}catch{}try{await Og(t,ts(e))}catch{}},"remove");var xg=Object.defineProperty,oc=(t,e)=>xg(t,"name",{value:e,configurable:!0});const kg=Y(import.meta.url),Fr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Pg=oc(t=>{if(typeof Fr<"u"&&Fr.versions&&Fr.versions.node){const[e,r]=Fr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Fr.getBuiltinModule(t)}return kg(t)},"__cjs_getBuiltinModule"),{unlinkSync:Bg,rmSync:Ig}=Pg("node:fs");var _g=Object.defineProperty,Rg=oc((t,e)=>_g(t,"name",{value:e,configurable:!0}),"o");Rg((t,e={})=>{ne(t);try{Bg(t)}catch{}try{Ig(t,ts(e))}catch{}},"removeSync");var Tg=Object.defineProperty,jg=(t,e)=>Tg(t,"name",{value:e,configurable:!0});Y(import.meta.url);const Mg=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,{platform:Gg}=Mg;var Ug=Object.defineProperty,Dt=jg((t,e)=>Ug(t,"name",{value:e,configurable:!0}),"l");const $t="unnamed",Hg=128,nu={'"':"ˮ","*":"⁎","/":"⁄",":":"꞉","<":"‹",">":"›","?":"ʔ","\\":"∖","|":"ǀ"},Kg=/[\u0000-\u001F\u0080-\u009F]/g,Wg=/^(?:\.+[/\\]+)+|^\.+$/g,li=/^(?:con|prn|aux|nul|com\d|lpt\d)$/i,qg=/[<>:"/\\|?*]/g,Vg=/\//g,qr=new Set([" "," ","."]),en=Dt((t,e)=>e>0&&e<t.length-1,"hasExtension"),Yg=Dt((t,e)=>{const r=t.lastIndexOf(".");if(!en(t,r))return t.slice(0,e);const n=t.slice(0,r),s=t.slice(r),i=e-s.length;return i>0?`${n.slice(0,i)}${s}`:t.slice(0,e)},"truncateWithExtension"),su=Dt(t=>{let e=0,r=t.length;for(;e<r;){const n=t[e];if(n===void 0||!qr.has(n))break;e+=1}for(;r>e;){const n=t[r-1];if(n===void 0||!qr.has(n))break;r-=1}return t.slice(e,r)},"trimSpacesAndPeriods"),zg=Dt(t=>{const e=t.lastIndexOf(".");if(en(t,e)){const n=t.slice(0,e),s=t.slice(e);let i=n;for(;i.length>0;){const o=i.at(-1);if(o===void 0||!qr.has(o))break;i=i.slice(0,-1)}return i.length===0?s.slice(1):`${i}${s}`}let r=t;for(;r.length>0;){const n=r.at(-1);if(n===void 0||!qr.has(n))break;r=r.slice(0,-1)}return r},"cleanWindowsName"),Xg=Dt(t=>{const e=t.lastIndexOf(".");if(en(t,e))return!1;if(li.test(t))return!0;let r=t;for(;r.length>0;){const n=r.at(-1);if(n===void 0||!qr.has(n))break;r=r.slice(0,-1)}return!!(r.length>0&&li.test(r))},"isWindowsReservedName"),Jg=Dt(t=>{const e=t.lastIndexOf(".");if(en(t,e)){const s=t.slice(0,e),i=t.slice(e),o=su(s);return o.length===0?void 0:`${o}${i}`}const r=t.trim();if(r.length>0&&r[0]==="."&&r.length<=5&&r.indexOf(".",1)===-1)return;const n=su(t);if(n.length!==0)return n},"cleanFat32Name"),Qg=Dt(t=>{const e=t?.filesystem??"auto";return e==="auto"?Gg==="win32"?"win32":"unix":e==="darwin"?"unix":e},"getFileSystemType");Dt((t,e)=>{if(typeof t!="string"||t.length===0)return $t;const r=Qg(e);let n=t;if(n=n.replace(Kg,""),n.length===0||(n=n.replace(Wg,""),n.length===0))return $t;if(r==="win32"||r==="fat32"){const i=n.lastIndexOf(".");if(!en(n,i)&&li.test(n))return $t}if(n=r==="win32"||r==="fat32"?n.replaceAll(qg,i=>nu[i]??""):n.replaceAll(Vg,nu["/"]),n=n.trim(),(r==="win32"||r==="fat32")&&(Xg(n)||r==="win32"&&(n=zg(n),n.length===0)))return $t;if(r==="fat32"){const i=Jg(n);if(i===void 0)return $t;n=i}if(n.length===0)return $t;const s=e?.maxLength??Hg;return n.length>s&&(n=Yg(n,s),n.length===0)?$t:n},"sanitize");var Zg=Object.defineProperty,ey=(t,e)=>Zg(t,"name",{value:e,configurable:!0}),ty=Object.defineProperty,ry=ey((t,e)=>ty(t,"name",{value:e,configurable:!0}),"e");const uc=ry(t=>{if(typeof t!="string"&&!(t instanceof ArrayBuffer)&&!ArrayBuffer.isView(t))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},"assertValidFileContents");var ny=Object.defineProperty,sy=(t,e)=>ny(t,"name",{value:e,configurable:!0}),iy=Object.defineProperty,oy=sy((t,e)=>iy(t,"name",{value:e,configurable:!0}),"f");const uy=new TextEncoder,ac=oy(t=>{if(t instanceof Uint8Array)return t;if(typeof t=="string")return uy.encode(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t)){const e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return new Uint8Array(e)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},"toUint8Array");var ay=Object.defineProperty,cc=(t,e)=>ay(t,"name",{value:e,configurable:!0});const cy=Y(import.meta.url),Or=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ly=cc(t=>{if(typeof Or<"u"&&Or.versions&&Or.versions.node){const[e,r]=Or.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Or.getBuiltinModule(t)}return cy(t)},"__cjs_getBuiltinModule"),{mkdir:fy,writeFile:hy,stat:py,rename:iu,chown:dy,chmod:my,unlink:gy}=ly("node:fs/promises");var yy=Object.defineProperty,Dy=cc((t,e)=>yy(t,"name",{value:e,configurable:!0}),"d");const lc=Dy(async(t,e,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},ne(t),uc(e),t=V(t);const n=`${t}.tmp`;try{const s=await ot(t,Ut);if(!s&&r.recursive){const o=ee(t);await ot(o,Ut)||await fy(o,{recursive:!0})}let i;if(await hy(n,ac(e),{encoding:r.encoding,flag:r.flag}),s&&!r.overwrite&&(i=await py(t),r.chown??={gid:i.gid,uid:i.uid},await iu(t,`${t}.bak`)),r.chown)try{await dy(n,r.chown.uid,r.chown.gid)}catch{}await my(n,i&&!r.mode?i.mode:r.mode??438),await iu(n,t)}catch(s){throw new Error(`Failed to write file at: ${t} - ${s.message}`,{cause:s})}finally{await ot(n)&&await gy(`${t}.tmp`)}},"writeFile");var Ey=Object.defineProperty,fc=(t,e)=>Ey(t,"name",{value:e,configurable:!0});const by=Y(import.meta.url),Nr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vy=fc(t=>{if(typeof Nr<"u"&&Nr.versions&&Nr.versions.node){const[e,r]=Nr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Nr.getBuiltinModule(t)}return by(t)},"__cjs_getBuiltinModule"),{mkdirSync:$y,writeFileSync:Ay,statSync:Cy,renameSync:ou,chownSync:wy,chmodSync:Sy,unlinkSync:Fy}=vy("node:fs");var Oy=Object.defineProperty,Ny=fc((t,e)=>Oy(t,"name",{value:e,configurable:!0}),"f");const hc=Ny((t,e,r)=>{r={encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...r},ne(t),uc(e),t=V(t);const n=`${t}.tmp`;try{const s=ut(t,Ut);if(!s&&r.recursive){const o=ee(t);ut(o,Ut)||$y(o,{recursive:!0})}let i;if(Ay(n,ac(e),{encoding:r.encoding,flag:r.flag}),s&&!r.overwrite&&(i=Cy(t),r.chown??={gid:i.gid,uid:i.uid},ou(t,`${t}.bak`)),r.chown)try{wy(n,r.chown.uid,r.chown.gid)}catch{}Sy(n,i&&!r.mode?i.mode:r.mode??438),ou(n,t)}catch(s){throw new Error(`Failed to write file at: ${t} - ${s.message}`,{cause:s})}finally{ut(n)&&Fy(`${t}.tmp`)}},"writeFileSync");var Ly=Object.defineProperty,Et=(t,e)=>Ly(t,"name",{value:e,configurable:!0}),xy=Object.defineProperty,kt=Et((t,e)=>xy(t,"name",{value:e,configurable:!0}),"i");const ky=/^(?:( )+|\t+)/,tn="space";function kn(t,e,r){return t&&e===tn&&r===1}Et(kn,"I");kt(kn,"shouldIgnoreSingleSpace");function Pn(t,e){const r=new Map;let n=0,s,i;for(const o of t.split(/\n/g)){if(!o)continue;const u=o.match(ky);if(u===null)n=0,s="";else{const a=u[0].length,c=u[1]?tn:"tab";if(kn(e,c,a))continue;c!==s&&(n=0),s=c;let l=1,h=0;const d=a-n;if(n=a,d===0)l=0,h=1;else{const b=Math.abs(d);if(kn(e,c,b))continue;i=io(c,b)}const D=r.get(i);r.set(i,D===void 0?[1,0]:[D[0]+l,D[1]+h])}}return r}Et(Pn,"h");kt(Pn,"makeIndentsMap");function io(t,e){return(t===tn?"s":"t")+String(e)}Et(io,"m");kt(io,"encodeIndentsKey");function oo(t){const e=t[0]==="s"?tn:"tab",r=Number(t.slice(1));return{type:e,amount:r}}Et(oo,"_");kt(oo,"decodeIndentsKey");function uo(t){let e,r=0,n=0;for(const[s,[i,o]]of t)(i>r||i===r&&o>n)&&(r=i,n=o,e=s);return e}Et(uo,"k");kt(uo,"getMostUsedKey");function ao(t,e){return(t===tn?" ":" ").repeat(e)}Et(ao,"D");kt(ao,"makeIndentString");function rs(t){if(typeof t!="string")throw new TypeError("Expected a string");let e=Pn(t,!0);e.size===0&&(e=Pn(t,!1));const r=uo(e);let n,s=0,i="";return r!==void 0&&({type:n,amount:s}=oo(r),i=ao(n,s)),{amount:s,type:n,indent:i}}Et(rs,"C");kt(rs,"detectIndent");var Py=Object.defineProperty,pc=(t,e)=>Py(t,"name",{value:e,configurable:!0});const By=Y(import.meta.url),Lr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Iy=pc(t=>{if(typeof Lr<"u"&&Lr.versions&&Lr.versions.node){const[e,r]=Lr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Lr.getBuiltinModule(t)}return By(t)},"__cjs_getBuiltinModule"),{readFile:_y}=Iy("node:fs/promises");var Ry=Object.defineProperty,Ty=pc((t,e)=>Ry(t,"name",{value:e,configurable:!0}),"r");const jy=Ty(async(t,e,r={})=>{const{detectIndent:n,indent:s,replacer:i,stringify:o=JSON.stringify,...u}={indent:" ",...r};let a=s,c=`
22
22
  `;if(await ot(t,Gn))try{const h=await _y(t,"utf8");if(n){const{indent:d}=rs(h);a=d}c=h.endsWith(`
23
23
  `)?`
24
24
  `:""}catch(h){if(h.code!=="ENOENT")throw h}const l=o(e,i,a);await lc(t,`${l}${c}`,u)},"writeJson");var My=Object.defineProperty,dc=(t,e)=>My(t,"name",{value:e,configurable:!0});const Gy=Y(import.meta.url),xr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Uy=dc(t=>{if(typeof xr<"u"&&xr.versions&&xr.versions.node){const[e,r]=xr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return xr.getBuiltinModule(t)}return Gy(t)},"__cjs_getBuiltinModule"),{readFileSync:Hy}=Uy("node:fs");var Ky=Object.defineProperty,Wy=dc((t,e)=>Ky(t,"name",{value:e,configurable:!0}),"r");const qy=Wy((t,e,r={})=>{const{detectIndent:n,indent:s,replacer:i,stringify:o=JSON.stringify,...u}={indent:" ",...r};let a=s,c=`
25
25
  `;if(ut(t,Gn))try{const h=Hy(t,"utf8");if(n){const{indent:d}=rs(h);a=d}c=h.endsWith(`
26
26
  `)?`
27
- `:""}catch(h){if(h.code!=="ENOENT")throw h}const l=o(e,i,a);hc(t,`${l}${c}`,u)},"writeJsonSync");var Vy=Object.defineProperty,mc=(t,e)=>Vy(t,"name",{value:e,configurable:!0});const Yy=Y(import.meta.url),kr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,co=mc(t=>{if(typeof kr<"u"&&kr.versions&&kr.versions.node){const[e,r]=kr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return kr.getBuiltinModule(t)}return Yy(t)},"__cjs_getBuiltinModule"),zy=co("fs"),Xy=co("os"),Jy=co("path");var Qy=Object.defineProperty,Zy=mc((t,e)=>Qy(t,"name",{value:e,configurable:!0}),"a"),eD=Object.defineProperty,ns=Zy((t,e)=>eD(t,"name",{value:e,configurable:!0}),"s");const gc=ns(t=>{let e="";for(let r=0;r<t.length;r+=1){const n=t[r],s=n.toUpperCase();e+=n===s?n.toLowerCase():s}return e},"invertCase"),Fs=new Map,uu=ns((t,e)=>{const r=Jy.join(t,`.is-fs-case-sensitive-test-${process.pid}`);try{return e.writeFileSync(r,""),!e.existsSync(gc(r))}finally{try{e.unlinkSync(r)}catch{}}},"checkDirectoryCaseWithWrite"),tD=ns((t,e,r)=>{try{return uu(t,r)}catch(n){if(e===void 0)return uu(Xy.tmpdir(),r);throw n}},"checkDirectoryCaseWithFallback");ns((t,e=zy,r=!0)=>{const n=t??process.cwd();if(r&&Fs.has(n))return Fs.get(n);let s;const i=gc(n);return i!==n&&e.existsSync(n)?s=!e.existsSync(i):s=tD(n,t,e),r&&Fs.set(n,s),s},"isFsCaseSensitive");var rD=Object.defineProperty,yc=(t,e)=>rD(t,"name",{value:e,configurable:!0}),nD=Object.defineProperty,sD=yc((t,e)=>nD(t,"name",{value:e,configurable:!0}),"o");let F1=class extends Error{static{yc(this,"n")}static{sD(this,"DirectoryError")}constructor(e){super(`EISDIR: Illegal operation on a directory, ${e}`)}get code(){return"EISDIR"}set code(e){throw new Error("Cannot overwrite code EISDIR")}get name(){return"DirectoryError"}set name(e){throw new Error("Cannot overwrite name of DirectoryError")}};var iD=Object.defineProperty,Dc=(t,e)=>iD(t,"name",{value:e,configurable:!0}),oD=Object.defineProperty,uD=Dc((t,e)=>oD(t,"name",{value:e,configurable:!0}),"t");let N1=class extends Error{static{Dc(this,"n")}static{uD(this,"NotEmptyError")}constructor(e){super(`ENOTEMPTY: Directory not empty, ${e}`)}get code(){return"ENOTEMPTY"}set code(e){throw new Error("Cannot overwrite code ENOTEMPTY")}get name(){return"NotEmptyError"}set name(e){throw new Error("Cannot overwrite name of NotEmptyError")}};var aD=Object.defineProperty,Ec=(t,e)=>aD(t,"name",{value:e,configurable:!0}),cD=Object.defineProperty,lD=Ec((t,e)=>cD(t,"name",{value:e,configurable:!0}),"o");let bc=class extends Error{static{Ec(this,"n")}static{lD(this,"NotFoundError")}constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}};var fD=Object.defineProperty,hD=(t,e)=>fD(t,"name",{value:e,configurable:!0}),pD=Object.defineProperty,dD=hD((t,e)=>pD(t,"name",{value:e,configurable:!0}),"n");dD((t,{whitespace:e=!0}={})=>t.replace(Lf,r=>r.startsWith('"')||r[1]==="*"&&!r.endsWith("*/")?r:e?r.replaceAll(/\S/g," "):""),"stripJsonComments");const lo=Symbol.for("yaml.alias"),hi=Symbol.for("yaml.document"),gt=Symbol.for("yaml.map"),vc=Symbol.for("yaml.pair"),Xe=Symbol.for("yaml.scalar"),Qt=Symbol.for("yaml.seq"),Ie=Symbol.for("yaml.node.type"),Zt=t=>!!t&&typeof t=="object"&&t[Ie]===lo,rn=t=>!!t&&typeof t=="object"&&t[Ie]===hi,nn=t=>!!t&&typeof t=="object"&&t[Ie]===gt,fe=t=>!!t&&typeof t=="object"&&t[Ie]===vc,Q=t=>!!t&&typeof t=="object"&&t[Ie]===Xe,sn=t=>!!t&&typeof t=="object"&&t[Ie]===Qt;function ce(t){if(t&&typeof t=="object")switch(t[Ie]){case gt:case Qt:return!0}return!1}function le(t){if(t&&typeof t=="object")switch(t[Ie]){case lo:case gt:case Xe:case Qt:return!0}return!1}const $c=t=>(Q(t)||ce(t))&&!!t.anchor,wt=Symbol("break visit"),mD=Symbol("skip children"),Ur=Symbol("remove node");function er(t,e){const r=gD(e);rn(t)?_t(null,t.contents,r,Object.freeze([t]))===Ur&&(t.contents=null):_t(null,t,r,Object.freeze([]))}er.BREAK=wt;er.SKIP=mD;er.REMOVE=Ur;function _t(t,e,r,n){const s=yD(t,e,r,n);if(le(s)||fe(s))return DD(t,n,s),_t(t,s,r,n);if(typeof s!="symbol"){if(ce(e)){n=Object.freeze(n.concat(e));for(let i=0;i<e.items.length;++i){const o=_t(i,e.items[i],r,n);if(typeof o=="number")i=o-1;else{if(o===wt)return wt;o===Ur&&(e.items.splice(i,1),i-=1)}}}else if(fe(e)){n=Object.freeze(n.concat(e));const i=_t("key",e.key,r,n);if(i===wt)return wt;i===Ur&&(e.key=null);const o=_t("value",e.value,r,n);if(o===wt)return wt;o===Ur&&(e.value=null)}}return s}function gD(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function yD(t,e,r,n){if(typeof r=="function")return r(t,e,n);if(nn(e))return r.Map?.(t,e,n);if(sn(e))return r.Seq?.(t,e,n);if(fe(e))return r.Pair?.(t,e,n);if(Q(e))return r.Scalar?.(t,e,n);if(Zt(e))return r.Alias?.(t,e,n)}function DD(t,e,r){const n=e[e.length-1];if(ce(n))n.items[t]=r;else if(fe(n))t==="key"?n.key=r:n.value=r;else if(rn(n))n.contents=r;else{const s=Zt(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const ED={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},bD=t=>t.replace(/[!,[\]{}]/g,e=>ED[e]);let Gt=class et{constructor(e,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},et.defaultYaml,e),this.tags=Object.assign({},et.defaultTags,r)}clone(){const e=new et(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new et(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:et.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},et.defaultTags);break}return e}add(e,r){this.atNextDocument&&(this.yaml={explicit:et.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},et.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[i,o]=n;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const o=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,o),!1}}default:return r(0,`Unknown directive ${s}`,!0),!1}}tagName(e,r){if(e==="!")return"!";if(e[0]!=="!")return r(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(r(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&r("Verbatim tags must end with a >"),o)}const[,n,s]=e.match(/^(.*!)([^!]*)$/s);s||r(`The ${e} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(s)}catch(o){return r(String(o)),null}return n==="!"?e:(r(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[r,n]of Object.entries(this.tags))if(e.startsWith(n))return r+bD(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let s;if(e&&n.length>0&&le(e.contents)){const i={};er(e.contents,(o,u)=>{le(u)&&u.tag&&(i[u.tag]=!0)}),s=Object.keys(i)}else s=[];for(const[i,o]of n)i==="!!"&&o==="tag:yaml.org,2002:"||(!e||s.some(u=>u.startsWith(o)))&&r.push(`%TAG ${i} ${o}`);return r.join(`
27
+ `:""}catch(h){if(h.code!=="ENOENT")throw h}const l=o(e,i,a);hc(t,`${l}${c}`,u)},"writeJsonSync");var Vy=Object.defineProperty,mc=(t,e)=>Vy(t,"name",{value:e,configurable:!0});const Yy=Y(import.meta.url),kr=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,co=mc(t=>{if(typeof kr<"u"&&kr.versions&&kr.versions.node){const[e,r]=kr.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return kr.getBuiltinModule(t)}return Yy(t)},"__cjs_getBuiltinModule"),zy=co("fs"),Xy=co("os"),Jy=co("path");var Qy=Object.defineProperty,Zy=mc((t,e)=>Qy(t,"name",{value:e,configurable:!0}),"a"),eD=Object.defineProperty,ns=Zy((t,e)=>eD(t,"name",{value:e,configurable:!0}),"s");const gc=ns(t=>{let e="";for(let r=0;r<t.length;r+=1){const n=t[r],s=n.toUpperCase();e+=n===s?n.toLowerCase():s}return e},"invertCase"),Fs=new Map,uu=ns((t,e)=>{const r=Jy.join(t,`.is-fs-case-sensitive-test-${process.pid}`);try{return e.writeFileSync(r,""),!e.existsSync(gc(r))}finally{try{e.unlinkSync(r)}catch{}}},"checkDirectoryCaseWithWrite"),tD=ns((t,e,r)=>{try{return uu(t,r)}catch(n){if(e===void 0)return uu(Xy.tmpdir(),r);throw n}},"checkDirectoryCaseWithFallback");ns((t,e=zy,r=!0)=>{const n=t??process.cwd();if(r&&Fs.has(n))return Fs.get(n);let s;const i=gc(n);return i!==n&&e.existsSync(n)?s=!e.existsSync(i):s=tD(n,t,e),r&&Fs.set(n,s),s},"isFsCaseSensitive");var rD=Object.defineProperty,yc=(t,e)=>rD(t,"name",{value:e,configurable:!0}),nD=Object.defineProperty,sD=yc((t,e)=>nD(t,"name",{value:e,configurable:!0}),"o");let N1=class extends Error{static{yc(this,"n")}static{sD(this,"DirectoryError")}constructor(e){super(`EISDIR: Illegal operation on a directory, ${e}`)}get code(){return"EISDIR"}set code(e){throw new Error("Cannot overwrite code EISDIR")}get name(){return"DirectoryError"}set name(e){throw new Error("Cannot overwrite name of DirectoryError")}};var iD=Object.defineProperty,Dc=(t,e)=>iD(t,"name",{value:e,configurable:!0}),oD=Object.defineProperty,uD=Dc((t,e)=>oD(t,"name",{value:e,configurable:!0}),"t");let x1=class extends Error{static{Dc(this,"n")}static{uD(this,"NotEmptyError")}constructor(e){super(`ENOTEMPTY: Directory not empty, ${e}`)}get code(){return"ENOTEMPTY"}set code(e){throw new Error("Cannot overwrite code ENOTEMPTY")}get name(){return"NotEmptyError"}set name(e){throw new Error("Cannot overwrite name of NotEmptyError")}};var aD=Object.defineProperty,Ec=(t,e)=>aD(t,"name",{value:e,configurable:!0}),cD=Object.defineProperty,lD=Ec((t,e)=>cD(t,"name",{value:e,configurable:!0}),"o");let bc=class extends Error{static{Ec(this,"n")}static{lD(this,"NotFoundError")}constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}};var fD=Object.defineProperty,hD=(t,e)=>fD(t,"name",{value:e,configurable:!0}),pD=Object.defineProperty,dD=hD((t,e)=>pD(t,"name",{value:e,configurable:!0}),"n");dD((t,{whitespace:e=!0}={})=>t.replace(Lf,r=>r.startsWith('"')||r[1]==="*"&&!r.endsWith("*/")?r:e?r.replaceAll(/\S/g," "):""),"stripJsonComments");const lo=Symbol.for("yaml.alias"),fi=Symbol.for("yaml.document"),gt=Symbol.for("yaml.map"),vc=Symbol.for("yaml.pair"),Xe=Symbol.for("yaml.scalar"),Qt=Symbol.for("yaml.seq"),Ie=Symbol.for("yaml.node.type"),Zt=t=>!!t&&typeof t=="object"&&t[Ie]===lo,rn=t=>!!t&&typeof t=="object"&&t[Ie]===fi,nn=t=>!!t&&typeof t=="object"&&t[Ie]===gt,fe=t=>!!t&&typeof t=="object"&&t[Ie]===vc,Q=t=>!!t&&typeof t=="object"&&t[Ie]===Xe,sn=t=>!!t&&typeof t=="object"&&t[Ie]===Qt;function ce(t){if(t&&typeof t=="object")switch(t[Ie]){case gt:case Qt:return!0}return!1}function le(t){if(t&&typeof t=="object")switch(t[Ie]){case lo:case gt:case Xe:case Qt:return!0}return!1}const $c=t=>(Q(t)||ce(t))&&!!t.anchor,wt=Symbol("break visit"),mD=Symbol("skip children"),Ur=Symbol("remove node");function er(t,e){const r=gD(e);rn(t)?_t(null,t.contents,r,Object.freeze([t]))===Ur&&(t.contents=null):_t(null,t,r,Object.freeze([]))}er.BREAK=wt;er.SKIP=mD;er.REMOVE=Ur;function _t(t,e,r,n){const s=yD(t,e,r,n);if(le(s)||fe(s))return DD(t,n,s),_t(t,s,r,n);if(typeof s!="symbol"){if(ce(e)){n=Object.freeze(n.concat(e));for(let i=0;i<e.items.length;++i){const o=_t(i,e.items[i],r,n);if(typeof o=="number")i=o-1;else{if(o===wt)return wt;o===Ur&&(e.items.splice(i,1),i-=1)}}}else if(fe(e)){n=Object.freeze(n.concat(e));const i=_t("key",e.key,r,n);if(i===wt)return wt;i===Ur&&(e.key=null);const o=_t("value",e.value,r,n);if(o===wt)return wt;o===Ur&&(e.value=null)}}return s}function gD(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function yD(t,e,r,n){if(typeof r=="function")return r(t,e,n);if(nn(e))return r.Map?.(t,e,n);if(sn(e))return r.Seq?.(t,e,n);if(fe(e))return r.Pair?.(t,e,n);if(Q(e))return r.Scalar?.(t,e,n);if(Zt(e))return r.Alias?.(t,e,n)}function DD(t,e,r){const n=e[e.length-1];if(ce(n))n.items[t]=r;else if(fe(n))t==="key"?n.key=r:n.value=r;else if(rn(n))n.contents=r;else{const s=Zt(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}const ED={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},bD=t=>t.replace(/[!,[\]{}]/g,e=>ED[e]);let Gt=class et{constructor(e,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},et.defaultYaml,e),this.tags=Object.assign({},et.defaultTags,r)}clone(){const e=new et(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new et(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:et.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},et.defaultTags);break}return e}add(e,r){this.atNextDocument&&(this.yaml={explicit:et.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},et.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(n.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[i,o]=n;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const o=/^\d+\.\d+$/.test(i);return r(6,`Unsupported YAML version ${i}`,o),!1}}default:return r(0,`Unknown directive ${s}`,!0),!1}}tagName(e,r){if(e==="!")return"!";if(e[0]!=="!")return r(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(r(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&r("Verbatim tags must end with a >"),o)}const[,n,s]=e.match(/^(.*!)([^!]*)$/s);s||r(`The ${e} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(s)}catch(o){return r(String(o)),null}return n==="!"?e:(r(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[r,n]of Object.entries(this.tags))if(e.startsWith(n))return r+bD(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let s;if(e&&n.length>0&&le(e.contents)){const i={};er(e.contents,(o,u)=>{le(u)&&u.tag&&(i[u.tag]=!0)}),s=Object.keys(i)}else s=[];for(const[i,o]of n)i==="!!"&&o==="tag:yaml.org,2002:"||(!e||s.some(u=>u.startsWith(o)))&&r.push(`%TAG ${i} ${o}`);return r.join(`
28
28
  `)}};Gt.defaultYaml={explicit:!1,version:"1.2"};Gt.defaultTags={"!!":"tag:yaml.org,2002:"};function Ac(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const e=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(e)}return!0}function Cc(t){const e=new Set;return er(t,{Value(r,n){n.anchor&&e.add(n.anchor)}}),e}function wc(t,e){for(let r=1;;++r){const n=`${t}${r}`;if(!e.has(n))return n}}function vD(t,e){const r=[],n=new Map;let s=null;return{onAnchor:i=>{r.push(i),s??(s=Cc(t));const o=wc(e,s);return s.add(o),o},setAnchors:()=>{for(const i of r){const o=n.get(i);if(typeof o=="object"&&o.anchor&&(Q(o.node)||ce(o.node)))o.node.anchor=o.anchor;else{const u=new Error("Failed to resolve repeated object (this should not happen)");throw u.source=i,u}}},sourceObjects:n}}function Rt(t,e,r,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let s=0,i=n.length;s<i;++s){const o=n[s],u=Rt(t,n,String(s),o);u===void 0?delete n[s]:u!==o&&(n[s]=u)}else if(n instanceof Map)for(const s of Array.from(n.keys())){const i=n.get(s),o=Rt(t,n,s,i);o===void 0?n.delete(s):o!==i&&n.set(s,o)}else if(n instanceof Set)for(const s of Array.from(n)){const i=Rt(t,n,s,s);i===void 0?n.delete(s):i!==s&&(n.delete(s),n.add(i))}else for(const[s,i]of Object.entries(n)){const o=Rt(t,n,s,i);o===void 0?delete n[s]:o!==i&&(n[s]=o)}return t.call(e,r,n)}function Be(t,e,r){if(Array.isArray(t))return t.map((n,s)=>Be(n,String(s),r));if(t&&typeof t.toJSON=="function"){if(!r||!$c(t))return t.toJSON(e,r);const n={aliasCount:0,count:1,res:void 0};r.anchors.set(t,n),r.onCreate=i=>{n.res=i,delete r.onCreate};const s=t.toJSON(e,r);return r.onCreate&&r.onCreate(s),s}return typeof t=="bigint"&&!r?.keep?Number(t):t}let fo=class{constructor(e){Object.defineProperty(this,Ie,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:r,maxAliasCount:n,onAnchor:s,reviver:i}={}){if(!rn(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},u=Be(this,"",o);if(typeof s=="function")for(const{count:a,res:c}of o.anchors.values())s(c,a);return typeof i=="function"?Rt(i,{"":u},"",u):u}},ho=class extends fo{constructor(e){super(lo),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,r){if(r?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let n;r?.aliasResolveCache?n=r.aliasResolveCache:(n=[],er(e,{Node:(i,o)=>{(Zt(o)||$c(o))&&n.push(o)}}),r&&(r.aliasResolveCache=n));let s;for(const i of n){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(e,r){if(!r)return{source:this.source};const{anchors:n,doc:s,maxAliasCount:i}=r,o=this.resolve(s,r);if(!o){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(a)}let u=n.get(o);if(u||(Be(o,null,r),u=n.get(o)),u?.res===void 0){const a="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(a)}if(i>=0&&(u.count+=1,u.aliasCount===0&&(u.aliasCount=bn(s,o,n)),u.count*u.aliasCount>i)){const a="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(a)}return u.res}toString(e,r,n){const s=`*${this.source}`;if(e){if(Ac(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(e.implicitKey)return`${s} `}return s}};function bn(t,e,r){if(Zt(e)){const n=e.resolve(t),s=r&&n&&r.get(n);return s?s.count*s.aliasCount:0}else if(ce(e)){let n=0;for(const s of e.items){const i=bn(t,s,r);i>n&&(n=i)}return n}else if(fe(e)){const n=bn(t,e.key,r),s=bn(t,e.value,r);return Math.max(n,s)}return 1}const Sc=t=>!t||typeof t!="function"&&typeof t!="object";let j=class extends fo{constructor(e){super(Xe),this.value=e}toJSON(e,r){return r?.keep?this.value:Be(this.value,e,r)}toString(){return String(this.value)}};j.BLOCK_FOLDED="BLOCK_FOLDED";j.BLOCK_LITERAL="BLOCK_LITERAL";j.PLAIN="PLAIN";j.QUOTE_DOUBLE="QUOTE_DOUBLE";j.QUOTE_SINGLE="QUOTE_SINGLE";const $D="tag:yaml.org,2002:";function AD(t,e,r){if(e){const n=r.filter(i=>i.tag===e),s=n.find(i=>!i.format)??n[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return r.find(n=>n.identify?.(t)&&!n.format)}function Vr(t,e,r){if(rn(t)&&(t=t.contents),le(t))return t;if(fe(t)){const h=r.schema[gt].createNode?.(r.schema,null,r);return h.items.push(t),h}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:n,onAnchor:s,onTagObj:i,schema:o,sourceObjects:u}=r;let a;if(n&&t&&typeof t=="object"){if(a=u.get(t),a)return a.anchor??(a.anchor=s(t)),new ho(a.anchor);a={anchor:null,node:null},u.set(t,a)}e?.startsWith("!!")&&(e=$D+e.slice(2));let c=AD(t,e,o.tags);if(!c){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const h=new j(t);return a&&(a.node=h),h}c=t instanceof Map?o[gt]:Symbol.iterator in Object(t)?o[Qt]:o[gt]}i&&(i(c),delete r.onTagObj);const l=c?.createNode?c.createNode(r.schema,t,r):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(r.schema,t,r):new j(t);return e?l.tag=e:c.default||(l.tag=c.tag),a&&(a.node=l),l}function Bn(t,e,r){let n=r;for(let s=e.length-1;s>=0;--s){const i=e[s];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const o=[];o[i]=n,n=o}else n=new Map([[i,n]])}return Vr(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}const _r=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done;let Fc=class extends fo{constructor(e,r){super(e),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(e){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(r.schema=e),r.items=r.items.map(n=>le(n)||fe(n)?n.clone(e):n),this.range&&(r.range=this.range.slice()),r}addIn(e,r){if(_r(e))this.add(r);else{const[n,...s]=e,i=this.get(n,!0);if(ce(i))i.addIn(s,r);else if(i===void 0&&this.schema)this.set(n,Bn(this.schema,s,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}deleteIn(e){const[r,...n]=e;if(n.length===0)return this.delete(r);const s=this.get(r,!0);if(ce(s))return s.deleteIn(n);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`)}getIn(e,r){const[n,...s]=e,i=this.get(n,!0);return s.length===0?!r&&Q(i)?i.value:i:ce(i)?i.getIn(s,r):void 0}hasAllNullValues(e){return this.items.every(r=>{if(!fe(r))return!1;const n=r.value;return n==null||e&&Q(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[r,...n]=e;if(n.length===0)return this.has(r);const s=this.get(r,!0);return ce(s)?s.hasIn(n):!1}setIn(e,r){const[n,...s]=e;if(s.length===0)this.set(n,r);else{const i=this.get(n,!0);if(ce(i))i.setIn(s,r);else if(i===void 0&&this.schema)this.set(n,Bn(this.schema,s,r));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}};const CD=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function st(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}const Ot=(t,e,r)=>t.endsWith(`
29
29
  `)?st(r,e):r.includes(`
30
30
  `)?`
31
- `+st(r,e):(t.endsWith(" ")?"":" ")+r,Oc="flow",pi="block",vn="quoted";function ss(t,e,r="flow",{indentAtStart:n,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:u}={}){if(!s||s<0)return t;s<i&&(i=0);const a=Math.max(1+i,1+s-e.length);if(t.length<=a)return t;const c=[],l={};let h=s-e.length;typeof n=="number"&&(n>s-Math.max(2,i)?c.push(0):h=s-n);let d,D,b=!1,p=-1,g=-1,m=-1;r===pi&&(p=au(t,p,e.length),p!==-1&&(h=p+a));for(let $;$=t[p+=1];){if(r===vn&&$==="\\"){switch(g=p,t[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}m=p}if($===`
32
- `)r===pi&&(p=au(t,p,e.length)),h=p+e.length+a,d=void 0;else{if($===" "&&D&&D!==" "&&D!==`
31
+ `+st(r,e):(t.endsWith(" ")?"":" ")+r,Oc="flow",hi="block",vn="quoted";function ss(t,e,r="flow",{indentAtStart:n,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:u}={}){if(!s||s<0)return t;s<i&&(i=0);const a=Math.max(1+i,1+s-e.length);if(t.length<=a)return t;const c=[],l={};let h=s-e.length;typeof n=="number"&&(n>s-Math.max(2,i)?c.push(0):h=s-n);let d,D,b=!1,p=-1,g=-1,m=-1;r===hi&&(p=au(t,p,e.length),p!==-1&&(h=p+a));for(let $;$=t[p+=1];){if(r===vn&&$==="\\"){switch(g=p,t[p+1]){case"x":p+=3;break;case"u":p+=5;break;case"U":p+=9;break;default:p+=1}m=p}if($===`
32
+ `)r===hi&&(p=au(t,p,e.length)),h=p+e.length+a,d=void 0;else{if($===" "&&D&&D!==" "&&D!==`
33
33
  `&&D!==" "){const f=t[p+1];f&&f!==" "&&f!==`
34
34
  `&&f!==" "&&(d=p)}if(p>=h)if(d)c.push(d),h=d+a,d=void 0;else if(r===vn){for(;D===" "||D===" ";)D=$,$=t[p+=1],b=!0;const f=p>m+1?p-2:g-1;if(l[f])return t;c.push(f),l[f]=!0,h=f+a,d=void 0}else b=!0}D=$}if(b&&u&&u(),c.length===0)return t;o&&o();let v=t.slice(0,c[0]);for(let $=0;$<c.length;++$){const f=c[$],E=c[$+1]||t.length;f===0?v=`
35
35
  ${e}${t.slice(0,E)}`:(r===vn&&l[f]&&(v+=`${t[f]}\\`),v+=`
@@ -38,25 +38,25 @@ ${e}${t.slice(f+1,E)}`)}return v}function au(t,e,r){let n=e,s=e+1,i=t[s];for(;i=
38
38
  `){if(i-o>n)return!0;if(o=i+1,s-o<=n)return!1}return!0}function Hr(t,e){const r=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return r;const{implicitKey:n}=e,s=e.options.doubleQuotedMinMultiLineLength,i=e.indent||(os(t)?" ":"");let o="",u=0;for(let a=0,c=r[a];c;c=r[++a])if(c===" "&&r[a+1]==="\\"&&r[a+2]==="n"&&(o+=r.slice(u,a)+"\\ ",a+=1,u=a,c="\\"),c==="\\")switch(r[a+1]){case"u":{o+=r.slice(u,a);const l=r.substr(a+2,4);switch(l){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:l.substr(0,2)==="00"?o+="\\x"+l.substr(2):o+=r.substr(a,6)}a+=5,u=a+1}break;case"n":if(n||r[a+2]==='"'||r.length<s)a+=1;else{for(o+=r.slice(u,a)+`
39
39
 
40
40
  `;r[a+2]==="\\"&&r[a+3]==="n"&&r[a+4]!=='"';)o+=`
41
- `,a+=2;o+=i,r[a+2]===" "&&(o+="\\"),a+=1,u=a+1}break;default:a+=1}return o=u?o+r.slice(u):r,n?o:ss(o,i,vn,is(e,!1))}function di(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
41
+ `,a+=2;o+=i,r[a+2]===" "&&(o+="\\"),a+=1,u=a+1}break;default:a+=1}return o=u?o+r.slice(u):r,n?o:ss(o,i,vn,is(e,!1))}function pi(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
42
42
  `)||/[ \t]\n|\n[ \t]/.test(t))return Hr(t,e);const r=e.indent||(os(t)?" ":""),n="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
43
- ${r}`)+"'";return e.implicitKey?n:ss(n,r,Oc,is(e,!1))}function Tt(t,e){const{singleQuote:r}=e.options;let n;if(r===!1)n=Hr;else{const s=t.includes('"'),i=t.includes("'");s&&!i?n=di:i&&!s?n=Hr:n=r?di:Hr}return n(t,e)}let mi;try{mi=new RegExp(`(^|(?<!
43
+ ${r}`)+"'";return e.implicitKey?n:ss(n,r,Oc,is(e,!1))}function Tt(t,e){const{singleQuote:r}=e.options;let n;if(r===!1)n=Hr;else{const s=t.includes('"'),i=t.includes("'");s&&!i?n=pi:i&&!s?n=Hr:n=r?pi:Hr}return n(t,e)}let di;try{di=new RegExp(`(^|(?<!
44
44
  ))
45
45
  +(?!
46
- |$)`,"g")}catch{mi=/\n+(?!\n|$)/g}function $n({comment:t,type:e,value:r},n,s,i){const{blockQuote:o,commentString:u,lineWidth:a}=n.options;if(!o||/\n[\t ]+$/.test(r))return Tt(r,n);const c=n.indent||(n.forceBlockIndent||os(r)?" ":""),l=o==="literal"?!0:o==="folded"||e===j.BLOCK_FOLDED?!1:e===j.BLOCK_LITERAL?!0:!wD(r,a,c.length);if(!r)return l?`|
46
+ |$)`,"g")}catch{di=/\n+(?!\n|$)/g}function $n({comment:t,type:e,value:r},n,s,i){const{blockQuote:o,commentString:u,lineWidth:a}=n.options;if(!o||/\n[\t ]+$/.test(r))return Tt(r,n);const c=n.indent||(n.forceBlockIndent||os(r)?" ":""),l=o==="literal"?!0:o==="folded"||e===j.BLOCK_FOLDED?!1:e===j.BLOCK_LITERAL?!0:!wD(r,a,c.length);if(!r)return l?`|
47
47
  `:`>
48
48
  `;let h,d;for(d=r.length;d>0;--d){const f=r[d-1];if(f!==`
49
49
  `&&f!==" "&&f!==" ")break}let D=r.substring(d);const b=D.indexOf(`
50
50
  `);b===-1?h="-":r===D||b!==D.length-1?(h="+",i&&i()):h="",D&&(r=r.slice(0,-D.length),D[D.length-1]===`
51
- `&&(D=D.slice(0,-1)),D=D.replace(mi,`$&${c}`));let p=!1,g,m=-1;for(g=0;g<r.length;++g){const f=r[g];if(f===" ")p=!0;else if(f===`
51
+ `&&(D=D.slice(0,-1)),D=D.replace(di,`$&${c}`));let p=!1,g,m=-1;for(g=0;g<r.length;++g){const f=r[g];if(f===" ")p=!0;else if(f===`
52
52
  `)m=g;else break}let v=r.substring(0,m<g?m+1:g);v&&(r=r.substring(v.length),v=v.replace(/\n+/g,`$&${c}`));let $=(p?c?"2":"1":"")+h;if(t&&($+=" "+u(t.replace(/ ?[\r\n]+/g," ")),s&&s()),!l){const f=r.replace(/\n+/g,`
53
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let E=!1;const y=is(n,!0);o!=="folded"&&e!==j.BLOCK_FOLDED&&(y.onOverflow=()=>{E=!0});const C=ss(`${v}${f}${D}`,c,pi,y);if(!E)return`>${$}
53
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let E=!1;const y=is(n,!0);o!=="folded"&&e!==j.BLOCK_FOLDED&&(y.onOverflow=()=>{E=!0});const C=ss(`${v}${f}${D}`,c,hi,y);if(!E)return`>${$}
54
54
  ${c}${C}`}return r=r.replace(/\n+/g,`$&${c}`),`|${$}
55
55
  ${c}${v}${r}${D}`}function SD(t,e,r,n){const{type:s,value:i}=t,{actualString:o,implicitKey:u,indent:a,indentStep:c,inFlow:l}=e;if(u&&i.includes(`
56
56
  `)||l&&/[[\]{},]/.test(i))return Tt(i,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return u||l||!i.includes(`
57
57
  `)?Tt(i,e):$n(t,e,r,n);if(!u&&!l&&s!==j.PLAIN&&i.includes(`
58
58
  `))return $n(t,e,r,n);if(os(i)){if(a==="")return e.forceBlockIndent=!0,$n(t,e,r,n);if(u&&a===c)return Tt(i,e)}const h=i.replace(/\n+/g,`$&
59
- ${a}`);if(o){const d=p=>p.default&&p.tag!=="tag:yaml.org,2002:str"&&p.test?.test(h),{compat:D,tags:b}=e.doc.schema;if(b.some(d)||D?.some(d))return Tt(i,e)}return u?h:ss(h,a,Oc,is(e,!1))}function po(t,e,r,n){const{implicitKey:s,inFlow:i}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:u}=t;u!==j.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(u=j.QUOTE_DOUBLE);const a=l=>{switch(l){case j.BLOCK_FOLDED:case j.BLOCK_LITERAL:return s||i?Tt(o.value,e):$n(o,e,r,n);case j.QUOTE_DOUBLE:return Hr(o.value,e);case j.QUOTE_SINGLE:return di(o.value,e);case j.PLAIN:return SD(o,e,r,n);default:return null}};let c=a(u);if(c===null){const{defaultKeyType:l,defaultStringType:h}=e.options,d=s&&l||h;if(c=a(d),c===null)throw new Error(`Unsupported default string type ${d}`)}return c}function Nc(t,e){const r=Object.assign({blockQuote:!0,commentString:CD,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function FD(t,e){if(e.tag){const s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)??s[0]}let r,n;if(Q(e)){n=e.value;let s=t.filter(i=>i.identify?.(n));if(s.length>1){const i=s.filter(o=>o.test);i.length>0&&(s=i)}r=s.find(i=>i.format===e.format)??s.find(i=>!i.format)}else n=e,r=t.find(s=>s.nodeClass&&n instanceof s.nodeClass);if(!r){const s=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${s} value`)}return r}function OD(t,e,{anchors:r,doc:n}){if(!n.directives)return"";const s=[],i=(Q(t)||ce(t))&&t.anchor;i&&Ac(i)&&(r.add(i),s.push(`&${i}`));const o=t.tag??(e.default?null:e.tag);return o&&s.push(n.directives.tagString(o)),s.join(" ")}function Wt(t,e,r,n){if(fe(t))return t.toString(e,r,n);if(Zt(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let s;const i=le(t)?t:e.doc.createNode(t,{onTagObj:a=>s=a});s??(s=FD(e.doc.schema.tags,i));const o=OD(i,s,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const u=typeof s.stringify=="function"?s.stringify(i,e,r,n):Q(i)?po(i,e,r,n):i.toString(e,r,n);return o?Q(i)||u[0]==="{"||u[0]==="["?`${o} ${u}`:`${o}
59
+ ${a}`);if(o){const d=p=>p.default&&p.tag!=="tag:yaml.org,2002:str"&&p.test?.test(h),{compat:D,tags:b}=e.doc.schema;if(b.some(d)||D?.some(d))return Tt(i,e)}return u?h:ss(h,a,Oc,is(e,!1))}function po(t,e,r,n){const{implicitKey:s,inFlow:i}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:u}=t;u!==j.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(u=j.QUOTE_DOUBLE);const a=l=>{switch(l){case j.BLOCK_FOLDED:case j.BLOCK_LITERAL:return s||i?Tt(o.value,e):$n(o,e,r,n);case j.QUOTE_DOUBLE:return Hr(o.value,e);case j.QUOTE_SINGLE:return pi(o.value,e);case j.PLAIN:return SD(o,e,r,n);default:return null}};let c=a(u);if(c===null){const{defaultKeyType:l,defaultStringType:h}=e.options,d=s&&l||h;if(c=a(d),c===null)throw new Error(`Unsupported default string type ${d}`)}return c}function Nc(t,e){const r=Object.assign({blockQuote:!0,commentString:CD,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let n;switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:n,options:r}}function FD(t,e){if(e.tag){const s=t.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)??s[0]}let r,n;if(Q(e)){n=e.value;let s=t.filter(i=>i.identify?.(n));if(s.length>1){const i=s.filter(o=>o.test);i.length>0&&(s=i)}r=s.find(i=>i.format===e.format)??s.find(i=>!i.format)}else n=e,r=t.find(s=>s.nodeClass&&n instanceof s.nodeClass);if(!r){const s=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${s} value`)}return r}function OD(t,e,{anchors:r,doc:n}){if(!n.directives)return"";const s=[],i=(Q(t)||ce(t))&&t.anchor;i&&Ac(i)&&(r.add(i),s.push(`&${i}`));const o=t.tag??(e.default?null:e.tag);return o&&s.push(n.directives.tagString(o)),s.join(" ")}function Wt(t,e,r,n){if(fe(t))return t.toString(e,r,n);if(Zt(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let s;const i=le(t)?t:e.doc.createNode(t,{onTagObj:a=>s=a});s??(s=FD(e.doc.schema.tags,i));const o=OD(i,s,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const u=typeof s.stringify=="function"?s.stringify(i,e,r,n):Q(i)?po(i,e,r,n):i.toString(e,r,n);return o?Q(i)||u[0]==="{"||u[0]==="["?`${o} ${u}`:`${o}
60
60
  ${e.indent}${u}`:u}function ND({key:t,value:e},r,n,s){const{allNullValues:i,doc:o,indent:u,indentStep:a,options:{commentString:c,indentSeq:l,simpleKeys:h}}=r;let d=le(t)&&t.comment||null;if(h){if(d)throw new Error("With simple keys, key nodes cannot have comments");if(ce(t)||!le(t)&&typeof t=="object"){const C="With simple keys, collection cannot be used as a key value";throw new Error(C)}}let D=!h&&(!t||d&&e==null&&!r.inFlow||ce(t)||(Q(t)?t.type===j.BLOCK_FOLDED||t.type===j.BLOCK_LITERAL:typeof t=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!D&&(h||!i),indent:u+a});let b=!1,p=!1,g=Wt(t,r,()=>b=!0,()=>p=!0);if(!D&&!r.inFlow&&g.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");D=!0}if(r.inFlow){if(i||e==null)return b&&n&&n(),g===""?"?":D?`? ${g}`:g}else if(i&&!h||e==null&&D)return g=`? ${g}`,d&&!b?g+=Ot(g,r.indent,c(d)):p&&s&&s(),g;b&&(d=null),D?(d&&(g+=Ot(g,r.indent,c(d))),g=`? ${g}
61
61
  ${u}:`):(g=`${g}:`,d&&(g+=Ot(g,r.indent,c(d))));let m,v,$;le(e)?(m=!!e.spaceBefore,v=e.commentBefore,$=e.comment):(m=!1,v=null,$=null,e&&typeof e=="object"&&(e=o.createNode(e))),r.implicitKey=!1,!D&&!d&&Q(e)&&(r.indentAtStart=g.length+1),p=!1,!l&&a.length>=2&&!r.inFlow&&!D&&sn(e)&&!e.flow&&!e.tag&&!e.anchor&&(r.indent=r.indent.substring(2));let f=!1;const E=Wt(e,r,()=>f=!0,()=>p=!0);let y=" ";if(d||m||v){if(y=m?`
62
62
  `:"",v){const C=c(v);y+=`
@@ -80,15 +80,15 @@ ${s.key.commentBefore}`:n.commentBefore),n.comment){const i=s.value??s.key;i.com
80
80
  ${i.comment}`:n.comment}n=s}t.items[r]=fe(n)?n:new Le(n)}}else e("Expected a sequence for this tag");return t}function Kc(t,e,r){const{replacer:n}=r,s=new xt(t);s.tag="tag:yaml.org,2002:pairs";let i=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(i++),o));let u,a;if(Array.isArray(o))if(o.length===2)u=o[0],a=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)u=c[0],a=o[u];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else u=o;s.items.push(mo(u,a,r))}return s}const Eo={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Hc,createNode:Kc};let An=class Wc extends xt{constructor(){super(),this.add=Pe.prototype.add.bind(this),this.delete=Pe.prototype.delete.bind(this),this.get=Pe.prototype.get.bind(this),this.has=Pe.prototype.has.bind(this),this.set=Pe.prototype.set.bind(this),this.tag=Wc.tag}toJSON(e,r){if(!r)return super.toJSON(e);const n=new Map;r?.onCreate&&r.onCreate(n);for(const s of this.items){let i,o;if(fe(s)?(i=Be(s.key,"",r),o=Be(s.value,i,r)):i=Be(s,"",r),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,o)}return n}static from(e,r,n){const s=Kc(e,r,n),i=new this;return i.items=s.items,i}};An.tag="tag:yaml.org,2002:omap";const bo={collection:"seq",identify:t=>t instanceof Map,nodeClass:An,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const r=Hc(t,e),n=[];for(const{key:s}of r.items)Q(s)&&(n.includes(s.value)?e(`Ordered maps must not include duplicate keys: ${s.value}`):n.push(s.value));return Object.assign(new An,r)},createNode:(t,e,r)=>An.from(t,e,r)};function qc({value:t,source:e},r){return e&&(t?Vc:Yc).test.test(e)?e:t?r.options.trueStr:r.options.falseStr}const Vc={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new j(!0),stringify:qc},Yc={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new j(!1),stringify:qc},TD={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ge},jD={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():Ge(t)}},MD={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new j(parseFloat(t.replace(/_/g,""))),r=t.indexOf(".");if(r!==-1){const n=t.substring(r+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:Ge},on=t=>typeof t=="bigint"||Number.isInteger(t);function ls(t,e,r,{intAsBigInt:n}){const s=t[0];if((s==="-"||s==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),n){switch(r){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return s==="-"?BigInt(-1)*o:o}const i=parseInt(t,r);return s==="-"?-1*i:i}function vo(t,e,r){const{value:n}=t;if(on(n)){const s=n.toString(e);return n<0?"-"+r+s.substr(1):r+s}return Ge(t)}const GD={identify:on,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,r)=>ls(t,2,2,r),stringify:t=>vo(t,2,"0b")},UD={identify:on,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,r)=>ls(t,1,8,r),stringify:t=>vo(t,8,"0")},HD={identify:on,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,r)=>ls(t,0,10,r),stringify:Ge},KD={identify:on,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,r)=>ls(t,2,16,r),stringify:t=>vo(t,16,"0x")};let Cn=class zc extends Pe{constructor(e){super(e),this.tag=zc.tag}add(e){let r;fe(e)?r=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?r=new Le(e.key,null):r=new Le(e,null),Nt(this.items,r.key)||this.items.push(r)}get(e,r){const n=Nt(this.items,e);return!r&&fe(n)?Q(n.key)?n.key.value:n.key:n}set(e,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const n=Nt(this.items,e);n&&!r?this.items.splice(this.items.indexOf(n),1):!n&&r&&this.items.push(new Le(e))}toJSON(e,r){return super.toJSON(e,r,Set)}toString(e,r,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),r,n);throw new Error("Set items must all have null values")}static from(e,r,n){const{replacer:s}=n,i=new this(e);if(r&&Symbol.iterator in Object(r))for(let o of r)typeof s=="function"&&(o=s.call(r,o,o)),i.items.push(mo(o,null,n));return i}};Cn.tag="tag:yaml.org,2002:set";const $o={collection:"map",identify:t=>t instanceof Set,nodeClass:Cn,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,r)=>Cn.from(t,e,r),resolve(t,e){if(nn(t)){if(t.hasAllNullValues(!0))return Object.assign(new Cn,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function Ao(t,e){const r=t[0],n=r==="-"||r==="+"?t.substring(1):t,s=o=>e?BigInt(o):Number(o),i=n.replace(/_/g,"").split(":").reduce((o,u)=>o*s(60)+s(u),s(0));return r==="-"?s(-1)*i:i}function Xc(t){let{value:e}=t,r=o=>o;if(typeof e=="bigint")r=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return Ge(t);let n="";e<0&&(n="-",e*=r(-1));const s=r(60),i=[e%s];return e<60?i.unshift(0):(e=(e-i[0])/s,i.unshift(e%s),e>=60&&(e=(e-i[0])/s,i.unshift(e))),n+i.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Jc={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:r})=>Ao(t,r),stringify:Xc},Qc={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>Ao(t,!1),stringify:Xc},fs={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(fs.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,n,s,i,o,u]=e.map(Number),a=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(r,n-1,s,i||0,o||0,u||0,a);const l=e[8];if(l&&l!=="Z"){let h=Ao(l,!1);Math.abs(h)<30&&(h*=60),c-=6e4*h}return new Date(c)},stringify:({value:t})=>t?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},lu=[tr,rr,us,as,Vc,Yc,GD,UD,HD,KD,TD,jD,MD,Do,at,bo,Eo,$o,Jc,Qc,fs],fu=new Map([["core",BD],["failsafe",[tr,rr,us]],["json",RD],["yaml11",lu],["yaml-1.1",lu]]),hu={binary:Do,bool:go,float:Tc,floatExp:Rc,floatNaN:_c,floatTime:Qc,int:Gc,intHex:Uc,intOct:Mc,intTime:Jc,map:tr,merge:at,null:as,omap:bo,pairs:Eo,seq:rr,set:$o,timestamp:fs},WD={"tag:yaml.org,2002:binary":Do,"tag:yaml.org,2002:merge":at,"tag:yaml.org,2002:omap":bo,"tag:yaml.org,2002:pairs":Eo,"tag:yaml.org,2002:set":$o,"tag:yaml.org,2002:timestamp":fs};function Ns(t,e,r){const n=fu.get(e);if(n&&!t)return r&&!n.includes(at)?n.concat(at):n.slice();let s=n;if(!s)if(Array.isArray(t))s=[];else{const i=Array.from(fu.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${i} or define customTags array`)}if(Array.isArray(t))for(const i of t)s=s.concat(i);else typeof t=="function"&&(s=t(s.slice()));return r&&(s=s.concat(at)),s.reduce((i,o)=>{const u=typeof o=="string"?hu[o]:o;if(!u){const a=JSON.stringify(o),c=Object.keys(hu).map(l=>JSON.stringify(l)).join(", ");throw new Error(`Unknown custom tag ${a}; use one of ${c}`)}return i.includes(u)||i.push(u),i},[])}const qD=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0;let VD=class Zc{constructor({compat:e,customTags:r,merge:n,resolveKnownTags:s,schema:i,sortMapEntries:o,toStringDefaults:u}){this.compat=Array.isArray(e)?Ns(e,"compat"):e?Ns(null,e):null,this.name=typeof i=="string"&&i||"core",this.knownTags=s?WD:{},this.tags=Ns(r,this.name,n),this.toStringOptions=u??null,Object.defineProperty(this,gt,{value:tr}),Object.defineProperty(this,Xe,{value:us}),Object.defineProperty(this,Qt,{value:rr}),this.sortMapEntries=typeof o=="function"?o:o===!0?qD:null}clone(){const e=Object.create(Zc.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};function YD(t,e){const r=[];let n=e.directives===!0;if(e.directives!==!1&&t.directives){const a=t.directives.toString(t);a?(r.push(a),n=!0):t.directives.docStart&&(n=!0)}n&&r.push("---");const s=Nc(t,e),{commentString:i}=s.options;if(t.commentBefore){r.length!==1&&r.unshift("");const a=i(t.commentBefore);r.unshift(st(a,""))}let o=!1,u=null;if(t.contents){if(le(t.contents)){if(t.contents.spaceBefore&&n&&r.push(""),t.contents.commentBefore){const l=i(t.contents.commentBefore);r.push(st(l,""))}s.forceBlockIndent=!!t.comment,u=t.contents.comment}const a=u?void 0:()=>o=!0;let c=Wt(t.contents,s,()=>u=null,a);u&&(c+=Ot(c,"",i(u))),(c[0]==="|"||c[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${c}`:r.push(c)}else r.push(Wt(t.contents,s));if(t.directives?.docEnd)if(t.comment){const a=i(t.comment);a.includes(`
81
81
  `)?(r.push("..."),r.push(st(a,""))):r.push(`... ${a}`)}else r.push("...");else{let a=t.comment;a&&o&&(a=a.replace(/^\n+/,"")),a&&((!o||u)&&r[r.length-1]!==""&&r.push(""),r.push(st(i(a),"")))}return r.join(`
82
82
  `)+`
83
- `}let Co=class el{constructor(e,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ie,{value:hi});let s=null;typeof r=="function"||Array.isArray(r)?s=r:n===void 0&&r&&(n=r,r=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:o}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Gt({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,s,n)}clone(){const e=Object.create(el.prototype,{[Ie]:{value:hi}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=le(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Pt(this.contents)&&this.contents.add(e)}addIn(e,r){Pt(this.contents)&&this.contents.addIn(e,r)}createAlias(e,r){if(!e.anchor){const n=Cc(this);e.anchor=!r||n.has(r)?wc(r||"a",n):r}return new ho(e.anchor)}createNode(e,r,n){let s;if(typeof r=="function")e=r.call({"":e},"",e),s=r;else if(Array.isArray(r)){const g=v=>typeof v=="number"||v instanceof String||v instanceof Number,m=r.filter(g).map(String);m.length>0&&(r=r.concat(m)),s=r}else n===void 0&&r&&(n=r,r=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:u,keepUndefined:a,onTagObj:c,tag:l}=n??{},{onAnchor:h,setAnchors:d,sourceObjects:D}=vD(this,o||"a"),b={aliasDuplicateObjects:i??!0,keepUndefined:a??!1,onAnchor:h,onTagObj:c,replacer:s,schema:this.schema,sourceObjects:D},p=Vr(e,l,b);return u&&ce(p)&&(p.flow=!0),d(),p}createPair(e,r,n={}){const s=this.createNode(e,null,n),i=this.createNode(r,null,n);return new Le(s,i)}delete(e){return Pt(this.contents)?this.contents.delete(e):!1}deleteIn(e){return _r(e)?this.contents==null?!1:(this.contents=null,!0):Pt(this.contents)?this.contents.deleteIn(e):!1}get(e,r){return ce(this.contents)?this.contents.get(e,r):void 0}getIn(e,r){return _r(e)?!r&&Q(this.contents)?this.contents.value:this.contents:ce(this.contents)?this.contents.getIn(e,r):void 0}has(e){return ce(this.contents)?this.contents.has(e):!1}hasIn(e){return _r(e)?this.contents!==void 0:ce(this.contents)?this.contents.hasIn(e):!1}set(e,r){this.contents==null?this.contents=Bn(this.schema,[e],r):Pt(this.contents)&&this.contents.set(e,r)}setIn(e,r){_r(e)?this.contents=r:this.contents==null?this.contents=Bn(this.schema,Array.from(e),r):Pt(this.contents)&&this.contents.setIn(e,r)}setSchema(e,r={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Gt({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Gt({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const s=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new VD(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:r,mapAsMap:n,maxAliasCount:s,onAnchor:i,reviver:o}={}){const u={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},a=Be(this.contents,r??"",u);if(typeof i=="function")for(const{count:c,res:l}of u.anchors.values())i(l,c);return typeof o=="function"?Rt(o,{"":a},"",a):a}toJSON(e,r){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:r})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const r=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return YD(this,e)}};function Pt(t){if(ce(t))return!0;throw new Error("Expected a YAML collection as document contents")}let tl=class extends Error{constructor(e,r,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=r}},Rr=class extends tl{constructor(e,r,n){super("YAMLParseError",e,r,n)}},zD=class extends tl{constructor(e,r,n){super("YAMLWarning",e,r,n)}};const pu=(t,e)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(u=>e.linePos(u));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let i=s-1,o=t.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const u=Math.min(i-39,o.length-79);o="…"+o.substring(u),i-=u-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,i))){let u=t.substring(e.lineStarts[n-2],e.lineStarts[n-1]);u.length>80&&(u=u.substring(0,79)+`…
83
+ `}let Co=class el{constructor(e,r,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ie,{value:fi});let s=null;typeof r=="function"||Array.isArray(r)?s=r:n===void 0&&r&&(n=r,r=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:o}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new Gt({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,s,n)}clone(){const e=Object.create(el.prototype,{[Ie]:{value:fi}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=le(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Pt(this.contents)&&this.contents.add(e)}addIn(e,r){Pt(this.contents)&&this.contents.addIn(e,r)}createAlias(e,r){if(!e.anchor){const n=Cc(this);e.anchor=!r||n.has(r)?wc(r||"a",n):r}return new ho(e.anchor)}createNode(e,r,n){let s;if(typeof r=="function")e=r.call({"":e},"",e),s=r;else if(Array.isArray(r)){const g=v=>typeof v=="number"||v instanceof String||v instanceof Number,m=r.filter(g).map(String);m.length>0&&(r=r.concat(m)),s=r}else n===void 0&&r&&(n=r,r=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:u,keepUndefined:a,onTagObj:c,tag:l}=n??{},{onAnchor:h,setAnchors:d,sourceObjects:D}=vD(this,o||"a"),b={aliasDuplicateObjects:i??!0,keepUndefined:a??!1,onAnchor:h,onTagObj:c,replacer:s,schema:this.schema,sourceObjects:D},p=Vr(e,l,b);return u&&ce(p)&&(p.flow=!0),d(),p}createPair(e,r,n={}){const s=this.createNode(e,null,n),i=this.createNode(r,null,n);return new Le(s,i)}delete(e){return Pt(this.contents)?this.contents.delete(e):!1}deleteIn(e){return _r(e)?this.contents==null?!1:(this.contents=null,!0):Pt(this.contents)?this.contents.deleteIn(e):!1}get(e,r){return ce(this.contents)?this.contents.get(e,r):void 0}getIn(e,r){return _r(e)?!r&&Q(this.contents)?this.contents.value:this.contents:ce(this.contents)?this.contents.getIn(e,r):void 0}has(e){return ce(this.contents)?this.contents.has(e):!1}hasIn(e){return _r(e)?this.contents!==void 0:ce(this.contents)?this.contents.hasIn(e):!1}set(e,r){this.contents==null?this.contents=Bn(this.schema,[e],r):Pt(this.contents)&&this.contents.set(e,r)}setIn(e,r){_r(e)?this.contents=r:this.contents==null?this.contents=Bn(this.schema,Array.from(e),r):Pt(this.contents)&&this.contents.setIn(e,r)}setSchema(e,r={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Gt({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Gt({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const s=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(n)this.schema=new VD(Object.assign(n,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:r,mapAsMap:n,maxAliasCount:s,onAnchor:i,reviver:o}={}){const u={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},a=Be(this.contents,r??"",u);if(typeof i=="function")for(const{count:c,res:l}of u.anchors.values())i(l,c);return typeof o=="function"?Rt(o,{"":a},"",a):a}toJSON(e,r){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:r})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const r=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return YD(this,e)}};function Pt(t){if(ce(t))return!0;throw new Error("Expected a YAML collection as document contents")}let tl=class extends Error{constructor(e,r,n,s){super(),this.name=e,this.code=n,this.message=s,this.pos=r}},Rr=class extends tl{constructor(e,r,n){super("YAMLParseError",e,r,n)}},zD=class extends tl{constructor(e,r,n){super("YAMLWarning",e,r,n)}};const pu=(t,e)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(u=>e.linePos(u));const{line:n,col:s}=r.linePos[0];r.message+=` at line ${n}, column ${s}`;let i=s-1,o=t.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const u=Math.min(i-39,o.length-79);o="…"+o.substring(u),i-=u-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,i))){let u=t.substring(e.lineStarts[n-2],e.lineStarts[n-1]);u.length>80&&(u=u.substring(0,79)+`…
84
84
  `),o=u+o}if(/[^ ]/.test(o)){let u=1;const a=r.linePos[1];a?.line===n&&a.col>s&&(u=Math.max(1,Math.min(a.col-s,80-i)));const c=" ".repeat(i)+"^".repeat(u);r.message+=`:
85
85
 
86
86
  ${o}
87
87
  ${c}
88
88
  `}};function qt(t,{flow:e,indicator:r,next:n,offset:s,onError:i,parentIndent:o,startOnNewline:u}){let a=!1,c=u,l=u,h="",d="",D=!1,b=!1,p=null,g=null,m=null,v=null,$=null,f=null,E=null;for(const A of t)switch(b&&(A.type!=="space"&&A.type!=="newline"&&A.type!=="comma"&&i(A.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),p&&(c&&A.type!=="comment"&&A.type!=="newline"&&i(p,"TAB_AS_INDENT","Tabs are not allowed as indentation"),p=null),A.type){case"space":!e&&(r!=="doc-start"||n?.type!=="flow-collection")&&A.source.includes(" ")&&(p=A),l=!0;break;case"comment":{l||i(A,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const N=A.source.substring(1)||" ";h?h+=d+N:h=N,d="",c=!1;break}case"newline":c?h?h+=A.source:(!f||r!=="seq-item-ind")&&(a=!0):d+=A.source,c=!0,D=!0,(g||m)&&(v=A),l=!0;break;case"anchor":g&&i(A,"MULTIPLE_ANCHORS","A node can have at most one anchor"),A.source.endsWith(":")&&i(A.offset+A.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=A,E??(E=A.offset),c=!1,l=!1,b=!0;break;case"tag":{m&&i(A,"MULTIPLE_TAGS","A node can have at most one tag"),m=A,E??(E=A.offset),c=!1,l=!1,b=!0;break}case r:(g||m)&&i(A,"BAD_PROP_ORDER",`Anchors and tags must be after the ${A.source} indicator`),f&&i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.source} in ${e??"collection"}`),f=A,c=r==="seq-item-ind"||r==="explicit-key-ind",l=!1;break;case"comma":if(e){$&&i(A,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),$=A,c=!1,l=!1;break}default:i(A,"UNEXPECTED_TOKEN",`Unexpected ${A.type} token`),c=!1,l=!1}const y=t[t.length-1],C=y?y.offset+y.source.length:s;return b&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p&&(c&&p.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&i(p,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:$,found:f,spaceBefore:a,comment:h,hasNewline:D,anchor:g,tag:m,newlineAfterProp:v,end:C,start:E??C}}function Yr(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
89
- `))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const r of e.start)if(r.type==="newline")return!0;if(e.sep){for(const r of e.sep)if(r.type==="newline")return!0}if(Yr(e.key)||Yr(e.value))return!0}return!1;default:return!0}}function gi(t,e,r){if(e?.type==="flow-collection"){const n=e.end[0];n.indent===t&&(n.source==="]"||n.source==="}")&&Yr(e)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function rl(t,e,r){const{uniqueKeys:n}=t.options;if(n===!1)return!1;const s=typeof n=="function"?n:(i,o)=>i===o||Q(i)&&Q(o)&&i.value===o.value;return e.some(i=>s(i.key,r))}const du="All mapping items must start at the same column";function XD({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=i?.nodeClass??Pe,u=new o(r.schema);r.atRoot&&(r.atRoot=!1);let a=n.offset,c=null;for(const l of n.items){const{start:h,key:d,sep:D,value:b}=l,p=qt(h,{indicator:"explicit-key-ind",next:d??D?.[0],offset:a,onError:s,parentIndent:n.indent,startOnNewline:!0}),g=!p.found;if(g){if(d&&(d.type==="block-seq"?s(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==n.indent&&s(a,"BAD_INDENT",du)),!p.anchor&&!p.tag&&!D){c=p.end,p.comment&&(u.comment?u.comment+=`
90
- `+p.comment:u.comment=p.comment);continue}(p.newlineAfterProp||Yr(d))&&s(d??h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else p.found?.indent!==n.indent&&s(a,"BAD_INDENT",du);r.atKey=!0;const m=p.end,v=d?t(r,d,p,s):e(r,m,h,null,p,s);r.schema.compat&&gi(n.indent,d,s),r.atKey=!1,rl(r,u.items,v)&&s(m,"DUPLICATE_KEY","Map keys must be unique");const $=qt(D??[],{indicator:"map-value-ind",next:b,offset:v.range[2],onError:s,parentIndent:n.indent,startOnNewline:!d||d.type==="block-scalar"});if(a=$.end,$.found){g&&(b?.type==="block-map"&&!$.hasNewline&&s(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&p.start<$.found.offset-1024&&s(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const f=b?t(r,b,$,s):e(r,a,D,null,$,s);r.schema.compat&&gi(n.indent,b,s),a=f.range[2];const E=new Le(v,f);r.options.keepSourceTokens&&(E.srcToken=l),u.items.push(E)}else{g&&s(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),$.comment&&(v.comment?v.comment+=`
91
- `+$.comment:v.comment=$.comment);const f=new Le(v);r.options.keepSourceTokens&&(f.srcToken=l),u.items.push(f)}}return c&&c<a&&s(c,"IMPOSSIBLE","Map comment with trailing content"),u.range=[n.offset,a,c??a],u}function JD({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=i?.nodeClass??xt,u=new o(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let a=n.offset,c=null;for(const{start:l,value:h}of n.items){const d=qt(l,{indicator:"seq-item-ind",next:h,offset:a,onError:s,parentIndent:n.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||h)h?.type==="block-seq"?s(d.end,"BAD_INDENT","All sequence items must start at the same column"):s(a,"MISSING_CHAR","Sequence item without - indicator");else{c=d.end,d.comment&&(u.comment=d.comment);continue}const D=h?t(r,h,d,s):e(r,d.end,l,null,d,s);r.schema.compat&&gi(n.indent,h,s),a=D.range[2],u.items.push(D)}return u.range=[n.offset,a,c??a],u}function un(t,e,r,n){let s="";if(t){let i=!1,o="";for(const u of t){const{source:a,type:c}=u;switch(c){case"space":i=!0;break;case"comment":{r&&!i&&n(u,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const l=a.substring(1)||" ";s?s+=o+l:s=l,o="";break}case"newline":s&&(o+=a),i=!0;break;default:n(u,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=a.length}}return{comment:s,offset:e}}const Ls="Block collections are not allowed within flow collections",xs=t=>t&&(t.type==="block-map"||t.type==="block-seq");function QD({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=n.start.source==="{",u=o?"flow map":"flow sequence",a=i?.nodeClass??(o?Pe:xt),c=new a(r.schema);c.flow=!0;const l=r.atRoot;l&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let h=n.offset+n.start.source.length;for(let g=0;g<n.items.length;++g){const m=n.items[g],{start:v,key:$,sep:f,value:E}=m,y=qt(v,{flow:u,indicator:"explicit-key-ind",next:$??f?.[0],offset:h,onError:s,parentIndent:n.indent,startOnNewline:!1});if(!y.found){if(!y.anchor&&!y.tag&&!f&&!E){g===0&&y.comma?s(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`):g<n.items.length-1&&s(y.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${u}`),y.comment&&(c.comment?c.comment+=`
89
+ `))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const r of e.start)if(r.type==="newline")return!0;if(e.sep){for(const r of e.sep)if(r.type==="newline")return!0}if(Yr(e.key)||Yr(e.value))return!0}return!1;default:return!0}}function mi(t,e,r){if(e?.type==="flow-collection"){const n=e.end[0];n.indent===t&&(n.source==="]"||n.source==="}")&&Yr(e)&&r(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function rl(t,e,r){const{uniqueKeys:n}=t.options;if(n===!1)return!1;const s=typeof n=="function"?n:(i,o)=>i===o||Q(i)&&Q(o)&&i.value===o.value;return e.some(i=>s(i.key,r))}const du="All mapping items must start at the same column";function XD({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=i?.nodeClass??Pe,u=new o(r.schema);r.atRoot&&(r.atRoot=!1);let a=n.offset,c=null;for(const l of n.items){const{start:h,key:d,sep:D,value:b}=l,p=qt(h,{indicator:"explicit-key-ind",next:d??D?.[0],offset:a,onError:s,parentIndent:n.indent,startOnNewline:!0}),g=!p.found;if(g){if(d&&(d.type==="block-seq"?s(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in d&&d.indent!==n.indent&&s(a,"BAD_INDENT",du)),!p.anchor&&!p.tag&&!D){c=p.end,p.comment&&(u.comment?u.comment+=`
90
+ `+p.comment:u.comment=p.comment);continue}(p.newlineAfterProp||Yr(d))&&s(d??h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else p.found?.indent!==n.indent&&s(a,"BAD_INDENT",du);r.atKey=!0;const m=p.end,v=d?t(r,d,p,s):e(r,m,h,null,p,s);r.schema.compat&&mi(n.indent,d,s),r.atKey=!1,rl(r,u.items,v)&&s(m,"DUPLICATE_KEY","Map keys must be unique");const $=qt(D??[],{indicator:"map-value-ind",next:b,offset:v.range[2],onError:s,parentIndent:n.indent,startOnNewline:!d||d.type==="block-scalar"});if(a=$.end,$.found){g&&(b?.type==="block-map"&&!$.hasNewline&&s(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&p.start<$.found.offset-1024&&s(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const f=b?t(r,b,$,s):e(r,a,D,null,$,s);r.schema.compat&&mi(n.indent,b,s),a=f.range[2];const E=new Le(v,f);r.options.keepSourceTokens&&(E.srcToken=l),u.items.push(E)}else{g&&s(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),$.comment&&(v.comment?v.comment+=`
91
+ `+$.comment:v.comment=$.comment);const f=new Le(v);r.options.keepSourceTokens&&(f.srcToken=l),u.items.push(f)}}return c&&c<a&&s(c,"IMPOSSIBLE","Map comment with trailing content"),u.range=[n.offset,a,c??a],u}function JD({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=i?.nodeClass??xt,u=new o(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let a=n.offset,c=null;for(const{start:l,value:h}of n.items){const d=qt(l,{indicator:"seq-item-ind",next:h,offset:a,onError:s,parentIndent:n.indent,startOnNewline:!0});if(!d.found)if(d.anchor||d.tag||h)h?.type==="block-seq"?s(d.end,"BAD_INDENT","All sequence items must start at the same column"):s(a,"MISSING_CHAR","Sequence item without - indicator");else{c=d.end,d.comment&&(u.comment=d.comment);continue}const D=h?t(r,h,d,s):e(r,d.end,l,null,d,s);r.schema.compat&&mi(n.indent,h,s),a=D.range[2],u.items.push(D)}return u.range=[n.offset,a,c??a],u}function un(t,e,r,n){let s="";if(t){let i=!1,o="";for(const u of t){const{source:a,type:c}=u;switch(c){case"space":i=!0;break;case"comment":{r&&!i&&n(u,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const l=a.substring(1)||" ";s?s+=o+l:s=l,o="";break}case"newline":s&&(o+=a),i=!0;break;default:n(u,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=a.length}}return{comment:s,offset:e}}const Ls="Block collections are not allowed within flow collections",xs=t=>t&&(t.type==="block-map"||t.type==="block-seq");function QD({composeNode:t,composeEmptyNode:e},r,n,s,i){const o=n.start.source==="{",u=o?"flow map":"flow sequence",a=i?.nodeClass??(o?Pe:xt),c=new a(r.schema);c.flow=!0;const l=r.atRoot;l&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let h=n.offset+n.start.source.length;for(let g=0;g<n.items.length;++g){const m=n.items[g],{start:v,key:$,sep:f,value:E}=m,y=qt(v,{flow:u,indicator:"explicit-key-ind",next:$??f?.[0],offset:h,onError:s,parentIndent:n.indent,startOnNewline:!1});if(!y.found){if(!y.anchor&&!y.tag&&!f&&!E){g===0&&y.comma?s(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`):g<n.items.length-1&&s(y.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${u}`),y.comment&&(c.comment?c.comment+=`
92
92
  `+y.comment:c.comment=y.comment),h=y.end;continue}!o&&r.options.strict&&Yr($)&&s($,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0)y.comma&&s(y.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`);else if(y.comma||s(y.start,"MISSING_CHAR",`Missing , between ${u} items`),y.comment){let C="";e:for(const A of v)switch(A.type){case"comma":case"space":break;case"comment":C=A.source.substring(1);break e;default:break e}if(C){let A=c.items[c.items.length-1];fe(A)&&(A=A.value??A.key),A.comment?A.comment+=`
93
93
  `+C:A.comment=C,y.comment=y.comment.substring(C.length+1)}}if(!o&&!f&&!y.found){const C=E?t(r,E,y,s):e(r,y.end,f,null,y,s);c.items.push(C),h=C.range[2],xs(E)&&s(C.range,"BLOCK_IN_FLOW",Ls)}else{r.atKey=!0;const C=y.end,A=$?t(r,$,y,s):e(r,C,v,null,y,s);xs($)&&s(A.range,"BLOCK_IN_FLOW",Ls),r.atKey=!1;const N=qt(f??[],{flow:u,indicator:"map-value-ind",next:E,offset:A.range[2],onError:s,parentIndent:n.indent,startOnNewline:!1});if(N.found){if(!o&&!y.found&&r.options.strict){if(f)for(const U of f){if(U===N.found)break;if(U.type==="newline"){s(U,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}y.start<N.found.offset-1024&&s(N.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source?.[0]===":"?s(E,"MISSING_CHAR",`Missing space after : in ${u}`):s(N.start,"MISSING_CHAR",`Missing , or : between ${u} items`));const k=E?t(r,E,N,s):N.found?e(r,N.end,f,null,N,s):null;k?xs(E)&&s(k.range,"BLOCK_IN_FLOW",Ls):N.comment&&(A.comment?A.comment+=`
94
94
  `+N.comment:A.comment=N.comment);const _=new Le(A,k);if(r.options.keepSourceTokens&&(_.srcToken=m),o){const U=c;rl(r,U.items,A)&&s(C,"DUPLICATE_KEY","Map keys must be unique"),U.items.push(_)}else{const U=new Pe(r.schema);U.flow=!0,U.items.push(_);const be=(k??A).range;U.range=[A.range[0],be[1],be[2]],c.items.push(U)}h=k?k.range[2]:N.end}}const d=o?"}":"]",[D,...b]=n.end;let p=h;if(D?.source===d)p=D.offset+D.source.length;else{const g=u[0].toUpperCase()+u.substring(1),m=l?`${g} must end with a ${d}`:`${g} in block collection must be sufficiently indented and end with a ${d}`;s(h,l?"MISSING_CHAR":"BAD_INDENT",m),D&&D.source.length!==1&&b.unshift(D)}if(b.length>0){const g=un(b,p,r.options.strict,s);g.comment&&(c.comment?c.comment+=`
@@ -129,7 +129,7 @@ ${c}
129
129
  ${n}`:n;else if(s||e.directives.docStart||!i)e.commentBefore=n;else if(ce(i)&&!i.flow&&i.items.length>0){let o=i.items[0];fe(o)&&(o=o.key);const u=o.commentBefore;o.commentBefore=u?`${n}
130
130
  ${u}`:n}else{const o=i.commentBefore;i.commentBefore=o?`${n}
131
131
  ${o}`:n}}if(r){for(let i=0;i<this.errors.length;++i)e.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)e.warnings.push(this.warnings[i])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:mu(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,r=!1,n=-1){for(const s of e)yield*this.next(s);yield*this.end(r,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(r,n,s)=>{const i=Pr(e);i[0]+=r,this.onError(i,"BAD_DIRECTIVE",n,s)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const r=mE(this.options,this.directives,e,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const r=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Rr(Pr(e),"UNEXPECTED_TOKEN",r);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new Rr(Pr(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const r=un(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const n=this.doc.comment;this.doc.comment=n?`${n}
132
- ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new Rr(Pr(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),s=new Co(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,r,r],this.decorate(s,!1),yield s}}};const ol="\uFEFF",ul="",al="",yi="";function yE(t){switch(t){case ol:return"byte-order-mark";case ul:return"doc-mode";case al:return"flow-error-end";case yi:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
132
+ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new Rr(Pr(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),s=new Co(void 0,n);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,r,r],this.decorate(s,!1),yield s}}};const ol="\uFEFF",ul="",al="",gi="";function yE(t){switch(t){case ol:return"byte-order-mark";case ul:return"doc-mode";case al:return"flow-error-end";case gi:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
133
133
  `:case`\r
134
134
  `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function _e(t){switch(t){case void 0:case" ":case`
135
135
  `:case"\r":case" ":return!0;default:return!1}}const gu=new Set("0123456789ABCDEFabcdef"),DE=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),gn=new Set(",[]{}"),EE=new Set(` ,[]{}
@@ -145,23 +145,23 @@ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.pus
145
145
  `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(e+1);if(i===-1)break;e=this.buffer.indexOf(`
146
146
  `,i)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let s=e+1;for(n=this.buffer[s];n===" ";)n=this.buffer[++s];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===`
147
147
  `;)n=this.buffer[++s];e=s-1}else if(!this.blockScalarKeep)do{let i=e-1,o=this.buffer[i];o==="\r"&&(o=this.buffer[--i]);const u=i;for(;o===" ";)o=this.buffer[--i];if(o===`
148
- `&&i>=this.pos&&i+1+r>u)e=i;else break}while(!0);return yield yi,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let r=this.pos-1,n=this.pos-1,s;for(;s=this.buffer[++n];)if(s===":"){const i=this.buffer[n+1];if(_e(i)||e&&gn.has(i))break;r=n}else if(_e(s)){let i=this.buffer[n+1];if(s==="\r"&&(i===`
148
+ `&&i>=this.pos&&i+1+r>u)e=i;else break}while(!0);return yield gi,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let r=this.pos-1,n=this.pos-1,s;for(;s=this.buffer[++n];)if(s===":"){const i=this.buffer[n+1];if(_e(i)||e&&gn.has(i))break;r=n}else if(_e(s)){let i=this.buffer[n+1];if(s==="\r"&&(i===`
149
149
  `?(n+=1,s=`
150
150
  `,i=this.buffer[n+1]):r=n),i==="#"||e&&gn.has(i))break;if(s===`
151
- `){const o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&gn.has(s))break;r=n}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield yi,yield*this.pushToIndex(r+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,r){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(Ps),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{const r=this.flowLevel>0,n=this.charAt(1);if(_e(n)||r&&gn.has(n)){r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,r=this.buffer[e];for(;!_e(r)&&r!==">";)r=this.buffer[++e];return yield*this.pushToIndex(r===">"?e+1:e,!1)}else{let e=this.pos+1,r=this.buffer[e];for(;r;)if(DE.has(r))r=this.buffer[++e];else if(r==="%"&&gu.has(this.buffer[e+1])&&gu.has(this.buffer[e+2]))r=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
151
+ `){const o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&gn.has(s))break;r=n}return!s&&!this.atEnd?this.setNext("plain-scalar"):(yield gi,yield*this.pushToIndex(r+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,r){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(r&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(Ps),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{const r=this.flowLevel>0,n=this.charAt(1);if(_e(n)||r&&gn.has(n)){r?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,r=this.buffer[e];for(;!_e(r)&&r!==">";)r=this.buffer[++e];return yield*this.pushToIndex(r===">"?e+1:e,!1)}else{let e=this.pos+1,r=this.buffer[e];for(;r;)if(DE.has(r))r=this.buffer[++e];else if(r==="%"&&gu.has(this.buffer[e+1])&&gu.has(this.buffer[e+2]))r=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
152
152
  `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
153
153
  `?yield*this.pushCount(2):0}*pushSpaces(e){let r=this.pos-1,n;do n=this.buffer[++r];while(n===" "||e&&n===" ");const s=r-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=r),s}*pushUntil(e){let r=this.pos,n=this.buffer[r];for(;!e(n);)n=this.buffer[++r];return yield*this.pushToIndex(r,!1)}},vE=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let r=0,n=this.lineStarts.length;for(;r<n;){const i=r+n>>1;this.lineStarts[i]<e?r=i+1:n=i}if(this.lineStarts[r]===e)return{line:r+1,col:1};if(r===0)return{line:0,col:e};const s=this.lineStarts[r-1];return{line:r,col:e-s+1}}}};function dt(t,e){for(let r=0;r<t.length;++r)if(t[r].type===e)return!0;return!1}function yu(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function cl(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function yn(t){switch(t.type){case"document":return t.start;case"block-map":{const e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}function Bt(t){if(t.length===0)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}function _n(t,e){if(e.length<1e5)Array.prototype.push.apply(t,e);else for(let r=0;r<e.length;++r)t.push(e[r])}function Du(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!dt(e.start,"explicit-key-ind")&&!dt(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,cl(e.value)?e.value.end?_n(e.value.end,e.sep):e.value.end=e.sep:_n(e.start,e.sep),delete e.sep)}let $E=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new bE,this.onNewLine=e}*parse(e,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(e,r))yield*this.next(n);r||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const r=yE(e);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const r=e??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{const n=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in n?n.indent:0:r.type==="flow-collection"&&n.type==="document"&&(r.indent=0),r.type==="flow-collection"&&Du(r),n.type){case"document":n.value=r;break;case"block-scalar":n.props.push(r);break;case"block-map":{const s=n.items[n.items.length-1];if(s.value){n.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(s.sep)s.value=r;else{Object.assign(s,{key:r,sep:[]}),this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{const s=n.items[n.items.length-1];s.value?n.items.push({start:[],value:r}):s.value=r;break}case"flow-collection":{const s=n.items[n.items.length-1];!s||s.value?n.items.push({start:[],key:r,sep:[]}):s.sep?s.value=r:Object.assign(s,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const s=r.items[r.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&yu(s.start)===-1&&(r.indent===0||s.start.every(i=>i.type!=="comment"||i.indent<r.indent))&&(n.type==="document"?n.end=s.start:n.items.push({start:s.start}),r.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{yu(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const r=yn(this.peek(2)),n=Bt(r);let s;e.end?(s=e.end,s.push(this.sourceToken),delete e.end):s=[this.sourceToken];const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
154
154
  `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
155
155
  `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const r=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,e.indent)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){_n(n,r.start),n.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent,s=n&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind";let i=[];if(s&&r.sep&&!r.value){const o=[];for(let u=0;u<r.sep.length;++u){const a=r.sep[u];switch(a.type){case"newline":o.push(u);break;case"space":break;case"comment":a.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(i=r.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":s||r.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):s||r.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(dt(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(cl(r.key)&&!dt(r.sep,"newline")){const o=Bt(r.start),u=r.key,a=r.sep;a.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:u,sep:a}]})}else i.length>0?r.sep=r.sep.concat(i,this.sourceToken):r.sep.push(this.sourceToken);else if(dt(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const o=Bt(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||s?e.items.push({start:i,key:null,sep:[this.sourceToken]}):dt(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);s||r.value?(e.items.push({start:i,key:o,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(o):(Object.assign(r,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!r.explicitKey&&r.sep&&!dt(r.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const r=e.items[e.items.length-1];switch(this.type){case"newline":if(r.value){const n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,e.indent)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){_n(n,r.start),n.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=e.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;r.value||dt(r.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>e.indent){const n=this.startBlockValue(e);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const r=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?e.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);!r||r.value?e.items.push({start:[],key:s,sep:[]}):r.sep?this.stack.push(s):Object.assign(r,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const s=yn(n),i=Bt(s);Du(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const u={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=u}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let r=this.source.indexOf(`
156
156
  `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
157
- `,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=yn(e),n=Bt(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=yn(e),n=Bt(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,r){return this.type!=="comment"||this.indent<=r?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function AE(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new vE||null,prettyErrors:e}}function CE(t,e={}){const{lineCounter:r,prettyErrors:n}=AE(e),s=new $E(r?.addNewLine),i=new gE(e);let o=null;for(const u of i.compose(s.parse(t),!0,t.length))if(!o)o=u;else if(o.options.logLevel!=="silent"){o.errors.push(new Rr(u.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(o.errors.forEach(pu(t,r)),o.warnings.forEach(pu(t,r))),o}function Rn(t,e,r){let n;typeof e=="function"?n=e:r===void 0&&e&&typeof e=="object"&&(r=e);const s=CE(t,r);if(!s)return null;if(s.warnings.forEach(i=>Lc(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function ll(t,e,r){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:r===void 0&&e&&(r=e),typeof r=="string"&&(r=r.length),typeof r=="number"){const s=Math.round(r);r=s<1?void 0:s>8?{indent:8}:{indent:s}}if(t===void 0){const{keepUndefined:s}=r??e??{};if(!s)return}return rn(t)&&!n?t.toString(r):new Co(t,n,r).toString(r)}var wE=Object.defineProperty,fl=(t,e)=>wE(t,"name",{value:e,configurable:!0}),SE=Object.defineProperty,FE=fl((t,e)=>SE(t,"name",{value:e,configurable:!0}),"r");async function hs(t,e,r){const{buffer:n,compression:s,encoding:i="utf8",flag:o,...u}=r??{},a=await Zi(t,{buffer:n,compression:s,encoding:i,flag:o});return typeof e=="function"?Rn(a,e,u):Rn(a,u)}fl(hs,"l");FE(hs,"readYaml");var OE=Object.defineProperty,hl=(t,e)=>OE(t,"name",{value:e,configurable:!0}),NE=Object.defineProperty,LE=hl((t,e)=>NE(t,"name",{value:e,configurable:!0}),"t");function ps(t,e,r){const{buffer:n,compression:s,encoding:i="utf8",flag:o,...u}=r??{},a=eo(t,{buffer:n,compression:s,encoding:i,flag:o});return typeof e=="function"?Rn(a,e,u):Rn(a,u)}hl(ps,"l");LE(ps,"readYamlSync");var xE=Object.defineProperty,pl=(t,e)=>xE(t,"name",{value:e,configurable:!0}),kE=Object.defineProperty,PE=pl((t,e)=>kE(t,"name",{value:e,configurable:!0}),"a");async function dl(t,e,r,n){let s,i,o;typeof r=="object"&&r!==null&&!Array.isArray(r)&&typeof r!="function"?(s=r,i=s.replacer,o=s.space):typeof n=="object"?(s=n,i=r,o=s.space):(i=r,o=n);const u=ll(e,i,o??s);await lc(t,u,s)}pl(dl,"c");PE(dl,"writeYaml");var BE=Object.defineProperty,ml=(t,e)=>BE(t,"name",{value:e,configurable:!0}),IE=Object.defineProperty,_E=ml((t,e)=>IE(t,"name",{value:e,configurable:!0}),"a");function gl(t,e,r,n){let s,i,o;typeof r=="object"&&r!==null&&!Array.isArray(r)&&typeof r!="function"?(s=r,i=s.replacer,o=s.space):typeof n=="object"?(s=n,i=r,o=s.space):(i=r,o=n);const u=ll(e,i,o??s);hc(t,u,s)}ml(gl,"c");_E(gl,"writeYamlSync");var RE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,TE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,jE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Bs={Space_Separator:RE,ID_Start:TE,ID_Continue:jE},ae={isSpaceSeparator(t){return typeof t=="string"&&Bs.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||Bs.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="‌"||t==="‍"||Bs.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}};let Di,Se,rt,Tn,yt,je,De,So,Kr;var ME=function(t,e){Di=String(t),Se="start",rt=[],Tn=0,yt=1,je=0,De=void 0,So=void 0,Kr=void 0;do De=GE(),KE[Se]();while(De.type!=="eof");return typeof e=="function"?Ei({"":Kr},"",e):Kr};function Ei(t,e,r){const n=t[e];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let s=0;s<n.length;s++){const i=String(s),o=Ei(n,i,r);o===void 0?delete n[i]:Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const s in n){const i=Ei(n,s,r);i===void 0?delete n[s]:Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,n)}let G,T,Tr,tt,q;function GE(){for(G="default",T="",Tr=!1,tt=1;;){q=ct();const t=yl[G]();if(t)return t}}function ct(){if(Di[Tn])return String.fromCodePoint(Di.codePointAt(Tn))}function O(){const t=ct();return t===`
157
+ `,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const r=yn(e),n=Bt(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const r=yn(e),n=Bt(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,r){return this.type!=="comment"||this.indent<=r?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function AE(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new vE||null,prettyErrors:e}}function CE(t,e={}){const{lineCounter:r,prettyErrors:n}=AE(e),s=new $E(r?.addNewLine),i=new gE(e);let o=null;for(const u of i.compose(s.parse(t),!0,t.length))if(!o)o=u;else if(o.options.logLevel!=="silent"){o.errors.push(new Rr(u.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(o.errors.forEach(pu(t,r)),o.warnings.forEach(pu(t,r))),o}function Rn(t,e,r){let n;typeof e=="function"?n=e:r===void 0&&e&&typeof e=="object"&&(r=e);const s=CE(t,r);if(!s)return null;if(s.warnings.forEach(i=>Lc(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[]}return s.toJS(Object.assign({reviver:n},r))}function ll(t,e,r){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:r===void 0&&e&&(r=e),typeof r=="string"&&(r=r.length),typeof r=="number"){const s=Math.round(r);r=s<1?void 0:s>8?{indent:8}:{indent:s}}if(t===void 0){const{keepUndefined:s}=r??e??{};if(!s)return}return rn(t)&&!n?t.toString(r):new Co(t,n,r).toString(r)}var wE=Object.defineProperty,fl=(t,e)=>wE(t,"name",{value:e,configurable:!0}),SE=Object.defineProperty,FE=fl((t,e)=>SE(t,"name",{value:e,configurable:!0}),"r");async function hs(t,e,r){const{buffer:n,compression:s,encoding:i="utf8",flag:o,...u}=r??{},a=await Zi(t,{buffer:n,compression:s,encoding:i,flag:o});return typeof e=="function"?Rn(a,e,u):Rn(a,u)}fl(hs,"l");FE(hs,"readYaml");var OE=Object.defineProperty,hl=(t,e)=>OE(t,"name",{value:e,configurable:!0}),NE=Object.defineProperty,LE=hl((t,e)=>NE(t,"name",{value:e,configurable:!0}),"t");function ps(t,e,r){const{buffer:n,compression:s,encoding:i="utf8",flag:o,...u}=r??{},a=eo(t,{buffer:n,compression:s,encoding:i,flag:o});return typeof e=="function"?Rn(a,e,u):Rn(a,u)}hl(ps,"l");LE(ps,"readYamlSync");var xE=Object.defineProperty,pl=(t,e)=>xE(t,"name",{value:e,configurable:!0}),kE=Object.defineProperty,PE=pl((t,e)=>kE(t,"name",{value:e,configurable:!0}),"a");async function dl(t,e,r,n){let s,i,o;typeof r=="object"&&r!==null&&!Array.isArray(r)&&typeof r!="function"?(s=r,i=s.replacer,o=s.space):typeof n=="object"?(s=n,i=r,o=s.space):(i=r,o=n);const u=ll(e,i,o??s);await lc(t,u,s)}pl(dl,"c");PE(dl,"writeYaml");var BE=Object.defineProperty,ml=(t,e)=>BE(t,"name",{value:e,configurable:!0}),IE=Object.defineProperty,_E=ml((t,e)=>IE(t,"name",{value:e,configurable:!0}),"a");function gl(t,e,r,n){let s,i,o;typeof r=="object"&&r!==null&&!Array.isArray(r)&&typeof r!="function"?(s=r,i=s.replacer,o=s.space):typeof n=="object"?(s=n,i=r,o=s.space):(i=r,o=n);const u=ll(e,i,o??s);hc(t,u,s)}ml(gl,"c");_E(gl,"writeYamlSync");var RE=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,TE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,jE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Bs={Space_Separator:RE,ID_Start:TE,ID_Continue:jE},ae={isSpaceSeparator(t){return typeof t=="string"&&Bs.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||Bs.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="‌"||t==="‍"||Bs.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}};let yi,Se,rt,Tn,yt,je,De,So,Kr;var ME=function(t,e){yi=String(t),Se="start",rt=[],Tn=0,yt=1,je=0,De=void 0,So=void 0,Kr=void 0;do De=GE(),KE[Se]();while(De.type!=="eof");return typeof e=="function"?Di({"":Kr},"",e):Kr};function Di(t,e,r){const n=t[e];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let s=0;s<n.length;s++){const i=String(s),o=Di(n,i,r);o===void 0?delete n[i]:Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const s in n){const i=Di(n,s,r);i===void 0?delete n[s]:Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0})}return r.call(t,e,n)}let G,T,Tr,tt,q;function GE(){for(G="default",T="",Tr=!1,tt=1;;){q=ct();const t=yl[G]();if(t)return t}}function ct(){if(yi[Tn])return String.fromCodePoint(yi.codePointAt(Tn))}function O(){const t=ct();return t===`
158
158
  `?(yt++,je=0):t?je+=t.length:je++,t&&(Tn+=t.length),t}const yl={default(){switch(q){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
159
159
  `:case"\r":case"\u2028":case"\u2029":O();return;case"/":O(),G="comment";return;case void 0:return O(),Z("eof")}if(ae.isSpaceSeparator(q)){O();return}return yl[Se]()},comment(){switch(q){case"*":O(),G="multiLineComment";return;case"/":O(),G="singleLineComment";return}throw re(O())},multiLineComment(){switch(q){case"*":O(),G="multiLineCommentAsterisk";return;case void 0:throw re(O())}O()},multiLineCommentAsterisk(){switch(q){case"*":O();return;case"/":O(),G="default";return;case void 0:throw re(O())}O(),G="multiLineComment"},singleLineComment(){switch(q){case`
160
- `:case"\r":case"\u2028":case"\u2029":O(),G="default";return;case void 0:return O(),Z("eof")}O()},value(){switch(q){case"{":case"[":return Z("punctuator",O());case"n":return O(),At("ull"),Z("null",null);case"t":return O(),At("rue"),Z("boolean",!0);case"f":return O(),At("alse"),Z("boolean",!1);case"-":case"+":O()==="-"&&(tt=-1),G="sign";return;case".":T=O(),G="decimalPointLeading";return;case"0":T=O(),G="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":T=O(),G="decimalInteger";return;case"I":return O(),At("nfinity"),Z("numeric",1/0);case"N":return O(),At("aN"),Z("numeric",NaN);case'"':case"'":Tr=O()==='"',T="",G="string";return}throw re(O())},identifierNameStartEscape(){if(q!=="u")throw re(O());O();const t=bi();switch(t){case"$":case"_":break;default:if(!ae.isIdStartChar(t))throw Eu();break}T+=t,G="identifierName"},identifierName(){switch(q){case"$":case"_":case"‌":case"‍":T+=O();return;case"\\":O(),G="identifierNameEscape";return}if(ae.isIdContinueChar(q)){T+=O();return}return Z("identifier",T)},identifierNameEscape(){if(q!=="u")throw re(O());O();const t=bi();switch(t){case"$":case"_":case"‌":case"‍":break;default:if(!ae.isIdContinueChar(t))throw Eu();break}T+=t,G="identifierName"},sign(){switch(q){case".":T=O(),G="decimalPointLeading";return;case"0":T=O(),G="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":T=O(),G="decimalInteger";return;case"I":return O(),At("nfinity"),Z("numeric",tt*(1/0));case"N":return O(),At("aN"),Z("numeric",NaN)}throw re(O())},zero(){switch(q){case".":T+=O(),G="decimalPoint";return;case"e":case"E":T+=O(),G="decimalExponent";return;case"x":case"X":T+=O(),G="hexadecimal";return}return Z("numeric",tt*0)},decimalInteger(){switch(q){case".":T+=O(),G="decimalPoint";return;case"e":case"E":T+=O(),G="decimalExponent";return}if(ae.isDigit(q)){T+=O();return}return Z("numeric",tt*Number(T))},decimalPointLeading(){if(ae.isDigit(q)){T+=O(),G="decimalFraction";return}throw re(O())},decimalPoint(){switch(q){case"e":case"E":T+=O(),G="decimalExponent";return}if(ae.isDigit(q)){T+=O(),G="decimalFraction";return}return Z("numeric",tt*Number(T))},decimalFraction(){switch(q){case"e":case"E":T+=O(),G="decimalExponent";return}if(ae.isDigit(q)){T+=O();return}return Z("numeric",tt*Number(T))},decimalExponent(){switch(q){case"+":case"-":T+=O(),G="decimalExponentSign";return}if(ae.isDigit(q)){T+=O(),G="decimalExponentInteger";return}throw re(O())},decimalExponentSign(){if(ae.isDigit(q)){T+=O(),G="decimalExponentInteger";return}throw re(O())},decimalExponentInteger(){if(ae.isDigit(q)){T+=O();return}return Z("numeric",tt*Number(T))},hexadecimal(){if(ae.isHexDigit(q)){T+=O(),G="hexadecimalInteger";return}throw re(O())},hexadecimalInteger(){if(ae.isHexDigit(q)){T+=O();return}return Z("numeric",tt*Number(T))},string(){switch(q){case"\\":O(),T+=UE();return;case'"':if(Tr)return O(),Z("string",T);T+=O();return;case"'":if(!Tr)return O(),Z("string",T);T+=O();return;case`
160
+ `:case"\r":case"\u2028":case"\u2029":O(),G="default";return;case void 0:return O(),Z("eof")}O()},value(){switch(q){case"{":case"[":return Z("punctuator",O());case"n":return O(),At("ull"),Z("null",null);case"t":return O(),At("rue"),Z("boolean",!0);case"f":return O(),At("alse"),Z("boolean",!1);case"-":case"+":O()==="-"&&(tt=-1),G="sign";return;case".":T=O(),G="decimalPointLeading";return;case"0":T=O(),G="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":T=O(),G="decimalInteger";return;case"I":return O(),At("nfinity"),Z("numeric",1/0);case"N":return O(),At("aN"),Z("numeric",NaN);case'"':case"'":Tr=O()==='"',T="",G="string";return}throw re(O())},identifierNameStartEscape(){if(q!=="u")throw re(O());O();const t=Ei();switch(t){case"$":case"_":break;default:if(!ae.isIdStartChar(t))throw Eu();break}T+=t,G="identifierName"},identifierName(){switch(q){case"$":case"_":case"‌":case"‍":T+=O();return;case"\\":O(),G="identifierNameEscape";return}if(ae.isIdContinueChar(q)){T+=O();return}return Z("identifier",T)},identifierNameEscape(){if(q!=="u")throw re(O());O();const t=Ei();switch(t){case"$":case"_":case"‌":case"‍":break;default:if(!ae.isIdContinueChar(t))throw Eu();break}T+=t,G="identifierName"},sign(){switch(q){case".":T=O(),G="decimalPointLeading";return;case"0":T=O(),G="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":T=O(),G="decimalInteger";return;case"I":return O(),At("nfinity"),Z("numeric",tt*(1/0));case"N":return O(),At("aN"),Z("numeric",NaN)}throw re(O())},zero(){switch(q){case".":T+=O(),G="decimalPoint";return;case"e":case"E":T+=O(),G="decimalExponent";return;case"x":case"X":T+=O(),G="hexadecimal";return}return Z("numeric",tt*0)},decimalInteger(){switch(q){case".":T+=O(),G="decimalPoint";return;case"e":case"E":T+=O(),G="decimalExponent";return}if(ae.isDigit(q)){T+=O();return}return Z("numeric",tt*Number(T))},decimalPointLeading(){if(ae.isDigit(q)){T+=O(),G="decimalFraction";return}throw re(O())},decimalPoint(){switch(q){case"e":case"E":T+=O(),G="decimalExponent";return}if(ae.isDigit(q)){T+=O(),G="decimalFraction";return}return Z("numeric",tt*Number(T))},decimalFraction(){switch(q){case"e":case"E":T+=O(),G="decimalExponent";return}if(ae.isDigit(q)){T+=O();return}return Z("numeric",tt*Number(T))},decimalExponent(){switch(q){case"+":case"-":T+=O(),G="decimalExponentSign";return}if(ae.isDigit(q)){T+=O(),G="decimalExponentInteger";return}throw re(O())},decimalExponentSign(){if(ae.isDigit(q)){T+=O(),G="decimalExponentInteger";return}throw re(O())},decimalExponentInteger(){if(ae.isDigit(q)){T+=O();return}return Z("numeric",tt*Number(T))},hexadecimal(){if(ae.isHexDigit(q)){T+=O(),G="hexadecimalInteger";return}throw re(O())},hexadecimalInteger(){if(ae.isHexDigit(q)){T+=O();return}return Z("numeric",tt*Number(T))},string(){switch(q){case"\\":O(),T+=UE();return;case'"':if(Tr)return O(),Z("string",T);T+=O();return;case"'":if(!Tr)return O(),Z("string",T);T+=O();return;case`
161
161
  `:case"\r":throw re(O());case"\u2028":case"\u2029":WE(q);break;case void 0:throw re(O())}T+=O()},start(){switch(q){case"{":case"[":return Z("punctuator",O())}G="value"},beforePropertyName(){switch(q){case"$":case"_":T=O(),G="identifierName";return;case"\\":O(),G="identifierNameStartEscape";return;case"}":return Z("punctuator",O());case'"':case"'":Tr=O()==='"',G="string";return}if(ae.isIdStartChar(q)){T+=O(),G="identifierName";return}throw re(O())},afterPropertyName(){if(q===":")return Z("punctuator",O());throw re(O())},beforePropertyValue(){G="value"},afterPropertyValue(){switch(q){case",":case"}":return Z("punctuator",O())}throw re(O())},beforeArrayValue(){if(q==="]")return Z("punctuator",O());G="value"},afterArrayValue(){switch(q){case",":case"]":return Z("punctuator",O())}throw re(O())},end(){throw re(O())}};function Z(t,e){return{type:t,value:e,line:yt,column:je}}function At(t){for(const e of t){if(ct()!==e)throw re(O());O()}}function UE(){switch(ct()){case"b":return O(),"\b";case"f":return O(),"\f";case"n":return O(),`
162
- `;case"r":return O(),"\r";case"t":return O()," ";case"v":return O(),"\v";case"0":if(O(),ae.isDigit(ct()))throw re(O());return"\0";case"x":return O(),HE();case"u":return O(),bi();case`
162
+ `;case"r":return O(),"\r";case"t":return O()," ";case"v":return O(),"\v";case"0":if(O(),ae.isDigit(ct()))throw re(O());return"\0";case"x":return O(),HE();case"u":return O(),Ei();case`
163
163
  `:case"\u2028":case"\u2029":return O(),"";case"\r":return O(),ct()===`
164
- `&&O(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw re(O());case void 0:throw re(O())}return O()}function HE(){let t="",e=ct();if(!ae.isHexDigit(e)||(t+=O(),e=ct(),!ae.isHexDigit(e)))throw re(O());return t+=O(),String.fromCodePoint(parseInt(t,16))}function bi(){let t="",e=4;for(;e-- >0;){const r=ct();if(!ae.isHexDigit(r))throw re(O());t+=O()}return String.fromCodePoint(parseInt(t,16))}const KE={start(){if(De.type==="eof")throw Ct();Is()},beforePropertyName(){switch(De.type){case"identifier":case"string":So=De.value,Se="afterPropertyName";return;case"punctuator":Dn();return;case"eof":throw Ct()}},afterPropertyName(){if(De.type==="eof")throw Ct();Se="beforePropertyValue"},beforePropertyValue(){if(De.type==="eof")throw Ct();Is()},beforeArrayValue(){if(De.type==="eof")throw Ct();if(De.type==="punctuator"&&De.value==="]"){Dn();return}Is()},afterPropertyValue(){if(De.type==="eof")throw Ct();switch(De.value){case",":Se="beforePropertyName";return;case"}":Dn()}},afterArrayValue(){if(De.type==="eof")throw Ct();switch(De.value){case",":Se="beforeArrayValue";return;case"]":Dn()}},end(){}};function Is(){let t;switch(De.type){case"punctuator":switch(De.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=De.value;break}if(Kr===void 0)Kr=t;else{const e=rt[rt.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,So,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(t!==null&&typeof t=="object")rt.push(t),Array.isArray(t)?Se="beforeArrayValue":Se="beforePropertyName";else{const e=rt[rt.length-1];e==null?Se="end":Array.isArray(e)?Se="afterArrayValue":Se="afterPropertyValue"}}function Dn(){rt.pop();const t=rt[rt.length-1];t==null?Se="end":Array.isArray(t)?Se="afterArrayValue":Se="afterPropertyValue"}function re(t){return Fo(t===void 0?`JSON5: invalid end of input at ${yt}:${je}`:`JSON5: invalid character '${Dl(t)}' at ${yt}:${je}`)}function Ct(){return Fo(`JSON5: invalid end of input at ${yt}:${je}`)}function Eu(){return je-=5,Fo(`JSON5: invalid identifier character at ${yt}:${je}`)}function WE(t){console.warn(`JSON5: '${Dl(t)}' in strings is not valid ECMAScript; consider escaping`)}function Dl(t){const e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){const r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function Fo(t){const e=new SyntaxError(t);return e.lineNumber=yt,e.columnNumber=je,e}var qE=function(t,e,r){const n=[];let s="",i,o,u="",a;if(e!=null&&typeof e=="object"&&!Array.isArray(e)&&(r=e.space,a=e.quote,e=e.replacer),typeof e=="function")o=e;else if(Array.isArray(e)){i=[];for(const b of e){let p;typeof b=="string"?p=b:(typeof b=="number"||b instanceof String||b instanceof Number)&&(p=String(b)),p!==void 0&&i.indexOf(p)<0&&i.push(p)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),typeof r=="number"?r>0&&(r=Math.min(10,Math.floor(r)),u=" ".substr(0,r)):typeof r=="string"&&(u=r.substr(0,10)),c("",{"":t});function c(b,p){let g=p[b];switch(g!=null&&(typeof g.toJSON5=="function"?g=g.toJSON5(b):typeof g.toJSON=="function"&&(g=g.toJSON(b))),o&&(g=o.call(p,b,g)),g instanceof Number?g=Number(g):g instanceof String?g=String(g):g instanceof Boolean&&(g=g.valueOf()),g){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof g=="string")return l(g);if(typeof g=="number")return String(g);if(typeof g=="object")return Array.isArray(g)?D(g):h(g)}function l(b){const p={"'":.1,'"':.2},g={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let m="";for(let $=0;$<b.length;$++){const f=b[$];switch(f){case"'":case'"':p[f]++,m+=f;continue;case"\0":if(ae.isDigit(b[$+1])){m+="\\x00";continue}}if(g[f]){m+=g[f];continue}if(f<" "){let E=f.charCodeAt(0).toString(16);m+="\\x"+("00"+E).substring(E.length);continue}m+=f}const v=a||Object.keys(p).reduce(($,f)=>p[$]<p[f]?$:f);return m=m.replace(new RegExp(v,"g"),g[v]),v+m+v}function h(b){if(n.indexOf(b)>=0)throw TypeError("Converting circular structure to JSON5");n.push(b);let p=s;s=s+u;let g=i||Object.keys(b),m=[];for(const $ of g){const f=c($,b);if(f!==void 0){let E=d($)+":";u!==""&&(E+=" "),E+=f,m.push(E)}}let v;if(m.length===0)v="{}";else{let $;if(u==="")$=m.join(","),v="{"+$+"}";else{let f=`,
164
+ `&&O(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw re(O());case void 0:throw re(O())}return O()}function HE(){let t="",e=ct();if(!ae.isHexDigit(e)||(t+=O(),e=ct(),!ae.isHexDigit(e)))throw re(O());return t+=O(),String.fromCodePoint(parseInt(t,16))}function Ei(){let t="",e=4;for(;e-- >0;){const r=ct();if(!ae.isHexDigit(r))throw re(O());t+=O()}return String.fromCodePoint(parseInt(t,16))}const KE={start(){if(De.type==="eof")throw Ct();Is()},beforePropertyName(){switch(De.type){case"identifier":case"string":So=De.value,Se="afterPropertyName";return;case"punctuator":Dn();return;case"eof":throw Ct()}},afterPropertyName(){if(De.type==="eof")throw Ct();Se="beforePropertyValue"},beforePropertyValue(){if(De.type==="eof")throw Ct();Is()},beforeArrayValue(){if(De.type==="eof")throw Ct();if(De.type==="punctuator"&&De.value==="]"){Dn();return}Is()},afterPropertyValue(){if(De.type==="eof")throw Ct();switch(De.value){case",":Se="beforePropertyName";return;case"}":Dn()}},afterArrayValue(){if(De.type==="eof")throw Ct();switch(De.value){case",":Se="beforeArrayValue";return;case"]":Dn()}},end(){}};function Is(){let t;switch(De.type){case"punctuator":switch(De.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=De.value;break}if(Kr===void 0)Kr=t;else{const e=rt[rt.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,So,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(t!==null&&typeof t=="object")rt.push(t),Array.isArray(t)?Se="beforeArrayValue":Se="beforePropertyName";else{const e=rt[rt.length-1];e==null?Se="end":Array.isArray(e)?Se="afterArrayValue":Se="afterPropertyValue"}}function Dn(){rt.pop();const t=rt[rt.length-1];t==null?Se="end":Array.isArray(t)?Se="afterArrayValue":Se="afterPropertyValue"}function re(t){return Fo(t===void 0?`JSON5: invalid end of input at ${yt}:${je}`:`JSON5: invalid character '${Dl(t)}' at ${yt}:${je}`)}function Ct(){return Fo(`JSON5: invalid end of input at ${yt}:${je}`)}function Eu(){return je-=5,Fo(`JSON5: invalid identifier character at ${yt}:${je}`)}function WE(t){console.warn(`JSON5: '${Dl(t)}' in strings is not valid ECMAScript; consider escaping`)}function Dl(t){const e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){const r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function Fo(t){const e=new SyntaxError(t);return e.lineNumber=yt,e.columnNumber=je,e}var qE=function(t,e,r){const n=[];let s="",i,o,u="",a;if(e!=null&&typeof e=="object"&&!Array.isArray(e)&&(r=e.space,a=e.quote,e=e.replacer),typeof e=="function")o=e;else if(Array.isArray(e)){i=[];for(const b of e){let p;typeof b=="string"?p=b:(typeof b=="number"||b instanceof String||b instanceof Number)&&(p=String(b)),p!==void 0&&i.indexOf(p)<0&&i.push(p)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),typeof r=="number"?r>0&&(r=Math.min(10,Math.floor(r)),u=" ".substr(0,r)):typeof r=="string"&&(u=r.substr(0,10)),c("",{"":t});function c(b,p){let g=p[b];switch(g!=null&&(typeof g.toJSON5=="function"?g=g.toJSON5(b):typeof g.toJSON=="function"&&(g=g.toJSON(b))),o&&(g=o.call(p,b,g)),g instanceof Number?g=Number(g):g instanceof String?g=String(g):g instanceof Boolean&&(g=g.valueOf()),g){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof g=="string")return l(g);if(typeof g=="number")return String(g);if(typeof g=="object")return Array.isArray(g)?D(g):h(g)}function l(b){const p={"'":.1,'"':.2},g={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let m="";for(let $=0;$<b.length;$++){const f=b[$];switch(f){case"'":case'"':p[f]++,m+=f;continue;case"\0":if(ae.isDigit(b[$+1])){m+="\\x00";continue}}if(g[f]){m+=g[f];continue}if(f<" "){let E=f.charCodeAt(0).toString(16);m+="\\x"+("00"+E).substring(E.length);continue}m+=f}const v=a||Object.keys(p).reduce(($,f)=>p[$]<p[f]?$:f);return m=m.replace(new RegExp(v,"g"),g[v]),v+m+v}function h(b){if(n.indexOf(b)>=0)throw TypeError("Converting circular structure to JSON5");n.push(b);let p=s;s=s+u;let g=i||Object.keys(b),m=[];for(const $ of g){const f=c($,b);if(f!==void 0){let E=d($)+":";u!==""&&(E+=" "),E+=f,m.push(E)}}let v;if(m.length===0)v="{}";else{let $;if(u==="")$=m.join(","),v="{"+$+"}";else{let f=`,
165
165
  `+s;$=m.join(f),v=`{
166
166
  `+s+$+`,
167
167
  `+p+"}"}}return n.pop(),s=p,v}function d(b){if(b.length===0)return l(b);const p=String.fromCodePoint(b.codePointAt(0));if(!ae.isIdStartChar(p))return l(b);for(let g=p.length;g<b.length;g++)if(!ae.isIdContinueChar(String.fromCodePoint(b.codePointAt(g))))return l(b);return b}function D(b){if(n.indexOf(b)>=0)throw TypeError("Converting circular structure to JSON5");n.push(b);let p=s;s=s+u;let g=[];for(let v=0;v<b.length;v++){const $=c(String(v),b);g.push($!==void 0?$:"null")}let m;if(g.length===0)m="[]";else if(u==="")m="["+g.join(",")+"]";else{let v=`,
@@ -171,7 +171,7 @@ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.pus
171
171
  `);let r=0;for(;e[r]&&e[r].trim().match(/^(#|$)/);)r++;const n=e.length;let s=r+1;for(;s<n&&e[s].trim();)s++;return e.slice(r,s).join(" ").trim()}return ni}var Ll={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},xl={web:"url",name:"url"},kl={server:"start",tests:"test"};const Db={topLevel:Ll,bugs:xl,script:kl},Eb=Object.defineProperty({__proto__:null,bugs:xl,default:Db,script:kl,topLevel:Ll},Symbol.toStringTag,{value:"Module"}),bb=Oo(Eb);var si,Hu;function vb(){if(Hu)return si;Hu=1;var{URL:t}=Sf,e=ZE(),r=eb(),n=ob(),s=gb(),{isBuiltin:i}=Af,o=["dependencies","devDependencies","optionalDependencies"],u=yb(),a=bb,c=f=>f.includes("@")&&f.indexOf("@")<f.lastIndexOf(".");si={warn:function(){},fixRepositoryField:function(f){if(f.repositories&&(this.warn("repositories"),f.repository=f.repositories[0]),!f.repository)return this.warn("missingRepository");typeof f.repository=="string"&&(f.repository={type:"git",url:f.repository});var E=f.repository.url||"";if(E){var y=s.fromUrl(E);y&&(E=f.repository.url=y.getDefaultRepresentation()==="shortcut"?y.https():y.toString())}E.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",E)},fixTypos:function(f){Object.keys(a.topLevel).forEach(function(E){Object.prototype.hasOwnProperty.call(f,E)&&this.warn("typo",E,a.topLevel[E])},this)},fixScriptsField:function(f){if(f.scripts){if(typeof f.scripts!="object"){this.warn("nonObjectScripts"),delete f.scripts;return}Object.keys(f.scripts).forEach(function(E){typeof f.scripts[E]!="string"?(this.warn("nonStringScript"),delete f.scripts[E]):a.script[E]&&!f.scripts[a.script[E]]&&this.warn("typo",E,a.script[E],"scripts")},this)}},fixFilesField:function(f){var E=f.files;E&&!Array.isArray(E)?(this.warn("nonArrayFiles"),delete f.files):f.files&&(f.files=f.files.filter(function(y){return!y||typeof y!="string"?(this.warn("invalidFilename",y),!1):!0},this))},fixBinField:function(f){if(f.bin&&typeof f.bin=="string"){var E={},y;(y=f.name.match(/^@[^/]+[/](.*)$/))?E[y[1]]=f.bin:E[f.name]=f.bin,f.bin=E}},fixManField:function(f){f.man&&typeof f.man=="string"&&(f.man=[f.man])},fixBundleDependenciesField:function(f){var E="bundledDependencies",y="bundleDependencies";f[E]&&!f[y]&&(f[y]=f[E],delete f[E]),f[y]&&!Array.isArray(f[y])?(this.warn("nonArrayBundleDependencies"),delete f[y]):f[y]&&(f[y]=f[y].filter(function(C){return!C||typeof C!="string"?(this.warn("nonStringBundleDependency",C),!1):(f.dependencies||(f.dependencies={}),Object.prototype.hasOwnProperty.call(f.dependencies,C)||(this.warn("nonDependencyBundleDependency",C),f.dependencies[C]="*"),!0)},this))},fixDependencies:function(f){v(f,this.warn),g(f),this.fixBundleDependenciesField(f),["dependencies","devDependencies"].forEach(function(E){if(E in f){if(!f[E]||typeof f[E]!="object"){this.warn("nonObjectDependencies",E),delete f[E];return}Object.keys(f[E]).forEach(function(y){var C=f[E][y];typeof C!="string"&&(this.warn("nonStringDependency",y,JSON.stringify(C)),delete f[E][y]);var A=s.fromUrl(f[E][y]);A&&(f[E][y]=A.toString())},this)}},this)},fixModulesField:function(f){f.modules&&(this.warn("deprecatedModules"),delete f.modules)},fixKeywordsField:function(f){typeof f.keywords=="string"&&(f.keywords=f.keywords.split(/,\s+/)),f.keywords&&!Array.isArray(f.keywords)?(delete f.keywords,this.warn("nonArrayKeywords")):f.keywords&&(f.keywords=f.keywords.filter(function(E){return typeof E!="string"||!E?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(f,E){var y=!E;if(!f.version)return f.version="",!0;if(!e(f.version,y))throw new Error('Invalid version: "'+f.version+'"');return f.version=r(f.version,y),!0},fixPeople:function(f){D(f,b),D(f,p)},fixNameField:function(f,E){typeof E=="boolean"?E={strict:E}:typeof E>"u"&&(E={});var y=E.strict;if(!f.name&&!y){f.name="";return}if(typeof f.name!="string")throw new Error("name field must be a string.");y||(f.name=f.name.trim()),d(f.name,y,E.allowLegacyCase),i(f.name)&&this.warn("conflictingName",f.name)},fixDescriptionField:function(f){f.description&&typeof f.description!="string"&&(this.warn("nonStringDescription"),delete f.description),f.readme&&!f.description&&(f.description=u(f.readme)),f.description===void 0&&delete f.description,f.description||this.warn("missingDescription")},fixReadmeField:function(f){f.readme||(this.warn("missingReadme"),f.readme="ERROR: No README data found!")},fixBugsField:function(f){if(!f.bugs&&f.repository&&f.repository.url){var E=s.fromUrl(f.repository.url);E&&E.bugs()&&(f.bugs={url:E.bugs()})}else if(f.bugs){if(typeof f.bugs=="string")c(f.bugs)?f.bugs={email:f.bugs}:t.canParse(f.bugs)?f.bugs={url:f.bugs}:this.warn("nonEmailUrlBugsString");else{$(f.bugs,this.warn);var y=f.bugs;f.bugs={},y.url&&(t.canParse(y.url)?f.bugs.url=y.url:this.warn("nonUrlBugsUrlField")),y.email&&(typeof y.email=="string"&&c(y.email)?f.bugs.email=y.email:this.warn("nonEmailBugsEmailField"))}!f.bugs.email&&!f.bugs.url&&(delete f.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(f){if(!f.homepage&&f.repository&&f.repository.url){var E=s.fromUrl(f.repository.url);E&&E.docs()&&(f.homepage=E.docs())}if(f.homepage){if(typeof f.homepage!="string")return this.warn("nonUrlHomepage"),delete f.homepage;t.canParse(f.homepage)||(f.homepage="http://"+f.homepage)}},fixLicenseField:function(f){const E=f.license||f.licence;if(!E)return this.warn("missingLicense");if(typeof E!="string"||E.length<1||E.trim()==="")return this.warn("invalidLicense");if(!n(E).validForNewPackages)return this.warn("invalidLicense")}};function l(f){if(f.charAt(0)!=="@")return!1;var E=f.slice(1).split("/");return E.length!==2?!1:E[0]&&E[1]&&E[0]===encodeURIComponent(E[0])&&E[1]===encodeURIComponent(E[1])}function h(f){return!f.match(/[/@\s+%:]/)&&f===encodeURIComponent(f)}function d(f,E,y){if(f.charAt(0)==="."||!(l(f)||h(f))||E&&!y&&f!==f.toLowerCase()||f.toLowerCase()==="node_modules"||f.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(f))}function D(f,E){return f.author&&(f.author=E(f.author)),["maintainers","contributors"].forEach(function(y){Array.isArray(f[y])&&(f[y]=f[y].map(E))}),f}function b(f){if(typeof f=="string")return f;var E=f.name||"",y=f.url||f.web,C=y?" ("+y+")":"",A=f.email||f.mail,N=A?" <"+A+">":"";return E+N+C}function p(f){if(typeof f!="string")return f;var E=f.match(/^([^(<]+)/),y=f.match(/\(([^()]+)\)/),C=f.match(/<([^<>]+)>/),A={};return E&&E[0].trim()&&(A.name=E[0].trim()),C&&(A.email=C[1]),y&&(A.url=y[1]),A}function g(f){var E=f.optionalDependencies;if(E){var y=f.dependencies||{};Object.keys(E).forEach(function(C){y[C]=E[C]}),f.dependencies=y}}function m(f,E,y){if(!f)return{};if(typeof f=="string"&&(f=f.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(f))return f;y("deprecatedArrayDependencies",E);var C={};return f.filter(function(A){return typeof A=="string"}).forEach(function(A){A=A.trim().split(/(:?[@\s><=])/);var N=A.shift(),k=A.join("");k=k.trim(),k=k.replace(/^@/,""),C[N]=k}),C}function v(f,E){o.forEach(function(y){f[y]&&(f[y]=m(f[y],y,E))})}function $(f,E){f&&Object.keys(f).forEach(function(y){a.bugs[y]&&(E("typo",y,a.bugs[y],"bugs"),f[a.bugs[y]]=f[y],delete f[y])})}return si}var Pl="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Bl="No repository field.",Il="Probably broken git url: %s",_l="scripts must be an object",Rl="script values must be string commands",Tl="Invalid 'files' member",jl="Invalid filename in 'files' list: %s",Ml="Invalid 'bundleDependencies' list. Must be array of package names",Gl="Invalid bundleDependencies member: %s",Ul="Non-dependency in bundleDependencies: %s",Hl="%s field must be an object",Kl="Invalid dependency: %s %s",Wl="specifying %s as array is deprecated",ql="modules field is deprecated",Vl="keywords should be an array of strings",Yl="keywords should be an array of strings",zl="%s is also the name of a node core module.",Xl="'description' field should be a string",Jl="No description",Ql="No README data",Zl="No license field.",ef="Bug string field must be url, email, or {email,url}",tf="bugs.url field must be a string url. Deleted.",rf="bugs.email field must be a string email. Deleted.",nf="Normalized value of bugs field is an empty object. Deleted.",sf="homepage field must be a string url. Deleted.",of="license should be a valid SPDX license expression",uf="%s should probably be %s.";const $b={repositories:Pl,missingRepository:Bl,brokenGitUrl:Il,nonObjectScripts:_l,nonStringScript:Rl,nonArrayFiles:Tl,invalidFilename:jl,nonArrayBundleDependencies:Ml,nonStringBundleDependency:Gl,nonDependencyBundleDependency:Ul,nonObjectDependencies:Hl,nonStringDependency:Kl,deprecatedArrayDependencies:Wl,deprecatedModules:ql,nonArrayKeywords:Vl,nonStringKeyword:Yl,conflictingName:zl,nonStringDescription:Xl,missingDescription:Jl,missingReadme:Ql,missingLicense:Zl,nonEmailUrlBugsString:ef,nonUrlBugsUrlField:tf,nonEmailBugsEmailField:rf,emptyNormalizedBugs:nf,nonUrlHomepage:sf,invalidLicense:of,typo:uf},Ab=Object.defineProperty({__proto__:null,brokenGitUrl:Il,conflictingName:zl,default:$b,deprecatedArrayDependencies:Wl,deprecatedModules:ql,emptyNormalizedBugs:nf,invalidFilename:jl,invalidLicense:of,missingDescription:Jl,missingLicense:Zl,missingReadme:Ql,missingRepository:Bl,nonArrayBundleDependencies:Ml,nonArrayFiles:Tl,nonArrayKeywords:Vl,nonDependencyBundleDependency:Ul,nonEmailBugsEmailField:rf,nonEmailUrlBugsString:ef,nonObjectDependencies:Hl,nonObjectScripts:_l,nonStringBundleDependency:Gl,nonStringDependency:Kl,nonStringDescription:Xl,nonStringKeyword:Yl,nonStringScript:Rl,nonUrlBugsUrlField:tf,nonUrlHomepage:sf,repositories:Pl,typo:uf},Symbol.toStringTag,{value:"Module"}),Cb=Oo(Ab);var ii,Ku;function wb(){if(Ku)return ii;Ku=1;var t=Ff,e=Cb;ii=function(){var n=Array.prototype.slice.call(arguments,0),s=n.shift();if(s==="typo")return r.apply(null,n);var i=e[s]?e[s]:s+": '%s'";return n.unshift(i),t.format.apply(null,n)};function r(n,s,i){return i&&(n=i+"['"+n+"']",s=i+"['"+s+"']"),t.format(e.typo,n,s)}return ii}var oi,Wu;function Sb(){if(Wu)return oi;Wu=1,oi=i;var t=vb();i.fixer=t;var e=wb(),r=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],n=["dependencies","people","typos"],s=r.map(function(u){return o(u)+"Field"});s=s.concat(n);function i(u,a,c){a===!0&&(a=null,c=!0),c||(c=!1),(!a||u.private)&&(a=function(){}),u.scripts&&u.scripts.install==="node-gyp rebuild"&&!u.scripts.preinstall&&(u.gypfile=!0),t.warn=function(){a(e.apply(null,arguments))},s.forEach(function(l){t["fix"+o(l)](u,c)}),u._id=u.name+"@"+u.version}function o(u){return u.charAt(0).toUpperCase()+u.slice(1)}return oi}var Fb=Sb();const Ob=YE(Fb);var Nb=Object.defineProperty,Lb=(t,e)=>Nb(t,"name",{value:e,configurable:!0}),xb=Object.defineProperty,nr=Lb((t,e)=>xb(t,"name",{value:e,configurable:!0}),"c");const af=nr((t,e,r)=>{const n=ee(t),s=ee(e),i=s===n?".":wf(n,s);return r.some(o=>{const u=o.startsWith("./")?o.slice(2):o,a=i.startsWith("./")?i.slice(2):i;if(u==="."&&a===".")return!0;if(u.endsWith("/**")){const c=u.slice(0,-3);return a===c||a.startsWith(`${c}/`)}if(u.endsWith("/*")){const c=u.slice(0,-2);return c===""?a!=="."&&!a.includes("/"):a.startsWith(`${c}/`)||a===c}return a===u||a.startsWith(`${u}/`)})},"isPackageInWorkspace"),cf=nr(async t=>{const e=await pa("pnpm-workspace.yaml",{cwd:ee(t),type:"file"});if(!e)return;const r=await hs(e),n=Array.isArray(r.packages)?r.packages:[];if(!af(e,t,n))return;const s={};return r.catalog&&typeof r.catalog=="object"&&(s.catalog=r.catalog),r.catalogs&&typeof r.catalogs=="object"&&(s.catalogs=r.catalogs),Object.keys(s).length>0?s:void 0},"readPnpmCatalogs"),lf=nr(t=>{const e=ga("pnpm-workspace.yaml",{cwd:ee(t),type:"file"});if(!e)return;const r=ps(e),n=Array.isArray(r.packages)?r.packages:[];if(!af(e,t,n))return;const s={};return r.catalog&&typeof r.catalog=="object"&&(s.catalog=r.catalog),r.catalogs&&typeof r.catalogs=="object"&&(s.catalogs=r.catalogs),Object.keys(s).length>0?s:void 0},"readPnpmCatalogsSync"),kb=nr((t,e,r)=>{if(e==="catalog:")return r.catalog?.[t];if(e.startsWith("catalog:")){const n=e.slice(8);return r.catalogs?.[n]?.[t]}},"resolveCatalogReference"),Pb=nr((t,e)=>{for(const[r,n]of Object.entries(t)){if(typeof n!="string")continue;const s=kb(r,n,e);s&&(t[r]=s)}},"resolveDependenciesCatalogReferences"),ds=nr((t,e)=>{const r=["dependencies","devDependencies","peerDependencies","optionalDependencies"];for(const n of r){if(!t[n]||typeof t[n]!="object")continue;const s=t[n];Pb(s,e)}},"resolveCatalogReferences");var Bb=Object.defineProperty,ge=(t,e)=>Bb(t,"name",{value:e,configurable:!0});const Ib=Y(import.meta.url),Br=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,No=ge(t=>{if(typeof Br<"u"&&Br.versions&&Br.versions.node){const[e,r]=Br.versions.node.split(".").map(Number);if(e>22||e===22&&r>=3||e===20&&r>=16)return Br.getBuiltinModule(t)}return Ib(t)},"__cjs_getBuiltinModule"),{existsSync:ff}=No("node:fs"),{createInterface:_b}=No("node:readline"),{styleText:ke}=No("node:util");var Rb=Object.defineProperty,$e=ge((t,e)=>Rb(t,"name",{value:e,configurable:!0}),"f");const Je=$e(t=>{const e=typeof t;return t!==null&&(e==="object"||e==="function")},"isObject"),Tb=$e(t=>{if(!Je(t))return!1;for(const e in t)if(Object.hasOwn(t,e))return!1;return!0},"isEmptyObject"),hf=new Set(["__proto__","prototype","constructor"]),pf=1e6,jb=$e(t=>t>="0"&&t<="9","isDigit");function sr(t){if(t==="0")return!0;if(/^[1-9]\d*$/.test(t)){const e=Number.parseInt(t,10);return e<=Number.MAX_SAFE_INTEGER&&e<=pf}return!1}ge(sr,"p$1");$e(sr,"shouldCoerceToNumber");function Wr(t,e){return hf.has(t)?!1:(t&&sr(t)?e.push(Number.parseInt(t,10)):e.push(t),!0)}ge(Wr,"y");$e(Wr,"processSegment");function Lo(t){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);const e=[];let r="",n="start",s=!1,i=0;for(const o of t){if(i++,s){r+=o,s=!1;continue}if(o==="\\"){if(n==="index")throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd")throw new Error(`Invalid character '${o}' after an index at position ${i}`);s=!0,n=n==="start"?"property":n;continue}switch(o){case".":{if(n==="index")throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd"){n="property";break}if(!Wr(r,e))return[];r="",n="property";break}case"[":{if(n==="index")throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd"){n="index";break}if(n==="property"||n==="start"){if((r||n==="property")&&!Wr(r,e))return[];r=""}n="index";break}case"]":{if(n==="index"){if(r==="")r=(e.pop()||"")+"[]",n="property";else{const u=Number.parseInt(r,10);!Number.isNaN(u)&&Number.isFinite(u)&&u>=0&&u<=Number.MAX_SAFE_INTEGER&&u<=pf&&r===String(u)?e.push(u):e.push(r),r="",n="indexEnd"}break}if(n==="indexEnd")throw new Error(`Invalid character '${o}' after an index at position ${i}`);r+=o;break}default:{if(n==="index"&&!jb(o))throw new Error(`Invalid character '${o}' in an index at position ${i}`);if(n==="indexEnd")throw new Error(`Invalid character '${o}' after an index at position ${i}`);n==="start"&&(n="property"),r+=o}}}switch(s&&(r+="\\"),n){case"property":{if(!Wr(r,e))return[];break}case"index":throw new Error("Index was not closed");case"start":{e.push("");break}}return e}ge(Lo,"parsePath");$e(Lo,"parsePath");function ir(t){if(typeof t=="string")return Lo(t);if(Array.isArray(t)){const e=[];for(const[r,n]of t.entries()){if(typeof n!="string"&&typeof n!="number")throw new TypeError(`Expected a string or number for path segment at index ${r}, got ${typeof n}`);if(typeof n=="number"&&!Number.isFinite(n))throw new TypeError(`Path segment at index ${r} must be a finite number, got ${n}`);if(hf.has(n))return[];typeof n=="string"&&sr(n)?e.push(Number.parseInt(n,10)):e.push(n)}return e}return[]}ge(ir,"d");$e(ir,"normalizePath");function lt(t,e,r){if(!Je(t)||typeof e!="string"&&!Array.isArray(e))return r===void 0?t:r;const n=ir(e);if(n.length===0)return r;for(let s=0;s<n.length;s++){const i=n[s];if(t=t[i],t==null){if(s!==n.length-1)return r;break}}return t===void 0?r:t}ge(lt,"getProperty");$e(lt,"getProperty");function xo(t,e,r){if(!Je(t)||typeof e!="string"&&!Array.isArray(e))return t;const n=t,s=ir(e);if(s.length===0)return t;for(let i=0;i<s.length;i++){const o=s[i];if(i===s.length-1)t[o]=r;else if(!Je(t[o])){const u=typeof s[i+1]=="number";t[o]=u?[]:{}}t=t[o]}return n}ge(xo,"setProperty");$e(xo,"setProperty");function df(t,e){if(!Je(t)||typeof e!="string"&&!Array.isArray(e))return!1;const r=ir(e);if(r.length===0)return!1;for(let n=0;n<r.length;n++){const s=r[n];if(n===r.length-1)return Object.hasOwn(t,s)?(delete t[s],!0):!1;if(t=t[s],!Je(t))return!1}}ge(df,"deleteProperty");$e(df,"deleteProperty");function Lt(t,e){if(!Je(t)||typeof e!="string"&&!Array.isArray(e))return!1;const r=ir(e);if(r.length===0)return!1;for(const n of r){if(!Je(t)||!(n in t))return!1;t=t[n]}return!0}ge(Lt,"hasProperty");$e(Lt,"hasProperty");function jn(t){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);return t.replaceAll(/[\\.[]/g,String.raw`\$&`)}ge(jn,"escapePath");$e(jn,"escapePath");function ko(t){const e=Object.entries(t);return Array.isArray(t)?e.map(([r,n])=>[sr(r)?Number.parseInt(r,10):r,n]):e}ge(ko,"m$2");$e(ko,"normalizeEntries");function Po(t,e={}){if(!Array.isArray(t))throw new TypeError(`Expected an array, got ${typeof t}`);const{preferDotForIndices:r=!1}=e,n=[];for(const[s,i]of t.entries()){if(typeof i!="string"&&typeof i!="number")throw new TypeError(`Expected a string or number for path segment at index ${s}, got ${typeof i}`);if(typeof i=="number")if(!Number.isInteger(i)||i<0){const o=jn(String(i));n.push(s===0?o:`.${o}`)}else r&&s>0?n.push(`.${i}`):n.push(`[${i}]`);else if(typeof i=="string")if(i==="")s===0||n.push(".");else if(sr(i)){const o=Number.parseInt(i,10);r&&s>0?n.push(`.${o}`):n.push(`[${o}]`)}else{const o=jn(i);n.push(s===0?o:`.${o}`)}}return n.join("")}ge(Po,"stringifyPath");$e(Po,"stringifyPath");function*ms(t,e=[],r=new Set){if(!Je(t)||Tb(t)){e.length>0&&(yield Po(e));return}if(!r.has(t)){r.add(t);for(const[n,s]of ko(t))e.push(n),yield*ms(s,e,r),e.pop();r.delete(t)}}ge(ms,"x");$e(ms,"deepKeysIterator");function mf(t){return[...ms(t)]}ge(mf,"deepKeys");$e(mf,"deepKeys");function gf(t){const e={};if(!Je(t))return e;for(const[r,n]of Object.entries(t))xo(e,r,n);return e}ge(gf,"unflatten");$e(gf,"unflatten");var Mb=Object.defineProperty,ui=ge((t,e)=>Mb(t,"name",{value:e,configurable:!0}),"i");const Gb=ui(async t=>{const{default:e=!1,message:r,transformer:n}=t,s=ui(o=>{const u=ke(["cyan","bold"],"?"),a=ke(["bold"],o),c=e?`${ke(["greenBright"],"Y")}${ke(["gray"],"/n")}`:`y/${ke(["yellowBright"],"N")}`;return`${u} ${a} ${ke(["gray"],`(${c})`)}`},"formatMessage"),i=ui(o=>n?n(o):o?ke(["greenBright"],"Yes"):ke(["yellowBright"],"No"),"formatAnswer");return new Promise(o=>{const u=_b({input:process.stdin,output:process.stdout}),a=s(r);u.question(a,c=>{u.close();const l=c.trim().toLowerCase();if(l===""){o(e);return}if(l==="y"||l==="yes"){console.log(`${ke(["greenBright"],"✓")} ${i(!0)}`),o(!0);return}if(l==="n"||l==="no"){console.log(`${ke(["yellowBright"],"✗")} ${i(!1)}`),o(!1);return}console.log(`${ke(["gray"],"→")} ${i(e)}`),o(e)}),u.on("SIGINT",()=>{u.close(),console.log(`
172
172
  ${ke(["gray"],"→")} ${i(e)}`),o(e)})})},"confirm"),Ub=typeof process.stdout<"u"&&!process.versions.deno&&!globalThis.window;var Hb=Object.defineProperty,Ee=ge((t,e)=>Hb(t,"name",{value:e,configurable:!0}),"l");const yf=/, ([^,]*)$/,Mn=new Map,Df=new Map;class Kb extends Error{static{ge(this,"M")}static{Ee(this,"PackageJsonValidationError")}constructor(e){super(`The following warnings were encountered while normalizing package data:
173
173
  - ${e.join(`
174
- - `)}`),this.name="PackageJsonValidationError"}}const gs=Ee((t,e,r=[])=>{const n=[];if(Ob(t,s=>{n.push(s)},e),e&&n.length>0){const s=n.filter(i=>!r.some(o=>o instanceof RegExp?o.test(i):o===i));if(s.length>0)throw new Kb(s)}return t},"normalizeInput"),Wb=Ee(async t=>await hs(t),"parseYamlFile"),qb=Ee(t=>ps(t),"parseYamlFileSync"),Vb=Ee(async t=>{const e=await Zi(t);return El.parse(e)},"parseJson5File"),Yb=Ee(t=>{const e=eo(t);return El.parse(e)},"parseJson5FileSync"),Ef=Ee(async(t,e)=>e?.yaml!==!1&&(t.endsWith(".yaml")||t.endsWith(".yml"))?Wb(t):e?.json5!==!1&&t.endsWith(".json5")?Vb(t):no(t),"parsePackageFile"),bf=Ee((t,e)=>e?.yaml!==!1&&(t.endsWith(".yaml")||t.endsWith(".yml"))?qb(t):e?.json5!==!1&&t.endsWith(".json5")?Yb(t):so(t),"parsePackageFileSync"),zb=Ee(async(t,e={})=>{const r={type:"file"};t&&(r.cwd=t);const n=["package.json"];e.yaml!==!1&&n.push("package.yaml","package.yml"),e.json5!==!1&&n.push("package.json5");let s;for(const a of n)if(s=await pa(a,r),s)break;if(!s)throw new bc(`No such file or directory, for ${n.join(", ").replace(yf," or $1")} found.`);const i=e.cache&&typeof e.cache!="boolean"?e.cache:Df;if(e.cache&&i.has(s))return i.get(s);const o=await Ef(s,e);if(e.resolveCatalogs){const a=await cf(s);a&&ds(o,a)}gs(o,e.strict??!1,e.ignoreWarnings);const u={packageJson:o,path:s};return e.cache&&i.set(s,u),u},"findPackageJson");Ee((t,e={})=>{const r={type:"file"};t&&(r.cwd=t);const n=["package.json"];e.yaml!==!1&&n.push("package.yaml","package.yml"),e.json5!==!1&&n.push("package.json5");let s;for(const a of n)if(s=ga(a,r),s)break;if(!s)throw new bc(`No such file or directory, for ${n.join(", ").replace(yf," or $1")} found.`);const i=e.cache&&typeof e.cache!="boolean"?e.cache:Df;if(e.cache&&i.has(s))return i.get(s);const o=bf(s,e);if(e.resolveCatalogs){const a=lf(s);a&&ds(o,a)}gs(o,e.strict??!1,e.ignoreWarnings);const u={packageJson:o,path:s};return e.cache&&i.set(s,u),u},"findPackageJsonSync");Ee(async(t,e={})=>{const{cwd:r,...n}=e,s=V(r??process.cwd());await jy(Vt(s,"package.json"),t,n)},"writePackageJson");Ee((t,e={})=>{const{cwd:r,...n}=e,s=V(r??process.cwd());qy(Vt(s,"package.json"),t,n)},"writePackageJsonSync");const q1=Ee((t,e)=>{const r=typeof t=="object"&&!Array.isArray(t);if(!r&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let n,s=!1,i;if(r)n=structuredClone(t);else if(ff(t)){i=t;const u=e?.cache&&typeof e.cache!="boolean"?e.cache:Mn;if(e?.cache&&u.has(i))return u.get(i);n=bf(i,e),s=!0}else n=Jt(t);if(e?.resolveCatalogs)if(s){const u=lf(t);u&&ds(n,u)}else throw new Error("The 'resolveCatalogs' option can only be used on a file path.");gs(n,e?.strict??!1,e?.ignoreWarnings);const o=n;return s&&e?.cache&&(typeof e.cache=="boolean"?Mn:e.cache).set(i,o),o},"parsePackageJsonSync"),V1=Ee(async(t,e)=>{const r=typeof t=="object"&&!Array.isArray(t);if(!r&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let n,s=!1,i;if(r)n=structuredClone(t);else if(ff(t)){i=t;const u=e?.cache&&typeof e.cache!="boolean"?e.cache:Mn;if(e?.cache&&u.has(i))return u.get(i);n=await Ef(i,e),s=!0}else n=Jt(t);if(e?.resolveCatalogs)if(s){const u=await cf(t);u&&ds(n,u)}else throw new Error("The 'resolveCatalogs' option can only be used on a file path.");gs(n,e?.strict??!1,e?.ignoreWarnings);const o=n;return s&&e?.cache&&(typeof e.cache=="boolean"?Mn:e.cache).set(i,o),o},"parsePackageJson");Ee((t,e,r)=>lt(t,e,r),"getPackageJsonProperty");Ee((t,e)=>Lt(t,e),"hasPackageJsonProperty");Ee((t,e,r)=>{const n=lt(t,"dependencies",{}),s=lt(t,"devDependencies",{}),i=lt(t,"peerDependencies",{}),o={...n,...s,...r?.peerDeps===!1?{}:i};for(const u of e)if(Lt(o,u))return!0;return!1},"hasPackageJsonAnyDependency");Ee(async(t,e,r="dependencies",n={})=>{const s=lt(t,"dependencies",{}),i=lt(t,"devDependencies",{}),o=lt(t,"peerDependencies",{}),u=[],a={deps:!0,devDeps:!0,peerDeps:!1,...n};for(const c of e)a.deps&&Lt(s,c)||a.devDeps&&Lt(i,c)||a.peerDeps&&Lt(o,c)||u.push(c);if(u.length!==0){if(process.env.CI||Ub&&!process.stdout.isTTY){const c=`Skipping package installation for [${e.join(", ")}] because the process is not interactive.`;if(n.throwOnWarn)throw new Error(c);n.logger?.warn?n.logger.warn(c):console.warn(c);return}if(typeof a.confirm?.message=="function"&&(a.confirm.message=a.confirm.message(u)),a.confirm?.message===void 0){const c=`${u.length===1?"Package is":"Packages are"} required for this config: ${u.join(", ")}. Do you want to install them?`;a.confirm===void 0?a.confirm={message:c}:a.confirm.message=c}await Gb(a.confirm)&&await Cf(u,{...a.installPackage,cwd:a.cwd?V(a.cwd):void 0,dev:r==="devDependencies"})}},"ensurePackages");var Xb=Object.defineProperty,Jb=(t,e)=>Xb(t,"name",{value:e,configurable:!0}),Qb=Object.defineProperty,ai=Jb((t,e)=>Qb(t,"name",{value:e,configurable:!0}),"a");const Y1=ai((t,e,r,n)=>{const{ignoreSideEffectsForRoot:s,...i}=t,o=new Map,u=new Of({...i,roots:[...i.roots??[],e],tsconfig:n?{configFile:n,references:"auto"}:void 0});return{name:"oxc-resolve",resolveId:{async handler(a,c,l){const{isEntry:h}=l,d=h||!c?ee(a):ee(c),{error:D,path:b}=await u.async(d,a);if(D){r.debug(D,{context:[{basedir:e,extensions:i.extensions,id:b}]});return}let p=ai(m=>!0,"hasModuleSideEffects");try{const{packageJson:m,path:v}=await zb(ee(b),{cache:o}),$=ee(v);if(!s||e!==$){const f=m.sideEffects;if(typeof f=="boolean")p=ai(()=>f,"hasModuleSideEffects");else if(Array.isArray(f)){const E=f.map(y=>y.includes("/")?y:`**/${y}`);p=qu(E,void 0,{resolve:$})}}}catch(m){const v=m instanceof Error?m.message:String(m);console.debug(v,{context:[{basedir:d,caller:"Resolver",error:m,extensions:i.extensions,id:b}]})}if(a.includes("?"))return{id:b,moduleSideEffects:p(b)};const g=await this.resolve(b,c,{skipSelf:!0,...l});if(g)return g.external?!1:g.id!==b?g:{id:b,meta:g.meta,moduleSideEffects:p(b)}},order:"post"}}},"oxcResolvePlugin"),L=Y(import.meta.url);new URL(".",import.meta.url).pathname;const{readFileSync:Zb}=L("node:fs");let it=null;const B=[],Ir=()=>{let t=!1;return process.platform==="linux"&&(t=t1(),t===null&&(t=r1()),t===null&&(t=n1())),t},e1=t=>t.includes("libc.musl-")||t.includes("ld-musl-"),t1=()=>{try{return Zb("/usr/bin/ldd","utf-8").includes("musl")}catch{return null}},r1=()=>{let t=null;return typeof process.report?.getReport=="function"&&(process.report.excludeNetwork=!0,t=process.report.getReport()),t?t.header&&t.header.glibcVersionRuntime?!1:!!(Array.isArray(t.sharedObjects)&&t.sharedObjects.some(e1)):null},n1=()=>{try{return L("child_process").execSync("ldd --version",{encoding:"utf8"}).includes("musl")}catch{return!1}};function s1(){if(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)try{return L(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)}catch(t){B.push(t)}else if(process.platform==="android")if(process.arch==="arm64"){try{return L("./transform.android-arm64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-android-arm64"),e=L("@oxc-transform/binding-android-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm"){try{return L("./transform.android-arm-eabi.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-android-arm-eabi"),e=L("@oxc-transform/binding-android-arm-eabi/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on Android ${process.arch}`));else if(process.platform==="win32")if(process.arch==="x64")if(process.config?.variables?.shlib_suffix==="dll.a"||process.config?.variables?.node_target_type==="shared_library"){try{return L("./transform.win32-x64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-win32-x64-gnu"),e=L("@oxc-transform/binding-win32-x64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.win32-x64-msvc.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-win32-x64-msvc"),e=L("@oxc-transform/binding-win32-x64-msvc/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="ia32"){try{return L("./transform.win32-ia32-msvc.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-win32-ia32-msvc"),e=L("@oxc-transform/binding-win32-ia32-msvc/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.win32-arm64-msvc.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-win32-arm64-msvc"),e=L("@oxc-transform/binding-win32-arm64-msvc/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));else if(process.platform==="darwin"){try{return L("./transform.darwin-universal.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-darwin-universal"),e=L("@oxc-transform/binding-darwin-universal/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}if(process.arch==="x64"){try{return L("./transform.darwin-x64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-darwin-x64"),e=L("@oxc-transform/binding-darwin-x64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.darwin-arm64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-darwin-arm64"),e=L("@oxc-transform/binding-darwin-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on macOS: ${process.arch}`))}else if(process.platform==="freebsd")if(process.arch==="x64"){try{return L("./transform.freebsd-x64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-freebsd-x64"),e=L("@oxc-transform/binding-freebsd-x64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.freebsd-arm64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-freebsd-arm64"),e=L("@oxc-transform/binding-freebsd-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));else if(process.platform==="linux")if(process.arch==="x64")if(Ir()){try{return L("./transform.linux-x64-musl.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-x64-musl"),e=L("@oxc-transform/binding-linux-x64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.linux-x64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-x64-gnu"),e=L("@oxc-transform/binding-linux-x64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm64")if(Ir()){try{return L("./transform.linux-arm64-musl.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-arm64-musl"),e=L("@oxc-transform/binding-linux-arm64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.linux-arm64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-arm64-gnu"),e=L("@oxc-transform/binding-linux-arm64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm")if(Ir()){try{return L("./transform.linux-arm-musleabihf.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-arm-musleabihf"),e=L("@oxc-transform/binding-linux-arm-musleabihf/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.linux-arm-gnueabihf.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-arm-gnueabihf"),e=L("@oxc-transform/binding-linux-arm-gnueabihf/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="loong64")if(Ir()){try{return L("./transform.linux-loong64-musl.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-loong64-musl"),e=L("@oxc-transform/binding-linux-loong64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.linux-loong64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-loong64-gnu"),e=L("@oxc-transform/binding-linux-loong64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="riscv64")if(Ir()){try{return L("./transform.linux-riscv64-musl.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-riscv64-musl"),e=L("@oxc-transform/binding-linux-riscv64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.linux-riscv64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-riscv64-gnu"),e=L("@oxc-transform/binding-linux-riscv64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="ppc64"){try{return L("./transform.linux-ppc64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-ppc64-gnu"),e=L("@oxc-transform/binding-linux-ppc64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="s390x"){try{return L("./transform.linux-s390x-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-s390x-gnu"),e=L("@oxc-transform/binding-linux-s390x-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on Linux: ${process.arch}`));else if(process.platform==="openharmony")if(process.arch==="arm64"){try{return L("./transform.openharmony-arm64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-openharmony-arm64"),e=L("@oxc-transform/binding-openharmony-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="x64"){try{return L("./transform.openharmony-x64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-openharmony-x64"),e=L("@oxc-transform/binding-openharmony-x64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm"){try{return L("./transform.openharmony-arm.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-openharmony-arm"),e=L("@oxc-transform/binding-openharmony-arm/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));else B.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`))}it=s1();if(!it||process.env.NAPI_RS_FORCE_WASI){let t=null,e=null;try{t=L("./transform.wasi.cjs"),it=t}catch(r){process.env.NAPI_RS_FORCE_WASI&&(e=r)}if(!it||process.env.NAPI_RS_FORCE_WASI)try{t=L("@oxc-transform/binding-wasm32-wasi"),it=t}catch(r){process.env.NAPI_RS_FORCE_WASI&&(e?e.cause=r:e=r,B.push(r))}if(process.env.NAPI_RS_FORCE_WASI==="error"&&!t){const r=new Error("WASI binding not found and NAPI_RS_FORCE_WASI is set to error");throw r.cause=e,r}}if(!it&&globalThis.process?.versions?.webcontainer)try{it=L("./webcontainer-fallback.cjs")}catch(t){B.push(t)}if(!it)throw B.length>0?new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.",{cause:B.reduce((t,e)=>(e.cause=t,e))}):new Error("Failed to load native binding");const{transform:i1}=it;var o1=Object.defineProperty,u1=(t,e)=>o1(t,"name",{value:e,configurable:!0}),a1=Object.defineProperty,c1=u1((t,e)=>a1(t,"name",{value:e,configurable:!0}),"s");const l1=c1(({exclude:t,include:e,...r})=>{const n=qu(e,t??Nf);return{name:"packem:oxc-transform",async transform(s,i){if(!n(i))return;const o=await i1(i,s,{...r,sourcemap:!0}),{code:u,errors:a,map:c}=o;if(a.length>0){const l=a.map(h=>typeof h=="string"?h:h.message??JSON.stringify(h));return this.error({message:[`
174
+ - `)}`),this.name="PackageJsonValidationError"}}const gs=Ee((t,e,r=[])=>{const n=[];if(Ob(t,s=>{n.push(s)},e),e&&n.length>0){const s=n.filter(i=>!r.some(o=>o instanceof RegExp?o.test(i):o===i));if(s.length>0)throw new Kb(s)}return t},"normalizeInput"),Wb=Ee(async t=>await hs(t),"parseYamlFile"),qb=Ee(t=>ps(t),"parseYamlFileSync"),Vb=Ee(async t=>{const e=await Zi(t);return El.parse(e)},"parseJson5File"),Yb=Ee(t=>{const e=eo(t);return El.parse(e)},"parseJson5FileSync"),Ef=Ee(async(t,e)=>e?.yaml!==!1&&(t.endsWith(".yaml")||t.endsWith(".yml"))?Wb(t):e?.json5!==!1&&t.endsWith(".json5")?Vb(t):no(t),"parsePackageFile"),bf=Ee((t,e)=>e?.yaml!==!1&&(t.endsWith(".yaml")||t.endsWith(".yml"))?qb(t):e?.json5!==!1&&t.endsWith(".json5")?Yb(t):so(t),"parsePackageFileSync"),zb=Ee(async(t,e={})=>{const r={type:"file"};t&&(r.cwd=t);const n=["package.json"];e.yaml!==!1&&n.push("package.yaml","package.yml"),e.json5!==!1&&n.push("package.json5");let s;for(const a of n)if(s=await pa(a,r),s)break;if(!s)throw new bc(`No such file or directory, for ${n.join(", ").replace(yf," or $1")} found.`);const i=e.cache&&typeof e.cache!="boolean"?e.cache:Df;if(e.cache&&i.has(s))return i.get(s);const o=await Ef(s,e);if(e.resolveCatalogs){const a=await cf(s);a&&ds(o,a)}gs(o,e.strict??!1,e.ignoreWarnings);const u={packageJson:o,path:s};return e.cache&&i.set(s,u),u},"findPackageJson");Ee((t,e={})=>{const r={type:"file"};t&&(r.cwd=t);const n=["package.json"];e.yaml!==!1&&n.push("package.yaml","package.yml"),e.json5!==!1&&n.push("package.json5");let s;for(const a of n)if(s=ga(a,r),s)break;if(!s)throw new bc(`No such file or directory, for ${n.join(", ").replace(yf," or $1")} found.`);const i=e.cache&&typeof e.cache!="boolean"?e.cache:Df;if(e.cache&&i.has(s))return i.get(s);const o=bf(s,e);if(e.resolveCatalogs){const a=lf(s);a&&ds(o,a)}gs(o,e.strict??!1,e.ignoreWarnings);const u={packageJson:o,path:s};return e.cache&&i.set(s,u),u},"findPackageJsonSync");Ee(async(t,e={})=>{const{cwd:r,...n}=e,s=V(r??process.cwd());await jy(Vt(s,"package.json"),t,n)},"writePackageJson");Ee((t,e={})=>{const{cwd:r,...n}=e,s=V(r??process.cwd());qy(Vt(s,"package.json"),t,n)},"writePackageJsonSync");const Y1=Ee((t,e)=>{const r=typeof t=="object"&&!Array.isArray(t);if(!r&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let n,s=!1,i;if(r)n=structuredClone(t);else if(ff(t)){i=t;const u=e?.cache&&typeof e.cache!="boolean"?e.cache:Mn;if(e?.cache&&u.has(i))return u.get(i);n=bf(i,e),s=!0}else n=Jt(t);if(e?.resolveCatalogs)if(s){const u=lf(t);u&&ds(n,u)}else throw new Error("The 'resolveCatalogs' option can only be used on a file path.");gs(n,e?.strict??!1,e?.ignoreWarnings);const o=n;return s&&e?.cache&&(typeof e.cache=="boolean"?Mn:e.cache).set(i,o),o},"parsePackageJsonSync"),z1=Ee(async(t,e)=>{const r=typeof t=="object"&&!Array.isArray(t);if(!r&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let n,s=!1,i;if(r)n=structuredClone(t);else if(ff(t)){i=t;const u=e?.cache&&typeof e.cache!="boolean"?e.cache:Mn;if(e?.cache&&u.has(i))return u.get(i);n=await Ef(i,e),s=!0}else n=Jt(t);if(e?.resolveCatalogs)if(s){const u=await cf(t);u&&ds(n,u)}else throw new Error("The 'resolveCatalogs' option can only be used on a file path.");gs(n,e?.strict??!1,e?.ignoreWarnings);const o=n;return s&&e?.cache&&(typeof e.cache=="boolean"?Mn:e.cache).set(i,o),o},"parsePackageJson");Ee((t,e,r)=>lt(t,e,r),"getPackageJsonProperty");Ee((t,e)=>Lt(t,e),"hasPackageJsonProperty");Ee((t,e,r)=>{const n=lt(t,"dependencies",{}),s=lt(t,"devDependencies",{}),i=lt(t,"peerDependencies",{}),o={...n,...s,...r?.peerDeps===!1?{}:i};for(const u of e)if(Lt(o,u))return!0;return!1},"hasPackageJsonAnyDependency");Ee(async(t,e,r="dependencies",n={})=>{const s=lt(t,"dependencies",{}),i=lt(t,"devDependencies",{}),o=lt(t,"peerDependencies",{}),u=[],a={deps:!0,devDeps:!0,peerDeps:!1,...n};for(const c of e)a.deps&&Lt(s,c)||a.devDeps&&Lt(i,c)||a.peerDeps&&Lt(o,c)||u.push(c);if(u.length!==0){if(process.env.CI||Ub&&!process.stdout.isTTY){const c=`Skipping package installation for [${e.join(", ")}] because the process is not interactive.`;if(n.throwOnWarn)throw new Error(c);n.logger?.warn?n.logger.warn(c):console.warn(c);return}if(typeof a.confirm?.message=="function"&&(a.confirm.message=a.confirm.message(u)),a.confirm?.message===void 0){const c=`${u.length===1?"Package is":"Packages are"} required for this config: ${u.join(", ")}. Do you want to install them?`;a.confirm===void 0?a.confirm={message:c}:a.confirm.message=c}await Gb(a.confirm)&&await Cf(u,{...a.installPackage,cwd:a.cwd?V(a.cwd):void 0,dev:r==="devDependencies"})}},"ensurePackages");var Xb=Object.defineProperty,Jb=(t,e)=>Xb(t,"name",{value:e,configurable:!0}),Qb=Object.defineProperty,bi=Jb((t,e)=>Qb(t,"name",{value:e,configurable:!0}),"c");const Zb=/^\0/,e1=bi((t,e)=>{if(typeof t=="boolean")return()=>t;if(Array.isArray(t)){const r=t.map(n=>n.includes("/")?n:`**/${n}`);return qu(r,void 0,{resolve:e})}return r=>!0},"buildSideEffectsPredicate"),X1=bi((t,e,r,n)=>{const{ignoreSideEffectsForRoot:s,...i}=t,o=new Map,u=new Of({...i,roots:[...i.roots??[],e],tsconfig:n?{configFile:n,references:"auto"}:void 0});return{name:"oxc-resolve",resolveId:{filter:{id:{exclude:Zb}},async handler(a,c,l){if(a.startsWith("\0"))return;const{isEntry:h}=l,d=h||!c?ee(a):ee(c),{error:D,path:b}=await u.async(d,a);if(D){r.debug(D,{context:[{basedir:e,extensions:i.extensions,id:b}]});return}let p=bi(m=>!0,"hasModuleSideEffects");try{const{packageJson:m,path:v}=await zb(ee(b),{cache:o}),$=ee(v);(!s||e!==$)&&(p=e1(m.sideEffects,$))}catch(m){const v=m instanceof Error?m.message:String(m);r.debug(v,{context:[{basedir:d,caller:"Resolver",error:m,extensions:i.extensions,id:b}]})}if(a.includes("?"))return{id:b,moduleSideEffects:p(b)};const g=await this.resolve(b,c,{skipSelf:!0,...l});if(g)return g.external?!1:g.id!==b?g:{id:b,meta:g.meta,moduleSideEffects:p(b)}},order:"post"}}},"oxcResolvePlugin"),L=Y(import.meta.url);new URL(".",import.meta.url).pathname;const{readFileSync:t1}=L("node:fs");let it=null;const B=[],Ir=()=>{let t=!1;return process.platform==="linux"&&(t=n1(),t===null&&(t=s1()),t===null&&(t=i1())),t},r1=t=>t.includes("libc.musl-")||t.includes("ld-musl-"),n1=()=>{try{return t1("/usr/bin/ldd","utf-8").includes("musl")}catch{return null}},s1=()=>{let t=null;return typeof process.report?.getReport=="function"&&(process.report.excludeNetwork=!0,t=process.report.getReport()),t?t.header&&t.header.glibcVersionRuntime?!1:!!(Array.isArray(t.sharedObjects)&&t.sharedObjects.some(r1)):null},i1=()=>{try{return L("child_process").execSync("ldd --version",{encoding:"utf8"}).includes("musl")}catch{return!1}};function o1(){if(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)try{return L(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)}catch(t){B.push(t)}else if(process.platform==="android")if(process.arch==="arm64"){try{return L("./transform.android-arm64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-android-arm64"),e=L("@oxc-transform/binding-android-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm"){try{return L("./transform.android-arm-eabi.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-android-arm-eabi"),e=L("@oxc-transform/binding-android-arm-eabi/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on Android ${process.arch}`));else if(process.platform==="win32")if(process.arch==="x64")if(process.config?.variables?.shlib_suffix==="dll.a"||process.config?.variables?.node_target_type==="shared_library"){try{return L("./transform.win32-x64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-win32-x64-gnu"),e=L("@oxc-transform/binding-win32-x64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.win32-x64-msvc.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-win32-x64-msvc"),e=L("@oxc-transform/binding-win32-x64-msvc/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="ia32"){try{return L("./transform.win32-ia32-msvc.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-win32-ia32-msvc"),e=L("@oxc-transform/binding-win32-ia32-msvc/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.win32-arm64-msvc.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-win32-arm64-msvc"),e=L("@oxc-transform/binding-win32-arm64-msvc/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));else if(process.platform==="darwin"){try{return L("./transform.darwin-universal.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-darwin-universal"),e=L("@oxc-transform/binding-darwin-universal/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}if(process.arch==="x64"){try{return L("./transform.darwin-x64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-darwin-x64"),e=L("@oxc-transform/binding-darwin-x64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.darwin-arm64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-darwin-arm64"),e=L("@oxc-transform/binding-darwin-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on macOS: ${process.arch}`))}else if(process.platform==="freebsd")if(process.arch==="x64"){try{return L("./transform.freebsd-x64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-freebsd-x64"),e=L("@oxc-transform/binding-freebsd-x64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.freebsd-arm64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-freebsd-arm64"),e=L("@oxc-transform/binding-freebsd-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));else if(process.platform==="linux")if(process.arch==="x64")if(Ir()){try{return L("./transform.linux-x64-musl.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-x64-musl"),e=L("@oxc-transform/binding-linux-x64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.linux-x64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-x64-gnu"),e=L("@oxc-transform/binding-linux-x64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm64")if(Ir()){try{return L("./transform.linux-arm64-musl.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-arm64-musl"),e=L("@oxc-transform/binding-linux-arm64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.linux-arm64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-arm64-gnu"),e=L("@oxc-transform/binding-linux-arm64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm")if(Ir()){try{return L("./transform.linux-arm-musleabihf.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-arm-musleabihf"),e=L("@oxc-transform/binding-linux-arm-musleabihf/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.linux-arm-gnueabihf.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-arm-gnueabihf"),e=L("@oxc-transform/binding-linux-arm-gnueabihf/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="loong64")if(Ir()){try{return L("./transform.linux-loong64-musl.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-loong64-musl"),e=L("@oxc-transform/binding-linux-loong64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.linux-loong64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-loong64-gnu"),e=L("@oxc-transform/binding-linux-loong64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="riscv64")if(Ir()){try{return L("./transform.linux-riscv64-musl.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-riscv64-musl"),e=L("@oxc-transform/binding-linux-riscv64-musl/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else{try{return L("./transform.linux-riscv64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-riscv64-gnu"),e=L("@oxc-transform/binding-linux-riscv64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="ppc64"){try{return L("./transform.linux-ppc64-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-ppc64-gnu"),e=L("@oxc-transform/binding-linux-ppc64-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="s390x"){try{return L("./transform.linux-s390x-gnu.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-linux-s390x-gnu"),e=L("@oxc-transform/binding-linux-s390x-gnu/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on Linux: ${process.arch}`));else if(process.platform==="openharmony")if(process.arch==="arm64"){try{return L("./transform.openharmony-arm64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-openharmony-arm64"),e=L("@oxc-transform/binding-openharmony-arm64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="x64"){try{return L("./transform.openharmony-x64.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-openharmony-x64"),e=L("@oxc-transform/binding-openharmony-x64/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else if(process.arch==="arm"){try{return L("./transform.openharmony-arm.node")}catch(t){B.push(t)}try{const t=L("@oxc-transform/binding-openharmony-arm"),e=L("@oxc-transform/binding-openharmony-arm/package.json").version;if(e!=="0.133.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.133.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){B.push(t)}}else B.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));else B.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`))}it=o1();if(!it||process.env.NAPI_RS_FORCE_WASI){let t=null,e=null;try{t=L("./transform.wasi.cjs"),it=t}catch(r){process.env.NAPI_RS_FORCE_WASI&&(e=r)}if(!it||process.env.NAPI_RS_FORCE_WASI)try{t=L("@oxc-transform/binding-wasm32-wasi"),it=t}catch(r){process.env.NAPI_RS_FORCE_WASI&&(e?e.cause=r:e=r,B.push(r))}if(process.env.NAPI_RS_FORCE_WASI==="error"&&!t){const r=new Error("WASI binding not found and NAPI_RS_FORCE_WASI is set to error");throw r.cause=e,r}}if(!it&&globalThis.process?.versions?.webcontainer)try{it=L("./webcontainer-fallback.cjs")}catch(t){B.push(t)}if(!it)throw B.length>0?new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.",{cause:B.reduce((t,e)=>(e.cause=t,e))}):new Error("Failed to load native binding");const{transform:u1}=it;var a1=Object.defineProperty,c1=(t,e)=>a1(t,"name",{value:e,configurable:!0}),l1=Object.defineProperty,f1=c1((t,e)=>l1(t,"name",{value:e,configurable:!0}),"s");const h1=f1(({exclude:t,include:e,...r})=>{const n=qu(e,t??Nf);return{name:"packem:oxc-transform",async transform(s,i){if(!n(i))return;const o=await u1(i,s,{...r,sourcemap:!0}),{code:u,errors:a,map:c}=o;if(a.length>0){const l=a.map(h=>typeof h=="string"?h:h.message??JSON.stringify(h));return this.error({message:[`
175
175
  transform errors:`,...l].join(`
176
176
 
177
- `),pluginCode:"ERR_TRANSFORM"})}return{code:u,map:c}}}},"oxcTransformPlugin");l1.NAME="oxc";export{q1 as A,Rn as E,ll as L,A1 as M,eo as P,V1 as S,Zi as T,$l as a,zE as b,vl as c,XE as d,bl as e,$1 as f,JE as g,ZE as h,El as i,Y1 as j,eb as k,hc as l,ot as m,vi as n,YE as o,Ob as p,QE as r,ut as s,l1 as t,zb as v};
177
+ `),pluginCode:"ERR_TRANSFORM"})}return{code:u,map:c}}}},"oxcTransformPlugin");h1.NAME="oxc";export{Y1 as A,Rn as E,ll as L,w1 as M,eo as P,z1 as S,Zi as T,$l as a,zE as b,vl as c,XE as d,bl as e,C1 as f,JE as g,ZE as h,El as i,X1 as j,eb as k,hc as l,ot as m,vi as n,YE as o,Ob as p,QE as r,ut as s,h1 as t,zb as v};