turbo-ignore 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +24 -24
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var hI=Object.create;var lf=Object.defineProperty;var dI=Object.getOwnPropertyDescriptor;var pI=Object.getOwnPropertyNames;var mI=Object.getPrototypeOf,gI=Object.prototype.hasOwnProperty;var yI=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),_I=(t,e)=>{for(var r in e)lf(t,r,{get:e[r],enumerable:!0})},vI=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of pI(e))!gI.call(t,i)&&i!==r&&lf(t,i,{get:()=>e[i],enumerable:!(n=dI(e,i))||n.enumerable});return t};var le=(t,e,r)=>(r=t!=null?hI(mI(t)):{},vI(e||!t||!t.__esModule?lf(r,"default",{value:t,enumerable:!0}):r,t));var l=yI(()=>{});var ho=y(hf=>{l();var Ma=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},ff=class extends Ma{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};hf.CommanderError=Ma;hf.InvalidArgumentError=ff});var Fa=y(pf=>{l();var{InvalidArgumentError:bI}=ho(),df=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,n)=>{if(!this.argChoices.includes(r))throw new bI(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function EI(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}pf.Argument=df;pf.humanReadableArgName=EI});var gf=y(b0=>{l();var{humanReadableArgName:wI}=Fa(),mf=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(s=>!s.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),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(n=>wI(n)).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((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+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(n=>JSON.stringify(n)).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(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,o=2;function a(
|
|
3
|
-
`).replace(/^/gm," ".repeat(s))}let u=[`Usage: ${r.commandUsage(e)}`,""],f=r.commandDescription(e);f.length>0&&(u=u.concat([r.wrap(f,i,0),""]));let h=r.visibleArguments(e).map(
|
|
2
|
+
"use strict";var hI=Object.create;var lf=Object.defineProperty;var dI=Object.getOwnPropertyDescriptor;var pI=Object.getOwnPropertyNames;var mI=Object.getPrototypeOf,gI=Object.prototype.hasOwnProperty;var yI=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),_I=(t,e)=>{for(var r in e)lf(t,r,{get:e[r],enumerable:!0})},vI=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of pI(e))!gI.call(t,i)&&i!==r&&lf(t,i,{get:()=>e[i],enumerable:!(n=dI(e,i))||n.enumerable});return t};var le=(t,e,r)=>(r=t!=null?hI(mI(t)):{},vI(e||!t||!t.__esModule?lf(r,"default",{value:t,enumerable:!0}):r,t));var l=yI(()=>{});var ho=y(hf=>{l();var Ma=class extends Error{constructor(e,r,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=r,this.exitCode=e,this.nestedError=void 0}},ff=class extends Ma{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};hf.CommanderError=Ma;hf.InvalidArgumentError=ff});var Fa=y(pf=>{l();var{InvalidArgumentError:bI}=ho(),df=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,n)=>{if(!this.argChoices.includes(r))throw new bI(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function EI(t){let e=t.name()+(t.variadic===!0?"...":"");return t.required?"<"+e+">":"["+e+"]"}pf.Argument=df;pf.humanReadableArgName=EI});var gf=y(b0=>{l();var{humanReadableArgName:wI}=Fa(),mf=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let r=e.commands.filter(n=>!n._hidden);if(e._hasImplicitHelpCommand()){let[,n,i]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(n).helpOption(!1);s.description(e._helpCommandDescription),i&&s.arguments(i),r.push(s)}return this.sortSubcommands&&r.sort((n,i)=>n.name().localeCompare(i.name())),r}compareOptions(e,r){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(e).localeCompare(n(r))}visibleOptions(e){let r=e.options.filter(s=>!s.hidden),n=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),i=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(n||i){let s;n?i?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),r.push(s)}return this.sortOptions&&r.sort(this.compareOptions),r}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let r=[];for(let n=e.parent;n;n=n.parent){let i=n.options.filter(s=>!s.hidden);r.push(...i)}return this.sortOptions&&r.sort(this.compareOptions),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(n=>wI(n)).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((n,i)=>Math.max(n,r.subcommandTerm(i).length),0)}longestOptionTermLength(e,r){return r.visibleOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestGlobalOptionTermLength(e,r){return r.visibleGlobalOptions(e).reduce((n,i)=>Math.max(n,r.optionTerm(i).length),0)}longestArgumentTermLength(e,r){return r.visibleArguments(e).reduce((n,i)=>Math.max(n,r.argumentTerm(i).length),0)}commandUsage(e){let r=e._name;e._aliases[0]&&(r=r+"|"+e._aliases[0]);let n="";for(let i=e.parent;i;i=i.parent)n=i.name()+" "+n;return n+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(n=>JSON.stringify(n)).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(n=>JSON.stringify(n)).join(", ")}`),e.defaultValue!==void 0&&r.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),r.length>0){let n=`(${r.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatHelp(e,r){let n=r.padWidth(e,r),i=r.helpWidth||80,s=2,o=2;function a(g,E){if(E){let v=`${g.padEnd(n+o)}${E}`;return r.wrap(v,i-s,n+o)}return g}function c(g){return g.join(`
|
|
3
|
+
`).replace(/^/gm," ".repeat(s))}let u=[`Usage: ${r.commandUsage(e)}`,""],f=r.commandDescription(e);f.length>0&&(u=u.concat([r.wrap(f,i,0),""]));let h=r.visibleArguments(e).map(g=>a(r.argumentTerm(g),r.argumentDescription(g)));h.length>0&&(u=u.concat(["Arguments:",c(h),""]));let d=r.visibleOptions(e).map(g=>a(r.optionTerm(g),r.optionDescription(g)));if(d.length>0&&(u=u.concat(["Options:",c(d),""])),this.showGlobalOptions){let g=r.visibleGlobalOptions(e).map(E=>a(r.optionTerm(E),r.optionDescription(E)));g.length>0&&(u=u.concat(["Global Options:",c(g),""]))}let m=r.visibleCommands(e).map(g=>a(r.subcommandTerm(g),r.subcommandDescription(g)));return m.length>0&&(u=u.concat(["Commands:",c(m),""])),u.join(`
|
|
4
4
|
`)}padWidth(e,r){return Math.max(r.longestOptionTermLength(e,r),r.longestGlobalOptionTermLength(e,r),r.longestSubcommandTermLength(e,r),r.longestArgumentTermLength(e,r))}wrap(e,r,n,i=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",o=new RegExp(`[\\n][${s}]+`);if(e.match(o))return e;let a=r-n;if(a<i)return e;let c=e.slice(0,n),u=e.slice(n).replace(`\r
|
|
5
5
|
`,`
|
|
6
|
-
`),f=" ".repeat(n),d="\\s\u200B",
|
|
7
|
-
|.{1,${a-1}}([${d}]|$)|[^${d}]+?([${d}]|$)`,"g"),
|
|
6
|
+
`),f=" ".repeat(n),d="\\s\u200B",m=new RegExp(`
|
|
7
|
+
|.{1,${a-1}}([${d}]|$)|[^${d}]+?([${d}]|$)`,"g"),g=u.match(m)||[];return c+g.map((E,v)=>E===`
|
|
8
8
|
`?"":(v>0?f:"")+E.trimEnd()).join(`
|
|
9
9
|
`)}};b0.Help=mf});var vf=y(qa=>{l();var{InvalidArgumentError:xI}=ho(),yf=class{constructor(e,r){this.flags=e,this.description=r||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;let n=E0(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(e,r){return this.defaultValue=e,this.defaultValueDescription=r,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let r=e;return typeof e=="string"&&(r={[e]:!0}),this.implied=Object.assign(this.implied||{},r),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_concatValue(e,r){return r===this.defaultValue||!Array.isArray(r)?[e]:r.concat(e)}choices(e){return this.argChoices=e.slice(),this.parseArg=(r,n)=>{if(!this.argChoices.includes(r))throw new xI(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(r,n):r},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return SI(this.name().replace(/^no-/,""))}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},_f=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(r=>{r.negate?this.negativeOptions.set(r.attributeName(),r):this.positiveOptions.set(r.attributeName(),r)}),this.negativeOptions.forEach((r,n)=>{this.positiveOptions.has(n)&&this.dualOptions.add(n)})}valueFromOption(e,r){let n=r.attributeName();if(!this.dualOptions.has(n))return!0;let i=this.negativeOptions.get(n).presetArg,s=i!==void 0?i:!1;return r.negate===(s===e)}};function SI(t){return t.split("-").reduce((e,r)=>e+r[0].toUpperCase()+r.slice(1))}function E0(t){let e,r,n=t.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),r=n.shift(),!e&&/^-[^-]$/.test(r)&&(e=r,r=void 0),{shortFlag:e,longFlag:r}}qa.Option=yf;qa.splitOptionFlags=E0;qa.DualOptions=_f});var x0=y(w0=>{l();function AI(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let r=[];for(let n=0;n<=t.length;n++)r[n]=[n];for(let n=0;n<=e.length;n++)r[0][n]=n;for(let n=1;n<=e.length;n++)for(let i=1;i<=t.length;i++){let s=1;t[i-1]===e[n-1]?s=0:s=1,r[i][n]=Math.min(r[i-1][n]+1,r[i][n-1]+1,r[i-1][n-1]+s),i>1&&n>1&&t[i-1]===e[n-2]&&t[i-2]===e[n-1]&&(r[i][n]=Math.min(r[i][n],r[i-2][n-2]+1))}return r[t.length][e.length]}function CI(t,e){if(!e||e.length===0)return"";e=Array.from(new Set(e));let r=t.startsWith("--");r&&(t=t.slice(2),e=e.map(o=>o.slice(2)));let n=[],i=3,s=.4;return e.forEach(o=>{if(o.length<=1)return;let a=AI(t,o),c=Math.max(t.length,o.length);(c-a)/c>s&&(a<i?(i=a,n=[o]):a===i&&n.push(o))}),n.sort((o,a)=>o.localeCompare(a)),r&&(n=n.map(o=>`--${o}`)),n.length>1?`
|
|
10
10
|
(Did you mean one of ${n.join(", ")}?)`:n.length===1?`
|
|
11
11
|
(Did you mean ${n[0]}?)`:""}w0.suggestSimilar=CI});var T0=y(O0=>{l();var RI=require("events").EventEmitter,bf=require("child_process"),Fr=require("path"),Ef=require("fs"),Te=require("process"),{Argument:OI,humanReadableArgName:TI}=Fa(),{CommanderError:wf}=ho(),{Help:kI}=gf(),{Option:S0,splitOptionFlags:PI,DualOptions:II}=vf(),{suggestSimilar:A0}=x0(),mo=class extends RI{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this._args=[],this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:r=>Te.stdout.write(r),writeErr:r=>Te.stderr.write(r),getOutHelpWidth:()=>Te.stdout.isTTY?Te.stdout.columns:void 0,getErrHelpWidth:()=>Te.stderr.isTTY?Te.stderr.columns:void 0,outputError:(r,n)=>n(r)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._hasHelpOption=e._hasHelpOption,this._helpFlags=e._helpFlags,this._helpDescription=e._helpDescription,this._helpShortFlag=e._helpShortFlag,this._helpLongFlag=e._helpLongFlag,this._helpCommandName=e._helpCommandName,this._helpCommandnameAndArgs=e._helpCommandnameAndArgs,this._helpCommandDescription=e._helpCommandDescription,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}command(e,r,n){let i=r,s=n;typeof i=="object"&&i!==null&&(s=i,i=null),s=s||{};let[,o,a]=e.match(/([^ ]+) *(.*)/),c=this.createCommand(o);return i&&(c.description(i),c._executableHandler=!0),s.isDefault&&(this._defaultCommandName=c._name),c._hidden=!!(s.noHelp||s.hidden),c._executableFile=s.executableFile||null,a&&c.arguments(a),this.commands.push(c),c.parent=this,c.copyInheritedSettings(this),i?this:c}createCommand(e){return new mo(e)}createHelp(){return Object.assign(new kI,this.configureHelp())}configureHelp(e){return e===void 0?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return e===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,e),this)}showHelpAfterError(e=!0){return typeof e!="string"&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,r){if(!e._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
12
12
|
- specify the name in Command constructor or using .name()`);return r=r||{},r.isDefault&&(this._defaultCommandName=e._name),(r.noHelp||r.hidden)&&(e._hidden=!0),this.commands.push(e),e.parent=this,this}createArgument(e,r){return new OI(e,r)}argument(e,r,n,i){let s=this.createArgument(e,r);return typeof n=="function"?s.default(i).argParser(n):s.default(n),this.addArgument(s),this}arguments(e){return e.trim().split(/ +/).forEach(r=>{this.argument(r)}),this}addArgument(e){let r=this._args.slice(-1)[0];if(r&&r.variadic)throw new Error(`only the last argument can be variadic '${r.name()}'`);if(e.required&&e.defaultValue!==void 0&&e.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this._args.push(e),this}addHelpCommand(e,r){return e===!1?this._addImplicitHelpCommand=!1:(this._addImplicitHelpCommand=!0,typeof e=="string"&&(this._helpCommandName=e.split(" ")[0],this._helpCommandnameAndArgs=e),this._helpCommandDescription=r||this._helpCommandDescription),this}_hasImplicitHelpCommand(){return this._addImplicitHelpCommand===void 0?this.commands.length&&!this._actionHandler&&!this._findCommand("help"):this._addImplicitHelpCommand}hook(e,r){let n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.
|
|
13
|
-
Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new wf(e,r,n)),Te.exit(e)}action(e){let r=n=>{let i=this._args.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new S0(e,r)}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let c=this.getOptionValue(n);if(s!==null&&e.parseArg)try{s=e.parseArg(s,c)}catch(u){if(u.code==="commander.invalidArgument"){let f=`${o} ${u.message}`;this.error(f,{exitCode:u.exitCode,code:u.code})}throw u}else s!==null&&e.variadic&&(s=e._concatValue(s,c));s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,a)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof S0)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let a=i;i=(c,u)=>{let f=a.exec(c);return f?f[0]:u},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,!!this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this._storeOptionsAsProperties=!!e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return po(this).forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=Te.argv,Te.versions&&Te.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":Te.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(f,h){let d=Fr.resolve(f,h);if(Ef.existsSync(d))return d;if(i.includes(Fr.extname(h)))return;let
|
|
13
|
+
Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(r):this._lifeCycleHooks[e]=[r],this}exitOverride(e){return e?this._exitCallback=e:this._exitCallback=r=>{if(r.code!=="commander.executeSubCommandAsync")throw r},this}_exit(e,r,n){this._exitCallback&&this._exitCallback(new wf(e,r,n)),Te.exit(e)}action(e){let r=n=>{let i=this._args.length,s=n.slice(0,i);return this._storeOptionsAsProperties?s[i]=this:s[i]=this.opts(),s.push(this),e.apply(this,s)};return this._actionHandler=r,this}createOption(e,r){return new S0(e,r)}addOption(e){let r=e.name(),n=e.attributeName();if(e.negate){let s=e.long.replace(/^--no-/,"--");this._findOption(s)||this.setOptionValueWithSource(n,e.defaultValue===void 0?!0:e.defaultValue,"default")}else e.defaultValue!==void 0&&this.setOptionValueWithSource(n,e.defaultValue,"default");this.options.push(e);let i=(s,o,a)=>{s==null&&e.presetArg!==void 0&&(s=e.presetArg);let c=this.getOptionValue(n);if(s!==null&&e.parseArg)try{s=e.parseArg(s,c)}catch(u){if(u.code==="commander.invalidArgument"){let f=`${o} ${u.message}`;this.error(f,{exitCode:u.exitCode,code:u.code})}throw u}else s!==null&&e.variadic&&(s=e._concatValue(s,c));s==null&&(e.negate?s=!1:e.isBoolean()||e.optional?s=!0:s=""),this.setOptionValueWithSource(n,s,a)};return this.on("option:"+r,s=>{let o=`error: option '${e.flags}' argument '${s}' is invalid.`;i(s,o,"cli")}),e.envVar&&this.on("optionEnv:"+r,s=>{let o=`error: option '${e.flags}' value '${s}' from env '${e.envVar}' is invalid.`;i(s,o,"env")}),this}_optionEx(e,r,n,i,s){if(typeof r=="object"&&r instanceof S0)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let o=this.createOption(r,n);if(o.makeOptionMandatory(!!e.mandatory),typeof i=="function")o.default(s).argParser(i);else if(i instanceof RegExp){let a=i;i=(c,u)=>{let f=a.exec(c);return f?f[0]:u},o.default(s).argParser(i)}else o.default(i);return this.addOption(o)}option(e,r,n,i){return this._optionEx({},e,r,n,i)}requiredOption(e,r,n,i){return this._optionEx({mandatory:!0},e,r,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){if(this._passThroughOptions=!!e,!!this.parent&&e&&!this.parent._enablePositionalOptions)throw new Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(e=!0){if(this._storeOptionsAsProperties=!!e,this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");return this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,r){return this.setOptionValueWithSource(e,r,void 0)}setOptionValueWithSource(e,r,n){return this._storeOptionsAsProperties?this[e]=r:this._optionValues[e]=r,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let r;return po(this).forEach(n=>{n.getOptionValueSource(e)!==void 0&&(r=n.getOptionValueSource(e))}),r}_prepareUserArgs(e,r){if(e!==void 0&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");r=r||{},e===void 0&&(e=Te.argv,Te.versions&&Te.versions.electron&&(r.from="electron")),this.rawArgs=e.slice();let n;switch(r.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":Te.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;default:throw new Error(`unexpected parse option { from: '${r.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,r){let n=this._prepareUserArgs(e,r);return this._parseCommand([],n),this}async parseAsync(e,r){let n=this._prepareUserArgs(e,r);return await this._parseCommand([],n),this}_executeSubCommand(e,r){r=r.slice();let n=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(f,h){let d=Fr.resolve(f,h);if(Ef.existsSync(d))return d;if(i.includes(Fr.extname(h)))return;let m=i.find(g=>Ef.existsSync(`${d}${g}`));if(m)return`${d}${m}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let o=e._executableFile||`${this._name}-${e._name}`,a=this._executableDir||"";if(this._scriptPath){let f;try{f=Ef.realpathSync(this._scriptPath)}catch{f=this._scriptPath}a=Fr.resolve(Fr.dirname(f),a)}if(a){let f=s(a,o);if(!f&&!e._executableFile&&this._scriptPath){let h=Fr.basename(this._scriptPath,Fr.extname(this._scriptPath));h!==this._name&&(f=s(a,`${h}-${e._name}`))}o=f||o}n=i.includes(Fr.extname(o));let c;Te.platform!=="win32"?n?(r.unshift(o),r=R0(Te.execArgv).concat(r),c=bf.spawn(Te.argv[0],r,{stdio:"inherit"})):c=bf.spawn(o,r,{stdio:"inherit"}):(r.unshift(o),r=R0(Te.execArgv).concat(r),c=bf.spawn(Te.execPath,r,{stdio:"inherit"})),c.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(h=>{Te.on(h,()=>{c.killed===!1&&c.exitCode===null&&c.kill(h)})});let u=this._exitCallback;u?c.on("close",()=>{u(new wf(Te.exitCode||0,"commander.executeSubCommandAsync","(close)"))}):c.on("close",Te.exit.bind(Te)),c.on("error",f=>{if(f.code==="ENOENT"){let h=a?`searched for local subcommand relative to directory '${a}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",d=`'${o}' does not exist
|
|
14
14
|
- if '${e._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
15
15
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
16
16
|
- ${h}`;throw new Error(d)}else if(f.code==="EACCES")throw new Error(`'${o}' not executable`);if(!u)Te.exit(1);else{let h=new wf(1,"commander.executeSubCommandAsync","(error)");h.nestedError=f,u(h)}}),this.runningCommand=c}_dispatchSubcommand(e,r,n){let i=this._findCommand(e);i||this.help({error:!0});let s;return s=this._chainOrCallSubCommandHook(s,i,"preSubcommand"),s=this._chainOrCall(s,()=>{if(i._executableHandler)this._executeSubCommand(i,r.concat(n));else return i._parseCommand(r,n)}),s}_dispatchHelpCommand(e){e||this.help();let r=this._findCommand(e);return r&&!r._executableHandler&&r.help(),this._dispatchSubcommand(e,[],[this._helpLongFlag])}_checkNumberOfArguments(){this._args.forEach((e,r)=>{e.required&&this.args[r]==null&&this.missingArgument(e.name())}),!(this._args.length>0&&this._args[this._args.length-1].variadic)&&this.args.length>this._args.length&&this._excessArguments(this.args)}_processArguments(){let e=(n,i,s)=>{let o=i;if(i!==null&&n.parseArg)try{o=n.parseArg(i,s)}catch(a){if(a.code==="commander.invalidArgument"){let c=`error: command-argument value '${i}' is invalid for argument '${n.name()}'. ${a.message}`;this.error(c,{exitCode:a.exitCode,code:a.code})}throw a}return o};this._checkNumberOfArguments();let r=[];this._args.forEach((n,i)=>{let s=n.defaultValue;n.variadic?i<this.args.length?(s=this.args.slice(i),n.parseArg&&(s=s.reduce((o,a)=>e(n,a,o),n.defaultValue))):s===void 0&&(s=[]):i<this.args.length&&(s=this.args[i],n.parseArg&&(s=e(n,s,n.defaultValue))),r[i]=s}),this.processedArgs=r}_chainOrCall(e,r){return e&&e.then&&typeof e.then=="function"?e.then(()=>r()):r()}_chainOrCallHooks(e,r){let n=e,i=[];return po(this).reverse().filter(s=>s._lifeCycleHooks[r]!==void 0).forEach(s=>{s._lifeCycleHooks[r].forEach(o=>{i.push({hookedCommand:s,callback:o})})}),r==="postAction"&&i.reverse(),i.forEach(s=>{n=this._chainOrCall(n,()=>s.callback(s.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,r,n){let i=e;return this._lifeCycleHooks[n]!==void 0&&this._lifeCycleHooks[n].forEach(s=>{i=this._chainOrCall(i,()=>s(this,r))}),i}_parseCommand(e,r){let n=this.parseOptions(r);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),r=n.unknown,this.args=e.concat(r),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),r);if(this._hasImplicitHelpCommand()&&e[0]===this._helpCommandName)return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return C0(this,r),this._dispatchSubcommand(this._defaultCommandName,e,r);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),C0(this,n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},s=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let o;return o=this._chainOrCallHooks(o,"preAction"),o=this._chainOrCall(o,()=>this._actionHandler(this.processedArgs)),this.parent&&(o=this._chainOrCall(o,()=>{this.parent.emit(s,e,r)})),o=this._chainOrCallHooks(o,"postAction"),o}if(this.parent&&this.parent.listenerCount(s))i(),this._processArguments(),this.parent.emit(s,e,r);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,r);this.listenerCount("command:*")?this.emit("command:*",e,r):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(!!e)return this.commands.find(r=>r._name===e||r._aliases.includes(e))}_findOption(e){return this.options.find(r=>r.is(e))}_checkForMissingMandatoryOptions(){for(let e=this;e;e=e.parent)e.options.forEach(r=>{r.mandatory&&e.getOptionValue(r.attributeName())===void 0&&e.missingMandatoryOptionValue(r)})}_checkForConflictingLocalOptions(){let e=this.options.filter(n=>{let i=n.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});e.filter(n=>n.conflictsWith.length>0).forEach(n=>{let i=e.find(s=>n.conflictsWith.includes(s.attributeName()));i&&this._conflictingOption(n,i)})}_checkForConflictingOptions(){for(let e=this;e;e=e.parent)e._checkForConflictingLocalOptions()}parseOptions(e){let r=[],n=[],i=r,s=e.slice();function o(c){return c.length>1&&c[0]==="-"}let a=null;for(;s.length;){let c=s.shift();if(c==="--"){i===n&&i.push(c),i.push(...s);break}if(a&&!o(c)){this.emit(`option:${a.name()}`,c);continue}if(a=null,o(c)){let u=this._findOption(c);if(u){if(u.required){let f=s.shift();f===void 0&&this.optionMissingArgument(u),this.emit(`option:${u.name()}`,f)}else if(u.optional){let f=null;s.length>0&&!o(s[0])&&(f=s.shift()),this.emit(`option:${u.name()}`,f)}else this.emit(`option:${u.name()}`);a=u.variadic?u:null;continue}}if(c.length>2&&c[0]==="-"&&c[1]!=="-"){let u=this._findOption(`-${c[1]}`);if(u){u.required||u.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${u.name()}`,c.slice(2)):(this.emit(`option:${u.name()}`),s.unshift(`-${c.slice(2)}`));continue}}if(/^--[^=]+=/.test(c)){let u=c.indexOf("="),f=this._findOption(c.slice(0,u));if(f&&(f.required||f.optional)){this.emit(`option:${f.name()}`,c.slice(u+1));continue}}if(o(c)&&(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&r.length===0&&n.length===0){if(this._findCommand(c)){r.push(c),s.length>0&&n.push(...s);break}else if(c===this._helpCommandName&&this._hasImplicitHelpCommand()){r.push(c),s.length>0&&r.push(...s);break}else if(this._defaultCommandName){n.push(c),s.length>0&&n.push(...s);break}}if(this._passThroughOptions){i.push(c),s.length>0&&i.push(...s);break}i.push(c)}return{operands:r,unknown:n}}opts(){if(this._storeOptionsAsProperties){let e={},r=this.options.length;for(let n=0;n<r;n++){let i=this.options[n].attributeName();e[i]=i===this._versionOptionName?this._version:this[i]}return e}return this._optionValues}optsWithGlobals(){return po(this).reduce((e,r)=>Object.assign(e,r.opts()),{})}error(e,r){this._outputConfiguration.outputError(`${e}
|
|
@@ -19,20 +19,20 @@ Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._life
|
|
|
19
19
|
`),this.outputHelp({error:!0}));let n=r||{},i=n.exitCode||1,s=n.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in Te.env){let r=e.attributeName();(this.getOptionValue(r)===void 0||["default","config","env"].includes(this.getOptionValueSource(r)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,Te.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new II(this.options),r=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&r(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!r(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let r=`error: missing required argument '${e}'`;this.error(r,{code:"commander.missingArgument"})}optionMissingArgument(e){let r=`error: option '${e.flags}' argument missing`;this.error(r,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let r=`error: required option '${e.flags}' not specified`;this.error(r,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,r){let n=o=>{let a=o.attributeName(),c=this.getOptionValue(a),u=this.options.find(h=>h.negate&&a===h.attributeName()),f=this.options.find(h=>!h.negate&&a===h.attributeName());return u&&(u.presetArg===void 0&&c===!1||u.presetArg!==void 0&&c===u.presetArg)?u:f||o},i=o=>{let a=n(o),c=a.attributeName();return this.getOptionValueSource(c)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},s=`error: ${i(e)} cannot be used with ${i(r)}`;this.error(s,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let r="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],s=this;do{let o=s.createHelp().visibleOptions(s).filter(a=>a.long).map(a=>a.long);i=i.concat(o),s=s.parent}while(s&&!s._enablePositionalOptions);r=A0(e,i)}let n=`error: unknown option '${e}'${r}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let r=this._args.length,n=r===1?"":"s",s=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${r} argument${n} but got ${e.length}.`;this.error(s,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],r="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(s=>{i.push(s.name()),s.alias()&&i.push(s.alias())}),r=A0(e,i)}let n=`error: unknown command '${e}'${r}`;this.error(n,{code:"commander.unknownCommand"})}version(e,r,n){if(e===void 0)return this._version;this._version=e,r=r||"-V, --version",n=n||"output the version number";let i=this.createOption(r,n);return this._versionOptionName=i.attributeName(),this.options.push(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
|
|
20
20
|
`),this._exit(0,"commander.version",e)}),this}description(e,r){return e===void 0&&r===void 0?this._description:(this._description=e,r&&(this._argsDescription=r),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let r=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(r=this.commands[this.commands.length-1]),e===r._name)throw new Error("Command alias can't be the same as its name");return r._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(r=>this.alias(r)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let r=this._args.map(n=>TI(n));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this._args.length?r:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=Fr.basename(e,Fr.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let r=this.createHelp();return r.helpWidth===void 0&&(r.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),r.formatHelp(this,r)}_getHelpContext(e){e=e||{};let r={error:!!e.error},n;return r.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),r.write=e.write||n,r.command=this,r}outputHelp(e){let r;typeof e=="function"&&(r=e,e=void 0);let n=this._getHelpContext(e);po(this).reverse().forEach(s=>s.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(r&&(i=r(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this.emit(this._helpLongFlag),this.emit("afterHelp",n),po(this).forEach(s=>s.emit("afterAllHelp",n))}helpOption(e,r){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=r||this._helpDescription;let n=PI(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e);let r=Te.exitCode||0;r===0&&e&&typeof e!="function"&&e.error&&(r=1),this._exit(r,"commander.help","(outputHelp)")}addHelpText(e,r){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
21
21
|
Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,s=>{let o;typeof r=="function"?o=r({error:s.error,command:s.command}):o=r,o&&s.write(`${o}
|
|
22
|
-
`)}),this}};function C0(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function R0(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}function po(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}O0.Command=mo});var L0=y((cr,I0)=>{l();var{Argument:LI}=Fa(),{Command:k0}=T0(),{CommanderError:NI,InvalidArgumentError:P0}=ho(),{Help:DI}=gf(),{Option:MI}=vf();cr=I0.exports=new k0;cr.program=cr;cr.Argument=LI;cr.Command=k0;cr.CommanderError=NI;cr.Help=DI;cr.InvalidArgumentError=P0;cr.InvalidOptionArgumentError=P0;cr.Option=MI});var F0=y((yW,qr)=>{l();function xf(t){return qr.exports=xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qr.exports.__esModule=!0,qr.exports.default=qr.exports,xf(t)}qr.exports=xf,qr.exports.__esModule=!0,qr.exports.default=qr.exports});var j0=y((_W,Br)=>{l();var q0=F0().default;function B0(){"use strict";Br.exports=B0=function(){return e},Br.exports.__esModule=!0,Br.exports.default=Br.exports;var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(x,T,k){x[T]=k.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function u(x,T,k){return Object.defineProperty(x,T,{value:k,enumerable:!0,configurable:!0,writable:!0}),x[T]}try{u({},"")}catch{u=function(k,I,Y){return k[I]=Y}}function f(x,T,k,I){var Y=T&&T.prototype instanceof A?T:A,j=Object.create(Y.prototype),ve=new fe(I||[]);return i(j,"_invoke",{value:Q(x,k,ve)}),j}function h(x,T,k){try{return{type:"normal",arg:x.call(T,k)}}catch(I){return{type:"throw",arg:I}}}e.wrap=f;var d="suspendedStart",g="suspendedYield",m="executing",E="completed",v={};function A(){}function P(){}function D(){}var ie={};u(ie,o,function(){return this});var z=Object.getPrototypeOf,ue=z&&z(z(C([])));ue&&ue!==r&&n.call(ue,o)&&(ie=ue);var K=D.prototype=A.prototype=Object.create(ie);function Z(x){["next","throw","return"].forEach(function(T){u(x,T,function(k){return this._invoke(T,k)})})}function F(x,T){function k(Y,j,ve,Ue){var ge=h(x[Y],x,j);if(ge.type!=="throw"){var De=ge.arg,re=De.value;return re&&q0(re)=="object"&&n.call(re,"__await")?T.resolve(re.__await).then(function(pt){k("next",pt,ve,Ue)},function(pt){k("throw",pt,ve,Ue)}):T.resolve(re).then(function(pt){De.value=pt,ve(De)},function(pt){return k("throw",pt,ve,Ue)})}Ue(ge.arg)}var I;i(this,"_invoke",{value:function(j,ve){function Ue(){return new T(function(ge,De){k(j,ve,ge,De)})}return I=I?I.then(Ue,Ue):Ue()}})}function Q(x,T,k){var I=d;return function(Y,j){if(I===m)throw new Error("Generator is already running");if(I===E){if(Y==="throw")throw j;return{value:t,done:!0}}for(k.method=Y,k.arg=j;;){var ve=k.delegate;if(ve){var Ue=R(ve,k);if(Ue){if(Ue===v)continue;return Ue}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(I===d)throw I=E,k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);I=m;var ge=h(x,T,k);if(ge.type==="normal"){if(I=k.done?E:g,ge.arg===v)continue;return{value:ge.arg,done:k.done}}ge.type==="throw"&&(I=E,k.method="throw",k.arg=ge.arg)}}}function R(x,T){var k=T.method,I=x.iterator[k];if(I===t)return T.delegate=null,k==="throw"&&x.iterator.return&&(T.method="return",T.arg=t,R(x,T),T.method==="throw")||k!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+k+"' method")),v;var Y=h(I,x.iterator,T.arg);if(Y.type==="throw")return T.method="throw",T.arg=Y.arg,T.delegate=null,v;var j=Y.arg;return j?j.done?(T[x.resultName]=j.value,T.next=x.nextLoc,T.method!=="return"&&(T.method="next",T.arg=t),T.delegate=null,v):j:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,v)}function ne(x){var T={tryLoc:x[0]};1 in x&&(T.catchLoc=x[1]),2 in x&&(T.finallyLoc=x[2],T.afterLoc=x[3]),this.tryEntries.push(T)}function ee(x){var T=x.completion||{};T.type="normal",delete T.arg,x.completion=T}function fe(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ne,this),this.reset(!0)}function C(x){if(x||x===""){var T=x[o];if(T)return T.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var k=-1,I=function Y(){for(;++k<x.length;)if(n.call(x,k))return Y.value=x[k],Y.done=!1,Y;return Y.value=t,Y.done=!0,Y};return I.next=I}}throw new TypeError(q0(x)+" is not iterable")}return P.prototype=D,i(K,"constructor",{value:D,configurable:!0}),i(D,"constructor",{value:P,configurable:!0}),P.displayName=u(D,c,"GeneratorFunction"),e.isGeneratorFunction=function(x){var T=typeof x=="function"&&x.constructor;return!!T&&(T===P||(T.displayName||T.name)==="GeneratorFunction")},e.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,D):(x.__proto__=D,u(x,c,"GeneratorFunction")),x.prototype=Object.create(K),x},e.awrap=function(x){return{__await:x}},Z(F.prototype),u(F.prototype,a,function(){return this}),e.AsyncIterator=F,e.async=function(x,T,k,I,Y){Y===void 0&&(Y=Promise);var j=new F(f(x,T,k,I),Y);return e.isGeneratorFunction(T)?j:j.next().then(function(ve){return ve.done?ve.value:j.next()})},Z(K),u(K,c,"Generator"),u(K,o,function(){return this}),u(K,"toString",function(){return"[object Generator]"}),e.keys=function(x){var T=Object(x),k=[];for(var I in T)k.push(I);return k.reverse(),function Y(){for(;k.length;){var j=k.pop();if(j in T)return Y.value=j,Y.done=!1,Y}return Y.done=!0,Y}},e.values=C,fe.prototype={constructor:fe,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(ee),!T)for(var k in this)k.charAt(0)==="t"&&n.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=t)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var k=this;function I(De,re){return ve.type="throw",ve.arg=T,k.next=De,re&&(k.method="next",k.arg=t),!!re}for(var Y=this.tryEntries.length-1;Y>=0;--Y){var j=this.tryEntries[Y],ve=j.completion;if(j.tryLoc==="root")return I("end");if(j.tryLoc<=this.prev){var Ue=n.call(j,"catchLoc"),ge=n.call(j,"finallyLoc");if(Ue&&ge){if(this.prev<j.catchLoc)return I(j.catchLoc,!0);if(this.prev<j.finallyLoc)return I(j.finallyLoc)}else if(Ue){if(this.prev<j.catchLoc)return I(j.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<j.finallyLoc)return I(j.finallyLoc)}}}},abrupt:function(T,k){for(var I=this.tryEntries.length-1;I>=0;--I){var Y=this.tryEntries[I];if(Y.tryLoc<=this.prev&&n.call(Y,"finallyLoc")&&this.prev<Y.finallyLoc){var j=Y;break}}j&&(T==="break"||T==="continue")&&j.tryLoc<=k&&k<=j.finallyLoc&&(j=null);var ve=j?j.completion:{};return ve.type=T,ve.arg=k,j?(this.method="next",this.next=j.finallyLoc,v):this.complete(ve)},complete:function(T,k){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&k&&(this.next=k),v},finish:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var I=this.tryEntries[k];if(I.finallyLoc===T)return this.complete(I.completion,I.afterLoc),ee(I),v}},catch:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var I=this.tryEntries[k];if(I.tryLoc===T){var Y=I.completion;if(Y.type==="throw"){var j=Y.arg;ee(I)}return j}}throw new Error("illegal catch attempt")},delegateYield:function(T,k,I){return this.delegate={iterator:C(T),resultName:k,nextLoc:I},this.method==="next"&&(this.arg=t),v}},e}Br.exports=B0,Br.exports.__esModule=!0,Br.exports.default=Br.exports});var $0=y((vW,H0)=>{l();var Ba=j0()();H0.exports=Ba;try{regeneratorRuntime=Ba}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Ba:Function("r","regeneratorRuntime = r")(Ba)}});var G0=y((HW,kf)=>{"use strict";l();var U0=(t,...e)=>new Promise(r=>{r(t(...e))});kf.exports=U0;kf.exports.default=U0});var W0=y(($W,Pf)=>{"use strict";l();var FI=G0(),V0=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,n=()=>{r--,e.length>0&&e.shift()()},i=(a,c,...u)=>{r++;let f=FI(a,...u);c(f),f.then(n,n)},s=(a,c,...u)=>{r<t?i(a,c,...u):e.push(i.bind(null,a,c,...u))},o=(a,...c)=>new Promise(u=>s(a,u,...c));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};Pf.exports=V0;Pf.exports.default=V0});var K0=y((UW,If)=>{"use strict";l();var z0=W0(),ja=class extends Error{constructor(e){super(),this.value=e}},qI=async(t,e)=>e(await t),BI=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new ja(e[0]);return!1},Y0=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=z0(r.concurrency),i=[...t].map(o=>[o,n(qI,o,e)]),s=z0(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(BI,o)))}catch(o){if(o instanceof ja)return o.value;throw o}};If.exports=Y0;If.exports.default=Y0});var t_=y((GW,Lf)=>{"use strict";l();var Z0=require("path"),Ha=require("fs"),{promisify:J0}=require("util"),jI=K0(),HI=J0(Ha.stat),$I=J0(Ha.lstat),X0={directory:"isDirectory",file:"isFile"};function Q0({type:t}){if(!(t in X0))throw new Error(`Invalid type specified: ${t}`)}var e_=(t,e)=>t===void 0||e[X0[t]]();Lf.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Q0(e);let r=e.allowSymlinks?HI:$I;return jI(t,async n=>{try{let i=await r(Z0.resolve(e.cwd,n));return e_(e.type,i)}catch{return!1}},e)};Lf.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Q0(e);let r=e.allowSymlinks?Ha.statSync:Ha.lstatSync;for(let n of t)try{let i=r(Z0.resolve(e.cwd,n));if(e_(e.type,i))return n}catch{}}});var n_=y((VW,Nf)=>{"use strict";l();var r_=require("fs"),{promisify:UI}=require("util"),GI=UI(r_.access);Nf.exports=async t=>{try{return await GI(t),!0}catch{return!1}};Nf.exports.sync=t=>{try{return r_.accessSync(t),!0}catch{return!1}}});var s_=y((WW,Mi)=>{"use strict";l();var hn=require("path"),$a=t_(),i_=n_(),Df=Symbol("findUp.stop");Mi.exports=async(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return $a(i,o);let a=await t(o.cwd);return typeof a=="string"?$a([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Df)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};Mi.exports.sync=(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return $a.sync(i,o);let a=t(o.cwd);return typeof a=="string"?$a.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Df)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};Mi.exports.exists=i_;Mi.exports.sync.exists=i_.sync;Mi.exports.stop=Df});var vt=y(Mf=>{"use strict";l();Mf.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((e,r)=>{arguments[arguments.length]=(n,i)=>{if(n)return r(n);e(i)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})};Mf.fromPromise=function(t){return Object.defineProperty(function(){let e=arguments[arguments.length-1];if(typeof e!="function")return t.apply(this,arguments);t.apply(this,arguments).then(r=>e(null,r),e)},"name",{value:t.name})}});var a_=y((YW,o_)=>{l();var dn=require("constants"),VI=process.cwd,Ua=null,WI=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Ua||(Ua=VI.call(process)),Ua};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ff=process.chdir,process.chdir=function(t){Ua=null,Ff.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ff));var Ff;o_.exports=zI;function zI(t){dn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,h,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,d,g){g&&process.nextTick(g)},t.lchownSync=function(){}),WI==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(f){function h(d,g,m){var E=Date.now(),v=0;f(d,g,function A(P){if(P&&(P.code==="EACCES"||P.code==="EPERM"||P.code==="EBUSY")&&Date.now()-E<6e4){setTimeout(function(){t.stat(g,function(D,ie){D&&D.code==="ENOENT"?f(d,g,A):m(P)})},v),v<100&&(v+=10);return}m&&m(P)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.rename)),t.read=typeof t.read!="function"?t.read:function(f){function h(d,g,m,E,v,A){var P;if(A&&typeof A=="function"){var D=0;P=function(ie,z,ue){if(ie&&ie.code==="EAGAIN"&&D<10)return D++,f.call(t,d,g,m,E,v,P);A.apply(this,arguments)}}return f.call(t,d,g,m,E,v,P)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(f){return function(h,d,g,m,E){for(var v=0;;)try{return f.call(t,h,d,g,m,E)}catch(A){if(A.code==="EAGAIN"&&v<10){v++;continue}throw A}}}(t.readSync);function e(f){f.lchmod=function(h,d,g){f.open(h,dn.O_WRONLY|dn.O_SYMLINK,d,function(m,E){if(m){g&&g(m);return}f.fchmod(E,d,function(v){f.close(E,function(A){g&&g(v||A)})})})},f.lchmodSync=function(h,d){var g=f.openSync(h,dn.O_WRONLY|dn.O_SYMLINK,d),m=!0,E;try{E=f.fchmodSync(g,d),m=!1}finally{if(m)try{f.closeSync(g)}catch{}else f.closeSync(g)}return E}}function r(f){dn.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,d,g,m){f.open(h,dn.O_SYMLINK,function(E,v){if(E){m&&m(E);return}f.futimes(v,d,g,function(A){f.close(v,function(P){m&&m(A||P)})})})},f.lutimesSync=function(h,d,g){var m=f.openSync(h,dn.O_SYMLINK),E,v=!0;try{E=f.futimesSync(m,d,g),v=!1}finally{if(v)try{f.closeSync(m)}catch{}else f.closeSync(m)}return E}):f.futimes&&(f.lutimes=function(h,d,g,m){m&&process.nextTick(m)},f.lutimesSync=function(){})}function n(f){return f&&function(h,d,g){return f.call(t,h,d,function(m){u(m)&&(m=null),g&&g.apply(this,arguments)})}}function i(f){return f&&function(h,d){try{return f.call(t,h,d)}catch(g){if(!u(g))throw g}}}function s(f){return f&&function(h,d,g,m){return f.call(t,h,d,g,function(E){u(E)&&(E=null),m&&m.apply(this,arguments)})}}function o(f){return f&&function(h,d,g){try{return f.call(t,h,d,g)}catch(m){if(!u(m))throw m}}}function a(f){return f&&function(h,d,g){typeof d=="function"&&(g=d,d=null);function m(E,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),g&&g.apply(this,arguments)}return d?f.call(t,h,d,m):f.call(t,h,m)}}function c(f){return f&&function(h,d){var g=d?f.call(t,h,d):f.call(t,h);return g&&(g.uid<0&&(g.uid+=4294967296),g.gid<0&&(g.gid+=4294967296)),g}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var l_=y((KW,u_)=>{l();var c_=require("stream").Stream;u_.exports=YI;function YI(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);c_.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var u=o[a];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);c_.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var c=s[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var h_=y((ZW,f_)=>{"use strict";l();f_.exports=ZI;var KI=Object.getPrototypeOf||function(t){return t.__proto__};function ZI(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:KI(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var je=y((JW,jf)=>{l();var Ne=require("fs"),JI=a_(),XI=l_(),QI=h_(),Ga=require("util"),Qe,Wa;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Qe=Symbol.for("graceful-fs.queue"),Wa=Symbol.for("graceful-fs.previous")):(Qe="___graceful-fs.queue",Wa="___graceful-fs.previous");function eL(){}function m_(t,e){Object.defineProperty(t,Qe,{get:function(){return e}})}var Kn=eL;Ga.debuglog?Kn=Ga.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Kn=function(){var t=Ga.format.apply(Ga,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
23
|
-
GFS4: `),console.error(t)});Ne[Qe]||(d_=global[Qe]||[],m_(Ne,d_),Ne.close=function(t){function e(r,n){return t.call(Ne,r,function(i){i||p_(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Wa,{value:t}),e}(Ne.close),Ne.closeSync=function(t){function e(r){t.apply(Ne,arguments),p_()}return Object.defineProperty(e,Wa,{value:t}),e}(Ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Kn(Ne[Qe]),require("assert").equal(Ne[Qe].length,0)}));var d_;global[Qe]||m_(global,Ne[Qe]);jf.exports=qf(QI(Ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ne.__patched&&(jf.exports=qf(Ne),Ne.__patched=!0);function qf(t){JI(t),t.gracefulify=qf,t.createReadStream=z,t.createWriteStream=ue;var e=t.readFile;t.readFile=r;function r(F,Q,R){return typeof Q=="function"&&(R=Q,Q=null),ne(F,Q,R);function ne(ee,fe,C,x){return e(ee,fe,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?Fi([ne,[ee,fe,C],T,x||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(F,Q,R,ne){return typeof R=="function"&&(ne=R,R=null),ee(F,Q,R,ne);function ee(fe,C,x,T,k){return n(fe,C,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?Fi([ee,[fe,C,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(F,Q,R,ne){return typeof R=="function"&&(ne=R,R=null),ee(F,Q,R,ne);function ee(fe,C,x,T,k){return s(fe,C,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?Fi([ee,[fe,C,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(F,Q,R,ne){return typeof R=="function"&&(ne=R,R=0),ee(F,Q,R,ne);function ee(fe,C,x,T,k){return a(fe,C,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?Fi([ee,[fe,C,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var u=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(F,Q,R){typeof Q=="function"&&(R=Q,Q=null);var ne=f.test(process.version)?function(C,x,T,k){return u(C,ee(C,x,T,k))}:function(C,x,T,k){return u(C,x,ee(C,x,T,k))};return ne(F,Q,R);function ee(fe,C,x,T){return function(k,I){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Fi([ne,[fe,C,x],k,T||Date.now(),Date.now()]):(I&&I.sort&&I.sort(),typeof x=="function"&&x.call(this,k,I))}}}if(process.version.substr(0,4)==="v0.8"){var d=XI(t);A=d.ReadStream,D=d.WriteStream}var g=t.ReadStream;g&&(A.prototype=Object.create(g.prototype),A.prototype.open=P);var m=t.WriteStream;m&&(D.prototype=Object.create(m.prototype),D.prototype.open=ie),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(F){A=F},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return D},set:function(F){D=F},enumerable:!0,configurable:!0});var E=A;Object.defineProperty(t,"FileReadStream",{get:function(){return E},set:function(F){E=F},enumerable:!0,configurable:!0});var v=D;Object.defineProperty(t,"FileWriteStream",{get:function(){return v},set:function(F){v=F},enumerable:!0,configurable:!0});function A(F,Q){return this instanceof A?(g.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function P(){var F=this;Z(F.path,F.flags,F.mode,function(Q,R){Q?(F.autoClose&&F.destroy(),F.emit("error",Q)):(F.fd=R,F.emit("open",R),F.read())})}function D(F,Q){return this instanceof D?(m.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function ie(){var F=this;Z(F.path,F.flags,F.mode,function(Q,R){Q?(F.destroy(),F.emit("error",Q)):(F.fd=R,F.emit("open",R))})}function z(F,Q){return new t.ReadStream(F,Q)}function ue(F,Q){return new t.WriteStream(F,Q)}var K=t.open;t.open=Z;function Z(F,Q,R,ne){return typeof R=="function"&&(ne=R,R=null),ee(F,Q,R,ne);function ee(fe,C,x,T,k){return K(fe,C,x,function(I,Y){I&&(I.code==="EMFILE"||I.code==="ENFILE")?Fi([ee,[fe,C,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return t}function Fi(t){Kn("ENQUEUE",t[0].name,t[1]),Ne[Qe].push(t),Bf()}var Va;function p_(){for(var t=Date.now(),e=0;e<Ne[Qe].length;++e)Ne[Qe][e].length>2&&(Ne[Qe][e][3]=t,Ne[Qe][e][4]=t);Bf()}function Bf(){if(clearTimeout(Va),Va=void 0,Ne[Qe].length!==0){var t=Ne[Qe].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)Kn("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Kn("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),u=Math.min(c*1.2,100);a>=u?(Kn("RETRY",e.name,r),e.apply(null,r.concat([i]))):Ne[Qe].push(t)}Va===void 0&&(Va=setTimeout(Bf,0))}}});var Hf=y(Zn=>{"use strict";l();var g_=vt().fromCallback,Gt=je(),tL=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Gt[t]=="function");Object.keys(Gt).forEach(t=>{t!=="promises"&&(Zn[t]=Gt[t])});tL.forEach(t=>{Zn[t]=g_(Gt[t])});Zn.exists=function(t,e){return typeof e=="function"?Gt.exists(t,e):new Promise(r=>Gt.exists(t,r))};Zn.read=function(t,e,r,n,i,s){return typeof s=="function"?Gt.read(t,e,r,n,i,s):new Promise((o,a)=>{Gt.read(t,e,r,n,i,(c,u,f)=>{if(c)return a(c);o({bytesRead:u,buffer:f})})})};Zn.write=function(t,e,...r){return typeof r[r.length-1]=="function"?Gt.write(t,e,...r):new Promise((n,i)=>{Gt.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof Gt.realpath.native=="function"&&(Zn.realpath.native=g_(Gt.realpath.native))});var Uf=y((QW,__)=>{"use strict";l();var $f=require("path");function y_(t){return t=$f.normalize($f.resolve(t)).split($f.sep),t.length>0?t[0]:null}var rL=/[<>:"|?*]/;function nL(t){let e=y_(t);return t=t.replace(e,""),rL.test(t)}__.exports={getRootPath:y_,invalidWin32Path:nL}});var b_=y((ez,v_)=>{"use strict";l();var iL=je(),Gf=require("path"),sL=Uf().invalidWin32Path,oL=parseInt("0777",8);function Vf(t,e,r,n){if(typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e}),process.platform==="win32"&&sL(t)){let o=new Error(t+" contains invalid WIN32 path characters.");return o.code="EINVAL",r(o)}let i=e.mode,s=e.fs||iL;i===void 0&&(i=oL&~process.umask()),n||(n=null),r=r||function(){},t=Gf.resolve(t),s.mkdir(t,i,o=>{if(!o)return n=n||t,r(null,n);switch(o.code){case"ENOENT":if(Gf.dirname(t)===t)return r(o);Vf(Gf.dirname(t),e,(a,c)=>{a?r(a,c):Vf(t,e,r,c)});break;default:s.stat(t,(a,c)=>{a||!c.isDirectory()?r(o,n):r(null,n)});break}})}v_.exports=Vf});var w_=y((tz,E_)=>{"use strict";l();var aL=je(),Wf=require("path"),cL=Uf().invalidWin32Path,uL=parseInt("0777",8);function zf(t,e,r){(!e||typeof e!="object")&&(e={mode:e});let n=e.mode,i=e.fs||aL;if(process.platform==="win32"&&cL(t)){let s=new Error(t+" contains invalid WIN32 path characters.");throw s.code="EINVAL",s}n===void 0&&(n=uL&~process.umask()),r||(r=null),t=Wf.resolve(t);try{i.mkdirSync(t,n),r=r||t}catch(s){if(s.code==="ENOENT"){if(Wf.dirname(t)===t)throw s;r=zf(Wf.dirname(t),e,r),zf(t,e,r)}else{let o;try{o=i.statSync(t)}catch{throw s}if(!o.isDirectory())throw s}}return r}E_.exports=zf});var Pt=y((rz,x_)=>{"use strict";l();var lL=vt().fromCallback,Yf=lL(b_()),Kf=w_();x_.exports={mkdirs:Yf,mkdirsSync:Kf,mkdirp:Yf,mkdirpSync:Kf,ensureDir:Yf,ensureDirSync:Kf}});var Zf=y((nz,A_)=>{"use strict";l();var rt=je(),S_=require("os"),za=require("path");function fL(){let t=za.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=za.join(S_.tmpdir(),t);let e=new Date(1435410243862);rt.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");let r=rt.openSync(t,"r+");return rt.futimesSync(r,e,e),rt.closeSync(r),rt.statSync(t).mtime>1435410243e3}function hL(t){let e=za.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=za.join(S_.tmpdir(),e);let r=new Date(1435410243862);rt.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",n=>{if(n)return t(n);rt.open(e,"r+",(i,s)=>{if(i)return t(i);rt.futimes(s,r,r,o=>{if(o)return t(o);rt.close(s,a=>{if(a)return t(a);rt.stat(e,(c,u)=>{if(c)return t(c);t(null,u.mtime>1435410243e3)})})})})})}function dL(t){if(typeof t=="number")return Math.floor(t/1e3)*1e3;if(t instanceof Date)return new Date(Math.floor(t.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function pL(t,e,r,n){rt.open(t,"r+",(i,s)=>{if(i)return n(i);rt.futimes(s,e,r,o=>{rt.close(s,a=>{n&&n(o||a)})})})}function mL(t,e,r){let n=rt.openSync(t,"r+");return rt.futimesSync(n,e,r),rt.closeSync(n)}A_.exports={hasMillisRes:hL,hasMillisResSync:fL,timeRemoveMillis:dL,utimesMillis:pL,utimesMillisSync:mL}});var bo=y((iz,P_)=>{"use strict";l();var Vt=je(),bt=require("path"),C_=10,R_=5,gL=0,Xf=process.versions.node.split("."),O_=Number.parseInt(Xf[0],10),T_=Number.parseInt(Xf[1],10),yL=Number.parseInt(Xf[2],10);function _o(){if(O_>C_)return!0;if(O_===C_){if(T_>R_)return!0;if(T_===R_&&yL>=gL)return!0}return!1}function _L(t,e,r){_o()?Vt.stat(t,{bigint:!0},(n,i)=>{if(n)return r(n);Vt.stat(e,{bigint:!0},(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))}):Vt.stat(t,(n,i)=>{if(n)return r(n);Vt.stat(e,(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))})}function vL(t,e){let r,n;_o()?r=Vt.statSync(t,{bigint:!0}):r=Vt.statSync(t);try{_o()?n=Vt.statSync(e,{bigint:!0}):n=Vt.statSync(e)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function bL(t,e,r,n){_L(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Qf(t,e)?n(new Error(vo(t,e,r))):n(null,{srcStat:o,destStat:a})})}function EL(t,e,r){let{srcStat:n,destStat:i}=vL(t,e);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Qf(t,e))throw new Error(vo(t,e,r));return{srcStat:n,destStat:i}}function Jf(t,e,r,n,i){let s=bt.resolve(bt.dirname(t)),o=bt.resolve(bt.dirname(r));if(o===s||o===bt.parse(o).root)return i();_o()?Vt.stat(o,{bigint:!0},(a,c)=>a?a.code==="ENOENT"?i():i(a):c.ino&&c.dev&&c.ino===e.ino&&c.dev===e.dev?i(new Error(vo(t,r,n))):Jf(t,e,o,n,i)):Vt.stat(o,(a,c)=>a?a.code==="ENOENT"?i():i(a):c.ino&&c.dev&&c.ino===e.ino&&c.dev===e.dev?i(new Error(vo(t,r,n))):Jf(t,e,o,n,i))}function k_(t,e,r,n){let i=bt.resolve(bt.dirname(t)),s=bt.resolve(bt.dirname(r));if(s===i||s===bt.parse(s).root)return;let o;try{_o()?o=Vt.statSync(s,{bigint:!0}):o=Vt.statSync(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(o.ino&&o.dev&&o.ino===e.ino&&o.dev===e.dev)throw new Error(vo(t,r,n));return k_(t,e,s,n)}function Qf(t,e){let r=bt.resolve(t).split(bt.sep).filter(i=>i),n=bt.resolve(e).split(bt.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function vo(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}P_.exports={checkPaths:bL,checkPathsSync:EL,checkParentPaths:Jf,checkParentPathsSync:k_,isSrcSubdir:Qf}});var L_=y((sz,I_)=>{"use strict";l();I_.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}});var q_=y((oz,F_)=>{"use strict";l();var ke=je(),Eo=require("path"),wL=Pt().mkdirsSync,xL=Zf().utimesMillisSync,wo=bo();function SL(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
22
|
+
`)}),this}};function C0(t,e){t._hasHelpOption&&e.find(n=>n===t._helpLongFlag||n===t._helpShortFlag)&&(t.outputHelp(),t._exit(0,"commander.helpDisplayed","(outputHelp)"))}function R0(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let r,n="127.0.0.1",i="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?r=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(r=s[1],/^\d+$/.test(s[3])?i=s[3]:n=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(r=s[1],n=s[3],i=s[4]),r&&i!=="0"?`${r}=${n}:${parseInt(i)+1}`:e})}function po(t){let e=[];for(let r=t;r;r=r.parent)e.push(r);return e}O0.Command=mo});var L0=y((cr,I0)=>{l();var{Argument:LI}=Fa(),{Command:k0}=T0(),{CommanderError:NI,InvalidArgumentError:P0}=ho(),{Help:DI}=gf(),{Option:MI}=vf();cr=I0.exports=new k0;cr.program=cr;cr.Argument=LI;cr.Command=k0;cr.CommanderError=NI;cr.Help=DI;cr.InvalidArgumentError=P0;cr.InvalidOptionArgumentError=P0;cr.Option=MI});var F0=y((yW,qr)=>{l();function xf(t){return qr.exports=xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qr.exports.__esModule=!0,qr.exports.default=qr.exports,xf(t)}qr.exports=xf,qr.exports.__esModule=!0,qr.exports.default=qr.exports});var j0=y((_W,Br)=>{l();var q0=F0().default;function B0(){"use strict";Br.exports=B0=function(){return e},Br.exports.__esModule=!0,Br.exports.default=Br.exports;var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(x,T,k){x[T]=k.value},s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function u(x,T,k){return Object.defineProperty(x,T,{value:k,enumerable:!0,configurable:!0,writable:!0}),x[T]}try{u({},"")}catch{u=function(k,I,Y){return k[I]=Y}}function f(x,T,k,I){var Y=T&&T.prototype instanceof A?T:A,j=Object.create(Y.prototype),ve=new fe(I||[]);return i(j,"_invoke",{value:Q(x,k,ve)}),j}function h(x,T,k){try{return{type:"normal",arg:x.call(T,k)}}catch(I){return{type:"throw",arg:I}}}e.wrap=f;var d="suspendedStart",m="suspendedYield",g="executing",E="completed",v={};function A(){}function P(){}function B(){}var re={};u(re,o,function(){return this});var $=Object.getPrototypeOf,se=$&&$($(C([])));se&&se!==r&&n.call(se,o)&&(re=se);var K=B.prototype=A.prototype=Object.create(re);function Z(x){["next","throw","return"].forEach(function(T){u(x,T,function(k){return this._invoke(T,k)})})}function M(x,T){function k(Y,j,ve,Ue){var ge=h(x[Y],x,j);if(ge.type!=="throw"){var De=ge.arg,ne=De.value;return ne&&q0(ne)=="object"&&n.call(ne,"__await")?T.resolve(ne.__await).then(function(pt){k("next",pt,ve,Ue)},function(pt){k("throw",pt,ve,Ue)}):T.resolve(ne).then(function(pt){De.value=pt,ve(De)},function(pt){return k("throw",pt,ve,Ue)})}Ue(ge.arg)}var I;i(this,"_invoke",{value:function(j,ve){function Ue(){return new T(function(ge,De){k(j,ve,ge,De)})}return I=I?I.then(Ue,Ue):Ue()}})}function Q(x,T,k){var I=d;return function(Y,j){if(I===g)throw new Error("Generator is already running");if(I===E){if(Y==="throw")throw j;return{value:t,done:!0}}for(k.method=Y,k.arg=j;;){var ve=k.delegate;if(ve){var Ue=R(ve,k);if(Ue){if(Ue===v)continue;return Ue}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(I===d)throw I=E,k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);I=g;var ge=h(x,T,k);if(ge.type==="normal"){if(I=k.done?E:m,ge.arg===v)continue;return{value:ge.arg,done:k.done}}ge.type==="throw"&&(I=E,k.method="throw",k.arg=ge.arg)}}}function R(x,T){var k=T.method,I=x.iterator[k];if(I===t)return T.delegate=null,k==="throw"&&x.iterator.return&&(T.method="return",T.arg=t,R(x,T),T.method==="throw")||k!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+k+"' method")),v;var Y=h(I,x.iterator,T.arg);if(Y.type==="throw")return T.method="throw",T.arg=Y.arg,T.delegate=null,v;var j=Y.arg;return j?j.done?(T[x.resultName]=j.value,T.next=x.nextLoc,T.method!=="return"&&(T.method="next",T.arg=t),T.delegate=null,v):j:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,v)}function ie(x){var T={tryLoc:x[0]};1 in x&&(T.catchLoc=x[1]),2 in x&&(T.finallyLoc=x[2],T.afterLoc=x[3]),this.tryEntries.push(T)}function ee(x){var T=x.completion||{};T.type="normal",delete T.arg,x.completion=T}function fe(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(ie,this),this.reset(!0)}function C(x){if(x||x===""){var T=x[o];if(T)return T.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var k=-1,I=function Y(){for(;++k<x.length;)if(n.call(x,k))return Y.value=x[k],Y.done=!1,Y;return Y.value=t,Y.done=!0,Y};return I.next=I}}throw new TypeError(q0(x)+" is not iterable")}return P.prototype=B,i(K,"constructor",{value:B,configurable:!0}),i(B,"constructor",{value:P,configurable:!0}),P.displayName=u(B,c,"GeneratorFunction"),e.isGeneratorFunction=function(x){var T=typeof x=="function"&&x.constructor;return!!T&&(T===P||(T.displayName||T.name)==="GeneratorFunction")},e.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,B):(x.__proto__=B,u(x,c,"GeneratorFunction")),x.prototype=Object.create(K),x},e.awrap=function(x){return{__await:x}},Z(M.prototype),u(M.prototype,a,function(){return this}),e.AsyncIterator=M,e.async=function(x,T,k,I,Y){Y===void 0&&(Y=Promise);var j=new M(f(x,T,k,I),Y);return e.isGeneratorFunction(T)?j:j.next().then(function(ve){return ve.done?ve.value:j.next()})},Z(K),u(K,c,"Generator"),u(K,o,function(){return this}),u(K,"toString",function(){return"[object Generator]"}),e.keys=function(x){var T=Object(x),k=[];for(var I in T)k.push(I);return k.reverse(),function Y(){for(;k.length;){var j=k.pop();if(j in T)return Y.value=j,Y.done=!1,Y}return Y.done=!0,Y}},e.values=C,fe.prototype={constructor:fe,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(ee),!T)for(var k in this)k.charAt(0)==="t"&&n.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=t)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var k=this;function I(De,ne){return ve.type="throw",ve.arg=T,k.next=De,ne&&(k.method="next",k.arg=t),!!ne}for(var Y=this.tryEntries.length-1;Y>=0;--Y){var j=this.tryEntries[Y],ve=j.completion;if(j.tryLoc==="root")return I("end");if(j.tryLoc<=this.prev){var Ue=n.call(j,"catchLoc"),ge=n.call(j,"finallyLoc");if(Ue&&ge){if(this.prev<j.catchLoc)return I(j.catchLoc,!0);if(this.prev<j.finallyLoc)return I(j.finallyLoc)}else if(Ue){if(this.prev<j.catchLoc)return I(j.catchLoc,!0)}else{if(!ge)throw new Error("try statement without catch or finally");if(this.prev<j.finallyLoc)return I(j.finallyLoc)}}}},abrupt:function(T,k){for(var I=this.tryEntries.length-1;I>=0;--I){var Y=this.tryEntries[I];if(Y.tryLoc<=this.prev&&n.call(Y,"finallyLoc")&&this.prev<Y.finallyLoc){var j=Y;break}}j&&(T==="break"||T==="continue")&&j.tryLoc<=k&&k<=j.finallyLoc&&(j=null);var ve=j?j.completion:{};return ve.type=T,ve.arg=k,j?(this.method="next",this.next=j.finallyLoc,v):this.complete(ve)},complete:function(T,k){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&k&&(this.next=k),v},finish:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var I=this.tryEntries[k];if(I.finallyLoc===T)return this.complete(I.completion,I.afterLoc),ee(I),v}},catch:function(T){for(var k=this.tryEntries.length-1;k>=0;--k){var I=this.tryEntries[k];if(I.tryLoc===T){var Y=I.completion;if(Y.type==="throw"){var j=Y.arg;ee(I)}return j}}throw new Error("illegal catch attempt")},delegateYield:function(T,k,I){return this.delegate={iterator:C(T),resultName:k,nextLoc:I},this.method==="next"&&(this.arg=t),v}},e}Br.exports=B0,Br.exports.__esModule=!0,Br.exports.default=Br.exports});var $0=y((vW,H0)=>{l();var Ba=j0()();H0.exports=Ba;try{regeneratorRuntime=Ba}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Ba:Function("r","regeneratorRuntime = r")(Ba)}});var G0=y((HW,kf)=>{"use strict";l();var U0=(t,...e)=>new Promise(r=>{r(t(...e))});kf.exports=U0;kf.exports.default=U0});var W0=y(($W,Pf)=>{"use strict";l();var FI=G0(),V0=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let e=[],r=0,n=()=>{r--,e.length>0&&e.shift()()},i=(a,c,...u)=>{r++;let f=FI(a,...u);c(f),f.then(n,n)},s=(a,c,...u)=>{r<t?i(a,c,...u):e.push(i.bind(null,a,c,...u))},o=(a,...c)=>new Promise(u=>s(a,u,...c));return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.length},clearQueue:{value:()=>{e.length=0}}}),o};Pf.exports=V0;Pf.exports.default=V0});var K0=y((UW,If)=>{"use strict";l();var z0=W0(),ja=class extends Error{constructor(e){super(),this.value=e}},qI=async(t,e)=>e(await t),BI=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new ja(e[0]);return!1},Y0=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=z0(r.concurrency),i=[...t].map(o=>[o,n(qI,o,e)]),s=z0(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(BI,o)))}catch(o){if(o instanceof ja)return o.value;throw o}};If.exports=Y0;If.exports.default=Y0});var t_=y((GW,Lf)=>{"use strict";l();var Z0=require("path"),Ha=require("fs"),{promisify:J0}=require("util"),jI=K0(),HI=J0(Ha.stat),$I=J0(Ha.lstat),X0={directory:"isDirectory",file:"isFile"};function Q0({type:t}){if(!(t in X0))throw new Error(`Invalid type specified: ${t}`)}var e_=(t,e)=>t===void 0||e[X0[t]]();Lf.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Q0(e);let r=e.allowSymlinks?HI:$I;return jI(t,async n=>{try{let i=await r(Z0.resolve(e.cwd,n));return e_(e.type,i)}catch{return!1}},e)};Lf.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Q0(e);let r=e.allowSymlinks?Ha.statSync:Ha.lstatSync;for(let n of t)try{let i=r(Z0.resolve(e.cwd,n));if(e_(e.type,i))return n}catch{}}});var n_=y((VW,Nf)=>{"use strict";l();var r_=require("fs"),{promisify:UI}=require("util"),GI=UI(r_.access);Nf.exports=async t=>{try{return await GI(t),!0}catch{return!1}};Nf.exports.sync=t=>{try{return r_.accessSync(t),!0}catch{return!1}}});var s_=y((WW,Mi)=>{"use strict";l();var hn=require("path"),$a=t_(),i_=n_(),Df=Symbol("findUp.stop");Mi.exports=async(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return $a(i,o);let a=await t(o.cwd);return typeof a=="string"?$a([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===Df)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};Mi.exports.sync=(t,e={})=>{let r=hn.resolve(e.cwd||""),{root:n}=hn.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return $a.sync(i,o);let a=t(o.cwd);return typeof a=="string"?$a.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===Df)return;if(o)return hn.resolve(r,o);if(r===n)return;r=hn.dirname(r)}};Mi.exports.exists=i_;Mi.exports.sync.exists=i_.sync;Mi.exports.stop=Df});var vt=y(Mf=>{"use strict";l();Mf.fromCallback=function(t){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")t.apply(this,arguments);else return new Promise((e,r)=>{arguments[arguments.length]=(n,i)=>{if(n)return r(n);e(i)},arguments.length++,t.apply(this,arguments)})},"name",{value:t.name})};Mf.fromPromise=function(t){return Object.defineProperty(function(){let e=arguments[arguments.length-1];if(typeof e!="function")return t.apply(this,arguments);t.apply(this,arguments).then(r=>e(null,r),e)},"name",{value:t.name})}});var a_=y((YW,o_)=>{l();var dn=require("constants"),VI=process.cwd,Ua=null,WI=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Ua||(Ua=VI.call(process)),Ua};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ff=process.chdir,process.chdir=function(t){Ua=null,Ff.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ff));var Ff;o_.exports=zI;function zI(t){dn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(f,h,d){d&&process.nextTick(d)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(f,h,d,m){m&&process.nextTick(m)},t.lchownSync=function(){}),WI==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(f){function h(d,m,g){var E=Date.now(),v=0;f(d,m,function A(P){if(P&&(P.code==="EACCES"||P.code==="EPERM"||P.code==="EBUSY")&&Date.now()-E<6e4){setTimeout(function(){t.stat(m,function(B,re){B&&B.code==="ENOENT"?f(d,m,A):g(P)})},v),v<100&&(v+=10);return}g&&g(P)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.rename)),t.read=typeof t.read!="function"?t.read:function(f){function h(d,m,g,E,v,A){var P;if(A&&typeof A=="function"){var B=0;P=function(re,$,se){if(re&&re.code==="EAGAIN"&&B<10)return B++,f.call(t,d,m,g,E,v,P);A.apply(this,arguments)}}return f.call(t,d,m,g,E,v,P)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(f){return function(h,d,m,g,E){for(var v=0;;)try{return f.call(t,h,d,m,g,E)}catch(A){if(A.code==="EAGAIN"&&v<10){v++;continue}throw A}}}(t.readSync);function e(f){f.lchmod=function(h,d,m){f.open(h,dn.O_WRONLY|dn.O_SYMLINK,d,function(g,E){if(g){m&&m(g);return}f.fchmod(E,d,function(v){f.close(E,function(A){m&&m(v||A)})})})},f.lchmodSync=function(h,d){var m=f.openSync(h,dn.O_WRONLY|dn.O_SYMLINK,d),g=!0,E;try{E=f.fchmodSync(m,d),g=!1}finally{if(g)try{f.closeSync(m)}catch{}else f.closeSync(m)}return E}}function r(f){dn.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(h,d,m,g){f.open(h,dn.O_SYMLINK,function(E,v){if(E){g&&g(E);return}f.futimes(v,d,m,function(A){f.close(v,function(P){g&&g(A||P)})})})},f.lutimesSync=function(h,d,m){var g=f.openSync(h,dn.O_SYMLINK),E,v=!0;try{E=f.futimesSync(g,d,m),v=!1}finally{if(v)try{f.closeSync(g)}catch{}else f.closeSync(g)}return E}):f.futimes&&(f.lutimes=function(h,d,m,g){g&&process.nextTick(g)},f.lutimesSync=function(){})}function n(f){return f&&function(h,d,m){return f.call(t,h,d,function(g){u(g)&&(g=null),m&&m.apply(this,arguments)})}}function i(f){return f&&function(h,d){try{return f.call(t,h,d)}catch(m){if(!u(m))throw m}}}function s(f){return f&&function(h,d,m,g){return f.call(t,h,d,m,function(E){u(E)&&(E=null),g&&g.apply(this,arguments)})}}function o(f){return f&&function(h,d,m){try{return f.call(t,h,d,m)}catch(g){if(!u(g))throw g}}}function a(f){return f&&function(h,d,m){typeof d=="function"&&(m=d,d=null);function g(E,v){v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),m&&m.apply(this,arguments)}return d?f.call(t,h,d,g):f.call(t,h,g)}}function c(f){return f&&function(h,d){var m=d?f.call(t,h,d):f.call(t,h);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function u(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var l_=y((KW,u_)=>{l();var c_=require("stream").Stream;u_.exports=YI;function YI(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);c_.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var u=o[a];this[u]=i[u]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}t.open(this.path,this.flags,this.mode,function(f,h){if(f){s.emit("error",f),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);c_.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var c=s[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var h_=y((ZW,f_)=>{"use strict";l();f_.exports=ZI;var KI=Object.getPrototypeOf||function(t){return t.__proto__};function ZI(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:KI(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var je=y((JW,jf)=>{l();var Ne=require("fs"),JI=a_(),XI=l_(),QI=h_(),Ga=require("util"),Qe,Wa;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Qe=Symbol.for("graceful-fs.queue"),Wa=Symbol.for("graceful-fs.previous")):(Qe="___graceful-fs.queue",Wa="___graceful-fs.previous");function eL(){}function m_(t,e){Object.defineProperty(t,Qe,{get:function(){return e}})}var Kn=eL;Ga.debuglog?Kn=Ga.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Kn=function(){var t=Ga.format.apply(Ga,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
23
|
+
GFS4: `),console.error(t)});Ne[Qe]||(d_=global[Qe]||[],m_(Ne,d_),Ne.close=function(t){function e(r,n){return t.call(Ne,r,function(i){i||p_(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Wa,{value:t}),e}(Ne.close),Ne.closeSync=function(t){function e(r){t.apply(Ne,arguments),p_()}return Object.defineProperty(e,Wa,{value:t}),e}(Ne.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Kn(Ne[Qe]),require("assert").equal(Ne[Qe].length,0)}));var d_;global[Qe]||m_(global,Ne[Qe]);jf.exports=qf(QI(Ne));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Ne.__patched&&(jf.exports=qf(Ne),Ne.__patched=!0);function qf(t){JI(t),t.gracefulify=qf,t.createReadStream=$,t.createWriteStream=se;var e=t.readFile;t.readFile=r;function r(M,Q,R){return typeof Q=="function"&&(R=Q,Q=null),ie(M,Q,R);function ie(ee,fe,C,x){return e(ee,fe,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?Fi([ie,[ee,fe,C],T,x||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(M,Q,R,ie){return typeof R=="function"&&(ie=R,R=null),ee(M,Q,R,ie);function ee(fe,C,x,T,k){return n(fe,C,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?Fi([ee,[fe,C,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(M,Q,R,ie){return typeof R=="function"&&(ie=R,R=null),ee(M,Q,R,ie);function ee(fe,C,x,T,k){return s(fe,C,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?Fi([ee,[fe,C,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(M,Q,R,ie){return typeof R=="function"&&(ie=R,R=0),ee(M,Q,R,ie);function ee(fe,C,x,T,k){return a(fe,C,x,function(I){I&&(I.code==="EMFILE"||I.code==="ENFILE")?Fi([ee,[fe,C,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var u=t.readdir;t.readdir=h;var f=/^v[0-5]\./;function h(M,Q,R){typeof Q=="function"&&(R=Q,Q=null);var ie=f.test(process.version)?function(C,x,T,k){return u(C,ee(C,x,T,k))}:function(C,x,T,k){return u(C,x,ee(C,x,T,k))};return ie(M,Q,R);function ee(fe,C,x,T){return function(k,I){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Fi([ie,[fe,C,x],k,T||Date.now(),Date.now()]):(I&&I.sort&&I.sort(),typeof x=="function"&&x.call(this,k,I))}}}if(process.version.substr(0,4)==="v0.8"){var d=XI(t);A=d.ReadStream,B=d.WriteStream}var m=t.ReadStream;m&&(A.prototype=Object.create(m.prototype),A.prototype.open=P);var g=t.WriteStream;g&&(B.prototype=Object.create(g.prototype),B.prototype.open=re),Object.defineProperty(t,"ReadStream",{get:function(){return A},set:function(M){A=M},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return B},set:function(M){B=M},enumerable:!0,configurable:!0});var E=A;Object.defineProperty(t,"FileReadStream",{get:function(){return E},set:function(M){E=M},enumerable:!0,configurable:!0});var v=B;Object.defineProperty(t,"FileWriteStream",{get:function(){return v},set:function(M){v=M},enumerable:!0,configurable:!0});function A(M,Q){return this instanceof A?(m.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function P(){var M=this;Z(M.path,M.flags,M.mode,function(Q,R){Q?(M.autoClose&&M.destroy(),M.emit("error",Q)):(M.fd=R,M.emit("open",R),M.read())})}function B(M,Q){return this instanceof B?(g.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function re(){var M=this;Z(M.path,M.flags,M.mode,function(Q,R){Q?(M.destroy(),M.emit("error",Q)):(M.fd=R,M.emit("open",R))})}function $(M,Q){return new t.ReadStream(M,Q)}function se(M,Q){return new t.WriteStream(M,Q)}var K=t.open;t.open=Z;function Z(M,Q,R,ie){return typeof R=="function"&&(ie=R,R=null),ee(M,Q,R,ie);function ee(fe,C,x,T,k){return K(fe,C,x,function(I,Y){I&&(I.code==="EMFILE"||I.code==="ENFILE")?Fi([ee,[fe,C,x,T],I,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return t}function Fi(t){Kn("ENQUEUE",t[0].name,t[1]),Ne[Qe].push(t),Bf()}var Va;function p_(){for(var t=Date.now(),e=0;e<Ne[Qe].length;++e)Ne[Qe][e].length>2&&(Ne[Qe][e][3]=t,Ne[Qe][e][4]=t);Bf()}function Bf(){if(clearTimeout(Va),Va=void 0,Ne[Qe].length!==0){var t=Ne[Qe].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)Kn("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){Kn("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),u=Math.min(c*1.2,100);a>=u?(Kn("RETRY",e.name,r),e.apply(null,r.concat([i]))):Ne[Qe].push(t)}Va===void 0&&(Va=setTimeout(Bf,0))}}});var Hf=y(Zn=>{"use strict";l();var g_=vt().fromCallback,Gt=je(),tL=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(t=>typeof Gt[t]=="function");Object.keys(Gt).forEach(t=>{t!=="promises"&&(Zn[t]=Gt[t])});tL.forEach(t=>{Zn[t]=g_(Gt[t])});Zn.exists=function(t,e){return typeof e=="function"?Gt.exists(t,e):new Promise(r=>Gt.exists(t,r))};Zn.read=function(t,e,r,n,i,s){return typeof s=="function"?Gt.read(t,e,r,n,i,s):new Promise((o,a)=>{Gt.read(t,e,r,n,i,(c,u,f)=>{if(c)return a(c);o({bytesRead:u,buffer:f})})})};Zn.write=function(t,e,...r){return typeof r[r.length-1]=="function"?Gt.write(t,e,...r):new Promise((n,i)=>{Gt.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof Gt.realpath.native=="function"&&(Zn.realpath.native=g_(Gt.realpath.native))});var Uf=y((QW,__)=>{"use strict";l();var $f=require("path");function y_(t){return t=$f.normalize($f.resolve(t)).split($f.sep),t.length>0?t[0]:null}var rL=/[<>:"|?*]/;function nL(t){let e=y_(t);return t=t.replace(e,""),rL.test(t)}__.exports={getRootPath:y_,invalidWin32Path:nL}});var b_=y((ez,v_)=>{"use strict";l();var iL=je(),Gf=require("path"),sL=Uf().invalidWin32Path,oL=parseInt("0777",8);function Vf(t,e,r,n){if(typeof e=="function"?(r=e,e={}):(!e||typeof e!="object")&&(e={mode:e}),process.platform==="win32"&&sL(t)){let o=new Error(t+" contains invalid WIN32 path characters.");return o.code="EINVAL",r(o)}let i=e.mode,s=e.fs||iL;i===void 0&&(i=oL&~process.umask()),n||(n=null),r=r||function(){},t=Gf.resolve(t),s.mkdir(t,i,o=>{if(!o)return n=n||t,r(null,n);switch(o.code){case"ENOENT":if(Gf.dirname(t)===t)return r(o);Vf(Gf.dirname(t),e,(a,c)=>{a?r(a,c):Vf(t,e,r,c)});break;default:s.stat(t,(a,c)=>{a||!c.isDirectory()?r(o,n):r(null,n)});break}})}v_.exports=Vf});var w_=y((tz,E_)=>{"use strict";l();var aL=je(),Wf=require("path"),cL=Uf().invalidWin32Path,uL=parseInt("0777",8);function zf(t,e,r){(!e||typeof e!="object")&&(e={mode:e});let n=e.mode,i=e.fs||aL;if(process.platform==="win32"&&cL(t)){let s=new Error(t+" contains invalid WIN32 path characters.");throw s.code="EINVAL",s}n===void 0&&(n=uL&~process.umask()),r||(r=null),t=Wf.resolve(t);try{i.mkdirSync(t,n),r=r||t}catch(s){if(s.code==="ENOENT"){if(Wf.dirname(t)===t)throw s;r=zf(Wf.dirname(t),e,r),zf(t,e,r)}else{let o;try{o=i.statSync(t)}catch{throw s}if(!o.isDirectory())throw s}}return r}E_.exports=zf});var Pt=y((rz,x_)=>{"use strict";l();var lL=vt().fromCallback,Yf=lL(b_()),Kf=w_();x_.exports={mkdirs:Yf,mkdirsSync:Kf,mkdirp:Yf,mkdirpSync:Kf,ensureDir:Yf,ensureDirSync:Kf}});var Zf=y((nz,A_)=>{"use strict";l();var rt=je(),S_=require("os"),za=require("path");function fL(){let t=za.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));t=za.join(S_.tmpdir(),t);let e=new Date(1435410243862);rt.writeFileSync(t,"https://github.com/jprichardson/node-fs-extra/pull/141");let r=rt.openSync(t,"r+");return rt.futimesSync(r,e,e),rt.closeSync(r),rt.statSync(t).mtime>1435410243e3}function hL(t){let e=za.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));e=za.join(S_.tmpdir(),e);let r=new Date(1435410243862);rt.writeFile(e,"https://github.com/jprichardson/node-fs-extra/pull/141",n=>{if(n)return t(n);rt.open(e,"r+",(i,s)=>{if(i)return t(i);rt.futimes(s,r,r,o=>{if(o)return t(o);rt.close(s,a=>{if(a)return t(a);rt.stat(e,(c,u)=>{if(c)return t(c);t(null,u.mtime>1435410243e3)})})})})})}function dL(t){if(typeof t=="number")return Math.floor(t/1e3)*1e3;if(t instanceof Date)return new Date(Math.floor(t.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function pL(t,e,r,n){rt.open(t,"r+",(i,s)=>{if(i)return n(i);rt.futimes(s,e,r,o=>{rt.close(s,a=>{n&&n(o||a)})})})}function mL(t,e,r){let n=rt.openSync(t,"r+");return rt.futimesSync(n,e,r),rt.closeSync(n)}A_.exports={hasMillisRes:hL,hasMillisResSync:fL,timeRemoveMillis:dL,utimesMillis:pL,utimesMillisSync:mL}});var bo=y((iz,P_)=>{"use strict";l();var Vt=je(),bt=require("path"),C_=10,R_=5,gL=0,Xf=process.versions.node.split("."),O_=Number.parseInt(Xf[0],10),T_=Number.parseInt(Xf[1],10),yL=Number.parseInt(Xf[2],10);function _o(){if(O_>C_)return!0;if(O_===C_){if(T_>R_)return!0;if(T_===R_&&yL>=gL)return!0}return!1}function _L(t,e,r){_o()?Vt.stat(t,{bigint:!0},(n,i)=>{if(n)return r(n);Vt.stat(e,{bigint:!0},(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))}):Vt.stat(t,(n,i)=>{if(n)return r(n);Vt.stat(e,(s,o)=>s?s.code==="ENOENT"?r(null,{srcStat:i,destStat:null}):r(s):r(null,{srcStat:i,destStat:o}))})}function vL(t,e){let r,n;_o()?r=Vt.statSync(t,{bigint:!0}):r=Vt.statSync(t);try{_o()?n=Vt.statSync(e,{bigint:!0}):n=Vt.statSync(e)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function bL(t,e,r,n){_L(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&a.ino&&a.dev&&a.ino===o.ino&&a.dev===o.dev?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Qf(t,e)?n(new Error(vo(t,e,r))):n(null,{srcStat:o,destStat:a})})}function EL(t,e,r){let{srcStat:n,destStat:i}=vL(t,e);if(i&&i.ino&&i.dev&&i.ino===n.ino&&i.dev===n.dev)throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Qf(t,e))throw new Error(vo(t,e,r));return{srcStat:n,destStat:i}}function Jf(t,e,r,n,i){let s=bt.resolve(bt.dirname(t)),o=bt.resolve(bt.dirname(r));if(o===s||o===bt.parse(o).root)return i();_o()?Vt.stat(o,{bigint:!0},(a,c)=>a?a.code==="ENOENT"?i():i(a):c.ino&&c.dev&&c.ino===e.ino&&c.dev===e.dev?i(new Error(vo(t,r,n))):Jf(t,e,o,n,i)):Vt.stat(o,(a,c)=>a?a.code==="ENOENT"?i():i(a):c.ino&&c.dev&&c.ino===e.ino&&c.dev===e.dev?i(new Error(vo(t,r,n))):Jf(t,e,o,n,i))}function k_(t,e,r,n){let i=bt.resolve(bt.dirname(t)),s=bt.resolve(bt.dirname(r));if(s===i||s===bt.parse(s).root)return;let o;try{_o()?o=Vt.statSync(s,{bigint:!0}):o=Vt.statSync(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(o.ino&&o.dev&&o.ino===e.ino&&o.dev===e.dev)throw new Error(vo(t,r,n));return k_(t,e,s,n)}function Qf(t,e){let r=bt.resolve(t).split(bt.sep).filter(i=>i),n=bt.resolve(e).split(bt.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function vo(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}P_.exports={checkPaths:bL,checkPathsSync:EL,checkParentPaths:Jf,checkParentPathsSync:k_,isSrcSubdir:Qf}});var L_=y((sz,I_)=>{"use strict";l();I_.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}});var q_=y((oz,F_)=>{"use strict";l();var ke=je(),Eo=require("path"),wL=Pt().mkdirsSync,xL=Zf().utimesMillisSync,wo=bo();function SL(t,e,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
24
24
|
|
|
25
25
|
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=wo.checkPathsSync(t,e,"copy");return wo.checkParentPathsSync(t,n,e,"copy"),AL(i,t,e,r)}function AL(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=Eo.dirname(r);return ke.existsSync(i)||wL(i),N_(t,e,r,n)}function N_(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return CL(t,e,r,n)}function CL(t,e,r,n){let s=(n.dereference?ke.statSync:ke.lstatSync)(e);if(s.isDirectory())return kL(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return RL(s,t,e,r,n);if(s.isSymbolicLink())return LL(t,e,r,n)}function RL(t,e,r,n,i){return e?OL(t,r,n,i):D_(t,r,n,i)}function OL(t,e,r,n){if(n.overwrite)return ke.unlinkSync(r),D_(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function D_(t,e,r,n){return typeof ke.copyFileSync=="function"?(ke.copyFileSync(e,r),ke.chmodSync(r,t.mode),n.preserveTimestamps?xL(r,t.atime,t.mtime):void 0):TL(t,e,r,n)}function TL(t,e,r,n){let s=L_()(65536),o=ke.openSync(e,"r"),a=ke.openSync(r,"w",t.mode),c=0;for(;c<t.size;){let u=ke.readSync(o,s,0,65536,c);ke.writeSync(a,s,0,u),c+=u}n.preserveTimestamps&&ke.futimesSync(a,t.atime,t.mtime),ke.closeSync(o),ke.closeSync(a)}function kL(t,e,r,n,i){if(!e)return PL(t,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return M_(r,n,i)}function PL(t,e,r,n){return ke.mkdirSync(r),M_(e,r,n),ke.chmodSync(r,t.mode)}function M_(t,e,r){ke.readdirSync(t).forEach(n=>IL(n,t,e,r))}function IL(t,e,r,n){let i=Eo.join(e,t),s=Eo.join(r,t),{destStat:o}=wo.checkPathsSync(i,s,"copy");return N_(o,i,s,n)}function LL(t,e,r,n){let i=ke.readlinkSync(e);if(n.dereference&&(i=Eo.resolve(process.cwd(),i)),t){let s;try{s=ke.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return ke.symlinkSync(i,r);throw o}if(n.dereference&&(s=Eo.resolve(process.cwd(),s)),wo.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(ke.statSync(r).isDirectory()&&wo.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return NL(i,r)}else return ke.symlinkSync(i,r)}function NL(t,e){return ke.unlinkSync(e),ke.symlinkSync(t,e)}F_.exports=SL});var eh=y((az,B_)=>{"use strict";l();B_.exports={copySync:q_()}});var gr=y((cz,H_)=>{"use strict";l();var DL=vt().fromPromise,j_=Hf();function ML(t){return j_.access(t).then(()=>!0).catch(()=>!1)}H_.exports={pathExists:DL(ML),pathExistsSync:j_.existsSync}});var Z_=y((uz,K_)=>{"use strict";l();var et=je(),xo=require("path"),FL=Pt().mkdirs,qL=gr().pathExists,BL=Zf().utimesMillis,So=bo();function jL(t,e,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
26
26
|
|
|
27
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),So.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;So.checkParentPaths(t,o,e,"copy",c=>c?n(c):r.filter?G_($_,a,t,e,r,n):$_(a,t,e,r,n))})}function $_(t,e,r,n,i){let s=xo.dirname(r);qL(s,(o,a)=>{if(o)return i(o);if(a)return th(t,e,r,n,i);FL(s,c=>c?i(c):th(t,e,r,n,i))})}function G_(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function th(t,e,r,n,i){return n.filter?G_(U_,t,e,r,n,i):U_(t,e,r,n,i)}function U_(t,e,r,n,i){(n.dereference?et.stat:et.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return GL(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return HL(a,t,e,r,n,i);if(a.isSymbolicLink())return zL(t,e,r,n,i)})}function HL(t,e,r,n,i,s){return e?$L(t,r,n,i,s):V_(t,r,n,i,s)}function $L(t,e,r,n,i){if(n.overwrite)et.unlink(r,s=>s?i(s):V_(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function V_(t,e,r,n,i){return typeof et.copyFile=="function"?et.copyFile(e,r,s=>s?i(s):W_(t,r,n,i)):UL(t,e,r,n,i)}function UL(t,e,r,n,i){let s=et.createReadStream(e);s.on("error",o=>i(o)).once("open",()=>{let o=et.createWriteStream(r,{mode:t.mode});o.on("error",a=>i(a)).on("open",()=>s.pipe(o)).once("close",()=>W_(t,r,n,i))})}function W_(t,e,r,n){et.chmod(e,t.mode,i=>i?n(i):r.preserveTimestamps?BL(e,t.atime,t.mtime,n):n())}function GL(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):z_(r,n,i,s):VL(t,r,n,i,s)}function VL(t,e,r,n,i){et.mkdir(r,s=>{if(s)return i(s);z_(e,r,n,o=>o?i(o):et.chmod(r,t.mode,i))})}function z_(t,e,r,n){et.readdir(t,(i,s)=>i?n(i):Y_(s,t,e,r,n))}function Y_(t,e,r,n,i){let s=t.pop();return s?WL(t,s,e,r,n,i):i()}function WL(t,e,r,n,i,s){let o=xo.join(r,e),a=xo.join(n,e);So.checkPaths(o,a,"copy",(c,u)=>{if(c)return s(c);let{destStat:f}=u;th(f,o,a,i,h=>h?s(h):Y_(t,r,n,i,s))})}function zL(t,e,r,n,i){et.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=xo.resolve(process.cwd(),o)),t)et.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?et.symlink(o,r,i):i(a):(n.dereference&&(c=xo.resolve(process.cwd(),c)),So.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&So.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):YL(o,r,i)));else return et.symlink(o,r,i)})}function YL(t,e,r){et.unlink(e,n=>n?r(n):et.symlink(t,e,r))}K_.exports=jL});var rh=y((lz,J_)=>{"use strict";l();var KL=vt().fromCallback;J_.exports={copy:KL(Z_())}});var ov=y((fz,sv)=>{"use strict";l();var X_=je(),rv=require("path"),_e=require("assert"),Ao=process.platform==="win32";function nv(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||X_[r],r=r+"Sync",t[r]=t[r]||X_[r]}),t.maxBusyTries=t.maxBusyTries||3}function nh(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),_e(t,"rimraf: missing path"),_e.strictEqual(typeof t,"string","rimraf: path should be a string"),_e.strictEqual(typeof r,"function","rimraf: callback function required"),_e(e,"rimraf: invalid options argument provided"),_e.strictEqual(typeof e,"object","rimraf: options should be object"),nv(e),Q_(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>Q_(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function Q_(t,e,r){_e(t),_e(e),_e(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Ao)return ev(t,e,n,r);if(i&&i.isDirectory())return Ya(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Ao?ev(t,e,s,r):Ya(t,e,s,r);if(s.code==="EISDIR")return Ya(t,e,s,r)}return r(s)})})}function ev(t,e,r,n){_e(t),_e(e),_e(typeof n=="function"),r&&_e(r instanceof Error),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?Ya(t,e,r,n):e.unlink(t,n)})})}function tv(t,e,r){let n;_e(t),_e(e),r&&_e(r instanceof Error);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Ka(t,e,r):e.unlinkSync(t)}function Ya(t,e,r,n){_e(t),_e(e),r&&_e(r instanceof Error),_e(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?ZL(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function ZL(t,e,r){_e(t),_e(e),_e(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{nh(rv.join(t,a),e,c=>{if(!o){if(c)return r(o=c);--s===0&&e.rmdir(t,r)}})})})}function iv(t,e){let r;e=e||{},nv(e),_e(t,"rimraf: missing path"),_e.strictEqual(typeof t,"string","rimraf: path should be a string"),_e(e,"rimraf: missing options"),_e.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Ao&&tv(t,e,n)}try{r&&r.isDirectory()?Ka(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Ao?tv(t,e,n):Ka(t,e,n);if(n.code!=="EISDIR")throw n;Ka(t,e,n)}}function Ka(t,e,r){_e(t),_e(e),r&&_e(r instanceof Error);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")JL(t,e);else if(n.code!=="ENOENT")throw n}}function JL(t,e){if(_e(t),_e(e),e.readdirSync(t).forEach(r=>iv(rv.join(t,r),e)),Ao){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}sv.exports=nh;nh.sync=iv});var Co=y((hz,cv)=>{"use strict";l();var XL=vt().fromCallback,av=ov();cv.exports={remove:XL(av),removeSync:av.sync}});var gv=y((dz,mv)=>{"use strict";l();var QL=vt().fromCallback,fv=je(),hv=require("path"),dv=Pt(),pv=Co(),uv=QL(function(e,r){r=r||function(){},fv.readdir(e,(n,i)=>{if(n)return dv.mkdirs(e,r);i=i.map(o=>hv.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();pv.remove(o,a=>{if(a)return r(a);s()})}})});function lv(t){let e;try{e=fv.readdirSync(t)}catch{return dv.mkdirsSync(t)}e.forEach(r=>{r=hv.join(t,r),pv.removeSync(r)})}mv.exports={emptyDirSync:lv,emptydirSync:lv,emptyDir:uv,emptydir:uv}});var bv=y((pz,vv)=>{"use strict";l();var e5=vt().fromCallback,yv=require("path"),Ro=je(),_v=Pt(),t5=gr().pathExists;function r5(t,e){function r(){Ro.writeFile(t,"",n=>{if(n)return e(n);e()})}Ro.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=yv.dirname(t);t5(s,(o,a)=>{if(o)return e(o);if(a)return r();_v.mkdirs(s,c=>{if(c)return e(c);r()})})})}function n5(t){let e;try{e=Ro.statSync(t)}catch{}if(e&&e.isFile())return;let r=yv.dirname(t);Ro.existsSync(r)||_v.mkdirsSync(r),Ro.writeFileSync(t,"")}vv.exports={createFile:e5(r5),createFileSync:n5}});var Av=y((mz,Sv)=>{"use strict";l();var i5=vt().fromCallback,wv=require("path"),Jn=je(),xv=Pt(),Ev=gr().pathExists;function s5(t,e,r){function n(i,s){Jn.link(i,s,o=>{if(o)return r(o);r(null)})}Ev(e,(i,s)=>{if(i)return r(i);if(s)return r(null);Jn.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=wv.dirname(e);Ev(a,(c,u)=>{if(c)return r(c);if(u)return n(t,e);xv.mkdirs(a,f=>{if(f)return r(f);n(t,e)})})})})}function o5(t,e){if(Jn.existsSync(e))return;try{Jn.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=wv.dirname(e);return Jn.existsSync(n)||xv.mkdirsSync(n),Jn.linkSync(t,e)}Sv.exports={createLink:i5(s5),createLinkSync:o5}});var Rv=y((gz,Cv)=>{"use strict";l();var pn=require("path"),Oo=je(),a5=gr().pathExists;function c5(t,e,r){if(pn.isAbsolute(t))return Oo.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=pn.dirname(e),i=pn.join(n,t);return a5(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):Oo.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:pn.relative(n,t)})))}}function u5(t,e){let r;if(pn.isAbsolute(t)){if(r=Oo.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=pn.dirname(e),i=pn.join(n,t);if(r=Oo.existsSync(i),r)return{toCwd:i,toDst:t};if(r=Oo.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:pn.relative(n,t)}}}Cv.exports={symlinkPaths:c5,symlinkPathsSync:u5}});var kv=y((yz,Tv)=>{"use strict";l();var Ov=je();function l5(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Ov.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function f5(t,e){let r;if(e)return e;try{r=Ov.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Tv.exports={symlinkType:l5,symlinkTypeSync:f5}});var Fv=y((_z,Mv)=>{"use strict";l();var h5=vt().fromCallback,Iv=require("path"),qi=je(),Lv=Pt(),d5=Lv.mkdirs,p5=Lv.mkdirsSync,Nv=Rv(),m5=Nv.symlinkPaths,g5=Nv.symlinkPathsSync,Dv=kv(),y5=Dv.symlinkType,_5=Dv.symlinkTypeSync,Pv=gr().pathExists;function v5(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Pv(e,(i,s)=>{if(i)return n(i);if(s)return n(null);m5(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,y5(a.toCwd,r,(c,u)=>{if(c)return n(c);let f=Iv.dirname(e);Pv(f,(h,d)=>{if(h)return n(h);if(d)return qi.symlink(t,e,u,n);d5(f,g=>{if(g)return n(g);qi.symlink(t,e,u,n)})})})})})}function b5(t,e,r){if(qi.existsSync(e))return;let i=g5(t,e);t=i.toDst,r=_5(i.toCwd,r);let s=Iv.dirname(e);return qi.existsSync(s)||p5(s),qi.symlinkSync(t,e,r)}Mv.exports={createSymlink:h5(v5),createSymlinkSync:b5}});var Bv=y((vz,qv)=>{"use strict";l();var Za=bv(),Ja=Av(),Xa=Fv();qv.exports={createFile:Za.createFile,createFileSync:Za.createFileSync,ensureFile:Za.createFile,ensureFileSync:Za.createFileSync,createLink:Ja.createLink,createLinkSync:Ja.createLinkSync,ensureLink:Ja.createLink,ensureLinkSync:Ja.createLinkSync,createSymlink:Xa.createSymlink,createSymlinkSync:Xa.createSymlinkSync,ensureSymlink:Xa.createSymlink,ensureSymlinkSync:Xa.createSymlinkSync}});var Uv=y((bz,$v)=>{l();var Bi;try{Bi=je()}catch{Bi=require("fs")}function E5(t,e,r){r==null&&(r=e,e={}),typeof e=="string"&&(e={encoding:e}),e=e||{};var n=e.fs||Bi,i=!0;"throws"in e&&(i=e.throws),n.readFile(t,e,function(s,o){if(s)return r(s);o=Hv(o);var a;try{a=JSON.parse(o,e?e.reviver:null)}catch(c){return i?(c.message=t+": "+c.message,r(c)):r(null,null)}r(null,a)})}function w5(t,e){e=e||{},typeof e=="string"&&(e={encoding:e});var r=e.fs||Bi,n=!0;"throws"in e&&(n=e.throws);try{var i=r.readFileSync(t,e);return i=Hv(i),JSON.parse(i,e.reviver)}catch(s){if(n)throw s.message=t+": "+s.message,s;return null}}function jv(t,e){var r,n=`
|
|
28
|
-
`;typeof e=="object"&&e!==null&&(e.spaces&&(r=e.spaces),e.EOL&&(n=e.EOL));var i=JSON.stringify(t,e?e.replacer:null,r);return i.replace(/\n/g,n)+n}function x5(t,e,r,n){n==null&&(n=r,r={}),r=r||{};var i=r.fs||Bi,s="";try{s=jv(e,r)}catch(o){n&&n(o,null);return}i.writeFile(t,s,r,n)}function S5(t,e,r){r=r||{};var n=r.fs||Bi,i=jv(e,r);return n.writeFileSync(t,i,r)}function Hv(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,""),t}var A5={readFile:E5,readFileSync:w5,writeFile:x5,writeFileSync:S5};$v.exports=A5});var ec=y((Ez,Vv)=>{"use strict";l();var Gv=vt().fromCallback,Qa=Uv();Vv.exports={readJson:Gv(Qa.readFile),readJsonSync:Qa.readFileSync,writeJson:Gv(Qa.writeFile),writeJsonSync:Qa.writeFileSync}});var Yv=y((wz,zv)=>{"use strict";l();var C5=require("path"),R5=Pt(),O5=gr().pathExists,Wv=ec();function T5(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=C5.dirname(t);O5(i,(s,o)=>{if(s)return n(s);if(o)return Wv.writeJson(t,e,r,n);R5.mkdirs(i,a=>{if(a)return n(a);Wv.writeJson(t,e,r,n)})})}zv.exports=T5});var Zv=y((xz,Kv)=>{"use strict";l();var k5=je(),P5=require("path"),I5=Pt(),L5=ec();function N5(t,e,r){let n=P5.dirname(t);k5.existsSync(n)||I5.mkdirsSync(n),L5.writeJsonSync(t,e,r)}Kv.exports=N5});var Xv=y((Sz,Jv)=>{"use strict";l();var D5=vt().fromCallback,mt=ec();mt.outputJson=D5(Yv());mt.outputJsonSync=Zv();mt.outputJSON=mt.outputJson;mt.outputJSONSync=mt.outputJsonSync;mt.writeJSON=mt.writeJson;mt.writeJSONSync=mt.writeJsonSync;mt.readJSON=mt.readJson;mt.readJSONSync=mt.readJsonSync;Jv.exports=mt});var ib=y((Az,nb)=>{"use strict";l();var tb=je(),M5=require("path"),F5=eh().copySync,rb=Co().removeSync,q5=Pt().mkdirpSync,Qv=bo();function B5(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Qv.checkPathsSync(t,e,"move");return Qv.checkParentPathsSync(t,i,e,"move"),q5(M5.dirname(e)),j5(t,e,n)}function j5(t,e,r){if(r)return rb(e),eb(t,e,r);if(tb.existsSync(e))throw new Error("dest already exists.");return eb(t,e,r)}function eb(t,e,r){try{tb.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return H5(t,e,r)}}function H5(t,e,r){return F5(t,e,{overwrite:r,errorOnExist:!0}),rb(t)}nb.exports=B5});var ob=y((Cz,sb)=>{"use strict";l();sb.exports={moveSync:ib()}});var fb=y((Rz,lb)=>{"use strict";l();var $5=je(),U5=require("path"),G5=rh().copy,ub=Co().remove,V5=Pt().mkdirp,W5=gr().pathExists,ab=bo();function z5(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;ab.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;ab.checkParentPaths(t,a,e,"move",c=>{if(c)return n(c);V5(U5.dirname(e),u=>u?n(u):Y5(t,e,i,n))})})}function Y5(t,e,r,n){if(r)return ub(e,i=>i?n(i):cb(t,e,r,n));W5(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):cb(t,e,r,n))}function cb(t,e,r,n){$5.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):K5(t,e,r,n):n())}function K5(t,e,r,n){G5(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):ub(t,n))}lb.exports=z5});var db=y((Oz,hb)=>{"use strict";l();var Z5=vt().fromCallback;hb.exports={move:Z5(fb())}});var yb=y((Tz,gb)=>{"use strict";l();var J5=vt().fromCallback,To=je(),pb=require("path"),mb=Pt(),X5=gr().pathExists;function Q5(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=pb.dirname(t);X5(i,(s,o)=>{if(s)return n(s);if(o)return To.writeFile(t,e,r,n);mb.mkdirs(i,a=>{if(a)return n(a);To.writeFile(t,e,r,n)})})}function eN(t,...e){let r=pb.dirname(t);if(To.existsSync(r))return To.writeFileSync(t,...e);mb.mkdirsSync(r),To.writeFileSync(t,...e)}gb.exports={outputFile:J5(Q5),outputFileSync:eN}});var vb=y((kz,ih)=>{"use strict";l();ih.exports=Object.assign({},Hf(),eh(),rh(),gv(),Bv(),Xv(),Pt(),ob(),db(),yb(),gr(),Co());var _b=require("fs");Object.getOwnPropertyDescriptor(_b,"promises")&&Object.defineProperty(ih.exports,"promises",{get(){return _b.promises}})});var cE=y(Gi=>{"use strict";l();Object.defineProperty(Gi,"__esModule",{value:!0});Gi.splitWhen=Gi.flatten=void 0;function TM(t){return t.reduce((e,r)=>[].concat(e,r),[])}Gi.flatten=TM;function kM(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Gi.splitWhen=kM});var uE=y(lc=>{"use strict";l();Object.defineProperty(lc,"__esModule",{value:!0});lc.isEnoentCodeError=void 0;function PM(t){return t.code==="ENOENT"}lc.isEnoentCodeError=PM});var lE=y(fc=>{"use strict";l();Object.defineProperty(fc,"__esModule",{value:!0});fc.createDirentFromStats=void 0;var wh=class{constructor(e,r){this.name=e,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 IM(t,e){return new wh(t,e)}fc.createDirentFromStats=IM});var fE=y(_r=>{"use strict";l();Object.defineProperty(_r,"__esModule",{value:!0});_r.removeLeadingDotSegment=_r.escape=_r.makeAbsolute=_r.unixify=void 0;var LM=require("path"),NM=2,DM=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function MM(t){return t.replace(/\\/g,"/")}_r.unixify=MM;function FM(t,e){return LM.resolve(t,e)}_r.makeAbsolute=FM;function qM(t){return t.replace(DM,"\\$2")}_r.escape=qM;function BM(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(NM)}return t}_r.removeLeadingDotSegment=BM});var dE=y((eY,hE)=>{l();hE.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var gE=y((tY,mE)=>{l();var jM=dE(),pE={"{":"}","(":")","[":"]"},HM=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var c=pE[a];if(c){var u=t.indexOf(c,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},$M=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=pE[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};mE.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(jM(e))return!0;var n=HM;return r&&r.strict===!1&&(n=$M),n(e)}});var _E=y((rY,yE)=>{"use strict";l();var UM=gE(),GM=require("path").posix.dirname,VM=require("os").platform()==="win32",xh="/",WM=/\\/g,zM=/[\{\[].*[\}\]]$/,YM=/(^|[^\\])([\{\[]|\([^\)]+$)/,KM=/\\([\!\*\?\|\[\]\(\)\{\}])/g;yE.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&VM&&e.indexOf(xh)<0&&(e=e.replace(WM,xh)),zM.test(e)&&(e+=xh),e+="a";do e=GM(e);while(UM(e)||YM.test(e));return e.replace(KM,"$1")}});var hc=y(Wt=>{"use strict";l();Wt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Wt.find=(t,e)=>t.nodes.find(r=>r.type===e);Wt.exceedsLimit=(t,e,r=1,n)=>n===!1||!Wt.isInteger(t)||!Wt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;Wt.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Wt.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;Wt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Wt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Wt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Wt.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var dc=y((iY,bE)=>{"use strict";l();var vE=hc();bE.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&vE.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&vE.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(t)}});var wE=y((sY,EE)=>{"use strict";l();EE.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var PE=y((oY,kE)=>{"use strict";l();var xE=wE(),ei=(t,e,r)=>{if(xE(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(xE(e)===!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),c=t+":"+e+"="+i+s+o+a;if(ei.cache.hasOwnProperty(c))return ei.cache[c].result;let u=Math.min(t,e),f=Math.max(t,e);if(Math.abs(u-f)===1){let E=t+"|"+e;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let h=TE(t)||TE(e),d={min:t,max:e,a:u,b:f},g=[],m=[];if(h&&(d.isPadded=h,d.maxLen=String(d.max).length),u<0){let E=f<0?Math.abs(f):1;m=SE(E,Math.abs(u),d,n),u=d.a=0}return f>=0&&(g=SE(u,f,d,n)),d.negatives=m,d.positives=g,d.result=ZM(m,g,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&g.length+m.length>1&&(d.result=`(?:${d.result})`),ei.cache[c]=d,d.result};function ZM(t,e,r){let n=Sh(t,e,"-",!1,r)||[],i=Sh(e,t,"",!1,r)||[],s=Sh(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function JM(t,e){let r=1,n=1,i=CE(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=CE(t,r);for(i=RE(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=RE(e+1,n)-1;return s=[...s],s.sort(eF),s}function XM(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=QM(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[c,u]=n[a];c===u?s+=c:c!=="0"||u!=="9"?s+=tF(c,u,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function SE(t,e,r,n){let i=JM(t,e),s=[],o=t,a;for(let c=0;c<i.length;c++){let u=i[c],f=XM(String(o),String(u),n),h="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+OE(a.count),o=u+1;continue}r.isPadded&&(h=rF(u,r,n)),f.string=h+f.pattern+OE(f.count),s.push(f),o=u+1,a=f}return s}function Sh(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!AE(e,"string",a)&&s.push(r+a),n&&AE(e,"string",a)&&s.push(r+a)}return s}function QM(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function eF(t,e){return t>e?1:e>t?-1:0}function AE(t,e,r){return t.some(n=>n[e]===r)}function CE(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function RE(t,e){return t-t%Math.pow(10,e)}function OE(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function tF(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function TE(t){return/^-?(0+)\d/.test(t)}function rF(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).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}}`}}ei.cache={};ei.clearCache=()=>ei.cache={};kE.exports=ei});var Rh=y((aY,BE)=>{"use strict";l();var nF=require("util"),NE=PE(),IE=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),iF=t=>e=>t===!0?Number(e):String(e),Ah=t=>typeof t=="number"||typeof t=="string"&&t!=="",Mo=t=>Number.isInteger(+t),Ch=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},sF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,oF=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},LE=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},aF=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},DE=(t,e,r,n)=>{if(r)return NE(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},ME=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return NE(t,e,r)},FE=(...t)=>new RangeError("Invalid range arguments: "+nF.inspect(...t)),qE=(t,e,r)=>{if(r.strictRanges===!0)throw FE([t,e]);return[]},cF=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},uF=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw FE([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),c=String(e),u=String(r);r=Math.max(Math.abs(r),1);let f=Ch(a)||Ch(c)||Ch(u),h=f?Math.max(a.length,c.length,u.length):0,d=f===!1&&sF(t,e,n)===!1,g=n.transform||iF(d);if(n.toRegex&&r===1)return DE(LE(t,h),LE(e,h),!0,n);let m={negatives:[],positives:[]},E=P=>m[P<0?"negatives":"positives"].push(Math.abs(P)),v=[],A=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?E(i):v.push(oF(g(i,A),h,d)),i=o?i-r:i+r,A++;return n.toRegex===!0?r>1?aF(m,n):ME(v,null,{wrap:!1,...n}):v},lF=(t,e,r=1,n={})=>{if(!Mo(t)&&t.length>1||!Mo(e)&&e.length>1)return qE(t,e,n);let i=n.transform||(d=>String.fromCharCode(d)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,c=Math.min(s,o),u=Math.max(s,o);if(n.toRegex&&r===1)return DE(c,u,!1,n);let f=[],h=0;for(;a?s>=o:s<=o;)f.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?ME(f,null,{wrap:!1,options:n}):f},pc=(t,e,r,n={})=>{if(e==null&&Ah(t))return[t];if(!Ah(t)||!Ah(e))return qE(t,e,n);if(typeof r=="function")return pc(t,e,1,{transform:r});if(IE(r))return pc(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Mo(r)?Mo(t)&&Mo(e)?uF(t,e,r,i):lF(t,e,Math.max(Math.abs(r),1),i):r!=null&&!IE(r)?cF(r,i):pc(t,e,1,r)};BE.exports=pc});var $E=y((cY,HE)=>{"use strict";l();var fF=Rh(),jE=hc(),hF=(t,e={})=>{let r=(n,i={})=>{let s=jE.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0||n.isClose===!0)return c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+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 f=jE.reduce(n.nodes),h=fF(...f,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let f of n.nodes)u+=r(f,n);return u};return r(t)};HE.exports=hF});var VE=y((uY,GE)=>{"use strict";l();var dF=Rh(),UE=dc(),Vi=hc(),ti=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Vi.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(ti(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?ti(i,s,r):i+s);return Vi.flatten(n)},pF=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.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(ti(a.pop(),UE(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(ti(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Vi.reduce(i.nodes);if(Vi.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=dF(...h,e);d.length===0&&(d=UE(i,e)),a.push(ti(a.pop(),d)),i.nodes=[];return}let c=Vi.encloseBrace(i),u=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let h=0;h<i.nodes.length;h++){let d=i.nodes[h];if(d.type==="comma"&&i.type==="brace"){h===1&&u.push(""),u.push("");continue}if(d.type==="close"){a.push(ti(a.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(ti(u.pop(),d.value));continue}d.nodes&&n(d,i)}return u};return Vi.flatten(n(t))};GE.exports=pF});var zE=y((lY,WE)=>{"use strict";l();WE.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:`
|
|
29
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",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 XE=y((fY,JE)=>{"use strict";l();var mF=dc(),{MAX_LENGTH:YE,CHAR_BACKSLASH:Oh,CHAR_BACKTICK:gF,CHAR_COMMA:yF,CHAR_DOT:_F,CHAR_LEFT_PARENTHESES:vF,CHAR_RIGHT_PARENTHESES:bF,CHAR_LEFT_CURLY_BRACE:EF,CHAR_RIGHT_CURLY_BRACE:wF,CHAR_LEFT_SQUARE_BRACKET:KE,CHAR_RIGHT_SQUARE_BRACKET:ZE,CHAR_DOUBLE_QUOTE:xF,CHAR_SINGLE_QUOTE:SF,CHAR_NO_BREAK_SPACE:AF,CHAR_ZERO_WIDTH_NOBREAK_SPACE:CF}=zE(),RF=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(YE,r.maxLength):YE;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,c=0,u=t.length,f=0,h=0,d,g={},m=()=>t[f++],E=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(E({type:"bos"});f<u;)if(o=s[s.length-1],d=m(),!(d===CF||d===AF)){if(d===Oh){E({type:"text",value:(e.keepEscaping?d:"")+m()});continue}if(d===ZE){E({type:"text",value:"\\"+d});continue}if(d===KE){c++;let v=!0,A;for(;f<u&&(A=m());){if(d+=A,A===KE){c++;continue}if(A===Oh){d+=m();continue}if(A===ZE&&(c--,c===0))break}E({type:"text",value:d});continue}if(d===vF){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:d});continue}if(d===bF){if(o.type!=="paren"){E({type:"text",value:d});continue}o=s.pop(),E({type:"text",value:d}),o=s[s.length-1];continue}if(d===xF||d===SF||d===gF){let v=d,A;for(e.keepQuotes!==!0&&(d="");f<u&&(A=m());){if(A===Oh){d+=A+m();continue}if(A===v){e.keepQuotes===!0&&(d+=A);break}d+=A}E({type:"text",value:d});continue}if(d===EF){h++;let v=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=E({type:"brace",open:!0,close:!1,dollar:v,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),E({type:"open",value:d});continue}if(d===wF){if(o.type!=="brace"){E({type:"text",value:d});continue}let v="close";o=s.pop(),o.close=!0,E({type:v,value:d}),h--,o=s[s.length-1];continue}if(d===yF&&h>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:mF(o)}]}E({type:"comma",value:d}),o.commas++;continue}if(d===_F&&h>0&&o.commas===0){let v=o.nodes;if(h===0||v.length===0){E({type:"text",value:d});continue}if(a.type==="dot"){if(o.range=[],a.value+=d,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"){v.pop();let A=v[v.length-1];A.value+=a.value+d,a=A,o.ranges--;continue}E({type:"dot",value:d});continue}E({type:"text",value:d})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let v=s[s.length-1],A=v.nodes.indexOf(o);v.nodes.splice(A,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};JE.exports=RF});var tw=y((hY,ew)=>{"use strict";l();var QE=dc(),OF=$E(),TF=VE(),kF=XE(),It=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=It.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(It.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};It.parse=(t,e={})=>kF(t,e);It.stringify=(t,e={})=>QE(typeof t=="string"?It.parse(t,e):t,e);It.compile=(t,e={})=>(typeof t=="string"&&(t=It.parse(t,e)),OF(t,e));It.expand=(t,e={})=>{typeof t=="string"&&(t=It.parse(t,e));let r=TF(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};It.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?It.compile(t,e):It.expand(t,e);ew.exports=It});var Fo=y((dY,ow)=>{"use strict";l();var PF=require("path"),vr="\\\\/",rw=`[^${vr}]`,$r="\\.",IF="\\+",LF="\\?",mc="\\/",NF="(?=.)",nw="[^/]",Th=`(?:${mc}|$)`,iw=`(?:^|${mc})`,kh=`${$r}{1,2}${Th}`,DF=`(?!${$r})`,MF=`(?!${iw}${kh})`,FF=`(?!${$r}{0,1}${Th})`,qF=`(?!${kh})`,BF=`[^.${mc}]`,jF=`${nw}*?`,sw={DOT_LITERAL:$r,PLUS_LITERAL:IF,QMARK_LITERAL:LF,SLASH_LITERAL:mc,ONE_CHAR:NF,QMARK:nw,END_ANCHOR:Th,DOTS_SLASH:kh,NO_DOT:DF,NO_DOTS:MF,NO_DOT_SLASH:FF,NO_DOTS_SLASH:qF,QMARK_NO_DOT:BF,STAR:jF,START_ANCHOR:iw},HF={...sw,SLASH_LITERAL:`[${vr}]`,QMARK:rw,STAR:`${rw}*?`,DOTS_SLASH:`${$r}{1,2}(?:[${vr}]|$)`,NO_DOT:`(?!${$r})`,NO_DOTS:`(?!(?:^|[${vr}])${$r}{1,2}(?:[${vr}]|$))`,NO_DOT_SLASH:`(?!${$r}{0,1}(?:[${vr}]|$))`,NO_DOTS_SLASH:`(?!${$r}{1,2}(?:[${vr}]|$))`,QMARK_NO_DOT:`[^.${vr}]`,START_ANCHOR:`(?:^|[${vr}])`,END_ANCHOR:`(?:[${vr}]|$)`},$F={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"};ow.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$F,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:PF.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?HF:sw}}});var qo=y(xt=>{"use strict";l();var UF=require("path"),GF=process.platform==="win32",{REGEX_BACKSLASH:VF,REGEX_REMOVE_BACKSLASH:WF,REGEX_SPECIAL_CHARS:zF,REGEX_SPECIAL_CHARS_GLOBAL:YF}=Fo();xt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);xt.hasRegexChars=t=>zF.test(t);xt.isRegexChar=t=>t.length===1&&xt.hasRegexChars(t);xt.escapeRegex=t=>t.replace(YF,"\\$1");xt.toPosixSlashes=t=>t.replace(VF,"/");xt.removeBackslashes=t=>t.replace(WF,e=>e==="\\"?"":e);xt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};xt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:GF===!0||UF.sep==="\\";xt.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?xt.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};xt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};xt.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var pw=y((mY,dw)=>{"use strict";l();var aw=qo(),{CHAR_ASTERISK:Ph,CHAR_AT:KF,CHAR_BACKWARD_SLASH:Bo,CHAR_COMMA:ZF,CHAR_DOT:Ih,CHAR_EXCLAMATION_MARK:Lh,CHAR_FORWARD_SLASH:hw,CHAR_LEFT_CURLY_BRACE:Nh,CHAR_LEFT_PARENTHESES:Dh,CHAR_LEFT_SQUARE_BRACKET:JF,CHAR_PLUS:XF,CHAR_QUESTION_MARK:cw,CHAR_RIGHT_CURLY_BRACE:QF,CHAR_RIGHT_PARENTHESES:uw,CHAR_RIGHT_SQUARE_BRACKET:eq}=Fo(),lw=t=>t===hw||t===Bo,fw=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},tq=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=t,u=-1,f=0,h=0,d=!1,g=!1,m=!1,E=!1,v=!1,A=!1,P=!1,D=!1,ie=!1,z=!1,ue=0,K,Z,F={value:"",depth:0,isGlob:!1},Q=()=>u>=n,R=()=>c.charCodeAt(u+1),ne=()=>(K=Z,c.charCodeAt(++u));for(;u<n;){Z=ne();let T;if(Z===Bo){P=F.backslashes=!0,Z=ne(),Z===Nh&&(A=!0);continue}if(A===!0||Z===Nh){for(ue++;Q()!==!0&&(Z=ne());){if(Z===Bo){P=F.backslashes=!0,ne();continue}if(Z===Nh){ue++;continue}if(A!==!0&&Z===Ih&&(Z=ne())===Ih){if(d=F.isBrace=!0,m=F.isGlob=!0,z=!0,i===!0)continue;break}if(A!==!0&&Z===ZF){if(d=F.isBrace=!0,m=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===QF&&(ue--,ue===0)){A=!1,d=F.isBrace=!0,z=!0;break}}if(i===!0)continue;break}if(Z===hw){if(s.push(u),o.push(F),F={value:"",depth:0,isGlob:!1},z===!0)continue;if(K===Ih&&u===f+1){f+=2;continue}h=u+1;continue}if(r.noext!==!0&&(Z===XF||Z===KF||Z===Ph||Z===cw||Z===Lh)===!0&&R()===Dh){if(m=F.isGlob=!0,E=F.isExtglob=!0,z=!0,Z===Lh&&u===f&&(ie=!0),i===!0){for(;Q()!==!0&&(Z=ne());){if(Z===Bo){P=F.backslashes=!0,Z=ne();continue}if(Z===uw){m=F.isGlob=!0,z=!0;break}}continue}break}if(Z===Ph){if(K===Ph&&(v=F.isGlobstar=!0),m=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===cw){if(m=F.isGlob=!0,z=!0,i===!0)continue;break}if(Z===JF){for(;Q()!==!0&&(T=ne());){if(T===Bo){P=F.backslashes=!0,ne();continue}if(T===eq){g=F.isBracket=!0,m=F.isGlob=!0,z=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&Z===Lh&&u===f){D=F.negated=!0,f++;continue}if(r.noparen!==!0&&Z===Dh){if(m=F.isGlob=!0,i===!0){for(;Q()!==!0&&(Z=ne());){if(Z===Dh){P=F.backslashes=!0,Z=ne();continue}if(Z===uw){z=!0;break}}continue}break}if(m===!0){if(z=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,m=!1);let ee=c,fe="",C="";f>0&&(fe=c.slice(0,f),c=c.slice(f),h-=f),ee&&m===!0&&h>0?(ee=c.slice(0,h),C=c.slice(h)):m===!0?(ee="",C=c):ee=c,ee&&ee!==""&&ee!=="/"&&ee!==c&&lw(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),r.unescape===!0&&(C&&(C=aw.removeBackslashes(C)),ee&&P===!0&&(ee=aw.removeBackslashes(ee)));let x={prefix:fe,input:t,start:f,base:ee,glob:C,isBrace:d,isBracket:g,isGlob:m,isExtglob:E,isGlobstar:v,negated:D,negatedExtglob:ie};if(r.tokens===!0&&(x.maxDepth=0,lw(Z)||o.push(F),x.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let k=0;k<s.length;k++){let I=T?T+1:f,Y=s[k],j=t.slice(I,Y);r.tokens&&(k===0&&f!==0?(o[k].isPrefix=!0,o[k].value=fe):o[k].value=j,fw(o[k]),x.maxDepth+=o[k].depth),(k!==0||j!=="")&&a.push(j),T=Y}if(T&&T+1<t.length){let k=t.slice(T+1);a.push(k),r.tokens&&(o[o.length-1].value=k,fw(o[o.length-1]),x.maxDepth+=o[o.length-1].depth)}x.slashes=s,x.parts=a}return x};dw.exports=tq});var yw=y((gY,gw)=>{"use strict";l();var gc=Fo(),Lt=qo(),{MAX_LENGTH:yc,POSIX_REGEX_SOURCE:rq,REGEX_NON_SPECIAL_CHARS:nq,REGEX_SPECIAL_CHARS_BACKREF:iq,REPLACEMENTS:mw}=gc,sq=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>Lt.escapeRegex(i)).join("..")}return r},Wi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Mh=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=mw[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(yc,r.maxLength):yc,i=t.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?"":"?:",c=Lt.isWindows(e),u=gc.globChars(c),f=gc.extglobChars(u),{DOT_LITERAL:h,PLUS_LITERAL:d,SLASH_LITERAL:g,ONE_CHAR:m,DOTS_SLASH:E,NO_DOT:v,NO_DOT_SLASH:A,NO_DOTS_SLASH:P,QMARK:D,QMARK_NO_DOT:ie,STAR:z,START_ANCHOR:ue}=u,K=B=>`(${a}(?:(?!${ue}${B.dot?E:h}).)*?)`,Z=r.dot?"":v,F=r.dot?D:ie,Q=r.bash===!0?K(r):z;r.capture&&(Q=`(${Q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let R={input:t,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};t=Lt.removePrefix(t,R),i=t.length;let ne=[],ee=[],fe=[],C=s,x,T=()=>R.index===i-1,k=R.peek=(B=1)=>t[R.index+B],I=R.advance=()=>t[++R.index]||"",Y=()=>t.slice(R.index+1),j=(B="",Ee=0)=>{R.consumed+=B,R.index+=Ee},ve=B=>{R.output+=B.output!=null?B.output:B.value,j(B.value)},Ue=()=>{let B=1;for(;k()==="!"&&(k(2)!=="("||k(3)==="?");)I(),R.start++,B++;return B%2===0?!1:(R.negated=!0,R.start++,!0)},ge=B=>{R[B]++,fe.push(B)},De=B=>{R[B]--,fe.pop()},re=B=>{if(C.type==="globstar"){let Ee=R.braces>0&&(B.type==="comma"||B.type==="brace"),q=B.extglob===!0||ne.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!Ee&&!q&&(R.output=R.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=Q,R.output+=C.output)}if(ne.length&&B.type!=="paren"&&(ne[ne.length-1].inner+=B.value),(B.value||B.output)&&ve(B),C&&C.type==="text"&&B.type==="text"){C.value+=B.value,C.output=(C.output||"")+B.value;return}B.prev=C,o.push(B),C=B},pt=(B,Ee)=>{let q={...f[Ee],conditions:1,inner:""};q.prev=C,q.parens=R.parens,q.output=R.output;let _=(r.capture?"(":"")+q.open;ge("parens"),re({type:B,value:Ee,output:R.output?"":m}),re({type:"paren",extglob:!0,value:I(),output:_}),ne.push(q)},kt=B=>{let Ee=B.close+(r.capture?")":""),q;if(B.type==="negate"){let _=Q;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(_=K(r)),(_!==Q||T()||/^\)+$/.test(Y()))&&(Ee=B.close=`)$))${_}`),B.inner.includes("*")&&(q=Y())&&/^\.[^\\/.]+$/.test(q)){let S=Mh(q,{...e,fastpaths:!1}).output;Ee=B.close=`)${S})${_})`}B.prev.type==="bos"&&(R.negatedExtglob=!0)}re({type:"paren",extglob:!0,value:x,output:Ee}),De("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let B=!1,Ee=t.replace(iq,(q,_,S,b,L,$)=>b==="\\"?(B=!0,q):b==="?"?_?_+b+(L?D.repeat(L.length):""):$===0?F+(L?D.repeat(L.length):""):D.repeat(S.length):b==="."?h.repeat(S.length):b==="*"?_?_+b+(L?Q:""):Q:_?q:`\\${q}`);return B===!0&&(r.unescape===!0?Ee=Ee.replace(/\\/g,""):Ee=Ee.replace(/\\+/g,q=>q.length%2===0?"\\\\":q?"\\":"")),Ee===t&&r.contains===!0?(R.output=t,R):(R.output=Lt.wrapOutput(Ee,R,e),R)}for(;!T();){if(x=I(),x==="\0")continue;if(x==="\\"){let q=k();if(q==="/"&&r.bash!==!0||q==="."||q===";")continue;if(!q){x+="\\",re({type:"text",value:x});continue}let _=/^\\+/.exec(Y()),S=0;if(_&&_[0].length>2&&(S=_[0].length,R.index+=S,S%2!==0&&(x+="\\")),r.unescape===!0?x=I():x+=I(),R.brackets===0){re({type:"text",value:x});continue}}if(R.brackets>0&&(x!=="]"||C.value==="["||C.value==="[^")){if(r.posix!==!1&&x===":"){let q=C.value.slice(1);if(q.includes("[")&&(C.posix=!0,q.includes(":"))){let _=C.value.lastIndexOf("["),S=C.value.slice(0,_),b=C.value.slice(_+2),L=rq[b];if(L){C.value=S+L,R.backtrack=!0,I(),!s.output&&o.indexOf(C)===1&&(s.output=m);continue}}}(x==="["&&k()!==":"||x==="-"&&k()==="]")&&(x=`\\${x}`),x==="]"&&(C.value==="["||C.value==="[^")&&(x=`\\${x}`),r.posix===!0&&x==="!"&&C.value==="["&&(x="^"),C.value+=x,ve({value:x});continue}if(R.quotes===1&&x!=='"'){x=Lt.escapeRegex(x),C.value+=x,ve({value:x});continue}if(x==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&re({type:"text",value:x});continue}if(x==="("){ge("parens"),re({type:"paren",value:x});continue}if(x===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Wi("opening","("));let q=ne[ne.length-1];if(q&&R.parens===q.parens+1){kt(ne.pop());continue}re({type:"paren",value:x,output:R.parens?")":"\\)"}),De("parens");continue}if(x==="["){if(r.nobracket===!0||!Y().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));x=`\\${x}`}else ge("brackets");re({type:"bracket",value:x});continue}if(x==="]"){if(r.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){re({type:"text",value:x,output:`\\${x}`});continue}if(R.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wi("opening","["));re({type:"text",value:x,output:`\\${x}`});continue}De("brackets");let q=C.value.slice(1);if(C.posix!==!0&&q[0]==="^"&&!q.includes("/")&&(x=`/${x}`),C.value+=x,ve({value:x}),r.literalBrackets===!1||Lt.hasRegexChars(q))continue;let _=Lt.escapeRegex(C.value);if(R.output=R.output.slice(0,-C.value.length),r.literalBrackets===!0){R.output+=_,C.value=_;continue}C.value=`(${a}${_}|${C.value})`,R.output+=C.value;continue}if(x==="{"&&r.nobrace!==!0){ge("braces");let q={type:"brace",value:x,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};ee.push(q),re(q);continue}if(x==="}"){let q=ee[ee.length-1];if(r.nobrace===!0||!q){re({type:"text",value:x,output:x});continue}let _=")";if(q.dots===!0){let S=o.slice(),b=[];for(let L=S.length-1;L>=0&&(o.pop(),S[L].type!=="brace");L--)S[L].type!=="dots"&&b.unshift(S[L].value);_=sq(b,r),R.backtrack=!0}if(q.comma!==!0&&q.dots!==!0){let S=R.output.slice(0,q.outputIndex),b=R.tokens.slice(q.tokensIndex);q.value=q.output="\\{",x=_="\\}",R.output=S;for(let L of b)R.output+=L.output||L.value}re({type:"brace",value:x,output:_}),De("braces"),ee.pop();continue}if(x==="|"){ne.length>0&&ne[ne.length-1].conditions++,re({type:"text",value:x});continue}if(x===","){let q=x,_=ee[ee.length-1];_&&fe[fe.length-1]==="braces"&&(_.comma=!0,q="|"),re({type:"comma",value:x,output:q});continue}if(x==="/"){if(C.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",o.pop(),C=s;continue}re({type:"slash",value:x,output:g});continue}if(x==="."){if(R.braces>0&&C.type==="dot"){C.value==="."&&(C.output=h);let q=ee[ee.length-1];C.type="dots",C.output+=x,C.value+=x,q.dots=!0;continue}if(R.braces+R.parens===0&&C.type!=="bos"&&C.type!=="slash"){re({type:"text",value:x,output:h});continue}re({type:"dot",value:x,output:h});continue}if(x==="?"){if(!(C&&C.value==="(")&&r.noextglob!==!0&&k()==="("&&k(2)!=="?"){pt("qmark",x);continue}if(C&&C.type==="paren"){let _=k(),S=x;if(_==="<"&&!Lt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(C.value==="("&&!/[!=<:]/.test(_)||_==="<"&&!/<([!=]|\w+>)/.test(Y()))&&(S=`\\${x}`),re({type:"text",value:x,output:S});continue}if(r.dot!==!0&&(C.type==="slash"||C.type==="bos")){re({type:"qmark",value:x,output:ie});continue}re({type:"qmark",value:x,output:D});continue}if(x==="!"){if(r.noextglob!==!0&&k()==="("&&(k(2)!=="?"||!/[!=<:]/.test(k(3)))){pt("negate",x);continue}if(r.nonegate!==!0&&R.index===0){Ue();continue}}if(x==="+"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){pt("plus",x);continue}if(C&&C.value==="("||r.regex===!1){re({type:"plus",value:x,output:d});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||R.parens>0){re({type:"plus",value:x});continue}re({type:"plus",value:d});continue}if(x==="@"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){re({type:"at",extglob:!0,value:x,output:""});continue}re({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let q=nq.exec(Y());q&&(x+=q[0],R.index+=q[0].length),re({type:"text",value:x});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=x,C.output=Q,R.backtrack=!0,R.globstar=!0,j(x);continue}let B=Y();if(r.noextglob!==!0&&/^\([^?]/.test(B)){pt("star",x);continue}if(C.type==="star"){if(r.noglobstar===!0){j(x);continue}let q=C.prev,_=q.prev,S=q.type==="slash"||q.type==="bos",b=_&&(_.type==="star"||_.type==="globstar");if(r.bash===!0&&(!S||B[0]&&B[0]!=="/")){re({type:"star",value:x,output:""});continue}let L=R.braces>0&&(q.type==="comma"||q.type==="brace"),$=ne.length&&(q.type==="pipe"||q.type==="paren");if(!S&&q.type!=="paren"&&!L&&!$){re({type:"star",value:x,output:""});continue}for(;B.slice(0,3)==="/**";){let H=t[R.index+4];if(H&&H!=="/")break;B=B.slice(3),j("/**",3)}if(q.type==="bos"&&T()){C.type="globstar",C.value+=x,C.output=K(r),R.output=C.output,R.globstar=!0,j(x);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&!b&&T()){R.output=R.output.slice(0,-(q.output+C.output).length),q.output=`(?:${q.output}`,C.type="globstar",C.output=K(r)+(r.strictSlashes?")":"|$)"),C.value+=x,R.globstar=!0,R.output+=q.output+C.output,j(x);continue}if(q.type==="slash"&&q.prev.type!=="bos"&&B[0]==="/"){let H=B[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(q.output+C.output).length),q.output=`(?:${q.output}`,C.type="globstar",C.output=`${K(r)}${g}|${g}${H})`,C.value+=x,R.output+=q.output+C.output,R.globstar=!0,j(x+I()),re({type:"slash",value:"/",output:""});continue}if(q.type==="bos"&&B[0]==="/"){C.type="globstar",C.value+=x,C.output=`(?:^|${g}|${K(r)}${g})`,R.output=C.output,R.globstar=!0,j(x+I()),re({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-C.output.length),C.type="globstar",C.output=K(r),C.value+=x,R.output+=C.output,R.globstar=!0,j(x);continue}let Ee={type:"star",value:x,output:Q};if(r.bash===!0){Ee.output=".*?",(C.type==="bos"||C.type==="slash")&&(Ee.output=Z+Ee.output),re(Ee);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&r.regex===!0){Ee.output=x,re(Ee);continue}(R.index===R.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(R.output+=A,C.output+=A):r.dot===!0?(R.output+=P,C.output+=P):(R.output+=Z,C.output+=Z),k()!=="*"&&(R.output+=m,C.output+=m)),re(Ee)}for(;R.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));R.output=Lt.escapeLast(R.output,"["),De("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing",")"));R.output=Lt.escapeLast(R.output,"("),De("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","}"));R.output=Lt.escapeLast(R.output,"{"),De("braces")}if(r.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&re({type:"maybe_slash",value:"",output:`${g}?`}),R.backtrack===!0){R.output="";for(let B of R.tokens)R.output+=B.output!=null?B.output:B.value,B.suffix&&(R.output+=B.suffix)}return R};Mh.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(yc,r.maxLength):yc,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=mw[t]||t;let s=Lt.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:h,NO_DOTS_SLASH:d,STAR:g,START_ANCHOR:m}=gc.globChars(s),E=r.dot?h:f,v=r.dot?d:f,A=r.capture?"":"?:",P={negated:!1,prefix:""},D=r.bash===!0?".*?":g;r.capture&&(D=`(${D})`);let ie=Z=>Z.noglobstar===!0?D:`(${A}(?:(?!${m}${Z.dot?u:o}).)*?)`,z=Z=>{switch(Z){case"*":return`${E}${c}${D}`;case".*":return`${o}${c}${D}`;case"*.*":return`${E}${D}${o}${c}${D}`;case"*/*":return`${E}${D}${a}${c}${v}${D}`;case"**":return E+ie(r);case"**/*":return`(?:${E}${ie(r)}${a})?${v}${c}${D}`;case"**/*.*":return`(?:${E}${ie(r)}${a})?${v}${D}${o}${c}${D}`;case"**/.*":return`(?:${E}${ie(r)}${a})?${o}${c}${D}`;default:{let F=/^(.*?)\.(\w+)$/.exec(Z);if(!F)return;let Q=z(F[1]);return Q?Q+o+F[2]:void 0}}},ue=Lt.removePrefix(t,P),K=z(ue);return K&&r.strictSlashes!==!0&&(K+=`${a}?`),K};gw.exports=Mh});var vw=y((yY,_w)=>{"use strict";l();var oq=require("path"),aq=pw(),Fh=yw(),qh=qo(),cq=Fo(),uq=t=>t&&typeof t=="object"&&!Array.isArray(t),Fe=(t,e,r=!1)=>{if(Array.isArray(t)){let f=t.map(d=>Fe(d,e,r));return d=>{for(let g of f){let m=g(d);if(m)return m}return!1}}let n=uq(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=qh.isWindows(e),o=n?Fe.compileRe(t,e):Fe.makeRe(t,e,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(i.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};c=Fe(i.ignore,f,r)}let u=(f,h=!1)=>{let{isMatch:d,match:g,output:m}=Fe.test(f,o,e,{glob:t,posix:s}),E={glob:t,state:a,regex:o,posix:s,input:f,output:m,match:g,isMatch:d};return typeof i.onResult=="function"&&i.onResult(E),d===!1?(E.isMatch=!1,h?E:!1):c(f)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,h?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),h?E:!0)};return r&&(u.state=a),u};Fe.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?qh.toPosixSlashes:null),a=t===n,c=a&&o?o(t):t;return a===!1&&(c=o?o(t):t,a=c===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Fe.matchBase(t,e,r,i):a=e.exec(c)),{isMatch:Boolean(a),match:a,output:c}};Fe.matchBase=(t,e,r,n=qh.isWindows(r))=>(e instanceof RegExp?e:Fe.makeRe(e,r)).test(oq.basename(t));Fe.isMatch=(t,e,r)=>Fe(e,r)(t);Fe.parse=(t,e)=>Array.isArray(t)?t.map(r=>Fe.parse(r,e)):Fh(t,{...e,fastpaths:!1});Fe.scan=(t,e)=>aq(t,e);Fe.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let c=Fe.toRegex(a,e);return n===!0&&(c.state=t),c};Fe.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=Fh.fastpaths(t,e)),i.output||(i=Fh(t,e)),Fe.compileRe(i,e,r,n)};Fe.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Fe.constants=cq;_w.exports=Fe});var Ew=y((_Y,bw)=>{"use strict";l();bw.exports=vw()});var Cw=y((vY,Aw)=>{"use strict";l();var xw=require("util"),Sw=tw(),br=Ew(),Bh=qo(),ww=t=>t===""||t==="./",Pe=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<e.length;f++){let h=br(String(e[f]),{...r,onResult:a},!0),d=h.state.negated||h.state.negatedExtglob;d&&o++;for(let g of t){let m=h(g,!0);!(d?!m.isMatch:m.isMatch)||(d?n.add(m.output):(n.delete(m.output),i.add(m.output)))}}let u=(o===e.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(f=>f.replace(/\\/g,"")):e}return u};Pe.match=Pe;Pe.matcher=(t,e)=>br(t,e);Pe.isMatch=(t,e,r)=>br(e,r)(t);Pe.any=Pe.isMatch;Pe.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Pe(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Pe.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${xw.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>Pe.contains(t,n,r));if(typeof e=="string"){if(ww(t)||ww(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Pe.isMatch(t,e,{...r,contains:!0})};Pe.matchKeys=(t,e,r)=>{if(!Bh.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=Pe(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};Pe.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=br(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Pe.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=br(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Pe.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${xw.inspect(t)}"`);return[].concat(e).every(n=>br(n,r)(t))};Pe.capture=(t,e,r)=>{let n=Bh.isWindows(r),s=br.makeRe(String(t),{...r,capture:!0}).exec(n?Bh.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Pe.makeRe=(...t)=>br.makeRe(...t);Pe.scan=(...t)=>br.scan(...t);Pe.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of Sw(String(n),e))r.push(br.parse(i,e));return r};Pe.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Sw(t,e)};Pe.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Pe.braces(t,{...e,expand:!0})};Aw.exports=Pe});var Nw=y(se=>{"use strict";l();Object.defineProperty(se,"__esModule",{value:!0});se.matchAny=se.convertPatternsToRe=se.makeRe=se.getPatternParts=se.expandBraceExpansion=se.expandPatternsWithBraceExpansion=se.isAffectDepthOfReadingPattern=se.endsWithSlashGlobStar=se.hasGlobStar=se.getBaseDirectory=se.isPatternRelatedToParentDirectory=se.getPatternsOutsideCurrentDirectory=se.getPatternsInsideCurrentDirectory=se.getPositivePatterns=se.getNegativePatterns=se.isPositivePattern=se.isNegativePattern=se.convertToNegativePattern=se.convertToPositivePattern=se.isDynamicPattern=se.isStaticPattern=void 0;var lq=require("path"),fq=_E(),jh=Cw(),Rw="**",hq="\\",dq=/[*?]|^!/,pq=/\[[^[]*]/,mq=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,gq=/[!*+?@]\([^(]*\)/,yq=/,|\.\./;function Ow(t,e={}){return!Tw(t,e)}se.isStaticPattern=Ow;function Tw(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(hq)||dq.test(t)||pq.test(t)||mq.test(t)||e.extglob!==!1&&gq.test(t)||e.braceExpansion!==!1&&_q(t))}se.isDynamicPattern=Tw;function _q(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return yq.test(n)}function vq(t){return _c(t)?t.slice(1):t}se.convertToPositivePattern=vq;function bq(t){return"!"+t}se.convertToNegativePattern=bq;function _c(t){return t.startsWith("!")&&t[1]!=="("}se.isNegativePattern=_c;function kw(t){return!_c(t)}se.isPositivePattern=kw;function Eq(t){return t.filter(_c)}se.getNegativePatterns=Eq;function wq(t){return t.filter(kw)}se.getPositivePatterns=wq;function xq(t){return t.filter(e=>!Hh(e))}se.getPatternsInsideCurrentDirectory=xq;function Sq(t){return t.filter(Hh)}se.getPatternsOutsideCurrentDirectory=Sq;function Hh(t){return t.startsWith("..")||t.startsWith("./..")}se.isPatternRelatedToParentDirectory=Hh;function Aq(t){return fq(t,{flipBackslashes:!1})}se.getBaseDirectory=Aq;function Cq(t){return t.includes(Rw)}se.hasGlobStar=Cq;function Pw(t){return t.endsWith("/"+Rw)}se.endsWithSlashGlobStar=Pw;function Rq(t){let e=lq.basename(t);return Pw(t)||Ow(e)}se.isAffectDepthOfReadingPattern=Rq;function Oq(t){return t.reduce((e,r)=>e.concat(Iw(r)),[])}se.expandPatternsWithBraceExpansion=Oq;function Iw(t){return jh.braces(t,{expand:!0,nodupes:!0})}se.expandBraceExpansion=Iw;function Tq(t,e){let{parts:r}=jh.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}se.getPatternParts=Tq;function Lw(t,e){return jh.makeRe(t,e)}se.makeRe=Lw;function kq(t,e){return t.map(r=>Lw(r,e))}se.convertPatternsToRe=kq;function Pq(t,e){return e.some(r=>r.test(t))}se.matchAny=Pq});var qw=y((EY,Fw)=>{"use strict";l();var Iq=require("stream"),Dw=Iq.PassThrough,Lq=Array.prototype.slice;Fw.exports=Nq;function Nq(){let t=[],e=Lq.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.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=Dw(n);function a(){for(let f=0,h=arguments.length;f<h;f++)t.push(Mw(arguments[f],n));return c(),this}function c(){if(r)return;r=!0;let f=t.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let h=f.length+1;function d(){--h>0||(r=!1,c())}function g(m){function E(){m.removeListener("merge2UnpipeEnd",E),m.removeListener("end",E),s&&m.removeListener("error",v),d()}function v(A){o.emit("error",A)}if(m._readableState.endEmitted)return d();m.on("merge2UnpipeEnd",E),m.on("end",E),s&&m.on("error",v),m.pipe(o,{end:!1}),m.resume()}for(let m=0;m<f.length;m++)g(f[m]);d()}function u(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Mw(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Mw(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Dw(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var jw=y(vc=>{"use strict";l();Object.defineProperty(vc,"__esModule",{value:!0});vc.merge=void 0;var Dq=qw();function Mq(t){let e=Dq(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>Bw(t)),e.once("end",()=>Bw(t)),e}vc.merge=Mq;function Bw(t){t.forEach(e=>e.emit("close"))}});var Hw=y(zi=>{"use strict";l();Object.defineProperty(zi,"__esModule",{value:!0});zi.isEmpty=zi.isString=void 0;function Fq(t){return typeof t=="string"}zi.isString=Fq;function qq(t){return t===""}zi.isEmpty=qq});var Ur=y(st=>{"use strict";l();Object.defineProperty(st,"__esModule",{value:!0});st.string=st.stream=st.pattern=st.path=st.fs=st.errno=st.array=void 0;var Bq=cE();st.array=Bq;var jq=uE();st.errno=jq;var Hq=lE();st.fs=Hq;var $q=fE();st.path=$q;var Uq=Nw();st.pattern=Uq;var Gq=jw();st.stream=Gq;var Vq=Hw();st.string=Vq});var Gw=y(ot=>{"use strict";l();Object.defineProperty(ot,"__esModule",{value:!0});ot.convertPatternGroupToTask=ot.convertPatternGroupsToTasks=ot.groupPatternsByBaseDirectory=ot.getNegativePatternsAsPositive=ot.getPositivePatterns=ot.convertPatternsToTasks=ot.generate=void 0;var Gr=Ur();function Wq(t,e){let r=$w(t),n=Uw(t,e.ignore),i=r.filter(c=>Gr.pattern.isStaticPattern(c,e)),s=r.filter(c=>Gr.pattern.isDynamicPattern(c,e)),o=$h(i,n,!1),a=$h(s,n,!0);return o.concat(a)}ot.generate=Wq;function $h(t,e,r){let n=[],i=Gr.pattern.getPatternsOutsideCurrentDirectory(t),s=Gr.pattern.getPatternsInsideCurrentDirectory(t),o=Uh(i),a=Uh(s);return n.push(...Gh(o,e,r)),"."in a?n.push(Vh(".",s,e,r)):n.push(...Gh(a,e,r)),n}ot.convertPatternsToTasks=$h;function $w(t){return Gr.pattern.getPositivePatterns(t)}ot.getPositivePatterns=$w;function Uw(t,e){return Gr.pattern.getNegativePatterns(t).concat(e).map(Gr.pattern.convertToPositivePattern)}ot.getNegativePatternsAsPositive=Uw;function Uh(t){let e={};return t.reduce((r,n)=>{let i=Gr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}ot.groupPatternsByBaseDirectory=Uh;function Gh(t,e,r){return Object.keys(t).map(n=>Vh(n,t[n],e,r))}ot.convertPatternGroupsToTasks=Gh;function Vh(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Gr.pattern.convertToNegativePattern))}}ot.convertPatternGroupToTask=Vh});var Ww=y(Yi=>{"use strict";l();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.removeDuplicateSlashes=Yi.transform=void 0;var zq=/(?!^)\/{2,}/g;function Yq(t){return t.map(e=>Vw(e))}Yi.transform=Yq;function Vw(t){return t.replace(zq,"/")}Yi.removeDuplicateSlashes=Vw});var Yw=y(bc=>{"use strict";l();Object.defineProperty(bc,"__esModule",{value:!0});bc.read=void 0;function Kq(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){zw(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){Wh(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){zw(r,s);return}Wh(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Wh(r,o)})})}bc.read=Kq;function zw(t,e){t(e)}function Wh(t,e){t(null,e)}});var Kw=y(Ec=>{"use strict";l();Object.defineProperty(Ec,"__esModule",{value:!0});Ec.read=void 0;function Zq(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}Ec.read=Zq});var Zw=y(yn=>{"use strict";l();Object.defineProperty(yn,"__esModule",{value:!0});yn.createFileSystemAdapter=yn.FILE_SYSTEM_ADAPTER=void 0;var wc=require("fs");yn.FILE_SYSTEM_ADAPTER={lstat:wc.lstat,stat:wc.stat,lstatSync:wc.lstatSync,statSync:wc.statSync};function Jq(t){return t===void 0?yn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},yn.FILE_SYSTEM_ADAPTER),t)}yn.createFileSystemAdapter=Jq});var Jw=y(Yh=>{"use strict";l();Object.defineProperty(Yh,"__esModule",{value:!0});var Xq=Zw(),zh=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Xq.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};Yh.default=zh});var ri=y(_n=>{"use strict";l();Object.defineProperty(_n,"__esModule",{value:!0});_n.statSync=_n.stat=_n.Settings=void 0;var Xw=Yw(),Qq=Kw(),Kh=Jw();_n.Settings=Kh.default;function eB(t,e,r){if(typeof e=="function"){Xw.read(t,Zh(),e);return}Xw.read(t,Zh(e),r)}_n.stat=eB;function tB(t,e){let r=Zh(e);return Qq.read(t,r)}_n.statSync=tB;function Zh(t={}){return t instanceof Kh.default?t:new Kh.default(t)}});var tx=y((IY,ex)=>{l();var Qw;ex.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Qw||(Qw=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var nx=y((LY,rx)=>{l();rx.exports=nB;var rB=tx();function nB(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(c){function u(){e&&e(c,r),e=null}s?rB(u):u()}function a(c,u,f){r[c]=f,(--n===0||u)&&o(u)}n?i?i.forEach(function(c){t[c](function(u,f){a(c,u,f)})}):t.forEach(function(c,u){c(function(f,h){a(u,f,h)})}):o(null),s=!1}});var Jh=y(Sc=>{"use strict";l();Object.defineProperty(Sc,"__esModule",{value:!0});Sc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xc=process.versions.node.split(".");if(xc[0]===void 0||xc[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var ix=Number.parseInt(xc[0],10),iB=Number.parseInt(xc[1],10),sx=10,sB=10,oB=ix>sx,aB=ix===sx&&iB>=sB;Sc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=oB||aB});var ox=y(Ac=>{"use strict";l();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.createDirentFromStats=void 0;var Xh=class{constructor(e,r){this.name=e,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 cB(t,e){return new Xh(t,e)}Ac.createDirentFromStats=cB});var Qh=y(Cc=>{"use strict";l();Object.defineProperty(Cc,"__esModule",{value:!0});Cc.fs=void 0;var uB=ox();Cc.fs=uB});var ed=y(Rc=>{"use strict";l();Object.defineProperty(Rc,"__esModule",{value:!0});Rc.joinPathSegments=void 0;function lB(t,e,r){return t.endsWith(r)?t+e:t+r+e}Rc.joinPathSegments=lB});var hx=y(vn=>{"use strict";l();Object.defineProperty(vn,"__esModule",{value:!0});vn.readdir=vn.readdirWithFileTypes=vn.read=void 0;var fB=ri(),ax=nx(),hB=Jh(),cx=Qh(),ux=ed();function dB(t,e,r){if(!e.stats&&hB.IS_SUPPORT_READDIR_WITH_FILE_TYPES){lx(t,e,r);return}fx(t,e,r)}vn.read=dB;function lx(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Oc(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:ux.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){td(r,s);return}let o=s.map(a=>pB(a,e));ax(o,(a,c)=>{if(a!==null){Oc(r,a);return}td(r,c)})})}vn.readdirWithFileTypes=lx;function pB(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=cx.fs.createDirentFromStats(t.name,i),r(null,t)})}}function fx(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Oc(r,n);return}let s=i.map(o=>{let a=ux.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{fB.stat(a,e.fsStatSettings,(u,f)=>{if(u!==null){c(u);return}let h={name:o,path:a,dirent:cx.fs.createDirentFromStats(o,f)};e.stats&&(h.stats=f),c(null,h)})}});ax(s,(o,a)=>{if(o!==null){Oc(r,o);return}td(r,a)})})}vn.readdir=fx;function Oc(t,e){t(e)}function td(t,e){t(null,e)}});var yx=y(bn=>{"use strict";l();Object.defineProperty(bn,"__esModule",{value:!0});bn.readdir=bn.readdirWithFileTypes=bn.read=void 0;var mB=ri(),gB=Jh(),dx=Qh(),px=ed();function yB(t,e){return!e.stats&&gB.IS_SUPPORT_READDIR_WITH_FILE_TYPES?mx(t,e):gx(t,e)}bn.read=yB;function mx(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:px.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=dx.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}bn.readdirWithFileTypes=mx;function gx(t,e){return e.fs.readdirSync(t).map(n=>{let i=px.joinPathSegments(t,n,e.pathSegmentSeparator),s=mB.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:dx.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}bn.readdir=gx});var _x=y(En=>{"use strict";l();Object.defineProperty(En,"__esModule",{value:!0});En.createFileSystemAdapter=En.FILE_SYSTEM_ADAPTER=void 0;var Ki=require("fs");En.FILE_SYSTEM_ADAPTER={lstat:Ki.lstat,stat:Ki.stat,lstatSync:Ki.lstatSync,statSync:Ki.statSync,readdir:Ki.readdir,readdirSync:Ki.readdirSync};function _B(t){return t===void 0?En.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},En.FILE_SYSTEM_ADAPTER),t)}En.createFileSystemAdapter=_B});var vx=y(nd=>{"use strict";l();Object.defineProperty(nd,"__esModule",{value:!0});var vB=require("path"),bB=ri(),EB=_x(),rd=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=EB.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,vB.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new bB.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};nd.default=rd});var Tc=y(wn=>{"use strict";l();Object.defineProperty(wn,"__esModule",{value:!0});wn.Settings=wn.scandirSync=wn.scandir=void 0;var bx=hx(),wB=yx(),id=vx();wn.Settings=id.default;function xB(t,e,r){if(typeof e=="function"){bx.read(t,sd(),e);return}bx.read(t,sd(e),r)}wn.scandir=xB;function SB(t,e){let r=sd(e);return wB.read(t,r)}wn.scandirSync=SB;function sd(t={}){return t instanceof id.default?t:new id.default(t)}});var wx=y((UY,Ex)=>{"use strict";l();function AB(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Ex.exports=AB});var Sx=y((GY,od)=>{"use strict";l();var CB=wx();function xx(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=CB(RB),i=null,s=null,o=0,a=null,c={push:E,drain:zt,saturated:zt,pause:f,paused:!1,concurrency:r,running:u,resume:g,idle:m,length:h,getQueue:d,unshift:v,empty:zt,kill:P,killAndDrain:D,error:ie};return c;function u(){return o}function f(){c.paused=!0}function h(){for(var z=i,ue=0;z;)z=z.next,ue++;return ue}function d(){for(var z=i,ue=[];z;)ue.push(z.value),z=z.next;return ue}function g(){if(!!c.paused){c.paused=!1;for(var z=0;z<c.concurrency;z++)o++,A()}}function m(){return o===0&&c.length()===0}function E(z,ue){var K=n.get();K.context=t,K.release=A,K.value=z,K.callback=ue||zt,K.errorHandler=a,o===c.concurrency||c.paused?s?(s.next=K,s=K):(i=K,s=K,c.saturated()):(o++,e.call(t,K.value,K.worked))}function v(z,ue){var K=n.get();K.context=t,K.release=A,K.value=z,K.callback=ue||zt,o===c.concurrency||c.paused?i?(K.next=i,i=K):(i=K,s=K,c.saturated()):(o++,e.call(t,K.value,K.worked))}function A(z){z&&n.release(z);var ue=i;ue?c.paused?o--:(s===i&&(s=null),i=ue.next,ue.next=null,e.call(t,ue.value,ue.worked),s===null&&c.empty()):--o===0&&c.drain()}function P(){i=null,s=null,c.drain=zt}function D(){i=null,s=null,c.drain(),c.drain=zt}function ie(z){a=z}}function zt(){}function RB(){this.value=null,this.callback=zt,this.next=null,this.release=zt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=zt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function OB(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(f,h){e.call(this,f).then(function(d){h(null,d)},h)}var i=xx(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=c,i.drained=u,i;function a(f){var h=new Promise(function(d,g){s(f,function(m,E){if(m){g(m);return}d(E)})});return h.catch(zt),h}function c(f){var h=new Promise(function(d,g){o(f,function(m,E){if(m){g(m);return}d(E)})});return h.catch(zt),h}function u(){var f=i.drain,h=new Promise(function(d){i.drain=function(){f(),d()}});return h}}od.exports=xx;od.exports.promise=OB});var kc=y(Er=>{"use strict";l();Object.defineProperty(Er,"__esModule",{value:!0});Er.joinPathSegments=Er.replacePathSegmentSeparator=Er.isAppliedFilter=Er.isFatalError=void 0;function TB(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Er.isFatalError=TB;function kB(t,e){return t===null||t(e)}Er.isAppliedFilter=kB;function PB(t,e){return t.split(/[/\\]/).join(e)}Er.replacePathSegmentSeparator=PB;function IB(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Er.joinPathSegments=IB});var ud=y(cd=>{"use strict";l();Object.defineProperty(cd,"__esModule",{value:!0});var LB=kc(),ad=class{constructor(e,r){this._root=e,this._settings=r,this._root=LB.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};cd.default=ad});var hd=y(fd=>{"use strict";l();Object.defineProperty(fd,"__esModule",{value:!0});var NB=require("events"),DB=Tc(),MB=Sx(),Pc=kc(),FB=ud(),ld=class extends FB.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=DB.scandir,this._emitter=new NB.EventEmitter,this._queue=MB(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Pc.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=Pc.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Pc.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Pc.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};fd.default=ld});var Ax=y(pd=>{"use strict";l();Object.defineProperty(pd,"__esModule",{value:!0});var qB=hd(),dd=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new qB.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{BB(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{jB(e,this._storage)}),this._reader.read()}};pd.default=dd;function BB(t,e){t(e)}function jB(t,e){t(null,e)}});var Cx=y(gd=>{"use strict";l();Object.defineProperty(gd,"__esModule",{value:!0});var HB=require("stream"),$B=hd(),md=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new $B.default(this._root,this._settings),this._stream=new HB.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};gd.default=md});var Rx=y(_d=>{"use strict";l();Object.defineProperty(_d,"__esModule",{value:!0});var UB=Tc(),Ic=kc(),GB=ud(),yd=class extends GB.default{constructor(){super(...arguments),this._scandir=UB.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(!!Ic.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Ic.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ic.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Ic.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};_d.default=yd});var Ox=y(bd=>{"use strict";l();Object.defineProperty(bd,"__esModule",{value:!0});var VB=Rx(),vd=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new VB.default(this._root,this._settings)}read(){return this._reader.read()}};bd.default=vd});var Tx=y(wd=>{"use strict";l();Object.defineProperty(wd,"__esModule",{value:!0});var WB=require("path"),zB=Tc(),Ed=class{constructor(e={}){this._options=e,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,WB.sep),this.fsScandirSettings=new zB.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};wd.default=Ed});var Nc=y(wr=>{"use strict";l();Object.defineProperty(wr,"__esModule",{value:!0});wr.Settings=wr.walkStream=wr.walkSync=wr.walk=void 0;var kx=Ax(),YB=Cx(),KB=Ox(),xd=Tx();wr.Settings=xd.default;function ZB(t,e,r){if(typeof e=="function"){new kx.default(t,Lc()).read(e);return}new kx.default(t,Lc(e)).read(r)}wr.walk=ZB;function JB(t,e){let r=Lc(e);return new KB.default(t,r).read()}wr.walkSync=JB;function XB(t,e){let r=Lc(e);return new YB.default(t,r).read()}wr.walkStream=XB;function Lc(t={}){return t instanceof xd.default?t:new xd.default(t)}});var Dc=y(Ad=>{"use strict";l();Object.defineProperty(Ad,"__esModule",{value:!0});var QB=require("path"),e3=ri(),Px=Ur(),Sd=class{constructor(e){this._settings=e,this._fsStatSettings=new e3.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return QB.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:Px.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!Px.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ad.default=Sd});var Od=y(Rd=>{"use strict";l();Object.defineProperty(Rd,"__esModule",{value:!0});var t3=require("stream"),r3=ri(),n3=Nc(),i3=Dc(),Cd=class extends i3.default{constructor(){super(...arguments),this._walkStream=n3.walkStream,this._stat=r3.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new t3.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Rd.default=Cd});var Ix=y(kd=>{"use strict";l();Object.defineProperty(kd,"__esModule",{value:!0});var s3=Nc(),o3=Dc(),a3=Od(),Td=class extends o3.default{constructor(){super(...arguments),this._walkAsync=s3.walk,this._readerStream=new a3.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};kd.default=Td});var Lx=y(Id=>{"use strict";l();Object.defineProperty(Id,"__esModule",{value:!0});var Zi=Ur(),Pd=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Zi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Zi.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Zi.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Zi.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Zi.array.splitWhen(e,r=>r.dynamic&&Zi.pattern.hasGlobStar(r.pattern))}};Id.default=Pd});var Nx=y(Nd=>{"use strict";l();Object.defineProperty(Nd,"__esModule",{value:!0});var c3=Lx(),Ld=class extends c3.default{match(e){let r=e.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((c,u)=>{let f=s.segments[u];return!!(f.dynamic&&f.patternRe.test(c)||!f.dynamic&&f.pattern===c)}))return!0}return!1}};Nd.default=Ld});var Dx=y(Md=>{"use strict";l();Object.defineProperty(Md,"__esModule",{value:!0});var Mc=Ur(),u3=Nx(),Dd=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new u3.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Mc.pattern.isAffectDepthOfReadingPattern);return Mc.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Mc.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Mc.pattern.matchAny(e,r)}};Md.default=Dd});var Mx=y(qd=>{"use strict";l();Object.defineProperty(qd,"__esModule",{value:!0});var ni=Ur(),Fd=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=ni.pattern.convertPatternsToRe(e,this._micromatchOptions),i=ni.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=ni.path.makeAbsolute(this._settings.cwd,e);return ni.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=ni.path.removeLeadingDotSegment(e),s=ni.pattern.matchAny(i,r);return!s&&n?ni.pattern.matchAny(i+"/",r):s}};qd.default=Fd});var Fx=y(jd=>{"use strict";l();Object.defineProperty(jd,"__esModule",{value:!0});var l3=Ur(),Bd=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return l3.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};jd.default=Bd});var Bx=y($d=>{"use strict";l();Object.defineProperty($d,"__esModule",{value:!0});var qx=Ur(),Hd=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=qx.path.makeAbsolute(this._settings.cwd,r),r=qx.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};$d.default=Hd});var Fc=y(Gd=>{"use strict";l();Object.defineProperty(Gd,"__esModule",{value:!0});var f3=require("path"),h3=Dx(),d3=Mx(),p3=Fx(),m3=Bx(),Ud=class{constructor(e){this._settings=e,this.errorFilter=new p3.default(this._settings),this.entryFilter=new d3.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new h3.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new m3.default(this._settings)}_getRootDirectory(e){return f3.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.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}}};Gd.default=Ud});var jx=y(Wd=>{"use strict";l();Object.defineProperty(Wd,"__esModule",{value:!0});var g3=Ix(),y3=Fc(),Vd=class extends y3.default{constructor(){super(...arguments),this._reader=new g3.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Wd.default=Vd});var Hx=y(Yd=>{"use strict";l();Object.defineProperty(Yd,"__esModule",{value:!0});var _3=require("stream"),v3=Od(),b3=Fc(),zd=class extends b3.default{constructor(){super(...arguments),this._reader=new v3.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new _3.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(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Yd.default=zd});var $x=y(Zd=>{"use strict";l();Object.defineProperty(Zd,"__esModule",{value:!0});var E3=ri(),w3=Nc(),x3=Dc(),Kd=class extends x3.default{constructor(){super(...arguments),this._walkSync=w3.walkSync,this._statSync=E3.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Zd.default=Kd});var Ux=y(Xd=>{"use strict";l();Object.defineProperty(Xd,"__esModule",{value:!0});var S3=$x(),A3=Fc(),Jd=class extends A3.default{constructor(){super(...arguments),this._reader=new S3.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Xd.default=Jd});var Gx=y(Xi=>{"use strict";l();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ji=require("fs"),C3=require("os"),R3=Math.max(C3.cpus().length,1);Xi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ji.lstat,lstatSync:Ji.lstatSync,stat:Ji.stat,statSync:Ji.statSync,readdir:Ji.readdir,readdirSync:Ji.readdirSync};var Qd=class{constructor(e={}){this._options=e,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,R3),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(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Xi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Xi.default=Qd});var Yx=y((mK,zx)=>{"use strict";l();var Vx=Gw(),Wx=Ww(),O3=jx(),T3=Hx(),k3=Ux(),ep=Gx(),ii=Ur();async function tp(t,e){Qi(t);let r=rp(t,O3.default,e),n=await Promise.all(r);return ii.array.flatten(n)}(function(t){function e(o,a){Qi(o);let c=rp(o,k3.default,a);return ii.array.flatten(c)}t.sync=e;function r(o,a){Qi(o);let c=rp(o,T3.default,a);return ii.stream.merge(c)}t.stream=r;function n(o,a){Qi(o);let c=Wx.transform([].concat(o)),u=new ep.default(a);return Vx.generate(c,u)}t.generateTasks=n;function i(o,a){Qi(o);let c=new ep.default(a);return ii.pattern.isDynamicPattern(o,c)}t.isDynamicPattern=i;function s(o){return Qi(o),ii.path.escape(o)}t.escapePath=s})(tp||(tp={}));function rp(t,e,r){let n=Wx.transform([].concat(t)),i=new ep.default(r),s=Vx.generate(n,i),o=new e(i);return s.map(o.read,o)}function Qi(t){if(![].concat(t).every(n=>ii.string.isString(n)&&!ii.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}zx.exports=tp});var Bc=y((gK,np)=>{l();var Kx=process.argv||[],qc=process.env,P3=!("NO_COLOR"in qc||Kx.includes("--no-color"))&&("FORCE_COLOR"in qc||Kx.includes("--color")||process.platform==="win32"||require!=null&&require("tty").isatty(1)&&qc.TERM!=="dumb"||"CI"in qc),I3=(t,e,r=t)=>n=>{let i=""+n,s=i.indexOf(e,t.length);return~s?t+L3(i,e,r,s)+e:t+i+e},L3=(t,e,r,n)=>{let i="",s=0;do i+=t.substring(s,n)+r,s=n+e.length,n=t.indexOf(e,s);while(~n);return i+t.substring(s)},Zx=(t=P3)=>{let e=t?I3:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m")}};np.exports=Zx();np.exports.createColors=Zx});var Xx=y((yK,Jx)=>{"use strict";l();Jx.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var ip=y((_K,e1)=>{l();var jo=Xx(),Qx={};for(let t of Object.keys(jo))Qx[jo[t]]=t;var V={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e1.exports=V;for(let t of Object.keys(V)){if(!("channels"in V[t]))throw new Error("missing channels property: "+t);if(!("labels"in V[t]))throw new Error("missing channel labels property: "+t);if(V[t].labels.length!==V[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=V[t];delete V[t].channels,delete V[t].labels,Object.defineProperty(V[t],"channels",{value:e}),Object.defineProperty(V[t],"labels",{value:r})}V.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+s)/2;return s===i?c=0:u<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,u*100]};V.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(o,a,c),f=u-Math.min(o,a,c),h=function(d){return(u-d)/6/f+1/2};return f===0?(i=0,s=0):(s=f/u,e=h(o),r=h(a),n=h(c),o===u?i=n-r:a===u?i=1/3+e-n:c===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};V.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=V.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};V.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function N3(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}V.rgb.keyword=function(t){let e=Qx[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(jo)){let s=jo[i],o=N3(t,s);o<r&&(r=o,n=i)}return n};V.keyword.rgb=function(t){return jo[t]};V.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};V.rgb.lab=function(t){let e=V.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};V.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,c=[0,0,0];for(let u=0;u<3;u++)s=e+1/3*-(u-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,c[u]=o*255;return c};V.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};V.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};V.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};V.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,(o&1)!==0&&(s=1-s);let c=r+s*(a-r),u,f,h;switch(o){default:case 6:case 0:u=a,f=c,h=r;break;case 1:u=c,f=a,h=r;break;case 2:u=r,f=a,h=c;break;case 3:u=r,f=c,h=a;break;case 4:u=c,f=r,h=a;break;case 5:u=a,f=r,h=c;break}return[u*255,f*255,h*255]};V.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};V.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};V.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};V.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,c=i**3,u=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};V.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};V.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};V.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?V.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};V.hsv.ansi16=function(t){return V.rgb.ansi16(V.hsv.rgb(t),t[2])};V.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};V.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};V.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};V.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};V.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};V.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o,c/=6,c%=1,[c*360,o*100,a*100]};V.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};V.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};V.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};V.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};V.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};V.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};V.hwb.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};V.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};V.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};V.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};V.gray.hsl=function(t){return[0,0,t[0]]};V.gray.hsv=V.gray.hsl;V.gray.hwb=function(t){return[0,100,t[0]]};V.gray.cmyk=function(t){return[0,0,0,t[0]]};V.gray.lab=function(t){return[t[0],0,0]};V.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};V.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var r1=y((vK,t1)=>{l();var jc=ip();function D3(){let t={},e=Object.keys(jc);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function M3(t){let e=D3(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(jc[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}}return e}function F3(t,e){return function(r){return e(t(r))}}function q3(t,e){let r=[e[t].parent,t],n=jc[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=F3(jc[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}t1.exports=function(t){let e=M3(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=q3(o,e))}return r}});var i1=y((bK,n1)=>{l();var sp=ip(),B3=r1(),es={},j3=Object.keys(sp);function H3(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function $3(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}j3.forEach(t=>{es[t]={},Object.defineProperty(es[t],"channels",{value:sp[t].channels}),Object.defineProperty(es[t],"labels",{value:sp[t].labels});let e=B3(t);Object.keys(e).forEach(n=>{let i=e[n];es[t][n]=$3(i),es[t][n].raw=H3(i)})});n1.exports=es});var ap=y((EK,u1)=>{"use strict";l();var s1=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,o1=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},a1=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},Hc=t=>t,c1=(t,e,r)=>[t,e,r],ts=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},op,rs=(t,e,r,n)=>{op===void 0&&(op=i1());let i=n?10:0,s={};for(let[o,a]of Object.entries(op)){let c=o==="ansi16"?"ansi":o;o===e?s[c]=t(r,i):typeof a=="object"&&(s[c]=t(a[e],i))}return s};function U3(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",ts(e.color,"ansi",()=>rs(s1,"ansi16",Hc,!1)),ts(e.color,"ansi256",()=>rs(o1,"ansi256",Hc,!1)),ts(e.color,"ansi16m",()=>rs(a1,"rgb",c1,!1)),ts(e.bgColor,"ansi",()=>rs(s1,"ansi16",Hc,!0)),ts(e.bgColor,"ansi256",()=>rs(o1,"ansi256",Hc,!0)),ts(e.bgColor,"ansi16m",()=>rs(a1,"rgb",c1,!0)),e}Object.defineProperty(u1,"exports",{enumerable:!0,get:U3})});var f1=y((wK,l1)=>{"use strict";l();l1.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var lp=y((xK,d1)=>{"use strict";l();var G3=require("os"),h1=require("tty"),Yt=f1(),{env:ze}=process,xn;Yt("no-color")||Yt("no-colors")||Yt("color=false")||Yt("color=never")?xn=0:(Yt("color")||Yt("colors")||Yt("color=true")||Yt("color=always"))&&(xn=1);"FORCE_COLOR"in ze&&(ze.FORCE_COLOR==="true"?xn=1:ze.FORCE_COLOR==="false"?xn=0:xn=ze.FORCE_COLOR.length===0?1:Math.min(parseInt(ze.FORCE_COLOR,10),3));function cp(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function up(t,e){if(xn===0)return 0;if(Yt("color=16m")||Yt("color=full")||Yt("color=truecolor"))return 3;if(Yt("color=256"))return 2;if(t&&!e&&xn===void 0)return 0;let r=xn||0;if(ze.TERM==="dumb")return r;if(process.platform==="win32"){let n=G3.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ze)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ze)||ze.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ze)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ze.TEAMCITY_VERSION)?1:0;if(ze.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ze){let n=parseInt((ze.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ze.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ze.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ze.TERM)||"COLORTERM"in ze?1:r}function V3(t){let e=up(t,t&&t.isTTY);return cp(e)}d1.exports={supportsColor:V3,stdout:cp(up(!0,h1.isatty(1))),stderr:cp(up(!0,h1.isatty(2)))}});var m1=y((SK,p1)=>{"use strict";l();var W3=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},z3=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
27
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),So.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;So.checkParentPaths(t,o,e,"copy",c=>c?n(c):r.filter?G_($_,a,t,e,r,n):$_(a,t,e,r,n))})}function $_(t,e,r,n,i){let s=xo.dirname(r);qL(s,(o,a)=>{if(o)return i(o);if(a)return th(t,e,r,n,i);FL(s,c=>c?i(c):th(t,e,r,n,i))})}function G_(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function th(t,e,r,n,i){return n.filter?G_(U_,t,e,r,n,i):U_(t,e,r,n,i)}function U_(t,e,r,n,i){(n.dereference?et.stat:et.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return GL(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return HL(a,t,e,r,n,i);if(a.isSymbolicLink())return zL(t,e,r,n,i)})}function HL(t,e,r,n,i,s){return e?$L(t,r,n,i,s):V_(t,r,n,i,s)}function $L(t,e,r,n,i){if(n.overwrite)et.unlink(r,s=>s?i(s):V_(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function V_(t,e,r,n,i){return typeof et.copyFile=="function"?et.copyFile(e,r,s=>s?i(s):W_(t,r,n,i)):UL(t,e,r,n,i)}function UL(t,e,r,n,i){let s=et.createReadStream(e);s.on("error",o=>i(o)).once("open",()=>{let o=et.createWriteStream(r,{mode:t.mode});o.on("error",a=>i(a)).on("open",()=>s.pipe(o)).once("close",()=>W_(t,r,n,i))})}function W_(t,e,r,n){et.chmod(e,t.mode,i=>i?n(i):r.preserveTimestamps?BL(e,t.atime,t.mtime,n):n())}function GL(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):z_(r,n,i,s):VL(t,r,n,i,s)}function VL(t,e,r,n,i){et.mkdir(r,s=>{if(s)return i(s);z_(e,r,n,o=>o?i(o):et.chmod(r,t.mode,i))})}function z_(t,e,r,n){et.readdir(t,(i,s)=>i?n(i):Y_(s,t,e,r,n))}function Y_(t,e,r,n,i){let s=t.pop();return s?WL(t,s,e,r,n,i):i()}function WL(t,e,r,n,i,s){let o=xo.join(r,e),a=xo.join(n,e);So.checkPaths(o,a,"copy",(c,u)=>{if(c)return s(c);let{destStat:f}=u;th(f,o,a,i,h=>h?s(h):Y_(t,r,n,i,s))})}function zL(t,e,r,n,i){et.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=xo.resolve(process.cwd(),o)),t)et.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?et.symlink(o,r,i):i(a):(n.dereference&&(c=xo.resolve(process.cwd(),c)),So.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&So.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):YL(o,r,i)));else return et.symlink(o,r,i)})}function YL(t,e,r){et.unlink(e,n=>n?r(n):et.symlink(t,e,r))}K_.exports=jL});var rh=y((lz,J_)=>{"use strict";l();var KL=vt().fromCallback;J_.exports={copy:KL(Z_())}});var ov=y((fz,sv)=>{"use strict";l();var X_=je(),rv=require("path"),_e=require("assert"),Ao=process.platform==="win32";function nv(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||X_[r],r=r+"Sync",t[r]=t[r]||X_[r]}),t.maxBusyTries=t.maxBusyTries||3}function nh(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),_e(t,"rimraf: missing path"),_e.strictEqual(typeof t,"string","rimraf: path should be a string"),_e.strictEqual(typeof r,"function","rimraf: callback function required"),_e(e,"rimraf: invalid options argument provided"),_e.strictEqual(typeof e,"object","rimraf: options should be object"),nv(e),Q_(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>Q_(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function Q_(t,e,r){_e(t),_e(e),_e(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Ao)return ev(t,e,n,r);if(i&&i.isDirectory())return Ya(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Ao?ev(t,e,s,r):Ya(t,e,s,r);if(s.code==="EISDIR")return Ya(t,e,s,r)}return r(s)})})}function ev(t,e,r,n){_e(t),_e(e),_e(typeof n=="function"),r&&_e(r instanceof Error),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?Ya(t,e,r,n):e.unlink(t,n)})})}function tv(t,e,r){let n;_e(t),_e(e),r&&_e(r instanceof Error);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Ka(t,e,r):e.unlinkSync(t)}function Ya(t,e,r,n){_e(t),_e(e),r&&_e(r instanceof Error),_e(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?ZL(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function ZL(t,e,r){_e(t),_e(e),_e(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{nh(rv.join(t,a),e,c=>{if(!o){if(c)return r(o=c);--s===0&&e.rmdir(t,r)}})})})}function iv(t,e){let r;e=e||{},nv(e),_e(t,"rimraf: missing path"),_e.strictEqual(typeof t,"string","rimraf: path should be a string"),_e(e,"rimraf: missing options"),_e.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Ao&&tv(t,e,n)}try{r&&r.isDirectory()?Ka(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Ao?tv(t,e,n):Ka(t,e,n);if(n.code!=="EISDIR")throw n;Ka(t,e,n)}}function Ka(t,e,r){_e(t),_e(e),r&&_e(r instanceof Error);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")JL(t,e);else if(n.code!=="ENOENT")throw n}}function JL(t,e){if(_e(t),_e(e),e.readdirSync(t).forEach(r=>iv(rv.join(t,r),e)),Ao){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}sv.exports=nh;nh.sync=iv});var Co=y((hz,cv)=>{"use strict";l();var XL=vt().fromCallback,av=ov();cv.exports={remove:XL(av),removeSync:av.sync}});var gv=y((dz,mv)=>{"use strict";l();var QL=vt().fromCallback,fv=je(),hv=require("path"),dv=Pt(),pv=Co(),uv=QL(function(e,r){r=r||function(){},fv.readdir(e,(n,i)=>{if(n)return dv.mkdirs(e,r);i=i.map(o=>hv.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();pv.remove(o,a=>{if(a)return r(a);s()})}})});function lv(t){let e;try{e=fv.readdirSync(t)}catch{return dv.mkdirsSync(t)}e.forEach(r=>{r=hv.join(t,r),pv.removeSync(r)})}mv.exports={emptyDirSync:lv,emptydirSync:lv,emptyDir:uv,emptydir:uv}});var bv=y((pz,vv)=>{"use strict";l();var e5=vt().fromCallback,yv=require("path"),Ro=je(),_v=Pt(),t5=gr().pathExists;function r5(t,e){function r(){Ro.writeFile(t,"",n=>{if(n)return e(n);e()})}Ro.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=yv.dirname(t);t5(s,(o,a)=>{if(o)return e(o);if(a)return r();_v.mkdirs(s,c=>{if(c)return e(c);r()})})})}function n5(t){let e;try{e=Ro.statSync(t)}catch{}if(e&&e.isFile())return;let r=yv.dirname(t);Ro.existsSync(r)||_v.mkdirsSync(r),Ro.writeFileSync(t,"")}vv.exports={createFile:e5(r5),createFileSync:n5}});var Av=y((mz,Sv)=>{"use strict";l();var i5=vt().fromCallback,wv=require("path"),Jn=je(),xv=Pt(),Ev=gr().pathExists;function s5(t,e,r){function n(i,s){Jn.link(i,s,o=>{if(o)return r(o);r(null)})}Ev(e,(i,s)=>{if(i)return r(i);if(s)return r(null);Jn.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=wv.dirname(e);Ev(a,(c,u)=>{if(c)return r(c);if(u)return n(t,e);xv.mkdirs(a,f=>{if(f)return r(f);n(t,e)})})})})}function o5(t,e){if(Jn.existsSync(e))return;try{Jn.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=wv.dirname(e);return Jn.existsSync(n)||xv.mkdirsSync(n),Jn.linkSync(t,e)}Sv.exports={createLink:i5(s5),createLinkSync:o5}});var Rv=y((gz,Cv)=>{"use strict";l();var pn=require("path"),Oo=je(),a5=gr().pathExists;function c5(t,e,r){if(pn.isAbsolute(t))return Oo.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=pn.dirname(e),i=pn.join(n,t);return a5(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):Oo.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:pn.relative(n,t)})))}}function u5(t,e){let r;if(pn.isAbsolute(t)){if(r=Oo.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=pn.dirname(e),i=pn.join(n,t);if(r=Oo.existsSync(i),r)return{toCwd:i,toDst:t};if(r=Oo.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:pn.relative(n,t)}}}Cv.exports={symlinkPaths:c5,symlinkPathsSync:u5}});var kv=y((yz,Tv)=>{"use strict";l();var Ov=je();function l5(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Ov.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function f5(t,e){let r;if(e)return e;try{r=Ov.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Tv.exports={symlinkType:l5,symlinkTypeSync:f5}});var Fv=y((_z,Mv)=>{"use strict";l();var h5=vt().fromCallback,Iv=require("path"),qi=je(),Lv=Pt(),d5=Lv.mkdirs,p5=Lv.mkdirsSync,Nv=Rv(),m5=Nv.symlinkPaths,g5=Nv.symlinkPathsSync,Dv=kv(),y5=Dv.symlinkType,_5=Dv.symlinkTypeSync,Pv=gr().pathExists;function v5(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Pv(e,(i,s)=>{if(i)return n(i);if(s)return n(null);m5(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,y5(a.toCwd,r,(c,u)=>{if(c)return n(c);let f=Iv.dirname(e);Pv(f,(h,d)=>{if(h)return n(h);if(d)return qi.symlink(t,e,u,n);d5(f,m=>{if(m)return n(m);qi.symlink(t,e,u,n)})})})})})}function b5(t,e,r){if(qi.existsSync(e))return;let i=g5(t,e);t=i.toDst,r=_5(i.toCwd,r);let s=Iv.dirname(e);return qi.existsSync(s)||p5(s),qi.symlinkSync(t,e,r)}Mv.exports={createSymlink:h5(v5),createSymlinkSync:b5}});var Bv=y((vz,qv)=>{"use strict";l();var Za=bv(),Ja=Av(),Xa=Fv();qv.exports={createFile:Za.createFile,createFileSync:Za.createFileSync,ensureFile:Za.createFile,ensureFileSync:Za.createFileSync,createLink:Ja.createLink,createLinkSync:Ja.createLinkSync,ensureLink:Ja.createLink,ensureLinkSync:Ja.createLinkSync,createSymlink:Xa.createSymlink,createSymlinkSync:Xa.createSymlinkSync,ensureSymlink:Xa.createSymlink,ensureSymlinkSync:Xa.createSymlinkSync}});var Uv=y((bz,$v)=>{l();var Bi;try{Bi=je()}catch{Bi=require("fs")}function E5(t,e,r){r==null&&(r=e,e={}),typeof e=="string"&&(e={encoding:e}),e=e||{};var n=e.fs||Bi,i=!0;"throws"in e&&(i=e.throws),n.readFile(t,e,function(s,o){if(s)return r(s);o=Hv(o);var a;try{a=JSON.parse(o,e?e.reviver:null)}catch(c){return i?(c.message=t+": "+c.message,r(c)):r(null,null)}r(null,a)})}function w5(t,e){e=e||{},typeof e=="string"&&(e={encoding:e});var r=e.fs||Bi,n=!0;"throws"in e&&(n=e.throws);try{var i=r.readFileSync(t,e);return i=Hv(i),JSON.parse(i,e.reviver)}catch(s){if(n)throw s.message=t+": "+s.message,s;return null}}function jv(t,e){var r,n=`
|
|
28
|
+
`;typeof e=="object"&&e!==null&&(e.spaces&&(r=e.spaces),e.EOL&&(n=e.EOL));var i=JSON.stringify(t,e?e.replacer:null,r);return i.replace(/\n/g,n)+n}function x5(t,e,r,n){n==null&&(n=r,r={}),r=r||{};var i=r.fs||Bi,s="";try{s=jv(e,r)}catch(o){n&&n(o,null);return}i.writeFile(t,s,r,n)}function S5(t,e,r){r=r||{};var n=r.fs||Bi,i=jv(e,r);return n.writeFileSync(t,i,r)}function Hv(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t=t.replace(/^\uFEFF/,""),t}var A5={readFile:E5,readFileSync:w5,writeFile:x5,writeFileSync:S5};$v.exports=A5});var ec=y((Ez,Vv)=>{"use strict";l();var Gv=vt().fromCallback,Qa=Uv();Vv.exports={readJson:Gv(Qa.readFile),readJsonSync:Qa.readFileSync,writeJson:Gv(Qa.writeFile),writeJsonSync:Qa.writeFileSync}});var Yv=y((wz,zv)=>{"use strict";l();var C5=require("path"),R5=Pt(),O5=gr().pathExists,Wv=ec();function T5(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=C5.dirname(t);O5(i,(s,o)=>{if(s)return n(s);if(o)return Wv.writeJson(t,e,r,n);R5.mkdirs(i,a=>{if(a)return n(a);Wv.writeJson(t,e,r,n)})})}zv.exports=T5});var Zv=y((xz,Kv)=>{"use strict";l();var k5=je(),P5=require("path"),I5=Pt(),L5=ec();function N5(t,e,r){let n=P5.dirname(t);k5.existsSync(n)||I5.mkdirsSync(n),L5.writeJsonSync(t,e,r)}Kv.exports=N5});var Xv=y((Sz,Jv)=>{"use strict";l();var D5=vt().fromCallback,mt=ec();mt.outputJson=D5(Yv());mt.outputJsonSync=Zv();mt.outputJSON=mt.outputJson;mt.outputJSONSync=mt.outputJsonSync;mt.writeJSON=mt.writeJson;mt.writeJSONSync=mt.writeJsonSync;mt.readJSON=mt.readJson;mt.readJSONSync=mt.readJsonSync;Jv.exports=mt});var ib=y((Az,nb)=>{"use strict";l();var tb=je(),M5=require("path"),F5=eh().copySync,rb=Co().removeSync,q5=Pt().mkdirpSync,Qv=bo();function B5(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Qv.checkPathsSync(t,e,"move");return Qv.checkParentPathsSync(t,i,e,"move"),q5(M5.dirname(e)),j5(t,e,n)}function j5(t,e,r){if(r)return rb(e),eb(t,e,r);if(tb.existsSync(e))throw new Error("dest already exists.");return eb(t,e,r)}function eb(t,e,r){try{tb.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return H5(t,e,r)}}function H5(t,e,r){return F5(t,e,{overwrite:r,errorOnExist:!0}),rb(t)}nb.exports=B5});var ob=y((Cz,sb)=>{"use strict";l();sb.exports={moveSync:ib()}});var fb=y((Rz,lb)=>{"use strict";l();var $5=je(),U5=require("path"),G5=rh().copy,ub=Co().remove,V5=Pt().mkdirp,W5=gr().pathExists,ab=bo();function z5(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;ab.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;ab.checkParentPaths(t,a,e,"move",c=>{if(c)return n(c);V5(U5.dirname(e),u=>u?n(u):Y5(t,e,i,n))})})}function Y5(t,e,r,n){if(r)return ub(e,i=>i?n(i):cb(t,e,r,n));W5(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):cb(t,e,r,n))}function cb(t,e,r,n){$5.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):K5(t,e,r,n):n())}function K5(t,e,r,n){G5(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):ub(t,n))}lb.exports=z5});var db=y((Oz,hb)=>{"use strict";l();var Z5=vt().fromCallback;hb.exports={move:Z5(fb())}});var yb=y((Tz,gb)=>{"use strict";l();var J5=vt().fromCallback,To=je(),pb=require("path"),mb=Pt(),X5=gr().pathExists;function Q5(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=pb.dirname(t);X5(i,(s,o)=>{if(s)return n(s);if(o)return To.writeFile(t,e,r,n);mb.mkdirs(i,a=>{if(a)return n(a);To.writeFile(t,e,r,n)})})}function eN(t,...e){let r=pb.dirname(t);if(To.existsSync(r))return To.writeFileSync(t,...e);mb.mkdirsSync(r),To.writeFileSync(t,...e)}gb.exports={outputFile:J5(Q5),outputFileSync:eN}});var vb=y((kz,ih)=>{"use strict";l();ih.exports=Object.assign({},Hf(),eh(),rh(),gv(),Bv(),Xv(),Pt(),ob(),db(),yb(),gr(),Co());var _b=require("fs");Object.getOwnPropertyDescriptor(_b,"promises")&&Object.defineProperty(ih.exports,"promises",{get(){return _b.promises}})});var cE=y(Gi=>{"use strict";l();Object.defineProperty(Gi,"__esModule",{value:!0});Gi.splitWhen=Gi.flatten=void 0;function TM(t){return t.reduce((e,r)=>[].concat(e,r),[])}Gi.flatten=TM;function kM(t,e){let r=[[]],n=0;for(let i of t)e(i)?(n++,r[n]=[]):r[n].push(i);return r}Gi.splitWhen=kM});var uE=y(lc=>{"use strict";l();Object.defineProperty(lc,"__esModule",{value:!0});lc.isEnoentCodeError=void 0;function PM(t){return t.code==="ENOENT"}lc.isEnoentCodeError=PM});var lE=y(fc=>{"use strict";l();Object.defineProperty(fc,"__esModule",{value:!0});fc.createDirentFromStats=void 0;var wh=class{constructor(e,r){this.name=e,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 IM(t,e){return new wh(t,e)}fc.createDirentFromStats=IM});var fE=y(_r=>{"use strict";l();Object.defineProperty(_r,"__esModule",{value:!0});_r.removeLeadingDotSegment=_r.escape=_r.makeAbsolute=_r.unixify=void 0;var LM=require("path"),NM=2,DM=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function MM(t){return t.replace(/\\/g,"/")}_r.unixify=MM;function FM(t,e){return LM.resolve(t,e)}_r.makeAbsolute=FM;function qM(t){return t.replace(DM,"\\$2")}_r.escape=qM;function BM(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(NM)}return t}_r.removeLeadingDotSegment=BM});var dE=y((eY,hE)=>{l();hE.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var gE=y((tY,mE)=>{l();var jM=dE(),pE={"{":"}","(":")","[":"]"},HM=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,i=-2,s=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||i!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(i=t.indexOf("}",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(s=t.indexOf(")",r),s>r&&(o=t.indexOf("\\",r),o===-1||o>s))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var c=pE[a];if(c){var u=t.indexOf(c,e);u!==-1&&(e=u+1)}if(t[e]==="!")return!0}else e++}return!1},$M=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=pE[r];if(n){var i=t.indexOf(n,e);i!==-1&&(e=i+1)}if(t[e]==="!")return!0}else e++}return!1};mE.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(jM(e))return!0;var n=HM;return r&&r.strict===!1&&(n=$M),n(e)}});var _E=y((rY,yE)=>{"use strict";l();var UM=gE(),GM=require("path").posix.dirname,VM=require("os").platform()==="win32",xh="/",WM=/\\/g,zM=/[\{\[].*[\}\]]$/,YM=/(^|[^\\])([\{\[]|\([^\)]+$)/,KM=/\\([\!\*\?\|\[\]\(\)\{\}])/g;yE.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&VM&&e.indexOf(xh)<0&&(e=e.replace(WM,xh)),zM.test(e)&&(e+=xh),e+="a";do e=GM(e);while(UM(e)||YM.test(e));return e.replace(KM,"$1")}});var hc=y(Wt=>{"use strict";l();Wt.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;Wt.find=(t,e)=>t.nodes.find(r=>r.type===e);Wt.exceedsLimit=(t,e,r=1,n)=>n===!1||!Wt.isInteger(t)||!Wt.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;Wt.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};Wt.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;Wt.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;Wt.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;Wt.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);Wt.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,e):s!==void 0&&e.push(s)}return e};return r(t),e}});var dc=y((iY,bE)=>{"use strict";l();var vE=hc();bE.exports=(t,e={})=>{let r=(n,i={})=>{let s=e.escapeInvalid&&vE.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(s||o)&&vE.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(t)}});var wE=y((sY,EE)=>{"use strict";l();EE.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var PE=y((oY,kE)=>{"use strict";l();var xE=wE(),ei=(t,e,r)=>{if(xE(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(xE(e)===!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),c=t+":"+e+"="+i+s+o+a;if(ei.cache.hasOwnProperty(c))return ei.cache[c].result;let u=Math.min(t,e),f=Math.max(t,e);if(Math.abs(u-f)===1){let E=t+"|"+e;return n.capture?`(${E})`:n.wrap===!1?E:`(?:${E})`}let h=TE(t)||TE(e),d={min:t,max:e,a:u,b:f},m=[],g=[];if(h&&(d.isPadded=h,d.maxLen=String(d.max).length),u<0){let E=f<0?Math.abs(f):1;g=SE(E,Math.abs(u),d,n),u=d.a=0}return f>=0&&(m=SE(u,f,d,n)),d.negatives=g,d.positives=m,d.result=ZM(g,m,n),n.capture===!0?d.result=`(${d.result})`:n.wrap!==!1&&m.length+g.length>1&&(d.result=`(?:${d.result})`),ei.cache[c]=d,d.result};function ZM(t,e,r){let n=Sh(t,e,"-",!1,r)||[],i=Sh(e,t,"",!1,r)||[],s=Sh(t,e,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function JM(t,e){let r=1,n=1,i=CE(t,r),s=new Set([e]);for(;t<=i&&i<=e;)s.add(i),r+=1,i=CE(t,r);for(i=RE(e+1,n)-1;t<i&&i<=e;)s.add(i),n+=1,i=RE(e+1,n)-1;return s=[...s],s.sort(eF),s}function XM(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=QM(t,e),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[c,u]=n[a];c===u?s+=c:c!=="0"||u!=="9"?s+=tF(c,u,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function SE(t,e,r,n){let i=JM(t,e),s=[],o=t,a;for(let c=0;c<i.length;c++){let u=i[c],f=XM(String(o),String(u),n),h="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+OE(a.count),o=u+1;continue}r.isPadded&&(h=rF(u,r,n)),f.string=h+f.pattern+OE(f.count),s.push(f),o=u+1,a=f}return s}function Sh(t,e,r,n,i){let s=[];for(let o of t){let{string:a}=o;!n&&!AE(e,"string",a)&&s.push(r+a),n&&AE(e,"string",a)&&s.push(r+a)}return s}function QM(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function eF(t,e){return t>e?1:e>t?-1:0}function AE(t,e,r){return t.some(n=>n[e]===r)}function CE(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function RE(t,e){return t-t%Math.pow(10,e)}function OE(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function tF(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function TE(t){return/^-?(0+)\d/.test(t)}function rF(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).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}}`}}ei.cache={};ei.clearCache=()=>ei.cache={};kE.exports=ei});var Rh=y((aY,BE)=>{"use strict";l();var nF=require("util"),NE=PE(),IE=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),iF=t=>e=>t===!0?Number(e):String(e),Ah=t=>typeof t=="number"||typeof t=="string"&&t!=="",Mo=t=>Number.isInteger(+t),Ch=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},sF=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,oF=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},LE=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},aF=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",i="",s;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,e.wrap?`(${r}${s})`:s},DE=(t,e,r,n)=>{if(r)return NE(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let s=String.fromCharCode(e);return`[${i}-${s}]`},ME=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return NE(t,e,r)},FE=(...t)=>new RangeError("Invalid range arguments: "+nF.inspect(...t)),qE=(t,e,r)=>{if(r.strictRanges===!0)throw FE([t,e]);return[]},cF=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},uF=(t,e,r=1,n={})=>{let i=Number(t),s=Number(e);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw FE([t,e]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(t),c=String(e),u=String(r);r=Math.max(Math.abs(r),1);let f=Ch(a)||Ch(c)||Ch(u),h=f?Math.max(a.length,c.length,u.length):0,d=f===!1&&sF(t,e,n)===!1,m=n.transform||iF(d);if(n.toRegex&&r===1)return DE(LE(t,h),LE(e,h),!0,n);let g={negatives:[],positives:[]},E=P=>g[P<0?"negatives":"positives"].push(Math.abs(P)),v=[],A=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?E(i):v.push(oF(m(i,A),h,d)),i=o?i-r:i+r,A++;return n.toRegex===!0?r>1?aF(g,n):ME(v,null,{wrap:!1,...n}):v},lF=(t,e,r=1,n={})=>{if(!Mo(t)&&t.length>1||!Mo(e)&&e.length>1)return qE(t,e,n);let i=n.transform||(d=>String.fromCharCode(d)),s=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=s>o,c=Math.min(s,o),u=Math.max(s,o);if(n.toRegex&&r===1)return DE(c,u,!1,n);let f=[],h=0;for(;a?s>=o:s<=o;)f.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?ME(f,null,{wrap:!1,options:n}):f},pc=(t,e,r,n={})=>{if(e==null&&Ah(t))return[t];if(!Ah(t)||!Ah(e))return qE(t,e,n);if(typeof r=="function")return pc(t,e,1,{transform:r});if(IE(r))return pc(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Mo(r)?Mo(t)&&Mo(e)?uF(t,e,r,i):lF(t,e,Math.max(Math.abs(r),1),i):r!=null&&!IE(r)?cF(r,i):pc(t,e,1,r)};BE.exports=pc});var $E=y((cY,HE)=>{"use strict";l();var fF=Rh(),jE=hc(),hF=(t,e={})=>{let r=(n,i={})=>{let s=jE.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,a=s===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0||n.isClose===!0)return c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+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 f=jE.reduce(n.nodes),h=fF(...f,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return f.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let f of n.nodes)u+=r(f,n);return u};return r(t)};HE.exports=hF});var VE=y((uY,GE)=>{"use strict";l();var dF=Rh(),UE=dc(),Vi=hc(),ti=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Vi.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let s of i)n.push(ti(s,e,r));else for(let s of e)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?ti(i,s,r):i+s);return Vi.flatten(n)},pF=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.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(ti(a.pop(),UE(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(ti(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Vi.reduce(i.nodes);if(Vi.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let d=dF(...h,e);d.length===0&&(d=UE(i,e)),a.push(ti(a.pop(),d)),i.nodes=[];return}let c=Vi.encloseBrace(i),u=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let h=0;h<i.nodes.length;h++){let d=i.nodes[h];if(d.type==="comma"&&i.type==="brace"){h===1&&u.push(""),u.push("");continue}if(d.type==="close"){a.push(ti(a.pop(),u,c));continue}if(d.value&&d.type!=="open"){u.push(ti(u.pop(),d.value));continue}d.nodes&&n(d,i)}return u};return Vi.flatten(n(t))};GE.exports=pF});var zE=y((lY,WE)=>{"use strict";l();WE.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:`
|
|
29
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",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 XE=y((fY,JE)=>{"use strict";l();var mF=dc(),{MAX_LENGTH:YE,CHAR_BACKSLASH:Oh,CHAR_BACKTICK:gF,CHAR_COMMA:yF,CHAR_DOT:_F,CHAR_LEFT_PARENTHESES:vF,CHAR_RIGHT_PARENTHESES:bF,CHAR_LEFT_CURLY_BRACE:EF,CHAR_RIGHT_CURLY_BRACE:wF,CHAR_LEFT_SQUARE_BRACKET:KE,CHAR_RIGHT_SQUARE_BRACKET:ZE,CHAR_DOUBLE_QUOTE:xF,CHAR_SINGLE_QUOTE:SF,CHAR_NO_BREAK_SPACE:AF,CHAR_ZERO_WIDTH_NOBREAK_SPACE:CF}=zE(),RF=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(YE,r.maxLength):YE;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},s=[i],o=i,a=i,c=0,u=t.length,f=0,h=0,d,m={},g=()=>t[f++],E=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(E({type:"bos"});f<u;)if(o=s[s.length-1],d=g(),!(d===CF||d===AF)){if(d===Oh){E({type:"text",value:(e.keepEscaping?d:"")+g()});continue}if(d===ZE){E({type:"text",value:"\\"+d});continue}if(d===KE){c++;let v=!0,A;for(;f<u&&(A=g());){if(d+=A,A===KE){c++;continue}if(A===Oh){d+=g();continue}if(A===ZE&&(c--,c===0))break}E({type:"text",value:d});continue}if(d===vF){o=E({type:"paren",nodes:[]}),s.push(o),E({type:"text",value:d});continue}if(d===bF){if(o.type!=="paren"){E({type:"text",value:d});continue}o=s.pop(),E({type:"text",value:d}),o=s[s.length-1];continue}if(d===xF||d===SF||d===gF){let v=d,A;for(e.keepQuotes!==!0&&(d="");f<u&&(A=g());){if(A===Oh){d+=A+g();continue}if(A===v){e.keepQuotes===!0&&(d+=A);break}d+=A}E({type:"text",value:d});continue}if(d===EF){h++;let v=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=E({type:"brace",open:!0,close:!1,dollar:v,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),E({type:"open",value:d});continue}if(d===wF){if(o.type!=="brace"){E({type:"text",value:d});continue}let v="close";o=s.pop(),o.close=!0,E({type:v,value:d}),h--,o=s[s.length-1];continue}if(d===yF&&h>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:mF(o)}]}E({type:"comma",value:d}),o.commas++;continue}if(d===_F&&h>0&&o.commas===0){let v=o.nodes;if(h===0||v.length===0){E({type:"text",value:d});continue}if(a.type==="dot"){if(o.range=[],a.value+=d,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"){v.pop();let A=v[v.length-1];A.value+=a.value+d,a=A,o.ranges--;continue}E({type:"dot",value:d});continue}E({type:"text",value:d})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let v=s[s.length-1],A=v.nodes.indexOf(o);v.nodes.splice(A,1,...o.nodes)}while(s.length>0);return E({type:"eos"}),i};JE.exports=RF});var tw=y((hY,ew)=>{"use strict";l();var QE=dc(),OF=$E(),TF=VE(),kF=XE(),It=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=It.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(It.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};It.parse=(t,e={})=>kF(t,e);It.stringify=(t,e={})=>QE(typeof t=="string"?It.parse(t,e):t,e);It.compile=(t,e={})=>(typeof t=="string"&&(t=It.parse(t,e)),OF(t,e));It.expand=(t,e={})=>{typeof t=="string"&&(t=It.parse(t,e));let r=TF(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};It.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?It.compile(t,e):It.expand(t,e);ew.exports=It});var Fo=y((dY,ow)=>{"use strict";l();var PF=require("path"),vr="\\\\/",rw=`[^${vr}]`,$r="\\.",IF="\\+",LF="\\?",mc="\\/",NF="(?=.)",nw="[^/]",Th=`(?:${mc}|$)`,iw=`(?:^|${mc})`,kh=`${$r}{1,2}${Th}`,DF=`(?!${$r})`,MF=`(?!${iw}${kh})`,FF=`(?!${$r}{0,1}${Th})`,qF=`(?!${kh})`,BF=`[^.${mc}]`,jF=`${nw}*?`,sw={DOT_LITERAL:$r,PLUS_LITERAL:IF,QMARK_LITERAL:LF,SLASH_LITERAL:mc,ONE_CHAR:NF,QMARK:nw,END_ANCHOR:Th,DOTS_SLASH:kh,NO_DOT:DF,NO_DOTS:MF,NO_DOT_SLASH:FF,NO_DOTS_SLASH:qF,QMARK_NO_DOT:BF,STAR:jF,START_ANCHOR:iw},HF={...sw,SLASH_LITERAL:`[${vr}]`,QMARK:rw,STAR:`${rw}*?`,DOTS_SLASH:`${$r}{1,2}(?:[${vr}]|$)`,NO_DOT:`(?!${$r})`,NO_DOTS:`(?!(?:^|[${vr}])${$r}{1,2}(?:[${vr}]|$))`,NO_DOT_SLASH:`(?!${$r}{0,1}(?:[${vr}]|$))`,NO_DOTS_SLASH:`(?!${$r}{1,2}(?:[${vr}]|$))`,QMARK_NO_DOT:`[^.${vr}]`,START_ANCHOR:`(?:^|[${vr}])`,END_ANCHOR:`(?:[${vr}]|$)`},$F={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"};ow.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:$F,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:PF.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?HF:sw}}});var qo=y(xt=>{"use strict";l();var UF=require("path"),GF=process.platform==="win32",{REGEX_BACKSLASH:VF,REGEX_REMOVE_BACKSLASH:WF,REGEX_SPECIAL_CHARS:zF,REGEX_SPECIAL_CHARS_GLOBAL:YF}=Fo();xt.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);xt.hasRegexChars=t=>zF.test(t);xt.isRegexChar=t=>t.length===1&&xt.hasRegexChars(t);xt.escapeRegex=t=>t.replace(YF,"\\$1");xt.toPosixSlashes=t=>t.replace(VF,"/");xt.removeBackslashes=t=>t.replace(WF,e=>e==="\\"?"":e);xt.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};xt.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:GF===!0||UF.sep==="\\";xt.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?xt.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};xt.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};xt.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${t})${i}`;return e.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var pw=y((mY,dw)=>{"use strict";l();var aw=qo(),{CHAR_ASTERISK:Ph,CHAR_AT:KF,CHAR_BACKWARD_SLASH:Bo,CHAR_COMMA:ZF,CHAR_DOT:Ih,CHAR_EXCLAMATION_MARK:Lh,CHAR_FORWARD_SLASH:hw,CHAR_LEFT_CURLY_BRACE:Nh,CHAR_LEFT_PARENTHESES:Dh,CHAR_LEFT_SQUARE_BRACKET:JF,CHAR_PLUS:XF,CHAR_QUESTION_MARK:cw,CHAR_RIGHT_CURLY_BRACE:QF,CHAR_RIGHT_PARENTHESES:uw,CHAR_RIGHT_SQUARE_BRACKET:eq}=Fo(),lw=t=>t===hw||t===Bo,fw=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},tq=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=t,u=-1,f=0,h=0,d=!1,m=!1,g=!1,E=!1,v=!1,A=!1,P=!1,B=!1,re=!1,$=!1,se=0,K,Z,M={value:"",depth:0,isGlob:!1},Q=()=>u>=n,R=()=>c.charCodeAt(u+1),ie=()=>(K=Z,c.charCodeAt(++u));for(;u<n;){Z=ie();let T;if(Z===Bo){P=M.backslashes=!0,Z=ie(),Z===Nh&&(A=!0);continue}if(A===!0||Z===Nh){for(se++;Q()!==!0&&(Z=ie());){if(Z===Bo){P=M.backslashes=!0,ie();continue}if(Z===Nh){se++;continue}if(A!==!0&&Z===Ih&&(Z=ie())===Ih){if(d=M.isBrace=!0,g=M.isGlob=!0,$=!0,i===!0)continue;break}if(A!==!0&&Z===ZF){if(d=M.isBrace=!0,g=M.isGlob=!0,$=!0,i===!0)continue;break}if(Z===QF&&(se--,se===0)){A=!1,d=M.isBrace=!0,$=!0;break}}if(i===!0)continue;break}if(Z===hw){if(s.push(u),o.push(M),M={value:"",depth:0,isGlob:!1},$===!0)continue;if(K===Ih&&u===f+1){f+=2;continue}h=u+1;continue}if(r.noext!==!0&&(Z===XF||Z===KF||Z===Ph||Z===cw||Z===Lh)===!0&&R()===Dh){if(g=M.isGlob=!0,E=M.isExtglob=!0,$=!0,Z===Lh&&u===f&&(re=!0),i===!0){for(;Q()!==!0&&(Z=ie());){if(Z===Bo){P=M.backslashes=!0,Z=ie();continue}if(Z===uw){g=M.isGlob=!0,$=!0;break}}continue}break}if(Z===Ph){if(K===Ph&&(v=M.isGlobstar=!0),g=M.isGlob=!0,$=!0,i===!0)continue;break}if(Z===cw){if(g=M.isGlob=!0,$=!0,i===!0)continue;break}if(Z===JF){for(;Q()!==!0&&(T=ie());){if(T===Bo){P=M.backslashes=!0,ie();continue}if(T===eq){m=M.isBracket=!0,g=M.isGlob=!0,$=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&Z===Lh&&u===f){B=M.negated=!0,f++;continue}if(r.noparen!==!0&&Z===Dh){if(g=M.isGlob=!0,i===!0){for(;Q()!==!0&&(Z=ie());){if(Z===Dh){P=M.backslashes=!0,Z=ie();continue}if(Z===uw){$=!0;break}}continue}break}if(g===!0){if($=!0,i===!0)continue;break}}r.noext===!0&&(E=!1,g=!1);let ee=c,fe="",C="";f>0&&(fe=c.slice(0,f),c=c.slice(f),h-=f),ee&&g===!0&&h>0?(ee=c.slice(0,h),C=c.slice(h)):g===!0?(ee="",C=c):ee=c,ee&&ee!==""&&ee!=="/"&&ee!==c&&lw(ee.charCodeAt(ee.length-1))&&(ee=ee.slice(0,-1)),r.unescape===!0&&(C&&(C=aw.removeBackslashes(C)),ee&&P===!0&&(ee=aw.removeBackslashes(ee)));let x={prefix:fe,input:t,start:f,base:ee,glob:C,isBrace:d,isBracket:m,isGlob:g,isExtglob:E,isGlobstar:v,negated:B,negatedExtglob:re};if(r.tokens===!0&&(x.maxDepth=0,lw(Z)||o.push(M),x.tokens=o),r.parts===!0||r.tokens===!0){let T;for(let k=0;k<s.length;k++){let I=T?T+1:f,Y=s[k],j=t.slice(I,Y);r.tokens&&(k===0&&f!==0?(o[k].isPrefix=!0,o[k].value=fe):o[k].value=j,fw(o[k]),x.maxDepth+=o[k].depth),(k!==0||j!=="")&&a.push(j),T=Y}if(T&&T+1<t.length){let k=t.slice(T+1);a.push(k),r.tokens&&(o[o.length-1].value=k,fw(o[o.length-1]),x.maxDepth+=o[o.length-1].depth)}x.slashes=s,x.parts=a}return x};dw.exports=tq});var yw=y((gY,gw)=>{"use strict";l();var gc=Fo(),Lt=qo(),{MAX_LENGTH:yc,POSIX_REGEX_SOURCE:rq,REGEX_NON_SPECIAL_CHARS:nq,REGEX_SPECIAL_CHARS_BACKREF:iq,REPLACEMENTS:mw}=gc,sq=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>Lt.escapeRegex(i)).join("..")}return r},Wi=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,Mh=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=mw[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(yc,r.maxLength):yc,i=t.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?"":"?:",c=Lt.isWindows(e),u=gc.globChars(c),f=gc.extglobChars(u),{DOT_LITERAL:h,PLUS_LITERAL:d,SLASH_LITERAL:m,ONE_CHAR:g,DOTS_SLASH:E,NO_DOT:v,NO_DOT_SLASH:A,NO_DOTS_SLASH:P,QMARK:B,QMARK_NO_DOT:re,STAR:$,START_ANCHOR:se}=u,K=q=>`(${a}(?:(?!${se}${q.dot?E:h}).)*?)`,Z=r.dot?"":v,M=r.dot?B:re,Q=r.bash===!0?K(r):$;r.capture&&(Q=`(${Q})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let R={input:t,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};t=Lt.removePrefix(t,R),i=t.length;let ie=[],ee=[],fe=[],C=s,x,T=()=>R.index===i-1,k=R.peek=(q=1)=>t[R.index+q],I=R.advance=()=>t[++R.index]||"",Y=()=>t.slice(R.index+1),j=(q="",Ee=0)=>{R.consumed+=q,R.index+=Ee},ve=q=>{R.output+=q.output!=null?q.output:q.value,j(q.value)},Ue=()=>{let q=1;for(;k()==="!"&&(k(2)!=="("||k(3)==="?");)I(),R.start++,q++;return q%2===0?!1:(R.negated=!0,R.start++,!0)},ge=q=>{R[q]++,fe.push(q)},De=q=>{R[q]--,fe.pop()},ne=q=>{if(C.type==="globstar"){let Ee=R.braces>0&&(q.type==="comma"||q.type==="brace"),F=q.extglob===!0||ie.length&&(q.type==="pipe"||q.type==="paren");q.type!=="slash"&&q.type!=="paren"&&!Ee&&!F&&(R.output=R.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=Q,R.output+=C.output)}if(ie.length&&q.type!=="paren"&&(ie[ie.length-1].inner+=q.value),(q.value||q.output)&&ve(q),C&&C.type==="text"&&q.type==="text"){C.value+=q.value,C.output=(C.output||"")+q.value;return}q.prev=C,o.push(q),C=q},pt=(q,Ee)=>{let F={...f[Ee],conditions:1,inner:""};F.prev=C,F.parens=R.parens,F.output=R.output;let _=(r.capture?"(":"")+F.open;ge("parens"),ne({type:q,value:Ee,output:R.output?"":g}),ne({type:"paren",extglob:!0,value:I(),output:_}),ie.push(F)},kt=q=>{let Ee=q.close+(r.capture?")":""),F;if(q.type==="negate"){let _=Q;if(q.inner&&q.inner.length>1&&q.inner.includes("/")&&(_=K(r)),(_!==Q||T()||/^\)+$/.test(Y()))&&(Ee=q.close=`)$))${_}`),q.inner.includes("*")&&(F=Y())&&/^\.[^\\/.]+$/.test(F)){let S=Mh(F,{...e,fastpaths:!1}).output;Ee=q.close=`)${S})${_})`}q.prev.type==="bos"&&(R.negatedExtglob=!0)}ne({type:"paren",extglob:!0,value:x,output:Ee}),De("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let q=!1,Ee=t.replace(iq,(F,_,S,b,L,U)=>b==="\\"?(q=!0,F):b==="?"?_?_+b+(L?B.repeat(L.length):""):U===0?M+(L?B.repeat(L.length):""):B.repeat(S.length):b==="."?h.repeat(S.length):b==="*"?_?_+b+(L?Q:""):Q:_?F:`\\${F}`);return q===!0&&(r.unescape===!0?Ee=Ee.replace(/\\/g,""):Ee=Ee.replace(/\\+/g,F=>F.length%2===0?"\\\\":F?"\\":"")),Ee===t&&r.contains===!0?(R.output=t,R):(R.output=Lt.wrapOutput(Ee,R,e),R)}for(;!T();){if(x=I(),x==="\0")continue;if(x==="\\"){let F=k();if(F==="/"&&r.bash!==!0||F==="."||F===";")continue;if(!F){x+="\\",ne({type:"text",value:x});continue}let _=/^\\+/.exec(Y()),S=0;if(_&&_[0].length>2&&(S=_[0].length,R.index+=S,S%2!==0&&(x+="\\")),r.unescape===!0?x=I():x+=I(),R.brackets===0){ne({type:"text",value:x});continue}}if(R.brackets>0&&(x!=="]"||C.value==="["||C.value==="[^")){if(r.posix!==!1&&x===":"){let F=C.value.slice(1);if(F.includes("[")&&(C.posix=!0,F.includes(":"))){let _=C.value.lastIndexOf("["),S=C.value.slice(0,_),b=C.value.slice(_+2),L=rq[b];if(L){C.value=S+L,R.backtrack=!0,I(),!s.output&&o.indexOf(C)===1&&(s.output=g);continue}}}(x==="["&&k()!==":"||x==="-"&&k()==="]")&&(x=`\\${x}`),x==="]"&&(C.value==="["||C.value==="[^")&&(x=`\\${x}`),r.posix===!0&&x==="!"&&C.value==="["&&(x="^"),C.value+=x,ve({value:x});continue}if(R.quotes===1&&x!=='"'){x=Lt.escapeRegex(x),C.value+=x,ve({value:x});continue}if(x==='"'){R.quotes=R.quotes===1?0:1,r.keepQuotes===!0&&ne({type:"text",value:x});continue}if(x==="("){ge("parens"),ne({type:"paren",value:x});continue}if(x===")"){if(R.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Wi("opening","("));let F=ie[ie.length-1];if(F&&R.parens===F.parens+1){kt(ie.pop());continue}ne({type:"paren",value:x,output:R.parens?")":"\\)"}),De("parens");continue}if(x==="["){if(r.nobracket===!0||!Y().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));x=`\\${x}`}else ge("brackets");ne({type:"bracket",value:x});continue}if(x==="]"){if(r.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){ne({type:"text",value:x,output:`\\${x}`});continue}if(R.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Wi("opening","["));ne({type:"text",value:x,output:`\\${x}`});continue}De("brackets");let F=C.value.slice(1);if(C.posix!==!0&&F[0]==="^"&&!F.includes("/")&&(x=`/${x}`),C.value+=x,ve({value:x}),r.literalBrackets===!1||Lt.hasRegexChars(F))continue;let _=Lt.escapeRegex(C.value);if(R.output=R.output.slice(0,-C.value.length),r.literalBrackets===!0){R.output+=_,C.value=_;continue}C.value=`(${a}${_}|${C.value})`,R.output+=C.value;continue}if(x==="{"&&r.nobrace!==!0){ge("braces");let F={type:"brace",value:x,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};ee.push(F),ne(F);continue}if(x==="}"){let F=ee[ee.length-1];if(r.nobrace===!0||!F){ne({type:"text",value:x,output:x});continue}let _=")";if(F.dots===!0){let S=o.slice(),b=[];for(let L=S.length-1;L>=0&&(o.pop(),S[L].type!=="brace");L--)S[L].type!=="dots"&&b.unshift(S[L].value);_=sq(b,r),R.backtrack=!0}if(F.comma!==!0&&F.dots!==!0){let S=R.output.slice(0,F.outputIndex),b=R.tokens.slice(F.tokensIndex);F.value=F.output="\\{",x=_="\\}",R.output=S;for(let L of b)R.output+=L.output||L.value}ne({type:"brace",value:x,output:_}),De("braces"),ee.pop();continue}if(x==="|"){ie.length>0&&ie[ie.length-1].conditions++,ne({type:"text",value:x});continue}if(x===","){let F=x,_=ee[ee.length-1];_&&fe[fe.length-1]==="braces"&&(_.comma=!0,F="|"),ne({type:"comma",value:x,output:F});continue}if(x==="/"){if(C.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",o.pop(),C=s;continue}ne({type:"slash",value:x,output:m});continue}if(x==="."){if(R.braces>0&&C.type==="dot"){C.value==="."&&(C.output=h);let F=ee[ee.length-1];C.type="dots",C.output+=x,C.value+=x,F.dots=!0;continue}if(R.braces+R.parens===0&&C.type!=="bos"&&C.type!=="slash"){ne({type:"text",value:x,output:h});continue}ne({type:"dot",value:x,output:h});continue}if(x==="?"){if(!(C&&C.value==="(")&&r.noextglob!==!0&&k()==="("&&k(2)!=="?"){pt("qmark",x);continue}if(C&&C.type==="paren"){let _=k(),S=x;if(_==="<"&&!Lt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(C.value==="("&&!/[!=<:]/.test(_)||_==="<"&&!/<([!=]|\w+>)/.test(Y()))&&(S=`\\${x}`),ne({type:"text",value:x,output:S});continue}if(r.dot!==!0&&(C.type==="slash"||C.type==="bos")){ne({type:"qmark",value:x,output:re});continue}ne({type:"qmark",value:x,output:B});continue}if(x==="!"){if(r.noextglob!==!0&&k()==="("&&(k(2)!=="?"||!/[!=<:]/.test(k(3)))){pt("negate",x);continue}if(r.nonegate!==!0&&R.index===0){Ue();continue}}if(x==="+"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){pt("plus",x);continue}if(C&&C.value==="("||r.regex===!1){ne({type:"plus",value:x,output:d});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||R.parens>0){ne({type:"plus",value:x});continue}ne({type:"plus",value:d});continue}if(x==="@"){if(r.noextglob!==!0&&k()==="("&&k(2)!=="?"){ne({type:"at",extglob:!0,value:x,output:""});continue}ne({type:"text",value:x});continue}if(x!=="*"){(x==="$"||x==="^")&&(x=`\\${x}`);let F=nq.exec(Y());F&&(x+=F[0],R.index+=F[0].length),ne({type:"text",value:x});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=x,C.output=Q,R.backtrack=!0,R.globstar=!0,j(x);continue}let q=Y();if(r.noextglob!==!0&&/^\([^?]/.test(q)){pt("star",x);continue}if(C.type==="star"){if(r.noglobstar===!0){j(x);continue}let F=C.prev,_=F.prev,S=F.type==="slash"||F.type==="bos",b=_&&(_.type==="star"||_.type==="globstar");if(r.bash===!0&&(!S||q[0]&&q[0]!=="/")){ne({type:"star",value:x,output:""});continue}let L=R.braces>0&&(F.type==="comma"||F.type==="brace"),U=ie.length&&(F.type==="pipe"||F.type==="paren");if(!S&&F.type!=="paren"&&!L&&!U){ne({type:"star",value:x,output:""});continue}for(;q.slice(0,3)==="/**";){let H=t[R.index+4];if(H&&H!=="/")break;q=q.slice(3),j("/**",3)}if(F.type==="bos"&&T()){C.type="globstar",C.value+=x,C.output=K(r),R.output=C.output,R.globstar=!0,j(x);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&!b&&T()){R.output=R.output.slice(0,-(F.output+C.output).length),F.output=`(?:${F.output}`,C.type="globstar",C.output=K(r)+(r.strictSlashes?")":"|$)"),C.value+=x,R.globstar=!0,R.output+=F.output+C.output,j(x);continue}if(F.type==="slash"&&F.prev.type!=="bos"&&q[0]==="/"){let H=q[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(F.output+C.output).length),F.output=`(?:${F.output}`,C.type="globstar",C.output=`${K(r)}${m}|${m}${H})`,C.value+=x,R.output+=F.output+C.output,R.globstar=!0,j(x+I()),ne({type:"slash",value:"/",output:""});continue}if(F.type==="bos"&&q[0]==="/"){C.type="globstar",C.value+=x,C.output=`(?:^|${m}|${K(r)}${m})`,R.output=C.output,R.globstar=!0,j(x+I()),ne({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-C.output.length),C.type="globstar",C.output=K(r),C.value+=x,R.output+=C.output,R.globstar=!0,j(x);continue}let Ee={type:"star",value:x,output:Q};if(r.bash===!0){Ee.output=".*?",(C.type==="bos"||C.type==="slash")&&(Ee.output=Z+Ee.output),ne(Ee);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&r.regex===!0){Ee.output=x,ne(Ee);continue}(R.index===R.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(R.output+=A,C.output+=A):r.dot===!0?(R.output+=P,C.output+=P):(R.output+=Z,C.output+=Z),k()!=="*"&&(R.output+=g,C.output+=g)),ne(Ee)}for(;R.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","]"));R.output=Lt.escapeLast(R.output,"["),De("brackets")}for(;R.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing",")"));R.output=Lt.escapeLast(R.output,"("),De("parens")}for(;R.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Wi("closing","}"));R.output=Lt.escapeLast(R.output,"{"),De("braces")}if(r.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&ne({type:"maybe_slash",value:"",output:`${m}?`}),R.backtrack===!0){R.output="";for(let q of R.tokens)R.output+=q.output!=null?q.output:q.value,q.suffix&&(R.output+=q.suffix)}return R};Mh.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(yc,r.maxLength):yc,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=mw[t]||t;let s=Lt.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:h,NO_DOTS_SLASH:d,STAR:m,START_ANCHOR:g}=gc.globChars(s),E=r.dot?h:f,v=r.dot?d:f,A=r.capture?"":"?:",P={negated:!1,prefix:""},B=r.bash===!0?".*?":m;r.capture&&(B=`(${B})`);let re=Z=>Z.noglobstar===!0?B:`(${A}(?:(?!${g}${Z.dot?u:o}).)*?)`,$=Z=>{switch(Z){case"*":return`${E}${c}${B}`;case".*":return`${o}${c}${B}`;case"*.*":return`${E}${B}${o}${c}${B}`;case"*/*":return`${E}${B}${a}${c}${v}${B}`;case"**":return E+re(r);case"**/*":return`(?:${E}${re(r)}${a})?${v}${c}${B}`;case"**/*.*":return`(?:${E}${re(r)}${a})?${v}${B}${o}${c}${B}`;case"**/.*":return`(?:${E}${re(r)}${a})?${o}${c}${B}`;default:{let M=/^(.*?)\.(\w+)$/.exec(Z);if(!M)return;let Q=$(M[1]);return Q?Q+o+M[2]:void 0}}},se=Lt.removePrefix(t,P),K=$(se);return K&&r.strictSlashes!==!0&&(K+=`${a}?`),K};gw.exports=Mh});var vw=y((yY,_w)=>{"use strict";l();var oq=require("path"),aq=pw(),Fh=yw(),qh=qo(),cq=Fo(),uq=t=>t&&typeof t=="object"&&!Array.isArray(t),Fe=(t,e,r=!1)=>{if(Array.isArray(t)){let f=t.map(d=>Fe(d,e,r));return d=>{for(let m of f){let g=m(d);if(g)return g}return!1}}let n=uq(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},s=qh.isWindows(e),o=n?Fe.compileRe(t,e):Fe.makeRe(t,e,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(i.ignore){let f={...e,ignore:null,onMatch:null,onResult:null};c=Fe(i.ignore,f,r)}let u=(f,h=!1)=>{let{isMatch:d,match:m,output:g}=Fe.test(f,o,e,{glob:t,posix:s}),E={glob:t,state:a,regex:o,posix:s,input:f,output:g,match:m,isMatch:d};return typeof i.onResult=="function"&&i.onResult(E),d===!1?(E.isMatch=!1,h?E:!1):c(f)?(typeof i.onIgnore=="function"&&i.onIgnore(E),E.isMatch=!1,h?E:!1):(typeof i.onMatch=="function"&&i.onMatch(E),h?E:!0)};return r&&(u.state=a),u};Fe.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?qh.toPosixSlashes:null),a=t===n,c=a&&o?o(t):t;return a===!1&&(c=o?o(t):t,a=c===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Fe.matchBase(t,e,r,i):a=e.exec(c)),{isMatch:Boolean(a),match:a,output:c}};Fe.matchBase=(t,e,r,n=qh.isWindows(r))=>(e instanceof RegExp?e:Fe.makeRe(e,r)).test(oq.basename(t));Fe.isMatch=(t,e,r)=>Fe(e,r)(t);Fe.parse=(t,e)=>Array.isArray(t)?t.map(r=>Fe.parse(r,e)):Fh(t,{...e,fastpaths:!1});Fe.scan=(t,e)=>aq(t,e);Fe.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${t.output})${o}`;t&&t.negated===!0&&(a=`^(?!${a}).*$`);let c=Fe.toRegex(a,e);return n===!0&&(c.state=t),c};Fe.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=Fh.fastpaths(t,e)),i.output||(i=Fh(t,e)),Fe.compileRe(i,e,r,n)};Fe.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Fe.constants=cq;_w.exports=Fe});var Ew=y((_Y,bw)=>{"use strict";l();bw.exports=vw()});var Cw=y((vY,Aw)=>{"use strict";l();var xw=require("util"),Sw=tw(),br=Ew(),Bh=qo(),ww=t=>t===""||t==="./",Pe=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<e.length;f++){let h=br(String(e[f]),{...r,onResult:a},!0),d=h.state.negated||h.state.negatedExtglob;d&&o++;for(let m of t){let g=h(m,!0);!(d?!g.isMatch:g.isMatch)||(d?n.add(g.output):(n.delete(g.output),i.add(g.output)))}}let u=(o===e.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(f=>f.replace(/\\/g,"")):e}return u};Pe.match=Pe;Pe.matcher=(t,e)=>br(t,e);Pe.isMatch=(t,e,r)=>br(e,r)(t);Pe.any=Pe.isMatch;Pe.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Pe(t,e,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Pe.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${xw.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>Pe.contains(t,n,r));if(typeof e=="string"){if(ww(t)||ww(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return Pe.isMatch(t,e,{...r,contains:!0})};Pe.matchKeys=(t,e,r)=>{if(!Bh.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=Pe(Object.keys(t),e,r),i={};for(let s of n)i[s]=t[s];return i};Pe.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=br(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Pe.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let s=br(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Pe.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${xw.inspect(t)}"`);return[].concat(e).every(n=>br(n,r)(t))};Pe.capture=(t,e,r)=>{let n=Bh.isWindows(r),s=br.makeRe(String(t),{...r,capture:!0}).exec(n?Bh.toPosixSlashes(e):e);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Pe.makeRe=(...t)=>br.makeRe(...t);Pe.scan=(...t)=>br.scan(...t);Pe.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of Sw(String(n),e))r.push(br.parse(i,e));return r};Pe.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!/\{.*\}/.test(t)?[t]:Sw(t,e)};Pe.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return Pe.braces(t,{...e,expand:!0})};Aw.exports=Pe});var Nw=y(oe=>{"use strict";l();Object.defineProperty(oe,"__esModule",{value:!0});oe.matchAny=oe.convertPatternsToRe=oe.makeRe=oe.getPatternParts=oe.expandBraceExpansion=oe.expandPatternsWithBraceExpansion=oe.isAffectDepthOfReadingPattern=oe.endsWithSlashGlobStar=oe.hasGlobStar=oe.getBaseDirectory=oe.isPatternRelatedToParentDirectory=oe.getPatternsOutsideCurrentDirectory=oe.getPatternsInsideCurrentDirectory=oe.getPositivePatterns=oe.getNegativePatterns=oe.isPositivePattern=oe.isNegativePattern=oe.convertToNegativePattern=oe.convertToPositivePattern=oe.isDynamicPattern=oe.isStaticPattern=void 0;var lq=require("path"),fq=_E(),jh=Cw(),Rw="**",hq="\\",dq=/[*?]|^!/,pq=/\[[^[]*]/,mq=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,gq=/[!*+?@]\([^(]*\)/,yq=/,|\.\./;function Ow(t,e={}){return!Tw(t,e)}oe.isStaticPattern=Ow;function Tw(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(hq)||dq.test(t)||pq.test(t)||mq.test(t)||e.extglob!==!1&&gq.test(t)||e.braceExpansion!==!1&&_q(t))}oe.isDynamicPattern=Tw;function _q(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return yq.test(n)}function vq(t){return _c(t)?t.slice(1):t}oe.convertToPositivePattern=vq;function bq(t){return"!"+t}oe.convertToNegativePattern=bq;function _c(t){return t.startsWith("!")&&t[1]!=="("}oe.isNegativePattern=_c;function kw(t){return!_c(t)}oe.isPositivePattern=kw;function Eq(t){return t.filter(_c)}oe.getNegativePatterns=Eq;function wq(t){return t.filter(kw)}oe.getPositivePatterns=wq;function xq(t){return t.filter(e=>!Hh(e))}oe.getPatternsInsideCurrentDirectory=xq;function Sq(t){return t.filter(Hh)}oe.getPatternsOutsideCurrentDirectory=Sq;function Hh(t){return t.startsWith("..")||t.startsWith("./..")}oe.isPatternRelatedToParentDirectory=Hh;function Aq(t){return fq(t,{flipBackslashes:!1})}oe.getBaseDirectory=Aq;function Cq(t){return t.includes(Rw)}oe.hasGlobStar=Cq;function Pw(t){return t.endsWith("/"+Rw)}oe.endsWithSlashGlobStar=Pw;function Rq(t){let e=lq.basename(t);return Pw(t)||Ow(e)}oe.isAffectDepthOfReadingPattern=Rq;function Oq(t){return t.reduce((e,r)=>e.concat(Iw(r)),[])}oe.expandPatternsWithBraceExpansion=Oq;function Iw(t){return jh.braces(t,{expand:!0,nodupes:!0})}oe.expandBraceExpansion=Iw;function Tq(t,e){let{parts:r}=jh.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}oe.getPatternParts=Tq;function Lw(t,e){return jh.makeRe(t,e)}oe.makeRe=Lw;function kq(t,e){return t.map(r=>Lw(r,e))}oe.convertPatternsToRe=kq;function Pq(t,e){return e.some(r=>r.test(t))}oe.matchAny=Pq});var qw=y((EY,Fw)=>{"use strict";l();var Iq=require("stream"),Dw=Iq.PassThrough,Lq=Array.prototype.slice;Fw.exports=Nq;function Nq(){let t=[],e=Lq.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.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=Dw(n);function a(){for(let f=0,h=arguments.length;f<h;f++)t.push(Mw(arguments[f],n));return c(),this}function c(){if(r)return;r=!0;let f=t.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let h=f.length+1;function d(){--h>0||(r=!1,c())}function m(g){function E(){g.removeListener("merge2UnpipeEnd",E),g.removeListener("end",E),s&&g.removeListener("error",v),d()}function v(A){o.emit("error",A)}if(g._readableState.endEmitted)return d();g.on("merge2UnpipeEnd",E),g.on("end",E),s&&g.on("error",v),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<f.length;g++)m(f[g]);d()}function u(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),e.length&&a.apply(null,e),o}function Mw(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=Mw(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(Dw(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var jw=y(vc=>{"use strict";l();Object.defineProperty(vc,"__esModule",{value:!0});vc.merge=void 0;var Dq=qw();function Mq(t){let e=Dq(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>Bw(t)),e.once("end",()=>Bw(t)),e}vc.merge=Mq;function Bw(t){t.forEach(e=>e.emit("close"))}});var Hw=y(zi=>{"use strict";l();Object.defineProperty(zi,"__esModule",{value:!0});zi.isEmpty=zi.isString=void 0;function Fq(t){return typeof t=="string"}zi.isString=Fq;function qq(t){return t===""}zi.isEmpty=qq});var Ur=y(st=>{"use strict";l();Object.defineProperty(st,"__esModule",{value:!0});st.string=st.stream=st.pattern=st.path=st.fs=st.errno=st.array=void 0;var Bq=cE();st.array=Bq;var jq=uE();st.errno=jq;var Hq=lE();st.fs=Hq;var $q=fE();st.path=$q;var Uq=Nw();st.pattern=Uq;var Gq=jw();st.stream=Gq;var Vq=Hw();st.string=Vq});var Gw=y(ot=>{"use strict";l();Object.defineProperty(ot,"__esModule",{value:!0});ot.convertPatternGroupToTask=ot.convertPatternGroupsToTasks=ot.groupPatternsByBaseDirectory=ot.getNegativePatternsAsPositive=ot.getPositivePatterns=ot.convertPatternsToTasks=ot.generate=void 0;var Gr=Ur();function Wq(t,e){let r=$w(t),n=Uw(t,e.ignore),i=r.filter(c=>Gr.pattern.isStaticPattern(c,e)),s=r.filter(c=>Gr.pattern.isDynamicPattern(c,e)),o=$h(i,n,!1),a=$h(s,n,!0);return o.concat(a)}ot.generate=Wq;function $h(t,e,r){let n=[],i=Gr.pattern.getPatternsOutsideCurrentDirectory(t),s=Gr.pattern.getPatternsInsideCurrentDirectory(t),o=Uh(i),a=Uh(s);return n.push(...Gh(o,e,r)),"."in a?n.push(Vh(".",s,e,r)):n.push(...Gh(a,e,r)),n}ot.convertPatternsToTasks=$h;function $w(t){return Gr.pattern.getPositivePatterns(t)}ot.getPositivePatterns=$w;function Uw(t,e){return Gr.pattern.getNegativePatterns(t).concat(e).map(Gr.pattern.convertToPositivePattern)}ot.getNegativePatternsAsPositive=Uw;function Uh(t){let e={};return t.reduce((r,n)=>{let i=Gr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},e)}ot.groupPatternsByBaseDirectory=Uh;function Gh(t,e,r){return Object.keys(t).map(n=>Vh(n,t[n],e,r))}ot.convertPatternGroupsToTasks=Gh;function Vh(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(Gr.pattern.convertToNegativePattern))}}ot.convertPatternGroupToTask=Vh});var Ww=y(Yi=>{"use strict";l();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.removeDuplicateSlashes=Yi.transform=void 0;var zq=/(?!^)\/{2,}/g;function Yq(t){return t.map(e=>Vw(e))}Yi.transform=Yq;function Vw(t){return t.replace(zq,"/")}Yi.removeDuplicateSlashes=Vw});var Yw=y(bc=>{"use strict";l();Object.defineProperty(bc,"__esModule",{value:!0});bc.read=void 0;function Kq(t,e,r){e.fs.lstat(t,(n,i)=>{if(n!==null){zw(r,n);return}if(!i.isSymbolicLink()||!e.followSymbolicLink){Wh(r,i);return}e.fs.stat(t,(s,o)=>{if(s!==null){if(e.throwErrorOnBrokenSymbolicLink){zw(r,s);return}Wh(r,i);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Wh(r,o)})})}bc.read=Kq;function zw(t,e){t(e)}function Wh(t,e){t(null,e)}});var Kw=y(Ec=>{"use strict";l();Object.defineProperty(Ec,"__esModule",{value:!0});Ec.read=void 0;function Zq(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}Ec.read=Zq});var Zw=y(yn=>{"use strict";l();Object.defineProperty(yn,"__esModule",{value:!0});yn.createFileSystemAdapter=yn.FILE_SYSTEM_ADAPTER=void 0;var wc=require("fs");yn.FILE_SYSTEM_ADAPTER={lstat:wc.lstat,stat:wc.stat,lstatSync:wc.lstatSync,statSync:wc.statSync};function Jq(t){return t===void 0?yn.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},yn.FILE_SYSTEM_ADAPTER),t)}yn.createFileSystemAdapter=Jq});var Jw=y(Yh=>{"use strict";l();Object.defineProperty(Yh,"__esModule",{value:!0});var Xq=Zw(),zh=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Xq.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e!=null?e:r}};Yh.default=zh});var ri=y(_n=>{"use strict";l();Object.defineProperty(_n,"__esModule",{value:!0});_n.statSync=_n.stat=_n.Settings=void 0;var Xw=Yw(),Qq=Kw(),Kh=Jw();_n.Settings=Kh.default;function eB(t,e,r){if(typeof e=="function"){Xw.read(t,Zh(),e);return}Xw.read(t,Zh(e),r)}_n.stat=eB;function tB(t,e){let r=Zh(e);return Qq.read(t,r)}_n.statSync=tB;function Zh(t={}){return t instanceof Kh.default?t:new Kh.default(t)}});var tx=y((IY,ex)=>{l();var Qw;ex.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(Qw||(Qw=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var nx=y((LY,rx)=>{l();rx.exports=nB;var rB=tx();function nB(t,e){let r,n,i,s=!0;Array.isArray(t)?(r=[],n=t.length):(i=Object.keys(t),r={},n=i.length);function o(c){function u(){e&&e(c,r),e=null}s?rB(u):u()}function a(c,u,f){r[c]=f,(--n===0||u)&&o(u)}n?i?i.forEach(function(c){t[c](function(u,f){a(c,u,f)})}):t.forEach(function(c,u){c(function(f,h){a(u,f,h)})}):o(null),s=!1}});var Jh=y(Sc=>{"use strict";l();Object.defineProperty(Sc,"__esModule",{value:!0});Sc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var xc=process.versions.node.split(".");if(xc[0]===void 0||xc[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var ix=Number.parseInt(xc[0],10),iB=Number.parseInt(xc[1],10),sx=10,sB=10,oB=ix>sx,aB=ix===sx&&iB>=sB;Sc.IS_SUPPORT_READDIR_WITH_FILE_TYPES=oB||aB});var ox=y(Ac=>{"use strict";l();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.createDirentFromStats=void 0;var Xh=class{constructor(e,r){this.name=e,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 cB(t,e){return new Xh(t,e)}Ac.createDirentFromStats=cB});var Qh=y(Cc=>{"use strict";l();Object.defineProperty(Cc,"__esModule",{value:!0});Cc.fs=void 0;var uB=ox();Cc.fs=uB});var ed=y(Rc=>{"use strict";l();Object.defineProperty(Rc,"__esModule",{value:!0});Rc.joinPathSegments=void 0;function lB(t,e,r){return t.endsWith(r)?t+e:t+r+e}Rc.joinPathSegments=lB});var hx=y(vn=>{"use strict";l();Object.defineProperty(vn,"__esModule",{value:!0});vn.readdir=vn.readdirWithFileTypes=vn.read=void 0;var fB=ri(),ax=nx(),hB=Jh(),cx=Qh(),ux=ed();function dB(t,e,r){if(!e.stats&&hB.IS_SUPPORT_READDIR_WITH_FILE_TYPES){lx(t,e,r);return}fx(t,e,r)}vn.read=dB;function lx(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,i)=>{if(n!==null){Oc(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:ux.joinPathSegments(t,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){td(r,s);return}let o=s.map(a=>pB(a,e));ax(o,(a,c)=>{if(a!==null){Oc(r,a);return}td(r,c)})})}vn.readdirWithFileTypes=lx;function pB(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,i)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=cx.fs.createDirentFromStats(t.name,i),r(null,t)})}}function fx(t,e,r){e.fs.readdir(t,(n,i)=>{if(n!==null){Oc(r,n);return}let s=i.map(o=>{let a=ux.joinPathSegments(t,o,e.pathSegmentSeparator);return c=>{fB.stat(a,e.fsStatSettings,(u,f)=>{if(u!==null){c(u);return}let h={name:o,path:a,dirent:cx.fs.createDirentFromStats(o,f)};e.stats&&(h.stats=f),c(null,h)})}});ax(s,(o,a)=>{if(o!==null){Oc(r,o);return}td(r,a)})})}vn.readdir=fx;function Oc(t,e){t(e)}function td(t,e){t(null,e)}});var yx=y(bn=>{"use strict";l();Object.defineProperty(bn,"__esModule",{value:!0});bn.readdir=bn.readdirWithFileTypes=bn.read=void 0;var mB=ri(),gB=Jh(),dx=Qh(),px=ed();function yB(t,e){return!e.stats&&gB.IS_SUPPORT_READDIR_WITH_FILE_TYPES?mx(t,e):gx(t,e)}bn.read=yB;function mx(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:px.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let s=e.fs.statSync(i.path);i.dirent=dx.fs.createDirentFromStats(i.name,s)}catch(s){if(e.throwErrorOnBrokenSymbolicLink)throw s}return i})}bn.readdirWithFileTypes=mx;function gx(t,e){return e.fs.readdirSync(t).map(n=>{let i=px.joinPathSegments(t,n,e.pathSegmentSeparator),s=mB.statSync(i,e.fsStatSettings),o={name:n,path:i,dirent:dx.fs.createDirentFromStats(n,s)};return e.stats&&(o.stats=s),o})}bn.readdir=gx});var _x=y(En=>{"use strict";l();Object.defineProperty(En,"__esModule",{value:!0});En.createFileSystemAdapter=En.FILE_SYSTEM_ADAPTER=void 0;var Ki=require("fs");En.FILE_SYSTEM_ADAPTER={lstat:Ki.lstat,stat:Ki.stat,lstatSync:Ki.lstatSync,statSync:Ki.statSync,readdir:Ki.readdir,readdirSync:Ki.readdirSync};function _B(t){return t===void 0?En.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},En.FILE_SYSTEM_ADAPTER),t)}En.createFileSystemAdapter=_B});var vx=y(nd=>{"use strict";l();Object.defineProperty(nd,"__esModule",{value:!0});var vB=require("path"),bB=ri(),EB=_x(),rd=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=EB.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,vB.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new bB.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};nd.default=rd});var Tc=y(wn=>{"use strict";l();Object.defineProperty(wn,"__esModule",{value:!0});wn.Settings=wn.scandirSync=wn.scandir=void 0;var bx=hx(),wB=yx(),id=vx();wn.Settings=id.default;function xB(t,e,r){if(typeof e=="function"){bx.read(t,sd(),e);return}bx.read(t,sd(e),r)}wn.scandir=xB;function SB(t,e){let r=sd(e);return wB.read(t,r)}wn.scandirSync=SB;function sd(t={}){return t instanceof id.default?t:new id.default(t)}});var wx=y((UY,Ex)=>{"use strict";l();function AB(t){var e=new t,r=e;function n(){var s=e;return s.next?e=s.next:(e=new t,r=e),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}Ex.exports=AB});var Sx=y((GY,od)=>{"use strict";l();var CB=wx();function xx(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=CB(RB),i=null,s=null,o=0,a=null,c={push:E,drain:zt,saturated:zt,pause:f,paused:!1,concurrency:r,running:u,resume:m,idle:g,length:h,getQueue:d,unshift:v,empty:zt,kill:P,killAndDrain:B,error:re};return c;function u(){return o}function f(){c.paused=!0}function h(){for(var $=i,se=0;$;)$=$.next,se++;return se}function d(){for(var $=i,se=[];$;)se.push($.value),$=$.next;return se}function m(){if(!!c.paused){c.paused=!1;for(var $=0;$<c.concurrency;$++)o++,A()}}function g(){return o===0&&c.length()===0}function E($,se){var K=n.get();K.context=t,K.release=A,K.value=$,K.callback=se||zt,K.errorHandler=a,o===c.concurrency||c.paused?s?(s.next=K,s=K):(i=K,s=K,c.saturated()):(o++,e.call(t,K.value,K.worked))}function v($,se){var K=n.get();K.context=t,K.release=A,K.value=$,K.callback=se||zt,o===c.concurrency||c.paused?i?(K.next=i,i=K):(i=K,s=K,c.saturated()):(o++,e.call(t,K.value,K.worked))}function A($){$&&n.release($);var se=i;se?c.paused?o--:(s===i&&(s=null),i=se.next,se.next=null,e.call(t,se.value,se.worked),s===null&&c.empty()):--o===0&&c.drain()}function P(){i=null,s=null,c.drain=zt}function B(){i=null,s=null,c.drain(),c.drain=zt}function re($){a=$}}function zt(){}function RB(){this.value=null,this.callback=zt,this.next=null,this.release=zt,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var i=t.callback,s=t.errorHandler,o=t.value;t.value=null,t.callback=zt,t.errorHandler&&s(r,o),i.call(t.context,r,n),t.release(t)}}function OB(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(f,h){e.call(this,f).then(function(d){h(null,d)},h)}var i=xx(t,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=c,i.drained=u,i;function a(f){var h=new Promise(function(d,m){s(f,function(g,E){if(g){m(g);return}d(E)})});return h.catch(zt),h}function c(f){var h=new Promise(function(d,m){o(f,function(g,E){if(g){m(g);return}d(E)})});return h.catch(zt),h}function u(){var f=i.drain,h=new Promise(function(d){i.drain=function(){f(),d()}});return h}}od.exports=xx;od.exports.promise=OB});var kc=y(Er=>{"use strict";l();Object.defineProperty(Er,"__esModule",{value:!0});Er.joinPathSegments=Er.replacePathSegmentSeparator=Er.isAppliedFilter=Er.isFatalError=void 0;function TB(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}Er.isFatalError=TB;function kB(t,e){return t===null||t(e)}Er.isAppliedFilter=kB;function PB(t,e){return t.split(/[/\\]/).join(e)}Er.replacePathSegmentSeparator=PB;function IB(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}Er.joinPathSegments=IB});var ud=y(cd=>{"use strict";l();Object.defineProperty(cd,"__esModule",{value:!0});var LB=kc(),ad=class{constructor(e,r){this._root=e,this._settings=r,this._root=LB.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};cd.default=ad});var hd=y(fd=>{"use strict";l();Object.defineProperty(fd,"__esModule",{value:!0});var NB=require("events"),DB=Tc(),MB=Sx(),Pc=kc(),FB=ud(),ld=class extends FB.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=DB.scandir,this._emitter=new NB.EventEmitter,this._queue=MB(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!Pc.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=Pc.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Pc.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&Pc.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};fd.default=ld});var Ax=y(pd=>{"use strict";l();Object.defineProperty(pd,"__esModule",{value:!0});var qB=hd(),dd=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new qB.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{BB(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{jB(e,this._storage)}),this._reader.read()}};pd.default=dd;function BB(t,e){t(e)}function jB(t,e){t(null,e)}});var Cx=y(gd=>{"use strict";l();Object.defineProperty(gd,"__esModule",{value:!0});var HB=require("stream"),$B=hd(),md=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new $B.default(this._root,this._settings),this._stream=new HB.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};gd.default=md});var Rx=y(_d=>{"use strict";l();Object.defineProperty(_d,"__esModule",{value:!0});var UB=Tc(),Ic=kc(),GB=ud(),yd=class extends GB.default{constructor(){super(...arguments),this._scandir=UB.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(e){if(!!Ic.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=Ic.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),Ic.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Ic.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};_d.default=yd});var Ox=y(bd=>{"use strict";l();Object.defineProperty(bd,"__esModule",{value:!0});var VB=Rx(),vd=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new VB.default(this._root,this._settings)}read(){return this._reader.read()}};bd.default=vd});var Tx=y(wd=>{"use strict";l();Object.defineProperty(wd,"__esModule",{value:!0});var WB=require("path"),zB=Tc(),Ed=class{constructor(e={}){this._options=e,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,WB.sep),this.fsScandirSettings=new zB.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e!=null?e:r}};wd.default=Ed});var Nc=y(wr=>{"use strict";l();Object.defineProperty(wr,"__esModule",{value:!0});wr.Settings=wr.walkStream=wr.walkSync=wr.walk=void 0;var kx=Ax(),YB=Cx(),KB=Ox(),xd=Tx();wr.Settings=xd.default;function ZB(t,e,r){if(typeof e=="function"){new kx.default(t,Lc()).read(e);return}new kx.default(t,Lc(e)).read(r)}wr.walk=ZB;function JB(t,e){let r=Lc(e);return new KB.default(t,r).read()}wr.walkSync=JB;function XB(t,e){let r=Lc(e);return new YB.default(t,r).read()}wr.walkStream=XB;function Lc(t={}){return t instanceof xd.default?t:new xd.default(t)}});var Dc=y(Ad=>{"use strict";l();Object.defineProperty(Ad,"__esModule",{value:!0});var QB=require("path"),e3=ri(),Px=Ur(),Sd=class{constructor(e){this._settings=e,this._fsStatSettings=new e3.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return QB.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:Px.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!Px.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};Ad.default=Sd});var Od=y(Rd=>{"use strict";l();Object.defineProperty(Rd,"__esModule",{value:!0});var t3=require("stream"),r3=ri(),n3=Nc(),i3=Dc(),Cd=class extends i3.default{constructor(){super(...arguments),this._walkStream=n3.walkStream,this._stat=r3.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),i=new t3.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],e[s],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(e,r,n){return this._getStat(e).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Rd.default=Cd});var Ix=y(kd=>{"use strict";l();Object.defineProperty(kd,"__esModule",{value:!0});var s3=Nc(),o3=Dc(),a3=Od(),Td=class extends o3.default{constructor(){super(...arguments),this._walkAsync=s3.walk,this._readerStream=new a3.default(this._settings)}dynamic(e,r){return new Promise((n,i)=>{this._walkAsync(e,r,(s,o)=>{s===null?n(o):i(s)})})}async static(e,r){let n=[],i=this._readerStream.static(e,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};kd.default=Td});var Lx=y(Id=>{"use strict";l();Object.defineProperty(Id,"__esModule",{value:!0});var Zi=Ur(),Pd=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let e=Zi.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of e){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(e){return Zi.pattern.getPatternParts(e,this._micromatchOptions).map(n=>Zi.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Zi.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return Zi.array.splitWhen(e,r=>r.dynamic&&Zi.pattern.hasGlobStar(r.pattern))}};Id.default=Pd});var Nx=y(Nd=>{"use strict";l();Object.defineProperty(Nd,"__esModule",{value:!0});var c3=Lx(),Ld=class extends c3.default{match(e){let r=e.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((c,u)=>{let f=s.segments[u];return!!(f.dynamic&&f.patternRe.test(c)||!f.dynamic&&f.pattern===c)}))return!0}return!1}};Nd.default=Ld});var Dx=y(Md=>{"use strict";l();Object.defineProperty(Md,"__esModule",{value:!0});var Mc=Ur(),u3=Nx(),Dd=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(e,o,i,s)}_getMatcher(e){return new u3.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(Mc.pattern.isAffectDepthOfReadingPattern);return Mc.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,i){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Mc.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let i=e.split("/").length;return n-i}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!Mc.pattern.matchAny(e,r)}};Md.default=Dd});var Mx=y(qd=>{"use strict";l();Object.defineProperty(qd,"__esModule",{value:!0});var ni=Ur(),Fd=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let n=ni.pattern.convertPatternsToRe(e,this._micromatchOptions),i=ni.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(e,r,n){if(this._settings.unique&&this._isDuplicateEntry(e)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(e.path,n))return!1;let i=this._settings.baseNameMatch?e.name:e.path,s=e.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(e.path,n,s);return this._settings.unique&&o&&this._createIndexRecord(e),o}_isDuplicateEntry(e){return this.index.has(e.path)}_createIndexRecord(e){this.index.set(e.path,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,r){if(!this._settings.absolute)return!1;let n=ni.path.makeAbsolute(this._settings.cwd,e);return ni.pattern.matchAny(n,r)}_isMatchToPatterns(e,r,n){let i=ni.path.removeLeadingDotSegment(e),s=ni.pattern.matchAny(i,r);return!s&&n?ni.pattern.matchAny(i+"/",r):s}};qd.default=Fd});var Fx=y(jd=>{"use strict";l();Object.defineProperty(jd,"__esModule",{value:!0});var l3=Ur(),Bd=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return l3.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};jd.default=Bd});var Bx=y($d=>{"use strict";l();Object.defineProperty($d,"__esModule",{value:!0});var qx=Ur(),Hd=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=qx.path.makeAbsolute(this._settings.cwd,r),r=qx.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};$d.default=Hd});var Fc=y(Gd=>{"use strict";l();Object.defineProperty(Gd,"__esModule",{value:!0});var f3=require("path"),h3=Dx(),d3=Mx(),p3=Fx(),m3=Bx(),Ud=class{constructor(e){this._settings=e,this.errorFilter=new p3.default(this._settings),this.entryFilter=new d3.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new h3.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new m3.default(this._settings)}_getRootDirectory(e){return f3.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.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}}};Gd.default=Ud});var jx=y(Wd=>{"use strict";l();Object.defineProperty(Wd,"__esModule",{value:!0});var g3=Ix(),y3=Fc(),Vd=class extends y3.default{constructor(){super(...arguments),this._reader=new g3.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(s=>n.transform(s))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Wd.default=Vd});var Hx=y(Yd=>{"use strict";l();Object.defineProperty(Yd,"__esModule",{value:!0});var _3=require("stream"),v3=Od(),b3=Fc(),zd=class extends b3.default{constructor(){super(...arguments),this._reader=new v3.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),i=this.api(r,e,n),s=new _3.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(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Yd.default=zd});var $x=y(Zd=>{"use strict";l();Object.defineProperty(Zd,"__esModule",{value:!0});var E3=ri(),w3=Nc(),x3=Dc(),Kd=class extends x3.default{constructor(){super(...arguments),this._walkSync=w3.walkSync,this._statSync=E3.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let i of e){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(e,r,n){try{let i=this._getStat(e);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Zd.default=Kd});var Ux=y(Xd=>{"use strict";l();Object.defineProperty(Xd,"__esModule",{value:!0});var S3=$x(),A3=Fc(),Jd=class extends A3.default{constructor(){super(...arguments),this._reader=new S3.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Xd.default=Jd});var Gx=y(Xi=>{"use strict";l();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Ji=require("fs"),C3=require("os"),R3=Math.max(C3.cpus().length,1);Xi.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Ji.lstat,lstatSync:Ji.lstatSync,stat:Ji.stat,statSync:Ji.statSync,readdir:Ji.readdir,readdirSync:Ji.readdirSync};var Qd=class{constructor(e={}){this._options=e,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,R3),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(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Xi.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Xi.default=Qd});var Yx=y((mK,zx)=>{"use strict";l();var Vx=Gw(),Wx=Ww(),O3=jx(),T3=Hx(),k3=Ux(),ep=Gx(),ii=Ur();async function tp(t,e){Qi(t);let r=rp(t,O3.default,e),n=await Promise.all(r);return ii.array.flatten(n)}(function(t){function e(o,a){Qi(o);let c=rp(o,k3.default,a);return ii.array.flatten(c)}t.sync=e;function r(o,a){Qi(o);let c=rp(o,T3.default,a);return ii.stream.merge(c)}t.stream=r;function n(o,a){Qi(o);let c=Wx.transform([].concat(o)),u=new ep.default(a);return Vx.generate(c,u)}t.generateTasks=n;function i(o,a){Qi(o);let c=new ep.default(a);return ii.pattern.isDynamicPattern(o,c)}t.isDynamicPattern=i;function s(o){return Qi(o),ii.path.escape(o)}t.escapePath=s})(tp||(tp={}));function rp(t,e,r){let n=Wx.transform([].concat(t)),i=new ep.default(r),s=Vx.generate(n,i),o=new e(i);return s.map(o.read,o)}function Qi(t){if(![].concat(t).every(n=>ii.string.isString(n)&&!ii.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}zx.exports=tp});var Bc=y((gK,np)=>{l();var Kx=process.argv||[],qc=process.env,P3=!("NO_COLOR"in qc||Kx.includes("--no-color"))&&("FORCE_COLOR"in qc||Kx.includes("--color")||process.platform==="win32"||require!=null&&require("tty").isatty(1)&&qc.TERM!=="dumb"||"CI"in qc),I3=(t,e,r=t)=>n=>{let i=""+n,s=i.indexOf(e,t.length);return~s?t+L3(i,e,r,s)+e:t+i+e},L3=(t,e,r,n)=>{let i="",s=0;do i+=t.substring(s,n)+r,s=n+e.length,n=t.indexOf(e,s);while(~n);return i+t.substring(s)},Zx=(t=P3)=>{let e=t?I3:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m")}};np.exports=Zx();np.exports.createColors=Zx});var Xx=y((yK,Jx)=>{"use strict";l();Jx.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var ip=y((_K,e1)=>{l();var jo=Xx(),Qx={};for(let t of Object.keys(jo))Qx[jo[t]]=t;var W={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e1.exports=W;for(let t of Object.keys(W)){if(!("channels"in W[t]))throw new Error("missing channels property: "+t);if(!("labels"in W[t]))throw new Error("missing channel labels property: "+t);if(W[t].labels.length!==W[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=W[t];delete W[t].channels,delete W[t].labels,Object.defineProperty(W[t],"channels",{value:e}),Object.defineProperty(W[t],"labels",{value:r})}W.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+s)/2;return s===i?c=0:u<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,u*100]};W.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(o,a,c),f=u-Math.min(o,a,c),h=function(d){return(u-d)/6/f+1/2};return f===0?(i=0,s=0):(s=f/u,e=h(o),r=h(a),n=h(c),o===u?i=n-r:a===u?i=1/3+e-n:c===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};W.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=W.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};W.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function N3(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}W.rgb.keyword=function(t){let e=Qx[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(jo)){let s=jo[i],o=N3(t,s);o<r&&(r=o,n=i)}return n};W.keyword.rgb=function(t){return jo[t]};W.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};W.rgb.lab=function(t){let e=W.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};W.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,c=[0,0,0];for(let u=0;u<3;u++)s=e+1/3*-(u-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,c[u]=o*255;return c};W.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};W.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};W.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};W.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,(o&1)!==0&&(s=1-s);let c=r+s*(a-r),u,f,h;switch(o){default:case 6:case 0:u=a,f=c,h=r;break;case 1:u=c,f=a,h=r;break;case 2:u=r,f=a,h=c;break;case 3:u=r,f=c,h=a;break;case 4:u=c,f=r,h=a;break;case 5:u=a,f=r,h=c;break}return[u*255,f*255,h*255]};W.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};W.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};W.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};W.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,c=i**3,u=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};W.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};W.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};W.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?W.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};W.hsv.ansi16=function(t){return W.rgb.ansi16(W.hsv.rgb(t),t[2])};W.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};W.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};W.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};W.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};W.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};W.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o,c/=6,c%=1,[c*360,o*100,a*100]};W.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};W.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};W.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};W.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};W.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};W.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};W.hwb.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};W.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};W.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};W.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};W.gray.hsl=function(t){return[0,0,t[0]]};W.gray.hsv=W.gray.hsl;W.gray.hwb=function(t){return[0,100,t[0]]};W.gray.cmyk=function(t){return[0,0,0,t[0]]};W.gray.lab=function(t){return[t[0],0,0]};W.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};W.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var r1=y((vK,t1)=>{l();var jc=ip();function D3(){let t={},e=Object.keys(jc);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function M3(t){let e=D3(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(jc[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}}return e}function F3(t,e){return function(r){return e(t(r))}}function q3(t,e){let r=[e[t].parent,t],n=jc[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=F3(jc[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}t1.exports=function(t){let e=M3(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=q3(o,e))}return r}});var i1=y((bK,n1)=>{l();var sp=ip(),B3=r1(),es={},j3=Object.keys(sp);function H3(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function $3(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}j3.forEach(t=>{es[t]={},Object.defineProperty(es[t],"channels",{value:sp[t].channels}),Object.defineProperty(es[t],"labels",{value:sp[t].labels});let e=B3(t);Object.keys(e).forEach(n=>{let i=e[n];es[t][n]=$3(i),es[t][n].raw=H3(i)})});n1.exports=es});var ap=y((EK,u1)=>{"use strict";l();var s1=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,o1=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},a1=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},Hc=t=>t,c1=(t,e,r)=>[t,e,r],ts=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},op,rs=(t,e,r,n)=>{op===void 0&&(op=i1());let i=n?10:0,s={};for(let[o,a]of Object.entries(op)){let c=o==="ansi16"?"ansi":o;o===e?s[c]=t(r,i):typeof a=="object"&&(s[c]=t(a[e],i))}return s};function U3(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",ts(e.color,"ansi",()=>rs(s1,"ansi16",Hc,!1)),ts(e.color,"ansi256",()=>rs(o1,"ansi256",Hc,!1)),ts(e.color,"ansi16m",()=>rs(a1,"rgb",c1,!1)),ts(e.bgColor,"ansi",()=>rs(s1,"ansi16",Hc,!0)),ts(e.bgColor,"ansi256",()=>rs(o1,"ansi256",Hc,!0)),ts(e.bgColor,"ansi16m",()=>rs(a1,"rgb",c1,!0)),e}Object.defineProperty(u1,"exports",{enumerable:!0,get:U3})});var f1=y((wK,l1)=>{"use strict";l();l1.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var lp=y((xK,d1)=>{"use strict";l();var G3=require("os"),h1=require("tty"),Yt=f1(),{env:ze}=process,xn;Yt("no-color")||Yt("no-colors")||Yt("color=false")||Yt("color=never")?xn=0:(Yt("color")||Yt("colors")||Yt("color=true")||Yt("color=always"))&&(xn=1);"FORCE_COLOR"in ze&&(ze.FORCE_COLOR==="true"?xn=1:ze.FORCE_COLOR==="false"?xn=0:xn=ze.FORCE_COLOR.length===0?1:Math.min(parseInt(ze.FORCE_COLOR,10),3));function cp(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function up(t,e){if(xn===0)return 0;if(Yt("color=16m")||Yt("color=full")||Yt("color=truecolor"))return 3;if(Yt("color=256"))return 2;if(t&&!e&&xn===void 0)return 0;let r=xn||0;if(ze.TERM==="dumb")return r;if(process.platform==="win32"){let n=G3.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in ze)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in ze)||ze.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in ze)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ze.TEAMCITY_VERSION)?1:0;if(ze.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ze){let n=parseInt((ze.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ze.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ze.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ze.TERM)||"COLORTERM"in ze?1:r}function V3(t){let e=up(t,t&&t.isTTY);return cp(e)}d1.exports={supportsColor:V3,stdout:cp(up(!0,h1.isatty(1))),stderr:cp(up(!0,h1.isatty(2)))}});var m1=y((SK,p1)=>{"use strict";l();var W3=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},z3=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
30
30
|
`:`
|
|
31
31
|
`)+r,i=n+1,n=t.indexOf(`
|
|
32
32
|
`,i)}while(n!==-1);return s+=t.substr(i),s};p1.exports={stringReplaceAll:W3,stringEncaseCRLFWithFirstIndex:z3}});var b1=y((AK,v1)=>{"use strict";l();var Y3=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,g1=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,K3=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Z3=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,J3=new Map([["n",`
|
|
33
33
|
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function _1(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):J3.get(t)||t}function X3(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(K3))r.push(i[2].replace(Z3,(a,c,u)=>c?_1(c):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Q3(t){g1.lastIndex=0;let e=[],r;for(;(r=g1.exec(t))!==null;){let n=r[1];if(r[2]){let i=X3(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function y1(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(!!Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}v1.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Y3,(s,o,a,c,u,f)=>{if(o)i.push(_1(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:y1(t,r)(h)),r.push({inverse:a,styles:Q3(c)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(y1(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var A1=y((CK,S1)=>{"use strict";l();var Ho=ap(),{stdout:hp,stderr:dp}=lp(),{stringReplaceAll:ej,stringEncaseCRLFWithFirstIndex:tj}=m1(),E1=["ansi","ansi","ansi256","ansi16m"],ns=Object.create(null),rj=(t,e={})=>{if(e.level>3||e.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let r=hp?hp.level:0;t.level=e.level===void 0?r:e.level},pp=class{constructor(e){return w1(e)}},w1=t=>{let e={};return rj(e,t),e.template=(...r)=>sj(e.template,...r),Object.setPrototypeOf(e,$c.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=pp,e.template};function $c(t){return w1(t)}for(let[t,e]of Object.entries(Ho))ns[t]={get(){let r=Uc(this,mp(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};ns.visible={get(){let t=Uc(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var x1=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of x1)ns[t]={get(){let{level:e}=this;return function(...r){let n=mp(Ho.color[E1[e]][t](...r),Ho.color.close,this._styler);return Uc(this,n,this._isEmpty)}}};for(let t of x1){let e="bg"+t[0].toUpperCase()+t.slice(1);ns[e]={get(){let{level:r}=this;return function(...n){let i=mp(Ho.bgColor[E1[r]][t](...n),Ho.bgColor.close,this._styler);return Uc(this,i,this._isEmpty)}}}}var nj=Object.defineProperties(()=>{},{...ns,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),mp=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Uc=(t,e,r)=>{let n=(...i)=>ij(n,i.length===1?""+i[0]:i.join(" "));return n.__proto__=nj,n._generator=t,n._styler=e,n._isEmpty=r,n},ij=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=ej(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
34
|
-
`);return s!==-1&&(e=tj(e,i,n,s)),n+e+i},fp,sj=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return fp===void 0&&(fp=b1()),fp(t,i.join(""))};Object.defineProperties($c.prototype,ns);var $o=$c();$o.supportsColor=hp;$o.stderr=$c({level:dp?dp.level:0});$o.stderr.supportsColor=dp;$o.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};S1.exports=$o});var R1=y((RK,gp)=>{"use strict";l();var C1=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};gp.exports=C1;gp.exports.default=C1});var yp=y((OK,Vc)=>{"use strict";l();var oj=R1(),Gc=new WeakMap,O1=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Gc.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return oj(s,t),Gc.set(s,n),s};Vc.exports=O1;Vc.exports.default=O1;Vc.exports.callCount=t=>{if(!Gc.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Gc.get(t)}});var T1=y((TK,Wc)=>{l();Wc.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Wc.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Wc.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var bp=y((kK,os)=>{l();var Ie=global.process,si=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};si(Ie)?(k1=require("assert"),is=T1(),P1=/^win/i.test(Ie.platform),Uo=require("events"),typeof Uo!="function"&&(Uo=Uo.EventEmitter),Ie.__signal_exit_emitter__?Ye=Ie.__signal_exit_emitter__:(Ye=Ie.__signal_exit_emitter__=new Uo,Ye.count=0,Ye.emitted={}),Ye.infinite||(Ye.setMaxListeners(1/0),Ye.infinite=!0),os.exports=function(t,e){if(!si(global.process))return function(){};k1.equal(typeof t,"function","a callback must be provided for exit handler"),ss===!1&&_p();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Ye.removeListener(r,t),Ye.listeners("exit").length===0&&Ye.listeners("afterexit").length===0&&zc()};return Ye.on(r,t),n},zc=function(){!ss||!si(global.process)||(ss=!1,is.forEach(function(e){try{Ie.removeListener(e,Yc[e])}catch{}}),Ie.emit=Kc,Ie.reallyExit=vp,Ye.count-=1)},os.exports.unload=zc,oi=function(e,r,n){Ye.emitted[e]||(Ye.emitted[e]=!0,Ye.emit(e,r,n))},Yc={},is.forEach(function(t){Yc[t]=function(){if(!!si(global.process)){var r=Ie.listeners(t);r.length===Ye.count&&(zc(),oi("exit",null,t),oi("afterexit",null,t),P1&&t==="SIGHUP"&&(t="SIGINT"),Ie.kill(Ie.pid,t))}}}),os.exports.signals=function(){return is},ss=!1,_p=function(){ss||!si(global.process)||(ss=!0,Ye.count+=1,is=is.filter(function(e){try{return Ie.on(e,Yc[e]),!0}catch{return!1}}),Ie.emit=L1,Ie.reallyExit=I1)},os.exports.load=_p,vp=Ie.reallyExit,I1=function(e){!si(global.process)||(Ie.exitCode=e||0,oi("exit",Ie.exitCode,null),oi("afterexit",Ie.exitCode,null),vp.call(Ie,Ie.exitCode))},Kc=Ie.emit,L1=function(e,r){if(e==="exit"&&si(global.process)){r!==void 0&&(Ie.exitCode=r);var n=Kc.apply(this,arguments);return oi("exit",Ie.exitCode,null),oi("afterexit",Ie.exitCode,null),n}else return Kc.apply(this,arguments)}):os.exports=function(){return function(){}};var k1,is,P1,Uo,Ye,zc,oi,Yc,ss,_p,vp,I1,Kc,L1});var D1=y((PK,N1)=>{"use strict";l();var aj=yp(),cj=bp();N1.exports=aj(()=>{cj(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var M1=y(as=>{"use strict";l();var uj=D1(),Zc=!1;as.show=(t=process.stderr)=>{!t.isTTY||(Zc=!1,t.write("\x1B[?25h"))};as.hide=(t=process.stderr)=>{!t.isTTY||(uj(),Zc=!0,t.write("\x1B[?25l"))};as.toggle=(t,e)=>{t!==void 0&&(Zc=t),Zc?as.show(e):as.hide(e)}});var F1=y((LK,lj)=>{lj.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var j1=y((NK,B1)=>{"use strict";l();var Jc=Object.assign({},F1()),q1=Object.keys(Jc);Object.defineProperty(Jc,"random",{get(){let t=Math.floor(Math.random()*q1.length),e=q1[t];return Jc[e]}});B1.exports=Jc});var $1=y((DK,H1)=>{"use strict";l();var fj=/[|\\{}()[\]^$+*?.]/g;H1.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(fj,"\\$&")}});var G1=y((MK,U1)=>{"use strict";l();U1.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Ep=y((FK,Y1)=>{l();var ai=G1(),z1={};for(Xc in ai)ai.hasOwnProperty(Xc)&&(z1[ai[Xc]]=Xc);var Xc,W=Y1.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(gt in W)if(W.hasOwnProperty(gt)){if(!("channels"in W[gt]))throw new Error("missing channels property: "+gt);if(!("labels"in W[gt]))throw new Error("missing channel labels property: "+gt);if(W[gt].labels.length!==W[gt].channels)throw new Error("channel and label counts mismatch: "+gt);V1=W[gt].channels,W1=W[gt].labels,delete W[gt].channels,delete W[gt].labels,Object.defineProperty(W[gt],"channels",{value:V1}),Object.defineProperty(W[gt],"labels",{value:W1})}var V1,W1,gt;W.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c,u;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),u=(i+s)/2,s===i?c=0:u<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,u*100]};W.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(o,a,c),f=u-Math.min(o,a,c),h=function(d){return(u-d)/6/f+1/2};return f===0?i=s=0:(s=f/u,e=h(o),r=h(a),n=h(c),o===u?i=n-r:a===u?i=1/3+e-n:c===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};W.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=W.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};W.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function hj(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}W.rgb.keyword=function(t){var e=z1[t];if(e)return e;var r=1/0,n;for(var i in ai)if(ai.hasOwnProperty(i)){var s=ai[i],o=hj(t,s);o<r&&(r=o,n=i)}return n};W.keyword.rgb=function(t){return ai[t]};W.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};W.rgb.lab=function(t){var e=W.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};W.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var u=0;u<3;u++)o=e+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(s-i)*6*o:2*o<1?c=s:3*o<2?c=i+(s-i)*(2/3-o)*6:c=i,a[u]=c*255;return a};W.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};W.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};W.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};W.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,c;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,(s&1)!==0&&(a=1-a),c=r+a*(o-r);var u,f,h;switch(s){default:case 6:case 0:u=o,f=c,h=r;break;case 1:u=c,f=o,h=r;break;case 2:u=r,f=o,h=c;break;case 3:u=r,f=c,h=o;break;case 4:u=c,f=r,h=o;break;case 5:u=o,f=r,h=c;break}return[u*255,f*255,h*255]};W.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};W.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};W.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};W.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),c=Math.pow(i,3),u=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};W.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};W.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};W.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:W.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};W.hsv.ansi16=function(t){return W.rgb.ansi16(W.hsv.rgb(t),t[2])};W.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};W.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};W.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};W.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};W.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};W.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o+4,c/=6,c%=1,[c*360,o*100,a*100]};W.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};W.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};W.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};W.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};W.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};W.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};W.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};W.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};W.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};W.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};W.gray.hsl=W.gray.hsv=function(t){return[0,0,t[0]]};W.gray.hwb=function(t){return[0,100,t[0]]};W.gray.cmyk=function(t){return[0,0,0,t[0]]};W.gray.lab=function(t){return[t[0],0,0]};W.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};W.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var Z1=y((qK,K1)=>{l();var Qc=Ep();function dj(){for(var t={},e=Object.keys(Qc),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function pj(t){var e=dj(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Qc[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}return e}function mj(t,e){return function(r){return e(t(r))}}function gj(t,e){for(var r=[e[t].parent,t],n=Qc[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=mj(Qc[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}K1.exports=function(t){for(var e=pj(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=gj(o,e))}return r}});var X1=y((BK,J1)=>{l();var wp=Ep(),yj=Z1(),cs={},_j=Object.keys(wp);function vj(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function bj(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}_j.forEach(function(t){cs[t]={},Object.defineProperty(cs[t],"channels",{value:wp[t].channels}),Object.defineProperty(cs[t],"labels",{value:wp[t].labels});var e=yj(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];cs[t][n]=bj(i),cs[t][n].raw=vj(i)})});J1.exports=cs});var eS=y((jK,Q1)=>{"use strict";l();var us=X1(),eu=(t,e)=>function(){return`\x1B[${t.apply(us,arguments)+e}m`},tu=(t,e)=>function(){let r=t.apply(us,arguments);return`\x1B[${38+e};5;${r}m`},ru=(t,e)=>function(){let r=t.apply(us,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function Ej(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:eu(r,0)},e.color.ansi256={ansi256:tu(r,0)},e.color.ansi16m={rgb:ru(n,0)},e.bgColor.ansi={ansi:eu(r,10)},e.bgColor.ansi256={ansi256:tu(r,10)},e.bgColor.ansi16m={rgb:ru(n,10)};for(let i of Object.keys(us)){if(typeof us[i]!="object")continue;let s=us[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=eu(s.ansi16,0),e.bgColor.ansi[i]=eu(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=tu(s.ansi256,0),e.bgColor.ansi256[i]=tu(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=ru(s.rgb,0),e.bgColor.ansi16m[i]=ru(s.rgb,10))}return e}Object.defineProperty(Q1,"exports",{enumerable:!0,get:Ej})});var rS=y((HK,tS)=>{"use strict";l();tS.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var iS=y(($K,nS)=>{"use strict";l();var wj=require("os"),ur=rS(),at=process.env,ls;ur("no-color")||ur("no-colors")||ur("color=false")?ls=!1:(ur("color")||ur("colors")||ur("color=true")||ur("color=always"))&&(ls=!0);"FORCE_COLOR"in at&&(ls=at.FORCE_COLOR.length===0||parseInt(at.FORCE_COLOR,10)!==0);function xj(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Sj(t){if(ls===!1)return 0;if(ur("color=16m")||ur("color=full")||ur("color=truecolor"))return 3;if(ur("color=256"))return 2;if(t&&!t.isTTY&&ls!==!0)return 0;let e=ls?1:0;if(process.platform==="win32"){let r=wj.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in at)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in at)||at.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in at)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(at.TEAMCITY_VERSION)?1:0;if(at.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in at){let r=parseInt((at.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(at.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(at.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(at.TERM)||"COLORTERM"in at?1:(at.TERM==="dumb",e)}function xp(t){let e=Sj(t);return xj(e)}nS.exports={supportsColor:xp,stdout:xp(process.stdout),stderr:xp(process.stderr)}});var uS=y((UK,cS)=>{"use strict";l();var Aj=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,sS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Cj=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Rj=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Oj=new Map([["n",`
|
|
35
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function aS(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):Oj.get(t)||t}function Tj(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(Cj))r.push(i[2].replace(Rj,(o,a,c)=>a?aS(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function kj(t){sS.lastIndex=0;let e=[],r;for(;(r=sS.exec(t))!==null;){let n=r[1];if(r[2]){let i=Tj(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function oS(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}cS.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Aj,(s,o,a,c,u,f)=>{if(o)i.push(aS(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:oS(t,r)(h)),r.push({inverse:a,styles:kj(c)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(oS(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var pS=y((GK,Vo)=>{"use strict";l();var Ap=$1(),$e=eS(),Sp=iS().stdout,Pj=uS(),fS=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),hS=["ansi","ansi","ansi256","ansi16m"],dS=new Set(["gray"]),fs=Object.create(null);function lS(t,e){e=e||{};let r=Sp?Sp.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Go(t){if(!this||!(this instanceof Go)||this.template){let e={};return lS(e,t),e.template=function(){let r=[].slice.call(arguments);return Nj.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Go.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Go,e.template}lS(this,t)}fS&&($e.blue.open="\x1B[94m");for(let t of Object.keys($e))$e[t].closeRe=new RegExp(Ap($e[t].close),"g"),fs[t]={get(){let e=$e[t];return nu.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};fs.visible={get(){return nu.call(this,this._styles||[],!0,"visible")}};$e.color.closeRe=new RegExp(Ap($e.color.close),"g");for(let t of Object.keys($e.color.ansi))dS.has(t)||(fs[t]={get(){let e=this.level;return function(){let n={open:$e.color[hS[e]][t].apply(null,arguments),close:$e.color.close,closeRe:$e.color.closeRe};return nu.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});$e.bgColor.closeRe=new RegExp(Ap($e.bgColor.close),"g");for(let t of Object.keys($e.bgColor.ansi)){if(dS.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);fs[e]={get(){let r=this.level;return function(){let i={open:$e.bgColor[hS[r]][t].apply(null,arguments),close:$e.bgColor.close,closeRe:$e.bgColor.closeRe};return nu.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var Ij=Object.defineProperties(()=>{},fs);function nu(t,e,r){let n=function(){return Lj.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=Ij,n}function Lj(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=$e.dim.open;fS&&this.hasGrey&&($e.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return $e.dim.open=n,r}function Nj(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return Pj(t,n.join(""))}Object.defineProperties(Go.prototype,fs);Vo.exports=Go();Vo.exports.supportsColor=Sp;Vo.exports.default=Vo.exports});var gS=y((VK,mS)=>{"use strict";l();var Sn=pS(),Dj=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",Mj={info:Sn.blue("\u2139"),success:Sn.green("\u2714"),warning:Sn.yellow("\u26A0"),error:Sn.red("\u2716")},Fj={info:Sn.blue("i"),success:Sn.green("\u221A"),warning:Sn.yellow("\u203C"),error:Sn.red("\xD7")};mS.exports=Dj?Mj:Fj});var _S=y((WK,yS)=>{"use strict";l();yS.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var bS=y((zK,vS)=>{"use strict";l();var qj=_S();vS.exports=t=>typeof t=="string"?t.replace(qj(),""):t});var ES=y((YK,iu)=>{l();var Bj=function(){"use strict";function t(o,a,c,u){var f;typeof a=="object"&&(c=a.depth,u=a.prototype,f=a.filter,a=a.circular);var h=[],d=[],g=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof c>"u"&&(c=1/0);function m(E,v){if(E===null)return null;if(v==0)return E;var A,P;if(typeof E!="object")return E;if(t.__isArray(E))A=[];else if(t.__isRegExp(E))A=new RegExp(E.source,s(E)),E.lastIndex&&(A.lastIndex=E.lastIndex);else if(t.__isDate(E))A=new Date(E.getTime());else{if(g&&Buffer.isBuffer(E))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(E.length):A=new Buffer(E.length),E.copy(A),A;typeof u>"u"?(P=Object.getPrototypeOf(E),A=Object.create(P)):(A=Object.create(u),P=u)}if(a){var D=h.indexOf(E);if(D!=-1)return d[D];h.push(E),d.push(A)}for(var ie in E){var z;P&&(z=Object.getOwnPropertyDescriptor(P,ie)),!(z&&z.set==null)&&(A[ie]=m(E[ie],v-1))}return A}return m(o,c)}t.clonePrototype=function(a){if(a===null)return null;var c=function(){};return c.prototype=a,new c};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof iu=="object"&&iu.exports&&(iu.exports=Bj)});var xS=y((KK,wS)=>{l();var jj=ES();wS.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=jj(e[r]))}),t}});var AS=y((ZK,SS)=>{l();SS.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 TS=y((JK,Cp)=>{"use strict";l();var Hj=xS(),Wo=AS(),RS={nul:0,control:0};Cp.exports=function(e){return OS(e,RS)};Cp.exports.config=function(t){return t=Hj(t||{},RS),function(r){return OS(r,t)}};function OS(t,e){if(typeof t!="string")return CS(t,e);for(var r=0,n=0;n<t.length;n++){var i=CS(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function CS(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:$j(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function $j(t){var e=0,r=Wo.length-1,n;if(t<Wo[0][0]||t>Wo[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>Wo[n][1])e=n+1;else if(t<Wo[n][0])r=n-1;else return!0;return!1}});var PS=y((XK,kS)=>{"use strict";l();kS.exports=({stream:t=process.stdout}={})=>Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var LS=y((QK,IS)=>{l();var Rp=require("stream");IS.exports=Ke;function Ke(t){Rp.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Ke.prototype=Object.create(Rp.prototype);Object.defineProperty(Ke.prototype,"constructor",{value:Ke,enumerable:!1});Ke.prototype.mute=function(){this.muted=!0};Ke.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ke.prototype,"_onpipe",{value:Uj,enumerable:!1,writable:!0,configurable:!0});function Uj(t){this._src=t}Object.defineProperty(Ke.prototype,"isTTY",{get:Gj,set:Vj,enumerable:!0,configurable:!0});function Gj(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function Vj(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ke.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ke.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ke.prototype.pipe=function(t,e){return this._dest=t,Rp.prototype.pipe.call(this,t,e)};Ke.prototype.pause=function(){if(this._src)return this._src.pause()};Ke.prototype.resume=function(){if(this._src)return this._src.resume()};Ke.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Ke.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function Op(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Ke.prototype.destroy=Op("destroy");Ke.prototype.destroySoon=Op("destroySoon");Ke.prototype.close=Op("close")});var DS=y((eZ,Pp)=>{"use strict";l();var Wj=require("readline"),zj=A1(),NS=M1(),su=j1(),ou=gS(),Yj=bS(),Kj=TS(),Zj=PS(),Jj=LS(),Tp=Symbol("text"),au=Symbol("prefixText"),Xj=3,kp=class{constructor(){this.requests=0,this.mutedStream=new Jj,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(Xj)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=Wj.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},cu,uu=class{constructor(e){cu||(cu=new kp),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Zj({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=su.line;else if(e===void 0)this._spinner=su.dots;else if(su[e])this._spinner=su[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Tp]}get prefixText(){return this[au]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[au]=="string"?this[au]+"-":"";this.lineCount=Yj(r+"--"+this[Tp]).split(`
|
|
34
|
+
`);return s!==-1&&(e=tj(e,i,n,s)),n+e+i},fp,sj=(t,...e)=>{let[r]=e;if(!Array.isArray(r))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return fp===void 0&&(fp=b1()),fp(t,i.join(""))};Object.defineProperties($c.prototype,ns);var $o=$c();$o.supportsColor=hp;$o.stderr=$c({level:dp?dp.level:0});$o.stderr.supportsColor=dp;$o.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};S1.exports=$o});var R1=y((RK,gp)=>{"use strict";l();var C1=(t,e)=>{for(let r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};gp.exports=C1;gp.exports.default=C1});var yp=y((OK,Vc)=>{"use strict";l();var oj=R1(),Gc=new WeakMap,O1=(t,e={})=>{if(typeof t!="function")throw new TypeError("Expected a function");let r,n=0,i=t.displayName||t.name||"<anonymous>",s=function(...o){if(Gc.set(s,++n),n===1)r=t.apply(this,o),t=null;else if(e.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return oj(s,t),Gc.set(s,n),s};Vc.exports=O1;Vc.exports.default=O1;Vc.exports.callCount=t=>{if(!Gc.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Gc.get(t)}});var T1=y((TK,Wc)=>{l();Wc.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Wc.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Wc.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var bp=y((kK,os)=>{l();var Ie=global.process,si=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};si(Ie)?(k1=require("assert"),is=T1(),P1=/^win/i.test(Ie.platform),Uo=require("events"),typeof Uo!="function"&&(Uo=Uo.EventEmitter),Ie.__signal_exit_emitter__?Ye=Ie.__signal_exit_emitter__:(Ye=Ie.__signal_exit_emitter__=new Uo,Ye.count=0,Ye.emitted={}),Ye.infinite||(Ye.setMaxListeners(1/0),Ye.infinite=!0),os.exports=function(t,e){if(!si(global.process))return function(){};k1.equal(typeof t,"function","a callback must be provided for exit handler"),ss===!1&&_p();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){Ye.removeListener(r,t),Ye.listeners("exit").length===0&&Ye.listeners("afterexit").length===0&&zc()};return Ye.on(r,t),n},zc=function(){!ss||!si(global.process)||(ss=!1,is.forEach(function(e){try{Ie.removeListener(e,Yc[e])}catch{}}),Ie.emit=Kc,Ie.reallyExit=vp,Ye.count-=1)},os.exports.unload=zc,oi=function(e,r,n){Ye.emitted[e]||(Ye.emitted[e]=!0,Ye.emit(e,r,n))},Yc={},is.forEach(function(t){Yc[t]=function(){if(!!si(global.process)){var r=Ie.listeners(t);r.length===Ye.count&&(zc(),oi("exit",null,t),oi("afterexit",null,t),P1&&t==="SIGHUP"&&(t="SIGINT"),Ie.kill(Ie.pid,t))}}}),os.exports.signals=function(){return is},ss=!1,_p=function(){ss||!si(global.process)||(ss=!0,Ye.count+=1,is=is.filter(function(e){try{return Ie.on(e,Yc[e]),!0}catch{return!1}}),Ie.emit=L1,Ie.reallyExit=I1)},os.exports.load=_p,vp=Ie.reallyExit,I1=function(e){!si(global.process)||(Ie.exitCode=e||0,oi("exit",Ie.exitCode,null),oi("afterexit",Ie.exitCode,null),vp.call(Ie,Ie.exitCode))},Kc=Ie.emit,L1=function(e,r){if(e==="exit"&&si(global.process)){r!==void 0&&(Ie.exitCode=r);var n=Kc.apply(this,arguments);return oi("exit",Ie.exitCode,null),oi("afterexit",Ie.exitCode,null),n}else return Kc.apply(this,arguments)}):os.exports=function(){return function(){}};var k1,is,P1,Uo,Ye,zc,oi,Yc,ss,_p,vp,I1,Kc,L1});var D1=y((PK,N1)=>{"use strict";l();var aj=yp(),cj=bp();N1.exports=aj(()=>{cj(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var M1=y(as=>{"use strict";l();var uj=D1(),Zc=!1;as.show=(t=process.stderr)=>{!t.isTTY||(Zc=!1,t.write("\x1B[?25h"))};as.hide=(t=process.stderr)=>{!t.isTTY||(uj(),Zc=!0,t.write("\x1B[?25l"))};as.toggle=(t,e)=>{t!==void 0&&(Zc=t),Zc?as.show(e):as.hide(e)}});var F1=y((LK,lj)=>{lj.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}});var j1=y((NK,B1)=>{"use strict";l();var Jc=Object.assign({},F1()),q1=Object.keys(Jc);Object.defineProperty(Jc,"random",{get(){let t=Math.floor(Math.random()*q1.length),e=q1[t];return Jc[e]}});B1.exports=Jc});var $1=y((DK,H1)=>{"use strict";l();var fj=/[|\\{}()[\]^$+*?.]/g;H1.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(fj,"\\$&")}});var G1=y((MK,U1)=>{"use strict";l();U1.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Ep=y((FK,Y1)=>{l();var ai=G1(),z1={};for(Xc in ai)ai.hasOwnProperty(Xc)&&(z1[ai[Xc]]=Xc);var Xc,z=Y1.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(gt in z)if(z.hasOwnProperty(gt)){if(!("channels"in z[gt]))throw new Error("missing channels property: "+gt);if(!("labels"in z[gt]))throw new Error("missing channel labels property: "+gt);if(z[gt].labels.length!==z[gt].channels)throw new Error("channel and label counts mismatch: "+gt);V1=z[gt].channels,W1=z[gt].labels,delete z[gt].channels,delete z[gt].labels,Object.defineProperty(z[gt],"channels",{value:V1}),Object.defineProperty(z[gt],"labels",{value:W1})}var V1,W1,gt;z.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c,u;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),u=(i+s)/2,s===i?c=0:u<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,u*100]};z.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,u=Math.max(o,a,c),f=u-Math.min(o,a,c),h=function(d){return(u-d)/6/f+1/2};return f===0?i=s=0:(s=f/u,e=h(o),r=h(a),n=h(c),o===u?i=n-r:a===u?i=1/3+e-n:c===u&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,u*100]};z.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=z.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};z.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function hj(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}z.rgb.keyword=function(t){var e=z1[t];if(e)return e;var r=1/0,n;for(var i in ai)if(ai.hasOwnProperty(i)){var s=ai[i],o=hj(t,s);o<r&&(r=o,n=i)}return n};z.keyword.rgb=function(t){return ai[t]};z.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};z.rgb.lab=function(t){var e=z.rgb.xyz(t),r=e[0],n=e[1],i=e[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};z.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var u=0;u<3;u++)o=e+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(s-i)*6*o:2*o<1?c=s:3*o<2?c=i+(s-i)*(2/3-o)*6:c=i,a[u]=c*255;return a};z.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[e,o*100,a*100]};z.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};z.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[e,o*100,a*100]};z.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,c;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,(s&1)!==0&&(a=1-a),c=r+a*(o-r);var u,f,h;switch(s){default:case 6:case 0:u=o,f=c,h=r;break;case 1:u=c,f=o,h=r;break;case 2:u=r,f=o,h=c;break;case 3:u=r,f=c,h=o;break;case 4:u=c,f=r,h=o;break;case 5:u=o,f=r,h=c;break}return[u*255,f*255,h*255]};z.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};z.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};z.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(e-r),o=200*(r-n),[i,s,o]};z.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),c=Math.pow(i,3),u=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};z.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[e,o,s]};z.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};z.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:z.rgb.hsv(t)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return i===2&&(s+=60),s};z.hsv.ansi16=function(t){return z.rgb.ansi16(z.hsv.rgb(t),t[2])};z.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};z.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};z.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};z.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};z.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};z.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o+4,c/=6,c%=1,[c*360,o*100,a*100]};z.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};z.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};z.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};z.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};z.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};z.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};z.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};z.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};z.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};z.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};z.gray.hsl=z.gray.hsv=function(t){return[0,0,t[0]]};z.gray.hwb=function(t){return[0,100,t[0]]};z.gray.cmyk=function(t){return[0,0,0,t[0]]};z.gray.lab=function(t){return[t[0],0,0]};z.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};z.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var Z1=y((qK,K1)=>{l();var Qc=Ep();function dj(){for(var t={},e=Object.keys(Qc),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function pj(t){var e=dj(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Qc[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}return e}function mj(t,e){return function(r){return e(t(r))}}function gj(t,e){for(var r=[e[t].parent,t],n=Qc[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=mj(Qc[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}K1.exports=function(t){for(var e=pj(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=gj(o,e))}return r}});var X1=y((BK,J1)=>{l();var wp=Ep(),yj=Z1(),cs={},_j=Object.keys(wp);function vj(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function bj(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}_j.forEach(function(t){cs[t]={},Object.defineProperty(cs[t],"channels",{value:wp[t].channels}),Object.defineProperty(cs[t],"labels",{value:wp[t].labels});var e=yj(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];cs[t][n]=bj(i),cs[t][n].raw=vj(i)})});J1.exports=cs});var eS=y((jK,Q1)=>{"use strict";l();var us=X1(),eu=(t,e)=>function(){return`\x1B[${t.apply(us,arguments)+e}m`},tu=(t,e)=>function(){let r=t.apply(us,arguments);return`\x1B[${38+e};5;${r}m`},ru=(t,e)=>function(){let r=t.apply(us,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function Ej(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],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],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:eu(r,0)},e.color.ansi256={ansi256:tu(r,0)},e.color.ansi16m={rgb:ru(n,0)},e.bgColor.ansi={ansi:eu(r,10)},e.bgColor.ansi256={ansi256:tu(r,10)},e.bgColor.ansi16m={rgb:ru(n,10)};for(let i of Object.keys(us)){if(typeof us[i]!="object")continue;let s=us[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=eu(s.ansi16,0),e.bgColor.ansi[i]=eu(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=tu(s.ansi256,0),e.bgColor.ansi256[i]=tu(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=ru(s.rgb,0),e.bgColor.ansi16m[i]=ru(s.rgb,10))}return e}Object.defineProperty(Q1,"exports",{enumerable:!0,get:Ej})});var rS=y((HK,tS)=>{"use strict";l();tS.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var iS=y(($K,nS)=>{"use strict";l();var wj=require("os"),ur=rS(),at=process.env,ls;ur("no-color")||ur("no-colors")||ur("color=false")?ls=!1:(ur("color")||ur("colors")||ur("color=true")||ur("color=always"))&&(ls=!0);"FORCE_COLOR"in at&&(ls=at.FORCE_COLOR.length===0||parseInt(at.FORCE_COLOR,10)!==0);function xj(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Sj(t){if(ls===!1)return 0;if(ur("color=16m")||ur("color=full")||ur("color=truecolor"))return 3;if(ur("color=256"))return 2;if(t&&!t.isTTY&&ls!==!0)return 0;let e=ls?1:0;if(process.platform==="win32"){let r=wj.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in at)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in at)||at.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in at)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(at.TEAMCITY_VERSION)?1:0;if(at.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in at){let r=parseInt((at.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(at.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(at.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(at.TERM)||"COLORTERM"in at?1:(at.TERM==="dumb",e)}function xp(t){let e=Sj(t);return xj(e)}nS.exports={supportsColor:xp,stdout:xp(process.stdout),stderr:xp(process.stderr)}});var uS=y((UK,cS)=>{"use strict";l();var Aj=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,sS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Cj=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Rj=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Oj=new Map([["n",`
|
|
35
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function aS(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):Oj.get(t)||t}function Tj(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(Cj))r.push(i[2].replace(Rj,(o,a,c)=>a?aS(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function kj(t){sS.lastIndex=0;let e=[],r;for(;(r=sS.exec(t))!==null;){let n=r[1];if(r[2]){let i=Tj(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function oS(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}cS.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Aj,(s,o,a,c,u,f)=>{if(o)i.push(aS(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:oS(t,r)(h)),r.push({inverse:a,styles:kj(c)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(oS(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var pS=y((GK,Vo)=>{"use strict";l();var Ap=$1(),$e=eS(),Sp=iS().stdout,Pj=uS(),fS=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),hS=["ansi","ansi","ansi256","ansi16m"],dS=new Set(["gray"]),fs=Object.create(null);function lS(t,e){e=e||{};let r=Sp?Sp.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Go(t){if(!this||!(this instanceof Go)||this.template){let e={};return lS(e,t),e.template=function(){let r=[].slice.call(arguments);return Nj.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Go.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Go,e.template}lS(this,t)}fS&&($e.blue.open="\x1B[94m");for(let t of Object.keys($e))$e[t].closeRe=new RegExp(Ap($e[t].close),"g"),fs[t]={get(){let e=$e[t];return nu.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};fs.visible={get(){return nu.call(this,this._styles||[],!0,"visible")}};$e.color.closeRe=new RegExp(Ap($e.color.close),"g");for(let t of Object.keys($e.color.ansi))dS.has(t)||(fs[t]={get(){let e=this.level;return function(){let n={open:$e.color[hS[e]][t].apply(null,arguments),close:$e.color.close,closeRe:$e.color.closeRe};return nu.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});$e.bgColor.closeRe=new RegExp(Ap($e.bgColor.close),"g");for(let t of Object.keys($e.bgColor.ansi)){if(dS.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);fs[e]={get(){let r=this.level;return function(){let i={open:$e.bgColor[hS[r]][t].apply(null,arguments),close:$e.bgColor.close,closeRe:$e.bgColor.closeRe};return nu.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var Ij=Object.defineProperties(()=>{},fs);function nu(t,e,r){let n=function(){return Lj.apply(n,arguments)};n._styles=t,n._empty=e;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=Ij,n}function Lj(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=$e.dim.open;fS&&this.hasGrey&&($e.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return $e.dim.open=n,r}function Nj(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return Pj(t,n.join(""))}Object.defineProperties(Go.prototype,fs);Vo.exports=Go();Vo.exports.supportsColor=Sp;Vo.exports.default=Vo.exports});var gS=y((VK,mS)=>{"use strict";l();var Sn=pS(),Dj=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",Mj={info:Sn.blue("\u2139"),success:Sn.green("\u2714"),warning:Sn.yellow("\u26A0"),error:Sn.red("\u2716")},Fj={info:Sn.blue("i"),success:Sn.green("\u221A"),warning:Sn.yellow("\u203C"),error:Sn.red("\xD7")};mS.exports=Dj?Mj:Fj});var _S=y((WK,yS)=>{"use strict";l();yS.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var bS=y((zK,vS)=>{"use strict";l();var qj=_S();vS.exports=t=>typeof t=="string"?t.replace(qj(),""):t});var ES=y((YK,iu)=>{l();var Bj=function(){"use strict";function t(o,a,c,u){var f;typeof a=="object"&&(c=a.depth,u=a.prototype,f=a.filter,a=a.circular);var h=[],d=[],m=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof c>"u"&&(c=1/0);function g(E,v){if(E===null)return null;if(v==0)return E;var A,P;if(typeof E!="object")return E;if(t.__isArray(E))A=[];else if(t.__isRegExp(E))A=new RegExp(E.source,s(E)),E.lastIndex&&(A.lastIndex=E.lastIndex);else if(t.__isDate(E))A=new Date(E.getTime());else{if(m&&Buffer.isBuffer(E))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(E.length):A=new Buffer(E.length),E.copy(A),A;typeof u>"u"?(P=Object.getPrototypeOf(E),A=Object.create(P)):(A=Object.create(u),P=u)}if(a){var B=h.indexOf(E);if(B!=-1)return d[B];h.push(E),d.push(A)}for(var re in E){var $;P&&($=Object.getOwnPropertyDescriptor(P,re)),!($&&$.set==null)&&(A[re]=g(E[re],v-1))}return A}return g(o,c)}t.clonePrototype=function(a){if(a===null)return null;var c=function(){};return c.prototype=a,new c};function e(o){return Object.prototype.toString.call(o)}t.__objToStr=e;function r(o){return typeof o=="object"&&e(o)==="[object Date]"}t.__isDate=r;function n(o){return typeof o=="object"&&e(o)==="[object Array]"}t.__isArray=n;function i(o){return typeof o=="object"&&e(o)==="[object RegExp]"}t.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return t.__getRegExpFlags=s,t}();typeof iu=="object"&&iu.exports&&(iu.exports=Bj)});var xS=y((KK,wS)=>{l();var jj=ES();wS.exports=function(t,e){return t=t||{},Object.keys(e).forEach(function(r){typeof t[r]>"u"&&(t[r]=jj(e[r]))}),t}});var AS=y((ZK,SS)=>{l();SS.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 TS=y((JK,Cp)=>{"use strict";l();var Hj=xS(),Wo=AS(),RS={nul:0,control:0};Cp.exports=function(e){return OS(e,RS)};Cp.exports.config=function(t){return t=Hj(t||{},RS),function(r){return OS(r,t)}};function OS(t,e){if(typeof t!="string")return CS(t,e);for(var r=0,n=0;n<t.length;n++){var i=CS(t.charCodeAt(n),e);if(i<0)return-1;r+=i}return r}function CS(t,e){return t===0?e.nul:t<32||t>=127&&t<160?e.control:$j(t)?0:1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function $j(t){var e=0,r=Wo.length-1,n;if(t<Wo[0][0]||t>Wo[r][1])return!1;for(;r>=e;)if(n=Math.floor((e+r)/2),t>Wo[n][1])e=n+1;else if(t<Wo[n][0])r=n-1;else return!0;return!1}});var PS=y((XK,kS)=>{"use strict";l();kS.exports=({stream:t=process.stdout}={})=>Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var LS=y((QK,IS)=>{l();var Rp=require("stream");IS.exports=Ke;function Ke(t){Rp.apply(this),t=t||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}Ke.prototype=Object.create(Rp.prototype);Object.defineProperty(Ke.prototype,"constructor",{value:Ke,enumerable:!1});Ke.prototype.mute=function(){this.muted=!0};Ke.prototype.unmute=function(){this.muted=!1};Object.defineProperty(Ke.prototype,"_onpipe",{value:Uj,enumerable:!1,writable:!0,configurable:!0});function Uj(t){this._src=t}Object.defineProperty(Ke.prototype,"isTTY",{get:Gj,set:Vj,enumerable:!0,configurable:!0});function Gj(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function Vj(t){Object.defineProperty(this,"isTTY",{value:t,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(Ke.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0});Object.defineProperty(Ke.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0});Ke.prototype.pipe=function(t,e){return this._dest=t,Rp.prototype.pipe.call(this,t,e)};Ke.prototype.pause=function(){if(this._src)return this._src.pause()};Ke.prototype.resume=function(){if(this._src)return this._src.resume()};Ke.prototype.write=function(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.substr(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.substr(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)};Ke.prototype.end=function(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")};function Op(t){return function(){var e=this._dest,r=this._src;e&&e[t]&&e[t].apply(e,arguments),r&&r[t]&&r[t].apply(r,arguments)}}Ke.prototype.destroy=Op("destroy");Ke.prototype.destroySoon=Op("destroySoon");Ke.prototype.close=Op("close")});var DS=y((eZ,Pp)=>{"use strict";l();var Wj=require("readline"),zj=A1(),NS=M1(),su=j1(),ou=gS(),Yj=bS(),Kj=TS(),Zj=PS(),Jj=LS(),Tp=Symbol("text"),au=Symbol("prefixText"),Xj=3,kp=class{constructor(){this.requests=0,this.mutedStream=new Jj,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let e=this;this.ourEmit=function(r,n,...i){let{stdin:s}=process;if(e.requests>0||s.emit===e.ourEmit){if(r==="keypress")return;r==="data"&&n.includes(Xj)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[r,n,...i])}else Reflect.apply(process.stdin.emit,this,[r,n,...i])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=Wj.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},cu,uu=class{constructor(e){cu||(cu=new kp),typeof e=="string"&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:Zj({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){e!==void 0&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,typeof e=="object"){if(e.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(process.platform==="win32")this._spinner=su.line;else if(e===void 0)this._spinner=su.dots;else if(su[e])this._spinner=su[e];else throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[Tp]}get prefixText(){return this[au]}get isSpinning(){return this.id!==void 0}updateLineCount(){let e=this.stream.columns||80,r=typeof this[au]=="string"?this[au]+"-":"";this.lineCount=Yj(r+"--"+this[Tp]).split(`
|
|
36
36
|
`).reduce((n,i)=>n+Math.max(1,Math.ceil(Kj(i)/e)),0)}set text(e){this[Tp]=e,this.updateLineCount()}set prefixText(e){this[au]=e,this.updateLineCount()}frame(){let{frames:e}=this.spinner,r=e[this.frameIndex];this.color&&(r=zj[this.color](r)),this.frameIndex=++this.frameIndex%e.length;let n=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(e){return e&&(this.text=e),this.isEnabled?this.isSpinning?this:(this.hideCursor&&NS.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,cu.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
37
37
|
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&NS.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(cu.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:ou.success,text:e})}fail(e){return this.stopAndPersist({symbol:ou.error,text:e})}warn(e){return this.stopAndPersist({symbol:ou.warning,text:e})}info(e){return this.stopAndPersist({symbol:ou.info,text:e})}stopAndPersist(e={}){let r=e.prefixText||this.prefixText,n=typeof r=="string"&&r!==""?r+" ":"",i=e.text||this.text,s=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${n}${e.symbol||" "}${s}
|
|
38
38
|
`),this}},Qj=function(t){return new uu(t)};Pp.exports=Qj;Pp.exports.promise=(t,e)=>{if(typeof t.then!="function")throw new TypeError("Parameter `action` must be a Promise");let r=new uu(e);return r.start(),(async()=>{try{await t,r.succeed()}catch{r.fail()}})(),r}});var FS=y((tZ,MS)=>{"use strict";l();var eH=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},tH=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
@@ -40,20 +40,20 @@ GFS4: `),console.error(t)});Ne[Qe]||(d_=global[Qe]||[],m_(Ne,d_),Ne.close=functi
|
|
|
40
40
|
`)+r,i=n+1,n=t.indexOf(`
|
|
41
41
|
`,i)}while(n!==-1);return s+=t.substr(i),s};MS.exports={stringReplaceAll:eH,stringEncaseCRLFWithFirstIndex:tH}});var $S=y((rZ,HS)=>{"use strict";l();var rH=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,qS=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,nH=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,iH=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,sH=new Map([["n",`
|
|
42
42
|
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function jS(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):sH.get(t)||t}function oH(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(nH))r.push(i[2].replace(iH,(a,c,u)=>c?jS(c):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function aH(t){qS.lastIndex=0;let e=[],r;for(;(r=qS.exec(t))!==null;){let n=r[1];if(r[2]){let i=oH(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function BS(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;for(let[i,s]of Object.entries(r))if(!!Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}HS.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(rH,(s,o,a,c,u,f)=>{if(o)i.push(jS(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:BS(t,r)(h)),r.push({inverse:a,styles:aH(c)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(BS(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var KS=y((nZ,YS)=>{"use strict";l();var zo=ap(),{stdout:Lp,stderr:Np}=lp(),{stringReplaceAll:cH,stringEncaseCRLFWithFirstIndex:uH}=FS(),{isArray:lu}=Array,GS=["ansi","ansi","ansi256","ansi16m"],hs=Object.create(null),lH=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Lp?Lp.level:0;t.level=e.level===void 0?r:e.level},Dp=class{constructor(e){return VS(e)}},VS=t=>{let e={};return lH(e,t),e.template=(...r)=>zS(e.template,...r),Object.setPrototypeOf(e,fu.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Dp,e.template};function fu(t){return VS(t)}for(let[t,e]of Object.entries(zo))hs[t]={get(){let r=hu(this,Mp(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};hs.visible={get(){let t=hu(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var WS=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of WS)hs[t]={get(){let{level:e}=this;return function(...r){let n=Mp(zo.color[GS[e]][t](...r),zo.color.close,this._styler);return hu(this,n,this._isEmpty)}}};for(let t of WS){let e="bg"+t[0].toUpperCase()+t.slice(1);hs[e]={get(){let{level:r}=this;return function(...n){let i=Mp(zo.bgColor[GS[r]][t](...n),zo.bgColor.close,this._styler);return hu(this,i,this._isEmpty)}}}}var fH=Object.defineProperties(()=>{},{...hs,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Mp=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},hu=(t,e,r)=>{let n=(...i)=>lu(i[0])&&lu(i[0].raw)?US(n,zS(n,...i)):US(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,fH),n._generator=t,n._styler=e,n._isEmpty=r,n},US=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=cH(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
43
|
-
`);return s!==-1&&(e=uH(e,i,n,s)),n+e+i},Ip,zS=(t,...e)=>{let[r]=e;if(!lu(r)||!lu(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Ip===void 0&&(Ip=$S()),Ip(t,i.join(""))};Object.defineProperties(fu.prototype,hs);var du=fu();du.supportsColor=Lp;du.stderr=fu({level:Np?Np.level:0});du.stderr.supportsColor=Np;YS.exports=du});var ZS=y((iZ,pu)=>{l();(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function c(_,S){if(_=_||"",S=S||{},_ instanceof c)return _;if(!(this instanceof c))return new c(_,S);var b=u(_);this._originalInput=_,this._r=b.r,this._g=b.g,this._b=b.b,this._a=b.a,this._roundA=i(100*this._a)/100,this._format=S.format||b.format,this._gradientType=S.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=b.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var _=this.toRgb();return(_.r*299+_.g*587+_.b*114)/1e3},getLuminance:function(){var _=this.toRgb(),S,b,L,$,H,ye;return S=_.r/255,b=_.g/255,L=_.b/255,S<=.03928?$=S/12.92:$=t.pow((S+.055)/1.055,2.4),b<=.03928?H=b/12.92:H=t.pow((b+.055)/1.055,2.4),L<=.03928?ye=L/12.92:ye=t.pow((L+.055)/1.055,2.4),.2126*$+.7152*H+.0722*ye},setAlpha:function(_){return this._a=k(_),this._roundA=i(100*this._a)/100,this},toHsv:function(){var _=g(this._r,this._g,this._b);return{h:_.h*360,s:_.s,v:_.v,a:this._a}},toHsvString:function(){var _=g(this._r,this._g,this._b),S=i(_.h*360),b=i(_.s*100),L=i(_.v*100);return this._a==1?"hsv("+S+", "+b+"%, "+L+"%)":"hsva("+S+", "+b+"%, "+L+"%, "+this._roundA+")"},toHsl:function(){var _=h(this._r,this._g,this._b);return{h:_.h*360,s:_.s,l:_.l,a:this._a}},toHslString:function(){var _=h(this._r,this._g,this._b),S=i(_.h*360),b=i(_.s*100),L=i(_.l*100);return this._a==1?"hsl("+S+", "+b+"%, "+L+"%)":"hsla("+S+", "+b+"%, "+L+"%, "+this._roundA+")"},toHex:function(_){return E(this._r,this._g,this._b,_)},toHexString:function(_){return"#"+this.toHex(_)},toHex8:function(_){return v(this._r,this._g,this._b,this._a,_)},toHex8String:function(_){return"#"+this.toHex8(_)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(I(this._r,255)*100)+"%",g:i(I(this._g,255)*100)+"%",b:i(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(I(this._r,255)*100)+"%, "+i(I(this._g,255)*100)+"%, "+i(I(this._b,255)*100)+"%)":"rgba("+i(I(this._r,255)*100)+"%, "+i(I(this._g,255)*100)+"%, "+i(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:x[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(_){var S="#"+A(this._r,this._g,this._b,this._a),b=S,L=this._gradientType?"GradientType = 1, ":"";if(_){var $=c(_);b="#"+A($._r,$._g,$._b,$._a)}return"progid:DXImageTransform.Microsoft.gradient("+L+"startColorstr="+S+",endColorstr="+b+")"},toString:function(_){var S=!!_;_=_||this._format;var b=!1,L=this._a<1&&this._a>=0,$=!S&&L&&(_==="hex"||_==="hex6"||_==="hex3"||_==="hex4"||_==="hex8"||_==="name");return $?_==="name"&&this._a===0?this.toName():this.toRgbString():(_==="rgb"&&(b=this.toRgbString()),_==="prgb"&&(b=this.toPercentageRgbString()),(_==="hex"||_==="hex6")&&(b=this.toHexString()),_==="hex3"&&(b=this.toHexString(!0)),_==="hex4"&&(b=this.toHex8String(!0)),_==="hex8"&&(b=this.toHex8String()),_==="name"&&(b=this.toName()),_==="hsl"&&(b=this.toHslString()),_==="hsv"&&(b=this.toHsvString()),b||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(_,S){var b=_.apply(null,[this].concat([].slice.call(S)));return this._r=b._r,this._g=b._g,this._b=b._b,this.setAlpha(b._a),this},lighten:function(){return this._applyModification(z,arguments)},brighten:function(){return this._applyModification(ue,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(P,arguments)},saturate:function(){return this._applyModification(D,arguments)},greyscale:function(){return this._applyModification(ie,arguments)},spin:function(){return this._applyModification(Z,arguments)},_applyCombination:function(_,S){return _.apply(null,[this].concat([].slice.call(S)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(F,arguments)},monochromatic:function(){return this._applyCombination(fe,arguments)},splitcomplement:function(){return this._applyCombination(ne,arguments)},triad:function(){return this._applyCombination(Q,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},c.fromRatio=function(_,S){if(typeof _=="object"){var b={};for(var L in _)_.hasOwnProperty(L)&&(L==="a"?b[L]=_[L]:b[L]=De(_[L]));_=b}return c(_,S)};function u(_){var S={r:0,g:0,b:0},b=1,L=null,$=null,H=null,ye=!1,Le=!1;return typeof _=="string"&&(_=Ee(_)),typeof _=="object"&&(B(_.r)&&B(_.g)&&B(_.b)?(S=f(_.r,_.g,_.b),ye=!0,Le=String(_.r).substr(-1)==="%"?"prgb":"rgb"):B(_.h)&&B(_.s)&&B(_.v)?(L=De(_.s),$=De(_.v),S=m(_.h,L,$),ye=!0,Le="hsv"):B(_.h)&&B(_.s)&&B(_.l)&&(L=De(_.s),H=De(_.l),S=d(_.h,L,H),ye=!0,Le="hsl"),_.hasOwnProperty("a")&&(b=_.a)),b=k(b),{ok:ye,format:_.format||Le,r:s(255,o(S.r,0)),g:s(255,o(S.g,0)),b:s(255,o(S.b,0)),a:b}}function f(_,S,b){return{r:I(_,255)*255,g:I(S,255)*255,b:I(b,255)*255}}function h(_,S,b){_=I(_,255),S=I(S,255),b=I(b,255);var L=o(_,S,b),$=s(_,S,b),H,ye,Le=(L+$)/2;if(L==$)H=ye=0;else{var Me=L-$;switch(ye=Le>.5?Me/(2-L-$):Me/(L+$),L){case _:H=(S-b)/Me+(S<b?6:0);break;case S:H=(b-_)/Me+2;break;case b:H=(_-S)/Me+4;break}H/=6}return{h:H,s:ye,l:Le}}function d(_,S,b){var L,$,H;_=I(_,360),S=I(S,100),b=I(b,100);function ye(Ut,fo,ar){return ar<0&&(ar+=1),ar>1&&(ar-=1),ar<1/6?Ut+(fo-Ut)*6*ar:ar<1/2?fo:ar<2/3?Ut+(fo-Ut)*(2/3-ar)*6:Ut}if(S===0)L=$=H=b;else{var Le=b<.5?b*(1+S):b+S-b*S,Me=2*b-Le;L=ye(Me,Le,_+1/3),$=ye(Me,Le,_),H=ye(Me,Le,_-1/3)}return{r:L*255,g:$*255,b:H*255}}function g(_,S,b){_=I(_,255),S=I(S,255),b=I(b,255);var L=o(_,S,b),$=s(_,S,b),H,ye,Le=L,Me=L-$;if(ye=L===0?0:Me/L,L==$)H=0;else{switch(L){case _:H=(S-b)/Me+(S<b?6:0);break;case S:H=(b-_)/Me+2;break;case b:H=(_-S)/Me+4;break}H/=6}return{h:H,s:ye,v:Le}}function m(_,S,b){_=I(_,360)*6,S=I(S,100),b=I(b,100);var L=t.floor(_),$=_-L,H=b*(1-S),ye=b*(1-$*S),Le=b*(1-(1-$)*S),Me=L%6,Ut=[b,ye,H,H,Le,b][Me],fo=[Le,b,b,ye,H,H][Me],ar=[H,H,Le,b,b,ye][Me];return{r:Ut*255,g:fo*255,b:ar*255}}function E(_,S,b,L){var $=[ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16))];return L&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0):$.join("")}function v(_,S,b,L,$){var H=[ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16)),ge(re(L))];return $&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function A(_,S,b,L){var $=[ge(re(L)),ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16))];return $.join("")}c.equals=function(_,S){return!_||!S?!1:c(_).toRgbString()==c(S).toRgbString()},c.random=function(){return c.fromRatio({r:a(),g:a(),b:a()})};function P(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.s-=S/100,b.s=Y(b.s),c(b)}function D(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.s+=S/100,b.s=Y(b.s),c(b)}function ie(_){return c(_).desaturate(100)}function z(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.l+=S/100,b.l=Y(b.l),c(b)}function ue(_,S){S=S===0?0:S||10;var b=c(_).toRgb();return b.r=o(0,s(255,b.r-i(255*-(S/100)))),b.g=o(0,s(255,b.g-i(255*-(S/100)))),b.b=o(0,s(255,b.b-i(255*-(S/100)))),c(b)}function K(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.l-=S/100,b.l=Y(b.l),c(b)}function Z(_,S){var b=c(_).toHsl(),L=(b.h+S)%360;return b.h=L<0?360+L:L,c(b)}function F(_){var S=c(_).toHsl();return S.h=(S.h+180)%360,c(S)}function Q(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+120)%360,s:S.s,l:S.l}),c({h:(b+240)%360,s:S.s,l:S.l})]}function R(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+90)%360,s:S.s,l:S.l}),c({h:(b+180)%360,s:S.s,l:S.l}),c({h:(b+270)%360,s:S.s,l:S.l})]}function ne(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+72)%360,s:S.s,l:S.l}),c({h:(b+216)%360,s:S.s,l:S.l})]}function ee(_,S,b){S=S||6,b=b||30;var L=c(_).toHsl(),$=360/b,H=[c(_)];for(L.h=(L.h-($*S>>1)+720)%360;--S;)L.h=(L.h+$)%360,H.push(c(L));return H}function fe(_,S){S=S||6;for(var b=c(_).toHsv(),L=b.h,$=b.s,H=b.v,ye=[],Le=1/S;S--;)ye.push(c({h:L,s:$,v:H})),H=(H+Le)%1;return ye}c.mix=function(_,S,b){b=b===0?0:b||50;var L=c(_).toRgb(),$=c(S).toRgb(),H=b/100,ye={r:($.r-L.r)*H+L.r,g:($.g-L.g)*H+L.g,b:($.b-L.b)*H+L.b,a:($.a-L.a)*H+L.a};return c(ye)},c.readability=function(_,S){var b=c(_),L=c(S);return(t.max(b.getLuminance(),L.getLuminance())+.05)/(t.min(b.getLuminance(),L.getLuminance())+.05)},c.isReadable=function(_,S,b){var L=c.readability(_,S),$,H;switch(H=!1,$=q(b),$.level+$.size){case"AAsmall":case"AAAlarge":H=L>=4.5;break;case"AAlarge":H=L>=3;break;case"AAAsmall":H=L>=7;break}return H},c.mostReadable=function(_,S,b){var L=null,$=0,H,ye,Le,Me;b=b||{},ye=b.includeFallbackColors,Le=b.level,Me=b.size;for(var Ut=0;Ut<S.length;Ut++)H=c.readability(_,S[Ut]),H>$&&($=H,L=c(S[Ut]));return c.isReadable(_,L,{level:Le,size:Me})||!ye?L:(b.includeFallbackColors=!1,c.mostReadable(_,["#fff","#000"],b))};var C=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=c.hexNames=T(C);function T(_){var S={};for(var b in _)_.hasOwnProperty(b)&&(S[_[b]]=b);return S}function k(_){return _=parseFloat(_),(isNaN(_)||_<0||_>1)&&(_=1),_}function I(_,S){ve(_)&&(_="100%");var b=Ue(_);return _=s(S,o(0,parseFloat(_))),b&&(_=parseInt(_*S,10)/100),t.abs(_-S)<1e-6?1:_%S/parseFloat(S)}function Y(_){return s(1,o(0,_))}function j(_){return parseInt(_,16)}function ve(_){return typeof _=="string"&&_.indexOf(".")!=-1&&parseFloat(_)===1}function Ue(_){return typeof _=="string"&&_.indexOf("%")!=-1}function ge(_){return _.length==1?"0"+_:""+_}function De(_){return _<=1&&(_=_*100+"%"),_}function re(_){return t.round(parseFloat(_)*255).toString(16)}function pt(_){return j(_)/255}var kt=function(){var _="[-\\+]?\\d+%?",S="[-\\+]?\\d*\\.\\d+%?",b="(?:"+S+")|(?:"+_+")",L="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?",$="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?";return{CSS_UNIT:new RegExp(b),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+$),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+$),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function B(_){return!!kt.CSS_UNIT.exec(_)}function Ee(_){_=_.replace(e,"").replace(r,"").toLowerCase();var S=!1;if(C[_])_=C[_],S=!0;else if(_=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var b;return(b=kt.rgb.exec(_))?{r:b[1],g:b[2],b:b[3]}:(b=kt.rgba.exec(_))?{r:b[1],g:b[2],b:b[3],a:b[4]}:(b=kt.hsl.exec(_))?{h:b[1],s:b[2],l:b[3]}:(b=kt.hsla.exec(_))?{h:b[1],s:b[2],l:b[3],a:b[4]}:(b=kt.hsv.exec(_))?{h:b[1],s:b[2],v:b[3]}:(b=kt.hsva.exec(_))?{h:b[1],s:b[2],v:b[3],a:b[4]}:(b=kt.hex8.exec(_))?{r:j(b[1]),g:j(b[2]),b:j(b[3]),a:pt(b[4]),format:S?"name":"hex8"}:(b=kt.hex6.exec(_))?{r:j(b[1]),g:j(b[2]),b:j(b[3]),format:S?"name":"hex"}:(b=kt.hex4.exec(_))?{r:j(b[1]+""+b[1]),g:j(b[2]+""+b[2]),b:j(b[3]+""+b[3]),a:pt(b[4]+""+b[4]),format:S?"name":"hex8"}:(b=kt.hex3.exec(_))?{r:j(b[1]+""+b[1]),g:j(b[2]+""+b[2]),b:j(b[3]+""+b[3]),format:S?"name":"hex"}:!1}function q(_){var S,b;return _=_||{level:"AA",size:"small"},S=(_.level||"AA").toUpperCase(),b=(_.size||"small").toLowerCase(),S!=="AA"&&S!=="AAA"&&(S="AA"),b!=="small"&&b!=="large"&&(b="small"),{level:S,size:b}}typeof pu<"u"&&pu.exports?pu.exports=c:typeof define=="function"&&define.amd?define(function(){return c}):window.tinycolor=c})(Math)});var nA=y((sZ,rA)=>{l();var Yo=ZS(),eA={r:256,g:256,b:256,a:1},tA={h:360,s:1,v:1,a:1};function qp(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Bp(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Fp(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=qp(n,i,r),o=[t.color];for(let a=1;a<r;a++){let c=Bp(s,n,a,eA);o.push(Yo(c))}return o}function JS(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Fp(t,e,r);let o;if(typeof n=="boolean")o=n;else{let f=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&f||n==="short"&&!f}let a=qp(i,s,r),c=[t.color],u;i.h<=s.h&&!o||i.h>=s.h&&o?u=s.h-i.h:o?u=360-s.h+i.h:u=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(u)/r;for(let f=1;f<r;f++){let h=Bp(a,i,f,tA);c.push(Yo(h))}return c}function XS(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function QS(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,u=t.length;c<u-1;c++)if(e>=t[c].pos&&e<t[c+1].pos){i=t[c],s=t[c+1];break}i||(i=s=t[t.length-1]);let o=qp(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Bp(o,i.color[r](),(e-i.pos)*100,n);return Yo(a)}var ds=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let c=o.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let u=o.color!==void 0;if(!u&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!u,o={color:u?Yo(o.color):null,colorLess:!u,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:Yo(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new ds(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new ds(e.concat(r.reverse()))}rgb(e){let r=XS(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Fp(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Fp(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=XS(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=JS(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=JS(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return QS(this.stops,e,"toRgb",eA)}hsvAt(e){return QS(this.stops,e,"toHsv",tA)}};rA.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new ds(t)}});var cA=y((oZ,mu)=>{"use strict";l();var sA=KS(),hH=nA(),iA=/\s/g;function jp(...t){let e=hH.apply(this,t),r=(n,i)=>dH(n?n.toString():"",e,i);return r.multiline=(n,i)=>pH(n?n.toString():"",e,i),r}var oA=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function dH(t,e,r){let n=aA(r),i=Math.max(t.replace(iA,"").length,e.stops.length),s=oA(e,n,i),o="";for(let a of t)o+=a.match(iA)?a:sA.hex(s.shift().toHex())(a);return o}function pH(t,e,r){let n=aA(r),i=t.split(`
|
|
43
|
+
`);return s!==-1&&(e=uH(e,i,n,s)),n+e+i},Ip,zS=(t,...e)=>{let[r]=e;if(!lu(r)||!lu(r.raw))return e.join(" ");let n=e.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Ip===void 0&&(Ip=$S()),Ip(t,i.join(""))};Object.defineProperties(fu.prototype,hs);var du=fu();du.supportsColor=Lp;du.stderr=fu({level:Np?Np.level:0});du.stderr.supportsColor=Np;YS.exports=du});var ZS=y((iZ,pu)=>{l();(function(t){var e=/^\s+/,r=/\s+$/,n=0,i=t.round,s=t.min,o=t.max,a=t.random;function c(_,S){if(_=_||"",S=S||{},_ instanceof c)return _;if(!(this instanceof c))return new c(_,S);var b=u(_);this._originalInput=_,this._r=b.r,this._g=b.g,this._b=b.b,this._a=b.a,this._roundA=i(100*this._a)/100,this._format=S.format||b.format,this._gradientType=S.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=b.ok,this._tc_id=n++}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var _=this.toRgb();return(_.r*299+_.g*587+_.b*114)/1e3},getLuminance:function(){var _=this.toRgb(),S,b,L,U,H,ye;return S=_.r/255,b=_.g/255,L=_.b/255,S<=.03928?U=S/12.92:U=t.pow((S+.055)/1.055,2.4),b<=.03928?H=b/12.92:H=t.pow((b+.055)/1.055,2.4),L<=.03928?ye=L/12.92:ye=t.pow((L+.055)/1.055,2.4),.2126*U+.7152*H+.0722*ye},setAlpha:function(_){return this._a=k(_),this._roundA=i(100*this._a)/100,this},toHsv:function(){var _=m(this._r,this._g,this._b);return{h:_.h*360,s:_.s,v:_.v,a:this._a}},toHsvString:function(){var _=m(this._r,this._g,this._b),S=i(_.h*360),b=i(_.s*100),L=i(_.v*100);return this._a==1?"hsv("+S+", "+b+"%, "+L+"%)":"hsva("+S+", "+b+"%, "+L+"%, "+this._roundA+")"},toHsl:function(){var _=h(this._r,this._g,this._b);return{h:_.h*360,s:_.s,l:_.l,a:this._a}},toHslString:function(){var _=h(this._r,this._g,this._b),S=i(_.h*360),b=i(_.s*100),L=i(_.l*100);return this._a==1?"hsl("+S+", "+b+"%, "+L+"%)":"hsla("+S+", "+b+"%, "+L+"%, "+this._roundA+")"},toHex:function(_){return E(this._r,this._g,this._b,_)},toHexString:function(_){return"#"+this.toHex(_)},toHex8:function(_){return v(this._r,this._g,this._b,this._a,_)},toHex8String:function(_){return"#"+this.toHex8(_)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(I(this._r,255)*100)+"%",g:i(I(this._g,255)*100)+"%",b:i(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(I(this._r,255)*100)+"%, "+i(I(this._g,255)*100)+"%, "+i(I(this._b,255)*100)+"%)":"rgba("+i(I(this._r,255)*100)+"%, "+i(I(this._g,255)*100)+"%, "+i(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:x[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(_){var S="#"+A(this._r,this._g,this._b,this._a),b=S,L=this._gradientType?"GradientType = 1, ":"";if(_){var U=c(_);b="#"+A(U._r,U._g,U._b,U._a)}return"progid:DXImageTransform.Microsoft.gradient("+L+"startColorstr="+S+",endColorstr="+b+")"},toString:function(_){var S=!!_;_=_||this._format;var b=!1,L=this._a<1&&this._a>=0,U=!S&&L&&(_==="hex"||_==="hex6"||_==="hex3"||_==="hex4"||_==="hex8"||_==="name");return U?_==="name"&&this._a===0?this.toName():this.toRgbString():(_==="rgb"&&(b=this.toRgbString()),_==="prgb"&&(b=this.toPercentageRgbString()),(_==="hex"||_==="hex6")&&(b=this.toHexString()),_==="hex3"&&(b=this.toHexString(!0)),_==="hex4"&&(b=this.toHex8String(!0)),_==="hex8"&&(b=this.toHex8String()),_==="name"&&(b=this.toName()),_==="hsl"&&(b=this.toHslString()),_==="hsv"&&(b=this.toHsvString()),b||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(_,S){var b=_.apply(null,[this].concat([].slice.call(S)));return this._r=b._r,this._g=b._g,this._b=b._b,this.setAlpha(b._a),this},lighten:function(){return this._applyModification($,arguments)},brighten:function(){return this._applyModification(se,arguments)},darken:function(){return this._applyModification(K,arguments)},desaturate:function(){return this._applyModification(P,arguments)},saturate:function(){return this._applyModification(B,arguments)},greyscale:function(){return this._applyModification(re,arguments)},spin:function(){return this._applyModification(Z,arguments)},_applyCombination:function(_,S){return _.apply(null,[this].concat([].slice.call(S)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(fe,arguments)},splitcomplement:function(){return this._applyCombination(ie,arguments)},triad:function(){return this._applyCombination(Q,arguments)},tetrad:function(){return this._applyCombination(R,arguments)}},c.fromRatio=function(_,S){if(typeof _=="object"){var b={};for(var L in _)_.hasOwnProperty(L)&&(L==="a"?b[L]=_[L]:b[L]=De(_[L]));_=b}return c(_,S)};function u(_){var S={r:0,g:0,b:0},b=1,L=null,U=null,H=null,ye=!1,Le=!1;return typeof _=="string"&&(_=Ee(_)),typeof _=="object"&&(q(_.r)&&q(_.g)&&q(_.b)?(S=f(_.r,_.g,_.b),ye=!0,Le=String(_.r).substr(-1)==="%"?"prgb":"rgb"):q(_.h)&&q(_.s)&&q(_.v)?(L=De(_.s),U=De(_.v),S=g(_.h,L,U),ye=!0,Le="hsv"):q(_.h)&&q(_.s)&&q(_.l)&&(L=De(_.s),H=De(_.l),S=d(_.h,L,H),ye=!0,Le="hsl"),_.hasOwnProperty("a")&&(b=_.a)),b=k(b),{ok:ye,format:_.format||Le,r:s(255,o(S.r,0)),g:s(255,o(S.g,0)),b:s(255,o(S.b,0)),a:b}}function f(_,S,b){return{r:I(_,255)*255,g:I(S,255)*255,b:I(b,255)*255}}function h(_,S,b){_=I(_,255),S=I(S,255),b=I(b,255);var L=o(_,S,b),U=s(_,S,b),H,ye,Le=(L+U)/2;if(L==U)H=ye=0;else{var Me=L-U;switch(ye=Le>.5?Me/(2-L-U):Me/(L+U),L){case _:H=(S-b)/Me+(S<b?6:0);break;case S:H=(b-_)/Me+2;break;case b:H=(_-S)/Me+4;break}H/=6}return{h:H,s:ye,l:Le}}function d(_,S,b){var L,U,H;_=I(_,360),S=I(S,100),b=I(b,100);function ye(Ut,fo,ar){return ar<0&&(ar+=1),ar>1&&(ar-=1),ar<1/6?Ut+(fo-Ut)*6*ar:ar<1/2?fo:ar<2/3?Ut+(fo-Ut)*(2/3-ar)*6:Ut}if(S===0)L=U=H=b;else{var Le=b<.5?b*(1+S):b+S-b*S,Me=2*b-Le;L=ye(Me,Le,_+1/3),U=ye(Me,Le,_),H=ye(Me,Le,_-1/3)}return{r:L*255,g:U*255,b:H*255}}function m(_,S,b){_=I(_,255),S=I(S,255),b=I(b,255);var L=o(_,S,b),U=s(_,S,b),H,ye,Le=L,Me=L-U;if(ye=L===0?0:Me/L,L==U)H=0;else{switch(L){case _:H=(S-b)/Me+(S<b?6:0);break;case S:H=(b-_)/Me+2;break;case b:H=(_-S)/Me+4;break}H/=6}return{h:H,s:ye,v:Le}}function g(_,S,b){_=I(_,360)*6,S=I(S,100),b=I(b,100);var L=t.floor(_),U=_-L,H=b*(1-S),ye=b*(1-U*S),Le=b*(1-(1-U)*S),Me=L%6,Ut=[b,ye,H,H,Le,b][Me],fo=[Le,b,b,ye,H,H][Me],ar=[H,H,Le,b,b,ye][Me];return{r:Ut*255,g:fo*255,b:ar*255}}function E(_,S,b,L){var U=[ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16))];return L&&U[0].charAt(0)==U[0].charAt(1)&&U[1].charAt(0)==U[1].charAt(1)&&U[2].charAt(0)==U[2].charAt(1)?U[0].charAt(0)+U[1].charAt(0)+U[2].charAt(0):U.join("")}function v(_,S,b,L,U){var H=[ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16)),ge(ne(L))];return U&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function A(_,S,b,L){var U=[ge(ne(L)),ge(i(_).toString(16)),ge(i(S).toString(16)),ge(i(b).toString(16))];return U.join("")}c.equals=function(_,S){return!_||!S?!1:c(_).toRgbString()==c(S).toRgbString()},c.random=function(){return c.fromRatio({r:a(),g:a(),b:a()})};function P(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.s-=S/100,b.s=Y(b.s),c(b)}function B(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.s+=S/100,b.s=Y(b.s),c(b)}function re(_){return c(_).desaturate(100)}function $(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.l+=S/100,b.l=Y(b.l),c(b)}function se(_,S){S=S===0?0:S||10;var b=c(_).toRgb();return b.r=o(0,s(255,b.r-i(255*-(S/100)))),b.g=o(0,s(255,b.g-i(255*-(S/100)))),b.b=o(0,s(255,b.b-i(255*-(S/100)))),c(b)}function K(_,S){S=S===0?0:S||10;var b=c(_).toHsl();return b.l-=S/100,b.l=Y(b.l),c(b)}function Z(_,S){var b=c(_).toHsl(),L=(b.h+S)%360;return b.h=L<0?360+L:L,c(b)}function M(_){var S=c(_).toHsl();return S.h=(S.h+180)%360,c(S)}function Q(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+120)%360,s:S.s,l:S.l}),c({h:(b+240)%360,s:S.s,l:S.l})]}function R(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+90)%360,s:S.s,l:S.l}),c({h:(b+180)%360,s:S.s,l:S.l}),c({h:(b+270)%360,s:S.s,l:S.l})]}function ie(_){var S=c(_).toHsl(),b=S.h;return[c(_),c({h:(b+72)%360,s:S.s,l:S.l}),c({h:(b+216)%360,s:S.s,l:S.l})]}function ee(_,S,b){S=S||6,b=b||30;var L=c(_).toHsl(),U=360/b,H=[c(_)];for(L.h=(L.h-(U*S>>1)+720)%360;--S;)L.h=(L.h+U)%360,H.push(c(L));return H}function fe(_,S){S=S||6;for(var b=c(_).toHsv(),L=b.h,U=b.s,H=b.v,ye=[],Le=1/S;S--;)ye.push(c({h:L,s:U,v:H})),H=(H+Le)%1;return ye}c.mix=function(_,S,b){b=b===0?0:b||50;var L=c(_).toRgb(),U=c(S).toRgb(),H=b/100,ye={r:(U.r-L.r)*H+L.r,g:(U.g-L.g)*H+L.g,b:(U.b-L.b)*H+L.b,a:(U.a-L.a)*H+L.a};return c(ye)},c.readability=function(_,S){var b=c(_),L=c(S);return(t.max(b.getLuminance(),L.getLuminance())+.05)/(t.min(b.getLuminance(),L.getLuminance())+.05)},c.isReadable=function(_,S,b){var L=c.readability(_,S),U,H;switch(H=!1,U=F(b),U.level+U.size){case"AAsmall":case"AAAlarge":H=L>=4.5;break;case"AAlarge":H=L>=3;break;case"AAAsmall":H=L>=7;break}return H},c.mostReadable=function(_,S,b){var L=null,U=0,H,ye,Le,Me;b=b||{},ye=b.includeFallbackColors,Le=b.level,Me=b.size;for(var Ut=0;Ut<S.length;Ut++)H=c.readability(_,S[Ut]),H>U&&(U=H,L=c(S[Ut]));return c.isReadable(_,L,{level:Le,size:Me})||!ye?L:(b.includeFallbackColors=!1,c.mostReadable(_,["#fff","#000"],b))};var C=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=c.hexNames=T(C);function T(_){var S={};for(var b in _)_.hasOwnProperty(b)&&(S[_[b]]=b);return S}function k(_){return _=parseFloat(_),(isNaN(_)||_<0||_>1)&&(_=1),_}function I(_,S){ve(_)&&(_="100%");var b=Ue(_);return _=s(S,o(0,parseFloat(_))),b&&(_=parseInt(_*S,10)/100),t.abs(_-S)<1e-6?1:_%S/parseFloat(S)}function Y(_){return s(1,o(0,_))}function j(_){return parseInt(_,16)}function ve(_){return typeof _=="string"&&_.indexOf(".")!=-1&&parseFloat(_)===1}function Ue(_){return typeof _=="string"&&_.indexOf("%")!=-1}function ge(_){return _.length==1?"0"+_:""+_}function De(_){return _<=1&&(_=_*100+"%"),_}function ne(_){return t.round(parseFloat(_)*255).toString(16)}function pt(_){return j(_)/255}var kt=function(){var _="[-\\+]?\\d+%?",S="[-\\+]?\\d*\\.\\d+%?",b="(?:"+S+")|(?:"+_+")",L="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?",U="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?";return{CSS_UNIT:new RegExp(b),rgb:new RegExp("rgb"+L),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+L),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+L),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function q(_){return!!kt.CSS_UNIT.exec(_)}function Ee(_){_=_.replace(e,"").replace(r,"").toLowerCase();var S=!1;if(C[_])_=C[_],S=!0;else if(_=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var b;return(b=kt.rgb.exec(_))?{r:b[1],g:b[2],b:b[3]}:(b=kt.rgba.exec(_))?{r:b[1],g:b[2],b:b[3],a:b[4]}:(b=kt.hsl.exec(_))?{h:b[1],s:b[2],l:b[3]}:(b=kt.hsla.exec(_))?{h:b[1],s:b[2],l:b[3],a:b[4]}:(b=kt.hsv.exec(_))?{h:b[1],s:b[2],v:b[3]}:(b=kt.hsva.exec(_))?{h:b[1],s:b[2],v:b[3],a:b[4]}:(b=kt.hex8.exec(_))?{r:j(b[1]),g:j(b[2]),b:j(b[3]),a:pt(b[4]),format:S?"name":"hex8"}:(b=kt.hex6.exec(_))?{r:j(b[1]),g:j(b[2]),b:j(b[3]),format:S?"name":"hex"}:(b=kt.hex4.exec(_))?{r:j(b[1]+""+b[1]),g:j(b[2]+""+b[2]),b:j(b[3]+""+b[3]),a:pt(b[4]+""+b[4]),format:S?"name":"hex8"}:(b=kt.hex3.exec(_))?{r:j(b[1]+""+b[1]),g:j(b[2]+""+b[2]),b:j(b[3]+""+b[3]),format:S?"name":"hex"}:!1}function F(_){var S,b;return _=_||{level:"AA",size:"small"},S=(_.level||"AA").toUpperCase(),b=(_.size||"small").toLowerCase(),S!=="AA"&&S!=="AAA"&&(S="AA"),b!=="small"&&b!=="large"&&(b="small"),{level:S,size:b}}typeof pu<"u"&&pu.exports?pu.exports=c:typeof define=="function"&&define.amd?define(function(){return c}):window.tinycolor=c})(Math)});var nA=y((sZ,rA)=>{l();var Yo=ZS(),eA={r:256,g:256,b:256,a:1},tA={h:360,s:1,v:1,a:1};function qp(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Bp(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Fp(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=qp(n,i,r),o=[t.color];for(let a=1;a<r;a++){let c=Bp(s,n,a,eA);o.push(Yo(c))}return o}function JS(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Fp(t,e,r);let o;if(typeof n=="boolean")o=n;else{let f=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&f||n==="short"&&!f}let a=qp(i,s,r),c=[t.color],u;i.h<=s.h&&!o||i.h>=s.h&&o?u=s.h-i.h:o?u=360-s.h+i.h:u=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(u)/r;for(let f=1;f<r;f++){let h=Bp(a,i,f,tA);c.push(Yo(h))}return c}function XS(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(e-1)*(t[s].pos-t[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==e;)if(i<e){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function QS(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,u=t.length;c<u-1;c++)if(e>=t[c].pos&&e<t[c+1].pos){i=t[c],s=t[c+1];break}i||(i=s=t[t.length-1]);let o=qp(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Bp(o,i.color[r](),(e-i.pos)*100,n);return Yo(a)}var ds=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.map((o,a)=>{let c=o.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let u=o.color!==void 0;if(!u&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!u,o={color:u?Yo(o.color):null,colorLess:!u,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:Yo(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new ds(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new ds(e.concat(r.reverse()))}rgb(e){let r=XS(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Fp(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Fp(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(e,r){let n=XS(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=JS(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=JS(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return QS(this.stops,e,"toRgb",eA)}hsvAt(e){return QS(this.stops,e,"toHsv",tA)}};rA.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new ds(t)}});var cA=y((oZ,mu)=>{"use strict";l();var sA=KS(),hH=nA(),iA=/\s/g;function jp(...t){let e=hH.apply(this,t),r=(n,i)=>dH(n?n.toString():"",e,i);return r.multiline=(n,i)=>pH(n?n.toString():"",e,i),r}var oA=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function dH(t,e,r){let n=aA(r),i=Math.max(t.replace(iA,"").length,e.stops.length),s=oA(e,n,i),o="";for(let a of t)o+=a.match(iA)?a:sA.hex(s.shift().toHex())(a);return o}function pH(t,e,r){let n=aA(r),i=t.split(`
|
|
44
44
|
`),s=Math.max.apply(null,i.map(c=>c.length).concat([e.stops.length])),o=oA(e,n,s),a=[];for(let c of i){let u=o.slice(0),f="";for(let h of c)f+=sA.hex(u.shift().toHex())(h);a.push(f)}return a.join(`
|
|
45
|
-
`)}function aA(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var Ko={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};mu.exports=jp;for(let t in Ko)mu.exports[t]=e=>new jp(Ko[t].colors)(e,Ko[t].options),mu.exports[t].multiline=e=>new jp(Ko[t].colors).multiline(e,Ko[t].options)});var EA=y((fZ,bA)=>{l();bA.exports=vA;vA.sync=TH;var yA=require("fs");function OH(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function _A(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:OH(e,r)}function vA(t,e,r){yA.stat(t,function(n,i){r(n,n?!1:_A(i,t,e))})}function TH(t,e){return _A(yA.statSync(t),t,e)}});var CA=y((hZ,AA)=>{l();AA.exports=xA;xA.sync=kH;var wA=require("fs");function xA(t,e,r){wA.stat(t,function(n,i){r(n,n?!1:SA(i,e))})}function kH(t,e){return SA(wA.statSync(t),e)}function SA(t,e){return t.isFile()&&PH(t,e)}function PH(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),f=a|c,h=r&u||r&c&&i===o||r&a&&n===s||r&f&&s===0;return h}});var OA=y((pZ,RA)=>{l();var dZ=require("fs"),gu;process.platform==="win32"||global.TESTING_WINDOWS?gu=EA():gu=CA();RA.exports=Up;Up.sync=IH;function Up(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Up(t,e||{},function(s,o){s?i(s):n(o)})})}gu(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function IH(t,e){try{return gu.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var DA=y((mZ,NA)=>{l();var ms=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",TA=require("path"),LH=ms?";":":",kA=OA(),PA=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),IA=(t,e)=>{let r=e.colon||LH,n=t.match(/\//)||ms&&t.match(/\\/)?[""]:[...ms?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=ms?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ms?i.split(r):[""];return ms&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},LA=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=IA(t,e),o=[],a=u=>new Promise((f,h)=>{if(u===n.length)return e.all&&o.length?f(o):h(PA(t));let d=n[u],
|
|
45
|
+
`)}function aA(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var Ko={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};mu.exports=jp;for(let t in Ko)mu.exports[t]=e=>new jp(Ko[t].colors)(e,Ko[t].options),mu.exports[t].multiline=e=>new jp(Ko[t].colors).multiline(e,Ko[t].options)});var EA=y((fZ,bA)=>{l();bA.exports=vA;vA.sync=TH;var yA=require("fs");function OH(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function _A(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:OH(e,r)}function vA(t,e,r){yA.stat(t,function(n,i){r(n,n?!1:_A(i,t,e))})}function TH(t,e){return _A(yA.statSync(t),t,e)}});var CA=y((hZ,AA)=>{l();AA.exports=xA;xA.sync=kH;var wA=require("fs");function xA(t,e,r){wA.stat(t,function(n,i){r(n,n?!1:SA(i,e))})}function kH(t,e){return SA(wA.statSync(t),e)}function SA(t,e){return t.isFile()&&PH(t,e)}function PH(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),u=parseInt("001",8),f=a|c,h=r&u||r&c&&i===o||r&a&&n===s||r&f&&s===0;return h}});var OA=y((pZ,RA)=>{l();var dZ=require("fs"),gu;process.platform==="win32"||global.TESTING_WINDOWS?gu=EA():gu=CA();RA.exports=Up;Up.sync=IH;function Up(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Up(t,e||{},function(s,o){s?i(s):n(o)})})}gu(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function IH(t,e){try{return gu.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var DA=y((mZ,NA)=>{l();var ms=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",TA=require("path"),LH=ms?";":":",kA=OA(),PA=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),IA=(t,e)=>{let r=e.colon||LH,n=t.match(/\//)||ms&&t.match(/\\/)?[""]:[...ms?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],i=ms?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ms?i.split(r):[""];return ms&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},LA=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:s}=IA(t,e),o=[],a=u=>new Promise((f,h)=>{if(u===n.length)return e.all&&o.length?f(o):h(PA(t));let d=n[u],m=/^".*"$/.test(d)?d.slice(1,-1):d,g=TA.join(m,t),E=!m&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;f(c(E,u,0))}),c=(u,f,h)=>new Promise((d,m)=>{if(h===i.length)return d(a(f+1));let g=i[h];kA(u+g,{pathExt:s},(E,v)=>{if(!E&&v)if(e.all)o.push(u+g);else return d(u+g);return d(c(u,f,h+1))})});return r?a(0).then(u=>r(null,u),r):a(0)},NH=(t,e)=>{e=e||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=IA(t,e),s=[];for(let o=0;o<r.length;o++){let a=r[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=TA.join(c,t),f=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+u:u;for(let h=0;h<n.length;h++){let d=f+n[h];try{if(kA.sync(d,{pathExt:i}))if(e.all)s.push(d);else return d}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw PA(t)};NA.exports=LA;LA.sync=NH});var Vp=y((gZ,Gp)=>{"use strict";l();var MA=(t={})=>{let e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};Gp.exports=MA;Gp.exports.default=MA});var jA=y((yZ,BA)=>{"use strict";l();var FA=require("path"),DH=DA(),MH=Vp();function qA(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.options.cwd!=null,s=i&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let o;try{o=DH.sync(t.command,{path:r[MH({env:r})],pathExt:e?FA.delimiter:void 0})}catch{}finally{s&&process.chdir(n)}return o&&(o=FA.resolve(i?t.options.cwd:"",o)),o}function FH(t){return qA(t)||qA(t,!0)}BA.exports=FH});var HA=y((_Z,zp)=>{"use strict";l();var Wp=/([()\][%!^"`<>&|;, *?])/g;function qH(t){return t=t.replace(Wp,"^$1"),t}function BH(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Wp,"^$1"),e&&(t=t.replace(Wp,"^$1")),t}zp.exports.command=qH;zp.exports.argument=BH});var UA=y((vZ,$A)=>{"use strict";l();$A.exports=/^#!(.*)/});var VA=y((bZ,GA)=>{"use strict";l();var jH=UA();GA.exports=(t="")=>{let e=t.match(jH);if(!e)return null;let[r,n]=e[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var zA=y((EZ,WA)=>{"use strict";l();var Yp=require("fs"),HH=VA();function $H(t){let r=Buffer.alloc(150),n;try{n=Yp.openSync(t,"r"),Yp.readSync(n,r,0,150,0),Yp.closeSync(n)}catch{}return HH(r.toString())}WA.exports=$H});var JA=y((wZ,ZA)=>{"use strict";l();var UH=require("path"),YA=jA(),KA=HA(),GH=zA(),VH=process.platform==="win32",WH=/\.(?:com|exe)$/i,zH=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function YH(t){t.file=YA(t);let e=t.file&&GH(t.file);return e?(t.args.unshift(t.file),t.command=e,YA(t)):t.file}function KH(t){if(!VH)return t;let e=YH(t),r=!WH.test(e);if(t.options.forceShell||r){let n=zH.test(e);t.command=UH.normalize(t.command),t.command=KA.command(t.command),t.args=t.args.map(s=>KA.argument(s,n));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function ZH(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=Object.assign({},r);let n={command:t,args:e,options:r,file:void 0,original:{command:t,args:e}};return r.shell?n:KH(n)}ZA.exports=ZH});var eC=y((xZ,QA)=>{"use strict";l();var Kp=process.platform==="win32";function Zp(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function JH(t,e){if(!Kp)return;let r=t.emit;t.emit=function(n,i){if(n==="exit"){let s=XA(i,e,"spawn");if(s)return r.call(t,"error",s)}return r.apply(t,arguments)}}function XA(t,e){return Kp&&t===1&&!e.file?Zp(e.original,"spawn"):null}function XH(t,e){return Kp&&t===1&&!e.file?Zp(e.original,"spawnSync"):null}QA.exports={hookChildProcess:JH,verifyENOENT:XA,verifyENOENTSync:XH,notFoundError:Zp}});var nC=y((SZ,gs)=>{"use strict";l();var tC=require("child_process"),Jp=JA(),Xp=eC();function rC(t,e,r){let n=Jp(t,e,r),i=tC.spawn(n.command,n.args,n.options);return Xp.hookChildProcess(i,n),i}function QH(t,e,r){let n=Jp(t,e,r),i=tC.spawnSync(n.command,n.args,n.options);return i.error=i.error||Xp.verifyENOENTSync(i.status,n),i}gs.exports=rC;gs.exports.spawn=rC;gs.exports.sync=QH;gs.exports._parse=Jp;gs.exports._enoent=Xp});var sC=y((AZ,iC)=>{"use strict";l();iC.exports=t=>{let e=typeof t=="string"?`
|
|
46
46
|
`:`
|
|
47
|
-
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var cC=y((CZ,Jo)=>{"use strict";l();var Zo=require("path"),oC=Vp(),aC=t=>{t={cwd:process.cwd(),path:process.env[oC()],execPath:process.execPath,...t};let e,r=Zo.resolve(t.cwd),n=[];for(;e!==r;)n.push(Zo.join(r,"node_modules/.bin")),e=r,r=Zo.resolve(r,"..");let i=Zo.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(Zo.delimiter)};Jo.exports=aC;Jo.exports.default=aC;Jo.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=oC({env:e});return t.path=e[r],e[r]=Jo.exports(t),e}});var uC=y(yu=>{"use strict";l();Object.defineProperty(yu,"__esModule",{value:!0});yu.SIGNALS=void 0;var e$=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];yu.SIGNALS=e$});var Qp=y(ys=>{"use strict";l();Object.defineProperty(ys,"__esModule",{value:!0});ys.SIGRTMAX=ys.getRealtimeSignals=void 0;var t$=function(){let t=fC-lC+1;return Array.from({length:t},r$)};ys.getRealtimeSignals=t$;var r$=function(t,e){return{name:`SIGRT${e+1}`,number:lC+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},lC=34,fC=64;ys.SIGRTMAX=fC});var hC=y(_u=>{"use strict";l();Object.defineProperty(_u,"__esModule",{value:!0});_u.getSignals=void 0;var n$=require("os"),i$=uC(),s$=Qp(),o$=function(){let t=(0,s$.getRealtimeSignals)();return[...i$.SIGNALS,...t].map(a$)};_u.getSignals=o$;var a$=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=n$.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:n,forced:i,standard:s}}});var pC=y(_s=>{"use strict";l();Object.defineProperty(_s,"__esModule",{value:!0});_s.signalsByNumber=_s.signalsByName=void 0;var c$=require("os"),dC=hC(),u$=Qp(),l$=function(){return(0,dC.getSignals)().reduce(f$,{})},f$=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},h$=l$();_s.signalsByName=h$;var d$=function(){let t=(0,dC.getSignals)(),e=u$.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>p$(i,t));return Object.assign({},...r)},p$=function(t,e){let r=m$(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:c}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:c}}},m$=function(t,e){let r=e.find(({name:n})=>c$.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},g$=d$();_s.signalsByNumber=g$});var gC=y((PZ,mC)=>{"use strict";l();var{signalsByName:y$}=pC(),_$=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",v$=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:c,isCanceled:u,killed:f,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let d=i===void 0?void 0:y$[i].description,
|
|
47
|
+
`.charCodeAt(),r=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}});var cC=y((CZ,Jo)=>{"use strict";l();var Zo=require("path"),oC=Vp(),aC=t=>{t={cwd:process.cwd(),path:process.env[oC()],execPath:process.execPath,...t};let e,r=Zo.resolve(t.cwd),n=[];for(;e!==r;)n.push(Zo.join(r,"node_modules/.bin")),e=r,r=Zo.resolve(r,"..");let i=Zo.resolve(t.cwd,t.execPath,"..");return n.push(i),n.concat(t.path).join(Zo.delimiter)};Jo.exports=aC;Jo.exports.default=aC;Jo.exports.env=t=>{t={env:process.env,...t};let e={...t.env},r=oC({env:e});return t.path=e[r],e[r]=Jo.exports(t),e}});var uC=y(yu=>{"use strict";l();Object.defineProperty(yu,"__esModule",{value:!0});yu.SIGNALS=void 0;var e$=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];yu.SIGNALS=e$});var Qp=y(ys=>{"use strict";l();Object.defineProperty(ys,"__esModule",{value:!0});ys.SIGRTMAX=ys.getRealtimeSignals=void 0;var t$=function(){let t=fC-lC+1;return Array.from({length:t},r$)};ys.getRealtimeSignals=t$;var r$=function(t,e){return{name:`SIGRT${e+1}`,number:lC+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},lC=34,fC=64;ys.SIGRTMAX=fC});var hC=y(_u=>{"use strict";l();Object.defineProperty(_u,"__esModule",{value:!0});_u.getSignals=void 0;var n$=require("os"),i$=uC(),s$=Qp(),o$=function(){let t=(0,s$.getRealtimeSignals)();return[...i$.SIGNALS,...t].map(a$)};_u.getSignals=o$;var a$=function({name:t,number:e,description:r,action:n,forced:i=!1,standard:s}){let{signals:{[t]:o}}=n$.constants,a=o!==void 0;return{name:t,number:a?o:e,description:r,supported:a,action:n,forced:i,standard:s}}});var pC=y(_s=>{"use strict";l();Object.defineProperty(_s,"__esModule",{value:!0});_s.signalsByNumber=_s.signalsByName=void 0;var c$=require("os"),dC=hC(),u$=Qp(),l$=function(){return(0,dC.getSignals)().reduce(f$,{})},f$=function(t,{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:s,forced:o,standard:a}}},h$=l$();_s.signalsByName=h$;var d$=function(){let t=(0,dC.getSignals)(),e=u$.SIGRTMAX+1,r=Array.from({length:e},(n,i)=>p$(i,t));return Object.assign({},...r)},p$=function(t,e){let r=m$(t,e);if(r===void 0)return{};let{name:n,description:i,supported:s,action:o,forced:a,standard:c}=r;return{[t]:{name:n,number:t,description:i,supported:s,action:o,forced:a,standard:c}}},m$=function(t,e){let r=e.find(({name:n})=>c$.constants.signals[n]===t);return r!==void 0?r:e.find(n=>n.number===t)},g$=d$();_s.signalsByNumber=g$});var gC=y((PZ,mC)=>{"use strict";l();var{signalsByName:y$}=pC(),_$=({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:s,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${i})`:s!==void 0?`failed with exit code ${s}`:"failed",v$=({stdout:t,stderr:e,all:r,error:n,signal:i,exitCode:s,command:o,escapedCommand:a,timedOut:c,isCanceled:u,killed:f,parsed:{options:{timeout:h}}})=>{s=s===null?void 0:s,i=i===null?void 0:i;let d=i===void 0?void 0:y$[i].description,m=n&&n.code,E=`Command ${_$({timedOut:c,timeout:h,errorCode:m,signal:i,signalDescription:d,exitCode:s,isCanceled:u})}: ${o}`,v=Object.prototype.toString.call(n)==="[object Error]",A=v?`${E}
|
|
48
48
|
${n.message}`:E,P=[A,e,t].filter(Boolean).join(`
|
|
49
|
-
`);return v?(n.originalMessage=n.message,n.message=P):n=new Error(P),n.shortMessage=A,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=d,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(c),n.isCanceled=u,n.killed=f&&!c,n};mC.exports=v$});var _C=y((IZ,em)=>{"use strict";l();var vu=["stdin","stdout","stderr"],b$=t=>vu.some(e=>t[e]!==void 0),yC=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return vu.map(n=>t[n]);if(b$(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${vu.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,vu.length);return Array.from({length:r},(n,i)=>e[i])};em.exports=yC;em.exports.node=t=>{let e=yC(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var bC=y((LZ,vC)=>{"use strict";l();var E$=require("os"),w$=bp(),x$=1e3*5,S$=(t,e="SIGTERM",r={})=>{let n=t(e);return A$(t,e,r,n),n},A$=(t,e,r,n)=>{if(!C$(e,r,n))return;let i=O$(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},C$=(t,{forceKillAfterTimeout:e},r)=>R$(t)&&e!==!1&&r,R$=t=>t===E$.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",O$=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return x$;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},T$=(t,e)=>{t.kill()&&(e.isCanceled=!0)},k$=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},P$=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,c)=>{i=setTimeout(()=>{k$(t,r,c)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},I$=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},L$=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=w$(()=>{t.kill()});return n.finally(()=>{i()})};vC.exports={spawnedKill:S$,spawnedCancel:T$,setupTimeout:P$,validateTimeout:I$,setExitHandler:L$}});var wC=y((NZ,EC)=>{"use strict";l();var xr=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";xr.writable=t=>xr(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";xr.readable=t=>xr(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";xr.duplex=t=>xr.writable(t)&&xr.readable(t);xr.transform=t=>xr.duplex(t)&&typeof t._transform=="function";EC.exports=xr});var SC=y((DZ,xC)=>{"use strict";l();var{PassThrough:N$}=require("stream");xC.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new N$({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),i?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var AC=y((MZ,Xo)=>{"use strict";l();var{constants:D$}=require("buffer"),M$=require("stream"),{promisify:F$}=require("util"),q$=SC(),B$=F$(M$.pipeline),bu=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function tm(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=q$(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=D$.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await B$(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new bu)})}),n.getBufferedValue()}Xo.exports=tm;Xo.exports.buffer=(t,e)=>tm(t,{...e,encoding:"buffer"});Xo.exports.array=(t,e)=>tm(t,{...e,array:!0});Xo.exports.MaxBufferError=bu});var RC=y((FZ,CC)=>{"use strict";l();var{PassThrough:j$}=require("stream");CC.exports=function(){var t=[],e=new j$({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var PC=y((qZ,kC)=>{"use strict";l();var TC=wC(),OC=AC(),H$=RC(),$$=(t,e)=>{e===void 0||t.stdin===void 0||(TC(e)?e.pipe(t.stdin):t.stdin.end(e))},U$=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=H$();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},rm=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},nm=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?OC(t,{encoding:e,maxBuffer:n}):OC.buffer(t,{maxBuffer:n})},G$=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=nm(t,{encoding:n,buffer:i,maxBuffer:s}),c=nm(e,{encoding:n,buffer:i,maxBuffer:s}),u=nm(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,c,u])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},rm(t,a),rm(e,c),rm(r,u)])}},V$=({input:t})=>{if(TC(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};kC.exports={handleInput:$$,makeAllStream:U$,getSpawnedResult:G$,validateInputSync:V$}});var LC=y((BZ,IC)=>{"use strict";l();var W$=(async()=>{})().constructor.prototype,z$=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(W$,t)]),Y$=(t,e)=>{for(let[r,n]of z$){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},K$=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});IC.exports={mergePromise:Y$,getSpawnedPromise:K$}});var MC=y((jZ,DC)=>{"use strict";l();var NC=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],Z$=/^[\w.-]+$/,J$=/"/g,X$=t=>typeof t!="string"||Z$.test(t)?t:`"${t.replace(J$,'\\"')}"`,Q$=(t,e)=>NC(t,e).join(" "),e6=(t,e)=>NC(t,e).map(r=>X$(r)).join(" "),t6=/ +/g,r6=t=>{let e=[];for(let r of t.trim().split(t6)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};DC.exports={joinCommand:Q$,getEscapedCommand:e6,parseCommand:r6}});var UC=y((HZ,vs)=>{"use strict";l();var n6=require("path"),im=require("child_process"),i6=nC(),s6=sC(),o6=cC(),a6=yp(),Eu=gC(),qC=_C(),{spawnedKill:c6,spawnedCancel:u6,setupTimeout:l6,validateTimeout:f6,setExitHandler:h6}=bC(),{handleInput:d6,getSpawnedResult:p6,makeAllStream:m6,validateInputSync:g6}=PC(),{mergePromise:FC,getSpawnedPromise:y6}=LC(),{joinCommand:BC,parseCommand:jC,getEscapedCommand:HC}=MC(),_6=1e3*1e3*100,v6=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?o6.env({env:s,cwd:n,execPath:i}):s},$C=(t,e,r={})=>{let n=i6._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:_6,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=v6(r),r.stdio=qC(r),process.platform==="win32"&&n6.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Qo=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?s6(e):e,wu=(t,e,r)=>{let n=$C(t,e,r),i=BC(t,e),s=HC(t,e);f6(n.options);let o;try{o=im.spawn(n.file,n.args,n.options)}catch(g){let m=new im.ChildProcess,E=Promise.reject(Eu({error:g,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return FC(m,E)}let a=y6(o),c=l6(o,n.options,a),u=h6(o,n.options,c),f={isCanceled:!1};o.kill=c6.bind(null,o.kill.bind(o)),o.cancel=u6.bind(null,o,f);let d=a6(async()=>{let[{error:g,exitCode:m,signal:E,timedOut:v},A,P,D]=await p6(o,n.options,u),ie=Qo(n.options,A),z=Qo(n.options,P),ue=Qo(n.options,D);if(g||m!==0||E!==null){let K=Eu({error:g,exitCode:m,signal:E,stdout:ie,stderr:z,all:ue,command:i,escapedCommand:s,parsed:n,timedOut:v,isCanceled:f.isCanceled,killed:o.killed});if(!n.options.reject)return K;throw K}return{command:i,escapedCommand:s,exitCode:0,stdout:ie,stderr:z,all:ue,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return d6(o,n.options.input),o.all=m6(o,n.options),FC(o,d)};vs.exports=wu;vs.exports.sync=(t,e,r)=>{let n=$C(t,e,r),i=BC(t,e),s=HC(t,e);g6(n.options);let o;try{o=im.spawnSync(n.file,n.args,n.options)}catch(u){throw Eu({error:u,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=Qo(n.options,o.stdout,o.error),c=Qo(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let u=Eu({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return u;throw u}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};vs.exports.command=(t,e)=>{let[r,...n]=jC(t);return wu(r,n,e)};vs.exports.commandSync=(t,e)=>{let[r,...n]=jC(t);return wu.sync(r,n,e)};vs.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=qC.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return wu(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var bs=y((WZ,WC)=>{"use strict";l();var VC=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);WC.exports=t=>t?Object.keys(t).map(e=>[VC.has(e)?VC.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var Ou=y((zZ,tR)=>{"use strict";l();var zC=typeof process=="object"&&process?process:{stdout:null,stderr:null},x6=require("events"),YC=require("stream"),KC=require("string_decoder").StringDecoder,Vr=Symbol("EOF"),Wr=Symbol("maybeEmitEnd"),Cn=Symbol("emittedEnd"),xu=Symbol("emittingEnd"),ea=Symbol("emittedError"),Su=Symbol("closed"),ZC=Symbol("read"),Au=Symbol("flush"),JC=Symbol("flushChunk"),At=Symbol("encoding"),zr=Symbol("decoder"),Cu=Symbol("flowing"),ta=Symbol("paused"),Es=Symbol("resume"),qe=Symbol("buffer"),Sr=Symbol("pipes"),Ze=Symbol("bufferLength"),sm=Symbol("bufferPush"),om=Symbol("bufferShift"),ct=Symbol("objectMode"),ut=Symbol("destroyed"),am=Symbol("emitData"),XC=Symbol("emitEnd"),cm=Symbol("emitEnd2"),Yr=Symbol("async"),ra=t=>Promise.resolve().then(t),QC=global._MP_NO_ITERATOR_SYMBOLS_!=="1",S6=QC&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),A6=QC&&Symbol.iterator||Symbol("iterator not implemented"),C6=t=>t==="end"||t==="finish"||t==="prefinish",R6=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,O6=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Ru=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[Es](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},um=class extends Ru{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};tR.exports=class eR extends YC{constructor(e){super(),this[Cu]=!1,this[ta]=!1,this[Sr]=[],this[qe]=[],this[ct]=e&&e.objectMode||!1,this[ct]?this[At]=null:this[At]=e&&e.encoding||null,this[At]==="buffer"&&(this[At]=null),this[Yr]=e&&!!e.async||!1,this[zr]=this[At]?new KC(this[At]):null,this[Vr]=!1,this[Cn]=!1,this[xu]=!1,this[Su]=!1,this[ea]=null,this.writable=!0,this.readable=!0,this[Ze]=0,this[ut]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[qe]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Sr]})}get bufferLength(){return this[Ze]}get encoding(){return this[At]}set encoding(e){if(this[ct])throw new Error("cannot set encoding in objectMode");if(this[At]&&e!==this[At]&&(this[zr]&&this[zr].lastNeed||this[Ze]))throw new Error("cannot change encoding");this[At]!==e&&(this[zr]=e?new KC(e):null,this[qe].length&&(this[qe]=this[qe].map(r=>this[zr].write(r)))),this[At]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ct]}set objectMode(e){this[ct]=this[ct]||!!e}get async(){return this[Yr]}set async(e){this[Yr]=this[Yr]||!!e}write(e,r,n){if(this[Vr])throw new Error("write after end");if(this[ut])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Yr]?ra:s=>s();return!this[ct]&&!Buffer.isBuffer(e)&&(O6(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):R6(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ct]?(this.flowing&&this[Ze]!==0&&this[Au](!0),this.flowing?this.emit("data",e):this[sm](e),this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[At]&&!this[zr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[At]&&(e=this[zr].write(e)),this.flowing&&this[Ze]!==0&&this[Au](!0),this.flowing?this.emit("data",e):this[sm](e),this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ut])return null;if(this[Ze]===0||e===0||e>this[Ze])return this[Wr](),null;this[ct]&&(e=null),this[qe].length>1&&!this[ct]&&(this.encoding?this[qe]=[this[qe].join("")]:this[qe]=[Buffer.concat(this[qe],this[Ze])]);let r=this[ZC](e||null,this[qe][0]);return this[Wr](),r}[ZC](e,r){return e===r.length||e===null?this[om]():(this[qe][0]=r.slice(e),r=r.slice(0,e),this[Ze]-=e),this.emit("data",r),!this[qe].length&&!this[Vr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Vr]=!0,this.writable=!1,(this.flowing||!this[ta])&&this[Wr](),this}[Es](){this[ut]||(this[ta]=!1,this[Cu]=!0,this.emit("resume"),this[qe].length?this[Au]():this[Vr]?this[Wr]():this.emit("drain"))}resume(){return this[Es]()}pause(){this[Cu]=!1,this[ta]=!0}get destroyed(){return this[ut]}get flowing(){return this[Cu]}get paused(){return this[ta]}[sm](e){this[ct]?this[Ze]+=1:this[Ze]+=e.length,this[qe].push(e)}[om](){return this[qe].length&&(this[ct]?this[Ze]-=1:this[Ze]-=this[qe][0].length),this[qe].shift()}[Au](e){do;while(this[JC](this[om]()));!e&&!this[qe].length&&!this[Vr]&&this.emit("drain")}[JC](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ut])return;let n=this[Cn];return r=r||{},e===zC.stdout||e===zC.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[Sr].push(r.proxyErrors?new um(this,e,r):new Ru(this,e,r)),this[Yr]?ra(()=>this[Es]()):this[Es]()),e}unpipe(e){let r=this[Sr].find(n=>n.dest===e);r&&(this[Sr].splice(this[Sr].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[Sr].length&&!this.flowing?this[Es]():e==="readable"&&this[Ze]!==0?super.emit("readable"):C6(e)&&this[Cn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ea]&&(this[Yr]?ra(()=>r.call(this,this[ea])):r.call(this,this[ea])),n}get emittedEnd(){return this[Cn]}[Wr](){!this[xu]&&!this[Cn]&&!this[ut]&&this[qe].length===0&&this[Vr]&&(this[xu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Su]&&this.emit("close"),this[xu]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ut&&this[ut])return;if(e==="data")return r?this[Yr]?ra(()=>this[am](r)):this[am](r):!1;if(e==="end")return this[XC]();if(e==="close"){if(this[Su]=!0,!this[Cn]&&!this[ut])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ea]=r;let s=super.emit("error",r);return this[Wr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Wr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Wr](),i}[am](e){for(let n of this[Sr])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wr](),r}[XC](){this[Cn]||(this[Cn]=!0,this.readable=!1,this[Yr]?ra(()=>this[cm]()):this[cm]())}[cm](){if(this[zr]){let r=this[zr].end();if(r){for(let n of this[Sr])n.dest.write(r);super.emit("data",r)}}for(let r of this[Sr])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ct]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[ct]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this[At]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ut,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[S6](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Vr])return Promise.resolve({done:!0});let n=null,i=null,s=u=>{this.removeListener("data",o),this.removeListener("end",a),i(u)},o=u=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:u,done:!!this[Vr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((u,f)=>{i=f,n=u,this.once(ut,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[A6](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ut]?(e?this.emit("error",e):this.emit(ut),this):(this[ut]=!0,this[qe].length=0,this[Ze]=0,typeof this.close=="function"&&!this[Su]&&this.close(),e?this.emit("error",e):this.emit(ut),this)}static isStream(e){return!!e&&(e instanceof eR||e instanceof YC||e instanceof x6&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var nR=y((YZ,rR)=>{l();var T6=require("zlib").constants||{ZLIB_VERNUM:4736};rR.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},T6))});var mm=y((KZ,hR)=>{"use strict";l();var iR=typeof process=="object"&&process?process:{stdout:null,stderr:null},k6=require("events"),sR=require("stream"),oR=require("string_decoder").StringDecoder,Kr=Symbol("EOF"),Zr=Symbol("maybeEmitEnd"),Rn=Symbol("emittedEnd"),Tu=Symbol("emittingEnd"),na=Symbol("emittedError"),ku=Symbol("closed"),aR=Symbol("read"),Pu=Symbol("flush"),cR=Symbol("flushChunk"),Ct=Symbol("encoding"),Jr=Symbol("decoder"),Iu=Symbol("flowing"),ia=Symbol("paused"),ws=Symbol("resume"),Je=Symbol("bufferLength"),lm=Symbol("bufferPush"),fm=Symbol("bufferShift"),lt=Symbol("objectMode"),ft=Symbol("destroyed"),hm=Symbol("emitData"),uR=Symbol("emitEnd"),dm=Symbol("emitEnd2"),Xr=Symbol("async"),sa=t=>Promise.resolve().then(t),lR=global._MP_NO_ITERATOR_SYMBOLS_!=="1",P6=lR&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),I6=lR&&Symbol.iterator||Symbol("iterator not implemented"),L6=t=>t==="end"||t==="finish"||t==="prefinish",N6=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,D6=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Lu=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ws](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},pm=class extends Lu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};hR.exports=class fR extends sR{constructor(e){super(),this[Iu]=!1,this[ia]=!1,this.pipes=[],this.buffer=[],this[lt]=e&&e.objectMode||!1,this[lt]?this[Ct]=null:this[Ct]=e&&e.encoding||null,this[Ct]==="buffer"&&(this[Ct]=null),this[Xr]=e&&!!e.async||!1,this[Jr]=this[Ct]?new oR(this[Ct]):null,this[Kr]=!1,this[Rn]=!1,this[Tu]=!1,this[ku]=!1,this[na]=null,this.writable=!0,this.readable=!0,this[Je]=0,this[ft]=!1}get bufferLength(){return this[Je]}get encoding(){return this[Ct]}set encoding(e){if(this[lt])throw new Error("cannot set encoding in objectMode");if(this[Ct]&&e!==this[Ct]&&(this[Jr]&&this[Jr].lastNeed||this[Je]))throw new Error("cannot change encoding");this[Ct]!==e&&(this[Jr]=e?new oR(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Jr].write(r)))),this[Ct]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[lt]}set objectMode(e){this[lt]=this[lt]||!!e}get async(){return this[Xr]}set async(e){this[Xr]=this[Xr]||!!e}write(e,r,n){if(this[Kr])throw new Error("write after end");if(this[ft])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Xr]?sa:s=>s();return!this[lt]&&!Buffer.isBuffer(e)&&(D6(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):N6(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[lt]?(this.flowing&&this[Je]!==0&&this[Pu](!0),this.flowing?this.emit("data",e):this[lm](e),this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ct]&&!this[Jr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ct]&&(e=this[Jr].write(e)),this.flowing&&this[Je]!==0&&this[Pu](!0),this.flowing?this.emit("data",e):this[lm](e),this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ft])return null;if(this[Je]===0||e===0||e>this[Je])return this[Zr](),null;this[lt]&&(e=null),this.buffer.length>1&&!this[lt]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Je])]);let r=this[aR](e||null,this.buffer[0]);return this[Zr](),r}[aR](e,r){return e===r.length||e===null?this[fm]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Je]-=e),this.emit("data",r),!this.buffer.length&&!this[Kr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Kr]=!0,this.writable=!1,(this.flowing||!this[ia])&&this[Zr](),this}[ws](){this[ft]||(this[ia]=!1,this[Iu]=!0,this.emit("resume"),this.buffer.length?this[Pu]():this[Kr]?this[Zr]():this.emit("drain"))}resume(){return this[ws]()}pause(){this[Iu]=!1,this[ia]=!0}get destroyed(){return this[ft]}get flowing(){return this[Iu]}get paused(){return this[ia]}[lm](e){this[lt]?this[Je]+=1:this[Je]+=e.length,this.buffer.push(e)}[fm](){return this.buffer.length&&(this[lt]?this[Je]-=1:this[Je]-=this.buffer[0].length),this.buffer.shift()}[Pu](e){do;while(this[cR](this[fm]()));!e&&!this.buffer.length&&!this[Kr]&&this.emit("drain")}[cR](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ft])return;let n=this[Rn];return r=r||{},e===iR.stdout||e===iR.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new pm(this,e,r):new Lu(this,e,r)),this[Xr]?sa(()=>this[ws]()):this[ws]()),e}unpipe(e){let r=this.pipes.find(n=>n.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[ws]():e==="readable"&&this[Je]!==0?super.emit("readable"):L6(e)&&this[Rn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[na]&&(this[Xr]?sa(()=>r.call(this,this[na])):r.call(this,this[na])),n}get emittedEnd(){return this[Rn]}[Zr](){!this[Tu]&&!this[Rn]&&!this[ft]&&this.buffer.length===0&&this[Kr]&&(this[Tu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ku]&&this.emit("close"),this[Tu]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ft&&this[ft])return;if(e==="data")return r?this[Xr]?sa(()=>this[hm](r)):this[hm](r):!1;if(e==="end")return this[uR]();if(e==="close"){if(this[ku]=!0,!this[Rn]&&!this[ft])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[na]=r;let s=super.emit("error",r);return this[Zr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Zr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Zr](),i}[hm](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Zr](),r}[uR](){this[Rn]||(this[Rn]=!0,this.readable=!1,this[Xr]?sa(()=>this[dm]()):this[dm]())}[dm](){if(this[Jr]){let r=this[Jr].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[lt]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[lt]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[lt]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[lt]?Promise.reject(new Error("cannot concat in objectMode")):this[Ct]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ft,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[P6](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Kr])return Promise.resolve({done:!0});let n=null,i=null,s=u=>{this.removeListener("data",o),this.removeListener("end",a),i(u)},o=u=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:u,done:!!this[Kr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((u,f)=>{i=f,n=u,this.once(ft,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[I6](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ft]?(e?this.emit("error",e):this.emit(ft),this):(this[ft]=!0,this.buffer.length=0,this[Je]=0,typeof this.close=="function"&&!this[ku]&&this.close(),e?this.emit("error",e):this.emit(ft),this)}static isStream(e){return!!e&&(e instanceof fR||e instanceof sR||e instanceof k6&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Pm=y(Nt=>{"use strict";l();var bm=require("assert"),On=require("buffer").Buffer,mR=require("zlib"),ci=Nt.constants=nR(),M6=mm(),dR=On.concat,ui=Symbol("_superWrite"),Ss=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},F6=Symbol("opts"),oa=Symbol("flushFlag"),pR=Symbol("finishFlushFlag"),km=Symbol("fullFlushFlag"),Ae=Symbol("handle"),Nu=Symbol("onError"),xs=Symbol("sawError"),gm=Symbol("level"),ym=Symbol("strategy"),_m=Symbol("ended"),ZZ=Symbol("_defaultFullFlush"),Du=class extends M6{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[xs]=!1,this[_m]=!1,this[F6]=e,this[oa]=e.flush,this[pR]=e.finishFlush;try{this[Ae]=new mR[r](e)}catch(n){throw new Ss(n)}this[Nu]=n=>{this[xs]||(this[xs]=!0,this.close(),this.emit("error",n))},this[Ae].on("error",n=>this[Nu](new Ss(n))),this.once("end",()=>this.close)}close(){this[Ae]&&(this[Ae].close(),this[Ae]=null,this.emit("close"))}reset(){if(!this[xs])return bm(this[Ae],"zlib binding closed"),this[Ae].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[km]),this.write(Object.assign(On.alloc(0),{[oa]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[pR]),this[_m]=!0,super.end(null,null,n)}get ended(){return this[_m]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=On.from(e,r)),this[xs])return;bm(this[Ae],"zlib binding closed");let i=this[Ae]._handle,s=i.close;i.close=()=>{};let o=this[Ae].close;this[Ae].close=()=>{},On.concat=u=>u;let a;try{let u=typeof e[oa]=="number"?e[oa]:this[oa];a=this[Ae]._processChunk(e,u),On.concat=dR}catch(u){On.concat=dR,this[Nu](new Ss(u))}finally{this[Ae]&&(this[Ae]._handle=i,i.close=s,this[Ae].close=o,this[Ae].removeAllListeners("error"))}this[Ae]&&this[Ae].on("error",u=>this[Nu](new Ss(u)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[ui](On.from(a[0]));for(let u=1;u<a.length;u++)c=this[ui](a[u])}else c=this[ui](On.from(a));return n&&n(),c}[ui](e){return super.write(e)}},Qr=class extends Du{constructor(e,r){e=e||{},e.flush=e.flush||ci.Z_NO_FLUSH,e.finishFlush=e.finishFlush||ci.Z_FINISH,super(e,r),this[km]=ci.Z_FULL_FLUSH,this[gm]=e.level,this[ym]=e.strategy}params(e,r){if(!this[xs]){if(!this[Ae])throw new Error("cannot switch params when binding is closed");if(!this[Ae].params)throw new Error("not supported in this implementation");if(this[gm]!==e||this[ym]!==r){this.flush(ci.Z_SYNC_FLUSH),bm(this[Ae],"zlib binding closed");let n=this[Ae].flush;this[Ae].flush=(i,s)=>{this.flush(i),s()};try{this[Ae].params(e,r)}finally{this[Ae].flush=n}this[Ae]&&(this[gm]=e,this[ym]=r)}}}},Em=class extends Qr{constructor(e){super(e,"Deflate")}},wm=class extends Qr{constructor(e){super(e,"Inflate")}},vm=Symbol("_portable"),xm=class extends Qr{constructor(e){super(e,"Gzip"),this[vm]=e&&!!e.portable}[ui](e){return this[vm]?(this[vm]=!1,e[9]=255,super[ui](e)):super[ui](e)}},Sm=class extends Qr{constructor(e){super(e,"Gunzip")}},Am=class extends Qr{constructor(e){super(e,"DeflateRaw")}},Cm=class extends Qr{constructor(e){super(e,"InflateRaw")}},Rm=class extends Qr{constructor(e){super(e,"Unzip")}},Mu=class extends Du{constructor(e,r){e=e||{},e.flush=e.flush||ci.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||ci.BROTLI_OPERATION_FINISH,super(e,r),this[km]=ci.BROTLI_OPERATION_FLUSH}},Om=class extends Mu{constructor(e){super(e,"BrotliCompress")}},Tm=class extends Mu{constructor(e){super(e,"BrotliDecompress")}};Nt.Deflate=Em;Nt.Inflate=wm;Nt.Gzip=xm;Nt.Gunzip=Sm;Nt.DeflateRaw=Am;Nt.InflateRaw=Cm;Nt.Unzip=Rm;typeof mR.BrotliCompress=="function"?(Nt.BrotliCompress=Om,Nt.BrotliDecompress=Tm):Nt.BrotliCompress=Nt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var As=y((QZ,gR)=>{l();var q6=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;gR.exports=q6!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Fu=y((tJ,yR)=>{"use strict";l();var B6=Ou(),Im=As(),Lm=Symbol("slurp");yR.exports=class extends B6{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Im(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Im(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Lm](r),n&&this[Lm](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[Lm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?Im(e[n]):e[n])}}});var Nm=y(qu=>{"use strict";l();qu.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);qu.code=new Map(Array.from(qu.name).map(t=>[t[1],t[0]]))});var ER=y((nJ,bR)=>{"use strict";l();var j6=(t,e)=>{if(Number.isSafeInteger(t))t<0?$6(t,e):H6(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},H6=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},$6=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=_R(i):i===0?e[n-1]=0:(r=!0,e[n-1]=vR(i))}},U6=t=>{let e=t[0],r=e===128?V6(t.slice(1,t.length)):e===255?G6(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},G6=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=_R(s):s===0?o=s:(n=!0,o=vR(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},V6=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},_R=t=>(255^t)&255,vR=t=>(255^t)+1&255;bR.exports={encode:j6,parse:U6}});var Rs=y((iJ,xR)=>{"use strict";l();var Dm=Nm(),Cs=require("path").posix,wR=ER(),Mm=Symbol("slurp"),Dt=Symbol("type"),Bm=class{constructor(e,r,n,i){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Dt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=li(e,r,100),this.mode=Tn(e,r+100,8),this.uid=Tn(e,r+108,8),this.gid=Tn(e,r+116,8),this.size=Tn(e,r+124,12),this.mtime=Fm(e,r+136,12),this.cksum=Tn(e,r+148,12),this[Mm](n),this[Mm](i,!0),this[Dt]=li(e,r+156,1),this[Dt]===""&&(this[Dt]="0"),this[Dt]==="0"&&this.path.slice(-1)==="/"&&(this[Dt]="5"),this[Dt]==="5"&&(this.size=0),this.linkpath=li(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=li(e,r+265,32),this.gname=li(e,r+297,32),this.devmaj=Tn(e,r+329,8),this.devmin=Tn(e,r+337,8),e[r+475]!==0){let o=li(e,r+345,155);this.path=o+"/"+this.path}else{let o=li(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Fm(e,r+476,12),this.ctime=Fm(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[Mm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=W6(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=fi(e,r,100,s)||this.needPax,this.needPax=kn(e,r+100,8,this.mode)||this.needPax,this.needPax=kn(e,r+108,8,this.uid)||this.needPax,this.needPax=kn(e,r+116,8,this.gid)||this.needPax,this.needPax=kn(e,r+124,12,this.size)||this.needPax,this.needPax=qm(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Dt].charCodeAt(0),this.needPax=fi(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=fi(e,r+265,32,this.uname)||this.needPax,this.needPax=fi(e,r+297,32,this.gname)||this.needPax,this.needPax=kn(e,r+329,8,this.devmaj)||this.needPax,this.needPax=kn(e,r+337,8,this.devmin)||this.needPax,this.needPax=fi(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=fi(e,r+345,155,o)||this.needPax:(this.needPax=fi(e,r+345,130,o)||this.needPax,this.needPax=qm(e,r+476,12,this.atime)||this.needPax,this.needPax=qm(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=r;c<r+148;c++)a+=e[c];for(let c=r+156;c<r+512;c++)a+=e[c];return this.cksum=a,kn(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Dm.name.get(this[Dt])||this[Dt]}get typeKey(){return this[Dt]}set type(e){Dm.code.has(e)?this[Dt]=Dm.code.get(e):this[Dt]=e}},W6=(t,e)=>{let n=t,i="",s,o=Cs.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Cs.dirname(n),n=Cs.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=Cs.join(Cs.basename(i),n),i=Cs.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},li=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Fm=(t,e,r)=>z6(Tn(t,e,r)),z6=t=>t===null?null:new Date(t*1e3),Tn=(t,e,r)=>t[e]&128?wR.parse(t.slice(e,e+r)):K6(t,e,r),Y6=t=>isNaN(t)?null:t,K6=(t,e,r)=>Y6(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),Z6={12:8589934591,8:2097151},kn=(t,e,r,n)=>n===null?!1:n>Z6[r]||n<0?(wR.encode(n,t.slice(e,e+r)),!0):(J6(t,e,r,n),!1),J6=(t,e,r,n)=>t.write(X6(n,r),e,r,"ascii"),X6=(t,e)=>Q6(Math.floor(t).toString(8),e),Q6=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",qm=(t,e,r,n)=>n===null?!1:kn(t,e,r,n.getTime()/1e3),eU=new Array(156).join("\0"),fi=(t,e,r,n)=>n===null?!1:(t.write(n+eU,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);xR.exports=Bm});var Bu=y((sJ,SR)=>{"use strict";l();var tU=Rs(),rU=require("path"),aa=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new tU({path:("PaxHeader/"+rU.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
|
49
|
+
`);return v?(n.originalMessage=n.message,n.message=P):n=new Error(P),n.shortMessage=A,n.command=o,n.escapedCommand=a,n.exitCode=s,n.signal=i,n.signalDescription=d,n.stdout=t,n.stderr=e,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=Boolean(c),n.isCanceled=u,n.killed=f&&!c,n};mC.exports=v$});var _C=y((IZ,em)=>{"use strict";l();var vu=["stdin","stdout","stderr"],b$=t=>vu.some(e=>t[e]!==void 0),yC=t=>{if(!t)return;let{stdio:e}=t;if(e===void 0)return vu.map(n=>t[n]);if(b$(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${vu.map(n=>`\`${n}\``).join(", ")}`);if(typeof e=="string")return e;if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);let r=Math.max(e.length,vu.length);return Array.from({length:r},(n,i)=>e[i])};em.exports=yC;em.exports.node=t=>{let e=yC(t);return e==="ipc"?"ipc":e===void 0||typeof e=="string"?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}});var bC=y((LZ,vC)=>{"use strict";l();var E$=require("os"),w$=bp(),x$=1e3*5,S$=(t,e="SIGTERM",r={})=>{let n=t(e);return A$(t,e,r,n),n},A$=(t,e,r,n)=>{if(!C$(e,r,n))return;let i=O$(r),s=setTimeout(()=>{t("SIGKILL")},i);s.unref&&s.unref()},C$=(t,{forceKillAfterTimeout:e},r)=>R$(t)&&e!==!1&&r,R$=t=>t===E$.constants.signals.SIGTERM||typeof t=="string"&&t.toUpperCase()==="SIGTERM",O$=({forceKillAfterTimeout:t=!0})=>{if(t===!0)return x$;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},T$=(t,e)=>{t.kill()&&(e.isCanceled=!0)},k$=(t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))},P$=(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(e===0||e===void 0)return n;let i,s=new Promise((a,c)=>{i=setTimeout(()=>{k$(t,r,c)},e)}),o=n.finally(()=>{clearTimeout(i)});return Promise.race([s,o])},I$=({timeout:t})=>{if(t!==void 0&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},L$=async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;let i=w$(()=>{t.kill()});return n.finally(()=>{i()})};vC.exports={spawnedKill:S$,spawnedCancel:T$,setupTimeout:P$,validateTimeout:I$,setExitHandler:L$}});var wC=y((NZ,EC)=>{"use strict";l();var xr=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";xr.writable=t=>xr(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";xr.readable=t=>xr(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";xr.duplex=t=>xr.writable(t)&&xr.readable(t);xr.transform=t=>xr.duplex(t)&&typeof t._transform=="function";EC.exports=xr});var SC=y((DZ,xC)=>{"use strict";l();var{PassThrough:N$}=require("stream");xC.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new N$({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),i?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var AC=y((MZ,Xo)=>{"use strict";l();var{constants:D$}=require("buffer"),M$=require("stream"),{promisify:F$}=require("util"),q$=SC(),B$=F$(M$.pipeline),bu=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function tm(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n=q$(e);return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=D$.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};(async()=>{try{await B$(t,n),i()}catch(a){o(a)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new bu)})}),n.getBufferedValue()}Xo.exports=tm;Xo.exports.buffer=(t,e)=>tm(t,{...e,encoding:"buffer"});Xo.exports.array=(t,e)=>tm(t,{...e,array:!0});Xo.exports.MaxBufferError=bu});var RC=y((FZ,CC)=>{"use strict";l();var{PassThrough:j$}=require("stream");CC.exports=function(){var t=[],e=new j$({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=n,e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(s){return Array.isArray(s)?(s.forEach(r),this):(t.push(s),s.once("end",i.bind(null,s)),s.once("error",e.emit.bind(e,"error")),s.pipe(e,{end:!1}),this)}function n(){return t.length==0}function i(s){t=t.filter(function(o){return o!==s}),!t.length&&e.readable&&e.end()}}});var PC=y((qZ,kC)=>{"use strict";l();var TC=wC(),OC=AC(),H$=RC(),$$=(t,e)=>{e===void 0||t.stdin===void 0||(TC(e)?e.pipe(t.stdin):t.stdin.end(e))},U$=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;let r=H$();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},rm=async(t,e)=>{if(!!t){t.destroy();try{return await e}catch(r){return r.bufferedData}}},nm=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(!(!t||!r))return e?OC(t,{encoding:e,maxBuffer:n}):OC.buffer(t,{maxBuffer:n})},G$=async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:s},o)=>{let a=nm(t,{encoding:n,buffer:i,maxBuffer:s}),c=nm(e,{encoding:n,buffer:i,maxBuffer:s}),u=nm(r,{encoding:n,buffer:i,maxBuffer:s*2});try{return await Promise.all([o,a,c,u])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},rm(t,a),rm(e,c),rm(r,u)])}},V$=({input:t})=>{if(TC(t))throw new TypeError("The `input` option cannot be a stream in sync mode")};kC.exports={handleInput:$$,makeAllStream:U$,getSpawnedResult:G$,validateInputSync:V$}});var LC=y((BZ,IC)=>{"use strict";l();var W$=(async()=>{})().constructor.prototype,z$=["then","catch","finally"].map(t=>[t,Reflect.getOwnPropertyDescriptor(W$,t)]),Y$=(t,e)=>{for(let[r,n]of z$){let i=typeof e=="function"?(...s)=>Reflect.apply(n.value,e(),s):n.value.bind(e);Reflect.defineProperty(t,r,{...n,value:i})}return t},K$=t=>new Promise((e,r)=>{t.on("exit",(n,i)=>{e({exitCode:n,signal:i})}),t.on("error",n=>{r(n)}),t.stdin&&t.stdin.on("error",n=>{r(n)})});IC.exports={mergePromise:Y$,getSpawnedPromise:K$}});var MC=y((jZ,DC)=>{"use strict";l();var NC=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],Z$=/^[\w.-]+$/,J$=/"/g,X$=t=>typeof t!="string"||Z$.test(t)?t:`"${t.replace(J$,'\\"')}"`,Q$=(t,e)=>NC(t,e).join(" "),e6=(t,e)=>NC(t,e).map(r=>X$(r)).join(" "),t6=/ +/g,r6=t=>{let e=[];for(let r of t.trim().split(t6)){let n=e[e.length-1];n&&n.endsWith("\\")?e[e.length-1]=`${n.slice(0,-1)} ${r}`:e.push(r)}return e};DC.exports={joinCommand:Q$,getEscapedCommand:e6,parseCommand:r6}});var UC=y((HZ,vs)=>{"use strict";l();var n6=require("path"),im=require("child_process"),i6=nC(),s6=sC(),o6=cC(),a6=yp(),Eu=gC(),qC=_C(),{spawnedKill:c6,spawnedCancel:u6,setupTimeout:l6,validateTimeout:f6,setExitHandler:h6}=bC(),{handleInput:d6,getSpawnedResult:p6,makeAllStream:m6,validateInputSync:g6}=PC(),{mergePromise:FC,getSpawnedPromise:y6}=LC(),{joinCommand:BC,parseCommand:jC,getEscapedCommand:HC}=MC(),_6=1e3*1e3*100,v6=({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{let s=e?{...process.env,...t}:t;return r?o6.env({env:s,cwd:n,execPath:i}):s},$C=(t,e,r={})=>{let n=i6._parse(t,e,r);return t=n.command,e=n.args,r=n.options,r={maxBuffer:_6,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r},r.env=v6(r),r.stdio=qC(r),process.platform==="win32"&&n6.basename(t,".exe")==="cmd"&&e.unshift("/q"),{file:t,args:e,options:r,parsed:n}},Qo=(t,e,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?r===void 0?void 0:"":t.stripFinalNewline?s6(e):e,wu=(t,e,r)=>{let n=$C(t,e,r),i=BC(t,e),s=HC(t,e);f6(n.options);let o;try{o=im.spawn(n.file,n.args,n.options)}catch(m){let g=new im.ChildProcess,E=Promise.reject(Eu({error:m,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return FC(g,E)}let a=y6(o),c=l6(o,n.options,a),u=h6(o,n.options,c),f={isCanceled:!1};o.kill=c6.bind(null,o.kill.bind(o)),o.cancel=u6.bind(null,o,f);let d=a6(async()=>{let[{error:m,exitCode:g,signal:E,timedOut:v},A,P,B]=await p6(o,n.options,u),re=Qo(n.options,A),$=Qo(n.options,P),se=Qo(n.options,B);if(m||g!==0||E!==null){let K=Eu({error:m,exitCode:g,signal:E,stdout:re,stderr:$,all:se,command:i,escapedCommand:s,parsed:n,timedOut:v,isCanceled:f.isCanceled,killed:o.killed});if(!n.options.reject)return K;throw K}return{command:i,escapedCommand:s,exitCode:0,stdout:re,stderr:$,all:se,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return d6(o,n.options.input),o.all=m6(o,n.options),FC(o,d)};vs.exports=wu;vs.exports.sync=(t,e,r)=>{let n=$C(t,e,r),i=BC(t,e),s=HC(t,e);g6(n.options);let o;try{o=im.spawnSync(n.file,n.args,n.options)}catch(u){throw Eu({error:u,stdout:"",stderr:"",all:"",command:i,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let a=Qo(n.options,o.stdout,o.error),c=Qo(n.options,o.stderr,o.error);if(o.error||o.status!==0||o.signal!==null){let u=Eu({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:i,escapedCommand:s,parsed:n,timedOut:o.error&&o.error.code==="ETIMEDOUT",isCanceled:!1,killed:o.signal!==null});if(!n.options.reject)return u;throw u}return{command:i,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};vs.exports.command=(t,e)=>{let[r,...n]=jC(t);return wu(r,n,e)};vs.exports.commandSync=(t,e)=>{let[r,...n]=jC(t);return wu.sync(r,n,e)};vs.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&typeof e=="object"&&(r=e,e=[]);let n=qC.node(r),i=process.execArgv.filter(a=>!a.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=i}=r;return wu(s,[...o,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var bs=y((WZ,WC)=>{"use strict";l();var VC=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);WC.exports=t=>t?Object.keys(t).map(e=>[VC.has(e)?VC.get(e):e,t[e]]).reduce((e,r)=>(e[r[0]]=r[1],e),Object.create(null)):{}});var Ou=y((zZ,tR)=>{"use strict";l();var zC=typeof process=="object"&&process?process:{stdout:null,stderr:null},x6=require("events"),YC=require("stream"),KC=require("string_decoder").StringDecoder,Vr=Symbol("EOF"),Wr=Symbol("maybeEmitEnd"),Cn=Symbol("emittedEnd"),xu=Symbol("emittingEnd"),ea=Symbol("emittedError"),Su=Symbol("closed"),ZC=Symbol("read"),Au=Symbol("flush"),JC=Symbol("flushChunk"),At=Symbol("encoding"),zr=Symbol("decoder"),Cu=Symbol("flowing"),ta=Symbol("paused"),Es=Symbol("resume"),qe=Symbol("buffer"),Sr=Symbol("pipes"),Ze=Symbol("bufferLength"),sm=Symbol("bufferPush"),om=Symbol("bufferShift"),ct=Symbol("objectMode"),ut=Symbol("destroyed"),am=Symbol("emitData"),XC=Symbol("emitEnd"),cm=Symbol("emitEnd2"),Yr=Symbol("async"),ra=t=>Promise.resolve().then(t),QC=global._MP_NO_ITERATOR_SYMBOLS_!=="1",S6=QC&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),A6=QC&&Symbol.iterator||Symbol("iterator not implemented"),C6=t=>t==="end"||t==="finish"||t==="prefinish",R6=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,O6=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Ru=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[Es](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},um=class extends Ru{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};tR.exports=class eR extends YC{constructor(e){super(),this[Cu]=!1,this[ta]=!1,this[Sr]=[],this[qe]=[],this[ct]=e&&e.objectMode||!1,this[ct]?this[At]=null:this[At]=e&&e.encoding||null,this[At]==="buffer"&&(this[At]=null),this[Yr]=e&&!!e.async||!1,this[zr]=this[At]?new KC(this[At]):null,this[Vr]=!1,this[Cn]=!1,this[xu]=!1,this[Su]=!1,this[ea]=null,this.writable=!0,this.readable=!0,this[Ze]=0,this[ut]=!1,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[qe]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[Sr]})}get bufferLength(){return this[Ze]}get encoding(){return this[At]}set encoding(e){if(this[ct])throw new Error("cannot set encoding in objectMode");if(this[At]&&e!==this[At]&&(this[zr]&&this[zr].lastNeed||this[Ze]))throw new Error("cannot change encoding");this[At]!==e&&(this[zr]=e?new KC(e):null,this[qe].length&&(this[qe]=this[qe].map(r=>this[zr].write(r)))),this[At]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ct]}set objectMode(e){this[ct]=this[ct]||!!e}get async(){return this[Yr]}set async(e){this[Yr]=this[Yr]||!!e}write(e,r,n){if(this[Vr])throw new Error("write after end");if(this[ut])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Yr]?ra:s=>s();return!this[ct]&&!Buffer.isBuffer(e)&&(O6(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):R6(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[ct]?(this.flowing&&this[Ze]!==0&&this[Au](!0),this.flowing?this.emit("data",e):this[sm](e),this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[At]&&!this[zr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[At]&&(e=this[zr].write(e)),this.flowing&&this[Ze]!==0&&this[Au](!0),this.flowing?this.emit("data",e):this[sm](e),this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Ze]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ut])return null;if(this[Ze]===0||e===0||e>this[Ze])return this[Wr](),null;this[ct]&&(e=null),this[qe].length>1&&!this[ct]&&(this.encoding?this[qe]=[this[qe].join("")]:this[qe]=[Buffer.concat(this[qe],this[Ze])]);let r=this[ZC](e||null,this[qe][0]);return this[Wr](),r}[ZC](e,r){return e===r.length||e===null?this[om]():(this[qe][0]=r.slice(e),r=r.slice(0,e),this[Ze]-=e),this.emit("data",r),!this[qe].length&&!this[Vr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Vr]=!0,this.writable=!1,(this.flowing||!this[ta])&&this[Wr](),this}[Es](){this[ut]||(this[ta]=!1,this[Cu]=!0,this.emit("resume"),this[qe].length?this[Au]():this[Vr]?this[Wr]():this.emit("drain"))}resume(){return this[Es]()}pause(){this[Cu]=!1,this[ta]=!0}get destroyed(){return this[ut]}get flowing(){return this[Cu]}get paused(){return this[ta]}[sm](e){this[ct]?this[Ze]+=1:this[Ze]+=e.length,this[qe].push(e)}[om](){return this[qe].length&&(this[ct]?this[Ze]-=1:this[Ze]-=this[qe][0].length),this[qe].shift()}[Au](e){do;while(this[JC](this[om]()));!e&&!this[qe].length&&!this[Vr]&&this.emit("drain")}[JC](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ut])return;let n=this[Cn];return r=r||{},e===zC.stdout||e===zC.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this[Sr].push(r.proxyErrors?new um(this,e,r):new Ru(this,e,r)),this[Yr]?ra(()=>this[Es]()):this[Es]()),e}unpipe(e){let r=this[Sr].find(n=>n.dest===e);r&&(this[Sr].splice(this[Sr].indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this[Sr].length&&!this.flowing?this[Es]():e==="readable"&&this[Ze]!==0?super.emit("readable"):C6(e)&&this[Cn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[ea]&&(this[Yr]?ra(()=>r.call(this,this[ea])):r.call(this,this[ea])),n}get emittedEnd(){return this[Cn]}[Wr](){!this[xu]&&!this[Cn]&&!this[ut]&&this[qe].length===0&&this[Vr]&&(this[xu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Su]&&this.emit("close"),this[xu]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ut&&this[ut])return;if(e==="data")return r?this[Yr]?ra(()=>this[am](r)):this[am](r):!1;if(e==="end")return this[XC]();if(e==="close"){if(this[Su]=!0,!this[Cn]&&!this[ut])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[ea]=r;let s=super.emit("error",r);return this[Wr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Wr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Wr](),i}[am](e){for(let n of this[Sr])n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Wr](),r}[XC](){this[Cn]||(this[Cn]=!0,this.readable=!1,this[Yr]?ra(()=>this[cm]()):this[cm]())}[cm](){if(this[zr]){let r=this[zr].end();if(r){for(let n of this[Sr])n.dest.write(r);super.emit("data",r)}}for(let r of this[Sr])r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[ct]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[ct]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ct]?Promise.reject(new Error("cannot concat in objectMode")):this[At]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ut,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[S6](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Vr])return Promise.resolve({done:!0});let n=null,i=null,s=u=>{this.removeListener("data",o),this.removeListener("end",a),i(u)},o=u=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:u,done:!!this[Vr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((u,f)=>{i=f,n=u,this.once(ut,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[A6](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ut]?(e?this.emit("error",e):this.emit(ut),this):(this[ut]=!0,this[qe].length=0,this[Ze]=0,typeof this.close=="function"&&!this[Su]&&this.close(),e?this.emit("error",e):this.emit(ut),this)}static isStream(e){return!!e&&(e instanceof eR||e instanceof YC||e instanceof x6&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var nR=y((YZ,rR)=>{l();var T6=require("zlib").constants||{ZLIB_VERNUM:4736};rR.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},T6))});var mm=y((KZ,hR)=>{"use strict";l();var iR=typeof process=="object"&&process?process:{stdout:null,stderr:null},k6=require("events"),sR=require("stream"),oR=require("string_decoder").StringDecoder,Kr=Symbol("EOF"),Zr=Symbol("maybeEmitEnd"),Rn=Symbol("emittedEnd"),Tu=Symbol("emittingEnd"),na=Symbol("emittedError"),ku=Symbol("closed"),aR=Symbol("read"),Pu=Symbol("flush"),cR=Symbol("flushChunk"),Ct=Symbol("encoding"),Jr=Symbol("decoder"),Iu=Symbol("flowing"),ia=Symbol("paused"),ws=Symbol("resume"),Je=Symbol("bufferLength"),lm=Symbol("bufferPush"),fm=Symbol("bufferShift"),lt=Symbol("objectMode"),ft=Symbol("destroyed"),hm=Symbol("emitData"),uR=Symbol("emitEnd"),dm=Symbol("emitEnd2"),Xr=Symbol("async"),sa=t=>Promise.resolve().then(t),lR=global._MP_NO_ITERATOR_SYMBOLS_!=="1",P6=lR&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),I6=lR&&Symbol.iterator||Symbol("iterator not implemented"),L6=t=>t==="end"||t==="finish"||t==="prefinish",N6=t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,D6=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Lu=class{constructor(e,r,n){this.src=e,this.dest=r,this.opts=n,this.ondrain=()=>e[ws](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},pm=class extends Lu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,n){super(e,r,n),this.proxyErrors=i=>r.emit("error",i),e.on("error",this.proxyErrors)}};hR.exports=class fR extends sR{constructor(e){super(),this[Iu]=!1,this[ia]=!1,this.pipes=[],this.buffer=[],this[lt]=e&&e.objectMode||!1,this[lt]?this[Ct]=null:this[Ct]=e&&e.encoding||null,this[Ct]==="buffer"&&(this[Ct]=null),this[Xr]=e&&!!e.async||!1,this[Jr]=this[Ct]?new oR(this[Ct]):null,this[Kr]=!1,this[Rn]=!1,this[Tu]=!1,this[ku]=!1,this[na]=null,this.writable=!0,this.readable=!0,this[Je]=0,this[ft]=!1}get bufferLength(){return this[Je]}get encoding(){return this[Ct]}set encoding(e){if(this[lt])throw new Error("cannot set encoding in objectMode");if(this[Ct]&&e!==this[Ct]&&(this[Jr]&&this[Jr].lastNeed||this[Je]))throw new Error("cannot change encoding");this[Ct]!==e&&(this[Jr]=e?new oR(e):null,this.buffer.length&&(this.buffer=this.buffer.map(r=>this[Jr].write(r)))),this[Ct]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[lt]}set objectMode(e){this[lt]=this[lt]||!!e}get async(){return this[Xr]}set async(e){this[Xr]=this[Xr]||!!e}write(e,r,n){if(this[Kr])throw new Error("write after end");if(this[ft])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Xr]?sa:s=>s();return!this[lt]&&!Buffer.isBuffer(e)&&(D6(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):N6(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),this[lt]?(this.flowing&&this[Je]!==0&&this[Pu](!0),this.flowing?this.emit("data",e):this[lm](e),this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing):e.length?(typeof e=="string"&&!(r===this[Ct]&&!this[Jr].lastNeed)&&(e=Buffer.from(e,r)),Buffer.isBuffer(e)&&this[Ct]&&(e=this[Jr].write(e)),this.flowing&&this[Je]!==0&&this[Pu](!0),this.flowing?this.emit("data",e):this[lm](e),this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing):(this[Je]!==0&&this.emit("readable"),n&&i(n),this.flowing)}read(e){if(this[ft])return null;if(this[Je]===0||e===0||e>this[Je])return this[Zr](),null;this[lt]&&(e=null),this.buffer.length>1&&!this[lt]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[Je])]);let r=this[aR](e||null,this.buffer[0]);return this[Zr](),r}[aR](e,r){return e===r.length||e===null?this[fm]():(this.buffer[0]=r.slice(e),r=r.slice(0,e),this[Je]-=e),this.emit("data",r),!this.buffer.length&&!this[Kr]&&this.emit("drain"),r}end(e,r,n){return typeof e=="function"&&(n=e,e=null),typeof r=="function"&&(n=r,r="utf8"),e&&this.write(e,r),n&&this.once("end",n),this[Kr]=!0,this.writable=!1,(this.flowing||!this[ia])&&this[Zr](),this}[ws](){this[ft]||(this[ia]=!1,this[Iu]=!0,this.emit("resume"),this.buffer.length?this[Pu]():this[Kr]?this[Zr]():this.emit("drain"))}resume(){return this[ws]()}pause(){this[Iu]=!1,this[ia]=!0}get destroyed(){return this[ft]}get flowing(){return this[Iu]}get paused(){return this[ia]}[lm](e){this[lt]?this[Je]+=1:this[Je]+=e.length,this.buffer.push(e)}[fm](){return this.buffer.length&&(this[lt]?this[Je]-=1:this[Je]-=this.buffer[0].length),this.buffer.shift()}[Pu](e){do;while(this[cR](this[fm]()));!e&&!this.buffer.length&&!this[Kr]&&this.emit("drain")}[cR](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,r){if(this[ft])return;let n=this[Rn];return r=r||{},e===iR.stdout||e===iR.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&e.end():(this.pipes.push(r.proxyErrors?new pm(this,e,r):new Lu(this,e,r)),this[Xr]?sa(()=>this[ws]()):this[ws]()),e}unpipe(e){let r=this.pipes.find(n=>n.dest===e);r&&(this.pipes.splice(this.pipes.indexOf(r),1),r.unpipe())}addListener(e,r){return this.on(e,r)}on(e,r){let n=super.on(e,r);return e==="data"&&!this.pipes.length&&!this.flowing?this[ws]():e==="readable"&&this[Je]!==0?super.emit("readable"):L6(e)&&this[Rn]?(super.emit(e),this.removeAllListeners(e)):e==="error"&&this[na]&&(this[Xr]?sa(()=>r.call(this,this[na])):r.call(this,this[na])),n}get emittedEnd(){return this[Rn]}[Zr](){!this[Tu]&&!this[Rn]&&!this[ft]&&this.buffer.length===0&&this[Kr]&&(this[Tu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ku]&&this.emit("close"),this[Tu]=!1)}emit(e,r,...n){if(e!=="error"&&e!=="close"&&e!==ft&&this[ft])return;if(e==="data")return r?this[Xr]?sa(()=>this[hm](r)):this[hm](r):!1;if(e==="end")return this[uR]();if(e==="close"){if(this[ku]=!0,!this[Rn]&&!this[ft])return;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(e==="error"){this[na]=r;let s=super.emit("error",r);return this[Zr](),s}else if(e==="resume"){let s=super.emit("resume");return this[Zr](),s}else if(e==="finish"||e==="prefinish"){let s=super.emit(e);return this.removeAllListeners(e),s}let i=super.emit(e,r,...n);return this[Zr](),i}[hm](e){for(let n of this.pipes)n.dest.write(e)===!1&&this.pause();let r=super.emit("data",e);return this[Zr](),r}[uR](){this[Rn]||(this[Rn]=!0,this.readable=!1,this[Xr]?sa(()=>this[dm]()):this[dm]())}[dm](){if(this[Jr]){let r=this[Jr].end();if(r){for(let n of this.pipes)n.dest.write(r);super.emit("data",r)}}for(let r of this.pipes)r.end();let e=super.emit("end");return this.removeAllListeners("end"),e}collect(){let e=[];this[lt]||(e.dataLength=0);let r=this.promise();return this.on("data",n=>{e.push(n),this[lt]||(e.dataLength+=n.length)}),r.then(()=>e)}concat(){return this[lt]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[lt]?Promise.reject(new Error("cannot concat in objectMode")):this[Ct]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,r)=>{this.on(ft,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>e())})}[P6](){return{next:()=>{let r=this.read();if(r!==null)return Promise.resolve({done:!1,value:r});if(this[Kr])return Promise.resolve({done:!0});let n=null,i=null,s=u=>{this.removeListener("data",o),this.removeListener("end",a),i(u)},o=u=>{this.removeListener("error",s),this.removeListener("end",a),this.pause(),n({value:u,done:!!this[Kr]})},a=()=>{this.removeListener("error",s),this.removeListener("data",o),n({done:!0})},c=()=>s(new Error("stream destroyed"));return new Promise((u,f)=>{i=f,n=u,this.once(ft,c),this.once("error",s),this.once("end",a),this.once("data",o)})}}}[I6](){return{next:()=>{let r=this.read();return{value:r,done:r===null}}}}destroy(e){return this[ft]?(e?this.emit("error",e):this.emit(ft),this):(this[ft]=!0,this.buffer.length=0,this[Je]=0,typeof this.close=="function"&&!this[ku]&&this.close(),e?this.emit("error",e):this.emit(ft),this)}static isStream(e){return!!e&&(e instanceof fR||e instanceof sR||e instanceof k6&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var Pm=y(Nt=>{"use strict";l();var bm=require("assert"),On=require("buffer").Buffer,mR=require("zlib"),ci=Nt.constants=nR(),M6=mm(),dR=On.concat,ui=Symbol("_superWrite"),Ss=class extends Error{constructor(e){super("zlib: "+e.message),this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},F6=Symbol("opts"),oa=Symbol("flushFlag"),pR=Symbol("finishFlushFlag"),km=Symbol("fullFlushFlag"),Ae=Symbol("handle"),Nu=Symbol("onError"),xs=Symbol("sawError"),gm=Symbol("level"),ym=Symbol("strategy"),_m=Symbol("ended"),ZZ=Symbol("_defaultFullFlush"),Du=class extends M6{constructor(e,r){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e),this[xs]=!1,this[_m]=!1,this[F6]=e,this[oa]=e.flush,this[pR]=e.finishFlush;try{this[Ae]=new mR[r](e)}catch(n){throw new Ss(n)}this[Nu]=n=>{this[xs]||(this[xs]=!0,this.close(),this.emit("error",n))},this[Ae].on("error",n=>this[Nu](new Ss(n))),this.once("end",()=>this.close)}close(){this[Ae]&&(this[Ae].close(),this[Ae]=null,this.emit("close"))}reset(){if(!this[xs])return bm(this[Ae],"zlib binding closed"),this[Ae].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[km]),this.write(Object.assign(On.alloc(0),{[oa]:e})))}end(e,r,n){return e&&this.write(e,r),this.flush(this[pR]),this[_m]=!0,super.end(null,null,n)}get ended(){return this[_m]}write(e,r,n){if(typeof r=="function"&&(n=r,r="utf8"),typeof e=="string"&&(e=On.from(e,r)),this[xs])return;bm(this[Ae],"zlib binding closed");let i=this[Ae]._handle,s=i.close;i.close=()=>{};let o=this[Ae].close;this[Ae].close=()=>{},On.concat=u=>u;let a;try{let u=typeof e[oa]=="number"?e[oa]:this[oa];a=this[Ae]._processChunk(e,u),On.concat=dR}catch(u){On.concat=dR,this[Nu](new Ss(u))}finally{this[Ae]&&(this[Ae]._handle=i,i.close=s,this[Ae].close=o,this[Ae].removeAllListeners("error"))}this[Ae]&&this[Ae].on("error",u=>this[Nu](new Ss(u)));let c;if(a)if(Array.isArray(a)&&a.length>0){c=this[ui](On.from(a[0]));for(let u=1;u<a.length;u++)c=this[ui](a[u])}else c=this[ui](On.from(a));return n&&n(),c}[ui](e){return super.write(e)}},Qr=class extends Du{constructor(e,r){e=e||{},e.flush=e.flush||ci.Z_NO_FLUSH,e.finishFlush=e.finishFlush||ci.Z_FINISH,super(e,r),this[km]=ci.Z_FULL_FLUSH,this[gm]=e.level,this[ym]=e.strategy}params(e,r){if(!this[xs]){if(!this[Ae])throw new Error("cannot switch params when binding is closed");if(!this[Ae].params)throw new Error("not supported in this implementation");if(this[gm]!==e||this[ym]!==r){this.flush(ci.Z_SYNC_FLUSH),bm(this[Ae],"zlib binding closed");let n=this[Ae].flush;this[Ae].flush=(i,s)=>{this.flush(i),s()};try{this[Ae].params(e,r)}finally{this[Ae].flush=n}this[Ae]&&(this[gm]=e,this[ym]=r)}}}},Em=class extends Qr{constructor(e){super(e,"Deflate")}},wm=class extends Qr{constructor(e){super(e,"Inflate")}},vm=Symbol("_portable"),xm=class extends Qr{constructor(e){super(e,"Gzip"),this[vm]=e&&!!e.portable}[ui](e){return this[vm]?(this[vm]=!1,e[9]=255,super[ui](e)):super[ui](e)}},Sm=class extends Qr{constructor(e){super(e,"Gunzip")}},Am=class extends Qr{constructor(e){super(e,"DeflateRaw")}},Cm=class extends Qr{constructor(e){super(e,"InflateRaw")}},Rm=class extends Qr{constructor(e){super(e,"Unzip")}},Mu=class extends Du{constructor(e,r){e=e||{},e.flush=e.flush||ci.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||ci.BROTLI_OPERATION_FINISH,super(e,r),this[km]=ci.BROTLI_OPERATION_FLUSH}},Om=class extends Mu{constructor(e){super(e,"BrotliCompress")}},Tm=class extends Mu{constructor(e){super(e,"BrotliDecompress")}};Nt.Deflate=Em;Nt.Inflate=wm;Nt.Gzip=xm;Nt.Gunzip=Sm;Nt.DeflateRaw=Am;Nt.InflateRaw=Cm;Nt.Unzip=Rm;typeof mR.BrotliCompress=="function"?(Nt.BrotliCompress=Om,Nt.BrotliDecompress=Tm):Nt.BrotliCompress=Nt.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var As=y((QZ,gR)=>{l();var q6=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;gR.exports=q6!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")});var Fu=y((tJ,yR)=>{"use strict";l();var B6=Ou(),Im=As(),Lm=Symbol("slurp");yR.exports=class extends B6{constructor(e,r,n){switch(super(),this.pause(),this.extended=r,this.globalExtended=n,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=Im(e.path),this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=Im(e.linkpath),this.uname=e.uname,this.gname=e.gname,r&&this[Lm](r),n&&this[Lm](n,!0)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");let n=this.remain,i=this.blockRemain;return this.remain=Math.max(0,n-r),this.blockRemain=Math.max(0,i-r),this.ignore?!0:n>=r?super.write(e):super.write(e.slice(0,n))}[Lm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=n==="path"||n==="linkpath"?Im(e[n]):e[n])}}});var Nm=y(qu=>{"use strict";l();qu.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);qu.code=new Map(Array.from(qu.name).map(t=>[t[1],t[0]]))});var ER=y((nJ,bR)=>{"use strict";l();var j6=(t,e)=>{if(Number.isSafeInteger(t))t<0?$6(t,e):H6(t,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},H6=(t,e)=>{e[0]=128;for(var r=e.length;r>1;r--)e[r-1]=t&255,t=Math.floor(t/256)},$6=(t,e)=>{e[0]=255;var r=!1;t=t*-1;for(var n=e.length;n>1;n--){var i=t&255;t=Math.floor(t/256),r?e[n-1]=_R(i):i===0?e[n-1]=0:(r=!0,e[n-1]=vR(i))}},U6=t=>{let e=t[0],r=e===128?V6(t.slice(1,t.length)):e===255?G6(t):null;if(r===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(r))throw Error("parsed number outside of javascript safe integer range");return r},G6=t=>{for(var e=t.length,r=0,n=!1,i=e-1;i>-1;i--){var s=t[i],o;n?o=_R(s):s===0?o=s:(n=!0,o=vR(s)),o!==0&&(r-=o*Math.pow(256,e-i-1))}return r},V6=t=>{for(var e=t.length,r=0,n=e-1;n>-1;n--){var i=t[n];i!==0&&(r+=i*Math.pow(256,e-n-1))}return r},_R=t=>(255^t)&255,vR=t=>(255^t)+1&255;bR.exports={encode:j6,parse:U6}});var Rs=y((iJ,xR)=>{"use strict";l();var Dm=Nm(),Cs=require("path").posix,wR=ER(),Mm=Symbol("slurp"),Dt=Symbol("type"),Bm=class{constructor(e,r,n,i){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[Dt]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,r||0,n,i):e&&this.set(e)}decode(e,r,n,i){if(r||(r=0),!e||!(e.length>=r+512))throw new Error("need 512 bytes for header");if(this.path=li(e,r,100),this.mode=Tn(e,r+100,8),this.uid=Tn(e,r+108,8),this.gid=Tn(e,r+116,8),this.size=Tn(e,r+124,12),this.mtime=Fm(e,r+136,12),this.cksum=Tn(e,r+148,12),this[Mm](n),this[Mm](i,!0),this[Dt]=li(e,r+156,1),this[Dt]===""&&(this[Dt]="0"),this[Dt]==="0"&&this.path.slice(-1)==="/"&&(this[Dt]="5"),this[Dt]==="5"&&(this.size=0),this.linkpath=li(e,r+157,100),e.slice(r+257,r+265).toString()==="ustar\x0000")if(this.uname=li(e,r+265,32),this.gname=li(e,r+297,32),this.devmaj=Tn(e,r+329,8),this.devmin=Tn(e,r+337,8),e[r+475]!==0){let o=li(e,r+345,155);this.path=o+"/"+this.path}else{let o=li(e,r+345,130);o&&(this.path=o+"/"+this.path),this.atime=Fm(e,r+476,12),this.ctime=Fm(e,r+488,12)}let s=8*32;for(let o=r;o<r+148;o++)s+=e[o];for(let o=r+156;o<r+512;o++)s+=e[o];this.cksumValid=s===this.cksum,this.cksum===null&&s===8*32&&(this.nullBlock=!0)}[Mm](e,r){for(let n in e)e[n]!==null&&e[n]!==void 0&&!(r&&n==="path")&&(this[n]=e[n])}encode(e,r){if(e||(e=this.block=Buffer.alloc(512),r=0),r||(r=0),!(e.length>=r+512))throw new Error("need 512 bytes for header");let n=this.ctime||this.atime?130:155,i=W6(this.path||"",n),s=i[0],o=i[1];this.needPax=i[2],this.needPax=fi(e,r,100,s)||this.needPax,this.needPax=kn(e,r+100,8,this.mode)||this.needPax,this.needPax=kn(e,r+108,8,this.uid)||this.needPax,this.needPax=kn(e,r+116,8,this.gid)||this.needPax,this.needPax=kn(e,r+124,12,this.size)||this.needPax,this.needPax=qm(e,r+136,12,this.mtime)||this.needPax,e[r+156]=this[Dt].charCodeAt(0),this.needPax=fi(e,r+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",r+257,8),this.needPax=fi(e,r+265,32,this.uname)||this.needPax,this.needPax=fi(e,r+297,32,this.gname)||this.needPax,this.needPax=kn(e,r+329,8,this.devmaj)||this.needPax,this.needPax=kn(e,r+337,8,this.devmin)||this.needPax,this.needPax=fi(e,r+345,n,o)||this.needPax,e[r+475]!==0?this.needPax=fi(e,r+345,155,o)||this.needPax:(this.needPax=fi(e,r+345,130,o)||this.needPax,this.needPax=qm(e,r+476,12,this.atime)||this.needPax,this.needPax=qm(e,r+488,12,this.ctime)||this.needPax);let a=8*32;for(let c=r;c<r+148;c++)a+=e[c];for(let c=r+156;c<r+512;c++)a+=e[c];return this.cksum=a,kn(e,r+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(e){for(let r in e)e[r]!==null&&e[r]!==void 0&&(this[r]=e[r])}get type(){return Dm.name.get(this[Dt])||this[Dt]}get typeKey(){return this[Dt]}set type(e){Dm.code.has(e)?this[Dt]=Dm.code.get(e):this[Dt]=e}},W6=(t,e)=>{let n=t,i="",s,o=Cs.parse(t).root||".";if(Buffer.byteLength(n)<100)s=[n,i,!1];else{i=Cs.dirname(n),n=Cs.basename(n);do Buffer.byteLength(n)<=100&&Buffer.byteLength(i)<=e?s=[n,i,!1]:Buffer.byteLength(n)>100&&Buffer.byteLength(i)<=e?s=[n.slice(0,100-1),i,!0]:(n=Cs.join(Cs.basename(i),n),i=Cs.dirname(i));while(i!==o&&!s);s||(s=[t.slice(0,100-1),"",!0])}return s},li=(t,e,r)=>t.slice(e,e+r).toString("utf8").replace(/\0.*/,""),Fm=(t,e,r)=>z6(Tn(t,e,r)),z6=t=>t===null?null:new Date(t*1e3),Tn=(t,e,r)=>t[e]&128?wR.parse(t.slice(e,e+r)):K6(t,e,r),Y6=t=>isNaN(t)?null:t,K6=(t,e,r)=>Y6(parseInt(t.slice(e,e+r).toString("utf8").replace(/\0.*$/,"").trim(),8)),Z6={12:8589934591,8:2097151},kn=(t,e,r,n)=>n===null?!1:n>Z6[r]||n<0?(wR.encode(n,t.slice(e,e+r)),!0):(J6(t,e,r,n),!1),J6=(t,e,r,n)=>t.write(X6(n,r),e,r,"ascii"),X6=(t,e)=>Q6(Math.floor(t).toString(8),e),Q6=(t,e)=>(t.length===e-1?t:new Array(e-t.length-1).join("0")+t+" ")+"\0",qm=(t,e,r,n)=>n===null?!1:kn(t,e,r,n.getTime()/1e3),eU=new Array(156).join("\0"),fi=(t,e,r,n)=>n===null?!1:(t.write(n+eU,e,r,"utf8"),n.length!==Buffer.byteLength(n)||n.length>r);xR.exports=Bm});var Bu=y((sJ,SR)=>{"use strict";l();var tU=Rs(),rU=require("path"),aa=class{constructor(e,r){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=r||!1}encode(){let e=this.encodeBody();if(e==="")return null;let r=Buffer.byteLength(e),n=512*Math.ceil(1+r/512),i=Buffer.allocUnsafe(n);for(let s=0;s<512;s++)i[s]=0;new tU({path:("PaxHeader/"+rU.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i),i.write(e,512,r,"utf8");for(let s=r+512;s<i.length;s++)i[s]=0;return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===void 0)return"";let r=this[e]instanceof Date?this[e].getTime()/1e3:this[e],n=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+r+`
|
|
50
50
|
`,i=Buffer.byteLength(n),s=Math.floor(Math.log(i)/Math.log(10))+1;return i+s>=Math.pow(10,s)&&(s+=1),s+i+n}};aa.parse=(t,e,r)=>new aa(nU(iU(t),e),r);var nU=(t,e)=>e?Object.keys(t).reduce((r,n)=>(r[n]=t[n],r),e):t,iU=t=>t.replace(/\n$/,"").split(`
|
|
51
|
-
`).reduce(sU,Object.create(null)),sU=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let n=e.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let s=n.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};SR.exports=aa});var Os=y((oJ,AR)=>{l();AR.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var ju=y((aJ,CR)=>{"use strict";l();CR.exports=t=>class extends t{warn(e,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||e,n.tarCode=e,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),n))}}});var Hm=y((uJ,RR)=>{"use strict";l();var Hu=["|","<",">","?",":"],jm=Hu.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),oU=new Map(Hu.map((t,e)=>[t,jm[e]])),aU=new Map(jm.map((t,e)=>[t,Hu[e]]));RR.exports={encode:t=>Hu.reduce((e,r)=>e.split(r).join(oU.get(r)),t),decode:t=>jm.reduce((e,r)=>e.split(r).join(aU.get(r)),t)}});var $m=y((lJ,TR)=>{l();var{isAbsolute:cU,parse:OR}=require("path").win32;TR.exports=t=>{let e="",r=OR(t);for(;cU(t)||r.root;){let n=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(n.length),e+=n,r=OR(t)}return[e,t]}});var PR=y((fJ,kR)=>{"use strict";l();kR.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Xm=y((pJ,VR)=>{"use strict";l();var qR=Ou(),BR=Bu(),jR=Rs(),Cr=require("fs"),IR=require("path"),Ar=As(),uU=Os(),HR=(t,e)=>e?(t=Ar(t).replace(/^\.(\/|$)/,""),uU(e)+"/"+t):Ar(t),lU=16*1024*1024,LR=Symbol("process"),NR=Symbol("file"),DR=Symbol("directory"),Gm=Symbol("symlink"),MR=Symbol("hardlink"),ca=Symbol("header"),$u=Symbol("read"),Vm=Symbol("lstat"),Uu=Symbol("onlstat"),Wm=Symbol("onread"),zm=Symbol("onreadlink"),Ym=Symbol("openfile"),Km=Symbol("onopenfile"),Pn=Symbol("close"),Gu=Symbol("mode"),Zm=Symbol("awaitDrain"),Um=Symbol("ondrain"),Rr=Symbol("prefix"),FR=Symbol("hadError"),$R=ju(),fU=Hm(),UR=$m(),GR=PR(),Vu=$R(class extends qR{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Ar(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||lU,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Ar(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Ar(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=UR(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=fU.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Ar(r.absolute||IR.resolve(this.cwd,e)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[Uu](this.statCache.get(this.absolute)):this[Vm]()}emit(e,...r){return e==="error"&&(this[FR]=!0),super.emit(e,...r)}[Vm](){Cr.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Uu](r)})}[Uu](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=dU(e),this.emit("stat",e),this[LR]()}[LR](){switch(this.type){case"File":return this[NR]();case"Directory":return this[DR]();case"SymbolicLink":return this[Gm]();default:return this.end()}}[Gu](e){return GR(e,this.type==="Directory",this.portable)}[Rr](e){return HR(e,this.prefix)}[ca](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new jR({path:this[Rr](this.path),linkpath:this.type==="Link"?this[Rr](this.linkpath):this.linkpath,mode:this[Gu](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new BR({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Rr](this.path),linkpath:this.type==="Link"?this[Rr](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[DR](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ca](),this.end()}[Gm](){Cr.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[zm](r)})}[zm](e){this.linkpath=Ar(e),this[ca](),this.end()}[MR](e){this.type="Link",this.linkpath=Ar(IR.relative(this.cwd,e)),this.stat.size=0,this[ca](),this.end()}[NR](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[MR](r)}this.linkCache.set(e,this.absolute)}if(this[ca](),this.stat.size===0)return this.end();this[Ym]()}[Ym](){Cr.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Km](r)})}[Km](e){if(this.fd=e,this[FR])return this[Pn]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[$u]()}[$u](){let{fd:e,buf:r,offset:n,length:i,pos:s}=this;Cr.read(e,r,n,i,s,(o,a)=>{if(o)return this[Pn](()=>this.emit("error",o));this[Wm](a)})}[Pn](e){Cr.close(this.fd,e)}[Wm](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Pn](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Pn](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Um]():this[Zm](()=>this[Um]())}[Zm](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[Um](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Pn](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[$u]()}}),Jm=class extends Vu{[Vm](){this[Uu](Cr.lstatSync(this.absolute))}[Gm](){this[zm](Cr.readlinkSync(this.absolute))}[Ym](){this[Km](Cr.openSync(this.absolute,"r"))}[$u](){let e=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Cr.readSync(r,n,i,s,o);this[Wm](a),e=!1}finally{if(e)try{this[Pn](()=>{})}catch{}}}[Zm](e){e()}[Pn](e){Cr.closeSync(this.fd),e()}},hU=$R(class extends qR{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Ar(e.path),this.mode=this[Gu](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Ar(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=UR(this.path);i&&(this.path=s,n=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new jR({path:this[Rr](this.path),linkpath:this.type==="Link"?this[Rr](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new BR({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Rr](this.path),linkpath:this.type==="Link"?this[Rr](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Rr](e){return HR(e,this.prefix)}[Gu](e){return GR(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Vu.Sync=Jm;Vu.Tar=hU;var dU=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";VR.exports=Vu});var zR=y((mJ,WR)=>{"use strict";l();WR.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Qm=y((gJ,YR)=>{"use strict";l();YR.exports=he;he.Node=hi;he.create=he;function he(t){var e=this;if(e instanceof he||(e=new he),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}he.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};he.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};he.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};he.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)mU(this,arguments[t]);return this.length};he.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)gU(this,arguments[t]);return this.length};he.prototype.pop=function(){if(!!this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};he.prototype.shift=function(){if(!!this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};he.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};he.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};he.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};he.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};he.prototype.map=function(t,e){e=e||this;for(var r=new he,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};he.prototype.mapReverse=function(t,e){e=e||this;for(var r=new he,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};he.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=t(r,n.value,i),n=n.next;return r};he.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=t(r,n.value,i),n=n.prev;return r};he.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};he.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};he.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new he;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)r.push(i.value);return r};he.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new he;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};he.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(var s=[],n=0;i&&n<e;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=pU(this,i,r[n]);return s};he.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function pU(t,e,r){var n=e===t.head?new hi(r,null,e,t):new hi(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function mU(t,e){t.tail=new hi(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function gU(t,e){t.head=new hi(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function hi(t,e,r,n){if(!(this instanceof hi))return new hi(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{zR()(he)}catch{}});var el=y((_J,tO)=>{"use strict";l();var Xu=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},yU=Ou(),_U=Pm(),vU=Fu(),cg=Xm(),bU=cg.Sync,EU=cg.Tar,wU=Qm(),KR=Buffer.alloc(1024),Yu=Symbol("onStat"),Wu=Symbol("ended"),Or=Symbol("queue"),Ts=Symbol("current"),di=Symbol("process"),zu=Symbol("processing"),ZR=Symbol("processJob"),Tr=Symbol("jobs"),eg=Symbol("jobDone"),Ku=Symbol("addFSEntry"),JR=Symbol("addTarEntry"),ig=Symbol("stat"),sg=Symbol("readdir"),Zu=Symbol("onreaddir"),Ju=Symbol("pipe"),XR=Symbol("entry"),tg=Symbol("entryOpt"),og=Symbol("writeEntryClass"),eO=Symbol("write"),rg=Symbol("ondrain"),Qu=require("fs"),QR=require("path"),xU=ju(),ng=As(),ug=xU(class extends yU{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=ng(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[og]=cg,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new _U.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[rg]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[rg]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Or]=new wU,this[Tr]=0,this.jobs=+e.jobs||4,this[zu]=!1,this[Wu]=!1}[eO](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Wu]=!0,this[di](),this}write(e){if(this[Wu])throw new Error("write after end");return e instanceof vU?this[JR](e):this[Ku](e),this.flowing}[JR](e){let r=ng(QR.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let n=new Xu(e.path,r,!1);n.entry=new EU(e,this[tg](n)),n.entry.on("end",i=>this[eg](n)),this[Tr]+=1,this[Or].push(n)}this[di]()}[Ku](e){let r=ng(QR.resolve(this.cwd,e));this[Or].push(new Xu(e,r)),this[di]()}[ig](e){e.pending=!0,this[Tr]+=1;let r=this.follow?"stat":"lstat";Qu[r](e.absolute,(n,i)=>{e.pending=!1,this[Tr]-=1,n?this.emit("error",n):this[Yu](e,i)})}[Yu](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[di]()}[sg](e){e.pending=!0,this[Tr]+=1,Qu.readdir(e.absolute,(r,n)=>{if(e.pending=!1,this[Tr]-=1,r)return this.emit("error",r);this[Zu](e,n)})}[Zu](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[di]()}[di](){if(!this[zu]){this[zu]=!0;for(let e=this[Or].head;e!==null&&this[Tr]<this.jobs;e=e.next)if(this[ZR](e.value),e.value.ignore){let r=e.next;this[Or].removeNode(e),e.next=r}this[zu]=!1,this[Wu]&&!this[Or].length&&this[Tr]===0&&(this.zip?this.zip.end(KR):(super.write(KR),super.end()))}}get[Ts](){return this[Or]&&this[Or].head&&this[Or].head.value}[eg](e){this[Or].shift(),this[Tr]-=1,this[di]()}[ZR](e){if(!e.pending){if(e.entry){e===this[Ts]&&!e.piped&&this[Ju](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Yu](e,this.statCache.get(e.absolute)):this[ig](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Zu](e,this.readdirCache.get(e.absolute)):this[sg](e),!e.readdir))){if(e.entry=this[XR](e),!e.entry){e.ignore=!0;return}e===this[Ts]&&!e.piped&&this[Ju](e)}}}[tg](e){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[XR](e){this[Tr]+=1;try{return new this[og](e.path,this[tg](e)).on("end",()=>this[eg](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[rg](){this[Ts]&&this[Ts].entry&&this[Ts].entry.resume()}[Ju](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ku](o+i)});let r=e.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),ag=class extends ug{constructor(e){super(e),this[og]=bU}pause(){}resume(){}[ig](e){let r=this.follow?"statSync":"lstatSync";this[Yu](e,Qu[r](e.absolute))}[sg](e,r){this[Zu](e,Qu.readdirSync(e.absolute))}[Ju](e){let r=e.entry,n=this.zip;e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ku](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[eO](i)})}};ug.Sync=ag;tO.exports=ug});var Fs=y(la=>{"use strict";l();var SU=mm(),AU=require("events").EventEmitter,Rt=require("fs"),hg=Rt.writev;if(!hg){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;hg=(r,n,i,s)=>{let o=(c,u)=>s(c,u,n),a=new e;a.oncomplete=o,t.writeBuffers(r,n,i,a)}}var Ds=Symbol("_autoClose"),lr=Symbol("_close"),ua=Symbol("_ended"),be=Symbol("_fd"),rO=Symbol("_finished"),Ln=Symbol("_flags"),lg=Symbol("_flush"),dg=Symbol("_handleChunk"),pg=Symbol("_makeBuf"),sl=Symbol("_mode"),tl=Symbol("_needDrain"),Ls=Symbol("_onerror"),Ms=Symbol("_onopen"),fg=Symbol("_onread"),Ps=Symbol("_onwrite"),Nn=Symbol("_open"),en=Symbol("_path"),pi=Symbol("_pos"),kr=Symbol("_queue"),Is=Symbol("_read"),nO=Symbol("_readSize"),In=Symbol("_reading"),rl=Symbol("_remain"),iO=Symbol("_size"),nl=Symbol("_write"),ks=Symbol("_writing"),il=Symbol("_defaultFlag"),Ns=Symbol("_errored"),ol=class extends SU{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[Ns]=!1,this[be]=typeof r.fd=="number"?r.fd:null,this[en]=e,this[nO]=r.readSize||16*1024*1024,this[In]=!1,this[iO]=typeof r.size=="number"?r.size:1/0,this[rl]=this[iO],this[Ds]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[be]=="number"?this[Is]():this[Nn]()}get fd(){return this[be]}get path(){return this[en]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Nn](){Rt.open(this[en],"r",(e,r)=>this[Ms](e,r))}[Ms](e,r){e?this[Ls](e):(this[be]=r,this.emit("open",r),this[Is]())}[pg](){return Buffer.allocUnsafe(Math.min(this[nO],this[rl]))}[Is](){if(!this[In]){this[In]=!0;let e=this[pg]();if(e.length===0)return process.nextTick(()=>this[fg](null,0,e));Rt.read(this[be],e,0,e.length,null,(r,n,i)=>this[fg](r,n,i))}}[fg](e,r,n){this[In]=!1,e?this[Ls](e):this[dg](r,n)&&this[Is]()}[lr](){if(this[Ds]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Rt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ls](e){this[In]=!0,this[lr](),this.emit("error",e)}[dg](e,r){let n=!1;return this[rl]-=e,e>0&&(n=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[rl]<=0)&&(n=!1,this[lr](),super.end()),n}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[be]=="number"&&this[Is]();break;case"error":return this[Ns]?void 0:(this[Ns]=!0,super.emit(e,r));default:return super.emit(e,r)}}},mg=class extends ol{[Nn](){let e=!0;try{this[Ms](null,Rt.openSync(this[en],"r")),e=!1}finally{e&&this[lr]()}}[Is](){let e=!0;try{if(!this[In]){this[In]=!0;do{let r=this[pg](),n=r.length===0?0:Rt.readSync(this[be],r,0,r.length,null);if(!this[dg](n,r))break}while(!0);this[In]=!1}e=!1}finally{e&&this[lr]()}}[lr](){if(this[Ds]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Rt.closeSync(e),this.emit("close")}}},al=class extends AU{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ns]=!1,this[ks]=!1,this[ua]=!1,this[tl]=!1,this[kr]=[],this[en]=e,this[be]=typeof r.fd=="number"?r.fd:null,this[sl]=r.mode===void 0?438:r.mode,this[pi]=typeof r.start=="number"?r.start:null,this[Ds]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[pi]!==null?"r+":"w";this[il]=r.flags===void 0,this[Ln]=this[il]?n:r.flags,this[be]===null&&this[Nn]()}emit(e,r){if(e==="error"){if(this[Ns])return;this[Ns]=!0}return super.emit(e,r)}get fd(){return this[be]}get path(){return this[en]}[Ls](e){this[lr](),this[ks]=!0,this.emit("error",e)}[Nn](){Rt.open(this[en],this[Ln],this[sl],(e,r)=>this[Ms](e,r))}[Ms](e,r){this[il]&&this[Ln]==="r+"&&e&&e.code==="ENOENT"?(this[Ln]="w",this[Nn]()):e?this[Ls](e):(this[be]=r,this.emit("open",r),this[lg]())}end(e,r){return e&&this.write(e,r),this[ua]=!0,!this[ks]&&!this[kr].length&&typeof this[be]=="number"&&this[Ps](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[ua]?(this.emit("error",new Error("write() after end()")),!1):this[be]===null||this[ks]||this[kr].length?(this[kr].push(e),this[tl]=!0,!1):(this[ks]=!0,this[nl](e),!0)}[nl](e){Rt.write(this[be],e,0,e.length,this[pi],(r,n)=>this[Ps](r,n))}[Ps](e,r){e?this[Ls](e):(this[pi]!==null&&(this[pi]+=r),this[kr].length?this[lg]():(this[ks]=!1,this[ua]&&!this[rO]?(this[rO]=!0,this[lr](),this.emit("finish")):this[tl]&&(this[tl]=!1,this.emit("drain"))))}[lg](){if(this[kr].length===0)this[ua]&&this[Ps](null,0);else if(this[kr].length===1)this[nl](this[kr].pop());else{let e=this[kr];this[kr]=[],hg(this[be],e,this[pi],(r,n)=>this[Ps](r,n))}}[lr](){if(this[Ds]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Rt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},gg=class extends al{[Nn](){let e;if(this[il]&&this[Ln]==="r+")try{e=Rt.openSync(this[en],this[Ln],this[sl])}catch(r){if(r.code==="ENOENT")return this[Ln]="w",this[Nn]();throw r}else e=Rt.openSync(this[en],this[Ln],this[sl]);this[Ms](null,e)}[lr](){if(this[Ds]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Rt.closeSync(e),this.emit("close")}}[nl](e){let r=!0;try{this[Ps](null,Rt.writeSync(this[be],e,0,e.length,this[pi])),r=!1}finally{if(r)try{this[lr]()}catch{}}}};la.ReadStream=ol;la.ReadStreamSync=mg;la.WriteStream=al;la.WriteStreamSync=gg});var pl=y((EJ,hO)=>{"use strict";l();var CU=ju(),RU=Rs(),OU=require("events"),TU=Qm(),kU=1024*1024,PU=Fu(),sO=Bu(),IU=Pm(),{nextTick:LU}=require("process"),yg=Buffer.from([31,139]),Kt=Symbol("state"),mi=Symbol("writeEntry"),tn=Symbol("readEntry"),_g=Symbol("nextEntry"),oO=Symbol("processEntry"),Zt=Symbol("extendedHeader"),fa=Symbol("globalExtendedHeader"),Dn=Symbol("meta"),aO=Symbol("emitMeta"),Ce=Symbol("buffer"),rn=Symbol("queue"),gi=Symbol("ended"),cO=Symbol("emittedEnd"),yi=Symbol("emit"),Ot=Symbol("unzip"),cl=Symbol("consumeChunk"),ul=Symbol("consumeChunkSub"),vg=Symbol("consumeBody"),uO=Symbol("consumeMeta"),lO=Symbol("consumeHeader"),ll=Symbol("consuming"),bg=Symbol("bufferConcat"),Eg=Symbol("maybeEnd"),ha=Symbol("writing"),Mn=Symbol("aborted"),fl=Symbol("onDone"),_i=Symbol("sawValidEntry"),hl=Symbol("sawNullBlock"),dl=Symbol("sawEOF"),fO=Symbol("closeStream"),NU=t=>!0;hO.exports=CU(class extends OU{constructor(e){e=e||{},super(e),this.file=e.file||"",this[_i]=null,this.on(fl,r=>{(this[Kt]==="begin"||this[_i]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(fl,e.ondone):this.on(fl,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||kU,this.filter=typeof e.filter=="function"?e.filter:NU,this.writable=!0,this.readable=!1,this[rn]=new TU,this[Ce]=null,this[tn]=null,this[mi]=null,this[Kt]="begin",this[Dn]="",this[Zt]=null,this[fa]=null,this[gi]=!1,this[Ot]=null,this[Mn]=!1,this[hl]=!1,this[dl]=!1,this.on("end",()=>this[fO]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[lO](e,r){this[_i]===null&&(this[_i]=!1);let n;try{n=new RU(e,r,this[Zt],this[fa])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[hl]?(this[dl]=!0,this[Kt]==="begin"&&(this[Kt]="header"),this[yi]("eof")):(this[hl]=!0,this[yi]("nullBlock"));else if(this[hl]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[mi]=new PU(n,this[Zt],this[fa]);if(!this[_i])if(s.remain){let o=()=>{s.invalid||(this[_i]=!0)};s.on("end",o)}else this[_i]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[yi]("ignoredEntry",s),this[Kt]="ignore",s.resume()):s.size>0&&(this[Dn]="",s.on("data",o=>this[Dn]+=o),this[Kt]="meta"):(this[Zt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[yi]("ignoredEntry",s),this[Kt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Kt]="body":(this[Kt]="header",s.end()),this[tn]?this[rn].push(s):(this[rn].push(s),this[_g]())))}}}[fO](){LU(()=>this.emit("close"))}[oO](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[tn]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",n=>this[_g]()),r=!1)):(this[tn]=null,r=!1),r}[_g](){do;while(this[oO](this[rn].shift()));if(!this[rn].length){let e=this[tn];!e||e.flowing||e.size===e.remain?this[ha]||this.emit("drain"):e.once("drain",n=>this.emit("drain"))}}[vg](e,r){let n=this[mi],i=n.blockRemain,s=i>=e.length&&r===0?e:e.slice(r,r+i);return n.write(s),n.blockRemain||(this[Kt]="header",this[mi]=null,n.end()),s.length}[uO](e,r){let n=this[mi],i=this[vg](e,r);return this[mi]||this[aO](n),i}[yi](e,r,n){!this[rn].length&&!this[tn]?this.emit(e,r,n):this[rn].push([e,r,n])}[aO](e){switch(this[yi]("meta",this[Dn]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Zt]=sO.parse(this[Dn],this[Zt],!1);break;case"GlobalExtendedHeader":this[fa]=sO.parse(this[Dn],this[fa],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Zt]=this[Zt]||Object.create(null),this[Zt].path=this[Dn].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Zt]=this[Zt]||Object.create(null),this[Zt].linkpath=this[Dn].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Mn]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Mn])return;if(this[Ot]===null&&e){if(this[Ce]&&(e=Buffer.concat([this[Ce],e]),this[Ce]=null),e.length<yg.length)return this[Ce]=e,!0;for(let n=0;this[Ot]===null&&n<yg.length;n++)e[n]!==yg[n]&&(this[Ot]=!1);if(this[Ot]===null){let n=this[gi];this[gi]=!1,this[Ot]=new IU.Unzip,this[Ot].on("data",s=>this[cl](s)),this[Ot].on("error",s=>this.abort(s)),this[Ot].on("end",s=>{this[gi]=!0,this[cl]()}),this[ha]=!0;let i=this[Ot][n?"end":"write"](e);return this[ha]=!1,i}}this[ha]=!0,this[Ot]?this[Ot].write(e):this[cl](e),this[ha]=!1;let r=this[rn].length?!1:this[tn]?this[tn].flowing:!0;return!r&&!this[rn].length&&this[tn].once("drain",n=>this.emit("drain")),r}[bg](e){e&&!this[Mn]&&(this[Ce]=this[Ce]?Buffer.concat([this[Ce],e]):e)}[Eg](){if(this[gi]&&!this[cO]&&!this[Mn]&&!this[ll]){this[cO]=!0;let e=this[mi];if(e&&e.blockRemain){let r=this[Ce]?this[Ce].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Ce]&&e.write(this[Ce]),e.end()}this[yi](fl)}}[cl](e){if(this[ll])this[bg](e);else if(!e&&!this[Ce])this[Eg]();else{if(this[ll]=!0,this[Ce]){this[bg](e);let r=this[Ce];this[Ce]=null,this[ul](r)}else this[ul](e);for(;this[Ce]&&this[Ce].length>=512&&!this[Mn]&&!this[dl];){let r=this[Ce];this[Ce]=null,this[ul](r)}this[ll]=!1}(!this[Ce]||this[gi])&&this[Eg]()}[ul](e){let r=0,n=e.length;for(;r+512<=n&&!this[Mn]&&!this[dl];)switch(this[Kt]){case"begin":case"header":this[lO](e,r),r+=512;break;case"ignore":case"body":r+=this[vg](e,r);break;case"meta":r+=this[uO](e,r);break;default:throw new Error("invalid state: "+this[Kt])}r<n&&(this[Ce]?this[Ce]=Buffer.concat([e.slice(r),this[Ce]]):this[Ce]=e.slice(r))}end(e){this[Mn]||(this[Ot]?this[Ot].end(e):(this[gi]=!0,this.write(e)))}})});var ml=y((wJ,gO)=>{"use strict";l();var DU=bs(),pO=pl(),qs=require("fs"),MU=Fs(),dO=require("path"),wg=Os();gO.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=DU(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&qU(n,e),n.noResume||FU(n),n.file&&n.sync?BU(n):n.file?jU(n,r):mO(n)};var FU=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},qU=(t,e)=>{let r=new Map(e.map(s=>[wg(s),!0])),n=t.filter,i=(s,o)=>{let a=o||dO.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):i(dO.dirname(s),a);return r.set(s,c),c};t.filter=n?(s,o)=>n(s,o)&&i(wg(s)):s=>i(wg(s))},BU=t=>{let e=mO(t),r=t.file,n=!0,i;try{let s=qs.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(qs.readFileSync(r));else{let a=0,c=Buffer.allocUnsafe(o);for(i=qs.openSync(r,"r");a<s.size;){let u=qs.readSync(i,c,0,o,a);a+=u,e.write(c.slice(0,u))}e.end()}n=!1}finally{if(n&&i)try{qs.closeSync(i)}catch{}}},jU=(t,e)=>{let r=new pO(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),qs.stat(i,(c,u)=>{if(c)a(c);else{let f=new MU.ReadStream(i,{readSize:n,size:u.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},mO=t=>new pO(t)});var wO=y((xJ,EO)=>{"use strict";l();var HU=bs(),gl=el(),yO=Fs(),_O=ml(),vO=require("path");EO.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let n=HU(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?$U(n,e):n.file?UU(n,e,r):n.sync?GU(n,e):VU(n,e)};var $U=(t,e)=>{let r=new gl.Sync(t),n=new yO.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(n),bO(r,e)},UU=(t,e,r)=>{let n=new gl(t),i=new yO.WriteStream(t.file,{mode:t.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return xg(n,e),r?s.then(r,r):s},bO=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?_O({file:vO.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},xg=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return _O({file:vO.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>xg(t,e));t.add(r)}t.end()},GU=(t,e)=>{let r=new gl.Sync(t);return bO(r,e),r},VU=(t,e)=>{let r=new gl(t);return xg(r,e),r}});var Sg=y((SJ,TO)=>{"use strict";l();var WU=bs(),xO=el(),Mt=require("fs"),SO=Fs(),AO=ml(),CO=require("path"),RO=Rs();TO.exports=(t,e,r)=>{let n=WU(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),n.sync?zU(n,e):KU(n,e,r)};var zU=(t,e)=>{let r=new xO.Sync(t),n=!0,i,s;try{try{i=Mt.openSync(t.file,"r+")}catch(c){if(c.code==="ENOENT")i=Mt.openSync(t.file,"w+");else throw c}let o=Mt.fstatSync(i),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let f=0,h=0;f<512;f+=h){if(h=Mt.readSync(i,a,f,a.length-f,s+f),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let c=new RO(a);if(!c.cksumValid)break;let u=512*Math.ceil(c.size/512);if(s+u+512>o.size)break;s+=u,t.mtimeCache&&t.mtimeCache.set(c.path,c.mtime)}n=!1,YU(t,r,s,i,e)}finally{if(n)try{Mt.closeSync(i)}catch{}}},YU=(t,e,r,n,i)=>{let s=new SO.WriteStreamSync(t.file,{fd:n,start:r});e.pipe(s),ZU(e,i)},KU=(t,e,r)=>{e=Array.from(e);let n=new xO(t),i=(o,a,c)=>{let u=(m,E)=>{m?Mt.close(o,v=>c(m)):c(null,E)},f=0;if(a===0)return u(null,0);let h=0,d=Buffer.alloc(512),g=(m,E)=>{if(m)return u(m);if(h+=E,h<512&&E)return Mt.read(o,d,h,d.length-h,f+h,g);if(f===0&&d[0]===31&&d[1]===139)return u(new Error("cannot append to compressed archives"));if(h<512)return u(null,f);let v=new RO(d);if(!v.cksumValid)return u(null,f);let A=512*Math.ceil(v.size/512);if(f+A+512>a||(f+=A+512,f>=a))return u(null,f);t.mtimeCache&&t.mtimeCache.set(v.path,v.mtime),h=0,Mt.read(o,d,0,512,f,g)};Mt.read(o,d,0,512,f,g)},s=new Promise((o,a)=>{n.on("error",a);let c="r+",u=(f,h)=>{if(f&&f.code==="ENOENT"&&c==="r+")return c="w+",Mt.open(t.file,c,u);if(f)return a(f);Mt.fstat(h,(d,g)=>{if(d)return Mt.close(h,()=>a(d));i(h,g.size,(m,E)=>{if(m)return a(m);let v=new SO.WriteStream(t.file,{fd:h,start:E});n.pipe(v),v.on("error",a),v.on("close",o),OO(n,e)})})};Mt.open(t.file,c,u)});return r?s.then(r,r):s},ZU=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?AO({file:CO.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},OO=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return AO({file:CO.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>OO(t,e));t.add(r)}t.end()}});var PO=y((AJ,kO)=>{"use strict";l();var JU=bs(),XU=Sg();kO.exports=(t,e,r)=>{let n=JU(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),QU(n),XU(n,e,r)};var QU=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,n)=>e(r,n)&&!(t.mtimeCache.get(r)>n.mtime):(r,n)=>!(t.mtimeCache.get(r)>n.mtime)}});var NO=y((CJ,LO)=>{l();var{promisify:IO}=require("util"),Fn=require("fs"),e4=t=>{if(!t)t={mode:511,fs:Fn};else if(typeof t=="object")t={mode:511,fs:Fn,...t};else if(typeof t=="number")t={mode:t,fs:Fn};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Fn};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Fn.mkdir,t.mkdirAsync=IO(t.mkdir),t.stat=t.stat||t.fs.stat||Fn.stat,t.statAsync=IO(t.stat),t.statSync=t.statSync||t.fs.statSync||Fn.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Fn.mkdirSync,t};LO.exports=e4});var MO=y((RJ,DO)=>{l();var t4=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:r4,parse:n4}=require("path"),i4=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=r4(t),t4==="win32"){let e=/[*|"<>?:]/,{root:r}=n4(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};DO.exports=i4});var HO=y((OJ,jO)=>{l();var{dirname:FO}=require("path"),qO=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?qO(t,FO(e),e):void 0),BO=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?BO(t,FO(e),e):void 0}};jO.exports={findMade:qO,findMadeSync:BO}});var Rg=y((TJ,UO)=>{l();var{dirname:$O}=require("path"),Ag=(t,e,r)=>{e.recursive=!1;let n=$O(t);return n===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return Ag(n,e).then(s=>Ag(t,e,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},Cg=(t,e,r)=>{let n=$O(t);if(e.recursive=!1,n===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return Cg(t,e,Cg(n,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};UO.exports={mkdirpManual:Ag,mkdirpManualSync:Cg}});var WO=y((kJ,VO)=>{l();var{dirname:GO}=require("path"),{findMade:s4,findMadeSync:o4}=HO(),{mkdirpManual:a4,mkdirpManualSync:c4}=Rg(),u4=(t,e)=>(e.recursive=!0,GO(t)===t?e.mkdirAsync(t,e):s4(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(i=>{if(i.code==="ENOENT")return a4(t,e);throw i}))),l4=(t,e)=>{if(e.recursive=!0,GO(t)===t)return e.mkdirSync(t,e);let n=o4(e,t);try{return e.mkdirSync(t,e),n}catch(i){if(i.code==="ENOENT")return c4(t,e);throw i}};VO.exports={mkdirpNative:u4,mkdirpNativeSync:l4}});var ZO=y((PJ,KO)=>{l();var zO=require("fs"),f4=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Og=f4.replace(/^v/,"").split("."),YO=+Og[0]>10||+Og[0]==10&&+Og[1]>=12,h4=YO?t=>t.mkdir===zO.mkdir:()=>!1,d4=YO?t=>t.mkdirSync===zO.mkdirSync:()=>!1;KO.exports={useNative:h4,useNativeSync:d4}});var rT=y((IJ,tT)=>{l();var Bs=NO(),js=MO(),{mkdirpNative:JO,mkdirpNativeSync:XO}=WO(),{mkdirpManual:QO,mkdirpManualSync:eT}=Rg(),{useNative:p4,useNativeSync:m4}=ZO(),Hs=(t,e)=>(t=js(t),e=Bs(e),p4(e)?JO(t,e):QO(t,e)),g4=(t,e)=>(t=js(t),e=Bs(e),m4(e)?XO(t,e):eT(t,e));Hs.sync=g4;Hs.native=(t,e)=>JO(js(t),Bs(e));Hs.manual=(t,e)=>QO(js(t),Bs(e));Hs.nativeSync=(t,e)=>XO(js(t),Bs(e));Hs.manualSync=(t,e)=>eT(js(t),Bs(e));tT.exports=Hs});var uT=y((LJ,cT)=>{"use strict";l();var Jt=require("fs"),vi=require("path"),y4=Jt.lchown?"lchown":"chown",_4=Jt.lchownSync?"lchownSync":"chownSync",iT=Jt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),nT=(t,e,r)=>{try{return Jt[_4](t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},v4=(t,e,r)=>{try{return Jt.chownSync(t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},b4=iT?(t,e,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):Jt.chown(t,e,r,n)}:(t,e,r,n)=>n,Tg=iT?(t,e,r)=>{try{return nT(t,e,r)}catch(n){if(n.code!=="EISDIR")throw n;v4(t,e,r)}}:(t,e,r)=>nT(t,e,r),E4=process.version,sT=(t,e,r)=>Jt.readdir(t,e,r),w4=(t,e)=>Jt.readdirSync(t,e);/^v4\./.test(E4)&&(sT=(t,e,r)=>Jt.readdir(t,r));var yl=(t,e,r,n)=>{Jt[y4](t,e,r,b4(t,e,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},oT=(t,e,r,n,i)=>{if(typeof e=="string")return Jt.lstat(vi.resolve(t,e),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=e,oT(t,o,r,n,i)});if(e.isDirectory())kg(vi.resolve(t,e.name),r,n,s=>{if(s)return i(s);let o=vi.resolve(t,e.name);yl(o,r,n,i)});else{let s=vi.resolve(t,e.name);yl(s,r,n,i)}},kg=(t,e,r,n)=>{sT(t,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return yl(t,e,r,n);let o=s.length,a=null,c=u=>{if(!a){if(u)return n(a=u);if(--o===0)return yl(t,e,r,n)}};s.forEach(u=>oT(t,u,e,r,c))})},x4=(t,e,r,n)=>{if(typeof e=="string")try{let i=Jt.lstatSync(vi.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&aT(vi.resolve(t,e.name),r,n),Tg(vi.resolve(t,e.name),r,n)},aT=(t,e,r)=>{let n;try{n=w4(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return Tg(t,e,r);throw i}return n&&n.length&&n.forEach(i=>x4(t,i,e,r)),Tg(t,e,r)};cT.exports=kg;kg.sync=aT});var dT=y((NJ,Pg)=>{"use strict";l();var lT=rT(),Xt=require("fs"),_l=require("path"),fT=uT(),fr=As(),vl=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},bl=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},El=(t,e)=>t.get(fr(e)),da=(t,e,r)=>t.set(fr(e),r),S4=(t,e)=>{Xt.stat(t,(r,n)=>{(r||!n.isDirectory())&&(r=new bl(t,r&&r.code||"ENOTDIR")),e(r)})};Pg.exports=(t,e,r)=>{t=fr(t);let n=e.umask,i=e.mode|448,s=(i&n)!==0,o=e.uid,a=e.gid,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),u=e.preserve,f=e.unlink,h=e.cache,d=fr(e.cwd),g=(v,A)=>{v?r(v):(da(h,t,!0),A&&c?fT(A,o,a,P=>g(P)):s?Xt.chmod(t,i,r):r())};if(h&&El(h,t)===!0)return g();if(t===d)return S4(t,g);if(u)return lT(t,{mode:i}).then(v=>g(null,v),g);let E=fr(_l.relative(d,t)).split("/");wl(d,E,i,h,f,d,null,g)};var wl=(t,e,r,n,i,s,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),u=fr(_l.resolve(t+"/"+c));if(El(n,u))return wl(u,e,r,n,i,s,o,a);Xt.mkdir(u,r,hT(u,e,r,n,i,s,o,a))},hT=(t,e,r,n,i,s,o,a)=>c=>{c?Xt.lstat(t,(u,f)=>{if(u)u.path=u.path&&fr(u.path),a(u);else if(f.isDirectory())wl(t,e,r,n,i,s,o,a);else if(i)Xt.unlink(t,h=>{if(h)return a(h);Xt.mkdir(t,r,hT(t,e,r,n,i,s,o,a))});else{if(f.isSymbolicLink())return a(new vl(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,wl(t,e,r,n,i,s,o,a))},A4=t=>{let e=!1,r="ENOTDIR";try{e=Xt.statSync(t).isDirectory()}catch(n){r=n.code}finally{if(!e)throw new bl(t,r)}};Pg.exports.sync=(t,e)=>{t=fr(t);let r=e.umask,n=e.mode|448,i=(n&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),c=e.preserve,u=e.unlink,f=e.cache,h=fr(e.cwd),d=v=>{da(f,t,!0),v&&a&&fT.sync(v,s,o),i&&Xt.chmodSync(t,n)};if(f&&El(f,t)===!0)return d();if(t===h)return A4(h),d();if(c)return d(lT.sync(t,n));let m=fr(_l.relative(h,t)).split("/"),E=null;for(let v=m.shift(),A=h;v&&(A+="/"+v);v=m.shift())if(A=fr(_l.resolve(A)),!El(f,A))try{Xt.mkdirSync(A,n),E=E||A,da(f,A,!0)}catch{let D=Xt.lstatSync(A);if(D.isDirectory()){da(f,A,!0);continue}else if(u){Xt.unlinkSync(A),Xt.mkdirSync(A,n),E=E||A,da(f,A,!0);continue}else if(D.isSymbolicLink())return new vl(A,A+"/"+m.join("/"))}return d(E)}});var Lg=y((DJ,pT)=>{l();var Ig=Object.create(null),{hasOwnProperty:C4}=Object.prototype;pT.exports=t=>(C4.call(Ig,t)||(Ig[t]=t.normalize("NFKD")),Ig[t])});var _T=y((MJ,yT)=>{l();var mT=require("assert"),R4=Lg(),O4=Os(),{join:gT}=require("path"),T4=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,k4=T4==="win32";yT.exports=()=>{let t=new Map,e=new Map,r=u=>u.split("/").slice(0,-1).reduce((h,d)=>(h.length&&(d=gT(h[h.length-1],d)),h.push(d||"/"),h),[]),n=new Set,i=u=>{let f=e.get(u);if(!f)throw new Error("function does not have any path reservations");return{paths:f.paths.map(h=>t.get(h)),dirs:[...f.dirs].map(h=>t.get(h))}},s=u=>{let{paths:f,dirs:h}=i(u);return f.every(d=>d[0]===u)&&h.every(d=>d[0]instanceof Set&&d[0].has(u))},o=u=>n.has(u)||!s(u)?!1:(n.add(u),u(()=>a(u)),!0),a=u=>{if(!n.has(u))return!1;let{paths:f,dirs:h}=e.get(u),d=new Set;return f.forEach(g=>{let m=t.get(g);mT.equal(m[0],u),m.length===1?t.delete(g):(m.shift(),typeof m[0]=="function"?d.add(m[0]):m[0].forEach(E=>d.add(E)))}),h.forEach(g=>{let m=t.get(g);mT(m[0]instanceof Set),m[0].size===1&&m.length===1?t.delete(g):m[0].size===1?(m.shift(),d.add(m[0])):m[0].delete(u)}),n.delete(u),d.forEach(g=>o(g)),!0};return{check:s,reserve:(u,f)=>{u=k4?["win32 parallelization disabled"]:u.map(d=>R4(O4(gT(d))).toLowerCase());let h=new Set(u.map(d=>r(d)).reduce((d,g)=>d.concat(g)));return e.set(f,{dirs:h,paths:u}),u.forEach(d=>{let g=t.get(d);g?g.push(f):t.set(d,[f])}),h.forEach(d=>{let g=t.get(d);g?g[g.length-1]instanceof Set?g[g.length-1].add(f):g.push(new Set([f])):t.set(d,[new Set([f])])}),o(f)}}}});var ET=y((FJ,bT)=>{l();var P4=process.env.__FAKE_PLATFORM__||process.platform,I4=P4==="win32",L4=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:N4,O_TRUNC:D4,O_WRONLY:M4,UV_FS_O_FILEMAP:vT=0}=L4.constants,F4=I4&&!!vT,q4=512*1024,B4=vT|D4|N4|M4;bT.exports=F4?t=>t<q4?B4:"w":()=>"w"});var $g=y((qJ,DT)=>{"use strict";l();var j4=require("assert"),H4=pl(),de=require("fs"),$4=Fs(),nn=require("path"),IT=dT(),wT=Hm(),U4=_T(),G4=$m(),Ft=As(),V4=Os(),W4=Lg(),xT=Symbol("onEntry"),Mg=Symbol("checkFs"),ST=Symbol("checkFs2"),Al=Symbol("pruneCache"),Fg=Symbol("isReusable"),Qt=Symbol("makeFs"),qg=Symbol("file"),Bg=Symbol("directory"),Cl=Symbol("link"),AT=Symbol("symlink"),CT=Symbol("hardlink"),RT=Symbol("unsupported"),OT=Symbol("checkPath"),qn=Symbol("mkdir"),ht=Symbol("onError"),xl=Symbol("pending"),TT=Symbol("pend"),$s=Symbol("unpend"),Ng=Symbol("ended"),Dg=Symbol("maybeClose"),jg=Symbol("skip"),pa=Symbol("doChown"),ma=Symbol("uid"),ga=Symbol("gid"),ya=Symbol("checkedCwd"),LT=require("crypto"),NT=ET(),z4=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,_a=z4==="win32",Y4=(t,e)=>{if(!_a)return de.unlink(t,e);let r=t+".DELETE."+LT.randomBytes(16).toString("hex");de.rename(t,r,n=>{if(n)return e(n);de.unlink(r,e)})},K4=t=>{if(!_a)return de.unlinkSync(t);let e=t+".DELETE."+LT.randomBytes(16).toString("hex");de.renameSync(t,e),de.unlinkSync(e)},kT=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,PT=t=>W4(V4(Ft(t))).toLowerCase(),Z4=(t,e)=>{e=PT(e);for(let r of t.keys()){let n=PT(r);(n===e||n.indexOf(e+"/")===0)&&t.delete(r)}},J4=t=>{for(let e of t.keys())t.delete(e)},va=class extends H4{constructor(e){if(e||(e={}),e.ondone=r=>{this[Ng]=!0,this[Dg]()},super(e),this[ya]=!1,this.reservations=U4(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[xl]=0,this[Ng]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||_a,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Ft(nn.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[xT](r))}warn(e,r,n={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),super.warn(e,r,n)}[Dg](){this[Ng]&&this[xl]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[OT](e){if(this.strip){let r=Ft(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let n=Ft(e.linkpath).split("/");if(n.length>=this.strip)e.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Ft(e.path),n=r.split("/");if(n.includes("..")||_a&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,s]=G4(r);i&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(nn.isAbsolute(e.path)?e.absolute=Ft(nn.resolve(e.path)):e.absolute=Ft(nn.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Ft(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=nn.win32.parse(e.absolute);e.absolute=r+wT.encode(e.absolute.slice(r.length));let{root:n}=nn.win32.parse(e.path);e.path=n+wT.encode(e.path.slice(n.length))}return!0}[xT](e){if(!this[OT](e))return e.resume();switch(j4.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Mg](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[RT](e)}}[ht](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[$s](),r.resume())}[qn](e,r,n){IT(Ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},n)}[pa](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[ma](e){return kT(this.uid,e.uid,this.processUid)}[ga](e){return kT(this.gid,e.gid,this.processGid)}[qg](e,r){let n=e.mode&4095||this.fmode,i=new $4.WriteStream(e.absolute,{flags:NT(e.size),mode:n,autoClose:!1});i.on("error",c=>{i.fd&&de.close(i.fd,()=>{}),i.write=()=>!0,this[ht](c,e),r()});let s=1,o=c=>{if(c){i.fd&&de.close(i.fd,()=>{}),this[ht](c,e),r();return}--s===0&&de.close(i.fd,u=>{u?this[ht](u,e):this[$s](),r()})};i.on("finish",c=>{let u=e.absolute,f=i.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,d=e.mtime;de.futimes(f,h,d,g=>g?de.utimes(u,h,d,m=>o(m&&g)):o())}if(this[pa](e)){s++;let h=this[ma](e),d=this[ga](e);de.fchown(f,h,d,g=>g?de.chown(u,h,d,m=>o(m&&g)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[ht](c,e),r()}),e.pipe(a)),a.pipe(i)}[Bg](e,r){let n=e.mode&4095||this.dmode;this[qn](e.absolute,n,i=>{if(i){this[ht](i,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[$s](),e.resume())};e.mtime&&!this.noMtime&&(s++,de.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[pa](e)&&(s++,de.chown(e.absolute,this[ma](e),this[ga](e),o)),o()})}[RT](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[AT](e,r){this[Cl](e,e.linkpath,"symlink",r)}[CT](e,r){let n=Ft(nn.resolve(this.cwd,e.linkpath));this[Cl](e,n,"link",r)}[TT](){this[xl]++}[$s](){this[xl]--,this[Dg]()}[jg](e){this[$s](),e.resume()}[Fg](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!_a}[Mg](e){this[TT]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,n=>this[ST](e,n))}[Al](e){e.type==="SymbolicLink"?J4(this.dirCache):e.type!=="Directory"&&Z4(this.dirCache,e.absolute)}[ST](e,r){this[Al](e);let n=a=>{this[Al](e),r(a)},i=()=>{this[qn](this.cwd,this.dmode,a=>{if(a){this[ht](a,e),n();return}this[ya]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Ft(nn.dirname(e.absolute));if(a!==this.cwd)return this[qn](a,this.dmode,c=>{if(c){this[ht](c,e),n();return}o()})}o()},o=()=>{de.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[jg](e),n();return}if(a||this[Fg](e,c))return this[Qt](null,e,n);if(c.isDirectory()){if(e.type==="Directory"){let u=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,f=h=>this[Qt](h,e,n);return u?de.chmod(e.absolute,e.mode,f):f()}if(e.absolute!==this.cwd)return de.rmdir(e.absolute,u=>this[Qt](u,e,n))}if(e.absolute===this.cwd)return this[Qt](null,e,n);Y4(e.absolute,u=>this[Qt](u,e,n))})};this[ya]?s():i()}[Qt](e,r,n){if(e){this[ht](e,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[qg](r,n);case"Link":return this[CT](r,n);case"SymbolicLink":return this[AT](r,n);case"Directory":case"GNUDumpDir":return this[Bg](r,n)}}[Cl](e,r,n,i){de[n](r,e.absolute,s=>{s?this[ht](s,e):(this[$s](),e.resume()),i()})}},Sl=t=>{try{return[null,t()]}catch(e){return[e,null]}},Hg=class extends va{[Qt](e,r){return super[Qt](e,r,()=>{})}[Mg](e){if(this[Al](e),!this[ya]){let s=this[qn](this.cwd,this.dmode);if(s)return this[ht](s,e);this[ya]=!0}if(e.absolute!==this.cwd){let s=Ft(nn.dirname(e.absolute));if(s!==this.cwd){let o=this[qn](s,this.dmode);if(o)return this[ht](o,e)}}let[r,n]=Sl(()=>de.lstatSync(e.absolute));if(n&&(this.keep||this.newer&&n.mtime>e.mtime))return this[jg](e);if(r||this[Fg](e,n))return this[Qt](null,e);if(n.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(n.mode&4095)!==e.mode,[a]=o?Sl(()=>{de.chmodSync(e.absolute,e.mode)}):[];return this[Qt](a,e)}let[s]=Sl(()=>de.rmdirSync(e.absolute));this[Qt](s,e)}let[i]=e.absolute===this.cwd?[]:Sl(()=>K4(e.absolute));this[Qt](i,e)}[qg](e,r){let n=e.mode&4095||this.fmode,i=a=>{let c;try{de.closeSync(s)}catch(u){c=u}(a||c)&&this[ht](a||c,e),r()},s;try{s=de.openSync(e.absolute,NT(e.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[ht](a,e)),e.pipe(o)),o.on("data",a=>{try{de.writeSync(s,a,0,a.length)}catch(c){i(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,f=e.mtime;try{de.futimesSync(s,u,f)}catch(h){try{de.utimesSync(e.absolute,u,f)}catch{c=h}}}if(this[pa](e)){let u=this[ma](e),f=this[ga](e);try{de.fchownSync(s,u,f)}catch(h){try{de.chownSync(e.absolute,u,f)}catch{c=c||h}}}i(c)})}[Bg](e,r){let n=e.mode&4095||this.dmode,i=this[qn](e.absolute,n);if(i){this[ht](i,e),r();return}if(e.mtime&&!this.noMtime)try{de.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[pa](e))try{de.chownSync(e.absolute,this[ma](e),this[ga](e))}catch{}r(),e.resume()}[qn](e,r){try{return IT.sync(Ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(n){return n}}[Cl](e,r,n,i){try{de[n+"Sync"](r,e.absolute),i(),e.resume()}catch(s){return this[ht](s,e)}}};va.Sync=Hg;DT.exports=va});var jT=y((BJ,BT)=>{"use strict";l();var X4=bs(),Rl=$g(),FT=require("fs"),qT=Fs(),MT=require("path"),Ug=Os();BT.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=X4(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&Q4(n,e),n.file&&n.sync?e8(n):n.file?t8(n,r):n.sync?r8(n):n8(n)};var Q4=(t,e)=>{let r=new Map(e.map(s=>[Ug(s),!0])),n=t.filter,i=(s,o)=>{let a=o||MT.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):i(MT.dirname(s),a);return r.set(s,c),c};t.filter=n?(s,o)=>n(s,o)&&i(Ug(s)):s=>i(Ug(s))},e8=t=>{let e=new Rl.Sync(t),r=t.file,n=FT.statSync(r),i=t.maxReadSize||16*1024*1024;new qT.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(e)},t8=(t,e)=>{let r=new Rl(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),FT.stat(i,(c,u)=>{if(c)a(c);else{let f=new qT.ReadStream(i,{readSize:n,size:u.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},r8=t=>new Rl.Sync(t),n8=t=>new Rl(t)});var HT=y(Ve=>{"use strict";l();Ve.c=Ve.create=wO();Ve.r=Ve.replace=Sg();Ve.t=Ve.list=ml();Ve.u=Ve.update=PO();Ve.x=Ve.extract=jT();Ve.Pack=el();Ve.Unpack=$g();Ve.Parse=pl();Ve.ReadEntry=Fu();Ve.WriteEntry=Xm();Ve.Header=Rs();Ve.Pax=Bu();Ve.types=Nm()});var on=y((sn,Ol)=>{"use strict";l();Object.defineProperty(sn,"__esModule",{value:!0});var $T=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function i8(t){return $T.includes(t)}var s8=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...$T];function o8(t){return s8.includes(t)}var a8=["null","undefined","string","number","bigint","boolean","symbol"];function c8(t){return a8.includes(t)}function Us(t){return e=>typeof e===t}var{toString:UT}=Object.prototype,ba=t=>{let e=UT.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&w.domElement(t))return"HTMLElement";if(o8(e))return e},we=t=>e=>ba(e)===t;function w(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(w.observable(t))return"Observable";if(w.array(t))return"Array";if(w.buffer(t))return"Buffer";let e=ba(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}w.undefined=Us("undefined");w.string=Us("string");var u8=Us("number");w.number=t=>u8(t)&&!w.nan(t);w.bigint=Us("bigint");w.function_=Us("function");w.null_=t=>t===null;w.class_=t=>w.function_(t)&&t.toString().startsWith("class ");w.boolean=t=>t===!0||t===!1;w.symbol=Us("symbol");w.numericString=t=>w.string(t)&&!w.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));w.array=(t,e)=>Array.isArray(t)?w.function_(e)?t.every(e):!0:!1;w.buffer=t=>{var e,r,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};w.blob=t=>we("Blob")(t);w.nullOrUndefined=t=>w.null_(t)||w.undefined(t);w.object=t=>!w.null_(t)&&(typeof t=="object"||w.function_(t));w.iterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};w.asyncIterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};w.generator=t=>{var e,r;return w.iterable(t)&&w.function_((e=t)===null||e===void 0?void 0:e.next)&&w.function_((r=t)===null||r===void 0?void 0:r.throw)};w.asyncGenerator=t=>w.asyncIterable(t)&&w.function_(t.next)&&w.function_(t.throw);w.nativePromise=t=>we("Promise")(t);var l8=t=>{var e,r;return w.function_((e=t)===null||e===void 0?void 0:e.then)&&w.function_((r=t)===null||r===void 0?void 0:r.catch)};w.promise=t=>w.nativePromise(t)||l8(t);w.generatorFunction=we("GeneratorFunction");w.asyncGeneratorFunction=t=>ba(t)==="AsyncGeneratorFunction";w.asyncFunction=t=>ba(t)==="AsyncFunction";w.boundFunction=t=>w.function_(t)&&!t.hasOwnProperty("prototype");w.regExp=we("RegExp");w.date=we("Date");w.error=we("Error");w.map=t=>we("Map")(t);w.set=t=>we("Set")(t);w.weakMap=t=>we("WeakMap")(t);w.weakSet=t=>we("WeakSet")(t);w.int8Array=we("Int8Array");w.uint8Array=we("Uint8Array");w.uint8ClampedArray=we("Uint8ClampedArray");w.int16Array=we("Int16Array");w.uint16Array=we("Uint16Array");w.int32Array=we("Int32Array");w.uint32Array=we("Uint32Array");w.float32Array=we("Float32Array");w.float64Array=we("Float64Array");w.bigInt64Array=we("BigInt64Array");w.bigUint64Array=we("BigUint64Array");w.arrayBuffer=we("ArrayBuffer");w.sharedArrayBuffer=we("SharedArrayBuffer");w.dataView=we("DataView");w.enumCase=(t,e)=>Object.values(e).includes(t);w.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;w.urlInstance=t=>we("URL")(t);w.urlString=t=>{if(!w.string(t))return!1;try{return new URL(t),!0}catch{return!1}};w.truthy=t=>Boolean(t);w.falsy=t=>!t;w.nan=t=>Number.isNaN(t);w.primitive=t=>w.null_(t)||c8(typeof t);w.integer=t=>Number.isInteger(t);w.safeInteger=t=>Number.isSafeInteger(t);w.plainObject=t=>{if(UT.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};w.typedArray=t=>i8(ba(t));var f8=t=>w.safeInteger(t)&&t>=0;w.arrayLike=t=>!w.nullOrUndefined(t)&&!w.function_(t)&&f8(t.length);w.inRange=(t,e)=>{if(w.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(w.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var h8=1,d8=["innerHTML","ownerDocument","style","attributes","nodeValue"];w.domElement=t=>w.object(t)&&t.nodeType===h8&&w.string(t.nodeName)&&!w.plainObject(t)&&d8.every(e=>e in t);w.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};w.nodeStream=t=>w.object(t)&&w.function_(t.pipe)&&!w.observable(t);w.infinite=t=>t===1/0||t===-1/0;var GT=t=>e=>w.integer(e)&&Math.abs(e%2)===t;w.evenInteger=GT(0);w.oddInteger=GT(1);w.emptyArray=t=>w.array(t)&&t.length===0;w.nonEmptyArray=t=>w.array(t)&&t.length>0;w.emptyString=t=>w.string(t)&&t.length===0;var p8=t=>w.string(t)&&!/\S/.test(t);w.emptyStringOrWhitespace=t=>w.emptyString(t)||p8(t);w.nonEmptyString=t=>w.string(t)&&t.length>0;w.nonEmptyStringAndNotWhitespace=t=>w.string(t)&&!w.emptyStringOrWhitespace(t);w.emptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length===0;w.nonEmptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length>0;w.emptySet=t=>w.set(t)&&t.size===0;w.nonEmptySet=t=>w.set(t)&&t.size>0;w.emptyMap=t=>w.map(t)&&t.size===0;w.nonEmptyMap=t=>w.map(t)&&t.size>0;w.propertyKey=t=>w.any([w.string,w.number,w.symbol],t);w.formData=t=>we("FormData")(t);w.urlSearchParams=t=>we("URLSearchParams")(t);var VT=(t,e,r)=>{if(!w.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};w.any=(t,...e)=>(w.array(t)?t:[t]).some(n=>VT(Array.prototype.some,n,e));w.all=(t,...e)=>VT(Array.prototype.every,t,e);var M=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${w(o)}\``))].join(", ")}`:`received value of type \`${w(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};sn.assert={undefined:t=>M(w.undefined(t),"undefined",t),string:t=>M(w.string(t),"string",t),number:t=>M(w.number(t),"number",t),bigint:t=>M(w.bigint(t),"bigint",t),function_:t=>M(w.function_(t),"Function",t),null_:t=>M(w.null_(t),"null",t),class_:t=>M(w.class_(t),"Class",t),boolean:t=>M(w.boolean(t),"boolean",t),symbol:t=>M(w.symbol(t),"symbol",t),numericString:t=>M(w.numericString(t),"string with a number",t),array:(t,e)=>{M(w.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>M(w.buffer(t),"Buffer",t),blob:t=>M(w.blob(t),"Blob",t),nullOrUndefined:t=>M(w.nullOrUndefined(t),"null or undefined",t),object:t=>M(w.object(t),"Object",t),iterable:t=>M(w.iterable(t),"Iterable",t),asyncIterable:t=>M(w.asyncIterable(t),"AsyncIterable",t),generator:t=>M(w.generator(t),"Generator",t),asyncGenerator:t=>M(w.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>M(w.nativePromise(t),"native Promise",t),promise:t=>M(w.promise(t),"Promise",t),generatorFunction:t=>M(w.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>M(w.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>M(w.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>M(w.boundFunction(t),"Function",t),regExp:t=>M(w.regExp(t),"RegExp",t),date:t=>M(w.date(t),"Date",t),error:t=>M(w.error(t),"Error",t),map:t=>M(w.map(t),"Map",t),set:t=>M(w.set(t),"Set",t),weakMap:t=>M(w.weakMap(t),"WeakMap",t),weakSet:t=>M(w.weakSet(t),"WeakSet",t),int8Array:t=>M(w.int8Array(t),"Int8Array",t),uint8Array:t=>M(w.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>M(w.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>M(w.int16Array(t),"Int16Array",t),uint16Array:t=>M(w.uint16Array(t),"Uint16Array",t),int32Array:t=>M(w.int32Array(t),"Int32Array",t),uint32Array:t=>M(w.uint32Array(t),"Uint32Array",t),float32Array:t=>M(w.float32Array(t),"Float32Array",t),float64Array:t=>M(w.float64Array(t),"Float64Array",t),bigInt64Array:t=>M(w.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>M(w.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>M(w.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>M(w.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>M(w.dataView(t),"DataView",t),enumCase:(t,e)=>M(w.enumCase(t,e),"EnumCase",t),urlInstance:t=>M(w.urlInstance(t),"URL",t),urlString:t=>M(w.urlString(t),"string with a URL",t),truthy:t=>M(w.truthy(t),"truthy",t),falsy:t=>M(w.falsy(t),"falsy",t),nan:t=>M(w.nan(t),"NaN",t),primitive:t=>M(w.primitive(t),"primitive",t),integer:t=>M(w.integer(t),"integer",t),safeInteger:t=>M(w.safeInteger(t),"integer",t),plainObject:t=>M(w.plainObject(t),"plain object",t),typedArray:t=>M(w.typedArray(t),"TypedArray",t),arrayLike:t=>M(w.arrayLike(t),"array-like",t),domElement:t=>M(w.domElement(t),"HTMLElement",t),observable:t=>M(w.observable(t),"Observable",t),nodeStream:t=>M(w.nodeStream(t),"Node.js Stream",t),infinite:t=>M(w.infinite(t),"infinite number",t),emptyArray:t=>M(w.emptyArray(t),"empty array",t),nonEmptyArray:t=>M(w.nonEmptyArray(t),"non-empty array",t),emptyString:t=>M(w.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>M(w.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>M(w.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>M(w.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>M(w.emptyObject(t),"empty object",t),nonEmptyObject:t=>M(w.nonEmptyObject(t),"non-empty object",t),emptySet:t=>M(w.emptySet(t),"empty set",t),nonEmptySet:t=>M(w.nonEmptySet(t),"non-empty set",t),emptyMap:t=>M(w.emptyMap(t),"empty map",t),nonEmptyMap:t=>M(w.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>M(w.propertyKey(t),"PropertyKey",t),formData:t=>M(w.formData(t),"FormData",t),urlSearchParams:t=>M(w.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>M(w.evenInteger(t),"even integer",t),oddInteger:t=>M(w.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>M(w.directInstanceOf(t,e),"T",t),inRange:(t,e)=>M(w.inRange(t,e),"in range",t),any:(t,...e)=>M(w.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>M(w.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(w,{class:{value:w.class_},function:{value:w.function_},null:{value:w.null_}});Object.defineProperties(sn.assert,{class:{value:sn.assert.class_},function:{value:sn.assert.function_},null:{value:sn.assert.null_}});sn.default=w;Ol.exports=w;Ol.exports.default=w;Ol.exports.assert=sn.assert});var WT=y((HJ,Gg)=>{"use strict";l();var Tl=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Gs=class{static fn(e){return(...r)=>new Gs((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(i,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new Tl(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Gs.prototype,Promise.prototype);Gg.exports=Gs;Gg.exports.CancelError=Tl});var zT=y((Wg,zg)=>{"use strict";l();Object.defineProperty(Wg,"__esModule",{value:!0});function m8(t){return t.encrypted}var Vg=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),m8(t)&&i&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};Wg.default=Vg;zg.exports=Vg;zg.exports.default=Vg});var YT=y((Kg,Zg)=>{"use strict";l();Object.defineProperty(Kg,"__esModule",{value:!0});var g8=zT(),y8=require("util"),_8=Number(process.versions.node.split(".")[0]),Yg=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=a=>{let c=a.emit.bind(a);a.emit=(u,...f)=>(u==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,a.emit=c),c(u,...f))};r(t);let n=()=>{e.abort=Date.now(),(!e.response||_8>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,y8.types.isProxy(a))return;let c=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",c),g8.default(a,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(a.removeListener("lookup",c),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?i(t.socket):t.prependOnceListener("socket",i);let s=()=>{var a;e.upload=Date.now(),e.phases.request=e.upload-((a=e.secureConnect)!==null&&a!==void 0?a:e.connect)};return(()=>typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))()?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",a=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,a.timings=e,r(a),a.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),a.prependOnceListener("aborted",n)}),e};Kg.default=Yg;Zg.exports=Yg;Zg.exports.default=Yg});var t2=y(($J,Qg)=>{"use strict";l();var{V4MAPPED:v8,ADDRCONFIG:b8,ALL:e2,promises:{Resolver:KT},lookup:E8}=require("dns"),{promisify:Jg}=require("util"),w8=require("os"),Vs=Symbol("cacheableLookupCreateConnection"),Xg=Symbol("cacheableLookupInstance"),ZT=Symbol("expires"),x8=typeof e2=="number",JT=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},S8=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},XT=()=>{let t=!1,e=!1;for(let r of Object.values(w8.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},A8=t=>Symbol.iterator in t,QT={ttl:!0},C8={all:!0},kl=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new KT,lookup:o=E8}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=Jg(o),this._resolver instanceof KT?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Jg(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Jg(this._resolver.resolve6.bind(this._resolver))),this._iface=XT(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&v8&&(x8&&r.hints&e2||i.length===0)?S8(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&b8){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async u=>{try{return await u}catch(f){if(f.code==="ENODATA"||f.code==="ENOTFOUND")return[];throw f}},[n,i]=await Promise.all([this._resolve4(e,QT),this._resolve6(e,QT)].map(u=>r(u))),s=0,o=0,a=0,c=Date.now();for(let u of n)u.family=4,u.expires=c+u.ttl*1e3,s=Math.max(s,u.ttl);for(let u of i)u.family=6,u.expires=c+u.ttl*1e3,o=Math.max(o,u.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],cacheTtl:a}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[ZT]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}A8(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,C8);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[ZT];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(JT(e),Vs in e)throw new Error("CacheableLookup has been already installed");e[Vs]=e.createConnection,e[Xg]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[Vs](r,n))}uninstall(e){if(JT(e),e[Vs]){if(e[Xg]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Vs],delete e[Vs],delete e[Xg]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=XT(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};Qg.exports=kl;Qg.exports.default=kl});var i2=y((UJ,n2)=>{"use strict";l();var R8="text/plain",O8="us-ascii",r2=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),T8=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let c=(o.shift()||"").toLowerCase(),f=[...o.map(h=>{let[d,g=""]=h.split("=").map(m=>m.trim());return d==="charset"&&(g=g.toLowerCase(),g===O8)?"":`${d}${g?`=${g}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length!==0||c&&c!==R8)&&f.unshift(c),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},k8=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return T8(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];r2(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])r2(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};n2.exports=k8});var a2=y((GJ,o2)=>{l();o2.exports=s2;function s2(t,e){if(t&&e)return s2(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var ty=y((VJ,ey)=>{l();var c2=a2();ey.exports=c2(Pl);ey.exports.strict=c2(u2);Pl.proto=Pl(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Pl(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return u2(this)},configurable:!0})});function Pl(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function u2(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var h2=y((WJ,f2)=>{l();var P8=ty(),I8=function(){},L8=function(t){return t.setHeader&&typeof t.abort=="function"},N8=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},l2=function(t,e,r){if(typeof e=="function")return l2(t,null,e);e||(e={}),r=P8(r||I8);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,c=function(){t.writable||u()},u=function(){o=!1,s||r.call(t)},f=function(){s=!1,o||r.call(t)},h=function(v){r.call(t,v?new Error("exited with error code: "+v):null)},d=function(v){r.call(t,v)},g=function(){process.nextTick(m)},m=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},E=function(){t.req.on("finish",u)};return L8(t)?(t.on("complete",u),t.on("abort",g),t.req?E():t.on("request",E)):o&&!n&&(t.on("end",c),t.on("close",c)),N8(t)&&t.on("exit",h),t.on("end",f),t.on("finish",u),e.error!==!1&&t.on("error",d),t.on("close",g),function(){a=!0,t.removeListener("complete",u),t.removeListener("abort",g),t.removeListener("request",E),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("exit",h),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",g)}};f2.exports=l2});var m2=y((zJ,p2)=>{l();var D8=ty(),M8=h2(),ry=require("fs"),Ea=function(){},F8=/^v?\.0/.test(process.version),Il=function(t){return typeof t=="function"},q8=function(t){return!F8||!ry?!1:(t instanceof(ry.ReadStream||Ea)||t instanceof(ry.WriteStream||Ea))&&Il(t.close)},B8=function(t){return t.setHeader&&Il(t.abort)},j8=function(t,e,r,n){n=D8(n);var i=!1;t.on("close",function(){i=!0}),M8(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,q8(t))return t.close(Ea);if(B8(t))return t.abort();if(Il(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},d2=function(t){t()},H8=function(t,e){return t.pipe(e)},$8=function(){var t=Array.prototype.slice.call(arguments),e=Il(t[t.length-1]||Ea)&&t.pop()||Ea;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return j8(i,o,a,function(c){r||(r=c),c&&n.forEach(d2),!o&&(n.forEach(d2),e(r))})});return t.reduce(H8)};p2.exports=$8});var y2=y((YJ,g2)=>{"use strict";l();var{PassThrough:U8}=require("stream");g2.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new U8({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),i?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var _2=y((KJ,Ws)=>{"use strict";l();var{constants:G8}=require("buffer"),V8=m2(),W8=y2(),Ll=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Nl(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=G8.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=V8(t,W8(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new Ll)})}),n.getBufferedValue()}Ws.exports=Nl;Ws.exports.default=Nl;Ws.exports.buffer=(t,e)=>Nl(t,{...e,encoding:"buffer"});Ws.exports.array=(t,e)=>Nl(t,{...e,array:!0});Ws.exports.MaxBufferError=Ll});var b2=y((JJ,v2)=>{"use strict";l();var z8=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),Y8=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),K8=new Set([500,502,503,504]),Z8={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},J8={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function bi(t){let e=parseInt(t,10);return isFinite(e)?e:0}function X8(t){return t?K8.has(t.status):!0}function ny(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function Q8(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(!!e.length)return e.join(", ")}v2.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=ny(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=ny(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Q8(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&Y8.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||z8.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=ny(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)Z8[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return bi(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return bi(this._rescc["s-maxage"])}if(this._rescc["max-age"])return bi(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+bi(this._rescc["stale-if-error"]),n=e+bi(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+bi(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+bi(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&X8(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!J8[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Dl=y((XJ,E2)=>{"use strict";l();E2.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var x2=y((QJ,w2)=>{"use strict";l();var e9=require("stream").Readable,t9=Dl(),iy=class extends e9{constructor(e,r,n,i){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=t9(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};w2.exports=iy});var A2=y((eX,S2)=>{"use strict";l();var r9=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];S2.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(r9));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var R2=y((tX,C2)=>{"use strict";l();var n9=require("stream").PassThrough,i9=A2(),s9=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new n9;return i9(t,e),t.pipe(e)};C2.exports=s9});var O2=y(sy=>{l();sy.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]>"u";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};sy.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var I2=y((nX,P2)=>{"use strict";l();var o9=require("events"),T2=O2(),a9=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},k2=["sqlite","postgres","mysql","mongo","redis","tiered"],oy=class extends o9{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:T2.stringify,deserialize:T2.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=a9(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let c=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof c.expires=="number"&&Date.now()>c.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),c.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return k2.includes(this.opts.store.opts.dialect)||k2.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.get(a)).then(c=>typeof c=="string"?this.opts.deserialize(c):this.opts.compression?this.opts.deserialize(c):c).then(c=>{if(c!=null)return typeof c.expires=="number"&&Date.now()>c.expires?this.delete(a).then(()=>{}):r&&r.raw?c:c.value}));return Promise.allSettled(o).then(a=>{let c=[];for(let u of a)c.push(u.value);return c})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let a=[];for(let c of o){if(typeof c=="string"&&(c=this.opts.deserialize(c)),c==null){a.push(void 0);continue}typeof c.expires=="number"&&Date.now()>c.expires?(this.delete(e).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?c:c.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,n){let i=this._getKeyPrefix(e);typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};P2.exports=oy});var D2=y((iX,N2)=>{"use strict";l();var c9=require("events"),Ml=require("url"),u9=i2(),l9=_2(),ay=b2(),L2=x2(),f9=Dl(),h9=R2(),d9=I2(),hr=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new d9({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=cy(Ml.parse(r)),r={};else if(r instanceof Ml.URL)i=cy(Ml.parse(r.toString())),r={};else{let[h,...d]=(r.path||"").split("?"),g=d.length>0?`?${d.join("?")}`:"";i=cy({...r,pathname:h,search:g})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...p9(i)},r.headers=f9(r.headers);let s=new c9,o=u9(Ml.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,c=!1,u=!1,f=h=>{u=!0;let d=!1,g,m=new Promise(v=>{g=()=>{d||(d=!0,v())}}),E=v=>{if(c&&!h.forceRefresh){v.status=v.statusCode;let P=ay.fromObject(c.cachePolicy).revalidatedPolicy(h,v);if(!P.modified){let D=P.policy.responseHeaders();v=new L2(c.statusCode,D,c.body,c.url),v.cachePolicy=P.policy,v.fromCache=!0}}v.fromCache||(v.cachePolicy=new ay(h,v,h),v.fromCache=!1);let A;h.cache&&v.cachePolicy.storable()?(A=h9(v),(async()=>{try{let P=l9.buffer(v);if(await Promise.race([m,new Promise(ue=>v.once("end",ue))]),d)return;let D=await P,ie={cachePolicy:v.cachePolicy.toObject(),url:v.url,statusCode:v.fromCache?c.statusCode:v.statusCode,body:D},z=h.strictTtl?v.cachePolicy.timeToLive():void 0;h.maxTtl&&(z=z?Math.min(z,h.maxTtl):h.maxTtl),await this.cache.set(a,ie,z)}catch(P){s.emit("error",new hr.CacheError(P))}})()):h.cache&&c&&(async()=>{try{await this.cache.delete(a)}catch(P){s.emit("error",new hr.CacheError(P))}})(),s.emit("response",A||v),typeof n=="function"&&n(A||v)};try{let v=e(h,E);v.once("error",g),v.once("abort",g),s.emit("request",v)}catch(v){s.emit("error",new hr.RequestError(v))}};return(async()=>{let h=async g=>{await Promise.resolve();let m=g.cache?await this.cache.get(a):void 0;if(typeof m>"u")return f(g);let E=ay.fromObject(m.cachePolicy);if(E.satisfiesWithoutRevalidation(g)&&!g.forceRefresh){let v=E.responseHeaders(),A=new L2(m.statusCode,v,m.body,m.url);A.cachePolicy=E,A.fromCache=!0,s.emit("response",A),typeof n=="function"&&n(A)}else c=m,g.headers=E.revalidationHeaders(g),f(g)},d=g=>s.emit("error",new hr.CacheError(g));this.cache.once("error",d),s.on("response",()=>this.cache.removeListener("error",d));try{await h(r)}catch(g){r.automaticFailover&&!u&&f(r),s.emit("error",new hr.CacheError(g))}})(),s}}};function p9(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function cy(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}hr.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};hr.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};N2.exports=hr});var F2=y((aX,M2)=>{"use strict";l();var m9=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];M2.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(m9)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var B2=y((cX,q2)=>{"use strict";l();var{Transform:g9,PassThrough:y9}=require("stream"),uy=require("zlib"),_9=F2();q2.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof uy.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new g9({transform(a,c,u){n=!1,u(null,a)},flush(a){a()}}),s=new y9({autoDestroy:!1,destroy(a,c){t.destroy(),c(a)}}),o=r?uy.createBrotliDecompress():uy.createUnzip();return o.once("error",a=>{if(n&&!t.readable){s.end();return}s.destroy(a)}),_9(t,s),t.pipe(i).pipe(o).pipe(s),s}});var fy=y((uX,j2)=>{"use strict";l();var ly=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};j2.exports=ly});var dy=y((lX,G2)=>{"use strict";l();var v9=require("events"),b9=require("tls"),E9=require("http2"),w9=fy(),yt=Symbol("currentStreamsCount"),H2=Symbol("request"),er=Symbol("cachedOriginSet"),zs=Symbol("gracefullyClosing"),x9=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],S9=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},A9=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,hy=(t,e)=>{for(let r of t)r[er].length<e[er].length&&r[er].every(n=>e[er].includes(n))&&r[yt]+e[yt]<=e.remoteSettings.maxConcurrentStreams&&U2(r)},C9=(t,e)=>{for(let r of t)e[er].length<r[er].length&&e[er].every(n=>r[er].includes(n))&&e[yt]+r[yt]<=r.remoteSettings.maxConcurrentStreams&&U2(e)},$2=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let a=o[Pr.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[n]=s)}return r},U2=t=>{t[zs]=!0,t[yt]===0&&t.close()},Pr=class extends v9{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new w9({maxSize:i})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let n of x9)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=Pr.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:f}of n)f(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let f=this.sessions[o],h=-1,d=-1,g;for(let m of f){let E=m.remoteSettings.maxConcurrentStreams;if(E<h)break;if(m[er].includes(a)){let v=m[yt];if(v>=E||m[zs]||m.destroyed)continue;g||(h=E),v>d&&(g=m,d=v)}}if(g){if(n.length!==1){for(let{reject:m}of n){let E=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
|
52
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);m(E)}return}n[0].resolve(g);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let c=()=>{o in this.queue&&this.queue[o][a]===u&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},u=()=>{let f=`${a}:${o}`,h=!1;try{let d=E9.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(f),...r});d[yt]=0,d[zs]=!1;let g=()=>d[yt]<d.remoteSettings.maxConcurrentStreams,m=!0;d.socket.once("session",v=>{this.tlsSessionCache.set(f,v)}),d.once("error",v=>{for(let{reject:A}of n)A(v);this.tlsSessionCache.delete(f)}),d.setTimeout(this.timeout,()=>{d.destroy()}),d.once("close",()=>{if(h){m&&this._freeSessionsCount--,this._sessionsCount--;let v=this.sessions[o];v.splice(v.indexOf(d),1),v.length===0&&delete this.sessions[o]}else{let v=new Error("Session closed without receiving a SETTINGS frame");v.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:A}of n)A(v);c()}this._tryToCreateNewSession(o,a)});let E=()=>{if(!(!(o in this.queue)||!g())){for(let v of d[er])if(v in this.queue[o]){let{listeners:A}=this.queue[o][v];for(;A.length!==0&&g();)A.shift().resolve(d);let P=this.queue[o];if(P[v].listeners.length===0&&(delete P[v],Object.keys(P).length===0)){delete this.queue[o];break}if(!g())break}}};d.on("origin",()=>{d[er]=d.originSet,g()&&(E(),hy(this.sessions[o],d))}),d.once("remoteSettings",()=>{if(d.ref(),d.unref(),this._sessionsCount++,u.destroyed){let v=new Error("Agent has been destroyed");for(let A of n)A.reject(v);d.destroy();return}d[er]=d.originSet;{let v=this.sessions;if(o in v){let A=v[o];A.splice(S9(A,d,A9),0,d)}else v[o]=[d]}this._freeSessionsCount+=1,h=!0,this.emit("session",d),E(),c(),d[yt]===0&&this._freeSessionsCount>this.maxFreeSessions&&d.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),d.on("remoteSettings",()=>{E(),hy(this.sessions[o],d)})}),d[H2]=d.request,d.request=(v,A)=>{if(d[zs])throw new Error("The session is gracefully closing. No new streams are allowed.");let P=d[H2](v,A);return d.ref(),++d[yt],d[yt]===d.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,P.once("close",()=>{if(m=g(),--d[yt],!d.destroyed&&!d.closed&&(C9(this.sessions[o],d),g()&&!d.closed)){m||(this._freeSessionsCount++,m=!0);let D=d[yt]===0;D&&d.unref(),D&&(this._freeSessionsCount>this.maxFreeSessions||d[zs])?d.close():(hy(this.sessions[o],d),E())}}),P}}catch(d){for(let g of n)g.reject(d);c()}};u.listeners=n,u.completed=!1,u.destroyed=!1,this.queue[o][a]=u,this._tryToCreateNewSession(o,a)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(c){o(c)}}}])})}createConnection(e,r){return Pr.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername>"u"&&(r.servername=i),b9.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[yt]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return $2({agent:this,isFree:!0})}get busySessions(){return $2({agent:this,isFree:!1})}};Pr.kCurrentStreamsCount=yt;Pr.kGracefullyClosing=zs;G2.exports={Agent:Pr,globalAgent:new Pr}});var my=y((fX,V2)=>{"use strict";l();var{Readable:R9}=require("stream"),py=class extends R9{constructor(e,r){super({highWaterMark:r,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};V2.exports=py});var gy=y((hX,W2)=>{"use strict";l();W2.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var Y2=y((dX,z2)=>{"use strict";l();z2.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var Z2=y((pX,K2)=>{"use strict";l();K2.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var X2=y((gX,J2)=>{"use strict";l();var Ys=(t,e,r)=>{J2.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};Ys(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Ys(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Ys(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Ys(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Ys(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Ys(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var Ey=y((yX,sk)=>{"use strict";l();var O9=require("http2"),{Writable:T9}=require("stream"),{Agent:Q2,globalAgent:k9}=dy(),P9=my(),I9=gy(),L9=Y2(),N9=Z2(),{ERR_INVALID_ARG_TYPE:yy,ERR_INVALID_PROTOCOL:D9,ERR_HTTP_HEADERS_SENT:ek,ERR_INVALID_HTTP_TOKEN:M9,ERR_HTTP_INVALID_HEADER_VALUE:F9,ERR_INVALID_CHAR:q9}=X2(),{HTTP2_HEADER_STATUS:tk,HTTP2_HEADER_METHOD:rk,HTTP2_HEADER_PATH:nk,HTTP2_METHOD_CONNECT:B9}=O9.constants,dt=Symbol("headers"),_y=Symbol("origin"),vy=Symbol("session"),ik=Symbol("options"),Fl=Symbol("flushedHeaders"),wa=Symbol("jobs"),j9=/^[\^`\-\w!#$%&*+.|~]+$/,H9=/[^\t\u0020-\u007E\u0080-\u00FF]/,by=class extends T9{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=I9(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[vy]=r.h2session;else if(r.agent===!1)this.agent=new Q2({maxFreeSessions:0});else if(typeof r.agent>"u"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new Q2({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=k9;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new yy("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new D9(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[dt]=Object.create(null),this[wa]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[c,u]of Object.entries(r.headers))this.setHeader(c,u);r.auth&&!("authorization"in this[dt])&&(this[dt].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[ik]=r,s===443?(this[_y]=`https://${o}`,":authority"in this[dt]||(this[dt][":authority"]=o)):(this[_y]=`https://${o}:${s}`,":authority"in this[dt]||(this[dt][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[Fl]=!1}get method(){return this[dt][rk]}set method(e){e&&(this[dt][rk]=e.toUpperCase())}get path(){return this[dt][nk]}set path(e){e&&(this[dt][nk]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(e,r,n);this._request?i():this[wa].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[wa].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[Fl]||this.destroyed)return;this[Fl]=!0;let e=this.method===B9,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||L9(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,c)=>{let u=new P9(this.socket,n.readableHighWaterMark);this.res=u,u.req=this,u.statusCode=o[tk],u.headers=o,u.rawHeaders=c,u.once("end",()=>{this.aborted?(u.aborted=!0,u.emit("aborted")):(u.complete=!0,u.socket=null,u.connection=null)}),e?(u.upgrade=!0,this.emit("connect",u,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",f=>{!u._dumped&&!u.push(f)&&n.pause()}),n.once("end",()=>{u.push(null)}),this.emit("response",u)||u._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[tk]}))),n.once("trailers",i((o,a,c)=>{let{res:u}=this;u.trailers=o,u.rawTrailers=c}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[wa])o();this.emit("socket",this.socket)};if(this[vy])try{r(this[vy].request(this[dt]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[_y],this[ik],this[dt]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new yy("name","string",e);return this[dt][e.toLowerCase()]}get headersSent(){return this[Fl]}removeHeader(e){if(typeof e!="string")throw new yy("name","string",e);if(this.headersSent)throw new ek("remove");delete this[dt][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new ek("set");if(typeof e!="string"||!j9.test(e)&&!N9(e))throw new M9("Header name",e);if(typeof r>"u")throw new F9(r,e);if(H9.test(r))throw new q9("header content",e);this[dt][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[wa].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};sk.exports=by});var ak=y((_X,ok)=>{"use strict";l();var $9=require("tls");ok.exports=(t={},e=$9.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await c,s.off("timeout",a),s.off("error",n),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},c=(async()=>{try{s=await e(t,o),s.on("error",n),s.once("timeout",a)}catch(u){n(u)}})()})});var uk=y((vX,ck)=>{"use strict";l();var U9=require("net");ck.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),U9.isIP(e)?"":e}});var hk=y((bX,xy)=>{"use strict";l();var lk=require("http"),wy=require("https"),G9=ak(),V9=fy(),W9=Ey(),z9=uk(),Y9=gy(),ql=new V9({maxSize:100}),xa=new Map,fk=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},K9=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!ql.has(e)){if(xa.has(e))return(await xa.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=G9(t);xa.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if(ql.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=wy,c=wy.Agent.prototype.createConnection;n?n.createConnection===c?fk(n,s,t):s.destroy():a.createConnection===c?fk(a,s,t):s.destroy()}return xa.delete(e),o}catch(s){throw xa.delete(e),s}}return ql.get(e)};xy.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=Y9(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||z9(e),e.port=e.port||(n?443:80),e._defaultAgent=n?wy.globalAgent:lk.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await K9(e)==="h2"?(i&&(e.agent=i.http2),new W9(e,r)):lk.request(e,r)};xy.exports.protocolCache=ql});var pk=y((EX,dk)=>{"use strict";l();var Z9=require("http2"),J9=dy(),Sy=Ey(),X9=my(),Q9=hk(),eG=(t,e,r)=>new Sy(t,e,r),tG=(t,e,r)=>{let n=new Sy(t,e,r);return n.end(),n};dk.exports={...Z9,ClientRequest:Sy,IncomingMessage:X9,...J9,request:eG,get:tG,auto:Q9}});var Cy=y(Ay=>{"use strict";l();Object.defineProperty(Ay,"__esModule",{value:!0});var mk=on();Ay.default=t=>mk.default.nodeStream(t)&&mk.default.function_(t.getBoundary)});var vk=y(Ry=>{"use strict";l();Object.defineProperty(Ry,"__esModule",{value:!0});var yk=require("fs"),_k=require("util"),gk=on(),rG=Cy(),nG=_k.promisify(yk.stat);Ry.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(gk.default.string(t))return Buffer.byteLength(t);if(gk.default.buffer(t))return t.length;if(rG.default(t))return _k.promisify(t.getLength.bind(t))();if(t instanceof yk.ReadStream){let{size:r}=await nG(t.path);return r===0?void 0:r}}});var Ty=y(Oy=>{"use strict";l();Object.defineProperty(Oy,"__esModule",{value:!0});function iG(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}Oy.default=iG});var bk=y(ky=>{"use strict";l();Object.defineProperty(ky,"__esModule",{value:!0});ky.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var wk=y(Sa=>{"use strict";l();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.TimeoutError=void 0;var sG=require("net"),oG=bk(),Ek=Symbol("reentry"),aG=()=>{},Bl=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Sa.TimeoutError=Bl;Sa.default=(t,e,r)=>{if(Ek in t)return aG;t[Ek]=!0;let n=[],{once:i,unhandleAll:s}=oG.default(),o=(h,d,g)=>{var m;let E=setTimeout(d,h,h,g);(m=E.unref)===null||m===void 0||m.call(E);let v=()=>{clearTimeout(E)};return n.push(v),v},{host:a,hostname:c}=r,u=(h,d)=>{t.destroy(new Bl(h,d))},f=()=>{for(let h of n)h();s()};if(t.once("error",h=>{if(f(),t.listenerCount("error")===0)throw h}),t.once("close",f),i(t,"response",h=>{i(h,"end",f)}),typeof e.request<"u"&&o(e.request,u,"request"),typeof e.socket<"u"){let h=()=>{u(e.socket,"socket")};t.setTimeout(e.socket,h),n.push(()=>{t.removeListener("timeout",h)})}return i(t,"socket",h=>{var d;let{socketPath:g}=t;if(h.connecting){let m=Boolean(g!=null?g:sG.isIP((d=c!=null?c:a)!==null&&d!==void 0?d:"")!==0);if(typeof e.lookup<"u"&&!m&&typeof h.address().address>"u"){let E=o(e.lookup,u,"lookup");i(h,"lookup",E)}if(typeof e.connect<"u"){let E=()=>o(e.connect,u,"connect");m?i(h,"connect",E()):i(h,"lookup",v=>{v===null&&i(h,"connect",E())})}typeof e.secureConnect<"u"&&r.protocol==="https:"&&i(h,"connect",()=>{let E=o(e.secureConnect,u,"secureConnect");i(h,"secureConnect",E)})}if(typeof e.send<"u"){let m=()=>o(e.send,u,"send");h.connecting?i(h,"connect",()=>{i(t,"upload-complete",m())}):i(t,"upload-complete",m())}}),typeof e.response<"u"&&i(t,"upload-complete",()=>{let h=o(e.response,u,"response");i(t,"response",h)}),f}});var Sk=y(Py=>{"use strict";l();Object.defineProperty(Py,"__esModule",{value:!0});var xk=on();Py.default=t=>{t=t;let e={protocol:t.protocol,hostname:xk.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return xk.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var Ak=y(Iy=>{"use strict";l();Object.defineProperty(Iy,"__esModule",{value:!0});var cG=require("url"),uG=["protocol","host","hostname","port","pathname","search"];Iy.default=(t,e)=>{var r,n;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new cG.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of uG)e[s]&&(i[s]=e[s].toString());return i}});var Ck=y(Ny=>{"use strict";l();Object.defineProperty(Ny,"__esModule",{value:!0});var Ly=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};Ny.default=Ly});var My=y(Dy=>{"use strict";l();Object.defineProperty(Dy,"__esModule",{value:!0});var lG=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Dy.default=lG});var Ok=y(Ei=>{"use strict";l();Object.defineProperty(Ei,"__esModule",{value:!0});Ei.dnsLookupIpVersionToFamily=Ei.isDnsLookupIpVersion=void 0;var Rk={auto:0,ipv4:4,ipv6:6};Ei.isDnsLookupIpVersion=t=>t in Rk;Ei.dnsLookupIpVersionToFamily=t=>{if(Ei.isDnsLookupIpVersion(t))return Rk[t];throw new Error("Invalid DNS lookup IP version")}});var Fy=y(jl=>{"use strict";l();Object.defineProperty(jl,"__esModule",{value:!0});jl.isResponseOk=void 0;jl.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var kk=y(qy=>{"use strict";l();Object.defineProperty(qy,"__esModule",{value:!0});var Tk=new Set;qy.default=t=>{Tk.has(t)||(Tk.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var Pk=y(By=>{"use strict";l();Object.defineProperty(By,"__esModule",{value:!0});var Re=on(),fG=(t,e)=>{if(Re.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");Re.assert.any([Re.default.string,Re.default.undefined],t.encoding),Re.assert.any([Re.default.boolean,Re.default.undefined],t.resolveBodyOnly),Re.assert.any([Re.default.boolean,Re.default.undefined],t.methodRewriting),Re.assert.any([Re.default.boolean,Re.default.undefined],t.isStream),Re.assert.any([Re.default.string,Re.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},Re.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):Re.default.number(r)&&(t.retry.limit=r),Re.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(Re.default.number))),Re.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!Re.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!Re.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!Re.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!Re.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};By.default=fG});var Ik=y(Aa=>{"use strict";l();Object.defineProperty(Aa,"__esModule",{value:!0});Aa.retryAfterStatusCodes=void 0;Aa.retryAfterStatusCodes=new Set([413,429,503]);var hG=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Aa.default=hG});var Oa=y(pe=>{"use strict";l();Object.defineProperty(pe,"__esModule",{value:!0});pe.UnsupportedProtocolError=pe.ReadError=pe.TimeoutError=pe.UploadError=pe.CacheError=pe.HTTPError=pe.MaxRedirectsError=pe.RequestError=pe.setNonEnumerableProperties=pe.knownHookEvents=pe.withoutBody=pe.kIsNormalizedAlready=void 0;var Lk=require("util"),Nk=require("stream"),dG=require("fs"),Bn=require("url"),Dk=require("http"),jy=require("http"),pG=require("https"),mG=YT(),gG=t2(),Mk=D2(),yG=B2(),_G=pk(),vG=Dl(),O=on(),bG=vk(),Fk=Cy(),EG=Ty(),qk=wk(),wG=Sk(),Bk=Ak(),xG=Ck(),SG=My(),jk=Ok(),AG=Fy(),jn=kk(),CG=Pk(),RG=Ik(),Hy,tt=Symbol("request"),Ul=Symbol("response"),Ks=Symbol("responseSize"),Zs=Symbol("downloadedSize"),Js=Symbol("bodySize"),Xs=Symbol("uploadedSize"),Hl=Symbol("serverResponsesPiped"),Hk=Symbol("unproxyEvents"),$k=Symbol("isFromCache"),$y=Symbol("cancelTimeouts"),Uk=Symbol("startedReading"),Qs=Symbol("stopReading"),$l=Symbol("triggerRead"),Hn=Symbol("body"),Ca=Symbol("jobs"),Gk=Symbol("originalResponse"),Vk=Symbol("retryTimeout");pe.kIsNormalizedAlready=Symbol("isNormalizedAlready");var OG=O.default.string(process.versions.brotli);pe.withoutBody=new Set(["GET","HEAD"]);pe.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function TG(t){for(let e in t){let r=t[e];if(!O.default.string(r)&&!O.default.number(r)&&!O.default.boolean(r)&&!O.default.null_(r)&&!O.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function kG(t){return O.default.object(t)&&!("statusCode"in t)}var Uy=new xG.default,PG=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),IG=new Set([300,301,302,303,304,307,308]),LG=["context","body","json","form"];pe.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(!!n)for(let i of LG)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var Be=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof Zl?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[Ul]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,O.default.string(r.stack)&&O.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
|
51
|
+
`).reduce(sU,Object.create(null)),sU=(t,e)=>{let r=parseInt(e,10);if(r!==Buffer.byteLength(e)+1)return t;e=e.slice((r+" ").length);let n=e.split("="),i=n.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!i)return t;let s=n.join("=");return t[i]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i)?new Date(s*1e3):/^[0-9]+$/.test(s)?+s:s,t};SR.exports=aa});var Os=y((oJ,AR)=>{l();AR.exports=t=>{let e=t.length-1,r=-1;for(;e>-1&&t.charAt(e)==="/";)r=e,e--;return r===-1?t:t.slice(0,r)}});var ju=y((aJ,CR)=>{"use strict";l();CR.exports=t=>class extends t{warn(e,r,n={}){this.file&&(n.file=this.file),this.cwd&&(n.cwd=this.cwd),n.code=r instanceof Error&&r.code||e,n.tarCode=e,!this.strict&&n.recoverable!==!1?(r instanceof Error&&(n=Object.assign(r,n),r=r.message),this.emit("warn",n.tarCode,r,n)):r instanceof Error?this.emit("error",Object.assign(r,n)):this.emit("error",Object.assign(new Error(`${e}: ${r}`),n))}}});var Hm=y((uJ,RR)=>{"use strict";l();var Hu=["|","<",">","?",":"],jm=Hu.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),oU=new Map(Hu.map((t,e)=>[t,jm[e]])),aU=new Map(jm.map((t,e)=>[t,Hu[e]]));RR.exports={encode:t=>Hu.reduce((e,r)=>e.split(r).join(oU.get(r)),t),decode:t=>jm.reduce((e,r)=>e.split(r).join(aU.get(r)),t)}});var $m=y((lJ,TR)=>{l();var{isAbsolute:cU,parse:OR}=require("path").win32;TR.exports=t=>{let e="",r=OR(t);for(;cU(t)||r.root;){let n=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":r.root;t=t.slice(n.length),e+=n,r=OR(t)}return[e,t]}});var PR=y((fJ,kR)=>{"use strict";l();kR.exports=(t,e,r)=>(t&=4095,r&&(t=(t|384)&-19),e&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)});var Xm=y((pJ,VR)=>{"use strict";l();var qR=Ou(),BR=Bu(),jR=Rs(),Cr=require("fs"),IR=require("path"),Ar=As(),uU=Os(),HR=(t,e)=>e?(t=Ar(t).replace(/^\.(\/|$)/,""),uU(e)+"/"+t):Ar(t),lU=16*1024*1024,LR=Symbol("process"),NR=Symbol("file"),DR=Symbol("directory"),Gm=Symbol("symlink"),MR=Symbol("hardlink"),ca=Symbol("header"),$u=Symbol("read"),Vm=Symbol("lstat"),Uu=Symbol("onlstat"),Wm=Symbol("onread"),zm=Symbol("onreadlink"),Ym=Symbol("openfile"),Km=Symbol("onopenfile"),Pn=Symbol("close"),Gu=Symbol("mode"),Zm=Symbol("awaitDrain"),Um=Symbol("ondrain"),Rr=Symbol("prefix"),FR=Symbol("hadError"),$R=ju(),fU=Hm(),UR=$m(),GR=PR(),Vu=$R(class extends qR{constructor(e,r){if(r=r||{},super(r),typeof e!="string")throw new TypeError("path is required");this.path=Ar(e),this.portable=!!r.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=r.maxReadSize||lU,this.linkCache=r.linkCache||new Map,this.statCache=r.statCache||new Map,this.preservePaths=!!r.preservePaths,this.cwd=Ar(r.cwd||process.cwd()),this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.mtime=r.mtime||null,this.prefix=r.prefix?Ar(r.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=UR(this.path);i&&(this.path=s,n=i)}this.win32=!!r.win32||process.platform==="win32",this.win32&&(this.path=fU.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=Ar(r.absolute||IR.resolve(this.cwd,e)),this.path===""&&(this.path="./"),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.statCache.has(this.absolute)?this[Uu](this.statCache.get(this.absolute)):this[Vm]()}emit(e,...r){return e==="error"&&(this[FR]=!0),super.emit(e,...r)}[Vm](){Cr.lstat(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[Uu](r)})}[Uu](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=dU(e),this.emit("stat",e),this[LR]()}[LR](){switch(this.type){case"File":return this[NR]();case"Directory":return this[DR]();case"SymbolicLink":return this[Gm]();default:return this.end()}}[Gu](e){return GR(e,this.type==="Directory",this.portable)}[Rr](e){return HR(e,this.prefix)}[ca](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new jR({path:this[Rr](this.path),linkpath:this.type==="Link"?this[Rr](this.linkpath):this.linkpath,mode:this[Gu](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new BR({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[Rr](this.path),linkpath:this.type==="Link"?this[Rr](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[DR](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[ca](),this.end()}[Gm](){Cr.readlink(this.absolute,(e,r)=>{if(e)return this.emit("error",e);this[zm](r)})}[zm](e){this.linkpath=Ar(e),this[ca](),this.end()}[MR](e){this.type="Link",this.linkpath=Ar(IR.relative(this.cwd,e)),this.stat.size=0,this[ca](),this.end()}[NR](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let r=this.linkCache.get(e);if(r.indexOf(this.cwd)===0)return this[MR](r)}this.linkCache.set(e,this.absolute)}if(this[ca](),this.stat.size===0)return this.end();this[Ym]()}[Ym](){Cr.open(this.absolute,"r",(e,r)=>{if(e)return this.emit("error",e);this[Km](r)})}[Km](e){if(this.fd=e,this[FR])return this[Pn]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[$u]()}[$u](){let{fd:e,buf:r,offset:n,length:i,pos:s}=this;Cr.read(e,r,n,i,s,(o,a)=>{if(o)return this[Pn](()=>this.emit("error",o));this[Wm](a)})}[Pn](e){Cr.close(this.fd,e)}[Wm](e){if(e<=0&&this.remain>0){let i=new Error("encountered unexpected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Pn](()=>this.emit("error",i))}if(e>this.remain){let i=new Error("did not encounter expected EOF");return i.path=this.absolute,i.syscall="read",i.code="EOF",this[Pn](()=>this.emit("error",i))}if(e===this.remain)for(let i=e;i<this.length&&e<this.blockRemain;i++)this.buf[i+this.offset]=0,e++,this.remain++;let r=this.offset===0&&e===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+e);this.write(r)?this[Um]():this[Zm](()=>this[Um]())}[Zm](e){this.once("drain",e)}write(e){if(this.blockRemain<e.length){let r=new Error("writing more data than expected");return r.path=this.absolute,this.emit("error",r)}return this.remain-=e.length,this.blockRemain-=e.length,this.pos+=e.length,this.offset+=e.length,super.write(e)}[Um](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[Pn](e=>e?this.emit("error",e):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[$u]()}}),Jm=class extends Vu{[Vm](){this[Uu](Cr.lstatSync(this.absolute))}[Gm](){this[zm](Cr.readlinkSync(this.absolute))}[Ym](){this[Km](Cr.openSync(this.absolute,"r"))}[$u](){let e=!0;try{let{fd:r,buf:n,offset:i,length:s,pos:o}=this,a=Cr.readSync(r,n,i,s,o);this[Wm](a),e=!1}finally{if(e)try{this[Pn](()=>{})}catch{}}}[Zm](e){e()}[Pn](e){Cr.closeSync(this.fd),e()}},hU=$R(class extends qR{constructor(e,r){r=r||{},super(r),this.preservePaths=!!r.preservePaths,this.portable=!!r.portable,this.strict=!!r.strict,this.noPax=!!r.noPax,this.noMtime=!!r.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=r.prefix||null,this.path=Ar(e.path),this.mode=this[Gu](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:r.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=Ar(e.linkpath),typeof r.onwarn=="function"&&this.on("warn",r.onwarn);let n=!1;if(!this.preservePaths){let[i,s]=UR(this.path);i&&(this.path=s,n=i)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new jR({path:this[Rr](this.path),linkpath:this.type==="Link"?this[Rr](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),n&&this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:this,path:n+this.path}),this.header.encode()&&!this.noPax&&super.write(new BR({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[Rr](this.path),linkpath:this.type==="Link"?this[Rr](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Rr](e){return HR(e,this.prefix)}[Gu](e){return GR(e,this.type==="Directory",this.portable)}write(e){let r=e.length;if(r>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=r,super.write(e)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});Vu.Sync=Jm;Vu.Tar=hU;var dU=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";VR.exports=Vu});var zR=y((mJ,WR)=>{"use strict";l();WR.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Qm=y((gJ,YR)=>{"use strict";l();YR.exports=he;he.Node=hi;he.create=he;function he(t){var e=this;if(e instanceof he||(e=new he),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}he.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e};he.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}};he.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}};he.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)mU(this,arguments[t]);return this.length};he.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)gU(this,arguments[t]);return this.length};he.prototype.pop=function(){if(!!this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}};he.prototype.shift=function(){if(!!this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}};he.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;r!==null;n++)t.call(e,r.value,n,this),r=r.next};he.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;r!==null;n--)t.call(e,r.value,n,this),r=r.prev};he.prototype.get=function(t){for(var e=0,r=this.head;r!==null&&e<t;e++)r=r.next;if(e===t&&r!==null)return r.value};he.prototype.getReverse=function(t){for(var e=0,r=this.tail;r!==null&&e<t;e++)r=r.prev;if(e===t&&r!==null)return r.value};he.prototype.map=function(t,e){e=e||this;for(var r=new he,n=this.head;n!==null;)r.push(t.call(e,n.value,this)),n=n.next;return r};he.prototype.mapReverse=function(t,e){e=e||this;for(var r=new he,n=this.tail;n!==null;)r.push(t.call(e,n.value,this)),n=n.prev;return r};he.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=t(r,n.value,i),n=n.next;return r};he.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=t(r,n.value,i),n=n.prev;return r};he.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};he.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};he.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new he;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)r.push(i.value);return r};he.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new he;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};he.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n<t;n++)i=i.next;for(var s=[],n=0;i&&n<e;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=pU(this,i,r[n]);return s};he.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;r!==null;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};function pU(t,e,r){var n=e===t.head?new hi(r,null,e,t):new hi(r,e,e.next,t);return n.next===null&&(t.tail=n),n.prev===null&&(t.head=n),t.length++,n}function mU(t,e){t.tail=new hi(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function gU(t,e){t.head=new hi(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function hi(t,e,r,n){if(!(this instanceof hi))return new hi(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{zR()(he)}catch{}});var el=y((_J,tO)=>{"use strict";l();var Xu=class{constructor(e,r){this.path=e||"./",this.absolute=r,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},yU=Ou(),_U=Pm(),vU=Fu(),cg=Xm(),bU=cg.Sync,EU=cg.Tar,wU=Qm(),KR=Buffer.alloc(1024),Yu=Symbol("onStat"),Wu=Symbol("ended"),Or=Symbol("queue"),Ts=Symbol("current"),di=Symbol("process"),zu=Symbol("processing"),ZR=Symbol("processJob"),Tr=Symbol("jobs"),eg=Symbol("jobDone"),Ku=Symbol("addFSEntry"),JR=Symbol("addTarEntry"),ig=Symbol("stat"),sg=Symbol("readdir"),Zu=Symbol("onreaddir"),Ju=Symbol("pipe"),XR=Symbol("entry"),tg=Symbol("entryOpt"),og=Symbol("writeEntryClass"),eO=Symbol("write"),rg=Symbol("ondrain"),Qu=require("fs"),QR=require("path"),xU=ju(),ng=As(),ug=xU(class extends yU{constructor(e){super(e),e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=ng(e.prefix||""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[og]=cg,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new _U.Gzip(e.gzip),this.zip.on("data",r=>super.write(r)),this.zip.on("end",r=>super.end()),this.zip.on("drain",r=>this[rg]()),this.on("resume",r=>this.zip.resume())):this.on("drain",this[rg]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:r=>!0,this[Or]=new wU,this[Tr]=0,this.jobs=+e.jobs||4,this[zu]=!1,this[Wu]=!1}[eO](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Wu]=!0,this[di](),this}write(e){if(this[Wu])throw new Error("write after end");return e instanceof vU?this[JR](e):this[Ku](e),this.flowing}[JR](e){let r=ng(QR.resolve(this.cwd,e.path));if(!this.filter(e.path,e))e.resume();else{let n=new Xu(e.path,r,!1);n.entry=new EU(e,this[tg](n)),n.entry.on("end",i=>this[eg](n)),this[Tr]+=1,this[Or].push(n)}this[di]()}[Ku](e){let r=ng(QR.resolve(this.cwd,e));this[Or].push(new Xu(e,r)),this[di]()}[ig](e){e.pending=!0,this[Tr]+=1;let r=this.follow?"stat":"lstat";Qu[r](e.absolute,(n,i)=>{e.pending=!1,this[Tr]-=1,n?this.emit("error",n):this[Yu](e,i)})}[Yu](e,r){this.statCache.set(e.absolute,r),e.stat=r,this.filter(e.path,r)||(e.ignore=!0),this[di]()}[sg](e){e.pending=!0,this[Tr]+=1,Qu.readdir(e.absolute,(r,n)=>{if(e.pending=!1,this[Tr]-=1,r)return this.emit("error",r);this[Zu](e,n)})}[Zu](e,r){this.readdirCache.set(e.absolute,r),e.readdir=r,this[di]()}[di](){if(!this[zu]){this[zu]=!0;for(let e=this[Or].head;e!==null&&this[Tr]<this.jobs;e=e.next)if(this[ZR](e.value),e.value.ignore){let r=e.next;this[Or].removeNode(e),e.next=r}this[zu]=!1,this[Wu]&&!this[Or].length&&this[Tr]===0&&(this.zip?this.zip.end(KR):(super.write(KR),super.end()))}}get[Ts](){return this[Or]&&this[Or].head&&this[Or].head.value}[eg](e){this[Or].shift(),this[Tr]-=1,this[di]()}[ZR](e){if(!e.pending){if(e.entry){e===this[Ts]&&!e.piped&&this[Ju](e);return}if(e.stat||(this.statCache.has(e.absolute)?this[Yu](e,this.statCache.get(e.absolute)):this[ig](e)),!!e.stat&&!e.ignore&&!(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir&&(this.readdirCache.has(e.absolute)?this[Zu](e,this.readdirCache.get(e.absolute)):this[sg](e),!e.readdir))){if(e.entry=this[XR](e),!e.entry){e.ignore=!0;return}e===this[Ts]&&!e.piped&&this[Ju](e)}}}[tg](e){return{onwarn:(r,n,i)=>this.warn(r,n,i),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[XR](e){this[Tr]+=1;try{return new this[og](e.path,this[tg](e)).on("end",()=>this[eg](e)).on("error",r=>this.emit("error",r))}catch(r){this.emit("error",r)}}[rg](){this[Ts]&&this[Ts].entry&&this[Ts].entry.resume()}[Ju](e){e.piped=!0,e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ku](o+i)});let r=e.entry,n=this.zip;n?r.on("data",i=>{n.write(i)||r.pause()}):r.on("data",i=>{super.write(i)||r.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),ag=class extends ug{constructor(e){super(e),this[og]=bU}pause(){}resume(){}[ig](e){let r=this.follow?"statSync":"lstatSync";this[Yu](e,Qu[r](e.absolute))}[sg](e,r){this[Zu](e,Qu.readdirSync(e.absolute))}[Ju](e){let r=e.entry,n=this.zip;e.readdir&&e.readdir.forEach(i=>{let s=e.path,o=s==="./"?"":s.replace(/\/*$/,"/");this[Ku](o+i)}),n?r.on("data",i=>{n.write(i)}):r.on("data",i=>{super[eO](i)})}};ug.Sync=ag;tO.exports=ug});var Fs=y(la=>{"use strict";l();var SU=mm(),AU=require("events").EventEmitter,Rt=require("fs"),hg=Rt.writev;if(!hg){let t=process.binding("fs"),e=t.FSReqWrap||t.FSReqCallback;hg=(r,n,i,s)=>{let o=(c,u)=>s(c,u,n),a=new e;a.oncomplete=o,t.writeBuffers(r,n,i,a)}}var Ds=Symbol("_autoClose"),lr=Symbol("_close"),ua=Symbol("_ended"),be=Symbol("_fd"),rO=Symbol("_finished"),Ln=Symbol("_flags"),lg=Symbol("_flush"),dg=Symbol("_handleChunk"),pg=Symbol("_makeBuf"),sl=Symbol("_mode"),tl=Symbol("_needDrain"),Ls=Symbol("_onerror"),Ms=Symbol("_onopen"),fg=Symbol("_onread"),Ps=Symbol("_onwrite"),Nn=Symbol("_open"),en=Symbol("_path"),pi=Symbol("_pos"),kr=Symbol("_queue"),Is=Symbol("_read"),nO=Symbol("_readSize"),In=Symbol("_reading"),rl=Symbol("_remain"),iO=Symbol("_size"),nl=Symbol("_write"),ks=Symbol("_writing"),il=Symbol("_defaultFlag"),Ns=Symbol("_errored"),ol=class extends SU{constructor(e,r){if(r=r||{},super(r),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[Ns]=!1,this[be]=typeof r.fd=="number"?r.fd:null,this[en]=e,this[nO]=r.readSize||16*1024*1024,this[In]=!1,this[iO]=typeof r.size=="number"?r.size:1/0,this[rl]=this[iO],this[Ds]=typeof r.autoClose=="boolean"?r.autoClose:!0,typeof this[be]=="number"?this[Is]():this[Nn]()}get fd(){return this[be]}get path(){return this[en]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Nn](){Rt.open(this[en],"r",(e,r)=>this[Ms](e,r))}[Ms](e,r){e?this[Ls](e):(this[be]=r,this.emit("open",r),this[Is]())}[pg](){return Buffer.allocUnsafe(Math.min(this[nO],this[rl]))}[Is](){if(!this[In]){this[In]=!0;let e=this[pg]();if(e.length===0)return process.nextTick(()=>this[fg](null,0,e));Rt.read(this[be],e,0,e.length,null,(r,n,i)=>this[fg](r,n,i))}}[fg](e,r,n){this[In]=!1,e?this[Ls](e):this[dg](r,n)&&this[Is]()}[lr](){if(this[Ds]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Rt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}[Ls](e){this[In]=!0,this[lr](),this.emit("error",e)}[dg](e,r){let n=!1;return this[rl]-=e,e>0&&(n=super.write(e<r.length?r.slice(0,e):r)),(e===0||this[rl]<=0)&&(n=!1,this[lr](),super.end()),n}emit(e,r){switch(e){case"prefinish":case"finish":break;case"drain":typeof this[be]=="number"&&this[Is]();break;case"error":return this[Ns]?void 0:(this[Ns]=!0,super.emit(e,r));default:return super.emit(e,r)}}},mg=class extends ol{[Nn](){let e=!0;try{this[Ms](null,Rt.openSync(this[en],"r")),e=!1}finally{e&&this[lr]()}}[Is](){let e=!0;try{if(!this[In]){this[In]=!0;do{let r=this[pg](),n=r.length===0?0:Rt.readSync(this[be],r,0,r.length,null);if(!this[dg](n,r))break}while(!0);this[In]=!1}e=!1}finally{e&&this[lr]()}}[lr](){if(this[Ds]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Rt.closeSync(e),this.emit("close")}}},al=class extends AU{constructor(e,r){r=r||{},super(r),this.readable=!1,this.writable=!0,this[Ns]=!1,this[ks]=!1,this[ua]=!1,this[tl]=!1,this[kr]=[],this[en]=e,this[be]=typeof r.fd=="number"?r.fd:null,this[sl]=r.mode===void 0?438:r.mode,this[pi]=typeof r.start=="number"?r.start:null,this[Ds]=typeof r.autoClose=="boolean"?r.autoClose:!0;let n=this[pi]!==null?"r+":"w";this[il]=r.flags===void 0,this[Ln]=this[il]?n:r.flags,this[be]===null&&this[Nn]()}emit(e,r){if(e==="error"){if(this[Ns])return;this[Ns]=!0}return super.emit(e,r)}get fd(){return this[be]}get path(){return this[en]}[Ls](e){this[lr](),this[ks]=!0,this.emit("error",e)}[Nn](){Rt.open(this[en],this[Ln],this[sl],(e,r)=>this[Ms](e,r))}[Ms](e,r){this[il]&&this[Ln]==="r+"&&e&&e.code==="ENOENT"?(this[Ln]="w",this[Nn]()):e?this[Ls](e):(this[be]=r,this.emit("open",r),this[lg]())}end(e,r){return e&&this.write(e,r),this[ua]=!0,!this[ks]&&!this[kr].length&&typeof this[be]=="number"&&this[Ps](null,0),this}write(e,r){return typeof e=="string"&&(e=Buffer.from(e,r)),this[ua]?(this.emit("error",new Error("write() after end()")),!1):this[be]===null||this[ks]||this[kr].length?(this[kr].push(e),this[tl]=!0,!1):(this[ks]=!0,this[nl](e),!0)}[nl](e){Rt.write(this[be],e,0,e.length,this[pi],(r,n)=>this[Ps](r,n))}[Ps](e,r){e?this[Ls](e):(this[pi]!==null&&(this[pi]+=r),this[kr].length?this[lg]():(this[ks]=!1,this[ua]&&!this[rO]?(this[rO]=!0,this[lr](),this.emit("finish")):this[tl]&&(this[tl]=!1,this.emit("drain"))))}[lg](){if(this[kr].length===0)this[ua]&&this[Ps](null,0);else if(this[kr].length===1)this[nl](this[kr].pop());else{let e=this[kr];this[kr]=[],hg(this[be],e,this[pi],(r,n)=>this[Ps](r,n))}}[lr](){if(this[Ds]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Rt.close(e,r=>r?this.emit("error",r):this.emit("close"))}}},gg=class extends al{[Nn](){let e;if(this[il]&&this[Ln]==="r+")try{e=Rt.openSync(this[en],this[Ln],this[sl])}catch(r){if(r.code==="ENOENT")return this[Ln]="w",this[Nn]();throw r}else e=Rt.openSync(this[en],this[Ln],this[sl]);this[Ms](null,e)}[lr](){if(this[Ds]&&typeof this[be]=="number"){let e=this[be];this[be]=null,Rt.closeSync(e),this.emit("close")}}[nl](e){let r=!0;try{this[Ps](null,Rt.writeSync(this[be],e,0,e.length,this[pi])),r=!1}finally{if(r)try{this[lr]()}catch{}}}};la.ReadStream=ol;la.ReadStreamSync=mg;la.WriteStream=al;la.WriteStreamSync=gg});var pl=y((EJ,hO)=>{"use strict";l();var CU=ju(),RU=Rs(),OU=require("events"),TU=Qm(),kU=1024*1024,PU=Fu(),sO=Bu(),IU=Pm(),{nextTick:LU}=require("process"),yg=Buffer.from([31,139]),Kt=Symbol("state"),mi=Symbol("writeEntry"),tn=Symbol("readEntry"),_g=Symbol("nextEntry"),oO=Symbol("processEntry"),Zt=Symbol("extendedHeader"),fa=Symbol("globalExtendedHeader"),Dn=Symbol("meta"),aO=Symbol("emitMeta"),Ce=Symbol("buffer"),rn=Symbol("queue"),gi=Symbol("ended"),cO=Symbol("emittedEnd"),yi=Symbol("emit"),Ot=Symbol("unzip"),cl=Symbol("consumeChunk"),ul=Symbol("consumeChunkSub"),vg=Symbol("consumeBody"),uO=Symbol("consumeMeta"),lO=Symbol("consumeHeader"),ll=Symbol("consuming"),bg=Symbol("bufferConcat"),Eg=Symbol("maybeEnd"),ha=Symbol("writing"),Mn=Symbol("aborted"),fl=Symbol("onDone"),_i=Symbol("sawValidEntry"),hl=Symbol("sawNullBlock"),dl=Symbol("sawEOF"),fO=Symbol("closeStream"),NU=t=>!0;hO.exports=CU(class extends OU{constructor(e){e=e||{},super(e),this.file=e.file||"",this[_i]=null,this.on(fl,r=>{(this[Kt]==="begin"||this[_i]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(fl,e.ondone):this.on(fl,r=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||kU,this.filter=typeof e.filter=="function"?e.filter:NU,this.writable=!0,this.readable=!1,this[rn]=new TU,this[Ce]=null,this[tn]=null,this[mi]=null,this[Kt]="begin",this[Dn]="",this[Zt]=null,this[fa]=null,this[gi]=!1,this[Ot]=null,this[Mn]=!1,this[hl]=!1,this[dl]=!1,this.on("end",()=>this[fO]()),typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[lO](e,r){this[_i]===null&&(this[_i]=!1);let n;try{n=new RU(e,r,this[Zt],this[fa])}catch(i){return this.warn("TAR_ENTRY_INVALID",i)}if(n.nullBlock)this[hl]?(this[dl]=!0,this[Kt]==="begin"&&(this[Kt]="header"),this[yi]("eof")):(this[hl]=!0,this[yi]("nullBlock"));else if(this[hl]=!1,!n.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:n});else if(!n.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:n});else{let i=n.type;if(/^(Symbolic)?Link$/.test(i)&&!n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:n});else if(!/^(Symbolic)?Link$/.test(i)&&n.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:n});else{let s=this[mi]=new PU(n,this[Zt],this[fa]);if(!this[_i])if(s.remain){let o=()=>{s.invalid||(this[_i]=!0)};s.on("end",o)}else this[_i]=!0;s.meta?s.size>this.maxMetaEntrySize?(s.ignore=!0,this[yi]("ignoredEntry",s),this[Kt]="ignore",s.resume()):s.size>0&&(this[Dn]="",s.on("data",o=>this[Dn]+=o),this[Kt]="meta"):(this[Zt]=null,s.ignore=s.ignore||!this.filter(s.path,s),s.ignore?(this[yi]("ignoredEntry",s),this[Kt]=s.remain?"ignore":"header",s.resume()):(s.remain?this[Kt]="body":(this[Kt]="header",s.end()),this[tn]?this[rn].push(s):(this[rn].push(s),this[_g]())))}}}[fO](){LU(()=>this.emit("close"))}[oO](e){let r=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[tn]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",n=>this[_g]()),r=!1)):(this[tn]=null,r=!1),r}[_g](){do;while(this[oO](this[rn].shift()));if(!this[rn].length){let e=this[tn];!e||e.flowing||e.size===e.remain?this[ha]||this.emit("drain"):e.once("drain",n=>this.emit("drain"))}}[vg](e,r){let n=this[mi],i=n.blockRemain,s=i>=e.length&&r===0?e:e.slice(r,r+i);return n.write(s),n.blockRemain||(this[Kt]="header",this[mi]=null,n.end()),s.length}[uO](e,r){let n=this[mi],i=this[vg](e,r);return this[mi]||this[aO](n),i}[yi](e,r,n){!this[rn].length&&!this[tn]?this.emit(e,r,n):this[rn].push([e,r,n])}[aO](e){switch(this[yi]("meta",this[Dn]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[Zt]=sO.parse(this[Dn],this[Zt],!1);break;case"GlobalExtendedHeader":this[fa]=sO.parse(this[Dn],this[fa],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[Zt]=this[Zt]||Object.create(null),this[Zt].path=this[Dn].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[Zt]=this[Zt]||Object.create(null),this[Zt].linkpath=this[Dn].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[Mn]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[Mn])return;if(this[Ot]===null&&e){if(this[Ce]&&(e=Buffer.concat([this[Ce],e]),this[Ce]=null),e.length<yg.length)return this[Ce]=e,!0;for(let n=0;this[Ot]===null&&n<yg.length;n++)e[n]!==yg[n]&&(this[Ot]=!1);if(this[Ot]===null){let n=this[gi];this[gi]=!1,this[Ot]=new IU.Unzip,this[Ot].on("data",s=>this[cl](s)),this[Ot].on("error",s=>this.abort(s)),this[Ot].on("end",s=>{this[gi]=!0,this[cl]()}),this[ha]=!0;let i=this[Ot][n?"end":"write"](e);return this[ha]=!1,i}}this[ha]=!0,this[Ot]?this[Ot].write(e):this[cl](e),this[ha]=!1;let r=this[rn].length?!1:this[tn]?this[tn].flowing:!0;return!r&&!this[rn].length&&this[tn].once("drain",n=>this.emit("drain")),r}[bg](e){e&&!this[Mn]&&(this[Ce]=this[Ce]?Buffer.concat([this[Ce],e]):e)}[Eg](){if(this[gi]&&!this[cO]&&!this[Mn]&&!this[ll]){this[cO]=!0;let e=this[mi];if(e&&e.blockRemain){let r=this[Ce]?this[Ce].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${r} available)`,{entry:e}),this[Ce]&&e.write(this[Ce]),e.end()}this[yi](fl)}}[cl](e){if(this[ll])this[bg](e);else if(!e&&!this[Ce])this[Eg]();else{if(this[ll]=!0,this[Ce]){this[bg](e);let r=this[Ce];this[Ce]=null,this[ul](r)}else this[ul](e);for(;this[Ce]&&this[Ce].length>=512&&!this[Mn]&&!this[dl];){let r=this[Ce];this[Ce]=null,this[ul](r)}this[ll]=!1}(!this[Ce]||this[gi])&&this[Eg]()}[ul](e){let r=0,n=e.length;for(;r+512<=n&&!this[Mn]&&!this[dl];)switch(this[Kt]){case"begin":case"header":this[lO](e,r),r+=512;break;case"ignore":case"body":r+=this[vg](e,r);break;case"meta":r+=this[uO](e,r);break;default:throw new Error("invalid state: "+this[Kt])}r<n&&(this[Ce]?this[Ce]=Buffer.concat([e.slice(r),this[Ce]]):this[Ce]=e.slice(r))}end(e){this[Mn]||(this[Ot]?this[Ot].end(e):(this[gi]=!0,this.write(e)))}})});var ml=y((wJ,gO)=>{"use strict";l();var DU=bs(),pO=pl(),qs=require("fs"),MU=Fs(),dO=require("path"),wg=Os();gO.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=DU(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&qU(n,e),n.noResume||FU(n),n.file&&n.sync?BU(n):n.file?jU(n,r):mO(n)};var FU=t=>{let e=t.onentry;t.onentry=e?r=>{e(r),r.resume()}:r=>r.resume()},qU=(t,e)=>{let r=new Map(e.map(s=>[wg(s),!0])),n=t.filter,i=(s,o)=>{let a=o||dO.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):i(dO.dirname(s),a);return r.set(s,c),c};t.filter=n?(s,o)=>n(s,o)&&i(wg(s)):s=>i(wg(s))},BU=t=>{let e=mO(t),r=t.file,n=!0,i;try{let s=qs.statSync(r),o=t.maxReadSize||16*1024*1024;if(s.size<o)e.end(qs.readFileSync(r));else{let a=0,c=Buffer.allocUnsafe(o);for(i=qs.openSync(r,"r");a<s.size;){let u=qs.readSync(i,c,0,o,a);a+=u,e.write(c.slice(0,u))}e.end()}n=!1}finally{if(n&&i)try{qs.closeSync(i)}catch{}}},jU=(t,e)=>{let r=new pO(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("end",o),qs.stat(i,(c,u)=>{if(c)a(c);else{let f=new MU.ReadStream(i,{readSize:n,size:u.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},mO=t=>new pO(t)});var wO=y((xJ,EO)=>{"use strict";l();var HU=bs(),gl=el(),yO=Fs(),_O=ml(),vO=require("path");EO.exports=(t,e,r)=>{if(typeof e=="function"&&(r=e),Array.isArray(t)&&(e=t,t={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let n=HU(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?$U(n,e):n.file?UU(n,e,r):n.sync?GU(n,e):VU(n,e)};var $U=(t,e)=>{let r=new gl.Sync(t),n=new yO.WriteStreamSync(t.file,{mode:t.mode||438});r.pipe(n),bO(r,e)},UU=(t,e,r)=>{let n=new gl(t),i=new yO.WriteStream(t.file,{mode:t.mode||438});n.pipe(i);let s=new Promise((o,a)=>{i.on("error",a),i.on("close",o),n.on("error",a)});return xg(n,e),r?s.then(r,r):s},bO=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?_O({file:vO.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},xg=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return _O({file:vO.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>xg(t,e));t.add(r)}t.end()},GU=(t,e)=>{let r=new gl.Sync(t);return bO(r,e),r},VU=(t,e)=>{let r=new gl(t);return xg(r,e),r}});var Sg=y((SJ,TO)=>{"use strict";l();var WU=bs(),xO=el(),Mt=require("fs"),SO=Fs(),AO=ml(),CO=require("path"),RO=Rs();TO.exports=(t,e,r)=>{let n=WU(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),n.sync?zU(n,e):KU(n,e,r)};var zU=(t,e)=>{let r=new xO.Sync(t),n=!0,i,s;try{try{i=Mt.openSync(t.file,"r+")}catch(c){if(c.code==="ENOENT")i=Mt.openSync(t.file,"w+");else throw c}let o=Mt.fstatSync(i),a=Buffer.alloc(512);e:for(s=0;s<o.size;s+=512){for(let f=0,h=0;f<512;f+=h){if(h=Mt.readSync(i,a,f,a.length-f,s+f),s===0&&a[0]===31&&a[1]===139)throw new Error("cannot append to compressed archives");if(!h)break e}let c=new RO(a);if(!c.cksumValid)break;let u=512*Math.ceil(c.size/512);if(s+u+512>o.size)break;s+=u,t.mtimeCache&&t.mtimeCache.set(c.path,c.mtime)}n=!1,YU(t,r,s,i,e)}finally{if(n)try{Mt.closeSync(i)}catch{}}},YU=(t,e,r,n,i)=>{let s=new SO.WriteStreamSync(t.file,{fd:n,start:r});e.pipe(s),ZU(e,i)},KU=(t,e,r)=>{e=Array.from(e);let n=new xO(t),i=(o,a,c)=>{let u=(g,E)=>{g?Mt.close(o,v=>c(g)):c(null,E)},f=0;if(a===0)return u(null,0);let h=0,d=Buffer.alloc(512),m=(g,E)=>{if(g)return u(g);if(h+=E,h<512&&E)return Mt.read(o,d,h,d.length-h,f+h,m);if(f===0&&d[0]===31&&d[1]===139)return u(new Error("cannot append to compressed archives"));if(h<512)return u(null,f);let v=new RO(d);if(!v.cksumValid)return u(null,f);let A=512*Math.ceil(v.size/512);if(f+A+512>a||(f+=A+512,f>=a))return u(null,f);t.mtimeCache&&t.mtimeCache.set(v.path,v.mtime),h=0,Mt.read(o,d,0,512,f,m)};Mt.read(o,d,0,512,f,m)},s=new Promise((o,a)=>{n.on("error",a);let c="r+",u=(f,h)=>{if(f&&f.code==="ENOENT"&&c==="r+")return c="w+",Mt.open(t.file,c,u);if(f)return a(f);Mt.fstat(h,(d,m)=>{if(d)return Mt.close(h,()=>a(d));i(h,m.size,(g,E)=>{if(g)return a(g);let v=new SO.WriteStream(t.file,{fd:h,start:E});n.pipe(v),v.on("error",a),v.on("close",o),OO(n,e)})})};Mt.open(t.file,c,u)});return r?s.then(r,r):s},ZU=(t,e)=>{e.forEach(r=>{r.charAt(0)==="@"?AO({file:CO.resolve(t.cwd,r.slice(1)),sync:!0,noResume:!0,onentry:n=>t.add(n)}):t.add(r)}),t.end()},OO=(t,e)=>{for(;e.length;){let r=e.shift();if(r.charAt(0)==="@")return AO({file:CO.resolve(t.cwd,r.slice(1)),noResume:!0,onentry:n=>t.add(n)}).then(n=>OO(t,e));t.add(r)}t.end()}});var PO=y((AJ,kO)=>{"use strict";l();var JU=bs(),XU=Sg();kO.exports=(t,e,r)=>{let n=JU(t);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),QU(n),XU(n,e,r)};var QU=t=>{let e=t.filter;t.mtimeCache||(t.mtimeCache=new Map),t.filter=e?(r,n)=>e(r,n)&&!(t.mtimeCache.get(r)>n.mtime):(r,n)=>!(t.mtimeCache.get(r)>n.mtime)}});var NO=y((CJ,LO)=>{l();var{promisify:IO}=require("util"),Fn=require("fs"),e4=t=>{if(!t)t={mode:511,fs:Fn};else if(typeof t=="object")t={mode:511,fs:Fn,...t};else if(typeof t=="number")t={mode:t,fs:Fn};else if(typeof t=="string")t={mode:parseInt(t,8),fs:Fn};else throw new TypeError("invalid options argument");return t.mkdir=t.mkdir||t.fs.mkdir||Fn.mkdir,t.mkdirAsync=IO(t.mkdir),t.stat=t.stat||t.fs.stat||Fn.stat,t.statAsync=IO(t.stat),t.statSync=t.statSync||t.fs.statSync||Fn.statSync,t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||Fn.mkdirSync,t};LO.exports=e4});var MO=y((RJ,DO)=>{l();var t4=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:r4,parse:n4}=require("path"),i4=t=>{if(/\0/.test(t))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"});if(t=r4(t),t4==="win32"){let e=/[*|"<>?:]/,{root:r}=n4(t);if(e.test(t.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}return t};DO.exports=i4});var HO=y((OJ,jO)=>{l();var{dirname:FO}=require("path"),qO=(t,e,r=void 0)=>r===e?Promise.resolve():t.statAsync(e).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?qO(t,FO(e),e):void 0),BO=(t,e,r=void 0)=>{if(r!==e)try{return t.statSync(e).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?BO(t,FO(e),e):void 0}};jO.exports={findMade:qO,findMadeSync:BO}});var Rg=y((TJ,UO)=>{l();var{dirname:$O}=require("path"),Ag=(t,e,r)=>{e.recursive=!1;let n=$O(t);return n===t?e.mkdirAsync(t,e).catch(i=>{if(i.code!=="EISDIR")throw i}):e.mkdirAsync(t,e).then(()=>r||t,i=>{if(i.code==="ENOENT")return Ag(n,e).then(s=>Ag(t,e,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return e.statAsync(t).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},Cg=(t,e,r)=>{let n=$O(t);if(e.recursive=!1,n===t)try{return e.mkdirSync(t,e)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return e.mkdirSync(t,e),r||t}catch(i){if(i.code==="ENOENT")return Cg(t,e,Cg(n,e,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!e.statSync(t).isDirectory())throw i}catch{throw i}}};UO.exports={mkdirpManual:Ag,mkdirpManualSync:Cg}});var WO=y((kJ,VO)=>{l();var{dirname:GO}=require("path"),{findMade:s4,findMadeSync:o4}=HO(),{mkdirpManual:a4,mkdirpManualSync:c4}=Rg(),u4=(t,e)=>(e.recursive=!0,GO(t)===t?e.mkdirAsync(t,e):s4(e,t).then(n=>e.mkdirAsync(t,e).then(()=>n).catch(i=>{if(i.code==="ENOENT")return a4(t,e);throw i}))),l4=(t,e)=>{if(e.recursive=!0,GO(t)===t)return e.mkdirSync(t,e);let n=o4(e,t);try{return e.mkdirSync(t,e),n}catch(i){if(i.code==="ENOENT")return c4(t,e);throw i}};VO.exports={mkdirpNative:u4,mkdirpNativeSync:l4}});var ZO=y((PJ,KO)=>{l();var zO=require("fs"),f4=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,Og=f4.replace(/^v/,"").split("."),YO=+Og[0]>10||+Og[0]==10&&+Og[1]>=12,h4=YO?t=>t.mkdir===zO.mkdir:()=>!1,d4=YO?t=>t.mkdirSync===zO.mkdirSync:()=>!1;KO.exports={useNative:h4,useNativeSync:d4}});var rT=y((IJ,tT)=>{l();var Bs=NO(),js=MO(),{mkdirpNative:JO,mkdirpNativeSync:XO}=WO(),{mkdirpManual:QO,mkdirpManualSync:eT}=Rg(),{useNative:p4,useNativeSync:m4}=ZO(),Hs=(t,e)=>(t=js(t),e=Bs(e),p4(e)?JO(t,e):QO(t,e)),g4=(t,e)=>(t=js(t),e=Bs(e),m4(e)?XO(t,e):eT(t,e));Hs.sync=g4;Hs.native=(t,e)=>JO(js(t),Bs(e));Hs.manual=(t,e)=>QO(js(t),Bs(e));Hs.nativeSync=(t,e)=>XO(js(t),Bs(e));Hs.manualSync=(t,e)=>eT(js(t),Bs(e));tT.exports=Hs});var uT=y((LJ,cT)=>{"use strict";l();var Jt=require("fs"),vi=require("path"),y4=Jt.lchown?"lchown":"chown",_4=Jt.lchownSync?"lchownSync":"chownSync",iT=Jt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),nT=(t,e,r)=>{try{return Jt[_4](t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},v4=(t,e,r)=>{try{return Jt.chownSync(t,e,r)}catch(n){if(n.code!=="ENOENT")throw n}},b4=iT?(t,e,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):Jt.chown(t,e,r,n)}:(t,e,r,n)=>n,Tg=iT?(t,e,r)=>{try{return nT(t,e,r)}catch(n){if(n.code!=="EISDIR")throw n;v4(t,e,r)}}:(t,e,r)=>nT(t,e,r),E4=process.version,sT=(t,e,r)=>Jt.readdir(t,e,r),w4=(t,e)=>Jt.readdirSync(t,e);/^v4\./.test(E4)&&(sT=(t,e,r)=>Jt.readdir(t,r));var yl=(t,e,r,n)=>{Jt[y4](t,e,r,b4(t,e,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},oT=(t,e,r,n,i)=>{if(typeof e=="string")return Jt.lstat(vi.resolve(t,e),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=e,oT(t,o,r,n,i)});if(e.isDirectory())kg(vi.resolve(t,e.name),r,n,s=>{if(s)return i(s);let o=vi.resolve(t,e.name);yl(o,r,n,i)});else{let s=vi.resolve(t,e.name);yl(s,r,n,i)}},kg=(t,e,r,n)=>{sT(t,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return yl(t,e,r,n);let o=s.length,a=null,c=u=>{if(!a){if(u)return n(a=u);if(--o===0)return yl(t,e,r,n)}};s.forEach(u=>oT(t,u,e,r,c))})},x4=(t,e,r,n)=>{if(typeof e=="string")try{let i=Jt.lstatSync(vi.resolve(t,e));i.name=e,e=i}catch(i){if(i.code==="ENOENT")return;throw i}e.isDirectory()&&aT(vi.resolve(t,e.name),r,n),Tg(vi.resolve(t,e.name),r,n)},aT=(t,e,r)=>{let n;try{n=w4(t,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return Tg(t,e,r);throw i}return n&&n.length&&n.forEach(i=>x4(t,i,e,r)),Tg(t,e,r)};cT.exports=kg;kg.sync=aT});var dT=y((NJ,Pg)=>{"use strict";l();var lT=rT(),Xt=require("fs"),_l=require("path"),fT=uT(),fr=As(),vl=class extends Error{constructor(e,r){super("Cannot extract through symbolic link"),this.path=r,this.symlink=e}get name(){return"SylinkError"}},bl=class extends Error{constructor(e,r){super(r+": Cannot cd into '"+e+"'"),this.path=e,this.code=r}get name(){return"CwdError"}},El=(t,e)=>t.get(fr(e)),da=(t,e,r)=>t.set(fr(e),r),S4=(t,e)=>{Xt.stat(t,(r,n)=>{(r||!n.isDirectory())&&(r=new bl(t,r&&r.code||"ENOTDIR")),e(r)})};Pg.exports=(t,e,r)=>{t=fr(t);let n=e.umask,i=e.mode|448,s=(i&n)!==0,o=e.uid,a=e.gid,c=typeof o=="number"&&typeof a=="number"&&(o!==e.processUid||a!==e.processGid),u=e.preserve,f=e.unlink,h=e.cache,d=fr(e.cwd),m=(v,A)=>{v?r(v):(da(h,t,!0),A&&c?fT(A,o,a,P=>m(P)):s?Xt.chmod(t,i,r):r())};if(h&&El(h,t)===!0)return m();if(t===d)return S4(t,m);if(u)return lT(t,{mode:i}).then(v=>m(null,v),m);let E=fr(_l.relative(d,t)).split("/");wl(d,E,i,h,f,d,null,m)};var wl=(t,e,r,n,i,s,o,a)=>{if(!e.length)return a(null,o);let c=e.shift(),u=fr(_l.resolve(t+"/"+c));if(El(n,u))return wl(u,e,r,n,i,s,o,a);Xt.mkdir(u,r,hT(u,e,r,n,i,s,o,a))},hT=(t,e,r,n,i,s,o,a)=>c=>{c?Xt.lstat(t,(u,f)=>{if(u)u.path=u.path&&fr(u.path),a(u);else if(f.isDirectory())wl(t,e,r,n,i,s,o,a);else if(i)Xt.unlink(t,h=>{if(h)return a(h);Xt.mkdir(t,r,hT(t,e,r,n,i,s,o,a))});else{if(f.isSymbolicLink())return a(new vl(t,t+"/"+e.join("/")));a(c)}}):(o=o||t,wl(t,e,r,n,i,s,o,a))},A4=t=>{let e=!1,r="ENOTDIR";try{e=Xt.statSync(t).isDirectory()}catch(n){r=n.code}finally{if(!e)throw new bl(t,r)}};Pg.exports.sync=(t,e)=>{t=fr(t);let r=e.umask,n=e.mode|448,i=(n&r)!==0,s=e.uid,o=e.gid,a=typeof s=="number"&&typeof o=="number"&&(s!==e.processUid||o!==e.processGid),c=e.preserve,u=e.unlink,f=e.cache,h=fr(e.cwd),d=v=>{da(f,t,!0),v&&a&&fT.sync(v,s,o),i&&Xt.chmodSync(t,n)};if(f&&El(f,t)===!0)return d();if(t===h)return A4(h),d();if(c)return d(lT.sync(t,n));let g=fr(_l.relative(h,t)).split("/"),E=null;for(let v=g.shift(),A=h;v&&(A+="/"+v);v=g.shift())if(A=fr(_l.resolve(A)),!El(f,A))try{Xt.mkdirSync(A,n),E=E||A,da(f,A,!0)}catch{let B=Xt.lstatSync(A);if(B.isDirectory()){da(f,A,!0);continue}else if(u){Xt.unlinkSync(A),Xt.mkdirSync(A,n),E=E||A,da(f,A,!0);continue}else if(B.isSymbolicLink())return new vl(A,A+"/"+g.join("/"))}return d(E)}});var Lg=y((DJ,pT)=>{l();var Ig=Object.create(null),{hasOwnProperty:C4}=Object.prototype;pT.exports=t=>(C4.call(Ig,t)||(Ig[t]=t.normalize("NFKD")),Ig[t])});var _T=y((MJ,yT)=>{l();var mT=require("assert"),R4=Lg(),O4=Os(),{join:gT}=require("path"),T4=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,k4=T4==="win32";yT.exports=()=>{let t=new Map,e=new Map,r=u=>u.split("/").slice(0,-1).reduce((h,d)=>(h.length&&(d=gT(h[h.length-1],d)),h.push(d||"/"),h),[]),n=new Set,i=u=>{let f=e.get(u);if(!f)throw new Error("function does not have any path reservations");return{paths:f.paths.map(h=>t.get(h)),dirs:[...f.dirs].map(h=>t.get(h))}},s=u=>{let{paths:f,dirs:h}=i(u);return f.every(d=>d[0]===u)&&h.every(d=>d[0]instanceof Set&&d[0].has(u))},o=u=>n.has(u)||!s(u)?!1:(n.add(u),u(()=>a(u)),!0),a=u=>{if(!n.has(u))return!1;let{paths:f,dirs:h}=e.get(u),d=new Set;return f.forEach(m=>{let g=t.get(m);mT.equal(g[0],u),g.length===1?t.delete(m):(g.shift(),typeof g[0]=="function"?d.add(g[0]):g[0].forEach(E=>d.add(E)))}),h.forEach(m=>{let g=t.get(m);mT(g[0]instanceof Set),g[0].size===1&&g.length===1?t.delete(m):g[0].size===1?(g.shift(),d.add(g[0])):g[0].delete(u)}),n.delete(u),d.forEach(m=>o(m)),!0};return{check:s,reserve:(u,f)=>{u=k4?["win32 parallelization disabled"]:u.map(d=>R4(O4(gT(d))).toLowerCase());let h=new Set(u.map(d=>r(d)).reduce((d,m)=>d.concat(m)));return e.set(f,{dirs:h,paths:u}),u.forEach(d=>{let m=t.get(d);m?m.push(f):t.set(d,[f])}),h.forEach(d=>{let m=t.get(d);m?m[m.length-1]instanceof Set?m[m.length-1].add(f):m.push(new Set([f])):t.set(d,[new Set([f])])}),o(f)}}}});var ET=y((FJ,bT)=>{l();var P4=process.env.__FAKE_PLATFORM__||process.platform,I4=P4==="win32",L4=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:N4,O_TRUNC:D4,O_WRONLY:M4,UV_FS_O_FILEMAP:vT=0}=L4.constants,F4=I4&&!!vT,q4=512*1024,B4=vT|D4|N4|M4;bT.exports=F4?t=>t<q4?B4:"w":()=>"w"});var $g=y((qJ,DT)=>{"use strict";l();var j4=require("assert"),H4=pl(),de=require("fs"),$4=Fs(),nn=require("path"),IT=dT(),wT=Hm(),U4=_T(),G4=$m(),Ft=As(),V4=Os(),W4=Lg(),xT=Symbol("onEntry"),Mg=Symbol("checkFs"),ST=Symbol("checkFs2"),Al=Symbol("pruneCache"),Fg=Symbol("isReusable"),Qt=Symbol("makeFs"),qg=Symbol("file"),Bg=Symbol("directory"),Cl=Symbol("link"),AT=Symbol("symlink"),CT=Symbol("hardlink"),RT=Symbol("unsupported"),OT=Symbol("checkPath"),qn=Symbol("mkdir"),ht=Symbol("onError"),xl=Symbol("pending"),TT=Symbol("pend"),$s=Symbol("unpend"),Ng=Symbol("ended"),Dg=Symbol("maybeClose"),jg=Symbol("skip"),pa=Symbol("doChown"),ma=Symbol("uid"),ga=Symbol("gid"),ya=Symbol("checkedCwd"),LT=require("crypto"),NT=ET(),z4=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,_a=z4==="win32",Y4=(t,e)=>{if(!_a)return de.unlink(t,e);let r=t+".DELETE."+LT.randomBytes(16).toString("hex");de.rename(t,r,n=>{if(n)return e(n);de.unlink(r,e)})},K4=t=>{if(!_a)return de.unlinkSync(t);let e=t+".DELETE."+LT.randomBytes(16).toString("hex");de.renameSync(t,e),de.unlinkSync(e)},kT=(t,e,r)=>t===t>>>0?t:e===e>>>0?e:r,PT=t=>W4(V4(Ft(t))).toLowerCase(),Z4=(t,e)=>{e=PT(e);for(let r of t.keys()){let n=PT(r);(n===e||n.indexOf(e+"/")===0)&&t.delete(r)}},J4=t=>{for(let e of t.keys())t.delete(e)},va=class extends H4{constructor(e){if(e||(e={}),e.ondone=r=>{this[Ng]=!0,this[Dg]()},super(e),this[ya]=!1,this.reservations=U4(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[xl]=0,this[Ng]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||_a,this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=Ft(nn.resolve(e.cwd||process.cwd())),this.strip=+e.strip||0,this.processUmask=e.noChmod?0:process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",r=>this[xT](r))}warn(e,r,n={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(n.recoverable=!1),super.warn(e,r,n)}[Dg](){this[Ng]&&this[xl]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[OT](e){if(this.strip){let r=Ft(e.path).split("/");if(r.length<this.strip)return!1;if(e.path=r.slice(this.strip).join("/"),e.type==="Link"){let n=Ft(e.linkpath).split("/");if(n.length>=this.strip)e.linkpath=n.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let r=Ft(e.path),n=r.split("/");if(n.includes("..")||_a&&/^[a-z]:\.\.$/i.test(n[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:r}),!1;let[i,s]=G4(r);i&&(e.path=s,this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:e,path:r}))}if(nn.isAbsolute(e.path)?e.absolute=Ft(nn.resolve(e.path)):e.absolute=Ft(nn.resolve(this.cwd,e.path)),!this.preservePaths&&e.absolute.indexOf(this.cwd+"/")!==0&&e.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:e,path:Ft(e.path),resolvedPath:e.absolute,cwd:this.cwd}),!1;if(e.absolute===this.cwd&&e.type!=="Directory"&&e.type!=="GNUDumpDir")return!1;if(this.win32){let{root:r}=nn.win32.parse(e.absolute);e.absolute=r+wT.encode(e.absolute.slice(r.length));let{root:n}=nn.win32.parse(e.path);e.path=n+wT.encode(e.path.slice(n.length))}return!0}[xT](e){if(!this[OT](e))return e.resume();switch(j4.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[Mg](e);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[RT](e)}}[ht](e,r){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:r}),this[$s](),r.resume())}[qn](e,r,n){IT(Ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},n)}[pa](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[ma](e){return kT(this.uid,e.uid,this.processUid)}[ga](e){return kT(this.gid,e.gid,this.processGid)}[qg](e,r){let n=e.mode&4095||this.fmode,i=new $4.WriteStream(e.absolute,{flags:NT(e.size),mode:n,autoClose:!1});i.on("error",c=>{i.fd&&de.close(i.fd,()=>{}),i.write=()=>!0,this[ht](c,e),r()});let s=1,o=c=>{if(c){i.fd&&de.close(i.fd,()=>{}),this[ht](c,e),r();return}--s===0&&de.close(i.fd,u=>{u?this[ht](u,e):this[$s](),r()})};i.on("finish",c=>{let u=e.absolute,f=i.fd;if(e.mtime&&!this.noMtime){s++;let h=e.atime||new Date,d=e.mtime;de.futimes(f,h,d,m=>m?de.utimes(u,h,d,g=>o(g&&m)):o())}if(this[pa](e)){s++;let h=this[ma](e),d=this[ga](e);de.fchown(f,h,d,m=>m?de.chown(u,h,d,g=>o(g&&m)):o())}o()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",c=>{this[ht](c,e),r()}),e.pipe(a)),a.pipe(i)}[Bg](e,r){let n=e.mode&4095||this.dmode;this[qn](e.absolute,n,i=>{if(i){this[ht](i,e),r();return}let s=1,o=a=>{--s===0&&(r(),this[$s](),e.resume())};e.mtime&&!this.noMtime&&(s++,de.utimes(e.absolute,e.atime||new Date,e.mtime,o)),this[pa](e)&&(s++,de.chown(e.absolute,this[ma](e),this[ga](e),o)),o()})}[RT](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[AT](e,r){this[Cl](e,e.linkpath,"symlink",r)}[CT](e,r){let n=Ft(nn.resolve(this.cwd,e.linkpath));this[Cl](e,n,"link",r)}[TT](){this[xl]++}[$s](){this[xl]--,this[Dg]()}[jg](e){this[$s](),e.resume()}[Fg](e,r){return e.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!_a}[Mg](e){this[TT]();let r=[e.path];e.linkpath&&r.push(e.linkpath),this.reservations.reserve(r,n=>this[ST](e,n))}[Al](e){e.type==="SymbolicLink"?J4(this.dirCache):e.type!=="Directory"&&Z4(this.dirCache,e.absolute)}[ST](e,r){this[Al](e);let n=a=>{this[Al](e),r(a)},i=()=>{this[qn](this.cwd,this.dmode,a=>{if(a){this[ht](a,e),n();return}this[ya]=!0,s()})},s=()=>{if(e.absolute!==this.cwd){let a=Ft(nn.dirname(e.absolute));if(a!==this.cwd)return this[qn](a,this.dmode,c=>{if(c){this[ht](c,e),n();return}o()})}o()},o=()=>{de.lstat(e.absolute,(a,c)=>{if(c&&(this.keep||this.newer&&c.mtime>e.mtime)){this[jg](e),n();return}if(a||this[Fg](e,c))return this[Qt](null,e,n);if(c.isDirectory()){if(e.type==="Directory"){let u=!this.noChmod&&e.mode&&(c.mode&4095)!==e.mode,f=h=>this[Qt](h,e,n);return u?de.chmod(e.absolute,e.mode,f):f()}if(e.absolute!==this.cwd)return de.rmdir(e.absolute,u=>this[Qt](u,e,n))}if(e.absolute===this.cwd)return this[Qt](null,e,n);Y4(e.absolute,u=>this[Qt](u,e,n))})};this[ya]?s():i()}[Qt](e,r,n){if(e){this[ht](e,r),n();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[qg](r,n);case"Link":return this[CT](r,n);case"SymbolicLink":return this[AT](r,n);case"Directory":case"GNUDumpDir":return this[Bg](r,n)}}[Cl](e,r,n,i){de[n](r,e.absolute,s=>{s?this[ht](s,e):(this[$s](),e.resume()),i()})}},Sl=t=>{try{return[null,t()]}catch(e){return[e,null]}},Hg=class extends va{[Qt](e,r){return super[Qt](e,r,()=>{})}[Mg](e){if(this[Al](e),!this[ya]){let s=this[qn](this.cwd,this.dmode);if(s)return this[ht](s,e);this[ya]=!0}if(e.absolute!==this.cwd){let s=Ft(nn.dirname(e.absolute));if(s!==this.cwd){let o=this[qn](s,this.dmode);if(o)return this[ht](o,e)}}let[r,n]=Sl(()=>de.lstatSync(e.absolute));if(n&&(this.keep||this.newer&&n.mtime>e.mtime))return this[jg](e);if(r||this[Fg](e,n))return this[Qt](null,e);if(n.isDirectory()){if(e.type==="Directory"){let o=!this.noChmod&&e.mode&&(n.mode&4095)!==e.mode,[a]=o?Sl(()=>{de.chmodSync(e.absolute,e.mode)}):[];return this[Qt](a,e)}let[s]=Sl(()=>de.rmdirSync(e.absolute));this[Qt](s,e)}let[i]=e.absolute===this.cwd?[]:Sl(()=>K4(e.absolute));this[Qt](i,e)}[qg](e,r){let n=e.mode&4095||this.fmode,i=a=>{let c;try{de.closeSync(s)}catch(u){c=u}(a||c)&&this[ht](a||c,e),r()},s;try{s=de.openSync(e.absolute,NT(e.size),n)}catch(a){return i(a)}let o=this.transform&&this.transform(e)||e;o!==e&&(o.on("error",a=>this[ht](a,e)),e.pipe(o)),o.on("data",a=>{try{de.writeSync(s,a,0,a.length)}catch(c){i(c)}}),o.on("end",a=>{let c=null;if(e.mtime&&!this.noMtime){let u=e.atime||new Date,f=e.mtime;try{de.futimesSync(s,u,f)}catch(h){try{de.utimesSync(e.absolute,u,f)}catch{c=h}}}if(this[pa](e)){let u=this[ma](e),f=this[ga](e);try{de.fchownSync(s,u,f)}catch(h){try{de.chownSync(e.absolute,u,f)}catch{c=c||h}}}i(c)})}[Bg](e,r){let n=e.mode&4095||this.dmode,i=this[qn](e.absolute,n);if(i){this[ht](i,e),r();return}if(e.mtime&&!this.noMtime)try{de.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch{}if(this[pa](e))try{de.chownSync(e.absolute,this[ma](e),this[ga](e))}catch{}r(),e.resume()}[qn](e,r){try{return IT.sync(Ft(e),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(n){return n}}[Cl](e,r,n,i){try{de[n+"Sync"](r,e.absolute),i(),e.resume()}catch(s){return this[ht](s,e)}}};va.Sync=Hg;DT.exports=va});var jT=y((BJ,BT)=>{"use strict";l();var X4=bs(),Rl=$g(),FT=require("fs"),qT=Fs(),MT=require("path"),Ug=Os();BT.exports=(t,e,r)=>{typeof t=="function"?(r=t,e=null,t={}):Array.isArray(t)&&(e=t,t={}),typeof e=="function"&&(r=e,e=null),e?e=Array.from(e):e=[];let n=X4(t);if(n.sync&&typeof r=="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r=="function")throw new TypeError("callback only supported with file option");return e.length&&Q4(n,e),n.file&&n.sync?e8(n):n.file?t8(n,r):n.sync?r8(n):n8(n)};var Q4=(t,e)=>{let r=new Map(e.map(s=>[Ug(s),!0])),n=t.filter,i=(s,o)=>{let a=o||MT.parse(s).root||".",c=s===a?!1:r.has(s)?r.get(s):i(MT.dirname(s),a);return r.set(s,c),c};t.filter=n?(s,o)=>n(s,o)&&i(Ug(s)):s=>i(Ug(s))},e8=t=>{let e=new Rl.Sync(t),r=t.file,n=FT.statSync(r),i=t.maxReadSize||16*1024*1024;new qT.ReadStreamSync(r,{readSize:i,size:n.size}).pipe(e)},t8=(t,e)=>{let r=new Rl(t),n=t.maxReadSize||16*1024*1024,i=t.file,s=new Promise((o,a)=>{r.on("error",a),r.on("close",o),FT.stat(i,(c,u)=>{if(c)a(c);else{let f=new qT.ReadStream(i,{readSize:n,size:u.size});f.on("error",a),f.pipe(r)}})});return e?s.then(e,e):s},r8=t=>new Rl.Sync(t),n8=t=>new Rl(t)});var HT=y(Ve=>{"use strict";l();Ve.c=Ve.create=wO();Ve.r=Ve.replace=Sg();Ve.t=Ve.list=ml();Ve.u=Ve.update=PO();Ve.x=Ve.extract=jT();Ve.Pack=el();Ve.Unpack=$g();Ve.Parse=pl();Ve.ReadEntry=Fu();Ve.WriteEntry=Xm();Ve.Header=Rs();Ve.Pax=Bu();Ve.types=Nm()});var on=y((sn,Ol)=>{"use strict";l();Object.defineProperty(sn,"__esModule",{value:!0});var $T=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function i8(t){return $T.includes(t)}var s8=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...$T];function o8(t){return s8.includes(t)}var a8=["null","undefined","string","number","bigint","boolean","symbol"];function c8(t){return a8.includes(t)}function Us(t){return e=>typeof e===t}var{toString:UT}=Object.prototype,ba=t=>{let e=UT.call(t).slice(8,-1);if(/HTML\w+Element/.test(e)&&w.domElement(t))return"HTMLElement";if(o8(e))return e},we=t=>e=>ba(e)===t;function w(t){if(t===null)return"null";switch(typeof t){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(w.observable(t))return"Observable";if(w.array(t))return"Array";if(w.buffer(t))return"Buffer";let e=ba(t);if(e)return e;if(t instanceof String||t instanceof Boolean||t instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}w.undefined=Us("undefined");w.string=Us("string");var u8=Us("number");w.number=t=>u8(t)&&!w.nan(t);w.bigint=Us("bigint");w.function_=Us("function");w.null_=t=>t===null;w.class_=t=>w.function_(t)&&t.toString().startsWith("class ");w.boolean=t=>t===!0||t===!1;w.symbol=Us("symbol");w.numericString=t=>w.string(t)&&!w.emptyStringOrWhitespace(t)&&!Number.isNaN(Number(t));w.array=(t,e)=>Array.isArray(t)?w.function_(e)?t.every(e):!0:!1;w.buffer=t=>{var e,r,n,i;return(i=(n=(r=(e=t)===null||e===void 0?void 0:e.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,t))!==null&&i!==void 0?i:!1};w.blob=t=>we("Blob")(t);w.nullOrUndefined=t=>w.null_(t)||w.undefined(t);w.object=t=>!w.null_(t)&&(typeof t=="object"||w.function_(t));w.iterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.iterator])};w.asyncIterable=t=>{var e;return w.function_((e=t)===null||e===void 0?void 0:e[Symbol.asyncIterator])};w.generator=t=>{var e,r;return w.iterable(t)&&w.function_((e=t)===null||e===void 0?void 0:e.next)&&w.function_((r=t)===null||r===void 0?void 0:r.throw)};w.asyncGenerator=t=>w.asyncIterable(t)&&w.function_(t.next)&&w.function_(t.throw);w.nativePromise=t=>we("Promise")(t);var l8=t=>{var e,r;return w.function_((e=t)===null||e===void 0?void 0:e.then)&&w.function_((r=t)===null||r===void 0?void 0:r.catch)};w.promise=t=>w.nativePromise(t)||l8(t);w.generatorFunction=we("GeneratorFunction");w.asyncGeneratorFunction=t=>ba(t)==="AsyncGeneratorFunction";w.asyncFunction=t=>ba(t)==="AsyncFunction";w.boundFunction=t=>w.function_(t)&&!t.hasOwnProperty("prototype");w.regExp=we("RegExp");w.date=we("Date");w.error=we("Error");w.map=t=>we("Map")(t);w.set=t=>we("Set")(t);w.weakMap=t=>we("WeakMap")(t);w.weakSet=t=>we("WeakSet")(t);w.int8Array=we("Int8Array");w.uint8Array=we("Uint8Array");w.uint8ClampedArray=we("Uint8ClampedArray");w.int16Array=we("Int16Array");w.uint16Array=we("Uint16Array");w.int32Array=we("Int32Array");w.uint32Array=we("Uint32Array");w.float32Array=we("Float32Array");w.float64Array=we("Float64Array");w.bigInt64Array=we("BigInt64Array");w.bigUint64Array=we("BigUint64Array");w.arrayBuffer=we("ArrayBuffer");w.sharedArrayBuffer=we("SharedArrayBuffer");w.dataView=we("DataView");w.enumCase=(t,e)=>Object.values(e).includes(t);w.directInstanceOf=(t,e)=>Object.getPrototypeOf(t)===e.prototype;w.urlInstance=t=>we("URL")(t);w.urlString=t=>{if(!w.string(t))return!1;try{return new URL(t),!0}catch{return!1}};w.truthy=t=>Boolean(t);w.falsy=t=>!t;w.nan=t=>Number.isNaN(t);w.primitive=t=>w.null_(t)||c8(typeof t);w.integer=t=>Number.isInteger(t);w.safeInteger=t=>Number.isSafeInteger(t);w.plainObject=t=>{if(UT.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.getPrototypeOf({})};w.typedArray=t=>i8(ba(t));var f8=t=>w.safeInteger(t)&&t>=0;w.arrayLike=t=>!w.nullOrUndefined(t)&&!w.function_(t)&&f8(t.length);w.inRange=(t,e)=>{if(w.number(e))return t>=Math.min(0,e)&&t<=Math.max(e,0);if(w.array(e)&&e.length===2)return t>=Math.min(...e)&&t<=Math.max(...e);throw new TypeError(`Invalid range: ${JSON.stringify(e)}`)};var h8=1,d8=["innerHTML","ownerDocument","style","attributes","nodeValue"];w.domElement=t=>w.object(t)&&t.nodeType===h8&&w.string(t.nodeName)&&!w.plainObject(t)&&d8.every(e=>e in t);w.observable=t=>{var e,r,n,i;return t?t===((r=(e=t)[Symbol.observable])===null||r===void 0?void 0:r.call(e))||t===((i=(n=t)["@@observable"])===null||i===void 0?void 0:i.call(n)):!1};w.nodeStream=t=>w.object(t)&&w.function_(t.pipe)&&!w.observable(t);w.infinite=t=>t===1/0||t===-1/0;var GT=t=>e=>w.integer(e)&&Math.abs(e%2)===t;w.evenInteger=GT(0);w.oddInteger=GT(1);w.emptyArray=t=>w.array(t)&&t.length===0;w.nonEmptyArray=t=>w.array(t)&&t.length>0;w.emptyString=t=>w.string(t)&&t.length===0;var p8=t=>w.string(t)&&!/\S/.test(t);w.emptyStringOrWhitespace=t=>w.emptyString(t)||p8(t);w.nonEmptyString=t=>w.string(t)&&t.length>0;w.nonEmptyStringAndNotWhitespace=t=>w.string(t)&&!w.emptyStringOrWhitespace(t);w.emptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length===0;w.nonEmptyObject=t=>w.object(t)&&!w.map(t)&&!w.set(t)&&Object.keys(t).length>0;w.emptySet=t=>w.set(t)&&t.size===0;w.nonEmptySet=t=>w.set(t)&&t.size>0;w.emptyMap=t=>w.map(t)&&t.size===0;w.nonEmptyMap=t=>w.map(t)&&t.size>0;w.propertyKey=t=>w.any([w.string,w.number,w.symbol],t);w.formData=t=>we("FormData")(t);w.urlSearchParams=t=>we("URLSearchParams")(t);var VT=(t,e,r)=>{if(!w.function_(e))throw new TypeError(`Invalid predicate: ${JSON.stringify(e)}`);if(r.length===0)throw new TypeError("Invalid number of values");return t.call(r,e)};w.any=(t,...e)=>(w.array(t)?t:[t]).some(n=>VT(Array.prototype.some,n,e));w.all=(t,...e)=>VT(Array.prototype.every,t,e);var D=(t,e,r,n={})=>{if(!t){let{multipleValues:i}=n,s=i?`received values of types ${[...new Set(r.map(o=>`\`${w(o)}\``))].join(", ")}`:`received value of type \`${w(r)}\``;throw new TypeError(`Expected value which is \`${e}\`, ${s}.`)}};sn.assert={undefined:t=>D(w.undefined(t),"undefined",t),string:t=>D(w.string(t),"string",t),number:t=>D(w.number(t),"number",t),bigint:t=>D(w.bigint(t),"bigint",t),function_:t=>D(w.function_(t),"Function",t),null_:t=>D(w.null_(t),"null",t),class_:t=>D(w.class_(t),"Class",t),boolean:t=>D(w.boolean(t),"boolean",t),symbol:t=>D(w.symbol(t),"symbol",t),numericString:t=>D(w.numericString(t),"string with a number",t),array:(t,e)=>{D(w.array(t),"Array",t),e&&t.forEach(e)},buffer:t=>D(w.buffer(t),"Buffer",t),blob:t=>D(w.blob(t),"Blob",t),nullOrUndefined:t=>D(w.nullOrUndefined(t),"null or undefined",t),object:t=>D(w.object(t),"Object",t),iterable:t=>D(w.iterable(t),"Iterable",t),asyncIterable:t=>D(w.asyncIterable(t),"AsyncIterable",t),generator:t=>D(w.generator(t),"Generator",t),asyncGenerator:t=>D(w.asyncGenerator(t),"AsyncGenerator",t),nativePromise:t=>D(w.nativePromise(t),"native Promise",t),promise:t=>D(w.promise(t),"Promise",t),generatorFunction:t=>D(w.generatorFunction(t),"GeneratorFunction",t),asyncGeneratorFunction:t=>D(w.asyncGeneratorFunction(t),"AsyncGeneratorFunction",t),asyncFunction:t=>D(w.asyncFunction(t),"AsyncFunction",t),boundFunction:t=>D(w.boundFunction(t),"Function",t),regExp:t=>D(w.regExp(t),"RegExp",t),date:t=>D(w.date(t),"Date",t),error:t=>D(w.error(t),"Error",t),map:t=>D(w.map(t),"Map",t),set:t=>D(w.set(t),"Set",t),weakMap:t=>D(w.weakMap(t),"WeakMap",t),weakSet:t=>D(w.weakSet(t),"WeakSet",t),int8Array:t=>D(w.int8Array(t),"Int8Array",t),uint8Array:t=>D(w.uint8Array(t),"Uint8Array",t),uint8ClampedArray:t=>D(w.uint8ClampedArray(t),"Uint8ClampedArray",t),int16Array:t=>D(w.int16Array(t),"Int16Array",t),uint16Array:t=>D(w.uint16Array(t),"Uint16Array",t),int32Array:t=>D(w.int32Array(t),"Int32Array",t),uint32Array:t=>D(w.uint32Array(t),"Uint32Array",t),float32Array:t=>D(w.float32Array(t),"Float32Array",t),float64Array:t=>D(w.float64Array(t),"Float64Array",t),bigInt64Array:t=>D(w.bigInt64Array(t),"BigInt64Array",t),bigUint64Array:t=>D(w.bigUint64Array(t),"BigUint64Array",t),arrayBuffer:t=>D(w.arrayBuffer(t),"ArrayBuffer",t),sharedArrayBuffer:t=>D(w.sharedArrayBuffer(t),"SharedArrayBuffer",t),dataView:t=>D(w.dataView(t),"DataView",t),enumCase:(t,e)=>D(w.enumCase(t,e),"EnumCase",t),urlInstance:t=>D(w.urlInstance(t),"URL",t),urlString:t=>D(w.urlString(t),"string with a URL",t),truthy:t=>D(w.truthy(t),"truthy",t),falsy:t=>D(w.falsy(t),"falsy",t),nan:t=>D(w.nan(t),"NaN",t),primitive:t=>D(w.primitive(t),"primitive",t),integer:t=>D(w.integer(t),"integer",t),safeInteger:t=>D(w.safeInteger(t),"integer",t),plainObject:t=>D(w.plainObject(t),"plain object",t),typedArray:t=>D(w.typedArray(t),"TypedArray",t),arrayLike:t=>D(w.arrayLike(t),"array-like",t),domElement:t=>D(w.domElement(t),"HTMLElement",t),observable:t=>D(w.observable(t),"Observable",t),nodeStream:t=>D(w.nodeStream(t),"Node.js Stream",t),infinite:t=>D(w.infinite(t),"infinite number",t),emptyArray:t=>D(w.emptyArray(t),"empty array",t),nonEmptyArray:t=>D(w.nonEmptyArray(t),"non-empty array",t),emptyString:t=>D(w.emptyString(t),"empty string",t),emptyStringOrWhitespace:t=>D(w.emptyStringOrWhitespace(t),"empty string or whitespace",t),nonEmptyString:t=>D(w.nonEmptyString(t),"non-empty string",t),nonEmptyStringAndNotWhitespace:t=>D(w.nonEmptyStringAndNotWhitespace(t),"non-empty string and not whitespace",t),emptyObject:t=>D(w.emptyObject(t),"empty object",t),nonEmptyObject:t=>D(w.nonEmptyObject(t),"non-empty object",t),emptySet:t=>D(w.emptySet(t),"empty set",t),nonEmptySet:t=>D(w.nonEmptySet(t),"non-empty set",t),emptyMap:t=>D(w.emptyMap(t),"empty map",t),nonEmptyMap:t=>D(w.nonEmptyMap(t),"non-empty map",t),propertyKey:t=>D(w.propertyKey(t),"PropertyKey",t),formData:t=>D(w.formData(t),"FormData",t),urlSearchParams:t=>D(w.urlSearchParams(t),"URLSearchParams",t),evenInteger:t=>D(w.evenInteger(t),"even integer",t),oddInteger:t=>D(w.oddInteger(t),"odd integer",t),directInstanceOf:(t,e)=>D(w.directInstanceOf(t,e),"T",t),inRange:(t,e)=>D(w.inRange(t,e),"in range",t),any:(t,...e)=>D(w.any(t,...e),"predicate returns truthy for any value",e,{multipleValues:!0}),all:(t,...e)=>D(w.all(t,...e),"predicate returns truthy for all values",e,{multipleValues:!0})};Object.defineProperties(w,{class:{value:w.class_},function:{value:w.function_},null:{value:w.null_}});Object.defineProperties(sn.assert,{class:{value:sn.assert.class_},function:{value:sn.assert.function_},null:{value:sn.assert.null_}});sn.default=w;Ol.exports=w;Ol.exports.default=w;Ol.exports.assert=sn.assert});var WT=y((HJ,Gg)=>{"use strict";l();var Tl=class extends Error{constructor(e){super(e||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},Gs=class{static fn(e){return(...r)=>new Gs((n,i,s)=>{r.push(s),e(...r).then(n,i)})}constructor(e){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((r,n)=>{this._reject=n;let i=a=>{(!this._isCanceled||!o.shouldReject)&&(this._isPending=!1,r(a))},s=a=>{this._isPending=!1,n(a)},o=a=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(a)};return Object.defineProperties(o,{shouldReject:{get:()=>this._rejectOnCancel,set:a=>{this._rejectOnCancel=a}}}),e(i,s,o)})}then(e,r){return this._promise.then(e,r)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let r of this._cancelHandlers)r()}catch(r){this._reject(r);return}this._rejectOnCancel&&this._reject(new Tl(e))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(Gs.prototype,Promise.prototype);Gg.exports=Gs;Gg.exports.CancelError=Tl});var zT=y((Wg,zg)=>{"use strict";l();Object.defineProperty(Wg,"__esModule",{value:!0});function m8(t){return t.encrypted}var Vg=(t,e)=>{let r;typeof e=="function"?r={connect:e}:r=e;let n=typeof r.connect=="function",i=typeof r.secureConnect=="function",s=typeof r.close=="function",o=()=>{n&&r.connect(),m8(t)&&i&&(t.authorized?r.secureConnect():t.authorizationError||t.once("secureConnect",r.secureConnect)),s&&t.once("close",r.close)};t.writable&&!t.connecting?o():t.connecting?t.once("connect",o):t.destroyed&&s&&r.close(t._hadError)};Wg.default=Vg;zg.exports=Vg;zg.exports.default=Vg});var YT=y((Kg,Zg)=>{"use strict";l();Object.defineProperty(Kg,"__esModule",{value:!0});var g8=zT(),y8=require("util"),_8=Number(process.versions.node.split(".")[0]),Yg=t=>{if(t.timings)return t.timings;let e={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};t.timings=e;let r=a=>{let c=a.emit.bind(a);a.emit=(u,...f)=>(u==="error"&&(e.error=Date.now(),e.phases.total=e.error-e.start,a.emit=c),c(u,...f))};r(t);let n=()=>{e.abort=Date.now(),(!e.response||_8>=13)&&(e.phases.total=Date.now()-e.start)};t.prependOnceListener("abort",n);let i=a=>{if(e.socket=Date.now(),e.phases.wait=e.socket-e.start,y8.types.isProxy(a))return;let c=()=>{e.lookup=Date.now(),e.phases.dns=e.lookup-e.socket};a.prependOnceListener("lookup",c),g8.default(a,{connect:()=>{e.connect=Date.now(),e.lookup===void 0&&(a.removeListener("lookup",c),e.lookup=e.connect,e.phases.dns=e.lookup-e.socket),e.phases.tcp=e.connect-e.lookup},secureConnect:()=>{e.secureConnect=Date.now(),e.phases.tls=e.secureConnect-e.connect}})};t.socket?i(t.socket):t.prependOnceListener("socket",i);let s=()=>{var a;e.upload=Date.now(),e.phases.request=e.upload-((a=e.secureConnect)!==null&&a!==void 0?a:e.connect)};return(()=>typeof t.writableFinished=="boolean"?t.writableFinished:t.finished&&t.outputSize===0&&(!t.socket||t.socket.writableLength===0))()?s():t.prependOnceListener("finish",s),t.prependOnceListener("response",a=>{e.response=Date.now(),e.phases.firstByte=e.response-e.upload,a.timings=e,r(a),a.prependOnceListener("end",()=>{e.end=Date.now(),e.phases.download=e.end-e.response,e.phases.total=e.end-e.start}),a.prependOnceListener("aborted",n)}),e};Kg.default=Yg;Zg.exports=Yg;Zg.exports.default=Yg});var t2=y(($J,Qg)=>{"use strict";l();var{V4MAPPED:v8,ADDRCONFIG:b8,ALL:e2,promises:{Resolver:KT},lookup:E8}=require("dns"),{promisify:Jg}=require("util"),w8=require("os"),Vs=Symbol("cacheableLookupCreateConnection"),Xg=Symbol("cacheableLookupInstance"),ZT=Symbol("expires"),x8=typeof e2=="number",JT=t=>{if(!(t&&typeof t.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},S8=t=>{for(let e of t)e.family!==6&&(e.address=`::ffff:${e.address}`,e.family=6)},XT=()=>{let t=!1,e=!1;for(let r of Object.values(w8.networkInterfaces()))for(let n of r)if(!n.internal&&(n.family==="IPv6"?e=!0:t=!0,t&&e))return{has4:t,has6:e};return{has4:t,has6:e}},A8=t=>Symbol.iterator in t,QT={ttl:!0},C8={all:!0},kl=class{constructor({cache:e=new Map,maxTtl:r=1/0,fallbackDuration:n=3600,errorTtl:i=.15,resolver:s=new KT,lookup:o=E8}={}){if(this.maxTtl=r,this.errorTtl=i,this._cache=e,this._resolver=s,this._dnsLookup=Jg(o),this._resolver instanceof KT?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=Jg(this._resolver.resolve4.bind(this._resolver)),this._resolve6=Jg(this._resolver.resolve6.bind(this._resolver))),this._iface=XT(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,n<1)this._fallback=!1;else{this._fallback=!0;let a=setInterval(()=>{this._hostnamesToFallback.clear()},n*1e3);a.unref&&a.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.clear(),this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,r,n){if(typeof r=="function"?(n=r,r={}):typeof r=="number"&&(r={family:r}),!n)throw new Error("Callback must be a function.");this.lookupAsync(e,r).then(i=>{r.all?n(null,i):n(null,i.address,i.family,i.expires,i.ttl)},n)}async lookupAsync(e,r={}){typeof r=="number"&&(r={family:r});let n=await this.query(e);if(r.family===6){let i=n.filter(s=>s.family===6);r.hints&v8&&(x8&&r.hints&e2||i.length===0)?S8(n):n=i}else r.family===4&&(n=n.filter(i=>i.family===4));if(r.hints&b8){let{_iface:i}=this;n=n.filter(s=>s.family===6?i.has6:i.has4)}if(n.length===0){let i=new Error(`cacheableLookup ENOTFOUND ${e}`);throw i.code="ENOTFOUND",i.hostname=e,i}return r.all?n:n[0]}async query(e){let r=await this._cache.get(e);if(!r){let n=this._pending[e];if(n)r=await n;else{let i=this.queryAndCache(e);this._pending[e]=i;try{r=await i}finally{delete this._pending[e]}}}return r=r.map(n=>({...n})),r}async _resolve(e){let r=async u=>{try{return await u}catch(f){if(f.code==="ENODATA"||f.code==="ENOTFOUND")return[];throw f}},[n,i]=await Promise.all([this._resolve4(e,QT),this._resolve6(e,QT)].map(u=>r(u))),s=0,o=0,a=0,c=Date.now();for(let u of n)u.family=4,u.expires=c+u.ttl*1e3,s=Math.max(s,u.ttl);for(let u of i)u.family=6,u.expires=c+u.ttl*1e3,o=Math.max(o,u.ttl);return n.length>0?i.length>0?a=Math.min(s,o):a=s:a=o,{entries:[...n,...i],cacheTtl:a}}async _lookup(e){try{return{entries:await this._dnsLookup(e,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(e,r,n){if(this.maxTtl>0&&n>0){n=Math.min(n,this.maxTtl)*1e3,r[ZT]=Date.now()+n;try{await this._cache.set(e,r,n)}catch(i){this.lookupAsync=async()=>{let s=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw s.cause=i,s}}A8(this._cache)&&this._tick(n)}}async queryAndCache(e){if(this._hostnamesToFallback.has(e))return this._dnsLookup(e,C8);let r=await this._resolve(e);r.entries.length===0&&this._fallback&&(r=await this._lookup(e),r.entries.length!==0&&this._hostnamesToFallback.add(e));let n=r.entries.length===0?this.errorTtl:r.cacheTtl;return await this._set(e,r.entries,n),r.entries}_tick(e){let r=this._nextRemovalTime;(!r||e<r)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=e,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let n=1/0,i=Date.now();for(let[s,o]of this._cache){let a=o[ZT];i>=a?this._cache.delete(s):a<n&&(n=a)}n!==1/0&&this._tick(n-i)},e),this._removalTimeout.unref&&this._removalTimeout.unref())}install(e){if(JT(e),Vs in e)throw new Error("CacheableLookup has been already installed");e[Vs]=e.createConnection,e[Xg]=this,e.createConnection=(r,n)=>("lookup"in r||(r.lookup=this.lookup),e[Vs](r,n))}uninstall(e){if(JT(e),e[Vs]){if(e[Xg]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");e.createConnection=e[Vs],delete e[Vs],delete e[Xg]}}updateInterfaceInfo(){let{_iface:e}=this;this._iface=XT(),(e.has4&&!this._iface.has4||e.has6&&!this._iface.has6)&&this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}};Qg.exports=kl;Qg.exports.default=kl});var i2=y((UJ,n2)=>{"use strict";l();var R8="text/plain",O8="us-ascii",r2=(t,e)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),T8=(t,{stripHash:e})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(t);if(!r)throw new Error(`Invalid URL: ${t}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=e?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let c=(o.shift()||"").toLowerCase(),f=[...o.map(h=>{let[d,m=""]=h.split("=").map(g=>g.trim());return d==="charset"&&(m=m.toLowerCase(),m===O8)?"":`${d}${m?`=${m}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length!==0||c&&c!==R8)&&f.unshift(c),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`},k8=(t,e)=>{if(e={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...e},t=t.trim(),/^data:/i.test(t))return T8(t,e);if(/^view-source:/i.test(t))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=t.startsWith("//");!r&&/^\.*\//.test(t)||(t=t.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,e.defaultProtocol));let i=new URL(t);if(e.forceHttp&&e.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(e.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),e.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),e.stripAuthentication&&(i.username="",i.password=""),e.stripHash?i.hash="":e.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname&&(i.pathname=i.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(e.removeDirectoryIndex===!0&&(e.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(e.removeDirectoryIndex)&&e.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];r2(a,e.removeDirectoryIndex)&&(o=o.slice(0,o.length-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),e.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(e.removeQueryParameters))for(let o of[...i.searchParams.keys()])r2(o,e.removeQueryParameters)&&i.searchParams.delete(o);e.removeQueryParameters===!0&&(i.search=""),e.sortQueryParameters&&i.searchParams.sort(),e.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=t;return t=i.toString(),!e.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(t=t.replace(/\/$/,"")),(e.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&e.removeSingleSlash&&(t=t.replace(/\/$/,"")),r&&!e.normalizeProtocol&&(t=t.replace(/^http:\/\//,"//")),e.stripProtocol&&(t=t.replace(/^(?:https?:)?\/\//,"")),t};n2.exports=k8});var a2=y((GJ,o2)=>{l();o2.exports=s2;function s2(t,e){if(t&&e)return s2(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var ty=y((VJ,ey)=>{l();var c2=a2();ey.exports=c2(Pl);ey.exports.strict=c2(u2);Pl.proto=Pl(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Pl(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return u2(this)},configurable:!0})});function Pl(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function u2(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var h2=y((WJ,f2)=>{l();var P8=ty(),I8=function(){},L8=function(t){return t.setHeader&&typeof t.abort=="function"},N8=function(t){return t.stdio&&Array.isArray(t.stdio)&&t.stdio.length===3},l2=function(t,e,r){if(typeof e=="function")return l2(t,null,e);e||(e={}),r=P8(r||I8);var n=t._writableState,i=t._readableState,s=e.readable||e.readable!==!1&&t.readable,o=e.writable||e.writable!==!1&&t.writable,a=!1,c=function(){t.writable||u()},u=function(){o=!1,s||r.call(t)},f=function(){s=!1,o||r.call(t)},h=function(v){r.call(t,v?new Error("exited with error code: "+v):null)},d=function(v){r.call(t,v)},m=function(){process.nextTick(g)},g=function(){if(!a){if(s&&!(i&&i.ended&&!i.destroyed))return r.call(t,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(t,new Error("premature close"))}},E=function(){t.req.on("finish",u)};return L8(t)?(t.on("complete",u),t.on("abort",m),t.req?E():t.on("request",E)):o&&!n&&(t.on("end",c),t.on("close",c)),N8(t)&&t.on("exit",h),t.on("end",f),t.on("finish",u),e.error!==!1&&t.on("error",d),t.on("close",m),function(){a=!0,t.removeListener("complete",u),t.removeListener("abort",m),t.removeListener("request",E),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("exit",h),t.removeListener("end",f),t.removeListener("error",d),t.removeListener("close",m)}};f2.exports=l2});var m2=y((zJ,p2)=>{l();var D8=ty(),M8=h2(),ry=require("fs"),Ea=function(){},F8=/^v?\.0/.test(process.version),Il=function(t){return typeof t=="function"},q8=function(t){return!F8||!ry?!1:(t instanceof(ry.ReadStream||Ea)||t instanceof(ry.WriteStream||Ea))&&Il(t.close)},B8=function(t){return t.setHeader&&Il(t.abort)},j8=function(t,e,r,n){n=D8(n);var i=!1;t.on("close",function(){i=!0}),M8(t,{readable:e,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,q8(t))return t.close(Ea);if(B8(t))return t.abort();if(Il(t.destroy))return t.destroy();n(o||new Error("stream was destroyed"))}}},d2=function(t){t()},H8=function(t,e){return t.pipe(e)},$8=function(){var t=Array.prototype.slice.call(arguments),e=Il(t[t.length-1]||Ea)&&t.pop()||Ea;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var r,n=t.map(function(i,s){var o=s<t.length-1,a=s>0;return j8(i,o,a,function(c){r||(r=c),c&&n.forEach(d2),!o&&(n.forEach(d2),e(r))})});return t.reduce(H8)};p2.exports=$8});var y2=y((YJ,g2)=>{"use strict";l();var{PassThrough:U8}=require("stream");g2.exports=t=>{t={...t};let{array:e}=t,{encoding:r}=t,n=r==="buffer",i=!1;e?i=!(r||n):r=r||"utf8",n&&(r=null);let s=new U8({objectMode:i});r&&s.setEncoding(r);let o=0,a=[];return s.on("data",c=>{a.push(c),i?o=a.length:o+=c.length}),s.getBufferedValue=()=>e?a:n?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s}});var _2=y((KJ,Ws)=>{"use strict";l();var{constants:G8}=require("buffer"),V8=m2(),W8=y2(),Ll=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Nl(t,e){if(!t)return Promise.reject(new Error("Expected a stream"));e={maxBuffer:1/0,...e};let{maxBuffer:r}=e,n;return await new Promise((i,s)=>{let o=a=>{a&&n.getBufferedLength()<=G8.MAX_LENGTH&&(a.bufferedData=n.getBufferedValue()),s(a)};n=V8(t,W8(e),a=>{if(a){o(a);return}i()}),n.on("data",()=>{n.getBufferedLength()>r&&o(new Ll)})}),n.getBufferedValue()}Ws.exports=Nl;Ws.exports.default=Nl;Ws.exports.buffer=(t,e)=>Nl(t,{...e,encoding:"buffer"});Ws.exports.array=(t,e)=>Nl(t,{...e,array:!0});Ws.exports.MaxBufferError=Ll});var b2=y((JJ,v2)=>{"use strict";l();var z8=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),Y8=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),K8=new Set([500,502,503,504]),Z8={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},J8={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function bi(t){let e=parseInt(t,10);return isFinite(e)?e:0}function X8(t){return t?K8.has(t.status):!0}function ny(t){let e={};if(!t)return e;let r=t.trim().split(/,/);for(let n of r){let[i,s]=n.split(/=/,2);e[i.trim()]=s===void 0?!0:s.trim().replace(/^"|"$/g,"")}return e}function Q8(t){let e=[];for(let r in t){let n=t[r];e.push(n===!0?r:r+"="+n)}if(!!e.length)return e.join(", ")}v2.exports=class{constructor(e,r,{shared:n,cacheHeuristic:i,immutableMinTimeToLive:s,ignoreCargoCult:o,_fromObject:a}={}){if(a){this._fromObject(a);return}if(!r||!r.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(e),this._responseTime=this.now(),this._isShared=n!==!1,this._cacheHeuristic=i!==void 0?i:.1,this._immutableMinTtl=s!==void 0?s:24*3600*1e3,this._status="status"in r?r.status:200,this._resHeaders=r.headers,this._rescc=ny(r.headers["cache-control"]),this._method="method"in e?e.method:"GET",this._url=e.url,this._host=e.headers.host,this._noAuthorization=!e.headers.authorization,this._reqHeaders=r.headers.vary?e.headers:null,this._reqcc=ny(e.headers["cache-control"]),o&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":Q8(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),r.headers["cache-control"]==null&&/no-cache/.test(r.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&Y8.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||z8.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);let r=ny(e.headers["cache-control"]);return r["no-cache"]||/no-cache/.test(e.headers.pragma)||r["max-age"]&&this.age()>r["max-age"]||r["min-fresh"]&&this.timeToLive()<1e3*r["min-fresh"]||this.stale()&&!(r["max-stale"]&&!this._rescc["must-revalidate"]&&(r["max-stale"]===!0||r["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(e,!1)}_requestMatches(e,r){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||r&&e.method==="HEAD")&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let r=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let n of r)if(e.headers[n]!==this._reqHeaders[n])return!1;return!0}_copyWithoutHopByHopHeaders(e){let r={};for(let n in e)Z8[n]||(r[n]=e[n]);if(e.connection){let n=e.connection.trim().split(/\s*,\s*/);for(let i of n)delete r[i]}if(r.warning){let n=r.warning.split(/,/).filter(i=>!/^\s*1[0-9][0-9]/.test(i));n.length?r.warning=n.join(",").trim():delete r.warning}return r}responseHeaders(){let e=this._copyWithoutHopByHopHeaders(this._resHeaders),r=this.age();return r>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'),e.age=`${Math.round(r)}`,e.date=new Date(this.now()).toUTCString(),e}date(){let e=Date.parse(this._resHeaders.date);return isFinite(e)?e:this._responseTime}age(){let e=this._ageValue(),r=(this.now()-this._responseTime)/1e3;return e+r}_ageValue(){return bi(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return bi(this._rescc["s-maxage"])}if(this._rescc["max-age"])return bi(this._rescc["max-age"]);let e=this._rescc.immutable?this._immutableMinTtl:0,r=this.date();if(this._resHeaders.expires){let n=Date.parse(this._resHeaders.expires);return Number.isNaN(n)||n<r?0:Math.max(e,(n-r)/1e3)}if(this._resHeaders["last-modified"]){let n=Date.parse(this._resHeaders["last-modified"]);if(isFinite(n)&&r>n)return Math.max(e,(r-n)/1e3*this._cacheHeuristic)}return e}timeToLive(){let e=this.maxAge()-this.age(),r=e+bi(this._rescc["stale-if-error"]),n=e+bi(this._rescc["stale-while-revalidate"]);return Math.max(0,e,r,n)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+bi(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+bi(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(void 0,void 0,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t,this._isShared=e.sh,this._cacheHeuristic=e.ch,this._immutableMinTtl=e.imm!==void 0?e.imm:24*3600*1e3,this._status=e.st,this._resHeaders=e.resh,this._rescc=e.rescc,this._method=e.m,this._url=e.u,this._host=e.h,this._noAuthorization=e.a,this._reqHeaders=e.reqh,this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);let r=this._copyWithoutHopByHopHeaders(e.headers);if(delete r["if-range"],!this._requestMatches(e,!0)||!this.storable())return delete r["if-none-match"],delete r["if-modified-since"],r;if(this._resHeaders.etag&&(r["if-none-match"]=r["if-none-match"]?`${r["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),r["accept-ranges"]||r["if-match"]||r["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete r["if-modified-since"],r["if-none-match"]){let i=r["if-none-match"].split(/,/).filter(s=>!/^\s*W\//.test(s));i.length?r["if-none-match"]=i.join(",").trim():delete r["if-none-match"]}}else this._resHeaders["last-modified"]&&!r["if-modified-since"]&&(r["if-modified-since"]=this._resHeaders["last-modified"]);return r}revalidatedPolicy(e,r){if(this._assertRequestHasHeaders(e),this._useStaleIfError()&&X8(r))return{modified:!1,matches:!1,policy:this};if(!r||!r.headers)throw Error("Response headers missing");let n=!1;if(r.status!==void 0&&r.status!=304?n=!1:r.headers.etag&&!/^\s*W\//.test(r.headers.etag)?n=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag:this._resHeaders.etag&&r.headers.etag?n=this._resHeaders.etag.replace(/^\s*W\//,"")===r.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?n=this._resHeaders["last-modified"]===r.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!r.headers.etag&&!r.headers["last-modified"]&&(n=!0),!n)return{policy:new this.constructor(e,r),modified:r.status!=304,matches:!1};let i={};for(let o in this._resHeaders)i[o]=o in r.headers&&!J8[o]?r.headers[o]:this._resHeaders[o];let s=Object.assign({},r,{status:this._status,method:this._method,headers:i});return{policy:new this.constructor(e,s,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}});var Dl=y((XJ,E2)=>{"use strict";l();E2.exports=t=>{let e={};for(let[r,n]of Object.entries(t))e[r.toLowerCase()]=n;return e}});var x2=y((QJ,w2)=>{"use strict";l();var e9=require("stream").Readable,t9=Dl(),iy=class extends e9{constructor(e,r,n,i){if(typeof e!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof r!="object")throw new TypeError("Argument `headers` should be an object");if(!(n instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof i!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=e,this.headers=t9(r),this.body=n,this.url=i}_read(){this.push(this.body),this.push(null)}};w2.exports=iy});var A2=y((eX,S2)=>{"use strict";l();var r9=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];S2.exports=(t,e)=>{let r=new Set(Object.keys(t).concat(r9));for(let n of r)n in e||(e[n]=typeof t[n]=="function"?t[n].bind(t):t[n])}});var R2=y((tX,C2)=>{"use strict";l();var n9=require("stream").PassThrough,i9=A2(),s9=t=>{if(!(t&&t.pipe))throw new TypeError("Parameter `response` must be a response stream.");let e=new n9;return i9(t,e),t.pipe(e)};C2.exports=s9});var O2=y(sy=>{l();sy.stringify=function t(e){if(typeof e>"u")return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON&&(e=e.toJSON()),e&&typeof e=="object"){var r="",n=Array.isArray(e);r=n?"[":"{";var i=!0;for(var s in e){var o=typeof e[s]=="function"||!n&&typeof e[s]>"u";Object.hasOwnProperty.call(e,s)&&!o&&(i||(r+=","),i=!1,n?e[s]==null?r+="null":r+=t(e[s]):e[s]!==void 0&&(r+=t(s)+":"+t(e[s])))}return r+=n?"]":"}",r}else return typeof e=="string"?JSON.stringify(/^:/.test(e)?":"+e:e):typeof e>"u"?"null":JSON.stringify(e)};sy.parse=function(t){return JSON.parse(t,function(e,r){return typeof r=="string"?/^:base64:/.test(r)?Buffer.from(r.substring(8),"base64"):/^:/.test(r)?r.substring(1):r:r})}});var I2=y((nX,P2)=>{"use strict";l();var o9=require("events"),T2=O2(),a9=t=>{let e={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(t.adapter||t.uri){let r=t.adapter||/^[^:+]*/.exec(t.uri)[0];return new(require(e[r]))(t)}return new Map},k2=["sqlite","postgres","mysql","mongo","redis","tiered"],oy=class extends o9{constructor(e,{emitErrors:r=!0,...n}={}){if(super(),this.opts={namespace:"keyv",serialize:T2.stringify,deserialize:T2.parse,...typeof e=="string"?{uri:e}:e,...n},!this.opts.store){let s={...this.opts};this.opts.store=a9(s)}if(this.opts.compression){let s=this.opts.compression;this.opts.serialize=s.serialize.bind(s),this.opts.deserialize=s.deserialize.bind(s)}typeof this.opts.store.on=="function"&&r&&this.opts.store.on("error",s=>this.emit("error",s)),this.opts.store.namespace=this.opts.namespace;let i=s=>async function*(){for await(let[o,a]of typeof s=="function"?s(this.opts.store.namespace):s){let c=this.opts.deserialize(a);if(!(this.opts.store.namespace&&!o.includes(this.opts.store.namespace))){if(typeof c.expires=="number"&&Date.now()>c.expires){this.delete(o);continue}yield[this._getKeyUnprefix(o),c.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=i(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=i(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return k2.includes(this.opts.store.opts.dialect)||k2.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(r=>`${this.opts.namespace}:${r}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,r){let{store:n}=this.opts,i=Array.isArray(e),s=i?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(i&&n.getMany===void 0){let o=[];for(let a of s)o.push(Promise.resolve().then(()=>n.get(a)).then(c=>typeof c=="string"?this.opts.deserialize(c):this.opts.compression?this.opts.deserialize(c):c).then(c=>{if(c!=null)return typeof c.expires=="number"&&Date.now()>c.expires?this.delete(a).then(()=>{}):r&&r.raw?c:c.value}));return Promise.allSettled(o).then(a=>{let c=[];for(let u of a)c.push(u.value);return c})}return Promise.resolve().then(()=>i?n.getMany(s):n.get(s)).then(o=>typeof o=="string"?this.opts.deserialize(o):this.opts.compression?this.opts.deserialize(o):o).then(o=>{if(o!=null){if(i){let a=[];for(let c of o){if(typeof c=="string"&&(c=this.opts.deserialize(c)),c==null){a.push(void 0);continue}typeof c.expires=="number"&&Date.now()>c.expires?(this.delete(e).then(()=>{}),a.push(void 0)):a.push(r&&r.raw?c:c.value)}return a}return typeof o.expires=="number"&&Date.now()>o.expires?this.delete(e).then(()=>{}):r&&r.raw?o:o.value}})}set(e,r,n){let i=this._getKeyPrefix(e);typeof n>"u"&&(n=this.opts.ttl),n===0&&(n=void 0);let{store:s}=this.opts;return Promise.resolve().then(()=>{let o=typeof n=="number"?Date.now()+n:null;return typeof r=="symbol"&&this.emit("error","symbol cannot be serialized"),r={value:r,expires:o},this.opts.serialize(r)}).then(o=>s.set(i,o,n)).then(()=>!0)}delete(e){let{store:r}=this.opts;if(Array.isArray(e)){let i=this._getKeyPrefixArray(e);if(r.deleteMany===void 0){let s=[];for(let o of i)s.push(r.delete(o));return Promise.allSettled(s).then(o=>o.every(a=>a.value===!0))}return Promise.resolve().then(()=>r.deleteMany(i))}let n=this._getKeyPrefix(e);return Promise.resolve().then(()=>r.delete(n))}clear(){let{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){let r=this._getKeyPrefix(e),{store:n}=this.opts;return Promise.resolve().then(async()=>typeof n.has=="function"?n.has(r):await n.get(r)!==void 0)}disconnect(){let{store:e}=this.opts;if(typeof e.disconnect=="function")return e.disconnect()}};P2.exports=oy});var D2=y((iX,N2)=>{"use strict";l();var c9=require("events"),Ml=require("url"),u9=i2(),l9=_2(),ay=b2(),L2=x2(),f9=Dl(),h9=R2(),d9=I2(),hr=class{constructor(e,r){if(typeof e!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new d9({uri:typeof r=="string"&&r,store:typeof r!="string"&&r,namespace:"cacheable-request"}),this.createCacheableRequest(e)}createCacheableRequest(e){return(r,n)=>{let i;if(typeof r=="string")i=cy(Ml.parse(r)),r={};else if(r instanceof Ml.URL)i=cy(Ml.parse(r.toString())),r={};else{let[h,...d]=(r.path||"").split("?"),m=d.length>0?`?${d.join("?")}`:"";i=cy({...r,pathname:h,search:m})}r={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...r,...p9(i)},r.headers=f9(r.headers);let s=new c9,o=u9(Ml.format(i),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),a=`${r.method}:${o}`,c=!1,u=!1,f=h=>{u=!0;let d=!1,m,g=new Promise(v=>{m=()=>{d||(d=!0,v())}}),E=v=>{if(c&&!h.forceRefresh){v.status=v.statusCode;let P=ay.fromObject(c.cachePolicy).revalidatedPolicy(h,v);if(!P.modified){let B=P.policy.responseHeaders();v=new L2(c.statusCode,B,c.body,c.url),v.cachePolicy=P.policy,v.fromCache=!0}}v.fromCache||(v.cachePolicy=new ay(h,v,h),v.fromCache=!1);let A;h.cache&&v.cachePolicy.storable()?(A=h9(v),(async()=>{try{let P=l9.buffer(v);if(await Promise.race([g,new Promise(se=>v.once("end",se))]),d)return;let B=await P,re={cachePolicy:v.cachePolicy.toObject(),url:v.url,statusCode:v.fromCache?c.statusCode:v.statusCode,body:B},$=h.strictTtl?v.cachePolicy.timeToLive():void 0;h.maxTtl&&($=$?Math.min($,h.maxTtl):h.maxTtl),await this.cache.set(a,re,$)}catch(P){s.emit("error",new hr.CacheError(P))}})()):h.cache&&c&&(async()=>{try{await this.cache.delete(a)}catch(P){s.emit("error",new hr.CacheError(P))}})(),s.emit("response",A||v),typeof n=="function"&&n(A||v)};try{let v=e(h,E);v.once("error",m),v.once("abort",m),s.emit("request",v)}catch(v){s.emit("error",new hr.RequestError(v))}};return(async()=>{let h=async m=>{await Promise.resolve();let g=m.cache?await this.cache.get(a):void 0;if(typeof g>"u")return f(m);let E=ay.fromObject(g.cachePolicy);if(E.satisfiesWithoutRevalidation(m)&&!m.forceRefresh){let v=E.responseHeaders(),A=new L2(g.statusCode,v,g.body,g.url);A.cachePolicy=E,A.fromCache=!0,s.emit("response",A),typeof n=="function"&&n(A)}else c=g,m.headers=E.revalidationHeaders(m),f(m)},d=m=>s.emit("error",new hr.CacheError(m));this.cache.once("error",d),s.on("response",()=>this.cache.removeListener("error",d));try{await h(r)}catch(m){r.automaticFailover&&!u&&f(r),s.emit("error",new hr.CacheError(m))}})(),s}}};function p9(t){let e={...t};return e.path=`${t.pathname||"/"}${t.search||""}`,delete e.pathname,delete e.search,e}function cy(t){return{protocol:t.protocol,auth:t.auth,hostname:t.hostname||t.host||"localhost",port:t.port,pathname:t.pathname,search:t.search}}hr.RequestError=class extends Error{constructor(t){super(t.message),this.name="RequestError",Object.assign(this,t)}};hr.CacheError=class extends Error{constructor(t){super(t.message),this.name="CacheError",Object.assign(this,t)}};N2.exports=hr});var F2=y((aX,M2)=>{"use strict";l();var m9=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];M2.exports=(t,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let r=new Set(Object.keys(t).concat(m9)),n={};for(let i of r)i in e||(n[i]={get(){let s=t[i];return typeof s=="function"?s.bind(t):s},set(s){t[i]=s},enumerable:!0,configurable:!1});return Object.defineProperties(e,n),t.once("aborted",()=>{e.destroy(),e.emit("aborted")}),t.once("close",()=>{t.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var B2=y((cX,q2)=>{"use strict";l();var{Transform:g9,PassThrough:y9}=require("stream"),uy=require("zlib"),_9=F2();q2.exports=t=>{let e=(t.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return t;let r=e==="br";if(r&&typeof uy.createBrotliDecompress!="function")return t.destroy(new Error("Brotli is not supported on Node.js < 12")),t;let n=!0,i=new g9({transform(a,c,u){n=!1,u(null,a)},flush(a){a()}}),s=new y9({autoDestroy:!1,destroy(a,c){t.destroy(),c(a)}}),o=r?uy.createBrotliDecompress():uy.createUnzip();return o.once("error",a=>{if(n&&!t.readable){s.end();return}s.destroy(a)}),_9(t,s),t.pipe(i).pipe(o).pipe(s),s}});var fy=y((uX,j2)=>{"use strict";l();var ly=class{constructor(e={}){if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,r){if(this.cache.set(e,r),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[n,i]of this.oldCache.entries())this.onEviction(n,i);this.oldCache=this.cache,this.cache=new Map}}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){let r=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,r),r}}set(e,r){return this.cache.has(e)?this.cache.set(e,r):this._set(e,r),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e))return this.oldCache.get(e)}delete(e){let r=this.cache.delete(e);return r&&this._size--,this.oldCache.delete(e)||r}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache)yield e;for(let e of this.oldCache){let[r]=e;this.cache.has(r)||(yield e)}}get size(){let e=0;for(let r of this.oldCache.keys())this.cache.has(r)||e++;return Math.min(this._size+e,this.maxSize)}};j2.exports=ly});var dy=y((lX,G2)=>{"use strict";l();var v9=require("events"),b9=require("tls"),E9=require("http2"),w9=fy(),yt=Symbol("currentStreamsCount"),H2=Symbol("request"),er=Symbol("cachedOriginSet"),zs=Symbol("gracefullyClosing"),x9=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],S9=(t,e,r)=>{let n=0,i=t.length;for(;n<i;){let s=n+i>>>1;r(t[s],e)?n=s+1:i=s}return n},A9=(t,e)=>t.remoteSettings.maxConcurrentStreams>e.remoteSettings.maxConcurrentStreams,hy=(t,e)=>{for(let r of t)r[er].length<e[er].length&&r[er].every(n=>e[er].includes(n))&&r[yt]+e[yt]<=e.remoteSettings.maxConcurrentStreams&&U2(r)},C9=(t,e)=>{for(let r of t)e[er].length<r[er].length&&e[er].every(n=>r[er].includes(n))&&e[yt]+r[yt]<=r.remoteSettings.maxConcurrentStreams&&U2(e)},$2=({agent:t,isFree:e})=>{let r={};for(let n in t.sessions){let s=t.sessions[n].filter(o=>{let a=o[Pr.kCurrentStreamsCount]<o.remoteSettings.maxConcurrentStreams;return e?a:!a});s.length!==0&&(r[n]=s)}return r},U2=t=>{t[zs]=!0,t[yt]===0&&t.close()},Pr=class extends v9{constructor({timeout:e=6e4,maxSessions:r=1/0,maxFreeSessions:n=10,maxCachedTlsSessions:i=100}={}){super(),this.sessions={},this.queue={},this.timeout=e,this.maxSessions=r,this.maxFreeSessions=n,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new w9({maxSize:i})}static normalizeOrigin(e,r){return typeof e=="string"&&(e=new URL(e)),r&&e.hostname!==r&&(e.hostname=r),e.origin}normalizeOptions(e){let r="";if(e)for(let n of x9)e[n]&&(r+=`:${e[n]}`);return r}_tryToCreateNewSession(e,r){if(!(e in this.queue)||!(r in this.queue[e]))return;let n=this.queue[e][r];this._sessionsCount<this.maxSessions&&!n.completed&&(n.completed=!0,n())}getSession(e,r,n){return new Promise((i,s)=>{Array.isArray(n)?(n=[...n],i()):n=[{resolve:i,reject:s}];let o=this.normalizeOptions(r),a=Pr.normalizeOrigin(e,r&&r.servername);if(a===void 0){for(let{reject:f}of n)f(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(o in this.sessions){let f=this.sessions[o],h=-1,d=-1,m;for(let g of f){let E=g.remoteSettings.maxConcurrentStreams;if(E<h)break;if(g[er].includes(a)){let v=g[yt];if(v>=E||g[zs]||g.destroyed)continue;m||(h=E),v>d&&(m=g,d=v)}}if(m){if(n.length!==1){for(let{reject:g}of n){let E=new Error(`Expected the length of listeners to be 1, got ${n.length}.
|
|
52
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);g(E)}return}n[0].resolve(m);return}}if(o in this.queue){if(a in this.queue[o]){this.queue[o][a].listeners.push(...n),this._tryToCreateNewSession(o,a);return}}else this.queue[o]={};let c=()=>{o in this.queue&&this.queue[o][a]===u&&(delete this.queue[o][a],Object.keys(this.queue[o]).length===0&&delete this.queue[o])},u=()=>{let f=`${a}:${o}`,h=!1;try{let d=E9.connect(e,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(f),...r});d[yt]=0,d[zs]=!1;let m=()=>d[yt]<d.remoteSettings.maxConcurrentStreams,g=!0;d.socket.once("session",v=>{this.tlsSessionCache.set(f,v)}),d.once("error",v=>{for(let{reject:A}of n)A(v);this.tlsSessionCache.delete(f)}),d.setTimeout(this.timeout,()=>{d.destroy()}),d.once("close",()=>{if(h){g&&this._freeSessionsCount--,this._sessionsCount--;let v=this.sessions[o];v.splice(v.indexOf(d),1),v.length===0&&delete this.sessions[o]}else{let v=new Error("Session closed without receiving a SETTINGS frame");v.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:A}of n)A(v);c()}this._tryToCreateNewSession(o,a)});let E=()=>{if(!(!(o in this.queue)||!m())){for(let v of d[er])if(v in this.queue[o]){let{listeners:A}=this.queue[o][v];for(;A.length!==0&&m();)A.shift().resolve(d);let P=this.queue[o];if(P[v].listeners.length===0&&(delete P[v],Object.keys(P).length===0)){delete this.queue[o];break}if(!m())break}}};d.on("origin",()=>{d[er]=d.originSet,m()&&(E(),hy(this.sessions[o],d))}),d.once("remoteSettings",()=>{if(d.ref(),d.unref(),this._sessionsCount++,u.destroyed){let v=new Error("Agent has been destroyed");for(let A of n)A.reject(v);d.destroy();return}d[er]=d.originSet;{let v=this.sessions;if(o in v){let A=v[o];A.splice(S9(A,d,A9),0,d)}else v[o]=[d]}this._freeSessionsCount+=1,h=!0,this.emit("session",d),E(),c(),d[yt]===0&&this._freeSessionsCount>this.maxFreeSessions&&d.close(),n.length!==0&&(this.getSession(a,r,n),n.length=0),d.on("remoteSettings",()=>{E(),hy(this.sessions[o],d)})}),d[H2]=d.request,d.request=(v,A)=>{if(d[zs])throw new Error("The session is gracefully closing. No new streams are allowed.");let P=d[H2](v,A);return d.ref(),++d[yt],d[yt]===d.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,P.once("close",()=>{if(g=m(),--d[yt],!d.destroyed&&!d.closed&&(C9(this.sessions[o],d),m()&&!d.closed)){g||(this._freeSessionsCount++,g=!0);let B=d[yt]===0;B&&d.unref(),B&&(this._freeSessionsCount>this.maxFreeSessions||d[zs])?d.close():(hy(this.sessions[o],d),E())}}),P}}catch(d){for(let m of n)m.reject(d);c()}};u.listeners=n,u.completed=!1,u.destroyed=!1,this.queue[o][a]=u,this._tryToCreateNewSession(o,a)})}request(e,r,n,i){return new Promise((s,o)=>{this.getSession(e,r,[{reject:o,resolve:a=>{try{s(a.request(n,i))}catch(c){o(c)}}}])})}createConnection(e,r){return Pr.connect(e,r)}static connect(e,r){r.ALPNProtocols=["h2"];let n=e.port||443,i=e.hostname||e.host;return typeof r.servername>"u"&&(r.servername=i),b9.connect(n,i,r)}closeFreeSessions(){for(let e of Object.values(this.sessions))for(let r of e)r[yt]===0&&r.close()}destroy(e){for(let r of Object.values(this.sessions))for(let n of r)n.destroy(e);for(let r of Object.values(this.queue))for(let n of Object.values(r))n.destroyed=!0;this.queue={}}get freeSessions(){return $2({agent:this,isFree:!0})}get busySessions(){return $2({agent:this,isFree:!1})}};Pr.kCurrentStreamsCount=yt;Pr.kGracefullyClosing=zs;G2.exports={Agent:Pr,globalAgent:new Pr}});var my=y((fX,V2)=>{"use strict";l();var{Readable:R9}=require("stream"),py=class extends R9{constructor(e,r){super({highWaterMark:r,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=e,this.connection=e,this._dumped=!1}_destroy(e){this.req._request.destroy(e)}setTimeout(e,r){return this.req.setTimeout(e,r),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};V2.exports=py});var gy=y((hX,W2)=>{"use strict";l();W2.exports=t=>{let e={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var Y2=y((dX,z2)=>{"use strict";l();z2.exports=(t,e,r)=>{for(let n of r)t.on(n,(...i)=>e.emit(n,...i))}});var Z2=y((pX,K2)=>{"use strict";l();K2.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}});var X2=y((gX,J2)=>{"use strict";l();var Ys=(t,e,r)=>{J2.exports[e]=class extends t{constructor(...i){super(typeof r=="string"?r:r(i)),this.name=`${super.name} [${e}]`,this.code=e}}};Ys(TypeError,"ERR_INVALID_ARG_TYPE",t=>{let e=t[0].includes(".")?"property":"argument",r=t[1],n=Array.isArray(r);return n&&(r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`),`The "${t[0]}" ${e} must be ${n?"one of":"of"} type ${r}. Received ${typeof t[2]}`});Ys(TypeError,"ERR_INVALID_PROTOCOL",t=>`Protocol "${t[0]}" not supported. Expected "${t[1]}"`);Ys(Error,"ERR_HTTP_HEADERS_SENT",t=>`Cannot ${t[0]} headers after they are sent to the client`);Ys(TypeError,"ERR_INVALID_HTTP_TOKEN",t=>`${t[0]} must be a valid HTTP token [${t[1]}]`);Ys(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",t=>`Invalid value "${t[0]} for header "${t[1]}"`);Ys(TypeError,"ERR_INVALID_CHAR",t=>`Invalid character in ${t[0]} [${t[1]}]`)});var Ey=y((yX,sk)=>{"use strict";l();var O9=require("http2"),{Writable:T9}=require("stream"),{Agent:Q2,globalAgent:k9}=dy(),P9=my(),I9=gy(),L9=Y2(),N9=Z2(),{ERR_INVALID_ARG_TYPE:yy,ERR_INVALID_PROTOCOL:D9,ERR_HTTP_HEADERS_SENT:ek,ERR_INVALID_HTTP_TOKEN:M9,ERR_HTTP_INVALID_HEADER_VALUE:F9,ERR_INVALID_CHAR:q9}=X2(),{HTTP2_HEADER_STATUS:tk,HTTP2_HEADER_METHOD:rk,HTTP2_HEADER_PATH:nk,HTTP2_METHOD_CONNECT:B9}=O9.constants,dt=Symbol("headers"),_y=Symbol("origin"),vy=Symbol("session"),ik=Symbol("options"),Fl=Symbol("flushedHeaders"),wa=Symbol("jobs"),j9=/^[\^`\-\w!#$%&*+.|~]+$/,H9=/[^\t\u0020-\u007E\u0080-\u00FF]/,by=class extends T9{constructor(e,r,n){super({autoDestroy:!1});let i=typeof e=="string"||e instanceof URL;if(i&&(e=I9(e instanceof URL?e:new URL(e))),typeof r=="function"||r===void 0?(n=r,r=i?e:{...e}):r={...e,...r},r.h2session)this[vy]=r.h2session;else if(r.agent===!1)this.agent=new Q2({maxFreeSessions:0});else if(typeof r.agent>"u"||r.agent===null)typeof r.createConnection=="function"?(this.agent=new Q2({maxFreeSessions:0}),this.agent.createConnection=r.createConnection):this.agent=k9;else if(typeof r.agent.request=="function")this.agent=r.agent;else throw new yy("options.agent",["Agent-like Object","undefined","false"],r.agent);if(r.protocol&&r.protocol!=="https:")throw new D9(r.protocol,"https:");let s=r.port||r.defaultPort||this.agent&&this.agent.defaultPort||443,o=r.hostname||r.host||"localhost";delete r.hostname,delete r.host,delete r.port;let{timeout:a}=r;if(r.timeout=void 0,this[dt]=Object.create(null),this[wa]=[],this.socket=null,this.connection=null,this.method=r.method||"GET",this.path=r.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,r.headers)for(let[c,u]of Object.entries(r.headers))this.setHeader(c,u);r.auth&&!("authorization"in this[dt])&&(this[dt].authorization="Basic "+Buffer.from(r.auth).toString("base64")),r.session=r.tlsSession,r.path=r.socketPath,this[ik]=r,s===443?(this[_y]=`https://${o}`,":authority"in this[dt]||(this[dt][":authority"]=o)):(this[_y]=`https://${o}:${s}`,":authority"in this[dt]||(this[dt][":authority"]=`${o}:${s}`)),a&&this.setTimeout(a),n&&this.once("response",n),this[Fl]=!1}get method(){return this[dt][rk]}set method(e){e&&(this[dt][rk]=e.toUpperCase())}get path(){return this[dt][nk]}set path(e){e&&(this[dt][nk]=e)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(e,r,n){if(this._mustNotHaveABody){n(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let i=()=>this._request.write(e,r,n);this._request?i():this[wa].push(i)}_final(e){if(this.destroyed)return;this.flushHeaders();let r=()=>{if(this._mustNotHaveABody){e();return}this._request.end(e)};this._request?r():this[wa].push(r)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(e,r){this.res&&this.res._dump(),this._request&&this._request.destroy(),r(e)}async flushHeaders(){if(this[Fl]||this.destroyed)return;this[Fl]=!0;let e=this.method===B9,r=n=>{if(this._request=n,this.destroyed){n.destroy();return}e||L9(n,this,["timeout","continue","close","error"]);let i=o=>(...a)=>{!this.writable&&!this.destroyed?o(...a):this.once("finish",()=>{o(...a)})};n.once("response",i((o,a,c)=>{let u=new P9(this.socket,n.readableHighWaterMark);this.res=u,u.req=this,u.statusCode=o[tk],u.headers=o,u.rawHeaders=c,u.once("end",()=>{this.aborted?(u.aborted=!0,u.emit("aborted")):(u.complete=!0,u.socket=null,u.connection=null)}),e?(u.upgrade=!0,this.emit("connect",u,n,Buffer.alloc(0))?this.emit("close"):n.destroy()):(n.on("data",f=>{!u._dumped&&!u.push(f)&&n.pause()}),n.once("end",()=>{u.push(null)}),this.emit("response",u)||u._dump())})),n.once("headers",i(o=>this.emit("information",{statusCode:o[tk]}))),n.once("trailers",i((o,a,c)=>{let{res:u}=this;u.trailers=o,u.rawTrailers=c}));let{socket:s}=n.session;this.socket=s,this.connection=s;for(let o of this[wa])o();this.emit("socket",this.socket)};if(this[vy])try{r(this[vy].request(this[dt]))}catch(n){this.emit("error",n)}else{this.reusedSocket=!0;try{r(await this.agent.request(this[_y],this[ik],this[dt]))}catch(n){this.emit("error",n)}}}getHeader(e){if(typeof e!="string")throw new yy("name","string",e);return this[dt][e.toLowerCase()]}get headersSent(){return this[Fl]}removeHeader(e){if(typeof e!="string")throw new yy("name","string",e);if(this.headersSent)throw new ek("remove");delete this[dt][e.toLowerCase()]}setHeader(e,r){if(this.headersSent)throw new ek("set");if(typeof e!="string"||!j9.test(e)&&!N9(e))throw new M9("Header name",e);if(typeof r>"u")throw new F9(r,e);if(H9.test(r))throw new q9("header content",e);this[dt][e.toLowerCase()]=r}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,r){let n=()=>this._request.setTimeout(e,r);return this._request?n():this[wa].push(n),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(e){}};sk.exports=by});var ak=y((_X,ok)=>{"use strict";l();var $9=require("tls");ok.exports=(t={},e=$9.connect)=>new Promise((r,n)=>{let i=!1,s,o=async()=>{await c,s.off("timeout",a),s.off("error",n),t.resolveSocket?(r({alpnProtocol:s.alpnProtocol,socket:s,timeout:i}),i&&(await Promise.resolve(),s.emit("timeout"))):(s.destroy(),r({alpnProtocol:s.alpnProtocol,timeout:i}))},a=async()=>{i=!0,o()},c=(async()=>{try{s=await e(t,o),s.on("error",n),s.once("timeout",a)}catch(u){n(u)}})()})});var uk=y((vX,ck)=>{"use strict";l();var U9=require("net");ck.exports=t=>{let e=t.host,r=t.headers&&t.headers.host;return r&&(r.startsWith("[")?r.indexOf("]")===-1?e=r:e=r.slice(1,-1):e=r.split(":",1)[0]),U9.isIP(e)?"":e}});var hk=y((bX,xy)=>{"use strict";l();var lk=require("http"),wy=require("https"),G9=ak(),V9=fy(),W9=Ey(),z9=uk(),Y9=gy(),ql=new V9({maxSize:100}),xa=new Map,fk=(t,e,r)=>{e._httpMessage={shouldKeepAlive:!0};let n=()=>{t.emit("free",e,r)};e.on("free",n);let i=()=>{t.removeSocket(e,r)};e.on("close",i);let s=()=>{t.removeSocket(e,r),e.off("close",i),e.off("free",n),e.off("agentRemove",s)};e.on("agentRemove",s),t.emit("free",e,r)},K9=async t=>{let e=`${t.host}:${t.port}:${t.ALPNProtocols.sort()}`;if(!ql.has(e)){if(xa.has(e))return(await xa.get(e)).alpnProtocol;let{path:r,agent:n}=t;t.path=t.socketPath;let i=G9(t);xa.set(e,i);try{let{socket:s,alpnProtocol:o}=await i;if(ql.set(e,o),t.path=r,o==="h2")s.destroy();else{let{globalAgent:a}=wy,c=wy.Agent.prototype.createConnection;n?n.createConnection===c?fk(n,s,t):s.destroy():a.createConnection===c?fk(a,s,t):s.destroy()}return xa.delete(e),o}catch(s){throw xa.delete(e),s}}return ql.get(e)};xy.exports=async(t,e,r)=>{if((typeof t=="string"||t instanceof URL)&&(t=Y9(new URL(t))),typeof e=="function"&&(r=e,e=void 0),e={ALPNProtocols:["h2","http/1.1"],...t,...e,resolveSocket:!0},!Array.isArray(e.ALPNProtocols)||e.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");e.protocol=e.protocol||"https:";let n=e.protocol==="https:";e.host=e.hostname||e.host||"localhost",e.session=e.tlsSession,e.servername=e.servername||z9(e),e.port=e.port||(n?443:80),e._defaultAgent=n?wy.globalAgent:lk.globalAgent;let i=e.agent;if(i){if(i.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");e.agent=i[n?"https":"http"]}return n&&await K9(e)==="h2"?(i&&(e.agent=i.http2),new W9(e,r)):lk.request(e,r)};xy.exports.protocolCache=ql});var pk=y((EX,dk)=>{"use strict";l();var Z9=require("http2"),J9=dy(),Sy=Ey(),X9=my(),Q9=hk(),eG=(t,e,r)=>new Sy(t,e,r),tG=(t,e,r)=>{let n=new Sy(t,e,r);return n.end(),n};dk.exports={...Z9,ClientRequest:Sy,IncomingMessage:X9,...J9,request:eG,get:tG,auto:Q9}});var Cy=y(Ay=>{"use strict";l();Object.defineProperty(Ay,"__esModule",{value:!0});var mk=on();Ay.default=t=>mk.default.nodeStream(t)&&mk.default.function_(t.getBoundary)});var vk=y(Ry=>{"use strict";l();Object.defineProperty(Ry,"__esModule",{value:!0});var yk=require("fs"),_k=require("util"),gk=on(),rG=Cy(),nG=_k.promisify(yk.stat);Ry.default=async(t,e)=>{if(e&&"content-length"in e)return Number(e["content-length"]);if(!t)return 0;if(gk.default.string(t))return Buffer.byteLength(t);if(gk.default.buffer(t))return t.length;if(rG.default(t))return _k.promisify(t.getLength.bind(t))();if(t instanceof yk.ReadStream){let{size:r}=await nG(t.path);return r===0?void 0:r}}});var Ty=y(Oy=>{"use strict";l();Object.defineProperty(Oy,"__esModule",{value:!0});function iG(t,e,r){let n={};for(let i of r)n[i]=(...s)=>{e.emit(i,...s)},t.on(i,n[i]);return()=>{for(let i of r)t.off(i,n[i])}}Oy.default=iG});var bk=y(ky=>{"use strict";l();Object.defineProperty(ky,"__esModule",{value:!0});ky.default=()=>{let t=[];return{once(e,r,n){e.once(r,n),t.push({origin:e,event:r,fn:n})},unhandleAll(){for(let e of t){let{origin:r,event:n,fn:i}=e;r.removeListener(n,i)}t.length=0}}}});var wk=y(Sa=>{"use strict";l();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.TimeoutError=void 0;var sG=require("net"),oG=bk(),Ek=Symbol("reentry"),aG=()=>{},Bl=class extends Error{constructor(e,r){super(`Timeout awaiting '${r}' for ${e}ms`),this.event=r,this.name="TimeoutError",this.code="ETIMEDOUT"}};Sa.TimeoutError=Bl;Sa.default=(t,e,r)=>{if(Ek in t)return aG;t[Ek]=!0;let n=[],{once:i,unhandleAll:s}=oG.default(),o=(h,d,m)=>{var g;let E=setTimeout(d,h,h,m);(g=E.unref)===null||g===void 0||g.call(E);let v=()=>{clearTimeout(E)};return n.push(v),v},{host:a,hostname:c}=r,u=(h,d)=>{t.destroy(new Bl(h,d))},f=()=>{for(let h of n)h();s()};if(t.once("error",h=>{if(f(),t.listenerCount("error")===0)throw h}),t.once("close",f),i(t,"response",h=>{i(h,"end",f)}),typeof e.request<"u"&&o(e.request,u,"request"),typeof e.socket<"u"){let h=()=>{u(e.socket,"socket")};t.setTimeout(e.socket,h),n.push(()=>{t.removeListener("timeout",h)})}return i(t,"socket",h=>{var d;let{socketPath:m}=t;if(h.connecting){let g=Boolean(m!=null?m:sG.isIP((d=c!=null?c:a)!==null&&d!==void 0?d:"")!==0);if(typeof e.lookup<"u"&&!g&&typeof h.address().address>"u"){let E=o(e.lookup,u,"lookup");i(h,"lookup",E)}if(typeof e.connect<"u"){let E=()=>o(e.connect,u,"connect");g?i(h,"connect",E()):i(h,"lookup",v=>{v===null&&i(h,"connect",E())})}typeof e.secureConnect<"u"&&r.protocol==="https:"&&i(h,"connect",()=>{let E=o(e.secureConnect,u,"secureConnect");i(h,"secureConnect",E)})}if(typeof e.send<"u"){let g=()=>o(e.send,u,"send");h.connecting?i(h,"connect",()=>{i(t,"upload-complete",g())}):i(t,"upload-complete",g())}}),typeof e.response<"u"&&i(t,"upload-complete",()=>{let h=o(e.response,u,"response");i(t,"response",h)}),f}});var Sk=y(Py=>{"use strict";l();Object.defineProperty(Py,"__esModule",{value:!0});var xk=on();Py.default=t=>{t=t;let e={protocol:t.protocol,hostname:xk.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return xk.default.string(t.port)&&t.port.length>0&&(e.port=Number(t.port)),(t.username||t.password)&&(e.auth=`${t.username||""}:${t.password||""}`),e}});var Ak=y(Iy=>{"use strict";l();Object.defineProperty(Iy,"__esModule",{value:!0});var cG=require("url"),uG=["protocol","host","hostname","port","pathname","search"];Iy.default=(t,e)=>{var r,n;if(e.path){if(e.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(e.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(e.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(e.search&&e.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!t){if(!e.protocol)throw new TypeError("No URL protocol specified");t=`${e.protocol}//${(n=(r=e.hostname)!==null&&r!==void 0?r:e.host)!==null&&n!==void 0?n:""}`}let i=new cG.URL(t);if(e.path){let s=e.path.indexOf("?");s===-1?e.pathname=e.path:(e.pathname=e.path.slice(0,s),e.search=e.path.slice(s+1)),delete e.path}for(let s of uG)e[s]&&(i[s]=e[s].toString());return i}});var Ck=y(Ny=>{"use strict";l();Object.defineProperty(Ny,"__esModule",{value:!0});var Ly=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(e,r){typeof e=="object"?this.weakMap.set(e,r):this.map.set(e,r)}get(e){return typeof e=="object"?this.weakMap.get(e):this.map.get(e)}has(e){return typeof e=="object"?this.weakMap.has(e):this.map.has(e)}};Ny.default=Ly});var My=y(Dy=>{"use strict";l();Object.defineProperty(Dy,"__esModule",{value:!0});var lG=async t=>{let e=[],r=0;for await(let n of t)e.push(n),r+=Buffer.byteLength(n);return Buffer.isBuffer(e[0])?Buffer.concat(e,r):Buffer.from(e.join(""))};Dy.default=lG});var Ok=y(Ei=>{"use strict";l();Object.defineProperty(Ei,"__esModule",{value:!0});Ei.dnsLookupIpVersionToFamily=Ei.isDnsLookupIpVersion=void 0;var Rk={auto:0,ipv4:4,ipv6:6};Ei.isDnsLookupIpVersion=t=>t in Rk;Ei.dnsLookupIpVersionToFamily=t=>{if(Ei.isDnsLookupIpVersion(t))return Rk[t];throw new Error("Invalid DNS lookup IP version")}});var Fy=y(jl=>{"use strict";l();Object.defineProperty(jl,"__esModule",{value:!0});jl.isResponseOk=void 0;jl.isResponseOk=t=>{let{statusCode:e}=t,r=t.request.options.followRedirect?299:399;return e>=200&&e<=r||e===304}});var kk=y(qy=>{"use strict";l();Object.defineProperty(qy,"__esModule",{value:!0});var Tk=new Set;qy.default=t=>{Tk.has(t)||(Tk.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}});var Pk=y(By=>{"use strict";l();Object.defineProperty(By,"__esModule",{value:!0});var Re=on(),fG=(t,e)=>{if(Re.default.null_(t.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");Re.assert.any([Re.default.string,Re.default.undefined],t.encoding),Re.assert.any([Re.default.boolean,Re.default.undefined],t.resolveBodyOnly),Re.assert.any([Re.default.boolean,Re.default.undefined],t.methodRewriting),Re.assert.any([Re.default.boolean,Re.default.undefined],t.isStream),Re.assert.any([Re.default.string,Re.default.undefined],t.responseType),t.responseType===void 0&&(t.responseType="text");let{retry:r}=t;if(e?t.retry={...e.retry}:t.retry={calculateDelay:n=>n.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},Re.default.object(r)?(t.retry={...t.retry,...r},t.retry.methods=[...new Set(t.retry.methods.map(n=>n.toUpperCase()))],t.retry.statusCodes=[...new Set(t.retry.statusCodes)],t.retry.errorCodes=[...new Set(t.retry.errorCodes)]):Re.default.number(r)&&(t.retry.limit=r),Re.default.undefined(t.retry.maxRetryAfter)&&(t.retry.maxRetryAfter=Math.min(...[t.timeout.request,t.timeout.connect].filter(Re.default.number))),Re.default.object(t.pagination)){e&&(t.pagination={...e.pagination,...t.pagination});let{pagination:n}=t;if(!Re.default.function_(n.transform))throw new Error("`options.pagination.transform` must be implemented");if(!Re.default.function_(n.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!Re.default.function_(n.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!Re.default.function_(n.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return t.responseType==="json"&&t.headers.accept===void 0&&(t.headers.accept="application/json"),t};By.default=fG});var Ik=y(Aa=>{"use strict";l();Object.defineProperty(Aa,"__esModule",{value:!0});Aa.retryAfterStatusCodes=void 0;Aa.retryAfterStatusCodes=new Set([413,429,503]);var hG=({attemptCount:t,retryOptions:e,error:r,retryAfter:n})=>{if(t>e.limit)return 0;let i=e.methods.includes(r.options.method),s=e.errorCodes.includes(r.code),o=r.response&&e.statusCodes.includes(r.response.statusCode);if(!i||!s&&!o)return 0;if(r.response){if(n)return e.maxRetryAfter===void 0||n>e.maxRetryAfter?0:n;if(r.response.statusCode===413)return 0}let a=Math.random()*100;return 2**(t-1)*1e3+a};Aa.default=hG});var Oa=y(pe=>{"use strict";l();Object.defineProperty(pe,"__esModule",{value:!0});pe.UnsupportedProtocolError=pe.ReadError=pe.TimeoutError=pe.UploadError=pe.CacheError=pe.HTTPError=pe.MaxRedirectsError=pe.RequestError=pe.setNonEnumerableProperties=pe.knownHookEvents=pe.withoutBody=pe.kIsNormalizedAlready=void 0;var Lk=require("util"),Nk=require("stream"),dG=require("fs"),Bn=require("url"),Dk=require("http"),jy=require("http"),pG=require("https"),mG=YT(),gG=t2(),Mk=D2(),yG=B2(),_G=pk(),vG=Dl(),O=on(),bG=vk(),Fk=Cy(),EG=Ty(),qk=wk(),wG=Sk(),Bk=Ak(),xG=Ck(),SG=My(),jk=Ok(),AG=Fy(),jn=kk(),CG=Pk(),RG=Ik(),Hy,tt=Symbol("request"),Ul=Symbol("response"),Ks=Symbol("responseSize"),Zs=Symbol("downloadedSize"),Js=Symbol("bodySize"),Xs=Symbol("uploadedSize"),Hl=Symbol("serverResponsesPiped"),Hk=Symbol("unproxyEvents"),$k=Symbol("isFromCache"),$y=Symbol("cancelTimeouts"),Uk=Symbol("startedReading"),Qs=Symbol("stopReading"),$l=Symbol("triggerRead"),Hn=Symbol("body"),Ca=Symbol("jobs"),Gk=Symbol("originalResponse"),Vk=Symbol("retryTimeout");pe.kIsNormalizedAlready=Symbol("isNormalizedAlready");var OG=O.default.string(process.versions.brotli);pe.withoutBody=new Set(["GET","HEAD"]);pe.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function TG(t){for(let e in t){let r=t[e];if(!O.default.string(r)&&!O.default.number(r)&&!O.default.boolean(r)&&!O.default.null_(r)&&!O.default.undefined(r))throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}function kG(t){return O.default.object(t)&&!("statusCode"in t)}var Uy=new xG.default,PG=async t=>new Promise((e,r)=>{let n=i=>{r(i)};t.pending||e(),t.once("error",n),t.once("ready",()=>{t.off("error",n),e()})}),IG=new Set([300,301,302,303,304,307,308]),LG=["context","body","json","form"];pe.setNonEnumerableProperties=(t,e)=>{let r={};for(let n of t)if(!!n)for(let i of LG)i in n&&(r[i]={writable:!0,configurable:!0,enumerable:!1,value:n[i]});Object.defineProperties(e,r)};var Be=class extends Error{constructor(e,r,n){var i,s;if(super(e),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(i=r.code)!==null&&i!==void 0?i:"ERR_GOT_REQUEST_ERROR",n instanceof Zl?(Object.defineProperty(this,"request",{enumerable:!1,value:n}),Object.defineProperty(this,"response",{enumerable:!1,value:n[Ul]}),Object.defineProperty(this,"options",{enumerable:!1,value:n.options})):Object.defineProperty(this,"options",{enumerable:!1,value:n}),this.timings=(s=this.request)===null||s===void 0?void 0:s.timings,O.default.string(r.stack)&&O.default.string(this.stack)){let o=this.stack.indexOf(this.message)+this.message.length,a=this.stack.slice(o).split(`
|
|
53
53
|
`).reverse(),c=r.stack.slice(r.stack.indexOf(r.message)+r.message.length).split(`
|
|
54
54
|
`).reverse();for(;c.length!==0&&c[0]===a[0];)a.shift();this.stack=`${this.stack.slice(0,o)}${a.reverse().join(`
|
|
55
55
|
`)}${c.reverse().join(`
|
|
56
|
-
`)}`}}};pe.RequestError=Be;var Gl=class extends Be{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};pe.MaxRedirectsError=Gl;var Vl=class extends Be{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};pe.HTTPError=Vl;var Wl=class extends Be{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};pe.CacheError=Wl;var zl=class extends Be{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};pe.UploadError=zl;var Yl=class extends Be{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};pe.TimeoutError=Yl;var Ra=class extends Be{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};pe.ReadError=Ra;var Kl=class extends Be{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};pe.UnsupportedProtocolError=Kl;var NG=["socket","connect","continue","information","upgrade","timeout"],Zl=class extends Nk.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[Zs]=0,this[Xs]=0,this.requestInitialized=!1,this[Hl]=new Set,this.redirects=[],this[Qs]=!1,this[$l]=!1,this[Ca]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",u=>{u.prependListener("data",i),u.on("data",s),u.prependListener("end",i),u.on("end",s)}),this.on("unpipe",u=>{u.off("data",i),u.off("data",s),u.off("end",i),u.off("end",s)}),this.on("pipe",u=>{u instanceof jy.IncomingMessage&&(this.options.headers={...u.headers,...this.options.headers})});let{json:o,body:a,form:c}=r;if((o||a||c)&&this._lockWrite(),pe.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(u){O.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(u);return}(async()=>{var u;try{this.options.body instanceof dG.ReadStream&&await PG(this.options.body);let{url:f}=this.options;if(!f)throw new TypeError("Missing `url` property");if(this.requestUrl=f.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(u=this[tt])===null||u===void 0||u.destroy();return}for(let h of this[Ca])h();this[Ca].length=0,this.requestInitialized=!0}catch(f){if(f instanceof Be){this._beforeError(f);return}this.destroyed||this.destroy(f)}})()}static normalizeArguments(e,r,n){var i,s,o,a,c;let u=r;if(O.default.object(e)&&!O.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),O.default.urlInstance(r.url)&&(r.url=new Bn.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),O.assert.any([O.default.string,O.default.undefined],r.method),O.assert.any([O.default.object,O.default.undefined],r.headers),O.assert.any([O.default.string,O.default.urlInstance,O.default.undefined],r.prefixUrl),O.assert.any([O.default.object,O.default.undefined],r.cookieJar),O.assert.any([O.default.object,O.default.string,O.default.undefined],r.searchParams),O.assert.any([O.default.object,O.default.string,O.default.undefined],r.cache),O.assert.any([O.default.object,O.default.number,O.default.undefined],r.timeout),O.assert.any([O.default.object,O.default.undefined],r.context),O.assert.any([O.default.object,O.default.undefined],r.hooks),O.assert.any([O.default.boolean,O.default.undefined],r.decompress),O.assert.any([O.default.boolean,O.default.undefined],r.ignoreInvalidCookies),O.assert.any([O.default.boolean,O.default.undefined],r.followRedirect),O.assert.any([O.default.number,O.default.undefined],r.maxRedirects),O.assert.any([O.default.boolean,O.default.undefined],r.throwHttpErrors),O.assert.any([O.default.boolean,O.default.undefined],r.http2),O.assert.any([O.default.boolean,O.default.undefined],r.allowGetBody),O.assert.any([O.default.string,O.default.undefined],r.localAddress),O.assert.any([jk.isDnsLookupIpVersion,O.default.undefined],r.dnsLookupIpVersion),O.assert.any([O.default.object,O.default.undefined],r.https),O.assert.any([O.default.boolean,O.default.undefined],r.rejectUnauthorized),r.https&&(O.assert.any([O.default.boolean,O.default.undefined],r.https.rejectUnauthorized),O.assert.any([O.default.function_,O.default.undefined],r.https.checkServerIdentity),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.certificateAuthority),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.key),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.certificate),O.assert.any([O.default.string,O.default.undefined],r.https.passphrase),O.assert.any([O.default.string,O.default.buffer,O.default.array,O.default.undefined],r.https.pfx)),O.assert.any([O.default.object,O.default.undefined],r.cacheOptions),O.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=vG({...n==null?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(n==null?void 0:n.searchParams)){let g;if(O.default.string(r.searchParams)||r.searchParams instanceof Bn.URLSearchParams)g=new Bn.URLSearchParams(r.searchParams);else{TG(r.searchParams),g=new Bn.URLSearchParams;for(let m in r.searchParams){let E=r.searchParams[m];E===null?g.append(m,""):E!==void 0&&g.append(m,E)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((m,E)=>{g.has(E)||g.append(E,m)}),r.searchParams=g}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",O.default.undefined(r.prefixUrl)?r.prefixUrl=(a=n==null?void 0:n.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),O.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=Bk.default(r.prefixUrl+r.url,r)}else(O.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=Bk.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:g}=r;Object.defineProperty(r,"prefixUrl",{set:E=>{let v=r.url;if(!v.href.startsWith(E))throw new Error(`Cannot change \`prefixUrl\` from ${g} to ${E}: ${v.href}`);r.url=new Bn.URL(E+v.href.slice(g.length)),g=E},get:()=>g});let{protocol:m}=r.url;if(m==="unix:"&&(m="http:",r.url=new Bn.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),m!=="http:"&&m!=="https:")throw new Kl(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:f}=r;if(f){let{setCookie:g,getCookieString:m}=f;O.assert.function_(g),O.assert.function_(m),g.length===4&&m.length===0&&(g=Lk.promisify(g.bind(r.cookieJar)),m=Lk.promisify(m.bind(r.cookieJar)),r.cookieJar={setCookie:g,getCookieString:m})}let{cache:h}=r;if(h&&(Uy.has(h)||Uy.set(h,new Mk((g,m)=>{let E=g[tt](g,m);return O.default.promise(E)&&(E.once=(v,A)=>{if(v==="error")E.catch(A);else if(v==="abort")(async()=>{try{(await E).once("abort",A)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${v}`);return E}),E},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)Hy||(Hy=new gG.default),r.dnsCache=Hy;else if(!O.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${O.default(r.dnsCache)}`);O.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let d=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let g of pe.knownHookEvents)if(g in r.hooks)if(O.default.array(r.hooks[g]))r.hooks[g]=[...r.hooks[g]];else throw new TypeError(`Parameter \`${g}\` must be an Array, got ${O.default(r.hooks[g])}`);else r.hooks[g]=[];if(n&&!d)for(let g of pe.knownHookEvents)n.hooks[g].length>0&&(r.hooks[g]=[...n.hooks[g],...r.hooks[g]]);if("family"in r&&jn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&jn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&jn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&jn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&jn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&jn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&jn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&jn.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let g in r.agent)if(g!=="http"&&g!=="https"&&g!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${g}\``)}return r.maxRedirects=(c=r.maxRedirects)!==null&&c!==void 0?c:0,pe.setNonEnumerableProperties([n,u],r),CG.default(r,n)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!O.default.undefined(e.form),i=!O.default.undefined(e.json),s=!O.default.undefined(e.body),o=n||i||s,a=pe.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,n,i].filter(c=>c).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof Nk.Readable)&&!O.default.string(e.body)&&!O.default.buffer(e.body)&&!Fk.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!O.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let c=!O.default.string(r["content-type"]);s?(Fk.default(e.body)&&c&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Hn]=e.body):n?(c&&(r["content-type"]="application/x-www-form-urlencoded"),this[Hn]=new Bn.URLSearchParams(e.form).toString()):(c&&(r["content-type"]="application/json"),this[Hn]=e.stringifyJson(e.json));let u=await bG.default(this[Hn],e.headers);O.default.undefined(r["content-length"])&&O.default.undefined(r["transfer-encoding"])&&!a&&!O.default.undefined(u)&&(r["content-length"]=String(u))}}else a?this._lockWrite():this._unlockWrite();this[Js]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[Gk]=e,r.decompress&&(e=yG(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:Dk.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[$k]=s.isFromCache,this[Ks]=Number(e.headers["content-length"])||void 0,this[Ul]=e,e.once("end",()=>{this[Ks]=this[Zs],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Ra(a,this))}),e.once("aborted",()=>{this._beforeError(new Ra({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(O.default.object(r.cookieJar)&&o){let a=o.map(async c=>r.cookieJar.setCookie(c,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async c=>c.catch(()=>{})));try{await Promise.all(a)}catch(c){this._beforeError(c);return}}if(r.followRedirect&&e.headers.location&&IG.has(i)){if(e.resume(),this[tt]&&(this[$y](),delete this[tt],this[Hk]()),(i===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Hn]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Gl(this));return}try{let h=function(d){return d.protocol==="unix:"||d.hostname==="unix"},c=Buffer.from(e.headers.location,"binary").toString(),u=new Bn.URL(c,n),f=u.toString();if(decodeURI(f),!h(n)&&h(u)){this._beforeError(new Be("Cannot redirect to UNIX socket",{},this));return}u.hostname!==n.hostname||u.port!==n.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(u.username=r.username,u.password=r.password),this.redirects.push(f),r.url=u;for(let d of r.hooks.beforeRedirect)await d(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(c){this._beforeError(c);return}return}if(r.isStream&&r.throwHttpErrors&&!AG.isResponseOk(s)){this._beforeError(new Vl(s));return}e.on("readable",()=>{this[$l]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[Hl])if(!a.headersSent){for(let c in e.headers){let u=r.decompress?c!=="content-encoding":!0,f=e.headers[c];u&&a.setHeader(c,f)}a.statusCode=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;mG.default(e),this[$y]=qk.default(e,n,i);let s=r.cache?"cacheableResponse":"response";e.once(s,c=>{this._onResponse(c)}),e.once("error",c=>{var u;e.destroy(),(u=e.res)===null||u===void 0||u.removeAllListeners("end"),c=c instanceof qk.TimeoutError?new Yl(c,this.timings,this):new Be(c.message,c,this),this._beforeError(c)}),this[Hk]=EG.default(e,this,NG),this[tt]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Hn],a=this.redirects.length===0?this:e;O.default.nodeStream(o)?(o.pipe(a),o.once("error",c=>{this._beforeError(new zl(c,this))})):(this._unlockWrite(),O.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((n,i)=>{Object.assign(r,wG.default(e)),delete r.url;let s,o=Uy.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let A in a)if(O.default.undefined(a[A]))delete a[A];else if(O.default.null_(a[A]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${A}\` header`);if(o.decompress&&O.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=OG?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let A=await o.cookieJar.getCookieString(o.url.toString());O.default.nonEmptyString(A)&&(o.headers.cookie=A)}for(let A of o.hooks.beforeRequest){let P=await A(o);if(!O.default.undefined(P)){o.request=()=>P;break}}o.body&&this[Hn]!==o.body&&(this[Hn]=o.body);let{agent:c,request:u,timeout:f,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let A=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(A!=null&&A.groups){let{socketPath:P,path:D}=A.groups;Object.assign(o,{socketPath:P,path:D,host:""})}}let d=h.protocol==="https:",g;o.http2?g=_G.auto:g=d?pG.request:Dk.request;let m=(e=o.request)!==null&&e!==void 0?e:g,E=o.cache?this._createCacheableRequest:m;c&&!o.http2&&(o.agent=c[d?"https":"http"]),o[tt]=m,delete o.request,delete o.timeout;let v=o;if(v.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,v.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,v.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,v.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{v.family=jk.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(v.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(v.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(v.ca=o.https.certificateAuthority),o.https.certificate&&(v.cert=o.https.certificate),o.https.key&&(v.key=o.https.key),o.https.passphrase&&(v.passphrase=o.https.passphrase),o.https.pfx&&(v.pfx=o.https.pfx));try{let A=await E(h,v);O.default.undefined(A)&&(A=g(h,v)),o.request=u,o.timeout=f,o.agent=c,o.https&&("rejectUnauthorized"in o.https&&delete v.rejectUnauthorized,o.https.checkServerIdentity&&delete v.checkServerIdentity,o.https.certificateAuthority&&delete v.ca,o.https.certificate&&delete v.cert,o.https.key&&delete v.key,o.https.passphrase&&delete v.passphrase,o.https.pfx&&delete v.pfx),kG(A)?this._onRequest(A):this.writable?(this.once("finish",()=>{this._onResponse(A)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(A)}catch(A){throw A instanceof Mk.CacheError?new Wl(A,this):new Be(A.message,A,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Be(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[Qs])return;let{options:r}=this,n=this.retryCount+1;this[Qs]=!0,e instanceof Be||(e=new Be(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await SG.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:RG.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Be(a.message,a,this));return}if(o){let a=async()=>{try{for(let c of this.options.hooks.beforeRetry)await c(this.options,i,n)}catch(c){this._error(new Be(c.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[Vk]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[$l]=!0;let e=this[Ul];if(e&&!this[Qs]){e.readableLength&&(this[$l]=!1);let r;for(;(r=e.read())!==null;){this[Zs]+=r.length,this[Uk]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[Ca].push(i)}_writeRequest(e,r,n){this[tt].destroyed||(this._progressCallbacks.push(()=>{this[Xs]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[tt].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(tt in this)){e();return}if(this[tt].destroyed){e();return}this[tt].end(n=>{n||(this[Js]=this[Xs],this.emit("uploadProgress",this.uploadProgress),this[tt].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[Ca].push(r)}_destroy(e,r){var n;this[Qs]=!0,clearTimeout(this[Vk]),tt in this&&(this[$y](),!((n=this[Ul])===null||n===void 0)&&n.complete||this[tt].destroy()),e!==null&&!O.default.undefined(e)&&!(e instanceof Be)&&(e=new Be(e.message,e,this)),r(e)}get _isAboutToError(){return this[Qs]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[tt])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[Gk])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[tt])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Ks]?e=this[Zs]/this[Ks]:this[Ks]===this[Zs]?e=1:e=0,{percent:e,transferred:this[Zs],total:this[Ks]}}get uploadProgress(){let e;return this[Js]?e=this[Xs]/this[Js]:this[Js]===this[Xs]?e=1:e=0,{percent:e,transferred:this[Xs],total:this[Js]}}get timings(){var e;return(e=this[tt])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[$k]}pipe(e,r){if(this[Uk])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof jy.ServerResponse&&this[Hl].add(e),super.pipe(e,r)}unpipe(e){return e instanceof jy.ServerResponse&&this[Hl].delete(e),super.unpipe(e),this}};pe.default=Zl});var Ta=y(dr=>{"use strict";l();var DG=dr&&dr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),MG=dr&&dr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&DG(e,t,r)};Object.defineProperty(dr,"__esModule",{value:!0});dr.CancelError=dr.ParseError=void 0;var Wk=Oa(),Gy=class extends Wk.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};dr.ParseError=Gy;var Vy=class extends Wk.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};dr.CancelError=Vy;MG(Oa(),dr)});var Yk=y(Wy=>{"use strict";l();Object.defineProperty(Wy,"__esModule",{value:!0});var zk=Ta(),FG=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new zk.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new zk.ParseError(s,t)}};Wy.default=FG});var zy=y($n=>{"use strict";l();var qG=$n&&$n.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),BG=$n&&$n.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&qG(e,t,r)};Object.defineProperty($n,"__esModule",{value:!0});var jG=require("events"),HG=on(),$G=WT(),Jl=Ta(),Kk=Yk(),Zk=Oa(),UG=Ty(),GG=My(),Jk=Fy(),VG=["request","response","redirect","uploadProgress","downloadProgress"];function Xk(t){let e,r,n=new jG.EventEmitter,i=new $G((o,a,c)=>{let u=f=>{let h=new Zk.default(void 0,t);h.retryCount=f,h._noPipe=!0,c(()=>h.destroy()),c.shouldReject=!1,c(()=>a(new Jl.CancelError(h))),e=h,h.once("response",async m=>{var E;if(m.retryCount=f,m.request.aborted)return;let v;try{v=await GG.default(h),m.rawBody=v}catch{return}if(h._isAboutToError)return;let A=((E=m.headers["content-encoding"])!==null&&E!==void 0?E:"").toLowerCase(),P=["gzip","deflate","br"].includes(A),{options:D}=h;if(P&&!D.decompress)m.body=v;else try{m.body=Kk.default(m,D.responseType,D.parseJson,D.encoding)}catch(ie){if(m.body=v.toString(),Jk.isResponseOk(m)){h._beforeError(ie);return}}try{for(let[ie,z]of D.hooks.afterResponse.entries())m=await z(m,async ue=>{let K=Zk.default.normalizeArguments(void 0,{...ue,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},D);K.hooks.afterResponse=K.hooks.afterResponse.slice(0,ie);for(let F of K.hooks.beforeRetry)await F(K);let Z=Xk(K);return c(()=>{Z.catch(()=>{}),Z.cancel()}),Z})}catch(ie){h._beforeError(new Jl.RequestError(ie.message,ie,h));return}if(r=m,!Jk.isResponseOk(m)){h._beforeError(new Jl.HTTPError(m));return}h.destroy(),o(h.options.resolveBodyOnly?m.body:m)});let d=m=>{if(i.isCanceled)return;let{options:E}=h;if(m instanceof Jl.HTTPError&&!E.throwHttpErrors){let{response:v}=m;o(h.options.resolveBodyOnly?v.body:v);return}a(m)};h.once("error",d);let g=h.options.body;h.once("retry",(m,E)=>{var v,A;if(g===((v=E.request)===null||v===void 0?void 0:v.options.body)&&HG.default.nodeStream((A=E.request)===null||A===void 0?void 0:A.options.body)){d(E);return}u(m)}),UG.default(h,n,VG)};u(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:c}=r.request;return Kk.default(r,o,c.parseJson,c.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}$n.default=Xk;BG(Ta(),$n)});var Qk=y(Yy=>{"use strict";l();Object.defineProperty(Yy,"__esModule",{value:!0});var WG=Ta();function zG(t,...e){let r=(async()=>{if(t instanceof WG.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Yy.default=zG});var rP=y(Ky=>{"use strict";l();Object.defineProperty(Ky,"__esModule",{value:!0});var eP=on();function tP(t){for(let e of Object.values(t))(eP.default.plainObject(e)||eP.default.array(e))&&tP(e);return Object.freeze(t)}Ky.default=tP});var iP=y(nP=>{"use strict";l();Object.defineProperty(nP,"__esModule",{value:!0})});var Zy=y(rr=>{"use strict";l();var YG=rr&&rr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),KG=rr&&rr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&YG(e,t,r)};Object.defineProperty(rr,"__esModule",{value:!0});rr.defaultHandler=void 0;var sP=on(),tr=zy(),ZG=Qk(),Ql=Oa(),JG=rP(),XG={RequestError:tr.RequestError,CacheError:tr.CacheError,ReadError:tr.ReadError,HTTPError:tr.HTTPError,MaxRedirectsError:tr.MaxRedirectsError,TimeoutError:tr.TimeoutError,ParseError:tr.ParseError,CancelError:tr.CancelError,UnsupportedProtocolError:tr.UnsupportedProtocolError,UploadError:tr.UploadError},QG=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:Xl}=Ql.default,oP=(...t)=>{let e;for(let r of t)e=Xl(void 0,r,e);return e},eV=t=>t.isStream?new Ql.default(void 0,t):tr.default(t),tV=t=>"defaults"in t&&"options"in t.defaults,rV=["get","post","put","patch","head","delete"];rr.defaultHandler=(t,e)=>e(t);var aP=(t,e)=>{if(t)for(let r of t)r(e)},cP=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(n=>(i,s)=>{let o,a=n(i,c=>(o=s(c),o));if(a!==o&&!i.isStream&&o){let c=a,{then:u,catch:f,finally:h}=c;Object.setPrototypeOf(c,Object.getPrototypeOf(o)),Object.defineProperties(c,Object.getOwnPropertyDescriptors(o)),c.then=u,c.catch=f,c.finally=h}return a});let e=(n,i={},s)=>{var o,a;let c=0,u=f=>t.handlers[c++](f,c===t.handlers.length?eV:u);if(sP.default.plainObject(n)){let f={...n,...i};Ql.setNonEnumerableProperties([n,i],f),i=f,n=void 0}try{let f;try{aP(t.options.hooks.init,i),aP((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(d){f=d}let h=Xl(n,i,s!=null?s:t.options);if(h[Ql.kIsNormalizedAlready]=!0,f)throw new tr.RequestError(f.message,f,h);return u(h)}catch(f){if(i.isStream)throw f;return ZG.default(f,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)tV(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==rr.defaultHandler),s.length===0&&s.push(rr.defaultHandler),cP({options:oP(...i),handlers:s,mutableDefaults:Boolean(o)})};let r=async function*(n,i){let s=Xl(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!sP.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:c}=o,u=0;for(;u<o.requestLimit;){u!==0&&await QG(o.backoff);let f=await e(void 0,void 0,s),h=await o.transform(f),d=[];for(let m of h)if(o.filter(m,a,d)&&(!o.shouldContinue(m,a,d)||(yield m,o.stackAllItems&&a.push(m),d.push(m),--c<=0)))return;let g=o.paginate(f,a,d);if(g===!1)return;g===f.request.options?s=f.request.options:g!==void 0&&(s=Xl(void 0,g,s)),u++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of rV)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,XG),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:JG.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=oP,e};rr.default=cP;KG(iP(),rr)});var fP=y((an,ef)=>{"use strict";l();var nV=an&&an.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),uP=an&&an.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&nV(e,t,r)};Object.defineProperty(an,"__esModule",{value:!0});var iV=require("url"),lP=Zy(),sV={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new iV.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[lP.defaultHandler],mutableDefaults:!1},Jy=lP.default(sV);an.default=Jy;ef.exports=Jy;ef.exports.default=Jy;ef.exports.__esModule=!0;uP(Zy(),an);uP(zy(),an)});var gP=y((zX,mP)=>{l();function nr(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}mP.exports=nr;nr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};nr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};nr.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};nr.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};nr.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};nr.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};nr.prototype.start=nr.prototype.try;nr.prototype.errors=function(){return this._errors};nr.prototype.attempts=function(){return this._attempts};nr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var yP=y(wi=>{l();var uV=gP();wi.operation=function(t){var e=wi.timeouts(t);return new uV(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};wi.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};wi.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};wi.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(c){var u=wi.operation(e),f=Array.prototype.slice.call(arguments,1),h=f.pop();f.push(function(d){u.retry(d)||(d&&(arguments[0]=u.mainError()),h.apply(this,arguments))}),u.attempt(function(){c.apply(t,f)})}.bind(t,o),t[s].options=e}}});var vP=y((KX,_P)=>{l();_P.exports=yP()});var EP=y((ZX,bP)=>{l();var lV=vP();function fV(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=lV.operation(s);function a(f){i(f||new Error("Aborted"))}function c(f,h){if(f.bail){a(f);return}o.retry(f)?s.onRetry&&s.onRetry(f,h):i(o.mainError())}function u(f){var h;try{h=t(a,f)}catch(d){c(d,f);return}Promise.resolve(h).then(n).catch(function(g){c(g,f)})}o.attempt(u)}return new Promise(r)}bP.exports=fV});var FP=y(Dr=>{"use strict";l();Object.defineProperty(Dr,"__esModule",{value:!0});function _7(t){return t&&t.__esModule?t:{default:t}}var LP=Object.defineProperty,PP=Object.getOwnPropertySymbols,v7=Object.prototype.hasOwnProperty,b7=Object.prototype.propertyIsEnumerable,IP=(t,e,r)=>e in t?LP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E7=(t,e)=>{for(var r in e||(e={}))v7.call(e,r)&&IP(t,r,e[r]);if(PP)for(var r of PP(e))b7.call(e,r)&&IP(t,r,e[r]);return t},w7=(t,e)=>{for(var r in e)LP(t,r,{get:e[r],enumerable:!0})},x7=(t,e,r)=>new Promise((n,i)=>{var s=c=>{try{a(r.next(c))}catch(u){i(u)}},o=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,o);a((r=r.apply(t,e)).next())}),NP={};w7(NP,{configDir:()=>MP,darwinConfig:()=>i0,getPathForPlatform:()=>o0,getPlatform:()=>n0,linuxConfig:()=>af,winConfig:()=>s0});var S7=require("fs/promises"),A7=require("path"),DP=_7(A7);function n0(){return process.platform}function af(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return DP.default.join(process.env.HOME,".config")}function i0(){if(process.env.HOME!==void 0)return DP.default.join(process.env.HOME,"/Library/Application Support")}function s0(){return process.env.APPDATA}function o0({platform:t}){switch(t){case"linux":return af();case"darwin":return i0();case"win32":return s0();default:return af()}}function MP(){return x7(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:n0(),n=o0({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield S7.stat.call(void 0,n),n}catch{return}}})}Dr.__spreadValues=E7;Dr.getPlatform=n0;Dr.linuxConfig=af;Dr.darwinConfig=i0;Dr.winConfig=s0;Dr.getPathForPlatform=o0;Dr.configDir=MP;Dr.config_dir_exports=NP});var qP=y(a0=>{"use strict";l();Object.defineProperty(a0,"__esModule",{value:!0});var C7=FP();a0.configDir=C7.configDir});var GP=y((BQ,F7)=>{F7.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var zP=y($t=>{"use strict";l();var WP=GP(),We=process.env;Object.defineProperty($t,"_vendors",{value:WP.map(function(t){return t.constant})});$t.name=null;$t.isPR=null;WP.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return VP(n)});if($t[t.constant]=r,!!r)switch($t.name=t.name,typeof t.pr){case"string":$t.isPR=!!We[t.pr];break;case"object":"env"in t.pr?$t.isPR=t.pr.env in We&&We[t.pr.env]!==t.pr.ne:"any"in t.pr?$t.isPR=t.pr.any.some(function(n){return!!We[n]}):$t.isPR=VP(t.pr);break;default:$t.isPR=null}});$t.isCI=!!(We.CI!=="false"&&(We.BUILD_ID||We.BUILD_NUMBER||We.CI||We.CI_APP_ID||We.CI_BUILD_ID||We.CI_BUILD_NUMBER||We.CI_NAME||We.CONTINUOUS_INTEGRATION||We.RUN_ID||$t.name||!1));function VP(t){return typeof t=="string"?!!We[t]:"env"in t?We[t.env]&&We[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!We[e]}):Object.keys(t).every(function(e){return We[e]===t[e]})}});l();l();var N0=le(L0(),1),{program:cW,createCommand:uW,createArgument:lW,createOption:fW,CommanderError:hW,InvalidArgumentError:dW,InvalidOptionArgumentError:pW,Command:D0,Argument:M0,Option:zn,Help:mW}=N0.default;l();l();l();var lo=require("fs"),u0=require("crypto");l();l();l();var tN=le($0());l();l();function Sf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}l();l();function go(t){return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(t)}l();function Af(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Cf(t,e){if(e&&(go(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Af(t)}l();function Yn(t){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yn(t)}l();l();function jr(t,e){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jr(t,e)}function Rf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jr(t,e)}l();l();function Of(t){return Function.toString.call(t).indexOf("[native code]")!==-1}l();l();function Tf(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Di(t,e,r){return Tf()?Di=Reflect.construct.bind():Di=function(i,s,o){var a=[null];a.push.apply(a,s);var c=Function.bind.apply(i,a),u=new c;return o&&jr(u,o.prototype),u},Di.apply(null,arguments)}function yo(t){var e=typeof Map=="function"?new Map:void 0;return yo=function(n){if(n===null||!Of(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Di(n,arguments,Yn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),jr(i,n)},yo(t)}var sh=le(s_()),tc=le(require("path")),rc=le(vb()),rN=function(t){Rf(e,t);function e(r){var n;return Sf(this,e),n=Cf(this,Yn(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(yo(Error));function nN(t,e){try{var r=rc.default.readJsonSync(tc.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(n){if(n.code!=="ENOENT")throw n}}function iN(t){try{var e=rc.default.readJsonSync(tc.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function sN(t){var e=rc.default.existsSync(tc.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function bb(t){var e={current:void 0},r=(0,sh.sync)(function(n){return[iN(n),nN(n,e),sN(n)].find(function(i){return i})},{cwd:t,type:"directory"});if(e.current===void 0)throw new rN(t);return r===void 0?e.current:r}var Eb=le(require("json5"));l();var oh=le(require("fs")),ko=le(require("path"));function ah({target:t,cwd:e,contentCheck:r}){let n=ko.default.parse(e).root,i=!1,s=e;for(;!i&&s!==n;){if(r)try{let o=oh.default.readFileSync(ko.default.join(s,t)).toString();if(r(o)){i=!0;break}}catch{}else if(oh.default.existsSync(ko.default.join(s,t))){i=!0;break}s=ko.default.dirname(s)}return i?s:null}function oN(t){let e=Eb.default.parse(t);return!(e&&"extends"in e)}var ch={};function nc(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,n=t||process.cwd();if(r&&ch[n])return ch[n];let i=ah({target:"turbo.json",cwd:n,contentCheck:oN});if(!i)try{if(i=bb(n),!i)return null}catch{return null}return r&&(ch[n]=i),i}l();var SH=le(require("fs")),AH=le(require("path"));l();function Fb(t){return typeof t>"u"||t===null}function aN(t){return typeof t=="object"&&t!==null}function cN(t){return Array.isArray(t)?t:Fb(t)?[]:[t]}function uN(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function lN(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function fN(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var hN=Fb,dN=aN,pN=cN,mN=lN,gN=fN,yN=uN,Ge={isNothing:hN,isObject:dN,toArray:pN,repeat:mN,isNegativeZero:gN,extend:yN};function qb(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
|
56
|
+
`)}`}}};pe.RequestError=Be;var Gl=class extends Be{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};pe.MaxRedirectsError=Gl;var Vl=class extends Be{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};pe.HTTPError=Vl;var Wl=class extends Be{constructor(e,r){super(e.message,e,r),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};pe.CacheError=Wl;var zl=class extends Be{constructor(e,r){super(e.message,e,r),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};pe.UploadError=zl;var Yl=class extends Be{constructor(e,r,n){super(e.message,e,n),this.name="TimeoutError",this.event=e.event,this.timings=r}};pe.TimeoutError=Yl;var Ra=class extends Be{constructor(e,r){super(e.message,e,r),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};pe.ReadError=Ra;var Kl=class extends Be{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};pe.UnsupportedProtocolError=Kl;var NG=["socket","connect","continue","information","upgrade","timeout"],Zl=class extends Nk.Duplex{constructor(e,r={},n){super({autoDestroy:!1,highWaterMark:0}),this[Zs]=0,this[Xs]=0,this.requestInitialized=!1,this[Hl]=new Set,this.redirects=[],this[Qs]=!1,this[$l]=!1,this[Ca]=[],this.retryCount=0,this._progressCallbacks=[];let i=()=>this._unlockWrite(),s=()=>this._lockWrite();this.on("pipe",u=>{u.prependListener("data",i),u.on("data",s),u.prependListener("end",i),u.on("end",s)}),this.on("unpipe",u=>{u.off("data",i),u.off("data",s),u.off("end",i),u.off("end",s)}),this.on("pipe",u=>{u instanceof jy.IncomingMessage&&(this.options.headers={...u.headers,...this.options.headers})});let{json:o,body:a,form:c}=r;if((o||a||c)&&this._lockWrite(),pe.kIsNormalizedAlready in r)this.options=r;else try{this.options=this.constructor.normalizeArguments(e,r,n)}catch(u){O.default.nodeStream(r.body)&&r.body.destroy(),this.destroy(u);return}(async()=>{var u;try{this.options.body instanceof dG.ReadStream&&await PG(this.options.body);let{url:f}=this.options;if(!f)throw new TypeError("Missing `url` property");if(this.requestUrl=f.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(u=this[tt])===null||u===void 0||u.destroy();return}for(let h of this[Ca])h();this[Ca].length=0,this.requestInitialized=!0}catch(f){if(f instanceof Be){this._beforeError(f);return}this.destroyed||this.destroy(f)}})()}static normalizeArguments(e,r,n){var i,s,o,a,c;let u=r;if(O.default.object(e)&&!O.default.urlInstance(e))r={...n,...e,...r};else{if(e&&r&&r.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");r={...n,...r},e!==void 0&&(r.url=e),O.default.urlInstance(r.url)&&(r.url=new Bn.URL(r.url.toString()))}if(r.cache===!1&&(r.cache=void 0),r.dnsCache===!1&&(r.dnsCache=void 0),O.assert.any([O.default.string,O.default.undefined],r.method),O.assert.any([O.default.object,O.default.undefined],r.headers),O.assert.any([O.default.string,O.default.urlInstance,O.default.undefined],r.prefixUrl),O.assert.any([O.default.object,O.default.undefined],r.cookieJar),O.assert.any([O.default.object,O.default.string,O.default.undefined],r.searchParams),O.assert.any([O.default.object,O.default.string,O.default.undefined],r.cache),O.assert.any([O.default.object,O.default.number,O.default.undefined],r.timeout),O.assert.any([O.default.object,O.default.undefined],r.context),O.assert.any([O.default.object,O.default.undefined],r.hooks),O.assert.any([O.default.boolean,O.default.undefined],r.decompress),O.assert.any([O.default.boolean,O.default.undefined],r.ignoreInvalidCookies),O.assert.any([O.default.boolean,O.default.undefined],r.followRedirect),O.assert.any([O.default.number,O.default.undefined],r.maxRedirects),O.assert.any([O.default.boolean,O.default.undefined],r.throwHttpErrors),O.assert.any([O.default.boolean,O.default.undefined],r.http2),O.assert.any([O.default.boolean,O.default.undefined],r.allowGetBody),O.assert.any([O.default.string,O.default.undefined],r.localAddress),O.assert.any([jk.isDnsLookupIpVersion,O.default.undefined],r.dnsLookupIpVersion),O.assert.any([O.default.object,O.default.undefined],r.https),O.assert.any([O.default.boolean,O.default.undefined],r.rejectUnauthorized),r.https&&(O.assert.any([O.default.boolean,O.default.undefined],r.https.rejectUnauthorized),O.assert.any([O.default.function_,O.default.undefined],r.https.checkServerIdentity),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.certificateAuthority),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.key),O.assert.any([O.default.string,O.default.object,O.default.array,O.default.undefined],r.https.certificate),O.assert.any([O.default.string,O.default.undefined],r.https.passphrase),O.assert.any([O.default.string,O.default.buffer,O.default.array,O.default.undefined],r.https.pfx)),O.assert.any([O.default.object,O.default.undefined],r.cacheOptions),O.default.string(r.method)?r.method=r.method.toUpperCase():r.method="GET",r.headers===(n==null?void 0:n.headers)?r.headers={...r.headers}:r.headers=vG({...n==null?void 0:n.headers,...r.headers}),"slashes"in r)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in r)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in r&&r.searchParams&&r.searchParams!==(n==null?void 0:n.searchParams)){let m;if(O.default.string(r.searchParams)||r.searchParams instanceof Bn.URLSearchParams)m=new Bn.URLSearchParams(r.searchParams);else{TG(r.searchParams),m=new Bn.URLSearchParams;for(let g in r.searchParams){let E=r.searchParams[g];E===null?m.append(g,""):E!==void 0&&m.append(g,E)}}(i=n==null?void 0:n.searchParams)===null||i===void 0||i.forEach((g,E)=>{m.has(E)||m.append(E,g)}),r.searchParams=m}if(r.username=(s=r.username)!==null&&s!==void 0?s:"",r.password=(o=r.password)!==null&&o!==void 0?o:"",O.default.undefined(r.prefixUrl)?r.prefixUrl=(a=n==null?void 0:n.prefixUrl)!==null&&a!==void 0?a:"":(r.prefixUrl=r.prefixUrl.toString(),r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")&&(r.prefixUrl+="/")),O.default.string(r.url)){if(r.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");r.url=Bk.default(r.prefixUrl+r.url,r)}else(O.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol)&&(r.url=Bk.default(r.prefixUrl,r));if(r.url){"port"in r&&delete r.port;let{prefixUrl:m}=r;Object.defineProperty(r,"prefixUrl",{set:E=>{let v=r.url;if(!v.href.startsWith(E))throw new Error(`Cannot change \`prefixUrl\` from ${m} to ${E}: ${v.href}`);r.url=new Bn.URL(E+v.href.slice(m.length)),m=E},get:()=>m});let{protocol:g}=r.url;if(g==="unix:"&&(g="http:",r.url=new Bn.URL(`http://unix${r.url.pathname}${r.url.search}`)),r.searchParams&&(r.url.search=r.searchParams.toString()),g!=="http:"&&g!=="https:")throw new Kl(r);r.username===""?r.username=r.url.username:r.url.username=r.username,r.password===""?r.password=r.url.password:r.url.password=r.password}let{cookieJar:f}=r;if(f){let{setCookie:m,getCookieString:g}=f;O.assert.function_(m),O.assert.function_(g),m.length===4&&g.length===0&&(m=Lk.promisify(m.bind(r.cookieJar)),g=Lk.promisify(g.bind(r.cookieJar)),r.cookieJar={setCookie:m,getCookieString:g})}let{cache:h}=r;if(h&&(Uy.has(h)||Uy.set(h,new Mk((m,g)=>{let E=m[tt](m,g);return O.default.promise(E)&&(E.once=(v,A)=>{if(v==="error")E.catch(A);else if(v==="abort")(async()=>{try{(await E).once("abort",A)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${v}`);return E}),E},h))),r.cacheOptions={...r.cacheOptions},r.dnsCache===!0)Hy||(Hy=new gG.default),r.dnsCache=Hy;else if(!O.default.undefined(r.dnsCache)&&!r.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${O.default(r.dnsCache)}`);O.default.number(r.timeout)?r.timeout={request:r.timeout}:n&&r.timeout!==n.timeout?r.timeout={...n.timeout,...r.timeout}:r.timeout={...r.timeout},r.context||(r.context={});let d=r.hooks===(n==null?void 0:n.hooks);r.hooks={...r.hooks};for(let m of pe.knownHookEvents)if(m in r.hooks)if(O.default.array(r.hooks[m]))r.hooks[m]=[...r.hooks[m]];else throw new TypeError(`Parameter \`${m}\` must be an Array, got ${O.default(r.hooks[m])}`);else r.hooks[m]=[];if(n&&!d)for(let m of pe.knownHookEvents)n.hooks[m].length>0&&(r.hooks[m]=[...n.hooks[m],...r.hooks[m]]);if("family"in r&&jn.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),n!=null&&n.https&&(r.https={...n.https,...r.https}),"rejectUnauthorized"in r&&jn.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in r&&jn.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in r&&jn.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in r&&jn.default('"options.key" was never documented, please use "options.https.key"'),"cert"in r&&jn.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in r&&jn.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in r&&jn.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in r)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(r.agent){for(let m in r.agent)if(m!=="http"&&m!=="https"&&m!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${m}\``)}return r.maxRedirects=(c=r.maxRedirects)!==null&&c!==void 0?c:0,pe.setNonEnumerableProperties([n,u],r),CG.default(r,n)}_lockWrite(){let e=()=>{throw new TypeError("The payload has been already provided")};this.write=e,this.end=e}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:e}=this,{headers:r}=e,n=!O.default.undefined(e.form),i=!O.default.undefined(e.json),s=!O.default.undefined(e.body),o=n||i||s,a=pe.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);if(this._cannotHaveBody=a,o){if(a)throw new TypeError(`The \`${e.method}\` method cannot be used with a body`);if([s,n,i].filter(c=>c).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(s&&!(e.body instanceof Nk.Readable)&&!O.default.string(e.body)&&!O.default.buffer(e.body)&&!Fk.default(e.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(n&&!O.default.object(e.form))throw new TypeError("The `form` option must be an Object");{let c=!O.default.string(r["content-type"]);s?(Fk.default(e.body)&&c&&(r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`),this[Hn]=e.body):n?(c&&(r["content-type"]="application/x-www-form-urlencoded"),this[Hn]=new Bn.URLSearchParams(e.form).toString()):(c&&(r["content-type"]="application/json"),this[Hn]=e.stringifyJson(e.json));let u=await bG.default(this[Hn],e.headers);O.default.undefined(r["content-length"])&&O.default.undefined(r["transfer-encoding"])&&!a&&!O.default.undefined(u)&&(r["content-length"]=String(u))}}else a?this._lockWrite():this._unlockWrite();this[Js]=Number(r["content-length"])||void 0}async _onResponseBase(e){let{options:r}=this,{url:n}=r;this[Gk]=e,r.decompress&&(e=yG(e));let i=e.statusCode,s=e;s.statusMessage=s.statusMessage?s.statusMessage:Dk.STATUS_CODES[i],s.url=r.url.toString(),s.requestUrl=this.requestUrl,s.redirectUrls=this.redirects,s.request=this,s.isFromCache=e.fromCache||!1,s.ip=this.ip,s.retryCount=this.retryCount,this[$k]=s.isFromCache,this[Ks]=Number(e.headers["content-length"])||void 0,this[Ul]=e,e.once("end",()=>{this[Ks]=this[Zs],this.emit("downloadProgress",this.downloadProgress)}),e.once("error",a=>{e.destroy(),this._beforeError(new Ra(a,this))}),e.once("aborted",()=>{this._beforeError(new Ra({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let o=e.headers["set-cookie"];if(O.default.object(r.cookieJar)&&o){let a=o.map(async c=>r.cookieJar.setCookie(c,n.toString()));r.ignoreInvalidCookies&&(a=a.map(async c=>c.catch(()=>{})));try{await Promise.all(a)}catch(c){this._beforeError(c);return}}if(r.followRedirect&&e.headers.location&&IG.has(i)){if(e.resume(),this[tt]&&(this[$y](),delete this[tt],this[Hk]()),(i===303&&r.method!=="GET"&&r.method!=="HEAD"||!r.methodRewriting)&&(r.method="GET","body"in r&&delete r.body,"json"in r&&delete r.json,"form"in r&&delete r.form,this[Hn]=void 0,delete r.headers["content-length"]),this.redirects.length>=r.maxRedirects){this._beforeError(new Gl(this));return}try{let h=function(d){return d.protocol==="unix:"||d.hostname==="unix"},c=Buffer.from(e.headers.location,"binary").toString(),u=new Bn.URL(c,n),f=u.toString();if(decodeURI(f),!h(n)&&h(u)){this._beforeError(new Be("Cannot redirect to UNIX socket",{},this));return}u.hostname!==n.hostname||u.port!==n.port?("host"in r.headers&&delete r.headers.host,"cookie"in r.headers&&delete r.headers.cookie,"authorization"in r.headers&&delete r.headers.authorization,(r.username||r.password)&&(r.username="",r.password="")):(u.username=r.username,u.password=r.password),this.redirects.push(f),r.url=u;for(let d of r.hooks.beforeRedirect)await d(r,s);this.emit("redirect",s,r),await this._makeRequest()}catch(c){this._beforeError(c);return}return}if(r.isStream&&r.throwHttpErrors&&!AG.isResponseOk(s)){this._beforeError(new Vl(s));return}e.on("readable",()=>{this[$l]&&this._read()}),this.on("resume",()=>{e.resume()}),this.on("pause",()=>{e.pause()}),e.once("end",()=>{this.push(null)}),this.emit("response",e);for(let a of this[Hl])if(!a.headersSent){for(let c in e.headers){let u=r.decompress?c!=="content-encoding":!0,f=e.headers[c];u&&a.setHeader(c,f)}a.statusCode=i}}async _onResponse(e){try{await this._onResponseBase(e)}catch(r){this._beforeError(r)}}_onRequest(e){let{options:r}=this,{timeout:n,url:i}=r;mG.default(e),this[$y]=qk.default(e,n,i);let s=r.cache?"cacheableResponse":"response";e.once(s,c=>{this._onResponse(c)}),e.once("error",c=>{var u;e.destroy(),(u=e.res)===null||u===void 0||u.removeAllListeners("end"),c=c instanceof qk.TimeoutError?new Yl(c,this.timings,this):new Be(c.message,c,this),this._beforeError(c)}),this[Hk]=EG.default(e,this,NG),this[tt]=e,this.emit("uploadProgress",this.uploadProgress);let o=this[Hn],a=this.redirects.length===0?this:e;O.default.nodeStream(o)?(o.pipe(a),o.once("error",c=>{this._beforeError(new zl(c,this))})):(this._unlockWrite(),O.default.undefined(o)?(this._cannotHaveBody||this._noPipe)&&(a.end(),this._lockWrite()):(this._writeRequest(o,void 0,()=>{}),a.end(),this._lockWrite())),this.emit("request",e)}async _createCacheableRequest(e,r){return new Promise((n,i)=>{Object.assign(r,wG.default(e)),delete r.url;let s,o=Uy.get(r.cache)(r,async a=>{a._readableState.autoDestroy=!1,s&&(await s).emit("cacheableResponse",a),n(a)});r.url=e,o.once("error",i),o.once("request",async a=>{s=a,n(s)})})}async _makeRequest(){var e,r,n,i,s;let{options:o}=this,{headers:a}=o;for(let A in a)if(O.default.undefined(a[A]))delete a[A];else if(O.default.null_(a[A]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${A}\` header`);if(o.decompress&&O.default.undefined(a["accept-encoding"])&&(a["accept-encoding"]=OG?"gzip, deflate, br":"gzip, deflate"),o.cookieJar){let A=await o.cookieJar.getCookieString(o.url.toString());O.default.nonEmptyString(A)&&(o.headers.cookie=A)}for(let A of o.hooks.beforeRequest){let P=await A(o);if(!O.default.undefined(P)){o.request=()=>P;break}}o.body&&this[Hn]!==o.body&&(this[Hn]=o.body);let{agent:c,request:u,timeout:f,url:h}=o;if(o.dnsCache&&!("lookup"in o)&&(o.lookup=o.dnsCache.lookup),h.hostname==="unix"){let A=/(?<socketPath>.+?):(?<path>.+)/.exec(`${h.pathname}${h.search}`);if(A!=null&&A.groups){let{socketPath:P,path:B}=A.groups;Object.assign(o,{socketPath:P,path:B,host:""})}}let d=h.protocol==="https:",m;o.http2?m=_G.auto:m=d?pG.request:Dk.request;let g=(e=o.request)!==null&&e!==void 0?e:m,E=o.cache?this._createCacheableRequest:g;c&&!o.http2&&(o.agent=c[d?"https":"http"]),o[tt]=g,delete o.request,delete o.timeout;let v=o;if(v.shared=(r=o.cacheOptions)===null||r===void 0?void 0:r.shared,v.cacheHeuristic=(n=o.cacheOptions)===null||n===void 0?void 0:n.cacheHeuristic,v.immutableMinTimeToLive=(i=o.cacheOptions)===null||i===void 0?void 0:i.immutableMinTimeToLive,v.ignoreCargoCult=(s=o.cacheOptions)===null||s===void 0?void 0:s.ignoreCargoCult,o.dnsLookupIpVersion!==void 0)try{v.family=jk.dnsLookupIpVersionToFamily(o.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}o.https&&("rejectUnauthorized"in o.https&&(v.rejectUnauthorized=o.https.rejectUnauthorized),o.https.checkServerIdentity&&(v.checkServerIdentity=o.https.checkServerIdentity),o.https.certificateAuthority&&(v.ca=o.https.certificateAuthority),o.https.certificate&&(v.cert=o.https.certificate),o.https.key&&(v.key=o.https.key),o.https.passphrase&&(v.passphrase=o.https.passphrase),o.https.pfx&&(v.pfx=o.https.pfx));try{let A=await E(h,v);O.default.undefined(A)&&(A=m(h,v)),o.request=u,o.timeout=f,o.agent=c,o.https&&("rejectUnauthorized"in o.https&&delete v.rejectUnauthorized,o.https.checkServerIdentity&&delete v.checkServerIdentity,o.https.certificateAuthority&&delete v.ca,o.https.certificate&&delete v.cert,o.https.key&&delete v.key,o.https.passphrase&&delete v.passphrase,o.https.pfx&&delete v.pfx),kG(A)?this._onRequest(A):this.writable?(this.once("finish",()=>{this._onResponse(A)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(A)}catch(A){throw A instanceof Mk.CacheError?new Wl(A,this):new Be(A.message,A,this)}}async _error(e){try{for(let r of this.options.hooks.beforeError)e=await r(e)}catch(r){e=new Be(r.message,r,this)}this.destroy(e)}_beforeError(e){if(this[Qs])return;let{options:r}=this,n=this.retryCount+1;this[Qs]=!0,e instanceof Be||(e=new Be(e.message,e,this));let i=e,{response:s}=i;(async()=>{if(s&&!s.body){s.setEncoding(this._readableState.encoding);try{s.rawBody=await SG.default(s),s.body=s.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let o;try{let a;s&&"retry-after"in s.headers&&(a=Number(s.headers["retry-after"]),Number.isNaN(a)?(a=Date.parse(s.headers["retry-after"])-Date.now(),a<=0&&(a=1)):a*=1e3),o=await r.retry.calculateDelay({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:RG.default({attemptCount:n,retryOptions:r.retry,error:i,retryAfter:a,computedValue:0})})}catch(a){this._error(new Be(a.message,a,this));return}if(o){let a=async()=>{try{for(let c of this.options.hooks.beforeRetry)await c(this.options,i,n)}catch(c){this._error(new Be(c.message,e,this));return}this.destroyed||(this.destroy(),this.emit("retry",n,e))};this[Vk]=setTimeout(a,o);return}}this._error(i)})()}_read(){this[$l]=!0;let e=this[Ul];if(e&&!this[Qs]){e.readableLength&&(this[$l]=!1);let r;for(;(r=e.read())!==null;){this[Zs]+=r.length,this[Uk]=!0;let n=this.downloadProgress;n.percent<1&&this.emit("downloadProgress",n),this.push(r)}}}_write(e,r,n){let i=()=>{this._writeRequest(e,r,n)};this.requestInitialized?i():this[Ca].push(i)}_writeRequest(e,r,n){this[tt].destroyed||(this._progressCallbacks.push(()=>{this[Xs]+=Buffer.byteLength(e,r);let i=this.uploadProgress;i.percent<1&&this.emit("uploadProgress",i)}),this[tt].write(e,r,i=>{!i&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),n(i)}))}_final(e){let r=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(tt in this)){e();return}if(this[tt].destroyed){e();return}this[tt].end(n=>{n||(this[Js]=this[Xs],this.emit("uploadProgress",this.uploadProgress),this[tt].emit("upload-complete")),e(n)})};this.requestInitialized?r():this[Ca].push(r)}_destroy(e,r){var n;this[Qs]=!0,clearTimeout(this[Vk]),tt in this&&(this[$y](),!((n=this[Ul])===null||n===void 0)&&n.complete||this[tt].destroy()),e!==null&&!O.default.undefined(e)&&!(e instanceof Be)&&(e=new Be(e.message,e,this)),r(e)}get _isAboutToError(){return this[Qs]}get ip(){var e;return(e=this.socket)===null||e===void 0?void 0:e.remoteAddress}get aborted(){var e,r,n;return((r=(e=this[tt])===null||e===void 0?void 0:e.destroyed)!==null&&r!==void 0?r:this.destroyed)&&!(!((n=this[Gk])===null||n===void 0)&&n.complete)}get socket(){var e,r;return(r=(e=this[tt])===null||e===void 0?void 0:e.socket)!==null&&r!==void 0?r:void 0}get downloadProgress(){let e;return this[Ks]?e=this[Zs]/this[Ks]:this[Ks]===this[Zs]?e=1:e=0,{percent:e,transferred:this[Zs],total:this[Ks]}}get uploadProgress(){let e;return this[Js]?e=this[Xs]/this[Js]:this[Js]===this[Xs]?e=1:e=0,{percent:e,transferred:this[Xs],total:this[Js]}}get timings(){var e;return(e=this[tt])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[$k]}pipe(e,r){if(this[Uk])throw new Error("Failed to pipe. The response has been emitted already.");return e instanceof jy.ServerResponse&&this[Hl].add(e),super.pipe(e,r)}unpipe(e){return e instanceof jy.ServerResponse&&this[Hl].delete(e),super.unpipe(e),this}};pe.default=Zl});var Ta=y(dr=>{"use strict";l();var DG=dr&&dr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),MG=dr&&dr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&DG(e,t,r)};Object.defineProperty(dr,"__esModule",{value:!0});dr.CancelError=dr.ParseError=void 0;var Wk=Oa(),Gy=class extends Wk.RequestError{constructor(e,r){let{options:n}=r.request;super(`${e.message} in "${n.url.toString()}"`,e,r.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};dr.ParseError=Gy;var Vy=class extends Wk.RequestError{constructor(e){super("Promise was canceled",{},e),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};dr.CancelError=Vy;MG(Oa(),dr)});var Yk=y(Wy=>{"use strict";l();Object.defineProperty(Wy,"__esModule",{value:!0});var zk=Ta(),FG=(t,e,r,n)=>{let{rawBody:i}=t;try{if(e==="text")return i.toString(n);if(e==="json")return i.length===0?"":r(i.toString());if(e==="buffer")return i;throw new zk.ParseError({message:`Unknown body type '${e}'`,name:"Error"},t)}catch(s){throw new zk.ParseError(s,t)}};Wy.default=FG});var zy=y($n=>{"use strict";l();var qG=$n&&$n.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),BG=$n&&$n.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&qG(e,t,r)};Object.defineProperty($n,"__esModule",{value:!0});var jG=require("events"),HG=on(),$G=WT(),Jl=Ta(),Kk=Yk(),Zk=Oa(),UG=Ty(),GG=My(),Jk=Fy(),VG=["request","response","redirect","uploadProgress","downloadProgress"];function Xk(t){let e,r,n=new jG.EventEmitter,i=new $G((o,a,c)=>{let u=f=>{let h=new Zk.default(void 0,t);h.retryCount=f,h._noPipe=!0,c(()=>h.destroy()),c.shouldReject=!1,c(()=>a(new Jl.CancelError(h))),e=h,h.once("response",async g=>{var E;if(g.retryCount=f,g.request.aborted)return;let v;try{v=await GG.default(h),g.rawBody=v}catch{return}if(h._isAboutToError)return;let A=((E=g.headers["content-encoding"])!==null&&E!==void 0?E:"").toLowerCase(),P=["gzip","deflate","br"].includes(A),{options:B}=h;if(P&&!B.decompress)g.body=v;else try{g.body=Kk.default(g,B.responseType,B.parseJson,B.encoding)}catch(re){if(g.body=v.toString(),Jk.isResponseOk(g)){h._beforeError(re);return}}try{for(let[re,$]of B.hooks.afterResponse.entries())g=await $(g,async se=>{let K=Zk.default.normalizeArguments(void 0,{...se,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},B);K.hooks.afterResponse=K.hooks.afterResponse.slice(0,re);for(let M of K.hooks.beforeRetry)await M(K);let Z=Xk(K);return c(()=>{Z.catch(()=>{}),Z.cancel()}),Z})}catch(re){h._beforeError(new Jl.RequestError(re.message,re,h));return}if(r=g,!Jk.isResponseOk(g)){h._beforeError(new Jl.HTTPError(g));return}h.destroy(),o(h.options.resolveBodyOnly?g.body:g)});let d=g=>{if(i.isCanceled)return;let{options:E}=h;if(g instanceof Jl.HTTPError&&!E.throwHttpErrors){let{response:v}=g;o(h.options.resolveBodyOnly?v.body:v);return}a(g)};h.once("error",d);let m=h.options.body;h.once("retry",(g,E)=>{var v,A;if(m===((v=E.request)===null||v===void 0?void 0:v.options.body)&&HG.default.nodeStream((A=E.request)===null||A===void 0?void 0:A.options.body)){d(E);return}u(g)}),UG.default(h,n,VG)};u(0)});i.on=(o,a)=>(n.on(o,a),i);let s=o=>{let a=(async()=>{await i;let{options:c}=r.request;return Kk.default(r,o,c.parseJson,c.encoding)})();return Object.defineProperties(a,Object.getOwnPropertyDescriptors(i)),a};return i.json=()=>{let{headers:o}=e.options;return!e.writableFinished&&o.accept===void 0&&(o.accept="application/json"),s("json")},i.buffer=()=>s("buffer"),i.text=()=>s("text"),i}$n.default=Xk;BG(Ta(),$n)});var Qk=y(Yy=>{"use strict";l();Object.defineProperty(Yy,"__esModule",{value:!0});var WG=Ta();function zG(t,...e){let r=(async()=>{if(t instanceof WG.RequestError)try{for(let i of e)if(i)for(let s of i)t=await s(t)}catch(i){t=i}throw t})(),n=()=>r;return r.json=n,r.text=n,r.buffer=n,r.on=n,r}Yy.default=zG});var rP=y(Ky=>{"use strict";l();Object.defineProperty(Ky,"__esModule",{value:!0});var eP=on();function tP(t){for(let e of Object.values(t))(eP.default.plainObject(e)||eP.default.array(e))&&tP(e);return Object.freeze(t)}Ky.default=tP});var iP=y(nP=>{"use strict";l();Object.defineProperty(nP,"__esModule",{value:!0})});var Zy=y(rr=>{"use strict";l();var YG=rr&&rr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),KG=rr&&rr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&YG(e,t,r)};Object.defineProperty(rr,"__esModule",{value:!0});rr.defaultHandler=void 0;var sP=on(),tr=zy(),ZG=Qk(),Ql=Oa(),JG=rP(),XG={RequestError:tr.RequestError,CacheError:tr.CacheError,ReadError:tr.ReadError,HTTPError:tr.HTTPError,MaxRedirectsError:tr.MaxRedirectsError,TimeoutError:tr.TimeoutError,ParseError:tr.ParseError,CancelError:tr.CancelError,UnsupportedProtocolError:tr.UnsupportedProtocolError,UploadError:tr.UploadError},QG=async t=>new Promise(e=>{setTimeout(e,t)}),{normalizeArguments:Xl}=Ql.default,oP=(...t)=>{let e;for(let r of t)e=Xl(void 0,r,e);return e},eV=t=>t.isStream?new Ql.default(void 0,t):tr.default(t),tV=t=>"defaults"in t&&"options"in t.defaults,rV=["get","post","put","patch","head","delete"];rr.defaultHandler=(t,e)=>e(t);var aP=(t,e)=>{if(t)for(let r of t)r(e)},cP=t=>{t._rawHandlers=t.handlers,t.handlers=t.handlers.map(n=>(i,s)=>{let o,a=n(i,c=>(o=s(c),o));if(a!==o&&!i.isStream&&o){let c=a,{then:u,catch:f,finally:h}=c;Object.setPrototypeOf(c,Object.getPrototypeOf(o)),Object.defineProperties(c,Object.getOwnPropertyDescriptors(o)),c.then=u,c.catch=f,c.finally=h}return a});let e=(n,i={},s)=>{var o,a;let c=0,u=f=>t.handlers[c++](f,c===t.handlers.length?eV:u);if(sP.default.plainObject(n)){let f={...n,...i};Ql.setNonEnumerableProperties([n,i],f),i=f,n=void 0}try{let f;try{aP(t.options.hooks.init,i),aP((o=i.hooks)===null||o===void 0?void 0:o.init,i)}catch(d){f=d}let h=Xl(n,i,s!=null?s:t.options);if(h[Ql.kIsNormalizedAlready]=!0,f)throw new tr.RequestError(f.message,f,h);return u(h)}catch(f){if(i.isStream)throw f;return ZG.default(f,t.options.hooks.beforeError,(a=i.hooks)===null||a===void 0?void 0:a.beforeError)}};e.extend=(...n)=>{let i=[t.options],s=[...t._rawHandlers],o;for(let a of n)tV(a)?(i.push(a.defaults.options),s.push(...a.defaults._rawHandlers),o=a.defaults.mutableDefaults):(i.push(a),"handlers"in a&&s.push(...a.handlers),o=a.mutableDefaults);return s=s.filter(a=>a!==rr.defaultHandler),s.length===0&&s.push(rr.defaultHandler),cP({options:oP(...i),handlers:s,mutableDefaults:Boolean(o)})};let r=async function*(n,i){let s=Xl(n,i,t.options);s.resolveBodyOnly=!1;let o=s.pagination;if(!sP.default.object(o))throw new TypeError("`options.pagination` must be implemented");let a=[],{countLimit:c}=o,u=0;for(;u<o.requestLimit;){u!==0&&await QG(o.backoff);let f=await e(void 0,void 0,s),h=await o.transform(f),d=[];for(let g of h)if(o.filter(g,a,d)&&(!o.shouldContinue(g,a,d)||(yield g,o.stackAllItems&&a.push(g),d.push(g),--c<=0)))return;let m=o.paginate(f,a,d);if(m===!1)return;m===f.request.options?s=f.request.options:m!==void 0&&(s=Xl(void 0,m,s)),u++}};e.paginate=r,e.paginate.all=async(n,i)=>{let s=[];for await(let o of r(n,i))s.push(o);return s},e.paginate.each=r,e.stream=(n,i)=>e(n,{...i,isStream:!0});for(let n of rV)e[n]=(i,s)=>e(i,{...s,method:n}),e.stream[n]=(i,s)=>e(i,{...s,method:n,isStream:!0});return Object.assign(e,XG),Object.defineProperty(e,"defaults",{value:t.mutableDefaults?t:JG.default(t),writable:t.mutableDefaults,configurable:t.mutableDefaults,enumerable:!0}),e.mergeOptions=oP,e};rr.default=cP;KG(iP(),rr)});var fP=y((an,ef)=>{"use strict";l();var nV=an&&an.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),uP=an&&an.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&nV(e,t,r)};Object.defineProperty(an,"__esModule",{value:!0});var iV=require("url"),lP=Zy(),sV={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:t})=>t},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:t=>t.request.options.responseType==="json"?t.body:JSON.parse(t.body),paginate:t=>{if(!Reflect.has(t.headers,"link"))return!1;let e=t.headers.link.split(","),r;for(let n of e){let i=n.split(";");if(i[1].includes("next")){r=i[0].trimStart().trim(),r=r.slice(1,-1);break}}return r?{url:new iV.URL(r)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:t=>JSON.parse(t),stringifyJson:t=>JSON.stringify(t),cacheOptions:{}},handlers:[lP.defaultHandler],mutableDefaults:!1},Jy=lP.default(sV);an.default=Jy;ef.exports=Jy;ef.exports.default=Jy;ef.exports.__esModule=!0;uP(Zy(),an);uP(zy(),an)});var gP=y((zX,mP)=>{l();function nr(t,e){typeof e=="boolean"&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}mP.exports=nr;nr.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};nr.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};nr.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};nr.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};nr.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)};nr.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)};nr.prototype.start=nr.prototype.try;nr.prototype.errors=function(){return this._errors};nr.prototype.attempts=function(){return this._attempts};nr.prototype.mainError=function(){if(this._errors.length===0)return null;for(var t={},e=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(t[s]||0)+1;t[s]=o,o>=r&&(e=i,r=o)}return e}});var yP=y(wi=>{l();var uV=gP();wi.operation=function(t){var e=wi.timeouts(t);return new uV(e,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})};wi.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<e.retries;i++)n.push(this.createTimeout(i,e));return t&&t.forever&&!n.length&&n.push(this.createTimeout(i,e)),n.sort(function(s,o){return s-o}),n};wi.createTimeout=function(t,e){var r=e.randomize?Math.random()+1:1,n=Math.round(r*Math.max(e.minTimeout,1)*Math.pow(e.factor,t));return n=Math.min(n,e.maxTimeout),n};wi.wrap=function(t,e,r){if(e instanceof Array&&(r=e,e=null),!r){r=[];for(var n in t)typeof t[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=t[s];t[s]=function(c){var u=wi.operation(e),f=Array.prototype.slice.call(arguments,1),h=f.pop();f.push(function(d){u.retry(d)||(d&&(arguments[0]=u.mainError()),h.apply(this,arguments))}),u.attempt(function(){c.apply(t,f)})}.bind(t,o),t[s].options=e}}});var vP=y((KX,_P)=>{l();_P.exports=yP()});var EP=y((ZX,bP)=>{l();var lV=vP();function fV(t,e){function r(n,i){var s=e||{},o;"randomize"in s||(s.randomize=!0),o=lV.operation(s);function a(f){i(f||new Error("Aborted"))}function c(f,h){if(f.bail){a(f);return}o.retry(f)?s.onRetry&&s.onRetry(f,h):i(o.mainError())}function u(f){var h;try{h=t(a,f)}catch(d){c(d,f);return}Promise.resolve(h).then(n).catch(function(m){c(m,f)})}o.attempt(u)}return new Promise(r)}bP.exports=fV});var FP=y(Dr=>{"use strict";l();Object.defineProperty(Dr,"__esModule",{value:!0});function _7(t){return t&&t.__esModule?t:{default:t}}var LP=Object.defineProperty,PP=Object.getOwnPropertySymbols,v7=Object.prototype.hasOwnProperty,b7=Object.prototype.propertyIsEnumerable,IP=(t,e,r)=>e in t?LP(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E7=(t,e)=>{for(var r in e||(e={}))v7.call(e,r)&&IP(t,r,e[r]);if(PP)for(var r of PP(e))b7.call(e,r)&&IP(t,r,e[r]);return t},w7=(t,e)=>{for(var r in e)LP(t,r,{get:e[r],enumerable:!0})},x7=(t,e,r)=>new Promise((n,i)=>{var s=c=>{try{a(r.next(c))}catch(u){i(u)}},o=c=>{try{a(r.throw(c))}catch(u){i(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(s,o);a((r=r.apply(t,e)).next())}),NP={};w7(NP,{configDir:()=>MP,darwinConfig:()=>i0,getPathForPlatform:()=>o0,getPlatform:()=>n0,linuxConfig:()=>af,winConfig:()=>s0});var S7=require("fs/promises"),A7=require("path"),DP=_7(A7);function n0(){return process.platform}function af(){if(process.env.XDG_CONFIG_HOME!==void 0)return process.env.XDG_CONFIG_HOME;if(process.env.HOME!==void 0)return DP.default.join(process.env.HOME,".config")}function i0(){if(process.env.HOME!==void 0)return DP.default.join(process.env.HOME,"/Library/Application Support")}function s0(){return process.env.APPDATA}function o0({platform:t}){switch(t){case"linux":return af();case"darwin":return i0();case"win32":return s0();default:return af()}}function MP(){return x7(this,arguments,function*(t={}){var e;let r=(e=t.platform)!=null?e:n0(),n=o0({platform:r});if(n!==void 0){if(t.validate===!1)return n;try{return yield S7.stat.call(void 0,n),n}catch{return}}})}Dr.__spreadValues=E7;Dr.getPlatform=n0;Dr.linuxConfig=af;Dr.darwinConfig=i0;Dr.winConfig=s0;Dr.getPathForPlatform=o0;Dr.configDir=MP;Dr.config_dir_exports=NP});var qP=y(a0=>{"use strict";l();Object.defineProperty(a0,"__esModule",{value:!0});var C7=FP();a0.configDir=C7.configDir});var GP=y((BQ,F7)=>{F7.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var zP=y($t=>{"use strict";l();var WP=GP(),We=process.env;Object.defineProperty($t,"_vendors",{value:WP.map(function(t){return t.constant})});$t.name=null;$t.isPR=null;WP.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(n){return VP(n)});if($t[t.constant]=r,!!r)switch($t.name=t.name,typeof t.pr){case"string":$t.isPR=!!We[t.pr];break;case"object":"env"in t.pr?$t.isPR=t.pr.env in We&&We[t.pr.env]!==t.pr.ne:"any"in t.pr?$t.isPR=t.pr.any.some(function(n){return!!We[n]}):$t.isPR=VP(t.pr);break;default:$t.isPR=null}});$t.isCI=!!(We.CI!=="false"&&(We.BUILD_ID||We.BUILD_NUMBER||We.CI||We.CI_APP_ID||We.CI_BUILD_ID||We.CI_BUILD_NUMBER||We.CI_NAME||We.CONTINUOUS_INTEGRATION||We.RUN_ID||$t.name||!1));function VP(t){return typeof t=="string"?!!We[t]:"env"in t?We[t.env]&&We[t.env].includes(t.includes):"any"in t?t.any.some(function(e){return!!We[e]}):Object.keys(t).every(function(e){return We[e]===t[e]})}});l();l();var N0=le(L0(),1),{program:cW,createCommand:uW,createArgument:lW,createOption:fW,CommanderError:hW,InvalidArgumentError:dW,InvalidOptionArgumentError:pW,Command:D0,Argument:M0,Option:zn,Help:mW}=N0.default;l();l();l();var lo=require("fs"),u0=require("crypto");l();l();l();var tN=le($0());l();l();function Sf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}l();l();function go(t){return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},go(t)}l();function Af(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Cf(t,e){if(e&&(go(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Af(t)}l();function Yn(t){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yn(t)}l();l();function jr(t,e){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jr(t,e)}function Rf(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jr(t,e)}l();l();function Of(t){return Function.toString.call(t).indexOf("[native code]")!==-1}l();l();function Tf(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Di(t,e,r){return Tf()?Di=Reflect.construct.bind():Di=function(i,s,o){var a=[null];a.push.apply(a,s);var c=Function.bind.apply(i,a),u=new c;return o&&jr(u,o.prototype),u},Di.apply(null,arguments)}function yo(t){var e=typeof Map=="function"?new Map:void 0;return yo=function(n){if(n===null||!Of(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Di(n,arguments,Yn(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),jr(i,n)},yo(t)}var sh=le(s_()),tc=le(require("path")),rc=le(vb()),rN=function(t){Rf(e,t);function e(r){var n;return Sf(this,e),n=Cf(this,Yn(e).call(this,"No package.json could be found upwards from the directory ".concat(r))),n.directory=r,n}return e}(yo(Error));function nN(t,e){try{var r=rc.default.readJsonSync(tc.default.join(t,"package.json"));if(e.current===void 0&&(e.current=t),r.workspaces||r.bolt)return t}catch(n){if(n.code!=="ENOENT")throw n}}function iN(t){try{var e=rc.default.readJsonSync(tc.default.join(t,"lerna.json"));if(e.useWorkspaces!==!0)return t}catch(r){if(r.code!=="ENOENT")throw r}}function sN(t){var e=rc.default.existsSync(tc.default.join(t,"pnpm-workspace.yaml"));if(e)return t}function bb(t){var e={current:void 0},r=(0,sh.sync)(function(n){return[iN(n),nN(n,e),sN(n)].find(function(i){return i})},{cwd:t,type:"directory"});if(e.current===void 0)throw new rN(t);return r===void 0?e.current:r}var Eb=le(require("json5"));l();var oh=le(require("fs")),ko=le(require("path"));function ah({target:t,cwd:e,contentCheck:r}){let n=ko.default.parse(e).root,i=!1,s=e;for(;!i&&s!==n;){if(r)try{let o=oh.default.readFileSync(ko.default.join(s,t)).toString();if(r(o)){i=!0;break}}catch{}else if(oh.default.existsSync(ko.default.join(s,t))){i=!0;break}s=ko.default.dirname(s)}return i?s:null}function oN(t){let e=Eb.default.parse(t);return!(e&&"extends"in e)}var ch={};function nc(t,e){var s;let r=(s=e==null?void 0:e.cache)!=null?s:!0,n=t||process.cwd();if(r&&ch[n])return ch[n];let i=ah({target:"turbo.json",cwd:n,contentCheck:oN});if(!i)try{if(i=bb(n),!i)return null}catch{return null}return r&&(ch[n]=i),i}l();var SH=le(require("fs")),AH=le(require("path"));l();function Fb(t){return typeof t>"u"||t===null}function aN(t){return typeof t=="object"&&t!==null}function cN(t){return Array.isArray(t)?t:Fb(t)?[]:[t]}function uN(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function lN(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function fN(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var hN=Fb,dN=aN,pN=cN,mN=lN,gN=fN,yN=uN,Ge={isNothing:hN,isObject:dN,toArray:pN,repeat:mN,isNegativeZero:gN,extend:yN};function qb(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
|
|
57
57
|
|
|
58
58
|
`+t.mark.snippet),n+" "+r):n}function Io(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=qb(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Io.prototype=Object.create(Error.prototype);Io.prototype.constructor=Io;Io.prototype.toString=function(e){return this.name+": "+qb(this,e)};var Et=Io;function uh(t,e,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-e>a&&(s=" ... ",e=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+t.slice(e,r).replace(/\t/g,"\u2192")+o,pos:n-e+s.length}}function lh(t,e){return Ge.repeat(" ",e-t.length)+t}function _N(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,u,f=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+f+3);for(c=1;c<=e.linesBefore&&!(o-c<0);c++)u=uh(t.buffer,n[o-c],i[o-c],t.position-(n[o]-n[o-c]),h),a=Ge.repeat(" ",e.indent)+lh((t.line-c+1).toString(),f)+" | "+u.str+`
|
|
59
59
|
`+a;for(u=uh(t.buffer,n[o],i[o],t.position,h),a+=Ge.repeat(" ",e.indent)+lh((t.line+1).toString(),f)+" | "+u.str+`
|
|
@@ -62,17 +62,17 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);m(E)}return}
|
|
|
62
62
|
`;return a.replace(/\n$/,"")}var vN=_N,bN=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],EN=["scalar","sequence","mapping"];function wN(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function xN(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(bN.indexOf(r)===-1)throw new Et('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=wN(e.styleAliases||null),EN.indexOf(this.kind)===-1)throw new Et('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var nt=xN;function wb(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function SN(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function hh(t){return this.extend(t)}hh.prototype.extend=function(e){var r=[],n=[];if(e instanceof nt)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Et("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof nt))throw new Et("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Et("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Et("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof nt))throw new Et("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(hh.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=wb(i,"implicit"),i.compiledExplicit=wb(i,"explicit"),i.compiledTypeMap=SN(i.compiledImplicit,i.compiledExplicit),i};var AN=hh,CN=new nt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),RN=new nt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),ON=new nt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),TN=new AN({explicit:[CN,RN,ON]});function kN(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function PN(){return null}function IN(t){return t===null}var LN=new nt("tag:yaml.org,2002:null",{kind:"scalar",resolve:kN,construct:PN,predicate:IN,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function NN(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function DN(t){return t==="true"||t==="True"||t==="TRUE"}function MN(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var FN=new nt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:NN,construct:DN,predicate:MN,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function qN(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function BN(t){return 48<=t&&t<=55}function jN(t){return 48<=t&&t<=57}function HN(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!qN(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!BN(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!jN(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function $N(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function UN(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!Ge.isNegativeZero(t)}var GN=new nt("tag:yaml.org,2002:int",{kind:"scalar",resolve:HN,construct:$N,predicate:UN,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),VN=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function WN(t){return!(t===null||!VN.test(t)||t[t.length-1]==="_")}function zN(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var YN=/^[-+]?[0-9]+e/;function KN(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ge.isNegativeZero(t))return"-0.0";return r=t.toString(10),YN.test(r)?r.replace("e",".e"):r}function ZN(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||Ge.isNegativeZero(t))}var JN=new nt("tag:yaml.org,2002:float",{kind:"scalar",resolve:WN,construct:zN,predicate:ZN,represent:KN,defaultStyle:"lowercase"}),XN=TN.extend({implicit:[LN,FN,GN,JN]}),QN=XN,Bb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),jb=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function eD(t){return t===null?!1:Bb.exec(t)!==null||jb.exec(t)!==null}function tD(t){var e,r,n,i,s,o,a,c=0,u=null,f,h,d;if(e=Bb.exec(t),e===null&&(e=jb.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(c=e[7].slice(0,3);c.length<3;)c+="0";c=+c}return e[9]&&(f=+e[10],h=+(e[11]||0),u=(f*60+h)*6e4,e[9]==="-"&&(u=-u)),d=new Date(Date.UTC(r,n,i,s,o,a,c)),u&&d.setTime(d.getTime()-u),d}function rD(t){return t.toISOString()}var nD=new nt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:eD,construct:tD,instanceOf:Date,represent:rD});function iD(t){return t==="<<"||t===null}var sD=new nt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:iD}),yh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
63
63
|
\r`;function oD(t){if(t===null)return!1;var e,r,n=0,i=t.length,s=yh;for(r=0;r<i;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function aD(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,s=yh,o=0,a=[];for(e=0;e<i;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(e));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function cD(t){var e="",r=0,n,i,s=t.length,o=yh;for(n=0;n<s;n++)n%3===0&&n&&(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]),r=(r<<8)+t[n];return i=s%3,i===0?(e+=o[r>>18&63],e+=o[r>>12&63],e+=o[r>>6&63],e+=o[r&63]):i===2?(e+=o[r>>10&63],e+=o[r>>4&63],e+=o[r<<2&63],e+=o[64]):i===1&&(e+=o[r>>2&63],e+=o[r<<4&63],e+=o[64],e+=o[64]),e}function uD(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var lD=new nt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:oD,construct:aD,predicate:uD,represent:cD}),fD=Object.prototype.hasOwnProperty,hD=Object.prototype.toString;function dD(t){if(t===null)return!0;var e=[],r,n,i,s,o,a=t;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,hD.call(i)!=="[object Object]")return!1;for(s in i)if(fD.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function pD(t){return t!==null?t:[]}var mD=new nt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:dD,construct:pD}),gD=Object.prototype.toString;function yD(t){if(t===null)return!0;var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1){if(n=o[e],gD.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[e]=[i[0],n[i[0]]]}return!0}function _D(t){if(t===null)return[];var e,r,n,i,s,o=t;for(s=new Array(o.length),e=0,r=o.length;e<r;e+=1)n=o[e],i=Object.keys(n),s[e]=[i[0],n[i[0]]];return s}var vD=new nt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:yD,construct:_D}),bD=Object.prototype.hasOwnProperty;function ED(t){if(t===null)return!0;var e,r=t;for(e in r)if(bD.call(r,e)&&r[e]!==null)return!1;return!0}function wD(t){return t!==null?t:{}}var xD=new nt("tag:yaml.org,2002:set",{kind:"mapping",resolve:ED,construct:wD}),Hb=QN.extend({implicit:[nD,sD],explicit:[lD,mD,vD,xD]}),gn=Object.prototype.hasOwnProperty,ic=1,$b=2,Ub=3,sc=4,fh=1,SD=2,xb=3,AD=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,CD=/[\x85\u2028\u2029]/,RD=/[,\[\]\{\}]/,Gb=/^(?:!|!!|![a-z\-]+!)$/i,Vb=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Sb(t){return Object.prototype.toString.call(t)}function yr(t){return t===10||t===13}function Qn(t){return t===9||t===32}function wt(t){return t===9||t===32||t===10||t===13}function Hi(t){return t===44||t===91||t===93||t===123||t===125}function OD(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function TD(t){return t===120?2:t===117?4:t===85?8:0}function kD(t){return 48<=t&&t<=57?t-48:-1}function Ab(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
|
64
64
|
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function PD(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Wb=new Array(256),zb=new Array(256);for(Xn=0;Xn<256;Xn++)Wb[Xn]=Ab(Xn)?1:0,zb[Xn]=Ab(Xn);var Xn;function ID(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Hb,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Yb(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=vN(r),new Et(e,r)}function J(t,e){throw Yb(t,e)}function oc(t,e){t.onWarning&&t.onWarning.call(null,Yb(t,e))}var Cb={YAML:function(e,r,n){var i,s,o;e.version!==null&&J(e,"duplication of %YAML directive"),n.length!==1&&J(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&J(e,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&J(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&oc(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,s;n.length!==2&&J(e,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Gb.test(i)||J(e,"ill-formed tag handle (first argument) of the TAG directive"),gn.call(e.tagMap,i)&&J(e,'there is a previously declared suffix for "'+i+'" tag handle'),Vb.test(s)||J(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{J(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function mn(t,e,r,n){var i,s,o,a;if(e<r){if(a=t.input.slice(e,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||J(t,"expected valid JSON character");else AD.test(a)&&J(t,"the stream contains non-printable characters");t.result+=a}}function Rb(t,e,r,n){var i,s,o,a;for(Ge.isObject(r)||J(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],gn.call(e,s)||(e[s]=r[s],n[s]=!0)}function $i(t,e,r,n,i,s,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&J(t,"nested arrays are not supported inside keys"),typeof i=="object"&&Sb(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Sb(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)Rb(t,e,s[u],r);else Rb(t,e,s,r);else!t.json&&!gn.call(r,i)&&gn.call(e,i)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=c||t.position,J(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[i]=s,delete r[i];return e}function _h(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):J(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function He(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Qn(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(yr(i))for(_h(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&oc(t,"deficient indentation"),n}function uc(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||wt(r)))}function vh(t,e){e===1?t.result+=" ":e>1&&(t.result+=Ge.repeat(`
|
|
65
|
-
`,e-1))}function LD(t,e,r){var n,i,s,o,a,c,u,f,h=t.kind,d=t.result,
|
|
65
|
+
`,e-1))}function LD(t,e,r){var n,i,s,o,a,c,u,f,h=t.kind,d=t.result,m;if(m=t.input.charCodeAt(t.position),wt(m)||Hi(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=t.input.charCodeAt(t.position+1),wt(i)||r&&Hi(i)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;m!==0;){if(m===58){if(i=t.input.charCodeAt(t.position+1),wt(i)||r&&Hi(i))break}else if(m===35){if(n=t.input.charCodeAt(t.position-1),wt(n))break}else{if(t.position===t.lineStart&&uc(t)||r&&Hi(m))break;if(yr(m))if(c=t.line,u=t.lineStart,f=t.lineIndent,He(t,!1,-1),t.lineIndent>=e){a=!0,m=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=c,t.lineStart=u,t.lineIndent=f;break}}a&&(mn(t,s,o,!1),vh(t,t.line-c),s=o=t.position,a=!1),Qn(m)||(o=t.position+1),m=t.input.charCodeAt(++t.position)}return mn(t,s,o,!1),t.result?!0:(t.kind=h,t.result=d,!1)}function ND(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(mn(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else yr(r)?(mn(t,n,i,!0),vh(t,He(t,!1,e)),n=i=t.position):t.position===t.lineStart&&uc(t)?J(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);J(t,"unexpected end of the stream within a single quoted scalar")}function DD(t,e){var r,n,i,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return mn(t,r,t.position,!0),t.position++,!0;if(a===92){if(mn(t,r,t.position,!0),a=t.input.charCodeAt(++t.position),yr(a))He(t,!1,e);else if(a<256&&Wb[a])t.result+=zb[a],t.position++;else if((o=TD(a))>0){for(i=o,s=0;i>0;i--)a=t.input.charCodeAt(++t.position),(o=OD(a))>=0?s=(s<<4)+o:J(t,"expected hexadecimal character");t.result+=PD(s),t.position++}else J(t,"unknown escape sequence");r=n=t.position}else yr(a)?(mn(t,r,n,!0),vh(t,He(t,!1,e)),r=n=t.position):t.position===t.lineStart&&uc(t)?J(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}J(t,"unexpected end of the stream within a double quoted scalar")}function MD(t,e){var r=!0,n,i,s,o=t.tag,a,c=t.anchor,u,f,h,d,m,g=Object.create(null),E,v,A,P;if(P=t.input.charCodeAt(t.position),P===91)f=93,m=!1,a=[];else if(P===123)f=125,m=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),P=t.input.charCodeAt(++t.position);P!==0;){if(He(t,!0,e),P=t.input.charCodeAt(t.position),P===f)return t.position++,t.tag=o,t.anchor=c,t.kind=m?"mapping":"sequence",t.result=a,!0;r?P===44&&J(t,"expected the node content, but found ','"):J(t,"missed comma between flow collection entries"),v=E=A=null,h=d=!1,P===63&&(u=t.input.charCodeAt(t.position+1),wt(u)&&(h=d=!0,t.position++,He(t,!0,e))),n=t.line,i=t.lineStart,s=t.position,Ui(t,e,ic,!1,!0),v=t.tag,E=t.result,He(t,!0,e),P=t.input.charCodeAt(t.position),(d||t.line===n)&&P===58&&(h=!0,P=t.input.charCodeAt(++t.position),He(t,!0,e),Ui(t,e,ic,!1,!0),A=t.result),m?$i(t,a,g,v,E,A,n,i,s):h?a.push($i(t,null,g,v,E,A,n,i,s)):a.push(E),He(t,!0,e),P=t.input.charCodeAt(t.position),P===44?(r=!0,P=t.input.charCodeAt(++t.position)):r=!1}J(t,"unexpected end of the stream within a flow collection")}function FD(t,e){var r,n,i=fh,s=!1,o=!1,a=e,c=0,u=!1,f,h;if(h=t.input.charCodeAt(t.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)fh===i?i=h===43?xb:SD:J(t,"repeat of a chomping mode identifier");else if((f=kD(h))>=0)f===0?J(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?J(t,"repeat of an indentation width identifier"):(a=e+f-1,o=!0);else break;if(Qn(h)){do h=t.input.charCodeAt(++t.position);while(Qn(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!yr(h)&&h!==0)}for(;h!==0;){for(_h(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),yr(h)){c++;continue}if(t.lineIndent<a){i===xb?t.result+=Ge.repeat(`
|
|
66
66
|
`,s?1+c:c):i===fh&&s&&(t.result+=`
|
|
67
67
|
`);break}for(n?Qn(h)?(u=!0,t.result+=Ge.repeat(`
|
|
68
68
|
`,s?1+c:c)):u?(u=!1,t.result+=Ge.repeat(`
|
|
69
69
|
`,c+1)):c===0?s&&(t.result+=" "):t.result+=Ge.repeat(`
|
|
70
70
|
`,c):t.result+=Ge.repeat(`
|
|
71
|
-
`,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!yr(h)&&h!==0;)h=t.input.charCodeAt(++t.position);mn(t,r,t.position,!1)}return!0}function Ob(t,e){var r,n=t.tag,i=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,J(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!wt(o))));){if(a=!0,t.position++,He(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,Ui(t,e,Ub,!1,!0),s.push(t.result),He(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)J(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function qD(t,e,r){var n,i,s,o,a,c,u=t.tag,f=t.anchor,h={},d=Object.create(null),
|
|
71
|
+
`,s?1+c:c),s=!0,o=!0,c=0,r=t.position;!yr(h)&&h!==0;)h=t.input.charCodeAt(++t.position);mn(t,r,t.position,!1)}return!0}function Ob(t,e){var r,n=t.tag,i=t.anchor,s=[],o,a=!1,c;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),c=t.input.charCodeAt(t.position);c!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,J(t,"tab characters must not be used in indentation")),!(c!==45||(o=t.input.charCodeAt(t.position+1),!wt(o))));){if(a=!0,t.position++,He(t,!0,-1)&&t.lineIndent<=e){s.push(null),c=t.input.charCodeAt(t.position);continue}if(r=t.line,Ui(t,e,Ub,!1,!0),s.push(t.result),He(t,!0,-1),c=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&c!==0)J(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function qD(t,e,r){var n,i,s,o,a,c,u=t.tag,f=t.anchor,h={},d=Object.create(null),m=null,g=null,E=null,v=!1,A=!1,P;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),P=t.input.charCodeAt(t.position);P!==0;){if(!v&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,J(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,(P===63||P===58)&&wt(n))P===63?(v&&($i(t,h,d,m,g,null,o,a,c),m=g=E=null),A=!0,v=!0,i=!0):v?(v=!1,i=!0):J(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,P=n;else{if(o=t.line,a=t.lineStart,c=t.position,!Ui(t,r,$b,!1,!0))break;if(t.line===s){for(P=t.input.charCodeAt(t.position);Qn(P);)P=t.input.charCodeAt(++t.position);if(P===58)P=t.input.charCodeAt(++t.position),wt(P)||J(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&($i(t,h,d,m,g,null,o,a,c),m=g=E=null),A=!0,v=!1,i=!1,m=t.tag,g=t.result;else if(A)J(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=u,t.anchor=f,!0}else if(A)J(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=u,t.anchor=f,!0}if((t.line===s||t.lineIndent>e)&&(v&&(o=t.line,a=t.lineStart,c=t.position),Ui(t,e,sc,!0,i)&&(v?g=t.result:E=t.result),v||($i(t,h,d,m,g,E,o,a,c),m=g=E=null),He(t,!0,-1),P=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&P!==0)J(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&$i(t,h,d,m,g,null,o,a,c),A&&(t.tag=u,t.anchor=f,t.kind="mapping",t.result=h),A}function BD(t){var e,r=!1,n=!1,i,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&J(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(r=!0,o=t.input.charCodeAt(++t.position)):o===33?(n=!0,i="!!",o=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):J(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!wt(o);)o===33&&(n?J(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),Gb.test(i)||J(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),RD.test(s)&&J(t,"tag suffix cannot contain flow indicator characters")}s&&!Vb.test(s)&&J(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{J(t,"tag name is malformed: "+s)}return r?t.tag=s:gn.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:J(t,'undeclared tag handle "'+i+'"'),!0}function jD(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&J(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!wt(r)&&!Hi(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&J(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function HD(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!wt(n)&&!Hi(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&J(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),gn.call(t.anchorMap,r)||J(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],He(t,!0,-1),!0}function Ui(t,e,r,n,i){var s,o,a,c=1,u=!1,f=!1,h,d,m,g,E,v;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=sc===r||Ub===r,n&&He(t,!0,-1)&&(u=!0,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)),c===1)for(;BD(t)||jD(t);)He(t,!0,-1)?(u=!0,a=s,t.lineIndent>e?c=1:t.lineIndent===e?c=0:t.lineIndent<e&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||sc===r)&&(ic===r||$b===r?E=e:E=e+1,v=t.position-t.lineStart,c===1?a&&(Ob(t,v)||qD(t,v,E))||MD(t,E)?f=!0:(o&&FD(t,E)||ND(t,E)||DD(t,E)?f=!0:HD(t)?(f=!0,(t.tag!==null||t.anchor!==null)&&J(t,"alias node should not have any properties")):LD(t,E,ic===r)&&(f=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):c===0&&(f=a&&Ob(t,v))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&J(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,d=t.implicitTypes.length;h<d;h+=1)if(g=t.implicitTypes[h],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(gn.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,m=t.typeMap.multi[t.kind||"fallback"],h=0,d=m.length;h<d;h+=1)if(t.tag.slice(0,m[h].tag.length)===m[h].tag){g=m[h];break}g||J(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&J(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):J(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||f}function $D(t){var e=t.position,r,n,i,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(He(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),r=t.position;o!==0&&!wt(o);)o=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&J(t,"directive name must not be less than one character in length");o!==0;){for(;Qn(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!yr(o));break}if(yr(o))break;for(r=t.position;o!==0&&!wt(o);)o=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}o!==0&&_h(t),gn.call(Cb,n)?Cb[n](t,n,i):oc(t,'unknown document directive "'+n+'"')}if(He(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,He(t,!0,-1)):s&&J(t,"directives end mark is expected"),Ui(t,t.lineIndent-1,sc,!1,!0),He(t,!0,-1),t.checkLineBreaks&&CD.test(t.input.slice(e,t.position))&&oc(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&uc(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,He(t,!0,-1));return}if(t.position<t.length-1)J(t,"end of the stream or a document separator is expected");else return}function Kb(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
|
|
72
72
|
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new ID(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,J(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)$D(r);return r.documents}function UD(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=Kb(t,r);if(typeof e!="function")return n;for(var i=0,s=n.length;i<s;i+=1)e(n[i])}function GD(t,e){var r=Kb(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Et("expected a single document in the stream, but found more")}}var VD=UD,WD=GD,Zb={loadAll:VD,load:WD},Jb=Object.prototype.toString,Xb=Object.prototype.hasOwnProperty,bh=65279,zD=9,Lo=10,YD=13,KD=32,ZD=33,JD=34,dh=35,XD=37,QD=38,eM=39,tM=42,Qb=44,rM=45,ac=58,nM=61,iM=62,sM=63,oM=64,eE=91,tE=93,aM=96,rE=123,cM=124,nE=125,it={};it[0]="\\0";it[7]="\\a";it[8]="\\b";it[9]="\\t";it[10]="\\n";it[11]="\\v";it[12]="\\f";it[13]="\\r";it[27]="\\e";it[34]='\\"';it[92]="\\\\";it[133]="\\N";it[160]="\\_";it[8232]="\\L";it[8233]="\\P";var uM=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],lM=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function fM(t,e){var r,n,i,s,o,a,c;if(e===null)return{};for(r={},n=Object.keys(e),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(e[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=t.compiledTypeMap.fallback[o],c&&Xb.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function hM(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new Et("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ge.repeat("0",n-e.length)+e}var dM=1,No=2;function pM(t){this.schema=t.schema||Hb,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=Ge.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=fM(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?No:dM,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Tb(t,e){for(var r=Ge.repeat(" ",e),n=0,i=-1,s="",o,a=t.length;n<a;)i=t.indexOf(`
|
|
73
73
|
`,n),i===-1?(o=t.slice(n),n=a):(o=t.slice(n,i+1),n=i+1),o.length&&o!==`
|
|
74
74
|
`&&(s+=r),s+=o;return s}function ph(t,e){return`
|
|
75
|
-
`+Ge.repeat(" ",t.indent*e)}function mM(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function cc(t){return t===KD||t===zD}function Do(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==bh||65536<=t&&t<=1114111}function kb(t){return Do(t)&&t!==bh&&t!==YD&&t!==Lo}function Pb(t,e,r){var n=kb(t),i=n&&!cc(t);return(r?n:n&&t!==Qb&&t!==eE&&t!==tE&&t!==rE&&t!==nE)&&t!==dh&&!(e===ac&&!i)||kb(e)&&!cc(e)&&t===dh||e===ac&&i}function gM(t){return Do(t)&&t!==bh&&!cc(t)&&t!==rM&&t!==sM&&t!==ac&&t!==Qb&&t!==eE&&t!==tE&&t!==rE&&t!==nE&&t!==dh&&t!==QD&&t!==tM&&t!==ZD&&t!==cM&&t!==nM&&t!==iM&&t!==eM&&t!==JD&&t!==XD&&t!==oM&&t!==aM}function yM(t){return!cc(t)&&t!==ac}function Po(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function iE(t){var e=/^\n* /;return e.test(t)}var sE=1,mh=2,oE=3,aE=4,ji=5;function _M(t,e,r,n,i,s,o,a){var c,u=0,f=null,h=!1,d=!1,
|
|
75
|
+
`+Ge.repeat(" ",t.indent*e)}function mM(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function cc(t){return t===KD||t===zD}function Do(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==bh||65536<=t&&t<=1114111}function kb(t){return Do(t)&&t!==bh&&t!==YD&&t!==Lo}function Pb(t,e,r){var n=kb(t),i=n&&!cc(t);return(r?n:n&&t!==Qb&&t!==eE&&t!==tE&&t!==rE&&t!==nE)&&t!==dh&&!(e===ac&&!i)||kb(e)&&!cc(e)&&t===dh||e===ac&&i}function gM(t){return Do(t)&&t!==bh&&!cc(t)&&t!==rM&&t!==sM&&t!==ac&&t!==Qb&&t!==eE&&t!==tE&&t!==rE&&t!==nE&&t!==dh&&t!==QD&&t!==tM&&t!==ZD&&t!==cM&&t!==nM&&t!==iM&&t!==eM&&t!==JD&&t!==XD&&t!==oM&&t!==aM}function yM(t){return!cc(t)&&t!==ac}function Po(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function iE(t){var e=/^\n* /;return e.test(t)}var sE=1,mh=2,oE=3,aE=4,ji=5;function _M(t,e,r,n,i,s,o,a){var c,u=0,f=null,h=!1,d=!1,m=n!==-1,g=-1,E=gM(Po(t,0))&&yM(Po(t,t.length-1));if(e||o)for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=Po(t,c),!Do(u))return ji;E=E&&Pb(u,f,a),f=u}else{for(c=0;c<t.length;u>=65536?c+=2:c++){if(u=Po(t,c),u===Lo)h=!0,m&&(d=d||c-g-1>n&&t[g+1]!==" ",g=c);else if(!Do(u))return ji;E=E&&Pb(u,f,a),f=u}d=d||m&&c-g-1>n&&t[g+1]!==" "}return!h&&!d?E&&!o&&!i(t)?sE:s===No?ji:mh:r>9&&iE(t)?ji:o?s===No?ji:mh:d?aE:oE}function vM(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===No?'""':"''";if(!t.noCompatMode&&(uM.indexOf(e)!==-1||lM.test(e)))return t.quotingType===No?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),o=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),a=n||t.flowLevel>-1&&r>=t.flowLevel;function c(u){return mM(t,u)}switch(_M(e,a,t.indent,o,c,t.quotingType,t.forceQuotes&&!n,i)){case sE:return e;case mh:return"'"+e.replace(/'/g,"''")+"'";case oE:return"|"+Ib(e,t.indent)+Lb(Tb(e,s));case aE:return">"+Ib(e,t.indent)+Lb(Tb(bM(e,o),s));case ji:return'"'+EM(e)+'"';default:throw new Et("impossible error: invalid scalar style")}}()}function Ib(t,e){var r=iE(t)?String(e):"",n=t[t.length-1]===`
|
|
76
76
|
`,i=n&&(t[t.length-2]===`
|
|
77
77
|
`||t===`
|
|
78
78
|
`),s=i?"+":n?"":"-";return r+s+`
|
|
@@ -84,8 +84,8 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);m(E)}return}
|
|
|
84
84
|
`+t.slice(i,s),i=s+1),o=a;return c+=`
|
|
85
85
|
`,t.length-i>e&&o>i?c+=t.slice(i,o)+`
|
|
86
86
|
`+t.slice(o+1):c+=t.slice(i),c.slice(1)}function EM(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=Po(t,i),n=it[r],!n&&Do(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||hM(r);return e}function wM(t,e,r){var n="",i=t.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],t.replacer&&(a=t.replacer.call(r,String(s),a)),(Hr(t,e,a,!1,!1)||typeof a>"u"&&Hr(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function Db(t,e,r,n){var i="",s=t.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],t.replacer&&(c=t.replacer.call(r,String(o),c)),(Hr(t,e+1,c,!0,!0,!1,!0)||typeof c>"u"&&Hr(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=ph(t,e)),t.dump&&Lo===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function xM(t,e,r){var n="",i=t.tag,s=Object.keys(r),o,a,c,u,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),t.condenseFlow&&(f+='"'),c=s[o],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Hr(t,e,c,!1,!1)&&(t.dump.length>1024&&(f+="? "),f+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Hr(t,e,u,!1,!1)&&(f+=t.dump,n+=f));t.tag=i,t.dump="{"+n+"}"}function SM(t,e,r,n){var i="",s=t.tag,o=Object.keys(r),a,c,u,f,h,d;if(t.sortKeys===!0)o.sort();else if(typeof t.sortKeys=="function")o.sort(t.sortKeys);else if(t.sortKeys)throw new Et("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)d="",(!n||i!=="")&&(d+=ph(t,e)),u=o[a],f=r[u],t.replacer&&(f=t.replacer.call(r,u,f)),Hr(t,e+1,u,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&Lo===t.dump.charCodeAt(0)?d+="?":d+="? "),d+=t.dump,h&&(d+=ph(t,e)),Hr(t,e+1,f,!0,h)&&(t.dump&&Lo===t.dump.charCodeAt(0)?d+=":":d+=": ",d+=t.dump,i+=d));t.tag=s,t.dump=i||"{}"}function Mb(t,e,r){var n,i,s,o,a,c;for(i=r?t.explicitTypes:t.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof e=="object"&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(r?a.multi&&a.representName?t.tag=a.representName(e):t.tag=a.tag:t.tag="?",a.represent){if(c=t.styleMap[a.tag]||a.defaultStyle,Jb.call(a.represent)==="[object Function]")n=a.represent(e,c);else if(Xb.call(a.represent,c))n=a.represent[c](e,c);else throw new Et("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');t.dump=n}return!0}return!1}function Hr(t,e,r,n,i,s,o){t.tag=null,t.dump=r,Mb(t,r,!1)||Mb(t,r,!0);var a=Jb.call(t.dump),c=n,u;n&&(n=t.flowLevel<0||t.flowLevel>e);var f=a==="[object Object]"||a==="[object Array]",h,d;if(f&&(h=t.duplicates.indexOf(r),d=h!==-1),(t.tag!==null&&t.tag!=="?"||d||t.indent!==2&&e>0)&&(i=!1),d&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(f&&d&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),a==="[object Object]")n&&Object.keys(t.dump).length!==0?(SM(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(xM(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!o&&e>0?Db(t,e-1,t.dump,i):Db(t,e,t.dump,i),d&&(t.dump="&ref_"+h+t.dump)):(wM(t,e,t.dump),d&&(t.dump="&ref_"+h+" "+t.dump));else if(a==="[object String]")t.tag!=="?"&&vM(t,t.dump,e,s,c);else{if(a==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Et("unacceptable kind of an object to dump "+a)}t.tag!==null&&t.tag!=="?"&&(u=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",t.dump=u+" "+t.dump)}return!0}function AM(t,e){var r=[],n=[],i,s;for(gh(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function gh(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)gh(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)gh(t[n[i]],e,r)}function CM(t,e){e=e||{};var r=new pM(e);r.noRefs||AM(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Hr(r,0,n,!0,!0)?r.dump+`
|
|
87
|
-
`:""}var RM=CM,OM={dump:RM};function Eh(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Uz=Zb.load,Gz=Zb.loadAll,Vz=OM.dump;var Wz=Eh("safeLoad","load"),zz=Eh("safeLoadAll","loadAll"),Yz=Eh("safeDump","dump");var CH=le(Yx()),RH=le(require("json5"));var Se={};_I(Se,{bold:()=>_H,dimmed:()=>bH,error:()=>$p,grey:()=>EH,info:()=>yH,item:()=>wH,log:()=>An,turboBlue:()=>ps,turboGradient:()=>gH,turboLoader:()=>mA,turboRed:()=>dA,underline:()=>vH,warn:()=>gA,yellow:()=>pA});l();var St=le(Bc()),uA=le(DS()),lA=le(cA()),fA="#0099F7",hA="#F11712",mH="#FFFF00",Hp=t=>{let e=xH(t);return r=>`\x1B[38;5;${e}m${r}${(0,St.reset)("")}`},gH=(0,lA.default)(fA,hA),ps=Hp(fA),dA=Hp(hA),pA=Hp(mH),mA=t=>(0,uA.default)({text:t,spinner:{frames:[" ",ps("> "),ps(">> "),ps(">>>")]}}),yH=(...t)=>{An(ps((0,St.bold)(">>>")),t.join(" "))},_H=(...t)=>{An((0,St.bold)(t.join(" ")))},vH=(...t)=>{An((0,St.underline)(t.join(" ")))},bH=(...t)=>{An((0,St.dim)(t.join(" ")))},EH=(...t)=>{An((0,St.gray)(t.join(" ")))},wH=(...t)=>{An(ps((0,St.bold)(" \u2022")),t.join(" "))},An=(...t)=>{console.log(...t)},gA=(...t)=>{console.error(pA((0,St.bold)(">>>")),t.join(" "))},$p=(...t)=>{console.error(dA((0,St.bold)(">>>")),t.join(" "))};function xH(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,n=Math.floor(e/256)%256,i=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}l();var b6=le(require("os")),E6=le(UC());l();l();var w6=le(require("path"));l();var hP=require("stream"),dP=require("util"),oV=require("path"),aV=require("os"),pP=require("fs"),cV=le(HT());var GX=(0,dP.promisify)(hP.Stream.pipeline);l();l();var _V=le(require("path")),vV=le(EP());l();l();var $P=le(Bc());l();var me;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(me||(me={}));var Qy;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Qy||(Qy={}));var U=me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Un=t=>{switch(typeof t){case"undefined":return U.undefined;case"string":return U.string;case"number":return isNaN(t)?U.nan:U.number;case"boolean":return U.boolean;case"function":return U.function;case"bigint":return U.bigint;case"symbol":return U.symbol;case"object":return Array.isArray(t)?U.array:t===null?U.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?U.promise:typeof Map<"u"&&t instanceof Map?U.map:typeof Set<"u"&&t instanceof Set?U.set:typeof Date<"u"&&t instanceof Date?U.date:U.object;default:return U.unknown}},N=me.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),bV=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Bt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Bt.create=t=>new Bt(t);var ka=(t,e)=>{let r;switch(t.code){case N.invalid_type:t.received===U.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case N.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,me.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:r=`Unrecognized key(s) in object: ${me.joinValues(t.keys,", ")}`;break;case N.invalid_union:r="Invalid input";break;case N.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${me.joinValues(t.options)}`;break;case N.invalid_enum_value:r=`Invalid enum value. Expected ${me.joinValues(t.options)}, received '${t.received}'`;break;case N.invalid_arguments:r="Invalid function arguments";break;case N.invalid_return_type:r="Invalid function return type";break;case N.invalid_date:r="Invalid date";break;case N.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:me.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case N.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case N.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case N.custom:r="Invalid input";break;case N.invalid_intersection_types:r="Intersection results could not be merged";break;case N.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case N.not_finite:r="Number must be finite";break;default:r=e.defaultError,me.assertNever(t)}return{message:r}},SP=ka;function EV(t){SP=t}function rf(){return SP}var nf=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s},a="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:s,message:i.message||a}},wV=[];function G(t,e){let r=nf({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,rf(),ka].filter(n=>!!n)});t.common.issues.push(r)}var Xe=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return oe;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r)n.push({key:await i.key,value:await i.value});return Xe.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return oe;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},oe=Object.freeze({status:"aborted"}),AP=t=>({status:"dirty",value:t}),_t=t=>({status:"valid",value:t}),e0=t=>t.status==="aborted",t0=t=>t.status==="dirty",Pa=t=>t.status==="valid",sf=t=>typeof Promise<"u"&&t instanceof Promise,X;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(X||(X={}));var ir=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},wP=(t,e)=>{if(Pa(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Bt(t.common.issues);return this._error=r,this._error}}};function ae(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:n!=null?n:a.defaultError}:{message:r!=null?r:a.defaultError},description:i}}var ce=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Un(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Un(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Xe,ctx:{common:e.parent.common,data:e.data,parsedType:Un(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(sf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Un(e)},s=this._parseSync({data:e,path:i.path,parent:i});return wP(i,s)}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Un(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(sf(i)?i:Promise.resolve(i));return wP(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:N.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new Ht({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return pr.create(this,this._def)}nullable(){return fn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jt.create(this,this._def)}promise(){return Wn.create(this,this._def)}or(e){return Ci.create([this,e],this._def)}and(e){return Ri.create(this,e,this._def)}transform(e){return new Ht({...ae(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Ii({...ae(this._def),innerType:this,defaultValue:r,typeName:te.ZodDefault})}brand(){return new of({typeName:te.ZodBranded,type:this,...ae(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new so({...ae(this._def),innerType:this,catchValue:r,typeName:te.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Li.create(this,e)}readonly(){return ao.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},xV=/^c[^\s-]{8,}$/i,SV=/^[a-z][a-z0-9]*$/,AV=/^[0-9A-HJKMNP-TV-Z]{26}$/,CV=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,RV=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,OV="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Xy,TV=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,kV=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,PV=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function IV(t,e){return!!((e==="v4"||!e)&&TV.test(t)||(e==="v6"||!e)&&kV.test(t))}var qt=class extends ce{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==U.string){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.string,received:s.parsedType}),oe}let n=new Xe,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?G(i,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&G(i,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")RV.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"email",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")Xy||(Xy=new RegExp(OV,"u")),Xy.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"emoji",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")CV.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"uuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")xV.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"cuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")SV.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"cuid2",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")AV.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"ulid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),G(i,{validation:"url",code:N.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"regex",code:N.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?PV(s).test(e.data)||(i=this._getOrReturnCtx(e,i),G(i,{code:N.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="ip"?IV(e.data,s.version)||(i=this._getOrReturnCtx(e,i),G(i,{validation:"ip",code:N.invalid_string,message:s.message}),n.dirty()):me.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:N.invalid_string,...X.errToObj(n)})}_addCheck(e){return new qt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...X.errToObj(e)})}url(e){return this._addCheck({kind:"url",...X.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...X.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...X.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...X.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...X.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...X.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...X.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...X.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...X.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...X.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...X.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...X.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...X.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...X.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...X.errToObj(r)})}nonempty(e){return this.min(1,X.errToObj(e))}trim(){return new qt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};qt.create=t=>{var e;return new qt({checks:[],typeName:te.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...ae(t)})};function LV(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var Ir=class extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==U.number){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.number,received:s.parsedType}),oe}let n,i=new Xe;for(let s of this._def.checks)s.kind==="int"?me.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),G(n,{code:N.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?LV(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_finite,message:s.message}),i.dirty()):me.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,X.toString(r))}gt(e,r){return this.setLimit("min",e,!1,X.toString(r))}lte(e,r){return this.setLimit("max",e,!0,X.toString(r))}lt(e,r){return this.setLimit("max",e,!1,X.toString(r))}setLimit(e,r,n,i){return new Ir({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:X.toString(i)}]})}_addCheck(e){return new Ir({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:X.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:X.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:X.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:X.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:X.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&me.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Ir.create=t=>new Ir({checks:[],typeName:te.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...ae(t)});var Lr=class extends ce{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==U.bigint){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.bigint,received:s.parsedType}),oe}let n,i=new Xe;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),G(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):me.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,X.toString(r))}gt(e,r){return this.setLimit("min",e,!1,X.toString(r))}lte(e,r){return this.setLimit("max",e,!0,X.toString(r))}lt(e,r){return this.setLimit("max",e,!1,X.toString(r))}setLimit(e,r,n,i){return new Lr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:X.toString(i)}]})}_addCheck(e){return new Lr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:X.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Lr.create=t=>{var e;return new Lr({checks:[],typeName:te.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...ae(t)})};var xi=class extends ce{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==U.boolean){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.boolean,received:n.parsedType}),oe}return _t(e.data)}};xi.create=t=>new xi({typeName:te.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...ae(t)});var un=class extends ce{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==U.date){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_type,expected:U.date,received:s.parsedType}),oe}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return G(s,{code:N.invalid_date}),oe}let n=new Xe,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),G(i,{code:N.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):me.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new un({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:X.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:X.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};un.create=t=>new un({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:te.ZodDate,...ae(t)});var to=class extends ce{_parse(e){if(this._getType(e)!==U.symbol){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.symbol,received:n.parsedType}),oe}return _t(e.data)}};to.create=t=>new to({typeName:te.ZodSymbol,...ae(t)});var Si=class extends ce{_parse(e){if(this._getType(e)!==U.undefined){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.undefined,received:n.parsedType}),oe}return _t(e.data)}};Si.create=t=>new Si({typeName:te.ZodUndefined,...ae(t)});var Ai=class extends ce{_parse(e){if(this._getType(e)!==U.null){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.null,received:n.parsedType}),oe}return _t(e.data)}};Ai.create=t=>new Ai({typeName:te.ZodNull,...ae(t)});var Vn=class extends ce{constructor(){super(...arguments),this._any=!0}_parse(e){return _t(e.data)}};Vn.create=t=>new Vn({typeName:te.ZodAny,...ae(t)});var cn=class extends ce{constructor(){super(...arguments),this._unknown=!0}_parse(e){return _t(e.data)}};cn.create=t=>new cn({typeName:te.ZodUnknown,...ae(t)});var mr=class extends ce{_parse(e){let r=this._getOrReturnCtx(e);return G(r,{code:N.invalid_type,expected:U.never,received:r.parsedType}),oe}};mr.create=t=>new mr({typeName:te.ZodNever,...ae(t)});var ro=class extends ce{_parse(e){if(this._getType(e)!==U.undefined){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.void,received:n.parsedType}),oe}return _t(e.data)}};ro.create=t=>new ro({typeName:te.ZodVoid,...ae(t)});var jt=class extends ce{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==U.array)return G(r,{code:N.invalid_type,expected:U.array,received:r.parsedType}),oe;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(G(r,{code:o?N.too_big:N.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(G(r,{code:N.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(G(r,{code:N.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new ir(r,o,r.path,a)))).then(o=>Xe.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new ir(r,o,r.path,a)));return Xe.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new jt({...this._def,minLength:{value:e,message:X.toString(r)}})}max(e,r){return new jt({...this._def,maxLength:{value:e,message:X.toString(r)}})}length(e,r){return new jt({...this._def,exactLength:{value:e,message:X.toString(r)}})}nonempty(e){return this.min(1,e)}};jt.create=(t,e)=>new jt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...ae(e)});function eo(t){if(t instanceof Oe){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=pr.create(eo(n))}return new Oe({...t._def,shape:()=>e})}else return t instanceof jt?new jt({...t._def,type:eo(t.element)}):t instanceof pr?pr.create(eo(t.unwrap())):t instanceof fn?fn.create(eo(t.unwrap())):t instanceof sr?sr.create(t.items.map(e=>eo(e))):t}var Oe=class extends ce{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=me.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==U.object){let u=this._getOrReturnCtx(e);return G(u,{code:N.invalid_type,expected:U.object,received:u.parsedType}),oe}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof mr&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let f=s[u],h=i.data[u];c.push({key:{status:"valid",value:u},value:f._parse(new ir(i,h,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof mr){let u=this._def.unknownKeys;if(u==="passthrough")for(let f of a)c.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(u==="strict")a.length>0&&(G(i,{code:N.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let f of a){let h=i.data[f];c.push({key:{status:"valid",value:f},value:u._parse(new ir(i,h,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let f of c){let h=await f.key;u.push({key:h,value:await f.value,alwaysSet:f.alwaysSet})}return u}).then(u=>Xe.mergeObjectSync(n,u)):Xe.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return X.errToObj,new Oe({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s,o,a;let c=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=X.errToObj(e).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new Oe({...this._def,unknownKeys:"strip"})}passthrough(){return new Oe({...this._def,unknownKeys:"passthrough"})}extend(e){return new Oe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Oe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:te.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Oe({...this._def,catchall:e})}pick(e){let r={};return me.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new Oe({...this._def,shape:()=>r})}omit(e){let r={};return me.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new Oe({...this._def,shape:()=>r})}deepPartial(){return eo(this)}partial(e){let r={};return me.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new Oe({...this._def,shape:()=>r})}required(e){let r={};return me.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof pr;)s=s._def.innerType;r[n]=s}}),new Oe({...this._def,shape:()=>r})}keyof(){return CP(me.objectKeys(this.shape))}};Oe.create=(t,e)=>new Oe({shape:()=>t,unknownKeys:"strip",catchall:mr.create(),typeName:te.ZodObject,...ae(e)});Oe.strictCreate=(t,e)=>new Oe({shape:()=>t,unknownKeys:"strict",catchall:mr.create(),typeName:te.ZodObject,...ae(e)});Oe.lazycreate=(t,e)=>new Oe({shape:t,unknownKeys:"strip",catchall:mr.create(),typeName:te.ZodObject,...ae(e)});var Ci=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new Bt(a.ctx.common.issues));return G(r,{code:N.invalid_union,unionErrors:o}),oe}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},f=c._parseSync({data:r.data,path:r.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new Bt(c));return G(r,{code:N.invalid_union,unionErrors:a}),oe}}get options(){return this._def.options}};Ci.create=(t,e)=>new Ci({options:t,typeName:te.ZodUnion,...ae(e)});var tf=t=>t instanceof Ti?tf(t.schema):t instanceof Ht?tf(t.innerType()):t instanceof ki?[t.value]:t instanceof Nr?t.options:t instanceof Pi?Object.keys(t.enum):t instanceof Ii?tf(t._def.innerType):t instanceof Si?[void 0]:t instanceof Ai?[null]:null,no=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.object)return G(r,{code:N.invalid_type,expected:U.object,received:r.parsedType}),oe;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(G(r,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),oe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=tf(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new no({typeName:te.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...ae(n)})}};function r0(t,e){let r=Un(t),n=Un(e);if(t===e)return{valid:!0,data:t};if(r===U.object&&n===U.object){let i=me.objectKeys(e),s=me.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=r0(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===U.array&&n===U.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],c=r0(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===U.date&&n===U.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var Ri=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(e0(s)||e0(o))return oe;let a=r0(s.value,o.value);return a.valid?((t0(s)||t0(o))&&r.dirty(),{status:r.value,value:a.data}):(G(n,{code:N.invalid_intersection_types}),oe)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Ri.create=(t,e,r)=>new Ri({left:t,right:e,typeName:te.ZodIntersection,...ae(r)});var sr=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.array)return G(n,{code:N.invalid_type,expected:U.array,received:n.parsedType}),oe;if(n.data.length<this._def.items.length)return G(n,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),oe;!this._def.rest&&n.data.length>this._def.items.length&&(G(n,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new ir(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>Xe.mergeArray(r,o)):Xe.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new sr({...this._def,rest:e})}};sr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new sr({items:t,typeName:te.ZodTuple,rest:null,...ae(e)})};var Oi=class extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.object)return G(n,{code:N.invalid_type,expected:U.object,received:n.parsedType}),oe;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new ir(n,a,n.path,a)),value:o._parse(new ir(n,n.data[a],n.path,a))});return n.common.async?Xe.mergeObjectAsync(r,i):Xe.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof ce?new Oi({keyType:e,valueType:r,typeName:te.ZodRecord,...ae(n)}):new Oi({keyType:qt.create(),valueType:e,typeName:te.ZodRecord,...ae(r)})}},io=class extends ce{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.map)return G(n,{code:N.invalid_type,expected:U.map,received:n.parsedType}),oe;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],u)=>({key:i._parse(new ir(n,a,n.path,[u,"key"])),value:s._parse(new ir(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,f=await c.value;if(u.status==="aborted"||f.status==="aborted")return oe;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(u.value,f.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,f=c.value;if(u.status==="aborted"||f.status==="aborted")return oe;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(u.value,f.value)}return{status:r.value,value:a}}}};io.create=(t,e,r)=>new io({valueType:e,keyType:t,typeName:te.ZodMap,...ae(r)});var ln=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==U.set)return G(n,{code:N.invalid_type,expected:U.set,received:n.parsedType}),oe;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(G(n,{code:N.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(G(n,{code:N.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let f of c){if(f.status==="aborted")return oe;f.status==="dirty"&&r.dirty(),u.add(f.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>s._parse(new ir(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new ln({...this._def,minSize:{value:e,message:X.toString(r)}})}max(e,r){return new ln({...this._def,maxSize:{value:e,message:X.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};ln.create=(t,e)=>new ln({valueType:t,minSize:null,maxSize:null,typeName:te.ZodSet,...ae(e)});var Gn=class extends ce{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.function)return G(r,{code:N.invalid_type,expected:U.function,received:r.parsedType}),oe;function n(a,c){return nf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,rf(),ka].filter(u=>!!u),issueData:{code:N.invalid_arguments,argumentsError:c}})}function i(a,c){return nf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,rf(),ka].filter(u=>!!u),issueData:{code:N.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Wn){let a=this;return _t(async function(...c){let u=new Bt([]),f=await a._def.args.parseAsync(c,s).catch(g=>{throw u.addIssue(n(c,g)),u}),h=await Reflect.apply(o,this,f);return await a._def.returns._def.type.parseAsync(h,s).catch(g=>{throw u.addIssue(i(h,g)),u})})}else{let a=this;return _t(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new Bt([n(c,u.error)]);let f=Reflect.apply(o,this,u.data),h=a._def.returns.safeParse(f,s);if(!h.success)throw new Bt([i(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Gn({...this._def,args:sr.create(e).rest(cn.create())})}returns(e){return new Gn({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new Gn({args:e||sr.create([]).rest(cn.create()),returns:r||cn.create(),typeName:te.ZodFunction,...ae(n)})}},Ti=class extends ce{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Ti.create=(t,e)=>new Ti({getter:t,typeName:te.ZodLazy,...ae(e)});var ki=class extends ce{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return G(r,{received:r.data,code:N.invalid_literal,expected:this._def.value}),oe}return{status:"valid",value:e.data}}get value(){return this._def.value}};ki.create=(t,e)=>new ki({value:t,typeName:te.ZodLiteral,...ae(e)});function CP(t,e){return new Nr({values:t,typeName:te.ZodEnum,...ae(e)})}var Nr=class extends ce{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return G(r,{expected:me.joinValues(n),received:r.parsedType,code:N.invalid_type}),oe}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),n=this._def.values;return G(r,{received:r.data,code:N.invalid_enum_value,options:n}),oe}return _t(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return Nr.create(e)}exclude(e){return Nr.create(this.options.filter(r=>!e.includes(r)))}};Nr.create=CP;var Pi=class extends ce{_parse(e){let r=me.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==U.string&&n.parsedType!==U.number){let i=me.objectValues(r);return G(n,{expected:me.joinValues(i),received:n.parsedType,code:N.invalid_type}),oe}if(r.indexOf(e.data)===-1){let i=me.objectValues(r);return G(n,{received:n.data,code:N.invalid_enum_value,options:i}),oe}return _t(e.data)}get enum(){return this._def.values}};Pi.create=(t,e)=>new Pi({values:t,typeName:te.ZodNativeEnum,...ae(e)});var Wn=class extends ce{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==U.promise&&r.common.async===!1)return G(r,{code:N.invalid_type,expected:U.promise,received:r.parsedType}),oe;let n=r.parsedType===U.promise?r.data:Promise.resolve(r.data);return _t(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Wn.create=(t,e)=>new Wn({type:t,typeName:te.ZodPromise,...ae(e)});var Ht=class extends ce{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{G(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:n.path,parent:n})):this._def.schema._parseSync({data:o,path:n.path,parent:n})}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?oe:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?oe:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Pa(o))return o;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Pa(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);me.assertNever(i)}};Ht.create=(t,e,r)=>new Ht({schema:t,typeName:te.ZodEffects,effect:e,...ae(r)});Ht.createWithPreprocess=(t,e,r)=>new Ht({schema:e,effect:{type:"preprocess",transform:t},typeName:te.ZodEffects,...ae(r)});var pr=class extends ce{_parse(e){return this._getType(e)===U.undefined?_t(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};pr.create=(t,e)=>new pr({innerType:t,typeName:te.ZodOptional,...ae(e)});var fn=class extends ce{_parse(e){return this._getType(e)===U.null?_t(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fn.create=(t,e)=>new fn({innerType:t,typeName:te.ZodNullable,...ae(e)});var Ii=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===U.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Ii.create=(t,e)=>new Ii({innerType:t,typeName:te.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ae(e)});var so=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return sf(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Bt(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Bt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};so.create=(t,e)=>new so({innerType:t,typeName:te.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ae(e)});var oo=class extends ce{_parse(e){if(this._getType(e)!==U.nan){let n=this._getOrReturnCtx(e);return G(n,{code:N.invalid_type,expected:U.nan,received:n.parsedType}),oe}return{status:"valid",value:e.data}}};oo.create=t=>new oo({typeName:te.ZodNaN,...ae(t)});var NV=Symbol("zod_brand"),of=class extends ce{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Li=class extends ce{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?oe:s.status==="dirty"?(r.dirty(),AP(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?oe:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new Li({in:e,out:r,typeName:te.ZodPipeline})}},ao=class extends ce{_parse(e){let r=this._def.innerType._parse(e);return Pa(r)&&(r.value=Object.freeze(r.value)),r}};ao.create=(t,e)=>new ao({innerType:t,typeName:te.ZodReadonly,...ae(e)});var RP=(t,e={},r)=>t?Vn.create().superRefine((n,i)=>{var s,o;if(!t(n)){let a=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,u=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...u,fatal:c})}}):Vn.create(),DV={object:Oe.lazycreate},te;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(te||(te={}));var MV=(t,e={message:`Input not instance of ${t.name}`})=>RP(r=>r instanceof t,e),OP=qt.create,TP=Ir.create,FV=oo.create,qV=Lr.create,kP=xi.create,BV=un.create,jV=to.create,HV=Si.create,$V=Ai.create,UV=Vn.create,GV=cn.create,VV=mr.create,WV=ro.create,zV=jt.create,YV=Oe.create,KV=Oe.strictCreate,ZV=Ci.create,JV=no.create,XV=Ri.create,QV=sr.create,e7=Oi.create,t7=io.create,r7=ln.create,n7=Gn.create,i7=Ti.create,s7=ki.create,o7=Nr.create,a7=Pi.create,c7=Wn.create,xP=Ht.create,u7=pr.create,l7=fn.create,f7=Ht.createWithPreprocess,h7=Li.create,d7=()=>OP().optional(),p7=()=>TP().optional(),m7=()=>kP().optional(),g7={string:t=>qt.create({...t,coerce:!0}),number:t=>Ir.create({...t,coerce:!0}),boolean:t=>xi.create({...t,coerce:!0}),bigint:t=>Lr.create({...t,coerce:!0}),date:t=>un.create({...t,coerce:!0})},y7=oe,co=Object.freeze({__proto__:null,defaultErrorMap:ka,setErrorMap:EV,getErrorMap:rf,makeIssue:nf,EMPTY_PATH:wV,addIssueToContext:G,ParseStatus:Xe,INVALID:oe,DIRTY:AP,OK:_t,isAborted:e0,isDirty:t0,isValid:Pa,isAsync:sf,get util(){return me},get objectUtil(){return Qy},ZodParsedType:U,getParsedType:Un,ZodType:ce,ZodString:qt,ZodNumber:Ir,ZodBigInt:Lr,ZodBoolean:xi,ZodDate:un,ZodSymbol:to,ZodUndefined:Si,ZodNull:Ai,ZodAny:Vn,ZodUnknown:cn,ZodNever:mr,ZodVoid:ro,ZodArray:jt,ZodObject:Oe,ZodUnion:Ci,ZodDiscriminatedUnion:no,ZodIntersection:Ri,ZodTuple:sr,ZodRecord:Oi,ZodMap:io,ZodSet:ln,ZodFunction:Gn,ZodLazy:Ti,ZodLiteral:ki,ZodEnum:Nr,ZodNativeEnum:Pi,ZodPromise:Wn,ZodEffects:Ht,ZodTransformer:Ht,ZodOptional:pr,ZodNullable:fn,ZodDefault:Ii,ZodCatch:so,ZodNaN:oo,BRAND:NV,ZodBranded:of,ZodPipeline:Li,ZodReadonly:ao,custom:RP,Schema:ce,ZodSchema:ce,late:DV,get ZodFirstPartyTypeKind(){return te},coerce:g7,any:UV,array:zV,bigint:qV,boolean:kP,date:BV,discriminatedUnion:JV,effect:xP,enum:o7,function:n7,instanceof:MV,intersection:XV,lazy:i7,literal:s7,map:t7,nan:FV,nativeEnum:a7,never:VV,null:$V,nullable:l7,number:TP,object:YV,oboolean:m7,onumber:p7,optional:u7,ostring:d7,pipeline:h7,preprocess:f7,promise:c7,record:e7,set:r7,strictObject:KV,string:OP,symbol:jV,transformer:xP,tuple:QV,undefined:HV,union:ZV,unknown:GV,void:WV,NEVER:y7,ZodIssueCode:N,quotelessJson:bV,ZodError:Bt});l();var c0=le(require("os")),BP=le(require("crypto")),jP=le(require("path")),HP=le(qP());function R7(t){let e=process.version,r=c0.default.type(),n=c0.default.arch();return`${t.name} ${t.version} ${e} ${r} ${n}`}async function O7(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,HP.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return jP.default.join(t,"turborepo","telemetry.json")}function T7({input:t,salt:e}){return BP.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var uo={buildUserAgent:R7,oneWayHashWithSalt:T7,defaultConfigPath:O7};var k7="TURBO_TELEMETRY_DEBUG",P7="TURBO_TELEMETRY_DISABLED",I7="TURBO_TELEMETRY_MESSAGE_DISABLED",L7="DO_NOT_TRACK",N7=co.object({telemetry_enabled:co.boolean(),telemetry_id:co.string(),telemetry_salt:co.string(),telemetry_alerted:co.string().optional()}),Tt=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,lo.readFileSync)(e,"utf-8"),n=JSON.parse(r),i=Tt.validateConfig(n);return new Tt({configPath:e,config:i})}catch{return Tt.tryRemove({configPath:e})?Tt.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await uo.defaultConfigPath();return Tt.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return N7.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=(0,u0.randomUUID)(),n=(0,u0.randomUUID)(),i=uo.oneWayHashWithSalt({input:r,salt:n}),s=new Tt({configPath:e,config:{telemetry_enabled:!0,telemetry_id:i,telemetry_salt:n}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,lo.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,lo.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[L7]||"0",r=process.env[P7]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[I7]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(Se.log(),Se.bold("Attention:"),Se.grey("Turborepo now collects completely anonymous telemetry regarding usage."),Se.grey("This information is used to shape the Turborepo roadmap and prioritize features."),Se.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),Se.underline($P.default.gray("https://turborepo.com/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return uo.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[k7]||"0";return e==="1"||e.toLowerCase()==="true"}};l();l();var l0=require("crypto"),UP=le(fP());var D7=20,M7="/api/turborepo/v1/events",Ni=class{constructor({api:e,packageInfo:r,config:n,opts:i}){this.batchSize=D7;this.timeout=250;this.sessionId=(0,l0.randomUUID)();this.eventBatches=[];this.events=[];let s=new URL(M7,e);this.api=s.toString(),this.packageInfo=r,this.config=n,i!=null&&i.timeout&&(this.timeout=i.timeout),i!=null&&i.batchSize&&(this.batchSize=i.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(UP.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":uo.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:n,isSensitive:i}){let s={id:(0,l0.randomUUID)(),key:e,value:i?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:n};return Tt.isDebug()&&(Se.log(),Se.bold("[telemetry event]"),Se.dimmed(JSON.stringify(s,null,2)),Se.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var Ia=class extends Ni{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};l();var YP=le(zP());var q7=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],La=class extends Ni{trackCI(){var e;return this.track({key:"ci",value:(e=YP.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:q7.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var B7={"create-turbo":Ia,"turbo-ignore":La},j7="https://telemetry.vercel.com";async function f0({packageInfo:t,opts:e}){let r=B7[t.name],n=await Tt.fromDefaultConfig();return n?(n.showAlert(),{telemetry:new r({api:j7,packageInfo:t,config:n,opts:e})}):{telemetry:void 0}}l();var Na=le(Bc());var KP="status",H7=["enable","disable",KP];function $7(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();Se.log(`Status: ${e?Na.default.bold(Na.default.green("Enabled")):Na.default.bold(Na.default.red("Disabled"))}`),Se.log(),e?Se.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):Se.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),Se.log("Learn more: https://turborepo.com/docs/telemetry")}function U7(t,e){if(!e.telemetry){Se.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),Se.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),Se.bold("Success!")),Se.log(),$7(e)}function h0(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new M0("[action]","Action to perform").choices(H7).default(KP)).action(U7)}var cf={name:"turbo-ignore",version:"2.6.2",description:"",homepage:"https://turborepo.com",keywords:[],author:"Jared Palmer",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/turbo-ignore"},bugs:{url:"https://github.com/vercel/turborepo/issues"},files:["dist"],bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src __tests__","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{json5:"^2.2.3"},devDependencies:{"@jest/globals":"^29.7.0","@turbo/eslint-config":"workspace:*","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@types/node":"^18.17.2",commander:"^11.0.0",jest:"^29.7.0","ts-jest":"^29.2.5",tsup:"^5.12.1",typescript:"5.5.4"}};l();var cI=require("child_process"),uI=le(require("path")),lI=require("fs");l();var ZP=require("child_process");l();var d0="\u226B ";function xe(...t){console.log(d0,...t)}function or(...t){console.error(d0,...t)}function Da(...t){console.warn(d0,...t)}function p0(...t){console.log(...t)}function V7(t){try{return(0,ZP.execSync)(`git cat-file -t ${t}`,{stdio:"ignore"}),!0}catch{return!1}}function m0(t){return t.fallback?(xe(`Falling back to ref ${t.fallback}`),{ref:t.fallback,type:"customFallback"}):null}function JP(t){let{workspace:e}=t;return process.env.VERCEL==="1"?process.env.VERCEL_GIT_PREVIOUS_SHA?V7(process.env.VERCEL_GIT_PREVIOUS_SHA)?(xe(`Found previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),{ref:process.env.VERCEL_GIT_PREVIOUS_SHA,type:"previousDeploy"}):(xe(`Previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""} is unreachable.`),m0(t)):(xe(`No previous deployments found for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),m0(t)):t.fallback?m0(t):{ref:"HEAD^",type:"headRelative"}}l();function XP(t){return t.task?(xe(`Using "${t.task}" as the task from the arguments`),`"${t.task}"`):(xe('Using "build" as the task as it was unspecified'),"build")}l();var QP=le(require("fs")),eI=le(require("path"));function tI(t){let{directory:e=process.cwd(),workspace:r}=t;if(r)return xe(`Using "${r}" as workspace from arguments`),r;let n=eI.default.join(e,"package.json");try{let i=QP.default.readFileSync(n,"utf8"),s=JSON.parse(i);return s.name?(xe(`Inferred "${s.name}" as workspace from "package.json"`),s.name):(or(`"${n}" is missing the "name" field (required).`),null)}catch{return or(`"${n}" could not be found. turbo-ignore inferencing failed`),null}}l();var g0=le(require("fs")),y0=le(require("path")),rI=require("json5");function nI(t,e){var s,o;let{turboVersion:r}=t;if(r)return xe(`Using turbo version "${r}" from arguments`),r;let n=y0.default.join(e,"package.json");try{let a=g0.default.readFileSync(n,"utf8"),c=JSON.parse(a),u=(s=c.dependencies)==null?void 0:s.turbo,f=(o=c.devDependencies)==null?void 0:o.turbo;if(r=u||f,r!==void 0){if(!r.startsWith("catalog:"))return xe(`Inferred turbo version "${r}" from "package.json"`),r;Da("Cannot infer turbo version due to use of `catalog` protocol. Remove `turbo` from your PNPM catalog to ensure correct turbo version is used")}}catch{return or(`"${n}" could not be read. turbo-ignore turbo version inference failed`),null}let i=y0.default.join(e,"turbo.json");try{let a=g0.default.readFileSync(i,"utf8"),c=(0,rI.parse)(a);return"tasks"in c?(xe('Inferred turbo version ^2 based on "tasks" in "turbo.json"'),"^2"):"pipeline"in c?(xe('Inferred turbo version ^1 based on "pipeline" in "turbo.json"'),"^1"):null}catch{return or(`"${i}" could not be read. turbo-ignore turbo version inference failed`),null}}l();var _0={MISSING_LOCKFILE:{regex:[/reading (?:yarn.lock|package-lock.json|pnpm-lock.yaml):.*?no such file or directory/i],message:"turbo-ignore could not complete - no lockfile found, please commit one to your repository"},NO_PACKAGE_MANAGER:{regex:[/run failed: We did not detect an in-use package manager for your project/i],message:'turbo-ignore could not complete - no package manager detected, please commit a lockfile, or set "packageManager" in your root "package.json"'},UNREACHABLE_PARENT:{regex:[/failed to resolve packages to run: commit HEAD\^ does not exist/i],message:"turbo-ignore could not complete - parent commit does not exist or is unreachable"},INVALID_COMPARISON:{regex:[/commit \S+ does not exist/i,/unknown revision/i,/invalid symmetric difference expression/i],message:"turbo-ignore could not complete - a ref or SHA is invalid. It could have been removed from the branch history via a force push, or this could be a shallow clone with insufficient history"}};function iI({err:t}){let e=Object.keys(_0).find(r=>{let{regex:n}=_0[r];return n.some(i=>i.test(t))});return e?{level:"warn",message:_0[e].message,code:e}:{level:"error",message:t,code:"UNKNOWN_ERROR"}}l();var sI=require("child_process"),W7=["[skip ci]","[ci skip]","[no ci]","[skip vercel]","[vercel skip]"],z7=["[vercel deploy]","[vercel build]"];function Y7({workspace:t}){return[`[vercel skip ${t}]`]}function K7({workspace:t}){return[`[vercel deploy ${t}]`,`[vercel build ${t}]`]}var Z7=/\[vercel only .+\]/;function J7({workspace:t}){return[`[vercel only ${t}]`]}function X7(){return process.env.VERCEL==="1"&&process.env.VERCEL_GIT_COMMIT_MESSAGE?process.env.VERCEL_GIT_COMMIT_MESSAGE:(0,sI.execSync)("git show -s --format=%B").toString()}function oI({workspace:t}){var c;let e=X7(),r=u=>e.includes(u),n=(c=Z7.exec(e))==null?void 0:c[0];if(n)return J7({workspace:t}).find(u=>u===n)?{result:"deploy",scope:"workspace",reason:`Found commit message: ${n}`}:{result:"skip",scope:"workspace",reason:`Found commit message: ${n}`};let i=K7({workspace:t}).find(r),s=Y7({workspace:t}).find(r);if(i&&s)return{result:"conflict",scope:"workspace",reason:`Conflicting commit messages found: ${i} and ${s}`};if(i)return{result:"deploy",scope:"workspace",reason:`Found commit message: ${i}`};if(s)return{result:"skip",scope:"workspace",reason:`Found commit message: ${s}`};let o=z7.find(r),a=W7.find(r);return o&&a?{result:"conflict",scope:"global",reason:`Conflicting commit messages found: ${o} and ${a}`}:o?{result:"deploy",scope:"global",reason:`Found commit message: ${o}`}:a?{result:"skip",scope:"global",reason:`Found commit message: ${a}`}:{result:"continue",scope:"global",reason:"No deploy or skip string found in commit message."}}function Q7(t){var e,r,n,i;(e=t.telemetry)==null||e.trackOptionTask(t.task),(r=t.telemetry)==null||r.trackOptionFallback(t.fallback),(n=t.telemetry)==null||n.trackOptionDirectory(t.directory),(i=t.telemetry)==null||i.trackOptionMaxBuffer(t.maxBuffer)}function aI(){return p0("\u23ED Ignoring the change"),process.exit(0)}function Mr(){return p0("\u2713 Proceeding with deployment"),process.exit(1)}function fI(t,e){var d,g;(d=e.telemetry)==null||d.trackCommandStatus({command:"ignore",status:"start"}),(g=e.telemetry)==null||g.trackArgumentWorkspace(t!==void 0),Q7(e);let r={workspace:t,...e};if(xe(`Using Turborepo to determine if this project is affected by the commit...
|
|
88
|
-
`),e.directory){let
|
|
87
|
+
`:""}var RM=CM,OM={dump:RM};function Eh(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var Uz=Zb.load,Gz=Zb.loadAll,Vz=OM.dump;var Wz=Eh("safeLoad","load"),zz=Eh("safeLoadAll","loadAll"),Yz=Eh("safeDump","dump");var CH=le(Yx()),RH=le(require("json5"));var Se={};_I(Se,{bold:()=>_H,dimmed:()=>bH,error:()=>$p,grey:()=>EH,info:()=>yH,item:()=>wH,log:()=>An,turboBlue:()=>ps,turboGradient:()=>gH,turboLoader:()=>mA,turboRed:()=>dA,underline:()=>vH,warn:()=>gA,yellow:()=>pA});l();var St=le(Bc()),uA=le(DS()),lA=le(cA()),fA="#0099F7",hA="#F11712",mH="#FFFF00",Hp=t=>{let e=xH(t);return r=>`\x1B[38;5;${e}m${r}${(0,St.reset)("")}`},gH=(0,lA.default)(fA,hA),ps=Hp(fA),dA=Hp(hA),pA=Hp(mH),mA=t=>(0,uA.default)({text:t,spinner:{frames:[" ",ps("> "),ps(">> "),ps(">>>")]}}),yH=(...t)=>{An(ps((0,St.bold)(">>>")),t.join(" "))},_H=(...t)=>{An((0,St.bold)(t.join(" ")))},vH=(...t)=>{An((0,St.underline)(t.join(" ")))},bH=(...t)=>{An((0,St.dim)(t.join(" ")))},EH=(...t)=>{An((0,St.gray)(t.join(" ")))},wH=(...t)=>{An(ps((0,St.bold)(" \u2022")),t.join(" "))},An=(...t)=>{console.log(...t)},gA=(...t)=>{console.error(pA((0,St.bold)(">>>")),t.join(" "))},$p=(...t)=>{console.error(dA((0,St.bold)(">>>")),t.join(" "))};function xH(t){let e=parseInt(t.slice(1),16),r=Math.floor(e/(256*256))%256,n=Math.floor(e/256)%256,i=e%256;return 16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)}l();var b6=le(require("os")),E6=le(UC());l();l();var w6=le(require("path"));l();var hP=require("stream"),dP=require("util"),oV=require("path"),aV=require("os"),pP=require("fs"),cV=le(HT());var GX=(0,dP.promisify)(hP.Stream.pipeline);l();l();var _V=le(require("path")),vV=le(EP());l();l();var $P=le(Bc());l();var me;(function(t){t.assertEqual=i=>i;function e(i){}t.assertIs=e;function r(i){throw new Error}t.assertNever=r,t.arrayToEnum=i=>{let s={};for(let o of i)s[o]=o;return s},t.getValidEnumValues=i=>{let s=t.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),o={};for(let a of s)o[a]=i[a];return t.objectValues(o)},t.objectValues=i=>t.objectKeys(i).map(function(s){return i[s]}),t.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{let s=[];for(let o in i)Object.prototype.hasOwnProperty.call(i,o)&&s.push(o);return s},t.find=(i,s)=>{for(let o of i)if(s(o))return o},t.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&isFinite(i)&&Math.floor(i)===i;function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).join(s)}t.joinValues=n,t.jsonStringifyReplacer=(i,s)=>typeof s=="bigint"?s.toString():s})(me||(me={}));var Qy;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(Qy||(Qy={}));var G=me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Un=t=>{switch(typeof t){case"undefined":return G.undefined;case"string":return G.string;case"number":return isNaN(t)?G.nan:G.number;case"boolean":return G.boolean;case"function":return G.function;case"bigint":return G.bigint;case"symbol":return G.symbol;case"object":return Array.isArray(t)?G.array:t===null?G.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?G.promise:typeof Map<"u"&&t instanceof Map?G.map:typeof Set<"u"&&t instanceof Set?G.set:typeof Date<"u"&&t instanceof Date?G.date:G.object;default:return G.unknown}},N=me.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),bV=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),Bt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{for(let o of s.issues)if(o.code==="invalid_union")o.unionErrors.map(i);else if(o.code==="invalid_return_type")i(o.returnTypeError);else if(o.code==="invalid_arguments")i(o.argumentsError);else if(o.path.length===0)n._errors.push(r(o));else{let a=n,c=0;for(;c<o.path.length;){let u=o.path[c];c===o.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(r(o))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}};return i(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)i.path.length>0?(r[i.path[0]]=r[i.path[0]]||[],r[i.path[0]].push(e(i))):n.push(e(i));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};Bt.create=t=>new Bt(t);var ka=(t,e)=>{let r;switch(t.code){case N.invalid_type:t.received===G.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case N.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,me.jsonStringifyReplacer)}`;break;case N.unrecognized_keys:r=`Unrecognized key(s) in object: ${me.joinValues(t.keys,", ")}`;break;case N.invalid_union:r="Invalid input";break;case N.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${me.joinValues(t.options)}`;break;case N.invalid_enum_value:r=`Invalid enum value. Expected ${me.joinValues(t.options)}, received '${t.received}'`;break;case N.invalid_arguments:r="Invalid function arguments";break;case N.invalid_return_type:r="Invalid function return type";break;case N.invalid_date:r="Invalid date";break;case N.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:me.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case N.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case N.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case N.custom:r="Invalid input";break;case N.invalid_intersection_types:r="Intersection results could not be merged";break;case N.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case N.not_finite:r="Number must be finite";break;default:r=e.defaultError,me.assertNever(t)}return{message:r}},SP=ka;function EV(t){SP=t}function rf(){return SP}var nf=t=>{let{data:e,path:r,errorMaps:n,issueData:i}=t,s=[...r,...i.path||[]],o={...i,path:s},a="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)a=u(o,{data:e,defaultError:a}).message;return{...i,path:s,message:i.message||a}},wV=[];function V(t,e){let r=nf({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,rf(),ka].filter(n=>!!n)});t.common.issues.push(r)}var Xe=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")return ae;i.status==="dirty"&&e.dirty(),n.push(i.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,r){let n=[];for(let i of r)n.push({key:await i.key,value:await i.value});return Xe.mergeObjectSync(e,n)}static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=i;if(s.status==="aborted"||o.status==="aborted")return ae;s.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof o.value<"u"||i.alwaysSet)&&(n[s.value]=o.value)}return{status:e.value,value:n}}},ae=Object.freeze({status:"aborted"}),AP=t=>({status:"dirty",value:t}),_t=t=>({status:"valid",value:t}),e0=t=>t.status==="aborted",t0=t=>t.status==="dirty",Pa=t=>t.status==="valid",sf=t=>typeof Promise<"u"&&t instanceof Promise,X;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(X||(X={}));var ir=class{constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this._path=n,this._key=i}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},wP=(t,e)=>{if(Pa(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new Bt(t.common.issues);return this._error=r,this._error}}};function ce(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:n,description:i}=t;if(e&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:i}:{errorMap:(o,a)=>o.code!=="invalid_type"?{message:a.defaultError}:typeof a.data>"u"?{message:n!=null?n:a.defaultError}:{message:r!=null?r:a.defaultError},description:i}}var ue=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Un(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:Un(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Xe,ctx:{common:e.parent.common,data:e.data,parsedType:Un(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(sf(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.error}safeParse(e,r){var n;let i={common:{issues:[],async:(n=r==null?void 0:r.async)!==null&&n!==void 0?n:!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Un(e)},s=this._parseSync({data:e,path:i.path,parent:i});return wP(i,s)}async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)return n.data;throw n.error}async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Un(e)},i=this._parse({data:e,path:n.path,parent:n}),s=await(sf(i)?i:Promise.resolve(i));return wP(n,s)}refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(i):r;return this._refinement((i,s)=>{let o=e(i),a=()=>s.addIssue({code:N.custom,...n(i)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeof r=="function"?r(n,i):r),!1))}_refinement(e){return new Ht({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return pr.create(this,this._def)}nullable(){return fn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return jt.create(this,this._def)}promise(){return Wn.create(this,this._def)}or(e){return Ci.create([this,e],this._def)}and(e){return Ri.create(this,e,this._def)}transform(e){return new Ht({...ce(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new Ii({...ce(this._def),innerType:this,defaultValue:r,typeName:te.ZodDefault})}brand(){return new of({typeName:te.ZodBranded,type:this,...ce(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new so({...ce(this._def),innerType:this,catchValue:r,typeName:te.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return Li.create(this,e)}readonly(){return ao.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},xV=/^c[^\s-]{8,}$/i,SV=/^[a-z][a-z0-9]*$/,AV=/^[0-9A-HJKMNP-TV-Z]{26}$/,CV=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,RV=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,OV="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Xy,TV=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,kV=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,PV=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function IV(t,e){return!!((e==="v4"||!e)&&TV.test(t)||(e==="v6"||!e)&&kV.test(t))}var qt=class extends ue{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==G.string){let s=this._getOrReturnCtx(e);return V(s,{code:N.invalid_type,expected:G.string,received:s.parsedType}),ae}let n=new Xe,i;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(i=this._getOrReturnCtx(e,i),V(i,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="max")e.data.length>s.value&&(i=this._getOrReturnCtx(e,i),V(i,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),n.dirty());else if(s.kind==="length"){let o=e.data.length>s.value,a=e.data.length<s.value;(o||a)&&(i=this._getOrReturnCtx(e,i),o?V(i,{code:N.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&V(i,{code:N.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),n.dirty())}else if(s.kind==="email")RV.test(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{validation:"email",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="emoji")Xy||(Xy=new RegExp(OV,"u")),Xy.test(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{validation:"emoji",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="uuid")CV.test(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{validation:"uuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid")xV.test(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{validation:"cuid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="cuid2")SV.test(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{validation:"cuid2",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="ulid")AV.test(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{validation:"ulid",code:N.invalid_string,message:s.message}),n.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{i=this._getOrReturnCtx(e,i),V(i,{validation:"url",code:N.invalid_string,message:s.message}),n.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{validation:"regex",code:N.invalid_string,message:s.message}),n.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(i=this._getOrReturnCtx(e,i),V(i,{code:N.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),n.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(i=this._getOrReturnCtx(e,i),V(i,{code:N.invalid_string,validation:{startsWith:s.value},message:s.message}),n.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(i=this._getOrReturnCtx(e,i),V(i,{code:N.invalid_string,validation:{endsWith:s.value},message:s.message}),n.dirty()):s.kind==="datetime"?PV(s).test(e.data)||(i=this._getOrReturnCtx(e,i),V(i,{code:N.invalid_string,validation:"datetime",message:s.message}),n.dirty()):s.kind==="ip"?IV(e.data,s.version)||(i=this._getOrReturnCtx(e,i),V(i,{validation:"ip",code:N.invalid_string,message:s.message}),n.dirty()):me.assertNever(s);return{status:n.value,value:e.data}}_regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:N.invalid_string,...X.errToObj(n)})}_addCheck(e){return new qt({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...X.errToObj(e)})}url(e){return this._addCheck({kind:"url",...X.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...X.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...X.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...X.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...X.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...X.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...X.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(r=e==null?void 0:e.offset)!==null&&r!==void 0?r:!1,...X.errToObj(e==null?void 0:e.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...X.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r==null?void 0:r.position,...X.errToObj(r==null?void 0:r.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...X.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...X.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...X.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...X.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...X.errToObj(r)})}nonempty(e){return this.min(1,X.errToObj(e))}trim(){return new qt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new qt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};qt.create=t=>{var e;return new qt({checks:[],typeName:te.ZodString,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...ce(t)})};function LV(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,i=r>n?r:n,s=parseInt(t.toFixed(i).replace(".","")),o=parseInt(e.toFixed(i).replace(".",""));return s%o/Math.pow(10,i)}var Ir=class extends ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==G.number){let s=this._getOrReturnCtx(e);return V(s,{code:N.invalid_type,expected:G.number,received:s.parsedType}),ae}let n,i=new Xe;for(let s of this._def.checks)s.kind==="int"?me.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),V(n,{code:N.invalid_type,expected:"integer",received:"float",message:s.message}),i.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),V(n,{code:N.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),V(n,{code:N.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),i.dirty()):s.kind==="multipleOf"?LV(e.data,s.value)!==0&&(n=this._getOrReturnCtx(e,n),V(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),V(n,{code:N.not_finite,message:s.message}),i.dirty()):me.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,X.toString(r))}gt(e,r){return this.setLimit("min",e,!1,X.toString(r))}lte(e,r){return this.setLimit("max",e,!0,X.toString(r))}lt(e,r){return this.setLimit("max",e,!1,X.toString(r))}setLimit(e,r,n,i){return new Ir({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:X.toString(i)}]})}_addCheck(e){return new Ir({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:X.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:X.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:X.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:X.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:X.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&me.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(e===null||n.value<e)&&(e=n.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Ir.create=t=>new Ir({checks:[],typeName:te.ZodNumber,coerce:(t==null?void 0:t.coerce)||!1,...ce(t)});var Lr=class extends ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==G.bigint){let s=this._getOrReturnCtx(e);return V(s,{code:N.invalid_type,expected:G.bigint,received:s.parsedType}),ae}let n,i=new Xe;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(n=this._getOrReturnCtx(e,n),V(n,{code:N.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(n=this._getOrReturnCtx(e,n),V(n,{code:N.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),i.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),V(n,{code:N.not_multiple_of,multipleOf:s.value,message:s.message}),i.dirty()):me.assertNever(s);return{status:i.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,X.toString(r))}gt(e,r){return this.setLimit("min",e,!1,X.toString(r))}lte(e,r){return this.setLimit("max",e,!0,X.toString(r))}lt(e,r){return this.setLimit("max",e,!1,X.toString(r))}setLimit(e,r,n,i){return new Lr({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:n,message:X.toString(i)}]})}_addCheck(e){return new Lr({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:X.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:X.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:X.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:X.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Lr.create=t=>{var e;return new Lr({checks:[],typeName:te.ZodBigInt,coerce:(e=t==null?void 0:t.coerce)!==null&&e!==void 0?e:!1,...ce(t)})};var xi=class extends ue{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==G.boolean){let n=this._getOrReturnCtx(e);return V(n,{code:N.invalid_type,expected:G.boolean,received:n.parsedType}),ae}return _t(e.data)}};xi.create=t=>new xi({typeName:te.ZodBoolean,coerce:(t==null?void 0:t.coerce)||!1,...ce(t)});var un=class extends ue{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==G.date){let s=this._getOrReturnCtx(e);return V(s,{code:N.invalid_type,expected:G.date,received:s.parsedType}),ae}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return V(s,{code:N.invalid_date}),ae}let n=new Xe,i;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(i=this._getOrReturnCtx(e,i),V(i,{code:N.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),n.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(i=this._getOrReturnCtx(e,i),V(i,{code:N.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),n.dirty()):me.assertNever(s);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new un({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:X.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:X.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};un.create=t=>new un({checks:[],coerce:(t==null?void 0:t.coerce)||!1,typeName:te.ZodDate,...ce(t)});var to=class extends ue{_parse(e){if(this._getType(e)!==G.symbol){let n=this._getOrReturnCtx(e);return V(n,{code:N.invalid_type,expected:G.symbol,received:n.parsedType}),ae}return _t(e.data)}};to.create=t=>new to({typeName:te.ZodSymbol,...ce(t)});var Si=class extends ue{_parse(e){if(this._getType(e)!==G.undefined){let n=this._getOrReturnCtx(e);return V(n,{code:N.invalid_type,expected:G.undefined,received:n.parsedType}),ae}return _t(e.data)}};Si.create=t=>new Si({typeName:te.ZodUndefined,...ce(t)});var Ai=class extends ue{_parse(e){if(this._getType(e)!==G.null){let n=this._getOrReturnCtx(e);return V(n,{code:N.invalid_type,expected:G.null,received:n.parsedType}),ae}return _t(e.data)}};Ai.create=t=>new Ai({typeName:te.ZodNull,...ce(t)});var Vn=class extends ue{constructor(){super(...arguments),this._any=!0}_parse(e){return _t(e.data)}};Vn.create=t=>new Vn({typeName:te.ZodAny,...ce(t)});var cn=class extends ue{constructor(){super(...arguments),this._unknown=!0}_parse(e){return _t(e.data)}};cn.create=t=>new cn({typeName:te.ZodUnknown,...ce(t)});var mr=class extends ue{_parse(e){let r=this._getOrReturnCtx(e);return V(r,{code:N.invalid_type,expected:G.never,received:r.parsedType}),ae}};mr.create=t=>new mr({typeName:te.ZodNever,...ce(t)});var ro=class extends ue{_parse(e){if(this._getType(e)!==G.undefined){let n=this._getOrReturnCtx(e);return V(n,{code:N.invalid_type,expected:G.void,received:n.parsedType}),ae}return _t(e.data)}};ro.create=t=>new ro({typeName:te.ZodVoid,...ce(t)});var jt=class extends ue{_parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if(r.parsedType!==G.array)return V(r,{code:N.invalid_type,expected:G.array,received:r.parsedType}),ae;if(i.exactLength!==null){let o=r.data.length>i.exactLength.value,a=r.data.length<i.exactLength.value;(o||a)&&(V(r,{code:o?N.too_big:N.too_small,minimum:a?i.exactLength.value:void 0,maximum:o?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(i.minLength!==null&&r.data.length<i.minLength.value&&(V(r,{code:N.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),i.maxLength!==null&&r.data.length>i.maxLength.value&&(V(r,{code:N.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((o,a)=>i.type._parseAsync(new ir(r,o,r.path,a)))).then(o=>Xe.mergeArray(n,o));let s=[...r.data].map((o,a)=>i.type._parseSync(new ir(r,o,r.path,a)));return Xe.mergeArray(n,s)}get element(){return this._def.type}min(e,r){return new jt({...this._def,minLength:{value:e,message:X.toString(r)}})}max(e,r){return new jt({...this._def,maxLength:{value:e,message:X.toString(r)}})}length(e,r){return new jt({...this._def,exactLength:{value:e,message:X.toString(r)}})}nonempty(e){return this.min(1,e)}};jt.create=(t,e)=>new jt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...ce(e)});function eo(t){if(t instanceof Oe){let e={};for(let r in t.shape){let n=t.shape[r];e[r]=pr.create(eo(n))}return new Oe({...t._def,shape:()=>e})}else return t instanceof jt?new jt({...t._def,type:eo(t.element)}):t instanceof pr?pr.create(eo(t.unwrap())):t instanceof fn?fn.create(eo(t.unwrap())):t instanceof sr?sr.create(t.items.map(e=>eo(e))):t}var Oe=class extends ue{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=me.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==G.object){let u=this._getOrReturnCtx(e);return V(u,{code:N.invalid_type,expected:G.object,received:u.parsedType}),ae}let{status:n,ctx:i}=this._processInputParams(e),{shape:s,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof mr&&this._def.unknownKeys==="strip"))for(let u in i.data)o.includes(u)||a.push(u);let c=[];for(let u of o){let f=s[u],h=i.data[u];c.push({key:{status:"valid",value:u},value:f._parse(new ir(i,h,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof mr){let u=this._def.unknownKeys;if(u==="passthrough")for(let f of a)c.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(u==="strict")a.length>0&&(V(i,{code:N.unrecognized_keys,keys:a}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let f of a){let h=i.data[f];c.push({key:{status:"valid",value:f},value:u._parse(new ir(i,h,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let u=[];for(let f of c){let h=await f.key;u.push({key:h,value:await f.value,alwaysSet:f.alwaysSet})}return u}).then(u=>Xe.mergeObjectSync(n,u)):Xe.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return X.errToObj,new Oe({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,n)=>{var i,s,o,a;let c=(o=(s=(i=this._def).errorMap)===null||s===void 0?void 0:s.call(i,r,n).message)!==null&&o!==void 0?o:n.defaultError;return r.code==="unrecognized_keys"?{message:(a=X.errToObj(e).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new Oe({...this._def,unknownKeys:"strip"})}passthrough(){return new Oe({...this._def,unknownKeys:"passthrough"})}extend(e){return new Oe({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Oe({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:te.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new Oe({...this._def,catchall:e})}pick(e){let r={};return me.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(r[n]=this.shape[n])}),new Oe({...this._def,shape:()=>r})}omit(e){let r={};return me.objectKeys(this.shape).forEach(n=>{e[n]||(r[n]=this.shape[n])}),new Oe({...this._def,shape:()=>r})}deepPartial(){return eo(this)}partial(e){let r={};return me.objectKeys(this.shape).forEach(n=>{let i=this.shape[n];e&&!e[n]?r[n]=i:r[n]=i.optional()}),new Oe({...this._def,shape:()=>r})}required(e){let r={};return me.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])r[n]=this.shape[n];else{let s=this.shape[n];for(;s instanceof pr;)s=s._def.innerType;r[n]=s}}),new Oe({...this._def,shape:()=>r})}keyof(){return CP(me.objectKeys(this.shape))}};Oe.create=(t,e)=>new Oe({shape:()=>t,unknownKeys:"strip",catchall:mr.create(),typeName:te.ZodObject,...ce(e)});Oe.strictCreate=(t,e)=>new Oe({shape:()=>t,unknownKeys:"strict",catchall:mr.create(),typeName:te.ZodObject,...ce(e)});Oe.lazycreate=(t,e)=>new Oe({shape:t,unknownKeys:"strip",catchall:mr.create(),typeName:te.ZodObject,...ce(e)});var Ci=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;function i(s){for(let a of s)if(a.result.status==="valid")return a.result;for(let a of s)if(a.result.status==="dirty")return r.common.issues.push(...a.ctx.common.issues),a.result;let o=s.map(a=>new Bt(a.ctx.common.issues));return V(r,{code:N.invalid_union,unionErrors:o}),ae}if(r.common.async)return Promise.all(n.map(async s=>{let o={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:o}),ctx:o}})).then(i);{let s,o=[];for(let c of n){let u={...r,common:{...r.common,issues:[]},parent:null},f=c._parseSync({data:r.data,path:r.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!s&&(s={result:f,ctx:u}),u.common.issues.length&&o.push(u.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let a=o.map(c=>new Bt(c));return V(r,{code:N.invalid_union,unionErrors:a}),ae}}get options(){return this._def.options}};Ci.create=(t,e)=>new Ci({options:t,typeName:te.ZodUnion,...ce(e)});var tf=t=>t instanceof Ti?tf(t.schema):t instanceof Ht?tf(t.innerType()):t instanceof ki?[t.value]:t instanceof Nr?t.options:t instanceof Pi?Object.keys(t.enum):t instanceof Ii?tf(t._def.innerType):t instanceof Si?[void 0]:t instanceof Ai?[null]:null,no=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==G.object)return V(r,{code:N.invalid_type,expected:G.object,received:r.parsedType}),ae;let n=this.discriminator,i=r.data[n],s=this.optionsMap.get(i);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(V(r,{code:N.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ae)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,n){let i=new Map;for(let s of r){let o=tf(s.shape[e]);if(!o)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of o){if(i.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);i.set(a,s)}}return new no({typeName:te.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:i,...ce(n)})}};function r0(t,e){let r=Un(t),n=Un(e);if(t===e)return{valid:!0,data:t};if(r===G.object&&n===G.object){let i=me.objectKeys(e),s=me.objectKeys(t).filter(a=>i.indexOf(a)!==-1),o={...t,...e};for(let a of s){let c=r0(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(r===G.array&&n===G.array){if(t.length!==e.length)return{valid:!1};let i=[];for(let s=0;s<t.length;s++){let o=t[s],a=e[s],c=r0(o,a);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return r===G.date&&n===G.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var Ri=class extends ue{_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(e0(s)||e0(o))return ae;let a=r0(s.value,o.value);return a.valid?((t0(s)||t0(o))&&r.dirty(),{status:r.value,value:a.data}):(V(n,{code:N.invalid_intersection_types}),ae)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([s,o])=>i(s,o)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Ri.create=(t,e,r)=>new Ri({left:t,right:e,typeName:te.ZodIntersection,...ce(r)});var sr=class extends ue{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.array)return V(n,{code:N.invalid_type,expected:G.array,received:n.parsedType}),ae;if(n.data.length<this._def.items.length)return V(n,{code:N.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ae;!this._def.rest&&n.data.length>this._def.items.length&&(V(n,{code:N.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...n.data].map((o,a)=>{let c=this._def.items[a]||this._def.rest;return c?c._parse(new ir(n,o,n.path,a)):null}).filter(o=>!!o);return n.common.async?Promise.all(s).then(o=>Xe.mergeArray(r,o)):Xe.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new sr({...this._def,rest:e})}};sr.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new sr({items:t,typeName:te.ZodTuple,rest:null,...ce(e)})};var Oi=class extends ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.object)return V(n,{code:N.invalid_type,expected:G.object,received:n.parsedType}),ae;let i=[],s=this._def.keyType,o=this._def.valueType;for(let a in n.data)i.push({key:s._parse(new ir(n,a,n.path,a)),value:o._parse(new ir(n,n.data[a],n.path,a))});return n.common.async?Xe.mergeObjectAsync(r,i):Xe.mergeObjectSync(r,i)}get element(){return this._def.valueType}static create(e,r,n){return r instanceof ue?new Oi({keyType:e,valueType:r,typeName:te.ZodRecord,...ce(n)}):new Oi({keyType:qt.create(),valueType:e,typeName:te.ZodRecord,...ce(r)})}},io=class extends ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.map)return V(n,{code:N.invalid_type,expected:G.map,received:n.parsedType}),ae;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([a,c],u)=>({key:i._parse(new ir(n,a,n.path,[u,"key"])),value:s._parse(new ir(n,c,n.path,[u,"value"]))}));if(n.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let c of o){let u=await c.key,f=await c.value;if(u.status==="aborted"||f.status==="aborted")return ae;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(u.value,f.value)}return{status:r.value,value:a}})}else{let a=new Map;for(let c of o){let u=c.key,f=c.value;if(u.status==="aborted"||f.status==="aborted")return ae;(u.status==="dirty"||f.status==="dirty")&&r.dirty(),a.set(u.value,f.value)}return{status:r.value,value:a}}}};io.create=(t,e,r)=>new io({valueType:e,keyType:t,typeName:te.ZodMap,...ce(r)});var ln=class extends ue{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.set)return V(n,{code:N.invalid_type,expected:G.set,received:n.parsedType}),ae;let i=this._def;i.minSize!==null&&n.data.size<i.minSize.value&&(V(n,{code:N.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),r.dirty()),i.maxSize!==null&&n.data.size>i.maxSize.value&&(V(n,{code:N.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),r.dirty());let s=this._def.valueType;function o(c){let u=new Set;for(let f of c){if(f.status==="aborted")return ae;f.status==="dirty"&&r.dirty(),u.add(f.value)}return{status:r.value,value:u}}let a=[...n.data.values()].map((c,u)=>s._parse(new ir(n,c,n.path,u)));return n.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,r){return new ln({...this._def,minSize:{value:e,message:X.toString(r)}})}max(e,r){return new ln({...this._def,maxSize:{value:e,message:X.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};ln.create=(t,e)=>new ln({valueType:t,minSize:null,maxSize:null,typeName:te.ZodSet,...ce(e)});var Gn=class extends ue{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==G.function)return V(r,{code:N.invalid_type,expected:G.function,received:r.parsedType}),ae;function n(a,c){return nf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,rf(),ka].filter(u=>!!u),issueData:{code:N.invalid_arguments,argumentsError:c}})}function i(a,c){return nf({data:a,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,rf(),ka].filter(u=>!!u),issueData:{code:N.invalid_return_type,returnTypeError:c}})}let s={errorMap:r.common.contextualErrorMap},o=r.data;if(this._def.returns instanceof Wn){let a=this;return _t(async function(...c){let u=new Bt([]),f=await a._def.args.parseAsync(c,s).catch(m=>{throw u.addIssue(n(c,m)),u}),h=await Reflect.apply(o,this,f);return await a._def.returns._def.type.parseAsync(h,s).catch(m=>{throw u.addIssue(i(h,m)),u})})}else{let a=this;return _t(function(...c){let u=a._def.args.safeParse(c,s);if(!u.success)throw new Bt([n(c,u.error)]);let f=Reflect.apply(o,this,u.data),h=a._def.returns.safeParse(f,s);if(!h.success)throw new Bt([i(f,h.error)]);return h.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Gn({...this._def,args:sr.create(e).rest(cn.create())})}returns(e){return new Gn({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,n){return new Gn({args:e||sr.create([]).rest(cn.create()),returns:r||cn.create(),typeName:te.ZodFunction,...ce(n)})}},Ti=class extends ue{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Ti.create=(t,e)=>new Ti({getter:t,typeName:te.ZodLazy,...ce(e)});var ki=class extends ue{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return V(r,{received:r.data,code:N.invalid_literal,expected:this._def.value}),ae}return{status:"valid",value:e.data}}get value(){return this._def.value}};ki.create=(t,e)=>new ki({value:t,typeName:te.ZodLiteral,...ce(e)});function CP(t,e){return new Nr({values:t,typeName:te.ZodEnum,...ce(e)})}var Nr=class extends ue{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=this._def.values;return V(r,{expected:me.joinValues(n),received:r.parsedType,code:N.invalid_type}),ae}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),n=this._def.values;return V(r,{received:r.data,code:N.invalid_enum_value,options:n}),ae}return _t(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return Nr.create(e)}exclude(e){return Nr.create(this.options.filter(r=>!e.includes(r)))}};Nr.create=CP;var Pi=class extends ue{_parse(e){let r=me.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==G.string&&n.parsedType!==G.number){let i=me.objectValues(r);return V(n,{expected:me.joinValues(i),received:n.parsedType,code:N.invalid_type}),ae}if(r.indexOf(e.data)===-1){let i=me.objectValues(r);return V(n,{received:n.data,code:N.invalid_enum_value,options:i}),ae}return _t(e.data)}get enum(){return this._def.values}};Pi.create=(t,e)=>new Pi({values:t,typeName:te.ZodNativeEnum,...ce(e)});var Wn=class extends ue{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==G.promise&&r.common.async===!1)return V(r,{code:N.invalid_type,expected:G.promise,received:r.parsedType}),ae;let n=r.parsedType===G.promise?r.data:Promise.resolve(r.data);return _t(n.then(i=>this._def.type.parseAsync(i,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Wn.create=(t,e)=>new Wn({type:t,typeName:te.ZodPromise,...ce(e)});var Ht=class extends ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.effect||null,s={addIssue:o=>{V(n,o),o.fatal?r.abort():r.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),i.type==="preprocess"){let o=i.transform(n.data,s);return n.common.issues.length?{status:"dirty",value:n.data}:n.common.async?Promise.resolve(o).then(a=>this._def.schema._parseAsync({data:a,path:n.path,parent:n})):this._def.schema._parseSync({data:o,path:n.path,parent:n})}if(i.type==="refinement"){let o=a=>{let c=i.refinement(a,s);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(n.common.async===!1){let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ae:(a.status==="dirty"&&r.dirty(),o(a.value),{status:r.value,value:a.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(a=>a.status==="aborted"?ae:(a.status==="dirty"&&r.dirty(),o(a.value).then(()=>({status:r.value,value:a.value}))))}if(i.type==="transform")if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!Pa(o))return o;let a=i.transform(o.value,s);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>Pa(o)?Promise.resolve(i.transform(o.value,s)).then(a=>({status:r.value,value:a})):o);me.assertNever(i)}};Ht.create=(t,e,r)=>new Ht({schema:t,typeName:te.ZodEffects,effect:e,...ce(r)});Ht.createWithPreprocess=(t,e,r)=>new Ht({schema:e,effect:{type:"preprocess",transform:t},typeName:te.ZodEffects,...ce(r)});var pr=class extends ue{_parse(e){return this._getType(e)===G.undefined?_t(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};pr.create=(t,e)=>new pr({innerType:t,typeName:te.ZodOptional,...ce(e)});var fn=class extends ue{_parse(e){return this._getType(e)===G.null?_t(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fn.create=(t,e)=>new fn({innerType:t,typeName:te.ZodNullable,...ce(e)});var Ii=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parsedType===G.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Ii.create=(t,e)=>new Ii({innerType:t,typeName:te.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ce(e)});var so=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return sf(i)?i.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Bt(n.common.issues)},input:n.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Bt(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};so.create=(t,e)=>new so({innerType:t,typeName:te.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ce(e)});var oo=class extends ue{_parse(e){if(this._getType(e)!==G.nan){let n=this._getOrReturnCtx(e);return V(n,{code:N.invalid_type,expected:G.nan,received:n.parsedType}),ae}return{status:"valid",value:e.data}}};oo.create=t=>new oo({typeName:te.ZodNaN,...ce(t)});var NV=Symbol("zod_brand"),of=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},Li=class extends ue{_parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ae:s.status==="dirty"?(r.dirty(),AP(s.value)):this._def.out._parseAsync({data:s.value,path:n.path,parent:n})})();{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ae:i.status==="dirty"?(r.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,r){return new Li({in:e,out:r,typeName:te.ZodPipeline})}},ao=class extends ue{_parse(e){let r=this._def.innerType._parse(e);return Pa(r)&&(r.value=Object.freeze(r.value)),r}};ao.create=(t,e)=>new ao({innerType:t,typeName:te.ZodReadonly,...ce(e)});var RP=(t,e={},r)=>t?Vn.create().superRefine((n,i)=>{var s,o;if(!t(n)){let a=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(o=(s=a.fatal)!==null&&s!==void 0?s:r)!==null&&o!==void 0?o:!0,u=typeof a=="string"?{message:a}:a;i.addIssue({code:"custom",...u,fatal:c})}}):Vn.create(),DV={object:Oe.lazycreate},te;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(te||(te={}));var MV=(t,e={message:`Input not instance of ${t.name}`})=>RP(r=>r instanceof t,e),OP=qt.create,TP=Ir.create,FV=oo.create,qV=Lr.create,kP=xi.create,BV=un.create,jV=to.create,HV=Si.create,$V=Ai.create,UV=Vn.create,GV=cn.create,VV=mr.create,WV=ro.create,zV=jt.create,YV=Oe.create,KV=Oe.strictCreate,ZV=Ci.create,JV=no.create,XV=Ri.create,QV=sr.create,e7=Oi.create,t7=io.create,r7=ln.create,n7=Gn.create,i7=Ti.create,s7=ki.create,o7=Nr.create,a7=Pi.create,c7=Wn.create,xP=Ht.create,u7=pr.create,l7=fn.create,f7=Ht.createWithPreprocess,h7=Li.create,d7=()=>OP().optional(),p7=()=>TP().optional(),m7=()=>kP().optional(),g7={string:t=>qt.create({...t,coerce:!0}),number:t=>Ir.create({...t,coerce:!0}),boolean:t=>xi.create({...t,coerce:!0}),bigint:t=>Lr.create({...t,coerce:!0}),date:t=>un.create({...t,coerce:!0})},y7=ae,co=Object.freeze({__proto__:null,defaultErrorMap:ka,setErrorMap:EV,getErrorMap:rf,makeIssue:nf,EMPTY_PATH:wV,addIssueToContext:V,ParseStatus:Xe,INVALID:ae,DIRTY:AP,OK:_t,isAborted:e0,isDirty:t0,isValid:Pa,isAsync:sf,get util(){return me},get objectUtil(){return Qy},ZodParsedType:G,getParsedType:Un,ZodType:ue,ZodString:qt,ZodNumber:Ir,ZodBigInt:Lr,ZodBoolean:xi,ZodDate:un,ZodSymbol:to,ZodUndefined:Si,ZodNull:Ai,ZodAny:Vn,ZodUnknown:cn,ZodNever:mr,ZodVoid:ro,ZodArray:jt,ZodObject:Oe,ZodUnion:Ci,ZodDiscriminatedUnion:no,ZodIntersection:Ri,ZodTuple:sr,ZodRecord:Oi,ZodMap:io,ZodSet:ln,ZodFunction:Gn,ZodLazy:Ti,ZodLiteral:ki,ZodEnum:Nr,ZodNativeEnum:Pi,ZodPromise:Wn,ZodEffects:Ht,ZodTransformer:Ht,ZodOptional:pr,ZodNullable:fn,ZodDefault:Ii,ZodCatch:so,ZodNaN:oo,BRAND:NV,ZodBranded:of,ZodPipeline:Li,ZodReadonly:ao,custom:RP,Schema:ue,ZodSchema:ue,late:DV,get ZodFirstPartyTypeKind(){return te},coerce:g7,any:UV,array:zV,bigint:qV,boolean:kP,date:BV,discriminatedUnion:JV,effect:xP,enum:o7,function:n7,instanceof:MV,intersection:XV,lazy:i7,literal:s7,map:t7,nan:FV,nativeEnum:a7,never:VV,null:$V,nullable:l7,number:TP,object:YV,oboolean:m7,onumber:p7,optional:u7,ostring:d7,pipeline:h7,preprocess:f7,promise:c7,record:e7,set:r7,strictObject:KV,string:OP,symbol:jV,transformer:xP,tuple:QV,undefined:HV,union:ZV,unknown:GV,void:WV,NEVER:y7,ZodIssueCode:N,quotelessJson:bV,ZodError:Bt});l();var c0=le(require("os")),BP=le(require("crypto")),jP=le(require("path")),HP=le(qP());function R7(t){let e=process.version,r=c0.default.type(),n=c0.default.arch();return`${t.name} ${t.version} ${e} ${r} ${n}`}async function O7(){let t=process.env.TURBO_CONFIG_DIR_PATH?process.env.TURBO_CONFIG_DIR_PATH:await(0,HP.configDir)();if(!t)throw new Error("Could not find telemetry config directory");return jP.default.join(t,"turborepo","telemetry.json")}function T7({input:t,salt:e}){return BP.default.createHash("sha256").update(`${e}${t}`).digest("hex")}var uo={buildUserAgent:R7,oneWayHashWithSalt:T7,defaultConfigPath:O7};var k7="TURBO_TELEMETRY_DEBUG",P7="TURBO_TELEMETRY_DISABLED",I7="TURBO_TELEMETRY_MESSAGE_DISABLED",L7="DO_NOT_TRACK",N7=co.object({telemetry_enabled:co.boolean(),telemetry_id:co.string(),telemetry_salt:co.string(),telemetry_alerted:co.string().optional()}),Tt=class{constructor({configPath:e,config:r}){this.config=r,this.configPath=e}static fromConfigPath(e){try{let r=(0,lo.readFileSync)(e,"utf-8"),n=JSON.parse(r),i=Tt.validateConfig(n);return new Tt({configPath:e,config:i})}catch{return Tt.tryRemove({configPath:e})?Tt.create({configPath:e}):void 0}}static async fromDefaultConfig(){try{let e=await uo.defaultConfigPath();return Tt.fromConfigPath(e)}catch{return}}static validateConfig(e){try{return N7.parse(e)}catch{throw new Error("Config is invalid.")}}static create({configPath:e}){let r=(0,u0.randomUUID)(),n=(0,u0.randomUUID)(),i=uo.oneWayHashWithSalt({input:r,salt:n}),s=new Tt({configPath:e,config:{telemetry_enabled:!0,telemetry_id:i,telemetry_salt:n}});if(s.tryWrite())return s}tryWrite(){try{let e=JSON.stringify(this.config,null,2);return(0,lo.writeFileSync)(this.configPath,e),!0}catch{return!1}}static tryRemove({configPath:e}){try{return(0,lo.rmSync)(e,{force:!0}),!0}catch{return!1}}hasSeenAlert(){return this.config.telemetry_alerted!==void 0}isEnabled(){let e=process.env[L7]||"0",r=process.env[P7]||"0";return e==="1"||e.toLowerCase()==="true"||r==="1"||r.toLowerCase()==="true"?!1:this.config.telemetry_enabled}isTelemetryWarningEnabled(){let e=process.env[I7]||"0";return!(e==="1"||e.toLowerCase()==="true")}get id(){return this.config.telemetry_id}showAlert(){!this.hasSeenAlert()&&this.isEnabled()&&this.isTelemetryWarningEnabled()&&(Se.log(),Se.bold("Attention:"),Se.grey("Turborepo now collects completely anonymous telemetry regarding usage."),Se.grey("This information is used to shape the Turborepo roadmap and prioritize features."),Se.grey("You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:"),Se.underline($P.default.gray("https://turborepo.com/docs/telemetry"))),this.alertShown()}enable(){this.config.telemetry_enabled=!0,this.tryWrite()}disable(){this.config.telemetry_enabled=!1,this.tryWrite()}alertShown(){return this.hasSeenAlert()||(this.config.telemetry_alerted=new Date().toISOString(),this.tryWrite()),!0}oneWayHash(e){return uo.oneWayHashWithSalt({input:e,salt:this.config.telemetry_salt})}static isDebug(){let e=process.env[k7]||"0";return e==="1"||e.toLowerCase()==="true"}};l();l();var l0=require("crypto"),UP=le(fP());var D7=20,M7="/api/turborepo/v1/events",Ni=class{constructor({api:e,packageInfo:r,config:n,opts:i}){this.batchSize=D7;this.timeout=250;this.sessionId=(0,l0.randomUUID)();this.eventBatches=[];this.events=[];let s=new URL(M7,e);this.api=s.toString(),this.packageInfo=r,this.config=n,i!=null&&i.timeout&&(this.timeout=i.timeout),i!=null&&i.batchSize&&(this.batchSize=i.batchSize)}hasPendingEvents(){return this.events.length!==0}async waitForFlush(){await Promise.all(this.eventBatches)}flushEvents(){let e=this.events.splice(0,this.batchSize);this.config.isEnabled()&&this.eventBatches.push(UP.default.post(this.api,{timeout:this.timeout,json:e,headers:{"x-turbo-telemetry-id":this.config.id,"x-turbo-session-id":this.sessionId,"User-Agent":uo.buildUserAgent(this.packageInfo)}}))}track({key:e,value:r,parentId:n,isSensitive:i}){let s={id:(0,l0.randomUUID)(),key:e,value:i?this.config.oneWayHash(r):r,package_name:this.packageInfo.name,package_version:this.packageInfo.version,parent_id:n};return Tt.isDebug()&&(Se.log(),Se.bold("[telemetry event]"),Se.dimmed(JSON.stringify(s,null,2)),Se.log()),this.config.isEnabled()&&(this.events.push({package:s}),this.events.length>=this.batchSize&&this.flushEvents()),s}async close(){for(;this.hasPendingEvents();)this.flushEvents();try{await this.waitForFlush()}catch{}}trackCliOption({option:e,value:r}){return this.track({key:`option:${e}`,value:r})}trackCliArgument({argument:e,value:r}){return this.track({key:`argument:${e}`,value:r})}trackCliCommand({command:e,value:r}){return this.track({key:`command:${e}`,value:r})}trackCommandStatus({command:e,status:r}){return this.trackCliCommand({command:e,value:r})}trackCommandWarning(e){return this.track({key:"warning",value:e})}trackCommandError(e){return this.track({key:"error",value:e})}};var Ia=class extends Ni{trackOptionExample(e){if(e)return this.trackCliOption({option:"example",value:e})}trackOptionPackageManager(e){if(e)return this.trackCliOption({option:"package_manager",value:e})}trackOptionSkipInstall(e){if(e)return this.trackCliOption({option:"skip_install",value:e.toString()})}trackOptionSkipTransforms(e){if(e)return this.trackCliOption({option:"skip_transforms",value:e.toString()})}trackOptionTurboVersion(e){if(e)return this.trackCliOption({option:"turbo_version",value:e})}trackOptionExamplePath(e){if(e)return this.trackCliOption({option:"example_path",value:e})}trackArgumentDirectory(e){if(e)return this.trackCliArgument({argument:"project_directory",value:"provided"})}trackArgumentPackageManager(e){if(e)return this.trackCliArgument({argument:"package_manager",value:e})}};l();var YP=le(zP());var q7=["build","test","lint","typecheck","checktypes","check-types","type-check","check"],La=class extends Ni{trackCI(){var e;return this.track({key:"ci",value:(e=YP.name)!=null?e:"unknown"})}trackArgumentWorkspace(e){if(e)return this.trackCliArgument({argument:"workspace",value:"provided"})}trackOptionTask(e){if(e)return this.trackCliOption({option:"task",value:q7.includes(e)?e:"other"})}trackOptionFallback(e){if(e)return this.trackCliOption({option:"fallback",value:e})}trackOptionDirectory(e){if(e)return this.trackCliOption({option:"directory",value:"custom"})}trackOptionMaxBuffer(e){if(e!==void 0)return this.trackCliOption({option:"max_buffer",value:e.toString()})}};var B7={"create-turbo":Ia,"turbo-ignore":La},j7="https://telemetry.vercel.com";async function f0({packageInfo:t,opts:e}){let r=B7[t.name],n=await Tt.fromDefaultConfig();return n?(n.showAlert(),{telemetry:new r({api:j7,packageInfo:t,config:n,opts:e})}):{telemetry:void 0}}l();var Na=le(Bc());var KP="status",H7=["enable","disable",KP];function $7(t){var r;let e=(r=t.telemetry)==null?void 0:r.config.isEnabled();Se.log(`Status: ${e?Na.default.bold(Na.default.green("Enabled")):Na.default.bold(Na.default.red("Disabled"))}`),Se.log(),e?Se.log("Turborepo telemetry is completely anonymous. Thank you for participating!"):Se.log("You have opted-out of Turborepo anonymous telemetry. No data will be collected from your machine."),Se.log("Learn more: https://turborepo.com/docs/telemetry")}function U7(t,e){if(!e.telemetry){Se.error("Telemetry could not be initialized");return}t==="enable"?(e.telemetry.config.enable(),Se.bold("Success!")):t==="disable"&&(e.telemetry.config.disable(),Se.bold("Success!")),Se.log(),$7(e)}function h0(t){t.command("telemetry").description("Manage telemetry settings").addArgument(new M0("[action]","Action to perform").choices(H7).default(KP)).action(U7)}var cf={name:"turbo-ignore",version:"2.6.3",description:"",homepage:"https://turborepo.com",keywords:[],author:"Jared Palmer",license:"MIT",repository:{type:"git",url:"https://github.com/vercel/turborepo",directory:"packages/turbo-ignore"},bugs:{url:"https://github.com/vercel/turborepo/issues"},files:["dist"],bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src __tests__","check-types":"tsc --noEmit","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{json5:"^2.2.3"},devDependencies:{"@jest/globals":"^29.7.0","@turbo/eslint-config":"workspace:*","@turbo/telemetry":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@types/node":"^18.17.2",commander:"^11.0.0",jest:"^29.7.0","ts-jest":"^29.2.5",tsup:"^5.12.1",typescript:"5.5.4"}};l();var cI=require("child_process"),uI=le(require("path")),lI=require("fs");l();var ZP=require("child_process");l();var d0="\u226B ";function xe(...t){console.log(d0,...t)}function or(...t){console.error(d0,...t)}function Da(...t){console.warn(d0,...t)}function p0(...t){console.log(...t)}function V7(t){try{return(0,ZP.execFileSync)("git",["cat-file","-t",t],{stdio:"ignore"}),!0}catch{return!1}}function m0(t){return t.fallback?(xe(`Falling back to ref ${t.fallback}`),{ref:t.fallback,type:"customFallback"}):null}function JP(t){let{workspace:e}=t;return process.env.VERCEL==="1"?process.env.VERCEL_GIT_PREVIOUS_SHA?V7(process.env.VERCEL_GIT_PREVIOUS_SHA)?(xe(`Found previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),{ref:process.env.VERCEL_GIT_PREVIOUS_SHA,type:"previousDeploy"}):(xe(`Previous deployment ("${process.env.VERCEL_GIT_PREVIOUS_SHA}") for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""} is unreachable.`),m0(t)):(xe(`No previous deployments found for "${e}"${process.env.VERCEL_GIT_COMMIT_REF?` on branch "${process.env.VERCEL_GIT_COMMIT_REF}"`:""}`),m0(t)):t.fallback?m0(t):{ref:"HEAD^",type:"headRelative"}}l();function XP(t){return t.task?(xe(`Using "${t.task}" as the task from the arguments`),`"${t.task}"`):(xe('Using "build" as the task as it was unspecified'),"build")}l();var QP=le(require("fs")),eI=le(require("path"));function tI(t){let{directory:e=process.cwd(),workspace:r}=t;if(r)return xe(`Using "${r}" as workspace from arguments`),r;let n=eI.default.join(e,"package.json");try{let i=QP.default.readFileSync(n,"utf8"),s=JSON.parse(i);return s.name?(xe(`Inferred "${s.name}" as workspace from "package.json"`),s.name):(or(`"${n}" is missing the "name" field (required).`),null)}catch{return or(`"${n}" could not be found. turbo-ignore inferencing failed`),null}}l();var g0=le(require("fs")),y0=le(require("path")),rI=require("json5");function nI(t,e){var s,o;let{turboVersion:r}=t;if(r)return xe(`Using turbo version "${r}" from arguments`),r;let n=y0.default.join(e,"package.json");try{let a=g0.default.readFileSync(n,"utf8"),c=JSON.parse(a),u=(s=c.dependencies)==null?void 0:s.turbo,f=(o=c.devDependencies)==null?void 0:o.turbo;if(r=u||f,r!==void 0){if(!r.startsWith("catalog:"))return xe(`Inferred turbo version "${r}" from "package.json"`),r;Da("Cannot infer turbo version due to use of `catalog` protocol. Remove `turbo` from your PNPM catalog to ensure correct turbo version is used")}}catch{return or(`"${n}" could not be read. turbo-ignore turbo version inference failed`),null}let i=y0.default.join(e,"turbo.json");try{let a=g0.default.readFileSync(i,"utf8"),c=(0,rI.parse)(a);return"tasks"in c?(xe('Inferred turbo version ^2 based on "tasks" in "turbo.json"'),"^2"):"pipeline"in c?(xe('Inferred turbo version ^1 based on "pipeline" in "turbo.json"'),"^1"):null}catch{return or(`"${i}" could not be read. turbo-ignore turbo version inference failed`),null}}l();var _0={MISSING_LOCKFILE:{regex:[/reading (?:yarn.lock|package-lock.json|pnpm-lock.yaml):.*?no such file or directory/i],message:"turbo-ignore could not complete - no lockfile found, please commit one to your repository"},NO_PACKAGE_MANAGER:{regex:[/run failed: We did not detect an in-use package manager for your project/i],message:'turbo-ignore could not complete - no package manager detected, please commit a lockfile, or set "packageManager" in your root "package.json"'},UNREACHABLE_PARENT:{regex:[/failed to resolve packages to run: commit HEAD\^ does not exist/i],message:"turbo-ignore could not complete - parent commit does not exist or is unreachable"},INVALID_COMPARISON:{regex:[/commit \S+ does not exist/i,/unknown revision/i,/invalid symmetric difference expression/i],message:"turbo-ignore could not complete - a ref or SHA is invalid. It could have been removed from the branch history via a force push, or this could be a shallow clone with insufficient history"}};function iI({err:t}){let e=Object.keys(_0).find(r=>{let{regex:n}=_0[r];return n.some(i=>i.test(t))});return e?{level:"warn",message:_0[e].message,code:e}:{level:"error",message:t,code:"UNKNOWN_ERROR"}}l();var sI=require("child_process"),W7=["[skip ci]","[ci skip]","[no ci]","[skip vercel]","[vercel skip]"],z7=["[vercel deploy]","[vercel build]"];function Y7({workspace:t}){return[`[vercel skip ${t}]`]}function K7({workspace:t}){return[`[vercel deploy ${t}]`,`[vercel build ${t}]`]}var Z7=/\[vercel only .+\]/;function J7({workspace:t}){return[`[vercel only ${t}]`]}function X7(){return process.env.VERCEL==="1"&&process.env.VERCEL_GIT_COMMIT_MESSAGE?process.env.VERCEL_GIT_COMMIT_MESSAGE:(0,sI.execSync)("git show -s --format=%B").toString()}function oI({workspace:t}){var c;let e=X7(),r=u=>e.includes(u),n=(c=Z7.exec(e))==null?void 0:c[0];if(n)return J7({workspace:t}).find(u=>u===n)?{result:"deploy",scope:"workspace",reason:`Found commit message: ${n}`}:{result:"skip",scope:"workspace",reason:`Found commit message: ${n}`};let i=K7({workspace:t}).find(r),s=Y7({workspace:t}).find(r);if(i&&s)return{result:"conflict",scope:"workspace",reason:`Conflicting commit messages found: ${i} and ${s}`};if(i)return{result:"deploy",scope:"workspace",reason:`Found commit message: ${i}`};if(s)return{result:"skip",scope:"workspace",reason:`Found commit message: ${s}`};let o=z7.find(r),a=W7.find(r);return o&&a?{result:"conflict",scope:"global",reason:`Conflicting commit messages found: ${o} and ${a}`}:o?{result:"deploy",scope:"global",reason:`Found commit message: ${o}`}:a?{result:"skip",scope:"global",reason:`Found commit message: ${a}`}:{result:"continue",scope:"global",reason:"No deploy or skip string found in commit message."}}function Q7(t){var e,r,n,i;(e=t.telemetry)==null||e.trackOptionTask(t.task),(r=t.telemetry)==null||r.trackOptionFallback(t.fallback),(n=t.telemetry)==null||n.trackOptionDirectory(t.directory),(i=t.telemetry)==null||i.trackOptionMaxBuffer(t.maxBuffer)}function aI(){return p0("\u23ED Ignoring the change"),process.exit(0)}function Mr(){return p0("\u2713 Proceeding with deployment"),process.exit(1)}function fI(t,e){var g,E;(g=e.telemetry)==null||g.trackCommandStatus({command:"ignore",status:"start"}),(E=e.telemetry)==null||E.trackArgumentWorkspace(t!==void 0),Q7(e);let r={workspace:t,...e};if(xe(`Using Turborepo to determine if this project is affected by the commit...
|
|
88
|
+
`),e.directory){let v=uI.default.resolve(e.directory);(0,lI.existsSync)(v)?r.directory=v:(Da(`Directory "${e.directory}" does not exist, using current directory`),r.directory=process.cwd())}else r.directory=process.cwd();if(process.env.TURBO_FORCE==="true")return xe("`TURBO_FORCE` detected"),Mr();let n=nc(r.directory);if(!n)return or("Monorepo root not found. turbo-ignore inferencing failed"),Mr();let i=tI(r);if(!i)return Mr();let s=nI(r,n),o=XP(r),a=oI({workspace:i});if(a.result==="skip")return xe(a.reason),aI();if(a.result==="deploy")return xe(a.reason),Mr();a.result==="conflict"&&xe(a.reason);let c=JP({workspace:i,fallback:r.fallback});if(!c)return Mr();let u=s?`turbo@${s}`:"turbo",f=`${i}...[${c.ref}]`,h=["-y",u,"run",o,`--filter=${f}`,"--dry=json"],d=`npx -y ${u} run ${o} --filter="${f}" --dry=json`;xe(`Analyzing results of \`${d}\``);let m={cwd:n};e.maxBuffer&&(m.maxBuffer=e.maxBuffer),(0,cI.execFile)("npx",h,m,(v,A)=>{var P,B;if(v){let{level:re,code:$,message:se}=iI({err:v.message});return re==="warn"?((P=e.telemetry)==null||P.trackCommandWarning(se),Da(se)):or(`${$}: ${v.message}`),Mr()}try{let re=JSON.parse(A);if(re===null)return or(`Failed to parse JSON output from \`${d}\`.`),Mr();let{packages:$}=re;return $?$.length>0?($.length===1?xe(`This commit affects "${i}"`):xe(`This commit affects "${i}" and ${$.length-1} ${$.length-1===1?"dependency":"dependencies"} (${$.slice(1).join(", ")})`),Mr()):(xe("This project and its dependencies are not affected"),aI()):(xe("Detected single package repo"),Mr())}catch(re){return or(`Failed to parse JSON output from \`${d}\`.`),or(re),Mr()}finally{(B=e.telemetry)==null||B.trackCommandStatus({command:"ignore",status:"end"})}})}var uf,v0=new D0;v0.name(cf.name).description("Only proceed with deployment if the workspace or any of its dependencies have changed").hook("preAction",async(t,e)=>{let{telemetry:r}=await f0({packageInfo:{name:"turbo-ignore",version:cf.version}});e.addOption(new zn("--telemetry").default(r).hideHelp()),uf=r}).hook("postAction",async()=>{await(uf==null?void 0:uf.close())}).argument("[workspace]",'The workspace being deployed. If [workspace] is not provided, it will be inferred from the "name" field of the "package.json" located at the current working directory.').addOption(new zn("-t, --task <name>","The task to execute").default("build")).addOption(new zn("-f, --fallback <ref>","On Vercel, if no previously deployed SHA is available to compare against, fallback to comparing against the provided ref")).addOption(new zn("-d, --directory <path>","The directory to run in (default: cwd)")).addOption(new zn("--turbo-version <version>","Explicitly set which version of turbo to invoke")).addOption(new zn("-b, --max-buffer <number>","maxBuffer for the child process in KB (default: 1024 KB)").argParser(t=>parseInt(t,10)*1024)).version(cf.version,"-v, --version","Output the current version").helpOption("-h, --help","Display help for command").showHelpAfterError(!1).action(fI);h0(v0);v0.parse();
|
|
89
89
|
/*!
|
|
90
90
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
91
91
|
*
|