@tsmodule/tsmodule 40.18.0 → 40.19.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/bin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
4
4
 
5
5
  var yp=Object.create;var ga=Object.defineProperty;var Cp=Object.getOwnPropertyDescriptor;var bp=Object.getOwnPropertyNames;var vp=Object.getPrototypeOf,xp=Object.prototype.hasOwnProperty;var w=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var wp=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of bp(e))!xp.call(t,n)&&n!==r&&ga(t,n,{get:()=>e[n],enumerable:!(i=Cp(e,n))||i.enumerable});return t};var Ie=(t,e,r)=>(r=t!=null?yp(vp(t)):{},wp(e||!t||!t.__esModule?ga(r,"default",{value:t,enumerable:!0}):r,t));var tr=d(ln=>{var Fr=class extends Error{constructor(e,r,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},an=class extends Fr{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};ln.CommanderError=Fr;ln.InvalidArgumentError=an});var Mr=d(cn=>{var{InvalidArgumentError:Mp}=tr(),un=class{constructor(e,r){switch(this.description=r||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,i)=>{if(!this.argChoices.includes(r))throw new Mp(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,i):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function qp(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}cn.Argument=un;cn.humanReadableArgName=qp});var hn=d(Ia=>{var{humanReadableArgName:Hp}=Mr(),fn=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1}visibleCommands(e){let r=e.commands.filter(i=>!i._hidden);if(e._hasImplicitHelpCommand()){let[,i,n]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(i).helpOption(!1);s.description(e._helpCommandDescription),n&&s.arguments(n),r.push(s)}return this.sortSubcommands&&r.sort((i,n)=>i.name().localeCompare(n.name())),r}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),i=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),n=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(i||n){let s;i?n?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}if(this.sortOptions){let s=o=>o.short?o.short.replace(/^-/,""):o.long.replace(/^--/,"");r.sort((o,a)=>s(o).localeCompare(s(a)))}return r}visibleArguments(e){return e._argsDescription&&e._args.forEach(r=>{r.description=r.description||e._argsDescription[r.name()]||""}),e._args.find(r=>r.description)?e._args:[]}subcommandTerm(e){let r=e._args.map(i=>Hp(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(r?" "+r:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,r){return r.visibleCommands(e).reduce((i,n)=>Math.max(i,r.subcommandTerm(n).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((i,n)=>Math.max(i,r.optionTerm(n).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((i,n)=>Math.max(i,r.argumentTerm(n).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let i="";for(let n=e.parent;n;n=n.parent)i=n.name()+" "+i;return i+r+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let r=[];return e.argChoices&&r.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&r.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&r.push(`env: ${e.envVar}`),r.length>0?`${e.description} (${r.join(", ")})`:e.description}argumentDescription(e){let r=[];if(e.argChoices&&r.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let i=`(${r.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,r){let i=r.padWidth(e,r),n=r.helpWidth||80,s=2,o=2;function a(g,_){if(_){let x=`${g.padEnd(i+o)}${_}`;return r.wrap(x,n-s,i+o)}return g}function l(g){return g.join(`
6
6
  `).replace(/^/gm," ".repeat(s))}let c=[`Usage: ${r.commandUsage(e)}`,""],u=r.commandDescription(e);u.length>0&&(c=c.concat([u,""]));let f=r.visibleArguments(e).map(g=>a(r.argumentTerm(g),r.argumentDescription(g)));f.length>0&&(c=c.concat(["Arguments:",l(f),""]));let h=r.visibleOptions(e).map(g=>a(r.optionTerm(g),r.optionDescription(g)));h.length>0&&(c=c.concat(["Options:",l(h),""]));let y=r.visibleCommands(e).map(g=>a(r.subcommandTerm(g),r.subcommandDescription(g)));return y.length>0&&(c=c.concat(["Commands:",l(y),""])),c.join(`
@@ -44,9 +44,9 @@ import ReactDOM from "react-dom";
44
44
  `,Th=t=>{let e=` ${t} `;Ce(S.bgBlue(S.bold(S.white(e))))},Fh=t=>{let e=` ${t} `;Ce(S.bgRed(S.bold(S.white(e))))},_y=async()=>{let t;if(Sr("dist")||await Lh("dist"),Sr("dist/package.json")?t=JSON.parse(await Ph("dist/package.json","utf-8")):t={},t?.module==="module")return!0;t.type="module",await hy("dist/package.json",JSON.stringify(t,null,2))},kh=(t,e,r)=>{e=Wt(e);let i=Yo(e);return{stdin:{contents:t,sourcefile:e,resolveDir:Nh(e),loader:r},outdir:void 0,outfile:i}},Dh=async(t,e,r)=>{t=Wt(t),e=Wt(e);let o=["yarn tailwindcss",r?"":"--minify","--postcss postcss.config.js",`-i ${t}`,`-o ${e}`];Sr(Wt(process.cwd(),"tailwind.config.js"))&&o.push("--config tailwind.config.js");let a=Ae({log:!1,stdio:"ignore"}),l=o.join(" "),{code:c,stdout:u,stderr:f}=await a.run(l);if(c!==0)throw new Error(`Building CSS bundle exited with code ${c} for ${t}.
45
45
  \rTried running: ${l}.
46
46
  \rError: ${u+f}`)},Ey=`
47
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
47
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
48
48
  `,Xt=async({input:t="src/**/*",styles:e="src/components/index.css",target:r="esnext",dev:i=!1,bundle:n=!1,runtimeOnly:s=!1,jsOnly:o=!1,noWrite:a=!1,stdin:l=void 0,stdinFile:c=void 0})=>{Oh.NODE_ENV=i?"development":"production";let u=ce(Xt);i&&(s=!0);let{cwd:f,srcDir:h,outDir:y}=Jo(),g=await Wo(),_=JSON.parse(g),x={treeShaking:n,target:r,minify:!i,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:i?"warning":"error",define:{"process.env.NODE_ENV":i?JSON.stringify("development"):JSON.stringify("production")}},v=["esbuild","*.png"],L=Wt(f,"tsconfig.export.json"),q=Sr(L),Z={...x,tsconfig:q?L:void 0,bundle:n,absWorkingDir:f,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:_?.platform??"node",write:!a,external:n?v:void 0,banner:n?{js:Ey}:void 0},B="";if(l){u.log("Building file from stdin",{stdin:l,stdinFile:c,noWrite:a}),c||(Ce(S.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof l=="string"&&l.length?B=l:B=await ra();let b={...x,sourcefile:c,loader:"tsx",banner:void 0,footer:void 0};if(a)return(await gy(B,b)).code;{let k=kh(B,c,"tsx");await Ge(async()=>await ia({...Z,...k}),{start:"Building stdin to dist/.",success:"Built stdin to dist/.",error:"Error building stdin to dist/."}),Ce(S.grey("Use --no-write to print to stdout instead."));return}}u.log("Building",{files:t,dev:i,runtimeOnly:s}),Th(`${S.bold("TS Module")} [${Oh.NODE_ENV}]`);let M=na.default.sync(t,{cwd:f}).filter(b=>py(b)!==".d.ts").map(b=>Wt(b));if(dy(t)){M.length||M.push(t);let b=t.replace(h,y).replace(Gt,".js").replace(yt,".js");u.log("Cleaning emitted file:",{outfile:b}),await Ih(b,{force:!0})}else u.log("Cleaning old output:",{outDir:y}),await Ih(y,{force:!0,recursive:!0});let I=M.filter(b=>yt.test(b));u.log("Compiling TSX files:",{tsxJsxInput:I});let Q=I.filter(b=>!b.endsWith(".d.ts"));await Ge(async()=>await Promise.all(Q.map(async b=>{let k=await Ph(b,"utf-8"),fe=my+k,p=kh(fe,b,"tsx");await ia({...Z,...p})})),{start:"Compiling TSX files.",success:"Compiled TSX files.",error:"Failed to compile TSX files."});let N=M.filter(b=>Gt.test(b)).filter(b=>!yt.test(b));u.log("Compiling TS files:",{tsJsInput:N}),await Ge(async()=>await ia({...Z,entryPoints:N.filter(b=>!b.endsWith(".d.ts"))}),{start:"Compiling TS/JS files.",success:"Compiled TS/JS files.",error:"Failed to compile TS/JS files."});let te=M.filter(b=>!xh.test(b));if(await Ge(async()=>{for(let b of te){let k=Yo(b);u.log("Copying non-source file:",{file:b,emittedFile:k}),await Lh(Nh(k),{recursive:!0}),await fy(b,k,cy.COPYFILE_FICLONE)}},{start:"Copying non-source files to dist/.",success:"Copied non-source files to dist/.",error:"Failed to copy non-source files to dist/."}),!process.env.NO_REWRITES){let b=t.replace(h,y).replace(/^(\.\/)?src\//,"dist/").replace(Gt,".js").replace(yt,".js");u.log("Normalizing import specifiers in emitted JS.",{emittedJs:b}),await Ge(async()=>await Vt(b.endsWith(".js")?b:`${b}.js`),{start:"Normalizing import specifiers.",success:"Normalized import specifiers.",error:"Failed to normalize import specifiers."}),await Vt(b.endsWith(".js")?b:`${b}.js`)}if(await _y()&&Ue('Forced "type": "module" in output.').succeed(),!s){if(!o)if(Sr(Ay(e))){u.log("Building styles for production.");let{style:b="./dist/bundle.css"}=_;if(u.log("Building style bundle.",{bundleInput:e,bundleOutput:b,dev:i}),await Ge(async()=>await Dh(e,b,i),{start:"Bundling styles with Tailwind.",success:"Bundled styles with Tailwind.",error:"Failed to bundle styles."}),n){u.log("Bundling all styles.");let k=na.default.sync("dist/**/*.css");await Ge(async()=>await Promise.all(k.map(async fe=>await Dh(fe,fe,i))),{start:"Bundling emitted styles",success:`Bundled all styles to ${S.bold(b)}.`,error:"Failed to bundle styles."})}}else Ce(S.grey(`Bundle styles not found for this project.
49
- \rChecked: `+S.bold(e)));Th("Running post-build setup."),await Ge(async()=>await Vo(),{start:"Generating type declarations.",success:`Generated declarations for ${M.length} files.`,error:"Failed to generate type declarations."}),Ce(S.green("Build complete."))}};var $h=Ie(gi(),1);import{copyFile as vy,mkdir as sa}from"fs/promises";import{dirname as xy,resolve as Zt}from"path";var qh={"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},Mh={packageJson:{type:"module",platform:"node",types:"dist/index.d.ts",files:["dist"],exports:qh,scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build",prepublishOnly:"yarn test",lint:"eslint src --fix"}},files:["tsconfig.json",".eslintrc",".gitignore","tsconfig.export.json","LICENSE","ava.config.mjs"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},Ct={default:Mh,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{...qh,"./*":"./dist/components/*/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"}},files:["next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^18.2.0","react-dom@^18.2.0"],devDependencies:[...Mh.devDependencies,"@types/react@^18.0.23","@types/react-dom@^18.0.7","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as yy,resolve as Hh}from"path";import{fileURLToPath as Cy}from"url";import{readFile as by}from"fs/promises";var Br=Hh(yy(Cy(import.meta.url)),".."),jh=async()=>{let t=await by(Hh(Br,"package.json"),"utf-8");return JSON.parse(t)};var Kh=t=>Zt(Br,`./templates/${t}`),aa=async({template:t,targetDir:e=process.cwd()})=>{let r=Ae(),i=Kh(t),n=Zt(e);await sa(n,{recursive:!0}),await r.run({posix:`cp -rf ${i}/. ${n}`,win32:`xcopy /E /I /Q /Y ${i}\\ ${n}\\`})},oa=async({template:t,targetDir:e=process.cwd()})=>{let r=ce(oa);r.log("Copying template files",{template:t,targetDir:e});let i=Kh(t),n=Zt(e);await sa(n,{recursive:!0});let s=await(0,$h.default)(Ct[t].files,{cwd:i,dot:!0});if(s.length)for(let o of s){let a=Zt(i,o),l=Zt(n,o);r.log({sourcePath:a,replacementPath:l}),await sa(xy(l),{recursive:!0}),await vy(a,l)}},Qr=async({template:t,targetDir:e=process.cwd()})=>{let r=Zt(e),i=Ct[t].packageJson;return await Yi(r,i)},Vi=async({template:t,targetDir:e=process.cwd()})=>{let r=Ae({cwd:e}),i=[...Ct.default.dependencies],n=[...Ct.default.devDependencies];switch(t){case"react":i.push(...Ct.react.dependencies),n.push(...Ct.react.devDependencies);break}i.length&&await r.run(`yarn add ${i.join(" ")}`),n.length&&await r.run(`yarn add -D ${n.join(" ")}`)},Uh=async({template:t,targetDir:e=process.cwd()})=>{let r={template:"default",targetDir:e};if(await oa(r),await Qr(r),t!=="default"){let i={template:t,targetDir:e};await oa(i),await Qr(i)}await Vi({template:t,targetDir:e})};var Gh=async()=>{let t="default";(await Xo())?.dependencies?.react&&(t="react"),await Uh({template:t,targetDir:process.cwd()})};import{resolve as Jh}from"path";globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var Yh=async(t,{react:e=!1})=>{let r=Ue(`Creating new module ${S.blueBright(t)}.`).start(),i={template:"default",targetDir:t};if(await aa(i),await Qr(i),e){let s={template:"react",targetDir:t};await aa(s),await Qr(s)}await Yi(Jh(process.cwd(),t),{name:t}),r.succeed("Project created."),await Vi({template:"default",targetDir:t}),e&&await Vi({template:"react",targetDir:t}),r.succeed("Dependencies installed."),await Ae({cwd:Jh(t)}).run("git init"),r.succeed("Set up as Git repository.")};import{relative as My,resolve as qy}from"path";import{existsSync as Hy}from"fs";import{lstat as jy}from"fs/promises";var Ap=Ie(hp(),1);var pp=()=>{console.clear()},dp=t=>{Ce(`
49
+ \rChecked: `+S.bold(e)));Th("Running post-build setup."),await Ge(async()=>await Vo(),{start:"Generating type declarations.",success:`Generated declarations for ${M.length} files.`,error:"Failed to generate type declarations."}),Ce(S.green("Build complete."))}};var $h=Ie(gi(),1);import{copyFile as vy,mkdir as sa}from"fs/promises";import{dirname as xy,resolve as Zt}from"path";var qh={"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},Mh={packageJson:{type:"module",platform:"node",engines:{node:">=14"},types:"dist/index.d.ts",files:["dist"],exports:qh,scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build",prepublishOnly:"yarn test",lint:"eslint src --fix"}},files:["tsconfig.json",".eslintrc",".gitignore","tsconfig.export.json","LICENSE","ava.config.mjs"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},Ct={default:Mh,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{...qh,"./*":"./dist/components/*/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"}},files:["next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^18.2.0","react-dom@^18.2.0"],devDependencies:[...Mh.devDependencies,"@types/react@^18.0.23","@types/react-dom@^18.0.7","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as yy,resolve as Hh}from"path";import{fileURLToPath as Cy}from"url";import{readFile as by}from"fs/promises";var Br=Hh(yy(Cy(import.meta.url)),".."),jh=async()=>{let t=await by(Hh(Br,"package.json"),"utf-8");return JSON.parse(t)};var Kh=t=>Zt(Br,`./templates/${t}`),aa=async({template:t,targetDir:e=process.cwd()})=>{let r=Ae(),i=Kh(t),n=Zt(e);await sa(n,{recursive:!0}),await r.run({posix:`cp -rf ${i}/. ${n}`,win32:`xcopy /E /I /Q /Y ${i}\\ ${n}\\`})},oa=async({template:t,targetDir:e=process.cwd()})=>{let r=ce(oa);r.log("Copying template files",{template:t,targetDir:e});let i=Kh(t),n=Zt(e);await sa(n,{recursive:!0});let s=await(0,$h.default)(Ct[t].files,{cwd:i,dot:!0});if(s.length)for(let o of s){let a=Zt(i,o),l=Zt(n,o);r.log({sourcePath:a,replacementPath:l}),await sa(xy(l),{recursive:!0}),await vy(a,l)}},Qr=async({template:t,targetDir:e=process.cwd()})=>{let r=Zt(e),i=Ct[t].packageJson;return await Yi(r,i)},Vi=async({template:t,targetDir:e=process.cwd()})=>{let r=Ae({cwd:e}),i=[...Ct.default.dependencies],n=[...Ct.default.devDependencies];switch(t){case"react":i.push(...Ct.react.dependencies),n.push(...Ct.react.devDependencies);break}i.length&&await r.run(`yarn add ${i.join(" ")}`),n.length&&await r.run(`yarn add -D ${n.join(" ")}`)},Uh=async({template:t,targetDir:e=process.cwd()})=>{let r={template:"default",targetDir:e};if(await oa(r),await Qr(r),t!=="default"){let i={template:t,targetDir:e};await oa(i),await Qr(i)}await Vi({template:t,targetDir:e})};var Gh=async()=>{let t="default";(await Xo())?.dependencies?.react&&(t="react"),await Uh({template:t,targetDir:process.cwd()})};import{resolve as Jh}from"path";globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var Yh=async(t,{react:e=!1})=>{let r=Ue(`Creating new module ${S.blueBright(t)}.`).start(),i={template:"default",targetDir:t};if(await aa(i),await Qr(i),e){let s={template:"react",targetDir:t};await aa(s),await Qr(s)}await Yi(Jh(process.cwd(),t),{name:t}),r.succeed("Project created."),await Vi({template:"default",targetDir:t}),e&&await Vi({template:"react",targetDir:t}),r.succeed("Dependencies installed."),await Ae({cwd:Jh(t)}).run("git init"),r.succeed("Set up as Git repository.")};import{relative as My,resolve as qy}from"path";import{existsSync as Hy}from"fs";import{lstat as jy}from"fs/promises";var Ap=Ie(hp(),1);var pp=()=>{console.clear()},dp=t=>{Ce(`
50
50
  `,S.gray(`Built ${S.bold(t)}.`),`
51
51
  `,S.blue(new Date().toLocaleString()))},gp=async()=>{let t=process.cwd(),e=Ae();process.platform!=="win32"&&await e.run("clear"),pp(),await Xt({dev:!0}),dp("src/**/*"),(0,Ap.default)(qy(t,"src"),{recursive:!0}).on("change",async(r,i)=>{if(!Hy(i)||(await jy(i)).isDirectory())return;pp();let a=Date.now();try{await Xt({dev:!0,runtimeOnly:!0,input:i})}catch(c){Ce("ERROR:",c)}let l=Date.now()-a;Ue(S.blueBright(`Dev refresh finished in ${S.bold(`${l}ms`)}.`)).succeed(),dp(My(t,i))})};import{pathToFileURL as $y}from"url";import{resolve as Ky}from"path";var mp=async()=>{let t=Ky(Br,"dist/loader/index.js"),e=["--no-warnings","--loader",$y(t).href,...process.argv.slice(2)],r=Ae({stdio:"inherit"}),{code:i}=await r.run(`node ${e.join(" ")}`);process.exit(i??0)};var Uy=t=>{let e=t;return!(e.code===void 0||e.stdout==null||e.stderr==null)},bt=t=>async(...r)=>{try{return await t(...r)}catch(i){Fh("Error"),Uy(i)?(i.stdout&&console.log(S.red(i.stdout)),i.stderr&&console.log(S.redBright(i.stderr))):console.log(S.redBright(JSON.stringify(i,null,2))),console.log()}};var{version:Gy}=await jh(),nt=new Ua;nt.name(S.white(S.bold("tsmodule"))).usage(S.white(S.bold("<file | command> [options]"))).description(S.blueBright(`A tool for building TypeScript modules.
52
52
 
@@ -1,5 +1,5 @@
1
1
 
2
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
2
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
3
3
 
4
4
  var wc=Object.create;var mo=Object.defineProperty;var Qc=Object.getOwnPropertyDescriptor;var Rc=Object.getOwnPropertyNames;var Ic=Object.getPrototypeOf,Tc=Object.prototype.hasOwnProperty;var k=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Dc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Rc(t))!Tc.call(e,i)&&i!==r&&mo(e,i,{get:()=>t[i],enumerable:!(n=Qc(t,i))||n.enumerable});return e};var Xe=(e,t,r)=>(r=e!=null?wc(Ic(e)):{},Dc(t||!e||!e.__esModule?mo(r,"default",{value:e,enumerable:!0}):r,e));var ko=g(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.splitWhen=dt.flatten=void 0;function $c(e){return e.reduce((t,r)=>[].concat(t,r),[])}dt.flatten=$c;function Jc(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}dt.splitWhen=Jc});var Oo=g(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.isEnoentCodeError=void 0;function Yc(e){return e.code==="ENOENT"}mr.isEnoentCodeError=Yc});var Lo=g(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.createDirentFromStats=void 0;var On=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Wc(e,t){return new On(e,t)}yr.createDirentFromStats=Wc});var Po=g(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.removeLeadingDotSegment=Se.escape=Se.makeAbsolute=Se.unixify=void 0;var Vc=k("path"),Xc=2,Zc=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function zc(e){return e.replace(/\\/g,"/")}Se.unixify=zc;function eA(e,t){return Vc.resolve(e,t)}Se.makeAbsolute=eA;function tA(e){return e.replace(Zc,"\\$2")}Se.escape=tA;function rA(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(Xc)}return e}Se.removeLeadingDotSegment=rA});var Mo=g((QE,No)=>{No.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Ho=g((RE,qo)=>{var nA=Mo(),Fo={"{":"}","(":")","[":"]"},iA=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var l=Fo[a];if(l){var f=e.indexOf(l,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},sA=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=Fo[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};qo.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(nA(t))return!0;var n=iA;return r&&r.strict===!1&&(n=sA),n(t)}});var Ko=g((IE,jo)=>{"use strict";var oA=Ho(),aA=k("path").posix.dirname,lA=k("os").platform()==="win32",Ln="/",uA=/\\/g,fA=/[\{\[].*[\}\]]$/,cA=/(^|[^\\])([\{\[]|\([^\)]+$)/,AA=/\\([\!\*\?\|\[\]\(\)\{\}])/g;jo.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&lA&&t.indexOf(Ln)<0&&(t=t.replace(uA,Ln)),fA.test(t)&&(t+=Ln),t+="a";do t=aA(t);while(oA(t)||cA.test(t));return t.replace(AA,"$1")}});var Cr=g(he=>{"use strict";he.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;he.find=(e,t)=>e.nodes.find(r=>r.type===t);he.exceedsLimit=(e,t,r=1,n)=>n===!1||!he.isInteger(e)||!he.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;he.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};he.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;he.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;he.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;he.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);he.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var br=g((DE,Uo)=>{"use strict";var Go=Cr();Uo.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&Go.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&Go.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(e)}});var Jo=g((kE,$o)=>{"use strict";$o.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var ra=g((OE,ta)=>{"use strict";var Yo=Jo(),Ze=(e,t,r)=>{if(Yo(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Yo(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),l=e+":"+t+"="+i+s+o+a;if(Ze.cache.hasOwnProperty(l))return Ze.cache[l].result;let f=Math.min(e,t),u=Math.max(e,t);if(Math.abs(f-u)===1){let E=e+"|"+t;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let A=ea(e)||ea(t),c={min:e,max:t,a:f,b:u},C=[],_=[];if(A&&(c.isPadded=A,c.maxLen=String(c.max).length),f<0){let E=u<0?Math.abs(u):1;_=Wo(E,Math.abs(f),c,n),f=c.a=0}return u>=0&&(C=Wo(f,u,c,n)),c.negatives=_,c.positives=C,c.result=hA(_,C,n),n.capture===!0?c.result=`(${c.result})`:n.wrap!==!1&&C.length+_.length>1&&(c.result=`(?:${c.result})`),Ze.cache[l]=c,c.result};function hA(e,t,r){let n=Pn(e,t,"-",!1,r)||[],i=Pn(t,e,"",!1,r)||[],s=Pn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function pA(e,t){let r=1,n=1,i=Xo(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Xo(e,r);for(i=Zo(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Zo(t+1,n)-1;return s=[...s],s.sort(_A),s}function dA(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=gA(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,f]=n[a];l===f?s+=l:l!=="0"||f!=="9"?s+=EA(l,f,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Wo(e,t,r,n){let i=pA(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let f=i[l],u=dA(String(o),String(f),n),A="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+zo(a.count),o=f+1;continue}r.isPadded&&(A=mA(f,r,n)),u.string=A+u.pattern+zo(u.count),s.push(u),o=f+1,a=u}return s}function Pn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!Vo(t,"string",a)&&s.push(r+a),n&&Vo(t,"string",a)&&s.push(r+a)}return s}function gA(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function _A(e,t){return e>t?1:t>e?-1:0}function Vo(e,t,r){return e.some(n=>n[t]===r)}function Xo(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Zo(e,t){return e-e%Math.pow(10,t)}function zo(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function EA(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function ea(e){return/^-?(0+)\d/.test(e)}function mA(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Ze.cache={};Ze.clearCache=()=>Ze.cache={};ta.exports=Ze});var Fn=g((LE,fa)=>{"use strict";var yA=k("util"),sa=ra(),na=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),CA=e=>t=>e===!0?Number(t):String(t),Nn=e=>typeof e=="number"||typeof e=="string"&&e!=="",jt=e=>Number.isInteger(+e),Mn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},bA=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,BA=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},ia=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},xA=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},oa=(e,t,r,n)=>{if(r)return sa(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},aa=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return sa(e,t,r)},la=(...e)=>new RangeError("Invalid range arguments: "+yA.inspect(...e)),ua=(e,t,r)=>{if(r.strictRanges===!0)throw la([e,t]);return[]},SA=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},vA=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw la([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),l=String(t),f=String(r);r=Math.max(Math.abs(r),1);let u=Mn(a)||Mn(l)||Mn(f),A=u?Math.max(a.length,l.length,f.length):0,c=u===!1&&bA(e,t,n)===!1,C=n.transform||CA(c);if(n.toRegex&&r===1)return oa(ia(e,A),ia(t,A),!0,n);let _={negatives:[],positives:[]},E=O=>_[O<0?"negatives":"positives"].push(Math.abs(O)),x=[],B=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?E(i):x.push(BA(C(i,B),A,c)),i=o?i-r:i+r,B++;return n.toRegex===!0?r>1?xA(_,n):aa(x,null,{wrap:!1,...n}):x},wA=(e,t,r=1,n={})=>{if(!jt(e)&&e.length>1||!jt(t)&&t.length>1)return ua(e,t,n);let i=n.transform||(c=>String.fromCharCode(c)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,l=Math.min(s,o),f=Math.max(s,o);if(n.toRegex&&r===1)return oa(l,f,!1,n);let u=[],A=0;for(;a?s>=o:s<=o;)u.push(i(s,A)),s=a?s-r:s+r,A++;return n.toRegex===!0?aa(u,null,{wrap:!1,options:n}):u},Br=(e,t,r,n={})=>{if(t==null&&Nn(e))return[e];if(!Nn(e)||!Nn(t))return ua(e,t,n);if(typeof r=="function")return Br(e,t,1,{transform:r});if(na(r))return Br(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,jt(r)?jt(e)&&jt(t)?vA(e,t,r,i):wA(e,t,Math.max(Math.abs(r),1),i):r!=null&&!na(r)?SA(r,i):Br(e,t,1,r)};fa.exports=Br});var ha=g((PE,Aa)=>{"use strict";var QA=Fn(),ca=Cr(),RA=(e,t={})=>{let r=(n,i={})=>{let s=ca.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,l=t.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=ca.reduce(n.nodes),A=QA(...u,{...t,wrap:!1,toRegex:!0});if(A.length!==0)return u.length>1&&A.length>1?`(${A})`:A}if(n.nodes)for(let u of n.nodes)f+=r(u,n);return f};return r(e)};Aa.exports=RA});var ga=g((NE,da)=>{"use strict";var IA=Fn(),pa=br(),gt=Cr(),ze=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?gt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(ze(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?ze(i,s,r):i+s);return gt.flatten(n)},TA=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(ze(a.pop(),pa(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(ze(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let A=gt.reduce(i.nodes);if(gt.exceedsLimit(...A,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=IA(...A,t);c.length===0&&(c=pa(i,t)),a.push(ze(a.pop(),c)),i.nodes=[];return}let l=gt.encloseBrace(i),f=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,f=u.queue;for(let A=0;A<i.nodes.length;A++){let c=i.nodes[A];if(c.type==="comma"&&i.type==="brace"){A===1&&f.push(""),f.push("");continue}if(c.type==="close"){a.push(ze(a.pop(),f,l));continue}if(c.value&&c.type!=="open"){f.push(ze(f.pop(),c.value));continue}c.nodes&&n(c,i)}return f};return gt.flatten(n(e))};da.exports=TA});var Ea=g((ME,_a)=>{"use strict";_a.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
5
5
  `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Ba=g((FE,ba)=>{"use strict";var DA=br(),{MAX_LENGTH:ma,CHAR_BACKSLASH:qn,CHAR_BACKTICK:kA,CHAR_COMMA:OA,CHAR_DOT:LA,CHAR_LEFT_PARENTHESES:PA,CHAR_RIGHT_PARENTHESES:NA,CHAR_LEFT_CURLY_BRACE:MA,CHAR_RIGHT_CURLY_BRACE:FA,CHAR_LEFT_SQUARE_BRACKET:ya,CHAR_RIGHT_SQUARE_BRACKET:Ca,CHAR_DOUBLE_QUOTE:qA,CHAR_SINGLE_QUOTE:HA,CHAR_NO_BREAK_SPACE:jA,CHAR_ZERO_WIDTH_NOBREAK_SPACE:KA}=Ea(),GA=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(ma,r.maxLength):ma;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,l=0,f=e.length,u=0,A=0,c,C={},_=()=>e[u++],E=x=>{if(x.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&x.type==="text"){a.value+=x.value;return}return o.nodes.push(x),x.parent=o,x.prev=a,a=x,x};for(E({type:"bos"});u<f;)if(o=s[s.length-1],c=_(),!(c===KA||c===jA)){if(c===qn){E({type:"text",value:(t.keepEscaping?c:"")+_()});continue}if(c===Ca){E({type:"text",value:"\\"+c});continue}if(c===ya){l++;let x=!0,B;for(;u<f&&(B=_());){if(c+=B,B===ya){l++;continue}if(B===qn){c+=_();continue}if(B===Ca&&(l--,l===0))break}E({type:"text",value:c});continue}if(c===PA){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:c});continue}if(c===NA){if(o.type!=="paren"){E({type:"text",value:c});continue}o=s.pop(),E({type:"text",value:c}),o=s[s.length-1];continue}if(c===qA||c===HA||c===kA){let x=c,B;for(t.keepQuotes!==!0&&(c="");u<f&&(B=_());){if(B===qn){c+=B+_();continue}if(B===x){t.keepQuotes===!0&&(c+=B);break}c+=B}E({type:"text",value:c});continue}if(c===MA){A++;let B={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:A,commas:0,ranges:0,nodes:[]};o=E(B),s.push(o),E({type:"open",value:c});continue}if(c===FA){if(o.type!=="brace"){E({type:"text",value:c});continue}let x="close";o=s.pop(),o.close=!0,E({type:x,value:c}),A--,o=s[s.length-1];continue}if(c===OA&&A>0){if(o.ranges>0){o.ranges=0;let x=o.nodes.shift();o.nodes=[x,{type:"text",value:DA(o)}]}E({type:"comma",value:c}),o.commas++;continue}if(c===LA&&A>0&&o.commas===0){let x=o.nodes;if(A===0||x.length===0){E({type:"text",value:c});continue}if(a.type==="dot"){if(o.range=[],a.value+=c,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){x.pop();let B=x[x.length-1];B.value+=a.value+c,a=B,o.ranges--;continue}E({type:"dot",value:c});continue}E({type:"text",value:c})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(O=>{O.nodes||(O.type==="open"&&(O.isOpen=!0),O.type==="close"&&(O.isClose=!0),O.nodes||(O.type="text"),O.invalid=!0)});let x=s[s.length-1],B=x.nodes.indexOf(o);x.nodes.splice(B,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};ba.exports=GA});var va=g((qE,Sa)=>{"use strict";var xa=br(),UA=ha(),$A=ga(),JA=Ba(),fe=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=fe.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(fe.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};fe.parse=(e,t={})=>JA(e,t);fe.stringify=(e,t={})=>xa(typeof e=="string"?fe.parse(e,t):e,t);fe.compile=(e,t={})=>(typeof e=="string"&&(e=fe.parse(e,t)),UA(e,t));fe.expand=(e,t={})=>{typeof e=="string"&&(e=fe.parse(e,t));let r=$A(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};fe.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?fe.compile(e,t):fe.expand(e,t);Sa.exports=fe});var Kt=g((HE,Ta)=>{"use strict";var YA=k("path"),ve="\\\\/",wa=`[^${ve}]`,ke="\\.",WA="\\+",VA="\\?",xr="\\/",XA="(?=.)",Qa="[^/]",Hn=`(?:${xr}|$)`,Ra=`(?:^|${xr})`,jn=`${ke}{1,2}${Hn}`,ZA=`(?!${ke})`,zA=`(?!${Ra}${jn})`,eh=`(?!${ke}{0,1}${Hn})`,th=`(?!${jn})`,rh=`[^.${xr}]`,nh=`${Qa}*?`,Ia={DOT_LITERAL:ke,PLUS_LITERAL:WA,QMARK_LITERAL:VA,SLASH_LITERAL:xr,ONE_CHAR:XA,QMARK:Qa,END_ANCHOR:Hn,DOTS_SLASH:jn,NO_DOT:ZA,NO_DOTS:zA,NO_DOT_SLASH:eh,NO_DOTS_SLASH:th,QMARK_NO_DOT:rh,STAR:nh,START_ANCHOR:Ra},ih={...Ia,SLASH_LITERAL:`[${ve}]`,QMARK:wa,STAR:`${wa}*?`,DOTS_SLASH:`${ke}{1,2}(?:[${ve}]|$)`,NO_DOT:`(?!${ke})`,NO_DOTS:`(?!(?:^|[${ve}])${ke}{1,2}(?:[${ve}]|$))`,NO_DOT_SLASH:`(?!${ke}{0,1}(?:[${ve}]|$))`,NO_DOTS_SLASH:`(?!${ke}{1,2}(?:[${ve}]|$))`,QMARK_NO_DOT:`[^.${ve}]`,START_ANCHOR:`(?:^|[${ve}])`,END_ANCHOR:`(?:[${ve}]|$)`},sh={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"};Ta.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:sh,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:YA.sep,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?ih:Ia}}});var Gt=g(ae=>{"use strict";var oh=k("path"),ah=process.platform==="win32",{REGEX_BACKSLASH:lh,REGEX_REMOVE_BACKSLASH:uh,REGEX_SPECIAL_CHARS:fh,REGEX_SPECIAL_CHARS_GLOBAL:ch}=Kt();ae.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ae.hasRegexChars=e=>fh.test(e);ae.isRegexChar=e=>e.length===1&&ae.hasRegexChars(e);ae.escapeRegex=e=>e.replace(ch,"\\$1");ae.toPosixSlashes=e=>e.replace(lh,"/");ae.removeBackslashes=e=>e.replace(uh,t=>t==="\\"?"":t);ae.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ae.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:ah===!0||oh.sep==="\\";ae.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ae.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ae.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ae.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var Fa=g((KE,Ma)=>{"use strict";var Da=Gt(),{CHAR_ASTERISK:Kn,CHAR_AT:Ah,CHAR_BACKWARD_SLASH:Ut,CHAR_COMMA:hh,CHAR_DOT:Gn,CHAR_EXCLAMATION_MARK:Un,CHAR_FORWARD_SLASH:Na,CHAR_LEFT_CURLY_BRACE:$n,CHAR_LEFT_PARENTHESES:Jn,CHAR_LEFT_SQUARE_BRACKET:ph,CHAR_PLUS:dh,CHAR_QUESTION_MARK:ka,CHAR_RIGHT_CURLY_BRACE:gh,CHAR_RIGHT_PARENTHESES:Oa,CHAR_RIGHT_SQUARE_BRACKET:_h}=Kt(),La=e=>e===Na||e===Ut,Pa=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Eh=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=e,f=-1,u=0,A=0,c=!1,C=!1,_=!1,E=!1,x=!1,B=!1,O=!1,q=!1,V=!1,S=!1,M=0,Q,v,P={value:"",depth:0,isGlob:!1},z=()=>f>=n,d=()=>l.charCodeAt(f+1),b=()=>(Q=v,l.charCodeAt(++f));for(;f<n;){v=b();let se;if(v===Ut){O=P.backslashes=!0,v=b(),v===$n&&(B=!0);continue}if(B===!0||v===$n){for(M++;z()!==!0&&(v=b());){if(v===Ut){O=P.backslashes=!0,b();continue}if(v===$n){M++;continue}if(B!==!0&&v===Gn&&(v=b())===Gn){if(c=P.isBrace=!0,_=P.isGlob=!0,S=!0,i===!0)continue;break}if(B!==!0&&v===hh){if(c=P.isBrace=!0,_=P.isGlob=!0,S=!0,i===!0)continue;break}if(v===gh&&(M--,M===0)){B=!1,c=P.isBrace=!0,S=!0;break}}if(i===!0)continue;break}if(v===Na){if(s.push(f),o.push(P),P={value:"",depth:0,isGlob:!1},S===!0)continue;if(Q===Gn&&f===u+1){u+=2;continue}A=f+1;continue}if(r.noext!==!0&&(v===dh||v===Ah||v===Kn||v===ka||v===Un)===!0&&d()===Jn){if(_=P.isGlob=!0,E=P.isExtglob=!0,S=!0,v===Un&&f===u&&(V=!0),i===!0){for(;z()!==!0&&(v=b());){if(v===Ut){O=P.backslashes=!0,v=b();continue}if(v===Oa){_=P.isGlob=!0,S=!0;break}}continue}break}if(v===Kn){if(Q===Kn&&(x=P.isGlobstar=!0),_=P.isGlob=!0,S=!0,i===!0)continue;break}if(v===ka){if(_=P.isGlob=!0,S=!0,i===!0)continue;break}if(v===ph){for(;z()!==!0&&(se=b());){if(se===Ut){O=P.backslashes=!0,b();continue}if(se===_h){C=P.isBracket=!0,_=P.isGlob=!0,S=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&v===Un&&f===u){q=P.negated=!0,u++;continue}if(r.noparen!==!0&&v===Jn){if(_=P.isGlob=!0,i===!0){for(;z()!==!0&&(v=b());){if(v===Jn){O=P.backslashes=!0,v=b();continue}if(v===Oa){S=!0;break}}continue}break}if(_===!0){if(S=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,_=!1);let T=l,le="",h="";u>0&&(le=l.slice(0,u),l=l.slice(u),A-=u),T&&_===!0&&A>0?(T=l.slice(0,A),h=l.slice(A)):_===!0?(T="",h=l):T=l,T&&T!==""&&T!=="/"&&T!==l&&La(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),r.unescape===!0&&(h&&(h=Da.removeBackslashes(h)),T&&O===!0&&(T=Da.removeBackslashes(T)));let p={prefix:le,input:e,start:u,base:T,glob:h,isBrace:c,isBracket:C,isGlob:_,isExtglob:E,isGlobstar:x,negated:q,negatedExtglob:V};if(r.tokens===!0&&(p.maxDepth=0,La(v)||o.push(P),p.tokens=o),r.parts===!0||r.tokens===!0){let se;for(let N=0;N<s.length;N++){let Be=se?se+1:u,xe=s[N],ue=e.slice(Be,xe);r.tokens&&(N===0&&u!==0?(o[N].isPrefix=!0,o[N].value=le):o[N].value=ue,Pa(o[N]),p.maxDepth+=o[N].depth),(N!==0||ue!=="")&&a.push(ue),se=xe}if(se&&se+1<e.length){let N=e.slice(se+1);a.push(N),r.tokens&&(o[o.length-1].value=N,Pa(o[o.length-1]),p.maxDepth+=o[o.length-1].depth)}p.slashes=s,p.parts=a}return p};Ma.exports=Eh});var ja=g((GE,Ha)=>{"use strict";var Sr=Kt(),ce=Gt(),{MAX_LENGTH:vr,POSIX_REGEX_SOURCE:mh,REGEX_NON_SPECIAL_CHARS:yh,REGEX_SPECIAL_CHARS_BACKREF:Ch,REPLACEMENTS:qa}=Sr,bh=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>ce.escapeRegex(i)).join("..")}return r},_t=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Yn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=qa[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(vr,r.maxLength):vr,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",l=ce.isWindows(t),f=Sr.globChars(l),u=Sr.extglobChars(f),{DOT_LITERAL:A,PLUS_LITERAL:c,SLASH_LITERAL:C,ONE_CHAR:_,DOTS_SLASH:E,NO_DOT:x,NO_DOT_SLASH:B,NO_DOTS_SLASH:O,QMARK:q,QMARK_NO_DOT:V,STAR:S,START_ANCHOR:M}=f,Q=y=>`(${a}(?:(?!${M}${y.dot?E:A}).)*?)`,v=r.dot?"":x,P=r.dot?q:V,z=r.bash===!0?Q(r):S;r.capture&&(z=`(${z})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let d={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=ce.removePrefix(e,d),i=e.length;let b=[],T=[],le=[],h=s,p,se=()=>d.index===i-1,N=d.peek=(y=1)=>e[d.index+y],Be=d.advance=()=>e[++d.index]||"",xe=()=>e.slice(d.index+1),ue=(y="",K=0)=>{d.consumed+=y,d.index+=K},hr=y=>{d.output+=y.output!=null?y.output:y.value,ue(y.value)},Sc=()=>{let y=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)Be(),d.start++,y++;return y%2===0?!1:(d.negated=!0,d.start++,!0)},pr=y=>{d[y]++,le.push(y)},Ve=y=>{d[y]--,le.pop()},D=y=>{if(h.type==="globstar"){let K=d.braces>0&&(y.type==="comma"||y.type==="brace"),m=y.extglob===!0||b.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!K&&!m&&(d.output=d.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=z,d.output+=h.output)}if(b.length&&y.type!=="paren"&&(b[b.length-1].inner+=y.value),(y.value||y.output)&&hr(y),h&&h.type==="text"&&y.type==="text"){h.value+=y.value,h.output=(h.output||"")+y.value;return}y.prev=h,o.push(y),h=y},dr=(y,K)=>{let m={...u[K],conditions:1,inner:""};m.prev=h,m.parens=d.parens,m.output=d.output;let R=(r.capture?"(":"")+m.open;pr("parens"),D({type:y,value:K,output:d.output?"":_}),D({type:"paren",extglob:!0,value:Be(),output:R}),b.push(m)},vc=y=>{let K=y.close+(r.capture?")":""),m;if(y.type==="negate"){let R=z;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(R=Q(r)),(R!==z||se()||/^\)+$/.test(xe()))&&(K=y.close=`)$))${R}`),y.inner.includes("*")&&(m=xe())&&/^\.[^\\/.]+$/.test(m)){let J=Yn(m,{...t,fastpaths:!1}).output;K=y.close=`)${J})${R})`}y.prev.type==="bos"&&(d.negatedExtglob=!0)}D({type:"paren",extglob:!0,value:p,output:K}),Ve("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let y=!1,K=e.replace(Ch,(m,R,J,oe,ee,wn)=>oe==="\\"?(y=!0,m):oe==="?"?R?R+oe+(ee?q.repeat(ee.length):""):wn===0?P+(ee?q.repeat(ee.length):""):q.repeat(J.length):oe==="."?A.repeat(J.length):oe==="*"?R?R+oe+(ee?z:""):z:R?m:`\\${m}`);return y===!0&&(r.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,m=>m.length%2===0?"\\\\":m?"\\":"")),K===e&&r.contains===!0?(d.output=e,d):(d.output=ce.wrapOutput(K,d,t),d)}for(;!se();){if(p=Be(),p==="\0")continue;if(p==="\\"){let m=N();if(m==="/"&&r.bash!==!0||m==="."||m===";")continue;if(!m){p+="\\",D({type:"text",value:p});continue}let R=/^\\+/.exec(xe()),J=0;if(R&&R[0].length>2&&(J=R[0].length,d.index+=J,J%2!==0&&(p+="\\")),r.unescape===!0?p=Be():p+=Be(),d.brackets===0){D({type:"text",value:p});continue}}if(d.brackets>0&&(p!=="]"||h.value==="["||h.value==="[^")){if(r.posix!==!1&&p===":"){let m=h.value.slice(1);if(m.includes("[")&&(h.posix=!0,m.includes(":"))){let R=h.value.lastIndexOf("["),J=h.value.slice(0,R),oe=h.value.slice(R+2),ee=mh[oe];if(ee){h.value=J+ee,d.backtrack=!0,Be(),!s.output&&o.indexOf(h)===1&&(s.output=_);continue}}}(p==="["&&N()!==":"||p==="-"&&N()==="]")&&(p=`\\${p}`),p==="]"&&(h.value==="["||h.value==="[^")&&(p=`\\${p}`),r.posix===!0&&p==="!"&&h.value==="["&&(p="^"),h.value+=p,hr({value:p});continue}if(d.quotes===1&&p!=='"'){p=ce.escapeRegex(p),h.value+=p,hr({value:p});continue}if(p==='"'){d.quotes=d.quotes===1?0:1,r.keepQuotes===!0&&D({type:"text",value:p});continue}if(p==="("){pr("parens"),D({type:"paren",value:p});continue}if(p===")"){if(d.parens===0&&r.strictBrackets===!0)throw new SyntaxError(_t("opening","("));let m=b[b.length-1];if(m&&d.parens===m.parens+1){vc(b.pop());continue}D({type:"paren",value:p,output:d.parens?")":"\\)"}),Ve("parens");continue}if(p==="["){if(r.nobracket===!0||!xe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(_t("closing","]"));p=`\\${p}`}else pr("brackets");D({type:"bracket",value:p});continue}if(p==="]"){if(r.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){D({type:"text",value:p,output:`\\${p}`});continue}if(d.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(_t("opening","["));D({type:"text",value:p,output:`\\${p}`});continue}Ve("brackets");let m=h.value.slice(1);if(h.posix!==!0&&m[0]==="^"&&!m.includes("/")&&(p=`/${p}`),h.value+=p,hr({value:p}),r.literalBrackets===!1||ce.hasRegexChars(m))continue;let R=ce.escapeRegex(h.value);if(d.output=d.output.slice(0,-h.value.length),r.literalBrackets===!0){d.output+=R,h.value=R;continue}h.value=`(${a}${R}|${h.value})`,d.output+=h.value;continue}if(p==="{"&&r.nobrace!==!0){pr("braces");let m={type:"brace",value:p,output:"(",outputIndex:d.output.length,tokensIndex:d.tokens.length};T.push(m),D(m);continue}if(p==="}"){let m=T[T.length-1];if(r.nobrace===!0||!m){D({type:"text",value:p,output:p});continue}let R=")";if(m.dots===!0){let J=o.slice(),oe=[];for(let ee=J.length-1;ee>=0&&(o.pop(),J[ee].type!=="brace");ee--)J[ee].type!=="dots"&&oe.unshift(J[ee].value);R=bh(oe,r),d.backtrack=!0}if(m.comma!==!0&&m.dots!==!0){let J=d.output.slice(0,m.outputIndex),oe=d.tokens.slice(m.tokensIndex);m.value=m.output="\\{",p=R="\\}",d.output=J;for(let ee of oe)d.output+=ee.output||ee.value}D({type:"brace",value:p,output:R}),Ve("braces"),T.pop();continue}if(p==="|"){b.length>0&&b[b.length-1].conditions++,D({type:"text",value:p});continue}if(p===","){let m=p,R=T[T.length-1];R&&le[le.length-1]==="braces"&&(R.comma=!0,m="|"),D({type:"comma",value:p,output:m});continue}if(p==="/"){if(h.type==="dot"&&d.index===d.start+1){d.start=d.index+1,d.consumed="",d.output="",o.pop(),h=s;continue}D({type:"slash",value:p,output:C});continue}if(p==="."){if(d.braces>0&&h.type==="dot"){h.value==="."&&(h.output=A);let m=T[T.length-1];h.type="dots",h.output+=p,h.value+=p,m.dots=!0;continue}if(d.braces+d.parens===0&&h.type!=="bos"&&h.type!=="slash"){D({type:"text",value:p,output:A});continue}D({type:"dot",value:p,output:A});continue}if(p==="?"){if(!(h&&h.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){dr("qmark",p);continue}if(h&&h.type==="paren"){let R=N(),J=p;if(R==="<"&&!ce.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(R)||R==="<"&&!/<([!=]|\w+>)/.test(xe()))&&(J=`\\${p}`),D({type:"text",value:p,output:J});continue}if(r.dot!==!0&&(h.type==="slash"||h.type==="bos")){D({type:"qmark",value:p,output:V});continue}D({type:"qmark",value:p,output:q});continue}if(p==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){dr("negate",p);continue}if(r.nonegate!==!0&&d.index===0){Sc();continue}}if(p==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){dr("plus",p);continue}if(h&&h.value==="("||r.regex===!1){D({type:"plus",value:p,output:c});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||d.parens>0){D({type:"plus",value:p});continue}D({type:"plus",value:c});continue}if(p==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){D({type:"at",extglob:!0,value:p,output:""});continue}D({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);let m=yh.exec(xe());m&&(p+=m[0],d.index+=m[0].length),D({type:"text",value:p});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=p,h.output=z,d.backtrack=!0,d.globstar=!0,ue(p);continue}let y=xe();if(r.noextglob!==!0&&/^\([^?]/.test(y)){dr("star",p);continue}if(h.type==="star"){if(r.noglobstar===!0){ue(p);continue}let m=h.prev,R=m.prev,J=m.type==="slash"||m.type==="bos",oe=R&&(R.type==="star"||R.type==="globstar");if(r.bash===!0&&(!J||y[0]&&y[0]!=="/")){D({type:"star",value:p,output:""});continue}let ee=d.braces>0&&(m.type==="comma"||m.type==="brace"),wn=b.length&&(m.type==="pipe"||m.type==="paren");if(!J&&m.type!=="paren"&&!ee&&!wn){D({type:"star",value:p,output:""});continue}for(;y.slice(0,3)==="/**";){let gr=e[d.index+4];if(gr&&gr!=="/")break;y=y.slice(3),ue("/**",3)}if(m.type==="bos"&&se()){h.type="globstar",h.value+=p,h.output=Q(r),d.output=h.output,d.globstar=!0,ue(p);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&!oe&&se()){d.output=d.output.slice(0,-(m.output+h.output).length),m.output=`(?:${m.output}`,h.type="globstar",h.output=Q(r)+(r.strictSlashes?")":"|$)"),h.value+=p,d.globstar=!0,d.output+=m.output+h.output,ue(p);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&y[0]==="/"){let gr=y[1]!==void 0?"|$":"";d.output=d.output.slice(0,-(m.output+h.output).length),m.output=`(?:${m.output}`,h.type="globstar",h.output=`${Q(r)}${C}|${C}${gr})`,h.value+=p,d.output+=m.output+h.output,d.globstar=!0,ue(p+Be()),D({type:"slash",value:"/",output:""});continue}if(m.type==="bos"&&y[0]==="/"){h.type="globstar",h.value+=p,h.output=`(?:^|${C}|${Q(r)}${C})`,d.output=h.output,d.globstar=!0,ue(p+Be()),D({type:"slash",value:"/",output:""});continue}d.output=d.output.slice(0,-h.output.length),h.type="globstar",h.output=Q(r),h.value+=p,d.output+=h.output,d.globstar=!0,ue(p);continue}let K={type:"star",value:p,output:z};if(r.bash===!0){K.output=".*?",(h.type==="bos"||h.type==="slash")&&(K.output=v+K.output),D(K);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&r.regex===!0){K.output=p,D(K);continue}(d.index===d.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(d.output+=B,h.output+=B):r.dot===!0?(d.output+=O,h.output+=O):(d.output+=v,h.output+=v),N()!=="*"&&(d.output+=_,h.output+=_)),D(K)}for(;d.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing","]"));d.output=ce.escapeLast(d.output,"["),Ve("brackets")}for(;d.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing",")"));d.output=ce.escapeLast(d.output,"("),Ve("parens")}for(;d.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(_t("closing","}"));d.output=ce.escapeLast(d.output,"{"),Ve("braces")}if(r.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&D({type:"maybe_slash",value:"",output:`${C}?`}),d.backtrack===!0){d.output="";for(let y of d.tokens)d.output+=y.output!=null?y.output:y.value,y.suffix&&(d.output+=y.suffix)}return d};Yn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(vr,r.maxLength):vr,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=qa[e]||e;let s=ce.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:f,NO_DOT:u,NO_DOTS:A,NO_DOTS_SLASH:c,STAR:C,START_ANCHOR:_}=Sr.globChars(s),E=r.dot?A:u,x=r.dot?c:u,B=r.capture?"":"?:",O={negated:!1,prefix:""},q=r.bash===!0?".*?":C;r.capture&&(q=`(${q})`);let V=v=>v.noglobstar===!0?q:`(${B}(?:(?!${_}${v.dot?f:o}).)*?)`,S=v=>{switch(v){case"*":return`${E}${l}${q}`;case".*":return`${o}${l}${q}`;case"*.*":return`${E}${q}${o}${l}${q}`;case"*/*":return`${E}${q}${a}${l}${x}${q}`;case"**":return E+V(r);case"**/*":return`(?:${E}${V(r)}${a})?${x}${l}${q}`;case"**/*.*":return`(?:${E}${V(r)}${a})?${x}${q}${o}${l}${q}`;case"**/.*":return`(?:${E}${V(r)}${a})?${o}${l}${q}`;default:{let P=/^(.*?)\.(\w+)$/.exec(v);if(!P)return;let z=S(P[1]);return z?z+o+P[2]:void 0}}},M=ce.removePrefix(e,O),Q=S(M);return Q&&r.strictSlashes!==!0&&(Q+=`${a}?`),Q};Ha.exports=Yn});var Ga=g((UE,Ka)=>{"use strict";var Bh=k("path"),xh=Fa(),Wn=ja(),Vn=Gt(),Sh=Kt(),vh=e=>e&&typeof e=="object"&&!Array.isArray(e),W=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(c=>W(c,t,r));return c=>{for(let C of u){let _=C(c);if(_)return _}return!1}}let n=vh(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=Vn.isWindows(t),o=n?W.compileRe(e,t):W.makeRe(e,t,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};l=W(i.ignore,u,r)}let f=(u,A=!1)=>{let{isMatch:c,match:C,output:_}=W.test(u,o,t,{glob:e,posix:s}),E={glob:e,state:a,regex:o,posix:s,input:u,output:_,match:C,isMatch:c};return typeof i.onResult=="function"&&i.onResult(E),c===!1?(E.isMatch=!1,A?E:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,A?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),A?E:!0)};return r&&(f.state=a),f};W.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?Vn.toPosixSlashes:null),a=e===n,l=a&&o?o(e):e;return a===!1&&(l=o?o(e):e,a=l===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=W.matchBase(e,t,r,i):a=t.exec(l)),{isMatch:Boolean(a),match:a,output:l}};W.matchBase=(e,t,r,n=Vn.isWindows(r))=>(t instanceof RegExp?t:W.makeRe(t,r)).test(Bh.basename(e));W.isMatch=(e,t,r)=>W(t,r)(e);W.parse=(e,t)=>Array.isArray(e)?e.map(r=>W.parse(r,t)):Wn(e,{...t,fastpaths:!1});W.scan=(e,t)=>xh(e,t);W.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let l=W.toRegex(a,t);return n===!0&&(l.state=e),l};W.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=Wn.fastpaths(e,t)),i.output||(i=Wn(e,t)),W.compileRe(i,t,r,n)};W.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};W.constants=Sh;Ka.exports=W});var $a=g(($E,Ua)=>{"use strict";Ua.exports=Ga()});var Xa=g((JE,Va)=>{"use strict";var Ya=k("util"),Wa=va(),we=$a(),Xn=Gt(),Ja=e=>e===""||e==="./",U=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<t.length;u++){let A=we(String(t[u]),{...r,onResult:a},!0),c=A.state.negated||A.state.negatedExtglob;c&&o++;for(let C of e){let _=A(C,!0);!(c?!_.isMatch:_.isMatch)||(c?n.add(_.output):(n.delete(_.output),i.add(_.output)))}}let f=(o===t.length?[...s]:[...i]).filter(u=>!n.has(u));if(r&&f.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(u=>u.replace(/\\/g,"")):t}return f};U.match=U;U.matcher=(e,t)=>we(e,t);U.isMatch=(e,t,r)=>we(t,r)(e);U.any=U.isMatch;U.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(U(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};U.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ya.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>U.contains(e,n,r));if(typeof t=="string"){if(Ja(e)||Ja(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return U.isMatch(e,t,{...r,contains:!0})};U.matchKeys=(e,t,r)=>{if(!Xn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=U(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};U.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=we(String(i),r);if(n.some(o=>s(o)))return!0}return!1};U.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=we(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};U.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Ya.inspect(e)}"`);return[].concat(t).every(n=>we(n,r)(e))};U.capture=(e,t,r)=>{let n=Xn.isWindows(r),s=we.makeRe(String(e),{...r,capture:!0}).exec(n?Xn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};U.makeRe=(...e)=>we.makeRe(...e);U.scan=(...e)=>we.scan(...e);U.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of Wa(String(n),t))r.push(we.parse(i,t));return r};U.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:Wa(e,t)};U.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return U.braces(e,{...t,expand:!0})};Va.exports=U});var sl=g(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.matchAny=w.convertPatternsToRe=w.makeRe=w.getPatternParts=w.expandBraceExpansion=w.expandPatternsWithBraceExpansion=w.isAffectDepthOfReadingPattern=w.endsWithSlashGlobStar=w.hasGlobStar=w.getBaseDirectory=w.isPatternRelatedToParentDirectory=w.getPatternsOutsideCurrentDirectory=w.getPatternsInsideCurrentDirectory=w.getPositivePatterns=w.getNegativePatterns=w.isPositivePattern=w.isNegativePattern=w.convertToNegativePattern=w.convertToPositivePattern=w.isDynamicPattern=w.isStaticPattern=void 0;var wh=k("path"),Qh=Ko(),Zn=Xa(),Za="**",Rh="\\",Ih=/[*?]|^!/,Th=/\[[^[]*]/,Dh=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,kh=/[!*+?@]\([^(]*\)/,Oh=/,|\.\./;function za(e,t={}){return!el(e,t)}w.isStaticPattern=za;function el(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Rh)||Ih.test(e)||Th.test(e)||Dh.test(e)||t.extglob!==!1&&kh.test(e)||t.braceExpansion!==!1&&Lh(e))}w.isDynamicPattern=el;function Lh(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Oh.test(n)}function Ph(e){return wr(e)?e.slice(1):e}w.convertToPositivePattern=Ph;function Nh(e){return"!"+e}w.convertToNegativePattern=Nh;function wr(e){return e.startsWith("!")&&e[1]!=="("}w.isNegativePattern=wr;function tl(e){return!wr(e)}w.isPositivePattern=tl;function Mh(e){return e.filter(wr)}w.getNegativePatterns=Mh;function Fh(e){return e.filter(tl)}w.getPositivePatterns=Fh;function qh(e){return e.filter(t=>!zn(t))}w.getPatternsInsideCurrentDirectory=qh;function Hh(e){return e.filter(zn)}w.getPatternsOutsideCurrentDirectory=Hh;function zn(e){return e.startsWith("..")||e.startsWith("./..")}w.isPatternRelatedToParentDirectory=zn;function jh(e){return Qh(e,{flipBackslashes:!1})}w.getBaseDirectory=jh;function Kh(e){return e.includes(Za)}w.hasGlobStar=Kh;function rl(e){return e.endsWith("/"+Za)}w.endsWithSlashGlobStar=rl;function Gh(e){let t=wh.basename(e);return rl(e)||za(t)}w.isAffectDepthOfReadingPattern=Gh;function Uh(e){return e.reduce((t,r)=>t.concat(nl(r)),[])}w.expandPatternsWithBraceExpansion=Uh;function nl(e){return Zn.braces(e,{expand:!0,nodupes:!0})}w.expandBraceExpansion=nl;function $h(e,t){let{parts:r}=Zn.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}w.getPatternParts=$h;function il(e,t){return Zn.makeRe(e,t)}w.makeRe=il;function Jh(e,t){return e.map(r=>il(r,t))}w.convertPatternsToRe=Jh;function Yh(e,t){return t.some(r=>r.test(e))}w.matchAny=Yh});var ul=g((WE,ll)=>{"use strict";var Wh=k("stream"),ol=Wh.PassThrough,Vh=Array.prototype.slice;ll.exports=Xh;function Xh(){let e=[],t=Vh.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=ol(n);function a(){for(let u=0,A=arguments.length;u<A;u++)e.push(al(arguments[u],n));return l(),this}function l(){if(r)return;r=!0;let u=e.shift();if(!u){process.nextTick(f);return}Array.isArray(u)||(u=[u]);let A=u.length+1;function c(){--A>0||(r=!1,l())}function C(_){function E(){_.removeListener("merge2UnpipeEnd",E),_.removeListener("end",E),s&&_.removeListener("error",x),c()}function x(B){o.emit("error",B)}if(_._readableState.endEmitted)return c();_.on("merge2UnpipeEnd",E),_.on("end",E),s&&_.on("error",x),_.pipe(o,{end:!1}),_.resume()}for(let _=0;_<u.length;_++)C(u[_]);c()}function f(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function al(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=al(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(ol(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var cl=g(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.merge=void 0;var Zh=ul();function zh(e){let t=Zh(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>fl(e)),t.once("end",()=>fl(e)),t}Qr.merge=zh;function fl(e){e.forEach(t=>t.emit("close"))}});var Al=g(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.isEmpty=Et.isString=void 0;function ep(e){return typeof e=="string"}Et.isString=ep;function tp(e){return e===""}Et.isEmpty=tp});var Oe=g(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.string=re.stream=re.pattern=re.path=re.fs=re.errno=re.array=void 0;var rp=ko();re.array=rp;var np=Oo();re.errno=np;var ip=Lo();re.fs=ip;var sp=Po();re.path=sp;var op=sl();re.pattern=op;var ap=cl();re.stream=ap;var lp=Al();re.string=lp});var dl=g(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.convertPatternGroupToTask=ne.convertPatternGroupsToTasks=ne.groupPatternsByBaseDirectory=ne.getNegativePatternsAsPositive=ne.getPositivePatterns=ne.convertPatternsToTasks=ne.generate=void 0;var Le=Oe();function up(e,t){let r=hl(e),n=pl(e,t.ignore),i=r.filter(l=>Le.pattern.isStaticPattern(l,t)),s=r.filter(l=>Le.pattern.isDynamicPattern(l,t)),o=ei(i,n,!1),a=ei(s,n,!0);return o.concat(a)}ne.generate=up;function ei(e,t,r){let n=[],i=Le.pattern.getPatternsOutsideCurrentDirectory(e),s=Le.pattern.getPatternsInsideCurrentDirectory(e),o=ti(i),a=ti(s);return n.push(...ri(o,t,r)),"."in a?n.push(ni(".",s,t,r)):n.push(...ri(a,t,r)),n}ne.convertPatternsToTasks=ei;function hl(e){return Le.pattern.getPositivePatterns(e)}ne.getPositivePatterns=hl;function pl(e,t){return Le.pattern.getNegativePatterns(e).concat(t).map(Le.pattern.convertToPositivePattern)}ne.getNegativePatternsAsPositive=pl;function ti(e){let t={};return e.reduce((r,n)=>{let i=Le.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ne.groupPatternsByBaseDirectory=ti;function ri(e,t,r){return Object.keys(e).map(n=>ni(n,e[n],t,r))}ne.convertPatternGroupsToTasks=ri;function ni(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Le.pattern.convertToNegativePattern))}}ne.convertPatternGroupToTask=ni});var _l=g(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.removeDuplicateSlashes=mt.transform=void 0;var fp=/(?!^)\/{2,}/g;function cp(e){return e.map(t=>gl(t))}mt.transform=cp;function gl(e){return e.replace(fp,"/")}mt.removeDuplicateSlashes=gl});var ml=g(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.read=void 0;function Ap(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){El(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){ii(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){El(r,s);return}ii(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ii(r,o)})})}Rr.read=Ap;function El(e,t){e(t)}function ii(e,t){e(null,t)}});var yl=g(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.read=void 0;function hp(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Ir.read=hp});var Cl=g(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.createFileSystemAdapter=Fe.FILE_SYSTEM_ADAPTER=void 0;var Tr=k("fs");Fe.FILE_SYSTEM_ADAPTER={lstat:Tr.lstat,stat:Tr.stat,lstatSync:Tr.lstatSync,statSync:Tr.statSync};function pp(e){return e===void 0?Fe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Fe.FILE_SYSTEM_ADAPTER),e)}Fe.createFileSystemAdapter=pp});var bl=g(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});var dp=Cl(),si=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=dp.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};oi.default=si});var et=g(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.statSync=qe.stat=qe.Settings=void 0;var Bl=ml(),gp=yl(),ai=bl();qe.Settings=ai.default;function _p(e,t,r){if(typeof t=="function"){Bl.read(e,li(),t);return}Bl.read(e,li(t),r)}qe.stat=_p;function Ep(e,t){let r=li(t);return gp.read(e,r)}qe.statSync=Ep;function li(e={}){return e instanceof ai.default?e:new ai.default(e)}});var vl=g((om,Sl)=>{var xl;Sl.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(xl||(xl=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Ql=g((am,wl)=>{wl.exports=yp;var mp=vl();function yp(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(l){function f(){t&&t(l,r),t=null}s?mp(f):f()}function a(l,f,u){r[l]=u,(--n===0||f)&&o(f)}n?i?i.forEach(function(l){e[l](function(f,u){a(l,f,u)})}):e.forEach(function(l,f){l(function(u,A){a(f,u,A)})}):o(null),s=!1}});var ui=g(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Dr=process.versions.node.split(".");if(Dr[0]===void 0||Dr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Rl=Number.parseInt(Dr[0],10),Cp=Number.parseInt(Dr[1],10),Il=10,bp=10,Bp=Rl>Il,xp=Rl===Il&&Cp>=bp;kr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Bp||xp});var Tl=g(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.createDirentFromStats=void 0;var fi=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Sp(e,t){return new fi(e,t)}Or.createDirentFromStats=Sp});var ci=g(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.fs=void 0;var vp=Tl();Lr.fs=vp});var Ai=g(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.joinPathSegments=void 0;function wp(e,t,r){return e.endsWith(r)?e+t:e+r+t}Pr.joinPathSegments=wp});var Nl=g(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.readdir=He.readdirWithFileTypes=He.read=void 0;var Qp=et(),Dl=Ql(),Rp=ui(),kl=ci(),Ol=Ai();function Ip(e,t,r){if(!t.stats&&Rp.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ll(e,t,r);return}Pl(e,t,r)}He.read=Ip;function Ll(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Nr(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:Ol.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){hi(r,s);return}let o=s.map(a=>Tp(a,t));Dl(o,(a,l)=>{if(a!==null){Nr(r,a);return}hi(r,l)})})}He.readdirWithFileTypes=Ll;function Tp(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=kl.fs.createDirentFromStats(e.name,i),r(null,e)})}}function Pl(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Nr(r,n);return}let s=i.map(o=>{let a=Ol.joinPathSegments(e,o,t.pathSegmentSeparator);return l=>{Qp.stat(a,t.fsStatSettings,(f,u)=>{if(f!==null){l(f);return}let A={name:o,path:a,dirent:kl.fs.createDirentFromStats(o,u)};t.stats&&(A.stats=u),l(null,A)})}});Dl(s,(o,a)=>{if(o!==null){Nr(r,o);return}hi(r,a)})})}He.readdir=Pl;function Nr(e,t){e(t)}function hi(e,t){e(null,t)}});var jl=g(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.readdir=je.readdirWithFileTypes=je.read=void 0;var Dp=et(),kp=ui(),Ml=ci(),Fl=Ai();function Op(e,t){return!t.stats&&kp.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ql(e,t):Hl(e,t)}je.read=Op;function ql(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Fl.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=Ml.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}je.readdirWithFileTypes=ql;function Hl(e,t){return t.fs.readdirSync(e).map(n=>{let i=Fl.joinPathSegments(e,n,t.pathSegmentSeparator),s=Dp.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:Ml.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}je.readdir=Hl});var Kl=g(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.createFileSystemAdapter=Ke.FILE_SYSTEM_ADAPTER=void 0;var yt=k("fs");Ke.FILE_SYSTEM_ADAPTER={lstat:yt.lstat,stat:yt.stat,lstatSync:yt.lstatSync,statSync:yt.statSync,readdir:yt.readdir,readdirSync:yt.readdirSync};function Lp(e){return e===void 0?Ke.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ke.FILE_SYSTEM_ADAPTER),e)}Ke.createFileSystemAdapter=Lp});var Gl=g(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var Pp=k("path"),Np=et(),Mp=Kl(),pi=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Mp.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Pp.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Np.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};di.default=pi});var Mr=g(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.Settings=Ge.scandirSync=Ge.scandir=void 0;var Ul=Nl(),Fp=jl(),gi=Gl();Ge.Settings=gi.default;function qp(e,t,r){if(typeof t=="function"){Ul.read(e,_i(),t);return}Ul.read(e,_i(t),r)}Ge.scandir=qp;function Hp(e,t){let r=_i(t);return Fp.read(e,r)}Ge.scandirSync=Hp;function _i(e={}){return e instanceof gi.default?e:new gi.default(e)}});var Jl=g((_m,$l)=>{"use strict";function jp(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}$l.exports=jp});var Wl=g((Em,Ei)=>{"use strict";var Kp=Jl();function Yl(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Kp(Gp),i=null,s=null,o=0,a=null,l={push:E,drain:pe,saturated:pe,pause:u,paused:!1,concurrency:r,running:f,resume:C,idle:_,length:A,getQueue:c,unshift:x,empty:pe,kill:O,killAndDrain:q,error:V};return l;function f(){return o}function u(){l.paused=!0}function A(){for(var S=i,M=0;S;)S=S.next,M++;return M}function c(){for(var S=i,M=[];S;)M.push(S.value),S=S.next;return M}function C(){if(!!l.paused){l.paused=!1;for(var S=0;S<l.concurrency;S++)o++,B()}}function _(){return o===0&&l.length()===0}function E(S,M){var Q=n.get();Q.context=e,Q.release=B,Q.value=S,Q.callback=M||pe,Q.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=Q,s=Q):(i=Q,s=Q,l.saturated()):(o++,t.call(e,Q.value,Q.worked))}function x(S,M){var Q=n.get();Q.context=e,Q.release=B,Q.value=S,Q.callback=M||pe,o===l.concurrency||l.paused?i?(Q.next=i,i=Q):(i=Q,s=Q,l.saturated()):(o++,t.call(e,Q.value,Q.worked))}function B(S){S&&n.release(S);var M=i;M?l.paused?o--:(s===i&&(s=null),i=M.next,M.next=null,t.call(e,M.value,M.worked),s===null&&l.empty()):--o===0&&l.drain()}function O(){i=null,s=null,l.drain=pe}function q(){i=null,s=null,l.drain(),l.drain=pe}function V(S){a=S}}function pe(){}function Gp(){this.value=null,this.callback=pe,this.next=null,this.release=pe,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=pe,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function Up(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(u,A){t.call(this,u).then(function(c){A(null,c)},A)}var i=Yl(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=f,i;function a(u){var A=new Promise(function(c,C){s(u,function(_,E){if(_){C(_);return}c(E)})});return A.catch(pe),A}function l(u){var A=new Promise(function(c,C){o(u,function(_,E){if(_){C(_);return}c(E)})});return A.catch(pe),A}function f(){var u=i.drain,A=new Promise(function(c){i.drain=function(){u(),c()}});return A}}Ei.exports=Yl;Ei.exports.promise=Up});var Fr=g(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.joinPathSegments=Qe.replacePathSegmentSeparator=Qe.isAppliedFilter=Qe.isFatalError=void 0;function $p(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Qe.isFatalError=$p;function Jp(e,t){return e===null||e(t)}Qe.isAppliedFilter=Jp;function Yp(e,t){return e.split(/[/\\]/).join(t)}Qe.replacePathSegmentSeparator=Yp;function Wp(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Qe.joinPathSegments=Wp});var Ci=g(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});var Vp=Fr(),mi=class{constructor(t,r){this._root=t,this._settings=r,this._root=Vp.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};yi.default=mi});var xi=g(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var Xp=k("events"),Zp=Mr(),zp=Wl(),qr=Fr(),ed=Ci(),bi=class extends ed.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Zp.scandir,this._emitter=new Xp.EventEmitter,this._queue=zp(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!qr.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=qr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),qr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&qr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Bi.default=bi});var Vl=g(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});var td=xi(),Si=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new td.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{rd(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{nd(t,this._storage)}),this._reader.read()}};vi.default=Si;function rd(e,t){e(t)}function nd(e,t){e(null,t)}});var Xl=g(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});var id=k("stream"),sd=xi(),wi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new sd.default(this._root,this._settings),this._stream=new id.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Qi.default=wi});var Zl=g(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});var od=Mr(),Hr=Fr(),ad=Ci(),Ri=class extends ad.default{constructor(){super(...arguments),this._scandir=od.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(!!Hr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Hr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Hr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Hr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Ii.default=Ri});var zl=g(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});var ld=Zl(),Ti=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new ld.default(this._root,this._settings)}read(){return this._reader.read()}};Di.default=Ti});var eu=g(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});var ud=k("path"),fd=Mr(),ki=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,ud.sep),this.fsScandirSettings=new fd.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Oi.default=ki});var Kr=g(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.Settings=Re.walkStream=Re.walkSync=Re.walk=void 0;var tu=Vl(),cd=Xl(),Ad=zl(),Li=eu();Re.Settings=Li.default;function hd(e,t,r){if(typeof t=="function"){new tu.default(e,jr()).read(t);return}new tu.default(e,jr(t)).read(r)}Re.walk=hd;function pd(e,t){let r=jr(t);return new Ad.default(e,r).read()}Re.walkSync=pd;function dd(e,t){let r=jr(t);return new cd.default(e,r).read()}Re.walkStream=dd;function jr(e={}){return e instanceof Li.default?e:new Li.default(e)}});var Gr=g(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var gd=k("path"),_d=et(),ru=Oe(),Pi=class{constructor(t){this._settings=t,this._fsStatSettings=new _d.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return gd.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:ru.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!ru.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Ni.default=Pi});var qi=g(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var Ed=k("stream"),md=et(),yd=Kr(),Cd=Gr(),Mi=class extends Cd.default{constructor(){super(...arguments),this._walkStream=yd.walkStream,this._stat=md.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new Ed.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(l=>{l!==null&&r.entryFilter(l)&&i.push(l),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Fi.default=Mi});var nu=g(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});var bd=Kr(),Bd=Gr(),xd=qi(),Hi=class extends Bd.default{constructor(){super(...arguments),this._walkAsync=bd.walk,this._readerStream=new xd.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};ji.default=Hi});var iu=g(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});var Ct=Oe(),Ki=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=Ct.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return Ct.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Ct.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Ct.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Ct.array.splitWhen(t,r=>r.dynamic&&Ct.pattern.hasGlobStar(r.pattern))}};Gi.default=Ki});var su=g($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});var Sd=iu(),Ui=class extends Sd.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((l,f)=>{let u=s.segments[f];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};$i.default=Ui});var ou=g(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});var Ur=Oe(),vd=su(),Ji=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new vd.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Ur.pattern.isAffectDepthOfReadingPattern);return Ur.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Ur.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Ur.pattern.matchAny(t,r)}};Yi.default=Ji});var au=g(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});var tt=Oe(),Wi=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=tt.pattern.convertPatternsToRe(t,this._micromatchOptions),i=tt.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(t.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=tt.path.makeAbsolute(this._settings.cwd,t);return tt.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=tt.path.removeLeadingDotSegment(t),s=tt.pattern.matchAny(i,r);return!s&&n?tt.pattern.matchAny(i+"/",r):s}};Vi.default=Wi});var lu=g(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});var wd=Oe(),Xi=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return wd.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Zi.default=Xi});var fu=g(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});var uu=Oe(),zi=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=uu.path.makeAbsolute(this._settings.cwd,r),r=uu.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};es.default=zi});var $r=g(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});var Qd=k("path"),Rd=ou(),Id=au(),Td=lu(),Dd=fu(),ts=class{constructor(t){this._settings=t,this.errorFilter=new Td.default(this._settings),this.entryFilter=new Id.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Rd.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Dd.default(this._settings)}_getRootDirectory(t){return Qd.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};rs.default=ts});var cu=g(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});var kd=nu(),Od=$r(),ns=class extends Od.default{constructor(){super(...arguments),this._reader=new kd.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};is.default=ns});var Au=g(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var Ld=k("stream"),Pd=qi(),Nd=$r(),ss=class extends Nd.default{constructor(){super(...arguments),this._reader=new Pd.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new Ld.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};os.default=ss});var hu=g(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var Md=et(),Fd=Kr(),qd=Gr(),as=class extends qd.default{constructor(){super(...arguments),this._walkSync=Fd.walkSync,this._statSync=Md.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};ls.default=as});var pu=g(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var Hd=hu(),jd=$r(),us=class extends jd.default{constructor(){super(...arguments),this._reader=new Hd.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};fs.default=us});var du=g(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var bt=k("fs"),Kd=k("os"),Gd=Math.max(Kd.cpus().length,1);Bt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:bt.lstat,lstatSync:bt.lstatSync,stat:bt.stat,statSync:bt.statSync,readdir:bt.readdir,readdirSync:bt.readdirSync};var cs=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Gd),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},Bt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};Bt.default=cs});var ds=g((Km,Eu)=>{"use strict";var gu=dl(),_u=_l(),Ud=cu(),$d=Au(),Jd=pu(),As=du(),rt=Oe();async function hs(e,t){xt(e);let r=ps(e,Ud.default,t),n=await Promise.all(r);return rt.array.flatten(n)}(function(e){function t(o,a){xt(o);let l=ps(o,Jd.default,a);return rt.array.flatten(l)}e.sync=t;function r(o,a){xt(o);let l=ps(o,$d.default,a);return rt.stream.merge(l)}e.stream=r;function n(o,a){xt(o);let l=_u.transform([].concat(o)),f=new As.default(a);return gu.generate(l,f)}e.generateTasks=n;function i(o,a){xt(o);let l=new As.default(a);return rt.pattern.isDynamicPattern(o,l)}e.isDynamicPattern=i;function s(o){return xt(o),rt.path.escape(o)}e.escapePath=s})(hs||(hs={}));function ps(e,t,r){let n=_u.transform([].concat(e)),i=new As.default(r),s=gu.generate(n,i),o=new t(i);return s.map(o.read,o)}function xt(e){if(![].concat(e).every(n=>rt.string.isString(n)&&!rt.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Eu.exports=hs});var yu=g((Gm,gs)=>{"use strict";var mu=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};gs.exports=mu;gs.exports.default=mu});var bu=g((Um,Yr)=>{"use strict";var Yd=yu(),Jr=new WeakMap,Cu=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(Jr.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Yd(s,e),Jr.set(s,n),s};Yr.exports=Cu;Yr.exports.default=Cu;Yr.exports.callCount=e=>{if(!Jr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Jr.get(e)}});var Bu=g(($m,Wr)=>{Wr.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Wr.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Wr.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Qu=g((Jm,wt)=>{var $=global.process,nt=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};nt($)?(xu=k("assert"),St=Bu(),Su=/^win/i.test($.platform),$t=k("events"),typeof $t!="function"&&($t=$t.EventEmitter),$.__signal_exit_emitter__?te=$.__signal_exit_emitter__:(te=$.__signal_exit_emitter__=new $t,te.count=0,te.emitted={}),te.infinite||(te.setMaxListeners(1/0),te.infinite=!0),wt.exports=function(e,t){if(!nt(global.process))return function(){};xu.equal(typeof e,"function","a callback must be provided for exit handler"),vt===!1&&_s();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){te.removeListener(r,e),te.listeners("exit").length===0&&te.listeners("afterexit").length===0&&Vr()};return te.on(r,e),n},Vr=function(){!vt||!nt(global.process)||(vt=!1,St.forEach(function(t){try{$.removeListener(t,Xr[t])}catch{}}),$.emit=Zr,$.reallyExit=Es,te.count-=1)},wt.exports.unload=Vr,it=function(t,r,n){te.emitted[t]||(te.emitted[t]=!0,te.emit(t,r,n))},Xr={},St.forEach(function(e){Xr[e]=function(){if(!!nt(global.process)){var r=$.listeners(e);r.length===te.count&&(Vr(),it("exit",null,e),it("afterexit",null,e),Su&&e==="SIGHUP"&&(e="SIGINT"),$.kill($.pid,e))}}}),wt.exports.signals=function(){return St},vt=!1,_s=function(){vt||!nt(global.process)||(vt=!0,te.count+=1,St=St.filter(function(t){try{return $.on(t,Xr[t]),!0}catch{return!1}}),$.emit=wu,$.reallyExit=vu)},wt.exports.load=_s,Es=$.reallyExit,vu=function(t){!nt(global.process)||($.exitCode=t||0,it("exit",$.exitCode,null),it("afterexit",$.exitCode,null),Es.call($,$.exitCode))},Zr=$.emit,wu=function(t,r){if(t==="exit"&&nt(global.process)){r!==void 0&&($.exitCode=r);var n=Zr.apply(this,arguments);return it("exit",$.exitCode,null),it("afterexit",$.exitCode,null),n}else return Zr.apply(this,arguments)}):wt.exports=function(){return function(){}};var xu,St,Su,$t,te,Vr,it,Xr,vt,_s,Es,vu,Zr,wu});var ku=g((zm,Xd)=>{Xd.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var Pu=g((ey,Lu)=>{"use strict";var en=Object.assign({},ku()),Ou=Object.keys(en);Object.defineProperty(en,"random",{get(){let e=Math.floor(Math.random()*Ou.length),t=Ou[e];return en[t]}});Lu.exports=en});var Nu=g((uy,tn)=>{var tg=function(){"use strict";function e(o,a,l,f){var u;typeof a=="object"&&(l=a.depth,f=a.prototype,u=a.filter,a=a.circular);var A=[],c=[],C=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function _(E,x){if(E===null)return null;if(x==0)return E;var B,O;if(typeof E!="object")return E;if(e.__isArray(E))B=[];else if(e.__isRegExp(E))B=new RegExp(E.source,s(E)),E.lastIndex&&(B.lastIndex=E.lastIndex);else if(e.__isDate(E))B=new Date(E.getTime());else{if(C&&Buffer.isBuffer(E))return Buffer.allocUnsafe?B=Buffer.allocUnsafe(E.length):B=new Buffer(E.length),E.copy(B),B;typeof f>"u"?(O=Object.getPrototypeOf(E),B=Object.create(O)):(B=Object.create(f),O=f)}if(a){var q=A.indexOf(E);if(q!=-1)return c[q];A.push(E),c.push(B)}for(var V in E){var S;O&&(S=Object.getOwnPropertyDescriptor(O,V)),!(S&&S.set==null)&&(B[V]=_(E[V],x-1))}return B}return _(o,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof tn=="object"&&tn.exports&&(tn.exports=tg)});var Fu=g((fy,Mu)=>{var rg=Nu();Mu.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=rg(t[r]))}),e}});var Hu=g((cy,qu)=>{qu.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Uu=g((Ay,bs)=>{"use strict";var ng=Fu(),Wt=Hu(),Ku={nul:0,control:0};bs.exports=function(t){return Gu(t,Ku)};bs.exports.config=function(e){return e=ng(e||{},Ku),function(r){return Gu(r,e)}};function Gu(e,t){if(typeof e!="string")return ju(e,t);for(var r=0,n=0;n<e.length;n++){var i=ju(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function ju(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:ig(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function ig(e){var t=0,r=Wt.length-1,n;if(e<Wt[0][0]||e>Wt[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Wt[n][1])t=n+1;else if(e<Wt[n][0])r=n-1;else return!0;return!1}});var xs=g((py,$u)=>{$u.exports=k("stream")});var Vu=g((dy,Wu)=>{"use strict";function Ju(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ju(Object(r),!0).forEach(function(n){og(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ju(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function og(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ag(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lg(e,t,r){return t&&Yu(e.prototype,t),r&&Yu(e,r),e}var ug=k("buffer"),rn=ug.Buffer,fg=k("util"),Ss=fg.inspect,cg=Ss&&Ss.custom||"inspect";function Ag(e,t,r){rn.prototype.copy.call(e,t,r)}Wu.exports=function(){function e(){ag(this,e),this.head=null,this.tail=null,this.length=0}return lg(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return rn.alloc(0);for(var n=rn.allocUnsafe(r>>>0),i=this.head,s=0;i;)Ag(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=rn.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:cg,value:function(r,n){return Ss(this,sg({},n,{depth:0,customInspect:!1}))}}]),e}()});var ws=g((gy,Zu)=>{"use strict";function hg(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(vs,this,e)):process.nextTick(vs,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(nn,r):(r._writableState.errorEmitted=!0,process.nextTick(Xu,r,s)):process.nextTick(Xu,r,s):t?(process.nextTick(nn,r),t(s)):process.nextTick(nn,r)}),this)}function Xu(e,t){vs(e,t),nn(e)}function nn(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function pg(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function vs(e,t){e.emit("error",t)}function dg(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Zu.exports={destroy:hg,undestroy:pg,errorOrDestroy:dg}});var Ue=g((_y,tf)=>{"use strict";var ef={};function de(e,t,r){r||(r=Error);function n(s,o,a){return typeof t=="string"?t:t(s,o,a)}class i extends r{constructor(o,a,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=e,ef[e]=i}function zu(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function gg(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function _g(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Eg(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}de("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);de("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&gg(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(_g(e," argument"))i=`The ${e} ${n} ${zu(t,"type")}`;else{let s=Eg(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${zu(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);de("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");de("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});de("ERR_STREAM_PREMATURE_CLOSE","Premature close");de("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});de("ERR_MULTIPLE_CALLBACK","Callback called multiple times");de("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");de("ERR_STREAM_WRITE_AFTER_END","write after end");de("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);de("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);de("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");tf.exports.codes=ef});var Qs=g((Ey,rf)=>{"use strict";var mg=Ue().codes.ERR_INVALID_OPT_VALUE;function yg(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Cg(e,t,r,n){var i=yg(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new mg(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}rf.exports={getHighWaterMark:Cg}});var nf=g((my,Rs)=>{typeof Object.create=="function"?Rs.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Rs.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var st=g((yy,Ts)=>{try{if(Is=k("util"),typeof Is.inherits!="function")throw"";Ts.exports=Is.inherits}catch{Ts.exports=nf()}var Is});var of=g((Cy,sf)=>{sf.exports=k("util").deprecate});var Os=g((by,Af)=>{"use strict";Af.exports=Y;function lf(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Yg(t,e)}}var Rt;Y.WritableState=Xt;var bg={deprecate:of()},uf=xs(),on=k("buffer").Buffer,Bg=global.Uint8Array||function(){};function xg(e){return on.from(e)}function Sg(e){return on.isBuffer(e)||e instanceof Bg}var ks=ws(),vg=Qs(),wg=vg.getHighWaterMark,$e=Ue().codes,Qg=$e.ERR_INVALID_ARG_TYPE,Rg=$e.ERR_METHOD_NOT_IMPLEMENTED,Ig=$e.ERR_MULTIPLE_CALLBACK,Tg=$e.ERR_STREAM_CANNOT_PIPE,Dg=$e.ERR_STREAM_DESTROYED,kg=$e.ERR_STREAM_NULL_VALUES,Og=$e.ERR_STREAM_WRITE_AFTER_END,Lg=$e.ERR_UNKNOWN_ENCODING,It=ks.errorOrDestroy;st()(Y,uf);function Pg(){}function Xt(e,t,r){Rt=Rt||ot(),e=e||{},typeof r!="boolean"&&(r=t instanceof Rt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=wg(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Kg(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new lf(this)}Xt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Xt.prototype,"buffer",{get:bg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var sn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(sn=Function.prototype[Symbol.hasInstance],Object.defineProperty(Y,Symbol.hasInstance,{value:function(t){return sn.call(this,t)?!0:this!==Y?!1:t&&t._writableState instanceof Xt}})):sn=function(t){return t instanceof this};function Y(e){Rt=Rt||ot();var t=this instanceof Rt;if(!t&&!sn.call(Y,this))return new Y(e);this._writableState=new Xt(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),uf.call(this)}Y.prototype.pipe=function(){It(this,new Tg)};function Ng(e,t){var r=new Og;It(e,r),process.nextTick(t,r)}function Mg(e,t,r,n){var i;return r===null?i=new kg:typeof r!="string"&&!t.objectMode&&(i=new Qg("chunk",["string","Buffer"],r)),i?(It(e,i),process.nextTick(n,i),!1):!0}Y.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&Sg(e);return s&&!on.isBuffer(e)&&(e=xg(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=Pg),n.ending?Ng(this,r):(s||Mg(this,n,e,r))&&(n.pendingcb++,i=qg(this,n,s,e,t,r)),i};Y.prototype.cork=function(){this._writableState.corked++};Y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&ff(this,e))};Y.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new Lg(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Y.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Fg(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=on.from(t,r)),t}Object.defineProperty(Y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function qg(e,t,r,n,i,s){if(!r){var o=Fg(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ds(e,t,!1,a,n,i,s);return l}function Ds(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Dg("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function Hg(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Vt,e,t),e._writableState.errorEmitted=!0,It(e,n)):(i(n),e._writableState.errorEmitted=!0,It(e,n),Vt(e,t))}function jg(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Kg(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Ig;if(jg(r),t)Hg(e,r,n,t,i);else{var s=cf(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&ff(e,r),n?process.nextTick(af,e,r,s,i):af(e,r,s,i)}}function af(e,t,r,n){r||Gg(e,t),t.pendingcb--,n(),Vt(e,t)}function Gg(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function ff(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Ds(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new lf(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,f=r.encoding,u=r.callback,A=t.objectMode?1:l.length;if(Ds(e,t,!1,A,l,f,u),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Y.prototype._write=function(e,t,r){r(new Rg("_write()"))};Y.prototype._writev=null;Y.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Jg(this,n,r),this};Object.defineProperty(Y.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function cf(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Ug(e,t){e._final(function(r){t.pendingcb--,r&&It(e,r),t.prefinished=!0,e.emit("prefinish"),Vt(e,t)})}function $g(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Ug,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Vt(e,t){var r=cf(t);if(r&&($g(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function Jg(e,t,r){t.ending=!0,Vt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Yg(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});Y.prototype.destroy=ks.destroy;Y.prototype._undestroy=ks.undestroy;Y.prototype._destroy=function(e,t){t(e)}});var ot=g((By,pf)=>{"use strict";var Wg=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};pf.exports=Ie;var hf=Ns(),Ps=Os();st()(Ie,hf);for(Ls=Wg(Ps.prototype),an=0;an<Ls.length;an++)ln=Ls[an],Ie.prototype[ln]||(Ie.prototype[ln]=Ps.prototype[ln]);var Ls,ln,an;function Ie(e){if(!(this instanceof Ie))return new Ie(e);hf.call(this,e),Ps.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Vg)))}Object.defineProperty(Ie.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ie.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ie.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Vg(){this._writableState.ended||process.nextTick(Xg,this)}function Xg(e){e.end()}Object.defineProperty(Ie.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var _f=g((Ms,gf)=>{var un=k("buffer"),Te=un.Buffer;function df(e,t){for(var r in e)t[r]=e[r]}Te.from&&Te.alloc&&Te.allocUnsafe&&Te.allocUnsafeSlow?gf.exports=un:(df(un,Ms),Ms.Buffer=at);function at(e,t,r){return Te(e,t,r)}at.prototype=Object.create(Te.prototype);df(Te,at);at.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Te(e,t,r)};at.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Te(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};at.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Te(e)};at.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return un.SlowBuffer(e)}});var Hs=g(mf=>{"use strict";var qs=_f().Buffer,Ef=qs.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Zg(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function zg(e){var t=Zg(e);if(typeof t!="string"&&(qs.isEncoding===Ef||!Ef(e)))throw new Error("Unknown encoding: "+e);return t||e}mf.StringDecoder=Zt;function Zt(e){this.encoding=zg(e);var t;switch(this.encoding){case"utf16le":this.text=s_,this.end=o_,t=4;break;case"utf8":this.fillLast=r_,t=4;break;case"base64":this.text=a_,this.end=l_,t=3;break;default:this.write=u_,this.end=f_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=qs.allocUnsafe(t)}Zt.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Zt.prototype.end=i_;Zt.prototype.text=n_;Zt.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Fs(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function e_(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Fs(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Fs(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Fs(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function t_(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function r_(e){var t=this.lastTotal-this.lastNeed,r=t_(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function n_(e,t){var r=e_(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function i_(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function s_(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function o_(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function a_(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l_(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u_(e){return e.toString(this.encoding)}function f_(e){return e&&e.length?this.write(e):""}});var fn=g((Sy,bf)=>{"use strict";var yf=Ue().codes.ERR_STREAM_PREMATURE_CLOSE;function c_(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function A_(){}function h_(e){return e.setHeader&&typeof e.abort=="function"}function Cf(e,t,r){if(typeof t=="function")return Cf(e,null,t);t||(t={}),r=c_(r||A_);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},o=e._writableState&&e._writableState.finished,a=function(){i=!1,o=!0,n||r.call(e)},l=e._readableState&&e._readableState.endEmitted,f=function(){n=!1,l=!0,i||r.call(e)},u=function(_){r.call(e,_)},A=function(){var _;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(_=new yf),r.call(e,_);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(_=new yf),r.call(e,_)},c=function(){e.req.on("finish",a)};return h_(e)?(e.on("complete",a),e.on("abort",A),e.req?c():e.on("request",c)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",f),e.on("finish",a),t.error!==!1&&e.on("error",u),e.on("close",A),function(){e.removeListener("complete",a),e.removeListener("abort",A),e.removeListener("request",c),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",f),e.removeListener("error",u),e.removeListener("close",A)}}bf.exports=Cf});var xf=g((vy,Bf)=>{"use strict";var cn;function Je(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var p_=fn(),Ye=Symbol("lastResolve"),lt=Symbol("lastReject"),zt=Symbol("error"),An=Symbol("ended"),ut=Symbol("lastPromise"),js=Symbol("handlePromise"),ft=Symbol("stream");function We(e,t){return{value:e,done:t}}function d_(e){var t=e[Ye];if(t!==null){var r=e[ft].read();r!==null&&(e[ut]=null,e[Ye]=null,e[lt]=null,t(We(r,!1)))}}function g_(e){process.nextTick(d_,e)}function __(e,t){return function(r,n){e.then(function(){if(t[An]){r(We(void 0,!0));return}t[js](r,n)},n)}}var E_=Object.getPrototypeOf(function(){}),m_=Object.setPrototypeOf((cn={get stream(){return this[ft]},next:function(){var t=this,r=this[zt];if(r!==null)return Promise.reject(r);if(this[An])return Promise.resolve(We(void 0,!0));if(this[ft].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[zt]?a(t[zt]):o(We(void 0,!0))})});var n=this[ut],i;if(n)i=new Promise(__(n,this));else{var s=this[ft].read();if(s!==null)return Promise.resolve(We(s,!1));i=new Promise(this[js])}return this[ut]=i,i}},Je(cn,Symbol.asyncIterator,function(){return this}),Je(cn,"return",function(){var t=this;return new Promise(function(r,n){t[ft].destroy(null,function(i){if(i){n(i);return}r(We(void 0,!0))})})}),cn),E_),y_=function(t){var r,n=Object.create(m_,(r={},Je(r,ft,{value:t,writable:!0}),Je(r,Ye,{value:null,writable:!0}),Je(r,lt,{value:null,writable:!0}),Je(r,zt,{value:null,writable:!0}),Je(r,An,{value:t._readableState.endEmitted,writable:!0}),Je(r,js,{value:function(s,o){var a=n[ft].read();a?(n[ut]=null,n[Ye]=null,n[lt]=null,s(We(a,!1))):(n[Ye]=s,n[lt]=o)},writable:!0}),r));return n[ut]=null,p_(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[lt];s!==null&&(n[ut]=null,n[Ye]=null,n[lt]=null,s(i)),n[zt]=i;return}var o=n[Ye];o!==null&&(n[ut]=null,n[Ye]=null,n[lt]=null,o(We(void 0,!0))),n[An]=!0}),t.on("readable",g_.bind(null,n)),n};Bf.exports=y_});var Qf=g((wy,wf)=>{"use strict";function Sf(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(f){r(f);return}a.done?t(l):Promise.resolve(l).then(n,i)}function C_(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(l){Sf(s,n,i,o,a,"next",l)}function a(l){Sf(s,n,i,o,a,"throw",l)}o(void 0)})}}function vf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function b_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vf(Object(r),!0).forEach(function(n){B_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var x_=Ue().codes.ERR_INVALID_ARG_TYPE;function S_(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new x_("iterable",["Iterable"],t);var i=new e(b_({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=C_(function*(){try{var l=yield n.next(),f=l.value,u=l.done;u?i.push(null):i.push(yield f)?o():s=!1}catch(A){i.destroy(A)}}),a.apply(this,arguments)}return i}wf.exports=S_});var Ns=g((Ry,Mf)=>{"use strict";Mf.exports=L;var Tt;L.ReadableState=Df;var Qy=k("events").EventEmitter,Tf=function(t,r){return t.listeners(r).length},tr=xs(),hn=k("buffer").Buffer,v_=global.Uint8Array||function(){};function w_(e){return hn.from(e)}function Q_(e){return hn.isBuffer(e)||e instanceof v_}var Ks=k("util"),I;Ks&&Ks.debuglog?I=Ks.debuglog("stream"):I=function(){};var R_=Vu(),Vs=ws(),I_=Qs(),T_=I_.getHighWaterMark,pn=Ue().codes,D_=pn.ERR_INVALID_ARG_TYPE,k_=pn.ERR_STREAM_PUSH_AFTER_EOF,O_=pn.ERR_METHOD_NOT_IMPLEMENTED,L_=pn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Dt,Gs,Us;st()(L,tr);var er=Vs.errorOrDestroy,$s=["error","close","destroy","pause","resume"];function P_(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function Df(e,t,r){Tt=Tt||ot(),e=e||{},typeof r!="boolean"&&(r=t instanceof Tt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=T_(this,e,"readableHighWaterMark",r),this.buffer=new R_,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Dt||(Dt=Hs().StringDecoder),this.decoder=new Dt(e.encoding),this.encoding=e.encoding)}function L(e){if(Tt=Tt||ot(),!(this instanceof L))return new L(e);var t=this instanceof Tt;this._readableState=new Df(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),tr.call(this)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});L.prototype.destroy=Vs.destroy;L.prototype._undestroy=Vs.undestroy;L.prototype._destroy=function(e,t){t(e)};L.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=hn.from(e,t),t=""),n=!0),kf(this,e,t,!1,n)};L.prototype.unshift=function(e){return kf(this,e,null,!0,!1)};function kf(e,t,r,n,i){I("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,F_(e,s);else{var o;if(i||(o=N_(s,t)),o)er(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==hn.prototype&&(t=w_(t)),n)s.endEmitted?er(e,new L_):Js(e,s,t,!0);else if(s.ended)er(e,new k_);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Js(e,s,t,!1):Ws(e,s)):Js(e,s,t,!1)}else n||(s.reading=!1,Ws(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Js(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&dn(e)),Ws(e,t)}function N_(e,t){var r;return!Q_(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new D_("chunk",["string","Buffer","Uint8Array"],t)),r}L.prototype.isPaused=function(){return this._readableState.flowing===!1};L.prototype.setEncoding=function(e){Dt||(Dt=Hs().StringDecoder);var t=new Dt(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var Rf=1073741824;function M_(e){return e>=Rf?e=Rf:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function If(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=M_(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}L.prototype.read=function(e){I("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return I("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Ys(this):dn(this),null;if(e=If(e,t),e===0&&t.ended)return t.length===0&&Ys(this),null;var n=t.needReadable;I("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,I("length less than watermark",n)),t.ended||t.reading?(n=!1,I("reading or ended",n)):n&&(I("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=If(r,t)));var i;return e>0?i=Pf(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Ys(this)),i!==null&&this.emit("data",i),i};function F_(e,t){if(I("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?dn(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,Of(e)))}}function dn(e){var t=e._readableState;I("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(Of,e))}function Of(e){var t=e._readableState;I("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Xs(e)}function Ws(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(q_,e,t))}function q_(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(I("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}L.prototype._read=function(e){er(this,new O_("_read()"))};L.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,I("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:E;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(x,B){I("onunpipe"),x===r&&B&&B.hasUnpiped===!1&&(B.hasUnpiped=!0,u())}function a(){I("onend"),e.end()}var l=H_(r);e.on("drain",l);var f=!1;function u(){I("cleanup"),e.removeListener("close",C),e.removeListener("finish",_),e.removeListener("drain",l),e.removeListener("error",c),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",E),r.removeListener("data",A),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",A);function A(x){I("ondata");var B=e.write(x);I("dest.write",B),B===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Nf(n.pipes,e)!==-1)&&!f&&(I("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function c(x){I("onerror",x),E(),e.removeListener("error",c),Tf(e,"error")===0&&er(e,x)}P_(e,"error",c);function C(){e.removeListener("finish",_),E()}e.once("close",C);function _(){I("onfinish"),e.removeListener("close",C),E()}e.once("finish",_);function E(){I("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(I("pipe resume"),r.resume()),e};function H_(e){return function(){var r=e._readableState;I("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Tf(e,"data")&&(r.flowing=!0,Xs(e))}}L.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Nf(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};L.prototype.on=function(e,t){var r=tr.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,I("on readable",n.length,n.reading),n.length?dn(this):n.reading||process.nextTick(j_,this)),r};L.prototype.addListener=L.prototype.on;L.prototype.removeListener=function(e,t){var r=tr.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(Lf,this),r};L.prototype.removeAllListeners=function(e){var t=tr.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Lf,this),t};function Lf(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j_(e){I("readable nexttick read 0"),e.read(0)}L.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!e.readableListening,K_(this,e)),e.paused=!1,this};function K_(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(G_,e,t))}function G_(e,t){I("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Xs(e),t.flowing&&!t.reading&&e.read(0)}L.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Xs(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&e.read()!==null;);}L.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(I("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(I("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<$s.length;s++)e.on($s[s],this.emit.bind(this,$s[s]));return this._read=function(o){I("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(L.prototype[Symbol.asyncIterator]=function(){return Gs===void 0&&(Gs=xf()),Gs(this)});Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(L.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(L.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});L._fromList=Pf;Object.defineProperty(L.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Pf(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Ys(e){var t=e._readableState;I("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(U_,t,e))}function U_(e,t){if(I("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(L.from=function(e,t){return Us===void 0&&(Us=Qf()),Us(L,e,t)});function Nf(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var Zs=g((Iy,qf)=>{"use strict";qf.exports=Pe;var gn=Ue().codes,$_=gn.ERR_METHOD_NOT_IMPLEMENTED,J_=gn.ERR_MULTIPLE_CALLBACK,Y_=gn.ERR_TRANSFORM_ALREADY_TRANSFORMING,W_=gn.ERR_TRANSFORM_WITH_LENGTH_0,_n=ot();st()(Pe,_n);function V_(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new J_);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Pe(e){if(!(this instanceof Pe))return new Pe(e);_n.call(this,e),this._transformState={afterTransform:V_.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",X_)}function X_(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Ff(e,t,r)}):Ff(this,null,null)}Pe.prototype.push=function(e,t){return this._transformState.needTransform=!1,_n.prototype.push.call(this,e,t)};Pe.prototype._transform=function(e,t,r){r(new $_("_transform()"))};Pe.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Pe.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Pe.prototype._destroy=function(e,t){_n.prototype._destroy.call(this,e,function(r){t(r)})};function Ff(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new W_;if(e._transformState.transforming)throw new Y_;return e.push(null)}});var Kf=g((Ty,jf)=>{"use strict";jf.exports=rr;var Hf=Zs();st()(rr,Hf);function rr(e){if(!(this instanceof rr))return new rr(e);Hf.call(this,e)}rr.prototype._transform=function(e,t,r){r(null,e)}});var Yf=g((Dy,Jf)=>{"use strict";var zs;function Z_(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var $f=Ue().codes,z_=$f.ERR_MISSING_ARGS,e0=$f.ERR_STREAM_DESTROYED;function Gf(e){if(e)throw e}function t0(e){return e.setHeader&&typeof e.abort=="function"}function r0(e,t,r,n){n=Z_(n);var i=!1;e.on("close",function(){i=!0}),zs===void 0&&(zs=fn()),zs(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,t0(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new e0("pipe"))}}}function Uf(e){e()}function n0(e,t){return e.pipe(t)}function i0(e){return!e.length||typeof e[e.length-1]!="function"?Gf:e.pop()}function s0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=i0(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new z_("streams");var i,s=t.map(function(o,a){var l=a<t.length-1,f=a>0;return r0(o,l,f,function(u){i||(i=u),u&&s.forEach(Uf),!l&&(s.forEach(Uf),n(i))})});return t.reduce(n0)}Jf.exports=s0});var Wf=g((ge,ir)=>{var nr=k("stream");process.env.READABLE_STREAM==="disable"&&nr?(ir.exports=nr.Readable,Object.assign(ir.exports,nr),ir.exports.Stream=nr):(ge=ir.exports=Ns(),ge.Stream=nr||ge,ge.Readable=ge,ge.Writable=Os(),ge.Duplex=ot(),ge.Transform=Zs(),ge.PassThrough=Kf(),ge.finished=fn(),ge.pipeline=Yf())});var Zf=g((ky,Xf)=>{"use strict";var{Buffer:Ce}=k("buffer"),Vf=Symbol.for("BufferList");function j(e){if(!(this instanceof j))return new j(e);j._init.call(this,e)}j._init=function(t){Object.defineProperty(this,Vf,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};j.prototype._new=function(t){return new j(t)};j.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};j.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};j.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};j.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};j.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||Ce.alloc(0);let s=!!t,o=this._offset(n),a=i-n,l=a,f=s&&r||0,u=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:Ce.concat(this._bufs,this.length);for(let A=0;A<this._bufs.length;A++)this._bufs[A].copy(t,f),f+=this._bufs[A].length;return t}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(t,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(t=Ce.allocUnsafe(a));for(let A=o[0];A<this._bufs.length;A++){let c=this._bufs[A].length-u;if(l>c)this._bufs[A].copy(t,f,u),f+=c;else{this._bufs[A].copy(t,f,u,u+l),f+=c;break}l-=c,u&&(u=0)}return t.length>f?t.slice(0,f):t};j.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};j.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};j.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};j.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};j.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(Ce.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(Ce.from(t));return this};j.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};j.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=Ce.from([e]):typeof e=="string"?e=Ce.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Ce.from(e.buffer,e.byteOffset,e.byteLength):Ce.isBuffer(e)||(e=Ce.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=e.length){let l=o.indexOf(e,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-e.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,e))return l;s++}s=0}return-1};j.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?j.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:j.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();j.prototype._isBufferList=function(t){return t instanceof j||j.isBufferList(t)};j.isBufferList=function(t){return t!=null&&t[Vf]};Xf.exports=j});var zf=g((Oy,En)=>{"use strict";var eo=Wf().Duplex,o0=st(),sr=Zf();function ie(e){if(!(this instanceof ie))return new ie(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}sr._init.call(this,e),eo.call(this)}o0(ie,eo);Object.assign(ie.prototype,sr.prototype);ie.prototype._new=function(t){return new ie(t)};ie.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};ie.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};ie.prototype.end=function(t){eo.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};ie.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};ie.prototype._isBufferList=function(t){return t instanceof ie||t instanceof sr||ie.isBufferList(t)};ie.isBufferList=sr.isBufferList;En.exports=ie;En.exports.BufferListStream=ie;En.exports.BufferList=sr});import{constants as eE,existsSync as Ar}from"fs";import{copyFile as tE,mkdir as bc,readFile as Bc,rm as _c,writeFile as rE}from"fs/promises";import{dirname as xc,extname as nE,isAbsolute as iE,resolve as sE,resolve as Ft}from"path";import{build as _o,transform as oE}from"esbuild";var yo=(e=0)=>t=>`\x1B[${t+e}m`,Co=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,bo=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`,G={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Bo=Object.keys(G.modifier),Qn=Object.keys(G.color),Rn=Object.keys(G.bgColor),xo=[...Qn,...Rn];function kc(){let e=new Map;for(let[t,r]of Object.entries(G)){for(let[n,i]of Object.entries(r))G[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=G[n],e.set(i[0],i[1]);Object.defineProperty(G,t,{value:r,enumerable:!1})}return Object.defineProperty(G,"codes",{value:e,enumerable:!1}),G.color.close="\x1B[39m",G.bgColor.close="\x1B[49m",G.color.ansi=yo(),G.color.ansi256=Co(),G.color.ansi16m=bo(),G.bgColor.ansi=yo(10),G.bgColor.ansi256=Co(10),G.bgColor.ansi16m=bo(10),Object.defineProperties(G,{rgbToAnsi256:{value(t,r,n){return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(t){let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(s=>s+s).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>G.rgbToAnsi256(...G.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let r,n,i;if(t>=232)r=((t-232)*10+8)/255,n=r,i=r;else{t-=16;let a=t%36;r=Math.floor(t/36)/5,n=Math.floor(a/6)/5,i=a%6/5}let s=Math.max(r,n,i)*2;if(s===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(t,r,n)=>G.ansi256ToAnsi(G.rgbToAnsi256(t,r,n)),enumerable:!1},hexToAnsi:{value:t=>G.ansi256ToAnsi(G.hexToAnsi256(t)),enumerable:!1}}),G}var Oc=kc(),me=Oc;import In from"node:process";import Lc from"node:os";import So from"node:tty";function Ae(e,t=In.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:X}=In,_r;Ae("no-color")||Ae("no-colors")||Ae("color=false")||Ae("color=never")?_r=0:(Ae("color")||Ae("colors")||Ae("color=true")||Ae("color=always"))&&(_r=1);function Pc(){if("FORCE_COLOR"in X)return X.FORCE_COLOR==="true"?1:X.FORCE_COLOR==="false"?0:X.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(X.FORCE_COLOR,10),3)}function Nc(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Mc(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=Pc();n!==void 0&&(_r=n);let i=r?_r:n;if(i===0)return 0;if(r){if(Ae("color=16m")||Ae("color=full")||Ae("color=truecolor"))return 3;if(Ae("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(X.TERM==="dumb")return s;if(In.platform==="win32"){let o=Lc.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in X)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in X)||X.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in X)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in X&&"AGENT_NAME"in X)return 1;if(X.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in X){let o=Number.parseInt((X.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(X.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM)||"COLORTERM"in X?1:s}function vo(e,t={}){let r=Mc(e,{streamIsTTY:e&&e.isTTY,...t});return Nc(r)}var Fc={stdout:vo({isTTY:So.isatty(1)}),stderr:vo({isTTY:So.isatty(2)})},wo=Fc;function Qo(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.slice(s,n)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function Ro(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.slice(i,o?n-1:n)+t+(o?`\r
@@ -26,7 +26,7 @@ import ReactDOM from "react-dom";
26
26
  `,mc=e=>{let t=` ${e} `;Ne(F.bgBlue(F.bold(F.white(t))))},hb=e=>{let t=` ${e} `;Ne(F.bgRed(F.bold(F.white(t))))},lE=async()=>{let e;if(Ar("dist")||await bc("dist"),Ar("dist/package.json")?e=JSON.parse(await Bc("dist/package.json","utf-8")):e={},e?.module==="module")return!0;e.type="module",await rE("dist/package.json",JSON.stringify(e,null,2))},yc=(e,t,r)=>{t=Ft(t);let n=uo(t);return{stdin:{contents:e,sourcefile:t,resolveDir:xc(t),loader:r},outdir:void 0,outfile:n}},Cc=async(e,t,r)=>{e=Ft(e),t=Ft(t);let o=["yarn tailwindcss",r?"":"--minify","--postcss postcss.config.js",`-i ${e}`,`-o ${t}`];Ar(Ft(process.cwd(),"tailwind.config.js"))&&o.push("--config tailwind.config.js");let a=Sn({log:!1,stdio:"ignore"}),l=o.join(" "),{code:f,stdout:u,stderr:A}=await a.run(l);if(f!==0)throw new Error(`Building CSS bundle exited with code ${f} for ${e}.
27
27
  \rTried running: ${l}.
28
28
  \rError: ${u+A}`)},uE=`
29
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
29
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
30
30
  `,fE=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=!1,jsOnly:o=!1,noWrite:a=!1,stdin:l=void 0,stdinFile:f=void 0})=>{Ec.NODE_ENV=n?"development":"production";let u=_e(fE);n&&(s=!0);let{cwd:A,srcDir:c,outDir:C}=lo(),_=await Ac(),E=JSON.parse(_),x={treeShaking:i,target:r,minify:!n,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:n?"warning":"error",define:{"process.env.NODE_ENV":n?JSON.stringify("development"):JSON.stringify("production")}},B=["esbuild","*.png"],O=Ft(A,"tsconfig.export.json"),q=Ar(O),V={...x,tsconfig:q?O:void 0,bundle:i,absWorkingDir:A,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:E?.platform??"node",write:!a,external:i?B:void 0,banner:i?{js:uE}:void 0},S="";if(l){u.log("Building file from stdin",{stdin:l,stdinFile:f,noWrite:a}),f||(Ne(F.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof l=="string"&&l.length?S=l:S=await go();let b={...x,sourcefile:f,loader:"tsx",banner:void 0,footer:void 0};if(a)return(await oE(S,b)).code;{let T=yc(S,f,"tsx");await Me(async()=>await _o({...V,...T}),{start:"Building stdin to dist/.",success:"Built stdin to dist/.",error:"Error building stdin to dist/."}),Ne(F.grey("Use --no-write to print to stdout instead."));return}}u.log("Building",{files:e,dev:n,runtimeOnly:s}),mc(`${F.bold("TS Module")} [${Ec.NODE_ENV}]`);let M=Eo.default.sync(e,{cwd:A}).filter(b=>nE(b)!==".d.ts").map(b=>Ft(b));if(iE(e)){M.length||M.push(e);let b=e.replace(c,C).replace(Pt,".js").replace(At,".js");u.log("Cleaning emitted file:",{outfile:b}),await _c(b,{force:!0})}else u.log("Cleaning old output:",{outDir:C}),await _c(C,{force:!0,recursive:!0});let Q=M.filter(b=>At.test(b));u.log("Compiling TSX files:",{tsxJsxInput:Q});let v=Q.filter(b=>!b.endsWith(".d.ts"));await Me(async()=>await Promise.all(v.map(async b=>{let T=await Bc(b,"utf-8"),le=aE+T,h=yc(le,b,"tsx");await _o({...V,...h})})),{start:"Compiling TSX files.",success:"Compiled TSX files.",error:"Failed to compile TSX files."});let P=M.filter(b=>Pt.test(b)).filter(b=>!At.test(b));u.log("Compiling TS files:",{tsJsInput:P}),await Me(async()=>await _o({...V,entryPoints:P.filter(b=>!b.endsWith(".d.ts"))}),{start:"Compiling TS/JS files.",success:"Compiled TS/JS files.",error:"Failed to compile TS/JS files."});let z=M.filter(b=>!cc.test(b));if(await Me(async()=>{for(let b of z){let T=uo(b);u.log("Copying non-source file:",{file:b,emittedFile:T}),await bc(xc(T),{recursive:!0}),await tE(b,T,eE.COPYFILE_FICLONE)}},{start:"Copying non-source files to dist/.",success:"Copied non-source files to dist/.",error:"Failed to copy non-source files to dist/."}),!process.env.NO_REWRITES){let b=e.replace(c,C).replace(/^(\.\/)?src\//,"dist/").replace(Pt,".js").replace(At,".js");u.log("Normalizing import specifiers in emitted JS.",{emittedJs:b}),await Me(async()=>await vn(b.endsWith(".js")?b:`${b}.js`),{start:"Normalizing import specifiers.",success:"Normalized import specifiers.",error:"Failed to normalize import specifiers."}),await vn(b.endsWith(".js")?b:`${b}.js`)}if(await lE()&&ar('Forced "type": "module" in output.').succeed(),!s){if(!o)if(Ar(sE(t))){u.log("Building styles for production.");let{style:b="./dist/bundle.css"}=E;if(u.log("Building style bundle.",{bundleInput:t,bundleOutput:b,dev:n}),await Me(async()=>await Cc(t,b,n),{start:"Bundling styles with Tailwind.",success:"Bundled styles with Tailwind.",error:"Failed to bundle styles."}),i){u.log("Bundling all styles.");let T=Eo.default.sync("dist/**/*.css");await Me(async()=>await Promise.all(T.map(async le=>await Cc(le,le,n))),{start:"Bundling emitted styles",success:`Bundled all styles to ${F.bold(b)}.`,error:"Failed to bundle styles."})}}else Ne(F.grey(`Bundle styles not found for this project.
31
31
  \rChecked: `+F.bold(t)));mc("Running post-build setup."),await Me(async()=>await fo(),{start:"Generating type declarations.",success:`Generated declarations for ${M.length} files.`,error:"Failed to generate type declarations."}),Ne(F.green("Build complete."))}};export{hb as bannerError,mc as bannerLog,fE as build};
32
32
  /*!
@@ -1,5 +1,5 @@
1
1
 
2
- typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
2
+ if(typeof process<"u"){let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}}
3
3
 
4
4
  var H={NODE_ENV:"production"};try{let{env:r}=await import("process");r.NODE_ENV&&(H.NODE_ENV=r.NODE_ENV)}catch{}var w=typeof window>"u"&&H.NODE_ENV==="development";import{Console as Ie}from"console";var Q=(r=0)=>e=>`\x1B[${e+r}m`,z=(r=0)=>e=>`\x1B[${38+r};5;${e}m`,X=(r=0)=>(e,t,o)=>`\x1B[${38+r};2;${e};${t};${o}m`,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Z=Object.keys(s.modifier),L=Object.keys(s.color),$=Object.keys(s.bgColor),ee=[...L,...$];function Oe(){let r=new Map;for(let[e,t]of Object.entries(s)){for(let[o,n]of Object.entries(t))s[o]={open:`\x1B[${n[0]}m`,close:`\x1B[${n[1]}m`},t[o]=s[o],r.set(n[0],n[1]);Object.defineProperty(s,e,{value:t,enumerable:!1})}return Object.defineProperty(s,"codes",{value:r,enumerable:!1}),s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi=Q(),s.color.ansi256=z(),s.color.ansi16m=X(),s.bgColor.ansi=Q(10),s.bgColor.ansi256=z(10),s.bgColor.ansi16m=X(10),Object.defineProperties(s,{rgbToAnsi256:{value(e,t,o){return e===t&&t===o?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(o/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[o]=t;o.length===3&&(o=[...o].map(l=>l+l).join(""));let n=Number.parseInt(o,16);return[n>>16&255,n>>8&255,n&255]},enumerable:!1},hexToAnsi256:{value:e=>s.rgbToAnsi256(...s.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,o,n;if(e>=232)t=((e-232)*10+8)/255,o=t,n=t;else{e-=16;let u=e%36;t=Math.floor(e/36)/5,o=Math.floor(u/6)/5,n=u%6/5}let l=Math.max(t,o,n)*2;if(l===0)return 30;let i=30+(Math.round(n)<<2|Math.round(o)<<1|Math.round(t));return l===2&&(i+=60),i},enumerable:!1},rgbToAnsi:{value:(e,t,o)=>s.ansi256ToAnsi(s.rgbToAnsi256(e,t,o)),enumerable:!1},hexToAnsi:{value:e=>s.ansi256ToAnsi(s.hexToAnsi256(e)),enumerable:!1}}),s}var Te=Oe(),m=Te;import P from"node:process";import Ee from"node:os";import re from"node:tty";function f(r,e=P.argv){let t=r.startsWith("-")?"":r.length===1?"-":"--",o=e.indexOf(t+r),n=e.indexOf("--");return o!==-1&&(n===-1||o<n)}var{env:a}=P,I;f("no-color")||f("no-colors")||f("color=false")||f("color=never")?I=0:(f("color")||f("colors")||f("color=true")||f("color=always"))&&(I=1);function ve(){if("FORCE_COLOR"in a)return a.FORCE_COLOR==="true"?1:a.FORCE_COLOR==="false"?0:a.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(a.FORCE_COLOR,10),3)}function Ce(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function Re(r,{streamIsTTY:e,sniffFlags:t=!0}={}){let o=ve();o!==void 0&&(I=o);let n=t?I:o;if(n===0)return 0;if(t){if(f("color=16m")||f("color=full")||f("color=truecolor"))return 3;if(f("color=256"))return 2}if(r&&!e&&n===void 0)return 0;let l=n||0;if(a.TERM==="dumb")return l;if(P.platform==="win32"){let i=Ee.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(i=>i in a)||a.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in a&&"AGENT_NAME"in a)return 1;if(a.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in a){let i=Number.parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:l}function te(r,e={}){let t=Re(r,{streamIsTTY:r&&r.isTTY,...e});return Ce(t)}var ye={stdout:te({isTTY:re.isatty(1)}),stderr:te({isTTY:re.isatty(2)})},oe=ye;function ne(r,e,t){let o=r.indexOf(e);if(o===-1)return r;let n=e.length,l=0,i="";do i+=r.slice(l,o)+e+t,l=o+n,o=r.indexOf(e,l);while(o!==-1);return i+=r.slice(l),i}function le(r,e,t,o){let n=0,l="";do{let i=r[o-1]==="\r";l+=r.slice(n,i?o-1:o)+e+(i?`\r
5
5
  `:`