factoriomod-debug 2.0.9 → 2.0.10
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/CHANGELOG.md +16 -0
- package/dist/ModSettingsWebview.css +1 -1
- package/dist/ModSettingsWebview.js +1 -1
- package/dist/ScriptDatWebview.css +1 -1
- package/dist/chunk-EQQFOJIW.js +148 -0
- package/dist/codicon-7WVOR3UC.ttf +0 -0
- package/dist/fmtk-cli.js +71 -69
- package/dist/fmtk-vscode.js +13 -13
- package/package.json +26 -28
- package/dist/chunk-LMNAIRFX.js +0 -148
- package/dist/codicon-IEQOYIYN.ttf +0 -0
- package/postinstall.ts +0 -8
package/dist/fmtk-cli.js
CHANGED
|
@@ -3,117 +3,119 @@
|
|
|
3
3
|
import {createRequire} from 'module'
|
|
4
4
|
const require = createRequire(import.meta.url)
|
|
5
5
|
|
|
6
|
-
import{A as
|
|
7
|
-
`)}displayWidth(
|
|
8
|
-
`+" ".repeat(n+
|
|
9
|
-
${s}`)}boxWrap(
|
|
10
|
-
`)}};function
|
|
6
|
+
import{A as jy,B as Uy,C as Ro,D as On,E as ka,F as zy,G as br,H as Ta,J as Wy,K as $y,M as Hy,O as Gy,P as Vy,a as N,b as A2,c as w,d as Ly,e as ft,f as R2,g as Py,h as By,i as qy,j as Co,k as Ge,l as qt,m as yr,n as Ao,o as Ce,p as Ny,q as yn,t as O2,u as Fa,v as Ae,w as bf,x as Df,y as mi,z as My}from"./chunk-EQQFOJIW.js";var Oo=w(_f=>{"use strict";var Ca=class extends Error{constructor(t,n,r){super(r),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=n,this.exitCode=t,this.nestedError=void 0}},wf=class extends Ca{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};_f.CommanderError=Ca;_f.InvalidArgumentError=wf});var Aa=w(vf=>{"use strict";var{InvalidArgumentError:I2}=Oo(),xf=class{constructor(t,n){switch(this.description=n||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(t,n){return n===this.defaultValue||!Array.isArray(n)?[t]:(n.push(t),n)}default(t,n){return this.defaultValue=t,this.defaultValueDescription=n,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(n,r)=>{if(!this.argChoices.includes(n))throw new I2(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(n,r):n},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function L2(e){let t=e.name()+(e.variadic===!0?"...":"");return e.required?"<"+t+">":"["+t+"]"}vf.Argument=xf;vf.humanReadableArgName=L2});var Ff=w(Sf=>{"use strict";var{humanReadableArgName:P2}=Aa(),Ef=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(t){this.helpWidth=this.helpWidth??t.helpWidth??80}visibleCommands(t){let n=t.commands.filter(i=>!i._hidden),r=t._getHelpCommand();return r&&!r._hidden&&n.push(r),this.sortSubcommands&&n.sort((i,o)=>i.name().localeCompare(o.name())),n}compareOptions(t,n){let r=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return r(t).localeCompare(r(n))}visibleOptions(t){let n=t.options.filter(i=>!i.hidden),r=t._getHelpOption();if(r&&!r.hidden){let i=r.short&&t._findOption(r.short),o=r.long&&t._findOption(r.long);!i&&!o?n.push(r):r.long&&!o?n.push(t.createOption(r.long,r.description)):r.short&&!i&&n.push(t.createOption(r.short,r.description))}return this.sortOptions&&n.sort(this.compareOptions),n}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let n=[];for(let r=t.parent;r;r=r.parent){let i=r.options.filter(o=>!o.hidden);n.push(...i)}return this.sortOptions&&n.sort(this.compareOptions),n}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(n=>{n.description=n.description||t._argsDescription[n.name()]||""}),t.registeredArguments.find(n=>n.description)?t.registeredArguments:[]}subcommandTerm(t){let n=t.registeredArguments.map(r=>P2(r)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(n?" "+n:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,n){return n.visibleCommands(t).reduce((r,i)=>Math.max(r,this.displayWidth(n.styleSubcommandTerm(n.subcommandTerm(i)))),0)}longestOptionTermLength(t,n){return n.visibleOptions(t).reduce((r,i)=>Math.max(r,this.displayWidth(n.styleOptionTerm(n.optionTerm(i)))),0)}longestGlobalOptionTermLength(t,n){return n.visibleGlobalOptions(t).reduce((r,i)=>Math.max(r,this.displayWidth(n.styleOptionTerm(n.optionTerm(i)))),0)}longestArgumentTermLength(t,n){return n.visibleArguments(t).reduce((r,i)=>Math.max(r,this.displayWidth(n.styleArgumentTerm(n.argumentTerm(i)))),0)}commandUsage(t){let n=t._name;t._aliases[0]&&(n=n+"|"+t._aliases[0]);let r="";for(let i=t.parent;i;i=i.parent)r=i.name()+" "+r;return r+n+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let n=[];if(t.argChoices&&n.push(`choices: ${t.argChoices.map(r=>JSON.stringify(r)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&n.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&n.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&n.push(`env: ${t.envVar}`),n.length>0){let r=`(${n.join(", ")})`;return t.description?`${t.description} ${r}`:r}return t.description}argumentDescription(t){let n=[];if(t.argChoices&&n.push(`choices: ${t.argChoices.map(r=>JSON.stringify(r)).join(", ")}`),t.defaultValue!==void 0&&n.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),n.length>0){let r=`(${n.join(", ")})`;return t.description?`${t.description} ${r}`:r}return t.description}formatItemList(t,n,r){return n.length===0?[]:[r.styleTitle(t),...n,""]}groupItems(t,n,r){let i=new Map;return t.forEach(o=>{let s=r(o);i.has(s)||i.set(s,[])}),n.forEach(o=>{let s=r(o);i.has(s)||i.set(s,[]),i.get(s).push(o)}),i}formatHelp(t,n){let r=n.padWidth(t,n),i=n.helpWidth??80;function o(f,h){return n.formatItem(f,r,h,n)}let s=[`${n.styleTitle("Usage:")} ${n.styleUsage(n.commandUsage(t))}`,""],a=n.commandDescription(t);a.length>0&&(s=s.concat([n.boxWrap(n.styleCommandDescription(a),i),""]));let u=n.visibleArguments(t).map(f=>o(n.styleArgumentTerm(n.argumentTerm(f)),n.styleArgumentDescription(n.argumentDescription(f))));if(s=s.concat(this.formatItemList("Arguments:",u,n)),this.groupItems(t.options,n.visibleOptions(t),f=>f.helpGroupHeading??"Options:").forEach((f,h)=>{let p=f.map(b=>o(n.styleOptionTerm(n.optionTerm(b)),n.styleOptionDescription(n.optionDescription(b))));s=s.concat(this.formatItemList(h,p,n))}),n.showGlobalOptions){let f=n.visibleGlobalOptions(t).map(h=>o(n.styleOptionTerm(n.optionTerm(h)),n.styleOptionDescription(n.optionDescription(h))));s=s.concat(this.formatItemList("Global Options:",f,n))}return this.groupItems(t.commands,n.visibleCommands(t),f=>f.helpGroup()||"Commands:").forEach((f,h)=>{let p=f.map(b=>o(n.styleSubcommandTerm(n.subcommandTerm(b)),n.styleSubcommandDescription(n.subcommandDescription(b))));s=s.concat(this.formatItemList(h,p,n))}),s.join(`
|
|
7
|
+
`)}displayWidth(t){return Ky(t).length}styleTitle(t){return t}styleUsage(t){return t.split(" ").map(n=>n==="[options]"?this.styleOptionText(n):n==="[command]"?this.styleSubcommandText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleCommandText(n)).join(" ")}styleCommandDescription(t){return this.styleDescriptionText(t)}styleOptionDescription(t){return this.styleDescriptionText(t)}styleSubcommandDescription(t){return this.styleDescriptionText(t)}styleArgumentDescription(t){return this.styleDescriptionText(t)}styleDescriptionText(t){return t}styleOptionTerm(t){return this.styleOptionText(t)}styleSubcommandTerm(t){return t.split(" ").map(n=>n==="[options]"?this.styleOptionText(n):n[0]==="["||n[0]==="<"?this.styleArgumentText(n):this.styleSubcommandText(n)).join(" ")}styleArgumentTerm(t){return this.styleArgumentText(t)}styleOptionText(t){return t}styleArgumentText(t){return t}styleSubcommandText(t){return t}styleCommandText(t){return t}padWidth(t,n){return Math.max(n.longestOptionTermLength(t,n),n.longestGlobalOptionTermLength(t,n),n.longestSubcommandTermLength(t,n),n.longestArgumentTermLength(t,n))}preformatted(t){return/\n[^\S\r\n]/.test(t)}formatItem(t,n,r,i){let s=" ".repeat(2);if(!r)return s+t;let a=t.padEnd(n+t.length-i.displayWidth(t)),u=2,c=(this.helpWidth??80)-n-u-2,f;return c<this.minWidthToWrap||i.preformatted(r)?f=r:f=i.boxWrap(r,c).replace(/\n/g,`
|
|
8
|
+
`+" ".repeat(n+u)),s+a+" ".repeat(u)+f.replace(/\n/g,`
|
|
9
|
+
${s}`)}boxWrap(t,n){if(n<this.minWidthToWrap)return t;let r=t.split(/\r\n|\n/),i=/[\s]*[^\s]+/g,o=[];return r.forEach(s=>{let a=s.match(i);if(a===null){o.push("");return}let u=[a.shift()],l=this.displayWidth(u[0]);a.forEach(c=>{let f=this.displayWidth(c);if(l+f<=n){u.push(c),l+=f;return}o.push(u.join(""));let h=c.trimStart();u=[h],l=this.displayWidth(h)}),o.push(u.join(""))}),o.join(`
|
|
10
|
+
`)}};function Ky(e){let t=/\x1b\[\d*(;\d*)*m/g;return e.replace(t,"")}Sf.Help=Ef;Sf.stripColor=Ky});var Af=w(Cf=>{"use strict";var{InvalidArgumentError:B2}=Oo(),kf=class{constructor(t,n){this.flags=t,this.description=n||"",this.required=t.includes("<"),this.optional=t.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(t),this.mandatory=!1;let r=q2(t);this.short=r.shortFlag,this.long=r.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,this.helpGroupHeading=void 0}default(t,n){return this.defaultValue=t,this.defaultValueDescription=n,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let n=t;return typeof t=="string"&&(n={[t]:!0}),this.implied=Object.assign(this.implied||{},n),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,n){return n===this.defaultValue||!Array.isArray(n)?[t]:(n.push(t),n)}choices(t){return this.argChoices=t.slice(),this.parseArg=(n,r)=>{if(!this.argChoices.includes(n))throw new B2(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(n,r):n},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?Yy(this.name().replace(/^no-/,"")):Yy(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},Tf=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(n=>{n.negate?this.negativeOptions.set(n.attributeName(),n):this.positiveOptions.set(n.attributeName(),n)}),this.negativeOptions.forEach((n,r)=>{this.positiveOptions.has(r)&&this.dualOptions.add(r)})}valueFromOption(t,n){let r=n.attributeName();if(!this.dualOptions.has(r))return!0;let i=this.negativeOptions.get(r).presetArg,o=i!==void 0?i:!1;return n.negate===(o===t)}};function Yy(e){return e.split("-").reduce((t,n)=>t+n[0].toUpperCase()+n.slice(1))}function q2(e){let t,n,r=/^-[^-]$/,i=/^--[^-]/,o=e.split(/[ |,]+/).concat("guard");if(r.test(o[0])&&(t=o.shift()),i.test(o[0])&&(n=o.shift()),!t&&r.test(o[0])&&(t=o.shift()),!t&&i.test(o[0])&&(t=n,n=o.shift()),o[0].startsWith("-")){let s=o[0],a=`option creation failed due to '${s}' in option flags '${e}'`;throw/^-[^-][^-]/.test(s)?new Error(`${a}
|
|
11
11
|
- a short flag is a single dash and a single character
|
|
12
12
|
- either use a single dash and a single character (for a short flag)
|
|
13
13
|
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`):r.test(s)?new Error(`${a}
|
|
14
14
|
- too many short flags`):i.test(s)?new Error(`${a}
|
|
15
15
|
- too many long flags`):new Error(`${a}
|
|
16
|
-
- unrecognised flag format`)}if(
|
|
16
|
+
- unrecognised flag format`)}if(t===void 0&&n===void 0)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:n}}Cf.Option=kf;Cf.DualOptions=Tf});var Zy=w(Qy=>{"use strict";function N2(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);let n=[];for(let r=0;r<=e.length;r++)n[r]=[r];for(let r=0;r<=t.length;r++)n[0][r]=r;for(let r=1;r<=t.length;r++)for(let i=1;i<=e.length;i++){let o=1;e[i-1]===t[r-1]?o=0:o=1,n[i][r]=Math.min(n[i-1][r]+1,n[i][r-1]+1,n[i-1][r-1]+o),i>1&&r>1&&e[i-1]===t[r-2]&&e[i-2]===t[r-1]&&(n[i][r]=Math.min(n[i][r],n[i-2][r-2]+1))}return n[e.length][t.length]}function M2(e,t){if(!t||t.length===0)return"";t=Array.from(new Set(t));let n=e.startsWith("--");n&&(e=e.slice(2),t=t.map(s=>s.slice(2)));let r=[],i=3,o=.4;return t.forEach(s=>{if(s.length<=1)return;let a=N2(e,s),u=Math.max(e.length,s.length);(u-a)/u>o&&(a<i?(i=a,r=[s]):a===i&&r.push(s))}),r.sort((s,a)=>s.localeCompare(a)),n&&(r=r.map(s=>`--${s}`)),r.length>1?`
|
|
17
17
|
(Did you mean one of ${r.join(", ")}?)`:r.length===1?`
|
|
18
|
-
(Did you mean ${r[0]}?)`:""}
|
|
19
|
-
- specify the name in Command constructor or using .name()`);return n=n||{},n.isDefault&&(this._defaultCommandName=
|
|
20
|
-
Expecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[
|
|
21
|
-
- already used by option '${n.flags}'`)}this._initOptionGroup(
|
|
22
|
-
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(
|
|
18
|
+
(Did you mean ${r[0]}?)`:""}Qy.suggestSimilar=M2});var tb=w(Pf=>{"use strict";var j2=N("node:events").EventEmitter,Rf=N("node:child_process"),bn=N("node:path"),Ra=N("node:fs"),ae=N("node:process"),{Argument:U2,humanReadableArgName:z2}=Aa(),{CommanderError:Of}=Oo(),{Help:W2,stripColor:$2}=Ff(),{Option:Jy,DualOptions:H2}=Af(),{suggestSimilar:Xy}=Zy(),If=class e extends j2{constructor(t){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=t||"",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._savedState=null,this._outputConfiguration={writeOut:n=>ae.stdout.write(n),writeErr:n=>ae.stderr.write(n),outputError:(n,r)=>r(n),getOutHelpWidth:()=>ae.stdout.isTTY?ae.stdout.columns:void 0,getErrHelpWidth:()=>ae.stderr.isTTY?ae.stderr.columns:void 0,getOutHasColors:()=>Lf()??(ae.stdout.isTTY&&ae.stdout.hasColors?.()),getErrHasColors:()=>Lf()??(ae.stderr.isTTY&&ae.stderr.hasColors?.()),stripColor:n=>$2(n)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(t){return this._outputConfiguration=t._outputConfiguration,this._helpOption=t._helpOption,this._helpCommand=t._helpCommand,this._helpConfiguration=t._helpConfiguration,this._exitCallback=t._exitCallback,this._storeOptionsAsProperties=t._storeOptionsAsProperties,this._combineFlagAndOptionalValue=t._combineFlagAndOptionalValue,this._allowExcessArguments=t._allowExcessArguments,this._enablePositionalOptions=t._enablePositionalOptions,this._showHelpAfterError=t._showHelpAfterError,this._showSuggestionAfterError=t._showSuggestionAfterError,this}_getCommandAndAncestors(){let t=[];for(let n=this;n;n=n.parent)t.push(n);return t}command(t,n,r){let i=n,o=r;typeof i=="object"&&i!==null&&(o=i,i=null),o=o||{};let[,s,a]=t.match(/([^ ]+) *(.*)/),u=this.createCommand(s);return i&&(u.description(i),u._executableHandler=!0),o.isDefault&&(this._defaultCommandName=u._name),u._hidden=!!(o.noHelp||o.hidden),u._executableFile=o.executableFile||null,a&&u.arguments(a),this._registerCommand(u),u.parent=this,u.copyInheritedSettings(this),i?this:u}createCommand(t){return new e(t)}createHelp(){return Object.assign(new W2,this.configureHelp())}configureHelp(t){return t===void 0?this._helpConfiguration:(this._helpConfiguration=t,this)}configureOutput(t){return t===void 0?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...t},this)}showHelpAfterError(t=!0){return typeof t!="string"&&(t=!!t),this._showHelpAfterError=t,this}showSuggestionAfterError(t=!0){return this._showSuggestionAfterError=!!t,this}addCommand(t,n){if(!t._name)throw new Error(`Command passed to .addCommand() must have a name
|
|
19
|
+
- specify the name in Command constructor or using .name()`);return n=n||{},n.isDefault&&(this._defaultCommandName=t._name),(n.noHelp||n.hidden)&&(t._hidden=!0),this._registerCommand(t),t.parent=this,t._checkForBrokenPassThrough(),this}createArgument(t,n){return new U2(t,n)}argument(t,n,r,i){let o=this.createArgument(t,n);return typeof r=="function"?o.default(i).argParser(r):o.default(r),this.addArgument(o),this}arguments(t){return t.trim().split(/ +/).forEach(n=>{this.argument(n)}),this}addArgument(t){let n=this.registeredArguments.slice(-1)[0];if(n?.variadic)throw new Error(`only the last argument can be variadic '${n.name()}'`);if(t.required&&t.defaultValue!==void 0&&t.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${t.name()}'`);return this.registeredArguments.push(t),this}helpCommand(t,n){if(typeof t=="boolean")return this._addImplicitHelpCommand=t,t&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;let r=t??"help [command]",[,i,o]=r.match(/([^ ]+) *(.*)/),s=n??"display help for command",a=this.createCommand(i);return a.helpOption(!1),o&&a.arguments(o),s&&a.description(s),this._addImplicitHelpCommand=!0,this._helpCommand=a,(t||n)&&this._initCommandGroup(a),this}addHelpCommand(t,n){return typeof t!="object"?(this.helpCommand(t,n),this):(this._addImplicitHelpCommand=!0,this._helpCommand=t,this._initCommandGroup(t),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(t,n){let r=["preSubcommand","preAction","postAction"];if(!r.includes(t))throw new Error(`Unexpected value for event passed to hook : '${t}'.
|
|
20
|
+
Expecting one of '${r.join("', '")}'`);return this._lifeCycleHooks[t]?this._lifeCycleHooks[t].push(n):this._lifeCycleHooks[t]=[n],this}exitOverride(t){return t?this._exitCallback=t:this._exitCallback=n=>{if(n.code!=="commander.executeSubCommandAsync")throw n},this}_exit(t,n,r){this._exitCallback&&this._exitCallback(new Of(t,n,r)),ae.exit(t)}action(t){let n=r=>{let i=this.registeredArguments.length,o=r.slice(0,i);return this._storeOptionsAsProperties?o[i]=this:o[i]=this.opts(),o.push(this),t.apply(this,o)};return this._actionHandler=n,this}createOption(t,n){return new Jy(t,n)}_callParseArg(t,n,r,i){try{return t.parseArg(n,r)}catch(o){if(o.code==="commander.invalidArgument"){let s=`${i} ${o.message}`;this.error(s,{exitCode:o.exitCode,code:o.code})}throw o}}_registerOption(t){let n=t.short&&this._findOption(t.short)||t.long&&this._findOption(t.long);if(n){let r=t.long&&this._findOption(t.long)?t.long:t.short;throw new Error(`Cannot add option '${t.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${r}'
|
|
21
|
+
- already used by option '${n.flags}'`)}this._initOptionGroup(t),this.options.push(t)}_registerCommand(t){let n=i=>[i.name()].concat(i.aliases()),r=n(t).find(i=>this._findCommand(i));if(r){let i=n(this._findCommand(r)).join("|"),o=n(t).join("|");throw new Error(`cannot add command '${o}' as already have command '${i}'`)}this._initCommandGroup(t),this.commands.push(t)}addOption(t){this._registerOption(t);let n=t.name(),r=t.attributeName();if(t.negate){let o=t.long.replace(/^--no-/,"--");this._findOption(o)||this.setOptionValueWithSource(r,t.defaultValue===void 0?!0:t.defaultValue,"default")}else t.defaultValue!==void 0&&this.setOptionValueWithSource(r,t.defaultValue,"default");let i=(o,s,a)=>{o==null&&t.presetArg!==void 0&&(o=t.presetArg);let u=this.getOptionValue(r);o!==null&&t.parseArg?o=this._callParseArg(t,o,u,s):o!==null&&t.variadic&&(o=t._collectValue(o,u)),o==null&&(t.negate?o=!1:t.isBoolean()||t.optional?o=!0:o=""),this.setOptionValueWithSource(r,o,a)};return this.on("option:"+n,o=>{let s=`error: option '${t.flags}' argument '${o}' is invalid.`;i(o,s,"cli")}),t.envVar&&this.on("optionEnv:"+n,o=>{let s=`error: option '${t.flags}' value '${o}' from env '${t.envVar}' is invalid.`;i(o,s,"env")}),this}_optionEx(t,n,r,i,o){if(typeof n=="object"&&n instanceof Jy)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let s=this.createOption(n,r);if(s.makeOptionMandatory(!!t.mandatory),typeof i=="function")s.default(o).argParser(i);else if(i instanceof RegExp){let a=i;i=(u,l)=>{let c=a.exec(u);return c?c[0]:l},s.default(o).argParser(i)}else s.default(i);return this.addOption(s)}option(t,n,r,i){return this._optionEx({},t,n,r,i)}requiredOption(t,n,r,i){return this._optionEx({mandatory:!0},t,n,r,i)}combineFlagAndOptionalValue(t=!0){return this._combineFlagAndOptionalValue=!!t,this}allowUnknownOption(t=!0){return this._allowUnknownOption=!!t,this}allowExcessArguments(t=!0){return this._allowExcessArguments=!!t,this}enablePositionalOptions(t=!0){return this._enablePositionalOptions=!!t,this}passThroughOptions(t=!0){return this._passThroughOptions=!!t,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(t=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!t,this}getOptionValue(t){return this._storeOptionsAsProperties?this[t]:this._optionValues[t]}setOptionValue(t,n){return this.setOptionValueWithSource(t,n,void 0)}setOptionValueWithSource(t,n,r){return this._storeOptionsAsProperties?this[t]=n:this._optionValues[t]=n,this._optionValueSources[t]=r,this}getOptionValueSource(t){return this._optionValueSources[t]}getOptionValueSourceWithGlobals(t){let n;return this._getCommandAndAncestors().forEach(r=>{r.getOptionValueSource(t)!==void 0&&(n=r.getOptionValueSource(t))}),n}_prepareUserArgs(t,n){if(t!==void 0&&!Array.isArray(t))throw new Error("first parameter to parse must be array or undefined");if(n=n||{},t===void 0&&n.from===void 0){ae.versions?.electron&&(n.from="electron");let i=ae.execArgv??[];(i.includes("-e")||i.includes("--eval")||i.includes("-p")||i.includes("--print"))&&(n.from="eval")}t===void 0&&(t=ae.argv),this.rawArgs=t.slice();let r;switch(n.from){case void 0:case"node":this._scriptPath=t[1],r=t.slice(2);break;case"electron":ae.defaultApp?(this._scriptPath=t[1],r=t.slice(2)):r=t.slice(1);break;case"user":r=t.slice(0);break;case"eval":r=t.slice(1);break;default:throw new Error(`unexpected parse option { from: '${n.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",r}parse(t,n){this._prepareForParse();let r=this._prepareUserArgs(t,n);return this._parseCommand([],r),this}async parseAsync(t,n){this._prepareForParse();let r=this._prepareUserArgs(t,n);return await this._parseCommand([],r),this}_prepareForParse(){this._savedState===null?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
22
|
+
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(t,n,r){if(Ra.existsSync(t))return;let i=n?`searched for local subcommand relative to directory '${n}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",o=`'${t}' does not exist
|
|
23
23
|
- if '${r}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
24
24
|
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
25
|
-
- ${i}`;throw new Error(o)}_executeSubCommand(
|
|
25
|
+
- ${i}`;throw new Error(o)}_executeSubCommand(t,n){n=n.slice();let r=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function o(c,f){let h=bn.resolve(c,f);if(Ra.existsSync(h))return h;if(i.includes(bn.extname(f)))return;let p=i.find(b=>Ra.existsSync(`${h}${b}`));if(p)return`${h}${p}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let s=t._executableFile||`${this._name}-${t._name}`,a=this._executableDir||"";if(this._scriptPath){let c;try{c=Ra.realpathSync(this._scriptPath)}catch{c=this._scriptPath}a=bn.resolve(bn.dirname(c),a)}if(a){let c=o(a,s);if(!c&&!t._executableFile&&this._scriptPath){let f=bn.basename(this._scriptPath,bn.extname(this._scriptPath));f!==this._name&&(c=o(a,`${f}-${t._name}`))}s=c||s}r=i.includes(bn.extname(s));let u;ae.platform!=="win32"?r?(n.unshift(s),n=eb(ae.execArgv).concat(n),u=Rf.spawn(ae.argv[0],n,{stdio:"inherit"})):u=Rf.spawn(s,n,{stdio:"inherit"}):(this._checkForMissingExecutable(s,a,t._name),n.unshift(s),n=eb(ae.execArgv).concat(n),u=Rf.spawn(ae.execPath,n,{stdio:"inherit"})),u.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(f=>{ae.on(f,()=>{u.killed===!1&&u.exitCode===null&&u.kill(f)})});let l=this._exitCallback;u.on("close",c=>{c=c??1,l?l(new Of(c,"commander.executeSubCommandAsync","(close)")):ae.exit(c)}),u.on("error",c=>{if(c.code==="ENOENT")this._checkForMissingExecutable(s,a,t._name);else if(c.code==="EACCES")throw new Error(`'${s}' not executable`);if(!l)ae.exit(1);else{let f=new Of(1,"commander.executeSubCommandAsync","(error)");f.nestedError=c,l(f)}}),this.runningCommand=u}_dispatchSubcommand(t,n,r){let i=this._findCommand(t);i||this.help({error:!0}),i._prepareForParse();let o;return o=this._chainOrCallSubCommandHook(o,i,"preSubcommand"),o=this._chainOrCall(o,()=>{if(i._executableHandler)this._executeSubCommand(i,n.concat(r));else return i._parseCommand(n,r)}),o}_dispatchHelpCommand(t){t||this.help();let n=this._findCommand(t);return n&&!n._executableHandler&&n.help(),this._dispatchSubcommand(t,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((t,n)=>{t.required&&this.args[n]==null&&this.missingArgument(t.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let t=(r,i,o)=>{let s=i;if(i!==null&&r.parseArg){let a=`error: command-argument value '${i}' is invalid for argument '${r.name()}'.`;s=this._callParseArg(r,i,o,a)}return s};this._checkNumberOfArguments();let n=[];this.registeredArguments.forEach((r,i)=>{let o=r.defaultValue;r.variadic?i<this.args.length?(o=this.args.slice(i),r.parseArg&&(o=o.reduce((s,a)=>t(r,a,s),r.defaultValue))):o===void 0&&(o=[]):i<this.args.length&&(o=this.args[i],r.parseArg&&(o=t(r,o,r.defaultValue))),n[i]=o}),this.processedArgs=n}_chainOrCall(t,n){return t?.then&&typeof t.then=="function"?t.then(()=>n()):n()}_chainOrCallHooks(t,n){let r=t,i=[];return this._getCommandAndAncestors().reverse().filter(o=>o._lifeCycleHooks[n]!==void 0).forEach(o=>{o._lifeCycleHooks[n].forEach(s=>{i.push({hookedCommand:o,callback:s})})}),n==="postAction"&&i.reverse(),i.forEach(o=>{r=this._chainOrCall(r,()=>o.callback(o.hookedCommand,this))}),r}_chainOrCallSubCommandHook(t,n,r){let i=t;return this._lifeCycleHooks[r]!==void 0&&this._lifeCycleHooks[r].forEach(o=>{i=this._chainOrCall(i,()=>o(this,n))}),i}_parseCommand(t,n){let r=this.parseOptions(n);if(this._parseOptionsEnv(),this._parseOptionsImplied(),t=t.concat(r.operands),n=r.unknown,this.args=t.concat(n),t&&this._findCommand(t[0]))return this._dispatchSubcommand(t[0],t.slice(1),n);if(this._getHelpCommand()&&t[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(t[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(n),this._dispatchSubcommand(this._defaultCommandName,t,n);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(r.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let i=()=>{r.unknown.length>0&&this.unknownOption(r.unknown[0])},o=`command:${this.name()}`;if(this._actionHandler){i(),this._processArguments();let s;return s=this._chainOrCallHooks(s,"preAction"),s=this._chainOrCall(s,()=>this._actionHandler(this.processedArgs)),this.parent&&(s=this._chainOrCall(s,()=>{this.parent.emit(o,t,n)})),s=this._chainOrCallHooks(s,"postAction"),s}if(this.parent?.listenerCount(o))i(),this._processArguments(),this.parent.emit(o,t,n);else if(t.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",t,n);this.listenerCount("command:*")?this.emit("command:*",t,n):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(t){if(t)return this.commands.find(n=>n._name===t||n._aliases.includes(t))}_findOption(t){return this.options.find(n=>n.is(t))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(t=>{t.options.forEach(n=>{n.mandatory&&t.getOptionValue(n.attributeName())===void 0&&t.missingMandatoryOptionValue(n)})})}_checkForConflictingLocalOptions(){let t=this.options.filter(r=>{let i=r.attributeName();return this.getOptionValue(i)===void 0?!1:this.getOptionValueSource(i)!=="default"});t.filter(r=>r.conflictsWith.length>0).forEach(r=>{let i=t.find(o=>r.conflictsWith.includes(o.attributeName()));i&&this._conflictingOption(r,i)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(t=>{t._checkForConflictingLocalOptions()})}parseOptions(t){let n=[],r=[],i=n;function o(c){return c.length>1&&c[0]==="-"}let s=c=>/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(c)?!this._getCommandAndAncestors().some(f=>f.options.map(h=>h.short).some(h=>/^-\d$/.test(h))):!1,a=null,u=null,l=0;for(;l<t.length||u;){let c=u??t[l++];if(u=null,c==="--"){i===r&&i.push(c),i.push(...t.slice(l));break}if(a&&(!o(c)||s(c))){this.emit(`option:${a.name()}`,c);continue}if(a=null,o(c)){let f=this._findOption(c);if(f){if(f.required){let h=t[l++];h===void 0&&this.optionMissingArgument(f),this.emit(`option:${f.name()}`,h)}else if(f.optional){let h=null;l<t.length&&(!o(t[l])||s(t[l]))&&(h=t[l++]),this.emit(`option:${f.name()}`,h)}else this.emit(`option:${f.name()}`);a=f.variadic?f:null;continue}}if(c.length>2&&c[0]==="-"&&c[1]!=="-"){let f=this._findOption(`-${c[1]}`);if(f){f.required||f.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${f.name()}`,c.slice(2)):(this.emit(`option:${f.name()}`),u=`-${c.slice(2)}`);continue}}if(/^--[^=]+=/.test(c)){let f=c.indexOf("="),h=this._findOption(c.slice(0,f));if(h&&(h.required||h.optional)){this.emit(`option:${h.name()}`,c.slice(f+1));continue}}if(i===n&&o(c)&&!(this.commands.length===0&&s(c))&&(i=r),(this._enablePositionalOptions||this._passThroughOptions)&&n.length===0&&r.length===0){if(this._findCommand(c)){n.push(c),r.push(...t.slice(l));break}else if(this._getHelpCommand()&&c===this._getHelpCommand().name()){n.push(c,...t.slice(l));break}else if(this._defaultCommandName){r.push(c,...t.slice(l));break}}if(this._passThroughOptions){i.push(c,...t.slice(l));break}i.push(c)}return{operands:n,unknown:r}}opts(){if(this._storeOptionsAsProperties){let t={},n=this.options.length;for(let r=0;r<n;r++){let i=this.options[r].attributeName();t[i]=i===this._versionOptionName?this._version:this[i]}return t}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((t,n)=>Object.assign(t,n.opts()),{})}error(t,n){this._outputConfiguration.outputError(`${t}
|
|
26
26
|
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
27
27
|
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
|
|
28
|
-
`),this.outputHelp({error:!0}));let r=n||{},i=r.exitCode||1,o=r.code||"commander.error";this._exit(i,o,
|
|
29
|
-
`),this._exit(0,"commander.version",
|
|
30
|
-
Expecting one of '${r.join("', '")}'`);let i=`${
|
|
31
|
-
`)}),this}_outputHelpIfRequested(e){let n=this._getHelpOption();n&&e.find(i=>n.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function ob(t){return t.map(e=>{if(!e.startsWith("--inspect"))return e;let n,r="127.0.0.1",i="9229",o;return(o=e.match(/^(--inspect(-brk)?)$/))!==null?n=o[1]:(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(n=o[1],/^\d+$/.test(o[3])?i=o[3]:r=o[3]):(o=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(n=o[1],r=o[3],i=o[4]),n&&i!=="0"?`${n}=${r}:${parseInt(i)+1}`:e})}function Bf(){if(ce.env.NO_COLOR||ce.env.FORCE_COLOR==="0"||ce.env.FORCE_COLOR==="false")return!1;if(ce.env.FORCE_COLOR||ce.env.CLICOLOR_FORCE!==void 0)return!0}jf.Command=Nf;jf.useColor=Bf});var cb=b(St=>{"use strict";var{Argument:ab}=Oa(),{Command:Uf}=sb(),{CommanderError:pR,InvalidArgumentError:lb}=qo(),{Help:dR}=Rf(),{Option:ub}=Pf();St.program=new Uf;St.createCommand=t=>new Uf(t);St.createOption=(t,e)=>new ub(t,e);St.createArgument=(t,e)=>new ab(t,e);St.Command=Uf;St.Option=ub;St.Argument=ab;St.Help=dR;St.CommanderError=pR;St.InvalidArgumentError=lb;St.InvalidOptionArgumentError=lb});var bb=b((zG,yb)=>{"use strict";var wR=N("node:tty"),_R=wR?.WriteStream?.prototype?.hasColors?.()??!1,Q=(t,e)=>{if(!_R)return i=>i;let n=`\x1B[${t}m`,r=`\x1B[${e}m`;return i=>{let o=i+"",s=o.indexOf(r);if(s===-1)return n+o+r;let a=n,l=0,c=(e===22?r:"")+n;for(;s!==-1;)a+=o.slice(l,s)+c,l=s+r.length,s=o.indexOf(r,l);return a+=o.slice(l)+r,a}},K={};K.reset=Q(0,0);K.bold=Q(1,22);K.dim=Q(2,22);K.italic=Q(3,23);K.underline=Q(4,24);K.overline=Q(53,55);K.inverse=Q(7,27);K.hidden=Q(8,28);K.strikethrough=Q(9,29);K.black=Q(30,39);K.red=Q(31,39);K.green=Q(32,39);K.yellow=Q(33,39);K.blue=Q(34,39);K.magenta=Q(35,39);K.cyan=Q(36,39);K.white=Q(37,39);K.gray=Q(90,39);K.bgBlack=Q(40,49);K.bgRed=Q(41,49);K.bgGreen=Q(42,49);K.bgYellow=Q(43,49);K.bgBlue=Q(44,49);K.bgMagenta=Q(45,49);K.bgCyan=Q(46,49);K.bgWhite=Q(47,49);K.bgGray=Q(100,49);K.redBright=Q(91,39);K.greenBright=Q(92,39);K.yellowBright=Q(93,39);K.blueBright=Q(94,39);K.magentaBright=Q(95,39);K.cyanBright=Q(96,39);K.whiteBright=Q(97,39);K.bgRedBright=Q(101,49);K.bgGreenBright=Q(102,49);K.bgYellowBright=Q(103,49);K.bgBlueBright=Q(104,49);K.bgMagentaBright=Q(105,49);K.bgCyanBright=Q(106,49);K.bgWhiteBright=Q(107,49);yb.exports=K});var Eb=b((lV,Sb)=>{"use strict";Sb.exports=AR;function TR(t){let e={defaultWidth:0,output:process.stdout,tty:N("tty")};return t?(Object.keys(e).forEach(function(n){t[n]||(t[n]=e[n])}),t):e}function AR(t){let e=TR(t);if(e.output.getWindowSize)return e.output.getWindowSize()[0]||e.defaultWidth;if(e.tty.getWindowSize)return e.tty.getWindowSize()[1]||e.defaultWidth;if(e.output.columns)return e.output.columns;if(process.env.CLI_WIDTH){let n=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(n)&&n!==0)return n}return e.defaultWidth}});var Tb=b((uV,kb)=>{"use strict";kb.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 Cb=b((cV,Ab)=>{"use strict";var CR=Tb();Ab.exports=t=>typeof t=="string"?t.replace(CR(),""):t});var Rb=b((fV,Hf)=>{"use strict";var Fb=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);Hf.exports=Fb;Hf.exports.default=Fb});var Ib=b((hV,Ob)=>{"use strict";Ob.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Pb=b((pV,Gf)=>{"use strict";var FR=Cb(),RR=Rb(),OR=Ib(),Lb=t=>{if(typeof t!="string"||t.length===0||(t=FR(t),t.length===0))return 0;t=t.replace(OR()," ");let e=0;for(let n=0;n<t.length;n++){let r=t.codePointAt(n);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,e+=RR(r)?2:1)}return e};Gf.exports=Lb;Gf.exports.default=Lb});var Mb=b((dV,qb)=>{"use strict";qb.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 Bb=b((mV,Nb)=>{"use strict";var IR=Mb();Nb.exports=t=>typeof t=="string"?t.replace(IR(),""):t});var Ub=b((gV,jb)=>{"use strict";jb.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 Vf=b((yV,Wb)=>{"use strict";var Uo=Ub(),zb={};for(let t of Object.keys(Uo))zb[Uo[t]]=t;var U={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"]}};Wb.exports=U;for(let t of Object.keys(U)){if(!("channels"in U[t]))throw new Error("missing channels property: "+t);if(!("labels"in U[t]))throw new Error("missing channel labels property: "+t);if(U[t].labels.length!==U[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:n}=U[t];delete U[t].channels,delete U[t].labels,Object.defineProperty(U[t],"channels",{value:e}),Object.defineProperty(U[t],"labels",{value:n})}U.rgb.hsl=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=o-i,a,l;o===i?a=0:e===o?a=(n-r)/s:n===o?a=2+(r-e)/s:r===o&&(a=4+(e-n)/s),a=Math.min(a*60,360),a<0&&(a+=360);let u=(i+o)/2;return o===i?l=0:u<=.5?l=s/(o+i):l=s/(2-o-i),[a,l*100,u*100]};U.rgb.hsv=function(t){let e,n,r,i,o,s=t[0]/255,a=t[1]/255,l=t[2]/255,u=Math.max(s,a,l),c=u-Math.min(s,a,l),f=function(h){return(u-h)/6/c+1/2};return c===0?(i=0,o=0):(o=c/u,e=f(s),n=f(a),r=f(l),s===u?i=r-n:a===u?i=1/3+e-r:l===u&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,u*100]};U.rgb.hwb=function(t){let e=t[0],n=t[1],r=t[2],i=U.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(n,r));return r=1-1/255*Math.max(e,Math.max(n,r)),[i,o*100,r*100]};U.rgb.cmyk=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(1-e,1-n,1-r),o=(1-e-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,a=(1-r-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function LR(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}U.rgb.keyword=function(t){let e=zb[t];if(e)return e;let n=1/0,r;for(let i of Object.keys(Uo)){let o=Uo[i],s=LR(t,o);s<n&&(n=s,r=i)}return r};U.keyword.rgb=function(t){return Uo[t]};U.rgb.xyz=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let i=e*.4124+n*.3576+r*.1805,o=e*.2126+n*.7152+r*.0722,s=e*.0193+n*.1192+r*.9505;return[i*100,o*100,s*100]};U.rgb.lab=function(t){let e=U.rgb.xyz(t),n=e[0],r=e[1],i=e[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*r-16,s=500*(n-r),a=200*(r-i);return[o,s,a]};U.hsl.rgb=function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100,i,o,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;let a=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)o=e+1/3*-(u-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,l[u]=s*255;return l};U.hsl.hsv=function(t){let e=t[0],n=t[1]/100,r=t[2]/100,i=n,o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;let s=(r+n)/2,a=r===0?2*i/(o+i):2*n/(r+n);return[e,a*100,s*100]};U.hsv.rgb=function(t){let e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),s=255*r*(1-n),a=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}};U.hsv.hsl=function(t){let e=t[0],n=t[1]/100,r=t[2]/100,i=Math.max(r,.01),o,s;s=(2-n)*r;let a=(2-n)*i;return o=n*i,o/=a<=1?a:2-a,o=o||0,s/=2,[e,o*100,s*100]};U.hwb.rgb=function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100,i=n+r,o;i>1&&(n/=i,r/=i);let s=Math.floor(6*e),a=1-r;o=6*e-s,(s&1)!==0&&(o=1-o);let l=n+o*(a-n),u,c,f;switch(s){default:case 6:case 0:u=a,c=l,f=n;break;case 1:u=l,c=a,f=n;break;case 2:u=n,c=a,f=l;break;case 3:u=n,c=l,f=a;break;case 4:u=l,c=n,f=a;break;case 5:u=a,c=n,f=l;break}return[u*255,c*255,f*255]};U.cmyk.rgb=function(t){let e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100,o=1-Math.min(1,e*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),a=1-Math.min(1,r*(1-i)+i);return[o*255,s*255,a*255]};U.xyz.rgb=function(t){let e=t[0]/100,n=t[1]/100,r=t[2]/100,i,o,s;return i=e*3.2406+n*-1.5372+r*-.4986,o=e*-.9689+n*1.8758+r*.0415,s=e*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};U.xyz.lab=function(t){let e=t[0],n=t[1],r=t[2];e/=95.047,n/=100,r/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;let i=116*n-16,o=500*(e-n),s=200*(n-r);return[i,o,s]};U.lab.xyz=function(t){let e=t[0],n=t[1],r=t[2],i,o,s;o=(e+16)/116,i=n/500+o,s=o-r/200;let a=o**3,l=i**3,u=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};U.lab.lch=function(t){let e=t[0],n=t[1],r=t[2],i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(n*n+r*r);return[e,s,i]};U.lch.lab=function(t){let e=t[0],n=t[1],i=t[2]/360*2*Math.PI,o=n*Math.cos(i),s=n*Math.sin(i);return[e,o,s]};U.rgb.ansi16=function(t,e=null){let[n,r,i]=t,o=e===null?U.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(s+=60),s};U.hsv.ansi16=function(t){return U.rgb.ansi16(U.hsv.rgb(t),t[2])};U.rgb.ansi256=function(t){let e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};U.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 n=(~~(t>50)+1)*.5,r=(e&1)*n*255,i=(e>>1&1)*n*255,o=(e>>2&1)*n*255;return[r,i,o]};U.ansi256.rgb=function(t){if(t>=232){let o=(t-232)*10+8;return[o,o,o]}t-=16;let e,n=Math.floor(t/36)/5*255,r=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[n,r,i]};U.rgb.hex=function(t){let n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};U.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 n=e[0];e[0].length===3&&(n=n.split("").map(a=>a+a).join(""));let r=parseInt(n,16),i=r>>16&255,o=r>>8&255,s=r&255;return[i,o,s]};U.rgb.hcg=function(t){let e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.max(Math.max(e,n),r),o=Math.min(Math.min(e,n),r),s=i-o,a,l;return s<1?a=o/(1-s):a=0,s<=0?l=0:i===e?l=(n-r)/s%6:i===n?l=2+(r-e)/s:l=4+(e-n)/s,l/=6,l%=1,[l*360,s*100,a*100]};U.hsl.hcg=function(t){let e=t[1]/100,n=t[2]/100,r=n<.5?2*e*n:2*e*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[t[0],r*100,i*100]};U.hsv.hcg=function(t){let e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],r*100,i*100]};U.hcg.rgb=function(t){let e=t[0]/360,n=t[1]/100,r=t[2]/100;if(n===0)return[r*255,r*255,r*255];let i=[0,0,0],o=e%1*6,s=o%1,a=1-s,l=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,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]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};U.hcg.hsv=function(t){let e=t[1]/100,n=t[2]/100,r=e+n*(1-e),i=0;return r>0&&(i=e/r),[t[0],i*100,r*100]};U.hcg.hsl=function(t){let e=t[1]/100,r=t[2]/100*(1-e)+.5*e,i=0;return r>0&&r<.5?i=e/(2*r):r>=.5&&r<1&&(i=e/(2*(1-r))),[t[0],i*100,r*100]};U.hcg.hwb=function(t){let e=t[1]/100,n=t[2]/100,r=e+n*(1-e);return[t[0],(r-e)*100,(1-r)*100]};U.hwb.hcg=function(t){let e=t[1]/100,r=1-t[2]/100,i=r-e,o=0;return i<1&&(o=(r-i)/(1-i)),[t[0],i*100,o*100]};U.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};U.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};U.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};U.gray.hsl=function(t){return[0,0,t[0]]};U.gray.hsv=U.gray.hsl;U.gray.hwb=function(t){return[0,100,t[0]]};U.gray.cmyk=function(t){return[0,0,0,t[0]]};U.gray.lab=function(t){return[t[0],0,0]};U.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r};U.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var Hb=b((bV,$b)=>{"use strict";var ja=Vf();function PR(){let t={},e=Object.keys(ja);for(let n=e.length,r=0;r<n;r++)t[e[r]]={distance:-1,parent:null};return t}function qR(t){let e=PR(),n=[t];for(e[t].distance=0;n.length;){let r=n.pop(),i=Object.keys(ja[r]);for(let o=i.length,s=0;s<o;s++){let a=i[s],l=e[a];l.distance===-1&&(l.distance=e[r].distance+1,l.parent=r,n.unshift(a))}}return e}function MR(t,e){return function(n){return e(t(n))}}function NR(t,e){let n=[e[t].parent,t],r=ja[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)n.unshift(e[i].parent),r=MR(ja[e[i].parent][i],r),i=e[i].parent;return r.conversion=n,r}$b.exports=function(t){let e=qR(t),n={},r=Object.keys(e);for(let i=r.length,o=0;o<i;o++){let s=r[o];e[s].parent!==null&&(n[s]=NR(s,e))}return n}});var Vb=b((wV,Gb)=>{"use strict";var Yf=Vf(),BR=Hb(),gi={},jR=Object.keys(Yf);function UR(t){let e=function(...n){let r=n[0];return r==null?r:(r.length>1&&(n=r),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function zR(t){let e=function(...n){let r=n[0];if(r==null)return r;r.length>1&&(n=r);let i=t(n);if(typeof i=="object")for(let o=i.length,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}jR.forEach(t=>{gi[t]={},Object.defineProperty(gi[t],"channels",{value:Yf[t].channels}),Object.defineProperty(gi[t],"labels",{value:Yf[t].labels});let e=BR(t);Object.keys(e).forEach(r=>{let i=e[r];gi[t][r]=zR(i),gi[t][r].raw=UR(i)})});Gb.exports=gi});var Xb=b((_V,Jb)=>{"use strict";var Yb=(t,e)=>(...n)=>`\x1B[${t(...n)+e}m`,Kb=(t,e)=>(...n)=>{let r=t(...n);return`\x1B[${38+e};5;${r}m`},Qb=(t,e)=>(...n)=>{let r=t(...n);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`},Ua=t=>t,Zb=(t,e,n)=>[t,e,n],yi=(t,e,n)=>{Object.defineProperty(t,e,{get:()=>{let r=n();return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},Kf,bi=(t,e,n,r)=>{Kf===void 0&&(Kf=Vb());let i=r?10:0,o={};for(let[s,a]of Object.entries(Kf)){let l=s==="ansi16"?"ansi":s;s===e?o[l]=t(n,i):typeof a=="object"&&(o[l]=t(a[e],i))}return o};function WR(){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[n,r]of Object.entries(e)){for(let[i,o]of Object.entries(r))e[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},r[i]=e[i],t.set(o[0],o[1]);Object.defineProperty(e,n,{value:r,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",yi(e.color,"ansi",()=>bi(Yb,"ansi16",Ua,!1)),yi(e.color,"ansi256",()=>bi(Kb,"ansi256",Ua,!1)),yi(e.color,"ansi16m",()=>bi(Qb,"rgb",Zb,!1)),yi(e.bgColor,"ansi",()=>bi(Yb,"ansi16",Ua,!0)),yi(e.bgColor,"ansi256",()=>bi(Kb,"ansi256",Ua,!0)),yi(e.bgColor,"ansi16m",()=>bi(Qb,"rgb",Zb,!0)),e}Object.defineProperty(Jb,"exports",{enumerable:!0,get:WR})});var nw=b((DV,tw)=>{"use strict";var zo=Pb(),$R=Bb(),HR=Xb(),Zf=new Set(["\x1B","\x9B"]),GR=39,ew=t=>`${Zf.values().next().value}[${t}m`,VR=t=>t.split(" ").map(e=>zo(e)),Qf=(t,e,n)=>{let r=[...e],i=!1,o=zo($R(t[t.length-1]));for(let[s,a]of r.entries()){let l=zo(a);if(o+l<=n?t[t.length-1]+=a:(t.push(a),o=0),Zf.has(a))i=!0;else if(i&&a==="m"){i=!1;continue}i||(o+=l,o===n&&s<r.length-1&&(t.push(""),o=0))}!o&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},YR=t=>{let e=t.split(" "),n=e.length;for(;n>0&&!(zo(e[n-1])>0);)n--;return n===e.length?t:e.slice(0,n).join(" ")+e.slice(n).join("")},KR=(t,e,n={})=>{if(n.trim!==!1&&t.trim()==="")return"";let r="",i="",o,s=VR(t),a=[""];for(let[l,u]of t.split(" ").entries()){n.trim!==!1&&(a[a.length-1]=a[a.length-1].trimLeft());let c=zo(a[a.length-1]);if(l!==0&&(c>=e&&(n.wordWrap===!1||n.trim===!1)&&(a.push(""),c=0),(c>0||n.trim===!1)&&(a[a.length-1]+=" ",c++)),n.hard&&s[l]>e){let f=e-c,h=1+Math.floor((s[l]-f-1)/e);Math.floor((s[l]-1)/e)<h&&a.push(""),Qf(a,u,e);continue}if(c+s[l]>e&&c>0&&s[l]>0){if(n.wordWrap===!1&&c<e){Qf(a,u,e);continue}a.push("")}if(c+s[l]>e&&n.wordWrap===!1){Qf(a,u,e);continue}a[a.length-1]+=u}n.trim!==!1&&(a=a.map(YR)),r=a.join(`
|
|
32
|
-
`);for(let
|
|
33
|
-
|
|
34
|
-
`&&(i+=ew(o)))}return i};tw.exports=(t,e,n)=>String(t).normalize().replace(/\r\n/g,`
|
|
35
|
-
`).split(`
|
|
36
|
-
`).map(r=>KR(r,e,n)).join(`
|
|
37
|
-
`)});var sw=b((TV,ow)=>{"use strict";var QR=N("stream"),Xf=class extends QR{#t=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#n(e,n){return this._dest?this._dest[e]:this._src?this._src[e]:n}#e(e,...n){typeof this._dest?.[e]=="function"&&this._dest[e](...n),typeof this._src?.[e]=="function"&&this._src[e](...n)}get isTTY(){return this.#t!==null?this.#t:this.#n("isTTY",!1)}set isTTY(e){this.#t=e}get rows(){return this.#n("rows")}get columns(){return this.#n("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,n){return this._dest=e,super.pipe(e,n)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.slice(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#e("destroy",...e)}destroySoon(...e){return this.#e("destroySoon",...e)}close(...e){return this.#e("close",...e)}};ow.exports=Xf});var M0=b((Oee,q0)=>{"use strict";var pl=Object.prototype.hasOwnProperty,P0=Object.prototype.toString,C0=Object.defineProperty,F0=Object.getOwnPropertyDescriptor,R0=function(e){return typeof Array.isArray=="function"?Array.isArray(e):P0.call(e)==="[object Array]"},O0=function(e){if(!e||P0.call(e)!=="[object Object]")return!1;var n=pl.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&pl.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;var i;for(i in e);return typeof i>"u"||pl.call(e,i)},I0=function(e,n){C0&&n.name==="__proto__"?C0(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},L0=function(e,n){if(n==="__proto__")if(pl.call(e,n)){if(F0)return F0(e,n).value}else return;return e[n]};q0.exports=function t(){var e,n,r,i,o,s,a=arguments[0],l=1,u=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<u;++l)if(e=arguments[l],e!=null)for(n in e)r=L0(a,n),i=L0(e,n),a!==i&&(c&&i&&(O0(i)||(o=R0(i)))?(o?(o=!1,s=r&&R0(r)?r:[]):s=r&&O0(r)?r:{},I0(a,{name:n,newValue:t(c,s,i)})):typeof i<"u"&&I0(a,{name:n,newValue:i}));return a}});var wl=b(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.thenable=Ce.typedArray=Ce.stringArray=Ce.array=Ce.func=Ce.error=Ce.number=Ce.string=Ce.boolean=void 0;function y3(t){return t===!0||t===!1}Ce.boolean=y3;function G0(t){return typeof t=="string"||t instanceof String}Ce.string=G0;function b3(t){return typeof t=="number"||t instanceof Number}Ce.number=b3;function w3(t){return t instanceof Error}Ce.error=w3;function V0(t){return typeof t=="function"}Ce.func=V0;function Y0(t){return Array.isArray(t)}Ce.array=Y0;function _3(t){return Y0(t)&&t.every(e=>G0(e))}Ce.stringArray=_3;function D3(t,e){return Array.isArray(t)&&t.every(e)}Ce.typedArray=D3;function x3(t){return t&&V0(t.then)}Ce.thenable=x3});var ep=b(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.generateUuid=Tt.parse=Tt.isUUID=Tt.v4=Tt.empty=void 0;var ts=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},ns=class t extends ts{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return t._oneOf(t._chars)}constructor(){super([t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-","4",t._randomHex(),t._randomHex(),t._randomHex(),"-",t._oneOf(t._timeHighBits),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex()].join(""))}};ns._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];ns._timeHighBits=["8","9","a","b"];Tt.empty=new ts("00000000-0000-0000-0000-000000000000");function K0(){return new ns}Tt.v4=K0;var v3=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function Q0(t){return v3.test(t)}Tt.isUUID=Q0;function S3(t){if(!Q0(t))throw new Error("invalid uuid");return new ts(t)}Tt.parse=S3;function E3(){return K0().asHex()}Tt.generateUuid=E3});var Z0=b($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.attachPartialResult=$n.ProgressFeature=$n.attachWorkDone=void 0;var Wn=Re(),k3=ep(),Or=class t{constructor(e,n){this._connection=e,this._token=n,t.Instances.set(this._token,this)}begin(e,n,r,i){let o={kind:"begin",title:e,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Wn.WorkDoneProgress.type,this._token,o)}report(e,n){let r={kind:"report"};typeof e=="number"?(r.percentage=e,n!==void 0&&(r.message=n)):r.message=e,this._connection.sendProgress(Wn.WorkDoneProgress.type,this._token,r)}done(){t.Instances.delete(this._token),this._connection.sendProgress(Wn.WorkDoneProgress.type,this._token,{kind:"end"})}};Or.Instances=new Map;var _l=class extends Or{constructor(e,n){super(e,n),this._source=new Wn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},rs=class{constructor(){}begin(){}report(){}done(){}},Dl=class extends rs{constructor(){super(),this._source=new Wn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function T3(t,e){if(e===void 0||e.workDoneToken===void 0)return new rs;let n=e.workDoneToken;return delete e.workDoneToken,new Or(t,n)}$n.attachWorkDone=T3;var A3=t=>class extends t{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),e?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Wn.WorkDoneProgressCancelNotification.type,n=>{let r=Or.Instances.get(n.token);(r instanceof _l||r instanceof Dl)&&r.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new rs:new Or(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=(0,k3.generateUuid)();return this.connection.sendRequest(Wn.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new _l(this.connection,e))}else return Promise.resolve(new Dl)}};$n.ProgressFeature=A3;var tp;(function(t){t.type=new Wn.ProgressType})(tp||(tp={}));var np=class{constructor(e,n){this._connection=e,this._token=n}report(e){this._connection.sendProgress(tp.type,this._token,e)}};function C3(t,e){if(e===void 0||e.partialResultToken===void 0)return;let n=e.partialResultToken;return delete e.partialResultToken,new np(t,n)}$n.attachPartialResult=C3});var J0=b(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.ConfigurationFeature=void 0;var F3=Re(),R3=wl(),O3=t=>class extends t{getConfiguration(e){return e?R3.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let n={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(F3.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(e)?r:r[0]:Array.isArray(e)?[]:null)}};xl.ConfigurationFeature=O3});var X0=b(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.WorkspaceFoldersFeature=void 0;var vl=Re(),I3=t=>class extends t{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let n=e.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new vl.Emitter,this.connection.onNotification(vl.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(e){super.fillServerCapabilities(e);let n=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(vl.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(vl.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};Sl.WorkspaceFoldersFeature=I3});var e_=b(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.CallHierarchyFeature=void 0;var rp=Re(),L3=t=>class extends t{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(rp.CallHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:e=>{let n=rp.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:e=>{let n=rp.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};El.CallHierarchyFeature=L3});var op=b(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.SemanticTokensBuilder=Hn.SemanticTokensDiff=Hn.SemanticTokensFeature=void 0;var kl=Re(),P3=t=>class extends t{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(kl.SemanticTokensRefreshRequest.type),on:e=>{let n=kl.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:e=>{let n=kl.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:e=>{let n=kl.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Hn.SemanticTokensFeature=P3;var Tl=class{constructor(e,n){this.originalSequence=e,this.modifiedSequence=n}computeDiff(){let e=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<e&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<e){let i=e-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<e?[{start:r,deleteCount:e-r}]:[]}};Hn.SemanticTokensDiff=Tl;var ip=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,n,r,i,o){let s=e,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=e,this._prevChar=n}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new Tl(this._prevData,this._data).computeDiff()}:this.build()}};Hn.SemanticTokensBuilder=ip});var t_=b(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.ShowDocumentFeature=void 0;var q3=Re(),M3=t=>class extends t{showDocument(e){return this.connection.sendRequest(q3.ShowDocumentRequest.type,e)}};Al.ShowDocumentFeature=M3});var n_=b(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.FileOperationsFeature=void 0;var Ti=Re(),N3=t=>class extends t{onDidCreateFiles(e){return this.connection.onNotification(Ti.DidCreateFilesNotification.type,n=>{e(n)})}onDidRenameFiles(e){return this.connection.onNotification(Ti.DidRenameFilesNotification.type,n=>{e(n)})}onDidDeleteFiles(e){return this.connection.onNotification(Ti.DidDeleteFilesNotification.type,n=>{e(n)})}onWillCreateFiles(e){return this.connection.onRequest(Ti.WillCreateFilesRequest.type,(n,r)=>e(n,r))}onWillRenameFiles(e){return this.connection.onRequest(Ti.WillRenameFilesRequest.type,(n,r)=>e(n,r))}onWillDeleteFiles(e){return this.connection.onRequest(Ti.WillDeleteFilesRequest.type,(n,r)=>e(n,r))}};Cl.FileOperationsFeature=N3});var r_=b(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.LinkedEditingRangeFeature=void 0;var B3=Re(),j3=t=>class extends t{onLinkedEditingRange(e){return this.connection.onRequest(B3.LinkedEditingRangeRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0))}};Fl.LinkedEditingRangeFeature=j3});var i_=b(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.TypeHierarchyFeature=void 0;var sp=Re(),U3=t=>class extends t{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(sp.TypeHierarchyPrepareRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:e=>{let n=sp.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:e=>{let n=sp.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Rl.TypeHierarchyFeature=U3});var s_=b(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.InlineValueFeature=void 0;var o_=Re(),z3=t=>class extends t{get inlineValue(){return{refresh:()=>this.connection.sendRequest(o_.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(o_.InlineValueRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};Ol.InlineValueFeature=z3});var l_=b(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.FoldingRangeFeature=void 0;var a_=Re(),W3=t=>class extends t{get foldingRange(){return{refresh:()=>this.connection.sendRequest(a_.FoldingRangeRefreshRequest.type),on:e=>{let n=a_.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Il.FoldingRangeFeature=W3});var u_=b(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.InlayHintFeature=void 0;var ap=Re(),$3=t=>class extends t{get inlayHint(){return{refresh:()=>this.connection.sendRequest(ap.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(ap.InlayHintRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n))),resolve:e=>this.connection.onRequest(ap.InlayHintResolveRequest.type,(n,r)=>e(n,r))}}};Ll.InlayHintFeature=$3});var c_=b(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.DiagnosticFeature=void 0;var is=Re(),H3=t=>class extends t{get diagnostics(){return{refresh:()=>this.connection.sendRequest(is.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(is.DocumentDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(is.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:e=>this.connection.onRequest(is.WorkspaceDiagnosticRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(is.WorkspaceDiagnosticRequest.partialResult,n)))}}};Pl.DiagnosticFeature=H3});var up=b(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.TextDocuments=void 0;var Ir=Re(),lp=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new Ir.Emitter,this._onDidOpen=new Ir.Emitter,this._onDidClose=new Ir.Emitter,this._onDidSave=new Ir.Emitter,this._onWillSave=new Ir.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=Ir.TextDocumentSyncKind.Incremental;let n=[];return n.push(e.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(e.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(e.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(e.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(e.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(e.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),Ir.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};ql.TextDocuments=lp});var fp=b(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.NotebookDocuments=Ai.NotebookSyncFeature=void 0;var At=Re(),f_=up(),G3=t=>class extends t{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(At.DidOpenNotebookDocumentNotification.type,n=>{e(n)}),onDidChangeNotebookDocument:e=>this.connection.onNotification(At.DidChangeNotebookDocumentNotification.type,n=>{e(n)}),onDidSaveNotebookDocument:e=>this.connection.onNotification(At.DidSaveNotebookDocumentNotification.type,n=>{e(n)}),onDidCloseNotebookDocument:e=>this.connection.onNotification(At.DidCloseNotebookDocumentNotification.type,n=>{e(n)})}}};Ai.NotebookSyncFeature=G3;var Ml=class t{onDidOpenTextDocument(e){return this.openHandler=e,At.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,At.Disposable.create(()=>{this.changeHandler=e})}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,At.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return t.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return t.NULL_DISPOSE}onDidSaveTextDocument(){return t.NULL_DISPOSE}};Ml.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var cp=class{constructor(e){e instanceof f_.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new f_.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new At.Emitter,this._onDidChange=new At.Emitter,this._onDidSave=new At.Emitter,this._onDidClose=new At.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){let n=this.notebookCellMap.get(e);return n&&n[0]}findNotebookDocumentForCell(e){let n=typeof e=="string"?e:e.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){let n=new Ml,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(e.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(e.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,l=i.change;l.metadata!==void 0&&(a=!0,o.metadata=l.metadata);let u=[],c=[],f=[],h=[];if(l.cells!==void 0){let g=l.cells;if(g.structure!==void 0){let m=g.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),g.structure.didOpen!==void 0)for(let d of g.structure.didOpen)n.openTextDocument({textDocument:d}),u.push(d.uri);if(g.structure.didClose)for(let d of g.structure.didClose)n.closeTextDocument({textDocument:d}),c.push(d.uri)}if(g.data!==void 0){let m=new Map(g.data.map(d=>[d.document,d]));for(let d=0;d<=o.cells.length;d++){let y=m.get(o.cells[d].document);if(y!==void 0){let T=o.cells.splice(d,1,y);if(f.push({old:T[0],new:y}),m.delete(y.document),m.size===0)break}}}if(g.textContent!==void 0)for(let m of g.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),h.push(m.document.uri)}this.updateCellMap(o);let p={notebookDocument:o};a&&(p.metadata={old:s,new:o.metadata});let w=[];for(let g of u)w.push(this.getNotebookCell(g));let D=[];for(let g of c)D.push(this.getNotebookCell(g));let k=[];for(let g of h)k.push(this.getNotebookCell(g));(w.length>0||D.length>0||f.length>0||k.length>0)&&(p.cells={added:w,removed:D,changed:{data:f,textContent:k}}),(p.metadata!==void 0||p.cells!==void 0)&&this._onDidChange.fire(p)})),r.push(e.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(e.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),At.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(e){for(let n of e.cells)this.notebookCellMap.set(n.document,[n,e])}};Ai.NotebookDocuments=cp});var h_=b(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.MonikerFeature=void 0;var V3=Re(),Y3=t=>class extends t{get moniker(){return{on:e=>{let n=V3.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>e(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Nl.MonikerFeature=Y3});var yp=b(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.createConnection=le.combineFeatures=le.combineNotebooksFeatures=le.combineLanguagesFeatures=le.combineWorkspaceFeatures=le.combineWindowFeatures=le.combineClientFeatures=le.combineTracerFeatures=le.combineTelemetryFeatures=le.combineConsoleFeatures=le._NotebooksImpl=le._LanguagesImpl=le.BulkUnregistration=le.BulkRegistration=le.ErrorMessageTracker=void 0;var q=Re(),Ct=wl(),pp=ep(),G=Z0(),K3=J0(),Q3=X0(),Z3=e_(),J3=op(),X3=t_(),eL=n_(),tL=r_(),nL=i_(),rL=s_(),iL=l_(),oL=u_(),sL=c_(),aL=fp(),lL=h_();function hp(t){if(t!==null)return t}var dp=class{constructor(){this._messages=Object.create(null)}add(e){let n=this._messages[e];n||(n=0),n++,this._messages[e]=n}sendErrors(e){Object.keys(this._messages).forEach(n=>{e.window.showErrorMessage(n)})}};le.ErrorMessageTracker=dp;var Bl=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(q.MessageType.Error,e)}warn(e){this.send(q.MessageType.Warning,e)}info(e){this.send(q.MessageType.Info,e)}log(e){this.send(q.MessageType.Log,e)}debug(e){this.send(q.MessageType.Debug,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(q.LogMessageNotification.type,{type:e,message:n}).catch(()=>{(0,q.RAL)().console.error("Sending log message failed")})}},mp=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let r={type:q.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(q.ShowMessageRequest.type,r).then(hp)}showWarningMessage(e,...n){let r={type:q.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(q.ShowMessageRequest.type,r).then(hp)}showInformationMessage(e,...n){let r={type:q.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(q.ShowMessageRequest.type,r).then(hp)}},p_=(0,X3.ShowDocumentFeature)((0,G.ProgressFeature)(mp)),d_;(function(t){function e(){return new jl}t.create=e})(d_||(le.BulkRegistration=d_={}));var jl=class{constructor(){this._registrations=[],this._registered=new Set}add(e,n){let r=Ct.string(e)?e:e.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=pp.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},m_;(function(t){function e(){return new os(void 0,[])}t.create=e})(m_||(le.BulkUnregistration=m_={}));var os=class{constructor(e,n){this._connection=e,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let r of this._unregistrations.values())e.push(r);let n={unregisterations:e};this._connection.sendRequest(q.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let n=Ct.string(e)?e:e.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(q.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},Ul=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,n,r){return e instanceof jl?this.registerMany(e):e instanceof os?this.registerSingle1(e,n,r):this.registerSingle2(e,n)}registerSingle1(e,n,r){let i=Ct.string(n)?n:n.method,o=pp.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(q.RegistrationRequest.type,s).then(a=>(e.add({id:o,method:i}),e),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(e,n){let r=Ct.string(e)?e:e.method,i=pp.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(q.RegistrationRequest.type,o).then(s=>q.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(e,n){let r={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(q.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(q.RegistrationRequest.type,n).then(()=>new os(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},gp=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function n(i){return i&&!!i.edit}let r=n(e)?e:{edit:e};return this.connection.sendRequest(q.ApplyWorkspaceEditRequest.type,r)}},g_=(0,eL.FileOperationsFeature)((0,Q3.WorkspaceFoldersFeature)((0,K3.ConfigurationFeature)(gp))),zl=class{constructor(){this._trace=q.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==q.Trace.Off&&this.connection.sendNotification(q.LogTraceNotification.type,{message:e,verbose:this._trace===q.Trace.Verbose?n:void 0}).catch(()=>{})}},Wl=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(q.TelemetryEventNotification.type,e).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},$l=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,G.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,G.attachPartialResult)(this.connection,n)}};le._LanguagesImpl=$l;var y_=(0,iL.FoldingRangeFeature)((0,lL.MonikerFeature)((0,sL.DiagnosticFeature)((0,oL.InlayHintFeature)((0,rL.InlineValueFeature)((0,nL.TypeHierarchyFeature)((0,tL.LinkedEditingRangeFeature)((0,J3.SemanticTokensFeature)((0,Z3.CallHierarchyFeature)($l))))))))),Hl=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,G.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,n){return(0,G.attachPartialResult)(this.connection,n)}};le._NotebooksImpl=Hl;var b_=(0,aL.NotebookSyncFeature)(Hl);function w_(t,e){return function(n){return e(t(n))}}le.combineConsoleFeatures=w_;function __(t,e){return function(n){return e(t(n))}}le.combineTelemetryFeatures=__;function D_(t,e){return function(n){return e(t(n))}}le.combineTracerFeatures=D_;function x_(t,e){return function(n){return e(t(n))}}le.combineClientFeatures=x_;function v_(t,e){return function(n){return e(t(n))}}le.combineWindowFeatures=v_;function S_(t,e){return function(n){return e(t(n))}}le.combineWorkspaceFeatures=S_;function E_(t,e){return function(n){return e(t(n))}}le.combineLanguagesFeatures=E_;function k_(t,e){return function(n){return e(t(n))}}le.combineNotebooksFeatures=k_;function uL(t,e){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(t.console,e.console,w_),tracer:n(t.tracer,e.tracer,D_),telemetry:n(t.telemetry,e.telemetry,__),client:n(t.client,e.client,x_),window:n(t.window,e.window,v_),workspace:n(t.workspace,e.workspace,S_),languages:n(t.languages,e.languages,E_),notebooks:n(t.notebooks,e.notebooks,k_)}}le.combineFeatures=uL;function cL(t,e,n){let r=n&&n.console?new(n.console(Bl)):new Bl,i=t(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(zl)):new zl,s=n&&n.telemetry?new(n.telemetry(Wl)):new Wl,a=n&&n.client?new(n.client(Ul)):new Ul,l=n&&n.window?new(n.window(p_)):new p_,u=n&&n.workspace?new(n.workspace(g_)):new g_,c=n&&n.languages?new(n.languages(y_)):new y_,f=n&&n.notebooks?new(n.notebooks(b_)):new b_,h=[r,o,s,a,l,u,c,f];function p(m){return m instanceof Promise?m:Ct.thenable(m)?new Promise((d,y)=>{m.then(T=>d(T),T=>y(T))}):Promise.resolve(m)}let w,D,k,g={listen:()=>i.listen(),sendRequest:(m,...d)=>i.sendRequest(Ct.string(m)?m:m.method,...d),onRequest:(m,d)=>i.onRequest(m,d),sendNotification:(m,d)=>{let y=Ct.string(m)?m:m.method;return i.sendNotification(y,d)},onNotification:(m,d)=>i.onNotification(m,d),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(D=m,{dispose:()=>{D=void 0}}),onInitialized:m=>i.onNotification(q.InitializedNotification.type,m),onShutdown:m=>(w=m,{dispose:()=>{w=void 0}}),onExit:m=>(k=m,{dispose:()=>{k=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return l},get workspace(){return u},get languages(){return c},get notebooks(){return f},onDidChangeConfiguration:m=>i.onNotification(q.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(q.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(q.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(q.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(q.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(q.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(q.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(q.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(q.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(q.HoverRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),void 0)),onCompletion:m=>i.onRequest(q.CompletionRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onCompletionResolve:m=>i.onRequest(q.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(q.SignatureHelpRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),void 0)),onDeclaration:m=>i.onRequest(q.DeclarationRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDefinition:m=>i.onRequest(q.DefinitionRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onTypeDefinition:m=>i.onRequest(q.TypeDefinitionRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onImplementation:m=>i.onRequest(q.ImplementationRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onReferences:m=>i.onRequest(q.ReferencesRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDocumentHighlight:m=>i.onRequest(q.DocumentHighlightRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDocumentSymbol:m=>i.onRequest(q.DocumentSymbolRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onWorkspaceSymbol:m=>i.onRequest(q.WorkspaceSymbolRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onWorkspaceSymbolResolve:m=>i.onRequest(q.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(q.CodeActionRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onCodeActionResolve:m=>i.onRequest(q.CodeActionResolveRequest.type,(d,y)=>m(d,y)),onCodeLens:m=>i.onRequest(q.CodeLensRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onCodeLensResolve:m=>i.onRequest(q.CodeLensResolveRequest.type,(d,y)=>m(d,y)),onDocumentFormatting:m=>i.onRequest(q.DocumentFormattingRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),void 0)),onDocumentRangeFormatting:m=>i.onRequest(q.DocumentRangeFormattingRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(q.DocumentOnTypeFormattingRequest.type,(d,y)=>m(d,y)),onRenameRequest:m=>i.onRequest(q.RenameRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),void 0)),onPrepareRename:m=>i.onRequest(q.PrepareRenameRequest.type,(d,y)=>m(d,y)),onDocumentLinks:m=>i.onRequest(q.DocumentLinkRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onDocumentLinkResolve:m=>i.onRequest(q.DocumentLinkResolveRequest.type,(d,y)=>m(d,y)),onDocumentColor:m=>i.onRequest(q.DocumentColorRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onColorPresentation:m=>i.onRequest(q.ColorPresentationRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onFoldingRanges:m=>i.onRequest(q.FoldingRangeRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onSelectionRanges:m=>i.onRequest(q.SelectionRangeRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),(0,G.attachPartialResult)(i,d))),onExecuteCommand:m=>i.onRequest(q.ExecuteCommandRequest.type,(d,y)=>m(d,y,(0,G.attachWorkDone)(i,d),void 0)),dispose:()=>i.dispose()};for(let m of h)m.attach(g);return i.onRequest(q.InitializeRequest.type,m=>{e.initialize(m),Ct.string(m.trace)&&(o.trace=q.Trace.fromString(m.trace));for(let d of h)d.initialize(m.capabilities);if(D){let d=D(m,new q.CancellationTokenSource().token,(0,G.attachWorkDone)(i,m),void 0);return p(d).then(y=>{if(y instanceof q.ResponseError)return y;let T=y;T||(T={capabilities:{}});let x=T.capabilities;x||(x={},T.capabilities=x),x.textDocumentSync===void 0||x.textDocumentSync===null?x.textDocumentSync=Ct.number(g.__textDocumentSync)?g.__textDocumentSync:q.TextDocumentSyncKind.None:!Ct.number(x.textDocumentSync)&&!Ct.number(x.textDocumentSync.change)&&(x.textDocumentSync.change=Ct.number(g.__textDocumentSync)?g.__textDocumentSync:q.TextDocumentSyncKind.None);for(let S of h)S.fillServerCapabilities(x);return T})}else{let d={capabilities:{textDocumentSync:q.TextDocumentSyncKind.None}};for(let y of h)y.fillServerCapabilities(d.capabilities);return d}}),i.onRequest(q.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,w)return w(new q.CancellationTokenSource().token)}),i.onNotification(q.ExitNotification.type,()=>{try{k&&k()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),i.onNotification(q.SetTraceNotification.type,m=>{o.trace=q.Trace.fromString(m.value)}),g}le.createConnection=cL});var T_=b(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.resolveModulePath=ft.FileSystem=ft.resolveGlobalYarnPath=ft.resolveGlobalNodePath=ft.resolve=ft.uriToFilePath=void 0;var fL=N("url"),Ut=N("path"),bp=N("fs"),xp=N("child_process");function hL(t){let e=fL.parse(t);if(e.protocol!=="file:"||!e.path)return;let n=e.path.split("/");for(var r=0,i=n.length;r<i;r++)n[r]=decodeURIComponent(n[r]);if(process.platform==="win32"&&n.length>1){let o=n[0],s=n[1];o.length===0&&s.length>1&&s[1]===":"&&n.shift()}return Ut.normalize(n.join("/"))}ft.uriToFilePath=hL;function wp(){return process.platform==="win32"}function Gl(t,e,n,r){let i="NODE_PATH",o=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((s,a)=>{let l=process.env,u=Object.create(null);Object.keys(l).forEach(c=>u[c]=l[c]),e&&bp.existsSync(e)&&(u[i]?u[i]=e+Ut.delimiter+u[i]:u[i]=e,r&&r(`NODE_PATH value is: ${u[i]}`)),u.ELECTRON_RUN_AS_NODE="1";try{let c=(0,xp.fork)("",[],{cwd:n,env:u,execArgv:["-e",o]});if(c.pid===void 0){a(new Error(`Starting process to resolve node module ${t} failed`));return}c.on("error",h=>{a(h)}),c.on("message",h=>{h.c==="r"&&(c.send({c:"e"}),h.s?s(h.r):a(new Error(`Failed to resolve module: ${t}`)))});let f={c:"rs",a:t};c.send(f)}catch(c){a(c)}})}ft.resolve=Gl;function _p(t){let e="npm",n=Object.create(null);Object.keys(process.env).forEach(o=>n[o]=process.env[o]),n.NO_UPDATE_NOTIFIER="true";let r={encoding:"utf8",env:n};wp()&&(e="npm.cmd",r.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let o=(0,xp.spawnSync)(e,["config","get","prefix"],r).stdout;if(!o){t&&t("'npm config get prefix' didn't return a value.");return}let s=o.trim();return t&&t(`'npm config get prefix' value is: ${s}`),s.length>0?wp()?Ut.join(s,"node_modules"):Ut.join(s,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",i)}}ft.resolveGlobalNodePath=_p;function pL(t){let e="yarn",n={encoding:"utf8"};wp()&&(e="yarn.cmd",n.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let i=(0,xp.spawnSync)(e,["global","dir","--json"],n),o=i.stdout;if(!o){t&&(t("'yarn global dir' didn't return a value."),i.stderr&&t(i.stderr));return}let s=o.trim().split(/\r?\n/);for(let a of s)try{let l=JSON.parse(a);if(l.type==="log")return Ut.join(l.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",r)}}ft.resolveGlobalYarnPath=pL;var Dp;(function(t){let e;function n(){return e!==void 0||(process.platform==="win32"?e=!1:e=!bp.existsSync(__filename.toUpperCase())||!bp.existsSync(__filename.toLowerCase())),e}t.isCaseSensitive=n;function r(i,o){return n()?Ut.normalize(o).indexOf(Ut.normalize(i))===0:Ut.normalize(o).toLowerCase().indexOf(Ut.normalize(i).toLowerCase())===0}t.isParent=r})(Dp||(ft.FileSystem=Dp={}));function dL(t,e,n,r){return n?(Ut.isAbsolute(n)||(n=Ut.join(t,n)),Gl(e,n,n,r).then(i=>Dp.isParent(n,i)?i:Promise.reject(new Error(`Failed to load ${e} from node path location.`))).then(void 0,i=>Gl(e,_p(r),t,r))):Gl(e,_p(r),t,r)}ft.resolveModulePath=dL});var A_=b(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.InlineCompletionFeature=void 0;var mL=Re(),gL=t=>class extends t{get inlineCompletion(){return{on:e=>this.connection.onRequest(mL.InlineCompletionRequest.type,(n,r)=>e(n,r,this.attachWorkDoneProgress(n)))}}};Vl.InlineCompletionFeature=gL});var R_=b(Qe=>{"use strict";var yL=Qe&&Qe.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),F_=Qe&&Qe.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&yL(e,t,n)};Object.defineProperty(Qe,"__esModule",{value:!0});Qe.ProposedFeatures=Qe.NotebookDocuments=Qe.TextDocuments=Qe.SemanticTokensBuilder=void 0;var bL=op();Object.defineProperty(Qe,"SemanticTokensBuilder",{enumerable:!0,get:function(){return bL.SemanticTokensBuilder}});var wL=A_();F_(Re(),Qe);var _L=up();Object.defineProperty(Qe,"TextDocuments",{enumerable:!0,get:function(){return _L.TextDocuments}});var DL=fp();Object.defineProperty(Qe,"NotebookDocuments",{enumerable:!0,get:function(){return DL.NotebookDocuments}});F_(yp(),Qe);var C_;(function(t){t.all={__brand:"features",languages:wL.InlineCompletionFeature}})(C_||(Qe.ProposedFeatures=C_={}))});var Kl=b(Ft=>{"use strict";var xL=Ft&&Ft.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),P_=Ft&&Ft.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&xL(e,t,n)};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.createConnection=Ft.Files=void 0;var O_=N("node:util"),vp=wl(),vL=yp(),ss=T_(),Lr=Wy();P_(Wy(),Ft);P_(R_(),Ft);var I_;(function(t){t.uriToFilePath=ss.uriToFilePath,t.resolveGlobalNodePath=ss.resolveGlobalNodePath,t.resolveGlobalYarnPath=ss.resolveGlobalYarnPath,t.resolve=ss.resolve,t.resolveModulePath=ss.resolveModulePath})(I_||(Ft.Files=I_={}));var L_;function Yl(){if(L_!==void 0)try{L_.end()}catch{}}var Ci=!1,q_;function SL(){let t="--clientProcessId";function e(n){try{let r=parseInt(n);isNaN(r)||(q_=setInterval(()=>{try{process.kill(r,0)}catch{Yl(),process.exit(Ci?0:1)}},3e3))}catch{}}for(let n=2;n<process.argv.length;n++){let r=process.argv[n];if(r===t&&n+1<process.argv.length){e(process.argv[n+1]);return}else{let i=r.split("=");i[0]===t&&e(i[1])}}}SL();var EL={initialize:t=>{let e=t.processId;vp.number(e)&&q_===void 0&&setInterval(()=>{try{process.kill(e,0)}catch{process.exit(Ci?0:1)}},3e3)},get shutdownReceived(){return Ci},set shutdownReceived(t){Ci=t},exit:t=>{Yl(),process.exit(t)}};function kL(t,e,n,r){let i,o,s,a;return t!==void 0&&t.__brand==="features"&&(i=t,t=e,e=n,n=r),Lr.ConnectionStrategy.is(t)||Lr.ConnectionOptions.is(t)?a=t:(o=t,s=e,a=n),TL(o,s,a,i)}Ft.createConnection=kL;function TL(t,e,n,r){let i=!1;if(!t&&!e&&process.argv.length>2){let l,u,c=process.argv.slice(2);for(let f=0;f<c.length;f++){let h=c[f];if(h==="--node-ipc"){t=new Lr.IPCMessageReader(process),e=new Lr.IPCMessageWriter(process);break}else if(h==="--stdio"){i=!0,t=process.stdin,e=process.stdout;break}else if(h==="--socket"){l=parseInt(c[f+1]);break}else if(h==="--pipe"){u=c[f+1];break}else{var o=h.split("=");if(o[0]==="--socket"){l=parseInt(o[1]);break}else if(o[0]==="--pipe"){u=o[1];break}}}if(l){let f=(0,Lr.createServerSocketTransport)(l);t=f[0],e=f[1]}else if(u){let f=(0,Lr.createServerPipeTransport)(u);t=f[0],e=f[1]}}var s="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!t)throw new Error("Connection input stream is not set. "+s);if(!e)throw new Error("Connection output stream is not set. "+s);if(vp.func(t.read)&&vp.func(t.on)){let l=t;l.on("end",()=>{Yl(),process.exit(Ci?0:1)}),l.on("close",()=>{Yl(),process.exit(Ci?0:1)})}let a=l=>{let u=(0,Lr.createProtocolConnection)(t,e,l,n);return i&&AL(l),u};return(0,vL.createConnection)(a,EL,r)}function AL(t){function e(r){return r.map(i=>typeof i=="string"?i:(0,O_.inspect)(i)).join(" ")}let n=new Map;console.assert=function(i,...o){if(!i)if(o.length===0)t.error("Assertion failed");else{let[s,...a]=o;t.error(`Assertion failed: ${s} ${e(a)}`)}},console.count=function(i="default"){let o=String(i),s=n.get(o)??0;s+=1,n.set(o,s),t.log(`${o}: ${o}`)},console.countReset=function(i){i===void 0?n.clear():n.delete(String(i))},console.debug=function(...i){t.log(e(i))},console.dir=function(i,o){t.log((0,O_.inspect)(i,o))},console.log=function(...i){t.log(e(i))},console.error=function(...i){t.error(e(i))},console.trace=function(...i){let o=new Error().stack.replace(/(.+\n){2}/,""),s="Trace";i.length!==0&&(s+=`: ${e(i)}`),t.log(`${s}
|
|
38
|
-
${o}`)},console.warn=function(...i){t.warn(e(i))}}});var Z_=b(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.readdirGlob=qr.ReaddirGlob=void 0;var Fp=N("fs"),NL=N("events"),Cp=wn(),BL=N("path");function jL(t,e){return new Promise((n,r)=>{Fp.readdir(t,{withFileTypes:!0},(i,o)=>{if(i)switch(i.code){case"ENOTDIR":e?r(i):n([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":n([]);break;case"ELOOP":default:r(i);break}else n(o)})})}function K_(t,e){return new Promise(n=>{(e?Fp.stat:Fp.lstat)(t,(i,o)=>{if(i)switch(i.code){case"ENOENT":n(e?K_(t,!1):null);break;default:n(null);break}else n(o)})})}async function*Q_(t,e,n,r,i,o){var s;let a=await jL(e+t,o);for(let l of a){let u=l.name,c=t+"/"+u,f=c.slice(1),h=e+"/"+f,p=l;(r||n)&&(p=(s=await K_(h,n))!==null&&s!==void 0?s:p),p.isDirectory()?i(f)||(yield{relative:f,absolute:h,stat:p},yield*Q_(c,e,n,r,i,!1)):yield{relative:f,absolute:h,stat:p}}}async function*UL(t,e,n,r){yield*Q_("",t,e,n,r,!0)}function zL(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var cs=class extends NL.EventEmitter{constructor(e,n,r){if(super(),typeof n=="function"&&(r=n,n=void 0),this.options=zL(n||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(o=>new Cp.Minimatch(o,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(o=>new Cp.Minimatch(o,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(o=>new Cp.Minimatch(o,{dot:!0}))}if(this.iterator=UL((0,BL.resolve)(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,r){let i=r,o=[];this.on("match",s=>o.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>i(s)),this.on("end",()=>i(null,o))}setTimeout(()=>this._next())}_shouldSkipDirectory(e){return this.skipMatchers.some(n=>n.match(e))}_fileMatches(e,n){let r=e+(n?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(r)))&&!this.ignoreMatchers.some(i=>i.match(r))&&(!this.options.nodir||!n)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let n=e.value.stat.isDirectory();if(this._fileMatches(e.value.relative,n)){let r=e.value.relative,i=e.value.absolute;this.options.mark&&n&&(r+="/",i+="/"),this.options.stat?this.emit("match",{relative:r,absolute:i,stat:e.value.stat}):this.emit("match",{relative:r,absolute:i})}this._next()}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};qr.ReaddirGlob=cs;var WL=(t,e,n)=>new cs(t,e,n);qr.readdirGlob=WL;qr.readdirGlob.ReaddirGlob=cs});var X_=b((vne,J_)=>{"use strict";var $L=Z_();J_.exports=$L.readdirGlob});var ZD={};By(ZD,{all:()=>Bp,allLimit:()=>jp,allSeries:()=>Up,any:()=>Yp,anyLimit:()=>Kp,anySeries:()=>Qp,apply:()=>oD,applyEach:()=>fD,applyEachSeries:()=>hD,asyncify:()=>nu,auto:()=>Xp,autoInject:()=>pD,cargo:()=>dD,cargoQueue:()=>mD,compose:()=>gD,concat:()=>Ip,concatLimit:()=>ps,concatSeries:()=>Lp,constant:()=>yD,default:()=>KP,detect:()=>Pp,detectLimit:()=>qp,detectSeries:()=>Mp,dir:()=>wD,doDuring:()=>ru,doUntil:()=>_D,doWhilst:()=>ru,during:()=>lu,each:()=>Np,eachLimit:()=>iu,eachOf:()=>Rt,eachOfLimit:()=>hs,eachOfSeries:()=>Zt,eachSeries:()=>ou,ensureAsync:()=>nd,every:()=>Bp,everyLimit:()=>jp,everySeries:()=>Up,filter:()=>zp,filterLimit:()=>Wp,filterSeries:()=>$p,find:()=>Pp,findLimit:()=>qp,findSeries:()=>Mp,flatMap:()=>Ip,flatMapLimit:()=>ps,flatMapSeries:()=>Lp,foldl:()=>Li,foldr:()=>Gp,forEach:()=>Np,forEachLimit:()=>iu,forEachOf:()=>Rt,forEachOfLimit:()=>hs,forEachOfSeries:()=>Zt,forEachSeries:()=>ou,forever:()=>xD,groupBy:()=>vD,groupByLimit:()=>pu,groupBySeries:()=>SD,inject:()=>Li,log:()=>ED,map:()=>fu,mapLimit:()=>gs,mapSeries:()=>Jp,mapValues:()=>kD,mapValuesLimit:()=>du,mapValuesSeries:()=>TD,memoize:()=>AD,nextTick:()=>CD,parallel:()=>FD,parallelLimit:()=>RD,priorityQueue:()=>OD,queue:()=>id,race:()=>ID,reduce:()=>Li,reduceRight:()=>Gp,reflect:()=>su,reflectAll:()=>LD,reject:()=>PD,rejectLimit:()=>qD,rejectSeries:()=>MD,retry:()=>au,retryable:()=>jD,select:()=>zp,selectLimit:()=>Wp,selectSeries:()=>$p,seq:()=>td,series:()=>UD,setImmediate:()=>Gn,some:()=>Yp,someLimit:()=>Kp,someSeries:()=>Qp,sortBy:()=>zD,timeout:()=>WD,times:()=>$D,timesLimit:()=>mu,timesSeries:()=>HD,transform:()=>GD,tryEach:()=>VD,unmemoize:()=>YD,until:()=>KD,waterfall:()=>QD,whilst:()=>lu,wrapSync:()=>nu});function oD(t,...e){return(...n)=>t(...e,...n)}function ds(t){return function(...e){var n=e.pop();return t.call(this,e,n)}}function lD(t){setTimeout(t,0)}function uD(t){return(e,...n)=>t(()=>e(...n))}function nu(t){return ms(t)?function(...e){let n=e.pop(),r=t.apply(this,e);return eD(r,n)}:ds(function(e,n){var r;try{r=t.apply(this,e)}catch(i){return n(i)}if(r&&typeof r.then=="function")return eD(r,n);n(null,r)})}function eD(t,e){return t.then(n=>{tD(e,null,n)},n=>{tD(e,n&&(n instanceof Error||n.message)?n:new Error(n))})}function tD(t,e,n){try{t(e,n)}catch(r){Gn(i=>{throw i},r)}}function ms(t){return t[Symbol.toStringTag]==="AsyncFunction"}function GL(t){return t[Symbol.toStringTag]==="AsyncGenerator"}function VL(t){return typeof t[Symbol.asyncIterator]=="function"}function ee(t){if(typeof t!="function")throw new Error("expected a function");return ms(t)?nu(t):t}function X(t,e){if(e||(e=t.length),!e)throw new Error("arity is undefined");function n(...r){return typeof r[e-1]=="function"?t.apply(this,r):new Promise((i,o)=>{r[e-1]=(s,...a)=>{if(s)return o(s);i(a.length>1?a:a[0])},t.apply(this,r)})}return n}function cD(t){return function(n,...r){return X(function(o){var s=this;return t(n,(a,l)=>{ee(a).apply(s,r.concat(l))},o)})}}function Zp(t,e,n,r){e=e||[];var i=[],o=0,s=ee(n);return t(e,(a,l,u)=>{var c=o++;s(a,(f,h)=>{i[c]=h,u(f)})},a=>{r(a,i)})}function uu(t){return t&&typeof t.length=="number"&&t.length>=0&&t.length%1===0}function Vn(t){function e(...n){if(t!==null){var r=t;t=null,r.apply(this,n)}}return Object.assign(e,t),e}function YL(t){return t[Symbol.iterator]&&t[Symbol.iterator]()}function KL(t){var e=-1,n=t.length;return function(){return++e<n?{value:t[e],key:e}:null}}function QL(t){var e=-1;return function(){var r=t.next();return r.done?null:(e++,{value:r.value,key:e})}}function ZL(t){var e=t?Object.keys(t):[],n=-1,r=e.length;return function i(){var o=e[++n];return o==="__proto__"?i():n<r?{value:t[o],key:o}:null}}function JL(t){if(uu(t))return KL(t);var e=YL(t);return e?QL(e):ZL(t)}function Yn(t){return function(...e){if(t===null)throw new Error("Callback was already called.");var n=t;t=null,n.apply(this,e)}}function nD(t,e,n,r){let i=!1,o=!1,s=!1,a=0,l=0;function u(){a>=e||s||i||(s=!0,t.next().then(({value:h,done:p})=>{if(!(o||i)){if(s=!1,p){i=!0,a<=0&&r(null);return}a++,n(h,l,c),l++,u()}}).catch(f))}function c(h,p){if(a-=1,!o){if(h)return f(h);if(h===!1){i=!0,o=!0;return}if(p===cu||i&&a<=0)return i=!0,r(null);u()}}function f(h){o||(s=!1,i=!0,r(h))}u()}function XL(t,e,n,r){return zt(e)(t,ee(n),r)}function eP(t,e,n){n=Vn(n);var r=0,i=0,{length:o}=t,s=!1;o===0&&n(null);function a(l,u){l===!1&&(s=!0),s!==!0&&(l?n(l):(++i===o||u===cu)&&n(null))}for(;r<o;r++)e(t[r],r,Yn(a))}function tP(t,e,n){return hs(t,1/0,e,n)}function nP(t,e,n){var r=uu(t)?eP:tP;return r(t,ee(e),n)}function rP(t,e,n){return Zp(Rt,t,e,n)}function iP(t,e,n){return hs(t,1,e,n)}function oP(t,e,n){return Zp(Zt,t,e,n)}function Pi(){let t,e;function n(r,...i){if(r)return e(r);t(i.length>1?i:i[0])}return n[qi]=new Promise((r,i)=>{t=r,e=i}),n}function Xp(t,e,n){typeof e!="number"&&(n=e,e=null),n=Vn(n||Pi());var r=Object.keys(t).length;if(!r)return n(null);e||(e=r);var i={},o=0,s=!1,a=!1,l=Object.create(null),u=[],c=[],f={};Object.keys(t).forEach(d=>{var y=t[d];if(!Array.isArray(y)){h(d,[y]),c.push(d);return}var T=y.slice(0,y.length-1),x=T.length;if(x===0){h(d,y),c.push(d);return}f[d]=x,T.forEach(S=>{if(!t[S])throw new Error("async.auto task `"+d+"` has a non-existent dependency `"+S+"` in "+T.join(", "));w(S,()=>{x--,x===0&&h(d,y)})})}),g(),p();function h(d,y){u.push(()=>k(d,y))}function p(){if(!s){if(u.length===0&&o===0)return n(null,i);for(;u.length&&o<e;){var d=u.shift();d()}}}function w(d,y){var T=l[d];T||(T=l[d]=[]),T.push(y)}function D(d){var y=l[d]||[];y.forEach(T=>T()),p()}function k(d,y){if(!a){var T=Yn((S,...M)=>{if(o--,S===!1){s=!0;return}if(M.length<2&&([M]=M),S){var A={};if(Object.keys(i).forEach(F=>{A[F]=i[F]}),A[d]=M,a=!0,l=Object.create(null),s)return;n(S,A)}else i[d]=M,D(d)});o++;var x=ee(y[y.length-1]);y.length>1?x(i,T):x(T)}}function g(){for(var d,y=0;c.length;)d=c.pop(),y++,m(d).forEach(T=>{--f[T]===0&&c.push(T)});if(y!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function m(d){var y=[];return Object.keys(t).forEach(T=>{let x=t[T];Array.isArray(x)&&x.indexOf(d)>=0&&y.push(T)}),y}return n[qi]}function cP(t){let e="",n=0,r=t.indexOf("*/");for(;n<t.length;)if(t[n]==="/"&&t[n+1]==="/"){let i=t.indexOf(`
|
|
39
|
-
`,n);n=i===-1?t.length:i}else if(r!==-1&&t[n]==="/"&&t[n+1]==="*"){let i=t.indexOf("*/",n);i!==-1?(n=i+2,r=t.indexOf("*/",n)):(e+=t[n],n++)}else e+=t[n],n++;return e}function fP(t){let e=cP(t.toString()),n=e.match(sP);if(n||(n=e.match(aP)),!n)throw new Error(`could not parse args in autoInject
|
|
28
|
+
`),this.outputHelp({error:!0}));let r=n||{},i=r.exitCode||1,o=r.code||"commander.error";this._exit(i,o,t)}_parseOptionsEnv(){this.options.forEach(t=>{if(t.envVar&&t.envVar in ae.env){let n=t.attributeName();(this.getOptionValue(n)===void 0||["default","config","env"].includes(this.getOptionValueSource(n)))&&(t.required||t.optional?this.emit(`optionEnv:${t.name()}`,ae.env[t.envVar]):this.emit(`optionEnv:${t.name()}`))}})}_parseOptionsImplied(){let t=new H2(this.options),n=r=>this.getOptionValue(r)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(r));this.options.filter(r=>r.implied!==void 0&&n(r.attributeName())&&t.valueFromOption(this.getOptionValue(r.attributeName()),r)).forEach(r=>{Object.keys(r.implied).filter(i=>!n(i)).forEach(i=>{this.setOptionValueWithSource(i,r.implied[i],"implied")})})}missingArgument(t){let n=`error: missing required argument '${t}'`;this.error(n,{code:"commander.missingArgument"})}optionMissingArgument(t){let n=`error: option '${t.flags}' argument missing`;this.error(n,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(t){let n=`error: required option '${t.flags}' not specified`;this.error(n,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(t,n){let r=s=>{let a=s.attributeName(),u=this.getOptionValue(a),l=this.options.find(f=>f.negate&&a===f.attributeName()),c=this.options.find(f=>!f.negate&&a===f.attributeName());return l&&(l.presetArg===void 0&&u===!1||l.presetArg!==void 0&&u===l.presetArg)?l:c||s},i=s=>{let a=r(s),u=a.attributeName();return this.getOptionValueSource(u)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},o=`error: ${i(t)} cannot be used with ${i(n)}`;this.error(o,{code:"commander.conflictingOption"})}unknownOption(t){if(this._allowUnknownOption)return;let n="";if(t.startsWith("--")&&this._showSuggestionAfterError){let i=[],o=this;do{let s=o.createHelp().visibleOptions(o).filter(a=>a.long).map(a=>a.long);i=i.concat(s),o=o.parent}while(o&&!o._enablePositionalOptions);n=Xy(t,i)}let r=`error: unknown option '${t}'${n}`;this.error(r,{code:"commander.unknownOption"})}_excessArguments(t){if(this._allowExcessArguments)return;let n=this.registeredArguments.length,r=n===1?"":"s",o=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${n} argument${r} but got ${t.length}.`;this.error(o,{code:"commander.excessArguments"})}unknownCommand(){let t=this.args[0],n="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(o=>{i.push(o.name()),o.alias()&&i.push(o.alias())}),n=Xy(t,i)}let r=`error: unknown command '${t}'${n}`;this.error(r,{code:"commander.unknownCommand"})}version(t,n,r){if(t===void 0)return this._version;this._version=t,n=n||"-V, --version",r=r||"output the version number";let i=this.createOption(n,r);return this._versionOptionName=i.attributeName(),this._registerOption(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${t}
|
|
29
|
+
`),this._exit(0,"commander.version",t)}),this}description(t,n){return t===void 0&&n===void 0?this._description:(this._description=t,n&&(this._argsDescription=n),this)}summary(t){return t===void 0?this._summary:(this._summary=t,this)}alias(t){if(t===void 0)return this._aliases[0];let n=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(n=this.commands[this.commands.length-1]),t===n._name)throw new Error("Command alias can't be the same as its name");let r=this.parent?._findCommand(t);if(r){let i=[r.name()].concat(r.aliases()).join("|");throw new Error(`cannot add alias '${t}' to command '${this.name()}' as already have command '${i}'`)}return n._aliases.push(t),this}aliases(t){return t===void 0?this._aliases:(t.forEach(n=>this.alias(n)),this)}usage(t){if(t===void 0){if(this._usage)return this._usage;let n=this.registeredArguments.map(r=>z2(r));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?n:[]).join(" ")}return this._usage=t,this}name(t){return t===void 0?this._name:(this._name=t,this)}helpGroup(t){return t===void 0?this._helpGroupHeading??"":(this._helpGroupHeading=t,this)}commandsGroup(t){return t===void 0?this._defaultCommandGroup??"":(this._defaultCommandGroup=t,this)}optionsGroup(t){return t===void 0?this._defaultOptionGroup??"":(this._defaultOptionGroup=t,this)}_initOptionGroup(t){this._defaultOptionGroup&&!t.helpGroupHeading&&t.helpGroup(this._defaultOptionGroup)}_initCommandGroup(t){this._defaultCommandGroup&&!t.helpGroup()&&t.helpGroup(this._defaultCommandGroup)}nameFromFilename(t){return this._name=bn.basename(t,bn.extname(t)),this}executableDir(t){return t===void 0?this._executableDir:(this._executableDir=t,this)}helpInformation(t){let n=this.createHelp(),r=this._getOutputContext(t);n.prepareContext({error:r.error,helpWidth:r.helpWidth,outputHasColors:r.hasColors});let i=n.formatHelp(this,n);return r.hasColors?i:this._outputConfiguration.stripColor(i)}_getOutputContext(t){t=t||{};let n=!!t.error,r,i,o;return n?(r=a=>this._outputConfiguration.writeErr(a),i=this._outputConfiguration.getErrHasColors(),o=this._outputConfiguration.getErrHelpWidth()):(r=a=>this._outputConfiguration.writeOut(a),i=this._outputConfiguration.getOutHasColors(),o=this._outputConfiguration.getOutHelpWidth()),{error:n,write:a=>(i||(a=this._outputConfiguration.stripColor(a)),r(a)),hasColors:i,helpWidth:o}}outputHelp(t){let n;typeof t=="function"&&(n=t,t=void 0);let r=this._getOutputContext(t),i={error:r.error,write:r.write,command:this};this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let o=this.helpInformation({error:r.error});if(n&&(o=n(o),typeof o!="string"&&!Buffer.isBuffer(o)))throw new Error("outputHelp callback must return a string or a Buffer");r.write(o),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",i))}helpOption(t,n){return typeof t=="boolean"?(t?(this._helpOption===null&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(t??"-h, --help",n??"display help for command"),(t||n)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(t){return this._helpOption=t,this._initOptionGroup(t),this}help(t){this.outputHelp(t);let n=Number(ae.exitCode??0);n===0&&t&&typeof t!="function"&&t.error&&(n=1),this._exit(n,"commander.help","(outputHelp)")}addHelpText(t,n){let r=["beforeAll","before","after","afterAll"];if(!r.includes(t))throw new Error(`Unexpected value for position to addHelpText.
|
|
30
|
+
Expecting one of '${r.join("', '")}'`);let i=`${t}Help`;return this.on(i,o=>{let s;typeof n=="function"?s=n({error:o.error,command:o.command}):s=n,s&&o.write(`${s}
|
|
31
|
+
`)}),this}_outputHelpIfRequested(t){let n=this._getHelpOption();n&&t.find(i=>n.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function eb(e){return e.map(t=>{if(!t.startsWith("--inspect"))return t;let n,r="127.0.0.1",i="9229",o;return(o=t.match(/^(--inspect(-brk)?)$/))!==null?n=o[1]:(o=t.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(n=o[1],/^\d+$/.test(o[3])?i=o[3]:r=o[3]):(o=t.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(n=o[1],r=o[3],i=o[4]),n&&i!=="0"?`${n}=${r}:${parseInt(i)+1}`:t})}function Lf(){if(ae.env.NO_COLOR||ae.env.FORCE_COLOR==="0"||ae.env.FORCE_COLOR==="false")return!1;if(ae.env.FORCE_COLOR||ae.env.CLICOLOR_FORCE!==void 0)return!0}Pf.Command=If;Pf.useColor=Lf});var ob=w(xt=>{"use strict";var{Argument:nb}=Aa(),{Command:Bf}=tb(),{CommanderError:G2,InvalidArgumentError:rb}=Oo(),{Help:V2}=Ff(),{Option:ib}=Af();xt.program=new Bf;xt.createCommand=e=>new Bf(e);xt.createOption=(e,t)=>new ib(e,t);xt.createArgument=(e,t)=>new nb(e,t);xt.Command=Bf;xt.Option=ib;xt.Argument=nb;xt.Help=V2;xt.CommanderError=G2;xt.InvalidArgumentError=rb;xt.InvalidOptionArgumentError=rb});var bb=w((TG,yb)=>{"use strict";yb.exports=oR;function iR(e){let t={defaultWidth:0,output:process.stdout,tty:N("tty")};return e?(Object.keys(t).forEach(function(n){e[n]||(e[n]=t[n])}),e):t}function oR(e){let t=iR(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){let n=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(n)&&n!==0)return n}return t.defaultWidth}});var Pb=w((ZG,Lb)=>{"use strict";var DR=N("stream"),Gf=class extends DR{#t=null;constructor(t={}){super(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}#n(t,n){return this._dest?this._dest[t]:this._src?this._src[t]:n}#e(t,...n){typeof this._dest?.[t]=="function"&&this._dest[t](...n),typeof this._src?.[t]=="function"&&this._src[t](...n)}get isTTY(){return this.#t!==null?this.#t:this.#n("isTTY",!1)}set isTTY(t){this.#t=t}get rows(){return this.#n("rows")}get columns(){return this.#n("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(t){this._src=t}pipe(t,n){return this._dest=t,super.pipe(t,n)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.slice(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.slice(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)}end(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")}destroy(...t){return this.#e("destroy",...t)}destroySoon(...t){return this.#e("destroySoon",...t)}close(...t){return this.#e("close",...t)}};Lb.exports=Gf});var h0=w((JX,f0)=>{"use strict";var lu=Object.prototype.hasOwnProperty,c0=Object.prototype.toString,i0=Object.defineProperty,o0=Object.getOwnPropertyDescriptor,s0=function(t){return typeof Array.isArray=="function"?Array.isArray(t):c0.call(t)==="[object Array]"},a0=function(t){if(!t||c0.call(t)!=="[object Object]")return!1;var n=lu.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&lu.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||lu.call(t,i)},u0=function(t,n){i0&&n.name==="__proto__"?i0(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},l0=function(t,n){if(n==="__proto__")if(lu.call(t,n)){if(o0)return o0(t,n).value}else return;return t[n]};f0.exports=function e(){var t,n,r,i,o,s,a=arguments[0],u=1,l=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});u<l;++u)if(t=arguments[u],t!=null)for(n in t)r=l0(a,n),i=l0(t,n),a!==i&&(c&&i&&(a0(i)||(o=s0(i)))?(o?(o=!1,s=r&&s0(r)?r:[]):s=r&&a0(r)?r:{},u0(a,{name:n,newValue:e(c,s,i)})):typeof i<"u"&&u0(a,{name:n,newValue:i}));return a}});var mu=w(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.thenable=ke.typedArray=ke.stringArray=ke.array=ke.func=ke.error=ke.number=ke.string=ke.boolean=void 0;function jI(e){return e===!0||e===!1}ke.boolean=jI;function _0(e){return typeof e=="string"||e instanceof String}ke.string=_0;function UI(e){return typeof e=="number"||e instanceof Number}ke.number=UI;function zI(e){return e instanceof Error}ke.error=zI;function x0(e){return typeof e=="function"}ke.func=x0;function v0(e){return Array.isArray(e)}ke.array=v0;function WI(e){return v0(e)&&e.every(t=>_0(t))}ke.stringArray=WI;function $I(e,t){return Array.isArray(e)&&e.every(t)}ke.typedArray=$I;function HI(e){return e&&x0(e.then)}ke.thenable=HI});var Vh=w(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.generateUuid=St.parse=St.isUUID=St.v4=St.empty=void 0;var Qo=class{constructor(t){this._value=t}asHex(){return this._value}equals(t){return this.asHex()===t.asHex()}},Zo=class e extends Qo{static _oneOf(t){return t[Math.floor(t.length*Math.random())]}static _randomHex(){return e._oneOf(e._chars)}constructor(){super([e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),"-","4",e._randomHex(),e._randomHex(),e._randomHex(),"-",e._oneOf(e._timeHighBits),e._randomHex(),e._randomHex(),e._randomHex(),"-",e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex(),e._randomHex()].join(""))}};Zo._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Zo._timeHighBits=["8","9","a","b"];St.empty=new Qo("00000000-0000-0000-0000-000000000000");function E0(){return new Zo}St.v4=E0;var GI=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function S0(e){return GI.test(e)}St.isUUID=S0;function VI(e){if(!S0(e))throw new Error("invalid uuid");return new Qo(e)}St.parse=VI;function KI(){return E0().asHex()}St.generateUuid=KI});var F0=w(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.attachPartialResult=zn.ProgressFeature=zn.attachWorkDone=void 0;var Un=Ce(),YI=Vh(),Or=class e{constructor(t,n){this._connection=t,this._token=n,e.Instances.set(this._token,this)}begin(t,n,r,i){let o={kind:"begin",title:t,percentage:n,message:r,cancellable:i};this._connection.sendProgress(Un.WorkDoneProgress.type,this._token,o)}report(t,n){let r={kind:"report"};typeof t=="number"?(r.percentage=t,n!==void 0&&(r.message=n)):r.message=t,this._connection.sendProgress(Un.WorkDoneProgress.type,this._token,r)}done(){e.Instances.delete(this._token),this._connection.sendProgress(Un.WorkDoneProgress.type,this._token,{kind:"end"})}};Or.Instances=new Map;var gu=class extends Or{constructor(t,n){super(t,n),this._source=new Un.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Jo=class{constructor(){}begin(){}report(){}done(){}},yu=class extends Jo{constructor(){super(),this._source=new Un.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function QI(e,t){if(t===void 0||t.workDoneToken===void 0)return new Jo;let n=t.workDoneToken;return delete t.workDoneToken,new Or(e,n)}zn.attachWorkDone=QI;var ZI=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(t){super.initialize(t),t?.window?.workDoneProgress===!0&&(this._progressSupported=!0,this.connection.onNotification(Un.WorkDoneProgressCancelNotification.type,n=>{let r=Or.Instances.get(n.token);(r instanceof gu||r instanceof yu)&&r.cancel()}))}attachWorkDoneProgress(t){return t===void 0?new Jo:new Or(this.connection,t)}createWorkDoneProgress(){if(this._progressSupported){let t=(0,YI.generateUuid)();return this.connection.sendRequest(Un.WorkDoneProgressCreateRequest.type,{token:t}).then(()=>new gu(this.connection,t))}else return Promise.resolve(new yu)}};zn.ProgressFeature=ZI;var Kh;(function(e){e.type=new Un.ProgressType})(Kh||(Kh={}));var Yh=class{constructor(t,n){this._connection=t,this._token=n}report(t){this._connection.sendProgress(Kh.type,this._token,t)}};function JI(e,t){if(t===void 0||t.partialResultToken===void 0)return;let n=t.partialResultToken;return delete t.partialResultToken,new Yh(e,n)}zn.attachPartialResult=JI});var k0=w(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.ConfigurationFeature=void 0;var XI=Ce(),eL=mu(),tL=e=>class extends e{getConfiguration(t){return t?eL.string(t)?this._getConfiguration({section:t}):this._getConfiguration(t):this._getConfiguration({})}_getConfiguration(t){let n={items:Array.isArray(t)?t:[t]};return this.connection.sendRequest(XI.ConfigurationRequest.type,n).then(r=>Array.isArray(r)?Array.isArray(t)?r:r[0]:Array.isArray(t)?[]:null)}};bu.ConfigurationFeature=tL});var T0=w(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.WorkspaceFoldersFeature=void 0;var Du=Ce(),nL=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(t){super.initialize(t);let n=t.workspace;n&&n.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new Du.Emitter,this.connection.onNotification(Du.DidChangeWorkspaceFoldersNotification.type,r=>{this._onDidChangeWorkspaceFolders.fire(r.event)}))}fillServerCapabilities(t){super.fillServerCapabilities(t);let n=t.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=n===!0||typeof n=="string"}getWorkspaceFolders(){return this.connection.sendRequest(Du.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return!this._notificationIsAutoRegistered&&!this._unregistration&&(this._unregistration=this.connection.client.register(Du.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};wu.WorkspaceFoldersFeature=nL});var C0=w(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.CallHierarchyFeature=void 0;var Qh=Ce(),rL=e=>class extends e{get callHierarchy(){return{onPrepare:t=>this.connection.onRequest(Qh.CallHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onIncomingCalls:t=>{let n=Qh.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onOutgoingCalls:t=>{let n=Qh.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};_u.CallHierarchyFeature=rL});var Jh=w(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.SemanticTokensBuilder=Wn.SemanticTokensDiff=Wn.SemanticTokensFeature=void 0;var xu=Ce(),iL=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(xu.SemanticTokensRefreshRequest.type),on:t=>{let n=xu.SemanticTokensRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onDelta:t=>{let n=xu.SemanticTokensDeltaRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onRange:t=>{let n=xu.SemanticTokensRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Wn.SemanticTokensFeature=iL;var vu=class{constructor(t,n){this.originalSequence=t,this.modifiedSequence=n}computeDiff(){let t=this.originalSequence.length,n=this.modifiedSequence.length,r=0;for(;r<n&&r<t&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<n&&r<t){let i=t-1,o=n-1;for(;i>=r&&o>=r&&this.originalSequence[i]===this.modifiedSequence[o];)i--,o--;(i<r||o<r)&&(i++,o++);let s=i-r+1,a=this.modifiedSequence.slice(r,o+1);return a.length===1&&a[0]===this.originalSequence[i]?[{start:r,deleteCount:s-1}]:[{start:r,deleteCount:s,data:a}]}else return r<n?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<t?[{start:r,deleteCount:t-r}]:[]}};Wn.SemanticTokensDiff=vu;var Zh=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(t,n,r,i,o){let s=t,a=n;this._dataLen>0&&(s-=this._prevLine,s===0&&(a-=this._prevChar)),this._data[this._dataLen++]=s,this._data[this._dataLen++]=a,this._data[this._dataLen++]=r,this._data[this._dataLen++]=i,this._data[this._dataLen++]=o,this._prevLine=t,this._prevChar=n}get id(){return this._id.toString()}previousResult(t){this.id===t&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){return this._prevData!==void 0?{resultId:this.id,edits:new vu(this._prevData,this._data).computeDiff()}:this.build()}};Wn.SemanticTokensBuilder=Zh});var A0=w(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.ShowDocumentFeature=void 0;var oL=Ce(),sL=e=>class extends e{showDocument(t){return this.connection.sendRequest(oL.ShowDocumentRequest.type,t)}};Eu.ShowDocumentFeature=sL});var R0=w(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.FileOperationsFeature=void 0;var Ei=Ce(),aL=e=>class extends e{onDidCreateFiles(t){return this.connection.onNotification(Ei.DidCreateFilesNotification.type,n=>{t(n)})}onDidRenameFiles(t){return this.connection.onNotification(Ei.DidRenameFilesNotification.type,n=>{t(n)})}onDidDeleteFiles(t){return this.connection.onNotification(Ei.DidDeleteFilesNotification.type,n=>{t(n)})}onWillCreateFiles(t){return this.connection.onRequest(Ei.WillCreateFilesRequest.type,(n,r)=>t(n,r))}onWillRenameFiles(t){return this.connection.onRequest(Ei.WillRenameFilesRequest.type,(n,r)=>t(n,r))}onWillDeleteFiles(t){return this.connection.onRequest(Ei.WillDeleteFilesRequest.type,(n,r)=>t(n,r))}};Su.FileOperationsFeature=aL});var O0=w(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.LinkedEditingRangeFeature=void 0;var uL=Ce(),lL=e=>class extends e{onLinkedEditingRange(t){return this.connection.onRequest(uL.LinkedEditingRangeRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0))}};Fu.LinkedEditingRangeFeature=lL});var I0=w(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.TypeHierarchyFeature=void 0;var Xh=Ce(),cL=e=>class extends e{get typeHierarchy(){return{onPrepare:t=>this.connection.onRequest(Xh.TypeHierarchyPrepareRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),void 0)),onSupertypes:t=>{let n=Xh.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))},onSubtypes:t=>{let n=Xh.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};ku.TypeHierarchyFeature=cL});var P0=w(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.InlineValueFeature=void 0;var L0=Ce(),fL=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(L0.InlineValueRefreshRequest.type),on:t=>this.connection.onRequest(L0.InlineValueRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Tu.InlineValueFeature=fL});var q0=w(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.FoldingRangeFeature=void 0;var B0=Ce(),hL=e=>class extends e{get foldingRange(){return{refresh:()=>this.connection.sendRequest(B0.FoldingRangeRefreshRequest.type),on:t=>{let n=B0.FoldingRangeRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Cu.FoldingRangeFeature=hL});var N0=w(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.InlayHintFeature=void 0;var ep=Ce(),pL=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(ep.InlayHintRefreshRequest.type),on:t=>this.connection.onRequest(ep.InlayHintRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n))),resolve:t=>this.connection.onRequest(ep.InlayHintResolveRequest.type,(n,r)=>t(n,r))}}};Au.InlayHintFeature=pL});var M0=w(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.DiagnosticFeature=void 0;var Xo=Ce(),dL=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Xo.DiagnosticRefreshRequest.type),on:t=>this.connection.onRequest(Xo.DocumentDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Xo.DocumentDiagnosticRequest.partialResult,n))),onWorkspace:t=>this.connection.onRequest(Xo.WorkspaceDiagnosticRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(Xo.WorkspaceDiagnosticRequest.partialResult,n)))}}};Ru.DiagnosticFeature=dL});var np=w(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.TextDocuments=void 0;var Ir=Ce(),tp=class{constructor(t){this._configuration=t,this._syncedDocuments=new Map,this._onDidChangeContent=new Ir.Emitter,this._onDidOpen=new Ir.Emitter,this._onDidClose=new Ir.Emitter,this._onDidSave=new Ir.Emitter,this._onWillSave=new Ir.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(t){this._willSaveWaitUntil=t}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(t){return this._syncedDocuments.get(t)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(t){t.__textDocumentSync=Ir.TextDocumentSyncKind.Incremental;let n=[];return n.push(t.onDidOpenTextDocument(r=>{let i=r.textDocument,o=this._configuration.create(i.uri,i.languageId,i.version,i.text);this._syncedDocuments.set(i.uri,o);let s=Object.freeze({document:o});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)})),n.push(t.onDidChangeTextDocument(r=>{let i=r.textDocument,o=r.contentChanges;if(o.length===0)return;let{version:s}=i;if(s==null)throw new Error(`Received document change event for ${i.uri} without valid version identifier`);let a=this._syncedDocuments.get(i.uri);a!==void 0&&(a=this._configuration.update(a,o,s),this._syncedDocuments.set(i.uri,a),this._onDidChangeContent.fire(Object.freeze({document:a})))})),n.push(t.onDidCloseTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&(this._syncedDocuments.delete(r.textDocument.uri),this._onDidClose.fire(Object.freeze({document:i})))})),n.push(t.onWillSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onWillSave.fire(Object.freeze({document:i,reason:r.reason}))})),n.push(t.onWillSaveTextDocumentWaitUntil((r,i)=>{let o=this._syncedDocuments.get(r.textDocument.uri);return o!==void 0&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:o,reason:r.reason}),i):[]})),n.push(t.onDidSaveTextDocument(r=>{let i=this._syncedDocuments.get(r.textDocument.uri);i!==void 0&&this._onDidSave.fire(Object.freeze({document:i}))})),Ir.Disposable.create(()=>{n.forEach(r=>r.dispose())})}};Ou.TextDocuments=tp});var ip=w(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.NotebookDocuments=Si.NotebookSyncFeature=void 0;var Ft=Ce(),j0=np(),mL=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:t=>this.connection.onNotification(Ft.DidOpenNotebookDocumentNotification.type,n=>{t(n)}),onDidChangeNotebookDocument:t=>this.connection.onNotification(Ft.DidChangeNotebookDocumentNotification.type,n=>{t(n)}),onDidSaveNotebookDocument:t=>this.connection.onNotification(Ft.DidSaveNotebookDocumentNotification.type,n=>{t(n)}),onDidCloseNotebookDocument:t=>this.connection.onNotification(Ft.DidCloseNotebookDocumentNotification.type,n=>{t(n)})}}};Si.NotebookSyncFeature=mL;var Iu=class e{onDidOpenTextDocument(t){return this.openHandler=t,Ft.Disposable.create(()=>{this.openHandler=void 0})}openTextDocument(t){this.openHandler&&this.openHandler(t)}onDidChangeTextDocument(t){return this.changeHandler=t,Ft.Disposable.create(()=>{this.changeHandler=t})}changeTextDocument(t){this.changeHandler&&this.changeHandler(t)}onDidCloseTextDocument(t){return this.closeHandler=t,Ft.Disposable.create(()=>{this.closeHandler=void 0})}closeTextDocument(t){this.closeHandler&&this.closeHandler(t)}onWillSaveTextDocument(){return e.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return e.NULL_DISPOSE}onDidSaveTextDocument(){return e.NULL_DISPOSE}};Iu.NULL_DISPOSE=Object.freeze({dispose:()=>{}});var rp=class{constructor(t){t instanceof j0.TextDocuments?this._cellTextDocuments=t:this._cellTextDocuments=new j0.TextDocuments(t),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new Ft.Emitter,this._onDidChange=new Ft.Emitter,this._onDidSave=new Ft.Emitter,this._onDidClose=new Ft.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(t){return this._cellTextDocuments.get(t.document)}getNotebookDocument(t){return this.notebookDocuments.get(t)}getNotebookCell(t){let n=this.notebookCellMap.get(t);return n&&n[0]}findNotebookDocumentForCell(t){let n=typeof t=="string"?t:t.document,r=this.notebookCellMap.get(n);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(t){let n=new Iu,r=[];return r.push(this.cellTextDocuments.listen(n)),r.push(t.notebooks.synchronization.onDidOpenNotebookDocument(i=>{this.notebookDocuments.set(i.notebookDocument.uri,i.notebookDocument);for(let o of i.cellTextDocuments)n.openTextDocument({textDocument:o});this.updateCellMap(i.notebookDocument),this._onDidOpen.fire(i.notebookDocument)})),r.push(t.notebooks.synchronization.onDidChangeNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o===void 0)return;o.version=i.notebookDocument.version;let s=o.metadata,a=!1,u=i.change;u.metadata!==void 0&&(a=!0,o.metadata=u.metadata);let l=[],c=[],f=[],h=[];if(u.cells!==void 0){let g=u.cells;if(g.structure!==void 0){let m=g.structure.array;if(o.cells.splice(m.start,m.deleteCount,...m.cells!==void 0?m.cells:[]),g.structure.didOpen!==void 0)for(let d of g.structure.didOpen)n.openTextDocument({textDocument:d}),l.push(d.uri);if(g.structure.didClose)for(let d of g.structure.didClose)n.closeTextDocument({textDocument:d}),c.push(d.uri)}if(g.data!==void 0){let m=new Map(g.data.map(d=>[d.document,d]));for(let d=0;d<=o.cells.length;d++){let y=m.get(o.cells[d].document);if(y!==void 0){let k=o.cells.splice(d,1,y);if(f.push({old:k[0],new:y}),m.delete(y.document),m.size===0)break}}}if(g.textContent!==void 0)for(let m of g.textContent)n.changeTextDocument({textDocument:m.document,contentChanges:m.changes}),h.push(m.document.uri)}this.updateCellMap(o);let p={notebookDocument:o};a&&(p.metadata={old:s,new:o.metadata});let b=[];for(let g of l)b.push(this.getNotebookCell(g));let D=[];for(let g of c)D.push(this.getNotebookCell(g));let F=[];for(let g of h)F.push(this.getNotebookCell(g));(b.length>0||D.length>0||f.length>0||F.length>0)&&(p.cells={added:b,removed:D,changed:{data:f,textContent:F}}),(p.metadata!==void 0||p.cells!==void 0)&&this._onDidChange.fire(p)})),r.push(t.notebooks.synchronization.onDidSaveNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);o!==void 0&&this._onDidSave.fire(o)})),r.push(t.notebooks.synchronization.onDidCloseNotebookDocument(i=>{let o=this.notebookDocuments.get(i.notebookDocument.uri);if(o!==void 0){this._onDidClose.fire(o);for(let s of i.cellTextDocuments)n.closeTextDocument({textDocument:s});this.notebookDocuments.delete(i.notebookDocument.uri);for(let s of o.cells)this.notebookCellMap.delete(s.document)}})),Ft.Disposable.create(()=>{r.forEach(i=>i.dispose())})}updateCellMap(t){for(let n of t.cells)this.notebookCellMap.set(n.document,[n,t])}};Si.NotebookDocuments=rp});var U0=w(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.MonikerFeature=void 0;var gL=Ce(),yL=e=>class extends e{get moniker(){return{on:t=>{let n=gL.MonikerRequest.type;return this.connection.onRequest(n,(r,i)=>t(r,i,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(n,r)))}}}};Lu.MonikerFeature=yL});var cp=w(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.createConnection=oe.combineFeatures=oe.combineNotebooksFeatures=oe.combineLanguagesFeatures=oe.combineWorkspaceFeatures=oe.combineWindowFeatures=oe.combineClientFeatures=oe.combineTracerFeatures=oe.combineTelemetryFeatures=oe.combineConsoleFeatures=oe._NotebooksImpl=oe._LanguagesImpl=oe.BulkUnregistration=oe.BulkRegistration=oe.ErrorMessageTracker=void 0;var B=Ce(),kt=mu(),sp=Vh(),H=F0(),bL=k0(),DL=T0(),wL=C0(),_L=Jh(),xL=A0(),vL=R0(),EL=O0(),SL=I0(),FL=P0(),kL=q0(),TL=N0(),CL=M0(),AL=ip(),RL=U0();function op(e){if(e!==null)return e}var ap=class{constructor(){this._messages=Object.create(null)}add(t){let n=this._messages[t];n||(n=0),n++,this._messages[t]=n}sendErrors(t){Object.keys(this._messages).forEach(n=>{t.window.showErrorMessage(n)})}};oe.ErrorMessageTracker=ap;var Pu=class{constructor(){}rawAttach(t){this._rawConnection=t}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(t){}initialize(t){}error(t){this.send(B.MessageType.Error,t)}warn(t){this.send(B.MessageType.Warning,t)}info(t){this.send(B.MessageType.Info,t)}log(t){this.send(B.MessageType.Log,t)}debug(t){this.send(B.MessageType.Debug,t)}send(t,n){this._rawConnection&&this._rawConnection.sendNotification(B.LogMessageNotification.type,{type:t,message:n}).catch(()=>{(0,B.RAL)().console.error("Sending log message failed")})}},up=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}showErrorMessage(t,...n){let r={type:B.MessageType.Error,message:t,actions:n};return this.connection.sendRequest(B.ShowMessageRequest.type,r).then(op)}showWarningMessage(t,...n){let r={type:B.MessageType.Warning,message:t,actions:n};return this.connection.sendRequest(B.ShowMessageRequest.type,r).then(op)}showInformationMessage(t,...n){let r={type:B.MessageType.Info,message:t,actions:n};return this.connection.sendRequest(B.ShowMessageRequest.type,r).then(op)}},z0=(0,xL.ShowDocumentFeature)((0,H.ProgressFeature)(up)),W0;(function(e){function t(){return new Bu}e.create=t})(W0||(oe.BulkRegistration=W0={}));var Bu=class{constructor(){this._registrations=[],this._registered=new Set}add(t,n){let r=kt.string(t)?t:t.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);let i=sp.generateUuid();this._registrations.push({id:i,method:r,registerOptions:n||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}},$0;(function(e){function t(){return new es(void 0,[])}e.create=t})($0||(oe.BulkUnregistration=$0={}));var es=class{constructor(t,n){this._connection=t,this._unregistrations=new Map,n.forEach(r=>{this._unregistrations.set(r.method,r)})}get isAttached(){return!!this._connection}attach(t){this._connection=t}add(t){this._unregistrations.set(t.method,t)}dispose(){let t=[];for(let r of this._unregistrations.values())t.push(r);let n={unregisterations:t};this._connection.sendRequest(B.UnregistrationRequest.type,n).catch(()=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(t){let n=kt.string(t)?t:t.method,r=this._unregistrations.get(n);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(B.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(n)},o=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)}),!0}},qu=class{attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}register(t,n,r){return t instanceof Bu?this.registerMany(t):t instanceof es?this.registerSingle1(t,n,r):this.registerSingle2(t,n)}registerSingle1(t,n,r){let i=kt.string(n)?n:n.method,o=sp.generateUuid(),s={registrations:[{id:o,method:i,registerOptions:r||{}}]};return t.isAttached||t.attach(this.connection),this.connection.sendRequest(B.RegistrationRequest.type,s).then(a=>(t.add({id:o,method:i}),t),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(t,n){let r=kt.string(t)?t:t.method,i=sp.generateUuid(),o={registrations:[{id:i,method:r,registerOptions:n||{}}]};return this.connection.sendRequest(B.RegistrationRequest.type,o).then(s=>B.Disposable.create(()=>{this.unregisterSingle(i,r).catch(()=>{this.connection.console.info(`Un-registering capability with id ${i} failed.`)})}),s=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(s)))}unregisterSingle(t,n){let r={unregisterations:[{id:t,method:n}]};return this.connection.sendRequest(B.UnregistrationRequest.type,r).catch(()=>{this.connection.console.info(`Un-registering request handler for ${t} failed.`)})}registerMany(t){let n=t.asRegistrationParams();return this.connection.sendRequest(B.RegistrationRequest.type,n).then(()=>new es(this._connection,n.registrations.map(r=>({id:r.id,method:r.method}))),r=>(this.connection.console.info("Bulk registration failed."),Promise.reject(r)))}},lp=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}applyEdit(t){function n(i){return i&&!!i.edit}let r=n(t)?t:{edit:t};return this.connection.sendRequest(B.ApplyWorkspaceEditRequest.type,r)}},H0=(0,vL.FileOperationsFeature)((0,DL.WorkspaceFoldersFeature)((0,bL.ConfigurationFeature)(lp))),Nu=class{constructor(){this._trace=B.Trace.Off}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}set trace(t){this._trace=t}log(t,n){this._trace!==B.Trace.Off&&this.connection.sendNotification(B.LogTraceNotification.type,{message:t,verbose:this._trace===B.Trace.Verbose?n:void 0}).catch(()=>{})}},Mu=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}logEvent(t){this.connection.sendNotification(B.TelemetryEventNotification.type,t).catch(()=>{this.connection.console.log("Sending TelemetryEventNotification failed")})}},ju=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,H.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,H.attachPartialResult)(this.connection,n)}};oe._LanguagesImpl=ju;var G0=(0,kL.FoldingRangeFeature)((0,RL.MonikerFeature)((0,CL.DiagnosticFeature)((0,TL.InlayHintFeature)((0,FL.InlineValueFeature)((0,SL.TypeHierarchyFeature)((0,EL.LinkedEditingRangeFeature)((0,_L.SemanticTokensFeature)((0,wL.CallHierarchyFeature)(ju))))))))),Uu=class{constructor(){}attach(t){this._connection=t}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(t){}fillServerCapabilities(t){}attachWorkDoneProgress(t){return(0,H.attachWorkDone)(this.connection,t)}attachPartialResultProgress(t,n){return(0,H.attachPartialResult)(this.connection,n)}};oe._NotebooksImpl=Uu;var V0=(0,AL.NotebookSyncFeature)(Uu);function K0(e,t){return function(n){return t(e(n))}}oe.combineConsoleFeatures=K0;function Y0(e,t){return function(n){return t(e(n))}}oe.combineTelemetryFeatures=Y0;function Q0(e,t){return function(n){return t(e(n))}}oe.combineTracerFeatures=Q0;function Z0(e,t){return function(n){return t(e(n))}}oe.combineClientFeatures=Z0;function J0(e,t){return function(n){return t(e(n))}}oe.combineWindowFeatures=J0;function X0(e,t){return function(n){return t(e(n))}}oe.combineWorkspaceFeatures=X0;function ew(e,t){return function(n){return t(e(n))}}oe.combineLanguagesFeatures=ew;function tw(e,t){return function(n){return t(e(n))}}oe.combineNotebooksFeatures=tw;function OL(e,t){function n(i,o,s){return i&&o?s(i,o):i||o}return{__brand:"features",console:n(e.console,t.console,K0),tracer:n(e.tracer,t.tracer,Q0),telemetry:n(e.telemetry,t.telemetry,Y0),client:n(e.client,t.client,Z0),window:n(e.window,t.window,J0),workspace:n(e.workspace,t.workspace,X0),languages:n(e.languages,t.languages,ew),notebooks:n(e.notebooks,t.notebooks,tw)}}oe.combineFeatures=OL;function IL(e,t,n){let r=n&&n.console?new(n.console(Pu)):new Pu,i=e(r);r.rawAttach(i);let o=n&&n.tracer?new(n.tracer(Nu)):new Nu,s=n&&n.telemetry?new(n.telemetry(Mu)):new Mu,a=n&&n.client?new(n.client(qu)):new qu,u=n&&n.window?new(n.window(z0)):new z0,l=n&&n.workspace?new(n.workspace(H0)):new H0,c=n&&n.languages?new(n.languages(G0)):new G0,f=n&&n.notebooks?new(n.notebooks(V0)):new V0,h=[r,o,s,a,u,l,c,f];function p(m){return m instanceof Promise?m:kt.thenable(m)?new Promise((d,y)=>{m.then(k=>d(k),k=>y(k))}):Promise.resolve(m)}let b,D,F,g={listen:()=>i.listen(),sendRequest:(m,...d)=>i.sendRequest(kt.string(m)?m:m.method,...d),onRequest:(m,d)=>i.onRequest(m,d),sendNotification:(m,d)=>{let y=kt.string(m)?m:m.method;return i.sendNotification(y,d)},onNotification:(m,d)=>i.onNotification(m,d),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:m=>(D=m,{dispose:()=>{D=void 0}}),onInitialized:m=>i.onNotification(B.InitializedNotification.type,m),onShutdown:m=>(b=m,{dispose:()=>{b=void 0}}),onExit:m=>(F=m,{dispose:()=>{F=void 0}}),get console(){return r},get telemetry(){return s},get tracer(){return o},get client(){return a},get window(){return u},get workspace(){return l},get languages(){return c},get notebooks(){return f},onDidChangeConfiguration:m=>i.onNotification(B.DidChangeConfigurationNotification.type,m),onDidChangeWatchedFiles:m=>i.onNotification(B.DidChangeWatchedFilesNotification.type,m),__textDocumentSync:void 0,onDidOpenTextDocument:m=>i.onNotification(B.DidOpenTextDocumentNotification.type,m),onDidChangeTextDocument:m=>i.onNotification(B.DidChangeTextDocumentNotification.type,m),onDidCloseTextDocument:m=>i.onNotification(B.DidCloseTextDocumentNotification.type,m),onWillSaveTextDocument:m=>i.onNotification(B.WillSaveTextDocumentNotification.type,m),onWillSaveTextDocumentWaitUntil:m=>i.onRequest(B.WillSaveTextDocumentWaitUntilRequest.type,m),onDidSaveTextDocument:m=>i.onNotification(B.DidSaveTextDocumentNotification.type,m),sendDiagnostics:m=>i.sendNotification(B.PublishDiagnosticsNotification.type,m),onHover:m=>i.onRequest(B.HoverRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),void 0)),onCompletion:m=>i.onRequest(B.CompletionRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onCompletionResolve:m=>i.onRequest(B.CompletionResolveRequest.type,m),onSignatureHelp:m=>i.onRequest(B.SignatureHelpRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),void 0)),onDeclaration:m=>i.onRequest(B.DeclarationRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onDefinition:m=>i.onRequest(B.DefinitionRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onTypeDefinition:m=>i.onRequest(B.TypeDefinitionRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onImplementation:m=>i.onRequest(B.ImplementationRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onReferences:m=>i.onRequest(B.ReferencesRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onDocumentHighlight:m=>i.onRequest(B.DocumentHighlightRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onDocumentSymbol:m=>i.onRequest(B.DocumentSymbolRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onWorkspaceSymbol:m=>i.onRequest(B.WorkspaceSymbolRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onWorkspaceSymbolResolve:m=>i.onRequest(B.WorkspaceSymbolResolveRequest.type,m),onCodeAction:m=>i.onRequest(B.CodeActionRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onCodeActionResolve:m=>i.onRequest(B.CodeActionResolveRequest.type,(d,y)=>m(d,y)),onCodeLens:m=>i.onRequest(B.CodeLensRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onCodeLensResolve:m=>i.onRequest(B.CodeLensResolveRequest.type,(d,y)=>m(d,y)),onDocumentFormatting:m=>i.onRequest(B.DocumentFormattingRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),void 0)),onDocumentRangeFormatting:m=>i.onRequest(B.DocumentRangeFormattingRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),void 0)),onDocumentOnTypeFormatting:m=>i.onRequest(B.DocumentOnTypeFormattingRequest.type,(d,y)=>m(d,y)),onRenameRequest:m=>i.onRequest(B.RenameRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),void 0)),onPrepareRename:m=>i.onRequest(B.PrepareRenameRequest.type,(d,y)=>m(d,y)),onDocumentLinks:m=>i.onRequest(B.DocumentLinkRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onDocumentLinkResolve:m=>i.onRequest(B.DocumentLinkResolveRequest.type,(d,y)=>m(d,y)),onDocumentColor:m=>i.onRequest(B.DocumentColorRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onColorPresentation:m=>i.onRequest(B.ColorPresentationRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onFoldingRanges:m=>i.onRequest(B.FoldingRangeRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onSelectionRanges:m=>i.onRequest(B.SelectionRangeRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),(0,H.attachPartialResult)(i,d))),onExecuteCommand:m=>i.onRequest(B.ExecuteCommandRequest.type,(d,y)=>m(d,y,(0,H.attachWorkDone)(i,d),void 0)),dispose:()=>i.dispose()};for(let m of h)m.attach(g);return i.onRequest(B.InitializeRequest.type,m=>{t.initialize(m),kt.string(m.trace)&&(o.trace=B.Trace.fromString(m.trace));for(let d of h)d.initialize(m.capabilities);if(D){let d=D(m,new B.CancellationTokenSource().token,(0,H.attachWorkDone)(i,m),void 0);return p(d).then(y=>{if(y instanceof B.ResponseError)return y;let k=y;k||(k={capabilities:{}});let E=k.capabilities;E||(E={},k.capabilities=E),E.textDocumentSync===void 0||E.textDocumentSync===null?E.textDocumentSync=kt.number(g.__textDocumentSync)?g.__textDocumentSync:B.TextDocumentSyncKind.None:!kt.number(E.textDocumentSync)&&!kt.number(E.textDocumentSync.change)&&(E.textDocumentSync.change=kt.number(g.__textDocumentSync)?g.__textDocumentSync:B.TextDocumentSyncKind.None);for(let v of h)v.fillServerCapabilities(E);return k})}else{let d={capabilities:{textDocumentSync:B.TextDocumentSyncKind.None}};for(let y of h)y.fillServerCapabilities(d.capabilities);return d}}),i.onRequest(B.ShutdownRequest.type,()=>{if(t.shutdownReceived=!0,b)return b(new B.CancellationTokenSource().token)}),i.onNotification(B.ExitNotification.type,()=>{try{F&&F()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}}),i.onNotification(B.SetTraceNotification.type,m=>{o.trace=B.Trace.fromString(m.value)}),g}oe.createConnection=IL});var nw=w(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.resolveModulePath=at.FileSystem=at.resolveGlobalYarnPath=at.resolveGlobalNodePath=at.resolve=at.uriToFilePath=void 0;var LL=N("url"),jt=N("path"),fp=N("fs"),mp=N("child_process");function PL(e){let t=LL.parse(e);if(t.protocol!=="file:"||!t.path)return;let n=t.path.split("/");for(var r=0,i=n.length;r<i;r++)n[r]=decodeURIComponent(n[r]);if(process.platform==="win32"&&n.length>1){let o=n[0],s=n[1];o.length===0&&s.length>1&&s[1]===":"&&n.shift()}return jt.normalize(n.join("/"))}at.uriToFilePath=PL;function hp(){return process.platform==="win32"}function zu(e,t,n,r){let i="NODE_PATH",o=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((s,a)=>{let u=process.env,l=Object.create(null);Object.keys(u).forEach(c=>l[c]=u[c]),t&&fp.existsSync(t)&&(l[i]?l[i]=t+jt.delimiter+l[i]:l[i]=t,r&&r(`NODE_PATH value is: ${l[i]}`)),l.ELECTRON_RUN_AS_NODE="1";try{let c=(0,mp.fork)("",[],{cwd:n,env:l,execArgv:["-e",o]});if(c.pid===void 0){a(new Error(`Starting process to resolve node module ${e} failed`));return}c.on("error",h=>{a(h)}),c.on("message",h=>{h.c==="r"&&(c.send({c:"e"}),h.s?s(h.r):a(new Error(`Failed to resolve module: ${e}`)))});let f={c:"rs",a:e};c.send(f)}catch(c){a(c)}})}at.resolve=zu;function pp(e){let t="npm",n=Object.create(null);Object.keys(process.env).forEach(o=>n[o]=process.env[o]),n.NO_UPDATE_NOTIFIER="true";let r={encoding:"utf8",env:n};hp()&&(t="npm.cmd",r.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let o=(0,mp.spawnSync)(t,["config","get","prefix"],r).stdout;if(!o){e&&e("'npm config get prefix' didn't return a value.");return}let s=o.trim();return e&&e(`'npm config get prefix' value is: ${s}`),s.length>0?hp()?jt.join(s,"node_modules"):jt.join(s,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",i)}}at.resolveGlobalNodePath=pp;function BL(e){let t="yarn",n={encoding:"utf8"};hp()&&(t="yarn.cmd",n.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let i=(0,mp.spawnSync)(t,["global","dir","--json"],n),o=i.stdout;if(!o){e&&(e("'yarn global dir' didn't return a value."),i.stderr&&e(i.stderr));return}let s=o.trim().split(/\r?\n/);for(let a of s)try{let u=JSON.parse(a);if(u.type==="log")return jt.join(u.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",r)}}at.resolveGlobalYarnPath=BL;var dp;(function(e){let t;function n(){return t!==void 0||(process.platform==="win32"?t=!1:t=!fp.existsSync(__filename.toUpperCase())||!fp.existsSync(__filename.toLowerCase())),t}e.isCaseSensitive=n;function r(i,o){return n()?jt.normalize(o).indexOf(jt.normalize(i))===0:jt.normalize(o).toLowerCase().indexOf(jt.normalize(i).toLowerCase())===0}e.isParent=r})(dp||(at.FileSystem=dp={}));function qL(e,t,n,r){return n?(jt.isAbsolute(n)||(n=jt.join(e,n)),zu(t,n,n,r).then(i=>dp.isParent(n,i)?i:Promise.reject(new Error(`Failed to load ${t} from node path location.`))).then(void 0,i=>zu(t,pp(r),e,r))):zu(t,pp(r),e,r)}at.resolveModulePath=qL});var rw=w(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.InlineCompletionFeature=void 0;var NL=Ce(),ML=e=>class extends e{get inlineCompletion(){return{on:t=>this.connection.onRequest(NL.InlineCompletionRequest.type,(n,r)=>t(n,r,this.attachWorkDoneProgress(n)))}}};Wu.InlineCompletionFeature=ML});var sw=w(Ke=>{"use strict";var jL=Ke&&Ke.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),ow=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&jL(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.ProposedFeatures=Ke.NotebookDocuments=Ke.TextDocuments=Ke.SemanticTokensBuilder=void 0;var UL=Jh();Object.defineProperty(Ke,"SemanticTokensBuilder",{enumerable:!0,get:function(){return UL.SemanticTokensBuilder}});var zL=rw();ow(Ce(),Ke);var WL=np();Object.defineProperty(Ke,"TextDocuments",{enumerable:!0,get:function(){return WL.TextDocuments}});var $L=ip();Object.defineProperty(Ke,"NotebookDocuments",{enumerable:!0,get:function(){return $L.NotebookDocuments}});ow(cp(),Ke);var iw;(function(e){e.all={__brand:"features",languages:zL.InlineCompletionFeature}})(iw||(Ke.ProposedFeatures=iw={}))});var ns=w(Tt=>{"use strict";var HL=Tt&&Tt.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),cw=Tt&&Tt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&HL(t,e,n)};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.createConnection=Tt.Files=void 0;var aw=N("node:util"),gp=mu(),GL=cp(),ts=nw(),Lr=Ny();cw(Ny(),Tt);cw(sw(),Tt);var uw;(function(e){e.uriToFilePath=ts.uriToFilePath,e.resolveGlobalNodePath=ts.resolveGlobalNodePath,e.resolveGlobalYarnPath=ts.resolveGlobalYarnPath,e.resolve=ts.resolve,e.resolveModulePath=ts.resolveModulePath})(uw||(Tt.Files=uw={}));var lw;function $u(){if(lw!==void 0)try{lw.end()}catch{}}var Fi=!1,fw;function VL(){let e="--clientProcessId";function t(n){try{let r=parseInt(n);isNaN(r)||(fw=setInterval(()=>{try{process.kill(r,0)}catch{$u(),process.exit(Fi?0:1)}},3e3))}catch{}}for(let n=2;n<process.argv.length;n++){let r=process.argv[n];if(r===e&&n+1<process.argv.length){t(process.argv[n+1]);return}else{let i=r.split("=");i[0]===e&&t(i[1])}}}VL();var KL={initialize:e=>{let t=e.processId;gp.number(t)&&fw===void 0&&setInterval(()=>{try{process.kill(t,0)}catch{process.exit(Fi?0:1)}},3e3)},get shutdownReceived(){return Fi},set shutdownReceived(e){Fi=e},exit:e=>{$u(),process.exit(e)}};function YL(e,t,n,r){let i,o,s,a;return e!==void 0&&e.__brand==="features"&&(i=e,e=t,t=n,n=r),Lr.ConnectionStrategy.is(e)||Lr.ConnectionOptions.is(e)?a=e:(o=e,s=t,a=n),QL(o,s,a,i)}Tt.createConnection=YL;function QL(e,t,n,r){let i=!1;if(!e&&!t&&process.argv.length>2){let u,l,c=process.argv.slice(2);for(let f=0;f<c.length;f++){let h=c[f];if(h==="--node-ipc"){e=new Lr.IPCMessageReader(process),t=new Lr.IPCMessageWriter(process);break}else if(h==="--stdio"){i=!0,e=process.stdin,t=process.stdout;break}else if(h==="--socket"){u=parseInt(c[f+1]);break}else if(h==="--pipe"){l=c[f+1];break}else{var o=h.split("=");if(o[0]==="--socket"){u=parseInt(o[1]);break}else if(o[0]==="--pipe"){l=o[1];break}}}if(u){let f=(0,Lr.createServerSocketTransport)(u);e=f[0],t=f[1]}else if(l){let f=(0,Lr.createServerPipeTransport)(l);e=f[0],t=f[1]}}var s="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!e)throw new Error("Connection input stream is not set. "+s);if(!t)throw new Error("Connection output stream is not set. "+s);if(gp.func(e.read)&&gp.func(e.on)){let u=e;u.on("end",()=>{$u(),process.exit(Fi?0:1)}),u.on("close",()=>{$u(),process.exit(Fi?0:1)})}let a=u=>{let l=(0,Lr.createProtocolConnection)(e,t,u,n);return i&&ZL(u),l};return(0,GL.createConnection)(a,KL,r)}function ZL(e){function t(r){return r.map(i=>typeof i=="string"?i:(0,aw.inspect)(i)).join(" ")}let n=new Map;console.assert=function(i,...o){if(!i)if(o.length===0)e.error("Assertion failed");else{let[s,...a]=o;e.error(`Assertion failed: ${s} ${t(a)}`)}},console.count=function(i="default"){let o=String(i),s=n.get(o)??0;s+=1,n.set(o,s),e.log(`${o}: ${o}`)},console.countReset=function(i){i===void 0?n.clear():n.delete(String(i))},console.debug=function(...i){e.log(t(i))},console.dir=function(i,o){e.log((0,aw.inspect)(i,o))},console.log=function(...i){e.log(t(i))},console.error=function(...i){e.error(t(i))},console.trace=function(...i){let o=new Error().stack.replace(/(.+\n){2}/,""),s="Trace";i.length!==0&&(s+=`: ${t(i)}`),e.log(`${s}
|
|
32
|
+
${o}`)},console.warn=function(...i){e.warn(t(i))}}});var Fw=w(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.readdirGlob=Br.ReaddirGlob=void 0;var Ep=N("fs"),uP=N("events"),vp=yn(),lP=N("path");function cP(e,t){return new Promise((n,r)=>{Ep.readdir(e,{withFileTypes:!0},(i,o)=>{if(i)switch(i.code){case"ENOTDIR":t?r(i):n([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":n([]);break;default:r(i);break}else n(o)})})}function Ew(e,t){return new Promise(n=>{(t?Ep.stat:Ep.lstat)(e,(i,o)=>{i?i.code==="ENOENT"?n(t?Ew(e,!1):null):n(null):n(o)})})}async function*Sw(e,t,n,r,i,o){var s;let a=await cP(t+e,o);for(let u of a){let l=u.name,c=e+"/"+l,f=c.slice(1),h=t+"/"+f,p=u;(r||n)&&(p=(s=await Ew(h,n))!==null&&s!==void 0?s:p),p.isDirectory()?i(f)||(yield{relative:f,absolute:h,stat:p},yield*Sw(c,t,n,r,i,!1)):yield{relative:f,absolute:h,stat:p}}}async function*fP(e,t,n,r){yield*Sw("",e,t,n,r,!0)}function hP(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}var as=class extends uP.EventEmitter{constructor(t,n,r){if(super(),typeof n=="function"&&(r=n,n=void 0),this.options=hP(n||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(o=>new vp.Minimatch(o,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(o=>new vp.Minimatch(o,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(o=>new vp.Minimatch(o,{dot:!0}))}if(this.iterator=fP((0,lP.resolve)(t||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,r){let i=r,o=[];this.on("match",s=>o.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>i(s)),this.on("end",()=>i(null,o))}setTimeout(()=>this._next())}_shouldSkipDirectory(t){return this.skipMatchers.some(n=>n.match(t))}_fileMatches(t,n){let r=t+(n?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(r)))&&!this.ignoreMatchers.some(i=>i.match(r))&&(!this.options.nodir||!n)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(t=>{if(t.done)this.emit("end");else{let n=t.value.stat.isDirectory();if(this._fileMatches(t.value.relative,n)){let r=t.value.relative,i=t.value.absolute;this.options.mark&&n&&(r+="/",i+="/"),this.options.stat?this.emit("match",{relative:r,absolute:i,stat:t.value.stat}):this.emit("match",{relative:r,absolute:i})}this._next()}}).catch(t=>{this.abort(),this.emit("error",t),!t.code&&!this.options.silent&&console.error(t)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}};Br.ReaddirGlob=as;var pP=(e,t,n)=>new as(e,t,n);Br.readdirGlob=pP;Br.readdirGlob.ReaddirGlob=as});var Tw=w(($te,kw)=>{"use strict";var dP=Fw();kw.exports=dP.readdirGlob});var F_={};Ly(F_,{all:()=>Ip,allLimit:()=>Lp,allSeries:()=>Pp,any:()=>zp,anyLimit:()=>Wp,anySeries:()=>$p,apply:()=>Lw,applyEach:()=>jw,applyEachSeries:()=>Uw,asyncify:()=>Ju,auto:()=>Vp,autoInject:()=>zw,cargo:()=>Ww,cargoQueue:()=>$w,compose:()=>Hw,concat:()=>kp,concatLimit:()=>cs,concatSeries:()=>Tp,constant:()=>Gw,default:()=>D3,detect:()=>Cp,detectLimit:()=>Ap,detectSeries:()=>Rp,dir:()=>Kw,doDuring:()=>Xu,doUntil:()=>Yw,doWhilst:()=>Xu,during:()=>il,each:()=>Op,eachLimit:()=>el,eachOf:()=>Ct,eachOfLimit:()=>ls,eachOfSeries:()=>Yt,eachSeries:()=>tl,ensureAsync:()=>Qp,every:()=>Ip,everyLimit:()=>Lp,everySeries:()=>Pp,filter:()=>Bp,filterLimit:()=>qp,filterSeries:()=>Np,find:()=>Cp,findLimit:()=>Ap,findSeries:()=>Rp,flatMap:()=>kp,flatMapLimit:()=>cs,flatMapSeries:()=>Tp,foldl:()=>Ai,foldr:()=>jp,forEach:()=>Op,forEachLimit:()=>el,forEachOf:()=>Ct,forEachOfLimit:()=>ls,forEachOfSeries:()=>Yt,forEachSeries:()=>tl,forever:()=>Zw,groupBy:()=>Jw,groupByLimit:()=>ll,groupBySeries:()=>Xw,inject:()=>Ai,log:()=>e_,map:()=>al,mapLimit:()=>ps,mapSeries:()=>Gp,mapValues:()=>t_,mapValuesLimit:()=>cl,mapValuesSeries:()=>n_,memoize:()=>r_,nextTick:()=>i_,parallel:()=>o_,parallelLimit:()=>s_,priorityQueue:()=>a_,queue:()=>Jp,race:()=>u_,reduce:()=>Ai,reduceRight:()=>jp,reflect:()=>nl,reflectAll:()=>l_,reject:()=>c_,rejectLimit:()=>f_,rejectSeries:()=>h_,retry:()=>rl,retryable:()=>m_,select:()=>Bp,selectLimit:()=>qp,selectSeries:()=>Np,seq:()=>Yp,series:()=>g_,setImmediate:()=>Hn,some:()=>zp,someLimit:()=>Wp,someSeries:()=>$p,sortBy:()=>y_,timeout:()=>b_,times:()=>D_,timesLimit:()=>fl,timesSeries:()=>w_,transform:()=>__,tryEach:()=>x_,unmemoize:()=>v_,until:()=>E_,waterfall:()=>S_,whilst:()=>il,wrapSync:()=>Ju});function Lw(e,...t){return(...n)=>e(...t,...n)}function fs(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}function qw(e){setTimeout(e,0)}function Nw(e){return(t,...n)=>e(()=>t(...n))}function Ju(e){return hs(e)?function(...t){let n=t.pop(),r=e.apply(this,t);return Cw(r,n)}:fs(function(t,n){var r;try{r=e.apply(this,t)}catch(i){return n(i)}if(r&&typeof r.then=="function")return Cw(r,n);n(null,r)})}function Cw(e,t){return e.then(n=>{Aw(t,null,n)},n=>{Aw(t,n&&(n instanceof Error||n.message)?n:new Error(n))})}function Aw(e,t,n){try{e(t,n)}catch(r){Hn(i=>{throw i},r)}}function hs(e){return e[Symbol.toStringTag]==="AsyncFunction"}function gP(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function yP(e){return typeof e[Symbol.asyncIterator]=="function"}function Z(e){if(typeof e!="function")throw new Error("expected a function");return hs(e)?Ju(e):e}function Q(e,t){if(t||(t=e.length),!t)throw new Error("arity is undefined");function n(...r){return typeof r[t-1]=="function"?e.apply(this,r):new Promise((i,o)=>{r[t-1]=(s,...a)=>{if(s)return o(s);i(a.length>1?a:a[0])},e.apply(this,r)})}return n}function Mw(e){return function(n,...r){return Q(function(o){var s=this;return e(n,(a,u)=>{Z(a).apply(s,r.concat(u))},o)})}}function Hp(e,t,n,r){t=t||[];var i=[],o=0,s=Z(n);return e(t,(a,u,l)=>{var c=o++;s(a,(f,h)=>{i[c]=h,l(f)})},a=>{r(a,i)})}function ol(e){return e&&typeof e.length=="number"&&e.length>=0&&e.length%1===0}function Gn(e){function t(...n){if(e!==null){var r=e;e=null,r.apply(this,n)}}return Object.assign(t,e),t}function bP(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function DP(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}function wP(e){var t=-1;return function(){var r=e.next();return r.done?null:(t++,{value:r.value,key:t})}}function _P(e){var t=e?Object.keys(e):[],n=-1,r=t.length;return function i(){var o=t[++n];return o==="__proto__"?i():n<r?{value:e[o],key:o}:null}}function xP(e){if(ol(e))return DP(e);var t=bP(e);return t?wP(t):_P(e)}function Vn(e){return function(...t){if(e===null)throw new Error("Callback was already called.");var n=e;e=null,n.apply(this,t)}}function Rw(e,t,n,r){let i=!1,o=!1,s=!1,a=0,u=0;function l(){a>=t||s||i||(s=!0,e.next().then(({value:h,done:p})=>{if(!(o||i)){if(s=!1,p){i=!0,a<=0&&r(null);return}a++,n(h,u,c),u++,l()}}).catch(f))}function c(h,p){if(a-=1,!o){if(h)return f(h);if(h===!1){i=!0,o=!0;return}if(p===sl||i&&a<=0)return i=!0,r(null);l()}}function f(h){o||(s=!1,i=!0,r(h))}l()}function vP(e,t,n,r){return Ut(t)(e,Z(n),r)}function EP(e,t,n){n=Gn(n);var r=0,i=0,{length:o}=e,s=!1;o===0&&n(null);function a(u,l){u===!1&&(s=!0),s!==!0&&(u?n(u):(++i===o||l===sl)&&n(null))}for(;r<o;r++)t(e[r],r,Vn(a))}function SP(e,t,n){return ls(e,1/0,t,n)}function FP(e,t,n){var r=ol(e)?EP:SP;return r(e,Z(t),n)}function kP(e,t,n){return Hp(Ct,e,t,n)}function TP(e,t,n){return ls(e,1,t,n)}function CP(e,t,n){return Hp(Yt,e,t,n)}function Ri(){let e,t;function n(r,...i){if(r)return t(r);e(i.length>1?i:i[0])}return n[Oi]=new Promise((r,i)=>{e=r,t=i}),n}function Vp(e,t,n){typeof t!="number"&&(n=t,t=null),n=Gn(n||Ri());var r=Object.keys(e).length;if(!r)return n(null);t||(t=r);var i={},o=0,s=!1,a=!1,u=Object.create(null),l=[],c=[],f={};Object.keys(e).forEach(d=>{var y=e[d];if(!Array.isArray(y)){h(d,[y]),c.push(d);return}var k=y.slice(0,y.length-1),E=k.length;if(E===0){h(d,y),c.push(d);return}f[d]=E,k.forEach(v=>{if(!e[v])throw new Error("async.auto task `"+d+"` has a non-existent dependency `"+v+"` in "+k.join(", "));b(v,()=>{E--,E===0&&h(d,y)})})}),g(),p();function h(d,y){l.push(()=>F(d,y))}function p(){if(!s){if(l.length===0&&o===0)return n(null,i);for(;l.length&&o<t;){var d=l.shift();d()}}}function b(d,y){var k=u[d];k||(k=u[d]=[]),k.push(y)}function D(d){var y=u[d]||[];y.forEach(k=>k()),p()}function F(d,y){if(!a){var k=Vn((v,...q)=>{if(o--,v===!1){s=!0;return}if(q.length<2&&([q]=q),v){var T={};if(Object.keys(i).forEach(A=>{T[A]=i[A]}),T[d]=q,a=!0,u=Object.create(null),s)return;n(v,T)}else i[d]=q,D(d)});o++;var E=Z(y[y.length-1]);y.length>1?E(i,k):E(k)}}function g(){for(var d,y=0;c.length;)d=c.pop(),y++,m(d).forEach(k=>{--f[k]===0&&c.push(k)});if(y!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function m(d){var y=[];return Object.keys(e).forEach(k=>{let E=e[k];Array.isArray(E)&&E.indexOf(d)>=0&&y.push(k)}),y}return n[Oi]}function LP(e){let t="",n=0,r=e.indexOf("*/");for(;n<e.length;)if(e[n]==="/"&&e[n+1]==="/"){let i=e.indexOf(`
|
|
33
|
+
`,n);n=i===-1?e.length:i}else if(r!==-1&&e[n]==="/"&&e[n+1]==="*"){let i=e.indexOf("*/",n);i!==-1?(n=i+2,r=e.indexOf("*/",n)):(t+=e[n],n++)}else t+=e[n],n++;return t}function PP(e){let t=LP(e.toString()),n=t.match(AP);if(n||(n=t.match(RP)),!n)throw new Error(`could not parse args in autoInject
|
|
40
34
|
Source:
|
|
41
|
-
`+e);let[,r]=n;return r.replace(/\s/g,"").split(lP).map(i=>i.replace(uP,"").trim())}function pD(t,e){var n={};return Object.keys(t).forEach(r=>{var i=t[r],o,s=ms(i),a=!s&&i.length===1||s&&i.length===0;if(Array.isArray(i))o=[...i],i=o.pop(),n[r]=o.concat(o.length>0?l:i);else if(a)n[r]=i;else{if(o=fP(i),i.length===0&&!s&&o.length===0)throw new Error("autoInject task functions require explicit parameters.");s||o.pop(),n[r]=o.concat(l)}function l(u,c){var f=o.map(h=>u[h]);f.push(c),ee(i)(...f)}}),Xp(n,e)}function rD(t,e){t.length=1,t.head=t.tail=e}function ed(t,e,n){if(e==null)e=1;else if(e===0)throw new RangeError("Concurrency must not be zero");var r=ee(t),i=0,o=[];let s={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(m,d){s[m].push(d)}function l(m,d){let y=(...T)=>{u(m,y),d(...T)};s[m].push(y)}function u(m,d){if(!m)return Object.keys(s).forEach(y=>s[y]=[]);if(!d)return s[m]=[];s[m]=s[m].filter(y=>y!==d)}function c(m,...d){s[m].forEach(y=>y(...d))}var f=!1;function h(m,d,y,T){if(T!=null&&typeof T!="function")throw new Error("task callback must be a function");g.started=!0;var x,S;function M(F,...I){if(F)return y?S(F):x();if(I.length<=1)return x(I[0]);x(I)}var A=g._createTaskItem(m,y?M:T||M);if(d?g._tasks.unshift(A):g._tasks.push(A),f||(f=!0,Gn(()=>{f=!1,g.process()})),y||!T)return new Promise((F,I)=>{x=F,S=I})}function p(m){return function(d,...y){i-=1;for(var T=0,x=m.length;T<x;T++){var S=m[T],M=o.indexOf(S);M===0?o.shift():M>0&&o.splice(M,1),S.callback(d,...y),d!=null&&c("error",d,S.data)}i<=g.concurrency-g.buffer&&c("unsaturated"),g.idle()&&c("drain"),g.process()}}function w(m){return m.length===0&&g.idle()?(Gn(()=>c("drain")),!0):!1}let D=m=>d=>{if(!d)return new Promise((y,T)=>{l(m,(x,S)=>{if(x)return T(x);y(S)})});u(m),a(m,d)};var k=!1,g={_tasks:new Op,_createTaskItem(m,d){return{data:m,callback:d}},*[Symbol.iterator](){yield*g._tasks[Symbol.iterator]()},concurrency:e,payload:n,buffer:e/4,started:!1,paused:!1,push(m,d){return Array.isArray(m)?w(m)?void 0:m.map(y=>h(y,!1,!1,d)):h(m,!1,!1,d)},pushAsync(m,d){return Array.isArray(m)?w(m)?void 0:m.map(y=>h(y,!1,!0,d)):h(m,!1,!0,d)},kill(){u(),g._tasks.empty()},unshift(m,d){return Array.isArray(m)?w(m)?void 0:m.map(y=>h(y,!0,!1,d)):h(m,!0,!1,d)},unshiftAsync(m,d){return Array.isArray(m)?w(m)?void 0:m.map(y=>h(y,!0,!0,d)):h(m,!0,!0,d)},remove(m){g._tasks.remove(m)},process(){if(!k){for(k=!0;!g.paused&&i<g.concurrency&&g._tasks.length;){var m=[],d=[],y=g._tasks.length;g.payload&&(y=Math.min(y,g.payload));for(var T=0;T<y;T++){var x=g._tasks.shift();m.push(x),o.push(x),d.push(x.data)}i+=1,g._tasks.length===0&&c("empty"),i===g.concurrency&&c("saturated");var S=Yn(p(m));r(d,S)}k=!1}},length(){return g._tasks.length},running(){return i},workersList(){return o},idle(){return g._tasks.length+i===0},pause(){g.paused=!0},resume(){g.paused!==!1&&(g.paused=!1,Gn(g.process))}};return Object.defineProperties(g,{saturated:{writable:!1,value:D("saturated")},unsaturated:{writable:!1,value:D("unsaturated")},empty:{writable:!1,value:D("empty")},drain:{writable:!1,value:D("drain")},error:{writable:!1,value:D("error")}}),g}function dD(t,e){return ed(t,1,e)}function mD(t,e,n){return ed(t,e,n)}function hP(t,e,n,r){r=Vn(r);var i=ee(n);return Zt(t,(o,s,a)=>{i(e,o,(l,u)=>{e=u,a(l)})},o=>r(o,e))}function td(...t){var e=t.map(ee);return function(...n){var r=this,i=n[n.length-1];return typeof i=="function"?n.pop():i=Pi(),Li(e,n,(o,s,a)=>{s.apply(r,o.concat((l,...u)=>{a(l,u)}))},(o,s)=>i(o,...s)),i[qi]}}function gD(...t){return td(...t.reverse())}function pP(t,e,n,r){return Zp(zt(e),t,n,r)}function dP(t,e,n,r){var i=ee(n);return gs(t,e,(o,s)=>{i(o,(a,...l)=>a?s(a):s(a,l))},(o,s)=>{for(var a=[],l=0;l<s.length;l++)s[l]&&(a=a.concat(...s[l]));return r(o,a)})}function mP(t,e,n){return ps(t,1/0,e,n)}function gP(t,e,n){return ps(t,1,e,n)}function yD(...t){return function(...e){var n=e.pop();return n(null,...t)}}function xn(t,e){return(n,r,i,o)=>{var s=!1,a;let l=ee(i);n(r,(u,c,f)=>{l(u,(h,p)=>{if(h||h===!1)return f(h);if(t(p)&&!a)return s=!0,a=e(!0,u),f(null,cu);f()})},u=>{if(u)return o(u);o(null,s?a:e(!1))})}}function yP(t,e,n){return xn(r=>r,(r,i)=>i)(Rt,t,e,n)}function bP(t,e,n,r){return xn(i=>i,(i,o)=>o)(zt(e),t,n,r)}function wP(t,e,n){return xn(r=>r,(r,i)=>i)(zt(1),t,e,n)}function bD(t){return(e,...n)=>ee(e)(...n,(r,...i)=>{typeof console=="object"&&(r?console.error&&console.error(r):console[t]&&i.forEach(o=>console[t](o)))})}function _P(t,e,n){n=Yn(n);var r=ee(t),i=ee(e),o;function s(l,...u){if(l)return n(l);l!==!1&&(o=u,i(...u,a))}function a(l,u){if(l)return n(l);if(l!==!1){if(!u)return n(null,...o);r(s)}}return a(null,!0)}function _D(t,e,n){let r=ee(e);return ru(t,(...i)=>{let o=i.pop();r(...i,(s,a)=>o(s,!a))},n)}function DD(t){return(e,n,r)=>t(e,r)}function DP(t,e,n){return Rt(t,DD(ee(e)),n)}function xP(t,e,n,r){return zt(e)(t,DD(ee(n)),r)}function vP(t,e,n){return iu(t,1,e,n)}function nd(t){return ms(t)?t:function(...e){var n=e.pop(),r=!0;e.push((...i)=>{r?Gn(()=>n(...i)):n(...i)}),t.apply(this,e),r=!1}}function SP(t,e,n){return xn(r=>!r,r=>!r)(Rt,t,e,n)}function EP(t,e,n,r){return xn(i=>!i,i=>!i)(zt(e),t,n,r)}function kP(t,e,n){return xn(r=>!r,r=>!r)(Zt,t,e,n)}function TP(t,e,n,r){var i=new Array(e.length);t(e,(o,s,a)=>{n(o,(l,u)=>{i[s]=!!u,a(l)})},o=>{if(o)return r(o);for(var s=[],a=0;a<e.length;a++)i[a]&&s.push(e[a]);r(null,s)})}function AP(t,e,n,r){var i=[];t(e,(o,s,a)=>{n(o,(l,u)=>{if(l)return a(l);u&&i.push({index:s,value:o}),a(l)})},o=>{if(o)return r(o);r(null,i.sort((s,a)=>s.index-a.index).map(s=>s.value))})}function hu(t,e,n,r){var i=uu(e)?TP:AP;return i(t,e,ee(n),r)}function CP(t,e,n){return hu(Rt,t,e,n)}function FP(t,e,n,r){return hu(zt(e),t,n,r)}function RP(t,e,n){return hu(Zt,t,e,n)}function OP(t,e){var n=Yn(e),r=ee(nd(t));function i(o){if(o)return n(o);o!==!1&&r(i)}return i()}function IP(t,e,n,r){var i=ee(n);return gs(t,e,(o,s)=>{i(o,(a,l)=>a?s(a):s(a,{key:l,val:o}))},(o,s)=>{for(var a={},{hasOwnProperty:l}=Object.prototype,u=0;u<s.length;u++)if(s[u]){var{key:c}=s[u],{val:f}=s[u];l.call(a,c)?a[c].push(f):a[c]=[f]}return r(o,a)})}function vD(t,e,n){return pu(t,1/0,e,n)}function SD(t,e,n){return pu(t,1,e,n)}function LP(t,e,n,r){r=Vn(r);var i={},o=ee(n);return zt(e)(t,(s,a,l)=>{o(s,a,(u,c)=>{if(u)return l(u);i[a]=c,l(u)})},s=>r(s,i))}function kD(t,e,n){return du(t,1/0,e,n)}function TD(t,e,n){return du(t,1,e,n)}function AD(t,e=n=>n){var n=Object.create(null),r=Object.create(null),i=ee(t),o=ds((s,a)=>{var l=e(...s);l in n?Gn(()=>a(null,...n[l])):l in r?r[l].push(a):(r[l]=[a],i(...s,(u,...c)=>{u||(n[l]=c);var f=r[l];delete r[l];for(var h=0,p=f.length;h<p;h++)f[h](u,...c)}))});return o.memo=n,o.unmemoized=t,o}function FD(t,e){return rd(Rt,t,e)}function RD(t,e,n){return rd(zt(e),t,n)}function id(t,e){var n=ee(t);return ed((r,i)=>{n(r[0],i)},e,1)}function PP(t){return(t<<1)+1}function iD(t){return(t+1>>1)-1}function Rp(t,e){return t.priority!==e.priority?t.priority<e.priority:t.pushCount<e.pushCount}function OD(t,e){var n=id(t,e),{push:r,pushAsync:i}=n;n._tasks=new Hp,n._createTaskItem=({data:s,priority:a},l)=>({data:s,priority:a,callback:l});function o(s,a){return Array.isArray(s)?s.map(l=>({data:l,priority:a})):{data:s,priority:a}}return n.push=function(s,a=0,l){return r(o(s,a),l)},n.pushAsync=function(s,a=0,l){return i(o(s,a),l)},delete n.unshift,delete n.unshiftAsync,n}function qP(t,e){if(e=Vn(e),!Array.isArray(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var n=0,r=t.length;n<r;n++)ee(t[n])(e)}function Gp(t,e,n,r){var i=[...t].reverse();return Li(i,e,n,r)}function su(t){var e=ee(t);return ds(function(r,i){return r.push((o,...s)=>{let a={};if(o&&(a.error=o),s.length>0){var l=s;s.length<=1&&([l]=s),a.value=l}i(null,a)}),e.apply(this,r)})}function LD(t){var e;return Array.isArray(t)?e=t.map(su):(e={},Object.keys(t).forEach(n=>{e[n]=su.call(this,t[n])})),e}function od(t,e,n,r){let i=ee(n);return hu(t,e,(o,s)=>{i(o,(a,l)=>{s(a,!l)})},r)}function MP(t,e,n){return od(Rt,t,e,n)}function NP(t,e,n,r){return od(zt(e),t,n,r)}function BP(t,e,n){return od(Zt,t,e,n)}function ND(t){return function(){return t}}function au(t,e,n){var r={times:Vp,intervalFunc:ND(BD)};if(arguments.length<3&&typeof t=="function"?(n=e||Pi(),e=t):(jP(r,t),n=n||Pi()),typeof e!="function")throw new Error("Invalid arguments for async.retry");var i=ee(e),o=1;function s(){i((a,...l)=>{a!==!1&&(a&&o++<r.times&&(typeof r.errorFilter!="function"||r.errorFilter(a))?setTimeout(s,r.intervalFunc(o-1)):n(a,...l))})}return s(),n[qi]}function jP(t,e){if(typeof e=="object")t.times=+e.times||Vp,t.intervalFunc=typeof e.interval=="function"?e.interval:ND(+e.interval||BD),t.errorFilter=e.errorFilter;else if(typeof e=="number"||typeof e=="string")t.times=+e||Vp;else throw new Error("Invalid arguments for async.retry")}function jD(t,e){e||(e=t,t=null);let n=t&&t.arity||e.length;ms(e)&&(n+=1);var r=ee(e);return ds((i,o)=>{(i.length<n-1||o==null)&&(i.push(o),o=Pi());function s(a){r(...i,a)}return t?au(t,s,o):au(s,o),o[qi]})}function UD(t,e){return rd(Zt,t,e)}function UP(t,e,n){return xn(Boolean,r=>r)(Rt,t,e,n)}function zP(t,e,n,r){return xn(Boolean,i=>i)(zt(e),t,n,r)}function WP(t,e,n){return xn(Boolean,r=>r)(Zt,t,e,n)}function $P(t,e,n){var r=ee(e);return fu(t,(o,s)=>{r(o,(a,l)=>{if(a)return s(a);s(a,{value:o,criteria:l})})},(o,s)=>{if(o)return n(o);n(null,s.sort(i).map(a=>a.value))});function i(o,s){var a=o.criteria,l=s.criteria;return a<l?-1:a>l?1:0}}function WD(t,e,n){var r=ee(t);return ds((i,o)=>{var s=!1,a;function l(){var u=t.name||"anonymous",c=new Error('Callback function "'+u+'" timed out.');c.code="ETIMEDOUT",n&&(c.info=n),s=!0,o(c)}i.push((...u)=>{s||(o(...u),clearTimeout(a))}),a=setTimeout(l,e),r(...i)})}function HP(t){for(var e=Array(t);t--;)e[t]=t;return e}function mu(t,e,n,r){var i=ee(n);return gs(HP(t),e,i,r)}function $D(t,e,n){return mu(t,1/0,e,n)}function HD(t,e,n){return mu(t,1,e,n)}function GD(t,e,n,r){arguments.length<=3&&typeof e=="function"&&(r=n,n=e,e=Array.isArray(t)?[]:{}),r=Vn(r||Pi());var i=ee(n);return Rt(t,(o,s,a)=>{i(e,o,s,a)},o=>r(o,e)),r[qi]}function GP(t,e){var n=null,r;return ou(t,(i,o)=>{ee(i)((s,...a)=>{if(s===!1)return o(s);a.length<2?[r]=a:r=a,n=s,o(s?null:{})})},()=>e(n,r))}function YD(t){return(...e)=>(t.unmemoized||t)(...e)}function VP(t,e,n){n=Yn(n);var r=ee(e),i=ee(t),o=[];function s(l,...u){if(l)return n(l);o=u,l!==!1&&i(a)}function a(l,u){if(l)return n(l);if(l!==!1){if(!u)return n(null,...o);r(s)}}return i(a)}function KD(t,e,n){let r=ee(t);return lu(i=>r((o,s)=>i(o,!s)),e,n)}function YP(t,e){if(e=Vn(e),!Array.isArray(t))return e(new Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var n=0;function r(o){var s=ee(t[n++]);s(...o,Yn(i))}function i(o,...s){if(o!==!1){if(o||n===t.length)return e(o,...s);r(s)}}r([])}var HL,sD,aD,fs,Gn,cu,zt,hs,Rt,fu,fD,Zt,Jp,hD,qi,sP,aP,lP,uP,Op,Li,gs,ps,Ip,Lp,Pp,qp,Mp,wD,ru,Np,iu,ou,Bp,jp,Up,zp,Wp,$p,xD,pu,ED,du,tu,CD,rd,Hp,ID,PD,qD,MD,Vp,BD,Yp,Kp,Qp,zD,VD,lu,QD,KP,JD=ZF(()=>{"use strict";HL=typeof queueMicrotask=="function"&&queueMicrotask,sD=typeof setImmediate=="function"&&setImmediate,aD=typeof process=="object"&&typeof process.nextTick=="function";HL?fs=queueMicrotask:sD?fs=setImmediate:aD?fs=process.nextTick:fs=lD;Gn=uD(fs);cu={};zt=t=>(e,n,r)=>{if(r=Vn(r),t<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!e)return r(null);if(GL(e))return nD(e,t,n,r);if(VL(e))return nD(e[Symbol.asyncIterator](),t,n,r);var i=JL(e),o=!1,s=!1,a=0,l=!1;function u(f,h){if(!s)if(a-=1,f)o=!0,r(f);else if(f===!1)o=!0,s=!0;else{if(h===cu||o&&a<=0)return o=!0,r(null);l||c()}}function c(){for(l=!0;a<t&&!o;){var f=i();if(f===null){o=!0,a<=0&&r(null);return}a+=1,n(f.value,f.key,Yn(u))}l=!1}c()};hs=X(XL,4);Rt=X(nP,3);fu=X(rP,3),fD=cD(fu);Zt=X(iP,3);Jp=X(oP,3),hD=cD(Jp),qi=Symbol("promiseCallback");sP=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,aP=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,lP=/,/,uP=/(=.+)?(\s*)$/;Op=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,n){n.prev=e,n.next=e.next,e.next?e.next.prev=n:this.tail=n,e.next=n,this.length+=1}insertBefore(e,n){n.prev=e.prev,n.next=e,e.prev?e.prev.next=n:this.head=n,e.prev=n,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):rD(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):rD(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var n=this.head;n;){var{next:r}=n;e(n)&&this.removeLink(n),n=r}return this}};Li=X(hP,4);gs=X(pP,4);ps=X(dP,4);Ip=X(mP,3);Lp=X(gP,3);Pp=X(yP,3);qp=X(bP,4);Mp=X(wP,3);wD=bD("dir");ru=X(_P,3);Np=X(DP,3);iu=X(xP,4);ou=X(vP,3);Bp=X(SP,3);jp=X(EP,4);Up=X(kP,3);zp=X(CP,3);Wp=X(FP,4);$p=X(RP,3);xD=X(OP,2);pu=X(IP,4);ED=bD("log");du=X(LP,4);aD?tu=process.nextTick:sD?tu=setImmediate:tu=lD;CD=uD(tu),rd=X((t,e,n)=>{var r=uu(e)?[]:{};t(e,(i,o,s)=>{ee(i)((a,...l)=>{l.length<2&&([l]=l),r[o]=l,s(a)})},i=>n(i,r))},3);Hp=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let n;for(;e>0&&Rp(this.heap[e],this.heap[n=iD(e)]);){let r=this.heap[e];this.heap[e]=this.heap[n],this.heap[n]=r,e=n}}percDown(e){let n;for(;(n=PP(e))<this.heap.length&&(n+1<this.heap.length&&Rp(this.heap[n+1],this.heap[n])&&(n=n+1),!Rp(this.heap[e],this.heap[n]));){let r=this.heap[e];this.heap[e]=this.heap[n],this.heap[n]=r,e=n}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let n=0;for(let r=0;r<this.heap.length;r++)e(this.heap[r])||(this.heap[n]=this.heap[r],n++);this.heap.splice(n);for(let r=iD(this.heap.length-1);r>=0;r--)this.percDown(r);return this}};ID=X(qP,2);PD=X(MP,3);qD=X(NP,4);MD=X(BP,3);Vp=5,BD=0;Yp=X(UP,3);Kp=X(zP,4);Qp=X(WP,3);zD=X($P,3);VD=X(GP);lu=X(VP,3);QD=X(YP),KP={apply:oD,applyEach:fD,applyEachSeries:hD,asyncify:nu,auto:Xp,autoInject:pD,cargo:dD,cargoQueue:mD,compose:gD,concat:Ip,concatLimit:ps,concatSeries:Lp,constant:yD,detect:Pp,detectLimit:qp,detectSeries:Mp,dir:wD,doUntil:_D,doWhilst:ru,each:Np,eachLimit:iu,eachOf:Rt,eachOfLimit:hs,eachOfSeries:Zt,eachSeries:ou,ensureAsync:nd,every:Bp,everyLimit:jp,everySeries:Up,filter:zp,filterLimit:Wp,filterSeries:$p,forever:xD,groupBy:vD,groupByLimit:pu,groupBySeries:SD,log:ED,map:fu,mapLimit:gs,mapSeries:Jp,mapValues:kD,mapValuesLimit:du,mapValuesSeries:TD,memoize:AD,nextTick:CD,parallel:FD,parallelLimit:RD,priorityQueue:OD,queue:id,race:ID,reduce:Li,reduceRight:Gp,reflect:su,reflectAll:LD,reject:PD,rejectLimit:qD,rejectSeries:MD,retry:au,retryable:jD,seq:td,series:UD,setImmediate:Gn,some:Yp,someLimit:Kp,someSeries:Qp,sortBy:zD,timeout:WD,times:$D,timesLimit:mu,timesSeries:HD,transform:GD,tryEach:VD,unmemoize:YD,until:KD,waterfall:QD,whilst:lu,all:Bp,allLimit:jp,allSeries:Up,any:Yp,anyLimit:Kp,anySeries:Qp,find:Pp,findLimit:qp,findSeries:Mp,flatMap:Ip,flatMapLimit:ps,flatMapSeries:Lp,forEach:Np,forEachSeries:ou,forEachLimit:iu,forEachOf:Rt,forEachOfSeries:Zt,forEachOfLimit:hs,inject:Li,foldl:Li,foldr:Gp,select:zp,selectLimit:Wp,selectSeries:$p,wrapSync:nu,during:lu,doDuring:ru}});var ex=b((Sne,XD)=>{"use strict";var Kn=N("constants"),QP=process.cwd,gu=null,ZP=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return gu||(gu=QP.call(process)),gu};try{process.cwd()}catch{}typeof process.chdir=="function"&&(sd=process.chdir,process.chdir=function(t){gu=null,sd.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,sd));var sd;XD.exports=JP;function JP(t){Kn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||n(t),t.chown=o(t.chown),t.fchown=o(t.fchown),t.lchown=o(t.lchown),t.chmod=r(t.chmod),t.fchmod=r(t.fchmod),t.lchmod=r(t.lchmod),t.chownSync=s(t.chownSync),t.fchownSync=s(t.fchownSync),t.lchownSync=s(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=l(t.statSync),t.fstatSync=l(t.fstatSync),t.lstatSync=l(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,f,h){h&&process.nextTick(h)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,f,h,p){p&&process.nextTick(p)},t.lchownSync=function(){}),ZP==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:(function(c){function f(h,p,w){var D=Date.now(),k=0;c(h,p,function g(m){if(m&&(m.code==="EACCES"||m.code==="EPERM"||m.code==="EBUSY")&&Date.now()-D<6e4){setTimeout(function(){t.stat(p,function(d,y){d&&d.code==="ENOENT"?c(h,p,g):w(m)})},k),k<100&&(k+=10);return}w&&w(m)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f})(t.rename)),t.read=typeof t.read!="function"?t.read:(function(c){function f(h,p,w,D,k,g){var m;if(g&&typeof g=="function"){var d=0;m=function(y,T,x){if(y&&y.code==="EAGAIN"&&d<10)return d++,c.call(t,h,p,w,D,k,m);g.apply(this,arguments)}}return c.call(t,h,p,w,D,k,m)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f})(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:(function(c){return function(f,h,p,w,D){for(var k=0;;)try{return c.call(t,f,h,p,w,D)}catch(g){if(g.code==="EAGAIN"&&k<10){k++;continue}throw g}}})(t.readSync);function e(c){c.lchmod=function(f,h,p){c.open(f,Kn.O_WRONLY|Kn.O_SYMLINK,h,function(w,D){if(w){p&&p(w);return}c.fchmod(D,h,function(k){c.close(D,function(g){p&&p(k||g)})})})},c.lchmodSync=function(f,h){var p=c.openSync(f,Kn.O_WRONLY|Kn.O_SYMLINK,h),w=!0,D;try{D=c.fchmodSync(p,h),w=!1}finally{if(w)try{c.closeSync(p)}catch{}else c.closeSync(p)}return D}}function n(c){Kn.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,h,p,w){c.open(f,Kn.O_SYMLINK,function(D,k){if(D){w&&w(D);return}c.futimes(k,h,p,function(g){c.close(k,function(m){w&&w(g||m)})})})},c.lutimesSync=function(f,h,p){var w=c.openSync(f,Kn.O_SYMLINK),D,k=!0;try{D=c.futimesSync(w,h,p),k=!1}finally{if(k)try{c.closeSync(w)}catch{}else c.closeSync(w)}return D}):c.futimes&&(c.lutimes=function(f,h,p,w){w&&process.nextTick(w)},c.lutimesSync=function(){})}function r(c){return c&&function(f,h,p){return c.call(t,f,h,function(w){u(w)&&(w=null),p&&p.apply(this,arguments)})}}function i(c){return c&&function(f,h){try{return c.call(t,f,h)}catch(p){if(!u(p))throw p}}}function o(c){return c&&function(f,h,p,w){return c.call(t,f,h,p,function(D){u(D)&&(D=null),w&&w.apply(this,arguments)})}}function s(c){return c&&function(f,h,p){try{return c.call(t,f,h,p)}catch(w){if(!u(w))throw w}}}function a(c){return c&&function(f,h,p){typeof h=="function"&&(p=h,h=null);function w(D,k){k&&(k.uid<0&&(k.uid+=4294967296),k.gid<0&&(k.gid+=4294967296)),p&&p.apply(this,arguments)}return h?c.call(t,f,h,w):c.call(t,f,w)}}function l(c){return c&&function(f,h){var p=h?c.call(t,f,h):c.call(t,f);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}function u(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var rx=b((Ene,nx)=>{"use strict";var tx=N("stream").Stream;nx.exports=XP;function XP(t){return{ReadStream:e,WriteStream:n};function e(r,i){if(!(this instanceof e))return new e(r,i);tx.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),a=0,l=s.length;a<l;a++){var u=s[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(){o._read()});return}t.open(this.path,this.flags,this.mode,function(c,f){if(c){o.emit("error",c),o.readable=!1;return}o.fd=f,o.emit("open",f),o._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);tx.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var l=o[s];this[l]=i[l]}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 ox=b((kne,ix)=>{"use strict";ix.exports=tq;var eq=Object.getPrototypeOf||function(t){return t.__proto__};function tq(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:eq(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}});var cd=b((Tne,ud)=>{"use strict";var ve=N("fs"),nq=ex(),rq=rx(),iq=ox(),yu=N("util"),We,wu;typeof Symbol=="function"&&typeof Symbol.for=="function"?(We=Symbol.for("graceful-fs.queue"),wu=Symbol.for("graceful-fs.previous")):(We="___graceful-fs.queue",wu="___graceful-fs.previous");function oq(){}function lx(t,e){Object.defineProperty(t,We,{get:function(){return e}})}var Mr=oq;yu.debuglog?Mr=yu.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Mr=function(){var t=yu.format.apply(yu,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
42
|
-
GFS4: `),console.error(t)});ve[We]||(sx=global[We]||[],lx(ve,sx),ve.close=(function(t){function e(n,r){return t.call(ve,n,function(i){i||ax(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(e,wu,{value:t}),e})(ve.close),ve.closeSync=(function(t){function e(n){t.apply(ve,arguments),ax()}return Object.defineProperty(e,wu,{value:t}),e})(ve.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Mr(ve[We]),N("assert").equal(ve[We].length,0)}));var sx;global[We]||lx(global,ve[We]);ud.exports=ad(iq(ve));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ve.__patched&&(ud.exports=ad(ve),ve.__patched=!0);function ad(t){nq(t),t.gracefulify=ad,t.createReadStream=T,t.createWriteStream=x;var e=t.readFile;t.readFile=n;function n(A,F,I){return typeof F=="function"&&(I=F,F=null),B(A,F,I);function B(O,R,L,$){return e(O,R,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?Mi([B,[O,R,L],z,$||Date.now(),Date.now()]):typeof L=="function"&&L.apply(this,arguments)})}}var r=t.writeFile;t.writeFile=i;function i(A,F,I,B){return typeof I=="function"&&(B=I,I=null),O(A,F,I,B);function O(R,L,$,z,pe){return r(R,L,$,function(oe){oe&&(oe.code==="EMFILE"||oe.code==="ENFILE")?Mi([O,[R,L,$,z],oe,pe||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var o=t.appendFile;o&&(t.appendFile=s);function s(A,F,I,B){return typeof I=="function"&&(B=I,I=null),O(A,F,I,B);function O(R,L,$,z,pe){return o(R,L,$,function(oe){oe&&(oe.code==="EMFILE"||oe.code==="ENFILE")?Mi([O,[R,L,$,z],oe,pe||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=l);function l(A,F,I,B){return typeof I=="function"&&(B=I,I=0),O(A,F,I,B);function O(R,L,$,z,pe){return a(R,L,$,function(oe){oe&&(oe.code==="EMFILE"||oe.code==="ENFILE")?Mi([O,[R,L,$,z],oe,pe||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}var u=t.readdir;t.readdir=f;var c=/^v[0-5]\./;function f(A,F,I){typeof F=="function"&&(I=F,F=null);var B=c.test(process.version)?function(L,$,z,pe){return u(L,O(L,$,z,pe))}:function(L,$,z,pe){return u(L,$,O(L,$,z,pe))};return B(A,F,I);function O(R,L,$,z){return function(pe,oe){pe&&(pe.code==="EMFILE"||pe.code==="ENFILE")?Mi([B,[R,L,$],pe,z||Date.now(),Date.now()]):(oe&&oe.sort&&oe.sort(),typeof $=="function"&&$.call(this,pe,oe))}}}if(process.version.substr(0,4)==="v0.8"){var h=rq(t);g=h.ReadStream,d=h.WriteStream}var p=t.ReadStream;p&&(g.prototype=Object.create(p.prototype),g.prototype.open=m);var w=t.WriteStream;w&&(d.prototype=Object.create(w.prototype),d.prototype.open=y),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(A){g=A},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return d},set:function(A){d=A},enumerable:!0,configurable:!0});var D=g;Object.defineProperty(t,"FileReadStream",{get:function(){return D},set:function(A){D=A},enumerable:!0,configurable:!0});var k=d;Object.defineProperty(t,"FileWriteStream",{get:function(){return k},set:function(A){k=A},enumerable:!0,configurable:!0});function g(A,F){return this instanceof g?(p.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function m(){var A=this;M(A.path,A.flags,A.mode,function(F,I){F?(A.autoClose&&A.destroy(),A.emit("error",F)):(A.fd=I,A.emit("open",I),A.read())})}function d(A,F){return this instanceof d?(w.apply(this,arguments),this):d.apply(Object.create(d.prototype),arguments)}function y(){var A=this;M(A.path,A.flags,A.mode,function(F,I){F?(A.destroy(),A.emit("error",F)):(A.fd=I,A.emit("open",I))})}function T(A,F){return new t.ReadStream(A,F)}function x(A,F){return new t.WriteStream(A,F)}var S=t.open;t.open=M;function M(A,F,I,B){return typeof I=="function"&&(B=I,I=null),O(A,F,I,B);function O(R,L,$,z,pe){return S(R,L,$,function(oe,v){oe&&(oe.code==="EMFILE"||oe.code==="ENFILE")?Mi([O,[R,L,$,z],oe,pe||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}}return t}function Mi(t){Mr("ENQUEUE",t[0].name,t[1]),ve[We].push(t),ld()}var bu;function ax(){for(var t=Date.now(),e=0;e<ve[We].length;++e)ve[We][e].length>2&&(ve[We][e][3]=t,ve[We][e][4]=t);ld()}function ld(){if(clearTimeout(bu),bu=void 0,ve[We].length!==0){var t=ve[We].shift(),e=t[0],n=t[1],r=t[2],i=t[3],o=t[4];if(i===void 0)Mr("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-i>=6e4){Mr("TIMEOUT",e.name,n);var s=n.pop();typeof s=="function"&&s.call(null,r)}else{var a=Date.now()-o,l=Math.max(o-i,1),u=Math.min(l*1.2,100);a>=u?(Mr("RETRY",e.name,n),e.apply(null,n.concat([i]))):ve[We].push(t)}bu===void 0&&(bu=setTimeout(ld,0))}}});var _u=b((Ane,ux)=>{"use strict";var Jt=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Jt.writable=t=>Jt(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Jt.readable=t=>Jt(t)&&t.readable!==!1&&typeof t._read=="function"&&typeof t._readableState=="object";Jt.duplex=t=>Jt.writable(t)&&Jt.readable(t);Jt.transform=t=>Jt.duplex(t)&&typeof t._transform=="function";ux.exports=Jt});var ys=b((Cne,fd)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?fd.exports={nextTick:sq}:fd.exports=process;function sq(t,e,n,r){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,o,s;switch(i){case 0:case 1:return process.nextTick(t);case 2:return process.nextTick(function(){t.call(null,e)});case 3:return process.nextTick(function(){t.call(null,e,n)});case 4:return process.nextTick(function(){t.call(null,e,n,r)});default:for(o=new Array(i-1),s=0;s<o.length;)o[s++]=arguments[s];return process.nextTick(function(){t.apply(null,o)})}}});var fx=b((Fne,cx)=>{"use strict";var aq={}.toString;cx.exports=Array.isArray||function(t){return aq.call(t)=="[object Array]"}});var hd=b((Rne,hx)=>{"use strict";hx.exports=N("stream")});var xu=b((pd,dx)=>{"use strict";var Du=N("buffer"),Xt=Du.Buffer;function px(t,e){for(var n in t)e[n]=t[n]}Xt.from&&Xt.alloc&&Xt.allocUnsafe&&Xt.allocUnsafeSlow?dx.exports=Du:(px(Du,pd),pd.Buffer=Nr);function Nr(t,e,n){return Xt(t,e,n)}Nr.prototype=Object.create(Xt.prototype);px(Xt,Nr);Nr.from=function(t,e,n){if(typeof t=="number")throw new TypeError("Argument must not be a number");return Xt(t,e,n)};Nr.alloc=function(t,e,n){if(typeof t!="number")throw new TypeError("Argument must be a number");var r=Xt(t);return e!==void 0?typeof n=="string"?r.fill(e,n):r.fill(e):r.fill(0),r};Nr.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Xt(t)};Nr.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return Du.SlowBuffer(t)}});var Ni=b(Je=>{"use strict";function lq(t){return Array.isArray?Array.isArray(t):vu(t)==="[object Array]"}Je.isArray=lq;function uq(t){return typeof t=="boolean"}Je.isBoolean=uq;function cq(t){return t===null}Je.isNull=cq;function fq(t){return t==null}Je.isNullOrUndefined=fq;function hq(t){return typeof t=="number"}Je.isNumber=hq;function pq(t){return typeof t=="string"}Je.isString=pq;function dq(t){return typeof t=="symbol"}Je.isSymbol=dq;function mq(t){return t===void 0}Je.isUndefined=mq;function gq(t){return vu(t)==="[object RegExp]"}Je.isRegExp=gq;function yq(t){return typeof t=="object"&&t!==null}Je.isObject=yq;function bq(t){return vu(t)==="[object Date]"}Je.isDate=bq;function wq(t){return vu(t)==="[object Error]"||t instanceof Error}Je.isError=wq;function _q(t){return typeof t=="function"}Je.isFunction=_q;function Dq(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}Je.isPrimitive=Dq;Je.isBuffer=N("buffer").Buffer.isBuffer;function vu(t){return Object.prototype.toString.call(t)}});var mx=b((Ine,dd)=>{"use strict";typeof Object.create=="function"?dd.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:dd.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}}});var Bi=b((Lne,gd)=>{"use strict";try{if(md=N("util"),typeof md.inherits!="function")throw"";gd.exports=md.inherits}catch{gd.exports=mx()}var md});var yx=b((Pne,yd)=>{"use strict";function xq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var gx=xu().Buffer,bs=N("util");function vq(t,e,n){t.copy(e,n)}yd.exports=(function(){function t(){xq(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(n){var r={data:n,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length},t.prototype.unshift=function(n){var r={data:n,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length},t.prototype.shift=function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(n){if(this.length===0)return"";for(var r=this.head,i=""+r.data;r=r.next;)i+=n+r.data;return i},t.prototype.concat=function(n){if(this.length===0)return gx.alloc(0);for(var r=gx.allocUnsafe(n>>>0),i=this.head,o=0;i;)vq(i.data,r,o),o+=i.data.length,i=i.next;return r},t})();bs&&bs.inspect&&bs.inspect.custom&&(yd.exports.prototype[bs.inspect.custom]=function(){var t=bs.inspect({length:this.length});return this.constructor.name+" "+t})});var bd=b((qne,bx)=>{"use strict";var Su=ys();function Sq(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Su.nextTick(Eu,this,t)):Su.nextTick(Eu,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(o){!e&&o?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,Su.nextTick(Eu,n,o)):Su.nextTick(Eu,n,o):e&&e(o)}),this)}function Eq(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Eu(t,e){t.emit("error",e)}bx.exports={destroy:Sq,undestroy:Eq}});var _x=b((Mne,wx)=>{"use strict";wx.exports=N("util").deprecate});var _d=b((Nne,Ax)=>{"use strict";var Br=ys();Ax.exports=Fe;function xx(t){var e=this;this.next=null,this.entry=null,this.finish=function(){Wq(e,t)}}var kq=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Br.nextTick,ji;Fe.WritableState=_s;var vx=Object.create(Ni());vx.inherits=Bi();var Tq={deprecate:_x()},Sx=hd(),Tu=xu().Buffer,Aq=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Cq(t){return Tu.from(t)}function Fq(t){return Tu.isBuffer(t)||t instanceof Aq}var Ex=bd();vx.inherits(Fe,Sx);function Rq(){}function _s(t,e){ji=ji||jr(),t=t||{};var n=e instanceof ji;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,i=t.writableHighWaterMark,o=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=t.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){Nq(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new xx(this)}_s.prototype.getBuffer=function(){for(var e=this.bufferedRequest,n=[];e;)n.push(e),e=e.next;return n};(function(){try{Object.defineProperty(_s.prototype,"buffer",{get:Tq.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ku;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ku=Function.prototype[Symbol.hasInstance],Object.defineProperty(Fe,Symbol.hasInstance,{value:function(t){return ku.call(this,t)?!0:this!==Fe?!1:t&&t._writableState instanceof _s}})):ku=function(t){return t instanceof this};function Fe(t){if(ji=ji||jr(),!ku.call(Fe,this)&&!(this instanceof ji))return new Fe(t);this._writableState=new _s(t,this),this.writable=!0,t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final)),Sx.call(this)}Fe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Oq(t,e){var n=new Error("write after end");t.emit("error",n),Br.nextTick(e,n)}function Iq(t,e,n,r){var i=!0,o=!1;return n===null?o=new TypeError("May not write null values to stream"):typeof n!="string"&&n!==void 0&&!e.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),Br.nextTick(r,o),i=!1),i}Fe.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=!r.objectMode&&Fq(t);return o&&!Tu.isBuffer(t)&&(t=Cq(t)),typeof e=="function"&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),typeof n!="function"&&(n=Rq),r.ended?Oq(this,n):(o||Iq(this,r,t,n))&&(r.pendingcb++,i=Pq(this,r,o,t,e,n)),i};Fe.prototype.cork=function(){var t=this._writableState;t.corked++};Fe.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,!t.writing&&!t.corked&&!t.bufferProcessing&&t.bufferedRequest&&kx(this,t))};Fe.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this};function Lq(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&typeof e=="string"&&(e=Tu.from(e,n)),e}Object.defineProperty(Fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Pq(t,e,n,r,i,o){if(!n){var s=Lq(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else wd(t,e,!1,a,r,i,o);return l}function wd(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function qq(t,e,n,r,i){--e.pendingcb,n?(Br.nextTick(i,r),Br.nextTick(ws,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),ws(t,e))}function Mq(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function Nq(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(Mq(n),e)qq(t,n,r,e,i);else{var o=Tx(n);!o&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&kx(t,n),r?kq(Dx,t,n,o,i):Dx(t,n,o,i)}}function Dx(t,e,n,r){n||Bq(t,e),e.pendingcb--,r(),ws(t,e)}function Bq(t,e){e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function kx(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var s=0,a=!0;n;)i[s]=n,n.isBuf||(a=!1),n=n.next,s+=1;i.allBuffers=a,wd(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new xx(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,c=n.callback,f=e.objectMode?1:l.length;if(wd(t,e,!1,f,l,u,c),n=n.next,e.bufferedRequestCount--,e.writing)break}n===null&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}Fe.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))};Fe.prototype._writev=null;Fe.prototype.end=function(t,e,n){var r=this._writableState;typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null),t!=null&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||zq(this,r,n)};function Tx(t){return t.ending&&t.length===0&&t.bufferedRequest===null&&!t.finished&&!t.writing}function jq(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),ws(t,e)})}function Uq(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"?(e.pendingcb++,e.finalCalled=!0,Br.nextTick(jq,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function ws(t,e){var n=Tx(e);return n&&(Uq(t,e),e.pendingcb===0&&(e.finished=!0,t.emit("finish"))),n}function zq(t,e,n){e.ending=!0,ws(t,e),n&&(e.finished?Br.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function Wq(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}Object.defineProperty(Fe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}});Fe.prototype.destroy=Ex.destroy;Fe.prototype._undestroy=Ex.undestroy;Fe.prototype._destroy=function(t,e){this.end(),e(t)}});var jr=b((Bne,Ox)=>{"use strict";var Cx=ys(),$q=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};Ox.exports=vn;var Fx=Object.create(Ni());Fx.inherits=Bi();var Rx=vd(),xd=_d();Fx.inherits(vn,Rx);for(Dd=$q(xd.prototype),Au=0;Au<Dd.length;Au++)Cu=Dd[Au],vn.prototype[Cu]||(vn.prototype[Cu]=xd.prototype[Cu]);var Dd,Cu,Au;function vn(t){if(!(this instanceof vn))return new vn(t);Rx.call(this,t),xd.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Hq)}Object.defineProperty(vn.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Hq(){this.allowHalfOpen||this._writableState.ended||Cx.nextTick(Gq,this)}function Gq(t){t.end()}Object.defineProperty(vn.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}});vn.prototype._destroy=function(t,e){this.push(null),this.end(),Cx.nextTick(e,t)}});var vd=b((Une,$x)=>{"use strict";var zi=ys();$x.exports=ye;var Vq=fx(),Ds;ye.ReadableState=Bx;var jne=N("events").EventEmitter,qx=function(t,e){return t.listeners(e).length},Ad=hd(),xs=xu().Buffer,Yq=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Kq(t){return xs.from(t)}function Qq(t){return xs.isBuffer(t)||t instanceof Yq}var Mx=Object.create(Ni());Mx.inherits=Bi();var Sd=N("util"),fe=void 0;Sd&&Sd.debuglog?fe=Sd.debuglog("stream"):fe=function(){};var Zq=yx(),Nx=bd(),Ui;Mx.inherits(ye,Ad);var Ed=["error","close","destroy","pause","resume"];function Jq(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):Vq(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}function Bx(t,e){Ds=Ds||jr(),t=t||{};var n=e instanceof Ds;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,i=t.readableHighWaterMark,o=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Zq,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(Ui||(Ui=N("string_decoder").StringDecoder),this.decoder=new Ui(t.encoding),this.encoding=t.encoding)}function ye(t){if(Ds=Ds||jr(),!(this instanceof ye))return new ye(t);this._readableState=new Bx(t,this),this.readable=!0,t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy)),Ad.call(this)}Object.defineProperty(ye.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});ye.prototype.destroy=Nx.destroy;ye.prototype._undestroy=Nx.undestroy;ye.prototype._destroy=function(t,e){this.push(null),e(t)};ye.prototype.push=function(t,e){var n=this._readableState,r;return n.objectMode?r=!0:typeof t=="string"&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=xs.from(t,e),e=""),r=!0),jx(this,t,e,!1,r)};ye.prototype.unshift=function(t){return jx(this,t,null,!0,!1)};function jx(t,e,n,r,i){var o=t._readableState;if(e===null)o.reading=!1,nM(t,o);else{var s;i||(s=Xq(o,e)),s?t.emit("error",s):o.objectMode||e&&e.length>0?(typeof e!="string"&&!o.objectMode&&Object.getPrototypeOf(e)!==xs.prototype&&(e=Kq(e)),r?o.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):kd(t,o,e,!0):o.ended?t.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(e=o.decoder.write(e),o.objectMode||e.length!==0?kd(t,o,e,!1):Ux(t,o)):kd(t,o,e,!1))):r||(o.reading=!1)}return eM(o)}function kd(t,e,n,r){e.flowing&&e.length===0&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&Fu(t)),Ux(t,e)}function Xq(t,e){var n;return!Qq(e)&&typeof e!="string"&&e!==void 0&&!t.objectMode&&(n=new TypeError("Invalid non-string/buffer chunk")),n}function eM(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||t.length===0)}ye.prototype.isPaused=function(){return this._readableState.flowing===!1};ye.prototype.setEncoding=function(t){return Ui||(Ui=N("string_decoder").StringDecoder),this._readableState.decoder=new Ui(t),this._readableState.encoding=t,this};var Ix=8388608;function tM(t){return t>=Ix?t=Ix:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function Lx(t,e){return t<=0||e.length===0&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=tM(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}ye.prototype.read=function(t){fe("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(t!==0&&(e.emittedReadable=!1),t===0&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return fe("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Td(this):Fu(this),null;if(t=Lx(t,e),t===0&&e.ended)return e.length===0&&Td(this),null;var r=e.needReadable;fe("need readable",r),(e.length===0||e.length-t<e.highWaterMark)&&(r=!0,fe("length less than watermark",r)),e.ended||e.reading?(r=!1,fe("reading or ended",r)):r&&(fe("do read"),e.reading=!0,e.sync=!0,e.length===0&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=Lx(n,e)));var i;return t>0?i=zx(t,e):i=null,i===null?(e.needReadable=!0,t=0):e.length-=t,e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Td(this)),i!==null&&this.emit("data",i),i};function nM(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,Fu(t)}}function Fu(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(fe("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?zi.nextTick(Px,t):Px(t))}function Px(t){fe("emit readable"),t.emit("readable"),Cd(t)}function Ux(t,e){e.readingMore||(e.readingMore=!0,zi.nextTick(rM,t,e))}function rM(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(fe("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}ye.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))};ye.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t);break}r.pipesCount+=1,fe("pipe count=%d opts=%j",r.pipesCount,e);var i=(!e||e.end!==!1)&&t!==process.stdout&&t!==process.stderr,o=i?a:k;r.endEmitted?zi.nextTick(o):n.once("end",o),t.on("unpipe",s);function s(g,m){fe("onunpipe"),g===n&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}function a(){fe("onend"),t.end()}var l=iM(n);t.on("drain",l);var u=!1;function c(){fe("cleanup"),t.removeListener("close",w),t.removeListener("finish",D),t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",a),n.removeListener("end",k),n.removeListener("data",h),u=!0,r.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&l()}var f=!1;n.on("data",h);function h(g){fe("ondata"),f=!1;var m=t.write(g);m===!1&&!f&&((r.pipesCount===1&&r.pipes===t||r.pipesCount>1&&Wx(r.pipes,t)!==-1)&&!u&&(fe("false write response, pause",r.awaitDrain),r.awaitDrain++,f=!0),n.pause())}function p(g){fe("onerror",g),k(),t.removeListener("error",p),qx(t,"error")===0&&t.emit("error",g)}Jq(t,"error",p);function w(){t.removeListener("finish",D),k()}t.once("close",w);function D(){fe("onfinish"),t.removeListener("close",w),k()}t.once("finish",D);function k(){fe("unpipe"),n.unpipe(t)}return t.emit("pipe",n),r.flowing||(fe("pipe resume"),n.resume()),t};function iM(t){return function(){var e=t._readableState;fe("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,e.awaitDrain===0&&qx(t,"data")&&(e.flowing=!0,Cd(t))}}ye.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=Wx(e.pipes,t);return s===-1?this:(e.pipes.splice(s,1),e.pipesCount-=1,e.pipesCount===1&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)};ye.prototype.on=function(t,e){var n=Ad.prototype.on.call(this,t,e);if(t==="data")this._readableState.flowing!==!1&&this.resume();else if(t==="readable"){var r=this._readableState;!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Fu(this):zi.nextTick(oM,this))}return n};ye.prototype.addListener=ye.prototype.on;function oM(t){fe("readable nexttick read 0"),t.read(0)}ye.prototype.resume=function(){var t=this._readableState;return t.flowing||(fe("resume"),t.flowing=!0,sM(this,t)),this};function sM(t,e){e.resumeScheduled||(e.resumeScheduled=!0,zi.nextTick(aM,t,e))}function aM(t,e){e.reading||(fe("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),Cd(t),e.flowing&&!e.reading&&t.read(0)}ye.prototype.pause=function(){return fe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(fe("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Cd(t){var e=t._readableState;for(fe("flow",e.flowing);e.flowing&&t.read()!==null;);}ye.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;t.on("end",function(){if(fe("wrapped end"),n.decoder&&!n.ended){var s=n.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),t.on("data",function(s){if(fe("wrapped data"),n.decoder&&(s=n.decoder.write(s)),!(n.objectMode&&s==null)&&!(!n.objectMode&&(!s||!s.length))){var a=e.push(s);a||(r=!0,t.pause())}});for(var i in t)this[i]===void 0&&typeof t[i]=="function"&&(this[i]=(function(s){return function(){return t[s].apply(t,arguments)}})(i));for(var o=0;o<Ed.length;o++)t.on(Ed[o],this.emit.bind(this,Ed[o]));return this._read=function(s){fe("wrapped _read",s),r&&(r=!1,t.resume())},this};Object.defineProperty(ye.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});ye._fromList=zx;function zx(t,e){if(e.length===0)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.head.data:n=e.buffer.concat(e.length),e.buffer.clear()):n=lM(t,e.buffer,e.decoder),n}function lM(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):t===e.head.data.length?r=e.shift():r=n?uM(t,e):cM(t,e),r}function uM(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),t-=s,t===0){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}function cM(t,e){var n=xs.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),t-=s,t===0){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}function Td(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,zi.nextTick(fM,e,t))}function fM(t,e){!t.endEmitted&&t.length===0&&(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function Wx(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}});var Fd=b((zne,Vx)=>{"use strict";Vx.exports=Sn;var Ru=jr(),Gx=Object.create(Ni());Gx.inherits=Bi();Gx.inherits(Sn,Ru);function hM(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,e!=null&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Sn(t){if(!(this instanceof Sn))return new Sn(t);Ru.call(this,t),this._transformState={afterTransform:hM.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",pM)}function pM(){var t=this;typeof this._flush=="function"?this._flush(function(e,n){Hx(t,e,n)}):Hx(this,null,null)}Sn.prototype.push=function(t,e){return this._transformState.needTransform=!1,Ru.prototype.push.call(this,t,e)};Sn.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")};Sn.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Sn.prototype._read=function(t){var e=this._transformState;e.writechunk!==null&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0};Sn.prototype._destroy=function(t,e){var n=this;Ru.prototype._destroy.call(this,t,function(r){e(r),n.emit("close")})};function Hx(t,e,n){if(e)return t.emit("error",e);if(n!=null&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}});var Zx=b((Wne,Qx)=>{"use strict";Qx.exports=vs;var Yx=Fd(),Kx=Object.create(Ni());Kx.inherits=Bi();Kx.inherits(vs,Yx);function vs(t){if(!(this instanceof vs))return new vs(t);Yx.call(this,t)}vs.prototype._transform=function(t,e,n){n(null,t)}});var Jx=b(($e,Ou)=>{"use strict";var en=N("stream");process.env.READABLE_STREAM==="disable"&&en?(Ou.exports=en,$e=Ou.exports=en.Readable,$e.Readable=en.Readable,$e.Writable=en.Writable,$e.Duplex=en.Duplex,$e.Transform=en.Transform,$e.PassThrough=en.PassThrough,$e.Stream=en):($e=Ou.exports=vd(),$e.Stream=en||$e,$e.Readable=$e,$e.Writable=_d(),$e.Duplex=jr(),$e.Transform=Fd(),$e.PassThrough=Zx())});var ev=b(($ne,Xx)=>{"use strict";Xx.exports=Jx().PassThrough});var iv=b((Hne,rv)=>{"use strict";var tv=N("util"),Pu=ev();rv.exports={Readable:Iu,Writable:Lu};tv.inherits(Iu,Pu);tv.inherits(Lu,Pu);function nv(t,e,n){t[e]=function(){return delete t[e],n.apply(this,arguments),this[e].apply(this,arguments)}}function Iu(t,e){if(!(this instanceof Iu))return new Iu(t,e);Pu.call(this,e),nv(this,"_read",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),n.pipe(this)}),this.emit("readable")}function Lu(t,e){if(!(this instanceof Lu))return new Lu(t,e);Pu.call(this,e),nv(this,"_write",function(){var n=t.call(this,e),r=this.emit.bind(this,"error");n.on("error",r),this.pipe(n)}),this.emit("writable")}});var Rd=b((Gne,ov)=>{"use strict";ov.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var n=t.length;if(n<=1)return t;var r="";if(n>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),r="//")}var o=t.split(/[/\\]+/);return e!==!1&&o[o.length-1]===""&&o.pop(),r+o.join("/")}});var Od=b((Vne,sv)=>{"use strict";function dM(t){return t}sv.exports=dM});var lv=b((Yne,av)=>{"use strict";function mM(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}av.exports=mM});var fv=b((Kne,cv)=>{"use strict";var gM=lv(),uv=Math.max;function yM(t,e,n){return e=uv(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=uv(r.length-e,0),s=Array(o);++i<o;)s[i]=r[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=r[i];return a[e]=n(s),gM(t,this,a)}}cv.exports=yM});var pv=b((Qne,hv)=>{"use strict";function bM(t){return function(){return t}}hv.exports=bM});var Id=b((Zne,dv)=>{"use strict";var wM=typeof global=="object"&&global&&global.Object===Object&&global;dv.exports=wM});var Wi=b((Jne,mv)=>{"use strict";var _M=Id(),DM=typeof self=="object"&&self&&self.Object===Object&&self,xM=_M||DM||Function("return this")();mv.exports=xM});var qu=b((Xne,gv)=>{"use strict";var vM=Wi(),SM=vM.Symbol;gv.exports=SM});var _v=b((ere,wv)=>{"use strict";var yv=qu(),bv=Object.prototype,EM=bv.hasOwnProperty,kM=bv.toString,Ss=yv?yv.toStringTag:void 0;function TM(t){var e=EM.call(t,Ss),n=t[Ss];try{t[Ss]=void 0;var r=!0}catch{}var i=kM.call(t);return r&&(e?t[Ss]=n:delete t[Ss]),i}wv.exports=TM});var xv=b((tre,Dv)=>{"use strict";var AM=Object.prototype,CM=AM.toString;function FM(t){return CM.call(t)}Dv.exports=FM});var Es=b((nre,Ev)=>{"use strict";var vv=qu(),RM=_v(),OM=xv(),IM="[object Null]",LM="[object Undefined]",Sv=vv?vv.toStringTag:void 0;function PM(t){return t==null?t===void 0?LM:IM:Sv&&Sv in Object(t)?RM(t):OM(t)}Ev.exports=PM});var ks=b((rre,kv)=>{"use strict";function qM(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}kv.exports=qM});var Ld=b((ire,Tv)=>{"use strict";var MM=Es(),NM=ks(),BM="[object AsyncFunction]",jM="[object Function]",UM="[object GeneratorFunction]",zM="[object Proxy]";function WM(t){if(!NM(t))return!1;var e=MM(t);return e==jM||e==UM||e==BM||e==zM}Tv.exports=WM});var Cv=b((ore,Av)=>{"use strict";var $M=Wi(),HM=$M["__core-js_shared__"];Av.exports=HM});var Ov=b((sre,Rv)=>{"use strict";var Pd=Cv(),Fv=(function(){var t=/[^.]+$/.exec(Pd&&Pd.keys&&Pd.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function GM(t){return!!Fv&&Fv in t}Rv.exports=GM});var Lv=b((are,Iv)=>{"use strict";var VM=Function.prototype,YM=VM.toString;function KM(t){if(t!=null){try{return YM.call(t)}catch{}try{return t+""}catch{}}return""}Iv.exports=KM});var qv=b((lre,Pv)=>{"use strict";var QM=Ld(),ZM=Ov(),JM=ks(),XM=Lv(),eN=/[\\^$.*+?()[\]{}|]/g,tN=/^\[object .+?Constructor\]$/,nN=Function.prototype,rN=Object.prototype,iN=nN.toString,oN=rN.hasOwnProperty,sN=RegExp("^"+iN.call(oN).replace(eN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aN(t){if(!JM(t)||ZM(t))return!1;var e=QM(t)?sN:tN;return e.test(XM(t))}Pv.exports=aN});var Nv=b((ure,Mv)=>{"use strict";function lN(t,e){return t?.[e]}Mv.exports=lN});var Ts=b((cre,Bv)=>{"use strict";var uN=qv(),cN=Nv();function fN(t,e){var n=cN(t,e);return uN(n)?n:void 0}Bv.exports=fN});var Uv=b((fre,jv)=>{"use strict";var hN=Ts(),pN=(function(){try{var t=hN(Object,"defineProperty");return t({},"",{}),t}catch{}})();jv.exports=pN});var $v=b((hre,Wv)=>{"use strict";var dN=pv(),zv=Uv(),mN=Od(),gN=zv?function(t,e){return zv(t,"toString",{configurable:!0,enumerable:!1,value:dN(e),writable:!0})}:mN;Wv.exports=gN});var Gv=b((pre,Hv)=>{"use strict";var yN=800,bN=16,wN=Date.now;function _N(t){var e=0,n=0;return function(){var r=wN(),i=bN-(r-n);if(n=r,i>0){if(++e>=yN)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}Hv.exports=_N});var Yv=b((dre,Vv)=>{"use strict";var DN=$v(),xN=Gv(),vN=xN(DN);Vv.exports=vN});var Mu=b((mre,Kv)=>{"use strict";var SN=Od(),EN=fv(),kN=Yv();function TN(t,e){return kN(EN(t,e,SN),t+"")}Kv.exports=TN});var Nu=b((gre,Qv)=>{"use strict";function AN(t,e){return t===e||t!==t&&e!==e}Qv.exports=AN});var qd=b((yre,Zv)=>{"use strict";var CN=9007199254740991;function FN(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=CN}Zv.exports=FN});var Bu=b((bre,Jv)=>{"use strict";var RN=Ld(),ON=qd();function IN(t){return t!=null&&ON(t.length)&&!RN(t)}Jv.exports=IN});var Md=b((wre,Xv)=>{"use strict";var LN=9007199254740991,PN=/^(?:0|[1-9]\d*)$/;function qN(t,e){var n=typeof t;return e=e??LN,!!e&&(n=="number"||n!="symbol"&&PN.test(t))&&t>-1&&t%1==0&&t<e}Xv.exports=qN});var t1=b((_re,e1)=>{"use strict";var MN=Nu(),NN=Bu(),BN=Md(),jN=ks();function UN(t,e,n){if(!jN(n))return!1;var r=typeof e;return(r=="number"?NN(n)&&BN(e,n.length):r=="string"&&e in n)?MN(n[e],t):!1}e1.exports=UN});var r1=b((Dre,n1)=>{"use strict";function zN(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}n1.exports=zN});var $i=b((xre,i1)=>{"use strict";function WN(t){return t!=null&&typeof t=="object"}i1.exports=WN});var s1=b((vre,o1)=>{"use strict";var $N=Es(),HN=$i(),GN="[object Arguments]";function VN(t){return HN(t)&&$N(t)==GN}o1.exports=VN});var Nd=b((Sre,u1)=>{"use strict";var a1=s1(),YN=$i(),l1=Object.prototype,KN=l1.hasOwnProperty,QN=l1.propertyIsEnumerable,ZN=a1((function(){return arguments})())?a1:function(t){return YN(t)&&KN.call(t,"callee")&&!QN.call(t,"callee")};u1.exports=ZN});var Bd=b((Ere,c1)=>{"use strict";var JN=Array.isArray;c1.exports=JN});var h1=b((kre,f1)=>{"use strict";function XN(){return!1}f1.exports=XN});var g1=b((As,Hi)=>{"use strict";var eB=Wi(),tB=h1(),m1=typeof As=="object"&&As&&!As.nodeType&&As,p1=m1&&typeof Hi=="object"&&Hi&&!Hi.nodeType&&Hi,nB=p1&&p1.exports===m1,d1=nB?eB.Buffer:void 0,rB=d1?d1.isBuffer:void 0,iB=rB||tB;Hi.exports=iB});var b1=b((Tre,y1)=>{"use strict";var oB=Es(),sB=qd(),aB=$i(),lB="[object Arguments]",uB="[object Array]",cB="[object Boolean]",fB="[object Date]",hB="[object Error]",pB="[object Function]",dB="[object Map]",mB="[object Number]",gB="[object Object]",yB="[object RegExp]",bB="[object Set]",wB="[object String]",_B="[object WeakMap]",DB="[object ArrayBuffer]",xB="[object DataView]",vB="[object Float32Array]",SB="[object Float64Array]",EB="[object Int8Array]",kB="[object Int16Array]",TB="[object Int32Array]",AB="[object Uint8Array]",CB="[object Uint8ClampedArray]",FB="[object Uint16Array]",RB="[object Uint32Array]",be={};be[vB]=be[SB]=be[EB]=be[kB]=be[TB]=be[AB]=be[CB]=be[FB]=be[RB]=!0;be[lB]=be[uB]=be[DB]=be[cB]=be[xB]=be[fB]=be[hB]=be[pB]=be[dB]=be[mB]=be[gB]=be[yB]=be[bB]=be[wB]=be[_B]=!1;function OB(t){return aB(t)&&sB(t.length)&&!!be[oB(t)]}y1.exports=OB});var jd=b((Are,w1)=>{"use strict";function IB(t){return function(e){return t(e)}}w1.exports=IB});var D1=b((Cs,Gi)=>{"use strict";var LB=Id(),_1=typeof Cs=="object"&&Cs&&!Cs.nodeType&&Cs,Fs=_1&&typeof Gi=="object"&&Gi&&!Gi.nodeType&&Gi,PB=Fs&&Fs.exports===_1,Ud=PB&&LB.process,qB=(function(){try{var t=Fs&&Fs.require&&Fs.require("util").types;return t||Ud&&Ud.binding&&Ud.binding("util")}catch{}})();Gi.exports=qB});var E1=b((Cre,S1)=>{"use strict";var MB=b1(),NB=jd(),x1=D1(),v1=x1&&x1.isTypedArray,BB=v1?NB(v1):MB;S1.exports=BB});var T1=b((Fre,k1)=>{"use strict";var jB=r1(),UB=Nd(),zB=Bd(),WB=g1(),$B=Md(),HB=E1(),GB=Object.prototype,VB=GB.hasOwnProperty;function YB(t,e){var n=zB(t),r=!n&&UB(t),i=!n&&!r&&WB(t),o=!n&&!r&&!i&&HB(t),s=n||r||i||o,a=s?jB(t.length,String):[],l=a.length;for(var u in t)(e||VB.call(t,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||$B(u,l)))&&a.push(u);return a}k1.exports=YB});var C1=b((Rre,A1)=>{"use strict";var KB=Object.prototype;function QB(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||KB;return t===n}A1.exports=QB});var R1=b((Ore,F1)=>{"use strict";function ZB(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}F1.exports=ZB});var I1=b((Ire,O1)=>{"use strict";var JB=ks(),XB=C1(),e5=R1(),t5=Object.prototype,n5=t5.hasOwnProperty;function r5(t){if(!JB(t))return e5(t);var e=XB(t),n=[];for(var r in t)r=="constructor"&&(e||!n5.call(t,r))||n.push(r);return n}O1.exports=r5});var P1=b((Lre,L1)=>{"use strict";var i5=T1(),o5=I1(),s5=Bu();function a5(t){return s5(t)?i5(t,!0):o5(t)}L1.exports=a5});var N1=b((Pre,M1)=>{"use strict";var l5=Mu(),u5=Nu(),c5=t1(),f5=P1(),q1=Object.prototype,h5=q1.hasOwnProperty,p5=l5(function(t,e){t=Object(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&c5(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],s=f5(o),a=-1,l=s.length;++a<l;){var u=s[a],c=t[u];(c===void 0||u5(c,q1[u])&&!h5.call(t,u))&&(t[u]=o[u])}return t});M1.exports=p5});var xe=b((qre,B1)=>{"use strict";var zd=class extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError(`Expected input to be an Array, got ${typeof e}`);let n="";for(let r=0;r<e.length;r++)n+=` ${e[r].stack}
|
|
43
|
-
`;super(n),this.name="AggregateError",this.errors=e}};B1.exports={AggregateError:zd,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,n){return t.slice(e,n)},Error,FunctionPrototypeCall(t,e,...n){return t.call(e,...n)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,n){return Object.defineProperty(t,e,n)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,n){return t.then(e,n)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,n){return t.slice(e,n)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,n){return t.set(e,n)},Boolean,Uint8Array}});var Wd=b((Mre,j1)=>{"use strict";j1.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[n,r]){let i=e.shift();return r==="f"?i.toFixed(6):r==="j"?JSON.stringify(i):r==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var Xe=b((Nre,W1)=>{"use strict";var{format:d5,inspect:ju}=Wd(),{AggregateError:m5}=xe(),g5=globalThis.AggregateError||m5,y5=Symbol("kIsNodeError"),b5=["string","function","number","object","Function","Object","boolean","bigint","symbol"],w5=/^([A-Z][a-z0-9]*)+$/,_5="__node_internal_",Uu={};function Ur(t,e){if(!t)throw new Uu.ERR_INTERNAL_ASSERTION(e)}function U1(t){let e="",n=t.length,r=t[0]==="-"?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function D5(t,e,n){if(typeof e=="function")return Ur(e.length<=n.length,`Code: ${t}; The provided arguments length (${n.length}) does not match the required ones (${e.length}).`),e(...n);let r=(e.match(/%[dfijoOs]/g)||[]).length;return Ur(r===n.length,`Code: ${t}; The provided arguments length (${n.length}) does not match the required ones (${r}).`),n.length===0?e:d5(e,...n)}function He(t,e,n){n||(n=Error);class r extends n{constructor(...o){super(D5(t,e,o))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=t,r.prototype[y5]=!0,Uu[t]=r}function z1(t){let e=_5+t.name;return Object.defineProperty(t,"name",{value:e}),t}function x5(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let n=new g5([e,t],e.message);return n.code=e.code,n}return t||e}var $d=class extends Error{constructor(e="The operation was aborted",n=void 0){if(n!==void 0&&typeof n!="object")throw new Uu.ERR_INVALID_ARG_TYPE("options","Object",n);super(e,n),this.code="ABORT_ERR",this.name="AbortError"}};He("ERR_ASSERTION","%s",Error);He("ERR_INVALID_ARG_TYPE",(t,e,n)=>{Ur(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let r="The ";t.endsWith(" argument")?r+=`${t} `:r+=`"${t}" ${t.includes(".")?"property":"argument"} `,r+="must be ";let i=[],o=[],s=[];for(let l of e)Ur(typeof l=="string","All expected entries have to be of type string"),b5.includes(l)?i.push(l.toLowerCase()):w5.test(l)?o.push(l):(Ur(l!=="object",'The value "object" should be written as "Object"'),s.push(l));if(o.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),o.push("Object"))}if(i.length>0){switch(i.length){case 1:r+=`of type ${i[0]}`;break;case 2:r+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();r+=`one of type ${i.join(", ")}, or ${l}`}}(o.length>0||s.length>0)&&(r+=" or ")}if(o.length>0){switch(o.length){case 1:r+=`an instance of ${o[0]}`;break;case 2:r+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let l=o.pop();r+=`an instance of ${o.join(", ")}, or ${l}`}}s.length>0&&(r+=" or ")}switch(s.length){case 0:break;case 1:s[0].toLowerCase()!==s[0]&&(r+="an "),r+=`${s[0]}`;break;case 2:r+=`one of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();r+=`one of ${s.join(", ")}, or ${l}`}}if(n==null)r+=`. Received ${n}`;else if(typeof n=="function"&&n.name)r+=`. Received function ${n.name}`;else if(typeof n=="object"){var a;if((a=n.constructor)!==null&&a!==void 0&&a.name)r+=`. Received an instance of ${n.constructor.name}`;else{let l=ju(n,{depth:-1});r+=`. Received ${l}`}}else{let l=ju(n,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),r+=`. Received type ${typeof n} (${l})`}return r},TypeError);He("ERR_INVALID_ARG_VALUE",(t,e,n="is invalid")=>{let r=ju(e);return r.length>128&&(r=r.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${n}. Received ${r}`},TypeError);He("ERR_INVALID_RETURN_VALUE",(t,e,n)=>{var r;let i=n!=null&&(r=n.constructor)!==null&&r!==void 0&&r.name?`instance of ${n.constructor.name}`:`type ${typeof n}`;return`Expected ${t} to be returned from the "${e}" function but got ${i}.`},TypeError);He("ERR_MISSING_ARGS",(...t)=>{Ur(t.length>0,"At least one arg needs to be specified");let e,n=t.length;switch(t=(Array.isArray(t)?t:[t]).map(r=>`"${r}"`).join(" or "),n){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{let r=t.pop();e+=`The ${t.join(", ")}, and ${r} arguments`}break}return`${e} must be specified`},TypeError);He("ERR_OUT_OF_RANGE",(t,e,n)=>{Ur(e,'Missing "range" argument');let r;if(Number.isInteger(n)&&Math.abs(n)>2**32)r=U1(String(n));else if(typeof n=="bigint"){r=String(n);let i=BigInt(2)**BigInt(32);(n>i||n<-i)&&(r=U1(r)),r+="n"}else r=ju(n);return`The value of "${t}" is out of range. It must be ${e}. Received ${r}`},RangeError);He("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);He("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);He("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);He("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);He("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);He("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);He("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);He("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);He("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);He("ERR_STREAM_WRITE_AFTER_END","write after end",Error);He("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);W1.exports={AbortError:$d,aggregateTwoErrors:z1(x5),hideStackFrames:z1,codes:Uu}});var X1=b((Is,Os)=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});var K1=new WeakMap,Hd=new WeakMap;function we(t){let e=K1.get(t);return console.assert(e!=null,"'this' is expected an Event object, but got",t),e}function $1(t){if(t.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener);return}t.event.cancelable&&(t.canceled=!0,typeof t.event.preventDefault=="function"&&t.event.preventDefault())}function Vi(t,e){K1.set(this,{eventTarget:t,event:e,eventPhase:2,currentTarget:t,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:e.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let n=Object.keys(e);for(let r=0;r<n.length;++r){let i=n[r];i in this||Object.defineProperty(this,i,Q1(i))}}Vi.prototype={get type(){return we(this).event.type},get target(){return we(this).eventTarget},get currentTarget(){return we(this).currentTarget},composedPath(){let t=we(this).currentTarget;return t==null?[]:[t]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return we(this).eventPhase},stopPropagation(){let t=we(this);t.stopped=!0,typeof t.event.stopPropagation=="function"&&t.event.stopPropagation()},stopImmediatePropagation(){let t=we(this);t.stopped=!0,t.immediateStopped=!0,typeof t.event.stopImmediatePropagation=="function"&&t.event.stopImmediatePropagation()},get bubbles(){return!!we(this).event.bubbles},get cancelable(){return!!we(this).event.cancelable},preventDefault(){$1(we(this))},get defaultPrevented(){return we(this).canceled},get composed(){return!!we(this).event.composed},get timeStamp(){return we(this).timeStamp},get srcElement(){return we(this).eventTarget},get cancelBubble(){return we(this).stopped},set cancelBubble(t){if(!t)return;let e=we(this);e.stopped=!0,typeof e.event.cancelBubble=="boolean"&&(e.event.cancelBubble=!0)},get returnValue(){return!we(this).canceled},set returnValue(t){t||$1(we(this))},initEvent(){}};Object.defineProperty(Vi.prototype,"constructor",{value:Vi,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Vi.prototype,window.Event.prototype),Hd.set(window.Event.prototype,Vi));function Q1(t){return{get(){return we(this).event[t]},set(e){we(this).event[t]=e},configurable:!0,enumerable:!0}}function v5(t){return{value(){let e=we(this).event;return e[t].apply(e,arguments)},configurable:!0,enumerable:!0}}function S5(t,e){let n=Object.keys(e);if(n.length===0)return t;function r(i,o){t.call(this,i,o)}r.prototype=Object.create(t.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(let i=0;i<n.length;++i){let o=n[i];if(!(o in t.prototype)){let a=typeof Object.getOwnPropertyDescriptor(e,o).value=="function";Object.defineProperty(r.prototype,o,a?v5(o):Q1(o))}}return r}function Z1(t){if(t==null||t===Object.prototype)return Vi;let e=Hd.get(t);return e==null&&(e=S5(Z1(Object.getPrototypeOf(t)),t),Hd.set(t,e)),e}function E5(t,e){let n=Z1(Object.getPrototypeOf(e));return new n(t,e)}function k5(t){return we(t).immediateStopped}function T5(t,e){we(t).eventPhase=e}function A5(t,e){we(t).currentTarget=e}function H1(t,e){we(t).passiveListener=e}var J1=new WeakMap,G1=1,V1=2,zu=3;function Wu(t){return t!==null&&typeof t=="object"}function Rs(t){let e=J1.get(t);if(e==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return e}function C5(t){return{get(){let n=Rs(this).get(t);for(;n!=null;){if(n.listenerType===zu)return n.listener;n=n.next}return null},set(e){typeof e!="function"&&!Wu(e)&&(e=null);let n=Rs(this),r=null,i=n.get(t);for(;i!=null;)i.listenerType===zu?r!==null?r.next=i.next:i.next!==null?n.set(t,i.next):n.delete(t):r=i,i=i.next;if(e!==null){let o={listener:e,listenerType:zu,passive:!1,once:!1,next:null};r===null?n.set(t,o):r.next=o}},configurable:!0,enumerable:!0}}function Gd(t,e){Object.defineProperty(t,`on${e}`,C5(e))}function Y1(t){function e(){Wt.call(this)}e.prototype=Object.create(Wt.prototype,{constructor:{value:e,configurable:!0,writable:!0}});for(let n=0;n<t.length;++n)Gd(e.prototype,t[n]);return e}function Wt(){if(this instanceof Wt){J1.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return Y1(arguments[0]);if(arguments.length>0){let t=new Array(arguments.length);for(let e=0;e<arguments.length;++e)t[e]=arguments[e];return Y1(t)}throw new TypeError("Cannot call a class as a function")}Wt.prototype={addEventListener(t,e,n){if(e==null)return;if(typeof e!="function"&&!Wu(e))throw new TypeError("'listener' should be a function or an object.");let r=Rs(this),i=Wu(n),s=(i?!!n.capture:!!n)?G1:V1,a={listener:e,listenerType:s,passive:i&&!!n.passive,once:i&&!!n.once,next:null},l=r.get(t);if(l===void 0){r.set(t,a);return}let u=null;for(;l!=null;){if(l.listener===e&&l.listenerType===s)return;u=l,l=l.next}u.next=a},removeEventListener(t,e,n){if(e==null)return;let r=Rs(this),o=(Wu(n)?!!n.capture:!!n)?G1:V1,s=null,a=r.get(t);for(;a!=null;){if(a.listener===e&&a.listenerType===o){s!==null?s.next=a.next:a.next!==null?r.set(t,a.next):r.delete(t);return}s=a,a=a.next}},dispatchEvent(t){if(t==null||typeof t.type!="string")throw new TypeError('"event.type" should be a string.');let e=Rs(this),n=t.type,r=e.get(n);if(r==null)return!0;let i=E5(this,t),o=null;for(;r!=null;){if(r.once?o!==null?o.next=r.next:r.next!==null?e.set(n,r.next):e.delete(n):o=r,H1(i,r.passive?r.listener:null),typeof r.listener=="function")try{r.listener.call(this,i)}catch(s){typeof console<"u"&&typeof console.error=="function"&&console.error(s)}else r.listenerType!==zu&&typeof r.listener.handleEvent=="function"&&r.listener.handleEvent(i);if(k5(i))break;r=r.next}return H1(i,null),T5(i,0),A5(i,null),!i.defaultPrevented}};Object.defineProperty(Wt.prototype,"constructor",{value:Wt,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(Wt.prototype,window.EventTarget.prototype);Is.defineEventAttribute=Gd;Is.EventTarget=Wt;Is.default=Wt;Os.exports=Wt;Os.exports.EventTarget=Os.exports.default=Wt;Os.exports.defineEventAttribute=Gd});var Yi=b((Ps,Ls)=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var Vd=X1(),Qn=class extends Vd.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let e=$u.get(this);if(typeof e!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return e}};Vd.defineEventAttribute(Qn.prototype,"abort");function F5(){let t=Object.create(Qn.prototype);return Vd.EventTarget.call(t),$u.set(t,!1),t}function R5(t){$u.get(t)===!1&&($u.set(t,!0),t.dispatchEvent({type:"abort"}))}var $u=new WeakMap;Object.defineProperties(Qn.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Qn.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Zn=class{constructor(){tS.set(this,F5())}get signal(){return eS(this)}abort(){R5(eS(this))}},tS=new WeakMap;function eS(t){let e=tS.get(t);if(e==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${t===null?"null":typeof t}`);return e}Object.defineProperties(Zn.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Zn.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Ps.AbortController=Zn;Ps.AbortSignal=Qn;Ps.default=Zn;Ls.exports=Zn;Ls.exports.AbortController=Ls.exports.default=Zn;Ls.exports.AbortSignal=Qn});var ot=b((Bre,Kd)=>{"use strict";var O5=N("buffer"),{format:I5,inspect:L5}=Wd(),{codes:{ERR_INVALID_ARG_TYPE:Yd}}=Xe(),{kResistStopPropagation:P5,AggregateError:q5,SymbolDispose:M5}=xe(),N5=globalThis.AbortSignal||Yi().AbortSignal,B5=globalThis.AbortController||Yi().AbortController,j5=Object.getPrototypeOf(async function(){}).constructor,nS=globalThis.Blob||O5.Blob,U5=typeof nS<"u"?function(e){return e instanceof nS}:function(e){return!1},rS=(t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new Yd(e,"AbortSignal",t)},z5=(t,e)=>{if(typeof t!="function")throw new Yd(e,"Function",t)};Kd.exports={AggregateError:q5,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...n){e||(e=!0,t.apply(this,n))}},createDeferredPromise:function(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}},promisify(t){return new Promise((e,n)=>{t((r,...i)=>r?n(r):e(...i))})},debuglog(){return function(){}},format:I5,inspect:L5,types:{isAsyncFunction(t){return t instanceof j5},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:U5,deprecate(t,e){return t},addAbortListener:N("events").addAbortListener||function(e,n){if(e===void 0)throw new Yd("signal","AbortSignal",e);rS(e,"signal"),z5(n,"listener");let r;return e.aborted?queueMicrotask(()=>n()):(e.addEventListener("abort",n,{__proto__:null,once:!0,[P5]:!0}),r=()=>{e.removeEventListener("abort",n)}),{__proto__:null,[M5](){var i;(i=r)===null||i===void 0||i()}}},AbortSignalAny:N5.any||function(e){if(e.length===1)return e[0];let n=new B5,r=()=>n.abort();return e.forEach(i=>{rS(i,"signals"),i.addEventListener("abort",r,{once:!0})}),n.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",r))},{once:!0}),n.signal}};Kd.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Qi=b((jre,pS)=>{"use strict";var{ArrayIsArray:Zd,ArrayPrototypeIncludes:aS,ArrayPrototypeJoin:lS,ArrayPrototypeMap:W5,NumberIsInteger:Jd,NumberIsNaN:$5,NumberMAX_SAFE_INTEGER:H5,NumberMIN_SAFE_INTEGER:G5,NumberParseInt:V5,ObjectPrototypeHasOwnProperty:Y5,RegExpPrototypeExec:uS,String:K5,StringPrototypeToUpperCase:Q5,StringPrototypeTrim:Z5}=xe(),{hideStackFrames:Ot,codes:{ERR_SOCKET_BAD_PORT:J5,ERR_INVALID_ARG_TYPE:et,ERR_INVALID_ARG_VALUE:Ki,ERR_OUT_OF_RANGE:zr,ERR_UNKNOWN_SIGNAL:iS}}=Xe(),{normalizeEncoding:X5}=ot(),{isAsyncFunction:e6,isArrayBufferView:t6}=ot().types,oS={};function n6(t){return t===(t|0)}function r6(t){return t===t>>>0}var i6=/^[0-7]+$/,o6="must be a 32-bit unsigned integer or an octal string";function s6(t,e,n){if(typeof t>"u"&&(t=n),typeof t=="string"){if(uS(i6,t)===null)throw new Ki(e,t,o6);t=V5(t,8)}return cS(t,e),t}var a6=Ot((t,e,n=G5,r=H5)=>{if(typeof t!="number")throw new et(e,"number",t);if(!Jd(t))throw new zr(e,"an integer",t);if(t<n||t>r)throw new zr(e,`>= ${n} && <= ${r}`,t)}),l6=Ot((t,e,n=-2147483648,r=2147483647)=>{if(typeof t!="number")throw new et(e,"number",t);if(!Jd(t))throw new zr(e,"an integer",t);if(t<n||t>r)throw new zr(e,`>= ${n} && <= ${r}`,t)}),cS=Ot((t,e,n=!1)=>{if(typeof t!="number")throw new et(e,"number",t);if(!Jd(t))throw new zr(e,"an integer",t);let r=n?1:0,i=4294967295;if(t<r||t>i)throw new zr(e,`>= ${r} && <= ${i}`,t)});function Xd(t,e){if(typeof t!="string")throw new et(e,"string",t)}function u6(t,e,n=void 0,r){if(typeof t!="number")throw new et(e,"number",t);if(n!=null&&t<n||r!=null&&t>r||(n!=null||r!=null)&&$5(t))throw new zr(e,`${n!=null?`>= ${n}`:""}${n!=null&&r!=null?" && ":""}${r!=null?`<= ${r}`:""}`,t)}var c6=Ot((t,e,n)=>{if(!aS(n,t)){let i="must be one of: "+lS(W5(n,o=>typeof o=="string"?`'${o}'`:K5(o)),", ");throw new Ki(e,t,i)}});function fS(t,e){if(typeof t!="boolean")throw new et(e,"boolean",t)}function Qd(t,e,n){return t==null||!Y5(t,e)?n:t[e]}var f6=Ot((t,e,n=null)=>{let r=Qd(n,"allowArray",!1),i=Qd(n,"allowFunction",!1);if(!Qd(n,"nullable",!1)&&t===null||!r&&Zd(t)||typeof t!="object"&&(!i||typeof t!="function"))throw new et(e,"Object",t)}),h6=Ot((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new et(e,"a dictionary",t)}),Hu=Ot((t,e,n=0)=>{if(!Zd(t))throw new et(e,"Array",t);if(t.length<n){let r=`must be longer than ${n}`;throw new Ki(e,t,r)}});function p6(t,e){Hu(t,e);for(let n=0;n<t.length;n++)Xd(t[n],`${e}[${n}]`)}function d6(t,e){Hu(t,e);for(let n=0;n<t.length;n++)fS(t[n],`${e}[${n}]`)}function m6(t,e){Hu(t,e);for(let n=0;n<t.length;n++){let r=t[n],i=`${e}[${n}]`;if(r==null)throw new et(i,"AbortSignal",r);hS(r,i)}}function g6(t,e="signal"){if(Xd(t,e),oS[t]===void 0)throw oS[Q5(t)]!==void 0?new iS(t+" (signals must use all capital letters)"):new iS(t)}var y6=Ot((t,e="buffer")=>{if(!t6(t))throw new et(e,["Buffer","TypedArray","DataView"],t)});function b6(t,e){let n=X5(e),r=t.length;if(n==="hex"&&r%2!==0)throw new Ki("encoding",e,`is invalid for data of length ${r}`)}function w6(t,e="Port",n=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&Z5(t).length===0||+t!==+t>>>0||t>65535||t===0&&!n)throw new J5(e,t,n);return t|0}var hS=Ot((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new et(e,"AbortSignal",t)}),_6=Ot((t,e)=>{if(typeof t!="function")throw new et(e,"Function",t)}),D6=Ot((t,e)=>{if(typeof t!="function"||e6(t))throw new et(e,"Function",t)}),x6=Ot((t,e)=>{if(t!==void 0)throw new et(e,"undefined",t)});function v6(t,e,n){if(!aS(n,t))throw new et(e,`('${lS(n,"|")}')`,t)}var S6=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function sS(t,e){if(typeof t>"u"||!uS(S6,t))throw new Ki(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function E6(t){if(typeof t=="string")return sS(t,"hints"),t;if(Zd(t)){let e=t.length,n="";if(e===0)return n;for(let r=0;r<e;r++){let i=t[r];sS(i,"hints"),n+=i,r!==e-1&&(n+=", ")}return n}throw new Ki("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}pS.exports={isInt32:n6,isUint32:r6,parseFileMode:s6,validateArray:Hu,validateStringArray:p6,validateBooleanArray:d6,validateAbortSignalArray:m6,validateBoolean:fS,validateBuffer:y6,validateDictionary:h6,validateEncoding:b6,validateFunction:_6,validateInt32:l6,validateInteger:a6,validateNumber:u6,validateObject:f6,validateOneOf:c6,validatePlainFunction:D6,validatePort:w6,validateSignalName:g6,validateString:Xd,validateUint32:cS,validateUndefined:x6,validateUnion:v6,validateAbortSignal:hS,validateLinkHeaderValue:E6}});var Jn=b((Ure,dS)=>{"use strict";dS.exports=global.process});var nn=b((zre,CS)=>{"use strict";var{SymbolAsyncIterator:mS,SymbolIterator:gS,SymbolFor:Wr}=xe(),yS=Wr("nodejs.stream.destroyed"),bS=Wr("nodejs.stream.errored"),em=Wr("nodejs.stream.readable"),tm=Wr("nodejs.stream.writable"),wS=Wr("nodejs.stream.disturbed"),k6=Wr("nodejs.webstream.isClosedPromise"),T6=Wr("nodejs.webstream.controllerErrorFunction");function Gu(t,e=!1){var n;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((n=t._readableState)===null||n===void 0?void 0:n.readable)!==!1)&&(!t._writableState||t._readableState))}function Vu(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function A6(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function tn(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function _S(t){return!!(t&&!tn(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function DS(t){return!!(t&&!tn(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function xS(t){return!!(t&&!tn(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function C6(t){return _S(t)||DS(t)||xS(t)}function F6(t,e){return t==null?!1:e===!0?typeof t[mS]=="function":e===!1?typeof t[gS]=="function":typeof t[mS]=="function"||typeof t[gS]=="function"}function Yu(t){if(!tn(t))return null;let e=t._writableState,n=t._readableState,r=e||n;return!!(t.destroyed||t[yS]||r!=null&&r.destroyed)}function vS(t){if(!Vu(t))return null;if(t.writableEnded===!0)return!0;let e=t._writableState;return e!=null&&e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function R6(t,e){if(!Vu(t))return null;if(t.writableFinished===!0)return!0;let n=t._writableState;return n!=null&&n.errored?!1:typeof n?.finished!="boolean"?null:!!(n.finished||e===!1&&n.ended===!0&&n.length===0)}function O6(t){if(!Gu(t))return null;if(t.readableEnded===!0)return!0;let e=t._readableState;return!e||e.errored?!1:typeof e?.ended!="boolean"?null:e.ended}function SS(t,e){if(!Gu(t))return null;let n=t._readableState;return n!=null&&n.errored?!1:typeof n?.endEmitted!="boolean"?null:!!(n.endEmitted||e===!1&&n.ended===!0&&n.length===0)}function ES(t){return t&&t[em]!=null?t[em]:typeof t?.readable!="boolean"?null:Yu(t)?!1:Gu(t)&&t.readable&&!SS(t)}function kS(t){return t&&t[tm]!=null?t[tm]:typeof t?.writable!="boolean"?null:Yu(t)?!1:Vu(t)&&t.writable&&!vS(t)}function I6(t,e){return tn(t)?Yu(t)?!0:!(e?.readable!==!1&&ES(t)||e?.writable!==!1&&kS(t)):null}function L6(t){var e,n;return tn(t)?t.writableErrored?t.writableErrored:(e=(n=t._writableState)===null||n===void 0?void 0:n.errored)!==null&&e!==void 0?e:null:null}function P6(t){var e,n;return tn(t)?t.readableErrored?t.readableErrored:(e=(n=t._readableState)===null||n===void 0?void 0:n.errored)!==null&&e!==void 0?e:null:null}function q6(t){if(!tn(t))return null;if(typeof t.closed=="boolean")return t.closed;let e=t._writableState,n=t._readableState;return typeof e?.closed=="boolean"||typeof n?.closed=="boolean"?e?.closed||n?.closed:typeof t._closed=="boolean"&&TS(t)?t._closed:null}function TS(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function AS(t){return typeof t._sent100=="boolean"&&TS(t)}function M6(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function N6(t){if(!tn(t))return null;let e=t._writableState,n=t._readableState,r=e||n;return!r&&AS(t)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}function B6(t){var e;return!!(t&&((e=t[wS])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function j6(t){var e,n,r,i,o,s,a,l,u,c;return!!(t&&((e=(n=(r=(i=(o=(s=t[bS])!==null&&s!==void 0?s:t.readableErrored)!==null&&o!==void 0?o:t.writableErrored)!==null&&i!==void 0?i:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&r!==void 0?r:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&n!==void 0?n:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((c=t._writableState)===null||c===void 0)&&c.errored))}CS.exports={isDestroyed:Yu,kIsDestroyed:yS,isDisturbed:B6,kIsDisturbed:wS,isErrored:j6,kIsErrored:bS,isReadable:ES,kIsReadable:em,kIsClosedPromise:k6,kControllerErrorFunction:T6,kIsWritable:tm,isClosed:q6,isDuplexNodeStream:A6,isFinished:I6,isIterable:F6,isReadableNodeStream:Gu,isReadableStream:_S,isReadableEnded:O6,isReadableFinished:SS,isReadableErrored:P6,isNodeStream:tn,isWebStream:C6,isWritable:kS,isWritableNodeStream:Vu,isWritableStream:DS,isWritableEnded:vS,isWritableFinished:R6,isWritableErrored:L6,isServerRequest:M6,isServerResponse:AS,willEmitClose:N6,isTransformStream:xS}});var En=b((Wre,sm)=>{"use strict";var Xn=Jn(),{AbortError:NS,codes:U6}=Xe(),{ERR_INVALID_ARG_TYPE:z6,ERR_STREAM_PREMATURE_CLOSE:FS}=U6,{kEmptyObject:rm,once:im}=ot(),{validateAbortSignal:W6,validateFunction:$6,validateObject:H6,validateBoolean:G6}=Qi(),{Promise:V6,PromisePrototypeThen:Y6,SymbolDispose:BS}=xe(),{isClosed:K6,isReadable:RS,isReadableNodeStream:nm,isReadableStream:Q6,isReadableFinished:OS,isReadableErrored:IS,isWritable:LS,isWritableNodeStream:PS,isWritableStream:Z6,isWritableFinished:qS,isWritableErrored:MS,isNodeStream:J6,willEmitClose:X6,kIsClosedPromise:e4}=nn(),Zi;function t4(t){return t.setHeader&&typeof t.abort=="function"}var om=()=>{};function jS(t,e,n){var r,i;if(arguments.length===2?(n=e,e=rm):e==null?e=rm:H6(e,"options"),$6(n,"callback"),W6(e.signal,"options.signal"),n=im(n),Q6(t)||Z6(t))return n4(t,e,n);if(!J6(t))throw new z6("stream",["ReadableStream","WritableStream","Stream"],t);let o=(r=e.readable)!==null&&r!==void 0?r:nm(t),s=(i=e.writable)!==null&&i!==void 0?i:PS(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||h()},c=X6(t)&&nm(t)===o&&PS(t)===s,f=qS(t,!1),h=()=>{f=!0,t.destroyed&&(c=!1),!(c&&(!t.readable||o))&&(!o||p)&&n.call(t)},p=OS(t,!1),w=()=>{p=!0,t.destroyed&&(c=!1),!(c&&(!t.writable||s))&&(!s||f)&&n.call(t)},D=T=>{n.call(t,T)},k=K6(t),g=()=>{k=!0;let T=MS(t)||IS(t);if(T&&typeof T!="boolean")return n.call(t,T);if(o&&!p&&nm(t,!0)&&!OS(t,!1))return n.call(t,new FS);if(s&&!f&&!qS(t,!1))return n.call(t,new FS);n.call(t)},m=()=>{k=!0;let T=MS(t)||IS(t);if(T&&typeof T!="boolean")return n.call(t,T);n.call(t)},d=()=>{t.req.on("finish",h)};t4(t)?(t.on("complete",h),c||t.on("abort",g),t.req?d():t.on("request",d)):s&&!a&&(t.on("end",u),t.on("close",u)),!c&&typeof t.aborted=="boolean"&&t.on("aborted",g),t.on("end",w),t.on("finish",h),e.error!==!1&&t.on("error",D),t.on("close",g),k?Xn.nextTick(g):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?c||Xn.nextTick(m):(!o&&(!c||RS(t))&&(f||LS(t)===!1)||!s&&(!c||LS(t))&&(p||RS(t)===!1)||l&&t.req&&t.aborted)&&Xn.nextTick(m);let y=()=>{n=om,t.removeListener("aborted",g),t.removeListener("complete",h),t.removeListener("abort",g),t.removeListener("request",d),t.req&&t.req.removeListener("finish",h),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",h),t.removeListener("end",w),t.removeListener("error",D),t.removeListener("close",g)};if(e.signal&&!k){let T=()=>{let x=n;y(),x.call(t,new NS(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)Xn.nextTick(T);else{Zi=Zi||ot().addAbortListener;let x=Zi(e.signal,T),S=n;n=im((...M)=>{x[BS](),S.apply(t,M)})}}return y}function n4(t,e,n){let r=!1,i=om;if(e.signal)if(i=()=>{r=!0,n.call(t,new NS(void 0,{cause:e.signal.reason}))},e.signal.aborted)Xn.nextTick(i);else{Zi=Zi||ot().addAbortListener;let s=Zi(e.signal,i),a=n;n=im((...l)=>{s[BS](),a.apply(t,l)})}let o=(...s)=>{r||Xn.nextTick(()=>n.apply(t,s))};return Y6(t[e4].promise,o,o),om}function r4(t,e){var n;let r=!1;return e===null&&(e=rm),(n=e)!==null&&n!==void 0&&n.cleanup&&(G6(e.cleanup,"cleanup"),r=e.cleanup),new V6((i,o)=>{let s=jS(t,e,a=>{r&&s(),a?o(a):i()})})}sm.exports=jS;sm.exports.finished=r4});var $r=b(($re,YS)=>{"use strict";var rn=Jn(),{aggregateTwoErrors:i4,codes:{ERR_MULTIPLE_CALLBACK:o4},AbortError:s4}=Xe(),{Symbol:WS}=xe(),{kIsDestroyed:a4,isDestroyed:l4,isFinished:u4,isServerRequest:c4}=nn(),$S=WS("kDestroy"),am=WS("kConstruct");function HS(t,e,n){t&&(t.stack,e&&!e.errored&&(e.errored=t),n&&!n.errored&&(n.errored=t))}function f4(t,e){let n=this._readableState,r=this._writableState,i=r||n;return r!=null&&r.destroyed||n!=null&&n.destroyed?(typeof e=="function"&&e(),this):(HS(t,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),i.constructed?US(this,t,e):this.once($S,function(o){US(this,i4(o,t),e)}),this)}function US(t,e,n){let r=!1;function i(o){if(r)return;r=!0;let s=t._readableState,a=t._writableState;HS(o,a,s),a&&(a.closed=!0),s&&(s.closed=!0),typeof n=="function"&&n(o),o?rn.nextTick(h4,t,o):rn.nextTick(GS,t)}try{t._destroy(e||null,i)}catch(o){i(o)}}function h4(t,e){lm(t,e),GS(t)}function GS(t){let e=t._readableState,n=t._writableState;n&&(n.closeEmitted=!0),e&&(e.closeEmitted=!0),(n!=null&&n.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function lm(t,e){let n=t._readableState,r=t._writableState;r!=null&&r.errorEmitted||n!=null&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),t.emit("error",e))}function p4(){let t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function um(t,e,n){let r=t._readableState,i=t._writableState;if(i!=null&&i.destroyed||r!=null&&r.destroyed)return this;r!=null&&r.autoDestroy||i!=null&&i.autoDestroy?t.destroy(e):e&&(e.stack,i&&!i.errored&&(i.errored=e),r&&!r.errored&&(r.errored=e),n?rn.nextTick(lm,t,e):lm(t,e))}function d4(t,e){if(typeof t._construct!="function")return;let n=t._readableState,r=t._writableState;n&&(n.constructed=!1),r&&(r.constructed=!1),t.once(am,e),!(t.listenerCount(am)>1)&&rn.nextTick(m4,t)}function m4(t){let e=!1;function n(r){if(e){um(t,r??new o4);return}e=!0;let i=t._readableState,o=t._writableState,s=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),s.destroyed?t.emit($S,r):r?um(t,r,!0):rn.nextTick(g4,t)}try{t._construct(r=>{rn.nextTick(n,r)})}catch(r){rn.nextTick(n,r)}}function g4(t){t.emit(am)}function zS(t){return t?.setHeader&&typeof t.abort=="function"}function VS(t){t.emit("close")}function y4(t,e){t.emit("error",e),rn.nextTick(VS,t)}function b4(t,e){!t||l4(t)||(!e&&!u4(t)&&(e=new s4),c4(t)?(t.socket=null,t.destroy(e)):zS(t)?t.abort():zS(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?rn.nextTick(y4,t,e):rn.nextTick(VS,t),t.destroyed||(t[a4]=!0))}YS.exports={construct:d4,destroyer:b4,destroy:f4,undestroy:p4,errorOrDestroy:um}});var Zu=b((Hre,QS)=>{"use strict";var{ArrayIsArray:w4,ObjectSetPrototypeOf:KS}=xe(),{EventEmitter:Ku}=N("events");function Qu(t){Ku.call(this,t)}KS(Qu.prototype,Ku.prototype);KS(Qu,Ku);Qu.prototype.pipe=function(t,e){let n=this;function r(c){t.writable&&t.write(c)===!1&&n.pause&&n.pause()}n.on("data",r);function i(){n.readable&&n.resume&&n.resume()}t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(n.on("end",s),n.on("close",a));let o=!1;function s(){o||(o=!0,t.end())}function a(){o||(o=!0,typeof t.destroy=="function"&&t.destroy())}function l(c){u(),Ku.listenerCount(this,"error")===0&&this.emit("error",c)}cm(n,"error",l),cm(t,"error",l);function u(){n.removeListener("data",r),t.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",a),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t};function cm(t,e,n){if(typeof t.prependListener=="function")return t.prependListener(e,n);!t._events||!t._events[e]?t.on(e,n):w4(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]}QS.exports={Stream:Qu,prependListener:cm}});var qs=b((Gre,Ju)=>{"use strict";var{SymbolDispose:_4}=xe(),{AbortError:ZS,codes:D4}=Xe(),{isNodeStream:JS,isWebStream:x4,kControllerErrorFunction:v4}=nn(),S4=En(),{ERR_INVALID_ARG_TYPE:XS}=D4,fm,E4=(t,e)=>{if(typeof t!="object"||!("aborted"in t))throw new XS(e,"AbortSignal",t)};Ju.exports.addAbortSignal=function(e,n){if(E4(e,"signal"),!JS(n)&&!x4(n))throw new XS("stream",["ReadableStream","WritableStream","Stream"],n);return Ju.exports.addAbortSignalNoValidate(e,n)};Ju.exports.addAbortSignalNoValidate=function(t,e){if(typeof t!="object"||!("aborted"in t))return e;let n=JS(e)?()=>{e.destroy(new ZS(void 0,{cause:t.reason}))}:()=>{e[v4](new ZS(void 0,{cause:t.reason}))};if(t.aborted)n();else{fm=fm||ot().addAbortListener;let r=fm(t,n);S4(e,r[_4])}return e}});var nE=b((Yre,tE)=>{"use strict";var{StringPrototypeSlice:eE,SymbolIterator:k4,TypedArrayPrototypeSet:Xu,Uint8Array:T4}=xe(),{Buffer:hm}=N("buffer"),{inspect:A4}=ot();tE.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){let n={data:e,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}unshift(e){let n={data:e,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}shift(){if(this.length===0)return;let e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let n=this.head,r=""+n.data;for(;(n=n.next)!==null;)r+=e+n.data;return r}concat(e){if(this.length===0)return hm.alloc(0);let n=hm.allocUnsafe(e>>>0),r=this.head,i=0;for(;r;)Xu(n,r.data,i),i+=r.data.length,r=r.next;return n}consume(e,n){let r=this.head.data;if(e<r.length){let i=r.slice(0,e);return this.head.data=r.slice(e),i}return e===r.length?this.shift():n?this._getString(e):this._getBuffer(e)}first(){return this.head.data}*[k4](){for(let e=this.head;e;e=e.next)yield e.data}_getString(e){let n="",r=this.head,i=0;do{let o=r.data;if(e>o.length)n+=o,e-=o.length;else{e===o.length?(n+=o,++i,r.next?this.head=r.next:this.head=this.tail=null):(n+=eE(o,0,e),this.head=r,r.data=eE(o,e));break}++i}while((r=r.next)!==null);return this.length-=i,n}_getBuffer(e){let n=hm.allocUnsafe(e),r=e,i=this.head,o=0;do{let s=i.data;if(e>s.length)Xu(n,s,r-e),e-=s.length;else{e===s.length?(Xu(n,s,r-e),++o,i.next?this.head=i.next:this.head=this.tail=null):(Xu(n,new T4(s.buffer,s.byteOffset,e),r-e),this.head=i,i.data=s.slice(e));break}++o}while((i=i.next)!==null);return this.length-=o,n}[Symbol.for("nodejs.util.inspect.custom")](e,n){return A4(this,{...n,depth:0,customInspect:!1})}}});var Ms=b((Kre,sE)=>{"use strict";var{MathFloor:C4,NumberIsInteger:F4}=xe(),{validateInteger:R4}=Qi(),{ERR_INVALID_ARG_VALUE:O4}=Xe().codes,rE=16*1024,iE=16;function I4(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function oE(t){return t?iE:rE}function L4(t,e){R4(e,"value",0),t?iE=e:rE=e}function P4(t,e,n,r){let i=I4(e,r,n);if(i!=null){if(!F4(i)||i<0){let o=r?`options.${n}`:"options.highWaterMark";throw new O4(o,i)}return C4(i)}return oE(t.objectMode)}sE.exports={getHighWaterMark:P4,getDefaultHighWaterMark:oE,setDefaultHighWaterMark:L4}});var pm=b((Qre,cE)=>{"use strict";var aE=Jn(),{PromisePrototypeThen:q4,SymbolAsyncIterator:lE,SymbolIterator:uE}=xe(),{Buffer:M4}=N("buffer"),{ERR_INVALID_ARG_TYPE:N4,ERR_STREAM_NULL_VALUES:B4}=Xe().codes;function j4(t,e,n){let r;if(typeof e=="string"||e instanceof M4)return new t({objectMode:!0,...n,read(){this.push(e),this.push(null)}});let i;if(e&&e[lE])i=!0,r=e[lE]();else if(e&&e[uE])i=!1,r=e[uE]();else throw new N4("iterable",["Iterable"],e);let o=new t({objectMode:!0,highWaterMark:1,...n}),s=!1;o._read=function(){s||(s=!0,l())},o._destroy=function(u,c){q4(a(u),()=>aE.nextTick(c,u),f=>aE.nextTick(c,f||u))};async function a(u){let c=u!=null,f=typeof r.throw=="function";if(c&&f){let{value:h,done:p}=await r.throw(u);if(await h,p)return}if(typeof r.return=="function"){let{value:h}=await r.return();await h}}async function l(){for(;;){try{let{value:u,done:c}=i?await r.next():r.next();if(c)o.push(null);else{let f=u&&typeof u.then=="function"?await u:u;if(f===null)throw s=!1,new B4;if(o.push(f))continue;s=!1}}catch(u){o.destroy(u)}break}}return o}cE.exports=j4});var Bs=b((Zre,AE)=>{"use strict";var $t=Jn(),{ArrayPrototypeIndexOf:U4,NumberIsInteger:z4,NumberIsNaN:W4,NumberParseInt:$4,ObjectDefineProperties:Dm,ObjectKeys:H4,ObjectSetPrototypeOf:pE,Promise:dE,SafeSet:G4,SymbolAsyncDispose:V4,SymbolAsyncIterator:Y4,Symbol:K4}=xe();AE.exports=J;J.ReadableState=rc;var{EventEmitter:Q4}=N("events"),{Stream:er,prependListener:Z4}=Zu(),{Buffer:dm}=N("buffer"),{addAbortSignal:J4}=qs(),mE=En(),re=ot().debuglog("stream",t=>{re=t}),X4=nE(),eo=$r(),{getHighWaterMark:e8,getDefaultHighWaterMark:t8}=Ms(),{aggregateTwoErrors:fE,codes:{ERR_INVALID_ARG_TYPE:n8,ERR_METHOD_NOT_IMPLEMENTED:r8,ERR_OUT_OF_RANGE:i8,ERR_STREAM_PUSH_AFTER_EOF:o8,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:s8},AbortError:a8}=Xe(),{validateObject:l8}=Qi(),Hr=K4("kPaused"),{StringDecoder:gE}=N("string_decoder"),u8=pm();pE(J.prototype,er.prototype);pE(J,er);var mm=()=>{},{errorOrDestroy:Ji}=eo,Xi=1,c8=2,yE=4,Ns=8,bE=16,ec=32,tc=64,wE=128,f8=256,h8=512,p8=1024,wm=2048,_m=4096,d8=8192,m8=16384,g8=32768,_E=65536,y8=1<<17,b8=1<<18;function Oe(t){return{enumerable:!1,get(){return(this.state&t)!==0},set(e){e?this.state|=t:this.state&=~t}}}Dm(rc.prototype,{objectMode:Oe(Xi),ended:Oe(c8),endEmitted:Oe(yE),reading:Oe(Ns),constructed:Oe(bE),sync:Oe(ec),needReadable:Oe(tc),emittedReadable:Oe(wE),readableListening:Oe(f8),resumeScheduled:Oe(h8),errorEmitted:Oe(p8),emitClose:Oe(wm),autoDestroy:Oe(_m),destroyed:Oe(d8),closed:Oe(m8),closeEmitted:Oe(g8),multiAwaitDrain:Oe(_E),readingMore:Oe(y8),dataEmitted:Oe(b8)});function rc(t,e,n){typeof n!="boolean"&&(n=e instanceof on()),this.state=wm|_m|bE|ec,t&&t.objectMode&&(this.state|=Xi),n&&t&&t.readableObjectMode&&(this.state|=Xi),this.highWaterMark=t?e8(this,t,"readableHighWaterMark",n):t8(!1),this.buffer=new X4,this.length=0,this.pipes=[],this.flowing=null,this[Hr]=null,t&&t.emitClose===!1&&(this.state&=~wm),t&&t.autoDestroy===!1&&(this.state&=~_m),this.errored=null,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,t&&t.encoding&&(this.decoder=new gE(t.encoding),this.encoding=t.encoding)}function J(t){if(!(this instanceof J))return new J(t);let e=this instanceof on();this._readableState=new rc(t,this,e),t&&(typeof t.read=="function"&&(this._read=t.read),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&!e&&J4(t.signal,this)),er.call(this,t),eo.construct(this,()=>{this._readableState.needReadable&&nc(this,this._readableState)})}J.prototype.destroy=eo.destroy;J.prototype._undestroy=eo.undestroy;J.prototype._destroy=function(t,e){e(t)};J.prototype[Q4.captureRejectionSymbol]=function(t){this.destroy(t)};J.prototype[V4]=function(){let t;return this.destroyed||(t=this.readableEnded?null:new a8,this.destroy(t)),new dE((e,n)=>mE(this,r=>r&&r!==t?n(r):e(null)))};J.prototype.push=function(t,e){return DE(this,t,e,!1)};J.prototype.unshift=function(t,e){return DE(this,t,e,!0)};function DE(t,e,n,r){re("readableAddChunk",e);let i=t._readableState,o;if((i.state&Xi)===0&&(typeof e=="string"?(n=n||i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?e=dm.from(e,n).toString(i.encoding):(e=dm.from(e,n),n=""))):e instanceof dm?n="":er._isUint8Array(e)?(e=er._uint8ArrayToBuffer(e),n=""):e!=null&&(o=new n8("chunk",["string","Buffer","Uint8Array"],e))),o)Ji(t,o);else if(e===null)i.state&=~Ns,D8(t,i);else if((i.state&Xi)!==0||e&&e.length>0)if(r)if((i.state&yE)!==0)Ji(t,new s8);else{if(i.destroyed||i.errored)return!1;gm(t,i,e,!0)}else if(i.ended)Ji(t,new o8);else{if(i.destroyed||i.errored)return!1;i.state&=~Ns,i.decoder&&!n?(e=i.decoder.write(e),i.objectMode||e.length!==0?gm(t,i,e,!1):nc(t,i)):gm(t,i,e,!1)}else r||(i.state&=~Ns,nc(t,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function gm(t,e,n,r){e.flowing&&e.length===0&&!e.sync&&t.listenerCount("data")>0?((e.state&_E)!==0?e.awaitDrainWriters.clear():e.awaitDrainWriters=null,e.dataEmitted=!0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),(e.state&tc)!==0&&ic(t)),nc(t,e)}J.prototype.isPaused=function(){let t=this._readableState;return t[Hr]===!0||t.flowing===!1};J.prototype.setEncoding=function(t){let e=new gE(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r="";for(let i of n)r+=e.write(i);return n.clear(),r!==""&&n.push(r),this._readableState.length=r.length,this};var w8=1073741824;function _8(t){if(t>w8)throw new i8("size","<= 1GiB",t);return t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++,t}function hE(t,e){return t<=0||e.length===0&&e.ended?0:(e.state&Xi)!==0?1:W4(t)?e.flowing&&e.length?e.buffer.first().length:e.length:t<=e.length?t:e.ended?e.length:0}J.prototype.read=function(t){re("read",t),t===void 0?t=NaN:z4(t)||(t=$4(t,10));let e=this._readableState,n=t;if(t>e.highWaterMark&&(e.highWaterMark=_8(t)),t!==0&&(e.state&=~wE),t===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return re("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?ym(this):ic(this),null;if(t=hE(t,e),t===0&&e.ended)return e.length===0&&ym(this),null;let r=(e.state&tc)!==0;if(re("need readable",r),(e.length===0||e.length-t<e.highWaterMark)&&(r=!0,re("length less than watermark",r)),e.ended||e.reading||e.destroyed||e.errored||!e.constructed)r=!1,re("reading, ended or constructing",r);else if(r){re("do read"),e.state|=Ns|ec,e.length===0&&(e.state|=tc);try{this._read(e.highWaterMark)}catch(o){Ji(this,o)}e.state&=~ec,e.reading||(t=hE(n,e))}let i;return t>0?i=kE(t,e):i=null,i===null?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.multiAwaitDrain?e.awaitDrainWriters.clear():e.awaitDrainWriters=null),e.length===0&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&ym(this)),i!==null&&!e.errorEmitted&&!e.closeEmitted&&(e.dataEmitted=!0,this.emit("data",i)),i};function D8(t,e){if(re("onEofChunk"),!e.ended){if(e.decoder){let n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?ic(t):(e.needReadable=!1,e.emittedReadable=!0,xE(t))}}function ic(t){let e=t._readableState;re("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(re("emitReadable",e.flowing),e.emittedReadable=!0,$t.nextTick(xE,t))}function xE(t){let e=t._readableState;re("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&!e.errored&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,SE(t)}function nc(t,e){!e.readingMore&&e.constructed&&(e.readingMore=!0,$t.nextTick(x8,t,e))}function x8(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&e.length===0);){let n=e.length;if(re("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}J.prototype._read=function(t){throw new r8("_read()")};J.prototype.pipe=function(t,e){let n=this,r=this._readableState;r.pipes.length===1&&(r.multiAwaitDrain||(r.multiAwaitDrain=!0,r.awaitDrainWriters=new G4(r.awaitDrainWriters?[r.awaitDrainWriters]:[]))),r.pipes.push(t),re("pipe count=%d opts=%j",r.pipes.length,e);let o=(!e||e.end!==!1)&&t!==$t.stdout&&t!==$t.stderr?a:k;r.endEmitted?$t.nextTick(o):n.once("end",o),t.on("unpipe",s);function s(g,m){re("onunpipe"),g===n&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}function a(){re("onend"),t.end()}let l,u=!1;function c(){re("cleanup"),t.removeListener("close",w),t.removeListener("finish",D),l&&t.removeListener("drain",l),t.removeListener("error",p),t.removeListener("unpipe",s),n.removeListener("end",a),n.removeListener("end",k),n.removeListener("data",h),u=!0,l&&r.awaitDrainWriters&&(!t._writableState||t._writableState.needDrain)&&l()}function f(){u||(r.pipes.length===1&&r.pipes[0]===t?(re("false write response, pause",0),r.awaitDrainWriters=t,r.multiAwaitDrain=!1):r.pipes.length>1&&r.pipes.includes(t)&&(re("false write response, pause",r.awaitDrainWriters.size),r.awaitDrainWriters.add(t)),n.pause()),l||(l=v8(n,t),t.on("drain",l))}n.on("data",h);function h(g){re("ondata");let m=t.write(g);re("dest.write",m),m===!1&&f()}function p(g){if(re("onerror",g),k(),t.removeListener("error",p),t.listenerCount("error")===0){let m=t._writableState||t._readableState;m&&!m.errorEmitted?Ji(t,g):t.emit("error",g)}}Z4(t,"error",p);function w(){t.removeListener("finish",D),k()}t.once("close",w);function D(){re("onfinish"),t.removeListener("close",w),k()}t.once("finish",D);function k(){re("unpipe"),n.unpipe(t)}return t.emit("pipe",n),t.writableNeedDrain===!0?f():r.flowing||(re("pipe resume"),n.resume()),t};function v8(t,e){return function(){let r=t._readableState;r.awaitDrainWriters===e?(re("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(re("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(e)),(!r.awaitDrainWriters||r.awaitDrainWriters.size===0)&&t.listenerCount("data")&&t.resume()}}J.prototype.unpipe=function(t){let e=this._readableState,n={hasUnpiped:!1};if(e.pipes.length===0)return this;if(!t){let i=e.pipes;e.pipes=[],this.pause();for(let o=0;o<i.length;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}let r=U4(e.pipes,t);return r===-1?this:(e.pipes.splice(r,1),e.pipes.length===0&&this.pause(),t.emit("unpipe",this,n),this)};J.prototype.on=function(t,e){let n=er.prototype.on.call(this,t,e),r=this._readableState;return t==="data"?(r.readableListening=this.listenerCount("readable")>0,r.flowing!==!1&&this.resume()):t==="readable"&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,re("on readable",r.length,r.reading),r.length?ic(this):r.reading||$t.nextTick(S8,this)),n};J.prototype.addListener=J.prototype.on;J.prototype.removeListener=function(t,e){let n=er.prototype.removeListener.call(this,t,e);return t==="readable"&&$t.nextTick(vE,this),n};J.prototype.off=J.prototype.removeListener;J.prototype.removeAllListeners=function(t){let e=er.prototype.removeAllListeners.apply(this,arguments);return(t==="readable"||t===void 0)&&$t.nextTick(vE,this),e};function vE(t){let e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&e[Hr]===!1?e.flowing=!0:t.listenerCount("data")>0?t.resume():e.readableListening||(e.flowing=null)}function S8(t){re("readable nexttick read 0"),t.read(0)}J.prototype.resume=function(){let t=this._readableState;return t.flowing||(re("resume"),t.flowing=!t.readableListening,E8(this,t)),t[Hr]=!1,this};function E8(t,e){e.resumeScheduled||(e.resumeScheduled=!0,$t.nextTick(k8,t,e))}function k8(t,e){re("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),SE(t),e.flowing&&!e.reading&&t.read(0)}J.prototype.pause=function(){return re("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(re("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Hr]=!0,this};function SE(t){let e=t._readableState;for(re("flow",e.flowing);e.flowing&&t.read()!==null;);}J.prototype.wrap=function(t){let e=!1;t.on("data",r=>{!this.push(r)&&t.pause&&(e=!0,t.pause())}),t.on("end",()=>{this.push(null)}),t.on("error",r=>{Ji(this,r)}),t.on("close",()=>{this.destroy()}),t.on("destroy",()=>{this.destroy()}),this._read=()=>{e&&t.resume&&(e=!1,t.resume())};let n=H4(t);for(let r=1;r<n.length;r++){let i=n[r];this[i]===void 0&&typeof t[i]=="function"&&(this[i]=t[i].bind(t))}return this};J.prototype[Y4]=function(){return EE(this)};J.prototype.iterator=function(t){return t!==void 0&&l8(t,"options"),EE(this,t)};function EE(t,e){typeof t.read!="function"&&(t=J.wrap(t,{objectMode:!0}));let n=T8(t,e);return n.stream=t,n}async function*T8(t,e){let n=mm;function r(s){this===t?(n(),n=mm):n=s}t.on("readable",r);let i,o=mE(t,{writable:!1},s=>{i=s?fE(i,s):null,n(),n=mm});try{for(;;){let s=t.destroyed?null:t.read();if(s!==null)yield s;else{if(i)throw i;if(i===null)return;await new dE(r)}}}catch(s){throw i=fE(i,s),i}finally{(i||e?.destroyOnReturn!==!1)&&(i===void 0||t._readableState.autoDestroy)?eo.destroyer(t,null):(t.off("readable",r),o())}}Dm(J.prototype,{readable:{__proto__:null,get(){let t=this._readableState;return!!t&&t.readable!==!1&&!t.destroyed&&!t.errorEmitted&&!t.endEmitted},set(t){this._readableState&&(this._readableState.readable=!!t)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(t){this._readableState&&(this._readableState.destroyed=t)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});Dm(rc.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Hr]!==!1},set(t){this[Hr]=!!t}}});J._fromList=kE;function kE(t,e){if(e.length===0)return null;let n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(e.decoder?n=e.buffer.join(""):e.buffer.length===1?n=e.buffer.first():n=e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n}function ym(t){let e=t._readableState;re("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,$t.nextTick(A8,e,t))}function A8(t,e){if(re("endReadableNT",t.endEmitted,t.length),!t.errored&&!t.closeEmitted&&!t.endEmitted&&t.length===0){if(t.endEmitted=!0,e.emit("end"),e.writable&&e.allowHalfOpen===!1)$t.nextTick(C8,e);else if(t.autoDestroy){let n=e._writableState;(!n||n.autoDestroy&&(n.finished||n.writable===!1))&&e.destroy()}}}function C8(t){t.writable&&!t.writableEnded&&!t.destroyed&&t.end()}J.from=function(t,e){return u8(J,t,e)};var bm;function TE(){return bm===void 0&&(bm={}),bm}J.fromWeb=function(t,e){return TE().newStreamReadableFromReadableStream(t,e)};J.toWeb=function(t,e){return TE().newReadableStreamFromStreamReadable(t,e)};J.wrap=function(t,e){var n,r;return new J({objectMode:(n=(r=t.readableObjectMode)!==null&&r!==void 0?r:t.objectMode)!==null&&n!==void 0?n:!0,...e,destroy(i,o){eo.destroyer(t,i),o(i)}}).wrap(t)}});var uc=b((Jre,jE)=>{"use strict";var Gr=Jn(),{ArrayPrototypeSlice:RE,Error:F8,FunctionPrototypeSymbolHasInstance:OE,ObjectDefineProperty:IE,ObjectDefineProperties:R8,ObjectSetPrototypeOf:LE,StringPrototypeToLowerCase:O8,Symbol:I8,SymbolHasInstance:L8}=xe();jE.exports=Se;Se.WritableState=zs;var{EventEmitter:P8}=N("events"),js=Zu().Stream,{Buffer:oc}=N("buffer"),lc=$r(),{addAbortSignal:q8}=qs(),{getHighWaterMark:M8,getDefaultHighWaterMark:N8}=Ms(),{ERR_INVALID_ARG_TYPE:B8,ERR_METHOD_NOT_IMPLEMENTED:j8,ERR_MULTIPLE_CALLBACK:PE,ERR_STREAM_CANNOT_PIPE:U8,ERR_STREAM_DESTROYED:Us,ERR_STREAM_ALREADY_FINISHED:z8,ERR_STREAM_NULL_VALUES:W8,ERR_STREAM_WRITE_AFTER_END:$8,ERR_UNKNOWN_ENCODING:qE}=Xe().codes,{errorOrDestroy:to}=lc;LE(Se.prototype,js.prototype);LE(Se,js);function Sm(){}var no=I8("kOnFinished");function zs(t,e,n){typeof n!="boolean"&&(n=e instanceof on()),this.objectMode=!!(t&&t.objectMode),n&&(this.objectMode=this.objectMode||!!(t&&t.writableObjectMode)),this.highWaterMark=t?M8(this,t,"writableHighWaterMark",n):N8(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(t&&t.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=t&&t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=G8.bind(void 0,e),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,ac(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!t||t.emitClose!==!1,this.autoDestroy=!t||t.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[no]=[]}function ac(t){t.buffered=[],t.bufferedIndex=0,t.allBuffers=!0,t.allNoop=!0}zs.prototype.getBuffer=function(){return RE(this.buffered,this.bufferedIndex)};IE(zs.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Se(t){let e=this instanceof on();if(!e&&!OE(Se,this))return new Se(t);this._writableState=new zs(t,this,e),t&&(typeof t.write=="function"&&(this._write=t.write),typeof t.writev=="function"&&(this._writev=t.writev),typeof t.destroy=="function"&&(this._destroy=t.destroy),typeof t.final=="function"&&(this._final=t.final),typeof t.construct=="function"&&(this._construct=t.construct),t.signal&&q8(t.signal,this)),js.call(this,t),lc.construct(this,()=>{let n=this._writableState;n.writing||km(this,n),Tm(this,n)})}IE(Se,L8,{__proto__:null,value:function(t){return OE(this,t)?!0:this!==Se?!1:t&&t._writableState instanceof zs}});Se.prototype.pipe=function(){to(this,new U8)};function ME(t,e,n,r){let i=t._writableState;if(typeof n=="function")r=n,n=i.defaultEncoding;else{if(!n)n=i.defaultEncoding;else if(n!=="buffer"&&!oc.isEncoding(n))throw new qE(n);typeof r!="function"&&(r=Sm)}if(e===null)throw new W8;if(!i.objectMode)if(typeof e=="string")i.decodeStrings!==!1&&(e=oc.from(e,n),n="buffer");else if(e instanceof oc)n="buffer";else if(js._isUint8Array(e))e=js._uint8ArrayToBuffer(e),n="buffer";else throw new B8("chunk",["string","Buffer","Uint8Array"],e);let o;return i.ending?o=new $8:i.destroyed&&(o=new Us("write")),o?(Gr.nextTick(r,o),to(t,o,!0),o):(i.pendingcb++,H8(t,i,e,n,r))}Se.prototype.write=function(t,e,n){return ME(this,t,e,n)===!0};Se.prototype.cork=function(){this._writableState.corked++};Se.prototype.uncork=function(){let t=this._writableState;t.corked&&(t.corked--,t.writing||km(this,t))};Se.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=O8(e)),!oc.isEncoding(e))throw new qE(e);return this._writableState.defaultEncoding=e,this};function H8(t,e,n,r,i){let o=e.objectMode?1:n.length;e.length+=o;let s=e.length<e.highWaterMark;return s||(e.needDrain=!0),e.writing||e.corked||e.errored||!e.constructed?(e.buffered.push({chunk:n,encoding:r,callback:i}),e.allBuffers&&r!=="buffer"&&(e.allBuffers=!1),e.allNoop&&i!==Sm&&(e.allNoop=!1)):(e.writelen=o,e.writecb=i,e.writing=!0,e.sync=!0,t._write(n,r,e.onwrite),e.sync=!1),s&&!e.errored&&!e.destroyed}function CE(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new Us("write")):n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function FE(t,e,n,r){--e.pendingcb,r(n),Em(e),to(t,n)}function G8(t,e){let n=t._writableState,r=n.sync,i=n.writecb;if(typeof i!="function"){to(t,new PE);return}n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,e?(e.stack,n.errored||(n.errored=e),t._readableState&&!t._readableState.errored&&(t._readableState.errored=e),r?Gr.nextTick(FE,t,n,e,i):FE(t,n,e,i)):(n.buffered.length>n.bufferedIndex&&km(t,n),r?n.afterWriteTickInfo!==null&&n.afterWriteTickInfo.cb===i?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:i,stream:t,state:n},Gr.nextTick(V8,n.afterWriteTickInfo)):NE(t,n,1,i))}function V8({stream:t,state:e,count:n,cb:r}){return e.afterWriteTickInfo=null,NE(t,e,n,r)}function NE(t,e,n,r){for(!e.ending&&!t.destroyed&&e.length===0&&e.needDrain&&(e.needDrain=!1,t.emit("drain"));n-- >0;)e.pendingcb--,r();e.destroyed&&Em(e),Tm(t,e)}function Em(t){if(t.writing)return;for(let i=t.bufferedIndex;i<t.buffered.length;++i){var e;let{chunk:o,callback:s}=t.buffered[i],a=t.objectMode?1:o.length;t.length-=a,s((e=t.errored)!==null&&e!==void 0?e:new Us("write"))}let n=t[no].splice(0);for(let i=0;i<n.length;i++){var r;n[i]((r=t.errored)!==null&&r!==void 0?r:new Us("end"))}ac(t)}function km(t,e){if(e.corked||e.bufferProcessing||e.destroyed||!e.constructed)return;let{buffered:n,bufferedIndex:r,objectMode:i}=e,o=n.length-r;if(!o)return;let s=r;if(e.bufferProcessing=!0,o>1&&t._writev){e.pendingcb-=o-1;let a=e.allNoop?Sm:u=>{for(let c=s;c<n.length;++c)n[c].callback(u)},l=e.allNoop&&s===0?n:RE(n,s);l.allBuffers=e.allBuffers,CE(t,e,!0,e.length,l,"",a),ac(e)}else{do{let{chunk:a,encoding:l,callback:u}=n[s];n[s++]=null;let c=i?1:a.length;CE(t,e,!1,c,a,l,u)}while(s<n.length&&!e.writing);s===n.length?ac(e):s>256?(n.splice(0,s),e.bufferedIndex=0):e.bufferedIndex=s}e.bufferProcessing=!1}Se.prototype._write=function(t,e,n){if(this._writev)this._writev([{chunk:t,encoding:e}],n);else throw new j8("_write()")};Se.prototype._writev=null;Se.prototype.end=function(t,e,n){let r=this._writableState;typeof t=="function"?(n=t,t=null,e=null):typeof e=="function"&&(n=e,e=null);let i;if(t!=null){let o=ME(this,t,e);o instanceof F8&&(i=o)}return r.corked&&(r.corked=1,this.uncork()),i||(!r.errored&&!r.ending?(r.ending=!0,Tm(this,r,!0),r.ended=!0):r.finished?i=new z8("end"):r.destroyed&&(i=new Us("end"))),typeof n=="function"&&(i||r.finished?Gr.nextTick(n,i):r[no].push(n)),this};function sc(t){return t.ending&&!t.destroyed&&t.constructed&&t.length===0&&!t.errored&&t.buffered.length===0&&!t.finished&&!t.writing&&!t.errorEmitted&&!t.closeEmitted}function Y8(t,e){let n=!1;function r(i){if(n){to(t,i??PE());return}if(n=!0,e.pendingcb--,i){let o=e[no].splice(0);for(let s=0;s<o.length;s++)o[s](i);to(t,i,e.sync)}else sc(e)&&(e.prefinished=!0,t.emit("prefinish"),e.pendingcb++,Gr.nextTick(vm,t,e))}e.sync=!0,e.pendingcb++;try{t._final(r)}catch(i){r(i)}e.sync=!1}function K8(t,e){!e.prefinished&&!e.finalCalled&&(typeof t._final=="function"&&!e.destroyed?(e.finalCalled=!0,Y8(t,e)):(e.prefinished=!0,t.emit("prefinish")))}function Tm(t,e,n){sc(e)&&(K8(t,e),e.pendingcb===0&&(n?(e.pendingcb++,Gr.nextTick((r,i)=>{sc(i)?vm(r,i):i.pendingcb--},t,e)):sc(e)&&(e.pendingcb++,vm(t,e))))}function vm(t,e){e.pendingcb--,e.finished=!0;let n=e[no].splice(0);for(let r=0;r<n.length;r++)n[r]();if(t.emit("finish"),e.autoDestroy){let r=t._readableState;(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))&&t.destroy()}}R8(Se.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(t){this._writableState&&(this._writableState.destroyed=t)}},writable:{__proto__:null,get(){let t=this._writableState;return!!t&&t.writable!==!1&&!t.destroyed&&!t.errored&&!t.ending&&!t.ended},set(t){this._writableState&&(this._writableState.writable=!!t)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let t=this._writableState;return t?!t.destroyed&&!t.ending&&t.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var Q8=lc.destroy;Se.prototype.destroy=function(t,e){let n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[no].length)&&Gr.nextTick(Em,n),Q8.call(this,t,e),this};Se.prototype._undestroy=lc.undestroy;Se.prototype._destroy=function(t,e){e(t)};Se.prototype[P8.captureRejectionSymbol]=function(t){this.destroy(t)};var xm;function BE(){return xm===void 0&&(xm={}),xm}Se.fromWeb=function(t,e){return BE().newStreamWritableFromWritableStream(t,e)};Se.toWeb=function(t){return BE().newWritableStreamFromStreamWritable(t)}});var tk=b((Xre,ek)=>{"use strict";var Am=Jn(),Z8=N("buffer"),{isReadable:J8,isWritable:X8,isIterable:UE,isNodeStream:ej,isReadableNodeStream:zE,isWritableNodeStream:WE,isDuplexNodeStream:tj,isReadableStream:$E,isWritableStream:HE}=nn(),GE=En(),{AbortError:JE,codes:{ERR_INVALID_ARG_TYPE:nj,ERR_INVALID_RETURN_VALUE:VE}}=Xe(),{destroyer:io}=$r(),rj=on(),XE=Bs(),ij=uc(),{createDeferredPromise:YE}=ot(),KE=pm(),QE=globalThis.Blob||Z8.Blob,oj=typeof QE<"u"?function(e){return e instanceof QE}:function(e){return!1},sj=globalThis.AbortController||Yi().AbortController,{FunctionPrototypeCall:ZE}=xe(),tr=class extends rj{constructor(e){super(e),e?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};ek.exports=function t(e,n){if(tj(e))return e;if(zE(e))return ro({readable:e});if(WE(e))return ro({writable:e});if(ej(e))return ro({writable:!1,readable:!1});if($E(e))return ro({readable:XE.fromWeb(e)});if(HE(e))return ro({writable:ij.fromWeb(e)});if(typeof e=="function"){let{value:i,write:o,final:s,destroy:a}=aj(e);if(UE(i))return KE(tr,i,{objectMode:!0,write:o,final:s,destroy:a});let l=i?.then;if(typeof l=="function"){let u,c=ZE(l,i,f=>{if(f!=null)throw new VE("nully","body",f)},f=>{io(u,f)});return u=new tr({objectMode:!0,readable:!1,write:o,final(f){s(async()=>{try{await c,Am.nextTick(f,null)}catch(h){Am.nextTick(f,h)}})},destroy:a})}throw new VE("Iterable, AsyncIterable or AsyncFunction",n,i)}if(oj(e))return t(e.arrayBuffer());if(UE(e))return KE(tr,e,{objectMode:!0,writable:!1});if($E(e?.readable)&&HE(e?.writable))return tr.fromWeb(e);if(typeof e?.writable=="object"||typeof e?.readable=="object"){let i=e!=null&&e.readable?zE(e?.readable)?e?.readable:t(e.readable):void 0,o=e!=null&&e.writable?WE(e?.writable)?e?.writable:t(e.writable):void 0;return ro({readable:i,writable:o})}let r=e?.then;if(typeof r=="function"){let i;return ZE(r,e,o=>{o!=null&&i.push(o),i.push(null)},o=>{io(i,o)}),i=new tr({objectMode:!0,writable:!1,read(){}})}throw new nj(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],e)};function aj(t){let{promise:e,resolve:n}=YE(),r=new sj,i=r.signal;return{value:t((async function*(){for(;;){let s=e;e=null;let{chunk:a,done:l,cb:u}=await s;if(Am.nextTick(u),l)return;if(i.aborted)throw new JE(void 0,{cause:i.reason});({promise:e,resolve:n}=YE()),yield a}})(),{signal:i}),write(s,a,l){let u=n;n=null,u({chunk:s,done:!1,cb:l})},final(s){let a=n;n=null,a({done:!0,cb:s})},destroy(s,a){r.abort(),a(s)}}}function ro(t){let e=t.readable&&typeof t.readable.read!="function"?XE.wrap(t.readable):t.readable,n=t.writable,r=!!J8(e),i=!!X8(n),o,s,a,l,u;function c(f){let h=l;l=null,h?h(f):f&&u.destroy(f)}return u=new tr({readableObjectMode:!!(e!=null&&e.readableObjectMode),writableObjectMode:!!(n!=null&&n.writableObjectMode),readable:r,writable:i}),i&&(GE(n,f=>{i=!1,f&&io(e,f),c(f)}),u._write=function(f,h,p){n.write(f,h)?p():o=p},u._final=function(f){n.end(),s=f},n.on("drain",function(){if(o){let f=o;o=null,f()}}),n.on("finish",function(){if(s){let f=s;s=null,f()}})),r&&(GE(e,f=>{r=!1,f&&io(e,f),c(f)}),e.on("readable",function(){if(a){let f=a;a=null,f()}}),e.on("end",function(){u.push(null)}),u._read=function(){for(;;){let f=e.read();if(f===null){a=u._read;return}if(!u.push(f))return}}),u._destroy=function(f,h){!f&&l!==null&&(f=new JE),a=null,o=null,s=null,l===null?h(f):(l=h,io(n,f),io(e,f))},u}});var on=b((eie,ik)=>{"use strict";var{ObjectDefineProperties:lj,ObjectGetOwnPropertyDescriptor:kn,ObjectKeys:uj,ObjectSetPrototypeOf:nk}=xe();ik.exports=Ht;var Rm=Bs(),It=uc();nk(Ht.prototype,Rm.prototype);nk(Ht,Rm);{let t=uj(It.prototype);for(let e=0;e<t.length;e++){let n=t[e];Ht.prototype[n]||(Ht.prototype[n]=It.prototype[n])}}function Ht(t){if(!(this instanceof Ht))return new Ht(t);Rm.call(this,t),It.call(this,t),t?(this.allowHalfOpen=t.allowHalfOpen!==!1,t.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}lj(Ht.prototype,{writable:{__proto__:null,...kn(It.prototype,"writable")},writableHighWaterMark:{__proto__:null,...kn(It.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...kn(It.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...kn(It.prototype,"writableBuffer")},writableLength:{__proto__:null,...kn(It.prototype,"writableLength")},writableFinished:{__proto__:null,...kn(It.prototype,"writableFinished")},writableCorked:{__proto__:null,...kn(It.prototype,"writableCorked")},writableEnded:{__proto__:null,...kn(It.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...kn(It.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}});var Cm;function rk(){return Cm===void 0&&(Cm={}),Cm}Ht.fromWeb=function(t,e){return rk().newStreamDuplexFromReadableWritablePair(t,e)};Ht.toWeb=function(t){return rk().newReadableWritablePairFromDuplex(t)};var Fm;Ht.from=function(t){return Fm||(Fm=tk()),Fm(t,"body")}});var Lm=b((tie,sk)=>{"use strict";var{ObjectSetPrototypeOf:ok,Symbol:cj}=xe();sk.exports=Tn;var{ERR_METHOD_NOT_IMPLEMENTED:fj}=Xe().codes,Im=on(),{getHighWaterMark:hj}=Ms();ok(Tn.prototype,Im.prototype);ok(Tn,Im);var Ws=cj("kCallback");function Tn(t){if(!(this instanceof Tn))return new Tn(t);let e=t?hj(this,t,"readableHighWaterMark",!0):null;e===0&&(t={...t,highWaterMark:null,readableHighWaterMark:e,writableHighWaterMark:t.writableHighWaterMark||0}),Im.call(this,t),this._readableState.sync=!1,this[Ws]=null,t&&(typeof t.transform=="function"&&(this._transform=t.transform),typeof t.flush=="function"&&(this._flush=t.flush)),this.on("prefinish",pj)}function Om(t){typeof this._flush=="function"&&!this.destroyed?this._flush((e,n)=>{if(e){t?t(e):this.destroy(e);return}n!=null&&this.push(n),this.push(null),t&&t()}):(this.push(null),t&&t())}function pj(){this._final!==Om&&Om.call(this)}Tn.prototype._final=Om;Tn.prototype._transform=function(t,e,n){throw new fj("_transform()")};Tn.prototype._write=function(t,e,n){let r=this._readableState,i=this._writableState,o=r.length;this._transform(t,e,(s,a)=>{if(s){n(s);return}a!=null&&this.push(a),i.ended||o===r.length||r.length<r.highWaterMark?n():this[Ws]=n})};Tn.prototype._read=function(){if(this[Ws]){let t=this[Ws];this[Ws]=null,t()}}});var qm=b((nie,lk)=>{"use strict";var{ObjectSetPrototypeOf:ak}=xe();lk.exports=oo;var Pm=Lm();ak(oo.prototype,Pm.prototype);ak(oo,Pm);function oo(t){if(!(this instanceof oo))return new oo(t);Pm.call(this,t)}oo.prototype._transform=function(t,e,n){n(null,t)}});var pc=b((rie,pk)=>{"use strict";var $s=Jn(),{ArrayIsArray:dj,Promise:mj,SymbolAsyncIterator:gj,SymbolDispose:yj}=xe(),hc=En(),{once:bj}=ot(),wj=$r(),uk=on(),{aggregateTwoErrors:_j,codes:{ERR_INVALID_ARG_TYPE:Hm,ERR_INVALID_RETURN_VALUE:Mm,ERR_MISSING_ARGS:Dj,ERR_STREAM_DESTROYED:xj,ERR_STREAM_PREMATURE_CLOSE:vj},AbortError:Sj}=Xe(),{validateFunction:Ej,validateAbortSignal:kj}=Qi(),{isIterable:Vr,isReadable:Nm,isReadableNodeStream:fc,isNodeStream:ck,isTransformStream:so,isWebStream:Tj,isReadableStream:Bm,isReadableFinished:Aj}=nn(),Cj=globalThis.AbortController||Yi().AbortController,jm,Um,zm;function fk(t,e,n){let r=!1;t.on("close",()=>{r=!0});let i=hc(t,{readable:e,writable:n},o=>{r=!o});return{destroy:o=>{r||(r=!0,wj.destroyer(t,o||new xj("pipe")))},cleanup:i}}function Fj(t){return Ej(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function Wm(t){if(Vr(t))return t;if(fc(t))return Rj(t);throw new Hm("val",["Readable","Iterable","AsyncIterable"],t)}async function*Rj(t){Um||(Um=Bs()),yield*Um.prototype[gj].call(t)}async function cc(t,e,n,{end:r}){let i,o=null,s=u=>{if(u&&(i=u),o){let c=o;o=null,c()}},a=()=>new mj((u,c)=>{i?c(i):o=()=>{i?c(i):u()}});e.on("drain",s);let l=hc(e,{readable:!1},s);try{e.writableNeedDrain&&await a();for await(let u of t)e.write(u)||await a();r&&(e.end(),await a()),n()}catch(u){n(i!==u?_j(i,u):u)}finally{l(),e.off("drain",s)}}async function $m(t,e,n,{end:r}){so(e)&&(e=e.writable);let i=e.getWriter();try{for await(let o of t)await i.ready,i.write(o).catch(()=>{});await i.ready,r&&await i.close(),n()}catch(o){try{await i.abort(o),n(o)}catch(s){n(s)}}}function Oj(...t){return hk(t,bj(Fj(t)))}function hk(t,e,n){if(t.length===1&&dj(t[0])&&(t=t[0]),t.length<2)throw new Dj("streams");let r=new Cj,i=r.signal,o=n?.signal,s=[];kj(o,"options.signal");function a(){w(new Sj)}zm=zm||ot().addAbortListener;let l;o&&(l=zm(o,a));let u,c,f=[],h=0;function p(d){w(d,--h===0)}function w(d,y){var T;if(d&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")&&(u=d),!(!u&&!y)){for(;f.length;)f.shift()(u);(T=l)===null||T===void 0||T[yj](),r.abort(),y&&(u||s.forEach(x=>x()),$s.nextTick(e,u,c))}}let D;for(let d=0;d<t.length;d++){let y=t[d],T=d<t.length-1,x=d>0,S=T||n?.end!==!1,M=d===t.length-1;if(ck(y)){let A=function(F){F&&F.name!=="AbortError"&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"&&p(F)};var m=A;if(S){let{destroy:F,cleanup:I}=fk(y,T,x);f.push(F),Nm(y)&&M&&s.push(I)}y.on("error",A),Nm(y)&&M&&s.push(()=>{y.removeListener("error",A)})}if(d===0)if(typeof y=="function"){if(D=y({signal:i}),!Vr(D))throw new Mm("Iterable, AsyncIterable or Stream","source",D)}else Vr(y)||fc(y)||so(y)?D=y:D=uk.from(y);else if(typeof y=="function"){if(so(D)){var k;D=Wm((k=D)===null||k===void 0?void 0:k.readable)}else D=Wm(D);if(D=y(D,{signal:i}),T){if(!Vr(D,!0))throw new Mm("AsyncIterable",`transform[${d-1}]`,D)}else{var g;jm||(jm=qm());let A=new jm({objectMode:!0}),F=(g=D)===null||g===void 0?void 0:g.then;if(typeof F=="function")h++,F.call(D,O=>{c=O,O!=null&&A.write(O),S&&A.end(),$s.nextTick(p)},O=>{A.destroy(O),$s.nextTick(p,O)});else if(Vr(D,!0))h++,cc(D,A,p,{end:S});else if(Bm(D)||so(D)){let O=D.readable||D;h++,cc(O,A,p,{end:S})}else throw new Mm("AsyncIterable or Promise","destination",D);D=A;let{destroy:I,cleanup:B}=fk(D,!1,!0);f.push(I),M&&s.push(B)}}else if(ck(y)){if(fc(D)){h+=2;let A=Ij(D,y,p,{end:S});Nm(y)&&M&&s.push(A)}else if(so(D)||Bm(D)){let A=D.readable||D;h++,cc(A,y,p,{end:S})}else if(Vr(D))h++,cc(D,y,p,{end:S});else throw new Hm("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],D);D=y}else if(Tj(y)){if(fc(D))h++,$m(Wm(D),y,p,{end:S});else if(Bm(D)||Vr(D))h++,$m(D,y,p,{end:S});else if(so(D))h++,$m(D.readable,y,p,{end:S});else throw new Hm("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],D);D=y}else D=uk.from(y)}return(i!=null&&i.aborted||o!=null&&o.aborted)&&$s.nextTick(a),D}function Ij(t,e,n,{end:r}){let i=!1;if(e.on("close",()=>{i||n(new vj)}),t.pipe(e,{end:!1}),r){let s=function(){i=!0,e.end()};var o=s;Aj(t)?$s.nextTick(s):t.once("end",s)}else n();return hc(t,{readable:!0,writable:!1},s=>{let a=t._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?t.once("end",n).once("error",n):n(s)}),hc(e,{readable:!1,writable:!0},n)}pk.exports={pipelineImpl:hk,pipeline:Oj}});var Vm=b((iie,wk)=>{"use strict";var{pipeline:Lj}=pc(),dc=on(),{destroyer:Pj}=$r(),{isNodeStream:mc,isReadable:dk,isWritable:mk,isWebStream:Gm,isTransformStream:Yr,isWritableStream:gk,isReadableStream:yk}=nn(),{AbortError:qj,codes:{ERR_INVALID_ARG_VALUE:bk,ERR_MISSING_ARGS:Mj}}=Xe(),Nj=En();wk.exports=function(...e){if(e.length===0)throw new Mj("streams");if(e.length===1)return dc.from(e[0]);let n=[...e];if(typeof e[0]=="function"&&(e[0]=dc.from(e[0])),typeof e[e.length-1]=="function"){let p=e.length-1;e[p]=dc.from(e[p])}for(let p=0;p<e.length;++p)if(!(!mc(e[p])&&!Gm(e[p]))){if(p<e.length-1&&!(dk(e[p])||yk(e[p])||Yr(e[p])))throw new bk(`streams[${p}]`,n[p],"must be readable");if(p>0&&!(mk(e[p])||gk(e[p])||Yr(e[p])))throw new bk(`streams[${p}]`,n[p],"must be writable")}let r,i,o,s,a;function l(p){let w=s;s=null,w?w(p):p?a.destroy(p):!h&&!f&&a.destroy()}let u=e[0],c=Lj(e,l),f=!!(mk(u)||gk(u)||Yr(u)),h=!!(dk(c)||yk(c)||Yr(c));if(a=new dc({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(c!=null&&c.readableObjectMode),writable:f,readable:h}),f){if(mc(u))a._write=function(w,D,k){u.write(w,D)?k():r=k},a._final=function(w){u.end(),i=w},u.on("drain",function(){if(r){let w=r;r=null,w()}});else if(Gm(u)){let D=(Yr(u)?u.writable:u).getWriter();a._write=async function(k,g,m){try{await D.ready,D.write(k).catch(()=>{}),m()}catch(d){m(d)}},a._final=async function(k){try{await D.ready,D.close().catch(()=>{}),i=k}catch(g){k(g)}}}let p=Yr(c)?c.readable:c;Nj(p,()=>{if(i){let w=i;i=null,w()}})}if(h){if(mc(c))c.on("readable",function(){if(o){let p=o;o=null,p()}}),c.on("end",function(){a.push(null)}),a._read=function(){for(;;){let p=c.read();if(p===null){o=a._read;return}if(!a.push(p))return}};else if(Gm(c)){let w=(Yr(c)?c.readable:c).getReader();a._read=async function(){for(;;)try{let{value:D,done:k}=await w.read();if(!a.push(D))return;if(k){a.push(null);return}}catch{return}}}}return a._destroy=function(p,w){!p&&s!==null&&(p=new qj),o=null,r=null,i=null,s===null?w(p):(s=w,mc(c)&&Pj(c,p))},a}});var Ck=b((oie,Qm)=>{"use strict";var Bj=globalThis.AbortController||Yi().AbortController,{codes:{ERR_INVALID_ARG_VALUE:jj,ERR_INVALID_ARG_TYPE:Hs,ERR_MISSING_ARGS:Uj,ERR_OUT_OF_RANGE:zj},AbortError:sn}=Xe(),{validateAbortSignal:Kr,validateInteger:_k,validateObject:Qr}=Qi(),Wj=xe().Symbol("kWeak"),$j=xe().Symbol("kResistStopPropagation"),{finished:Hj}=En(),Gj=Vm(),{addAbortSignalNoValidate:Vj}=qs(),{isWritable:Yj,isNodeStream:Kj}=nn(),{deprecate:Qj}=ot(),{ArrayPrototypePush:Zj,Boolean:Jj,MathFloor:Dk,Number:Xj,NumberIsNaN:e9,Promise:xk,PromiseReject:vk,PromiseResolve:t9,PromisePrototypeThen:Sk,Symbol:kk}=xe(),gc=kk("kEmpty"),Ek=kk("kEof");function n9(t,e){if(e!=null&&Qr(e,"options"),e?.signal!=null&&Kr(e.signal,"options.signal"),Kj(t)&&!Yj(t))throw new jj("stream",t,"must be writable");let n=Gj(this,t);return e!=null&&e.signal&&Vj(e.signal,n),n}function yc(t,e){if(typeof t!="function")throw new Hs("fn",["Function","AsyncFunction"],t);e!=null&&Qr(e,"options"),e?.signal!=null&&Kr(e.signal,"options.signal");let n=1;e?.concurrency!=null&&(n=Dk(e.concurrency));let r=n-1;return e?.highWaterMark!=null&&(r=Dk(e.highWaterMark)),_k(n,"options.concurrency",1),_k(r,"options.highWaterMark",0),r+=n,async function*(){let o=ot().AbortSignalAny([e?.signal].filter(Jj)),s=this,a=[],l={signal:o},u,c,f=!1,h=0;function p(){f=!0,w()}function w(){h-=1,D()}function D(){c&&!f&&h<n&&a.length<r&&(c(),c=null)}async function k(){try{for await(let g of s){if(f)return;if(o.aborted)throw new sn;try{if(g=t(g,l),g===gc)continue;g=t9(g)}catch(m){g=vk(m)}h+=1,Sk(g,w,p),a.push(g),u&&(u(),u=null),!f&&(a.length>=r||h>=n)&&await new xk(m=>{c=m})}a.push(Ek)}catch(g){let m=vk(g);Sk(m,w,p),a.push(m)}finally{f=!0,u&&(u(),u=null)}}k();try{for(;;){for(;a.length>0;){let g=await a[0];if(g===Ek)return;if(o.aborted)throw new sn;g!==gc&&(yield g),a.shift(),D()}await new xk(g=>{u=g})}}finally{f=!0,c&&(c(),c=null)}}.call(this)}function r9(t=void 0){return t!=null&&Qr(t,"options"),t?.signal!=null&&Kr(t.signal,"options.signal"),async function*(){let n=0;for await(let i of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new sn({cause:t.signal.reason});yield[n++,i]}}.call(this)}async function Tk(t,e=void 0){for await(let n of Km.call(this,t,e))return!0;return!1}async function i9(t,e=void 0){if(typeof t!="function")throw new Hs("fn",["Function","AsyncFunction"],t);return!await Tk.call(this,async(...n)=>!await t(...n),e)}async function o9(t,e){for await(let n of Km.call(this,t,e))return n}async function s9(t,e){if(typeof t!="function")throw new Hs("fn",["Function","AsyncFunction"],t);async function n(r,i){return await t(r,i),gc}for await(let r of yc.call(this,n,e));}function Km(t,e){if(typeof t!="function")throw new Hs("fn",["Function","AsyncFunction"],t);async function n(r,i){return await t(r,i)?r:gc}return yc.call(this,n,e)}var Ym=class extends Uj{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function a9(t,e,n){var r;if(typeof t!="function")throw new Hs("reducer",["Function","AsyncFunction"],t);n!=null&&Qr(n,"options"),n?.signal!=null&&Kr(n.signal,"options.signal");let i=arguments.length>1;if(n!=null&&(r=n.signal)!==null&&r!==void 0&&r.aborted){let u=new sn(void 0,{cause:n.signal.reason});throw this.once("error",()=>{}),await Hj(this.destroy(u)),u}let o=new Bj,s=o.signal;if(n!=null&&n.signal){let u={once:!0,[Wj]:this,[$j]:!0};n.signal.addEventListener("abort",()=>o.abort(),u)}let a=!1;try{for await(let u of this){var l;if(a=!0,n!=null&&(l=n.signal)!==null&&l!==void 0&&l.aborted)throw new sn;i?e=await t(e,u,{signal:s}):(e=u,i=!0)}if(!a&&!i)throw new Ym}finally{o.abort()}return e}async function l9(t){t!=null&&Qr(t,"options"),t?.signal!=null&&Kr(t.signal,"options.signal");let e=[];for await(let r of this){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new sn(void 0,{cause:t.signal.reason});Zj(e,r)}return e}function u9(t,e){let n=yc.call(this,t,e);return async function*(){for await(let i of n)yield*i}.call(this)}function Ak(t){if(t=Xj(t),e9(t))return 0;if(t<0)throw new zj("number",">= 0",t);return t}function c9(t,e=void 0){return e!=null&&Qr(e,"options"),e?.signal!=null&&Kr(e.signal,"options.signal"),t=Ak(t),async function*(){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new sn;for await(let o of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new sn;t--<=0&&(yield o)}}.call(this)}function f9(t,e=void 0){return e!=null&&Qr(e,"options"),e?.signal!=null&&Kr(e.signal,"options.signal"),t=Ak(t),async function*(){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new sn;for await(let o of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new sn;if(t-- >0&&(yield o),t<=0)return}}.call(this)}Qm.exports.streamReturningOperators={asIndexedPairs:Qj(r9,"readable.asIndexedPairs will be removed in a future version."),drop:c9,filter:Km,flatMap:u9,map:yc,take:f9,compose:n9};Qm.exports.promiseReturningOperators={every:i9,forEach:s9,reduce:a9,toArray:l9,some:Tk,find:o9}});var Zm=b((sie,Fk)=>{"use strict";var{ArrayPrototypePop:h9,Promise:p9}=xe(),{isIterable:d9,isNodeStream:m9,isWebStream:g9}=nn(),{pipelineImpl:y9}=pc(),{finished:b9}=En();Jm();function w9(...t){return new p9((e,n)=>{let r,i,o=t[t.length-1];if(o&&typeof o=="object"&&!m9(o)&&!d9(o)&&!g9(o)){let s=h9(t);r=s.signal,i=s.end}y9(t,(s,a)=>{s?n(s):e(a)},{signal:r,end:i})})}Fk.exports={finished:b9,pipeline:w9}});var Jm=b((aie,Bk)=>{"use strict";var{Buffer:_9}=N("buffer"),{ObjectDefineProperty:An,ObjectKeys:Ik,ReflectApply:Lk}=xe(),{promisify:{custom:Pk}}=ot(),{streamReturningOperators:Rk,promiseReturningOperators:Ok}=Ck(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:qk}}=Xe(),D9=Vm(),{setDefaultHighWaterMark:x9,getDefaultHighWaterMark:v9}=Ms(),{pipeline:Mk}=pc(),{destroyer:S9}=$r(),Nk=En(),Xm=Zm(),Gs=nn(),_e=Bk.exports=Zu().Stream;_e.isDestroyed=Gs.isDestroyed;_e.isDisturbed=Gs.isDisturbed;_e.isErrored=Gs.isErrored;_e.isReadable=Gs.isReadable;_e.isWritable=Gs.isWritable;_e.Readable=Bs();for(let t of Ik(Rk)){let n=function(...r){if(new.target)throw qk();return _e.Readable.from(Lk(e,this,r))},e=Rk[t];An(n,"name",{__proto__:null,value:e.name}),An(n,"length",{__proto__:null,value:e.length}),An(_e.Readable.prototype,t,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}for(let t of Ik(Ok)){let n=function(...r){if(new.target)throw qk();return Lk(e,this,r)},e=Ok[t];An(n,"name",{__proto__:null,value:e.name}),An(n,"length",{__proto__:null,value:e.length}),An(_e.Readable.prototype,t,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}_e.Writable=uc();_e.Duplex=on();_e.Transform=Lm();_e.PassThrough=qm();_e.pipeline=Mk;var{addAbortSignal:E9}=qs();_e.addAbortSignal=E9;_e.finished=Nk;_e.destroy=S9;_e.compose=D9;_e.setDefaultHighWaterMark=x9;_e.getDefaultHighWaterMark=v9;An(_e,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Xm}});An(Mk,Pk,{__proto__:null,enumerable:!0,get(){return Xm.pipeline}});An(Nk,Pk,{__proto__:null,enumerable:!0,get(){return Xm.finished}});_e.Stream=_e;_e._isUint8Array=function(e){return e instanceof Uint8Array};_e._uint8ArrayToBuffer=function(e){return _9.from(e.buffer,e.byteOffset,e.byteLength)}});var Zr=b((lie,ne)=>{"use strict";var Ie=N("stream");if(Ie&&process.env.READABLE_STREAM==="disable"){let t=Ie.promises;ne.exports._uint8ArrayToBuffer=Ie._uint8ArrayToBuffer,ne.exports._isUint8Array=Ie._isUint8Array,ne.exports.isDisturbed=Ie.isDisturbed,ne.exports.isErrored=Ie.isErrored,ne.exports.isReadable=Ie.isReadable,ne.exports.Readable=Ie.Readable,ne.exports.Writable=Ie.Writable,ne.exports.Duplex=Ie.Duplex,ne.exports.Transform=Ie.Transform,ne.exports.PassThrough=Ie.PassThrough,ne.exports.addAbortSignal=Ie.addAbortSignal,ne.exports.finished=Ie.finished,ne.exports.destroy=Ie.destroy,ne.exports.pipeline=Ie.pipeline,ne.exports.compose=Ie.compose,Object.defineProperty(Ie,"promises",{configurable:!0,enumerable:!0,get(){return t}}),ne.exports.Stream=Ie.Stream}else{let t=Jm(),e=Zm(),n=t.Readable.destroy;ne.exports=t.Readable,ne.exports._uint8ArrayToBuffer=t._uint8ArrayToBuffer,ne.exports._isUint8Array=t._isUint8Array,ne.exports.isDisturbed=t.isDisturbed,ne.exports.isErrored=t.isErrored,ne.exports.isReadable=t.isReadable,ne.exports.Readable=t.Readable,ne.exports.Writable=t.Writable,ne.exports.Duplex=t.Duplex,ne.exports.Transform=t.Transform,ne.exports.PassThrough=t.PassThrough,ne.exports.addAbortSignal=t.addAbortSignal,ne.exports.finished=t.finished,ne.exports.destroy=t.destroy,ne.exports.destroy=n,ne.exports.pipeline=t.pipeline,ne.exports.compose=t.compose,Object.defineProperty(t,"promises",{configurable:!0,enumerable:!0,get(){return e}}),ne.exports.Stream=t.Stream}ne.exports.default=ne.exports});var Uk=b((uie,jk)=>{"use strict";function k9(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}jk.exports=k9});var Hk=b((cie,$k)=>{"use strict";var zk=qu(),T9=Nd(),A9=Bd(),Wk=zk?zk.isConcatSpreadable:void 0;function C9(t){return A9(t)||T9(t)||!!(Wk&&t&&t[Wk])}$k.exports=C9});var bc=b((fie,Vk)=>{"use strict";var F9=Uk(),R9=Hk();function Gk(t,e,n,r,i){var o=-1,s=t.length;for(n||(n=R9),i||(i=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?Gk(a,e-1,n,r,i):F9(i,a):r||(i[i.length]=a)}return i}Vk.exports=Gk});var Kk=b((hie,Yk)=>{"use strict";var O9=bc();function I9(t){var e=t==null?0:t.length;return e?O9(t,1):[]}Yk.exports=I9});var Vs=b((pie,Qk)=>{"use strict";var L9=Ts(),P9=L9(Object,"create");Qk.exports=P9});var Xk=b((die,Jk)=>{"use strict";var Zk=Vs();function q9(){this.__data__=Zk?Zk(null):{},this.size=0}Jk.exports=q9});var tT=b((mie,eT)=>{"use strict";function M9(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}eT.exports=M9});var rT=b((gie,nT)=>{"use strict";var N9=Vs(),B9="__lodash_hash_undefined__",j9=Object.prototype,U9=j9.hasOwnProperty;function z9(t){var e=this.__data__;if(N9){var n=e[t];return n===B9?void 0:n}return U9.call(e,t)?e[t]:void 0}nT.exports=z9});var oT=b((yie,iT)=>{"use strict";var W9=Vs(),$9=Object.prototype,H9=$9.hasOwnProperty;function G9(t){var e=this.__data__;return W9?e[t]!==void 0:H9.call(e,t)}iT.exports=G9});var aT=b((bie,sT)=>{"use strict";var V9=Vs(),Y9="__lodash_hash_undefined__";function K9(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=V9&&e===void 0?Y9:e,this}sT.exports=K9});var uT=b((wie,lT)=>{"use strict";var Q9=Xk(),Z9=tT(),J9=rT(),X9=oT(),e7=aT();function ao(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}ao.prototype.clear=Q9;ao.prototype.delete=Z9;ao.prototype.get=J9;ao.prototype.has=X9;ao.prototype.set=e7;lT.exports=ao});var fT=b((_ie,cT)=>{"use strict";function t7(){this.__data__=[],this.size=0}cT.exports=t7});var Ys=b((Die,hT)=>{"use strict";var n7=Nu();function r7(t,e){for(var n=t.length;n--;)if(n7(t[n][0],e))return n;return-1}hT.exports=r7});var dT=b((xie,pT)=>{"use strict";var i7=Ys(),o7=Array.prototype,s7=o7.splice;function a7(t){var e=this.__data__,n=i7(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():s7.call(e,n,1),--this.size,!0}pT.exports=a7});var gT=b((vie,mT)=>{"use strict";var l7=Ys();function u7(t){var e=this.__data__,n=l7(e,t);return n<0?void 0:e[n][1]}mT.exports=u7});var bT=b((Sie,yT)=>{"use strict";var c7=Ys();function f7(t){return c7(this.__data__,t)>-1}yT.exports=f7});var _T=b((Eie,wT)=>{"use strict";var h7=Ys();function p7(t,e){var n=this.__data__,r=h7(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}wT.exports=p7});var xT=b((kie,DT)=>{"use strict";var d7=fT(),m7=dT(),g7=gT(),y7=bT(),b7=_T();function lo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}lo.prototype.clear=d7;lo.prototype.delete=m7;lo.prototype.get=g7;lo.prototype.has=y7;lo.prototype.set=b7;DT.exports=lo});var ST=b((Tie,vT)=>{"use strict";var w7=Ts(),_7=Wi(),D7=w7(_7,"Map");vT.exports=D7});var TT=b((Aie,kT)=>{"use strict";var ET=uT(),x7=xT(),v7=ST();function S7(){this.size=0,this.__data__={hash:new ET,map:new(v7||x7),string:new ET}}kT.exports=S7});var CT=b((Cie,AT)=>{"use strict";function E7(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}AT.exports=E7});var Ks=b((Fie,FT)=>{"use strict";var k7=CT();function T7(t,e){var n=t.__data__;return k7(e)?n[typeof e=="string"?"string":"hash"]:n.map}FT.exports=T7});var OT=b((Rie,RT)=>{"use strict";var A7=Ks();function C7(t){var e=A7(this,t).delete(t);return this.size-=e?1:0,e}RT.exports=C7});var LT=b((Oie,IT)=>{"use strict";var F7=Ks();function R7(t){return F7(this,t).get(t)}IT.exports=R7});var qT=b((Iie,PT)=>{"use strict";var O7=Ks();function I7(t){return O7(this,t).has(t)}PT.exports=I7});var NT=b((Lie,MT)=>{"use strict";var L7=Ks();function P7(t,e){var n=L7(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}MT.exports=P7});var jT=b((Pie,BT)=>{"use strict";var q7=TT(),M7=OT(),N7=LT(),B7=qT(),j7=NT();function uo(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}uo.prototype.clear=q7;uo.prototype.delete=M7;uo.prototype.get=N7;uo.prototype.has=B7;uo.prototype.set=j7;BT.exports=uo});var zT=b((qie,UT)=>{"use strict";var U7="__lodash_hash_undefined__";function z7(t){return this.__data__.set(t,U7),this}UT.exports=z7});var $T=b((Mie,WT)=>{"use strict";function W7(t){return this.__data__.has(t)}WT.exports=W7});var eg=b((Nie,HT)=>{"use strict";var $7=jT(),H7=zT(),G7=$T();function wc(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new $7;++e<n;)this.add(t[e])}wc.prototype.add=wc.prototype.push=H7;wc.prototype.has=G7;HT.exports=wc});var VT=b((Bie,GT)=>{"use strict";function V7(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}GT.exports=V7});var KT=b((jie,YT)=>{"use strict";function Y7(t){return t!==t}YT.exports=Y7});var ZT=b((Uie,QT)=>{"use strict";function K7(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}QT.exports=K7});var XT=b((zie,JT)=>{"use strict";var Q7=VT(),Z7=KT(),J7=ZT();function X7(t,e,n){return e===e?J7(t,e,n):Q7(t,Z7,n)}JT.exports=X7});var tg=b((Wie,e2)=>{"use strict";var eU=XT();function tU(t,e){var n=t==null?0:t.length;return!!n&&eU(t,e,0)>-1}e2.exports=tU});var ng=b(($ie,t2)=>{"use strict";function nU(t,e,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}t2.exports=nU});var r2=b((Hie,n2)=>{"use strict";function rU(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}n2.exports=rU});var rg=b((Gie,i2)=>{"use strict";function iU(t,e){return t.has(e)}i2.exports=iU});var s2=b((Vie,o2)=>{"use strict";var oU=eg(),sU=tg(),aU=ng(),lU=r2(),uU=jd(),cU=rg(),fU=200;function hU(t,e,n,r){var i=-1,o=sU,s=!0,a=t.length,l=[],u=e.length;if(!a)return l;n&&(e=lU(e,uU(n))),r?(o=aU,s=!1):e.length>=fU&&(o=cU,s=!1,e=new oU(e));e:for(;++i<a;){var c=t[i],f=n==null?c:n(c);if(c=r||c!==0?c:0,s&&f===f){for(var h=u;h--;)if(e[h]===f)continue e;l.push(c)}else o(e,f,r)||l.push(c)}return l}o2.exports=hU});var ig=b((Yie,a2)=>{"use strict";var pU=Bu(),dU=$i();function mU(t){return dU(t)&&pU(t)}a2.exports=mU});var c2=b((Kie,u2)=>{"use strict";var gU=s2(),yU=bc(),bU=Mu(),l2=ig(),wU=bU(function(t,e){return l2(t)?gU(t,yU(e,1,l2,!0)):[]});u2.exports=wU});var h2=b((Qie,f2)=>{"use strict";var _U=Ts(),DU=Wi(),xU=_U(DU,"Set");f2.exports=xU});var d2=b((Zie,p2)=>{"use strict";function vU(){}p2.exports=vU});var og=b((Jie,m2)=>{"use strict";function SU(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}m2.exports=SU});var y2=b((Xie,g2)=>{"use strict";var sg=h2(),EU=d2(),kU=og(),TU=1/0,AU=sg&&1/kU(new sg([,-0]))[1]==TU?function(t){return new sg(t)}:EU;g2.exports=AU});var w2=b((eoe,b2)=>{"use strict";var CU=eg(),FU=tg(),RU=ng(),OU=rg(),IU=y2(),LU=og(),PU=200;function qU(t,e,n){var r=-1,i=FU,o=t.length,s=!0,a=[],l=a;if(n)s=!1,i=RU;else if(o>=PU){var u=e?null:IU(t);if(u)return LU(u);s=!1,i=OU,l=new CU}else l=e?[]:a;e:for(;++r<o;){var c=t[r],f=e?e(c):c;if(c=n||c!==0?c:0,s&&f===f){for(var h=l.length;h--;)if(l[h]===f)continue e;e&&l.push(f),a.push(c)}else i(l,f,n)||(l!==a&&l.push(f),a.push(c))}return a}b2.exports=qU});var D2=b((toe,_2)=>{"use strict";var MU=bc(),NU=Mu(),BU=w2(),jU=ig(),UU=NU(function(t){return BU(MU(t,1,jU,!0))});_2.exports=UU});var v2=b((noe,x2)=>{"use strict";function zU(t,e){return function(n){return t(e(n))}}x2.exports=zU});var E2=b((roe,S2)=>{"use strict";var WU=v2(),$U=WU(Object.getPrototypeOf,Object);S2.exports=$U});var A2=b((ioe,T2)=>{"use strict";var HU=Es(),GU=E2(),VU=$i(),YU="[object Object]",KU=Function.prototype,QU=Object.prototype,k2=KU.toString,ZU=QU.hasOwnProperty,JU=k2.call(Object);function XU(t){if(!VU(t)||HU(t)!=YU)return!1;var e=GU(t);if(e===null)return!0;var n=ZU.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&k2.call(n)==JU}T2.exports=XU});var I2=b(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.LRUCache=void 0;var co=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,F2=new Set,ag=typeof process=="object"&&process?process:{},R2=(t,e,n,r)=>{typeof ag.emitWarning=="function"?ag.emitWarning(t,e,n,r):console.error(`[${n}] ${e}: ${t}`)},_c=globalThis.AbortController,C2=globalThis.AbortSignal;if(typeof _c>"u"){C2=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,i){this._onabort.push(i)}},_c=class{constructor(){e()}signal=new C2;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let i of this.signal._onabort)i(r);this.signal.onabort?.(r)}}};let t=ag.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,R2("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}var ez=t=>!F2.has(t),aoe=Symbol("type"),nr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),O2=t=>nr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?fo:null:null,fo=class extends Array{constructor(e){super(e),this.fill(0)}},lg=class t{heap;length;static#t=!1;static create(e){let n=O2(e);if(!n)return[];t.#t=!0;let r=new t(e,n);return t.#t=!1,r}constructor(e,n){if(!t.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},ug=class t{#t;#n;#e;#s;#c;#w;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#f;#l;#a;#i;#b;#_;#g;#p;#v;#d;#S;#E;#y;#D;#x;#h;static unsafeExposeInternals(e){return{starts:e.#E,ttls:e.#y,sizes:e.#S,keyMap:e.#l,keyList:e.#a,valList:e.#i,next:e.#b,prev:e.#_,get head(){return e.#g},get tail(){return e.#p},free:e.#v,isBackgroundFetch:n=>e.#u(n),backgroundFetch:(n,r,i,o)=>e.#N(n,r,i,o),moveToTail:n=>e.#j(n),indexes:n=>e.#T(n),rindexes:n=>e.#A(n),isStale:n=>e.#m(n)}}get max(){return this.#t}get maxSize(){return this.#n}get calculatedSize(){return this.#f}get size(){return this.#o}get fetchMethod(){return this.#c}get memoMethod(){return this.#w}get dispose(){return this.#e}get disposeAfter(){return this.#s}constructor(e){let{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:s,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:c,noDisposeOnSet:f,noUpdateTTL:h,maxSize:p=0,maxEntrySize:w=0,sizeCalculation:D,fetchMethod:k,memoMethod:g,noDeleteOnFetchRejection:m,noDeleteOnStaleGet:d,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:T,ignoreFetchAbort:x}=e;if(n!==0&&!nr(n))throw new TypeError("max option must be a nonnegative integer");let S=n?O2(n):Array;if(!S)throw new Error("invalid max value: "+n);if(this.#t=n,this.#n=p,this.maxEntrySize=w||this.#n,this.sizeCalculation=D,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#w=g,k!==void 0&&typeof k!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#c=k,this.#x=!!k,this.#l=new Map,this.#a=new Array(n).fill(void 0),this.#i=new Array(n).fill(void 0),this.#b=new S(n),this.#_=new S(n),this.#g=0,this.#p=0,this.#v=lg.create(n),this.#o=0,this.#f=0,typeof u=="function"&&(this.#e=u),typeof c=="function"?(this.#s=c,this.#d=[]):(this.#s=void 0,this.#d=void 0),this.#D=!!this.#e,this.#h=!!this.#s,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!m,this.allowStaleOnFetchRejection=!!y,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!x,this.maxEntrySize!==0){if(this.#n!==0&&!nr(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!nr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#F()}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!d,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!a,this.ttlResolution=nr(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!nr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#C()}if(this.#t===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#n){let M="LRU_CACHE_UNBOUNDED";ez(M)&&(F2.add(M),R2("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",M,t))}}getRemainingTTL(e){return this.#l.has(e)?1/0:0}#C(){let e=new fo(this.#t),n=new fo(this.#t);this.#y=e,this.#E=n,this.#O=(o,s,a=co.now())=>{if(n[o]=s!==0?a:0,e[o]=s,s!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#m(o)&&this.#R(this.#a[o],"expire")},s+1);l.unref&&l.unref()}},this.#k=o=>{n[o]=e[o]!==0?co.now():0},this.#r=(o,s)=>{if(e[s]){let a=e[s],l=n[s];if(!a||!l)return;o.ttl=a,o.start=l,o.now=r||i();let u=o.now-l;o.remainingTTL=a-u}};let r=0,i=()=>{let o=co.now();if(this.ttlResolution>0){r=o;let s=setTimeout(()=>r=0,this.ttlResolution);s.unref&&s.unref()}return o};this.getRemainingTTL=o=>{let s=this.#l.get(o);if(s===void 0)return 0;let a=e[s],l=n[s];if(!a||!l)return 1/0;let u=(r||i())-l;return a-u},this.#m=o=>{let s=n[o],a=e[o];return!!a&&!!s&&(r||i())-s>a}}#k=()=>{};#r=()=>{};#O=()=>{};#m=()=>!1;#F(){let e=new fo(this.#t);this.#f=0,this.#S=e,this.#I=n=>{this.#f-=e[n],e[n]=0},this.#P=(n,r,i,o)=>{if(this.#u(r))return 0;if(!nr(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(r,n),!nr(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#L=(n,r,i)=>{if(e[n]=r,this.#n){let o=this.#n-e[n];for(;this.#f>o;)this.#M(!0)}this.#f+=e[n],i&&(i.entrySize=r,i.totalCalculatedSize=this.#f)}}#I=e=>{};#L=(e,n,r)=>{};#P=(e,n,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#T({allowStale:e=this.allowStale}={}){if(this.#o)for(let n=this.#p;!(!this.#q(n)||((e||!this.#m(n))&&(yield n),n===this.#g));)n=this.#_[n]}*#A({allowStale:e=this.allowStale}={}){if(this.#o)for(let n=this.#g;!(!this.#q(n)||((e||!this.#m(n))&&(yield n),n===this.#p));)n=this.#b[n]}#q(e){return e!==void 0&&this.#l.get(this.#a[e])===e}*entries(){for(let e of this.#T())this.#i[e]!==void 0&&this.#a[e]!==void 0&&!this.#u(this.#i[e])&&(yield[this.#a[e],this.#i[e]])}*rentries(){for(let e of this.#A())this.#i[e]!==void 0&&this.#a[e]!==void 0&&!this.#u(this.#i[e])&&(yield[this.#a[e],this.#i[e]])}*keys(){for(let e of this.#T()){let n=this.#a[e];n!==void 0&&!this.#u(this.#i[e])&&(yield n)}}*rkeys(){for(let e of this.#A()){let n=this.#a[e];n!==void 0&&!this.#u(this.#i[e])&&(yield n)}}*values(){for(let e of this.#T())this.#i[e]!==void 0&&!this.#u(this.#i[e])&&(yield this.#i[e])}*rvalues(){for(let e of this.#A())this.#i[e]!==void 0&&!this.#u(this.#i[e])&&(yield this.#i[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,n={}){for(let r of this.#T()){let i=this.#i[r],o=this.#u(i)?i.__staleWhileFetching:i;if(o!==void 0&&e(o,this.#a[r],this))return this.get(this.#a[r],n)}}forEach(e,n=this){for(let r of this.#T()){let i=this.#i[r],o=this.#u(i)?i.__staleWhileFetching:i;o!==void 0&&e.call(n,o,this.#a[r],this)}}rforEach(e,n=this){for(let r of this.#A()){let i=this.#i[r],o=this.#u(i)?i.__staleWhileFetching:i;o!==void 0&&e.call(n,o,this.#a[r],this)}}purgeStale(){let e=!1;for(let n of this.#A({allowStale:!0}))this.#m(n)&&(this.#R(this.#a[n],"expire"),e=!0);return e}info(e){let n=this.#l.get(e);if(n===void 0)return;let r=this.#i[n],i=this.#u(r)?r.__staleWhileFetching:r;if(i===void 0)return;let o={value:i};if(this.#y&&this.#E){let s=this.#y[n],a=this.#E[n];if(s&&a){let l=s-(co.now()-a);o.ttl=l,o.start=Date.now()}}return this.#S&&(o.size=this.#S[n]),o}dump(){let e=[];for(let n of this.#T({allowStale:!0})){let r=this.#a[n],i=this.#i[n],o=this.#u(i)?i.__staleWhileFetching:i;if(o===void 0||r===void 0)continue;let s={value:o};if(this.#y&&this.#E){s.ttl=this.#y[n];let a=co.now()-this.#E[n];s.start=Math.floor(Date.now()-a)}this.#S&&(s.size=this.#S[n]),e.unshift([r,s])}return e}load(e){this.clear();for(let[n,r]of e){if(r.start){let i=Date.now()-r.start;r.start=co.now()-i}this.set(n,r.value,r)}}set(e,n,r={}){if(n===void 0)return this.delete(e),this;let{ttl:i=this.ttl,start:o,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=r,{noUpdateTTL:u=this.noUpdateTTL}=r,c=this.#P(e,n,r.size||0,a);if(this.maxEntrySize&&c>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#R(e,"set"),this;let f=this.#o===0?void 0:this.#l.get(e);if(f===void 0)f=this.#o===0?this.#p:this.#v.length!==0?this.#v.pop():this.#o===this.#t?this.#M(!1):this.#o,this.#a[f]=e,this.#i[f]=n,this.#l.set(e,f),this.#b[this.#p]=f,this.#_[f]=this.#p,this.#p=f,this.#o++,this.#L(f,c,l),l&&(l.set="add"),u=!1;else{this.#j(f);let h=this.#i[f];if(n!==h){if(this.#x&&this.#u(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!s&&(this.#D&&this.#e?.(p,e,"set"),this.#h&&this.#d?.push([p,e,"set"]))}else s||(this.#D&&this.#e?.(h,e,"set"),this.#h&&this.#d?.push([h,e,"set"]));if(this.#I(f),this.#L(f,c,l),this.#i[f]=n,l){l.set="replace";let p=h&&this.#u(h)?h.__staleWhileFetching:h;p!==void 0&&(l.oldValue=p)}}else l&&(l.set="update")}if(i!==0&&!this.#y&&this.#C(),this.#y&&(u||this.#O(f,i,o),l&&this.#r(l,f)),!s&&this.#h&&this.#d){let h=this.#d,p;for(;p=h?.shift();)this.#s?.(...p)}return this}pop(){try{for(;this.#o;){let e=this.#i[this.#g];if(this.#M(!0),this.#u(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#h&&this.#d){let e=this.#d,n;for(;n=e?.shift();)this.#s?.(...n)}}}#M(e){let n=this.#g,r=this.#a[n],i=this.#i[n];return this.#x&&this.#u(i)?i.__abortController.abort(new Error("evicted")):(this.#D||this.#h)&&(this.#D&&this.#e?.(i,r,"evict"),this.#h&&this.#d?.push([i,r,"evict"])),this.#I(n),e&&(this.#a[n]=void 0,this.#i[n]=void 0,this.#v.push(n)),this.#o===1?(this.#g=this.#p=0,this.#v.length=0):this.#g=this.#b[n],this.#l.delete(r),this.#o--,n}has(e,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,o=this.#l.get(e);if(o!==void 0){let s=this.#i[o];if(this.#u(s)&&s.__staleWhileFetching===void 0)return!1;if(this.#m(o))i&&(i.has="stale",this.#r(i,o));else return r&&this.#k(o),i&&(i.has="hit",this.#r(i,o)),!0}else i&&(i.has="miss");return!1}peek(e,n={}){let{allowStale:r=this.allowStale}=n,i=this.#l.get(e);if(i===void 0||!r&&this.#m(i))return;let o=this.#i[i];return this.#u(o)?o.__staleWhileFetching:o}#N(e,n,r,i){let o=n===void 0?void 0:this.#i[n];if(this.#u(o))return o;let s=new _c,{signal:a}=r;a?.addEventListener("abort",()=>s.abort(a.reason),{signal:s.signal});let l={signal:s.signal,options:r,context:i},u=(D,k=!1)=>{let{aborted:g}=s.signal,m=r.ignoreFetchAbort&&D!==void 0;if(r.status&&(g&&!k?(r.status.fetchAborted=!0,r.status.fetchError=s.signal.reason,m&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),g&&!m&&!k)return f(s.signal.reason);let d=p;return this.#i[n]===p&&(D===void 0?d.__staleWhileFetching?this.#i[n]=d.__staleWhileFetching:this.#R(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,D,l.options))),D},c=D=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=D),f(D)),f=D=>{let{aborted:k}=s.signal,g=k&&r.allowStaleOnFetchAbort,m=g||r.allowStaleOnFetchRejection,d=m||r.noDeleteOnFetchRejection,y=p;if(this.#i[n]===p&&(!d||y.__staleWhileFetching===void 0?this.#R(e,"fetch"):g||(this.#i[n]=y.__staleWhileFetching)),m)return r.status&&y.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),y.__staleWhileFetching;if(y.__returned===y)throw D},h=(D,k)=>{let g=this.#c?.(e,o,l);g&&g instanceof Promise&&g.then(m=>D(m===void 0?void 0:m),k),s.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(D(void 0),r.allowStaleOnFetchAbort&&(D=m=>u(m,!0)))})};r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(u,c),w=Object.assign(p,{__abortController:s,__staleWhileFetching:o,__returned:void 0});return n===void 0?(this.set(e,w,{...l.options,status:void 0}),n=this.#l.get(e)):this.#i[n]=w,w}#u(e){if(!this.#x)return!1;let n=e;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof _c}async fetch(e,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:w=this.allowStaleOnFetchAbort,context:D,forceRefresh:k=!1,status:g,signal:m}=n;if(!this.#x)return g&&(g.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:g});let d={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:s,noDisposeOnSet:a,size:l,sizeCalculation:u,noUpdateTTL:c,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:w,ignoreFetchAbort:p,status:g,signal:m},y=this.#l.get(e);if(y===void 0){g&&(g.fetch="miss");let T=this.#N(e,y,d,D);return T.__returned=T}else{let T=this.#i[y];if(this.#u(T)){let F=r&&T.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",F&&(g.returnedStale=!0)),F?T.__staleWhileFetching:T.__returned=T}let x=this.#m(y);if(!k&&!x)return g&&(g.fetch="hit"),this.#j(y),i&&this.#k(y),g&&this.#r(g,y),T;let S=this.#N(e,y,d,D),A=S.__staleWhileFetching!==void 0&&r;return g&&(g.fetch=x?"stale":"refresh",A&&x&&(g.returnedStale=!0)),A?S.__staleWhileFetching:S.__returned=S}}async forceFetch(e,n={}){let r=await this.fetch(e,n);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(e,n={}){let r=this.#w;if(!r)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:o,...s}=n,a=this.get(e,s);if(!o&&a!==void 0)return a;let l=r(e,a,{options:s,context:i});return this.set(e,l,s),l}get(e,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:s}=n,a=this.#l.get(e);if(a!==void 0){let l=this.#i[a],u=this.#u(l);return s&&this.#r(s,a),this.#m(a)?(s&&(s.get="stale"),u?(s&&r&&l.__staleWhileFetching!==void 0&&(s.returnedStale=!0),r?l.__staleWhileFetching:void 0):(o||this.#R(e,"expire"),s&&r&&(s.returnedStale=!0),r?l:void 0)):(s&&(s.get="hit"),u?l.__staleWhileFetching:(this.#j(a),i&&this.#k(a),l))}else s&&(s.get="miss")}#B(e,n){this.#_[n]=e,this.#b[e]=n}#j(e){e!==this.#p&&(e===this.#g?this.#g=this.#b[e]:this.#B(this.#_[e],this.#b[e]),this.#B(this.#p,e),this.#p=e)}delete(e){return this.#R(e,"delete")}#R(e,n){let r=!1;if(this.#o!==0){let i=this.#l.get(e);if(i!==void 0)if(r=!0,this.#o===1)this.#U(n);else{this.#I(i);let o=this.#i[i];if(this.#u(o)?o.__abortController.abort(new Error("deleted")):(this.#D||this.#h)&&(this.#D&&this.#e?.(o,e,n),this.#h&&this.#d?.push([o,e,n])),this.#l.delete(e),this.#a[i]=void 0,this.#i[i]=void 0,i===this.#p)this.#p=this.#_[i];else if(i===this.#g)this.#g=this.#b[i];else{let s=this.#_[i];this.#b[s]=this.#b[i];let a=this.#b[i];this.#_[a]=this.#_[i]}this.#o--,this.#v.push(i)}}if(this.#h&&this.#d?.length){let i=this.#d,o;for(;o=i?.shift();)this.#s?.(...o)}return r}clear(){return this.#U("delete")}#U(e){for(let n of this.#A({allowStale:!0})){let r=this.#i[n];if(this.#u(r))r.__abortController.abort(new Error("deleted"));else{let i=this.#a[n];this.#D&&this.#e?.(r,i,e),this.#h&&this.#d?.push([r,i,e])}}if(this.#l.clear(),this.#i.fill(void 0),this.#a.fill(void 0),this.#y&&this.#E&&(this.#y.fill(0),this.#E.fill(0)),this.#S&&this.#S.fill(0),this.#g=0,this.#p=0,this.#v.length=0,this.#f=0,this.#o=0,this.#h&&this.#d){let n=this.#d,r;for(;r=n?.shift();)this.#s?.(...r)}}};Dc.LRUCache=ug});var yg=b(at=>{"use strict";var tz=at&&at.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(at,"__esModule",{value:!0});at.Minipass=at.isWritable=at.isReadable=at.isStream=void 0;var L2=typeof process=="object"&&process?process:{stdout:null,stderr:null},gg=N("node:events"),N2=tz(N("node:stream")),nz=N("node:string_decoder"),rz=t=>!!t&&typeof t=="object"&&(t instanceof Ac||t instanceof N2.default||(0,at.isReadable)(t)||(0,at.isWritable)(t));at.isStream=rz;var iz=t=>!!t&&typeof t=="object"&&t instanceof gg.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==N2.default.Writable.prototype.pipe;at.isReadable=iz;var oz=t=>!!t&&typeof t=="object"&&t instanceof gg.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function";at.isWritable=oz;var Cn=Symbol("EOF"),Fn=Symbol("maybeEmitEnd"),rr=Symbol("emittedEnd"),xc=Symbol("emittingEnd"),Qs=Symbol("emittedError"),vc=Symbol("closed"),P2=Symbol("read"),Sc=Symbol("flush"),q2=Symbol("flushChunk"),Gt=Symbol("encoding"),ho=Symbol("decoder"),Me=Symbol("flowing"),Zs=Symbol("paused"),po=Symbol("resume"),Ne=Symbol("buffer"),st=Symbol("pipes"),Be=Symbol("bufferLength"),cg=Symbol("bufferPush"),Ec=Symbol("bufferShift"),tt=Symbol("objectMode"),Ae=Symbol("destroyed"),fg=Symbol("error"),hg=Symbol("emitData"),M2=Symbol("emitEnd"),pg=Symbol("emitEnd2"),an=Symbol("async"),dg=Symbol("abort"),kc=Symbol("aborted"),Js=Symbol("signal"),Jr=Symbol("dataListeners"),wt=Symbol("discarded"),Xs=t=>Promise.resolve().then(t),sz=t=>t(),az=t=>t==="end"||t==="finish"||t==="prefinish",lz=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,uz=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),Tc=class{src;dest;opts;ondrain;constructor(e,n,r){this.src=e,this.dest=n,this.opts=r,this.ondrain=()=>e[po](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},mg=class extends Tc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,n,r){super(e,n,r),this.proxyErrors=i=>n.emit("error",i),e.on("error",this.proxyErrors)}},cz=t=>!!t.objectMode,fz=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",Ac=class extends gg.EventEmitter{[Me]=!1;[Zs]=!1;[st]=[];[Ne]=[];[tt];[Gt];[an];[ho];[Cn]=!1;[rr]=!1;[xc]=!1;[vc]=!1;[Qs]=null;[Be]=0;[Ae]=!1;[Js];[kc]=!1;[Jr]=0;[wt]=!1;writable=!0;readable=!0;constructor(...e){let n=e[0]||{};if(super(),n.objectMode&&typeof n.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");cz(n)?(this[tt]=!0,this[Gt]=null):fz(n)?(this[Gt]=n.encoding,this[tt]=!1):(this[tt]=!1,this[Gt]=null),this[an]=!!n.async,this[ho]=this[Gt]?new nz.StringDecoder(this[Gt]):null,n&&n.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Ne]}),n&&n.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[st]});let{signal:r}=n;r&&(this[Js]=r,r.aborted?this[dg]():r.addEventListener("abort",()=>this[dg]()))}get bufferLength(){return this[Be]}get encoding(){return this[Gt]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[tt]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[an]}set async(e){this[an]=this[an]||!!e}[dg](){this[kc]=!0,this.emit("abort",this[Js]?.reason),this.destroy(this[Js]?.reason)}get aborted(){return this[kc]}set aborted(e){}write(e,n,r){if(this[kc])return!1;if(this[Cn])throw new Error("write after end");if(this[Ae])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof n=="function"&&(r=n,n="utf8"),n||(n="utf8");let i=this[an]?Xs:sz;if(!this[tt]&&!Buffer.isBuffer(e)){if(uz(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(lz(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[tt]?(this[Me]&&this[Be]!==0&&this[Sc](!0),this[Me]?this.emit("data",e):this[cg](e),this[Be]!==0&&this.emit("readable"),r&&i(r),this[Me]):e.length?(typeof e=="string"&&!(n===this[Gt]&&!this[ho]?.lastNeed)&&(e=Buffer.from(e,n)),Buffer.isBuffer(e)&&this[Gt]&&(e=this[ho].write(e)),this[Me]&&this[Be]!==0&&this[Sc](!0),this[Me]?this.emit("data",e):this[cg](e),this[Be]!==0&&this.emit("readable"),r&&i(r),this[Me]):(this[Be]!==0&&this.emit("readable"),r&&i(r),this[Me])}read(e){if(this[Ae])return null;if(this[wt]=!1,this[Be]===0||e===0||e&&e>this[Be])return this[Fn](),null;this[tt]&&(e=null),this[Ne].length>1&&!this[tt]&&(this[Ne]=[this[Gt]?this[Ne].join(""):Buffer.concat(this[Ne],this[Be])]);let n=this[P2](e||null,this[Ne][0]);return this[Fn](),n}[P2](e,n){if(this[tt])this[Ec]();else{let r=n;e===r.length||e===null?this[Ec]():typeof r=="string"?(this[Ne][0]=r.slice(e),n=r.slice(0,e),this[Be]-=e):(this[Ne][0]=r.subarray(e),n=r.subarray(0,e),this[Be]-=e)}return this.emit("data",n),!this[Ne].length&&!this[Cn]&&this.emit("drain"),n}end(e,n,r){return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n="utf8"),e!==void 0&&this.write(e,n),r&&this.once("end",r),this[Cn]=!0,this.writable=!1,(this[Me]||!this[Zs])&&this[Fn](),this}[po](){this[Ae]||(!this[Jr]&&!this[st].length&&(this[wt]=!0),this[Zs]=!1,this[Me]=!0,this.emit("resume"),this[Ne].length?this[Sc]():this[Cn]?this[Fn]():this.emit("drain"))}resume(){return this[po]()}pause(){this[Me]=!1,this[Zs]=!0,this[wt]=!1}get destroyed(){return this[Ae]}get flowing(){return this[Me]}get paused(){return this[Zs]}[cg](e){this[tt]?this[Be]+=1:this[Be]+=e.length,this[Ne].push(e)}[Ec](){return this[tt]?this[Be]-=1:this[Be]-=this[Ne][0].length,this[Ne].shift()}[Sc](e=!1){do;while(this[q2](this[Ec]())&&this[Ne].length);!e&&!this[Ne].length&&!this[Cn]&&this.emit("drain")}[q2](e){return this.emit("data",e),this[Me]}pipe(e,n){if(this[Ae])return e;this[wt]=!1;let r=this[rr];return n=n||{},e===L2.stdout||e===L2.stderr?n.end=!1:n.end=n.end!==!1,n.proxyErrors=!!n.proxyErrors,r?n.end&&e.end():(this[st].push(n.proxyErrors?new mg(this,e,n):new Tc(this,e,n)),this[an]?Xs(()=>this[po]()):this[po]()),e}unpipe(e){let n=this[st].find(r=>r.dest===e);n&&(this[st].length===1?(this[Me]&&this[Jr]===0&&(this[Me]=!1),this[st]=[]):this[st].splice(this[st].indexOf(n),1),n.unpipe())}addListener(e,n){return this.on(e,n)}on(e,n){let r=super.on(e,n);if(e==="data")this[wt]=!1,this[Jr]++,!this[st].length&&!this[Me]&&this[po]();else if(e==="readable"&&this[Be]!==0)super.emit("readable");else if(az(e)&&this[rr])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[Qs]){let i=n;this[an]?Xs(()=>i.call(this,this[Qs])):i.call(this,this[Qs])}return r}removeListener(e,n){return this.off(e,n)}off(e,n){let r=super.off(e,n);return e==="data"&&(this[Jr]=this.listeners("data").length,this[Jr]===0&&!this[wt]&&!this[st].length&&(this[Me]=!1)),r}removeAllListeners(e){let n=super.removeAllListeners(e);return(e==="data"||e===void 0)&&(this[Jr]=0,!this[wt]&&!this[st].length&&(this[Me]=!1)),n}get emittedEnd(){return this[rr]}[Fn](){!this[xc]&&!this[rr]&&!this[Ae]&&this[Ne].length===0&&this[Cn]&&(this[xc]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[vc]&&this.emit("close"),this[xc]=!1)}emit(e,...n){let r=n[0];if(e!=="error"&&e!=="close"&&e!==Ae&&this[Ae])return!1;if(e==="data")return!this[tt]&&!r?!1:this[an]?(Xs(()=>this[hg](r)),!0):this[hg](r);if(e==="end")return this[M2]();if(e==="close"){if(this[vc]=!0,!this[rr]&&!this[Ae])return!1;let o=super.emit("close");return this.removeAllListeners("close"),o}else if(e==="error"){this[Qs]=r,super.emit(fg,r);let o=!this[Js]||this.listeners("error").length?super.emit("error",r):!1;return this[Fn](),o}else if(e==="resume"){let o=super.emit("resume");return this[Fn](),o}else if(e==="finish"||e==="prefinish"){let o=super.emit(e);return this.removeAllListeners(e),o}let i=super.emit(e,...n);return this[Fn](),i}[hg](e){for(let r of this[st])r.dest.write(e)===!1&&this.pause();let n=this[wt]?!1:super.emit("data",e);return this[Fn](),n}[M2](){return this[rr]?!1:(this[rr]=!0,this.readable=!1,this[an]?(Xs(()=>this[pg]()),!0):this[pg]())}[pg](){if(this[ho]){let n=this[ho].end();if(n){for(let r of this[st])r.dest.write(n);this[wt]||super.emit("data",n)}}for(let n of this[st])n.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[tt]||(e.dataLength=0);let n=this.promise();return this.on("data",r=>{e.push(r),this[tt]||(e.dataLength+=r.length)}),await n,e}async concat(){if(this[tt])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Gt]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,n)=>{this.on(Ae,()=>n(new Error("stream destroyed"))),this.on("error",r=>n(r)),this.on("end",()=>e())})}[Symbol.asyncIterator](){this[wt]=!1;let e=!1,n=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return n();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Cn])return n();let o,s,a=f=>{this.off("data",l),this.off("end",u),this.off(Ae,c),n(),s(f)},l=f=>{this.off("error",a),this.off("end",u),this.off(Ae,c),this.pause(),o({value:f,done:!!this[Cn]})},u=()=>{this.off("error",a),this.off("data",l),this.off(Ae,c),n(),o({done:!0,value:void 0})},c=()=>a(new Error("stream destroyed"));return new Promise((f,h)=>{s=h,o=f,this.once(Ae,c),this.once("error",a),this.once("end",u),this.once("data",l)})},throw:n,return:n,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[wt]=!1;let e=!1,n=()=>(this.pause(),this.off(fg,n),this.off(Ae,n),this.off("end",n),e=!0,{done:!0,value:void 0}),r=()=>{if(e)return n();let i=this.read();return i===null?n():{done:!1,value:i}};return this.once("end",n),this.once(fg,n),this.once(Ae,n),{next:r,throw:n,return:n,[Symbol.iterator](){return this}}}destroy(e){if(this[Ae])return e?this.emit("error",e):this.emit(Ae),this;this[Ae]=!0,this[wt]=!0,this[Ne].length=0,this[Be]=0;let n=this;return typeof n.close=="function"&&!this[vc]&&n.close(),e?this.emit("error",e):this.emit(Ae),this}static get isStream(){return at.isStream}};at.Minipass=Ac});var X2=b(he=>{"use strict";var hz=he&&he.__createBinding||(Object.create?(function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}):(function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]})),pz=he&&he.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dz=he&&he.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&hz(e,t,n);return pz(e,t),e};Object.defineProperty(he,"__esModule",{value:!0});he.PathScurry=he.Path=he.PathScurryDarwin=he.PathScurryPosix=he.PathScurryWin32=he.PathScurryBase=he.PathPosix=he.PathWin32=he.PathBase=he.ChildrenCache=he.ResolveCache=void 0;var $2=I2(),Ic=N("node:path"),mz=N("node:url"),ta=N("fs"),gz=dz(N("node:fs")),yz=ta.realpathSync.native,Cc=N("node:fs/promises"),B2=yg(),na={lstatSync:ta.lstatSync,readdir:ta.readdir,readdirSync:ta.readdirSync,readlinkSync:ta.readlinkSync,realpathSync:yz,promises:{lstat:Cc.lstat,readdir:Cc.readdir,readlink:Cc.readlink,realpath:Cc.realpath}},H2=t=>!t||t===na||t===gz?na:{...na,...t,promises:{...na.promises,...t.promises||{}}},G2=/^\\\\\?\\([a-z]:)\\?$/i,bz=t=>t.replace(/\//g,"\\").replace(G2,"$1\\"),wz=/[\\\/]/,Pt=0,V2=1,Y2=2,ln=4,K2=6,Q2=8,Xr=10,Z2=12,Lt=15,ea=~Lt,bg=16,j2=32,ra=64,Vt=128,Fc=256,Oc=512,U2=ra|Vt|Oc,_z=1023,wg=t=>t.isFile()?Q2:t.isDirectory()?ln:t.isSymbolicLink()?Xr:t.isCharacterDevice()?Y2:t.isBlockDevice()?K2:t.isSocket()?Z2:t.isFIFO()?V2:Pt,z2=new Map,ia=t=>{let e=z2.get(t);if(e)return e;let n=t.normalize("NFKD");return z2.set(t,n),n},W2=new Map,Rc=t=>{let e=W2.get(t);if(e)return e;let n=ia(t.toLowerCase());return W2.set(t,n),n},oa=class extends $2.LRUCache{constructor(){super({max:256})}};he.ResolveCache=oa;var Lc=class extends $2.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:n=>n.length+1})}};he.ChildrenCache=Lc;var J2=Symbol("PathScurry setAsCwd"),Ge=class{name;root;roots;parent;nocase;isCWD=!1;#t;#n;get dev(){return this.#n}#e;get mode(){return this.#e}#s;get nlink(){return this.#s}#c;get uid(){return this.#c}#w;get gid(){return this.#w}#o;get rdev(){return this.#o}#f;get blksize(){return this.#f}#l;get ino(){return this.#l}#a;get size(){return this.#a}#i;get blocks(){return this.#i}#b;get atimeMs(){return this.#b}#_;get mtimeMs(){return this.#_}#g;get ctimeMs(){return this.#g}#p;get birthtimeMs(){return this.#p}#v;get atime(){return this.#v}#d;get mtime(){return this.#d}#S;get ctime(){return this.#S}#E;get birthtime(){return this.#E}#y;#D;#x;#h;#C;#k;#r;#O;#m;#F;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,n=Pt,r,i,o,s,a){this.name=e,this.#y=o?Rc(e):ia(e),this.#r=n&_z,this.nocase=o,this.roots=i,this.root=r||this,this.#O=s,this.#x=a.fullpath,this.#C=a.relative,this.#k=a.relativePosix,this.parent=a.parent,this.parent?this.#t=this.parent.#t:this.#t=H2(a.fs)}depth(){return this.#D!==void 0?this.#D:this.parent?this.#D=this.parent.depth()+1:this.#D=0}childrenCache(){return this.#O}resolve(e){if(!e)return this;let n=this.getRootString(e),i=e.substring(n.length).split(this.splitSep);return n?this.getRoot(n).#I(i):this.#I(i)}#I(e){let n=this;for(let r of e)n=n.child(r);return n}children(){let e=this.#O.get(this);if(e)return e;let n=Object.assign([],{provisional:0});return this.#O.set(this,n),this.#r&=~bg,n}child(e,n){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let r=this.children(),i=this.nocase?Rc(e):ia(e);for(let l of r)if(l.#y===i)return l;let o=this.parent?this.sep:"",s=this.#x?this.#x+o+e:void 0,a=this.newChild(e,Pt,{...n,parent:this,fullpath:s});return this.canReaddir()||(a.#r|=Vt),r.push(a),a}relative(){if(this.isCWD)return"";if(this.#C!==void 0)return this.#C;let e=this.name,n=this.parent;if(!n)return this.#C=this.name;let r=n.relative();return r+(!r||!n.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#k!==void 0)return this.#k;let e=this.name,n=this.parent;if(!n)return this.#k=this.fullpathPosix();let r=n.relativePosix();return r+(!r||!n.parent?"":"/")+e}fullpath(){if(this.#x!==void 0)return this.#x;let e=this.name,n=this.parent;if(!n)return this.#x=this.name;let i=n.fullpath()+(n.parent?this.sep:"")+e;return this.#x=i}fullpathPosix(){if(this.#h!==void 0)return this.#h;if(this.sep==="/")return this.#h=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#h=`//?/${i}`:this.#h=i}let e=this.parent,n=e.fullpathPosix(),r=n+(!n||!e.parent?"":"/")+this.name;return this.#h=r}isUnknown(){return(this.#r&Lt)===Pt}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#r&Lt)===Q2}isDirectory(){return(this.#r&Lt)===ln}isCharacterDevice(){return(this.#r&Lt)===Y2}isBlockDevice(){return(this.#r&Lt)===K2}isFIFO(){return(this.#r&Lt)===V2}isSocket(){return(this.#r&Lt)===Z2}isSymbolicLink(){return(this.#r&Xr)===Xr}lstatCached(){return this.#r&j2?this:void 0}readlinkCached(){return this.#m}realpathCached(){return this.#F}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#m)return!0;if(!this.parent)return!1;let e=this.#r≪return!(e!==Pt&&e!==Xr||this.#r&Fc||this.#r&Vt)}calledReaddir(){return!!(this.#r&bg)}isENOENT(){return!!(this.#r&Vt)}isNamed(e){return this.nocase?this.#y===Rc(e):this.#y===ia(e)}async readlink(){let e=this.#m;if(e)return e;if(this.canReadlink()&&this.parent)try{let n=await this.#t.promises.readlink(this.fullpath()),r=(await this.parent.realpath())?.resolve(n);if(r)return this.#m=r}catch(n){this.#u(n.code);return}}readlinkSync(){let e=this.#m;if(e)return e;if(this.canReadlink()&&this.parent)try{let n=this.#t.readlinkSync(this.fullpath()),r=this.parent.realpathSync()?.resolve(n);if(r)return this.#m=r}catch(n){this.#u(n.code);return}}#L(e){this.#r|=bg;for(let n=e.provisional;n<e.length;n++){let r=e[n];r&&r.#P()}}#P(){this.#r&Vt||(this.#r=(this.#r|Vt)&ea,this.#T())}#T(){let e=this.children();e.provisional=0;for(let n of e)n.#P()}#A(){this.#r|=Oc,this.#q()}#q(){if(this.#r&ra)return;let e=this.#r;(e&Lt)===ln&&(e&=ea),this.#r=e|ra,this.#T()}#M(e=""){e==="ENOTDIR"||e==="EPERM"?this.#q():e==="ENOENT"?this.#P():this.children().provisional=0}#N(e=""){e==="ENOTDIR"?this.parent.#q():e==="ENOENT"&&this.#P()}#u(e=""){let n=this.#r;n|=Fc,e==="ENOENT"&&(n|=Vt),(e==="EINVAL"||e==="UNKNOWN")&&(n&=ea),this.#r=n,e==="ENOTDIR"&&this.parent&&this.parent.#q()}#B(e,n){return this.#R(e,n)||this.#j(e,n)}#j(e,n){let r=wg(e),i=this.newChild(e.name,r,{parent:this}),o=i.#r≪return o!==ln&&o!==Xr&&o!==Pt&&(i.#r|=ra),n.unshift(i),n.provisional++,i}#R(e,n){for(let r=n.provisional;r<n.length;r++){let i=n[r];if((this.nocase?Rc(e.name):ia(e.name))===i.#y)return this.#U(e,i,r,n)}}#U(e,n,r,i){let o=n.name;return n.#r=n.#r&ea|wg(e),o!==e.name&&(n.name=e.name),r!==i.provisional&&(r===i.length-1?i.pop():i.splice(r,1),i.unshift(n)),i.provisional++,n}async lstat(){if((this.#r&Vt)===0)try{return this.#H(await this.#t.promises.lstat(this.fullpath())),this}catch(e){this.#N(e.code)}}lstatSync(){if((this.#r&Vt)===0)try{return this.#H(this.#t.lstatSync(this.fullpath())),this}catch(e){this.#N(e.code)}}#H(e){let{atime:n,atimeMs:r,birthtime:i,birthtimeMs:o,blksize:s,blocks:a,ctime:l,ctimeMs:u,dev:c,gid:f,ino:h,mode:p,mtime:w,mtimeMs:D,nlink:k,rdev:g,size:m,uid:d}=e;this.#v=n,this.#b=r,this.#E=i,this.#p=o,this.#f=s,this.#i=a,this.#S=l,this.#g=u,this.#n=c,this.#w=f,this.#l=h,this.#e=p,this.#d=w,this.#_=D,this.#s=k,this.#o=g,this.#a=m,this.#c=d;let y=wg(e);this.#r=this.#r&ea|y|j2,y!==Pt&&y!==ln&&y!==Xr&&(this.#r|=ra)}#W=[];#$=!1;#G(e){this.#$=!1;let n=this.#W.slice();this.#W.length=0,n.forEach(r=>r(null,e))}readdirCB(e,n=!1){if(!this.canReaddir()){n?e(null,[]):queueMicrotask(()=>e(null,[]));return}let r=this.children();if(this.calledReaddir()){let o=r.slice(0,r.provisional);n?e(null,o):queueMicrotask(()=>e(null,o));return}if(this.#W.push(e),this.#$)return;this.#$=!0;let i=this.fullpath();this.#t.readdir(i,{withFileTypes:!0},(o,s)=>{if(o)this.#M(o.code),r.provisional=0;else{for(let a of s)this.#B(a,r);this.#L(r)}this.#G(r.slice(0,r.provisional))})}#z;async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let n=this.fullpath();if(this.#z)await this.#z;else{let r=()=>{};this.#z=new Promise(i=>r=i);try{for(let i of await this.#t.promises.readdir(n,{withFileTypes:!0}))this.#B(i,e);this.#L(e)}catch(i){this.#M(i.code),e.provisional=0}this.#z=void 0,r()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let n=this.fullpath();try{for(let r of this.#t.readdirSync(n,{withFileTypes:!0}))this.#B(r,e);this.#L(e)}catch(r){this.#M(r.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(this.#r&U2)return!1;let e=Lt&this.#r;return e===Pt||e===ln||e===Xr}shouldWalk(e,n){return(this.#r&ln)===ln&&!(this.#r&U2)&&!e.has(this)&&(!n||n(this))}async realpath(){if(this.#F)return this.#F;if(!((Oc|Fc|Vt)&this.#r))try{let e=await this.#t.promises.realpath(this.fullpath());return this.#F=this.resolve(e)}catch{this.#A()}}realpathSync(){if(this.#F)return this.#F;if(!((Oc|Fc|Vt)&this.#r))try{let e=this.#t.realpathSync(this.fullpath());return this.#F=this.resolve(e)}catch{this.#A()}}[J2](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let n=new Set([]),r=[],i=this;for(;i&&i.parent;)n.add(i),i.#C=r.join(this.sep),i.#k=r.join("/"),i=i.parent,r.push("..");for(i=e;i&&i.parent&&!n.has(i);)i.#C=void 0,i.#k=void 0,i=i.parent}};he.PathBase=Ge;var sa=class t extends Ge{sep="\\";splitSep=wz;constructor(e,n=Pt,r,i,o,s,a){super(e,n,r,i,o,s,a)}newChild(e,n=Pt,r={}){return new t(e,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return Ic.win32.parse(e).root}getRoot(e){if(e=bz(e.toUpperCase()),e===this.root.name)return this.root;for(let[n,r]of Object.entries(this.roots))if(this.sameRoot(e,n))return this.roots[e]=r;return this.roots[e]=new ua(e,this).root}sameRoot(e,n=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(G2,"$1\\"),e===n}};he.PathWin32=sa;var aa=class t extends Ge{splitSep="/";sep="/";constructor(e,n=Pt,r,i,o,s,a){super(e,n,r,i,o,s,a)}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,n=Pt,r={}){return new t(e,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}};he.PathPosix=aa;var la=class{root;rootPath;roots;cwd;#t;#n;#e;nocase;#s;constructor(e=process.cwd(),n,r,{nocase:i,childrenCacheSize:o=16*1024,fs:s=na}={}){this.#s=H2(s),(e instanceof URL||e.startsWith("file://"))&&(e=(0,mz.fileURLToPath)(e));let a=n.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#t=new oa,this.#n=new oa,this.#e=new Lc(o);let l=a.substring(this.rootPath.length).split(r);if(l.length===1&&!l[0]&&l.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let u=this.root,c=l.length-1,f=n.sep,h=this.rootPath,p=!1;for(let w of l){let D=c--;u=u.child(w,{relative:new Array(D).fill("..").join(f),relativePosix:new Array(D).fill("..").join("/"),fullpath:h+=(p?"":f)+w}),p=!0}this.cwd=u}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#e}resolve(...e){let n="";for(let o=e.length-1;o>=0;o--){let s=e[o];if(!(!s||s===".")&&(n=n?`${s}/${n}`:s,this.isAbsolute(s)))break}let r=this.#t.get(n);if(r!==void 0)return r;let i=this.cwd.resolve(n).fullpath();return this.#t.set(n,i),i}resolvePosix(...e){let n="";for(let o=e.length-1;o>=0;o--){let s=e[o];if(!(!s||s===".")&&(n=n?`${s}/${n}`:s,this.isAbsolute(s)))break}let r=this.#n.get(n);if(r!==void 0)return r;let i=this.cwd.resolve(n).fullpathPosix();return this.#n.set(n,i),i}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,n={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e,e=this.cwd);let{withFileTypes:r}=n;if(e.canReaddir()){let i=await e.readdir();return r?i:i.map(o=>o.name)}else return[]}readdirSync(e=this.cwd,n={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e,e=this.cwd);let{withFileTypes:r=!0}=n;return e.canReaddir()?r?e.readdirSync():e.readdirSync().map(i=>i.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e.withFileTypes,e=this.cwd);let r=await e.readlink();return n?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e.withFileTypes,e=this.cwd);let r=e.readlinkSync();return n?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e.withFileTypes,e=this.cwd);let r=await e.realpath();return n?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e.withFileTypes,e=this.cwd);let r=e.realpathSync();return n?r:r?.fullpath()}async walk(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:o,walkFilter:s}=n,a=[];(!o||o(e))&&a.push(r?e:e.fullpath());let l=new Set,u=(f,h)=>{l.add(f),f.readdirCB((p,w)=>{if(p)return h(p);let D=w.length;if(!D)return h();let k=()=>{--D===0&&h()};for(let g of w)(!o||o(g))&&a.push(r?g:g.fullpath()),i&&g.isSymbolicLink()?g.realpath().then(m=>m?.isUnknown()?m.lstat():m).then(m=>m?.shouldWalk(l,s)?u(m,k):k()):g.shouldWalk(l,s)?u(g,k):k()},!0)},c=e;return new Promise((f,h)=>{u(c,p=>{if(p)return h(p);f(a)})})}walkSync(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:o,walkFilter:s}=n,a=[];(!o||o(e))&&a.push(r?e:e.fullpath());let l=new Set([e]);for(let u of l){let c=u.readdirSync();for(let f of c){(!o||o(f))&&a.push(r?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(i&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(l,s)&&l.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,n={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e,e=this.cwd),this.stream(e,n)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:o,walkFilter:s}=n;(!o||o(e))&&(yield r?e:e.fullpath());let a=new Set([e]);for(let l of a){let u=l.readdirSync();for(let c of u){(!o||o(c))&&(yield r?c:c.fullpath());let f=c;if(c.isSymbolicLink()){if(!(i&&(f=c.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(a,s)&&a.add(f)}}}stream(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:o,walkFilter:s}=n,a=new B2.Minipass({objectMode:!0});(!o||o(e))&&a.write(r?e:e.fullpath());let l=new Set,u=[e],c=0,f=()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){c===0&&a.end();return}c++,l.add(p);let w=(k,g,m=!1)=>{if(k)return a.emit("error",k);if(i&&!m){let d=[];for(let y of g)y.isSymbolicLink()&&d.push(y.realpath().then(T=>T?.isUnknown()?T.lstat():T));if(d.length){Promise.all(d).then(()=>w(null,g,!0));return}}for(let d of g)d&&(!o||o(d))&&(a.write(r?d:d.fullpath())||(h=!0));c--;for(let d of g){let y=d.realpathCached()||d;y.shouldWalk(l,s)&&u.push(y)}h&&!a.flowing?a.once("drain",f):D||f()},D=!0;p.readdirCB(w,!0),D=!1}};return f(),a}streamSync(e=this.cwd,n={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof Ge||(n=e,e=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:o,walkFilter:s}=n,a=new B2.Minipass({objectMode:!0}),l=new Set;(!o||o(e))&&a.write(r?e:e.fullpath());let u=[e],c=0,f=()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){c===0&&a.end();return}c++,l.add(p);let w=p.readdirSync();for(let D of w)(!o||o(D))&&(a.write(r?D:D.fullpath())||(h=!0));c--;for(let D of w){let k=D;if(D.isSymbolicLink()){if(!(i&&(k=D.realpathSync())))continue;k.isUnknown()&&k.lstatSync()}k.shouldWalk(l,s)&&u.push(k)}}h&&!a.flowing&&a.once("drain",f)};return f(),a}chdir(e=this.cwd){let n=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[J2](n)}};he.PathScurryBase=la;var ua=class extends la{sep="\\";constructor(e=process.cwd(),n={}){let{nocase:r=!0}=n;super(e,Ic.win32,"\\",{...n,nocase:r}),this.nocase=r;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(e){return Ic.win32.parse(e).root.toUpperCase()}newRoot(e){return new sa(this.rootPath,ln,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}};he.PathScurryWin32=ua;var ca=class extends la{sep="/";constructor(e=process.cwd(),n={}){let{nocase:r=!1}=n;super(e,Ic.posix,"/",{...n,nocase:r}),this.nocase=r}parseRootPath(e){return"/"}newRoot(e){return new aa(this.rootPath,ln,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}};he.PathScurryPosix=ca;var Pc=class extends ca{constructor(e=process.cwd(),n={}){let{nocase:r=!0}=n;super(e,{...n,nocase:r})}};he.PathScurryDarwin=Pc;he.Path=process.platform==="win32"?sa:aa;he.PathScurry=process.platform==="win32"?ua:process.platform==="darwin"?Pc:ca});var Dg=b(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.Pattern=void 0;var Dz=wn(),xz=t=>t.length>=1,vz=t=>t.length>=1,_g=class t{#t;#n;#e;length;#s;#c;#w;#o;#f;#l;#a=!0;constructor(e,n,r,i){if(!xz(e))throw new TypeError("empty pattern list");if(!vz(n))throw new TypeError("empty glob list");if(n.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#t=e,this.#n=n,this.#e=r,this.#s=i,this.#e===0){if(this.isUNC()){let[o,s,a,l,...u]=this.#t,[c,f,h,p,...w]=this.#n;u[0]===""&&(u.shift(),w.shift());let D=[o,s,a,l,""].join("/"),k=[c,f,h,p,""].join("/");this.#t=[D,...u],this.#n=[k,...w],this.length=this.#t.length}else if(this.isDrive()||this.isAbsolute()){let[o,...s]=this.#t,[a,...l]=this.#n;s[0]===""&&(s.shift(),l.shift());let u=o+"/",c=a+"/";this.#t=[u,...s],this.#n=[c,...l],this.length=this.#t.length}}}pattern(){return this.#t[this.#e]}isString(){return typeof this.#t[this.#e]=="string"}isGlobstar(){return this.#t[this.#e]===Dz.GLOBSTAR}isRegExp(){return this.#t[this.#e]instanceof RegExp}globString(){return this.#w=this.#w||(this.#e===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#e).join("/"))}hasMore(){return this.length>this.#e+1}rest(){return this.#c!==void 0?this.#c:this.hasMore()?(this.#c=new t(this.#t,this.#n,this.#e+1,this.#s),this.#c.#l=this.#l,this.#c.#f=this.#f,this.#c.#o=this.#o,this.#c):this.#c=null}isUNC(){let e=this.#t;return this.#f!==void 0?this.#f:this.#f=this.#s==="win32"&&this.#e===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#t;return this.#o!==void 0?this.#o:this.#o=this.#s==="win32"&&this.#e===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#t;return this.#l!==void 0?this.#l:this.#l=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#t[0];return typeof e=="string"&&this.isAbsolute()&&this.#e===0?e:""}checkFollowGlobstar(){return!(this.#e===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#e===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};qc.Pattern=_g});var vg=b(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.Ignore=void 0;var eA=wn(),Sz=Dg(),Ez=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",xg=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:n,nocase:r,noext:i,noglobstar:o,platform:s=Ez}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=s,this.mmopts={dot:!0,nobrace:n,nocase:r,noext:i,noglobstar:o,optimizationLevel:2,platform:s,nocomment:!0,nonegate:!0};for(let a of e)this.add(a)}add(e){let n=new eA.Minimatch(e,this.mmopts);for(let r=0;r<n.set.length;r++){let i=n.set[r],o=n.globParts[r];if(!i||!o)throw new Error("invalid pattern object");for(;i[0]==="."&&o[0]===".";)i.shift(),o.shift();let s=new Sz.Pattern(i,o,0,this.platform),a=new eA.Minimatch(s.globString(),this.mmopts),l=o[o.length-1]==="**",u=s.isAbsolute();u?this.absolute.push(a):this.relative.push(a),l&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(e){let n=e.fullpath(),r=`${n}/`,i=e.relative()||".",o=`${i}/`;for(let s of this.relative)if(s.match(i)||s.match(o))return!0;for(let s of this.absolute)if(s.match(n)||s.match(r))return!0;return!1}childrenIgnored(e){let n=e.fullpath()+"/",r=(e.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(r))return!0;for(let i of this.absoluteChildren)if(i.match(n))return!0;return!1}};Mc.Ignore=xg});var nA=b(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.Processor=un.SubWalks=un.MatchRecord=un.HasWalkedCache=void 0;var tA=wn(),Nc=class t{store;constructor(e=new Map){this.store=e}copy(){return new t(new Map(this.store))}hasWalked(e,n){return this.store.get(e.fullpath())?.has(n.globString())}storeWalked(e,n){let r=e.fullpath(),i=this.store.get(r);i?i.add(n.globString()):this.store.set(r,new Set([n.globString()]))}};un.HasWalkedCache=Nc;var Bc=class{store=new Map;add(e,n,r){let i=(n?2:0)|(r?1:0),o=this.store.get(e);this.store.set(e,o===void 0?i:i&o)}entries(){return[...this.store.entries()].map(([e,n])=>[e,!!(n&2),!!(n&1)])}};un.MatchRecord=Bc;var jc=class{store=new Map;add(e,n){if(!e.canReaddir())return;let r=this.store.get(e);r?r.find(i=>i.globString()===n.globString())||r.push(n):this.store.set(e,[n])}get(e){let n=this.store.get(e);if(!n)throw new Error("attempting to walk unknown path");return n}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};un.SubWalks=jc;var Sg=class t{hasWalkedCache;matches=new Bc;subwalks=new jc;patterns;follow;dot;opts;constructor(e,n){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=n?n.copy():new Nc}processPatterns(e,n){this.patterns=n;let r=n.map(i=>[e,i]);for(let[i,o]of r){this.hasWalkedCache.storeWalked(i,o);let s=o.root(),a=o.isAbsolute()&&this.opts.absolute!==!1;if(s){i=i.resolve(s==="/"&&this.opts.root!==void 0?this.opts.root:s);let f=o.rest();if(f)o=f;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let l,u,c=!1;for(;typeof(l=o.pattern())=="string"&&(u=o.rest());)i=i.resolve(l),o=u,c=!0;if(l=o.pattern(),u=o.rest(),c){if(this.hasWalkedCache.hasWalked(i,o))continue;this.hasWalkedCache.storeWalked(i,o)}if(typeof l=="string"){let f=l===".."||l===""||l===".";this.matches.add(i.resolve(l),a,f);continue}else if(l===tA.GLOBSTAR){(!i.isSymbolicLink()||this.follow||o.checkFollowGlobstar())&&this.subwalks.add(i,o);let f=u?.pattern(),h=u?.rest();if(!u||(f===""||f===".")&&!h)this.matches.add(i,a,f===""||f===".");else if(f===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,a,!0)}}else l instanceof RegExp&&this.subwalks.add(i,o)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(e,n){let r=this.subwalks.get(e),i=this.child();for(let o of n)for(let s of r){let a=s.isAbsolute(),l=s.pattern(),u=s.rest();l===tA.GLOBSTAR?i.testGlobstar(o,s,u,a):l instanceof RegExp?i.testRegExp(o,l,u,a):i.testString(o,l,u,a)}return i}testGlobstar(e,n,r,i){if((this.dot||!e.name.startsWith("."))&&(n.hasMore()||this.matches.add(e,i,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,n):e.isSymbolicLink()&&(r&&n.checkFollowGlobstar()?this.subwalks.add(e,r):n.markFollowGlobstar()&&this.subwalks.add(e,n)))),r){let o=r.pattern();if(typeof o=="string"&&o!==".."&&o!==""&&o!==".")this.testString(e,o,r.rest(),i);else if(o===".."){let s=e.parent||e;this.subwalks.add(s,r)}else o instanceof RegExp&&this.testRegExp(e,o,r.rest(),i)}}testRegExp(e,n,r,i){n.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,i,!1))}testString(e,n,r,i){e.isNamed(n)&&(r?this.subwalks.add(e,r):this.matches.add(e,i,!1))}};un.Processor=Sg});var oA=b(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.GlobStream=ir.GlobWalker=ir.GlobUtil=void 0;var kz=yg(),rA=vg(),iA=nA(),Tz=(t,e)=>typeof t=="string"?new rA.Ignore([t],e):Array.isArray(t)?new rA.Ignore(t,e):t,fa=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#t=[];#n;#e;signal;maxDepth;includeChildMatches;constructor(e,n,r){if(this.patterns=e,this.path=n,this.opts=r,this.#e=!r.posix&&r.platform==="win32"?"\\":"/",this.includeChildMatches=r.includeChildMatches!==!1,(r.ignore||!this.includeChildMatches)&&(this.#n=Tz(r.ignore??[],r),!this.includeChildMatches&&typeof this.#n.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",()=>{this.#t.length=0}))}#s(e){return this.seen.has(e)||!!this.#n?.ignored?.(e)}#c(e){return!!this.#n?.childrenIgnored?.(e)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#t.shift());)e()}onResume(e){this.signal?.aborted||(this.paused?this.#t.push(e):e())}async matchCheck(e,n){if(n&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r}let o=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&o?.isSymbolicLink()){let s=await o.realpath();s&&(s.isUnknown()||this.opts.stat)&&await s.lstat()}return this.matchCheckTest(o,n)}matchCheckTest(e,n){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!n||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#s(e)?e:void 0}matchCheckSync(e,n){if(n&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r}let o=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&o?.isSymbolicLink()){let s=o.realpathSync();s&&(s?.isUnknown()||this.opts.stat)&&s.lstatSync()}return this.matchCheckTest(o,n)}matchFinish(e,n){if(this.#s(e))return;if(!this.includeChildMatches&&this.#n?.add){let o=`${e.relativePosix()}/**`;this.#n.add(o)}let r=this.opts.absolute===void 0?n:this.opts.absolute;this.seen.add(e);let i=this.opts.mark&&e.isDirectory()?this.#e:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){let o=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(o+i)}else{let o=this.opts.posix?e.relativePosix():e.relative(),s=this.opts.dotRelative&&!o.startsWith(".."+this.#e)?"."+this.#e:"";this.matchEmit(o?s+o+i:"."+i)}}async match(e,n,r){let i=await this.matchCheck(e,r);i&&this.matchFinish(i,n)}matchSync(e,n,r){let i=this.matchCheckSync(e,r);i&&this.matchFinish(i,n)}walkCB(e,n,r){this.signal?.aborted&&r(),this.walkCB2(e,n,new iA.Processor(this.opts),r)}walkCB2(e,n,r,i){if(this.#c(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(e,n,r,i));return}r.processPatterns(e,n);let o=1,s=()=>{--o===0&&i()};for(let[a,l,u]of r.matches.entries())this.#s(a)||(o++,this.match(a,l,u).then(()=>s()));for(let a of r.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;o++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,r,s):a.readdirCB((u,c)=>this.walkCB3(a,c,r,s),!0)}s()}walkCB3(e,n,r,i){r=r.filterEntries(e,n);let o=1,s=()=>{--o===0&&i()};for(let[a,l,u]of r.matches.entries())this.#s(a)||(o++,this.match(a,l,u).then(()=>s()));for(let[a,l]of r.subwalks.entries())o++,this.walkCB2(a,l,r.child(),s);s()}walkCBSync(e,n,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,n,new iA.Processor(this.opts),r)}walkCB2Sync(e,n,r,i){if(this.#c(e))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(e,n,r,i));return}r.processPatterns(e,n);let o=1,s=()=>{--o===0&&i()};for(let[a,l,u]of r.matches.entries())this.#s(a)||this.matchSync(a,l,u);for(let a of r.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;o++;let l=a.readdirSync();this.walkCB3Sync(a,l,r,s)}s()}walkCB3Sync(e,n,r,i){r=r.filterEntries(e,n);let o=1,s=()=>{--o===0&&i()};for(let[a,l,u]of r.matches.entries())this.#s(a)||this.matchSync(a,l,u);for(let[a,l]of r.subwalks.entries())o++,this.walkCB2Sync(a,l,r.child(),s);s()}};ir.GlobUtil=fa;var Eg=class extends fa{matches=new Set;constructor(e,n,r){super(e,n,r)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,n)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?n(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};ir.GlobWalker=Eg;var kg=class extends fa{results;constructor(e,n,r){super(e,n,r),this.results=new kz.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};ir.GlobStream=kg});var Ag=b(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.Glob=void 0;var Az=wn(),Cz=N("node:url"),Uc=X2(),Fz=Dg(),zc=oA(),Rz=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Tg=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,n){if(!n)throw new TypeError("glob options required");if(this.withFileTypes=!!n.withFileTypes,this.signal=n.signal,this.follow=!!n.follow,this.dot=!!n.dot,this.dotRelative=!!n.dotRelative,this.nodir=!!n.nodir,this.mark=!!n.mark,n.cwd?(n.cwd instanceof URL||n.cwd.startsWith("file://"))&&(n.cwd=(0,Cz.fileURLToPath)(n.cwd)):this.cwd="",this.cwd=n.cwd||"",this.root=n.root,this.magicalBraces=!!n.magicalBraces,this.nobrace=!!n.nobrace,this.noext=!!n.noext,this.realpath=!!n.realpath,this.absolute=n.absolute,this.includeChildMatches=n.includeChildMatches!==!1,this.noglobstar=!!n.noglobstar,this.matchBase=!!n.matchBase,this.maxDepth=typeof n.maxDepth=="number"?n.maxDepth:1/0,this.stat=!!n.stat,this.ignore=n.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(n.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`)}if(this.pattern=e,this.platform=n.platform||Rz,this.opts={...n,platform:this.platform},n.scurry){if(this.scurry=n.scurry,n.nocase!==void 0&&n.nocase!==n.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let l=n.platform==="win32"?Uc.PathScurryWin32:n.platform==="darwin"?Uc.PathScurryDarwin:n.platform?Uc.PathScurryPosix:Uc.PathScurry;this.scurry=new l(this.cwd,{nocase:n.nocase,fs:n.fs})}this.nocase=this.scurry.nocase;let r=this.platform==="darwin"||this.platform==="win32",i={...n,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},o=this.pattern.map(l=>new Az.Minimatch(l,i)),[s,a]=o.reduce((l,u)=>(l[0].push(...u.set),l[1].push(...u.globParts),l),[[],[]]);this.patterns=s.map((l,u)=>{let c=a[u];if(!c)throw new Error("invalid pattern object");return new Fz.Pattern(l,c,0,this.platform)})}async walk(){return[...await new zc.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new zc.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new zc.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new zc.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};Wc.Glob=Tg});var Cg=b($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.hasMagic=void 0;var Oz=wn(),Iz=(t,e={})=>{Array.isArray(t)||(t=[t]);for(let n of t)if(new Oz.Minimatch(n,e).hasMagic())return!0;return!1};$c.hasMagic=Iz});var uA=b(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.glob=ie.sync=ie.iterate=ie.iterateSync=ie.stream=ie.streamSync=ie.Ignore=ie.hasMagic=ie.Glob=ie.unescape=ie.escape=void 0;ie.globStreamSync=ha;ie.globStream=Fg;ie.globSync=Rg;ie.globIterateSync=pa;ie.globIterate=Og;var sA=wn(),ei=Ag(),Lz=Cg(),lA=wn();Object.defineProperty(ie,"escape",{enumerable:!0,get:function(){return lA.escape}});Object.defineProperty(ie,"unescape",{enumerable:!0,get:function(){return lA.unescape}});var Pz=Ag();Object.defineProperty(ie,"Glob",{enumerable:!0,get:function(){return Pz.Glob}});var qz=Cg();Object.defineProperty(ie,"hasMagic",{enumerable:!0,get:function(){return qz.hasMagic}});var Mz=vg();Object.defineProperty(ie,"Ignore",{enumerable:!0,get:function(){return Mz.Ignore}});function ha(t,e={}){return new ei.Glob(t,e).streamSync()}function Fg(t,e={}){return new ei.Glob(t,e).stream()}function Rg(t,e={}){return new ei.Glob(t,e).walkSync()}async function aA(t,e={}){return new ei.Glob(t,e).walk()}function pa(t,e={}){return new ei.Glob(t,e).iterateSync()}function Og(t,e={}){return new ei.Glob(t,e).iterate()}ie.streamSync=ha;ie.stream=Object.assign(Fg,{sync:ha});ie.iterateSync=pa;ie.iterate=Object.assign(Og,{sync:pa});ie.sync=Object.assign(Rg,{stream:ha,iterate:pa});ie.glob=Object.assign(aA,{glob:aA,globSync:Rg,sync:ie.sync,globStream:Fg,stream:ie.stream,globStreamSync:ha,streamSync:ie.streamSync,globIterate:Og,iterate:ie.iterate,globIterateSync:pa,iterateSync:ie.iterateSync,Glob:ei.Glob,hasMagic:Lz.hasMagic,escape:sA.escape,unescape:sA.unescape});ie.glob.glob=ie.glob});var pA=b((boe,hA)=>{"use strict";var fA=cd(),mo=N("path"),Ig=Kk(),Nz=c2(),Bz=D2(),jz=A2(),Uz=uA(),ti=hA.exports={},cA=/[\/\\]/g,zz=function(t,e){var n=[];return Ig(t).forEach(function(r){var i=r.indexOf("!")===0;i&&(r=r.slice(1));var o=e(r);i?n=Nz(n,o):n=Bz(n,o)}),n};ti.exists=function(){var t=mo.join.apply(mo,arguments);return fA.existsSync(t)};ti.expand=function(...t){var e=jz(t[0])?t.shift():{},n=Array.isArray(t[0])?t[0]:t;if(n.length===0)return[];var r=zz(n,function(i){return Uz.sync(i,e)});return e.filter&&(r=r.filter(function(i){i=mo.join(e.cwd||"",i);try{return typeof e.filter=="function"?e.filter(i):fA.statSync(i)[e.filter]()}catch{return!1}})),r};ti.expandMapping=function(t,e,n){n=Object.assign({rename:function(o,s){return mo.join(o||"",s)}},n);var r=[],i={};return ti.expand(n,t).forEach(function(o){var s=o;n.flatten&&(s=mo.basename(s)),n.ext&&(s=s.replace(/(\.[^\/]*)?$/,n.ext));var a=n.rename(e,s,n);n.cwd&&(o=mo.join(n.cwd,o)),a=a.replace(cA,"/"),o=o.replace(cA,"/"),i[a]?i[a].src.push(o):(r.push({src:[o],dest:a}),i[a]=r[r.length-1])}),r};ti.normalizeFilesArray=function(t){var e=[];return t.forEach(function(n){var r;("src"in n||"dest"in n)&&e.push(n)}),e.length===0?[]:(e=_(e).chain().forEach(function(n){!("src"in n)||!n.src||(Array.isArray(n.src)?n.src=Ig(n.src):n.src=[n.src])}).map(function(n){var r=Object.assign({},n);if(delete r.src,delete r.dest,n.expand)return ti.expandMapping(n.src,n.dest,r).map(function(o){var s=Object.assign({},n);return s.orig=Object.assign({},n),s.src=o.src,s.dest=o.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete s[a]}),s});var i=Object.assign({},n);return i.orig=Object.assign({},n),"src"in i&&Object.defineProperty(i,"src",{enumerable:!0,get:function o(){var s;return"result"in o||(s=n.src,s=Array.isArray(s)?Ig(s):[s],o.result=ti.expand(r,s)),o.result}}),"dest"in i&&(i.dest=n.dest),i}).flatten().value(),e)}});var go=b((_oe,gA)=>{"use strict";var Lg=cd(),dA=N("path"),Wz=_u(),$z=iv(),mA=Rd(),Hz=N1(),woe=N("stream").Stream,Gz=Zr().PassThrough,_t=gA.exports={};_t.file=pA();_t.collectStream=function(t,e){var n=[],r=0;t.on("error",e),t.on("data",function(i){n.push(i),r+=i.length}),t.on("end",function(){var i=Buffer.alloc(r),o=0;n.forEach(function(s){s.copy(i,o),o+=s.length}),e(null,i)})};_t.dateify=function(t){return t=t||new Date,t instanceof Date?t=t:typeof t=="string"?t=new Date(t):t=new Date,t};_t.defaults=function(t,e,n){var r=arguments;return r[0]=r[0]||{},Hz(...r)};_t.isStream=function(t){return Wz(t)};_t.lazyReadStream=function(t){return new $z.Readable(function(){return Lg.createReadStream(t)})};_t.normalizeInputSource=function(t){return t===null?Buffer.alloc(0):typeof t=="string"?Buffer.from(t):_t.isStream(t)?t.pipe(new Gz):t};_t.sanitizePath=function(t){return mA(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};_t.trailingSlashIt=function(t){return t.slice(-1)!=="/"?t+"/":t};_t.unixifyPath=function(t){return mA(t,!1).replace(/^\w+:/,"")};_t.walkdir=function(t,e,n){var r=[];typeof e=="function"&&(n=e,e=t),Lg.readdir(t,function(i,o){var s=0,a,l;if(i)return n(i);(function u(){if(a=o[s++],!a)return n(null,r);l=dA.join(t,a),Lg.stat(l,function(c,f){r.push({path:l,relative:dA.relative(e,l).replace(/\\/g,"/"),stats:f}),f&&f.isDirectory()?_t.walkdir(l,e,function(h,p){if(h)return n(h);p.forEach(function(w){r.push(w)}),u()}):u()})})()})}});var _A=b((bA,wA)=>{"use strict";var Vz=N("util"),Yz={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function yA(t,e){Error.captureStackTrace(this,this.constructor),this.message=Yz[t]||t,this.code=t,this.data=e}Vz.inherits(yA,Error);bA=wA.exports=yA});var EA=b((Doe,SA)=>{"use strict";var Mg=N("fs"),xA=X_(),DA=(JD(),JF(ZD)),Pg=N("path"),cn=go(),Kz=N("util").inherits,ke=_A(),vA=Zr().Transform,qg=process.platform==="win32",ue=function(t,e){if(!(this instanceof ue))return new ue(t,e);typeof t!="string"&&(e=t,t="zip"),e=this.options=cn.defaults(e,{highWaterMark:1024*1024,statConcurrency:4}),vA.call(this,e),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=DA.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=DA.queue(this._onStatQueueTask.bind(this),e.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};Kz(ue,vA);ue.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};ue.prototype._append=function(t,e){e=e||{};var n={source:null,filepath:t};e.name||(e.name=t),e.sourcePath=t,n.data=e,this._entriesCount++,e.stats&&e.stats instanceof Mg.Stats?(n=this._updateQueueTaskWithStats(n,e.stats),n&&(e.stats.size&&(this._fsEntriesTotalBytes+=e.stats.size),this._queue.push(n))):this._statQueue.push(n)};ue.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};ue.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};ue.prototype._moduleAppend=function(t,e,n){if(this._state.aborted){n();return}this._module.append(t,e,function(r){if(this._task=null,this._state.aborted){this._shutdown();return}if(r){this.emit("error",r),setImmediate(n);return}this.emit("entry",e),this._entriesProcessedCount++,e.stats&&e.stats.size&&(this._fsEntriesProcessedBytes+=e.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}.bind(this))};ue.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new ke("NOENDMETHOD"))};ue.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};ue.prototype._moduleSupports=function(t){return!this._module.supports||!this._module.supports[t]?!1:this._module.supports[t]};ue.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};ue.prototype._normalizeEntryData=function(t,e){t=cn.defaults(t,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),e&&t.stats===!1&&(t.stats=e);var n=t.type==="directory";return t.name&&(typeof t.prefix=="string"&&t.prefix!==""&&(t.name=t.prefix+"/"+t.name,t.prefix=null),t.name=cn.sanitizePath(t.name),t.type!=="symlink"&&t.name.slice(-1)==="/"?(n=!0,t.type="directory"):n&&(t.name+="/")),typeof t.mode=="number"?qg?t.mode&=511:t.mode&=4095:t.stats&&t.mode===null?(qg?t.mode=t.stats.mode&511:t.mode=t.stats.mode&4095,qg&&n&&(t.mode=493)):t.mode===null&&(t.mode=n?493:420),t.stats&&t.date===null?t.date=t.stats.mtime:t.date=cn.dateify(t.date),t};ue.prototype._onModuleError=function(t){this.emit("error",t)};ue.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};ue.prototype._onQueueTask=function(t,e){var n=()=>{t.data.callback&&t.data.callback(),e()};if(this._state.finalizing||this._state.finalized||this._state.aborted){n();return}this._task=t,this._moduleAppend(t.source,t.data,n)};ue.prototype._onStatQueueTask=function(t,e){if(this._state.finalizing||this._state.finalized||this._state.aborted){e();return}Mg.lstat(t.filepath,function(n,r){if(this._state.aborted){setImmediate(e);return}if(n){this._entriesCount--,this.emit("warning",n),setImmediate(e);return}t=this._updateQueueTaskWithStats(t,r),t&&(r.size&&(this._fsEntriesTotalBytes+=r.size),this._queue.push(t)),setImmediate(e)}.bind(this))};ue.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};ue.prototype._transform=function(t,e,n){t&&(this._pointer+=t.length),n(null,t)};ue.prototype._updateQueueTaskWithStats=function(t,e){if(e.isFile())t.data.type="file",t.data.sourceType="stream",t.source=cn.lazyReadStream(t.filepath);else if(e.isDirectory()&&this._moduleSupports("directory"))t.data.name=cn.trailingSlashIt(t.data.name),t.data.type="directory",t.data.sourcePath=cn.trailingSlashIt(t.filepath),t.data.sourceType="buffer",t.source=Buffer.concat([]);else if(e.isSymbolicLink()&&this._moduleSupports("symlink")){var n=Mg.readlinkSync(t.filepath),r=Pg.dirname(t.filepath);t.data.type="symlink",t.data.linkname=Pg.relative(r,Pg.resolve(r,n)),t.data.sourceType="buffer",t.source=Buffer.concat([])}else return e.isDirectory()?this.emit("warning",new ke("DIRECTORYNOTSUPPORTED",t.data)):e.isSymbolicLink()?this.emit("warning",new ke("SYMLINKNOTSUPPORTED",t.data)):this.emit("warning",new ke("ENTRYNOTSUPPORTED",t.data)),null;return t.data=this._normalizeEntryData(t.data,e),t};ue.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};ue.prototype.append=function(t,e){if(this._state.finalize||this._state.aborted)return this.emit("error",new ke("QUEUECLOSED")),this;if(e=this._normalizeEntryData(e),typeof e.name!="string"||e.name.length===0)return this.emit("error",new ke("ENTRYNAMEREQUIRED")),this;if(e.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new ke("DIRECTORYNOTSUPPORTED",{name:e.name})),this;if(t=cn.normalizeInputSource(t),Buffer.isBuffer(t))e.sourceType="buffer";else if(cn.isStream(t))e.sourceType="stream";else return this.emit("error",new ke("INPUTSTEAMBUFFERREQUIRED",{name:e.name})),this;return this._entriesCount++,this._queue.push({data:e,source:t}),this};ue.prototype.directory=function(t,e,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new ke("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ke("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,e===!1?e="":typeof e!="string"&&(e=t);var r=!1;typeof n=="function"?(r=n,n={}):typeof n!="object"&&(n={});var i={stat:!0,dot:!0};function o(){this._pending--,this._maybeFinalize()}function s(u){this.emit("error",u)}function a(u){l.pause();var c=!1,f=Object.assign({},n);f.name=u.relative,f.prefix=e,f.stats=u.stat,f.callback=l.resume.bind(l);try{if(r){if(f=r(f),f===!1)c=!0;else if(typeof f!="object")throw new ke("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:t})}}catch(h){this.emit("error",h);return}if(c){l.resume();return}this._append(u.absolute,f)}var l=xA(t,i);return l.on("error",s.bind(this)),l.on("match",a.bind(this)),l.on("end",o.bind(this)),this};ue.prototype.file=function(t,e){return this._state.finalize||this._state.aborted?(this.emit("error",new ke("QUEUECLOSED")),this):typeof t!="string"||t.length===0?(this.emit("error",new ke("FILEFILEPATHREQUIRED")),this):(this._append(t,e),this)};ue.prototype.glob=function(t,e,n){this._pending++,e=cn.defaults(e,{stat:!0,pattern:t});function r(){this._pending--,this._maybeFinalize()}function i(a){this.emit("error",a)}function o(a){s.pause();var l=Object.assign({},n);l.callback=s.resume.bind(s),l.stats=a.stat,l.name=a.relative,this._append(a.absolute,l)}var s=xA(e.cwd||".",e);return s.on("error",i.bind(this)),s.on("match",o.bind(this)),s.on("end",r.bind(this)),this};ue.prototype.finalize=function(){if(this._state.aborted){var t=new ke("ABORTED");return this.emit("error",t),Promise.reject(t)}if(this._state.finalize){var e=new ke("FINALIZING");return this.emit("error",e),Promise.reject(e)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var n=this;return new Promise(function(r,i){var o;n._module.on("end",function(){o||r()}),n._module.on("error",function(s){o=!0,i(s)})})};ue.prototype.setFormat=function(t){return this._format?(this.emit("error",new ke("FORMATSET")),this):(this._format=t,this)};ue.prototype.setModule=function(t){return this._state.aborted?(this.emit("error",new ke("ABORTED")),this):this._state.module?(this.emit("error",new ke("MODULESET")),this):(this._module=t,this._modulePipe(),this)};ue.prototype.symlink=function(t,e,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new ke("QUEUECLOSED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new ke("SYMLINKFILEPATHREQUIRED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new ke("SYMLINKTARGETREQUIRED",{filepath:t})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new ke("SYMLINKNOTSUPPORTED",{filepath:t})),this;var r={};return r.type="symlink",r.name=t.replace(/\\/g,"/"),r.linkname=e.replace(/\\/g,"/"),r.sourceType="buffer",typeof n=="number"&&(r.mode=n),this._entriesCount++,this._queue.push({data:r,source:Buffer.concat([])}),this};ue.prototype.pointer=function(){return this._pointer};ue.prototype.use=function(t){return this._streams.push(t),this};SA.exports=ue});var Gc=b((xoe,kA)=>{"use strict";var Hc=kA.exports=function(){};Hc.prototype.getName=function(){};Hc.prototype.getSize=function(){};Hc.prototype.getLastModifiedDate=function(){};Hc.prototype.isDirectory=function(){}});var Vc=b((voe,TA)=>{"use strict";var qt=TA.exports={};qt.dateToDos=function(t,e){e=e||!1;var n=e?t.getFullYear():t.getUTCFullYear();if(n<1980)return 2162688;if(n>=2044)return 2141175677;var r={year:n,month:e?t.getMonth():t.getUTCMonth(),date:e?t.getDate():t.getUTCDate(),hours:e?t.getHours():t.getUTCHours(),minutes:e?t.getMinutes():t.getUTCMinutes(),seconds:e?t.getSeconds():t.getUTCSeconds()};return r.year-1980<<25|r.month+1<<21|r.date<<16|r.hours<<11|r.minutes<<5|r.seconds/2};qt.dosToDate=function(t){return new Date((t>>25&127)+1980,(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(t&31)<<1)};qt.fromDosTime=function(t){return qt.dosToDate(t.readUInt32LE(0))};qt.getEightBytes=function(t){var e=Buffer.alloc(8);return e.writeUInt32LE(t%4294967296,0),e.writeUInt32LE(t/4294967296|0,4),e};qt.getShortBytes=function(t){var e=Buffer.alloc(2);return e.writeUInt16LE((t&65535)>>>0,0),e};qt.getShortBytesValue=function(t,e){return t.readUInt16LE(e)};qt.getLongBytes=function(t){var e=Buffer.alloc(4);return e.writeUInt32LE((t&4294967295)>>>0,0),e};qt.getLongBytesValue=function(t,e){return t.readUInt32LE(e)};qt.toDosTime=function(t){return qt.getLongBytes(qt.dateToDos(t))}});var Ng=b((Soe,IA)=>{"use strict";var AA=Vc(),CA=8,FA=1,Qz=4,Zz=2,RA=64,OA=2048,Ve=IA.exports=function(){return this instanceof Ve?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new Ve};Ve.prototype.encode=function(){return AA.getShortBytes((this.descriptor?CA:0)|(this.utf8?OA:0)|(this.encryption?FA:0)|(this.strongEncryption?RA:0))};Ve.prototype.parse=function(t,e){var n=AA.getShortBytesValue(t,e),r=new Ve;return r.useDataDescriptor((n&CA)!==0),r.useUTF8ForNames((n&OA)!==0),r.useStrongEncryption((n&RA)!==0),r.useEncryption((n&FA)!==0),r.setSlidingDictionarySize((n&Zz)!==0?8192:4096),r.setNumberOfShannonFanoTrees((n&Qz)!==0?3:2),r};Ve.prototype.setNumberOfShannonFanoTrees=function(t){this.numberOfShannonFanoTrees=t};Ve.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};Ve.prototype.setSlidingDictionarySize=function(t){this.slidingDictionarySize=t};Ve.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};Ve.prototype.useDataDescriptor=function(t){this.descriptor=t};Ve.prototype.usesDataDescriptor=function(){return this.descriptor};Ve.prototype.useEncryption=function(t){this.encryption=t};Ve.prototype.usesEncryption=function(){return this.encryption};Ve.prototype.useStrongEncryption=function(t){this.strongEncryption=t};Ve.prototype.usesStrongEncryption=function(){return this.strongEncryption};Ve.prototype.useUTF8ForNames=function(t){this.utf8=t};Ve.prototype.usesUTF8ForNames=function(){return this.utf8}});var PA=b((Eoe,LA)=>{"use strict";LA.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Bg=b((koe,qA)=>{"use strict";qA.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var jg=b((Toe,UA)=>{"use strict";var Jz=N("util").inherits,Xz=Rd(),NA=Gc(),BA=Ng(),MA=PA(),lt=Bg(),jA=Vc(),te=UA.exports=function(t){if(!(this instanceof te))return new te(t);NA.call(this),this.platform=lt.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new BA,this.crc=0,this.time=-1,this.minver=lt.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,t&&this.setName(t)};Jz(te,NA);te.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};te.prototype.getComment=function(){return this.comment!==null?this.comment:""};te.prototype.getCompressedSize=function(){return this.csize};te.prototype.getCrc=function(){return this.crc};te.prototype.getExternalAttributes=function(){return this.exattr};te.prototype.getExtra=function(){return this.extra!==null?this.extra:lt.EMPTY};te.prototype.getGeneralPurposeBit=function(){return this.gpb};te.prototype.getInternalAttributes=function(){return this.inattr};te.prototype.getLastModifiedDate=function(){return this.getTime()};te.prototype.getLocalFileDataExtra=function(){return this.getExtra()};te.prototype.getMethod=function(){return this.method};te.prototype.getName=function(){return this.name};te.prototype.getPlatform=function(){return this.platform};te.prototype.getSize=function(){return this.size};te.prototype.getTime=function(){return this.time!==-1?jA.dosToDate(this.time):-1};te.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};te.prototype.getUnixMode=function(){return this.platform!==lt.PLATFORM_UNIX?0:this.getExternalAttributes()>>lt.SHORT_SHIFT<.SHORT_MASK};te.prototype.getVersionNeededToExtract=function(){return this.minver};te.prototype.setComment=function(t){Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=t};te.prototype.setCompressedSize=function(t){if(t<0)throw new Error("invalid entry compressed size");this.csize=t};te.prototype.setCrc=function(t){if(t<0)throw new Error("invalid entry crc32");this.crc=t};te.prototype.setExternalAttributes=function(t){this.exattr=t>>>0};te.prototype.setExtra=function(t){this.extra=t};te.prototype.setGeneralPurposeBit=function(t){if(!(t instanceof BA))throw new Error("invalid entry GeneralPurposeBit");this.gpb=t};te.prototype.setInternalAttributes=function(t){this.inattr=t};te.prototype.setMethod=function(t){if(t<0)throw new Error("invalid entry compression method");this.method=t};te.prototype.setName=function(t,e=!1){t=Xz(t,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),e&&(t=`/${t}`),Buffer.byteLength(t)!==t.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=t};te.prototype.setPlatform=function(t){this.platform=t};te.prototype.setSize=function(t){if(t<0)throw new Error("invalid entry size");this.size=t};te.prototype.setTime=function(t,e){if(!(t instanceof Date))throw new Error("invalid entry time");this.time=jA.dateToDos(t,e)};te.prototype.setUnixMode=function(t){t|=this.isDirectory()?lt.S_IFDIR:lt.S_IFREG;var e=0;e|=t<<lt.SHORT_SHIFT|(this.isDirectory()?lt.S_DOS_D:lt.S_DOS_A),this.setExternalAttributes(e),this.mode=t<.MODE_MASK,this.platform=lt.PLATFORM_UNIX};te.prototype.setVersionNeededToExtract=function(t){this.minver=t};te.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};te.prototype.isUnixSymlink=function(){return(this.getUnixMode()&MA.FILE_TYPE_FLAG)===MA.LINK_FLAG};te.prototype.isZip64=function(){return this.csize>lt.ZIP64_MAGIC||this.size>lt.ZIP64_MAGIC}});var Ug=b((Coe,zA)=>{"use strict";var Aoe=N("stream").Stream,eW=Zr().PassThrough,tW=_u(),nW=zA.exports={};nW.normalizeInputSource=function(t){if(t===null)return Buffer.alloc(0);if(typeof t=="string")return Buffer.from(t);if(tW(t)&&!t._readableState){var e=new eW;return t.pipe(e),e}return t}});var Wg=b((Foe,WA)=>{"use strict";var rW=N("util").inherits,iW=_u(),zg=Zr().Transform,oW=Gc(),sW=Ug(),Dt=WA.exports=function(t){if(!(this instanceof Dt))return new Dt(t);zg.call(this,t),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};rW(Dt,zg);Dt.prototype._appendBuffer=function(t,e,n){};Dt.prototype._appendStream=function(t,e,n){};Dt.prototype._emitErrorCallback=function(t){t&&this.emit("error",t)};Dt.prototype._finish=function(t){};Dt.prototype._normalizeEntry=function(t){};Dt.prototype._transform=function(t,e,n){n(null,t)};Dt.prototype.entry=function(t,e,n){if(e=e||null,typeof n!="function"&&(n=this._emitErrorCallback.bind(this)),!(t instanceof oW)){n(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){n(new Error("unacceptable entry after finish"));return}if(this._archive.processing){n(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(t),this._entry=t,e=sW.normalizeInputSource(e),Buffer.isBuffer(e))this._appendBuffer(t,e,n);else if(iW(e))this._appendStream(t,e,n);else{this._archive.processing=!1,n(new Error("input source must be valid Stream or Buffer instance"));return}return this};Dt.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};Dt.prototype.getBytesWritten=function(){return this.offset};Dt.prototype.write=function(t,e){return t&&(this.offset+=t.length),zg.prototype.write.call(this,t,e)}});var Yc=b($g=>{"use strict";var $A;(function(t){typeof DO_NOT_EXPORT_CRC>"u"?typeof $g=="object"?t($g):typeof define=="function"&&define.amd?define(function(){var e={};return t(e),e}):t($A={}):t($A={})})(function(t){t.version="1.2.2";function e(){for(var S=0,M=new Array(256),A=0;A!=256;++A)S=A,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,M[A]=S;return typeof Int32Array<"u"?new Int32Array(M):M}var n=e();function r(S){var M=0,A=0,F=0,I=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(F=0;F!=256;++F)I[F]=S[F];for(F=0;F!=256;++F)for(A=S[F],M=256+F;M<4096;M+=256)A=I[M]=A>>>8^S[A&255];var B=[];for(F=1;F!=16;++F)B[F-1]=typeof Int32Array<"u"?I.subarray(F*256,F*256+256):I.slice(F*256,F*256+256);return B}var i=r(n),o=i[0],s=i[1],a=i[2],l=i[3],u=i[4],c=i[5],f=i[6],h=i[7],p=i[8],w=i[9],D=i[10],k=i[11],g=i[12],m=i[13],d=i[14];function y(S,M){for(var A=M^-1,F=0,I=S.length;F<I;)A=A>>>8^n[(A^S.charCodeAt(F++))&255];return~A}function T(S,M){for(var A=M^-1,F=S.length-15,I=0;I<F;)A=d[S[I++]^A&255]^m[S[I++]^A>>8&255]^g[S[I++]^A>>16&255]^k[S[I++]^A>>>24]^D[S[I++]]^w[S[I++]]^p[S[I++]]^h[S[I++]]^f[S[I++]]^c[S[I++]]^u[S[I++]]^l[S[I++]]^a[S[I++]]^s[S[I++]]^o[S[I++]]^n[S[I++]];for(F+=15;I<F;)A=A>>>8^n[(A^S[I++])&255];return~A}function x(S,M){for(var A=M^-1,F=0,I=S.length,B=0,O=0;F<I;)B=S.charCodeAt(F++),B<128?A=A>>>8^n[(A^B)&255]:B<2048?(A=A>>>8^n[(A^(192|B>>6&31))&255],A=A>>>8^n[(A^(128|B&63))&255]):B>=55296&&B<57344?(B=(B&1023)+64,O=S.charCodeAt(F++)&1023,A=A>>>8^n[(A^(240|B>>8&7))&255],A=A>>>8^n[(A^(128|B>>2&63))&255],A=A>>>8^n[(A^(128|O>>6&15|(B&3)<<4))&255],A=A>>>8^n[(A^(128|O&63))&255]):(A=A>>>8^n[(A^(224|B>>12&15))&255],A=A>>>8^n[(A^(128|B>>6&63))&255],A=A>>>8^n[(A^(128|B&63))&255]);return~A}t.table=n,t.bstr=y,t.buf=T,t.str=x})});var GA=b((Ooe,HA)=>{"use strict";var{Transform:aW}=Zr(),lW=Yc(),Hg=class extends aW{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(e,n,r){e&&(this.checksum=lW.buf(e,this.checksum)>>>0,this.rawSize+=e.length),r(null,e)}digest(e){let n=Buffer.allocUnsafe(4);return n.writeUInt32BE(this.checksum>>>0,0),e?n.toString(e):n}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};HA.exports=Hg});var YA=b((Ioe,VA)=>{"use strict";var{DeflateRaw:uW}=N("zlib"),cW=Yc(),Gg=class extends uW{constructor(e){super(e),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(e,n){return e&&(this.compressedSize+=e.length),super.push(e,n)}_transform(e,n,r){e&&(this.checksum=cW.buf(e,this.checksum)>>>0,this.rawSize+=e.length),super._transform(e,n,r)}digest(e){let n=Buffer.allocUnsafe(4);return n.writeUInt32BE(this.checksum>>>0,0),e?n.toString(e):n}hex(){return this.digest("hex").toUpperCase()}size(e=!1){return e?this.compressedSize:this.rawSize}};VA.exports=Gg});var Vg=b((Loe,KA)=>{"use strict";KA.exports={CRC32Stream:GA(),DeflateCRC32Stream:YA()}});var JA=b((Noe,ZA)=>{"use strict";var fW=N("util").inherits,hW=Yc(),{CRC32Stream:pW}=Vg(),{DeflateCRC32Stream:dW}=Vg(),QA=Wg(),Poe=jg(),qoe=Ng(),Z=Bg(),Moe=Ug(),W=Vc(),je=ZA.exports=function(t){if(!(this instanceof je))return new je(t);t=this.options=this._defaults(t),QA.call(this,t),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:t.forceZip64,forceLocalTime:t.forceLocalTime}};fW(je,QA);je.prototype._afterAppend=function(t){this._entries.push(t),t.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(t),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};je.prototype._appendBuffer=function(t,e,n){e.length===0&&t.setMethod(Z.METHOD_STORED);var r=t.getMethod();if(r===Z.METHOD_STORED&&(t.setSize(e.length),t.setCompressedSize(e.length),t.setCrc(hW.buf(e)>>>0)),this._writeLocalFileHeader(t),r===Z.METHOD_STORED){this.write(e),this._afterAppend(t),n(null,t);return}else if(r===Z.METHOD_DEFLATED){this._smartStream(t,n).end(e);return}else{n(new Error("compression method "+r+" not implemented"));return}};je.prototype._appendStream=function(t,e,n){t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(t);var r=this._smartStream(t,n);e.once("error",function(i){r.emit("error",i),r.end()}),e.pipe(r)};je.prototype._defaults=function(t){return typeof t!="object"&&(t={}),typeof t.zlib!="object"&&(t.zlib={}),typeof t.zlib.level!="number"&&(t.zlib.level=Z.ZLIB_BEST_SPEED),t.forceZip64=!!t.forceZip64,t.forceLocalTime=!!t.forceLocalTime,t};je.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(t){this._writeCentralFileHeader(t)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};je.prototype._normalizeEntry=function(t){t.getMethod()===-1&&t.setMethod(Z.METHOD_DEFLATED),t.getMethod()===Z.METHOD_DEFLATED&&(t.getGeneralPurposeBit().useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_DATA_DESCRIPTOR)),t.getTime()===-1&&t.setTime(new Date,this._archive.forceLocalTime),t._offsets={file:0,data:0,contents:0}};je.prototype._smartStream=function(t,e){var n=t.getMethod()===Z.METHOD_DEFLATED,r=n?new dW(this.options.zlib):new pW,i=null;function o(){var s=r.digest().readUInt32BE(0);t.setCrc(s),t.setSize(r.size()),t.setCompressedSize(r.size(!0)),this._afterAppend(t),e(i,t)}return r.once("end",o.bind(this)),r.once("error",function(s){i=s}),r.pipe(this,{end:!1}),r};je.prototype._writeCentralDirectoryEnd=function(){var t=this._entries.length,e=this._archive.centralLength,n=this._archive.centralOffset;this.isZip64()&&(t=Z.ZIP64_MAGIC_SHORT,e=Z.ZIP64_MAGIC,n=Z.ZIP64_MAGIC),this.write(W.getLongBytes(Z.SIG_EOCD)),this.write(Z.SHORT_ZERO),this.write(Z.SHORT_ZERO),this.write(W.getShortBytes(t)),this.write(W.getShortBytes(t)),this.write(W.getLongBytes(e)),this.write(W.getLongBytes(n));var r=this.getComment(),i=Buffer.byteLength(r);this.write(W.getShortBytes(i)),this.write(r)};je.prototype._writeCentralDirectoryZip64=function(){this.write(W.getLongBytes(Z.SIG_ZIP64_EOCD)),this.write(W.getEightBytes(44)),this.write(W.getShortBytes(Z.MIN_VERSION_ZIP64)),this.write(W.getShortBytes(Z.MIN_VERSION_ZIP64)),this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO),this.write(W.getEightBytes(this._entries.length)),this.write(W.getEightBytes(this._entries.length)),this.write(W.getEightBytes(this._archive.centralLength)),this.write(W.getEightBytes(this._archive.centralOffset)),this.write(W.getLongBytes(Z.SIG_ZIP64_EOCD_LOC)),this.write(Z.LONG_ZERO),this.write(W.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(W.getLongBytes(1))};je.prototype._writeCentralFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t._offsets.file,i=t.getSize(),o=t.getCompressedSize();if(t.isZip64()||r>Z.ZIP64_MAGIC){i=Z.ZIP64_MAGIC,o=Z.ZIP64_MAGIC,r=Z.ZIP64_MAGIC,t.setVersionNeededToExtract(Z.MIN_VERSION_ZIP64);var s=Buffer.concat([W.getShortBytes(Z.ZIP64_EXTRA_ID),W.getShortBytes(24),W.getEightBytes(t.getSize()),W.getEightBytes(t.getCompressedSize()),W.getEightBytes(t._offsets.file)],28);t.setExtra(s)}this.write(W.getLongBytes(Z.SIG_CFH)),this.write(W.getShortBytes(t.getPlatform()<<8|Z.VERSION_MADEBY)),this.write(W.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(W.getShortBytes(n)),this.write(W.getLongBytes(t.getTimeDos())),this.write(W.getLongBytes(t.getCrc())),this.write(W.getLongBytes(o)),this.write(W.getLongBytes(i));var a=t.getName(),l=t.getComment(),u=t.getCentralDirectoryExtra();e.usesUTF8ForNames()&&(a=Buffer.from(a),l=Buffer.from(l)),this.write(W.getShortBytes(a.length)),this.write(W.getShortBytes(u.length)),this.write(W.getShortBytes(l.length)),this.write(Z.SHORT_ZERO),this.write(W.getShortBytes(t.getInternalAttributes())),this.write(W.getLongBytes(t.getExternalAttributes())),this.write(W.getLongBytes(r)),this.write(a),this.write(u),this.write(l)};je.prototype._writeDataDescriptor=function(t){this.write(W.getLongBytes(Z.SIG_DD)),this.write(W.getLongBytes(t.getCrc())),t.isZip64()?(this.write(W.getEightBytes(t.getCompressedSize())),this.write(W.getEightBytes(t.getSize()))):(this.write(W.getLongBytes(t.getCompressedSize())),this.write(W.getLongBytes(t.getSize())))};je.prototype._writeLocalFileHeader=function(t){var e=t.getGeneralPurposeBit(),n=t.getMethod(),r=t.getName(),i=t.getLocalFileDataExtra();t.isZip64()&&(e.useDataDescriptor(!0),t.setVersionNeededToExtract(Z.MIN_VERSION_ZIP64)),e.usesUTF8ForNames()&&(r=Buffer.from(r)),t._offsets.file=this.offset,this.write(W.getLongBytes(Z.SIG_LFH)),this.write(W.getShortBytes(t.getVersionNeededToExtract())),this.write(e.encode()),this.write(W.getShortBytes(n)),this.write(W.getLongBytes(t.getTimeDos())),t._offsets.data=this.offset,e.usesDataDescriptor()?(this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO),this.write(Z.LONG_ZERO)):(this.write(W.getLongBytes(t.getCrc())),this.write(W.getLongBytes(t.getCompressedSize())),this.write(W.getLongBytes(t.getSize()))),this.write(W.getShortBytes(r.length)),this.write(W.getShortBytes(i.length)),this.write(r),this.write(i),t._offsets.contents=this.offset};je.prototype.getComment=function(t){return this._archive.comment!==null?this._archive.comment:""};je.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>Z.ZIP64_MAGIC_SHORT||this._archive.centralLength>Z.ZIP64_MAGIC||this._archive.centralOffset>Z.ZIP64_MAGIC};je.prototype.setComment=function(t){this._archive.comment=t}});var Yg=b((Boe,XA)=>{"use strict";XA.exports={ArchiveEntry:Gc(),ZipArchiveEntry:jg(),ArchiveOutputStream:Wg(),ZipArchiveOutputStream:JA()}});var tC=b((joe,eC)=>{"use strict";var mW=N("util").inherits,Qg=Yg().ZipArchiveOutputStream,gW=Yg().ZipArchiveEntry,Kg=go(),yo=eC.exports=function(t){if(!(this instanceof yo))return new yo(t);t=this.options=t||{},t.zlib=t.zlib||{},Qg.call(this,t),typeof t.level=="number"&&t.level>=0&&(t.zlib.level=t.level,delete t.level),!t.forceZip64&&typeof t.zlib.level=="number"&&t.zlib.level===0&&(t.store=!0),t.namePrependSlash=t.namePrependSlash||!1,t.comment&&t.comment.length>0&&this.setComment(t.comment)};mW(yo,Qg);yo.prototype._normalizeFileData=function(t){t=Kg.defaults(t,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var e=t.type==="directory",n=t.type==="symlink";return t.name&&(t.name=Kg.sanitizePath(t.name),!n&&t.name.slice(-1)==="/"?(e=!0,t.type="directory"):e&&(t.name+="/")),(e||n)&&(t.store=!0),t.date=Kg.dateify(t.date),t};yo.prototype.entry=function(t,e,n){if(typeof n!="function"&&(n=this._emitErrorCallback.bind(this)),e=this._normalizeFileData(e),e.type!=="file"&&e.type!=="directory"&&e.type!=="symlink"){n(new Error(e.type+" entries not currently supported"));return}if(typeof e.name!="string"||e.name.length===0){n(new Error("entry name must be a non-empty string value"));return}if(e.type==="symlink"&&typeof e.linkname!="string"){n(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var r=new gW(e.name);return r.setTime(e.date,this.options.forceLocalTime),e.namePrependSlash&&r.setName(e.name,!0),e.store&&r.setMethod(0),e.comment.length>0&&r.setComment(e.comment),e.type==="symlink"&&typeof e.mode!="number"&&(e.mode=40960),typeof e.mode=="number"&&(e.type==="symlink"&&(e.mode|=40960),r.setUnixMode(e.mode)),e.type==="symlink"&&typeof e.linkname=="string"&&(t=Buffer.from(e.linkname)),Qg.prototype.entry.call(this,r,t,n)};yo.prototype.finalize=function(){this.finish()}});var rC=b((Uoe,nC)=>{"use strict";var yW=tC(),bW=go(),or=function(t){if(!(this instanceof or))return new or(t);t=this.options=bW.defaults(t,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new yW(t)};or.prototype.append=function(t,e,n){this.engine.entry(t,e,n)};or.prototype.finalize=function(){this.engine.finalize()};or.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};or.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};or.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};nC.exports=or});var oC=b((Woe,iC)=>{"use strict";iC.exports=class{constructor(e){if(!(e>0)||(e-1&e)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(e),this.mask=e-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(e){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=e,this.top=this.top+1&this.mask,!0)}shift(){let e=this.buffer[this.btm];if(e!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,e}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var Zg=b((Hoe,aC)=>{"use strict";var sC=oC();aC.exports=class{constructor(e){this.hwm=e||16,this.head=new sC(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(e){if(this.length++,!this.head.push(e)){let n=this.head;this.head=n.next=new sC(2*this.head.buffer.length),this.head.push(e)}}shift(){this.length!==0&&this.length--;let e=this.tail.shift();if(e===void 0&&this.tail.next){let n=this.tail.next;return this.tail.next=null,this.tail=n,this.tail.shift()}return e}peek(){let e=this.tail.peek();return e===void 0&&this.tail.next?this.tail.next.peek():e}isEmpty(){return this.length===0}}});var bo=b((Goe,lC)=>{"use strict";function wW(t){return Buffer.isBuffer(t)||t instanceof Uint8Array}function _W(t){return Buffer.isEncoding(t)}function DW(t,e,n){return Buffer.alloc(t,e,n)}function xW(t){return Buffer.allocUnsafe(t)}function vW(t){return Buffer.allocUnsafeSlow(t)}function SW(t,e){return Buffer.byteLength(t,e)}function EW(t,e){return Buffer.compare(t,e)}function kW(t,e){return Buffer.concat(t,e)}function TW(t,e,n,r,i){return me(t).copy(e,n,r,i)}function AW(t,e){return me(t).equals(e)}function CW(t,e,n,r,i){return me(t).fill(e,n,r,i)}function FW(t,e,n){return Buffer.from(t,e,n)}function RW(t,e,n,r){return me(t).includes(e,n,r)}function OW(t,e,n,r){return me(t).indexOf(e,n,r)}function IW(t,e,n,r){return me(t).lastIndexOf(e,n,r)}function LW(t){return me(t).swap16()}function PW(t){return me(t).swap32()}function qW(t){return me(t).swap64()}function me(t){return Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)}function MW(t,e,n,r){return me(t).toString(e,n,r)}function NW(t,e,n,r,i){return me(t).write(e,n,r,i)}function BW(t,e){return me(t).readDoubleBE(e)}function jW(t,e){return me(t).readDoubleLE(e)}function UW(t,e){return me(t).readFloatBE(e)}function zW(t,e){return me(t).readFloatLE(e)}function WW(t,e){return me(t).readInt32BE(e)}function $W(t,e){return me(t).readInt32LE(e)}function HW(t,e){return me(t).readUInt32BE(e)}function GW(t,e){return me(t).readUInt32LE(e)}function VW(t,e,n){return me(t).writeDoubleBE(e,n)}function YW(t,e,n){return me(t).writeDoubleLE(e,n)}function KW(t,e,n){return me(t).writeFloatBE(e,n)}function QW(t,e,n){return me(t).writeFloatLE(e,n)}function ZW(t,e,n){return me(t).writeInt32BE(e,n)}function JW(t,e,n){return me(t).writeInt32LE(e,n)}function XW(t,e,n){return me(t).writeUInt32BE(e,n)}function e$(t,e,n){return me(t).writeUInt32LE(e,n)}lC.exports={isBuffer:wW,isEncoding:_W,alloc:DW,allocUnsafe:xW,allocUnsafeSlow:vW,byteLength:SW,compare:EW,concat:kW,copy:TW,equals:AW,fill:CW,from:FW,includes:RW,indexOf:OW,lastIndexOf:IW,swap16:LW,swap32:PW,swap64:qW,toBuffer:me,toString:MW,write:NW,readDoubleBE:BW,readDoubleLE:jW,readFloatBE:UW,readFloatLE:zW,readInt32BE:WW,readInt32LE:$W,readUInt32BE:HW,readUInt32LE:GW,writeDoubleBE:VW,writeDoubleLE:YW,writeFloatBE:KW,writeFloatLE:QW,writeInt32BE:ZW,writeInt32LE:JW,writeUInt32BE:XW,writeUInt32LE:e$}});var cC=b((Yoe,uC)=>{"use strict";var t$=bo();uC.exports=class{constructor(e){this.encoding=e}get remaining(){return 0}decode(e){return t$.toString(e,this.encoding)}flush(){return""}}});var hC=b((Qoe,fC)=>{"use strict";var n$=bo();fC.exports=class{constructor(){this.codePoint=0,this.bytesSeen=0,this.bytesNeeded=0,this.lowerBoundary=128,this.upperBoundary=191}get remaining(){return this.bytesSeen}decode(e){if(this.bytesNeeded===0){let r=!0;for(let i=Math.max(0,e.byteLength-4),o=e.byteLength;i<o&&r;i++)r=e[i]<=127;if(r)return n$.toString(e,"utf8")}let n="";for(let r=0,i=e.byteLength;r<i;r++){let o=e[r];if(this.bytesNeeded===0){o<=127?n+=String.fromCharCode(o):(this.bytesSeen=1,o>=194&&o<=223?(this.bytesNeeded=2,this.codePoint=o&31):o>=224&&o<=239?(o===224?this.lowerBoundary=160:o===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.codePoint=o&15):o>=240&&o<=244?(o===240&&(this.lowerBoundary=144),o===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.codePoint=o&7):n+="\uFFFD");continue}if(o<this.lowerBoundary||o>this.upperBoundary){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,n+="\uFFFD";continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|o&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(n+=String.fromCodePoint(this.codePoint),this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0)}return n}flush(){let e=this.bytesNeeded>0?"\uFFFD":"";return this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,e}}});var dC=b((Joe,pC)=>{"use strict";var r$=cC(),i$=hC();pC.exports=class{constructor(e="utf8"){switch(this.encoding=o$(e),this.encoding){case"utf8":this.decoder=new i$;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new r$(this.encoding)}}get remaining(){return this.decoder.remaining}push(e){return typeof e=="string"?e:this.decoder.decode(e)}write(e){return this.push(e)}end(e){let n="";return e&&(n=this.push(e)),n+=this.decoder.flush(),n}};function o$(t){switch(t=t.toLowerCase(),t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:throw new Error("Unknown encoding: "+t)}}});var py=b((Xoe,MC)=>{"use strict";var{EventEmitter:s$}=N("events"),ef=new Error("Stream was destroyed"),Jg=new Error("Premature close"),_C=Zg(),a$=dC(),Xg=typeof queueMicrotask>"u"?t=>global.process.nextTick(t):queueMicrotask,Ee=(1<<29)-1,fn=1,sy=2,ni=4,da=8,DC=Ee^fn,l$=Ee^sy,wa=16,wo=32,xo=64,ar=128,_a=256,ay=512,ri=1024,ey=2048,ly=4096,uy=8192,Yt=16384,sr=32768,tf=65536,ii=131072,xC=_a|ay,u$=wa|tf,c$=xo|wa,f$=ly|ar,cy=_a|ii,h$=Ee^wa,p$=Ee^xo,d$=Ee^(xo|tf),mC=Ee^tf,m$=Ee^_a,g$=Ee^(ar|uy),y$=Ee^ri,gC=Ee^xC,vC=Ee^sr,b$=Ee^wo,SC=Ee^ii,w$=Ee^cy,Rn=1<<18,Do=2<<18,Da=4<<18,oi=8<<18,xa=16<<18,lr=32<<18,ty=64<<18,_o=128<<18,fy=256<<18,si=512<<18,nf=1024<<18,_$=Ee^(Rn|fy),EC=Ee^Da,D$=Ee^(Rn|si),x$=Ee^xa,v$=Ee^oi,kC=Ee^_o,S$=Ee^Do,TC=Ee^nf,ma=wa|Rn,AC=Ee^ma,hy=Yt|lr,hn=ni|da|sy,xt=hn|fn,CC=hn|hy,E$=EC&p$,rf=_o|sr,k$=rf&AC,FC=xt|k$,T$=xt|ri|Yt,yC=xt|Yt|ar,A$=xt|ri|ar,C$=xt|ly|ar|uy,F$=xt|wa|ri|Yt|tf|ii,R$=hn|ri|Yt,O$=wo|xt|sr|xo,I$=sr|fn,L$=xt|si|lr,P$=oi|xa,RC=oi|Rn,q$=oi|xa|xt|Rn,bC=xt|Rn|oi|nf,M$=Da|Rn,N$=Rn|fy,B$=xt|si|RC|lr,j$=xa|hn|si|lr,U$=Do|xt|_o|Da,z$=si|lr|hn,Kc=Symbol.asyncIterator||Symbol("asyncIterator"),Qc=class{constructor(e,{highWaterMark:n=16384,map:r=null,mapWritable:i,byteLength:o,byteLengthWritable:s}={}){this.stream=e,this.queue=new _C,this.highWaterMark=n,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=s||o||qC,this.map=i||r,this.afterWrite=H$.bind(this),this.afterUpdateNextTick=Y$.bind(this)}get ended(){return(this.stream._duplexState&lr)!==0}push(e){return(this.stream._duplexState&z$)!==0?!1:(this.map!==null&&(e=this.map(e)),this.buffered+=this.byteLength(e),this.queue.push(e),this.buffered<this.highWaterMark?(this.stream._duplexState|=oi,!0):(this.stream._duplexState|=P$,!1))}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=v$),e}end(e){typeof e=="function"?this.stream.once("finish",e):e!=null&&this.push(e),this.stream._duplexState=(this.stream._duplexState|si)&EC}autoBatch(e,n){let r=[],i=this.stream;for(r.push(e);(i._duplexState&bC)===RC;)r.push(i._writableState.shift());if((i._duplexState&xt)!==0)return n(null);i._writev(r,n)}update(){let e=this.stream;e._duplexState|=Do;do{for(;(e._duplexState&bC)===oi;){let n=this.shift();e._duplexState|=N$,e._write(n,this.afterWrite)}(e._duplexState&M$)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=S$}updateNonPrimary(){let e=this.stream;if((e._duplexState&B$)===si){e._duplexState=e._duplexState|Rn,e._final($$.bind(this));return}if((e._duplexState&hn)===ni){(e._duplexState&rf)===0&&(e._duplexState|=ma,e._destroy(OC.bind(this)));return}(e._duplexState&FC)===fn&&(e._duplexState=(e._duplexState|ma)&DC,e._open(IC.bind(this)))}continueUpdate(){return(this.stream._duplexState&_o)===0?!1:(this.stream._duplexState&=kC,!0)}updateCallback(){(this.stream._duplexState&U$)===Da?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&_o)===0&&(this.stream._duplexState|=_o,(this.stream._duplexState&Do)===0&&Xg(this.afterUpdateNextTick))}},ny=class{constructor(e,{highWaterMark:n=16384,map:r=null,mapReadable:i,byteLength:o,byteLengthReadable:s}={}){this.stream=e,this.queue=new _C,this.highWaterMark=n===0?1:n,this.buffered=0,this.readAhead=n>0,this.error=null,this.pipeline=null,this.byteLength=s||o||qC,this.map=i||r,this.pipeTo=null,this.afterRead=G$.bind(this),this.afterUpdateNextTick=V$.bind(this)}get ended(){return(this.stream._duplexState&Yt)!==0}pipe(e,n){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof n!="function"&&(n=null),this.stream._duplexState|=ay,this.pipeTo=e,this.pipeline=new iy(this.stream,e,n),n&&this.stream.on("error",wC),ba(e))e._writableState.pipeline=this.pipeline,n&&e.on("error",wC),e.on("finish",this.pipeline.finished.bind(this.pipeline));else{let r=this.pipeline.done.bind(this.pipeline,e),i=this.pipeline.done.bind(this.pipeline,e,null);e.on("error",r),e.on("close",i),e.on("finish",this.pipeline.finished.bind(this.pipeline))}e.on("drain",W$.bind(this)),this.stream.emit("piping",e),e.emit("pipe",this.stream)}push(e){let n=this.stream;return e===null?(this.highWaterMark=0,n._duplexState=(n._duplexState|ri)&d$,!1):this.map!==null&&(e=this.map(e),e===null)?(n._duplexState&=mC,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(e),this.queue.push(e),n._duplexState=(n._duplexState|ar)&mC,this.buffered<this.highWaterMark)}shift(){let e=this.queue.shift();return this.buffered-=this.byteLength(e),this.buffered===0&&(this.stream._duplexState&=g$),e}unshift(e){let n=[this.map!==null?this.map(e):e];for(;this.buffered>0;)n.push(this.shift());for(let r=0;r<n.length-1;r++){let i=n[r];this.buffered+=this.byteLength(i),this.queue.push(i)}this.push(n[n.length-1])}read(){let e=this.stream;if((e._duplexState&yC)===ar){let n=this.shift();return this.pipeTo!==null&&this.pipeTo.write(n)===!1&&(e._duplexState&=gC),(e._duplexState&ey)!==0&&e.emit("data",n),n}return this.readAhead===!1&&(e._duplexState|=ii,this.updateNextTick()),null}drain(){let e=this.stream;for(;(e._duplexState&yC)===ar&&(e._duplexState&xC)!==0;){let n=this.shift();this.pipeTo!==null&&this.pipeTo.write(n)===!1&&(e._duplexState&=gC),(e._duplexState&ey)!==0&&e.emit("data",n)}}update(){let e=this.stream;e._duplexState|=wo;do{for(this.drain();this.buffered<this.highWaterMark&&(e._duplexState&F$)===ii;)e._duplexState|=u$,e._read(this.afterRead),this.drain();(e._duplexState&C$)===f$&&(e._duplexState|=uy,e.emit("readable")),(e._duplexState&c$)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);e._duplexState&=b$}updateNonPrimary(){let e=this.stream;if((e._duplexState&A$)===ri&&(e._duplexState=(e._duplexState|Yt)&y$,e.emit("end"),(e._duplexState&CC)===hy&&(e._duplexState|=ni),this.pipeTo!==null&&this.pipeTo.end()),(e._duplexState&hn)===ni){(e._duplexState&rf)===0&&(e._duplexState|=ma,e._destroy(OC.bind(this)));return}(e._duplexState&FC)===fn&&(e._duplexState=(e._duplexState|ma)&DC,e._open(IC.bind(this)))}continueUpdate(){return(this.stream._duplexState&sr)===0?!1:(this.stream._duplexState&=vC,!0)}updateCallback(){(this.stream._duplexState&O$)===xo?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&I$)===0&&(this.stream._duplexState|=sr,(this.stream._duplexState&wo)===0&&Xg(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&sr)===0&&(this.stream._duplexState|=sr,(this.stream._duplexState&wo)===0&&Xg(this.afterUpdateNextTick))}},ry=class{constructor(e){this.data=null,this.afterTransform=Q$.bind(e),this.afterFinal=null}},iy=class{constructor(e,n,r){this.from=e,this.to=n,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(e,n){if(n&&(this.error=n),e===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Yt)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(e===this.from&&(this.from=null,this.to!==null)){(e._duplexState&Yt)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function W$(){this.stream._duplexState|=ay,this.updateCallback()}function $$(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&hn)===0&&(e._duplexState|=lr,e.emit("finish")),(e._duplexState&CC)===hy&&(e._duplexState|=ni),e._duplexState&=D$,(e._duplexState&Do)===0?this.update():this.updateNextTick()}function OC(t){let e=this.stream;!t&&this.error!==ef&&(t=this.error),t&&e.emit("error",t),e._duplexState|=da,e.emit("close");let n=e._readableState,r=e._writableState;if(n!==null&&n.pipeline!==null&&n.pipeline.done(e,t),r!==null){for(;r.drains!==null&&r.drains.length>0;)r.drains.shift().resolve(!1);r.pipeline!==null&&r.pipeline.done(e,t)}}function H$(t){let e=this.stream;t&&e.destroy(t),e._duplexState&=_$,this.drains!==null&&K$(this.drains),(e._duplexState&q$)===xa&&(e._duplexState&=x$,(e._duplexState&ty)===ty&&e.emit("drain")),this.updateCallback()}function G$(t){t&&this.stream.destroy(t),this.stream._duplexState&=h$,this.readAhead===!1&&(this.stream._duplexState&_a)===0&&(this.stream._duplexState&=SC),this.updateCallback()}function V$(){(this.stream._duplexState&wo)===0&&(this.stream._duplexState&=vC,this.update())}function Y$(){(this.stream._duplexState&Do)===0&&(this.stream._duplexState&=kC,this.update())}function K$(t){for(let e=0;e<t.length;e++)--t[e].writes===0&&(t.shift().resolve(!0),e--)}function IC(t){let e=this.stream;t&&e.destroy(t),(e._duplexState&ni)===0&&((e._duplexState&T$)===0&&(e._duplexState|=xo),(e._duplexState&L$)===0&&(e._duplexState|=Da),e.emit("open")),e._duplexState&=AC,e._writableState!==null&&e._writableState.updateCallback(),e._readableState!==null&&e._readableState.updateCallback()}function Q$(t,e){e!=null&&this.push(e),this._writableState.afterWrite(t)}function Z$(t){this._readableState!==null&&(t==="data"&&(this._duplexState|=ey|cy,this._readableState.updateNextTick()),t==="readable"&&(this._duplexState|=ly,this._readableState.updateNextTick())),this._writableState!==null&&t==="drain"&&(this._duplexState|=ty,this._writableState.updateNextTick())}var ga=class extends s${constructor(e){super(),this._duplexState=0,this._readableState=null,this._writableState=null,e&&(e.open&&(this._open=e.open),e.destroy&&(this._destroy=e.destroy),e.predestroy&&(this._predestroy=e.predestroy),e.signal&&e.signal.addEventListener("abort",aH.bind(this))),this.on("newListener",Z$)}_open(e){e(null)}_destroy(e){e(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&da)!==0}get destroying(){return(this._duplexState&hn)!==0}destroy(e){(this._duplexState&hn)===0&&(e||(e=ef),this._duplexState=(this._duplexState|ni)&E$,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=e),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=e),this._duplexState|=sy,this._predestroy(),this._duplexState&=l$,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Zc=class t extends ga{constructor(e){super(e),this._duplexState|=fn|lr|ii,this._readableState=new ny(this,e),e&&(this._readableState.readAhead===!1&&(this._duplexState&=SC),e.read&&(this._read=e.read),e.eagerOpen&&this._readableState.updateNextTick(),e.encoding&&this.setEncoding(e.encoding))}setEncoding(e){let n=new a$(e),r=this._readableState.map||eH;return this._readableState.map=i,this;function i(o){let s=n.push(o);return s===""&&(o.byteLength!==0||n.remaining>0)?null:r(s)}}_read(e){e(null)}pipe(e,n){return this._readableState.updateNextTick(),this._readableState.pipe(e,n),e}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(e){return this._readableState.updateNextTickIfOpen(),this._readableState.push(e)}unshift(e){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(e)}resume(){return this._duplexState|=cy,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?w$:m$,this}static _fromAsyncIterator(e,n){let r,i=new t({...n,read(s){e.next().then(o).then(s.bind(null,null)).catch(s)},predestroy(){r=e.return()},destroy(s){if(!r)return s(null);r.then(s.bind(null,null)).catch(s)}});return i;function o(s){s.done?i.push(null):i.push(s.value)}}static from(e,n){if(iH(e))return e;if(e[Kc])return this._fromAsyncIterator(e[Kc](),n);Array.isArray(e)||(e=e===void 0?[]:[e]);let r=0;return new t({...n,read(i){this.push(r===e.length?null:e[r++]),i(null)}})}static isBackpressured(e){return(e._duplexState&R$)!==0||e._readableState.buffered>=e._readableState.highWaterMark}static isPaused(e){return(e._duplexState&_a)===0}[Kc](){let e=this,n=null,r=null,i=null;return this.on("error",u=>{n=u}),this.on("readable",o),this.on("close",s),{[Kc](){return this},next(){return new Promise(function(u,c){r=u,i=c;let f=e.read();f!==null?a(f):(e._duplexState&da)!==0&&a(null)})},return(){return l(null)},throw(u){return l(u)}};function o(){r!==null&&a(e.read())}function s(){r!==null&&a(null)}function a(u){i!==null&&(n?i(n):u===null&&(e._duplexState&Yt)===0?i(ef):r({value:u,done:u===null}),i=r=null)}function l(u){return e.destroy(u),new Promise((c,f)=>{if(e._duplexState&da)return c({value:void 0,done:!0});e.once("close",function(){u?f(u):c({value:void 0,done:!0})})})}}},Jc=class extends ga{constructor(e){super(e),this._duplexState|=fn|Yt,this._writableState=new Qc(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final),e.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=nf}uncork(){this._duplexState&=TC,this._writableState.updateNextTick()}_writev(e,n){n(null)}_write(e,n){this._writableState.autoBatch(e,n)}_final(e){e(null)}static isBackpressured(e){return(e._duplexState&j$)!==0}static drained(e){if(e.destroyed)return Promise.resolve(!1);let n=e._writableState,i=(lH(e)?Math.min(1,n.queue.length):n.queue.length)+(e._duplexState&fy?1:0);return i===0?Promise.resolve(!0):(n.drains===null&&(n.drains=[]),new Promise(o=>{n.drains.push({writes:i,resolve:o})}))}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},ya=class extends Zc{constructor(e){super(e),this._duplexState=fn|this._duplexState&ii,this._writableState=new Qc(this,e),e&&(e.writev&&(this._writev=e.writev),e.write&&(this._write=e.write),e.final&&(this._final=e.final))}cork(){this._duplexState|=nf}uncork(){this._duplexState&=TC,this._writableState.updateNextTick()}_writev(e,n){n(null)}_write(e,n){this._writableState.autoBatch(e,n)}_final(e){e(null)}write(e){return this._writableState.updateNextTick(),this._writableState.push(e)}end(e){return this._writableState.updateNextTick(),this._writableState.end(e),this}},Xc=class extends ya{constructor(e){super(e),this._transformState=new ry(this),e&&(e.transform&&(this._transform=e.transform),e.flush&&(this._flush=e.flush))}_write(e,n){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=e:this._transform(e,this._transformState.afterTransform)}_read(e){if(this._transformState.data!==null){let n=this._transformState.data;this._transformState.data=null,e(null),this._transform(n,this._transformState.afterTransform)}else e(null)}destroy(e){super.destroy(e),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(e,n){n(null,e)}_flush(e){e(null)}_final(e){this._transformState.afterFinal=e,this._flush(J$.bind(this))}},oy=class extends Xc{};function J$(t,e){let n=this._transformState.afterFinal;if(t)return n(t);e!=null&&this.push(e),this.push(null),n(null)}function X$(...t){return new Promise((e,n)=>LC(...t,r=>{if(r)return n(r);e()}))}function LC(t,...e){let n=Array.isArray(t)?[...t,...e]:[t,...e],r=n.length&&typeof n[n.length-1]=="function"?n.pop():null;if(n.length<2)throw new Error("Pipeline requires at least 2 streams");let i=n[0],o=null,s=null;for(let u=1;u<n.length;u++)o=n[u],ba(i)?i.pipe(o,l):(a(i,!0,u>1,l),i.pipe(o)),i=o;if(r){let u=!1,c=ba(o)||!!(o._writableState&&o._writableState.autoDestroy);o.on("error",f=>{s===null&&(s=f)}),o.on("finish",()=>{u=!0,c||r(s)}),c&&o.on("close",()=>r(s||(u?null:Jg)))}return o;function a(u,c,f,h){u.on("error",h),u.on("close",p);function p(){if(c&&u._readableState&&!u._readableState.ended||f&&u._writableState&&!u._writableState.ended)return h(Jg)}}function l(u){if(!(!u||s)){s=u;for(let c of n)c.destroy(u)}}}function eH(t){return t}function PC(t){return!!t._readableState||!!t._writableState}function ba(t){return typeof t._duplexState=="number"&&PC(t)}function tH(t){return!!t._readableState&&t._readableState.ended}function nH(t){return!!t._writableState&&t._writableState.ended}function rH(t,e={}){let n=t._readableState&&t._readableState.error||t._writableState&&t._writableState.error;return!e.all&&n===ef?null:n}function iH(t){return ba(t)&&t.readable}function oH(t){return(t._duplexState&fn)!==fn||(t._duplexState&rf)!==0}function sH(t){return typeof t=="object"&&t!==null&&typeof t.byteLength=="number"}function qC(t){return sH(t)?t.byteLength:1024}function wC(){}function aH(){this.destroy(new Error("Stream aborted."))}function lH(t){return t._writev!==Jc.prototype._writev&&t._writev!==ya.prototype._writev}MC.exports={pipeline:LC,pipelinePromise:X$,isStream:PC,isStreamx:ba,isEnded:tH,isFinished:nH,isDisturbed:oH,getStreamError:rH,Stream:ga,Writable:Jc,Readable:Zc,Duplex:ya,Transform:Xc,PassThrough:oy}});var gy=b(So=>{"use strict";var ae=bo(),uH="0000000000000000000",cH="7777777777777777777",of=48,NC=ae.from([117,115,116,97,114,0]),fH=ae.from([of,of]),hH=ae.from([117,115,116,97,114,32]),pH=ae.from([32,0]),dH=4095,va=257,my=263;So.decodeLongPath=function(e,n){return vo(e,0,e.length,n)};So.encodePax=function(e){let n="";e.name&&(n+=dy(" path="+e.name+`
|
|
44
|
-
`)),
|
|
45
|
-
`));let r=
|
|
46
|
-
`);return ae.from(n)};So.decodePax=function(e){let n={};for(;e.length;){let r=0;for(;r<e.length&&e[r]!==32;)r++;let i=parseInt(ae.toString(e.subarray(0,r)),10);if(!i)return n;let o=ae.toString(e.subarray(r+1,i-1)),s=o.indexOf("=");if(s===-1)return n;n[o.slice(0,s)]=o.slice(s+1),e=e.subarray(i)}return n};So.encode=function(e){let n=ae.alloc(512),r=e.name,i="";if(e.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),ae.byteLength(r)!==r.length)return null;for(;ae.byteLength(r)>100;){let o=r.indexOf("/");if(o===-1)return null;i+=i?"/"+r.slice(0,o):r.slice(0,o),r=r.slice(o+1)}return ae.byteLength(r)>100||ae.byteLength(i)>155||e.linkname&&ae.byteLength(e.linkname)>100?null:(ae.write(n,r),ae.write(n,cr(e.mode&dH,6),100),ae.write(n,cr(e.uid,6),108),ae.write(n,cr(e.gid,6),116),DH(e.size,n,124),ae.write(n,cr(e.mtime.getTime()/1e3|0,11),136),n[156]=of+wH(e.type),e.linkname&&ae.write(n,e.linkname,157),ae.copy(NC,n,va),ae.copy(fH,n,my),e.uname&&ae.write(n,e.uname,265),e.gname&&ae.write(n,e.gname,297),ae.write(n,cr(e.devmajor||0,6),329),ae.write(n,cr(e.devminor||0,6),337),i&&ae.write(n,i,345),ae.write(n,cr(jC(n),6),148),n)};So.decode=function(e,n,r){let i=e[156]===0?0:e[156]-of,o=vo(e,0,100,n),s=ur(e,100,8),a=ur(e,108,8),l=ur(e,116,8),u=ur(e,124,12),c=ur(e,136,12),f=bH(i),h=e[157]===0?null:vo(e,157,100,n),p=vo(e,265,32),w=vo(e,297,32),D=ur(e,329,8),k=ur(e,337,8),g=jC(e);if(g===256)return null;if(g!==ur(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(mH(e))e[345]&&(o=vo(e,345,155,n)+"/"+o);else if(!gH(e)){if(!r)throw new Error("Invalid tar header: unknown format.")}return i===0&&o&&o[o.length-1]==="/"&&(i=5),{name:o,mode:s,uid:a,gid:l,size:u,mtime:new Date(1e3*c),type:f,linkname:h,uname:p,gname:w,devmajor:D,devminor:k,pax:null}};function mH(t){return ae.equals(NC,t.subarray(va,va+6))}function gH(t){return ae.equals(hH,t.subarray(va,va+6))&&ae.equals(pH,t.subarray(my,my+2))}function yH(t,e,n){return typeof t!="number"?n:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function bH(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function wH(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function BC(t,e,n,r){for(;n<r;n++)if(t[n]===e)return n;return r}function jC(t){let e=256;for(let n=0;n<148;n++)e+=t[n];for(let n=156;n<512;n++)e+=t[n];return e}function cr(t,e){return t=t.toString(8),t.length>e?cH.slice(0,e)+" ":uH.slice(0,e-t.length)+t+" "}function _H(t,e,n){e[n]=128;for(let r=11;r>0;r--)e[n+r]=t&255,t=Math.floor(t/256)}function DH(t,e,n){t.toString(8).length>11?_H(t,e,n):ae.write(e,cr(t,11),n)}function xH(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let n=[],r;for(r=t.length-1;r>0;r--){let s=t[r];e?n.push(s):n.push(255-s)}let i=0,o=n.length;for(r=0;r<o;r++)i+=n[r]*Math.pow(256,r);return e?i:-1*i}function ur(t,e,n){if(t=t.subarray(e,e+n),e=0,t[e]&128)return xH(t);{for(;e<t.length&&t[e]===32;)e++;let r=yH(BC(t,32,e,t.length),t.length,t.length);for(;e<r&&t[e]===0;)e++;return r===e?0:parseInt(ae.toString(t.subarray(e,r)),8)}}function vo(t,e,n,r){return ae.toString(t.subarray(e,BC(t,0,e,e+n)),r)}function dy(t){let e=ae.byteLength(t),n=Math.floor(Math.log(e)/Math.log(10))+1;return e+n>=Math.pow(10,n)&&n++,e+n+t}});var HC=b((tse,$C)=>{"use strict";var{Writable:vH,Readable:SH,getStreamError:UC}=py(),EH=Zg(),zC=bo(),Eo=gy(),kH=zC.alloc(0),by=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new EH,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return kH;let n=this._next(e);if(e===n.byteLength)return n;let r=[n];for(;(e-=n.byteLength)>0;)n=this._next(e),r.push(n);return zC.concat(r)}_next(e){let n=this.queue.peek(),r=n.byteLength-this._offset;if(e>=r){let i=this._offset?n.subarray(this._offset,n.byteLength):n;return this.queue.shift(),this._offset=0,this.buffered-=r,this.shifted+=r,i}return this.buffered-=e,this.shifted+=e,n.subarray(this._offset,this._offset+=e)}},wy=class extends SH{constructor(e,n,r){super(),this.header=n,this.offset=r,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(UC(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=WC(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},_y=class extends vH{constructor(e){super(e),e||(e={}),this._buffer=new by,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=yy,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=e.filenameEncoding||"utf-8",this._allowUnknownFormat=!!e.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(e){if(this._locked=!1,e){this.destroy(e),this._continueWrite(e);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=Eo.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(e){return this._continueWrite(e),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(e){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=Eo.decodeLongPath(e,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=Eo.decodeLongPath(e,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=Eo.decodePax(e);break;case"pax-header":this._pax=this._paxGlobal===null?Eo.decodePax(e):Object.assign({},this._paxGlobal,Eo.decodePax(e));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=WC(this._header.size);let e=this._buffer.shift(this._header.size);try{this._decodeLongHeader(e)}catch(n){return this._continueWrite(n),!1}return!0}_consumeStream(){let e=this._buffer.shiftFirst(this._missing);if(e===null)return!1;this._missing-=e.byteLength;let n=this._stream.push(e);return this._missing===0?(this._stream.push(null),n&&this._stream._detach(),n&&this._locked===!1):n}_createStream(){return new wy(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let e=this._buffer.shiftFirst(this._missing);e!==null&&(this._missing-=e.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(e){let n=this._callback;this._callback=yy,n(e)}_write(e,n){this._callback=n,this._buffer.push(e),this._update()}_final(e){this._finished=this._missing===0&&this._buffer.buffered===0,e(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(e){this._stream&&this._stream.destroy(UC(this)),e(null)}[Symbol.asyncIterator](){let e=null,n=null,r=null,i=null,o=null,s=this;return this.on("entry",u),this.on("error",h=>{e=h}),this.on("close",c),{[Symbol.asyncIterator](){return this},next(){return new Promise(l)},return(){return f(null)},throw(h){return f(h)}};function a(h){if(!o)return;let p=o;o=null,p(h)}function l(h,p){if(e)return p(e);if(i){h({value:i,done:!1}),i=null;return}n=h,r=p,a(null),s._finished&&n&&(n({value:void 0,done:!0}),n=r=null)}function u(h,p,w){o=w,p.on("error",yy),n?(n({value:p,done:!1}),n=r=null):i=p}function c(){a(e),n&&(e?r(e):n({value:void 0,done:!0}),n=r=null)}function f(h){return s.destroy(h),a(h),new Promise((p,w)=>{if(s.destroyed)return p({value:void 0,done:!0});s.once("close",function(){h?w(h):p({value:void 0,done:!0})})})}}};$C.exports=function(e){return new _y(e)};function yy(){}function WC(t){return t&=511,t&&512-t}});var VC=b((nse,Dy)=>{"use strict";var GC={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{Dy.exports=N("fs").constants||GC}catch{Dy.exports=GC}});var JC=b((rse,ZC)=>{"use strict";var{Readable:TH,Writable:AH,getStreamError:YC}=py(),ai=bo(),ko=VC(),sf=gy(),CH=493,FH=420,KC=ai.alloc(1024),vy=class extends AH{constructor(e,n,r){super({mapWritable:OH,eagerOpen:!0}),this.written=0,this.header=n,this._callback=r,this._linkname=null,this._isLinkname=n.type==="symlink"&&!n.linkname,this._isVoid=n.type!=="file"&&n.type!=="contiguous-file",this._finished=!1,this._pack=e,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(e){this._openCallback=e,this._pack._stream===this&&this._continueOpen()}_continuePack(e){if(this._callback===null)return;let n=this._callback;this._callback=null,n(e)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let e=this._openCallback;if(this._openCallback=null,e!==null){if(this._pack.destroying)return e(new Error("pack stream destroyed"));if(this._pack._finalized)return e(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),e(null)}}_write(e,n){if(this._isLinkname)return this._linkname=this._linkname?ai.concat([this._linkname,e]):e,n(null);if(this._isVoid)return e.byteLength>0?n(new Error("No body allowed for this entry")):n();if(this.written+=e.byteLength,this._pack.push(e))return n();this._pack._drain=n}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?ai.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),QC(this._pack,this.header.size),this._pack._done(this))}_final(e){if(this.written!==this.header.size)return e(new Error("Size mismatch"));this._finish(),e(null)}_getError(){return YC(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(e){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),e()}},Sy=class extends TH{constructor(e){super(e),this._drain=xy,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(e,n,r){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof n=="function"&&(r=n,n=null),r||(r=xy),(!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=RH(e.mode)),e.mode||(e.mode=e.type==="directory"?CH:FH),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof n=="string"&&(n=ai.from(n));let i=new vy(this,e,r);return ai.isBuffer(n)?(e.size=n.byteLength,i.write(n),i.end(),i):(i._isVoid,i)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(KC),this.push(null))}_done(e){e===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(e){if(!e.pax){let n=sf.encode(e);if(n){this.push(n);return}}this._encodePax(e)}_encodePax(e){let n=sf.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:n.byteLength,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(sf.encode(r)),this.push(n),QC(this,n.byteLength),r.size=e.size,r.type=e.type,this.push(sf.encode(r))}_doDrain(){let e=this._drain;this._drain=xy,e()}_predestroy(){let e=YC(this);for(this._stream&&this._stream.destroy(e);this._pending.length;){let n=this._pending.shift();n.destroy(e),n._continueOpen()}this._doDrain()}_read(e){this._doDrain(),e()}};ZC.exports=function(e){return new Sy(e)};function RH(t){switch(t&ko.S_IFMT){case ko.S_IFBLK:return"block-device";case ko.S_IFCHR:return"character-device";case ko.S_IFDIR:return"directory";case ko.S_IFIFO:return"fifo";case ko.S_IFLNK:return"symlink"}return"file"}function xy(){}function QC(t,e){e&=511,e&&t.push(KC.subarray(0,512-e))}function OH(t){return ai.isBuffer(t)?t:ai.from(t)}});var XC=b(Ey=>{"use strict";Ey.extract=HC();Ey.pack=JC()});var nF=b((ose,tF)=>{"use strict";var IH=N("zlib"),LH=XC(),eF=go(),On=function(t){if(!(this instanceof On))return new On(t);t=this.options=eF.defaults(t,{gzip:!1}),typeof t.gzipOptions!="object"&&(t.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=LH.pack(t),this.compressor=!1,t.gzip&&(this.compressor=IH.createGzip(t.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};On.prototype._onCompressorError=function(t){this.engine.emit("error",t)};On.prototype.append=function(t,e,n){var r=this;e.mtime=e.date;function i(s,a){if(s){n(s);return}r.engine.entry(e,a,function(l){n(l,e)})}if(e.sourceType==="buffer")i(null,t);else if(e.sourceType==="stream"&&e.stats){e.size=e.stats.size;var o=r.engine.entry(e,function(s){n(s,e)});t.pipe(o)}else e.sourceType==="stream"&&eF.collectStream(t,i)};On.prototype.finalize=function(){this.engine.finalize()};On.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};On.prototype.pipe=function(t,e){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(t,e):this.engine.pipe.apply(this.engine,arguments)};On.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};tF.exports=On});var oF=b((sse,iF)=>{"use strict";function PH(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qH=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function rF(t){if(Buffer.isBuffer(t))return t;if(typeof t=="number")return Buffer.alloc(t);if(typeof t=="string")return Buffer.from(t);throw new Error("input must be buffer, number, or string, received "+typeof t)}function MH(t){let e=rF(4);return e.writeInt32BE(t,0),e}function ky(t,e){t=rF(t),Buffer.isBuffer(e)&&(e=e.readUInt32BE(0));let n=~~e^-1;for(var r=0;r<t.length;r++)n=qH[(n^t[r])&255]^n>>>8;return n^-1}function Ty(){return MH(ky.apply(null,arguments))}Ty.signed=function(){return ky.apply(null,arguments)};Ty.unsigned=function(){return ky.apply(null,arguments)>>>0};var NH=Ty,BH=PH(NH);iF.exports=BH});var uF=b((ase,lF)=>{"use strict";var jH=N("util").inherits,sF=Zr().Transform,UH=oF(),aF=go(),fr=function(t){if(!(this instanceof fr))return new fr(t);t=this.options=aF.defaults(t,{}),sF.call(this,t),this.supports={directory:!0,symlink:!0},this.files=[]};jH(fr,sF);fr.prototype._transform=function(t,e,n){n(null,t)};fr.prototype._writeStringified=function(){var t=JSON.stringify(this.files);this.write(t)};fr.prototype.append=function(t,e,n){var r=this;e.crc32=0;function i(o,s){if(o){n(o);return}e.size=s.length||0,e.crc32=UH.unsigned(s),r.files.push(e),n(null,e)}e.sourceType==="buffer"?i(null,t):e.sourceType==="stream"&&aF.collectStream(t,i)};fr.prototype.finalize=function(){this._writeStringified(),this.end()};lF.exports=fr});var fF=b((lse,cF)=>{"use strict";var zH=EA(),Sa={},hr=function(t,e){return hr.create(t,e)};hr.create=function(t,e){if(Sa[t]){var n=new zH(t,e);return n.setFormat(t),n.setModule(new Sa[t](e)),n}else throw new Error("create("+t+"): format not registered")};hr.registerFormat=function(t,e){if(Sa[t])throw new Error("register("+t+"): format already registered");if(typeof e!="function")throw new Error("register("+t+"): format module invalid");if(typeof e.prototype.append!="function"||typeof e.prototype.finalize!="function")throw new Error("register("+t+"): format module missing methods");Sa[t]=e};hr.isRegisteredFormat=function(t){return!!Sa[t]};hr.registerFormat("zip",rC());hr.registerFormat("tar",nF());hr.registerFormat("json",uF());cF.exports=hr});var yf=b((aae,PF)=>{"use strict";PF.exports=Kl()});var fb=ut(cb(),1),{program:de,createCommand:DG,createArgument:xG,createOption:vG,CommanderError:SG,InvalidArgumentError:EG,InvalidOptionArgumentError:kG,Command:TG,Argument:AG,Option:CG,Help:FG}=fb.default;var hb=t=>t.name==="backspace",pb=t=>t.name==="tab";var La=t=>t.name==="enter"||t.name==="return";var Pa=class extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}},qa=class extends Error{name="CancelPromptError";message="Prompt was canceled"},Mo=class extends Error{name="ExitPromptError"},Ma=class extends Error{name="HookError"},Na=class extends Error{name="ValidationError"};import{AsyncResource as bR}from"node:async_hooks";import{AsyncLocalStorage as mR,AsyncResource as gR}from"node:async_hooks";var db=new mR;function yR(t){return{rl:t,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function mb(t,e){let n=yR(t);return db.run(n,()=>{function r(i){n.handleChange=()=>{n.index=0,i()},n.handleChange()}return e(r)})}function _r(){let t=db.getStore();if(!t)throw new Ma("[Inquirer] Hook functions can only be called from within a prompt");return t}function zf(){return _r().rl}function Wf(t){let e=(...n)=>{let r=_r(),i=!1,o=r.handleChange;r.handleChange=()=>{i=!0};let s=t(...n);return i&&o(),r.handleChange=o,s};return gR.bind(e)}function No(t){let e=_r(),{index:n}=e,r={get(){return e.hooks[n]},set(o){e.hooks[n]=o},initialized:n in e.hooks},i=t(r);return e.index++,i}function gb(){_r().handleChange()}var Dr={queue(t){let e=_r(),{index:n}=e;e.hooksEffect.push(()=>{e.hooksCleanup[n]?.();let r=t(zf());if(r!=null&&typeof r!="function")throw new Na("useEffect return value must be a cleanup function or nothing.");e.hooksCleanup[n]=r})},run(){let t=_r();Wf(()=>{t.hooksEffect.forEach(e=>{e()}),t.hooksEffect.length=0})()},clearAll(){let t=_r();t.hooksCleanup.forEach(e=>{e?.()}),t.hooksEffect.length=0,t.hooksCleanup.length=0}};function nt(t){return No(e=>{let n=bR.bind(function(o){e.get()!==o&&(e.set(o),gb())});if(e.initialized)return[e.get(),n];let r=typeof t=="function"?t():t;return e.set(r),[r,n]})}function xr(t,e){No(n=>{let r=n.get();(!Array.isArray(r)||e.some((o,s)=>!Object.is(o,r[s])))&&Dr.queue(t),n.set(e)})}var Et=ut(bb(),1);import Kt from"node:process";function DR(){return Kt.platform!=="win32"?Kt.env.TERM!=="linux":!!Kt.env.WT_SESSION||!!Kt.env.TERMINUS_SUBLIME||Kt.env.ConEmuTask==="{cmd::Cmder}"||Kt.env.TERM_PROGRAM==="Terminus-Sublime"||Kt.env.TERM_PROGRAM==="vscode"||Kt.env.TERM==="xterm-256color"||Kt.env.TERM==="alacritty"||Kt.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var wb={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},_b={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},xR={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},vR={...wb,..._b},SR={...wb,...xR},ER=DR(),kR=ER?vR:SR,$f=kR,$G=Object.entries(_b);var Db={prefix:{idle:Et.default.blue("?"),done:Et.default.green($f.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(t=>Et.default.yellow(t))},style:{answer:Et.default.cyan,message:Et.default.bold,error:t=>Et.default.red(`> ${t}`),defaultAnswer:t=>Et.default.dim(`(${t})`),help:Et.default.dim,highlight:Et.default.cyan,key:t=>Et.default.cyan(Et.default.bold(`<${t}>`))}};function xb(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function vb(...t){let e={};for(let n of t)for(let[r,i]of Object.entries(n)){let o=e[r];e[r]=xb(o)&&xb(i)?vb(o,i):i}return e}function vr(...t){let e=[Db,...t.filter(n=>n!=null)];return vb(...e)}function Bo({status:t="idle",theme:e}){let[n,r]=nt(!1),[i,o]=nt(0),{prefix:s,spinner:a}=vr(e);return xr(()=>{if(t==="loading"){let u,c=-1,f=setTimeout(()=>{r(!0),u=setInterval(()=>{c=c+1,o(c%a.frames.length)},a.interval)},300);return()=>{clearTimeout(f),clearInterval(u)}}else r(!1)},[t]),n?a.frames[i]:typeof s=="string"?s:s[t==="loading"?"idle":t]??s.idle}function Ba(t){return nt({current:t})[0]}function jo(t){let e=Ba(t);e.current=t,xr(n=>{let r=!1,i=Wf((o,s)=>{r||e.current(s,n)});return n.input.on("keypress",i),()=>{r=!0,n.input.removeListener("keypress",i)}},[])}var rw=ut(Eb(),1),iw=ut(nw(),1);function za(t,e){return t.split(`
|
|
47
|
-
`).
|
|
35
|
+
`+t);let[,r]=n;return r.replace(/\s/g,"").split(OP).map(i=>i.replace(IP,"").trim())}function zw(e,t){var n={};return Object.keys(e).forEach(r=>{var i=e[r],o,s=hs(i),a=!s&&i.length===1||s&&i.length===0;if(Array.isArray(i))o=[...i],i=o.pop(),n[r]=o.concat(o.length>0?u:i);else if(a)n[r]=i;else{if(o=PP(i),i.length===0&&!s&&o.length===0)throw new Error("autoInject task functions require explicit parameters.");s||o.pop(),n[r]=o.concat(u)}function u(l,c){var f=o.map(h=>l[h]);f.push(c),Z(i)(...f)}}),Vp(n,t)}function Ow(e,t){e.length=1,e.head=e.tail=t}function Kp(e,t,n){if(t==null)t=1;else if(t===0)throw new RangeError("Concurrency must not be zero");var r=Z(e),i=0,o=[];let s={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(m,d){s[m].push(d)}function u(m,d){let y=(...k)=>{l(m,y),d(...k)};s[m].push(y)}function l(m,d){if(!m)return Object.keys(s).forEach(y=>s[y]=[]);if(!d)return s[m]=[];s[m]=s[m].filter(y=>y!==d)}function c(m,...d){s[m].forEach(y=>y(...d))}var f=!1;function h(m,d,y,k){if(k!=null&&typeof k!="function")throw new Error("task callback must be a function");g.started=!0;var E,v;function q(A,...I){if(A)return y?v(A):E();if(I.length<=1)return E(I[0]);E(I)}var T=g._createTaskItem(m,y?q:k||q);if(d?g._tasks.unshift(T):g._tasks.push(T),f||(f=!0,Hn(()=>{f=!1,g.process()})),y||!k)return new Promise((A,I)=>{E=A,v=I})}function p(m){return function(d,...y){i-=1;for(var k=0,E=m.length;k<E;k++){var v=m[k],q=o.indexOf(v);q===0?o.shift():q>0&&o.splice(q,1),v.callback(d,...y),d!=null&&c("error",d,v.data)}i<=g.concurrency-g.buffer&&c("unsaturated"),g.idle()&&c("drain"),g.process()}}function b(m){return m.length===0&&g.idle()?(Hn(()=>c("drain")),!0):!1}let D=m=>d=>{if(!d)return new Promise((y,k)=>{u(m,(E,v)=>{if(E)return k(E);y(v)})});l(m),a(m,d)};var F=!1,g={_tasks:new Fp,_createTaskItem(m,d){return{data:m,callback:d}},*[Symbol.iterator](){yield*g._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(m,d){return Array.isArray(m)?b(m)?void 0:m.map(y=>h(y,!1,!1,d)):h(m,!1,!1,d)},pushAsync(m,d){return Array.isArray(m)?b(m)?void 0:m.map(y=>h(y,!1,!0,d)):h(m,!1,!0,d)},kill(){l(),g._tasks.empty()},unshift(m,d){return Array.isArray(m)?b(m)?void 0:m.map(y=>h(y,!0,!1,d)):h(m,!0,!1,d)},unshiftAsync(m,d){return Array.isArray(m)?b(m)?void 0:m.map(y=>h(y,!0,!0,d)):h(m,!0,!0,d)},remove(m){g._tasks.remove(m)},process(){if(!F){for(F=!0;!g.paused&&i<g.concurrency&&g._tasks.length;){var m=[],d=[],y=g._tasks.length;g.payload&&(y=Math.min(y,g.payload));for(var k=0;k<y;k++){var E=g._tasks.shift();m.push(E),o.push(E),d.push(E.data)}i+=1,g._tasks.length===0&&c("empty"),i===g.concurrency&&c("saturated");var v=Vn(p(m));r(d,v)}F=!1}},length(){return g._tasks.length},running(){return i},workersList(){return o},idle(){return g._tasks.length+i===0},pause(){g.paused=!0},resume(){g.paused!==!1&&(g.paused=!1,Hn(g.process))}};return Object.defineProperties(g,{saturated:{writable:!1,value:D("saturated")},unsaturated:{writable:!1,value:D("unsaturated")},empty:{writable:!1,value:D("empty")},drain:{writable:!1,value:D("drain")},error:{writable:!1,value:D("error")}}),g}function Ww(e,t){return Kp(e,1,t)}function $w(e,t,n){return Kp(e,t,n)}function BP(e,t,n,r){r=Gn(r);var i=Z(n);return Yt(e,(o,s,a)=>{i(t,o,(u,l)=>{t=l,a(u)})},o=>r(o,t))}function Yp(...e){var t=e.map(Z);return function(...n){var r=this,i=n[n.length-1];return typeof i=="function"?n.pop():i=Ri(),Ai(t,n,(o,s,a)=>{s.apply(r,o.concat((u,...l)=>{a(u,l)}))},(o,s)=>i(o,...s)),i[Oi]}}function Hw(...e){return Yp(...e.reverse())}function qP(e,t,n,r){return Hp(Ut(t),e,n,r)}function NP(e,t,n,r){var i=Z(n);return ps(e,t,(o,s)=>{i(o,(a,...u)=>a?s(a):s(a,u))},(o,s)=>{for(var a=[],u=0;u<s.length;u++)s[u]&&(a=a.concat(...s[u]));return r(o,a)})}function MP(e,t,n){return cs(e,1/0,t,n)}function jP(e,t,n){return cs(e,1,t,n)}function Gw(...e){return function(...t){var n=t.pop();return n(null,...e)}}function wn(e,t){return(n,r,i,o)=>{var s=!1,a;let u=Z(i);n(r,(l,c,f)=>{u(l,(h,p)=>{if(h||h===!1)return f(h);if(e(p)&&!a)return s=!0,a=t(!0,l),f(null,sl);f()})},l=>{if(l)return o(l);o(null,s?a:t(!1))})}}function UP(e,t,n){return wn(r=>r,(r,i)=>i)(Ct,e,t,n)}function zP(e,t,n,r){return wn(i=>i,(i,o)=>o)(Ut(t),e,n,r)}function WP(e,t,n){return wn(r=>r,(r,i)=>i)(Ut(1),e,t,n)}function Vw(e){return(t,...n)=>Z(t)(...n,(r,...i)=>{typeof console=="object"&&(r?console.error&&console.error(r):console[e]&&i.forEach(o=>console[e](o)))})}function $P(e,t,n){n=Vn(n);var r=Z(e),i=Z(t),o;function s(u,...l){if(u)return n(u);u!==!1&&(o=l,i(...l,a))}function a(u,l){if(u)return n(u);if(u!==!1){if(!l)return n(null,...o);r(s)}}return a(null,!0)}function Yw(e,t,n){let r=Z(t);return Xu(e,(...i)=>{let o=i.pop();r(...i,(s,a)=>o(s,!a))},n)}function Qw(e){return(t,n,r)=>e(t,r)}function HP(e,t,n){return Ct(e,Qw(Z(t)),n)}function GP(e,t,n,r){return Ut(t)(e,Qw(Z(n)),r)}function VP(e,t,n){return el(e,1,t,n)}function Qp(e){return hs(e)?e:function(...t){var n=t.pop(),r=!0;t.push((...i)=>{r?Hn(()=>n(...i)):n(...i)}),e.apply(this,t),r=!1}}function KP(e,t,n){return wn(r=>!r,r=>!r)(Ct,e,t,n)}function YP(e,t,n,r){return wn(i=>!i,i=>!i)(Ut(t),e,n,r)}function QP(e,t,n){return wn(r=>!r,r=>!r)(Yt,e,t,n)}function ZP(e,t,n,r){var i=new Array(t.length);e(t,(o,s,a)=>{n(o,(u,l)=>{i[s]=!!l,a(u)})},o=>{if(o)return r(o);for(var s=[],a=0;a<t.length;a++)i[a]&&s.push(t[a]);r(null,s)})}function JP(e,t,n,r){var i=[];e(t,(o,s,a)=>{n(o,(u,l)=>{if(u)return a(u);l&&i.push({index:s,value:o}),a(u)})},o=>{if(o)return r(o);r(null,i.sort((s,a)=>s.index-a.index).map(s=>s.value))})}function ul(e,t,n,r){var i=ol(t)?ZP:JP;return i(e,t,Z(n),r)}function XP(e,t,n){return ul(Ct,e,t,n)}function e3(e,t,n,r){return ul(Ut(t),e,n,r)}function t3(e,t,n){return ul(Yt,e,t,n)}function n3(e,t){var n=Vn(t),r=Z(Qp(e));function i(o){if(o)return n(o);o!==!1&&r(i)}return i()}function r3(e,t,n,r){var i=Z(n);return ps(e,t,(o,s)=>{i(o,(a,u)=>a?s(a):s(a,{key:u,val:o}))},(o,s)=>{for(var a={},{hasOwnProperty:u}=Object.prototype,l=0;l<s.length;l++)if(s[l]){var{key:c}=s[l],{val:f}=s[l];u.call(a,c)?a[c].push(f):a[c]=[f]}return r(o,a)})}function Jw(e,t,n){return ll(e,1/0,t,n)}function Xw(e,t,n){return ll(e,1,t,n)}function i3(e,t,n,r){r=Gn(r);var i={},o=Z(n);return Ut(t)(e,(s,a,u)=>{o(s,a,(l,c)=>{if(l)return u(l);i[a]=c,u(l)})},s=>r(s,i))}function t_(e,t,n){return cl(e,1/0,t,n)}function n_(e,t,n){return cl(e,1,t,n)}function r_(e,t=n=>n){var n=Object.create(null),r=Object.create(null),i=Z(e),o=fs((s,a)=>{var u=t(...s);u in n?Hn(()=>a(null,...n[u])):u in r?r[u].push(a):(r[u]=[a],i(...s,(l,...c)=>{l||(n[u]=c);var f=r[u];delete r[u];for(var h=0,p=f.length;h<p;h++)f[h](l,...c)}))});return o.memo=n,o.unmemoized=e,o}function o_(e,t){return Zp(Ct,e,t)}function s_(e,t,n){return Zp(Ut(t),e,n)}function Jp(e,t){var n=Z(e);return Kp((r,i)=>{n(r[0],i)},t,1)}function o3(e){return(e<<1)+1}function Iw(e){return(e+1>>1)-1}function Sp(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function a_(e,t){var n=Jp(e,t),{push:r,pushAsync:i}=n;n._tasks=new Mp,n._createTaskItem=({data:s,priority:a},u)=>({data:s,priority:a,callback:u});function o(s,a){return Array.isArray(s)?s.map(u=>({data:u,priority:a})):{data:s,priority:a}}return n.push=function(s,a=0,u){return r(o(s,a),u)},n.pushAsync=function(s,a=0,u){return i(o(s,a),u)},delete n.unshift,delete n.unshiftAsync,n}function s3(e,t){if(t=Gn(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)Z(e[n])(t)}function jp(e,t,n,r){var i=[...e].reverse();return Ai(i,t,n,r)}function nl(e){var t=Z(e);return fs(function(r,i){return r.push((o,...s)=>{let a={};if(o&&(a.error=o),s.length>0){var u=s;s.length<=1&&([u]=s),a.value=u}i(null,a)}),t.apply(this,r)})}function l_(e){var t;return Array.isArray(e)?t=e.map(nl):(t={},Object.keys(e).forEach(n=>{t[n]=nl.call(this,e[n])})),t}function Xp(e,t,n,r){let i=Z(n);return ul(e,t,(o,s)=>{i(o,(a,u)=>{s(a,!u)})},r)}function a3(e,t,n){return Xp(Ct,e,t,n)}function u3(e,t,n,r){return Xp(Ut(t),e,n,r)}function l3(e,t,n){return Xp(Yt,e,t,n)}function p_(e){return function(){return e}}function rl(e,t,n){var r={times:Up,intervalFunc:p_(d_)};if(arguments.length<3&&typeof e=="function"?(n=t||Ri(),t=e):(c3(r,e),n=n||Ri()),typeof t!="function")throw new Error("Invalid arguments for async.retry");var i=Z(t),o=1;function s(){i((a,...u)=>{a!==!1&&(a&&o++<r.times&&(typeof r.errorFilter!="function"||r.errorFilter(a))?setTimeout(s,r.intervalFunc(o-1)):n(a,...u))})}return s(),n[Oi]}function c3(e,t){if(typeof t=="object")e.times=+t.times||Up,e.intervalFunc=typeof t.interval=="function"?t.interval:p_(+t.interval||d_),e.errorFilter=t.errorFilter;else if(typeof t=="number"||typeof t=="string")e.times=+t||Up;else throw new Error("Invalid arguments for async.retry")}function m_(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;hs(t)&&(n+=1);var r=Z(t);return fs((i,o)=>{(i.length<n-1||o==null)&&(i.push(o),o=Ri());function s(a){r(...i,a)}return e?rl(e,s,o):rl(s,o),o[Oi]})}function g_(e,t){return Zp(Yt,e,t)}function f3(e,t,n){return wn(Boolean,r=>r)(Ct,e,t,n)}function h3(e,t,n,r){return wn(Boolean,i=>i)(Ut(t),e,n,r)}function p3(e,t,n){return wn(Boolean,r=>r)(Yt,e,t,n)}function d3(e,t,n){var r=Z(t);return al(e,(o,s)=>{r(o,(a,u)=>{if(a)return s(a);s(a,{value:o,criteria:u})})},(o,s)=>{if(o)return n(o);n(null,s.sort(i).map(a=>a.value))});function i(o,s){var a=o.criteria,u=s.criteria;return a<u?-1:a>u?1:0}}function b_(e,t,n){var r=Z(e);return fs((i,o)=>{var s=!1,a;function u(){var l=e.name||"anonymous",c=new Error('Callback function "'+l+'" timed out.');c.code="ETIMEDOUT",n&&(c.info=n),s=!0,o(c)}i.push((...l)=>{s||(o(...l),clearTimeout(a))}),a=setTimeout(u,t),r(...i)})}function m3(e){for(var t=Array(e);e--;)t[e]=e;return t}function fl(e,t,n,r){var i=Z(n);return ps(m3(e),t,i,r)}function D_(e,t,n){return fl(e,1/0,t,n)}function w_(e,t,n){return fl(e,1,t,n)}function __(e,t,n,r){arguments.length<=3&&typeof t=="function"&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=Gn(r||Ri());var i=Z(n);return Ct(e,(o,s,a)=>{i(t,o,s,a)},o=>r(o,t)),r[Oi]}function g3(e,t){var n=null,r;return tl(e,(i,o)=>{Z(i)((s,...a)=>{if(s===!1)return o(s);a.length<2?[r]=a:r=a,n=s,o(s?null:{})})},()=>t(n,r))}function v_(e){return(...t)=>(e.unmemoized||e)(...t)}function y3(e,t,n){n=Vn(n);var r=Z(t),i=Z(e),o=[];function s(u,...l){if(u)return n(u);o=l,u!==!1&&i(a)}function a(u,l){if(u)return n(u);if(u!==!1){if(!l)return n(null,...o);r(s)}}return i(a)}function E_(e,t,n){let r=Z(e);return il(i=>r((o,s)=>i(o,!s)),t,n)}function b3(e,t){if(t=Gn(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(o){var s=Z(e[n++]);s(...o,Vn(i))}function i(o,...s){if(o!==!1){if(o||n===e.length)return t(o,...s);r(s)}}r([])}var mP,Pw,Bw,us,Hn,sl,Ut,ls,Ct,al,jw,Yt,Gp,Uw,Oi,AP,RP,OP,IP,Fp,Ai,ps,cs,kp,Tp,Cp,Ap,Rp,Kw,Xu,Op,el,tl,Ip,Lp,Pp,Bp,qp,Np,Zw,ll,e_,cl,Zu,i_,Zp,Mp,u_,c_,f_,h_,Up,d_,zp,Wp,$p,y_,x_,il,S_,D3,k_=A2(()=>{"use strict";mP=typeof queueMicrotask=="function"&&queueMicrotask,Pw=typeof setImmediate=="function"&&setImmediate,Bw=typeof process=="object"&&typeof process.nextTick=="function";mP?us=queueMicrotask:Pw?us=setImmediate:Bw?us=process.nextTick:us=qw;Hn=Nw(us);sl={};Ut=e=>(t,n,r)=>{if(r=Gn(r),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return r(null);if(gP(t))return Rw(t,e,n,r);if(yP(t))return Rw(t[Symbol.asyncIterator](),e,n,r);var i=xP(t),o=!1,s=!1,a=0,u=!1;function l(f,h){if(!s)if(a-=1,f)o=!0,r(f);else if(f===!1)o=!0,s=!0;else{if(h===sl||o&&a<=0)return o=!0,r(null);u||c()}}function c(){for(u=!0;a<e&&!o;){var f=i();if(f===null){o=!0,a<=0&&r(null);return}a+=1,n(f.value,f.key,Vn(l))}u=!1}c()};ls=Q(vP,4);Ct=Q(FP,3);al=Q(kP,3),jw=Mw(al);Yt=Q(TP,3);Gp=Q(CP,3),Uw=Mw(Gp),Oi=Symbol("promiseCallback");AP=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/,RP=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/,OP=/,/,IP=/(=.+)?(\s*)$/;Fp=class{constructor(){this.head=this.tail=null,this.length=0}removeLink(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t}empty(){for(;this.head;)this.shift();return this}insertAfter(t,n){n.prev=t,n.next=t.next,t.next?t.next.prev=n:this.tail=n,t.next=n,this.length+=1}insertBefore(t,n){n.prev=t.prev,n.next=t,t.prev?t.prev.next=n:this.head=n,t.prev=n,this.length+=1}unshift(t){this.head?this.insertBefore(this.head,t):Ow(this,t)}push(t){this.tail?this.insertAfter(this.tail,t):Ow(this,t)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var t=this.head;t;)yield t.data,t=t.next}remove(t){for(var n=this.head;n;){var{next:r}=n;t(n)&&this.removeLink(n),n=r}return this}};Ai=Q(BP,4);ps=Q(qP,4);cs=Q(NP,4);kp=Q(MP,3);Tp=Q(jP,3);Cp=Q(UP,3);Ap=Q(zP,4);Rp=Q(WP,3);Kw=Vw("dir");Xu=Q($P,3);Op=Q(HP,3);el=Q(GP,4);tl=Q(VP,3);Ip=Q(KP,3);Lp=Q(YP,4);Pp=Q(QP,3);Bp=Q(XP,3);qp=Q(e3,4);Np=Q(t3,3);Zw=Q(n3,2);ll=Q(r3,4);e_=Vw("log");cl=Q(i3,4);Bw?Zu=process.nextTick:Pw?Zu=setImmediate:Zu=qw;i_=Nw(Zu),Zp=Q((e,t,n)=>{var r=ol(t)?[]:{};e(t,(i,o,s)=>{Z(i)((a,...u)=>{u.length<2&&([u]=u),r[o]=u,s(a)})},i=>n(i,r))},3);Mp=class{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(t){let n;for(;t>0&&Sp(this.heap[t],this.heap[n=Iw(t)]);){let r=this.heap[t];this.heap[t]=this.heap[n],this.heap[n]=r,t=n}}percDown(t){let n;for(;(n=o3(t))<this.heap.length&&(n+1<this.heap.length&&Sp(this.heap[n+1],this.heap[n])&&(n=n+1),!Sp(this.heap[t],this.heap[n]));){let r=this.heap[t];this.heap[t]=this.heap[n],this.heap[n]=r,t=n}}push(t){t.pushCount=++this.pushCount,this.heap.push(t),this.percUp(this.heap.length-1)}unshift(t){return this.heap.push(t)}shift(){let[t]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),t}toArray(){return[...this]}*[Symbol.iterator](){for(let t=0;t<this.heap.length;t++)yield this.heap[t].data}remove(t){let n=0;for(let r=0;r<this.heap.length;r++)t(this.heap[r])||(this.heap[n]=this.heap[r],n++);this.heap.splice(n);for(let r=Iw(this.heap.length-1);r>=0;r--)this.percDown(r);return this}};u_=Q(s3,2);c_=Q(a3,3);f_=Q(u3,4);h_=Q(l3,3);Up=5,d_=0;zp=Q(f3,3);Wp=Q(h3,4);$p=Q(p3,3);y_=Q(d3,3);x_=Q(g3);il=Q(y3,3);S_=Q(b3),D3={apply:Lw,applyEach:jw,applyEachSeries:Uw,asyncify:Ju,auto:Vp,autoInject:zw,cargo:Ww,cargoQueue:$w,compose:Hw,concat:kp,concatLimit:cs,concatSeries:Tp,constant:Gw,detect:Cp,detectLimit:Ap,detectSeries:Rp,dir:Kw,doUntil:Yw,doWhilst:Xu,each:Op,eachLimit:el,eachOf:Ct,eachOfLimit:ls,eachOfSeries:Yt,eachSeries:tl,ensureAsync:Qp,every:Ip,everyLimit:Lp,everySeries:Pp,filter:Bp,filterLimit:qp,filterSeries:Np,forever:Zw,groupBy:Jw,groupByLimit:ll,groupBySeries:Xw,log:e_,map:al,mapLimit:ps,mapSeries:Gp,mapValues:t_,mapValuesLimit:cl,mapValuesSeries:n_,memoize:r_,nextTick:i_,parallel:o_,parallelLimit:s_,priorityQueue:a_,queue:Jp,race:u_,reduce:Ai,reduceRight:jp,reflect:nl,reflectAll:l_,reject:c_,rejectLimit:f_,rejectSeries:h_,retry:rl,retryable:m_,seq:Yp,series:g_,setImmediate:Hn,some:zp,someLimit:Wp,someSeries:$p,sortBy:y_,timeout:b_,times:D_,timesLimit:fl,timesSeries:w_,transform:__,tryEach:x_,unmemoize:v_,until:E_,waterfall:S_,whilst:il,all:Ip,allLimit:Lp,allSeries:Pp,any:zp,anyLimit:Wp,anySeries:$p,find:Cp,findLimit:Ap,findSeries:Rp,flatMap:kp,flatMapLimit:cs,flatMapSeries:Tp,forEach:Op,forEachSeries:tl,forEachLimit:el,forEachOf:Ct,forEachOfSeries:Yt,forEachOfLimit:ls,inject:Ai,foldl:Ai,foldr:jp,select:Bp,selectLimit:qp,selectSeries:Np,wrapSync:Ju,during:il,doDuring:Xu}});var C_=w((Hte,T_)=>{"use strict";var Kn=N("constants"),w3=process.cwd,hl=null,_3=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return hl||(hl=w3.call(process)),hl};try{process.cwd()}catch{}typeof process.chdir=="function"&&(ed=process.chdir,process.chdir=function(e){hl=null,ed.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,ed));var ed;T_.exports=x3;function x3(e){Kn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,f,h){h&&process.nextTick(h)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,f,h,p){p&&process.nextTick(p)},e.lchownSync=function(){}),_3==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(c){function f(h,p,b){var D=Date.now(),F=0;c(h,p,function g(m){if(m&&(m.code==="EACCES"||m.code==="EPERM"||m.code==="EBUSY")&&Date.now()-D<6e4){setTimeout(function(){e.stat(p,function(d,y){d&&d.code==="ENOENT"?c(h,p,g):b(m)})},F),F<100&&(F+=10);return}b&&b(m)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(c){function f(h,p,b,D,F,g){var m;if(g&&typeof g=="function"){var d=0;m=function(y,k,E){if(y&&y.code==="EAGAIN"&&d<10)return d++,c.call(e,h,p,b,D,F,m);g.apply(this,arguments)}}return c.call(e,h,p,b,D,F,m)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(c){return function(f,h,p,b,D){for(var F=0;;)try{return c.call(e,f,h,p,b,D)}catch(g){if(g.code==="EAGAIN"&&F<10){F++;continue}throw g}}})(e.readSync);function t(c){c.lchmod=function(f,h,p){c.open(f,Kn.O_WRONLY|Kn.O_SYMLINK,h,function(b,D){if(b){p&&p(b);return}c.fchmod(D,h,function(F){c.close(D,function(g){p&&p(F||g)})})})},c.lchmodSync=function(f,h){var p=c.openSync(f,Kn.O_WRONLY|Kn.O_SYMLINK,h),b=!0,D;try{D=c.fchmodSync(p,h),b=!1}finally{if(b)try{c.closeSync(p)}catch{}else c.closeSync(p)}return D}}function n(c){Kn.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,h,p,b){c.open(f,Kn.O_SYMLINK,function(D,F){if(D){b&&b(D);return}c.futimes(F,h,p,function(g){c.close(F,function(m){b&&b(g||m)})})})},c.lutimesSync=function(f,h,p){var b=c.openSync(f,Kn.O_SYMLINK),D,F=!0;try{D=c.futimesSync(b,h,p),F=!1}finally{if(F)try{c.closeSync(b)}catch{}else c.closeSync(b)}return D}):c.futimes&&(c.lutimes=function(f,h,p,b){b&&process.nextTick(b)},c.lutimesSync=function(){})}function r(c){return c&&function(f,h,p){return c.call(e,f,h,function(b){l(b)&&(b=null),p&&p.apply(this,arguments)})}}function i(c){return c&&function(f,h){try{return c.call(e,f,h)}catch(p){if(!l(p))throw p}}}function o(c){return c&&function(f,h,p,b){return c.call(e,f,h,p,function(D){l(D)&&(D=null),b&&b.apply(this,arguments)})}}function s(c){return c&&function(f,h,p){try{return c.call(e,f,h,p)}catch(b){if(!l(b))throw b}}}function a(c){return c&&function(f,h,p){typeof h=="function"&&(p=h,h=null);function b(D,F){F&&(F.uid<0&&(F.uid+=4294967296),F.gid<0&&(F.gid+=4294967296)),p&&p.apply(this,arguments)}return h?c.call(e,f,h,b):c.call(e,f,b)}}function u(c){return c&&function(f,h){var p=h?c.call(e,f,h):c.call(e,f);return p&&(p.uid<0&&(p.uid+=4294967296),p.gid<0&&(p.gid+=4294967296)),p}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var O_=w((Gte,R_)=>{"use strict";var A_=N("stream").Stream;R_.exports=v3;function v3(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);A_.call(this);var o=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),a=0,u=s.length;a<u;a++){var l=s[a];this[l]=i[l]}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(){o._read()});return}e.open(this.path,this.flags,this.mode,function(c,f){if(c){o.emit("error",c),o.readable=!1;return}o.fd=f,o.emit("open",f),o._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);A_.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var u=o[s];this[u]=i[u]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var L_=w((Vte,I_)=>{"use strict";I_.exports=S3;var E3=Object.getPrototypeOf||function(e){return e.__proto__};function S3(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:E3(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var id=w((Kte,rd)=>{"use strict";var _e=N("fs"),F3=C_(),k3=O_(),T3=L_(),pl=N("util"),Ue,ml;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Ue=Symbol.for("graceful-fs.queue"),ml=Symbol.for("graceful-fs.previous")):(Ue="___graceful-fs.queue",ml="___graceful-fs.previous");function C3(){}function q_(e,t){Object.defineProperty(e,Ue,{get:function(){return t}})}var qr=C3;pl.debuglog?qr=pl.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(qr=function(){var e=pl.format.apply(pl,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
36
|
+
GFS4: `),console.error(e)});_e[Ue]||(P_=global[Ue]||[],q_(_e,P_),_e.close=(function(e){function t(n,r){return e.call(_e,n,function(i){i||B_(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,ml,{value:e}),t})(_e.close),_e.closeSync=(function(e){function t(n){e.apply(_e,arguments),B_()}return Object.defineProperty(t,ml,{value:e}),t})(_e.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){qr(_e[Ue]),N("assert").equal(_e[Ue].length,0)}));var P_;global[Ue]||q_(global,_e[Ue]);rd.exports=td(T3(_e));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!_e.__patched&&(rd.exports=td(_e),_e.__patched=!0);function td(e){F3(e),e.gracefulify=td,e.createReadStream=k,e.createWriteStream=E;var t=e.readFile;e.readFile=n;function n(T,A,I){return typeof A=="function"&&(I=A,A=null),M(T,A,I);function M(O,R,L,W){return t(O,R,function(U){U&&(U.code==="EMFILE"||U.code==="ENFILE")?Ii([M,[O,R,L],U,W||Date.now(),Date.now()]):typeof L=="function"&&L.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=i;function i(T,A,I,M){return typeof I=="function"&&(M=I,I=null),O(T,A,I,M);function O(R,L,W,U,ce){return r(R,L,W,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?Ii([O,[R,L,W,U],ne,ce||Date.now(),Date.now()]):typeof U=="function"&&U.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(T,A,I,M){return typeof I=="function"&&(M=I,I=null),O(T,A,I,M);function O(R,L,W,U,ce){return o(R,L,W,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?Ii([O,[R,L,W,U],ne,ce||Date.now(),Date.now()]):typeof U=="function"&&U.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=u);function u(T,A,I,M){return typeof I=="function"&&(M=I,I=0),O(T,A,I,M);function O(R,L,W,U,ce){return a(R,L,W,function(ne){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?Ii([O,[R,L,W,U],ne,ce||Date.now(),Date.now()]):typeof U=="function"&&U.apply(this,arguments)})}}var l=e.readdir;e.readdir=f;var c=/^v[0-5]\./;function f(T,A,I){typeof A=="function"&&(I=A,A=null);var M=c.test(process.version)?function(L,W,U,ce){return l(L,O(L,W,U,ce))}:function(L,W,U,ce){return l(L,W,O(L,W,U,ce))};return M(T,A,I);function O(R,L,W,U){return function(ce,ne){ce&&(ce.code==="EMFILE"||ce.code==="ENFILE")?Ii([M,[R,L,W],ce,U||Date.now(),Date.now()]):(ne&&ne.sort&&ne.sort(),typeof W=="function"&&W.call(this,ce,ne))}}}if(process.version.substr(0,4)==="v0.8"){var h=k3(e);g=h.ReadStream,d=h.WriteStream}var p=e.ReadStream;p&&(g.prototype=Object.create(p.prototype),g.prototype.open=m);var b=e.WriteStream;b&&(d.prototype=Object.create(b.prototype),d.prototype.open=y),Object.defineProperty(e,"ReadStream",{get:function(){return g},set:function(T){g=T},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return d},set:function(T){d=T},enumerable:!0,configurable:!0});var D=g;Object.defineProperty(e,"FileReadStream",{get:function(){return D},set:function(T){D=T},enumerable:!0,configurable:!0});var F=d;Object.defineProperty(e,"FileWriteStream",{get:function(){return F},set:function(T){F=T},enumerable:!0,configurable:!0});function g(T,A){return this instanceof g?(p.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function m(){var T=this;q(T.path,T.flags,T.mode,function(A,I){A?(T.autoClose&&T.destroy(),T.emit("error",A)):(T.fd=I,T.emit("open",I),T.read())})}function d(T,A){return this instanceof d?(b.apply(this,arguments),this):d.apply(Object.create(d.prototype),arguments)}function y(){var T=this;q(T.path,T.flags,T.mode,function(A,I){A?(T.destroy(),T.emit("error",A)):(T.fd=I,T.emit("open",I))})}function k(T,A){return new e.ReadStream(T,A)}function E(T,A){return new e.WriteStream(T,A)}var v=e.open;e.open=q;function q(T,A,I,M){return typeof I=="function"&&(M=I,I=null),O(T,A,I,M);function O(R,L,W,U,ce){return v(R,L,W,function(ne,x){ne&&(ne.code==="EMFILE"||ne.code==="ENFILE")?Ii([O,[R,L,W,U],ne,ce||Date.now(),Date.now()]):typeof U=="function"&&U.apply(this,arguments)})}}return e}function Ii(e){qr("ENQUEUE",e[0].name,e[1]),_e[Ue].push(e),nd()}var dl;function B_(){for(var e=Date.now(),t=0;t<_e[Ue].length;++t)_e[Ue][t].length>2&&(_e[Ue][t][3]=e,_e[Ue][t][4]=e);nd()}function nd(){if(clearTimeout(dl),dl=void 0,_e[Ue].length!==0){var e=_e[Ue].shift(),t=e[0],n=e[1],r=e[2],i=e[3],o=e[4];if(i===void 0)qr("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-i>=6e4){qr("TIMEOUT",t.name,n);var s=n.pop();typeof s=="function"&&s.call(null,r)}else{var a=Date.now()-o,u=Math.max(o-i,1),l=Math.min(u*1.2,100);a>=l?(qr("RETRY",t.name,n),t.apply(null,n.concat([i]))):_e[Ue].push(e)}dl===void 0&&(dl=setTimeout(nd,0))}}});var gl=w((Yte,N_)=>{"use strict";var Qt=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Qt.writable=e=>Qt(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Qt.readable=e=>Qt(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Qt.duplex=e=>Qt.writable(e)&&Qt.readable(e);Qt.transform=e=>Qt.duplex(e)&&typeof e._transform=="function";N_.exports=Qt});var ds=w((Qte,od)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?od.exports={nextTick:A3}:od.exports=process;function A3(e,t,n,r){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,o,s;switch(i){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,n)});case 4:return process.nextTick(function(){e.call(null,t,n,r)});default:for(o=new Array(i-1),s=0;s<o.length;)o[s++]=arguments[s];return process.nextTick(function(){e.apply(null,o)})}}});var j_=w((Zte,M_)=>{"use strict";var R3={}.toString;M_.exports=Array.isArray||function(e){return R3.call(e)=="[object Array]"}});var sd=w((Jte,U_)=>{"use strict";U_.exports=N("stream")});var bl=w((ad,W_)=>{"use strict";var yl=N("buffer"),Zt=yl.Buffer;function z_(e,t){for(var n in e)t[n]=e[n]}Zt.from&&Zt.alloc&&Zt.allocUnsafe&&Zt.allocUnsafeSlow?W_.exports=yl:(z_(yl,ad),ad.Buffer=Nr);function Nr(e,t,n){return Zt(e,t,n)}Nr.prototype=Object.create(Zt.prototype);z_(Zt,Nr);Nr.from=function(e,t,n){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Zt(e,t,n)};Nr.alloc=function(e,t,n){if(typeof e!="number")throw new TypeError("Argument must be a number");var r=Zt(e);return t!==void 0?typeof n=="string"?r.fill(t,n):r.fill(t):r.fill(0),r};Nr.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Zt(e)};Nr.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return yl.SlowBuffer(e)}});var Li=w(Ye=>{"use strict";function O3(e){return Array.isArray?Array.isArray(e):Dl(e)==="[object Array]"}Ye.isArray=O3;function I3(e){return typeof e=="boolean"}Ye.isBoolean=I3;function L3(e){return e===null}Ye.isNull=L3;function P3(e){return e==null}Ye.isNullOrUndefined=P3;function B3(e){return typeof e=="number"}Ye.isNumber=B3;function q3(e){return typeof e=="string"}Ye.isString=q3;function N3(e){return typeof e=="symbol"}Ye.isSymbol=N3;function M3(e){return e===void 0}Ye.isUndefined=M3;function j3(e){return Dl(e)==="[object RegExp]"}Ye.isRegExp=j3;function U3(e){return typeof e=="object"&&e!==null}Ye.isObject=U3;function z3(e){return Dl(e)==="[object Date]"}Ye.isDate=z3;function W3(e){return Dl(e)==="[object Error]"||e instanceof Error}Ye.isError=W3;function $3(e){return typeof e=="function"}Ye.isFunction=$3;function H3(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Ye.isPrimitive=H3;Ye.isBuffer=N("buffer").Buffer.isBuffer;function Dl(e){return Object.prototype.toString.call(e)}});var $_=w((ene,ud)=>{"use strict";typeof Object.create=="function"?ud.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ud.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}}});var Pi=w((tne,cd)=>{"use strict";try{if(ld=N("util"),typeof ld.inherits!="function")throw"";cd.exports=ld.inherits}catch{cd.exports=$_()}var ld});var G_=w((nne,fd)=>{"use strict";function G3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var H_=bl().Buffer,ms=N("util");function V3(e,t,n){e.copy(t,n)}fd.exports=(function(){function e(){G3(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(n){var r={data:n,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length},e.prototype.unshift=function(n){var r={data:n,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length},e.prototype.shift=function(){if(this.length!==0){var n=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,n}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(n){if(this.length===0)return"";for(var r=this.head,i=""+r.data;r=r.next;)i+=n+r.data;return i},e.prototype.concat=function(n){if(this.length===0)return H_.alloc(0);for(var r=H_.allocUnsafe(n>>>0),i=this.head,o=0;i;)V3(i.data,r,o),o+=i.data.length,i=i.next;return r},e})();ms&&ms.inspect&&ms.inspect.custom&&(fd.exports.prototype[ms.inspect.custom]=function(){var e=ms.inspect({length:this.length});return this.constructor.name+" "+e})});var hd=w((rne,V_)=>{"use strict";var wl=ds();function K3(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return r||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,wl.nextTick(_l,this,e)):wl.nextTick(_l,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,wl.nextTick(_l,n,o)):wl.nextTick(_l,n,o):t&&t(o)}),this)}function Y3(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function _l(e,t){e.emit("error",t)}V_.exports={destroy:K3,undestroy:Y3}});var Y_=w((ine,K_)=>{"use strict";K_.exports=N("util").deprecate});var dd=w((one,rx)=>{"use strict";var Mr=ds();rx.exports=Te;function Z_(e){var t=this;this.next=null,this.entry=null,this.finish=function(){pB(t,e)}}var Q3=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:Mr.nextTick,Bi;Te.WritableState=ys;var J_=Object.create(Li());J_.inherits=Pi();var Z3={deprecate:Y_()},X_=sd(),vl=bl().Buffer,J3=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function X3(e){return vl.from(e)}function eB(e){return vl.isBuffer(e)||e instanceof J3}var ex=hd();J_.inherits(Te,X_);function tB(){}function ys(e,t){Bi=Bi||jr(),e=e||{};var n=t instanceof Bi;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=e.writableHighWaterMark,o=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=e.decodeStrings===!1;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){uB(t,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Z_(this)}ys.prototype.getBuffer=function(){for(var t=this.bufferedRequest,n=[];t;)n.push(t),t=t.next;return n};(function(){try{Object.defineProperty(ys.prototype,"buffer",{get:Z3.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var xl;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(xl=Function.prototype[Symbol.hasInstance],Object.defineProperty(Te,Symbol.hasInstance,{value:function(e){return xl.call(this,e)?!0:this!==Te?!1:e&&e._writableState instanceof ys}})):xl=function(e){return e instanceof this};function Te(e){if(Bi=Bi||jr(),!xl.call(Te,this)&&!(this instanceof Bi))return new Te(e);this._writableState=new ys(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),X_.call(this)}Te.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function nB(e,t){var n=new Error("write after end");e.emit("error",n),Mr.nextTick(t,n)}function rB(e,t,n,r){var i=!0,o=!1;return n===null?o=new TypeError("May not write null values to stream"):typeof n!="string"&&n!==void 0&&!t.objectMode&&(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),Mr.nextTick(r,o),i=!1),i}Te.prototype.write=function(e,t,n){var r=this._writableState,i=!1,o=!r.objectMode&&eB(e);return o&&!vl.isBuffer(e)&&(e=X3(e)),typeof t=="function"&&(n=t,t=null),o?t="buffer":t||(t=r.defaultEncoding),typeof n!="function"&&(n=tB),r.ended?nB(this,n):(o||rB(this,r,e,n))&&(r.pendingcb++,i=oB(this,r,o,e,t,n)),i};Te.prototype.cork=function(){var e=this._writableState;e.corked++};Te.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&tx(this,e))};Te.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function iB(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=vl.from(t,n)),t}Object.defineProperty(Te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function oB(e,t,n,r,i,o){if(!n){var s=iB(t,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=t.objectMode?1:r.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else pd(e,t,!1,a,r,i,o);return u}function pd(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function sB(e,t,n,r,i){--t.pendingcb,n?(Mr.nextTick(i,r),Mr.nextTick(gs,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),gs(e,t))}function aB(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function uB(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(aB(n),t)sB(e,n,r,t,i);else{var o=nx(n);!o&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&tx(e,n),r?Q3(Q_,e,n,o,i):Q_(e,n,o,i)}}function Q_(e,t,n,r){n||lB(e,t),t.pendingcb--,r(),gs(e,t)}function lB(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function tx(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,a=!0;n;)i[s]=n,n.isBuf||(a=!1),n=n.next,s+=1;i.allBuffers=a,pd(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Z_(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,c=n.callback,f=t.objectMode?1:u.length;if(pd(e,t,!1,f,u,l,c),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}Te.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))};Te.prototype._writev=null;Te.prototype.end=function(e,t,n){var r=this._writableState;typeof e=="function"?(n=e,e=null,t=null):typeof t=="function"&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||hB(this,r,n)};function nx(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function cB(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),gs(e,t)})}function fB(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,Mr.nextTick(cB,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function gs(e,t){var n=nx(t);return n&&(fB(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),n}function hB(e,t,n){t.ending=!0,gs(e,t),n&&(t.finished?Mr.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function pB(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(Te.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});Te.prototype.destroy=ex.destroy;Te.prototype._undestroy=ex.undestroy;Te.prototype._destroy=function(e,t){this.end(),t(e)}});var jr=w((sne,ax)=>{"use strict";var ix=ds(),dB=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};ax.exports=_n;var ox=Object.create(Li());ox.inherits=Pi();var sx=yd(),gd=dd();ox.inherits(_n,sx);for(md=dB(gd.prototype),El=0;El<md.length;El++)Sl=md[El],_n.prototype[Sl]||(_n.prototype[Sl]=gd.prototype[Sl]);var md,Sl,El;function _n(e){if(!(this instanceof _n))return new _n(e);sx.call(this,e),gd.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",mB)}Object.defineProperty(_n.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function mB(){this.allowHalfOpen||this._writableState.ended||ix.nextTick(gB,this)}function gB(e){e.end()}Object.defineProperty(_n.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});_n.prototype._destroy=function(e,t){this.push(null),this.end(),ix.nextTick(t,e)}});var yd=w((une,Dx)=>{"use strict";var Ni=ds();Dx.exports=de;var yB=j_(),bs;de.ReadableState=dx;var ane=N("events").EventEmitter,fx=function(e,t){return e.listeners(t).length},xd=sd(),Ds=bl().Buffer,bB=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function DB(e){return Ds.from(e)}function wB(e){return Ds.isBuffer(e)||e instanceof bB}var hx=Object.create(Li());hx.inherits=Pi();var bd=N("util"),ue=void 0;bd&&bd.debuglog?ue=bd.debuglog("stream"):ue=function(){};var _B=G_(),px=hd(),qi;hx.inherits(de,xd);var Dd=["error","close","destroy","pause","resume"];function xB(e,t,n){if(typeof e.prependListener=="function")return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):yB(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function dx(e,t){bs=bs||jr(),e=e||{};var n=t instanceof bs;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=e.readableHighWaterMark,o=this.objectMode?16:16*1024;r||r===0?this.highWaterMark=r:n&&(i||i===0)?this.highWaterMark=i:this.highWaterMark=o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _B,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(qi||(qi=N("string_decoder").StringDecoder),this.decoder=new qi(e.encoding),this.encoding=e.encoding)}function de(e){if(bs=bs||jr(),!(this instanceof de))return new de(e);this._readableState=new dx(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),xd.call(this)}Object.defineProperty(de.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});de.prototype.destroy=px.destroy;de.prototype._undestroy=px.undestroy;de.prototype._destroy=function(e,t){this.push(null),t(e)};de.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e=="string"&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=Ds.from(e,t),t=""),r=!0),mx(this,e,t,!1,r)};de.prototype.unshift=function(e){return mx(this,e,null,!0,!1)};function mx(e,t,n,r,i){var o=e._readableState;if(t===null)o.reading=!1,FB(e,o);else{var s;i||(s=vB(o,t)),s?e.emit("error",s):o.objectMode||t&&t.length>0?(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==Ds.prototype&&(t=DB(t)),r?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):wd(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?wd(e,o,t,!1):gx(e,o)):wd(e,o,t,!1))):r||(o.reading=!1)}return EB(o)}function wd(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&Fl(e)),gx(e,t)}function vB(e,t){var n;return!wB(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(n=new TypeError("Invalid non-string/buffer chunk")),n}function EB(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}de.prototype.isPaused=function(){return this._readableState.flowing===!1};de.prototype.setEncoding=function(e){return qi||(qi=N("string_decoder").StringDecoder),this._readableState.decoder=new qi(e),this._readableState.encoding=e,this};var ux=8388608;function SB(e){return e>=ux?e=ux:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function lx(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=SB(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}de.prototype.read=function(e){ue("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return ue("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?_d(this):Fl(this),null;if(e=lx(e,t),e===0&&t.ended)return t.length===0&&_d(this),null;var r=t.needReadable;ue("need readable",r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,ue("length less than watermark",r)),t.ended||t.reading?(r=!1,ue("reading or ended",r)):r&&(ue("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=lx(n,t)));var i;return e>0?i=yx(e,t):i=null,i===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&_d(this)),i!==null&&this.emit("data",i),i};function FB(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,Fl(e)}}function Fl(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(ue("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Ni.nextTick(cx,e):cx(e))}function cx(e){ue("emit readable"),e.emit("readable"),vd(e)}function gx(e,t){t.readingMore||(t.readingMore=!0,Ni.nextTick(kB,e,t))}function kB(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(ue("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}de.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};de.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,ue("pipe count=%d opts=%j",r.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=i?a:F;r.endEmitted?Ni.nextTick(o):n.once("end",o),e.on("unpipe",s);function s(g,m){ue("onunpipe"),g===n&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}function a(){ue("onend"),e.end()}var u=TB(n);e.on("drain",u);var l=!1;function c(){ue("cleanup"),e.removeListener("close",b),e.removeListener("finish",D),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",a),n.removeListener("end",F),n.removeListener("data",h),l=!0,r.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}var f=!1;n.on("data",h);function h(g){ue("ondata"),f=!1;var m=e.write(g);m===!1&&!f&&((r.pipesCount===1&&r.pipes===e||r.pipesCount>1&&bx(r.pipes,e)!==-1)&&!l&&(ue("false write response, pause",r.awaitDrain),r.awaitDrain++,f=!0),n.pause())}function p(g){ue("onerror",g),F(),e.removeListener("error",p),fx(e,"error")===0&&e.emit("error",g)}xB(e,"error",p);function b(){e.removeListener("finish",D),F()}e.once("close",b);function D(){ue("onfinish"),e.removeListener("close",b),F()}e.once("finish",D);function F(){ue("unpipe"),n.unpipe(e)}return e.emit("pipe",n),r.flowing||(ue("pipe resume"),n.resume()),e};function TB(e){return function(){var t=e._readableState;ue("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&fx(e,"data")&&(t.flowing=!0,vd(e))}}de.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=bx(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)};de.prototype.on=function(e,t){var n=xd.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var r=this._readableState;!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&Fl(this):Ni.nextTick(CB,this))}return n};de.prototype.addListener=de.prototype.on;function CB(e){ue("readable nexttick read 0"),e.read(0)}de.prototype.resume=function(){var e=this._readableState;return e.flowing||(ue("resume"),e.flowing=!0,AB(this,e)),this};function AB(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Ni.nextTick(RB,e,t))}function RB(e,t){t.reading||(ue("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),vd(e),t.flowing&&!t.reading&&e.read(0)}de.prototype.pause=function(){return ue("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ue("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function vd(e){var t=e._readableState;for(ue("flow",t.flowing);t.flowing&&e.read()!==null;);}de.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;e.on("end",function(){if(ue("wrapped end"),n.decoder&&!n.ended){var s=n.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(ue("wrapped data"),n.decoder&&(s=n.decoder.write(s)),!(n.objectMode&&s==null)&&!(!n.objectMode&&(!s||!s.length))){var a=t.push(s);a||(r=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=(function(s){return function(){return e[s].apply(e,arguments)}})(i));for(var o=0;o<Dd.length;o++)e.on(Dd[o],this.emit.bind(this,Dd[o]));return this._read=function(s){ue("wrapped _read",s),r&&(r=!1,e.resume())},this};Object.defineProperty(de.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});de._fromList=yx;function yx(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(t.decoder?n=t.buffer.join(""):t.buffer.length===1?n=t.buffer.head.data:n=t.buffer.concat(t.length),t.buffer.clear()):n=OB(e,t.buffer,t.decoder),n}function OB(e,t,n){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?r=t.shift():r=n?IB(e,t):LB(e,t),r}function IB(e,t){var n=t.head,r=1,i=n.data;for(e-=i.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),e-=s,e===0){s===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++r}return t.length-=r,i}function LB(e,t){var n=Ds.allocUnsafe(e),r=t.head,i=1;for(r.data.copy(n),e-=r.data.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,s),e-=s,e===0){s===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++i}return t.length-=i,n}function _d(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Ni.nextTick(PB,t,e))}function PB(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function bx(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}});var Ed=w((lne,xx)=>{"use strict";xx.exports=xn;var kl=jr(),_x=Object.create(Li());_x.inherits=Pi();_x.inherits(xn,kl);function BB(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function xn(e){if(!(this instanceof xn))return new xn(e);kl.call(this,e),this._transformState={afterTransform:BB.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",qB)}function qB(){var e=this;typeof this._flush=="function"?this._flush(function(t,n){wx(e,t,n)}):wx(this,null,null)}xn.prototype.push=function(e,t){return this._transformState.needTransform=!1,kl.prototype.push.call(this,e,t)};xn.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")};xn.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};xn.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};xn.prototype._destroy=function(e,t){var n=this;kl.prototype._destroy.call(this,e,function(r){t(r),n.emit("close")})};function wx(e,t,n){if(t)return e.emit("error",t);if(n!=null&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var Fx=w((cne,Sx)=>{"use strict";Sx.exports=ws;var vx=Ed(),Ex=Object.create(Li());Ex.inherits=Pi();Ex.inherits(ws,vx);function ws(e){if(!(this instanceof ws))return new ws(e);vx.call(this,e)}ws.prototype._transform=function(e,t,n){n(null,e)}});var kx=w((ze,Tl)=>{"use strict";var Jt=N("stream");process.env.READABLE_STREAM==="disable"&&Jt?(Tl.exports=Jt,ze=Tl.exports=Jt.Readable,ze.Readable=Jt.Readable,ze.Writable=Jt.Writable,ze.Duplex=Jt.Duplex,ze.Transform=Jt.Transform,ze.PassThrough=Jt.PassThrough,ze.Stream=Jt):(ze=Tl.exports=yd(),ze.Stream=Jt||ze,ze.Readable=ze,ze.Writable=dd(),ze.Duplex=jr(),ze.Transform=Ed(),ze.PassThrough=Fx())});var Cx=w((fne,Tx)=>{"use strict";Tx.exports=kx().PassThrough});var Ix=w((hne,Ox)=>{"use strict";var Ax=N("util"),Rl=Cx();Ox.exports={Readable:Cl,Writable:Al};Ax.inherits(Cl,Rl);Ax.inherits(Al,Rl);function Rx(e,t,n){e[t]=function(){return delete e[t],n.apply(this,arguments),this[t].apply(this,arguments)}}function Cl(e,t){if(!(this instanceof Cl))return new Cl(e,t);Rl.call(this,t),Rx(this,"_read",function(){var n=e.call(this,t),r=this.emit.bind(this,"error");n.on("error",r),n.pipe(this)}),this.emit("readable")}function Al(e,t){if(!(this instanceof Al))return new Al(e,t);Rl.call(this,t),Rx(this,"_write",function(){var n=e.call(this,t),r=this.emit.bind(this,"error");n.on("error",r),this.pipe(n)}),this.emit("writable")}});var Sd=w((pne,Lx)=>{"use strict";Lx.exports=function(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var n=e.length;if(n<=1)return e;var r="";if(n>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),r="//")}var o=e.split(/[/\\]+/);return t!==!1&&o[o.length-1]===""&&o.pop(),r+o.join("/")}});var Fd=w((dne,Px)=>{"use strict";function NB(e){return e}Px.exports=NB});var qx=w((mne,Bx)=>{"use strict";function MB(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}Bx.exports=MB});var jx=w((gne,Mx)=>{"use strict";var jB=qx(),Nx=Math.max;function UB(e,t,n){return t=Nx(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Nx(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),jB(e,this,a)}}Mx.exports=UB});var zx=w((yne,Ux)=>{"use strict";function zB(e){return function(){return e}}Ux.exports=zB});var kd=w((bne,Wx)=>{"use strict";var WB=typeof global=="object"&&global&&global.Object===Object&&global;Wx.exports=WB});var Mi=w((Dne,$x)=>{"use strict";var $B=kd(),HB=typeof self=="object"&&self&&self.Object===Object&&self,GB=$B||HB||Function("return this")();$x.exports=GB});var Ol=w((wne,Hx)=>{"use strict";var VB=Mi(),KB=VB.Symbol;Hx.exports=KB});var Yx=w((_ne,Kx)=>{"use strict";var Gx=Ol(),Vx=Object.prototype,YB=Vx.hasOwnProperty,QB=Vx.toString,_s=Gx?Gx.toStringTag:void 0;function ZB(e){var t=YB.call(e,_s),n=e[_s];try{e[_s]=void 0;var r=!0}catch{}var i=QB.call(e);return r&&(t?e[_s]=n:delete e[_s]),i}Kx.exports=ZB});var Zx=w((xne,Qx)=>{"use strict";var JB=Object.prototype,XB=JB.toString;function eq(e){return XB.call(e)}Qx.exports=eq});var xs=w((vne,ev)=>{"use strict";var Jx=Ol(),tq=Yx(),nq=Zx(),rq="[object Null]",iq="[object Undefined]",Xx=Jx?Jx.toStringTag:void 0;function oq(e){return e==null?e===void 0?iq:rq:Xx&&Xx in Object(e)?tq(e):nq(e)}ev.exports=oq});var vs=w((Ene,tv)=>{"use strict";function sq(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}tv.exports=sq});var Td=w((Sne,nv)=>{"use strict";var aq=xs(),uq=vs(),lq="[object AsyncFunction]",cq="[object Function]",fq="[object GeneratorFunction]",hq="[object Proxy]";function pq(e){if(!uq(e))return!1;var t=aq(e);return t==cq||t==fq||t==lq||t==hq}nv.exports=pq});var iv=w((Fne,rv)=>{"use strict";var dq=Mi(),mq=dq["__core-js_shared__"];rv.exports=mq});var av=w((kne,sv)=>{"use strict";var Cd=iv(),ov=(function(){var e=/[^.]+$/.exec(Cd&&Cd.keys&&Cd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function gq(e){return!!ov&&ov in e}sv.exports=gq});var lv=w((Tne,uv)=>{"use strict";var yq=Function.prototype,bq=yq.toString;function Dq(e){if(e!=null){try{return bq.call(e)}catch{}try{return e+""}catch{}}return""}uv.exports=Dq});var fv=w((Cne,cv)=>{"use strict";var wq=Td(),_q=av(),xq=vs(),vq=lv(),Eq=/[\\^$.*+?()[\]{}|]/g,Sq=/^\[object .+?Constructor\]$/,Fq=Function.prototype,kq=Object.prototype,Tq=Fq.toString,Cq=kq.hasOwnProperty,Aq=RegExp("^"+Tq.call(Cq).replace(Eq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Rq(e){if(!xq(e)||_q(e))return!1;var t=wq(e)?Aq:Sq;return t.test(vq(e))}cv.exports=Rq});var pv=w((Ane,hv)=>{"use strict";function Oq(e,t){return e?.[t]}hv.exports=Oq});var Es=w((Rne,dv)=>{"use strict";var Iq=fv(),Lq=pv();function Pq(e,t){var n=Lq(e,t);return Iq(n)?n:void 0}dv.exports=Pq});var gv=w((One,mv)=>{"use strict";var Bq=Es(),qq=(function(){try{var e=Bq(Object,"defineProperty");return e({},"",{}),e}catch{}})();mv.exports=qq});var Dv=w((Ine,bv)=>{"use strict";var Nq=zx(),yv=gv(),Mq=Fd(),jq=yv?function(e,t){return yv(e,"toString",{configurable:!0,enumerable:!1,value:Nq(t),writable:!0})}:Mq;bv.exports=jq});var _v=w((Lne,wv)=>{"use strict";var Uq=800,zq=16,Wq=Date.now;function $q(e){var t=0,n=0;return function(){var r=Wq(),i=zq-(r-n);if(n=r,i>0){if(++t>=Uq)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}wv.exports=$q});var vv=w((Pne,xv)=>{"use strict";var Hq=Dv(),Gq=_v(),Vq=Gq(Hq);xv.exports=Vq});var Il=w((Bne,Ev)=>{"use strict";var Kq=Fd(),Yq=jx(),Qq=vv();function Zq(e,t){return Qq(Yq(e,t,Kq),e+"")}Ev.exports=Zq});var Ll=w((qne,Sv)=>{"use strict";function Jq(e,t){return e===t||e!==e&&t!==t}Sv.exports=Jq});var Ad=w((Nne,Fv)=>{"use strict";var Xq=9007199254740991;function eN(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xq}Fv.exports=eN});var Pl=w((Mne,kv)=>{"use strict";var tN=Td(),nN=Ad();function rN(e){return e!=null&&nN(e.length)&&!tN(e)}kv.exports=rN});var Rd=w((jne,Tv)=>{"use strict";var iN=9007199254740991,oN=/^(?:0|[1-9]\d*)$/;function sN(e,t){var n=typeof e;return t=t??iN,!!t&&(n=="number"||n!="symbol"&&oN.test(e))&&e>-1&&e%1==0&&e<t}Tv.exports=sN});var Av=w((Une,Cv)=>{"use strict";var aN=Ll(),uN=Pl(),lN=Rd(),cN=vs();function fN(e,t,n){if(!cN(n))return!1;var r=typeof t;return(r=="number"?uN(n)&&lN(t,n.length):r=="string"&&t in n)?aN(n[t],e):!1}Cv.exports=fN});var Ov=w((zne,Rv)=>{"use strict";function hN(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}Rv.exports=hN});var ji=w((Wne,Iv)=>{"use strict";function pN(e){return e!=null&&typeof e=="object"}Iv.exports=pN});var Pv=w(($ne,Lv)=>{"use strict";var dN=xs(),mN=ji(),gN="[object Arguments]";function yN(e){return mN(e)&&dN(e)==gN}Lv.exports=yN});var Od=w((Hne,Nv)=>{"use strict";var Bv=Pv(),bN=ji(),qv=Object.prototype,DN=qv.hasOwnProperty,wN=qv.propertyIsEnumerable,_N=Bv((function(){return arguments})())?Bv:function(e){return bN(e)&&DN.call(e,"callee")&&!wN.call(e,"callee")};Nv.exports=_N});var Id=w((Gne,Mv)=>{"use strict";var xN=Array.isArray;Mv.exports=xN});var Uv=w((Vne,jv)=>{"use strict";function vN(){return!1}jv.exports=vN});var Hv=w((Ss,Ui)=>{"use strict";var EN=Mi(),SN=Uv(),$v=typeof Ss=="object"&&Ss&&!Ss.nodeType&&Ss,zv=$v&&typeof Ui=="object"&&Ui&&!Ui.nodeType&&Ui,FN=zv&&zv.exports===$v,Wv=FN?EN.Buffer:void 0,kN=Wv?Wv.isBuffer:void 0,TN=kN||SN;Ui.exports=TN});var Vv=w((Kne,Gv)=>{"use strict";var CN=xs(),AN=Ad(),RN=ji(),ON="[object Arguments]",IN="[object Array]",LN="[object Boolean]",PN="[object Date]",BN="[object Error]",qN="[object Function]",NN="[object Map]",MN="[object Number]",jN="[object Object]",UN="[object RegExp]",zN="[object Set]",WN="[object String]",$N="[object WeakMap]",HN="[object ArrayBuffer]",GN="[object DataView]",VN="[object Float32Array]",KN="[object Float64Array]",YN="[object Int8Array]",QN="[object Int16Array]",ZN="[object Int32Array]",JN="[object Uint8Array]",XN="[object Uint8ClampedArray]",eM="[object Uint16Array]",tM="[object Uint32Array]",me={};me[VN]=me[KN]=me[YN]=me[QN]=me[ZN]=me[JN]=me[XN]=me[eM]=me[tM]=!0;me[ON]=me[IN]=me[HN]=me[LN]=me[GN]=me[PN]=me[BN]=me[qN]=me[NN]=me[MN]=me[jN]=me[UN]=me[zN]=me[WN]=me[$N]=!1;function nM(e){return RN(e)&&AN(e.length)&&!!me[CN(e)]}Gv.exports=nM});var Ld=w((Yne,Kv)=>{"use strict";function rM(e){return function(t){return e(t)}}Kv.exports=rM});var Qv=w((Fs,zi)=>{"use strict";var iM=kd(),Yv=typeof Fs=="object"&&Fs&&!Fs.nodeType&&Fs,ks=Yv&&typeof zi=="object"&&zi&&!zi.nodeType&&zi,oM=ks&&ks.exports===Yv,Pd=oM&&iM.process,sM=(function(){try{var e=ks&&ks.require&&ks.require("util").types;return e||Pd&&Pd.binding&&Pd.binding("util")}catch{}})();zi.exports=sM});var eE=w((Qne,Xv)=>{"use strict";var aM=Vv(),uM=Ld(),Zv=Qv(),Jv=Zv&&Zv.isTypedArray,lM=Jv?uM(Jv):aM;Xv.exports=lM});var nE=w((Zne,tE)=>{"use strict";var cM=Ov(),fM=Od(),hM=Id(),pM=Hv(),dM=Rd(),mM=eE(),gM=Object.prototype,yM=gM.hasOwnProperty;function bM(e,t){var n=hM(e),r=!n&&fM(e),i=!n&&!r&&pM(e),o=!n&&!r&&!i&&mM(e),s=n||r||i||o,a=s?cM(e.length,String):[],u=a.length;for(var l in e)(t||yM.call(e,l))&&!(s&&(l=="length"||i&&(l=="offset"||l=="parent")||o&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||dM(l,u)))&&a.push(l);return a}tE.exports=bM});var iE=w((Jne,rE)=>{"use strict";var DM=Object.prototype;function wM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||DM;return e===n}rE.exports=wM});var sE=w((Xne,oE)=>{"use strict";function _M(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}oE.exports=_M});var uE=w((ere,aE)=>{"use strict";var xM=vs(),vM=iE(),EM=sE(),SM=Object.prototype,FM=SM.hasOwnProperty;function kM(e){if(!xM(e))return EM(e);var t=vM(e),n=[];for(var r in e)r=="constructor"&&(t||!FM.call(e,r))||n.push(r);return n}aE.exports=kM});var cE=w((tre,lE)=>{"use strict";var TM=nE(),CM=uE(),AM=Pl();function RM(e){return AM(e)?TM(e,!0):CM(e)}lE.exports=RM});var pE=w((nre,hE)=>{"use strict";var OM=Il(),IM=Ll(),LM=Av(),PM=cE(),fE=Object.prototype,BM=fE.hasOwnProperty,qM=OM(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&LM(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],s=PM(o),a=-1,u=s.length;++a<u;){var l=s[a],c=e[l];(c===void 0||IM(c,fE[l])&&!BM.call(e,l))&&(e[l]=o[l])}return e});hE.exports=qM});var we=w((rre,dE)=>{"use strict";var Bd=class extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError(`Expected input to be an Array, got ${typeof t}`);let n="";for(let r=0;r<t.length;r++)n+=` ${t[r].stack}
|
|
37
|
+
`;super(n),this.name="AggregateError",this.errors=t}};dE.exports={AggregateError:Bd,ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,n){return e.slice(t,n)},Error,FunctionPrototypeCall(e,t,...n){return e.call(t,...n)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,n){return Object.defineProperty(e,t,n)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,n){return e.then(t,n)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,n){return e.slice(t,n)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,n){return e.set(t,n)},Boolean,Uint8Array}});var qd=w((ire,mE)=>{"use strict";mE.exports={format(e,...t){return e.replace(/%([sdifj])/g,function(...[n,r]){let i=t.shift();return r==="f"?i.toFixed(6):r==="j"?JSON.stringify(i):r==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(e){switch(typeof e){case"string":if(e.includes("'"))if(e.includes('"')){if(!e.includes("`")&&!e.includes("${"))return`\`${e}\``}else return`"${e}"`;return`'${e}'`;case"number":return isNaN(e)?"NaN":Object.is(e,-0)?String(e):e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}});var Qe=w((ore,bE)=>{"use strict";var{format:NM,inspect:Bl}=qd(),{AggregateError:MM}=we(),jM=globalThis.AggregateError||MM,UM=Symbol("kIsNodeError"),zM=["string","function","number","object","Function","Object","boolean","bigint","symbol"],WM=/^([A-Z][a-z0-9]*)+$/,$M="__node_internal_",ql={};function Ur(e,t){if(!e)throw new ql.ERR_INTERNAL_ASSERTION(t)}function gE(e){let t="",n=e.length,r=e[0]==="-"?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function HM(e,t,n){if(typeof t=="function")return Ur(t.length<=n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${t.length}).`),t(...n);let r=(t.match(/%[dfijoOs]/g)||[]).length;return Ur(r===n.length,`Code: ${e}; The provided arguments length (${n.length}) does not match the required ones (${r}).`),n.length===0?t:NM(t,...n)}function We(e,t,n){n||(n=Error);class r extends n{constructor(...o){super(HM(e,t,o))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(r.prototype,{name:{value:n.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),r.prototype.code=e,r.prototype[UM]=!0,ql[e]=r}function yE(e){let t=$M+e.name;return Object.defineProperty(e,"name",{value:t}),e}function GM(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors))return t.errors.push(e),t;let n=new jM([t,e],t.message);return n.code=t.code,n}return e||t}var Nd=class extends Error{constructor(t="The operation was aborted",n=void 0){if(n!==void 0&&typeof n!="object")throw new ql.ERR_INVALID_ARG_TYPE("options","Object",n);super(t,n),this.code="ABORT_ERR",this.name="AbortError"}};We("ERR_ASSERTION","%s",Error);We("ERR_INVALID_ARG_TYPE",(e,t,n)=>{Ur(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let r="The ";e.endsWith(" argument")?r+=`${e} `:r+=`"${e}" ${e.includes(".")?"property":"argument"} `,r+="must be ";let i=[],o=[],s=[];for(let u of t)Ur(typeof u=="string","All expected entries have to be of type string"),zM.includes(u)?i.push(u.toLowerCase()):WM.test(u)?o.push(u):(Ur(u!=="object",'The value "object" should be written as "Object"'),s.push(u));if(o.length>0){let u=i.indexOf("object");u!==-1&&(i.splice(i,u,1),o.push("Object"))}if(i.length>0){switch(i.length){case 1:r+=`of type ${i[0]}`;break;case 2:r+=`one of type ${i[0]} or ${i[1]}`;break;default:{let u=i.pop();r+=`one of type ${i.join(", ")}, or ${u}`}}(o.length>0||s.length>0)&&(r+=" or ")}if(o.length>0){switch(o.length){case 1:r+=`an instance of ${o[0]}`;break;case 2:r+=`an instance of ${o[0]} or ${o[1]}`;break;default:{let u=o.pop();r+=`an instance of ${o.join(", ")}, or ${u}`}}s.length>0&&(r+=" or ")}switch(s.length){case 0:break;case 1:s[0].toLowerCase()!==s[0]&&(r+="an "),r+=`${s[0]}`;break;case 2:r+=`one of ${s[0]} or ${s[1]}`;break;default:{let u=s.pop();r+=`one of ${s.join(", ")}, or ${u}`}}if(n==null)r+=`. Received ${n}`;else if(typeof n=="function"&&n.name)r+=`. Received function ${n.name}`;else if(typeof n=="object"){var a;if((a=n.constructor)!==null&&a!==void 0&&a.name)r+=`. Received an instance of ${n.constructor.name}`;else{let u=Bl(n,{depth:-1});r+=`. Received ${u}`}}else{let u=Bl(n,{colors:!1});u.length>25&&(u=`${u.slice(0,25)}...`),r+=`. Received type ${typeof n} (${u})`}return r},TypeError);We("ERR_INVALID_ARG_VALUE",(e,t,n="is invalid")=>{let r=Bl(t);return r.length>128&&(r=r.slice(0,128)+"..."),`The ${e.includes(".")?"property":"argument"} '${e}' ${n}. Received ${r}`},TypeError);We("ERR_INVALID_RETURN_VALUE",(e,t,n)=>{var r;let i=n!=null&&(r=n.constructor)!==null&&r!==void 0&&r.name?`instance of ${n.constructor.name}`:`type ${typeof n}`;return`Expected ${e} to be returned from the "${t}" function but got ${i}.`},TypeError);We("ERR_MISSING_ARGS",(...e)=>{Ur(e.length>0,"At least one arg needs to be specified");let t,n=e.length;switch(e=(Array.isArray(e)?e:[e]).map(r=>`"${r}"`).join(" or "),n){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{let r=e.pop();t+=`The ${e.join(", ")}, and ${r} arguments`}break}return`${t} must be specified`},TypeError);We("ERR_OUT_OF_RANGE",(e,t,n)=>{Ur(t,'Missing "range" argument');let r;if(Number.isInteger(n)&&Math.abs(n)>2**32)r=gE(String(n));else if(typeof n=="bigint"){r=String(n);let i=BigInt(2)**BigInt(32);(n>i||n<-i)&&(r=gE(r)),r+="n"}else r=Bl(n);return`The value of "${e}" is out of range. It must be ${t}. Received ${r}`},RangeError);We("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);We("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);We("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);We("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);We("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);We("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);We("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);We("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);We("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);We("ERR_STREAM_WRITE_AFTER_END","write after end",Error);We("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);bE.exports={AbortError:Nd,aggregateTwoErrors:yE(GM),hideStackFrames:yE,codes:ql}});var TE=w((As,Cs)=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var EE=new WeakMap,Md=new WeakMap;function ge(e){let t=EE.get(e);return console.assert(t!=null,"'this' is expected an Event object, but got",e),t}function DE(e){if(e.passiveListener!=null){typeof console<"u"&&typeof console.error=="function"&&console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener);return}e.event.cancelable&&(e.canceled=!0,typeof e.event.preventDefault=="function"&&e.event.preventDefault())}function Wi(e,t){EE.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let n=Object.keys(t);for(let r=0;r<n.length;++r){let i=n[r];i in this||Object.defineProperty(this,i,SE(i))}}Wi.prototype={get type(){return ge(this).event.type},get target(){return ge(this).eventTarget},get currentTarget(){return ge(this).currentTarget},composedPath(){let e=ge(this).currentTarget;return e==null?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return ge(this).eventPhase},stopPropagation(){let e=ge(this);e.stopped=!0,typeof e.event.stopPropagation=="function"&&e.event.stopPropagation()},stopImmediatePropagation(){let e=ge(this);e.stopped=!0,e.immediateStopped=!0,typeof e.event.stopImmediatePropagation=="function"&&e.event.stopImmediatePropagation()},get bubbles(){return!!ge(this).event.bubbles},get cancelable(){return!!ge(this).event.cancelable},preventDefault(){DE(ge(this))},get defaultPrevented(){return ge(this).canceled},get composed(){return!!ge(this).event.composed},get timeStamp(){return ge(this).timeStamp},get srcElement(){return ge(this).eventTarget},get cancelBubble(){return ge(this).stopped},set cancelBubble(e){if(!e)return;let t=ge(this);t.stopped=!0,typeof t.event.cancelBubble=="boolean"&&(t.event.cancelBubble=!0)},get returnValue(){return!ge(this).canceled},set returnValue(e){e||DE(ge(this))},initEvent(){}};Object.defineProperty(Wi.prototype,"constructor",{value:Wi,configurable:!0,writable:!0});typeof window<"u"&&typeof window.Event<"u"&&(Object.setPrototypeOf(Wi.prototype,window.Event.prototype),Md.set(window.Event.prototype,Wi));function SE(e){return{get(){return ge(this).event[e]},set(t){ge(this).event[e]=t},configurable:!0,enumerable:!0}}function VM(e){return{value(){let t=ge(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function KM(e,t){let n=Object.keys(t);if(n.length===0)return e;function r(i,o){e.call(this,i,o)}r.prototype=Object.create(e.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(let i=0;i<n.length;++i){let o=n[i];if(!(o in e.prototype)){let a=typeof Object.getOwnPropertyDescriptor(t,o).value=="function";Object.defineProperty(r.prototype,o,a?VM(o):SE(o))}}return r}function FE(e){if(e==null||e===Object.prototype)return Wi;let t=Md.get(e);return t==null&&(t=KM(FE(Object.getPrototypeOf(e)),e),Md.set(e,t)),t}function YM(e,t){let n=FE(Object.getPrototypeOf(t));return new n(e,t)}function QM(e){return ge(e).immediateStopped}function ZM(e,t){ge(e).eventPhase=t}function JM(e,t){ge(e).currentTarget=t}function wE(e,t){ge(e).passiveListener=t}var kE=new WeakMap,_E=1,xE=2,Nl=3;function Ml(e){return e!==null&&typeof e=="object"}function Ts(e){let t=kE.get(e);if(t==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function XM(e){return{get(){let n=Ts(this).get(e);for(;n!=null;){if(n.listenerType===Nl)return n.listener;n=n.next}return null},set(t){typeof t!="function"&&!Ml(t)&&(t=null);let n=Ts(this),r=null,i=n.get(e);for(;i!=null;)i.listenerType===Nl?r!==null?r.next=i.next:i.next!==null?n.set(e,i.next):n.delete(e):r=i,i=i.next;if(t!==null){let o={listener:t,listenerType:Nl,passive:!1,once:!1,next:null};r===null?n.set(e,o):r.next=o}},configurable:!0,enumerable:!0}}function jd(e,t){Object.defineProperty(e,`on${t}`,XM(t))}function vE(e){function t(){zt.call(this)}t.prototype=Object.create(zt.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let n=0;n<e.length;++n)jd(t.prototype,e[n]);return t}function zt(){if(this instanceof zt){kE.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return vE(arguments[0]);if(arguments.length>0){let e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return vE(e)}throw new TypeError("Cannot call a class as a function")}zt.prototype={addEventListener(e,t,n){if(t==null)return;if(typeof t!="function"&&!Ml(t))throw new TypeError("'listener' should be a function or an object.");let r=Ts(this),i=Ml(n),s=(i?!!n.capture:!!n)?_E:xE,a={listener:t,listenerType:s,passive:i&&!!n.passive,once:i&&!!n.once,next:null},u=r.get(e);if(u===void 0){r.set(e,a);return}let l=null;for(;u!=null;){if(u.listener===t&&u.listenerType===s)return;l=u,u=u.next}l.next=a},removeEventListener(e,t,n){if(t==null)return;let r=Ts(this),o=(Ml(n)?!!n.capture:!!n)?_E:xE,s=null,a=r.get(e);for(;a!=null;){if(a.listener===t&&a.listenerType===o){s!==null?s.next=a.next:a.next!==null?r.set(e,a.next):r.delete(e);return}s=a,a=a.next}},dispatchEvent(e){if(e==null||typeof e.type!="string")throw new TypeError('"event.type" should be a string.');let t=Ts(this),n=e.type,r=t.get(n);if(r==null)return!0;let i=YM(this,e),o=null;for(;r!=null;){if(r.once?o!==null?o.next=r.next:r.next!==null?t.set(n,r.next):t.delete(n):o=r,wE(i,r.passive?r.listener:null),typeof r.listener=="function")try{r.listener.call(this,i)}catch(s){typeof console<"u"&&typeof console.error=="function"&&console.error(s)}else r.listenerType!==Nl&&typeof r.listener.handleEvent=="function"&&r.listener.handleEvent(i);if(QM(i))break;r=r.next}return wE(i,null),ZM(i,0),JM(i,null),!i.defaultPrevented}};Object.defineProperty(zt.prototype,"constructor",{value:zt,configurable:!0,writable:!0});typeof window<"u"&&typeof window.EventTarget<"u"&&Object.setPrototypeOf(zt.prototype,window.EventTarget.prototype);As.defineEventAttribute=jd;As.EventTarget=zt;As.default=zt;Cs.exports=zt;Cs.exports.EventTarget=Cs.exports.default=zt;Cs.exports.defineEventAttribute=jd});var $i=w((Os,Rs)=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var Ud=TE(),Yn=class extends Ud.EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let t=jl.get(this);if(typeof t!="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return t}};Ud.defineEventAttribute(Yn.prototype,"abort");function e6(){let e=Object.create(Yn.prototype);return Ud.EventTarget.call(e),jl.set(e,!1),e}function t6(e){jl.get(e)===!1&&(jl.set(e,!0),e.dispatchEvent({type:"abort"}))}var jl=new WeakMap;Object.defineProperties(Yn.prototype,{aborted:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Yn.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var Qn=class{constructor(){AE.set(this,e6())}get signal(){return CE(this)}abort(){t6(CE(this))}},AE=new WeakMap;function CE(e){let t=AE.get(e);if(t==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${e===null?"null":typeof e}`);return t}Object.defineProperties(Qn.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}});typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Qn.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Os.AbortController=Qn;Os.AbortSignal=Yn;Os.default=Qn;Rs.exports=Qn;Rs.exports.AbortController=Rs.exports.default=Qn;Rs.exports.AbortSignal=Yn});var nt=w((sre,Wd)=>{"use strict";var n6=N("buffer"),{format:r6,inspect:i6}=qd(),{codes:{ERR_INVALID_ARG_TYPE:zd}}=Qe(),{kResistStopPropagation:o6,AggregateError:s6,SymbolDispose:a6}=we(),u6=globalThis.AbortSignal||$i().AbortSignal,l6=globalThis.AbortController||$i().AbortController,c6=Object.getPrototypeOf(async function(){}).constructor,RE=globalThis.Blob||n6.Blob,f6=typeof RE<"u"?function(t){return t instanceof RE}:function(t){return!1},OE=(e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new zd(t,"AbortSignal",e)},h6=(e,t)=>{if(typeof e!="function")throw new zd(t,"Function",e)};Wd.exports={AggregateError:s6,kEmptyObject:Object.freeze({}),once(e){let t=!1;return function(...n){t||(t=!0,e.apply(this,n))}},createDeferredPromise:function(){let e,t;return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}},promisify(e){return new Promise((t,n)=>{e((r,...i)=>r?n(r):t(...i))})},debuglog(){return function(){}},format:r6,inspect:i6,types:{isAsyncFunction(e){return e instanceof c6},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:f6,deprecate(e,t){return e},addAbortListener:N("events").addAbortListener||function(t,n){if(t===void 0)throw new zd("signal","AbortSignal",t);OE(t,"signal"),h6(n,"listener");let r;return t.aborted?queueMicrotask(()=>n()):(t.addEventListener("abort",n,{__proto__:null,once:!0,[o6]:!0}),r=()=>{t.removeEventListener("abort",n)}),{__proto__:null,[a6](){var i;(i=r)===null||i===void 0||i()}}},AbortSignalAny:u6.any||function(t){if(t.length===1)return t[0];let n=new l6,r=()=>n.abort();return t.forEach(i=>{OE(i,"signals"),i.addEventListener("abort",r,{once:!0})}),n.signal.addEventListener("abort",()=>{t.forEach(i=>i.removeEventListener("abort",r))},{once:!0}),n.signal}};Wd.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var Gi=w((are,zE)=>{"use strict";var{ArrayIsArray:Hd,ArrayPrototypeIncludes:BE,ArrayPrototypeJoin:qE,ArrayPrototypeMap:p6,NumberIsInteger:Gd,NumberIsNaN:d6,NumberMAX_SAFE_INTEGER:m6,NumberMIN_SAFE_INTEGER:g6,NumberParseInt:y6,ObjectPrototypeHasOwnProperty:b6,RegExpPrototypeExec:NE,String:D6,StringPrototypeToUpperCase:w6,StringPrototypeTrim:_6}=we(),{hideStackFrames:At,codes:{ERR_SOCKET_BAD_PORT:x6,ERR_INVALID_ARG_TYPE:Ze,ERR_INVALID_ARG_VALUE:Hi,ERR_OUT_OF_RANGE:zr,ERR_UNKNOWN_SIGNAL:IE}}=Qe(),{normalizeEncoding:v6}=nt(),{isAsyncFunction:E6,isArrayBufferView:S6}=nt().types,LE={};function F6(e){return e===(e|0)}function k6(e){return e===e>>>0}var T6=/^[0-7]+$/,C6="must be a 32-bit unsigned integer or an octal string";function A6(e,t,n){if(typeof e>"u"&&(e=n),typeof e=="string"){if(NE(T6,e)===null)throw new Hi(t,e,C6);e=y6(e,8)}return ME(e,t),e}var R6=At((e,t,n=g6,r=m6)=>{if(typeof e!="number")throw new Ze(t,"number",e);if(!Gd(e))throw new zr(t,"an integer",e);if(e<n||e>r)throw new zr(t,`>= ${n} && <= ${r}`,e)}),O6=At((e,t,n=-2147483648,r=2147483647)=>{if(typeof e!="number")throw new Ze(t,"number",e);if(!Gd(e))throw new zr(t,"an integer",e);if(e<n||e>r)throw new zr(t,`>= ${n} && <= ${r}`,e)}),ME=At((e,t,n=!1)=>{if(typeof e!="number")throw new Ze(t,"number",e);if(!Gd(e))throw new zr(t,"an integer",e);let r=n?1:0,i=4294967295;if(e<r||e>i)throw new zr(t,`>= ${r} && <= ${i}`,e)});function Vd(e,t){if(typeof e!="string")throw new Ze(t,"string",e)}function I6(e,t,n=void 0,r){if(typeof e!="number")throw new Ze(t,"number",e);if(n!=null&&e<n||r!=null&&e>r||(n!=null||r!=null)&&d6(e))throw new zr(t,`${n!=null?`>= ${n}`:""}${n!=null&&r!=null?" && ":""}${r!=null?`<= ${r}`:""}`,e)}var L6=At((e,t,n)=>{if(!BE(n,e)){let i="must be one of: "+qE(p6(n,o=>typeof o=="string"?`'${o}'`:D6(o)),", ");throw new Hi(t,e,i)}});function jE(e,t){if(typeof e!="boolean")throw new Ze(t,"boolean",e)}function $d(e,t,n){return e==null||!b6(e,t)?n:e[t]}var P6=At((e,t,n=null)=>{let r=$d(n,"allowArray",!1),i=$d(n,"allowFunction",!1);if(!$d(n,"nullable",!1)&&e===null||!r&&Hd(e)||typeof e!="object"&&(!i||typeof e!="function"))throw new Ze(t,"Object",e)}),B6=At((e,t)=>{if(e!=null&&typeof e!="object"&&typeof e!="function")throw new Ze(t,"a dictionary",e)}),Ul=At((e,t,n=0)=>{if(!Hd(e))throw new Ze(t,"Array",e);if(e.length<n){let r=`must be longer than ${n}`;throw new Hi(t,e,r)}});function q6(e,t){Ul(e,t);for(let n=0;n<e.length;n++)Vd(e[n],`${t}[${n}]`)}function N6(e,t){Ul(e,t);for(let n=0;n<e.length;n++)jE(e[n],`${t}[${n}]`)}function M6(e,t){Ul(e,t);for(let n=0;n<e.length;n++){let r=e[n],i=`${t}[${n}]`;if(r==null)throw new Ze(i,"AbortSignal",r);UE(r,i)}}function j6(e,t="signal"){if(Vd(e,t),LE[e]===void 0)throw LE[w6(e)]!==void 0?new IE(e+" (signals must use all capital letters)"):new IE(e)}var U6=At((e,t="buffer")=>{if(!S6(e))throw new Ze(t,["Buffer","TypedArray","DataView"],e)});function z6(e,t){let n=v6(t),r=e.length;if(n==="hex"&&r%2!==0)throw new Hi("encoding",t,`is invalid for data of length ${r}`)}function W6(e,t="Port",n=!0){if(typeof e!="number"&&typeof e!="string"||typeof e=="string"&&_6(e).length===0||+e!==+e>>>0||e>65535||e===0&&!n)throw new x6(t,e,n);return e|0}var UE=At((e,t)=>{if(e!==void 0&&(e===null||typeof e!="object"||!("aborted"in e)))throw new Ze(t,"AbortSignal",e)}),$6=At((e,t)=>{if(typeof e!="function")throw new Ze(t,"Function",e)}),H6=At((e,t)=>{if(typeof e!="function"||E6(e))throw new Ze(t,"Function",e)}),G6=At((e,t)=>{if(e!==void 0)throw new Ze(t,"undefined",e)});function V6(e,t,n){if(!BE(n,e))throw new Ze(t,`('${qE(n,"|")}')`,e)}var K6=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function PE(e,t){if(typeof e>"u"||!NE(K6,e))throw new Hi(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function Y6(e){if(typeof e=="string")return PE(e,"hints"),e;if(Hd(e)){let t=e.length,n="";if(t===0)return n;for(let r=0;r<t;r++){let i=e[r];PE(i,"hints"),n+=i,r!==t-1&&(n+=", ")}return n}throw new Hi("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}zE.exports={isInt32:F6,isUint32:k6,parseFileMode:A6,validateArray:Ul,validateStringArray:q6,validateBooleanArray:N6,validateAbortSignalArray:M6,validateBoolean:jE,validateBuffer:U6,validateDictionary:B6,validateEncoding:z6,validateFunction:$6,validateInt32:O6,validateInteger:R6,validateNumber:I6,validateObject:P6,validateOneOf:L6,validatePlainFunction:H6,validatePort:W6,validateSignalName:j6,validateString:Vd,validateUint32:ME,validateUndefined:G6,validateUnion:V6,validateAbortSignal:UE,validateLinkHeaderValue:Y6}});var Zn=w((ure,WE)=>{"use strict";WE.exports=global.process});var en=w((lre,iS)=>{"use strict";var{SymbolAsyncIterator:$E,SymbolIterator:HE,SymbolFor:Wr}=we(),GE=Wr("nodejs.stream.destroyed"),VE=Wr("nodejs.stream.errored"),Kd=Wr("nodejs.stream.readable"),Yd=Wr("nodejs.stream.writable"),KE=Wr("nodejs.stream.disturbed"),Q6=Wr("nodejs.webstream.isClosedPromise"),Z6=Wr("nodejs.webstream.controllerErrorFunction");function zl(e,t=!1){var n;return!!(e&&typeof e.pipe=="function"&&typeof e.on=="function"&&(!t||typeof e.pause=="function"&&typeof e.resume=="function")&&(!e._writableState||((n=e._readableState)===null||n===void 0?void 0:n.readable)!==!1)&&(!e._writableState||e._readableState))}function Wl(e){var t;return!!(e&&typeof e.write=="function"&&typeof e.on=="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==!1))}function J6(e){return!!(e&&typeof e.pipe=="function"&&e._readableState&&typeof e.on=="function"&&typeof e.write=="function")}function Xt(e){return e&&(e._readableState||e._writableState||typeof e.write=="function"&&typeof e.on=="function"||typeof e.pipe=="function"&&typeof e.on=="function")}function YE(e){return!!(e&&!Xt(e)&&typeof e.pipeThrough=="function"&&typeof e.getReader=="function"&&typeof e.cancel=="function")}function QE(e){return!!(e&&!Xt(e)&&typeof e.getWriter=="function"&&typeof e.abort=="function")}function ZE(e){return!!(e&&!Xt(e)&&typeof e.readable=="object"&&typeof e.writable=="object")}function X6(e){return YE(e)||QE(e)||ZE(e)}function e4(e,t){return e==null?!1:t===!0?typeof e[$E]=="function":t===!1?typeof e[HE]=="function":typeof e[$E]=="function"||typeof e[HE]=="function"}function $l(e){if(!Xt(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!!(e.destroyed||e[GE]||r!=null&&r.destroyed)}function JE(e){if(!Wl(e))return null;if(e.writableEnded===!0)return!0;let t=e._writableState;return t!=null&&t.errored?!1:typeof t?.ended!="boolean"?null:t.ended}function t4(e,t){if(!Wl(e))return null;if(e.writableFinished===!0)return!0;let n=e._writableState;return n!=null&&n.errored?!1:typeof n?.finished!="boolean"?null:!!(n.finished||t===!1&&n.ended===!0&&n.length===0)}function n4(e){if(!zl(e))return null;if(e.readableEnded===!0)return!0;let t=e._readableState;return!t||t.errored?!1:typeof t?.ended!="boolean"?null:t.ended}function XE(e,t){if(!zl(e))return null;let n=e._readableState;return n!=null&&n.errored?!1:typeof n?.endEmitted!="boolean"?null:!!(n.endEmitted||t===!1&&n.ended===!0&&n.length===0)}function eS(e){return e&&e[Kd]!=null?e[Kd]:typeof e?.readable!="boolean"?null:$l(e)?!1:zl(e)&&e.readable&&!XE(e)}function tS(e){return e&&e[Yd]!=null?e[Yd]:typeof e?.writable!="boolean"?null:$l(e)?!1:Wl(e)&&e.writable&&!JE(e)}function r4(e,t){return Xt(e)?$l(e)?!0:!(t?.readable!==!1&&eS(e)||t?.writable!==!1&&tS(e)):null}function i4(e){var t,n;return Xt(e)?e.writableErrored?e.writableErrored:(t=(n=e._writableState)===null||n===void 0?void 0:n.errored)!==null&&t!==void 0?t:null:null}function o4(e){var t,n;return Xt(e)?e.readableErrored?e.readableErrored:(t=(n=e._readableState)===null||n===void 0?void 0:n.errored)!==null&&t!==void 0?t:null:null}function s4(e){if(!Xt(e))return null;if(typeof e.closed=="boolean")return e.closed;let t=e._writableState,n=e._readableState;return typeof t?.closed=="boolean"||typeof n?.closed=="boolean"?t?.closed||n?.closed:typeof e._closed=="boolean"&&nS(e)?e._closed:null}function nS(e){return typeof e._closed=="boolean"&&typeof e._defaultKeepAlive=="boolean"&&typeof e._removedConnection=="boolean"&&typeof e._removedContLen=="boolean"}function rS(e){return typeof e._sent100=="boolean"&&nS(e)}function a4(e){var t;return typeof e._consuming=="boolean"&&typeof e._dumped=="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function u4(e){if(!Xt(e))return null;let t=e._writableState,n=e._readableState,r=t||n;return!r&&rS(e)||!!(r&&r.autoDestroy&&r.emitClose&&r.closed===!1)}function l4(e){var t;return!!(e&&((t=e[KE])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function c4(e){var t,n,r,i,o,s,a,u,l,c;return!!(e&&((t=(n=(r=(i=(o=(s=e[VE])!==null&&s!==void 0?s:e.readableErrored)!==null&&o!==void 0?o:e.writableErrored)!==null&&i!==void 0?i:(a=e._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&r!==void 0?r:(u=e._writableState)===null||u===void 0?void 0:u.errorEmitted)!==null&&n!==void 0?n:(l=e._readableState)===null||l===void 0?void 0:l.errored)!==null&&t!==void 0?t:!((c=e._writableState)===null||c===void 0)&&c.errored))}iS.exports={isDestroyed:$l,kIsDestroyed:GE,isDisturbed:l4,kIsDisturbed:KE,isErrored:c4,kIsErrored:VE,isReadable:eS,kIsReadable:Kd,kIsClosedPromise:Q6,kControllerErrorFunction:Z6,kIsWritable:Yd,isClosed:s4,isDuplexNodeStream:J6,isFinished:r4,isIterable:e4,isReadableNodeStream:zl,isReadableStream:YE,isReadableEnded:n4,isReadableFinished:XE,isReadableErrored:o4,isNodeStream:Xt,isWebStream:X6,isWritable:tS,isWritableNodeStream:Wl,isWritableStream:QE,isWritableEnded:JE,isWritableFinished:t4,isWritableErrored:i4,isServerRequest:a4,isServerResponse:rS,willEmitClose:u4,isTransformStream:ZE}});var vn=w((cre,em)=>{"use strict";var Jn=Zn(),{AbortError:pS,codes:f4}=Qe(),{ERR_INVALID_ARG_TYPE:h4,ERR_STREAM_PREMATURE_CLOSE:oS}=f4,{kEmptyObject:Zd,once:Jd}=nt(),{validateAbortSignal:p4,validateFunction:d4,validateObject:m4,validateBoolean:g4}=Gi(),{Promise:y4,PromisePrototypeThen:b4,SymbolDispose:dS}=we(),{isClosed:D4,isReadable:sS,isReadableNodeStream:Qd,isReadableStream:w4,isReadableFinished:aS,isReadableErrored:uS,isWritable:lS,isWritableNodeStream:cS,isWritableStream:_4,isWritableFinished:fS,isWritableErrored:hS,isNodeStream:x4,willEmitClose:v4,kIsClosedPromise:E4}=en(),Vi;function S4(e){return e.setHeader&&typeof e.abort=="function"}var Xd=()=>{};function mS(e,t,n){var r,i;if(arguments.length===2?(n=t,t=Zd):t==null?t=Zd:m4(t,"options"),d4(n,"callback"),p4(t.signal,"options.signal"),n=Jd(n),w4(e)||_4(e))return F4(e,t,n);if(!x4(e))throw new h4("stream",["ReadableStream","WritableStream","Stream"],e);let o=(r=t.readable)!==null&&r!==void 0?r:Qd(e),s=(i=t.writable)!==null&&i!==void 0?i:cS(e),a=e._writableState,u=e._readableState,l=()=>{e.writable||h()},c=v4(e)&&Qd(e)===o&&cS(e)===s,f=fS(e,!1),h=()=>{f=!0,e.destroyed&&(c=!1),!(c&&(!e.readable||o))&&(!o||p)&&n.call(e)},p=aS(e,!1),b=()=>{p=!0,e.destroyed&&(c=!1),!(c&&(!e.writable||s))&&(!s||f)&&n.call(e)},D=k=>{n.call(e,k)},F=D4(e),g=()=>{F=!0;let k=hS(e)||uS(e);if(k&&typeof k!="boolean")return n.call(e,k);if(o&&!p&&Qd(e,!0)&&!aS(e,!1))return n.call(e,new oS);if(s&&!f&&!fS(e,!1))return n.call(e,new oS);n.call(e)},m=()=>{F=!0;let k=hS(e)||uS(e);if(k&&typeof k!="boolean")return n.call(e,k);n.call(e)},d=()=>{e.req.on("finish",h)};S4(e)?(e.on("complete",h),c||e.on("abort",g),e.req?d():e.on("request",d)):s&&!a&&(e.on("end",l),e.on("close",l)),!c&&typeof e.aborted=="boolean"&&e.on("aborted",g),e.on("end",b),e.on("finish",h),t.error!==!1&&e.on("error",D),e.on("close",g),F?Jn.nextTick(g):a!=null&&a.errorEmitted||u!=null&&u.errorEmitted?c||Jn.nextTick(m):(!o&&(!c||sS(e))&&(f||lS(e)===!1)||!s&&(!c||lS(e))&&(p||sS(e)===!1)||u&&e.req&&e.aborted)&&Jn.nextTick(m);let y=()=>{n=Xd,e.removeListener("aborted",g),e.removeListener("complete",h),e.removeListener("abort",g),e.removeListener("request",d),e.req&&e.req.removeListener("finish",h),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",h),e.removeListener("end",b),e.removeListener("error",D),e.removeListener("close",g)};if(t.signal&&!F){let k=()=>{let E=n;y(),E.call(e,new pS(void 0,{cause:t.signal.reason}))};if(t.signal.aborted)Jn.nextTick(k);else{Vi=Vi||nt().addAbortListener;let E=Vi(t.signal,k),v=n;n=Jd((...q)=>{E[dS](),v.apply(e,q)})}}return y}function F4(e,t,n){let r=!1,i=Xd;if(t.signal)if(i=()=>{r=!0,n.call(e,new pS(void 0,{cause:t.signal.reason}))},t.signal.aborted)Jn.nextTick(i);else{Vi=Vi||nt().addAbortListener;let s=Vi(t.signal,i),a=n;n=Jd((...u)=>{s[dS](),a.apply(e,u)})}let o=(...s)=>{r||Jn.nextTick(()=>n.apply(e,s))};return b4(e[E4].promise,o,o),Xd}function k4(e,t){var n;let r=!1;return t===null&&(t=Zd),(n=t)!==null&&n!==void 0&&n.cleanup&&(g4(t.cleanup,"cleanup"),r=t.cleanup),new y4((i,o)=>{let s=mS(e,t,a=>{r&&s(),a?o(a):i()})})}em.exports=mS;em.exports.finished=k4});var $r=w((fre,vS)=>{"use strict";var tn=Zn(),{aggregateTwoErrors:T4,codes:{ERR_MULTIPLE_CALLBACK:C4},AbortError:A4}=Qe(),{Symbol:bS}=we(),{kIsDestroyed:R4,isDestroyed:O4,isFinished:I4,isServerRequest:L4}=en(),DS=bS("kDestroy"),tm=bS("kConstruct");function wS(e,t,n){e&&(e.stack,t&&!t.errored&&(t.errored=e),n&&!n.errored&&(n.errored=e))}function P4(e,t){let n=this._readableState,r=this._writableState,i=r||n;return r!=null&&r.destroyed||n!=null&&n.destroyed?(typeof t=="function"&&t(),this):(wS(e,r,n),r&&(r.destroyed=!0),n&&(n.destroyed=!0),i.constructed?gS(this,e,t):this.once(DS,function(o){gS(this,T4(o,e),t)}),this)}function gS(e,t,n){let r=!1;function i(o){if(r)return;r=!0;let s=e._readableState,a=e._writableState;wS(o,a,s),a&&(a.closed=!0),s&&(s.closed=!0),typeof n=="function"&&n(o),o?tn.nextTick(B4,e,o):tn.nextTick(_S,e)}try{e._destroy(t||null,i)}catch(o){i(o)}}function B4(e,t){nm(e,t),_S(e)}function _S(e){let t=e._readableState,n=e._writableState;n&&(n.closeEmitted=!0),t&&(t.closeEmitted=!0),(n!=null&&n.emitClose||t!=null&&t.emitClose)&&e.emit("close")}function nm(e,t){let n=e._readableState,r=e._writableState;r!=null&&r.errorEmitted||n!=null&&n.errorEmitted||(r&&(r.errorEmitted=!0),n&&(n.errorEmitted=!0),e.emit("error",t))}function q4(){let e=this._readableState,t=this._writableState;e&&(e.constructed=!0,e.closed=!1,e.closeEmitted=!1,e.destroyed=!1,e.errored=null,e.errorEmitted=!1,e.reading=!1,e.ended=e.readable===!1,e.endEmitted=e.readable===!1),t&&(t.constructed=!0,t.destroyed=!1,t.closed=!1,t.closeEmitted=!1,t.errored=null,t.errorEmitted=!1,t.finalCalled=!1,t.prefinished=!1,t.ended=t.writable===!1,t.ending=t.writable===!1,t.finished=t.writable===!1)}function rm(e,t,n){let r=e._readableState,i=e._writableState;if(i!=null&&i.destroyed||r!=null&&r.destroyed)return this;r!=null&&r.autoDestroy||i!=null&&i.autoDestroy?e.destroy(t):t&&(t.stack,i&&!i.errored&&(i.errored=t),r&&!r.errored&&(r.errored=t),n?tn.nextTick(nm,e,t):nm(e,t))}function N4(e,t){if(typeof e._construct!="function")return;let n=e._readableState,r=e._writableState;n&&(n.constructed=!1),r&&(r.constructed=!1),e.once(tm,t),!(e.listenerCount(tm)>1)&&tn.nextTick(M4,e)}function M4(e){let t=!1;function n(r){if(t){rm(e,r??new C4);return}t=!0;let i=e._readableState,o=e._writableState,s=o||i;i&&(i.constructed=!0),o&&(o.constructed=!0),s.destroyed?e.emit(DS,r):r?rm(e,r,!0):tn.nextTick(j4,e)}try{e._construct(r=>{tn.nextTick(n,r)})}catch(r){tn.nextTick(n,r)}}function j4(e){e.emit(tm)}function yS(e){return e?.setHeader&&typeof e.abort=="function"}function xS(e){e.emit("close")}function U4(e,t){e.emit("error",t),tn.nextTick(xS,e)}function z4(e,t){!e||O4(e)||(!t&&!I4(e)&&(t=new A4),L4(e)?(e.socket=null,e.destroy(t)):yS(e)?e.abort():yS(e.req)?e.req.abort():typeof e.destroy=="function"?e.destroy(t):typeof e.close=="function"?e.close():t?tn.nextTick(U4,e,t):tn.nextTick(xS,e),e.destroyed||(e[R4]=!0))}vS.exports={construct:N4,destroyer:z4,destroy:P4,undestroy:q4,errorOrDestroy:rm}});var Vl=w((hre,SS)=>{"use strict";var{ArrayIsArray:W4,ObjectSetPrototypeOf:ES}=we(),{EventEmitter:Hl}=N("events");function Gl(e){Hl.call(this,e)}ES(Gl.prototype,Hl.prototype);ES(Gl,Hl);Gl.prototype.pipe=function(e,t){let n=this;function r(c){e.writable&&e.write(c)===!1&&n.pause&&n.pause()}n.on("data",r);function i(){n.readable&&n.resume&&n.resume()}e.on("drain",i),!e._isStdio&&(!t||t.end!==!1)&&(n.on("end",s),n.on("close",a));let o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,typeof e.destroy=="function"&&e.destroy())}function u(c){l(),Hl.listenerCount(this,"error")===0&&this.emit("error",c)}im(n,"error",u),im(e,"error",u);function l(){n.removeListener("data",r),e.removeListener("drain",i),n.removeListener("end",s),n.removeListener("close",a),n.removeListener("error",u),e.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),e.removeListener("close",l)}return n.on("end",l),n.on("close",l),e.on("close",l),e.emit("pipe",n),e};function im(e,t,n){if(typeof e.prependListener=="function")return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):W4(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}SS.exports={Stream:Gl,prependListener:im}});var Is=w((pre,Kl)=>{"use strict";var{SymbolDispose:$4}=we(),{AbortError:FS,codes:H4}=Qe(),{isNodeStream:kS,isWebStream:G4,kControllerErrorFunction:V4}=en(),K4=vn(),{ERR_INVALID_ARG_TYPE:TS}=H4,om,Y4=(e,t)=>{if(typeof e!="object"||!("aborted"in e))throw new TS(t,"AbortSignal",e)};Kl.exports.addAbortSignal=function(t,n){if(Y4(t,"signal"),!kS(n)&&!G4(n))throw new TS("stream",["ReadableStream","WritableStream","Stream"],n);return Kl.exports.addAbortSignalNoValidate(t,n)};Kl.exports.addAbortSignalNoValidate=function(e,t){if(typeof e!="object"||!("aborted"in e))return t;let n=kS(t)?()=>{t.destroy(new FS(void 0,{cause:e.reason}))}:()=>{t[V4](new FS(void 0,{cause:e.reason}))};if(e.aborted)n();else{om=om||nt().addAbortListener;let r=om(e,n);K4(t,r[$4])}return t}});var RS=w((mre,AS)=>{"use strict";var{StringPrototypeSlice:CS,SymbolIterator:Q4,TypedArrayPrototypeSet:Yl,Uint8Array:Z4}=we(),{Buffer:sm}=N("buffer"),{inspect:J4}=nt();AS.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){let n={data:t,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}unshift(t){let n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}shift(){if(this.length===0)return;let t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(this.length===0)return"";let n=this.head,r=""+n.data;for(;(n=n.next)!==null;)r+=t+n.data;return r}concat(t){if(this.length===0)return sm.alloc(0);let n=sm.allocUnsafe(t>>>0),r=this.head,i=0;for(;r;)Yl(n,r.data,i),i+=r.data.length,r=r.next;return n}consume(t,n){let r=this.head.data;if(t<r.length){let i=r.slice(0,t);return this.head.data=r.slice(t),i}return t===r.length?this.shift():n?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[Q4](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let n="",r=this.head,i=0;do{let o=r.data;if(t>o.length)n+=o,t-=o.length;else{t===o.length?(n+=o,++i,r.next?this.head=r.next:this.head=this.tail=null):(n+=CS(o,0,t),this.head=r,r.data=CS(o,t));break}++i}while((r=r.next)!==null);return this.length-=i,n}_getBuffer(t){let n=sm.allocUnsafe(t),r=t,i=this.head,o=0;do{let s=i.data;if(t>s.length)Yl(n,s,r-t),t-=s.length;else{t===s.length?(Yl(n,s,r-t),++o,i.next?this.head=i.next:this.head=this.tail=null):(Yl(n,new Z4(s.buffer,s.byteOffset,t),r-t),this.head=i,i.data=s.slice(t));break}++o}while((i=i.next)!==null);return this.length-=o,n}[Symbol.for("nodejs.util.inspect.custom")](t,n){return J4(this,{...n,depth:0,customInspect:!1})}}});var Ls=w((gre,PS)=>{"use strict";var{MathFloor:X4,NumberIsInteger:e8}=we(),{validateInteger:t8}=Gi(),{ERR_INVALID_ARG_VALUE:n8}=Qe().codes,OS=16*1024,IS=16;function r8(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function LS(e){return e?IS:OS}function i8(e,t){t8(t,"value",0),e?IS=t:OS=t}function o8(e,t,n,r){let i=r8(t,r,n);if(i!=null){if(!e8(i)||i<0){let o=r?`options.${n}`:"options.highWaterMark";throw new n8(o,i)}return X4(i)}return LS(e.objectMode)}PS.exports={getHighWaterMark:o8,getDefaultHighWaterMark:LS,setDefaultHighWaterMark:i8}});var am=w((yre,MS)=>{"use strict";var BS=Zn(),{PromisePrototypeThen:s8,SymbolAsyncIterator:qS,SymbolIterator:NS}=we(),{Buffer:a8}=N("buffer"),{ERR_INVALID_ARG_TYPE:u8,ERR_STREAM_NULL_VALUES:l8}=Qe().codes;function c8(e,t,n){let r;if(typeof t=="string"||t instanceof a8)return new e({objectMode:!0,...n,read(){this.push(t),this.push(null)}});let i;if(t&&t[qS])i=!0,r=t[qS]();else if(t&&t[NS])i=!1,r=t[NS]();else throw new u8("iterable",["Iterable"],t);let o=new e({objectMode:!0,highWaterMark:1,...n}),s=!1;o._read=function(){s||(s=!0,u())},o._destroy=function(l,c){s8(a(l),()=>BS.nextTick(c,l),f=>BS.nextTick(c,f||l))};async function a(l){let c=l!=null,f=typeof r.throw=="function";if(c&&f){let{value:h,done:p}=await r.throw(l);if(await h,p)return}if(typeof r.return=="function"){let{value:h}=await r.return();await h}}async function u(){for(;;){try{let{value:l,done:c}=i?await r.next():r.next();if(c)o.push(null);else{let f=l&&typeof l.then=="function"?await l:l;if(f===null)throw s=!1,new l8;if(o.push(f))continue;s=!1}}catch(l){o.destroy(l)}break}}return o}MS.exports=c8});var Bs=w((bre,r1)=>{"use strict";var Wt=Zn(),{ArrayPrototypeIndexOf:f8,NumberIsInteger:h8,NumberIsNaN:p8,NumberParseInt:d8,ObjectDefineProperties:mm,ObjectKeys:m8,ObjectSetPrototypeOf:zS,Promise:WS,SafeSet:g8,SymbolAsyncDispose:y8,SymbolAsyncIterator:b8,Symbol:D8}=we();r1.exports=Y;Y.ReadableState=Xl;var{EventEmitter:w8}=N("events"),{Stream:Xn,prependListener:_8}=Vl(),{Buffer:um}=N("buffer"),{addAbortSignal:x8}=Is(),$S=vn(),ee=nt().debuglog("stream",e=>{ee=e}),v8=RS(),Qi=$r(),{getHighWaterMark:E8,getDefaultHighWaterMark:S8}=Ls(),{aggregateTwoErrors:jS,codes:{ERR_INVALID_ARG_TYPE:F8,ERR_METHOD_NOT_IMPLEMENTED:k8,ERR_OUT_OF_RANGE:T8,ERR_STREAM_PUSH_AFTER_EOF:C8,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:A8},AbortError:R8}=Qe(),{validateObject:O8}=Gi(),Hr=D8("kPaused"),{StringDecoder:HS}=N("string_decoder"),I8=am();zS(Y.prototype,Xn.prototype);zS(Y,Xn);var lm=()=>{},{errorOrDestroy:Ki}=Qi,Yi=1,L8=2,GS=4,Ps=8,VS=16,Ql=32,Zl=64,KS=128,P8=256,B8=512,q8=1024,pm=2048,dm=4096,N8=8192,M8=16384,j8=32768,YS=65536,U8=1<<17,z8=1<<18;function Oe(e){return{enumerable:!1,get(){return(this.state&e)!==0},set(t){t?this.state|=e:this.state&=~e}}}mm(Xl.prototype,{objectMode:Oe(Yi),ended:Oe(L8),endEmitted:Oe(GS),reading:Oe(Ps),constructed:Oe(VS),sync:Oe(Ql),needReadable:Oe(Zl),emittedReadable:Oe(KS),readableListening:Oe(P8),resumeScheduled:Oe(B8),errorEmitted:Oe(q8),emitClose:Oe(pm),autoDestroy:Oe(dm),destroyed:Oe(N8),closed:Oe(M8),closeEmitted:Oe(j8),multiAwaitDrain:Oe(YS),readingMore:Oe(U8),dataEmitted:Oe(z8)});function Xl(e,t,n){typeof n!="boolean"&&(n=t instanceof nn()),this.state=pm|dm|VS|Ql,e&&e.objectMode&&(this.state|=Yi),n&&e&&e.readableObjectMode&&(this.state|=Yi),this.highWaterMark=e?E8(this,e,"readableHighWaterMark",n):S8(!1),this.buffer=new v8,this.length=0,this.pipes=[],this.flowing=null,this[Hr]=null,e&&e.emitClose===!1&&(this.state&=~pm),e&&e.autoDestroy===!1&&(this.state&=~dm),this.errored=null,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,e&&e.encoding&&(this.decoder=new HS(e.encoding),this.encoding=e.encoding)}function Y(e){if(!(this instanceof Y))return new Y(e);let t=this instanceof nn();this._readableState=new Xl(e,this,t),e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.construct=="function"&&(this._construct=e.construct),e.signal&&!t&&x8(e.signal,this)),Xn.call(this,e),Qi.construct(this,()=>{this._readableState.needReadable&&Jl(this,this._readableState)})}Y.prototype.destroy=Qi.destroy;Y.prototype._undestroy=Qi.undestroy;Y.prototype._destroy=function(e,t){t(e)};Y.prototype[w8.captureRejectionSymbol]=function(e){this.destroy(e)};Y.prototype[y8]=function(){let e;return this.destroyed||(e=this.readableEnded?null:new R8,this.destroy(e)),new WS((t,n)=>$S(this,r=>r&&r!==e?n(r):t(null)))};Y.prototype.push=function(e,t){return QS(this,e,t,!1)};Y.prototype.unshift=function(e,t){return QS(this,e,t,!0)};function QS(e,t,n,r){ee("readableAddChunk",t);let i=e._readableState,o;if((i.state&Yi)===0&&(typeof t=="string"?(n=n||i.defaultEncoding,i.encoding!==n&&(r&&i.encoding?t=um.from(t,n).toString(i.encoding):(t=um.from(t,n),n=""))):t instanceof um?n="":Xn._isUint8Array(t)?(t=Xn._uint8ArrayToBuffer(t),n=""):t!=null&&(o=new F8("chunk",["string","Buffer","Uint8Array"],t))),o)Ki(e,o);else if(t===null)i.state&=~Ps,H8(e,i);else if((i.state&Yi)!==0||t&&t.length>0)if(r)if((i.state&GS)!==0)Ki(e,new A8);else{if(i.destroyed||i.errored)return!1;cm(e,i,t,!0)}else if(i.ended)Ki(e,new C8);else{if(i.destroyed||i.errored)return!1;i.state&=~Ps,i.decoder&&!n?(t=i.decoder.write(t),i.objectMode||t.length!==0?cm(e,i,t,!1):Jl(e,i)):cm(e,i,t,!1)}else r||(i.state&=~Ps,Jl(e,i));return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function cm(e,t,n,r){t.flowing&&t.length===0&&!t.sync&&e.listenerCount("data")>0?((t.state&YS)!==0?t.awaitDrainWriters.clear():t.awaitDrainWriters=null,t.dataEmitted=!0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),(t.state&Zl)!==0&&ec(e)),Jl(e,t)}Y.prototype.isPaused=function(){let e=this._readableState;return e[Hr]===!0||e.flowing===!1};Y.prototype.setEncoding=function(e){let t=new HS(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,r="";for(let i of n)r+=t.write(i);return n.clear(),r!==""&&n.push(r),this._readableState.length=r.length,this};var W8=1073741824;function $8(e){if(e>W8)throw new T8("size","<= 1GiB",e);return e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++,e}function US(e,t){return e<=0||t.length===0&&t.ended?0:(t.state&Yi)!==0?1:p8(e)?t.flowing&&t.length?t.buffer.first().length:t.length:e<=t.length?e:t.ended?t.length:0}Y.prototype.read=function(e){ee("read",e),e===void 0?e=NaN:h8(e)||(e=d8(e,10));let t=this._readableState,n=e;if(e>t.highWaterMark&&(t.highWaterMark=$8(e)),e!==0&&(t.state&=~KS),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return ee("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?fm(this):ec(this),null;if(e=US(e,t),e===0&&t.ended)return t.length===0&&fm(this),null;let r=(t.state&Zl)!==0;if(ee("need readable",r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,ee("length less than watermark",r)),t.ended||t.reading||t.destroyed||t.errored||!t.constructed)r=!1,ee("reading, ended or constructing",r);else if(r){ee("do read"),t.state|=Ps|Ql,t.length===0&&(t.state|=Zl);try{this._read(t.highWaterMark)}catch(o){Ki(this,o)}t.state&=~Ql,t.reading||(e=US(n,t))}let i;return e>0?i=t1(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.multiAwaitDrain?t.awaitDrainWriters.clear():t.awaitDrainWriters=null),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&fm(this)),i!==null&&!t.errorEmitted&&!t.closeEmitted&&(t.dataEmitted=!0,this.emit("data",i)),i};function H8(e,t){if(ee("onEofChunk"),!t.ended){if(t.decoder){let n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?ec(e):(t.needReadable=!1,t.emittedReadable=!0,ZS(e))}}function ec(e){let t=e._readableState;ee("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(ee("emitReadable",t.flowing),t.emittedReadable=!0,Wt.nextTick(ZS,e))}function ZS(e){let t=e._readableState;ee("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&!t.errored&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,XS(e)}function Jl(e,t){!t.readingMore&&t.constructed&&(t.readingMore=!0,Wt.nextTick(G8,e,t))}function G8(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){let n=t.length;if(ee("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}Y.prototype._read=function(e){throw new k8("_read()")};Y.prototype.pipe=function(e,t){let n=this,r=this._readableState;r.pipes.length===1&&(r.multiAwaitDrain||(r.multiAwaitDrain=!0,r.awaitDrainWriters=new g8(r.awaitDrainWriters?[r.awaitDrainWriters]:[]))),r.pipes.push(e),ee("pipe count=%d opts=%j",r.pipes.length,t);let o=(!t||t.end!==!1)&&e!==Wt.stdout&&e!==Wt.stderr?a:F;r.endEmitted?Wt.nextTick(o):n.once("end",o),e.on("unpipe",s);function s(g,m){ee("onunpipe"),g===n&&m&&m.hasUnpiped===!1&&(m.hasUnpiped=!0,c())}function a(){ee("onend"),e.end()}let u,l=!1;function c(){ee("cleanup"),e.removeListener("close",b),e.removeListener("finish",D),u&&e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",a),n.removeListener("end",F),n.removeListener("data",h),l=!0,u&&r.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain)&&u()}function f(){l||(r.pipes.length===1&&r.pipes[0]===e?(ee("false write response, pause",0),r.awaitDrainWriters=e,r.multiAwaitDrain=!1):r.pipes.length>1&&r.pipes.includes(e)&&(ee("false write response, pause",r.awaitDrainWriters.size),r.awaitDrainWriters.add(e)),n.pause()),u||(u=V8(n,e),e.on("drain",u))}n.on("data",h);function h(g){ee("ondata");let m=e.write(g);ee("dest.write",m),m===!1&&f()}function p(g){if(ee("onerror",g),F(),e.removeListener("error",p),e.listenerCount("error")===0){let m=e._writableState||e._readableState;m&&!m.errorEmitted?Ki(e,g):e.emit("error",g)}}_8(e,"error",p);function b(){e.removeListener("finish",D),F()}e.once("close",b);function D(){ee("onfinish"),e.removeListener("close",b),F()}e.once("finish",D);function F(){ee("unpipe"),n.unpipe(e)}return e.emit("pipe",n),e.writableNeedDrain===!0?f():r.flowing||(ee("pipe resume"),n.resume()),e};function V8(e,t){return function(){let r=e._readableState;r.awaitDrainWriters===t?(ee("pipeOnDrain",1),r.awaitDrainWriters=null):r.multiAwaitDrain&&(ee("pipeOnDrain",r.awaitDrainWriters.size),r.awaitDrainWriters.delete(t)),(!r.awaitDrainWriters||r.awaitDrainWriters.size===0)&&e.listenerCount("data")&&e.resume()}}Y.prototype.unpipe=function(e){let t=this._readableState,n={hasUnpiped:!1};if(t.pipes.length===0)return this;if(!e){let i=t.pipes;t.pipes=[],this.pause();for(let o=0;o<i.length;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}let r=f8(t.pipes,e);return r===-1?this:(t.pipes.splice(r,1),t.pipes.length===0&&this.pause(),e.emit("unpipe",this,n),this)};Y.prototype.on=function(e,t){let n=Xn.prototype.on.call(this,e,t),r=this._readableState;return e==="data"?(r.readableListening=this.listenerCount("readable")>0,r.flowing!==!1&&this.resume()):e==="readable"&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,ee("on readable",r.length,r.reading),r.length?ec(this):r.reading||Wt.nextTick(K8,this)),n};Y.prototype.addListener=Y.prototype.on;Y.prototype.removeListener=function(e,t){let n=Xn.prototype.removeListener.call(this,e,t);return e==="readable"&&Wt.nextTick(JS,this),n};Y.prototype.off=Y.prototype.removeListener;Y.prototype.removeAllListeners=function(e){let t=Xn.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&Wt.nextTick(JS,this),t};function JS(e){let t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&t[Hr]===!1?t.flowing=!0:e.listenerCount("data")>0?e.resume():t.readableListening||(t.flowing=null)}function K8(e){ee("readable nexttick read 0"),e.read(0)}Y.prototype.resume=function(){let e=this._readableState;return e.flowing||(ee("resume"),e.flowing=!e.readableListening,Y8(this,e)),e[Hr]=!1,this};function Y8(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Wt.nextTick(Q8,e,t))}function Q8(e,t){ee("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),XS(e),t.flowing&&!t.reading&&e.read(0)}Y.prototype.pause=function(){return ee("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ee("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[Hr]=!0,this};function XS(e){let t=e._readableState;for(ee("flow",t.flowing);t.flowing&&e.read()!==null;);}Y.prototype.wrap=function(e){let t=!1;e.on("data",r=>{!this.push(r)&&e.pause&&(t=!0,e.pause())}),e.on("end",()=>{this.push(null)}),e.on("error",r=>{Ki(this,r)}),e.on("close",()=>{this.destroy()}),e.on("destroy",()=>{this.destroy()}),this._read=()=>{t&&e.resume&&(t=!1,e.resume())};let n=m8(e);for(let r=1;r<n.length;r++){let i=n[r];this[i]===void 0&&typeof e[i]=="function"&&(this[i]=e[i].bind(e))}return this};Y.prototype[b8]=function(){return e1(this)};Y.prototype.iterator=function(e){return e!==void 0&&O8(e,"options"),e1(this,e)};function e1(e,t){typeof e.read!="function"&&(e=Y.wrap(e,{objectMode:!0}));let n=Z8(e,t);return n.stream=e,n}async function*Z8(e,t){let n=lm;function r(s){this===e?(n(),n=lm):n=s}e.on("readable",r);let i,o=$S(e,{writable:!1},s=>{i=s?jS(i,s):null,n(),n=lm});try{for(;;){let s=e.destroyed?null:e.read();if(s!==null)yield s;else{if(i)throw i;if(i===null)return;await new WS(r)}}}catch(s){throw i=jS(i,s),i}finally{(i||t?.destroyOnReturn!==!1)&&(i===void 0||e._readableState.autoDestroy)?Qi.destroyer(e,null):(e.off("readable",r),o())}}mm(Y.prototype,{readable:{__proto__:null,get(){let e=this._readableState;return!!e&&e.readable!==!1&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){this._readableState&&(this._readableState.readable=!!e)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(e){this._readableState&&(this._readableState.destroyed=e)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}});mm(Xl.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Hr]!==!1},set(e){this[Hr]=!!e}}});Y._fromList=t1;function t1(e,t){if(t.length===0)return null;let n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(t.decoder?n=t.buffer.join(""):t.buffer.length===1?n=t.buffer.first():n=t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function fm(e){let t=e._readableState;ee("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,Wt.nextTick(J8,t,e))}function J8(e,t){if(ee("endReadableNT",e.endEmitted,e.length),!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){if(e.endEmitted=!0,t.emit("end"),t.writable&&t.allowHalfOpen===!1)Wt.nextTick(X8,t);else if(e.autoDestroy){let n=t._writableState;(!n||n.autoDestroy&&(n.finished||n.writable===!1))&&t.destroy()}}}function X8(e){e.writable&&!e.writableEnded&&!e.destroyed&&e.end()}Y.from=function(e,t){return I8(Y,e,t)};var hm;function n1(){return hm===void 0&&(hm={}),hm}Y.fromWeb=function(e,t){return n1().newStreamReadableFromReadableStream(e,t)};Y.toWeb=function(e,t){return n1().newReadableStreamFromStreamReadable(e,t)};Y.wrap=function(e,t){var n,r;return new Y({objectMode:(n=(r=e.readableObjectMode)!==null&&r!==void 0?r:e.objectMode)!==null&&n!==void 0?n:!0,...t,destroy(i,o){Qi.destroyer(e,i),o(i)}}).wrap(e)}});var oc=w((Dre,m1)=>{"use strict";var Gr=Zn(),{ArrayPrototypeSlice:s1,Error:ej,FunctionPrototypeSymbolHasInstance:a1,ObjectDefineProperty:u1,ObjectDefineProperties:tj,ObjectSetPrototypeOf:l1,StringPrototypeToLowerCase:nj,Symbol:rj,SymbolHasInstance:ij}=we();m1.exports=xe;xe.WritableState=Ms;var{EventEmitter:oj}=N("events"),qs=Vl().Stream,{Buffer:tc}=N("buffer"),ic=$r(),{addAbortSignal:sj}=Is(),{getHighWaterMark:aj,getDefaultHighWaterMark:uj}=Ls(),{ERR_INVALID_ARG_TYPE:lj,ERR_METHOD_NOT_IMPLEMENTED:cj,ERR_MULTIPLE_CALLBACK:c1,ERR_STREAM_CANNOT_PIPE:fj,ERR_STREAM_DESTROYED:Ns,ERR_STREAM_ALREADY_FINISHED:hj,ERR_STREAM_NULL_VALUES:pj,ERR_STREAM_WRITE_AFTER_END:dj,ERR_UNKNOWN_ENCODING:f1}=Qe().codes,{errorOrDestroy:Zi}=ic;l1(xe.prototype,qs.prototype);l1(xe,qs);function bm(){}var Ji=rj("kOnFinished");function Ms(e,t,n){typeof n!="boolean"&&(n=t instanceof nn()),this.objectMode=!!(e&&e.objectMode),n&&(this.objectMode=this.objectMode||!!(e&&e.writableObjectMode)),this.highWaterMark=e?aj(this,e,"writableHighWaterMark",n):uj(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(e&&e.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=e&&e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=gj.bind(void 0,t),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,rc(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!e||e.emitClose!==!1,this.autoDestroy=!e||e.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[Ji]=[]}function rc(e){e.buffered=[],e.bufferedIndex=0,e.allBuffers=!0,e.allNoop=!0}Ms.prototype.getBuffer=function(){return s1(this.buffered,this.bufferedIndex)};u1(Ms.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function xe(e){let t=this instanceof nn();if(!t&&!a1(xe,this))return new xe(e);this._writableState=new Ms(e,this,t),e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final),typeof e.construct=="function"&&(this._construct=e.construct),e.signal&&sj(e.signal,this)),qs.call(this,e),ic.construct(this,()=>{let n=this._writableState;n.writing||wm(this,n),_m(this,n)})}u1(xe,ij,{__proto__:null,value:function(e){return a1(this,e)?!0:this!==xe?!1:e&&e._writableState instanceof Ms}});xe.prototype.pipe=function(){Zi(this,new fj)};function h1(e,t,n,r){let i=e._writableState;if(typeof n=="function")r=n,n=i.defaultEncoding;else{if(!n)n=i.defaultEncoding;else if(n!=="buffer"&&!tc.isEncoding(n))throw new f1(n);typeof r!="function"&&(r=bm)}if(t===null)throw new pj;if(!i.objectMode)if(typeof t=="string")i.decodeStrings!==!1&&(t=tc.from(t,n),n="buffer");else if(t instanceof tc)n="buffer";else if(qs._isUint8Array(t))t=qs._uint8ArrayToBuffer(t),n="buffer";else throw new lj("chunk",["string","Buffer","Uint8Array"],t);let o;return i.ending?o=new dj:i.destroyed&&(o=new Ns("write")),o?(Gr.nextTick(r,o),Zi(e,o,!0),o):(i.pendingcb++,mj(e,i,t,n,r))}xe.prototype.write=function(e,t,n){return h1(this,e,t,n)===!0};xe.prototype.cork=function(){this._writableState.corked++};xe.prototype.uncork=function(){let e=this._writableState;e.corked&&(e.corked--,e.writing||wm(this,e))};xe.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=nj(t)),!tc.isEncoding(t))throw new f1(t);return this._writableState.defaultEncoding=t,this};function mj(e,t,n,r,i){let o=t.objectMode?1:n.length;t.length+=o;let s=t.length<t.highWaterMark;return s||(t.needDrain=!0),t.writing||t.corked||t.errored||!t.constructed?(t.buffered.push({chunk:n,encoding:r,callback:i}),t.allBuffers&&r!=="buffer"&&(t.allBuffers=!1),t.allNoop&&i!==bm&&(t.allNoop=!1)):(t.writelen=o,t.writecb=i,t.writing=!0,t.sync=!0,e._write(n,r,t.onwrite),t.sync=!1),s&&!t.errored&&!t.destroyed}function i1(e,t,n,r,i,o,s){t.writelen=r,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Ns("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function o1(e,t,n,r){--t.pendingcb,r(n),Dm(t),Zi(e,n)}function gj(e,t){let n=e._writableState,r=n.sync,i=n.writecb;if(typeof i!="function"){Zi(e,new c1);return}n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t?(t.stack,n.errored||(n.errored=t),e._readableState&&!e._readableState.errored&&(e._readableState.errored=t),r?Gr.nextTick(o1,e,n,t,i):o1(e,n,t,i)):(n.buffered.length>n.bufferedIndex&&wm(e,n),r?n.afterWriteTickInfo!==null&&n.afterWriteTickInfo.cb===i?n.afterWriteTickInfo.count++:(n.afterWriteTickInfo={count:1,cb:i,stream:e,state:n},Gr.nextTick(yj,n.afterWriteTickInfo)):p1(e,n,1,i))}function yj({stream:e,state:t,count:n,cb:r}){return t.afterWriteTickInfo=null,p1(e,t,n,r)}function p1(e,t,n,r){for(!t.ending&&!e.destroyed&&t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"));n-- >0;)t.pendingcb--,r();t.destroyed&&Dm(t),_m(e,t)}function Dm(e){if(e.writing)return;for(let i=e.bufferedIndex;i<e.buffered.length;++i){var t;let{chunk:o,callback:s}=e.buffered[i],a=e.objectMode?1:o.length;e.length-=a,s((t=e.errored)!==null&&t!==void 0?t:new Ns("write"))}let n=e[Ji].splice(0);for(let i=0;i<n.length;i++){var r;n[i]((r=e.errored)!==null&&r!==void 0?r:new Ns("end"))}rc(e)}function wm(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed)return;let{buffered:n,bufferedIndex:r,objectMode:i}=t,o=n.length-r;if(!o)return;let s=r;if(t.bufferProcessing=!0,o>1&&e._writev){t.pendingcb-=o-1;let a=t.allNoop?bm:l=>{for(let c=s;c<n.length;++c)n[c].callback(l)},u=t.allNoop&&s===0?n:s1(n,s);u.allBuffers=t.allBuffers,i1(e,t,!0,t.length,u,"",a),rc(t)}else{do{let{chunk:a,encoding:u,callback:l}=n[s];n[s++]=null;let c=i?1:a.length;i1(e,t,!1,c,a,u,l)}while(s<n.length&&!t.writing);s===n.length?rc(t):s>256?(n.splice(0,s),t.bufferedIndex=0):t.bufferedIndex=s}t.bufferProcessing=!1}xe.prototype._write=function(e,t,n){if(this._writev)this._writev([{chunk:e,encoding:t}],n);else throw new cj("_write()")};xe.prototype._writev=null;xe.prototype.end=function(e,t,n){let r=this._writableState;typeof e=="function"?(n=e,e=null,t=null):typeof t=="function"&&(n=t,t=null);let i;if(e!=null){let o=h1(this,e,t);o instanceof ej&&(i=o)}return r.corked&&(r.corked=1,this.uncork()),i||(!r.errored&&!r.ending?(r.ending=!0,_m(this,r,!0),r.ended=!0):r.finished?i=new hj("end"):r.destroyed&&(i=new Ns("end"))),typeof n=="function"&&(i||r.finished?Gr.nextTick(n,i):r[Ji].push(n)),this};function nc(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function bj(e,t){let n=!1;function r(i){if(n){Zi(e,i??c1());return}if(n=!0,t.pendingcb--,i){let o=t[Ji].splice(0);for(let s=0;s<o.length;s++)o[s](i);Zi(e,i,t.sync)}else nc(t)&&(t.prefinished=!0,e.emit("prefinish"),t.pendingcb++,Gr.nextTick(ym,e,t))}t.sync=!0,t.pendingcb++;try{e._final(r)}catch(i){r(i)}t.sync=!1}function Dj(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.finalCalled=!0,bj(e,t)):(t.prefinished=!0,e.emit("prefinish")))}function _m(e,t,n){nc(t)&&(Dj(e,t),t.pendingcb===0&&(n?(t.pendingcb++,Gr.nextTick((r,i)=>{nc(i)?ym(r,i):i.pendingcb--},e,t)):nc(t)&&(t.pendingcb++,ym(e,t))))}function ym(e,t){t.pendingcb--,t.finished=!0;let n=t[Ji].splice(0);for(let r=0;r<n.length;r++)n[r]();if(e.emit("finish"),t.autoDestroy){let r=e._readableState;(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))&&e.destroy()}}tj(xe.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(e){this._writableState&&(this._writableState.destroyed=e)}},writable:{__proto__:null,get(){let e=this._writableState;return!!e&&e.writable!==!1&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){this._writableState&&(this._writableState.writable=!!e)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let e=this._writableState;return e?!e.destroyed&&!e.ending&&e.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var wj=ic.destroy;xe.prototype.destroy=function(e,t){let n=this._writableState;return!n.destroyed&&(n.bufferedIndex<n.buffered.length||n[Ji].length)&&Gr.nextTick(Dm,n),wj.call(this,e,t),this};xe.prototype._undestroy=ic.undestroy;xe.prototype._destroy=function(e,t){t(e)};xe.prototype[oj.captureRejectionSymbol]=function(e){this.destroy(e)};var gm;function d1(){return gm===void 0&&(gm={}),gm}xe.fromWeb=function(e,t){return d1().newStreamWritableFromWritableStream(e,t)};xe.toWeb=function(e){return d1().newWritableStreamFromStreamWritable(e)}});var A1=w((wre,C1)=>{"use strict";var xm=Zn(),_j=N("buffer"),{isReadable:xj,isWritable:vj,isIterable:g1,isNodeStream:Ej,isReadableNodeStream:y1,isWritableNodeStream:b1,isDuplexNodeStream:Sj,isReadableStream:D1,isWritableStream:w1}=en(),_1=vn(),{AbortError:k1,codes:{ERR_INVALID_ARG_TYPE:Fj,ERR_INVALID_RETURN_VALUE:x1}}=Qe(),{destroyer:eo}=$r(),kj=nn(),T1=Bs(),Tj=oc(),{createDeferredPromise:v1}=nt(),E1=am(),S1=globalThis.Blob||_j.Blob,Cj=typeof S1<"u"?function(t){return t instanceof S1}:function(t){return!1},Aj=globalThis.AbortController||$i().AbortController,{FunctionPrototypeCall:F1}=we(),er=class extends kj{constructor(t){super(t),t?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),t?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};C1.exports=function e(t,n){if(Sj(t))return t;if(y1(t))return Xi({readable:t});if(b1(t))return Xi({writable:t});if(Ej(t))return Xi({writable:!1,readable:!1});if(D1(t))return Xi({readable:T1.fromWeb(t)});if(w1(t))return Xi({writable:Tj.fromWeb(t)});if(typeof t=="function"){let{value:i,write:o,final:s,destroy:a}=Rj(t);if(g1(i))return E1(er,i,{objectMode:!0,write:o,final:s,destroy:a});let u=i?.then;if(typeof u=="function"){let l,c=F1(u,i,f=>{if(f!=null)throw new x1("nully","body",f)},f=>{eo(l,f)});return l=new er({objectMode:!0,readable:!1,write:o,final(f){s(async()=>{try{await c,xm.nextTick(f,null)}catch(h){xm.nextTick(f,h)}})},destroy:a})}throw new x1("Iterable, AsyncIterable or AsyncFunction",n,i)}if(Cj(t))return e(t.arrayBuffer());if(g1(t))return E1(er,t,{objectMode:!0,writable:!1});if(D1(t?.readable)&&w1(t?.writable))return er.fromWeb(t);if(typeof t?.writable=="object"||typeof t?.readable=="object"){let i=t!=null&&t.readable?y1(t?.readable)?t?.readable:e(t.readable):void 0,o=t!=null&&t.writable?b1(t?.writable)?t?.writable:e(t.writable):void 0;return Xi({readable:i,writable:o})}let r=t?.then;if(typeof r=="function"){let i;return F1(r,t,o=>{o!=null&&i.push(o),i.push(null)},o=>{eo(i,o)}),i=new er({objectMode:!0,writable:!1,read(){}})}throw new Fj(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)};function Rj(e){let{promise:t,resolve:n}=v1(),r=new Aj,i=r.signal;return{value:e((async function*(){for(;;){let s=t;t=null;let{chunk:a,done:u,cb:l}=await s;if(xm.nextTick(l),u)return;if(i.aborted)throw new k1(void 0,{cause:i.reason});({promise:t,resolve:n}=v1()),yield a}})(),{signal:i}),write(s,a,u){let l=n;n=null,l({chunk:s,done:!1,cb:u})},final(s){let a=n;n=null,a({done:!0,cb:s})},destroy(s,a){r.abort(),a(s)}}}function Xi(e){let t=e.readable&&typeof e.readable.read!="function"?T1.wrap(e.readable):e.readable,n=e.writable,r=!!xj(t),i=!!vj(n),o,s,a,u,l;function c(f){let h=u;u=null,h?h(f):f&&l.destroy(f)}return l=new er({readableObjectMode:!!(t!=null&&t.readableObjectMode),writableObjectMode:!!(n!=null&&n.writableObjectMode),readable:r,writable:i}),i&&(_1(n,f=>{i=!1,f&&eo(t,f),c(f)}),l._write=function(f,h,p){n.write(f,h)?p():o=p},l._final=function(f){n.end(),s=f},n.on("drain",function(){if(o){let f=o;o=null,f()}}),n.on("finish",function(){if(s){let f=s;s=null,f()}})),r&&(_1(t,f=>{r=!1,f&&eo(t,f),c(f)}),t.on("readable",function(){if(a){let f=a;a=null,f()}}),t.on("end",function(){l.push(null)}),l._read=function(){for(;;){let f=t.read();if(f===null){a=l._read;return}if(!l.push(f))return}}),l._destroy=function(f,h){!f&&u!==null&&(f=new k1),a=null,o=null,s=null,u===null?h(f):(u=h,eo(n,f),eo(t,f))},l}});var nn=w((_re,I1)=>{"use strict";var{ObjectDefineProperties:Oj,ObjectGetOwnPropertyDescriptor:En,ObjectKeys:Ij,ObjectSetPrototypeOf:R1}=we();I1.exports=$t;var Sm=Bs(),Rt=oc();R1($t.prototype,Sm.prototype);R1($t,Sm);{let e=Ij(Rt.prototype);for(let t=0;t<e.length;t++){let n=e[t];$t.prototype[n]||($t.prototype[n]=Rt.prototype[n])}}function $t(e){if(!(this instanceof $t))return new $t(e);Sm.call(this,e),Rt.call(this,e),e?(this.allowHalfOpen=e.allowHalfOpen!==!1,e.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),e.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}Oj($t.prototype,{writable:{__proto__:null,...En(Rt.prototype,"writable")},writableHighWaterMark:{__proto__:null,...En(Rt.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...En(Rt.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...En(Rt.prototype,"writableBuffer")},writableLength:{__proto__:null,...En(Rt.prototype,"writableLength")},writableFinished:{__proto__:null,...En(Rt.prototype,"writableFinished")},writableCorked:{__proto__:null,...En(Rt.prototype,"writableCorked")},writableEnded:{__proto__:null,...En(Rt.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...En(Rt.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(e){this._readableState&&this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}});var vm;function O1(){return vm===void 0&&(vm={}),vm}$t.fromWeb=function(e,t){return O1().newStreamDuplexFromReadableWritablePair(e,t)};$t.toWeb=function(e){return O1().newReadableWritablePairFromDuplex(e)};var Em;$t.from=function(e){return Em||(Em=A1()),Em(e,"body")}});var Tm=w((xre,P1)=>{"use strict";var{ObjectSetPrototypeOf:L1,Symbol:Lj}=we();P1.exports=Sn;var{ERR_METHOD_NOT_IMPLEMENTED:Pj}=Qe().codes,km=nn(),{getHighWaterMark:Bj}=Ls();L1(Sn.prototype,km.prototype);L1(Sn,km);var js=Lj("kCallback");function Sn(e){if(!(this instanceof Sn))return new Sn(e);let t=e?Bj(this,e,"readableHighWaterMark",!0):null;t===0&&(e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}),km.call(this,e),this._readableState.sync=!1,this[js]=null,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",qj)}function Fm(e){typeof this._flush=="function"&&!this.destroyed?this._flush((t,n)=>{if(t){e?e(t):this.destroy(t);return}n!=null&&this.push(n),this.push(null),e&&e()}):(this.push(null),e&&e())}function qj(){this._final!==Fm&&Fm.call(this)}Sn.prototype._final=Fm;Sn.prototype._transform=function(e,t,n){throw new Pj("_transform()")};Sn.prototype._write=function(e,t,n){let r=this._readableState,i=this._writableState,o=r.length;this._transform(e,t,(s,a)=>{if(s){n(s);return}a!=null&&this.push(a),i.ended||o===r.length||r.length<r.highWaterMark?n():this[js]=n})};Sn.prototype._read=function(){if(this[js]){let e=this[js];this[js]=null,e()}}});var Am=w((vre,q1)=>{"use strict";var{ObjectSetPrototypeOf:B1}=we();q1.exports=to;var Cm=Tm();B1(to.prototype,Cm.prototype);B1(to,Cm);function to(e){if(!(this instanceof to))return new to(e);Cm.call(this,e)}to.prototype._transform=function(e,t,n){n(null,e)}});var lc=w((Ere,z1)=>{"use strict";var Us=Zn(),{ArrayIsArray:Nj,Promise:Mj,SymbolAsyncIterator:jj,SymbolDispose:Uj}=we(),uc=vn(),{once:zj}=nt(),Wj=$r(),N1=nn(),{aggregateTwoErrors:$j,codes:{ERR_INVALID_ARG_TYPE:Mm,ERR_INVALID_RETURN_VALUE:Rm,ERR_MISSING_ARGS:Hj,ERR_STREAM_DESTROYED:Gj,ERR_STREAM_PREMATURE_CLOSE:Vj},AbortError:Kj}=Qe(),{validateFunction:Yj,validateAbortSignal:Qj}=Gi(),{isIterable:Vr,isReadable:Om,isReadableNodeStream:ac,isNodeStream:M1,isTransformStream:no,isWebStream:Zj,isReadableStream:Im,isReadableFinished:Jj}=en(),Xj=globalThis.AbortController||$i().AbortController,Lm,Pm,Bm;function j1(e,t,n){let r=!1;e.on("close",()=>{r=!0});let i=uc(e,{readable:t,writable:n},o=>{r=!o});return{destroy:o=>{r||(r=!0,Wj.destroyer(e,o||new Gj("pipe")))},cleanup:i}}function e5(e){return Yj(e[e.length-1],"streams[stream.length - 1]"),e.pop()}function qm(e){if(Vr(e))return e;if(ac(e))return t5(e);throw new Mm("val",["Readable","Iterable","AsyncIterable"],e)}async function*t5(e){Pm||(Pm=Bs()),yield*Pm.prototype[jj].call(e)}async function sc(e,t,n,{end:r}){let i,o=null,s=l=>{if(l&&(i=l),o){let c=o;o=null,c()}},a=()=>new Mj((l,c)=>{i?c(i):o=()=>{i?c(i):l()}});t.on("drain",s);let u=uc(t,{readable:!1},s);try{t.writableNeedDrain&&await a();for await(let l of e)t.write(l)||await a();r&&(t.end(),await a()),n()}catch(l){n(i!==l?$j(i,l):l)}finally{u(),t.off("drain",s)}}async function Nm(e,t,n,{end:r}){no(t)&&(t=t.writable);let i=t.getWriter();try{for await(let o of e)await i.ready,i.write(o).catch(()=>{});await i.ready,r&&await i.close(),n()}catch(o){try{await i.abort(o),n(o)}catch(s){n(s)}}}function n5(...e){return U1(e,zj(e5(e)))}function U1(e,t,n){if(e.length===1&&Nj(e[0])&&(e=e[0]),e.length<2)throw new Hj("streams");let r=new Xj,i=r.signal,o=n?.signal,s=[];Qj(o,"options.signal");function a(){b(new Kj)}Bm=Bm||nt().addAbortListener;let u;o&&(u=Bm(o,a));let l,c,f=[],h=0;function p(d){b(d,--h===0)}function b(d,y){var k;if(d&&(!l||l.code==="ERR_STREAM_PREMATURE_CLOSE")&&(l=d),!(!l&&!y)){for(;f.length;)f.shift()(l);(k=u)===null||k===void 0||k[Uj](),r.abort(),y&&(l||s.forEach(E=>E()),Us.nextTick(t,l,c))}}let D;for(let d=0;d<e.length;d++){let y=e[d],k=d<e.length-1,E=d>0,v=k||n?.end!==!1,q=d===e.length-1;if(M1(y)){let T=function(A){A&&A.name!=="AbortError"&&A.code!=="ERR_STREAM_PREMATURE_CLOSE"&&p(A)};var m=T;if(v){let{destroy:A,cleanup:I}=j1(y,k,E);f.push(A),Om(y)&&q&&s.push(I)}y.on("error",T),Om(y)&&q&&s.push(()=>{y.removeListener("error",T)})}if(d===0)if(typeof y=="function"){if(D=y({signal:i}),!Vr(D))throw new Rm("Iterable, AsyncIterable or Stream","source",D)}else Vr(y)||ac(y)||no(y)?D=y:D=N1.from(y);else if(typeof y=="function"){if(no(D)){var F;D=qm((F=D)===null||F===void 0?void 0:F.readable)}else D=qm(D);if(D=y(D,{signal:i}),k){if(!Vr(D,!0))throw new Rm("AsyncIterable",`transform[${d-1}]`,D)}else{var g;Lm||(Lm=Am());let T=new Lm({objectMode:!0}),A=(g=D)===null||g===void 0?void 0:g.then;if(typeof A=="function")h++,A.call(D,O=>{c=O,O!=null&&T.write(O),v&&T.end(),Us.nextTick(p)},O=>{T.destroy(O),Us.nextTick(p,O)});else if(Vr(D,!0))h++,sc(D,T,p,{end:v});else if(Im(D)||no(D)){let O=D.readable||D;h++,sc(O,T,p,{end:v})}else throw new Rm("AsyncIterable or Promise","destination",D);D=T;let{destroy:I,cleanup:M}=j1(D,!1,!0);f.push(I),q&&s.push(M)}}else if(M1(y)){if(ac(D)){h+=2;let T=r5(D,y,p,{end:v});Om(y)&&q&&s.push(T)}else if(no(D)||Im(D)){let T=D.readable||D;h++,sc(T,y,p,{end:v})}else if(Vr(D))h++,sc(D,y,p,{end:v});else throw new Mm("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],D);D=y}else if(Zj(y)){if(ac(D))h++,Nm(qm(D),y,p,{end:v});else if(Im(D)||Vr(D))h++,Nm(D,y,p,{end:v});else if(no(D))h++,Nm(D.readable,y,p,{end:v});else throw new Mm("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],D);D=y}else D=N1.from(y)}return(i!=null&&i.aborted||o!=null&&o.aborted)&&Us.nextTick(a),D}function r5(e,t,n,{end:r}){let i=!1;if(t.on("close",()=>{i||n(new Vj)}),e.pipe(t,{end:!1}),r){let s=function(){i=!0,t.end()};var o=s;Jj(e)?Us.nextTick(s):e.once("end",s)}else n();return uc(e,{readable:!0,writable:!1},s=>{let a=e._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted?e.once("end",n).once("error",n):n(s)}),uc(t,{readable:!1,writable:!0},n)}z1.exports={pipelineImpl:U1,pipeline:n5}});var Um=w((Sre,K1)=>{"use strict";var{pipeline:i5}=lc(),cc=nn(),{destroyer:o5}=$r(),{isNodeStream:fc,isReadable:W1,isWritable:$1,isWebStream:jm,isTransformStream:Kr,isWritableStream:H1,isReadableStream:G1}=en(),{AbortError:s5,codes:{ERR_INVALID_ARG_VALUE:V1,ERR_MISSING_ARGS:a5}}=Qe(),u5=vn();K1.exports=function(...t){if(t.length===0)throw new a5("streams");if(t.length===1)return cc.from(t[0]);let n=[...t];if(typeof t[0]=="function"&&(t[0]=cc.from(t[0])),typeof t[t.length-1]=="function"){let p=t.length-1;t[p]=cc.from(t[p])}for(let p=0;p<t.length;++p)if(!(!fc(t[p])&&!jm(t[p]))){if(p<t.length-1&&!(W1(t[p])||G1(t[p])||Kr(t[p])))throw new V1(`streams[${p}]`,n[p],"must be readable");if(p>0&&!($1(t[p])||H1(t[p])||Kr(t[p])))throw new V1(`streams[${p}]`,n[p],"must be writable")}let r,i,o,s,a;function u(p){let b=s;s=null,b?b(p):p?a.destroy(p):!h&&!f&&a.destroy()}let l=t[0],c=i5(t,u),f=!!($1(l)||H1(l)||Kr(l)),h=!!(W1(c)||G1(c)||Kr(c));if(a=new cc({writableObjectMode:!!(l!=null&&l.writableObjectMode),readableObjectMode:!!(c!=null&&c.readableObjectMode),writable:f,readable:h}),f){if(fc(l))a._write=function(b,D,F){l.write(b,D)?F():r=F},a._final=function(b){l.end(),i=b},l.on("drain",function(){if(r){let b=r;r=null,b()}});else if(jm(l)){let D=(Kr(l)?l.writable:l).getWriter();a._write=async function(F,g,m){try{await D.ready,D.write(F).catch(()=>{}),m()}catch(d){m(d)}},a._final=async function(F){try{await D.ready,D.close().catch(()=>{}),i=F}catch(g){F(g)}}}let p=Kr(c)?c.readable:c;u5(p,()=>{if(i){let b=i;i=null,b()}})}if(h){if(fc(c))c.on("readable",function(){if(o){let p=o;o=null,p()}}),c.on("end",function(){a.push(null)}),a._read=function(){for(;;){let p=c.read();if(p===null){o=a._read;return}if(!a.push(p))return}};else if(jm(c)){let b=(Kr(c)?c.readable:c).getReader();a._read=async function(){for(;;)try{let{value:D,done:F}=await b.read();if(!a.push(D))return;if(F){a.push(null);return}}catch{return}}}}return a._destroy=function(p,b){!p&&s!==null&&(p=new s5),o=null,r=null,i=null,s===null?b(p):(s=b,fc(c)&&o5(c,p))},a}});var iF=w((Fre,$m)=>{"use strict";var l5=globalThis.AbortController||$i().AbortController,{codes:{ERR_INVALID_ARG_VALUE:c5,ERR_INVALID_ARG_TYPE:zs,ERR_MISSING_ARGS:f5,ERR_OUT_OF_RANGE:h5},AbortError:rn}=Qe(),{validateAbortSignal:Yr,validateInteger:Y1,validateObject:Qr}=Gi(),p5=we().Symbol("kWeak"),d5=we().Symbol("kResistStopPropagation"),{finished:m5}=vn(),g5=Um(),{addAbortSignalNoValidate:y5}=Is(),{isWritable:b5,isNodeStream:D5}=en(),{deprecate:w5}=nt(),{ArrayPrototypePush:_5,Boolean:x5,MathFloor:Q1,Number:v5,NumberIsNaN:E5,Promise:Z1,PromiseReject:J1,PromiseResolve:S5,PromisePrototypeThen:X1,Symbol:tF}=we(),hc=tF("kEmpty"),eF=tF("kEof");function F5(e,t){if(t!=null&&Qr(t,"options"),t?.signal!=null&&Yr(t.signal,"options.signal"),D5(e)&&!b5(e))throw new c5("stream",e,"must be writable");let n=g5(this,e);return t!=null&&t.signal&&y5(t.signal,n),n}function pc(e,t){if(typeof e!="function")throw new zs("fn",["Function","AsyncFunction"],e);t!=null&&Qr(t,"options"),t?.signal!=null&&Yr(t.signal,"options.signal");let n=1;t?.concurrency!=null&&(n=Q1(t.concurrency));let r=n-1;return t?.highWaterMark!=null&&(r=Q1(t.highWaterMark)),Y1(n,"options.concurrency",1),Y1(r,"options.highWaterMark",0),r+=n,async function*(){let o=nt().AbortSignalAny([t?.signal].filter(x5)),s=this,a=[],u={signal:o},l,c,f=!1,h=0;function p(){f=!0,b()}function b(){h-=1,D()}function D(){c&&!f&&h<n&&a.length<r&&(c(),c=null)}async function F(){try{for await(let g of s){if(f)return;if(o.aborted)throw new rn;try{if(g=e(g,u),g===hc)continue;g=S5(g)}catch(m){g=J1(m)}h+=1,X1(g,b,p),a.push(g),l&&(l(),l=null),!f&&(a.length>=r||h>=n)&&await new Z1(m=>{c=m})}a.push(eF)}catch(g){let m=J1(g);X1(m,b,p),a.push(m)}finally{f=!0,l&&(l(),l=null)}}F();try{for(;;){for(;a.length>0;){let g=await a[0];if(g===eF)return;if(o.aborted)throw new rn;g!==hc&&(yield g),a.shift(),D()}await new Z1(g=>{l=g})}}finally{f=!0,c&&(c(),c=null)}}.call(this)}function k5(e=void 0){return e!=null&&Qr(e,"options"),e?.signal!=null&&Yr(e.signal,"options.signal"),async function*(){let n=0;for await(let i of this){var r;if(e!=null&&(r=e.signal)!==null&&r!==void 0&&r.aborted)throw new rn({cause:e.signal.reason});yield[n++,i]}}.call(this)}async function nF(e,t=void 0){for await(let n of Wm.call(this,e,t))return!0;return!1}async function T5(e,t=void 0){if(typeof e!="function")throw new zs("fn",["Function","AsyncFunction"],e);return!await nF.call(this,async(...n)=>!await e(...n),t)}async function C5(e,t){for await(let n of Wm.call(this,e,t))return n}async function A5(e,t){if(typeof e!="function")throw new zs("fn",["Function","AsyncFunction"],e);async function n(r,i){return await e(r,i),hc}for await(let r of pc.call(this,n,t));}function Wm(e,t){if(typeof e!="function")throw new zs("fn",["Function","AsyncFunction"],e);async function n(r,i){return await e(r,i)?r:hc}return pc.call(this,n,t)}var zm=class extends f5{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function R5(e,t,n){var r;if(typeof e!="function")throw new zs("reducer",["Function","AsyncFunction"],e);n!=null&&Qr(n,"options"),n?.signal!=null&&Yr(n.signal,"options.signal");let i=arguments.length>1;if(n!=null&&(r=n.signal)!==null&&r!==void 0&&r.aborted){let l=new rn(void 0,{cause:n.signal.reason});throw this.once("error",()=>{}),await m5(this.destroy(l)),l}let o=new l5,s=o.signal;if(n!=null&&n.signal){let l={once:!0,[p5]:this,[d5]:!0};n.signal.addEventListener("abort",()=>o.abort(),l)}let a=!1;try{for await(let l of this){var u;if(a=!0,n!=null&&(u=n.signal)!==null&&u!==void 0&&u.aborted)throw new rn;i?t=await e(t,l,{signal:s}):(t=l,i=!0)}if(!a&&!i)throw new zm}finally{o.abort()}return t}async function O5(e){e!=null&&Qr(e,"options"),e?.signal!=null&&Yr(e.signal,"options.signal");let t=[];for await(let r of this){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new rn(void 0,{cause:e.signal.reason});_5(t,r)}return t}function I5(e,t){let n=pc.call(this,e,t);return async function*(){for await(let i of n)yield*i}.call(this)}function rF(e){if(e=v5(e),E5(e))return 0;if(e<0)throw new h5("number",">= 0",e);return e}function L5(e,t=void 0){return t!=null&&Qr(t,"options"),t?.signal!=null&&Yr(t.signal,"options.signal"),e=rF(e),async function*(){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new rn;for await(let o of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new rn;e--<=0&&(yield o)}}.call(this)}function P5(e,t=void 0){return t!=null&&Qr(t,"options"),t?.signal!=null&&Yr(t.signal,"options.signal"),e=rF(e),async function*(){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new rn;for await(let o of this){var i;if(t!=null&&(i=t.signal)!==null&&i!==void 0&&i.aborted)throw new rn;if(e-- >0&&(yield o),e<=0)return}}.call(this)}$m.exports.streamReturningOperators={asIndexedPairs:w5(k5,"readable.asIndexedPairs will be removed in a future version."),drop:L5,filter:Wm,flatMap:I5,map:pc,take:P5,compose:F5};$m.exports.promiseReturningOperators={every:T5,forEach:A5,reduce:R5,toArray:O5,some:nF,find:C5}});var Hm=w((kre,oF)=>{"use strict";var{ArrayPrototypePop:B5,Promise:q5}=we(),{isIterable:N5,isNodeStream:M5,isWebStream:j5}=en(),{pipelineImpl:U5}=lc(),{finished:z5}=vn();Gm();function W5(...e){return new q5((t,n)=>{let r,i,o=e[e.length-1];if(o&&typeof o=="object"&&!M5(o)&&!N5(o)&&!j5(o)){let s=B5(e);r=s.signal,i=s.end}U5(e,(s,a)=>{s?n(s):t(a)},{signal:r,end:i})})}oF.exports={finished:z5,pipeline:W5}});var Gm=w((Tre,dF)=>{"use strict";var{Buffer:$5}=N("buffer"),{ObjectDefineProperty:Fn,ObjectKeys:uF,ReflectApply:lF}=we(),{promisify:{custom:cF}}=nt(),{streamReturningOperators:sF,promiseReturningOperators:aF}=iF(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:fF}}=Qe(),H5=Um(),{setDefaultHighWaterMark:G5,getDefaultHighWaterMark:V5}=Ls(),{pipeline:hF}=lc(),{destroyer:K5}=$r(),pF=vn(),Vm=Hm(),Ws=en(),ye=dF.exports=Vl().Stream;ye.isDestroyed=Ws.isDestroyed;ye.isDisturbed=Ws.isDisturbed;ye.isErrored=Ws.isErrored;ye.isReadable=Ws.isReadable;ye.isWritable=Ws.isWritable;ye.Readable=Bs();for(let e of uF(sF)){let n=function(...r){if(new.target)throw fF();return ye.Readable.from(lF(t,this,r))},t=sF[e];Fn(n,"name",{__proto__:null,value:t.name}),Fn(n,"length",{__proto__:null,value:t.length}),Fn(ye.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}for(let e of uF(aF)){let n=function(...r){if(new.target)throw fF();return lF(t,this,r)},t=aF[e];Fn(n,"name",{__proto__:null,value:t.name}),Fn(n,"length",{__proto__:null,value:t.length}),Fn(ye.Readable.prototype,e,{__proto__:null,value:n,enumerable:!1,configurable:!0,writable:!0})}ye.Writable=oc();ye.Duplex=nn();ye.Transform=Tm();ye.PassThrough=Am();ye.pipeline=hF;var{addAbortSignal:Y5}=Is();ye.addAbortSignal=Y5;ye.finished=pF;ye.destroy=K5;ye.compose=H5;ye.setDefaultHighWaterMark=G5;ye.getDefaultHighWaterMark=V5;Fn(ye,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return Vm}});Fn(hF,cF,{__proto__:null,enumerable:!0,get(){return Vm.pipeline}});Fn(pF,cF,{__proto__:null,enumerable:!0,get(){return Vm.finished}});ye.Stream=ye;ye._isUint8Array=function(t){return t instanceof Uint8Array};ye._uint8ArrayToBuffer=function(t){return $5.from(t.buffer,t.byteOffset,t.byteLength)}});var Zr=w((Cre,X)=>{"use strict";var Ie=N("stream");if(Ie&&process.env.READABLE_STREAM==="disable"){let e=Ie.promises;X.exports._uint8ArrayToBuffer=Ie._uint8ArrayToBuffer,X.exports._isUint8Array=Ie._isUint8Array,X.exports.isDisturbed=Ie.isDisturbed,X.exports.isErrored=Ie.isErrored,X.exports.isReadable=Ie.isReadable,X.exports.Readable=Ie.Readable,X.exports.Writable=Ie.Writable,X.exports.Duplex=Ie.Duplex,X.exports.Transform=Ie.Transform,X.exports.PassThrough=Ie.PassThrough,X.exports.addAbortSignal=Ie.addAbortSignal,X.exports.finished=Ie.finished,X.exports.destroy=Ie.destroy,X.exports.pipeline=Ie.pipeline,X.exports.compose=Ie.compose,Object.defineProperty(Ie,"promises",{configurable:!0,enumerable:!0,get(){return e}}),X.exports.Stream=Ie.Stream}else{let e=Gm(),t=Hm(),n=e.Readable.destroy;X.exports=e.Readable,X.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,X.exports._isUint8Array=e._isUint8Array,X.exports.isDisturbed=e.isDisturbed,X.exports.isErrored=e.isErrored,X.exports.isReadable=e.isReadable,X.exports.Readable=e.Readable,X.exports.Writable=e.Writable,X.exports.Duplex=e.Duplex,X.exports.Transform=e.Transform,X.exports.PassThrough=e.PassThrough,X.exports.addAbortSignal=e.addAbortSignal,X.exports.finished=e.finished,X.exports.destroy=e.destroy,X.exports.destroy=n,X.exports.pipeline=e.pipeline,X.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return t}}),X.exports.Stream=e.Stream}X.exports.default=X.exports});var gF=w((Are,mF)=>{"use strict";function Q5(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}mF.exports=Q5});var wF=w((Rre,DF)=>{"use strict";var yF=Ol(),Z5=Od(),J5=Id(),bF=yF?yF.isConcatSpreadable:void 0;function X5(e){return J5(e)||Z5(e)||!!(bF&&e&&e[bF])}DF.exports=X5});var dc=w((Ore,xF)=>{"use strict";var e7=gF(),t7=wF();function _F(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=t7),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>1?_F(a,t-1,n,r,i):e7(i,a):r||(i[i.length]=a)}return i}xF.exports=_F});var EF=w((Ire,vF)=>{"use strict";var n7=dc();function r7(e){var t=e==null?0:e.length;return t?n7(e,1):[]}vF.exports=r7});var $s=w((Lre,SF)=>{"use strict";var i7=Es(),o7=i7(Object,"create");SF.exports=o7});var TF=w((Pre,kF)=>{"use strict";var FF=$s();function s7(){this.__data__=FF?FF(null):{},this.size=0}kF.exports=s7});var AF=w((Bre,CF)=>{"use strict";function a7(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}CF.exports=a7});var OF=w((qre,RF)=>{"use strict";var u7=$s(),l7="__lodash_hash_undefined__",c7=Object.prototype,f7=c7.hasOwnProperty;function h7(e){var t=this.__data__;if(u7){var n=t[e];return n===l7?void 0:n}return f7.call(t,e)?t[e]:void 0}RF.exports=h7});var LF=w((Nre,IF)=>{"use strict";var p7=$s(),d7=Object.prototype,m7=d7.hasOwnProperty;function g7(e){var t=this.__data__;return p7?t[e]!==void 0:m7.call(t,e)}IF.exports=g7});var BF=w((Mre,PF)=>{"use strict";var y7=$s(),b7="__lodash_hash_undefined__";function D7(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=y7&&t===void 0?b7:t,this}PF.exports=D7});var NF=w((jre,qF)=>{"use strict";var w7=TF(),_7=AF(),x7=OF(),v7=LF(),E7=BF();function ro(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ro.prototype.clear=w7;ro.prototype.delete=_7;ro.prototype.get=x7;ro.prototype.has=v7;ro.prototype.set=E7;qF.exports=ro});var jF=w((Ure,MF)=>{"use strict";function S7(){this.__data__=[],this.size=0}MF.exports=S7});var Hs=w((zre,UF)=>{"use strict";var F7=Ll();function k7(e,t){for(var n=e.length;n--;)if(F7(e[n][0],t))return n;return-1}UF.exports=k7});var WF=w((Wre,zF)=>{"use strict";var T7=Hs(),C7=Array.prototype,A7=C7.splice;function R7(e){var t=this.__data__,n=T7(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():A7.call(t,n,1),--this.size,!0}zF.exports=R7});var HF=w(($re,$F)=>{"use strict";var O7=Hs();function I7(e){var t=this.__data__,n=O7(t,e);return n<0?void 0:t[n][1]}$F.exports=I7});var VF=w((Hre,GF)=>{"use strict";var L7=Hs();function P7(e){return L7(this.__data__,e)>-1}GF.exports=P7});var YF=w((Gre,KF)=>{"use strict";var B7=Hs();function q7(e,t){var n=this.__data__,r=B7(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}KF.exports=q7});var ZF=w((Vre,QF)=>{"use strict";var N7=jF(),M7=WF(),j7=HF(),U7=VF(),z7=YF();function io(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}io.prototype.clear=N7;io.prototype.delete=M7;io.prototype.get=j7;io.prototype.has=U7;io.prototype.set=z7;QF.exports=io});var XF=w((Kre,JF)=>{"use strict";var W7=Es(),$7=Mi(),H7=W7($7,"Map");JF.exports=H7});var nk=w((Yre,tk)=>{"use strict";var ek=NF(),G7=ZF(),V7=XF();function K7(){this.size=0,this.__data__={hash:new ek,map:new(V7||G7),string:new ek}}tk.exports=K7});var ik=w((Qre,rk)=>{"use strict";function Y7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}rk.exports=Y7});var Gs=w((Zre,ok)=>{"use strict";var Q7=ik();function Z7(e,t){var n=e.__data__;return Q7(t)?n[typeof t=="string"?"string":"hash"]:n.map}ok.exports=Z7});var ak=w((Jre,sk)=>{"use strict";var J7=Gs();function X7(e){var t=J7(this,e).delete(e);return this.size-=t?1:0,t}sk.exports=X7});var lk=w((Xre,uk)=>{"use strict";var eU=Gs();function tU(e){return eU(this,e).get(e)}uk.exports=tU});var fk=w((eie,ck)=>{"use strict";var nU=Gs();function rU(e){return nU(this,e).has(e)}ck.exports=rU});var pk=w((tie,hk)=>{"use strict";var iU=Gs();function oU(e,t){var n=iU(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}hk.exports=oU});var mk=w((nie,dk)=>{"use strict";var sU=nk(),aU=ak(),uU=lk(),lU=fk(),cU=pk();function oo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}oo.prototype.clear=sU;oo.prototype.delete=aU;oo.prototype.get=uU;oo.prototype.has=lU;oo.prototype.set=cU;dk.exports=oo});var yk=w((rie,gk)=>{"use strict";var fU="__lodash_hash_undefined__";function hU(e){return this.__data__.set(e,fU),this}gk.exports=hU});var Dk=w((iie,bk)=>{"use strict";function pU(e){return this.__data__.has(e)}bk.exports=pU});var Km=w((oie,wk)=>{"use strict";var dU=mk(),mU=yk(),gU=Dk();function mc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new dU;++t<n;)this.add(e[t])}mc.prototype.add=mc.prototype.push=mU;mc.prototype.has=gU;wk.exports=mc});var xk=w((sie,_k)=>{"use strict";function yU(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}_k.exports=yU});var Ek=w((aie,vk)=>{"use strict";function bU(e){return e!==e}vk.exports=bU});var Fk=w((uie,Sk)=>{"use strict";function DU(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}Sk.exports=DU});var Tk=w((lie,kk)=>{"use strict";var wU=xk(),_U=Ek(),xU=Fk();function vU(e,t,n){return t===t?xU(e,t,n):wU(e,_U,n)}kk.exports=vU});var Ym=w((cie,Ck)=>{"use strict";var EU=Tk();function SU(e,t){var n=e==null?0:e.length;return!!n&&EU(e,t,0)>-1}Ck.exports=SU});var Qm=w((fie,Ak)=>{"use strict";function FU(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}Ak.exports=FU});var Ok=w((hie,Rk)=>{"use strict";function kU(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}Rk.exports=kU});var Zm=w((pie,Ik)=>{"use strict";function TU(e,t){return e.has(t)}Ik.exports=TU});var Pk=w((die,Lk)=>{"use strict";var CU=Km(),AU=Ym(),RU=Qm(),OU=Ok(),IU=Ld(),LU=Zm(),PU=200;function BU(e,t,n,r){var i=-1,o=AU,s=!0,a=e.length,u=[],l=t.length;if(!a)return u;n&&(t=OU(t,IU(n))),r?(o=RU,s=!1):t.length>=PU&&(o=LU,s=!1,t=new CU(t));e:for(;++i<a;){var c=e[i],f=n==null?c:n(c);if(c=r||c!==0?c:0,s&&f===f){for(var h=l;h--;)if(t[h]===f)continue e;u.push(c)}else o(t,f,r)||u.push(c)}return u}Lk.exports=BU});var Jm=w((mie,Bk)=>{"use strict";var qU=Pl(),NU=ji();function MU(e){return NU(e)&&qU(e)}Bk.exports=MU});var Mk=w((gie,Nk)=>{"use strict";var jU=Pk(),UU=dc(),zU=Il(),qk=Jm(),WU=zU(function(e,t){return qk(e)?jU(e,UU(t,1,qk,!0)):[]});Nk.exports=WU});var Uk=w((yie,jk)=>{"use strict";var $U=Es(),HU=Mi(),GU=$U(HU,"Set");jk.exports=GU});var Wk=w((bie,zk)=>{"use strict";function VU(){}zk.exports=VU});var Xm=w((Die,$k)=>{"use strict";function KU(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}$k.exports=KU});var Gk=w((wie,Hk)=>{"use strict";var eg=Uk(),YU=Wk(),QU=Xm(),ZU=1/0,JU=eg&&1/QU(new eg([,-0]))[1]==ZU?function(e){return new eg(e)}:YU;Hk.exports=JU});var Kk=w((_ie,Vk)=>{"use strict";var XU=Km(),e9=Ym(),t9=Qm(),n9=Zm(),r9=Gk(),i9=Xm(),o9=200;function s9(e,t,n){var r=-1,i=e9,o=e.length,s=!0,a=[],u=a;if(n)s=!1,i=t9;else if(o>=o9){var l=t?null:r9(e);if(l)return i9(l);s=!1,i=n9,u=new XU}else u=t?[]:a;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||c!==0?c:0,s&&f===f){for(var h=u.length;h--;)if(u[h]===f)continue e;t&&u.push(f),a.push(c)}else i(u,f,n)||(u!==a&&u.push(f),a.push(c))}return a}Vk.exports=s9});var Qk=w((xie,Yk)=>{"use strict";var a9=dc(),u9=Il(),l9=Kk(),c9=Jm(),f9=u9(function(e){return l9(a9(e,1,c9,!0))});Yk.exports=f9});var Jk=w((vie,Zk)=>{"use strict";function h9(e,t){return function(n){return e(t(n))}}Zk.exports=h9});var eT=w((Eie,Xk)=>{"use strict";var p9=Jk(),d9=p9(Object.getPrototypeOf,Object);Xk.exports=d9});var rT=w((Sie,nT)=>{"use strict";var m9=xs(),g9=eT(),y9=ji(),b9="[object Object]",D9=Function.prototype,w9=Object.prototype,tT=D9.toString,_9=w9.hasOwnProperty,x9=tT.call(Object);function v9(e){if(!y9(e)||m9(e)!=b9)return!1;var t=g9(e);if(t===null)return!0;var n=_9.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&tT.call(n)==x9}nT.exports=v9});var uT=w(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.LRUCache=void 0;var so=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,oT=new Set,tg=typeof process=="object"&&process?process:{},sT=(e,t,n,r)=>{typeof tg.emitWarning=="function"?tg.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},gc=globalThis.AbortController,iT=globalThis.AbortSignal;if(typeof gc>"u"){iT=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,i){this._onabort.push(i)}},gc=class{constructor(){t()}signal=new iT;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let i of this.signal._onabort)i(r);this.signal.onabort?.(r)}}};let e=tg.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,sT("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var E9=e=>!oT.has(e),tr=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),aT=e=>tr(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?ao:null:null,ao=class extends Array{constructor(t){super(t),this.fill(0)}},ng=class e{heap;length;static#t=!1;static create(t){let n=aT(t);if(!n)return[];e.#t=!0;let r=new e(t,n);return e.#t=!1,r}constructor(t,n){if(!e.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new n(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},rg=class e{#t;#n;#e;#s;#c;#D;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#f;#u;#a;#i;#b;#w;#g;#p;#v;#d;#E;#S;#y;#_;#x;#h;static unsafeExposeInternals(t){return{starts:t.#S,ttls:t.#y,sizes:t.#E,keyMap:t.#u,keyList:t.#a,valList:t.#i,next:t.#b,prev:t.#w,get head(){return t.#g},get tail(){return t.#p},free:t.#v,isBackgroundFetch:n=>t.#l(n),backgroundFetch:(n,r,i,o)=>t.#N(n,r,i,o),moveToTail:n=>t.#j(n),indexes:n=>t.#k(n),rindexes:n=>t.#T(n),isStale:n=>t.#m(n)}}get max(){return this.#t}get maxSize(){return this.#n}get calculatedSize(){return this.#f}get size(){return this.#o}get fetchMethod(){return this.#c}get memoMethod(){return this.#D}get dispose(){return this.#e}get disposeAfter(){return this.#s}constructor(t){let{max:n=0,ttl:r,ttlResolution:i=1,ttlAutopurge:o,updateAgeOnGet:s,updateAgeOnHas:a,allowStale:u,dispose:l,disposeAfter:c,noDisposeOnSet:f,noUpdateTTL:h,maxSize:p=0,maxEntrySize:b=0,sizeCalculation:D,fetchMethod:F,memoMethod:g,noDeleteOnFetchRejection:m,noDeleteOnStaleGet:d,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:k,ignoreFetchAbort:E}=t;if(n!==0&&!tr(n))throw new TypeError("max option must be a nonnegative integer");let v=n?aT(n):Array;if(!v)throw new Error("invalid max value: "+n);if(this.#t=n,this.#n=p,this.maxEntrySize=b||this.#n,this.sizeCalculation=D,this.sizeCalculation){if(!this.#n&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(g!==void 0&&typeof g!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#D=g,F!==void 0&&typeof F!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#c=F,this.#x=!!F,this.#u=new Map,this.#a=new Array(n).fill(void 0),this.#i=new Array(n).fill(void 0),this.#b=new v(n),this.#w=new v(n),this.#g=0,this.#p=0,this.#v=ng.create(n),this.#o=0,this.#f=0,typeof l=="function"&&(this.#e=l),typeof c=="function"?(this.#s=c,this.#d=[]):(this.#s=void 0,this.#d=void 0),this.#_=!!this.#e,this.#h=!!this.#s,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!m,this.allowStaleOnFetchRejection=!!y,this.allowStaleOnFetchAbort=!!k,this.ignoreFetchAbort=!!E,this.maxEntrySize!==0){if(this.#n!==0&&!tr(this.#n))throw new TypeError("maxSize must be a positive integer if specified");if(!tr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#A()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!d,this.updateAgeOnGet=!!s,this.updateAgeOnHas=!!a,this.ttlResolution=tr(i)||i===0?i:1,this.ttlAutopurge=!!o,this.ttl=r||0,this.ttl){if(!tr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#C()}if(this.#t===0&&this.ttl===0&&this.#n===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#t&&!this.#n){let q="LRU_CACHE_UNBOUNDED";E9(q)&&(oT.add(q),sT("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",q,e))}}getRemainingTTL(t){return this.#u.has(t)?1/0:0}#C(){let t=new ao(this.#t),n=new ao(this.#t);this.#y=t,this.#S=n,this.#O=(o,s,a=so.now())=>{if(n[o]=s!==0?a:0,t[o]=s,s!==0&&this.ttlAutopurge){let u=setTimeout(()=>{this.#m(o)&&this.#R(this.#a[o],"expire")},s+1);u.unref&&u.unref()}},this.#F=o=>{n[o]=t[o]!==0?so.now():0},this.#r=(o,s)=>{if(t[s]){let a=t[s],u=n[s];if(!a||!u)return;o.ttl=a,o.start=u,o.now=r||i();let l=o.now-u;o.remainingTTL=a-l}};let r=0,i=()=>{let o=so.now();if(this.ttlResolution>0){r=o;let s=setTimeout(()=>r=0,this.ttlResolution);s.unref&&s.unref()}return o};this.getRemainingTTL=o=>{let s=this.#u.get(o);if(s===void 0)return 0;let a=t[s],u=n[s];if(!a||!u)return 1/0;let l=(r||i())-u;return a-l},this.#m=o=>{let s=n[o],a=t[o];return!!a&&!!s&&(r||i())-s>a}}#F=()=>{};#r=()=>{};#O=()=>{};#m=()=>!1;#A(){let t=new ao(this.#t);this.#f=0,this.#E=t,this.#I=n=>{this.#f-=t[n],t[n]=0},this.#P=(n,r,i,o)=>{if(this.#l(r))return 0;if(!tr(i))if(o){if(typeof o!="function")throw new TypeError("sizeCalculation must be a function");if(i=o(r,n),!tr(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#L=(n,r,i)=>{if(t[n]=r,this.#n){let o=this.#n-t[n];for(;this.#f>o;)this.#q(!0)}this.#f+=t[n],i&&(i.entrySize=r,i.totalCalculatedSize=this.#f)}}#I=t=>{};#L=(t,n,r)=>{};#P=(t,n,r,i)=>{if(r||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#k({allowStale:t=this.allowStale}={}){if(this.#o)for(let n=this.#p;!(!this.#B(n)||((t||!this.#m(n))&&(yield n),n===this.#g));)n=this.#w[n]}*#T({allowStale:t=this.allowStale}={}){if(this.#o)for(let n=this.#g;!(!this.#B(n)||((t||!this.#m(n))&&(yield n),n===this.#p));)n=this.#b[n]}#B(t){return t!==void 0&&this.#u.get(this.#a[t])===t}*entries(){for(let t of this.#k())this.#i[t]!==void 0&&this.#a[t]!==void 0&&!this.#l(this.#i[t])&&(yield[this.#a[t],this.#i[t]])}*rentries(){for(let t of this.#T())this.#i[t]!==void 0&&this.#a[t]!==void 0&&!this.#l(this.#i[t])&&(yield[this.#a[t],this.#i[t]])}*keys(){for(let t of this.#k()){let n=this.#a[t];n!==void 0&&!this.#l(this.#i[t])&&(yield n)}}*rkeys(){for(let t of this.#T()){let n=this.#a[t];n!==void 0&&!this.#l(this.#i[t])&&(yield n)}}*values(){for(let t of this.#k())this.#i[t]!==void 0&&!this.#l(this.#i[t])&&(yield this.#i[t])}*rvalues(){for(let t of this.#T())this.#i[t]!==void 0&&!this.#l(this.#i[t])&&(yield this.#i[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,n={}){for(let r of this.#k()){let i=this.#i[r],o=this.#l(i)?i.__staleWhileFetching:i;if(o!==void 0&&t(o,this.#a[r],this))return this.get(this.#a[r],n)}}forEach(t,n=this){for(let r of this.#k()){let i=this.#i[r],o=this.#l(i)?i.__staleWhileFetching:i;o!==void 0&&t.call(n,o,this.#a[r],this)}}rforEach(t,n=this){for(let r of this.#T()){let i=this.#i[r],o=this.#l(i)?i.__staleWhileFetching:i;o!==void 0&&t.call(n,o,this.#a[r],this)}}purgeStale(){let t=!1;for(let n of this.#T({allowStale:!0}))this.#m(n)&&(this.#R(this.#a[n],"expire"),t=!0);return t}info(t){let n=this.#u.get(t);if(n===void 0)return;let r=this.#i[n],i=this.#l(r)?r.__staleWhileFetching:r;if(i===void 0)return;let o={value:i};if(this.#y&&this.#S){let s=this.#y[n],a=this.#S[n];if(s&&a){let u=s-(so.now()-a);o.ttl=u,o.start=Date.now()}}return this.#E&&(o.size=this.#E[n]),o}dump(){let t=[];for(let n of this.#k({allowStale:!0})){let r=this.#a[n],i=this.#i[n],o=this.#l(i)?i.__staleWhileFetching:i;if(o===void 0||r===void 0)continue;let s={value:o};if(this.#y&&this.#S){s.ttl=this.#y[n];let a=so.now()-this.#S[n];s.start=Math.floor(Date.now()-a)}this.#E&&(s.size=this.#E[n]),t.unshift([r,s])}return t}load(t){this.clear();for(let[n,r]of t){if(r.start){let i=Date.now()-r.start;r.start=so.now()-i}this.set(n,r.value,r)}}set(t,n,r={}){if(n===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:o,noDisposeOnSet:s=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:u}=r,{noUpdateTTL:l=this.noUpdateTTL}=r,c=this.#P(t,n,r.size||0,a);if(this.maxEntrySize&&c>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.#R(t,"set"),this;let f=this.#o===0?void 0:this.#u.get(t);if(f===void 0)f=this.#o===0?this.#p:this.#v.length!==0?this.#v.pop():this.#o===this.#t?this.#q(!1):this.#o,this.#a[f]=t,this.#i[f]=n,this.#u.set(t,f),this.#b[this.#p]=f,this.#w[f]=this.#p,this.#p=f,this.#o++,this.#L(f,c,u),u&&(u.set="add"),l=!1;else{this.#j(f);let h=this.#i[f];if(n!==h){if(this.#x&&this.#l(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!s&&(this.#_&&this.#e?.(p,t,"set"),this.#h&&this.#d?.push([p,t,"set"]))}else s||(this.#_&&this.#e?.(h,t,"set"),this.#h&&this.#d?.push([h,t,"set"]));if(this.#I(f),this.#L(f,c,u),this.#i[f]=n,u){u.set="replace";let p=h&&this.#l(h)?h.__staleWhileFetching:h;p!==void 0&&(u.oldValue=p)}}else u&&(u.set="update")}if(i!==0&&!this.#y&&this.#C(),this.#y&&(l||this.#O(f,i,o),u&&this.#r(u,f)),!s&&this.#h&&this.#d){let h=this.#d,p;for(;p=h?.shift();)this.#s?.(...p)}return this}pop(){try{for(;this.#o;){let t=this.#i[this.#g];if(this.#q(!0),this.#l(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#h&&this.#d){let t=this.#d,n;for(;n=t?.shift();)this.#s?.(...n)}}}#q(t){let n=this.#g,r=this.#a[n],i=this.#i[n];return this.#x&&this.#l(i)?i.__abortController.abort(new Error("evicted")):(this.#_||this.#h)&&(this.#_&&this.#e?.(i,r,"evict"),this.#h&&this.#d?.push([i,r,"evict"])),this.#I(n),t&&(this.#a[n]=void 0,this.#i[n]=void 0,this.#v.push(n)),this.#o===1?(this.#g=this.#p=0,this.#v.length=0):this.#g=this.#b[n],this.#u.delete(r),this.#o--,n}has(t,n={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:i}=n,o=this.#u.get(t);if(o!==void 0){let s=this.#i[o];if(this.#l(s)&&s.__staleWhileFetching===void 0)return!1;if(this.#m(o))i&&(i.has="stale",this.#r(i,o));else return r&&this.#F(o),i&&(i.has="hit",this.#r(i,o)),!0}else i&&(i.has="miss");return!1}peek(t,n={}){let{allowStale:r=this.allowStale}=n,i=this.#u.get(t);if(i===void 0||!r&&this.#m(i))return;let o=this.#i[i];return this.#l(o)?o.__staleWhileFetching:o}#N(t,n,r,i){let o=n===void 0?void 0:this.#i[n];if(this.#l(o))return o;let s=new gc,{signal:a}=r;a?.addEventListener("abort",()=>s.abort(a.reason),{signal:s.signal});let u={signal:s.signal,options:r,context:i},l=(D,F=!1)=>{let{aborted:g}=s.signal,m=r.ignoreFetchAbort&&D!==void 0;if(r.status&&(g&&!F?(r.status.fetchAborted=!0,r.status.fetchError=s.signal.reason,m&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),g&&!m&&!F)return f(s.signal.reason);let d=p;return this.#i[n]===p&&(D===void 0?d.__staleWhileFetching?this.#i[n]=d.__staleWhileFetching:this.#R(t,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(t,D,u.options))),D},c=D=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=D),f(D)),f=D=>{let{aborted:F}=s.signal,g=F&&r.allowStaleOnFetchAbort,m=g||r.allowStaleOnFetchRejection,d=m||r.noDeleteOnFetchRejection,y=p;if(this.#i[n]===p&&(!d||y.__staleWhileFetching===void 0?this.#R(t,"fetch"):g||(this.#i[n]=y.__staleWhileFetching)),m)return r.status&&y.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),y.__staleWhileFetching;if(y.__returned===y)throw D},h=(D,F)=>{let g=this.#c?.(t,o,u);g&&g instanceof Promise&&g.then(m=>D(m===void 0?void 0:m),F),s.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(D(void 0),r.allowStaleOnFetchAbort&&(D=m=>l(m,!0)))})};r.status&&(r.status.fetchDispatched=!0);let p=new Promise(h).then(l,c),b=Object.assign(p,{__abortController:s,__staleWhileFetching:o,__returned:void 0});return n===void 0?(this.set(t,b,{...u.options,status:void 0}),n=this.#u.get(t)):this.#i[n]=b,b}#l(t){if(!this.#x)return!1;let n=t;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof gc}async fetch(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:u=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:c=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:b=this.allowStaleOnFetchAbort,context:D,forceRefresh:F=!1,status:g,signal:m}=n;if(!this.#x)return g&&(g.fetch="get"),this.get(t,{allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:o,status:g});let d={allowStale:r,updateAgeOnGet:i,noDeleteOnStaleGet:o,ttl:s,noDisposeOnSet:a,size:u,sizeCalculation:l,noUpdateTTL:c,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:b,ignoreFetchAbort:p,status:g,signal:m},y=this.#u.get(t);if(y===void 0){g&&(g.fetch="miss");let k=this.#N(t,y,d,D);return k.__returned=k}else{let k=this.#i[y];if(this.#l(k)){let A=r&&k.__staleWhileFetching!==void 0;return g&&(g.fetch="inflight",A&&(g.returnedStale=!0)),A?k.__staleWhileFetching:k.__returned=k}let E=this.#m(y);if(!F&&!E)return g&&(g.fetch="hit"),this.#j(y),i&&this.#F(y),g&&this.#r(g,y),k;let v=this.#N(t,y,d,D),T=v.__staleWhileFetching!==void 0&&r;return g&&(g.fetch=E?"stale":"refresh",T&&E&&(g.returnedStale=!0)),T?v.__staleWhileFetching:v.__returned=v}}async forceFetch(t,n={}){let r=await this.fetch(t,n);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(t,n={}){let r=this.#D;if(!r)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:o,...s}=n,a=this.get(t,s);if(!o&&a!==void 0)return a;let u=r(t,a,{options:s,context:i});return this.set(t,u,s),u}get(t,n={}){let{allowStale:r=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:s}=n,a=this.#u.get(t);if(a!==void 0){let u=this.#i[a],l=this.#l(u);return s&&this.#r(s,a),this.#m(a)?(s&&(s.get="stale"),l?(s&&r&&u.__staleWhileFetching!==void 0&&(s.returnedStale=!0),r?u.__staleWhileFetching:void 0):(o||this.#R(t,"expire"),s&&r&&(s.returnedStale=!0),r?u:void 0)):(s&&(s.get="hit"),l?u.__staleWhileFetching:(this.#j(a),i&&this.#F(a),u))}else s&&(s.get="miss")}#M(t,n){this.#w[n]=t,this.#b[t]=n}#j(t){t!==this.#p&&(t===this.#g?this.#g=this.#b[t]:this.#M(this.#w[t],this.#b[t]),this.#M(this.#p,t),this.#p=t)}delete(t){return this.#R(t,"delete")}#R(t,n){let r=!1;if(this.#o!==0){let i=this.#u.get(t);if(i!==void 0)if(r=!0,this.#o===1)this.#U(n);else{this.#I(i);let o=this.#i[i];if(this.#l(o)?o.__abortController.abort(new Error("deleted")):(this.#_||this.#h)&&(this.#_&&this.#e?.(o,t,n),this.#h&&this.#d?.push([o,t,n])),this.#u.delete(t),this.#a[i]=void 0,this.#i[i]=void 0,i===this.#p)this.#p=this.#w[i];else if(i===this.#g)this.#g=this.#b[i];else{let s=this.#w[i];this.#b[s]=this.#b[i];let a=this.#b[i];this.#w[a]=this.#w[i]}this.#o--,this.#v.push(i)}}if(this.#h&&this.#d?.length){let i=this.#d,o;for(;o=i?.shift();)this.#s?.(...o)}return r}clear(){return this.#U("delete")}#U(t){for(let n of this.#T({allowStale:!0})){let r=this.#i[n];if(this.#l(r))r.__abortController.abort(new Error("deleted"));else{let i=this.#a[n];this.#_&&this.#e?.(r,i,t),this.#h&&this.#d?.push([r,i,t])}}if(this.#u.clear(),this.#i.fill(void 0),this.#a.fill(void 0),this.#y&&this.#S&&(this.#y.fill(0),this.#S.fill(0)),this.#E&&this.#E.fill(0),this.#g=0,this.#p=0,this.#v.length=0,this.#f=0,this.#o=0,this.#h&&this.#d){let n=this.#d,r;for(;r=n?.shift();)this.#s?.(...r)}}};yc.LRUCache=rg});var fg=w(it=>{"use strict";var S9=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(it,"__esModule",{value:!0});it.Minipass=it.isWritable=it.isReadable=it.isStream=void 0;var lT=typeof process=="object"&&process?process:{stdout:null,stderr:null},cg=N("node:events"),pT=S9(N("node:stream")),F9=N("node:string_decoder"),k9=e=>!!e&&typeof e=="object"&&(e instanceof Ec||e instanceof pT.default||(0,it.isReadable)(e)||(0,it.isWritable)(e));it.isStream=k9;var T9=e=>!!e&&typeof e=="object"&&e instanceof cg.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==pT.default.Writable.prototype.pipe;it.isReadable=T9;var C9=e=>!!e&&typeof e=="object"&&e instanceof cg.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function";it.isWritable=C9;var kn=Symbol("EOF"),Tn=Symbol("maybeEmitEnd"),nr=Symbol("emittedEnd"),bc=Symbol("emittingEnd"),Vs=Symbol("emittedError"),Dc=Symbol("closed"),cT=Symbol("read"),wc=Symbol("flush"),fT=Symbol("flushChunk"),Ht=Symbol("encoding"),uo=Symbol("decoder"),Pe=Symbol("flowing"),Ks=Symbol("paused"),lo=Symbol("resume"),Be=Symbol("buffer"),rt=Symbol("pipes"),qe=Symbol("bufferLength"),ig=Symbol("bufferPush"),_c=Symbol("bufferShift"),Je=Symbol("objectMode"),Fe=Symbol("destroyed"),og=Symbol("error"),sg=Symbol("emitData"),hT=Symbol("emitEnd"),ag=Symbol("emitEnd2"),on=Symbol("async"),ug=Symbol("abort"),xc=Symbol("aborted"),Ys=Symbol("signal"),Jr=Symbol("dataListeners"),gt=Symbol("discarded"),Qs=e=>Promise.resolve().then(e),A9=e=>e(),R9=e=>e==="end"||e==="finish"||e==="prefinish",O9=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,I9=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),vc=class{src;dest;opts;ondrain;constructor(t,n,r){this.src=t,this.dest=n,this.opts=r,this.ondrain=()=>t[lo](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},lg=class extends vc{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,n,r){super(t,n,r),this.proxyErrors=i=>n.emit("error",i),t.on("error",this.proxyErrors)}},L9=e=>!!e.objectMode,P9=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",Ec=class extends cg.EventEmitter{[Pe]=!1;[Ks]=!1;[rt]=[];[Be]=[];[Je];[Ht];[on];[uo];[kn]=!1;[nr]=!1;[bc]=!1;[Dc]=!1;[Vs]=null;[qe]=0;[Fe]=!1;[Ys];[xc]=!1;[Jr]=0;[gt]=!1;writable=!0;readable=!0;constructor(...t){let n=t[0]||{};if(super(),n.objectMode&&typeof n.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");L9(n)?(this[Je]=!0,this[Ht]=null):P9(n)?(this[Ht]=n.encoding,this[Je]=!1):(this[Je]=!1,this[Ht]=null),this[on]=!!n.async,this[uo]=this[Ht]?new F9.StringDecoder(this[Ht]):null,n&&n.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[Be]}),n&&n.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[rt]});let{signal:r}=n;r&&(this[Ys]=r,r.aborted?this[ug]():r.addEventListener("abort",()=>this[ug]()))}get bufferLength(){return this[qe]}get encoding(){return this[Ht]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Je]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[on]}set async(t){this[on]=this[on]||!!t}[ug](){this[xc]=!0,this.emit("abort",this[Ys]?.reason),this.destroy(this[Ys]?.reason)}get aborted(){return this[xc]}set aborted(t){}write(t,n,r){if(this[xc])return!1;if(this[kn])throw new Error("write after end");if(this[Fe])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof n=="function"&&(r=n,n="utf8"),n||(n="utf8");let i=this[on]?Qs:A9;if(!this[Je]&&!Buffer.isBuffer(t)){if(I9(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(O9(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Je]?(this[Pe]&&this[qe]!==0&&this[wc](!0),this[Pe]?this.emit("data",t):this[ig](t),this[qe]!==0&&this.emit("readable"),r&&i(r),this[Pe]):t.length?(typeof t=="string"&&!(n===this[Ht]&&!this[uo]?.lastNeed)&&(t=Buffer.from(t,n)),Buffer.isBuffer(t)&&this[Ht]&&(t=this[uo].write(t)),this[Pe]&&this[qe]!==0&&this[wc](!0),this[Pe]?this.emit("data",t):this[ig](t),this[qe]!==0&&this.emit("readable"),r&&i(r),this[Pe]):(this[qe]!==0&&this.emit("readable"),r&&i(r),this[Pe])}read(t){if(this[Fe])return null;if(this[gt]=!1,this[qe]===0||t===0||t&&t>this[qe])return this[Tn](),null;this[Je]&&(t=null),this[Be].length>1&&!this[Je]&&(this[Be]=[this[Ht]?this[Be].join(""):Buffer.concat(this[Be],this[qe])]);let n=this[cT](t||null,this[Be][0]);return this[Tn](),n}[cT](t,n){if(this[Je])this[_c]();else{let r=n;t===r.length||t===null?this[_c]():typeof r=="string"?(this[Be][0]=r.slice(t),n=r.slice(0,t),this[qe]-=t):(this[Be][0]=r.subarray(t),n=r.subarray(0,t),this[qe]-=t)}return this.emit("data",n),!this[Be].length&&!this[kn]&&this.emit("drain"),n}end(t,n,r){return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n="utf8"),t!==void 0&&this.write(t,n),r&&this.once("end",r),this[kn]=!0,this.writable=!1,(this[Pe]||!this[Ks])&&this[Tn](),this}[lo](){this[Fe]||(!this[Jr]&&!this[rt].length&&(this[gt]=!0),this[Ks]=!1,this[Pe]=!0,this.emit("resume"),this[Be].length?this[wc]():this[kn]?this[Tn]():this.emit("drain"))}resume(){return this[lo]()}pause(){this[Pe]=!1,this[Ks]=!0,this[gt]=!1}get destroyed(){return this[Fe]}get flowing(){return this[Pe]}get paused(){return this[Ks]}[ig](t){this[Je]?this[qe]+=1:this[qe]+=t.length,this[Be].push(t)}[_c](){return this[Je]?this[qe]-=1:this[qe]-=this[Be][0].length,this[Be].shift()}[wc](t=!1){do;while(this[fT](this[_c]())&&this[Be].length);!t&&!this[Be].length&&!this[kn]&&this.emit("drain")}[fT](t){return this.emit("data",t),this[Pe]}pipe(t,n){if(this[Fe])return t;this[gt]=!1;let r=this[nr];return n=n||{},t===lT.stdout||t===lT.stderr?n.end=!1:n.end=n.end!==!1,n.proxyErrors=!!n.proxyErrors,r?n.end&&t.end():(this[rt].push(n.proxyErrors?new lg(this,t,n):new vc(this,t,n)),this[on]?Qs(()=>this[lo]()):this[lo]()),t}unpipe(t){let n=this[rt].find(r=>r.dest===t);n&&(this[rt].length===1?(this[Pe]&&this[Jr]===0&&(this[Pe]=!1),this[rt]=[]):this[rt].splice(this[rt].indexOf(n),1),n.unpipe())}addListener(t,n){return this.on(t,n)}on(t,n){let r=super.on(t,n);if(t==="data")this[gt]=!1,this[Jr]++,!this[rt].length&&!this[Pe]&&this[lo]();else if(t==="readable"&&this[qe]!==0)super.emit("readable");else if(R9(t)&&this[nr])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[Vs]){let i=n;this[on]?Qs(()=>i.call(this,this[Vs])):i.call(this,this[Vs])}return r}removeListener(t,n){return this.off(t,n)}off(t,n){let r=super.off(t,n);return t==="data"&&(this[Jr]=this.listeners("data").length,this[Jr]===0&&!this[gt]&&!this[rt].length&&(this[Pe]=!1)),r}removeAllListeners(t){let n=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[Jr]=0,!this[gt]&&!this[rt].length&&(this[Pe]=!1)),n}get emittedEnd(){return this[nr]}[Tn](){!this[bc]&&!this[nr]&&!this[Fe]&&this[Be].length===0&&this[kn]&&(this[bc]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Dc]&&this.emit("close"),this[bc]=!1)}emit(t,...n){let r=n[0];if(t!=="error"&&t!=="close"&&t!==Fe&&this[Fe])return!1;if(t==="data")return!this[Je]&&!r?!1:this[on]?(Qs(()=>this[sg](r)),!0):this[sg](r);if(t==="end")return this[hT]();if(t==="close"){if(this[Dc]=!0,!this[nr]&&!this[Fe])return!1;let o=super.emit("close");return this.removeAllListeners("close"),o}else if(t==="error"){this[Vs]=r,super.emit(og,r);let o=!this[Ys]||this.listeners("error").length?super.emit("error",r):!1;return this[Tn](),o}else if(t==="resume"){let o=super.emit("resume");return this[Tn](),o}else if(t==="finish"||t==="prefinish"){let o=super.emit(t);return this.removeAllListeners(t),o}let i=super.emit(t,...n);return this[Tn](),i}[sg](t){for(let r of this[rt])r.dest.write(t)===!1&&this.pause();let n=this[gt]?!1:super.emit("data",t);return this[Tn](),n}[hT](){return this[nr]?!1:(this[nr]=!0,this.readable=!1,this[on]?(Qs(()=>this[ag]()),!0):this[ag]())}[ag](){if(this[uo]){let n=this[uo].end();if(n){for(let r of this[rt])r.dest.write(n);this[gt]||super.emit("data",n)}}for(let n of this[rt])n.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[Je]||(t.dataLength=0);let n=this.promise();return this.on("data",r=>{t.push(r),this[Je]||(t.dataLength+=r.length)}),await n,t}async concat(){if(this[Je])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[Ht]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,n)=>{this.on(Fe,()=>n(new Error("stream destroyed"))),this.on("error",r=>n(r)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[gt]=!1;let t=!1,n=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return n();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[kn])return n();let o,s,a=f=>{this.off("data",u),this.off("end",l),this.off(Fe,c),n(),s(f)},u=f=>{this.off("error",a),this.off("end",l),this.off(Fe,c),this.pause(),o({value:f,done:!!this[kn]})},l=()=>{this.off("error",a),this.off("data",u),this.off(Fe,c),n(),o({done:!0,value:void 0})},c=()=>a(new Error("stream destroyed"));return new Promise((f,h)=>{s=h,o=f,this.once(Fe,c),this.once("error",a),this.once("end",l),this.once("data",u)})},throw:n,return:n,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[gt]=!1;let t=!1,n=()=>(this.pause(),this.off(og,n),this.off(Fe,n),this.off("end",n),t=!0,{done:!0,value:void 0}),r=()=>{if(t)return n();let i=this.read();return i===null?n():{done:!1,value:i}};return this.once("end",n),this.once(og,n),this.once(Fe,n),{next:r,throw:n,return:n,[Symbol.iterator](){return this}}}destroy(t){if(this[Fe])return t?this.emit("error",t):this.emit(Fe),this;this[Fe]=!0,this[gt]=!0,this[Be].length=0,this[qe]=0;let n=this;return typeof n.close=="function"&&!this[Dc]&&n.close(),t?this.emit("error",t):this.emit(Fe),this}static get isStream(){return it.isStream}};it.Minipass=Ec});var TT=w(le=>{"use strict";var B9=le&&le.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),q9=le&&le.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),N9=le&&le.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&B9(t,e,n);return q9(t,e),t};Object.defineProperty(le,"__esModule",{value:!0});le.PathScurry=le.Path=le.PathScurryDarwin=le.PathScurryPosix=le.PathScurryWin32=le.PathScurryBase=le.PathPosix=le.PathWin32=le.PathBase=le.ChildrenCache=le.ResolveCache=void 0;var DT=uT(),Cc=N("node:path"),M9=N("node:url"),Js=N("fs"),j9=N9(N("node:fs")),U9=Js.realpathSync.native,Sc=N("node:fs/promises"),dT=fg(),Xs={lstatSync:Js.lstatSync,readdir:Js.readdir,readdirSync:Js.readdirSync,readlinkSync:Js.readlinkSync,realpathSync:U9,promises:{lstat:Sc.lstat,readdir:Sc.readdir,readlink:Sc.readlink,realpath:Sc.realpath}},wT=e=>!e||e===Xs||e===j9?Xs:{...Xs,...e,promises:{...Xs.promises,...e.promises||{}}},_T=/^\\\\\?\\([a-z]:)\\?$/i,z9=e=>e.replace(/\//g,"\\").replace(_T,"$1\\"),W9=/[\\\/]/,It=0,xT=1,vT=2,sn=4,ET=6,ST=8,Xr=10,FT=12,Ot=15,Zs=~Ot,hg=16,mT=32,ea=64,Gt=128,Fc=256,Tc=512,gT=ea|Gt|Tc,$9=1023,pg=e=>e.isFile()?ST:e.isDirectory()?sn:e.isSymbolicLink()?Xr:e.isCharacterDevice()?vT:e.isBlockDevice()?ET:e.isSocket()?FT:e.isFIFO()?xT:It,yT=new Map,ta=e=>{let t=yT.get(e);if(t)return t;let n=e.normalize("NFKD");return yT.set(e,n),n},bT=new Map,kc=e=>{let t=bT.get(e);if(t)return t;let n=ta(e.toLowerCase());return bT.set(e,n),n},na=class extends DT.LRUCache{constructor(){super({max:256})}};le.ResolveCache=na;var Ac=class extends DT.LRUCache{constructor(t=16*1024){super({maxSize:t,sizeCalculation:n=>n.length+1})}};le.ChildrenCache=Ac;var kT=Symbol("PathScurry setAsCwd"),$e=class{name;root;roots;parent;nocase;isCWD=!1;#t;#n;get dev(){return this.#n}#e;get mode(){return this.#e}#s;get nlink(){return this.#s}#c;get uid(){return this.#c}#D;get gid(){return this.#D}#o;get rdev(){return this.#o}#f;get blksize(){return this.#f}#u;get ino(){return this.#u}#a;get size(){return this.#a}#i;get blocks(){return this.#i}#b;get atimeMs(){return this.#b}#w;get mtimeMs(){return this.#w}#g;get ctimeMs(){return this.#g}#p;get birthtimeMs(){return this.#p}#v;get atime(){return this.#v}#d;get mtime(){return this.#d}#E;get ctime(){return this.#E}#S;get birthtime(){return this.#S}#y;#_;#x;#h;#C;#F;#r;#O;#m;#A;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,n=It,r,i,o,s,a){this.name=t,this.#y=o?kc(t):ta(t),this.#r=n&$9,this.nocase=o,this.roots=i,this.root=r||this,this.#O=s,this.#x=a.fullpath,this.#C=a.relative,this.#F=a.relativePosix,this.parent=a.parent,this.parent?this.#t=this.parent.#t:this.#t=wT(a.fs)}depth(){return this.#_!==void 0?this.#_:this.parent?this.#_=this.parent.depth()+1:this.#_=0}childrenCache(){return this.#O}resolve(t){if(!t)return this;let n=this.getRootString(t),i=t.substring(n.length).split(this.splitSep);return n?this.getRoot(n).#I(i):this.#I(i)}#I(t){let n=this;for(let r of t)n=n.child(r);return n}children(){let t=this.#O.get(this);if(t)return t;let n=Object.assign([],{provisional:0});return this.#O.set(this,n),this.#r&=~hg,n}child(t,n){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let r=this.children(),i=this.nocase?kc(t):ta(t);for(let u of r)if(u.#y===i)return u;let o=this.parent?this.sep:"",s=this.#x?this.#x+o+t:void 0,a=this.newChild(t,It,{...n,parent:this,fullpath:s});return this.canReaddir()||(a.#r|=Gt),r.push(a),a}relative(){if(this.isCWD)return"";if(this.#C!==void 0)return this.#C;let t=this.name,n=this.parent;if(!n)return this.#C=this.name;let r=n.relative();return r+(!r||!n.parent?"":this.sep)+t}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#F!==void 0)return this.#F;let t=this.name,n=this.parent;if(!n)return this.#F=this.fullpathPosix();let r=n.relativePosix();return r+(!r||!n.parent?"":"/")+t}fullpath(){if(this.#x!==void 0)return this.#x;let t=this.name,n=this.parent;if(!n)return this.#x=this.name;let i=n.fullpath()+(n.parent?this.sep:"")+t;return this.#x=i}fullpathPosix(){if(this.#h!==void 0)return this.#h;if(this.sep==="/")return this.#h=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#h=`//?/${i}`:this.#h=i}let t=this.parent,n=t.fullpathPosix(),r=n+(!n||!t.parent?"":"/")+this.name;return this.#h=r}isUnknown(){return(this.#r&Ot)===It}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#r&Ot)===ST}isDirectory(){return(this.#r&Ot)===sn}isCharacterDevice(){return(this.#r&Ot)===vT}isBlockDevice(){return(this.#r&Ot)===ET}isFIFO(){return(this.#r&Ot)===xT}isSocket(){return(this.#r&Ot)===FT}isSymbolicLink(){return(this.#r&Xr)===Xr}lstatCached(){return this.#r&mT?this:void 0}readlinkCached(){return this.#m}realpathCached(){return this.#A}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#m)return!0;if(!this.parent)return!1;let t=this.#r&Ot;return!(t!==It&&t!==Xr||this.#r&Fc||this.#r&Gt)}calledReaddir(){return!!(this.#r&hg)}isENOENT(){return!!(this.#r&Gt)}isNamed(t){return this.nocase?this.#y===kc(t):this.#y===ta(t)}async readlink(){let t=this.#m;if(t)return t;if(this.canReadlink()&&this.parent)try{let n=await this.#t.promises.readlink(this.fullpath()),r=(await this.parent.realpath())?.resolve(n);if(r)return this.#m=r}catch(n){this.#l(n.code);return}}readlinkSync(){let t=this.#m;if(t)return t;if(this.canReadlink()&&this.parent)try{let n=this.#t.readlinkSync(this.fullpath()),r=this.parent.realpathSync()?.resolve(n);if(r)return this.#m=r}catch(n){this.#l(n.code);return}}#L(t){this.#r|=hg;for(let n=t.provisional;n<t.length;n++){let r=t[n];r&&r.#P()}}#P(){this.#r&Gt||(this.#r=(this.#r|Gt)&Zs,this.#k())}#k(){let t=this.children();t.provisional=0;for(let n of t)n.#P()}#T(){this.#r|=Tc,this.#B()}#B(){if(this.#r&ea)return;let t=this.#r;(t&Ot)===sn&&(t&=Zs),this.#r=t|ea,this.#k()}#q(t=""){t==="ENOTDIR"||t==="EPERM"?this.#B():t==="ENOENT"?this.#P():this.children().provisional=0}#N(t=""){t==="ENOTDIR"?this.parent.#B():t==="ENOENT"&&this.#P()}#l(t=""){let n=this.#r;n|=Fc,t==="ENOENT"&&(n|=Gt),(t==="EINVAL"||t==="UNKNOWN")&&(n&=Zs),this.#r=n,t==="ENOTDIR"&&this.parent&&this.parent.#B()}#M(t,n){return this.#R(t,n)||this.#j(t,n)}#j(t,n){let r=pg(t),i=this.newChild(t.name,r,{parent:this}),o=i.#r&Ot;return o!==sn&&o!==Xr&&o!==It&&(i.#r|=ea),n.unshift(i),n.provisional++,i}#R(t,n){for(let r=n.provisional;r<n.length;r++){let i=n[r];if((this.nocase?kc(t.name):ta(t.name))===i.#y)return this.#U(t,i,r,n)}}#U(t,n,r,i){let o=n.name;return n.#r=n.#r&Zs|pg(t),o!==t.name&&(n.name=t.name),r!==i.provisional&&(r===i.length-1?i.pop():i.splice(r,1),i.unshift(n)),i.provisional++,n}async lstat(){if((this.#r&Gt)===0)try{return this.#H(await this.#t.promises.lstat(this.fullpath())),this}catch(t){this.#N(t.code)}}lstatSync(){if((this.#r&Gt)===0)try{return this.#H(this.#t.lstatSync(this.fullpath())),this}catch(t){this.#N(t.code)}}#H(t){let{atime:n,atimeMs:r,birthtime:i,birthtimeMs:o,blksize:s,blocks:a,ctime:u,ctimeMs:l,dev:c,gid:f,ino:h,mode:p,mtime:b,mtimeMs:D,nlink:F,rdev:g,size:m,uid:d}=t;this.#v=n,this.#b=r,this.#S=i,this.#p=o,this.#f=s,this.#i=a,this.#E=u,this.#g=l,this.#n=c,this.#D=f,this.#u=h,this.#e=p,this.#d=b,this.#w=D,this.#s=F,this.#o=g,this.#a=m,this.#c=d;let y=pg(t);this.#r=this.#r&Zs|y|mT,y!==It&&y!==sn&&y!==Xr&&(this.#r|=ea)}#W=[];#$=!1;#G(t){this.#$=!1;let n=this.#W.slice();this.#W.length=0,n.forEach(r=>r(null,t))}readdirCB(t,n=!1){if(!this.canReaddir()){n?t(null,[]):queueMicrotask(()=>t(null,[]));return}let r=this.children();if(this.calledReaddir()){let o=r.slice(0,r.provisional);n?t(null,o):queueMicrotask(()=>t(null,o));return}if(this.#W.push(t),this.#$)return;this.#$=!0;let i=this.fullpath();this.#t.readdir(i,{withFileTypes:!0},(o,s)=>{if(o)this.#q(o.code),r.provisional=0;else{for(let a of s)this.#M(a,r);this.#L(r)}this.#G(r.slice(0,r.provisional))})}#z;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let n=this.fullpath();if(this.#z)await this.#z;else{let r=()=>{};this.#z=new Promise(i=>r=i);try{for(let i of await this.#t.promises.readdir(n,{withFileTypes:!0}))this.#M(i,t);this.#L(t)}catch(i){this.#q(i.code),t.provisional=0}this.#z=void 0,r()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let n=this.fullpath();try{for(let r of this.#t.readdirSync(n,{withFileTypes:!0}))this.#M(r,t);this.#L(t)}catch(r){this.#q(r.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#r&gT)return!1;let t=Ot&this.#r;return t===It||t===sn||t===Xr}shouldWalk(t,n){return(this.#r&sn)===sn&&!(this.#r&gT)&&!t.has(this)&&(!n||n(this))}async realpath(){if(this.#A)return this.#A;if(!((Tc|Fc|Gt)&this.#r))try{let t=await this.#t.promises.realpath(this.fullpath());return this.#A=this.resolve(t)}catch{this.#T()}}realpathSync(){if(this.#A)return this.#A;if(!((Tc|Fc|Gt)&this.#r))try{let t=this.#t.realpathSync(this.fullpath());return this.#A=this.resolve(t)}catch{this.#T()}}[kT](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let n=new Set([]),r=[],i=this;for(;i&&i.parent;)n.add(i),i.#C=r.join(this.sep),i.#F=r.join("/"),i=i.parent,r.push("..");for(i=t;i&&i.parent&&!n.has(i);)i.#C=void 0,i.#F=void 0,i=i.parent}};le.PathBase=$e;var ra=class e extends $e{sep="\\";splitSep=W9;constructor(t,n=It,r,i,o,s,a){super(t,n,r,i,o,s,a)}newChild(t,n=It,r={}){return new e(t,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(t){return Cc.win32.parse(t).root}getRoot(t){if(t=z9(t.toUpperCase()),t===this.root.name)return this.root;for(let[n,r]of Object.entries(this.roots))if(this.sameRoot(t,n))return this.roots[t]=r;return this.roots[t]=new sa(t,this).root}sameRoot(t,n=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(_T,"$1\\"),t===n}};le.PathWin32=ra;var ia=class e extends $e{splitSep="/";sep="/";constructor(t,n=It,r,i,o,s,a){super(t,n,r,i,o,s,a)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,n=It,r={}){return new e(t,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}};le.PathPosix=ia;var oa=class{root;rootPath;roots;cwd;#t;#n;#e;nocase;#s;constructor(t=process.cwd(),n,r,{nocase:i,childrenCacheSize:o=16*1024,fs:s=Xs}={}){this.#s=wT(s),(t instanceof URL||t.startsWith("file://"))&&(t=(0,M9.fileURLToPath)(t));let a=n.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#t=new na,this.#n=new na,this.#e=new Ac(o);let u=a.substring(this.rootPath.length).split(r);if(u.length===1&&!u[0]&&u.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let l=this.root,c=u.length-1,f=n.sep,h=this.rootPath,p=!1;for(let b of u){let D=c--;l=l.child(b,{relative:new Array(D).fill("..").join(f),relativePosix:new Array(D).fill("..").join("/"),fullpath:h+=(p?"":f)+b}),p=!0}this.cwd=l}depth(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#e}resolve(...t){let n="";for(let o=t.length-1;o>=0;o--){let s=t[o];if(!(!s||s===".")&&(n=n?`${s}/${n}`:s,this.isAbsolute(s)))break}let r=this.#t.get(n);if(r!==void 0)return r;let i=this.cwd.resolve(n).fullpath();return this.#t.set(n,i),i}resolvePosix(...t){let n="";for(let o=t.length-1;o>=0;o--){let s=t[o];if(!(!s||s===".")&&(n=n?`${s}/${n}`:s,this.isAbsolute(s)))break}let r=this.#n.get(n);if(r!==void 0)return r;let i=this.cwd.resolve(n).fullpathPosix();return this.#n.set(n,i),i}relative(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,n={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t,t=this.cwd);let{withFileTypes:r}=n;if(t.canReaddir()){let i=await t.readdir();return r?i:i.map(o=>o.name)}else return[]}readdirSync(t=this.cwd,n={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t,t=this.cwd);let{withFileTypes:r=!0}=n;return t.canReaddir()?r?t.readdirSync():t.readdirSync().map(i=>i.name):[]}async lstat(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t.withFileTypes,t=this.cwd);let r=await t.readlink();return n?r:r?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t.withFileTypes,t=this.cwd);let r=t.readlinkSync();return n?r:r?.fullpath()}async realpath(t=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t.withFileTypes,t=this.cwd);let r=await t.realpath();return n?r:r?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:n}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t.withFileTypes,t=this.cwd);let r=t.realpathSync();return n?r:r?.fullpath()}async walk(t=this.cwd,n={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t,t=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:o,walkFilter:s}=n,a=[];(!o||o(t))&&a.push(r?t:t.fullpath());let u=new Set,l=(f,h)=>{u.add(f),f.readdirCB((p,b)=>{if(p)return h(p);let D=b.length;if(!D)return h();let F=()=>{--D===0&&h()};for(let g of b)(!o||o(g))&&a.push(r?g:g.fullpath()),i&&g.isSymbolicLink()?g.realpath().then(m=>m?.isUnknown()?m.lstat():m).then(m=>m?.shouldWalk(u,s)?l(m,F):F()):g.shouldWalk(u,s)?l(g,F):F()},!0)},c=t;return new Promise((f,h)=>{l(c,p=>{if(p)return h(p);f(a)})})}walkSync(t=this.cwd,n={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t,t=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:o,walkFilter:s}=n,a=[];(!o||o(t))&&a.push(r?t:t.fullpath());let u=new Set([t]);for(let l of u){let c=l.readdirSync();for(let f of c){(!o||o(f))&&a.push(r?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(i&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(u,s)&&u.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,n={}){return typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t,t=this.cwd),this.stream(t,n)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,n={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t,t=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:o,walkFilter:s}=n;(!o||o(t))&&(yield r?t:t.fullpath());let a=new Set([t]);for(let u of a){let l=u.readdirSync();for(let c of l){(!o||o(c))&&(yield r?c:c.fullpath());let f=c;if(c.isSymbolicLink()){if(!(i&&(f=c.realpathSync())))continue;f.isUnknown()&&f.lstatSync()}f.shouldWalk(a,s)&&a.add(f)}}}stream(t=this.cwd,n={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t,t=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:o,walkFilter:s}=n,a=new dT.Minipass({objectMode:!0});(!o||o(t))&&a.write(r?t:t.fullpath());let u=new Set,l=[t],c=0,f=()=>{let h=!1;for(;!h;){let p=l.shift();if(!p){c===0&&a.end();return}c++,u.add(p);let b=(F,g,m=!1)=>{if(F)return a.emit("error",F);if(i&&!m){let d=[];for(let y of g)y.isSymbolicLink()&&d.push(y.realpath().then(k=>k?.isUnknown()?k.lstat():k));if(d.length){Promise.all(d).then(()=>b(null,g,!0));return}}for(let d of g)d&&(!o||o(d))&&(a.write(r?d:d.fullpath())||(h=!0));c--;for(let d of g){let y=d.realpathCached()||d;y.shouldWalk(u,s)&&l.push(y)}h&&!a.flowing?a.once("drain",f):D||f()},D=!0;p.readdirCB(b,!0),D=!1}};return f(),a}streamSync(t=this.cwd,n={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof $e||(n=t,t=this.cwd);let{withFileTypes:r=!0,follow:i=!1,filter:o,walkFilter:s}=n,a=new dT.Minipass({objectMode:!0}),u=new Set;(!o||o(t))&&a.write(r?t:t.fullpath());let l=[t],c=0,f=()=>{let h=!1;for(;!h;){let p=l.shift();if(!p){c===0&&a.end();return}c++,u.add(p);let b=p.readdirSync();for(let D of b)(!o||o(D))&&(a.write(r?D:D.fullpath())||(h=!0));c--;for(let D of b){let F=D;if(D.isSymbolicLink()){if(!(i&&(F=D.realpathSync())))continue;F.isUnknown()&&F.lstatSync()}F.shouldWalk(u,s)&&l.push(F)}}h&&!a.flowing&&a.once("drain",f)};return f(),a}chdir(t=this.cwd){let n=this.cwd;this.cwd=typeof t=="string"?this.cwd.resolve(t):t,this.cwd[kT](n)}};le.PathScurryBase=oa;var sa=class extends oa{sep="\\";constructor(t=process.cwd(),n={}){let{nocase:r=!0}=n;super(t,Cc.win32,"\\",{...n,nocase:r}),this.nocase=r;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(t){return Cc.win32.parse(t).root.toUpperCase()}newRoot(t){return new ra(this.rootPath,sn,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}};le.PathScurryWin32=sa;var aa=class extends oa{sep="/";constructor(t=process.cwd(),n={}){let{nocase:r=!1}=n;super(t,Cc.posix,"/",{...n,nocase:r}),this.nocase=r}parseRootPath(t){return"/"}newRoot(t){return new ia(this.rootPath,sn,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}};le.PathScurryPosix=aa;var Rc=class extends aa{constructor(t=process.cwd(),n={}){let{nocase:r=!0}=n;super(t,{...n,nocase:r})}};le.PathScurryDarwin=Rc;le.Path=process.platform==="win32"?ra:ia;le.PathScurry=process.platform==="win32"?sa:process.platform==="darwin"?Rc:aa});var mg=w(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.Pattern=void 0;var H9=yn(),G9=e=>e.length>=1,V9=e=>e.length>=1,dg=class e{#t;#n;#e;length;#s;#c;#D;#o;#f;#u;#a=!0;constructor(t,n,r,i){if(!G9(t))throw new TypeError("empty pattern list");if(!V9(n))throw new TypeError("empty glob list");if(n.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#t=t,this.#n=n,this.#e=r,this.#s=i,this.#e===0){if(this.isUNC()){let[o,s,a,u,...l]=this.#t,[c,f,h,p,...b]=this.#n;l[0]===""&&(l.shift(),b.shift());let D=[o,s,a,u,""].join("/"),F=[c,f,h,p,""].join("/");this.#t=[D,...l],this.#n=[F,...b],this.length=this.#t.length}else if(this.isDrive()||this.isAbsolute()){let[o,...s]=this.#t,[a,...u]=this.#n;s[0]===""&&(s.shift(),u.shift());let l=o+"/",c=a+"/";this.#t=[l,...s],this.#n=[c,...u],this.length=this.#t.length}}}pattern(){return this.#t[this.#e]}isString(){return typeof this.#t[this.#e]=="string"}isGlobstar(){return this.#t[this.#e]===H9.GLOBSTAR}isRegExp(){return this.#t[this.#e]instanceof RegExp}globString(){return this.#D=this.#D||(this.#e===0?this.isAbsolute()?this.#n[0]+this.#n.slice(1).join("/"):this.#n.join("/"):this.#n.slice(this.#e).join("/"))}hasMore(){return this.length>this.#e+1}rest(){return this.#c!==void 0?this.#c:this.hasMore()?(this.#c=new e(this.#t,this.#n,this.#e+1,this.#s),this.#c.#u=this.#u,this.#c.#f=this.#f,this.#c.#o=this.#o,this.#c):this.#c=null}isUNC(){let t=this.#t;return this.#f!==void 0?this.#f:this.#f=this.#s==="win32"&&this.#e===0&&t[0]===""&&t[1]===""&&typeof t[2]=="string"&&!!t[2]&&typeof t[3]=="string"&&!!t[3]}isDrive(){let t=this.#t;return this.#o!==void 0?this.#o:this.#o=this.#s==="win32"&&this.#e===0&&this.length>1&&typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#t;return this.#u!==void 0?this.#u:this.#u=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#t[0];return typeof t=="string"&&this.isAbsolute()&&this.#e===0?t:""}checkFollowGlobstar(){return!(this.#e===0||!this.isGlobstar()||!this.#a)}markFollowGlobstar(){return this.#e===0||!this.isGlobstar()||!this.#a?!1:(this.#a=!1,!0)}};Oc.Pattern=dg});var yg=w(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.Ignore=void 0;var CT=yn(),K9=mg(),Y9=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",gg=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:n,nocase:r,noext:i,noglobstar:o,platform:s=Y9}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=s,this.mmopts={dot:!0,nobrace:n,nocase:r,noext:i,noglobstar:o,optimizationLevel:2,platform:s,nocomment:!0,nonegate:!0};for(let a of t)this.add(a)}add(t){let n=new CT.Minimatch(t,this.mmopts);for(let r=0;r<n.set.length;r++){let i=n.set[r],o=n.globParts[r];if(!i||!o)throw new Error("invalid pattern object");for(;i[0]==="."&&o[0]===".";)i.shift(),o.shift();let s=new K9.Pattern(i,o,0,this.platform),a=new CT.Minimatch(s.globString(),this.mmopts),u=o[o.length-1]==="**",l=s.isAbsolute();l?this.absolute.push(a):this.relative.push(a),u&&(l?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(t){let n=t.fullpath(),r=`${n}/`,i=t.relative()||".",o=`${i}/`;for(let s of this.relative)if(s.match(i)||s.match(o))return!0;for(let s of this.absolute)if(s.match(n)||s.match(r))return!0;return!1}childrenIgnored(t){let n=t.fullpath()+"/",r=(t.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(r))return!0;for(let i of this.absoluteChildren)if(i.match(n))return!0;return!1}};Ic.Ignore=gg});var RT=w(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.Processor=an.SubWalks=an.MatchRecord=an.HasWalkedCache=void 0;var AT=yn(),Lc=class e{store;constructor(t=new Map){this.store=t}copy(){return new e(new Map(this.store))}hasWalked(t,n){return this.store.get(t.fullpath())?.has(n.globString())}storeWalked(t,n){let r=t.fullpath(),i=this.store.get(r);i?i.add(n.globString()):this.store.set(r,new Set([n.globString()]))}};an.HasWalkedCache=Lc;var Pc=class{store=new Map;add(t,n,r){let i=(n?2:0)|(r?1:0),o=this.store.get(t);this.store.set(t,o===void 0?i:i&o)}entries(){return[...this.store.entries()].map(([t,n])=>[t,!!(n&2),!!(n&1)])}};an.MatchRecord=Pc;var Bc=class{store=new Map;add(t,n){if(!t.canReaddir())return;let r=this.store.get(t);r?r.find(i=>i.globString()===n.globString())||r.push(n):this.store.set(t,[n])}get(t){let n=this.store.get(t);if(!n)throw new Error("attempting to walk unknown path");return n}entries(){return this.keys().map(t=>[t,this.store.get(t)])}keys(){return[...this.store.keys()].filter(t=>t.canReaddir())}};an.SubWalks=Bc;var bg=class e{hasWalkedCache;matches=new Pc;subwalks=new Bc;patterns;follow;dot;opts;constructor(t,n){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=n?n.copy():new Lc}processPatterns(t,n){this.patterns=n;let r=n.map(i=>[t,i]);for(let[i,o]of r){this.hasWalkedCache.storeWalked(i,o);let s=o.root(),a=o.isAbsolute()&&this.opts.absolute!==!1;if(s){i=i.resolve(s==="/"&&this.opts.root!==void 0?this.opts.root:s);let f=o.rest();if(f)o=f;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let u,l,c=!1;for(;typeof(u=o.pattern())=="string"&&(l=o.rest());)i=i.resolve(u),o=l,c=!0;if(u=o.pattern(),l=o.rest(),c){if(this.hasWalkedCache.hasWalked(i,o))continue;this.hasWalkedCache.storeWalked(i,o)}if(typeof u=="string"){let f=u===".."||u===""||u===".";this.matches.add(i.resolve(u),a,f);continue}else if(u===AT.GLOBSTAR){(!i.isSymbolicLink()||this.follow||o.checkFollowGlobstar())&&this.subwalks.add(i,o);let f=l?.pattern(),h=l?.rest();if(!l||(f===""||f===".")&&!h)this.matches.add(i,a,f===""||f===".");else if(f===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,a,!0)}}else u instanceof RegExp&&this.subwalks.add(i,o)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(t,n){let r=this.subwalks.get(t),i=this.child();for(let o of n)for(let s of r){let a=s.isAbsolute(),u=s.pattern(),l=s.rest();u===AT.GLOBSTAR?i.testGlobstar(o,s,l,a):u instanceof RegExp?i.testRegExp(o,u,l,a):i.testString(o,u,l,a)}return i}testGlobstar(t,n,r,i){if((this.dot||!t.name.startsWith("."))&&(n.hasMore()||this.matches.add(t,i,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,n):t.isSymbolicLink()&&(r&&n.checkFollowGlobstar()?this.subwalks.add(t,r):n.markFollowGlobstar()&&this.subwalks.add(t,n)))),r){let o=r.pattern();if(typeof o=="string"&&o!==".."&&o!==""&&o!==".")this.testString(t,o,r.rest(),i);else if(o===".."){let s=t.parent||t;this.subwalks.add(s,r)}else o instanceof RegExp&&this.testRegExp(t,o,r.rest(),i)}}testRegExp(t,n,r,i){n.test(t.name)&&(r?this.subwalks.add(t,r):this.matches.add(t,i,!1))}testString(t,n,r,i){t.isNamed(n)&&(r?this.subwalks.add(t,r):this.matches.add(t,i,!1))}};an.Processor=bg});var LT=w(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.GlobStream=rr.GlobWalker=rr.GlobUtil=void 0;var Q9=fg(),OT=yg(),IT=RT(),Z9=(e,t)=>typeof e=="string"?new OT.Ignore([e],t):Array.isArray(e)?new OT.Ignore(e,t):e,ua=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#t=[];#n;#e;signal;maxDepth;includeChildMatches;constructor(t,n,r){if(this.patterns=t,this.path=n,this.opts=r,this.#e=!r.posix&&r.platform==="win32"?"\\":"/",this.includeChildMatches=r.includeChildMatches!==!1,(r.ignore||!this.includeChildMatches)&&(this.#n=Z9(r.ignore??[],r),!this.includeChildMatches&&typeof this.#n.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",()=>{this.#t.length=0}))}#s(t){return this.seen.has(t)||!!this.#n?.ignored?.(t)}#c(t){return!!this.#n?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let t;for(;!this.paused&&(t=this.#t.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#t.push(t):t())}async matchCheck(t,n){if(n&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=t.realpathCached()||await t.realpath(),!r)return;t=r}let o=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&o?.isSymbolicLink()){let s=await o.realpath();s&&(s.isUnknown()||this.opts.stat)&&await s.lstat()}return this.matchCheckTest(o,n)}matchCheckTest(t,n){return t&&(this.maxDepth===1/0||t.depth()<=this.maxDepth)&&(!n||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#s(t)?t:void 0}matchCheckSync(t,n){if(n&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=t.realpathCached()||t.realpathSync(),!r)return;t=r}let o=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&o?.isSymbolicLink()){let s=o.realpathSync();s&&(s?.isUnknown()||this.opts.stat)&&s.lstatSync()}return this.matchCheckTest(o,n)}matchFinish(t,n){if(this.#s(t))return;if(!this.includeChildMatches&&this.#n?.add){let o=`${t.relativePosix()}/**`;this.#n.add(o)}let r=this.opts.absolute===void 0?n:this.opts.absolute;this.seen.add(t);let i=this.opts.mark&&t.isDirectory()?this.#e:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(r){let o=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(o+i)}else{let o=this.opts.posix?t.relativePosix():t.relative(),s=this.opts.dotRelative&&!o.startsWith(".."+this.#e)?"."+this.#e:"";this.matchEmit(o?s+o+i:"."+i)}}async match(t,n,r){let i=await this.matchCheck(t,r);i&&this.matchFinish(i,n)}matchSync(t,n,r){let i=this.matchCheckSync(t,r);i&&this.matchFinish(i,n)}walkCB(t,n,r){this.signal?.aborted&&r(),this.walkCB2(t,n,new IT.Processor(this.opts),r)}walkCB2(t,n,r,i){if(this.#c(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(t,n,r,i));return}r.processPatterns(t,n);let o=1,s=()=>{--o===0&&i()};for(let[a,u,l]of r.matches.entries())this.#s(a)||(o++,this.match(a,u,l).then(()=>s()));for(let a of r.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;o++;let u=a.readdirCached();a.calledReaddir()?this.walkCB3(a,u,r,s):a.readdirCB((l,c)=>this.walkCB3(a,c,r,s),!0)}s()}walkCB3(t,n,r,i){r=r.filterEntries(t,n);let o=1,s=()=>{--o===0&&i()};for(let[a,u,l]of r.matches.entries())this.#s(a)||(o++,this.match(a,u,l).then(()=>s()));for(let[a,u]of r.subwalks.entries())o++,this.walkCB2(a,u,r.child(),s);s()}walkCBSync(t,n,r){this.signal?.aborted&&r(),this.walkCB2Sync(t,n,new IT.Processor(this.opts),r)}walkCB2Sync(t,n,r,i){if(this.#c(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(t,n,r,i));return}r.processPatterns(t,n);let o=1,s=()=>{--o===0&&i()};for(let[a,u,l]of r.matches.entries())this.#s(a)||this.matchSync(a,u,l);for(let a of r.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;o++;let u=a.readdirSync();this.walkCB3Sync(a,u,r,s)}s()}walkCB3Sync(t,n,r,i){r=r.filterEntries(t,n);let o=1,s=()=>{--o===0&&i()};for(let[a,u,l]of r.matches.entries())this.#s(a)||this.matchSync(a,u,l);for(let[a,u]of r.subwalks.entries())o++,this.walkCB2Sync(a,u,r.child(),s);s()}};rr.GlobUtil=ua;var Dg=class extends ua{matches=new Set;constructor(t,n,r){super(t,n,r)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,n)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?n(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};rr.GlobWalker=Dg;var wg=class extends ua{results;constructor(t,n,r){super(t,n,r),this.results=new Q9.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){let t=this.path;return t.isUnknown()?t.lstat().then(()=>{this.walkCB(t,this.patterns,()=>this.results.end())}):this.walkCB(t,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};rr.GlobStream=wg});var xg=w(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.Glob=void 0;var J9=yn(),X9=N("node:url"),qc=TT(),ez=mg(),Nc=LT(),tz=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",_g=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,n){if(!n)throw new TypeError("glob options required");if(this.withFileTypes=!!n.withFileTypes,this.signal=n.signal,this.follow=!!n.follow,this.dot=!!n.dot,this.dotRelative=!!n.dotRelative,this.nodir=!!n.nodir,this.mark=!!n.mark,n.cwd?(n.cwd instanceof URL||n.cwd.startsWith("file://"))&&(n.cwd=(0,X9.fileURLToPath)(n.cwd)):this.cwd="",this.cwd=n.cwd||"",this.root=n.root,this.magicalBraces=!!n.magicalBraces,this.nobrace=!!n.nobrace,this.noext=!!n.noext,this.realpath=!!n.realpath,this.absolute=n.absolute,this.includeChildMatches=n.includeChildMatches!==!1,this.noglobstar=!!n.noglobstar,this.matchBase=!!n.matchBase,this.maxDepth=typeof n.maxDepth=="number"?n.maxDepth:1/0,this.stat=!!n.stat,this.ignore=n.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof t=="string"&&(t=[t]),this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(t=t.map(u=>u.replace(/\\/g,"/"))),this.matchBase){if(n.noglobstar)throw new TypeError("base matching requires globstar");t=t.map(u=>u.includes("/")?u:`./**/${u}`)}if(this.pattern=t,this.platform=n.platform||tz,this.opts={...n,platform:this.platform},n.scurry){if(this.scurry=n.scurry,n.nocase!==void 0&&n.nocase!==n.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let u=n.platform==="win32"?qc.PathScurryWin32:n.platform==="darwin"?qc.PathScurryDarwin:n.platform?qc.PathScurryPosix:qc.PathScurry;this.scurry=new u(this.cwd,{nocase:n.nocase,fs:n.fs})}this.nocase=this.scurry.nocase;let r=this.platform==="darwin"||this.platform==="win32",i={...n,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},o=this.pattern.map(u=>new J9.Minimatch(u,i)),[s,a]=o.reduce((u,l)=>(u[0].push(...l.set),u[1].push(...l.globParts),u),[[],[]]);this.patterns=s.map((u,l)=>{let c=a[l];if(!c)throw new Error("invalid pattern object");return new ez.Pattern(u,c,0,this.platform)})}async walk(){return[...await new Nc.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Nc.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Nc.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Nc.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};Mc.Glob=_g});var vg=w(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.hasMagic=void 0;var nz=yn(),rz=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let n of e)if(new nz.Minimatch(n,t).hasMagic())return!0;return!1};jc.hasMagic=rz});var NT=w(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.glob=te.sync=te.iterate=te.iterateSync=te.stream=te.streamSync=te.Ignore=te.hasMagic=te.Glob=te.unescape=te.escape=void 0;te.globStreamSync=la;te.globStream=Eg;te.globSync=Sg;te.globIterateSync=ca;te.globIterate=Fg;var PT=yn(),ei=xg(),iz=vg(),qT=yn();Object.defineProperty(te,"escape",{enumerable:!0,get:function(){return qT.escape}});Object.defineProperty(te,"unescape",{enumerable:!0,get:function(){return qT.unescape}});var oz=xg();Object.defineProperty(te,"Glob",{enumerable:!0,get:function(){return oz.Glob}});var sz=vg();Object.defineProperty(te,"hasMagic",{enumerable:!0,get:function(){return sz.hasMagic}});var az=yg();Object.defineProperty(te,"Ignore",{enumerable:!0,get:function(){return az.Ignore}});function la(e,t={}){return new ei.Glob(e,t).streamSync()}function Eg(e,t={}){return new ei.Glob(e,t).stream()}function Sg(e,t={}){return new ei.Glob(e,t).walkSync()}async function BT(e,t={}){return new ei.Glob(e,t).walk()}function ca(e,t={}){return new ei.Glob(e,t).iterateSync()}function Fg(e,t={}){return new ei.Glob(e,t).iterate()}te.streamSync=la;te.stream=Object.assign(Eg,{sync:la});te.iterateSync=ca;te.iterate=Object.assign(Fg,{sync:ca});te.sync=Object.assign(Sg,{stream:la,iterate:ca});te.glob=Object.assign(BT,{glob:BT,globSync:Sg,sync:te.sync,globStream:Eg,stream:te.stream,globStreamSync:la,streamSync:te.streamSync,globIterate:Fg,iterate:te.iterate,globIterateSync:ca,iterateSync:te.iterateSync,Glob:ei.Glob,hasMagic:iz.hasMagic,escape:PT.escape,unescape:PT.unescape});te.glob.glob=te.glob});var zT=w((Nie,UT)=>{"use strict";var jT=id(),co=N("path"),kg=EF(),uz=Mk(),lz=Qk(),cz=rT(),fz=NT(),ti=UT.exports={},MT=/[\/\\]/g,hz=function(e,t){var n=[];return kg(e).forEach(function(r){var i=r.indexOf("!")===0;i&&(r=r.slice(1));var o=t(r);i?n=uz(n,o):n=lz(n,o)}),n};ti.exists=function(){var e=co.join.apply(co,arguments);return jT.existsSync(e)};ti.expand=function(...e){var t=cz(e[0])?e.shift():{},n=Array.isArray(e[0])?e[0]:e;if(n.length===0)return[];var r=hz(n,function(i){return fz.sync(i,t)});return t.filter&&(r=r.filter(function(i){i=co.join(t.cwd||"",i);try{return typeof t.filter=="function"?t.filter(i):jT.statSync(i)[t.filter]()}catch{return!1}})),r};ti.expandMapping=function(e,t,n){n=Object.assign({rename:function(o,s){return co.join(o||"",s)}},n);var r=[],i={};return ti.expand(n,e).forEach(function(o){var s=o;n.flatten&&(s=co.basename(s)),n.ext&&(s=s.replace(/(\.[^\/]*)?$/,n.ext));var a=n.rename(t,s,n);n.cwd&&(o=co.join(n.cwd,o)),a=a.replace(MT,"/"),o=o.replace(MT,"/"),i[a]?i[a].src.push(o):(r.push({src:[o],dest:a}),i[a]=r[r.length-1])}),r};ti.normalizeFilesArray=function(e){var t=[];return e.forEach(function(n){var r;("src"in n||"dest"in n)&&t.push(n)}),t.length===0?[]:(t=_(t).chain().forEach(function(n){!("src"in n)||!n.src||(Array.isArray(n.src)?n.src=kg(n.src):n.src=[n.src])}).map(function(n){var r=Object.assign({},n);if(delete r.src,delete r.dest,n.expand)return ti.expandMapping(n.src,n.dest,r).map(function(o){var s=Object.assign({},n);return s.orig=Object.assign({},n),s.src=o.src,s.dest=o.dest,["expand","cwd","flatten","rename","ext"].forEach(function(a){delete s[a]}),s});var i=Object.assign({},n);return i.orig=Object.assign({},n),"src"in i&&Object.defineProperty(i,"src",{enumerable:!0,get:function o(){var s;return"result"in o||(s=n.src,s=Array.isArray(s)?kg(s):[s],o.result=ti.expand(r,s)),o.result}}),"dest"in i&&(i.dest=n.dest),i}).flatten().value(),t)}});var fo=w((jie,HT)=>{"use strict";var Tg=id(),WT=N("path"),pz=gl(),dz=Ix(),$T=Sd(),mz=pE(),Mie=N("stream").Stream,gz=Zr().PassThrough,yt=HT.exports={};yt.file=zT();yt.collectStream=function(e,t){var n=[],r=0;e.on("error",t),e.on("data",function(i){n.push(i),r+=i.length}),e.on("end",function(){var i=Buffer.alloc(r),o=0;n.forEach(function(s){s.copy(i,o),o+=s.length}),t(null,i)})};yt.dateify=function(e){return e=e||new Date,e instanceof Date?e=e:typeof e=="string"?e=new Date(e):e=new Date,e};yt.defaults=function(e,t,n){var r=arguments;return r[0]=r[0]||{},mz(...r)};yt.isStream=function(e){return pz(e)};yt.lazyReadStream=function(e){return new dz.Readable(function(){return Tg.createReadStream(e)})};yt.normalizeInputSource=function(e){return e===null?Buffer.alloc(0):typeof e=="string"?Buffer.from(e):yt.isStream(e)?e.pipe(new gz):e};yt.sanitizePath=function(e){return $T(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};yt.trailingSlashIt=function(e){return e.slice(-1)!=="/"?e+"/":e};yt.unixifyPath=function(e){return $T(e,!1).replace(/^\w+:/,"")};yt.walkdir=function(e,t,n){var r=[];typeof t=="function"&&(n=t,t=e),Tg.readdir(e,function(i,o){var s=0,a,u;if(i)return n(i);(function l(){if(a=o[s++],!a)return n(null,r);u=WT.join(e,a),Tg.stat(u,function(c,f){r.push({path:u,relative:WT.relative(t,u).replace(/\\/g,"/"),stats:f}),f&&f.isDirectory()?yt.walkdir(u,t,function(h,p){if(h)return n(h);p.forEach(function(b){r.push(b)}),l()}):l()})})()})}});var YT=w((VT,KT)=>{"use strict";var yz=N("util"),bz={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function GT(e,t){Error.captureStackTrace(this,this.constructor),this.message=bz[e]||e,this.code=e,this.data=t}yz.inherits(GT,Error);VT=KT.exports=GT});var eC=w((Uie,XT)=>{"use strict";var Rg=N("fs"),ZT=Tw(),QT=(k_(),R2(F_)),Cg=N("path"),un=fo(),Dz=N("util").inherits,Ee=YT(),JT=Zr().Transform,Ag=process.platform==="win32",se=function(e,t){if(!(this instanceof se))return new se(e,t);typeof e!="string"&&(t=e,e="zip"),t=this.options=un.defaults(t,{highWaterMark:1024*1024,statConcurrency:4}),JT.call(this,t),this._format=!1,this._module=!1,this._pending=0,this._pointer=0,this._entriesCount=0,this._entriesProcessedCount=0,this._fsEntriesTotalBytes=0,this._fsEntriesProcessedBytes=0,this._queue=QT.queue(this._onQueueTask.bind(this),1),this._queue.drain(this._onQueueDrain.bind(this)),this._statQueue=QT.queue(this._onStatQueueTask.bind(this),t.statConcurrency),this._statQueue.drain(this._onQueueDrain.bind(this)),this._state={aborted:!1,finalize:!1,finalizing:!1,finalized:!1,modulePiped:!1},this._streams=[]};Dz(se,JT);se.prototype._abort=function(){this._state.aborted=!0,this._queue.kill(),this._statQueue.kill(),this._queue.idle()&&this._shutdown()};se.prototype._append=function(e,t){t=t||{};var n={source:null,filepath:e};t.name||(t.name=e),t.sourcePath=e,n.data=t,this._entriesCount++,t.stats&&t.stats instanceof Rg.Stats?(n=this._updateQueueTaskWithStats(n,t.stats),n&&(t.stats.size&&(this._fsEntriesTotalBytes+=t.stats.size),this._queue.push(n))):this._statQueue.push(n)};se.prototype._finalize=function(){this._state.finalizing||this._state.finalized||this._state.aborted||(this._state.finalizing=!0,this._moduleFinalize(),this._state.finalizing=!1,this._state.finalized=!0)};se.prototype._maybeFinalize=function(){return this._state.finalizing||this._state.finalized||this._state.aborted?!1:this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()?(this._finalize(),!0):!1};se.prototype._moduleAppend=function(e,t,n){if(this._state.aborted){n();return}this._module.append(e,t,function(r){if(this._task=null,this._state.aborted){this._shutdown();return}if(r){this.emit("error",r),setImmediate(n);return}this.emit("entry",t),this._entriesProcessedCount++,t.stats&&t.stats.size&&(this._fsEntriesProcessedBytes+=t.stats.size),this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}}),setImmediate(n)}.bind(this))};se.prototype._moduleFinalize=function(){typeof this._module.finalize=="function"?this._module.finalize():typeof this._module.end=="function"?this._module.end():this.emit("error",new Ee("NOENDMETHOD"))};se.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this)),this._module.pipe(this),this._state.modulePiped=!0};se.prototype._moduleSupports=function(e){return!this._module.supports||!this._module.supports[e]?!1:this._module.supports[e]};se.prototype._moduleUnpipe=function(){this._module.unpipe(this),this._state.modulePiped=!1};se.prototype._normalizeEntryData=function(e,t){e=un.defaults(e,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:!1}),t&&e.stats===!1&&(e.stats=t);var n=e.type==="directory";return e.name&&(typeof e.prefix=="string"&&e.prefix!==""&&(e.name=e.prefix+"/"+e.name,e.prefix=null),e.name=un.sanitizePath(e.name),e.type!=="symlink"&&e.name.slice(-1)==="/"?(n=!0,e.type="directory"):n&&(e.name+="/")),typeof e.mode=="number"?Ag?e.mode&=511:e.mode&=4095:e.stats&&e.mode===null?(Ag?e.mode=e.stats.mode&511:e.mode=e.stats.mode&4095,Ag&&n&&(e.mode=493)):e.mode===null&&(e.mode=n?493:420),e.stats&&e.date===null?e.date=e.stats.mtime:e.date=un.dateify(e.date),e};se.prototype._onModuleError=function(e){this.emit("error",e)};se.prototype._onQueueDrain=function(){this._state.finalizing||this._state.finalized||this._state.aborted||this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize()};se.prototype._onQueueTask=function(e,t){var n=()=>{e.data.callback&&e.data.callback(),t()};if(this._state.finalizing||this._state.finalized||this._state.aborted){n();return}this._task=e,this._moduleAppend(e.source,e.data,n)};se.prototype._onStatQueueTask=function(e,t){if(this._state.finalizing||this._state.finalized||this._state.aborted){t();return}Rg.lstat(e.filepath,function(n,r){if(this._state.aborted){setImmediate(t);return}if(n){this._entriesCount--,this.emit("warning",n),setImmediate(t);return}e=this._updateQueueTaskWithStats(e,r),e&&(r.size&&(this._fsEntriesTotalBytes+=r.size),this._queue.push(e)),setImmediate(t)}.bind(this))};se.prototype._shutdown=function(){this._moduleUnpipe(),this.end()};se.prototype._transform=function(e,t,n){e&&(this._pointer+=e.length),n(null,e)};se.prototype._updateQueueTaskWithStats=function(e,t){if(t.isFile())e.data.type="file",e.data.sourceType="stream",e.source=un.lazyReadStream(e.filepath);else if(t.isDirectory()&&this._moduleSupports("directory"))e.data.name=un.trailingSlashIt(e.data.name),e.data.type="directory",e.data.sourcePath=un.trailingSlashIt(e.filepath),e.data.sourceType="buffer",e.source=Buffer.concat([]);else if(t.isSymbolicLink()&&this._moduleSupports("symlink")){var n=Rg.readlinkSync(e.filepath),r=Cg.dirname(e.filepath);e.data.type="symlink",e.data.linkname=Cg.relative(r,Cg.resolve(r,n)),e.data.sourceType="buffer",e.source=Buffer.concat([])}else return t.isDirectory()?this.emit("warning",new Ee("DIRECTORYNOTSUPPORTED",e.data)):t.isSymbolicLink()?this.emit("warning",new Ee("SYMLINKNOTSUPPORTED",e.data)):this.emit("warning",new Ee("ENTRYNOTSUPPORTED",e.data)),null;return e.data=this._normalizeEntryData(e.data,t),e};se.prototype.abort=function(){return this._state.aborted||this._state.finalized?this:(this._abort(),this)};se.prototype.append=function(e,t){if(this._state.finalize||this._state.aborted)return this.emit("error",new Ee("QUEUECLOSED")),this;if(t=this._normalizeEntryData(t),typeof t.name!="string"||t.name.length===0)return this.emit("error",new Ee("ENTRYNAMEREQUIRED")),this;if(t.type==="directory"&&!this._moduleSupports("directory"))return this.emit("error",new Ee("DIRECTORYNOTSUPPORTED",{name:t.name})),this;if(e=un.normalizeInputSource(e),Buffer.isBuffer(e))t.sourceType="buffer";else if(un.isStream(e))t.sourceType="stream";else return this.emit("error",new Ee("INPUTSTEAMBUFFERREQUIRED",{name:t.name})),this;return this._entriesCount++,this._queue.push({data:t,source:e}),this};se.prototype.directory=function(e,t,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new Ee("QUEUECLOSED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new Ee("DIRECTORYDIRPATHREQUIRED")),this;this._pending++,t===!1?t="":typeof t!="string"&&(t=e);var r=!1;typeof n=="function"?(r=n,n={}):typeof n!="object"&&(n={});var i={stat:!0,dot:!0};function o(){this._pending--,this._maybeFinalize()}function s(l){this.emit("error",l)}function a(l){u.pause();var c=!1,f=Object.assign({},n);f.name=l.relative,f.prefix=t,f.stats=l.stat,f.callback=u.resume.bind(u);try{if(r){if(f=r(f),f===!1)c=!0;else if(typeof f!="object")throw new Ee("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:e})}}catch(h){this.emit("error",h);return}if(c){u.resume();return}this._append(l.absolute,f)}var u=ZT(e,i);return u.on("error",s.bind(this)),u.on("match",a.bind(this)),u.on("end",o.bind(this)),this};se.prototype.file=function(e,t){return this._state.finalize||this._state.aborted?(this.emit("error",new Ee("QUEUECLOSED")),this):typeof e!="string"||e.length===0?(this.emit("error",new Ee("FILEFILEPATHREQUIRED")),this):(this._append(e,t),this)};se.prototype.glob=function(e,t,n){this._pending++,t=un.defaults(t,{stat:!0,pattern:e});function r(){this._pending--,this._maybeFinalize()}function i(a){this.emit("error",a)}function o(a){s.pause();var u=Object.assign({},n);u.callback=s.resume.bind(s),u.stats=a.stat,u.name=a.relative,this._append(a.absolute,u)}var s=ZT(t.cwd||".",t);return s.on("error",i.bind(this)),s.on("match",o.bind(this)),s.on("end",r.bind(this)),this};se.prototype.finalize=function(){if(this._state.aborted){var e=new Ee("ABORTED");return this.emit("error",e),Promise.reject(e)}if(this._state.finalize){var t=new Ee("FINALIZING");return this.emit("error",t),Promise.reject(t)}this._state.finalize=!0,this._pending===0&&this._queue.idle()&&this._statQueue.idle()&&this._finalize();var n=this;return new Promise(function(r,i){var o;n._module.on("end",function(){o||r()}),n._module.on("error",function(s){o=!0,i(s)})})};se.prototype.setFormat=function(e){return this._format?(this.emit("error",new Ee("FORMATSET")),this):(this._format=e,this)};se.prototype.setModule=function(e){return this._state.aborted?(this.emit("error",new Ee("ABORTED")),this):this._state.module?(this.emit("error",new Ee("MODULESET")),this):(this._module=e,this._modulePipe(),this)};se.prototype.symlink=function(e,t,n){if(this._state.finalize||this._state.aborted)return this.emit("error",new Ee("QUEUECLOSED")),this;if(typeof e!="string"||e.length===0)return this.emit("error",new Ee("SYMLINKFILEPATHREQUIRED")),this;if(typeof t!="string"||t.length===0)return this.emit("error",new Ee("SYMLINKTARGETREQUIRED",{filepath:e})),this;if(!this._moduleSupports("symlink"))return this.emit("error",new Ee("SYMLINKNOTSUPPORTED",{filepath:e})),this;var r={};return r.type="symlink",r.name=e.replace(/\\/g,"/"),r.linkname=t.replace(/\\/g,"/"),r.sourceType="buffer",typeof n=="number"&&(r.mode=n),this._entriesCount++,this._queue.push({data:r,source:Buffer.concat([])}),this};se.prototype.pointer=function(){return this._pointer};se.prototype.use=function(e){return this._streams.push(e),this};XT.exports=se});var zc=w((zie,tC)=>{"use strict";var Uc=tC.exports=function(){};Uc.prototype.getName=function(){};Uc.prototype.getSize=function(){};Uc.prototype.getLastModifiedDate=function(){};Uc.prototype.isDirectory=function(){}});var Wc=w((Wie,nC)=>{"use strict";var Lt=nC.exports={};Lt.dateToDos=function(e,t){t=t||!1;var n=t?e.getFullYear():e.getUTCFullYear();if(n<1980)return 2162688;if(n>=2044)return 2141175677;var r={year:n,month:t?e.getMonth():e.getUTCMonth(),date:t?e.getDate():e.getUTCDate(),hours:t?e.getHours():e.getUTCHours(),minutes:t?e.getMinutes():e.getUTCMinutes(),seconds:t?e.getSeconds():e.getUTCSeconds()};return r.year-1980<<25|r.month+1<<21|r.date<<16|r.hours<<11|r.minutes<<5|r.seconds/2};Lt.dosToDate=function(e){return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)};Lt.fromDosTime=function(e){return Lt.dosToDate(e.readUInt32LE(0))};Lt.getEightBytes=function(e){var t=Buffer.alloc(8);return t.writeUInt32LE(e%4294967296,0),t.writeUInt32LE(e/4294967296|0,4),t};Lt.getShortBytes=function(e){var t=Buffer.alloc(2);return t.writeUInt16LE((e&65535)>>>0,0),t};Lt.getShortBytesValue=function(e,t){return e.readUInt16LE(t)};Lt.getLongBytes=function(e){var t=Buffer.alloc(4);return t.writeUInt32LE((e&4294967295)>>>0,0),t};Lt.getLongBytesValue=function(e,t){return e.readUInt32LE(t)};Lt.toDosTime=function(e){return Lt.getLongBytes(Lt.dateToDos(e))}});var Og=w(($ie,uC)=>{"use strict";var rC=Wc(),iC=8,oC=1,wz=4,_z=2,sC=64,aC=2048,He=uC.exports=function(){return this instanceof He?(this.descriptor=!1,this.encryption=!1,this.utf8=!1,this.numberOfShannonFanoTrees=0,this.strongEncryption=!1,this.slidingDictionarySize=0,this):new He};He.prototype.encode=function(){return rC.getShortBytes((this.descriptor?iC:0)|(this.utf8?aC:0)|(this.encryption?oC:0)|(this.strongEncryption?sC:0))};He.prototype.parse=function(e,t){var n=rC.getShortBytesValue(e,t),r=new He;return r.useDataDescriptor((n&iC)!==0),r.useUTF8ForNames((n&aC)!==0),r.useStrongEncryption((n&sC)!==0),r.useEncryption((n&oC)!==0),r.setSlidingDictionarySize((n&_z)!==0?8192:4096),r.setNumberOfShannonFanoTrees((n&wz)!==0?3:2),r};He.prototype.setNumberOfShannonFanoTrees=function(e){this.numberOfShannonFanoTrees=e};He.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};He.prototype.setSlidingDictionarySize=function(e){this.slidingDictionarySize=e};He.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};He.prototype.useDataDescriptor=function(e){this.descriptor=e};He.prototype.usesDataDescriptor=function(){return this.descriptor};He.prototype.useEncryption=function(e){this.encryption=e};He.prototype.usesEncryption=function(){return this.encryption};He.prototype.useStrongEncryption=function(e){this.strongEncryption=e};He.prototype.usesStrongEncryption=function(){return this.strongEncryption};He.prototype.useUTF8ForNames=function(e){this.utf8=e};He.prototype.usesUTF8ForNames=function(){return this.utf8}});var cC=w((Hie,lC)=>{"use strict";lC.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}});var Ig=w((Gie,fC)=>{"use strict";fC.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}});var Lg=w((Vie,gC)=>{"use strict";var xz=N("util").inherits,vz=Sd(),pC=zc(),dC=Og(),hC=cC(),ot=Ig(),mC=Wc(),J=gC.exports=function(e){if(!(this instanceof J))return new J(e);pC.call(this),this.platform=ot.PLATFORM_FAT,this.method=-1,this.name=null,this.size=0,this.csize=0,this.gpb=new dC,this.crc=0,this.time=-1,this.minver=ot.MIN_VERSION_INITIAL,this.mode=-1,this.extra=null,this.exattr=0,this.inattr=0,this.comment=null,e&&this.setName(e)};xz(J,pC);J.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};J.prototype.getComment=function(){return this.comment!==null?this.comment:""};J.prototype.getCompressedSize=function(){return this.csize};J.prototype.getCrc=function(){return this.crc};J.prototype.getExternalAttributes=function(){return this.exattr};J.prototype.getExtra=function(){return this.extra!==null?this.extra:ot.EMPTY};J.prototype.getGeneralPurposeBit=function(){return this.gpb};J.prototype.getInternalAttributes=function(){return this.inattr};J.prototype.getLastModifiedDate=function(){return this.getTime()};J.prototype.getLocalFileDataExtra=function(){return this.getExtra()};J.prototype.getMethod=function(){return this.method};J.prototype.getName=function(){return this.name};J.prototype.getPlatform=function(){return this.platform};J.prototype.getSize=function(){return this.size};J.prototype.getTime=function(){return this.time!==-1?mC.dosToDate(this.time):-1};J.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};J.prototype.getUnixMode=function(){return this.platform!==ot.PLATFORM_UNIX?0:this.getExternalAttributes()>>ot.SHORT_SHIFT&ot.SHORT_MASK};J.prototype.getVersionNeededToExtract=function(){return this.minver};J.prototype.setComment=function(e){Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.comment=e};J.prototype.setCompressedSize=function(e){if(e<0)throw new Error("invalid entry compressed size");this.csize=e};J.prototype.setCrc=function(e){if(e<0)throw new Error("invalid entry crc32");this.crc=e};J.prototype.setExternalAttributes=function(e){this.exattr=e>>>0};J.prototype.setExtra=function(e){this.extra=e};J.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof dC))throw new Error("invalid entry GeneralPurposeBit");this.gpb=e};J.prototype.setInternalAttributes=function(e){this.inattr=e};J.prototype.setMethod=function(e){if(e<0)throw new Error("invalid entry compression method");this.method=e};J.prototype.setName=function(e,t=!1){e=vz(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,""),t&&(e=`/${e}`),Buffer.byteLength(e)!==e.length&&this.getGeneralPurposeBit().useUTF8ForNames(!0),this.name=e};J.prototype.setPlatform=function(e){this.platform=e};J.prototype.setSize=function(e){if(e<0)throw new Error("invalid entry size");this.size=e};J.prototype.setTime=function(e,t){if(!(e instanceof Date))throw new Error("invalid entry time");this.time=mC.dateToDos(e,t)};J.prototype.setUnixMode=function(e){e|=this.isDirectory()?ot.S_IFDIR:ot.S_IFREG;var t=0;t|=e<<ot.SHORT_SHIFT|(this.isDirectory()?ot.S_DOS_D:ot.S_DOS_A),this.setExternalAttributes(t),this.mode=e&ot.MODE_MASK,this.platform=ot.PLATFORM_UNIX};J.prototype.setVersionNeededToExtract=function(e){this.minver=e};J.prototype.isDirectory=function(){return this.getName().slice(-1)==="/"};J.prototype.isUnixSymlink=function(){return(this.getUnixMode()&hC.FILE_TYPE_FLAG)===hC.LINK_FLAG};J.prototype.isZip64=function(){return this.csize>ot.ZIP64_MAGIC||this.size>ot.ZIP64_MAGIC}});var Pg=w((Yie,yC)=>{"use strict";var Kie=N("stream").Stream,Ez=Zr().PassThrough,Sz=gl(),Fz=yC.exports={};Fz.normalizeInputSource=function(e){if(e===null)return Buffer.alloc(0);if(typeof e=="string")return Buffer.from(e);if(Sz(e)&&!e._readableState){var t=new Ez;return e.pipe(t),t}return e}});var qg=w((Qie,bC)=>{"use strict";var kz=N("util").inherits,Tz=gl(),Bg=Zr().Transform,Cz=zc(),Az=Pg(),bt=bC.exports=function(e){if(!(this instanceof bt))return new bt(e);Bg.call(this,e),this.offset=0,this._archive={finish:!1,finished:!1,processing:!1}};kz(bt,Bg);bt.prototype._appendBuffer=function(e,t,n){};bt.prototype._appendStream=function(e,t,n){};bt.prototype._emitErrorCallback=function(e){e&&this.emit("error",e)};bt.prototype._finish=function(e){};bt.prototype._normalizeEntry=function(e){};bt.prototype._transform=function(e,t,n){n(null,e)};bt.prototype.entry=function(e,t,n){if(t=t||null,typeof n!="function"&&(n=this._emitErrorCallback.bind(this)),!(e instanceof Cz)){n(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){n(new Error("unacceptable entry after finish"));return}if(this._archive.processing){n(new Error("already processing an entry"));return}if(this._archive.processing=!0,this._normalizeEntry(e),this._entry=e,t=Az.normalizeInputSource(t),Buffer.isBuffer(t))this._appendBuffer(e,t,n);else if(Tz(t))this._appendStream(e,t,n);else{this._archive.processing=!1,n(new Error("input source must be valid Stream or Buffer instance"));return}return this};bt.prototype.finish=function(){if(this._archive.processing){this._archive.finish=!0;return}this._finish()};bt.prototype.getBytesWritten=function(){return this.offset};bt.prototype.write=function(e,t){return e&&(this.offset+=e.length),Bg.prototype.write.call(this,e,t)}});var $c=w(Ng=>{"use strict";var DC;(function(e){typeof DO_NOT_EXPORT_CRC>"u"?typeof Ng=="object"?e(Ng):typeof define=="function"&&define.amd?define(function(){var t={};return e(t),t}):e(DC={}):e(DC={})})(function(e){e.version="1.2.2";function t(){for(var v=0,q=new Array(256),T=0;T!=256;++T)v=T,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,v=v&1?-306674912^v>>>1:v>>>1,q[T]=v;return typeof Int32Array<"u"?new Int32Array(q):q}var n=t();function r(v){var q=0,T=0,A=0,I=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(A=0;A!=256;++A)I[A]=v[A];for(A=0;A!=256;++A)for(T=v[A],q=256+A;q<4096;q+=256)T=I[q]=T>>>8^v[T&255];var M=[];for(A=1;A!=16;++A)M[A-1]=typeof Int32Array<"u"?I.subarray(A*256,A*256+256):I.slice(A*256,A*256+256);return M}var i=r(n),o=i[0],s=i[1],a=i[2],u=i[3],l=i[4],c=i[5],f=i[6],h=i[7],p=i[8],b=i[9],D=i[10],F=i[11],g=i[12],m=i[13],d=i[14];function y(v,q){for(var T=q^-1,A=0,I=v.length;A<I;)T=T>>>8^n[(T^v.charCodeAt(A++))&255];return~T}function k(v,q){for(var T=q^-1,A=v.length-15,I=0;I<A;)T=d[v[I++]^T&255]^m[v[I++]^T>>8&255]^g[v[I++]^T>>16&255]^F[v[I++]^T>>>24]^D[v[I++]]^b[v[I++]]^p[v[I++]]^h[v[I++]]^f[v[I++]]^c[v[I++]]^l[v[I++]]^u[v[I++]]^a[v[I++]]^s[v[I++]]^o[v[I++]]^n[v[I++]];for(A+=15;I<A;)T=T>>>8^n[(T^v[I++])&255];return~T}function E(v,q){for(var T=q^-1,A=0,I=v.length,M=0,O=0;A<I;)M=v.charCodeAt(A++),M<128?T=T>>>8^n[(T^M)&255]:M<2048?(T=T>>>8^n[(T^(192|M>>6&31))&255],T=T>>>8^n[(T^(128|M&63))&255]):M>=55296&&M<57344?(M=(M&1023)+64,O=v.charCodeAt(A++)&1023,T=T>>>8^n[(T^(240|M>>8&7))&255],T=T>>>8^n[(T^(128|M>>2&63))&255],T=T>>>8^n[(T^(128|O>>6&15|(M&3)<<4))&255],T=T>>>8^n[(T^(128|O&63))&255]):(T=T>>>8^n[(T^(224|M>>12&15))&255],T=T>>>8^n[(T^(128|M>>6&63))&255],T=T>>>8^n[(T^(128|M&63))&255]);return~T}e.table=n,e.bstr=y,e.buf=k,e.str=E})});var _C=w((Jie,wC)=>{"use strict";var{Transform:Rz}=Zr(),Oz=$c(),Mg=class extends Rz{constructor(t){super(t),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0}_transform(t,n,r){t&&(this.checksum=Oz.buf(t,this.checksum)>>>0,this.rawSize+=t.length),r(null,t)}digest(t){let n=Buffer.allocUnsafe(4);return n.writeUInt32BE(this.checksum>>>0,0),t?n.toString(t):n}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}};wC.exports=Mg});var vC=w((Xie,xC)=>{"use strict";var{DeflateRaw:Iz}=N("zlib"),Lz=$c(),jg=class extends Iz{constructor(t){super(t),this.checksum=Buffer.allocUnsafe(4),this.checksum.writeInt32BE(0,0),this.rawSize=0,this.compressedSize=0}push(t,n){return t&&(this.compressedSize+=t.length),super.push(t,n)}_transform(t,n,r){t&&(this.checksum=Lz.buf(t,this.checksum)>>>0,this.rawSize+=t.length),super._transform(t,n,r)}digest(t){let n=Buffer.allocUnsafe(4);return n.writeUInt32BE(this.checksum>>>0,0),t?n.toString(t):n}hex(){return this.digest("hex").toUpperCase()}size(t=!1){return t?this.compressedSize:this.rawSize}};xC.exports=jg});var Ug=w((eoe,EC)=>{"use strict";EC.exports={CRC32Stream:_C(),DeflateCRC32Stream:vC()}});var kC=w((ioe,FC)=>{"use strict";var Pz=N("util").inherits,Bz=$c(),{CRC32Stream:qz}=Ug(),{DeflateCRC32Stream:Nz}=Ug(),SC=qg(),toe=Lg(),noe=Og(),K=Ig(),roe=Pg(),z=Wc(),Ne=FC.exports=function(e){if(!(this instanceof Ne))return new Ne(e);e=this.options=this._defaults(e),SC.call(this,e),this._entry=null,this._entries=[],this._archive={centralLength:0,centralOffset:0,comment:"",finish:!1,finished:!1,processing:!1,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};Pz(Ne,SC);Ne.prototype._afterAppend=function(e){this._entries.push(e),e.getGeneralPurposeBit().usesDataDescriptor()&&this._writeDataDescriptor(e),this._archive.processing=!1,this._entry=null,this._archive.finish&&!this._archive.finished&&this._finish()};Ne.prototype._appendBuffer=function(e,t,n){t.length===0&&e.setMethod(K.METHOD_STORED);var r=e.getMethod();if(r===K.METHOD_STORED&&(e.setSize(t.length),e.setCompressedSize(t.length),e.setCrc(Bz.buf(t)>>>0)),this._writeLocalFileHeader(e),r===K.METHOD_STORED){this.write(t),this._afterAppend(e),n(null,e);return}else if(r===K.METHOD_DEFLATED){this._smartStream(e,n).end(t);return}else{n(new Error("compression method "+r+" not implemented"));return}};Ne.prototype._appendStream=function(e,t,n){e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(K.MIN_VERSION_DATA_DESCRIPTOR),this._writeLocalFileHeader(e);var r=this._smartStream(e,n);t.once("error",function(i){r.emit("error",i),r.end()}),t.pipe(r)};Ne.prototype._defaults=function(e){return typeof e!="object"&&(e={}),typeof e.zlib!="object"&&(e.zlib={}),typeof e.zlib.level!="number"&&(e.zlib.level=K.ZLIB_BEST_SPEED),e.forceZip64=!!e.forceZip64,e.forceLocalTime=!!e.forceLocalTime,e};Ne.prototype._finish=function(){this._archive.centralOffset=this.offset,this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this)),this._archive.centralLength=this.offset-this._archive.centralOffset,this.isZip64()&&this._writeCentralDirectoryZip64(),this._writeCentralDirectoryEnd(),this._archive.processing=!1,this._archive.finish=!0,this._archive.finished=!0,this.end()};Ne.prototype._normalizeEntry=function(e){e.getMethod()===-1&&e.setMethod(K.METHOD_DEFLATED),e.getMethod()===K.METHOD_DEFLATED&&(e.getGeneralPurposeBit().useDataDescriptor(!0),e.setVersionNeededToExtract(K.MIN_VERSION_DATA_DESCRIPTOR)),e.getTime()===-1&&e.setTime(new Date,this._archive.forceLocalTime),e._offsets={file:0,data:0,contents:0}};Ne.prototype._smartStream=function(e,t){var n=e.getMethod()===K.METHOD_DEFLATED,r=n?new Nz(this.options.zlib):new qz,i=null;function o(){var s=r.digest().readUInt32BE(0);e.setCrc(s),e.setSize(r.size()),e.setCompressedSize(r.size(!0)),this._afterAppend(e),t(i,e)}return r.once("end",o.bind(this)),r.once("error",function(s){i=s}),r.pipe(this,{end:!1}),r};Ne.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length,t=this._archive.centralLength,n=this._archive.centralOffset;this.isZip64()&&(e=K.ZIP64_MAGIC_SHORT,t=K.ZIP64_MAGIC,n=K.ZIP64_MAGIC),this.write(z.getLongBytes(K.SIG_EOCD)),this.write(K.SHORT_ZERO),this.write(K.SHORT_ZERO),this.write(z.getShortBytes(e)),this.write(z.getShortBytes(e)),this.write(z.getLongBytes(t)),this.write(z.getLongBytes(n));var r=this.getComment(),i=Buffer.byteLength(r);this.write(z.getShortBytes(i)),this.write(r)};Ne.prototype._writeCentralDirectoryZip64=function(){this.write(z.getLongBytes(K.SIG_ZIP64_EOCD)),this.write(z.getEightBytes(44)),this.write(z.getShortBytes(K.MIN_VERSION_ZIP64)),this.write(z.getShortBytes(K.MIN_VERSION_ZIP64)),this.write(K.LONG_ZERO),this.write(K.LONG_ZERO),this.write(z.getEightBytes(this._entries.length)),this.write(z.getEightBytes(this._entries.length)),this.write(z.getEightBytes(this._archive.centralLength)),this.write(z.getEightBytes(this._archive.centralOffset)),this.write(z.getLongBytes(K.SIG_ZIP64_EOCD_LOC)),this.write(K.LONG_ZERO),this.write(z.getEightBytes(this._archive.centralOffset+this._archive.centralLength)),this.write(z.getLongBytes(1))};Ne.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit(),n=e.getMethod(),r=e._offsets.file,i=e.getSize(),o=e.getCompressedSize();if(e.isZip64()||r>K.ZIP64_MAGIC){i=K.ZIP64_MAGIC,o=K.ZIP64_MAGIC,r=K.ZIP64_MAGIC,e.setVersionNeededToExtract(K.MIN_VERSION_ZIP64);var s=Buffer.concat([z.getShortBytes(K.ZIP64_EXTRA_ID),z.getShortBytes(24),z.getEightBytes(e.getSize()),z.getEightBytes(e.getCompressedSize()),z.getEightBytes(e._offsets.file)],28);e.setExtra(s)}this.write(z.getLongBytes(K.SIG_CFH)),this.write(z.getShortBytes(e.getPlatform()<<8|K.VERSION_MADEBY)),this.write(z.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(z.getShortBytes(n)),this.write(z.getLongBytes(e.getTimeDos())),this.write(z.getLongBytes(e.getCrc())),this.write(z.getLongBytes(o)),this.write(z.getLongBytes(i));var a=e.getName(),u=e.getComment(),l=e.getCentralDirectoryExtra();t.usesUTF8ForNames()&&(a=Buffer.from(a),u=Buffer.from(u)),this.write(z.getShortBytes(a.length)),this.write(z.getShortBytes(l.length)),this.write(z.getShortBytes(u.length)),this.write(K.SHORT_ZERO),this.write(z.getShortBytes(e.getInternalAttributes())),this.write(z.getLongBytes(e.getExternalAttributes())),this.write(z.getLongBytes(r)),this.write(a),this.write(l),this.write(u)};Ne.prototype._writeDataDescriptor=function(e){this.write(z.getLongBytes(K.SIG_DD)),this.write(z.getLongBytes(e.getCrc())),e.isZip64()?(this.write(z.getEightBytes(e.getCompressedSize())),this.write(z.getEightBytes(e.getSize()))):(this.write(z.getLongBytes(e.getCompressedSize())),this.write(z.getLongBytes(e.getSize())))};Ne.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit(),n=e.getMethod(),r=e.getName(),i=e.getLocalFileDataExtra();e.isZip64()&&(t.useDataDescriptor(!0),e.setVersionNeededToExtract(K.MIN_VERSION_ZIP64)),t.usesUTF8ForNames()&&(r=Buffer.from(r)),e._offsets.file=this.offset,this.write(z.getLongBytes(K.SIG_LFH)),this.write(z.getShortBytes(e.getVersionNeededToExtract())),this.write(t.encode()),this.write(z.getShortBytes(n)),this.write(z.getLongBytes(e.getTimeDos())),e._offsets.data=this.offset,t.usesDataDescriptor()?(this.write(K.LONG_ZERO),this.write(K.LONG_ZERO),this.write(K.LONG_ZERO)):(this.write(z.getLongBytes(e.getCrc())),this.write(z.getLongBytes(e.getCompressedSize())),this.write(z.getLongBytes(e.getSize()))),this.write(z.getShortBytes(r.length)),this.write(z.getShortBytes(i.length)),this.write(r),this.write(i),e._offsets.contents=this.offset};Ne.prototype.getComment=function(e){return this._archive.comment!==null?this._archive.comment:""};Ne.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>K.ZIP64_MAGIC_SHORT||this._archive.centralLength>K.ZIP64_MAGIC||this._archive.centralOffset>K.ZIP64_MAGIC};Ne.prototype.setComment=function(e){this._archive.comment=e}});var zg=w((ooe,TC)=>{"use strict";TC.exports={ArchiveEntry:zc(),ZipArchiveEntry:Lg(),ArchiveOutputStream:qg(),ZipArchiveOutputStream:kC()}});var AC=w((soe,CC)=>{"use strict";var Mz=N("util").inherits,$g=zg().ZipArchiveOutputStream,jz=zg().ZipArchiveEntry,Wg=fo(),ho=CC.exports=function(e){if(!(this instanceof ho))return new ho(e);e=this.options=e||{},e.zlib=e.zlib||{},$g.call(this,e),typeof e.level=="number"&&e.level>=0&&(e.zlib.level=e.level,delete e.level),!e.forceZip64&&typeof e.zlib.level=="number"&&e.zlib.level===0&&(e.store=!0),e.namePrependSlash=e.namePrependSlash||!1,e.comment&&e.comment.length>0&&this.setComment(e.comment)};Mz(ho,$g);ho.prototype._normalizeFileData=function(e){e=Wg.defaults(e,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var t=e.type==="directory",n=e.type==="symlink";return e.name&&(e.name=Wg.sanitizePath(e.name),!n&&e.name.slice(-1)==="/"?(t=!0,e.type="directory"):t&&(e.name+="/")),(t||n)&&(e.store=!0),e.date=Wg.dateify(e.date),e};ho.prototype.entry=function(e,t,n){if(typeof n!="function"&&(n=this._emitErrorCallback.bind(this)),t=this._normalizeFileData(t),t.type!=="file"&&t.type!=="directory"&&t.type!=="symlink"){n(new Error(t.type+" entries not currently supported"));return}if(typeof t.name!="string"||t.name.length===0){n(new Error("entry name must be a non-empty string value"));return}if(t.type==="symlink"&&typeof t.linkname!="string"){n(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var r=new jz(t.name);return r.setTime(t.date,this.options.forceLocalTime),t.namePrependSlash&&r.setName(t.name,!0),t.store&&r.setMethod(0),t.comment.length>0&&r.setComment(t.comment),t.type==="symlink"&&typeof t.mode!="number"&&(t.mode=40960),typeof t.mode=="number"&&(t.type==="symlink"&&(t.mode|=40960),r.setUnixMode(t.mode)),t.type==="symlink"&&typeof t.linkname=="string"&&(e=Buffer.from(t.linkname)),$g.prototype.entry.call(this,r,e,n)};ho.prototype.finalize=function(){this.finish()}});var OC=w((aoe,RC)=>{"use strict";var Uz=AC(),zz=fo(),ir=function(e){if(!(this instanceof ir))return new ir(e);e=this.options=zz.defaults(e,{comment:"",forceUTC:!1,namePrependSlash:!1,store:!1}),this.supports={directory:!0,symlink:!0},this.engine=new Uz(e)};ir.prototype.append=function(e,t,n){this.engine.entry(e,t,n)};ir.prototype.finalize=function(){this.engine.finalize()};ir.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};ir.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};ir.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};RC.exports=ir});var LC=w((uoe,IC)=>{"use strict";IC.exports=N("events")});var BC=w((coe,PC)=>{"use strict";PC.exports=class{constructor(t){if(!(t>0)||(t-1&t)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(t),this.mask=t-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(t){return this.buffer[this.top]!==void 0?!1:(this.buffer[this.top]=t,this.top=this.top+1&this.mask,!0)}shift(){let t=this.buffer[this.btm];if(t!==void 0)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,t}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===void 0}}});var Hg=w((hoe,NC)=>{"use strict";var qC=BC();NC.exports=class{constructor(t){this.hwm=t||16,this.head=new qC(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(t){if(this.length++,!this.head.push(t)){let n=this.head;this.head=n.next=new qC(2*this.head.buffer.length),this.head.push(t)}}shift(){this.length!==0&&this.length--;let t=this.tail.shift();if(t===void 0&&this.tail.next){let n=this.tail.next;return this.tail.next=null,this.tail=n,this.tail.shift()}return t}peek(){let t=this.tail.peek();return t===void 0&&this.tail.next?this.tail.next.peek():t}isEmpty(){return this.length===0}}});var po=w((poe,MC)=>{"use strict";function Wz(e){return Buffer.isBuffer(e)||e instanceof Uint8Array}function $z(e){return Buffer.isEncoding(e)}function Hz(e,t,n){return Buffer.alloc(e,t,n)}function Gz(e){return Buffer.allocUnsafe(e)}function Vz(e){return Buffer.allocUnsafeSlow(e)}function Kz(e,t){return Buffer.byteLength(e,t)}function Yz(e,t){return Buffer.compare(e,t)}function Qz(e,t){return Buffer.concat(e,t)}function Zz(e,t,n,r,i){return he(e).copy(t,n,r,i)}function Jz(e,t){return he(e).equals(t)}function Xz(e,t,n,r,i){return he(e).fill(t,n,r,i)}function eW(e,t,n){return Buffer.from(e,t,n)}function tW(e,t,n,r){return he(e).includes(t,n,r)}function nW(e,t,n,r){return he(e).indexOf(t,n,r)}function rW(e,t,n,r){return he(e).lastIndexOf(t,n,r)}function iW(e){return he(e).swap16()}function oW(e){return he(e).swap32()}function sW(e){return he(e).swap64()}function he(e){return Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)}function aW(e,t,n,r){return he(e).toString(t,n,r)}function uW(e,t,n,r,i){return he(e).write(t,n,r,i)}function lW(e,t){return he(e).readDoubleBE(t)}function cW(e,t){return he(e).readDoubleLE(t)}function fW(e,t){return he(e).readFloatBE(t)}function hW(e,t){return he(e).readFloatLE(t)}function pW(e,t){return he(e).readInt32BE(t)}function dW(e,t){return he(e).readInt32LE(t)}function mW(e,t){return he(e).readUInt32BE(t)}function gW(e,t){return he(e).readUInt32LE(t)}function yW(e,t,n){return he(e).writeDoubleBE(t,n)}function bW(e,t,n){return he(e).writeDoubleLE(t,n)}function DW(e,t,n){return he(e).writeFloatBE(t,n)}function wW(e,t,n){return he(e).writeFloatLE(t,n)}function _W(e,t,n){return he(e).writeInt32BE(t,n)}function xW(e,t,n){return he(e).writeInt32LE(t,n)}function vW(e,t,n){return he(e).writeUInt32BE(t,n)}function EW(e,t,n){return he(e).writeUInt32LE(t,n)}MC.exports={isBuffer:Wz,isEncoding:$z,alloc:Hz,allocUnsafe:Gz,allocUnsafeSlow:Vz,byteLength:Kz,compare:Yz,concat:Qz,copy:Zz,equals:Jz,fill:Xz,from:eW,includes:tW,indexOf:nW,lastIndexOf:rW,swap16:iW,swap32:oW,swap64:sW,toBuffer:he,toString:aW,write:uW,readDoubleBE:lW,readDoubleLE:cW,readFloatBE:fW,readFloatLE:hW,readInt32BE:pW,readInt32LE:dW,readUInt32BE:mW,readUInt32LE:gW,writeDoubleBE:yW,writeDoubleLE:bW,writeFloatBE:DW,writeFloatLE:wW,writeInt32BE:_W,writeInt32LE:xW,writeUInt32BE:vW,writeUInt32LE:EW}});var UC=w((moe,jC)=>{"use strict";var SW=po();jC.exports=class{constructor(t){this.encoding=t}get remaining(){return 0}decode(t){return SW.toString(t,this.encoding)}flush(){return""}}});var WC=w((yoe,zC)=>{"use strict";var FW=po();zC.exports=class{constructor(){this.codePoint=0,this.bytesSeen=0,this.bytesNeeded=0,this.lowerBoundary=128,this.upperBoundary=191}get remaining(){return this.bytesSeen}decode(t){if(this.bytesNeeded===0){let r=!0;for(let i=Math.max(0,t.byteLength-4),o=t.byteLength;i<o&&r;i++)r=t[i]<=127;if(r)return FW.toString(t,"utf8")}let n="";for(let r=0,i=t.byteLength;r<i;r++){let o=t[r];if(this.bytesNeeded===0){o<=127?n+=String.fromCharCode(o):(this.bytesSeen=1,o>=194&&o<=223?(this.bytesNeeded=2,this.codePoint=o&31):o>=224&&o<=239?(o===224?this.lowerBoundary=160:o===237&&(this.upperBoundary=159),this.bytesNeeded=3,this.codePoint=o&15):o>=240&&o<=244?(o===240&&(this.lowerBoundary=144),o===244&&(this.upperBoundary=143),this.bytesNeeded=4,this.codePoint=o&7):n+="\uFFFD");continue}if(o<this.lowerBoundary||o>this.upperBoundary){this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,n+="\uFFFD";continue}this.lowerBoundary=128,this.upperBoundary=191,this.codePoint=this.codePoint<<6|o&63,this.bytesSeen++,this.bytesSeen===this.bytesNeeded&&(n+=String.fromCodePoint(this.codePoint),this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0)}return n}flush(){let t=this.bytesNeeded>0?"\uFFFD":"";return this.codePoint=0,this.bytesNeeded=0,this.bytesSeen=0,this.lowerBoundary=128,this.upperBoundary=191,t}}});var HC=w((Doe,$C)=>{"use strict";var kW=UC(),TW=WC();$C.exports=class{constructor(t="utf8"){switch(this.encoding=CW(t),this.encoding){case"utf8":this.decoder=new TW;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new kW(this.encoding)}}get remaining(){return this.decoder.remaining}push(t){return typeof t=="string"?t:this.decoder.decode(t)}write(t){return this.push(t)}end(t){let n="";return t&&(n=this.push(t)),n+=this.decoder.flush(),n}};function CW(e){switch(e=e.toLowerCase(),e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:throw new Error("Unknown encoding: "+e)}}});var ay=w((woe,dA)=>{"use strict";var{EventEmitter:AW}=LC(),Qc=new Error("Stream was destroyed"),Gg=new Error("Premature close"),ZC=Hg(),RW=HC(),Vg=typeof queueMicrotask>"u"?e=>global.process.nextTick(e):queueMicrotask,ve=(1<<29)-1,ln=1,ey=2,ni=4,fa=8,JC=ve^ln,OW=ve^ey,ga=16,mo=32,bo=64,sr=128,ya=256,ty=512,ri=1024,Kg=2048,ny=4096,ry=8192,Vt=16384,or=32768,Zc=65536,ii=131072,XC=ya|ty,IW=ga|Zc,LW=bo|ga,PW=ny|sr,iy=ya|ii,BW=ve^ga,qW=ve^bo,NW=ve^(bo|Zc),GC=ve^Zc,MW=ve^ya,jW=ve^(sr|ry),UW=ve^ri,VC=ve^XC,eA=ve^or,zW=ve^mo,tA=ve^ii,WW=ve^iy,Cn=1<<18,yo=2<<18,ba=4<<18,oi=8<<18,Da=16<<18,ar=32<<18,Yg=64<<18,go=128<<18,oy=256<<18,si=512<<18,Jc=1024<<18,$W=ve^(Cn|oy),nA=ve^ba,HW=ve^(Cn|si),GW=ve^Da,VW=ve^oi,rA=ve^go,KW=ve^yo,iA=ve^Jc,ha=ga|Cn,oA=ve^ha,sy=Vt|ar,cn=ni|fa|ey,Dt=cn|ln,sA=cn|sy,YW=nA&qW,Xc=go|or,QW=Xc&oA,aA=Dt|QW,ZW=Dt|ri|Vt,KC=Dt|Vt|sr,JW=Dt|ri|sr,XW=Dt|ny|sr|ry,e$=Dt|ga|ri|Vt|Zc|ii,t$=cn|ri|Vt,n$=mo|Dt|or|bo,r$=or|ln,i$=Dt|si|ar,o$=oi|Da,uA=oi|Cn,s$=oi|Da|Dt|Cn,YC=Dt|Cn|oi|Jc,a$=ba|Cn,u$=Cn|oy,l$=Dt|si|uA|ar,c$=Da|cn|si|ar,f$=yo|Dt|go|ba,h$=si|ar|cn,Hc=Symbol.asyncIterator||Symbol("asyncIterator"),Gc=class{constructor(t,{highWaterMark:n=16384,map:r=null,mapWritable:i,byteLength:o,byteLengthWritable:s}={}){this.stream=t,this.queue=new ZC,this.highWaterMark=n,this.buffered=0,this.error=null,this.pipeline=null,this.drains=null,this.byteLength=s||o||pA,this.map=i||r,this.afterWrite=m$.bind(this),this.afterUpdateNextTick=b$.bind(this)}get ended(){return(this.stream._duplexState&ar)!==0}push(t){return(this.stream._duplexState&h$)!==0?!1:(this.map!==null&&(t=this.map(t)),this.buffered+=this.byteLength(t),this.queue.push(t),this.buffered<this.highWaterMark?(this.stream._duplexState|=oi,!0):(this.stream._duplexState|=o$,!1))}shift(){let t=this.queue.shift();return this.buffered-=this.byteLength(t),this.buffered===0&&(this.stream._duplexState&=VW),t}end(t){typeof t=="function"?this.stream.once("finish",t):t!=null&&this.push(t),this.stream._duplexState=(this.stream._duplexState|si)&nA}autoBatch(t,n){let r=[],i=this.stream;for(r.push(t);(i._duplexState&YC)===uA;)r.push(i._writableState.shift());if((i._duplexState&Dt)!==0)return n(null);i._writev(r,n)}update(){let t=this.stream;t._duplexState|=yo;do{for(;(t._duplexState&YC)===oi;){let n=this.shift();t._duplexState|=u$,t._write(n,this.afterWrite)}(t._duplexState&a$)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);t._duplexState&=KW}updateNonPrimary(){let t=this.stream;if((t._duplexState&l$)===si){t._duplexState=t._duplexState|Cn,t._final(d$.bind(this));return}if((t._duplexState&cn)===ni){(t._duplexState&Xc)===0&&(t._duplexState|=ha,t._destroy(lA.bind(this)));return}(t._duplexState&aA)===ln&&(t._duplexState=(t._duplexState|ha)&JC,t._open(cA.bind(this)))}continueUpdate(){return(this.stream._duplexState&go)===0?!1:(this.stream._duplexState&=rA,!0)}updateCallback(){(this.stream._duplexState&f$)===ba?this.update():this.updateNextTick()}updateNextTick(){(this.stream._duplexState&go)===0&&(this.stream._duplexState|=go,(this.stream._duplexState&yo)===0&&Vg(this.afterUpdateNextTick))}},Qg=class{constructor(t,{highWaterMark:n=16384,map:r=null,mapReadable:i,byteLength:o,byteLengthReadable:s}={}){this.stream=t,this.queue=new ZC,this.highWaterMark=n===0?1:n,this.buffered=0,this.readAhead=n>0,this.error=null,this.pipeline=null,this.byteLength=s||o||pA,this.map=i||r,this.pipeTo=null,this.afterRead=g$.bind(this),this.afterUpdateNextTick=y$.bind(this)}get ended(){return(this.stream._duplexState&Vt)!==0}pipe(t,n){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof n!="function"&&(n=null),this.stream._duplexState|=ty,this.pipeTo=t,this.pipeline=new Jg(this.stream,t,n),n&&this.stream.on("error",QC),ma(t))t._writableState.pipeline=this.pipeline,n&&t.on("error",QC),t.on("finish",this.pipeline.finished.bind(this.pipeline));else{let r=this.pipeline.done.bind(this.pipeline,t),i=this.pipeline.done.bind(this.pipeline,t,null);t.on("error",r),t.on("close",i),t.on("finish",this.pipeline.finished.bind(this.pipeline))}t.on("drain",p$.bind(this)),this.stream.emit("piping",t),t.emit("pipe",this.stream)}push(t){let n=this.stream;return t===null?(this.highWaterMark=0,n._duplexState=(n._duplexState|ri)&NW,!1):this.map!==null&&(t=this.map(t),t===null)?(n._duplexState&=GC,this.buffered<this.highWaterMark):(this.buffered+=this.byteLength(t),this.queue.push(t),n._duplexState=(n._duplexState|sr)&GC,this.buffered<this.highWaterMark)}shift(){let t=this.queue.shift();return this.buffered-=this.byteLength(t),this.buffered===0&&(this.stream._duplexState&=jW),t}unshift(t){let n=[this.map!==null?this.map(t):t];for(;this.buffered>0;)n.push(this.shift());for(let r=0;r<n.length-1;r++){let i=n[r];this.buffered+=this.byteLength(i),this.queue.push(i)}this.push(n[n.length-1])}read(){let t=this.stream;if((t._duplexState&KC)===sr){let n=this.shift();return this.pipeTo!==null&&this.pipeTo.write(n)===!1&&(t._duplexState&=VC),(t._duplexState&Kg)!==0&&t.emit("data",n),n}return this.readAhead===!1&&(t._duplexState|=ii,this.updateNextTick()),null}drain(){let t=this.stream;for(;(t._duplexState&KC)===sr&&(t._duplexState&XC)!==0;){let n=this.shift();this.pipeTo!==null&&this.pipeTo.write(n)===!1&&(t._duplexState&=VC),(t._duplexState&Kg)!==0&&t.emit("data",n)}}update(){let t=this.stream;t._duplexState|=mo;do{for(this.drain();this.buffered<this.highWaterMark&&(t._duplexState&e$)===ii;)t._duplexState|=IW,t._read(this.afterRead),this.drain();(t._duplexState&XW)===PW&&(t._duplexState|=ry,t.emit("readable")),(t._duplexState&LW)===0&&this.updateNonPrimary()}while(this.continueUpdate()===!0);t._duplexState&=zW}updateNonPrimary(){let t=this.stream;if((t._duplexState&JW)===ri&&(t._duplexState=(t._duplexState|Vt)&UW,t.emit("end"),(t._duplexState&sA)===sy&&(t._duplexState|=ni),this.pipeTo!==null&&this.pipeTo.end()),(t._duplexState&cn)===ni){(t._duplexState&Xc)===0&&(t._duplexState|=ha,t._destroy(lA.bind(this)));return}(t._duplexState&aA)===ln&&(t._duplexState=(t._duplexState|ha)&JC,t._open(cA.bind(this)))}continueUpdate(){return(this.stream._duplexState&or)===0?!1:(this.stream._duplexState&=eA,!0)}updateCallback(){(this.stream._duplexState&n$)===bo?this.update():this.updateNextTick()}updateNextTickIfOpen(){(this.stream._duplexState&r$)===0&&(this.stream._duplexState|=or,(this.stream._duplexState&mo)===0&&Vg(this.afterUpdateNextTick))}updateNextTick(){(this.stream._duplexState&or)===0&&(this.stream._duplexState|=or,(this.stream._duplexState&mo)===0&&Vg(this.afterUpdateNextTick))}},Zg=class{constructor(t){this.data=null,this.afterTransform=w$.bind(t),this.afterFinal=null}},Jg=class{constructor(t,n,r){this.from=t,this.to=n,this.afterPipe=r,this.error=null,this.pipeToFinished=!1}finished(){this.pipeToFinished=!0}done(t,n){if(n&&(this.error=n),t===this.to&&(this.to=null,this.from!==null)){((this.from._duplexState&Vt)===0||!this.pipeToFinished)&&this.from.destroy(this.error||new Error("Writable stream closed prematurely"));return}if(t===this.from&&(this.from=null,this.to!==null)){(t._duplexState&Vt)===0&&this.to.destroy(this.error||new Error("Readable stream closed before ending"));return}this.afterPipe!==null&&this.afterPipe(this.error),this.to=this.from=this.afterPipe=null}};function p$(){this.stream._duplexState|=ty,this.updateCallback()}function d$(e){let t=this.stream;e&&t.destroy(e),(t._duplexState&cn)===0&&(t._duplexState|=ar,t.emit("finish")),(t._duplexState&sA)===sy&&(t._duplexState|=ni),t._duplexState&=HW,(t._duplexState&yo)===0?this.update():this.updateNextTick()}function lA(e){let t=this.stream;!e&&this.error!==Qc&&(e=this.error),e&&t.emit("error",e),t._duplexState|=fa,t.emit("close");let n=t._readableState,r=t._writableState;if(n!==null&&n.pipeline!==null&&n.pipeline.done(t,e),r!==null){for(;r.drains!==null&&r.drains.length>0;)r.drains.shift().resolve(!1);r.pipeline!==null&&r.pipeline.done(t,e)}}function m$(e){let t=this.stream;e&&t.destroy(e),t._duplexState&=$W,this.drains!==null&&D$(this.drains),(t._duplexState&s$)===Da&&(t._duplexState&=GW,(t._duplexState&Yg)===Yg&&t.emit("drain")),this.updateCallback()}function g$(e){e&&this.stream.destroy(e),this.stream._duplexState&=BW,this.readAhead===!1&&(this.stream._duplexState&ya)===0&&(this.stream._duplexState&=tA),this.updateCallback()}function y$(){(this.stream._duplexState&mo)===0&&(this.stream._duplexState&=eA,this.update())}function b$(){(this.stream._duplexState&yo)===0&&(this.stream._duplexState&=rA,this.update())}function D$(e){for(let t=0;t<e.length;t++)--e[t].writes===0&&(e.shift().resolve(!0),t--)}function cA(e){let t=this.stream;e&&t.destroy(e),(t._duplexState&ni)===0&&((t._duplexState&ZW)===0&&(t._duplexState|=bo),(t._duplexState&i$)===0&&(t._duplexState|=ba),t.emit("open")),t._duplexState&=oA,t._writableState!==null&&t._writableState.updateCallback(),t._readableState!==null&&t._readableState.updateCallback()}function w$(e,t){t!=null&&this.push(t),this._writableState.afterWrite(e)}function _$(e){this._readableState!==null&&(e==="data"&&(this._duplexState|=Kg|iy,this._readableState.updateNextTick()),e==="readable"&&(this._duplexState|=ny,this._readableState.updateNextTick())),this._writableState!==null&&e==="drain"&&(this._duplexState|=Yg,this._writableState.updateNextTick())}var pa=class extends AW{constructor(t){super(),this._duplexState=0,this._readableState=null,this._writableState=null,t&&(t.open&&(this._open=t.open),t.destroy&&(this._destroy=t.destroy),t.predestroy&&(this._predestroy=t.predestroy),t.signal&&t.signal.addEventListener("abort",R$.bind(this))),this.on("newListener",_$)}_open(t){t(null)}_destroy(t){t(null)}_predestroy(){}get readable(){return this._readableState!==null?!0:void 0}get writable(){return this._writableState!==null?!0:void 0}get destroyed(){return(this._duplexState&fa)!==0}get destroying(){return(this._duplexState&cn)!==0}destroy(t){(this._duplexState&cn)===0&&(t||(t=Qc),this._duplexState=(this._duplexState|ni)&YW,this._readableState!==null&&(this._readableState.highWaterMark=0,this._readableState.error=t),this._writableState!==null&&(this._writableState.highWaterMark=0,this._writableState.error=t),this._duplexState|=ey,this._predestroy(),this._duplexState&=OW,this._readableState!==null&&this._readableState.updateNextTick(),this._writableState!==null&&this._writableState.updateNextTick())}},Vc=class e extends pa{constructor(t){super(t),this._duplexState|=ln|ar|ii,this._readableState=new Qg(this,t),t&&(this._readableState.readAhead===!1&&(this._duplexState&=tA),t.read&&(this._read=t.read),t.eagerOpen&&this._readableState.updateNextTick(),t.encoding&&this.setEncoding(t.encoding))}setEncoding(t){let n=new RW(t),r=this._readableState.map||E$;return this._readableState.map=i,this;function i(o){let s=n.push(o);return s===""&&(o.byteLength!==0||n.remaining>0)?null:r(s)}}_read(t){t(null)}pipe(t,n){return this._readableState.updateNextTick(),this._readableState.pipe(t,n),t}read(){return this._readableState.updateNextTick(),this._readableState.read()}push(t){return this._readableState.updateNextTickIfOpen(),this._readableState.push(t)}unshift(t){return this._readableState.updateNextTickIfOpen(),this._readableState.unshift(t)}resume(){return this._duplexState|=iy,this._readableState.updateNextTick(),this}pause(){return this._duplexState&=this._readableState.readAhead===!1?WW:MW,this}static _fromAsyncIterator(t,n){let r,i=new e({...n,read(s){t.next().then(o).then(s.bind(null,null)).catch(s)},predestroy(){r=t.return()},destroy(s){if(!r)return s(null);r.then(s.bind(null,null)).catch(s)}});return i;function o(s){s.done?i.push(null):i.push(s.value)}}static from(t,n){if(T$(t))return t;if(t[Hc])return this._fromAsyncIterator(t[Hc](),n);Array.isArray(t)||(t=t===void 0?[]:[t]);let r=0;return new e({...n,read(i){this.push(r===t.length?null:t[r++]),i(null)}})}static isBackpressured(t){return(t._duplexState&t$)!==0||t._readableState.buffered>=t._readableState.highWaterMark}static isPaused(t){return(t._duplexState&ya)===0}[Hc](){let t=this,n=null,r=null,i=null;return this.on("error",l=>{n=l}),this.on("readable",o),this.on("close",s),{[Hc](){return this},next(){return new Promise(function(l,c){r=l,i=c;let f=t.read();f!==null?a(f):(t._duplexState&fa)!==0&&a(null)})},return(){return u(null)},throw(l){return u(l)}};function o(){r!==null&&a(t.read())}function s(){r!==null&&a(null)}function a(l){i!==null&&(n?i(n):l===null&&(t._duplexState&Vt)===0?i(Qc):r({value:l,done:l===null}),i=r=null)}function u(l){return t.destroy(l),new Promise((c,f)=>{if(t._duplexState&fa)return c({value:void 0,done:!0});t.once("close",function(){l?f(l):c({value:void 0,done:!0})})})}}},Kc=class extends pa{constructor(t){super(t),this._duplexState|=ln|Vt,this._writableState=new Gc(this,t),t&&(t.writev&&(this._writev=t.writev),t.write&&(this._write=t.write),t.final&&(this._final=t.final),t.eagerOpen&&this._writableState.updateNextTick())}cork(){this._duplexState|=Jc}uncork(){this._duplexState&=iA,this._writableState.updateNextTick()}_writev(t,n){n(null)}_write(t,n){this._writableState.autoBatch(t,n)}_final(t){t(null)}static isBackpressured(t){return(t._duplexState&c$)!==0}static drained(t){if(t.destroyed)return Promise.resolve(!1);let n=t._writableState,i=(O$(t)?Math.min(1,n.queue.length):n.queue.length)+(t._duplexState&oy?1:0);return i===0?Promise.resolve(!0):(n.drains===null&&(n.drains=[]),new Promise(o=>{n.drains.push({writes:i,resolve:o})}))}write(t){return this._writableState.updateNextTick(),this._writableState.push(t)}end(t){return this._writableState.updateNextTick(),this._writableState.end(t),this}},da=class extends Vc{constructor(t){super(t),this._duplexState=ln|this._duplexState&ii,this._writableState=new Gc(this,t),t&&(t.writev&&(this._writev=t.writev),t.write&&(this._write=t.write),t.final&&(this._final=t.final))}cork(){this._duplexState|=Jc}uncork(){this._duplexState&=iA,this._writableState.updateNextTick()}_writev(t,n){n(null)}_write(t,n){this._writableState.autoBatch(t,n)}_final(t){t(null)}write(t){return this._writableState.updateNextTick(),this._writableState.push(t)}end(t){return this._writableState.updateNextTick(),this._writableState.end(t),this}},Yc=class extends da{constructor(t){super(t),this._transformState=new Zg(this),t&&(t.transform&&(this._transform=t.transform),t.flush&&(this._flush=t.flush))}_write(t,n){this._readableState.buffered>=this._readableState.highWaterMark?this._transformState.data=t:this._transform(t,this._transformState.afterTransform)}_read(t){if(this._transformState.data!==null){let n=this._transformState.data;this._transformState.data=null,t(null),this._transform(n,this._transformState.afterTransform)}else t(null)}destroy(t){super.destroy(t),this._transformState.data!==null&&(this._transformState.data=null,this._transformState.afterTransform())}_transform(t,n){n(null,t)}_flush(t){t(null)}_final(t){this._transformState.afterFinal=t,this._flush(x$.bind(this))}},Xg=class extends Yc{};function x$(e,t){let n=this._transformState.afterFinal;if(e)return n(e);t!=null&&this.push(t),this.push(null),n(null)}function v$(...e){return new Promise((t,n)=>fA(...e,r=>{if(r)return n(r);t()}))}function fA(e,...t){let n=Array.isArray(e)?[...e,...t]:[e,...t],r=n.length&&typeof n[n.length-1]=="function"?n.pop():null;if(n.length<2)throw new Error("Pipeline requires at least 2 streams");let i=n[0],o=null,s=null;for(let l=1;l<n.length;l++)o=n[l],ma(i)?i.pipe(o,u):(a(i,!0,l>1,u),i.pipe(o)),i=o;if(r){let l=!1,c=ma(o)||!!(o._writableState&&o._writableState.autoDestroy);o.on("error",f=>{s===null&&(s=f)}),o.on("finish",()=>{l=!0,c||r(s)}),c&&o.on("close",()=>r(s||(l?null:Gg)))}return o;function a(l,c,f,h){l.on("error",h),l.on("close",p);function p(){if(c&&l._readableState&&!l._readableState.ended||f&&l._writableState&&!l._writableState.ended)return h(Gg)}}function u(l){if(!(!l||s)){s=l;for(let c of n)c.destroy(l)}}}function E$(e){return e}function hA(e){return!!e._readableState||!!e._writableState}function ma(e){return typeof e._duplexState=="number"&&hA(e)}function S$(e){return!!e._readableState&&e._readableState.ended}function F$(e){return!!e._writableState&&e._writableState.ended}function k$(e,t={}){let n=e._readableState&&e._readableState.error||e._writableState&&e._writableState.error;return!t.all&&n===Qc?null:n}function T$(e){return ma(e)&&e.readable}function C$(e){return(e._duplexState&ln)!==ln||(e._duplexState&Xc)!==0}function A$(e){return typeof e=="object"&&e!==null&&typeof e.byteLength=="number"}function pA(e){return A$(e)?e.byteLength:1024}function QC(){}function R$(){this.destroy(new Error("Stream aborted."))}function O$(e){return e._writev!==Kc.prototype._writev&&e._writev!==da.prototype._writev}dA.exports={pipeline:fA,pipelinePromise:v$,isStream:hA,isStreamx:ma,isEnded:S$,isFinished:F$,isDisturbed:C$,getStreamError:k$,Stream:pa,Writable:Kc,Readable:Vc,Duplex:da,Transform:Yc,PassThrough:Xg}});var cy=w(wo=>{"use strict";var ie=po(),I$="0000000000000000000",L$="7777777777777777777",ef=48,mA=ie.from([117,115,116,97,114,0]),P$=ie.from([ef,ef]),B$=ie.from([117,115,116,97,114,32]),q$=ie.from([32,0]),N$=4095,wa=257,ly=263;wo.decodeLongPath=function(t,n){return Do(t,0,t.length,n)};wo.encodePax=function(t){let n="";t.name&&(n+=uy(" path="+t.name+`
|
|
38
|
+
`)),t.linkname&&(n+=uy(" linkpath="+t.linkname+`
|
|
39
|
+
`));let r=t.pax;if(r)for(let i in r)n+=uy(" "+i+"="+r[i]+`
|
|
40
|
+
`);return ie.from(n)};wo.decodePax=function(t){let n={};for(;t.length;){let r=0;for(;r<t.length&&t[r]!==32;)r++;let i=parseInt(ie.toString(t.subarray(0,r)),10);if(!i)return n;let o=ie.toString(t.subarray(r+1,i-1)),s=o.indexOf("=");if(s===-1)return n;n[o.slice(0,s)]=o.slice(s+1),t=t.subarray(i)}return n};wo.encode=function(t){let n=ie.alloc(512),r=t.name,i="";if(t.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),ie.byteLength(r)!==r.length)return null;for(;ie.byteLength(r)>100;){let o=r.indexOf("/");if(o===-1)return null;i+=i?"/"+r.slice(0,o):r.slice(0,o),r=r.slice(o+1)}return ie.byteLength(r)>100||ie.byteLength(i)>155||t.linkname&&ie.byteLength(t.linkname)>100?null:(ie.write(n,r),ie.write(n,lr(t.mode&N$,6),100),ie.write(n,lr(t.uid,6),108),ie.write(n,lr(t.gid,6),116),H$(t.size,n,124),ie.write(n,lr(t.mtime.getTime()/1e3|0,11),136),n[156]=ef+W$(t.type),t.linkname&&ie.write(n,t.linkname,157),ie.copy(mA,n,wa),ie.copy(P$,n,ly),t.uname&&ie.write(n,t.uname,265),t.gname&&ie.write(n,t.gname,297),ie.write(n,lr(t.devmajor||0,6),329),ie.write(n,lr(t.devminor||0,6),337),i&&ie.write(n,i,345),ie.write(n,lr(yA(n),6),148),n)};wo.decode=function(t,n,r){let i=t[156]===0?0:t[156]-ef,o=Do(t,0,100,n),s=ur(t,100,8),a=ur(t,108,8),u=ur(t,116,8),l=ur(t,124,12),c=ur(t,136,12),f=z$(i),h=t[157]===0?null:Do(t,157,100,n),p=Do(t,265,32),b=Do(t,297,32),D=ur(t,329,8),F=ur(t,337,8),g=yA(t);if(g===256)return null;if(g!==ur(t,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(M$(t))t[345]&&(o=Do(t,345,155,n)+"/"+o);else if(!j$(t)){if(!r)throw new Error("Invalid tar header: unknown format.")}return i===0&&o&&o[o.length-1]==="/"&&(i=5),{name:o,mode:s,uid:a,gid:u,size:l,mtime:new Date(1e3*c),type:f,linkname:h,uname:p,gname:b,devmajor:D,devminor:F,pax:null}};function M$(e){return ie.equals(mA,e.subarray(wa,wa+6))}function j$(e){return ie.equals(B$,e.subarray(wa,wa+6))&&ie.equals(q$,e.subarray(ly,ly+2))}function U$(e,t,n){return typeof e!="number"?n:(e=~~e,e>=t?t:e>=0||(e+=t,e>=0)?e:0)}function z$(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function W$(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function gA(e,t,n,r){for(;n<r;n++)if(e[n]===t)return n;return r}function yA(e){let t=256;for(let n=0;n<148;n++)t+=e[n];for(let n=156;n<512;n++)t+=e[n];return t}function lr(e,t){return e=e.toString(8),e.length>t?L$.slice(0,t)+" ":I$.slice(0,t-e.length)+e+" "}function $$(e,t,n){t[n]=128;for(let r=11;r>0;r--)t[n+r]=e&255,e=Math.floor(e/256)}function H$(e,t,n){e.toString(8).length>11?$$(e,t,n):ie.write(t,lr(e,11),n)}function G$(e){let t;if(e[0]===128)t=!0;else if(e[0]===255)t=!1;else return null;let n=[],r;for(r=e.length-1;r>0;r--){let s=e[r];t?n.push(s):n.push(255-s)}let i=0,o=n.length;for(r=0;r<o;r++)i+=n[r]*Math.pow(256,r);return t?i:-1*i}function ur(e,t,n){if(e=e.subarray(t,t+n),t=0,e[t]&128)return G$(e);{for(;t<e.length&&e[t]===32;)t++;let r=U$(gA(e,32,t,e.length),e.length,e.length);for(;t<r&&e[t]===0;)t++;return r===t?0:parseInt(ie.toString(e.subarray(t,r)),8)}}function Do(e,t,n,r){return ie.toString(e.subarray(t,gA(e,0,t,t+n)),r)}function uy(e){let t=ie.byteLength(e),n=Math.floor(Math.log(t)/Math.log(10))+1;return t+n>=Math.pow(10,n)&&n++,t+n+e}});var xA=w((xoe,_A)=>{"use strict";var{Writable:V$,Readable:K$,getStreamError:bA}=ay(),Y$=Hg(),DA=po(),_o=cy(),Q$=DA.alloc(0),hy=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Y$,this._offset=0}push(t){this.buffered+=t.byteLength,this.queue.push(t)}shiftFirst(t){return this._buffered===0?null:this._next(t)}shift(t){if(t>this.buffered)return null;if(t===0)return Q$;let n=this._next(t);if(t===n.byteLength)return n;let r=[n];for(;(t-=n.byteLength)>0;)n=this._next(t),r.push(n);return DA.concat(r)}_next(t){let n=this.queue.peek(),r=n.byteLength-this._offset;if(t>=r){let i=this._offset?n.subarray(this._offset,n.byteLength):n;return this.queue.shift(),this._offset=0,this.buffered-=r,this.shifted+=r,i}return this.buffered-=t,this.shifted+=t,n.subarray(this._offset,this._offset+=t)}},py=class extends K${constructor(t,n,r){super(),this.header=n,this.offset=r,this._parent=t}_read(t){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),t(null)}_predestroy(){this._parent.destroy(bA(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=wA(this.header.size),this._parent._update())}_destroy(t){this._detach(),t(null)}},dy=class extends V${constructor(t){super(t),t||(t={}),this._buffer=new hy,this._offset=0,this._header=null,this._stream=null,this._missing=0,this._longHeader=!1,this._callback=fy,this._locked=!1,this._finished=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null,this._filenameEncoding=t.filenameEncoding||"utf-8",this._allowUnknownFormat=!!t.allowUnknownFormat,this._unlockBound=this._unlock.bind(this)}_unlock(t){if(this._locked=!1,t){this.destroy(t),this._continueWrite(t);return}this._update()}_consumeHeader(){if(this._locked)return!1;this._offset=this._buffer.shifted;try{this._header=_o.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(t){return this._continueWrite(t),!1}if(!this._header)return!0;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":return this._longHeader=!0,this._missing=this._header.size,!0}return this._locked=!0,this._applyLongHeaders(),this._header.size===0||this._header.type==="directory"?(this.emit("entry",this._header,this._createStream(),this._unlockBound),!0):(this._stream=this._createStream(),this._missing=this._header.size,this.emit("entry",this._header,this._stream,this._unlockBound),!0)}_applyLongHeaders(){this._gnuLongPath&&(this._header.name=this._gnuLongPath,this._gnuLongPath=null),this._gnuLongLinkPath&&(this._header.linkname=this._gnuLongLinkPath,this._gnuLongLinkPath=null),this._pax&&(this._pax.path&&(this._header.name=this._pax.path),this._pax.linkpath&&(this._header.linkname=this._pax.linkpath),this._pax.size&&(this._header.size=parseInt(this._pax.size,10)),this._header.pax=this._pax,this._pax=null)}_decodeLongHeader(t){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=_o.decodeLongPath(t,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=_o.decodeLongPath(t,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=_o.decodePax(t);break;case"pax-header":this._pax=this._paxGlobal===null?_o.decodePax(t):Object.assign({},this._paxGlobal,_o.decodePax(t));break}}_consumeLongHeader(){this._longHeader=!1,this._missing=wA(this._header.size);let t=this._buffer.shift(this._header.size);try{this._decodeLongHeader(t)}catch(n){return this._continueWrite(n),!1}return!0}_consumeStream(){let t=this._buffer.shiftFirst(this._missing);if(t===null)return!1;this._missing-=t.byteLength;let n=this._stream.push(t);return this._missing===0?(this._stream.push(null),n&&this._stream._detach(),n&&this._locked===!1):n}_createStream(){return new py(this,this._header,this._offset)}_update(){for(;this._buffer.buffered>0&&!this.destroying;){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===!1)return;continue}if(this._longHeader===!0){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===!1)return!1;continue}let t=this._buffer.shiftFirst(this._missing);t!==null&&(this._missing-=t.byteLength);continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===!1)return}this._continueWrite(null)}_continueWrite(t){let n=this._callback;this._callback=fy,n(t)}_write(t,n){this._callback=n,this._buffer.push(t),this._update()}_final(t){this._finished=this._missing===0&&this._buffer.buffered===0,t(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(t){this._stream&&this._stream.destroy(bA(this)),t(null)}[Symbol.asyncIterator](){let t=null,n=null,r=null,i=null,o=null,s=this;return this.on("entry",l),this.on("error",h=>{t=h}),this.on("close",c),{[Symbol.asyncIterator](){return this},next(){return new Promise(u)},return(){return f(null)},throw(h){return f(h)}};function a(h){if(!o)return;let p=o;o=null,p(h)}function u(h,p){if(t)return p(t);if(i){h({value:i,done:!1}),i=null;return}n=h,r=p,a(null),s._finished&&n&&(n({value:void 0,done:!0}),n=r=null)}function l(h,p,b){o=b,p.on("error",fy),n?(n({value:p,done:!1}),n=r=null):i=p}function c(){a(t),n&&(t?r(t):n({value:void 0,done:!0}),n=r=null)}function f(h){return s.destroy(h),a(h),new Promise((p,b)=>{if(s.destroyed)return p({value:void 0,done:!0});s.once("close",function(){h?b(h):p({value:void 0,done:!0})})})}}};_A.exports=function(t){return new dy(t)};function fy(){}function wA(e){return e&=511,e&&512-e}});var EA=w((voe,my)=>{"use strict";var vA={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{my.exports=N("fs").constants||vA}catch{my.exports=vA}});var CA=w((Eoe,TA)=>{"use strict";var{Readable:Z$,Writable:J$,getStreamError:SA}=ay(),ai=po(),xo=EA(),tf=cy(),X$=493,eH=420,FA=ai.alloc(1024),yy=class extends J${constructor(t,n,r){super({mapWritable:nH,eagerOpen:!0}),this.written=0,this.header=n,this._callback=r,this._linkname=null,this._isLinkname=n.type==="symlink"&&!n.linkname,this._isVoid=n.type!=="file"&&n.type!=="contiguous-file",this._finished=!1,this._pack=t,this._openCallback=null,this._pack._stream===null?this._pack._stream=this:this._pack._pending.push(this)}_open(t){this._openCallback=t,this._pack._stream===this&&this._continueOpen()}_continuePack(t){if(this._callback===null)return;let n=this._callback;this._callback=null,n(t)}_continueOpen(){this._pack._stream===null&&(this._pack._stream=this);let t=this._openCallback;if(this._openCallback=null,t!==null){if(this._pack.destroying)return t(new Error("pack stream destroyed"));if(this._pack._finalized)return t(new Error("pack stream is already finalized"));this._pack._stream=this,this._isLinkname||this._pack._encode(this.header),this._isVoid&&(this._finish(),this._continuePack(null)),t(null)}}_write(t,n){if(this._isLinkname)return this._linkname=this._linkname?ai.concat([this._linkname,t]):t,n(null);if(this._isVoid)return t.byteLength>0?n(new Error("No body allowed for this entry")):n();if(this.written+=t.byteLength,this._pack.push(t))return n();this._pack._drain=n}_finish(){this._finished||(this._finished=!0,this._isLinkname&&(this.header.linkname=this._linkname?ai.toString(this._linkname,"utf-8"):"",this._pack._encode(this.header)),kA(this._pack,this.header.size),this._pack._done(this))}_final(t){if(this.written!==this.header.size)return t(new Error("Size mismatch"));this._finish(),t(null)}_getError(){return SA(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(t){this._pack._done(this),this._continuePack(this._finished?null:this._getError()),t()}},by=class extends Z${constructor(t){super(t),this._drain=gy,this._finalized=!1,this._finalizing=!1,this._pending=[],this._stream=null}entry(t,n,r){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");typeof n=="function"&&(r=n,n=null),r||(r=gy),(!t.size||t.type==="symlink")&&(t.size=0),t.type||(t.type=tH(t.mode)),t.mode||(t.mode=t.type==="directory"?X$:eH),t.uid||(t.uid=0),t.gid||(t.gid=0),t.mtime||(t.mtime=new Date),typeof n=="string"&&(n=ai.from(n));let i=new yy(this,t,r);return ai.isBuffer(n)?(t.size=n.byteLength,i.write(n),i.end(),i):(i._isVoid,i)}finalize(){if(this._stream||this._pending.length>0){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(FA),this.push(null))}_done(t){t===this._stream&&(this._stream=null,this._finalizing&&this.finalize(),this._pending.length&&this._pending.shift()._continueOpen())}_encode(t){if(!t.pax){let n=tf.encode(t);if(n){this.push(n);return}}this._encodePax(t)}_encodePax(t){let n=tf.encodePax({name:t.name,linkname:t.linkname,pax:t.pax}),r={name:"PaxHeader",mode:t.mode,uid:t.uid,gid:t.gid,size:n.byteLength,mtime:t.mtime,type:"pax-header",linkname:t.linkname&&"PaxHeader",uname:t.uname,gname:t.gname,devmajor:t.devmajor,devminor:t.devminor};this.push(tf.encode(r)),this.push(n),kA(this,n.byteLength),r.size=t.size,r.type=t.type,this.push(tf.encode(r))}_doDrain(){let t=this._drain;this._drain=gy,t()}_predestroy(){let t=SA(this);for(this._stream&&this._stream.destroy(t);this._pending.length;){let n=this._pending.shift();n.destroy(t),n._continueOpen()}this._doDrain()}_read(t){this._doDrain(),t()}};TA.exports=function(t){return new by(t)};function tH(e){switch(e&xo.S_IFMT){case xo.S_IFBLK:return"block-device";case xo.S_IFCHR:return"character-device";case xo.S_IFDIR:return"directory";case xo.S_IFIFO:return"fifo";case xo.S_IFLNK:return"symlink"}return"file"}function gy(){}function kA(e,t){t&=511,t&&e.push(FA.subarray(0,512-t))}function nH(e){return ai.isBuffer(e)?e:ai.from(e)}});var AA=w(Dy=>{"use strict";Dy.extract=xA();Dy.pack=CA()});var IA=w((Foe,OA)=>{"use strict";var rH=N("zlib"),iH=AA(),RA=fo(),An=function(e){if(!(this instanceof An))return new An(e);e=this.options=RA.defaults(e,{gzip:!1}),typeof e.gzipOptions!="object"&&(e.gzipOptions={}),this.supports={directory:!0,symlink:!0},this.engine=iH.pack(e),this.compressor=!1,e.gzip&&(this.compressor=rH.createGzip(e.gzipOptions),this.compressor.on("error",this._onCompressorError.bind(this)))};An.prototype._onCompressorError=function(e){this.engine.emit("error",e)};An.prototype.append=function(e,t,n){var r=this;t.mtime=t.date;function i(s,a){if(s){n(s);return}r.engine.entry(t,a,function(u){n(u,t)})}if(t.sourceType==="buffer")i(null,e);else if(t.sourceType==="stream"&&t.stats){t.size=t.stats.size;var o=r.engine.entry(t,function(s){n(s,t)});e.pipe(o)}else t.sourceType==="stream"&&RA.collectStream(e,i)};An.prototype.finalize=function(){this.engine.finalize()};An.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};An.prototype.pipe=function(e,t){return this.compressor?this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t):this.engine.pipe.apply(this.engine,arguments)};An.prototype.unpipe=function(){return this.compressor?this.compressor.unpipe.apply(this.compressor,arguments):this.engine.unpipe.apply(this.engine,arguments)};OA.exports=An});var BA=w((koe,PA)=>{"use strict";function oH(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sH=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function LA(e){if(Buffer.isBuffer(e))return e;if(typeof e=="number")return Buffer.alloc(e);if(typeof e=="string")return Buffer.from(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function aH(e){let t=LA(4);return t.writeInt32BE(e,0),t}function wy(e,t){e=LA(e),Buffer.isBuffer(t)&&(t=t.readUInt32BE(0));let n=~~t^-1;for(var r=0;r<e.length;r++)n=sH[(n^e[r])&255]^n>>>8;return n^-1}function _y(){return aH(wy.apply(null,arguments))}_y.signed=function(){return wy.apply(null,arguments)};_y.unsigned=function(){return wy.apply(null,arguments)>>>0};var uH=_y,lH=oH(uH);PA.exports=lH});var jA=w((Toe,MA)=>{"use strict";var cH=N("util").inherits,qA=Zr().Transform,fH=BA(),NA=fo(),cr=function(e){if(!(this instanceof cr))return new cr(e);e=this.options=NA.defaults(e,{}),qA.call(this,e),this.supports={directory:!0,symlink:!0},this.files=[]};cH(cr,qA);cr.prototype._transform=function(e,t,n){n(null,e)};cr.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)};cr.prototype.append=function(e,t,n){var r=this;t.crc32=0;function i(o,s){if(o){n(o);return}t.size=s.length||0,t.crc32=fH.unsigned(s),r.files.push(t),n(null,t)}t.sourceType==="buffer"?i(null,e):t.sourceType==="stream"&&NA.collectStream(e,i)};cr.prototype.finalize=function(){this._writeStringified(),this.end()};MA.exports=cr});var zA=w((Coe,UA)=>{"use strict";var hH=eC(),_a={},fr=function(e,t){return fr.create(e,t)};fr.create=function(e,t){if(_a[e]){var n=new hH(e,t);return n.setFormat(e),n.setModule(new _a[e](t)),n}else throw new Error("create("+e+"): format not registered")};fr.registerFormat=function(e,t){if(_a[e])throw new Error("register("+e+"): format already registered");if(typeof t!="function")throw new Error("register("+e+"): format module invalid");if(typeof t.prototype.append!="function"||typeof t.prototype.finalize!="function")throw new Error("register("+e+"): format module missing methods");_a[e]=t};fr.isRegisteredFormat=function(e){return!!_a[e]};fr.registerFormat("zip",OC());fr.registerFormat("tar",IA());fr.registerFormat("json",jA());UA.exports=fr});var pf=w((Tse,h2)=>{"use strict";h2.exports=ns()});var sb=ft(ob(),1),{program:fe,createCommand:WH,createArgument:$H,createOption:HH,CommanderError:GH,InvalidArgumentError:VH,InvalidOptionArgumentError:KH,Command:YH,Argument:QH,Option:ZH,Help:JH}=sb.default;var qf=e=>e.name==="backspace",Nf=e=>e.name==="tab";var Io=e=>e.name==="enter"||e.name==="return";var Oa=class extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(t){super(),this.cause=t?.cause}},Ia=class extends Error{name="CancelPromptError";message="Prompt was canceled"},Lo=class extends Error{name="ExitPromptError"},La=class extends Error{name="HookError"},Pa=class extends Error{name="ValidationError"};import{AsyncResource as Z2}from"node:async_hooks";import{AsyncLocalStorage as K2,AsyncResource as Y2}from"node:async_hooks";var ab=new K2;function Q2(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function ub(e,t){let n=Q2(e);return ab.run(n,()=>{function r(i){n.handleChange=()=>{n.index=0,i()},n.handleChange()}return t(r)})}function Dr(){let e=ab.getStore();if(!e)throw new La("[Inquirer] Hook functions can only be called from within a prompt");return e}function Mf(){return Dr().rl}function jf(e){let t=(...n)=>{let r=Dr(),i=!1,o=r.handleChange;r.handleChange=()=>{i=!0};let s=e(...n);return i&&o(),r.handleChange=o,s};return Y2.bind(t)}function Ba(e){let t=Dr(),{index:n}=t,r={get(){return t.hooks[n]},set(o){t.hooks[n]=o},initialized:n in t.hooks},i=e(r);return t.index++,i}function lb(){Dr().handleChange()}var wr={queue(e){let t=Dr(),{index:n}=t;t.hooksEffect.push(()=>{t.hooksCleanup[n]?.();let r=e(Mf());if(r!=null&&typeof r!="function")throw new Pa("useEffect return value must be a cleanup function or nothing.");t.hooksCleanup[n]=r})},run(){let e=Dr();jf(()=>{e.hooksEffect.forEach(t=>{t()}),e.hooksEffect.length=0})()},clearAll(){let e=Dr();e.hooksCleanup.forEach(t=>{t?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}};function Xe(e){return Ba(t=>{let n=Z2.bind(function(o){t.get()!==o&&(t.set(o),lb())});if(t.initialized)return[t.get(),n];let r=typeof e=="function"?e():e;return t.set(r),[r,n]})}function _r(e,t){Ba(n=>{let r=n.get();(!Array.isArray(r)||t.some((o,s)=>!Object.is(o,r[s])))&&wr.queue(e),n.set(t)})}import{styleText as Nt}from"node:util";import Kt from"node:process";function J2(){return Kt.platform!=="win32"?Kt.env.TERM!=="linux":!!Kt.env.WT_SESSION||!!Kt.env.TERMINUS_SUBLIME||Kt.env.ConEmuTask==="{cmd::Cmder}"||Kt.env.TERM_PROGRAM==="Terminus-Sublime"||Kt.env.TERM_PROGRAM==="vscode"||Kt.env.TERM==="xterm-256color"||Kt.env.TERM==="alacritty"||Kt.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var cb={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},fb={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},X2={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},eR={...cb,...fb},tR={...cb,...X2},nR=J2(),rR=nR?eR:tR,hb=rR,fG=Object.entries(fb);var pb={prefix:{idle:Nt("blue","?"),done:Nt("green",hb.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(e=>Nt("yellow",e))},style:{answer:e=>Nt("cyan",e),message:e=>Nt("bold",e),error:e=>Nt("red",`> ${e}`),defaultAnswer:e=>Nt("dim",`(${e})`),help:e=>Nt("dim",e),highlight:e=>Nt("cyan",e),key:e=>Nt("cyan",Nt("bold",`<${e}>`))}};function db(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function mb(...e){let t={};for(let n of e)for(let[r,i]of Object.entries(n)){let o=t[r];t[r]=db(o)&&db(i)?mb(o,i):i}return t}function xr(...e){let t=[pb,...e.filter(n=>n!=null)];return mb(...t)}function Po({status:e="idle",theme:t}){let[n,r]=Xe(!1),[i,o]=Xe(0),{prefix:s,spinner:a}=xr(t);return _r(()=>{if(e==="loading"){let l,c=-1,f=setTimeout(()=>{r(!0),l=setInterval(()=>{c=c+1,o(c%a.frames.length)},a.interval)},300);return()=>{clearTimeout(f),clearInterval(l)}}else r(!1)},[e]),n?a.frames[i]:typeof s=="string"?s:s[e==="loading"?"idle":e]??s.idle}function gb(e){return Xe({current:e})[0]}function Bo(e){let t=gb(e);t.current=e,_r(n=>{let r=!1,i=jf((o,s)=>{r||t.current(s,n)});return n.input.on("keypress",i),()=>{r=!0,n.input.removeListener("keypress",i)}},[])}var Ob=ft(bb(),1);function Uf({onlyFirst:e=!1}={}){let i="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(i,e?void 0:"g")}var sR=Uf();function qo(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(sR,"")}function Db(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function wb(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function _b(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function aR(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function xb(e,{ambiguousAsWide:t=!1}={}){return aR(e),wb(e)||_b(e)||t&&Db(e)?2:1}var vb=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var uR=new Intl.Segmenter,lR=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function vr(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=qo(e)),e.length===0)return 0;let i=0,o={ambiguousAsWide:!n};for(let{segment:s}of uR.segment(e)){let a=s.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!lR.test(s)){if(vb().test(s)){i+=2;continue}i+=xb(a,o)}}return i}var Eb=(e=0)=>t=>`\x1B[${t+e}m`,Sb=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Fb=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,be={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},UG=Object.keys(be.modifier),cR=Object.keys(be.color),fR=Object.keys(be.bgColor),zG=[...cR,...fR];function hR(){let e=new Map;for(let[t,n]of Object.entries(be)){for(let[r,i]of Object.entries(n))be[r]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},n[r]=be[r],e.set(i[0],i[1]);Object.defineProperty(be,t,{value:n,enumerable:!1})}return Object.defineProperty(be,"codes",{value:e,enumerable:!1}),be.color.close="\x1B[39m",be.bgColor.close="\x1B[49m",be.color.ansi=Eb(),be.color.ansi256=Sb(),be.color.ansi16m=Fb(),be.bgColor.ansi=Eb(10),be.bgColor.ansi256=Sb(10),be.bgColor.ansi16m=Fb(10),Object.defineProperties(be,{rgbToAnsi256:{value(t,n,r){return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(t){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return[0,0,0];let[r]=n;r.length===3&&(r=[...r].map(o=>o+o).join(""));let i=Number.parseInt(r,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>be.rgbToAnsi256(...be.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,r,i;if(t>=232)n=((t-232)*10+8)/255,r=n,i=n;else{t-=16;let a=t%36;n=Math.floor(t/36)/5,r=Math.floor(a/6)/5,i=a%6/5}let o=Math.max(n,r,i)*2;if(o===0)return 30;let s=30+(Math.round(i)<<2|Math.round(r)<<1|Math.round(n));return o===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,n,r)=>be.ansi256ToAnsi(be.rgbToAnsi256(t,n,r)),enumerable:!1},hexToAnsi:{value:t=>be.ansi256ToAnsi(be.hexToAnsi256(t)),enumerable:!1}}),be}var pR=hR(),kb=pR;var Na=new Set(["\x1B","\x9B"]),dR=39,Wf="\x07",Ab="[",mR="]",Rb="m",qa=`${mR}8;;`,Tb=e=>`${Na.values().next().value}${Ab}${e}${Rb}`,Cb=e=>`${Na.values().next().value}${qa}${e}${Wf}`,gR=e=>e.split(" ").map(t=>vr(t)),zf=(e,t,n)=>{let r=[...t],i=!1,o=!1,s=vr(qo(e.at(-1)));for(let[a,u]of r.entries()){let l=vr(u);if(s+l<=n?e[e.length-1]+=u:(e.push(u),s=0),Na.has(u)&&(i=!0,o=r.slice(a+1,a+1+qa.length).join("")===qa),i){o?u===Wf&&(i=!1,o=!1):u===Rb&&(i=!1);continue}s+=l,s===n&&a<r.length-1&&(e.push(""),s=0)}!s&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},yR=e=>{let t=e.split(" "),n=t.length;for(;n>0&&!(vr(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},bR=(e,t,n={})=>{if(n.trim!==!1&&e.trim()==="")return"";let r="",i,o,s=gR(e),a=[""];for(let[f,h]of e.split(" ").entries()){n.trim!==!1&&(a[a.length-1]=a.at(-1).trimStart());let p=vr(a.at(-1));if(f!==0&&(p>=t&&(n.wordWrap===!1||n.trim===!1)&&(a.push(""),p=0),(p>0||n.trim===!1)&&(a[a.length-1]+=" ",p++)),n.hard&&s[f]>t){let b=t-p,D=1+Math.floor((s[f]-b-1)/t);Math.floor((s[f]-1)/t)<D&&a.push(""),zf(a,h,t);continue}if(p+s[f]>t&&p>0&&s[f]>0){if(n.wordWrap===!1&&p<t){zf(a,h,t);continue}a.push("")}if(p+s[f]>t&&n.wordWrap===!1){zf(a,h,t);continue}a[a.length-1]+=h}n.trim!==!1&&(a=a.map(f=>yR(f)));let u=a.join(`
|
|
41
|
+
`),l=[...u],c=0;for(let[f,h]of l.entries()){if(r+=h,Na.has(h)){let{groups:b}=new RegExp(`(?:\\${Ab}(?<code>\\d+)m|\\${qa}(?<uri>.*)${Wf})`).exec(u.slice(c))||{groups:{}};if(b.code!==void 0){let D=Number.parseFloat(b.code);i=D===dR?void 0:D}else b.uri!==void 0&&(o=b.uri.length===0?void 0:b.uri)}let p=kb.codes.get(Number(i));l[f+1]===`
|
|
42
|
+
`?(o&&(r+=Cb("")),i&&p&&(r+=Tb(p))):h===`
|
|
43
|
+
`&&(i&&p&&(r+=Tb(i)),o&&(r+=Cb(o))),c+=h.length}return r};function $f(e,t,n){return String(e).normalize().replaceAll(`\r
|
|
44
|
+
`,`
|
|
45
|
+
`).split(`
|
|
46
|
+
`).map(r=>bR(r,t,n)).join(`
|
|
47
|
+
`)}function Hf(e,t){return e.split(`
|
|
48
|
+
`).flatMap(n=>$f(n,t,{trim:!1,hard:!0}).split(`
|
|
48
49
|
`).map(r=>r.trimEnd())).join(`
|
|
49
|
-
`)}function
|
|
50
|
-
`).length,
|
|
51
|
-
`).pop()??"",
|
|
52
|
-
`);let a=
|
|
53
|
-
`+n:""),
|
|
54
|
-
`,n+=
|
|
55
|
-
at ${
|
|
56
|
-
${r}`),process.exit(1)}});import*as Mn from"fs/promises";var qn=de.command("settings").description("Edit mod settings").option("--modsPath <modsPath>","mods directory to operate on",process.cwd());qn.command("list").description("List all current saved values").action(async()=>{let t=Bt.joinPath(Ye.file(qn.opts().modsPath),"mod-settings.dat"),e=new Lo(new br(await Mn.readFile(t.fsPath)));for(let n of e.list()){let r;switch(typeof n.value){case"string":r=`"${n.value}"`;break;case"object":r=`Color(${n.value.r}, ${n.value.g}, ${n.value.b}, ${n.value.a})`;break;default:r=n.value.toString();break}console.log(`${n.scope} ${n.setting} ${r}`)}});qn.command("get <scope> <name>").description("Get the saved value of a setting").action(async(t,e)=>{switch(t){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${t}"`),process.exit(1)}let n=Bt.joinPath(Ye.file(qn.opts().modsPath),"mod-settings.dat"),i=new Lo(new br(await Mn.readFile(n.fsPath))).get(t,e);if(!i){console.log("undefined");return}switch(i.type){case"bool":case"number":console.log(`${i.value}`);break;case"int":console.log(`${i.value}n`);break;case"string":console.log(`"${i.value}"`);break;case"color":console.log(`Color(${i.value.r}, ${i.value.g}, ${i.value.b}, ${i.value.a})`);break;default:console.error(`Unknown type ${i.type}`),process.exit(1)}});qn.command("set <scope> <name>").option("--type <type>","Force type (otherwise autodetect)").argument("<value>").description("Set the saved value of a setting").action(async(t,e,n,r)=>{switch(t){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${t}"`),process.exit(1)}let i=Bt.joinPath(Ye.file(qn.opts().modsPath),"mod-settings.dat"),o=new Lo(new br(await Mn.readFile(i.fsPath)));if(r.type)switch(r.type){case"bool":if(n==="true"||n==="false"){o.set(t,e,{type:"bool",value:n==="true"});break}else console.error(`invalid bool value ${n}`),process.exit(1);case"number":let s=Number(n);if(!isNaN(s)&&n!==""){o.set(t,e,{type:"number",value:s});break}else console.error(`invalid number value ${n}`),process.exit(1);case"color":let a=n.match(/(?:color:)?\(([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+)\s*)?\)/i);if(a){o.set(t,e,{type:"color",value:{r:Math.max(0,Math.min(1,parseFloat(a[1]))),g:Math.max(0,Math.min(1,parseFloat(a[2]))),b:Math.max(0,Math.min(1,parseFloat(a[3]))),a:a[4]?Math.max(0,Math.min(1,parseFloat(a[4]))):1}});break}if(a=n.match(/#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/),a){o.set(t,e,{type:"color",value:{r:parseInt(a[1],16)/255,g:parseInt(a[2],16)/255,b:parseInt(a[3],16)/255,a:a[4]?parseInt(a[4],16)/255:1}});break}console.error(`invalid color value ${n}`),process.exit(1);case"string":o.set(t,e,{type:"string",value:n});break;default:console.error(`Unknown type ${r.type}`),process.exit(1)}else if(n==="true"||n==="false")o.set(t,e,{type:"bool",value:n==="true"});else{let s=Number(n);!isNaN(s)&&n!==""?o.set(t,e,{type:"number",value:s}):o.set(t,e,{type:"string",value:n})}await Mn.writeFile(i.fsPath,o.save())});qn.command("unset <scope> <name>").description("Remove the saved value of a setting").action(async(t,e)=>{switch(t){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${t}"`),process.exit(1)}let n=Bt.joinPath(Ye.file(qn.opts().modsPath),"mod-settings.dat"),r=new Lo(new br(await Mn.readFile(n.fsPath)));r.set(t,e),await Mn.writeFile(n.fsPath,r.save())});import*as pn from"fs/promises";import*as bF from"crypto";var mw={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.blockfact.facti":["facti"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(mw);var gw=mw;var yw={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(yw);var bw=yw;var kt=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},wi,Ho,Er,ch=class{constructor(...e){wi.set(this,new Map),Ho.set(this,new Map),Er.set(this,new Map);for(let n of e)this.define(n)}define(e,n=!1){for(let[r,i]of Object.entries(e)){r=r.toLowerCase(),i=i.map(a=>a.toLowerCase()),kt(this,Er,"f").has(r)||kt(this,Er,"f").set(r,new Set);let o=kt(this,Er,"f").get(r),s=!0;for(let a of i){let l=a.startsWith("*");if(a=l?a.slice(1):a,o?.add(a),s&&kt(this,Ho,"f").set(r,a),s=!1,l)continue;let u=kt(this,wi,"f").get(a);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${u} -> ${a}". Pass \`force=true\` to override this definition.`);kt(this,wi,"f").set(a,r)}}return this}getType(e){if(typeof e!="string")return null;let n=e.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),i=n.length<e.length;return!(r.length<n.length-1)&&i?null:kt(this,wi,"f").get(r)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&kt(this,Ho,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:kt(this,Er,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(let e of kt(this,Er,"f").values())Object.freeze(e);return this}_getTestState(){return{types:kt(this,wi,"f"),extensions:kt(this,Ho,"f")}}};wi=new WeakMap,Ho=new WeakMap,Er=new WeakMap;var fh=ch;var ww=new fh(bw,gw)._freeze();import wF from"path";import{spawn as _F}from"child_process";var _i=(function(t){if(t==null)return aO;if(typeof t=="function")return Va(t);if(typeof t=="object")return Array.isArray(t)?iO(t):oO(t);if(typeof t=="string")return sO(t);throw new Error("Expected function, string, or object as test")});function iO(t){let e=[],n=-1;for(;++n<t.length;)e[n]=_i(t[n]);return Va(r);function r(...i){let o=-1;for(;++o<e.length;)if(e[o].apply(this,i))return!0;return!1}}function oO(t){let e=t;return Va(n);function n(r){let i=r,o;for(o in t)if(i[o]!==e[o])return!1;return!0}}function sO(t){return Va(e);function e(n){return n&&n.type===t}}function Va(t){return e;function e(n,r,i){return!!(lO(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function aO(){return!0}function lO(t){return t!==null&&typeof t=="object"&&"type"in t}function _w(t){return"\x1B[33m"+t+"\x1B[39m"}var Dw=[],Ya=!0,kr=!1,Ka="skip";function Nn(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;let o=_i(i),s=r?-1:1;a(t,void 0,[])();function a(l,u,c){let f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){let p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+_w(l.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Dw,w,D,k;if((!e||o(l,u,c[c.length-1]||void 0))&&(p=uO(n(l,c)),p[0]===kr))return p;if("children"in l&&l.children){let g=l;if(g.children&&p[0]!==Ka)for(D=(r?g.children.length:-1)+s,k=c.concat(g);D>-1&&D<g.children.length;){let m=g.children[D];if(w=a(m,D,k)(),w[0]===kr)return w;D=typeof w[1]=="number"?w[1]:D+s}}return p}}}function uO(t){return Array.isArray(t)?t:typeof t=="number"?[Ya,t]:t==null?Dw:[t]}function Qt(t,e,n,r){let i,o,s;typeof e=="function"&&typeof n!="function"?(o=void 0,s=e,i=n):(o=e,s=n,i=r),Nn(t,o,a,i);function a(l,u){let c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}var cO={};function Tr(t,e){let n=e||cO,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return vw(t,r,i)}function vw(t,e,n){if(fO(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return xw(t.children,e,n)}return Array.isArray(t)?xw(t,e,n):""}function xw(t,e,n){let r=[],i=-1;for(;++i<t.length;)r[i]=vw(t[i],e,n);return r.join("")}function fO(t){return!!(t&&typeof t=="object")}var hh={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
57
|
-
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var hO={}.hasOwnProperty;function Di(t){return hO.call(hh,t)?hh[t]:!1}function ze(t,e,n,r){let i=t.length,o=0,s;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(e,n),t.splice(...s);else for(n&&t.splice(e,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(e,0),t.splice(...s),o+=1e4,e+=1e4}function rt(t,e){return t.length>0?(ze(t,t.length,0,e),t):e}var Sw={}.hasOwnProperty;function Ew(t){let e={},n=-1;for(;++n<t.length;)pO(e,t[n]);return e}function pO(t,e){let n;for(n in e){let i=(Sw.call(t,n)?t[n]:void 0)||(t[n]={}),o=e[n],s;if(o)for(s in o){Sw.call(i,s)||(i[s]=[]);let a=o[s];dO(i[s],Array.isArray(a)?a:a?[a]:[])}}}function dO(t,e){let n=-1,r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);ze(t,0,0,r)}function Qa(t,e){let n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}function Dn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var mt=Bn(/[A-Za-z]/),it=Bn(/[\dA-Za-z]/),kw=Bn(/[#-'*+\--9=?A-Z^-~]/);function Go(t){return t!==null&&(t<32||t===127)}var Vo=Bn(/\d/),Tw=Bn(/[\dA-Fa-f]/),Aw=Bn(/[!-/:-@[-`{-~]/);function j(t){return t!==null&&t<-2}function Te(t){return t!==null&&(t<0||t===32)}function H(t){return t===-2||t===-1||t===32}var Cw=Bn(/\p{P}|\p{S}/u),Fw=Bn(/\s/);function Bn(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function Y(t,e,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return s;function s(l){return H(l)?(t.enter(n),a(l)):e(l)}function a(l){return H(l)&&o++<i?(t.consume(l),a):(t.exit(n),e(l))}}var Rw={tokenize:mO};function mO(t){let e=t.attempt(this.parser.constructs.contentInitial,r,i),n;return e;function r(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Y(t,e,"linePrefix")}function i(a){return t.enter("paragraph"),o(a)}function o(a){let l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(a);return}return j(a)?(t.consume(a),t.exit("chunkText"),o):(t.consume(a),s)}}var Iw={tokenize:gO},Ow={tokenize:yO};function gO(t){let e=this,n=[],r=0,i,o,s;return a;function a(d){if(r<n.length){let y=n[r];return e.containerState=y[1],t.attempt(y[0].continuation,l,u)(d)}return u(d)}function l(d){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&m();let y=e.events.length,T=y,x;for(;T--;)if(e.events[T][0]==="exit"&&e.events[T][1].type==="chunkFlow"){x=e.events[T][1].end;break}g(r);let S=y;for(;S<e.events.length;)e.events[S][1].end={...x},S++;return ze(e.events,T+1,0,e.events.slice(y)),e.events.length=S,u(d)}return a(d)}function u(d){if(r===n.length){if(!i)return h(d);if(i.currentConstruct&&i.currentConstruct.concrete)return w(d);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(Ow,c,f)(d)}function c(d){return i&&m(),g(r),h(d)}function f(d){return e.parser.lazy[e.now().line]=r!==n.length,s=e.now().offset,w(d)}function h(d){return e.containerState={},t.attempt(Ow,p,w)(d)}function p(d){return r++,n.push([e.currentConstruct,e.containerState]),h(d)}function w(d){if(d===null){i&&m(),g(0),t.consume(d);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),D(d)}function D(d){if(d===null){k(t.exit("chunkFlow"),!0),g(0),t.consume(d);return}return j(d)?(t.consume(d),k(t.exit("chunkFlow")),r=0,e.interrupt=void 0,a):(t.consume(d),D)}function k(d,y){let T=e.sliceStream(d);if(y&&T.push(null),d.previous=o,o&&(o.next=d),o=d,i.defineSkip(d.start),i.write(T),e.parser.lazy[d.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<s&&(!i.events[x][1].end||i.events[x][1].end.offset>s))return;let S=e.events.length,M=S,A,F;for(;M--;)if(e.events[M][0]==="exit"&&e.events[M][1].type==="chunkFlow"){if(A){F=e.events[M][1].end;break}A=!0}for(g(r),x=S;x<e.events.length;)e.events[x][1].end={...F},x++;ze(e.events,M+1,0,e.events.slice(S)),e.events.length=x}}function g(d){let y=n.length;for(;y-- >d;){let T=n[y];e.containerState=T[1],T[0].exit.call(e,t)}n.length=d}function m(){i.write([null]),o=void 0,i=void 0,e.containerState._closeFlow=void 0}}function yO(t,e,n){return Y(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function xi(t){if(t===null||Te(t)||Fw(t))return 1;if(Cw(t))return 2}function vi(t,e,n){let r=[],i=-1;for(;++i<t.length;){let o=t[i].resolveAll;o&&!r.includes(o)&&(e=o(e,n),r.push(o))}return e}var Yo={name:"attention",resolveAll:bO,tokenize:wO};function bO(t,e){let n=-1,r,i,o,s,a,l,u,c;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;let f={...t[r][1].end},h={...t[n][1].start};Lw(f,-l),Lw(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...t[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:h},o={type:l>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},t[r][1].end={...s.start},t[n][1].start={...a.end},u=[],t[r][1].end.offset-t[r][1].start.offset&&(u=rt(u,[["enter",t[r][1],e],["exit",t[r][1],e]])),u=rt(u,[["enter",i,e],["enter",s,e],["exit",s,e],["enter",o,e]]),u=rt(u,vi(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),u=rt(u,[["exit",o,e],["enter",a,e],["exit",a,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(c=2,u=rt(u,[["enter",t[n][1],e],["exit",t[n][1],e]])):c=0,ze(t,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function wO(t,e){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=xi(r),o;return s;function s(l){return o=l,t.enter("attentionSequence"),a(l)}function a(l){if(l===o)return t.consume(l),a;let u=t.exit("attentionSequence"),c=xi(l),f=!c||c===2&&i||n.includes(l),h=!i||i===2&&c||n.includes(r);return u._open=!!(o===42?f:f&&(i||!h)),u._close=!!(o===42?h:h&&(c||!f)),e(l)}}function Lw(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}var ph={name:"autolink",tokenize:_O};function _O(t,e,n){let r=0;return i;function i(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o}function o(p){return mt(p)?(t.consume(p),s):p===64?n(p):u(p)}function s(p){return p===43||p===45||p===46||it(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(t.consume(p),r=0,l):(p===43||p===45||p===46||it(p))&&r++<32?(t.consume(p),a):(r=0,u(p))}function l(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||Go(p)?n(p):(t.consume(p),l)}function u(p){return p===64?(t.consume(p),c):kw(p)?(t.consume(p),u):n(p)}function c(p){return it(p)?f(p):n(p)}function f(p){return p===46?(t.consume(p),r=0,c):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):h(p)}function h(p){if((p===45||it(p))&&r++<63){let w=p===45?h:f;return t.consume(p),w}return n(p)}}var jn={partial:!0,tokenize:DO};function DO(t,e,n){return r;function r(o){return H(o)?Y(t,i,"linePrefix")(o):i(o)}function i(o){return o===null||j(o)?e(o):n(o)}}var Za={continuation:{tokenize:vO},exit:SO,name:"blockQuote",tokenize:xO};function xO(t,e,n){let r=this;return i;function i(s){if(s===62){let a=r.containerState;return a.open||(t.enter("blockQuote",{_container:!0}),a.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),o}return n(s)}function o(s){return H(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(s))}}function vO(t,e,n){let r=this;return i;function i(s){return H(s)?Y(t,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return t.attempt(Za,e,n)(s)}}function SO(t){t.exit("blockQuote")}var Ja={name:"characterEscape",tokenize:EO};function EO(t,e,n){return r;function r(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),i}function i(o){return Aw(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(o)}}var Xa={name:"characterReference",tokenize:kO};function kO(t,e,n){let r=this,i=0,o,s;return a;function a(f){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),l}function l(f){return f===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(f),t.exit("characterReferenceMarkerNumeric"),u):(t.enter("characterReferenceValue"),o=31,s=it,c(f))}function u(f){return f===88||f===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(f),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,s=Tw,c):(t.enter("characterReferenceValue"),o=7,s=Vo,c(f))}function c(f){if(f===59&&i){let h=t.exit("characterReferenceValue");return s===it&&!Di(r.sliceSerialize(h))?n(f):(t.enter("characterReferenceMarker"),t.consume(f),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return s(f)&&i++<o?(t.consume(f),c):n(f)}}var Pw={partial:!0,tokenize:AO},el={concrete:!0,name:"codeFenced",tokenize:TO};function TO(t,e,n){let r=this,i={partial:!0,tokenize:T},o=0,s=0,a;return l;function l(x){return u(x)}function u(x){let S=r.events[r.events.length-1];return o=S&&S[1].type==="linePrefix"?S[2].sliceSerialize(S[1],!0).length:0,a=x,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(x)}function c(x){return x===a?(s++,t.consume(x),c):s<3?n(x):(t.exit("codeFencedFenceSequence"),H(x)?Y(t,f,"whitespace")(x):f(x))}function f(x){return x===null||j(x)?(t.exit("codeFencedFence"),r.interrupt?e(x):t.check(Pw,D,y)(x)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===null||j(x)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),f(x)):H(x)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Y(t,p,"whitespace")(x)):x===96&&x===a?n(x):(t.consume(x),h)}function p(x){return x===null||j(x)?f(x):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),w(x))}function w(x){return x===null||j(x)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),f(x)):x===96&&x===a?n(x):(t.consume(x),w)}function D(x){return t.attempt(i,y,k)(x)}function k(x){return t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),g}function g(x){return o>0&&H(x)?Y(t,m,"linePrefix",o+1)(x):m(x)}function m(x){return x===null||j(x)?t.check(Pw,D,y)(x):(t.enter("codeFlowValue"),d(x))}function d(x){return x===null||j(x)?(t.exit("codeFlowValue"),m(x)):(t.consume(x),d)}function y(x){return t.exit("codeFenced"),e(x)}function T(x,S,M){let A=0;return F;function F(L){return x.enter("lineEnding"),x.consume(L),x.exit("lineEnding"),I}function I(L){return x.enter("codeFencedFence"),H(L)?Y(x,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):B(L)}function B(L){return L===a?(x.enter("codeFencedFenceSequence"),O(L)):M(L)}function O(L){return L===a?(A++,x.consume(L),O):A>=s?(x.exit("codeFencedFenceSequence"),H(L)?Y(x,R,"whitespace")(L):R(L)):M(L)}function R(L){return L===null||j(L)?(x.exit("codeFencedFence"),S(L)):M(L)}}}function AO(t,e,n){let r=this;return i;function i(s){return s===null?n(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):e(s)}}var Ko={name:"codeIndented",tokenize:FO},CO={partial:!0,tokenize:RO};function FO(t,e,n){let r=this;return i;function i(u){return t.enter("codeIndented"),Y(t,o,"linePrefix",5)(u)}function o(u){let c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):j(u)?t.attempt(CO,s,l)(u):(t.enter("codeFlowValue"),a(u))}function a(u){return u===null||j(u)?(t.exit("codeFlowValue"),s(u)):(t.consume(u),a)}function l(u){return t.exit("codeIndented"),e(u)}}function RO(t,e,n){let r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):j(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i):Y(t,o,"linePrefix",5)(s)}function o(s){let a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(s):j(s)?i(s):n(s)}}var dh={name:"codeText",previous:IO,resolve:OO,tokenize:LO};function OO(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function IO(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function LO(t,e,n){let r=this,i=0,o,s;return a;function a(h){return t.enter("codeText"),t.enter("codeTextSequence"),l(h)}function l(h){return h===96?(t.consume(h),i++,l):(t.exit("codeTextSequence"),u(h))}function u(h){return h===null?n(h):h===32?(t.enter("space"),t.consume(h),t.exit("space"),u):h===96?(s=t.enter("codeTextSequence"),o=0,f(h)):j(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),u):(t.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||j(h)?(t.exit("codeTextData"),u(h)):(t.consume(h),c)}function f(h){return h===96?(t.consume(h),o++,f):o===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(h)):(s.type="codeTextData",c(h))}}var tl=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){let r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){let i=n||0;this.setCursor(Math.trunc(e));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Qo(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Qo(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Qo(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let n=this.left.splice(e,Number.POSITIVE_INFINITY);Qo(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Qo(this.left,n.reverse())}}};function Qo(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function nl(t){let e={},n=-1,r,i,o,s,a,l,u,c=new tl(t);for(;++n<c.length;){for(;n in e;)n=e[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,PO(c,n)),n=e[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return ze(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function PO(t,e){let n=t.get(e)[1],r=t.get(e)[2],i=e-1,o=[],s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let a=s.events,l=[],u={},c,f,h=-1,p=n,w=0,D=0,k=[D];for(;p;){for(;t.get(++i)[1]!==p;);o.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(D=h+1,k.push(D),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):k.pop(),h=k.length;h--;){let g=a.slice(k[h],k[h+1]),m=o.pop();l.push([m,m+g.length-1]),t.splice(m,2,g)}for(l.reverse(),h=-1;++h<l.length;)u[w+l[h][0]]=w+l[h][1],w+=l[h][1]-l[h][0]-1;return u}var mh={resolve:MO,tokenize:NO},qO={partial:!0,tokenize:BO};function MO(t){return nl(t),t}function NO(t,e){let n;return r;function r(a){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):j(a)?t.check(qO,s,o)(a):(t.consume(a),i)}function o(a){return t.exit("chunkContent"),t.exit("content"),e(a)}function s(a){return t.consume(a),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function BO(t,e,n){let r=this;return i;function i(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Y(t,o,"linePrefix")}function o(s){if(s===null||j(s))return n(s);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(s):t.interrupt(r.parser.constructs.flow,n,e)(s)}}function rl(t,e,n,r,i,o,s,a,l){let u=l||Number.POSITIVE_INFINITY,c=0;return f;function f(g){return g===60?(t.enter(r),t.enter(i),t.enter(o),t.consume(g),t.exit(o),h):g===null||g===32||g===41||Go(g)?n(g):(t.enter(r),t.enter(s),t.enter(a),t.enter("chunkString",{contentType:"string"}),D(g))}function h(g){return g===62?(t.enter(o),t.consume(g),t.exit(o),t.exit(i),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(t.exit("chunkString"),t.exit(a),h(g)):g===null||g===60||j(g)?n(g):(t.consume(g),g===92?w:p)}function w(g){return g===60||g===62||g===92?(t.consume(g),p):p(g)}function D(g){return!c&&(g===null||g===41||Te(g))?(t.exit("chunkString"),t.exit(a),t.exit(s),t.exit(r),e(g)):c<u&&g===40?(t.consume(g),c++,D):g===41?(t.consume(g),c--,D):g===null||g===32||g===40||Go(g)?n(g):(t.consume(g),g===92?k:D)}function k(g){return g===40||g===41||g===92?(t.consume(g),D):D(g)}}function il(t,e,n,r,i,o){let s=this,a=0,l;return u;function u(p){return t.enter(r),t.enter(i),t.consume(p),t.exit(i),t.enter(o),c}function c(p){return a>999||p===null||p===91||p===93&&!l||p===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(t.exit(o),t.enter(i),t.consume(p),t.exit(i),t.exit(r),e):j(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||j(p)||a++>999?(t.exit("chunkString"),c(p)):(t.consume(p),l||(l=!H(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(t.consume(p),a++,f):f(p)}}function ol(t,e,n,r,i,o){let s;return a;function a(h){return h===34||h===39||h===40?(t.enter(r),t.enter(i),t.consume(h),t.exit(i),s=h===40?41:h,l):n(h)}function l(h){return h===s?(t.enter(i),t.consume(h),t.exit(i),t.exit(r),e):(t.enter(o),u(h))}function u(h){return h===s?(t.exit(o),l(s)):h===null?n(h):j(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),Y(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||j(h)?(t.exit("chunkString"),u(h)):(t.consume(h),h===92?f:c)}function f(h){return h===s||h===92?(t.consume(h),c):c(h)}}function Ar(t,e){let n;return r;function r(i){return j(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):H(i)?Y(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}var gh={name:"definition",tokenize:UO},jO={partial:!0,tokenize:zO};function UO(t,e,n){let r=this,i;return o;function o(p){return t.enter("definition"),s(p)}function s(p){return il.call(r,t,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(t.enter("definitionMarker"),t.consume(p),t.exit("definitionMarker"),l):n(p)}function l(p){return Te(p)?Ar(t,u)(p):u(p)}function u(p){return rl(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return t.attempt(jO,f,f)(p)}function f(p){return H(p)?Y(t,h,"whitespace")(p):h(p)}function h(p){return p===null||j(p)?(t.exit("definition"),r.parser.defined.push(i),e(p)):n(p)}}function zO(t,e,n){return r;function r(a){return Te(a)?Ar(t,i)(a):n(a)}function i(a){return ol(t,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return H(a)?Y(t,s,"whitespace")(a):s(a)}function s(a){return a===null||j(a)?e(a):n(a)}}var yh={name:"hardBreakEscape",tokenize:WO};function WO(t,e,n){return r;function r(o){return t.enter("hardBreakEscape"),t.consume(o),i}function i(o){return j(o)?(t.exit("hardBreakEscape"),e(o)):n(o)}}var bh={name:"headingAtx",resolve:$O,tokenize:HO};function $O(t,e){let n=t.length-2,r=3,i,o;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},o={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},ze(t,r,n-r+1,[["enter",i,e],["enter",o,e],["exit",o,e],["exit",i,e]])),t}function HO(t,e,n){let r=0;return i;function i(c){return t.enter("atxHeading"),o(c)}function o(c){return t.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(t.consume(c),s):c===null||Te(c)?(t.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(t.enter("atxHeadingSequence"),l(c)):c===null||j(c)?(t.exit("atxHeading"),e(c)):H(c)?Y(t,a,"whitespace")(c):(t.enter("atxHeadingText"),u(c))}function l(c){return c===35?(t.consume(c),l):(t.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||Te(c)?(t.exit("atxHeadingText"),a(c)):(t.consume(c),u)}}var qw=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wh=["pre","script","style","textarea"];var _h={concrete:!0,name:"htmlFlow",resolveTo:YO,tokenize:KO},GO={partial:!0,tokenize:ZO},VO={partial:!0,tokenize:QO};function YO(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function KO(t,e,n){let r=this,i,o,s,a,l;return u;function u(E){return c(E)}function c(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),f}function f(E){return E===33?(t.consume(E),h):E===47?(t.consume(E),o=!0,D):E===63?(t.consume(E),i=3,r.interrupt?e:v):mt(E)?(t.consume(E),s=String.fromCharCode(E),k):n(E)}function h(E){return E===45?(t.consume(E),i=2,p):E===91?(t.consume(E),i=5,a=0,w):mt(E)?(t.consume(E),i=4,r.interrupt?e:v):n(E)}function p(E){return E===45?(t.consume(E),r.interrupt?e:v):n(E)}function w(E){let pt="CDATA[";return E===pt.charCodeAt(a++)?(t.consume(E),a===pt.length?r.interrupt?e:B:w):n(E)}function D(E){return mt(E)?(t.consume(E),s=String.fromCharCode(E),k):n(E)}function k(E){if(E===null||E===47||E===62||Te(E)){let pt=E===47,mr=s.toLowerCase();return!pt&&!o&&wh.includes(mr)?(i=1,r.interrupt?e(E):B(E)):qw.includes(s.toLowerCase())?(i=6,pt?(t.consume(E),g):r.interrupt?e(E):B(E)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(E):o?m(E):d(E))}return E===45||it(E)?(t.consume(E),s+=String.fromCharCode(E),k):n(E)}function g(E){return E===62?(t.consume(E),r.interrupt?e:B):n(E)}function m(E){return H(E)?(t.consume(E),m):F(E)}function d(E){return E===47?(t.consume(E),F):E===58||E===95||mt(E)?(t.consume(E),y):H(E)?(t.consume(E),d):F(E)}function y(E){return E===45||E===46||E===58||E===95||it(E)?(t.consume(E),y):T(E)}function T(E){return E===61?(t.consume(E),x):H(E)?(t.consume(E),T):d(E)}function x(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(t.consume(E),l=E,S):H(E)?(t.consume(E),x):M(E)}function S(E){return E===l?(t.consume(E),l=null,A):E===null||j(E)?n(E):(t.consume(E),S)}function M(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||Te(E)?T(E):(t.consume(E),M)}function A(E){return E===47||E===62||H(E)?d(E):n(E)}function F(E){return E===62?(t.consume(E),I):n(E)}function I(E){return E===null||j(E)?B(E):H(E)?(t.consume(E),I):n(E)}function B(E){return E===45&&i===2?(t.consume(E),$):E===60&&i===1?(t.consume(E),z):E===62&&i===4?(t.consume(E),vt):E===63&&i===3?(t.consume(E),v):E===93&&i===5?(t.consume(E),oe):j(E)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(GO,mn,O)(E)):E===null||j(E)?(t.exit("htmlFlowData"),O(E)):(t.consume(E),B)}function O(E){return t.check(VO,R,mn)(E)}function R(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),L}function L(E){return E===null||j(E)?O(E):(t.enter("htmlFlowData"),B(E))}function $(E){return E===45?(t.consume(E),v):B(E)}function z(E){return E===47?(t.consume(E),s="",pe):B(E)}function pe(E){if(E===62){let pt=s.toLowerCase();return wh.includes(pt)?(t.consume(E),vt):B(E)}return mt(E)&&s.length<8?(t.consume(E),s+=String.fromCharCode(E),pe):B(E)}function oe(E){return E===93?(t.consume(E),v):B(E)}function v(E){return E===62?(t.consume(E),vt):E===45&&i===2?(t.consume(E),v):B(E)}function vt(E){return E===null||j(E)?(t.exit("htmlFlowData"),mn(E)):(t.consume(E),vt)}function mn(E){return t.exit("htmlFlow"),e(E)}}function QO(t,e,n){let r=this;return i;function i(s){return j(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):e(s)}}function ZO(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(jn,e,n)}}var Dh={name:"htmlText",tokenize:JO};function JO(t,e,n){let r=this,i,o,s;return a;function a(v){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(v),l}function l(v){return v===33?(t.consume(v),u):v===47?(t.consume(v),T):v===63?(t.consume(v),d):mt(v)?(t.consume(v),M):n(v)}function u(v){return v===45?(t.consume(v),c):v===91?(t.consume(v),o=0,w):mt(v)?(t.consume(v),m):n(v)}function c(v){return v===45?(t.consume(v),p):n(v)}function f(v){return v===null?n(v):v===45?(t.consume(v),h):j(v)?(s=f,z(v)):(t.consume(v),f)}function h(v){return v===45?(t.consume(v),p):f(v)}function p(v){return v===62?$(v):v===45?h(v):f(v)}function w(v){let vt="CDATA[";return v===vt.charCodeAt(o++)?(t.consume(v),o===vt.length?D:w):n(v)}function D(v){return v===null?n(v):v===93?(t.consume(v),k):j(v)?(s=D,z(v)):(t.consume(v),D)}function k(v){return v===93?(t.consume(v),g):D(v)}function g(v){return v===62?$(v):v===93?(t.consume(v),g):D(v)}function m(v){return v===null||v===62?$(v):j(v)?(s=m,z(v)):(t.consume(v),m)}function d(v){return v===null?n(v):v===63?(t.consume(v),y):j(v)?(s=d,z(v)):(t.consume(v),d)}function y(v){return v===62?$(v):d(v)}function T(v){return mt(v)?(t.consume(v),x):n(v)}function x(v){return v===45||it(v)?(t.consume(v),x):S(v)}function S(v){return j(v)?(s=S,z(v)):H(v)?(t.consume(v),S):$(v)}function M(v){return v===45||it(v)?(t.consume(v),M):v===47||v===62||Te(v)?A(v):n(v)}function A(v){return v===47?(t.consume(v),$):v===58||v===95||mt(v)?(t.consume(v),F):j(v)?(s=A,z(v)):H(v)?(t.consume(v),A):$(v)}function F(v){return v===45||v===46||v===58||v===95||it(v)?(t.consume(v),F):I(v)}function I(v){return v===61?(t.consume(v),B):j(v)?(s=I,z(v)):H(v)?(t.consume(v),I):A(v)}function B(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(t.consume(v),i=v,O):j(v)?(s=B,z(v)):H(v)?(t.consume(v),B):(t.consume(v),R)}function O(v){return v===i?(t.consume(v),i=void 0,L):v===null?n(v):j(v)?(s=O,z(v)):(t.consume(v),O)}function R(v){return v===null||v===34||v===39||v===60||v===61||v===96?n(v):v===47||v===62||Te(v)?A(v):(t.consume(v),R)}function L(v){return v===47||v===62||Te(v)?A(v):n(v)}function $(v){return v===62?(t.consume(v),t.exit("htmlTextData"),t.exit("htmlText"),e):n(v)}function z(v){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),pe}function pe(v){return H(v)?Y(t,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):oe(v)}function oe(v){return t.enter("htmlTextData"),s(v)}}var Cr={name:"labelEnd",resolveAll:nI,resolveTo:rI,tokenize:iI},XO={tokenize:oI},eI={tokenize:sI},tI={tokenize:aI};function nI(t){let e=-1,n=[];for(;++e<t.length;){let r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){let i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&ze(t,0,t.length,n),t}function rI(t,e){let n=t.length,r=0,i,o,s,a;for(;n--;)if(i=t[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);let l={type:t[o][1].type==="labelLink"?"link":"image",start:{...t[o][1].start},end:{...t[t.length-1][1].end}},u={type:"label",start:{...t[o][1].start},end:{...t[s][1].end}},c={type:"labelText",start:{...t[o+r+2][1].end},end:{...t[s-2][1].start}};return a=[["enter",l,e],["enter",u,e]],a=rt(a,t.slice(o+1,o+r+3)),a=rt(a,[["enter",c,e]]),a=rt(a,vi(e.parser.constructs.insideSpan.null,t.slice(o+r+4,s-3),e)),a=rt(a,[["exit",c,e],t[s-2],t[s-1],["exit",u,e]]),a=rt(a,t.slice(s+1)),a=rt(a,[["exit",l,e]]),ze(t,o,t.length,a),t}function iI(t,e,n){let r=this,i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(h){return o?o._inactive?f(h):(s=r.parser.defined.includes(Dn(r.sliceSerialize({start:o.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelEnd"),l):n(h)}function l(h){return h===40?t.attempt(XO,c,s?c:f)(h):h===91?t.attempt(eI,c,s?u:f)(h):s?c(h):f(h)}function u(h){return t.attempt(tI,c,f)(h)}function c(h){return e(h)}function f(h){return o._balanced=!0,n(h)}}function oI(t,e,n){return r;function r(f){return t.enter("resource"),t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),i}function i(f){return Te(f)?Ar(t,o)(f):o(f)}function o(f){return f===41?c(f):rl(t,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Te(f)?Ar(t,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?ol(t,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Te(f)?Ar(t,c)(f):c(f)}function c(f){return f===41?(t.enter("resourceMarker"),t.consume(f),t.exit("resourceMarker"),t.exit("resource"),e):n(f)}}function sI(t,e,n){let r=this;return i;function i(a){return il.call(r,t,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(Dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(a):n(a)}function s(a){return n(a)}}function aI(t,e,n){return r;function r(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),i}function i(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),e):n(o)}}var xh={name:"labelStartImage",resolveAll:Cr.resolveAll,tokenize:lI};function lI(t,e,n){let r=this;return i;function i(a){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(a),t.exit("labelImageMarker"),o}function o(a){return a===91?(t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):e(a)}}var vh={name:"labelStartLink",resolveAll:Cr.resolveAll,tokenize:uI};function uI(t,e,n){let r=this;return i;function i(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):e(s)}}var Zo={name:"lineEnding",tokenize:cI};function cI(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),Y(t,e,"linePrefix")}}var Fr={name:"thematicBreak",tokenize:fI};function fI(t,e,n){let r=0,i;return o;function o(u){return t.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(t.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||j(u))?(t.exit("thematicBreak"),e(u)):n(u)}function l(u){return u===i?(t.consume(u),r++,l):(t.exit("thematicBreakSequence"),H(u)?Y(t,a,"whitespace")(u):a(u))}}var Ke={continuation:{tokenize:mI},exit:yI,name:"list",tokenize:dI},hI={partial:!0,tokenize:bI},pI={partial:!0,tokenize:gI};function dI(t,e,n){let r=this,i=r.events[r.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(p){let w=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Vo(p)){if(r.containerState.type||(r.containerState.type=w,t.enter(w,{_container:!0})),w==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(Fr,n,u)(p):u(p);if(!r.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(p)}return n(p)}function l(p){return Vo(p)&&++s<10?(t.consume(p),l):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),u(p)):n(p)}function u(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,t.check(jn,r.interrupt?n:c,t.attempt(hI,h,f))}function c(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function f(p){return H(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}function mI(t,e,n){let r=this;return r.containerState._closeFlow=void 0,t.check(jn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(t,e,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!H(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(pI,e,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(t,t.attempt(Ke,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function gI(t,e,n){let r=this;return Y(t,i,"listItemIndent",r.containerState.size+1);function i(o){let s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?e(o):n(o)}}function yI(t){t.exit(this.containerState.type)}function bI(t,e,n){let r=this;return Y(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){let s=r.events[r.events.length-1];return!H(o)&&s&&s[1].type==="listItemPrefixWhitespace"?e(o):n(o)}}var sl={name:"setextUnderline",resolveTo:wI,tokenize:_I};function wI(t,e){let n=t.length,r,i,o;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!o&&t[n][1].type==="definition"&&(o=n);let s={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",o?(t.splice(i,0,["enter",s,e]),t.splice(o+1,0,["exit",t[r][1],e]),t[r][1].end={...t[o][1].end}):t[r][1]=s,t.push(["exit",s,e]),t}function _I(t,e,n){let r=this,i;return o;function o(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(t.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return t.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(t.consume(u),a):(t.exit("setextHeadingLineSequence"),H(u)?Y(t,l,"lineSuffix")(u):l(u))}function l(u){return u===null||j(u)?(t.exit("setextHeadingLine"),e(u)):n(u)}}var Mw={tokenize:DI};function DI(t){let e=this,n=t.attempt(jn,r,t.attempt(this.parser.constructs.flowInitial,i,Y(t,t.attempt(this.parser.constructs.flow,i,t.attempt(mh,i)),"linePrefix")));return n;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,n}}var Nw={resolveAll:zw()},Bw=Uw("string"),jw=Uw("text");function Uw(t){return{resolveAll:zw(t==="text"?xI:void 0),tokenize:e};function e(n){let r=this,i=this.parser.constructs[t],o=n.attempt(i,s,a);return s;function s(c){return u(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;let f=i[c],h=-1;if(f)for(;++h<f.length;){let p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function zw(t){return e;function e(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return t?t(n,r):n}}function xI(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){let r=t[n-1][1],i=e.sliceStream(r),o=i.length,s=-1,a=0,l;for(;o--;){let u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(a=0),a){let u={type:n===t.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(t.splice(n,0,["enter",u,e],["exit",u,e]),n+=2)}n++}return t}var Sh={};By(Sh,{attentionMarkers:()=>FI,contentInitial:()=>SI,disable:()=>RI,document:()=>vI,flow:()=>kI,flowInitial:()=>EI,insideSpan:()=>CI,string:()=>TI,text:()=>AI});var vI={42:Ke,43:Ke,45:Ke,48:Ke,49:Ke,50:Ke,51:Ke,52:Ke,53:Ke,54:Ke,55:Ke,56:Ke,57:Ke,62:Za},SI={91:gh},EI={[-2]:Ko,[-1]:Ko,32:Ko},kI={35:bh,42:Fr,45:[sl,Fr],60:_h,61:sl,95:Fr,96:el,126:el},TI={38:Xa,92:Ja},AI={[-5]:Zo,[-4]:Zo,[-3]:Zo,33:xh,38:Xa,42:Yo,60:[ph,Dh],91:vh,92:[yh,Ja],93:Cr,95:Yo,96:dh},CI={null:[Yo,Nw]},FI={null:[42,95]},RI={null:[]};function Ww(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],s=[],a=[],l=!0,u={attempt:A(S),check:A(M),consume:y,enter:T,exit:x,interrupt:A(M,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:k,parser:t,previous:null,sliceSerialize:w,sliceStream:D,write:p},f=e.tokenize.call(c,u),h;return e.resolveAll&&o.push(e),c;function p(O){return s=rt(s,O),m(),s[s.length-1]!==null?[]:(F(e,0),c.events=vi(o,c.events,c),c.events)}function w(O,R){return II(D(O),R)}function D(O){return OI(s,O)}function k(){let{_bufferIndex:O,_index:R,line:L,column:$,offset:z}=r;return{_bufferIndex:O,_index:R,line:L,column:$,offset:z}}function g(O){i[O.line]=O.column,B()}function m(){let O;for(;r._index<s.length;){let R=s[r._index];if(typeof R=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<R.length;)d(R.charCodeAt(r._bufferIndex));else d(R)}}function d(O){l=void 0,h=O,f=f(O)}function y(O){j(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,B()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=O,l=!0}function T(O,R){let L=R||{};return L.type=O,L.start=k(),c.events.push(["enter",L,c]),a.push(L),L}function x(O){let R=a.pop();return R.end=k(),c.events.push(["exit",R,c]),R}function S(O,R){F(O,R.from)}function M(O,R){R.restore()}function A(O,R){return L;function L($,z,pe){let oe,v,vt,mn;return Array.isArray($)?pt($):"tokenize"in $?pt([$]):E($);function E(Ue){return Fo;function Fo(gn){let gr=gn!==null&&Ue[gn],pi=gn!==null&&Ue.null,xf=[...Array.isArray(gr)?gr:gr?[gr]:[],...Array.isArray(pi)?pi:pi?[pi]:[]];return pt(xf)(gn)}}function pt(Ue){return oe=Ue,v=0,Ue.length===0?pe:mr(Ue[v])}function mr(Ue){return Fo;function Fo(gn){return mn=I(),vt=Ue,Ue.partial||(c.currentConstruct=Ue),Ue.name&&c.parser.constructs.disable.null.includes(Ue.name)?Ta(gn):Ue.tokenize.call(R?Object.assign(Object.create(c),R):c,u,Df,Ta)(gn)}}function Df(Ue){return l=!0,O(vt,mn),z}function Ta(Ue){return l=!0,mn.restore(),++v<oe.length?mr(oe[v]):pe}}}function F(O,R){O.resolveAll&&!o.includes(O)&&o.push(O),O.resolve&&ze(c.events,R,c.events.length-R,O.resolve(c.events.slice(R),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function I(){let O=k(),R=c.previous,L=c.currentConstruct,$=c.events.length,z=Array.from(a);return{from:$,restore:pe};function pe(){r=O,c.previous=R,c.currentConstruct=L,c.events.length=$,a=z,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function OI(t,e){let n=e.start._index,r=e.start._bufferIndex,i=e.end._index,o=e.end._bufferIndex,s;if(n===i)s=[t[n].slice(r,o)];else{if(s=t.slice(n,i),r>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(t[i].slice(0,o))}return s}function II(t,e){let n=-1,r=[],i;for(;++n<t.length;){let o=t[n],s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
|
|
50
|
+
`)}function Ib(){return(0,Ob.default)({defaultWidth:80,output:Mf().output})}var zb=ft(Pb(),1);import*as Ub from"node:readline";import{AsyncResource as ER}from"node:async_hooks";var Er=[];Er.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Er.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Er.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");var Ma=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",Vf=Symbol.for("signal-exit emitter"),Kf=globalThis,wR=Object.defineProperty.bind(Object),Yf=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(Kf[Vf])return Kf[Vf];wR(Kf,Vf,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,n){this.listeners[t].push(n)}removeListener(t,n){let r=this.listeners[t],i=r.indexOf(n);i!==-1&&(i===0&&r.length===1?r.length=0:r.splice(i,1))}emit(t,n,r){if(this.emitted[t])return!1;this.emitted[t]=!0;let i=!1;for(let o of this.listeners[t])i=o(n,r)===!0||i;return t==="exit"&&(i=this.emit("afterExit",n,r)||i),i}},ja=class{},_R=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),Qf=class extends ja{onExit(){return()=>{}}load(){}unload(){}},Zf=class extends ja{#t=Jf.platform==="win32"?"SIGINT":"SIGHUP";#n=new Yf;#e;#s;#c;#D={};#o=!1;constructor(t){super(),this.#e=t,this.#D={};for(let n of Er)this.#D[n]=()=>{let r=this.#e.listeners(n),{count:i}=this.#n,o=t;if(typeof o.__signal_exit_emitter__=="object"&&typeof o.__signal_exit_emitter__.count=="number"&&(i+=o.__signal_exit_emitter__.count),r.length===i){this.unload();let s=this.#n.emit("exit",null,n),a=n==="SIGHUP"?this.#t:n;s||t.kill(t.pid,a)}};this.#c=t.reallyExit,this.#s=t.emit}onExit(t,n){if(!Ma(this.#e))return()=>{};this.#o===!1&&this.load();let r=n?.alwaysLast?"afterExit":"exit";return this.#n.on(r,t),()=>{this.#n.removeListener(r,t),this.#n.listeners.exit.length===0&&this.#n.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#o){this.#o=!0,this.#n.count+=1;for(let t of Er)try{let n=this.#D[t];n&&this.#e.on(t,n)}catch{}this.#e.emit=(t,...n)=>this.#u(t,...n),this.#e.reallyExit=t=>this.#f(t)}}unload(){this.#o&&(this.#o=!1,Er.forEach(t=>{let n=this.#D[t];if(!n)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,n)}catch{}}),this.#e.emit=this.#s,this.#e.reallyExit=this.#c,this.#n.count-=1)}#f(t){return Ma(this.#e)?(this.#e.exitCode=t||0,this.#n.emit("exit",this.#e.exitCode,null),this.#c.call(this.#e,this.#e.exitCode)):0}#u(t,...n){let r=this.#s;if(t==="exit"&&Ma(this.#e)){typeof n[0]=="number"&&(this.#e.exitCode=n[0]);let i=r.call(this.#e,t,...n);return this.#n.emit("exit",this.#e.exitCode,null),i}else return r.call(this.#e,t,...n)}},Jf=globalThis.process,{onExit:Bb,load:eV,unload:tV}=_R(Ma(Jf)?new Zf(Jf):new Qf);import{stripVTControlCharacters as xR}from"node:util";var Nb="\x1B[?25l",Mb="\x1B[?25h",Xf=(e=1)=>e>0?`\x1B[${e}A`:"",eh=(e=1)=>e>0?`\x1B[${e}B`:"",th=(e,t)=>typeof t=="number"&&!Number.isNaN(t)?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`,qb="\x1B[2K",nh=e=>e>0?(qb+Xf(1)).repeat(e-1)+qb+"\x1B[G":"";var jb=e=>e.split(`
|
|
51
|
+
`).length,vR=e=>e.split(`
|
|
52
|
+
`).pop()??"",No=class{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(t){this.rl=t,this.cursorPos=t.getCursorPos()}write(t){this.rl.output.unmute(),this.rl.output.write(t),this.rl.output.mute()}render(t,n=""){let r=vR(t),i=xR(r),o=i;this.rl.line.length>0&&(o=o.slice(0,-this.rl.line.length)),this.rl.setPrompt(o),this.cursorPos=this.rl.getCursorPos();let s=Ib();t=Hf(t,s),n=Hf(n,s),i.length%s===0&&(t+=`
|
|
53
|
+
`);let a=t+(n?`
|
|
54
|
+
`+n:""),l=Math.floor(i.length/s)-this.cursorPos.rows+(n?jb(n):0);l>0&&(a+=Xf(l)),a+=th(this.cursorPos.cols),this.write(eh(this.extraLinesUnderPrompt)+nh(this.height)+a),this.extraLinesUnderPrompt=l,this.height=jb(a)}checkCursorPos(){let t=this.rl.getCursorPos();t.cols!==this.cursorPos.cols&&(this.write(th(t.cols)),this.cursorPos=t)}done({clearContent:t}){this.rl.setPrompt("");let n=eh(this.extraLinesUnderPrompt);n+=t?nh(this.height):`
|
|
55
|
+
`,n+=Mb,this.write(n),this.rl.close()}};var Ua=class extends Promise{static withResolver(){let t,n;return{promise:new Promise((i,o)=>{t=i,n=o}),resolve:t,reject:n}}};function SR(){let e=Error.prepareStackTrace,t=[];try{Error.prepareStackTrace=(n,r)=>{let i=r.slice(1);return t=i,i},new Error().stack}catch{return t}return Error.prepareStackTrace=e,t}function Mo(e){let t=SR();return(r,i={})=>{let{input:o=process.stdin,signal:s}=i,a=new Set,u=new zb.default;u.pipe(i.output??process.stdout);let l=Ub.createInterface({terminal:!0,input:o,output:u}),c=new No(l),{promise:f,resolve:h,reject:p}=Ua.withResolver(),b=()=>p(new Ia);if(s){let g=()=>p(new Oa({cause:s.reason}));if(s.aborted)return g(),Object.assign(f,{cancel:b});s.addEventListener("abort",g),a.add(()=>s.removeEventListener("abort",g))}a.add(Bb((g,m)=>{p(new Lo(`User force closed the prompt with ${g} ${m}`))}));let D=()=>p(new Lo("User force closed the prompt with SIGINT"));l.on("SIGINT",D),a.add(()=>l.removeListener("SIGINT",D));let F=()=>c.checkCursorPos();return l.input.on("keypress",F),a.add(()=>l.input.removeListener("keypress",F)),ub(l,g=>{let m=ER.bind(()=>wr.clearAll());return l.on("close",m),a.add(()=>l.removeListener("close",m)),g(()=>{try{let d=e(r,E=>{setImmediate(()=>h(E))});if(d===void 0){let E=t[1]?.getFileName();throw new Error(`Prompt functions must return a string.
|
|
56
|
+
at ${E}`)}let[y,k]=typeof d=="string"?[d]:d;c.render(y,k),wr.run()}catch(d){p(d)}}),Object.assign(f.then(d=>(wr.clearAll(),d),d=>{throw wr.clearAll(),d}).finally(()=>{a.forEach(d=>d()),c.done({clearContent:!!i.clearPromptOnDone}),u.end()}).then(()=>f),{cancel:b})})}}var FR={validationFailureMode:"keep"},Wb=Mo((e,t)=>{let{prefill:n="tab"}=e,r=xr(FR,e.theme),[i,o]=Xe("idle"),[s="",a]=Xe(e.default),[u,l]=Xe(),[c,f]=Xe(""),h=Po({status:i,theme:r});async function p(m){let{required:d,pattern:y,patternError:k="Invalid input"}=e;return d&&!m?"You must provide a value":y&&!y.test(m)?k:typeof e.validate=="function"?await e.validate(m)||"You must provide a valid value":!0}Bo(async(m,d)=>{if(i==="idle")if(Io(m)){let y=c||s;o("loading");let k=await p(y);k===!0?(f(y),o("done"),t(y)):(r.validationFailureMode==="clear"?f(""):d.write(c),l(k),o("idle"))}else qf(m)&&!c?a(void 0):Nf(m)&&!c?(a(void 0),d.clearLine(0),d.write(s),f(s)):(f(d.line),l(void 0))}),_r(m=>{n==="editable"&&s&&(m.write(s),f(s))},[]);let b=r.style.message(e.message,i),D=c;typeof e.transformer=="function"?D=e.transformer(c,{isFinal:i==="done"}):i==="done"&&(D=r.style.answer(c));let F;s&&i!=="done"&&!c&&(F=r.style.defaultAnswer(s));let g="";return u&&(g=r.style.error(u)),[[h,b,F,D].filter(m=>m!==void 0).join(" "),g]});var za=Mo((e,t)=>{let{validate:n=()=>!0}=e,r=xr(e.theme),[i,o]=Xe("idle"),[s,a]=Xe(),[u,l]=Xe(""),c=Po({status:i,theme:r});Bo(async(D,F)=>{if(i==="idle")if(Io(D)){let g=u;o("loading");let m=await n(g);m===!0?(l(g),o("done"),t(g)):(F.write(u),a(m||"You must provide a valid value"),o("idle"))}else l(F.line),a(void 0)});let f=r.style.message(e.message,i),h="",p;e.mask?h=(typeof e.mask=="string"?e.mask:"*").repeat(u.length):i!=="done"&&(p=`${r.style.help("[input is masked]")}${Nb}`),i==="done"&&(h=r.style.answer(h));let b="";return s&&(b=r.style.error(s)),[[c,f,e.mask?h:p].join(" "),b]});var In=fe.command("mods").description("Mod management commands").option("--modsPath <modsPath>","mods directory to operate on",process.cwd());In.command("enable <modname> [version]").description("Enable a mod or select a specific version of it").action(async(e,t)=>{let n=new Co(In.opts().modsPath);await n.Loaded,n.set(e,t??!0),await n.write()});In.command("disable <modname>").description("Disable a mod").action(async e=>{let t=new Co(In.opts().modsPath);await t.Loaded,t.set(e,!1),await t.write()});In.command("install <modname>").description("Install a mod.").option("--keepOld","Don't remove old versions if present").option("--force","Install even if there is an existing mod of the correct version").option("--playerData <player-data.json>").action(async(e,t)=>{let n=new Co(In.opts().modsPath,t.playerData);await n.Loaded,console.log(JSON.stringify(await n.installMod(e,{origin:"any",force:t.force,credentialPrompt:async r=>{r=await Wb({message:"Username:",default:r});let i=await za({message:"Password:"});return{username:r,password:i}}})))});In.command("adjust <changes...>").description("Configure multiple mods at once: modname=true|false|x.y.z").option("--allowDisableBase","Allow disabling the base mod").option("--disableExtra","Disable any mods not named in the changeset").action(async(e,t)=>{let n=new Co(In.opts().modsPath);await n.Loaded,t.disableExtra&&(console.log("All Mods disabled"),n.disableAll());for(let r of e){let i=r.match(/^(.*)=(true|false|(?:\d+\.){2}\d+)$/);if(!i)console.log(`Doing nothing with invalid adjust arg "${r}"`);else{let o=i[1],s=i[2]==="true"?!0:i[2]==="false"?!1:i[2];n.set(o,s),console.log(`${o} ${s===!0?"enabled":s===!1?"disabled":"enabled version "+s}`)}}t.allowDisableBase||n.set("base",!0);try{await n.write()}catch(r){console.error(`Failed to save mod list:
|
|
57
|
+
${r}`),process.exit(1)}});import*as Pn from"fs/promises";var Ln=fe.command("settings").description("Edit mod settings").option("--modsPath <modsPath>","mods directory to operate on",process.cwd());Ln.command("list").description("List all current saved values").action(async()=>{let e=qt.joinPath(Ge.file(Ln.opts().modsPath),"mod-settings.dat"),t=new Ao(new yr(await Pn.readFile(e.fsPath)));for(let n of t.list()){let r;switch(typeof n.value){case"string":r=`"${n.value}"`;break;case"object":r=`Color(${n.value.r}, ${n.value.g}, ${n.value.b}, ${n.value.a})`;break;default:r=n.value.toString();break}console.log(`${n.scope} ${n.setting} ${r}`)}});Ln.command("get <scope> <name>").description("Get the saved value of a setting").action(async(e,t)=>{switch(e){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${e}"`),process.exit(1)}let n=qt.joinPath(Ge.file(Ln.opts().modsPath),"mod-settings.dat"),i=new Ao(new yr(await Pn.readFile(n.fsPath))).get(e,t);if(!i){console.log("undefined");return}switch(i.type){case"bool":case"number":console.log(`${i.value}`);break;case"int":console.log(`${i.value}n`);break;case"string":console.log(`"${i.value}"`);break;case"color":console.log(`Color(${i.value.r}, ${i.value.g}, ${i.value.b}, ${i.value.a})`);break;default:console.error(`Unknown type ${i.type}`),process.exit(1)}});Ln.command("set <scope> <name>").option("--type <type>","Force type (otherwise autodetect)").argument("<value>").description("Set the saved value of a setting").action(async(e,t,n,r)=>{switch(e){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${e}"`),process.exit(1)}let i=qt.joinPath(Ge.file(Ln.opts().modsPath),"mod-settings.dat"),o=new Ao(new yr(await Pn.readFile(i.fsPath)));if(r.type)switch(r.type){case"bool":if(n==="true"||n==="false"){o.set(e,t,{type:"bool",value:n==="true"});break}else console.error(`invalid bool value ${n}`),process.exit(1);case"number":let s=Number(n);if(!isNaN(s)&&n!==""){o.set(e,t,{type:"number",value:s});break}else console.error(`invalid number value ${n}`),process.exit(1);case"color":let a=n.match(/(?:color:)?\(([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)(?:\s*,\s*([\d.]+)\s*)?\)/i);if(a){o.set(e,t,{type:"color",value:{r:Math.max(0,Math.min(1,parseFloat(a[1]))),g:Math.max(0,Math.min(1,parseFloat(a[2]))),b:Math.max(0,Math.min(1,parseFloat(a[3]))),a:a[4]?Math.max(0,Math.min(1,parseFloat(a[4]))):1}});break}if(a=n.match(/#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/),a){o.set(e,t,{type:"color",value:{r:parseInt(a[1],16)/255,g:parseInt(a[2],16)/255,b:parseInt(a[3],16)/255,a:a[4]?parseInt(a[4],16)/255:1}});break}console.error(`invalid color value ${n}`),process.exit(1);case"string":o.set(e,t,{type:"string",value:n});break;default:console.error(`Unknown type ${r.type}`),process.exit(1)}else if(n==="true"||n==="false")o.set(e,t,{type:"bool",value:n==="true"});else{let s=Number(n);!isNaN(s)&&n!==""?o.set(e,t,{type:"number",value:s}):o.set(e,t,{type:"string",value:n})}await Pn.writeFile(i.fsPath,o.save())});Ln.command("unset <scope> <name>").description("Remove the saved value of a setting").action(async(e,t)=>{switch(e){case"startup":case"runtime-global":case"runtime-per-user":break;default:console.error(`Unknown scope "${e}"`),process.exit(1)}let n=qt.joinPath(Ge.file(Ln.opts().modsPath),"mod-settings.dat"),r=new Ao(new yr(await Pn.readFile(n.fsPath)));r.set(e,t),await Pn.writeFile(n.fsPath,r.save())});import*as fn from"fs/promises";import*as YA from"crypto";var $b={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.blockfact.facti":["facti"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze($b);var Hb=$b;var Gb={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Gb);var Vb=Gb;var vt=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},gi,jo,Sr,rh=class{constructor(...t){gi.set(this,new Map),jo.set(this,new Map),Sr.set(this,new Map);for(let n of t)this.define(n)}define(t,n=!1){for(let[r,i]of Object.entries(t)){r=r.toLowerCase(),i=i.map(a=>a.toLowerCase()),vt(this,Sr,"f").has(r)||vt(this,Sr,"f").set(r,new Set);let o=vt(this,Sr,"f").get(r),s=!0;for(let a of i){let u=a.startsWith("*");if(a=u?a.slice(1):a,o?.add(a),s&&vt(this,jo,"f").set(r,a),s=!1,u)continue;let l=vt(this,gi,"f").get(a);if(l&&l!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${l} -> ${a}". Pass \`force=true\` to override this definition.`);vt(this,gi,"f").set(a,r)}}return this}getType(t){if(typeof t!="string")return null;let n=t.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),i=n.length<t.length;return!(r.length<n.length-1)&&i?null:vt(this,gi,"f").get(r)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&vt(this,jo,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:vt(this,Sr,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(let t of vt(this,Sr,"f").values())Object.freeze(t);return this}_getTestState(){return{types:vt(this,gi,"f"),extensions:vt(this,jo,"f")}}};gi=new WeakMap,jo=new WeakMap,Sr=new WeakMap;var ih=rh;var Kb=new ih(Vb,Hb)._freeze();import QA from"path";import{spawn as ZA}from"child_process";var yi=(function(e){if(e==null)return AR;if(typeof e=="function")return Wa(e);if(typeof e=="object")return Array.isArray(e)?kR(e):TR(e);if(typeof e=="string")return CR(e);throw new Error("Expected function, string, or object as test")});function kR(e){let t=[],n=-1;for(;++n<e.length;)t[n]=yi(e[n]);return Wa(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function TR(e){let t=e;return Wa(n);function n(r){let i=r,o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function CR(e){return Wa(t);function t(n){return n&&n.type===e}}function Wa(e){return t;function t(n,r,i){return!!(RR(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function AR(){return!0}function RR(e){return e!==null&&typeof e=="object"&&"type"in e}function Yb(e){return"\x1B[33m"+e+"\x1B[39m"}var Qb=[],$a=!0,Fr=!1,Ha="skip";function Bn(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;let o=yi(i),s=r?-1:1;a(e,void 0,[])();function a(u,l,c){let f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){let p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+Yb(u.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Qb,b,D,F;if((!t||o(u,l,c[c.length-1]||void 0))&&(p=OR(n(u,c)),p[0]===Fr))return p;if("children"in u&&u.children){let g=u;if(g.children&&p[0]!==Ha)for(D=(r?g.children.length:-1)+s,F=c.concat(g);D>-1&&D<g.children.length;){let m=g.children[D];if(b=a(m,D,F)(),b[0]===Fr)return b;D=typeof b[1]=="number"?b[1]:D+s}}return p}}}function OR(e){return Array.isArray(e)?e:typeof e=="number"?[$a,e]:e==null?Qb:[e]}function Et(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),Bn(e,o,a,i);function a(u,l){let c=l[l.length-1],f=c?c.children.indexOf(u):void 0;return s(u,f,c)}}var IR={};function kr(e,t){let n=t||IR,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Jb(e,r,i)}function Jb(e,t,n){if(LR(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Zb(e.children,t,n)}return Array.isArray(e)?Zb(e,t,n):""}function Zb(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Jb(e[i],t,n);return r.join("")}function LR(e){return!!(e&&typeof e=="object")}var oh={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
58
|
+
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"};var PR={}.hasOwnProperty;function bi(e){return PR.call(oh,e)?oh[e]:!1}function je(e,t,n,r){let i=e.length,o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function et(e,t){return e.length>0?(je(e,e.length,0,t),e):t}var Xb={}.hasOwnProperty;function eD(e){let t={},n=-1;for(;++n<e.length;)BR(t,e[n]);return t}function BR(e,t){let n;for(n in t){let i=(Xb.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n],s;if(o)for(s in o){Xb.call(i,s)||(i[s]=[]);let a=o[s];qR(i[s],Array.isArray(a)?a:a?[a]:[])}}}function qR(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);je(e,0,0,r)}function Ga(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}function Dn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var ht=qn(/[A-Za-z]/),tt=qn(/[\dA-Za-z]/),tD=qn(/[#-'*+\--9=?A-Z^-~]/);function Uo(e){return e!==null&&(e<32||e===127)}var zo=qn(/\d/),nD=qn(/[\dA-Fa-f]/),rD=qn(/[!-/:-@[-`{-~]/);function j(e){return e!==null&&e<-2}function Se(e){return e!==null&&(e<0||e===32)}function $(e){return e===-2||e===-1||e===32}var iD=qn(new RegExp("\\p{P}|\\p{S}","u")),oD=qn(/\s/);function qn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function V(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return s;function s(u){return $(u)?(e.enter(n),a(u)):t(u)}function a(u){return $(u)&&o++<i?(e.consume(u),a):(e.exit(n),t(u))}}var sD={tokenize:NR};function NR(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),V(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){let u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return j(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}var uD={tokenize:MR},aD={tokenize:jR};function MR(e){let t=this,n=[],r=0,i,o,s;return a;function a(d){if(r<n.length){let y=n[r];return t.containerState=y[1],e.attempt(y[0].continuation,u,l)(d)}return l(d)}function u(d){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&m();let y=t.events.length,k=y,E;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){E=t.events[k][1].end;break}g(r);let v=y;for(;v<t.events.length;)t.events[v][1].end={...E},v++;return je(t.events,k+1,0,t.events.slice(y)),t.events.length=v,l(d)}return a(d)}function l(d){if(r===n.length){if(!i)return h(d);if(i.currentConstruct&&i.currentConstruct.concrete)return b(d);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(aD,c,f)(d)}function c(d){return i&&m(),g(r),h(d)}function f(d){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,b(d)}function h(d){return t.containerState={},e.attempt(aD,p,b)(d)}function p(d){return r++,n.push([t.currentConstruct,t.containerState]),h(d)}function b(d){if(d===null){i&&m(),g(0),e.consume(d);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),D(d)}function D(d){if(d===null){F(e.exit("chunkFlow"),!0),g(0),e.consume(d);return}return j(d)?(e.consume(d),F(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(d),D)}function F(d,y){let k=t.sliceStream(d);if(y&&k.push(null),d.previous=o,o&&(o.next=d),o=d,i.defineSkip(d.start),i.write(k),t.parser.lazy[d.start.line]){let E=i.events.length;for(;E--;)if(i.events[E][1].start.offset<s&&(!i.events[E][1].end||i.events[E][1].end.offset>s))return;let v=t.events.length,q=v,T,A;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(T){A=t.events[q][1].end;break}T=!0}for(g(r),E=v;E<t.events.length;)t.events[E][1].end={...A},E++;je(t.events,q+1,0,t.events.slice(v)),t.events.length=E}}function g(d){let y=n.length;for(;y-- >d;){let k=n[y];t.containerState=k[1],k[0].exit.call(t,e)}n.length=d}function m(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function jR(e,t,n){return V(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Di(e){if(e===null||Se(e)||oD(e))return 1;if(iD(e))return 2}function wi(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}var Wo={name:"attention",resolveAll:UR,tokenize:zR};function UR(e,t){let n=-1,r,i,o,s,a,u,l,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let f={...e[r][1].end},h={...e[n][1].start};lD(f,-u),lD(h,u),s={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=et(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=et(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),l=et(l,wi(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=et(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=et(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,je(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function zR(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Di(r),o;return s;function s(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;let l=e.exit("attentionSequence"),c=Di(u),f=!c||c===2&&i||n.includes(u),h=!i||i===2&&c||n.includes(r);return l._open=!!(o===42?f:f&&(i||!h)),l._close=!!(o===42?h:h&&(c||!f)),t(u)}}function lD(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var sh={name:"autolink",tokenize:WR};function WR(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return ht(p)?(e.consume(p),s):p===64?n(p):l(p)}function s(p){return p===43||p===45||p===46||tt(p)?(r=1,a(p)):l(p)}function a(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||tt(p))&&r++<32?(e.consume(p),a):(r=0,l(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Uo(p)?n(p):(e.consume(p),u)}function l(p){return p===64?(e.consume(p),c):tD(p)?(e.consume(p),l):n(p)}function c(p){return tt(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||tt(p))&&r++<63){let b=p===45?h:f;return e.consume(p),b}return n(p)}}var Nn={partial:!0,tokenize:$R};function $R(e,t,n){return r;function r(o){return $(o)?V(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||j(o)?t(o):n(o)}}var Va={continuation:{tokenize:GR},exit:VR,name:"blockQuote",tokenize:HR};function HR(e,t,n){let r=this;return i;function i(s){if(s===62){let a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return $(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function GR(e,t,n){let r=this;return i;function i(s){return $(s)?V(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(Va,t,n)(s)}}function VR(e){e.exit("blockQuote")}var Ka={name:"characterEscape",tokenize:KR};function KR(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return rD(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}var Ya={name:"characterReference",tokenize:YR};function YR(e,t,n){let r=this,i=0,o,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),u}function u(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,s=tt,c(f))}function l(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=nD,c):(e.enter("characterReferenceValue"),o=7,s=zo,c(f))}function c(f){if(f===59&&i){let h=e.exit("characterReferenceValue");return s===tt&&!bi(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<o?(e.consume(f),c):n(f)}}var cD={partial:!0,tokenize:ZR},Qa={concrete:!0,name:"codeFenced",tokenize:QR};function QR(e,t,n){let r=this,i={partial:!0,tokenize:k},o=0,s=0,a;return u;function u(E){return l(E)}function l(E){let v=r.events[r.events.length-1];return o=v&&v[1].type==="linePrefix"?v[2].sliceSerialize(v[1],!0).length:0,a=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(E)}function c(E){return E===a?(s++,e.consume(E),c):s<3?n(E):(e.exit("codeFencedFenceSequence"),$(E)?V(e,f,"whitespace")(E):f(E))}function f(E){return E===null||j(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(cD,D,y)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(E))}function h(E){return E===null||j(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(E)):$(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),V(e,p,"whitespace")(E)):E===96&&E===a?n(E):(e.consume(E),h)}function p(E){return E===null||j(E)?f(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(E))}function b(E){return E===null||j(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(E)):E===96&&E===a?n(E):(e.consume(E),b)}function D(E){return e.attempt(i,y,F)(E)}function F(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),g}function g(E){return o>0&&$(E)?V(e,m,"linePrefix",o+1)(E):m(E)}function m(E){return E===null||j(E)?e.check(cD,D,y)(E):(e.enter("codeFlowValue"),d(E))}function d(E){return E===null||j(E)?(e.exit("codeFlowValue"),m(E)):(e.consume(E),d)}function y(E){return e.exit("codeFenced"),t(E)}function k(E,v,q){let T=0;return A;function A(L){return E.enter("lineEnding"),E.consume(L),E.exit("lineEnding"),I}function I(L){return E.enter("codeFencedFence"),$(L)?V(E,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):M(L)}function M(L){return L===a?(E.enter("codeFencedFenceSequence"),O(L)):q(L)}function O(L){return L===a?(T++,E.consume(L),O):T>=s?(E.exit("codeFencedFenceSequence"),$(L)?V(E,R,"whitespace")(L):R(L)):q(L)}function R(L){return L===null||j(L)?(E.exit("codeFencedFence"),v(L)):q(L)}}}function ZR(e,t,n){let r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}var $o={name:"codeIndented",tokenize:XR},JR={partial:!0,tokenize:eO};function XR(e,t,n){let r=this;return i;function i(l){return e.enter("codeIndented"),V(e,o,"linePrefix",5)(l)}function o(l){let c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):j(l)?e.attempt(JR,s,u)(l):(e.enter("codeFlowValue"),a(l))}function a(l){return l===null||j(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),a)}function u(l){return e.exit("codeIndented"),t(l)}}function eO(e,t,n){let r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):j(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):V(e,o,"linePrefix",5)(s)}function o(s){let a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):j(s)?i(s):n(s)}}var ah={name:"codeText",previous:nO,resolve:tO,tokenize:rO};function tO(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function nO(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function rO(e,t,n){let r=this,i=0,o,s;return a;function a(h){return e.enter("codeText"),e.enter("codeTextSequence"),u(h)}function u(h){return h===96?(e.consume(h),i++,u):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):h===96?(s=e.enter("codeTextSequence"),o=0,f(h)):j(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||j(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),c)}function f(h){return h===96?(e.consume(h),o++,f):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(s.type="codeTextData",c(h))}}var Za=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){let r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){let i=n||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ho(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ho(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ho(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let n=this.left.splice(t,Number.POSITIVE_INFINITY);Ho(this.right,n.reverse())}else{let n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ho(this.left,n.reverse())}}};function Ho(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ja(e){let t={},n=-1,r,i,o,s,a,u,l,c=new Za(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,iO(c,n)),n=t[n],l=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return je(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function iO(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,o=[],s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let a=s.events,u=[],l={},c,f,h=-1,p=n,b=0,D=0,F=[D];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(D=h+1,F.push(D),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):F.pop(),h=F.length;h--;){let g=a.slice(F[h],F[h+1]),m=o.pop();u.push([m,m+g.length-1]),e.splice(m,2,g)}for(u.reverse(),h=-1;++h<u.length;)l[b+u[h][0]]=b+u[h][1],b+=u[h][1]-u[h][0]-1;return l}var uh={resolve:sO,tokenize:aO},oO={partial:!0,tokenize:uO};function sO(e){return Ja(e),e}function aO(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):j(a)?e.check(oO,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function uO(e,t,n){let r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),V(e,o,"linePrefix")}function o(s){if(s===null||j(s))return n(s);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Xa(e,t,n,r,i,o,s,a,u){let l=u||Number.POSITIVE_INFINITY,c=0;return f;function f(g){return g===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(g),e.exit(o),h):g===null||g===32||g===41||Uo(g)?n(g):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),D(g))}function h(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===62?(e.exit("chunkString"),e.exit(a),h(g)):g===null||g===60||j(g)?n(g):(e.consume(g),g===92?b:p)}function b(g){return g===60||g===62||g===92?(e.consume(g),p):p(g)}function D(g){return!c&&(g===null||g===41||Se(g))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(g)):c<l&&g===40?(e.consume(g),c++,D):g===41?(e.consume(g),c--,D):g===null||g===32||g===40||Uo(g)?n(g):(e.consume(g),g===92?F:D)}function F(g){return g===40||g===41||g===92?(e.consume(g),D):D(g)}}function eu(e,t,n,r,i,o){let s=this,a=0,u;return l;function l(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c}function c(p){return a>999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):j(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||j(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!$(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function tu(e,t,n,r,i,o){let s;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,u):n(h)}function u(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),l(h))}function l(h){return h===s?(e.exit(o),u(s)):h===null?n(h):j(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),V(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||j(h)?(e.exit("chunkString"),l(h)):(e.consume(h),h===92?f:c)}function f(h){return h===s||h===92?(e.consume(h),c):c(h)}}function Tr(e,t){let n;return r;function r(i){return j(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):$(i)?V(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var lh={name:"definition",tokenize:cO},lO={partial:!0,tokenize:fO};function cO(e,t,n){let r=this,i;return o;function o(p){return e.enter("definition"),s(p)}function s(p){return eu.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):n(p)}function u(p){return Se(p)?Tr(e,l)(p):l(p)}function l(p){return Xa(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(lO,f,f)(p)}function f(p){return $(p)?V(e,h,"whitespace")(p):h(p)}function h(p){return p===null||j(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function fO(e,t,n){return r;function r(a){return Se(a)?Tr(e,i)(a):n(a)}function i(a){return tu(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return $(a)?V(e,s,"whitespace")(a):s(a)}function s(a){return a===null||j(a)?t(a):n(a)}}var ch={name:"hardBreakEscape",tokenize:hO};function hO(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return j(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}var fh={name:"headingAtx",resolve:pO,tokenize:dO};function pO(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},je(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function dO(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Se(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||j(c)?(e.exit("atxHeading"),t(c)):$(c)?V(e,a,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),a(c))}function l(c){return c===null||c===35||Se(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),l)}}var fD=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hh=["pre","script","style","textarea"];var ph={concrete:!0,name:"htmlFlow",resolveTo:yO,tokenize:bO},mO={partial:!0,tokenize:wO},gO={partial:!0,tokenize:DO};function yO(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function bO(e,t,n){let r=this,i,o,s,a,u;return l;function l(S){return c(S)}function c(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),h):S===47?(e.consume(S),o=!0,D):S===63?(e.consume(S),i=3,r.interrupt?t:x):ht(S)?(e.consume(S),s=String.fromCharCode(S),F):n(S)}function h(S){return S===45?(e.consume(S),i=2,p):S===91?(e.consume(S),i=5,a=0,b):ht(S)?(e.consume(S),i=4,r.interrupt?t:x):n(S)}function p(S){return S===45?(e.consume(S),r.interrupt?t:x):n(S)}function b(S){let lt="CDATA[";return S===lt.charCodeAt(a++)?(e.consume(S),a===lt.length?r.interrupt?t:M:b):n(S)}function D(S){return ht(S)?(e.consume(S),s=String.fromCharCode(S),F):n(S)}function F(S){if(S===null||S===47||S===62||Se(S)){let lt=S===47,dr=s.toLowerCase();return!lt&&!o&&hh.includes(dr)?(i=1,r.interrupt?t(S):M(S)):fD.includes(s.toLowerCase())?(i=6,lt?(e.consume(S),g):r.interrupt?t(S):M(S)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):o?m(S):d(S))}return S===45||tt(S)?(e.consume(S),s+=String.fromCharCode(S),F):n(S)}function g(S){return S===62?(e.consume(S),r.interrupt?t:M):n(S)}function m(S){return $(S)?(e.consume(S),m):A(S)}function d(S){return S===47?(e.consume(S),A):S===58||S===95||ht(S)?(e.consume(S),y):$(S)?(e.consume(S),d):A(S)}function y(S){return S===45||S===46||S===58||S===95||tt(S)?(e.consume(S),y):k(S)}function k(S){return S===61?(e.consume(S),E):$(S)?(e.consume(S),k):d(S)}function E(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),u=S,v):$(S)?(e.consume(S),E):q(S)}function v(S){return S===u?(e.consume(S),u=null,T):S===null||j(S)?n(S):(e.consume(S),v)}function q(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||Se(S)?k(S):(e.consume(S),q)}function T(S){return S===47||S===62||$(S)?d(S):n(S)}function A(S){return S===62?(e.consume(S),I):n(S)}function I(S){return S===null||j(S)?M(S):$(S)?(e.consume(S),I):n(S)}function M(S){return S===45&&i===2?(e.consume(S),W):S===60&&i===1?(e.consume(S),U):S===62&&i===4?(e.consume(S),_t):S===63&&i===3?(e.consume(S),x):S===93&&i===5?(e.consume(S),ne):j(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(mO,pn,O)(S)):S===null||j(S)?(e.exit("htmlFlowData"),O(S)):(e.consume(S),M)}function O(S){return e.check(gO,R,pn)(S)}function R(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),L}function L(S){return S===null||j(S)?O(S):(e.enter("htmlFlowData"),M(S))}function W(S){return S===45?(e.consume(S),x):M(S)}function U(S){return S===47?(e.consume(S),s="",ce):M(S)}function ce(S){if(S===62){let lt=s.toLowerCase();return hh.includes(lt)?(e.consume(S),_t):M(S)}return ht(S)&&s.length<8?(e.consume(S),s+=String.fromCharCode(S),ce):M(S)}function ne(S){return S===93?(e.consume(S),x):M(S)}function x(S){return S===62?(e.consume(S),_t):S===45&&i===2?(e.consume(S),x):M(S)}function _t(S){return S===null||j(S)?(e.exit("htmlFlowData"),pn(S)):(e.consume(S),_t)}function pn(S){return e.exit("htmlFlow"),t(S)}}function DO(e,t,n){let r=this;return i;function i(s){return j(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function wO(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Nn,t,n)}}var dh={name:"htmlText",tokenize:_O};function _O(e,t,n){let r=this,i,o,s;return a;function a(x){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(x),u}function u(x){return x===33?(e.consume(x),l):x===47?(e.consume(x),k):x===63?(e.consume(x),d):ht(x)?(e.consume(x),q):n(x)}function l(x){return x===45?(e.consume(x),c):x===91?(e.consume(x),o=0,b):ht(x)?(e.consume(x),m):n(x)}function c(x){return x===45?(e.consume(x),p):n(x)}function f(x){return x===null?n(x):x===45?(e.consume(x),h):j(x)?(s=f,U(x)):(e.consume(x),f)}function h(x){return x===45?(e.consume(x),p):f(x)}function p(x){return x===62?W(x):x===45?h(x):f(x)}function b(x){let _t="CDATA[";return x===_t.charCodeAt(o++)?(e.consume(x),o===_t.length?D:b):n(x)}function D(x){return x===null?n(x):x===93?(e.consume(x),F):j(x)?(s=D,U(x)):(e.consume(x),D)}function F(x){return x===93?(e.consume(x),g):D(x)}function g(x){return x===62?W(x):x===93?(e.consume(x),g):D(x)}function m(x){return x===null||x===62?W(x):j(x)?(s=m,U(x)):(e.consume(x),m)}function d(x){return x===null?n(x):x===63?(e.consume(x),y):j(x)?(s=d,U(x)):(e.consume(x),d)}function y(x){return x===62?W(x):d(x)}function k(x){return ht(x)?(e.consume(x),E):n(x)}function E(x){return x===45||tt(x)?(e.consume(x),E):v(x)}function v(x){return j(x)?(s=v,U(x)):$(x)?(e.consume(x),v):W(x)}function q(x){return x===45||tt(x)?(e.consume(x),q):x===47||x===62||Se(x)?T(x):n(x)}function T(x){return x===47?(e.consume(x),W):x===58||x===95||ht(x)?(e.consume(x),A):j(x)?(s=T,U(x)):$(x)?(e.consume(x),T):W(x)}function A(x){return x===45||x===46||x===58||x===95||tt(x)?(e.consume(x),A):I(x)}function I(x){return x===61?(e.consume(x),M):j(x)?(s=I,U(x)):$(x)?(e.consume(x),I):T(x)}function M(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(e.consume(x),i=x,O):j(x)?(s=M,U(x)):$(x)?(e.consume(x),M):(e.consume(x),R)}function O(x){return x===i?(e.consume(x),i=void 0,L):x===null?n(x):j(x)?(s=O,U(x)):(e.consume(x),O)}function R(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||Se(x)?T(x):(e.consume(x),R)}function L(x){return x===47||x===62||Se(x)?T(x):n(x)}function W(x){return x===62?(e.consume(x),e.exit("htmlTextData"),e.exit("htmlText"),t):n(x)}function U(x){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),ce}function ce(x){return $(x)?V(e,ne,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):ne(x)}function ne(x){return e.enter("htmlTextData"),s(x)}}var Cr={name:"labelEnd",resolveAll:SO,resolveTo:FO,tokenize:kO},xO={tokenize:TO},vO={tokenize:CO},EO={tokenize:AO};function SO(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){let i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&je(e,0,e.length,n),e}function FO(e,t){let n=e.length,r=0,i,o,s,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);let u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},l={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",u,t],["enter",l,t]],a=et(a,e.slice(o+1,o+r+3)),a=et(a,[["enter",c,t]]),a=et(a,wi(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),a=et(a,[["exit",c,t],e[s-2],e[s-1],["exit",l,t]]),a=et(a,e.slice(s+1)),a=et(a,[["exit",u,t]]),je(e,o,e.length,a),e}function kO(e,t,n){let r=this,i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(h){return o?o._inactive?f(h):(s=r.parser.defined.includes(Dn(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),u):n(h)}function u(h){return h===40?e.attempt(xO,c,s?c:f)(h):h===91?e.attempt(vO,c,s?l:f)(h):s?c(h):f(h)}function l(h){return e.attempt(EO,c,f)(h)}function c(h){return t(h)}function f(h){return o._balanced=!0,n(h)}}function TO(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return Se(f)?Tr(e,o)(f):o(f)}function o(f){return f===41?c(f):Xa(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return Se(f)?Tr(e,u)(f):c(f)}function a(f){return n(f)}function u(f){return f===34||f===39||f===40?tu(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function l(f){return Se(f)?Tr(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function CO(e,t,n){let r=this;return i;function i(a){return eu.call(r,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(Dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function AO(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}var mh={name:"labelStartImage",resolveAll:Cr.resolveAll,tokenize:RO};function RO(e,t,n){let r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}var gh={name:"labelStartLink",resolveAll:Cr.resolveAll,tokenize:OO};function OO(e,t,n){let r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}var Go={name:"lineEnding",tokenize:IO};function IO(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),V(e,t,"linePrefix")}}var Ar={name:"thematicBreak",tokenize:LO};function LO(e,t,n){let r=0,i;return o;function o(l){return e.enter("thematicBreak"),s(l)}function s(l){return i=l,a(l)}function a(l){return l===i?(e.enter("thematicBreakSequence"),u(l)):r>=3&&(l===null||j(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),$(l)?V(e,a,"whitespace")(l):a(l))}}var Ve={continuation:{tokenize:NO},exit:jO,name:"list",tokenize:qO},PO={partial:!0,tokenize:UO},BO={partial:!0,tokenize:MO};function qO(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(p){let b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:zo(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Ar,n,l)(p):l(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return n(p)}function u(p){return zo(p)&&++s<10?(e.consume(p),u):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),l(p)):n(p)}function l(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Nn,r.interrupt?n:c,e.attempt(PO,h,f))}function c(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function f(p){return $(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function NO(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Nn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,V(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!$(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(BO,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,V(e,e.attempt(Ve,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function MO(e,t,n){let r=this;return V(e,i,"listItemIndent",r.containerState.size+1);function i(o){let s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function jO(e){e.exit(this.containerState.type)}function UO(e,t,n){let r=this;return V(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){let s=r.events[r.events.length-1];return!$(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}var nu={name:"setextUnderline",resolveTo:zO,tokenize:WO};function zO(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);let s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function WO(e,t,n){let r=this,i;return o;function o(l){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),a(l)}function a(l){return l===i?(e.consume(l),a):(e.exit("setextHeadingLineSequence"),$(l)?V(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||j(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}var hD={tokenize:$O};function $O(e){let t=this,n=e.attempt(Nn,r,e.attempt(this.parser.constructs.flowInitial,i,V(e,e.attempt(this.parser.constructs.flow,i,e.attempt(uh,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}var pD={resolveAll:yD()},dD=gD("string"),mD=gD("text");function gD(e){return{resolveAll:yD(e==="text"?HO:void 0),tokenize:t};function t(n){let r=this,i=this.parser.constructs[e],o=n.attempt(i,s,a);return s;function s(c){return l(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),o(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;let f=i[c],h=-1;if(f)for(;++h<f.length;){let p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function yD(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function HO(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){let r=e[n-1][1],i=t.sliceStream(r),o=i.length,s=-1,a=0,u;for(;o--;){let l=i[o];if(typeof l=="string"){for(s=l.length;l.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(l===-2)u=!0,a++;else if(l!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){let l={type:n===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...l.start},r.start.offset===r.end.offset?Object.assign(r,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}var yh={};Ly(yh,{attentionMarkers:()=>XO,contentInitial:()=>VO,disable:()=>eI,document:()=>GO,flow:()=>YO,flowInitial:()=>KO,insideSpan:()=>JO,string:()=>QO,text:()=>ZO});var GO={42:Ve,43:Ve,45:Ve,48:Ve,49:Ve,50:Ve,51:Ve,52:Ve,53:Ve,54:Ve,55:Ve,56:Ve,57:Ve,62:Va},VO={91:lh},KO={[-2]:$o,[-1]:$o,32:$o},YO={35:fh,42:Ar,45:[nu,Ar],60:ph,61:nu,95:Ar,96:Qa,126:Qa},QO={38:Ya,92:Ka},ZO={[-5]:Go,[-4]:Go,[-3]:Go,33:mh,38:Ya,42:Wo,60:[sh,dh],91:gh,92:[ch,Ka],93:Cr,95:Wo,96:ah},JO={null:[Wo,pD]},XO={null:[42,95]},eI={null:[]};function bD(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],s=[],a=[],u=!0,l={attempt:T(v),check:T(q),consume:y,enter:k,exit:E,interrupt:T(q,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:F,parser:e,previous:null,sliceSerialize:b,sliceStream:D,write:p},f=t.tokenize.call(c,l),h;return t.resolveAll&&o.push(t),c;function p(O){return s=et(s,O),m(),s[s.length-1]!==null?[]:(A(t,0),c.events=wi(o,c.events,c),c.events)}function b(O,R){return nI(D(O),R)}function D(O){return tI(s,O)}function F(){let{_bufferIndex:O,_index:R,line:L,column:W,offset:U}=r;return{_bufferIndex:O,_index:R,line:L,column:W,offset:U}}function g(O){i[O.line]=O.column,M()}function m(){let O;for(;r._index<s.length;){let R=s[r._index];if(typeof R=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<R.length;)d(R.charCodeAt(r._bufferIndex));else d(R)}}function d(O){u=void 0,h=O,f=f(O)}function y(O){j(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,M()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=O,u=!0}function k(O,R){let L=R||{};return L.type=O,L.start=F(),c.events.push(["enter",L,c]),a.push(L),L}function E(O){let R=a.pop();return R.end=F(),c.events.push(["exit",R,c]),R}function v(O,R){A(O,R.from)}function q(O,R){R.restore()}function T(O,R){return L;function L(W,U,ce){let ne,x,_t,pn;return Array.isArray(W)?lt(W):"tokenize"in W?lt([W]):S(W);function S(Me){return Fo;function Fo(dn){let mr=dn!==null&&Me[dn],pi=dn!==null&&Me.null,yf=[...Array.isArray(mr)?mr:mr?[mr]:[],...Array.isArray(pi)?pi:pi?[pi]:[]];return lt(yf)(dn)}}function lt(Me){return ne=Me,x=0,Me.length===0?ce:dr(Me[x])}function dr(Me){return Fo;function Fo(dn){return pn=I(),_t=Me,Me.partial||(c.currentConstruct=Me),Me.name&&c.parser.constructs.disable.null.includes(Me.name)?Sa(dn):Me.tokenize.call(R?Object.assign(Object.create(c),R):c,l,gf,Sa)(dn)}}function gf(Me){return u=!0,O(_t,pn),U}function Sa(Me){return u=!0,pn.restore(),++x<ne.length?dr(ne[x]):ce}}}function A(O,R){O.resolveAll&&!o.includes(O)&&o.push(O),O.resolve&&je(c.events,R,c.events.length-R,O.resolve(c.events.slice(R),c)),O.resolveTo&&(c.events=O.resolveTo(c.events,c))}function I(){let O=F(),R=c.previous,L=c.currentConstruct,W=c.events.length,U=Array.from(a);return{from:W,restore:ce};function ce(){r=O,c.previous=R,c.currentConstruct=L,c.events.length=W,a=U,M()}}function M(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function tI(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex,s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){let a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function nI(e,t){let n=-1,r=[],i;for(;++n<e.length;){let o=e[n],s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
|
|
58
59
|
`;break}case-3:{s=`\r
|
|
59
|
-
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function Eh(t){let r={constructs:Ew([Sh,...(t||{}).extensions||[]]),content:i(Rw),defined:[],document:i(Iw),flow:i(Mw),lazy:{},string:i(Bw),text:i(jw)};return r;function i(o){return s;function s(a){return Ww(r,o,a)}}}function kh(t){for(;!nl(t););return t}var $w=/[\0\t\n\r]/g;function Th(){let t=1,e="",n=!0,r;return i;function i(o,s,a){let l=[],u,c,f,h,p;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,e="",n&&(o.charCodeAt(0)===65279&&f++,n=void 0);f<o.length;){if($w.lastIndex=f,u=$w.exec(o),h=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(h),!u){e=o.slice(f);break}if(p===10&&f===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<h&&(l.push(o.slice(f,h)),t+=h-f),p){case 0:{l.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:r=!0,t=1}f=h+1}return a&&(r&&l.push(-5),e&&l.push(e),l.push(null)),l}}var LI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function al(t){return t.replace(LI,PI)}function PI(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){let i=n.charCodeAt(1),o=i===120||i===88;return Qa(n.slice(o?2:1),o?16:10)}return Di(n)||t}function Un(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Hw(t.position):"start"in t||"end"in t?Hw(t):"line"in t||"column"in t?Ah(t):""}function Ah(t){return Gw(t&&t.line)+":"+Gw(t&&t.column)}function Hw(t){return Ah(t&&t.start)+"-"+Ah(t&&t.end)}function Gw(t){return t&&typeof t=="number"?t:1}var Yw={}.hasOwnProperty;function Ch(t,e,n){return typeof e!="string"&&(n=e,e=void 0),qI(n)(kh(Eh(n).document().write(Th()(t,e,!0))))}function qI(t){let e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(My),autolinkProtocol:A,autolinkEmail:A,atxHeading:o(Ly),blockQuote:o(gn),characterEscape:A,characterReference:A,codeFenced:o(gr),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(gr,s),codeText:o(pi,s),codeTextData:A,data:A,codeFlowValue:A,definition:o(xf),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o($F),hardBreakEscape:o(Py),hardBreakTrailing:o(Py),htmlFlow:o(qy,s),htmlFlowData:A,htmlText:o(qy,s),htmlTextData:A,image:o(HF),label:s,link:o(My),listItem:o(GF),listItemValue:h,listOrdered:o(Ny,f),listUnordered:o(Ny),paragraph:o(VF),reference:E,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Ly),strong:o(YF),thematicBreak:o(QF)},exit:{atxHeading:l(),atxHeadingSequence:T,autolink:l(),autolinkEmail:Fo,autolinkProtocol:Ue,blockQuote:l(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:mr,characterReferenceMarkerNumeric:mr,characterReferenceValue:Df,characterReference:Ta,codeFenced:l(k),codeFencedFence:D,codeFencedFenceInfo:p,codeFencedFenceMeta:w,codeFlowValue:F,codeIndented:l(g),codeText:l(L),codeTextData:F,data:F,definition:l(),definitionDestinationString:y,definitionLabelString:m,definitionTitleString:d,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(O),htmlFlowData:F,htmlText:l(R),htmlTextData:F,image:l(z),label:oe,labelText:pe,lineEnding:I,link:l($),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:pt,resourceDestinationString:v,resourceTitleString:vt,resource:mn,setextHeading:l(M),setextHeadingLineSequence:S,setextHeadingText:x,strong:l(),thematicBreak:l()}};Kw(e,(t||{}).mdastExtensions||[]);let n={};return r;function r(C){let P={type:"root",children:[]},V={stack:[P],tokenStack:[],config:e,enter:a,exit:u,buffer:s,resume:c,data:n},se=[],ge=-1;for(;++ge<C.length;)if(C[ge][1].type==="listOrdered"||C[ge][1].type==="listUnordered")if(C[ge][0]==="enter")se.push(ge);else{let Nt=se.pop();ge=i(C,Nt,ge)}for(ge=-1;++ge<C.length;){let Nt=e[C[ge][0]];Yw.call(Nt,C[ge][1].type)&&Nt[C[ge][1].type].call(Object.assign({sliceSerialize:C[ge][2].sliceSerialize},V),C[ge][1])}if(V.tokenStack.length>0){let Nt=V.tokenStack[V.tokenStack.length-1];(Nt[1]||Vw).call(V,void 0,Nt[0])}for(P.position={start:zn(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:zn(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},ge=-1;++ge<e.transforms.length;)P=e.transforms[ge](P)||P;return P}function i(C,P,V){let se=P-1,ge=-1,Nt=!1,yr,yn,Ro,Oo;for(;++se<=V;){let dt=C[se];switch(dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{dt[0]==="enter"?ge++:ge--,Oo=void 0;break}case"lineEndingBlank":{dt[0]==="enter"&&(yr&&!Oo&&!ge&&!Ro&&(Ro=se),Oo=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Oo=void 0}if(!ge&&dt[0]==="enter"&&dt[1].type==="listItemPrefix"||ge===-1&&dt[0]==="exit"&&(dt[1].type==="listUnordered"||dt[1].type==="listOrdered")){if(yr){let di=se;for(yn=void 0;di--;){let bn=C[di];if(bn[1].type==="lineEnding"||bn[1].type==="lineEndingBlank"){if(bn[0]==="exit")continue;yn&&(C[yn][1].type="lineEndingBlank",Nt=!0),bn[1].type="lineEnding",yn=di}else if(!(bn[1].type==="linePrefix"||bn[1].type==="blockQuotePrefix"||bn[1].type==="blockQuotePrefixWhitespace"||bn[1].type==="blockQuoteMarker"||bn[1].type==="listItemIndent"))break}Ro&&(!yn||Ro<yn)&&(yr._spread=!0),yr.end=Object.assign({},yn?C[yn][1].start:dt[1].end),C.splice(yn||se,0,["exit",yr,dt[2]]),se++,V++}if(dt[1].type==="listItemPrefix"){let di={type:"listItem",_spread:!1,start:Object.assign({},dt[1].start),end:void 0};yr=di,C.splice(se,0,["enter",di,dt[2]]),se++,V++,Ro=void 0,Oo=!0}}}return C[P][1]._spread=Nt,V}function o(C,P){return V;function V(se){a.call(this,C(se),se),P&&P.call(this,se)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(C,P,V){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([P,V||void 0]),C.position={start:zn(P.start),end:void 0}}function l(C){return P;function P(V){C&&C.call(this,V),u.call(this,V)}}function u(C,P){let V=this.stack.pop(),se=this.tokenStack.pop();if(se)se[0].type!==C.type&&(P?P.call(this,C,se[0]):(se[1]||Vw).call(this,C,se[0]));else throw new Error("Cannot close `"+C.type+"` ("+Un({start:C.start,end:C.end})+"): it\u2019s not open");V.position.end=zn(C.end)}function c(){return Tr(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(C){if(this.data.expectingFirstListItemValue){let P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(C),10),this.data.expectingFirstListItemValue=void 0}}function p(){let C=this.resume(),P=this.stack[this.stack.length-1];P.lang=C}function w(){let C=this.resume(),P=this.stack[this.stack.length-1];P.meta=C}function D(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/(\r?\n|\r)$/g,"")}function m(C){let P=this.resume(),V=this.stack[this.stack.length-1];V.label=P,V.identifier=Dn(this.sliceSerialize(C)).toLowerCase()}function d(){let C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function y(){let C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function T(C){let P=this.stack[this.stack.length-1];if(!P.depth){let V=this.sliceSerialize(C).length;P.depth=V}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function S(C){let P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function A(C){let V=this.stack[this.stack.length-1].children,se=V[V.length-1];(!se||se.type!=="text")&&(se=KF(),se.position={start:zn(C.start),end:void 0},V.push(se)),this.stack.push(se)}function F(C){let P=this.stack.pop();P.value+=this.sliceSerialize(C),P.position.end=zn(C.end)}function I(C){let P=this.stack[this.stack.length-1];if(this.data.atHardBreak){let V=P.children[P.children.length-1];V.position.end=zn(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(P.type)&&(A.call(this,C),F.call(this,C))}function B(){this.data.atHardBreak=!0}function O(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function R(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function L(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function $(){let C=this.stack[this.stack.length-1];if(this.data.inReference){let P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function z(){let C=this.stack[this.stack.length-1];if(this.data.inReference){let P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function pe(C){let P=this.sliceSerialize(C),V=this.stack[this.stack.length-2];V.label=al(P),V.identifier=Dn(P).toLowerCase()}function oe(){let C=this.stack[this.stack.length-1],P=this.resume(),V=this.stack[this.stack.length-1];if(this.data.inReference=!0,V.type==="link"){let se=C.children;V.children=se}else V.alt=P}function v(){let C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function vt(){let C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function mn(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function pt(C){let P=this.resume(),V=this.stack[this.stack.length-1];V.label=P,V.identifier=Dn(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function mr(C){this.data.characterReferenceType=C.type}function Df(C){let P=this.sliceSerialize(C),V=this.data.characterReferenceType,se;V?(se=Qa(P,V==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):se=Di(P);let ge=this.stack[this.stack.length-1];ge.value+=se}function Ta(C){let P=this.stack.pop();P.position.end=zn(C.end)}function Ue(C){F.call(this,C);let P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(C)}function Fo(C){F.call(this,C);let P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(C)}function gn(){return{type:"blockquote",children:[]}}function gr(){return{type:"code",lang:null,meta:null,value:""}}function pi(){return{type:"inlineCode",value:""}}function xf(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $F(){return{type:"emphasis",children:[]}}function Ly(){return{type:"heading",depth:0,children:[]}}function Py(){return{type:"break"}}function qy(){return{type:"html",value:""}}function HF(){return{type:"image",title:null,url:"",alt:null}}function My(){return{type:"link",title:null,url:"",children:[]}}function Ny(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function GF(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function VF(){return{type:"paragraph",children:[]}}function YF(){return{type:"strong",children:[]}}function KF(){return{type:"text",value:""}}function QF(){return{type:"thematicBreak"}}}function zn(t){return{line:t.line,column:t.column,offset:t.offset}}function Kw(t,e){let n=-1;for(;++n<e.length;){let r=e[n];Array.isArray(r)?Kw(t,r):MI(t,r)}}function MI(t,e){let n;for(n in e)if(Yw.call(e,n))switch(n){case"canContainEols":{let r=e[n];r&&t[n].push(...r);break}case"transforms":{let r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{let r=e[n];r&&Object.assign(t[n],r);break}}}function Vw(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Un({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Un({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Un({start:e.start,end:e.end})+") is still open")}function ll(t){let e=this;e.parser=n;function n(r){return Ch(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}var Qw={}.hasOwnProperty;function Zw(t,e){let n=e||{};function r(i,...o){let s=r.invalid,a=r.handlers;if(i&&Qw.call(i,t)){let l=String(i[t]);s=Qw.call(a,l)?a[l]:r.unknown}if(s)return s.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var NI={}.hasOwnProperty;function Fh(t,e){let n=-1,r;if(e.extensions)for(;++n<e.extensions.length;)Fh(t,e.extensions[n]);for(r in e)if(NI.call(e,r))switch(r){case"extensions":break;case"unsafe":{Jw(t[r],e[r]);break}case"join":{Jw(t[r],e[r]);break}case"handlers":{BI(t[r],e[r]);break}default:t.options[r]=e[r]}return t}function Jw(t,e){e&&t.push(...e)}function BI(t,e){e&&Object.assign(t,e)}function Xw(t,e,n,r){let i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);let s=n.indentLines(n.containerFlow(t,o.current()),jI);return i(),s}function jI(t,e,n){return">"+(n?"":" ")+t}function ul(t,e){return e0(t,e.inConstruct,!0)&&!e0(t,e.notInConstruct,!1)}function e0(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function Rh(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
60
|
-
`&&
|
|
61
|
-
`}function
|
|
60
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function bh(e){let r={constructs:eD([yh,...(e||{}).extensions||[]]),content:i(sD),defined:[],document:i(uD),flow:i(hD),lazy:{},string:i(dD),text:i(mD)};return r;function i(o){return s;function s(a){return bD(r,o,a)}}}function Dh(e){for(;!Ja(e););return e}var DD=/[\0\t\n\r]/g;function wh(){let e=1,t="",n=!0,r;return i;function i(o,s,a){let u=[],l,c,f,h,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,t="",n&&(o.charCodeAt(0)===65279&&f++,n=void 0);f<o.length;){if(DD.lastIndex=f,l=DD.exec(o),h=l&&l.index!==void 0?l.index:o.length,p=o.charCodeAt(h),!l){t=o.slice(f);break}if(p===10&&f===h&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<h&&(u.push(o.slice(f,h)),e+=h-f),p){case 0:{u.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}f=h+1}return a&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}var rI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ru(e){return e.replace(rI,iI)}function iI(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let i=n.charCodeAt(1),o=i===120||i===88;return Ga(n.slice(o?2:1),o?16:10)}return bi(n)||e}function Mn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?wD(e.position):"start"in e||"end"in e?wD(e):"line"in e||"column"in e?_h(e):""}function _h(e){return _D(e&&e.line)+":"+_D(e&&e.column)}function wD(e){return _h(e&&e.start)+"-"+_h(e&&e.end)}function _D(e){return e&&typeof e=="number"?e:1}var vD={}.hasOwnProperty;function xh(e,t,n){return typeof t!="string"&&(n=t,t=void 0),oI(n)(Dh(bh(n).document().write(wh()(e,t,!0))))}function oI(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Oy),autolinkProtocol:T,autolinkEmail:T,atxHeading:o(Cy),blockQuote:o(dn),characterEscape:T,characterReference:T,codeFenced:o(mr),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(mr,s),codeText:o(pi,s),codeTextData:T,data:T,codeFlowValue:T,definition:o(yf),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(v2),hardBreakEscape:o(Ay),hardBreakTrailing:o(Ay),htmlFlow:o(Ry,s),htmlFlowData:T,htmlText:o(Ry,s),htmlTextData:T,image:o(E2),label:s,link:o(Oy),listItem:o(S2),listItemValue:h,listOrdered:o(Iy,f),listUnordered:o(Iy),paragraph:o(F2),reference:S,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Cy),strong:o(k2),thematicBreak:o(C2)},exit:{atxHeading:u(),atxHeadingSequence:k,autolink:u(),autolinkEmail:Fo,autolinkProtocol:Me,blockQuote:u(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:dr,characterReferenceMarkerNumeric:dr,characterReferenceValue:gf,characterReference:Sa,codeFenced:u(F),codeFencedFence:D,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:A,codeIndented:u(g),codeText:u(L),codeTextData:A,data:A,definition:u(),definitionDestinationString:y,definitionLabelString:m,definitionTitleString:d,emphasis:u(),hardBreakEscape:u(M),hardBreakTrailing:u(M),htmlFlow:u(O),htmlFlowData:A,htmlText:u(R),htmlTextData:A,image:u(U),label:ne,labelText:ce,lineEnding:I,link:u(W),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:lt,resourceDestinationString:x,resourceTitleString:_t,resource:pn,setextHeading:u(q),setextHeadingLineSequence:v,setextHeadingText:E,strong:u(),thematicBreak:u()}};ED(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(C){let P={type:"root",children:[]},G={stack:[P],tokenStack:[],config:t,enter:a,exit:l,buffer:s,resume:c,data:n},re=[],pe=-1;for(;++pe<C.length;)if(C[pe][1].type==="listOrdered"||C[pe][1].type==="listUnordered")if(C[pe][0]==="enter")re.push(pe);else{let Bt=re.pop();pe=i(C,Bt,pe)}for(pe=-1;++pe<C.length;){let Bt=t[C[pe][0]];vD.call(Bt,C[pe][1].type)&&Bt[C[pe][1].type].call(Object.assign({sliceSerialize:C[pe][2].sliceSerialize},G),C[pe][1])}if(G.tokenStack.length>0){let Bt=G.tokenStack[G.tokenStack.length-1];(Bt[1]||xD).call(G,void 0,Bt[0])}for(P.position={start:jn(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:jn(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe<t.transforms.length;)P=t.transforms[pe](P)||P;return P}function i(C,P,G){let re=P-1,pe=-1,Bt=!1,gr,mn,ko,To;for(;++re<=G;){let ct=C[re];switch(ct[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ct[0]==="enter"?pe++:pe--,To=void 0;break}case"lineEndingBlank":{ct[0]==="enter"&&(gr&&!To&&!pe&&!ko&&(ko=re),To=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:To=void 0}if(!pe&&ct[0]==="enter"&&ct[1].type==="listItemPrefix"||pe===-1&&ct[0]==="exit"&&(ct[1].type==="listUnordered"||ct[1].type==="listOrdered")){if(gr){let di=re;for(mn=void 0;di--;){let gn=C[di];if(gn[1].type==="lineEnding"||gn[1].type==="lineEndingBlank"){if(gn[0]==="exit")continue;mn&&(C[mn][1].type="lineEndingBlank",Bt=!0),gn[1].type="lineEnding",mn=di}else if(!(gn[1].type==="linePrefix"||gn[1].type==="blockQuotePrefix"||gn[1].type==="blockQuotePrefixWhitespace"||gn[1].type==="blockQuoteMarker"||gn[1].type==="listItemIndent"))break}ko&&(!mn||ko<mn)&&(gr._spread=!0),gr.end=Object.assign({},mn?C[mn][1].start:ct[1].end),C.splice(mn||re,0,["exit",gr,ct[2]]),re++,G++}if(ct[1].type==="listItemPrefix"){let di={type:"listItem",_spread:!1,start:Object.assign({},ct[1].start),end:void 0};gr=di,C.splice(re,0,["enter",di,ct[2]]),re++,G++,ko=void 0,To=!0}}}return C[P][1]._spread=Bt,G}function o(C,P){return G;function G(re){a.call(this,C(re),re),P&&P.call(this,re)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(C,P,G){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([P,G||void 0]),C.position={start:jn(P.start),end:void 0}}function u(C){return P;function P(G){C&&C.call(this,G),l.call(this,G)}}function l(C,P){let G=this.stack.pop(),re=this.tokenStack.pop();if(re)re[0].type!==C.type&&(P?P.call(this,C,re[0]):(re[1]||xD).call(this,C,re[0]));else throw new Error("Cannot close `"+C.type+"` ("+Mn({start:C.start,end:C.end})+"): it\u2019s not open");G.position.end=jn(C.end)}function c(){return kr(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function h(C){if(this.data.expectingFirstListItemValue){let P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(C),10),this.data.expectingFirstListItemValue=void 0}}function p(){let C=this.resume(),P=this.stack[this.stack.length-1];P.lang=C}function b(){let C=this.resume(),P=this.stack[this.stack.length-1];P.meta=C}function D(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function F(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C.replace(/(\r?\n|\r)$/g,"")}function m(C){let P=this.resume(),G=this.stack[this.stack.length-1];G.label=P,G.identifier=Dn(this.sliceSerialize(C)).toLowerCase()}function d(){let C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function y(){let C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function k(C){let P=this.stack[this.stack.length-1];if(!P.depth){let G=this.sliceSerialize(C).length;P.depth=G}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function v(C){let P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function T(C){let G=this.stack[this.stack.length-1].children,re=G[G.length-1];(!re||re.type!=="text")&&(re=T2(),re.position={start:jn(C.start),end:void 0},G.push(re)),this.stack.push(re)}function A(C){let P=this.stack.pop();P.value+=this.sliceSerialize(C),P.position.end=jn(C.end)}function I(C){let P=this.stack[this.stack.length-1];if(this.data.atHardBreak){let G=P.children[P.children.length-1];G.position.end=jn(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(P.type)&&(T.call(this,C),A.call(this,C))}function M(){this.data.atHardBreak=!0}function O(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function R(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function L(){let C=this.resume(),P=this.stack[this.stack.length-1];P.value=C}function W(){let C=this.stack[this.stack.length-1];if(this.data.inReference){let P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function U(){let C=this.stack[this.stack.length-1];if(this.data.inReference){let P=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=P,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function ce(C){let P=this.sliceSerialize(C),G=this.stack[this.stack.length-2];G.label=ru(P),G.identifier=Dn(P).toLowerCase()}function ne(){let C=this.stack[this.stack.length-1],P=this.resume(),G=this.stack[this.stack.length-1];if(this.data.inReference=!0,G.type==="link"){let re=C.children;G.children=re}else G.alt=P}function x(){let C=this.resume(),P=this.stack[this.stack.length-1];P.url=C}function _t(){let C=this.resume(),P=this.stack[this.stack.length-1];P.title=C}function pn(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function lt(C){let P=this.resume(),G=this.stack[this.stack.length-1];G.label=P,G.identifier=Dn(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function dr(C){this.data.characterReferenceType=C.type}function gf(C){let P=this.sliceSerialize(C),G=this.data.characterReferenceType,re;G?(re=Ga(P,G==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):re=bi(P);let pe=this.stack[this.stack.length-1];pe.value+=re}function Sa(C){let P=this.stack.pop();P.position.end=jn(C.end)}function Me(C){A.call(this,C);let P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(C)}function Fo(C){A.call(this,C);let P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(C)}function dn(){return{type:"blockquote",children:[]}}function mr(){return{type:"code",lang:null,meta:null,value:""}}function pi(){return{type:"inlineCode",value:""}}function yf(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function v2(){return{type:"emphasis",children:[]}}function Cy(){return{type:"heading",depth:0,children:[]}}function Ay(){return{type:"break"}}function Ry(){return{type:"html",value:""}}function E2(){return{type:"image",title:null,url:"",alt:null}}function Oy(){return{type:"link",title:null,url:"",children:[]}}function Iy(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function S2(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function F2(){return{type:"paragraph",children:[]}}function k2(){return{type:"strong",children:[]}}function T2(){return{type:"text",value:""}}function C2(){return{type:"thematicBreak"}}}function jn(e){return{line:e.line,column:e.column,offset:e.offset}}function ED(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?ED(e,r):sI(e,r)}}function sI(e,t){let n;for(n in t)if(vD.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r);break}}}function xD(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Mn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Mn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Mn({start:t.start,end:t.end})+") is still open")}function iu(e){let t=this;t.parser=n;function n(r){return xh(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}var SD={}.hasOwnProperty;function FD(e,t){let n=t||{};function r(i,...o){let s=r.invalid,a=r.handlers;if(i&&SD.call(i,e)){let u=String(i[e]);s=SD.call(a,u)?a[u]:r.unknown}if(s)return s.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var aI={}.hasOwnProperty;function vh(e,t){let n=-1,r;if(t.extensions)for(;++n<t.extensions.length;)vh(e,t.extensions[n]);for(r in t)if(aI.call(t,r))switch(r){case"extensions":break;case"unsafe":{kD(e[r],t[r]);break}case"join":{kD(e[r],t[r]);break}case"handlers":{uI(e[r],t[r]);break}default:e.options[r]=t[r]}return e}function kD(e,t){t&&e.push(...t)}function uI(e,t){t&&Object.assign(e,t)}function TD(e,t,n,r){let i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);let s=n.indentLines(n.containerFlow(e,o.current()),lI);return i(),s}function lI(e,t,n){return">"+(n?"":" ")+e}function ou(e,t){return CD(e,t.inConstruct,!0)&&!CD(e,t.notInConstruct,!1)}function CD(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Eh(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
61
|
+
`&&ou(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
62
|
+
`}function AD(e,t){let n=String(e),r=n.indexOf(t),i=r,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}function Vo(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function RD(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function OD(e,t,n,r){let i=RD(n),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(Vo(e,n)){let f=n.enter("codeIndented"),h=n.indentLines(o,cI);return f(),h}let a=n.createTracker(r),u=i.repeat(Math.max(AD(o,i)+1,3)),l=n.enter("codeFenced"),c=a.move(u);if(e.lang){let f=n.enter(`codeFencedLang${s}`);c+=a.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){let f=n.enter(`codeFencedMeta${s}`);c+=a.move(" "),c+=a.move(n.safe(e.meta,{before:c,after:`
|
|
62
63
|
`,encode:["`"],...a.current()})),f()}return c+=a.move(`
|
|
63
64
|
`),o&&(c+=a.move(o+`
|
|
64
|
-
`)),c+=a.move(
|
|
65
|
-
`,...
|
|
65
|
+
`)),c+=a.move(u),l(),c}function cI(e,t,n){return(n?"":" ")+e}function _i(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ID(e,t,n,r){let i=_i(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("definition"),a=n.enter("label"),u=n.createTracker(r),l=u.move("[");return l+=u.move(n.safe(n.associationId(e),{before:l,after:"]",...u.current()})),l+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(a=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":`
|
|
66
|
+
`,...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),a()),s(),l}function LD(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function pt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function xi(e,t,n){let r=Di(e),i=Di(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Sh.peek=fI;function Sh(e,t,n,r){let i=LD(n),o=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i),u=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()})),l=u.charCodeAt(0),c=xi(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=pt(l)+u.slice(1));let f=u.charCodeAt(u.length-1),h=xi(r.after.charCodeAt(0),f,i);h.inside&&(u=u.slice(0,-1)+pt(f));let p=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},a+u+p}function fI(e,t,n){return n.options.emphasis||"*"}function su(e,t){let n=!1;return Et(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Fr}),!!((!e.depth||e.depth<3)&&kr(e)&&(t.options.setext||n))}function PD(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(su(e,n)){let c=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(e,{...o.current(),before:`
|
|
66
67
|
`,after:`
|
|
67
68
|
`});return f(),c(),h+`
|
|
68
69
|
`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
69
|
-
`))+1))}let s="#".repeat(i),a=n.enter("headingAtx"),
|
|
70
|
-
`,...o.current()});return/^[\t ]/.test(
|
|
70
|
+
`))+1))}let s="#".repeat(i),a=n.enter("headingAtx"),u=n.enter("phrasing");o.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:`
|
|
71
|
+
`,...o.current()});return/^[\t ]/.test(l)&&(l=pt(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),u(),a(),l}Fh.peek=hI;function Fh(e){return e.value||""}function hI(){return"<"}kh.peek=pI;function kh(e,t,n,r){let i=_i(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("image"),a=n.enter("label"),u=n.createTracker(r),l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(a=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),a()),l+=u.move(")"),s(),l}function pI(){return"!"}Th.peek=dI;function Th(e,t,n,r){let i=e.referenceType,o=n.enter("imageReference"),s=n.enter("label"),a=n.createTracker(r),u=a.move("!["),l=n.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(l+"]["),s();let c=n.stack;n.stack=[],s=n.enter("reference");let f=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return s(),n.stack=c,o(),i==="full"||!l||l!==f?u+=a.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function dI(){return"!"}Ch.peek=mI;function Ch(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){let s=n.unsafe[o],a=n.compilePattern(s),u;if(s.atBreak)for(;u=a.exec(r);){let l=u.index;r.charCodeAt(l)===10&&r.charCodeAt(l-1)===13&&l--,r=r.slice(0,l)+" "+r.slice(u.index+1)}}return i+r+i}function mI(){return"`"}function Ah(e,t){let n=kr(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Rh.peek=gI;function Rh(e,t,n,r){let i=_i(n),o=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r),a,u;if(Ah(e,n)){let c=n.stack;n.stack=[],a=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),a(),n.stack=c,f}a=n.enter("link"),u=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${o}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),u()),l+=s.move(")"),a(),l}function gI(e,t,n){return Ah(e,n)?"<":"["}Oh.peek=yI;function Oh(e,t,n,r){let i=e.referenceType,o=n.enter("linkReference"),s=n.enter("label"),a=n.createTracker(r),u=a.move("["),l=n.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(l+"]["),s();let c=n.stack;n.stack=[],s=n.enter("reference");let f=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return s(),n.stack=c,o(),i==="full"||!l||l!==f?u+=a.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function yI(){return"["}function vi(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function BD(e){let t=vi(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function qD(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function au(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ND(e,t,n,r){let i=n.enter("list"),o=n.bulletCurrent,s=e.ordered?qD(n):vi(n),a=e.ordered?s==="."?")":".":BD(n),u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),au(n)===s&&c){let f=-1;for(;++f<e.children.length;){let h=e.children[f];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=a),n.bulletCurrent=s;let l=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),l}function MD(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function jD(e,t,n,r){let i=MD(n),o=n.bulletCurrent||vi(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);let a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);let u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,a.current()),c);return u(),l;function c(f,h,p){return h?(p?"":" ".repeat(s))+f:(p?o:o+" ".repeat(s-o.length))+f}}function UD(e,t,n,r){let i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s}var Ih=yi(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zD(e,t,n,r){return(e.children.some(function(s){return Ih(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function WD(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Lh.peek=bI;function Lh(e,t,n,r){let i=WD(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i),u=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()})),l=u.charCodeAt(0),c=xi(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=pt(l)+u.slice(1));let f=u.charCodeAt(u.length-1),h=xi(r.after.charCodeAt(0),f,i);h.inside&&(u=u.slice(0,-1)+pt(f));let p=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},a+u+p}function bI(e,t,n){return n.options.strong||"*"}function $D(e,t,n,r){return n.safe(e.value,r)}function HD(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function GD(e,t,n){let r=(au(n)+(n.options.ruleSpaces?" ":"")).repeat(HD(n));return n.options.ruleSpaces?r.slice(0,-1):r}var VD={blockquote:TD,break:Eh,code:OD,definition:ID,emphasis:Sh,hardBreak:Eh,heading:PD,html:Fh,image:kh,imageReference:Th,inlineCode:Ch,link:Rh,linkReference:Oh,list:ND,listItem:jD,paragraph:UD,root:zD,strong:Lh,text:$D,thematicBreak:GD};var KD=[DI];function DI(e,t,n,r){if(t.type==="code"&&Vo(t,r)&&(e.type==="list"||e.type===t.type&&Vo(e,r)))return!1;if("spread"in n&&typeof n.spread=="boolean")return e.type==="paragraph"&&(e.type===t.type||t.type==="definition"||t.type==="heading"&&su(t,r))?void 0:n.spread?1:0}var Rr=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],YD=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:`
|
|
71
72
|
`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Rr},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r
|
|
72
73
|
]|$)`},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Rr},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r
|
|
73
74
|
*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Rr},{atBreak:!0,character:"+",after:`(?:[ \r
|
|
74
75
|
])`},{atBreak:!0,character:"-",after:`(?:[ \r
|
|
75
76
|
-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r
|
|
76
|
-
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Rr},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Rr},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Rr},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Rr},{atBreak:!0,character:"~"}];function
|
|
77
|
-
`)&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",
|
|
77
|
+
]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Rr},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Rr},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Rr},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Rr},{atBreak:!0,character:"~"}];function QD(e){return e.label||!e.identifier?e.label||"":ru(e.identifier)}function ZD(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function JD(e,t,n){let r=t.indexStack,i=e.children||[],o=[],s=-1,a=n.before,u;r.push(-1);let l=t.createTracker(n);for(;++s<i.length;){let c=i[s],f;if(r[r.length-1]=s,s+1<i.length){let b=t.handle.handlers[i[s+1].type];b&&b.peek&&(b=b.peek),f=b?b(i[s+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else f=n.after;o.length>0&&(a==="\r"||a===`
|
|
78
|
+
`)&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",l=t.createTracker(n),l.move(o.join("")));let h=t.handle(c,e,t,{...l.current(),after:f,before:a});u&&u===h.slice(0,1)&&(h=pt(u.charCodeAt(0))+h.slice(1));let p=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,u=void 0,p&&(o.length>0&&p.before&&a===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+pt(a.charCodeAt(0))),p.after&&(u=f)),l.move(h),o.push(h),a=h.slice(-1)}return r.pop(),o.join("")}function XD(e,t,n){let r=t.indexStack,i=e.children||[],o=t.createTracker(n),s=[],a=-1;for(r.push(-1);++a<i.length;){let u=i[a];r[r.length-1]=a,s.push(o.move(t.handle(u,e,t,{before:`
|
|
78
79
|
`,after:`
|
|
79
|
-
`,...o.current()}))),
|
|
80
|
+
`,...o.current()}))),u.type!=="list"&&(t.bulletLastUsed=void 0),a<i.length-1&&s.push(o.move(wI(u,i[a+1],e,t)))}return r.pop(),s.join("")}function wI(e,t,n,r){let i=r.join.length;for(;i--;){let o=r.join[i](e,t,n,r);if(o===!0||o===1)break;if(typeof o=="number")return`
|
|
80
81
|
`.repeat(1+o);if(o===!1)return`
|
|
81
82
|
|
|
82
83
|
<!---->
|
|
83
84
|
|
|
84
85
|
`}return`
|
|
85
86
|
|
|
86
|
-
`}var
|
|
87
|
+
`}var _I=/\r?\n|\r/g;function e0(e,t){let n=[],r=0,i=0,o;for(;o=_I.exec(e);)s(e.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return s(e.slice(r)),n.join("");function s(a){n.push(t(a,i,!a))}}function n0(e,t,n){let r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],s={},a=-1;for(;++a<e.unsafe.length;){let c=e.unsafe[a];if(!ou(e.stack,c))continue;let f=e.compilePattern(c),h;for(;h=f.exec(r);){let p="before"in c||!!c.atBreak,b="after"in c,D=h.index+(p?h[1].length:0);i.includes(D)?(s[D].before&&!p&&(s[D].before=!1),s[D].after&&!b&&(s[D].after=!1)):(i.push(D),s[D]={before:p,after:b})}}i.sort(xI);let u=n.before?n.before.length:0,l=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){let c=i[a];c<u||c>=l||c+1<l&&i[a+1]===c+1&&s[c].after&&!s[c+1].before&&!s[c+1].after||i[a-1]===c-1&&s[c].before&&!s[c-1].before&&!s[c-1].after||(u!==c&&o.push(t0(r.slice(u,c),"\\")),u=c,/[!-/:-@[-`{-~]/.test(r.charAt(c))&&(!n.encode||!n.encode.includes(r.charAt(c)))?o.push("\\"):(o.push(pt(r.charCodeAt(c))),u++))}return o.push(t0(r.slice(u,l),n.after)),o.join("")}function xI(e,t){return e-t}function t0(e,t){let n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t,s=-1,a=0,u;for(;u=n.exec(o);)r.push(u.index);for(;++s<r.length;)a!==r[s]&&i.push(e.slice(a,r[s])),i.push("\\"),a=r[s];return i.push(e.slice(a)),i.join("")}function r0(e){let t=e||{},n=t.now||{},r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:u,current:s,shift:a};function s(){return{now:{line:i,column:o},lineShift:r}}function a(l){r+=l}function u(l){let c=l||"",f=c.split(/\r?\n|\r/g),h=f[f.length-1];return i+=f.length-1,o=f.length===1?o+h.length:1+h.length+r,c}}function Ph(e,t){let n=t||{},r={associationId:QD,containerPhrasing:FI,containerFlow:kI,createTracker:r0,compilePattern:ZD,enter:o,handlers:{...VD},handle:void 0,indentLines:e0,indexStack:[],join:[...KD],options:{},safe:TI,stack:[],unsafe:[...YD]};vh(r,n),r.options.tightDefinitions&&r.join.push(SI),r.handle=FD("type",{invalid:vI,unknown:EI,handlers:r.handlers});let i=r.handle(e,void 0,r,{before:`
|
|
87
88
|
`,after:`
|
|
88
89
|
`,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=`
|
|
89
|
-
`),i;function o(s){return r.stack.push(s),a;function a(){r.stack.pop()}}}function e3(t){throw new Error("Cannot handle value `"+t+"`, expected node")}function t3(t){let e=t;throw new Error("Cannot handle unknown node `"+e.type+"`")}function n3(t,e){if(t.type==="definition"&&t.type===e.type)return 0}function r3(t,e){return v0(t,this,e)}function i3(t,e){return S0(t,this,e)}function o3(t,e){return T0(this,t,e)}function hl(t){let e=this;e.compiler=n;function n(r){return zh(r,{...e.data("settings"),...t,extensions:e.data("toMarkdownExtensions")||[]})}}function Wh(t){if(t)throw t}var gl=ut(M0(),1);function Xo(t){if(typeof t!="object"||t===null)return!1;let e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function $h(){let t=[],e={run:n,use:r};return e;function n(...i){let o=-1,s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){let c=t[++o],f=-1;if(l){s(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?N0(c,a)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function N0(t,e){let n;return r;function r(...s){let a=t.length>s.length,l;a&&s.push(i);try{l=t.apply(this,s)}catch(u){let c=u;if(a&&n)throw c;return i(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,e(s,...a))}function o(s){i(null,s)}}var Pe=class extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof e=="string"?i=e:!o.cause&&e&&(s=!0,i=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof r=="string"){let l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){let l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}let a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Un(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Pe.prototype.file="";Pe.prototype.name="";Pe.prototype.reason="";Pe.prototype.message="";Pe.prototype.stack="";Pe.prototype.column=void 0;Pe.prototype.line=void 0;Pe.prototype.ancestors=void 0;Pe.prototype.cause=void 0;Pe.prototype.fatal=void 0;Pe.prototype.place=void 0;Pe.prototype.ruleId=void 0;Pe.prototype.source=void 0;import{default as jt}from"node:path";import{default as B0}from"node:process";import{fileURLToPath as j0}from"node:url";function dl(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}var Hh=["history","path","basename","stem","extname","dirname"],es=class{constructor(e){let n;e?dl(e)?n={path:e}:typeof e=="string"||s3(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":B0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Hh.length;){let o=Hh[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Hh.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?jt.basename(this.path):void 0}set basename(e){Vh(e,"basename"),Gh(e,"basename"),this.path=jt.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?jt.dirname(this.path):void 0}set dirname(e){U0(this.basename,"dirname"),this.path=jt.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?jt.extname(this.path):void 0}set extname(e){if(Gh(e,"extname"),U0(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=jt.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){dl(e)&&(e=j0(e)),Vh(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?jt.basename(this.path,this.extname):void 0}set stem(e){Vh(e,"stem"),Gh(e,"stem"),this.path=jt.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){let i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){let i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){let i=new Pe(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Gh(t,e){if(t&&t.includes(jt.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+jt.sep+"`")}function Vh(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function U0(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function s3(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var z0=(function(t){let r=this.constructor.prototype,i=r[t],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o});var a3={}.hasOwnProperty,Zh=class t extends z0{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$h()}copy(){let e=new t,n=-1;for(;++n<this.attachers.length;){let r=this.attachers[n];e.use(...r)}return e.data((0,gl.default)(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(Qh("data",this.frozen),this.namespace[e]=n,this):a3.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Qh("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=n.call(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let n=ml(e),r=this.parser||this.Parser;return Yh("parse",r),r(String(n),n)}process(e,n){let r=this;return this.freeze(),Yh("process",this.parser||this.Parser),Kh("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){let a=ml(e),l=r.parse(a);r.run(l,a,function(c,f,h){if(c||!f||!h)return u(c);let p=f,w=r.stringify(p,h);u3(w)?h.value=w:h.result=w,u(c,h)});function u(c,f){c||!f?s(c):o?o(f):n(void 0,f)}}}processSync(e){let n=!1,r;return this.freeze(),Yh("processSync",this.parser||this.Parser),Kh("processSync",this.compiler||this.Compiler),this.process(e,i),$0("processSync","process",n),r;function i(o,s){n=!0,Wh(o),r=s}}run(e,n,r){W0(e),this.freeze();let i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){let l=ml(n);i.run(e,l,u);function u(c,f,h){let p=f||e;c?a(c):s?s(p):r(void 0,p,h)}}}runSync(e,n){let r=!1,i;return this.run(e,n,o),$0("runSync","run",r),i;function o(s,a){Wh(s),i=a,r=!0}}stringify(e,n){this.freeze();let r=ml(n),i=this.compiler||this.Compiler;return Kh("stringify",i),W0(e),i(e,r)}use(e,...n){let r=this.attachers,i=this.namespace;if(Qh("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?a(e):s(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...f]=u;l(c,f)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=(0,gl.default)(!0,i.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let f=u[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===u){h=f;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[p,...w]=c,D=r[h][1];Xo(D)&&Xo(p)&&(p=(0,gl.default)(!0,D,p)),r[h]=[u,p,...w]}}}},Jh=new Zh().freeze();function Yh(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Kh(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Qh(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function W0(t){if(!Xo(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function $0(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function ml(t){return l3(t)?t:new es(t)}function l3(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function u3(t){return typeof t=="string"||c3(t)}function c3(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var yl=Jh().use(ll).use(hl).freeze();var f3=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,h3=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,p3=/[^-+\dA-Z]/g;function Xh(t,e,n,r){if(arguments.length===1&&typeof t=="string"&&!/\d/.test(t)&&(e=t,t=void 0),t=t||t===0?t:new Date,t instanceof Date||(t=new Date(t)),isNaN(t))throw TypeError("Invalid date");e=String(bl[e]||e||bl.default);var i=e.slice(0,4);(i==="UTC:"||i==="GMT:")&&(e=e.slice(4),n=!0,i==="GMT:"&&(r=!0));var o=function(){return n?"getUTC":"get"},s=function(){return t[o()+"Date"]()},a=function(){return t[o()+"Day"]()},l=function(){return t[o()+"Month"]()},u=function(){return t[o()+"FullYear"]()},c=function(){return t[o()+"Hours"]()},f=function(){return t[o()+"Minutes"]()},h=function(){return t[o()+"Seconds"]()},p=function(){return t[o()+"Milliseconds"]()},w=function(){return n?0:t.getTimezoneOffset()},D=function(){return d3(t)},k=function(){return m3(t)},g={d:function(){return s()},dd:function(){return yt(s())},ddd:function(){return ct.dayNames[a()]},DDD:function(){return H0({y:u(),m:l(),d:s(),_:o(),dayName:ct.dayNames[a()],short:!0})},dddd:function(){return ct.dayNames[a()+7]},DDDD:function(){return H0({y:u(),m:l(),d:s(),_:o(),dayName:ct.dayNames[a()+7]})},m:function(){return l()+1},mm:function(){return yt(l()+1)},mmm:function(){return ct.monthNames[l()]},mmmm:function(){return ct.monthNames[l()+12]},yy:function(){return String(u()).slice(2)},yyyy:function(){return yt(u(),4)},h:function(){return c()%12||12},hh:function(){return yt(c()%12||12)},H:function(){return c()},HH:function(){return yt(c())},M:function(){return f()},MM:function(){return yt(f())},s:function(){return h()},ss:function(){return yt(h())},l:function(){return yt(p(),3)},L:function(){return yt(Math.floor(p()/10))},t:function(){return c()<12?ct.timeNames[0]:ct.timeNames[1]},tt:function(){return c()<12?ct.timeNames[2]:ct.timeNames[3]},T:function(){return c()<12?ct.timeNames[4]:ct.timeNames[5]},TT:function(){return c()<12?ct.timeNames[6]:ct.timeNames[7]},Z:function(){return r?"GMT":n?"UTC":g3(t)},o:function(){return(w()>0?"-":"+")+yt(Math.floor(Math.abs(w())/60)*100+Math.abs(w())%60,4)},p:function(){return(w()>0?"-":"+")+yt(Math.floor(Math.abs(w())/60),2)+":"+yt(Math.floor(Math.abs(w())%60),2)},S:function(){return["th","st","nd","rd"][s()%10>3?0:(s()%100-s()%10!=10)*s()%10]},W:function(){return D()},WW:function(){return yt(D())},N:function(){return k()}};return e.replace(f3,function(m){return m in g?g[m]():m.slice(1,m.length-1)})}var bl={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},ct={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},yt=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(e).padStart(n,"0")},H0=function(e){var n=e.y,r=e.m,i=e.d,o=e._,s=e.dayName,a=e.short,l=a===void 0?!1:a,u=new Date,c=new Date;c.setDate(c[o+"Date"]()-1);var f=new Date;f.setDate(f[o+"Date"]()+1);var h=function(){return u[o+"Date"]()},p=function(){return u[o+"Month"]()},w=function(){return u[o+"FullYear"]()},D=function(){return c[o+"Date"]()},k=function(){return c[o+"Month"]()},g=function(){return c[o+"FullYear"]()},m=function(){return f[o+"Date"]()},d=function(){return f[o+"Month"]()},y=function(){return f[o+"FullYear"]()};return w()===n&&p()===r&&h()===i?l?"Tdy":"Today":g()===n&&k()===r&&D()===i?l?"Ysd":"Yesterday":y()===n&&d()===r&&m()===i?l?"Tmw":"Tomorrow":s},d3=function(e){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=new Date(n.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var i=n.getTimezoneOffset()-r.getTimezoneOffset();n.setHours(n.getHours()-i);var o=(n-r)/(864e5*7);return 1+Math.floor(o)},m3=function(e){var n=e.getDay();return n===0&&(n=7),n},g3=function(e){return(String(e).match(h3)||[""]).pop().replace(p3,"").replace(/GMT\+0000/g,"UTC")};var Ze=ut(Kl(),1);function De(t,e,n){return{start:{line:t,character:e},end:{line:t,character:e+n}}}function qe(t,e,n,r,i){return{type:t,value:e,range:De(n,r,e.length),selectionRange:De(n,r,e.length),...i}}function Ql(t){let e={type:"root",children:[],range:{start:{line:0,character:0},end:{line:t.lineCount,character:0}},selectionRange:De(0,0,0)},n,r,i=[];function o(a){let l={type:"section",range:De(a,0,0),selectionRange:De(a,0,0),children:[]};return e.children.push(l),n=l,r=void 0,i=[],l}let s=[{pattern:/^$/,parse(a,l){return!0}},{pattern:/^-+$/,parse(a,l){let u=o(l),c=qe("separator",a[0],l,0);return u.children.push(c),!0}},{pattern:/^\s*Version\s*:\s*(.+)\s*$/d,parse(a,l){let u=qe("version",a[1],l,a.indices[1][0],{full_line:a[0]});return u.range.start.character=0,(!n||n.children.find(c=>c.type==="version"))&&o(l),n.children.push(u),!0}},{pattern:/^\s*Date\s*:\s*(.+)\s*$/d,parse(a,l){let u=qe("date",a[1],l,a.indices[1][0],{full_line:a[0]});return u.range.start.character=0,n||o(l),n.children.push(u),!0}},{pattern:/^\s*([\w\s]+)\s*:?\s*$/d,parse(a,l){if(i.length>0&&a.indices[1][0]>=4)return!1;n||o(l);let u=qe("category",a[1],l,a.indices[1][0],{full_line:a[0],children:[]});return u.range.start.character=0,n.children.push(u),r=u,i=[],!0}},{pattern:/^\s*(-)\s*(.*)$/d,parse(a,l){if(n&&!r){let u=qe("category","",l,0,{full_line:"",children:[],missing:!0});n.children.push(u),r=u,i=[]}if(r){let u=qe("entry",a[2],l,a.indices[2][0],{full_line:a[0],rank:a.indices[1][0],children:[]});u.range.start.character=0,u.selectionRange.end=u.selectionRange.start;let c=i.filter(f=>f.rank<u.rank);return i=c,c.length===0?r.children.push(u):c[c.length-1].children.push(u),c.push(u),!0}return!1}},{pattern:/^\s*(.*)$/d,parse(a,l){if(i.length>0){let u=qe("entryext",a[1],l,a.indices[1][0],{full_line:a[0],rank:a.indices[1][0]});return u.range.start.character=0,u.selectionRange.end=u.selectionRange.start,i[i.length-1].children.push(u),!0}return!1}},{pattern:/^.*$/,parse(a,l){let u=qe("error",a[0],l,0);return(r??n??e).children.push(u),!0}}];for(let a=0;a<t.lineCount;a++){let l={start:{line:a,character:0},end:{line:a,character:1/0}},u=t.getText(l).replace(/\r*\n?$/,"");for(let c of s){let f=c.pattern.exec(u);if(f&&c.parse(f,a))break}}return Nn(e,["entry","entryext"],(a,l)=>{(a.type==="entry"||a.type==="entryext")&&(a.rank=l.length-3)}),Nn(e,(a,l)=>{let u=a.range.end;for(let c of l){let f=c.range.end;(u.line>f.line||u.line===f.line&&u.character>f.character)&&(c.range.end=u)}}),e}var Fi=ut(Kl(),1);function M_(t,e){let n=[],r=new Map,i,o=new Map,s={root:[],section:[{message:"Missing separator",code:"separator.insert",test(a,l,u){if(a.children[0].type!=="separator")return{range:a.selectionRange}}},{message:"Missing version",code:"version.insert",test(a,l,u){if(!a.children.find(c=>c.type==="version")&&!(a.children.length===1&&a.children[0].type==="separator")){let c=a.children.find(f=>f.type==="date"||f.type==="category");if(c)return{range:{start:c.range.start,end:c.range.start}}}}}],separator:[{message:"Separator line is incorrect length",code:"separator.length",test(a,l,u){if(a.value.length!==99)return{range:a.range}}},{message:"Unexpected separator",code:"separator.remove",test(a,l,u){if(u.children.length===1)return{range:a.range}}}],version:[{message:"Version must be first line of block",code:"version.order",test(a,l,u){if(l>1||a.range.start.line>u.range.start.line+1)return{range:a.range}}},{message:"Version line incorrectly formatted",code:"version.format",test(a,l,u){if(a.full_line!==`Version: ${a.value}`)return{range:a.range}}},{message:"Expected two or three decimal numbers in version number",code:"version.value",test(a,l,u){if(!a.value.match(/^\d+\.\d+(\.\d+)?/))return{range:a.selectionRange}}},{message:"Duplicate Version",code:"version.duplicate",test(a,l,u){let c=r.get(a.value);if(c)return{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:c.selectionRange,uri:e}}]};r.set(a.value,a)}}],date:[{message:"Date line must be immediately after Version line",code:"date.placement",test(a,l,u){let c=u.children.findIndex(h=>h.type==="date"),f=u.children.findIndex(h=>h.type==="version");if(f!==-1&&l!==f+1&&c===l)return{range:a.range}}},{message:"Duplicate Date line in section",code:"date.remove",test(a,l,u){let c=u.children.findIndex(f=>f.type==="date");if(c!==l)return{range:a.range,relatedInformation:[{message:"First defined here",location:{range:u.children[c].range,uri:e}}]}}},{message:"Date line incorrectly formatted",code:"date.format",test(a,l,u){if(a.full_line!==`Date: ${a.value}`)return{range:a.range}}}],category:[{message:"Missing Category",code:"category.insert",test(a,l,u){if(a.missing)return{range:a.range}}},{message:"Category line prefix incorrect",code:"category.prefix",test(a,l,u){if(!a.missing&&!a.full_line.startsWith(` ${a.value}`))return{range:{start:a.range.start,end:{line:a.selectionRange.start.line,character:a.selectionRange.start.character}}}}},{message:"Category line suffix incorrect",code:"category.suffix",test(a,l,u){if(!a.missing&&!a.full_line.endsWith(`${a.value}:`))return{range:{start:{line:a.selectionRange.end.line,character:a.selectionRange.end.character+1},end:a.range.end}}}},{message:"Non-standard category name",code:"category.nonstandard",severity:Fi.DiagnosticSeverity.Information,test(a,l,u){if(a.missing)return;if(!["Major Features","Features","Minor Features","Graphics","Sounds","Optimizations","Balancing","Combat Balancing","Circuit Network","Changes","Bugfixes","Modding","Scripting","Gui","Control","Translation","Debug","Ease of use","Info","Locale","Compatibility","Other"].includes(a.value))return{range:a.selectionRange}}},{message:"Duplicate category",code:"category.duplicate",severity:Fi.DiagnosticSeverity.Warning,test(a,l,u){if(a.missing)return;let c=o.get(a.value);if(c)return i=c,{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:c.category.selectionRange,uri:e}}]};{let f={category:a,seenLines:new Map};i=f,o.set(a.value,f)}}}],entry:[{message:"Incorrect entry prefix",code:"entry.prefix",severity:Fi.DiagnosticSeverity.Warning,test(a,l,u){}},{message:"Incorrect entry prefix",code:"entry.prefix",test(a,l,u){let c=" "+(a.rank===0?"- ":" ");if(!a.full_line.startsWith(c))return{range:{start:a.range.start,end:a.selectionRange.start},data:{rank:a.rank}};let f=a.full_line.slice(0,a.selectionRange.start.character),h=" "+" ".repeat(a.rank)+"- ";if(f!==h)return{severity:Fi.DiagnosticSeverity.Warning,range:{start:a.range.start,end:a.selectionRange.start},data:{rank:a.rank}}}},{message:"Duplicate entry",code:"entry.duplicate",test(a,l,u){let c=i;if(!c)return;let f=c.seenLines.get(a.full_line);if(f)return{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:f.selectionRange,uri:e}}]};c.seenLines.set(a.full_line,a)}},{message:"Empty entry line",code:"entry.empty",test(a,l,u){if(a.value.length===0)return{range:a.range}}}],entryext:[{message:"Incorrect entry continuation prefix",code:"entryext.prefix",test(a,l,u){if(!a.full_line.startsWith(" "))return{range:{start:a.range.start,end:{line:a.selectionRange.start.line,character:a.selectionRange.start.character-1}}}}},{message:"Duplicate entry",code:"entry.duplicate",test(a,l,u){let c=i;if(!c)return;let f=c.seenLines.get(a.full_line);if(f)return{range:a.selectionRange,relatedInformation:[{message:"First defined here",location:{range:f.selectionRange,uri:e}}]};c.seenLines.set(a.full_line,a)}}],error:[{message:"Invalid line",code:"error.unknown",test(a,l,u){return{range:a.range}}}]};return Qt(t,(a,l,u)=>{switch(a.type){case"section":o.clear();break;case"category":break}let c=s[a.type];for(let f of c){let h=f.test(a,l??-1,u);h&&n.push({message:f.message,code:f.code,source:"factorio-changelog",severity:f.severity??Fi.DiagnosticSeverity.Error,...h})}}),n}function Sp(t){for(let e of t.children)if(e.type==="version")return e}function N_(t){for(let e of t.children)if(e.type==="date")return e}function CL(t,e){for(let n of t.children)if(n.type==="section"&&Sp(n)?.value===e)return n}function B_(t,e,n){let r=CL(t,e);if(r){let i=N_(r);if(i)return{range:i.selectionRange,newText:n};{let o=Sp(r);return{range:{start:o.range.end,end:o.range.end},newText:`
|
|
90
|
-
|
|
91
|
-
`}]}}}
|
|
92
|
-
`}]}}}
|
|
93
|
-
`}
|
|
94
|
-
`;break;case 114:d+="\r";break;case 116:d+=" ";break;case 117:let
|
|
95
|
-
`),a++,
|
|
96
|
-
`+" ".repeat(
|
|
97
|
-
`+" ".repeat(
|
|
98
|
-
`+" ".repeat(
|
|
99
|
-
`+" ".repeat(
|
|
90
|
+
`),i;function o(s){return r.stack.push(s),a;function a(){r.stack.pop()}}}function vI(e){throw new Error("Cannot handle value `"+e+"`, expected node")}function EI(e){let t=e;throw new Error("Cannot handle unknown node `"+t.type+"`")}function SI(e,t){if(e.type==="definition"&&e.type===t.type)return 0}function FI(e,t){return JD(e,this,t)}function kI(e,t){return XD(e,this,t)}function TI(e,t){return n0(this,e,t)}function uu(e){let t=this;t.compiler=n;function n(r){return Ph(r,{...t.data("settings"),...e,extensions:t.data("toMarkdownExtensions")||[]})}}function Bh(e){if(e)throw e}var hu=ft(h0(),1);function Ko(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qh(){let e=[],t={run:n,use:r};return t;function n(...i){let o=-1,s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(u,...l){let c=e[++o],f=-1;if(u){s(u);return}for(;++f<i.length;)(l[f]===null||l[f]===void 0)&&(l[f]=i[f]);i=l,c?p0(c,a)(...l):s(null,...l)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function p0(e,t){let n;return r;function r(...s){let a=e.length>s.length,u;a&&s.push(i);try{u=e.apply(this,s)}catch(l){let c=l;if(a&&n)throw c;return i(c)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}var Le=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){let u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){let u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}let a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Mn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Le.prototype.file="";Le.prototype.name="";Le.prototype.reason="";Le.prototype.message="";Le.prototype.stack="";Le.prototype.column=void 0;Le.prototype.line=void 0;Le.prototype.ancestors=void 0;Le.prototype.cause=void 0;Le.prototype.fatal=void 0;Le.prototype.place=void 0;Le.prototype.ruleId=void 0;Le.prototype.source=void 0;import{default as Mt}from"node:path";import{default as d0}from"node:process";import{fileURLToPath as m0}from"node:url";function cu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}var Nh=["history","path","basename","stem","extname","dirname"],Yo=class{constructor(t){let n;t?cu(t)?n={path:t}:typeof t=="string"||CI(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":d0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Nh.length;){let o=Nh[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Nh.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Mt.basename(this.path):void 0}set basename(t){jh(t,"basename"),Mh(t,"basename"),this.path=Mt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Mt.dirname(this.path):void 0}set dirname(t){g0(this.basename,"dirname"),this.path=Mt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Mt.extname(this.path):void 0}set extname(t){if(Mh(t,"extname"),g0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){cu(t)&&(t=m0(t)),jh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Mt.basename(this.path,this.extname):void 0}set stem(t){jh(t,"stem"),Mh(t,"stem"),this.path=Mt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){let i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){let i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){let i=new Le(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function Mh(e,t){if(e&&e.includes(Mt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mt.sep+"`")}function jh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function g0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function CI(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var y0=(function(e){let r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o});var AI={}.hasOwnProperty,$h=class e extends y0{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qh()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let r=this.attachers[n];t.use(...r)}return t.data((0,hu.default)(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Wh("data",this.frozen),this.namespace[t]=n,this):AI.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Wh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let n=fu(t),r=this.parser||this.Parser;return Uh("parse",r),r(String(n),n)}process(t,n){let r=this;return this.freeze(),Uh("process",this.parser||this.Parser),zh("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){let a=fu(t),u=r.parse(a);r.run(u,a,function(c,f,h){if(c||!f||!h)return l(c);let p=f,b=r.stringify(p,h);OI(b)?h.value=b:h.result=b,l(c,h)});function l(c,f){c||!f?s(c):o?o(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Uh("processSync",this.parser||this.Parser),zh("processSync",this.compiler||this.Compiler),this.process(t,i),D0("processSync","process",n),r;function i(o,s){n=!0,Bh(o),r=s}}run(t,n,r){b0(t),this.freeze();let i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){let u=fu(n);i.run(t,u,l);function l(c,f,h){let p=f||t;c?a(c):s?s(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),D0("runSync","run",r),i;function o(s,a){Bh(s),i=a,r=!0}}stringify(t,n){this.freeze();let r=fu(n),i=this.compiler||this.Compiler;return zh("stringify",i),b0(t),i(t,r)}use(t,...n){let r=this.attachers,i=this.namespace;if(Wh("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(l){if(typeof l=="function")u(l,[]);else if(typeof l=="object")if(Array.isArray(l)){let[c,...f]=l;u(c,f)}else s(l);else throw new TypeError("Expected usable value, not `"+l+"`")}function s(l){if(!("plugins"in l)&&!("settings"in l))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(l.plugins),l.settings&&(i.settings=(0,hu.default)(!0,i.settings,l.settings))}function a(l){let c=-1;if(l!=null)if(Array.isArray(l))for(;++c<l.length;){let f=l[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+l+"`")}function u(l,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===l){h=f;break}if(h===-1)r.push([l,...c]);else if(c.length>0){let[p,...b]=c,D=r[h][1];Ko(D)&&Ko(p)&&(p=(0,hu.default)(!0,D,p)),r[h]=[l,p,...b]}}}},Hh=new $h().freeze();function Uh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Wh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function b0(e){if(!Ko(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function D0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function fu(e){return RI(e)?e:new Yo(e)}function RI(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function OI(e){return typeof e=="string"||II(e)}function II(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var pu=Hh().use(iu).use(uu).freeze();var LI=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,PI=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,BI=/[^-+\dA-Z]/g;function Gh(e,t,n,r){if(arguments.length===1&&typeof e=="string"&&!/\d/.test(e)&&(t=e,e=void 0),e=e||e===0?e:new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");t=String(du[t]||t||du.default);var i=t.slice(0,4);(i==="UTC:"||i==="GMT:")&&(t=t.slice(4),n=!0,i==="GMT:"&&(r=!0));var o=function(){return n?"getUTC":"get"},s=function(){return e[o()+"Date"]()},a=function(){return e[o()+"Day"]()},u=function(){return e[o()+"Month"]()},l=function(){return e[o()+"FullYear"]()},c=function(){return e[o()+"Hours"]()},f=function(){return e[o()+"Minutes"]()},h=function(){return e[o()+"Seconds"]()},p=function(){return e[o()+"Milliseconds"]()},b=function(){return n?0:e.getTimezoneOffset()},D=function(){return qI(e)},F=function(){return NI(e)},g={d:function(){return s()},dd:function(){return dt(s())},ddd:function(){return st.dayNames[a()]},DDD:function(){return w0({y:l(),m:u(),d:s(),_:o(),dayName:st.dayNames[a()],short:!0})},dddd:function(){return st.dayNames[a()+7]},DDDD:function(){return w0({y:l(),m:u(),d:s(),_:o(),dayName:st.dayNames[a()+7]})},m:function(){return u()+1},mm:function(){return dt(u()+1)},mmm:function(){return st.monthNames[u()]},mmmm:function(){return st.monthNames[u()+12]},yy:function(){return String(l()).slice(2)},yyyy:function(){return dt(l(),4)},h:function(){return c()%12||12},hh:function(){return dt(c()%12||12)},H:function(){return c()},HH:function(){return dt(c())},M:function(){return f()},MM:function(){return dt(f())},s:function(){return h()},ss:function(){return dt(h())},l:function(){return dt(p(),3)},L:function(){return dt(Math.floor(p()/10))},t:function(){return c()<12?st.timeNames[0]:st.timeNames[1]},tt:function(){return c()<12?st.timeNames[2]:st.timeNames[3]},T:function(){return c()<12?st.timeNames[4]:st.timeNames[5]},TT:function(){return c()<12?st.timeNames[6]:st.timeNames[7]},Z:function(){return r?"GMT":n?"UTC":MI(e)},o:function(){return(b()>0?"-":"+")+dt(Math.floor(Math.abs(b())/60)*100+Math.abs(b())%60,4)},p:function(){return(b()>0?"-":"+")+dt(Math.floor(Math.abs(b())/60),2)+":"+dt(Math.floor(Math.abs(b())%60),2)},S:function(){return["th","st","nd","rd"][s()%10>3?0:(s()%100-s()%10!=10)*s()%10]},W:function(){return D()},WW:function(){return dt(D())},N:function(){return F()}};return t.replace(LI,function(m){return m in g?g[m]():m.slice(1,m.length-1)})}var du={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},st={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},dt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return String(t).padStart(n,"0")},w0=function(t){var n=t.y,r=t.m,i=t.d,o=t._,s=t.dayName,a=t.short,u=a===void 0?!1:a,l=new Date,c=new Date;c.setDate(c[o+"Date"]()-1);var f=new Date;f.setDate(f[o+"Date"]()+1);var h=function(){return l[o+"Date"]()},p=function(){return l[o+"Month"]()},b=function(){return l[o+"FullYear"]()},D=function(){return c[o+"Date"]()},F=function(){return c[o+"Month"]()},g=function(){return c[o+"FullYear"]()},m=function(){return f[o+"Date"]()},d=function(){return f[o+"Month"]()},y=function(){return f[o+"FullYear"]()};return b()===n&&p()===r&&h()===i?u?"Tdy":"Today":g()===n&&F()===r&&D()===i?u?"Ysd":"Yesterday":y()===n&&d()===r&&m()===i?u?"Tmw":"Tomorrow":s},qI=function(t){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate());n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=new Date(n.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var i=n.getTimezoneOffset()-r.getTimezoneOffset();n.setHours(n.getHours()-i);var o=(n-r)/(864e5*7);return 1+Math.floor(o)},NI=function(t){var n=t.getDay();return n===0&&(n=7),n},MI=function(t){return(String(t).match(PI)||[""]).pop().replace(BI,"").replace(/GMT\+0000/g,"UTC")};var ut=ft(ns(),1);function De(e,t,n){return{start:{line:e,character:t},end:{line:e,character:t+n}}}function Re(e,t,n,r,i){return{type:e,value:t,range:De(n,r,t.length),selectionRange:De(n,r,t.length),...i}}function $n(e,t){return t.map(n=>{if("newText"in n)return n;let r=e.getText(n.getText);return{range:n.range,newText:r}})}function hw(e,t){return e.line<t.line?-1:e.line>t.line?1:e.character<t.character?-1:e.character>t.character?1:0}function Hu(e,t){return!(hw(e.end,t.start)<0||hw(t.end,e.start)<0)}function Gu(e){let t={type:"root",children:[],range:{start:{line:0,character:0},end:{line:e.lineCount,character:0}},selectionRange:De(0,0,0)},n,r,i=[];function o(a){let u={type:"section",range:De(a,0,0),selectionRange:De(a,0,0),children:[]};return t.children.push(u),n=u,r=void 0,i=[],u}let s=[{pattern:/^$/,parse(a,u){return!0}},{pattern:/^-+$/,parse(a,u){let l=o(u),c=Re("separator",a[0],u,0);return l.children.push(c),!0}},{pattern:/^\s*Version\s*:\s*(.+)\s*$/d,parse(a,u){let l=Re("version",a[1],u,a.indices[1][0],{full_line:a[0]});return l.range.start.character=0,(!n||n.children.find(c=>c.type==="version"))&&o(u),n.children.push(l),!0}},{pattern:/^\s*Date\s*:\s*(.+)\s*$/d,parse(a,u){let l=Re("date",a[1],u,a.indices[1][0],{full_line:a[0]});return l.range.start.character=0,n||o(u),n.children.push(l),!0}},{pattern:/^\s*([^\s\-].*?)\s*:?\s*$/d,parse(a,u){if(i.length>0&&a.indices[1][0]>=4)return!1;n||o(u);let l=Re("category",a[1],u,a.indices[1][0],{full_line:a[0],children:[]});return l.range.start.character=0,n.children.push(l),r=l,i=[],!0}},{pattern:/^\s*(-)\s*(.*)$/d,parse(a,u){if(n&&!r){let l=Re("category","",u,0,{full_line:"",children:[],missing:!0});n.children.push(l),r=l,i=[]}if(r){let l=Re("entry",a[2],u,a.indices[2][0],{full_line:a[0],rank:a.indices[1][0],children:[]});l.range.start.character=0,l.selectionRange.end=l.selectionRange.start;let c=i.filter(f=>f.rank<l.rank);return i=c,c.length===0?r.children.push(l):c[c.length-1].children.push(l),c.push(l),!0}return!1}},{pattern:/^\s*(.*)$/d,parse(a,u){if(i.length>0){let l=Re("entryext",a[1],u,a.indices[1][0],{full_line:a[0],rank:a.indices[1][0]});return l.range.start.character=0,l.selectionRange.end=l.selectionRange.start,i[i.length-1].children.push(l),!0}return!1}},{pattern:/^.*$/,parse(a,u){let l=Re("error",a[0],u,0);return(r??n??t).children.push(l),!0}}];for(let a=0;a<e.lineCount;a++){let u={start:{line:a,character:0},end:{line:a,character:1/0}},l=e.getText(u).replace(/\r*\n?$/,"");for(let c of s){let f=c.pattern.exec(l);if(f&&c.parse(f,a))break}}return Bn(t,["entry","entryext"],(a,u)=>{(a.type==="entry"||a.type==="entryext")&&(a.rank=u.length-3)}),Bn(t,(a,u)=>{let l=a.range.end;for(let c of u){let f=c.range.end;(l.line>f.line||l.line===f.line&&l.character>f.character)&&(c.range.end=l)}}),t}var rs=ft(ns(),1);var JL=[{message:"Missing separator",code:"separator.missing",setup(e){return{section:(t,n,r)=>{t.children[0].type!=="separator"&&e.report({diag:{range:t.selectionRange},fix:[{range:{start:t.selectionRange.start,end:t.selectionRange.start},newText:`---------------------------------------------------------------------------------------------------
|
|
91
|
+
`}]})}}}},{message:"Missing version",code:"version.missing",setup(e){return{section:(t,n,r)=>{if(!t.children.find(i=>i.type==="version")&&!(t.children.length===1&&t.children[0].type==="separator")){let i=t.children.find(o=>o.type==="date"||o.type==="category");i&&e.report({diag:{range:{start:i.range.start,end:i.range.start}},fix:[{range:{start:i.range.start,end:i.range.start},newText:`Version: 0.0.0
|
|
92
|
+
`}]})}}}}},{message:"Separator line is incorrect length",code:"separator.length",setup(e){return{separator:(t,n,r)=>{t.value.length!==99&&e.report({diag:{range:t.range},fix:[{range:t.range,newText:"---------------------------------------------------------------------------------------------------"}]})}}}},{message:"Unexpected separator",code:"separator.extra",setup(e){return{separator:(t,n,r)=>{r.children.length===1&&e.report({diag:{range:t.range},fix:[{range:{start:t.range.start,end:{line:t.range.start.line+1,character:0}},newText:""}]})}}}},{message:"Version must be first line of block",code:"version.order",setup(e){return{version:(t,n,r)=>{(n>1||t.range.start.line>r.range.start.line+1)&&e.report({diag:{range:t.range}})}}}},{message:"Version line incorrectly formatted",code:"version.format",setup(e){return{version:(t,n,r)=>{t.full_line!==`Version: ${t.value}`&&e.report({diag:{range:t.range}})}}}},{message:"Expected two or three decimal numbers in version number",code:"version.value",setup(e){return{version:(t,n,r)=>{t.value.match(/^\d+\.\d+(\.\d+)?/)||e.report({diag:{range:t.selectionRange}})}}}},{message:"Duplicate Version",code:"version.duplicate",setup(e){let t=new Map;return{root:(n,r,i)=>{t.clear()},version:(n,r,i)=>{let o=t.get(n.value);o?e.report({diag:{range:n.selectionRange,relatedInformation:[{message:"First defined here",location:{range:o.selectionRange,uri:e.uri}}]}}):t.set(n.value,n)}}}},{message:"Date line must be immediately after Version line",code:"date.placement",setup(e){return{date:(t,n,r)=>{let i=r.children.findIndex(s=>s.type==="date"),o=r.children.findIndex(s=>s.type==="version");o!==-1&&n!==o+1&&i===n&&e.report({diag:{range:t.range}})}}}},{message:"Duplicate Date line in section",code:"date.duplicate",setup(e){return{date:(t,n,r)=>{let i=r.children.findIndex(o=>o.type==="date");i!==n&&e.report({diag:{range:t.range,relatedInformation:[{message:"First defined here",location:{range:r.children[i].range,uri:e.uri}}]},fix:[{range:{start:t.range.start,end:{line:t.range.start.line+1,character:0}},newText:""}]})}}}},{message:"Date line incorrectly formatted",code:"date.format",setup(e){return{date:(t,n,r)=>{t.full_line!==`Date: ${t.value}`&&e.report({diag:{range:t.range}})}}}},{message:"Missing Category",code:"category.missing",setup(e){return{category:(t,n,r)=>{t.missing&&e.report({diag:{range:t.range},fix:[{range:{start:t.range.start,end:t.range.start},newText:` Changes:
|
|
93
|
+
`}]})}}}},{message:"Category line prefix incorrect",code:"category.prefix",setup(e){return{category:(t,n,r)=>{t.missing||t.full_line.startsWith(` ${t.value}`)||e.report({diag:{range:{start:t.range.start,end:{line:t.selectionRange.start.line,character:t.selectionRange.start.character}}},fix:[{range:{start:t.range.start,end:{line:t.selectionRange.start.line,character:t.selectionRange.start.character}},newText:" "}]})}}}},{message:"Category line suffix incorrect",code:"category.suffix",setup(e){return{category:(t,n,r)=>{t.missing||t.full_line.endsWith(`${t.value}:`)||e.report({diag:{range:{start:{line:t.selectionRange.end.line,character:t.selectionRange.end.character+1},end:t.range.end}},fix:[{range:{start:{line:t.selectionRange.end.line,character:t.selectionRange.end.character+1},end:t.range.end},newText:":"}]})}}}},{message:"Non-standard category name",code:"category.nonstandard",setup(e){return{category:(t,n,r)=>{if(t.missing)return;["Major Features","Features","Minor Features","Graphics","Sounds","Optimizations","Balancing","Combat Balancing","Circuit Network","Changes","Bugfixes","Modding","Scripting","Gui","Control","Translation","Debug","Ease of use","Info","Locale","Compatibility","Other"].includes(t.value)||e.report({diag:{range:t.selectionRange,severity:rs.DiagnosticSeverity.Information}})}}}},{message:"Duplicate category",code:"category.duplicate",setup(e){let t=new Map;return{section:(n,r,i)=>{t.clear()},category:(n,r,i)=>{if(n.missing)return;let o=t.get(n.value);o?e.report({diag:{range:n.selectionRange,severity:rs.DiagnosticSeverity.Warning,relatedInformation:[{message:"First defined here",location:{range:o.selectionRange,uri:e.uri}}]}}):t.set(n.value,n)}}}},{message:"Incorrect entry prefix",code:"entry.prefix",setup(e){return{entry:(t,n,r)=>{let i=" "+(t.rank===0?"- ":" ");if(t.rank===0&&!t.full_line.startsWith(i)){e.report({diag:{range:{start:t.range.start,end:t.selectionRange.start},data:{rank:t.rank}},fix:[{range:{start:t.range.start,end:t.selectionRange.start},newText:i}]});return}let o=t.full_line.slice(0,t.selectionRange.start.character),s=" "+" ".repeat(t.rank)+"- ";o!==s&&e.report({diag:{severity:t.full_line.startsWith(i)?rs.DiagnosticSeverity.Warning:rs.DiagnosticSeverity.Error,range:{start:t.range.start,end:t.selectionRange.start},data:{rank:t.rank}},fix:[{range:{start:t.range.start,end:t.selectionRange.start},newText:s}]})}}}},{message:"Duplicate entry",code:"entry.duplicate",setup(e){let t,n=new Map,r=(i,o,s)=>{let a=t;if(!a)return;let u=a.get(i.full_line);u?e.report({diag:{range:i.selectionRange,relatedInformation:[{message:"First defined here",location:{range:u.selectionRange,uri:e.uri}}]}}):a.set(i.full_line,i)};return{section:(i,o,s)=>{n.clear()},category:(i,o,s)=>{if(i.missing)return;let a=n.get(i.value);a?t=a:(t=new Map,n.set(i.value,t))},entry:r,entryext:r}}},{message:"Empty entry line",code:"entry.empty",setup(e){return{entry:(t,n,r)=>{t.value.length===0&&e.report({diag:{range:t.range}})}}}},{message:"Incorrect entry continuation prefix",code:"entryext.prefix",setup(e){return{entryext:(t,n,r)=>{t.full_line.startsWith(" ")||e.report({diag:{range:{start:t.range.start,end:{line:t.selectionRange.start.line,character:t.selectionRange.start.character}}},fix:[{range:{start:t.range.start,end:{line:t.selectionRange.start.line,character:t.selectionRange.start.character}},newText:" "}]})}}}},{message:"Invalid line",code:"error.unknown",setup(e){return{error:(t,n,r)=>{e.report({diag:{range:t.range}})}}}}];function yp(e,t){let n=[],r={root:[],section:[],separator:[],version:[],date:[],category:[],entry:[],entryext:[],error:[]};for(let i of JL){let o={uri:t,report(a){n.push({message:i.message,code:i.code,...a})}},s=i.setup(o);for(let a in r){let u=a;u in s&&s[u]&&r[u].push(s[u])}}return Et(e,(i,o,s)=>{let a=r[i.type];for(let u of a)u(i,o??-1,s)}),n}function bp(e){for(let t of e.children)if(t.type==="version")return t}function pw(e){for(let t of e.children)if(t.type==="date")return t}function XL(e,t){for(let n of e.children)if(n.type==="section"&&bp(n)?.value===t)return n}function dw(e,t,n){let r=XL(e,t);if(r){let i=pw(r);if(i)return{range:i.selectionRange,newText:n};{let o=bp(r);return{range:{start:o.range.end,end:o.range.end},newText:`
|
|
94
|
+
Date: ${n}`}}}}var Vu=class{documentTrees=new Map;loadDocument(t){let n=Gu(t);this.documentTrees.set(t.uri,n)}clearDocument(t){this.documentTrees.delete(t)}clearFolder(t){for(let n of this.documentTrees.keys())n.startsWith(t)&&this.documentTrees.delete(n)}diagnose(t){let n=this.documentTrees.get(t);if(!n)return[];let r=yp(n,t),i=[];for(let o of r)i.push({message:o.message,code:o.code,source:"factorio-changelog",severity:ut.DiagnosticSeverity.Error,...o.diag});return i}entrySymbol(t){return{name:t.value||"<empty>",detail:"",kind:ut.SymbolKind.String,range:t.range,selectionRange:t.selectionRange,children:t.type==="entry"?t.children.map(n=>this.entrySymbol(n)):[]}}categorySymbol(t){return{name:t.value||"<empty>",detail:"",kind:ut.SymbolKind.Class,range:t.range,selectionRange:t.selectionRange,children:t.children.filter(n=>n.type==="entry").map(n=>this.entrySymbol(n))}}dateSymbol(t){return{name:"Date",detail:t.value,kind:ut.SymbolKind.Property,range:t.range,selectionRange:t.selectionRange}}onDocumentSymbol(t){let n=this.documentTrees.get(t.uri);if(!n)return[];let r=[];for(let i of n.children)if(i.type==="section"){let o=bp(i);if(!o)continue;let s=pw(i),a=i.children.filter(u=>u.type==="category").map(u=>this.categorySymbol(u));s&&a.unshift(this.dateSymbol(s)),r.push({name:o.value||"<empty>",detail:"",kind:ut.SymbolKind.Namespace,range:i.range,selectionRange:o.selectionRange,children:a})}return r}onCodeAction(t,n,r){if(t.languageId!=="factorio-changelog")return[];let i=this.documentTrees.get(t.uri);if(!i)return[];let o=yp(i,t.uri).filter(l=>!!l.fix),s=o.filter(l=>Hu(n,l.diag.range)),a=[],u=new Set;for(let l of s)if(a.push({title:`Fix this ${l.code}`,kind:ut.CodeActionKind.QuickFix+"."+l.code,diagnostics:[{message:l.message,code:l.code,source:"factorio-changelog",severity:ut.DiagnosticSeverity.Error,...l.diag}],isPreferred:!0,edit:{changes:{[t.uri]:$n(t,l.fix)}}}),!u.has(l.code)){u.add(l.code);let c=o.filter(f=>f.code===l.code);c.length>1&&a.push({title:`Fix all ${l.code} in file`,kind:ut.CodeActionKind.QuickFix+"."+l.code+".all",diagnostics:c.map(f=>({message:f.message,code:f.code,source:"factorio-changelog",severity:ut.DiagnosticSeverity.Error,...f.diag})),edit:{changes:{[t.uri]:$n(t,c.flatMap(f=>f.fix))}}})}return o.length>s.length&&a.push({title:"Fix all auto-fixable in file",kind:ut.CodeActionKind.QuickFix+".all",diagnostics:o.map(l=>({message:l.message,code:l.code,source:"factorio-changelog",severity:ut.DiagnosticSeverity.Error,...l.diag})),edit:{changes:{[t.uri]:$n(t,o.flatMap(l=>l.fix))}}}),a}};function os(e,t=!1){let n=e.length,r=0,i="",o=0,s=16,a=0,u=0,l=0,c=0,f=0;function h(d,y){let k=0,E=0;for(;k<d||!y;){let v=e.charCodeAt(r);if(v>=48&&v<=57)E=E*16+v-48;else if(v>=65&&v<=70)E=E*16+v-65+10;else if(v>=97&&v<=102)E=E*16+v-97+10;else break;r++,k++}return k<d&&(E=-1),E}function p(d){r=d,i="",o=0,s=16,f=0}function b(){let d=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&ki(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&ki(e.charCodeAt(r)))for(r++;r<e.length&&ki(e.charCodeAt(r));)r++;else return f=3,e.substring(d,r);let y=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&ki(e.charCodeAt(r))){for(r++;r<e.length&&ki(e.charCodeAt(r));)r++;y=r}else f=3;return e.substring(d,y)}function D(){let d="",y=r;for(;;){if(r>=n){d+=e.substring(y,r),f=2;break}let k=e.charCodeAt(r);if(k===34){d+=e.substring(y,r),r++;break}if(k===92){if(d+=e.substring(y,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:d+='"';break;case 92:d+="\\";break;case 47:d+="/";break;case 98:d+="\b";break;case 102:d+="\f";break;case 110:d+=`
|
|
95
|
+
`;break;case 114:d+="\r";break;case 116:d+=" ";break;case 117:let v=h(4,!0);v>=0?d+=String.fromCharCode(v):f=4;break;default:f=5}y=r;continue}if(k>=0&&k<=31)if(is(k)){d+=e.substring(y,r),f=2;break}else f=6;r++}return d}function F(){if(i="",f=0,o=r,u=a,c=l,r>=n)return o=n,s=17;let d=e.charCodeAt(r);if(Dp(d)){do r++,i+=String.fromCharCode(d),d=e.charCodeAt(r);while(Dp(d));return s=15}if(is(d))return r++,i+=String.fromCharCode(d),d===13&&e.charCodeAt(r)===10&&(r++,i+=`
|
|
96
|
+
`),a++,l=r,s=14;switch(d){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,i=D(),s=10;case 47:let y=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!is(e.charCodeAt(r));)r++;return i=e.substring(y,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let k=n-1,E=!1;for(;r<k;){let v=e.charCodeAt(r);if(v===42&&e.charCodeAt(r+1)===47){r+=2,E=!0;break}r++,is(v)&&(v===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return E||(r++,f=1),i=e.substring(y,r),s=13}return i+=String.fromCharCode(d),r++,s=16;case 45:if(i+=String.fromCharCode(d),r++,r===n||!ki(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=b(),s=11;default:for(;r<n&&g(d);)r++,d=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(d),r++,s=16}}function g(d){if(Dp(d)||is(d))return!1;switch(d){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function m(){let d;do d=F();while(d>=12&&d<=15);return d}return{setPosition:p,getPosition:()=>r,scan:t?m:F,getToken:()=>s,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>r-o,getTokenStartLine:()=>u,getTokenStartCharacter:()=>o-c,getTokenError:()=>f}}function Dp(e){return e===32||e===9}function is(e){return e===10||e===13}function ki(e){return e>=48&&e<=57}var mw;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(mw||(mw={}));var mt=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),Ti=200,wp={" ":{"\n":new Array(Ti).fill(0).map((e,t)=>`
|
|
97
|
+
`+" ".repeat(t)),"\r":new Array(Ti).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Ti).fill(0).map((e,t)=>`\r
|
|
98
|
+
`+" ".repeat(t))}," ":{"\n":new Array(Ti).fill(0).map((e,t)=>`
|
|
99
|
+
`+" ".repeat(t)),"\r":new Array(Ti).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Ti).fill(0).map((e,t)=>`\r
|
|
100
|
+
`+" ".repeat(t))}},gw=[`
|
|
100
101
|
`,"\r",`\r
|
|
101
|
-
`];function
|
|
102
|
+
`];function _p(e,t,n){let r,i,o,s,a;if(t){for(s=t.offset,a=s+t.length,o=s;o>0&&!ss(e,o-1);)o--;let k=a;for(;k<e.length&&!ss(e,k);)k++;i=e.substring(o,k),r=nP(i,n)}else i=e,r=0,o=0,s=0,a=e.length;let u=rP(n,e),l=gw.includes(u),c=0,f=0,h;n.insertSpaces?h=mt[n.tabSize||4]??Ci(mt[1],n.tabSize||4):h=" ";let p=h===" "?" ":" ",b=os(i,!1),D=!1;function F(){if(c>1)return Ci(u,c)+Ci(h,r+f);let k=h.length*(r+f);return!l||k>wp[p][u].length?u+Ci(h,r+f):k<=0?u:wp[p][u][k]}function g(){let k=b.scan();for(c=0;k===15||k===14;)k===14&&n.keepLines?c+=1:k===14&&(c=1),k=b.scan();return D=k===16||b.getTokenError()!==0,k}let m=[];function d(k,E,v){!D&&(!t||E<a&&v>s)&&e.substring(E,v)!==k&&m.push({offset:E,length:v-E,content:k})}let y=g();if(n.keepLines&&c>0&&d(Ci(u,c),0,0),y!==17){let k=b.getTokenOffset()+o,E=h.length*r<20&&n.insertSpaces?mt[h.length*r]:Ci(h,r);d(E,o,k)}for(;y!==17;){let k=b.getTokenOffset()+b.getTokenLength()+o,E=g(),v="",q=!1;for(;c===0&&(E===12||E===13);){let A=b.getTokenOffset()+o;d(mt[1],k,A),k=b.getTokenOffset()+b.getTokenLength()+o,q=E===12,v=q?F():"",E=g()}if(E===2)y!==1&&f--,n.keepLines&&c>0||!n.keepLines&&y!==1?v=F():n.keepLines&&(v=mt[1]);else if(E===4)y!==3&&f--,n.keepLines&&c>0||!n.keepLines&&y!==3?v=F():n.keepLines&&(v=mt[1]);else{switch(y){case 3:case 1:f++,n.keepLines&&c>0||!n.keepLines?v=F():v=mt[1];break;case 5:n.keepLines&&c>0||!n.keepLines?v=F():v=mt[1];break;case 12:v=F();break;case 13:c>0?v=F():q||(v=mt[1]);break;case 6:n.keepLines&&c>0?v=F():q||(v=mt[1]);break;case 10:n.keepLines&&c>0?v=F():E===6&&!q&&(v="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&c>0?v=F():(E===12||E===13)&&!q?v=mt[1]:E!==5&&E!==17&&(D=!0);break;case 16:D=!0;break}c>0&&(E===12||E===13)&&(v=F())}E===17&&(n.keepLines&&c>0?v=F():v=n.insertFinalNewline?u:"");let T=b.getTokenOffset()+o;d(v,k,T),y=E}return m}function Ci(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function nP(e,t){let n=0,r=0,i=t.tabSize||4;for(;n<e.length;){let o=e.charAt(n);if(o===mt[1])r++;else if(o===" ")r+=i;else break;n++}return Math.floor(r/i)}function rP(e,t){for(let n=0;n<t.length;n++){let r=t.charAt(n);if(r==="\r")return n+1<t.length&&t.charAt(n+1)===`
|
|
102
103
|
`?`\r
|
|
103
104
|
`:"\r";if(r===`
|
|
104
105
|
`)return`
|
|
105
|
-
`}return
|
|
106
|
-
`}function
|
|
107
|
-
`.indexOf(t.charAt(e))!==-1}var Jl;(function(t){t.DEFAULT={allowTrailingComma:!1}})(Jl||(Jl={}));function Ap(t,e=[],n=Jl.DEFAULT){let r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function i(l){r.type==="property"&&(r.length=l-r.offset,r=r.parent)}function o(l){return r.children.push(l),l}z_(t,{onObjectBegin:l=>{r=o({type:"object",offset:l,length:-1,parent:r,children:[]})},onObjectProperty:(l,u,c)=>{r=o({type:"property",offset:u,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:l,offset:u,length:c,parent:r})},onObjectEnd:(l,u)=>{i(l+u),r.length=l+u-r.offset,r=r.parent,i(l+u)},onArrayBegin:(l,u)=>{r=o({type:"array",offset:l,length:-1,parent:r,children:[]})},onArrayEnd:(l,u)=>{r.length=l+u-r.offset,r=r.parent,i(l+u)},onLiteralValue:(l,u,c)=>{o({type:PL(l),offset:u,length:c,parent:r,value:l}),i(u+c)},onSeparator:(l,u,c)=>{r.type==="property"&&(l===":"?r.colonOffset=u:l===","&&i(u))},onError:(l,u,c)=>{e.push({error:l,offset:u,length:c})}},n);let a=r.children[0];return a&&delete a.parent,a}function Xl(t,e){if(!t)return;let n=t;for(let r of e)if(typeof r=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;let i=!1;for(let o of n.children)if(Array.isArray(o.children)&&o.children[0].value===r&&o.children.length===2){n=o.children[1],i=!0;break}if(!i)return}else{let i=r;if(n.type!=="array"||i<0||!Array.isArray(n.children)||i>=n.children.length)return;n=n.children[i]}return n}function z_(t,e,n=Jl.DEFAULT){let r=ls(t,!1),i=[],o=0;function s(R){return R?()=>o===0&&R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(R){return R?L=>o===0&&R(L,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(R){return R?L=>o===0&&R(L,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function u(R){return R?()=>{o>0?o++:R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice())===!1&&(o=1)}:()=>!0}function c(R){return R?()=>{o>0&&o--,o===0&&R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let f=u(e.onObjectBegin),h=l(e.onObjectProperty),p=c(e.onObjectEnd),w=u(e.onArrayBegin),D=c(e.onArrayEnd),k=l(e.onLiteralValue),g=a(e.onSeparator),m=s(e.onComment),d=a(e.onError),y=n&&n.disallowComments,T=n&&n.allowTrailingComma;function x(){for(;;){let R=r.scan();switch(r.getTokenError()){case 4:S(14);break;case 5:S(15);break;case 3:S(13);break;case 1:y||S(11);break;case 2:S(12);break;case 6:S(16);break}switch(R){case 12:case 13:y?S(10):m();break;case 16:S(1);break;case 15:case 14:break;default:return R}}}function S(R,L=[],$=[]){if(d(R),L.length+$.length>0){let z=r.getToken();for(;z!==17;){if(L.indexOf(z)!==-1){x();break}else if($.indexOf(z)!==-1)break;z=x()}}}function M(R){let L=r.getTokenValue();return R?k(L):(h(L),i.push(L)),x(),!0}function A(){switch(r.getToken()){case 11:let R=r.getTokenValue(),L=Number(R);isNaN(L)&&(S(2),L=0),k(L);break;case 7:k(null);break;case 8:k(!0);break;case 9:k(!1);break;default:return!1}return x(),!0}function F(){return r.getToken()!==10?(S(3,[],[2,5]),!1):(M(!1),r.getToken()===6?(g(":"),x(),O()||S(4,[],[2,5])):S(5,[],[2,5]),i.pop(),!0)}function I(){f(),x();let R=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(R||S(4,[],[]),g(","),x(),r.getToken()===2&&T)break}else R&&S(6,[],[]);F()||S(4,[],[2,5]),R=!0}return p(),r.getToken()!==2?S(7,[2],[]):x(),!0}function B(){w(),x();let R=!0,L=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(L||S(4,[],[]),g(","),x(),r.getToken()===4&&T)break}else L&&S(6,[],[]);R?(i.push(0),R=!1):i[i.length-1]++,O()||S(4,[],[4,5]),L=!0}return D(),R||i.pop(),r.getToken()!==4?S(8,[4],[]):x(),!0}function O(){switch(r.getToken()){case 3:return B();case 1:return I();case 10:return M(!0);default:return A()}}return x(),r.getToken()===17?n.allowEmptyContent?!0:(S(4,[],[]),!1):O()?(r.getToken()!==17&&S(9,[],[]),!0):(S(4,[],[]),!1)}function PL(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function W_(t,e,n,r){let i=e.slice(),s=Ap(t,[]),a,l;for(;i.length>0&&(l=i.pop(),a=Xl(s,i),a===void 0&&n!==void 0);)typeof l=="string"?n={[l]:n}:n=[n];if(a)if(a.type==="object"&&typeof l=="string"&&Array.isArray(a.children)){let u=Xl(a,[l]);if(u!==void 0)if(n===void 0){if(!u.parent)throw new Error("Malformed AST");let c=a.children.indexOf(u.parent),f,h=u.parent.offset+u.parent.length;if(c>0){let p=a.children[c-1];f=p.offset+p.length}else f=a.offset+1,a.children.length>1&&(h=a.children[1].offset);return Pr(t,{offset:f,length:h-f,content:""},r)}else return Pr(t,{offset:u.offset,length:u.length,content:JSON.stringify(n)},r);else{if(n===void 0)return[];let c=`${JSON.stringify(l)}: ${JSON.stringify(n)}`,f=r.getInsertionIndex?r.getInsertionIndex(a.children.map(p=>p.children[0].value)):a.children.length,h;if(f>0){let p=a.children[f-1];h={offset:p.offset+p.length,length:0,content:","+c}}else a.children.length===0?h={offset:a.offset+1,length:0,content:c}:h={offset:a.offset+1,length:0,content:c+","};return Pr(t,h,r)}}else if(a.type==="array"&&typeof l=="number"&&Array.isArray(a.children)){let u=l;if(u===-1){let c=`${JSON.stringify(n)}`,f;if(a.children.length===0)f={offset:a.offset+1,length:0,content:c};else{let h=a.children[a.children.length-1];f={offset:h.offset+h.length,length:0,content:","+c}}return Pr(t,f,r)}else if(n===void 0&&a.children.length>=0){let c=l,f=a.children[c],h;if(a.children.length===1)h={offset:a.offset+1,length:a.length-2,content:""};else if(a.children.length-1===c){let p=a.children[c-1],w=p.offset+p.length,D=a.offset+a.length;h={offset:w,length:D-2-w,content:""}}else h={offset:f.offset,length:a.children[c+1].offset-f.offset,content:""};return Pr(t,h,r)}else if(n!==void 0){let c,f=`${JSON.stringify(n)}`;if(!r.isArrayInsertion&&a.children.length>l){let h=a.children[l];c={offset:h.offset,length:h.length,content:f}}else if(a.children.length===0||l===0)c={offset:a.offset+1,length:0,content:a.children.length===0?f:f+","};else{let h=l>a.children.length?a.children.length:l,p=a.children[h-1];c={offset:p.offset+p.length,length:0,content:","+f}}return Pr(t,c,r)}else throw new Error(`Can not ${n===void 0?"remove":r.isArrayInsertion?"insert":"modify"} Array index ${u} as length is not sufficient`)}else throw new Error(`Can not add ${typeof l!="number"?"index":"property"} to parent of type ${a.type}`);else{if(n===void 0)throw new Error("Can not delete in empty document");return Pr(t,{offset:s?s.offset:0,length:s?s.length:0,content:JSON.stringify(n)},r)}}function Pr(t,e,n){if(!n.formattingOptions)return[e];let r=eu(t,e),i=e.offset,o=e.offset+e.content.length;if(e.length===0||e.content.length===0){for(;i>0&&!us(r,i-1);)i--;for(;o<r.length&&!us(r,o);)o++}let s=Tp(r,{offset:i,length:o-i},{...n.formattingOptions,keepLines:!1});for(let l=s.length-1;l>=0;l--){let u=s[l];r=eu(r,u),i=Math.min(i,u.offset),o=Math.max(o,u.offset+u.length),o+=u.content.length-u.length}let a=t.length-(r.length-o)-i;return[{offset:i,length:a,content:r.substring(i,o)}]}function eu(t,e){return t.substring(0,e.offset)+e.content+t.substring(e.offset+e.length)}var $_;(function(t){t[t.None=0]="None",t[t.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=2]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",t[t.InvalidUnicode=4]="InvalidUnicode",t[t.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",t[t.InvalidCharacter=6]="InvalidCharacter"})($_||($_={}));var H_;(function(t){t[t.OpenBraceToken=1]="OpenBraceToken",t[t.CloseBraceToken=2]="CloseBraceToken",t[t.OpenBracketToken=3]="OpenBracketToken",t[t.CloseBracketToken=4]="CloseBracketToken",t[t.CommaToken=5]="CommaToken",t[t.ColonToken=6]="ColonToken",t[t.NullKeyword=7]="NullKeyword",t[t.TrueKeyword=8]="TrueKeyword",t[t.FalseKeyword=9]="FalseKeyword",t[t.StringLiteral=10]="StringLiteral",t[t.NumericLiteral=11]="NumericLiteral",t[t.LineCommentTrivia=12]="LineCommentTrivia",t[t.BlockCommentTrivia=13]="BlockCommentTrivia",t[t.LineBreakTrivia=14]="LineBreakTrivia",t[t.Trivia=15]="Trivia",t[t.Unknown=16]="Unknown",t[t.EOF=17]="EOF"})(H_||(H_={}));var G_;(function(t){t[t.InvalidSymbol=1]="InvalidSymbol",t[t.InvalidNumberFormat=2]="InvalidNumberFormat",t[t.PropertyNameExpected=3]="PropertyNameExpected",t[t.ValueExpected=4]="ValueExpected",t[t.ColonExpected=5]="ColonExpected",t[t.CommaExpected=6]="CommaExpected",t[t.CloseBraceExpected=7]="CloseBraceExpected",t[t.CloseBracketExpected=8]="CloseBracketExpected",t[t.EndOfFileExpected=9]="EndOfFileExpected",t[t.InvalidCommentToken=10]="InvalidCommentToken",t[t.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=12]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",t[t.InvalidUnicode=14]="InvalidUnicode",t[t.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",t[t.InvalidCharacter=16]="InvalidCharacter"})(G_||(G_={}));function V_(t,e,n,r){return W_(t,e,n,r)}function Y_(t,e){let n=e.slice(0).sort((i,o)=>{let s=i.offset-o.offset;return s===0?i.length-o.length:s}),r=t.length;for(let i=n.length-1;i>=0;i--){let o=n[i];if(o.offset+o.length<=r)t=eu(t,o);else throw new Error("Overlapping edit");r=o.offset}return t}var DF=ut(fF(),1),xF=ut(XF(),1);var af=ut(wn(),1);import*as To from"fs";import{EventEmitter as WH}from"events";import{resolve as $H}from"path";function HH(t,e){return new Promise((n,r)=>{To.readdir(t,{withFileTypes:!0},(i,o)=>{if(i)switch(i.code){case"ENOTDIR":e?r(i):n([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":n([]);break;case"ELOOP":default:r(i);break}else n(o)})})}function hF(t,e){return new Promise(n=>{(e?To.stat:To.lstat)(t,(i,o)=>{if(i)switch(i.code){case"ENOENT":n(e?hF(t,!1):null);break;default:n(null);break}else n(o)})})}async function*pF(t,e,n,r,i,o){var s;let a=await HH(e+t,o);for(let l of a){let u=l.name,c=t+"/"+u,f=c.slice(1),h=e+"/"+f,p=l;(r||n)&&(p=(s=await hF(h,n))!==null&&s!==void 0?s:p),p.isDirectory()?i(f)||(yield{relative:f,absolute:h,stat:p},yield*pF(c,e,n,r,i,!1)):yield{relative:f,absolute:h,stat:p}}}async function*GH(t,e,n,r){yield*pF("",t,e,n,r,!0)}function VH(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var lf=class extends WH{constructor(e,n,r){if(super(),typeof n=="function"&&(r=n,n=void 0),this.options=VH(n||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(o=>new af.Minimatch(o,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(o=>new af.Minimatch(o,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(o=>new af.Minimatch(o,{dot:!0}))}if(this.iterator=GH($H(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,r){let i=r,o=[];this.on("match",s=>o.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>i(s)),this.on("end",()=>i(null,o))}setTimeout(()=>this._next())}_shouldSkipDirectory(e){return this.skipMatchers.some(n=>n.match(e))}_fileMatches(e,n){let r=e+(n?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(r)))&&!this.ignoreMatchers.some(i=>i.match(r))&&(!this.options.nodir||!n)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let n=e.value.stat.isDirectory();if(this._fileMatches(e.value.relative,n)){let r=e.value.relative,i=e.value.absolute;this.options.mark&&n&&(r+="/",i+="/"),this.options.stat?this.emit("match",{relative:r,absolute:i,stat:e.value.stat}):this.emit("match",{relative:r,absolute:i})}this._next()}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}},li=(t,e,n)=>new lf(t,e,n);li.ReaddirGlob=lf;var uf=class t{constructor(e,n,r,i){this._uri=e,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let n=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(n,r)}return this._content}update(e,n){for(let r of e)if(t.isIncremental(r)){let i=gF(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),l=Math.max(i.end.line,0),u=this._lineOffsets,c=dF(r.text,!1,o);if(l-a===c.length)for(let h=0,p=c.length;h<p;h++)u[h+a+1]=c[h];else c.length<1e4?u.splice(a+1,l-a,...c):this._lineOffsets=u=u.slice(0,a+1).concat(c,u.slice(l+1));let f=r.text.length-(s-o);if(f!==0)for(let h=a+1+c.length,p=u.length;h<p;h++)u[h]=u[h]+f}else if(t.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=dF(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:e};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>e?i=s:r=s+1}let o=r-1;return e=this.ensureBeforeEOL(e,n[o]),{line:o,character:e-n[o]}}offsetAt(e){let n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;let r=n[e.line];if(e.character<=0)return r;let i=e.line+1<n.length?n[e.line+1]:this._content.length,o=Math.min(r+e.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(e,n){for(;e>n&&mF(this._content.charCodeAt(e-1));)e--;return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(e){let n=e;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},In;(function(t){function e(i,o,s,a){return new uf(i,o,s,a)}t.create=e;function n(i,o,s){if(i instanceof uf)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function r(i,o){let s=i.getText(),a=Ay(o.map(YH),(c,f)=>{let h=c.range.start.line-f.range.start.line;return h===0?c.range.start.character-f.range.start.character:h}),l=0,u=[];for(let c of a){let f=i.offsetAt(c.range.start);if(f<l)throw new Error("Overlapping edit");f>l&&u.push(s.substring(l,f)),c.newText.length&&u.push(c.newText),l=i.offsetAt(c.range.end)}return u.push(s.substr(l)),u.join("")}t.applyEdits=r})(In||(In={}));function Ay(t,e){if(t.length<=1)return t;let n=t.length/2|0,r=t.slice(0,n),i=t.slice(n);Ay(r,e),Ay(i,e);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)e(r[o],i[s])<=0?t[a++]=r[o++]:t[a++]=i[s++];for(;o<r.length;)t[a++]=r[o++];for(;s<i.length;)t[a++]=i[s++];return t}function dF(t,e,n=0){let r=e?[n]:[];for(let i=0;i<t.length;i++){let o=t.charCodeAt(i);mF(o)&&(o===13&&i+1<t.length&&t.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function mF(t){return t===13||t===10}function gF(t){let e=t.start,n=t.end;return e.line>n.line||e.line===n.line&&e.character>n.character?{start:n,end:e}:t}function YH(t){let e=gF(t.range);return e!==t.range?{newText:t.newText,range:e}:t}async function pr(){try{return JSON.parse(await pn.readFile("info.json","utf8"))}catch(t){console.log(`Failed to read info.json: ${t}`),process.exit(1)}}async function dn(t,e,n,r){return new Promise((i,o)=>{let s=e.package?.scripts?.[t];if(s){let a=_F(`${s} ${(r??[]).join(" ")}`,{shell:!0,windowsHide:!0,stdio:"inherit",env:Object.assign({},process.env,{FACTORIO_MODNAME:e.name,FACTORIO_MODVERSION:e.version,WSLENV:(process.env.WSLENV?process.env.WSLENV+":":"")+"FACTORIO_MODNAME/u:FACTORIO_MODVERSION/u:FACTORIO_MODPACKAGE/p"},n)});a.on("error",o),a.on("close",(l,u)=>{l!==null?i(l):o(new Error(u?.toString()))})}else o(new Error(`No script '${t}'`))})}async function dr(t,e){return new Promise((n,r)=>{let i=_F(`git ${t}`,{shell:!0,windowsHide:!0,stdio:e!==void 0?["pipe","inherit","inherit"]:"inherit"});e!==void 0&&i.stdin&&(i.stdin.write(e),i.stdin.end()),i.on("error",r),i.on("close",(o,s)=>{o===0?n():r(o!==null?new Error(`returned with code ${o}`):new Error(s?.toString()))})})}bl.factorioDate="dd. mm. yyyy";async function cf(t){let e=Bt.joinPath(Ye.file(process.cwd()),"changelog.txt"),n;try{n=await pn.readFile("changelog.txt","utf8")}catch{}if(!n)console.log("No changelog.txt");else{let r=Xh(new Date,t.package?.datestamp_format??"isoDate"),i=In.create(e.toString(),"factorio-changelog",1,n),o=Ql(i),s=B_(o,t.version,r);if(s){let a=In.applyEdits(i,[s]);await pn.writeFile("changelog.txt",a),console.log(`Changelog section ${t.version} stamped ${r}`)}else console.log(`No Changelog section for ${t.version}`)}if(t.package?.scripts?.datestamp){let r=await dn("datestamp",t);r!==0&&process.exit(r)}return!!n}async function ff(t){if(t.package?.scripts?.compile){let n=await dn("compile",t);n!==0&&process.exit(n)}if(t.package?.scripts?.prepackage){let n=await dn("prepackage",t);n!==0&&process.exit(n)}let e=(0,DF.default)("zip",{zlib:{level:9}});if(e.glob("**",{cwd:process.cwd(),nodir:!0,ignore:[`**/${t.name}_*.zip`].concat(t.package?.ignore||[])},{prefix:`${t.name}_${t.version}`}),t.package?.extra)for(let n of t.package.extra)e.glob(n.glob??"**",{cwd:n.root,nodir:!0,ignore:n.ignore},{prefix:`${t.name}_${t.version}`});return e}var Ao;async function KH(){if(Ao)return Ao;let t=process.env.FACTORIO_UPLOAD_API_KEY;if(t)return Ao=t.trim(),Ao;let e=await Ga({message:"Mod Portal API Key:"});if(e)return Ao=e.trim(),Ao;throw new Error("No API Key")}async function Ea(t,e){let n=await KH(),r=await fetch(e,{method:"POST",body:t,headers:new Headers({Authorization:`Bearer ${n}`})}),i;if(!r.ok){let o;try{i=await r.text(),o=JSON.parse(i).message}catch{o=`Unexpected non-json error response:
|
|
106
|
+
`}return e&&e.eol||`
|
|
107
|
+
`}function ss(e,t){return`\r
|
|
108
|
+
`.indexOf(e.charAt(t))!==-1}var Ku;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ku||(Ku={}));function xp(e,t=[],n=Ku.DEFAULT){let r={type:"array",offset:-1,length:-1,children:[],parent:void 0};function i(u){r.type==="property"&&(r.length=u-r.offset,r=r.parent)}function o(u){return r.children.push(u),u}yw(e,{onObjectBegin:u=>{r=o({type:"object",offset:u,length:-1,parent:r,children:[]})},onObjectProperty:(u,l,c)=>{r=o({type:"property",offset:l,length:-1,parent:r,children:[]}),r.children.push({type:"string",value:u,offset:l,length:c,parent:r})},onObjectEnd:(u,l)=>{i(u+l),r.length=u+l-r.offset,r=r.parent,i(u+l)},onArrayBegin:(u,l)=>{r=o({type:"array",offset:u,length:-1,parent:r,children:[]})},onArrayEnd:(u,l)=>{r.length=u+l-r.offset,r=r.parent,i(u+l)},onLiteralValue:(u,l,c)=>{o({type:oP(u),offset:l,length:c,parent:r,value:u}),i(l+c)},onSeparator:(u,l,c)=>{r.type==="property"&&(u===":"?r.colonOffset=l:u===","&&i(l))},onError:(u,l,c)=>{t.push({error:u,offset:l,length:c})}},n);let a=r.children[0];return a&&delete a.parent,a}function Yu(e,t){if(!e)return;let n=e;for(let r of t)if(typeof r=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;let i=!1;for(let o of n.children)if(Array.isArray(o.children)&&o.children[0].value===r&&o.children.length===2){n=o.children[1],i=!0;break}if(!i)return}else{let i=r;if(n.type!=="array"||i<0||!Array.isArray(n.children)||i>=n.children.length)return;n=n.children[i]}return n}function yw(e,t,n=Ku.DEFAULT){let r=os(e,!1),i=[],o=0;function s(R){return R?()=>o===0&&R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(R){return R?L=>o===0&&R(L,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(R){return R?L=>o===0&&R(L,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function l(R){return R?()=>{o>0?o++:R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice())===!1&&(o=1)}:()=>!0}function c(R){return R?()=>{o>0&&o--,o===0&&R(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let f=l(t.onObjectBegin),h=u(t.onObjectProperty),p=c(t.onObjectEnd),b=l(t.onArrayBegin),D=c(t.onArrayEnd),F=u(t.onLiteralValue),g=a(t.onSeparator),m=s(t.onComment),d=a(t.onError),y=n&&n.disallowComments,k=n&&n.allowTrailingComma;function E(){for(;;){let R=r.scan();switch(r.getTokenError()){case 4:v(14);break;case 5:v(15);break;case 3:v(13);break;case 1:y||v(11);break;case 2:v(12);break;case 6:v(16);break}switch(R){case 12:case 13:y?v(10):m();break;case 16:v(1);break;case 15:case 14:break;default:return R}}}function v(R,L=[],W=[]){if(d(R),L.length+W.length>0){let U=r.getToken();for(;U!==17;){if(L.indexOf(U)!==-1){E();break}else if(W.indexOf(U)!==-1)break;U=E()}}}function q(R){let L=r.getTokenValue();return R?F(L):(h(L),i.push(L)),E(),!0}function T(){switch(r.getToken()){case 11:let R=r.getTokenValue(),L=Number(R);isNaN(L)&&(v(2),L=0),F(L);break;case 7:F(null);break;case 8:F(!0);break;case 9:F(!1);break;default:return!1}return E(),!0}function A(){return r.getToken()!==10?(v(3,[],[2,5]),!1):(q(!1),r.getToken()===6?(g(":"),E(),O()||v(4,[],[2,5])):v(5,[],[2,5]),i.pop(),!0)}function I(){f(),E();let R=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(R||v(4,[],[]),g(","),E(),r.getToken()===2&&k)break}else R&&v(6,[],[]);A()||v(4,[],[2,5]),R=!0}return p(),r.getToken()!==2?v(7,[2],[]):E(),!0}function M(){b(),E();let R=!0,L=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(L||v(4,[],[]),g(","),E(),r.getToken()===4&&k)break}else L&&v(6,[],[]);R?(i.push(0),R=!1):i[i.length-1]++,O()||v(4,[],[4,5]),L=!0}return D(),R||i.pop(),r.getToken()!==4?v(8,[4],[]):E(),!0}function O(){switch(r.getToken()){case 3:return M();case 1:return I();case 10:return q(!0);default:return T()}}return E(),r.getToken()===17?n.allowEmptyContent?!0:(v(4,[],[]),!1):O()?(r.getToken()!==17&&v(9,[],[]),!0):(v(4,[],[]),!1)}function oP(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function bw(e,t,n,r){let i=t.slice(),s=xp(e,[]),a,u;for(;i.length>0&&(u=i.pop(),a=Yu(s,i),a===void 0&&n!==void 0);)typeof u=="string"?n={[u]:n}:n=[n];if(a)if(a.type==="object"&&typeof u=="string"&&Array.isArray(a.children)){let l=Yu(a,[u]);if(l!==void 0)if(n===void 0){if(!l.parent)throw new Error("Malformed AST");let c=a.children.indexOf(l.parent),f,h=l.parent.offset+l.parent.length;if(c>0){let p=a.children[c-1];f=p.offset+p.length}else f=a.offset+1,a.children.length>1&&(h=a.children[1].offset);return Pr(e,{offset:f,length:h-f,content:""},r)}else return Pr(e,{offset:l.offset,length:l.length,content:JSON.stringify(n)},r);else{if(n===void 0)return[];let c=`${JSON.stringify(u)}: ${JSON.stringify(n)}`,f=r.getInsertionIndex?r.getInsertionIndex(a.children.map(p=>p.children[0].value)):a.children.length,h;if(f>0){let p=a.children[f-1];h={offset:p.offset+p.length,length:0,content:","+c}}else a.children.length===0?h={offset:a.offset+1,length:0,content:c}:h={offset:a.offset+1,length:0,content:c+","};return Pr(e,h,r)}}else if(a.type==="array"&&typeof u=="number"&&Array.isArray(a.children)){let l=u;if(l===-1){let c=`${JSON.stringify(n)}`,f;if(a.children.length===0)f={offset:a.offset+1,length:0,content:c};else{let h=a.children[a.children.length-1];f={offset:h.offset+h.length,length:0,content:","+c}}return Pr(e,f,r)}else if(n===void 0&&a.children.length>=0){let c=u,f=a.children[c],h;if(a.children.length===1)h={offset:a.offset+1,length:a.length-2,content:""};else if(a.children.length-1===c){let p=a.children[c-1],b=p.offset+p.length,D=a.offset+a.length;h={offset:b,length:D-2-b,content:""}}else h={offset:f.offset,length:a.children[c+1].offset-f.offset,content:""};return Pr(e,h,r)}else if(n!==void 0){let c,f=`${JSON.stringify(n)}`;if(!r.isArrayInsertion&&a.children.length>u){let h=a.children[u];c={offset:h.offset,length:h.length,content:f}}else if(a.children.length===0||u===0)c={offset:a.offset+1,length:0,content:a.children.length===0?f:f+","};else{let h=u>a.children.length?a.children.length:u,p=a.children[h-1];c={offset:p.offset+p.length,length:0,content:","+f}}return Pr(e,c,r)}else throw new Error(`Can not ${n===void 0?"remove":r.isArrayInsertion?"insert":"modify"} Array index ${l} as length is not sufficient`)}else throw new Error(`Can not add ${typeof u!="number"?"index":"property"} to parent of type ${a.type}`);else{if(n===void 0)throw new Error("Can not delete in empty document");return Pr(e,{offset:s?s.offset:0,length:s?s.length:0,content:JSON.stringify(n)},r)}}function Pr(e,t,n){if(!n.formattingOptions)return[t];let r=Qu(e,t),i=t.offset,o=t.offset+t.content.length;if(t.length===0||t.content.length===0){for(;i>0&&!ss(r,i-1);)i--;for(;o<r.length&&!ss(r,o);)o++}let s=_p(r,{offset:i,length:o-i},{...n.formattingOptions,keepLines:!1});for(let u=s.length-1;u>=0;u--){let l=s[u];r=Qu(r,l),i=Math.min(i,l.offset),o=Math.max(o,l.offset+l.length),o+=l.content.length-l.length}let a=e.length-(r.length-o)-i;return[{offset:i,length:a,content:r.substring(i,o)}]}function Qu(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}var Dw;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Dw||(Dw={}));var ww;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(ww||(ww={}));var _w;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(_w||(_w={}));function xw(e,t,n,r){return bw(e,t,n,r)}function vw(e,t){let n=t.slice(0).sort((i,o)=>{let s=i.offset-o.offset;return s===0?i.length-o.length:s}),r=e.length;for(let i=n.length-1;i>=0;i--){let o=n[i];if(o.offset+o.length<=r)e=Qu(e,o);else throw new Error("Overlapping edit");r=o.offset}return e}var JA=ft(zA(),1),XA=ft(O2(),1);var nf=ft(yn(),1);import*as vo from"fs";import{EventEmitter as pH}from"events";import{resolve as dH}from"path";function mH(e,t){return new Promise((n,r)=>{vo.readdir(e,{withFileTypes:!0},(i,o)=>{if(i)switch(i.code){case"ENOTDIR":t?r(i):n([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":n([]);break;default:r(i);break}else n(o)})})}function WA(e,t){return new Promise(n=>{(t?vo.stat:vo.lstat)(e,(i,o)=>{i?i.code==="ENOENT"?n(t?WA(e,!1):null):n(null):n(o)})})}async function*$A(e,t,n,r,i,o){var s;let a=await mH(t+e,o);for(let u of a){let l=u.name,c=e+"/"+l,f=c.slice(1),h=t+"/"+f,p=u;(r||n)&&(p=(s=await WA(h,n))!==null&&s!==void 0?s:p),p.isDirectory()?i(f)||(yield{relative:f,absolute:h,stat:p},yield*$A(c,t,n,r,i,!1)):yield{relative:f,absolute:h,stat:p}}}async function*gH(e,t,n,r){yield*$A("",e,t,n,r,!0)}function yH(e){return{pattern:e.pattern,dot:!!e.dot,noglobstar:!!e.noglobstar,matchBase:!!e.matchBase,nocase:!!e.nocase,ignore:e.ignore,skip:e.skip,follow:!!e.follow,stat:!!e.stat,nodir:!!e.nodir,mark:!!e.mark,silent:!!e.silent,absolute:!!e.absolute}}var rf=class extends pH{constructor(t,n,r){if(super(),typeof n=="function"&&(r=n,n=void 0),this.options=yH(n||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(o=>new nf.Minimatch(o,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(o=>new nf.Minimatch(o,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(o=>new nf.Minimatch(o,{dot:!0}))}if(this.iterator=gH(dH(t||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,r){let i=r,o=[];this.on("match",s=>o.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>i(s)),this.on("end",()=>i(null,o))}setTimeout(()=>this._next())}_shouldSkipDirectory(t){return this.skipMatchers.some(n=>n.match(t))}_fileMatches(t,n){let r=t+(n?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(r)))&&!this.ignoreMatchers.some(i=>i.match(r))&&(!this.options.nodir||!n)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(t=>{if(t.done)this.emit("end");else{let n=t.value.stat.isDirectory();if(this._fileMatches(t.value.relative,n)){let r=t.value.relative,i=t.value.absolute;this.options.mark&&n&&(r+="/",i+="/"),this.options.stat?this.emit("match",{relative:r,absolute:i,stat:t.value.stat}):this.emit("match",{relative:r,absolute:i})}this._next()}}).catch(t=>{this.abort(),this.emit("error",t),!t.code&&!this.options.silent&&console.error(t)}):this.inactive=!0}abort(){this.aborted=!0}pause(){this.paused=!0}resume(){this.paused=!1,this.inactive&&(this.inactive=!1,this._next())}},ui=(e,t,n)=>new rf(e,t,n);ui.ReaddirGlob=rf;var of=class e{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(e.isIncremental(r)){let i=VA(r.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+r.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),u=Math.max(i.end.line,0),l=this._lineOffsets,c=HA(r.text,!1,o);if(u-a===c.length)for(let h=0,p=c.length;h<p;h++)l[h+a+1]=c[h];else c.length<1e4?l.splice(a+1,u-a,...c):this._lineOffsets=l=l.slice(0,a+1).concat(c,l.slice(u+1));let f=r.text.length-(s-o);if(f!==0)for(let h=a+1+c.length,p=l.length;h<p;h++)l[h]=l[h]+f}else if(e.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=HA(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}let o=r-1;return t=this.ensureBeforeEOL(t,n[o]),{line:o,character:t-n[o]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line];if(t.character<=0)return r;let i=t.line+1<n.length?n[t.line+1]:this._content.length,o=Math.min(r+t.character,i);return this.ensureBeforeEOL(o,r)}ensureBeforeEOL(t,n){for(;t>n&&GA(this._content.charCodeAt(t-1));)t--;return t}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},Rn;(function(e){function t(i,o,s,a){return new of(i,o,s,a)}e.create=t;function n(i,o,s){if(i instanceof of)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,o){let s=i.getText(),a=xy(o.map(bH),(c,f)=>{let h=c.range.start.line-f.range.start.line;return h===0?c.range.start.character-f.range.start.character:h}),u=0,l=[];for(let c of a){let f=i.offsetAt(c.range.start);if(f<u)throw new Error("Overlapping edit");f>u&&l.push(s.substring(u,f)),c.newText.length&&l.push(c.newText),u=i.offsetAt(c.range.end)}return l.push(s.substr(u)),l.join("")}e.applyEdits=r})(Rn||(Rn={}));function xy(e,t){if(e.length<=1)return e;let n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);xy(r,t),xy(i,t);let o=0,s=0,a=0;for(;o<r.length&&s<i.length;)t(r[o],i[s])<=0?e[a++]=r[o++]:e[a++]=i[s++];for(;o<r.length;)e[a++]=r[o++];for(;s<i.length;)e[a++]=i[s++];return e}function HA(e,t,n=0){let r=t?[n]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);GA(o)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function GA(e){return e===13||e===10}function VA(e){let t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function bH(e){let t=VA(e.range);return t!==e.range?{newText:e.newText,range:t}:e}async function hr(){try{return JSON.parse(await fn.readFile("info.json","utf8"))}catch(e){console.log(`Failed to read info.json: ${e}`),process.exit(1)}}async function hn(e,t,n,r){return new Promise((i,o)=>{let s=t.package?.scripts?.[e];if(s){let a=ZA(`${s} ${(r??[]).join(" ")}`,{shell:!0,windowsHide:!0,stdio:"inherit",env:Object.assign({},process.env,{FACTORIO_MODNAME:t.name,FACTORIO_MODVERSION:t.version,WSLENV:(process.env.WSLENV?process.env.WSLENV+":":"")+"FACTORIO_MODNAME/u:FACTORIO_MODVERSION/u:FACTORIO_MODPACKAGE/p"},n)});a.on("error",o),a.on("close",(u,l)=>{u!==null?i(u):o(new Error(l?.toString()))})}else o(new Error(`No script '${e}'`))})}async function pr(e,t){return new Promise((n,r)=>{let i=ZA(`git ${e}`,{shell:!0,windowsHide:!0,stdio:t!==void 0?["pipe","inherit","inherit"]:"inherit"});t!==void 0&&i.stdin&&(i.stdin.write(t),i.stdin.end()),i.on("error",r),i.on("close",(o,s)=>{o===0?n():r(o!==null?new Error(`returned with code ${o}`):new Error(s?.toString()))})})}du.factorioDate="dd. mm. yyyy";async function sf(e){let t=qt.joinPath(Ge.file(process.cwd()),"changelog.txt"),n;try{n=await fn.readFile("changelog.txt","utf8")}catch{}if(!n)console.log("No changelog.txt");else{let r=Gh(new Date,e.package?.datestamp_format??"isoDate"),i=Rn.create(t.toString(),"factorio-changelog",1,n),o=Gu(i),s=dw(o,e.version,r);if(s){let a=Rn.applyEdits(i,[s]);await fn.writeFile("changelog.txt",a),console.log(`Changelog section ${e.version} stamped ${r}`)}else console.log(`No Changelog section for ${e.version}`)}if(e.package?.scripts?.datestamp){let r=await hn("datestamp",e);r!==0&&process.exit(r)}return!!n}async function af(e){if(e.package?.scripts?.compile){let n=await hn("compile",e);n!==0&&process.exit(n)}if(e.package?.scripts?.prepackage){let n=await hn("prepackage",e);n!==0&&process.exit(n)}let t=(0,JA.default)("zip",{zlib:{level:9}});if(t.glob("**",{cwd:process.cwd(),nodir:!0,ignore:[`**/${e.name}_*.zip`].concat(e.package?.ignore||[])},{prefix:`${e.name}_${e.version}`}),e.package?.extra)for(let n of e.package.extra)t.glob(n.glob??"**",{cwd:n.root,nodir:!0,ignore:n.ignore},{prefix:`${e.name}_${e.version}`});return t}var Eo;async function DH(){if(Eo)return Eo;let e=process.env.FACTORIO_UPLOAD_API_KEY;if(e)return Eo=e.trim(),Eo;let t=await za({message:"Mod Portal API Key:"});if(t)return Eo=t.trim(),Eo;throw new Error("No API Key")}async function xa(e,t){let n=await DH(),r=await fetch(t,{method:"POST",body:e,headers:new Headers({Authorization:`Bearer ${n}`})}),i;if(!r.ok){let o;try{i=await r.text(),o=JSON.parse(i).message}catch{o=`Unexpected non-json error response:
|
|
108
109
|
${i}
|
|
109
110
|
`}throw new Error(o)}try{return i=await r.text(),JSON.parse(i)}catch{throw new Error(`Unexpected non-json success response:
|
|
110
111
|
${i}
|
|
111
|
-
`)}}async function
|
|
112
|
+
`)}}async function e2(e,t){let n=new FormData;return n.append("mod",e),(await xa(n,t)).upload_url}async function uf(e,t){console.log("Uploading to mod portal...");let n=await e2(e,"https://mods.factorio.com/api/v2/mods/releases/init_upload"),r=new FormData;r.append("file",new Blob([Uint8Array.from(t)],{type:"application/x-zip-compressed"}),`${e}.zip`),await xa(r,n),console.log(`Published ${e}`)}async function wH(e,t,n){let r=await e2(e,"https://mods.factorio.com/api/v2/mods/images/add"),i=new FormData;return i.append("image",new Blob([Uint8Array.from(t)],{type:Kb.getType(n)??void 0}),n),await xa(i,r)}async function _H(e,t){let n=new FormData;return n.append("mod",e),n.append("images",t.join(",")),(await xa(n,"https://mods.factorio.com/api/v2/mods/images/edit")).images}async function xH(e,t){let n=new FormData;n.append("mod",e),t.homepage!==void 0&&n.append("homepage",t.homepage),t.title!==void 0&&n.append("title",t.title),t.summary!==void 0&&n.append("summary",t.summary),t.description!==void 0&&n.append("description",t.description),t.faq!==void 0&&n.append("faq",t.faq),await xa(n,"https://mods.factorio.com/api/v2/mods/edit_details").then(()=>{console.log("Details updated")}).catch(r=>{console.log(`Details update failed: ${r}`)})}async function t2(e,t,n,r){let i=await fn.readFile(e).catch(()=>{});if(!i)return;let o=YA.createHash("sha1").update(i).digest("hex");r.add(o);let s=n.find(u=>u.id===o);if(s)return s;let a=await wH(t,i,QA.basename(e));return n.push(a),a}async function KA(e,t,n,r,i){let o=new Date().toISOString(),s=await fn.readFile(e,"utf8").catch(()=>{});if(!s)return;let a=new RegExp(i?.url_match??/^((http(s?)|data):|#)/),u=i?.base_url;u&&!u.endsWith("/")&&(u+="/");let l=await pu().use(function(){return async function(c,f){if(i?.strip_first_header??!0){let p=c.children[0];p.type==="heading"&&p.depth===1&&c.children.splice(0,1)}let h=new Map;Et(c,"image",p=>{let b=h.get(p.url);b?b.push(p):h.set(p.url,[p])});for(let[p,b]of h)if(!p.match(a))switch(i?.images){case"gallery":default:let D=await t2(QA.resolve(f.cwd,p),t,n,r);if(!D)continue;b.forEach(g=>{g.url=D.url});break;case"url":if(!u)continue;let F=u+p;b.forEach(g=>{g.url=F});break}u&&Et(c,"link",p=>{if(!p.url.match(a)){if(p.url==="$process_date"){p.url=o;return}p.url=u+p.url}})}}).process(s);return String(l)}async function lf(e,t){let n={title:e.title,homepage:e.homepage,summary:e.description},{images:r}=await qy(e.name,!0),i=new Set,o=e.package?.gallery;if(o)for(let u of o){let l=await new Promise((c,f)=>{let h=[],p=ui(process.cwd(),{pattern:u,nodir:!0});p.on("match",b=>{h.push(b.absolute)}),p.on("error",b=>f(b)),p.on("end",()=>c(h))});await Promise.all(l.sort().map(async c=>t2(c,e.name,r,i)))}let s=await KA(t?.readme??e.package?.readme??"readme.md",e.name,r,i,e?.package?.markdown);s&&(n.description=s);let a=await KA(t?.faq??e.package?.faq??"faq.md",e.name,r,i,e?.package?.markdown);if(a&&(n.faq=a),e.package?.gallery){if(e.package.prune_gallery===!1)for(let u of r)i.add(u.id);console.log("Sorting gallery ..."),await _H(e.name,Array.from(i))}console.log("Updating details ..."),await xH(e.name,n)}async function cf(e,t){let n=XA.default.inc(e.version,"patch",{loose:!0}),r=xw(t,["version"],n,{});if(await fn.writeFile("info.json",vw(t,r)),e.version=n,await fn.readFile("changelog.txt","utf8").catch(()=>{}).then(async i=>{if(i){let s=i.indexOf(`\r
|
|
112
113
|
`)!==-1?`\r
|
|
113
114
|
`:`
|
|
114
|
-
`;await pn.writeFile("changelog.txt",`---------------------------------------------------------------------------------------------------${s}Version: ${n}${s}Date: ????${s} Changes:${s}`+i)}}),t.package?.scripts?.version){let i=await dn("version",t);i!==0&&process.exit(i)}return t}de.command("run <script> [args...]").description("Run a script from info.json#/package/scripts").action(async(t,e)=>{process.exit(await dn(t,await pr(),void 0,e))});de.command("datestamp").description("Datestamp the current changelog section").action(async()=>{let t=await pr();await cf(t)});import*as EF from"fs/promises";de.command("version").description("Increment the mod version").action(async()=>{let t=await EF.readFile("info.json","utf8"),e=JSON.parse(t);await df(e,t)});import{createWriteStream as XH}from"fs";de.command("package").description("Build a zip package").option("--outdir <outdir>","","").action(async t=>{let e=await pr(),n=Bt.resolvePath(Ye.file(process.cwd()),t.outdir,`${e.name}_${e.version}.zip`),r=XH(n.fsPath),i=await ff(e);i.pipe(r),await i.finalize(),console.log(`Built ${e.name}_${e.version}.zip ${i.pointer()} bytes`)});import eG from"path";import*as kF from"fs/promises";de.command("upload <zipname> [name]").description("Upload a zip package to the mod portal").action(async(t,e)=>{if(!e){let r=eG.basename(t,".zip").match(/^(.*?)(_(\d+\.){2}\d+)?$/);r&&(e=r[1])}if(!e){console.log("Unable to determine `name`");return}await hf(e,await kF.readFile(t))});de.command("details").description("Update mod details").option("--readme <readme.md>").option("--faq <faq.md>").action(async t=>{let e=await pr();return pf(e,t)});import*as CF from"os";import*as Co from"fs/promises";import*as FF from"crypto";import rG from"path";import{exec as mf}from"child_process";import*as TF from"os";import*as ui from"fs/promises";import tG from"path";var Cy={async readFile(t){return ui.readFile(t.fsPath)},async writeFile(t,e){return ui.writeFile(t.fsPath,e)},async stat(t){let e=await ui.stat(t.fsPath);return{size:e.size,type:(e.isFile()?1:0)|(e.isDirectory()?2:0)|(e.isSymbolicLink()?64:0),ctime:e.ctime.valueOf(),mtime:e.mtime.valueOf()}}};async function nG(t,e){let n=process.env.FMTK_CONFIG??tG.join(TF.homedir(),".fmtk","config.json");try{let r=JSON.parse(await ui.readFile(n,"utf8"));if(typeof r!="object"||Array.isArray(r))return;let i={};for(let o in r)o.startsWith(`${t}.`)&&(i[o.substring(t.length+1)]=r[o]);return e||console.log(`Got config section ${t} from ${n}`),i}catch{}}async function AF(t,e,n){return Object.assign({},...await Promise.all([e,nG(t,n)]))}de.command("publish").description("Package and publish a mod to the mod portal").action(async()=>{let t=await Co.readFile("info.json","utf8"),e=JSON.parse(t);console.log(`Publishing: ${process.cwd()} ${e.version}`);let n=await AF("package",{preparingCommitMessage:"preparing release of version $VERSION",movedToCommitMessage:"moved to version $VERSION",autoCommitAuthor:"compilatron <compilatron@justarandomgeek.com>",tagName:"$VERSION",tagMessage:void 0}),r=await new Promise(u=>{mf("git status --porcelain",(c,f,h)=>{c&&c.code!==0&&u(void 0),f&&u("HasChanges"),u("OK")})}),i;if(r){if(r==="HasChanges"){console.log("Cannot Publish with uncommitted changes");return}i=await new Promise((c,f)=>{mf("git branch --show-current",(h,p)=>{h&&h.code!==0&&f(h),c(p.trim())})});let u=e.package?.git_publish_branch;switch(u){case null:break;case void 0:u=await new Promise((c,f)=>{mf("git config init.defaultBranch",(h,p)=>{h&&h.code!==0&&f(h),c(p.trim())})});default:u!==i&&(console.log(`Cannot Publish on branch other than '${u}', currently on '${i}'`),process.exit(1));break}}else console.log("No git repo found, skipping git subtasks...");if(e.package?.scripts?.prepublish){let u=await dn("prepublish",e);u!==0&&process.exit(u)}let o=await cf(e),s;if(r&&(o&&await dr("add changelog.txt"),await dr(`commit --author "${n.autoCommitAuthor}" --allow-empty -F -`,n.preparingCommitMessage.replace(/\$VERSION/g,e.version).replace(/\$MODNAME/g,e.name)),!e.package?.no_git_tag)){s=n.tagName.replace(/\$VERSION/g,e.version).replace(/\$MODNAME/g,e.name);let u=n.tagMessage?.replace(/\$VERSION/g,e.version).replace(/\$MODNAME/g,e.name);await dr(`tag -a ${s} -F -`,u??"")}let a=await new Promise((u,c)=>{ff(e).then(f=>{let h=[];f.on("data",p=>h.push(Buffer.from(p))),f.on("error",p=>c(p)),f.on("end",()=>u(Buffer.concat(h))),f.finalize()})});if(e.package?.scripts?.publish){let u=await dn("publish",e);u!==0&&process.exit(u)}if(e.package?.no_portal_upload||(await hf(e.name,a),e.package?.sync_portal_details&&await pf(e)),e.package?.scripts?.postpublish){let u=rG.join(CF.tmpdir(),`${FF.randomBytes(16).toString("base64url")}.zip`);await Co.writeFile(u,a);let c=await dn("postpublish",e,{FACTORIO_MODPACKAGE:u});await Co.unlink(u),c!==0&&process.exit(c)}let l=await df(e,t);if(r&&(await dr("add info.json"),o&&await dr("add changelog.txt"),await dr(`commit --author "${n.autoCommitAuthor}" -F -`,n.movedToCommitMessage.replace(/\$VERSION/g,l.version).replace(/\$MODNAME/g,l.name)),!e.package?.no_git_push)){let u=await new Promise(c=>{mf(`git config branch.${i}.remote`,(f,h)=>{f&&f.code!==0&&c(void 0),c(h.trim())})});u?await dr(`push ${u} ${i} ${s??""}`):console.log(`no remote set as upstream on ${i}`)}});import*as ka from"fs/promises";import IF from"path";import{createWriteStream as iG}from"fs";import RF from"path";var gf=class{docs;concepts;simple_structs;prototypes;type_prefix="data.";constructor(e){if(this.docs=JSON.parse(e),this.docs.application!=="factorio")throw new Error(`Unknown application: ${this.docs.application}`);if(this.docs.api_version!==6)throw new Error(`Unsupported Prototype Docs JSON Version ${this.docs.api_version}`);if(this.docs.stage!=="prototype")throw new Error(`Wrong stage: ${this.docs.stage}`);this.concepts=new Map(this.docs.types.map(n=>[n.name,n])),this.simple_structs=new Set;for(let[n,r]of this.concepts)typeof r.type=="object"&&r.type.complex_type==="struct"&&this.simple_structs.add(n);this.prototypes=new Map(this.docs.prototypes.map(n=>[n.name,n]))}get api_version(){return this.docs.api_version}get stage(){return this.docs.stage}get application(){return this.docs.application}get application_version(){return this.docs.application_version}resolve_link(e,n){if(n=n?`#${n}`:"",["prototypes","types"].includes(e))return`/${e}.html${n}`;if(["libraries","storage","migrations","data-lifecycle","prototype-tree","noise-expressions","instrument","item-weight"].includes(e))return`/auxiliary/${e}.html${n}`;if(this.concepts.has(e))return`/types/${e}.html${n}`;if(this.prototypes.has(e))return`/prototypes/${e}.html${n}`;console.warn(`Invalid Link: prototype:${e}${n}`)}async generate_LuaLS_docs(e){return[...await this.generate_LuaLS_concepts(e),...await this.generate_LuaLS_prototypes(e),this.generate_LuaLS_data(e)]}async generate_LuaLS_concepts(e){let n=[];for(let[r,i]of this.concepts){let o=new Aa(`prototype-api/concepts/${i.name}`,this.application_version);if(i.type==="builtin")continue;let s=this.simple_structs.has(i.name),a=s?"":".struct";if(i.properties){let l=new Po(this.type_prefix+i.name+a);l.exact=!0,l.description=await e(i.description,{scope:"prototype",member:i.name}),i.parent&&(l.parents=[new Le(this.type_prefix+i.parent)]);for(let u of i.properties)l.add(new Ln(u.name,this.lua_proto_type(u.type),await e(u.description,{scope:"prototype",member:i.name,part:u.name}),u.optional));o.add(l)}if(!s){let l=i.type;if(i.name==="AnyPrototype"&&typeof l=="object"&&l.complex_type==="union"){let u=["MapGenPresets","GuiStyle"];l={complex_type:"union",options:l.options.filter(f=>typeof f=="object"?!(f.complex_type==="type"&&typeof f.value=="string"&&u.includes(f.value)):!u.includes(f))}}o.add(new Gy(this.type_prefix+i.name,this.lua_proto_type(l,i),i.description))}n.push(o)}return n}generate_LuaLS_data(e){let n=new Aa("prototype-api/data",this.application_version),r=new Po("data");r.add(new Ln("raw",new Le("data.raw"))),r.add(new Ln("is_demo",new Le("boolean")));let i=new Vy("extend",[new wr("otherdata",new mi(new Le("data.AnyPrototype")))]);i.add(new Ca(void 0,[new wr("self",new Le("data")),new wr("otherdata",new mi(new Le("data.AnyPrototype")))])),i.add(new Ca(void 0,[new wr("otherdata",new mi(new Le("data.AnyModSettingPrototype")))])),i.add(new Ca(void 0,[new wr("self",new Le("data")),new wr("otherdata",new mi(new Le("data.AnyModSettingPrototype")))])),r.add(i),r.global_name="data",n.add(r);let o=new Po("data.raw");o.exact=!0,n.add(o);for(let[s,a]of this.prototypes)a.typename&&o.add(new Ln(new vf(a.typename),new Sf(new Le("string"),new Le(this.type_prefix+a.name))));return n}async generate_LuaLS_prototypes(e){let n=[];for(let[r,i]of this.prototypes){let o=new Aa(`prototype-api/prototypes/${i.name}`,this.application_version),s=new Po(this.type_prefix+i.name);s.exact=!0,s.description=await e(i.description,{scope:"prototype",member:i.name}),i.parent&&(s.parents=[new Le(this.type_prefix+i.parent)]);for(let a of i.properties)s.add(new Ln(a.name,this.lua_proto_type(a.type),await e(a.description,{scope:"prototype",member:i.name,part:a.name}),a.optional)),a.alt_name&&s.add(new Ln(a.alt_name,this.lua_proto_type(a.type),await e(a.description,{scope:"prototype",member:i.name,part:a.alt_name}),a.optional));if(i.custom_properties){let a=i.custom_properties;s.add(new Ln(this.lua_proto_type(a.key_type),this.lua_proto_type(a.value_type),await e(a.description,{scope:"prototype",member:i.name,part:"custom_properties"})))}o.add(s),n.push(o)}return n}lua_proto_type(e,n){switch(typeof e){case"string":switch(e){case"bool":return new Le("boolean");case"table":case"number":case"nil":case"boolean":case"string":case"float":case"double":case"int8":case"uint8":case"int16":case"uint16":case"int32":case"uint32":case"int64":case"uint64":return new Le(e)}return new Le(this.type_prefix+e);case"object":switch(e.complex_type){case"struct":if(!n)throw new Error("struct without parent");return this.simple_structs.has(n.name)?new Le(this.type_prefix+n.name):new Le(this.type_prefix+n.name+".struct");case"array":return new mi(this.lua_proto_type(e.value,n));case"tuple":return new $y(e.values.map(r=>this.lua_proto_type(r,n)));case"dictionary":return new Sf(this.lua_proto_type(e.key,n),this.lua_proto_type(e.value,n));case"union":return new Hy(e.options.map(r=>this.lua_proto_type(r,n)));case"literal":return new vf(e.value);case"type":return this.lua_proto_type(e.value,n);default:throw new Error("Invalid Type")}default:throw new Error("Invalid Type")}}};async function OF(t,e,n){let r=new Fa(t),i=new gf(e),o=c=>{let f=c.url.match(/^(runtime|prototype):(.+?)(?:::(.+))?$/);if(f)switch(f[1]){case"runtime":let h=r.resolve_link(f[2],f[3]);h&&(c.url="https://lua-api.factorio.com/latest"+h);break;case"prototype":let p=i.resolve_link(f[2],f[3]);p&&(c.url="https://lua-api.factorio.com/latest"+p);break}},s=yl().use(function(){return function(c,f){Qt(c,"link",o)}}),a=async(c,f)=>{let h=f?`[View Documentation](${f.scope}:${f.member}${f.part?"::"+f.part:""})`:"";return String(await s.process(`${c??""}
|
|
115
|
+
`;await fn.writeFile("changelog.txt",`---------------------------------------------------------------------------------------------------${s}Version: ${n}${s}Date: ????${s} Changes:${s}`+i)}}),e.package?.scripts?.version){let i=await hn("version",e);i!==0&&process.exit(i)}return e}fe.command("run <script> [args...]").description("Run a script from info.json#/package/scripts").action(async(e,t)=>{process.exit(await hn(e,await hr(),void 0,t))});fe.command("datestamp").description("Datestamp the current changelog section").action(async()=>{let e=await hr();await sf(e)});import*as n2 from"fs/promises";fe.command("version").description("Increment the mod version").action(async()=>{let e=await n2.readFile("info.json","utf8"),t=JSON.parse(e);await cf(t,e)});import{createWriteStream as vH}from"fs";fe.command("package").description("Build a zip package").option("--outdir <outdir>","","").action(async e=>{let t=await hr(),n=qt.resolvePath(Ge.file(process.cwd()),e.outdir,`${t.name}_${t.version}.zip`),r=vH(n.fsPath),i=await af(t);i.pipe(r),await i.finalize(),console.log(`Built ${t.name}_${t.version}.zip ${i.pointer()} bytes`)});import EH from"path";import*as r2 from"fs/promises";fe.command("upload <zipname> [name]").description("Upload a zip package to the mod portal").action(async(e,t)=>{if(!t){let r=EH.basename(e,".zip").match(/^(.*?)(_(\d+\.){2}\d+)?$/);r&&(t=r[1])}if(!t){console.log("Unable to determine `name`");return}await uf(t,await r2.readFile(e))});fe.command("details").description("Update mod details").option("--readme <readme.md>").option("--faq <faq.md>").action(async e=>{let t=await hr();return lf(t,e)});import*as s2 from"os";import*as So from"fs/promises";import*as a2 from"crypto";import kH from"path";import{exec as ff}from"child_process";import*as i2 from"os";import*as li from"fs/promises";import SH from"path";var vy={async readFile(e){return li.readFile(e.fsPath)},async writeFile(e,t){return li.writeFile(e.fsPath,t)},async stat(e){let t=await li.stat(e.fsPath);return{size:t.size,type:(t.isFile()?1:0)|(t.isDirectory()?2:0)|(t.isSymbolicLink()?64:0),ctime:t.ctime.valueOf(),mtime:t.mtime.valueOf()}}};async function FH(e,t){let n=process.env.FMTK_CONFIG??SH.join(i2.homedir(),".fmtk","config.json");try{let r=JSON.parse(await li.readFile(n,"utf8"));if(typeof r!="object"||Array.isArray(r))return;let i={};for(let o in r)o.startsWith(`${e}.`)&&(i[o.substring(e.length+1)]=r[o]);return t||console.log(`Got config section ${e} from ${n}`),i}catch{}}async function o2(e,t,n){return Object.assign({},...await Promise.all([t,FH(e,n)]))}fe.command("publish").description("Package and publish a mod to the mod portal").action(async()=>{let e=await So.readFile("info.json","utf8"),t=JSON.parse(e);console.log(`Publishing: ${process.cwd()} ${t.version}`);let n=await o2("package",{preparingCommitMessage:"preparing release of version $VERSION",movedToCommitMessage:"moved to version $VERSION",autoCommitAuthor:"compilatron <compilatron@justarandomgeek.com>",tagName:"$VERSION",tagMessage:void 0}),r=await new Promise(l=>{ff("git status --porcelain",(c,f,h)=>{c&&c.code!==0&&l(void 0),f&&l("HasChanges"),l("OK")})}),i;if(r){if(r==="HasChanges"){console.log("Cannot Publish with uncommitted changes");return}i=await new Promise((c,f)=>{ff("git branch --show-current",(h,p)=>{h&&h.code!==0&&f(h),c(p.trim())})});let l=t.package?.git_publish_branch;switch(l){case null:break;case void 0:l=await new Promise((c,f)=>{ff("git config init.defaultBranch",(h,p)=>{h&&h.code!==0&&f(h),c(p.trim())})});default:l!==i&&(console.log(`Cannot Publish on branch other than '${l}', currently on '${i}'`),process.exit(1));break}}else console.log("No git repo found, skipping git subtasks...");if(t.package?.scripts?.prepublish){let l=await hn("prepublish",t);l!==0&&process.exit(l)}let o=await sf(t),s;if(r&&(o&&await pr("add changelog.txt"),await pr(`commit --author "${n.autoCommitAuthor}" --allow-empty -F -`,n.preparingCommitMessage.replace(/\$VERSION/g,t.version).replace(/\$MODNAME/g,t.name)),!t.package?.no_git_tag)){s=n.tagName.replace(/\$VERSION/g,t.version).replace(/\$MODNAME/g,t.name);let l=n.tagMessage?.replace(/\$VERSION/g,t.version).replace(/\$MODNAME/g,t.name);await pr(`tag -a ${s} -F -`,l??"")}let a=await new Promise((l,c)=>{af(t).then(f=>{let h=[];f.on("data",p=>h.push(Buffer.from(p))),f.on("error",p=>c(p)),f.on("end",()=>l(Buffer.concat(h))),f.finalize()})});if(t.package?.scripts?.publish){let l=await hn("publish",t);l!==0&&process.exit(l)}if(t.package?.no_portal_upload||(await uf(t.name,a),t.package?.sync_portal_details&&await lf(t)),t.package?.scripts?.postpublish){let l=kH.join(s2.tmpdir(),`${a2.randomBytes(16).toString("base64url")}.zip`);await So.writeFile(l,a);let c=await hn("postpublish",t,{FACTORIO_MODPACKAGE:l});await So.unlink(l),c!==0&&process.exit(c)}let u=await cf(t,e);if(r&&(await pr("add info.json"),o&&await pr("add changelog.txt"),await pr(`commit --author "${n.autoCommitAuthor}" -F -`,n.movedToCommitMessage.replace(/\$VERSION/g,u.version).replace(/\$MODNAME/g,u.name)),!t.package?.no_git_push)){let l=await new Promise(c=>{ff(`git config branch.${i}.remote`,(f,h)=>{f&&f.code!==0&&c(void 0),c(h.trim())})});l?await pr(`push ${l} ${i} ${s??""}`):console.log(`no remote set as upstream on ${i}`)}});import*as va from"fs/promises";import c2 from"path";import{createWriteStream as TH}from"fs";import u2 from"path";var hf=class{docs;concepts;simple_structs;prototypes;type_prefix="data.";constructor(t){if(this.docs=JSON.parse(t),this.docs.application!=="factorio")throw new Error(`Unknown application: ${this.docs.application}`);if(this.docs.api_version!==6)throw new Error(`Unsupported Prototype Docs JSON Version ${this.docs.api_version}`);if(this.docs.stage!=="prototype")throw new Error(`Wrong stage: ${this.docs.stage}`);this.concepts=new Map(this.docs.types.map(n=>[n.name,n])),this.simple_structs=new Set;for(let[n,r]of this.concepts)typeof r.type=="object"&&r.type.complex_type==="struct"&&this.simple_structs.add(n);this.prototypes=new Map(this.docs.prototypes.map(n=>[n.name,n]))}get api_version(){return this.docs.api_version}get stage(){return this.docs.stage}get application(){return this.docs.application}get application_version(){return this.docs.application_version}resolve_link(t,n){if(n=n?`#${n}`:"",["prototypes","types"].includes(t))return`/${t}.html${n}`;if(["libraries","storage","migrations","data-lifecycle","prototype-tree","noise-expressions","instrument","item-weight"].includes(t))return`/auxiliary/${t}.html${n}`;if(this.concepts.has(t))return`/types/${t}.html${n}`;if(this.prototypes.has(t))return`/prototypes/${t}.html${n}`;console.warn(`Invalid Link: prototype:${t}${n}`)}async generate_LuaLS_docs(t){return[...await this.generate_LuaLS_concepts(t),...await this.generate_LuaLS_prototypes(t),this.generate_LuaLS_data(t)]}async generate_LuaLS_concepts(t){let n=[];for(let[r,i]of this.concepts){let o=new Fa(`prototype-api/concepts/${i.name}`,this.application_version);if(i.type==="builtin")continue;let s=this.simple_structs.has(i.name),a=s?"":".struct";if(i.properties){let u=new Ro(this.type_prefix+i.name+a);u.exact=!0,u.description=await t(i.description,{scope:"prototype",member:i.name}),i.parent&&(u.parents=[new Ae(this.type_prefix+i.parent)]);for(let l of i.properties)u.add(new On(l.name,this.lua_proto_type(l.type),await t(l.description,{scope:"prototype",member:i.name,part:l.name}),l.optional));o.add(u)}if(!s){let u=i.type;if(i.name==="AnyPrototype"&&typeof u=="object"&&u.complex_type==="union"){let l=["MapGenPresets","GuiStyle"];u={complex_type:"union",options:u.options.filter(f=>typeof f=="object"?!(f.complex_type==="type"&&typeof f.value=="string"&&l.includes(f.value)):!l.includes(f))}}o.add(new Uy(this.type_prefix+i.name,this.lua_proto_type(u,i),i.description))}n.push(o)}return n}generate_LuaLS_data(t){let n=new Fa("prototype-api/data",this.application_version),r=new Ro("data");r.add(new On("raw",new Ae("data.raw"))),r.add(new On("is_demo",new Ae("boolean")));let i=new zy("extend",[new br("otherdata",new mi(new Ae("data.AnyPrototype")))]);i.add(new ka(void 0,[new br("self",new Ae("data")),new br("otherdata",new mi(new Ae("data.AnyPrototype")))])),i.add(new ka(void 0,[new br("otherdata",new mi(new Ae("data.AnyModSettingPrototype")))])),i.add(new ka(void 0,[new br("self",new Ae("data")),new br("otherdata",new mi(new Ae("data.AnyModSettingPrototype")))])),r.add(i),r.global_name="data",n.add(r);let o=new Ro("data.raw");o.exact=!0,n.add(o);for(let[s,a]of this.prototypes)a.typename&&o.add(new On(new bf(a.typename),new Df(new Ae("string"),new Ae(this.type_prefix+a.name))));return n}async generate_LuaLS_prototypes(t){let n=[];for(let[r,i]of this.prototypes){let o=new Fa(`prototype-api/prototypes/${i.name}`,this.application_version),s=new Ro(this.type_prefix+i.name);s.exact=!0,s.description=await t(i.description,{scope:"prototype",member:i.name}),i.parent&&(s.parents=[new Ae(this.type_prefix+i.parent)]);for(let a of i.properties)s.add(new On(a.name,this.lua_proto_type(a.type),await t(a.description,{scope:"prototype",member:i.name,part:a.name}),a.optional)),a.alt_name&&s.add(new On(a.alt_name,this.lua_proto_type(a.type),await t(a.description,{scope:"prototype",member:i.name,part:a.alt_name}),a.optional));if(i.custom_properties){let a=i.custom_properties;s.add(new On(this.lua_proto_type(a.key_type),this.lua_proto_type(a.value_type),await t(a.description,{scope:"prototype",member:i.name,part:"custom_properties"})))}o.add(s),n.push(o)}return n}lua_proto_type(t,n){switch(typeof t){case"string":switch(t){case"bool":return new Ae("boolean");case"table":case"number":case"nil":case"boolean":case"string":case"float":case"double":case"int8":case"uint8":case"int16":case"uint16":case"int32":case"uint32":case"int64":case"uint64":return new Ae(t)}return t.match(/^defines\./)?new Ae(t):new Ae(this.type_prefix+t);case"object":switch(t.complex_type){case"struct":if(!n)throw new Error("struct without parent");return this.simple_structs.has(n.name)?new Ae(this.type_prefix+n.name):new Ae(this.type_prefix+n.name+".struct");case"array":return new mi(this.lua_proto_type(t.value,n));case"tuple":return new My(t.values.map(r=>this.lua_proto_type(r,n)));case"dictionary":return new Df(this.lua_proto_type(t.key,n),this.lua_proto_type(t.value,n));case"union":return new jy(t.options.map(r=>this.lua_proto_type(r,n)));case"literal":return new bf(t.value);case"type":return this.lua_proto_type(t.value,n);default:throw new Error("Invalid Type")}default:throw new Error("Invalid Type")}}};async function l2(e,t,n){let r=new Ta(e),i=new hf(t),o=c=>{let f=c.url.match(/^(runtime|prototype):(.+?)(?:::(.+))?$/);if(f)switch(f[1]){case"runtime":let h=r.resolve_link(f[2],f[3]);h&&(c.url="https://lua-api.factorio.com/latest"+h);break;case"prototype":let p=i.resolve_link(f[2],f[3]);p&&(c.url="https://lua-api.factorio.com/latest"+p);break}},s=pu().use(function(){return function(c,f){Et(c,"link",o)}}),a=async(c,f)=>{let h=f?`[View Documentation](${f.scope}:${f.member}${f.part?"::"+f.part:""})`:"";return String(await s.process(`${c??""}
|
|
115
116
|
|
|
116
|
-
${h}`.trim())).trim()},l=RF.posix.join("factorio","library");await Promise.all([...await r.generate_LuaLS_docs(a),...await i.generate_LuaLS_docs(a)].map(async c=>{let f=await c;await n(RF.posix.join(l,f.name+".lua"),h=>f.write(h))})),await Promise.all(Yy().map(async c=>{await n(c.name,f=>{f.write(c.content)})}));let u=Ky(r.application_version);await n(u.name,c=>{c.write(u.content)})}async function LF(t){let e=await fetch(t);if(!e.ok)throw new Error(`Error fetching ${t} : ${e.statusText}`);return e.text()}de.command("luals-addon [outdir]").alias("sumneko-3rd").description("Generate a library bundle for LuaLS (sumneko.lua) LSP").option("-d, --docs <docsjson>","Runtime docs").option("-p, --protos <protosjson>","Prototype docs").option("-o, --online [version]","Use online docs").action(async(t,e)=>{let n,r;if(e.docs&&e.protos)n=(await ka.readFile(e.docs,"utf8")).toString(),r=(await ka.readFile(e.protos,"utf8")).toString();else{if(e.docs||e.protos)throw new Error("Using local json files must specify both files");{let i=e.online??"latest";n=await LF(`https://lua-api.factorio.com/${i}/runtime-api.json`),r=await LF(`https://lua-api.factorio.com/${i}/prototype-api.json`)}}await OF(n,r,async(i,o)=>{let s=IF.join(t??process.cwd(),i);await ka.mkdir(IF.dirname(s),{recursive:!0});let a=iG(s);await o(a),a.close()})});var Mt=ut(yf(),1);import*as Iy from"fs/promises";var ht=ut(yf(),1);import oG from"assert";function ci(t,e,n){return qe("text",t,e,n)}function sG(t,e,n){return oG(e.sticky),e.lastIndex=n,e.exec(t)}function bf(t,e,n){let r=t.value,i=t.range.start.line,o=t.range.start.character,s=[],a=0,l=-1;do l=r.indexOf(e,l+1),l>=0&&(n?n.find(u=>{let c=sG(r,u.pattern,l);if(!c)return!1;let f=u.parse(c,i,o);return f?(a<l-1&&s.push(ci(r.substring(a,l),i,o+a)),s.push(f),a=c.indices[0][1],l=a,!0):!1}):(s.push(ci(r.substring(a,l),i,o+a)),l+=e.length,a=l));while(l>=0);return a<=r.length-1&&s.push(ci(r.substring(a),i,o+a)),s}function aG(t){return bf(t,"|").map(e=>{let n=e.value.indexOf("="),r=ci(e.value.substring(0,n),e.range.start.line,e.range.start.character),i=ci(e.value.substring(n+1),e.range.start.line,e.range.start.character+n+1);return{type:"plural_option",range:e.range,selectionRange:e.selectionRange,children:[...bf(r,",").map(o=>{if(o.value==="rest")return{type:"plural_match",value:"rest",range:o.range,selectionRange:o.selectionRange};let s=o.value.match(/^(ends in )?(\d+)(?:-(\d+))?$/d);return s?{type:"plural_match",value:s[3]?[parseInt(s[2]),parseInt(s[3])]:parseInt(s[2]),ends_in:s[1]?!0:void 0,range:o.range,selectionRange:o.selectionRange}:{type:"error",value:o.value,range:o.range,selectionRange:o.selectionRange}}),...bf(i,"__",qF)]}})}var qF=[{pattern:/__([0-9]+)__/dy,parse(t,e,n){return{type:"parameter",value:parseInt(t[1]),range:De(e,n+t.index,t[0].length),selectionRange:De(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__plural_for_parameter__([0-9]+)__\{(.*?)\}__/dy,parse(t,e,n){return{type:"plural",value:parseInt(t[1]),children:aG(ci(t[2],e,n+t.indices[2][0])),range:De(e,n+t.index,t[0].length),selectionRange:De(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(CONTROL_(?:MOVE|(?:LEFT|RIGHT)_CLICK|KEY_(?:SHIFT|CTRL)|STYLE_(?:BEGIN|END)))__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[],range:De(e,n+t.index,t[0].length),selectionRange:De(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(REMARK_COLOR_(?:BEGIN|END))__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[],range:De(e,n+t.index,t[0].length),selectionRange:De(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(CONTROL(?:_MODIFIER)?|ENTITY|ITEM|TILE|FLUID|PLANET)__(.+?)__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[qe("macro_argument",t[2],e,n+t.indices[2][0])],range:De(e,n+t.index,t[0].length),selectionRange:De(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(ALT_CONTROL)__(.+?)__(.+?)__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[qe("macro_argument",t[2],e,n+t.indices[2][0]),qe("macro_argument",t[3],e,n+t.indices[3][0])],range:De(e,n+t.index,t[0].length),selectionRange:De(e,n+t.indices[1][0],t[1].length)}}},{pattern:/__(ALT_CONTROL_(?:LEFT|RIGHT)_CLICK)__(.+?)__/dy,parse(t,e,n){return{type:"macro",name:t[1],children:[qe("macro_argument",t[2],e,n+t.indices[1][0])],range:De(e,n+t.index,t[0].length),selectionRange:De(e,n+t.indices[1][0],t[1].length)}}}];function Fy(t){let e=t.open_comments;t.open_comments=[];let n=e[0],r=e[e.length-1];return{type:"comment_group",range:{start:n.range.start,end:r.range.end},selectionRange:n.selectionRange,children:e}}var lG=[{pattern:/^[\r\t ]*([#;].*)?$/d,parse(t,e,n){t[1]?n.open_comments.push(qe("comment",t[1],e,t.indices[1][0])):n.open_comments.length>0&&(n.open_section??n.root).children.push(Fy(n))}},{pattern:/^[\r\t ]*\[(.*?)\][\r\t ]*$/d,parse(t,e,n){n.open_section=qe("section",t[1],e,t.indices[1][0],{children:[]}),n.open_comments.length>0&&n.open_section.children.push(Fy(n)),n.open_section.range.start.character-=1,n.open_section.range.end.character+=1,n.root.children.push(n.open_section)}},{pattern:/^[\r\t ]*(.*?)=(.*)$/d,parse(t,e,n){let r=qe("record",t[1],e,t.indices[1][0],{children:[...bf(ci(t[2],e,t.indices[2][0]),"__",qF)]});n.open_comments.length>0&&r.children.unshift(Fy(n)),r.range.end.character=t[0].length,(n.open_section??n.root).children.push(r)}},{pattern:/^.*$/d,parse(t,e,n){n.root.children.push({type:"error",value:t[0],range:De(e,0,t[0].length),selectionRange:De(e,0,0)})}}];function MF(t){let e={root:{type:"root",children:[],range:{start:{line:0,character:0},end:{line:t.lineCount,character:0}},selectionRange:De(0,0,0)},open_comments:[]};for(let n=0;n<t.lineCount;n++){let r={start:{line:n,character:0},end:{line:n,character:1/0}},i=t.getText(r).replace(/((\r\n)|\r|\n)$/,"");for(let o of lG){let s=o.pattern.exec(i);if(s){o.parse(s,n,e);break}}}return e.root}var Ry=new Map([["default",{red:1,green:.63,blue:.259,alpha:1}],["red",{red:1,green:.166,blue:.141,alpha:1}],["green",{red:.173,green:.824,blue:.25,alpha:1}],["blue",{red:.343,green:.683,blue:1,alpha:1}],["orange",{red:1,green:.63,blue:.259,alpha:1}],["yellow",{red:1,green:.828,blue:.231,alpha:1}],["pink",{red:1,green:.52,blue:.633,alpha:1}],["purple",{red:.821,green:.44,blue:.998,alpha:1}],["white",{red:.9,green:.9,blue:.9,alpha:1}],["black",{red:.5,green:.5,blue:.5,alpha:1}],["gray",{red:.7,green:.7,blue:.7,alpha:1}],["brown",{red:.757,green:.522,blue:.371,alpha:1}],["cyan",{red:.335,green:.918,blue:.866,alpha:1}],["acid",{red:.708,green:.996,blue:.134,alpha:1}]]);function uG(t){if(Ry.has(t))return Ry.get(t);if(t.startsWith("#")){let n=t.match(/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/);if(n)return{red:parseInt(n[1],16)/255,green:parseInt(n[2],16)/255,blue:parseInt(n[3],16)/255,alpha:n[4]?parseInt(n[4],16)/255:1}}let e=t.match(/\s*(\d+(?:\.\d+)?)\s*,?\s*(\d+(?:\.\d+)?)\s*,?\s*(\d+(?:\.\d+)?)(?:\s*,?\s*(\d+(?:\.\d+)?))?\s*/);if(e){let n=parseFloat(e[1]),r=parseFloat(e[2]),i=parseFloat(e[3]),o=e[4]?parseFloat(e[4]):void 0;return(n>1||r>1||i>1||o&&o>1)&&(n=n/255,r=r/255,i=i/255,o&&(o=o/255)),o||(o=1),{red:n,green:r,blue:i,alpha:o}}}function fi(t){let e=Math.floor(t).toString(16);return e.length<2&&(e="0"+e),e}function hi(t,e){return Math.round(t*Math.pow(10,e))/Math.pow(10,e)}function cG(t){let e=[];for(let[n,r]of Ry)if(Math.abs(r.red-t.red)<.004&&Math.abs(r.green-t.green)<.004&&Math.abs(r.blue-t.blue)<.004&&Math.abs(r.alpha-t.alpha)<.004){e.push(n);break}return t.alpha>.996?(e.push(`#${fi(t.red*255)}${fi(t.green*255)}${fi(t.blue*255)}`),e.push(`${Math.floor(t.red*255)}, ${Math.floor(t.green*255)}, ${Math.floor(t.blue*255)}`),e.push(`${hi(t.red,3)}, ${hi(t.green,3)}, ${hi(t.blue,3)}`)):(e.push(`#${fi(t.red*255)}${fi(t.green*255)}${fi(t.blue*255)}${fi(t.alpha*255)}`),e.push(`${Math.floor(t.red*255)}, ${Math.floor(t.green*255)}, ${Math.floor(t.blue*255)}, ${Math.floor(t.alpha*255)}`),e.push(`${hi(t.red,3)}, ${hi(t.green,3)}, ${hi(t.blue,3)}, ${hi(t.alpha,3)}`)),e}function fG(t,e){let n=[];return Nn(t,"record",(r,i)=>{let o=i.length>0?i[i.length-1]:void 0,s=o?.type==="section"?o.value:void 0;n.push({name:s?`${s}.${r.value}`:r.value,link:{targetUri:e,targetRange:r.range,targetSelectionRange:r.selectionRange}})}),n}function NF(t){return t!==void 0}function BF(t){return{name:t.value?t.value:"<error>",detail:"",kind:ht.SymbolKind.String,range:t.range,selectionRange:t.selectionRange,children:[]}}function hG(t){return{name:t.value?t.value:"<error>",detail:"",kind:ht.SymbolKind.Namespace,range:t.range,selectionRange:t.selectionRange,children:t.children.map(e=>{switch(e.type){case"record":return BF(e);default:return}}).filter(NF)}}function pG(t){return t.children.map(e=>{switch(e.type){case"section":return hG(e);case"record":return BF(e);default:return}}).filter(NF)}var wf=class{hasDiagnosticRelatedInformationCapability=!1;validateTextDocument(e){let n=e.getText().split(/\r?\n/),r=[],i=this.onDocumentSymbol(e),o,s=new Map;s.set(void 0,new Set);for(let a=0;a<n.length;a++){let l=n[a];if(!l.match(/^[ \r\t]*[#;]/)){if(l.match(/^[ \r\t]*\[/)){let u=l.match(/^[ \r\t]*\[([^\[]+)\][ \r\t]*$/d);if(u)if(o=u[1],s.has(o)){let c=i.filter(p=>p.name===o),f=c.reduce((p,w)=>p.range.start.line<w.range.start.line?p:w),h=c.find(p=>p.range.start.line===a);r.push({message:"Duplicate Section",source:"factorio-locale",severity:ht.DiagnosticSeverity.Error,range:{start:{line:a,character:u.indices[1][0]},end:{line:a,character:u.indices[1][1]}},relatedInformation:this.hasDiagnosticRelatedInformationCapability?[{location:{uri:e.uri,range:f.range},message:"First defined here"}]:void 0,code:"section.merge",data:{firstsym:f,newsym:h}})}else if(s.get(void 0).has(o)){let f=i.filter(h=>h.name===o).reduce((h,p)=>h.range.start.line<p.range.start.line?h:p);r.push({message:"Section Name conflicts with Key in Root",source:"factorio-locale",severity:ht.DiagnosticSeverity.Error,range:{start:{line:a,character:u.indices[1][0]},end:{line:a,character:u.indices[1][1]}},relatedInformation:this.hasDiagnosticRelatedInformationCapability?[{location:{uri:e.uri,range:f.range},message:"First defined here"}]:void 0,code:"section.rootconflict"}),s.set(o,new Set)}else s.set(o,new Set);else r.push({message:"Invalid Section Header",source:"factorio-locale",severity:ht.DiagnosticSeverity.Error,range:{start:{line:a,character:0},end:{line:a,character:l.length}},code:"section.invalid"})}else if(l.trim().length>0){let u=l.match(/^[ \r\t]*([^=]*)=(.*)$/d);if(u&&u[1]){let c=u[1];if(s.get(o).has(c)){let h=i.filter(p=>p.name===o&&p.kind===ht.SymbolKind.Namespace).flatMap(p=>p.children?.filter(w=>w.name===c)??[]).concat(i.filter(p=>p.name===c&&p.kind===ht.SymbolKind.String));if(h.length>0){let p=h.reduce((w,D)=>w.range.start.line<D.range.start.line?w:D);r.push({message:"Duplicate Key",source:"factorio-locale",severity:ht.DiagnosticSeverity.Error,code:"key.duplicate",range:{start:{line:a,character:u.indices[1][0]},end:{line:a,character:u.indices[1][1]}},relatedInformation:this.hasDiagnosticRelatedInformationCapability?[{location:{uri:e.uri,range:p.range},message:"First defined here"}]:void 0})}}else s.get(o).add(c);let f=c.match(/[\t ]+$/d);f&&r.push({message:"Key ends with whitespace",source:"factorio-locale",severity:ht.DiagnosticSeverity.Warning,code:"key.whitespace-end",range:{start:{line:a,character:u.indices[1][0]+f.index},end:{line:a,character:u.indices[1][1]}}})}else r.push({message:"Invalid Key",source:"factorio-locale",severity:ht.DiagnosticSeverity.Error,code:"key.invalid",range:{start:{line:a,character:0},end:{line:a,character:l.length}}})}}}return r}definitions=new Map;documentTrees=new Map;loadDocument(e){let n=MF(e);this.documentTrees.set(e.uri,n),this.definitions.set(e.uri,fG(n,e.uri))}clearDocument(e){this.definitions.delete(e),this.documentTrees.delete(e)}clearFolder(e){for(let n of this.definitions.keys())n.startsWith(e)&&this.definitions.delete(n);for(let n of this.documentTrees.keys())n.startsWith(e)&&this.documentTrees.delete(n)}onDocumentSymbol(e){this.documentTrees.has(e.uri)||this.loadDocument(e);let n=this.documentTrees.get(e.uri);return n?pG(n):[]}findDefinitions(e){let n=[];for(let r of this.definitions.values())n.push(...r.filter(i=>i.name===e).map(i=>i.link));return n}getCompletions(e){let n=[];for(let r of this.definitions.values())e?n.push(r.map(i=>i.name).filter(i=>i.startsWith(e))):n.push(r.map(i=>i.name).map(i=>{let o=i.indexOf(".");return o===-1?i:i.substring(0,o+1)}));return[...new Set(n.flat())]}onCodeAction(e,n,r){return e.languageId==="factorio-locale"?r.diagnostics.filter(i=>!!i.code).map(i=>{switch(i.code){case"section.merge":{let o=i,s=o.data.firstsym.range.end;return{title:"Merge Sections",kind:ht.CodeActionKind.QuickFix+".section.merge",diagnostics:[i],edit:{changes:{[e.uri]:[{range:o.data.newsym.range,newText:""},{range:{start:s,end:s},newText:e.getText({start:{line:o.data.newsym.selectionRange.end.line,character:o.data.newsym.selectionRange.end.character+1},end:o.data.newsym.range.end})}]}}}}default:return}}).filter(i=>!!i):[]}onDocumentColor(e){let n=[];for(let r=0;r<e.lineCount;r++){let i={start:{line:r,character:0},end:{line:r,character:1/0}},o=e.getText(i).replace(/(\r\n)|\r|\n$/,"");i.end.character=o.length;let s=/\[color=([^\]]+)\]/g,a=s.exec(o);for(;a;){{let l=uG(a[1]);l&&n.push({color:l,range:{start:{line:r,character:a.index+7},end:{line:r,character:a.index+7+a[1].length}}})}a=s.exec(o)}}return n}onColorPresentation(e,n){return cG(e).map(r=>({label:r,textEdit:{range:n,newText:r}}))}};var Oy=ut(yf(),1),_f=class{constructor(e){this.Locale=e}onDefinition(e,n){let r=n.getText({start:{line:e.position.line,character:0},end:{line:e.position.line,character:Number.MAX_VALUE}});for(let i of r.matchAll(/(['"])((?:[^\\](?<!\1)|\\['"0abfnrtv\\]|\\\d{1,3}|\\x[0-9a-fA-F]{2})*)\1/g))if(i.index&&i.index<=e.position.character&&i.index+i[0].length>=e.position.character){let o=i[2],s={start:{line:e.position.line,character:i.index},end:{line:e.position.line,character:i.index+i[0].length}};return this.Locale.findDefinitions(o).map(l=>Object.assign({originSelectionRange:s},l))}}onCompletion(e,n){let i=n.getText({start:{line:e.position.line,character:0},end:{line:e.position.line,character:e.position.character+1}}).match(/(['"])((?:[^\\](?<!\1)|\\['"0abfnrtv\\]|\\\d{1,3}|\\x[0-9a-fA-F]{2})*)\1$/);if(i){let o=i[2].lastIndexOf("."),s=o!==-1?i[2].substring(0,o+1):"";return this.Locale.getCompletions(s).map(a=>({label:a.endsWith(".")?a.substring(0,a.length-1):a,kind:a.endsWith(".")?Oy.CompletionItemKind.Enum:Oy.CompletionItemKind.EnumMember,commitCharacters:a.endsWith(".")?["."]:[],textEdit:{newText:a.endsWith(".")?a.substring(0,a.length-1):a,range:{start:{line:e.position.line,character:i.index+1},end:{line:e.position.line,character:e.position.character}}}}))}return[]}};async function jF(){let t=new Zl,e=new wf,n=new _f(e),r=(0,Mt.createConnection)(Mt.ProposedFeatures.all),i=new Mt.TextDocuments(In);async function o(u){let c=i.get(u);if(c)return c;let f=Ye.parse(u);if(f.scheme==="file"){if(f.path.endsWith(".cfg"))return c=In.create(u,"factorio-locale",1,await Iy.readFile(f.fsPath,"utf8")),c;if(f.path.endsWith("changelog.txt"))return c=In.create(u,"factorio-changelog",1,await Iy.readFile(f.fsPath,"utf8")),c}}async function s(u){let c=await o(u);if(c)switch(c.languageId){case"factorio-locale":e.loadDocument(c);break;case"factorio-changelog":t.loadDocument(c);break}}async function a(u){let c=Ye.parse(u);if(c.scheme==="file"){let f=li(c.fsPath,{pattern:["**/locale/*/*.cfg","**/changelog.txt"]});f.on("match",h=>{s(Ye.file(h.absolute).toString())}),f.on("error",h=>{throw h}),await new Promise(h=>{f.on("end",()=>{h()})})}}let l=!1;return r.onInitialize(async u=>{let c=u.capabilities;l=!!(c.workspace&&c.workspace.workspaceFolders),e.hasDiagnosticRelatedInformationCapability=!!(c.textDocument&&c.textDocument.publishDiagnostics&&c.textDocument.publishDiagnostics.relatedInformation);let f={capabilities:{textDocumentSync:Mt.TextDocumentSyncKind.Incremental,documentSymbolProvider:!0,codeActionProvider:!0,colorProvider:!0,definitionProvider:!0,completionProvider:{triggerCharacters:['"',"'","."],allCommitCharacters:["."]}}};return l&&(f.capabilities.workspace={workspaceFolders:{supported:!0,changeNotifications:!0}},u.workspaceFolders&&await Promise.all(u.workspaceFolders.map(h=>a(h.uri)))),f}),r.onInitialized(()=>{l&&r.workspace.onDidChangeWorkspaceFolders(async u=>{for(let c of u.removed)e.clearFolder(c.uri),t.clearFolder(c.uri);for(let c of u.added)await a(c.uri)})}),i.onDidClose(u=>{switch(u.document.languageId){case"factorio-locale":r.sendDiagnostics({uri:u.document.uri,diagnostics:[]});break;case"factorio-changelog":r.sendDiagnostics({uri:u.document.uri,diagnostics:[]});break}}),i.onDidChangeContent(u=>{switch(u.document.languageId){case"factorio-locale":e.loadDocument(u.document),r.sendDiagnostics({uri:u.document.uri,diagnostics:e.validateTextDocument(u.document)});break;case"factorio-changelog":t.loadDocument(u.document),r.sendDiagnostics({uri:u.document.uri,diagnostics:t.diagnose(u.document.uri)});break}}),r.onDefinition(async u=>{let c=await o(u.textDocument.uri);return c&&c.languageId==="lua"?n.onDefinition(u,c):null}),r.onCompletion(async u=>{let c=await o(u.textDocument.uri);if(c&&c.languageId==="lua")return{isIncomplete:!0,items:n.onCompletion(u,c)}}),r.onDidChangeWatchedFiles(u=>{for(let c of u.changes)switch(c.type){case Mt.FileChangeType.Deleted:e.clearDocument(c.uri),t.clearDocument(c.uri);break;case Mt.FileChangeType.Changed:case Mt.FileChangeType.Created:o(c.uri).then(f=>{if(f)switch(f.languageId){case"factorio-locale":e.loadDocument(f);break;case"factorio-changelog":t.loadDocument(f);break}});break;default:break}}),r.onDocumentSymbol(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onDocumentSymbol(c);case"factorio-changelog":return t.onDocumentSymbol(c)}return null}),r.onCodeAction(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onCodeAction(c,u.range,u.context);case"factorio-changelog":return t.onCodeAction(c,u.range,u.context)}return null}),r.onDocumentColor(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onDocumentColor(c)}return null}),r.onColorPresentation(u=>{let c=i.get(u.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return e.onColorPresentation(u.color,u.range)}return null}),i.listen(r),r.listen(),new Promise(u=>{r.onExit(u)})}de.command("lsp").description("Run LSP Server for Locale and Changelog features").allowUnknownOption(!0).allowExcessArguments(!0).action(async()=>{await jF()});import*as UF from"os";import*as zF from"fs/promises";de.command("debug <factorioPath>").description("Launch a DAP debug session").option("-d, --docs <docsPath>","path to runtime-api.json").option("-c, --config <configPath>","path to config.ini").option("-w, --workspace <workspacePath...>","path to workspace folders").action(async(t,e)=>{let n={name:"standalone",factorioPath:t,configPath:e.config,docsPath:e.docs},r=Bt.joinPath(Ye.file(t),n.docsPath?n.docsPath:UF.platform()==="darwin"?"../../doc-html/runtime-api.json":"../../../doc-html/runtime-api.json"),i=await zF.readFile(r.fsPath,"utf8"),o=new Qy(Cy,n,new Fa(i)),s=new Zy(o,Cy,{async findWorkspaceFiles(a){let l=[];for(let u of e.workspace??[process.cwd()]){let c=li(u,{pattern:a});c.on("match",f=>{l.push(Ye.file(f.absolute))}),c.on("error",f=>{throw f}),await new Promise(f=>{c.on("end",()=>{f()})})}return l}});process.on("SIGTERM",()=>{s.shutdown()}),s.start(process.stdin,process.stdout)});import*as WF from"fs/promises";de.command("scriptdat <file>").description("Dump script.dat").action(async t=>{let e=new Jy(new br(await WF.readFile(t)));console.log(JSON.stringify({version:e.version.format(),data:e.data},void 0,2))});if(process.env.FMTK_TEST_ARGV)try{let t=JSON.parse(process.env.FMTK_TEST_ARGV);process.argv.push(...t),delete process.env.FMTK_TEST_ARGV}catch(t){console.log(`Error using extra args from FMTK_TEST_ARGV: ${t}`),process.exit(1)}await de.description(`${jy} ${Uy}`).helpCommand("help").showHelpAfterError().showSuggestionAfterError().parseAsync(process.argv,{from:"node"}).catch(t=>{console.error(t),process.exit(1)}).then(()=>{process.send&&process.disconnect()});
|
|
117
|
+
${h}`.trim())).trim()},u=u2.posix.join("factorio","library");await Promise.all([...await r.generate_LuaLS_docs(a),...await i.generate_LuaLS_docs(a)].map(async c=>{let f=await c;await n(u2.posix.join(u,f.name+".lua"),h=>f.write(h))})),await Promise.all(Wy().map(async c=>{await n(c.name,f=>{f.write(c.content)})}));let l=$y(r.application_version);await n(l.name,c=>{c.write(l.content)})}async function f2(e){let t=await fetch(e);if(!t.ok)throw new Error(`Error fetching ${e} : ${t.statusText}`);return t.text()}fe.command("luals-addon [outdir]").alias("sumneko-3rd").description("Generate a library bundle for LuaLS (sumneko.lua) LSP").option("-d, --docs <docsjson>","Runtime docs").option("-p, --protos <protosjson>","Prototype docs").option("-o, --online [version]","Use online docs").action(async(e,t)=>{let n,r;if(t.docs&&t.protos)n=(await va.readFile(t.docs,"utf8")).toString(),r=(await va.readFile(t.protos,"utf8")).toString();else{if(t.docs||t.protos)throw new Error("Using local json files must specify both files");{let i=t.online??"latest";n=await f2(`https://lua-api.factorio.com/${i}/runtime-api.json`),r=await f2(`https://lua-api.factorio.com/${i}/prototype-api.json`)}}await l2(n,r,async(i,o)=>{let s=c2.join(e??process.cwd(),i);await va.mkdir(c2.dirname(s),{recursive:!0});let a=TH(s);await o(a),a.close()})});var Pt=ft(pf(),1);import*as Ty from"fs/promises";var wt=ft(pf(),1);import CH from"assert";function ci(e,t,n){return Re("text",e,t,n)}function AH(e,t,n){return CH(t.sticky),t.lastIndex=n,t.exec(e)}function Ea(e,t,n){let r=e.value,i=e.range.start.line,o=e.range.start.character,s=[],a=0,u=-1;do u=r.indexOf(t,u+1),u>=0&&(n?n.find(l=>{let c=AH(r,l.pattern,u);if(!c)return!1;let f=l.parse(c,i,o);return f?(a<u&&s.push(ci(r.substring(a,u),i,o+a)),s.push(f),a=c.indices[0][1],u=a,!0):!1}):(s.push(ci(r.substring(a,u),i,o+a)),u+=t.length,a=u));while(u>=0);return a<=r.length-1&&s.push(ci(r.substring(a),i,o+a)),s}var RH=[{pattern:/\\n/dy,parse(e,t,n){let r=Re("escape","\\n",t,n+e.index);return r.value=`
|
|
118
|
+
`,r}}];function OH(e){return Ea(e,"|").map(t=>{let n=t.value.indexOf("="),r=ci(t.value.substring(0,n),t.range.start.line,t.range.start.character),i=ci(t.value.substring(n+1),t.range.start.line,t.range.start.character+n+1);return{type:"plural_option",range:t.range,selectionRange:t.selectionRange,children:[...Ea(r,",").map(o=>{if(o.value==="rest")return{type:"plural_match",value:"rest",range:o.range,selectionRange:o.selectionRange};let s=o.value.match(/^(ends in )?(\d+)(?:-(\d+))?$/d);return s?{type:"plural_match",value:s[3]?[parseInt(s[2]),parseInt(s[3])]:parseInt(s[2]),ends_in:s[1]?!0:void 0,range:o.range,selectionRange:o.selectionRange}:{type:"error",value:o.value,range:o.range,selectionRange:o.selectionRange}}),...Ea(i,"__",p2)]}})}var p2=[{pattern:/__([0-9]+)__/dy,parse(e,t,n){return{type:"parameter",value:parseInt(e[1]),range:De(t,n+e.index,e[0].length),selectionRange:De(t,n+e.indices[1][0],e[1].length)}}},{pattern:/__plural_for_parameter__([0-9]+)__\{(.*?)\}__/dy,parse(e,t,n){return{type:"plural",value:parseInt(e[1]),children:OH(ci(e[2],t,n+e.indices[2][0])),range:De(t,n+e.index,e[0].length),selectionRange:De(t,n+e.indices[1][0],e[1].length)}}},{pattern:/__(CONTROL_(?:MOVE|(?:LEFT|RIGHT)_CLICK|KEY_(?:SHIFT|CTRL)|STYLE_(?:BEGIN|END)))__/dy,parse(e,t,n){return{type:"macro",name:e[1],children:[],range:De(t,n+e.index,e[0].length),selectionRange:De(t,n+e.indices[1][0],e[1].length)}}},{pattern:/__(REMARK_COLOR_(?:BEGIN|END))__/dy,parse(e,t,n){return{type:"macro",name:e[1],children:[],range:De(t,n+e.index,e[0].length),selectionRange:De(t,n+e.indices[1][0],e[1].length)}}},{pattern:/__(CONTROL(?:_MODIFIER)?|ENTITY|ITEM|TILE|FLUID|PLANET|TECHNOLOGY|RECIPE)__(.+?)__/dy,parse(e,t,n){return{type:"macro",name:e[1],children:[Re("macro_argument",e[2],t,n+e.indices[2][0])],range:De(t,n+e.index,e[0].length),selectionRange:De(t,n+e.indices[1][0],e[1].length)}}},{pattern:/__(ALT_CONTROL)__(.+?)__(.+?)__/dy,parse(e,t,n){return{type:"macro",name:e[1],children:[Re("macro_argument",e[2],t,n+e.indices[2][0]),Re("macro_argument",e[3],t,n+e.indices[3][0])],range:De(t,n+e.index,e[0].length),selectionRange:De(t,n+e.indices[1][0],e[1].length)}}},{pattern:/__(ALT_CONTROL_(?:LEFT|RIGHT)_CLICK)__(.+?)__/dy,parse(e,t,n){return{type:"macro",name:e[1],children:[Re("macro_argument",e[2],t,n+e.indices[1][0])],range:De(t,n+e.index,e[0].length),selectionRange:De(t,n+e.indices[1][0],e[1].length)}}}];function Ey(e){let t=e.open_comments;e.open_comments=[];let n=t[0],r=t[t.length-1];return{type:"comment_group",range:{start:n.range.start,end:r.range.end},selectionRange:n.selectionRange,children:t}}var IH=[{pattern:/^[\r\t ]*([#;].*)?$/d,parse(e,t,n){e[1]?n.open_comments.push(Re("comment",e[1],t,e.indices[1][0])):n.open_comments.length>0&&(n.open_section??n.root).children.push(Ey(n))}},{pattern:/^[\r\t ]*\[(.*?)\][\r\t ]*$/d,parse(e,t,n){n.open_section=Re("section",e[1],t,e.indices[1][0],{children:[]}),n.open_comments.length>0&&n.open_section.children.push(Ey(n)),n.open_section.range.start.character-=1,n.open_section.range.end.character+=1,n.root.children.push(n.open_section)}},{pattern:/^[\r\t ]*(.*?)=(.*)$/d,parse(e,t,n){let r=Re("record",e[1],t,e.indices[1][0],{children:Ea(ci(e[2],t,e.indices[2][0]),"\\",RH).flatMap(i=>i.type==="escape"?i:Ea(i,"__",p2))});n.open_comments.length>0&&r.children.unshift(Ey(n)),r.range.end.character=e[0].length,(n.open_section??n.root).children.push(r)}},{pattern:/^.*$/d,parse(e,t,n){n.root.children.push({type:"error",value:e[0],range:De(t,0,e[0].length),selectionRange:De(t,0,0)})}}];function d2(e){let t={root:{type:"root",children:[],range:{start:{line:0,character:0},end:{line:e.lineCount,character:0}},selectionRange:De(0,0,0)},open_comments:[]};for(let n=0;n<e.lineCount;n++){let r={start:{line:n,character:0},end:{line:n,character:1/0}},i=e.getText(r).replace(/((\r\n)|\r|\n)$/,"");for(let o of IH){let s=o.pattern.exec(i);if(s){o.parse(s,n,t);break}}}return t.root}var Sy=new Map([["default",{red:1,green:.63,blue:.259,alpha:1}],["red",{red:1,green:.166,blue:.141,alpha:1}],["green",{red:.173,green:.824,blue:.25,alpha:1}],["blue",{red:.343,green:.683,blue:1,alpha:1}],["orange",{red:1,green:.63,blue:.259,alpha:1}],["yellow",{red:1,green:.828,blue:.231,alpha:1}],["pink",{red:1,green:.52,blue:.633,alpha:1}],["purple",{red:.821,green:.44,blue:.998,alpha:1}],["white",{red:.9,green:.9,blue:.9,alpha:1}],["black",{red:.5,green:.5,blue:.5,alpha:1}],["gray",{red:.7,green:.7,blue:.7,alpha:1}],["brown",{red:.757,green:.522,blue:.371,alpha:1}],["cyan",{red:.335,green:.918,blue:.866,alpha:1}],["acid",{red:.708,green:.996,blue:.134,alpha:1}]]);function m2(e){if(Sy.has(e))return Sy.get(e);if(e.startsWith("#")){let n=e.match(/#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})?/);if(n)return{red:parseInt(n[1],16)/255,green:parseInt(n[2],16)/255,blue:parseInt(n[3],16)/255,alpha:n[4]?parseInt(n[4],16)/255:1}}let t=e.match(/\s*(\d+(?:\.\d+)?)\s*,?\s*(\d+(?:\.\d+)?)\s*,?\s*(\d+(?:\.\d+)?)(?:\s*,?\s*(\d+(?:\.\d+)?))?\s*/);if(t){let n=parseFloat(t[1]),r=parseFloat(t[2]),i=parseFloat(t[3]),o=t[4]?parseFloat(t[4]):void 0;return(n>1||r>1||i>1||o&&o>1)&&(n=n/255,r=r/255,i=i/255,o&&(o=o/255)),o||(o=1),{red:n,green:r,blue:i,alpha:o}}}function fi(e){let t=Math.floor(e).toString(16);return t.length<2&&(t="0"+t),t}function hi(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}function g2(e){let t=[];for(let[n,r]of Sy)if(Math.abs(r.red-e.red)<.004&&Math.abs(r.green-e.green)<.004&&Math.abs(r.blue-e.blue)<.004&&Math.abs(r.alpha-e.alpha)<.004){t.push(n);break}return e.alpha>.996?(t.push(`#${fi(e.red*255)}${fi(e.green*255)}${fi(e.blue*255)}`),t.push(`${Math.floor(e.red*255)}, ${Math.floor(e.green*255)}, ${Math.floor(e.blue*255)}`),t.push(`${hi(e.red,3)}, ${hi(e.green,3)}, ${hi(e.blue,3)}`)):(t.push(`#${fi(e.red*255)}${fi(e.green*255)}${fi(e.blue*255)}${fi(e.alpha*255)}`),t.push(`${Math.floor(e.red*255)}, ${Math.floor(e.green*255)}, ${Math.floor(e.blue*255)}, ${Math.floor(e.alpha*255)}`),t.push(`${hi(e.red,3)}, ${hi(e.green,3)}, ${hi(e.blue,3)}, ${hi(e.alpha,3)}`)),t}var y2=ft(ns(),1);var LH=[{message:"Duplicate Section",code:"section.duplicate",setup(e){let t=new Map;return{section:(n,r,i)=>{let o=t.get(n.value);if(o){let s=o.children.length>0?o.children[o.children.length-1].range.end:o.range.end,a=n.children.length>0?n.children[n.children.length-1].range.end:n.range.end;e.report({diag:{range:n.selectionRange,relatedInformation:[{message:"First defined here",location:{range:o.selectionRange,uri:e.uri}}]},fix:[{range:{start:n.range.start,end:a},newText:""},{range:{start:s,end:s},getText:{start:{line:n.range.end.line,character:n.range.end.character+1},end:a}}]})}else t.set(n.value,n)}}}},{message:"Section Name conflicts with Key in Root",code:"section.rootconflict",setup(e){let t;return{root:(n,r,i)=>{t=n},section:(n,r,i)=>{let o=t.children.find(s=>s.type==="record"&&s.value===n.value);o&&e.report({diag:{range:n.selectionRange,relatedInformation:[{location:{uri:e.uri,range:o.range},message:"First defined here"}]}})}}}},{message:"Duplicate Key",code:"key.duplicate",setup(e){let t=new Map;return{section:(n,r,i)=>{t.clear()},record:(n,r,i)=>{let o=t.get(n.value);o?e.report({diag:{range:n.selectionRange,relatedInformation:[{message:"First defined here",location:{range:o.selectionRange,uri:e.uri}}]}}):t.set(n.value,n)}}}},{message:"Key ends with whitespace",code:"key.whitespace-end",setup(e){return{record:(t,n,r)=>{t.value.match(/[\t ]+$/d)&&e.report({diag:{severity:y2.DiagnosticSeverity.Warning,range:t.selectionRange}})}}}},{message:"Empty Key",code:"key.empty",setup(e){return{record:(t,n,r)=>{t.value||e.report({diag:{range:t.range}})}}}},{message:"Invalid Line",code:"error.unknown",setup(e){return{error:(t,n,r)=>{e.report({diag:{range:t.range}})}}}}];function Fy(e,t){let n=[],r={root:[],comment_group:[],comment:[],section:[],record:[],macro:[],macro_argument:[],parameter:[],plural:[],plural_match:[],plural_option:[],richtext:[],richtextopen:[],richtextclose:[],richtextformat:[],text:[],escape:[],error:[]};for(let i of LH){let o={uri:t,report(a){n.push({message:i.message,code:i.code,...a})}},s=i.setup(o);for(let a in r){let u=a;u in s&&s[u]&&r[u].push(s[u])}}return Et(e,(i,o,s)=>{let a=r[i.type];for(let u of a)u(i,o??-1,s)}),n}function PH(e,t){let n=[];return Bn(e,"record",(r,i)=>{let o=i.length>0?i[i.length-1]:void 0,s=o?.type==="section"?o.value:void 0;n.push({name:s?`${s}.${r.value}`:r.value,link:{targetUri:t,targetRange:r.range,targetSelectionRange:r.selectionRange},section:o?.type==="section"?o:void 0,record:r})}),n}function b2(e){return e!==void 0}var df=class{hasDiagnosticRelatedInformationCapability=!1;definitions=new Map;documentTrees=new Map;loadDocument(t){let n=d2(t);this.documentTrees.set(t.uri,n),this.definitions.set(t.uri,PH(n,t.uri))}clearDocument(t){this.definitions.delete(t),this.documentTrees.delete(t)}clearFolder(t){for(let n of this.definitions.keys())n.startsWith(t)&&this.definitions.delete(n);for(let n of this.documentTrees.keys())n.startsWith(t)&&this.documentTrees.delete(n)}diagnose(t){let n=this.documentTrees.get(t);if(!n)return[];let r=Fy(n,t),i=[];for(let o of r)i.push({message:o.message,code:o.code,source:"factorio-locale",severity:wt.DiagnosticSeverity.Error,...o.diag});return i}recordSymbol(t){return{name:t.value?t.value:"<empty>",detail:"",kind:t.value?wt.SymbolKind.String:wt.SymbolKind.Null,range:t.range,selectionRange:t.selectionRange,children:[]}}sectionSymbols(t){return{name:t.value?t.value:"[empty]",detail:"",tags:[],kind:wt.SymbolKind.Namespace,range:t.range,selectionRange:t.selectionRange,children:t.children.map(n=>{if(n.type==="record")return this.recordSymbol(n)}).filter(b2)}}documentSymbols(t){return t.children.map(n=>{switch(n.type){case"section":return this.sectionSymbols(n);case"record":return this.recordSymbol(n);default:return}}).filter(b2)}onDocumentSymbol(t){this.documentTrees.has(t.uri)||this.loadDocument(t);let n=this.documentTrees.get(t.uri);return n?this.documentSymbols(n):[]}findDefinitionLinks(t){return this.findDefinitions(t).map(r=>r.link)}findDefinitions(t){let n=[];for(let r of this.definitions.values())n.push(...r.filter(i=>i.name===t));return n}getKeyPlainText(t){let n=this.findDefinitions(t);return n.length===0?`Unknown key: ${t}`:this.getRecordPlainText(n[0].record)}getMacroPlainText(t){switch(t.name){case"ENTITY":return this.getKeyPlainText(`entity-name.${t.children[0].value}`);case"ITEM":return this.getKeyPlainText(`item-name.${t.children[0].value}`);case"TILE":return this.getKeyPlainText(`tile-name.${t.children[0].value}`);case"FLUID":return this.getKeyPlainText(`fluid-name.${t.children[0].value}`);case"PLANET":return this.getKeyPlainText(`space-location-name.${t.children[0].value}`);case"TECHNOLOGY":return this.getKeyPlainText(`technology-name.${t.children[0].value}`);case"RECIPE":return this.getKeyPlainText(`recipe-name.${t.children[0].value}`);case"CONTROL_KEY_SHIFT":return this.getKeyPlainText("control-keys.shift");case"CONTROL_KEY_CTRL":return this.getKeyPlainText("control-keys.control");case"CONTROL_MOVE":return"WASD";case"CONTROL":case"CONTROL_MODIFIER":return`__${t.name}__${t.children[0].value}__`;case"ALT_CONTROL":return`__${t.name}__${t.children[0].value}__${t.children[1].value}__`;case"CONTROL_LEFT_CLICK":return this.getKeyPlainText("control-keys.mouse-button-1");case"CONTROL_RIGHT_CLICK":return this.getKeyPlainText("control-keys.mouse-button-2");case"ALT_CONTROL_LEFT_CLICK":return this.getKeyPlainText(`control-keys.mouse-button-1-alt-${t.children[0].value}`);case"ALT_CONTROL_RIGHT_CLICK":return this.getKeyPlainText(`control-keys.mouse-button-2-alt-${t.children[0].value}`);case"CONTROL_STYLE_BEGIN":return"[font=default-semibold][color=128,206,240]";case"CONTROL_STYLE_END":return"[/color][/font]";case"REMARK_COLOR_BEGIN":return"[color=34,181,255]";case"REMARK_COLOR_END":return"[/color]";default:throw new Error("Unknown Macro Node Type")}}getPluralPlainTexts(t,n){return t.children.filter(r=>r.type==="plural_option").map(r=>{throw new Error("")})}getNodePlainText(t,n){switch(t.type){case"text":case"escape":return t.value;case"parameter":if(n.values&&t.value<n.values.length){let r=n.values[t.value];if(r!==void 0)return`${r}`}return`__${t.value}__`;case"plural":return this.getPluralPlainTexts(t,n);case"macro":return this.getMacroPlainText(t);default:throw new Error("Unknown Text Node Type")}}getRecordPlainText(t,n){let r={params:[]};return t.children.filter(i=>i.type!=="comment_group"&&i.type!=="error").map(i=>this.getNodePlainText(i,r)).join("")}onHover(t,n){return null}getCompletions(t){let n=[];for(let r of this.definitions.values())t?n.push(r.map(i=>i.name).filter(i=>i.startsWith(t))):n.push(r.map(i=>i.name).map(i=>{let o=i.indexOf(".");return o===-1?i:i.substring(0,o+1)}));return[...new Set(n.flat())]}onCodeAction(t,n,r){if(t.languageId!=="factorio-locale")return[];let i=this.documentTrees.get(t.uri);if(!i)return[];let o=Fy(i,t.uri).filter(l=>!!l.fix),s=o.filter(l=>Hu(n,l.diag.range)),a=[],u=new Set;for(let l of s)if(a.push({title:`Fix this ${l.code}`,kind:wt.CodeActionKind.QuickFix+"."+l.code,diagnostics:[{message:l.message,code:l.code,source:"factorio-locale",severity:wt.DiagnosticSeverity.Error,...l.diag}],isPreferred:!0,edit:{changes:{[t.uri]:$n(t,l.fix)}}}),!u.has(l.code)){u.add(l.code);let c=o.filter(f=>f.code===l.code);c.length>1&&a.push({title:`Fix all ${l.code} in file`,kind:wt.CodeActionKind.QuickFix+"."+l.code+".all",diagnostics:c.map(f=>({message:f.message,code:f.code,source:"factorio-locale",severity:wt.DiagnosticSeverity.Error,...f.diag})),edit:{changes:{[t.uri]:$n(t,c.flatMap(f=>f.fix))}}})}return o.length>s.length&&a.push({title:"Fix all auto-fixable in file",kind:wt.CodeActionKind.QuickFix+".all",diagnostics:o.map(l=>({message:l.message,code:l.code,source:"factorio-locale",severity:wt.DiagnosticSeverity.Error,...l.diag})),edit:{changes:{[t.uri]:$n(t,o.flatMap(l=>l.fix))}}}),a}onDocumentColor(t){let n=[];for(let r=0;r<t.lineCount;r++){let i={start:{line:r,character:0},end:{line:r,character:1/0}},o=t.getText(i).replace(/(\r\n)|\r|\n$/,"");i.end.character=o.length;let s=/\[color=([^\]]+)\]/g,a=s.exec(o);for(;a;){{let u=m2(a[1]);u&&n.push({color:u,range:{start:{line:r,character:a.index+7},end:{line:r,character:a.index+7+a[1].length}}})}a=s.exec(o)}}return n}onColorPresentation(t,n){return g2(t).map(r=>({label:r,textEdit:{range:n,newText:r}}))}};var ky=ft(pf(),1),mf=class{constructor(t){this.Locale=t}onDefinition(t,n){let r=n.getText({start:{line:t.position.line,character:0},end:{line:t.position.line,character:Number.MAX_VALUE}});for(let i of r.matchAll(/(['"])((?:[^\\](?<!\1)|\\['"0abfnrtv\\]|\\\d{1,3}|\\x[0-9a-fA-F]{2})*)\1/g))if(i.index&&i.index<=t.position.character&&i.index+i[0].length>=t.position.character){let o=i[2],s={start:{line:t.position.line,character:i.index},end:{line:t.position.line,character:i.index+i[0].length}};return this.Locale.findDefinitionLinks(o).map(u=>Object.assign({originSelectionRange:s},u))}}onCompletion(t,n){let i=n.getText({start:{line:t.position.line,character:0},end:{line:t.position.line,character:t.position.character+1}}).match(/(['"])((?:[^\\](?<!\1)|\\['"0abfnrtv\\]|\\\d{1,3}|\\x[0-9a-fA-F]{2})*)\1$/);if(i){let o=i[2].lastIndexOf("."),s=o!==-1?i[2].substring(0,o+1):"";return this.Locale.getCompletions(s).map(a=>({label:a.endsWith(".")?a.substring(0,a.length-1):a,kind:a.endsWith(".")?ky.CompletionItemKind.Enum:ky.CompletionItemKind.EnumMember,commitCharacters:a.endsWith(".")?["."]:[],textEdit:{newText:a.endsWith(".")?a.substring(0,a.length-1):a,range:{start:{line:t.position.line,character:i.index+1},end:{line:t.position.line,character:t.position.character}}}}))}return[]}};async function D2(){let e=new Vu,t=new df,n=new mf(t),r=(0,Pt.createConnection)(Pt.ProposedFeatures.all),i=new Pt.TextDocuments(Rn);async function o(l){let c=i.get(l);if(c)return c;let f=Ge.parse(l);if(f.scheme==="file"){if(f.path.endsWith(".cfg"))return c=Rn.create(l,"factorio-locale",1,await Ty.readFile(f.fsPath,"utf8")),c;if(f.path.endsWith("changelog.txt"))return c=Rn.create(l,"factorio-changelog",1,await Ty.readFile(f.fsPath,"utf8")),c}}async function s(l){let c=await o(l);if(c)switch(c.languageId){case"factorio-locale":t.loadDocument(c);break;case"factorio-changelog":e.loadDocument(c);break}}async function a(l){let c=Ge.parse(l);if(c.scheme==="file"){let f=ui(c.fsPath,{pattern:["**/locale/*/*.cfg","**/changelog.txt"]});f.on("match",h=>{s(Ge.file(h.absolute).toString())}),f.on("error",h=>{throw h}),await new Promise(h=>{f.on("end",()=>{h()})})}}let u=!1;return r.onInitialize(async l=>{let c=l.capabilities;u=!!(c.workspace&&c.workspace.workspaceFolders),t.hasDiagnosticRelatedInformationCapability=!!(c.textDocument&&c.textDocument.publishDiagnostics&&c.textDocument.publishDiagnostics.relatedInformation);let f={capabilities:{textDocumentSync:Pt.TextDocumentSyncKind.Incremental,documentSymbolProvider:!0,codeActionProvider:!0,colorProvider:!0,definitionProvider:!0,completionProvider:{triggerCharacters:['"',"'","."],allCommitCharacters:["."]},hoverProvider:!0}};return u&&(f.capabilities.workspace={workspaceFolders:{supported:!0,changeNotifications:!0}},l.workspaceFolders&&await Promise.all(l.workspaceFolders.map(h=>a(h.uri)))),f}),r.onInitialized(()=>{u&&r.workspace.onDidChangeWorkspaceFolders(async l=>{for(let c of l.removed)t.clearFolder(c.uri),e.clearFolder(c.uri);for(let c of l.added)await a(c.uri)})}),i.onDidClose(l=>{switch(l.document.languageId){case"factorio-locale":r.sendDiagnostics({uri:l.document.uri,diagnostics:[]});break;case"factorio-changelog":r.sendDiagnostics({uri:l.document.uri,diagnostics:[]});break}}),i.onDidChangeContent(l=>{switch(l.document.languageId){case"factorio-locale":t.loadDocument(l.document),r.sendDiagnostics({uri:l.document.uri,diagnostics:t.diagnose(l.document.uri)});break;case"factorio-changelog":e.loadDocument(l.document),r.sendDiagnostics({uri:l.document.uri,diagnostics:e.diagnose(l.document.uri)});break}}),r.onDefinition(async l=>{let c=await o(l.textDocument.uri);return c&&c.languageId==="lua"?n.onDefinition(l,c):null}),r.onCompletion(async l=>{let c=await o(l.textDocument.uri);if(c&&c.languageId==="lua")return{isIncomplete:!0,items:n.onCompletion(l,c)}}),r.onDidChangeWatchedFiles(l=>{for(let c of l.changes)switch(c.type){case Pt.FileChangeType.Deleted:t.clearDocument(c.uri),e.clearDocument(c.uri);break;case Pt.FileChangeType.Changed:case Pt.FileChangeType.Created:o(c.uri).then(f=>{if(f)switch(f.languageId){case"factorio-locale":t.loadDocument(f);break;case"factorio-changelog":e.loadDocument(f);break}});break;default:break}}),r.onHover(l=>{let c=i.get(l.textDocument.uri);return c&&c.languageId==="factorio-locale"?t.onHover(l,c):null}),r.onDocumentSymbol(l=>{let c=i.get(l.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return t.onDocumentSymbol(c);case"factorio-changelog":return e.onDocumentSymbol(c)}return null}),r.onCodeAction(l=>{let c=i.get(l.textDocument.uri);if(c)switch(c.languageId){case"factorio-locale":return t.onCodeAction(c,l.range,l.context);case"factorio-changelog":return e.onCodeAction(c,l.range,l.context)}return null}),r.onDocumentColor(l=>{let c=i.get(l.textDocument.uri);return c&&c.languageId==="factorio-locale"?t.onDocumentColor(c):null}),r.onColorPresentation(l=>{let c=i.get(l.textDocument.uri);return c&&c.languageId==="factorio-locale"?t.onColorPresentation(l.color,l.range):null}),i.listen(r),r.listen(),new Promise(l=>{r.onExit(l)})}fe.command("lsp").description("Run LSP Server for Locale and Changelog features").allowUnknownOption(!0).allowExcessArguments(!0).action(async()=>{await D2()});import*as w2 from"os";import*as _2 from"fs/promises";fe.command("debug <factorioPath>").description("Launch a DAP debug session").option("-d, --docs <docsPath>","path to runtime-api.json").option("-c, --config <configPath>","path to config.ini").option("-w, --workspace <workspacePath...>","path to workspace folders").action(async(e,t)=>{let n={name:"standalone",factorioPath:e,configPath:t.config,docsPath:t.docs},r=qt.joinPath(Ge.file(e),n.docsPath?n.docsPath:w2.platform()==="darwin"?"../../doc-html/runtime-api.json":"../../../doc-html/runtime-api.json"),i=await _2.readFile(r.fsPath,"utf8"),o=new Hy(vy,n,new Ta(i)),s=new Gy(o,vy,{async findWorkspaceFiles(a){let u=[];for(let l of t.workspace??[process.cwd()]){let c=ui(l,{pattern:a});c.on("match",f=>{u.push(Ge.file(f.absolute))}),c.on("error",f=>{throw f}),await new Promise(f=>{c.on("end",()=>{f()})})}return u}});process.on("SIGTERM",()=>{s.shutdown()}),s.start(process.stdin,process.stdout)});import*as x2 from"fs/promises";fe.command("scriptdat <file>").description("Dump script.dat").action(async e=>{let t=new Vy(new yr(await x2.readFile(e)));console.log(JSON.stringify({version:t.version.format(),data:t.data},void 0,2))});if(process.env.FMTK_TEST_ARGV)try{let e=JSON.parse(process.env.FMTK_TEST_ARGV);process.argv.push(...e),delete process.env.FMTK_TEST_ARGV}catch(e){console.log(`Error using extra args from FMTK_TEST_ARGV: ${e}`),process.exit(1)}await fe.description(`${Py} ${By}`).helpCommand("help").showHelpAfterError().showSuggestionAfterError().parseAsync(process.argv,{from:"node"}).catch(e=>{console.error(e),process.exit(1)}).then(()=>{process.send&&process.disconnect()});
|
|
117
119
|
/*! Bundled license information:
|
|
118
120
|
|
|
119
121
|
safe-buffer/index.js:
|