workspace-utils 1.0.6 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,217 +1,229 @@
1
1
  #!/usr/bin/env node
2
- import{createRequire as qZ}from"node:module";var o5=Object.create;var{getPrototypeOf:t5,defineProperty:y$,getOwnPropertyNames:e5}=Object;var _Z=Object.prototype.hasOwnProperty;var R1=(_,q,$)=>{$=_!=null?o5(t5(_)):{};let Z=q||!_||!_.__esModule?y$($,"default",{value:_,enumerable:!0}):$;for(let X of e5(_))if(!_Z.call(Z,X))y$(Z,X,{get:()=>_[X],enumerable:!0});return Z};var H=(_,q)=>()=>(q||_((q={exports:{}}).exports,q),q.exports);var x=qZ(import.meta.url);var H0=H(($Z)=>{class Mq extends Error{constructor(_,q,$){super($);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=q,this.exitCode=_,this.nestedError=void 0}}class h$ extends Mq{constructor(_){super(1,"commander.invalidArgument",_);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}$Z.CommanderError=Mq;$Z.InvalidArgumentError=h$});var t0=H((QZ)=>{var{InvalidArgumentError:zZ}=H0();class x${constructor(_,q){switch(this.description=q||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,_[0]){case"<":this.required=!0,this._name=_.slice(1,-1);break;case"[":this.required=!1,this._name=_.slice(1,-1);break;default:this.required=!0,this._name=_;break}if(this._name.length>3&&this._name.slice(-3)==="...")this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_concatValue(_,q){if(q===this.defaultValue||!Array.isArray(q))return[_];return q.concat(_)}default(_,q){return this.defaultValue=_,this.defaultValueDescription=q,this}argParser(_){return this.parseArg=_,this}choices(_){return this.argChoices=_.slice(),this.parseArg=(q,$)=>{if(!this.argChoices.includes(q))throw new zZ(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(q,$);return q},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function UZ(_){let q=_.name()+(_.variadic===!0?"...":"");return _.required?"<"+q+">":"["+q+"]"}QZ.Argument=x$;QZ.humanReadableArgName=UZ});var Iq=H((WZ)=>{var{humanReadableArgName:JZ}=t0();class g${constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(_){let q=_.commands.filter(($)=>!$._hidden);if(_._hasImplicitHelpCommand()){let[,$,Z]=_._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),X=_.createCommand($).helpOption(!1);if(X.description(_._helpCommandDescription),Z)X.arguments(Z);q.push(X)}if(this.sortSubcommands)q.sort(($,Z)=>{return $.name().localeCompare(Z.name())});return q}compareOptions(_,q){let $=(Z)=>{return Z.short?Z.short.replace(/^-/,""):Z.long.replace(/^--/,"")};return $(_).localeCompare($(q))}visibleOptions(_){let q=_.options.filter((X)=>!X.hidden),$=_._hasHelpOption&&_._helpShortFlag&&!_._findOption(_._helpShortFlag),Z=_._hasHelpOption&&!_._findOption(_._helpLongFlag);if($||Z){let X;if(!$)X=_.createOption(_._helpLongFlag,_._helpDescription);else if(!Z)X=_.createOption(_._helpShortFlag,_._helpDescription);else X=_.createOption(_._helpFlags,_._helpDescription);q.push(X)}if(this.sortOptions)q.sort(this.compareOptions);return q}visibleGlobalOptions(_){if(!this.showGlobalOptions)return[];let q=[];for(let $=_.parent;$;$=$.parent){let Z=$.options.filter((X)=>!X.hidden);q.push(...Z)}if(this.sortOptions)q.sort(this.compareOptions);return q}visibleArguments(_){if(_._argsDescription)_.registeredArguments.forEach((q)=>{q.description=q.description||_._argsDescription[q.name()]||""});if(_.registeredArguments.find((q)=>q.description))return _.registeredArguments;return[]}subcommandTerm(_){let q=_.registeredArguments.map(($)=>JZ($)).join(" ");return _._name+(_._aliases[0]?"|"+_._aliases[0]:"")+(_.options.length?" [options]":"")+(q?" "+q:"")}optionTerm(_){return _.flags}argumentTerm(_){return _.name()}longestSubcommandTermLength(_,q){return q.visibleCommands(_).reduce(($,Z)=>{return Math.max($,q.subcommandTerm(Z).length)},0)}longestOptionTermLength(_,q){return q.visibleOptions(_).reduce(($,Z)=>{return Math.max($,q.optionTerm(Z).length)},0)}longestGlobalOptionTermLength(_,q){return q.visibleGlobalOptions(_).reduce(($,Z)=>{return Math.max($,q.optionTerm(Z).length)},0)}longestArgumentTermLength(_,q){return q.visibleArguments(_).reduce(($,Z)=>{return Math.max($,q.argumentTerm(Z).length)},0)}commandUsage(_){let q=_._name;if(_._aliases[0])q=q+"|"+_._aliases[0];let $="";for(let Z=_.parent;Z;Z=Z.parent)$=Z.name()+" "+$;return $+q+" "+_.usage()}commandDescription(_){return _.description()}subcommandDescription(_){return _.summary()||_.description()}optionDescription(_){let q=[];if(_.argChoices)q.push(`choices: ${_.argChoices.map(($)=>JSON.stringify($)).join(", ")}`);if(_.defaultValue!==void 0){if(_.required||_.optional||_.isBoolean()&&typeof _.defaultValue==="boolean")q.push(`default: ${_.defaultValueDescription||JSON.stringify(_.defaultValue)}`)}if(_.presetArg!==void 0&&_.optional)q.push(`preset: ${JSON.stringify(_.presetArg)}`);if(_.envVar!==void 0)q.push(`env: ${_.envVar}`);if(q.length>0)return`${_.description} (${q.join(", ")})`;return _.description}argumentDescription(_){let q=[];if(_.argChoices)q.push(`choices: ${_.argChoices.map(($)=>JSON.stringify($)).join(", ")}`);if(_.defaultValue!==void 0)q.push(`default: ${_.defaultValueDescription||JSON.stringify(_.defaultValue)}`);if(q.length>0){let $=`(${q.join(", ")})`;if(_.description)return`${_.description} ${$}`;return $}return _.description}formatHelp(_,q){let $=q.padWidth(_,q),Z=q.helpWidth||80,X=2,z=2;function U(G,L){if(L){let F=`${G.padEnd($+2)}${L}`;return q.wrap(F,Z-2,$+2)}return G}function Q(G){return G.join(`
3
- `).replace(/^/gm," ".repeat(2))}let Y=[`Usage: ${q.commandUsage(_)}`,""],B=q.commandDescription(_);if(B.length>0)Y=Y.concat([q.wrap(B,Z,0),""]);let W=q.visibleArguments(_).map((G)=>{return U(q.argumentTerm(G),q.argumentDescription(G))});if(W.length>0)Y=Y.concat(["Arguments:",Q(W),""]);let V=q.visibleOptions(_).map((G)=>{return U(q.optionTerm(G),q.optionDescription(G))});if(V.length>0)Y=Y.concat(["Options:",Q(V),""]);if(this.showGlobalOptions){let G=q.visibleGlobalOptions(_).map((L)=>{return U(q.optionTerm(L),q.optionDescription(L))});if(G.length>0)Y=Y.concat(["Global Options:",Q(G),""])}let J=q.visibleCommands(_).map((G)=>{return U(q.subcommandTerm(G),q.subcommandDescription(G))});if(J.length>0)Y=Y.concat(["Commands:",Q(J),""]);return Y.join(`
2
+ import{createRequire as KZ}from"node:module";var MZ=Object.create;var{getPrototypeOf:HZ,defineProperty:i$,getOwnPropertyNames:IZ}=Object;var TZ=Object.prototype.hasOwnProperty;var w1=(_,q,$)=>{$=_!=null?MZ(HZ(_)):{};let Z=q||!_||!_.__esModule?i$($,"default",{value:_,enumerable:!0}):$;for(let X of IZ(_))if(!TZ.call(Z,X))i$(Z,X,{get:()=>_[X],enumerable:!0});return Z};var M=(_,q)=>()=>(q||_((q={exports:{}}).exports,q),q.exports);var v=KZ(import.meta.url);var K0=M((DZ)=>{class jq extends Error{constructor(_,q,$){super($);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=q,this.exitCode=_,this.nestedError=void 0}}class c$ extends jq{constructor(_){super(1,"commander.invalidArgument",_);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}DZ.CommanderError=jq;DZ.InvalidArgumentError=c$});var z_=M((PZ)=>{var{InvalidArgumentError:RZ}=K0();class p${constructor(_,q){switch(this.description=q||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,_[0]){case"<":this.required=!0,this._name=_.slice(1,-1);break;case"[":this.required=!1,this._name=_.slice(1,-1);break;default:this.required=!0,this._name=_;break}if(this._name.length>3&&this._name.slice(-3)==="...")this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_concatValue(_,q){if(q===this.defaultValue||!Array.isArray(q))return[_];return q.concat(_)}default(_,q){return this.defaultValue=_,this.defaultValueDescription=q,this}argParser(_){return this.parseArg=_,this}choices(_){return this.argChoices=_.slice(),this.parseArg=(q,$)=>{if(!this.argChoices.includes(q))throw new RZ(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(q,$);return q},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function jZ(_){let q=_.name()+(_.variadic===!0?"...":"");return _.required?"<"+q+">":"["+q+"]"}PZ.Argument=p$;PZ.humanReadableArgName=jZ});var Pq=M((NZ)=>{var{humanReadableArgName:fZ}=z_();class r${constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(_){let q=_.commands.filter(($)=>!$._hidden);if(_._hasImplicitHelpCommand()){let[,$,Z]=_._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),X=_.createCommand($).helpOption(!1);if(X.description(_._helpCommandDescription),Z)X.arguments(Z);q.push(X)}if(this.sortSubcommands)q.sort(($,Z)=>{return $.name().localeCompare(Z.name())});return q}compareOptions(_,q){let $=(Z)=>{return Z.short?Z.short.replace(/^-/,""):Z.long.replace(/^--/,"")};return $(_).localeCompare($(q))}visibleOptions(_){let q=_.options.filter((X)=>!X.hidden),$=_._hasHelpOption&&_._helpShortFlag&&!_._findOption(_._helpShortFlag),Z=_._hasHelpOption&&!_._findOption(_._helpLongFlag);if($||Z){let X;if(!$)X=_.createOption(_._helpLongFlag,_._helpDescription);else if(!Z)X=_.createOption(_._helpShortFlag,_._helpDescription);else X=_.createOption(_._helpFlags,_._helpDescription);q.push(X)}if(this.sortOptions)q.sort(this.compareOptions);return q}visibleGlobalOptions(_){if(!this.showGlobalOptions)return[];let q=[];for(let $=_.parent;$;$=$.parent){let Z=$.options.filter((X)=>!X.hidden);q.push(...Z)}if(this.sortOptions)q.sort(this.compareOptions);return q}visibleArguments(_){if(_._argsDescription)_.registeredArguments.forEach((q)=>{q.description=q.description||_._argsDescription[q.name()]||""});if(_.registeredArguments.find((q)=>q.description))return _.registeredArguments;return[]}subcommandTerm(_){let q=_.registeredArguments.map(($)=>fZ($)).join(" ");return _._name+(_._aliases[0]?"|"+_._aliases[0]:"")+(_.options.length?" [options]":"")+(q?" "+q:"")}optionTerm(_){return _.flags}argumentTerm(_){return _.name()}longestSubcommandTermLength(_,q){return q.visibleCommands(_).reduce(($,Z)=>{return Math.max($,q.subcommandTerm(Z).length)},0)}longestOptionTermLength(_,q){return q.visibleOptions(_).reduce(($,Z)=>{return Math.max($,q.optionTerm(Z).length)},0)}longestGlobalOptionTermLength(_,q){return q.visibleGlobalOptions(_).reduce(($,Z)=>{return Math.max($,q.optionTerm(Z).length)},0)}longestArgumentTermLength(_,q){return q.visibleArguments(_).reduce(($,Z)=>{return Math.max($,q.argumentTerm(Z).length)},0)}commandUsage(_){let q=_._name;if(_._aliases[0])q=q+"|"+_._aliases[0];let $="";for(let Z=_.parent;Z;Z=Z.parent)$=Z.name()+" "+$;return $+q+" "+_.usage()}commandDescription(_){return _.description()}subcommandDescription(_){return _.summary()||_.description()}optionDescription(_){let q=[];if(_.argChoices)q.push(`choices: ${_.argChoices.map(($)=>JSON.stringify($)).join(", ")}`);if(_.defaultValue!==void 0){if(_.required||_.optional||_.isBoolean()&&typeof _.defaultValue==="boolean")q.push(`default: ${_.defaultValueDescription||JSON.stringify(_.defaultValue)}`)}if(_.presetArg!==void 0&&_.optional)q.push(`preset: ${JSON.stringify(_.presetArg)}`);if(_.envVar!==void 0)q.push(`env: ${_.envVar}`);if(q.length>0)return`${_.description} (${q.join(", ")})`;return _.description}argumentDescription(_){let q=[];if(_.argChoices)q.push(`choices: ${_.argChoices.map(($)=>JSON.stringify($)).join(", ")}`);if(_.defaultValue!==void 0)q.push(`default: ${_.defaultValueDescription||JSON.stringify(_.defaultValue)}`);if(q.length>0){let $=`(${q.join(", ")})`;if(_.description)return`${_.description} ${$}`;return $}return _.description}formatHelp(_,q){let $=q.padWidth(_,q),Z=q.helpWidth||80,X=2,z=2;function U(F,L){if(L){let G=`${F.padEnd($+2)}${L}`;return q.wrap(G,Z-2,$+2)}return F}function Q(F){return F.join(`
3
+ `).replace(/^/gm," ".repeat(2))}let Y=[`Usage: ${q.commandUsage(_)}`,""],J=q.commandDescription(_);if(J.length>0)Y=Y.concat([q.wrap(J,Z,0),""]);let W=q.visibleArguments(_).map((F)=>{return U(q.argumentTerm(F),q.argumentDescription(F))});if(W.length>0)Y=Y.concat(["Arguments:",Q(W),""]);let V=q.visibleOptions(_).map((F)=>{return U(q.optionTerm(F),q.optionDescription(F))});if(V.length>0)Y=Y.concat(["Options:",Q(V),""]);if(this.showGlobalOptions){let F=q.visibleGlobalOptions(_).map((L)=>{return U(q.optionTerm(L),q.optionDescription(L))});if(F.length>0)Y=Y.concat(["Global Options:",Q(F),""])}let B=q.visibleCommands(_).map((F)=>{return U(q.subcommandTerm(F),q.subcommandDescription(F))});if(B.length>0)Y=Y.concat(["Commands:",Q(B),""]);return Y.join(`
4
4
  `)}padWidth(_,q){return Math.max(q.longestOptionTermLength(_,q),q.longestGlobalOptionTermLength(_,q),q.longestSubcommandTermLength(_,q),q.longestArgumentTermLength(_,q))}wrap(_,q,$,Z=40){let z=new RegExp(`[\\n][${" \\f\\t\\v   -    \uFEFF"}]+`);if(_.match(z))return _;let U=q-$;if(U<Z)return _;let Q=_.slice(0,$),Y=_.slice($).replace(`\r
5
5
  `,`
6
- `),B=" ".repeat($),V=`\\s${"​"}`,J=new RegExp(`
7
- |.{1,${U-1}}([${V}]|$)|[^${V}]+?([${V}]|$)`,"g"),G=Y.match(J)||[];return Q+G.map((L,F)=>{if(L===`
8
- `)return"";return(F>0?B:"")+L.trimEnd()}).join(`
9
- `)}}WZ.Help=g$});var Tq=H((LZ)=>{var{InvalidArgumentError:FZ}=H0();class k${constructor(_,q){this.flags=_,this.description=q||"",this.required=_.includes("<"),this.optional=_.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(_),this.mandatory=!1;let $=u$(_);if(this.short=$.shortFlag,this.long=$.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(_,q){return this.defaultValue=_,this.defaultValueDescription=q,this}preset(_){return this.presetArg=_,this}conflicts(_){return this.conflictsWith=this.conflictsWith.concat(_),this}implies(_){let q=_;if(typeof _==="string")q={[_]:!0};return this.implied=Object.assign(this.implied||{},q),this}env(_){return this.envVar=_,this}argParser(_){return this.parseArg=_,this}makeOptionMandatory(_=!0){return this.mandatory=!!_,this}hideHelp(_=!0){return this.hidden=!!_,this}_concatValue(_,q){if(q===this.defaultValue||!Array.isArray(q))return[_];return q.concat(_)}choices(_){return this.argChoices=_.slice(),this.parseArg=(q,$)=>{if(!this.argChoices.includes(q))throw new FZ(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(q,$);return q},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){return GZ(this.name().replace(/^no-/,""))}is(_){return this.short===_||this.long===_}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class v${constructor(_){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,_.forEach((q)=>{if(q.negate)this.negativeOptions.set(q.attributeName(),q);else this.positiveOptions.set(q.attributeName(),q)}),this.negativeOptions.forEach((q,$)=>{if(this.positiveOptions.has($))this.dualOptions.add($)})}valueFromOption(_,q){let $=q.attributeName();if(!this.dualOptions.has($))return!0;let Z=this.negativeOptions.get($).presetArg,X=Z!==void 0?Z:!1;return q.negate===(X===_)}}function GZ(_){return _.split("-").reduce((q,$)=>{return q+$[0].toUpperCase()+$.slice(1)})}function u$(_){let q,$,Z=_.split(/[ |,]+/);if(Z.length>1&&!/^[[<]/.test(Z[1]))q=Z.shift();if($=Z.shift(),!q&&/^-[^-]$/.test($))q=$,$=void 0;return{shortFlag:q,longFlag:$}}LZ.Option=k$;LZ.splitOptionFlags=u$;LZ.DualOptions=v$});var m$=H((DZ)=>{function TZ(_,q){if(Math.abs(_.length-q.length)>3)return Math.max(_.length,q.length);let $=[];for(let Z=0;Z<=_.length;Z++)$[Z]=[Z];for(let Z=0;Z<=q.length;Z++)$[0][Z]=Z;for(let Z=1;Z<=q.length;Z++)for(let X=1;X<=_.length;X++){let z=1;if(_[X-1]===q[Z-1])z=0;else z=1;if($[X][Z]=Math.min($[X-1][Z]+1,$[X][Z-1]+1,$[X-1][Z-1]+z),X>1&&Z>1&&_[X-1]===q[Z-2]&&_[X-2]===q[Z-1])$[X][Z]=Math.min($[X][Z],$[X-2][Z-2]+1)}return $[_.length][q.length]}function KZ(_,q){if(!q||q.length===0)return"";q=Array.from(new Set(q));let $=_.startsWith("--");if($)_=_.slice(2),q=q.map((U)=>U.slice(2));let Z=[],X=3,z=0.4;if(q.forEach((U)=>{if(U.length<=1)return;let Q=TZ(_,U),Y=Math.max(_.length,U.length);if((Y-Q)/Y>z){if(Q<X)X=Q,Z=[U];else if(Q===X)Z.push(U)}}),Z.sort((U,Q)=>U.localeCompare(Q)),$)Z=Z.map((U)=>`--${U}`);if(Z.length>1)return`
6
+ `),J=" ".repeat($),V=`\\s${"​"}`,B=new RegExp(`
7
+ |.{1,${U-1}}([${V}]|$)|[^${V}]+?([${V}]|$)`,"g"),F=Y.match(B)||[];return Q+F.map((L,G)=>{if(L===`
8
+ `)return"";return(G>0?J:"")+L.trimEnd()}).join(`
9
+ `)}}NZ.Help=r$});var Aq=M((yZ)=>{var{InvalidArgumentError:CZ}=K0();class s${constructor(_,q){this.flags=_,this.description=q||"",this.required=_.includes("<"),this.optional=_.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(_),this.mandatory=!1;let $=a$(_);if(this.short=$.shortFlag,this.long=$.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(_,q){return this.defaultValue=_,this.defaultValueDescription=q,this}preset(_){return this.presetArg=_,this}conflicts(_){return this.conflictsWith=this.conflictsWith.concat(_),this}implies(_){let q=_;if(typeof _==="string")q={[_]:!0};return this.implied=Object.assign(this.implied||{},q),this}env(_){return this.envVar=_,this}argParser(_){return this.parseArg=_,this}makeOptionMandatory(_=!0){return this.mandatory=!!_,this}hideHelp(_=!0){return this.hidden=!!_,this}_concatValue(_,q){if(q===this.defaultValue||!Array.isArray(q))return[_];return q.concat(_)}choices(_){return this.argChoices=_.slice(),this.parseArg=(q,$)=>{if(!this.argChoices.includes(q))throw new CZ(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._concatValue(q,$);return q},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){return bZ(this.name().replace(/^no-/,""))}is(_){return this.short===_||this.long===_}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class n${constructor(_){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,_.forEach((q)=>{if(q.negate)this.negativeOptions.set(q.attributeName(),q);else this.positiveOptions.set(q.attributeName(),q)}),this.negativeOptions.forEach((q,$)=>{if(this.positiveOptions.has($))this.dualOptions.add($)})}valueFromOption(_,q){let $=q.attributeName();if(!this.dualOptions.has($))return!0;let Z=this.negativeOptions.get($).presetArg,X=Z!==void 0?Z:!1;return q.negate===(X===_)}}function bZ(_){return _.split("-").reduce((q,$)=>{return q+$[0].toUpperCase()+$.slice(1)})}function a$(_){let q,$,Z=_.split(/[ |,]+/);if(Z.length>1&&!/^[[<]/.test(Z[1]))q=Z.shift();if($=Z.shift(),!q&&/^-[^-]$/.test($))q=$,$=void 0;return{shortFlag:q,longFlag:$}}yZ.Option=s$;yZ.splitOptionFlags=a$;yZ.DualOptions=n$});var o$=M((uZ)=>{function gZ(_,q){if(Math.abs(_.length-q.length)>3)return Math.max(_.length,q.length);let $=[];for(let Z=0;Z<=_.length;Z++)$[Z]=[Z];for(let Z=0;Z<=q.length;Z++)$[0][Z]=Z;for(let Z=1;Z<=q.length;Z++)for(let X=1;X<=_.length;X++){let z=1;if(_[X-1]===q[Z-1])z=0;else z=1;if($[X][Z]=Math.min($[X-1][Z]+1,$[X][Z-1]+1,$[X-1][Z-1]+z),X>1&&Z>1&&_[X-1]===q[Z-2]&&_[X-2]===q[Z-1])$[X][Z]=Math.min($[X][Z],$[X-2][Z-2]+1)}return $[_.length][q.length]}function kZ(_,q){if(!q||q.length===0)return"";q=Array.from(new Set(q));let $=_.startsWith("--");if($)_=_.slice(2),q=q.map((U)=>U.slice(2));let Z=[],X=3,z=0.4;if(q.forEach((U)=>{if(U.length<=1)return;let Q=gZ(_,U),Y=Math.max(_.length,U.length);if((Y-Q)/Y>z){if(Q<X)X=Q,Z=[U];else if(Q===X)Z.push(U)}}),Z.sort((U,Q)=>U.localeCompare(Q)),$)Z=Z.map((U)=>`--${U}`);if(Z.length>1)return`
10
10
  (Did you mean one of ${Z.join(", ")}?)`;if(Z.length===1)return`
11
- (Did you mean ${Z[0]}?)`;return""}DZ.suggestSimilar=KZ});var p$=H((NZ)=>{var SZ=x("events").EventEmitter,Kq=x("child_process"),I1=x("path"),Dq=x("fs"),i=x("process"),{Argument:RZ,humanReadableArgName:PZ}=t0(),{CommanderError:wq}=H0(),{Help:jZ}=Iq(),{Option:d$,splitOptionFlags:AZ,DualOptions:OZ}=Tq(),{suggestSimilar:l$}=m$();class Sq extends SZ{constructor(_){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=_||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:(q)=>i.stdout.write(q),writeErr:(q)=>i.stderr.write(q),getOutHelpWidth:()=>i.stdout.isTTY?i.stdout.columns:void 0,getErrHelpWidth:()=>i.stderr.isTTY?i.stderr.columns:void 0,outputError:(q,$)=>$(q)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(_){return this._outputConfiguration=_._outputConfiguration,this._hasHelpOption=_._hasHelpOption,this._helpFlags=_._helpFlags,this._helpDescription=_._helpDescription,this._helpShortFlag=_._helpShortFlag,this._helpLongFlag=_._helpLongFlag,this._helpCommandName=_._helpCommandName,this._helpCommandnameAndArgs=_._helpCommandnameAndArgs,this._helpCommandDescription=_._helpCommandDescription,this._helpConfiguration=_._helpConfiguration,this._exitCallback=_._exitCallback,this._storeOptionsAsProperties=_._storeOptionsAsProperties,this._combineFlagAndOptionalValue=_._combineFlagAndOptionalValue,this._allowExcessArguments=_._allowExcessArguments,this._enablePositionalOptions=_._enablePositionalOptions,this._showHelpAfterError=_._showHelpAfterError,this._showSuggestionAfterError=_._showSuggestionAfterError,this}_getCommandAndAncestors(){let _=[];for(let q=this;q;q=q.parent)_.push(q);return _}command(_,q,$){let Z=q,X=$;if(typeof Z==="object"&&Z!==null)X=Z,Z=null;X=X||{};let[,z,U]=_.match(/([^ ]+) *(.*)/),Q=this.createCommand(z);if(Z)Q.description(Z),Q._executableHandler=!0;if(X.isDefault)this._defaultCommandName=Q._name;if(Q._hidden=!!(X.noHelp||X.hidden),Q._executableFile=X.executableFile||null,U)Q.arguments(U);if(this.commands.push(Q),Q.parent=this,Q.copyInheritedSettings(this),Z)return this;return Q}createCommand(_){return new Sq(_)}createHelp(){return Object.assign(new jZ,this.configureHelp())}configureHelp(_){if(_===void 0)return this._helpConfiguration;return this._helpConfiguration=_,this}configureOutput(_){if(_===void 0)return this._outputConfiguration;return Object.assign(this._outputConfiguration,_),this}showHelpAfterError(_=!0){if(typeof _!=="string")_=!!_;return this._showHelpAfterError=_,this}showSuggestionAfterError(_=!0){return this._showSuggestionAfterError=!!_,this}addCommand(_,q){if(!_._name)throw Error(`Command passed to .addCommand() must have a name
12
- - specify the name in Command constructor or using .name()`);if(q=q||{},q.isDefault)this._defaultCommandName=_._name;if(q.noHelp||q.hidden)_._hidden=!0;return this.commands.push(_),_.parent=this,this}createArgument(_,q){return new RZ(_,q)}argument(_,q,$,Z){let X=this.createArgument(_,q);if(typeof $==="function")X.default(Z).argParser($);else X.default($);return this.addArgument(X),this}arguments(_){return _.trim().split(/ +/).forEach((q)=>{this.argument(q)}),this}addArgument(_){let q=this.registeredArguments.slice(-1)[0];if(q&&q.variadic)throw Error(`only the last argument can be variadic '${q.name()}'`);if(_.required&&_.defaultValue!==void 0&&_.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${_.name()}'`);return this.registeredArguments.push(_),this}addHelpCommand(_,q){if(_===!1)this._addImplicitHelpCommand=!1;else{if(this._addImplicitHelpCommand=!0,typeof _==="string")this._helpCommandName=_.split(" ")[0],this._helpCommandnameAndArgs=_;this._helpCommandDescription=q||this._helpCommandDescription}return this}_hasImplicitHelpCommand(){if(this._addImplicitHelpCommand===void 0)return this.commands.length&&!this._actionHandler&&!this._findCommand("help");return this._addImplicitHelpCommand}hook(_,q){let $=["preSubcommand","preAction","postAction"];if(!$.includes(_))throw Error(`Unexpected value for event passed to hook : '${_}'.
13
- Expecting one of '${$.join("', '")}'`);if(this._lifeCycleHooks[_])this._lifeCycleHooks[_].push(q);else this._lifeCycleHooks[_]=[q];return this}exitOverride(_){if(_)this._exitCallback=_;else this._exitCallback=(q)=>{if(q.code!=="commander.executeSubCommandAsync")throw q};return this}_exit(_,q,$){if(this._exitCallback)this._exitCallback(new wq(_,q,$));i.exit(_)}action(_){let q=($)=>{let Z=this.registeredArguments.length,X=$.slice(0,Z);if(this._storeOptionsAsProperties)X[Z]=this;else X[Z]=this.opts();return X.push(this),_.apply(this,X)};return this._actionHandler=q,this}createOption(_,q){return new d$(_,q)}_callParseArg(_,q,$,Z){try{return _.parseArg(q,$)}catch(X){if(X.code==="commander.invalidArgument"){let z=`${Z} ${X.message}`;this.error(z,{exitCode:X.exitCode,code:X.code})}throw X}}addOption(_){let q=_.name(),$=_.attributeName();if(_.negate){let X=_.long.replace(/^--no-/,"--");if(!this._findOption(X))this.setOptionValueWithSource($,_.defaultValue===void 0?!0:_.defaultValue,"default")}else if(_.defaultValue!==void 0)this.setOptionValueWithSource($,_.defaultValue,"default");this.options.push(_);let Z=(X,z,U)=>{if(X==null&&_.presetArg!==void 0)X=_.presetArg;let Q=this.getOptionValue($);if(X!==null&&_.parseArg)X=this._callParseArg(_,X,Q,z);else if(X!==null&&_.variadic)X=_._concatValue(X,Q);if(X==null)if(_.negate)X=!1;else if(_.isBoolean()||_.optional)X=!0;else X="";this.setOptionValueWithSource($,X,U)};if(this.on("option:"+q,(X)=>{let z=`error: option '${_.flags}' argument '${X}' is invalid.`;Z(X,z,"cli")}),_.envVar)this.on("optionEnv:"+q,(X)=>{let z=`error: option '${_.flags}' value '${X}' from env '${_.envVar}' is invalid.`;Z(X,z,"env")});return this}_optionEx(_,q,$,Z,X){if(typeof q==="object"&&q instanceof d$)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let z=this.createOption(q,$);if(z.makeOptionMandatory(!!_.mandatory),typeof Z==="function")z.default(X).argParser(Z);else if(Z instanceof RegExp){let U=Z;Z=(Q,Y)=>{let B=U.exec(Q);return B?B[0]:Y},z.default(X).argParser(Z)}else z.default(Z);return this.addOption(z)}option(_,q,$,Z){return this._optionEx({},_,q,$,Z)}requiredOption(_,q,$,Z){return this._optionEx({mandatory:!0},_,q,$,Z)}combineFlagAndOptionalValue(_=!0){return this._combineFlagAndOptionalValue=!!_,this}allowUnknownOption(_=!0){return this._allowUnknownOption=!!_,this}allowExcessArguments(_=!0){return this._allowExcessArguments=!!_,this}enablePositionalOptions(_=!0){return this._enablePositionalOptions=!!_,this}passThroughOptions(_=!0){if(this._passThroughOptions=!!_,!!this.parent&&_&&!this.parent._enablePositionalOptions)throw Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(_=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!_,this}getOptionValue(_){if(this._storeOptionsAsProperties)return this[_];return this._optionValues[_]}setOptionValue(_,q){return this.setOptionValueWithSource(_,q,void 0)}setOptionValueWithSource(_,q,$){if(this._storeOptionsAsProperties)this[_]=q;else this._optionValues[_]=q;return this._optionValueSources[_]=$,this}getOptionValueSource(_){return this._optionValueSources[_]}getOptionValueSourceWithGlobals(_){let q;return this._getCommandAndAncestors().forEach(($)=>{if($.getOptionValueSource(_)!==void 0)q=$.getOptionValueSource(_)}),q}_prepareUserArgs(_,q){if(_!==void 0&&!Array.isArray(_))throw Error("first parameter to parse must be array or undefined");if(q=q||{},_===void 0){if(_=i.argv,i.versions&&i.versions.electron)q.from="electron"}this.rawArgs=_.slice();let $;switch(q.from){case void 0:case"node":this._scriptPath=_[1],$=_.slice(2);break;case"electron":if(i.defaultApp)this._scriptPath=_[1],$=_.slice(2);else $=_.slice(1);break;case"user":$=_.slice(0);break;default:throw Error(`unexpected parse option { from: '${q.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",$}parse(_,q){let $=this._prepareUserArgs(_,q);return this._parseCommand([],$),this}async parseAsync(_,q){let $=this._prepareUserArgs(_,q);return await this._parseCommand([],$),this}_executeSubCommand(_,q){q=q.slice();let $=!1,Z=[".js",".ts",".tsx",".mjs",".cjs"];function X(B,W){let V=I1.resolve(B,W);if(Dq.existsSync(V))return V;if(Z.includes(I1.extname(W)))return;let J=Z.find((G)=>Dq.existsSync(`${V}${G}`));if(J)return`${V}${J}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let z=_._executableFile||`${this._name}-${_._name}`,U=this._executableDir||"";if(this._scriptPath){let B;try{B=Dq.realpathSync(this._scriptPath)}catch(W){B=this._scriptPath}U=I1.resolve(I1.dirname(B),U)}if(U){let B=X(U,z);if(!B&&!_._executableFile&&this._scriptPath){let W=I1.basename(this._scriptPath,I1.extname(this._scriptPath));if(W!==this._name)B=X(U,`${W}-${_._name}`)}z=B||z}$=Z.includes(I1.extname(z));let Q;if(i.platform!=="win32")if($)q.unshift(z),q=c$(i.execArgv).concat(q),Q=Kq.spawn(i.argv[0],q,{stdio:"inherit"});else Q=Kq.spawn(z,q,{stdio:"inherit"});else q.unshift(z),q=c$(i.execArgv).concat(q),Q=Kq.spawn(i.execPath,q,{stdio:"inherit"});if(!Q.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((W)=>{i.on(W,()=>{if(Q.killed===!1&&Q.exitCode===null)Q.kill(W)})});let Y=this._exitCallback;if(!Y)Q.on("close",i.exit.bind(i));else Q.on("close",()=>{Y(new wq(i.exitCode||0,"commander.executeSubCommandAsync","(close)"))});Q.on("error",(B)=>{if(B.code==="ENOENT"){let W=U?`searched for local subcommand relative to directory '${U}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",V=`'${z}' does not exist
11
+ (Did you mean ${Z[0]}?)`;return""}uZ.suggestSimilar=kZ});var $4=M((sZ)=>{var dZ=v("events").EventEmitter,Oq=v("child_process"),S1=v("path"),fq=v("fs"),i=v("process"),{Argument:lZ,humanReadableArgName:iZ}=z_(),{CommanderError:Nq}=K0(),{Help:cZ}=Pq(),{Option:t$,splitOptionFlags:pZ,DualOptions:rZ}=Aq(),{suggestSimilar:e$}=o$();class Eq extends dZ{constructor(_){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=_||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:(q)=>i.stdout.write(q),writeErr:(q)=>i.stderr.write(q),getOutHelpWidth:()=>i.stdout.isTTY?i.stdout.columns:void 0,getErrHelpWidth:()=>i.stderr.isTTY?i.stderr.columns:void 0,outputError:(q,$)=>$(q)},this._hidden=!1,this._hasHelpOption=!0,this._helpFlags="-h, --help",this._helpDescription="display help for command",this._helpShortFlag="-h",this._helpLongFlag="--help",this._addImplicitHelpCommand=void 0,this._helpCommandName="help",this._helpCommandnameAndArgs="help [command]",this._helpCommandDescription="display help for command",this._helpConfiguration={}}copyInheritedSettings(_){return this._outputConfiguration=_._outputConfiguration,this._hasHelpOption=_._hasHelpOption,this._helpFlags=_._helpFlags,this._helpDescription=_._helpDescription,this._helpShortFlag=_._helpShortFlag,this._helpLongFlag=_._helpLongFlag,this._helpCommandName=_._helpCommandName,this._helpCommandnameAndArgs=_._helpCommandnameAndArgs,this._helpCommandDescription=_._helpCommandDescription,this._helpConfiguration=_._helpConfiguration,this._exitCallback=_._exitCallback,this._storeOptionsAsProperties=_._storeOptionsAsProperties,this._combineFlagAndOptionalValue=_._combineFlagAndOptionalValue,this._allowExcessArguments=_._allowExcessArguments,this._enablePositionalOptions=_._enablePositionalOptions,this._showHelpAfterError=_._showHelpAfterError,this._showSuggestionAfterError=_._showSuggestionAfterError,this}_getCommandAndAncestors(){let _=[];for(let q=this;q;q=q.parent)_.push(q);return _}command(_,q,$){let Z=q,X=$;if(typeof Z==="object"&&Z!==null)X=Z,Z=null;X=X||{};let[,z,U]=_.match(/([^ ]+) *(.*)/),Q=this.createCommand(z);if(Z)Q.description(Z),Q._executableHandler=!0;if(X.isDefault)this._defaultCommandName=Q._name;if(Q._hidden=!!(X.noHelp||X.hidden),Q._executableFile=X.executableFile||null,U)Q.arguments(U);if(this.commands.push(Q),Q.parent=this,Q.copyInheritedSettings(this),Z)return this;return Q}createCommand(_){return new Eq(_)}createHelp(){return Object.assign(new cZ,this.configureHelp())}configureHelp(_){if(_===void 0)return this._helpConfiguration;return this._helpConfiguration=_,this}configureOutput(_){if(_===void 0)return this._outputConfiguration;return Object.assign(this._outputConfiguration,_),this}showHelpAfterError(_=!0){if(typeof _!=="string")_=!!_;return this._showHelpAfterError=_,this}showSuggestionAfterError(_=!0){return this._showSuggestionAfterError=!!_,this}addCommand(_,q){if(!_._name)throw Error(`Command passed to .addCommand() must have a name
12
+ - specify the name in Command constructor or using .name()`);if(q=q||{},q.isDefault)this._defaultCommandName=_._name;if(q.noHelp||q.hidden)_._hidden=!0;return this.commands.push(_),_.parent=this,this}createArgument(_,q){return new lZ(_,q)}argument(_,q,$,Z){let X=this.createArgument(_,q);if(typeof $==="function")X.default(Z).argParser($);else X.default($);return this.addArgument(X),this}arguments(_){return _.trim().split(/ +/).forEach((q)=>{this.argument(q)}),this}addArgument(_){let q=this.registeredArguments.slice(-1)[0];if(q&&q.variadic)throw Error(`only the last argument can be variadic '${q.name()}'`);if(_.required&&_.defaultValue!==void 0&&_.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${_.name()}'`);return this.registeredArguments.push(_),this}addHelpCommand(_,q){if(_===!1)this._addImplicitHelpCommand=!1;else{if(this._addImplicitHelpCommand=!0,typeof _==="string")this._helpCommandName=_.split(" ")[0],this._helpCommandnameAndArgs=_;this._helpCommandDescription=q||this._helpCommandDescription}return this}_hasImplicitHelpCommand(){if(this._addImplicitHelpCommand===void 0)return this.commands.length&&!this._actionHandler&&!this._findCommand("help");return this._addImplicitHelpCommand}hook(_,q){let $=["preSubcommand","preAction","postAction"];if(!$.includes(_))throw Error(`Unexpected value for event passed to hook : '${_}'.
13
+ Expecting one of '${$.join("', '")}'`);if(this._lifeCycleHooks[_])this._lifeCycleHooks[_].push(q);else this._lifeCycleHooks[_]=[q];return this}exitOverride(_){if(_)this._exitCallback=_;else this._exitCallback=(q)=>{if(q.code!=="commander.executeSubCommandAsync")throw q};return this}_exit(_,q,$){if(this._exitCallback)this._exitCallback(new Nq(_,q,$));i.exit(_)}action(_){let q=($)=>{let Z=this.registeredArguments.length,X=$.slice(0,Z);if(this._storeOptionsAsProperties)X[Z]=this;else X[Z]=this.opts();return X.push(this),_.apply(this,X)};return this._actionHandler=q,this}createOption(_,q){return new t$(_,q)}_callParseArg(_,q,$,Z){try{return _.parseArg(q,$)}catch(X){if(X.code==="commander.invalidArgument"){let z=`${Z} ${X.message}`;this.error(z,{exitCode:X.exitCode,code:X.code})}throw X}}addOption(_){let q=_.name(),$=_.attributeName();if(_.negate){let X=_.long.replace(/^--no-/,"--");if(!this._findOption(X))this.setOptionValueWithSource($,_.defaultValue===void 0?!0:_.defaultValue,"default")}else if(_.defaultValue!==void 0)this.setOptionValueWithSource($,_.defaultValue,"default");this.options.push(_);let Z=(X,z,U)=>{if(X==null&&_.presetArg!==void 0)X=_.presetArg;let Q=this.getOptionValue($);if(X!==null&&_.parseArg)X=this._callParseArg(_,X,Q,z);else if(X!==null&&_.variadic)X=_._concatValue(X,Q);if(X==null)if(_.negate)X=!1;else if(_.isBoolean()||_.optional)X=!0;else X="";this.setOptionValueWithSource($,X,U)};if(this.on("option:"+q,(X)=>{let z=`error: option '${_.flags}' argument '${X}' is invalid.`;Z(X,z,"cli")}),_.envVar)this.on("optionEnv:"+q,(X)=>{let z=`error: option '${_.flags}' value '${X}' from env '${_.envVar}' is invalid.`;Z(X,z,"env")});return this}_optionEx(_,q,$,Z,X){if(typeof q==="object"&&q instanceof t$)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let z=this.createOption(q,$);if(z.makeOptionMandatory(!!_.mandatory),typeof Z==="function")z.default(X).argParser(Z);else if(Z instanceof RegExp){let U=Z;Z=(Q,Y)=>{let J=U.exec(Q);return J?J[0]:Y},z.default(X).argParser(Z)}else z.default(Z);return this.addOption(z)}option(_,q,$,Z){return this._optionEx({},_,q,$,Z)}requiredOption(_,q,$,Z){return this._optionEx({mandatory:!0},_,q,$,Z)}combineFlagAndOptionalValue(_=!0){return this._combineFlagAndOptionalValue=!!_,this}allowUnknownOption(_=!0){return this._allowUnknownOption=!!_,this}allowExcessArguments(_=!0){return this._allowExcessArguments=!!_,this}enablePositionalOptions(_=!0){return this._enablePositionalOptions=!!_,this}passThroughOptions(_=!0){if(this._passThroughOptions=!!_,!!this.parent&&_&&!this.parent._enablePositionalOptions)throw Error("passThroughOptions can not be used without turning on enablePositionalOptions for parent command(s)");return this}storeOptionsAsProperties(_=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");return this._storeOptionsAsProperties=!!_,this}getOptionValue(_){if(this._storeOptionsAsProperties)return this[_];return this._optionValues[_]}setOptionValue(_,q){return this.setOptionValueWithSource(_,q,void 0)}setOptionValueWithSource(_,q,$){if(this._storeOptionsAsProperties)this[_]=q;else this._optionValues[_]=q;return this._optionValueSources[_]=$,this}getOptionValueSource(_){return this._optionValueSources[_]}getOptionValueSourceWithGlobals(_){let q;return this._getCommandAndAncestors().forEach(($)=>{if($.getOptionValueSource(_)!==void 0)q=$.getOptionValueSource(_)}),q}_prepareUserArgs(_,q){if(_!==void 0&&!Array.isArray(_))throw Error("first parameter to parse must be array or undefined");if(q=q||{},_===void 0){if(_=i.argv,i.versions&&i.versions.electron)q.from="electron"}this.rawArgs=_.slice();let $;switch(q.from){case void 0:case"node":this._scriptPath=_[1],$=_.slice(2);break;case"electron":if(i.defaultApp)this._scriptPath=_[1],$=_.slice(2);else $=_.slice(1);break;case"user":$=_.slice(0);break;default:throw Error(`unexpected parse option { from: '${q.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",$}parse(_,q){let $=this._prepareUserArgs(_,q);return this._parseCommand([],$),this}async parseAsync(_,q){let $=this._prepareUserArgs(_,q);return await this._parseCommand([],$),this}_executeSubCommand(_,q){q=q.slice();let $=!1,Z=[".js",".ts",".tsx",".mjs",".cjs"];function X(J,W){let V=S1.resolve(J,W);if(fq.existsSync(V))return V;if(Z.includes(S1.extname(W)))return;let B=Z.find((F)=>fq.existsSync(`${V}${F}`));if(B)return`${V}${B}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let z=_._executableFile||`${this._name}-${_._name}`,U=this._executableDir||"";if(this._scriptPath){let J;try{J=fq.realpathSync(this._scriptPath)}catch(W){J=this._scriptPath}U=S1.resolve(S1.dirname(J),U)}if(U){let J=X(U,z);if(!J&&!_._executableFile&&this._scriptPath){let W=S1.basename(this._scriptPath,S1.extname(this._scriptPath));if(W!==this._name)J=X(U,`${W}-${_._name}`)}z=J||z}$=Z.includes(S1.extname(z));let Q;if(i.platform!=="win32")if($)q.unshift(z),q=q4(i.execArgv).concat(q),Q=Oq.spawn(i.argv[0],q,{stdio:"inherit"});else Q=Oq.spawn(z,q,{stdio:"inherit"});else q.unshift(z),q=q4(i.execArgv).concat(q),Q=Oq.spawn(i.execPath,q,{stdio:"inherit"});if(!Q.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((W)=>{i.on(W,()=>{if(Q.killed===!1&&Q.exitCode===null)Q.kill(W)})});let Y=this._exitCallback;if(!Y)Q.on("close",i.exit.bind(i));else Q.on("close",()=>{Y(new Nq(i.exitCode||0,"commander.executeSubCommandAsync","(close)"))});Q.on("error",(J)=>{if(J.code==="ENOENT"){let W=U?`searched for local subcommand relative to directory '${U}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",V=`'${z}' does not exist
14
14
  - if '${_._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
15
15
  - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
16
- - ${W}`;throw Error(V)}else if(B.code==="EACCES")throw Error(`'${z}' not executable`);if(!Y)i.exit(1);else{let W=new wq(1,"commander.executeSubCommandAsync","(error)");W.nestedError=B,Y(W)}}),this.runningCommand=Q}_dispatchSubcommand(_,q,$){let Z=this._findCommand(_);if(!Z)this.help({error:!0});let X;return X=this._chainOrCallSubCommandHook(X,Z,"preSubcommand"),X=this._chainOrCall(X,()=>{if(Z._executableHandler)this._executeSubCommand(Z,q.concat($));else return Z._parseCommand(q,$)}),X}_dispatchHelpCommand(_){if(!_)this.help();let q=this._findCommand(_);if(q&&!q._executableHandler)q.help();return this._dispatchSubcommand(_,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((_,q)=>{if(_.required&&this.args[q]==null)this.missingArgument(_.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let _=($,Z,X)=>{let z=Z;if(Z!==null&&$.parseArg){let U=`error: command-argument value '${Z}' is invalid for argument '${$.name()}'.`;z=this._callParseArg($,Z,X,U)}return z};this._checkNumberOfArguments();let q=[];this.registeredArguments.forEach(($,Z)=>{let X=$.defaultValue;if($.variadic){if(Z<this.args.length){if(X=this.args.slice(Z),$.parseArg)X=X.reduce((z,U)=>{return _($,U,z)},$.defaultValue)}else if(X===void 0)X=[]}else if(Z<this.args.length){if(X=this.args[Z],$.parseArg)X=_($,X,$.defaultValue)}q[Z]=X}),this.processedArgs=q}_chainOrCall(_,q){if(_&&_.then&&typeof _.then==="function")return _.then(()=>q());return q()}_chainOrCallHooks(_,q){let $=_,Z=[];if(this._getCommandAndAncestors().reverse().filter((X)=>X._lifeCycleHooks[q]!==void 0).forEach((X)=>{X._lifeCycleHooks[q].forEach((z)=>{Z.push({hookedCommand:X,callback:z})})}),q==="postAction")Z.reverse();return Z.forEach((X)=>{$=this._chainOrCall($,()=>{return X.callback(X.hookedCommand,this)})}),$}_chainOrCallSubCommandHook(_,q,$){let Z=_;if(this._lifeCycleHooks[$]!==void 0)this._lifeCycleHooks[$].forEach((X)=>{Z=this._chainOrCall(Z,()=>{return X(this,q)})});return Z}_parseCommand(_,q){let $=this.parseOptions(q);if(this._parseOptionsEnv(),this._parseOptionsImplied(),_=_.concat($.operands),q=$.unknown,this.args=_.concat(q),_&&this._findCommand(_[0]))return this._dispatchSubcommand(_[0],_.slice(1),q);if(this._hasImplicitHelpCommand()&&_[0]===this._helpCommandName)return this._dispatchHelpCommand(_[1]);if(this._defaultCommandName)return i$(this,q),this._dispatchSubcommand(this._defaultCommandName,_,q);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});i$(this,$.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Z=()=>{if($.unknown.length>0)this.unknownOption($.unknown[0])},X=`command:${this.name()}`;if(this._actionHandler){Z(),this._processArguments();let z;if(z=this._chainOrCallHooks(z,"preAction"),z=this._chainOrCall(z,()=>this._actionHandler(this.processedArgs)),this.parent)z=this._chainOrCall(z,()=>{this.parent.emit(X,_,q)});return z=this._chainOrCallHooks(z,"postAction"),z}if(this.parent&&this.parent.listenerCount(X))Z(),this._processArguments(),this.parent.emit(X,_,q);else if(_.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",_,q);if(this.listenerCount("command:*"))this.emit("command:*",_,q);else if(this.commands.length)this.unknownCommand();else Z(),this._processArguments()}else if(this.commands.length)Z(),this.help({error:!0});else Z(),this._processArguments()}_findCommand(_){if(!_)return;return this.commands.find((q)=>q._name===_||q._aliases.includes(_))}_findOption(_){return this.options.find((q)=>q.is(_))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((_)=>{_.options.forEach((q)=>{if(q.mandatory&&_.getOptionValue(q.attributeName())===void 0)_.missingMandatoryOptionValue(q)})})}_checkForConflictingLocalOptions(){let _=this.options.filter(($)=>{let Z=$.attributeName();if(this.getOptionValue(Z)===void 0)return!1;return this.getOptionValueSource(Z)!=="default"});_.filter(($)=>$.conflictsWith.length>0).forEach(($)=>{let Z=_.find((X)=>$.conflictsWith.includes(X.attributeName()));if(Z)this._conflictingOption($,Z)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((_)=>{_._checkForConflictingLocalOptions()})}parseOptions(_){let q=[],$=[],Z=q,X=_.slice();function z(Q){return Q.length>1&&Q[0]==="-"}let U=null;while(X.length){let Q=X.shift();if(Q==="--"){if(Z===$)Z.push(Q);Z.push(...X);break}if(U&&!z(Q)){this.emit(`option:${U.name()}`,Q);continue}if(U=null,z(Q)){let Y=this._findOption(Q);if(Y){if(Y.required){let B=X.shift();if(B===void 0)this.optionMissingArgument(Y);this.emit(`option:${Y.name()}`,B)}else if(Y.optional){let B=null;if(X.length>0&&!z(X[0]))B=X.shift();this.emit(`option:${Y.name()}`,B)}else this.emit(`option:${Y.name()}`);U=Y.variadic?Y:null;continue}}if(Q.length>2&&Q[0]==="-"&&Q[1]!=="-"){let Y=this._findOption(`-${Q[1]}`);if(Y){if(Y.required||Y.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${Y.name()}`,Q.slice(2));else this.emit(`option:${Y.name()}`),X.unshift(`-${Q.slice(2)}`);continue}}if(/^--[^=]+=/.test(Q)){let Y=Q.indexOf("="),B=this._findOption(Q.slice(0,Y));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,Q.slice(Y+1));continue}}if(z(Q))Z=$;if((this._enablePositionalOptions||this._passThroughOptions)&&q.length===0&&$.length===0){if(this._findCommand(Q)){if(q.push(Q),X.length>0)$.push(...X);break}else if(Q===this._helpCommandName&&this._hasImplicitHelpCommand()){if(q.push(Q),X.length>0)q.push(...X);break}else if(this._defaultCommandName){if($.push(Q),X.length>0)$.push(...X);break}}if(this._passThroughOptions){if(Z.push(Q),X.length>0)Z.push(...X);break}Z.push(Q)}return{operands:q,unknown:$}}opts(){if(this._storeOptionsAsProperties){let _={},q=this.options.length;for(let $=0;$<q;$++){let Z=this.options[$].attributeName();_[Z]=Z===this._versionOptionName?this._version:this[Z]}return _}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((_,q)=>Object.assign(_,q.opts()),{})}error(_,q){if(this._outputConfiguration.outputError(`${_}
16
+ - ${W}`;throw Error(V)}else if(J.code==="EACCES")throw Error(`'${z}' not executable`);if(!Y)i.exit(1);else{let W=new Nq(1,"commander.executeSubCommandAsync","(error)");W.nestedError=J,Y(W)}}),this.runningCommand=Q}_dispatchSubcommand(_,q,$){let Z=this._findCommand(_);if(!Z)this.help({error:!0});let X;return X=this._chainOrCallSubCommandHook(X,Z,"preSubcommand"),X=this._chainOrCall(X,()=>{if(Z._executableHandler)this._executeSubCommand(Z,q.concat($));else return Z._parseCommand(q,$)}),X}_dispatchHelpCommand(_){if(!_)this.help();let q=this._findCommand(_);if(q&&!q._executableHandler)q.help();return this._dispatchSubcommand(_,[],[this._helpLongFlag||this._helpShortFlag])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((_,q)=>{if(_.required&&this.args[q]==null)this.missingArgument(_.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let _=($,Z,X)=>{let z=Z;if(Z!==null&&$.parseArg){let U=`error: command-argument value '${Z}' is invalid for argument '${$.name()}'.`;z=this._callParseArg($,Z,X,U)}return z};this._checkNumberOfArguments();let q=[];this.registeredArguments.forEach(($,Z)=>{let X=$.defaultValue;if($.variadic){if(Z<this.args.length){if(X=this.args.slice(Z),$.parseArg)X=X.reduce((z,U)=>{return _($,U,z)},$.defaultValue)}else if(X===void 0)X=[]}else if(Z<this.args.length){if(X=this.args[Z],$.parseArg)X=_($,X,$.defaultValue)}q[Z]=X}),this.processedArgs=q}_chainOrCall(_,q){if(_&&_.then&&typeof _.then==="function")return _.then(()=>q());return q()}_chainOrCallHooks(_,q){let $=_,Z=[];if(this._getCommandAndAncestors().reverse().filter((X)=>X._lifeCycleHooks[q]!==void 0).forEach((X)=>{X._lifeCycleHooks[q].forEach((z)=>{Z.push({hookedCommand:X,callback:z})})}),q==="postAction")Z.reverse();return Z.forEach((X)=>{$=this._chainOrCall($,()=>{return X.callback(X.hookedCommand,this)})}),$}_chainOrCallSubCommandHook(_,q,$){let Z=_;if(this._lifeCycleHooks[$]!==void 0)this._lifeCycleHooks[$].forEach((X)=>{Z=this._chainOrCall(Z,()=>{return X(this,q)})});return Z}_parseCommand(_,q){let $=this.parseOptions(q);if(this._parseOptionsEnv(),this._parseOptionsImplied(),_=_.concat($.operands),q=$.unknown,this.args=_.concat(q),_&&this._findCommand(_[0]))return this._dispatchSubcommand(_[0],_.slice(1),q);if(this._hasImplicitHelpCommand()&&_[0]===this._helpCommandName)return this._dispatchHelpCommand(_[1]);if(this._defaultCommandName)return _4(this,q),this._dispatchSubcommand(this._defaultCommandName,_,q);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});_4(this,$.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Z=()=>{if($.unknown.length>0)this.unknownOption($.unknown[0])},X=`command:${this.name()}`;if(this._actionHandler){Z(),this._processArguments();let z;if(z=this._chainOrCallHooks(z,"preAction"),z=this._chainOrCall(z,()=>this._actionHandler(this.processedArgs)),this.parent)z=this._chainOrCall(z,()=>{this.parent.emit(X,_,q)});return z=this._chainOrCallHooks(z,"postAction"),z}if(this.parent&&this.parent.listenerCount(X))Z(),this._processArguments(),this.parent.emit(X,_,q);else if(_.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",_,q);if(this.listenerCount("command:*"))this.emit("command:*",_,q);else if(this.commands.length)this.unknownCommand();else Z(),this._processArguments()}else if(this.commands.length)Z(),this.help({error:!0});else Z(),this._processArguments()}_findCommand(_){if(!_)return;return this.commands.find((q)=>q._name===_||q._aliases.includes(_))}_findOption(_){return this.options.find((q)=>q.is(_))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((_)=>{_.options.forEach((q)=>{if(q.mandatory&&_.getOptionValue(q.attributeName())===void 0)_.missingMandatoryOptionValue(q)})})}_checkForConflictingLocalOptions(){let _=this.options.filter(($)=>{let Z=$.attributeName();if(this.getOptionValue(Z)===void 0)return!1;return this.getOptionValueSource(Z)!=="default"});_.filter(($)=>$.conflictsWith.length>0).forEach(($)=>{let Z=_.find((X)=>$.conflictsWith.includes(X.attributeName()));if(Z)this._conflictingOption($,Z)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((_)=>{_._checkForConflictingLocalOptions()})}parseOptions(_){let q=[],$=[],Z=q,X=_.slice();function z(Q){return Q.length>1&&Q[0]==="-"}let U=null;while(X.length){let Q=X.shift();if(Q==="--"){if(Z===$)Z.push(Q);Z.push(...X);break}if(U&&!z(Q)){this.emit(`option:${U.name()}`,Q);continue}if(U=null,z(Q)){let Y=this._findOption(Q);if(Y){if(Y.required){let J=X.shift();if(J===void 0)this.optionMissingArgument(Y);this.emit(`option:${Y.name()}`,J)}else if(Y.optional){let J=null;if(X.length>0&&!z(X[0]))J=X.shift();this.emit(`option:${Y.name()}`,J)}else this.emit(`option:${Y.name()}`);U=Y.variadic?Y:null;continue}}if(Q.length>2&&Q[0]==="-"&&Q[1]!=="-"){let Y=this._findOption(`-${Q[1]}`);if(Y){if(Y.required||Y.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${Y.name()}`,Q.slice(2));else this.emit(`option:${Y.name()}`),X.unshift(`-${Q.slice(2)}`);continue}}if(/^--[^=]+=/.test(Q)){let Y=Q.indexOf("="),J=this._findOption(Q.slice(0,Y));if(J&&(J.required||J.optional)){this.emit(`option:${J.name()}`,Q.slice(Y+1));continue}}if(z(Q))Z=$;if((this._enablePositionalOptions||this._passThroughOptions)&&q.length===0&&$.length===0){if(this._findCommand(Q)){if(q.push(Q),X.length>0)$.push(...X);break}else if(Q===this._helpCommandName&&this._hasImplicitHelpCommand()){if(q.push(Q),X.length>0)q.push(...X);break}else if(this._defaultCommandName){if($.push(Q),X.length>0)$.push(...X);break}}if(this._passThroughOptions){if(Z.push(Q),X.length>0)Z.push(...X);break}Z.push(Q)}return{operands:q,unknown:$}}opts(){if(this._storeOptionsAsProperties){let _={},q=this.options.length;for(let $=0;$<q;$++){let Z=this.options[$].attributeName();_[Z]=Z===this._versionOptionName?this._version:this[Z]}return _}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((_,q)=>Object.assign(_,q.opts()),{})}error(_,q){if(this._outputConfiguration.outputError(`${_}
17
17
  `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
18
18
  `);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
19
- `),this.outputHelp({error:!0});let $=q||{},Z=$.exitCode||1,X=$.code||"commander.error";this._exit(Z,X,_)}_parseOptionsEnv(){this.options.forEach((_)=>{if(_.envVar&&_.envVar in i.env){let q=_.attributeName();if(this.getOptionValue(q)===void 0||["default","config","env"].includes(this.getOptionValueSource(q)))if(_.required||_.optional)this.emit(`optionEnv:${_.name()}`,i.env[_.envVar]);else this.emit(`optionEnv:${_.name()}`)}})}_parseOptionsImplied(){let _=new OZ(this.options),q=($)=>{return this.getOptionValue($)!==void 0&&!["default","implied"].includes(this.getOptionValueSource($))};this.options.filter(($)=>$.implied!==void 0&&q($.attributeName())&&_.valueFromOption(this.getOptionValue($.attributeName()),$)).forEach(($)=>{Object.keys($.implied).filter((Z)=>!q(Z)).forEach((Z)=>{this.setOptionValueWithSource(Z,$.implied[Z],"implied")})})}missingArgument(_){let q=`error: missing required argument '${_}'`;this.error(q,{code:"commander.missingArgument"})}optionMissingArgument(_){let q=`error: option '${_.flags}' argument missing`;this.error(q,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(_){let q=`error: required option '${_.flags}' not specified`;this.error(q,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(_,q){let $=(z)=>{let U=z.attributeName(),Q=this.getOptionValue(U),Y=this.options.find((W)=>W.negate&&U===W.attributeName()),B=this.options.find((W)=>!W.negate&&U===W.attributeName());if(Y&&(Y.presetArg===void 0&&Q===!1||Y.presetArg!==void 0&&Q===Y.presetArg))return Y;return B||z},Z=(z)=>{let U=$(z),Q=U.attributeName();if(this.getOptionValueSource(Q)==="env")return`environment variable '${U.envVar}'`;return`option '${U.flags}'`},X=`error: ${Z(_)} cannot be used with ${Z(q)}`;this.error(X,{code:"commander.conflictingOption"})}unknownOption(_){if(this._allowUnknownOption)return;let q="";if(_.startsWith("--")&&this._showSuggestionAfterError){let Z=[],X=this;do{let z=X.createHelp().visibleOptions(X).filter((U)=>U.long).map((U)=>U.long);Z=Z.concat(z),X=X.parent}while(X&&!X._enablePositionalOptions);q=l$(_,Z)}let $=`error: unknown option '${_}'${q}`;this.error($,{code:"commander.unknownOption"})}_excessArguments(_){if(this._allowExcessArguments)return;let q=this.registeredArguments.length,$=q===1?"":"s",X=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${q} argument${$} but got ${_.length}.`;this.error(X,{code:"commander.excessArguments"})}unknownCommand(){let _=this.args[0],q="";if(this._showSuggestionAfterError){let Z=[];this.createHelp().visibleCommands(this).forEach((X)=>{if(Z.push(X.name()),X.alias())Z.push(X.alias())}),q=l$(_,Z)}let $=`error: unknown command '${_}'${q}`;this.error($,{code:"commander.unknownCommand"})}version(_,q,$){if(_===void 0)return this._version;this._version=_,q=q||"-V, --version",$=$||"output the version number";let Z=this.createOption(q,$);return this._versionOptionName=Z.attributeName(),this.options.push(Z),this.on("option:"+Z.name(),()=>{this._outputConfiguration.writeOut(`${_}
20
- `),this._exit(0,"commander.version",_)}),this}description(_,q){if(_===void 0&&q===void 0)return this._description;if(this._description=_,q)this._argsDescription=q;return this}summary(_){if(_===void 0)return this._summary;return this._summary=_,this}alias(_){if(_===void 0)return this._aliases[0];let q=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)q=this.commands[this.commands.length-1];if(_===q._name)throw Error("Command alias can't be the same as its name");return q._aliases.push(_),this}aliases(_){if(_===void 0)return this._aliases;return _.forEach((q)=>this.alias(q)),this}usage(_){if(_===void 0){if(this._usage)return this._usage;let q=this.registeredArguments.map(($)=>{return PZ($)});return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?q:[]).join(" ")}return this._usage=_,this}name(_){if(_===void 0)return this._name;return this._name=_,this}nameFromFilename(_){return this._name=I1.basename(_,I1.extname(_)),this}executableDir(_){if(_===void 0)return this._executableDir;return this._executableDir=_,this}helpInformation(_){let q=this.createHelp();if(q.helpWidth===void 0)q.helpWidth=_&&_.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth();return q.formatHelp(this,q)}_getHelpContext(_){_=_||{};let q={error:!!_.error},$;if(q.error)$=(Z)=>this._outputConfiguration.writeErr(Z);else $=(Z)=>this._outputConfiguration.writeOut(Z);return q.write=_.write||$,q.command=this,q}outputHelp(_){let q;if(typeof _==="function")q=_,_=void 0;let $=this._getHelpContext(_);this._getCommandAndAncestors().reverse().forEach((X)=>X.emit("beforeAllHelp",$)),this.emit("beforeHelp",$);let Z=this.helpInformation($);if(q){if(Z=q(Z),typeof Z!=="string"&&!Buffer.isBuffer(Z))throw Error("outputHelp callback must return a string or a Buffer")}if($.write(Z),this._helpLongFlag)this.emit(this._helpLongFlag);this.emit("afterHelp",$),this._getCommandAndAncestors().forEach((X)=>X.emit("afterAllHelp",$))}helpOption(_,q){if(typeof _==="boolean")return this._hasHelpOption=_,this;this._helpFlags=_||this._helpFlags,this._helpDescription=q||this._helpDescription;let $=AZ(this._helpFlags);return this._helpShortFlag=$.shortFlag,this._helpLongFlag=$.longFlag,this}help(_){this.outputHelp(_);let q=i.exitCode||0;if(q===0&&_&&typeof _!=="function"&&_.error)q=1;this._exit(q,"commander.help","(outputHelp)")}addHelpText(_,q){let $=["beforeAll","before","after","afterAll"];if(!$.includes(_))throw Error(`Unexpected value for position to addHelpText.
19
+ `),this.outputHelp({error:!0});let $=q||{},Z=$.exitCode||1,X=$.code||"commander.error";this._exit(Z,X,_)}_parseOptionsEnv(){this.options.forEach((_)=>{if(_.envVar&&_.envVar in i.env){let q=_.attributeName();if(this.getOptionValue(q)===void 0||["default","config","env"].includes(this.getOptionValueSource(q)))if(_.required||_.optional)this.emit(`optionEnv:${_.name()}`,i.env[_.envVar]);else this.emit(`optionEnv:${_.name()}`)}})}_parseOptionsImplied(){let _=new rZ(this.options),q=($)=>{return this.getOptionValue($)!==void 0&&!["default","implied"].includes(this.getOptionValueSource($))};this.options.filter(($)=>$.implied!==void 0&&q($.attributeName())&&_.valueFromOption(this.getOptionValue($.attributeName()),$)).forEach(($)=>{Object.keys($.implied).filter((Z)=>!q(Z)).forEach((Z)=>{this.setOptionValueWithSource(Z,$.implied[Z],"implied")})})}missingArgument(_){let q=`error: missing required argument '${_}'`;this.error(q,{code:"commander.missingArgument"})}optionMissingArgument(_){let q=`error: option '${_.flags}' argument missing`;this.error(q,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(_){let q=`error: required option '${_.flags}' not specified`;this.error(q,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(_,q){let $=(z)=>{let U=z.attributeName(),Q=this.getOptionValue(U),Y=this.options.find((W)=>W.negate&&U===W.attributeName()),J=this.options.find((W)=>!W.negate&&U===W.attributeName());if(Y&&(Y.presetArg===void 0&&Q===!1||Y.presetArg!==void 0&&Q===Y.presetArg))return Y;return J||z},Z=(z)=>{let U=$(z),Q=U.attributeName();if(this.getOptionValueSource(Q)==="env")return`environment variable '${U.envVar}'`;return`option '${U.flags}'`},X=`error: ${Z(_)} cannot be used with ${Z(q)}`;this.error(X,{code:"commander.conflictingOption"})}unknownOption(_){if(this._allowUnknownOption)return;let q="";if(_.startsWith("--")&&this._showSuggestionAfterError){let Z=[],X=this;do{let z=X.createHelp().visibleOptions(X).filter((U)=>U.long).map((U)=>U.long);Z=Z.concat(z),X=X.parent}while(X&&!X._enablePositionalOptions);q=e$(_,Z)}let $=`error: unknown option '${_}'${q}`;this.error($,{code:"commander.unknownOption"})}_excessArguments(_){if(this._allowExcessArguments)return;let q=this.registeredArguments.length,$=q===1?"":"s",X=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${q} argument${$} but got ${_.length}.`;this.error(X,{code:"commander.excessArguments"})}unknownCommand(){let _=this.args[0],q="";if(this._showSuggestionAfterError){let Z=[];this.createHelp().visibleCommands(this).forEach((X)=>{if(Z.push(X.name()),X.alias())Z.push(X.alias())}),q=e$(_,Z)}let $=`error: unknown command '${_}'${q}`;this.error($,{code:"commander.unknownCommand"})}version(_,q,$){if(_===void 0)return this._version;this._version=_,q=q||"-V, --version",$=$||"output the version number";let Z=this.createOption(q,$);return this._versionOptionName=Z.attributeName(),this.options.push(Z),this.on("option:"+Z.name(),()=>{this._outputConfiguration.writeOut(`${_}
20
+ `),this._exit(0,"commander.version",_)}),this}description(_,q){if(_===void 0&&q===void 0)return this._description;if(this._description=_,q)this._argsDescription=q;return this}summary(_){if(_===void 0)return this._summary;return this._summary=_,this}alias(_){if(_===void 0)return this._aliases[0];let q=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)q=this.commands[this.commands.length-1];if(_===q._name)throw Error("Command alias can't be the same as its name");return q._aliases.push(_),this}aliases(_){if(_===void 0)return this._aliases;return _.forEach((q)=>this.alias(q)),this}usage(_){if(_===void 0){if(this._usage)return this._usage;let q=this.registeredArguments.map(($)=>{return iZ($)});return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?q:[]).join(" ")}return this._usage=_,this}name(_){if(_===void 0)return this._name;return this._name=_,this}nameFromFilename(_){return this._name=S1.basename(_,S1.extname(_)),this}executableDir(_){if(_===void 0)return this._executableDir;return this._executableDir=_,this}helpInformation(_){let q=this.createHelp();if(q.helpWidth===void 0)q.helpWidth=_&&_.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth();return q.formatHelp(this,q)}_getHelpContext(_){_=_||{};let q={error:!!_.error},$;if(q.error)$=(Z)=>this._outputConfiguration.writeErr(Z);else $=(Z)=>this._outputConfiguration.writeOut(Z);return q.write=_.write||$,q.command=this,q}outputHelp(_){let q;if(typeof _==="function")q=_,_=void 0;let $=this._getHelpContext(_);this._getCommandAndAncestors().reverse().forEach((X)=>X.emit("beforeAllHelp",$)),this.emit("beforeHelp",$);let Z=this.helpInformation($);if(q){if(Z=q(Z),typeof Z!=="string"&&!Buffer.isBuffer(Z))throw Error("outputHelp callback must return a string or a Buffer")}if($.write(Z),this._helpLongFlag)this.emit(this._helpLongFlag);this.emit("afterHelp",$),this._getCommandAndAncestors().forEach((X)=>X.emit("afterAllHelp",$))}helpOption(_,q){if(typeof _==="boolean")return this._hasHelpOption=_,this;this._helpFlags=_||this._helpFlags,this._helpDescription=q||this._helpDescription;let $=pZ(this._helpFlags);return this._helpShortFlag=$.shortFlag,this._helpLongFlag=$.longFlag,this}help(_){this.outputHelp(_);let q=i.exitCode||0;if(q===0&&_&&typeof _!=="function"&&_.error)q=1;this._exit(q,"commander.help","(outputHelp)")}addHelpText(_,q){let $=["beforeAll","before","after","afterAll"];if(!$.includes(_))throw Error(`Unexpected value for position to addHelpText.
21
21
  Expecting one of '${$.join("', '")}'`);let Z=`${_}Help`;return this.on(Z,(X)=>{let z;if(typeof q==="function")z=q({error:X.error,command:X.command});else z=q;if(z)X.write(`${z}
22
- `)}),this}}function i$(_,q){if(_._hasHelpOption&&q.find((Z)=>Z===_._helpLongFlag||Z===_._helpShortFlag))_.outputHelp(),_._exit(0,"commander.helpDisplayed","(outputHelp)")}function c$(_){return _.map((q)=>{if(!q.startsWith("--inspect"))return q;let $,Z="127.0.0.1",X="9229",z;if((z=q.match(/^(--inspect(-brk)?)$/))!==null)$=z[1];else if((z=q.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if($=z[1],/^\d+$/.test(z[3]))X=z[3];else Z=z[3];else if((z=q.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)$=z[1],Z=z[3],X=z[4];if($&&X!=="0")return`${$}=${Z}:${parseInt(X)+1}`;return q})}NZ.Command=Sq});var a$=H((Y1,n$)=>{var{Argument:EZ}=t0(),{Command:r$}=p$(),{CommanderError:CZ,InvalidArgumentError:s$}=H0(),{Help:bZ}=Iq(),{Option:yZ}=Tq();Y1=n$.exports=new r$;Y1.program=Y1;Y1.Command=r$;Y1.Option=yZ;Y1.Argument=EZ;Y1.Help=bZ;Y1.CommanderError=CZ;Y1.InvalidArgumentError=s$;Y1.InvalidOptionArgumentError=s$});var a1=H((ZT,Rq)=>{var __=process||{},e$=__.argv||[],e0=__.env||{},hZ=!(!!e0.NO_COLOR||e$.includes("--no-color"))&&(!!e0.FORCE_COLOR||e$.includes("--color")||__.platform==="win32"||(__.stdout||{}).isTTY&&e0.TERM!=="dumb"||!!e0.CI),xZ=(_,q,$=_)=>(Z)=>{let X=""+Z,z=X.indexOf(q,_.length);return~z?_+gZ(X,q,$,z)+q:_+X+q},gZ=(_,q,$,Z)=>{let X="",z=0;do X+=_.substring(z,Z)+$,z=Z+q.length,Z=_.indexOf(q,z);while(~Z);return X+_.substring(z)},_4=(_=hZ)=>{let q=_?xZ:()=>String;return{isColorSupported:_,reset:q("\x1B[0m","\x1B[0m"),bold:q("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:q("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:q("\x1B[3m","\x1B[23m"),underline:q("\x1B[4m","\x1B[24m"),inverse:q("\x1B[7m","\x1B[27m"),hidden:q("\x1B[8m","\x1B[28m"),strikethrough:q("\x1B[9m","\x1B[29m"),black:q("\x1B[30m","\x1B[39m"),red:q("\x1B[31m","\x1B[39m"),green:q("\x1B[32m","\x1B[39m"),yellow:q("\x1B[33m","\x1B[39m"),blue:q("\x1B[34m","\x1B[39m"),magenta:q("\x1B[35m","\x1B[39m"),cyan:q("\x1B[36m","\x1B[39m"),white:q("\x1B[37m","\x1B[39m"),gray:q("\x1B[90m","\x1B[39m"),bgBlack:q("\x1B[40m","\x1B[49m"),bgRed:q("\x1B[41m","\x1B[49m"),bgGreen:q("\x1B[42m","\x1B[49m"),bgYellow:q("\x1B[43m","\x1B[49m"),bgBlue:q("\x1B[44m","\x1B[49m"),bgMagenta:q("\x1B[45m","\x1B[49m"),bgCyan:q("\x1B[46m","\x1B[49m"),bgWhite:q("\x1B[47m","\x1B[49m"),blackBright:q("\x1B[90m","\x1B[39m"),redBright:q("\x1B[91m","\x1B[39m"),greenBright:q("\x1B[92m","\x1B[39m"),yellowBright:q("\x1B[93m","\x1B[39m"),blueBright:q("\x1B[94m","\x1B[39m"),magentaBright:q("\x1B[95m","\x1B[39m"),cyanBright:q("\x1B[96m","\x1B[39m"),whiteBright:q("\x1B[97m","\x1B[39m"),bgBlackBright:q("\x1B[100m","\x1B[49m"),bgRedBright:q("\x1B[101m","\x1B[49m"),bgGreenBright:q("\x1B[102m","\x1B[49m"),bgYellowBright:q("\x1B[103m","\x1B[49m"),bgBlueBright:q("\x1B[104m","\x1B[49m"),bgMagentaBright:q("\x1B[105m","\x1B[49m"),bgCyanBright:q("\x1B[106m","\x1B[49m"),bgWhiteBright:q("\x1B[107m","\x1B[49m")}};Rq.exports=_4();Rq.exports.createColors=_4});var Z4=H((q4)=>{Object.defineProperty(q4,"__esModule",{value:!0});q4.splitWhen=q4.flatten=void 0;function kZ(_){return _.reduce((q,$)=>[].concat(q,$),[])}q4.flatten=kZ;function vZ(_,q){let $=[[]],Z=0;for(let X of _)if(q(X))Z++,$[Z]=[];else $[Z].push(X);return $}q4.splitWhen=vZ});var U4=H((X4)=>{Object.defineProperty(X4,"__esModule",{value:!0});X4.isEnoentCodeError=void 0;function mZ(_){return _.code==="ENOENT"}X4.isEnoentCodeError=mZ});var J4=H((Y4)=>{Object.defineProperty(Y4,"__esModule",{value:!0});Y4.createDirentFromStats=void 0;class Q4{constructor(_,q){this.name=_,this.isBlockDevice=q.isBlockDevice.bind(q),this.isCharacterDevice=q.isCharacterDevice.bind(q),this.isDirectory=q.isDirectory.bind(q),this.isFIFO=q.isFIFO.bind(q),this.isFile=q.isFile.bind(q),this.isSocket=q.isSocket.bind(q),this.isSymbolicLink=q.isSymbolicLink.bind(q)}}function dZ(_,q){return new Q4(_,q)}Y4.createDirentFromStats=dZ});var H4=H((G4)=>{Object.defineProperty(G4,"__esModule",{value:!0});G4.convertPosixPathToPattern=G4.convertWindowsPathToPattern=G4.convertPathToPattern=G4.escapePosixPath=G4.escapeWindowsPath=G4.escape=G4.removeLeadingDotSegment=G4.makeAbsolute=G4.unixify=void 0;var lZ=x("os"),iZ=x("path"),W4=lZ.platform()==="win32",cZ=2,pZ=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,rZ=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,sZ=/^\\\\([.?])/,nZ=/\\(?![!()+@[\]{}])/g;function aZ(_){return _.replace(/\\/g,"/")}G4.unixify=aZ;function oZ(_,q){return iZ.resolve(_,q)}G4.makeAbsolute=oZ;function tZ(_){if(_.charAt(0)==="."){let q=_.charAt(1);if(q==="/"||q==="\\")return _.slice(cZ)}return _}G4.removeLeadingDotSegment=tZ;G4.escape=W4?Pq:jq;function Pq(_){return _.replace(rZ,"\\$2")}G4.escapeWindowsPath=Pq;function jq(_){return _.replace(pZ,"\\$2")}G4.escapePosixPath=jq;G4.convertPathToPattern=W4?V4:F4;function V4(_){return Pq(_).replace(sZ,"//$1").replace(nZ,"/")}G4.convertWindowsPathToPattern=V4;function F4(_){return jq(_)}G4.convertPosixPathToPattern=F4});var I4=H((YT,M4)=>{/*!
22
+ `)}),this}}function _4(_,q){if(_._hasHelpOption&&q.find((Z)=>Z===_._helpLongFlag||Z===_._helpShortFlag))_.outputHelp(),_._exit(0,"commander.helpDisplayed","(outputHelp)")}function q4(_){return _.map((q)=>{if(!q.startsWith("--inspect"))return q;let $,Z="127.0.0.1",X="9229",z;if((z=q.match(/^(--inspect(-brk)?)$/))!==null)$=z[1];else if((z=q.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if($=z[1],/^\d+$/.test(z[3]))X=z[3];else Z=z[3];else if((z=q.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)$=z[1],Z=z[3],X=z[4];if($&&X!=="0")return`${$}=${Z}:${parseInt(X)+1}`;return q})}sZ.Command=Eq});var U4=M((B1,z4)=>{var{Argument:aZ}=z_(),{Command:Z4}=$4(),{CommanderError:oZ,InvalidArgumentError:X4}=K0(),{Help:tZ}=Pq(),{Option:eZ}=Aq();B1=z4.exports=new Z4;B1.program=B1;B1.Command=Z4;B1.Option=eZ;B1.Argument=aZ;B1.Help=tZ;B1.CommanderError=oZ;B1.InvalidArgumentError=X4;B1.InvalidOptionArgumentError=X4});var u1=M((CT,Cq)=>{var Q_=process||{},J4=Q_.argv||[],U_=Q_.env||{},_X=!(!!U_.NO_COLOR||J4.includes("--no-color"))&&(!!U_.FORCE_COLOR||J4.includes("--color")||Q_.platform==="win32"||(Q_.stdout||{}).isTTY&&U_.TERM!=="dumb"||!!U_.CI),qX=(_,q,$=_)=>(Z)=>{let X=""+Z,z=X.indexOf(q,_.length);return~z?_+$X(X,q,$,z)+q:_+X+q},$X=(_,q,$,Z)=>{let X="",z=0;do X+=_.substring(z,Z)+$,z=Z+q.length,Z=_.indexOf(q,z);while(~Z);return X+_.substring(z)},B4=(_=_X)=>{let q=_?qX:()=>String;return{isColorSupported:_,reset:q("\x1B[0m","\x1B[0m"),bold:q("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:q("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:q("\x1B[3m","\x1B[23m"),underline:q("\x1B[4m","\x1B[24m"),inverse:q("\x1B[7m","\x1B[27m"),hidden:q("\x1B[8m","\x1B[28m"),strikethrough:q("\x1B[9m","\x1B[29m"),black:q("\x1B[30m","\x1B[39m"),red:q("\x1B[31m","\x1B[39m"),green:q("\x1B[32m","\x1B[39m"),yellow:q("\x1B[33m","\x1B[39m"),blue:q("\x1B[34m","\x1B[39m"),magenta:q("\x1B[35m","\x1B[39m"),cyan:q("\x1B[36m","\x1B[39m"),white:q("\x1B[37m","\x1B[39m"),gray:q("\x1B[90m","\x1B[39m"),bgBlack:q("\x1B[40m","\x1B[49m"),bgRed:q("\x1B[41m","\x1B[49m"),bgGreen:q("\x1B[42m","\x1B[49m"),bgYellow:q("\x1B[43m","\x1B[49m"),bgBlue:q("\x1B[44m","\x1B[49m"),bgMagenta:q("\x1B[45m","\x1B[49m"),bgCyan:q("\x1B[46m","\x1B[49m"),bgWhite:q("\x1B[47m","\x1B[49m"),blackBright:q("\x1B[90m","\x1B[39m"),redBright:q("\x1B[91m","\x1B[39m"),greenBright:q("\x1B[92m","\x1B[39m"),yellowBright:q("\x1B[93m","\x1B[39m"),blueBright:q("\x1B[94m","\x1B[39m"),magentaBright:q("\x1B[95m","\x1B[39m"),cyanBright:q("\x1B[96m","\x1B[39m"),whiteBright:q("\x1B[97m","\x1B[39m"),bgBlackBright:q("\x1B[100m","\x1B[49m"),bgRedBright:q("\x1B[101m","\x1B[49m"),bgGreenBright:q("\x1B[102m","\x1B[49m"),bgYellowBright:q("\x1B[103m","\x1B[49m"),bgBlueBright:q("\x1B[104m","\x1B[49m"),bgMagentaBright:q("\x1B[105m","\x1B[49m"),bgCyanBright:q("\x1B[106m","\x1B[49m"),bgWhiteBright:q("\x1B[107m","\x1B[49m")}};Cq.exports=B4();Cq.exports.createColors=B4});var G4=M((W4)=>{Object.defineProperty(W4,"__esModule",{value:!0});W4.splitWhen=W4.flatten=void 0;function ZX(_){return _.reduce((q,$)=>[].concat(q,$),[])}W4.flatten=ZX;function XX(_,q){let $=[[]],Z=0;for(let X of _)if(q(X))Z++,$[Z]=[];else $[Z].push(X);return $}W4.splitWhen=XX});var M4=M((F4)=>{Object.defineProperty(F4,"__esModule",{value:!0});F4.isEnoentCodeError=void 0;function UX(_){return _.code==="ENOENT"}F4.isEnoentCodeError=UX});var K4=M((I4)=>{Object.defineProperty(I4,"__esModule",{value:!0});I4.createDirentFromStats=void 0;class H4{constructor(_,q){this.name=_,this.isBlockDevice=q.isBlockDevice.bind(q),this.isCharacterDevice=q.isCharacterDevice.bind(q),this.isDirectory=q.isDirectory.bind(q),this.isFIFO=q.isFIFO.bind(q),this.isFile=q.isFile.bind(q),this.isSocket=q.isSocket.bind(q),this.isSymbolicLink=q.isSymbolicLink.bind(q)}}function QX(_,q){return new H4(_,q)}I4.createDirentFromStats=QX});var P4=M((R4)=>{Object.defineProperty(R4,"__esModule",{value:!0});R4.convertPosixPathToPattern=R4.convertWindowsPathToPattern=R4.convertPathToPattern=R4.escapePosixPath=R4.escapeWindowsPath=R4.escape=R4.removeLeadingDotSegment=R4.makeAbsolute=R4.unixify=void 0;var YX=v("os"),JX=v("path"),D4=YX.platform()==="win32",BX=2,WX=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,VX=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,GX=/^\\\\([.?])/,FX=/\\(?![!()+@[\]{}])/g;function LX(_){return _.replace(/\\/g,"/")}R4.unixify=LX;function MX(_,q){return JX.resolve(_,q)}R4.makeAbsolute=MX;function HX(_){if(_.charAt(0)==="."){let q=_.charAt(1);if(q==="/"||q==="\\")return _.slice(BX)}return _}R4.removeLeadingDotSegment=HX;R4.escape=D4?bq:yq;function bq(_){return _.replace(VX,"\\$2")}R4.escapeWindowsPath=bq;function yq(_){return _.replace(WX,"\\$2")}R4.escapePosixPath=yq;R4.convertPathToPattern=D4?w4:S4;function w4(_){return bq(_).replace(GX,"//$1").replace(FX,"/")}R4.convertWindowsPathToPattern=w4;function S4(_){return yq(_)}R4.convertPosixPathToPattern=S4});var O4=M((vT,A4)=>{/*!
23
23
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
24
24
  *
25
25
  * Copyright (c) 2014-2016, Jon Schlinkert.
26
26
  * Licensed under the MIT License.
27
- */M4.exports=function(q){if(typeof q!=="string"||q==="")return!1;var $;while($=/(\\).|([@?!+*]\(.*\))/g.exec(q)){if($[2])return!0;q=q.slice($.index+$[0].length)}return!1}});var D4=H((BT,K4)=>{/*!
27
+ */A4.exports=function(q){if(typeof q!=="string"||q==="")return!1;var $;while($=/(\\).|([@?!+*]\(.*\))/g.exec(q)){if($[2])return!0;q=q.slice($.index+$[0].length)}return!1}});var E4=M((gT,N4)=>{/*!
28
28
  * is-glob <https://github.com/jonschlinkert/is-glob>
29
29
  *
30
30
  * Copyright (c) 2014-2017, Jon Schlinkert.
31
31
  * Released under the MIT License.
32
- */var QX=I4(),T4={"{":"}","(":")","[":"]"},YX=function(_){if(_[0]==="!")return!0;var q=0,$=-2,Z=-2,X=-2,z=-2,U=-2;while(q<_.length){if(_[q]==="*")return!0;if(_[q+1]==="?"&&/[\].+)]/.test(_[q]))return!0;if(Z!==-1&&_[q]==="["&&_[q+1]!=="]"){if(Z<q)Z=_.indexOf("]",q);if(Z>q){if(U===-1||U>Z)return!0;if(U=_.indexOf("\\",q),U===-1||U>Z)return!0}}if(X!==-1&&_[q]==="{"&&_[q+1]!=="}"){if(X=_.indexOf("}",q),X>q){if(U=_.indexOf("\\",q),U===-1||U>X)return!0}}if(z!==-1&&_[q]==="("&&_[q+1]==="?"&&/[:!=]/.test(_[q+2])&&_[q+3]!==")"){if(z=_.indexOf(")",q),z>q){if(U=_.indexOf("\\",q),U===-1||U>z)return!0}}if($!==-1&&_[q]==="("&&_[q+1]!=="|"){if($<q)$=_.indexOf("|",q);if($!==-1&&_[$+1]!==")"){if(z=_.indexOf(")",$),z>$){if(U=_.indexOf("\\",$),U===-1||U>z)return!0}}}if(_[q]==="\\"){var Q=_[q+1];q+=2;var Y=T4[Q];if(Y){var B=_.indexOf(Y,q);if(B!==-1)q=B+1}if(_[q]==="!")return!0}else q++}return!1},BX=function(_){if(_[0]==="!")return!0;var q=0;while(q<_.length){if(/[*?{}()[\]]/.test(_[q]))return!0;if(_[q]==="\\"){var $=_[q+1];q+=2;var Z=T4[$];if(Z){var X=_.indexOf(Z,q);if(X!==-1)q=X+1}if(_[q]==="!")return!0}else q++}return!1};K4.exports=function(q,$){if(typeof q!=="string"||q==="")return!1;if(QX(q))return!0;var Z=YX;if($&&$.strict===!1)Z=BX;return Z(q)}});var S4=H((JT,w4)=>{var JX=D4(),WX=x("path").posix.dirname,VX=x("os").platform()==="win32",Aq="/",FX=/\\/g,GX=/[\{\[].*[\}\]]$/,LX=/(^|[^\\])([\{\[]|\([^\)]+$)/,HX=/\\([\!\*\?\|\[\]\(\)\{\}])/g;w4.exports=function(q,$){var Z=Object.assign({flipBackslashes:!0},$);if(Z.flipBackslashes&&VX&&q.indexOf(Aq)<0)q=q.replace(FX,Aq);if(GX.test(q))q+=Aq;q+="a";do q=WX(q);while(JX(q)||LX.test(q));return q.replace(HX,"$1")}});var q_=H((MX)=>{MX.isInteger=(_)=>{if(typeof _==="number")return Number.isInteger(_);if(typeof _==="string"&&_.trim()!=="")return Number.isInteger(Number(_));return!1};MX.find=(_,q)=>_.nodes.find(($)=>$.type===q);MX.exceedsLimit=(_,q,$=1,Z)=>{if(Z===!1)return!1;if(!MX.isInteger(_)||!MX.isInteger(q))return!1;return(Number(q)-Number(_))/Number($)>=Z};MX.escapeNode=(_,q=0,$)=>{let Z=_.nodes[q];if(!Z)return;if($&&Z.type===$||Z.type==="open"||Z.type==="close"){if(Z.escaped!==!0)Z.value="\\"+Z.value,Z.escaped=!0}};MX.encloseBrace=(_)=>{if(_.type!=="brace")return!1;if(_.commas>>0+_.ranges>>0===0)return _.invalid=!0,!0;return!1};MX.isInvalidBrace=(_)=>{if(_.type!=="brace")return!1;if(_.invalid===!0||_.dollar)return!0;if(_.commas>>0+_.ranges>>0===0)return _.invalid=!0,!0;if(_.open!==!0||_.close!==!0)return _.invalid=!0,!0;return!1};MX.isOpenOrClose=(_)=>{if(_.type==="open"||_.type==="close")return!0;return _.open===!0||_.close===!0};MX.reduce=(_)=>_.reduce((q,$)=>{if($.type==="text")q.push($.value);if($.type==="range")$.type="text";return q},[]);MX.flatten=(..._)=>{let q=[],$=(Z)=>{for(let X=0;X<Z.length;X++){let z=Z[X];if(Array.isArray(z)){$(z);continue}if(z!==void 0)q.push(z)}return q};return $(_),q}});var $_=H((VT,P4)=>{var R4=q_();P4.exports=(_,q={})=>{let $=(Z,X={})=>{let z=q.escapeInvalid&&R4.isInvalidBrace(X),U=Z.invalid===!0&&q.escapeInvalid===!0,Q="";if(Z.value){if((z||U)&&R4.isOpenOrClose(Z))return"\\"+Z.value;return Z.value}if(Z.value)return Z.value;if(Z.nodes)for(let Y of Z.nodes)Q+=$(Y);return Q};return $(_)}});var A4=H((FT,j4)=>{/*!
32
+ */var PX=O4(),f4={"{":"}","(":")","[":"]"},AX=function(_){if(_[0]==="!")return!0;var q=0,$=-2,Z=-2,X=-2,z=-2,U=-2;while(q<_.length){if(_[q]==="*")return!0;if(_[q+1]==="?"&&/[\].+)]/.test(_[q]))return!0;if(Z!==-1&&_[q]==="["&&_[q+1]!=="]"){if(Z<q)Z=_.indexOf("]",q);if(Z>q){if(U===-1||U>Z)return!0;if(U=_.indexOf("\\",q),U===-1||U>Z)return!0}}if(X!==-1&&_[q]==="{"&&_[q+1]!=="}"){if(X=_.indexOf("}",q),X>q){if(U=_.indexOf("\\",q),U===-1||U>X)return!0}}if(z!==-1&&_[q]==="("&&_[q+1]==="?"&&/[:!=]/.test(_[q+2])&&_[q+3]!==")"){if(z=_.indexOf(")",q),z>q){if(U=_.indexOf("\\",q),U===-1||U>z)return!0}}if($!==-1&&_[q]==="("&&_[q+1]!=="|"){if($<q)$=_.indexOf("|",q);if($!==-1&&_[$+1]!==")"){if(z=_.indexOf(")",$),z>$){if(U=_.indexOf("\\",$),U===-1||U>z)return!0}}}if(_[q]==="\\"){var Q=_[q+1];q+=2;var Y=f4[Q];if(Y){var J=_.indexOf(Y,q);if(J!==-1)q=J+1}if(_[q]==="!")return!0}else q++}return!1},OX=function(_){if(_[0]==="!")return!0;var q=0;while(q<_.length){if(/[*?{}()[\]]/.test(_[q]))return!0;if(_[q]==="\\"){var $=_[q+1];q+=2;var Z=f4[$];if(Z){var X=_.indexOf(Z,q);if(X!==-1)q=X+1}if(_[q]==="!")return!0}else q++}return!1};N4.exports=function(q,$){if(typeof q!=="string"||q==="")return!1;if(PX(q))return!0;var Z=AX;if($&&$.strict===!1)Z=OX;return Z(q)}});var b4=M((kT,C4)=>{var fX=E4(),NX=v("path").posix.dirname,EX=v("os").platform()==="win32",xq="/",CX=/\\/g,bX=/[\{\[].*[\}\]]$/,yX=/(^|[^\\])([\{\[]|\([^\)]+$)/,xX=/\\([\!\*\?\|\[\]\(\)\{\}])/g;C4.exports=function(q,$){var Z=Object.assign({flipBackslashes:!0},$);if(Z.flipBackslashes&&EX&&q.indexOf(xq)<0)q=q.replace(CX,xq);if(bX.test(q))q+=xq;q+="a";do q=NX(q);while(fX(q)||yX.test(q));return q.replace(xX,"$1")}});var Y_=M((hX)=>{hX.isInteger=(_)=>{if(typeof _==="number")return Number.isInteger(_);if(typeof _==="string"&&_.trim()!=="")return Number.isInteger(Number(_));return!1};hX.find=(_,q)=>_.nodes.find(($)=>$.type===q);hX.exceedsLimit=(_,q,$=1,Z)=>{if(Z===!1)return!1;if(!hX.isInteger(_)||!hX.isInteger(q))return!1;return(Number(q)-Number(_))/Number($)>=Z};hX.escapeNode=(_,q=0,$)=>{let Z=_.nodes[q];if(!Z)return;if($&&Z.type===$||Z.type==="open"||Z.type==="close"){if(Z.escaped!==!0)Z.value="\\"+Z.value,Z.escaped=!0}};hX.encloseBrace=(_)=>{if(_.type!=="brace")return!1;if(_.commas>>0+_.ranges>>0===0)return _.invalid=!0,!0;return!1};hX.isInvalidBrace=(_)=>{if(_.type!=="brace")return!1;if(_.invalid===!0||_.dollar)return!0;if(_.commas>>0+_.ranges>>0===0)return _.invalid=!0,!0;if(_.open!==!0||_.close!==!0)return _.invalid=!0,!0;return!1};hX.isOpenOrClose=(_)=>{if(_.type==="open"||_.type==="close")return!0;return _.open===!0||_.close===!0};hX.reduce=(_)=>_.reduce((q,$)=>{if($.type==="text")q.push($.value);if($.type==="range")$.type="text";return q},[]);hX.flatten=(..._)=>{let q=[],$=(Z)=>{for(let X=0;X<Z.length;X++){let z=Z[X];if(Array.isArray(z)){$(z);continue}if(z!==void 0)q.push(z)}return q};return $(_),q}});var J_=M((mT,x4)=>{var y4=Y_();x4.exports=(_,q={})=>{let $=(Z,X={})=>{let z=q.escapeInvalid&&y4.isInvalidBrace(X),U=Z.invalid===!0&&q.escapeInvalid===!0,Q="";if(Z.value){if((z||U)&&y4.isOpenOrClose(Z))return"\\"+Z.value;return Z.value}if(Z.value)return Z.value;if(Z.nodes)for(let Y of Z.nodes)Q+=$(Y);return Q};return $(_)}});var v4=M((dT,h4)=>{/*!
33
33
  * is-number <https://github.com/jonschlinkert/is-number>
34
34
  *
35
35
  * Copyright (c) 2014-present, Jon Schlinkert.
36
36
  * Released under the MIT License.
37
- */j4.exports=function(_){if(typeof _==="number")return _-_===0;if(typeof _==="string"&&_.trim()!=="")return Number.isFinite?Number.isFinite(+_):isFinite(+_);return!1}});var x4=H((GT,h4)=>{/*!
37
+ */h4.exports=function(_){if(typeof _==="number")return _-_===0;if(typeof _==="string"&&_.trim()!=="")return Number.isFinite?Number.isFinite(+_):isFinite(+_);return!1}});var p4=M((lT,c4)=>{/*!
38
38
  * to-regex-range <https://github.com/micromatch/to-regex-range>
39
39
  *
40
40
  * Copyright (c) 2015-present, Jon Schlinkert.
41
41
  * Released under the MIT License.
42
- */var O4=A4(),x1=(_,q,$)=>{if(O4(_)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(q===void 0||_===q)return String(_);if(O4(q)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let Z={relaxZeros:!0,...$};if(typeof Z.strictZeros==="boolean")Z.relaxZeros=Z.strictZeros===!1;let X=String(Z.relaxZeros),z=String(Z.shorthand),U=String(Z.capture),Q=String(Z.wrap),Y=_+":"+q+"="+X+z+U+Q;if(x1.cache.hasOwnProperty(Y))return x1.cache[Y].result;let B=Math.min(_,q),W=Math.max(_,q);if(Math.abs(B-W)===1){let F=_+"|"+q;if(Z.capture)return`(${F})`;if(Z.wrap===!1)return F;return`(?:${F})`}let V=y4(_)||y4(q),J={min:_,max:q,a:B,b:W},G=[],L=[];if(V)J.isPadded=V,J.maxLen=String(J.max).length;if(B<0){let F=W<0?Math.abs(W):1;L=N4(F,Math.abs(B),J,Z),B=J.a=0}if(W>=0)G=N4(B,W,J,Z);if(J.negatives=L,J.positives=G,J.result=jX(L,G,Z),Z.capture===!0)J.result=`(${J.result})`;else if(Z.wrap!==!1&&G.length+L.length>1)J.result=`(?:${J.result})`;return x1.cache[Y]=J,J.result};function jX(_,q,$){let Z=Nq(_,q,"-",!1,$)||[],X=Nq(q,_,"",!1,$)||[],z=Nq(_,q,"-?",!0,$)||[];return Z.concat(z).concat(X).join("|")}function AX(_,q){let $=1,Z=1,X=E4(_,$),z=new Set([q]);while(_<=X&&X<=q)z.add(X),$+=1,X=E4(_,$);X=C4(q+1,Z)-1;while(_<X&&X<=q)z.add(X),Z+=1,X=C4(q+1,Z)-1;return z=[...z],z.sort(fX),z}function OX(_,q,$){if(_===q)return{pattern:_,count:[],digits:0};let Z=NX(_,q),X=Z.length,z="",U=0;for(let Q=0;Q<X;Q++){let[Y,B]=Z[Q];if(Y===B)z+=Y;else if(Y!=="0"||B!=="9")z+=EX(Y,B,$);else U++}if(U)z+=$.shorthand===!0?"\\d":"[0-9]";return{pattern:z,count:[U],digits:X}}function N4(_,q,$,Z){let X=AX(_,q),z=[],U=_,Q;for(let Y=0;Y<X.length;Y++){let B=X[Y],W=OX(String(U),String(B),Z),V="";if(!$.isPadded&&Q&&Q.pattern===W.pattern){if(Q.count.length>1)Q.count.pop();Q.count.push(W.count[0]),Q.string=Q.pattern+b4(Q.count),U=B+1;continue}if($.isPadded)V=CX(B,$,Z);W.string=V+W.pattern+b4(W.count),z.push(W),U=B+1,Q=W}return z}function Nq(_,q,$,Z,X){let z=[];for(let U of _){let{string:Q}=U;if(!Z&&!f4(q,"string",Q))z.push($+Q);if(Z&&f4(q,"string",Q))z.push($+Q)}return z}function NX(_,q){let $=[];for(let Z=0;Z<_.length;Z++)$.push([_[Z],q[Z]]);return $}function fX(_,q){return _>q?1:q>_?-1:0}function f4(_,q,$){return _.some((Z)=>Z[q]===$)}function E4(_,q){return Number(String(_).slice(0,-q)+"9".repeat(q))}function C4(_,q){return _-_%Math.pow(10,q)}function b4(_){let[q=0,$=""]=_;if($||q>1)return`{${q+($?","+$:"")}}`;return""}function EX(_,q,$){return`[${_}${q-_===1?"":"-"}${q}]`}function y4(_){return/^-?(0+)\d/.test(_)}function CX(_,q,$){if(!q.isPadded)return _;let Z=Math.abs(q.maxLen-String(_).length),X=$.relaxZeros!==!1;switch(Z){case 0:return"";case 1:return X?"0?":"0";case 2:return X?"0{0,2}":"00";default:return X?`0{0,${Z}}`:`0{${Z}}`}}x1.cache={};x1.clearCache=()=>x1.cache={};h4.exports=x1});var Cq=H((LT,l4)=>{/*!
42
+ */var g4=v4(),m1=(_,q,$)=>{if(g4(_)===!1)throw TypeError("toRegexRange: expected the first argument to be a number");if(q===void 0||_===q)return String(_);if(g4(q)===!1)throw TypeError("toRegexRange: expected the second argument to be a number.");let Z={relaxZeros:!0,...$};if(typeof Z.strictZeros==="boolean")Z.relaxZeros=Z.strictZeros===!1;let X=String(Z.relaxZeros),z=String(Z.shorthand),U=String(Z.capture),Q=String(Z.wrap),Y=_+":"+q+"="+X+z+U+Q;if(m1.cache.hasOwnProperty(Y))return m1.cache[Y].result;let J=Math.min(_,q),W=Math.max(_,q);if(Math.abs(J-W)===1){let G=_+"|"+q;if(Z.capture)return`(${G})`;if(Z.wrap===!1)return G;return`(?:${G})`}let V=i4(_)||i4(q),B={min:_,max:q,a:J,b:W},F=[],L=[];if(V)B.isPadded=V,B.maxLen=String(B.max).length;if(J<0){let G=W<0?Math.abs(W):1;L=k4(G,Math.abs(J),B,Z),J=B.a=0}if(W>=0)F=k4(J,W,B,Z);if(B.negatives=L,B.positives=F,B.result=cX(L,F,Z),Z.capture===!0)B.result=`(${B.result})`;else if(Z.wrap!==!1&&F.length+L.length>1)B.result=`(?:${B.result})`;return m1.cache[Y]=B,B.result};function cX(_,q,$){let Z=vq(_,q,"-",!1,$)||[],X=vq(q,_,"",!1,$)||[],z=vq(_,q,"-?",!0,$)||[];return Z.concat(z).concat(X).join("|")}function pX(_,q){let $=1,Z=1,X=m4(_,$),z=new Set([q]);while(_<=X&&X<=q)z.add(X),$+=1,X=m4(_,$);X=d4(q+1,Z)-1;while(_<X&&X<=q)z.add(X),Z+=1,X=d4(q+1,Z)-1;return z=[...z],z.sort(nX),z}function rX(_,q,$){if(_===q)return{pattern:_,count:[],digits:0};let Z=sX(_,q),X=Z.length,z="",U=0;for(let Q=0;Q<X;Q++){let[Y,J]=Z[Q];if(Y===J)z+=Y;else if(Y!=="0"||J!=="9")z+=aX(Y,J,$);else U++}if(U)z+=$.shorthand===!0?"\\d":"[0-9]";return{pattern:z,count:[U],digits:X}}function k4(_,q,$,Z){let X=pX(_,q),z=[],U=_,Q;for(let Y=0;Y<X.length;Y++){let J=X[Y],W=rX(String(U),String(J),Z),V="";if(!$.isPadded&&Q&&Q.pattern===W.pattern){if(Q.count.length>1)Q.count.pop();Q.count.push(W.count[0]),Q.string=Q.pattern+l4(Q.count),U=J+1;continue}if($.isPadded)V=oX(J,$,Z);W.string=V+W.pattern+l4(W.count),z.push(W),U=J+1,Q=W}return z}function vq(_,q,$,Z,X){let z=[];for(let U of _){let{string:Q}=U;if(!Z&&!u4(q,"string",Q))z.push($+Q);if(Z&&u4(q,"string",Q))z.push($+Q)}return z}function sX(_,q){let $=[];for(let Z=0;Z<_.length;Z++)$.push([_[Z],q[Z]]);return $}function nX(_,q){return _>q?1:q>_?-1:0}function u4(_,q,$){return _.some((Z)=>Z[q]===$)}function m4(_,q){return Number(String(_).slice(0,-q)+"9".repeat(q))}function d4(_,q){return _-_%Math.pow(10,q)}function l4(_){let[q=0,$=""]=_;if($||q>1)return`{${q+($?","+$:"")}}`;return""}function aX(_,q,$){return`[${_}${q-_===1?"":"-"}${q}]`}function i4(_){return/^-?(0+)\d/.test(_)}function oX(_,q,$){if(!q.isPadded)return _;let Z=Math.abs(q.maxLen-String(_).length),X=$.relaxZeros!==!1;switch(Z){case 0:return"";case 1:return X?"0?":"0";case 2:return X?"0{0,2}":"00";default:return X?`0{0,${Z}}`:`0{${Z}}`}}m1.cache={};m1.clearCache=()=>m1.cache={};c4.exports=m1});var uq=M((iT,e4)=>{/*!
43
43
  * fill-range <https://github.com/jonschlinkert/fill-range>
44
44
  *
45
45
  * Copyright (c) 2014-present, Jon Schlinkert.
46
46
  * Licensed under the MIT License.
47
- */var bX=x("util"),k4=x4(),g4=(_)=>_!==null&&typeof _==="object"&&!Array.isArray(_),yX=(_)=>{return(q)=>_===!0?Number(q):String(q)},fq=(_)=>{return typeof _==="number"||typeof _==="string"&&_!==""},M0=(_)=>Number.isInteger(+_),Eq=(_)=>{let q=`${_}`,$=-1;if(q[0]==="-")q=q.slice(1);if(q==="0")return!1;while(q[++$]==="0");return $>0},hX=(_,q,$)=>{if(typeof _==="string"||typeof q==="string")return!0;return $.stringify===!0},xX=(_,q,$)=>{if(q>0){let Z=_[0]==="-"?"-":"";if(Z)_=_.slice(1);_=Z+_.padStart(Z?q-1:q,"0")}if($===!1)return String(_);return _},X_=(_,q)=>{let $=_[0]==="-"?"-":"";if($)_=_.slice(1),q--;while(_.length<q)_="0"+_;return $?"-"+_:_},gX=(_,q,$)=>{_.negatives.sort((Q,Y)=>Q<Y?-1:Q>Y?1:0),_.positives.sort((Q,Y)=>Q<Y?-1:Q>Y?1:0);let Z=q.capture?"":"?:",X="",z="",U;if(_.positives.length)X=_.positives.map((Q)=>X_(String(Q),$)).join("|");if(_.negatives.length)z=`-(${Z}${_.negatives.map((Q)=>X_(String(Q),$)).join("|")})`;if(X&&z)U=`${X}|${z}`;else U=X||z;if(q.wrap)return`(${Z}${U})`;return U},v4=(_,q,$,Z)=>{if($)return k4(_,q,{wrap:!1,...Z});let X=String.fromCharCode(_);if(_===q)return X;let z=String.fromCharCode(q);return`[${X}-${z}]`},u4=(_,q,$)=>{if(Array.isArray(_)){let Z=$.wrap===!0,X=$.capture?"":"?:";return Z?`(${X}${_.join("|")})`:_.join("|")}return k4(_,q,$)},m4=(..._)=>{return RangeError("Invalid range arguments: "+bX.inspect(..._))},d4=(_,q,$)=>{if($.strictRanges===!0)throw m4([_,q]);return[]},kX=(_,q)=>{if(q.strictRanges===!0)throw TypeError(`Expected step "${_}" to be a number`);return[]},vX=(_,q,$=1,Z={})=>{let X=Number(_),z=Number(q);if(!Number.isInteger(X)||!Number.isInteger(z)){if(Z.strictRanges===!0)throw m4([_,q]);return[]}if(X===0)X=0;if(z===0)z=0;let U=X>z,Q=String(_),Y=String(q),B=String($);$=Math.max(Math.abs($),1);let W=Eq(Q)||Eq(Y)||Eq(B),V=W?Math.max(Q.length,Y.length,B.length):0,J=W===!1&&hX(_,q,Z)===!1,G=Z.transform||yX(J);if(Z.toRegex&&$===1)return v4(X_(_,V),X_(q,V),!0,Z);let L={negatives:[],positives:[]},F=(j)=>L[j<0?"negatives":"positives"].push(Math.abs(j)),M=[],w=0;while(U?X>=z:X<=z){if(Z.toRegex===!0&&$>1)F(X);else M.push(xX(G(X,w),V,J));X=U?X-$:X+$,w++}if(Z.toRegex===!0)return $>1?gX(L,Z,V):u4(M,null,{wrap:!1,...Z});return M},uX=(_,q,$=1,Z={})=>{if(!M0(_)&&_.length>1||!M0(q)&&q.length>1)return d4(_,q,Z);let X=Z.transform||((J)=>String.fromCharCode(J)),z=`${_}`.charCodeAt(0),U=`${q}`.charCodeAt(0),Q=z>U,Y=Math.min(z,U),B=Math.max(z,U);if(Z.toRegex&&$===1)return v4(Y,B,!1,Z);let W=[],V=0;while(Q?z>=U:z<=U)W.push(X(z,V)),z=Q?z-$:z+$,V++;if(Z.toRegex===!0)return u4(W,null,{wrap:!1,options:Z});return W},Z_=(_,q,$,Z={})=>{if(q==null&&fq(_))return[_];if(!fq(_)||!fq(q))return d4(_,q,Z);if(typeof $==="function")return Z_(_,q,1,{transform:$});if(g4($))return Z_(_,q,0,$);let X={...Z};if(X.capture===!0)X.wrap=!0;if($=$||X.step||1,!M0($)){if($!=null&&!g4($))return kX($,X);return Z_(_,q,1,$)}if(M0(_)&&M0(q))return vX(_,q,$,X);return uX(_,q,Math.max(Math.abs($),1),X)};l4.exports=Z_});var p4=H((HT,c4)=>{var mX=Cq(),i4=q_(),dX=(_,q={})=>{let $=(Z,X={})=>{let z=i4.isInvalidBrace(X),U=Z.invalid===!0&&q.escapeInvalid===!0,Q=z===!0||U===!0,Y=q.escapeInvalid===!0?"\\":"",B="";if(Z.isOpen===!0)return Y+Z.value;if(Z.isClose===!0)return console.log("node.isClose",Y,Z.value),Y+Z.value;if(Z.type==="open")return Q?Y+Z.value:"(";if(Z.type==="close")return Q?Y+Z.value:")";if(Z.type==="comma")return Z.prev.type==="comma"?"":Q?Z.value:"|";if(Z.value)return Z.value;if(Z.nodes&&Z.ranges>0){let W=i4.reduce(Z.nodes),V=mX(...W,{...q,wrap:!1,toRegex:!0,strictZeros:!0});if(V.length!==0)return W.length>1&&V.length>1?`(${V})`:V}if(Z.nodes)for(let W of Z.nodes)B+=$(W,Z);return B};return $(_)};c4.exports=dX});var n4=H((MT,s4)=>{var lX=Cq(),r4=$_(),o1=q_(),g1=(_="",q="",$=!1)=>{let Z=[];if(_=[].concat(_),q=[].concat(q),!q.length)return _;if(!_.length)return $?o1.flatten(q).map((X)=>`{${X}}`):q;for(let X of _)if(Array.isArray(X))for(let z of X)Z.push(g1(z,q,$));else for(let z of q){if($===!0&&typeof z==="string")z=`{${z}}`;Z.push(Array.isArray(z)?g1(X,z,$):X+z)}return o1.flatten(Z)},iX=(_,q={})=>{let $=q.rangeLimit===void 0?1000:q.rangeLimit,Z=(X,z={})=>{X.queue=[];let U=z,Q=z.queue;while(U.type!=="brace"&&U.type!=="root"&&U.parent)U=U.parent,Q=U.queue;if(X.invalid||X.dollar){Q.push(g1(Q.pop(),r4(X,q)));return}if(X.type==="brace"&&X.invalid!==!0&&X.nodes.length===2){Q.push(g1(Q.pop(),["{}"]));return}if(X.nodes&&X.ranges>0){let V=o1.reduce(X.nodes);if(o1.exceedsLimit(...V,q.step,$))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let J=lX(...V,q);if(J.length===0)J=r4(X,q);Q.push(g1(Q.pop(),J)),X.nodes=[];return}let Y=o1.encloseBrace(X),B=X.queue,W=X;while(W.type!=="brace"&&W.type!=="root"&&W.parent)W=W.parent,B=W.queue;for(let V=0;V<X.nodes.length;V++){let J=X.nodes[V];if(J.type==="comma"&&X.type==="brace"){if(V===1)B.push("");B.push("");continue}if(J.type==="close"){Q.push(g1(Q.pop(),B,Y));continue}if(J.value&&J.type!=="open"){B.push(g1(B.pop(),J.value));continue}if(J.nodes)Z(J,X)}return B};return o1.flatten(Z(_))};s4.exports=iX});var o4=H((IT,a4)=>{a4.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
48
- `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var $3=H((TT,q3)=>{var cX=$_(),{MAX_LENGTH:t4,CHAR_BACKSLASH:bq,CHAR_BACKTICK:pX,CHAR_COMMA:rX,CHAR_DOT:sX,CHAR_LEFT_PARENTHESES:nX,CHAR_RIGHT_PARENTHESES:aX,CHAR_LEFT_CURLY_BRACE:oX,CHAR_RIGHT_CURLY_BRACE:tX,CHAR_LEFT_SQUARE_BRACKET:e4,CHAR_RIGHT_SQUARE_BRACKET:_3,CHAR_DOUBLE_QUOTE:eX,CHAR_SINGLE_QUOTE:_z,CHAR_NO_BREAK_SPACE:qz,CHAR_ZERO_WIDTH_NOBREAK_SPACE:$z}=o4(),Zz=(_,q={})=>{if(typeof _!=="string")throw TypeError("Expected a string");let $=q||{},Z=typeof $.maxLength==="number"?Math.min(t4,$.maxLength):t4;if(_.length>Z)throw SyntaxError(`Input length (${_.length}), exceeds max characters (${Z})`);let X={type:"root",input:_,nodes:[]},z=[X],U=X,Q=X,Y=0,B=_.length,W=0,V=0,J,G=()=>_[W++],L=(F)=>{if(F.type==="text"&&Q.type==="dot")Q.type="text";if(Q&&Q.type==="text"&&F.type==="text"){Q.value+=F.value;return}return U.nodes.push(F),F.parent=U,F.prev=Q,Q=F,F};L({type:"bos"});while(W<B){if(U=z[z.length-1],J=G(),J===$z||J===qz)continue;if(J===bq){L({type:"text",value:(q.keepEscaping?J:"")+G()});continue}if(J===_3){L({type:"text",value:"\\"+J});continue}if(J===e4){Y++;let F;while(W<B&&(F=G())){if(J+=F,F===e4){Y++;continue}if(F===bq){J+=G();continue}if(F===_3){if(Y--,Y===0)break}}L({type:"text",value:J});continue}if(J===nX){U=L({type:"paren",nodes:[]}),z.push(U),L({type:"text",value:J});continue}if(J===aX){if(U.type!=="paren"){L({type:"text",value:J});continue}U=z.pop(),L({type:"text",value:J}),U=z[z.length-1];continue}if(J===eX||J===_z||J===pX){let F=J,M;if(q.keepQuotes!==!0)J="";while(W<B&&(M=G())){if(M===bq){J+=M+G();continue}if(M===F){if(q.keepQuotes===!0)J+=M;break}J+=M}L({type:"text",value:J});continue}if(J===oX){V++;let M={type:"brace",open:!0,close:!1,dollar:Q.value&&Q.value.slice(-1)==="$"||U.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]};U=L(M),z.push(U),L({type:"open",value:J});continue}if(J===tX){if(U.type!=="brace"){L({type:"text",value:J});continue}let F="close";U=z.pop(),U.close=!0,L({type:F,value:J}),V--,U=z[z.length-1];continue}if(J===rX&&V>0){if(U.ranges>0){U.ranges=0;let F=U.nodes.shift();U.nodes=[F,{type:"text",value:cX(U)}]}L({type:"comma",value:J}),U.commas++;continue}if(J===sX&&V>0&&U.commas===0){let F=U.nodes;if(V===0||F.length===0){L({type:"text",value:J});continue}if(Q.type==="dot"){if(U.range=[],Q.value+=J,Q.type="range",U.nodes.length!==3&&U.nodes.length!==5){U.invalid=!0,U.ranges=0,Q.type="text";continue}U.ranges++,U.args=[];continue}if(Q.type==="range"){F.pop();let M=F[F.length-1];M.value+=Q.value+J,Q=M,U.ranges--;continue}L({type:"dot",value:J});continue}L({type:"text",value:J})}do if(U=z.pop(),U.type!=="root"){U.nodes.forEach((w)=>{if(!w.nodes){if(w.type==="open")w.isOpen=!0;if(w.type==="close")w.isClose=!0;if(!w.nodes)w.type="text";w.invalid=!0}});let F=z[z.length-1],M=F.nodes.indexOf(U);F.nodes.splice(M,1,...U.nodes)}while(z.length>0);return L({type:"eos"}),X};q3.exports=Zz});var z3=H((KT,X3)=>{var Z3=$_(),Xz=p4(),zz=n4(),Uz=$3(),q1=(_,q={})=>{let $=[];if(Array.isArray(_))for(let Z of _){let X=q1.create(Z,q);if(Array.isArray(X))$.push(...X);else $.push(X)}else $=[].concat(q1.create(_,q));if(q&&q.expand===!0&&q.nodupes===!0)$=[...new Set($)];return $};q1.parse=(_,q={})=>Uz(_,q);q1.stringify=(_,q={})=>{if(typeof _==="string")return Z3(q1.parse(_,q),q);return Z3(_,q)};q1.compile=(_,q={})=>{if(typeof _==="string")_=q1.parse(_,q);return Xz(_,q)};q1.expand=(_,q={})=>{if(typeof _==="string")_=q1.parse(_,q);let $=zz(_,q);if(q.noempty===!0)$=$.filter(Boolean);if(q.nodupes===!0)$=[...new Set($)];return $};q1.create=(_,q={})=>{if(_===""||_.length<3)return[_];return q.expand!==!0?q1.compile(_,q):q1.expand(_,q)};X3.exports=q1});var I0=H((DT,Q3)=>{var Qz=x("path"),U3={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},Yz={...U3,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},Bz={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Q3.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:Bz,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Qz.sep,extglobChars(_){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${_.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(_){return _===!0?Yz:U3}}});var T0=H((Hz)=>{var Jz=x("path"),Wz=process.platform==="win32",{REGEX_BACKSLASH:Vz,REGEX_REMOVE_BACKSLASH:Fz,REGEX_SPECIAL_CHARS:Gz,REGEX_SPECIAL_CHARS_GLOBAL:Lz}=I0();Hz.isObject=(_)=>_!==null&&typeof _==="object"&&!Array.isArray(_);Hz.hasRegexChars=(_)=>Gz.test(_);Hz.isRegexChar=(_)=>_.length===1&&Hz.hasRegexChars(_);Hz.escapeRegex=(_)=>_.replace(Lz,"\\$1");Hz.toPosixSlashes=(_)=>_.replace(Vz,"/");Hz.removeBackslashes=(_)=>{return _.replace(Fz,(q)=>{return q==="\\"?"":q})};Hz.supportsLookbehinds=()=>{let _=process.version.slice(1).split(".").map(Number);if(_.length===3&&_[0]>=9||_[0]===8&&_[1]>=10)return!0;return!1};Hz.isWindows=(_)=>{if(_&&typeof _.windows==="boolean")return _.windows;return Wz===!0||Jz.sep==="\\"};Hz.escapeLast=(_,q,$)=>{let Z=_.lastIndexOf(q,$);if(Z===-1)return _;if(_[Z-1]==="\\")return Hz.escapeLast(_,q,Z-1);return`${_.slice(0,Z)}\\${_.slice(Z)}`};Hz.removePrefix=(_,q={})=>{let $=_;if($.startsWith("./"))$=$.slice(2),q.prefix="./";return $};Hz.wrapOutput=(_,q={},$={})=>{let Z=$.contains?"":"^",X=$.contains?"":"$",z=`${Z}(?:${_})${X}`;if(q.negated===!0)z=`(?:^(?!${z}).*$)`;return z}});var M3=H((ST,H3)=>{var J3=T0(),{CHAR_ASTERISK:yq,CHAR_AT:jz,CHAR_BACKWARD_SLASH:K0,CHAR_COMMA:Az,CHAR_DOT:hq,CHAR_EXCLAMATION_MARK:xq,CHAR_FORWARD_SLASH:L3,CHAR_LEFT_CURLY_BRACE:gq,CHAR_LEFT_PARENTHESES:kq,CHAR_LEFT_SQUARE_BRACKET:Oz,CHAR_PLUS:Nz,CHAR_QUESTION_MARK:W3,CHAR_RIGHT_CURLY_BRACE:fz,CHAR_RIGHT_PARENTHESES:V3,CHAR_RIGHT_SQUARE_BRACKET:Ez}=I0(),F3=(_)=>{return _===L3||_===K0},G3=(_)=>{if(_.isPrefix!==!0)_.depth=_.isGlobstar?1/0:1},Cz=(_,q)=>{let $=q||{},Z=_.length-1,X=$.parts===!0||$.scanToEnd===!0,z=[],U=[],Q=[],Y=_,B=-1,W=0,V=0,J=!1,G=!1,L=!1,F=!1,M=!1,w=!1,j=!1,P=!1,E=!1,S=!1,A=0,O,I,C={value:"",depth:0,isGlob:!1},u=()=>B>=Z,D=()=>Y.charCodeAt(B+1),b=()=>{return O=I,Y.charCodeAt(++B)};while(B<Z){I=b();let a;if(I===K0){if(j=C.backslashes=!0,I=b(),I===gq)w=!0;continue}if(w===!0||I===gq){A++;while(u()!==!0&&(I=b())){if(I===K0){j=C.backslashes=!0,b();continue}if(I===gq){A++;continue}if(w!==!0&&I===hq&&(I=b())===hq){if(J=C.isBrace=!0,L=C.isGlob=!0,S=!0,X===!0)continue;break}if(w!==!0&&I===Az){if(J=C.isBrace=!0,L=C.isGlob=!0,S=!0,X===!0)continue;break}if(I===fz){if(A--,A===0){w=!1,J=C.isBrace=!0,S=!0;break}}}if(X===!0)continue;break}if(I===L3){if(z.push(B),U.push(C),C={value:"",depth:0,isGlob:!1},S===!0)continue;if(O===hq&&B===W+1){W+=2;continue}V=B+1;continue}if($.noext!==!0){if((I===Nz||I===jz||I===yq||I===W3||I===xq)===!0&&D()===kq){if(L=C.isGlob=!0,F=C.isExtglob=!0,S=!0,I===xq&&B===W)E=!0;if(X===!0){while(u()!==!0&&(I=b())){if(I===K0){j=C.backslashes=!0,I=b();continue}if(I===V3){L=C.isGlob=!0,S=!0;break}}continue}break}}if(I===yq){if(O===yq)M=C.isGlobstar=!0;if(L=C.isGlob=!0,S=!0,X===!0)continue;break}if(I===W3){if(L=C.isGlob=!0,S=!0,X===!0)continue;break}if(I===Oz){while(u()!==!0&&(a=b())){if(a===K0){j=C.backslashes=!0,b();continue}if(a===Ez){G=C.isBracket=!0,L=C.isGlob=!0,S=!0;break}}if(X===!0)continue;break}if($.nonegate!==!0&&I===xq&&B===W){P=C.negated=!0,W++;continue}if($.noparen!==!0&&I===kq){if(L=C.isGlob=!0,X===!0){while(u()!==!0&&(I=b())){if(I===kq){j=C.backslashes=!0,I=b();continue}if(I===V3){S=!0;break}}continue}break}if(L===!0){if(S=!0,X===!0)continue;break}}if($.noext===!0)F=!1,L=!1;let m=Y,S1="",T="";if(W>0)S1=Y.slice(0,W),Y=Y.slice(W),V-=W;if(m&&L===!0&&V>0)m=Y.slice(0,V),T=Y.slice(V);else if(L===!0)m="",T=Y;else m=Y;if(m&&m!==""&&m!=="/"&&m!==Y){if(F3(m.charCodeAt(m.length-1)))m=m.slice(0,-1)}if($.unescape===!0){if(T)T=J3.removeBackslashes(T);if(m&&j===!0)m=J3.removeBackslashes(m)}let K={prefix:S1,input:_,start:W,base:m,glob:T,isBrace:J,isBracket:G,isGlob:L,isExtglob:F,isGlobstar:M,negated:P,negatedExtglob:E};if($.tokens===!0){if(K.maxDepth=0,!F3(I))U.push(C);K.tokens=U}if($.parts===!0||$.tokens===!0){let a;for(let v=0;v<z.length;v++){let F1=a?a+1:W,G1=z[v],_1=_.slice(F1,G1);if($.tokens){if(v===0&&W!==0)U[v].isPrefix=!0,U[v].value=S1;else U[v].value=_1;G3(U[v]),K.maxDepth+=U[v].depth}if(v!==0||_1!=="")Q.push(_1);a=G1}if(a&&a+1<_.length){let v=_.slice(a+1);if(Q.push(v),$.tokens)U[U.length-1].value=v,G3(U[U.length-1]),K.maxDepth+=U[U.length-1].depth}K.slashes=z,K.parts=Q}return K};H3.exports=Cz});var K3=H((RT,T3)=>{var z_=I0(),$1=T0(),{MAX_LENGTH:U_,POSIX_REGEX_SOURCE:bz,REGEX_NON_SPECIAL_CHARS:yz,REGEX_SPECIAL_CHARS_BACKREF:hz,REPLACEMENTS:I3}=z_,xz=(_,q)=>{if(typeof q.expandRange==="function")return q.expandRange(..._,q);_.sort();let $=`[${_.join("-")}]`;try{new RegExp($)}catch(Z){return _.map((X)=>$1.escapeRegex(X)).join("..")}return $},t1=(_,q)=>{return`Missing ${_}: "${q}" - use "\\\\${q}" to match literal characters`},vq=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");_=I3[_]||_;let $={...q},Z=typeof $.maxLength==="number"?Math.min(U_,$.maxLength):U_,X=_.length;if(X>Z)throw SyntaxError(`Input length: ${X}, exceeds maximum allowed length: ${Z}`);let z={type:"bos",value:"",output:$.prepend||""},U=[z],Q=$.capture?"":"?:",Y=$1.isWindows(q),B=z_.globChars(Y),W=z_.extglobChars(B),{DOT_LITERAL:V,PLUS_LITERAL:J,SLASH_LITERAL:G,ONE_CHAR:L,DOTS_SLASH:F,NO_DOT:M,NO_DOT_SLASH:w,NO_DOTS_SLASH:j,QMARK:P,QMARK_NO_DOT:E,STAR:S,START_ANCHOR:A}=B,O=(N)=>{return`(${Q}(?:(?!${A}${N.dot?F:V}).)*?)`},I=$.dot?"":M,C=$.dot?P:E,u=$.bash===!0?O($):S;if($.capture)u=`(${u})`;if(typeof $.noext==="boolean")$.noextglob=$.noext;let D={input:_,index:-1,start:0,dot:$.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:U};_=$1.removePrefix(_,D),X=_.length;let b=[],m=[],S1=[],T=z,K,a=()=>D.index===X-1,v=D.peek=(N=1)=>_[D.index+N],F1=D.advance=()=>_[++D.index]||"",G1=()=>_.slice(D.index+1),_1=(N="",d=0)=>{D.consumed+=N,D.index+=d},s0=(N)=>{D.output+=N.output!=null?N.output:N.value,_1(N.value)},n5=()=>{let N=1;while(v()==="!"&&(v(2)!=="("||v(3)==="?"))F1(),D.start++,N++;if(N%2===0)return!1;return D.negated=!0,D.start++,!0},n0=(N)=>{D[N]++,S1.push(N)},h1=(N)=>{D[N]--,S1.pop()},h=(N)=>{if(T.type==="globstar"){let d=D.braces>0&&(N.type==="comma"||N.type==="brace"),R=N.extglob===!0||b.length&&(N.type==="pipe"||N.type==="paren");if(N.type!=="slash"&&N.type!=="paren"&&!d&&!R)D.output=D.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=u,D.output+=T.output}if(b.length&&N.type!=="paren")b[b.length-1].inner+=N.value;if(N.value||N.output)s0(N);if(T&&T.type==="text"&&N.type==="text"){T.value+=N.value,T.output=(T.output||"")+N.value;return}N.prev=T,U.push(N),T=N},a0=(N,d)=>{let R={...W[d],conditions:1,inner:""};R.prev=T,R.parens=D.parens,R.output=D.output;let y=($.capture?"(":"")+R.open;n0("parens"),h({type:N,value:d,output:D.output?"":L}),h({type:"paren",extglob:!0,value:F1(),output:y}),b.push(R)},a5=(N)=>{let d=N.close+($.capture?")":""),R;if(N.type==="negate"){let y=u;if(N.inner&&N.inner.length>1&&N.inner.includes("/"))y=O($);if(y!==u||a()||/^\)+$/.test(G1()))d=N.close=`)$))${y}`;if(N.inner.includes("*")&&(R=G1())&&/^\.[^\\/.]+$/.test(R)){let c=vq(R,{...q,fastpaths:!1}).output;d=N.close=`)${c})${y})`}if(N.prev.type==="bos")D.negatedExtglob=!0}h({type:"paren",extglob:!0,value:K,output:d}),h1("parens")};if($.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(_)){let N=!1,d=_.replace(hz,(R,y,c,o,s,Hq)=>{if(o==="\\")return N=!0,R;if(o==="?"){if(y)return y+o+(s?P.repeat(s.length):"");if(Hq===0)return C+(s?P.repeat(s.length):"");return P.repeat(c.length)}if(o===".")return V.repeat(c.length);if(o==="*"){if(y)return y+o+(s?u:"");return u}return y?R:`\\${R}`});if(N===!0)if($.unescape===!0)d=d.replace(/\\/g,"");else d=d.replace(/\\+/g,(R)=>{return R.length%2===0?"\\\\":R?"\\":""});if(d===_&&$.contains===!0)return D.output=_,D;return D.output=$1.wrapOutput(d,D,q),D}while(!a()){if(K=F1(),K==="\x00")continue;if(K==="\\"){let R=v();if(R==="/"&&$.bash!==!0)continue;if(R==="."||R===";")continue;if(!R){K+="\\",h({type:"text",value:K});continue}let y=/^\\+/.exec(G1()),c=0;if(y&&y[0].length>2){if(c=y[0].length,D.index+=c,c%2!==0)K+="\\"}if($.unescape===!0)K=F1();else K+=F1();if(D.brackets===0){h({type:"text",value:K});continue}}if(D.brackets>0&&(K!=="]"||T.value==="["||T.value==="[^")){if($.posix!==!1&&K===":"){let R=T.value.slice(1);if(R.includes("[")){if(T.posix=!0,R.includes(":")){let y=T.value.lastIndexOf("["),c=T.value.slice(0,y),o=T.value.slice(y+2),s=bz[o];if(s){if(T.value=c+s,D.backtrack=!0,F1(),!z.output&&U.indexOf(T)===1)z.output=L;continue}}}}if(K==="["&&v()!==":"||K==="-"&&v()==="]")K=`\\${K}`;if(K==="]"&&(T.value==="["||T.value==="[^"))K=`\\${K}`;if($.posix===!0&&K==="!"&&T.value==="[")K="^";T.value+=K,s0({value:K});continue}if(D.quotes===1&&K!=='"'){K=$1.escapeRegex(K),T.value+=K,s0({value:K});continue}if(K==='"'){if(D.quotes=D.quotes===1?0:1,$.keepQuotes===!0)h({type:"text",value:K});continue}if(K==="("){n0("parens"),h({type:"paren",value:K});continue}if(K===")"){if(D.parens===0&&$.strictBrackets===!0)throw SyntaxError(t1("opening","("));let R=b[b.length-1];if(R&&D.parens===R.parens+1){a5(b.pop());continue}h({type:"paren",value:K,output:D.parens?")":"\\)"}),h1("parens");continue}if(K==="["){if($.nobracket===!0||!G1().includes("]")){if($.nobracket!==!0&&$.strictBrackets===!0)throw SyntaxError(t1("closing","]"));K=`\\${K}`}else n0("brackets");h({type:"bracket",value:K});continue}if(K==="]"){if($.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){h({type:"text",value:K,output:`\\${K}`});continue}if(D.brackets===0){if($.strictBrackets===!0)throw SyntaxError(t1("opening","["));h({type:"text",value:K,output:`\\${K}`});continue}h1("brackets");let R=T.value.slice(1);if(T.posix!==!0&&R[0]==="^"&&!R.includes("/"))K=`/${K}`;if(T.value+=K,s0({value:K}),$.literalBrackets===!1||$1.hasRegexChars(R))continue;let y=$1.escapeRegex(T.value);if(D.output=D.output.slice(0,-T.value.length),$.literalBrackets===!0){D.output+=y,T.value=y;continue}T.value=`(${Q}${y}|${T.value})`,D.output+=T.value;continue}if(K==="{"&&$.nobrace!==!0){n0("braces");let R={type:"brace",value:K,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};m.push(R),h(R);continue}if(K==="}"){let R=m[m.length-1];if($.nobrace===!0||!R){h({type:"text",value:K,output:K});continue}let y=")";if(R.dots===!0){let c=U.slice(),o=[];for(let s=c.length-1;s>=0;s--){if(U.pop(),c[s].type==="brace")break;if(c[s].type!=="dots")o.unshift(c[s].value)}y=xz(o,$),D.backtrack=!0}if(R.comma!==!0&&R.dots!==!0){let c=D.output.slice(0,R.outputIndex),o=D.tokens.slice(R.tokensIndex);R.value=R.output="\\{",K=y="\\}",D.output=c;for(let s of o)D.output+=s.output||s.value}h({type:"brace",value:K,output:y}),h1("braces"),m.pop();continue}if(K==="|"){if(b.length>0)b[b.length-1].conditions++;h({type:"text",value:K});continue}if(K===","){let R=K,y=m[m.length-1];if(y&&S1[S1.length-1]==="braces")y.comma=!0,R="|";h({type:"comma",value:K,output:R});continue}if(K==="/"){if(T.type==="dot"&&D.index===D.start+1){D.start=D.index+1,D.consumed="",D.output="",U.pop(),T=z;continue}h({type:"slash",value:K,output:G});continue}if(K==="."){if(D.braces>0&&T.type==="dot"){if(T.value===".")T.output=V;let R=m[m.length-1];T.type="dots",T.output+=K,T.value+=K,R.dots=!0;continue}if(D.braces+D.parens===0&&T.type!=="bos"&&T.type!=="slash"){h({type:"text",value:K,output:V});continue}h({type:"dot",value:K,output:V});continue}if(K==="?"){if(!(T&&T.value==="(")&&$.noextglob!==!0&&v()==="("&&v(2)!=="?"){a0("qmark",K);continue}if(T&&T.type==="paren"){let y=v(),c=K;if(y==="<"&&!$1.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(T.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(G1()))c=`\\${K}`;h({type:"text",value:K,output:c});continue}if($.dot!==!0&&(T.type==="slash"||T.type==="bos")){h({type:"qmark",value:K,output:E});continue}h({type:"qmark",value:K,output:P});continue}if(K==="!"){if($.noextglob!==!0&&v()==="("){if(v(2)!=="?"||!/[!=<:]/.test(v(3))){a0("negate",K);continue}}if($.nonegate!==!0&&D.index===0){n5();continue}}if(K==="+"){if($.noextglob!==!0&&v()==="("&&v(2)!=="?"){a0("plus",K);continue}if(T&&T.value==="("||$.regex===!1){h({type:"plus",value:K,output:J});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||D.parens>0){h({type:"plus",value:K});continue}h({type:"plus",value:J});continue}if(K==="@"){if($.noextglob!==!0&&v()==="("&&v(2)!=="?"){h({type:"at",extglob:!0,value:K,output:""});continue}h({type:"text",value:K});continue}if(K!=="*"){if(K==="$"||K==="^")K=`\\${K}`;let R=yz.exec(G1());if(R)K+=R[0],D.index+=R[0].length;h({type:"text",value:K});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=K,T.output=u,D.backtrack=!0,D.globstar=!0,_1(K);continue}let N=G1();if($.noextglob!==!0&&/^\([^?]/.test(N)){a0("star",K);continue}if(T.type==="star"){if($.noglobstar===!0){_1(K);continue}let R=T.prev,y=R.prev,c=R.type==="slash"||R.type==="bos",o=y&&(y.type==="star"||y.type==="globstar");if($.bash===!0&&(!c||N[0]&&N[0]!=="/")){h({type:"star",value:K,output:""});continue}let s=D.braces>0&&(R.type==="comma"||R.type==="brace"),Hq=b.length&&(R.type==="pipe"||R.type==="paren");if(!c&&R.type!=="paren"&&!s&&!Hq){h({type:"star",value:K,output:""});continue}while(N.slice(0,3)==="/**"){let o0=_[D.index+4];if(o0&&o0!=="/")break;N=N.slice(3),_1("/**",3)}if(R.type==="bos"&&a()){T.type="globstar",T.value+=K,T.output=O($),D.output=T.output,D.globstar=!0,_1(K);continue}if(R.type==="slash"&&R.prev.type!=="bos"&&!o&&a()){D.output=D.output.slice(0,-(R.output+T.output).length),R.output=`(?:${R.output}`,T.type="globstar",T.output=O($)+($.strictSlashes?")":"|$)"),T.value+=K,D.globstar=!0,D.output+=R.output+T.output,_1(K);continue}if(R.type==="slash"&&R.prev.type!=="bos"&&N[0]==="/"){let o0=N[1]!==void 0?"|$":"";D.output=D.output.slice(0,-(R.output+T.output).length),R.output=`(?:${R.output}`,T.type="globstar",T.output=`${O($)}${G}|${G}${o0})`,T.value+=K,D.output+=R.output+T.output,D.globstar=!0,_1(K+F1()),h({type:"slash",value:"/",output:""});continue}if(R.type==="bos"&&N[0]==="/"){T.type="globstar",T.value+=K,T.output=`(?:^|${G}|${O($)}${G})`,D.output=T.output,D.globstar=!0,_1(K+F1()),h({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-T.output.length),T.type="globstar",T.output=O($),T.value+=K,D.output+=T.output,D.globstar=!0,_1(K);continue}let d={type:"star",value:K,output:u};if($.bash===!0){if(d.output=".*?",T.type==="bos"||T.type==="slash")d.output=I+d.output;h(d);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&$.regex===!0){d.output=K,h(d);continue}if(D.index===D.start||T.type==="slash"||T.type==="dot"){if(T.type==="dot")D.output+=w,T.output+=w;else if($.dot===!0)D.output+=j,T.output+=j;else D.output+=I,T.output+=I;if(v()!=="*")D.output+=L,T.output+=L}h(d)}while(D.brackets>0){if($.strictBrackets===!0)throw SyntaxError(t1("closing","]"));D.output=$1.escapeLast(D.output,"["),h1("brackets")}while(D.parens>0){if($.strictBrackets===!0)throw SyntaxError(t1("closing",")"));D.output=$1.escapeLast(D.output,"("),h1("parens")}while(D.braces>0){if($.strictBrackets===!0)throw SyntaxError(t1("closing","}"));D.output=$1.escapeLast(D.output,"{"),h1("braces")}if($.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket"))h({type:"maybe_slash",value:"",output:`${G}?`});if(D.backtrack===!0){D.output="";for(let N of D.tokens)if(D.output+=N.output!=null?N.output:N.value,N.suffix)D.output+=N.suffix}return D};vq.fastpaths=(_,q)=>{let $={...q},Z=typeof $.maxLength==="number"?Math.min(U_,$.maxLength):U_,X=_.length;if(X>Z)throw SyntaxError(`Input length: ${X}, exceeds maximum allowed length: ${Z}`);_=I3[_]||_;let z=$1.isWindows(q),{DOT_LITERAL:U,SLASH_LITERAL:Q,ONE_CHAR:Y,DOTS_SLASH:B,NO_DOT:W,NO_DOTS:V,NO_DOTS_SLASH:J,STAR:G,START_ANCHOR:L}=z_.globChars(z),F=$.dot?V:W,M=$.dot?J:W,w=$.capture?"":"?:",j={negated:!1,prefix:""},P=$.bash===!0?".*?":G;if($.capture)P=`(${P})`;let E=(I)=>{if(I.noglobstar===!0)return P;return`(${w}(?:(?!${L}${I.dot?B:U}).)*?)`},S=(I)=>{switch(I){case"*":return`${F}${Y}${P}`;case".*":return`${U}${Y}${P}`;case"*.*":return`${F}${P}${U}${Y}${P}`;case"*/*":return`${F}${P}${Q}${Y}${M}${P}`;case"**":return F+E($);case"**/*":return`(?:${F}${E($)}${Q})?${M}${Y}${P}`;case"**/*.*":return`(?:${F}${E($)}${Q})?${M}${P}${U}${Y}${P}`;case"**/.*":return`(?:${F}${E($)}${Q})?${U}${Y}${P}`;default:{let C=/^(.*?)\.(\w+)$/.exec(I);if(!C)return;let u=S(C[1]);if(!u)return;return u+U+C[2]}}},A=$1.removePrefix(_,j),O=S(A);if(O&&$.strictSlashes!==!0)O+=`${Q}?`;return O};T3.exports=vq});var w3=H((PT,D3)=>{var gz=x("path"),kz=M3(),uq=K3(),mq=T0(),vz=I0(),uz=(_)=>_&&typeof _==="object"&&!Array.isArray(_),p=(_,q,$=!1)=>{if(Array.isArray(_)){let W=_.map((J)=>p(J,q,$));return(J)=>{for(let G of W){let L=G(J);if(L)return L}return!1}}let Z=uz(_)&&_.tokens&&_.input;if(_===""||typeof _!=="string"&&!Z)throw TypeError("Expected pattern to be a non-empty string");let X=q||{},z=mq.isWindows(q),U=Z?p.compileRe(_,q):p.makeRe(_,q,!1,!0),Q=U.state;delete U.state;let Y=()=>!1;if(X.ignore){let W={...q,ignore:null,onMatch:null,onResult:null};Y=p(X.ignore,W,$)}let B=(W,V=!1)=>{let{isMatch:J,match:G,output:L}=p.test(W,U,q,{glob:_,posix:z}),F={glob:_,state:Q,regex:U,posix:z,input:W,output:L,match:G,isMatch:J};if(typeof X.onResult==="function")X.onResult(F);if(J===!1)return F.isMatch=!1,V?F:!1;if(Y(W)){if(typeof X.onIgnore==="function")X.onIgnore(F);return F.isMatch=!1,V?F:!1}if(typeof X.onMatch==="function")X.onMatch(F);return V?F:!0};if($)B.state=Q;return B};p.test=(_,q,$,{glob:Z,posix:X}={})=>{if(typeof _!=="string")throw TypeError("Expected input to be a string");if(_==="")return{isMatch:!1,output:""};let z=$||{},U=z.format||(X?mq.toPosixSlashes:null),Q=_===Z,Y=Q&&U?U(_):_;if(Q===!1)Y=U?U(_):_,Q=Y===Z;if(Q===!1||z.capture===!0)if(z.matchBase===!0||z.basename===!0)Q=p.matchBase(_,q,$,X);else Q=q.exec(Y);return{isMatch:Boolean(Q),match:Q,output:Y}};p.matchBase=(_,q,$,Z=mq.isWindows($))=>{return(q instanceof RegExp?q:p.makeRe(q,$)).test(gz.basename(_))};p.isMatch=(_,q,$)=>p(q,$)(_);p.parse=(_,q)=>{if(Array.isArray(_))return _.map(($)=>p.parse($,q));return uq(_,{...q,fastpaths:!1})};p.scan=(_,q)=>kz(_,q);p.compileRe=(_,q,$=!1,Z=!1)=>{if($===!0)return _.output;let X=q||{},z=X.contains?"":"^",U=X.contains?"":"$",Q=`${z}(?:${_.output})${U}`;if(_&&_.negated===!0)Q=`^(?!${Q}).*$`;let Y=p.toRegex(Q,q);if(Z===!0)Y.state=_;return Y};p.makeRe=(_,q={},$=!1,Z=!1)=>{if(!_||typeof _!=="string")throw TypeError("Expected a non-empty string");let X={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(_[0]==="."||_[0]==="*"))X.output=uq.fastpaths(_,q);if(!X.output)X=uq(_,q);return p.compileRe(X,q,$,Z)};p.toRegex=(_,q)=>{try{let $=q||{};return new RegExp(_,$.flags||($.nocase?"i":""))}catch($){if(q&&q.debug===!0)throw $;return/$^/}};p.constants=vz;D3.exports=p});var O3=H((jT,A3)=>{var R3=x("util"),P3=z3(),L1=w3(),dq=T0(),S3=(_)=>_===""||_==="./",j3=(_)=>{let q=_.indexOf("{");return q>-1&&_.indexOf("}",q)>-1},l=(_,q,$)=>{q=[].concat(q),_=[].concat(_);let Z=new Set,X=new Set,z=new Set,U=0,Q=(W)=>{if(z.add(W.output),$&&$.onResult)$.onResult(W)};for(let W=0;W<q.length;W++){let V=L1(String(q[W]),{...$,onResult:Q},!0),J=V.state.negated||V.state.negatedExtglob;if(J)U++;for(let G of _){let L=V(G,!0);if(!(J?!L.isMatch:L.isMatch))continue;if(J)Z.add(L.output);else Z.delete(L.output),X.add(L.output)}}let B=(U===q.length?[...z]:[...X]).filter((W)=>!Z.has(W));if($&&B.length===0){if($.failglob===!0)throw Error(`No matches found for "${q.join(", ")}"`);if($.nonull===!0||$.nullglob===!0)return $.unescape?q.map((W)=>W.replace(/\\/g,"")):q}return B};l.match=l;l.matcher=(_,q)=>L1(_,q);l.isMatch=(_,q,$)=>L1(q,$)(_);l.any=l.isMatch;l.not=(_,q,$={})=>{q=[].concat(q).map(String);let Z=new Set,X=[],U=new Set(l(_,q,{...$,onResult:(Q)=>{if($.onResult)$.onResult(Q);X.push(Q.output)}}));for(let Q of X)if(!U.has(Q))Z.add(Q);return[...Z]};l.contains=(_,q,$)=>{if(typeof _!=="string")throw TypeError(`Expected a string: "${R3.inspect(_)}"`);if(Array.isArray(q))return q.some((Z)=>l.contains(_,Z,$));if(typeof q==="string"){if(S3(_)||S3(q))return!1;if(_.includes(q)||_.startsWith("./")&&_.slice(2).includes(q))return!0}return l.isMatch(_,q,{...$,contains:!0})};l.matchKeys=(_,q,$)=>{if(!dq.isObject(_))throw TypeError("Expected the first argument to be an object");let Z=l(Object.keys(_),q,$),X={};for(let z of Z)X[z]=_[z];return X};l.some=(_,q,$)=>{let Z=[].concat(_);for(let X of[].concat(q)){let z=L1(String(X),$);if(Z.some((U)=>z(U)))return!0}return!1};l.every=(_,q,$)=>{let Z=[].concat(_);for(let X of[].concat(q)){let z=L1(String(X),$);if(!Z.every((U)=>z(U)))return!1}return!0};l.all=(_,q,$)=>{if(typeof _!=="string")throw TypeError(`Expected a string: "${R3.inspect(_)}"`);return[].concat(q).every((Z)=>L1(Z,$)(_))};l.capture=(_,q,$)=>{let Z=dq.isWindows($),z=L1.makeRe(String(_),{...$,capture:!0}).exec(Z?dq.toPosixSlashes(q):q);if(z)return z.slice(1).map((U)=>U===void 0?"":U)};l.makeRe=(..._)=>L1.makeRe(..._);l.scan=(..._)=>L1.scan(..._);l.parse=(_,q)=>{let $=[];for(let Z of[].concat(_||[]))for(let X of P3(String(Z),q))$.push(L1.parse(X,q));return $};l.braces=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");if(q&&q.nobrace===!0||!j3(_))return[_];return P3(_,q)};l.braceExpand=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");return l.braces(_,{...q,expand:!0})};l.hasBraces=j3;A3.exports=l});var u3=H((k3)=>{Object.defineProperty(k3,"__esModule",{value:!0});k3.isAbsolute=k3.partitionAbsoluteAndRelative=k3.removeDuplicateSlashes=k3.matchAny=k3.convertPatternsToRe=k3.makeRe=k3.getPatternParts=k3.expandBraceExpansion=k3.expandPatternsWithBraceExpansion=k3.isAffectDepthOfReadingPattern=k3.endsWithSlashGlobStar=k3.hasGlobStar=k3.getBaseDirectory=k3.isPatternRelatedToParentDirectory=k3.getPatternsOutsideCurrentDirectory=k3.getPatternsInsideCurrentDirectory=k3.getPositivePatterns=k3.getNegativePatterns=k3.isPositivePattern=k3.isNegativePattern=k3.convertToNegativePattern=k3.convertToPositivePattern=k3.isDynamicPattern=k3.isStaticPattern=void 0;var N3=x("path"),mz=S4(),lq=O3(),f3="**",dz="\\",lz=/[*?]|^!/,iz=/\[[^[]*]/,cz=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,pz=/[!*+?@]\([^(]*\)/,rz=/,|\.\./,sz=/(?!^)\/{2,}/g;function E3(_,q={}){return!C3(_,q)}k3.isStaticPattern=E3;function C3(_,q={}){if(_==="")return!1;if(q.caseSensitiveMatch===!1||_.includes(dz))return!0;if(lz.test(_)||iz.test(_)||cz.test(_))return!0;if(q.extglob!==!1&&pz.test(_))return!0;if(q.braceExpansion!==!1&&nz(_))return!0;return!1}k3.isDynamicPattern=C3;function nz(_){let q=_.indexOf("{");if(q===-1)return!1;let $=_.indexOf("}",q+1);if($===-1)return!1;let Z=_.slice(q,$);return rz.test(Z)}function az(_){return Q_(_)?_.slice(1):_}k3.convertToPositivePattern=az;function oz(_){return"!"+_}k3.convertToNegativePattern=oz;function Q_(_){return _.startsWith("!")&&_[1]!=="("}k3.isNegativePattern=Q_;function b3(_){return!Q_(_)}k3.isPositivePattern=b3;function tz(_){return _.filter(Q_)}k3.getNegativePatterns=tz;function ez(_){return _.filter(b3)}k3.getPositivePatterns=ez;function _U(_){return _.filter((q)=>!iq(q))}k3.getPatternsInsideCurrentDirectory=_U;function qU(_){return _.filter(iq)}k3.getPatternsOutsideCurrentDirectory=qU;function iq(_){return _.startsWith("..")||_.startsWith("./..")}k3.isPatternRelatedToParentDirectory=iq;function $U(_){return mz(_,{flipBackslashes:!1})}k3.getBaseDirectory=$U;function ZU(_){return _.includes(f3)}k3.hasGlobStar=ZU;function y3(_){return _.endsWith("/"+f3)}k3.endsWithSlashGlobStar=y3;function XU(_){let q=N3.basename(_);return y3(_)||E3(q)}k3.isAffectDepthOfReadingPattern=XU;function zU(_){return _.reduce((q,$)=>{return q.concat(h3($))},[])}k3.expandPatternsWithBraceExpansion=zU;function h3(_){let q=lq.braces(_,{expand:!0,nodupes:!0,keepEscaping:!0});return q.sort(($,Z)=>$.length-Z.length),q.filter(($)=>$!=="")}k3.expandBraceExpansion=h3;function UU(_,q){let{parts:$}=lq.scan(_,Object.assign(Object.assign({},q),{parts:!0}));if($.length===0)$=[_];if($[0].startsWith("/"))$[0]=$[0].slice(1),$.unshift("");return $}k3.getPatternParts=UU;function x3(_,q){return lq.makeRe(_,q)}k3.makeRe=x3;function QU(_,q){return _.map(($)=>x3($,q))}k3.convertPatternsToRe=QU;function YU(_,q){return q.some(($)=>$.test(_))}k3.matchAny=YU;function BU(_){return _.replace(sz,"/")}k3.removeDuplicateSlashes=BU;function JU(_){let q=[],$=[];for(let Z of _)if(g3(Z))q.push(Z);else $.push(Z);return[q,$]}k3.partitionAbsoluteAndRelative=JU;function g3(_){return N3.isAbsolute(_)}k3.isAbsolute=g3});var i3=H((OT,l3)=>{var yU=x("stream"),m3=yU.PassThrough,hU=Array.prototype.slice;l3.exports=xU;function xU(){let _=[],q=hU.call(arguments),$=!1,Z=q[q.length-1];if(Z&&!Array.isArray(Z)&&Z.pipe==null)q.pop();else Z={};let X=Z.end!==!1,z=Z.pipeError===!0;if(Z.objectMode==null)Z.objectMode=!0;if(Z.highWaterMark==null)Z.highWaterMark=65536;let U=m3(Z);function Q(){for(let W=0,V=arguments.length;W<V;W++)_.push(d3(arguments[W],Z));return Y(),this}function Y(){if($)return;$=!0;let W=_.shift();if(!W){process.nextTick(B);return}if(!Array.isArray(W))W=[W];let V=W.length+1;function J(){if(--V>0)return;$=!1,Y()}function G(L){function F(){if(L.removeListener("merge2UnpipeEnd",F),L.removeListener("end",F),z)L.removeListener("error",M);J()}function M(w){U.emit("error",w)}if(L._readableState.endEmitted)return J();if(L.on("merge2UnpipeEnd",F),L.on("end",F),z)L.on("error",M);L.pipe(U,{end:!1}),L.resume()}for(let L=0;L<W.length;L++)G(W[L]);J()}function B(){if($=!1,U.emit("queueDrain"),X)U.end()}if(U.setMaxListeners(0),U.add=Q,U.on("unpipe",function(W){W.emit("merge2UnpipeEnd")}),q.length)Q.apply(null,q);return U}function d3(_,q){if(!Array.isArray(_)){if(!_._readableState&&_.pipe)_=_.pipe(m3(q));if(!_._readableState||!_.pause||!_.pipe)throw Error("Only readable stream can be merged.");_.pause()}else for(let $=0,Z=_.length;$<Z;$++)_[$]=d3(_[$],q);return _}});var s3=H((p3)=>{Object.defineProperty(p3,"__esModule",{value:!0});p3.merge=void 0;var gU=i3();function kU(_){let q=gU(_);return _.forEach(($)=>{$.once("error",(Z)=>q.emit("error",Z))}),q.once("close",()=>c3(_)),q.once("end",()=>c3(_)),q}p3.merge=kU;function c3(_){_.forEach((q)=>q.emit("close"))}});var o3=H((n3)=>{Object.defineProperty(n3,"__esModule",{value:!0});n3.isEmpty=n3.isString=void 0;function vU(_){return typeof _==="string"}n3.isString=vU;function uU(_){return _===""}n3.isEmpty=uU});var T1=H((t3)=>{Object.defineProperty(t3,"__esModule",{value:!0});t3.string=t3.stream=t3.pattern=t3.path=t3.fs=t3.errno=t3.array=void 0;var dU=Z4();t3.array=dU;var lU=U4();t3.errno=lU;var iU=J4();t3.fs=iU;var cU=H4();t3.path=cU;var pU=u3();t3.pattern=pU;var rU=s3();t3.stream=rU;var sU=o3();t3.string=sU});var z6=H((Z6)=>{Object.defineProperty(Z6,"__esModule",{value:!0});Z6.convertPatternGroupToTask=Z6.convertPatternGroupsToTasks=Z6.groupPatternsByBaseDirectory=Z6.getNegativePatternsAsPositive=Z6.getPositivePatterns=Z6.convertPatternsToTasks=Z6.generate=void 0;var B1=T1();function qQ(_,q){let $=_6(_,q),Z=_6(q.ignore,q),X=q6($),z=$6($,Z),U=X.filter((W)=>B1.pattern.isStaticPattern(W,q)),Q=X.filter((W)=>B1.pattern.isDynamicPattern(W,q)),Y=cq(U,z,!1),B=cq(Q,z,!0);return Y.concat(B)}Z6.generate=qQ;function _6(_,q){let $=_;if(q.braceExpansion)$=B1.pattern.expandPatternsWithBraceExpansion($);if(q.baseNameMatch)$=$.map((Z)=>Z.includes("/")?Z:`**/${Z}`);return $.map((Z)=>B1.pattern.removeDuplicateSlashes(Z))}function cq(_,q,$){let Z=[],X=B1.pattern.getPatternsOutsideCurrentDirectory(_),z=B1.pattern.getPatternsInsideCurrentDirectory(_),U=pq(X),Q=pq(z);if(Z.push(...rq(U,q,$)),"."in Q)Z.push(sq(".",z,q,$));else Z.push(...rq(Q,q,$));return Z}Z6.convertPatternsToTasks=cq;function q6(_){return B1.pattern.getPositivePatterns(_)}Z6.getPositivePatterns=q6;function $6(_,q){return B1.pattern.getNegativePatterns(_).concat(q).map(B1.pattern.convertToPositivePattern)}Z6.getNegativePatternsAsPositive=$6;function pq(_){let q={};return _.reduce(($,Z)=>{let X=B1.pattern.getBaseDirectory(Z);if(X in $)$[X].push(Z);else $[X]=[Z];return $},q)}Z6.groupPatternsByBaseDirectory=pq;function rq(_,q,$){return Object.keys(_).map((Z)=>{return sq(Z,_[Z],q,$)})}Z6.convertPatternGroupsToTasks=rq;function sq(_,q,$,Z){return{dynamic:Z,positive:q,negative:$,base:_,patterns:[].concat(q,$.map(B1.pattern.convertToNegativePattern))}}Z6.convertPatternGroupToTask=sq});var B6=H((Q6)=>{Object.defineProperty(Q6,"__esModule",{value:!0});Q6.read=void 0;function YQ(_,q,$){q.fs.lstat(_,(Z,X)=>{if(Z!==null){U6($,Z);return}if(!X.isSymbolicLink()||!q.followSymbolicLink){nq($,X);return}q.fs.stat(_,(z,U)=>{if(z!==null){if(q.throwErrorOnBrokenSymbolicLink){U6($,z);return}nq($,X);return}if(q.markSymbolicLink)U.isSymbolicLink=()=>!0;nq($,U)})})}Q6.read=YQ;function U6(_,q){_(q)}function nq(_,q){_(null,q)}});var V6=H((J6)=>{Object.defineProperty(J6,"__esModule",{value:!0});J6.read=void 0;function BQ(_,q){let $=q.fs.lstatSync(_);if(!$.isSymbolicLink()||!q.followSymbolicLink)return $;try{let Z=q.fs.statSync(_);if(q.markSymbolicLink)Z.isSymbolicLink=()=>!0;return Z}catch(Z){if(!q.throwErrorOnBrokenSymbolicLink)return $;throw Z}}J6.read=BQ});var L6=H((F6)=>{Object.defineProperty(F6,"__esModule",{value:!0});F6.createFileSystemAdapter=F6.FILE_SYSTEM_ADAPTER=void 0;var Y_=x("fs");F6.FILE_SYSTEM_ADAPTER={lstat:Y_.lstat,stat:Y_.stat,lstatSync:Y_.lstatSync,statSync:Y_.statSync};function JQ(_){if(_===void 0)return F6.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},F6.FILE_SYSTEM_ADAPTER),_)}F6.createFileSystemAdapter=JQ});var I6=H((M6)=>{Object.defineProperty(M6,"__esModule",{value:!0});var WQ=L6();class H6{constructor(_={}){this._options=_,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=WQ.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(_,q){return _!==null&&_!==void 0?_:q}}M6.default=H6});var k1=H((K6)=>{Object.defineProperty(K6,"__esModule",{value:!0});K6.statSync=K6.stat=K6.Settings=void 0;var T6=B6(),FQ=V6(),oq=I6();K6.Settings=oq.default;function GQ(_,q,$){if(typeof q==="function"){T6.read(_,tq(),q);return}T6.read(_,tq(q),$)}K6.stat=GQ;function LQ(_,q){let $=tq(q);return FQ.read(_,$)}K6.statSync=LQ;function tq(_={}){if(_ instanceof oq.default)return _;return new oq.default(_)}});var R6=H((kT,S6)=>{/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var w6;S6.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window<"u"?window:global):(_)=>(w6||(w6=Promise.resolve())).then(_).catch((q)=>setTimeout(()=>{throw q},0))});var j6=H((vT,P6)=>{/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */P6.exports=TQ;var IQ=R6();function TQ(_,q){let $,Z,X,z=!0;if(Array.isArray(_))$=[],Z=_.length;else X=Object.keys(_),$={},Z=X.length;function U(Y){function B(){if(q)q(Y,$);q=null}if(z)IQ(B);else B()}function Q(Y,B,W){if($[Y]=W,--Z===0||B)U(B)}if(!Z)U(null);else if(X)X.forEach(function(Y){_[Y](function(B,W){Q(Y,B,W)})});else _.forEach(function(Y,B){Y(function(W,V){Q(B,W,V)})});z=!1}});var eq=H((N6)=>{Object.defineProperty(N6,"__esModule",{value:!0});N6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var B_=process.versions.node.split(".");if(B_[0]===void 0||B_[1]===void 0)throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var A6=Number.parseInt(B_[0],10),KQ=Number.parseInt(B_[1],10),O6=10,DQ=10,wQ=A6>O6,SQ=A6===O6&&KQ>=DQ;N6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=wQ||SQ});var y6=H((C6)=>{Object.defineProperty(C6,"__esModule",{value:!0});C6.createDirentFromStats=void 0;class E6{constructor(_,q){this.name=_,this.isBlockDevice=q.isBlockDevice.bind(q),this.isCharacterDevice=q.isCharacterDevice.bind(q),this.isDirectory=q.isDirectory.bind(q),this.isFIFO=q.isFIFO.bind(q),this.isFile=q.isFile.bind(q),this.isSocket=q.isSocket.bind(q),this.isSymbolicLink=q.isSymbolicLink.bind(q)}}function RQ(_,q){return new E6(_,q)}C6.createDirentFromStats=RQ});var _9=H((h6)=>{Object.defineProperty(h6,"__esModule",{value:!0});h6.fs=void 0;var PQ=y6();h6.fs=PQ});var q9=H((g6)=>{Object.defineProperty(g6,"__esModule",{value:!0});g6.joinPathSegments=void 0;function jQ(_,q,$){if(_.endsWith($))return _+q;return _+$+q}g6.joinPathSegments=jQ});var p6=H((i6)=>{Object.defineProperty(i6,"__esModule",{value:!0});i6.readdir=i6.readdirWithFileTypes=i6.read=void 0;var AQ=k1(),v6=j6(),OQ=eq(),u6=_9(),m6=q9();function NQ(_,q,$){if(!q.stats&&OQ.IS_SUPPORT_READDIR_WITH_FILE_TYPES){d6(_,q,$);return}l6(_,q,$)}i6.read=NQ;function d6(_,q,$){q.fs.readdir(_,{withFileTypes:!0},(Z,X)=>{if(Z!==null){J_($,Z);return}let z=X.map((Q)=>({dirent:Q,name:Q.name,path:m6.joinPathSegments(_,Q.name,q.pathSegmentSeparator)}));if(!q.followSymbolicLinks){$9($,z);return}let U=z.map((Q)=>fQ(Q,q));v6(U,(Q,Y)=>{if(Q!==null){J_($,Q);return}$9($,Y)})})}i6.readdirWithFileTypes=d6;function fQ(_,q){return($)=>{if(!_.dirent.isSymbolicLink()){$(null,_);return}q.fs.stat(_.path,(Z,X)=>{if(Z!==null){if(q.throwErrorOnBrokenSymbolicLink){$(Z);return}$(null,_);return}_.dirent=u6.fs.createDirentFromStats(_.name,X),$(null,_)})}}function l6(_,q,$){q.fs.readdir(_,(Z,X)=>{if(Z!==null){J_($,Z);return}let z=X.map((U)=>{let Q=m6.joinPathSegments(_,U,q.pathSegmentSeparator);return(Y)=>{AQ.stat(Q,q.fsStatSettings,(B,W)=>{if(B!==null){Y(B);return}let V={name:U,path:Q,dirent:u6.fs.createDirentFromStats(U,W)};if(q.stats)V.stats=W;Y(null,V)})}});v6(z,(U,Q)=>{if(U!==null){J_($,U);return}$9($,Q)})})}i6.readdir=l6;function J_(_,q){_(q)}function $9(_,q){_(null,q)}});var e6=H((o6)=>{Object.defineProperty(o6,"__esModule",{value:!0});o6.readdir=o6.readdirWithFileTypes=o6.read=void 0;var bQ=k1(),yQ=eq(),r6=_9(),s6=q9();function hQ(_,q){if(!q.stats&&yQ.IS_SUPPORT_READDIR_WITH_FILE_TYPES)return n6(_,q);return a6(_,q)}o6.read=hQ;function n6(_,q){return q.fs.readdirSync(_,{withFileTypes:!0}).map((Z)=>{let X={dirent:Z,name:Z.name,path:s6.joinPathSegments(_,Z.name,q.pathSegmentSeparator)};if(X.dirent.isSymbolicLink()&&q.followSymbolicLinks)try{let z=q.fs.statSync(X.path);X.dirent=r6.fs.createDirentFromStats(X.name,z)}catch(z){if(q.throwErrorOnBrokenSymbolicLink)throw z}return X})}o6.readdirWithFileTypes=n6;function a6(_,q){return q.fs.readdirSync(_).map((Z)=>{let X=s6.joinPathSegments(_,Z,q.pathSegmentSeparator),z=bQ.statSync(X,q.fsStatSettings),U={name:Z,path:X,dirent:r6.fs.createDirentFromStats(Z,z)};if(q.stats)U.stats=z;return U})}o6.readdir=a6});var $2=H((_2)=>{Object.defineProperty(_2,"__esModule",{value:!0});_2.createFileSystemAdapter=_2.FILE_SYSTEM_ADAPTER=void 0;var e1=x("fs");_2.FILE_SYSTEM_ADAPTER={lstat:e1.lstat,stat:e1.stat,lstatSync:e1.lstatSync,statSync:e1.statSync,readdir:e1.readdir,readdirSync:e1.readdirSync};function kQ(_){if(_===void 0)return _2.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},_2.FILE_SYSTEM_ADAPTER),_)}_2.createFileSystemAdapter=kQ});var z2=H((X2)=>{Object.defineProperty(X2,"__esModule",{value:!0});var vQ=x("path"),uQ=k1(),mQ=$2();class Z2{constructor(_={}){this._options=_,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=mQ.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,vQ.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new uQ.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(_,q){return _!==null&&_!==void 0?_:q}}X2.default=Z2});var W_=H((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.Settings=Q2.scandirSync=Q2.scandir=void 0;var U2=p6(),lQ=e6(),X9=z2();Q2.Settings=X9.default;function iQ(_,q,$){if(typeof q==="function"){U2.read(_,z9(),q);return}U2.read(_,z9(q),$)}Q2.scandir=iQ;function cQ(_,q){let $=z9(q);return lQ.read(_,$)}Q2.scandirSync=cQ;function z9(_={}){if(_ instanceof X9.default)return _;return new X9.default(_)}});var J2=H((nT,B2)=>{function sQ(_){var q=new _,$=q;function Z(){var z=q;if(z.next)q=z.next;else q=new _,$=q;return z.next=null,z}function X(z){$.next=z,$=z}return{get:Z,release:X}}B2.exports=sQ});var V2=H((aT,U9)=>{var nQ=J2();function W2(_,q,$){if(typeof _==="function")$=q,q=_,_=null;if(!($>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");var Z=nQ(aQ),X=null,z=null,U=0,Q=null,Y={push:F,drain:X1,saturated:X1,pause:W,paused:!1,get concurrency(){return $},set concurrency(S){if(!(S>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");if($=S,Y.paused)return;for(;X&&U<$;)U++,w()},running:B,resume:G,idle:L,length:V,getQueue:J,unshift:M,empty:X1,kill:j,killAndDrain:P,error:E};return Y;function B(){return U}function W(){Y.paused=!0}function V(){var S=X,A=0;while(S)S=S.next,A++;return A}function J(){var S=X,A=[];while(S)A.push(S.value),S=S.next;return A}function G(){if(!Y.paused)return;if(Y.paused=!1,X===null){U++,w();return}for(;X&&U<$;)U++,w()}function L(){return U===0&&Y.length()===0}function F(S,A){var O=Z.get();if(O.context=_,O.release=w,O.value=S,O.callback=A||X1,O.errorHandler=Q,U>=$||Y.paused)if(z)z.next=O,z=O;else X=O,z=O,Y.saturated();else U++,q.call(_,O.value,O.worked)}function M(S,A){var O=Z.get();if(O.context=_,O.release=w,O.value=S,O.callback=A||X1,O.errorHandler=Q,U>=$||Y.paused)if(X)O.next=X,X=O;else X=O,z=O,Y.saturated();else U++,q.call(_,O.value,O.worked)}function w(S){if(S)Z.release(S);var A=X;if(A&&U<=$)if(!Y.paused){if(z===X)z=null;if(X=A.next,A.next=null,q.call(_,A.value,A.worked),z===null)Y.empty()}else U--;else if(--U===0)Y.drain()}function j(){X=null,z=null,Y.drain=X1}function P(){X=null,z=null,Y.drain(),Y.drain=X1}function E(S){Q=S}}function X1(){}function aQ(){this.value=null,this.callback=X1,this.next=null,this.release=X1,this.context=null,this.errorHandler=null;var _=this;this.worked=function($,Z){var{callback:X,errorHandler:z,value:U}=_;if(_.value=null,_.callback=X1,_.errorHandler)z($,U);X.call(_.context,$,Z),_.release(_)}}function oQ(_,q,$){if(typeof _==="function")$=q,q=_,_=null;function Z(W,V){q.call(this,W).then(function(J){V(null,J)},V)}var X=W2(_,Z,$),z=X.push,U=X.unshift;return X.push=Q,X.unshift=Y,X.drained=B,X;function Q(W){var V=new Promise(function(J,G){z(W,function(L,F){if(L){G(L);return}J(F)})});return V.catch(X1),V}function Y(W){var V=new Promise(function(J,G){U(W,function(L,F){if(L){G(L);return}J(F)})});return V.catch(X1),V}function B(){var W=new Promise(function(V){process.nextTick(function(){if(X.idle())V();else{var J=X.drain;X.drain=function(){if(typeof J==="function")J();V(),X.drain=J}}})});return W}}U9.exports=W2;U9.exports.promise=oQ});var V_=H((F2)=>{Object.defineProperty(F2,"__esModule",{value:!0});F2.joinPathSegments=F2.replacePathSegmentSeparator=F2.isAppliedFilter=F2.isFatalError=void 0;function tQ(_,q){if(_.errorFilter===null)return!0;return!_.errorFilter(q)}F2.isFatalError=tQ;function eQ(_,q){return _===null||_(q)}F2.isAppliedFilter=eQ;function _Y(_,q){return _.split(/[/\\]/).join(q)}F2.replacePathSegmentSeparator=_Y;function qY(_,q,$){if(_==="")return q;if(_.endsWith($))return _+q;return _+$+q}F2.joinPathSegments=qY});var Q9=H((H2)=>{Object.defineProperty(H2,"__esModule",{value:!0});var zY=V_();class L2{constructor(_,q){this._root=_,this._settings=q,this._root=zY.replacePathSegmentSeparator(_,q.pathSegmentSeparator)}}H2.default=L2});var Y9=H((I2)=>{Object.defineProperty(I2,"__esModule",{value:!0});var QY=x("events"),YY=W_(),BY=V2(),F_=V_(),JY=Q9();class M2 extends JY.default{constructor(_,q){super(_,q);this._settings=q,this._scandir=YY.scandir,this._emitter=new QY.EventEmitter,this._queue=BY(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{if(!this._isFatalError)this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(_){this._emitter.on("entry",_)}onError(_){this._emitter.once("error",_)}onEnd(_){this._emitter.once("end",_)}_pushToQueue(_,q){let $={directory:_,base:q};this._queue.push($,(Z)=>{if(Z!==null)this._handleError(Z)})}_worker(_,q){this._scandir(_.directory,this._settings.fsScandirSettings,($,Z)=>{if($!==null){q($,void 0);return}for(let X of Z)this._handleEntry(X,_.base);q(null,void 0)})}_handleError(_){if(this._isDestroyed||!F_.isFatalError(this._settings,_))return;this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",_)}_handleEntry(_,q){if(this._isDestroyed||this._isFatalError)return;let $=_.path;if(q!==void 0)_.path=F_.joinPathSegments(q,_.name,this._settings.pathSegmentSeparator);if(F_.isAppliedFilter(this._settings.entryFilter,_))this._emitEntry(_);if(_.dirent.isDirectory()&&F_.isAppliedFilter(this._settings.deepFilter,_))this._pushToQueue($,q===void 0?void 0:_.path)}_emitEntry(_){this._emitter.emit("entry",_)}}I2.default=M2});var D2=H((K2)=>{Object.defineProperty(K2,"__esModule",{value:!0});var VY=Y9();class T2{constructor(_,q){this._root=_,this._settings=q,this._reader=new VY.default(this._root,this._settings),this._storage=[]}read(_){this._reader.onError((q)=>{FY(_,q)}),this._reader.onEntry((q)=>{this._storage.push(q)}),this._reader.onEnd(()=>{GY(_,this._storage)}),this._reader.read()}}K2.default=T2;function FY(_,q){_(q)}function GY(_,q){_(null,q)}});var R2=H((S2)=>{Object.defineProperty(S2,"__esModule",{value:!0});var HY=x("stream"),MY=Y9();class w2{constructor(_,q){this._root=_,this._settings=q,this._reader=new MY.default(this._root,this._settings),this._stream=new HY.Readable({objectMode:!0,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed)this._reader.destroy()}})}read(){return this._reader.onError((_)=>{this._stream.emit("error",_)}),this._reader.onEntry((_)=>{this._stream.push(_)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}S2.default=w2});var A2=H((j2)=>{Object.defineProperty(j2,"__esModule",{value:!0});var TY=W_(),G_=V_(),KY=Q9();class P2 extends KY.default{constructor(){super(...arguments);this._scandir=TY.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(_,q){this._queue.add({directory:_,base:q})}_handleQueue(){for(let _ of this._queue.values())this._handleDirectory(_.directory,_.base)}_handleDirectory(_,q){try{let $=this._scandir(_,this._settings.fsScandirSettings);for(let Z of $)this._handleEntry(Z,q)}catch($){this._handleError($)}}_handleError(_){if(!G_.isFatalError(this._settings,_))return;throw _}_handleEntry(_,q){let $=_.path;if(q!==void 0)_.path=G_.joinPathSegments(q,_.name,this._settings.pathSegmentSeparator);if(G_.isAppliedFilter(this._settings.entryFilter,_))this._pushToStorage(_);if(_.dirent.isDirectory()&&G_.isAppliedFilter(this._settings.deepFilter,_))this._pushToQueue($,q===void 0?void 0:_.path)}_pushToStorage(_){this._storage.push(_)}}j2.default=P2});var f2=H((N2)=>{Object.defineProperty(N2,"__esModule",{value:!0});var wY=A2();class O2{constructor(_,q){this._root=_,this._settings=q,this._reader=new wY.default(this._root,this._settings)}read(){return this._reader.read()}}N2.default=O2});var b2=H((C2)=>{Object.defineProperty(C2,"__esModule",{value:!0});var RY=x("path"),PY=W_();class E2{constructor(_={}){this._options=_,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,RY.sep),this.fsScandirSettings=new PY.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(_,q){return _!==null&&_!==void 0?_:q}}C2.default=E2});var H_=H((h2)=>{Object.defineProperty(h2,"__esModule",{value:!0});h2.Settings=h2.walkStream=h2.walkSync=h2.walk=void 0;var y2=D2(),AY=R2(),OY=f2(),B9=b2();h2.Settings=B9.default;function NY(_,q,$){if(typeof q==="function"){new y2.default(_,L_()).read(q);return}new y2.default(_,L_(q)).read($)}h2.walk=NY;function fY(_,q){let $=L_(q);return new OY.default(_,$).read()}h2.walkSync=fY;function EY(_,q){let $=L_(q);return new AY.default(_,$).read()}h2.walkStream=EY;function L_(_={}){if(_ instanceof B9.default)return _;return new B9.default(_)}});var M_=H((v2)=>{Object.defineProperty(v2,"__esModule",{value:!0});var hY=x("path"),xY=k1(),g2=T1();class k2{constructor(_){this._settings=_,this._fsStatSettings=new xY.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(_){return hY.resolve(this._settings.cwd,_)}_makeEntry(_,q){let $={name:q,path:q,dirent:g2.fs.createDirentFromStats(q,_)};if(this._settings.stats)$.stats=_;return $}_isFatalError(_){return!g2.errno.isEnoentCodeError(_)&&!this._settings.suppressErrors}}v2.default=k2});var J9=H((m2)=>{Object.defineProperty(m2,"__esModule",{value:!0});var kY=x("stream"),vY=k1(),uY=H_(),mY=M_();class u2 extends mY.default{constructor(){super(...arguments);this._walkStream=uY.walkStream,this._stat=vY.stat}dynamic(_,q){return this._walkStream(_,q)}static(_,q){let $=_.map(this._getFullEntryPath,this),Z=new kY.PassThrough({objectMode:!0});Z._write=(X,z,U)=>{return this._getEntry($[X],_[X],q).then((Q)=>{if(Q!==null&&q.entryFilter(Q))Z.push(Q);if(X===$.length-1)Z.end();U()}).catch(U)};for(let X=0;X<$.length;X++)Z.write(X);return Z}_getEntry(_,q,$){return this._getStat(_).then((Z)=>this._makeEntry(Z,q)).catch((Z)=>{if($.errorFilter(Z))return null;throw Z})}_getStat(_){return new Promise((q,$)=>{this._stat(_,this._fsStatSettings,(Z,X)=>{return Z===null?q(X):$(Z)})})}}m2.default=u2});var i2=H((l2)=>{Object.defineProperty(l2,"__esModule",{value:!0});var lY=H_(),iY=M_(),cY=J9();class d2 extends iY.default{constructor(){super(...arguments);this._walkAsync=lY.walk,this._readerStream=new cY.default(this._settings)}dynamic(_,q){return new Promise(($,Z)=>{this._walkAsync(_,q,(X,z)=>{if(X===null)$(z);else Z(X)})})}async static(_,q){let $=[],Z=this._readerStream.static(_,q);return new Promise((X,z)=>{Z.once("error",z),Z.on("data",(U)=>$.push(U)),Z.once("end",()=>X($))})}}l2.default=d2});var r2=H((p2)=>{Object.defineProperty(p2,"__esModule",{value:!0});var D0=T1();class c2{constructor(_,q,$){this._patterns=_,this._settings=q,this._micromatchOptions=$,this._storage=[],this._fillStorage()}_fillStorage(){for(let _ of this._patterns){let q=this._getPatternSegments(_),$=this._splitSegmentsIntoSections(q);this._storage.push({complete:$.length<=1,pattern:_,segments:q,sections:$})}}_getPatternSegments(_){return D0.pattern.getPatternParts(_,this._micromatchOptions).map(($)=>{if(!D0.pattern.isDynamicPattern($,this._settings))return{dynamic:!1,pattern:$};return{dynamic:!0,pattern:$,patternRe:D0.pattern.makeRe($,this._micromatchOptions)}})}_splitSegmentsIntoSections(_){return D0.array.splitWhen(_,(q)=>q.dynamic&&D0.pattern.hasGlobStar(q.pattern))}}p2.default=c2});var a2=H((n2)=>{Object.defineProperty(n2,"__esModule",{value:!0});var sY=r2();class s2 extends sY.default{match(_){let q=_.split("/"),$=q.length,Z=this._storage.filter((X)=>!X.complete||X.segments.length>$);for(let X of Z){let z=X.sections[0];if(!X.complete&&$>z.length)return!0;if(q.every((Q,Y)=>{let B=X.segments[Y];if(B.dynamic&&B.patternRe.test(Q))return!0;if(!B.dynamic&&B.pattern===Q)return!0;return!1}))return!0}return!1}}n2.default=s2});var e2=H((t2)=>{Object.defineProperty(t2,"__esModule",{value:!0});var I_=T1(),aY=a2();class o2{constructor(_,q){this._settings=_,this._micromatchOptions=q}getFilter(_,q,$){let Z=this._getMatcher(q),X=this._getNegativePatternsRe($);return(z)=>this._filter(_,z,Z,X)}_getMatcher(_){return new aY.default(_,this._settings,this._micromatchOptions)}_getNegativePatternsRe(_){let q=_.filter(I_.pattern.isAffectDepthOfReadingPattern);return I_.pattern.convertPatternsToRe(q,this._micromatchOptions)}_filter(_,q,$,Z){if(this._isSkippedByDeep(_,q.path))return!1;if(this._isSkippedSymbolicLink(q))return!1;let X=I_.path.removeLeadingDotSegment(q.path);if(this._isSkippedByPositivePatterns(X,$))return!1;return this._isSkippedByNegativePatterns(X,Z)}_isSkippedByDeep(_,q){if(this._settings.deep===1/0)return!1;return this._getEntryLevel(_,q)>=this._settings.deep}_getEntryLevel(_,q){let $=q.split("/").length;if(_==="")return $;let Z=_.split("/").length;return $-Z}_isSkippedSymbolicLink(_){return!this._settings.followSymbolicLinks&&_.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(_,q){return!this._settings.baseNameMatch&&!q.match(_)}_isSkippedByNegativePatterns(_,q){return!I_.pattern.matchAny(_,q)}}t2.default=o2});var $7=H((q7)=>{Object.defineProperty(q7,"__esModule",{value:!0});var P1=T1();class _7{constructor(_,q){this._settings=_,this._micromatchOptions=q,this.index=new Map}getFilter(_,q){let[$,Z]=P1.pattern.partitionAbsoluteAndRelative(q),X={positive:{all:P1.pattern.convertPatternsToRe(_,this._micromatchOptions)},negative:{absolute:P1.pattern.convertPatternsToRe($,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:P1.pattern.convertPatternsToRe(Z,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return(z)=>this._filter(z,X)}_filter(_,q){let $=P1.path.removeLeadingDotSegment(_.path);if(this._settings.unique&&this._isDuplicateEntry($))return!1;if(this._onlyFileFilter(_)||this._onlyDirectoryFilter(_))return!1;let Z=this._isMatchToPatternsSet($,q,_.dirent.isDirectory());if(this._settings.unique&&Z)this._createIndexRecord($);return Z}_isDuplicateEntry(_){return this.index.has(_)}_createIndexRecord(_){this.index.set(_,void 0)}_onlyFileFilter(_){return this._settings.onlyFiles&&!_.dirent.isFile()}_onlyDirectoryFilter(_){return this._settings.onlyDirectories&&!_.dirent.isDirectory()}_isMatchToPatternsSet(_,q,$){if(!this._isMatchToPatterns(_,q.positive.all,$))return!1;if(this._isMatchToPatterns(_,q.negative.relative,$))return!1;if(this._isMatchToAbsoluteNegative(_,q.negative.absolute,$))return!1;return!0}_isMatchToAbsoluteNegative(_,q,$){if(q.length===0)return!1;let Z=P1.path.makeAbsolute(this._settings.cwd,_);return this._isMatchToPatterns(Z,q,$)}_isMatchToPatterns(_,q,$){if(q.length===0)return!1;let Z=P1.pattern.matchAny(_,q);if(!Z&&$)return P1.pattern.matchAny(_+"/",q);return Z}}q7.default=_7});var z7=H((X7)=>{Object.defineProperty(X7,"__esModule",{value:!0});var eY=T1();class Z7{constructor(_){this._settings=_}getFilter(){return(_)=>this._isNonFatalError(_)}_isNonFatalError(_){return eY.errno.isEnoentCodeError(_)||this._settings.suppressErrors}}X7.default=Z7});var B7=H((Y7)=>{Object.defineProperty(Y7,"__esModule",{value:!0});var U7=T1();class Q7{constructor(_){this._settings=_}getTransformer(){return(_)=>this._transform(_)}_transform(_){let q=_.path;if(this._settings.absolute)q=U7.path.makeAbsolute(this._settings.cwd,q),q=U7.path.unixify(q);if(this._settings.markDirectories&&_.dirent.isDirectory())q+="/";if(!this._settings.objectMode)return q;return Object.assign(Object.assign({},_),{path:q})}}Y7.default=Q7});var T_=H((W7)=>{Object.defineProperty(W7,"__esModule",{value:!0});var $B=x("path"),ZB=e2(),XB=$7(),zB=z7(),UB=B7();class J7{constructor(_){this._settings=_,this.errorFilter=new zB.default(this._settings),this.entryFilter=new XB.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new ZB.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new UB.default(this._settings)}_getRootDirectory(_){return $B.resolve(this._settings.cwd,_.base)}_getReaderOptions(_){let q=_.base==="."?"":_.base;return{basePath:q,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(q,_.positive,_.negative),entryFilter:this.entryFilter.getFilter(_.positive,_.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}W7.default=J7});var G7=H((F7)=>{Object.defineProperty(F7,"__esModule",{value:!0});var YB=i2(),BB=T_();class V7 extends BB.default{constructor(){super(...arguments);this._reader=new YB.default(this._settings)}async read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_);return(await this.api(q,_,$)).map((X)=>$.transform(X))}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}F7.default=V7});var M7=H((H7)=>{Object.defineProperty(H7,"__esModule",{value:!0});var WB=x("stream"),VB=J9(),FB=T_();class L7 extends FB.default{constructor(){super(...arguments);this._reader=new VB.default(this._settings)}read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_),Z=this.api(q,_,$),X=new WB.Readable({objectMode:!0,read:()=>{}});return Z.once("error",(z)=>X.emit("error",z)).on("data",(z)=>X.emit("data",$.transform(z))).once("end",()=>X.emit("end")),X.once("close",()=>Z.destroy()),X}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}H7.default=L7});var K7=H((T7)=>{Object.defineProperty(T7,"__esModule",{value:!0});var LB=k1(),HB=H_(),MB=M_();class I7 extends MB.default{constructor(){super(...arguments);this._walkSync=HB.walkSync,this._statSync=LB.statSync}dynamic(_,q){return this._walkSync(_,q)}static(_,q){let $=[];for(let Z of _){let X=this._getFullEntryPath(Z),z=this._getEntry(X,Z,q);if(z===null||!q.entryFilter(z))continue;$.push(z)}return $}_getEntry(_,q,$){try{let Z=this._getStat(_);return this._makeEntry(Z,q)}catch(Z){if($.errorFilter(Z))return null;throw Z}}_getStat(_){return this._statSync(_,this._fsStatSettings)}}T7.default=I7});var S7=H((w7)=>{Object.defineProperty(w7,"__esModule",{value:!0});var TB=K7(),KB=T_();class D7 extends KB.default{constructor(){super(...arguments);this._reader=new TB.default(this._settings)}read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_);return this.api(q,_,$).map($.transform)}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}w7.default=D7});var j7=H((P7)=>{Object.defineProperty(P7,"__esModule",{value:!0});P7.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var _0=x("fs"),wB=x("os"),SB=Math.max(wB.cpus().length,1);P7.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:_0.lstat,lstatSync:_0.lstatSync,stat:_0.stat,statSync:_0.statSync,readdir:_0.readdir,readdirSync:_0.readdirSync};class R7{constructor(_={}){if(this._options=_,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,SB),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories)this.onlyFiles=!1;if(this.stats)this.objectMode=!0;this.ignore=[].concat(this.ignore)}_getValue(_,q){return _===void 0?q:_}_getFileSystemMethods(_={}){return Object.assign(Object.assign({},P7.DEFAULT_FILE_SYSTEM_ADAPTER),_)}}P7.default=R7});var N7=H((DK,O7)=>{var A7=z6(),PB=G7(),jB=M7(),AB=S7(),V9=j7(),z1=T1();async function F9(_,q){J1(_);let $=G9(_,PB.default,q),Z=await Promise.all($);return z1.array.flatten(Z)}(function(_){_.glob=_,_.globSync=q,_.globStream=$,_.async=_;function q(B,W){J1(B);let V=G9(B,AB.default,W);return z1.array.flatten(V)}_.sync=q;function $(B,W){J1(B);let V=G9(B,jB.default,W);return z1.stream.merge(V)}_.stream=$;function Z(B,W){J1(B);let V=[].concat(B),J=new V9.default(W);return A7.generate(V,J)}_.generateTasks=Z;function X(B,W){J1(B);let V=new V9.default(W);return z1.pattern.isDynamicPattern(B,V)}_.isDynamicPattern=X;function z(B){return J1(B),z1.path.escape(B)}_.escapePath=z;function U(B){return J1(B),z1.path.convertPathToPattern(B)}_.convertPathToPattern=U;let Q;(function(B){function W(J){return J1(J),z1.path.escapePosixPath(J)}B.escapePath=W;function V(J){return J1(J),z1.path.convertPosixPathToPattern(J)}B.convertPathToPattern=V})(Q=_.posix||(_.posix={}));let Y;(function(B){function W(J){return J1(J),z1.path.escapeWindowsPath(J)}B.escapePath=W;function V(J){return J1(J),z1.path.convertWindowsPathToPattern(J)}B.convertPathToPattern=V})(Y=_.win32||(_.win32={}))})(F9||(F9={}));function G9(_,q,$){let Z=[].concat(_),X=new V9.default($),z=A7.generate(Z,X),U=new q(X);return z.map(U.read,U)}function J1(_){if(![].concat(_).every((Z)=>z1.string.isString(Z)&&!z1.string.isEmpty(Z)))throw TypeError("Patterns must be a string (non empty) or an array of strings")}O7.exports=F9});var g=H((hB)=>{var L9=Symbol.for("yaml.alias"),E7=Symbol.for("yaml.document"),D_=Symbol.for("yaml.map"),C7=Symbol.for("yaml.pair"),H9=Symbol.for("yaml.scalar"),w_=Symbol.for("yaml.seq"),K1=Symbol.for("yaml.node.type"),OB=(_)=>!!_&&typeof _==="object"&&_[K1]===L9,NB=(_)=>!!_&&typeof _==="object"&&_[K1]===E7,fB=(_)=>!!_&&typeof _==="object"&&_[K1]===D_,EB=(_)=>!!_&&typeof _==="object"&&_[K1]===C7,b7=(_)=>!!_&&typeof _==="object"&&_[K1]===H9,CB=(_)=>!!_&&typeof _==="object"&&_[K1]===w_;function y7(_){if(_&&typeof _==="object")switch(_[K1]){case D_:case w_:return!0}return!1}function bB(_){if(_&&typeof _==="object")switch(_[K1]){case L9:case D_:case H9:case w_:return!0}return!1}var yB=(_)=>(b7(_)||y7(_))&&!!_.anchor;hB.ALIAS=L9;hB.DOC=E7;hB.MAP=D_;hB.NODE_TYPE=K1;hB.PAIR=C7;hB.SCALAR=H9;hB.SEQ=w_;hB.hasAnchor=yB;hB.isAlias=OB;hB.isCollection=y7;hB.isDocument=NB;hB.isMap=fB;hB.isNode=bB;hB.isPair=EB;hB.isScalar=b7;hB.isSeq=CB});var R0=H((tB)=>{var n=g(),e=Symbol("break visit"),h7=Symbol("skip children"),H1=Symbol("remove node");function S_(_,q){let $=x7(q);if(n.isDocument(_)){if(q0(null,_.contents,$,Object.freeze([_]))===H1)_.contents=null}else q0(null,_,$,Object.freeze([]))}S_.BREAK=e;S_.SKIP=h7;S_.REMOVE=H1;function q0(_,q,$,Z){let X=g7(_,q,$,Z);if(n.isNode(X)||n.isPair(X))return k7(_,Z,X),q0(_,X,$,Z);if(typeof X!=="symbol"){if(n.isCollection(q)){Z=Object.freeze(Z.concat(q));for(let z=0;z<q.items.length;++z){let U=q0(z,q.items[z],$,Z);if(typeof U==="number")z=U-1;else if(U===e)return e;else if(U===H1)q.items.splice(z,1),z-=1}}else if(n.isPair(q)){Z=Object.freeze(Z.concat(q));let z=q0("key",q.key,$,Z);if(z===e)return e;else if(z===H1)q.key=null;let U=q0("value",q.value,$,Z);if(U===e)return e;else if(U===H1)q.value=null}}return X}async function R_(_,q){let $=x7(q);if(n.isDocument(_)){if(await $0(null,_.contents,$,Object.freeze([_]))===H1)_.contents=null}else await $0(null,_,$,Object.freeze([]))}R_.BREAK=e;R_.SKIP=h7;R_.REMOVE=H1;async function $0(_,q,$,Z){let X=await g7(_,q,$,Z);if(n.isNode(X)||n.isPair(X))return k7(_,Z,X),$0(_,X,$,Z);if(typeof X!=="symbol"){if(n.isCollection(q)){Z=Object.freeze(Z.concat(q));for(let z=0;z<q.items.length;++z){let U=await $0(z,q.items[z],$,Z);if(typeof U==="number")z=U-1;else if(U===e)return e;else if(U===H1)q.items.splice(z,1),z-=1}}else if(n.isPair(q)){Z=Object.freeze(Z.concat(q));let z=await $0("key",q.key,$,Z);if(z===e)return e;else if(z===H1)q.key=null;let U=await $0("value",q.value,$,Z);if(U===e)return e;else if(U===H1)q.value=null}}return X}function x7(_){if(typeof _==="object"&&(_.Collection||_.Node||_.Value))return Object.assign({Alias:_.Node,Map:_.Node,Scalar:_.Node,Seq:_.Node},_.Value&&{Map:_.Value,Scalar:_.Value,Seq:_.Value},_.Collection&&{Map:_.Collection,Seq:_.Collection},_);return _}function g7(_,q,$,Z){if(typeof $==="function")return $(_,q,Z);if(n.isMap(q))return $.Map?.(_,q,Z);if(n.isSeq(q))return $.Seq?.(_,q,Z);if(n.isPair(q))return $.Pair?.(_,q,Z);if(n.isScalar(q))return $.Scalar?.(_,q,Z);if(n.isAlias(q))return $.Alias?.(_,q,Z);return}function k7(_,q,$){let Z=q[q.length-1];if(n.isCollection(Z))Z.items[_]=$;else if(n.isPair(Z))if(_==="key")Z.key=$;else Z.value=$;else if(n.isDocument(Z))Z.contents=$;else{let X=n.isAlias(Z)?"alias":"scalar";throw Error(`Cannot replace node with ${X} parent`)}}tB.visit=S_;tB.visitAsync=R_});var M9=H((XJ)=>{var v7=g(),qJ=R0(),$J={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ZJ=(_)=>_.replace(/[!,[\]{}]/g,(q)=>$J[q]);class U1{constructor(_,q){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},U1.defaultYaml,_),this.tags=Object.assign({},U1.defaultTags,q)}clone(){let _=new U1(this.yaml,this.tags);return _.docStart=this.docStart,_}atDocument(){let _=new U1(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:U1.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},U1.defaultTags);break}return _}add(_,q){if(this.atNextDocument)this.yaml={explicit:U1.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},U1.defaultTags),this.atNextDocument=!1;let $=_.trim().split(/[ \t]+/),Z=$.shift();switch(Z){case"%TAG":{if($.length!==2){if(q(0,"%TAG directive should contain exactly two parts"),$.length<2)return!1}let[X,z]=$;return this.tags[X]=z,!0}case"%YAML":{if(this.yaml.explicit=!0,$.length!==1)return q(0,"%YAML directive should contain exactly one part"),!1;let[X]=$;if(X==="1.1"||X==="1.2")return this.yaml.version=X,!0;else{let z=/^\d+\.\d+$/.test(X);return q(6,`Unsupported YAML version ${X}`,z),!1}}default:return q(0,`Unknown directive ${Z}`,!0),!1}}tagName(_,q){if(_==="!")return"!";if(_[0]!=="!")return q(`Not a valid tag: ${_}`),null;if(_[1]==="<"){let z=_.slice(2,-1);if(z==="!"||z==="!!")return q(`Verbatim tags aren't resolved, so ${_} is invalid.`),null;if(_[_.length-1]!==">")q("Verbatim tags must end with a >");return z}let[,$,Z]=_.match(/^(.*!)([^!]*)$/s);if(!Z)q(`The ${_} tag has no suffix`);let X=this.tags[$];if(X)try{return X+decodeURIComponent(Z)}catch(z){return q(String(z)),null}if($==="!")return _;return q(`Could not resolve tag: ${_}`),null}tagString(_){for(let[q,$]of Object.entries(this.tags))if(_.startsWith($))return q+ZJ(_.substring($.length));return _[0]==="!"?_:`!<${_}>`}toString(_){let q=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],$=Object.entries(this.tags),Z;if(_&&$.length>0&&v7.isNode(_.contents)){let X={};qJ.visit(_.contents,(z,U)=>{if(v7.isNode(U)&&U.tag)X[U.tag]=!0}),Z=Object.keys(X)}else Z=[];for(let[X,z]of $){if(X==="!!"&&z==="tag:yaml.org,2002:")continue;if(!_||Z.some((U)=>U.startsWith(z)))q.push(`%TAG ${X} ${z}`)}return q.join(`
49
- `)}}U1.defaultYaml={explicit:!1,version:"1.2"};U1.defaultTags={"!!":"tag:yaml.org,2002:"};XJ.Directives=U1});var P_=H((BJ)=>{var u7=g(),UJ=R0();function QJ(_){if(/[\x00-\x19\s,[\]{}]/.test(_)){let $=`Anchor must not contain whitespace or control characters: ${JSON.stringify(_)}`;throw Error($)}return!0}function m7(_){let q=new Set;return UJ.visit(_,{Value($,Z){if(Z.anchor)q.add(Z.anchor)}}),q}function d7(_,q){for(let $=1;;++$){let Z=`${_}${$}`;if(!q.has(Z))return Z}}function YJ(_,q){let $=[],Z=new Map,X=null;return{onAnchor:(z)=>{$.push(z),X??(X=m7(_));let U=d7(q,X);return X.add(U),U},setAnchors:()=>{for(let z of $){let U=Z.get(z);if(typeof U==="object"&&U.anchor&&(u7.isScalar(U.node)||u7.isCollection(U.node)))U.node.anchor=U.anchor;else{let Q=Error("Failed to resolve repeated object (this should not happen)");throw Q.source=z,Q}}},sourceObjects:Z}}BJ.anchorIsValid=QJ;BJ.anchorNames=m7;BJ.createNodeAnchors=YJ;BJ.findNewAnchor=d7});var I9=H((GJ)=>{function P0(_,q,$,Z){if(Z&&typeof Z==="object")if(Array.isArray(Z))for(let X=0,z=Z.length;X<z;++X){let U=Z[X],Q=P0(_,Z,String(X),U);if(Q===void 0)delete Z[X];else if(Q!==U)Z[X]=Q}else if(Z instanceof Map)for(let X of Array.from(Z.keys())){let z=Z.get(X),U=P0(_,Z,X,z);if(U===void 0)Z.delete(X);else if(U!==z)Z.set(X,U)}else if(Z instanceof Set)for(let X of Array.from(Z)){let z=P0(_,Z,X,X);if(z===void 0)Z.delete(X);else if(z!==X)Z.delete(X),Z.add(z)}else for(let[X,z]of Object.entries(Z)){let U=P0(_,Z,X,z);if(U===void 0)delete Z[X];else if(U!==z)Z[X]=U}return _.call(q,$,Z)}GJ.applyReviver=P0});var j1=H((MJ)=>{var HJ=g();function l7(_,q,$){if(Array.isArray(_))return _.map((Z,X)=>l7(Z,String(X),$));if(_&&typeof _.toJSON==="function"){if(!$||!HJ.hasAnchor(_))return _.toJSON(q,$);let Z={aliasCount:0,count:1,res:void 0};$.anchors.set(_,Z),$.onCreate=(z)=>{Z.res=z,delete $.onCreate};let X=_.toJSON(q,$);if($.onCreate)$.onCreate(X);return X}if(typeof _==="bigint"&&!$?.keep)return Number(_);return _}MJ.toJS=l7});var j_=H((DJ)=>{var TJ=I9(),i7=g(),KJ=j1();class c7{constructor(_){Object.defineProperty(this,i7.NODE_TYPE,{value:_})}clone(){let _=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)_.range=this.range.slice();return _}toJS(_,{mapAsMap:q,maxAliasCount:$,onAnchor:Z,reviver:X}={}){if(!i7.isDocument(_))throw TypeError("A document argument is required");let z={anchors:new Map,doc:_,keep:!0,mapAsMap:q===!0,mapKeyWarned:!1,maxAliasCount:typeof $==="number"?$:100},U=KJ.toJS(this,"",z);if(typeof Z==="function")for(let{count:Q,res:Y}of z.anchors.values())Z(Y,Q);return typeof X==="function"?TJ.applyReviver(X,{"":U},"",U):U}}DJ.NodeBase=c7});var j0=H((AJ)=>{var SJ=P_(),RJ=R0(),Z0=g(),PJ=j_(),jJ=j1();class p7 extends PJ.NodeBase{constructor(_){super(Z0.ALIAS);this.source=_,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(_,q){let $;if(q?.aliasResolveCache)$=q.aliasResolveCache;else if($=[],RJ.visit(_,{Node:(X,z)=>{if(Z0.isAlias(z)||Z0.hasAnchor(z))$.push(z)}}),q)q.aliasResolveCache=$;let Z=void 0;for(let X of $){if(X===this)break;if(X.anchor===this.source)Z=X}return Z}toJSON(_,q){if(!q)return{source:this.source};let{anchors:$,doc:Z,maxAliasCount:X}=q,z=this.resolve(Z,q);if(!z){let Q=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(Q)}let U=$.get(z);if(!U)jJ.toJS(z,null,q),U=$.get(z);if(!U||U.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(X>=0){if(U.count+=1,U.aliasCount===0)U.aliasCount=A_(Z,z,$);if(U.count*U.aliasCount>X)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return U.res}toString(_,q,$){let Z=`*${this.source}`;if(_){if(SJ.anchorIsValid(this.source),_.options.verifyAliasOrder&&!_.anchors.has(this.source)){let X=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(X)}if(_.implicitKey)return`${Z} `}return Z}}function A_(_,q,$){if(Z0.isAlias(q)){let Z=q.resolve(_),X=$&&Z&&$.get(Z);return X?X.count*X.aliasCount:0}else if(Z0.isCollection(q)){let Z=0;for(let X of q.items){let z=A_(_,X,$);if(z>Z)Z=z}return Z}else if(Z0.isPair(q)){let Z=A_(_,q.key,$),X=A_(_,q.value,$);return Math.max(Z,X)}return 1}AJ.Alias=p7});var r=H((bJ)=>{var NJ=g(),fJ=j_(),EJ=j1(),CJ=(_)=>!_||typeof _!=="function"&&typeof _!=="object";class v1 extends fJ.NodeBase{constructor(_){super(NJ.SCALAR);this.value=_}toJSON(_,q){return q?.keep?this.value:EJ.toJS(this.value,_,q)}toString(){return String(this.value)}}v1.BLOCK_FOLDED="BLOCK_FOLDED";v1.BLOCK_LITERAL="BLOCK_LITERAL";v1.PLAIN="PLAIN";v1.QUOTE_DOUBLE="QUOTE_DOUBLE";v1.QUOTE_SINGLE="QUOTE_SINGLE";bJ.Scalar=v1;bJ.isScalarValue=CJ});var A0=H((uJ)=>{var xJ=j0(),u1=g(),r7=r(),gJ="tag:yaml.org,2002:";function kJ(_,q,$){if(q){let Z=$.filter((z)=>z.tag===q),X=Z.find((z)=>!z.format)??Z[0];if(!X)throw Error(`Tag ${q} not found`);return X}return $.find((Z)=>Z.identify?.(_)&&!Z.format)}function vJ(_,q,$){if(u1.isDocument(_))_=_.contents;if(u1.isNode(_))return _;if(u1.isPair(_)){let V=$.schema[u1.MAP].createNode?.($.schema,null,$);return V.items.push(_),V}if(_ instanceof String||_ instanceof Number||_ instanceof Boolean||typeof BigInt<"u"&&_ instanceof BigInt)_=_.valueOf();let{aliasDuplicateObjects:Z,onAnchor:X,onTagObj:z,schema:U,sourceObjects:Q}=$,Y=void 0;if(Z&&_&&typeof _==="object")if(Y=Q.get(_),Y)return Y.anchor??(Y.anchor=X(_)),new xJ.Alias(Y.anchor);else Y={anchor:null,node:null},Q.set(_,Y);if(q?.startsWith("!!"))q=gJ+q.slice(2);let B=kJ(_,q,U.tags);if(!B){if(_&&typeof _.toJSON==="function")_=_.toJSON();if(!_||typeof _!=="object"){let V=new r7.Scalar(_);if(Y)Y.node=V;return V}B=_ instanceof Map?U[u1.MAP]:(Symbol.iterator in Object(_))?U[u1.SEQ]:U[u1.MAP]}if(z)z(B),delete $.onTagObj;let W=B?.createNode?B.createNode($.schema,_,$):typeof B?.nodeClass?.from==="function"?B.nodeClass.from($.schema,_,$):new r7.Scalar(_);if(q)W.tag=q;else if(!B.default)W.tag=B.tag;if(Y)Y.node=W;return W}uJ.createNode=vJ});var O_=H((iJ)=>{var dJ=A0(),M1=g(),lJ=j_();function T9(_,q,$){let Z=$;for(let X=q.length-1;X>=0;--X){let z=q[X];if(typeof z==="number"&&Number.isInteger(z)&&z>=0){let U=[];U[z]=Z,Z=U}else Z=new Map([[z,Z]])}return dJ.createNode(Z,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:_,sourceObjects:new Map})}var s7=(_)=>_==null||typeof _==="object"&&!!_[Symbol.iterator]().next().done;class n7 extends lJ.NodeBase{constructor(_,q){super(_);Object.defineProperty(this,"schema",{value:q,configurable:!0,enumerable:!1,writable:!0})}clone(_){let q=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(_)q.schema=_;if(q.items=q.items.map(($)=>M1.isNode($)||M1.isPair($)?$.clone(_):$),this.range)q.range=this.range.slice();return q}addIn(_,q){if(s7(_))this.add(q);else{let[$,...Z]=_,X=this.get($,!0);if(M1.isCollection(X))X.addIn(Z,q);else if(X===void 0&&this.schema)this.set($,T9(this.schema,Z,q));else throw Error(`Expected YAML collection at ${$}. Remaining path: ${Z}`)}}deleteIn(_){let[q,...$]=_;if($.length===0)return this.delete(q);let Z=this.get(q,!0);if(M1.isCollection(Z))return Z.deleteIn($);else throw Error(`Expected YAML collection at ${q}. Remaining path: ${$}`)}getIn(_,q){let[$,...Z]=_,X=this.get($,!0);if(Z.length===0)return!q&&M1.isScalar(X)?X.value:X;else return M1.isCollection(X)?X.getIn(Z,q):void 0}hasAllNullValues(_){return this.items.every((q)=>{if(!M1.isPair(q))return!1;let $=q.value;return $==null||_&&M1.isScalar($)&&$.value==null&&!$.commentBefore&&!$.comment&&!$.tag})}hasIn(_){let[q,...$]=_;if($.length===0)return this.has(q);let Z=this.get(q,!0);return M1.isCollection(Z)?Z.hasIn($):!1}setIn(_,q){let[$,...Z]=_;if(Z.length===0)this.set($,q);else{let X=this.get($,!0);if(M1.isCollection(X))X.setIn(Z,q);else if(X===void 0&&this.schema)this.set($,T9(this.schema,Z,q));else throw Error(`Expected YAML collection at ${$}. Remaining path: ${Z}`)}}}iJ.Collection=n7;iJ.collectionFromPath=T9;iJ.isEmptyPath=s7});var O0=H((aJ)=>{var sJ=(_)=>_.replace(/^(?!$)(?: $)?/gm,"#");function K9(_,q){if(/^\n+$/.test(_))return _.substring(1);return q?_.replace(/^(?! *$)/gm,q):_}var nJ=(_,q,$)=>_.endsWith(`
50
- `)?K9($,q):$.includes(`
47
+ */var tX=v("util"),s4=p4(),r4=(_)=>_!==null&&typeof _==="object"&&!Array.isArray(_),eX=(_)=>{return(q)=>_===!0?Number(q):String(q)},gq=(_)=>{return typeof _==="number"||typeof _==="string"&&_!==""},D0=(_)=>Number.isInteger(+_),kq=(_)=>{let q=`${_}`,$=-1;if(q[0]==="-")q=q.slice(1);if(q==="0")return!1;while(q[++$]==="0");return $>0},_z=(_,q,$)=>{if(typeof _==="string"||typeof q==="string")return!0;return $.stringify===!0},qz=(_,q,$)=>{if(q>0){let Z=_[0]==="-"?"-":"";if(Z)_=_.slice(1);_=Z+_.padStart(Z?q-1:q,"0")}if($===!1)return String(_);return _},W_=(_,q)=>{let $=_[0]==="-"?"-":"";if($)_=_.slice(1),q--;while(_.length<q)_="0"+_;return $?"-"+_:_},$z=(_,q,$)=>{_.negatives.sort((Q,Y)=>Q<Y?-1:Q>Y?1:0),_.positives.sort((Q,Y)=>Q<Y?-1:Q>Y?1:0);let Z=q.capture?"":"?:",X="",z="",U;if(_.positives.length)X=_.positives.map((Q)=>W_(String(Q),$)).join("|");if(_.negatives.length)z=`-(${Z}${_.negatives.map((Q)=>W_(String(Q),$)).join("|")})`;if(X&&z)U=`${X}|${z}`;else U=X||z;if(q.wrap)return`(${Z}${U})`;return U},n4=(_,q,$,Z)=>{if($)return s4(_,q,{wrap:!1,...Z});let X=String.fromCharCode(_);if(_===q)return X;let z=String.fromCharCode(q);return`[${X}-${z}]`},a4=(_,q,$)=>{if(Array.isArray(_)){let Z=$.wrap===!0,X=$.capture?"":"?:";return Z?`(${X}${_.join("|")})`:_.join("|")}return s4(_,q,$)},o4=(..._)=>{return RangeError("Invalid range arguments: "+tX.inspect(..._))},t4=(_,q,$)=>{if($.strictRanges===!0)throw o4([_,q]);return[]},Zz=(_,q)=>{if(q.strictRanges===!0)throw TypeError(`Expected step "${_}" to be a number`);return[]},Xz=(_,q,$=1,Z={})=>{let X=Number(_),z=Number(q);if(!Number.isInteger(X)||!Number.isInteger(z)){if(Z.strictRanges===!0)throw o4([_,q]);return[]}if(X===0)X=0;if(z===0)z=0;let U=X>z,Q=String(_),Y=String(q),J=String($);$=Math.max(Math.abs($),1);let W=kq(Q)||kq(Y)||kq(J),V=W?Math.max(Q.length,Y.length,J.length):0,B=W===!1&&_z(_,q,Z)===!1,F=Z.transform||eX(B);if(Z.toRegex&&$===1)return n4(W_(_,V),W_(q,V),!0,Z);let L={negatives:[],positives:[]},G=(O)=>L[O<0?"negatives":"positives"].push(Math.abs(O)),H=[],S=0;while(U?X>=z:X<=z){if(Z.toRegex===!0&&$>1)G(X);else H.push(qz(F(X,S),V,B));X=U?X-$:X+$,S++}if(Z.toRegex===!0)return $>1?$z(L,Z,V):a4(H,null,{wrap:!1,...Z});return H},zz=(_,q,$=1,Z={})=>{if(!D0(_)&&_.length>1||!D0(q)&&q.length>1)return t4(_,q,Z);let X=Z.transform||((B)=>String.fromCharCode(B)),z=`${_}`.charCodeAt(0),U=`${q}`.charCodeAt(0),Q=z>U,Y=Math.min(z,U),J=Math.max(z,U);if(Z.toRegex&&$===1)return n4(Y,J,!1,Z);let W=[],V=0;while(Q?z>=U:z<=U)W.push(X(z,V)),z=Q?z-$:z+$,V++;if(Z.toRegex===!0)return a4(W,null,{wrap:!1,options:Z});return W},B_=(_,q,$,Z={})=>{if(q==null&&gq(_))return[_];if(!gq(_)||!gq(q))return t4(_,q,Z);if(typeof $==="function")return B_(_,q,1,{transform:$});if(r4($))return B_(_,q,0,$);let X={...Z};if(X.capture===!0)X.wrap=!0;if($=$||X.step||1,!D0($)){if($!=null&&!r4($))return Zz($,X);return B_(_,q,1,$)}if(D0(_)&&D0(q))return Xz(_,q,$,X);return zz(_,q,Math.max(Math.abs($),1),X)};e4.exports=B_});var $3=M((cT,q3)=>{var Uz=uq(),_3=Y_(),Qz=(_,q={})=>{let $=(Z,X={})=>{let z=_3.isInvalidBrace(X),U=Z.invalid===!0&&q.escapeInvalid===!0,Q=z===!0||U===!0,Y=q.escapeInvalid===!0?"\\":"",J="";if(Z.isOpen===!0)return Y+Z.value;if(Z.isClose===!0)return console.log("node.isClose",Y,Z.value),Y+Z.value;if(Z.type==="open")return Q?Y+Z.value:"(";if(Z.type==="close")return Q?Y+Z.value:")";if(Z.type==="comma")return Z.prev.type==="comma"?"":Q?Z.value:"|";if(Z.value)return Z.value;if(Z.nodes&&Z.ranges>0){let W=_3.reduce(Z.nodes),V=Uz(...W,{...q,wrap:!1,toRegex:!0,strictZeros:!0});if(V.length!==0)return W.length>1&&V.length>1?`(${V})`:V}if(Z.nodes)for(let W of Z.nodes)J+=$(W,Z);return J};return $(_)};q3.exports=Qz});var z3=M((pT,X3)=>{var Yz=uq(),Z3=J_(),_0=Y_(),d1=(_="",q="",$=!1)=>{let Z=[];if(_=[].concat(_),q=[].concat(q),!q.length)return _;if(!_.length)return $?_0.flatten(q).map((X)=>`{${X}}`):q;for(let X of _)if(Array.isArray(X))for(let z of X)Z.push(d1(z,q,$));else for(let z of q){if($===!0&&typeof z==="string")z=`{${z}}`;Z.push(Array.isArray(z)?d1(X,z,$):X+z)}return _0.flatten(Z)},Jz=(_,q={})=>{let $=q.rangeLimit===void 0?1000:q.rangeLimit,Z=(X,z={})=>{X.queue=[];let U=z,Q=z.queue;while(U.type!=="brace"&&U.type!=="root"&&U.parent)U=U.parent,Q=U.queue;if(X.invalid||X.dollar){Q.push(d1(Q.pop(),Z3(X,q)));return}if(X.type==="brace"&&X.invalid!==!0&&X.nodes.length===2){Q.push(d1(Q.pop(),["{}"]));return}if(X.nodes&&X.ranges>0){let V=_0.reduce(X.nodes);if(_0.exceedsLimit(...V,q.step,$))throw RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let B=Yz(...V,q);if(B.length===0)B=Z3(X,q);Q.push(d1(Q.pop(),B)),X.nodes=[];return}let Y=_0.encloseBrace(X),J=X.queue,W=X;while(W.type!=="brace"&&W.type!=="root"&&W.parent)W=W.parent,J=W.queue;for(let V=0;V<X.nodes.length;V++){let B=X.nodes[V];if(B.type==="comma"&&X.type==="brace"){if(V===1)J.push("");J.push("");continue}if(B.type==="close"){Q.push(d1(Q.pop(),J,Y));continue}if(B.value&&B.type!=="open"){J.push(d1(J.pop(),B.value));continue}if(B.nodes)Z(B,X)}return J};return _0.flatten(Z(_))};X3.exports=Jz});var Q3=M((rT,U3)=>{U3.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
48
+ `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var V3=M((sT,W3)=>{var Bz=J_(),{MAX_LENGTH:Y3,CHAR_BACKSLASH:mq,CHAR_BACKTICK:Wz,CHAR_COMMA:Vz,CHAR_DOT:Gz,CHAR_LEFT_PARENTHESES:Fz,CHAR_RIGHT_PARENTHESES:Lz,CHAR_LEFT_CURLY_BRACE:Mz,CHAR_RIGHT_CURLY_BRACE:Hz,CHAR_LEFT_SQUARE_BRACKET:J3,CHAR_RIGHT_SQUARE_BRACKET:B3,CHAR_DOUBLE_QUOTE:Iz,CHAR_SINGLE_QUOTE:Tz,CHAR_NO_BREAK_SPACE:Kz,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Dz}=Q3(),wz=(_,q={})=>{if(typeof _!=="string")throw TypeError("Expected a string");let $=q||{},Z=typeof $.maxLength==="number"?Math.min(Y3,$.maxLength):Y3;if(_.length>Z)throw SyntaxError(`Input length (${_.length}), exceeds max characters (${Z})`);let X={type:"root",input:_,nodes:[]},z=[X],U=X,Q=X,Y=0,J=_.length,W=0,V=0,B,F=()=>_[W++],L=(G)=>{if(G.type==="text"&&Q.type==="dot")Q.type="text";if(Q&&Q.type==="text"&&G.type==="text"){Q.value+=G.value;return}return U.nodes.push(G),G.parent=U,G.prev=Q,Q=G,G};L({type:"bos"});while(W<J){if(U=z[z.length-1],B=F(),B===Dz||B===Kz)continue;if(B===mq){L({type:"text",value:(q.keepEscaping?B:"")+F()});continue}if(B===B3){L({type:"text",value:"\\"+B});continue}if(B===J3){Y++;let G;while(W<J&&(G=F())){if(B+=G,G===J3){Y++;continue}if(G===mq){B+=F();continue}if(G===B3){if(Y--,Y===0)break}}L({type:"text",value:B});continue}if(B===Fz){U=L({type:"paren",nodes:[]}),z.push(U),L({type:"text",value:B});continue}if(B===Lz){if(U.type!=="paren"){L({type:"text",value:B});continue}U=z.pop(),L({type:"text",value:B}),U=z[z.length-1];continue}if(B===Iz||B===Tz||B===Wz){let G=B,H;if(q.keepQuotes!==!0)B="";while(W<J&&(H=F())){if(H===mq){B+=H+F();continue}if(H===G){if(q.keepQuotes===!0)B+=H;break}B+=H}L({type:"text",value:B});continue}if(B===Mz){V++;let H={type:"brace",open:!0,close:!1,dollar:Q.value&&Q.value.slice(-1)==="$"||U.dollar===!0,depth:V,commas:0,ranges:0,nodes:[]};U=L(H),z.push(U),L({type:"open",value:B});continue}if(B===Hz){if(U.type!=="brace"){L({type:"text",value:B});continue}let G="close";U=z.pop(),U.close=!0,L({type:G,value:B}),V--,U=z[z.length-1];continue}if(B===Vz&&V>0){if(U.ranges>0){U.ranges=0;let G=U.nodes.shift();U.nodes=[G,{type:"text",value:Bz(U)}]}L({type:"comma",value:B}),U.commas++;continue}if(B===Gz&&V>0&&U.commas===0){let G=U.nodes;if(V===0||G.length===0){L({type:"text",value:B});continue}if(Q.type==="dot"){if(U.range=[],Q.value+=B,Q.type="range",U.nodes.length!==3&&U.nodes.length!==5){U.invalid=!0,U.ranges=0,Q.type="text";continue}U.ranges++,U.args=[];continue}if(Q.type==="range"){G.pop();let H=G[G.length-1];H.value+=Q.value+B,Q=H,U.ranges--;continue}L({type:"dot",value:B});continue}L({type:"text",value:B})}do if(U=z.pop(),U.type!=="root"){U.nodes.forEach((S)=>{if(!S.nodes){if(S.type==="open")S.isOpen=!0;if(S.type==="close")S.isClose=!0;if(!S.nodes)S.type="text";S.invalid=!0}});let G=z[z.length-1],H=G.nodes.indexOf(U);G.nodes.splice(H,1,...U.nodes)}while(z.length>0);return L({type:"eos"}),X};W3.exports=wz});var L3=M((nT,F3)=>{var G3=J_(),Sz=$3(),Rz=z3(),jz=V3(),Z1=(_,q={})=>{let $=[];if(Array.isArray(_))for(let Z of _){let X=Z1.create(Z,q);if(Array.isArray(X))$.push(...X);else $.push(X)}else $=[].concat(Z1.create(_,q));if(q&&q.expand===!0&&q.nodupes===!0)$=[...new Set($)];return $};Z1.parse=(_,q={})=>jz(_,q);Z1.stringify=(_,q={})=>{if(typeof _==="string")return G3(Z1.parse(_,q),q);return G3(_,q)};Z1.compile=(_,q={})=>{if(typeof _==="string")_=Z1.parse(_,q);return Sz(_,q)};Z1.expand=(_,q={})=>{if(typeof _==="string")_=Z1.parse(_,q);let $=Rz(_,q);if(q.noempty===!0)$=$.filter(Boolean);if(q.nodupes===!0)$=[...new Set($)];return $};Z1.create=(_,q={})=>{if(_===""||_.length<3)return[_];return q.expand!==!0?Z1.compile(_,q):Z1.expand(_,q)};F3.exports=Z1});var w0=M((aT,H3)=>{var Pz=v("path"),M3={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},Az={...M3,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"},Oz={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};H3.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:Oz,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Pz.sep,extglobChars(_){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${_.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(_){return _===!0?Az:M3}}});var S0=M((xz)=>{var fz=v("path"),Nz=process.platform==="win32",{REGEX_BACKSLASH:Ez,REGEX_REMOVE_BACKSLASH:Cz,REGEX_SPECIAL_CHARS:bz,REGEX_SPECIAL_CHARS_GLOBAL:yz}=w0();xz.isObject=(_)=>_!==null&&typeof _==="object"&&!Array.isArray(_);xz.hasRegexChars=(_)=>bz.test(_);xz.isRegexChar=(_)=>_.length===1&&xz.hasRegexChars(_);xz.escapeRegex=(_)=>_.replace(yz,"\\$1");xz.toPosixSlashes=(_)=>_.replace(Ez,"/");xz.removeBackslashes=(_)=>{return _.replace(Cz,(q)=>{return q==="\\"?"":q})};xz.supportsLookbehinds=()=>{let _=process.version.slice(1).split(".").map(Number);if(_.length===3&&_[0]>=9||_[0]===8&&_[1]>=10)return!0;return!1};xz.isWindows=(_)=>{if(_&&typeof _.windows==="boolean")return _.windows;return Nz===!0||fz.sep==="\\"};xz.escapeLast=(_,q,$)=>{let Z=_.lastIndexOf(q,$);if(Z===-1)return _;if(_[Z-1]==="\\")return xz.escapeLast(_,q,Z-1);return`${_.slice(0,Z)}\\${_.slice(Z)}`};xz.removePrefix=(_,q={})=>{let $=_;if($.startsWith("./"))$=$.slice(2),q.prefix="./";return $};xz.wrapOutput=(_,q={},$={})=>{let Z=$.contains?"":"^",X=$.contains?"":"$",z=`${Z}(?:${_})${X}`;if(q.negated===!0)z=`(?:^(?!${z}).*$)`;return z}});var A3=M((tT,P3)=>{var K3=S0(),{CHAR_ASTERISK:dq,CHAR_AT:cz,CHAR_BACKWARD_SLASH:R0,CHAR_COMMA:pz,CHAR_DOT:lq,CHAR_EXCLAMATION_MARK:iq,CHAR_FORWARD_SLASH:j3,CHAR_LEFT_CURLY_BRACE:cq,CHAR_LEFT_PARENTHESES:pq,CHAR_LEFT_SQUARE_BRACKET:rz,CHAR_PLUS:sz,CHAR_QUESTION_MARK:D3,CHAR_RIGHT_CURLY_BRACE:nz,CHAR_RIGHT_PARENTHESES:w3,CHAR_RIGHT_SQUARE_BRACKET:az}=w0(),S3=(_)=>{return _===j3||_===R0},R3=(_)=>{if(_.isPrefix!==!0)_.depth=_.isGlobstar?1/0:1},oz=(_,q)=>{let $=q||{},Z=_.length-1,X=$.parts===!0||$.scanToEnd===!0,z=[],U=[],Q=[],Y=_,J=-1,W=0,V=0,B=!1,F=!1,L=!1,G=!1,H=!1,S=!1,O=!1,A=!1,C=!1,N=!1,R=0,E,I,b={value:"",depth:0,isGlob:!1},m=()=>J>=Z,K=()=>Y.charCodeAt(J+1),j=()=>{return E=I,Y.charCodeAt(++J)};while(J<Z){I=j();let o;if(I===R0){if(O=b.backslashes=!0,I=j(),I===cq)S=!0;continue}if(S===!0||I===cq){R++;while(m()!==!0&&(I=j())){if(I===R0){O=b.backslashes=!0,j();continue}if(I===cq){R++;continue}if(S!==!0&&I===lq&&(I=j())===lq){if(B=b.isBrace=!0,L=b.isGlob=!0,N=!0,X===!0)continue;break}if(S!==!0&&I===pz){if(B=b.isBrace=!0,L=b.isGlob=!0,N=!0,X===!0)continue;break}if(I===nz){if(R--,R===0){S=!1,B=b.isBrace=!0,N=!0;break}}}if(X===!0)continue;break}if(I===j3){if(z.push(J),U.push(b),b={value:"",depth:0,isGlob:!1},N===!0)continue;if(E===lq&&J===W+1){W+=2;continue}V=J+1;continue}if($.noext!==!0){if((I===sz||I===cz||I===dq||I===D3||I===iq)===!0&&K()===pq){if(L=b.isGlob=!0,G=b.isExtglob=!0,N=!0,I===iq&&J===W)C=!0;if(X===!0){while(m()!==!0&&(I=j())){if(I===R0){O=b.backslashes=!0,I=j();continue}if(I===w3){L=b.isGlob=!0,N=!0;break}}continue}break}}if(I===dq){if(E===dq)H=b.isGlobstar=!0;if(L=b.isGlob=!0,N=!0,X===!0)continue;break}if(I===D3){if(L=b.isGlob=!0,N=!0,X===!0)continue;break}if(I===rz){while(m()!==!0&&(o=j())){if(o===R0){O=b.backslashes=!0,j();continue}if(o===az){F=b.isBracket=!0,L=b.isGlob=!0,N=!0;break}}if(X===!0)continue;break}if($.nonegate!==!0&&I===iq&&J===W){A=b.negated=!0,W++;continue}if($.noparen!==!0&&I===pq){if(L=b.isGlob=!0,X===!0){while(m()!==!0&&(I=j())){if(I===pq){O=b.backslashes=!0,I=j();continue}if(I===w3){N=!0;break}}continue}break}if(L===!0){if(N=!0,X===!0)continue;break}}if($.noext===!0)G=!1,L=!1;let y=Y,p="",T="";if(W>0)p=Y.slice(0,W),Y=Y.slice(W),V-=W;if(y&&L===!0&&V>0)y=Y.slice(0,V),T=Y.slice(V);else if(L===!0)y="",T=Y;else y=Y;if(y&&y!==""&&y!=="/"&&y!==Y){if(S3(y.charCodeAt(y.length-1)))y=y.slice(0,-1)}if($.unescape===!0){if(T)T=K3.removeBackslashes(T);if(y&&O===!0)y=K3.removeBackslashes(y)}let D={prefix:p,input:_,start:W,base:y,glob:T,isBrace:B,isBracket:F,isGlob:L,isExtglob:G,isGlobstar:H,negated:A,negatedExtglob:C};if($.tokens===!0){if(D.maxDepth=0,!S3(I))U.push(b);D.tokens=U}if($.parts===!0||$.tokens===!0){let o;for(let u=0;u<z.length;u++){let M1=o?o+1:W,H1=z[u],$1=_.slice(M1,H1);if($.tokens){if(u===0&&W!==0)U[u].isPrefix=!0,U[u].value=p;else U[u].value=$1;R3(U[u]),D.maxDepth+=U[u].depth}if(u!==0||$1!=="")Q.push($1);o=H1}if(o&&o+1<_.length){let u=_.slice(o+1);if(Q.push(u),$.tokens)U[U.length-1].value=u,R3(U[U.length-1]),D.maxDepth+=U[U.length-1].depth}D.slashes=z,D.parts=Q}return D};P3.exports=oz});var N3=M((eT,f3)=>{var V_=w0(),X1=S0(),{MAX_LENGTH:G_,POSIX_REGEX_SOURCE:tz,REGEX_NON_SPECIAL_CHARS:ez,REGEX_SPECIAL_CHARS_BACKREF:_U,REPLACEMENTS:O3}=V_,qU=(_,q)=>{if(typeof q.expandRange==="function")return q.expandRange(..._,q);_.sort();let $=`[${_.join("-")}]`;try{new RegExp($)}catch(Z){return _.map((X)=>X1.escapeRegex(X)).join("..")}return $},q0=(_,q)=>{return`Missing ${_}: "${q}" - use "\\\\${q}" to match literal characters`},rq=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");_=O3[_]||_;let $={...q},Z=typeof $.maxLength==="number"?Math.min(G_,$.maxLength):G_,X=_.length;if(X>Z)throw SyntaxError(`Input length: ${X}, exceeds maximum allowed length: ${Z}`);let z={type:"bos",value:"",output:$.prepend||""},U=[z],Q=$.capture?"":"?:",Y=X1.isWindows(q),J=V_.globChars(Y),W=V_.extglobChars(J),{DOT_LITERAL:V,PLUS_LITERAL:B,SLASH_LITERAL:F,ONE_CHAR:L,DOTS_SLASH:G,NO_DOT:H,NO_DOT_SLASH:S,NO_DOTS_SLASH:O,QMARK:A,QMARK_NO_DOT:C,STAR:N,START_ANCHOR:R}=J,E=(f)=>{return`(${Q}(?:(?!${R}${f.dot?G:V}).)*?)`},I=$.dot?"":H,b=$.dot?A:C,m=$.bash===!0?E($):N;if($.capture)m=`(${m})`;if(typeof $.noext==="boolean")$.noextglob=$.noext;let K={input:_,index:-1,start:0,dot:$.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:U};_=X1.removePrefix(_,K),X=_.length;let j=[],y=[],p=[],T=z,D,o=()=>K.index===X-1,u=K.peek=(f=1)=>_[K.index+f],M1=K.advance=()=>_[++K.index]||"",H1=()=>_.slice(K.index+1),$1=(f="",d=0)=>{K.consumed+=f,K.index+=d},q_=(f)=>{K.output+=f.output!=null?f.output:f.value,$1(f.value)},FZ=()=>{let f=1;while(u()==="!"&&(u(2)!=="("||u(3)==="?"))M1(),K.start++,f++;if(f%2===0)return!1;return K.negated=!0,K.start++,!0},$_=(f)=>{K[f]++,p.push(f)},k1=(f)=>{K[f]--,p.pop()},h=(f)=>{if(T.type==="globstar"){let d=K.braces>0&&(f.type==="comma"||f.type==="brace"),P=f.extglob===!0||j.length&&(f.type==="pipe"||f.type==="paren");if(f.type!=="slash"&&f.type!=="paren"&&!d&&!P)K.output=K.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=m,K.output+=T.output}if(j.length&&f.type!=="paren")j[j.length-1].inner+=f.value;if(f.value||f.output)q_(f);if(T&&T.type==="text"&&f.type==="text"){T.value+=f.value,T.output=(T.output||"")+f.value;return}f.prev=T,U.push(f),T=f},Z_=(f,d)=>{let P={...W[d],conditions:1,inner:""};P.prev=T,P.parens=K.parens,P.output=K.output;let x=($.capture?"(":"")+P.open;$_("parens"),h({type:f,value:d,output:K.output?"":L}),h({type:"paren",extglob:!0,value:M1(),output:x}),j.push(P)},LZ=(f)=>{let d=f.close+($.capture?")":""),P;if(f.type==="negate"){let x=m;if(f.inner&&f.inner.length>1&&f.inner.includes("/"))x=E($);if(x!==m||o()||/^\)+$/.test(H1()))d=f.close=`)$))${x}`;if(f.inner.includes("*")&&(P=H1())&&/^\.[^\\/.]+$/.test(P)){let c=rq(P,{...q,fastpaths:!1}).output;d=f.close=`)${c})${x})`}if(f.prev.type==="bos")K.negatedExtglob=!0}h({type:"paren",extglob:!0,value:D,output:d}),k1("parens")};if($.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(_)){let f=!1,d=_.replace(_U,(P,x,c,t,n,Rq)=>{if(t==="\\")return f=!0,P;if(t==="?"){if(x)return x+t+(n?A.repeat(n.length):"");if(Rq===0)return b+(n?A.repeat(n.length):"");return A.repeat(c.length)}if(t===".")return V.repeat(c.length);if(t==="*"){if(x)return x+t+(n?m:"");return m}return x?P:`\\${P}`});if(f===!0)if($.unescape===!0)d=d.replace(/\\/g,"");else d=d.replace(/\\+/g,(P)=>{return P.length%2===0?"\\\\":P?"\\":""});if(d===_&&$.contains===!0)return K.output=_,K;return K.output=X1.wrapOutput(d,K,q),K}while(!o()){if(D=M1(),D==="\x00")continue;if(D==="\\"){let P=u();if(P==="/"&&$.bash!==!0)continue;if(P==="."||P===";")continue;if(!P){D+="\\",h({type:"text",value:D});continue}let x=/^\\+/.exec(H1()),c=0;if(x&&x[0].length>2){if(c=x[0].length,K.index+=c,c%2!==0)D+="\\"}if($.unescape===!0)D=M1();else D+=M1();if(K.brackets===0){h({type:"text",value:D});continue}}if(K.brackets>0&&(D!=="]"||T.value==="["||T.value==="[^")){if($.posix!==!1&&D===":"){let P=T.value.slice(1);if(P.includes("[")){if(T.posix=!0,P.includes(":")){let x=T.value.lastIndexOf("["),c=T.value.slice(0,x),t=T.value.slice(x+2),n=tz[t];if(n){if(T.value=c+n,K.backtrack=!0,M1(),!z.output&&U.indexOf(T)===1)z.output=L;continue}}}}if(D==="["&&u()!==":"||D==="-"&&u()==="]")D=`\\${D}`;if(D==="]"&&(T.value==="["||T.value==="[^"))D=`\\${D}`;if($.posix===!0&&D==="!"&&T.value==="[")D="^";T.value+=D,q_({value:D});continue}if(K.quotes===1&&D!=='"'){D=X1.escapeRegex(D),T.value+=D,q_({value:D});continue}if(D==='"'){if(K.quotes=K.quotes===1?0:1,$.keepQuotes===!0)h({type:"text",value:D});continue}if(D==="("){$_("parens"),h({type:"paren",value:D});continue}if(D===")"){if(K.parens===0&&$.strictBrackets===!0)throw SyntaxError(q0("opening","("));let P=j[j.length-1];if(P&&K.parens===P.parens+1){LZ(j.pop());continue}h({type:"paren",value:D,output:K.parens?")":"\\)"}),k1("parens");continue}if(D==="["){if($.nobracket===!0||!H1().includes("]")){if($.nobracket!==!0&&$.strictBrackets===!0)throw SyntaxError(q0("closing","]"));D=`\\${D}`}else $_("brackets");h({type:"bracket",value:D});continue}if(D==="]"){if($.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){h({type:"text",value:D,output:`\\${D}`});continue}if(K.brackets===0){if($.strictBrackets===!0)throw SyntaxError(q0("opening","["));h({type:"text",value:D,output:`\\${D}`});continue}k1("brackets");let P=T.value.slice(1);if(T.posix!==!0&&P[0]==="^"&&!P.includes("/"))D=`/${D}`;if(T.value+=D,q_({value:D}),$.literalBrackets===!1||X1.hasRegexChars(P))continue;let x=X1.escapeRegex(T.value);if(K.output=K.output.slice(0,-T.value.length),$.literalBrackets===!0){K.output+=x,T.value=x;continue}T.value=`(${Q}${x}|${T.value})`,K.output+=T.value;continue}if(D==="{"&&$.nobrace!==!0){$_("braces");let P={type:"brace",value:D,output:"(",outputIndex:K.output.length,tokensIndex:K.tokens.length};y.push(P),h(P);continue}if(D==="}"){let P=y[y.length-1];if($.nobrace===!0||!P){h({type:"text",value:D,output:D});continue}let x=")";if(P.dots===!0){let c=U.slice(),t=[];for(let n=c.length-1;n>=0;n--){if(U.pop(),c[n].type==="brace")break;if(c[n].type!=="dots")t.unshift(c[n].value)}x=qU(t,$),K.backtrack=!0}if(P.comma!==!0&&P.dots!==!0){let c=K.output.slice(0,P.outputIndex),t=K.tokens.slice(P.tokensIndex);P.value=P.output="\\{",D=x="\\}",K.output=c;for(let n of t)K.output+=n.output||n.value}h({type:"brace",value:D,output:x}),k1("braces"),y.pop();continue}if(D==="|"){if(j.length>0)j[j.length-1].conditions++;h({type:"text",value:D});continue}if(D===","){let P=D,x=y[y.length-1];if(x&&p[p.length-1]==="braces")x.comma=!0,P="|";h({type:"comma",value:D,output:P});continue}if(D==="/"){if(T.type==="dot"&&K.index===K.start+1){K.start=K.index+1,K.consumed="",K.output="",U.pop(),T=z;continue}h({type:"slash",value:D,output:F});continue}if(D==="."){if(K.braces>0&&T.type==="dot"){if(T.value===".")T.output=V;let P=y[y.length-1];T.type="dots",T.output+=D,T.value+=D,P.dots=!0;continue}if(K.braces+K.parens===0&&T.type!=="bos"&&T.type!=="slash"){h({type:"text",value:D,output:V});continue}h({type:"dot",value:D,output:V});continue}if(D==="?"){if(!(T&&T.value==="(")&&$.noextglob!==!0&&u()==="("&&u(2)!=="?"){Z_("qmark",D);continue}if(T&&T.type==="paren"){let x=u(),c=D;if(x==="<"&&!X1.supportsLookbehinds())throw Error("Node.js v10 or higher is required for regex lookbehinds");if(T.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(H1()))c=`\\${D}`;h({type:"text",value:D,output:c});continue}if($.dot!==!0&&(T.type==="slash"||T.type==="bos")){h({type:"qmark",value:D,output:C});continue}h({type:"qmark",value:D,output:A});continue}if(D==="!"){if($.noextglob!==!0&&u()==="("){if(u(2)!=="?"||!/[!=<:]/.test(u(3))){Z_("negate",D);continue}}if($.nonegate!==!0&&K.index===0){FZ();continue}}if(D==="+"){if($.noextglob!==!0&&u()==="("&&u(2)!=="?"){Z_("plus",D);continue}if(T&&T.value==="("||$.regex===!1){h({type:"plus",value:D,output:B});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||K.parens>0){h({type:"plus",value:D});continue}h({type:"plus",value:B});continue}if(D==="@"){if($.noextglob!==!0&&u()==="("&&u(2)!=="?"){h({type:"at",extglob:!0,value:D,output:""});continue}h({type:"text",value:D});continue}if(D!=="*"){if(D==="$"||D==="^")D=`\\${D}`;let P=ez.exec(H1());if(P)D+=P[0],K.index+=P[0].length;h({type:"text",value:D});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=D,T.output=m,K.backtrack=!0,K.globstar=!0,$1(D);continue}let f=H1();if($.noextglob!==!0&&/^\([^?]/.test(f)){Z_("star",D);continue}if(T.type==="star"){if($.noglobstar===!0){$1(D);continue}let P=T.prev,x=P.prev,c=P.type==="slash"||P.type==="bos",t=x&&(x.type==="star"||x.type==="globstar");if($.bash===!0&&(!c||f[0]&&f[0]!=="/")){h({type:"star",value:D,output:""});continue}let n=K.braces>0&&(P.type==="comma"||P.type==="brace"),Rq=j.length&&(P.type==="pipe"||P.type==="paren");if(!c&&P.type!=="paren"&&!n&&!Rq){h({type:"star",value:D,output:""});continue}while(f.slice(0,3)==="/**"){let X_=_[K.index+4];if(X_&&X_!=="/")break;f=f.slice(3),$1("/**",3)}if(P.type==="bos"&&o()){T.type="globstar",T.value+=D,T.output=E($),K.output=T.output,K.globstar=!0,$1(D);continue}if(P.type==="slash"&&P.prev.type!=="bos"&&!t&&o()){K.output=K.output.slice(0,-(P.output+T.output).length),P.output=`(?:${P.output}`,T.type="globstar",T.output=E($)+($.strictSlashes?")":"|$)"),T.value+=D,K.globstar=!0,K.output+=P.output+T.output,$1(D);continue}if(P.type==="slash"&&P.prev.type!=="bos"&&f[0]==="/"){let X_=f[1]!==void 0?"|$":"";K.output=K.output.slice(0,-(P.output+T.output).length),P.output=`(?:${P.output}`,T.type="globstar",T.output=`${E($)}${F}|${F}${X_})`,T.value+=D,K.output+=P.output+T.output,K.globstar=!0,$1(D+M1()),h({type:"slash",value:"/",output:""});continue}if(P.type==="bos"&&f[0]==="/"){T.type="globstar",T.value+=D,T.output=`(?:^|${F}|${E($)}${F})`,K.output=T.output,K.globstar=!0,$1(D+M1()),h({type:"slash",value:"/",output:""});continue}K.output=K.output.slice(0,-T.output.length),T.type="globstar",T.output=E($),T.value+=D,K.output+=T.output,K.globstar=!0,$1(D);continue}let d={type:"star",value:D,output:m};if($.bash===!0){if(d.output=".*?",T.type==="bos"||T.type==="slash")d.output=I+d.output;h(d);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&$.regex===!0){d.output=D,h(d);continue}if(K.index===K.start||T.type==="slash"||T.type==="dot"){if(T.type==="dot")K.output+=S,T.output+=S;else if($.dot===!0)K.output+=O,T.output+=O;else K.output+=I,T.output+=I;if(u()!=="*")K.output+=L,T.output+=L}h(d)}while(K.brackets>0){if($.strictBrackets===!0)throw SyntaxError(q0("closing","]"));K.output=X1.escapeLast(K.output,"["),k1("brackets")}while(K.parens>0){if($.strictBrackets===!0)throw SyntaxError(q0("closing",")"));K.output=X1.escapeLast(K.output,"("),k1("parens")}while(K.braces>0){if($.strictBrackets===!0)throw SyntaxError(q0("closing","}"));K.output=X1.escapeLast(K.output,"{"),k1("braces")}if($.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket"))h({type:"maybe_slash",value:"",output:`${F}?`});if(K.backtrack===!0){K.output="";for(let f of K.tokens)if(K.output+=f.output!=null?f.output:f.value,f.suffix)K.output+=f.suffix}return K};rq.fastpaths=(_,q)=>{let $={...q},Z=typeof $.maxLength==="number"?Math.min(G_,$.maxLength):G_,X=_.length;if(X>Z)throw SyntaxError(`Input length: ${X}, exceeds maximum allowed length: ${Z}`);_=O3[_]||_;let z=X1.isWindows(q),{DOT_LITERAL:U,SLASH_LITERAL:Q,ONE_CHAR:Y,DOTS_SLASH:J,NO_DOT:W,NO_DOTS:V,NO_DOTS_SLASH:B,STAR:F,START_ANCHOR:L}=V_.globChars(z),G=$.dot?V:W,H=$.dot?B:W,S=$.capture?"":"?:",O={negated:!1,prefix:""},A=$.bash===!0?".*?":F;if($.capture)A=`(${A})`;let C=(I)=>{if(I.noglobstar===!0)return A;return`(${S}(?:(?!${L}${I.dot?J:U}).)*?)`},N=(I)=>{switch(I){case"*":return`${G}${Y}${A}`;case".*":return`${U}${Y}${A}`;case"*.*":return`${G}${A}${U}${Y}${A}`;case"*/*":return`${G}${A}${Q}${Y}${H}${A}`;case"**":return G+C($);case"**/*":return`(?:${G}${C($)}${Q})?${H}${Y}${A}`;case"**/*.*":return`(?:${G}${C($)}${Q})?${H}${A}${U}${Y}${A}`;case"**/.*":return`(?:${G}${C($)}${Q})?${U}${Y}${A}`;default:{let b=/^(.*?)\.(\w+)$/.exec(I);if(!b)return;let m=N(b[1]);if(!m)return;return m+U+b[2]}}},R=X1.removePrefix(_,O),E=N(R);if(E&&$.strictSlashes!==!0)E+=`${Q}?`;return E};f3.exports=rq});var C3=M((_K,E3)=>{var $U=v("path"),ZU=A3(),sq=N3(),nq=S0(),XU=w0(),zU=(_)=>_&&typeof _==="object"&&!Array.isArray(_),r=(_,q,$=!1)=>{if(Array.isArray(_)){let W=_.map((B)=>r(B,q,$));return(B)=>{for(let F of W){let L=F(B);if(L)return L}return!1}}let Z=zU(_)&&_.tokens&&_.input;if(_===""||typeof _!=="string"&&!Z)throw TypeError("Expected pattern to be a non-empty string");let X=q||{},z=nq.isWindows(q),U=Z?r.compileRe(_,q):r.makeRe(_,q,!1,!0),Q=U.state;delete U.state;let Y=()=>!1;if(X.ignore){let W={...q,ignore:null,onMatch:null,onResult:null};Y=r(X.ignore,W,$)}let J=(W,V=!1)=>{let{isMatch:B,match:F,output:L}=r.test(W,U,q,{glob:_,posix:z}),G={glob:_,state:Q,regex:U,posix:z,input:W,output:L,match:F,isMatch:B};if(typeof X.onResult==="function")X.onResult(G);if(B===!1)return G.isMatch=!1,V?G:!1;if(Y(W)){if(typeof X.onIgnore==="function")X.onIgnore(G);return G.isMatch=!1,V?G:!1}if(typeof X.onMatch==="function")X.onMatch(G);return V?G:!0};if($)J.state=Q;return J};r.test=(_,q,$,{glob:Z,posix:X}={})=>{if(typeof _!=="string")throw TypeError("Expected input to be a string");if(_==="")return{isMatch:!1,output:""};let z=$||{},U=z.format||(X?nq.toPosixSlashes:null),Q=_===Z,Y=Q&&U?U(_):_;if(Q===!1)Y=U?U(_):_,Q=Y===Z;if(Q===!1||z.capture===!0)if(z.matchBase===!0||z.basename===!0)Q=r.matchBase(_,q,$,X);else Q=q.exec(Y);return{isMatch:Boolean(Q),match:Q,output:Y}};r.matchBase=(_,q,$,Z=nq.isWindows($))=>{return(q instanceof RegExp?q:r.makeRe(q,$)).test($U.basename(_))};r.isMatch=(_,q,$)=>r(q,$)(_);r.parse=(_,q)=>{if(Array.isArray(_))return _.map(($)=>r.parse($,q));return sq(_,{...q,fastpaths:!1})};r.scan=(_,q)=>ZU(_,q);r.compileRe=(_,q,$=!1,Z=!1)=>{if($===!0)return _.output;let X=q||{},z=X.contains?"":"^",U=X.contains?"":"$",Q=`${z}(?:${_.output})${U}`;if(_&&_.negated===!0)Q=`^(?!${Q}).*$`;let Y=r.toRegex(Q,q);if(Z===!0)Y.state=_;return Y};r.makeRe=(_,q={},$=!1,Z=!1)=>{if(!_||typeof _!=="string")throw TypeError("Expected a non-empty string");let X={negated:!1,fastpaths:!0};if(q.fastpaths!==!1&&(_[0]==="."||_[0]==="*"))X.output=sq.fastpaths(_,q);if(!X.output)X=sq(_,q);return r.compileRe(X,q,$,Z)};r.toRegex=(_,q)=>{try{let $=q||{};return new RegExp(_,$.flags||($.nocase?"i":""))}catch($){if(q&&q.debug===!0)throw $;return/$^/}};r.constants=XU;E3.exports=r});var g3=M((qK,v3)=>{var y3=v("util"),x3=L3(),I1=C3(),aq=S0(),b3=(_)=>_===""||_==="./",h3=(_)=>{let q=_.indexOf("{");return q>-1&&_.indexOf("}",q)>-1},l=(_,q,$)=>{q=[].concat(q),_=[].concat(_);let Z=new Set,X=new Set,z=new Set,U=0,Q=(W)=>{if(z.add(W.output),$&&$.onResult)$.onResult(W)};for(let W=0;W<q.length;W++){let V=I1(String(q[W]),{...$,onResult:Q},!0),B=V.state.negated||V.state.negatedExtglob;if(B)U++;for(let F of _){let L=V(F,!0);if(!(B?!L.isMatch:L.isMatch))continue;if(B)Z.add(L.output);else Z.delete(L.output),X.add(L.output)}}let J=(U===q.length?[...z]:[...X]).filter((W)=>!Z.has(W));if($&&J.length===0){if($.failglob===!0)throw Error(`No matches found for "${q.join(", ")}"`);if($.nonull===!0||$.nullglob===!0)return $.unescape?q.map((W)=>W.replace(/\\/g,"")):q}return J};l.match=l;l.matcher=(_,q)=>I1(_,q);l.isMatch=(_,q,$)=>I1(q,$)(_);l.any=l.isMatch;l.not=(_,q,$={})=>{q=[].concat(q).map(String);let Z=new Set,X=[],U=new Set(l(_,q,{...$,onResult:(Q)=>{if($.onResult)$.onResult(Q);X.push(Q.output)}}));for(let Q of X)if(!U.has(Q))Z.add(Q);return[...Z]};l.contains=(_,q,$)=>{if(typeof _!=="string")throw TypeError(`Expected a string: "${y3.inspect(_)}"`);if(Array.isArray(q))return q.some((Z)=>l.contains(_,Z,$));if(typeof q==="string"){if(b3(_)||b3(q))return!1;if(_.includes(q)||_.startsWith("./")&&_.slice(2).includes(q))return!0}return l.isMatch(_,q,{...$,contains:!0})};l.matchKeys=(_,q,$)=>{if(!aq.isObject(_))throw TypeError("Expected the first argument to be an object");let Z=l(Object.keys(_),q,$),X={};for(let z of Z)X[z]=_[z];return X};l.some=(_,q,$)=>{let Z=[].concat(_);for(let X of[].concat(q)){let z=I1(String(X),$);if(Z.some((U)=>z(U)))return!0}return!1};l.every=(_,q,$)=>{let Z=[].concat(_);for(let X of[].concat(q)){let z=I1(String(X),$);if(!Z.every((U)=>z(U)))return!1}return!0};l.all=(_,q,$)=>{if(typeof _!=="string")throw TypeError(`Expected a string: "${y3.inspect(_)}"`);return[].concat(q).every((Z)=>I1(Z,$)(_))};l.capture=(_,q,$)=>{let Z=aq.isWindows($),z=I1.makeRe(String(_),{...$,capture:!0}).exec(Z?aq.toPosixSlashes(q):q);if(z)return z.slice(1).map((U)=>U===void 0?"":U)};l.makeRe=(..._)=>I1.makeRe(..._);l.scan=(..._)=>I1.scan(..._);l.parse=(_,q)=>{let $=[];for(let Z of[].concat(_||[]))for(let X of x3(String(Z),q))$.push(I1.parse(X,q));return $};l.braces=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");if(q&&q.nobrace===!0||!h3(_))return[_];return x3(_,q)};l.braceExpand=(_,q)=>{if(typeof _!=="string")throw TypeError("Expected a string");return l.braces(_,{...q,expand:!0})};l.hasBraces=h3;v3.exports=l});var a3=M((s3)=>{Object.defineProperty(s3,"__esModule",{value:!0});s3.isAbsolute=s3.partitionAbsoluteAndRelative=s3.removeDuplicateSlashes=s3.matchAny=s3.convertPatternsToRe=s3.makeRe=s3.getPatternParts=s3.expandBraceExpansion=s3.expandPatternsWithBraceExpansion=s3.isAffectDepthOfReadingPattern=s3.endsWithSlashGlobStar=s3.hasGlobStar=s3.getBaseDirectory=s3.isPatternRelatedToParentDirectory=s3.getPatternsOutsideCurrentDirectory=s3.getPatternsInsideCurrentDirectory=s3.getPositivePatterns=s3.getNegativePatterns=s3.isPositivePattern=s3.isNegativePattern=s3.convertToNegativePattern=s3.convertToPositivePattern=s3.isDynamicPattern=s3.isStaticPattern=void 0;var k3=v("path"),UU=b4(),oq=g3(),u3="**",QU="\\",YU=/[*?]|^!/,JU=/\[[^[]*]/,BU=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,WU=/[!*+?@]\([^(]*\)/,VU=/,|\.\./,GU=/(?!^)\/{2,}/g;function m3(_,q={}){return!d3(_,q)}s3.isStaticPattern=m3;function d3(_,q={}){if(_==="")return!1;if(q.caseSensitiveMatch===!1||_.includes(QU))return!0;if(YU.test(_)||JU.test(_)||BU.test(_))return!0;if(q.extglob!==!1&&WU.test(_))return!0;if(q.braceExpansion!==!1&&FU(_))return!0;return!1}s3.isDynamicPattern=d3;function FU(_){let q=_.indexOf("{");if(q===-1)return!1;let $=_.indexOf("}",q+1);if($===-1)return!1;let Z=_.slice(q,$);return VU.test(Z)}function LU(_){return F_(_)?_.slice(1):_}s3.convertToPositivePattern=LU;function MU(_){return"!"+_}s3.convertToNegativePattern=MU;function F_(_){return _.startsWith("!")&&_[1]!=="("}s3.isNegativePattern=F_;function l3(_){return!F_(_)}s3.isPositivePattern=l3;function HU(_){return _.filter(F_)}s3.getNegativePatterns=HU;function IU(_){return _.filter(l3)}s3.getPositivePatterns=IU;function TU(_){return _.filter((q)=>!tq(q))}s3.getPatternsInsideCurrentDirectory=TU;function KU(_){return _.filter(tq)}s3.getPatternsOutsideCurrentDirectory=KU;function tq(_){return _.startsWith("..")||_.startsWith("./..")}s3.isPatternRelatedToParentDirectory=tq;function DU(_){return UU(_,{flipBackslashes:!1})}s3.getBaseDirectory=DU;function wU(_){return _.includes(u3)}s3.hasGlobStar=wU;function i3(_){return _.endsWith("/"+u3)}s3.endsWithSlashGlobStar=i3;function SU(_){let q=k3.basename(_);return i3(_)||m3(q)}s3.isAffectDepthOfReadingPattern=SU;function RU(_){return _.reduce((q,$)=>{return q.concat(c3($))},[])}s3.expandPatternsWithBraceExpansion=RU;function c3(_){let q=oq.braces(_,{expand:!0,nodupes:!0,keepEscaping:!0});return q.sort(($,Z)=>$.length-Z.length),q.filter(($)=>$!=="")}s3.expandBraceExpansion=c3;function jU(_,q){let{parts:$}=oq.scan(_,Object.assign(Object.assign({},q),{parts:!0}));if($.length===0)$=[_];if($[0].startsWith("/"))$[0]=$[0].slice(1),$.unshift("");return $}s3.getPatternParts=jU;function p3(_,q){return oq.makeRe(_,q)}s3.makeRe=p3;function PU(_,q){return _.map(($)=>p3($,q))}s3.convertPatternsToRe=PU;function AU(_,q){return q.some(($)=>$.test(_))}s3.matchAny=AU;function OU(_){return _.replace(GU,"/")}s3.removeDuplicateSlashes=OU;function fU(_){let q=[],$=[];for(let Z of _)if(r3(Z))q.push(Z);else $.push(Z);return[q,$]}s3.partitionAbsoluteAndRelative=fU;function r3(_){return k3.isAbsolute(_)}s3.isAbsolute=r3});var _6=M((ZK,e3)=>{var eU=v("stream"),o3=eU.PassThrough,_Q=Array.prototype.slice;e3.exports=qQ;function qQ(){let _=[],q=_Q.call(arguments),$=!1,Z=q[q.length-1];if(Z&&!Array.isArray(Z)&&Z.pipe==null)q.pop();else Z={};let X=Z.end!==!1,z=Z.pipeError===!0;if(Z.objectMode==null)Z.objectMode=!0;if(Z.highWaterMark==null)Z.highWaterMark=65536;let U=o3(Z);function Q(){for(let W=0,V=arguments.length;W<V;W++)_.push(t3(arguments[W],Z));return Y(),this}function Y(){if($)return;$=!0;let W=_.shift();if(!W){process.nextTick(J);return}if(!Array.isArray(W))W=[W];let V=W.length+1;function B(){if(--V>0)return;$=!1,Y()}function F(L){function G(){if(L.removeListener("merge2UnpipeEnd",G),L.removeListener("end",G),z)L.removeListener("error",H);B()}function H(S){U.emit("error",S)}if(L._readableState.endEmitted)return B();if(L.on("merge2UnpipeEnd",G),L.on("end",G),z)L.on("error",H);L.pipe(U,{end:!1}),L.resume()}for(let L=0;L<W.length;L++)F(W[L]);B()}function J(){if($=!1,U.emit("queueDrain"),X)U.end()}if(U.setMaxListeners(0),U.add=Q,U.on("unpipe",function(W){W.emit("merge2UnpipeEnd")}),q.length)Q.apply(null,q);return U}function t3(_,q){if(!Array.isArray(_)){if(!_._readableState&&_.pipe)_=_.pipe(o3(q));if(!_._readableState||!_.pause||!_.pipe)throw Error("Only readable stream can be merged.");_.pause()}else for(let $=0,Z=_.length;$<Z;$++)_[$]=t3(_[$],q);return _}});var X6=M(($6)=>{Object.defineProperty($6,"__esModule",{value:!0});$6.merge=void 0;var $Q=_6();function ZQ(_){let q=$Q(_);return _.forEach(($)=>{$.once("error",(Z)=>q.emit("error",Z))}),q.once("close",()=>q6(_)),q.once("end",()=>q6(_)),q}$6.merge=ZQ;function q6(_){_.forEach((q)=>q.emit("close"))}});var Q6=M((z6)=>{Object.defineProperty(z6,"__esModule",{value:!0});z6.isEmpty=z6.isString=void 0;function XQ(_){return typeof _==="string"}z6.isString=XQ;function zQ(_){return _===""}z6.isEmpty=zQ});var R1=M((Y6)=>{Object.defineProperty(Y6,"__esModule",{value:!0});Y6.string=Y6.stream=Y6.pattern=Y6.path=Y6.fs=Y6.errno=Y6.array=void 0;var QQ=G4();Y6.array=QQ;var YQ=M4();Y6.errno=YQ;var JQ=K4();Y6.fs=JQ;var BQ=P4();Y6.path=BQ;var WQ=a3();Y6.pattern=WQ;var VQ=X6();Y6.stream=VQ;var GQ=Q6();Y6.string=GQ});var L6=M((G6)=>{Object.defineProperty(G6,"__esModule",{value:!0});G6.convertPatternGroupToTask=G6.convertPatternGroupsToTasks=G6.groupPatternsByBaseDirectory=G6.getNegativePatternsAsPositive=G6.getPositivePatterns=G6.convertPatternsToTasks=G6.generate=void 0;var W1=R1();function KQ(_,q){let $=B6(_,q),Z=B6(q.ignore,q),X=W6($),z=V6($,Z),U=X.filter((W)=>W1.pattern.isStaticPattern(W,q)),Q=X.filter((W)=>W1.pattern.isDynamicPattern(W,q)),Y=eq(U,z,!1),J=eq(Q,z,!0);return Y.concat(J)}G6.generate=KQ;function B6(_,q){let $=_;if(q.braceExpansion)$=W1.pattern.expandPatternsWithBraceExpansion($);if(q.baseNameMatch)$=$.map((Z)=>Z.includes("/")?Z:`**/${Z}`);return $.map((Z)=>W1.pattern.removeDuplicateSlashes(Z))}function eq(_,q,$){let Z=[],X=W1.pattern.getPatternsOutsideCurrentDirectory(_),z=W1.pattern.getPatternsInsideCurrentDirectory(_),U=_9(X),Q=_9(z);if(Z.push(...q9(U,q,$)),"."in Q)Z.push($9(".",z,q,$));else Z.push(...q9(Q,q,$));return Z}G6.convertPatternsToTasks=eq;function W6(_){return W1.pattern.getPositivePatterns(_)}G6.getPositivePatterns=W6;function V6(_,q){return W1.pattern.getNegativePatterns(_).concat(q).map(W1.pattern.convertToPositivePattern)}G6.getNegativePatternsAsPositive=V6;function _9(_){let q={};return _.reduce(($,Z)=>{let X=W1.pattern.getBaseDirectory(Z);if(X in $)$[X].push(Z);else $[X]=[Z];return $},q)}G6.groupPatternsByBaseDirectory=_9;function q9(_,q,$){return Object.keys(_).map((Z)=>{return $9(Z,_[Z],q,$)})}G6.convertPatternGroupsToTasks=q9;function $9(_,q,$,Z){return{dynamic:Z,positive:q,negative:$,base:_,patterns:[].concat(q,$.map(W1.pattern.convertToNegativePattern))}}G6.convertPatternGroupToTask=$9});var T6=M((H6)=>{Object.defineProperty(H6,"__esModule",{value:!0});H6.read=void 0;function AQ(_,q,$){q.fs.lstat(_,(Z,X)=>{if(Z!==null){M6($,Z);return}if(!X.isSymbolicLink()||!q.followSymbolicLink){Z9($,X);return}q.fs.stat(_,(z,U)=>{if(z!==null){if(q.throwErrorOnBrokenSymbolicLink){M6($,z);return}Z9($,X);return}if(q.markSymbolicLink)U.isSymbolicLink=()=>!0;Z9($,U)})})}H6.read=AQ;function M6(_,q){_(q)}function Z9(_,q){_(null,q)}});var w6=M((K6)=>{Object.defineProperty(K6,"__esModule",{value:!0});K6.read=void 0;function OQ(_,q){let $=q.fs.lstatSync(_);if(!$.isSymbolicLink()||!q.followSymbolicLink)return $;try{let Z=q.fs.statSync(_);if(q.markSymbolicLink)Z.isSymbolicLink=()=>!0;return Z}catch(Z){if(!q.throwErrorOnBrokenSymbolicLink)return $;throw Z}}K6.read=OQ});var j6=M((S6)=>{Object.defineProperty(S6,"__esModule",{value:!0});S6.createFileSystemAdapter=S6.FILE_SYSTEM_ADAPTER=void 0;var L_=v("fs");S6.FILE_SYSTEM_ADAPTER={lstat:L_.lstat,stat:L_.stat,lstatSync:L_.lstatSync,statSync:L_.statSync};function fQ(_){if(_===void 0)return S6.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},S6.FILE_SYSTEM_ADAPTER),_)}S6.createFileSystemAdapter=fQ});var O6=M((A6)=>{Object.defineProperty(A6,"__esModule",{value:!0});var NQ=j6();class P6{constructor(_={}){this._options=_,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=NQ.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(_,q){return _!==null&&_!==void 0?_:q}}A6.default=P6});var l1=M((N6)=>{Object.defineProperty(N6,"__esModule",{value:!0});N6.statSync=N6.stat=N6.Settings=void 0;var f6=T6(),CQ=w6(),z9=O6();N6.Settings=z9.default;function bQ(_,q,$){if(typeof q==="function"){f6.read(_,U9(),q);return}f6.read(_,U9(q),$)}N6.stat=bQ;function yQ(_,q){let $=U9(q);return CQ.read(_,$)}N6.statSync=yQ;function U9(_={}){if(_ instanceof z9.default)return _;return new z9.default(_)}});var y6=M((GK,b6)=>{/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var C6;b6.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window<"u"?window:global):(_)=>(C6||(C6=Promise.resolve())).then(_).catch((q)=>setTimeout(()=>{throw q},0))});var h6=M((FK,x6)=>{/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */x6.exports=gQ;var vQ=y6();function gQ(_,q){let $,Z,X,z=!0;if(Array.isArray(_))$=[],Z=_.length;else X=Object.keys(_),$={},Z=X.length;function U(Y){function J(){if(q)q(Y,$);q=null}if(z)vQ(J);else J()}function Q(Y,J,W){if($[Y]=W,--Z===0||J)U(J)}if(!Z)U(null);else if(X)X.forEach(function(Y){_[Y](function(J,W){Q(Y,J,W)})});else _.forEach(function(Y,J){Y(function(W,V){Q(J,W,V)})});z=!1}});var Q9=M((k6)=>{Object.defineProperty(k6,"__esModule",{value:!0});k6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var M_=process.versions.node.split(".");if(M_[0]===void 0||M_[1]===void 0)throw Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var v6=Number.parseInt(M_[0],10),kQ=Number.parseInt(M_[1],10),g6=10,uQ=10,mQ=v6>g6,dQ=v6===g6&&kQ>=uQ;k6.IS_SUPPORT_READDIR_WITH_FILE_TYPES=mQ||dQ});var i6=M((d6)=>{Object.defineProperty(d6,"__esModule",{value:!0});d6.createDirentFromStats=void 0;class m6{constructor(_,q){this.name=_,this.isBlockDevice=q.isBlockDevice.bind(q),this.isCharacterDevice=q.isCharacterDevice.bind(q),this.isDirectory=q.isDirectory.bind(q),this.isFIFO=q.isFIFO.bind(q),this.isFile=q.isFile.bind(q),this.isSocket=q.isSocket.bind(q),this.isSymbolicLink=q.isSymbolicLink.bind(q)}}function lQ(_,q){return new m6(_,q)}d6.createDirentFromStats=lQ});var Y9=M((c6)=>{Object.defineProperty(c6,"__esModule",{value:!0});c6.fs=void 0;var iQ=i6();c6.fs=iQ});var J9=M((r6)=>{Object.defineProperty(r6,"__esModule",{value:!0});r6.joinPathSegments=void 0;function cQ(_,q,$){if(_.endsWith($))return _+q;return _+$+q}r6.joinPathSegments=cQ});var $2=M((_2)=>{Object.defineProperty(_2,"__esModule",{value:!0});_2.readdir=_2.readdirWithFileTypes=_2.read=void 0;var pQ=l1(),n6=h6(),rQ=Q9(),a6=Y9(),o6=J9();function sQ(_,q,$){if(!q.stats&&rQ.IS_SUPPORT_READDIR_WITH_FILE_TYPES){t6(_,q,$);return}e6(_,q,$)}_2.read=sQ;function t6(_,q,$){q.fs.readdir(_,{withFileTypes:!0},(Z,X)=>{if(Z!==null){H_($,Z);return}let z=X.map((Q)=>({dirent:Q,name:Q.name,path:o6.joinPathSegments(_,Q.name,q.pathSegmentSeparator)}));if(!q.followSymbolicLinks){B9($,z);return}let U=z.map((Q)=>nQ(Q,q));n6(U,(Q,Y)=>{if(Q!==null){H_($,Q);return}B9($,Y)})})}_2.readdirWithFileTypes=t6;function nQ(_,q){return($)=>{if(!_.dirent.isSymbolicLink()){$(null,_);return}q.fs.stat(_.path,(Z,X)=>{if(Z!==null){if(q.throwErrorOnBrokenSymbolicLink){$(Z);return}$(null,_);return}_.dirent=a6.fs.createDirentFromStats(_.name,X),$(null,_)})}}function e6(_,q,$){q.fs.readdir(_,(Z,X)=>{if(Z!==null){H_($,Z);return}let z=X.map((U)=>{let Q=o6.joinPathSegments(_,U,q.pathSegmentSeparator);return(Y)=>{pQ.stat(Q,q.fsStatSettings,(J,W)=>{if(J!==null){Y(J);return}let V={name:U,path:Q,dirent:a6.fs.createDirentFromStats(U,W)};if(q.stats)V.stats=W;Y(null,V)})}});n6(z,(U,Q)=>{if(U!==null){H_($,U);return}B9($,Q)})})}_2.readdir=e6;function H_(_,q){_(q)}function B9(_,q){_(null,q)}});var J2=M((Q2)=>{Object.defineProperty(Q2,"__esModule",{value:!0});Q2.readdir=Q2.readdirWithFileTypes=Q2.read=void 0;var tQ=l1(),eQ=Q9(),Z2=Y9(),X2=J9();function _Y(_,q){if(!q.stats&&eQ.IS_SUPPORT_READDIR_WITH_FILE_TYPES)return z2(_,q);return U2(_,q)}Q2.read=_Y;function z2(_,q){return q.fs.readdirSync(_,{withFileTypes:!0}).map((Z)=>{let X={dirent:Z,name:Z.name,path:X2.joinPathSegments(_,Z.name,q.pathSegmentSeparator)};if(X.dirent.isSymbolicLink()&&q.followSymbolicLinks)try{let z=q.fs.statSync(X.path);X.dirent=Z2.fs.createDirentFromStats(X.name,z)}catch(z){if(q.throwErrorOnBrokenSymbolicLink)throw z}return X})}Q2.readdirWithFileTypes=z2;function U2(_,q){return q.fs.readdirSync(_).map((Z)=>{let X=X2.joinPathSegments(_,Z,q.pathSegmentSeparator),z=tQ.statSync(X,q.fsStatSettings),U={name:Z,path:X,dirent:Z2.fs.createDirentFromStats(Z,z)};if(q.stats)U.stats=z;return U})}Q2.readdir=U2});var V2=M((B2)=>{Object.defineProperty(B2,"__esModule",{value:!0});B2.createFileSystemAdapter=B2.FILE_SYSTEM_ADAPTER=void 0;var $0=v("fs");B2.FILE_SYSTEM_ADAPTER={lstat:$0.lstat,stat:$0.stat,lstatSync:$0.lstatSync,statSync:$0.statSync,readdir:$0.readdir,readdirSync:$0.readdirSync};function ZY(_){if(_===void 0)return B2.FILE_SYSTEM_ADAPTER;return Object.assign(Object.assign({},B2.FILE_SYSTEM_ADAPTER),_)}B2.createFileSystemAdapter=ZY});var L2=M((F2)=>{Object.defineProperty(F2,"__esModule",{value:!0});var XY=v("path"),zY=l1(),UY=V2();class G2{constructor(_={}){this._options=_,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=UY.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,XY.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new zY.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(_,q){return _!==null&&_!==void 0?_:q}}F2.default=G2});var I_=M((H2)=>{Object.defineProperty(H2,"__esModule",{value:!0});H2.Settings=H2.scandirSync=H2.scandir=void 0;var M2=$2(),YY=J2(),V9=L2();H2.Settings=V9.default;function JY(_,q,$){if(typeof q==="function"){M2.read(_,G9(),q);return}M2.read(_,G9(q),$)}H2.scandir=JY;function BY(_,q){let $=G9(q);return YY.read(_,$)}H2.scandirSync=BY;function G9(_={}){if(_ instanceof V9.default)return _;return new V9.default(_)}});var K2=M((RK,T2)=>{function GY(_){var q=new _,$=q;function Z(){var z=q;if(z.next)q=z.next;else q=new _,$=q;return z.next=null,z}function X(z){$.next=z,$=z}return{get:Z,release:X}}T2.exports=GY});var w2=M((jK,F9)=>{var FY=K2();function D2(_,q,$){if(typeof _==="function")$=q,q=_,_=null;if(!($>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");var Z=FY(LY),X=null,z=null,U=0,Q=null,Y={push:G,drain:_1,saturated:_1,pause:W,paused:!1,get concurrency(){return $},set concurrency(R){if(!(R>=1))throw Error("fastqueue concurrency must be equal to or greater than 1");if($=R,Y.paused)return;for(;X&&U<$;)U++,S()},running:J,resume:F,idle:L,length:V,getQueue:B,unshift:H,empty:_1,kill:O,killAndDrain:A,error:N,abort:C};return Y;function J(){return U}function W(){Y.paused=!0}function V(){var R=X,E=0;while(R)R=R.next,E++;return E}function B(){var R=X,E=[];while(R)E.push(R.value),R=R.next;return E}function F(){if(!Y.paused)return;if(Y.paused=!1,X===null){U++,S();return}for(;X&&U<$;)U++,S()}function L(){return U===0&&Y.length()===0}function G(R,E){var I=Z.get();if(I.context=_,I.release=S,I.value=R,I.callback=E||_1,I.errorHandler=Q,U>=$||Y.paused)if(z)z.next=I,z=I;else X=I,z=I,Y.saturated();else U++,q.call(_,I.value,I.worked)}function H(R,E){var I=Z.get();if(I.context=_,I.release=S,I.value=R,I.callback=E||_1,I.errorHandler=Q,U>=$||Y.paused)if(X)I.next=X,X=I;else X=I,z=I,Y.saturated();else U++,q.call(_,I.value,I.worked)}function S(R){if(R)Z.release(R);var E=X;if(E&&U<=$)if(!Y.paused){if(z===X)z=null;if(X=E.next,E.next=null,q.call(_,E.value,E.worked),z===null)Y.empty()}else U--;else if(--U===0)Y.drain()}function O(){X=null,z=null,Y.drain=_1}function A(){X=null,z=null,Y.drain(),Y.drain=_1}function C(){var R=X;X=null,z=null;while(R){var{next:E,callback:I,errorHandler:b,value:m,context:K}=R;if(R.value=null,R.callback=_1,R.errorHandler=null,b)b(Error("abort"),m);I.call(K,Error("abort")),R.release(R),R=E}Y.drain=_1}function N(R){Q=R}}function _1(){}function LY(){this.value=null,this.callback=_1,this.next=null,this.release=_1,this.context=null,this.errorHandler=null;var _=this;this.worked=function($,Z){var{callback:X,errorHandler:z,value:U}=_;if(_.value=null,_.callback=_1,_.errorHandler)z($,U);X.call(_.context,$,Z),_.release(_)}}function MY(_,q,$){if(typeof _==="function")$=q,q=_,_=null;function Z(W,V){q.call(this,W).then(function(B){V(null,B)},V)}var X=D2(_,Z,$),z=X.push,U=X.unshift;return X.push=Q,X.unshift=Y,X.drained=J,X;function Q(W){var V=new Promise(function(B,F){z(W,function(L,G){if(L){F(L);return}B(G)})});return V.catch(_1),V}function Y(W){var V=new Promise(function(B,F){U(W,function(L,G){if(L){F(L);return}B(G)})});return V.catch(_1),V}function J(){var W=new Promise(function(V){process.nextTick(function(){if(X.idle())V();else{var B=X.drain;X.drain=function(){if(typeof B==="function")B();V(),X.drain=B}}})});return W}}F9.exports=D2;F9.exports.promise=MY});var T_=M((S2)=>{Object.defineProperty(S2,"__esModule",{value:!0});S2.joinPathSegments=S2.replacePathSegmentSeparator=S2.isAppliedFilter=S2.isFatalError=void 0;function HY(_,q){if(_.errorFilter===null)return!0;return!_.errorFilter(q)}S2.isFatalError=HY;function IY(_,q){return _===null||_(q)}S2.isAppliedFilter=IY;function TY(_,q){return _.split(/[/\\]/).join(q)}S2.replacePathSegmentSeparator=TY;function KY(_,q,$){if(_==="")return q;if(_.endsWith($))return _+q;return _+$+q}S2.joinPathSegments=KY});var L9=M((P2)=>{Object.defineProperty(P2,"__esModule",{value:!0});var RY=T_();class j2{constructor(_,q){this._root=_,this._settings=q,this._root=RY.replacePathSegmentSeparator(_,q.pathSegmentSeparator)}}P2.default=j2});var M9=M((O2)=>{Object.defineProperty(O2,"__esModule",{value:!0});var PY=v("events"),AY=I_(),OY=w2(),K_=T_(),fY=L9();class A2 extends fY.default{constructor(_,q){super(_,q);this._settings=q,this._scandir=AY.scandir,this._emitter=new PY.EventEmitter,this._queue=OY(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{if(!this._isFatalError)this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(_){this._emitter.on("entry",_)}onError(_){this._emitter.once("error",_)}onEnd(_){this._emitter.once("end",_)}_pushToQueue(_,q){let $={directory:_,base:q};this._queue.push($,(Z)=>{if(Z!==null)this._handleError(Z)})}_worker(_,q){this._scandir(_.directory,this._settings.fsScandirSettings,($,Z)=>{if($!==null){q($,void 0);return}for(let X of Z)this._handleEntry(X,_.base);q(null,void 0)})}_handleError(_){if(this._isDestroyed||!K_.isFatalError(this._settings,_))return;this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",_)}_handleEntry(_,q){if(this._isDestroyed||this._isFatalError)return;let $=_.path;if(q!==void 0)_.path=K_.joinPathSegments(q,_.name,this._settings.pathSegmentSeparator);if(K_.isAppliedFilter(this._settings.entryFilter,_))this._emitEntry(_);if(_.dirent.isDirectory()&&K_.isAppliedFilter(this._settings.deepFilter,_))this._pushToQueue($,q===void 0?void 0:_.path)}_emitEntry(_){this._emitter.emit("entry",_)}}O2.default=A2});var E2=M((N2)=>{Object.defineProperty(N2,"__esModule",{value:!0});var EY=M9();class f2{constructor(_,q){this._root=_,this._settings=q,this._reader=new EY.default(this._root,this._settings),this._storage=[]}read(_){this._reader.onError((q)=>{CY(_,q)}),this._reader.onEntry((q)=>{this._storage.push(q)}),this._reader.onEnd(()=>{bY(_,this._storage)}),this._reader.read()}}N2.default=f2;function CY(_,q){_(q)}function bY(_,q){_(null,q)}});var y2=M((b2)=>{Object.defineProperty(b2,"__esModule",{value:!0});var xY=v("stream"),hY=M9();class C2{constructor(_,q){this._root=_,this._settings=q,this._reader=new hY.default(this._root,this._settings),this._stream=new xY.Readable({objectMode:!0,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed)this._reader.destroy()}})}read(){return this._reader.onError((_)=>{this._stream.emit("error",_)}),this._reader.onEntry((_)=>{this._stream.push(_)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}}b2.default=C2});var v2=M((h2)=>{Object.defineProperty(h2,"__esModule",{value:!0});var gY=I_(),D_=T_(),kY=L9();class x2 extends kY.default{constructor(){super(...arguments);this._scandir=gY.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(_,q){this._queue.add({directory:_,base:q})}_handleQueue(){for(let _ of this._queue.values())this._handleDirectory(_.directory,_.base)}_handleDirectory(_,q){try{let $=this._scandir(_,this._settings.fsScandirSettings);for(let Z of $)this._handleEntry(Z,q)}catch($){this._handleError($)}}_handleError(_){if(!D_.isFatalError(this._settings,_))return;throw _}_handleEntry(_,q){let $=_.path;if(q!==void 0)_.path=D_.joinPathSegments(q,_.name,this._settings.pathSegmentSeparator);if(D_.isAppliedFilter(this._settings.entryFilter,_))this._pushToStorage(_);if(_.dirent.isDirectory()&&D_.isAppliedFilter(this._settings.deepFilter,_))this._pushToQueue($,q===void 0?void 0:_.path)}_pushToStorage(_){this._storage.push(_)}}h2.default=x2});var u2=M((k2)=>{Object.defineProperty(k2,"__esModule",{value:!0});var mY=v2();class g2{constructor(_,q){this._root=_,this._settings=q,this._reader=new mY.default(this._root,this._settings)}read(){return this._reader.read()}}k2.default=g2});var l2=M((d2)=>{Object.defineProperty(d2,"__esModule",{value:!0});var lY=v("path"),iY=I_();class m2{constructor(_={}){this._options=_,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,lY.sep),this.fsScandirSettings=new iY.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(_,q){return _!==null&&_!==void 0?_:q}}d2.default=m2});var S_=M((c2)=>{Object.defineProperty(c2,"__esModule",{value:!0});c2.Settings=c2.walkStream=c2.walkSync=c2.walk=void 0;var i2=E2(),pY=y2(),rY=u2(),H9=l2();c2.Settings=H9.default;function sY(_,q,$){if(typeof q==="function"){new i2.default(_,w_()).read(q);return}new i2.default(_,w_(q)).read($)}c2.walk=sY;function nY(_,q){let $=w_(q);return new rY.default(_,$).read()}c2.walkSync=nY;function aY(_,q){let $=w_(q);return new pY.default(_,$).read()}c2.walkStream=aY;function w_(_={}){if(_ instanceof H9.default)return _;return new H9.default(_)}});var R_=M((n2)=>{Object.defineProperty(n2,"__esModule",{value:!0});var _J=v("path"),qJ=l1(),r2=R1();class s2{constructor(_){this._settings=_,this._fsStatSettings=new qJ.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(_){return _J.resolve(this._settings.cwd,_)}_makeEntry(_,q){let $={name:q,path:q,dirent:r2.fs.createDirentFromStats(q,_)};if(this._settings.stats)$.stats=_;return $}_isFatalError(_){return!r2.errno.isEnoentCodeError(_)&&!this._settings.suppressErrors}}n2.default=s2});var I9=M((o2)=>{Object.defineProperty(o2,"__esModule",{value:!0});var ZJ=v("stream"),XJ=l1(),zJ=S_(),UJ=R_();class a2 extends UJ.default{constructor(){super(...arguments);this._walkStream=zJ.walkStream,this._stat=XJ.stat}dynamic(_,q){return this._walkStream(_,q)}static(_,q){let $=_.map(this._getFullEntryPath,this),Z=new ZJ.PassThrough({objectMode:!0});Z._write=(X,z,U)=>{return this._getEntry($[X],_[X],q).then((Q)=>{if(Q!==null&&q.entryFilter(Q))Z.push(Q);if(X===$.length-1)Z.end();U()}).catch(U)};for(let X=0;X<$.length;X++)Z.write(X);return Z}_getEntry(_,q,$){return this._getStat(_).then((Z)=>this._makeEntry(Z,q)).catch((Z)=>{if($.errorFilter(Z))return null;throw Z})}_getStat(_){return new Promise((q,$)=>{this._stat(_,this._fsStatSettings,(Z,X)=>{return Z===null?q(X):$(Z)})})}}o2.default=a2});var _7=M((e2)=>{Object.defineProperty(e2,"__esModule",{value:!0});var YJ=S_(),JJ=R_(),BJ=I9();class t2 extends JJ.default{constructor(){super(...arguments);this._walkAsync=YJ.walk,this._readerStream=new BJ.default(this._settings)}dynamic(_,q){return new Promise(($,Z)=>{this._walkAsync(_,q,(X,z)=>{if(X===null)$(z);else Z(X)})})}async static(_,q){let $=[],Z=this._readerStream.static(_,q);return new Promise((X,z)=>{Z.once("error",z),Z.on("data",(U)=>$.push(U)),Z.once("end",()=>X($))})}}e2.default=t2});var Z7=M(($7)=>{Object.defineProperty($7,"__esModule",{value:!0});var j0=R1();class q7{constructor(_,q,$){this._patterns=_,this._settings=q,this._micromatchOptions=$,this._storage=[],this._fillStorage()}_fillStorage(){for(let _ of this._patterns){let q=this._getPatternSegments(_),$=this._splitSegmentsIntoSections(q);this._storage.push({complete:$.length<=1,pattern:_,segments:q,sections:$})}}_getPatternSegments(_){return j0.pattern.getPatternParts(_,this._micromatchOptions).map(($)=>{if(!j0.pattern.isDynamicPattern($,this._settings))return{dynamic:!1,pattern:$};return{dynamic:!0,pattern:$,patternRe:j0.pattern.makeRe($,this._micromatchOptions)}})}_splitSegmentsIntoSections(_){return j0.array.splitWhen(_,(q)=>q.dynamic&&j0.pattern.hasGlobStar(q.pattern))}}$7.default=q7});var U7=M((z7)=>{Object.defineProperty(z7,"__esModule",{value:!0});var GJ=Z7();class X7 extends GJ.default{match(_){let q=_.split("/"),$=q.length,Z=this._storage.filter((X)=>!X.complete||X.segments.length>$);for(let X of Z){let z=X.sections[0];if(!X.complete&&$>z.length)return!0;if(q.every((Q,Y)=>{let J=X.segments[Y];if(J.dynamic&&J.patternRe.test(Q))return!0;if(!J.dynamic&&J.pattern===Q)return!0;return!1}))return!0}return!1}}z7.default=X7});var J7=M((Y7)=>{Object.defineProperty(Y7,"__esModule",{value:!0});var j_=R1(),LJ=U7();class Q7{constructor(_,q){this._settings=_,this._micromatchOptions=q}getFilter(_,q,$){let Z=this._getMatcher(q),X=this._getNegativePatternsRe($);return(z)=>this._filter(_,z,Z,X)}_getMatcher(_){return new LJ.default(_,this._settings,this._micromatchOptions)}_getNegativePatternsRe(_){let q=_.filter(j_.pattern.isAffectDepthOfReadingPattern);return j_.pattern.convertPatternsToRe(q,this._micromatchOptions)}_filter(_,q,$,Z){if(this._isSkippedByDeep(_,q.path))return!1;if(this._isSkippedSymbolicLink(q))return!1;let X=j_.path.removeLeadingDotSegment(q.path);if(this._isSkippedByPositivePatterns(X,$))return!1;return this._isSkippedByNegativePatterns(X,Z)}_isSkippedByDeep(_,q){if(this._settings.deep===1/0)return!1;return this._getEntryLevel(_,q)>=this._settings.deep}_getEntryLevel(_,q){let $=q.split("/").length;if(_==="")return $;let Z=_.split("/").length;return $-Z}_isSkippedSymbolicLink(_){return!this._settings.followSymbolicLinks&&_.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(_,q){return!this._settings.baseNameMatch&&!q.match(_)}_isSkippedByNegativePatterns(_,q){return!j_.pattern.matchAny(_,q)}}Y7.default=Q7});var V7=M((W7)=>{Object.defineProperty(W7,"__esModule",{value:!0});var O1=R1();class B7{constructor(_,q){this._settings=_,this._micromatchOptions=q,this.index=new Map}getFilter(_,q){let[$,Z]=O1.pattern.partitionAbsoluteAndRelative(q),X={positive:{all:O1.pattern.convertPatternsToRe(_,this._micromatchOptions)},negative:{absolute:O1.pattern.convertPatternsToRe($,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:O1.pattern.convertPatternsToRe(Z,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return(z)=>this._filter(z,X)}_filter(_,q){let $=O1.path.removeLeadingDotSegment(_.path);if(this._settings.unique&&this._isDuplicateEntry($))return!1;if(this._onlyFileFilter(_)||this._onlyDirectoryFilter(_))return!1;let Z=this._isMatchToPatternsSet($,q,_.dirent.isDirectory());if(this._settings.unique&&Z)this._createIndexRecord($);return Z}_isDuplicateEntry(_){return this.index.has(_)}_createIndexRecord(_){this.index.set(_,void 0)}_onlyFileFilter(_){return this._settings.onlyFiles&&!_.dirent.isFile()}_onlyDirectoryFilter(_){return this._settings.onlyDirectories&&!_.dirent.isDirectory()}_isMatchToPatternsSet(_,q,$){if(!this._isMatchToPatterns(_,q.positive.all,$))return!1;if(this._isMatchToPatterns(_,q.negative.relative,$))return!1;if(this._isMatchToAbsoluteNegative(_,q.negative.absolute,$))return!1;return!0}_isMatchToAbsoluteNegative(_,q,$){if(q.length===0)return!1;let Z=O1.path.makeAbsolute(this._settings.cwd,_);return this._isMatchToPatterns(Z,q,$)}_isMatchToPatterns(_,q,$){if(q.length===0)return!1;let Z=O1.pattern.matchAny(_,q);if(!Z&&$)return O1.pattern.matchAny(_+"/",q);return Z}}W7.default=B7});var L7=M((F7)=>{Object.defineProperty(F7,"__esModule",{value:!0});var IJ=R1();class G7{constructor(_){this._settings=_}getFilter(){return(_)=>this._isNonFatalError(_)}_isNonFatalError(_){return IJ.errno.isEnoentCodeError(_)||this._settings.suppressErrors}}F7.default=G7});var T7=M((I7)=>{Object.defineProperty(I7,"__esModule",{value:!0});var M7=R1();class H7{constructor(_){this._settings=_}getTransformer(){return(_)=>this._transform(_)}_transform(_){let q=_.path;if(this._settings.absolute)q=M7.path.makeAbsolute(this._settings.cwd,q),q=M7.path.unixify(q);if(this._settings.markDirectories&&_.dirent.isDirectory())q+="/";if(!this._settings.objectMode)return q;return Object.assign(Object.assign({},_),{path:q})}}I7.default=H7});var P_=M((D7)=>{Object.defineProperty(D7,"__esModule",{value:!0});var DJ=v("path"),wJ=J7(),SJ=V7(),RJ=L7(),jJ=T7();class K7{constructor(_){this._settings=_,this.errorFilter=new RJ.default(this._settings),this.entryFilter=new SJ.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new wJ.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new jJ.default(this._settings)}_getRootDirectory(_){return DJ.resolve(this._settings.cwd,_.base)}_getReaderOptions(_){let q=_.base==="."?"":_.base;return{basePath:q,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(q,_.positive,_.negative),entryFilter:this.entryFilter.getFilter(_.positive,_.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}}D7.default=K7});var R7=M((S7)=>{Object.defineProperty(S7,"__esModule",{value:!0});var AJ=_7(),OJ=P_();class w7 extends OJ.default{constructor(){super(...arguments);this._reader=new AJ.default(this._settings)}async read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_);return(await this.api(q,_,$)).map((X)=>$.transform(X))}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}S7.default=w7});var A7=M((P7)=>{Object.defineProperty(P7,"__esModule",{value:!0});var NJ=v("stream"),EJ=I9(),CJ=P_();class j7 extends CJ.default{constructor(){super(...arguments);this._reader=new EJ.default(this._settings)}read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_),Z=this.api(q,_,$),X=new NJ.Readable({objectMode:!0,read:()=>{}});return Z.once("error",(z)=>X.emit("error",z)).on("data",(z)=>X.emit("data",$.transform(z))).once("end",()=>X.emit("end")),X.once("close",()=>Z.destroy()),X}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}P7.default=j7});var N7=M((f7)=>{Object.defineProperty(f7,"__esModule",{value:!0});var yJ=l1(),xJ=S_(),hJ=R_();class O7 extends hJ.default{constructor(){super(...arguments);this._walkSync=xJ.walkSync,this._statSync=yJ.statSync}dynamic(_,q){return this._walkSync(_,q)}static(_,q){let $=[];for(let Z of _){let X=this._getFullEntryPath(Z),z=this._getEntry(X,Z,q);if(z===null||!q.entryFilter(z))continue;$.push(z)}return $}_getEntry(_,q,$){try{let Z=this._getStat(_);return this._makeEntry(Z,q)}catch(Z){if($.errorFilter(Z))return null;throw Z}}_getStat(_){return this._statSync(_,this._fsStatSettings)}}f7.default=O7});var b7=M((C7)=>{Object.defineProperty(C7,"__esModule",{value:!0});var gJ=N7(),kJ=P_();class E7 extends kJ.default{constructor(){super(...arguments);this._reader=new gJ.default(this._settings)}read(_){let q=this._getRootDirectory(_),$=this._getReaderOptions(_);return this.api(q,_,$).map($.transform)}api(_,q,$){if(q.dynamic)return this._reader.dynamic(_,$);return this._reader.static(q.patterns,$)}}C7.default=E7});var h7=M((x7)=>{Object.defineProperty(x7,"__esModule",{value:!0});x7.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Z0=v("fs"),mJ=v("os"),dJ=Math.max(mJ.cpus().length,1);x7.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Z0.lstat,lstatSync:Z0.lstatSync,stat:Z0.stat,statSync:Z0.statSync,readdir:Z0.readdir,readdirSync:Z0.readdirSync};class y7{constructor(_={}){if(this._options=_,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,dJ),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories)this.onlyFiles=!1;if(this.stats)this.objectMode=!0;this.ignore=[].concat(this.ignore)}_getValue(_,q){return _===void 0?q:_}_getFileSystemMethods(_={}){return Object.assign(Object.assign({},x7.DEFAULT_FILE_SYSTEM_ADAPTER),_)}}x7.default=y7});var S9=M((aK,g7)=>{var v7=L6(),iJ=R7(),cJ=A7(),pJ=b7(),K9=h7(),Q1=R1();async function D9(_,q){V1(_);let $=w9(_,iJ.default,q),Z=await Promise.all($);return Q1.array.flatten(Z)}(function(_){_.glob=_,_.globSync=q,_.globStream=$,_.async=_;function q(J,W){V1(J);let V=w9(J,pJ.default,W);return Q1.array.flatten(V)}_.sync=q;function $(J,W){V1(J);let V=w9(J,cJ.default,W);return Q1.stream.merge(V)}_.stream=$;function Z(J,W){V1(J);let V=[].concat(J),B=new K9.default(W);return v7.generate(V,B)}_.generateTasks=Z;function X(J,W){V1(J);let V=new K9.default(W);return Q1.pattern.isDynamicPattern(J,V)}_.isDynamicPattern=X;function z(J){return V1(J),Q1.path.escape(J)}_.escapePath=z;function U(J){return V1(J),Q1.path.convertPathToPattern(J)}_.convertPathToPattern=U;let Q;(function(J){function W(B){return V1(B),Q1.path.escapePosixPath(B)}J.escapePath=W;function V(B){return V1(B),Q1.path.convertPosixPathToPattern(B)}J.convertPathToPattern=V})(Q=_.posix||(_.posix={}));let Y;(function(J){function W(B){return V1(B),Q1.path.escapeWindowsPath(B)}J.escapePath=W;function V(B){return V1(B),Q1.path.convertWindowsPathToPattern(B)}J.convertPathToPattern=V})(Y=_.win32||(_.win32={}))})(D9||(D9={}));function w9(_,q,$){let Z=[].concat(_),X=new K9.default($),z=v7.generate(Z,X),U=new q(X);return z.map(U.read,U)}function V1(_){if(![].concat(_).every((Z)=>Q1.string.isString(Z)&&!Q1.string.isEmpty(Z)))throw TypeError("Patterns must be a string (non empty) or an array of strings")}g7.exports=D9});var g=M((_B)=>{var R9=Symbol.for("yaml.alias"),u7=Symbol.for("yaml.document"),O_=Symbol.for("yaml.map"),m7=Symbol.for("yaml.pair"),j9=Symbol.for("yaml.scalar"),f_=Symbol.for("yaml.seq"),j1=Symbol.for("yaml.node.type"),rJ=(_)=>!!_&&typeof _==="object"&&_[j1]===R9,sJ=(_)=>!!_&&typeof _==="object"&&_[j1]===u7,nJ=(_)=>!!_&&typeof _==="object"&&_[j1]===O_,aJ=(_)=>!!_&&typeof _==="object"&&_[j1]===m7,d7=(_)=>!!_&&typeof _==="object"&&_[j1]===j9,oJ=(_)=>!!_&&typeof _==="object"&&_[j1]===f_;function l7(_){if(_&&typeof _==="object")switch(_[j1]){case O_:case f_:return!0}return!1}function tJ(_){if(_&&typeof _==="object")switch(_[j1]){case R9:case O_:case j9:case f_:return!0}return!1}var eJ=(_)=>(d7(_)||l7(_))&&!!_.anchor;_B.ALIAS=R9;_B.DOC=u7;_B.MAP=O_;_B.NODE_TYPE=j1;_B.PAIR=m7;_B.SCALAR=j9;_B.SEQ=f_;_B.hasAnchor=eJ;_B.isAlias=rJ;_B.isCollection=l7;_B.isDocument=sJ;_B.isMap=nJ;_B.isNode=tJ;_B.isPair=aJ;_B.isScalar=d7;_B.isSeq=oJ});var O0=M((HB)=>{var a=g(),q1=Symbol("break visit"),i7=Symbol("skip children"),T1=Symbol("remove node");function N_(_,q){let $=c7(q);if(a.isDocument(_)){if(X0(null,_.contents,$,Object.freeze([_]))===T1)_.contents=null}else X0(null,_,$,Object.freeze([]))}N_.BREAK=q1;N_.SKIP=i7;N_.REMOVE=T1;function X0(_,q,$,Z){let X=p7(_,q,$,Z);if(a.isNode(X)||a.isPair(X))return r7(_,Z,X),X0(_,X,$,Z);if(typeof X!=="symbol"){if(a.isCollection(q)){Z=Object.freeze(Z.concat(q));for(let z=0;z<q.items.length;++z){let U=X0(z,q.items[z],$,Z);if(typeof U==="number")z=U-1;else if(U===q1)return q1;else if(U===T1)q.items.splice(z,1),z-=1}}else if(a.isPair(q)){Z=Object.freeze(Z.concat(q));let z=X0("key",q.key,$,Z);if(z===q1)return q1;else if(z===T1)q.key=null;let U=X0("value",q.value,$,Z);if(U===q1)return q1;else if(U===T1)q.value=null}}return X}async function E_(_,q){let $=c7(q);if(a.isDocument(_)){if(await z0(null,_.contents,$,Object.freeze([_]))===T1)_.contents=null}else await z0(null,_,$,Object.freeze([]))}E_.BREAK=q1;E_.SKIP=i7;E_.REMOVE=T1;async function z0(_,q,$,Z){let X=await p7(_,q,$,Z);if(a.isNode(X)||a.isPair(X))return r7(_,Z,X),z0(_,X,$,Z);if(typeof X!=="symbol"){if(a.isCollection(q)){Z=Object.freeze(Z.concat(q));for(let z=0;z<q.items.length;++z){let U=await z0(z,q.items[z],$,Z);if(typeof U==="number")z=U-1;else if(U===q1)return q1;else if(U===T1)q.items.splice(z,1),z-=1}}else if(a.isPair(q)){Z=Object.freeze(Z.concat(q));let z=await z0("key",q.key,$,Z);if(z===q1)return q1;else if(z===T1)q.key=null;let U=await z0("value",q.value,$,Z);if(U===q1)return q1;else if(U===T1)q.value=null}}return X}function c7(_){if(typeof _==="object"&&(_.Collection||_.Node||_.Value))return Object.assign({Alias:_.Node,Map:_.Node,Scalar:_.Node,Seq:_.Node},_.Value&&{Map:_.Value,Scalar:_.Value,Seq:_.Value},_.Collection&&{Map:_.Collection,Seq:_.Collection},_);return _}function p7(_,q,$,Z){if(typeof $==="function")return $(_,q,Z);if(a.isMap(q))return $.Map?.(_,q,Z);if(a.isSeq(q))return $.Seq?.(_,q,Z);if(a.isPair(q))return $.Pair?.(_,q,Z);if(a.isScalar(q))return $.Scalar?.(_,q,Z);if(a.isAlias(q))return $.Alias?.(_,q,Z);return}function r7(_,q,$){let Z=q[q.length-1];if(a.isCollection(Z))Z.items[_]=$;else if(a.isPair(Z))if(_==="key")Z.key=$;else Z.value=$;else if(a.isDocument(Z))Z.contents=$;else{let X=a.isAlias(Z)?"alias":"scalar";throw Error(`Cannot replace node with ${X} parent`)}}HB.visit=N_;HB.visitAsync=E_});var P9=M((SB)=>{var s7=g(),KB=O0(),DB={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},wB=(_)=>_.replace(/[!,[\]{}]/g,(q)=>DB[q]);class Y1{constructor(_,q){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Y1.defaultYaml,_),this.tags=Object.assign({},Y1.defaultTags,q)}clone(){let _=new Y1(this.yaml,this.tags);return _.docStart=this.docStart,_}atDocument(){let _=new Y1(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Y1.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Y1.defaultTags);break}return _}add(_,q){if(this.atNextDocument)this.yaml={explicit:Y1.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Y1.defaultTags),this.atNextDocument=!1;let $=_.trim().split(/[ \t]+/),Z=$.shift();switch(Z){case"%TAG":{if($.length!==2){if(q(0,"%TAG directive should contain exactly two parts"),$.length<2)return!1}let[X,z]=$;return this.tags[X]=z,!0}case"%YAML":{if(this.yaml.explicit=!0,$.length!==1)return q(0,"%YAML directive should contain exactly one part"),!1;let[X]=$;if(X==="1.1"||X==="1.2")return this.yaml.version=X,!0;else{let z=/^\d+\.\d+$/.test(X);return q(6,`Unsupported YAML version ${X}`,z),!1}}default:return q(0,`Unknown directive ${Z}`,!0),!1}}tagName(_,q){if(_==="!")return"!";if(_[0]!=="!")return q(`Not a valid tag: ${_}`),null;if(_[1]==="<"){let z=_.slice(2,-1);if(z==="!"||z==="!!")return q(`Verbatim tags aren't resolved, so ${_} is invalid.`),null;if(_[_.length-1]!==">")q("Verbatim tags must end with a >");return z}let[,$,Z]=_.match(/^(.*!)([^!]*)$/s);if(!Z)q(`The ${_} tag has no suffix`);let X=this.tags[$];if(X)try{return X+decodeURIComponent(Z)}catch(z){return q(String(z)),null}if($==="!")return _;return q(`Could not resolve tag: ${_}`),null}tagString(_){for(let[q,$]of Object.entries(this.tags))if(_.startsWith($))return q+wB(_.substring($.length));return _[0]==="!"?_:`!<${_}>`}toString(_){let q=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],$=Object.entries(this.tags),Z;if(_&&$.length>0&&s7.isNode(_.contents)){let X={};KB.visit(_.contents,(z,U)=>{if(s7.isNode(U)&&U.tag)X[U.tag]=!0}),Z=Object.keys(X)}else Z=[];for(let[X,z]of $){if(X==="!!"&&z==="tag:yaml.org,2002:")continue;if(!_||Z.some((U)=>U.startsWith(z)))q.push(`%TAG ${X} ${z}`)}return q.join(`
49
+ `)}}Y1.defaultYaml={explicit:!1,version:"1.2"};Y1.defaultTags={"!!":"tag:yaml.org,2002:"};SB.Directives=Y1});var C_=M((OB)=>{var n7=g(),jB=O0();function PB(_){if(/[\x00-\x19\s,[\]{}]/.test(_)){let $=`Anchor must not contain whitespace or control characters: ${JSON.stringify(_)}`;throw Error($)}return!0}function a7(_){let q=new Set;return jB.visit(_,{Value($,Z){if(Z.anchor)q.add(Z.anchor)}}),q}function o7(_,q){for(let $=1;;++$){let Z=`${_}${$}`;if(!q.has(Z))return Z}}function AB(_,q){let $=[],Z=new Map,X=null;return{onAnchor:(z)=>{$.push(z),X??(X=a7(_));let U=o7(q,X);return X.add(U),U},setAnchors:()=>{for(let z of $){let U=Z.get(z);if(typeof U==="object"&&U.anchor&&(n7.isScalar(U.node)||n7.isCollection(U.node)))U.node.anchor=U.anchor;else{let Q=Error("Failed to resolve repeated object (this should not happen)");throw Q.source=z,Q}}},sourceObjects:Z}}OB.anchorIsValid=PB;OB.anchorNames=a7;OB.createNodeAnchors=AB;OB.findNewAnchor=o7});var A9=M((bB)=>{function f0(_,q,$,Z){if(Z&&typeof Z==="object")if(Array.isArray(Z))for(let X=0,z=Z.length;X<z;++X){let U=Z[X],Q=f0(_,Z,String(X),U);if(Q===void 0)delete Z[X];else if(Q!==U)Z[X]=Q}else if(Z instanceof Map)for(let X of Array.from(Z.keys())){let z=Z.get(X),U=f0(_,Z,X,z);if(U===void 0)Z.delete(X);else if(U!==z)Z.set(X,U)}else if(Z instanceof Set)for(let X of Array.from(Z)){let z=f0(_,Z,X,X);if(z===void 0)Z.delete(X);else if(z!==X)Z.delete(X),Z.add(z)}else for(let[X,z]of Object.entries(Z)){let U=f0(_,Z,X,z);if(U===void 0)delete Z[X];else if(U!==z)Z[X]=U}return _.call(q,$,Z)}bB.applyReviver=f0});var f1=M((hB)=>{var xB=g();function t7(_,q,$){if(Array.isArray(_))return _.map((Z,X)=>t7(Z,String(X),$));if(_&&typeof _.toJSON==="function"){if(!$||!xB.hasAnchor(_))return _.toJSON(q,$);let Z={aliasCount:0,count:1,res:void 0};$.anchors.set(_,Z),$.onCreate=(z)=>{Z.res=z,delete $.onCreate};let X=_.toJSON(q,$);if($.onCreate)$.onCreate(X);return X}if(typeof _==="bigint"&&!$?.keep)return Number(_);return _}hB.toJS=t7});var b_=M((uB)=>{var gB=A9(),e7=g(),kB=f1();class _8{constructor(_){Object.defineProperty(this,e7.NODE_TYPE,{value:_})}clone(){let _=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(this.range)_.range=this.range.slice();return _}toJS(_,{mapAsMap:q,maxAliasCount:$,onAnchor:Z,reviver:X}={}){if(!e7.isDocument(_))throw TypeError("A document argument is required");let z={anchors:new Map,doc:_,keep:!0,mapAsMap:q===!0,mapKeyWarned:!1,maxAliasCount:typeof $==="number"?$:100},U=kB.toJS(this,"",z);if(typeof Z==="function")for(let{count:Q,res:Y}of z.anchors.values())Z(Y,Q);return typeof X==="function"?gB.applyReviver(X,{"":U},"",U):U}}uB.NodeBase=_8});var N0=M((pB)=>{var dB=C_(),lB=O0(),U0=g(),iB=b_(),cB=f1();class q8 extends iB.NodeBase{constructor(_){super(U0.ALIAS);this.source=_,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(_,q){let $;if(q?.aliasResolveCache)$=q.aliasResolveCache;else if($=[],lB.visit(_,{Node:(X,z)=>{if(U0.isAlias(z)||U0.hasAnchor(z))$.push(z)}}),q)q.aliasResolveCache=$;let Z=void 0;for(let X of $){if(X===this)break;if(X.anchor===this.source)Z=X}return Z}toJSON(_,q){if(!q)return{source:this.source};let{anchors:$,doc:Z,maxAliasCount:X}=q,z=this.resolve(Z,q);if(!z){let Q=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(Q)}let U=$.get(z);if(!U)cB.toJS(z,null,q),U=$.get(z);if(U?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(X>=0){if(U.count+=1,U.aliasCount===0)U.aliasCount=y_(Z,z,$);if(U.count*U.aliasCount>X)throw ReferenceError("Excessive alias count indicates a resource exhaustion attack")}return U.res}toString(_,q,$){let Z=`*${this.source}`;if(_){if(dB.anchorIsValid(this.source),_.options.verifyAliasOrder&&!_.anchors.has(this.source)){let X=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(X)}if(_.implicitKey)return`${Z} `}return Z}}function y_(_,q,$){if(U0.isAlias(q)){let Z=q.resolve(_),X=$&&Z&&$.get(Z);return X?X.count*X.aliasCount:0}else if(U0.isCollection(q)){let Z=0;for(let X of q.items){let z=y_(_,X,$);if(z>Z)Z=z}return Z}else if(U0.isPair(q)){let Z=y_(_,q.key,$),X=y_(_,q.value,$);return Math.max(Z,X)}return 1}pB.Alias=q8});var s=M((tB)=>{var sB=g(),nB=b_(),aB=f1(),oB=(_)=>!_||typeof _!=="function"&&typeof _!=="object";class i1 extends nB.NodeBase{constructor(_){super(sB.SCALAR);this.value=_}toJSON(_,q){return q?.keep?this.value:aB.toJS(this.value,_,q)}toString(){return String(this.value)}}i1.BLOCK_FOLDED="BLOCK_FOLDED";i1.BLOCK_LITERAL="BLOCK_LITERAL";i1.PLAIN="PLAIN";i1.QUOTE_DOUBLE="QUOTE_DOUBLE";i1.QUOTE_SINGLE="QUOTE_SINGLE";tB.Scalar=i1;tB.isScalarValue=oB});var E0=M((zW)=>{var qW=N0(),c1=g(),$8=s(),$W="tag:yaml.org,2002:";function ZW(_,q,$){if(q){let Z=$.filter((z)=>z.tag===q),X=Z.find((z)=>!z.format)??Z[0];if(!X)throw Error(`Tag ${q} not found`);return X}return $.find((Z)=>Z.identify?.(_)&&!Z.format)}function XW(_,q,$){if(c1.isDocument(_))_=_.contents;if(c1.isNode(_))return _;if(c1.isPair(_)){let V=$.schema[c1.MAP].createNode?.($.schema,null,$);return V.items.push(_),V}if(_ instanceof String||_ instanceof Number||_ instanceof Boolean||typeof BigInt<"u"&&_ instanceof BigInt)_=_.valueOf();let{aliasDuplicateObjects:Z,onAnchor:X,onTagObj:z,schema:U,sourceObjects:Q}=$,Y=void 0;if(Z&&_&&typeof _==="object")if(Y=Q.get(_),Y)return Y.anchor??(Y.anchor=X(_)),new qW.Alias(Y.anchor);else Y={anchor:null,node:null},Q.set(_,Y);if(q?.startsWith("!!"))q=$W+q.slice(2);let J=ZW(_,q,U.tags);if(!J){if(_&&typeof _.toJSON==="function")_=_.toJSON();if(!_||typeof _!=="object"){let V=new $8.Scalar(_);if(Y)Y.node=V;return V}J=_ instanceof Map?U[c1.MAP]:(Symbol.iterator in Object(_))?U[c1.SEQ]:U[c1.MAP]}if(z)z(J),delete $.onTagObj;let W=J?.createNode?J.createNode($.schema,_,$):typeof J?.nodeClass?.from==="function"?J.nodeClass.from($.schema,_,$):new $8.Scalar(_);if(q)W.tag=q;else if(!J.default)W.tag=J.tag;if(Y)Y.node=W;return W}zW.createNode=XW});var x_=M((JW)=>{var QW=E0(),K1=g(),YW=b_();function O9(_,q,$){let Z=$;for(let X=q.length-1;X>=0;--X){let z=q[X];if(typeof z==="number"&&Number.isInteger(z)&&z>=0){let U=[];U[z]=Z,Z=U}else Z=new Map([[z,Z]])}return QW.createNode(Z,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:_,sourceObjects:new Map})}var Z8=(_)=>_==null||typeof _==="object"&&!!_[Symbol.iterator]().next().done;class X8 extends YW.NodeBase{constructor(_,q){super(_);Object.defineProperty(this,"schema",{value:q,configurable:!0,enumerable:!1,writable:!0})}clone(_){let q=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));if(_)q.schema=_;if(q.items=q.items.map(($)=>K1.isNode($)||K1.isPair($)?$.clone(_):$),this.range)q.range=this.range.slice();return q}addIn(_,q){if(Z8(_))this.add(q);else{let[$,...Z]=_,X=this.get($,!0);if(K1.isCollection(X))X.addIn(Z,q);else if(X===void 0&&this.schema)this.set($,O9(this.schema,Z,q));else throw Error(`Expected YAML collection at ${$}. Remaining path: ${Z}`)}}deleteIn(_){let[q,...$]=_;if($.length===0)return this.delete(q);let Z=this.get(q,!0);if(K1.isCollection(Z))return Z.deleteIn($);else throw Error(`Expected YAML collection at ${q}. Remaining path: ${$}`)}getIn(_,q){let[$,...Z]=_,X=this.get($,!0);if(Z.length===0)return!q&&K1.isScalar(X)?X.value:X;else return K1.isCollection(X)?X.getIn(Z,q):void 0}hasAllNullValues(_){return this.items.every((q)=>{if(!K1.isPair(q))return!1;let $=q.value;return $==null||_&&K1.isScalar($)&&$.value==null&&!$.commentBefore&&!$.comment&&!$.tag})}hasIn(_){let[q,...$]=_;if($.length===0)return this.has(q);let Z=this.get(q,!0);return K1.isCollection(Z)?Z.hasIn($):!1}setIn(_,q){let[$,...Z]=_;if(Z.length===0)this.set($,q);else{let X=this.get($,!0);if(K1.isCollection(X))X.setIn(Z,q);else if(X===void 0&&this.schema)this.set($,O9(this.schema,Z,q));else throw Error(`Expected YAML collection at ${$}. Remaining path: ${Z}`)}}}JW.Collection=X8;JW.collectionFromPath=O9;JW.isEmptyPath=Z8});var C0=M((LW)=>{var GW=(_)=>_.replace(/^(?!$)(?: $)?/gm,"#");function f9(_,q){if(/^\n+$/.test(_))return _.substring(1);return q?_.replace(/^(?! *$)/gm,q):_}var FW=(_,q,$)=>_.endsWith(`
50
+ `)?f9($,q):$.includes(`
51
51
  `)?`
52
- `+K9($,q):(_.endsWith(" ")?"":" ")+$;aJ.indentComment=K9;aJ.lineComment=nJ;aJ.stringifyComment=sJ});var o7=H((qW)=>{function _W(_,q,$="flow",{indentAtStart:Z,lineWidth:X=80,minContentWidth:z=20,onFold:U,onOverflow:Q}={}){if(!X||X<0)return _;if(X<z)z=0;let Y=Math.max(1+z,1+X-q.length);if(_.length<=Y)return _;let B=[],W={},V=X-q.length;if(typeof Z==="number")if(Z>X-Math.max(2,z))B.push(0);else V=X-Z;let J=void 0,G=void 0,L=!1,F=-1,M=-1,w=-1;if($==="block"){if(F=a7(_,F,q.length),F!==-1)V=F+Y}for(let P;P=_[F+=1];){if($==="quoted"&&P==="\\"){switch(M=F,_[F+1]){case"x":F+=3;break;case"u":F+=5;break;case"U":F+=9;break;default:F+=1}w=F}if(P===`
53
- `){if($==="block")F=a7(_,F,q.length);V=F+q.length+Y,J=void 0}else{if(P===" "&&G&&G!==" "&&G!==`
54
- `&&G!=="\t"){let E=_[F+1];if(E&&E!==" "&&E!==`
55
- `&&E!=="\t")J=F}if(F>=V)if(J)B.push(J),V=J+Y,J=void 0;else if($==="quoted"){while(G===" "||G==="\t")G=P,P=_[F+=1],L=!0;let E=F>w+1?F-2:M-1;if(W[E])return _;B.push(E),W[E]=!0,V=E+Y,J=void 0}else L=!0}G=P}if(L&&Q)Q();if(B.length===0)return _;if(U)U();let j=_.slice(0,B[0]);for(let P=0;P<B.length;++P){let E=B[P],S=B[P+1]||_.length;if(E===0)j=`
56
- ${q}${_.slice(0,S)}`;else{if($==="quoted"&&W[E])j+=`${_[E]}\\`;j+=`
57
- ${q}${_.slice(E+1,S)}`}}return j}function a7(_,q,$){let Z=q,X=q+1,z=_[X];while(z===" "||z==="\t")if(q<X+$)z=_[++q];else{do z=_[++q];while(z&&z!==`
58
- `);Z=q,X=q+1,z=_[X]}return Z}qW.FOLD_BLOCK="block";qW.FOLD_FLOW="flow";qW.FOLD_QUOTED="quoted";qW.foldFlowLines=_W});var f0=H((BW)=>{var W1=r(),A1=o7(),f_=(_,q)=>({indentAtStart:q?_.indent.length:_.indentAtStart,lineWidth:_.options.lineWidth,minContentWidth:_.options.minContentWidth}),E_=(_)=>/^(%|---|\.\.\.)/m.test(_);function UW(_,q,$){if(!q||q<0)return!1;let Z=q-$,X=_.length;if(X<=Z)return!1;for(let z=0,U=0;z<X;++z)if(_[z]===`
59
- `){if(z-U>Z)return!0;if(U=z+1,X-U<=Z)return!1}return!0}function N0(_,q){let $=JSON.stringify(_);if(q.options.doubleQuotedAsJSON)return $;let{implicitKey:Z}=q,X=q.options.doubleQuotedMinMultiLineLength,z=q.indent||(E_(_)?" ":""),U="",Q=0;for(let Y=0,B=$[Y];B;B=$[++Y]){if(B===" "&&$[Y+1]==="\\"&&$[Y+2]==="n")U+=$.slice(Q,Y)+"\\ ",Y+=1,Q=Y,B="\\";if(B==="\\")switch($[Y+1]){case"u":{U+=$.slice(Q,Y);let W=$.substr(Y+2,4);switch(W){case"0000":U+="\\0";break;case"0007":U+="\\a";break;case"000b":U+="\\v";break;case"001b":U+="\\e";break;case"0085":U+="\\N";break;case"00a0":U+="\\_";break;case"2028":U+="\\L";break;case"2029":U+="\\P";break;default:if(W.substr(0,2)==="00")U+="\\x"+W.substr(2);else U+=$.substr(Y,6)}Y+=5,Q=Y+1}break;case"n":if(Z||$[Y+2]==='"'||$.length<X)Y+=1;else{U+=$.slice(Q,Y)+`
52
+ `+f9($,q):(_.endsWith(" ")?"":" ")+$;LW.indentComment=f9;LW.lineComment=FW;LW.stringifyComment=GW});var U8=M((KW)=>{function TW(_,q,$="flow",{indentAtStart:Z,lineWidth:X=80,minContentWidth:z=20,onFold:U,onOverflow:Q}={}){if(!X||X<0)return _;if(X<z)z=0;let Y=Math.max(1+z,1+X-q.length);if(_.length<=Y)return _;let J=[],W={},V=X-q.length;if(typeof Z==="number")if(Z>X-Math.max(2,z))J.push(0);else V=X-Z;let B=void 0,F=void 0,L=!1,G=-1,H=-1,S=-1;if($==="block"){if(G=z8(_,G,q.length),G!==-1)V=G+Y}for(let A;A=_[G+=1];){if($==="quoted"&&A==="\\"){switch(H=G,_[G+1]){case"x":G+=3;break;case"u":G+=5;break;case"U":G+=9;break;default:G+=1}S=G}if(A===`
53
+ `){if($==="block")G=z8(_,G,q.length);V=G+q.length+Y,B=void 0}else{if(A===" "&&F&&F!==" "&&F!==`
54
+ `&&F!=="\t"){let C=_[G+1];if(C&&C!==" "&&C!==`
55
+ `&&C!=="\t")B=G}if(G>=V)if(B)J.push(B),V=B+Y,B=void 0;else if($==="quoted"){while(F===" "||F==="\t")F=A,A=_[G+=1],L=!0;let C=G>S+1?G-2:H-1;if(W[C])return _;J.push(C),W[C]=!0,V=C+Y,B=void 0}else L=!0}F=A}if(L&&Q)Q();if(J.length===0)return _;if(U)U();let O=_.slice(0,J[0]);for(let A=0;A<J.length;++A){let C=J[A],N=J[A+1]||_.length;if(C===0)O=`
56
+ ${q}${_.slice(0,N)}`;else{if($==="quoted"&&W[C])O+=`${_[C]}\\`;O+=`
57
+ ${q}${_.slice(C+1,N)}`}}return O}function z8(_,q,$){let Z=q,X=q+1,z=_[X];while(z===" "||z==="\t")if(q<X+$)z=_[++q];else{do z=_[++q];while(z&&z!==`
58
+ `);Z=q,X=q+1,z=_[X]}return Z}KW.FOLD_BLOCK="block";KW.FOLD_FLOW="flow";KW.FOLD_QUOTED="quoted";KW.foldFlowLines=TW});var y0=M((OW)=>{var G1=s(),N1=U8(),v_=(_,q)=>({indentAtStart:q?_.indent.length:_.indentAtStart,lineWidth:_.options.lineWidth,minContentWidth:_.options.minContentWidth}),g_=(_)=>/^(%|---|\.\.\.)/m.test(_);function jW(_,q,$){if(!q||q<0)return!1;let Z=q-$,X=_.length;if(X<=Z)return!1;for(let z=0,U=0;z<X;++z)if(_[z]===`
59
+ `){if(z-U>Z)return!0;if(U=z+1,X-U<=Z)return!1}return!0}function b0(_,q){let $=JSON.stringify(_);if(q.options.doubleQuotedAsJSON)return $;let{implicitKey:Z}=q,X=q.options.doubleQuotedMinMultiLineLength,z=q.indent||(g_(_)?" ":""),U="",Q=0;for(let Y=0,J=$[Y];J;J=$[++Y]){if(J===" "&&$[Y+1]==="\\"&&$[Y+2]==="n")U+=$.slice(Q,Y)+"\\ ",Y+=1,Q=Y,J="\\";if(J==="\\")switch($[Y+1]){case"u":{U+=$.slice(Q,Y);let W=$.substr(Y+2,4);switch(W){case"0000":U+="\\0";break;case"0007":U+="\\a";break;case"000b":U+="\\v";break;case"001b":U+="\\e";break;case"0085":U+="\\N";break;case"00a0":U+="\\_";break;case"2028":U+="\\L";break;case"2029":U+="\\P";break;default:if(W.substr(0,2)==="00")U+="\\x"+W.substr(2);else U+=$.substr(Y,6)}Y+=5,Q=Y+1}break;case"n":if(Z||$[Y+2]==='"'||$.length<X)Y+=1;else{U+=$.slice(Q,Y)+`
60
60
 
61
61
  `;while($[Y+2]==="\\"&&$[Y+3]==="n"&&$[Y+4]!=='"')U+=`
62
- `,Y+=2;if(U+=z,$[Y+2]===" ")U+="\\";Y+=1,Q=Y+1}break;default:Y+=1}}return U=Q?U+$.slice(Q):$,Z?U:A1.foldFlowLines(U,z,A1.FOLD_QUOTED,f_(q,!1))}function D9(_,q){if(q.options.singleQuote===!1||q.implicitKey&&_.includes(`
63
- `)||/[ \t]\n|\n[ \t]/.test(_))return N0(_,q);let $=q.indent||(E_(_)?" ":""),Z="'"+_.replace(/'/g,"''").replace(/\n+/g,`$&
64
- ${$}`)+"'";return q.implicitKey?Z:A1.foldFlowLines(Z,$,A1.FOLD_FLOW,f_(q,!1))}function X0(_,q){let{singleQuote:$}=q.options,Z;if($===!1)Z=N0;else{let X=_.includes('"'),z=_.includes("'");if(X&&!z)Z=D9;else if(z&&!X)Z=N0;else Z=$?D9:N0}return Z(_,q)}var w9;try{w9=new RegExp(`(^|(?<!
62
+ `,Y+=2;if(U+=z,$[Y+2]===" ")U+="\\";Y+=1,Q=Y+1}break;default:Y+=1}}return U=Q?U+$.slice(Q):$,Z?U:N1.foldFlowLines(U,z,N1.FOLD_QUOTED,v_(q,!1))}function N9(_,q){if(q.options.singleQuote===!1||q.implicitKey&&_.includes(`
63
+ `)||/[ \t]\n|\n[ \t]/.test(_))return b0(_,q);let $=q.indent||(g_(_)?" ":""),Z="'"+_.replace(/'/g,"''").replace(/\n+/g,`$&
64
+ ${$}`)+"'";return q.implicitKey?Z:N1.foldFlowLines(Z,$,N1.FOLD_FLOW,v_(q,!1))}function Q0(_,q){let{singleQuote:$}=q.options,Z;if($===!1)Z=b0;else{let X=_.includes('"'),z=_.includes("'");if(X&&!z)Z=N9;else if(z&&!X)Z=b0;else Z=$?N9:b0}return Z(_,q)}var E9;try{E9=new RegExp(`(^|(?<!
65
65
  ))
66
66
  +(?!
67
- |$)`,"g")}catch{w9=/\n+(?!\n|$)/g}function N_({comment:_,type:q,value:$},Z,X,z){let{blockQuote:U,commentString:Q,lineWidth:Y}=Z.options;if(!U||/\n[\t ]+$/.test($))return X0($,Z);let B=Z.indent||(Z.forceBlockIndent||E_($)?" ":""),W=U==="literal"?!0:U==="folded"||q===W1.Scalar.BLOCK_FOLDED?!1:q===W1.Scalar.BLOCK_LITERAL?!0:!UW($,Y,B.length);if(!$)return W?`|
67
+ |$)`,"g")}catch{E9=/\n+(?!\n|$)/g}function h_({comment:_,type:q,value:$},Z,X,z){let{blockQuote:U,commentString:Q,lineWidth:Y}=Z.options;if(!U||/\n[\t ]+$/.test($))return Q0($,Z);let J=Z.indent||(Z.forceBlockIndent||g_($)?" ":""),W=U==="literal"?!0:U==="folded"||q===G1.Scalar.BLOCK_FOLDED?!1:q===G1.Scalar.BLOCK_LITERAL?!0:!jW($,Y,J.length);if(!$)return W?`|
68
68
  `:`>
69
- `;let V,J;for(J=$.length;J>0;--J){let S=$[J-1];if(S!==`
70
- `&&S!=="\t"&&S!==" ")break}let G=$.substring(J),L=G.indexOf(`
71
- `);if(L===-1)V="-";else if($===G||L!==G.length-1){if(V="+",z)z()}else V="";if(G){if($=$.slice(0,-G.length),G[G.length-1]===`
72
- `)G=G.slice(0,-1);G=G.replace(w9,`$&${B}`)}let F=!1,M,w=-1;for(M=0;M<$.length;++M){let S=$[M];if(S===" ")F=!0;else if(S===`
73
- `)w=M;else break}let j=$.substring(0,w<M?w+1:M);if(j)$=$.substring(j.length),j=j.replace(/\n+/g,`$&${B}`);let E=(F?B?"2":"1":"")+V;if(_){if(E+=" "+Q(_.replace(/ ?[\r\n]+/g," ")),X)X()}if(!W){let S=$.replace(/\n+/g,`
74
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${B}`),A=!1,O=f_(Z,!0);if(U!=="folded"&&q!==W1.Scalar.BLOCK_FOLDED)O.onOverflow=()=>{A=!0};let I=A1.foldFlowLines(`${j}${S}${G}`,B,A1.FOLD_BLOCK,O);if(!A)return`>${E}
75
- ${B}${I}`}return $=$.replace(/\n+/g,`$&${B}`),`|${E}
76
- ${B}${j}${$}${G}`}function QW(_,q,$,Z){let{type:X,value:z}=_,{actualString:U,implicitKey:Q,indent:Y,indentStep:B,inFlow:W}=q;if(Q&&z.includes(`
77
- `)||W&&/[[\]{},]/.test(z))return X0(z,q);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(z))return Q||W||!z.includes(`
78
- `)?X0(z,q):N_(_,q,$,Z);if(!Q&&!W&&X!==W1.Scalar.PLAIN&&z.includes(`
79
- `))return N_(_,q,$,Z);if(E_(z)){if(Y==="")return q.forceBlockIndent=!0,N_(_,q,$,Z);else if(Q&&Y===B)return X0(z,q)}let V=z.replace(/\n+/g,`$&
80
- ${Y}`);if(U){let J=(F)=>F.default&&F.tag!=="tag:yaml.org,2002:str"&&F.test?.test(V),{compat:G,tags:L}=q.doc.schema;if(L.some(J)||G?.some(J))return X0(z,q)}return Q?V:A1.foldFlowLines(V,Y,A1.FOLD_FLOW,f_(q,!1))}function YW(_,q,$,Z){let{implicitKey:X,inFlow:z}=q,U=typeof _.value==="string"?_:Object.assign({},_,{value:String(_.value)}),{type:Q}=_;if(Q!==W1.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(U.value))Q=W1.Scalar.QUOTE_DOUBLE}let Y=(W)=>{switch(W){case W1.Scalar.BLOCK_FOLDED:case W1.Scalar.BLOCK_LITERAL:return X||z?X0(U.value,q):N_(U,q,$,Z);case W1.Scalar.QUOTE_DOUBLE:return N0(U.value,q);case W1.Scalar.QUOTE_SINGLE:return D9(U.value,q);case W1.Scalar.PLAIN:return QW(U,q,$,Z);default:return null}},B=Y(Q);if(B===null){let{defaultKeyType:W,defaultStringType:V}=q.options,J=X&&W||V;if(B=Y(J),B===null)throw Error(`Unsupported default string type ${J}`)}return B}BW.stringifyString=YW});var E0=H((IW)=>{var WW=P_(),O1=g(),VW=O0(),FW=f0();function GW(_,q){let $=Object.assign({blockQuote:!0,commentString:VW.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},_.schema.toStringOptions,q),Z;switch($.collectionStyle){case"block":Z=!1;break;case"flow":Z=!0;break;default:Z=null}return{anchors:new Set,doc:_,flowCollectionPadding:$.flowCollectionPadding?" ":"",indent:"",indentStep:typeof $.indent==="number"?" ".repeat($.indent):" ",inFlow:Z,options:$}}function LW(_,q){if(q.tag){let X=_.filter((z)=>z.tag===q.tag);if(X.length>0)return X.find((z)=>z.format===q.format)??X[0]}let $=void 0,Z;if(O1.isScalar(q)){Z=q.value;let X=_.filter((z)=>z.identify?.(Z));if(X.length>1){let z=X.filter((U)=>U.test);if(z.length>0)X=z}$=X.find((z)=>z.format===q.format)??X.find((z)=>!z.format)}else Z=q,$=_.find((X)=>X.nodeClass&&Z instanceof X.nodeClass);if(!$){let X=Z?.constructor?.name??(Z===null?"null":typeof Z);throw Error(`Tag not resolved for ${X} value`)}return $}function HW(_,q,{anchors:$,doc:Z}){if(!Z.directives)return"";let X=[],z=(O1.isScalar(_)||O1.isCollection(_))&&_.anchor;if(z&&WW.anchorIsValid(z))$.add(z),X.push(`&${z}`);let U=_.tag??(q.default?null:q.tag);if(U)X.push(Z.directives.tagString(U));return X.join(" ")}function MW(_,q,$,Z){if(O1.isPair(_))return _.toString(q,$,Z);if(O1.isAlias(_)){if(q.doc.directives)return _.toString(q);if(q.resolvedAliases?.has(_))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(q.resolvedAliases)q.resolvedAliases.add(_);else q.resolvedAliases=new Set([_]);_=_.resolve(q.doc)}}let X=void 0,z=O1.isNode(_)?_:q.doc.createNode(_,{onTagObj:(Y)=>X=Y});X??(X=LW(q.doc.schema.tags,z));let U=HW(z,X,q);if(U.length>0)q.indentAtStart=(q.indentAtStart??0)+U.length+1;let Q=typeof X.stringify==="function"?X.stringify(z,q,$,Z):O1.isScalar(z)?FW.stringifyString(z,q,$,Z):z.toString(q,$,Z);if(!U)return Q;return O1.isScalar(z)||Q[0]==="{"||Q[0]==="["?`${U} ${Q}`:`${U}
81
- ${q.indent}${Q}`}IW.createStringifyContext=GW;IW.stringify=MW});var _8=H((wW)=>{var D1=g(),t7=r(),e7=E0(),C0=O0();function DW({key:_,value:q},$,Z,X){let{allNullValues:z,doc:U,indent:Q,indentStep:Y,options:{commentString:B,indentSeq:W,simpleKeys:V}}=$,J=D1.isNode(_)&&_.comment||null;if(V){if(J)throw Error("With simple keys, key nodes cannot have comments");if(D1.isCollection(_)||!D1.isNode(_)&&typeof _==="object")throw Error("With simple keys, collection cannot be used as a key value")}let G=!V&&(!_||J&&q==null&&!$.inFlow||D1.isCollection(_)||(D1.isScalar(_)?_.type===t7.Scalar.BLOCK_FOLDED||_.type===t7.Scalar.BLOCK_LITERAL:typeof _==="object"));$=Object.assign({},$,{allNullValues:!1,implicitKey:!G&&(V||!z),indent:Q+Y});let L=!1,F=!1,M=e7.stringify(_,$,()=>L=!0,()=>F=!0);if(!G&&!$.inFlow&&M.length>1024){if(V)throw Error("With simple keys, single line scalar must not span more than 1024 characters");G=!0}if($.inFlow){if(z||q==null){if(L&&Z)Z();return M===""?"?":G?`? ${M}`:M}}else if(z&&!V||q==null&&G){if(M=`? ${M}`,J&&!L)M+=C0.lineComment(M,$.indent,B(J));else if(F&&X)X();return M}if(L)J=null;if(G){if(J)M+=C0.lineComment(M,$.indent,B(J));M=`? ${M}
82
- ${Q}:`}else if(M=`${M}:`,J)M+=C0.lineComment(M,$.indent,B(J));let w,j,P;if(D1.isNode(q))w=!!q.spaceBefore,j=q.commentBefore,P=q.comment;else if(w=!1,j=null,P=null,q&&typeof q==="object")q=U.createNode(q);if($.implicitKey=!1,!G&&!J&&D1.isScalar(q))$.indentAtStart=M.length+1;if(F=!1,!W&&Y.length>=2&&!$.inFlow&&!G&&D1.isSeq(q)&&!q.flow&&!q.tag&&!q.anchor)$.indent=$.indent.substring(2);let E=!1,S=e7.stringify(q,$,()=>E=!0,()=>F=!0),A=" ";if(J||w||j){if(A=w?`
83
- `:"",j){let O=B(j);A+=`
84
- ${C0.indentComment(O,$.indent)}`}if(S===""&&!$.inFlow){if(A===`
85
- `)A=`
69
+ `;let V,B;for(B=$.length;B>0;--B){let N=$[B-1];if(N!==`
70
+ `&&N!=="\t"&&N!==" ")break}let F=$.substring(B),L=F.indexOf(`
71
+ `);if(L===-1)V="-";else if($===F||L!==F.length-1){if(V="+",z)z()}else V="";if(F){if($=$.slice(0,-F.length),F[F.length-1]===`
72
+ `)F=F.slice(0,-1);F=F.replace(E9,`$&${J}`)}let G=!1,H,S=-1;for(H=0;H<$.length;++H){let N=$[H];if(N===" ")G=!0;else if(N===`
73
+ `)S=H;else break}let O=$.substring(0,S<H?S+1:H);if(O)$=$.substring(O.length),O=O.replace(/\n+/g,`$&${J}`);let C=(G?J?"2":"1":"")+V;if(_){if(C+=" "+Q(_.replace(/ ?[\r\n]+/g," ")),X)X()}if(!W){let N=$.replace(/\n+/g,`
74
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${J}`),R=!1,E=v_(Z,!0);if(U!=="folded"&&q!==G1.Scalar.BLOCK_FOLDED)E.onOverflow=()=>{R=!0};let I=N1.foldFlowLines(`${O}${N}${F}`,J,N1.FOLD_BLOCK,E);if(!R)return`>${C}
75
+ ${J}${I}`}return $=$.replace(/\n+/g,`$&${J}`),`|${C}
76
+ ${J}${O}${$}${F}`}function PW(_,q,$,Z){let{type:X,value:z}=_,{actualString:U,implicitKey:Q,indent:Y,indentStep:J,inFlow:W}=q;if(Q&&z.includes(`
77
+ `)||W&&/[[\]{},]/.test(z))return Q0(z,q);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(z))return Q||W||!z.includes(`
78
+ `)?Q0(z,q):h_(_,q,$,Z);if(!Q&&!W&&X!==G1.Scalar.PLAIN&&z.includes(`
79
+ `))return h_(_,q,$,Z);if(g_(z)){if(Y==="")return q.forceBlockIndent=!0,h_(_,q,$,Z);else if(Q&&Y===J)return Q0(z,q)}let V=z.replace(/\n+/g,`$&
80
+ ${Y}`);if(U){let B=(G)=>G.default&&G.tag!=="tag:yaml.org,2002:str"&&G.test?.test(V),{compat:F,tags:L}=q.doc.schema;if(L.some(B)||F?.some(B))return Q0(z,q)}return Q?V:N1.foldFlowLines(V,Y,N1.FOLD_FLOW,v_(q,!1))}function AW(_,q,$,Z){let{implicitKey:X,inFlow:z}=q,U=typeof _.value==="string"?_:Object.assign({},_,{value:String(_.value)}),{type:Q}=_;if(Q!==G1.Scalar.QUOTE_DOUBLE){if(/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(U.value))Q=G1.Scalar.QUOTE_DOUBLE}let Y=(W)=>{switch(W){case G1.Scalar.BLOCK_FOLDED:case G1.Scalar.BLOCK_LITERAL:return X||z?Q0(U.value,q):h_(U,q,$,Z);case G1.Scalar.QUOTE_DOUBLE:return b0(U.value,q);case G1.Scalar.QUOTE_SINGLE:return N9(U.value,q);case G1.Scalar.PLAIN:return PW(U,q,$,Z);default:return null}},J=Y(Q);if(J===null){let{defaultKeyType:W,defaultStringType:V}=q.options,B=X&&W||V;if(J=Y(B),J===null)throw Error(`Unsupported default string type ${B}`)}return J}OW.stringifyString=AW});var x0=M((vW)=>{var NW=C_(),E1=g(),EW=C0(),CW=y0();function bW(_,q){let $=Object.assign({blockQuote:!0,commentString:EW.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},_.schema.toStringOptions,q),Z;switch($.collectionStyle){case"block":Z=!1;break;case"flow":Z=!0;break;default:Z=null}return{anchors:new Set,doc:_,flowCollectionPadding:$.flowCollectionPadding?" ":"",indent:"",indentStep:typeof $.indent==="number"?" ".repeat($.indent):" ",inFlow:Z,options:$}}function yW(_,q){if(q.tag){let X=_.filter((z)=>z.tag===q.tag);if(X.length>0)return X.find((z)=>z.format===q.format)??X[0]}let $=void 0,Z;if(E1.isScalar(q)){Z=q.value;let X=_.filter((z)=>z.identify?.(Z));if(X.length>1){let z=X.filter((U)=>U.test);if(z.length>0)X=z}$=X.find((z)=>z.format===q.format)??X.find((z)=>!z.format)}else Z=q,$=_.find((X)=>X.nodeClass&&Z instanceof X.nodeClass);if(!$){let X=Z?.constructor?.name??(Z===null?"null":typeof Z);throw Error(`Tag not resolved for ${X} value`)}return $}function xW(_,q,{anchors:$,doc:Z}){if(!Z.directives)return"";let X=[],z=(E1.isScalar(_)||E1.isCollection(_))&&_.anchor;if(z&&NW.anchorIsValid(z))$.add(z),X.push(`&${z}`);let U=_.tag??(q.default?null:q.tag);if(U)X.push(Z.directives.tagString(U));return X.join(" ")}function hW(_,q,$,Z){if(E1.isPair(_))return _.toString(q,$,Z);if(E1.isAlias(_)){if(q.doc.directives)return _.toString(q);if(q.resolvedAliases?.has(_))throw TypeError("Cannot stringify circular structure without alias nodes");else{if(q.resolvedAliases)q.resolvedAliases.add(_);else q.resolvedAliases=new Set([_]);_=_.resolve(q.doc)}}let X=void 0,z=E1.isNode(_)?_:q.doc.createNode(_,{onTagObj:(Y)=>X=Y});X??(X=yW(q.doc.schema.tags,z));let U=xW(z,X,q);if(U.length>0)q.indentAtStart=(q.indentAtStart??0)+U.length+1;let Q=typeof X.stringify==="function"?X.stringify(z,q,$,Z):E1.isScalar(z)?CW.stringifyString(z,q,$,Z):z.toString(q,$,Z);if(!U)return Q;return E1.isScalar(z)||Q[0]==="{"||Q[0]==="["?`${U} ${Q}`:`${U}
81
+ ${q.indent}${Q}`}vW.createStringifyContext=bW;vW.stringify=hW});var J8=M((mW)=>{var P1=g(),Q8=s(),Y8=x0(),h0=C0();function uW({key:_,value:q},$,Z,X){let{allNullValues:z,doc:U,indent:Q,indentStep:Y,options:{commentString:J,indentSeq:W,simpleKeys:V}}=$,B=P1.isNode(_)&&_.comment||null;if(V){if(B)throw Error("With simple keys, key nodes cannot have comments");if(P1.isCollection(_)||!P1.isNode(_)&&typeof _==="object")throw Error("With simple keys, collection cannot be used as a key value")}let F=!V&&(!_||B&&q==null&&!$.inFlow||P1.isCollection(_)||(P1.isScalar(_)?_.type===Q8.Scalar.BLOCK_FOLDED||_.type===Q8.Scalar.BLOCK_LITERAL:typeof _==="object"));$=Object.assign({},$,{allNullValues:!1,implicitKey:!F&&(V||!z),indent:Q+Y});let L=!1,G=!1,H=Y8.stringify(_,$,()=>L=!0,()=>G=!0);if(!F&&!$.inFlow&&H.length>1024){if(V)throw Error("With simple keys, single line scalar must not span more than 1024 characters");F=!0}if($.inFlow){if(z||q==null){if(L&&Z)Z();return H===""?"?":F?`? ${H}`:H}}else if(z&&!V||q==null&&F){if(H=`? ${H}`,B&&!L)H+=h0.lineComment(H,$.indent,J(B));else if(G&&X)X();return H}if(L)B=null;if(F){if(B)H+=h0.lineComment(H,$.indent,J(B));H=`? ${H}
82
+ ${Q}:`}else if(H=`${H}:`,B)H+=h0.lineComment(H,$.indent,J(B));let S,O,A;if(P1.isNode(q))S=!!q.spaceBefore,O=q.commentBefore,A=q.comment;else if(S=!1,O=null,A=null,q&&typeof q==="object")q=U.createNode(q);if($.implicitKey=!1,!F&&!B&&P1.isScalar(q))$.indentAtStart=H.length+1;if(G=!1,!W&&Y.length>=2&&!$.inFlow&&!F&&P1.isSeq(q)&&!q.flow&&!q.tag&&!q.anchor)$.indent=$.indent.substring(2);let C=!1,N=Y8.stringify(q,$,()=>C=!0,()=>G=!0),R=" ";if(B||S||O){if(R=S?`
83
+ `:"",O){let E=J(O);R+=`
84
+ ${h0.indentComment(E,$.indent)}`}if(N===""&&!$.inFlow){if(R===`
85
+ `&&A)R=`
86
86
 
87
- `}else A+=`
88
- ${$.indent}`}else if(!G&&D1.isCollection(q)){let O=S[0],I=S.indexOf(`
89
- `),C=I!==-1,u=$.inFlow??q.flow??q.items.length===0;if(C||!u){let D=!1;if(C&&(O==="&"||O==="!")){let b=S.indexOf(" ");if(O==="&"&&b!==-1&&b<I&&S[b+1]==="!")b=S.indexOf(" ",b+1);if(b===-1||I<b)D=!0}if(!D)A=`
90
- ${$.indent}`}}else if(S===""||S[0]===`
91
- `)A="";if(M+=A+S,$.inFlow){if(E&&Z)Z()}else if(P&&!E)M+=C0.lineComment(M,$.indent,B(P));else if(F&&X)X();return M}wW.stringifyPair=DW});var S9=H((jW)=>{var q8=x("process");function RW(_,...q){if(_==="debug")console.log(...q)}function PW(_,q){if(_==="debug"||_==="warn")if(typeof q8.emitWarning==="function")q8.emitWarning(q);else console.warn(q)}jW.debug=RW;jW.warn=PW});var y_=H((fW)=>{var b0=g(),$8=r(),C_="<<",b_={identify:(_)=>_===C_||typeof _==="symbol"&&_.description===C_,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new $8.Scalar(Symbol(C_)),{addToJSMap:Z8}),stringify:()=>C_},NW=(_,q)=>(b_.identify(q)||b0.isScalar(q)&&(!q.type||q.type===$8.Scalar.PLAIN)&&b_.identify(q.value))&&_?.doc.schema.tags.some(($)=>$.tag===b_.tag&&$.default);function Z8(_,q,$){if($=_&&b0.isAlias($)?$.resolve(_.doc):$,b0.isSeq($))for(let Z of $.items)R9(_,q,Z);else if(Array.isArray($))for(let Z of $)R9(_,q,Z);else R9(_,q,$)}function R9(_,q,$){let Z=_&&b0.isAlias($)?$.resolve(_.doc):$;if(!b0.isMap(Z))throw Error("Merge sources must be maps or map aliases");let X=Z.toJSON(null,_,Map);for(let[z,U]of X)if(q instanceof Map){if(!q.has(z))q.set(z,U)}else if(q instanceof Set)q.add(z);else if(!Object.prototype.hasOwnProperty.call(q,z))Object.defineProperty(q,z,{value:U,writable:!0,enumerable:!0,configurable:!0});return q}fW.addMergeToJSMap=Z8;fW.isMergeKey=NW;fW.merge=b_});var j9=H((kW)=>{var yW=S9(),X8=y_(),hW=E0(),z8=g(),P9=j1();function xW(_,q,{key:$,value:Z}){if(z8.isNode($)&&$.addToJSMap)$.addToJSMap(_,q,Z);else if(X8.isMergeKey(_,$))X8.addMergeToJSMap(_,q,Z);else{let X=P9.toJS($,"",_);if(q instanceof Map)q.set(X,P9.toJS(Z,X,_));else if(q instanceof Set)q.add(X);else{let z=gW($,X,_),U=P9.toJS(Z,z,_);if(z in q)Object.defineProperty(q,z,{value:U,writable:!0,enumerable:!0,configurable:!0});else q[z]=U}}return q}function gW(_,q,$){if(q===null)return"";if(typeof q!=="object")return String(q);if(z8.isNode(_)&&$?.doc){let Z=hW.createStringifyContext($.doc,{});Z.anchors=new Set;for(let z of $.anchors.keys())Z.anchors.add(z.anchor);Z.inFlow=!0,Z.inStringifyKey=!0;let X=_.toString(Z);if(!$.mapKeyWarned){let z=JSON.stringify(X);if(z.length>40)z=z.substring(0,36)+'..."';yW.warn($.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${z}. Set mapAsMap: true to use object keys.`),$.mapKeyWarned=!0}return X}return JSON.stringify(q)}kW.addPairToJSMap=xW});var N1=H((lW)=>{var U8=A0(),uW=_8(),mW=j9(),h_=g();function dW(_,q,$){let Z=U8.createNode(_,void 0,$),X=U8.createNode(q,void 0,$);return new x_(Z,X)}class x_{constructor(_,q=null){Object.defineProperty(this,h_.NODE_TYPE,{value:h_.PAIR}),this.key=_,this.value=q}clone(_){let{key:q,value:$}=this;if(h_.isNode(q))q=q.clone(_);if(h_.isNode($))$=$.clone(_);return new x_(q,$)}toJSON(_,q){let $=q?.mapAsMap?new Map:{};return mW.addPairToJSMap(q,$,this)}toString(_,q,$){return _?.doc?uW.stringifyPair(this,_,q,$):JSON.stringify(this)}}lW.Pair=x_;lW.createPair=dW});var A9=H((nW)=>{var m1=g(),Q8=E0(),g_=O0();function pW(_,q,$){return(q.inFlow??_.flow?sW:rW)(_,q,$)}function rW({comment:_,items:q},$,{blockItemPrefix:Z,flowChars:X,itemIndent:z,onChompKeep:U,onComment:Q}){let{indent:Y,options:{commentString:B}}=$,W=Object.assign({},$,{indent:z,type:null}),V=!1,J=[];for(let L=0;L<q.length;++L){let F=q[L],M=null;if(m1.isNode(F)){if(!V&&F.spaceBefore)J.push("");if(k_($,J,F.commentBefore,V),F.comment)M=F.comment}else if(m1.isPair(F)){let j=m1.isNode(F.key)?F.key:null;if(j){if(!V&&j.spaceBefore)J.push("");k_($,J,j.commentBefore,V)}}V=!1;let w=Q8.stringify(F,W,()=>M=null,()=>V=!0);if(M)w+=g_.lineComment(w,z,B(M));if(V&&M)V=!1;J.push(Z+w)}let G;if(J.length===0)G=X.start+X.end;else{G=J[0];for(let L=1;L<J.length;++L){let F=J[L];G+=F?`
92
- ${Y}${F}`:`
93
- `}}if(_){if(G+=`
94
- `+g_.indentComment(B(_),Y),Q)Q()}else if(V&&U)U();return G}function sW({items:_},q,{flowChars:$,itemIndent:Z}){let{indent:X,indentStep:z,flowCollectionPadding:U,options:{commentString:Q}}=q;Z+=z;let Y=Object.assign({},q,{indent:Z,inFlow:!0,type:null}),B=!1,W=0,V=[];for(let L=0;L<_.length;++L){let F=_[L],M=null;if(m1.isNode(F)){if(F.spaceBefore)V.push("");if(k_(q,V,F.commentBefore,!1),F.comment)M=F.comment}else if(m1.isPair(F)){let j=m1.isNode(F.key)?F.key:null;if(j){if(j.spaceBefore)V.push("");if(k_(q,V,j.commentBefore,!1),j.comment)B=!0}let P=m1.isNode(F.value)?F.value:null;if(P){if(P.comment)M=P.comment;if(P.commentBefore)B=!0}else if(F.value==null&&j?.comment)M=j.comment}if(M)B=!0;let w=Q8.stringify(F,Y,()=>M=null);if(L<_.length-1)w+=",";if(M)w+=g_.lineComment(w,Z,Q(M));if(!B&&(V.length>W||w.includes(`
95
- `)))B=!0;V.push(w),W=V.length}let{start:J,end:G}=$;if(V.length===0)return J+G;else{if(!B){let L=V.reduce((F,M)=>F+M.length+2,2);B=q.options.lineWidth>0&&L>q.options.lineWidth}if(B){let L=J;for(let F of V)L+=F?`
96
- ${z}${X}${F}`:`
87
+ `}else R+=`
88
+ ${$.indent}`}else if(!F&&P1.isCollection(q)){let E=N[0],I=N.indexOf(`
89
+ `),b=I!==-1,m=$.inFlow??q.flow??q.items.length===0;if(b||!m){let K=!1;if(b&&(E==="&"||E==="!")){let j=N.indexOf(" ");if(E==="&"&&j!==-1&&j<I&&N[j+1]==="!")j=N.indexOf(" ",j+1);if(j===-1||I<j)K=!0}if(!K)R=`
90
+ ${$.indent}`}}else if(N===""||N[0]===`
91
+ `)R="";if(H+=R+N,$.inFlow){if(C&&Z)Z()}else if(A&&!C)H+=h0.lineComment(H,$.indent,J(A));else if(G&&X)X();return H}mW.stringifyPair=uW});var C9=M((cW)=>{var B8=v("process");function lW(_,...q){if(_==="debug")console.log(...q)}function iW(_,q){if(_==="debug"||_==="warn")if(typeof B8.emitWarning==="function")B8.emitWarning(q);else console.warn(q)}cW.debug=lW;cW.warn=iW});var m_=M((nW)=>{var v0=g(),W8=s(),k_="<<",u_={identify:(_)=>_===k_||typeof _==="symbol"&&_.description===k_,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new W8.Scalar(Symbol(k_)),{addToJSMap:V8}),stringify:()=>k_},sW=(_,q)=>(u_.identify(q)||v0.isScalar(q)&&(!q.type||q.type===W8.Scalar.PLAIN)&&u_.identify(q.value))&&_?.doc.schema.tags.some(($)=>$.tag===u_.tag&&$.default);function V8(_,q,$){if($=_&&v0.isAlias($)?$.resolve(_.doc):$,v0.isSeq($))for(let Z of $.items)b9(_,q,Z);else if(Array.isArray($))for(let Z of $)b9(_,q,Z);else b9(_,q,$)}function b9(_,q,$){let Z=_&&v0.isAlias($)?$.resolve(_.doc):$;if(!v0.isMap(Z))throw Error("Merge sources must be maps or map aliases");let X=Z.toJSON(null,_,Map);for(let[z,U]of X)if(q instanceof Map){if(!q.has(z))q.set(z,U)}else if(q instanceof Set)q.add(z);else if(!Object.prototype.hasOwnProperty.call(q,z))Object.defineProperty(q,z,{value:U,writable:!0,enumerable:!0,configurable:!0});return q}nW.addMergeToJSMap=V8;nW.isMergeKey=sW;nW.merge=u_});var x9=M((ZV)=>{var eW=C9(),G8=m_(),_V=x0(),F8=g(),y9=f1();function qV(_,q,{key:$,value:Z}){if(F8.isNode($)&&$.addToJSMap)$.addToJSMap(_,q,Z);else if(G8.isMergeKey(_,$))G8.addMergeToJSMap(_,q,Z);else{let X=y9.toJS($,"",_);if(q instanceof Map)q.set(X,y9.toJS(Z,X,_));else if(q instanceof Set)q.add(X);else{let z=$V($,X,_),U=y9.toJS(Z,z,_);if(z in q)Object.defineProperty(q,z,{value:U,writable:!0,enumerable:!0,configurable:!0});else q[z]=U}}return q}function $V(_,q,$){if(q===null)return"";if(typeof q!=="object")return String(q);if(F8.isNode(_)&&$?.doc){let Z=_V.createStringifyContext($.doc,{});Z.anchors=new Set;for(let z of $.anchors.keys())Z.anchors.add(z.anchor);Z.inFlow=!0,Z.inStringifyKey=!0;let X=_.toString(Z);if(!$.mapKeyWarned){let z=JSON.stringify(X);if(z.length>40)z=z.substring(0,36)+'..."';eW.warn($.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${z}. Set mapAsMap: true to use object keys.`),$.mapKeyWarned=!0}return X}return JSON.stringify(q)}ZV.addPairToJSMap=qV});var C1=M((YV)=>{var L8=E0(),zV=J8(),UV=x9(),d_=g();function QV(_,q,$){let Z=L8.createNode(_,void 0,$),X=L8.createNode(q,void 0,$);return new l_(Z,X)}class l_{constructor(_,q=null){Object.defineProperty(this,d_.NODE_TYPE,{value:d_.PAIR}),this.key=_,this.value=q}clone(_){let{key:q,value:$}=this;if(d_.isNode(q))q=q.clone(_);if(d_.isNode($))$=$.clone(_);return new l_(q,$)}toJSON(_,q){let $=q?.mapAsMap?new Map:{};return UV.addPairToJSMap(q,$,this)}toString(_,q,$){return _?.doc?zV.stringifyPair(this,_,q,$):JSON.stringify(this)}}YV.Pair=l_;YV.createPair=QV});var h9=M((FV)=>{var p1=g(),M8=x0(),i_=C0();function WV(_,q,$){return(q.inFlow??_.flow?GV:VV)(_,q,$)}function VV({comment:_,items:q},$,{blockItemPrefix:Z,flowChars:X,itemIndent:z,onChompKeep:U,onComment:Q}){let{indent:Y,options:{commentString:J}}=$,W=Object.assign({},$,{indent:z,type:null}),V=!1,B=[];for(let L=0;L<q.length;++L){let G=q[L],H=null;if(p1.isNode(G)){if(!V&&G.spaceBefore)B.push("");if(c_($,B,G.commentBefore,V),G.comment)H=G.comment}else if(p1.isPair(G)){let O=p1.isNode(G.key)?G.key:null;if(O){if(!V&&O.spaceBefore)B.push("");c_($,B,O.commentBefore,V)}}V=!1;let S=M8.stringify(G,W,()=>H=null,()=>V=!0);if(H)S+=i_.lineComment(S,z,J(H));if(V&&H)V=!1;B.push(Z+S)}let F;if(B.length===0)F=X.start+X.end;else{F=B[0];for(let L=1;L<B.length;++L){let G=B[L];F+=G?`
92
+ ${Y}${G}`:`
93
+ `}}if(_){if(F+=`
94
+ `+i_.indentComment(J(_),Y),Q)Q()}else if(V&&U)U();return F}function GV({items:_},q,{flowChars:$,itemIndent:Z}){let{indent:X,indentStep:z,flowCollectionPadding:U,options:{commentString:Q}}=q;Z+=z;let Y=Object.assign({},q,{indent:Z,inFlow:!0,type:null}),J=!1,W=0,V=[];for(let L=0;L<_.length;++L){let G=_[L],H=null;if(p1.isNode(G)){if(G.spaceBefore)V.push("");if(c_(q,V,G.commentBefore,!1),G.comment)H=G.comment}else if(p1.isPair(G)){let O=p1.isNode(G.key)?G.key:null;if(O){if(O.spaceBefore)V.push("");if(c_(q,V,O.commentBefore,!1),O.comment)J=!0}let A=p1.isNode(G.value)?G.value:null;if(A){if(A.comment)H=A.comment;if(A.commentBefore)J=!0}else if(G.value==null&&O?.comment)H=O.comment}if(H)J=!0;let S=M8.stringify(G,Y,()=>H=null);if(L<_.length-1)S+=",";if(H)S+=i_.lineComment(S,Z,Q(H));if(!J&&(V.length>W||S.includes(`
95
+ `)))J=!0;V.push(S),W=V.length}let{start:B,end:F}=$;if(V.length===0)return B+F;else{if(!J){let L=V.reduce((G,H)=>G+H.length+2,2);J=q.options.lineWidth>0&&L>q.options.lineWidth}if(J){let L=B;for(let G of V)L+=G?`
96
+ ${z}${X}${G}`:`
97
97
  `;return`${L}
98
- ${X}${G}`}else return`${J}${U}${V.join(" ")}${U}${G}`}}function k_({indent:_,options:{commentString:q}},$,Z,X){if(Z&&X)Z=Z.replace(/^\n+/,"");if(Z){let z=g_.indentComment(q(Z),_);$.push(z.trimStart())}}nW.stringifyCollection=pW});var E1=H((qV)=>{var oW=A9(),tW=j9(),eW=O_(),f1=g(),v_=N1(),_V=r();function y0(_,q){let $=f1.isScalar(q)?q.value:q;for(let Z of _)if(f1.isPair(Z)){if(Z.key===q||Z.key===$)return Z;if(f1.isScalar(Z.key)&&Z.key.value===$)return Z}return}class Y8 extends eW.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(_){super(f1.MAP,_);this.items=[]}static from(_,q,$){let{keepUndefined:Z,replacer:X}=$,z=new this(_),U=(Q,Y)=>{if(typeof X==="function")Y=X.call(q,Q,Y);else if(Array.isArray(X)&&!X.includes(Q))return;if(Y!==void 0||Z)z.items.push(v_.createPair(Q,Y,$))};if(q instanceof Map)for(let[Q,Y]of q)U(Q,Y);else if(q&&typeof q==="object")for(let Q of Object.keys(q))U(Q,q[Q]);if(typeof _.sortMapEntries==="function")z.items.sort(_.sortMapEntries);return z}add(_,q){let $;if(f1.isPair(_))$=_;else if(!_||typeof _!=="object"||!("key"in _))$=new v_.Pair(_,_?.value);else $=new v_.Pair(_.key,_.value);let Z=y0(this.items,$.key),X=this.schema?.sortMapEntries;if(Z){if(!q)throw Error(`Key ${$.key} already set`);if(f1.isScalar(Z.value)&&_V.isScalarValue($.value))Z.value.value=$.value;else Z.value=$.value}else if(X){let z=this.items.findIndex((U)=>X($,U)<0);if(z===-1)this.items.push($);else this.items.splice(z,0,$)}else this.items.push($)}delete(_){let q=y0(this.items,_);if(!q)return!1;return this.items.splice(this.items.indexOf(q),1).length>0}get(_,q){let Z=y0(this.items,_)?.value;return(!q&&f1.isScalar(Z)?Z.value:Z)??void 0}has(_){return!!y0(this.items,_)}set(_,q){this.add(new v_.Pair(_,q),!0)}toJSON(_,q,$){let Z=$?new $:q?.mapAsMap?new Map:{};if(q?.onCreate)q.onCreate(Z);for(let X of this.items)tW.addPairToJSMap(q,Z,X);return Z}toString(_,q,$){if(!_)return JSON.stringify(this);for(let Z of this.items)if(!f1.isPair(Z))throw Error(`Map items must all be pairs; found ${JSON.stringify(Z)} instead`);if(!_.allNullValues&&this.hasAllNullValues(!1))_=Object.assign({},_,{allNullValues:!0});return oW.stringifyCollection(this,_,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:_.indent||"",onChompKeep:$,onComment:q})}}qV.YAMLMap=Y8;qV.findPair=y0});var z0=H((UV)=>{var XV=g(),B8=E1(),zV={collection:"map",default:!0,nodeClass:B8.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(_,q){if(!XV.isMap(_))q("Expected a mapping for this tag");return _},createNode:(_,q,$)=>B8.YAMLMap.from(_,q,$)};UV.map=zV});var C1=H((FV)=>{var YV=A0(),BV=A9(),JV=O_(),m_=g(),WV=r(),VV=j1();class J8 extends JV.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(_){super(m_.SEQ,_);this.items=[]}add(_){this.items.push(_)}delete(_){let q=u_(_);if(typeof q!=="number")return!1;return this.items.splice(q,1).length>0}get(_,q){let $=u_(_);if(typeof $!=="number")return;let Z=this.items[$];return!q&&m_.isScalar(Z)?Z.value:Z}has(_){let q=u_(_);return typeof q==="number"&&q<this.items.length}set(_,q){let $=u_(_);if(typeof $!=="number")throw Error(`Expected a valid index, not ${_}.`);let Z=this.items[$];if(m_.isScalar(Z)&&WV.isScalarValue(q))Z.value=q;else this.items[$]=q}toJSON(_,q){let $=[];if(q?.onCreate)q.onCreate($);let Z=0;for(let X of this.items)$.push(VV.toJS(X,String(Z++),q));return $}toString(_,q,$){if(!_)return JSON.stringify(this);return BV.stringifyCollection(this,_,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(_.indent||"")+" ",onChompKeep:$,onComment:q})}static from(_,q,$){let{replacer:Z}=$,X=new this(_);if(q&&Symbol.iterator in Object(q)){let z=0;for(let U of q){if(typeof Z==="function"){let Q=q instanceof Set?U:String(z++);U=Z.call(q,Q,U)}X.items.push(YV.createNode(U,void 0,$))}}return X}}function u_(_){let q=m_.isScalar(_)?_.value:_;if(q&&typeof q==="string")q=Number(q);return typeof q==="number"&&Number.isInteger(q)&&q>=0?q:null}FV.YAMLSeq=J8});var U0=H((MV)=>{var LV=g(),W8=C1(),HV={collection:"seq",default:!0,nodeClass:W8.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(_,q){if(!LV.isSeq(_))q("Expected a sequence for this tag");return _},createNode:(_,q,$)=>W8.YAMLSeq.from(_,q,$)};MV.seq=HV});var h0=H((DV)=>{var TV=f0(),KV={identify:(_)=>typeof _==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(_)=>_,stringify(_,q,$,Z){return q=Object.assign({actualString:!0},q),TV.stringifyString(_,q,$,Z)}};DV.string=KV});var d_=H((SV)=>{var V8=r(),F8={identify:(_)=>_==null,createNode:()=>new V8.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new V8.Scalar(null),stringify:({source:_},q)=>typeof _==="string"&&F8.test.test(_)?_:q.options.nullStr};SV.nullTag=F8});var O9=H((jV)=>{var PV=r(),G8={identify:(_)=>typeof _==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(_)=>new PV.Scalar(_[0]==="t"||_[0]==="T"),stringify({source:_,value:q},$){if(_&&G8.test.test(_)){let Z=_[0]==="t"||_[0]==="T";if(q===Z)return _}return q?$.options.trueStr:$.options.falseStr}};jV.boolTag=G8});var Q0=H((NV)=>{function OV({format:_,minFractionDigits:q,tag:$,value:Z}){if(typeof Z==="bigint")return String(Z);let X=typeof Z==="number"?Z:Number(Z);if(!isFinite(X))return isNaN(X)?".nan":X<0?"-.inf":".inf";let z=JSON.stringify(Z);if(!_&&q&&(!$||$==="tag:yaml.org,2002:float")&&/^\d/.test(z)){let U=z.indexOf(".");if(U<0)U=z.length,z+=".";let Q=q-(z.length-U-1);while(Q-- >0)z+="0"}return z}NV.stringifyNumber=OV});var f9=H((hV)=>{var EV=r(),N9=Q0(),CV={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(_)=>_.slice(-3).toLowerCase()==="nan"?NaN:_[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:N9.stringifyNumber},bV={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(_)=>parseFloat(_),stringify(_){let q=Number(_.value);return isFinite(q)?q.toExponential():N9.stringifyNumber(_)}},yV={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(_){let q=new EV.Scalar(parseFloat(_)),$=_.indexOf(".");if($!==-1&&_[_.length-1]==="0")q.minFractionDigits=_.length-$-1;return q},stringify:N9.stringifyNumber};hV.float=yV;hV.floatExp=bV;hV.floatNaN=CV});var C9=H((dV)=>{var L8=Q0(),l_=(_)=>typeof _==="bigint"||Number.isInteger(_),E9=(_,q,$,{intAsBigInt:Z})=>Z?BigInt(_):parseInt(_.substring(q),$);function H8(_,q,$){let{value:Z}=_;if(l_(Z)&&Z>=0)return $+Z.toString(q);return L8.stringifyNumber(_)}var vV={identify:(_)=>l_(_)&&_>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(_,q,$)=>E9(_,2,8,$),stringify:(_)=>H8(_,8,"0o")},uV={identify:l_,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(_,q,$)=>E9(_,0,10,$),stringify:L8.stringifyNumber},mV={identify:(_)=>l_(_)&&_>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(_,q,$)=>E9(_,2,16,$),stringify:(_)=>H8(_,16,"0x")};dV.int=uV;dV.intHex=mV;dV.intOct=vV});var M8=H((tV)=>{var pV=z0(),rV=d_(),sV=U0(),nV=h0(),aV=O9(),b9=f9(),y9=C9(),oV=[pV.map,sV.seq,nV.string,rV.nullTag,aV.boolTag,y9.intOct,y9.int,y9.intHex,b9.floatNaN,b9.floatExp,b9.float];tV.schema=oV});var T8=H((UF)=>{var _F=r(),qF=z0(),$F=U0();function I8(_){return typeof _==="bigint"||Number.isInteger(_)}var i_=({value:_})=>JSON.stringify(_),ZF=[{identify:(_)=>typeof _==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(_)=>_,stringify:i_},{identify:(_)=>_==null,createNode:()=>new _F.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:i_},{identify:(_)=>typeof _==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(_)=>_==="true",stringify:i_},{identify:I8,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(_,q,{intAsBigInt:$})=>$?BigInt(_):parseInt(_,10),stringify:({value:_})=>I8(_)?_.toString():JSON.stringify(_)},{identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(_)=>parseFloat(_),stringify:i_}],XF={default:!0,tag:"",test:/^/,resolve(_,q){return q(`Unresolved plain scalar ${JSON.stringify(_)}`),_}},zF=[qF.map,$F.seq].concat(ZF,XF);UF.schema=zF});var x9=H((JF)=>{var x0=x("buffer"),h9=r(),YF=f0(),BF={identify:(_)=>_ instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(_,q){if(typeof x0.Buffer==="function")return x0.Buffer.from(_,"base64");else if(typeof atob==="function"){let $=atob(_.replace(/[\n\r]/g,"")),Z=new Uint8Array($.length);for(let X=0;X<$.length;++X)Z[X]=$.charCodeAt(X);return Z}else return q("This environment does not support reading binary tags; either Buffer or atob is required"),_},stringify({comment:_,type:q,value:$},Z,X,z){if(!$)return"";let U=$,Q;if(typeof x0.Buffer==="function")Q=U instanceof x0.Buffer?U.toString("base64"):x0.Buffer.from(U.buffer).toString("base64");else if(typeof btoa==="function"){let Y="";for(let B=0;B<U.length;++B)Y+=String.fromCharCode(U[B]);Q=btoa(Y)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(q??(q=h9.Scalar.BLOCK_LITERAL),q!==h9.Scalar.QUOTE_DOUBLE){let Y=Math.max(Z.options.lineWidth-Z.indent.length,Z.options.minContentWidth),B=Math.ceil(Q.length/Y),W=Array(B);for(let V=0,J=0;V<B;++V,J+=Y)W[V]=Q.substr(J,Y);Q=W.join(q===h9.Scalar.BLOCK_LITERAL?`
99
- `:" ")}return YF.stringifyString({comment:_,type:q,value:Q},Z,X,z)}};JF.binary=BF});var p_=H((LF)=>{var c_=g(),g9=N1(),VF=r(),FF=C1();function K8(_,q){if(c_.isSeq(_))for(let $=0;$<_.items.length;++$){let Z=_.items[$];if(c_.isPair(Z))continue;else if(c_.isMap(Z)){if(Z.items.length>1)q("Each pair must have its own sequence indicator");let X=Z.items[0]||new g9.Pair(new VF.Scalar(null));if(Z.commentBefore)X.key.commentBefore=X.key.commentBefore?`${Z.commentBefore}
98
+ ${X}${F}`}else return`${B}${U}${V.join(" ")}${U}${F}`}}function c_({indent:_,options:{commentString:q}},$,Z,X){if(Z&&X)Z=Z.replace(/^\n+/,"");if(Z){let z=i_.indentComment(q(Z),_);$.push(z.trimStart())}}FV.stringifyCollection=WV});var y1=M((KV)=>{var MV=h9(),HV=x9(),IV=x_(),b1=g(),p_=C1(),TV=s();function g0(_,q){let $=b1.isScalar(q)?q.value:q;for(let Z of _)if(b1.isPair(Z)){if(Z.key===q||Z.key===$)return Z;if(b1.isScalar(Z.key)&&Z.key.value===$)return Z}return}class H8 extends IV.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(_){super(b1.MAP,_);this.items=[]}static from(_,q,$){let{keepUndefined:Z,replacer:X}=$,z=new this(_),U=(Q,Y)=>{if(typeof X==="function")Y=X.call(q,Q,Y);else if(Array.isArray(X)&&!X.includes(Q))return;if(Y!==void 0||Z)z.items.push(p_.createPair(Q,Y,$))};if(q instanceof Map)for(let[Q,Y]of q)U(Q,Y);else if(q&&typeof q==="object")for(let Q of Object.keys(q))U(Q,q[Q]);if(typeof _.sortMapEntries==="function")z.items.sort(_.sortMapEntries);return z}add(_,q){let $;if(b1.isPair(_))$=_;else if(!_||typeof _!=="object"||!("key"in _))$=new p_.Pair(_,_?.value);else $=new p_.Pair(_.key,_.value);let Z=g0(this.items,$.key),X=this.schema?.sortMapEntries;if(Z){if(!q)throw Error(`Key ${$.key} already set`);if(b1.isScalar(Z.value)&&TV.isScalarValue($.value))Z.value.value=$.value;else Z.value=$.value}else if(X){let z=this.items.findIndex((U)=>X($,U)<0);if(z===-1)this.items.push($);else this.items.splice(z,0,$)}else this.items.push($)}delete(_){let q=g0(this.items,_);if(!q)return!1;return this.items.splice(this.items.indexOf(q),1).length>0}get(_,q){let Z=g0(this.items,_)?.value;return(!q&&b1.isScalar(Z)?Z.value:Z)??void 0}has(_){return!!g0(this.items,_)}set(_,q){this.add(new p_.Pair(_,q),!0)}toJSON(_,q,$){let Z=$?new $:q?.mapAsMap?new Map:{};if(q?.onCreate)q.onCreate(Z);for(let X of this.items)HV.addPairToJSMap(q,Z,X);return Z}toString(_,q,$){if(!_)return JSON.stringify(this);for(let Z of this.items)if(!b1.isPair(Z))throw Error(`Map items must all be pairs; found ${JSON.stringify(Z)} instead`);if(!_.allNullValues&&this.hasAllNullValues(!1))_=Object.assign({},_,{allNullValues:!0});return MV.stringifyCollection(this,_,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:_.indent||"",onChompKeep:$,onComment:q})}}KV.YAMLMap=H8;KV.findPair=g0});var Y0=M((jV)=>{var SV=g(),I8=y1(),RV={collection:"map",default:!0,nodeClass:I8.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(_,q){if(!SV.isMap(_))q("Expected a mapping for this tag");return _},createNode:(_,q,$)=>I8.YAMLMap.from(_,q,$)};jV.map=RV});var x1=M((CV)=>{var AV=E0(),OV=h9(),fV=x_(),s_=g(),NV=s(),EV=f1();class T8 extends fV.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(_){super(s_.SEQ,_);this.items=[]}add(_){this.items.push(_)}delete(_){let q=r_(_);if(typeof q!=="number")return!1;return this.items.splice(q,1).length>0}get(_,q){let $=r_(_);if(typeof $!=="number")return;let Z=this.items[$];return!q&&s_.isScalar(Z)?Z.value:Z}has(_){let q=r_(_);return typeof q==="number"&&q<this.items.length}set(_,q){let $=r_(_);if(typeof $!=="number")throw Error(`Expected a valid index, not ${_}.`);let Z=this.items[$];if(s_.isScalar(Z)&&NV.isScalarValue(q))Z.value=q;else this.items[$]=q}toJSON(_,q){let $=[];if(q?.onCreate)q.onCreate($);let Z=0;for(let X of this.items)$.push(EV.toJS(X,String(Z++),q));return $}toString(_,q,$){if(!_)return JSON.stringify(this);return OV.stringifyCollection(this,_,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(_.indent||"")+" ",onChompKeep:$,onComment:q})}static from(_,q,$){let{replacer:Z}=$,X=new this(_);if(q&&Symbol.iterator in Object(q)){let z=0;for(let U of q){if(typeof Z==="function"){let Q=q instanceof Set?U:String(z++);U=Z.call(q,Q,U)}X.items.push(AV.createNode(U,void 0,$))}}return X}}function r_(_){let q=s_.isScalar(_)?_.value:_;if(q&&typeof q==="string")q=Number(q);return typeof q==="number"&&Number.isInteger(q)&&q>=0?q:null}CV.YAMLSeq=T8});var J0=M((hV)=>{var yV=g(),K8=x1(),xV={collection:"seq",default:!0,nodeClass:K8.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(_,q){if(!yV.isSeq(_))q("Expected a sequence for this tag");return _},createNode:(_,q,$)=>K8.YAMLSeq.from(_,q,$)};hV.seq=xV});var k0=M((uV)=>{var gV=y0(),kV={identify:(_)=>typeof _==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(_)=>_,stringify(_,q,$,Z){return q=Object.assign({actualString:!0},q),gV.stringifyString(_,q,$,Z)}};uV.string=kV});var n_=M((dV)=>{var D8=s(),w8={identify:(_)=>_==null,createNode:()=>new D8.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new D8.Scalar(null),stringify:({source:_},q)=>typeof _==="string"&&w8.test.test(_)?_:q.options.nullStr};dV.nullTag=w8});var v9=M((cV)=>{var iV=s(),S8={identify:(_)=>typeof _==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:(_)=>new iV.Scalar(_[0]==="t"||_[0]==="T"),stringify({source:_,value:q},$){if(_&&S8.test.test(_)){let Z=_[0]==="t"||_[0]==="T";if(q===Z)return _}return q?$.options.trueStr:$.options.falseStr}};cV.boolTag=S8});var B0=M((sV)=>{function rV({format:_,minFractionDigits:q,tag:$,value:Z}){if(typeof Z==="bigint")return String(Z);let X=typeof Z==="number"?Z:Number(Z);if(!isFinite(X))return isNaN(X)?".nan":X<0?"-.inf":".inf";let z=Object.is(Z,-0)?"-0":JSON.stringify(Z);if(!_&&q&&(!$||$==="tag:yaml.org,2002:float")&&/^\d/.test(z)){let U=z.indexOf(".");if(U<0)U=z.length,z+=".";let Q=q-(z.length-U-1);while(Q-- >0)z+="0"}return z}sV.stringifyNumber=rV});var k9=M((_G)=>{var aV=s(),g9=B0(),oV={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(_)=>_.slice(-3).toLowerCase()==="nan"?NaN:_[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:g9.stringifyNumber},tV={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:(_)=>parseFloat(_),stringify(_){let q=Number(_.value);return isFinite(q)?q.toExponential():g9.stringifyNumber(_)}},eV={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(_){let q=new aV.Scalar(parseFloat(_)),$=_.indexOf(".");if($!==-1&&_[_.length-1]==="0")q.minFractionDigits=_.length-$-1;return q},stringify:g9.stringifyNumber};_G.float=eV;_G.floatExp=tV;_G.floatNaN=oV});var m9=M((QG)=>{var R8=B0(),a_=(_)=>typeof _==="bigint"||Number.isInteger(_),u9=(_,q,$,{intAsBigInt:Z})=>Z?BigInt(_):parseInt(_.substring(q),$);function j8(_,q,$){let{value:Z}=_;if(a_(Z)&&Z>=0)return $+Z.toString(q);return R8.stringifyNumber(_)}var XG={identify:(_)=>a_(_)&&_>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(_,q,$)=>u9(_,2,8,$),stringify:(_)=>j8(_,8,"0o")},zG={identify:a_,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(_,q,$)=>u9(_,0,10,$),stringify:R8.stringifyNumber},UG={identify:(_)=>a_(_)&&_>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(_,q,$)=>u9(_,2,16,$),stringify:(_)=>j8(_,16,"0x")};QG.int=zG;QG.intHex=UG;QG.intOct=XG});var P8=M((HG)=>{var WG=Y0(),VG=n_(),GG=J0(),FG=k0(),LG=v9(),d9=k9(),l9=m9(),MG=[WG.map,GG.seq,FG.string,VG.nullTag,LG.boolTag,l9.intOct,l9.int,l9.intHex,d9.floatNaN,d9.floatExp,d9.float];HG.schema=MG});var O8=M((jG)=>{var TG=s(),KG=Y0(),DG=J0();function A8(_){return typeof _==="bigint"||Number.isInteger(_)}var o_=({value:_})=>JSON.stringify(_),wG=[{identify:(_)=>typeof _==="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:(_)=>_,stringify:o_},{identify:(_)=>_==null,createNode:()=>new TG.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:o_},{identify:(_)=>typeof _==="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:(_)=>_==="true",stringify:o_},{identify:A8,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(_,q,{intAsBigInt:$})=>$?BigInt(_):parseInt(_,10),stringify:({value:_})=>A8(_)?_.toString():JSON.stringify(_)},{identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:(_)=>parseFloat(_),stringify:o_}],SG={default:!0,tag:"",test:/^/,resolve(_,q){return q(`Unresolved plain scalar ${JSON.stringify(_)}`),_}},RG=[KG.map,DG.seq].concat(wG,SG);jG.schema=RG});var c9=M((fG)=>{var u0=v("buffer"),i9=s(),AG=y0(),OG={identify:(_)=>_ instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(_,q){if(typeof u0.Buffer==="function")return u0.Buffer.from(_,"base64");else if(typeof atob==="function"){let $=atob(_.replace(/[\n\r]/g,"")),Z=new Uint8Array($.length);for(let X=0;X<$.length;++X)Z[X]=$.charCodeAt(X);return Z}else return q("This environment does not support reading binary tags; either Buffer or atob is required"),_},stringify({comment:_,type:q,value:$},Z,X,z){if(!$)return"";let U=$,Q;if(typeof u0.Buffer==="function")Q=U instanceof u0.Buffer?U.toString("base64"):u0.Buffer.from(U.buffer).toString("base64");else if(typeof btoa==="function"){let Y="";for(let J=0;J<U.length;++J)Y+=String.fromCharCode(U[J]);Q=btoa(Y)}else throw Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(q??(q=i9.Scalar.BLOCK_LITERAL),q!==i9.Scalar.QUOTE_DOUBLE){let Y=Math.max(Z.options.lineWidth-Z.indent.length,Z.options.minContentWidth),J=Math.ceil(Q.length/Y),W=Array(J);for(let V=0,B=0;V<J;++V,B+=Y)W[V]=Q.substr(B,Y);Q=W.join(q===i9.Scalar.BLOCK_LITERAL?`
99
+ `:" ")}return AG.stringifyString({comment:_,type:q,value:Q},Z,X,z)}};fG.binary=OG});var e_=M((yG)=>{var t_=g(),p9=C1(),EG=s(),CG=x1();function f8(_,q){if(t_.isSeq(_))for(let $=0;$<_.items.length;++$){let Z=_.items[$];if(t_.isPair(Z))continue;else if(t_.isMap(Z)){if(Z.items.length>1)q("Each pair must have its own sequence indicator");let X=Z.items[0]||new p9.Pair(new EG.Scalar(null));if(Z.commentBefore)X.key.commentBefore=X.key.commentBefore?`${Z.commentBefore}
100
100
  ${X.key.commentBefore}`:Z.commentBefore;if(Z.comment){let z=X.value??X.key;z.comment=z.comment?`${Z.comment}
101
- ${z.comment}`:Z.comment}Z=X}_.items[$]=c_.isPair(Z)?Z:new g9.Pair(Z)}else q("Expected a sequence for this tag");return _}function D8(_,q,$){let{replacer:Z}=$,X=new FF.YAMLSeq(_);X.tag="tag:yaml.org,2002:pairs";let z=0;if(q&&Symbol.iterator in Object(q))for(let U of q){if(typeof Z==="function")U=Z.call(q,String(z++),U);let Q,Y;if(Array.isArray(U))if(U.length===2)Q=U[0],Y=U[1];else throw TypeError(`Expected [key, value] tuple: ${U}`);else if(U&&U instanceof Object){let B=Object.keys(U);if(B.length===1)Q=B[0],Y=U[Q];else throw TypeError(`Expected tuple with one key, not ${B.length} keys`)}else Q=U;X.items.push(g9.createPair(Q,Y,$))}return X}var GF={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:K8,createNode:D8};LF.createPairs=D8;LF.pairs=GF;LF.resolvePairs=K8});var v9=H((DF)=>{var w8=g(),k9=j1(),g0=E1(),TF=C1(),S8=p_();class d1 extends TF.YAMLSeq{constructor(){super();this.add=g0.YAMLMap.prototype.add.bind(this),this.delete=g0.YAMLMap.prototype.delete.bind(this),this.get=g0.YAMLMap.prototype.get.bind(this),this.has=g0.YAMLMap.prototype.has.bind(this),this.set=g0.YAMLMap.prototype.set.bind(this),this.tag=d1.tag}toJSON(_,q){if(!q)return super.toJSON(_);let $=new Map;if(q?.onCreate)q.onCreate($);for(let Z of this.items){let X,z;if(w8.isPair(Z))X=k9.toJS(Z.key,"",q),z=k9.toJS(Z.value,X,q);else X=k9.toJS(Z,"",q);if($.has(X))throw Error("Ordered maps must not include duplicate keys");$.set(X,z)}return $}static from(_,q,$){let Z=S8.createPairs(_,q,$),X=new this;return X.items=Z.items,X}}d1.tag="tag:yaml.org,2002:omap";var KF={collection:"seq",identify:(_)=>_ instanceof Map,nodeClass:d1,default:!1,tag:"tag:yaml.org,2002:omap",resolve(_,q){let $=S8.resolvePairs(_,q),Z=[];for(let{key:X}of $.items)if(w8.isScalar(X))if(Z.includes(X.value))q(`Ordered maps must not include duplicate keys: ${X.value}`);else Z.push(X.value);return Object.assign(new d1,$)},createNode:(_,q,$)=>d1.from(_,q,$)};DF.YAMLOMap=d1;DF.omap=KF});var O8=H((RF)=>{var R8=r();function P8({value:_,source:q},$){if(q&&(_?j8:A8).test.test(q))return q;return _?$.options.trueStr:$.options.falseStr}var j8={identify:(_)=>_===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new R8.Scalar(!0),stringify:P8},A8={identify:(_)=>_===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new R8.Scalar(!1),stringify:P8};RF.falseTag=A8;RF.trueTag=j8});var N8=H((EF)=>{var AF=r(),u9=Q0(),OF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(_)=>_.slice(-3).toLowerCase()==="nan"?NaN:_[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:u9.stringifyNumber},NF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(_)=>parseFloat(_.replace(/_/g,"")),stringify(_){let q=Number(_.value);return isFinite(q)?q.toExponential():u9.stringifyNumber(_)}},fF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(_){let q=new AF.Scalar(parseFloat(_.replace(/_/g,""))),$=_.indexOf(".");if($!==-1){let Z=_.substring($+1).replace(/_/g,"");if(Z[Z.length-1]==="0")q.minFractionDigits=Z.length}return q},stringify:u9.stringifyNumber};EF.float=fF;EF.floatExp=NF;EF.floatNaN=OF});var E8=H((vF)=>{var f8=Q0(),k0=(_)=>typeof _==="bigint"||Number.isInteger(_);function r_(_,q,$,{intAsBigInt:Z}){let X=_[0];if(X==="-"||X==="+")q+=1;if(_=_.substring(q).replace(/_/g,""),Z){switch($){case 2:_=`0b${_}`;break;case 8:_=`0o${_}`;break;case 16:_=`0x${_}`;break}let U=BigInt(_);return X==="-"?BigInt(-1)*U:U}let z=parseInt(_,$);return X==="-"?-1*z:z}function m9(_,q,$){let{value:Z}=_;if(k0(Z)){let X=Z.toString(q);return Z<0?"-"+$+X.substr(1):$+X}return f8.stringifyNumber(_)}var hF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(_,q,$)=>r_(_,2,2,$),stringify:(_)=>m9(_,2,"0b")},xF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(_,q,$)=>r_(_,1,8,$),stringify:(_)=>m9(_,8,"0")},gF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(_,q,$)=>r_(_,0,10,$),stringify:f8.stringifyNumber},kF={identify:k0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(_,q,$)=>r_(_,2,16,$),stringify:(_)=>m9(_,16,"0x")};vF.int=gF;vF.intBin=hF;vF.intHex=kF;vF.intOct=xF});var d9=H((cF)=>{var a_=g(),s_=N1(),n_=E1();class l1 extends n_.YAMLMap{constructor(_){super(_);this.tag=l1.tag}add(_){let q;if(a_.isPair(_))q=_;else if(_&&typeof _==="object"&&"key"in _&&"value"in _&&_.value===null)q=new s_.Pair(_.key,null);else q=new s_.Pair(_,null);if(!n_.findPair(this.items,q.key))this.items.push(q)}get(_,q){let $=n_.findPair(this.items,_);return!q&&a_.isPair($)?a_.isScalar($.key)?$.key.value:$.key:$}set(_,q){if(typeof q!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof q}`);let $=n_.findPair(this.items,_);if($&&!q)this.items.splice(this.items.indexOf($),1);else if(!$&&q)this.items.push(new s_.Pair(_))}toJSON(_,q){return super.toJSON(_,q,Set)}toString(_,q,$){if(!_)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},_,{allNullValues:!0}),q,$);else throw Error("Set items must all have null values")}static from(_,q,$){let{replacer:Z}=$,X=new this(_);if(q&&Symbol.iterator in Object(q))for(let z of q){if(typeof Z==="function")z=Z.call(q,z,z);X.items.push(s_.createPair(z,null,$))}return X}}l1.tag="tag:yaml.org,2002:set";var iF={collection:"map",identify:(_)=>_ instanceof Set,nodeClass:l1,default:!1,tag:"tag:yaml.org,2002:set",createNode:(_,q,$)=>l1.from(_,q,$),resolve(_,q){if(a_.isMap(_))if(_.hasAllNullValues(!0))return Object.assign(new l1,_);else q("Set items must all have null values");else q("Expected a mapping for this tag");return _}};cF.YAMLSet=l1;cF.set=iF});var i9=H((oF)=>{var sF=Q0();function l9(_,q){let $=_[0],Z=$==="-"||$==="+"?_.substring(1):_,X=(U)=>q?BigInt(U):Number(U),z=Z.replace(/_/g,"").split(":").reduce((U,Q)=>U*X(60)+X(Q),X(0));return $==="-"?X(-1)*z:z}function C8(_){let{value:q}=_,$=(U)=>U;if(typeof q==="bigint")$=(U)=>BigInt(U);else if(isNaN(q)||!isFinite(q))return sF.stringifyNumber(_);let Z="";if(q<0)Z="-",q*=$(-1);let X=$(60),z=[q%X];if(q<60)z.unshift(0);else if(q=(q-z[0])/X,z.unshift(q%X),q>=60)q=(q-z[0])/X,z.unshift(q);return Z+z.map((U)=>String(U).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var nF={identify:(_)=>typeof _==="bigint"||Number.isInteger(_),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(_,q,{intAsBigInt:$})=>l9(_,$),stringify:C8},aF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(_)=>l9(_,!1),stringify:C8},b8={identify:(_)=>_ instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(_){let q=_.match(b8.test);if(!q)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,$,Z,X,z,U,Q]=q.map(Number),Y=q[7]?Number((q[7]+"00").substr(1,3)):0,B=Date.UTC($,Z-1,X,z||0,U||0,Q||0,Y),W=q[8];if(W&&W!=="Z"){let V=l9(W,!1);if(Math.abs(V)<30)V*=60;B-=60000*V}return new Date(B)},stringify:({value:_})=>_?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};oF.floatTime=aF;oF.intTime=nF;oF.timestamp=b8});var h8=H((WG)=>{var qG=z0(),$G=d_(),ZG=U0(),XG=h0(),zG=x9(),y8=O8(),c9=N8(),o_=E8(),UG=y_(),QG=v9(),YG=p_(),BG=d9(),p9=i9(),JG=[qG.map,ZG.seq,XG.string,$G.nullTag,y8.trueTag,y8.falseTag,o_.intBin,o_.intOct,o_.int,o_.intHex,c9.floatNaN,c9.floatExp,c9.float,zG.binary,UG.merge,QG.omap,YG.pairs,BG.set,p9.intTime,p9.floatTime,p9.timestamp];WG.schema=JG});var c8=H((KG)=>{var v8=z0(),FG=d_(),u8=U0(),GG=h0(),LG=O9(),r9=f9(),s9=C9(),HG=M8(),MG=T8(),m8=x9(),v0=y_(),d8=v9(),l8=p_(),x8=h8(),i8=d9(),t_=i9(),g8=new Map([["core",HG.schema],["failsafe",[v8.map,u8.seq,GG.string]],["json",MG.schema],["yaml11",x8.schema],["yaml-1.1",x8.schema]]),k8={binary:m8.binary,bool:LG.boolTag,float:r9.float,floatExp:r9.floatExp,floatNaN:r9.floatNaN,floatTime:t_.floatTime,int:s9.int,intHex:s9.intHex,intOct:s9.intOct,intTime:t_.intTime,map:v8.map,merge:v0.merge,null:FG.nullTag,omap:d8.omap,pairs:l8.pairs,seq:u8.seq,set:i8.set,timestamp:t_.timestamp},IG={"tag:yaml.org,2002:binary":m8.binary,"tag:yaml.org,2002:merge":v0.merge,"tag:yaml.org,2002:omap":d8.omap,"tag:yaml.org,2002:pairs":l8.pairs,"tag:yaml.org,2002:set":i8.set,"tag:yaml.org,2002:timestamp":t_.timestamp};function TG(_,q,$){let Z=g8.get(q);if(Z&&!_)return $&&!Z.includes(v0.merge)?Z.concat(v0.merge):Z.slice();let X=Z;if(!X)if(Array.isArray(_))X=[];else{let z=Array.from(g8.keys()).filter((U)=>U!=="yaml11").map((U)=>JSON.stringify(U)).join(", ");throw Error(`Unknown schema "${q}"; use one of ${z} or define customTags array`)}if(Array.isArray(_))for(let z of _)X=X.concat(z);else if(typeof _==="function")X=_(X.slice());if($)X=X.concat(v0.merge);return X.reduce((z,U)=>{let Q=typeof U==="string"?k8[U]:U;if(!Q){let Y=JSON.stringify(U),B=Object.keys(k8).map((W)=>JSON.stringify(W)).join(", ");throw Error(`Unknown custom tag ${Y}; use one of ${B}`)}if(!z.includes(Q))z.push(Q);return z},[])}KG.coreKnownTags=IG;KG.getTags=TG});var o9=H((AG)=>{var n9=g(),SG=z0(),RG=U0(),PG=h0(),e_=c8(),jG=(_,q)=>_.key<q.key?-1:_.key>q.key?1:0;class a9{constructor({compat:_,customTags:q,merge:$,resolveKnownTags:Z,schema:X,sortMapEntries:z,toStringDefaults:U}){this.compat=Array.isArray(_)?e_.getTags(_,"compat"):_?e_.getTags(null,_):null,this.name=typeof X==="string"&&X||"core",this.knownTags=Z?e_.coreKnownTags:{},this.tags=e_.getTags(q,this.name,$),this.toStringOptions=U??null,Object.defineProperty(this,n9.MAP,{value:SG.map}),Object.defineProperty(this,n9.SCALAR,{value:PG.string}),Object.defineProperty(this,n9.SEQ,{value:RG.seq}),this.sortMapEntries=typeof z==="function"?z:z===!0?jG:null}clone(){let _=Object.create(a9.prototype,Object.getOwnPropertyDescriptors(this));return _.tags=this.tags.slice(),_}}AG.Schema=a9});var p8=H((EG)=>{var NG=g(),t9=E0(),u0=O0();function fG(_,q){let $=[],Z=q.directives===!0;if(q.directives!==!1&&_.directives){let Y=_.directives.toString(_);if(Y)$.push(Y),Z=!0;else if(_.directives.docStart)Z=!0}if(Z)$.push("---");let X=t9.createStringifyContext(_,q),{commentString:z}=X.options;if(_.commentBefore){if($.length!==1)$.unshift("");let Y=z(_.commentBefore);$.unshift(u0.indentComment(Y,""))}let U=!1,Q=null;if(_.contents){if(NG.isNode(_.contents)){if(_.contents.spaceBefore&&Z)$.push("");if(_.contents.commentBefore){let W=z(_.contents.commentBefore);$.push(u0.indentComment(W,""))}X.forceBlockIndent=!!_.comment,Q=_.contents.comment}let Y=Q?void 0:()=>U=!0,B=t9.stringify(_.contents,X,()=>Q=null,Y);if(Q)B+=u0.lineComment(B,"",z(Q));if((B[0]==="|"||B[0]===">")&&$[$.length-1]==="---")$[$.length-1]=`--- ${B}`;else $.push(B)}else $.push(t9.stringify(_.contents,X));if(_.directives?.docEnd)if(_.comment){let Y=z(_.comment);if(Y.includes(`
102
- `))$.push("..."),$.push(u0.indentComment(Y,""));else $.push(`... ${Y}`)}else $.push("...");else{let Y=_.comment;if(Y&&U)Y=Y.replace(/^\n+/,"");if(Y){if((!U||Q)&&$[$.length-1]!=="")$.push("");$.push(u0.indentComment(z(Y),""))}}return $.join(`
101
+ ${z.comment}`:Z.comment}Z=X}_.items[$]=t_.isPair(Z)?Z:new p9.Pair(Z)}else q("Expected a sequence for this tag");return _}function N8(_,q,$){let{replacer:Z}=$,X=new CG.YAMLSeq(_);X.tag="tag:yaml.org,2002:pairs";let z=0;if(q&&Symbol.iterator in Object(q))for(let U of q){if(typeof Z==="function")U=Z.call(q,String(z++),U);let Q,Y;if(Array.isArray(U))if(U.length===2)Q=U[0],Y=U[1];else throw TypeError(`Expected [key, value] tuple: ${U}`);else if(U&&U instanceof Object){let J=Object.keys(U);if(J.length===1)Q=J[0],Y=U[Q];else throw TypeError(`Expected tuple with one key, not ${J.length} keys`)}else Q=U;X.items.push(p9.createPair(Q,Y,$))}return X}var bG={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:f8,createNode:N8};yG.createPairs=N8;yG.pairs=bG;yG.resolvePairs=f8});var s9=M((uG)=>{var E8=g(),r9=f1(),m0=y1(),gG=x1(),C8=e_();class r1 extends gG.YAMLSeq{constructor(){super();this.add=m0.YAMLMap.prototype.add.bind(this),this.delete=m0.YAMLMap.prototype.delete.bind(this),this.get=m0.YAMLMap.prototype.get.bind(this),this.has=m0.YAMLMap.prototype.has.bind(this),this.set=m0.YAMLMap.prototype.set.bind(this),this.tag=r1.tag}toJSON(_,q){if(!q)return super.toJSON(_);let $=new Map;if(q?.onCreate)q.onCreate($);for(let Z of this.items){let X,z;if(E8.isPair(Z))X=r9.toJS(Z.key,"",q),z=r9.toJS(Z.value,X,q);else X=r9.toJS(Z,"",q);if($.has(X))throw Error("Ordered maps must not include duplicate keys");$.set(X,z)}return $}static from(_,q,$){let Z=C8.createPairs(_,q,$),X=new this;return X.items=Z.items,X}}r1.tag="tag:yaml.org,2002:omap";var kG={collection:"seq",identify:(_)=>_ instanceof Map,nodeClass:r1,default:!1,tag:"tag:yaml.org,2002:omap",resolve(_,q){let $=C8.resolvePairs(_,q),Z=[];for(let{key:X}of $.items)if(E8.isScalar(X))if(Z.includes(X.value))q(`Ordered maps must not include duplicate keys: ${X.value}`);else Z.push(X.value);return Object.assign(new r1,$)},createNode:(_,q,$)=>r1.from(_,q,$)};uG.YAMLOMap=r1;uG.omap=kG});var v8=M((lG)=>{var b8=s();function y8({value:_,source:q},$){if(q&&(_?x8:h8).test.test(q))return q;return _?$.options.trueStr:$.options.falseStr}var x8={identify:(_)=>_===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new b8.Scalar(!0),stringify:y8},h8={identify:(_)=>_===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new b8.Scalar(!1),stringify:y8};lG.falseTag=h8;lG.trueTag=x8});var g8=M((aG)=>{var pG=s(),n9=B0(),rG={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:(_)=>_.slice(-3).toLowerCase()==="nan"?NaN:_[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:n9.stringifyNumber},sG={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:(_)=>parseFloat(_.replace(/_/g,"")),stringify(_){let q=Number(_.value);return isFinite(q)?q.toExponential():n9.stringifyNumber(_)}},nG={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(_){let q=new pG.Scalar(parseFloat(_.replace(/_/g,""))),$=_.indexOf(".");if($!==-1){let Z=_.substring($+1).replace(/_/g,"");if(Z[Z.length-1]==="0")q.minFractionDigits=Z.length}return q},stringify:n9.stringifyNumber};aG.float=nG;aG.floatExp=sG;aG.floatNaN=rG});var u8=M((XF)=>{var k8=B0(),d0=(_)=>typeof _==="bigint"||Number.isInteger(_);function _q(_,q,$,{intAsBigInt:Z}){let X=_[0];if(X==="-"||X==="+")q+=1;if(_=_.substring(q).replace(/_/g,""),Z){switch($){case 2:_=`0b${_}`;break;case 8:_=`0o${_}`;break;case 16:_=`0x${_}`;break}let U=BigInt(_);return X==="-"?BigInt(-1)*U:U}let z=parseInt(_,$);return X==="-"?-1*z:z}function a9(_,q,$){let{value:Z}=_;if(d0(Z)){let X=Z.toString(q);return Z<0?"-"+$+X.substr(1):$+X}return k8.stringifyNumber(_)}var _F={identify:d0,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(_,q,$)=>_q(_,2,2,$),stringify:(_)=>a9(_,2,"0b")},qF={identify:d0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(_,q,$)=>_q(_,1,8,$),stringify:(_)=>a9(_,8,"0")},$F={identify:d0,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(_,q,$)=>_q(_,0,10,$),stringify:k8.stringifyNumber},ZF={identify:d0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(_,q,$)=>_q(_,2,16,$),stringify:(_)=>a9(_,16,"0x")};XF.int=$F;XF.intBin=_F;XF.intHex=ZF;XF.intOct=qF});var o9=M((BF)=>{var Zq=g(),qq=C1(),$q=y1();class s1 extends $q.YAMLMap{constructor(_){super(_);this.tag=s1.tag}add(_){let q;if(Zq.isPair(_))q=_;else if(_&&typeof _==="object"&&"key"in _&&"value"in _&&_.value===null)q=new qq.Pair(_.key,null);else q=new qq.Pair(_,null);if(!$q.findPair(this.items,q.key))this.items.push(q)}get(_,q){let $=$q.findPair(this.items,_);return!q&&Zq.isPair($)?Zq.isScalar($.key)?$.key.value:$.key:$}set(_,q){if(typeof q!=="boolean")throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof q}`);let $=$q.findPair(this.items,_);if($&&!q)this.items.splice(this.items.indexOf($),1);else if(!$&&q)this.items.push(new qq.Pair(_))}toJSON(_,q){return super.toJSON(_,q,Set)}toString(_,q,$){if(!_)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},_,{allNullValues:!0}),q,$);else throw Error("Set items must all have null values")}static from(_,q,$){let{replacer:Z}=$,X=new this(_);if(q&&Symbol.iterator in Object(q))for(let z of q){if(typeof Z==="function")z=Z.call(q,z,z);X.items.push(qq.createPair(z,null,$))}return X}}s1.tag="tag:yaml.org,2002:set";var JF={collection:"map",identify:(_)=>_ instanceof Set,nodeClass:s1,default:!1,tag:"tag:yaml.org,2002:set",createNode:(_,q,$)=>s1.from(_,q,$),resolve(_,q){if(Zq.isMap(_))if(_.hasAllNullValues(!0))return Object.assign(new s1,_);else q("Set items must all have null values");else q("Expected a mapping for this tag");return _}};BF.YAMLSet=s1;BF.set=JF});var e9=M((MF)=>{var GF=B0();function t9(_,q){let $=_[0],Z=$==="-"||$==="+"?_.substring(1):_,X=(U)=>q?BigInt(U):Number(U),z=Z.replace(/_/g,"").split(":").reduce((U,Q)=>U*X(60)+X(Q),X(0));return $==="-"?X(-1)*z:z}function m8(_){let{value:q}=_,$=(U)=>U;if(typeof q==="bigint")$=(U)=>BigInt(U);else if(isNaN(q)||!isFinite(q))return GF.stringifyNumber(_);let Z="";if(q<0)Z="-",q*=$(-1);let X=$(60),z=[q%X];if(q<60)z.unshift(0);else if(q=(q-z[0])/X,z.unshift(q%X),q>=60)q=(q-z[0])/X,z.unshift(q);return Z+z.map((U)=>String(U).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var FF={identify:(_)=>typeof _==="bigint"||Number.isInteger(_),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(_,q,{intAsBigInt:$})=>t9(_,$),stringify:m8},LF={identify:(_)=>typeof _==="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:(_)=>t9(_,!1),stringify:m8},d8={identify:(_)=>_ instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(_){let q=_.match(d8.test);if(!q)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,$,Z,X,z,U,Q]=q.map(Number),Y=q[7]?Number((q[7]+"00").substr(1,3)):0,J=Date.UTC($,Z-1,X,z||0,U||0,Q||0,Y),W=q[8];if(W&&W!=="Z"){let V=t9(W,!1);if(Math.abs(V)<30)V*=60;J-=60000*V}return new Date(J)},stringify:({value:_})=>_?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};MF.floatTime=LF;MF.intTime=FF;MF.timestamp=d8});var i8=M((NF)=>{var KF=Y0(),DF=n_(),wF=J0(),SF=k0(),RF=c9(),l8=v8(),_$=g8(),Xq=u8(),jF=m_(),PF=s9(),AF=e_(),OF=o9(),q$=e9(),fF=[KF.map,wF.seq,SF.string,DF.nullTag,l8.trueTag,l8.falseTag,Xq.intBin,Xq.intOct,Xq.int,Xq.intHex,_$.floatNaN,_$.floatExp,_$.float,RF.binary,jF.merge,PF.omap,AF.pairs,OF.set,q$.intTime,q$.floatTime,q$.timestamp];NF.schema=fF});var _5=M((kF)=>{var s8=Y0(),CF=n_(),n8=J0(),bF=k0(),yF=v9(),$$=k9(),Z$=m9(),xF=P8(),hF=O8(),a8=c9(),l0=m_(),o8=s9(),t8=e_(),c8=i8(),e8=o9(),zq=e9(),p8=new Map([["core",xF.schema],["failsafe",[s8.map,n8.seq,bF.string]],["json",hF.schema],["yaml11",c8.schema],["yaml-1.1",c8.schema]]),r8={binary:a8.binary,bool:yF.boolTag,float:$$.float,floatExp:$$.floatExp,floatNaN:$$.floatNaN,floatTime:zq.floatTime,int:Z$.int,intHex:Z$.intHex,intOct:Z$.intOct,intTime:zq.intTime,map:s8.map,merge:l0.merge,null:CF.nullTag,omap:o8.omap,pairs:t8.pairs,seq:n8.seq,set:e8.set,timestamp:zq.timestamp},vF={"tag:yaml.org,2002:binary":a8.binary,"tag:yaml.org,2002:merge":l0.merge,"tag:yaml.org,2002:omap":o8.omap,"tag:yaml.org,2002:pairs":t8.pairs,"tag:yaml.org,2002:set":e8.set,"tag:yaml.org,2002:timestamp":zq.timestamp};function gF(_,q,$){let Z=p8.get(q);if(Z&&!_)return $&&!Z.includes(l0.merge)?Z.concat(l0.merge):Z.slice();let X=Z;if(!X)if(Array.isArray(_))X=[];else{let z=Array.from(p8.keys()).filter((U)=>U!=="yaml11").map((U)=>JSON.stringify(U)).join(", ");throw Error(`Unknown schema "${q}"; use one of ${z} or define customTags array`)}if(Array.isArray(_))for(let z of _)X=X.concat(z);else if(typeof _==="function")X=_(X.slice());if($)X=X.concat(l0.merge);return X.reduce((z,U)=>{let Q=typeof U==="string"?r8[U]:U;if(!Q){let Y=JSON.stringify(U),J=Object.keys(r8).map((W)=>JSON.stringify(W)).join(", ");throw Error(`Unknown custom tag ${Y}; use one of ${J}`)}if(!z.includes(Q))z.push(Q);return z},[])}kF.coreKnownTags=vF;kF.getTags=gF});var U$=M((pF)=>{var X$=g(),dF=Y0(),lF=J0(),iF=k0(),Uq=_5(),cF=(_,q)=>_.key<q.key?-1:_.key>q.key?1:0;class z${constructor({compat:_,customTags:q,merge:$,resolveKnownTags:Z,schema:X,sortMapEntries:z,toStringDefaults:U}){this.compat=Array.isArray(_)?Uq.getTags(_,"compat"):_?Uq.getTags(null,_):null,this.name=typeof X==="string"&&X||"core",this.knownTags=Z?Uq.coreKnownTags:{},this.tags=Uq.getTags(q,this.name,$),this.toStringOptions=U??null,Object.defineProperty(this,X$.MAP,{value:dF.map}),Object.defineProperty(this,X$.SCALAR,{value:iF.string}),Object.defineProperty(this,X$.SEQ,{value:lF.seq}),this.sortMapEntries=typeof z==="function"?z:z===!0?cF:null}clone(){let _=Object.create(z$.prototype,Object.getOwnPropertyDescriptors(this));return _.tags=this.tags.slice(),_}}pF.Schema=z$});var q5=M((aF)=>{var sF=g(),Q$=x0(),i0=C0();function nF(_,q){let $=[],Z=q.directives===!0;if(q.directives!==!1&&_.directives){let Y=_.directives.toString(_);if(Y)$.push(Y),Z=!0;else if(_.directives.docStart)Z=!0}if(Z)$.push("---");let X=Q$.createStringifyContext(_,q),{commentString:z}=X.options;if(_.commentBefore){if($.length!==1)$.unshift("");let Y=z(_.commentBefore);$.unshift(i0.indentComment(Y,""))}let U=!1,Q=null;if(_.contents){if(sF.isNode(_.contents)){if(_.contents.spaceBefore&&Z)$.push("");if(_.contents.commentBefore){let W=z(_.contents.commentBefore);$.push(i0.indentComment(W,""))}X.forceBlockIndent=!!_.comment,Q=_.contents.comment}let Y=Q?void 0:()=>U=!0,J=Q$.stringify(_.contents,X,()=>Q=null,Y);if(Q)J+=i0.lineComment(J,"",z(Q));if((J[0]==="|"||J[0]===">")&&$[$.length-1]==="---")$[$.length-1]=`--- ${J}`;else $.push(J)}else $.push(Q$.stringify(_.contents,X));if(_.directives?.docEnd)if(_.comment){let Y=z(_.comment);if(Y.includes(`
102
+ `))$.push("..."),$.push(i0.indentComment(Y,""));else $.push(`... ${Y}`)}else $.push("...");else{let Y=_.comment;if(Y&&U)Y=Y.replace(/^\n+/,"");if(Y){if((!U||Q)&&$[$.length-1]!=="")$.push("");$.push(i0.indentComment(z(Y),""))}}return $.join(`
103
103
  `)+`
104
- `}EG.stringifyDocument=fG});var m0=H((uG)=>{var bG=j0(),Y0=O_(),Q1=g(),yG=N1(),hG=j1(),xG=o9(),gG=p8(),e9=P_(),kG=I9(),vG=A0(),_$=M9();class q${constructor(_,q,$){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Q1.NODE_TYPE,{value:Q1.DOC});let Z=null;if(typeof q==="function"||Array.isArray(q))Z=q;else if($===void 0&&q)$=q,q=void 0;let X=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},$);this.options=X;let{version:z}=X;if($?._directives){if(this.directives=$._directives.atDocument(),this.directives.yaml.explicit)z=this.directives.yaml.version}else this.directives=new _$.Directives({version:z});this.setSchema(z,$),this.contents=_===void 0?null:this.createNode(_,Z,$)}clone(){let _=Object.create(q$.prototype,{[Q1.NODE_TYPE]:{value:Q1.DOC}});if(_.commentBefore=this.commentBefore,_.comment=this.comment,_.errors=this.errors.slice(),_.warnings=this.warnings.slice(),_.options=Object.assign({},this.options),this.directives)_.directives=this.directives.clone();if(_.schema=this.schema.clone(),_.contents=Q1.isNode(this.contents)?this.contents.clone(_.schema):this.contents,this.range)_.range=this.range.slice();return _}add(_){if(B0(this.contents))this.contents.add(_)}addIn(_,q){if(B0(this.contents))this.contents.addIn(_,q)}createAlias(_,q){if(!_.anchor){let $=e9.anchorNames(this);_.anchor=!q||$.has(q)?e9.findNewAnchor(q||"a",$):q}return new bG.Alias(_.anchor)}createNode(_,q,$){let Z=void 0;if(typeof q==="function")_=q.call({"":_},"",_),Z=q;else if(Array.isArray(q)){let F=(w)=>typeof w==="number"||w instanceof String||w instanceof Number,M=q.filter(F).map(String);if(M.length>0)q=q.concat(M);Z=q}else if($===void 0&&q)$=q,q=void 0;let{aliasDuplicateObjects:X,anchorPrefix:z,flow:U,keepUndefined:Q,onTagObj:Y,tag:B}=$??{},{onAnchor:W,setAnchors:V,sourceObjects:J}=e9.createNodeAnchors(this,z||"a"),G={aliasDuplicateObjects:X??!0,keepUndefined:Q??!1,onAnchor:W,onTagObj:Y,replacer:Z,schema:this.schema,sourceObjects:J},L=vG.createNode(_,B,G);if(U&&Q1.isCollection(L))L.flow=!0;return V(),L}createPair(_,q,$={}){let Z=this.createNode(_,null,$),X=this.createNode(q,null,$);return new yG.Pair(Z,X)}delete(_){return B0(this.contents)?this.contents.delete(_):!1}deleteIn(_){if(Y0.isEmptyPath(_)){if(this.contents==null)return!1;return this.contents=null,!0}return B0(this.contents)?this.contents.deleteIn(_):!1}get(_,q){return Q1.isCollection(this.contents)?this.contents.get(_,q):void 0}getIn(_,q){if(Y0.isEmptyPath(_))return!q&&Q1.isScalar(this.contents)?this.contents.value:this.contents;return Q1.isCollection(this.contents)?this.contents.getIn(_,q):void 0}has(_){return Q1.isCollection(this.contents)?this.contents.has(_):!1}hasIn(_){if(Y0.isEmptyPath(_))return this.contents!==void 0;return Q1.isCollection(this.contents)?this.contents.hasIn(_):!1}set(_,q){if(this.contents==null)this.contents=Y0.collectionFromPath(this.schema,[_],q);else if(B0(this.contents))this.contents.set(_,q)}setIn(_,q){if(Y0.isEmptyPath(_))this.contents=q;else if(this.contents==null)this.contents=Y0.collectionFromPath(this.schema,Array.from(_),q);else if(B0(this.contents))this.contents.setIn(_,q)}setSchema(_,q={}){if(typeof _==="number")_=String(_);let $;switch(_){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new _$.Directives({version:"1.1"});$={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=_;else this.directives=new _$.Directives({version:_});$={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;$=null;break;default:{let Z=JSON.stringify(_);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${Z}`)}}if(q.schema instanceof Object)this.schema=q.schema;else if($)this.schema=new xG.Schema(Object.assign($,q));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:_,jsonArg:q,mapAsMap:$,maxAliasCount:Z,onAnchor:X,reviver:z}={}){let U={anchors:new Map,doc:this,keep:!_,mapAsMap:$===!0,mapKeyWarned:!1,maxAliasCount:typeof Z==="number"?Z:100},Q=hG.toJS(this.contents,q??"",U);if(typeof X==="function")for(let{count:Y,res:B}of U.anchors.values())X(B,Y);return typeof z==="function"?kG.applyReviver(z,{"":Q},"",Q):Q}toJSON(_,q){return this.toJS({json:!0,jsonArg:_,mapAsMap:!1,onAnchor:q})}toString(_={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in _&&(!Number.isInteger(_.indent)||Number(_.indent)<=0)){let q=JSON.stringify(_.indent);throw Error(`"indent" option must be a positive integer, not ${q}`)}return gG.stringifyDocument(this,_)}}function B0(_){if(Q1.isCollection(_))return!0;throw Error("Expected a YAML collection as document contents")}uG.Document=q$});var d0=H((lG)=>{class _q extends Error{constructor(_,q,$,Z){super();this.name=_,this.code=$,this.message=Z,this.pos=q}}class r8 extends _q{constructor(_,q,$){super("YAMLParseError",_,q,$)}}class s8 extends _q{constructor(_,q,$){super("YAMLWarning",_,q,$)}}var dG=(_,q)=>($)=>{if($.pos[0]===-1)return;$.linePos=$.pos.map((Q)=>q.linePos(Q));let{line:Z,col:X}=$.linePos[0];$.message+=` at line ${Z}, column ${X}`;let z=X-1,U=_.substring(q.lineStarts[Z-1],q.lineStarts[Z]).replace(/[\n\r]+$/,"");if(z>=60&&U.length>80){let Q=Math.min(z-39,U.length-79);U="…"+U.substring(Q),z-=Q-1}if(U.length>80)U=U.substring(0,79)+"…";if(Z>1&&/^ *$/.test(U.substring(0,z))){let Q=_.substring(q.lineStarts[Z-2],q.lineStarts[Z-1]);if(Q.length>80)Q=Q.substring(0,79)+`…
105
- `;U=Q+U}if(/[^ ]/.test(U)){let Q=1,Y=$.linePos[1];if(Y&&Y.line===Z&&Y.col>X)Q=Math.max(1,Math.min(Y.col-X,80-z));let B=" ".repeat(z)+"^".repeat(Q);$.message+=`:
104
+ `}aF.stringifyDocument=nF});var c0=M((zL)=>{var tF=N0(),W0=x_(),J1=g(),eF=C1(),_L=f1(),qL=U$(),$L=q5(),Y$=C_(),ZL=A9(),XL=E0(),J$=P9();class B${constructor(_,q,$){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,J1.NODE_TYPE,{value:J1.DOC});let Z=null;if(typeof q==="function"||Array.isArray(q))Z=q;else if($===void 0&&q)$=q,q=void 0;let X=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},$);this.options=X;let{version:z}=X;if($?._directives){if(this.directives=$._directives.atDocument(),this.directives.yaml.explicit)z=this.directives.yaml.version}else this.directives=new J$.Directives({version:z});this.setSchema(z,$),this.contents=_===void 0?null:this.createNode(_,Z,$)}clone(){let _=Object.create(B$.prototype,{[J1.NODE_TYPE]:{value:J1.DOC}});if(_.commentBefore=this.commentBefore,_.comment=this.comment,_.errors=this.errors.slice(),_.warnings=this.warnings.slice(),_.options=Object.assign({},this.options),this.directives)_.directives=this.directives.clone();if(_.schema=this.schema.clone(),_.contents=J1.isNode(this.contents)?this.contents.clone(_.schema):this.contents,this.range)_.range=this.range.slice();return _}add(_){if(V0(this.contents))this.contents.add(_)}addIn(_,q){if(V0(this.contents))this.contents.addIn(_,q)}createAlias(_,q){if(!_.anchor){let $=Y$.anchorNames(this);_.anchor=!q||$.has(q)?Y$.findNewAnchor(q||"a",$):q}return new tF.Alias(_.anchor)}createNode(_,q,$){let Z=void 0;if(typeof q==="function")_=q.call({"":_},"",_),Z=q;else if(Array.isArray(q)){let G=(S)=>typeof S==="number"||S instanceof String||S instanceof Number,H=q.filter(G).map(String);if(H.length>0)q=q.concat(H);Z=q}else if($===void 0&&q)$=q,q=void 0;let{aliasDuplicateObjects:X,anchorPrefix:z,flow:U,keepUndefined:Q,onTagObj:Y,tag:J}=$??{},{onAnchor:W,setAnchors:V,sourceObjects:B}=Y$.createNodeAnchors(this,z||"a"),F={aliasDuplicateObjects:X??!0,keepUndefined:Q??!1,onAnchor:W,onTagObj:Y,replacer:Z,schema:this.schema,sourceObjects:B},L=XL.createNode(_,J,F);if(U&&J1.isCollection(L))L.flow=!0;return V(),L}createPair(_,q,$={}){let Z=this.createNode(_,null,$),X=this.createNode(q,null,$);return new eF.Pair(Z,X)}delete(_){return V0(this.contents)?this.contents.delete(_):!1}deleteIn(_){if(W0.isEmptyPath(_)){if(this.contents==null)return!1;return this.contents=null,!0}return V0(this.contents)?this.contents.deleteIn(_):!1}get(_,q){return J1.isCollection(this.contents)?this.contents.get(_,q):void 0}getIn(_,q){if(W0.isEmptyPath(_))return!q&&J1.isScalar(this.contents)?this.contents.value:this.contents;return J1.isCollection(this.contents)?this.contents.getIn(_,q):void 0}has(_){return J1.isCollection(this.contents)?this.contents.has(_):!1}hasIn(_){if(W0.isEmptyPath(_))return this.contents!==void 0;return J1.isCollection(this.contents)?this.contents.hasIn(_):!1}set(_,q){if(this.contents==null)this.contents=W0.collectionFromPath(this.schema,[_],q);else if(V0(this.contents))this.contents.set(_,q)}setIn(_,q){if(W0.isEmptyPath(_))this.contents=q;else if(this.contents==null)this.contents=W0.collectionFromPath(this.schema,Array.from(_),q);else if(V0(this.contents))this.contents.setIn(_,q)}setSchema(_,q={}){if(typeof _==="number")_=String(_);let $;switch(_){case"1.1":if(this.directives)this.directives.yaml.version="1.1";else this.directives=new J$.Directives({version:"1.1"});$={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":if(this.directives)this.directives.yaml.version=_;else this.directives=new J$.Directives({version:_});$={resolveKnownTags:!0,schema:"core"};break;case null:if(this.directives)delete this.directives;$=null;break;default:{let Z=JSON.stringify(_);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${Z}`)}}if(q.schema instanceof Object)this.schema=q.schema;else if($)this.schema=new qL.Schema(Object.assign($,q));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:_,jsonArg:q,mapAsMap:$,maxAliasCount:Z,onAnchor:X,reviver:z}={}){let U={anchors:new Map,doc:this,keep:!_,mapAsMap:$===!0,mapKeyWarned:!1,maxAliasCount:typeof Z==="number"?Z:100},Q=_L.toJS(this.contents,q??"",U);if(typeof X==="function")for(let{count:Y,res:J}of U.anchors.values())X(J,Y);return typeof z==="function"?ZL.applyReviver(z,{"":Q},"",Q):Q}toJSON(_,q){return this.toJS({json:!0,jsonArg:_,mapAsMap:!1,onAnchor:q})}toString(_={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in _&&(!Number.isInteger(_.indent)||Number(_.indent)<=0)){let q=JSON.stringify(_.indent);throw Error(`"indent" option must be a positive integer, not ${q}`)}return $L.stringifyDocument(this,_)}}function V0(_){if(J1.isCollection(_))return!0;throw Error("Expected a YAML collection as document contents")}zL.Document=B$});var p0=M((YL)=>{class Qq extends Error{constructor(_,q,$,Z){super();this.name=_,this.code=$,this.message=Z,this.pos=q}}class $5 extends Qq{constructor(_,q,$){super("YAMLParseError",_,q,$)}}class Z5 extends Qq{constructor(_,q,$){super("YAMLWarning",_,q,$)}}var QL=(_,q)=>($)=>{if($.pos[0]===-1)return;$.linePos=$.pos.map((Q)=>q.linePos(Q));let{line:Z,col:X}=$.linePos[0];$.message+=` at line ${Z}, column ${X}`;let z=X-1,U=_.substring(q.lineStarts[Z-1],q.lineStarts[Z]).replace(/[\n\r]+$/,"");if(z>=60&&U.length>80){let Q=Math.min(z-39,U.length-79);U="…"+U.substring(Q),z-=Q-1}if(U.length>80)U=U.substring(0,79)+"…";if(Z>1&&/^ *$/.test(U.substring(0,z))){let Q=_.substring(q.lineStarts[Z-2],q.lineStarts[Z-1]);if(Q.length>80)Q=Q.substring(0,79)+`…
105
+ `;U=Q+U}if(/[^ ]/.test(U)){let Q=1,Y=$.linePos[1];if(Y?.line===Z&&Y.col>X)Q=Math.max(1,Math.min(Y.col-X,80-z));let J=" ".repeat(z)+"^".repeat(Q);$.message+=`:
106
106
 
107
107
  ${U}
108
- ${B}
109
- `}};lG.YAMLError=_q;lG.YAMLParseError=r8;lG.YAMLWarning=s8;lG.prettifyError=dG});var l0=H((nG)=>{function sG(_,{flow:q,indicator:$,next:Z,offset:X,onError:z,parentIndent:U,startOnNewline:Q}){let Y=!1,B=Q,W=Q,V="",J="",G=!1,L=!1,F=null,M=null,w=null,j=null,P=null,E=null,S=null;for(let I of _){if(L){if(I.type!=="space"&&I.type!=="newline"&&I.type!=="comma")z(I.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");L=!1}if(F){if(B&&I.type!=="comment"&&I.type!=="newline")z(F,"TAB_AS_INDENT","Tabs are not allowed as indentation");F=null}switch(I.type){case"space":if(!q&&($!=="doc-start"||Z?.type!=="flow-collection")&&I.source.includes("\t"))F=I;W=!0;break;case"comment":{if(!W)z(I,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let C=I.source.substring(1)||" ";if(!V)V=C;else V+=J+C;J="",B=!1;break}case"newline":if(B){if(V)V+=I.source;else if(!E||$!=="seq-item-ind")Y=!0}else J+=I.source;if(B=!0,G=!0,M||w)j=I;W=!0;break;case"anchor":if(M)z(I,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(I.source.endsWith(":"))z(I.offset+I.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);M=I,S??(S=I.offset),B=!1,W=!1,L=!0;break;case"tag":{if(w)z(I,"MULTIPLE_TAGS","A node can have at most one tag");w=I,S??(S=I.offset),B=!1,W=!1,L=!0;break}case $:if(M||w)z(I,"BAD_PROP_ORDER",`Anchors and tags must be after the ${I.source} indicator`);if(E)z(I,"UNEXPECTED_TOKEN",`Unexpected ${I.source} in ${q??"collection"}`);E=I,B=$==="seq-item-ind"||$==="explicit-key-ind",W=!1;break;case"comma":if(q){if(P)z(I,"UNEXPECTED_TOKEN",`Unexpected , in ${q}`);P=I,B=!1,W=!1;break}default:z(I,"UNEXPECTED_TOKEN",`Unexpected ${I.type} token`),B=!1,W=!1}}let A=_[_.length-1],O=A?A.offset+A.source.length:X;if(L&&Z&&Z.type!=="space"&&Z.type!=="newline"&&Z.type!=="comma"&&(Z.type!=="scalar"||Z.source!==""))z(Z.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(F&&(B&&F.indent<=U||Z?.type==="block-map"||Z?.type==="block-seq"))z(F,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:P,found:E,spaceBefore:Y,comment:V,hasNewline:G,anchor:M,tag:w,newlineAfterProp:j,end:O,start:S??O}}nG.resolveProps=sG});var qq=H((oG)=>{function $$(_){if(!_)return null;switch(_.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(_.source.includes(`
110
- `))return!0;if(_.end){for(let q of _.end)if(q.type==="newline")return!0}return!1;case"flow-collection":for(let q of _.items){for(let $ of q.start)if($.type==="newline")return!0;if(q.sep){for(let $ of q.sep)if($.type==="newline")return!0}if($$(q.key)||$$(q.value))return!0}return!1;default:return!0}}oG.containsNewline=$$});var Z$=H((qL)=>{var eG=qq();function _L(_,q,$){if(q?.type==="flow-collection"){let Z=q.end[0];if(Z.indent===_&&(Z.source==="]"||Z.source==="}")&&eG.containsNewline(q))$(Z,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}qL.flowIndentCheck=_L});var X$=H((XL)=>{var n8=g();function ZL(_,q,$){let{uniqueKeys:Z}=_.options;if(Z===!1)return!1;let X=typeof Z==="function"?Z:(z,U)=>z===U||n8.isScalar(z)&&n8.isScalar(U)&&z.value===U.value;return q.some((z)=>X(z.key,$))}XL.mapIncludes=ZL});var _5=H((JL)=>{var a8=N1(),UL=E1(),o8=l0(),QL=qq(),t8=Z$(),YL=X$(),e8="All mapping items must start at the same column";function BL({composeNode:_,composeEmptyNode:q},$,Z,X,z){let Q=new(z?.nodeClass??UL.YAMLMap)($.schema);if($.atRoot)$.atRoot=!1;let Y=Z.offset,B=null;for(let W of Z.items){let{start:V,key:J,sep:G,value:L}=W,F=o8.resolveProps(V,{indicator:"explicit-key-ind",next:J??G?.[0],offset:Y,onError:X,parentIndent:Z.indent,startOnNewline:!0}),M=!F.found;if(M){if(J){if(J.type==="block-seq")X(Y,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in J&&J.indent!==Z.indent)X(Y,"BAD_INDENT",e8)}if(!F.anchor&&!F.tag&&!G){if(B=F.end,F.comment)if(Q.comment)Q.comment+=`
111
- `+F.comment;else Q.comment=F.comment;continue}if(F.newlineAfterProp||QL.containsNewline(J))X(J??V[V.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(F.found?.indent!==Z.indent)X(Y,"BAD_INDENT",e8);$.atKey=!0;let w=F.end,j=J?_($,J,F,X):q($,w,V,null,F,X);if($.schema.compat)t8.flowIndentCheck(Z.indent,J,X);if($.atKey=!1,YL.mapIncludes($,Q.items,j))X(w,"DUPLICATE_KEY","Map keys must be unique");let P=o8.resolveProps(G??[],{indicator:"map-value-ind",next:L,offset:j.range[2],onError:X,parentIndent:Z.indent,startOnNewline:!J||J.type==="block-scalar"});if(Y=P.end,P.found){if(M){if(L?.type==="block-map"&&!P.hasNewline)X(Y,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if($.options.strict&&F.start<P.found.offset-1024)X(j.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let E=L?_($,L,P,X):q($,Y,G,null,P,X);if($.schema.compat)t8.flowIndentCheck(Z.indent,L,X);Y=E.range[2];let S=new a8.Pair(j,E);if($.options.keepSourceTokens)S.srcToken=W;Q.items.push(S)}else{if(M)X(j.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(P.comment)if(j.comment)j.comment+=`
112
- `+P.comment;else j.comment=P.comment;let E=new a8.Pair(j);if($.options.keepSourceTokens)E.srcToken=W;Q.items.push(E)}}if(B&&B<Y)X(B,"IMPOSSIBLE","Map comment with trailing content");return Q.range=[Z.offset,Y,B??Y],Q}JL.resolveBlockMap=BL});var q5=H((HL)=>{var VL=C1(),FL=l0(),GL=Z$();function LL({composeNode:_,composeEmptyNode:q},$,Z,X,z){let Q=new(z?.nodeClass??VL.YAMLSeq)($.schema);if($.atRoot)$.atRoot=!1;if($.atKey)$.atKey=!1;let Y=Z.offset,B=null;for(let{start:W,value:V}of Z.items){let J=FL.resolveProps(W,{indicator:"seq-item-ind",next:V,offset:Y,onError:X,parentIndent:Z.indent,startOnNewline:!0});if(!J.found)if(J.anchor||J.tag||V)if(V&&V.type==="block-seq")X(J.end,"BAD_INDENT","All sequence items must start at the same column");else X(Y,"MISSING_CHAR","Sequence item without - indicator");else{if(B=J.end,J.comment)Q.comment=J.comment;continue}let G=V?_($,V,J,X):q($,J.end,W,null,J,X);if($.schema.compat)GL.flowIndentCheck(Z.indent,V,X);Y=G.range[2],Q.items.push(G)}return Q.range=[Z.offset,Y,B??Y],Q}HL.resolveBlockSeq=LL});var J0=H((TL)=>{function IL(_,q,$,Z){let X="";if(_){let z=!1,U="";for(let Q of _){let{source:Y,type:B}=Q;switch(B){case"space":z=!0;break;case"comment":{if($&&!z)Z(Q,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let W=Y.substring(1)||" ";if(!X)X=W;else X+=U+W;U="";break}case"newline":if(X)U+=Y;z=!0;break;default:Z(Q,"UNEXPECTED_TOKEN",`Unexpected ${B} at node end`)}q+=Y.length}}return{comment:X,offset:q}}TL.resolveEnd=IL});var X5=H((OL)=>{var DL=g(),wL=N1(),$5=E1(),SL=C1(),RL=J0(),Z5=l0(),PL=qq(),jL=X$(),z$="Block collections are not allowed within flow collections",U$=(_)=>_&&(_.type==="block-map"||_.type==="block-seq");function AL({composeNode:_,composeEmptyNode:q},$,Z,X,z){let U=Z.start.source==="{",Q=U?"flow map":"flow sequence",B=new(z?.nodeClass??(U?$5.YAMLMap:SL.YAMLSeq))($.schema);B.flow=!0;let W=$.atRoot;if(W)$.atRoot=!1;if($.atKey)$.atKey=!1;let V=Z.offset+Z.start.source.length;for(let M=0;M<Z.items.length;++M){let w=Z.items[M],{start:j,key:P,sep:E,value:S}=w,A=Z5.resolveProps(j,{flow:Q,indicator:"explicit-key-ind",next:P??E?.[0],offset:V,onError:X,parentIndent:Z.indent,startOnNewline:!1});if(!A.found){if(!A.anchor&&!A.tag&&!E&&!S){if(M===0&&A.comma)X(A.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${Q}`);else if(M<Z.items.length-1)X(A.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${Q}`);if(A.comment)if(B.comment)B.comment+=`
113
- `+A.comment;else B.comment=A.comment;V=A.end;continue}if(!U&&$.options.strict&&PL.containsNewline(P))X(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(M===0){if(A.comma)X(A.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${Q}`)}else{if(!A.comma)X(A.start,"MISSING_CHAR",`Missing , between ${Q} items`);if(A.comment){let O="";_:for(let I of j)switch(I.type){case"comma":case"space":break;case"comment":O=I.source.substring(1);break _;default:break _}if(O){let I=B.items[B.items.length-1];if(DL.isPair(I))I=I.value??I.key;if(I.comment)I.comment+=`
114
- `+O;else I.comment=O;A.comment=A.comment.substring(O.length+1)}}}if(!U&&!E&&!A.found){let O=S?_($,S,A,X):q($,A.end,E,null,A,X);if(B.items.push(O),V=O.range[2],U$(S))X(O.range,"BLOCK_IN_FLOW",z$)}else{$.atKey=!0;let O=A.end,I=P?_($,P,A,X):q($,O,j,null,A,X);if(U$(P))X(I.range,"BLOCK_IN_FLOW",z$);$.atKey=!1;let C=Z5.resolveProps(E??[],{flow:Q,indicator:"map-value-ind",next:S,offset:I.range[2],onError:X,parentIndent:Z.indent,startOnNewline:!1});if(C.found){if(!U&&!A.found&&$.options.strict){if(E)for(let b of E){if(b===C.found)break;if(b.type==="newline"){X(b,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(A.start<C.found.offset-1024)X(C.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(S)if("source"in S&&S.source&&S.source[0]===":")X(S,"MISSING_CHAR",`Missing space after : in ${Q}`);else X(C.start,"MISSING_CHAR",`Missing , or : between ${Q} items`);let u=S?_($,S,C,X):C.found?q($,C.end,E,null,C,X):null;if(u){if(U$(S))X(u.range,"BLOCK_IN_FLOW",z$)}else if(C.comment)if(I.comment)I.comment+=`
115
- `+C.comment;else I.comment=C.comment;let D=new wL.Pair(I,u);if($.options.keepSourceTokens)D.srcToken=w;if(U){let b=B;if(jL.mapIncludes($,b.items,I))X(O,"DUPLICATE_KEY","Map keys must be unique");b.items.push(D)}else{let b=new $5.YAMLMap($.schema);b.flow=!0,b.items.push(D);let m=(u??I).range;b.range=[I.range[0],m[1],m[2]],B.items.push(b)}V=u?u.range[2]:C.end}}let J=U?"}":"]",[G,...L]=Z.end,F=V;if(G&&G.source===J)F=G.offset+G.source.length;else{let M=Q[0].toUpperCase()+Q.substring(1),w=W?`${M} must end with a ${J}`:`${M} in block collection must be sufficiently indented and end with a ${J}`;if(X(V,W?"MISSING_CHAR":"BAD_INDENT",w),G&&G.source.length!==1)L.unshift(G)}if(L.length>0){let M=RL.resolveEnd(L,F,$.options.strict,X);if(M.comment)if(B.comment)B.comment+=`
116
- `+M.comment;else B.comment=M.comment;B.range=[Z.offset,F,M.offset]}else B.range=[Z.offset,F,F];return B}OL.resolveFlowCollection=AL});var z5=H((kL)=>{var fL=g(),EL=r(),CL=E1(),bL=C1(),yL=_5(),hL=q5(),xL=X5();function Q$(_,q,$,Z,X,z){let U=$.type==="block-map"?yL.resolveBlockMap(_,q,$,Z,z):$.type==="block-seq"?hL.resolveBlockSeq(_,q,$,Z,z):xL.resolveFlowCollection(_,q,$,Z,z),Q=U.constructor;if(X==="!"||X===Q.tagName)return U.tag=Q.tagName,U;if(X)U.tag=X;return U}function gL(_,q,$,Z,X){let z=Z.tag,U=!z?null:q.directives.tagName(z.source,(J)=>X(z,"TAG_RESOLVE_FAILED",J));if($.type==="block-seq"){let{anchor:J,newlineAfterProp:G}=Z,L=J&&z?J.offset>z.offset?J:z:J??z;if(L&&(!G||G.offset<L.offset))X(L,"MISSING_CHAR","Missing newline after block sequence props")}let Q=$.type==="block-map"?"map":$.type==="block-seq"?"seq":$.start.source==="{"?"map":"seq";if(!z||!U||U==="!"||U===CL.YAMLMap.tagName&&Q==="map"||U===bL.YAMLSeq.tagName&&Q==="seq")return Q$(_,q,$,X,U);let Y=q.schema.tags.find((J)=>J.tag===U&&J.collection===Q);if(!Y){let J=q.schema.knownTags[U];if(J&&J.collection===Q)q.schema.tags.push(Object.assign({},J,{default:!1})),Y=J;else{if(J)X(z,"BAD_COLLECTION_TYPE",`${J.tag} used for ${Q} collection, but expects ${J.collection??"scalar"}`,!0);else X(z,"TAG_RESOLVE_FAILED",`Unresolved tag: ${U}`,!0);return Q$(_,q,$,X,U)}}let B=Q$(_,q,$,X,U,Y),W=Y.resolve?.(B,(J)=>X(z,"TAG_RESOLVE_FAILED",J),q.options)??B,V=fL.isNode(W)?W:new EL.Scalar(W);if(V.range=B.range,V.tag=U,Y?.format)V.format=Y.format;return V}kL.composeCollection=gL});var B$=H((lL)=>{var Y$=r();function uL(_,q,$){let Z=q.offset,X=mL(q,_.options.strict,$);if(!X)return{value:"",type:null,comment:"",range:[Z,Z,Z]};let z=X.mode===">"?Y$.Scalar.BLOCK_FOLDED:Y$.Scalar.BLOCK_LITERAL,U=q.source?dL(q.source):[],Q=U.length;for(let F=U.length-1;F>=0;--F){let M=U[F][1];if(M===""||M==="\r")Q=F;else break}if(Q===0){let F=X.chomp==="+"&&U.length>0?`
117
- `.repeat(Math.max(1,U.length-1)):"",M=Z+X.length;if(q.source)M+=q.source.length;return{value:F,type:z,comment:X.comment,range:[Z,M,M]}}let Y=q.indent+X.indent,B=q.offset+X.length,W=0;for(let F=0;F<Q;++F){let[M,w]=U[F];if(w===""||w==="\r"){if(X.indent===0&&M.length>Y)Y=M.length}else{if(M.length<Y)$(B+M.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(X.indent===0)Y=M.length;if(W=F,Y===0&&!_.atRoot)$(B,"BAD_INDENT","Block scalar values in collections must be indented");break}B+=M.length+w.length+1}for(let F=U.length-1;F>=Q;--F)if(U[F][0].length>Y)Q=F+1;let V="",J="",G=!1;for(let F=0;F<W;++F)V+=U[F][0].slice(Y)+`
118
- `;for(let F=W;F<Q;++F){let[M,w]=U[F];B+=M.length+w.length+1;let j=w[w.length-1]==="\r";if(j)w=w.slice(0,-1);if(w&&M.length<Y){let E=`Block scalar lines must not be less indented than their ${X.indent?"explicit indentation indicator":"first line"}`;$(B-w.length-(j?2:1),"BAD_INDENT",E),M=""}if(z===Y$.Scalar.BLOCK_LITERAL)V+=J+M.slice(Y)+w,J=`
119
- `;else if(M.length>Y||w[0]==="\t"){if(J===" ")J=`
120
- `;else if(!G&&J===`
121
- `)J=`
108
+ ${J}
109
+ `}};YL.YAMLError=Qq;YL.YAMLParseError=$5;YL.YAMLWarning=Z5;YL.prettifyError=QL});var r0=M((FL)=>{function GL(_,{flow:q,indicator:$,next:Z,offset:X,onError:z,parentIndent:U,startOnNewline:Q}){let Y=!1,J=Q,W=Q,V="",B="",F=!1,L=!1,G=null,H=null,S=null,O=null,A=null,C=null,N=null;for(let I of _){if(L){if(I.type!=="space"&&I.type!=="newline"&&I.type!=="comma")z(I.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");L=!1}if(G){if(J&&I.type!=="comment"&&I.type!=="newline")z(G,"TAB_AS_INDENT","Tabs are not allowed as indentation");G=null}switch(I.type){case"space":if(!q&&($!=="doc-start"||Z?.type!=="flow-collection")&&I.source.includes("\t"))G=I;W=!0;break;case"comment":{if(!W)z(I,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let b=I.source.substring(1)||" ";if(!V)V=b;else V+=B+b;B="",J=!1;break}case"newline":if(J){if(V)V+=I.source;else if(!C||$!=="seq-item-ind")Y=!0}else B+=I.source;if(J=!0,F=!0,H||S)O=I;W=!0;break;case"anchor":if(H)z(I,"MULTIPLE_ANCHORS","A node can have at most one anchor");if(I.source.endsWith(":"))z(I.offset+I.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0);H=I,N??(N=I.offset),J=!1,W=!1,L=!0;break;case"tag":{if(S)z(I,"MULTIPLE_TAGS","A node can have at most one tag");S=I,N??(N=I.offset),J=!1,W=!1,L=!0;break}case $:if(H||S)z(I,"BAD_PROP_ORDER",`Anchors and tags must be after the ${I.source} indicator`);if(C)z(I,"UNEXPECTED_TOKEN",`Unexpected ${I.source} in ${q??"collection"}`);C=I,J=$==="seq-item-ind"||$==="explicit-key-ind",W=!1;break;case"comma":if(q){if(A)z(I,"UNEXPECTED_TOKEN",`Unexpected , in ${q}`);A=I,J=!1,W=!1;break}default:z(I,"UNEXPECTED_TOKEN",`Unexpected ${I.type} token`),J=!1,W=!1}}let R=_[_.length-1],E=R?R.offset+R.source.length:X;if(L&&Z&&Z.type!=="space"&&Z.type!=="newline"&&Z.type!=="comma"&&(Z.type!=="scalar"||Z.source!==""))z(Z.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space");if(G&&(J&&G.indent<=U||Z?.type==="block-map"||Z?.type==="block-seq"))z(G,"TAB_AS_INDENT","Tabs are not allowed as indentation");return{comma:A,found:C,spaceBefore:Y,comment:V,hasNewline:F,anchor:H,tag:S,newlineAfterProp:O,end:E,start:N??E}}FL.resolveProps=GL});var Yq=M((ML)=>{function W$(_){if(!_)return null;switch(_.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(_.source.includes(`
110
+ `))return!0;if(_.end){for(let q of _.end)if(q.type==="newline")return!0}return!1;case"flow-collection":for(let q of _.items){for(let $ of q.start)if($.type==="newline")return!0;if(q.sep){for(let $ of q.sep)if($.type==="newline")return!0}if(W$(q.key)||W$(q.value))return!0}return!1;default:return!0}}ML.containsNewline=W$});var V$=M((KL)=>{var IL=Yq();function TL(_,q,$){if(q?.type==="flow-collection"){let Z=q.end[0];if(Z.indent===_&&(Z.source==="]"||Z.source==="}")&&IL.containsNewline(q))$(Z,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}KL.flowIndentCheck=TL});var G$=M((SL)=>{var X5=g();function wL(_,q,$){let{uniqueKeys:Z}=_.options;if(Z===!1)return!1;let X=typeof Z==="function"?Z:(z,U)=>z===U||X5.isScalar(z)&&X5.isScalar(U)&&z.value===U.value;return q.some((z)=>X(z.key,$))}SL.mapIncludes=wL});var J5=M((fL)=>{var z5=C1(),jL=y1(),U5=r0(),PL=Yq(),Q5=V$(),AL=G$(),Y5="All mapping items must start at the same column";function OL({composeNode:_,composeEmptyNode:q},$,Z,X,z){let Q=new(z?.nodeClass??jL.YAMLMap)($.schema);if($.atRoot)$.atRoot=!1;let Y=Z.offset,J=null;for(let W of Z.items){let{start:V,key:B,sep:F,value:L}=W,G=U5.resolveProps(V,{indicator:"explicit-key-ind",next:B??F?.[0],offset:Y,onError:X,parentIndent:Z.indent,startOnNewline:!0}),H=!G.found;if(H){if(B){if(B.type==="block-seq")X(Y,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key");else if("indent"in B&&B.indent!==Z.indent)X(Y,"BAD_INDENT",Y5)}if(!G.anchor&&!G.tag&&!F){if(J=G.end,G.comment)if(Q.comment)Q.comment+=`
111
+ `+G.comment;else Q.comment=G.comment;continue}if(G.newlineAfterProp||PL.containsNewline(B))X(B??V[V.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else if(G.found?.indent!==Z.indent)X(Y,"BAD_INDENT",Y5);$.atKey=!0;let S=G.end,O=B?_($,B,G,X):q($,S,V,null,G,X);if($.schema.compat)Q5.flowIndentCheck(Z.indent,B,X);if($.atKey=!1,AL.mapIncludes($,Q.items,O))X(S,"DUPLICATE_KEY","Map keys must be unique");let A=U5.resolveProps(F??[],{indicator:"map-value-ind",next:L,offset:O.range[2],onError:X,parentIndent:Z.indent,startOnNewline:!B||B.type==="block-scalar"});if(Y=A.end,A.found){if(H){if(L?.type==="block-map"&&!A.hasNewline)X(Y,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings");if($.options.strict&&G.start<A.found.offset-1024)X(O.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key")}let C=L?_($,L,A,X):q($,Y,F,null,A,X);if($.schema.compat)Q5.flowIndentCheck(Z.indent,L,X);Y=C.range[2];let N=new z5.Pair(O,C);if($.options.keepSourceTokens)N.srcToken=W;Q.items.push(N)}else{if(H)X(O.range,"MISSING_CHAR","Implicit map keys need to be followed by map values");if(A.comment)if(O.comment)O.comment+=`
112
+ `+A.comment;else O.comment=A.comment;let C=new z5.Pair(O);if($.options.keepSourceTokens)C.srcToken=W;Q.items.push(C)}}if(J&&J<Y)X(J,"IMPOSSIBLE","Map comment with trailing content");return Q.range=[Z.offset,Y,J??Y],Q}fL.resolveBlockMap=OL});var B5=M((xL)=>{var EL=x1(),CL=r0(),bL=V$();function yL({composeNode:_,composeEmptyNode:q},$,Z,X,z){let Q=new(z?.nodeClass??EL.YAMLSeq)($.schema);if($.atRoot)$.atRoot=!1;if($.atKey)$.atKey=!1;let Y=Z.offset,J=null;for(let{start:W,value:V}of Z.items){let B=CL.resolveProps(W,{indicator:"seq-item-ind",next:V,offset:Y,onError:X,parentIndent:Z.indent,startOnNewline:!0});if(!B.found)if(B.anchor||B.tag||V)if(V?.type==="block-seq")X(B.end,"BAD_INDENT","All sequence items must start at the same column");else X(Y,"MISSING_CHAR","Sequence item without - indicator");else{if(J=B.end,B.comment)Q.comment=B.comment;continue}let F=V?_($,V,B,X):q($,B.end,W,null,B,X);if($.schema.compat)bL.flowIndentCheck(Z.indent,V,X);Y=F.range[2],Q.items.push(F)}return Q.range=[Z.offset,Y,J??Y],Q}xL.resolveBlockSeq=yL});var G0=M((gL)=>{function vL(_,q,$,Z){let X="";if(_){let z=!1,U="";for(let Q of _){let{source:Y,type:J}=Q;switch(J){case"space":z=!0;break;case"comment":{if($&&!z)Z(Q,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let W=Y.substring(1)||" ";if(!X)X=W;else X+=U+W;U="";break}case"newline":if(X)U+=Y;z=!0;break;default:Z(Q,"UNEXPECTED_TOKEN",`Unexpected ${J} at node end`)}q+=Y.length}}return{comment:X,offset:q}}gL.resolveEnd=vL});var G5=M((rL)=>{var uL=g(),mL=C1(),W5=y1(),dL=x1(),lL=G0(),V5=r0(),iL=Yq(),cL=G$(),F$="Block collections are not allowed within flow collections",L$=(_)=>_&&(_.type==="block-map"||_.type==="block-seq");function pL({composeNode:_,composeEmptyNode:q},$,Z,X,z){let U=Z.start.source==="{",Q=U?"flow map":"flow sequence",J=new(z?.nodeClass??(U?W5.YAMLMap:dL.YAMLSeq))($.schema);J.flow=!0;let W=$.atRoot;if(W)$.atRoot=!1;if($.atKey)$.atKey=!1;let V=Z.offset+Z.start.source.length;for(let H=0;H<Z.items.length;++H){let S=Z.items[H],{start:O,key:A,sep:C,value:N}=S,R=V5.resolveProps(O,{flow:Q,indicator:"explicit-key-ind",next:A??C?.[0],offset:V,onError:X,parentIndent:Z.indent,startOnNewline:!1});if(!R.found){if(!R.anchor&&!R.tag&&!C&&!N){if(H===0&&R.comma)X(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${Q}`);else if(H<Z.items.length-1)X(R.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${Q}`);if(R.comment)if(J.comment)J.comment+=`
113
+ `+R.comment;else J.comment=R.comment;V=R.end;continue}if(!U&&$.options.strict&&iL.containsNewline(A))X(A,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(H===0){if(R.comma)X(R.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${Q}`)}else{if(!R.comma)X(R.start,"MISSING_CHAR",`Missing , between ${Q} items`);if(R.comment){let E="";_:for(let I of O)switch(I.type){case"comma":case"space":break;case"comment":E=I.source.substring(1);break _;default:break _}if(E){let I=J.items[J.items.length-1];if(uL.isPair(I))I=I.value??I.key;if(I.comment)I.comment+=`
114
+ `+E;else I.comment=E;R.comment=R.comment.substring(E.length+1)}}}if(!U&&!C&&!R.found){let E=N?_($,N,R,X):q($,R.end,C,null,R,X);if(J.items.push(E),V=E.range[2],L$(N))X(E.range,"BLOCK_IN_FLOW",F$)}else{$.atKey=!0;let E=R.end,I=A?_($,A,R,X):q($,E,O,null,R,X);if(L$(A))X(I.range,"BLOCK_IN_FLOW",F$);$.atKey=!1;let b=V5.resolveProps(C??[],{flow:Q,indicator:"map-value-ind",next:N,offset:I.range[2],onError:X,parentIndent:Z.indent,startOnNewline:!1});if(b.found){if(!U&&!R.found&&$.options.strict){if(C)for(let j of C){if(j===b.found)break;if(j.type==="newline"){X(j,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}if(R.start<b.found.offset-1024)X(b.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else if(N)if("source"in N&&N.source?.[0]===":")X(N,"MISSING_CHAR",`Missing space after : in ${Q}`);else X(b.start,"MISSING_CHAR",`Missing , or : between ${Q} items`);let m=N?_($,N,b,X):b.found?q($,b.end,C,null,b,X):null;if(m){if(L$(N))X(m.range,"BLOCK_IN_FLOW",F$)}else if(b.comment)if(I.comment)I.comment+=`
115
+ `+b.comment;else I.comment=b.comment;let K=new mL.Pair(I,m);if($.options.keepSourceTokens)K.srcToken=S;if(U){let j=J;if(cL.mapIncludes($,j.items,I))X(E,"DUPLICATE_KEY","Map keys must be unique");j.items.push(K)}else{let j=new W5.YAMLMap($.schema);j.flow=!0,j.items.push(K);let y=(m??I).range;j.range=[I.range[0],y[1],y[2]],J.items.push(j)}V=m?m.range[2]:b.end}}let B=U?"}":"]",[F,...L]=Z.end,G=V;if(F?.source===B)G=F.offset+F.source.length;else{let H=Q[0].toUpperCase()+Q.substring(1),S=W?`${H} must end with a ${B}`:`${H} in block collection must be sufficiently indented and end with a ${B}`;if(X(V,W?"MISSING_CHAR":"BAD_INDENT",S),F&&F.source.length!==1)L.unshift(F)}if(L.length>0){let H=lL.resolveEnd(L,G,$.options.strict,X);if(H.comment)if(J.comment)J.comment+=`
116
+ `+H.comment;else J.comment=H.comment;J.range=[Z.offset,G,H.offset]}else J.range=[Z.offset,G,G];return J}rL.resolveFlowCollection=pL});var F5=M((ZM)=>{var nL=g(),aL=s(),oL=y1(),tL=x1(),eL=J5(),_M=B5(),qM=G5();function M$(_,q,$,Z,X,z){let U=$.type==="block-map"?eL.resolveBlockMap(_,q,$,Z,z):$.type==="block-seq"?_M.resolveBlockSeq(_,q,$,Z,z):qM.resolveFlowCollection(_,q,$,Z,z),Q=U.constructor;if(X==="!"||X===Q.tagName)return U.tag=Q.tagName,U;if(X)U.tag=X;return U}function $M(_,q,$,Z,X){let z=Z.tag,U=!z?null:q.directives.tagName(z.source,(B)=>X(z,"TAG_RESOLVE_FAILED",B));if($.type==="block-seq"){let{anchor:B,newlineAfterProp:F}=Z,L=B&&z?B.offset>z.offset?B:z:B??z;if(L&&(!F||F.offset<L.offset))X(L,"MISSING_CHAR","Missing newline after block sequence props")}let Q=$.type==="block-map"?"map":$.type==="block-seq"?"seq":$.start.source==="{"?"map":"seq";if(!z||!U||U==="!"||U===oL.YAMLMap.tagName&&Q==="map"||U===tL.YAMLSeq.tagName&&Q==="seq")return M$(_,q,$,X,U);let Y=q.schema.tags.find((B)=>B.tag===U&&B.collection===Q);if(!Y){let B=q.schema.knownTags[U];if(B?.collection===Q)q.schema.tags.push(Object.assign({},B,{default:!1})),Y=B;else{if(B)X(z,"BAD_COLLECTION_TYPE",`${B.tag} used for ${Q} collection, but expects ${B.collection??"scalar"}`,!0);else X(z,"TAG_RESOLVE_FAILED",`Unresolved tag: ${U}`,!0);return M$(_,q,$,X,U)}}let J=M$(_,q,$,X,U,Y),W=Y.resolve?.(J,(B)=>X(z,"TAG_RESOLVE_FAILED",B),q.options)??J,V=nL.isNode(W)?W:new aL.Scalar(W);if(V.range=J.range,V.tag=U,Y?.format)V.format=Y.format;return V}ZM.composeCollection=$M});var I$=M((YM)=>{var H$=s();function zM(_,q,$){let Z=q.offset,X=UM(q,_.options.strict,$);if(!X)return{value:"",type:null,comment:"",range:[Z,Z,Z]};let z=X.mode===">"?H$.Scalar.BLOCK_FOLDED:H$.Scalar.BLOCK_LITERAL,U=q.source?QM(q.source):[],Q=U.length;for(let G=U.length-1;G>=0;--G){let H=U[G][1];if(H===""||H==="\r")Q=G;else break}if(Q===0){let G=X.chomp==="+"&&U.length>0?`
117
+ `.repeat(Math.max(1,U.length-1)):"",H=Z+X.length;if(q.source)H+=q.source.length;return{value:G,type:z,comment:X.comment,range:[Z,H,H]}}let Y=q.indent+X.indent,J=q.offset+X.length,W=0;for(let G=0;G<Q;++G){let[H,S]=U[G];if(S===""||S==="\r"){if(X.indent===0&&H.length>Y)Y=H.length}else{if(H.length<Y)$(J+H.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator");if(X.indent===0)Y=H.length;if(W=G,Y===0&&!_.atRoot)$(J,"BAD_INDENT","Block scalar values in collections must be indented");break}J+=H.length+S.length+1}for(let G=U.length-1;G>=Q;--G)if(U[G][0].length>Y)Q=G+1;let V="",B="",F=!1;for(let G=0;G<W;++G)V+=U[G][0].slice(Y)+`
118
+ `;for(let G=W;G<Q;++G){let[H,S]=U[G];J+=H.length+S.length+1;let O=S[S.length-1]==="\r";if(O)S=S.slice(0,-1);if(S&&H.length<Y){let C=`Block scalar lines must not be less indented than their ${X.indent?"explicit indentation indicator":"first line"}`;$(J-S.length-(O?2:1),"BAD_INDENT",C),H=""}if(z===H$.Scalar.BLOCK_LITERAL)V+=B+H.slice(Y)+S,B=`
119
+ `;else if(H.length>Y||S[0]==="\t"){if(B===" ")B=`
120
+ `;else if(!F&&B===`
121
+ `)B=`
122
122
 
123
- `;V+=J+M.slice(Y)+w,J=`
124
- `,G=!0}else if(w==="")if(J===`
123
+ `;V+=B+H.slice(Y)+S,B=`
124
+ `,F=!0}else if(S==="")if(B===`
125
125
  `)V+=`
126
- `;else J=`
127
- `;else V+=J+w,J=" ",G=!1}switch(X.chomp){case"-":break;case"+":for(let F=Q;F<U.length;++F)V+=`
128
- `+U[F][0].slice(Y);if(V[V.length-1]!==`
126
+ `;else B=`
127
+ `;else V+=B+S,B=" ",F=!1}switch(X.chomp){case"-":break;case"+":for(let G=Q;G<U.length;++G)V+=`
128
+ `+U[G][0].slice(Y);if(V[V.length-1]!==`
129
129
  `)V+=`
130
130
  `;break;default:V+=`
131
- `}let L=Z+X.length+q.source.length;return{value:V,type:z,comment:X.comment,range:[Z,L,L]}}function mL({offset:_,props:q},$,Z){if(q[0].type!=="block-scalar-header")return Z(q[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:X}=q[0],z=X[0],U=0,Q="",Y=-1;for(let J=1;J<X.length;++J){let G=X[J];if(!Q&&(G==="-"||G==="+"))Q=G;else{let L=Number(G);if(!U&&L)U=L;else if(Y===-1)Y=_+J}}if(Y!==-1)Z(Y,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${X}`);let B=!1,W="",V=X.length;for(let J=1;J<q.length;++J){let G=q[J];switch(G.type){case"space":B=!0;case"newline":V+=G.source.length;break;case"comment":if($&&!B)Z(G,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");V+=G.source.length,W=G.source.substring(1);break;case"error":Z(G,"UNEXPECTED_TOKEN",G.message),V+=G.source.length;break;default:{let L=`Unexpected token in block scalar header: ${G.type}`;Z(G,"UNEXPECTED_TOKEN",L);let F=G.source;if(F&&typeof F==="string")V+=F.length}}}return{mode:z,indent:U,chomp:Q,comment:W,length:V}}function dL(_){let q=_.split(/\n( *)/),$=q[0],Z=$.match(/^( *)/),z=[Z?.[1]?[Z[1],$.slice(Z[1].length)]:["",$]];for(let U=1;U<q.length;U+=2)z.push([q[U],q[U+1]]);return z}lL.resolveBlockScalar=uL});var W$=H((eL)=>{var J$=r(),cL=J0();function pL(_,q,$){let{offset:Z,type:X,source:z,end:U}=_,Q,Y,B=(J,G,L)=>$(Z+J,G,L);switch(X){case"scalar":Q=J$.Scalar.PLAIN,Y=rL(z,B);break;case"single-quoted-scalar":Q=J$.Scalar.QUOTE_SINGLE,Y=sL(z,B);break;case"double-quoted-scalar":Q=J$.Scalar.QUOTE_DOUBLE,Y=nL(z,B);break;default:return $(_,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${X}`),{value:"",type:null,comment:"",range:[Z,Z+z.length,Z+z.length]}}let W=Z+z.length,V=cL.resolveEnd(U,W,q,$);return{value:Y,type:Q,comment:V.comment,range:[Z,W,V.offset]}}function rL(_,q){let $="";switch(_[0]){case"\t":$="a tab character";break;case",":$="flow indicator character ,";break;case"%":$="directive indicator character %";break;case"|":case">":{$=`block scalar indicator ${_[0]}`;break}case"@":case"`":{$=`reserved character ${_[0]}`;break}}if($)q(0,"BAD_SCALAR_START",`Plain value cannot start with ${$}`);return U5(_)}function sL(_,q){if(_[_.length-1]!=="'"||_.length===1)q(_.length,"MISSING_CHAR","Missing closing 'quote");return U5(_.slice(1,-1)).replace(/''/g,"'")}function U5(_){let q,$;try{q=new RegExp(`(.*?)(?<![ ])[ ]*\r?
131
+ `}let L=Z+X.length+q.source.length;return{value:V,type:z,comment:X.comment,range:[Z,L,L]}}function UM({offset:_,props:q},$,Z){if(q[0].type!=="block-scalar-header")return Z(q[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:X}=q[0],z=X[0],U=0,Q="",Y=-1;for(let B=1;B<X.length;++B){let F=X[B];if(!Q&&(F==="-"||F==="+"))Q=F;else{let L=Number(F);if(!U&&L)U=L;else if(Y===-1)Y=_+B}}if(Y!==-1)Z(Y,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${X}`);let J=!1,W="",V=X.length;for(let B=1;B<q.length;++B){let F=q[B];switch(F.type){case"space":J=!0;case"newline":V+=F.source.length;break;case"comment":if($&&!J)Z(F,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");V+=F.source.length,W=F.source.substring(1);break;case"error":Z(F,"UNEXPECTED_TOKEN",F.message),V+=F.source.length;break;default:{let L=`Unexpected token in block scalar header: ${F.type}`;Z(F,"UNEXPECTED_TOKEN",L);let G=F.source;if(G&&typeof G==="string")V+=G.length}}}return{mode:z,indent:U,chomp:Q,comment:W,length:V}}function QM(_){let q=_.split(/\n( *)/),$=q[0],Z=$.match(/^( *)/),z=[Z?.[1]?[Z[1],$.slice(Z[1].length)]:["",$]];for(let U=1;U<q.length;U+=2)z.push([q[U],q[U+1]]);return z}YM.resolveBlockScalar=zM});var K$=M((IM)=>{var T$=s(),BM=G0();function WM(_,q,$){let{offset:Z,type:X,source:z,end:U}=_,Q,Y,J=(B,F,L)=>$(Z+B,F,L);switch(X){case"scalar":Q=T$.Scalar.PLAIN,Y=VM(z,J);break;case"single-quoted-scalar":Q=T$.Scalar.QUOTE_SINGLE,Y=GM(z,J);break;case"double-quoted-scalar":Q=T$.Scalar.QUOTE_DOUBLE,Y=FM(z,J);break;default:return $(_,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${X}`),{value:"",type:null,comment:"",range:[Z,Z+z.length,Z+z.length]}}let W=Z+z.length,V=BM.resolveEnd(U,W,q,$);return{value:Y,type:Q,comment:V.comment,range:[Z,W,V.offset]}}function VM(_,q){let $="";switch(_[0]){case"\t":$="a tab character";break;case",":$="flow indicator character ,";break;case"%":$="directive indicator character %";break;case"|":case">":{$=`block scalar indicator ${_[0]}`;break}case"@":case"`":{$=`reserved character ${_[0]}`;break}}if($)q(0,"BAD_SCALAR_START",`Plain value cannot start with ${$}`);return L5(_)}function GM(_,q){if(_[_.length-1]!=="'"||_.length===1)q(_.length,"MISSING_CHAR","Missing closing 'quote");return L5(_.slice(1,-1)).replace(/''/g,"'")}function L5(_){let q,$;try{q=new RegExp(`(.*?)(?<![ ])[ ]*\r?
132
132
  `,"sy"),$=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
133
133
  `,"sy")}catch{q=/(.*?)[ \t]*\r?\n/sy,$=/[ \t]*(.*?)[ \t]*\r?\n/sy}let Z=q.exec(_);if(!Z)return _;let X=Z[1],z=" ",U=q.lastIndex;$.lastIndex=U;while(Z=$.exec(_)){if(Z[1]==="")if(z===`
134
134
  `)X+=z;else z=`
135
- `;else X+=z+Z[1],z=" ";U=$.lastIndex}let Q=/[ \t]*(.*)/sy;return Q.lastIndex=U,Z=Q.exec(_),X+z+(Z?.[1]??"")}function nL(_,q){let $="";for(let Z=1;Z<_.length-1;++Z){let X=_[Z];if(X==="\r"&&_[Z+1]===`
135
+ `;else X+=z+Z[1],z=" ";U=$.lastIndex}let Q=/[ \t]*(.*)/sy;return Q.lastIndex=U,Z=Q.exec(_),X+z+(Z?.[1]??"")}function FM(_,q){let $="";for(let Z=1;Z<_.length-1;++Z){let X=_[Z];if(X==="\r"&&_[Z+1]===`
136
136
  `)continue;if(X===`
137
- `){let{fold:z,offset:U}=aL(_,Z);$+=z,Z=U}else if(X==="\\"){let z=_[++Z],U=oL[z];if(U)$+=U;else if(z===`
137
+ `){let{fold:z,offset:U}=LM(_,Z);$+=z,Z=U}else if(X==="\\"){let z=_[++Z],U=MM[z];if(U)$+=U;else if(z===`
138
138
  `){z=_[Z+1];while(z===" "||z==="\t")z=_[++Z+1]}else if(z==="\r"&&_[Z+1]===`
139
- `){z=_[++Z+1];while(z===" "||z==="\t")z=_[++Z+1]}else if(z==="x"||z==="u"||z==="U"){let Q={x:2,u:4,U:8}[z];$+=tL(_,Z+1,Q,q),Z+=Q}else{let Q=_.substr(Z-1,2);q(Z-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${Q}`),$+=Q}}else if(X===" "||X==="\t"){let z=Z,U=_[Z+1];while(U===" "||U==="\t")U=_[++Z+1];if(U!==`
139
+ `){z=_[++Z+1];while(z===" "||z==="\t")z=_[++Z+1]}else if(z==="x"||z==="u"||z==="U"){let Q={x:2,u:4,U:8}[z];$+=HM(_,Z+1,Q,q),Z+=Q}else{let Q=_.substr(Z-1,2);q(Z-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${Q}`),$+=Q}}else if(X===" "||X==="\t"){let z=Z,U=_[Z+1];while(U===" "||U==="\t")U=_[++Z+1];if(U!==`
140
140
  `&&!(U==="\r"&&_[Z+2]===`
141
- `))$+=Z>z?_.slice(z,Z+1):X}else $+=X}if(_[_.length-1]!=='"'||_.length===1)q(_.length,"MISSING_CHAR",'Missing closing "quote');return $}function aL(_,q){let $="",Z=_[q+1];while(Z===" "||Z==="\t"||Z===`
141
+ `))$+=Z>z?_.slice(z,Z+1):X}else $+=X}if(_[_.length-1]!=='"'||_.length===1)q(_.length,"MISSING_CHAR",'Missing closing "quote');return $}function LM(_,q){let $="",Z=_[q+1];while(Z===" "||Z==="\t"||Z===`
142
142
  `||Z==="\r"){if(Z==="\r"&&_[q+2]!==`
143
143
  `)break;if(Z===`
144
144
  `)$+=`
145
- `;q+=1,Z=_[q+1]}if(!$)$=" ";return{fold:$,offset:q}}var oL={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
146
- `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function tL(_,q,$,Z){let X=_.substr(q,$),U=X.length===$&&/^[0-9a-fA-F]+$/.test(X)?parseInt(X,16):NaN;if(isNaN(U)){let Q=_.substr(q-2,$+2);return Z(q-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${Q}`),Q}return String.fromCodePoint(U)}eL.resolveFlowScalar=pL});var Y5=H((UH)=>{var i1=g(),Q5=r(),qH=B$(),$H=W$();function ZH(_,q,$,Z){let{value:X,type:z,comment:U,range:Q}=q.type==="block-scalar"?qH.resolveBlockScalar(_,q,Z):$H.resolveFlowScalar(q,_.options.strict,Z),Y=$?_.directives.tagName($.source,(V)=>Z($,"TAG_RESOLVE_FAILED",V)):null,B;if(_.options.stringKeys&&_.atKey)B=_.schema[i1.SCALAR];else if(Y)B=XH(_.schema,X,Y,$,Z);else if(q.type==="scalar")B=zH(_,X,q,Z);else B=_.schema[i1.SCALAR];let W;try{let V=B.resolve(X,(J)=>Z($??q,"TAG_RESOLVE_FAILED",J),_.options);W=i1.isScalar(V)?V:new Q5.Scalar(V)}catch(V){let J=V instanceof Error?V.message:String(V);Z($??q,"TAG_RESOLVE_FAILED",J),W=new Q5.Scalar(X)}if(W.range=Q,W.source=X,z)W.type=z;if(Y)W.tag=Y;if(B.format)W.format=B.format;if(U)W.comment=U;return W}function XH(_,q,$,Z,X){if($==="!")return _[i1.SCALAR];let z=[];for(let Q of _.tags)if(!Q.collection&&Q.tag===$)if(Q.default&&Q.test)z.push(Q);else return Q;for(let Q of z)if(Q.test?.test(q))return Q;let U=_.knownTags[$];if(U&&!U.collection)return _.tags.push(Object.assign({},U,{default:!1,test:void 0})),U;return X(Z,"TAG_RESOLVE_FAILED",`Unresolved tag: ${$}`,$!=="tag:yaml.org,2002:str"),_[i1.SCALAR]}function zH({atKey:_,directives:q,schema:$},Z,X,z){let U=$.tags.find((Q)=>(Q.default===!0||_&&Q.default==="key")&&Q.test?.test(Z))||$[i1.SCALAR];if($.compat){let Q=$.compat.find((Y)=>Y.default&&Y.test?.test(Z))??$[i1.SCALAR];if(U.tag!==Q.tag){let Y=q.tagString(U.tag),B=q.tagString(Q.tag),W=`Value may be parsed as either ${Y} or ${B}`;z(X,"TAG_RESOLVE_FAILED",W,!0)}}return U}UH.composeScalar=ZH});var B5=H((BH)=>{function YH(_,q,$){if(q){$??($=q.length);for(let Z=$-1;Z>=0;--Z){let X=q[Z];switch(X.type){case"space":case"comment":case"newline":_-=X.source.length;continue}X=q[++Z];while(X?.type==="space")_+=X.source.length,X=q[++Z];break}}return _}BH.emptyScalarPosition=YH});var V5=H((IH)=>{var WH=j0(),VH=g(),FH=z5(),J5=Y5(),GH=J0(),LH=B5(),HH={composeNode:W5,composeEmptyNode:V$};function W5(_,q,$,Z){let X=_.atKey,{spaceBefore:z,comment:U,anchor:Q,tag:Y}=$,B,W=!0;switch(q.type){case"alias":if(B=MH(_,q,Z),Q||Y)Z(q,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(B=J5.composeScalar(_,q,Y,Z),Q)B.anchor=Q.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":if(B=FH.composeCollection(HH,_,q,$,Z),Q)B.anchor=Q.source.substring(1);break;default:{let V=q.type==="error"?q.message:`Unsupported token (type: ${q.type})`;Z(q,"UNEXPECTED_TOKEN",V),B=V$(_,q.offset,void 0,null,$,Z),W=!1}}if(Q&&B.anchor==="")Z(Q,"BAD_ALIAS","Anchor cannot be an empty string");if(X&&_.options.stringKeys&&(!VH.isScalar(B)||typeof B.value!=="string"||B.tag&&B.tag!=="tag:yaml.org,2002:str"))Z(Y??q,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(z)B.spaceBefore=!0;if(U)if(q.type==="scalar"&&q.source==="")B.comment=U;else B.commentBefore=U;if(_.options.keepSourceTokens&&W)B.srcToken=q;return B}function V$(_,q,$,Z,{spaceBefore:X,comment:z,anchor:U,tag:Q,end:Y},B){let W={type:"scalar",offset:LH.emptyScalarPosition(q,$,Z),indent:-1,source:""},V=J5.composeScalar(_,W,Q,B);if(U){if(V.anchor=U.source.substring(1),V.anchor==="")B(U,"BAD_ALIAS","Anchor cannot be an empty string")}if(X)V.spaceBefore=!0;if(z)V.comment=z,V.range[2]=Y;return V}function MH({options:_},{offset:q,source:$,end:Z},X){let z=new WH.Alias($.substring(1));if(z.source==="")X(q,"BAD_ALIAS","Alias cannot be an empty string");if(z.source.endsWith(":"))X(q+$.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let U=q+$.length,Q=GH.resolveEnd(Z,U,_.strict,X);if(z.range=[q,U,Q.offset],Q.comment)z.comment=Q.comment;return z}IH.composeEmptyNode=V$;IH.composeNode=W5});var G5=H((PH)=>{var DH=m0(),F5=V5(),wH=J0(),SH=l0();function RH(_,q,{offset:$,start:Z,value:X,end:z},U){let Q=Object.assign({_directives:q},_),Y=new DH.Document(void 0,Q),B={atKey:!1,atRoot:!0,directives:Y.directives,options:Y.options,schema:Y.schema},W=SH.resolveProps(Z,{indicator:"doc-start",next:X??z?.[0],offset:$,onError:U,parentIndent:0,startOnNewline:!0});if(W.found){if(Y.directives.docStart=!0,X&&(X.type==="block-map"||X.type==="block-seq")&&!W.hasNewline)U(W.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}Y.contents=X?F5.composeNode(B,X,W,U):F5.composeEmptyNode(B,W.end,Z,null,W,U);let V=Y.contents.range[2],J=wH.resolveEnd(z,V,!1,U);if(J.comment)Y.comment=J.comment;return Y.range=[$,V,J.offset],Y}PH.composeDoc=RH});var F$=H((CH)=>{var AH=x("process"),OH=M9(),NH=m0(),i0=d0(),L5=g(),fH=G5(),EH=J0();function c0(_){if(typeof _==="number")return[_,_+1];if(Array.isArray(_))return _.length===2?_:[_[0],_[1]];let{offset:q,source:$}=_;return[q,q+(typeof $==="string"?$.length:1)]}function H5(_){let q="",$=!1,Z=!1;for(let X=0;X<_.length;++X){let z=_[X];switch(z[0]){case"#":q+=(q===""?"":Z?`
145
+ `;q+=1,Z=_[q+1]}if(!$)$=" ";return{fold:$,offset:q}}var MM={"0":"\x00",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
146
+ `,r:"\r",t:"\t",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\","\t":"\t"};function HM(_,q,$,Z){let X=_.substr(q,$),U=X.length===$&&/^[0-9a-fA-F]+$/.test(X)?parseInt(X,16):NaN;if(isNaN(U)){let Q=_.substr(q-2,$+2);return Z(q-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${Q}`),Q}return String.fromCodePoint(U)}IM.resolveFlowScalar=WM});var H5=M((jM)=>{var n1=g(),M5=s(),KM=I$(),DM=K$();function wM(_,q,$,Z){let{value:X,type:z,comment:U,range:Q}=q.type==="block-scalar"?KM.resolveBlockScalar(_,q,Z):DM.resolveFlowScalar(q,_.options.strict,Z),Y=$?_.directives.tagName($.source,(V)=>Z($,"TAG_RESOLVE_FAILED",V)):null,J;if(_.options.stringKeys&&_.atKey)J=_.schema[n1.SCALAR];else if(Y)J=SM(_.schema,X,Y,$,Z);else if(q.type==="scalar")J=RM(_,X,q,Z);else J=_.schema[n1.SCALAR];let W;try{let V=J.resolve(X,(B)=>Z($??q,"TAG_RESOLVE_FAILED",B),_.options);W=n1.isScalar(V)?V:new M5.Scalar(V)}catch(V){let B=V instanceof Error?V.message:String(V);Z($??q,"TAG_RESOLVE_FAILED",B),W=new M5.Scalar(X)}if(W.range=Q,W.source=X,z)W.type=z;if(Y)W.tag=Y;if(J.format)W.format=J.format;if(U)W.comment=U;return W}function SM(_,q,$,Z,X){if($==="!")return _[n1.SCALAR];let z=[];for(let Q of _.tags)if(!Q.collection&&Q.tag===$)if(Q.default&&Q.test)z.push(Q);else return Q;for(let Q of z)if(Q.test?.test(q))return Q;let U=_.knownTags[$];if(U&&!U.collection)return _.tags.push(Object.assign({},U,{default:!1,test:void 0})),U;return X(Z,"TAG_RESOLVE_FAILED",`Unresolved tag: ${$}`,$!=="tag:yaml.org,2002:str"),_[n1.SCALAR]}function RM({atKey:_,directives:q,schema:$},Z,X,z){let U=$.tags.find((Q)=>(Q.default===!0||_&&Q.default==="key")&&Q.test?.test(Z))||$[n1.SCALAR];if($.compat){let Q=$.compat.find((Y)=>Y.default&&Y.test?.test(Z))??$[n1.SCALAR];if(U.tag!==Q.tag){let Y=q.tagString(U.tag),J=q.tagString(Q.tag),W=`Value may be parsed as either ${Y} or ${J}`;z(X,"TAG_RESOLVE_FAILED",W,!0)}}return U}jM.composeScalar=wM});var I5=M((OM)=>{function AM(_,q,$){if(q){$??($=q.length);for(let Z=$-1;Z>=0;--Z){let X=q[Z];switch(X.type){case"space":case"comment":case"newline":_-=X.source.length;continue}X=q[++Z];while(X?.type==="space")_+=X.source.length,X=q[++Z];break}}return _}OM.emptyScalarPosition=AM});var D5=M((vM)=>{var NM=N0(),EM=g(),CM=F5(),T5=H5(),bM=G0(),yM=I5(),xM={composeNode:K5,composeEmptyNode:D$};function K5(_,q,$,Z){let X=_.atKey,{spaceBefore:z,comment:U,anchor:Q,tag:Y}=$,J,W=!0;switch(q.type){case"alias":if(J=hM(_,q,Z),Q||Y)Z(q,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":if(J=T5.composeScalar(_,q,Y,Z),Q)J.anchor=Q.source.substring(1);break;case"block-map":case"block-seq":case"flow-collection":if(J=CM.composeCollection(xM,_,q,$,Z),Q)J.anchor=Q.source.substring(1);break;default:{let V=q.type==="error"?q.message:`Unsupported token (type: ${q.type})`;Z(q,"UNEXPECTED_TOKEN",V),J=D$(_,q.offset,void 0,null,$,Z),W=!1}}if(Q&&J.anchor==="")Z(Q,"BAD_ALIAS","Anchor cannot be an empty string");if(X&&_.options.stringKeys&&(!EM.isScalar(J)||typeof J.value!=="string"||J.tag&&J.tag!=="tag:yaml.org,2002:str"))Z(Y??q,"NON_STRING_KEY","With stringKeys, all keys must be strings");if(z)J.spaceBefore=!0;if(U)if(q.type==="scalar"&&q.source==="")J.comment=U;else J.commentBefore=U;if(_.options.keepSourceTokens&&W)J.srcToken=q;return J}function D$(_,q,$,Z,{spaceBefore:X,comment:z,anchor:U,tag:Q,end:Y},J){let W={type:"scalar",offset:yM.emptyScalarPosition(q,$,Z),indent:-1,source:""},V=T5.composeScalar(_,W,Q,J);if(U){if(V.anchor=U.source.substring(1),V.anchor==="")J(U,"BAD_ALIAS","Anchor cannot be an empty string")}if(X)V.spaceBefore=!0;if(z)V.comment=z,V.range[2]=Y;return V}function hM({options:_},{offset:q,source:$,end:Z},X){let z=new NM.Alias($.substring(1));if(z.source==="")X(q,"BAD_ALIAS","Alias cannot be an empty string");if(z.source.endsWith(":"))X(q+$.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let U=q+$.length,Q=bM.resolveEnd(Z,U,_.strict,X);if(z.range=[q,U,Q.offset],Q.comment)z.comment=Q.comment;return z}vM.composeEmptyNode=D$;vM.composeNode=K5});var S5=M((iM)=>{var uM=c0(),w5=D5(),mM=G0(),dM=r0();function lM(_,q,{offset:$,start:Z,value:X,end:z},U){let Q=Object.assign({_directives:q},_),Y=new uM.Document(void 0,Q),J={atKey:!1,atRoot:!0,directives:Y.directives,options:Y.options,schema:Y.schema},W=dM.resolveProps(Z,{indicator:"doc-start",next:X??z?.[0],offset:$,onError:U,parentIndent:0,startOnNewline:!0});if(W.found){if(Y.directives.docStart=!0,X&&(X.type==="block-map"||X.type==="block-seq")&&!W.hasNewline)U(W.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")}Y.contents=X?w5.composeNode(J,X,W,U):w5.composeEmptyNode(J,W.end,Z,null,W,U);let V=Y.contents.range[2],B=mM.resolveEnd(z,V,!1,U);if(B.comment)Y.comment=B.comment;return Y.range=[$,V,B.offset],Y}iM.composeDoc=lM});var w$=M((oM)=>{var pM=v("process"),rM=P9(),sM=c0(),s0=p0(),R5=g(),nM=S5(),aM=G0();function n0(_){if(typeof _==="number")return[_,_+1];if(Array.isArray(_))return _.length===2?_:[_[0],_[1]];let{offset:q,source:$}=_;return[q,q+(typeof $==="string"?$.length:1)]}function j5(_){let q="",$=!1,Z=!1;for(let X=0;X<_.length;++X){let z=_[X];switch(z[0]){case"#":q+=(q===""?"":Z?`
147
147
 
148
148
  `:`
149
- `)+(z.substring(1)||" "),$=!0,Z=!1;break;case"%":if(_[X+1]?.[0]!=="#")X+=1;$=!1;break;default:if(!$)Z=!0;$=!1}}return{comment:q,afterEmptyLine:Z}}class M5{constructor(_={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(q,$,Z,X)=>{let z=c0(q);if(X)this.warnings.push(new i0.YAMLWarning(z,$,Z));else this.errors.push(new i0.YAMLParseError(z,$,Z))},this.directives=new OH.Directives({version:_.version||"1.2"}),this.options=_}decorate(_,q){let{comment:$,afterEmptyLine:Z}=H5(this.prelude);if($){let X=_.contents;if(q)_.comment=_.comment?`${_.comment}
150
- ${$}`:$;else if(Z||_.directives.docStart||!X)_.commentBefore=$;else if(L5.isCollection(X)&&!X.flow&&X.items.length>0){let z=X.items[0];if(L5.isPair(z))z=z.key;let U=z.commentBefore;z.commentBefore=U?`${$}
149
+ `)+(z.substring(1)||" "),$=!0,Z=!1;break;case"%":if(_[X+1]?.[0]!=="#")X+=1;$=!1;break;default:if(!$)Z=!0;$=!1}}return{comment:q,afterEmptyLine:Z}}class P5{constructor(_={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(q,$,Z,X)=>{let z=n0(q);if(X)this.warnings.push(new s0.YAMLWarning(z,$,Z));else this.errors.push(new s0.YAMLParseError(z,$,Z))},this.directives=new rM.Directives({version:_.version||"1.2"}),this.options=_}decorate(_,q){let{comment:$,afterEmptyLine:Z}=j5(this.prelude);if($){let X=_.contents;if(q)_.comment=_.comment?`${_.comment}
150
+ ${$}`:$;else if(Z||_.directives.docStart||!X)_.commentBefore=$;else if(R5.isCollection(X)&&!X.flow&&X.items.length>0){let z=X.items[0];if(R5.isPair(z))z=z.key;let U=z.commentBefore;z.commentBefore=U?`${$}
151
151
  ${U}`:$}else{let z=X.commentBefore;X.commentBefore=z?`${$}
152
- ${z}`:$}}if(q)Array.prototype.push.apply(_.errors,this.errors),Array.prototype.push.apply(_.warnings,this.warnings);else _.errors=this.errors,_.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:H5(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(_,q=!1,$=-1){for(let Z of _)yield*this.next(Z);yield*this.end(q,$)}*next(_){if(AH.env.LOG_STREAM)console.dir(_,{depth:null});switch(_.type){case"directive":this.directives.add(_.source,(q,$,Z)=>{let X=c0(_);X[0]+=q,this.onError(X,"BAD_DIRECTIVE",$,Z)}),this.prelude.push(_.source),this.atDirectives=!0;break;case"document":{let q=fH.composeDoc(this.options,this.directives,_,this.onError);if(this.atDirectives&&!q.directives.docStart)this.onError(_,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(q,!1),this.doc)yield this.doc;this.doc=q,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(_.source);break;case"error":{let q=_.source?`${_.message}: ${JSON.stringify(_.source)}`:_.message,$=new i0.YAMLParseError(c0(_),"UNEXPECTED_TOKEN",q);if(this.atDirectives||!this.doc)this.errors.push($);else this.doc.errors.push($);break}case"doc-end":{if(!this.doc){this.errors.push(new i0.YAMLParseError(c0(_),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let q=EH.resolveEnd(_.end,_.offset+_.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),q.comment){let $=this.doc.comment;this.doc.comment=$?`${$}
153
- ${q.comment}`:q.comment}this.doc.range[2]=q.offset;break}default:this.errors.push(new i0.YAMLParseError(c0(_),"UNEXPECTED_TOKEN",`Unsupported token ${_.type}`))}}*end(_=!1,q=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(_){let $=Object.assign({_directives:this.directives},this.options),Z=new NH.Document(void 0,$);if(this.atDirectives)this.onError(q,"MISSING_CHAR","Missing directives-end indicator line");Z.range=[0,q,q],this.decorate(Z,!1),yield Z}}}CH.Composer=M5});var K5=H((mH)=>{var yH=B$(),hH=W$(),xH=d0(),I5=f0();function gH(_,q=!0,$){if(_){let Z=(X,z,U)=>{let Q=typeof X==="number"?X:Array.isArray(X)?X[0]:X.offset;if($)$(Q,z,U);else throw new xH.YAMLParseError([Q,Q+1],z,U)};switch(_.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return hH.resolveFlowScalar(_,q,Z);case"block-scalar":return yH.resolveBlockScalar({options:{strict:q}},_,Z)}}return null}function kH(_,q){let{implicitKey:$=!1,indent:Z,inFlow:X=!1,offset:z=-1,type:U="PLAIN"}=q,Q=I5.stringifyString({type:U,value:_},{implicitKey:$,indent:Z>0?" ".repeat(Z):"",inFlow:X,options:{blockQuote:!0,lineWidth:-1}}),Y=q.end??[{type:"newline",offset:-1,indent:Z,source:`
154
- `}];switch(Q[0]){case"|":case">":{let B=Q.indexOf(`
155
- `),W=Q.substring(0,B),V=Q.substring(B+1)+`
156
- `,J=[{type:"block-scalar-header",offset:z,indent:Z,source:W}];if(!T5(J,Y))J.push({type:"newline",offset:-1,indent:Z,source:`
157
- `});return{type:"block-scalar",offset:z,indent:Z,props:J,source:V}}case'"':return{type:"double-quoted-scalar",offset:z,indent:Z,source:Q,end:Y};case"'":return{type:"single-quoted-scalar",offset:z,indent:Z,source:Q,end:Y};default:return{type:"scalar",offset:z,indent:Z,source:Q,end:Y}}}function vH(_,q,$={}){let{afterKey:Z=!1,implicitKey:X=!1,inFlow:z=!1,type:U}=$,Q="indent"in _?_.indent:null;if(Z&&typeof Q==="number")Q+=2;if(!U)switch(_.type){case"single-quoted-scalar":U="QUOTE_SINGLE";break;case"double-quoted-scalar":U="QUOTE_DOUBLE";break;case"block-scalar":{let B=_.props[0];if(B.type!=="block-scalar-header")throw Error("Invalid block scalar header");U=B.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:U="PLAIN"}let Y=I5.stringifyString({type:U,value:q},{implicitKey:X||Q===null,indent:Q!==null&&Q>0?" ".repeat(Q):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}});switch(Y[0]){case"|":case">":uH(_,Y);break;case'"':G$(_,Y,"double-quoted-scalar");break;case"'":G$(_,Y,"single-quoted-scalar");break;default:G$(_,Y,"scalar")}}function uH(_,q){let $=q.indexOf(`
152
+ ${z}`:$}}if(q)Array.prototype.push.apply(_.errors,this.errors),Array.prototype.push.apply(_.warnings,this.warnings);else _.errors=this.errors,_.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:j5(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(_,q=!1,$=-1){for(let Z of _)yield*this.next(Z);yield*this.end(q,$)}*next(_){if(pM.env.LOG_STREAM)console.dir(_,{depth:null});switch(_.type){case"directive":this.directives.add(_.source,(q,$,Z)=>{let X=n0(_);X[0]+=q,this.onError(X,"BAD_DIRECTIVE",$,Z)}),this.prelude.push(_.source),this.atDirectives=!0;break;case"document":{let q=nM.composeDoc(this.options,this.directives,_,this.onError);if(this.atDirectives&&!q.directives.docStart)this.onError(_,"MISSING_CHAR","Missing directives-end/doc-start indicator line");if(this.decorate(q,!1),this.doc)yield this.doc;this.doc=q,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(_.source);break;case"error":{let q=_.source?`${_.message}: ${JSON.stringify(_.source)}`:_.message,$=new s0.YAMLParseError(n0(_),"UNEXPECTED_TOKEN",q);if(this.atDirectives||!this.doc)this.errors.push($);else this.doc.errors.push($);break}case"doc-end":{if(!this.doc){this.errors.push(new s0.YAMLParseError(n0(_),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let q=aM.resolveEnd(_.end,_.offset+_.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),q.comment){let $=this.doc.comment;this.doc.comment=$?`${$}
153
+ ${q.comment}`:q.comment}this.doc.range[2]=q.offset;break}default:this.errors.push(new s0.YAMLParseError(n0(_),"UNEXPECTED_TOKEN",`Unsupported token ${_.type}`))}}*end(_=!1,q=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(_){let $=Object.assign({_directives:this.directives},this.options),Z=new sM.Document(void 0,$);if(this.atDirectives)this.onError(q,"MISSING_CHAR","Missing directives-end indicator line");Z.range=[0,q,q],this.decorate(Z,!1),yield Z}}}oM.Composer=P5});var f5=M((UH)=>{var eM=I$(),_H=K$(),qH=p0(),A5=y0();function $H(_,q=!0,$){if(_){let Z=(X,z,U)=>{let Q=typeof X==="number"?X:Array.isArray(X)?X[0]:X.offset;if($)$(Q,z,U);else throw new qH.YAMLParseError([Q,Q+1],z,U)};switch(_.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return _H.resolveFlowScalar(_,q,Z);case"block-scalar":return eM.resolveBlockScalar({options:{strict:q}},_,Z)}}return null}function ZH(_,q){let{implicitKey:$=!1,indent:Z,inFlow:X=!1,offset:z=-1,type:U="PLAIN"}=q,Q=A5.stringifyString({type:U,value:_},{implicitKey:$,indent:Z>0?" ".repeat(Z):"",inFlow:X,options:{blockQuote:!0,lineWidth:-1}}),Y=q.end??[{type:"newline",offset:-1,indent:Z,source:`
154
+ `}];switch(Q[0]){case"|":case">":{let J=Q.indexOf(`
155
+ `),W=Q.substring(0,J),V=Q.substring(J+1)+`
156
+ `,B=[{type:"block-scalar-header",offset:z,indent:Z,source:W}];if(!O5(B,Y))B.push({type:"newline",offset:-1,indent:Z,source:`
157
+ `});return{type:"block-scalar",offset:z,indent:Z,props:B,source:V}}case'"':return{type:"double-quoted-scalar",offset:z,indent:Z,source:Q,end:Y};case"'":return{type:"single-quoted-scalar",offset:z,indent:Z,source:Q,end:Y};default:return{type:"scalar",offset:z,indent:Z,source:Q,end:Y}}}function XH(_,q,$={}){let{afterKey:Z=!1,implicitKey:X=!1,inFlow:z=!1,type:U}=$,Q="indent"in _?_.indent:null;if(Z&&typeof Q==="number")Q+=2;if(!U)switch(_.type){case"single-quoted-scalar":U="QUOTE_SINGLE";break;case"double-quoted-scalar":U="QUOTE_DOUBLE";break;case"block-scalar":{let J=_.props[0];if(J.type!=="block-scalar-header")throw Error("Invalid block scalar header");U=J.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:U="PLAIN"}let Y=A5.stringifyString({type:U,value:q},{implicitKey:X||Q===null,indent:Q!==null&&Q>0?" ".repeat(Q):"",inFlow:z,options:{blockQuote:!0,lineWidth:-1}});switch(Y[0]){case"|":case">":zH(_,Y);break;case'"':S$(_,Y,"double-quoted-scalar");break;case"'":S$(_,Y,"single-quoted-scalar");break;default:S$(_,Y,"scalar")}}function zH(_,q){let $=q.indexOf(`
158
158
  `),Z=q.substring(0,$),X=q.substring($+1)+`
159
- `;if(_.type==="block-scalar"){let z=_.props[0];if(z.type!=="block-scalar-header")throw Error("Invalid block scalar header");z.source=Z,_.source=X}else{let{offset:z}=_,U="indent"in _?_.indent:-1,Q=[{type:"block-scalar-header",offset:z,indent:U,source:Z}];if(!T5(Q,"end"in _?_.end:void 0))Q.push({type:"newline",offset:-1,indent:U,source:`
160
- `});for(let Y of Object.keys(_))if(Y!=="type"&&Y!=="offset")delete _[Y];Object.assign(_,{type:"block-scalar",indent:U,props:Q,source:X})}}function T5(_,q){if(q)for(let $ of q)switch($.type){case"space":case"comment":_.push($);break;case"newline":return _.push($),!0}return!1}function G$(_,q,$){switch(_.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":_.type=$,_.source=q;break;case"block-scalar":{let Z=_.props.slice(1),X=q.length;if(_.props[0].type==="block-scalar-header")X-=_.props[0].source.length;for(let z of Z)z.offset+=X;delete _.props,Object.assign(_,{type:$,source:q,end:Z});break}case"block-map":case"block-seq":{let X={type:"newline",offset:_.offset+q.length,indent:_.indent,source:`
161
- `};delete _.items,Object.assign(_,{type:$,source:q,end:[X]});break}default:{let Z="indent"in _?_.indent:-1,X="end"in _&&Array.isArray(_.end)?_.end.filter((z)=>z.type==="space"||z.type==="comment"||z.type==="newline"):[];for(let z of Object.keys(_))if(z!=="type"&&z!=="offset")delete _[z];Object.assign(_,{type:$,indent:Z,source:q,end:X})}}}mH.createScalarToken=kH;mH.resolveAsScalar=gH;mH.setScalarValue=vH});var D5=H((pH)=>{var cH=(_)=>("type"in _)?Zq(_):$q(_);function Zq(_){switch(_.type){case"block-scalar":{let q="";for(let $ of _.props)q+=Zq($);return q+_.source}case"block-map":case"block-seq":{let q="";for(let $ of _.items)q+=$q($);return q}case"flow-collection":{let q=_.start.source;for(let $ of _.items)q+=$q($);for(let $ of _.end)q+=$.source;return q}case"document":{let q=$q(_);if(_.end)for(let $ of _.end)q+=$.source;return q}default:{let q=_.source;if("end"in _&&_.end)for(let $ of _.end)q+=$.source;return q}}}function $q({start:_,key:q,sep:$,value:Z}){let X="";for(let z of _)X+=z.source;if(q)X+=Zq(q);if($)for(let z of $)X+=z.source;if(Z)X+=Zq(Z);return X}pH.stringify=cH});var R5=H((nH)=>{var L$=Symbol("break visit"),sH=Symbol("skip children"),w5=Symbol("remove item");function c1(_,q){if("type"in _&&_.type==="document")_={start:_.start,value:_.value};S5(Object.freeze([]),_,q)}c1.BREAK=L$;c1.SKIP=sH;c1.REMOVE=w5;c1.itemAtPath=(_,q)=>{let $=_;for(let[Z,X]of q){let z=$?.[Z];if(z&&"items"in z)$=z.items[X];else return}return $};c1.parentCollection=(_,q)=>{let $=c1.itemAtPath(_,q.slice(0,-1)),Z=q[q.length-1][0],X=$?.[Z];if(X&&"items"in X)return X;throw Error("Parent collection not found")};function S5(_,q,$){let Z=$(q,_);if(typeof Z==="symbol")return Z;for(let X of["key","value"]){let z=q[X];if(z&&"items"in z){for(let U=0;U<z.items.length;++U){let Q=S5(Object.freeze(_.concat([[X,U]])),z.items[U],$);if(typeof Q==="number")U=Q-1;else if(Q===L$)return L$;else if(Q===w5)z.items.splice(U,1),U-=1}if(typeof Z==="function"&&X==="key")Z=Z(q,_)}}return typeof Z==="function"?Z(q,_):Z}nH.visit=c1});var Xq=H((ZM)=>{var H$=K5(),oH=D5(),tH=R5(),M$="\uFEFF",I$="\x02",T$="\x18",K$="\x1F",eH=(_)=>!!_&&("items"in _),_M=(_)=>!!_&&(_.type==="scalar"||_.type==="single-quoted-scalar"||_.type==="double-quoted-scalar"||_.type==="block-scalar");function qM(_){switch(_){case M$:return"<BOM>";case I$:return"<DOC>";case T$:return"<FLOW_END>";case K$:return"<SCALAR>";default:return JSON.stringify(_)}}function $M(_){switch(_){case M$:return"byte-order-mark";case I$:return"doc-mode";case T$:return"flow-error-end";case K$:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
159
+ `;if(_.type==="block-scalar"){let z=_.props[0];if(z.type!=="block-scalar-header")throw Error("Invalid block scalar header");z.source=Z,_.source=X}else{let{offset:z}=_,U="indent"in _?_.indent:-1,Q=[{type:"block-scalar-header",offset:z,indent:U,source:Z}];if(!O5(Q,"end"in _?_.end:void 0))Q.push({type:"newline",offset:-1,indent:U,source:`
160
+ `});for(let Y of Object.keys(_))if(Y!=="type"&&Y!=="offset")delete _[Y];Object.assign(_,{type:"block-scalar",indent:U,props:Q,source:X})}}function O5(_,q){if(q)for(let $ of q)switch($.type){case"space":case"comment":_.push($);break;case"newline":return _.push($),!0}return!1}function S$(_,q,$){switch(_.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":_.type=$,_.source=q;break;case"block-scalar":{let Z=_.props.slice(1),X=q.length;if(_.props[0].type==="block-scalar-header")X-=_.props[0].source.length;for(let z of Z)z.offset+=X;delete _.props,Object.assign(_,{type:$,source:q,end:Z});break}case"block-map":case"block-seq":{let X={type:"newline",offset:_.offset+q.length,indent:_.indent,source:`
161
+ `};delete _.items,Object.assign(_,{type:$,source:q,end:[X]});break}default:{let Z="indent"in _?_.indent:-1,X="end"in _&&Array.isArray(_.end)?_.end.filter((z)=>z.type==="space"||z.type==="comment"||z.type==="newline"):[];for(let z of Object.keys(_))if(z!=="type"&&z!=="offset")delete _[z];Object.assign(_,{type:$,indent:Z,source:q,end:X})}}}UH.createScalarToken=ZH;UH.resolveAsScalar=$H;UH.setScalarValue=XH});var N5=M((WH)=>{var BH=(_)=>("type"in _)?Bq(_):Jq(_);function Bq(_){switch(_.type){case"block-scalar":{let q="";for(let $ of _.props)q+=Bq($);return q+_.source}case"block-map":case"block-seq":{let q="";for(let $ of _.items)q+=Jq($);return q}case"flow-collection":{let q=_.start.source;for(let $ of _.items)q+=Jq($);for(let $ of _.end)q+=$.source;return q}case"document":{let q=Jq(_);if(_.end)for(let $ of _.end)q+=$.source;return q}default:{let q=_.source;if("end"in _&&_.end)for(let $ of _.end)q+=$.source;return q}}}function Jq({start:_,key:q,sep:$,value:Z}){let X="";for(let z of _)X+=z.source;if(q)X+=Bq(q);if($)for(let z of $)X+=z.source;if(Z)X+=Bq(Z);return X}WH.stringify=BH});var b5=M((FH)=>{var R$=Symbol("break visit"),GH=Symbol("skip children"),E5=Symbol("remove item");function a1(_,q){if("type"in _&&_.type==="document")_={start:_.start,value:_.value};C5(Object.freeze([]),_,q)}a1.BREAK=R$;a1.SKIP=GH;a1.REMOVE=E5;a1.itemAtPath=(_,q)=>{let $=_;for(let[Z,X]of q){let z=$?.[Z];if(z&&"items"in z)$=z.items[X];else return}return $};a1.parentCollection=(_,q)=>{let $=a1.itemAtPath(_,q.slice(0,-1)),Z=q[q.length-1][0],X=$?.[Z];if(X&&"items"in X)return X;throw Error("Parent collection not found")};function C5(_,q,$){let Z=$(q,_);if(typeof Z==="symbol")return Z;for(let X of["key","value"]){let z=q[X];if(z&&"items"in z){for(let U=0;U<z.items.length;++U){let Q=C5(Object.freeze(_.concat([[X,U]])),z.items[U],$);if(typeof Q==="number")U=Q-1;else if(Q===R$)return R$;else if(Q===E5)z.items.splice(U,1),U-=1}if(typeof Z==="function"&&X==="key")Z=Z(q,_)}}return typeof Z==="function"?Z(q,_):Z}FH.visit=a1});var Wq=M((wH)=>{var j$=f5(),MH=N5(),HH=b5(),P$="\uFEFF",A$="\x02",O$="\x18",f$="\x1F",IH=(_)=>!!_&&("items"in _),TH=(_)=>!!_&&(_.type==="scalar"||_.type==="single-quoted-scalar"||_.type==="double-quoted-scalar"||_.type==="block-scalar");function KH(_){switch(_){case P$:return"<BOM>";case A$:return"<DOC>";case O$:return"<FLOW_END>";case f$:return"<SCALAR>";default:return JSON.stringify(_)}}function DH(_){switch(_){case P$:return"byte-order-mark";case A$:return"doc-mode";case O$:return"flow-error-end";case f$:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
162
162
  `:case`\r
163
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(_[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}ZM.createScalarToken=H$.createScalarToken;ZM.resolveAsScalar=H$.resolveAsScalar;ZM.setScalarValue=H$.setScalarValue;ZM.stringify=oH.stringify;ZM.visit=tH.visit;ZM.BOM=M$;ZM.DOCUMENT=I$;ZM.FLOW_END=T$;ZM.SCALAR=K$;ZM.isCollection=eH;ZM.isScalar=_M;ZM.prettyToken=qM;ZM.tokenType=$M});var w$=H((TM)=>{var p0=Xq();function V1(_){switch(_){case void 0:case" ":case`
164
- `:case"\r":case"\t":return!0;default:return!1}}var P5=new Set("0123456789ABCDEFabcdef"),MM=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),zq=new Set(",[]{}"),IM=new Set(` ,[]{}
165
- \r `),D$=(_)=>!_||IM.has(_);class j5{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(_,q=!1){if(_){if(typeof _!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+_:_,this.lineEndPos=null}this.atEnd=!q;let $=this.next??"stream";while($&&(q||this.hasChars(1)))$=yield*this.parseNext($)}atLineEnd(){let _=this.pos,q=this.buffer[_];while(q===" "||q==="\t")q=this.buffer[++_];if(!q||q==="#"||q===`
163
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(_[0]){case" ":case"\t":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}wH.createScalarToken=j$.createScalarToken;wH.resolveAsScalar=j$.resolveAsScalar;wH.setScalarValue=j$.setScalarValue;wH.stringify=MH.stringify;wH.visit=HH.visit;wH.BOM=P$;wH.DOCUMENT=A$;wH.FLOW_END=O$;wH.SCALAR=f$;wH.isCollection=IH;wH.isScalar=TH;wH.prettyToken=KH;wH.tokenType=DH});var E$=M((gH)=>{var a0=Wq();function F1(_){switch(_){case void 0:case" ":case`
164
+ `:case"\r":case"\t":return!0;default:return!1}}var y5=new Set("0123456789ABCDEFabcdef"),hH=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Vq=new Set(",[]{}"),vH=new Set(` ,[]{}
165
+ \r `),N$=(_)=>!_||vH.has(_);class x5{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(_,q=!1){if(_){if(typeof _!=="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+_:_,this.lineEndPos=null}this.atEnd=!q;let $=this.next??"stream";while($&&(q||this.hasChars(1)))$=yield*this.parseNext($)}atLineEnd(){let _=this.pos,q=this.buffer[_];while(q===" "||q==="\t")q=this.buffer[++_];if(!q||q==="#"||q===`
166
166
  `)return!0;if(q==="\r")return this.buffer[_+1]===`
167
167
  `;return!1}charAt(_){return this.buffer[this.pos+_]}continueScalar(_){let q=this.buffer[_];if(this.indentNext>0){let $=0;while(q===" ")q=this.buffer[++$+_];if(q==="\r"){let Z=this.buffer[$+_+1];if(Z===`
168
168
  `||!Z&&!this.atEnd)return _+$+1}return q===`
169
- `||$>=this.indentNext||!q&&!this.atEnd?_+$:-1}if(q==="-"||q==="."){let $=this.buffer.substr(_,3);if(($==="---"||$==="...")&&V1(this.buffer[_+3]))return-1}return _}getLine(){let _=this.lineEndPos;if(typeof _!=="number"||_!==-1&&_<this.pos)_=this.buffer.indexOf(`
170
- `,this.pos),this.lineEndPos=_;if(_===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[_-1]==="\r")_-=1;return this.buffer.substring(this.pos,_)}hasChars(_){return this.pos+_<=this.buffer.length}setNext(_){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=_,null}peek(_){return this.buffer.substr(this.pos,_)}*parseNext(_){switch(_){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let _=this.getLine();if(_===null)return this.setNext("stream");if(_[0]===p0.BOM)yield*this.pushCount(1),_=_.substring(1);if(_[0]==="%"){let q=_.length,$=_.indexOf("#");while($!==-1){let X=_[$-1];if(X===" "||X==="\t"){q=$-1;break}else $=_.indexOf("#",$+1)}while(!0){let X=_[q-1];if(X===" "||X==="\t")q-=1;else break}let Z=(yield*this.pushCount(q))+(yield*this.pushSpaces(!0));return yield*this.pushCount(_.length-Z),this.pushNewline(),"stream"}if(this.atLineEnd()){let q=yield*this.pushSpaces(!0);return yield*this.pushCount(_.length-q),yield*this.pushNewline(),"stream"}return yield p0.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let _=this.charAt(0);if(!_&&!this.atEnd)return this.setNext("line-start");if(_==="-"||_==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let q=this.peek(3);if((q==="---"||q==="...")&&V1(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,q==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!V1(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[_,q]=this.peek(2);if(!q&&!this.atEnd)return this.setNext("block-start");if((_==="-"||_==="?"||_===":")&&V1(q)){let $=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=$,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let _=this.getLine();if(_===null)return this.setNext("doc");let q=yield*this.pushIndicators();switch(_[q]){case"#":yield*this.pushCount(_.length-q);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(D$),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return q+=yield*this.parseBlockScalarHeader(),q+=yield*this.pushSpaces(!0),yield*this.pushCount(_.length-q),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let _,q,$=-1;do{if(_=yield*this.pushNewline(),_>0)q=yield*this.pushSpaces(!1),this.indentValue=$=q;else q=0;q+=yield*this.pushSpaces(!0)}while(_+q>0);let Z=this.getLine();if(Z===null)return this.setNext("flow");if($!==-1&&$<this.indentNext&&Z[0]!=="#"||$===0&&(Z.startsWith("---")||Z.startsWith("..."))&&V1(Z[3])){if(!($===this.indentNext-1&&this.flowLevel===1&&(Z[0]==="]"||Z[0]==="}")))return this.flowLevel=0,yield p0.FLOW_END,yield*this.parseLineStart()}let X=0;while(Z[X]===",")X+=yield*this.pushCount(1),X+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(X+=yield*this.pushIndicators(),Z[X]){case void 0:return"flow";case"#":return yield*this.pushCount(Z.length-X),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(D$),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let z=this.charAt(1);if(this.flowKey||V1(z)||z===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let _=this.charAt(0),q=this.buffer.indexOf(_,this.pos+1);if(_==="'")while(q!==-1&&this.buffer[q+1]==="'")q=this.buffer.indexOf("'",q+2);else while(q!==-1){let X=0;while(this.buffer[q-1-X]==="\\")X+=1;if(X%2===0)break;q=this.buffer.indexOf('"',q+1)}let $=this.buffer.substring(0,q),Z=$.indexOf(`
169
+ `||$>=this.indentNext||!q&&!this.atEnd?_+$:-1}if(q==="-"||q==="."){let $=this.buffer.substr(_,3);if(($==="---"||$==="...")&&F1(this.buffer[_+3]))return-1}return _}getLine(){let _=this.lineEndPos;if(typeof _!=="number"||_!==-1&&_<this.pos)_=this.buffer.indexOf(`
170
+ `,this.pos),this.lineEndPos=_;if(_===-1)return this.atEnd?this.buffer.substring(this.pos):null;if(this.buffer[_-1]==="\r")_-=1;return this.buffer.substring(this.pos,_)}hasChars(_){return this.pos+_<=this.buffer.length}setNext(_){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=_,null}peek(_){return this.buffer.substr(this.pos,_)}*parseNext(_){switch(_){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let _=this.getLine();if(_===null)return this.setNext("stream");if(_[0]===a0.BOM)yield*this.pushCount(1),_=_.substring(1);if(_[0]==="%"){let q=_.length,$=_.indexOf("#");while($!==-1){let X=_[$-1];if(X===" "||X==="\t"){q=$-1;break}else $=_.indexOf("#",$+1)}while(!0){let X=_[q-1];if(X===" "||X==="\t")q-=1;else break}let Z=(yield*this.pushCount(q))+(yield*this.pushSpaces(!0));return yield*this.pushCount(_.length-Z),this.pushNewline(),"stream"}if(this.atLineEnd()){let q=yield*this.pushSpaces(!0);return yield*this.pushCount(_.length-q),yield*this.pushNewline(),"stream"}return yield a0.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let _=this.charAt(0);if(!_&&!this.atEnd)return this.setNext("line-start");if(_==="-"||_==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let q=this.peek(3);if((q==="---"||q==="...")&&F1(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,q==="---"?"doc":"stream"}if(this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!F1(this.charAt(1)))this.indentNext=this.indentValue;return yield*this.parseBlockStart()}*parseBlockStart(){let[_,q]=this.peek(2);if(!q&&!this.atEnd)return this.setNext("block-start");if((_==="-"||_==="?"||_===":")&&F1(q)){let $=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=$,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let _=this.getLine();if(_===null)return this.setNext("doc");let q=yield*this.pushIndicators();switch(_[q]){case"#":yield*this.pushCount(_.length-q);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(N$),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return q+=yield*this.parseBlockScalarHeader(),q+=yield*this.pushSpaces(!0),yield*this.pushCount(_.length-q),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let _,q,$=-1;do{if(_=yield*this.pushNewline(),_>0)q=yield*this.pushSpaces(!1),this.indentValue=$=q;else q=0;q+=yield*this.pushSpaces(!0)}while(_+q>0);let Z=this.getLine();if(Z===null)return this.setNext("flow");if($!==-1&&$<this.indentNext&&Z[0]!=="#"||$===0&&(Z.startsWith("---")||Z.startsWith("..."))&&F1(Z[3])){if(!($===this.indentNext-1&&this.flowLevel===1&&(Z[0]==="]"||Z[0]==="}")))return this.flowLevel=0,yield a0.FLOW_END,yield*this.parseLineStart()}let X=0;while(Z[X]===",")X+=yield*this.pushCount(1),X+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(X+=yield*this.pushIndicators(),Z[X]){case void 0:return"flow";case"#":return yield*this.pushCount(Z.length-X),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(N$),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let z=this.charAt(1);if(this.flowKey||F1(z)||z===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let _=this.charAt(0),q=this.buffer.indexOf(_,this.pos+1);if(_==="'")while(q!==-1&&this.buffer[q+1]==="'")q=this.buffer.indexOf("'",q+2);else while(q!==-1){let X=0;while(this.buffer[q-1-X]==="\\")X+=1;if(X%2===0)break;q=this.buffer.indexOf('"',q+1)}let $=this.buffer.substring(0,q),Z=$.indexOf(`
171
171
  `,this.pos);if(Z!==-1){while(Z!==-1){let X=this.continueScalar(Z+1);if(X===-1)break;Z=$.indexOf(`
172
- `,X)}if(Z!==-1)q=Z-($[Z-1]==="\r"?2:1)}if(q===-1){if(!this.atEnd)return this.setNext("quoted-scalar");q=this.buffer.length}return yield*this.pushToIndex(q+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let _=this.pos;while(!0){let q=this.buffer[++_];if(q==="+")this.blockScalarKeep=!0;else if(q>"0"&&q<="9")this.blockScalarIndent=Number(q)-1;else if(q!=="-")break}return yield*this.pushUntil((q)=>V1(q)||q==="#")}*parseBlockScalar(){let _=this.pos-1,q=0,$;_:for(let X=this.pos;$=this.buffer[X];++X)switch($){case" ":q+=1;break;case`
172
+ `,X)}if(Z!==-1)q=Z-($[Z-1]==="\r"?2:1)}if(q===-1){if(!this.atEnd)return this.setNext("quoted-scalar");q=this.buffer.length}return yield*this.pushToIndex(q+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let _=this.pos;while(!0){let q=this.buffer[++_];if(q==="+")this.blockScalarKeep=!0;else if(q>"0"&&q<="9")this.blockScalarIndent=Number(q)-1;else if(q!=="-")break}return yield*this.pushUntil((q)=>F1(q)||q==="#")}*parseBlockScalar(){let _=this.pos-1,q=0,$;_:for(let X=this.pos;$=this.buffer[X];++X)switch($){case" ":q+=1;break;case`
173
173
  `:_=X,q=0;break;case"\r":{let z=this.buffer[X+1];if(!z&&!this.atEnd)return this.setNext("block-scalar");if(z===`
174
174
  `)break}default:break _}if(!$&&!this.atEnd)return this.setNext("block-scalar");if(q>=this.indentNext){if(this.blockScalarIndent===-1)this.indentNext=q;else this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let X=this.continueScalar(_+1);if(X===-1)break;_=this.buffer.indexOf(`
175
175
  `,X)}while(_!==-1);if(_===-1){if(!this.atEnd)return this.setNext("block-scalar");_=this.buffer.length}}let Z=_+1;$=this.buffer[Z];while($===" ")$=this.buffer[++Z];if($==="\t"){while($==="\t"||$===" "||$==="\r"||$===`
176
176
  `)$=this.buffer[++Z];_=Z-1}else if(!this.blockScalarKeep)do{let X=_-1,z=this.buffer[X];if(z==="\r")z=this.buffer[--X];let U=X;while(z===" ")z=this.buffer[--X];if(z===`
177
- `&&X>=this.pos&&X+1+q>U)_=X;else break}while(!0);return yield p0.SCALAR,yield*this.pushToIndex(_+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let _=this.flowLevel>0,q=this.pos-1,$=this.pos-1,Z;while(Z=this.buffer[++$])if(Z===":"){let X=this.buffer[$+1];if(V1(X)||_&&zq.has(X))break;q=$}else if(V1(Z)){let X=this.buffer[$+1];if(Z==="\r")if(X===`
177
+ `&&X>=this.pos&&X+1+q>U)_=X;else break}while(!0);return yield a0.SCALAR,yield*this.pushToIndex(_+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let _=this.flowLevel>0,q=this.pos-1,$=this.pos-1,Z;while(Z=this.buffer[++$])if(Z===":"){let X=this.buffer[$+1];if(F1(X)||_&&Vq.has(X))break;q=$}else if(F1(Z)){let X=this.buffer[$+1];if(Z==="\r")if(X===`
178
178
  `)$+=1,Z=`
179
- `,X=this.buffer[$+1];else q=$;if(X==="#"||_&&zq.has(X))break;if(Z===`
180
- `){let z=this.continueScalar($+1);if(z===-1)break;$=Math.max($,z-2)}}else{if(_&&zq.has(Z))break;q=$}if(!Z&&!this.atEnd)return this.setNext("plain-scalar");return yield p0.SCALAR,yield*this.pushToIndex(q+1,!0),_?"flow":"doc"}*pushCount(_){if(_>0)return yield this.buffer.substr(this.pos,_),this.pos+=_,_;return 0}*pushToIndex(_,q){let $=this.buffer.slice(this.pos,_);if($)return yield $,this.pos+=$.length,$.length;else if(q)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(D$))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let _=this.flowLevel>0,q=this.charAt(1);if(V1(q)||_&&zq.has(q)){if(!_)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let _=this.pos+2,q=this.buffer[_];while(!V1(q)&&q!==">")q=this.buffer[++_];return yield*this.pushToIndex(q===">"?_+1:_,!1)}else{let _=this.pos+1,q=this.buffer[_];while(q)if(MM.has(q))q=this.buffer[++_];else if(q==="%"&&P5.has(this.buffer[_+1])&&P5.has(this.buffer[_+2]))q=this.buffer[_+=3];else break;return yield*this.pushToIndex(_,!1)}}*pushNewline(){let _=this.buffer[this.pos];if(_===`
179
+ `,X=this.buffer[$+1];else q=$;if(X==="#"||_&&Vq.has(X))break;if(Z===`
180
+ `){let z=this.continueScalar($+1);if(z===-1)break;$=Math.max($,z-2)}}else{if(_&&Vq.has(Z))break;q=$}if(!Z&&!this.atEnd)return this.setNext("plain-scalar");return yield a0.SCALAR,yield*this.pushToIndex(q+1,!0),_?"flow":"doc"}*pushCount(_){if(_>0)return yield this.buffer.substr(this.pos,_),this.pos+=_,_;return 0}*pushToIndex(_,q){let $=this.buffer.slice(this.pos,_);if($)return yield $,this.pos+=$.length,$.length;else if(q)yield"";return 0}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(N$))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let _=this.flowLevel>0,q=this.charAt(1);if(F1(q)||_&&Vq.has(q)){if(!_)this.indentNext=this.indentValue+1;else if(this.flowKey)this.flowKey=!1;return(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}}return 0}*pushTag(){if(this.charAt(1)==="<"){let _=this.pos+2,q=this.buffer[_];while(!F1(q)&&q!==">")q=this.buffer[++_];return yield*this.pushToIndex(q===">"?_+1:_,!1)}else{let _=this.pos+1,q=this.buffer[_];while(q)if(hH.has(q))q=this.buffer[++_];else if(q==="%"&&y5.has(this.buffer[_+1])&&y5.has(this.buffer[_+2]))q=this.buffer[_+=3];else break;return yield*this.pushToIndex(_,!1)}}*pushNewline(){let _=this.buffer[this.pos];if(_===`
181
181
  `)return yield*this.pushCount(1);else if(_==="\r"&&this.charAt(1)===`
182
- `)return yield*this.pushCount(2);else return 0}*pushSpaces(_){let q=this.pos-1,$;do $=this.buffer[++q];while($===" "||_&&$==="\t");let Z=q-this.pos;if(Z>0)yield this.buffer.substr(this.pos,Z),this.pos=q;return Z}*pushUntil(_){let q=this.pos,$=this.buffer[q];while(!_($))$=this.buffer[++q];return yield*this.pushToIndex(q,!1)}}TM.Lexer=j5});var S$=H((DM)=>{class A5{constructor(){this.lineStarts=[],this.addNewLine=(_)=>this.lineStarts.push(_),this.linePos=(_)=>{let q=0,$=this.lineStarts.length;while(q<$){let X=q+$>>1;if(this.lineStarts[X]<_)q=X+1;else $=X}if(this.lineStarts[q]===_)return{line:q+1,col:1};if(q===0)return{line:0,col:_};let Z=this.lineStarts[q-1];return{line:q,col:_-Z+1}}}}DM.LineCounter=A5});var R$=H((PM)=>{var SM=x("process"),O5=Xq(),RM=w$();function b1(_,q){for(let $=0;$<_.length;++$)if(_[$].type===q)return!0;return!1}function N5(_){for(let q=0;q<_.length;++q)switch(_[q].type){case"space":case"comment":case"newline":break;default:return q}return-1}function E5(_){switch(_?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Uq(_){switch(_.type){case"document":return _.start;case"block-map":{let q=_.items[_.items.length-1];return q.sep??q.start}case"block-seq":return _.items[_.items.length-1].start;default:return[]}}function W0(_){if(_.length===0)return[];let q=_.length;_:while(--q>=0)switch(_[q].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break _}while(_[++q]?.type==="space");return _.splice(q,_.length)}function f5(_){if(_.start.type==="flow-seq-start"){for(let q of _.items)if(q.sep&&!q.value&&!b1(q.start,"explicit-key-ind")&&!b1(q.sep,"map-value-ind")){if(q.key)q.value=q.key;if(delete q.key,E5(q.value))if(q.value.end)Array.prototype.push.apply(q.value.end,q.sep);else q.value.end=q.sep;else Array.prototype.push.apply(q.start,q.sep);delete q.sep}}}class C5{constructor(_){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new RM.Lexer,this.onNewLine=_}*parse(_,q=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let $ of this.lexer.lex(_,q))yield*this.next($);if(!q)yield*this.end()}*next(_){if(this.source=_,SM.env.LOG_TOKENS)console.log("|",O5.prettyToken(_));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=_.length;return}let q=O5.tokenType(_);if(!q){let $=`Not a YAML token: ${_}`;yield*this.pop({type:"error",offset:this.offset,message:$,source:_}),this.offset+=_.length}else if(q==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=q,yield*this.step(),q){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+_.length);break;case"space":if(this.atNewLine&&_[0]===" ")this.indent+=_.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=_.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=_.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let _=this.peek(1);if(this.type==="doc-end"&&(!_||_.type!=="doc-end")){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!_)return yield*this.stream();switch(_.type){case"document":return yield*this.document(_);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(_);case"block-scalar":return yield*this.blockScalar(_);case"block-map":return yield*this.blockMap(_);case"block-seq":return yield*this.blockSequence(_);case"flow-collection":return yield*this.flowCollection(_);case"doc-end":return yield*this.documentEnd(_)}yield*this.pop()}peek(_){return this.stack[this.stack.length-_]}*pop(_){let q=_??this.stack.pop();if(!q)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield q;else{let $=this.peek(1);if(q.type==="block-scalar")q.indent="indent"in $?$.indent:0;else if(q.type==="flow-collection"&&$.type==="document")q.indent=0;if(q.type==="flow-collection")f5(q);switch($.type){case"document":$.value=q;break;case"block-scalar":$.props.push(q);break;case"block-map":{let Z=$.items[$.items.length-1];if(Z.value){$.items.push({start:[],key:q,sep:[]}),this.onKeyLine=!0;return}else if(Z.sep)Z.value=q;else{Object.assign(Z,{key:q,sep:[]}),this.onKeyLine=!Z.explicitKey;return}break}case"block-seq":{let Z=$.items[$.items.length-1];if(Z.value)$.items.push({start:[],value:q});else Z.value=q;break}case"flow-collection":{let Z=$.items[$.items.length-1];if(!Z||Z.value)$.items.push({start:[],key:q,sep:[]});else if(Z.sep)Z.value=q;else Object.assign(Z,{key:q,sep:[]});return}default:yield*this.pop(),yield*this.pop(q)}if(($.type==="document"||$.type==="block-map"||$.type==="block-seq")&&(q.type==="block-map"||q.type==="block-seq")){let Z=q.items[q.items.length-1];if(Z&&!Z.sep&&!Z.value&&Z.start.length>0&&N5(Z.start)===-1&&(q.indent===0||Z.start.every((X)=>X.type!=="comment"||X.indent<q.indent))){if($.type==="document")$.end=Z.start;else $.items.push({start:Z.start});q.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let _={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")_.start.push(this.sourceToken);this.stack.push(_);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(_){if(_.value)return yield*this.lineEnd(_);switch(this.type){case"doc-start":{if(N5(_.start)!==-1)yield*this.pop(),yield*this.step();else _.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":_.start.push(this.sourceToken);return}let q=this.startBlockValue(_);if(q)this.stack.push(q);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(_){if(this.type==="map-value-ind"){let q=Uq(this.peek(2)),$=W0(q),Z;if(_.end)Z=_.end,Z.push(this.sourceToken),delete _.end;else Z=[this.sourceToken];let X={type:"block-map",offset:_.offset,indent:_.indent,items:[{start:$,key:_,sep:Z}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=X}else yield*this.lineEnd(_)}*blockScalar(_){switch(this.type){case"space":case"comment":case"newline":_.props.push(this.sourceToken);return;case"scalar":if(_.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let q=this.source.indexOf(`
182
+ `)return yield*this.pushCount(2);else return 0}*pushSpaces(_){let q=this.pos-1,$;do $=this.buffer[++q];while($===" "||_&&$==="\t");let Z=q-this.pos;if(Z>0)yield this.buffer.substr(this.pos,Z),this.pos=q;return Z}*pushUntil(_){let q=this.pos,$=this.buffer[q];while(!_($))$=this.buffer[++q];return yield*this.pushToIndex(q,!1)}}gH.Lexer=x5});var C$=M((uH)=>{class h5{constructor(){this.lineStarts=[],this.addNewLine=(_)=>this.lineStarts.push(_),this.linePos=(_)=>{let q=0,$=this.lineStarts.length;while(q<$){let X=q+$>>1;if(this.lineStarts[X]<_)q=X+1;else $=X}if(this.lineStarts[q]===_)return{line:q+1,col:1};if(q===0)return{line:0,col:_};let Z=this.lineStarts[q-1];return{line:q,col:_-Z+1}}}}uH.LineCounter=h5});var b$=M((iH)=>{var dH=v("process"),v5=Wq(),lH=E$();function h1(_,q){for(let $=0;$<_.length;++$)if(_[$].type===q)return!0;return!1}function g5(_){for(let q=0;q<_.length;++q)switch(_[q].type){case"space":case"comment":case"newline":break;default:return q}return-1}function u5(_){switch(_?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Gq(_){switch(_.type){case"document":return _.start;case"block-map":{let q=_.items[_.items.length-1];return q.sep??q.start}case"block-seq":return _.items[_.items.length-1].start;default:return[]}}function F0(_){if(_.length===0)return[];let q=_.length;_:while(--q>=0)switch(_[q].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break _}while(_[++q]?.type==="space");return _.splice(q,_.length)}function k5(_){if(_.start.type==="flow-seq-start"){for(let q of _.items)if(q.sep&&!q.value&&!h1(q.start,"explicit-key-ind")&&!h1(q.sep,"map-value-ind")){if(q.key)q.value=q.key;if(delete q.key,u5(q.value))if(q.value.end)Array.prototype.push.apply(q.value.end,q.sep);else q.value.end=q.sep;else Array.prototype.push.apply(q.start,q.sep);delete q.sep}}}class m5{constructor(_){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new lH.Lexer,this.onNewLine=_}*parse(_,q=!1){if(this.onNewLine&&this.offset===0)this.onNewLine(0);for(let $ of this.lexer.lex(_,q))yield*this.next($);if(!q)yield*this.end()}*next(_){if(this.source=_,dH.env.LOG_TOKENS)console.log("|",v5.prettyToken(_));if(this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=_.length;return}let q=v5.tokenType(_);if(!q){let $=`Not a YAML token: ${_}`;yield*this.pop({type:"error",offset:this.offset,message:$,source:_}),this.offset+=_.length}else if(q==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=q,yield*this.step(),q){case"newline":if(this.atNewLine=!0,this.indent=0,this.onNewLine)this.onNewLine(this.offset+_.length);break;case"space":if(this.atNewLine&&_[0]===" ")this.indent+=_.length;break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":if(this.atNewLine)this.indent+=_.length;break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=_.length}}*end(){while(this.stack.length>0)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let _=this.peek(1);if(this.type==="doc-end"&&_?.type!=="doc-end"){while(this.stack.length>0)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!_)return yield*this.stream();switch(_.type){case"document":return yield*this.document(_);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(_);case"block-scalar":return yield*this.blockScalar(_);case"block-map":return yield*this.blockMap(_);case"block-seq":return yield*this.blockSequence(_);case"flow-collection":return yield*this.flowCollection(_);case"doc-end":return yield*this.documentEnd(_)}yield*this.pop()}peek(_){return this.stack[this.stack.length-_]}*pop(_){let q=_??this.stack.pop();if(!q)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield q;else{let $=this.peek(1);if(q.type==="block-scalar")q.indent="indent"in $?$.indent:0;else if(q.type==="flow-collection"&&$.type==="document")q.indent=0;if(q.type==="flow-collection")k5(q);switch($.type){case"document":$.value=q;break;case"block-scalar":$.props.push(q);break;case"block-map":{let Z=$.items[$.items.length-1];if(Z.value){$.items.push({start:[],key:q,sep:[]}),this.onKeyLine=!0;return}else if(Z.sep)Z.value=q;else{Object.assign(Z,{key:q,sep:[]}),this.onKeyLine=!Z.explicitKey;return}break}case"block-seq":{let Z=$.items[$.items.length-1];if(Z.value)$.items.push({start:[],value:q});else Z.value=q;break}case"flow-collection":{let Z=$.items[$.items.length-1];if(!Z||Z.value)$.items.push({start:[],key:q,sep:[]});else if(Z.sep)Z.value=q;else Object.assign(Z,{key:q,sep:[]});return}default:yield*this.pop(),yield*this.pop(q)}if(($.type==="document"||$.type==="block-map"||$.type==="block-seq")&&(q.type==="block-map"||q.type==="block-seq")){let Z=q.items[q.items.length-1];if(Z&&!Z.sep&&!Z.value&&Z.start.length>0&&g5(Z.start)===-1&&(q.indent===0||Z.start.every((X)=>X.type!=="comment"||X.indent<q.indent))){if($.type==="document")$.end=Z.start;else $.items.push({start:Z.start});q.items.splice(-1,1)}}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let _={type:"document",offset:this.offset,start:[]};if(this.type==="doc-start")_.start.push(this.sourceToken);this.stack.push(_);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(_){if(_.value)return yield*this.lineEnd(_);switch(this.type){case"doc-start":{if(g5(_.start)!==-1)yield*this.pop(),yield*this.step();else _.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":_.start.push(this.sourceToken);return}let q=this.startBlockValue(_);if(q)this.stack.push(q);else yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(_){if(this.type==="map-value-ind"){let q=Gq(this.peek(2)),$=F0(q),Z;if(_.end)Z=_.end,Z.push(this.sourceToken),delete _.end;else Z=[this.sourceToken];let X={type:"block-map",offset:_.offset,indent:_.indent,items:[{start:$,key:_,sep:Z}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=X}else yield*this.lineEnd(_)}*blockScalar(_){switch(this.type){case"space":case"comment":case"newline":_.props.push(this.sourceToken);return;case"scalar":if(_.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let q=this.source.indexOf(`
183
183
  `)+1;while(q!==0)this.onNewLine(this.offset+q),q=this.source.indexOf(`
184
- `,q)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(_){let q=_.items[_.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,q.value){let $="end"in q.value?q.value.end:void 0;if((Array.isArray($)?$[$.length-1]:void 0)?.type==="comment")$?.push(this.sourceToken);else _.items.push({start:[this.sourceToken]})}else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)_.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else{if(this.atIndentedComment(q.start,_.indent)){let Z=_.items[_.items.length-2]?.value?.end;if(Array.isArray(Z)){Array.prototype.push.apply(Z,q.start),Z.push(this.sourceToken),_.items.pop();return}}q.start.push(this.sourceToken)}return}if(this.indent>=_.indent){let $=!this.onKeyLine&&this.indent===_.indent,Z=$&&(q.sep||q.explicitKey)&&this.type!=="seq-item-ind",X=[];if(Z&&q.sep&&!q.value){let z=[];for(let U=0;U<q.sep.length;++U){let Q=q.sep[U];switch(Q.type){case"newline":z.push(U);break;case"space":break;case"comment":if(Q.indent>_.indent)z.length=0;break;default:z.length=0}}if(z.length>=2)X=q.sep.splice(z[1])}switch(this.type){case"anchor":case"tag":if(Z||q.value)X.push(this.sourceToken),_.items.push({start:X}),this.onKeyLine=!0;else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"explicit-key-ind":if(!q.sep&&!q.explicitKey)q.start.push(this.sourceToken),q.explicitKey=!0;else if(Z||q.value)X.push(this.sourceToken),_.items.push({start:X,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(q.explicitKey)if(!q.sep)if(b1(q.start,"newline"))Object.assign(q,{key:null,sep:[this.sourceToken]});else{let z=W0(q.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:null,sep:[this.sourceToken]}]})}else if(q.value)_.items.push({start:[],key:null,sep:[this.sourceToken]});else if(b1(q.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,key:null,sep:[this.sourceToken]}]});else if(E5(q.key)&&!b1(q.sep,"newline")){let z=W0(q.start),U=q.key,Q=q.sep;Q.push(this.sourceToken),delete q.key,delete q.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:U,sep:Q}]})}else if(X.length>0)q.sep=q.sep.concat(X,this.sourceToken);else q.sep.push(this.sourceToken);else if(!q.sep)Object.assign(q,{key:null,sep:[this.sourceToken]});else if(q.value||Z)_.items.push({start:X,key:null,sep:[this.sourceToken]});else if(b1(q.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else q.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let z=this.flowScalar(this.type);if(Z||q.value)_.items.push({start:X,key:z,sep:[]}),this.onKeyLine=!0;else if(q.sep)this.stack.push(z);else Object.assign(q,{key:z,sep:[]}),this.onKeyLine=!0;return}default:{let z=this.startBlockValue(_);if(z){if(z.type==="block-seq"){if(!q.explicitKey&&q.sep&&!b1(q.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if($)_.items.push({start:X});this.stack.push(z);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(_){let q=_.items[_.items.length-1];switch(this.type){case"newline":if(q.value){let $="end"in q.value?q.value.end:void 0;if((Array.isArray($)?$[$.length-1]:void 0)?.type==="comment")$?.push(this.sourceToken);else _.items.push({start:[this.sourceToken]})}else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)_.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(q.start,_.indent)){let Z=_.items[_.items.length-2]?.value?.end;if(Array.isArray(Z)){Array.prototype.push.apply(Z,q.start),Z.push(this.sourceToken),_.items.pop();return}}q.start.push(this.sourceToken)}return;case"anchor":case"tag":if(q.value||this.indent<=_.indent)break;q.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==_.indent)break;if(q.value||b1(q.start,"seq-item-ind"))_.items.push({start:[this.sourceToken]});else q.start.push(this.sourceToken);return}if(this.indent>_.indent){let $=this.startBlockValue(_);if($){this.stack.push($);return}}yield*this.pop(),yield*this.step()}*flowCollection(_){let q=_.items[_.items.length-1];if(this.type==="flow-error-end"){let $;do yield*this.pop(),$=this.peek(1);while($&&$.type==="flow-collection")}else if(_.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!q||q.sep)_.items.push({start:[this.sourceToken]});else q.start.push(this.sourceToken);return;case"map-value-ind":if(!q||q.value)_.items.push({start:[],key:null,sep:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else Object.assign(q,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!q||q.value)_.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let Z=this.flowScalar(this.type);if(!q||q.value)_.items.push({start:[],key:Z,sep:[]});else if(q.sep)this.stack.push(Z);else Object.assign(q,{key:Z,sep:[]});return}case"flow-map-end":case"flow-seq-end":_.end.push(this.sourceToken);return}let $=this.startBlockValue(_);if($)this.stack.push($);else yield*this.pop(),yield*this.step()}else{let $=this.peek(2);if($.type==="block-map"&&(this.type==="map-value-ind"&&$.indent===_.indent||this.type==="newline"&&!$.items[$.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&$.type!=="flow-collection"){let Z=Uq($),X=W0(Z);f5(_);let z=_.end.splice(1,_.end.length);z.push(this.sourceToken);let U={type:"block-map",offset:_.offset,indent:_.indent,items:[{start:X,key:_,sep:z}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=U}else yield*this.lineEnd(_)}}flowScalar(_){if(this.onNewLine){let q=this.source.indexOf(`
184
+ `,q)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(_){let q=_.items[_.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,q.value){let $="end"in q.value?q.value.end:void 0;if((Array.isArray($)?$[$.length-1]:void 0)?.type==="comment")$?.push(this.sourceToken);else _.items.push({start:[this.sourceToken]})}else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)_.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else{if(this.atIndentedComment(q.start,_.indent)){let Z=_.items[_.items.length-2]?.value?.end;if(Array.isArray(Z)){Array.prototype.push.apply(Z,q.start),Z.push(this.sourceToken),_.items.pop();return}}q.start.push(this.sourceToken)}return}if(this.indent>=_.indent){let $=!this.onKeyLine&&this.indent===_.indent,Z=$&&(q.sep||q.explicitKey)&&this.type!=="seq-item-ind",X=[];if(Z&&q.sep&&!q.value){let z=[];for(let U=0;U<q.sep.length;++U){let Q=q.sep[U];switch(Q.type){case"newline":z.push(U);break;case"space":break;case"comment":if(Q.indent>_.indent)z.length=0;break;default:z.length=0}}if(z.length>=2)X=q.sep.splice(z[1])}switch(this.type){case"anchor":case"tag":if(Z||q.value)X.push(this.sourceToken),_.items.push({start:X}),this.onKeyLine=!0;else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"explicit-key-ind":if(!q.sep&&!q.explicitKey)q.start.push(this.sourceToken),q.explicitKey=!0;else if(Z||q.value)X.push(this.sourceToken),_.items.push({start:X,explicitKey:!0});else this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]});this.onKeyLine=!0;return;case"map-value-ind":if(q.explicitKey)if(!q.sep)if(h1(q.start,"newline"))Object.assign(q,{key:null,sep:[this.sourceToken]});else{let z=F0(q.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:null,sep:[this.sourceToken]}]})}else if(q.value)_.items.push({start:[],key:null,sep:[this.sourceToken]});else if(h1(q.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:X,key:null,sep:[this.sourceToken]}]});else if(u5(q.key)&&!h1(q.sep,"newline")){let z=F0(q.start),U=q.key,Q=q.sep;Q.push(this.sourceToken),delete q.key,delete q.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:z,key:U,sep:Q}]})}else if(X.length>0)q.sep=q.sep.concat(X,this.sourceToken);else q.sep.push(this.sourceToken);else if(!q.sep)Object.assign(q,{key:null,sep:[this.sourceToken]});else if(q.value||Z)_.items.push({start:X,key:null,sep:[this.sourceToken]});else if(h1(q.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]});else q.sep.push(this.sourceToken);this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let z=this.flowScalar(this.type);if(Z||q.value)_.items.push({start:X,key:z,sep:[]}),this.onKeyLine=!0;else if(q.sep)this.stack.push(z);else Object.assign(q,{key:z,sep:[]}),this.onKeyLine=!0;return}default:{let z=this.startBlockValue(_);if(z){if(z.type==="block-seq"){if(!q.explicitKey&&q.sep&&!h1(q.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else if($)_.items.push({start:X});this.stack.push(z);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(_){let q=_.items[_.items.length-1];switch(this.type){case"newline":if(q.value){let $="end"in q.value?q.value.end:void 0;if((Array.isArray($)?$[$.length-1]:void 0)?.type==="comment")$?.push(this.sourceToken);else _.items.push({start:[this.sourceToken]})}else q.start.push(this.sourceToken);return;case"space":case"comment":if(q.value)_.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(q.start,_.indent)){let Z=_.items[_.items.length-2]?.value?.end;if(Array.isArray(Z)){Array.prototype.push.apply(Z,q.start),Z.push(this.sourceToken),_.items.pop();return}}q.start.push(this.sourceToken)}return;case"anchor":case"tag":if(q.value||this.indent<=_.indent)break;q.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==_.indent)break;if(q.value||h1(q.start,"seq-item-ind"))_.items.push({start:[this.sourceToken]});else q.start.push(this.sourceToken);return}if(this.indent>_.indent){let $=this.startBlockValue(_);if($){this.stack.push($);return}}yield*this.pop(),yield*this.step()}*flowCollection(_){let q=_.items[_.items.length-1];if(this.type==="flow-error-end"){let $;do yield*this.pop(),$=this.peek(1);while($?.type==="flow-collection")}else if(_.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":if(!q||q.sep)_.items.push({start:[this.sourceToken]});else q.start.push(this.sourceToken);return;case"map-value-ind":if(!q||q.value)_.items.push({start:[],key:null,sep:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else Object.assign(q,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":if(!q||q.value)_.items.push({start:[this.sourceToken]});else if(q.sep)q.sep.push(this.sourceToken);else q.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let Z=this.flowScalar(this.type);if(!q||q.value)_.items.push({start:[],key:Z,sep:[]});else if(q.sep)this.stack.push(Z);else Object.assign(q,{key:Z,sep:[]});return}case"flow-map-end":case"flow-seq-end":_.end.push(this.sourceToken);return}let $=this.startBlockValue(_);if($)this.stack.push($);else yield*this.pop(),yield*this.step()}else{let $=this.peek(2);if($.type==="block-map"&&(this.type==="map-value-ind"&&$.indent===_.indent||this.type==="newline"&&!$.items[$.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&$.type!=="flow-collection"){let Z=Gq($),X=F0(Z);k5(_);let z=_.end.splice(1,_.end.length);z.push(this.sourceToken);let U={type:"block-map",offset:_.offset,indent:_.indent,items:[{start:X,key:_,sep:z}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=U}else yield*this.lineEnd(_)}}flowScalar(_){if(this.onNewLine){let q=this.source.indexOf(`
185
185
  `)+1;while(q!==0)this.onNewLine(this.offset+q),q=this.source.indexOf(`
186
- `,q)+1}return{type:_,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(_){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let q=Uq(_),$=W0(q);return $.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:$,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let q=Uq(_),$=W0(q);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:$,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(_,q){if(this.type!=="comment")return!1;if(this.indent<=q)return!1;return _.every(($)=>$.type==="newline"||$.type==="space")}*documentEnd(_){if(this.type!=="doc-mode"){if(_.end)_.end.push(this.sourceToken);else _.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(_){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(_.end)_.end.push(this.sourceToken);else _.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}PM.Parser=C5});var g5=H((yM)=>{var b5=F$(),AM=m0(),r0=d0(),OM=S9(),NM=g(),fM=S$(),y5=R$();function h5(_){let q=_.prettyErrors!==!1;return{lineCounter:_.lineCounter||q&&new fM.LineCounter||null,prettyErrors:q}}function EM(_,q={}){let{lineCounter:$,prettyErrors:Z}=h5(q),X=new y5.Parser($?.addNewLine),z=new b5.Composer(q),U=Array.from(z.compose(X.parse(_)));if(Z&&$)for(let Q of U)Q.errors.forEach(r0.prettifyError(_,$)),Q.warnings.forEach(r0.prettifyError(_,$));if(U.length>0)return U;return Object.assign([],{empty:!0},z.streamInfo())}function x5(_,q={}){let{lineCounter:$,prettyErrors:Z}=h5(q),X=new y5.Parser($?.addNewLine),z=new b5.Composer(q),U=null;for(let Q of z.compose(X.parse(_),!0,_.length))if(!U)U=Q;else if(U.options.logLevel!=="silent"){U.errors.push(new r0.YAMLParseError(Q.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(Z&&$)U.errors.forEach(r0.prettifyError(_,$)),U.warnings.forEach(r0.prettifyError(_,$));return U}function CM(_,q,$){let Z=void 0;if(typeof q==="function")Z=q;else if($===void 0&&q&&typeof q==="object")$=q;let X=x5(_,$);if(!X)return null;if(X.warnings.forEach((z)=>OM.warn(X.options.logLevel,z)),X.errors.length>0)if(X.options.logLevel!=="silent")throw X.errors[0];else X.errors=[];return X.toJS(Object.assign({reviver:Z},$))}function bM(_,q,$){let Z=null;if(typeof q==="function"||Array.isArray(q))Z=q;else if($===void 0&&q)$=q;if(typeof $==="string")$=$.length;if(typeof $==="number"){let X=Math.round($);$=X<1?void 0:X>8?{indent:8}:{indent:X}}if(_===void 0){let{keepUndefined:X}=$??q??{};if(!X)return}if(NM.isDocument(_)&&!Z)return _.toString($);return new AM.Document(_,Z,$).toString($)}yM.parse=CM;yM.parseAllDocuments=EM;yM.parseDocument=x5;yM.stringify=bM});var o$=R1(a$(),1),{program:pI,createCommand:rI,createArgument:sI,createOption:nI,CommanderError:aI,InvalidArgumentError:oI,InvalidOptionArgumentError:tI,Command:t$,Argument:eI,Option:_T,Help:qT}=o$.default;import{readFileSync as EI}from"fs";import{join as CI,dirname as b$}from"path";import{fileURLToPath as bI}from"url";var c5=R1(a1(),1);var N$=R1(N7(),1);import{readFileSync as u5,existsSync as Fq}from"fs";import{join as Gq,resolve as O$,dirname as m5}from"path";import{readFileSync as f7,existsSync as w0}from"fs";import{join as S0}from"path";class K_{name="bun";isActive(_){let q=S0(_,"bun.lock"),$=S0(_,"bun.lockb");if(w0(q)||w0($))return!0;let Z=S0(_,"bunfig.toml");if(w0(Z))return!0;let X=S0(_,"package.json");if(w0(X))try{let z=JSON.parse(f7(X,"utf8"));if(z.bun||z.trustedDependencies)return!0}catch{}return!1}getRunCommand(_){return{command:"bun",args:["run",_]}}parseWorkspaceConfig(_){let q=S0(_,"package.json");if(!w0(q))throw Error("No package.json found in workspace root");let $=JSON.parse(f7(q,"utf8"));if(!$.workspaces)throw Error("No workspaces configuration found in package.json");let Z=$.workspaces,X=Array.isArray(Z)?Z:Z.packages;if(!Array.isArray(X))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:X}}getLockFileName(){return"bun.lock"}}import{readFileSync as A$,existsSync as V0}from"fs";import{join as F0}from"path";var vM=F$(),uM=m0(),mM=o9(),P$=d0(),dM=j0(),y1=g(),lM=N1(),iM=r(),cM=E1(),pM=C1(),dD=Xq(),rM=w$(),sM=S$(),nM=R$(),Qq=g5(),k5=R0();var aM=vM.Composer,oM=uM.Document,tM=mM.Schema,eM=P$.YAMLError,_I=P$.YAMLParseError,qI=P$.YAMLWarning,$I=dM.Alias,ZI=y1.isAlias,XI=y1.isCollection,zI=y1.isDocument,UI=y1.isMap,QI=y1.isNode,YI=y1.isPair,BI=y1.isScalar,JI=y1.isSeq,WI=lM.Pair,VI=iM.Scalar,FI=cM.YAMLMap,GI=pM.YAMLSeq;var LI=rM.Lexer,HI=sM.LineCounter,MI=nM.Parser,j$=Qq.parse,II=Qq.parseAllDocuments,TI=Qq.parseDocument,KI=Qq.stringify,DI=k5.visit,wI=k5.visitAsync;class Yq{name="pnpm";isActive(_){let q=F0(_,"pnpm-lock.yaml");if(V0(q))return!0;let $=F0(_,"pnpm-workspace.yaml");if(V0($))return!0;let Z=F0(_,".pnpmfile.cjs");if(V0(Z))return!0;let X=F0(_,"package.json");if(V0(X))try{let z=JSON.parse(A$(X,"utf8")),U=z.publishConfig;if(z.pnpm||U?.registry)return!0}catch{}return!1}getRunCommand(_){return{command:"pnpm",args:["run",_]}}parseWorkspaceConfig(_){let q=F0(_,"pnpm-workspace.yaml");if(V0(q)){let U=A$(q,"utf8"),Q=j$(U);if(!Q.packages||!Array.isArray(Q.packages))throw Error("Invalid pnpm-workspace.yaml: packages must be an array");return{packages:Q.packages}}let $=F0(_,"package.json");if(!V0($))throw Error("No pnpm-workspace.yaml or package.json found in workspace root");let Z=JSON.parse(A$($,"utf8"));if(!Z.workspaces)throw Error("No pnpm-workspace.yaml found and no workspaces configuration in package.json");let X=Z.workspaces,z=Array.isArray(X)?X:X.packages;if(!Array.isArray(z))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:z}}getLockFileName(){return"pnpm-lock.yaml"}}import{readFileSync as v5,existsSync as Bq}from"fs";import{join as Jq}from"path";class Wq{name="npm";isActive(_){let q=Jq(_,"package-lock.json");if(Bq(q))return!0;let $=Jq(_,".npmrc");if(Bq($))return!0;let Z=Jq(_,"package.json");if(Bq(Z))try{let X=JSON.parse(v5(Z,"utf8"));if(X.workspaces||X.publishConfig)return!0}catch{}return!1}getRunCommand(_){return{command:"npm",args:["run",_]}}parseWorkspaceConfig(_){let q=Jq(_,"package.json");if(!Bq(q))throw Error("No package.json found in workspace root");let $=JSON.parse(v5(q,"utf8"));if(!$.workspaces)throw Error("No workspaces configuration found in package.json");let Z=$.workspaces,X=Array.isArray(Z)?Z:Z.packages;if(!Array.isArray(X))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:X}}getLockFileName(){return"package-lock.json"}}import{existsSync as p1}from"fs";import{join as r1}from"path";class Vq{static packageManagers=[new K_,new Yq,new Wq];static detect(_){let q=[];for(let Z of this.packageManagers)if(Z.isActive(_)){let X=this.calculateConfidence(Z,_);q.push({packageManager:Z,confidence:X})}q.sort((Z,X)=>X.confidence-Z.confidence);let[$]=q;if(!$)throw Error("No package manager detected. Please ensure you have a lock file (bun.lockb, pnpm-lock.yaml, or package-lock.json) or workspace configuration in your project.");return $}static getPackageManager(_){let q=this.packageManagers.find(($)=>$.name===_);if(!q)throw Error(`Unknown package manager: ${_}`);return q}static getSupportedPackageManagers(){return[...this.packageManagers]}static calculateConfidence(_,q){let $=0,Z=r1(q,_.getLockFileName());if(p1(Z))$+=100;switch(_.name){case"bun":if(p1(r1(q,"bun.lock")))$+=100;if(p1(r1(q,"bun.lockb")))$+=100;if(p1(r1(q,"bunfig.toml")))$+=50;break;case"pnpm":if(p1(r1(q,"pnpm-workspace.yaml")))$+=80;if(p1(r1(q,".pnpmfile.cjs")))$+=30;break;case"npm":if(p1(r1(q,".npmrc")))$+=30;break}try{_.parseWorkspaceConfig(q),$+=20}catch{}return $}static async isPackageManagerAvailable(_){try{let{spawn:q}=await import("child_process");return new Promise(($)=>{let Z=q(_,["--version"],{stdio:"ignore"});Z.on("close",(X)=>$(X===0)),Z.on("error",()=>$(!1))})}catch{return!1}}}class s1{workspaceRoot;packageManager;constructor(_=process.cwd()){this.workspaceRoot=this.findWorkspaceRoot(O$(_));let q=Vq.detect(this.workspaceRoot);this.packageManager=q.packageManager}async parseWorkspace(){let _=this.readWorkspaceConfig(),q=await this.resolvePackagePaths(_.packages||[]),$=await Promise.all(q.map((X)=>this.loadPackageInfo(X))),Z=new Map;return $.forEach((X)=>{Z.set(X.name,X)}),{root:this.workspaceRoot,packages:$,packageMap:Z,packageManager:this.packageManager}}findWorkspaceRoot(_){let q=_;while(q!==m5(q)){let $=Gq(q,"package.json");if(Fq($)){if(JSON.parse(u5($,"utf8")).workspaces)return q}let Z=Gq(q,"pnpm-workspace.yaml");if(Fq(Z))return q;q=m5(q)}return _}readWorkspaceConfig(){try{return this.packageManager.parseWorkspaceConfig(this.workspaceRoot)}catch(_){throw Error(`Failed to parse workspace configuration with ${this.packageManager.name}: ${_ instanceof Error?_.message:String(_)}`)}}async resolvePackagePaths(_){let q=[];for(let Z of _){if(Z.startsWith("!"))continue;let X=await N$.default(Z,{cwd:this.workspaceRoot,onlyDirectories:!0,absolute:!1});for(let z of X){let U=Gq(this.workspaceRoot,z,"package.json");if(Fq(U))q.push(O$(this.workspaceRoot,z))}}let $=_.filter((Z)=>Z.startsWith("!"));if($.length>0){let Z=new Set;for(let X of $){let z=X.slice(1);(await N$.default(z,{cwd:this.workspaceRoot,onlyDirectories:!0,absolute:!1})).forEach((Q)=>{Z.add(O$(this.workspaceRoot,Q))})}return q.filter((X)=>!Z.has(X))}return Array.from(new Set(q))}async loadPackageInfo(_){let q=Gq(_,"package.json");if(!Fq(q))throw Error(`package.json not found in ${_}`);let $=JSON.parse(u5(q,"utf8"));if(!$.name||typeof $.name!=="string")throw Error(`Package name not found in ${q}`);let{dependencies:Z,devDependencies:X,scripts:z}=$,U=Object.keys(Z||{}),Q=Object.keys(X||{}),Y=z||{};return{name:$.name,path:_,packageJson:$,dependencies:U,devDependencies:Q,scripts:Y}}filterPackages(_,q){if(!q)return _;let $=q.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[([^\]]+)\]/g,"[$1]"),Z=new RegExp(`^${$}$`);return _.filter((X)=>Z.test(X.name))}hasScript(_,q){return q in _.scripts}getPackagesWithScript(_,q){return _.filter(($)=>this.hasScript($,q))}getPackageManager(){return this.packageManager}}class Lq{nodes=new Map;addPackage(_){if(!this.nodes.has(_))this.nodes.set(_,{name:_,dependencies:new Set,dependents:new Set})}addDependency(_,q){this.addPackage(_),this.addPackage(q);let $=this.nodes.get(_),Z=this.nodes.get(q);$.dependencies.add(q),Z.dependents.add(_)}getPackages(){return Array.from(this.nodes.keys())}getDependencies(_){let q=this.nodes.get(_);return q?Array.from(q.dependencies):[]}getDependents(_){let q=this.nodes.get(_);return q?Array.from(q.dependents):[]}topologicalSort(){let _=[],q=new Map,$=[];for(let[X,z]of this.nodes)if(q.set(X,z.dependencies.size),z.dependencies.size===0)$.push(X);while($.length>0){let X=$.shift();_.push(X);let z=this.getDependents(X);for(let U of z){let Q=q.get(U)-1;if(q.set(U,Q),Q===0)$.push(U)}}let Z=[];if(_.length!==this.nodes.size){let X=this.getPackages().filter((U)=>!_.includes(U)),z=this.detectCycles(X);Z.push(...z)}return{order:_,cycles:Z}}detectCycles(_){let q=[],$=new Set,Z=new Set,X=(z,U)=>{if(Z.has(z)){let Y=U.indexOf(z);if(Y!==-1)q.push(U.slice(Y).concat([z]));return}if($.has(z))return;$.add(z),Z.add(z);let Q=this.getDependencies(z);for(let Y of Q)if(_.includes(Y))X(Y,[...U,z]);Z.delete(z)};for(let z of _)if(!$.has(z))X(z,[]);return q}getBuildBatches(){let{order:_,cycles:q}=this.topologicalSort();if(q.length>0)throw Error(`Circular dependencies detected: ${q.map((X)=>X.join(" -> ")).join(", ")}`);let $=[],Z=new Set;while(Z.size<_.length){let X=[];for(let z of _){if(Z.has(z))continue;if(this.getDependencies(z).every((Y)=>Z.has(Y)))X.push(z)}if(X.length===0)throw Error("Unable to determine build order - possible circular dependency");$.push(X),X.forEach((z)=>Z.add(z))}return $}filterGraph(_){let q=new Lq,$=new Set(_);for(let Z of _)if(this.nodes.has(Z))q.addPackage(Z);for(let Z of _)if(this.nodes.has(Z)){let X=this.getDependencies(Z);for(let z of X)if($.has(z))q.addDependency(Z,z)}return q}getRootPackages(){return this.getPackages().filter((_)=>this.getDependencies(_).length===0)}getLeafPackages(){return this.getPackages().filter((_)=>this.getDependents(_).length===0)}printGraph(){console.log(`
186
+ `,q)+1}return{type:_,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(_){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let q=Gq(_),$=F0(q);return $.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:$,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let q=Gq(_),$=F0(q);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:$,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(_,q){if(this.type!=="comment")return!1;if(this.indent<=q)return!1;return _.every(($)=>$.type==="newline"||$.type==="space")}*documentEnd(_){if(this.type!=="doc-mode"){if(_.end)_.end.push(this.sourceToken);else _.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}*lineEnd(_){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:if(_.end)_.end.push(this.sourceToken);else _.end=[this.sourceToken];if(this.type==="newline")yield*this.pop()}}}iH.Parser=m5});var p5=M((eH)=>{var d5=w$(),pH=c0(),o0=p0(),rH=C9(),sH=g(),nH=C$(),l5=b$();function i5(_){let q=_.prettyErrors!==!1;return{lineCounter:_.lineCounter||q&&new nH.LineCounter||null,prettyErrors:q}}function aH(_,q={}){let{lineCounter:$,prettyErrors:Z}=i5(q),X=new l5.Parser($?.addNewLine),z=new d5.Composer(q),U=Array.from(z.compose(X.parse(_)));if(Z&&$)for(let Q of U)Q.errors.forEach(o0.prettifyError(_,$)),Q.warnings.forEach(o0.prettifyError(_,$));if(U.length>0)return U;return Object.assign([],{empty:!0},z.streamInfo())}function c5(_,q={}){let{lineCounter:$,prettyErrors:Z}=i5(q),X=new l5.Parser($?.addNewLine),z=new d5.Composer(q),U=null;for(let Q of z.compose(X.parse(_),!0,_.length))if(!U)U=Q;else if(U.options.logLevel!=="silent"){U.errors.push(new o0.YAMLParseError(Q.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}if(Z&&$)U.errors.forEach(o0.prettifyError(_,$)),U.warnings.forEach(o0.prettifyError(_,$));return U}function oH(_,q,$){let Z=void 0;if(typeof q==="function")Z=q;else if($===void 0&&q&&typeof q==="object")$=q;let X=c5(_,$);if(!X)return null;if(X.warnings.forEach((z)=>rH.warn(X.options.logLevel,z)),X.errors.length>0)if(X.options.logLevel!=="silent")throw X.errors[0];else X.errors=[];return X.toJS(Object.assign({reviver:Z},$))}function tH(_,q,$){let Z=null;if(typeof q==="function"||Array.isArray(q))Z=q;else if($===void 0&&q)$=q;if(typeof $==="string")$=$.length;if(typeof $==="number"){let X=Math.round($);$=X<1?void 0:X>8?{indent:8}:{indent:X}}if(_===void 0){let{keepUndefined:X}=$??q??{};if(!X)return}if(sH.isDocument(_)&&!Z)return _.toString($);return new pH.Document(_,Z,$).toString($)}eH.parse=oH;eH.parseAllDocuments=aH;eH.parseDocument=c5;eH.stringify=tH});var Q4=w1(U4(),1),{program:DT,createCommand:wT,createArgument:ST,createOption:RT,CommanderError:jT,InvalidArgumentError:PT,InvalidOptionArgumentError:AT,Command:Y4,Argument:OT,Option:fT,Help:NT}=Q4.default;import{readFileSync as UT}from"fs";import{join as QT,dirname as l$}from"path";import{fileURLToPath as YT}from"url";var _Z=w1(u1(),1);var g$=w1(S9(),1);import{readFileSync as n5,existsSync as Kq}from"fs";import{join as Dq,resolve as v$,dirname as a5}from"path";import{readFileSync as k7,existsSync as P0}from"fs";import{join as A0}from"path";class A_{name="bun";isActive(_){let q=A0(_,"bun.lock"),$=A0(_,"bun.lockb");if(P0(q)||P0($))return!0;let Z=A0(_,"bunfig.toml");if(P0(Z))return!0;let X=A0(_,"package.json");if(P0(X))try{let z=JSON.parse(k7(X,"utf8"));if(z.bun||z.trustedDependencies)return!0}catch{}return!1}getRunCommand(_){return{command:"bun",args:["run",_]}}parseWorkspaceConfig(_){let q=A0(_,"package.json");if(!P0(q))throw Error("No package.json found in workspace root");let $=JSON.parse(k7(q,"utf8"));if(!$.workspaces)throw Error("No workspaces configuration found in package.json");let Z=$.workspaces,X=Array.isArray(Z)?Z:Z.packages;if(!Array.isArray(X))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:X}}getLockFileName(){return"bun.lock"}}import{readFileSync as h$,existsSync as L0}from"fs";import{join as M0}from"path";var XI=w$(),zI=c0(),UI=U$(),y$=p0(),QI=N0(),v1=g(),YI=C1(),JI=s(),BI=y1(),WI=x1(),Hw=Wq(),VI=E$(),GI=C$(),FI=b$(),Fq=p5(),r5=O0();var LI=XI.Composer,MI=zI.Document,HI=UI.Schema,II=y$.YAMLError,TI=y$.YAMLParseError,KI=y$.YAMLWarning,DI=QI.Alias,wI=v1.isAlias,SI=v1.isCollection,RI=v1.isDocument,jI=v1.isMap,PI=v1.isNode,AI=v1.isPair,OI=v1.isScalar,fI=v1.isSeq,NI=YI.Pair,EI=JI.Scalar,CI=BI.YAMLMap,bI=WI.YAMLSeq;var yI=VI.Lexer,xI=GI.LineCounter,hI=FI.Parser,x$=Fq.parse,vI=Fq.parseAllDocuments,gI=Fq.parseDocument,kI=Fq.stringify,uI=r5.visit,mI=r5.visitAsync;class Lq{name="pnpm";isActive(_){let q=M0(_,"pnpm-lock.yaml");if(L0(q))return!0;let $=M0(_,"pnpm-workspace.yaml");if(L0($))return!0;let Z=M0(_,".pnpmfile.cjs");if(L0(Z))return!0;let X=M0(_,"package.json");if(L0(X))try{let z=JSON.parse(h$(X,"utf8")),U=z.publishConfig;if(z.pnpm||U?.registry)return!0}catch{}return!1}getRunCommand(_){return{command:"pnpm",args:["run",_]}}parseWorkspaceConfig(_){let q=M0(_,"pnpm-workspace.yaml");if(L0(q)){let U=h$(q,"utf8"),Q=x$(U);if(!Q.packages||!Array.isArray(Q.packages))throw Error("Invalid pnpm-workspace.yaml: packages must be an array");return{packages:Q.packages}}let $=M0(_,"package.json");if(!L0($))throw Error("No pnpm-workspace.yaml or package.json found in workspace root");let Z=JSON.parse(h$($,"utf8"));if(!Z.workspaces)throw Error("No pnpm-workspace.yaml found and no workspaces configuration in package.json");let X=Z.workspaces,z=Array.isArray(X)?X:X.packages;if(!Array.isArray(z))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:z}}getLockFileName(){return"pnpm-lock.yaml"}}import{readFileSync as s5,existsSync as Mq}from"fs";import{join as Hq}from"path";class Iq{name="npm";isActive(_){let q=Hq(_,"package-lock.json");if(Mq(q))return!0;let $=Hq(_,".npmrc");if(Mq($))return!0;let Z=Hq(_,"package.json");if(Mq(Z))try{let X=JSON.parse(s5(Z,"utf8"));if(X.workspaces||X.publishConfig)return!0}catch{}return!1}getRunCommand(_){return{command:"npm",args:["run",_]}}parseWorkspaceConfig(_){let q=Hq(_,"package.json");if(!Mq(q))throw Error("No package.json found in workspace root");let $=JSON.parse(s5(q,"utf8"));if(!$.workspaces)throw Error("No workspaces configuration found in package.json");let Z=$.workspaces,X=Array.isArray(Z)?Z:Z.packages;if(!Array.isArray(X))throw Error("Invalid workspaces configuration: must be an array or object with packages array");return{packages:X}}getLockFileName(){return"package-lock.json"}}import{existsSync as o1}from"fs";import{join as t1}from"path";class Tq{static packageManagers=[new A_,new Lq,new Iq];static detect(_){let q=[];for(let Z of this.packageManagers)if(Z.isActive(_)){let X=this.calculateConfidence(Z,_);q.push({packageManager:Z,confidence:X})}q.sort((Z,X)=>X.confidence-Z.confidence);let[$]=q;if(!$)throw Error("No package manager detected. Please ensure you have a lock file (bun.lockb, pnpm-lock.yaml, or package-lock.json) or workspace configuration in your project.");return $}static getPackageManager(_){let q=this.packageManagers.find(($)=>$.name===_);if(!q)throw Error(`Unknown package manager: ${_}`);return q}static getSupportedPackageManagers(){return[...this.packageManagers]}static calculateConfidence(_,q){let $=0,Z=t1(q,_.getLockFileName());if(o1(Z))$+=100;switch(_.name){case"bun":if(o1(t1(q,"bun.lock")))$+=100;if(o1(t1(q,"bun.lockb")))$+=100;if(o1(t1(q,"bunfig.toml")))$+=50;break;case"pnpm":if(o1(t1(q,"pnpm-workspace.yaml")))$+=80;if(o1(t1(q,".pnpmfile.cjs")))$+=30;break;case"npm":if(o1(t1(q,".npmrc")))$+=30;break}try{_.parseWorkspaceConfig(q),$+=20}catch{}return $}static async isPackageManagerAvailable(_){try{let{spawn:q}=await import("child_process");return new Promise(($)=>{let Z=q(_,["--version"],{stdio:"ignore"});Z.on("close",(X)=>$(X===0)),Z.on("error",()=>$(!1))})}catch{return!1}}}class L1{workspaceRoot;packageManager;constructor(_=process.cwd()){this.workspaceRoot=this.findWorkspaceRoot(v$(_));let q=Tq.detect(this.workspaceRoot);this.packageManager=q.packageManager}async parseWorkspace(){let _=this.readWorkspaceConfig(),q=await this.resolvePackagePaths(_.packages||[]),$=await Promise.all(q.map((X)=>this.loadPackageInfo(X))),Z=new Map;return $.forEach((X)=>{Z.set(X.name,X)}),{root:this.workspaceRoot,packages:$,packageMap:Z,packageManager:this.packageManager}}findWorkspaceRoot(_){let q=_;while(q!==a5(q)){let $=Dq(q,"package.json");if(Kq($)){if(JSON.parse(n5($,"utf8")).workspaces)return q}let Z=Dq(q,"pnpm-workspace.yaml");if(Kq(Z))return q;q=a5(q)}return _}readWorkspaceConfig(){try{return this.packageManager.parseWorkspaceConfig(this.workspaceRoot)}catch(_){throw Error(`Failed to parse workspace configuration with ${this.packageManager.name}: ${_ instanceof Error?_.message:String(_)}`)}}async resolvePackagePaths(_){let q=[];for(let Z of _){if(Z.startsWith("!"))continue;let X=await g$.default(Z,{cwd:this.workspaceRoot,onlyDirectories:!0,absolute:!1});for(let z of X){let U=Dq(this.workspaceRoot,z,"package.json");if(Kq(U))q.push(v$(this.workspaceRoot,z))}}let $=_.filter((Z)=>Z.startsWith("!"));if($.length>0){let Z=new Set;for(let X of $){let z=X.slice(1);(await g$.default(z,{cwd:this.workspaceRoot,onlyDirectories:!0,absolute:!1})).forEach((Q)=>{Z.add(v$(this.workspaceRoot,Q))})}return q.filter((X)=>!Z.has(X))}return Array.from(new Set(q))}async loadPackageInfo(_){let q=Dq(_,"package.json");if(!Kq(q))throw Error(`package.json not found in ${_}`);let $=JSON.parse(n5(q,"utf8"));if(!$.name||typeof $.name!=="string")throw Error(`Package name not found in ${q}`);let{dependencies:Z,devDependencies:X,scripts:z}=$,U=Object.keys(Z||{}),Q=Object.keys(X||{}),Y=z||{};return{name:$.name,path:_,packageJson:$,dependencies:U,devDependencies:Q,scripts:Y}}filterPackages(_,q){if(!q)return _;let $=q.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[([^\]]+)\]/g,"[$1]"),Z=new RegExp(`^${$}$`);return _.filter((X)=>Z.test(X.name))}hasScript(_,q){return q in _.scripts}getPackagesWithScript(_,q){return _.filter(($)=>this.hasScript($,q))}getPackageManager(){return this.packageManager}}class wq{nodes=new Map;addPackage(_){if(!this.nodes.has(_))this.nodes.set(_,{name:_,dependencies:new Set,dependents:new Set})}addDependency(_,q){this.addPackage(_),this.addPackage(q);let $=this.nodes.get(_),Z=this.nodes.get(q);$.dependencies.add(q),Z.dependents.add(_)}getPackages(){return Array.from(this.nodes.keys())}getDependencies(_){let q=this.nodes.get(_);return q?Array.from(q.dependencies):[]}getDependents(_){let q=this.nodes.get(_);return q?Array.from(q.dependents):[]}topologicalSort(){let _=[],q=new Map,$=[];for(let[X,z]of this.nodes)if(q.set(X,z.dependencies.size),z.dependencies.size===0)$.push(X);while($.length>0){let X=$.shift();_.push(X);let z=this.getDependents(X);for(let U of z){let Q=q.get(U)-1;if(q.set(U,Q),Q===0)$.push(U)}}let Z=[];if(_.length!==this.nodes.size){let X=this.getPackages().filter((U)=>!_.includes(U)),z=this.detectCycles(X);Z.push(...z)}return{order:_,cycles:Z}}detectCycles(_){let q=[],$=new Set,Z=new Set,X=(z,U)=>{if(Z.has(z)){let Y=U.indexOf(z);if(Y!==-1)q.push(U.slice(Y).concat([z]));return}if($.has(z))return;$.add(z),Z.add(z);let Q=this.getDependencies(z);for(let Y of Q)if(_.includes(Y))X(Y,[...U,z]);Z.delete(z)};for(let z of _)if(!$.has(z))X(z,[]);return q}getBuildBatches(){let{order:_,cycles:q}=this.topologicalSort();if(q.length>0)throw Error(`Circular dependencies detected: ${q.map((X)=>X.join(" -> ")).join(", ")}`);let $=[],Z=new Set;while(Z.size<_.length){let X=[];for(let z of _){if(Z.has(z))continue;if(this.getDependencies(z).every((Y)=>Z.has(Y)))X.push(z)}if(X.length===0)throw Error("Unable to determine build order - possible circular dependency");$.push(X),X.forEach((z)=>Z.add(z))}return $}filterGraph(_){let q=new wq,$=new Set(_);for(let Z of _)if(this.nodes.has(Z))q.addPackage(Z);for(let Z of _)if(this.nodes.has(Z)){let X=this.getDependencies(Z);for(let z of X)if($.has(z))q.addDependency(Z,z)}return q}getRootPackages(){return this.getPackages().filter((_)=>this.getDependencies(_).length===0)}getLeafPackages(){return this.getPackages().filter((_)=>this.getDependents(_).length===0)}printGraph(){console.log(`
187
187
  \uD83D\uDCCA Dependency Graph:`);for(let[_,q]of this.nodes){let $=Array.from(q.dependencies),Z=Array.from(q.dependents);if(console.log(`
188
- \uD83D\uDCE6 ${_}`),$.length>0)console.log(` ⬇️ Dependencies: ${$.join(", ")}`);if(Z.length>0)console.log(` ⬆️ Dependents: ${Z.join(", ")}`)}}}function i5(_){let q=new Lq,$=new Set(_.map((Z)=>Z.name));return _.forEach((Z)=>{q.addPackage(Z.name)}),_.forEach((Z)=>{[...Z.dependencies,...Z.devDependencies].forEach((z)=>{if($.has(z))q.addDependency(Z.name,z)})}),q}function SI(_,q){return q.getRunCommand(_)}function n1(_,q){let $=[],Z=[];return _.forEach((X)=>{if(X.scripts&&typeof X.scripts==="object"&&X.scripts[q])$.push(X);else Z.push(X)}),{valid:$,invalid:Z}}function G0(_,q,$){let{command:Z,args:X}=SI(q,$);return _.map((z)=>{if(!PI(z.path))throw Error(`Invalid package path: ${z.path}`);return{command:Z,args:X,options:{cwd:z.path,env:{FORCE_COLOR:"1",NODE_ENV:"development"}},logOptions:{prefix:z.name,color:RI(z.name)},packageInfo:z}})}var d5=["red","green","yellow","blue","magenta","cyan","gray","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright"],f$=new Map,l5=0;function RI(_){if(!f$.has(_)){let q=d5[l5%d5.length];if(q)f$.set(_,q);l5++}return f$.get(_)||"white"}function PI(_){let q=x("fs"),$=x("path");try{let Z=$.join(_,"package.json");if(!q.existsSync(Z))return!1;let X=q.readFileSync(Z,"utf8"),z=JSON.parse(X);return typeof z==="object"&&z!==null&&typeof z.name==="string"}catch{return!1}}var k=R1(a1(),1);import{spawn as jI}from"child_process";class Z1{static colorPalette=["red","green","yellow","blue","magenta","cyan","gray","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright"];static assignedColors=new Map;static colorIndex=0;static activeChildren=new Set;static getPackageColor(_){if(!this.assignedColors.has(_)){let $=this.colorIndex%this.colorPalette.length,Z=this.colorPalette[$]||"white";this.assignedColors.set(_,Z),this.colorIndex++}return this.assignedColors.get(_)||"white"}static getColorFn(_){switch(_){case"red":return k.default.red;case"green":return k.default.green;case"yellow":return k.default.yellow;case"blue":return k.default.blue;case"magenta":return k.default.magenta;case"cyan":return k.default.cyan;case"gray":return k.default.gray;case"redBright":return k.default.redBright;case"greenBright":return k.default.greenBright;case"yellowBright":return k.default.yellowBright;case"blueBright":return k.default.blueBright;case"magentaBright":return k.default.magentaBright;case"cyanBright":return k.default.cyanBright;default:return k.default.white}}static async runCommand(_,q,$,Z){let X=Date.now(),z=[_,...q].join(" "),U=this.getColorFn(Z.color);return console.log(`[${U(Z.prefix)}] `+k.default.gray(`Starting: ${z}`)),new Promise((Q)=>{let Y=jI(_,q,{cwd:$.cwd,env:{...process.env,...$.env},stdio:["inherit","pipe","pipe"]});if(Z1.activeChildren.add(Y),Y.stdout)Y.stdout.on("data",(B)=>{B.toString().split(`
189
- `).forEach((V)=>{if(V.trim())this.logLine(V,Z,!1)})});if(Y.stderr)Y.stderr.on("data",(B)=>{B.toString().split(`
190
- `).forEach((V)=>{if(V.trim())this.logLine(V,Z,!0)})});Y.on("close",(B)=>{Z1.activeChildren.delete(Y);let W=Date.now()-X,V=B||0,J={success:V===0,exitCode:V,packageName:Z.prefix,command:z,duration:W},G=this.getColorFn(Z.color);if(V===0)console.log(`[${G(Z.prefix)}] `+k.default.green(`✅ Completed in ${W}ms`));else console.log(`[${G(Z.prefix)}] `+k.default.red(`❌ Failed with exit code ${V} (${W}ms)`));Q(J)}),Y.on("error",(B)=>{Z1.activeChildren.delete(Y);let W=Date.now()-X,V=this.getColorFn(Z.color);console.error(`[${V(Z.prefix)}] `+k.default.red(`\uD83D\uDCA5 Error: ${B.message}`)),Q({success:!1,exitCode:1,packageName:Z.prefix,command:z,duration:W})})})}static async terminateAll(_="SIGTERM",q=5000){let $=Array.from(this.activeChildren);if($.length===0)return;for(let Z of $)try{Z.kill(_)}catch{}await Promise.all($.map((Z)=>{return new Promise((X)=>{let z=!1,U=()=>{if(z)return;z=!0,X()};Z.once("close",U);let Q=setTimeout(()=>{if(z)return;try{Z.kill("SIGKILL")}catch{}z=!0,X()},q)})}))}static logLine(_,q,$=!1){let Z=q.showTimestamp?k.default.dim(`[${new Date().toISOString()}] `):"",z=`[${this.getColorFn(q.color)(q.prefix)}] `,U=$?k.default.red(_):_;console.log(Z+z+U)}static async runParallel(_,q=4){let $=[],Z=[];for(let z=0;z<_.length;z++){let U=_[z];if(!U)continue;let Q=this.runCommand(U.command,U.args,U.options,U.logOptions);if(Z.push(Q),Z.length>=q||z===_.length-1){let Y=await this.waitForAny(Z),B=Z[Y];if(B){let W=await B;$.push(W)}Z.splice(Y,1)}}let X=await Promise.all(Z);return $.push(...X),$}static async waitForAny(_){return new Promise((q)=>{_.forEach(($,Z)=>{$.then(()=>q(Z))})})}static async runSequential(_){let q=[];for(let $ of _){let Z=await this.runCommand($.command,$.args,$.options,$.logOptions);if(q.push(Z),!Z.success){console.log(k.default.red(`
188
+ \uD83D\uDCE6 ${_}`),$.length>0)console.log(` ⬇️ Dependencies: ${$.join(", ")}`);if(Z.length>0)console.log(` ⬆️ Dependents: ${Z.join(", ")}`)}}}function e5(_){let q=new wq,$=new Set(_.map((Z)=>Z.name));return _.forEach((Z)=>{q.addPackage(Z.name)}),_.forEach((Z)=>{[...Z.dependencies,...Z.devDependencies].forEach((z)=>{if($.has(z))q.addDependency(Z.name,z)})}),q}function dI(_,q){return q.getRunCommand(_)}function e1(_,q){let $=[],Z=[];return _.forEach((X)=>{if(X.scripts&&typeof X.scripts==="object"&&X.scripts[q])$.push(X);else Z.push(X)}),{valid:$,invalid:Z}}function H0(_,q,$){let{command:Z,args:X}=dI(q,$);return _.map((z)=>{if(!iI(z.path))throw Error(`Invalid package path: ${z.path}`);return{command:Z,args:X,options:{cwd:z.path,env:{FORCE_COLOR:"1",NODE_ENV:"development"}},logOptions:{prefix:z.name,color:lI(z.name)},packageInfo:z}})}var o5=["red","green","yellow","blue","magenta","cyan","gray","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright"],k$=new Map,t5=0;function lI(_){if(!k$.has(_)){let q=o5[t5%o5.length];if(q)k$.set(_,q);t5++}return k$.get(_)||"white"}function iI(_){let q=v("fs"),$=v("path");try{let Z=$.join(_,"package.json");if(!q.existsSync(Z))return!1;let X=q.readFileSync(Z,"utf8"),z=JSON.parse(X);return typeof z==="object"&&z!==null&&typeof z.name==="string"}catch{return!1}}var k=w1(u1(),1);import{spawn as cI}from"child_process";class z1{static colorPalette=["red","green","yellow","blue","magenta","cyan","gray","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright"];static assignedColors=new Map;static colorIndex=0;static activeChildren=new Set;static getPackageColor(_){if(!this.assignedColors.has(_)){let $=this.colorIndex%this.colorPalette.length,Z=this.colorPalette[$]||"white";this.assignedColors.set(_,Z),this.colorIndex++}return this.assignedColors.get(_)||"white"}static getColorFn(_){switch(_){case"red":return k.default.red;case"green":return k.default.green;case"yellow":return k.default.yellow;case"blue":return k.default.blue;case"magenta":return k.default.magenta;case"cyan":return k.default.cyan;case"gray":return k.default.gray;case"redBright":return k.default.redBright;case"greenBright":return k.default.greenBright;case"yellowBright":return k.default.yellowBright;case"blueBright":return k.default.blueBright;case"magentaBright":return k.default.magentaBright;case"cyanBright":return k.default.cyanBright;default:return k.default.white}}static async runCommand(_,q,$,Z){let X=Date.now(),z=[_,...q].join(" "),U=this.getColorFn(Z.color);return console.log(`[${U(Z.prefix)}] `+k.default.gray(`Starting: ${z}`)),new Promise((Q)=>{let Y=cI(_,q,{cwd:$.cwd,env:{...process.env,...$.env},stdio:["inherit","pipe","pipe"]});if(z1.activeChildren.add(Y),Y.stdout)Y.stdout.on("data",(J)=>{J.toString().split(`
189
+ `).forEach((V)=>{if(V.trim())this.logLine(V,Z,!1)})});if(Y.stderr)Y.stderr.on("data",(J)=>{J.toString().split(`
190
+ `).forEach((V)=>{if(V.trim())this.logLine(V,Z,!0)})});Y.on("close",(J)=>{z1.activeChildren.delete(Y);let W=Date.now()-X,V=J||0,B={success:V===0,exitCode:V,packageName:Z.prefix,command:z,duration:W},F=this.getColorFn(Z.color);if(V===0)console.log(`[${F(Z.prefix)}] `+k.default.green(`✅ Completed in ${W}ms`));else console.log(`[${F(Z.prefix)}] `+k.default.red(`❌ Failed with exit code ${V} (${W}ms)`));Q(B)}),Y.on("error",(J)=>{z1.activeChildren.delete(Y);let W=Date.now()-X,V=this.getColorFn(Z.color);console.error(`[${V(Z.prefix)}] `+k.default.red(`\uD83D\uDCA5 Error: ${J.message}`)),Q({success:!1,exitCode:1,packageName:Z.prefix,command:z,duration:W})})})}static async terminateAll(_="SIGTERM",q=5000){let $=Array.from(this.activeChildren);if($.length===0)return;for(let Z of $)try{Z.kill(_)}catch{}await Promise.all($.map((Z)=>{return new Promise((X)=>{let z=!1,U=()=>{if(z)return;z=!0,X()};Z.once("close",U),setTimeout(()=>{if(z)return;try{Z.kill("SIGKILL")}catch{}z=!0,X()},q)})}))}static logLine(_,q,$=!1){let Z=q.showTimestamp?k.default.dim(`[${new Date().toISOString()}] `):"",z=`[${this.getColorFn(q.color)(q.prefix)}] `,U=$?k.default.red(_):_;console.log(Z+z+U)}static async runParallel(_,q=4){let $=[],Z=[];for(let z=0;z<_.length;z++){let U=_[z];if(!U)continue;let Q=this.runCommand(U.command,U.args,U.options,U.logOptions);if(Z.push(Q),Z.length>=q||z===_.length-1){let Y=await this.waitForAny(Z),J=Z[Y];if(J){let W=await J;$.push(W)}Z.splice(Y,1)}}let X=await Promise.all(Z);return $.push(...X),$}static async waitForAny(_){return new Promise((q)=>{_.forEach(($,Z)=>{$.then(()=>q(Z))})})}static async runSequential(_){let q=[];for(let $ of _){let Z=await this.runCommand($.command,$.args,$.options,$.logOptions);if(q.push(Z),!Z.success){console.log(k.default.red(`
191
191
  ❌ Stopping execution due to failure in ${Z.packageName}`));break}}return q}static async runBatches(_,q=4){let $=[];for(let Z=0;Z<_.length;Z++){let X=_[Z];if(!X)continue;console.log(k.default.blue(`
192
192
  \uD83D\uDD04 Running batch ${Z+1}/${_.length} (${X.length} packages)`));let z=await this.runParallel(X,q);$.push(...z);let U=z.filter((Q)=>!Q.success);if(U.length>0){console.log(k.default.red(`
193
193
  ❌ Batch ${Z+1} failed. The following packages failed:`)),U.forEach((Q)=>{console.log(k.default.red(` • ${Q.packageName}: ${Q.command}`))}),console.log(k.default.red(`
194
194
  Stopping execution due to batch failure.`));break}console.log(k.default.green(`✅ Batch ${Z+1} completed successfully`))}return $}static printSummary(_){let q=_.filter((X)=>X.success),$=_.filter((X)=>!X.success),Z=_.reduce((X,z)=>X+z.duration,0);if(console.log(k.default.bold(`
195
195
  \uD83D\uDCCA Execution Summary:`)),console.log(k.default.green(`✅ Successful: ${q.length}`)),$.length>0)console.log(k.default.red(`❌ Failed: ${$.length}`)),console.log(k.default.red(`
196
- Failed packages:`)),$.forEach((X)=>{console.log(k.default.red(` • ${X.packageName} (exit code ${X.exitCode})`))});if(console.log(k.default.blue(`⏱️ Total duration: ${Z}ms`)),q.length>0){let X=Math.round(Z/q.length);console.log(k.default.dim(`\uD83D\uDCC8 Average duration: ${X}ms`))}}}var L0=R1(a1(),1);function E$(){if(process.env.WSU_UNICODE==="1"||process.env.WSU_UNICODE==="true")return!0;return!1}var AI={rocket:"\uD83D\uDE80",folder:"\uD83D\uDCC1",package:"\uD83D\uDCE6",checkmark:"✅",crossmark:"❌",warning:"⚠️",wrench:"\uD83D\uDD27",lightning:"\uD83D\uDE80",clock:"⏱️",target:"\uD83C\uDFAF",magnifying:"\uD83D\uDD0D",chart:"\uD83D\uDCCA",fire:"\uD83D\uDCA5",trophy:"\uD83C\uDFC6",seedling:"\uD83C\uDF31",leaf:"\uD83C\uDF43",books:"\uD83D\uDCDA",gear:"\uD83D\uDD27",construction:"\uD83C\uDFD7️",movie:"\uD83C\uDFAC",lightbulb:"\uD83D\uDCA1",sparkles:"✨",party:"\uD83C\uDF89",boom:"\uD83D\uDCA5",building:"\uD83C\uDFE2",arrow:"\uD83D\uDD17",dot:"\uD83D\uDD38"},OI={rocket:">",folder:"[DIR]",package:"[PKG]",checkmark:"[OK]",crossmark:"[ERR]",warning:"[WARN]",wrench:"[TOOL]",lightning:"[FAST]",clock:"[TIME]",target:"[TARGET]",magnifying:"[FIND]",chart:"[CHART]",fire:"[BOOM]",trophy:"[WIN]",seedling:"[ROOT]",leaf:"[LEAF]",books:"[DOCS]",gear:"[GEAR]",construction:"[BUILD]",movie:"[START]",lightbulb:"[TIP]",sparkles:"[DONE]",party:"[SUCCESS]",boom:"[ERROR]",building:"[CORP]",arrow:"->",dot:"*"},NI=E$()?AI:OI;class f{static symbols=NI;static log(_,q,$){let X=`${q?`${this.symbols[q]} `:""}${_}`;if($)console.log(L0.default[$](X));else console.log(X)}static info(_){this.log(_,"rocket","blue")}static success(_){this.log(_,"checkmark","green")}static error(_){this.log(_,"crossmark","red")}static warning(_){this.log(_,"warning","yellow")}static dim(_,q){this.log(_,q,"dim")}static build(_){this.log(_,"construction","blue")}static dev(_){this.log(_,"movie","blue")}static package(_){this.log(_,"package","blue")}static timing(_){this.log(_,"clock","blue")}static summary(_){this.log(_,"target","blue")}static celebrate(_){this.log(_,"party","green")}static tip(_){this.log(_,"lightbulb","yellow")}static listItem(_,q=2){let $=" ".repeat(q);this.log(`${$}${_}`,"dot","dim")}static separator(){let _=E$()?"────────────────────────────────────────────────────────":"--------------------------------------------------------";console.log(L0.default.dim(_))}static getSymbol(_){return this.symbols[_]}static formatPackageName(_,q){let $=`[${_}]`;return q?L0.default[q]($):$}static formatDuration(_){if(_<1000)return`${_}ms`;else if(_<60000)return`${(_/1000).toFixed(1)}s`;else{let q=Math.floor(_/60000),$=(_%60000/1000).toFixed(0);return`${q}m ${$}s`}}static executionSummary(_,q,$){if(console.log(L0.default.bold(`
197
- ${this.symbols.chart} Execution Summary:`)),this.success(`Successful: ${_}`),q>0)this.error(`Failed: ${q}`);this.timing(`Total duration: ${this.formatDuration($)}`)}static buildSummary(_,q,$){if(console.log(L0.default.bold(`
198
- ${this.symbols.target} Build Summary:`)),this.success(`Successfully built: ${_} packages`),q>0)this.error(`Failed to build: ${q} packages`);this.timing(`Total build time: ${this.formatDuration($)}`)}static get supportsUnicode(){return E$()}}async function p5(_,q){try{f.info(`Running script "${_}" across packages...
199
- `);let $=new s1,Z=await $.parseWorkspace();f.dim(`Workspace root: ${Z.root}`,"folder"),f.dim(`Found ${Z.packages.length} packages
200
- `,"package");let X=Z.packages;if(q.filter)X=$.filterPackages(Z.packages,q.filter),f.log(`Filtered to ${X.length} packages matching "${q.filter}"`,"magnifying","yellow");let{valid:z,invalid:U}=n1(X,_);if(z.length===0)f.error(`No packages found with the "${_}" script.`),process.exit(1);f.success(`Running "${_}" in ${z.length} packages:`),z.forEach((F)=>{f.listItem(F.name)}),console.log();let Q=!q.sequential,Y=parseInt(q.concurrency||"4",10);f.log(`Package manager: ${Z.packageManager.name}`,"wrench","blue"),f.log(`Execution mode: ${Q?`parallel (concurrency: ${Y})`:"sequential"}`,"lightning","blue"),console.log();let B=G0(z,_,Z.packageManager),W=Date.now(),V;if(Q)V=await Z1.runParallel(B,Y);else V=await Z1.runSequential(B);let J=Date.now()-W,G=V.filter((F)=>F.success),L=V.filter((F)=>!F.success);if(f.executionSummary(G.length,L.length,J),L.length>0)console.log(c5.default.red(`
201
- Failed packages:`)),L.forEach((F)=>{f.listItem(`${F.packageName} (exit code ${F.exitCode})`)});if(G.length>0){let F=Math.round(G.reduce((M,w)=>M+w.duration,0)/G.length);f.dim(`Average package duration: ${f.formatDuration(F)}`,"chart")}if(L.length>0)process.exit(1)}catch($){f.log(`Error: ${$ instanceof Error?$.message:String($)}`,"fire","red"),process.exit(1)}}var C$=R1(a1(),1);function fI(_,q){let $=[..._],Z=new Map;while($.length>0){let X=$.shift();if(!X||Z.has(X.name))continue;Z.set(X.name,X);let z=[...X.dependencies,...X.devDependencies];for(let U of z){let Q=q.get(U);if(Q&&!Z.has(U))$.push(Q)}}return Array.from(Z.values())}async function r5(_){try{f.build(`Building packages in dependency order...
202
- `);let q=new s1,$=await q.parseWorkspace();f.dim(`Workspace root: ${$.root}`,"folder"),f.dim(`Found ${$.packages.length} packages
203
- `,"package");let Z=$.packages;if(_.filter)Z=q.filterPackages($.packages,_.filter),f.log(`Filtered to ${Z.length} packages matching "${_.filter}"`,"magnifying","yellow");let{valid:X,invalid:z}=n1(Z,"build");if(X.length===0)f.error('No packages found with a "build" script.'),process.exit(1);let U=fI(X,$.packageMap),{valid:Q,invalid:Y}=n1(U,"build"),B=new Map;if([...z,...Y].forEach((I)=>{B.set(I.name,I)}),B.size>0)f.warning(`The following packages don't have a "build" script:`),Array.from(B.values()).forEach((I)=>{f.listItem(I.name)}),console.log();f.log("Building dependency graph...","chart","blue");let W=i5(Q),V=Q.map((I)=>I.name),J=W.filterGraph(V),G;try{G=J.getBuildBatches()}catch(I){f.error(`Dependency cycle detected: ${I instanceof Error?I.message:String(I)}`),f.tip("Check for circular dependencies between packages."),process.exit(1)}f.success(`Build order determined: ${G.length} batches`),console.log(C$.default.blue(`
204
- ${f.getSymbol("books")} Build Plan:`)),G.forEach((I,C)=>{f.listItem(`Batch ${C+1}: ${I.join(", ")}`)}),console.log();let L=parseInt(_.concurrency||"4",10);f.log(`Package manager: ${$.packageManager.name}`,"wrench","blue"),f.log(`Batch concurrency: ${L}`,"lightning","blue"),console.log();let F=new Map(Q.map((I)=>[I.name,I])),M=G.map((I)=>{return I.map((C)=>F.get(C)).filter((C)=>C!==void 0).map((C)=>{return G0([C],"build",$.packageManager)[0]}).filter((C)=>C!==void 0)}),w=Date.now(),j=await Z1.runBatches(M,L),P=Date.now()-w,E=j.filter((I)=>I.success),S=j.filter((I)=>!I.success);if(f.buildSummary(E.length,S.length,P),S.length>0)console.log(C$.default.red(`
205
- Failed packages:`)),S.forEach((I)=>{f.listItem(`${I.packageName} (exit code ${I.exitCode})`)});if(E.length>0){let I=Math.round(E.reduce((C,u)=>C+u.duration,0)/E.length);f.dim(`Average package build time: ${f.formatDuration(I)}`,"chart")}let A=J.getRootPackages(),O=J.getLeafPackages();if(A.length>0)f.dim(`Root packages (no dependencies): ${A.join(", ")}`,"seedling");if(O.length>0)f.dim(`Leaf packages (no dependents): ${O.join(", ")}`,"leaf");if(S.length>0)f.log(`
206
- Build failed due to package failures.`,"fire","red"),process.exit(1);else f.celebrate(`
207
- All packages built successfully!`)}catch(q){f.log(`Build error: ${q instanceof Error?q.message:String(q)}`,"fire","red"),process.exit(1)}}var t=R1(a1(),1);async function s5(_){try{f.dev(`Starting development servers with live log streaming...
208
- `);let q=new s1,$=await q.parseWorkspace();f.dim(`Workspace root: ${$.root}`,"folder"),f.dim(`Found ${$.packages.length} packages
209
- `,"package");let Z=$.packages;if(_.filter)Z=q.filterPackages($.packages,_.filter),f.log(`Filtered to ${Z.length} packages matching "${_.filter}"`,"magnifying","yellow");let{valid:X,invalid:z}=n1(Z,"dev");if(z.length>0)f.warning(`The following packages don't have a "dev" script:`),z.forEach((J)=>{f.listItem(J.name)}),console.log();if(X.length===0)f.error('No packages found with a "dev" script.'),process.exit(1);f.success(`Starting dev servers for ${X.length} packages:`),X.forEach((J)=>{let G=Z1.getPackageColor(J.name),F=((M)=>{switch(M){case"red":return t.default.red;case"green":return t.default.green;case"yellow":return t.default.yellow;case"blue":return t.default.blue;case"magenta":return t.default.magenta;case"cyan":return t.default.cyan;case"gray":return t.default.gray;case"redBright":return t.default.redBright;case"greenBright":return t.default.greenBright;case"yellowBright":return t.default.yellowBright;case"blueBright":return t.default.blueBright;case"magentaBright":return t.default.magentaBright;case"cyanBright":return t.default.cyanBright;default:return t.default.white}})(G);console.log(` • ${F(J.name)}`)}),console.log();let U=parseInt(_.concurrency||"4",10);f.log(`Package manager: ${$.packageManager.name}`,"wrench","blue"),f.log(`Running ${Math.min(X.length,U)} dev servers simultaneously`,"lightning","blue"),f.tip(`Use Ctrl+C to stop all development servers
210
- `);let Q=G0(X,"dev",$.packageManager).map((J)=>({...J,logOptions:{...J.logOptions,showTimestamp:!1}})),Y=!1,B=()=>{if(Y)return;Y=!0,f.log(`
196
+ Failed packages:`)),$.forEach((X)=>{console.log(k.default.red(` • ${X.packageName} (exit code ${X.exitCode})`))});if(console.log(k.default.blue(`⏱️ Total duration: ${Z}ms`)),q.length>0){let X=Math.round(Z/q.length);console.log(k.default.dim(`\uD83D\uDCC8 Average duration: ${X}ms`))}}}var I0=w1(u1(),1);function u$(){if(process.env.WSU_UNICODE==="1"||process.env.WSU_UNICODE==="true")return!0;return!1}var pI={rocket:"\uD83D\uDE80",folder:"\uD83D\uDCC1",package:"\uD83D\uDCE6",checkmark:"✅",crossmark:"❌",warning:"⚠️",wrench:"\uD83D\uDD27",lightning:"\uD83D\uDE80",clock:"⏱️",target:"\uD83C\uDFAF",magnifying:"\uD83D\uDD0D",chart:"\uD83D\uDCCA",fire:"\uD83D\uDCA5",trophy:"\uD83C\uDFC6",seedling:"\uD83C\uDF31",leaf:"\uD83C\uDF43",books:"\uD83D\uDCDA",gear:"\uD83D\uDD27",construction:"\uD83C\uDFD7️",movie:"\uD83C\uDFAC",lightbulb:"\uD83D\uDCA1",sparkles:"✨",party:"\uD83C\uDF89",boom:"\uD83D\uDCA5",building:"\uD83C\uDFE2",arrow:"\uD83D\uDD17",dot:"\uD83D\uDD38"},rI={rocket:">",folder:"[DIR]",package:"[PKG]",checkmark:"[OK]",crossmark:"[ERR]",warning:"[WARN]",wrench:"[TOOL]",lightning:"[FAST]",clock:"[TIME]",target:"[TARGET]",magnifying:"[FIND]",chart:"[CHART]",fire:"[BOOM]",trophy:"[WIN]",seedling:"[ROOT]",leaf:"[LEAF]",books:"[DOCS]",gear:"[GEAR]",construction:"[BUILD]",movie:"[START]",lightbulb:"[TIP]",sparkles:"[DONE]",party:"[SUCCESS]",boom:"[ERROR]",building:"[CORP]",arrow:"->",dot:"*"},sI=u$()?pI:rI;class w{static symbols=sI;static log(_,q,$){let X=`${q?`${this.symbols[q]} `:""}${_}`;if($)console.log(I0.default[$](X));else console.log(X)}static info(_){this.log(_,"rocket","blue")}static success(_){this.log(_,"checkmark","green")}static error(_){this.log(_,"crossmark","red")}static warning(_){this.log(_,"warning","yellow")}static dim(_,q){this.log(_,q,"dim")}static build(_){this.log(_,"construction","blue")}static dev(_){this.log(_,"movie","blue")}static package(_){this.log(_,"package","blue")}static timing(_){this.log(_,"clock","blue")}static summary(_){this.log(_,"target","blue")}static celebrate(_){this.log(_,"party","green")}static tip(_){this.log(_,"lightbulb","yellow")}static listItem(_,q=2){let $=" ".repeat(q);this.log(`${$}${_}`,"dot","dim")}static separator(){let _=u$()?"────────────────────────────────────────────────────────":"--------------------------------------------------------";console.log(I0.default.dim(_))}static getSymbol(_){return this.symbols[_]}static formatPackageName(_,q){let $=`[${_}]`;return q?I0.default[q]($):$}static formatDuration(_){if(_<1000)return`${_}ms`;else if(_<60000)return`${(_/1000).toFixed(1)}s`;else{let q=Math.floor(_/60000),$=(_%60000/1000).toFixed(0);return`${q}m ${$}s`}}static executionSummary(_,q,$){if(console.log(I0.default.bold(`
197
+ ${this.symbols.chart} Execution Summary:`)),this.success(`Successful: ${_}`),q>0)this.error(`Failed: ${q}`);this.timing(`Total duration: ${this.formatDuration($)}`)}static buildSummary(_,q,$){if(console.log(I0.default.bold(`
198
+ ${this.symbols.target} Build Summary:`)),this.success(`Successfully built: ${_} packages`),q>0)this.error(`Failed to build: ${q} packages`);this.timing(`Total build time: ${this.formatDuration($)}`)}static get supportsUnicode(){return u$()}}async function qZ(_,q){try{w.info(`Running script "${_}" across packages...
199
+ `);let $=new L1,Z=await $.parseWorkspace();w.dim(`Workspace root: ${Z.root}`,"folder"),w.dim(`Found ${Z.packages.length} packages
200
+ `,"package");let X=Z.packages;if(q.filter)X=$.filterPackages(Z.packages,q.filter),w.log(`Filtered to ${X.length} packages matching "${q.filter}"`,"magnifying","yellow");let{valid:z}=e1(X,_);if(z.length===0)w.error(`No packages found with the "${_}" script.`),process.exit(1);w.success(`Running "${_}" in ${z.length} packages:`),z.forEach((L)=>{w.listItem(L.name)}),console.log();let U=!q.sequential,Q=parseInt(q.concurrency||"4",10);w.log(`Package manager: ${Z.packageManager.name}`,"wrench","blue"),w.log(`Execution mode: ${U?`parallel (concurrency: ${Q})`:"sequential"}`,"lightning","blue"),console.log();let Y=H0(z,_,Z.packageManager),J=Date.now(),W;if(U)W=await z1.runParallel(Y,Q);else W=await z1.runSequential(Y);let V=Date.now()-J,B=W.filter((L)=>L.success),F=W.filter((L)=>!L.success);if(w.executionSummary(B.length,F.length,V),F.length>0)console.log(_Z.default.red(`
201
+ Failed packages:`)),F.forEach((L)=>{w.listItem(`${L.packageName} (exit code ${L.exitCode})`)});if(B.length>0){let L=Math.round(B.reduce((G,H)=>G+H.duration,0)/B.length);w.dim(`Average package duration: ${w.formatDuration(L)}`,"chart")}if(F.length>0)process.exit(1)}catch($){w.log(`Error: ${$ instanceof Error?$.message:String($)}`,"fire","red"),process.exit(1)}}var d$=w1(u1(),1);var UZ=w1(S9(),1);import{createHash as $Z}from"crypto";import{readFileSync as t0,writeFileSync as Sq,existsSync as A1,mkdirSync as m$,appendFileSync as nI,statSync as aI,rmSync as ZZ}from"fs";import{join as g1,relative as XZ}from"path";import{promisify as oI}from"util";import{exec as tI}from"child_process";var eI=oI(tI),e0=2,D1=".wsu",zZ="packages",_T="cache.json",qT="files.json",$T="manifest.json";class __{workspaceRoot;baseCacheDir;manifestPath;manifest;packageCaches;packageFileIndexes;initialized=!1;constructor(_){this.workspaceRoot=_,this.baseCacheDir=g1(_,D1),this.manifestPath=g1(this.baseCacheDir,$T),this.manifest={version:e0,packages:[]},this.packageCaches=new Map,this.packageFileIndexes=new Map}async initialize(){if(this.initialized)return;if(!A1(this.baseCacheDir))m$(this.baseCacheDir,{recursive:!0}),w.dim(`Created ${D1}/ directory`,"folder");await this.ensureGitignore(),this.loadManifest(),this.initialized=!0}getPackageCacheDir(_){return g1(this.baseCacheDir,zZ,_)}getPackageCachePath(_){return g1(this.getPackageCacheDir(_),_T)}getPackageFilesPath(_){return g1(this.getPackageCacheDir(_),qT)}async ensureGitignore(){let _=g1(this.workspaceRoot,".gitignore");if(!A1(_)){Sq(_,`# Workspace utils cache
202
+ ${D1}/
203
+ `,"utf8"),w.dim(`Created .gitignore with ${D1}/ entry`,"checkmark");return}if(!t0(_,"utf8").split(`
204
+ `).some((X)=>X.trim()===`${D1}/`||X.trim()===D1||X.trim().startsWith(`${D1}/`))){let X=`
205
+ # Workspace utils cache
206
+ ${D1}/
207
+ `;nI(_,X,"utf8"),w.dim(`Added ${D1}/ to .gitignore`,"checkmark")}}loadManifest(){if(!A1(this.manifestPath))return;try{let _=t0(this.manifestPath,"utf8"),q=JSON.parse(_);if(q.version===e0){this.manifest=q;for(let $ of q.packages)this.loadPackageCache($),this.loadPackageFileIndex($)}}catch{this.manifest={version:e0,packages:[]}}}saveManifest(){Sq(this.manifestPath,JSON.stringify(this.manifest,null,2),"utf8")}loadPackageCache(_){let q=this.getPackageCachePath(_);if(!A1(q))return;try{let $=t0(q,"utf8"),Z=JSON.parse($);return this.packageCaches.set(_,Z),Z}catch{return}}savePackageCache(_,q){let $=this.getPackageCacheDir(_);if(!A1($))m$($,{recursive:!0});let Z=this.getPackageCachePath(_);if(Sq(Z,JSON.stringify(q,null,2),"utf8"),this.packageCaches.set(_,q),!this.manifest.packages.includes(_))this.manifest.packages.push(_),this.saveManifest()}loadPackageFileIndex(_){let q=this.getPackageFilesPath(_);if(A1(q))try{let Z=t0(q,"utf8"),X=JSON.parse(Z);if(X.version===e0)return this.packageFileIndexes.set(_,X),X}catch{}let $={version:e0,files:{}};return this.packageFileIndexes.set(_,$),$}savePackageFileIndex(_){let q=this.packageFileIndexes.get(_);if(!q)return;let $=this.getPackageCacheDir(_);if(!A1($))m$($,{recursive:!0});let Z=this.getPackageFilesPath(_);Sq(Z,JSON.stringify(q,null,2),"utf8")}hashString(_){return $Z("sha256").update(_).digest("hex")}hashFile(_,q,$){try{let Z=aI(_),X=q.files[$];if(X&&X.mtime===Z.mtimeMs&&X.size===Z.size)return X.hash;let z=t0(_),U=$Z("sha256").update(z).digest("hex");return q.files[$]={mtime:Z.mtimeMs,size:Z.size,hash:U},U}catch{return""}}async filterGitIgnored(_){let q=[],$=50;for(let Z=0;Z<_.length;Z+=50){let X=_.slice(Z,Z+50),z=X.map((U)=>XZ(this.workspaceRoot,U));try{let{stdout:U}=await eI(`git check-ignore ${z.map((Y)=>`"${Y}"`).join(" ")}`,{cwd:this.workspaceRoot}),Q=new Set(U.trim().split(`
208
+ `).filter(Boolean));for(let Y=0;Y<X.length;Y++){let J=z[Y],W=X[Y];if(J&&W&&!Q.has(J))q.push(W)}}catch{q.push(...X.filter((U)=>U!==void 0))}}return q}async getSourceFiles(_){let q=await UZ.default(["**/*"],{cwd:_,absolute:!0,onlyFiles:!0,ignore:["node_modules/**",".git/**",D1+"/**"]});return(await this.filterGitIgnored(q)).map((Z)=>({path:Z,relative:XZ(_,Z)}))}async calculatePackageHash(_){let q=this.loadPackageFileIndex(_.name),$=g1(_.path,"package.json"),Z=this.hashFile($,q,"package.json"),X=await this.getSourceFiles(_.path),z=[];for(let{path:Y,relative:J}of X){let W=this.hashFile(Y,q,J);if(W)z.push(`${J}:${W}`)}z.sort();let U=[];for(let Y of[..._.dependencies,..._.devDependencies]){let J=this.packageCaches.get(Y);if(J)U.push(`${Y}:${J.inputHash}`);else U.push(`${Y}:MISSING`)}let Q=[`packageJson:${Z}`,`sources:${z.join(",")}`,`deps:${U.sort().join(",")}`].join(`
209
+ `);return this.hashString(Q)}async isValid(_){let q=this.packageCaches.get(_.name);if(!q)return!1;let $=await this.calculatePackageHash(_);return q.inputHash===$}async update(_,q,$){let Z=await this.calculatePackageHash(_),X={};for(let U of[..._.dependencies,..._.devDependencies]){let Q=this.packageCaches.get(U);X[U]=Q?.inputHash}let z={inputHash:Z,dependencyHashes:X,lastBuild:new Date().toISOString(),buildDuration:$,builtBy:"wsu"};this.savePackageCache(_.name,z),this.savePackageFileIndex(_.name)}invalidatePackage(_){this.packageCaches.delete(_);let q=this.getPackageCachePath(_);if(A1(q))ZZ(q,{force:!0});let $=this.manifest.packages.indexOf(_);if($>-1)this.manifest.packages.splice($,1),this.saveManifest()}invalidateDependents(_,q){let $=q.filter((Z)=>Z.dependencies.includes(_)||Z.devDependencies.includes(_));for(let Z of $)if(this.packageCaches.has(Z.name))this.invalidatePackage(Z.name),this.invalidateDependents(Z.name,q)}clear(){this.packageCaches.clear(),this.packageFileIndexes.clear(),this.manifest.packages=[],this.saveManifest();let _=g1(this.baseCacheDir,zZ);if(A1(_))ZZ(_,{recursive:!0,force:!0})}getStats(){let _=Array.from(this.packageCaches.values()),q=_.map(($)=>new Date($.lastBuild).getTime()).sort();return{totalPackages:_.length,lastUpdated:new Date().toISOString(),oldestBuild:q.length>0?new Date(q[0]).toISOString():null,newestBuild:q.length>0?new Date(q[q.length-1]).toISOString():null}}getEntry(_){return this.packageCaches.get(_)}getCachedPackages(){return[...this.manifest.packages]}}function ZT(_,q){let $=[..._],Z=new Map;while($.length>0){let X=$.shift();if(!X||Z.has(X.name))continue;Z.set(X.name,X);let z=[...X.dependencies,...X.devDependencies];for(let U of z){let Q=q.get(U);if(Q&&!Z.has(U))$.push(Q)}}return Array.from(Z.values())}async function QZ(_){try{w.build(`Building packages in dependency order...
210
+ `);let q=new L1,$=await q.parseWorkspace();w.dim(`Workspace root: ${$.root}`,"folder"),w.dim(`Found ${$.packages.length} packages
211
+ `,"package");let Z,X=[],z=[];if(_.skipUnchanged!==!1)Z=new __($.root),await Z.initialize(),w.log("Build cache enabled - checking for unchanged packages...","chart","blue");let U=$.packages;if(_.filter)U=q.filterPackages($.packages,_.filter),w.log(`Filtered to ${U.length} packages matching "${_.filter}"`,"magnifying","yellow");let{valid:Q,invalid:Y}=e1(U,"build");if(Q.length===0)w.error('No packages found with a "build" script.'),process.exit(1);let J=ZT(Q,$.packageMap),{valid:W,invalid:V}=e1(J,"build"),B=new Map;if([...Y,...V].forEach((j)=>{B.set(j.name,j)}),B.size>0)w.warning(`The following packages don't have a "build" script:`),Array.from(B.values()).forEach((j)=>{w.listItem(j.name)}),console.log();if(Z&&_.skipUnchanged!==!1){for(let j of W)if(await Z.isValid(j))X.push(j);else z.push(j);if(X.length>0)w.success(`${X.length} packages unchanged (cached) - skipping build`),X.forEach((j)=>{w.listItem(j.name)}),console.log();if(z.length===0){w.celebrate("All packages are up to date!");return}w.log(`Building ${z.length} packages:`,"construction","blue"),z.forEach((j)=>{w.listItem(j.name)}),console.log()}else z.push(...W);w.log("Building dependency graph...","chart","blue");let F=e5(z),L=z.map((j)=>j.name),G=F.filterGraph(L),H;try{H=G.getBuildBatches()}catch(j){w.error(`Dependency cycle detected: ${j instanceof Error?j.message:String(j)}`),w.tip("Check for circular dependencies between packages."),process.exit(1)}w.success(`Build order determined: ${H.length} batches`),console.log(d$.default.blue(`
212
+ ${w.getSymbol("books")} Build Plan:`)),H.forEach((j,y)=>{w.listItem(`Batch ${y+1}: ${j.join(", ")}`)}),console.log();let S=parseInt(_.concurrency||"4",10);w.log(`Package manager: ${$.packageManager.name}`,"wrench","blue"),w.log(`Batch concurrency: ${S}`,"lightning","blue"),console.log();let O=new Map(z.map((j)=>[j.name,j])),A=H.map((j)=>{return j.map((y)=>O.get(y)).filter((y)=>y!==void 0).map((y)=>{return H0([y],"build",$.packageManager)[0]}).filter((y)=>y!==void 0)}),C=Date.now(),N=await z1.runBatches(A,S),R=Date.now()-C;if(Z&&_.skipUnchanged!==!1){let j=N.filter((p)=>p.success),y=new Map($.packages.map((p)=>[p.name,p]));for(let p of j){let T=O.get(p.packageName);if(T)await Z.update(T,y,p.duration)}for(let p of j)Z.invalidateDependents(p.packageName,$.packages);w.log(`Updated cache for ${j.length} packages`,"chart","blue")}let E=N.filter((j)=>j.success),I=N.filter((j)=>!j.success),b=E.length+X.length;if(w.buildSummary(b,I.length,R),X.length>0)w.dim(`Skipped (cached): ${X.length} packages`,"checkmark");if(I.length>0)console.log(d$.default.red(`
213
+ Failed packages:`)),I.forEach((j)=>{w.listItem(`${j.packageName} (exit code ${j.exitCode})`)});if(E.length>0){let j=Math.round(E.reduce((y,p)=>y+p.duration,0)/E.length);w.dim(`Average package build time: ${w.formatDuration(j)}`,"chart")}let m=G.getRootPackages(),K=G.getLeafPackages();if(m.length>0)w.dim(`Root packages (no dependencies): ${m.join(", ")}`,"seedling");if(K.length>0)w.dim(`Leaf packages (no dependents): ${K.join(", ")}`,"leaf");if(I.length>0)w.log(`
214
+ Build failed due to package failures.`,"fire","red"),process.exit(1);else w.celebrate(`
215
+ All packages built successfully!`)}catch(q){w.log(`Build error: ${q instanceof Error?q.message:String(q)}`,"fire","red"),process.exit(1)}}var e=w1(u1(),1);async function YZ(_){try{w.dev(`Starting development servers with live log streaming...
216
+ `);let q=new L1,$=await q.parseWorkspace();w.dim(`Workspace root: ${$.root}`,"folder"),w.dim(`Found ${$.packages.length} packages
217
+ `,"package");let Z=$.packages;if(_.filter)Z=q.filterPackages($.packages,_.filter),w.log(`Filtered to ${Z.length} packages matching "${_.filter}"`,"magnifying","yellow");let{valid:X,invalid:z}=e1(Z,"dev");if(z.length>0)w.warning(`The following packages don't have a "dev" script:`),z.forEach((B)=>{w.listItem(B.name)}),console.log();if(X.length===0)w.error('No packages found with a "dev" script.'),process.exit(1);w.success(`Starting dev servers for ${X.length} packages:`),X.forEach((B)=>{let F=z1.getPackageColor(B.name),G=((H)=>{switch(H){case"red":return e.default.red;case"green":return e.default.green;case"yellow":return e.default.yellow;case"blue":return e.default.blue;case"magenta":return e.default.magenta;case"cyan":return e.default.cyan;case"gray":return e.default.gray;case"redBright":return e.default.redBright;case"greenBright":return e.default.greenBright;case"yellowBright":return e.default.yellowBright;case"blueBright":return e.default.blueBright;case"magentaBright":return e.default.magentaBright;case"cyanBright":return e.default.cyanBright;default:return e.default.white}})(F);console.log(` • ${G(B.name)}`)}),console.log();let U=parseInt(_.concurrency||"4",10);w.log(`Package manager: ${$.packageManager.name}`,"wrench","blue"),w.log(`Running ${Math.min(X.length,U)} dev servers simultaneously`,"lightning","blue"),w.tip(`Use Ctrl+C to stop all development servers
218
+ `);let Q=H0(X,"dev",$.packageManager).map((B)=>({...B,logOptions:{...B.logOptions,showTimestamp:!1}})),Y=!1,J=()=>{if(Y)return;Y=!0,w.log(`
211
219
 
212
- Shutting down development servers...`,"warning","yellow"),f.dim(`This may take a moment to gracefully stop all processes.
213
- `),Z1.terminateAll("SIGTERM",5000).then(()=>{process.exit(0)}).catch(()=>{process.exit(0)}),setTimeout(()=>{f.log("Timeout reached, forcing exit...","clock","red"),process.exit(0)},6000)};process.on("SIGINT",B),process.on("SIGTERM",B),f.log(`Starting development servers...
214
- `,"movie","green"),f.separator();let W=Date.now();try{let J=Q.map((G)=>Z1.runCommand(G.command,G.args,G.options,G.logOptions).catch((L)=>{return f.log(`Error in ${G.logOptions.prefix}: ${L}`,"fire","red"),{success:!1,exitCode:1,packageName:G.logOptions.prefix,command:`${G.command} ${G.args.join(" ")}`,duration:Date.now()-W}}));if(await Promise.allSettled(J.slice(0,Math.min(U,J.length))),!Y)f.warning(`
215
- Some development servers may have stopped unexpectedly.`),f.dim(`Check the logs above for any error messages.
216
- `)}catch(J){if(!Y)f.log(`Development server error: ${J instanceof Error?J.message:String(J)}`,"fire","red")}let V=Date.now()-W;if(!Y)f.log(`
217
- Development session lasted: ${f.formatDuration(V)}`,"chart","blue"),f.success("All development servers have stopped.")}catch(q){f.log(`Dev command error: ${q instanceof Error?q.message:String(q)}`,"fire","red"),process.exit(1)}}var yI=bI(import.meta.url),hI=b$(yI);function xI(_){let q=_;while(q!==b$(q))try{let $=CI(q,"package.json"),Z=EI($,"utf8");return JSON.parse(Z)}catch{q=b$(q)}throw Error("package.json not found in any parent directory")}var gI=xI(hI),w1=new t$;w1.name("workspace-utils").description("CLI tool to orchestrate scripts across monorepo workspaces (Bun, pnpm, npm)").version(gI.version).option("--ascii","Force ASCII output (no Unicode/emoji characters)",!1);w1.command("run <script>").description("Run a script across multiple packages").option("-c, --concurrency <number>","Maximum number of concurrent processes","4").option("-f, --filter <pattern>","Filter packages by pattern (e.g., @scope/*)").option("--sequential","Run scripts sequentially (default is parallel)",!1).action((_,q)=>{if(w1.opts().ascii)process.env.WSU_ASCII="1";return p5(_,q)});w1.command("build").description("Build packages in dependency order").option("-f, --filter <pattern>","Filter packages by pattern").option("-c, --concurrency <number>","Maximum number of concurrent builds","4").option("--skip-unchanged","Skip packages that haven't changed (future feature)",!1).action((_)=>{if(w1.opts().ascii)process.env.WSU_ASCII="1";return r5(_)});w1.command("dev").description("Run dev scripts across packages with live log streaming").option("-f, --filter <pattern>","Filter packages by pattern").option("-c, --concurrency <number>","Maximum number of concurrent processes","4").action((_)=>{if(w1.opts().ascii)process.env.WSU_ASCII="1";return s5(_)});if(process.argv.length<=2)w1.help();w1.parse();
220
+ Shutting down development servers...`,"warning","yellow"),w.dim(`This may take a moment to gracefully stop all processes.
221
+ `),z1.terminateAll("SIGTERM",5000).then(()=>{process.exit(0)}).catch(()=>{process.exit(0)}),setTimeout(()=>{w.log("Timeout reached, forcing exit...","clock","red"),process.exit(0)},6000)};process.on("SIGINT",J),process.on("SIGTERM",J),w.log(`Starting development servers...
222
+ `,"movie","green"),w.separator();let W=Date.now();try{let B=Q.map((F)=>z1.runCommand(F.command,F.args,F.options,F.logOptions).catch((L)=>{return w.log(`Error in ${F.logOptions.prefix}: ${L}`,"fire","red"),{success:!1,exitCode:1,packageName:F.logOptions.prefix,command:`${F.command} ${F.args.join(" ")}`,duration:Date.now()-W}}));if(await Promise.allSettled(B.slice(0,Math.min(U,B.length))),!Y)w.warning(`
223
+ Some development servers may have stopped unexpectedly.`),w.dim(`Check the logs above for any error messages.
224
+ `)}catch(B){if(!Y)w.log(`Development server error: ${B instanceof Error?B.message:String(B)}`,"fire","red")}let V=Date.now()-W;if(!Y)w.log(`
225
+ Development session lasted: ${w.formatDuration(V)}`,"chart","blue"),w.success("All development servers have stopped.")}catch(q){w.log(`Dev command error: ${q instanceof Error?q.message:String(q)}`,"fire","red"),process.exit(1)}}import{rm as JZ}from"fs/promises";import{existsSync as BZ}from"fs";import{join as WZ}from"path";async function VZ(_){try{w.info(`Cleaning node_modules across packages...
226
+ `);let q=new L1,$=await q.parseWorkspace();w.dim(`Workspace root: ${$.root}`,"folder"),w.dim(`Found ${$.packages.length} packages
227
+ `,"package");let Z=$.packages;if(_.filter)Z=q.filterPackages($.packages,_.filter),w.log(`Filtered to ${Z.length} packages matching "${_.filter}"`,"magnifying","yellow");let X=Date.now(),z=0,U=0;if(!_.filter){let Y=WZ($.root,"node_modules");if(BZ(Y))w.log(`Removing ${Y}`,"fire","yellow"),await JZ(Y,{recursive:!0,force:!0}),z++}for(let Y of Z){let J=WZ(Y.path,"node_modules");if(BZ(J))w.log(`Removing ${Y.name}/node_modules`,"fire","yellow"),await JZ(J,{recursive:!0,force:!0}),z++;else U++}let Q=Date.now()-X;console.log(),w.executionSummary(z,0,Q),w.dim(`Cleaned: ${z} directories`,"checkmark"),w.dim(`Skipped: ${U} (no node_modules found)`,"magnifying")}catch(q){w.log(`Error: ${q instanceof Error?q.message:String(q)}`,"fire","red"),process.exit(1)}}var T0=w1(u1(),1);async function GZ(_){try{let $=await new L1().parseWorkspace(),Z=new __($.root);await Z.initialize();let X=_.command||"status";switch(X){case"clear":await XT(Z);break;case"status":await zT(Z,$.packages);break;default:w.error(`Unknown cache command: ${X}`),w.tip("Available commands: clear, status"),process.exit(1)}}catch(q){w.log(`Cache command error: ${q instanceof Error?q.message:String(q)}`,"fire","red"),process.exit(1)}}async function XT(_){let q=_.getStats();if(q.totalPackages===0){w.info("Cache is already empty.");return}w.log(`Clearing build cache (${q.totalPackages} packages)...`,"fire","yellow"),_.clear(),w.success("Build cache cleared successfully!")}async function zT(_,q){let $=_.getStats();if(w.info(`Build Cache Status
228
+ `),w.dim(`Workspace root: ${_.workspaceRoot}`,"folder"),w.dim(`Total packages in workspace: ${q.length}`,"package"),console.log(),$.totalPackages===0){w.warning("No cached builds found."),w.tip("Run `wsu build --skip-unchanged` to populate the cache.");return}if(w.success(`Cached packages: ${$.totalPackages}`),w.dim(`Cache last updated: ${new Date($.lastUpdated).toLocaleString()}`,"clock"),$.oldestBuild&&$.newestBuild)w.dim(`Build date range: ${new Date($.oldestBuild).toLocaleDateString()} - ${new Date($.newestBuild).toLocaleDateString()}`,"clock");console.log(),w.dim("Cache location: .wsu/packages/<package>/","folder"),console.log(T0.default.bold(`
229
+ Cached packages:`)),q.forEach((Z)=>{let X=_.getEntry(Z.name);if(X)console.log(` ${T0.default.green("✓")} ${T0.default.cyan(Z.name)} - ${w.formatDuration(X.buildDuration)}`);else console.log(` ${T0.default.gray("○")} ${T0.default.gray(Z.name)} - not cached`)})}var JT=YT(import.meta.url),BT=l$(JT);function WT(_){let q=_;while(q!==l$(q))try{let $=QT(q,"package.json"),Z=UT($,"utf8");return JSON.parse(Z)}catch{q=l$(q)}throw Error("package.json not found in any parent directory")}var VT=WT(BT),U1=new Y4;U1.name("workspace-utils").description("CLI tool to orchestrate scripts across monorepo workspaces (Bun, pnpm, npm)").version(VT.version).option("--ascii","Force ASCII output (no Unicode/emoji characters)",!1);U1.command("run <script>").description("Run a script across multiple packages").option("-c, --concurrency <number>","Maximum number of concurrent processes","4").option("-f, --filter <pattern>","Filter packages by pattern (e.g., @scope/*)").option("--sequential","Run scripts sequentially (default is parallel)",!1).action((_,q)=>{if(U1.opts().ascii)process.env.WSU_ASCII="1";return qZ(_,q)});U1.command("build").description("Build packages in dependency order").option("-f, --filter <pattern>","Filter packages by pattern").option("-c, --concurrency <number>","Maximum number of concurrent builds","4").option("--no-skip-unchanged","Disable skipping unchanged packages (build all)").action((_)=>{if(U1.opts().ascii)process.env.WSU_ASCII="1";return QZ(_)});U1.command("dev").description("Run dev scripts across packages with live log streaming").option("-f, --filter <pattern>","Filter packages by pattern").option("-c, --concurrency <number>","Maximum number of concurrent processes","4").action((_)=>{if(U1.opts().ascii)process.env.WSU_ASCII="1";return YZ(_)});U1.command("clean").description("Remove node_modules directories across all packages").option("-f, --filter <pattern>","Filter packages by pattern").action((_)=>{if(U1.opts().ascii)process.env.WSU_ASCII="1";return VZ(_)});U1.command("cache [command]").description("Manage build cache (clear, status)").action((_,q)=>{if(U1.opts().ascii)process.env.WSU_ASCII="1";return GZ({command:_,...q})});if(process.argv.length<=2)U1.help();U1.parse();